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 |
|---|---|---|---|---|---|
// Copyright 2014 The Closure Library 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 requ... | HomeAutoM8/ui | public/assets/closure-library/closure/goog/testing/testcase_test.js | JavaScript | gpl-3.0 | 26,272 |
/**
* @author mrdoob / http://mrdoob.com/
* @author ryg / http://farbrausch.de/~fg
* @author mraleph / http://mrale.ph/
* @author daoshengmu / http://dsmu.me/
*/
THREE.SoftwareRenderer = function ( parameters ) {
console.log( 'THREE.SoftwareRenderer', THREE.REVISION );
parameters = parameters || {};
var can... | commanderZiltoid/socketio-authoritative-fps | server/node_modules/three/examples/js/renderers/SoftwareRenderer.js | JavaScript | gpl-3.0 | 35,698 |
var assert = require("assert");
var {absolute, join} = require("fs");
var strings = require("ringo/utils/strings");
var {separator} = java.io.File;
exports.setup = function(exports, path, repo) {
exports.testGetResource = function() {
var res = repo.getResource("test.txt");
assert.strictEqual(res.... | cga-harvard/worldmap | src/geonode-client/externals/ringo/test/repository/common.js | JavaScript | gpl-3.0 | 4,075 |
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*
* Copyright (c) 2014, Joyent, Inc.
*/
var Backbone = require('backbone');
var View = Backbone.Marione... | chudley/sdc-adminui | www/js/views/services-create.js | JavaScript | mpl-2.0 | 398 |
var assert = require('chai').assert;
var traceurSystem = global.System;
var System = require('../third_party/es6-module-loader/index').System;
global.System = traceurSystem;
var Options = global.traceur.util.Options;
System.baseURL = __dirname + '/instantiate/';
var traceurOptions;
suite('instantiate', function() {... | bjlxj2008/traceur-compiler | test/node-instantiate-test.js | JavaScript | apache-2.0 | 5,743 |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'liststyle', 'si', {
armenian: 'Armenian numbering', // MISSING
bulletedTitle: 'Bulleted List Properties', // MISSING
circle: 'Circle', // MISSING
... | ldilov/uidb | plugins/ckeditor/plugins/liststyle/lang/si.js | JavaScript | apache-2.0 | 1,151 |
defineSuite([
'Core/Cartesian3',
'Core/Color',
'Core/ColorGeometryInstanceAttribute',
'Core/defaultValue',
'Core/GeometryInstance',
'Core/Math',
'Core/PerspectiveFrustum',
'Core/Rectangle',
'Core/RectangleGeometry',
'Core/Resource',
... | geoscan/cesium | Specs/Scene/PrimitiveCullingSpec.js | JavaScript | apache-2.0 | 7,689 |
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.extent');
goog.require('ol.format.WMTSCapabilities');
goog.require('ol.layer.Tile');
goog.require('ol.proj');
goog.require('ol.source.OSM');
goog.require('ol.source.TileImage');
goog.require('ol.source.TileWMS');
goog.require('ol.source.WMTS');
goog.requ... | klokantech/ol3 | examples/reprojection.js | JavaScript | bsd-2-clause | 6,966 |
import {localeModule, test} from '../qunit';
import moment from '../../moment';
localeModule('sw');
test('parse', function (assert) {
var tests = 'Januari Jan_Februari Feb_Machi Mac_Aprili Apr_Mei Mei_Juni Jun_Julai Jul_Agosti Ago_Septemba Sep_Oktoba Okt_Novemba Nov_Desemba Des'.split('_'), i;
function equalTe... | akhatnya/testing | vendor/bower/moment/src/test/locale/sw.js | JavaScript | bsd-3-clause | 12,500 |
'use strict';
/**
* @ngdoc directive
* @name ng.directive:select
* @restrict E
*
* @description
* HTML элемент `SELECT` с поддержкой связывания данных.
*
* # `ngOptions`
*
* Необязательный атрибут `ngOptions` может использоваться для динамической генерации списка элементов
* `<option>` для элемента `<selec... | Stopy/angular-doc | src/ng/directive/select.js | JavaScript | mit | 24,890 |
// tquery.js - https://github.com/jeromeetienne/tquery - MIT License
| creatologist/sandbox-js | threeJS/tquery/build/tquery-bundle.min.js | JavaScript | mit | 70 |
'use strict';
const gulp = require('gulp');
const path = require('path');
const tools = require('urbanjs-tools');
tools.tasks.nsp.register(gulp, 'nsp', {
packageFile: path.join(__dirname, 'package.json')
});
| urbanjs/urbanjs-tools | packages/urbanjs-tool-nsp/tests/valid-project/gulpfile.js | JavaScript | mit | 212 |
define("d3/test/xhr/json-test", ["dojo","dijit","dojox"], function(dojo,dijit,dojox){
var vows = require("vows"),
load = require("../load"),
assert = require("../assert");
var suite = vows.describe("d3.json");
suite.addBatch({
"json": {
topic: load("xhr/json").expression("d3.json").document(),
"on ... | hyoo/p3_web | public/js/release/d3/test/xhr/json-test.js | JavaScript | mit | 1,662 |
function ctype_print(text) {
// discuss at: http://phpjs.org/functions/ctype_print/
// original by: Brett Zamir (http://brett-zamir.me)
// depends on: setlocale
// example 1: ctype_print('AbC!#12');
// returns 1: true
if (typeof text !== 'string') {
return false;
}
// BEGIN REDUNDANT
this.s... | grshane/monthofmud | web/themes/custom/mom/node_modules/phpjs/functions/ctype/ctype_print.js | JavaScript | mit | 518 |
var Vec3 = require('../math/Vec3');
module.exports = Spring;
/**
* A spring, connecting two bodies.
*
* @class Spring
* @constructor
* @param {Body} bodyA
* @param {Body} bodyB
* @param {Object} [options]
* @param {number} [options.restLength] A number > 0. Default: 1
* @param {number} [options.stiffness] ... | Tezirg/cannon.js | src/objects/Spring.js | JavaScript | mit | 5,293 |
var parent = require('../../../stable/string/virtual/fontsize');
module.exports = parent;
| zloirock/core-js | packages/core-js/actual/string/virtual/fontsize.js | JavaScript | mit | 91 |
/**
* `tagfield` provides a combobox that removes the hassle of dealing with long and unruly select
* options. The selected list is visually maintained in the value display area instead of
* within the picker itself. Users may easily add or remove `tags` from the
* display value area.
*
* @example
* ... | elasticsearcher/Bizcuit | src/ui/ext/classic/classic/src/form/field/Tag.js | JavaScript | gpl-3.0 | 41,740 |
//MES- We want to automatically detect what timezone a user is in. In a web application,
// the timezone of the user is not easily available. However, we do have a clue.
// The JavaScript function Date.getTimezoneOffset() returns the offset from UTC for
// a given date (in minutes.) If we ask for the offset for ... | arunagw/clockingit | public/javascripts/tz.js | JavaScript | agpl-3.0 | 7,601 |
'use strict';
const path = require('path');
const WIN_SLASH = '\\\\/';
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
/**
* Posix glob regex
*/
const DOT_LITERAL = '\\.';
const PLUS_LITERAL = '\\+';
const QMARK_LITERAL = '\\?';
const SLASH_LITERAL = '\\/';
const ONE_CHAR = '(?=.)';
const QMARK = '[^/]';
const END_ANCHOR ... | ChromeDevTools/devtools-node-modules | third_party/node_modules/picomatch/lib/constants.js | JavaScript | apache-2.0 | 4,447 |
sap.ui.require([
'sap/ui/test/Opa5',
'sap/ui/test/matchers/AggregationLengthEquals',
'sap/ui/test/matchers/PropertyStrictEquals',
'sap/ui/demo/bulletinboard/test/integration/pages/Common',
'sap/ui/test/actions/Press'
],
function (Opa5,
AggregationLengthEquals,
PropertyStrictEquals,
Common,
... | SQCLabs/openui5 | src/sap.m/test/sap/m/demokit/tutorial/testing/07/webapp/test/integration/pages/Worklist.js | JavaScript | apache-2.0 | 2,261 |
//// [varianceRepeatedlyPropegatesWithUnreliableFlag.ts]
type A = { a: number };
type B = { b: number };
type X<T> = ({ [K in keyof T]: T[K] } & Record<string, void>)[keyof T];
type P1<T> = { data: X<T> };
type P2<T> = { data: X<T> };
interface I<T> {
fn<K extends keyof T>(p1: P1<Pick<T, K>>, p2: P2<Pick<T, K>>):... | alexeagle/TypeScript | tests/baselines/reference/varianceRepeatedlyPropegatesWithUnreliableFlag.js | JavaScript | apache-2.0 | 730 |
/**
* SVG grunt task for CartoDB.js
*
*/
module.exports = {
task: function() {
return {
dist: {
files: [{
expand: true,
cwd: '<%= config.dist %>/<%= config.app %>',
src: '**/*.svg',
dest: '<%= config.dist %>/<%= config.app %>'
}]
}
}
... | comilla/map | lib/assets/javascripts/cdb/grunt/tasks/svgmin.js | JavaScript | bsd-3-clause | 323 |
/*!
* jQuery UI Sortable 1.10.3
* http://jqueryui.com
*
* Copyright 2013 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/sortable/
*
* Depends:
* jquery.ui.core.js
* jquery.ui.mouse.js
* jquery.ui.widget.js
*/... | dereckleme/siteBouts | testeJsGaleria/js/jquery-ui-1.10.3/ui/jquery.ui.sortable.js | JavaScript | bsd-3-clause | 43,989 |
version https://git-lfs.github.com/spec/v1
oid sha256:85c6e80fe290ea76de8396f8607df1301a71e2089a71a99fc90bfd9b7b159546
size 16638
| yogeshsaroya/new-cdnjs | ajax/libs/yui/3.14.1/querystring-parse/querystring-parse-coverage.js | JavaScript | mit | 130 |
/**
* https://github.com/mrdoob/eventdispatcher.js/
*/
THREE.EventDispatcher = function () {};
Object.assign( THREE.EventDispatcher.prototype, {
addEventListener: function ( type, listener ) {
if ( this._listeners === undefined ) this._listeners = {};
var listeners = this._listeners;
if ( l... | masterfish2015/my_project | 半导体物理/js/three/src/core/EventDispatcher.js | JavaScript | mit | 1,683 |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'format', 'sl', {
label: 'Oblika',
panelTitle: 'Oblika',
tag_address: 'Napis',
tag_div: 'Navaden (DIV)',
tag_h1: 'Naslov 1',
tag_h2:... | webmasterETSI/web | web/ckeditor/plugins/format/lang/sl.js | JavaScript | mit | 472 |
(function(window, undefined) {
window.tracking = window.tracking || {};
/**
* Inherit the prototype methods from one constructor into another.
*
* Usage:
* <pre>
* function ParentClass(a, b) { }
* ParentClass.prototype.foo = function(a) { }
*
* function ChildClass(a, b, c) {
* tracking... | jeromeetienne/AR.js | three.js/experiments/face-tracking/vendor/tracking.js/src/tracking.js | JavaScript | mit | 9,933 |
module.exports={A:{A:{"132":"K C G E A B YB"},B:{"2":"D w Z I M H"},C:{"2":"0 1 3 5 6 7 8 WB AB F J K C G E A B D w Z I M H N O P Q R S T U V W X Y y a b c d e f L h i j k l m n o p q r s t u v z x UB OB"},D:{"289":"0 1 3 5 6 7 8 F J K C G E A B D w Z I M H N O P Q R S T U V W X Y y a b c d e f L h i j k l m n o p q r ... | severnsc/brewing-app | src/client/node_modules/caniuse-lite/data/features/css-scrollbar.js | JavaScript | mit | 839 |
// Github: https://github.com/shdwjk/Roll20API/blob/master/GroupInitiative/GroupInitiative.js
// By: The Aaron, Arcane Scriptomancer
// Contact: https://app.roll20.net/users/104025/the-aaron
var GroupInitiative = GroupInitiative || (function() {
'use strict';
var version = '0.9.18',
lastUpdat... | manveti/roll20-api-scripts | GroupInitiative/GroupInitiative.js | JavaScript | mit | 53,176 |
var searchData=
[
['addcallcompletedcallback',['AddCallCompletedCallback',['../classv8_1_1_v8.html#a3f70d920e58ac54b56f06363b5130fa3',1,'v8::V8']]],
['addgcepiloguecallback',['AddGCEpilogueCallback',['../classv8_1_1_v8.html#a37aadf3536c772eb5bbf67fa7822679a',1,'v8::V8']]],
['addgcprologuecallback',['AddGCPrologue... | v8-dox/v8-dox.github.io | e5db01e/html/search/functions_0.js | JavaScript | mit | 1,337 |
// Copyright 2010 The Closure Library 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 requ... | saarons/closure | vendor/closure-library/closure/goog/events/eventtype.js | JavaScript | mit | 4,221 |
// Generated by CoffeeScript 1.3.3
(function() {
var Event, EventEmitter, EventEmitterEnhanced, EventSystem, balUtilFlow, balUtilTypes, debug,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ct... | davidmarkclements/livereload2 | node_modules/watchr/node_modules/bal-util/out/lib/events.js | JavaScript | mit | 7,683 |
var recast = require("../main");
var n = recast.types.namedTypes;
var b = recast.types.builders;
var fromString = require("../lib/lines").fromString;
var util = require("../lib/util");
var annotated = [
"function dup(/* string */ s,",
" /* int */ n) /* string */",
"{",
" // Use an array fu... | eftals/RstDocLoader | node_modules/superagent-proxy/node_modules/proxy-agent/node_modules/pac-proxy-agent/node_modules/pac-resolver/node_modules/regenerator/node_modules/recast/test/comments.js | JavaScript | unlicense | 5,726 |
var React = require('react');
var ProfileComponent = require('../components/ProfileComponent');
var RawJSONComponent = require('../components/RawJSONComponent');
var ConfigComponent = React.createClass({
displayName: "ConfigComponent",
render: function () {
// get all the profile names from the config
va... | smarella/myriad | myriad-scheduler/src/main/resources/webapp/js/components/ConfigComponent.js | JavaScript | apache-2.0 | 938 |
// vim: tabstop=2:softtabstop=2:shiftwidth=2
var frisby = require('frisby');
var datatest = require('./data');
var util = require('util');
var baseURL = '';
function init(_baseURL) {
baseURL = _baseURL;
frisby.globalSetup({ // globalSetup is for ALL requests
request: {
headers: { 'Content-type': 'appli... | shaunmza/joindin-api | tests/frisby/api_write.js | JavaScript | bsd-3-clause | 6,274 |
/*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("series-spline",function(e,t){e.SplineSeries=e.Base.create("splineSeries",e.LineSeries,[e.CurveUtil,e.Lines],{drawSeries:function(){this.drawSpline()}},{ATTRS:{type:{v... | gdomingos/Wegas | wegas-resources/src/main/webapp/lib/yui3/build/series-spline/series-spline-min.js | JavaScript | mit | 397 |
require('./harness').run();
var recvCount = 0;
var body = "hello world";
connection.addListener('ready', function () {
puts("connected to " + connection.serverProperties.product);
var q = connection.queue('node-default-exchange', function() {
q.bind("#"); // bind to queue
q.on('queueBindOk', function() ... | february29/Learning | web/vue/AccountBook-Express/node_modules/amqp/test/test-default-exchange.js | JavaScript | mit | 1,398 |
// HTML5 entities map: { name -> utf16string }
//
'use strict';
/*eslint quotes:0*/
module.exports = require('entities/lib/maps/entities.json');
| ealbertos/dotfiles | vscode.symlink/extensions/yzhang.markdown-all-in-one-3.4.0/node_modules/markdown-it/lib/common/entities.js | JavaScript | mit | 146 |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.default = void 0;
function _child_process() {
const data = require('child_process');
_child_process = function () {
return data;
};
return data;
}
function _stream() {
const data = require('stream');
_stream = f... | arvenil/resume | node_modules/jest-worker/build/workers/ChildProcessWorker.js | JavaScript | mit | 8,095 |
(function (global) {
var babelHelpers = global.babelHelpers = {};
babelHelpers.inherits = function (subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
}
subCla... | waddedMeat/ember-proxy-example | test-app/node_modules/ember-cli-babel/node_modules/broccoli-babel-transpiler/node_modules/babel-core/external-helpers.js | JavaScript | mit | 11,454 |
'use strict';
exports.__esModule = true;
var _plugin = require('../plugin');
var _plugin2 = _interopRequireDefault(_plugin);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var targets = ['ie 5.5', 'ie 6', 'ie 7'];
exports.default = (0, _plugin2.default)(targets, ['... | NathanBWaters/jb_club | node_modules/stylehacks/dist/plugins/important.js | JavaScript | mit | 623 |
!function(e){"function"==typeof define&&define.amd?define(["../datepicker"],e):e(jQuery.datepicker)}(function(e){return e.regional.bs={closeText:"Zatvori",prevText:"<",nextText:">",currentText:"Danas",monthNames:["Januar","Februar","Mart","April","Maj","Juni","Juli","August","Septembar","Oktobar","Novembar","... | frisbeesport/frisbeesport.nl | vendor/bolt/bolt/app/view/js/locale/datepicker/bs.min.js | JavaScript | mit | 752 |
ace.define("ace/snippets/scad",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText =undefined;
exports.scope = "scad";
}); (function() {
ace.require(["ace/snippets/scad"], function(m) {
if (typeof module == "... | KanoComputing/make-art | www/js/vendor/ace/snippets/scad.js | JavaScript | gpl-2.0 | 503 |
describe("Ext.Element.static", function() {
var el, input, child1, child2, child3;
beforeEach(function() {
el = Ext.getBody().createChild({
id : 'ExtElementHelper',
style : 'position:absolute;',
children: [
{id: 'child1', style: 'po... | turtlerrrrr/myapp | web/src/main/webapp/WEB-INF/app/ext/packages/core/test/specs/dom/Element.static.js | JavaScript | gpl-2.0 | 6,257 |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'liststyle', 'sl', {
armenian: 'Armenian numbering',
bulletedTitle: 'Bulleted List Properties',
circle: 'Circle',
decimal: 'Decimal (1, 2, 3, etc.)... | gmuro/dolibarr | htdocs/includes/ckeditor/ckeditor/_source/plugins/liststyle/lang/sl.js | JavaScript | gpl-3.0 | 922 |
/* */
var defined = require('./$.defined'),
cof = require('./$.cof');
module.exports = function(that, searchString, NAME) {
if (cof(searchString) == 'RegExp')
throw TypeError('String#' + NAME + " doesn't accept regex!");
return String(defined(that));
};
| elsiklab/sequenceserver | public/vendor/npm/core-js@1.1.2/modules/$.string-context.js | JavaScript | agpl-3.0 | 267 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
var customDomainsTextbox;
var saveButton;
function init() {
customDomainsTextbox = document.getElementById("custom-domain");
saveButton = documen... | gavinp/chromium | chrome/common/extensions/docs/examples/extensions/gmail/options.js | JavaScript | bsd-3-clause | 1,055 |
describe('dropdown:', function() {
beforeEach(function() {
this.addMatchers({
// Place dropdown-specific matchers here...
});
var origFunc = $.fn.foundation;
spyOn($.fn, 'foundation').andCallFake(function() {
var result = origFunc.apply(this, arguments);
jasmine.Clock.tick(1000); //... | zurb/foundation-sites-6 | spec/foundation/dropdown/dropdown.js | JavaScript | mit | 3,121 |
/*!
* AngularJS Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.5
*/
goog.provide('ngmaterial.components.tooltip');
goog.require('ngmaterial.components.panel');
goog.require('ngmaterial.core');
/**
* @ngdoc module
* @name material.components.tooltip
*/
MdTooltipDirective['$inject'] =... | romulus3799/pyramid | public/libs/angular-material/modules/closure/tooltip/tooltip.js | JavaScript | mit | 16,502 |
'use strict';
// See https://github.com/nodejs/node/issues/5927
const common = require('../common');
const assert = require('assert');
const spawn = require('child_process').spawn;
if (process.argv[2] === 'child') {
process.stdin.pipe(process.stdout);
return;
}
const child = spawn(process.execPath, [__filename, ... | MTASZTAKI/ApertusVR | plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/test/parallel/test-stdin-pipe-large.js | JavaScript | mit | 616 |
(function () {
'use strict';
function usersHelperService(localizationService) {
var userStates = [
{ "name": "All", "key": "All"} ,
{ "value": 0, "name": "Active", "key": "Active", "color": "success" },
{ "value": 1, "name": "Disabled", "key": "Disabled", "color": "... | umbraco/Umbraco-CMS | src/Umbraco.Web.UI.Client/src/common/services/usershelper.service.js | JavaScript | mit | 2,190 |
/* ========================================================================
* Bootstrap (plugin): validator.js v0.6.0
* ========================================================================
* The MIT License (MIT)
*
* Copyright (c) 2013 Spiceworks, Inc.
* Made by Cina Saffary (@1000hz) in the style of Bootstra... | zardaloop/bootstrap-validator | js/validator.js | JavaScript | mit | 9,278 |
'use strict';
if (typeof DEBUG === 'undefined') {
var DEBUG = false;
}
function WebpackServiceWorker(params) {
var strategy = params.strategy;
var assets = params.assets;
var hashesMap = params.hashesMap;
// Not used yet
// const alwaysRevalidate = params.alwaysRevalidate;
// const ignoreSearch = param... | Planigle/planigle | node_modules/offline-plugin/lib/misc/sw-template.js | JavaScript | gpl-2.0 | 10,891 |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var gTestfile = 'regress-349653.js... | sainaen/rhino | testsrc/tests/js1_7/block/regress-349653.js | JavaScript | mpl-2.0 | 1,042 |
'use strict';
module.exports = function (t, a) {
a(t.call('a', 0), '', "Empty");
a(t.call('a', 1), 'a', "1");
a(t.call('\t', 5), '\t\t\t\t\t', "Whitespace");
a(t.call('raz', 3), 'razrazraz', "Many chars");
};
| Ramanujakalyan/Inherit | ui/node_modules/gulp-minify-html/node_modules/minimize/node_modules/cli-color/node_modules/es5-ext/test/string/#/repeat/shim.js | JavaScript | unlicense | 222 |
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
function benchName(bench, setup) {
var name = bench.name;
if (setup) name += "/" + setup.name;
return name;
}
function slowBenchName(bench, setup... | weolar/miniblink49 | v8_7_5/test/js-perf-test/RegExp/base.js | JavaScript | apache-2.0 | 1,155 |
//>>built
define("dojox/mobile/EdgeToEdgeStoreList",["dojo/_base/declare","./EdgeToEdgeList","./_StoreListMixin"],function(a,b,c){return a("dojox.mobile.EdgeToEdgeStoreList",[b,c],{})}); | aconyteds/Esri-Ozone-Map-Widget | vendor/js/esri/arcgis_js_api/library/3.12/3.12compact/dojox/mobile/EdgeToEdgeStoreList.js | JavaScript | apache-2.0 | 186 |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'contextmenu', 'si', {
options: 'අනතර්ග ලේඛණ විකල්ප'
} );
| ldilov/uidb | plugins/ckeditor/plugins/contextmenu/lang/si.js | JavaScript | apache-2.0 | 264 |
import { Matrix3 } from '../../math/Matrix3.js';
import { Plane } from '../../math/Plane.js';
function WebGLClipping( properties ) {
const scope = this;
let globalState = null,
numGlobalPlanes = 0,
localClippingEnabled = false,
renderingShadows = false;
const plane = new Plane(),
viewNormalMatrix = new M... | mrdoob/three.js | src/renderers/webgl/WebGLClipping.js | JavaScript | mit | 3,342 |
var knwl = new Knwl();
var demo = {};
demo.resultBoxes = {};
demo.input = null;
demo.resultsDiv = null;
demo.setup = function() {
var resultsDiv = document.getElementById('results');
demo.resultsDiv = resultsDiv;
for (var el in demo.resultBoxes) {
if (demo.resultsDiv.contains(demo.resultBoxes[el])) {
demo.resu... | moimikey/Knwl.js | demo/src/main.js | JavaScript | mit | 2,148 |
//** Smooth Navigational Menu- By Dynamic Drive DHTML code library: http://www.dynamicdrive.com
//** Script Download/ instructions page: http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/
//** Menu created: Nov 12, 2008
//** Dec 12th, 08" (v1.01): Fixed Shadow issue when multiple LIs within the same UL (level) co... | yankaili2006/wordpress | wp-content/themes/simplo/js/ddsmoothmenu.js | JavaScript | gpl-2.0 | 6,877 |
/*
* Copyright 2012 Mark Cavage. All rights reserved.
*
* Help nodeunit API feel like node-tap's.
*
* Usage:
* if (require.cache[__dirname + '/tap4nodeunit.js'])
* delete require.cache[__dirname + '/tap4nodeunit.js'];
* var tap4nodeunit = require('./tap4nodeunit.js');
* var after = tap... | joyent/sdc-headnode | tools/node_modules/cmdln/test/tap4nodeunit.js | JavaScript | mpl-2.0 | 1,947 |
window.open=function(){
}
var uex_s_uex="&";
function uexJoin(a){
var l = a.length;
var t = "";
if (l > 0) {
t += "?";
for(var i=0;i<l;i++){
t += encodeURIComponent(a[i]);
if (i+1 == l) {
return t;
}
t += uex_s_uex;
}
}
return t;
};
window.uex={
queue:{ commands:[],
... | AppCanOpenSource/appcan-plugin-demo-ios | 调试插件的工程模板/AppCanPlugin/AppCanPlugin/uex/uex.js | JavaScript | lgpl-3.0 | 20,949 |
/*
* 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 ... | rscrimojr/incubator-trafficcontrol | traffic_portal/app/src/modules/private/servers/deliveryServices/index.js | JavaScript | apache-2.0 | 1,666 |
module.exports = function(old, cfg) {
var data = cfg;
if (data.clock) {
data.clock.showTenths = data.pref.clockTenths;
data.clock.showBar = data.pref.clockBar;
}
if (data.correspondence)
data.correspondence.showBar = data.pref.clockBar;
if (data.game.variant.key === 'horde')
data.pref.show... | Happy0/lila | ui/round/src/data.js | JavaScript | mit | 357 |
/*!
* froala_editor v2.7.2 (https://www.froala.com/wysiwyg-editor)
* License https://froala.com/wysiwyg-editor/terms/
* Copyright 2014-2017 Froala Labs
*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory)... | yudicandrak/awk_blog | bootstrap/froala_editor/js/languages/uk.js | JavaScript | mit | 24,535 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({indentUnit: 2}, "soy");
function MT(name) {test.mode(name, mode, Array.prototype.slice.call(arguments, 1));}
// Test of small keywords and w... | mandino/hotelmilosantabarbara.com | wp-content/plugins/wpml-translation-management/libraries/CodeMirror/mode/soy/test.js | JavaScript | mit | 3,757 |
'use strict';
var defaults = require('./../defaults');
var utils = require('./../utils');
var InterceptorManager = require('./InterceptorManager');
var dispatchRequest = require('./dispatchRequest');
/**
* Create a new instance of Axios
*
* @param {Object} instanceConfig The default config for the instance
*/
fun... | diaspa-nds/cfar | static/axios/lib/core/Axios.js | JavaScript | gpl-2.0 | 2,187 |
/**
* Copyright (c) 2006-2015, JGraph Ltd
* Copyright (c) 2006-2015, Gaudenz Alder
*/
/**
* Class: mxRhombus
*
* Extends <mxShape> to implement a rhombus (aka diamond) shape.
* This shape is registered under <mxConstants.SHAPE_RHOMBUS>
* in <mxCellRenderer>.
*
* Constructor: mxRhombus
*
* Constructs a new ... | kyro46/assMxGraphQuestion | templates/mxgraph/js/shape/mxRhombus.js | JavaScript | gpl-3.0 | 1,468 |
/**
* Copyright (c) 2006
*
* Philipp Berger, Martin Czuchra, Gero Decker, Ole Eckermann, Lutz Gericke,
* Alexander Hold, Alexander Koglin, Oliver Kopp, Stefan Krumnow,
* Matthias Kunze, Philipp Maschke, Falko Menge, Christoph Neijenhuis,
* Hagen Overdick, Zhen Peng, Nicolas Peters, Kerstin Pfitzner, Daniel Pol... | dbmalkovsky/flowable-engine | modules/flowable-ui/flowable-ui-modeler-frontend/oryx-editor-code/scripts/erdfparser.js | JavaScript | apache-2.0 | 11,484 |
console.warn("warn -",`Imports like "const facebook = require('simple-icons/icons/facebook');" have been deprecated in v6.0.0 and will no longer work from v7.0.0, use "const { siFacebook } = require('simple-icons/icons');" instead`),module.exports={title:"Facebook",slug:"facebook",get svg(){return'<svg role="img" viewB... | cdnjs/cdnjs | ajax/libs/simple-icons/6.9.0/facebook.min.js | JavaScript | mit | 807 |
//MooTools, <http://mootools.net>, My Object Oriented (JavaScript) Tools. Copyright (c) 2006-2008 Valerio Proietti, <http://mad4milk.net>, MIT Style License.
var MooTools={version:"1.2dev",build:""};var Native=function(J){J=J||{};var F=J.afterImplement||function(){};var G=J.generics;G=(G!==false);var H=J.legacy;
var E... | maire/strongswan | src/medsrv/templates/static/mootools.js | JavaScript | gpl-2.0 | 64,133 |
// Based on http://bl.ocks.org/900762 by John Firebaugh
d3.json("../data/faithful.json", function(faithful) {
data = faithful;
var w = 800,
h = 400,
x = d3.scale.linear().domain([30, 110]).range([0, w]);
bins = d3.layout.histogram().frequency(false).bins(x.ticks(60))(data),
max = d3.max(bins... | rawbase/rawbase-server | pages/rawbase/js/lib/d3/examples/kde/kde.js | JavaScript | apache-2.0 | 1,281 |
var en = {};
module["exports"] = en;
en.title = "English";
en.separator = " & ";
en.address = {
"city_prefix": [
"North",
"East",
"West",
"South",
"New",
"Lake",
"Port"
],
"city_suffix": [
"town",
"ton",
"land",
"ville",
"berg",
"burgh",
"borough",
"bury... | Beaze/myNodeAPI | node_modules/faker/lib/locales/en.js | JavaScript | mit | 144,326 |
'use strict';
var StripeResource = require('../StripeResource');
var stripeMethod = StripeResource.method;
module.exports = StripeResource.extend({
path: '3d_secure',
includeBasic: [
'create',
'retrieve',
],
});
| dylanh724/tol-node-public | tol2-test/node_modules/stripe/lib/resources/ThreeDSecure.js | JavaScript | mit | 230 |
/*
* 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 ma... | ROLE/widget-store | src/main/drupal/sites/all/libraries/shindig2.5beta/features/src/main/javascript/features/i18n/data/NumberFormatConstants__mt_MT.js | JavaScript | gpl-2.0 | 1,425 |
var inst = require("../index").getInstance();
module.exports = inst.use("cssgrids-context-deprecated");
| berkmancenter/spectacle | web/js/app/editor/node_modules/grunt-contrib/node_modules/grunt-contrib-yuidoc/node_modules/yuidocjs/node_modules/yui/cssgrids-context-deprecated/index.js | JavaScript | gpl-2.0 | 104 |
odoo.define("web.DomainSelectorDialog", function (require) {
"use strict";
var core = require("web.core");
var Dialog = require("web.Dialog");
var DomainSelector = require("web.DomainSelector");
var _t = core._t;
/**
* @class DomainSelectorDialog
*/
return Dialog.extend({
init: function (parent, model, domain,... | ddico/odoo | addons/web/static/src/js/widgets/domain_selector_dialog.js | JavaScript | agpl-3.0 | 1,634 |
/*************************************************************
*
* MathJax/localization/pl/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... | GerHobbelt/MathJax | unpacked/localization/pl/MathMenu.js | JavaScript | apache-2.0 | 6,527 |
/* jshint latedef:false */
/* jshint forin:false */
/* jshint noempty:false */
//
// Copyright (c) Microsoft and contributors. 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 th... | namratab/azure-sdk-for-node | lib/services/apiAppManagement/lib/apiAppManagementClient.js | JavaScript | apache-2.0 | 85,762 |
//// [parameterPropertyReferencingOtherParameter.ts]
class Foo {
constructor(public x: number, public y: number = x) { }
}
//// [parameterPropertyReferencingOtherParameter.js]
var Foo = /** @class */ (function () {
function Foo(x, y) {
if (y === void 0) { y = x; }
this.x = x;
t... | weswigham/TypeScript | tests/baselines/reference/parameterPropertyReferencingOtherParameter.js | JavaScript | apache-2.0 | 363 |
/*
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.mdnd.dropMode.OverDropMode"]){
dojo._hasResource["dojox.mdnd.dropMode.OverDropMode"]=true;
doj... | skobbler/AddressHunter | web-app/public/js/dojox/mdnd/dropMode/OverDropMode.js | JavaScript | bsd-3-clause | 2,960 |
// DATA_TEMPLATE: empty_table
oTest.fnStart( "aoColumns.bSortable" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bServerSide": true,
"sAjaxSource": "../../../examples/server_side/scripts/server_processing.php"
} );
var oSettings = oTable.fnSetting... | desarrollotissat/web-interface | web/js/DataTables-1.9.4/media/unit_testing/tests_onhold/4_server-side/aoColumns.bSortable.js | JavaScript | mit | 3,122 |
//>>built
define("dojox/form/nls/nl/CheckedMultiSelect",({invalidMessage:"Er moet ten minste één item geselecteerd worden.",multiSelectLabelText:"{num} item(s) geselecteerd"})); | nikochan2k/projeqtor-ja | external/dojox/form/nls/nl/CheckedMultiSelect.js | JavaScript | gpl-3.0 | 179 |
/*
* Copyright (c) 2012-2015 S-Core 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... | leechwin/webida-client | apps/deploy/plugins/paas/plugin.js | JavaScript | apache-2.0 | 3,280 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Custom binding for the fileBrowserPrivate API.
// Bindings
var binding = require('binding').Binding.create('fileBrowserPrivate');
var eventBinding... | boundarydevices/android_external_chromium_org | chrome/renderer/resources/extensions/file_browser_private_custom_bindings.js | JavaScript | bsd-3-clause | 3,025 |
var join = require('path').join,
assert = require('assert'),
mkdirp = require('mkdirp'),
lwip = require('../../'),
imgs = require('../imgs');
var tmpDir = join(__dirname, '../results'),
basename = 'contain',
current;
describe('lwip.contain', function() {
var image;
before(function(do... | weixin/node-lwip | tests/02.operations/119.contain.js | JavaScript | mit | 2,600 |
/*
* Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights... | zhukaixy/brackets | src/nls/uk/strings.js | JavaScript | mit | 59,692 |
var L = L || {};
L.states = {
"WA": {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
... | debjyoti385/intelliad | ui/src/data/stateData.js | JavaScript | mit | 595,244 |
module.exports = { prefix: 'far', iconName: 'id-badge', icon: [384, 512, [], "f2c1", "M0 48v416c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48V48c0-26.51-21.49-48-48-48H48C21.49 0 0 21.49 0 48zm336 32v378a6 6 0 0 1-6 6H54a6 6 0 0 1-6-6V80h288zm-144 80c38.66 0 70 31.34 70 70s-31.34 70-70 70-70-31.34-70-70 31.34-70 70... | evepraisal/go-evepraisal | web/resources/static/thirdparty/fontawesome-free-5.0.8/advanced-options/use-with-node-js/fontawesome-free-regular/faIdBadge.js | JavaScript | mit | 539 |
/*globals wp, _, jQuery */
/**
* wp.media.view.AttachmentsBrowser
*
* @class
* @augments wp.media.View
* @augments wp.Backbone.View
* @augments Backbone.View
*
* @param {object} options
* @param {object} [options.filters=false] Which filters to show in the browser's toolbar.
* ... | grotian/WordPress | wp-includes/js/media/views/attachments/browser.js | JavaScript | gpl-2.0 | 13,324 |
//! moment.js locale configuration
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, ... | douglasouza/clinicaMed | src/main/resources/static/libs/moment/locale/sw.js | JavaScript | mit | 1,862 |
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/autoload/ms.js
*
* Implements the HTML-CSS output for <ms> elements.
*
* --------------------------------... | shencebebetterme/arxiv-sanity-preserver | static/jax/output/HTML-CSS/autoload/ms.js | JavaScript | mit | 2,124 |
'use strict'
const winston = require('winston')
module.exports = {
trailpack: {
disabled: [
'repl'
]
},
log: {
logger: new winston.Logger({
level: 'info',
exitOnError: false,
transports: [
new winston.transports.Console({
timestamp: true
}),
... | cuitianze/MeiMeiApp | meimei_server/config/env/production.js | JavaScript | mit | 676 |
function renderGallery(t,e){var i=document.getElementById("gallery_container");i.innerHTML="";var l=require("justified-layout")(t,{containerWidth:i.offsetWidth,targetRowHeight:.6*e,boxSpacing:5});i.style.height=l.containerHeight+"px";for(var n=l.boxes,r=0;r<n.length;r++){var a=document.createElement("img");a.setAttribu... | colour-science/colour-science.org | output/assets/js/gallery.min.js | JavaScript | bsd-3-clause | 893 |
/**
* Module dependencies.
*/
var express = require('../..');
var logger = require('morgan');
var vhost = require('vhost');
/*
edit /etc/hosts:
127.0.0.1 foo.example.com
127.0.0.1 bar.example.com
127.0.0.1 example.com
*/
// Main server app
var main = express();
main.use(logger('dev'));
main.g... | draschke/express | examples/vhost/index.js | JavaScript | mit | 930 |
/**
* @version $Id: tabs.js 20196 2011-01-09 02:40:25Z ian $
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/**
* Tabs behavior
*
* @package Joomla!
* @subpackage JavaScript
* @since 1.5
*/... | pacoqueen/callao_chico | media/system/js/tabs.js | JavaScript | gpl-2.0 | 1,900 |
/**
* A specialized {@link Ext.util.KeyNav} implementation for navigating a {@link Ext.view.BoundList} using
* the keyboard. The up, down, pageup, pagedown, home, and end keys move the active highlight
* through the list. The enter key invokes the selection model's select action using the highlighted item.
*/
Ext.d... | ebouda33/torrent | www/ext/classic/classic/src/view/BoundListKeyNav.js | JavaScript | gpl-3.0 | 8,401 |
/*
* Should
* Copyright(c) 2010-2015 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
var util = require('../util')
, assert = require('./_assert')
, AssertionError = require('../assertion-error');
module.exports = function(should) {
var i = should.format;
/*
* Expose assert to should
*
* T... | Zeipt/Mycely | www/jxcore/node_modules/socket.io-client/node_modules/ws/node_modules/should/lib/ext/assert.js | JavaScript | agpl-3.0 | 1,578 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-372.js
* @description ES5 Attributes - success to update [[Enumerable]] attribute of data property ([[Writable]] is false, [[Enumerable]] is false, [[Configurable]] is true) to different value
*/
func... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-372.js | JavaScript | bsd-3-clause | 965 |