code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
/*
* Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the ri... | bglassy/brackets | src/extensions/default/StaticServer/unittests.js | JavaScript | mit | 28,972 |
import BasePlugin from './../_base';
import {arrayEach} from './../../helpers/array';
import {CommandExecutor} from './commandExecutor';
import {EventManager} from './../../eventManager';
import {hasClass} from './../../helpers/dom/element';
import {ItemsFactory} from './itemsFactory';
import {Menu} from './menu';
imp... | anandmehrotra/handsontable | src/plugins/contextMenu/contextMenu.js | JavaScript | mit | 8,370 |
/*
* The MIT License
*
* Copyright (c) 2015, Sebastian Sdorra
*
* 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, ... | ugbandula/angular-dashboard-framework | src/scripts/widget.js | JavaScript | mit | 6,909 |
'use strict';
// Check that main thread handles an unknown message type from a worker thread
// as expected.
require('../common');
const assert = require('assert');
const { spawnSync } = require('child_process');
const { Worker } = require('worker_threads');
if (process.argv[2] !== 'spawned') {
const result = spa... | enclose-io/compiler | lts/test/parallel/test-worker-message-type-unknown.js | JavaScript | mit | 883 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin');
var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi... | aykutyaman/meteor1.3-react-flowrouter-demo | node_modules/material-ui/lib/svg-icons/places/smoking-rooms.js | JavaScript | mit | 1,318 |
'use strict';
var angular = require('angular');
angular
.module('mwl.calendar')
.controller('MwlDragSelectCtrl', function($scope, $element, $parse, $attrs) {
function handleMouseEvent(callbackName) {
return function(event) {
if (callbackName) {
$parse(callbackName)($scope);
... | pakino/calendar-viewer-angular | src/directives/mwlDragSelect.js | JavaScript | mit | 1,342 |
export default class BatchDeleteController {
constructor($scope, $state, WriteQueries, notification, view) {
this.$scope = $scope;
this.$state = $state;
this.WriteQueries = WriteQueries;
this.notification = notification;
this.view = view;
this.entity = view.getEntity(... | vasiakorobkin/ng-admin | src/javascripts/ng-admin/Crud/delete/BatchDeleteController.js | JavaScript | mit | 1,922 |
const helpers = require("./global-setup");
const path = require("path");
const request = require("request");
const expect = require("chai").expect;
const describe = global.describe;
const it = global.it;
const beforeEach = global.beforeEach;
const afterEach = global.afterEach;
describe("Position of modules", functio... | morozgrafix/MagicMirror | tests/e2e/modules_position_spec.js | JavaScript | mit | 1,305 |
'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe(`Pursuit`, function () {
afterEach(() => battle.destroy());
it(`should execute before the target switches out and after the user mega evolves`, function () {
battle = common.createBattle();
b... | KewlStatics/Alliance | test/simulator/moves/pursuit.js | JavaScript | mit | 784 |
(function($) {
Drupal.plupload = Drupal.plupload || {};
/**
* Attaches the Plupload behavior to each FileField Sources Plupload form element.
*/
Drupal.behaviors.filefield_sources_plupload = {
attach: function (context, settings) {
$(".filefield-source-plupload .plupload-element", context).once('ffs-... | geoffreygevalt/ywp | sites/all/modules/filefield_sources_plupload/js/plupload.js | JavaScript | gpl-2.0 | 2,845 |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'bidi', 'ka', {
ltr: 'ტექსტის მიმართულება მარცხნიდან მარჯვნივ',
rtl: 'ტექსტის მიმართულება მარჯვნიდან მარცხნივ'
} );
| jagnoha/website | profiles/varbase/profiles/varbase/modules/contrib/ckeditor_bidi/js/plugins/bidi/lang/ka.js | JavaScript | gpl-2.0 | 431 |
/*
* Allofthelights.js
* Version: 1.0
* http://www.megaptery.com/allofthelights/
*/
(function ($) {
$.fn.allofthelights = function (options) {
var defaults = {
'color': '#000000',
'opacity': '0.9',
'switch_id': 'switch',
'animation': 'fade',
'delay_turn_on': 400,
... | candidosales/zulk | wp-content/themes/zulk_wp_version_4.3.2/javascripts/jquery.allofthelights.js | JavaScript | gpl-2.0 | 5,393 |
var base = require('settings/teams/update-team-photo');
Vue.component('spark-update-team-photo', {
mixins: [base]
});
| expoteca/expoteca.com | spark/install-stubs/resources/assets/js/spark-components/settings/teams/update-team-photo.js | JavaScript | gpl-3.0 | 123 |
/*
YUI 3.8.0 (build 5744)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("view-node-map",function(e,t){function i(){}var n=e.namespace("View._buildCfg"),r={};n.aggregates||(n.aggregates=[]),n.aggregates.push("getByNode"),i.getByNode=function(t){... | relipse/cworklog | public_html/js/yui/3.8.0/build/view-node-map/view-node-map-min.js | JavaScript | gpl-3.0 | 631 |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'horizontalrule', 'pl', {
toolbar: 'Wstaw poziomą linię'
} );
| musicEnfanthen/Knora | salsah1/src/public/vendor/ckeditor_4.7.0/plugins/horizontalrule/lang/pl.js | JavaScript | agpl-3.0 | 234 |
/*
* /MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/CombDiacritMarks.js
*
* Copyright (c) 2009-2015 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License a... | hannesk001/SPHERE-Framework | Library/MathJax/2.5.0/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/CombDiacritMarks.js | JavaScript | agpl-3.0 | 1,310 |
/*
Copyright 2011, AUTHORS.txt (http://ui.operamasks.org/about)
Dual licensed under the MIT or LGPL Version 2 licenses.
*/
/**
* @fileOverview Undo/Redo system for saving shapshot for document modification
* and other recordable changes.
*/
(function()
{
OMEDITOR.plugins.add( 'undo',
{
requires : [ 'selectio... | yonghuang/fastui | samplecenter/basic/timeTest/operamasks-ui-2.0/development-bundle/ui/editor/_source/plugins/undo/plugin.js | JavaScript | lgpl-3.0 | 14,545 |
/*
* Ample SDK - JavaScript GUI Framework
*
* Copyright (c) 2012 Sergey Ilinsky, Zingus J. Rinkle
* Dual licensed under the MIT and GPL licenses.
* See: http://www.amplesdk.com/about/licensing/
*
*/
ample.locale.addCultureInfo("it", {
messages: {
// window/dialog/wizard
"xul.dialog.button.acc... | zonebuilder/zonebuilder.github.io | jul/ample-sdk/ample/languages/xul/locales/it.js | JavaScript | lgpl-3.0 | 2,266 |
import Ember from 'ember';
import { sumBy } from 'lodash';
const { Controller, computed } = Ember;
export default Controller.extend({
ticketsTotal: computed(function() {
return sumBy(this.get('model'), 'tickets');
}),
salesTotal: computed(function() {
return sumBy(this.get('model'), 'sales');
}),
di... | sumedh123/open-event-frontend | app/controllers/admin/sales/marketer.js | JavaScript | apache-2.0 | 415 |
({
L_MENU_GRID: "M\u0159\u00ed\u017eka nab\u00eddky",
L_MENU_ITEM_DISABLED: "Polo\u017eka %1 nen\u00ed dostupn\u00e1.",
L_MENU_ITEM_SUBMENU: "Podnab\u00eddka %1",
L_MENU_SUBMENU: "podnab\u00eddka",
L_MENU_CHECK: "za\u0161krtnout"
})
| paulswithers/XPagesExtensionLibrary | extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.domino/resources/web/dwa/common/nls/cs/menu.js | JavaScript | apache-2.0 | 233 |
import { test } from 'ember-qunit';
import moduleFor from 'open-event-frontend/tests/helpers/unit-helper';
moduleFor('route:admin/sessions', 'Unit | Route | admin/sessions', []);
test('it exists', function(assert) {
let route = this.subject();
assert.ok(route);
});
| sumedh123/open-event-frontend | tests/unit/routes/admin/sessions-test.js | JavaScript | apache-2.0 | 272 |
define(['modules/forms/module','bootstrap-validator'], function(module){
"use strict";
module.registerDirective('bootstrapProfileForm', function(){
return {
restrict: 'E',
replace: true,
templateUrl: 'app/modules/forms/directives/bootstrap-validation/bootstrap-pro... | Orpheus11/nile | web/app/modules/forms/directives/bootstrap-validation/bootstrapProfileForm.js | JavaScript | apache-2.0 | 1,532 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyrigh... | hippich/typescript | tests/Fidelity/test262/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-32.js | JavaScript | apache-2.0 | 954 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = getISODay;
var _index = _interopRequireDefault(require("../toDate/index.js"));
var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
function _interopRequireDefault(obj) { return obj && obj.__e... | BigBoss424/portfolio | v8/development/node_modules/date-fns/getISODay/index.js | JavaScript | apache-2.0 | 1,327 |
// 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... | tangfeixiong/dashboard | src/test/frontend/replicationcontrollerdetail/updatereplicas_controller_test.js | JavaScript | apache-2.0 | 3,190 |
var q = require('q')
var apigeetool = require('apigeetool')
var async = require('async')
var gutil = require('gulp-util')
function createApp(app){
var defer = q.defer()
var sdk = apigeetool.getPromiseSDK()
var opts=baseopts()
opts.name = app.name
opts.apiProducts = app.apiProducts
opts.email = ... | rupamrai/openbank | lib/edge.js | JavaScript | apache-2.0 | 4,712 |
var LoadingScreen = {
startLoad: function(successCallback, errorCallback, options) {
if(!options) {
options = {};
}
var _options = {
label: options.label ? options.label : 'Loading...',
style: options.style ? options.style : LoadingScreen.STYLEWHITELARGE, ... | dynamicapp/dynamicapp | lib/www/js/loadingScreen.js | JavaScript | apache-2.0 | 870 |
import Enumerator from './enumerator';
import { makeSettledResult } from './enumerator';
import Promise from './promise';
import { o_create } from './utils';
function AllSettled(Constructor, entries, label) {
this._superConstructor(Constructor, entries, false /* don't abort on reject */, label);
}
AllSettled.protot... | drdrej/webapi-skeleton | source/node_modules/rsvp/lib/rsvp/all-settled.js | JavaScript | apache-2.0 | 2,474 |
/* @flow */
import {join, relative, resolve} from 'path';
import {format} from 'util';
import {exec, exists, mkdirp, readFile, unlink, writeFile} from '../async';
import {getTestsDir, defaultFlowConfigName} from '../constants';
import type {Args} from './new-testCommand';
async function newTest(bin: string, suiteNa... | AprilArcus/flow | tsrc/new-test/new-testRunner.js | JavaScript | bsd-3-clause | 1,555 |
require("@fatso83/mini-mocha").install();
const sinon = require("sinon");
const referee = require("@sinonjs/referee");
const assert = referee.assert;
const fs = require("fs");
describe("FakeTest", function () {
it("should create a fake that 'yields asynchronously'", function () {
const fake = sinon.fake.yi... | cjohansen/Sinon.JS | docs/release-source/release/examples/fakes-8-yields-async.test.js | JavaScript | bsd-3-clause | 807 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.10.1_A1_T4;
* @section: 15.10.1;
* @assertion: RegExp syntax errors must be caught when matcher(s) compiles;
* @description: Tested RegExp is "a+++";
*/
//CHECK#1
try {
... | seraum/nectarjs | tests/ES3/Conformance/15_Native_ECMA_Script_Objects/15.10_RegExp_Objects/15.10.1_Patterns/S15.10.1_A1_T4.js | JavaScript | mit | 544 |
version https://git-lfs.github.com/spec/v1
oid sha256:7bb2ff95b5b5b8b9381c3164c00724bbcf60a5e3a249bffc29cd3c7030ebda2a
size 5862
| yogeshsaroya/new-cdnjs | ajax/libs/jQuery.mmenu/4.3.6/js/addons/jquery.mmenu.dragopen.js | JavaScript | mit | 129 |
import Stream from "./stream";
/*
Check whether an object is a stream or not
@public
@for Ember.stream
@function isStream
@param {Object|Stream} object object to check whether it is a stream
@return {Boolean} `true` if the object is a stream, `false` otherwise
*/
export function isStream(object) {
return obje... | thejameskyle/ember.js | packages/ember-metal/lib/streams/utils.js | JavaScript | mit | 9,391 |
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Arrows.js
*
* Copyright (c) 2009-2016 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th... | masterfish2015/my_project | 半导体物理/js/mathjax/unpacked/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Arrows.js | JavaScript | mit | 3,734 |
/*
* Copyright 2010 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 License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | joshuamiller/hbg-crime | src/cljs/google_maps_api_v3.js | JavaScript | mit | 99,957 |
var assert = require('assert');
var Globals = require('../../lib/globals/expect.js');
var common = require('../../common.js');
var CommandQueue = common.require('core/queue.js');
module.exports = {
'test Queue' : {
beforeEach: function (done) {
CommandQueue.reset();
Globals.beforeEach.call(this, done... | PatrickCrawford/herdacity-e2e | tests/src/core/testQueue.js | JavaScript | mit | 1,238 |
$(function() {
$widget = $('#calendar-widget')
if ($widget.length) {
$.get('/events/calendar.json', function(data){
$widget.fullCalendar({
editable: false,
header: {
left: 'title',
firstDay: 1,
center: '',
aspectRatio: 1,
right: 'today pr... | yazug/rdo-website | source/javascripts/lib/cal-widget.js | JavaScript | mit | 388 |
import map from './map';
export default map; | hoka-plus/p-01-web | tmp/babel-output_path-MNyU5yIO.tmp/modules/lodash/collection/collect.js | JavaScript | mit | 44 |
/**
* @author Richard Davey <rich@photonstorm.com>
* @author Mat Groves (@Doormat23)
* @copyright 2016 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* New version of PIXI.ComplexPrimitiveShader
*
* @class Phaser.Renderer.Canvas... | clark-stevenson/phaser | v3/merge/renderer/webgl/shaders/ComplexPrimitiveGraphics.js | JavaScript | mit | 3,947 |
/**
* A promise-based Q-JSGI server and client API.
* @module
*/
/*whatsupdoc*/
var HTTP = require("http"); // node
var HTTPS = require("https"); // node
var URL = require("url2"); // node
var Q = require("q");
var Reader = require("./reader");
/**
* @param {respond(request Request)} respond a JSGI responder fun... | uistyleguide/uistyleguide.github.io | node_modules/dgeni-packages/node_modules/q-io/http.js | JavaScript | mit | 11,726 |
/**
* Determines whether any element of an observable sequence satisfies a condition if present, else if any items are in the sequence.
* @param {Function} [predicate] A function to test each element for a condition.
* @returns {Observable} An observable sequence containing a single element determining wh... | ldcvia/ldcvia-teamroom | node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/rx/src/core/linq/observable/some.js | JavaScript | mit | 1,118 |
/**
* The position and size of the Bitmap Text in global space, taking into account the Game Object's scale and world position.
*
* @typedef {object} Phaser.Types.GameObjects.BitmapText.GlobalBitmapTextSize
* @since 3.0.0
*
* @property {number} x - The x position of the BitmapText, taking into account the x posit... | photonstorm/phaser | src/gameobjects/bitmaptext/typedefs/GlobalBitmapTextSize.js | JavaScript | mit | 707 |
version https://git-lfs.github.com/spec/v1
oid sha256:0e7889c818b4129a08bc3843ba39b2e1118e6cfd3f186b1abf15037cd5599dd6
size 547
| yogeshsaroya/new-cdnjs | ajax/libs/dojo/1.7.8/cldr/nls/fr/number.js | JavaScript | mit | 128 |
var traceur = require('traceur');
var traceurGet = require('../lib/utils').traceurGet;
var ParseTreeTransformer = traceurGet('codegeneration/ParseTreeTransformer.js').ParseTreeTransformer;
var ModuleSpecifier = traceurGet('syntax/trees/ParseTrees.js').ModuleSpecifier;
var createStringLiteralToken = traceurGet('codegen... | CharlesSanford/personal-site | node_modules/systemjs-builder/compilers/esm.js | JavaScript | mit | 8,859 |
// 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
// (at your option) any later version.
//
// Moodle is dis... | vidyamantra/moodle-local_getkey | stat/stat.js | JavaScript | gpl-3.0 | 9,089 |
YUI.add('moodle-report_overviewstats-charts', function (Y, NAME) {
M.report_overviewstats = M.report_overviewstats || {};
M.report_overviewstats.charts = M.report_overviewstats.charts || {};
M.report_overviewstats.charts.countries = {
/**
* @method init
* @param data
*/
init: function(data) {
... | jamesclickap/taiwanlife_web | report/overviewstats/yui/build/moodle-report_overviewstats-charts/moodle-report_overviewstats-charts-debug.js | JavaScript | gpl-3.0 | 4,126 |
// TUTAO start (disabled for non-touch devices because this script does not support IE9)
if ('ontouchstart' in window || 'ontouchstart' in document.documentElement || window.navigator.msMaxTouchPoints) {
// TUTAO end
/*! Hammer.JS - v2.0.4 - 2014-09-28
* http://hammerjs.github.io/
*
* Copyright (c) 2014 Jorik Tange... | elninosi/tutanota | web/lib/hammer-2.0.4.js | JavaScript | gpl-3.0 | 78,889 |
odoo.define('board.AddToGoogleSpreadsheetMenu', function (require) {
"use strict";
var ActionManager = require('web.ActionManager');
var core = require('web.core');
var data = require('web.data');
var Domain = require('web.Domain');
var favorites_submenus_registry = require('web.favorites_submenus_registry');
var pyUt... | t3dev/odoo | addons/google_spreadsheet/static/src/js/add_to_google_spreadsheet_menu.js | JavaScript | gpl-3.0 | 3,371 |
var CouchPotato = new Class({
Implements: [Events, Options],
defaults: {
page: 'home',
action: 'index',
params: {}
},
pages: [],
block: [],
initialize: function(){
var self = this;
self.global_events = {};
},
setup: function(options) {
var self = this;
self.setOptions(options);
self.c = ... | lebabouin/CouchPotatoServer-develop | couchpotato/static/scripts/couchpotato.js | JavaScript | gpl-3.0 | 12,670 |
/**
* @module
* @description
* Common directives shipped with Angular.
*/
import { CONST_EXPR } from './facade/lang';
import { NgClass } from './directives/ng_class';
import { NgFor } from './directives/ng_for';
import { NgIf } from './directives/ng_if';
import { NgStyle } from './directives/ng_style';
import { NgS... | NodeVision/NodeVision | node_modules/angular2/es6/prod/src/core/directives.js | JavaScript | gpl-3.0 | 2,022 |
/**
* Copyright (c) 2014, Oracle and/or its affiliates.
* All rights reserved.
*/
"use strict";var l={"SA":["SA","\u5357\u7F8E\u6D32"]};(this?this:window)['DvtBaseMapManager']['_UNPROCESSED_MAPS'][2].push(["southAmerica","continent",l]); | afsinka/jet_jsp | src/main/webapp/js/libs/oj/v1.1.2/resources/internal-deps/dvt/thematicMap/resourceBundles/SouthAmericaContinentBundle_zh_TW.js | JavaScript | lgpl-2.1 | 240 |
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://... | shapesecurity/shift-website | vendor/@polymer/polymer/polymer-element.js | JavaScript | apache-2.0 | 1,270 |
import Ember from 'ember';
export function addAction(action, selector) {
return function() {
if ( Ember.Component.detectInstance(this) )
{
this._super();
}
else
{
this.get('controller').send(action);
}
Ember.run.next(this, function() {
var matches = this.$(selector);
... | nrvale0/ui | app/utils/add-view-action.js | JavaScript | apache-2.0 | 469 |
/**
* Copyright 2018 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... | techhtml/amphtml | extensions/amp-subscriptions/0.1/test/test-platform-store.js | JavaScript | apache-2.0 | 25,782 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* If x is +0, Math.atan(x) is +0
*
* @path ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A2.js
* @description Checking if Math.atan(+0) equals to +0
*/
// CHECK#1
var x = +0;
if (Math.ata... | hippich/typescript | tests/Fidelity/test262/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A2.js | JavaScript | apache-2.0 | 388 |
class Foo {
constructor() {
this.a = 42;
this.b = 'hello';
this.emit('done');
}
}
| a1ph/puppeteer | utils/doclint/check_public_api/test/diff-properties/foo.js | JavaScript | apache-2.0 | 98 |
//>>built
define("dojox/xmpp/UserService",["dijit","dojo","dojox"],function(h,e,c){e.provide("dojox.xmpp.UserService");e.declare("dojox.xmpp.UserService",null,{constructor:function(a){this.session=a},getPersonalProfile:function(){var a={id:this.session.getNextIqId(),type:"get"},d=new c.string.Builder(c.xmpp.util.create... | aconyteds/Esri-Ozone-Map-Widget | vendor/js/esri/arcgis_js_api/library/3.12/3.12compact/dojox/xmpp/UserService.js | JavaScript | apache-2.0 | 2,217 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* Since applying the "call" method to Function constructor themself leads to creating a new function instance, the second argument must be a valid function body
*
* @path ch15/15.3... | hippich/typescript | tests/Fidelity/test262/suite/ch15/15.3/S15.3_A2_T1.js | JavaScript | apache-2.0 | 583 |
"use strict";
var _utils = require("./utils");
var _placeholders = require("./placeholders");
{
(0, _utils.default)("Noop", {
visitor: []
});
}
(0, _utils.default)("Placeholder", {
visitor: [],
builder: ["expectedNode", "name"],
fields: {
name: {
validate: (0, _utils.assertNodeType)("Identifi... | GoogleCloudPlatform/prometheus-engine | third_party/prometheus_ui/base/web/ui/react-app/node_modules/@babel/types/lib/definitions/misc.js | JavaScript | apache-2.0 | 596 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding-for-await/ary-ptrn-elision.case
// - src/dstr-binding-for-await/default/for-await-of-async-func-let.template
/*---
description: Elision advances iterator (for-await-of statement)
esid: sec-for-in-and-for-of-statements-runtime-sema... | sebastienros/jint | Jint.Tests.Test262/test/language/statements/for-await-of/async-func-dstr-let-ary-ptrn-elision.js | JavaScript | bsd-2-clause | 2,376 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @emails oncall+react_native
*/
'use strict';
jest.setMock('NativeModules', {
BlobModule: require('../__mocks__/BlobModul... | hoastoolshop/react-native | Libraries/Blob/__tests__/Blob-test.js | JavaScript | bsd-3-clause | 2,292 |
/*
* Copyright (c) 2011 Yahoo! Inc. All rights reserved.
*/
YUI.add('CM_NewsBinderIndex', function(Y, NAME) {
/**
* The CM_NewsBinderIndex module.
*
* @module CM_NewsBinderIndex
*/
/**
* Constructor for the Binder class.
*
* @param mojitProxy {Object} The proxy to allow the binder to interact... | 1950195/mojito | tests/func/applications/frameworkapp/common/mojits_subdir1/other_mojits/CM_News/binders/index.js | JavaScript | bsd-3-clause | 1,853 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
/**
* This script tests that React Native end to end installation/bootstrap works for different platforms
* Available a... | hoastoolshop/react-native | scripts/run-ci-e2e-tests.js | JavaScript | bsd-3-clause | 8,512 |
import { Observable } from 'rx';
import { ofType } from 'redux-epic';
import {
fetchMessagesComplete,
fetchMessagesError
} from './';
import { types as app } from '../../redux';
import { getJSON$ } from '../../../utils/ajax-stream.js';
export default function getMessagesEpic(actions) {
return actions::ofType(ap... | FreeCodeCampQuito/FreeCodeCamp | common/app/Flash/redux/get-messages-epic.js | JavaScript | bsd-3-clause | 492 |
import { defineProperty, deprecateProperty } from '..';
import { moduleFor, AbstractTestCase } from 'internal-test-helpers';
moduleFor(
'defineProperty',
class extends AbstractTestCase {
['@test toString'](assert) {
let obj = {};
defineProperty(obj, 'toString', undefined, function () {
retu... | sly7-7/ember.js | packages/@ember/-internals/metal/tests/properties_test.js | JavaScript | mit | 1,800 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | lmazuel/azure-sdk-for-node | lib/services/computeManagement2/lib/models/virtualMachineScaleSetExtensionProfile.js | JavaScript | mit | 1,647 |
// Copyright 2014 the V8 project authors. All rights reserved.
// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
// Flags: --allow-natives-syntax --harmony --harmony-proxies
var _source = "foo";
var arg1 = false;
%CompileString(_source, arg1);
| kingland/go-v8 | v8-3.28/test/mjsunit/runtime-gen/compilestring.js | JavaScript | mit | 262 |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
global... | mgechev/angular | packages/common/locales/global/en-KI.js | JavaScript | mit | 2,304 |
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
ext... | fabiencheylac/kolp | node_modules/ionic-angular/umd/components/spinner/spinner.js | JavaScript | mit | 13,071 |
export const a = 1;
export const b = 2;
export default 42;
| corneliusweig/rollup | test/form/samples/export-all-from-internal/internal.js | JavaScript | mit | 59 |
define([
'dojo/_base/declare', 'dojo/_base/lang', 'dojo/on', 'dojo/topic',
'dijit/popup', 'dijit/TooltipDialog',
'./IDMappingGrid', './GridContainer'
], function (
declare, lang, on, Topic,
popup, TooltipDialog,
IDMappingGrid, GridContainer
) {
return declare([GridContainer], {
gridCtor: IDMappingGri... | dmachi/p3_web | public/js/p3/widget/IDMappingGridContainer.js | JavaScript | mit | 976 |
(function(){
module('data-method', {
setup: function() {
$('#qunit-fixture').append($('<a />', {
href: '/echo', 'data-method': 'delete', text: 'destroy!'
}));
},
teardown: function() {
$(document).unbind('iframe:loaded');
}
});
function submit(fn, options) {
$(document).bind('iframe:loaded... | star-diopside/jquery-ujs | test/public/test/data-method.js | JavaScript | mit | 1,270 |
console.warn("warn -",`Imports like "const rarible = require('simple-icons/icons/rarible');" have been deprecated in v6.0.0 and will no longer work from v7.0.0, use "const { siRarible } = require('simple-icons/icons');" instead`),module.exports={title:"Rarible",slug:"rarible",get svg(){return'<svg role="img" viewBox="0... | cdnjs/cdnjs | ajax/libs/simple-icons/6.9.0/rarible.js | JavaScript | mit | 845 |
module.exports={A:{A:{"2":"J C G E B A UB"},B:{"2":"D Y g H L"},C:{"1":"3 m n o p q r s x","2":"0 1 4 5 SB y F I J C G E z u t QB PB","132":"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","164":"B A D Y g H"},D:{"1":"0 1 3 4 5 8 h i j k l m n o p q r s x z u t EB BB TB CB","2":"F I J C G E B A D Y g H L M N O P... | secatoriuris/vista-theme | themes/vista/node_modules/caniuse-lite/data/features/battery-status.js | JavaScript | gpl-2.0 | 793 |
colabsShortcodeMeta={
attributes:[
{
label:"Tabs",
id:"content",
controlType:"tab-control"
},
{
label:"Tabber Style",
id:"style",
help:"Set an optional alternate style for the tabber.",
controlType:"select-control",
selectValues:['default', 'boxed', 'vertical'],
defaultValue: 'defaul... | tiboucle/azimuthgallery | wp-content/themes/wardrobe/functions/js/shortcode-generator/shortcodes/tab.js | JavaScript | gpl-2.0 | 1,628 |
tinyMCE.addI18n('ps.modxlink',{
link_desc:"Insert/edit link"
}); | svyatoslavteterin/belton.by | core/packages/tinymce-4.3.3-pl/modPlugin/46c188883a90c37d912c8b5f16d2bdbd/0/tinymce/jscripts/tiny_mce/plugins/modxlink/langs/ps.js | JavaScript | gpl-2.0 | 68 |
EasyBlog.module( "featured" , function($) {
var module = this;
// require: start
EasyBlog.require()
.done(function(){
// controller: start
EasyBlog.Controller(
"Featured.Scroller",
{
defaultOptions: {
elements: null,
itemWidth: null,
// Auto rotate option
autorotate: {
enabled : false,
... | BetterBetterBetter/B3App | media/com_easyblog/scripts/featured.js | JavaScript | gpl-2.0 | 2,903 |
/**
* Copyright (c) 2011-2013 Fabien Cazenave, Mozilla.
*
* 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, mo... | thierry-bugeat/myFeeds | www/js/libs/l10n.js | JavaScript | gpl-3.0 | 34,656 |
function f() {
var i32 = new Int32Array(1);
var f32 = new Float32Array(i32.buffer);
for (var i = 0; i < 3; i++) {
var a0 = +1;
var a3 = +4;
i32[0] = a0;
var b0 = f32[0];
i32[0] = a3;
var b3 = f32[0];
assertEq(b0 != b3, true);
}
}
f();
| cstipkovic/spidermonkey-research | js/src/jit-test/tests/ion/bug1279898.js | JavaScript | mpl-2.0 | 312 |
/**
* Copyright (C) 2005-2016 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at ... | davidcognite/Aikau | aikau/src/main/resources/alfresco/preview/AlfDocumentPreviewPlugin.js | JavaScript | lgpl-3.0 | 5,033 |
/*
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | andreagenso/java2scala | test/J2s/java/openjdk-6-src-b27/jdk/src/share/classes/com/sun/tools/script/shell/init.js | JavaScript | apache-2.0 | 20,463 |
// Copyright 2017 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
var buffer = new ArrayBuffer(0x100);
var array = new Uint8Array(buffer).fill(55);
var tmp = {};
tmp[Symbol.toPrimitive]... | macchina-io/macchina.io | platform/JS/V8/v8/test/mjsunit/regress/regress-crbug-691323.js | JavaScript | apache-2.0 | 951 |
'use strict';
/**
* @ngdoc function
* @name openshiftConsole.controller:ImageController
* @description
* Controller of the openshiftConsole
*/
angular.module('openshiftConsole')
.controller('ImageController', function ($scope, $routeParams, DataService, ProjectsService, $filter, ImageStreamsService) {
$scop... | tmckayus/oshinko-rest | vendor/github.com/openshift/origin/assets/app/scripts/controllers/image.js | JavaScript | apache-2.0 | 2,257 |
(function() {
window.WallTime || (window.WallTime = {});
window.WallTime.data = {
rules: {"PRC":[{"name":"PRC","_from":"1986","_to":"only","type":"-","in":"May","on":"4","at":"0:00","_save":"1:00","letter":"D"},{"name":"PRC","_from":"1986","_to":"1991","type":"-","in":"Sep","on":"Sun>=11","at":"0:00","_... | SalesforceSFDC/aura | aura-resources/src/main/resources/aura/resources/walltime-js/olson/walltime-data_Asia-Chongqing.js | JavaScript | apache-2.0 | 826 |
"use strict";
var Metatags = require("lib/metatags/Metatags");
describe("Metatags", function() {
var metatags;
describe("instantiation", function() {
describe("when pairs are NOT provided", function() {
function instantiateMetatagsWithoutPairs() {
return new Metatags();... | sylnp0201/brisket | spec/client/metatags/MetatagsSpec.js | JavaScript | apache-2.0 | 2,630 |
const fs = require('fs');
const _ = require('lodash');
const cache = require('./state/cache');
const broadcast = cache.get('broadcast');
const apiKeysFile = __dirname + '/../SECRET-api-keys.json';
// on init:
const noApiKeysFile = !fs.existsSync(apiKeysFile);
if(noApiKeysFile)
fs.writeFileSync(
apiKeysFile,
... | WXLWEB/gekko | web/apiKeyManager.js | JavaScript | mit | 1,067 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var locale = {
placeholder: 'Zeit auswählen'
};
exports['default'] = locale;
module.exports = exports['default']; | yhx0634/foodshopfront | node_modules/antd/lib/time-picker/locale/de_DE.js | JavaScript | mit | 200 |
$(document).ready(function() {
$('#servicio_ingreso').select2({
width: '60%',
placeholder:'Seleccione...',
allowClear:true
});
$("#fecha_inicio").datepicker().mask("99-99-9999");
$("#fecha_fin").datepicker().mask("99-99-9999");
$("#emitir_informe").click(function() {
if... | jishisv/sipernes | web/bundles/minsalseguimiento/js/SecIngreso/reporte_list.js | JavaScript | mit | 2,150 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
/**
*
* Take a screenshot of the current viewport. To get the screenshot of the whole page
* use the action command `saveScreenshot`
*
* @returns {String} screenshot The screenshot as a base64 encoded PNG.
*
* @see https://w3c.git... | deep0892/jitendrachatbot | node_modules/webdriverio/build/lib/protocol/screenshot.js | JavaScript | mit | 586 |
/*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial
Software License Agreement provided with the Software or, alternatively, in accordance with th... | rch/flask-openshift | wsgi/container/pkgs/sencha/static/ext-4.2.2.1144/src/fx/Animator.js | JavaScript | mit | 13,072 |
function substr(str, start, len) {
// discuss at: http://phpjs.org/functions/substr/
// version: 909.322
// original by: Martijn Wieringa
// bugfixed by: T.Wild
// improved by: Onno Marsman
// improved by: Brett Zamir (http://brett-zamir.me)
// revised by: Theriault
// note: Handles rare Un... | grshane/monthofmud | web/themes/custom/mom/node_modules/phpjs/functions/strings/substr.js | JavaScript | mit | 4,106 |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
(function (factory) {
if (typeof module === 'object' && ty... | Spect-AR/Spect-AR | node_modules/node_modules/ionic-angular/umd/transitions/transition-ios.js | JavaScript | mit | 9,772 |
/* Copyright (c) 2006-2015 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the 2-clause BSD license.
* See license.txt in the OpenLayers distribution or repository for the
* full text of the license. */
/**
* @requires OpenLayers/Format/XML/VersionedOGC.js
*/
/**
* ... | usgin/NGDSDataExplorer | static/lib/ol2-master/lib/OpenLayers/Format/OWSCommon.js | JavaScript | mit | 2,414 |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'div', 'km', {
IdInputLabel: 'Id',
advisoryTitleInputLabel: 'ចំណងជើងប្រឹក្សា',
cssClassInputLabel: 'Stylesheet Classes',
edit: 'កែ Div',
inlineS... | braverokmc79/macaronics-spring-one | web04/src/main/webapp/WEB-INF/views/ckeditor/plugins/div/lang/km.js | JavaScript | epl-1.0 | 883 |
// Hungarian
// from Google Translate -- please help improve this translation
if (typeof FlexibleMap != "undefined") {
FlexibleMap.prototype.i18n["hu"] = {
"Click for details" : "Kattintson a részletekért",
"Directions" : "Térkép irányban",
"From" : "Indulás helye",
"Get directions" : "Térkép irányban"
};
... | mathewhtc/cats-old | wp-content/plugins/wp-flexible-map/i18n/hu.js | JavaScript | gpl-2.0 | 331 |
var nodeListTemplate = "<% _.each(nodes, function(name) { %> <li><%= nodes.name %></li> <% }); %>";
//<li><a href="#" class="list-link" data-slug='+nodes.slug+' >' + nodes.name + '</a></li> | PabloCastellano/nodeshot | nodeshot/ui/open311_demo/static/open311/js/templates.js | JavaScript | gpl-3.0 | 189 |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//--------------------------------... | SlateScience/MozillaJS | js/src/tests/js1_8_1/regress/regress-452498-192.js | JavaScript | mpl-2.0 | 884 |
if (getJitCompilerOptions()["ion.warmup.trigger"] > 20)
setJitCompilerOption("ion.warmup.trigger", 20);
function callRegExpTest(i) {
var s = "" + i;
var re = /(\d+)/;
re.test(s);
assertEq(RegExp.$1, s);
}
function callRegExpExec(i) {
var s = "" + i;
var re = /(\d+)/;
var res = re.exec(s)... | cstipkovic/spidermonkey-research | js/src/jit-test/tests/ion/bug1132128.js | JavaScript | mpl-2.0 | 600 |
define(
({
visible: "הצג מפת התמצאות כברירת מחדל",
minWidth: "רוחב מינימלי",
minHeight: "גובה מינימלי",
maxWidth: "אורך מקסימלי",
maxHeight: "גובה מקסימלי",
minText: "מינימום",
maxText: "מקסימום",
attachText: "ציין לאיזו פינה של המפה יש להצמיד וידג'ט זה.",
expandText: "הרחבה ראשו... | cob222/CPG | widgets/OverviewMap/setting/nls/he/strings.js | JavaScript | apache-2.0 | 648 |
//// [recursiveSpecializationOfSignatures.ts]
class S0<B, A> {
set S1(S2: S0<any,any>) {
}
constructor(public S17: S0<any, (S18) => A>) { }
}
//// [recursiveSpecializationOfSignatures.js]
var S0 = /** @class */ (function () {
function S0(S17) {
this.S17 = S17;
}
Object.defineProperty(S0.pr... | weswigham/TypeScript | tests/baselines/reference/recursiveSpecializationOfSignatures.js | JavaScript | apache-2.0 | 467 |