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 Thing(flag) {
if (!flag) {
this[0] = 4;
this[1] = 3;
} else {
this[0] = 2;
this[1] = 1;
}
}
var result = 0;
for (var i = 0; i < 100000000; i++) {
var o = new Thing(i%2);
result += o[0] + o[1];
}
| cwz920716/jalangi2 | tests/unit/speed3.js | JavaScript | apache-2.0 | 259 |
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
export * from './instn-iee-err-ambiguous-1_FIXTURE.js';
export * from './instn-iee-err-ambiguous-2_FIXTURE.js';
| sebastienros/jint | Jint.Tests.Test262/test/language/module-code/instn-iee-err-ambiguous_FIXTURE.js | JavaScript | bsd-2-clause | 251 |
// Copyright 2015 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 Polymer element for indicating policies that apply to an
* element controlling a settings preference.
*/
Polymer({
is: 'cr-policy... | axinging/chromium-crosswalk | ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.js | JavaScript | bsd-3-clause | 2,011 |
/*
* File: Layouts.ForceDirected.js
*
*/
/** Prefuse have been ported and adapted to Javascript from the Prefuse Java
* distribution (https://github.com/prefuse/Prefuse).
*
* Many original comments from the Prefuse code have been retained in the Javascript as
* well as original author credit.
*
* Prefuse javas... | shzy2012/jit | Source/Layouts/Layouts.ForceDirected.js | JavaScript | mit | 23,118 |
angular.module('ngApp').service("widgetAPIService", ["$http",
function($http) {
this.widget = function(widgetId) {
var url = Routing.generate('victoire_core_widget_show', {
'id': widgetId,
'viewReferenceId': viewReferenceId,
'_locale': locale
... | gregumo/victoire | Bundle/CoreBundle/Resources/script/ngApp/services/widgetAPIService.js | JavaScript | mit | 1,068 |
// #docregion
module.exports = function(config) {
var appBase = 'src/'; // transpiled app JS and map files
var appAssets = '/base/app/'; // component assets fetched by Angular's compiler
// Testing helpers (optional) are conventionally in a folder called `testing`
var testingBase = 'src/testing/'... | ocombe/angular | aio/content/examples/upgrade-phonecat-3-final/karma.conf.js | JavaScript | mit | 3,252 |
define(
//begin v1.x content
{
"field-tue-relative+-1": "prošli utorak",
"field-year": "godina",
"dateFormatItem-Hm": "HH:mm",
"field-wed-relative+0": "ova srijeda",
"field-wed-relative+1": "sljedeća srijeda",
"dateFormatItem-ms": "mm:ss",
"field-minute": "minuta",
"field-tue-narrow-relative+0": "ovaj uto.",
"... | cdnjs/cdnjs | ajax/libs/dojo/1.17.1/cldr/nls/bs/generic.js | JavaScript | mit | 7,081 |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
*/
'use strict';
import * as React from 'react';
import { useMemo, useRef } from 'react';
import pick from '../../m... | cdnjs/cdnjs | ajax/libs/react-native-web/0.15.6/exports/TouchableWithoutFeedback/index.js | JavaScript | mit | 2,689 |
'use strict';
var log = function() {
var s = Array.prototype.join.call(arguments, ",");
// Write it to the document body so the test automation harness
// and manual testers can observe it.
document.body.textContent += s + "\n";
// Log it via console.log so it gets written to the test automation log.
con... | aglne/pluotsorbet | tests/jarstore/jarstoretests.js | JavaScript | gpl-2.0 | 4,793 |
//>>built
define("dojox/geo/charting/Feature","dojo/_base/lang dojo/_base/declare dojo/_base/array dojo/_base/html dojo/dom dojo/_base/event dojox/gfx/fx dojox/color".split(" "),function(d,k,g,e,h,l,m,f){return k("dojox.geo.charting.Feature",null,{_isZoomIn:!1,isSelected:!1,markerText:null,constructor:function(a,c,b){t... | aconyteds/Esri-Ozone-Map-Widget | vendor/js/esri/arcgis_js_api/library/3.12/3.12compact/dojox/geo/charting/Feature.js | JavaScript | apache-2.0 | 3,916 |
/**
* @license AngularJS v1.3.14
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {
'use strict';
/**
* @ngdoc object
* @name angular.mock
* @description
*
* Namespace from 'angular-mocks.js' which contains testing related code.
*/
a... | pubeisola/elasticsearch-chinese-search | plugins/kopf/_site/tests/angular-mocks.js | JavaScript | apache-2.0 | 84,291 |
/*!
* @package yii2-grid
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2016
* @version 3.1.3
*
* Client actions for kartik\grid\ActionColumn
*
* Author: Kartik Visweswaran
* Copyright: 2015, Kartik Visweswaran, Krajee.com
* For m... | Lucianoj/puro_perro | web/assets/4a9d339f/js/kv-grid-action.js | JavaScript | bsd-3-clause | 2,187 |
var PATH = require('path');
var VOW = require('vow');
var VOWFS = require('vow-fs');
exports.pathToUnix = function(path) {
if (PATH.sep === '\\') return path.replace(/\\/g, '/');
return path;
};
exports.writeFile = function(output, res) {
return VOW.when(res)
.then(function(res){
// ... | vladrudych/realvnz | node_modules/enb/node_modules/borschik/lib/util.js | JavaScript | mit | 2,810 |
define({
"_widgetLabel": "Nadzorna ploča za pregledavatelja",
"spatialFilterSelection": "Filtriraj rezultate po geografskom položaju",
"drawSelectionArea": "Nacrtajte područje za prikaz rezultata na karti",
"currentSelection": "Prikaži rezultate samo u trenutačnom obuhvatu karte",
"censusBlockGroup": "Prikaži... | cmccullough2/cmv-wab-widgets | wab/2.3/widgets/ReviewerDashboard/nls/hr/strings.js | JavaScript | mit | 947 |
define(["exports"],(function(e){"use strict";var r=Object.freeze({NONE:0,GEODESIC:1,RHUMB:2});e.ArcType=r}));
| geodesignhub/Globe3DViewer | static/Build/Cesium/Workers/ArcType-98ec98bf.js | JavaScript | mit | 110 |
// @flow
import UUID from 'uuid-js';
(UUID.create().version: 4);
(UUID.create(1).version: 1);
// $ExpectError
(UUID.create(3).version: 3);
(UUID.create().hex: string);
(UUID.create().toString(): string);
| echenley/flow-typed | definitions/npm/uuid-js_v0.7.x/test_uuid-js_v0.7.js | JavaScript | mit | 205 |
function currentTheme() {
var selected = getValue('themeSelect');
if (selected == null) return null;
return themes.find(function(theme) {
return theme.filename == selected;
});
}
function updateTheme() {
var theme = currentTheme();
if (theme == null) {
theme = {title:'', author:'', styles:'', version:'', des... | diriger/solcyc | web/pages/customization/themes/selectTheme.js | JavaScript | gpl-2.0 | 1,487 |
/**
* Controls for how the histogram should be displayed.
*/
/*global mImport */
/*******************************************************************************
* @ignore( mImport)
******************************************************************************/
qx.Class.define("skel.widgets.Histogram.HistogramDisp... | Astroua/CARTAvis | carta/html5/common/skel/source/class/skel/widgets/Histogram/HistogramDisplay.js | JavaScript | gpl-2.0 | 7,305 |
window._bd_share_main.F.module("share/like_api",function(e,t,n){var r=e("base/tangram").T,i=e("base/class").Class,s=e("share/api_base");t.Api=i.create(function(e){function r(e){window._bd_share_main.F.use("trans/data",function(t){t.get({type:"like_count",url:document.location.href,callback:function(t){var n={count:t};e... | Licheng-Xu/Licheng-Xu.github.io | themes/spfk/source/static/api/js/share/like_api.js | JavaScript | gpl-3.0 | 2,081 |
/*
*
* 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"); y... | sangjin3/webida-server | src/server/notify/ext/incubator-ripple/test/unit/client/webworks.handset/Task.js | JavaScript | apache-2.0 | 11,103 |
import {validateData} from '#3p/3p';
/**
* @param {!Window} global
* @param {!Object} data
*/
export function insticator(global, data) {
// validate passed data attributes
validateData(data, ['siteId', 'embedId']);
// create insticator markup
global.document
.getElementById('c')
.appendChild(create... | alanorozco/amphtml | ads/vendors/insticator.js | JavaScript | apache-2.0 | 2,455 |
/*
* mediasessionservice-mock contains a mock implementation of
* MediaSessionService.
*/
import {MediaSessionService, MediaSessionServiceReceiver} from '/gen/third_party/blink/public/mojom/mediasession/media_session.mojom.m.js';
function mojoString16ToJS(mojoString16) {
return String.fromCharCode.apply(null, mo... | scheib/chromium | third_party/blink/web_tests/http/tests/mediasession/resources/mediasessionservice-mock.js | JavaScript | bsd-3-clause | 3,220 |
/*
* Copyright 2016 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.
*/
/* global PaymentRequest:false */
/**
* Builds a payment request with URL based payment methods.
* @return {!PaymentRequest} A payment request w... | endlessm/chromium-browser | components/test/data/payments/bobpay.js | JavaScript | bsd-3-clause | 1,777 |
var graph = require('./diagrams/flowchart/graphDb');
var flow = require('./diagrams/flowchart/parser/flow');
var utils = require('./utils');
var flowRenderer = require('./diagrams/flowchart/flowRenderer');
var seq = require('./diagrams/sequenceDiagram/sequenceRenderer');
var inf... | Muoversi/mermaid | src/main.js | JavaScript | mit | 12,252 |
import DOMHistory from './DOMHistory';
import { getWindowPath, supportsHistory } from './DOMUtils';
import NavigationTypes from './NavigationTypes';
function updateCurrentState(extraState) {
var state = window.history.state;
if (state)
window.history.replaceState(Object.assign(state, extraState), '');
}
/**
... | Sirlon/react-router | modules/BrowserHistory.js | JavaScript | mit | 3,151 |
'use strict';
var CoreObject = require('./core-object');
function Task() {
CoreObject.apply(this, arguments);
}
module.exports = Task;
Task.__proto__ = require('./core-object');
Task.prototype.run = function(/*options*/) {
throw new Error('Task needs to have run() defined.');
};
| hinsenchan/iOS_clockapp_emberjs_demo | node_modules/ember-cli/lib/models/task.js | JavaScript | mit | 288 |
// Copyright (c) 2013-2014 Marco Biasini
//
// 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 to use, copy, modify, merge, pub... | haoyuchen1992/modular-file-renderer | mfr/extensions/pdb/static/js/viewer.js | JavaScript | apache-2.0 | 33,768 |
/*
* jQuery OrgChart Plugin
* https://github.com/dabeng/OrgChart
*
* Demos of jQuery OrgChart Plugin
* http://dabeng.github.io/OrgChart/local-datasource/
* http://dabeng.github.io/OrgChart/ajax-datasource/
* http://dabeng.github.io/OrgChart/ondemand-loading-data/
* http://dabeng.github.io/OrgChart/option-create... | holtkamp/cdnjs | ajax/libs/orgchart/1.1.4/js/jquery.orgchart.js | JavaScript | mit | 39,059 |
describe('Use', function() {
var use, rect
beforeEach(function() {
rect = draw.rect(100,100)
use = draw.use(rect)
})
it('creates an instance of SVG.Use', function() {
expect(use instanceof SVG.Use).toBe(true)
})
it('sets the target element id to its href attribute', function() {
expect(us... | npmcomponent/wout-svg.js | spec/spec/use.js | JavaScript | mit | 604 |
function ImageBox(config){
var self = this;
self.id = config.id;
// Create DOM
self.dom = new Image();
self.dom.className = "object";
self.dom.src = config.src;
// Customize
_configText(config, self.dom);
// Add & Remove
self.add = function(){ _add(self); };
self.remove = function(){ _remove(self); };
} | audreyt/trust-zh-TW | js/core/ImageBox.js | JavaScript | cc0-1.0 | 320 |
'use strict';
module.exports['abs'] = require('./abs');
//# sourceMappingURL=index.js.map | kimmanuel/d8-training-project | themes/d8training/node_modules/locutus/c/math/index.js | JavaScript | gpl-2.0 | 90 |
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* 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/. */
gTestfile = '12.1.js';
START("12... | ashwinrayaprolu1984/rhino | testsrc/tests/e4x/Statements/12.1.js | JavaScript | mpl-2.0 | 2,871 |
// 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.
//
// MODULE
import {a} from "modules-skip-6.js";
assertEquals(10, a);
| weolar/miniblink49 | v8_7_5/test/mjsunit/modules-imports7.js | JavaScript | apache-2.0 | 239 |
// ---
// Copyright (c) 2010 Francesco Cottone, http://www.kesiev.com/
// ---
/**
* Trigo module provides some math stuff for moving objects in a
* direction or following a round path.
*/
var trigo={
ANGLE_RIGHT:0,
ANGLE_DOWN:Math.PI*0.5,
ANGLE_LEFT:Math.PI,
ANGLE_UP:Math.PI*1.5555555,
addAngle:function(a,add... | darrentorpey/akihabara_tutorials | tut7_game_logic_and_hud/akihabara/trigo.js | JavaScript | mit | 826 |
/*
YUI 3.18.1 (build f7e7bcb)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('dataschema-xml', function (Y, NAME) {
/**
Provides a DataSchema implementation which can be used to work with XML data.
@module dataschema
@submodule dataschema-xml... | Heigvd/Wegas | wegas-resources/src/main/webapp/lib/yui3/build/dataschema-xml/dataschema-xml-debug.js | JavaScript | mit | 14,487 |
import { environment } from 'ember-environment';
import { checkHasSuper } from '../index';
QUnit.module('checkHasSuper');
// Only run this test on browsers that we are certain should have function
// source available. This allows the test suite to continue to pass on other
// platforms that correctly (for them) fall... | duggiefresh/ember.js | packages/ember-utils/tests/checkHasSuper_test.js | JavaScript | mit | 603 |
import IdentitySerializer from './_base';
export default IdentitySerializer.extend();
| Aloomaio/vault | ui/app/serializers/identity/group-alias.js | JavaScript | mpl-2.0 | 86 |
$(document).ready(function(){
// HTML markup implementation, overlap mode, initilaize collapsed
$( '#menu' ).multilevelpushmenu({
containersToPush: [$( '#pushobj' )],
collapsed: true,
preventItemClick: false,
// Just for fun also changing the look of the menu
wrapperClass: 'mlpm_w',
menuInactiveClass: 'ml... | owboateng/EduSec4.0.0 | js/collapsed.js | JavaScript | bsd-3-clause | 342 |
"use strict";
const jsdom = require("../../");
const load = require("../util").load(__dirname);
function descendants(root) {
let ret = [];
for (let i = 0; i < root.childNodes.length; ++i) {
let child = root.childNodes[i];
ret.push(child);
ret = ret.concat(descendants(child));
}
return ret;
}
f... | danieljoppi/jsdom | test/living-dom/node-iterator.js | JavaScript | mit | 22,059 |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v14.1.1
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var utils_1 = require("../utils");
function simpleHttpRequest(... | seogi1004/cdnjs | ajax/libs/ag-grid/14.1.1/lib/misc/simpleHttpRequest.js | JavaScript | mit | 828 |
/**
* Persian translation for bootstrap-datepicker
* Mostafa Rokooie <mostafa.rokooie@gmail.com>
*/
;(function($){
$.fn.cfdatepicker.dates['fa'] = {
days: ["یکشنبه", "دوشنبه", "سهشنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه", "یکشنبه"],
daysShort: ["یک", "دو", "سه", "چهار", "پنج", "جمعه", "شنبه", "یک"],
da... | Acens/jao2015 | wp-content/plugins/caldera-forms/fields/date_picker/js/locales/bootstrap-datepicker.fa.js | JavaScript | gpl-2.0 | 868 |
/**
* Copyright (c) 2006-2015, JGraph Ltd
* Copyright (c) 2006-2015, Gaudenz Alder
*/
/**
* Class: mxMouseEvent
*
* Base class for all mouse events in mxGraph. A listener for this event should
* implement the following methods:
*
* (code)
* graph.addMouseListener(
* {
* mouseDown: function(sender, evt)
... | kyro46/assMxGraphQuestion | templates/mxgraph/js/util/mxMouseEvent.js | JavaScript | gpl-3.0 | 4,423 |
var class_mix_e_r_p_1_1_net_1_1_schemas_1_1_core_1_1_data_1_1_count_sales_procedure =
[
[ "CountSalesProcedure", "class_mix_e_r_p_1_1_net_1_1_schemas_1_1_core_1_1_data_1_1_count_sales_procedure.html#a83896c25e6eb5e83c9bb3a526079d457", null ],
[ "CountSalesProcedure", "class_mix_e_r_p_1_1_net_1_1_schemas_1_1_cor... | mixerp/mixerp | docs/api/class_mix_e_r_p_1_1_net_1_1_schemas_1_1_core_1_1_data_1_1_count_sales_procedure.js | JavaScript | gpl-3.0 | 1,740 |
/*!
* MediaWiki Widgets - TitleInputWidget class.
*
* @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
( function ( $, mw ) {
/**
* Creates an mw.widgets.TitleInputWidget object.
*
* @class
* @extends OO.ui.TextInputWidget
* @m... | Electro-Light/ElectroLight-WebSite | wiki/resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js | JavaScript | gpl-3.0 | 3,805 |
'use strict';
var expect = chai.expect;
function run(scope,done) {
done();
}
describe('NavbarCtrl', function(){
var rootScope, scope, controller_injector, dependencies, ctrl;
beforeEach(module("rp"));
beforeEach(inject(function($rootScope, $controller, $q) {
rootScope = rootScope;
scope = $rootScope.... | ledgerd/ledgerd-wallet | test/unit/controllers/navbarControllerSpec.js | JavaScript | isc | 1,902 |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
'use strict';
jest.mock('../events/isEventSupported');
describe('InvalidEventListeners', () => {
let ... | cpojer/react | packages/react-dom/src/__tests__/InvalidEventListeners-test.js | JavaScript | mit | 2,119 |
/* jshint expr:true */
/* global md5 */
import { expect } from 'chai';
import {
describeComponent,
it
} from 'ember-mocha';
import hbs from 'htmlbars-inline-precompile';
import Ember from 'ember';
const {run} = Ember,
pathsStub = Ember.Service.extend({
url: {
api: function () {
... | denzelwamburu/denzel.xyz | core/client/tests/integration/components/gh-profile-image-test.js | JavaScript | mit | 2,787 |
/**
* Copyright (c) 2015-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.
*
* @provides... | bohanapp/PropertyFinder | node_modules/react-native/Libraries/Utilities/MessageQueue.js | JavaScript | mit | 11,242 |
Proj4js.defs["EPSG:3516"] = "+proj=tmerc +lat_0=24.33333333333333 +lon_0=-82 +k=0.999941177 +x_0=200000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"; | debard/georchestra-ird | mapfishapp/src/main/webapp/lib/proj4js/lib/defs/EPSG3516.js | JavaScript | gpl-3.0 | 166 |
Proj4js.defs["EPSG:2333"] = "+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=19500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"; | debard/georchestra-ird | mapfishapp/src/main/webapp/lib/proj4js/lib/defs/EPSG2333.js | JavaScript | gpl-3.0 | 138 |
// (C) Copyright 2015 Martin Dougiamas
//
// 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 agre... | digidoug/FSDMoodle-Main | www/addons/pushnotifications/services/pushnotifications.js | JavaScript | apache-2.0 | 9,583 |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* Copyright 2014 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... | kiwi89/cdnjs | ajax/libs/pdf.js/1.2.99/pdf_viewer.js | JavaScript | mit | 105,083 |
// META: script=/workers/modules/resources/import-test-cases.js
// Starts a dedicated worker for |testCase.scriptURL| and waits until the list
// of imported modules is sent from the worker. Passes if the list is equal to
// |testCase.expectation|.
function import_test(testCase) {
promise_test(async () => {
cons... | danlrobertson/servo | tests/wpt/web-platform-tests/workers/modules/dedicated-worker-import.any.js | JavaScript | mpl-2.0 | 746 |
/*
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.fx._arg"]){
dojo._hasResource["dojox.fx._arg"]=true;
dojo.provide("dojox.fx._arg");
dojox.fx._... | skobbler/AddressHunter | web-app/public/js/dojox/fx/_arg.js | JavaScript | bsd-3-clause | 473 |
// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.
// OffscreenCanvas test in a worker:2d.fillStyle.parse.css-color-4-hsl-1
// Description:
// Note:<p class="notes">
importScripts("/resources/testharness.js");
importScripts("/html/canvas/resources/canvas-tests.js");
var t = async_test("");... | chromium/chromium | third_party/blink/web_tests/external/wpt/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.css-color-4-hsl-1.worker.js | JavaScript | bsd-3-clause | 700 |
/*
YUI 3.5.0 (build 5089)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('autocomplete-sources', function(Y) {
/**
Mixes support for JSONP and YQL result sources into AutoCompleteBase.
@module autocomplete
@submodule autocomplete-sources
**/
... | sitron/scrum-toolbox | src/Sitronnier/SmBoxBundle/Resources/public/js/yui/autocomplete-sources/autocomplete-sources.js | JavaScript | mit | 15,725 |
// Search files using bundle conditions (root, include, exclude).
//
'use strict';
var path = require('path');
var _ = require('lodash');
var apify = require('../../utils/apify');
var fscached = require('./fs_cached');
////////////////////////////////////////////////////////////////////////////////
... | atdrupal/atest_profile | sites/all/libraries/fontello/lib/system/init/bundle/utils/find_paths.js | JavaScript | gpl-2.0 | 5,420 |
"use strict";
module.exports = function asinh(arg) {
// discuss at: http://locutus.io/php/asinh/
// original by: Onno Marsman (https://twitter.com/onnomarsman)
// example 1: asinh(8723321.4)
// returns 1: 16.67465779841863
return Math.log(arg + Math.sqrt(arg * arg + 1));
};
//# sourceMappingURL=asinh.j... | kimmanuel/d8-training-project | themes/d8training/node_modules/locutus/php/math/asinh.js | JavaScript | gpl-2.0 | 325 |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* 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 so... | thebillkidy/desple.com | wp-content/themes/capsule/ui/lib/ace/build/textarea/src/mode-abap.js | JavaScript | gpl-2.0 | 11,397 |
/**
* NielsenVideoCensus implemented per document outlined here:
* https://portal.kaltura.com/product/Shared%20Documents/Solution%20Architects/_Generic%20PRDs/Nielsen/KDP%20Nielsen%20Video%20Census%20Plugin%20PRD.docx
*/
mw.NielsenVideoCensus = function( embedPlayer, callback ){
this.init( embedPlayer, callback );
};... | abaylis/mwEmbed | modules/NielsenVideoCensus/resources/mw.NielsenVideoCensus.js | JavaScript | agpl-3.0 | 5,064 |
// Copyright 2011 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 required by applicable... | liefdiy/bite-project | server/scripts/set_details_overview_test.js | JavaScript | apache-2.0 | 1,955 |
// -----------------------------------------------------------------------
// Schedule Messages
// -----------------------------------------------------------------------
function scheduleTasks()
{
$.post( 'scheduleTasks.action',{
execute:false,
timeSendingMessage: getFieldValue("timeSendingMessage")
... | steffeli/inf5750-tracker-capture | dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/scheduling.js | JavaScript | bsd-3-clause | 2,418 |
// Copyright 2006 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... | Connectify/connectivity_diagnostics | src/closure-library/closure/goog/structs/heap.js | JavaScript | bsd-3-clause | 8,686 |
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const helpers = require('./helpers');
module.exports = {
entry: {
'polyfills': './src/polyfills.ts',
'vendor': './src/vendor.ts',
'app': './src/m... | HalZhan/angular2practices | projects/030-tour-of-heros/config/webpack.common.js | JavaScript | mit | 1,398 |
/**
* Module dependencies.
*/
var express = require('../..');
var hash = require('./pass').hash;
var bodyParser = require('body-parser');
var cookieParser = require('cookie-parser');
var session = require('express-session');
var app = module.exports = express();
// config
app.set('view engine', 'ejs');
app.set('v... | draschke/express | examples/auth/app.js | JavaScript | mit | 3,318 |
CKEDITOR.plugins.add('imgbrowse', {
"init": function (editor) {
if (typeof(editor.config.imageBrowser_listUrl) === 'undefined' || editor.config.imageBrowser_listUrl === null) {
return;
}
var url = editor.plugins.imgbrowse.path + "imgbrowse.php?listUrl=" + encodeURIComponent(editor.config.imageBrowser_listUrl... | jew977/yascmf | public/plugins/ckeditor/plugins/imgbrowse/plugin.js | JavaScript | mit | 485 |
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... | sashberd/cdnjs | ajax/libs/mint-ui/2.0.7/mint-ui.common.js | JavaScript | mit | 249,559 |
export * from './splitbutton';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIuLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvc3BsaXRidXR0b24vIiwic291cmNlcyI6WyJwdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsZUFBZSxDQUFDIiwic291cmNlc0NvbnRlbnQ... | cdnjs/cdnjs | ajax/libs/primeng/11.4.5/esm2015/splitbutton/public_api.js | JavaScript | mit | 369 |
describe('Service: $cordovaPrinter', function () {
var $cordovaPrinter, $rootScope;
beforeEach(module('ngCordova.plugins.printer'));
beforeEach(inject(function (_$cordovaPrinter_, _$q_, _$rootScope_) {
$cordovaPrinter = _$cordovaPrinter_;
$rootScope = _$rootScope_;
window.plugin = {
printer:... | mrshiz37/RICH | www/lib/ngCordova/test/plugins/printer.spec.js | JavaScript | gpl-3.0 | 1,208 |
loadIonicon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm14 226c0 7.7-6.3 14-14 14h-96c-7.7 0-14-6.3-14-14s6.3-14 14-14h82V128c0-7.7 6.3-14 14-14s14 6.3 14 14v146z"/></svg>','ios-time'); | matteobortolazzo/matteobortolazzo.github.io | build/app/svg/ios-time.js | JavaScript | mit | 297 |
/*! @license Firebase v3.9.0
Build: rev-cc77c9e
Terms: https://firebase.google.com/terms/ */
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i];... | acalabano/get-committed | node_modules/firebase/app/errors.js | JavaScript | mit | 3,230 |
/*
* Copyright 2015 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 required by applicable... | lacker/universe | vr_webpack/webvr/modes.js | JavaScript | mit | 808 |
class A {
@dec name = 0
}
| babel/babylon | test/fixtures/experimental/decorators-2/no-class-property/actual.js | JavaScript | mit | 28 |
tinymce.PluginManager.add("nonbreaking", function(n,url) {
var e = n.getParam("nonbreaking_force_tab");
if (n.addCommand("mceNonBreaking", function() {
n.insertContent(n.plugins.visualchars && n.plugins.visualchars.state ? '<span class="mce-nbsp"> </span>' : " "), n.dom.setAttrib(n.dom.sel... | baerdaniel/MAT-wordpress | wp-content/plugins/wp-edit/plugins/nonbreaking/plugin.min.js | JavaScript | gpl-2.0 | 980 |
/**
* Copyright 2016 The AMP HTML 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 require... | engtat/amphtml | extensions/amp-o2-player/0.1/test/test-amp-o2-player.js | JavaScript | apache-2.0 | 3,920 |
/**
* Copyright 2014 IBM Corp.
*
* 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... | coderofsalvation/node-red | test/nodes/core/core/58-debug_spec.js | JavaScript | apache-2.0 | 12,350 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch07/7.3/7.3-7.js
* @description 7.3 - ES5 recognizes the character <LS> (\u2028) as terminating regular expression literals
*/
function testcase() {
try {
eval("var regExp = /[\u2028]/");
regExp.test("")... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch07/7.3/7.3-7.js | JavaScript | bsd-3-clause | 454 |
// Copyright 2009 the Sputnik authors. All rights reserved.
/**
* Operator x % y uses GetValue
*
* @path ch11/11.5/11.5.3/S11.5.3_A2.1_T1.js
* @description Either Type is not Reference or GetBase is not null
*/
//CHECK#1
if (1 % 2 !== 1) {
$ERROR('#1: 1 % 2 === 1. Actual: ' + (1 % 2));
}
//CHECK#2
var x = 1;
... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch11/11.5/11.5.3/S11.5.3_A2.1_T1.js | JavaScript | bsd-3-clause | 961 |
/**
* Globalize v1.3.0-alpha.3
*
* http://github.com/jquery/globalize
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2017-04-13T04:29Z
*/
/*!
* Globalize v1.3.0-alpha.3 2017-04-13T04:29Z Released under the MIT license
* http://gi... | jonobr1/cdnjs | ajax/libs/globalize/1.3.0-alpha.3/globalize.js | JavaScript | mit | 8,901 |
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/*************************************************************
*
* MathJax/jax/output/SVG/autoload/mmultiscripts.js
*
* Implements the SVG output for <mmultiscripts> elements.
*
* --------------------... | branch14/mathjax-rails | vendor/mathjax-MathJax-727332c/unpacked/jax/output/SVG/autoload/mmultiscripts.js | JavaScript | mit | 5,169 |
/*!
* Vue.js v2.5.2
* (c) 2014-2017 Evan You
* Released under the MIT License.
*/
'use strict';
/* */
// these helpers produces better vm code in JS engines due to their
// explicitness and function inlining
function isUndef (v) {
return v === undefined || v === null
}
function isDef (v) {
return v !== unde... | mirotik666/-web-project-portfol | node_modules/vue/dist/vue.runtime.common.js | JavaScript | mit | 204,635 |
/*
* @author RocketTheme http://www.rockettheme.com
* @copyright Copyright (C) 2007 - 2014 RocketTheme, LLC
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*/
var GantryBuildSpans=function(b,c,a){(b.length).times(function(e){var f="."+b[e];var d=function(j){j.setStyle("visibility","visible")... | Fundacion-AG/web | libraries/gantry/js/gantry-buildspans.js | JavaScript | gpl-2.0 | 698 |
/* @flow */
import type {Stdout} from '../types.js';
import {writeOnNthLine, clearNthLine} from './util.js';
export default class Spinner {
constructor(stdout: Stdout = process.stderr, lineNumber?: number = 0) {
this.current = 0;
this.prefix = '';
this.lineNumber = lineNumber;
this.stdout = stdout;
... | bsansouci/esy | src/reporters/console/spinner-progress.js | JavaScript | bsd-2-clause | 2,445 |
/**
* @fileoverview A rule to disallow calls to the Object constructor
* @author Matt DuVall <http://www.mattduvall.com/>
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//--------------------------------------------------------------------------... | hellokidder/js-studying | 微信小程序/wxtest/node_modules/eslint/lib/rules/no-new-object.js | JavaScript | mit | 830 |
/**
* @class Ext.draw.engine.Svg
* @extends Ext.draw.Surface
*
* SVG engine.
*/
Ext.define('Ext.draw.engine.Svg', {
extend: 'Ext.draw.Surface',
requires: ['Ext.draw.engine.SvgContext'],
statics: {
BBoxTextCache: {}
},
getElementConfig: function () {
return {
refere... | tsuchie/AccountBook | touch/src/draw/engine/Svg.js | JavaScript | gpl-3.0 | 5,066 |
define(
"dojo/cldr/nls/cs/gregorian", //begin v1.x content
{
"dateFormatItem-yM": "M.y",
"dateFormatItem-yQ": "Q yyyy",
"dayPeriods-format-wide-pm": "odp.",
"eraNames": [
"př.Kr.",
"po Kr."
],
"dateFormatItem-MMMEd": "E, d. MMM",
"field-day-relative+-1": "Včera",
"dateFormatItem-yQQQ": "QQQ y",
"field-day-... | tmthrgd/pagespeed-libraries-cdnjs | packages/dojo/1.7.8/cldr/nls/cs/gregorian.js.uncompressed.js | JavaScript | mit | 3,345 |
// Copyright 2015 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.
//
// Flags: --allow-natives-syntax
assertThrows('var %OptimizeFunctionOnNextCall()', SyntaxError);
| zero-rp/miniblink49 | v8_7_5/test/mjsunit/regress/regress-552302.js | JavaScript | apache-2.0 | 268 |
define(function (require) {
var echarts = require('../echarts');
require('./boxplot/BoxplotSeries');
require('./boxplot/BoxplotView');
echarts.registerVisual(require('./boxplot/boxplotVisual'));
echarts.registerLayout(require('./boxplot/boxplotLayout'));
}); | yjwz0428/yjwz0428.github.io | 作业(1)/echarts-master/src/chart/boxplot.js | JavaScript | mit | 282 |
/* @flow */
import { warn } from 'core/util/debug'
import { handleError } from 'core/util/error'
import { RECYCLE_LIST_MARKER } from 'weex/util/index'
import { createComponentInstanceForVnode } from 'core/vdom/create-component'
import { resolveVirtualComponent } from './virtual-component'
export function isRecyclable... | new4/Vue4Fun | vue-2.5.16/src/platforms/weex/runtime/recycle-list/render-component-template.js | JavaScript | mit | 1,065 |
/*
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("codesnippet","sl",{button:"Vstavi odsek kode",codeContents:"Vsebina kode",emptySnippetError:"Odsek kode ne more biti prazen.",la... | stweil/TYPO3.CMS | typo3/sysext/rte_ckeditor/Resources/Public/JavaScript/Contrib/plugins/codesnippet/lang/sl.js | JavaScript | gpl-2.0 | 380 |
//= require active_admin/base
//= require jquery
//= require jquery-ui
//= require jquery-migrate-1.1.1
// TODO: move this to a file provided by ace_contacts plugin
function serializeCategories() {
var categoryIds = $.makeArray(
$("table.index_table .category").map(function() {
return $(this).data('id');
... | ntsai/xadmin | web/static/vendor/themes/admin_lte2/js/active_admin.js | JavaScript | mit | 1,278 |
"use strict";
module.exports = {
forEach: require("./for-each"),
is: require("./is"),
validate: require("./validate"),
validateObject: require("./validate-object")
};
| hellokidder/js-studying | 微信小程序/wxtest/node_modules/es5-ext/iterable/index.js | JavaScript | mit | 172 |
var demand = require('must');
var RelationshipType = require('../RelationshipType');
exports.initList = function (List) {
// We can use relationships that refer to the same List to test
List.add({
single: { type: RelationshipType, ref: List.key },
many: { type: RelationshipType, ref: List.key, many: true },
});... | michaelerobertsjr/keystone | fields/types/relationship/test/type.js | JavaScript | mit | 10,093 |
var HELLO_COMPONENT = "\
var HelloMessage = React.createClass({\n\
render: function() {\n\
return <div>Hello {this.props.name}</div>;\n\
}\n\
});\n\
\n\
React.render(<HelloMessage name=\"John\" />, mountNode);\
";
function transformer(harmony, code) {
return JSXTransformer.transform(code, {harmony: harmony})... | yabhis/react | docs/_js/jsx-compiler.js | JavaScript | bsd-3-clause | 1,188 |
var gulp = require('gulp');
var header = require('gulp-header');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var browserify = require('browserify');
var pkg = require('./package.json');
var banner = [
... | Whatsit2yaa/vast-tundra-84597 | node_modules/should/gulpfile.js | JavaScript | gpl-3.0 | 1,012 |
module.exports = { prefix: 'fas', iconName: 'quidditch', icon: [640, 512, [], "f458", "M256.5 216.8L343.2 326s-16.6 102.4-76.6 150.1C206.7 523.8 0 510.2 0 510.2s3.8-23.1 11-55.4l94.6-112.2c4-4.7-.9-11.6-6.6-9.5l-60.4 22.1c14.4-41.7 32.7-80 54.6-97.5 59.9-47.8 163.3-40.9 163.3-40.9zm238 135c-44 0-79.8 35.8-79.8 79.9 0 4... | evepraisal/go-evepraisal | web/resources/static/thirdparty/fontawesome-free-5.0.8/advanced-options/use-with-node-js/fontawesome-free-solid/faQuidditch.js | JavaScript | mit | 595 |
'use strict';
!function($) {
/**
* Magellan module.
* @module foundation.magellan
*/
class Magellan {
/**
* Creates a new instance of Magellan.
* @class
* @fires Magellan#init
* @param {Object} element - jQuery object to add the trigger to.
* @param {Object} options - Overrides to the default plu... | suryanto/rachmat.net | web/themes/custom/rachmat/bower_components/foundation-sites/js/foundation.magellan.js | JavaScript | gpl-2.0 | 6,986 |
/*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 3.2.0
build: 2676
*/
YUI.add('node-style', function(Y) {
(function(Y) {
/**
* Extended Node interface for managing node styles.
* @module node
* @submodule node-style
*/... | dhamma-dev/SEA | web/lib/yui/3.2.0/build/node/node-style.js | JavaScript | gpl-3.0 | 2,314 |
define("ace/snippets/puppet",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText =undefined;
exports.scope = "puppet";
}); (function() {
window.require(["ace/snippets/puppet"], function(m) {
if (typeof module... | shapesecurity/shift-website | vendor/ace-builds/src/snippets/puppet.js | JavaScript | apache-2.0 | 508 |
$(document).ready(function() {
// Configuration for fancy sortable tables for source file groups
$('.file_list').dataTable({
"aaSorting": [[ 1, "asc" ]],
"bPaginate": false,
"bJQueryUI": true,
"aoColumns": [
null,
{ "sType": "percent" },
null,
null,
null,
null,
null
]
})... | sriharsha-sammeta/saas | hw4/hw4_rottenpotatoes/coverage/assets/0.5.3/app.js | JavaScript | mit | 3,060 |