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 |
|---|---|---|---|---|---|
/**
*
* Retrieve the current window handle.
*
* <example>
:getCurrenteTabId.js
it('should return the current tab id', function () {
browser.url('http://webdriver.io')
var tabId = browser.getCurrentTabId()
console.log(tabid)
// outputs something like the following:
//... | deep0892/PBChat_attachment | node_modules/webdriverio/lib/commands/getCurrentTabId.js | JavaScript | mit | 704 |
/*
---
name: Class.Binds
description: Alternate Class.Binds Implementation
authors: Scott Kyle (@appden), Christoph Pojer (@cpojer)
license: MIT-style license.
requires: [Core/Class, Core/Function]
provides: Class.Binds
...
*/
Class.Binds = new Class({
$bound: {},
bound: function(name){
return this.$bound... | adamos42/ionize | themes/admin/javascript/mootools-class-extras.js | JavaScript | mit | 1,788 |
module.exports = function(input){
this.cacheable();
var dependenciesRegexp = /define\(?\s*\[(.|\n)*?]/;
var newInput = input.replace(dependenciesRegexp, function(match){
if(/('|")jst\//.test(match)){
var extraDep = ", 'coffeescripts/handlebars_helpers']";
var defineWithHandlebarsDependency = match... | dgynn/canvas-lms | frontend_build/jsHandlebarsHelpers.js | JavaScript | agpl-3.0 | 443 |
/*!
Autosize v1.18.0 - 2013-10-20
Automatically adjust textarea height based on user input.
(c) 2013 Jack Moore - http://www.jacklmoore.com/autosize
license: http://www.opensource.org/licenses/mit-license.php
*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonym... | bram85/CalDavZap | lib/jquery.autosize.js | JavaScript | agpl-3.0 | 8,587 |
model.jsonModel = {
services: [
{
name: "alfresco/services/LoggingService",
config: {
loggingPreferences: {
enabled: true,
all: true,
warn: true,
error: true
}
}
},
"alfresco/services/Drag... | davidcognite/Aikau | aikau/src/test/resources/testApp/WEB-INF/classes/alfresco/site-webscripts/alfresco/dnd/modelling-creation-service.get.js | JavaScript | lgpl-3.0 | 1,420 |
// Copyright 2013 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.
/**
* This class provides data access interface for dump file profiler.
* @constructor
*/
var Profiler = function(jsonData, template) {
this.jsonData... | SaschaMester/delicium | tools/deep_memory_profiler/visualizer/static/profiler.js | JavaScript | bsd-3-clause | 9,907 |
// Copyright 2021 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.
/**
* Interface implemented in the foreground page that the background page uses to
* show dialogs originating from Drive to the user.
* @interface
*/... | chromium/chromium | ui/file_manager/file_manager/externs/drive_dialog_controller.js | JavaScript | bsd-3-clause | 636 |
QUnit.test('says hello world', function(assert){
assert.equal(hello(), 'hello world', 'should equal hello world');
});
QUnit.test('says hello to person', function(assert){
assert.equal(hello('Bob'), 'hello Bob', 'should equal hello Bob');
});
| Addepar/testem | examples/qunit_simple/tests.js | JavaScript | mit | 252 |
suite('Number', function () {
this.name = 'number';
test('math methods', function () {
assert.equal(1, (0.9).round());
assert.equal(-2, (-1.9).floor());
assert.equal(-1, (-1.9).ceil());
$w('abs floor round ceil').each(function(method) {
assert.equal(Math[method](Math.PI), Math.PI[method]())... | sstephenson/prototype | test/unit/tests/number.test.js | JavaScript | mit | 1,210 |
'use strict';
var MAX_SAFE_INTEGER = 0x1fffffffffffff; // 2 ^ 53 - 1
var utils = {};
utils.isHash = function isHash(value) {
return typeof value === 'string' && value.length === 64 && /^[0-9a-fA-F]+$/.test(value);
};
utils.isSafeNatural = function isSafeNatural(value) {
return typeof value === 'number' &&
is... | studio666/chainlib | lib/utils.js | JavaScript | mit | 562 |
/* eslint-disable */
;(function(root, factory) {
if (typeof define === 'function' && define.amd) { // AMD
define(['../core'], factory);
} else if (typeof exports === 'object') { // Node.js
module.exports = factory(require('../core'));
} else { // Browser
root.Blockly.Msg = factory(root.Blockly);
}
}... | cdnjs/cdnjs | ajax/libs/blockly/3.20200924.4/msg/ar.js | JavaScript | mit | 39,513 |
// The parseParameter function will typically be called for every page and
// the setParameter function is called by each active plugin to bundle specific attacks.
// Note that new custom input vector scripts will initially be disabled
// Right click the script in the Scripts tree and select "enable"
// The helper... | psiinon/zaproxy | zap/src/main/dist/scripts/templates/variant/Input Vector default template.js | JavaScript | apache-2.0 | 4,226 |
// Generated by CoffeeScript 1.12.2
(function() {
var Scope,
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
exports.Scope = Scope = (function() {
function Scope(parent, expressions, method, referencedVars)... | Erdiko/user-admin | tests/e2e/node_modules/coffee-script/lib/coffee-script/scope.js | JavaScript | mit | 4,406 |
$data.Base.extend('$data.EntityWrapper', {
getEntity: function () {
Guard.raise("pure object");
}
});
| uttapong/thalinterpreter | node_modules/jsreport/node_modules/jaydata/lib/Types/EntityWrapper.js | JavaScript | mit | 118 |
/* http://keith-wood.name/calculator.html
Danish initialisation for the jQuery calculator extension
Written by Mads Henderson (mads.henderson{at}gmail.com) December 2010. */
(function($) { // hide the namespace
$.calculator.regional['da'] = {
decimalChar: ',',
buttonText: '...', buttonStatus: 'Åben lommeregne... | jayniw/jace | web/jquery4php-assets/js/plugins/calculator/i18n/jquery.calculator-da.js | JavaScript | mit | 1,391 |
var d3_locale = {
decimal: ".",
thousands: ",",
grouping: [3],
currency: ["", "円"],
dateTime: "%Y %b %e %a %X",
date: "%Y/%m/%d",
time: "%H:%M:%S",
periods: ["AM", "PM"],
days: ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"],
shortDays: ["日", "月", "火", "水", "木", "金", "土"],
months: ["睦月", "如月", "... | delaneymethod/delaneymethod | craft/app/resources/lib/d3-i18n/ja-JP.js | JavaScript | mit | 609 |
const karmaConf = require('./karma.conf.js');
module.exports = function (config) {
// Generic Karma Configuration
karmaConf(config);
//Extended Configuration for Karma Coverage Reports
config.set({
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmi... | jjelschen/angular-4-libraries | karma-coverage.conf.js | JavaScript | mit | 760 |
/**
* @class Ext.grid.plugin.HeaderReorderer
* @extends Ext.util.Observable
* @private
*/
Ext.define('Ext.grid.plugin.HeaderReorderer', {
extend: 'Ext.util.Observable',
requires: ['Ext.grid.header.DragZone', 'Ext.grid.header.DropZone'],
alias: 'plugin.gridheaderreorderer',
init: function(headerCt) ... | bibryam/lazyplanner | webapp/lazyplanner/ext-4.0.0/src/grid/plugin/HeaderReorderer.js | JavaScript | lgpl-2.1 | 1,181 |
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) 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
*
* ... | abimarank/carbon-apimgt | components/web/components/org.wso2.carbon.apimgt.publisher.commons.ui/src/main/fragments/endpoint-create/public/js/index.js | JavaScript | apache-2.0 | 2,637 |
/**
* @license
* Copyright The Closure Library Authors.
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Factory class to create a simple autocomplete that will match
* from an array of data provided via ajax.
*
* @see ../../demos/autocompleteremote.html
*/
goog.provide('goog.ui.ac.Remote');
goo... | scheib/chromium | third_party/google-closure-library/closure/goog/ui/ac/remote.js | JavaScript | bsd-3-clause | 3,211 |
module.exports={A:{A:{"1":"C G E B A","2":"UB","8":"J"},B:{"1":"D X g H L"},C:{"1":"0 1 2 4 5 SB F I J C G E B A D X g H L M N O P Q R S T U V W u Y Z a b c d e f K h i j k l m n o p q r w x v z t s QB PB"},D:{"1":"0 1 4 5 8 F I J C G E B A D X g H L M N O P Q R S T U V W u Y Z a b c d e f K h i j k l m n o p q r w x v... | redq81/redq81.github.io | test/node_modules/caniuse-lite/data/features/css-sel2.js | JavaScript | mit | 747 |
/*!
* Ext JS Library 3.2.1
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
*/
/**
* @class Ext.Element
*/
Ext.Element.addMethods({
/**
* Scrolls this element the specified scroll point. It does NOT do bounds checking so if you scroll to a weird value it will tr... | luisibanez/SahanaEden | static/scripts/ext/src/core/Element.scroll-more.js | JavaScript | mit | 4,430 |
import $ from 'jquery';
import utils from '@bigcommerce/stencil-utils';
import _ from 'lodash';
import { insertStateHiddenField } from './form-utils';
/**
* If there are no options from bcapp, a text field will be sent. This will create a select element to hold options after the remote request.
* @returns {jQuery|HT... | bc-annavu/stencil | assets/js/theme/common/state-country.js | JavaScript | mit | 4,578 |
/* */
"use strict";
exports.default = function (defaultProps, props) {
if (defaultProps) {
for (var propName in defaultProps) {
if (typeof props[propName] === "undefined") {
props[propName] = defaultProps[propName];
}
}
}
return props;
};
exports.__esModule = true; | GreatWorksCopenhagen/gw-xmascard | src/lib/npm/babel-runtime@5.8.34/helpers/defaultProps.js | JavaScript | gpl-3.0 | 303 |
module.exports={A:{A:{"2":"J C G E B A VB"},B:{"1":"g H L","2":"D Y"},C:{"1":"0 1 3 4 5 H L M N O P Q R S T U V W X v Z a b c d e f K h i j k l m n o p q r s x y u t","2":"TB z F I J C G E B A D Y g RB QB"},D:{"1":"0 1 3 4 5 8 c d e f K h i j k l m n o p q r s x y u t FB BB UB CB DB","2":"F I J C G E B A D Y g H L M N ... | cleverswine/cleverswine-hugo | themes/semantic-cards/semantic/node_modules/caniuse-lite/data/features/opus.js | JavaScript | gpl-3.0 | 757 |
dojo.addOnLoad(function(){
var CLASSNAMES1 = ["mblTabBarButton", "mblTabBarButtonSelected"];
var CLASSNAMES2 = ["mblTabBarButton", "mblTabBarButtonHasIcon", "mblTabBarButtonSelected"];
var geom = require("dojo/dom-geometry");
var checkSpreadedChildren = function(/* String */ tabBarId, /* Number */ nbOfButtons, /* N... | denov/dojo-demo | src/main/webapp/js/dojox/mobile/tests/doh/tabbar/TabBar.js | JavaScript | apache-2.0 | 6,053 |
/**
* 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.
*
* @flow
* @format
*/
'use strict';
const AnimatedNode = require('./AnimatedNode');
const AnimatedWithChildren = require('./Anim... | exponentjs/react-native | Libraries/Animated/src/nodes/AnimatedTransform.js | JavaScript | bsd-3-clause | 2,994 |
"use strict"
const atRuleParamIndex = require("../../utils/atRuleParamIndex")
const isStandardSyntaxMediaFeature = require("../../utils/isStandardSyntaxMediaFeature")
const report = require("../../utils/report")
const ruleMessages = require("../../utils/ruleMessages")
const validateOptions = require("../../utils/valid... | grshane/monthofmud | web/themes/custom/mom/node_modules/stylelint/lib/rules/media-feature-no-missing-punctuation/index.js | JavaScript | mit | 2,762 |
module.exports={A:{A:{"2":"H E G C B A VB"},B:{"2":"D u g I J"},C:{"1":"0 1 2 3 4 5 6 y K","2":"TB x F L H E G C B A D u g I J Y O e P Q R S T U V W X v Z a b c d N f M h i j k l m n o p q r s t RB QB"},D:{"1":"0 1 2 3 4 5 6 j k l m n o p q r s t y K FB AB CB UB DB","2":"F L H E G C B A D u g I J Y O e P Q R S T U V W ... | mirotik666/-web-project-portfol | node_modules/caniuse-lite/data/features/input-minlength.js | JavaScript | mit | 817 |
'use strict';
var date = require('../../_util/date'),
ohlc = {};
module.exports = ohlc;
ohlc.alternating = {
up: { date: new Date(2014, 2, 5), open: 1, high: 1.5, low: 0.5, close: 1.1, volume: 10},
down: { date: new Date(2014, 2, 6), open: 1.1, high: 1.5, low: 0.5, close: 1, volume: 100},
even: { date: new... | fxcebx/techan.js | test/spec/bundle/_fixtures/data/ohlc.js | JavaScript | mit | 23,910 |
jQuery(document).ready(function(a) {
function g() {
"checked" == a("#slider_type_camera_slider").attr("checked") ? (a(".slider_type_1").css({display: "block"}), a(".slider_type_2").css({display: "none"})) : "checked" == a("#slider_type_accordion_slider").attr("checked") ? (a(".slider_type_1").css({display: ... | ashishswd/mymagpiesnest | wp-content/themes/bkp/mymagpie/admin/js/options-custom.js | JavaScript | gpl-2.0 | 5,840 |
/*
* autoload.js
*
* Part of the jsMath package for mathematics on the web.
*
* This file is a plugin that checks if a page contains any math
* that must be processed by jsMath, and only loads jsMath.js
* when there is.
*
* You can control the items to look for via the variables
*
* jsMath.A... | wxgeo/geophar | wxgeometrie/doc/html/_static/jsMath/plugins/autoload.js | JavaScript | gpl-2.0 | 17,877 |
import getServiceConfig from "nodemailer-wellknown";
import { Meteor } from "meteor/meteor";
import { check, Match } from "meteor/check";
import { Jobs, Packages } from "/lib/collections";
import { Logger, Reaction } from "/server/api";
Meteor.methods({
/**
* Verify the current email configuration
* @param {Ob... | together-web-pj/together-web-pj | server/methods/email.js | JavaScript | gpl-3.0 | 3,073 |
//// [parserIsClassMemberStart.ts]
class C {
type!: number;
}
//// [parserIsClassMemberStart.js]
var C = /** @class */ (function () {
function C() {
}
return C;
}());
| weswigham/TypeScript | tests/baselines/reference/parserIsClassMemberStart.js | JavaScript | apache-2.0 | 194 |
/*
* © 2009 ROBO Design
* http://www.robodesign.ro
*
* $Date: 2009-05-12 16:14:01 +0300 $
*/
var PaintWebInstance = new (function () {
var _self = this;
this.layer = {canvas: null, context: null};
this.tool = null;
this.doc = document;
this.win = window;
function init () {
profiler.start('init');... | GeorgeValergas/paintweb | tests/gsoc2009/0001-perf/test4.js | JavaScript | bsd-3-clause | 1,913 |
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'uploadwidget', 'oc', {
abort: 'Mandadís interromput per l\'utilizaire',
doneOne: 'Fichièr mandat amb succès.',
doneMany: '%1 fich... | seinyan/docs | web/uploadwidget/lang/oc.js | JavaScript | mit | 526 |
define([
'app',
'factories/playbook',
'services/playbooks',
'services/identities'
], function(app) {
app.registerController('EditPlaybookCtrl', ['$scope', 'playbook', 'playbooks', '$state', 'identities', function($scope, playbook, playbooks, $state, identities) {
$scope.playbook = playbook;
identities.getIden... | haad/semaphore | public/js/controllers/playbook/edit.js | JavaScript | mit | 715 |
/*
* @package jsDAV
* @subpackage DAV
* @copyright Copyright(c) 2013 Mike de Boer. <info AT mikedeboer DOT nl>
* @author Mike de Boer <info AT mikedeboer DOT nl>
* @license http://github.com/mikedeboer/jsDAV/blob/master/LICENSE MIT License
*/
"use strict";
var jsDAV_iNode = require("./../../DAV/interfaces/iNode"... | pascience/cloxp-install | win/life_star/node_modules/lively-davfs/node_modules/jsDAV/lib/DAVACL/interfaces/iPrincipal.js | JavaScript | mit | 2,310 |
#!/usr/bin/env node
var path = require('path');
var assert = require('assert');
var fs = require('fs-extra');
var glob = require('glob');
var _ = require('lodash');
var request = require('superagent');
var async = require('async');
var tarball = require('tarball-extract');
var colors = require('colors');
var isThere =... | redmunds/cdnjs | auto-update.js | JavaScript | mit | 10,296 |
var n = 30;
while (n--) {
describe('Array ' + n, function(){
var arr;
beforeEach(function(){
arr = [1,2,3];
})
describe('#indexOf()', function(){
it('should return -1 when the value is not present', function(){
assert(-1 == arr.indexOf(5));
})
it('should return the ... | localnerve/wpspa | vendor/bower/mocha/test/browser/large.js | JavaScript | gpl-2.0 | 670 |
Proj4js.defs["EPSG:24375"] = "+proj=lcc +lat_1=26 +lat_0=26 +lon_0=90 +k_0=0.99878641 +x_0=2743185.69 +y_0=914395.23 +a=6377276.345 +b=6356075.41314024 +units=m +no_defs"; | pmauduit/georchestra | mapfishapp/src/main/webapp/lib/proj4js/lib/defs/EPSG24375.js | JavaScript | gpl-3.0 | 171 |
/**
* @license
* Visual Blocks Editor
*
* Copyright 2012 Google Inc.
* https://developers.google.com/blockly/
*
* 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.apach... | platenspeler/LamPI-3.0 | www/blockly/core/xml.js | JavaScript | gpl-3.0 | 15,742 |
// Copyright 2011 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 ... | victorzhao/miniblink49 | v8_4_5/test/mjsunit/es6/block-leave.js | JavaScript | gpl-3.0 | 4,833 |
Proj4js.defs["EPSG:32524"] = "+proj=utm +zone=24 +south +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs"; | debard/georchestra-ird | mapfishapp/src/main/webapp/lib/proj4js/lib/defs/EPSG32524.js | JavaScript | gpl-3.0 | 121 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = convertFunctionRest;
var _core = require("@babel/core");
const buildRest = (0, _core.template)(`
for (var LEN = ARGUMENTS.length,
ARRAY = new Array(ARRAY_LEN),
KEY = START;
KEY < LEN;
... | BigBoss424/portfolio | v8/development/node_modules/@babel/plugin-transform-parameters/lib/rest.js | JavaScript | apache-2.0 | 7,952 |
/*
Copyright © 2001-2004 World Wide Web Consortium,
(Massachusetts Institute of Technology, European Research Consortium
for Informatics and Mathematics, Keio University). All
Rights Reserved. This work is distributed under the W3C® Software License [1] in the
hope that it will be useful, but WITHOUT ANY WARRANT... | cristianosistemas/domino | test/w3c/level1/html/HTMLDocument20.js | JavaScript | bsd-2-clause | 3,261 |
'use strict';
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
var Colors = require('./colors');
var Typography = function Typography() {
_classCallCheck(this, Typography);
// text colors
this.textFullBlac... | fernando-jascovich/vagrant-manager | node_modules/material-ui/lib/styles/typography.js | JavaScript | gpl-2.0 | 776 |
/*
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... | lightbase/WSCacicNeo | wscacicneo/static/ext-js/src/ProgressBar.js | JavaScript | gpl-2.0 | 12,353 |
// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.
// OffscreenCanvas test in a worker:2d.path.arcTo.zero.1
// Description:arcTo() with zero radius draws a straight line from P0 to P1
// Note:
importScripts("/resources/testharness.js");
importScripts("/html/canvas/resources/canvas-tests.js"... | chromium/chromium | third_party/blink/web_tests/external/wpt/html/canvas/offscreen/path-objects/2d.path.arcTo.zero.1.worker.js | JavaScript | bsd-3-clause | 982 |
describe('popover', function() {
var elm,
elmBody,
scope,
elmScope,
tooltipScope;
// load the popover code
beforeEach(module('ui.bootstrap.popover'));
// load the template
beforeEach(module('template/popover/popover.html'));
beforeEach(inject(function($rootScope, $compile) {
e... | realityking/ui-bootstrap | src/popover/test/popover.spec.js | JavaScript | mit | 7,044 |
'use strict';
module.exports['Contains'] = require('./Contains');
module.exports['Count'] = require('./Count');
module.exports['Index'] = require('./Index2');
module.exports['LastIndex'] = require('./LastIndex');
//# sourceMappingURL=index.js.map | kimmanuel/d8-training-project | themes/d8training/node_modules/locutus/golang/strings/index.js | JavaScript | gpl-2.0 | 247 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var immutable_1 = require("immutable");
function handlePortsOption(incoming) {
var value = incoming.get('ports');
if (!value)
return incoming;
var obj = { min: null, max: null };
if (typeof value === "string") {
... | cferreirasuazo/pokedex | node_modules/browser-sync/dist/cli/transforms/handlePortsOption.js | JavaScript | gpl-3.0 | 838 |
/*
Highcharts JS v6.0.7 (2018-02-16)
Highcharts Drilldown module
Author: Torstein Honsi
License: www.highcharts.com/license
*/
(function(p){"object"===typeof module&&module.exports?module.exports=p:p(Highcharts)})(function(p){(function(e){var p=e.animObject,y=e.noop,z=e.color,A=e.defaultOptions,k=e.each,q=e.exten... | billchen198318/bamboobsc | gsbsc-mobile-web/WebContent/highcharts/code/modules/drilldown.js | JavaScript | apache-2.0 | 9,474 |
/**
* use as global hotkey watcher:
*
* cdb.god.bind('hotkey:s', function() ...
*/
cdb.admin.hotkeys = {
_keyMap: {
68: 's',
67: 'c',
83: 's'
},
enable: function() {
$('body').bind('keydown', function(e) {
if(e.altKey && e.ctrlKey) {
var evt = cdb.admin.hotkeys._keyMap[e.keyC... | future-analytics/cartodb | lib/assets/javascripts/cartodb/old_common/hotkeys.js | JavaScript | bsd-3-clause | 509 |
var S = {};
S.times = function (n, iterator, context) {
var accum = Array(Math.max(0, n));
for (var i = 0; i < n; i++) accum[i] = iterator.call(context, i);
return accum;
};
S.test = function (testName, test, n, context) {
console.time(testName);
S.times(n || 100, function () {
S.test.before && S.test.b... | johnlscott/fotorama | test/speed/speed-helpers.js | JavaScript | mit | 424 |
/* */
(function(Buffer) {
var inherits = require("inherits");
var Buffer = require("buffer").Buffer;
var asn1 = require("../../asn1");
var DERDecoder = require("./der");
function PEMDecoder(entity) {
DERDecoder.call(this, entity);
this.enc = 'pem';
}
;
inherits(PEMDecoder, DERDecoder);
module... | TelerikFrenchConnection/JS-Applications-Teamwork | lib/npm/asn1.js@2.2.0/lib/asn1/decoders/pem.js | JavaScript | mit | 1,317 |
/* License: MIT.
* Copyright (C) 2013, 2014, Uri Shaked.
*/
'use strict';
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
logLevel: config.LOG_INFO,
browsers: ['PhantomJS'],
autoWatch: true,
reporters: ['dots', 'coverage'],
files: [
'bower_components/angula... | bobalazek/doggie-mobile | www/lib/angular-moment/karma.conf.js | JavaScript | mit | 871 |
import { COMPILER_REVISION, REVISION_CHANGES } from '../base';
import Exception from '../exception';
import {isArray} from '../utils';
import CodeGen from './code-gen';
function Literal(value) {
this.value = value;
}
function JavaScriptCompiler() {}
JavaScriptCompiler.prototype = {
// PUBLIC API: You can overrid... | shanginn/newsaity74.ru | templates/blank_j3/node_modules/gulp.spritesmith/node_modules/spritesheet-templates/node_modules/handlebars/lib/handlebars/compiler/javascript-compiler.js | JavaScript | gpl-2.0 | 29,963 |
(function(c,j){if(typeof define==="function"&&define.amd)define(["jquery"],j);else if(typeof exports==="object")j(require("jquery"));else c.jQuery?j(c.jQuery):j(c.Zepto)})(this,function(c,j){c.fn.jPlayer=function(a){var b=typeof a==="string",d=Array.prototype.slice.call(arguments,1),e=this;a=!b&&d.length?c.extend.apply... | sanathkumarv/RestAPIWt | tools/wt-3.3.5-rc1/resources/jPlayer/jquery.jplayer.min.js | JavaScript | apache-2.0 | 62,213 |
/**
* @fileoverview Externs for Polymer
* @externs
*/
/**
* @param {!{is: string}} init
* @return {!HTMLElement}
*/
function Polymer(init){}
/**
* @param {string} string
* @param {Object} obj
* @return {string}
*/
function JSCompiler_renameProperty(string, obj) {} | pavlism/Polymer2Table | public/bower_components/polymer/externs/polymer-externs.js | JavaScript | mit | 276 |
/**
* Generated bundle index. Do not edit.
*/
export * from './public_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpbWVuZy1jaGFydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy9jaGFydC9wcmltZW5nLWNoYXJ0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJB... | cdnjs/cdnjs | ajax/libs/primeng/12.2.3/esm2015/chart/primeng-chart.js | JavaScript | mit | 504 |
// 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 localStrings;
var browserBridge;
/**
* Class that keeps track of current burn process state.
* @param {Object} strings Localized state strings.... | plxaye/chromium | src/chrome/browser/resources/chromeos/image_burner.js | JavaScript | apache-2.0 | 13,843 |
//// Copyright (c) Microsoft Corporation. All rights reserved
(function () {
"use strict";
var inclinometer;
var page = WinJS.UI.Pages.define("/html/scenario2_Polling.html", {
ready: function (element, options) {
document.getElementById("getData").addEventListener("click", getData, fa... | gforguru/Windows-universal-samples | relativeinclinometer/js/js/scenario2_polling.js | JavaScript | mit | 1,070 |
/* ***** 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... | i5ting/mdpreview | vendor/ed/lib/ace/mode/tcl_highlight_rules.js | JavaScript | mit | 6,541 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch10/10.4/10.4.3/10.4.3-1-80gs.js
* @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.bind(globalObject)())
* @onlyStrict
*/
function f() { "use strict"; return this;};
if... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch10/10.4/10.4.3/10.4.3-1-80gs.js | JavaScript | bsd-3-clause | 414 |
// Copyright 2009 the Sputnik authors. All rights reserved.
/**
* No matter how control leaves the embedded 'Statement',
* the scope chain is always restored to its former state
*
* @path ch12/12.10/S12.10_A3.7_T3.js
* @description Declaring and calling a function within "with" statement, leading to normal comple... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch12/12.10/S12.10_A3.7_T3.js | JavaScript | bsd-3-clause | 1,370 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.4/15.4.4/15.4.4.21/15.4.4.21-9-c-ii-30.js
* @description Array.prototype.reduce - the Math object can be used as accumulator
*/
function testcase() {
var accessed = false;
function callbackfn(prevVal, curVal, idx... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch15/15.4/15.4.4/15.4.4.21/15.4.4.21-9-c-ii-30.js | JavaScript | bsd-3-clause | 564 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-496.js
* @description ES5 Attributes - property ([[Get]] is a Function, [[Set]] is undefined, [[Enumerable]] is true, [[Configurable]] is true) is enumerable
*/
function testcase() {
var obj =... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-496.js | JavaScript | bsd-3-clause | 913 |
/**
* html5tooltips.js
* Light and clean tooltips.
* https://github.com/ytiurin/html5tooltipsjs
*
* Yevhen Tiurin <yevhentiurin@gmail.com>
* The MIT License (MIT)
* http://opensource.org/licenses/MIT
*
* April 21, 2014
**/
(function() {
var tt, tModels, options, activeElements,
html5tooltipsPredefined = {
animateF... | joeyparrish/cdnjs | ajax/libs/html5tooltipsjs/1.2/html5tooltips.js | JavaScript | mit | 17,266 |
/*
* Copyright (c) 2016 Vincent Petry <pvince81@owncloud.com>
*
* This file is licensed under the Affero General Public License version 3
* or later.
*
* See the COPYING-README file.
*
*/
describe('OCA.SystemTags.FileList tests', function() {
var FileInfo = OC.Files.FileInfo;
var fileList;
beforeEach(funct... | andreas-p/nextcloud-server | apps/systemtags/tests/js/systemtagsfilelistSpec.js | JavaScript | agpl-3.0 | 6,236 |
/**
* Copyright (c) 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.
*
* @provides... | SerendpityZOEY/Solr-Search-React-UI | node_modules/node_modules/draft-js/lib/EditorChangeType.js | JavaScript | apache-2.0 | 397 |
define(["dojo/_base/lang", "../util/oo", "./_Base", "../manager/_registry"],
function(lang, oo, Base, registry){
var Rect = oo.declare(
Base,
function(options){
// summary:
// constructor
if(this.points.length){
//this.render();
}
},
{
// summary:
// Creates a dojox.gfx rectangle based on data or... | avz-cmf/zaboy-middleware | www/js/dojox/drawing/stencil/Rect.js | JavaScript | gpl-3.0 | 2,009 |
//// [tests/cases/conformance/es6/moduleExportsUmd/defaultExportsGetExportedUmd.ts] ////
//// [a.ts]
export default class Foo {}
//// [b.ts]
export default function foo() {}
//// [a.js]
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factor... | basarat/TypeScript | tests/baselines/reference/defaultExportsGetExportedUmd.js | JavaScript | apache-2.0 | 1,203 |
YUI.add('dom-style-ie', function (Y, NAME) {
(function(Y) {
var HAS_LAYOUT = 'hasLayout',
PX = 'px',
FILTER = 'filter',
FILTERS = 'filters',
OPACITY = 'opacity',
AUTO = 'auto',
BORDER_WIDTH = 'borderWidth',
BORDER_TOP_WIDTH = 'borderTopWidth',
BORDER_RIGHT_WIDTH = 'borderRightWidth',
... | kPlusPlus/GameK | node_modules/yui/dom-style-ie/dom-style-ie-debug.js | JavaScript | mit | 10,590 |
import React from 'react';
import { FormattedMessage } from 'react-intl';
const MissingIndicator = () => (
<div className='missing-indicator'>
<div>
<FormattedMessage id='missing_indicator.label' defaultMessage='Not found' />
</div>
</div>
);
export default MissingIndicator;
| Toootim/mastodon | app/javascript/mastodon/components/missing_indicator.js | JavaScript | agpl-3.0 | 296 |
// (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... | bmmg888/moodlemobile2 | www/addons/mod/scorm/main.js | JavaScript | apache-2.0 | 2,566 |
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import LinkButton from 'flarum/components/LinkButton';
export default class AdminLinkButton extends Lin... | azarro/flarum | vendor/flarum/core/js/admin/src/components/AdminLinkButton.js | JavaScript | mit | 550 |
version https://git-lfs.github.com/spec/v1
oid sha256:fa0a00336097d0dc43cf890d348cef75b2420db1f5fc332fdf86c6289f10adaf
size 15382
| yogeshsaroya/new-cdnjs | ajax/libs/yui/3.9.1/async-queue/async-queue.js | JavaScript | mit | 130 |
"use strict";
var helpers = require("../../helpers/helpers");
exports["America/Atikokan"] = {
"1918" : helpers.makeTestYear("America/Atikokan", [
["1918-04-14T07:59:59+00:00", "01:59:59", "CST", 360],
["1918-04-14T08:00:00+00:00", "03:00:00", "CDT", 300],
["1918-10-27T06:59:59+00:00", "01:59:59", "CDT", 300],
... | Bladefidz/ocfa_yii | vendor/bower-asset/moment-timezone/tests/zones/america/atikokan.js | JavaScript | bsd-3-clause | 1,012 |
/* jquery-rotate-0.1.js August 4th 2011
* A simple plugin to do cross-browser CSS rotations with backwards compatibility
*
* Written by Austen Hoogen
* http://www.austenhoogen.com
*
* This plugin is Open Source Software released under GPL v3
*
* This software comes with no guarantees. Use at your own risk.
* ... | SimonXIX/vufind-soas | themes/bootstrap/js/zoomy/img-rotate.js | JavaScript | gpl-2.0 | 1,805 |
// From https://github.com/google/closure-compiler/blob/master/contrib/externs/chrome_extensions.js
/*
* Copyright 2009 The Closure Compiler Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the ... | imrehg/mitro | browser-ext/third_party/closureify/externs/chrome_extensions.js | JavaScript | gpl-3.0 | 124,190 |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.returnExports ... | Alee02/tab-tracker | server/node_modules/has-symbol-support-x/lib/has-symbol-support-x.js | JavaScript | mit | 1,363 |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("uicolor","bg",{title:"Избор на цвят за интерфейса",options:"Опции за цвят",highlight:"Освети",selected:"Избран цвят",predefined:... | maiconpinto/cakephp-adminlte-theme | webroot/bower_components/ckeditor/plugins/uicolor/lang/bg.js | JavaScript | mit | 512 |
var fs = require('fs');
var _path = require('path');
var curtime = function() {
return (new Date()).getTime();
}
var walk = function(path,options){
var start = curtime();
var allPaths = [];
if(path.push) {
var queue = path;
} else {
var queue = [path];
}
var stat = null;
var children = null;
... | craftybones/LightTable | deploy/core/node_modules/lighttable/background/walkdir2.js | JavaScript | mit | 1,489 |
(function($){
acf.field_group = acf.model.extend({
// vars
$fields: null,
$locations: null,
$options: null,
actions: {
'ready': 'init'
},
events: {
'submit #post': 'submit',
'click a[href="#"]': 'preventDefault',
'click .submitdelete': 'trash',
'mouseenter .acf-field-li... | TheAllAmericanBoysChorus/AABC2wp.dev | wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js | JavaScript | gpl-2.0 | 48,237 |
/**
* 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... | bspaulding/react | src/renderers/shared/utils/ReactFeatureFlags.js | JavaScript | bsd-3-clause | 754 |
YUI.add('editor-para', function (Y, NAME) {
/**
* Plugin for Editor to paragraph auto wrapping and correction.
* @class Plugin.EditorPara
* @extends Plugin.EditorParaBase
* @constructor
* @module editor
* @submodule editor-para
*/
var EditorPara = function() {
Edit... | chauncey/there-be-docs | static/yui3/editor-para/editor-para.js | JavaScript | mit | 14,644 |
module.exports = {
Field: require('../MoneyField'),
Filter: require('../MoneyFilter'),
readme: require('fs').readFileSync('./fields/types/money/Readme.md', 'utf8'),
section: 'Number',
spec: {
label: 'Money',
path: 'text',
value: 0,
},
};
| helloworld3q3q/keystone | fields/types/money/test/explorer.js | JavaScript | mit | 250 |
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
//>>description: Consistent styling for native select menus. Tapping opens a native select menu.
//>>label: Selects
//>>group: Forms
//>>css.structure: ../css/structure/jquery.mobile.forms.select.css
//>>css.theme: ../css/themes/default/jquery.mobile.theme.c... | baardev/barakaMobile | www/components/jquery-mobile/js/widgets/forms/select.js | JavaScript | gpl-2.0 | 8,406 |
var step = '<font class="fontSize">'
+'<p>Test Purpose: </p>'
+'<p>Verifies the device supports battery attributes.</p>'
+'<p>Test Step: </p>'
+'<p>'
+'<ol>'
+'<li>Charge the device,</li>'
+'<li>Discharge the device.</li>'
... | hgl888/web-testing-service | wts/tests/usecase/steps/BatteryStatus/step.js | JavaScript | bsd-3-clause | 550 |
/**
* Globalize v1.2.2
*
* http://github.com/jquery/globalize
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-12-31T15:52Z
*/
/*!
* Globalize v1.2.2 2016-12-31T15:52Z Released under the MIT license
* http://git.io/TrdQbw
*/
... | darilek/dotvvm-devextreme | src/DotVVM.DevExtreme.Samples/Scripts/globalize/number.js | JavaScript | mit | 38,667 |
'use strict';
SwaggerUi.Views.SignatureView = Backbone.View.extend({
events: {
'click a.description-link' : 'switchToDescription',
'click a.snippet-link' : 'switchToSnippet',
'mousedown .snippet' : 'snippetToTextArea'
},
initialize: function () {
},
render: function(){... | Ergosign/grunt-swagger-docs-onepage | test/fixtures/libs/swagger-ui/src/main/javascript/view/SignatureView.js | JavaScript | mit | 2,011 |
(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["redux-persist"] = factory();
else
root[... | dakshshah96/cdnjs | ajax/libs/redux-persist/4.0.0-beta1.2/redux-persist.js | JavaScript | mit | 54,345 |
var createAggregator = require('./_createAggregator');
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Creates an object composed of keys generated from the results of running
* e... | lukacsaron/lesarrail | wp-content/themes/lesarrail/node_modules/sass-graph/node_modules/lodash/countBy.js | JavaScript | gpl-2.0 | 1,152 |
function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete obj[key];
}
return arg;
}
function Controller() {
function __alloyId9(e) {
if (e && e.fromAdapter) return;
__alloyId9.opts || {};
var models = __alloyId8.models;
... | bhatfield/alloy | test/apps/testing/ALOY-604/_generated/mobileweb/alloy/controllers/index.js | JavaScript | apache-2.0 | 2,847 |
var Backbone = require('backbone');
var Q = require('q');
var Animation = require('./index').Animation;
var PromiseAnimation = require('./index').PromiseAnimation;
var GRAPHICS = require('../../util/constants').GRAPHICS;
/******************
* This class is responsible for a lot of the heavy lifting around creating a... | andriymoroz/learnGitBranching | src/js/visuals/animation/animationFactory.js | JavaScript | mit | 5,006 |
/**
* @author TristanVALCKE / https://github.com/Itee
*/
/* global QUnit */
import { Curve } from '../../../../../src/extras/core/Curve';
export default QUnit.module( 'Extras', () => {
QUnit.module( 'Core', () => {
QUnit.module( 'Curve', () => {
// INSTANCING
QUnit.todo( "Instancing", ( assert ) => {
... | TristanVALCKE/three.js | test/unit/src/extras/core/Curve.tests.js | JavaScript | mit | 1,690 |
import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var ArrayColumn = React.createClass({
displayName: 'ArrayColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue () {
... | helloworld3q3q/keystone | fields/components/columns/ArrayColumn.js | JavaScript | mit | 665 |
/**
* @license Highstock JS v2.1.0 (2015-02-16)
* Data module
*
* (c) 2012-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global jQuery, HighchartsAdapter */
(function (Highcharts) {
// Utilities
var each = Highcharts.each,
pick = Highcharts.pick,
inArray = Highchar... | dunglas/vclient-web | bower_components/highstock-release/modules/data.src.js | JavaScript | mit | 26,638 |
// Fine Uploader 5.11.4 - (c) 2013-present Widen Enterprises, Inc. MIT licensed. http://fineuploader.com
(function(global) {
var qq = function(element) {
"use strict";
return {
hide: function() {
element.style.display = "none";
return this;
},
... | kiwi89/cdnjs | ajax/libs/file-uploader/5.11.4/azure.fine-uploader/azure.fine-uploader.js | JavaScript | mit | 369,234 |