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
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _propTypes = require('prop-types'); var _propTypes2 = _interopRequireDefault(_propTypes); var _createReactClass = require(...
ZSMingNB/react-news
node_modules/rc-menu/lib/Menu.js
JavaScript
gpl-3.0
7,883
/* This file is part of the Adambots Automated Scouting Kit (AASK). AASK 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. AASK is distribute...
benrbray/adambots-automated-scouting-kit
web/output.js
JavaScript
gpl-3.0
4,557
"use strict"; const conversions = require("webidl-conversions"); const utils = require("./utils.js"); const impl = utils.implSymbol; function DOMTokenList() { throw new TypeError("Illegal constructor"); } Object.defineProperty(DOMTokenList, "prototype", { value: DOMTokenList.prototype, writable: false, enum...
FreezeWarp/freeze-messenger
stress/node_modules/jsdom/lib/jsdom/living/generated/DOMTokenList.js
JavaScript
gpl-3.0
13,054
(function(){CodeMirror.defaults.closeTagEnabled=true; CodeMirror.defaults.closeTagIndent=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"]; CodeMirror.defaults.closeTagVoid=["area"...
vestrada/studio-ui
static-assets/components/cstudio-common/codemirror/lib/util/closetag-min.js
JavaScript
gpl-3.0
2,022
//Make sure global is set. blob@0.0.4 expects it to be there. "use strict"; window.global = window; import angular from "mui"; import jquery from "jquery"; import app from "./demo"; import reload from "live-reload"; var root = angular.element(document); root.ready(function(){ if(root.injector()){ root.data("$inje...
apartensky/mev
web/src/main/javascript/edu/dfci/cccb/mev/web/libs/analyses/pca/demo/live.js
JavaScript
gpl-3.0
883
/* * Repetitive JS. * * */ var wptRep = (function ($) { var count = {}; function initRepetitiveFields() { // Reorder label and description for repetitive // Note that we target usual labels and descriptions but a classname can be used to keep some auxiliar items $('.js-wpt-repetitive...
tungpt154/languagelab
wp-content/plugins/types/vendor/toolset/toolset-common/toolset-forms/js/repetitive.js
JavaScript
gpl-3.0
8,288
/** * @fileOverview Contains the view normalise line breaks button code. * @license http://www.raptor-editor.com/license * * @author Michael Robinson <michael@panmedia.co.nz> * @author David Neilsen <david@panmedia.co.nz> * @author Melissa Richards <melissa@panmedia.co.nz> */ /** * Attempts to enforce standard...
misol/raptor-editor
src/plugins/normalise-line-breaks/normalise-line-breaks.js
JavaScript
gpl-3.0
3,780
/* * Copyright (c) 2009 and 2010 Frank G. Bennett, Jr. All Rights Reserved. * * The contents of this file are subject to the Common Public * Attribution 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://b...
ptsefton/worddown
tools/recite/citeproc-js/attic/speed.js
JavaScript
gpl-3.0
6,941
define(function() { return Class.extend({ init: function(id, element, type) { var self = this; self.id = id; self.element = element; self.type = type; self.blinkInterval = null; self.visible = true; self.x = -1; ...
udeva/Kaetram
client/js/renderer/pointers/pointer.js
JavaScript
mpl-2.0
1,162
load(libdir + 'asserts.js'); function test() { assertTypeErrorMessage(() => { ctypes.Int64(1).toString(1, 2); }, "Int64.prototype.toString takes at most one argument"); assertTypeErrorMessage(() => { ctypes.Int64(1).toSource(1); }, "Int64.prototype.toSource takes n...
cstipkovic/spidermonkey-research
js/src/jit-test/tests/ctypes/argument-length-int64.js
JavaScript
mpl-2.0
1,846
define(function(require, exports) { /** * @namespace contains helper functions used internally * THESE MODULES ARE NOT ALLOWED TO HAVE DEPENDENCIES OUTSIDE * THE `internals` PACKAGE */ //do type-tests to detect properties on objects exports.is = require('./internals/is'); //test if objects have properties exports....
hapticdata/toxiclibsjs
lib/toxi/internals.js
JavaScript
lgpl-2.1
1,125
/*node.js javascript document * * @authors: Amin Ghadersohi, * Thomas Yearke * @date: 2/20/2014 * * Class to encapsulate functionality related to an etl schema * * @requirements: * node.js * */ var util = require('util'); var Schema = module.exports = function(schema) { util._extend(this,schema); //TO...
jsperhac/xdmod
etl/js/lib/schema.js
JavaScript
lgpl-3.0
5,481
/* Copyright 2014 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
AlexFine/ionic-conference-app
www/pdf.js/src/display/annotation_helper.js
JavaScript
apache-2.0
9,357
/* * This file is part of Oshinko. * * Copyright (C) 2016 Red Hat, Inc. * */ 'use strict'; var app = angular.module('Oshinko', [ 'ngRoute', 'Oshinko.controllers', 'Oshinko.factories', 'ab-base64' ]); app.constant("API_CFG", _.get(window.OPENSHIFT_CONFIG, "api", {})); app.constant("APIS_CFG", _.get(wind...
crobby/oshinko-webui
oshinko-webui-build/modules/app/added/app/js/app.js
JavaScript
apache-2.0
5,926
/** * Copyright 2017 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...
donttrustthisbot/amphtml
extensions/amp-date-picker/0.1/date-range-picker.js
JavaScript
apache-2.0
5,984
/*=========================*/ /*====main navigation hover dropdown====*/ /*==========================*/ $(document).ready(function() { $('.js-activated').dropdownHover({ instantlyCloseOthers: false, delay: 0 }).dropdown(); }); /*====flex slider for main slider or testimonials====*/ $('.ma...
VeritasU/edx-bootstrap
static/theme/assets/js/app.js
JavaScript
apache-2.0
1,226
/** * 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 m...
hgschmie/shindig
javascript/samplecontainer/samplecontainer.js
JavaScript
apache-2.0
8,177
function db3() { var self = Titanium.UI.createWindow({ height:30, width:280, borderRadius:10, bottom:140, backgroundColor:'#333' }); var db = Titanium.Database.install('/etc/testdb.db','quotes'); var rows = db.execute('SELECT * FROM TIPS'); db.execute('UPDATE TIPS SET TITLE="UPDATED TITLE" WHERE TIT...
appcelerator/titanium_mobile_tizen
tests/samples/KitchenSink/Resources/ui/common/platform/database_3.js
JavaScript
apache-2.0
829
import Component from '@ember/component' import { alias } from '@ember/object/computed' import { get, set, computed, setProperties, observer } from '@ember/object' import { inject as service } from '@ember/service'; import $ from 'jquery'; export default Component.extend({ scope: service(), brokerType: ...
westlywright/ui
lib/logging/addon/components/logging/target-kafka/component.js
JavaScript
apache-2.0
4,045
'use strict'; var buffer = require('./buffer'); exports.atob = function (str) { var base64 = new buffer(str, 'base64'); // Node.js will just skip the characters it can't encode instead of // throwing and exception if (base64.toString('base64') !== str) { throw ("Cannot base64 encode full string"); } r...
csantanapr/ionic-chat
www/lib/pouchdb/lib/deps/binary/base64.js
JavaScript
apache-2.0
446
var testUtils = require('../../../util/testUtils'); var TestResults = require('@cdo/apps/constants.js').TestResults; var blockUtils = require('@cdo/apps/block_utils'); var reqBlocks = function () { // stick this inside a function so that it's only loaded when needed return require('@cdo/apps/maze/requiredBlocks.js...
rvarshney/code-dot-org
apps/test/solutions/maze/wordsearch/wordsearch_1.js
JavaScript
apache-2.0
2,067
/* * Copyright (c) 2011-2014 YY Digital Pty Ltd. All Rights Reserved. * Please see the LICENSE file included with this distribution for details. */ var config = require("./config"), logger = require("../../server/logger"), colors = require('colors'), repl = require('repl'), http = require('http'), ...
Biotelligent/TiShadow
cli/support/api.js
JavaScript
apache-2.0
3,686
CindyJS.registerPlugin(1, "symbolic", function(api) { /** * clones expression while ignoring pointer-references to the same child */ function cloneExpression(obj) { var copy; if (null == obj || "object" != typeof obj) return obj; if (obj instanceof Array) { copy = []; for (var i = 0, ...
CindyJS/CindyJS
plugins/symbolic/src/js/symbolic.js
JavaScript
apache-2.0
8,646
/* * 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. */ '...
xingwu1/azure-sdk-for-node
lib/services/recoveryServicesSiteRecoveryManagement/lib/models/providerSpecificFailoverInput.js
JavaScript
apache-2.0
1,409
// Copyright (C) 2016 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-%typedarray% description: > TypedArray has a "length" property whose value is 0. info: | %TypedArray% ( ) The length property of the %TypedArray% constructor ...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/TypedArray/length.js
JavaScript
bsd-2-clause
756
// Copyright (C) 2016 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-properties-of-the-promise-prototype-object description: Promise.prototype [[Prototype]] is %ObjectPrototype% info: | The Promise prototype object is the intrinsic o...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/Promise/prototype/proto.js
JavaScript
bsd-2-clause
718
/* Tests for reflow of DOM 2 HTML 'HTMLStyleElement' object. Interactive version. */ var cvs = "$Id: htmlstyleelement_int.js 10655 2006-12-18 15:47:57Z hallvord $"; function startHTMLStyleElementInteractiveDisabled() { try { if (is_phase(2)) { testcase( "disabled property is writable" ); // style ele...
frivoal/presto-testo
core/standards/scripts/jstest-futhark/HTML/scripts/htmlstyleelement_int.js
JavaScript
bsd-3-clause
2,732
/* @flow */ /** * Copyright (c) 2015, 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. */ i...
hzoo/graphql-js
src/executor/values.js
JavaScript
bsd-3-clause
7,831
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2012, 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...
paladox/ace
lib/ace/mode/slim_highlight_rules.js
JavaScript
bsd-3-clause
9,204
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. 'use strict'; /** * Runs all of the test cases, one by one. */ chrome.test.runTests([ // Verifies if getAll() returns the mounted file system. func...
7kbird/chrome
chrome/test/data/extensions/api_test/file_system_provider/get_all/test.js
JavaScript
bsd-3-clause
2,255
//!-AGS----------------------- Auto Start: PART 2 ------------------------------ // Do NOT edit text between auto start and auto end. It is auto generated. // Load the net module to create a tcp server. var net = require('net'); // Creates a new TCP server. The handler argument is automatically set as a listener for...
ozum/auto-generate
test/files/control/p2-altered-whitespace-only.js
JavaScript
isc
929
var mockPackage = require('../mocks/mockPackage'); var Dgeni = require('dgeni'); var tagDefFactory = require('./link'); describe("links inline tag handler", function() { var tagDef, getLinkInfoSpy, doc, links; beforeEach(function() { getLinkInfoSpy = jasmine.createSpy('getLinkInfo'); var testPackage =...
ad-uistyleguide/ad-uistyleguide.github.io
node_modules/dgeni-packages/ngdoc/inline-tag-defs/link.spec.js
JavaScript
mit
2,119
require(['linkify'], function(linkify) { $.fn.anchorTextUrls = function() { // Test a text node's contents for URLs and split and rebuild it // with an achor $(this).linkify({ format: function(value, type) { var url = value var name = url var shorten = false // short...
dsumin/freefeed-html
public/js/libs/plugins/jquery.anchorlinks.js
JavaScript
mit
1,558
'use strict'; const common = require('../common'); // Testing Readable Stream resumeScheduled state const assert = require('assert'); const { Readable, Writable } = require('stream'); { // pipe() test case const r = new Readable({ read() {} }); const w = new Writable(); // resumeScheduled should start = `fa...
enclose-io/compiler
lts/test/parallel/test-stream-readable-resumeScheduled.js
JavaScript
mit
1,796
New Warning
webpack/webpack
test/watchCases/warnings/warnings-contribute-to-hash/1/changing-file.js
JavaScript
mit
12
RECAPTCHA_SECRET_KEY: "234234" RECAPTCHA_SITE_KEY: "234234234" EMAIL_ADRESS: '234234234' EMAIL_DOMAIN: 'gorails.com.br' EMAIL_PASSWORD: '234234234' EMAIL_PORT: '53387' EMAIL_USER_NAME: 'contato@gorails.com.br' GORAILS_MAILCHIMP_LIST_ID: '234234234' MAILCHIMP_API_KEY: '234234234' CLOUD_NAME: '234234234' API_SECRET_CLOUD...
gorails/gorails
public/assets/go_gamification/character-16566d31a84302f459206ad3dd927a2f648509c792bb9a74232b3b9045e4df58.js
JavaScript
mit
433
/** * Copyright 2015 Telerik AD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
burkeholland/itunes-artist-search
app/components/kendo-ui-core/src/js/cultures/kendo.culture.ur-PK.js
JavaScript
mit
3,083
(function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['leaflet'], factory); } else if (typeof modules === 'object' && module.exports) { // define a Common JS module that relies on 'leaflet' module.exports = factory(require('leaflet')); ...
joeyparrish/cdnjs
ajax/libs/leaflet-providers/1.8.0/leaflet-providers.js
JavaScript
mit
23,879
import React from 'react'; class CardStackPanResponder { } class PagerPanResponder { } class NavigationCard extends React.Component { static CardStackPanResponder = CardStackPanResponder; static CardStackStyleInterpolator = { forHorizontal: () => ({}), forVertical: () => ({}), }; static PagerPanRespo...
lelandrichardson/react-native-mock
src/Libraries/NavigationExperimental/NavigationCard.js
JavaScript
mit
454
'use strict'; var _expect = require('expect'); var _expect2 = _interopRequireDefault(_expect); var _interleave = require('../interleave'); var _interleave2 = _interopRequireDefault(_interleave); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } describe('interleave', ...
xuan6/admin_dashboard_local_dev
node_modules/styled-components/lib/utils/test/interleave.test.js
JavaScript
mit
1,261
'use strict'; const common = require('../common'); const { Worker } = require('worker_threads'); common.skipIfInspectorDisabled(); if (!process.env.HAS_STARTED_WORKER) { process.env.HAS_STARTED_WORKER = 1; new Worker(__filename); return; } const assert = require('assert'); const { Session } = require('inspect...
enclose-io/compiler
lts/test/parallel/test-trace-events-dynamic-enable-workers-disabled.js
JavaScript
mit
668
/* * KNWebGLShader.js * Keynote HTML Player * * Created by Tungwei Cheng * Copyright (c) 2016-2019 Apple Inc. All rights reserved. */ var KNWebGLShader = {}; KNWebGLShader.defaultTexture = { attribNames: ["Position", "TexCoord"], uniformNames: ["MVPMatrix", "Texture"], vertex: "\ #ifdef GL_E...
taherj/taherj.github.io
talks/dcon19/assets/player/gl/KNWebGLShader.js
JavaScript
mit
48,463
describe('using offsets', function() { require('./fixtures/bootstrap.js'); beforeEach(h.clean); afterEach(h.clean); function testElemOffset(x, y, offset) { describe(offset+' offset with an element at '+x+','+y, function() { var test; var calls; // at this scroll position, element should...
ipy/in-viewport
test/offset.js
JavaScript
mit
1,610
frappe.ui.form.on("Communication", { onload: function(frm) { if(frm.doc.content) { frm.doc.content = frappe.dom.remove_script_and_style(frm.doc.content); } frm.set_query("reference_doctype", function() { return { filters: { "issingle": 0, "istable": 0 } } }); }, refresh: function(f...
mbauskar/frappe
frappe/core/doctype/communication/communication.js
JavaScript
mit
6,087
var assert = require("assert"); var path = require("path"); var promisify = require("promisify-node"); var Promise = require("nodegit-promise"); var fse = promisify(require("fs-extra")); var local = path.join.bind(path, __dirname); describe("Diff", function() { var NodeGit = require("../../"); var Repository = Nod...
Naituw/nodegit
test/tests/diff.js
JavaScript
mit
8,487
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------...
arunetm/ChakraCore_0114
test/EH/try4.js
JavaScript
mit
1,070
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = createSourceFactory; var _invariant = _interopRequireDefault(require("invariant")); var _js_utils = require("../utils/js_utils"); var _utils = require("./utils"); function _interopRequireDefault(obj) { return obj && ob...
cdnjs/cdnjs
ajax/libs/react-dnd/9.5.1/cjs/decorators/createSourceFactory.js
JavaScript
mit
4,053
'use strict'; // ------------------------------------------------------------------------------ // Requirements // ------------------------------------------------------------------------------ var rule = require('../rules/foreach'); var RuleTester = require('eslint').RuleTester; var commonFalsePositives = require('....
shardulgo/shardulgo.github.io
site/node_modules/eslint-plugin-angular/test/foreach.js
JavaScript
mit
840
//package test0180; //import java.util.*; //public class Test { // public void foo() { // Test[] t = new Test[0]; // System.out.println(t); // } //}
echoes-tech/eclipse.jsdt.core
org.eclipse.wst.jsdt.core.tests.model/workspace/Converter/src/test0180/Test.js
JavaScript
epl-1.0
157
/*! * jsTree {{VERSION}} * http://jstree.com/ * * Copyright (c) 2014 Ivan Bozhanov (http://vakata.com) * * Licensed same as jquery - under the terms of the MIT License * http://www.opensource.org/licenses/mit-license.php */ /*! * if using jslint please allow for the jQuery global and use following options: ...
kangaukju/wips-inspect
ui/wips-inspect/WebContent/js/vakata-jstree-3.0.4/src/jstree.js
JavaScript
gpl-2.0
137,355
/* @flow */ import $ from 'jquery'; import { Module } from '../core/module'; import { execRegexes, regexes, Thing } from '../utils'; export const module: Module<*> = new Module('commentDepth'); module.moduleName = 'commentDepthName'; module.category = 'commentsCategory'; module.disabledByDefault = true; module.descr...
mc10/Reddit-Enhancement-Suite
lib/modules/commentDepth.js
JavaScript
gpl-3.0
3,083
// title: RGB to HSL and RGB to HSV Color Model Conversion Algorithms in JavaScript // author: Michael J. I. Jackson // published: 2008-02-10 16:01 // updated: 2009-01-03 00:52 // tags: [color, javascript] // Here is a set of additive color model conversion algorithms that I found published on [Wikipedia][wp] and have...
uPaymeiFixit/HTML5-JavaScript-Utilities
Template/utils/ColorSpaceConversions.js
JavaScript
gpl-3.0
5,033
/*global define*/ define([ '../Core/clone', '../Core/Color', '../Core/combine', '../Core/defaultValue', '../Core/defined', '../Core/defineProperties', '../Core/VertexFormat', '../Shaders/Appearances/PointAppearanceFS', '../Shaders/Appearances/Point...
nupic-community/nostradamIQ
nostradamIQ-landingpage/webapp/lib/cesium/1.16/Source/Scene/PointAppearance.js
JavaScript
gpl-3.0
7,827
odoo.define('website_event_sale.tour', function (require) { 'use strict'; var tour = require('web_tour.tour'); var base = require("web_editor.base"); tour.register('event_buy_tickets', { test: true, url: '/event', wait_for: base.ready() }, [ { content: "Go to the `Events` page", ...
hip-odoo/odoo
addons/website_event_sale/static/src/js/website.tour.event_sale.js
JavaScript
agpl-3.0
3,784
OC.L10N.register( "federatedfilesharing", { "Add to your ownCloud" : "Voeg tot u ownCloud toe", "File is already shared with %s" : "Lêer is reeds met %s gedeel", "Accept" : "Aanvaar", "Decline" : "Verwerp", "Open documentation" : "Open dokumentasie", "Share it:" : "Deel dit:" }, "nplural...
pollopolea/core
apps/federatedfilesharing/l10n/af_ZA.js
JavaScript
agpl-3.0
346
(function () { 'use strict'; angular .module('platformUserModule') .directive('passwordVerify', passwordVerifyDirective); function passwordVerifyDirective() { return { require: "ngModel", scope: { passwordVerify: '=' }, ...
alvin-reyes/abixen-platform
abixen-platform-web-client/src/main/web/application/modules/user/javascript/password-verify.directive.js
JavaScript
lgpl-2.1
1,271
/*! * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global'], function(jQuery) { "use strict"; /** * @class LocalBusyIndicator renderer. * ...
ghostxwheel/utorrent-webui
resources/sap/ui/core/LocalBusyIndicatorRenderer-dbg.js
JavaScript
unlicense
1,830
// Licensed to the Apache Software Foundation (ASF) under one or more contributor // license agreements; and to You under the Apache License, Version 2.0. /** * Sort a set of lines. * @param lines An array of strings to sort. */ function main(msg) { var lines = msg.lines || []; //console.log('sort got ' + l...
starpit/openwhisk
tests/dat/actions/sort.js
JavaScript
apache-2.0
556
/* * Copyright 2017 Amadeus s.a.s. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
benouat/ariatemplates
test/aria/widgets/form/select/onBlur/SelectOnBlurSimpleRobotTestCase.js
JavaScript
apache-2.0
1,055
// Copyright 2013 The ChromeOS IME Authors. All Rights Reserved. // limitations under the License. // See the License for the specific language governing permissions and // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // distributed under the License is distributed on an "AS-IS" BASIS, // Un...
googlei18n/google-input-tools
chrome/os/ime/localstoragehandlerfactory.js
JavaScript
apache-2.0
2,832
"use strict"; /** * @ignore */ exports.shouldCorrectlyExtractIndexInformation = { metadata: { requires: { topology: ['single', 'replicaset', 'sharded', 'ssl', 'heap', 'wiredtiger'] } }, // The actual test we wish to run test: function(configuration, test) { var db = configuration.newDbInstance(configurati...
tuyndv/node-mongodb-native
test/functional/index_tests.js
JavaScript
apache-2.0
27,685
//// [test.ts] export async function fn() { const req = await import('./test') // ONE } export class cl1 { public async m() { const req = await import('./test') // TWO } } export const obj = { m: async () => { const req = await import('./test') // THREE } } export class cl2 { ...
basarat/TypeScript
tests/baselines/reference/importCallExpressionAsyncES5System.js
JavaScript
apache-2.0
6,889
/* * Copyright (c) 2016 Juniper Networks, Inc. All rights reserved. */ define(["underscore"], function(_){ var qosUtils = function() { this.getQOSDetailsTemplateConfig = function() { return { templateGenerator: 'RowSectionTemplateGenerator', templateGene...
vishnuvv/contrail-web-controller
webroot/config/networking/qos/common/ui/js/qosUtils.js
JavaScript
apache-2.0
5,307
define([ 'dataRequestHandler', 'tpl!search/filters/item', 'tpl!search/filters/entityItem' ], function( DataRequestHandler, itemTemplate, entityItemTemplate ) { describeComponent('search/filters/filters', function(Filters) { var testId = 1; beforeEach(fu...
j-bernardo/lumify
web/war/src/main/webapp/test/unit/spec/search/filtersTest.js
JavaScript
apache-2.0
13,745
Kwf.ViewportWithoutMenu = Ext.extend(Ext.Viewport, { layout: 'fit', mabySubmit: function(cb, options) { var ret = true; this.items.each(function(i) { if (i.mabySubmit && !i.mabySubmit(cb, options)) { ret = false; return false; //break each ...
fraxachun/koala-framework
Kwf_js/Viewport.js
JavaScript
bsd-2-clause
855
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ /*global App, document, window */ import React from 'react'; import debug from 'debug'; import app from './app'; import { createElementWithContext } from 'fluxible-addons-react'; const ...
ybbkrishna/flux-examples
fluxible-router/client.js
JavaScript
bsd-3-clause
870
requirejs.config({ 'baseUrl': '../lib', 'paths': { 'leaflet.wms': '../leaflet.wms' //.js' } }); define(['leaflet', 'leaflet.wms'], function(L, wms) { var overlayMap = createMap('overlay-map', false); var tiledMap = createMap('tiled-map', true); function createMap(div, tiled) { // Map configur...
jackwzhang/720cloud
libs/plugin/leaflet.wms-gh-pages/examples/app.js
JavaScript
bsd-3-clause
2,308
var request = require('supertest'); var app = require(__dirname+'/../../lib/app.js'); var gateway = require(__dirname+'/../../'); describe('get hot wallet address', function(){ it('should return unauthorized without credentials', function(done){ request(app) .get('/v1/config/wallets/hot') .expect(40...
crazyquark/gatewayd
test/http/get_hot_wallet.js
JavaScript
isc
721
/* Copyright 2013-2015 ASIAL CORPORATION Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
Fiberalph/wedding_app
www/lib/onsenui/core-src/elements/ons-range.js
JavaScript
mit
5,892
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S15.4.4.12_A1.2_T4; * @section: 15.4.4.12; * @assertion: If start is negative, use max(start + length, 0). * If deleteCount is negative, use 0; * @description: -length ...
seraum/nectarjs
tests/ES3/Conformance/15_Native_ECMA_Script_Objects/15.4_Array_Objects/15.4.4_Properties_of_the_Array_Prototype_Object/15.4.4.12_Array_prototype_splice/S15.4.4.12_A1.2_T4.js
JavaScript
mit
1,416
/** * 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 appli...
Khameleon-2016/TeamWork
public/node_modules/googleapis/apis/clouduseraccounts/beta.js
JavaScript
mit
25,320
/* */ "format cjs"; "use strict"; exports.__esModule = true; function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; re...
coolsirch88/2RAB
src/TwoRooms.Web/wwwroot/jspm_packages/npm/babel-core@5.4.7/lib/babel/transformation/helpers/replace-supers.js
JavaScript
mit
10,440
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ var stylesInDom = {}; var memoize = function (fn) { var memo; return function () { if (typeof memo === "undefined") memo = fn.apply(this, arguments); return memo; }; }; var isOldIE = memoize(function () { // ...
villip/moon-safari
node_modules/style-loader/lib/addStyles.js
JavaScript
mit
8,659
/* * Testcase for RegExp leniency in GitHub issue #39. * * Duktape 0.12.0 (and probably 1.0) doesn't pass this test, because the * RegExp parser has no leniency for regexps outside the E5 syntax. */ /*=== parse ok ===*/ /* Here the '\1' escape inside a character class is invalid in E5: * E5 Section 15.10.2.1...
svaarala/duktape
tests/ecmascript/test-bi-regexp-gh39.js
JavaScript
mit
855
import Link from 'next/link' import fs from 'fs' import path from 'path' export async function getStaticProps() { const text = fs .readFileSync(path.join(process.cwd(), 'world.txt'), 'utf8') .trim() return { props: { world: text, time: new Date().getTime(), }, revalidate: true, } ...
zeit/next.js
test/integration/prerender/pages/another/index.js
JavaScript
mit
602
angular.module('blog').controller('LoginController', function ($scope, $http, $rootScope, $cookieStore, $state) { $scope.container = {}; $scope.isProcessingLogin = false; $scope.loginError = ''; if ($rootScope.authenticated == true) $state.go('root.home'); $scope.loginClick = function(login) { if ($scope.co...
Xaniff/BlogCodeExercise
Exercise2/obj/Release/Package/PackageTmp/Scripts/blog/controllers/root/loginCtrl.js
JavaScript
mit
917
"use strict"; var XY = function (x, y) { this.x = x; this.y = y; } , hueLimits = { red: new XY(0.675, 0.322), green: new XY(0.4091, 0.518), blue: new XY(0.167, 0.04) } , livingColorsLimits = { red: new XY(0.704, 0.296), green: new XY(0.2151, 0.710...
nikkis/OrchestratorJS
resources/tests/node_modules/node-hue-api/hue-api/rgb.js
JavaScript
mit
4,673
'use strict'; var babelHelpers = require('./util/babelHelpers.js'); exports.__esModule = true; var _react = require('react'); var _react2 = babelHelpers.interopRequireDefault(_react); var _utilCaret = require('./util/caret'); var _utilCaret2 = babelHelpers.interopRequireDefault(_utilCaret); var _utilCompat = req...
smashercosmo/react-widgets-immutable-demo
src/react-widgets/lib/ComboboxInput.js
JavaScript
cc0-1.0
2,492
$(document).ready(function() { var context = $('#nodespotbox-view-settings'); if (context.size()) { // Set views display list, based on selection _nodespotbox_change_display(false); // If selection of view name changes, opdate display list $('.nodespotbox-views-names', context).change(function() { ...
cableman/andromeda
sites/all/modules/contrib/nodespotbox/js/nodespotbox.js
JavaScript
gpl-2.0
1,021
(function(){ // module factory: start var moduleFactory = function($) { // module body: start var module = this; $.require() .script("moment") .done(function() { var exports = function() { var symbolMap = { '1': '१', '2': '२', '3': '३', '4': '४', '5': '५', ...
Creativetech-Solutions/joomla-easysocial-network
media/foundry/4.0/scripts/moment/ne.js
JavaScript
gpl-2.0
3,811
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _interopRequireDefault(obj) { return ...
Sweetgrassbuffalo/ReactionSweeGrass-v2
node_modules/react-select/lib/Creatable.js
JavaScript
gpl-3.0
9,757
// @include http://www.letv.com/ptv/vplay/*
galaxy001/monkey-videos
letv/header.js
JavaScript
gpl-3.0
49
/* * * * Timeline Series. * * (c) 2010-2021 Highsoft AS * * Author: Daniel Studencki * * License: www.highcharts.com/license * * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!! * * */ 'use strict'; var __extends = (this && this.__extends) || (function () { var extendStatics...
sfu-ireceptor/gateway
public/js/highcharts/code/es-modules/Series/Timeline/TimelinePoint.js
JavaScript
lgpl-3.0
5,923
/** * Copyright 2019 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...
lannka/amphtml
extensions/amp-base-carousel/0.1/test-e2e/test-mixed-lengths.js
JavaScript
apache-2.0
3,129
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
joshbruning/selenium
javascript/node/selenium-webdriver/test/io/io_test.js
JavaScript
apache-2.0
11,578
/** * Copyright JS Foundation and other contributors, http://js.foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
dojot/mashup
editor/js/ui/common/menu.js
JavaScript
apache-2.0
8,856
/** * Visual Blocks Editor * * Copyright 2011 Google Inc. * http://blockly.googlecode.com/ * * 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/LICEN...
pickettd/code-dot-org
blockly-core/core/ui/tooltip.js
JavaScript
apache-2.0
10,733
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * Return sign * Result(17) * * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.3_T2.js * @description Checking algorithm for R = 2 */ //CHECK#1 if (parseInt("-1", 2) !== -1) { $...
hippich/typescript
tests/Fidelity/test262/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.3_T2.js
JavaScript
apache-2.0
3,374
// This file was procedurally generated from the following sources: // - src/dstr-binding-for-await/ary-ptrn-elem-ary-rest-iter.case // - src/dstr-binding-for-await/default/for-await-of-async-gen-var.template /*--- description: BindingElement with array binding pattern and initializer is not used (for-await-of statemen...
sebastienros/jint
Jint.Tests.Test262/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-elem-ary-rest-iter.js
JavaScript
bsd-2-clause
2,258
// This file was procedurally generated from the following sources: // - src/async-generators/yield-promise-reject-next-yield-star-async-iterator.case // - src/async-generators/default/async-expression.template /*--- description: yield * (async iterator) is treated as throw value (Unnamed async generator expression) es...
sebastienros/jint
Jint.Tests.Test262/test/language/expressions/async-generator/yield-promise-reject-next-yield-star-async-iterator.js
JavaScript
bsd-2-clause
1,342
/* * This is a basic func test for a UseCase application. */ YUI({ useConsoleOutput: true, useBrowserConsole: true, logInclude: { TestRunner: true } }).use('node', 'node-event-simulate', 'test', 'console', function (Y) { var suite = new Y.Test.Suite("DeveloperGuide: adding_view_engine"); ...
sahat/mojito
tests/func/examples/developerguide/test_adding_view_engines.js
JavaScript
bsd-3-clause
1,111
/* * Copyright (C) 2011 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
guorendong/iridium-browser-ubuntu
third_party/WebKit/Source/devtools/front_end/components/InspectorView.js
JavaScript
bsd-3-clause
17,855
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Ivan Kopeykin @vankop */ "use strict"; const PATH_QUERY_FRAGMENT_REGEXP = /^(#?(?:\0.|[^?#\0])*)(\?(?:\0.|[^#\0])*)?(#.*)?$/; /** * @param {string} identifier identifier * @returns {[string, string, string]|null} parsed identifier */ funct...
arvenil/resume
node_modules/enhanced-resolve/lib/util/identifier.js
JavaScript
mit
614
'use strict' // This is adapted from https://github.com/normalize/mz // Copyright (c) 2014-2016 Jonathan Ong me@jongleberry.com and Contributors const u = require('universalify').fromCallback const fs = require('graceful-fs') const api = [ 'access', 'appendFile', 'chmod', 'chown', 'close', 'copyFile', 'f...
matryer/bitbar
xbarapp.com/node_modules/fs-extra/lib/fs/index.js
JavaScript
mit
3,432
/* jshint scripturl:true */ import EmberView from "ember-views/views/view"; import compile from "ember-template-compiler/system/compile"; import { SafeString } from "ember-htmlbars/utils/string"; import { runAppend, runDestroy } from "ember-runtime/tests/utils"; import environment from "ember-metal/environment"; var ...
mitchlloyd/ember.js
packages/ember-htmlbars/tests/attr_nodes/sanitized_test.js
JavaScript
mit
4,567
/* global MouseEvent */ import { default as sweetAlert } from '../sweetalert2.js' import { swalPrefix, swalClasses, iconTypes } from './classes.js' // Remember state in cases where opening and handling a modal will fiddle with it. export const states = { previousWindowKeyDown: null, previousActiveElement: null, ...
birjolaxew/sweetalert2
src/utils/dom.js
JavaScript
mit
9,733
/*! * Module dependencies. */ var Document = require('./document'); var MongooseError = require('./error'); var VersionError = MongooseError.VersionError; var DivergentArrayError = MongooseError.DivergentArrayError; var Query = require('./query'); var Aggregate = require('./aggregate'); var Schema = require('./schem...
Spothedog1/Search-Rate
node_modules/mongoose/lib/model.js
JavaScript
mit
99,105
//# sourceMappingURL=ICoordinates.js.map
cdnjs/cdnjs
ajax/libs/tsparticles/1.12.3/Interfaces/ICoordinates.js
JavaScript
mit
40
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors // License: GNU General Public License v3. See license.txt cur_frm.add_fetch('employee', 'company', 'company'); cur_frm.add_fetch('employee', 'employee_name', 'employee_name'); cur_frm.cscript.onload = function(doc,cdt,cdn){ if(!doc.status) set_...
ESS-LLP/erpnext-healthcare
erpnext/hr/doctype/appraisal/appraisal.js
JavaScript
gpl-3.0
2,174
goog.require('ol.Attribution'); goog.require('ol.Map'); goog.require('ol.View'); goog.require('ol.format.MVT'); goog.require('ol.layer.VectorTile'); goog.require('ol.proj'); goog.require('ol.source.VectorTile'); goog.require('ol.style.Fill'); goog.require('ol.style.Icon'); goog.require('ol.style.Stroke'); goog.require(...
buddebej/elasticterrain
ol3/examples/mapbox-vector-tiles-advanced.js
JavaScript
gpl-3.0
2,478