code
stringlengths
2
1.05M
repo_name
stringlengths
5
114
path
stringlengths
4
991
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
2
1.05M
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
ahocevar/cdnjs
ajax/libs/leaflet-geocoder-mapzen/1.9.4/leaflet-geocoder-mapzen.js
JavaScript
mit
43,057
/*! * inferno-redux v1.3.0-rc.2 * (c) 2017 Dominic Gannaway' * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('inferno-component'), require('redux'), require('hoist-non-inferno-statics'), require('inferno-cr...
sashberd/cdnjs
ajax/libs/inferno-redux/1.3.0-rc.2/inferno-redux.js
JavaScript
mit
19,174
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ ret...
cdnjs/cdnjs
ajax/libs/mint-ui/2.0.2/tab-item/index.js
JavaScript
mit
4,830
export const dirname = (path) => { if (typeof path !== 'string') { throw new TypeError('Path must be a string. Received ' + JSON.stringify(path)); } if (path.length === 0) return '.'; let code = path.charCodeAt(0); const hasRoot = code === 47; let end = -1; let matchedSlash = true; for (let i = pat...
richard67/joomla-cms
administrator/components/com_media/resources/scripts/app/path.js
JavaScript
gpl-2.0
685
// Copyright 2014 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. var stdlib = {}; var foreign = {}; var heap = new ArrayBuffer(64 * 1024); function Int32Div(divisor) { var name = "div_"; if (divisor < 0) { na...
weolar/miniblink49
v8_7_5/test/mjsunit/asm/int32div.js
JavaScript
apache-2.0
1,080
"use strict"; const conversions = require("webidl-conversions"); const utils = require("./utils.js"); const convertGetRootNodeOptions = require("./GetRootNodeOptions.js").convert; const impl = utils.implSymbol; const EventTarget = require("./EventTarget.js"); function Node() { throw new TypeError("Illegal construc...
GoogleCloudPlatform/prometheus-engine
third_party/prometheus_ui/base/web/ui/react-app/node_modules/jest-environment-jsdom/node_modules/jsdom/lib/jsdom/living/generated/Node.js
JavaScript
apache-2.0
19,948
import * as ActionTypes from '../actions' import merge from 'lodash/merge' import paginate from './paginate' import { routerReducer as routing } from 'react-router-redux' import { combineReducers } from 'redux' // Updates an entity cache in response to any action with response.entities. function entities(state = { use...
kkav004/react-native-redux-real-world
webapp/reducers/index.js
JavaScript
mit
1,389
/// <reference path="../chance.js" /> /// <reference path="../node_modules/underscore/underscore-min.js" /> var expect = chai.expect; describe("Web", function () { var avatar, tld, domain, email, hashtag, ip, ipv6, tracking_code, twitter, url, chance = new Chance(); describe("avatar()", function() { ...
lonely8rain/chancejs
test/test.web.js
JavaScript
mit
18,765
/** * Ext Direct aims to streamline communication between the client and server * by providing a single interface that reduces the amount of common code * typically required to validate data and handle returned data packets * (reading data, error conditions, etc). * * The `Ext.direct` namespace includes several c...
ebouda33/torrent
www/ext/packages/core/src/direct/Manager.js
JavaScript
gpl-3.0
18,251
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
seogi1004/cdnjs
ajax/libs/forerunnerdb/2.0.4/fdb-core.js
JavaScript
mit
309,573
/// Copyright (c) 2012 Ecma International. All rights reserved. /** * @path ch11/11.8/11.8.2/11.8.2-4.js * @description 11.8.2 Greater-than Operator - Partial left to right order enforced when using Greater-than operator: toString > toString */ function testcase() { var accessed = false; var obj1...
Oceanswave/NiL.JS
Tests/tests/sputnik/ch11/11.8/11.8.2/11.8.2-4.js
JavaScript
bsd-3-clause
731
/**! Qoopido.demand 4.2.6-alpha.3 | https://github.com/dlueth/qoopido.demand | (c) 2018 Dirk Lueth */ !function(n){"use strict";provide(["path","/demand/function/iterate","/demand/validator/isObject","/demand/validator/isTypeOf"],function(t,e,o,i){var a,c="Thu, 01 Jan 1970 00:00:00 GMT",r=[];function u(t,e,o){(a||funct...
sashberd/cdnjs
ajax/libs/qoopido.demand/4.2.6-alpha.4/plugin/cookie.js
JavaScript
mit
905
/*! * OOjs UI v0.22.0 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2017 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * * Date: 2017-05-30T22:04:06Z */ ( function ( OO ) { 'use strict'; /** * @class * @extends OO.ui.WikimediaUITheme * *...
hare1039/cdnjs
ajax/libs/oojs-ui/0.22.0/oojs-ui-mediawiki.js
JavaScript
mit
665
/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModu...
Jorginho211/TFG
web/node_modules/react/lib/ReactTransitionGroup.js
JavaScript
gpl-3.0
6,359
jQuery.webshims.register('form-extend', function($, webshims, window, doc, undefined, options){ "use strict"; var Modernizr = window.Modernizr; var modernizrInputTypes = Modernizr.inputtypes; if(!Modernizr.formvalidation || webshims.bugs.bustedValidity){return;} var typeModels = webshims.inputTypes; var val...
opengovfoundation/marylandcode
htdocs/themes/StateDecoded2013/static/js/vendor/js-webshim/dev/shims/combos/7.js
JavaScript
gpl-3.0
46,883
define( ({ "save": "שמירה" }) );
avz-cmf/zaboy-middleware
www/js/dojox/editor/plugins/nls/he/Save.js
JavaScript
gpl-3.0
39
// Copyright 2007 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...
kalekale/tsoha16
target/cljsbuild/public/js/out/goog/history/history.js
JavaScript
epl-1.0
36,055
// 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 Media Gallery API. var binding = require('binding').Binding.create('mediaGalleries'); var mediaGalleriesNatives = requireN...
qtekfun/htcDesire820Kernel
external/chromium_org/chrome/renderer/resources/extensions/media_galleries_custom_bindings.js
JavaScript
gpl-2.0
1,891
// Copyright 2014 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. /** * @fileoverview * remoting.ContextMenuAdapter implementation backed by chrome.contextMenus. */ 'use strict'; /** @suppress {duplicate} */ var rem...
Chilledheart/chromium
remoting/webapp/app_remoting/js/context_menu_chrome.js
JavaScript
bsd-3-clause
2,472
import foo from'foo';import foo,*as foo from'foo';import*as foo from'foo';import ok,{foo as bar,test as testing,logging}from'foo'
azu/escodegen
test/compare-harmony/import-with-default.expected.min.js
JavaScript
bsd-2-clause
130
'use strict'; const Transform = require('stream').Transform; const gutil = require('gulp-util'); const CLIEngine = require('eslint').CLIEngine; /** * Convenience method for creating a transform stream in object mode * * @param {Function} transform - An async function that is called for each stream chunk * @param ...
grshane/monthofmud
web/themes/custom/mom/node_modules/gulp-eslint/util.js
JavaScript
mit
6,312
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["VueMaterial"] = factory(); else root["V...
Amomo/cdnjs
ajax/libs/vue-material/0.4.0/components/mdTable/index.debug.js
JavaScript
mit
38,262
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v8.0.0 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var grid_1 = require("./grid"); var gridApi_1 = require("./gridApi"); var events_1 = require("./events"); var componentUtil_1 ...
tholu/cdnjs
ajax/libs/ag-grid/8.0.0/lib/clientExports.js
JavaScript
mit
14,690
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* Copyright 2012 Mozilla Foundation * * 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....
Neuralink/SVPAPP
www/pdfjs/web/pdf_find_bar.js
JavaScript
apache-2.0
4,875
window.conf || (window.conf = {}); var $ = require('common:widget/ui/jquery/jquery.js'); require('common:widget/ui/jquery/widget/jquery.ui.button/jquery.ui.button.js'); //jquery.UI conf.weatherArea = { "\u0645\u0635\u0631": ["9-127164_1_AL", "6-207321_1_AL", "12-127047_1_AL", "4-130201_1_AL", "6-127335_1_AL", "...
femxd/fxd
test/diff_fis3_smarty/product_code/hao123_fis3_smarty/common/widget/ui/weather/sa/sa.js
JavaScript
bsd-2-clause
5,108
module["exports"] = [ "alléen", "bakken", "berget", "bråten", "eggen", "engen", "ekra", "faret", "flata", "gata", "gjerdet", "grenda", "gropa", "hagen", "haugen", "havna", "holtet", "høgda", "jordet", "kollen", "kroken", "lia", "lunden", "lyngen", "løkka", "marka", ...
together-web-pj/together-web-pj
node_modules/faker/lib/locales/nb_NO/address/street_suffix.js
JavaScript
gpl-3.0
560
// Copyright (c) 2011 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 nextTest = null; openFromNormalShouldOpenInNormal(); function openFromNormalShouldOpenInNormal() { nextTest = openFromExtensionHostInIncognitoB...
plxaye/chromium
src/chrome/test/data/extensions/api_test/window_open/spanning/background.js
JavaScript
apache-2.0
1,972
#!/usr/bin/env node 'use strict'; const {tmpdir} = require('os'); const {join} = require('path'); const {getBuildInfo, handleError} = require('./utils'); // This script is an escape hatch! // It exists for special case manual builds. // The typical suggested release process is to create a "next" build from a CI arti...
cpojer/react
scripts/release/build-release.js
JavaScript
mit
1,919
/*global angular */ /** * The main controller for the app. The controller: * - retrieves and persists the model via the todoStorage service * - exposes the model to the template and provides event handlers */ angular.module('todomvc') .controller('TodoCtrl', function TodoCtrl($scope, $routeParams, $filter, store)...
wscoble/docker-520-meetup
frontend/todomvc/js/controllers/todoCtrl.js
JavaScript
mit
3,197
/** * The generic dialogue class for use in Moodle. * * @module moodle-core-notification * @submodule moodle-core-notification-dialogue */ var DIALOGUE_NAME = 'Moodle dialogue', DIALOGUE, DIALOGUE_FULLSCREEN_CLASS = DIALOGUE_PREFIX + '-fullscreen', DIALOGUE_HIDDEN_CLASS = DIALOGUE_PREFIX + '-hidden', ...
appalachianstate/moodle
lib/yui/src/notification/js/dialogue.js
JavaScript
gpl-3.0
27,695
/** * Basically, hacks from goonchat which try to keep the map focused at all * times, except for when some meaningful action happens o * * @file * @copyright 2020 Aleksej Komarov * @license MIT */ import { vecLength, vecSubtract } from 'common/vector'; import { canStealFocus, globalEvents } from 'tgui/events';...
erwgd/-tg-station
tgui/packages/tgui-panel/panelFocus.js
JavaScript
agpl-3.0
1,307
/* * Copyright (c) 2015, Oracle and/or its affiliates. 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, ...
md-5/jdk10
src/sample/nashorn/bind_on_java.js
JavaScript
gpl-2.0
1,985
/* rollbar.js for use with CommonJS loaders */ /* json2.js 2013-05-26 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html This code should be minified before deployment. See http://javascript.crockford.com/jsmin.html USE YOUR OWN C...
rollbar/rollbar.js
release/rollbar-1.1.6.commonjs.js
JavaScript
mit
81,115
export default (date) => Math.floor(date.getTime() / 1000);
cdnjs/cdnjs
ajax/libs/jose/4.6.0/lib/epoch.js
JavaScript
mit
60
var actions = require("./actions.js"); var AppDispatcher = require("./dispatcher.js").AppDispatcher; function Connection(url) { if (url[0] === "/") { url = location.origin.replace("http", "ws") + url; } var ws = new WebSocket(url); ws.onopen = function () { actions.ConnectionActions.o...
inscriptionweb/mitmproxy
web/src/js/connection.js
JavaScript
mit
827
/** * @provides javelin-behavior-choose-control * @requires javelin-behavior * javelin-stratcom * javelin-dom * javelin-workflow */ JX.behavior('choose-control', function() { JX.Stratcom.listen( 'click', 'aphront-form-choose-button', function(e) { e.kill(); ...
leolujuyi/phabricator
webroot/rsrc/js/core/behavior-choose-control.js
JavaScript
apache-2.0
675
"use strict"; // long form angular.module("MyMod").controller("MyCtrl", function($scope, $timeout) { }); // w/ dependencies angular.module("MyMod", ["OtherMod"]).controller("MyCtrl", function($scope, $timeout) { }); // simple myMod.controller("foo", function($scope, $timeout) { }); myMod.service("foo", function($sco...
jcumoletti/AngularExample
node_modules/ng-annotate/tests/original.js
JavaScript
mit
22,876
(function( w, $ ){ "use strict"; var Politespace = function( element ) { if( !element ) { throw new Error( "Politespace requires an element argument." ); } if( !element.getAttribute || window.operamini ) { // Cut the mustard return; } this.element = element; this.$element = $( element ); thi...
x112358/cdnjs
ajax/libs/politespace/0.1.15/politespace.js
JavaScript
mit
5,120
var _ = require('underscore'); var _s = require('underscore.string'); // Split a long word up to fit within the word wrap limit. Use either a // character to split looking back from the word wrap limit, or // truncate to the word wrap limit. function splitLongWord(word, options) { var wrapCharacters = options.lon...
zhuyong/ghost_blog
node_modules/html-to-text/lib/helper.js
JavaScript
mit
4,571
/** * Requires multiple `var` declaration. * * Type: `Boolean` or `String` * * Values: `true` or `"onevar"` * * if `requireMultipleVarDecl` defined as a `true` value, it will report only consecutive vars, if, on the other hand, * value equals to `"onevar"` string, `requireMultipleVarDecl` will allow only one `v...
maocubillos/pnt2015
src/bower_components/bootstrap/node_modules/grunt-jscs/node_modules/jscs/lib/rules/require-multiple-var-decl.js
JavaScript
mit
3,437
/* Project: angular-gantt v1.2.14 - Gantt chart component for AngularJS Authors: Marco Schweighauser, Rémi Alvergnat License: MIT Homepage: https://www.angular-gantt.com Github: https://github.com/angular-gantt/angular-gantt.git */ (function(){ 'use strict'; angular.module('gantt.tooltips', ['gantt', 'gantt.too...
sajochiu/cdnjs
ajax/libs/angular-gantt/1.2.14/angular-gantt-tooltips-plugin.js
JavaScript
mit
12,617
YUI.add('moodle-question-preview', function (Y, NAME) { // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or /...
michael-milette/moodle
question/yui/build/moodle-question-preview/moodle-question-preview.js
JavaScript
gpl-3.0
1,892
/** * @fileoverview Rule to check for properties whose identifier ends with the string Sync * @author Matt DuVall<http://mattduvall.com/> */ /*jshint node:true*/ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------...
bpatters/eservice
ui/node_modules/eslint/lib/rules/no-sync.js
JavaScript
apache-2.0
733
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
Jorginho211/TFG
web/node_modules/material-ui/svg-icons/image/collections.js
JavaScript
gpl-3.0
955
//>>built define( //begin v1.x content ({ insertImageTitle: "ادراج صورة", url: "صورة", browse: "استعراض...", text: "الوصف", set: "‏ادراج‏", invalidMessage: "نوع ملف صور غير صحيح", prePopuTextUrl: "ادخل عنوان URL لصورة", prePopuTextBrowse: " أو تصفح الى ملف محلي." }) //end v1.x content );
marcbuils/WorkESB
www/admin/lib/dojo/dojox/editor/plugins/nls/ar/LocalImage.js
JavaScript
lgpl-3.0
378
'use strict'; module.exports.definition = { set: function (v) { this._setProperty('-webkit-column-break-after', v); }, get: function () { return this.getPropertyValue('-webkit-column-break-after'); }, enumerable: true, configurable: true };
ElvisLouis/code
work/js/node_modules/jsdom/node_modules/cssstyle/lib/properties/webkitColumnBreakAfter.js
JavaScript
gpl-2.0
282
/*! * Fine Uploader * * Copyright 2015, Widen Enterprises, Inc. info@fineuploader.com * * Version: 5.2.1 * * Homepage: http://fineuploader.com * * Repository: git://github.com/FineUploader/fine-uploader.git * * Licensed only under the Widen Commercial License (http://fineuploader.com/licensing). */ /*globals window,...
szelcsanyi/album
static/fine-uploader.js
JavaScript
mit
389,496
/*expected initial->s1_1->s1_2->s1_3->s1_4->s1_2->s1_5; s1_3->s1_5->final; */ for (init; a && b;) { foo(); } /*DOT digraph { node[shape=box,style="rounded,filled",fillcolor=white]; initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25]; final[label="",shape=doublecircle,styl...
lemonmade/eslint
tests/fixtures/code-path-analysis/logical--for-and-3.js
JavaScript
mit
734
// [VexFlow](http://vexflow.com) - Copyright (c) Mohit Muthanna 2010. // // ## Description // // This class implements vibratos. Vex.Flow.Vibrato = (function() { function Vibrato() { this.init(); } Vibrato.CATEGORY = "vibratos"; var Modifier = Vex.Flow.Modifier; // ## Static Methods // Arrange vibratos ins...
burnnat/vexflow
src/vibrato.js
JavaScript
mit
4,168
'use strict'; var util = require('../util'); var WarehouseError = require('../error'); /** * PopulationError constructor * * @class * @param {String} msg * @extends WarehouseError */ function PopulationError(msg) { WarehouseError.call(this); this.name = 'PopulationError'; this.message = msg; } util.inhe...
njZhuMin/Blog
node_modules/warehouse/lib/error/population.js
JavaScript
gpl-3.0
394
export * from "../.internal/plugins/regression/Regression"; //# sourceMappingURL=regression.js.map
cdnjs/cdnjs
ajax/libs/amcharts4/4.9.9/plugins/regression.js
JavaScript
mit
99
// Approach: // // 1. Get the minimatch set // 2. For each pattern in the set, PROCESS(pattern, false) // 3. Store matches per-set, then uniq them // // PROCESS(pattern, inGlobStar) // Get the first [n] items from pattern that are all strings // Join these together. This is PREFIX. // If there is no more remaining, ...
sudocoda/boynamedsumusic.com
wp-content/themes/super/node_modules/grunt-uncss/node_modules/uncss/node_modules/glob/glob.js
JavaScript
gpl-2.0
16,707
/* Simplified Chinese initialisation for the jQuery UI multiselect plugin. */ /* Written by Ben (ben@zfben.com). */ $.extend($.ech.multiselectfilter.prototype.options, { label: '過濾:', placeholder: '輸入關鍵字過濾' });
FZambia/django-jqgrid-playground
js/djgrid/ui-multiselect/i18n/jquery.multiselect.filter.zh-tw.js
JavaScript
mit
232
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors // MIT License. See license.txt /* Inheritence "Class" ------------------- see: http://ejohn.org/blog/simple-javascript-inheritance/ To subclass, use: var MyClass = Class.extend({ init: function }) */ /* Simple JavaScript Inheritance * By J...
saurabh6790/test-frappe
frappe/public/js/frappe/class.js
JavaScript
mit
2,180
describe("", function() { var rootEl; beforeEach(function() { rootEl = browser.rootEl; browser.get("build/docs/examples/example-ng-class1/index-jquery.html"); }); it('should check ng-class', function() { expect(element(by.css('.base-class')).getAttribute('class')).not. toMatch(/my-class/); ele...
LearnNavi/Naranawm
www/assets/library/angular-1.6.5/docs/ptore2e/example-ng-class1/jquery_test.js
JavaScript
agpl-3.0
581
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("rxjs-compat/add/operator/combineAll"); //# sourceMappingURL=combineAll.js.map
BigBoss424/portfolio
v8/development/node_modules/rxjs/add/operator/combineAll.js
JavaScript
apache-2.0
163
c3_chart_fn.tooltip = function () {}; c3_chart_fn.tooltip.show = function (args) { var $$ = this.internal, index, mouse; // determine mouse position on the chart if (args.mouse) { mouse = args.mouse; } // determine focus data if (args.data) { if ($$.isMultipleX()) { ...
Jpilosel/cote
web/c3-0.4.11/src/api.tooltip.js
JavaScript
mit
1,240
/*! UIkit 2.24.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ (function(UI) { "use strict"; var active = false, hoverIdle, flips = { 'x': { "bottom-left" : 'bottom-right', "bottom-right" : 'bottom-left', "bottom-center" : 'bottom-right', ...
dumengnanbuaa/awesome-python-webapp
www/static/js/core/dropdown.js
JavaScript
gpl-2.0
17,605
import Ember from 'ember-metal/core'; import run from 'ember-metal/run_loop'; import compile from 'ember-template-compiler/system/compile'; var App1, App2, actions; function startApp(rootElement) { var application; run(function() { application = Ember.Application.create({ rootElement }); applic...
opichals/ember.js
packages/ember/tests/integration/multiple-app-test.js
JavaScript
mit
1,875
import * as React from 'react'; /** * @ignore - internal component. * @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>} */ const ImageListContext = /*#__PURE__*/React.createContext({}); if (process.env.NODE_ENV !== 'production') { ImageListContext.displayName = 'ImageListCont...
cdnjs/cdnjs
ajax/libs/material-ui/5.0.0-beta.5/modern/ImageList/ImageListContext.js
JavaScript
mit
361
const badRequestArgTests = [ { args: ["", { "window": "http://test.url" }], testName: "RequestInit's window is not null" }, { args: ["http://:not a valid URL"], testName: "Input URL is not valid" }, { args: ["http://user:pass@test.url"], testName: "Input URL has credentials" }, { ...
youtube/cobalt
third_party/web_platform_tests/fetch/api/request/request-error.js
JavaScript
bsd-3-clause
1,616
// Copyright (c) 2011 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 testId = "bjafgdebaacbbbecmhlhpofkepfkgcpa"; // Call with |api| as either chrome.runtime or chrome.extension, so that both // get tested (extensi...
plxaye/chromium
src/chrome/test/data/extensions/api_test/messaging/connect_external/test.js
JavaScript
apache-2.0
932
!function(e){function t(n){if(n.preventDefault(),h){var i,c=n.touches[0].pageX,u=n.touches[0].pageY,p=s-c,r=o-u;Math.abs(p)>=e.detectSwipe.threshold?i=p>0?"left":"right":Math.abs(r)>=e.detectSwipe.threshold&&(i=r>0?"down":"up"),i&&(this.removeEventListener("touchmove",t),h=!1,e(this).trigger("swipe",i).trigger("swipe"+...
tmthrgd/pagespeed-libraries-cdnjs
packages/detect_swipe/2.0.0/jquery.detect_swipe.min.js
JavaScript
mit
778
Prism.languages.go = Prism.languages.extend('clike', { 'keyword': /\b(break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/, 'builtin': /\b(bool|byte|complex(64|128)|error|float(32|64)|rune|string|u?int(8|16|32|64|...
iShafayet/nedbmgr
www-dev/src/bower-assets/prism/components/prism-go.js
JavaScript
mit
715
module.exports={title:"BT",slug:"bt",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>BT icon</title><path d="M12.589 7.91h5.977v1.753H16.56v6.41h-1.97v-6.41h-2zM12 22.523C6.193 22.523 1.477 17.807 1.477 12 1.477 6.193 6.193 1.477 12 1.477c5.807 0 10.523 4.716 10.523 10.523 0 5.807-4.7...
cdnjs/cdnjs
ajax/libs/simple-icons/4.9.0/bt.min.js
JavaScript
mit
842
// Copyright 2013 the V8 project authors. 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 of ...
weolar/miniblink49
v8_7_5/test/mjsunit/regress/regress-2539.js
JavaScript
apache-2.0
2,065
/** * Module dependencies. */ var Base = require('./node_modules/mocha/lib/reporters/base.js') , cursor = Base.cursor , color = Base.color; /** * Expose `JSON`. */ exports = module.exports = JSONReporter; /** * Initialize a new `JSON` reporter. * * @param {Runner} runner * @api public */ function JSON...
trojanspike/nw.js
tests/json_reporter.js
JavaScript
mit
1,160
/* This file is part of Ext JS 4.2 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in...
filippov70/map.org
www/jslib/extjs/src/form/field/Date.js
JavaScript
lgpl-3.0
19,642
Plotly.register({moduleType:"locale",name:"ur",dictionary:{},format:{days:["\u0627\u062a\u0648\u0627\u0631","\u067e\u064a\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"],shortDays:["\u0627\u062a\u0648\u0627\u0631","\u06...
opoyc/partiallyrandom
static/rmarkdown-libs/plotly-binding/lib/plotlyjs/locales/ur.js
JavaScript
mit
943
module.exports = function(hljs) { var PROMPT = { className: 'prompt', begin: /^(>>>|\.\.\.) / }; var STRING = { className: 'string', contains: [hljs.BACKSLASH_ESCAPE], variants: [ { begin: /(u|b)?r?'''/, end: /'''/, contains: [PROMPT], relevance: 10 }, { ...
mo-group/angular-sharing
node_modules/highlight.js/lib/languages/python.js
JavaScript
mit
2,065
// Copyright 2013 the V8 project authors. All rights reserved. // Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple 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: // 1. Redistributions o...
zero-rp/miniblink49
v8_7_5/test/webkit/fast/js/regexp-lastindex.js
JavaScript
apache-2.0
1,944
describe("vendorCss", function () { var stubMatrix = { a: 1, b: 1, c: 1, d: 1, e: 1, f: 1 }; beforeEach(function () { $(document.body).append("<div id=\"moo\"></div>"); }); it("should set the webkit css value", function () { $.feat.cssPrefix ="Webkit"; var el=document.getEleme...
quasoft/qbedict-mobile
www/appframework/test/vendorCss.test.js
JavaScript
gpl-2.0
1,125
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
opensemanticsearch/open-semantic-search-apps
src/search_entity/static/foundation/js/plugins/foundation.equalizer.js
JavaScript
gpl-3.0
18,356
/************************************************************* * * MathJax/jax/output/SVG/fonts/TeX/svg/AMS/Regular/GeometricShapes.js * * Copyright (c) 2011-2015 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with t...
AndrewSyktyvkar/Math
wysivig/MathJax/unpacked/jax/output/SVG/fonts/TeX/AMS/Regular/GeometricShapes.js
JavaScript
bsd-3-clause
3,008
// Copyright 2007 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...
AppScale/appinventor
war/closure-library-20120710-r2029/closure/goog/ui/emoji/emojipalette.js
JavaScript
mit
8,578
CKEDITOR.plugins.setLang("iframe","fr",{border:"Afficher une bordure de la IFrame",noUrl:"Veuillez entrer l'adresse du lien de la IFrame",scrolling:"Permettre à la barre de défilement",title:"Propriétés de la IFrame",toolbar:"IFrame"});
balirwa/logs
www/lib/ckeditor/plugins/iframe/lang/fr.js
JavaScript
apache-2.0
243
var assignValue = require('./_assignValue'), copyObject = require('./_copyObject'), createAssigner = require('./_createAssigner'), isArrayLike = require('./isArrayLike'), isPrototype = require('./_isPrototype'), keys = require('./keys'); /** Used for built-in method references. */ var objectProto =...
ElvisLouis/code
work/project/Edison/elvis/work/js/node_modules/async/node_modules/lodash/assign.js
JavaScript
gpl-2.0
1,845
'use strict'; // https://github.com/mathiasbynens/String.prototype.at var $export = require('./_export'); var $at = require('./_string-at')(true); $export($export.P, 'String', { at: function at(pos) { return $at(this, pos); } });
hellokidder/js-studying
微信小程序/wxtest/node_modules/core-js/modules/es7.string.at.js
JavaScript
mit
239
/* * jQuery mmenu {ADDON} addon * mmenu.frebsite.nl * * Copyright (c) Fred Heusschen */ (function( $ ) { var _PLUGIN_ = 'mmenu', _ADDON_ = '{ADDON}'; $[ _PLUGIN_ ].prototype[ '_init_' + _ADDON_ ] = function( $panels ) { if ( !addon_initiated ) { _initAddon(); } var addon_added = this.vars...
schnitzel25/pizza
sites/all/libraries/mmenu/main/src/js/addons/addon-template.js
JavaScript
gpl-2.0
1,358
require(["domReady", "jquery", "jquery.smoothScroll"], function (domReady, $) { var toggleSock = function (e) { e.preventDefault(); var $btnShowSockLabel = $(this).find('.copy-show'); var $btnHideSockLabel = $(this).find('.copy-hide'); var $sock = $('.wrapper...
ahmadiga/min_edx
cms/static/js/sock.js
JavaScript
agpl-3.0
1,356
/* Holder - client side image placeholders (c) 2012 Ivan Malopinsky / http://imsky.co Provided under the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0 Commercial use requires attribution. */ var Holder = Holder || {}; (function (app, win) { //http://javascript.nwbox.com/ContentLoade...
tkirda/cdnjs
ajax/libs/holder/1.0/holder.js
JavaScript
mit
4,674
YUI.add('console-filters', function(Y) { /** * <p>Provides Plugin.ConsoleFilters plugin class.</p> * * <p>This plugin adds the ability to control which Console entries display by filtering on category and source. Two groups of checkboxes are added to the Console footer, one for categories and the other for sources....
victorjonsson/cdnjs
ajax/libs/yui/3.1.2/console/console-filters.js
JavaScript
mit
21,415
var vows = require("vows"), load = require("../load"), assert = require("../assert"); var suite = vows.describe("d3.layout.partition"); suite.addBatch({ "partition": { topic: load("layout/partition").expression("d3.layout.partition"), "ignores zero values": function(partition) { var p = partit...
MoonApps/barelyalive
www/js/vendor/d3-master/test/layout/partition-test.js
JavaScript
gpl-2.0
1,435
/*! * Qoopido.js library v3.6.5, 2015-7-1 * https://github.com/dlueth/qoopido.js * (c) 2015 Dirk Lueth * Dual licensed under MIT and GPL */ !function(e){window.qoopido.register("polyfill/window/customevent",e)}(function(e,t,n,o,r,u,b){"use strict";if(!r.CustomEvent){var c=u.createEvent?function(e,t,n){var o=u.createEve...
vvo/jsdelivr
files/qoopido.js/3.6.5/polyfill/window/customevent.js
JavaScript
mit
750
/*jslint node: true*/ 'use strict'; var async = require('bluebird').method; var path = require('path'); var sqlite3 = require('sqlite3'); var db = new sqlite3.Database(path.resolve(__dirname, 'ipnation.db')); var api = { fromIPv4: require('./lib/fromIPv4') }; // [kurttheviking] inject common dependency for (var m...
kurttheviking/ipnation
index.js
JavaScript
isc
418
import { createElement } from 'react'; import { shallow } from 'enzyme'; export default function render(Component, ctx = {}) { return shallow(createElement(Component, ctx)); }
sdougbrown/react-flyd-component
tests/render.js
JavaScript
isc
179
import mod1069 from './mod1069'; var value=mod1069+1; export default value;
MirekSz/webpack-es6-ts
app/mods/mod1070.js
JavaScript
isc
76
// interface to yamljs -- front matter extraction var yaml = require('./lib/Yaml') function extract (input) { var matter = /^---$([\s\S]*)^---\s/m var result = { data: {}, content: input } if (input && typeof input === 'string') { var matches = input.match(matter) if (matches) { // ya...
akileez/toolz
src/yaml/fme.js
JavaScript
isc
492
require('./style.less') var Element = require('vigour-element') var ui = require('../../../../lib') module.exports = new Element({ node: 'section', title: new ui.H5('Selects:'), selects: { title: new ui.P('Select colors:'), item0: new ui.Select({ options: { one: { text: 'One' ...
vigour-io/uikit
example/mtv/components/forms/selects.js
JavaScript
isc
722
var WarframeModule = ( function( window, undefined ) { /************************************************** ** Caching the DOM ***************************************************/ var $theForm = $( '.the-form' ), $frameList = $( '.frame-list' ), $startTag = '<option class="ch...
miloroot/warframe-charbuilder
js/main.js
JavaScript
mit
3,127
var _ = require('lodash'), util = require('../lib/utilities'), geojson = require('../lib/geojson'); // Format ±?YYYYY-MM-DD var MATCH = exports.MATCH = { // YEAR: matches 1st block prior to '-': '2014', '+2014', '+0069', '-1200', '415' year: /^[-\+]?\d+/, // MONTH: matches MM ranging 01-12 (will m...
atlastory/api
lib/dates.js
JavaScript
mit
1,774
var User = require('../models/User.js'); var mysql = require('../models/mysql.js'); var bcrypt = require('bcrypt'); var Connection = require('./support/MySqlConnectionMock.js'); describe('Users',function(){ var connection; beforeAll(function(){ connection = {query:function(){},release:function(){}}; spyOn(...
Joshuakinkade/photo-library
spec/userSpec.js
JavaScript
mit
2,771
import Enzyme, { mount } from 'enzyme' import Adapter from 'enzyme-adapter-react-16' Enzyme.configure({ adapter: new Adapter() }) import { H2 } from './H2' describe('<H2 />', () => { let wrapper beforeEach(() => { wrapper = mount(<H2 />) }) test('Should renderer', () => { expect(wrapper).toBeDefine...
wzalazar/spotify
components/H2/H2.test.js
JavaScript
mit
332
import { Card } from "material-ui/Card"; import { List, ListItem } from "material-ui/List"; import { RadioButton, RadioButtonGroup } from "material-ui/RadioButton"; import { Toolbar, ToolbarGroup, ToolbarTitle } from "material-ui/Toolbar"; import AppBar from "material-ui/AppBar"; import Divider from "material-ui/Divide...
Tinker-Ware/eyes
src/components/projects/EnvironmentConfig.js
JavaScript
mit
3,839
Template.healthdetails.helpers({ 'userinput': function() { var userinput = Template.instance().userinput.get(); return userinput; }, isPED(ped) { if (ped && ped.length > 0) { return true; } else { return false; } } }); Template.healthdetai...
deep0892/jitendrachatbot
packages/rocketchat-livechat/app/client/views/health/healthdetails.js
JavaScript
mit
735
import React, { PropTypes } from 'react'; import Wrapper from './Wrapper'; class ImageThumbnail extends React.PureComponent { constructor(props) { super(props); this.activateImage = this.activateImage.bind(this); } activateImage() { this.props.showImage(this.props.position); } render() { ...
bzswords/blackstallion
client/components/HomePage/TattooPortfolioSlideshow/ImageThumbnail/index.js
JavaScript
mit
703
// Imports var config = require('../config.js'); var data = require('../data.js'); var serverConfig = config.serverConfig.config; // Setup exports.HTTPService = require('./HTTPService')(data, serverConfig);
dsilva2401/server-seed
test/services/index.js
JavaScript
mit
211
'use strict'; var gutil = require('gulp-util'); var through = require('through2'); var cheerio = require('cheerio'); var fs = require('fs'); var path = require('path'); module.exports = function() { // create a stream through which each file will pass return through.obj(function(file, enc, callback) { if (file....
247even/gulp-supersede
index.js
JavaScript
mit
993
/*jslint browser: true */ /*global define */ define([ '../module' ], function (app) { 'use strict'; app.directive('voilabMenu', ['config', function (config) { return { restrict: 'E', templateUrl: config.basepath + '/menu/views/menu.ng.html', scope: {}, ...
voilab/voilab-ng-components
menu/menu.directive.js
JavaScript
mit
634
export default { extensions: ['ts'], require: ['ts-node/register/transpile-only'], files: [ "!build/**/*" ] };
natesilva/p-ratelimit
ava.config.js
JavaScript
mit
123