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
/** * @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/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_random.native.js
JavaScript
apache-2.0
2,743
/* global by, element */ 'use strict'; var authentication = require('../../authentication/authentication'); var common = require('../../common/common'); var navigation = require('../../common/navigation'); var components = require('../../components/components'); var blockStorageComponent = { id: 'tosca.nodes.BlockS...
loicalbertin/alien4cloud
alien4cloud-ui/src/test/webapp/e2e/scenarios/components/component_details.js
JavaScript
apache-2.0
8,460
var express = require('express'); var path = require('path'); var api = require('./api'); module.exports = { setupApp: function(app) { //serve static assets app.use('/externals', express.static(path.resolve('node_modules'))); var server = require('http').Server(app); var io = require('socket.io')(s...
smakazmidd/react-starter
common.config.js
JavaScript
apache-2.0
685
#!/usr/bin/env node /** * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
GoogleChrome/chrome-types
tools/render-symbols.js
JavaScript
apache-2.0
3,422
/** * @license * Copyright 2016 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 ...
baconz/shaka-player
test/offline/offline_integration.js
JavaScript
apache-2.0
5,247
import React, { useRef } from "react"; import Textbox from "../textbox"; const Number = ({ onChange, onKeyDown, value, ...rest }) => { const selectionStart = useRef(); const selectionEnd = useRef(); const handleOnChange = (event) => { if (isValidNumber(event.target.value) && onChange) { onChange(event...
Sage/carbon
src/components/number/number.component.js
JavaScript
apache-2.0
1,037
/** * @license * Copyright 2014 Google 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 requir...
ropik/lovefield
tests/proc/lock_manager_test.js
JavaScript
apache-2.0
5,446
/*********************************************************************** Copyright 2014 (c) Saair Quaderi <saair.quaderi@gmail.com> Copyright 2012-2013 (c) Mihai Bazon <mihai.bazon@gmail.com> UglyflyJS sourcecode can be found here: https://github.com/quaderi/uglyflyjs UglyflyJS (by Saair) is a fork o...
athena-github/athena-github.github.io
xiangmuu--weizhan/node_modules/.3.2.2@uglyfly-js/lib/predicates.js
JavaScript
apache-2.0
6,208
// Copyright 2019, 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/actionssdk-quickstart-nodejs
guest-users/functions/index.js
JavaScript
apache-2.0
1,571
function prefix(n2k) { return `electrical.converter.${n2k.src}.${n2k.fields['Connection Number']}` } module.exports = [ { node: n2k => prefix(n2k) + '.operatingState', value: n2k => n2k.fields['Operating State'].toLowerCase(), filter: n2k => typeof n2k.fields['Operating State'] === 'string' }, { ...
SignalK/n2k-signalk
pgns/127750.js
JavaScript
apache-2.0
1,087
(function moduleExporter(name, closure) { "use strict"; var entity = GLOBAL["WebModule"]["exports"](name, closure); if (typeof module !== "undefined") { module["exports"] = entity; } return entity; })("MP4Parser", function moduleClosure(global) { "use strict"; // --- technical terms / data structure -----------...
uupaa/MP4.js
lib/MP4Parser.js
JavaScript
apache-2.0
43,934
import {REQUIRED} from '../common/util/validation'; const config = { name: { type: REQUIRED, message: 'Please provide the merit badge name.' } }; export default config;
jmicmoore/merit-badge-university
src/client/meritBadge/MeritBadgeValidationConfig.js
JavaScript
apache-2.0
194
sap.ui.define([ 'jquery.sap.global', 'sap/ui/core/mvc/Controller', 'sap/ui/model/json/JSONModel' ], function(jQuery, Controller, JSONModel) { "use strict"; var PageController = Controller.extend("sap.m.sample.StandardMarginsAll.Page", { onInit : function (evt) { // set explored app's demo model on this ...
cschuff/openui5
src/sap.m/test/sap/m/demokit/sample/StandardMarginsAll/Page.controller.js
JavaScript
apache-2.0
494
/* * 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 ...
GoogleForCreators/web-stories-wp
packages/stickers/src/plant-based-dyes/index.js
JavaScript
apache-2.0
1,787
var test = require('tape') test('del way', function (t) { t.plan(1) t.skip('not applicable') })
nickpeihl/geojson-p2p-db
test/del_way.js
JavaScript
apache-2.0
101
sap.ui.define([ ], function( ) { "use strict"; function _isFormRelatedElement(mPropertyBag) { var oModifier = mPropertyBag.modifier; var oElement = mPropertyBag.element; return oModifier.getControlType(oElement).indexOf(".form.") !== -1; } /** * Is field using a complex type * * @param {Object} mPrope...
SAP/openui5
src/sap.ui.rta/test/sap/ui/rta/internal/testdata/additionalElements/V2StackDelegate.js
JavaScript
apache-2.0
11,414
var plastic = require('../../lang.js'); function main() { return result = [ plastic.cylinder({}), // draw a cylinder of radius 0.5 in [0,0,0] plastic.cylinder({radius:3.5}).translate([10,0,0]), // draw a cylinder of radius 5 in [10,0,0], moved t...
fenixio/PlastiScript
test/js/cylinder.js
JavaScript
apache-2.0
1,846
var mybuffer = new Buffer('==ii1j2i3h1i23h','base64'); console.log(mybuffer); require('fs').writeFile('logo.png',mybuffer,(err)=>{ console.log(err); });
fanbrightup/firsthalf2017
feb/2-13/demo5.js
JavaScript
apache-2.0
154
require('enyo/options').accessibility = true; var kind = require('enyo/kind'), ready = require('enyo/ready'), Enyo_webOS = require('enyo-webos'); var ScrollingSampleList = require('../strawman/ScrollingSampleList'); var samples = { LunaServiceSample: require('./src/LunaServiceSample') }; var Sample = kind({...
enyojs/enyo-strawman
src/enyo-webos-samples/index.js
JavaScript
apache-2.0
515
var assert = require('assert'); var async = require('async'); var fixtures = require('./fixtures'); var expectData = fixtures.expectData; var everyProtocol = fixtures.everyProtocol; var transport = require('../../../'); describe('Transport/Stream', function() { everyProtocol(function(name, version) { var serve...
adityachap/fabric-sdk-node
node_modules/spdy-transport/test/both/transport/stream-test.js
JavaScript
apache-2.0
16,400
/** * @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/ttest2/lib/index.js
JavaScript
apache-2.0
1,058
module.exports = { moduleFileExtensions: ["js", "json", "jsx", "node"], testEnvironment: "jest-environment-jsdom", testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.jsx?$", testRunner: "jest-jasmine2", testResultsProcessor: "my-awesome-testResultProcessor", collectCoverage: true, verbose: true, bail: fal...
mthmulders/stryker-jest-runner
testResources/exampleProjectWithExplicitJestConfig/jest.config.js
JavaScript
apache-2.0
324
/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: Apache-2.0 */ suite('Key Down', function() { setup(function() { sharedTestSetup.call(this); this.workspace = Blockly.inject('blocklyDiv', {}); }); teardown(function() { sharedTestTeardown.call(this); }); /** * Creates a...
mark-friedman/blockly
tests/mocha/keydown_test.js
JavaScript
apache-2.0
10,415
(function(angular) { 'use strict'; var app = angular.module('mvp1App', ['ngSanitize']); app.controller('Mvp1Ctrl', function($scope, $http, $filter, $timeout) { console.log('---mvp1App-----Mvp1Ctrl--------'); initAll($http, $scope, $filter, $timeout); }); app.controller('AccordionCtrl', function ($scope) { ...
romanm/algoritmed-mvp1-ehealth
src/main/resources/static/f/js/mvp1App-meddoc.js
JavaScript
apache-2.0
765
/** * @fileOverview Facility Model and Collection w/ methods * @name Facility * @class Facility * @author Chris Golding */ exports.definition = { config: { columns: { "lat": "real", "lng": "real", "facilityId": "integer PRIMARY KEY", "title": "text", "zip": "text", "address"...
CityOfVirginiaBeach/ParkFinder
app/models/Facility.js
JavaScript
apache-2.0
1,540
var m = require('mithril'); var $ = require('jquery'); var bootbox = require('bootbox'); // TODO: Why is this required? Is it? See [#OSF-6100] var $osf = require('js/osfHelpers'); var waterbutler = require('js/waterbutler'); var util = require('./util.js'); var makeClient = require('js/clipboard'); // Helper for fi...
cwisecarver/osf.io
website/static/js/filepage/revisions.js
JavaScript
apache-2.0
10,258
/** * @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/number/uint32/base/to-binary-string/benchmark/benchmark.js
JavaScript
apache-2.0
1,236
module("ThemeGridUnique"); //测试使用默认参数值的有效性 test("TestDefaultConstructor", function() { expect(5); var themeGridUnique; themeGridUnique=new SuperMap.REST.ThemeGridUnique(); ok(themeGridUnique != null, "not null" ); equal(themeGridUnique.defaultcolor.red, 255, "themeGridUnique.defaultcolor.red"); ...
SuperMap/iClient-for-JavaScript
tests/REST/Theme/ThemeGridUniqueTest.js
JavaScript
apache-2.0
2,811
/** * @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/utils/keys/benchmark/benchmark.js
JavaScript
apache-2.0
4,051
/******************************************************************************* * Copyright [2016] [Quirino Brizi (quirino.brizi@gmail.com)] * * 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 Licen...
quirinobrizi/actio
webservices/modeler/src/main/resources/static/js/editor/module.js
JavaScript
apache-2.0
821
/** * Converte il valore passato in radianti */ exports.toRad = function(val) { return val * Math.PI / 180; }; /** * calcola l'angolo tra due punti */ // example of use: locationUtils.generateEnemy(37.509319, 15.083504000000005, 1, 10); exports.generateEnemy = function(player_latitude, player_longitute, gam...
kataklisma/wats
app/lib/locationUtils.js
JavaScript
apache-2.0
4,669
/*! * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5) * (c) Copyright 2009-2014 SAP AG or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ /* ---------------------------------------------------------------------------------- * Hint: This is a derived (...
esjewett/tdcode-examples
lib/openUI5/resources/sap/m/Page-dbg.js
JavaScript
apache-2.0
37,940
/* * GET users listing. */ exports.list = function(req, res){ res.send("this is a response"); };
sfabriece/nodeTest
routes/user.js
JavaScript
apache-2.0
102
/* * Copyright 2015 ThoughtWorks, 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 agr...
ollie314/gocd
server/webapp/WEB-INF/rails.new/spec/new_javascripts/models/pipeline_configs/tracking_tool_spec.js
JavaScript
apache-2.0
6,261
sap.ui.define(function () { 'use strict'; var dialogSvg = `<svg width="148" height="160" viewBox="0 0 148 160" fill="none" xmlns="http://www.w3.org/2000/svg" id="sapIllus-Dialog-EmptyList"> <mask id="mask0_396_6637" class="sapIllus_MaskTypeAlpha" maskUnits="userSpaceOnUse" x="0" y="0" width="148" height="160"> <path ...
SAP/openui5
src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/illustrations/sapIllus-Dialog-EmptyList.js
JavaScript
apache-2.0
6,081
/** * @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/blas/ext/base/sapxsumkbn2/lib/index.js
JavaScript
apache-2.0
1,816
sap.ui.define([], function() { "use strict"; return "bundle2-mod2"; });
SAP/openui5
src/sap.ui.core/test/sap/ui/core/qunit/loader/fixture/bundle-info/bundle2-mod2.js
JavaScript
apache-2.0
73
/** * This code is mostly from the old Etherpad. Please help us to comment this code. * This helps other people to understand this code better and helps them to improve it. * TL;DR COMMENTS ON THIS FILE ARE HIGHLY APPRECIATED */ /** * Copyright 2009 Google Inc. * * Licensed under the Apache License, Version 2....
aug-riedinger/etherpad
src/static/js/ace2_inner.js
JavaScript
apache-2.0
156,403
import mx from '../../multiplex'; import { qmodule, qtest } from '../../qunit'; qmodule('set'); var Set = mx.Set; qtest('create set', function (assert) { assert.ok(new Set() !== null, 'empty set'); assert.ok(new Set([1, 2, 3]) !== null, 'simple numeric Set'); }); qtest('basic set tests', function (assert) ...
multiplex/multiplex.js
test/unit/collections/set.js
JavaScript
apache-2.0
1,412
var path = require('path'); var project = require('./project'); var Filter = (function () { function Filter(_project, filters) { var _this = this; this.referencedFrom = undefined; this.referencedFromAll = undefined; this.project = _project; if (filters.referencedFrom !== unde...
nightwolf93/CarbonPHP
node_modules/gulp-typescript/release/filter.js
JavaScript
apache-2.0
2,971
(function () { 'use strict'; angular .module('ClusterManageApp') .controller('CallServerChipsController', DemoCtrl); function DemoCtrl($scope, $routeParams, clusterService) { var self = this; self.readonly = false; self.selectedItem = null; self.searchText = null; self.searchCallServer...
DuoSoftware/DVP-Apps
DVP-ClusterApp/scripts/controllers/chipController.js
JavaScript
apache-2.0
9,180
/*global define, ko*/ define([], function () { 'use strict'; return ko.applyBindings(); });
jkorell/jslintnet
specifications/JSLintNet.Specifications/Tasks/Resources/GlobalVariableDef.js
JavaScript
apache-2.0
105
/** BSD License For Flux software Copyright (c) 2014, Facebook, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list o...
jacobdfriedmann/fluxthis
src/Dispatcher.es6.js
JavaScript
apache-2.0
8,655
/** * Kendo UI v2016.1.412 (http://www.telerik.com/kendo-ui) * Copyright 2016 Telerik AD. All rights reserved. ...
ytodorov/AntServices
AdvancedNetToolsSolution/AntWeb/Scripts/kendo/cultures/kendo.culture.km.js
JavaScript
apache-2.0
6,934
angular.module("wazza") .controller("wazzaCtrl", function ($scope, $location) { $scope.data = { products: [ { id:1, name: "Product #1", description: "A product", category: "Category #1", price: 100}, { id:2, name: "Product #2", description: "A...
6kV/Wazza
wazza-ui/src/main/webapp/controllers/wazza.js
JavaScript
apache-2.0
953
import React from 'react'; import { configure, shallow, mount } from 'enzyme' import toJson from 'enzyme-to-json'; import Adapter from 'enzyme-adapter-react-15'; configure({ adapter: new Adapter() }); import DateInput from '../DateInput'; Date.now = jest.fn(() => new Date(Date.UTC(2017, 7, 9, 8)).valueOf()) const d...
PulseTile/PulseTile-React
src/components/form-fields/__tests__/DateInput.test.js
JavaScript
apache-2.0
5,869
import React from 'react'; import { Actions, Scene, Router } from 'react-native-router-flux'; import LoginForm from './components/LoginForm'; import EmployeeList from './components/EmployeeList'; import EmployeeCreate from './components/EmployeeCreate'; import EmployeeEdit from './components/EmployeeEdit'; const Route...
dunkvalio/ReactNative
manager/js/Router.js
JavaScript
apache-2.0
1,054
{ "gnip": { "language": { "value": "en" }, "klout_score": 44, "urls": [ { "expanded_status": 200, "expanded_url": "http://twitter.com/dooleyfunny/status/570782345189580800/video/1", "url": "http://t.co/gYG0XMt9CC" } ], "matching_rules": [ { ...
zauberlabs/gnip4j
core/src/test/resources/com/zaubersoftware/gnip4j/payload/video.js
JavaScript
apache-2.0
11,126
var detect_gid_8h = [ [ "DetectGidRegister", "detect-gid_8h.html#a5893c029560665af3a95452e8f7ff178", null ], [ "GidRegisterTests", "detect-gid_8h.html#a23fb1b6f4e95eb50d66e169548fb92cb", null ] ];
onosfw/apis
suricata/apis/detect-gid_8h.js
JavaScript
apache-2.0
204
import React from 'react'; import { render } from 'react-dom'; import { BrowserRouter as Router, Route, Link, Switch, Redirect } from 'react-router-dom' // Styles // Import Font Awesome Icons Set import 'font-awesome/css/font-awesome.min.css'; // Import Simple Line Icons Set import 'simple-line-icons/css/sim...
aamerio/kikundi
frontend/src/index.js
JavaScript
apache-2.0
3,457
//APPLICATIONS organizations.service('organizationGroupUsersDataService', [ function() { this.deleteConfirm = function(item) { return "You want to delete association '" + item.Id + "'?"; } this.list = function(currentPage, pageSize, count, filter, scope) { var realFilter = {}; ...
kendarorg/ECQRSFramrework
ECQRSFramrework/Samples/UsersManager/UserManager.Web/app/organization/group/user/module.js
JavaScript
apache-2.0
2,434
module.exports = function(grunt) { require('load-grunt-config')(grunt, { loadGruntTasks: { pattern: ['*','!load-grunt-config'], config: require('./package.json'), scope: 'devDependencies' } }); };
vconnect/grillo
Gruntfile.js
JavaScript
apache-2.0
224
// NOTE: this works without mock-server var Rx = (global.Rx = global.Rx || require("rx-extra")); var yolk = require("yolk"); var h = yolk.h; //var renderInDocument = require('../render-in-document'); var render = yolk.render; var fs = require("fs"); var insertCss = require("insert-css"); var jsonldMarkup = require("...
bridgedb/bridgedbjs
test/e2e/ui-components-remote.test.js
JavaScript
apache-2.0
1,911
/** * Welcome to your gulpfile! * The gulp tasks are splitted in several files in the gulp directory * because putting all here was really too long */ 'use strict'; var gulp = require('gulp'); var wrench = require('wrench'); /** * This will load all js or coffee files in the gulp directory * in order to ...
ctripcorp/cornerstone
cornerstone-web/gulpfile.js
JavaScript
apache-2.0
692
/** --| ADAPTIVE RUNTIME PLATFORM |---------------------------------------------------------------------------------------- (C) Copyright 2013-2015 Carlos Lozano Diez t/a Adaptive.me <http://adaptive.me>. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wi...
AdaptiveMe/adaptive-arp-javascript
adaptive-arp-js/src_units/INotificationLocal.js
JavaScript
apache-2.0
1,553
var EventEmitter = require('events').EventEmitter, logger = require('../logging').getLogger(__LOGGER__), Router = require('routr'), Q = require('q'), History = require("../components/History"), ReactServerAgent = require("../ReactServerAgent"), PageUtil = require("../util/PageUtil"), DebugUtil = require("../uti...
doug-wade/react-server
packages/react-server/core/context/Navigator.js
JavaScript
apache-2.0
9,488
// Modifications copyright 2020 Caf.js Labs and contributors /*! Copyright 2013 Hewlett-Packard Development Company, L.P. 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.or...
cafjs/caf_cli
lib/CreateUser.js
JavaScript
apache-2.0
3,127
/** * AccountModel.js */ (function (spiderOakApp, window, undefined) { "use strict"; var console = window.console || {}; console.log = console.log || function(){}; var Backbone = window.Backbone, _ = window._, $ = window.$, qq = window.qq, s = ...
antoniodesouza/SpiderOakMobileClient
src/models/AccountModel.js
JavaScript
apache-2.0
20,055
'use strict'; module.exports = { redisConfig: { host: process.env.REDIS_HOST || '127.0.0.1', port: process.env.REDIS_PORT || 6379 } };
apostopher/smart-chat
src/common/config.js
JavaScript
apache-2.0
146
'use strict'; 'require fs'; var SSHPubkeyDecoder = L.Class.singleton({ lengthDecode: function(s, off) { var l = (s.charCodeAt(off++) << 24) | (s.charCodeAt(off++) << 16) | (s.charCodeAt(off++) << 8) | s.charCodeAt(off++); if (l < 0 || (off + l) > s.length) return -1; return l; }, decode: ...
artynet/luci
modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js
JavaScript
apache-2.0
7,116
jQuery(document).ready(function($){ var contentSections = $('.normal_cont'), navigationItems = $('#cd-vertical-nav a'); updateNavigation(); $(window).on('scroll', function(){ updateNavigation(); }); //smooth scroll to the section navigationItems.on('click', function(event){ event.preventDefault(); ...
BaconKwan/Perl_programme
report/Page_Config_All/discard/nav_scroll.js
JavaScript
apache-2.0
977
/** * @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/special/abs/benchmark/benchmark.ndarray_1d_contiguous_generic.js
JavaScript
apache-2.0
2,204
/** * 历史记录 - history * * @author Ma Junbao <mlive@live.cn> * @date 2017-5-18 * * insert() | 在当前位置后插入新历史记录 * index() | 获取当前位置 * back() | 将当前位置后移一位 * next() | 将当前位置前移一位 * go() | 将历史记录移动到指定位置 * * change | 历史记录方式变化是触发此事件 */ export de...
majunbao/xue
preact/demo01/src/History.js
JavaScript
apache-2.0
1,051
bplApp.factory('bAddMatchSvcAdmin', function ($resource, bIdentity, $q) { var matchFixtures = $resource('/api/v1/matchFixtures:mId' , {mId:"@id"}); return{ addMatch: function (match) { var dfd = $q.defer(); var newFixture = { teamOne:...
BPL-8/BPL-WEB
public/app/admin/addMatch/bAddMatchSvcAdmin.js
JavaScript
apache-2.0
1,008
/* Custom scrips for my portfolio - Jonathan Gabrielli 2016-2020*/ $(document).ready(function() { $("body").css("display", "none"); }); $(function(){ $("#header").load("header.html"); $("#footer").load("footer.html"); $('[lang="en"]').hide(); }); $(document).ready(function() { $("body").css("display", "none");...
jgabrielli/jgabrielli.github.io
js/custom.js
JavaScript
apache-2.0
1,577
/** * @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/blas/base/sdsdot/test/test.sdsdot.js
JavaScript
apache-2.0
5,826
/* * Copyright (C) 2013 salesforce.com, 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 ...
DebalinaDey/AuraDevelopDeb
aura-impl/src/test/javascript/aura/AuraComponentServiceTest.js
JavaScript
apache-2.0
12,562
describe("load balancing", () => { beforeEach(() => { cy.elektraLogin( Cypress.env("TEST_DOMAIN"), Cypress.env("TEST_USER"), Cypress.env("TEST_PASSWORD") ) }) it("open load balancer page and test new Load Balancer button", () => { cy.visit(`/${Cypress.env("TEST_DOMAIN")}/member/lbaa...
sapcc/elektra
e2e/cypress/integration/member/load_balancing.js
JavaScript
apache-2.0
619
define("Ti/UI/ImageView", ["Ti/_/declare", "Ti/_/UI/Widget", "Ti/_/dom", "Ti/_/css", "Ti/_/style", "Ti/_/lang"], function(declare, Widget, dom, css, style, lang) { var set = style.set; return declare("Ti.UI.ImageView", Widget, { constructor: function() { this.contentContainer = dom.create("div", {...
addieljuarez/ModuloMapa
build/mobileweb/Ti/UI/ImageView.js
JavaScript
apache-2.0
4,610
var collectors_8h = [ [ "collectors_count", "collectors_8h.html#ab709d95eaa281d9723c39cf3d66a3492", null ], [ "collectors_create", "collectors_8h.html#ab3fa6e60109a0499106bd556f9432630", null ], [ "collectors_destroy", "collectors_8h.html#a57308c3bcbb0e0c9838a9102db81900a", null ], [ "collectors_send", ...
vladn-ma/vladn-ovs-doc
doxygen/ovs_all/html/collectors_8h.js
JavaScript
apache-2.0
385
var mongoose = require('mongoose'); var ObjectId = mongoose.Schema.Types.ObjectId; /** * 订单结算 */ var SettleSchema = new mongoose.Schema({ //订单ID orderID: ObjectId, //结算类型 type: String, //抵扣金额 deductAmount: Number, //创建时间 createTime: {type: Date, default: Date.now} }); mongoose.mo...
wade-yifeng/soofruit
models/settle.js
JavaScript
apache-2.0
384
import configureMockStore from 'redux-mock-store' import thunk from 'redux-thunk' import reducer, { SET_CATALOG, setCatalog, getCatalog, initialState } from '../../common/modules/catalog.module' const mockStore = configureMockStore([thunk]) const fakeResponse = { data: { hello: 'world' } } describe('Catalo...
OpenWiseSolutions/openhub-framework
admin-console/src/tests/modules/catalog.module.spec.js
JavaScript
apache-2.0
1,162
import { ajaxPromise } from 'ember-api-store/utils/ajax-promise'; export default function fetchYaml(yamlLink){ return ajaxPromise({ method: 'GET', url: yamlLink, headers: { Accept: 'application/yaml' } }).then(data =>{ return data.xhr.responseText; }) }
pengjiang80/ui
lib/shared/addon/utils/fetch-yaml.js
JavaScript
apache-2.0
302
import React, { Component } from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import Dialog from 'material-ui/Dialog' import Dropzone from 'react-dropzone' import FlatButton from 'material-ui/FlatButton' import Moment from 'moment' import { keepModalOpenSelector, currentUserS...
ted-eckel/in1box
frontend/components/KeepModal.js
JavaScript
apache-2.0
8,712
var win = Titanium.UI.currentWindow; var imageView = Titanium.UI.createImageView({ image:'../../images/fish.png', width:261, height:178, top:20 }); win.add(imageView);
wdmchaft/Translator
Resources/views/items/fish.js
JavaScript
apache-2.0
176
var LABKEY = require("labkey"); var Ext = require("Ext4").Ext; var logger = require("wnprc_ehr/lib/Logger").Logger; var Validator = {}; exports.Validator = Validator; Validator.Severity = { ERROR: "ERROR", INFO: "INFO", WARN: "WARN" }; Validator.new = function(EHR, row, scriptErrors, helper) { var ...
WNPRC-EHR-Services/wnprc-modules
WNPRC_EHR/resources/scripts/wnprc_ehr/lib/Validator.js
JavaScript
apache-2.0
8,126
Twilio={extend:function(s){for(var v in s)Twilio[v]=s[v]}}; Twilio.extend(function(){var s={},v={},B=function(){function k(a){if(!(a in v)){var f={};s["lib/"+a+".js"].apply(f,[k,f]);v[a]=f}return v[a]}return k}();s["lib/twilio/connection.js"]=function(k,a){function f(a,g,r){if(!(this instanceof f))return new f(a,g,r);t...
amaioli/QRscath-master
assets/twilio.min.js
JavaScript
apache-2.0
64,202
/** * Created by developgopi on 14/5/15. */ angular.module('Opteamize.profile').controller('CarouselDemoCtrl', function () { this.myInterval = 5000; this.slides = []; this.addSlide = function() { this.slides.push({ t:5 }); }; for (var i=0; i<64; i++) { this...
naveensf/bluemix
app/modules/profile/profile_modal_controller.js
JavaScript
apache-2.0
18,399
/** * @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/assert/is-undefined-or-null/lib/main.js
JavaScript
apache-2.0
1,412
var appLocale = {lc:{"ar":function(n){ if (n === 0) { return 'zero'; } if (n == 1) { return 'one'; } if (n == 2) { return 'two'; } if ((n % 100) >= 3 && (n % 100) <= 10 && n == Math.floor(n)) { return 'few'; } if ((n % 100) >= 11 && (n % 100) <= 99 && n == Math.floor(n)) { return '...
bakerfranke/code-dot-org
dashboard/public/apps-package/js/fr_fr/calc_locale.js
JavaScript
apache-2.0
6,651
// Copyright 2014 DeNA Co., Ltd. // // 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 ...
PexJS/PexJS
src/define.js
JavaScript
apache-2.0
4,312
/*global CSL: true */ CSL.NameOutput.prototype.setEtAlParameters = function () { var i, ilen, j, jlen; for (i = 0, ilen = this.variables.length; i < ilen; i += 1) { var v = this.variables[i]; if ("undefined" === typeof this.etal_spec[v]) { this.etal_spec[v] = {freeters:0,institution...
crosscite/citeproc-doi-server
lib/citeproc-js/src/util_names_etal.js
JavaScript
apache-2.0
1,808
var net = require('net'); var buf = Buffer(102400); var t0 = process.hrtime(); var t1; var client = net.connect(8888, '192.168.7.1', function() { client.write(buf); client.end(); }); client.on('end', function() { t1 = process.hrtime(t0); console.log((t1[0] * 1e3 + t1[1] / 1e6).toString()); });
NetX-lab/RepNet-Experiments
intuition/tcpsend.js
JavaScript
apache-2.0
305
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
amarzavery/azure-sdk-for-node
lib/services/apimanagement/lib/models/tagResourceCollection.js
JavaScript
apache-2.0
1,813
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import slugify from 'slugify'; import { fetchWordSampleSentences } from '../../../actions/topicActions'; import withHelp from '../../common/hocs/HelpfulContain...
mitmedialab/MediaCloud-Web-Tools
src/components/topic/words/WordInContextContainer.js
JavaScript
apache-2.0
3,536
"use strict"; const $ = require("jquery"); const colors = require("./colors"); const templates = require("./templates"); var summary = {}; function render() { var topTags = []; $.each(summary, function(k, v) { topTags.push({ name: k, val: v }); }); topTags.sor...
cloudflare/unsee
assets/static/summary.js
JavaScript
apache-2.0
1,821
/* * coerce.js * * David Janes * IOTDB * 2016-06-07 * * Copyright (2013-2020) David P. Janes * * 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...
dpjanes/iotdb-helpers
lib/coerce.js
JavaScript
apache-2.0
7,651
exports.definition = { config: { adapter: { type: "properties", collection_name: "user", idAttribute : 'loginUser' } }, extendModel: function(Model) { _.extend(Model.prototype, { // extended functions and properties go here }); return Model; }, extendCollection: function(Collection) { _.e...
tidevkr/tidev10hr
app/models/user.js
JavaScript
apache-2.0
431
/* eslint-disable class-methods-use-this */ /* Copyright 2017 Paul Zuehlcke - paul.zuehlcke.de 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 Unle...
Trikolon/pbz-uber
src/Config/ConfigStorage.js
JavaScript
apache-2.0
2,907
function Welcome(props) { return <h1>Hello, {props.name}</h1>; } function App() { return ( <div> <Welcome name="Sara"/> <Welcome name="Cahal"/> <Welcome name="Edite"/> </div> ); } ReactDOM.render( <App />, document.getElementById('root') );
baodehua/JavaWebDemo
DemoWeb/src/main/webapp/scripts/pages/index.js
JavaScript
apache-2.0
314
/** * Copyright 2014 Daniel Furtlehner * * 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 ...
furti/ng-dashboard
specs/arrayGroupProvier.spec.js
JavaScript
apache-2.0
2,234
/*global NMTdata,window*/ /*** * Provides data and methods for serving ads. * @author: Duane.Jennings@niit-mediatech.com * @version: 201701111420:443263 * */ var NMTdata = NMTdata || {}; NMTdata.ads = (function () { // REQUIRES: NMTdata.data module to be loaded prior to this module. // ads re...
ldjennin/nmt_data
src/mbu/nmt_ads_sar.js
JavaScript
apache-2.0
9,463
{"Core":[[[0,0,2]],[0,0,[1,1,2]],[[0,1]]],"Skin":{"Name":"Too many mand hyps! step 3","HypNames":["hyp"],"DepNames":["19.21ai"],"VarNames":["ph","x","ps"],"TermNames":["->","A."],"Delimiters":[]},"Tree":{"Cmd":"thm","Deps":[[[[[0,0,2]],[0,0,[1,1,2]],[[0,1]]],[0,1]]],"Proof":["Hyps.0",1,0,"Deps.0"]},"FreeMaps":[[],[[]]]...
abliss/caghni
test/bad-facts/Too_many_mand_hyps__step_3.js
JavaScript
apache-2.0
321
const assert = require('assert'); const mehdown = require('../../lib'); describe('headers', function() { it('adds ids for anchors', function(done) { mehdown.render('# What is meh', function(err, html) { assert.strictEqual(html, '<h1 id="what-is-meh">What is meh</h1>'); done(); ...
mediocre/mehdown
test/plugins/anchors.js
JavaScript
apache-2.0
2,108
/** * @Author: liushaobo2005@163.com * @Date: 2017.5.8 下午 3:11 * @Desc: 公共组件 - navi_scenes * @Name: navi_scenes.js * @LifeCycle:https://github.com/kinshasa/react-native-qatest */ import React from "react"; import tab_navigator from "./containers/home/list/tab_navigator"; export default navi_scenes = { tab: ...
kinshasa/react-native-qatest
src/navi_scenes.js
JavaScript
apache-2.0
360
/* * jHue validation plugin */ ;(function ($, window, document, undefined) { var pluginName = "jHueValidation", defaults = { }; function Plugin(element, options) { this.element = element; this.options = $.extend({}, defaults, options) ; this._defaults = defaults; this._name = pluginName; this.init(); }...
hortonworks/hortonworks-sandbox
desktop/core/static/js/Source/jHue/jquery.validation.js
JavaScript
apache-2.0
810
import React from 'react' import { graphql } from 'gatsby' import { FancyRadioGroup, FancyRadioOption } from '../../FancyRadio' import { DonationFrequencies } from './index.js' class Gifts extends React.Component { render() { const { gifts, ...props } = this.props; return ( <FancyRadioG...
StudentRND/www
src/components/Blocks/DonationForm/gifts.js
JavaScript
artistic-2.0
2,352
function myGirl() { document.getElementById("WildHair").height="628"; document.getElementById("WildHair").width="640"; } function mylilGirl() { document.getElementById("WildHair").height="236"; document.getElementById("WildHair").width="240"; }
NOCKLIST/javascript-image_big_small
javascript.js
JavaScript
artistic-2.0
245
var map = require('source-map'); var SourceNode = map.SourceNode; var fs = require('fs'); var input = process.argv[2]; var p6source = process.argv[3] var outputJs = process.argv[4]; var outputSourceMap = process.argv[5]; var data = JSON.parse(fs.readFileSync(input,'utf-8')); function toNode(chunk) { if (chunk.line) ...
cygx/nqp
src/vm/js/bin/gen_sourcemap.js
JavaScript
artistic-2.0
884
var _ = require("underscore"); var Player = function(name, password) { var self = this; self._credits = 0; self._loggedin = {}; self.name = function() { return name; }; self.password = function() { return password; }; self.credits = function() { return self._credits; }; self.addCredits...
buggyvelarde/chohan
libs/models.js
JavaScript
artistic-2.0
2,099