code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
(function() {
'use strict';
angular.module('linagora.esn.graceperiod')
.factory('gracePeriodRestangularService', function(Restangular) {
return Restangular.withConfig(function(RestangularConfigurer) {
RestangularConfigurer.setBaseUrl('/graceperiod/api');
RestangularConfigurer.setFullResp... | heroandtn3/openpaas-esn | modules/linagora.esn.graceperiod/frontend/js/grace-period-restangular.service.js | JavaScript | agpl-3.0 | 356 |
'use strict';
define([
'jquery',
'underscore',
'locale/i18n',
'view/item-view',
'text!template/groups/group-popup-add-view.html'
], function ($, _, i18n, ItemView, editTemplate) {
var GroupPopupAddView = ItemView.extend({
className: 'modal fade in',
attributes: {style: 'display... | hflabs/perecoder | rcd-web/src/main/javascript/app/view/groups/group-popup-add-view.js | JavaScript | agpl-3.0 | 5,378 |
/* Module-specific javascript can be placed here */
$(document).ready(function() {
$('#DiagnosisSelection_principal_diagnosis_0').keydown(function(event){
if(event.keyCode == 13) {
event.preventDefault();
return false;
}
});
handleButton($('#et_save'),function() {
}... | FiviumAustralia/OpenEyes | protected/modules/OphInDnasample/assets/js/module.js | JavaScript | agpl-3.0 | 3,534 |
module.exports = parseUdpRequest
var bufferEqual = require('buffer-equal')
var ipLib = require('ip')
var common = require('../common')
function parseUdpRequest (msg, rinfo) {
if (msg.length < 16) throw new Error('received packet is too short')
var params = {
connectionId: msg.slice(0, 8), // 64-bit
actio... | PeerBay/PeerSocial | node_modules/bittorrent-tracker/lib/server/parse-udp.js | JavaScript | agpl-3.0 | 2,625 |
/*
# Community Almanac - A place for your stories.
# Copyright (C) 2009 Douglas Mayle, Robert Marianski,
# Andy Cochran, Chris Patterson
# This file is part of Community Almanac.
# Community Almanac is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License ... | openplans/community-almanac | communityalmanac/public/js/almanac.js | JavaScript | agpl-3.0 | 16,846 |
describe("iteration", function() {
beforeEach(function() {
this.iteration = new AgileTracker.Iteration({});
});
describe("initialize", function() {
it("should assign stories if passed", function() {
var stories = [1,2,3];
var iteration = new AgileTracker.Iteration({'stories': stories});
... | privatt/privatt-agile-tracker | src/ruby/spec/javascripts/models/iteration_spec.js | JavaScript | agpl-3.0 | 9,706 |
// --
// Core.Agent.Login.js - provides the special module functions for the login
// Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
// --
// This software comes with ABSOLUTELY NO WARRANTY. For details, see
// the enclosed file COPYING for license information (AGPL). If you
// did not receive this file, see http://... | moritz/otrs | var/httpd/htdocs/js/Core.Agent.Login.js | JavaScript | agpl-3.0 | 2,037 |
import _prototype from './_prototype' ;
export default {
_prototype ,
} ;
export {
_prototype ,
} ;
| aureooms/js-disjoint-set | src/tools/index.js | JavaScript | agpl-3.0 | 104 |
//declaro las dependencias de módulos propios
var utils = require('./utils/utils.js');
var routes = require('./routes/routes.js');
//declaro las dependencias de módulos expternos
var express = require('express');
var bodyParser = require('body-parser');
utils.test('ready');
//instanciamos nuestra app
var app = express... | jonabasque/curso-mean | server.js | JavaScript | agpl-3.0 | 794 |
( function( mw, $ ) { "use strict";
mw.PluginManager.add( 'moderation', mw.KBaseScreen.extend({
defaultConfig: {
"parent": mw.isMobileDevice() ? 'topBarContainer' : 'controlsContainer',
"order": 62,
"displayImportance": "low",
"align": "right",
"showTooltip": true,
"smartContainer": 'morePlug... | panda-os/mwEmbed | modules/KalturaSupport/resources/uiConfComponents/moderationPlugin.js | JavaScript | agpl-3.0 | 5,742 |
builder.CreateFile("docx");
var oDocument = Api.GetDocument();
oDocument.CreateNewHistoryPoint();
var oFinalSection, oTable, oParagraph;
oParagraph = Api.CreateParagraph();
oFinalSection = oDocument.GetFinalSection();
oFinalSection.SetEqualColumns(1, 720);
oTable = Api.CreateTable(3, 3);
oDocument.Push(oTable);
o... | ONLYOFFICE/doc-builder-testing | asserts/js/docx/columns/add_table_in_one_column.js | JavaScript | agpl-3.0 | 455 |
function set_freshness(value) {
var d = new Date();
d.setTime(d.getTime() + (12*60*60*1000));
document.cookie = "freshness=" + value + ";expires=" + d.toUTCString() + ";path=/;Secure";
location.reload(true)
}
function toggle_hidden(element) {
if (element.innerHTML == "hide") {
element.inner... | paddygord/commune | static/script.js | JavaScript | agpl-3.0 | 805 |
module.exports = version => {
var content = JSON.stringify({
software: 'front-node',
version: version,
})
return (req, res) => {
res.setHeader('Content-Type', 'application/json')
res.end(content)
}
}
| bazgu/front-node | lib/Page/Node.js | JavaScript | agpl-3.0 | 251 |
/*
* @author Martin Høgh <[email protected]>
* @copyright 2013-2021 MapCentia ApS
* @license http://www.gnu.org/licenses/#AGPL GNU AFFERO GENERAL PUBLIC LICENSE 3
*/
/**
* Common tools for drawing
*/
/**
* Get readable distance of layer
* @param e
* @returns {string}
* @private
*/
const getDistance... | mapcentia/vidi | browser/modules/drawTools/index.js | JavaScript | agpl-3.0 | 1,079 |
(function ( mw, $ ) {
"use strict";
mw.dualScreenControlBar = function (settings){
this.$controlBar = null;
this.embedPlayer = settings.embedPlayer;
this.templatePath = settings.templatePath;
this.menuFadeout = settings.menuFadeout;
this.cssClass = settings.cssClass;
this.nativeAppTooltip = "Switching con... | abaylis/mwEmbed | modules/KalturaSupport/components/dualScreen/dualScreenControlBar.js | JavaScript | agpl-3.0 | 6,529 |
import Component from '@ember/component';
import { computed } from '@ember/object';
import VectorLayer from 'ol/layer/Vector';
import VectorSource from 'ol/source/Vector';
import Icon from 'ol/style/Icon';
import Style from 'ol/style/Style';
export default class TakeoffsLayer extends Component {
tagName = '';
ma... | skylines-project/skylines | ember/app/components/takeoffs-layer.js | JavaScript | agpl-3.0 | 975 |
import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import StatTracker from 'parser/shared/modules/StatTracker';
import Component from './Component/index';
// TODO: Remove and make part of interface/Report/Results and async load (chunk)
class CharacterTab extends Analyzer {
static dependencies ... | FaideWW/WoWAnalyzer | src/parser/shared/modules/features/CharacterTab/index.js | JavaScript | agpl-3.0 | 537 |
import { gql } from 'react-apollo'
// user mutations
export const CREATE_USER_MUTATION = gql`
mutation CreateUserMutation($name: String!, $email: String!, $password: String!) {
createUser(name: $name, authProvider: { email: { email: $email, password: $password } }) {
id
}
signinUser(email: { email... | mimccio/komi-app | src/graphql/mutations.js | JavaScript | agpl-3.0 | 2,444 |
import _ from 'lodash';
import PreferedCvItemsConfigDirective from './PreferedCvItemsConfigDirective';
import MetaPlaceDirective from './MetaPlaceDirective';
MetadataCtrl.$inject = [
'$scope', 'desks', 'metadata', 'privileges', 'datetimeHelper',
'preferencesService', 'config', 'moment', 'content',
];
function... | jerome-poisson/superdesk-client-core | scripts/apps/authoring/metadata/metadata.js | JavaScript | agpl-3.0 | 47,809 |
/*
* This file is part of FortressJS - Fast, secure, powerful and simple I/O framework
* Copyright (c) 2014-2016 Adrien THIERRY
* http://fortressjs.com - http://seraum.com
*
* sources : https://github.com/seraum/fortressjs
*
* this program is free software: you can redistribute it and/or modify
* it under the t... | seraum/fortpress | base/essential/app.essential.js | JavaScript | agpl-3.0 | 4,149 |
$(document).ready(function() {
$("#tshare").submit(function(event) {
event.preventDefault();
N.json.profile.share($(this).serialize(),function(d) {
if(d.status == 'ok')
{
$(this).html('<h1>' + d.message + '</h1>');
}
else
{
... | nerdzeu/nerdz-template-stillblack | js/share.js | JavaScript | agpl-3.0 | 404 |
OC.L10N.register(
"news",
{
"Feed contains invalid XML" : "В ленте присутствует недействительный XML",
"Feed not found: either the website does not provide a feed or blocks access. To rule out blocking, try to download the feed on your server's command line using curl: curl http://the-feed.tld" : "Новос... | IBBoard/news | l10n/ru.js | JavaScript | agpl-3.0 | 12,909 |
builder.CreateFile("docx");
var oDocument = Api.GetDocument();
var oParagraph, oParaPr;
var oMyStyle = oDocument.CreateStyle("My document style");
oParaPr = oMyStyle.GetParaPr();
oParaPr.SetContextualSpacing(true);
oParagraph = oDocument.GetElement(0);
oParagraph.AddText("This is a paragraph with contextual spacing set... | ONLYOFFICE/doc-builder-testing | asserts/js/docx/smoke/api_para_pr/set_contextual_spacing.js | JavaScript | agpl-3.0 | 1,035 |
const webpack = require('webpack')
const path = require('path')
var config = {
entry: [
'./src/main'
],
output: {
path: path.join(__dirname, '..'),
filename: 'litewrite.min.js'
},
plugins: [
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.NoErrorsPlugin(),
new webpack.IgnoreP... | xMartin/litewrite | scripts/webpack.config.js | JavaScript | agpl-3.0 | 1,242 |
var extend = Object.assign || require('util')._extend
// short names for common things
var shorthands = {
'un': 'uninstall',
'rb': 'rebuild',
'list': 'ls',
'ln': 'link',
'i': 'install',
'it': 'install-test',
'up': 'update',
'c': 'config',
's': 'search',
'se': 'search',
'unstar': 'star', // same f... | MostafaHirsi/etherpad-lite-heroku | etherpad-lite/src/node_modules/npm/lib/config/cmd-list.js | JavaScript | agpl-3.0 | 1,864 |
'use strict';
const slug = require('limax');
const cdn = require('dumonda-me-server-lib').cdn;
const db = requireDb();
const security = require('./security');
const uuid = require('dumonda-me-server-lib').uuid;
const time = require('dumonda-me-server-lib').time;
const logger = require('dumonda-me-server-lib').logging.... | Elyoos/Elyoos | dumondaMe/api/models/superUser/question/suggestion/create.js | JavaScript | agpl-3.0 | 1,812 |
// retina.js, a high-resolution image swapper (http://retinajs.com), v0.0.2
(function () {
function t(e) {
this.path = e;
var t = this.path.split("."), n = t.slice(0, t.length - 1).join("."), r = t[t.length - 1];
this.at_2x_path = n + "@2x." + r
}
function n(e) {
this.el = ... | tiltfactor/mg-game | www/js/retina.js | JavaScript | agpl-3.0 | 1,943 |
import cockpit from "cockpit";
import QUnit from "qunit-tests";
QUnit.test("basic", function (assert) {
const done = assert.async();
assert.expect(4);
const channel = cockpit.channel({ payload: "echo" });
let pass = 0;
const onControl = (ev, options) => {
if (pass === 0) {
ass... | cockpit-project/cockpit | pkg/base1/test-echo.js | JavaScript | lgpl-2.1 | 3,473 |
/* jshint ignore:start */
/* -*- mode: javascript; c-basic-offset: 4; indent-tabs-mode: nil -*- */
//
// Dalliance Genome Explorer
// (c) Thomas Down 2006-2013
//
// kspace.js
//
if (typeof(require) !== 'undefined') {
var utils = require('./utils');
var Awaited = utils.Awaited;
var pusho = utils.pusho;... | Pagesmith/pagesmith-core | htdocs/core/dalliance/js/kspace.js | JavaScript | lgpl-3.0 | 9,463 |
isc.DataSource.create({
ID:"dsField",
fields : [
{ name:"name" },
{ name:"title" },
{ name:"type", valueMap:["text","boolean","date","int","decimal","link"]},
{ name:"required", title:"req", type:"boolean", width:40},
{ name:"hidden", title:"hide", type:"boolean", width:4... | kylemwhite/isc | isomorphic_11.1p/system/reference/inlineExamples/extending/customizeFields.js | JavaScript | lgpl-3.0 | 1,597 |
/**
* Created by wlh on 2016/10/10.
*/
'use strict';
let money2Hanzi = require('./index');
let assert = require("assert");
describe('index.js', function() {
it("10011001 => 壹仟零壹万壹仟零壹元整 should be ok", function() {
assert.equal('壹仟零壹万壹仟零壹元整', money2Hanzi.toHanzi(10011001))
})
it("11011011 => 壹仟壹佰零壹万壹仟... | wanglihui/money2hanzi | test.js | JavaScript | lgpl-3.0 | 1,115 |
'use strict';
var path = require('path');
var gulp = require('gulp');
var conf = require('./conf');
var $ = require('gulp-load-plugins')({
pattern: ['gulp-*', 'main-bower-files', 'uglify-save-license', 'del']
});
gulp.task('partials', function () {
return gulp.src([
path.join(conf.paths.src, '/app/**/*.html'... | OlivierDupre/osteo | gulp/build.js | JavaScript | lgpl-3.0 | 2,731 |
import * as CANNON from './dependencies/cannon-es.js';
let world = null;
let lastCallTime;
const timeStep = 1 / 60;
const init = () => {
world = new CANNON.World();
world = new CANNON.World({
gravity: new CANNON.Vec3(0, -9.82, 0), // m/s²
});
world.quatNormalizeSkip = 0;
world.... | seriva/GenesisDeviceJS | app/src/physics.js | JavaScript | lgpl-3.0 | 971 |
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2004-2010 1&1 Internet AG, Germany, http://www.1und1.de
License:
LGPL: http://www.gnu.org/licenses/lgpl.html
EPL: http://www.eclipse.org/org/d... | sebastienhupin/qxrad | qooxdoo/application/widgetbrowser/source/class/widgetbrowser/MControls.js | JavaScript | lgpl-3.0 | 4,192 |
var searchData=
[
['detect',['Detect',['../class_yandex_1_1_translator_1_1_i_yandex_translator_extensions.html#adf436ce24d63c6b3be3174dfcb69f6ea',1,'Yandex.Translator.IYandexTranslatorExtensions.Detect(this IYandexTranslator translator, string text)'],['../class_yandex_1_1_translator_1_1_i_yandex_translator_extension... | prokhor-ozornin/Yandex.NET.Translator | doc/html/search/functions_2.js | JavaScript | lgpl-3.0 | 922 |
qx.Theme.define("qx.test.theme.manager.mock.Decoration",
{
extend : qx.theme.modern.Decoration,
decorations :
{
"button" :
{
style :
{
radius: 10,
color: "border-button",
width: 2,
startColor: "button-start",
endColor: "button-end",
startColorPo... | sebastienhupin/qxrad | qooxdoo/framework/source/class/qx/test/theme/manager/mock/Decoration.js | JavaScript | lgpl-3.0 | 384 |
define("rhAddonControllers", [ "SHARED/jquery", "SHARED/juzu-ajax","SHARED/userInvitation","calendar"], function($, jz,invite,calendar) {
var rhCtrl = function($scope, $q, $timeout, $http, $filter, Upload) {
var rhContainer = $('#rhAddon');
var deferred = $q.defer();
$scope.infoPageUrl = ... | exo-addons/rh-requests-management | portlet/src/main/java/org/exoplatform/rhmanagement/portlet/rhManagement/assets/js/controllers.js | JavaScript | lgpl-3.0 | 33,616 |
/**
* Copyright (C) 2005-2015 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at ... | nzheyuti/Aikau | aikau/src/test/resources/alfresco/layout/AlfTabContainerTest.js | JavaScript | lgpl-3.0 | 29,314 |
var assert = require('assert')
, should = require('should')
, utils = require('../../lib/utils');
/**
* Tests
*/
describe('Utils', function() {
it('should have a function (defaultYear) that respond current year', function(done) {
var now = new Date();
var year = utils.defaultYear();
year.sh... | magiccyril/Tempo-API | test/lib/test-utils.js | JavaScript | lgpl-3.0 | 6,427 |
/*
* Creative Commons Copyright 2013 Ursudio <[email protected]>
* http://www.ursudio.com/
* Please attribute Ursudio in any production associated with this javascript plugin.
*/
L.TileLayer.WebGLHeatMap = L.Class.extend({
options: {
size: 30000, // in meters
opacity: 1,
gradientTexture: fals... | merlijntishauser/ripe-hackathon-disco | web/demo/js/webgl-heatmap-leaflet.js | JavaScript | lgpl-3.0 | 4,104 |
/*!
* Copyright (c) Metaways Infosystems GmbH, 2011
* LGPLv3, http://opensource.org/licenses/LGPL-3.0
*/
Ext.ns('MShop.panel.order.base.address');
MShop.panel.order.base.address.DeliveryItemUi = Ext.extend(Ext.FormPanel, {
title : MShop.I18n.dt('admin', 'Delivery address'),
flex : 1,
autoScroll : tru... | aimeos/ai-admin-extadm | admin/extjs/src/panel/order/address/DeliveryItemUi.js | JavaScript | lgpl-3.0 | 7,495 |
/*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... | lbndev/sonarqube | server/sonar-web/src/main/js/helpers/handlebars/t.js | JavaScript | lgpl-3.0 | 974 |
'use strict';
var passport = require('../../core/utility/Passport');
module.exports = function (app) {
var controller = app.controllers.api.Interpolator;
app.post(app.locals.BASE_URL + 'api/Interpolator', passport.isAuthenticated, controller.post);
app.get(app.locals.BASE_URL + 'api/Interpolator', passport.isA... | TerraMA2/terrama2 | webapp/routes/api/Interpolator.js | JavaScript | lgpl-3.0 | 551 |
import selfAndParents from "./selfAndParents.js";
/**
* Returns an array with all DOM elements affected by an event.
* The function serves as a polyfill for
* [`Event.composedPath()`](https://dom.spec.whatwg.org/#dom-event-composedpath).
*
* @category Event
* @param {Event} evt The triggered event.
* @return {A... | leofavre/canivete | dist/getEventPath.js | JavaScript | unlicense | 1,361 |
exports.command = {
name: "file",
autoload: true,
unloadable: false,
min_rank: 0,
display: "Show a list of files, or a the content of one",
help: "There can be a number of files available for you to read. This is the command used to either list or read them.",
usage: ".file [<filename>]",
execute: function(soc... | marado/TalkerNode | commands/file.js | JavaScript | unlicense | 1,132 |
import { configure, addDecorator } from '@kadira/storybook';
import { ThemeProvider } from 'styled-components'
import React from 'react';
import '../src/index.css';
addDecorator((story) => (
<ThemeProvider theme={{buttonColor: 'LightSkyBlue'}}>
{story()}
</ThemeProvider>
))
function loadStories() {
require(... | amsb/storybook_styled-components_example | .storybook/config.js | JavaScript | unlicense | 374 |
// Only create main object once
if (!Zotero.BetterBibTeX) {
var loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"].getService(Components.interfaces.mozIJSSubScriptLoader);
loader.loadSubScript("chrome://zotero-better-bibtex/content/dict.js");
loader.loadSubScript("chrome://zotero-better-bibtex/cont... | adunning/zotero-better-bibtex | chrome/content/zotero-better-bibtex/include.js | JavaScript | unlicense | 517 |
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... | pankajpatel/dates | lib/d-day/d-day.js | JavaScript | unlicense | 2,410 |
import React from 'react';
import Reflux from 'reflux';
import DocTitle from 'components/docTitle';
import MediaSigninButtons from 'components/mediaSigninButtons';
import LocalSignupForm from 'components/localSignupForm';
import authStore from 'stores/auth';
export default React.createClass( {
mixins: [
... | FrontSmith/FSFramework | client/src/app/views/signup.js | JavaScript | unlicense | 1,667 |
define([
"jquery",
"thorax"
], function (jQuery, Thorax) {
/**
* @module bauplan%layout%controller
* @description View and SubView handling
*
* var LayoutController = require("bauplan.layout.controller");
*
* or as part of the Bauplan bundle
*
* var Bauplan = require("bauplan");
* ... | solidgoldpig/bauplan | js/bauplan.layout.controller.js | JavaScript | unlicense | 12,216 |
var Vertex = function(){
function Vertex( params ){
for( var key in params) {
this[key] = params[key];
}
this.neighbours = [];
}
function clone(){
var out = new Vertex();
for( var key in this){
out[ key ] = this[key];
}
re... | nicoptere/graph | graph/Vertex.js | JavaScript | unlicense | 443 |
define(["jquery", "modules/RestCakeClient"], function ($, RestCakeClient) {
var $$JsClassName = function (serviceUrl) {
// Private variables
var self = this;
this._client = new RestCakeClient(serviceUrl);
this.defaultErrorHandler = function(err)
{
if (err && typeof err === "string")
{
alert("Err... | sam-meacham/restcake | src/RestCake/Clients/Js/AmdClient2.js | JavaScript | apache-2.0 | 717 |
/*************************************************************
*
* MathJax/localization/cdo/HTML-CSS.js
*
* Copyright (c) 2009-2017 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain ... | jinntrance/mathjax | unpacked/localization/cdo/HTML-CSS.js | JavaScript | apache-2.0 | 950 |
/**
* Symbol Art Editor
*
* @author malulleybovo (since 2021)
* @license GNU General Public License v3.0
*
* @licstart The following is the entire license notice for the
* JavaScript code in this page.
*
* Copyright (C) 2021 Arthur Malulley B. de O.
*
*
* The JavaScript code in this page is free softwar... | malulleybovo/SymbolArtEditorOnline | src/components/ui/UIColorPicker.js | JavaScript | apache-2.0 | 27,823 |
'use strict';
var diffex = require('diffex');
var domready = require('domready');
domready(function() {
var template = document.getElementById('template');
var input = document.getElementById('input');
var result = document.getElementById('result');
var extract = document.getElementById('extract');
functio... | flowxo/diffex | demo/index.js | JavaScript | apache-2.0 | 499 |
import jsonp from '@utils/jsonp'
import {commonParams, options} from './config'
export function getHotKey() {
const url = 'https://c.y.qq.com/splcloud/fcgi-bin/gethotkey.fcg'
const data = Object.assign({}, commonParams, {
uin: 0,
needNewCode: 1,
platform: 'h5',
})
return jsonp(url, data, options)... | styleyan/vue-music | src/api/search.js | JavaScript | apache-2.0 | 793 |
describe('coreos.services.pollerSvc', function () {
'use strict';
var pollerSvcProvider, pollerSvc, mockScope, $timeout, mockPromise, $q;
beforeEach(function () {
// Initialize the service provider by injecting it to a fake module's
// config block.
angular.module('testApp', [], function () {})
... | coreos/coreos-web | src/module/poller.test.js | JavaScript | apache-2.0 | 5,370 |
import NewGroupModule from './newGroup'
import NewGroupController from './newGroup.controller';
import NewGroupComponent from './newGroup.component';
import NewGroupTemplate from './newGroup.html';
describe('NewGroup', () => {
let $rootScope, makeController;
beforeEach(window.module(NewGroupModule.name));... | netfox01/Piggy | client/app/components/newGroup/newGroup.spec.js | JavaScript | apache-2.0 | 1,612 |
export function bufferDeletedBook(deletedBook) {
return {
type: 'BUFFER_FOR_DELETED_BOOK',
deletedBook
}
}
export function clearDeletedBook(){
return {
type: 'CLEAR_BOOK_BUFFER'
}
}
| MelanistOnca/bookList | public/js/actions/deletedBook.js | JavaScript | apache-2.0 | 205 |
/**
Copyright 2014 Gordon Williams ([email protected])
This Source Code is subject to the terms of the Mozilla Public
License, v2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
------------------------------------------------------------------
Actual ... | amperka/EspruinoTools | core/flasher.js | JavaScript | apache-2.0 | 15,435 |
/**
* This module provides the controller for the settings page.
*/
(function(ng, $) {
var module = ng.module("settings", [
"router",
"resources"
]);
// define url /settings
module.config(function(routerProvider) {
routerProvider.when("settings", "/settings", {
controller: "settingsCtrl",
templateUrl... | XMBomb/InComb | WebContent/js/settings.js | JavaScript | apache-2.0 | 736 |
'use strict';
var BoundingSphere = require('./BoundingSphere');
var Cartesian3 = require('./Cartesian3');
var ComponentDatatype = require('./ComponentDatatype');
var defaultValue = require('./defaultValue');
var defined = require('./defined');
var DeveloperError = require('./DeveloperError');
var Ellipsoid = require('... | lasalvavida/node-cesium-experimental | Modules/Core/lib/WallOutlineGeometry.js | JavaScript | apache-2.0 | 14,155 |
/*globals initTestDB, emit, generateAdapterUrl, PouchDB */
/*globals PERSIST_DATABASES, initDBPair, openTestDB, putAfter */
/*globals cleanupTestDatabases, strictEqual */
"use strict";
var adapters = [
['local-1', 'http-1'],
['http-1', 'http-2'],
['http-1', 'local-1'],
['local-1', 'local-2']];
var qunit = mod... | codeforboston/ma-laws | js/pouchdb/tests/test.replication.js | JavaScript | apache-2.0 | 30,859 |
module.exports = function(request, response, next) {
var async = require('async'),
sprintf = require('sprintf').sprintf,
app = request.shell,
redis = app.settings.redis;
var fs = require('fs');
async.waterfall([
function (callback) {
require('./keys_regexp')(request, callback);
... | wf9a5m75/redis-ex-cli | includes/hset.js | JavaScript | apache-2.0 | 1,168 |
importScripts('serviceworker-cache-polyfill.js');
var CACHE_VERSION = 1;
var CURRENT_CACHES = {
mycache: 'my-cache-v-' + CACHE_VERSION
};
self.addEventListener('install', function(event) {
var urlsToCache = [
'/index.html',
'/css/main.css'
];
console.log("Install:", urlsToCache);
event.waitUntil... | justinribeiro/service-worker-codelab-gdg-oakdale | step-03/service-worker.js | JavaScript | apache-2.0 | 2,589 |
/*
* Copyright (c) 2014 DataTorrent, Inc. ALL Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | andyperlitch/malhar-ui-console-2 | js/app/lib/widgets/OpChartWidget/lib/OpChartView.js | JavaScript | apache-2.0 | 730 |
var syn = angular.module("syn", []);
syn.controller("modulec", function ($scope) {
$scope.aa = "測試一下";
$scope.uInput="123";
//$scope.first_controller= uInput;
//myservice.variablename = $scope.first_controller;
//$scope.second_controller= myservice.variablename;
});
/*
angular.module("test", [])
.con... | x8830102/lifepay | js/syn.js | JavaScript | apache-2.0 | 1,061 |
function closeAll() {
$('.modal').modal('hide');
}
$(function () {
$(".modal-content").draggable({
handle: ".modal-header"
});
//Clear modal content for reuse the wrapper by other functions
$('body').on('hidden.bs.modal', '.modal', function () {
$(this).removeData('bs.modal');
});... | tmkasun/pysmsgate | assets/js/application.js | JavaScript | apache-2.0 | 326 |
var hierarchyPresets = [
{
"name": "Named Entity Recognition (NER)",
"entities": [
"Person",
"Organisation",
"Location",
"Miscellaneous"
]
},
{
"name": "Fine-grained Entity Recognition (FIGER)",
"entities": [
... | Michael-Stewart-Webdev/annotation-tool | tagging_interface/src/views/NewProjectView/functions/hierarchy_presets.js | JavaScript | apache-2.0 | 13,583 |
define('require-style!less/desktop/controls',[],function(){});
define('require-style!less/phone/controls',[],function(){});
// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
define('WinJ... | xirzec/winjs-modules | WinJS/Controls/DatePicker.js | JavaScript | apache-2.0 | 37,303 |
module.exports = {
projects: [
{
displayName: "Browser tests",
testEnvironment: "jsdom",
setupFilesAfterEnv: ["jest-extended"],
},
{
displayName: "Node tests",
testEnvironment: "node",
setupFilesAfterEnv: ["jest-extended"],
},
{
displayName: "ESLint",
... | mopidy/mopidy.js | jest.config.js | JavaScript | apache-2.0 | 457 |
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
const { SpecReporter } = require('jasmine-spec-reporter');
exports.config = {
allScriptsTimeout: 11000,
specs: [
'./supp-benefits/src/mspsb-happy-path.e2e-spec.ts'
],
multiCap... | bcgov/MyGovBC-MSP | e2e/protractor.supp-benefits.conf.js | JavaScript | apache-2.0 | 1,837 |
(function() {
'use strict';
angular
.module('wordsearchApp')
.directive('jhSort', jhSort);
function jhSort () {
var directive = {
restrict: 'A',
scope: {
predicate: '=jhSort',
ascending: '=',
callback: '&'
... | hillwater/wordsearch | src/main/webapp/app/components/util/sort.directive.js | JavaScript | apache-2.0 | 2,375 |
// Load modules
var Events = require('events');
var Lab = require('lab');
var Hapi = require('..');
// Declare internals
var internals = {};
// Test shortcuts
var expect = Lab.expect;
var before = Lab.before;
var after = Lab.after;
var describe = Lab.experiment;
var it = Lab.test;
describe('Protect', function ... | thebillkidy/RandomProjects | NodeJS/HapiAndLabTDDTutorial/node_modules/hapi/test/protect.js | JavaScript | apache-2.0 | 3,103 |
'use strict';
/* App Module */
angular.module('main', ['ngRoute', 'LocalStorageModule'])
.config(['$routeProvider', 'localStorageServiceProvider', function ($routeProvider, localStorageServiceProvider) {
localStorageServiceProvider.setPrefix('st2Storage');
$routeProvider
.when('/graph', {
templ... | StackStorm/graph | web/main.js | JavaScript | apache-2.0 | 1,305 |
/*!
* ${copyright}
*/
// Provides class sap.ui.core.util.ExportColumn
sap.ui.define([
'sap/ui/base/ManagedObject',
'./ExportCell' // convenience dependency for legacy code that uses global names
],
function(ManagedObject) {
'use strict';
/**
* Constructor for a new ExportColumn.
*
* @param {string} [sId]... | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/util/ExportColumn.js | JavaScript | apache-2.0 | 1,103 |
/*
* Copyright 2014 Per Eckerdal
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | pereckerdal/overman | test/test_test_path_util.js | JavaScript | apache-2.0 | 1,080 |
import { logger } from '../logger.js';
import Rectangle from './rectangle.js';
import Screen from './screen.js';
/**
* A window
*/
export default class Frame {
constructor(parent, xid, props) {
//console.log("Q")
//console.log({parent, xid, props});
this.dimensions = new Rectangle(0,0,1,1);
//console.log("R... | ellis/AirWM | old/objects/Frame.js | JavaScript | apache-2.0 | 2,329 |
/**
* This layout manager is used to center contents within a container. As a subclass of
* {@link Ext.layout.container.Fit fit layout}, CenterLayout expects to have one child
* item; multiple items will be placed overlapping. The layout does not require any config
* options. Items in the container can use percenta... | rzen/link-rest-cms-demo | src/main/webapp/ext/src/layout/container/Center.js | JavaScript | apache-2.0 | 5,297 |
function Controller() {
function showSpinner() {
$.activityIndicator.show();
}
function hideSpinner() {
$.activityIndicator.hide();
}
require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
this.__controllerPath = "Widgets/Loading";
arg... | eduardo-itexico/cultura_mob | Resources/alloy/controllers/Widgets/Loading.js | JavaScript | apache-2.0 | 1,751 |
const express = require('express');
const bodyParser = require('body-parser');
const cors = require('cors');
const Realm = require('realm');
const RealmQuery = require('./RealmQuery');
const { isNil, resultsToPlainArray } = require('./utils');
const utils = require('../../../../www/utils');
const app = express();
app... | airamrguez/cordova-plugin-realm | src/browser/server/src/index.js | JavaScript | apache-2.0 | 2,888 |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors.server.controller'),
Bookito = mongoose.model('Bookito'),
_ = require('lodash');
/**
* Create a Bookito
*/
exports.create = function(req, res) {
var bookito = new Bookito(req.body);
bookito.user =... | jdbranham/bookito | app/controllers/bookitos.server.controller.js | JavaScript | apache-2.0 | 2,037 |
var tty = require("tty"),
keypress = require("keypress");
var util = {};
util.setRawMode = function(mode) {
if (process.stdin.setRawMode) {
process.stdin.setRawMode(mode);
} else {
tty.setRawMode(mode);
}
};
util.passphrase = function(prompt, callback) {
process.stderr.write(promp... | dcodeIO/endecrypt | src/cli.js | JavaScript | apache-2.0 | 1,278 |
function viewTransferContent(id, transfer_type, transfer_description){
transferContentWin.show();
var selection = Ext.getCmp('orderGrid').getView().getSelectionModel().getSelection();
if(selection[0].get('can_review') == 1){
Ext.getCmp('transferReviewBtn').enable();
}else{
Ext.getCmp('transfe... | eoasoft/evolve | application/modules/erp/views/scripts/purchse/order/js/transfer.js | JavaScript | apache-2.0 | 5,966 |
/**
* @author Diego Lafuente
*/
Ti.include(Titanium.Filesystem.resourcesDirectory + 'api/util/core.js');
/**
* The XML Reader string class. Receives an xml string and a description map and returns an array of objects
* @param xmlString: the xml in string format
* @param descriptionMap: an array representing the ... | DiegoTUI/TuiTiApi | Resources/api/IO/XmlReader.js | JavaScript | apache-2.0 | 6,278 |
const logger = require('log4js').getLogger('Role');
const validRoles = ['admin', 'manager', 'user'];
/**
* Crea una nueva instancia de rol de usuario de negocio.
* @constructor
* @this {Role}
* @param {string} type Tipo de rol [admin||user||manager].
* @return {Role} nuevo rol.
*/
function Role(type = '') {
... | zaragozamartin91/taller2SharedServer | model/Role.js | JavaScript | apache-2.0 | 3,359 |
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | BladeRunnerJS/brjs-JsTestDriver | JsTestDriver/src/com/google/jstestdriver/javascript/TestRunFilter.js | JavaScript | apache-2.0 | 6,027 |
var searchData=
[
['quality_5fblob_5fpc',['quality_blob_pc',['../a02479.html#a8feb6e6d0d216514b3fa83ca2f4078e5',1,'tesseract::Tesseract']]],
['quality_5fchar_5fpc',['quality_char_pc',['../a02479.html#a90fbdb46a983a7da9a3625a8e5a5fe5a',1,'tesseract::Tesseract']]],
['quality_5fmin_5finitial_5falphas_5freqd',['quali... | stweil/tesseract-ocr.github.io | 4.0.0/search/variables_10.js | JavaScript | apache-2.0 | 814 |
var searchData=
[
['ana',['ana',['../d4/dfc/interface_r_h_printjob.html#a646c6a3f321de56b29bfe23cf96ee4b3',1,'RHPrintjob']]],
['autoplacecopies',['autoplaceCopies',['../d0/d34/interface_s_t_l_composer.html#ad09c6aeaf119dc107606cb48b90d7e53',1,'STLComposer']]],
['avgbedcolor',['avgBedColor',['../d7/d99/interface_t... | repetier/Repetier-Host-Mac | docs/classes/html/search/properties_61.js | JavaScript | apache-2.0 | 843 |
'use strict';
var bigTanh = require('../../util/bignumber').tanh_coth;
function factory (type, config, load, typed) {
var collection = load(require('../../type/matrix/collection'));
/**
* Calculate the hyperbolic tangent of a value,
* defined as `tanh(x) = (exp(2 * x) - 1) / (exp(2 * x) + 1)`.
... | mikberg/mathjs | lib/function/trigonometry/tanh.js | JavaScript | apache-2.0 | 2,075 |
var searchData=
[
['oam_5fflow_5fremoved',['OAM_FLOW_REMOVED',['../ofp-util_8h.html#a74eb35100ca14b7b520dacbb9522e311a76dfbe4ec60ba6e1aebf052b43dbdcc6',1,'ofp-util.h']]],
['oam_5fn_5ftypes',['OAM_N_TYPES',['../ofp-util_8h.html#a74eb35100ca14b7b520dacbb9522e311a3ac90656f4476bc0b91309283c6207fc',1,'ofp-util.h']]],
... | vladn-ma/vladn-ovs-doc | doxygen/ovs_all/html/search/enumvalues_d.js | JavaScript | apache-2.0 | 231,425 |
// Copyright 2018, Google, Inc.
// Licensed under the Apache License, Version 2.0 (the 'License');
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... | actions-on-google/dialogflow-helper-intents-nodejs | functions/helper-intents/ask-for-datetime.js | JavaScript | apache-2.0 | 1,468 |
import {toContextualLogsUrl} from '../../js/component_data/trace';
describe('toContextualLogsUrl', () => {
it('replaces token in logsUrl when set', () => {
const kibanaLogsUrl = 'http://company.com/kibana/#/discover?_a=(query:(query_string:(query:\'{traceId}\')))';
const traceId = '86bad84b319c8379';
toC... | soundcloud/zipkin | zipkin-ui/test/component_data/trace.test.js | JavaScript | apache-2.0 | 893 |
/*
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | tmatsuo/appengine-angular-guestbook-java | src/main/webapp/js/app.js | JavaScript | apache-2.0 | 1,018 |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | stdlib-js/stdlib | lib/node_modules/@stdlib/array/int8/benchmark/benchmark.fill.length.js | JavaScript | apache-2.0 | 1,809 |
import classNames from "classnames";
import React from "react";
import { Tooltip } from "reactjs-components";
import HealthBarStates from "../constants/HealthBarStates";
import StatusBar from "../../../../../src/js/components/StatusBar";
class HealthBar extends React.Component {
getMappedTasksSummary(tasksSummary) ... | jcloud-shengtai/dcos-ui_CN | plugins/services/src/js/components/HealthBar.js | JavaScript | apache-2.0 | 3,083 |
//// [incrementOperatorWithAnyOtherTypeInvalidOperations.js]
// ++ operator on any type
var ANY1;
var ANY2 = [1, 2];
var obj;
var obj1 = { x: "", y: function () {
} };
function foo() {
var a;
return a;
}
var A = (function () {
function A() {
}
A.foo = function () {
var a... | fdecampredon/jsx-typescript-old-version | tests/baselines/reference/incrementOperatorWithAnyOtherTypeInvalidOperations.js | JavaScript | apache-2.0 | 1,656 |
import mx from '../../multiplex';
import * as mocks from './_mocks';
import {
qmodule,
qtest
} from '../../qunit';
qmodule('linq-to-array');
qtest('collections to-array method tests', function (assert) {
var len = mocks.array.length;
assert.equal(mx(mocks.array).toArray().length, len, 'Test toArray in... | multiplex/multiplex.js | test/unit/linq/to-array.js | JavaScript | apache-2.0 | 2,351 |
$().ready(function(){
SyntaxHighlighter.all();
$("#_hArticleId").val("${article.articleId}");
showComment();
tagsInit();
});
function tagsInit(){
var div = $("#_articleContentTags");
div.empty();
// var tagList = '${article.tagList}';
var tagList = eval('('+ '${article.tagList}' +')');
... | KenKwan/blog | thymeleaf.blog/src/main/resources/static/js/default/articleContent.js | JavaScript | apache-2.0 | 741 |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | stdlib-js/stdlib | lib/node_modules/@stdlib/math/iter/special/avercos/lib/index.js | JavaScript | apache-2.0 | 1,213 |