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
/* * ../../../..//jax/output/HTML-CSS/fonts/STIX-Web/Operators/Bold/Main.js * * Copyright (c) 2009-2018 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 a copy of the License at * ...
GerHobbelt/MathJax
jax/output/HTML-CSS/fonts/STIX-Web/Operators/Bold/Main.js
JavaScript
apache-2.0
7,233
(function() { 'use strict'; angular.module('angularities', ['ngRoute']) .config(function($routeProvider) { $routeProvider .when('/', { templateUrl: 'main.html' }); //.when('/dashboard', { templateUrl: 'app/panel/dashboard/views/configuration.html' }); }); })();
Muzietto/angularities
app/app.js
JavaScript
apache-2.0
300
/** * The entry point for TAL based applications using node.js * * @copyright Copyright (c) 2013 British Broadcasting Corporation * (http://www.bbc.co.uk) and TAL Contributors (1) * * (1) TAL Contributors are listed in the AUTHORS file and at * https://github.com/fmtvp/TAL/AUTHORS - please extend this file, ...
hbbtvSenegal/exemples
exempleVodSimple/index.js
JavaScript
apache-2.0
6,591
function update_display(elements) { console.log(elements); $('#response h2').text(elements.title); $("#response li").remove(); var res_ul = $("#response ul") $.each(elements.content, function(i, element) { res_ul.append('<li>' + element + '</li>') }) $("#response").removeClass("l...
sakshaat/noclick
static/script.js
JavaScript
apache-2.0
1,569
/** * @license Copyright 2017 The Lighthouse Authors. 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 applica...
GoogleChrome/lighthouse
lighthouse-cli/test/smokehouse/test-definitions/byte-gzip.js
JavaScript
apache-2.0
1,945
// // // // <ul> // <li> Redcom Ltda <www.redcom.com.co></li> // <li> Proyecto PNCAV</li> // </ul> // // // JavaScript Despliegues // // @package templates // @subpackage scripts // @author Redcom Ltda // @version 2013.01.00 // @copyright Ministerio de Transporte // function validar_add_despliegu...
josdavidmo/orion
templates/scripts/validar/despliegues.js
JavaScript
apache-2.0
2,536
define([ 'knockout', 'text!./role-import.html', 'components/Component', 'utils/AutoBind', 'utils/CommonUtils', 'pages/configuration/roles/roleJsonParser', 'services/User', 'services/AuthAPI', 'services/role', 'databindings', 'components/ac-access-denied', 'components/heading', 'components/empt...
OHDSI/Atlas
js/pages/configuration/roles/role-import.js
JavaScript
apache-2.0
3,983
import React from 'react' import {compose} from 'redux' import {connect} from 'react-redux' import {withDataProviders} from 'data-provider' import {ListGroup} from 'reactstrap' import type {Colab, State} from '../../../state' import {colabsSelector} from '../../../selectors' import {colabsProvider} from '../../../dataP...
verejnedigital/verejne.digital
client/src/components/Playground/components/ColabList.js
JavaScript
apache-2.0
884
/* * Copyright 2020 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
GoogleForCreators/web-stories-wp
packages/design-system/src/components/button/constants.js
JavaScript
apache-2.0
1,011
/* * netsuite-js * https://github.com/CrossLead/netsuite-js * * Copyright (c) 2015 Christian Yang * Licensed under the Apache license. */ 'use strict'; var denodeify = require('denodeify'); var NetSuite = require('../'); var credentials = require('./credentials.json'); var config = new NetSuite.Configuration(c...
CrossLead/netsuite-js
example/searchAdvanced.js
JavaScript
apache-2.0
2,324
( function($) { 'use strict'; $(function(e) { /*------------------------------------------------------------------ Category-Slider -------------------------------------------------------------------*/ $('#category_slider .owl-carousel').owlCarousel({ loop:true, margin:15, nav:true, autopla...
MikeLockz/safe-exchange
app/views/assets/js/interface.js
JavaScript
apache-2.0
3,504
import getPublicPath from 'koot/utils/get-public-dir' import db from '@database' const publicPath = __DEV__ ? '/' : getPublicPath() const ext = __CLIENT__ && self._html && self._html.classList.contains('webp') ? '.webp' : '.png' const getUri = (type, id, file, revision) => { const sampleShip = db.ships[1] c...
Diablohu/WhoCallsTheFleet-Yuubari
src/utils/get-pic.js
JavaScript
apache-2.0
2,181
(function ($) { "use strict"; $('.menu>li').slice(-2).addClass('last-elements'); $(window).on('scroll',function() { var scroll = $(window).scrollTop(); if (scroll < 245) { $(".header-sticky").removeClass("sticky"); }else{ $(".header-sticky").addClass("sticky"); } }); ...
laneypham/laneypham.github.io
js/main.js
JavaScript
apache-2.0
4,925
/* * ../../../..//localization/he/MathMenu.js * * Copyright (c) 2009-2018 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 a copy of the License at * * http://www.apache.org/l...
GerHobbelt/MathJax
localization/he/MathMenu.js
JavaScript
apache-2.0
13,069
/* * jQuery Mobile v1.4.5 * http://jquerymobile.com * * Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license. * http://jquery.org/license * */ (function ( root, doc, factory ) { if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous modul...
gurdilou/LylooChat
LyloochatApp/www/bower_components/jquery-mobile/jquery.mobile.custom.js
JavaScript
apache-2.0
112,595
clusterOperationPseudoGTIDMode = ($.cookie("operation-pgtid-mode") == "true"); var renderColors = ["#ff8c00", "#4682b4", "#9acd32", "#dc143c", "#9932cc", "#ffd700", "#191970", "#7fffd4", "#808080", "#dda0dd"]; var dcColorsMap = {}; function getInstanceDiv(instanceId) { var popoverDiv = $("[data-fo-id='" + instan...
ruo91/orchestrator
resources/public/js/cluster.js
JavaScript
apache-2.0
42,382
/* * Copyright (c) 2017 Juniper Networks, Inc. All rights reserved. */ define([ 'co-test-constants', 'co-test-runner', 'ct-test-utils', 'ct-test-messages', 'config/infra/tag/test/ui/views/globalTagView.mock.data', 'co-grid-contrail-list-model-test-suite', 'co-grid-view-test-suite' ], func...
biswajit-mandal/contrail-web-controller
webroot/config/infra/tag/test/ui/views/globalTagView.test.js
JavaScript
apache-2.0
1,797
//treeSelect组件 layui.define('tree', function (exports) { "use strict"; var _MOD = 'treeselect', treeData = {}, //全局树形数据缓存 $ = layui.jquery, hint = layui.hint(), DISABLED = 'layui-disabled', win = $(window), TreeSelect = function() { this.v = '1.0.0'; ...
GodGrounp/ssm
src/main/webapp/static/js/treeselect.js
JavaScript
apache-2.0
8,281
/** * @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/stats/base/dists/negative-binomial/mgf/lib/mgf.js
JavaScript
apache-2.0
2,080
function Person(name, surname, gender) { // Set default values this.name = name || 'madan'; this.surname = surname || 'tmg'; this.gender = gender || 'male'; this.toString = function() { return 'My name is ' + this.name + ' ' + this.surname + ' and I am a ' + this.gender; } }; // prints "My ...
madantamang/broadway-mean-stack-2
week 1 - Javascript/Person.js
JavaScript
apache-2.0
498
'use strict'; var $jq = jQuery.noConflict(); /* Controllers */ var log = log4javascript.getLogger("uluwatu-logger"); var popUpAppender = new log4javascript.PopUpAppender(); var layout = new log4javascript.PatternLayout("[%-5p] %m"); popUpAppender.setLayout(layout); var uluwatuControllers = angular.module('uluwatuCon...
sequenceiq/cloudbreak
web/app/static/js/controllers.js
JavaScript
apache-2.0
8,981
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
radicalbit/ambari
ambari-web/test/controllers/main/admin/highAvailability/journalNode/step8_controller_test.js
JavaScript
apache-2.0
1,866
/* ============================================================================ Copyright (C) 2006-2018 Talend Inc. - www.talend.com This source code is available under agreement available at https://github.com/Talend/data-prep/blob/master/LICENSE You should have received a copy of the agreement along with thi...
Talend/data-prep
dataprep-webapp/src/app/services/statistics/statistics-service.js
JavaScript
apache-2.0
34,164
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
wido/cloudstack
ui/scripts/ui-custom/projects.js
JavaScript
apache-2.0
35,637
/** * Returns an array of elements with the given IDs, eg. * @example q("main", "foo", "bar") * @result [<div id="main">, <span id="foo">, <input id="bar">] */ function q() { var r = []; for ( var i = 0; i < arguments.length; i++ ) { r.push( Sizzle.hacks.getElementById( document, arguments[i] ) ); } return ...
brion/statusnet-client
heyQuery/Resources/tests/data/testinit.js
JavaScript
apache-2.0
1,283
'use strict'; //create a file-specific context via a function (function(Piv) { //script-level variables var Email = document.getElementById("email"); var GetTokenButton = document.getElementById("getTokenButton"); var GetTokenInstructions = document.getElementById("getTokenInstructions"); var RegisterStep1 ...
pivot-libre/pivot
public/js/register.js
JavaScript
apache-2.0
2,109
const BasePlugin = require('../plugin') /** * Tracks link clicks * * @extends { Plugin } */ class LinkTrackingPlugin extends BasePlugin { /** * The setup function for this plugin * * @returns { Void } */ install() { document.documentElement.addEventListener('click', this.onLinkClick.bind(this)...
vigetlabs/trackomatic
src/plugins/linkTrackingPlugin.js
JavaScript
apache-2.0
4,496
var http = require('http'); var fs = require('fs'); var express = require('express'); var ejs = require('ejs'); var bodyParser = require('body-parser'); // 임시 데이터베이스 생성 var myDB = (function(){ var myDB = {}; // 객체 생성 var storage = []; // 배열 생성 myDB.get = function(id){ if(id){ id = (typeof id == 'string') ? N...
goldenthumb/nodejs_listView_ex
app.js
JavaScript
apache-2.0
1,842
import { asyncRouterMap, constantRouterMap } from "@/config/router.config" /** * 过滤账户是否拥有某一个权限,并将菜单从加载列表移除 * * @param permission * @param route * @returns {boolean} */ function hasPermission(permission, route) { if (route.meta && route.meta.permission) { let flag = -1 for (let i = 0, len = permission.l...
zhangdaiscott/jeecg-boot
ant-design-vue-jeecg/src/store/modules/permission.js
JavaScript
apache-2.0
2,270
var ui = require('./ui'), map = require('./ui/map'), data = require('./core/data'), loader = require('./core/loader'), router = require('./core/router'), user = require('./core/user'), api = require('./core/api'), texts = require('./core/texts'), store = require('store'), d3 = requir...
moravianlibrary/mapseries
edit/src/index.js
JavaScript
apache-2.0
1,078
/** * Created by paul on 05/09/14. */ require .config({ paths: { 'angular': 'bower_components/angular/angular', 'angular-bootstrap': 'bower_components/angular-bootstrap/ui-bootstrap-tpls', 'domReady': 'bower_components/requirejs-domready/domReady', 'SockJS':...
OUNAVCON/WeatherWeb
org.weather.rest.test/app/main.js
JavaScript
apache-2.0
1,294
var _ = require('underscore')._, geoAssert = require('geojson-assert'), validator = require('validator'); module.exports.validPlace = validPlace; module.exports.validGeoJSON = validGeoJSON; function validPlace(id, obj) { if(!_.isObject(obj)) throw new Error("Place must be an object"); // Check id ...
openplacedatabase/www
lib/validate.js
JavaScript
apache-2.0
4,146
import React, {Component} from 'react'; import {getDay, getMonth} from '../DateFunctions' import '../../styles/time.css'; class CalendarDateBox extends Component { constructor(props) { super(props); } render() { const date = this.props.date; let weekday = getDay(date.getDay()); ...
ung-it/UngIT
assets/js/components/CalendarDateBox.js
JavaScript
apache-2.0
992
(function (cloudStack, $) { var selectedNetworkOfferingHavingSG = false; var selectedNetworkOfferingHavingEIP = false; var selectedNetworkOfferingHavingELB = false; var returnedPublicVlanIpRanges = []; //public VlanIpRanges returned by API var configurationUseLocalStorage = false; var skipGuestT...
remibergsma/cosmic
cosmic-client/src/main/webapp/scripts/zoneWizard.js
JavaScript
apache-2.0
238,450
var World = { loaded: false, init: function initFn() { this.createOverlays(); }, createOverlays: function createOverlaysFn() { /* First an AR.ImageTracker needs to be created in order to start the recognition engine. It is initialized with a AR.TargetCollectionResource specific to the target collection tha...
Cheney925/AR
Wikitude/ARProject/www/world/01_ImageRecognition_3_Interactivity/js/interactivity.js
JavaScript
apache-2.0
5,579
module.exports = function babelConfig(api) { api.cache(true) return { // Note: env.test is used with Jest tests // If presets/plugins is moved outside of env.test the website breaks // ie: `extends.js?2998:3 Uncaught ReferenceError: exports is not defined` // We configured presets/plugins for the we...
First-Peoples-Cultural-Council/fv-web-ui
frontend/babel.config.js
JavaScript
apache-2.0
796
function Pages() { this.currentPage = 'data'; } Pages.prototype.setCurrentPage = function(page) { if (this.currentPage === page) { return; } this.currentPage = page; switch (page) { case 'data': $$('my_data_panel').show(); $$('my_apps_panel').hide(); break; case 'apps': $$...
mydataspace/mydataspace.github.io
js/pages.js
JavaScript
apache-2.0
3,533
'use strict'; /** * @ngdoc object * @name conferenceApp * @requires $routeProvider * @requires conferenceControllers * @requires ui.bootstrap * * @description * Root app, which routes and specifies the partial html and controller depending on the url requested. * */ var app = angular.module('conferenceApp', ...
lbarahona/UdacityProject4
static/js/app.js
JavaScript
apache-2.0
3,496
// Model var sondh = { userData:null }; exports.initModel = function() { sondh.userData = { userId:null, username:null, password:null, sessionId:null, siteList:[ { entityReference:null, title:null, entityId:null, shortDescription:null, tools: [ { toolId:null, blogId...
sondh/SONDH-Student-Toolset
Resources/dataModel.js
JavaScript
apache-2.0
891
/* * Zyyy.js - include file for normalization data for a particular script * * Copyright © 2013-2018, 2020-2021 JEDLSoft * * 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...
iLib-js/iLib
js/lib/nfd/Zyyy.js
JavaScript
apache-2.0
785
typeof(SVGeneration) == "undefined" && (SVGeneration = {}); SVGeneration.Editor = React.createClass({displayName: "Editor", getInitialState: function() { return { active: 'Parameters', windowHeight: $(window).height() }; }, componentDidMount: function() { $(window).resize(function(){ ...
DDKnoll/SVGeneration
js/.module-cache/964320afdc0607b63666f78578b224fbfca2e1c8.js
JavaScript
apache-2.0
2,823
'use strict'; const { initializeApp } = require('firebase-admin/app'); const { getAuth } = require('firebase-admin/auth'); initializeApp(); const express = require('express'); const app = express(); // [START session_login] app.post('/sessionLogin', (req, res) => { // Get the ID token passed and the CSRF token. c...
firebase/snippets-node
auth/manage_cookies.js
JavaScript
apache-2.0
4,456
//get the parameters passed to the controller var parameters = arguments[0] || {}; var currentPhoto = parameters.photo || {}; var parentController = parameters.parentController ||{}; var comments = Alloy.Collections.instance("Comment"); var push = require('pushNotifications'); $.commentTable.addEventListener("delete",...
Program-person75/CIDM4385_Chapter05_Tigram
app/controllers/comment.js
JavaScript
apache-2.0
4,835
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.11/esri/copyright.txt for details. //>>built define("esri/dijit/editing/nls/Editor-all_de-de",{"dijit/_editor/nls/commands":{removeFormat:"Formatierung entfernen",copy:"Kopieren",paste:"Einf\u00fcgen",selectAl...
aconyteds/Esri-Ozone-Map-Widget
vendor/js/esri/arcgis_js_api/library/3.11/3.11/esri/dijit/editing/nls/Editor-all_de-de.js
JavaScript
apache-2.0
7,554
'use strict'; CommandApp .controller( 'CommandCtrl', function ($scope, ProductService, $rootScope, UserService,$http, $filter, $resource, $log, $uibModal,$uibModalStack) { var self = this; self.selectedProduct=''; self.listOfProducts = []; self.result=''; self.quantityOfProducts=''; self.calcula...
bmnizar/factorymanagment
src/main/webapp/scripts/CommandCtrl.js
JavaScript
apache-2.0
1,220
import React from 'react' import {storiesOf} from '@storybook/react' import LoadingContainer from '.' storiesOf('LoadingContainer', module).add('default', () => <LoadingContainer />)
all3dp/printing-engine-client
src/app/component/loading-container/loading-container.story.js
JavaScript
apache-2.0
185
import { Element, api } from 'engine'; import * as testUtil from 'securemoduletest-test-util'; import * as helper from './helper.js'; import sanityChecksHtml from './sanity-checks.html'; export default class SanityChecks extends Element { @api testRenderer = false; render() { if (this.testRenderer) { ...
madmax983/aura
aura-modules/src/test/modules/securemoduletest/sanity-checks/sanity-checks.js
JavaScript
apache-2.0
7,840
/* * Copyright 2021 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
GoogleChrome/webdev-infra
web-components/BaseElement.js
JavaScript
apache-2.0
851
/* * Kendo UI v2014.3.1119 (http://www.telerik.com/kendo-ui) * Copyright 2014 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial lice...
y-todorov/Inventory
Inventory.MVC/Scripts/Kendo/cultures/kendo.culture.ha-Latn-NG.js
JavaScript
apache-2.0
2,690
/** * Copyright IBM Corp. 2019, 2019 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; const execa = require('execa'); const { prompt } = require('inquirer'); const semver = require('semver'); const { generate } =...
carbon-design-system/carbon-components
packages/cli/src/commands/publish.js
JavaScript
apache-2.0
7,121
import _ from 'lodash'; import Composition from '../../../src/factories/Composition'; import StaticView from '../../../src/factories/StaticView'; import ObjectWithViewAndMiddleware from '../../../src/factories/ObjectWithViewAndMiddleware'; import {Adapter, View, riotAdapter, reactAdapter} from 'frontend-view'; const...
jewetnitg/view-director
test/unit/factories/Composition.spec.js
JavaScript
apache-2.0
11,822
/** * Copyright IBM Corp. 2015, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { featureFlagInfo } from './generated/feature-flags'; import { FeatureFlagScope } from './FeatureFlagScope'; const FeatureFlags = cre...
carbon-design-system/carbon-components
packages/feature-flags/src/index.js
JavaScript
apache-2.0
967
/*global describe,it,element,by,takeScreenshot,expect,browser*/ describe("sap.ui.layout.HorizontalLayout", function() { "use strict"; browser.testrunner.currentSuite.meta.controlName = 'sap.ui.layout.HorizontalLayout'; it("initial load", function () { var oLayout = element(by.id("myLayout")); expect(takeScree...
SAP/openui5
src/sap.ui.layout/test/sap/ui/layout/visual/HorizontalLayout.spec.js
JavaScript
apache-2.0
507
//var height = parseFloat(prompt('请输入身高(m):')); //var weight = parseFloat(prompt('请输入体重(kg):')); //var age = parseFloat(prompt('请输入年龄:')); function getAge() { var y = new Date().getFullYear(); return y - this.birth; } var xiaoming = { name: '小明', birth: 1981, age: getAge }; xiaoming.age(); // 25 ...
lichengshuang/createvhost
python/web/js/ages.js
JavaScript
apache-2.0
1,075
/** * Check for deep quality with two objects * @param {Arguments} args * @return {Boolean} * @module util/deep-eq */ exports = module.exports = function(...args) { let i; let l; let leftChain; let rightChain; const diffObjects = (x, y) => { let p; // remember that NaN === NaN...
janbiasi/esdb
src/util/deep-eq.js
JavaScript
apache-2.0
3,452
var should = require('chai').should(); var primes = require('./primes.js'); describe('Project Euler Problem #10', function() { it('displays the sum of all primes below 10', function() { primes().limit(lessThan(10)).sum().should.equal(17); }); it('displays the sum of all primes below 2000000', function() { this...
dchambers/iterizerjs
spec/project-euler/problem10.js
JavaScript
apache-2.0
416
import {Angular2Adapter} from '../ngNext/angular2Adapter.js'; export function bootstrap (component, config = {}) { var adapter = new Angular2Adapter(config); adapter.bootstrapComponent(component); };
robianmcd/angular-next
src/angular2/ng2/bootstrap.js
JavaScript
apache-2.0
209
'use strict'; // Deploy an app to Cloud Foundry const _ = require('underscore'); const fs = require('fs'); const path = require('path'); const cp = require('child_process'); const commander = require('commander'); const yaml = require('js-yaml'); const noop = _.noop; /* eslint no-process-exit: 1 */ // Create the d...
rajkiranrbala/cf-abacus
tools/cfpush/src/index.js
JavaScript
apache-2.0
3,407
'use strict'; const _ = require('lodash'); const selectSystem = require('../selectSystem')[0]; const SystemMetaService = require('../../../../../services/systemMetaService'); describe('System meta "selectSystem" route tests', () => { beforeAll(() => { SystemMetaService.add({ name: 'TEST1', ...
vistadataproject/metaPureJS
httpserver/routes/meta/system/tests/selectSystem-spec.js
JavaScript
apache-2.0
2,212
var request = require('request'); var fs = require('fs'); var assetsFolder = 'src/assets/' var datafolder = assetsFolder + 'data/'; var releasefolder = assetsFolder + 'data/release/'; // create data folder if not exists try { fs.mkdirSync(datafolder); fs.mkdirSync(releasefolder); } catch (e) { console.log("Data...
52North/52north.github.io
config/fetchData.js
JavaScript
apache-2.0
2,218
function Controller() { require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments)); this.__controllerPath = "index"; arguments[0] ? arguments[0]["__parentSymbol"] : null; arguments[0] ? arguments[0]["$model"] : null; arguments[0] ? arguments[0]["__itemTemplate"] :...
CAGIS/cagisWorks2014
Resources/android/alloy/controllers/index.js
JavaScript
apache-2.0
883
/** * @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/stats/base/dists/uniform/examples/index.js
JavaScript
apache-2.0
759
'use strict'; const { testResourceID, testOrganizationID, testSpaceID, testConsumerID, testPlanID, testAccountID, testMeteringPlanID, testRatingPlanID, testPricingPlanID, testResourceInstanceIDs } = require('../usageDocumentFieldsConstants'); const shiftsMonthWindowsExpected = [ { 'organization_id': testOr...
cloudfoundry-incubator/cf-abacus
lib/aggregation/aggregator/src/test/fixtures/expected/expectedForShiftWindows.js
JavaScript
apache-2.0
6,623
function Controller() { require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments)); this.__controllerPath = "index"; arguments[0] ? arguments[0]["__parentSymbol"] : null; arguments[0] ? arguments[0]["$model"] : null; arguments[0] ? arguments[0]["__itemTemplate"] :...
shokuan/TiEnvPackage
Resources/iphone/alloy/controllers/index.js
JavaScript
apache-2.0
6,721
//// [asyncFunctionReturnType.ts] async function fAsync() { // Without explicit type annotation, this is just an array. return [1, true]; } async function fAsyncExplicit(): Promise<[number, boolean]> { // This is contextually typed as a tuple. return [1, true]; } //// [asyncFunctionReturnType.js] ...
vilic/TypeScript
tests/baselines/reference/asyncFunctionReturnType.js
JavaScript
apache-2.0
1,287
angular.module('services.todostorage', []) .factory('todoStorage', function ($http, $timeout) { 'use strict'; var STORAGE_ID = 'todos-mine'; var MONGO_ID = null; var TIMEOUT_PROMISE = null; return { get: function (cb) { var _this = this; this.remoteGet(function(dat...
mlaval/my-ng-todomvc
architecture-examples/my-ng/js/services/todostorage.js
JavaScript
apache-2.0
3,079
var namespacexlabs_1_1platform_1_1droid = [ [ "R", "classxlabs_1_1platform_1_1droid_1_1_r.html", null ] ];
XLabs/xlabs.github.io
html/namespacexlabs_1_1platform_1_1droid.js
JavaScript
apache-2.0
110
import Ember from 'ember'; import ManageLabels from 'ui/mixins/manage-labels'; export default Ember.Component.extend(ManageLabels, { // Inputs // Global scale scheduling isGlobal: false, // Is this for a service(=true) or container(=false) isService: false, // Request a specific host requestedHostId: n...
radishgz/ui-1.5.9
app/components/form-scheduling/component.js
JavaScript
apache-2.0
3,196
(function(){ 'use strict'; var register_models; register_models = function(){ var exported_model, i, path_fn, files = ['phonen.js']; for(i = 0; i < files.length; i++) { path_fn = "./" + files[i]; exported_model = require(path_fn); exported_model(); } }; module.exports = register_models; }());
walkernel/Skadoosh
models/models.js
JavaScript
apache-2.0
320
var path = require('path'); module.exports = { entry: [ path.normalize('es6-shim/es6-shim.min'), 'reflect-metadata', path.normalize('zone.js/dist/zone-microtask'), path.resolve('app/app.ts') ], output: { path: path.resolve('www/build/js'), filename: 'app.bundle.js', pathinfo: false /...
maribrio/Ionic2-Funsporty
webpack.config.js
JavaScript
apache-2.0
1,094
/* * @ngdoc directive * @name instDirective.directive:fxPropValidator * @restrict A * @requires ngModel * @description * custom input validator */ angular.module("instDirective").directive("fxPropValidator",function($compile,$templateCache, fxTemplates){ function resetError(ctrl){ for(var key in ctrl.$erro...
jasonzhang2022/flexims
js/app/jsfragments/editor/prop_validator.js
JavaScript
apache-2.0
9,466
/** * Pool handler * @author Charlie Alegria <charlie@opencard.mx> */ var SERVICE = require("opencard_services"); var STACK = { pool: [], currentIndex: -1, add: function(_item, _key) { if (typeof _key !== 'undefined') { } else { STACK.pool.push(_item); } // STACK.pool.splice(0, 0, _item); if (...
vhgc/Demo2
app/lib/opencard_pool.js
JavaScript
apache-2.0
2,923
class NameBindingBase { x; } class NameBindingDerived : NameBindingBase { getX() { return this.x; } } // ---------------------------------------------------------------------------- var derived = new NameBindingDerived(); derived.x = 12; assertEquals(12, derived.getX());
ide/traceur
test/feature/Classes/InheritanceNameBinding.js
JavaScript
apache-2.0
279
var tokenize = require("./instance"); describe('tokenize.flow()', function() { it('ex: repeated words', function() { var repeatedWords = tokenize.flow( // Tokenize as sections tokenize.sections(), // For each sentence tokenize.flow( // Token...
GitbookIO/tokenize-text
test/flow.js
JavaScript
apache-2.0
1,080
Meteor.publish('arenas', function(options) { return Arenas.find({},options); });
hema-tournament-manager/htm-meteor
server/publications/arenas.js
JavaScript
apache-2.0
82
// https://github.com/1wheel/roadtolarissa Copyright 2018 Adam Pearce var fs = require('fs') var {exec, execSync} = require('child_process') var source = `${__dirname}/../../source` var public = `${__dirname}/../../public` if (!fs.existsSync(public)) fs.mkdirSync(public) function rsyncSource(){ exec(`rsync -a --ex...
PAIR-code/ai-explorables
source/third_party/index.js
JavaScript
apache-2.0
2,108
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
amirakhmedov/ignite
modules/web-console/frontend/app/components/page-configure/services/ConfigurationResource.js
JavaScript
apache-2.0
1,991
'use strict'; const express = require('express'); const bodyParser = require('body-parser'); const request = require('supertest-as-promised'); const Controller = require('./test-controller'); describe('real', () => { describe('response', () => { describe('end', () => { it('should return 200', () => { ...
concept-not-found/fake-express-http
main/real.spec.js
JavaScript
apache-2.0
4,533
/*! * matter-attractors 0.1.5 by Liam Brummitt 2017-02-12 * https://github.com/liabru/matter-attractors * License MIT */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("Matter")); else if(typeof define ==...
DieGenie/website
solar system/libraries/matter-attractors.js
JavaScript
apache-2.0
7,744
import {$t} from "./i18n"; // From MDN: https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/random export function random_int(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } // Like C++'s std::lower_bound. Returns the first index at which // `value` could be ...
andersk/zulip
static/js/util.js
JavaScript
apache-2.0
10,649
/*! * ${copyright} */ /* * IMPORTANT: This is a private module, its API must not be used and is subject to change. * Code other than the OpenUI5 libraries must not introduce dependencies to this module. */ sap.ui.define( ["./toHex"], function(toHex) { "use strict"; /** * RegExp and escape function for JS e...
cschuff/openui5
src/sap.ui.core/src/sap/base/encoding/encodeJS.js
JavaScript
apache-2.0
1,151
$axure.loadCurrentPage({ "url":"friends.html", "generationDate":new Date(1387839220484), "isCanvasEnabled":false, "variables":["OnLoadVariable"], "page":{ "packageId":"bc1c66faba714482b751d1c99261db17", "type":"Axure:Page", "name":"friends", "notes":{ }, "style":{ "baseStyle":"62758...
dsrichard/quoteball
www/files/friends/data.js
JavaScript
apache-2.0
191,794
import { Model } from 'backbone'; export default Model.extend({ defaults: { text: '', href: '', target: '', title: '' } });
MeoMix/StreamusWebsite
src/component/link/link.js
JavaScript
apache-2.0
147
/** * Deals with communication to the server (in process of being transformed to using Promises) */ import encryptor from './encryptor'; import settings from './settings'; import { t } from './translator'; import utils from './utils'; import { getLastSavedRecord, LAST_SAVED_VIRTUAL_ENDPOINT, populateLast...
OpenClinica/enketo-express-oc
public/js/src/module/connection.js
JavaScript
apache-2.0
20,936
let druidRequesterFactory = require('plywood-druid-requester').druidRequesterFactory; let plywood = require('../../build/plywood'); let ply = plywood.ply; let $ = plywood.$; let External = plywood.External; let helper = plywood.helper; let druidRequester = druidRequesterFactory({ host: 'localhost:8082' // Where ever...
implydata/plywood
docs/examples/example5-druid.js
JavaScript
apache-2.0
3,178
niclabs.insight.map.grid.SquareTile = (function() { /** * Define a square tile to be drawn on the map * * @class niclabs.insight.map.grid.SquareTile * @implements niclabs.insight.map.grid.Tile * @param {float} side - side (or radius) of the square */ var SquareTile = function(side) { v...
dorellang/insight
src/niclabs/insight/map/grid/square-tile.js
JavaScript
apache-2.0
2,771
'use strict'; /** * Module listing all application Filters */ angular.module('leaveManagerApp.filters', []). /** * Filter for getting tooltip for completed agents. This should be moved to directives. */ filter('colorFilter', [ function() { return function(status) { var bgColorClass = ''; if(status.toU...
nareshmahajan/LeaveManager
public/javascripts/angular/filters.js
JavaScript
apache-2.0
2,103
angular.module('dash', ['ngRoute', 'ngResource']) .factory('Info', ['$http', function($http){ return $http.get('/api/dash/info/;'); }]) .factory('Info', ['$resource', function($resource){ return $resource('/api/dash/info/:cmd', {cmd:"@cmd"}); // 'update': { method:'PUT' } // }); }]) .fa...
boi-genius880/robots
public/js/dash.js
JavaScript
apache-2.0
1,226
import React from "react"; import { ButtonDropdown, DropdownToggle, DropdownMenu, DropdownItem, } from "helpers/reactstrap"; import "./style.scss"; import {capitalCase} from "change-case"; const ConvoPicker = ({ simulator, station, setSelectedConversation, messageGroups, teams, }) => { const [stati...
Thorium-Sim/thorium
src/components/views/Messaging/convoPicker.js
JavaScript
apache-2.0
2,483
const fs = require('fs'); const path = require('path'); const snyk = require('../src/snyk-snapshot.json'); /** * @typedef { import('../src/types').Vulnerability } Vulnerability */ /** * Get a list of names for packages which can be detected by `js-library-detector`. * * @param { string } libraryDetectorSource *...
sonarwhal/sonar
packages/hint-no-vulnerable-javascript-libraries/scripts/pack-snyk.js
JavaScript
apache-2.0
2,034
/** * Copyright [2013] [runrightfast.co] * * 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 ag...
runrightfast-archived/runrightfast-hapi-server
lib/index.js
JavaScript
apache-2.0
647
var Bench=function(){var b={};return{instrumented:function(){return _.keys(b)},average:function(a){a=Bench.trail(a);return _.reduce(a,function(a,b){return a+b[1]},0)/a.length},trail:function(a){return b[a]},track:function(a,d){return function(){a in b||(b[a]=[]);var c=Date.now(),e=d();b[a].push([c,Date.now()-c]);return...
StackableRegiments/analyticalmetlx
src/main/webapp/static/js/min/Bench.js
JavaScript
apache-2.0
330
(function() { 'use strict'; angular .module('cpvApp') .factory('translationHandler', translationHandler); translationHandler.$inject = ['$rootScope', '$window', '$state', '$translate']; function translationHandler($rootScope, $window, $state, $translate) { return { ...
borisbsu/continious-delivery-test
src/main/webapp/app/blocks/handlers/translation.handler.js
JavaScript
apache-2.0
1,471
(function(window) { var _createXhr; if (window.XMLHttpRequest) _createXhr = function(){ return new window.XMLHttpRequest(); } else if (window.ActiveXObject) _createXhr = function(){ return new window.ActiveXObject("MSXML2.XMLHTTP.3.0"); } var Pedis; Pedis = function(options) { this.options = options || { ...
rpbouman/pedis
src/js/Pedis.js
JavaScript
apache-2.0
5,413
const assert = require("assert").ok; const constants = require("./constants"); const structures = require("./structures"); function Header() { this.magic = constants.headerMagic; this.version = constants.version; this.startNodeSector = 1; this.nodeCount = 1; } Header.prototype.fromBuffer = function(bu...
SpaceboyRoss01/PeabodyOS
src/system/sys/fs/pfs/header.js
JavaScript
apache-2.0
762
/** * @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/stats/base/dmeanli/lib/dmeanli.js
JavaScript
apache-2.0
1,857
var gulp = require('gulp'), runSequence = require('run-sequence'), gutil = require('gulp-util'), concat = require('gulp-concat'), del = require('del'); var src = 'src'; var dist = './bower_build'; var conf = { jsSrc: [ './node_modules/jquery/dist/**/jquery.js', './node_modules/lunr/...
gbif/ssg
gulpfile.js
JavaScript
apache-2.0
1,256
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the...
justsml/cordova-android
framework/assets/js/position.js
JavaScript
apache-2.0
2,631
var vows = require('../lib/vows-batch-retry'), assert = require('assert'); vows.describe('vows batch retry').addBatchRetry({ 'callback no args test': { topic: function() { var callback = this.callback; setTimeout(function() { callback("toto"); }, 100); }, cb_check: function(...
eiossa/paStash
node_modules/vows-batch-retry/test/test_failed_base_async_no_args.js
JavaScript
apache-2.0
360
defineUsers = function() { let sampleUsers = [ { firstName: "Philip", middleName: "Meadows", lastName: "Johnson", slug: "philipjohnson", password: "foo", uhEmail: "johnson@hawaii.edu", role: RadGrad.role.admin }, { firstName: "Henri", middleName: "", ...
justgilyim/radgrad-data-model-experiment
app/server/sample-data-model/definitions/Users.js
JavaScript
apache-2.0
1,764