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 |
|---|---|---|---|---|---|
/**
* @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... | wKoza/angular | packages/common/locales/global/en-BE.js | JavaScript | mit | 2,279 |
/**
* 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.
*/
'use strict';
const minimist = require('minimist');
const runESLint = require('../eslint');
console.log('Linting changed files..... | cpojer/react | scripts/tasks/linc.js | JavaScript | mit | 559 |
/*!
* ScrollMagic v2.0.6 (2018-10-08)
* The javascript library for magical scroll interactions.
* (c) 2018 Jan Paepke (@janpaepke)
* Project Website: http://scrollmagic.io
*
* @version 2.0.6
* @license Dual licensed under MIT license and GPL.
* @author Jan Paepke - e-mail@janpaepke.de
*
* @file ScrollMagic V... | jonobr1/cdnjs | ajax/libs/ScrollMagic/2.0.6/plugins/animation.velocity.js | JavaScript | mit | 7,678 |
'use strict'
var chai = require('chai')
var expect = chai.expect
var helper = require('../../lib/agent_helper')
var ParsedStatement = require('../../../lib/db/parsed-statement')
var Transaction = require('../../../lib/transaction')
function makeSegment(options) {
var segment = options.transaction.trace.root.add('M... | allspiritseve/mindlikewater | node_modules/newrelic/test/unit/metrics-recorder/mongodb.test.js | JavaScript | mit | 5,306 |
/*
#########################################################################
#
# Copyright (C) 2019 OSGeo
#
# This program 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
# ... | francbartoli/geonode | geonode/monitoring/frontend/monitoring/src/components/cels/uptime/index.js | JavaScript | gpl-3.0 | 2,298 |
/*
#########################################################################
#
# Copyright (C) 2019 OSGeo
#
# This program 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
# ... | tomkralidis/geonode | geonode/monitoring/frontend/monitoring/src/components/cels/ws-data/reducers.js | JavaScript | gpl-3.0 | 1,070 |
var group__dac__mamp2 =
[
[ "DAC_CR_MAMP2_1", "group__dac__mamp2.html#ga860032e8196838cd36a655c1749139d6", null ],
[ "DAC_CR_MAMP2_10", "group__dac__mamp2.html#ga15719bc54b9efc94588278ab66b083ee", null ],
[ "DAC_CR_MAMP2_11", "group__dac__mamp2.html#gad275a996c8d74c10e9b50391149f2a0a", null ],
[ "DAC_CR... | Aghosh993/TARS_codebase | libopencm3/doc/stm32l1/html/group__dac__mamp2.js | JavaScript | gpl-3.0 | 1,146 |
class foo extends null {
constructor() {
// If you return an object, we don't care that |this| went
// uninitialized
return {};
}
}
for (let i = 0; i < 1100; i++)
new foo();
if (typeof reportCompare === 'function')
reportCompare(0,0,"OK");
| cstipkovic/spidermonkey-research | js/src/tests/ecma_6/Class/derivedConstructorTDZReturnObject.js | JavaScript | mpl-2.0 | 282 |
var net = require('net'),
tls = require('tls'),
util = require('util'),
dns = require('dns'),
_ = require('lodash'),
winston = require('winston'),
EventBinder = require('./eventbinder.js'),
IrcServer = require('./... | spadgos/KiwiIRC | server/irc/connection.js | JavaScript | agpl-3.0 | 23,138 |
module.exports = {
AddressComponents: require('./address-components'),
Campaign: require('./campaign'),
CanonicalAddress: require('./canonical-address'),
CaptchaSolution: require('./captcha-solution'),
Error: require('./error'),
FormElement: require('./form-element'),
Legislator: require('./legislator'),
... | beni55/democracy.io | models/index.js | JavaScript | agpl-3.0 | 616 |
/**
* @license
* Copyright 2015 Google Inc.
*
* 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 ... | sanbornhnewyyz/shaka-player | lib/media/stream_info_processor.js | JavaScript | apache-2.0 | 3,848 |
{
"global" : {
"save" : "Mentés",
"cancel" : "Mégsem",
"delete" : "Törlés",
"required" : "Szükséges",
"download" : "Letöltés",
"link" : "Link",
"bookmark" : "Könyvjelző",
"close" : "Bezár",
"tags" : "Címkék"
},
"tree" : {
"subscribe" : "Feliratkozás",
"imp... | syshk/commafeed | src/main/app/i18n/hu.js | JavaScript | apache-2.0 | 8,164 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | ilantukh/ignite | modules/web-console/frontend/app/components/user-notifications/service.js | JavaScript | apache-2.0 | 2,506 |
/*
* L.Handler.ShiftDragZoom is used to add shift-drag zoom interaction to the map
* (zoom to a selected bounding box), enabled by default.
*/
L.Map.mergeOptions({
boxZoom: true
});
L.Map.BoxZoom = L.Handler.extend({
initialize: function (map) {
this._map = map;
this._container = map._container;
this._pan... | Mark-Wood/Leaflet | src/map/handler/Map.BoxZoom.js | JavaScript | bsd-2-clause | 2,498 |
/**
* 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... | jquense/react | src/renderers/shared/stack/reconciler/ReactCompositeComponent.js | JavaScript | bsd-3-clause | 39,777 |
// @flow
// $ExpectError: No negative tests here
const skipNegativeTest: string = true;
var inquirer = require('inquirer');
var questions = [
{
type: 'confirm',
name: 'bacon',
message: 'Do you like bacon?'
},
{
type: 'input',
name: 'favorite',
message: 'Bacon lover, what is your favorit... | echenley/flow-typed | definitions/npm/inquirer_v2.x.x/test_when_v2.x.x.js | JavaScript | mit | 926 |
/*! Raven.js 3.25.0 (80dffad) | github.com/getsentry/raven-js */
/*
* Includes TraceKit
* https://github.com/getsentry/TraceKit
*
* Copyright 2018 Matt Robenolt and other contributors
* Released under the BSD license
* https://github.com/getsentry/raven-js/blob/master/LICENSE
*
*/
(function(f){if(typeof expor... | joeyparrish/cdnjs | ajax/libs/raven.js/3.25.0/console,ember,require,vue/raven.js | JavaScript | mit | 124,023 |
import { __decorate, __extends } from 'tslib';
import { RuntimeConfig, Util, beta, mergeHeaders } from '@pnp/common';
import { BlobFileParser, BufferFileParser, ODataBatch, ODataQueryable, PipelineMethods } from '@pnp/odata';
import { LogLevel, Logger } from '@pnp/logging';
var NoGraphClientAvailableException = /** @c... | joeyparrish/cdnjs | ajax/libs/pnp-graph/1.0.0-beta.3/graph.es5.js | JavaScript | mit | 43,547 |
/**
@license
* @pnp/odata v1.0.3 - pnp - provides shared odata functionality and base classes
* MIT (https://github.com/pnp/pnp/blob/master/LICENSE)
* Copyright (c) 2018 Microsoft
* docs: http://officedev.github.io/PnP-JS-Core
* source: https://github.com/pnp/pnp
* bugs: https://github.com/pnp/pnp/issues
*/
impo... | joeyparrish/cdnjs | ajax/libs/pnp-odata/1.0.3/odata.es5.js | JavaScript | mit | 24,930 |
/* ***** 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 sou... | sqlviz/sqlviz | website/static/django_ace/ace/mode-plain_text.js | JavaScript | mit | 2,481 |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v17.1.1
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __prot... | seogi1004/cdnjs | ajax/libs/ag-grid/17.1.1/lib/rendering/cellEditors/popupSelectCellEditor.js | JavaScript | mit | 1,238 |
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { chainPropTypes, deepmerge } from '@material-ui/utils';
imp... | cdnjs/cdnjs | ajax/libs/material-ui/5.0.0-alpha.31/modern/IconButton/IconButton.js | JavaScript | mit | 7,512 |
define(
//begin v1.x content
{
"field-tue-relative+-1": "el martes pasado",
"field-year": "año",
"dateFormatItem-Hm": "HH:mm",
"field-wed-relative+0": "este miércoles",
"field-wed-relative+1": "el próximo miércoles",
"dateFormatItem-ms": "mm:ss",
"field-minute": "minuto",
"field-month-narrow-relative+-1": "el m... | cdnjs/cdnjs | ajax/libs/dojo/1.17.1/cldr/nls/es/generic.js | JavaScript | mit | 8,699 |
define(
//begin v1.x content
{
"field-quarter-short-relative+0": "هذا الربع",
"field-quarter-short-relative+1": "الربع القادم",
"field-tue-relative+-1": "الثلاثاء الماضي",
"field-year": "السنة",
"field-wed-relative+0": "الأربعاء الحالي",
"field-wed-relative+1": "الأربعاء القادم",
"field-minute": "الدقائق",
"fie... | cdnjs/cdnjs | ajax/libs/dojo/1.17.1/cldr/nls/ar/japanese.js | JavaScript | mit | 11,877 |
/* ========================================================================
* DOM-based Routing
* Based on http://goo.gl/EUTi53 by Paul Irish
*
* Only fires on body classes that match. If a body class contains a dash,
* replace the dash with an underscore when adding it to the object below.
* ====================... | ajency/ascot-theme | wp-content/themes/shoestrap-3/assets/js/_main.js | JavaScript | gpl-2.0 | 1,224 |
define('app/routes/missing', ['ember'],
//
// Missing Route
//
// @returns Class
//
function () {
'use strict';
return App.MissingRoute = Ember.Route.extend({
documentTitle: 'mist.io - 404'
});
}
);
| DimensionDataCBUSydney/mist.io | src/mist/io/static/js/app/routes/missing.js | JavaScript | agpl-3.0 | 269 |
var SelectorTable = {
canReturnMultipleRecords: function () {
return true;
},
canHaveChildSelectors: function () {
return false;
},
canHaveLocalChildSelectors: function () {
return false;
},
canCreateNewJobs: function () {
return false;
},
willReturnElements: function () {
return false;
},
getT... | kurtjcu/web-scraper-chrome-extension | extensionTest/scripts/Selector/SelectorTable.js | JavaScript | lgpl-3.0 | 4,123 |
/* Uncaught exception
* Output: None */
function throwsException() {
throw new Error();
}
try {
throwsException();
}
catch (e) { }
| qhanam/Pangor | js/test/input/error_handling/eh_fp_old.js | JavaScript | apache-2.0 | 137 |
/* The contents of this file are subject to the Netscape Public License
* Version 1.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.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS"
*... | frivoal/presto-testo | core/standards/scripts/jstest-futhark/es-regression/imported-netscape/ecma/Date/15.9.5.13-3.js | JavaScript | bsd-3-clause | 2,280 |
// 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 ... | youtube/cobalt | third_party/v8/test/mjsunit/regress/regress-1351.js | JavaScript | bsd-3-clause | 1,896 |
// Copyright 2020 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.
import {assert} from 'chrome://resources/js/assert.m.js';
import {PromiseResolver} from 'chrome://resources/js/promise_resolver.m.js';
/**
* @fileovervi... | ric2b/Vivaldi-browser | chromium/ash/webui/common/resources/fake_method_resolver.js | JavaScript | bsd-3-clause | 2,819 |
version https://git-lfs.github.com/spec/v1
oid sha256:d988541e8ab30a2c074bc3c21478e898956b216d6ac33c9eda9dda5bc79345c3
size 927
| yogeshsaroya/new-cdnjs | ajax/libs/dojo/1.8.9/cldr/nls/th/currency.js | JavaScript | mit | 128 |
'use strict';
const AddonInstallTask = require('../../../lib/tasks/addon-install');
const expect = require('chai').expect;
const CoreObject = require('core-object');
const MockUi = require('console-ui/mock');
describe('addon install task', function () {
let ui;
let project;
beforeEach(function () {
ui = ne... | ember-cli/ember-cli | tests/unit/tasks/addon-install-test.js | JavaScript | mit | 3,014 |
/*
* Copyright (c) 2012 Mathieu Turcotte
* Licensed under the MIT license.
*/
var sinon = require('sinon'),
util = require('util');
var BackoffStrategy = require('../lib/strategy/strategy');
function SampleBackoffStrategy(options) {
BackoffStrategy.call(this, options);
}
util.inherits(SampleBackoffStrateg... | githubUser919/ps-npm-as-a-build-tool | node_modules/live-reload/node_modules/reconnect/node_modules/backoff/tests/backoff_strategy.js | JavaScript | mit | 2,945 |
/**
All non-API related routes (e.g. route to Angular app).
*/
'use strict';
var express = require('express');
var app = module.exports = express();
module.exports = function(cfg){
var routes = {
index: function(req, res){
// check if last part of URL is a file reference by check if it contai... | notorii/generator-mean-seed | core-default-node/templates/app/routes/index.js | JavaScript | mit | 1,057 |
//ImageGallery2 Constructor
kony.ui.ImageGallery2 = function(bconfig, lconfig, pspconfig) {
if(arguments.length < 3)
bconfig = lconfig = pspconfig = $KU.mergeDefaults(bconfig, $KU.getAllDefaults("ImageGallery2"));
kony.ui.ImageGallery2.baseConstructor.call(this, bconfig, lconfig, pspconfig);
this.imageWhil... | backslash-f/paintcode-kony | Kony/webapps/KonyPaintCode/spawinphone8/jslib/konyJSLib/ui/konyuiImageGallery.js | JavaScript | mit | 4,446 |
/**
* @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
((customElements) => {
'use strict';
const KEYCODE = {
SPACE: 32,
ESC: 27,
ENTER: 13,
};
/**
* Helper for testing whether a selection... | richard67/joomla-cms | build/media_source/system/js/fields/joomla-field-subform.w-c.es6.js | JavaScript | gpl-2.0 | 18,121 |
/* Copyright (c) 2006-2008 MetaCarta, Inc., published under the Clear BSD
* license. See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/Util.js
*/
/**
* Namespace: OpenLayers.Event
* Utility functions for event handling.
*/
OpenLayers.... | guolivar/totus-niwa | web/js/libs/openlayers/lib/OpenLayers/Events.js | JavaScript | gpl-3.0 | 26,459 |
/**
* UI/Components/PetInformations/PetInformations.js
*
* Display pet informations
*
* This file is part of ROBrowser, Ragnarok Online in the Web Browser (http://www.robrowser.com/).
*
* @author Vincent Thibault
*/
define(function(require)
{
'use strict';
/**
* Dependencies
*/
var DB ... | kontownik/roBrowser | src/UI/Components/PetInformations/PetInformations.js | JavaScript | gpl-3.0 | 4,771 |
import { OpaqueToken } from '@angular/core';
import { isArray, isBlank, isPresent } from '../util/util';
/**
* @hidden
*/
var UrlSerializer = (function () {
/**
* @param {?} _app
* @param {?} config
*/
function UrlSerializer(_app, config) {
this._app = _app;
if (config && isArra... | raisinbit/RaisinLearning | node_modules/ionic-angular/navigation/url-serializer.js | JavaScript | gpl-3.0 | 21,150 |
var attribution = new ol.Attribution({
html: 'Copyright:© 2013 ESRI, i-cubed, GeoEye'
});
var projection = ol.proj.get('EPSG:4326');
var projectionExtent = projection.getExtent();
// The tile size supported by the ArcGIS tile service.
var tileSize = 512;
// Calculate the resolutions supported by the ArcGIS ti... | MilletPu/airvis | src/main/webapp/js/ol3/v3.1.1/examples/xyz-esri-4326-512.js | JavaScript | agpl-3.0 | 2,004 |
/*
* Ze importer.
*
* == Dependencies ==
* * jQuery <http://jquery.com>
* * the jQuery Form Plugin <http://malsup.com/jquery/form/#code-samples>
*
* == The order of things ==
*
* 1. User enters an identifier (username or email address)
* into an input field.
*
* 2. When the user exits the input ... | nirmeshk/oh-mainline | mysite/static/js/importer.js | JavaScript | agpl-3.0 | 41,965 |
/*
Copyright 2008-2015 Clipperz Srl
This file is part of Clipperz, the online password manager.
For further information about its features and functionalities please
refer to http://www.clipperz.com.
* Clipperz is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Pub... | gcsolaroli/password-manager | frontend/gamma/js/Clipperz/PM/UI/Common/Components/SimpleMessagePanel.js | JavaScript | agpl-3.0 | 8,697 |
import { ListWrapper, StringMapWrapper } from '../facade/collection';
import { BaseException } from '../facade/exceptions';
import { NumberWrapper, RegExpWrapper, isPresent } from '../facade/lang';
import { HtmlAttrAst, HtmlElementAst, HtmlTextAst, htmlVisitAll } from '../html_ast';
import { HtmlParseTreeResult } from ... | evandor/skysail-webconsole | webconsole.client/client/dist/lib/@angular/compiler/esm/src/i18n/i18n_html_parser.js | JavaScript | apache-2.0 | 11,582 |
/* =========================================================
* bootstrap-datepicker.js
* Repo: https://github.com/eternicode/bootstrap-datepicker/
* Demo: http://eternicode.github.io/bootstrap-datepicker/
* Docs: http://bootstrap-datepicker.readthedocs.org/
* Forked from http://www.eyecon.ro/bootstrap-datepicker
... | shuoguoa/fastadmin | Public/qwadmin/js/date-time/bootstrap-datepicker.js | JavaScript | apache-2.0 | 47,484 |
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:output:pages');
const mapper = require('./utils/mapper');
module.exports = {
all(models, apiConfig, frame) {
debug('all');
// CASE: e.g. destroy returns null
if (!models) {
return;
}
if (mo... | dingotiles/ghost-for-cloudfoundry | versions/3.3.0/core/server/api/v2/utils/serializers/output/pages.js | JavaScript | mit | 622 |
var config = require('../config');
if (typeof ot === 'undefined') {
var ot = {};
}
ot.Server = (function (global) {
'use strict';
// Constructor. Takes the current document as a string and optionally the array
// of all operations.
function Server (document, operations) {
this.document = document;
... | xnum/hackmd | lib/ot/server.js | JavaScript | mit | 1,675 |
Ext.define('ExtThemeNeptune.Component', {
override: 'Ext.Component',
initComponent: function() {
this.callParent();
if (this.dock && this.border === undefined) {
this.border = false;
}
},
privates: {
initStyles: function () {
var me = this,
... | ybbkd2/publicweb | web/ext/packages/ext-theme-neptune-touch/build/ext-theme-neptune-touch-debug.js | JavaScript | gpl-2.0 | 12,553 |
var searchData=
[
['queue_2ec',['queue.c',['../queue_8c.html',1,'']]],
['queue_2eh',['queue.h',['../queue_8h.html',1,'']]]
];
| eduardocrn/tp1HellFireOs | usr/doc/doxygen/html/search/files_71.js | JavaScript | gpl-2.0 | 130 |
define(['app'], function (app) {
app.controller('FloorplanController', ['$scope', '$rootScope', '$location', '$window', '$http', '$interval', '$timeout', '$compile', 'permissions', function ($scope, $rootScope, $location, $window, $http, $interval, $timeout, $compile, permissions) {
$scope.debug = 0;
$scope.floor... | jjalling/domoticz | www/app/FloorplanController.js | JavaScript | gpl-3.0 | 23,614 |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'justify', 'zh-cn', {
block: '两端对齐',
center: '居中',
left: '左对齐',
right: '右对齐'
} );
| gmuro/dolibarr | htdocs/includes/ckeditor/ckeditor/_source/plugins/justify/lang/zh-cn.js | JavaScript | gpl-3.0 | 279 |
// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.
// OffscreenCanvas test in a worker:2d.shadow.attributes.shadowBlur.initial
// Description:
// Note:
importScripts("/resources/testharness.js");
importScripts("/html/canvas/resources/canvas-tests.js");
var t = async_test("");
var t_pass = ... | scheib/chromium | third_party/blink/web_tests/external/wpt/html/canvas/offscreen/shadows/2d.shadow.attributes.shadowBlur.initial.worker.js | JavaScript | bsd-3-clause | 598 |
(function($) {
"use strict"; // Start of use strict
// jQuery for page scrolling feature - requires jQuery Easing plugin
$(document).on('click', 'a.page-scroll', function(event) {
var $anchor = $(this);
$('html, body').stop().animate({
scrollTop: ($($anchor.attr('href')).offset(... | GCebria/AulaEspill2.0 | js/creative.js | JavaScript | mit | 1,937 |
'use strict';
var levels = require('../levels');
var times = require('../times');
var calcData = require('../data/calcdelta');
var ObjectID = require('mongodb').ObjectID;
function init (env, ctx, server) {
function websocket ( ) {
return websocket;
}
//var log_yellow = '\x1B[33m';
var log_green = '\x1B[... | simigit/cgm-remote-monitor | lib/server/websocket.js | JavaScript | agpl-3.0 | 17,691 |
/*
* Copyright 2015 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... | GoogleChromeLabs/chromeos_smart_card_connector | third_party/closure-compiler/src/contrib/externs/jasmine-angular.js | JavaScript | apache-2.0 | 1,196 |
/**
* @license
* Copyright The Closure Library Authors.
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview A utility to write alltests.js for Closure Library.
*/
const {promises: fs} = require('fs');
const CLOSURE_PATH = 'closure/goog';
const THIRD_PARTY_PATH = 'third_party/closure/goog';
const HEAD... | scheib/chromium | third_party/google-closure-library/scripts/generate_alltests_js.js | JavaScript | bsd-3-clause | 2,287 |
/**
* @license
* Copyright 2018 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
... | scheib/chromium | third_party/google-closure-library/closure-deps/lib/parser.js | JavaScript | bsd-3-clause | 9,011 |
'use strict';
exports.__esModule = true;
exports.locationShape = exports.routerShape = undefined;
var _propTypes = require('prop-types');
var routerShape = exports.routerShape = (0, _propTypes.shape)({
push: _propTypes.func.isRequired,
replace: _propTypes.func.isRequired,
go: _propTypes.func.isRequired,
goBa... | NickingMeSpace/questionnaire | node_modules/react-router/lib/PropTypes.js | JavaScript | mit | 732 |
var gulp = require('gulp');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var uglify = require('gulp-uglify');
var fname = process.cwd().match(/cocotte-(.*)$/)[1];
gulp.task('build', function () {
browserify('lib/' + fname + '.js')
.bu... | yukik/cocotte-flow | gulpfile.js | JavaScript | mit | 585 |
import { tryInvoke } from 'ember-metal/utils';
var obj;
QUnit.module("Ember.tryInvoke", {
setup() {
obj = {
aMethodThatExists() { return true; },
aMethodThatTakesArguments(arg1, arg2) { return arg1 === arg2; }
};
},
teardown() {
obj = undefined;
}
});
QUnit.test("should return undefi... | mitchlloyd/ember.js | packages/ember-metal/tests/utils/try_invoke_test.js | JavaScript | mit | 1,025 |
/*!
* Copyright 2002 - 2015 Webdetails, a Pentaho company. All rights reserved.
*
* This software was developed by Webdetails and is provided under the terms
* of the Mozilla Public License, Version 2.0, or any later version. You may not use
* this file except in compliance with the license. If you need a copy of ... | SteveSchafer-Innovent/innovent-pentaho-birt-plugin | js-lib/expanded/cdf/js/lib/simile/timeline/scripts/l10n/cs/timeline.js | JavaScript | epl-1.0 | 876 |
'use strict';
var TestRunner = require('test-runner');
var cliArgs = require('../../');
var a = require('core-assert');
var runner = new TestRunner();
runner.test('defaultOption: string', function () {
var optionDefinitions = [{ name: 'files', defaultOption: true }];
var argv = ['file1', 'file2'];
a.deepStrict... | mrkmvd/Agent21 | src/node_modules/command-line-args/es5/test/default-option.js | JavaScript | apache-2.0 | 2,025 |
var render = function (theme, data, meta, require) {
if(data.error.length == 0 ){
theme('index', {
config: [{
context: {
gadgetsUrlBase: data.config.gadgetsUrlBase
}
}],
title: [{
context:{
... | jsdjayanga/as_bam_dashboard | themes/theme0/renderers/location.js | JavaScript | apache-2.0 | 2,282 |
define([
"jQuery",
"utils/storage",
"utils/sharing",
"utils/dropdown",
"core/events",
"core/font-settings",
"core/state",
"core/keyboard",
"core/navigation",
"core/progress",
"core/sidebar",
"core/search",
"core/glossary"
], function($, storage, sharing, dropdown, ev... | bjlxj2008/gitbook | theme/javascript/gitbook.js | JavaScript | apache-2.0 | 1,074 |
(function($)
{
$.Redactor.prototype.table = function()
{
return {
getTemplate: function()
{
return String()
+ '<section id="redactor-modal-table-insert">'
+ '<label>' + this.lang.get('rows') + '</label>'
+ '<input type="text" size="5" value="2" id="redactor-table-rows" />'
+ '<label>' +... | u4aew/tdtaliru | vendor/yiiext/imperavi-redactor-widget/assets/plugins/table/table.js | JavaScript | bsd-3-clause | 11,066 |
// namespace for dataset sources
// API for sources is
//
// dw.datasource.delimited(opts).dataset();
//
dw.datasource = {};
| datafunk/datawrapper | dw.js/src/dw.datasource.js | JavaScript | mit | 127 |
function shouldMatchTokens(result, tokens) {
for (var index = 0; index < result.length; index++) {
equals(result[index].name, tokens[index]);
}
}
function shouldBeToken(result, name, text) {
equals(result.name, name);
equals(result.text, text);
}
describe('Tokenizer', function() {
if (!Handlebars.Parser)... | jackhummah/bootles | vendor/handlebars/handlebars.js-4.0.10/spec/tokenizer.js | JavaScript | mit | 18,167 |
/* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [ "util/lang", "./logo-spinner", "./resizeHandler", "./toggler", "localized",
"text... | cadecairos/popcorn.webmaker.org | public/src/ui/tray.js | JavaScript | mit | 5,718 |
var class_mix_e_r_p_1_1_net_1_1_schemas_1_1_core_1_1_data_1_1_get_account_id_by_party_type_id_procedure =
[
[ "GetAccountIdByPartyTypeIdProcedure", "class_mix_e_r_p_1_1_net_1_1_schemas_1_1_core_1_1_data_1_1_get_account_id_by_party_type_id_procedure.html#a176b5c6e8a45127d46ae14330b6574df", null ],
[ "GetAccountI... | mixerp6/mixerp | docs/api/class_mix_e_r_p_1_1_net_1_1_schemas_1_1_core_1_1_data_1_1_get_account_id_by_party_type_id_procedure.js | JavaScript | gpl-2.0 | 1,682 |
/* eslint-env mocha */
import expect from 'expect';
import JSXAttributeMock from '../../../../__mocks__/JSXAttributeMock';
import getImplicitRoleForMenu from '../../../../src/util/implicitRoles/menu';
describe('isAbstractRole', () => {
it('works for toolbars', () => {
expect(getImplicitRoleForMenu([JSXAttributeM... | BigBoss424/portfolio | v8/development/node_modules/eslint-plugin-jsx-a11y/__tests__/src/util/implicitRoles/menu-test.js | JavaScript | apache-2.0 | 495 |
(function (enyo, scope) {
/**
* {@link enyo.ContextualLayout} provides the base positioning logic for a contextual
* layout strategy. This layout strategy is intended for use with a popup in a
* decorator/activator scenario, in which the popup is positioned relative to
* the activator, e.g.:
*
... | Herrie82/org.webosports.app.settings | lib/layout/contextual/source/ContextualLayout.js | JavaScript | apache-2.0 | 24,159 |
$(function() { alert("Hello.2"); });
| LeArNalytics/LeArNalytics | vendor/cache/gems/sinatra-assetpack-0.3.3/test/app/app/js/hello.2.js | JavaScript | mit | 37 |
/*
SystemJS map support
Provides map configuration through
System.map['jquery'] = 'some/module/map'
As well as contextual map config through
System.map['bootstrap'] = {
jquery: 'some/module/map2'
}
Note that this applies for subpaths, just like RequireJS
jquery -> 'some/module/map... | AbdulBasitBashir/learn-angular2 | step9_gulp_router/node_modules/systemjs/lib/extension-map.js | JavaScript | mit | 4,078 |
(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["Hls"] = factory();
else
root["Hls"] = f... | joeyparrish/cdnjs | ajax/libs/hls.js/0.8.5/hls.light.js | JavaScript | mit | 454,278 |
/* =============================================================
* bootstrap-typeahead.js v2.0.4
* http://twitter.github.com/bootstrap/javascript.html#typeahead
* =============================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "L... | FlixMaster/mwEmbed | docs/bootstrap/docs/assets/js/bootstrap-typeahead.js | JavaScript | agpl-3.0 | 7,004 |
// Copyright 2008 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... | pulkitsinghal/selenium | third_party/closure/goog/debug/devcss/devcss.js | JavaScript | apache-2.0 | 14,953 |
JSIL.loadGlobalScript = function (uri, onComplete, dllName) {
var anchor = document.createElement("a");
anchor.href = uri;
var absoluteUri = anchor.href;
var done = false;
var body = document.getElementsByTagName("body")[0];
var scriptTag = document.createElement("script");
JSIL.Browser.RegisterOneSho... | Durwella/TryJSIL | packages/JSIL/Libraries/JSIL.Browser.Loaders.js | JavaScript | mit | 15,244 |
/* global require,module */
'use strict';
var utils = require('./utils');
var Resource = require('./resource');
var CssParser = require('./css-parser');
var HtmlParser = require('./html-parser');
var Promise = require('./promise');
var push = Array.prototype.push;
function Spider (htmlFiles, options) {
opt... | hongtao008/font-spider | src/spider/index.js | JavaScript | mit | 7,676 |
<!-- //HORA
var popUpWin=0;
function popUpWindow(URLStr, yes, left, top, width, height){
if(popUpWin){
if(!popUpWin.closed)
popUpWin.close();
}
popUpWin = open(URLStr, 'popUpWin', 'resizable=no,scrollbars='+yes+',menubar=no,toolbar=no,status=no,location=no,titlebar=no,directories=no", width='+wi... | jairolh/hermes | funcion/ventana.js | JavaScript | gpl-2.0 | 416 |
var here = require('kcd-common-tools/utils/here');
module.exports = {
output: { library: 'ngFormlyTemplatesBootstrap' },
externals: {
angular: 'angular',
'angular-formly': {
root: 'ngFormly',
amd: 'angular-formly',
commonjs2: 'angular-formly',
commonjs: 'angular-formly'
},
'... | hubz00/PlanPlanet | src/main/resources/static/node_modules/angular-formly-templates-bootstrap/scripts/webpack-overrides.js | JavaScript | apache-2.0 | 535 |
//// [sourceMap-FileWithComments.ts]
// Interface
interface IPoint {
getDist(): number;
}
// Module
module Shapes {
// Class
export class Point implements IPoint {
// Constructor
constructor(public x: number, public y: number) { }
// Instance member
getDist() { return Mat... | basarat/TypeScript | tests/baselines/reference/sourceMap-FileWithComments.js | JavaScript | apache-2.0 | 1,587 |
/*
*
* 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/lib/server/proxy.js | JavaScript | apache-2.0 | 6,090 |
// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.
// OffscreenCanvas test in a worker:2d.path.roundrect.3.radii.2.dompoint
// Description:Verify that when three radii are given to roundRect(), the second radius, specified as a DOMPoint, applies to the top-right and bottom-left corners.
// N... | chromium/chromium | third_party/blink/web_tests/external/wpt/html/canvas/offscreen/path-objects/2d.path.roundrect.3.radii.2.dompoint.worker.js | JavaScript | bsd-3-clause | 1,677 |
var inputNumber = document.getElementById('input-number');
html5Slider.noUiSlider.on('update', function( values, handle ) {
var value = values[handle];
if ( handle ) {
inputNumber.value = value;
} else {
select.value = Math.round(value);
}
});
select.addEventListener('change', function(){
html5Slider.noUiS... | atlefren/beerdatabase | web/static/js/lib/nouislider/documentation/examples/html5-link.js | JavaScript | mit | 460 |
/*
* Copyright (c) 2015 Memorial Sloan-Kettering Cancer Center.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS
* FOR A PARTICULAR PURPOSE. The software and documentation provided hereunder
* is on an "... | bihealth/cbioportal | portal/src/main/webapp/js/src/patient-view/AlleleFreqPlot.js | JavaScript | agpl-3.0 | 24,058 |
kWidget.addReadyCallback( function( playerId ){
var kdp = document.getElementById( playerId );
/**
* The main chaptersEdit object:
*/
var chaptersEdit = function(kdp){
return this.init(kdp);
}
chaptersEdit.prototype = {
// the left offset of the cuepoint
leftOffset: 20,
// flag to control seeking o... | alexmilk/mwEmbed | kWidget/onPagePlugins/chapters/chaptersEdit.js | JavaScript | agpl-3.0 | 13,308 |
/*
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* permission ... | simkli/shopware | themes/Backend/ExtJs/backend/base/component/element/color.js | JavaScript | agpl-3.0 | 4,156 |
// fix Promise Problem on JSContext of iOS7~8
// @see https://bugs.webkit.org/show_bug.cgi?id=135866
const { WXEnvironment } = global
/* istanbul ignore next */
if (WXEnvironment && WXEnvironment.platform === 'iOS') {
global.Promise = undefined
}
| Neeeo/incubator-weex | html5/shared/promise.js | JavaScript | apache-2.0 | 250 |
import React from 'react';
import RefreshIndicator from 'material-ui/RefreshIndicator';
const style = {
container: {
position: 'relative',
},
refresh: {
display: 'inline-block',
position: 'relative',
},
};
const RefreshIndicatorExampleSimple = () => (
<div style={style.container}>
<RefreshIn... | pomerantsev/material-ui | docs/src/app/components/pages/components/RefreshIndicator/ExampleReady.js | JavaScript | mit | 1,026 |
/**
* Utility class for setting/reading values from browser cookies.
* Values can be written using the {@link #set} method.
* Values can be read using the {@link #get} method.
* A cookie can be invalidated on the client machine using the {@link #clear} method.
*/
Ext.define('Ext.util.Cookies', {
singleton: tru... | applifireAlgo/ZenClubApp | zenws/src/main/webapp/ext/src/util/Cookies.js | JavaScript | gpl-3.0 | 4,150 |
describe('$mdToast service', function() {
beforeEach(module('material.components.toast'));
beforeEach(function () {
module(function ($provide) {
$provide.value('$mdMedia', function () {
return true;
});
});
});
afterEach(inject(function($material) {
$material.flushOutstandingA... | HiOA-ABI/nikita-noark5-core | web/dependencies/external/angular-material/src/components/toast/toast.spec.js | JavaScript | agpl-3.0 | 13,836 |
/*******************************************************
* task service implementation
* internal JSON representor format (server)
* May 2015
* Mike Amundsen (@mamund)
* Soundtrack : Complete Collection : B.B. King (2008)
*******************************************************/
// internal JSON representor
modul... | RESTFest/ndcoslo2015 | representors/repjson.js | JavaScript | mit | 469 |
/**
* 拓展对象
*/
exports.extend = function extend(target) {
var sources = Array.prototype.slice.call(arguments, 1);
for (var i = 0; i < sources.length; i += 1) {
var source = sources[i];
for (var key in source) {
if (source.hasOwnProperty(key)) {
target[key] = source... | ymqy/LearnBook | 微信小程序/UI组件/WeApp-Demo/vendor/qcloud-weapp-client-sdk/lib/utils.js | JavaScript | mit | 387 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var InteractivityDetect_1 = require("../../../Enums/InteractivityDetect");
var Events_1 = require("./Events/Events");
var Modes_1 = require("./Modes/Modes");
var HoverMode_1 = require("../../../Enums/Modes/HoverMode");
var Interactivity = (fun... | cdnjs/cdnjs | ajax/libs/tsparticles/1.13.0/Classes/Options/Interactivity/Interactivity.js | JavaScript | mit | 1,960 |
/*
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("dd-gestures",function(A){A.DD.Drag.START_EVENT="gesturemovestart";A.DD.Drag.prototype._prep=function(){this._dragThreshMet=false;var C=this.get(... | dhamma-dev/SEA | web/lib/yui/3.2.0/build/dd/dd-gestures-min.js | JavaScript | gpl-3.0 | 878 |
function testInterpreterReentry4() {
var obj = {a:1, b:1, c:1, d:1, get e() 1000 };
for (var p in obj)
obj[p];
}
testInterpreterReentry4();
| glycerine/vj | src/js-1.8.5/js/src/jit-test/tests/basic/testInterpreterReentry4.js | JavaScript | apache-2.0 | 156 |
"use strict";
var helpers = require("../../helpers/helpers");
exports["Europe/Kaliningrad"] = {
"1916" : helpers.makeTestYear("Europe/Kaliningrad", [
["1916-04-30T21:59:59+00:00", "22:59:59", "CET", -60],
["1916-04-30T22:00:00+00:00", "00:00:00", "CEST", -120],
["1916-09-30T22:59:59+00:00", "00:59:59", "CEST",... | Bladefidz/ocfa_yii | vendor/bower-asset/moment-timezone/tests/zones/europe/kaliningrad.js | JavaScript | bsd-3-clause | 11,587 |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'fakeobjects', 'th', {
anchor: 'แทรก/แก้ไข Anchor',
flash: 'ภาพอนิเมชั่นแฟลช',
hiddenfield: 'ฮิดเดนฟิลด์',
iframe: 'IFrame',
unknown: 'วัตถุไม่ทรา... | SeeyaSia/www | web/libraries/ckeditor/plugins/fakeobjects/lang/th.js | JavaScript | gpl-2.0 | 436 |
$(document).keydown(function (event) {
if (event.ctrlKey) {
if (event.key === "Enter") {
if ($(".form.factory").is(":visible")) {
$("#SaveButton").trigger("click");
return false;
};
};
};
}); | Johann-Schwarz/mixerp | src/FrontEnd/Scripts/Modules/ScrudFactory/form/event-on-doc-keydown.js | JavaScript | gpl-3.0 | 274 |
import React, {PropTypes} from 'react';
const FuelSavingsTextInput = (props) => {
const handleChange = (e) => {
props.onChange(props.name, e.target.value);
};
return (
<input
className="small"
type="text"
placeholder={props.placeholder}
value={props.value}
onChange={handleC... | Takaitra/RecipeRunt | web/src/components/FuelSavingsTextInput.js | JavaScript | apache-2.0 | 602 |