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'; var path = require('path'); var cfreader = require('./configfile'); module.exports = new Config(); function Config (root_path, no_overrides) { this.root_path = root_path || cfreader.config_path; this.module_config = function (defaults_path, overrides_path) { var cfg = new C...
typingArtist/Haraka
config.js
JavaScript
mit
3,727
<% if(options.coffee){ %>require('coffee-script/register');<% } %> var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser');<% if(options.viewEngine == 'swig...
knotech/videocat
node_modules/generator-express/app/templates/basic-shared/app.js
JavaScript
gpl-2.0
2,704
/* --------------------------------------------- * Filename: custom.js * Version: 1.0.0 (2016-03-05) * Website: http://www.zymphonies.com * Description: Global Script * Author: Zymphonies Team info@zymphonies.com -----------------------------------------------*/ function clients_o...
usaqlain01/mnode
web/themes/drupal8_parallax_theme/js/custom.js
JavaScript
gpl-2.0
2,239
/** * Kendo UI v2018.1.221 (http://www.telerik.com/kendo-ui) * Copyright 2018 Telerik AD. All rights reserved. ...
Memba/Kidoju-Widgets
src/js/vendor/kendo/cultures/kendo.culture.es.js
JavaScript
gpl-3.0
6,531
import { Attribute, Directive, ElementRef, Renderer, Input } from '@angular/core'; import { Config } from '../../config/config'; import { Ion } from '../ion'; /** * @name Label * @description * Labels are placed inside of an `ion-item` element and can be used * to describe an `ion-input`, `ion-toggle`, `ion-checkbo...
chitranshi21/home_service_ionic
node_modules/ionic-angular/es2015/components/label/label.js
JavaScript
gpl-3.0
3,155
import Ember from "ember"; export default Ember.Component.extend({ classNames: ['liquid-child'], init: function init() { this._super(); this._waitingFor = []; }, didInsertElement: function didInsertElement() { var _this = this; var $container = this.$(); if ($container) { $container...
Elektro1776/latestEarthables
core/client/tmp/broccoli_persistent_filterbabel-output_path-r5BDANvP.tmp/modules/liquid-fire/components/liquid-child.js
JavaScript
gpl-3.0
1,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("lang/datatype-date-format_ca",function(e){e.Intl.add("datatype-date-format","ca",{a:["dg.","dl.","dt.","dc.","dj.","dv.","ds."],A:["diumenge","dilluns","dimarts","dimecres...
relipse/cworklog
public_html/js/yui/3.8.0/build/datatype-date-format/lang/datatype-date-format_ca.js
JavaScript
gpl-3.0
666
/* * Copyright (C) 2014 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
venturehive/canvas-lms
client_apps/canvas_quizzes/apps/events/js/core/controller.js
JavaScript
agpl-3.0
2,397
/** * Kendo UI v2018.1.221 (http://www.telerik.com/kendo-ui) * Copyright 2018 Telerik AD. All rights reserved. ...
Memba/Memba-Widgets
src/js/vendor/kendo/cultures/kendo.culture.en-NZ.js
JavaScript
agpl-3.0
6,541
/** * Collection utilities beyond what is provided in the YUI core * @module collection * @submodule arraylist-add * @deprecated Use ModelList or a custom ArrayList subclass */ /* * Adds methods add and remove to Y.ArrayList */ Y.mix(Y.ArrayList.prototype, { /** * Add a single item to the ArrayList. ...
co-ment/comt
src/cm/media/js/lib/yui/yui3-3.15.0/src/collection/js/arraylist-add.js
JavaScript
agpl-3.0
2,438
DeskeditMacros.$inject = ['macros', 'WizardHandler']; /** * @ngdoc directive * @module superdesk.apps.desks * @name sdDeskeditMacros * @description * Fetches and stores a list of macros for the current desk (if set, * otherwise all macros), and defines the "previous" and "next" * methods in the element's ...
darconny/superdesk-client-core
scripts/apps/desks/directives/DeskeditMacros.js
JavaScript
agpl-3.0
932
/* * Globalize Culture zh-MO * * http://github.com/jquery/globalize * * Copyright Software Freedom Conservancy, Inc. * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * This file was generated by the Globalize Culture Generator * Translation: bugs found in this f...
zonebuilder/zonebuilder.github.io
jul/ample-sdk/ample/cultures/zh-MO.js
JavaScript
lgpl-3.0
1,726
// 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, software // distributed un...
garrensmith/couchdb-fauxton
app/addons/components/base.js
JavaScript
apache-2.0
634
'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...
Maxwelloff/react-football
node_modules/material-ui/lib/svg-icons/av/high-quality.js
JavaScript
apache-2.0
1,140
// Copyright 2015 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/floatingwindow/latincandidatewindow.js
JavaScript
apache-2.0
6,630
'use strict' var whitespace = require('is-whitespace-character') var locate = require('../locate/link') module.exports = link link.locator = locate var lineFeed = '\n' var exclamationMark = '!' var quotationMark = '"' var apostrophe = "'" var leftParenthesis = '(' var rightParenthesis = ')' var lessThan = '<' var gr...
BigBoss424/portfolio
v7/development/node_modules/remark-parse/lib/tokenize/link.js
JavaScript
apache-2.0
7,557
/* * 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/dataLake.Analytics/lib/catalog/models/uSqlTableList.js
JavaScript
apache-2.0
1,496
/* 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, software * distributed...
flowable/flowable-engine
modules/flowable-ui/flowable-ui-task-frontend/src/main/resources/static/workflow/scripts/services/app-definition-service.js
JavaScript
apache-2.0
3,289
/* * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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.ap...
charithag/carbon-store
apps/publisher/themes/default/renderers/pages/delete.js
JavaScript
apache-2.0
1,170
/* * Afrimesh: easy management for B.A.T.M.A.N. wireless mesh networks * Copyright (C) 2008-2009 Meraka Institute of the CSIR * All rights reserved. * * This software is licensed as free software under the terms of the * New BSD License. See /LICENSE for more information. */ (function() { var platform = { ...
tectronics/afrimesh
dashboard/javascript/afrimesh.platform.js
JavaScript
bsd-3-clause
1,832
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ const fs =...
jhen0409/react-native
local-cli/dependencies/dependencies.js
JavaScript
bsd-3-clause
3,491
// 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. /** * @constructor */ WebInspector.EmulatedDevice = function() { /** @type {string} */ this.title = ""; /** @type {string} */ this.type ...
sgraham/nope
third_party/WebKit/Source/devtools/front_end/toolbox/EmulatedDevices.js
JavaScript
bsd-3-clause
22,136
/** * hex validator * * @link http://formvalidation.io/validators/hex/ * @author https://twitter.com/formvalidation * @copyright (c) 2013 - 2015 Nguyen Huu Phuoc * @license http://formvalidation.io/license/ */ (function($) { FormValidation.I18n = $.extend(true, FormValidation.I18n || {}, { ...
aragonwa/kcdev
src/js/scripts/form-validator/src/js/validator/hex.js
JavaScript
mit
1,165
"use strict"; var messages = require("./../messages"); var snippetUtils = require("./../snippet").utils; var utils = require("./utils.js"); var mainUtils = require("./../utils").utils; var fail = mainUtils.fail; var log = mainUtils.log; var connect = require("connect"); var http ...
AlanGuo/magicform
node_modules/grunt-browser-sync/node_modules/browser-sync/lib/server/index.js
JavaScript
mit
4,047
YUI.add('gallery-bt-container', function (Y, NAME) { /** * This module provides Container Widget which can handle scrollView with/without header/footer. * * @module gallery-bt-container */ var HEIGHT_CHANGE = 'heightChange', WIDTH_CHANGE = 'widthChange', SYNC_CONTENT = 'btSyncContent', fixedPos = Y.Bot...
inikoo/fact
libs/yui/yui3-gallery/build/gallery-bt-container/gallery-bt-container.js
JavaScript
mit
12,563
YUI.add('gallery-notify', function (Y, NAME) { /** Displays a message similar to Growl in OSX that fade and disappear on using Timer so it can pause the timeout on mouse enter and resume on mouse leave. Contains two objects using the parent/child widget model. @module gallery-notify */ var EVENTS_INIT ...
inikoo/fact
libs/yui/yui3-gallery/build/gallery-notify/gallery-notify.js
JavaScript
mit
14,731
'use strict'; var fs = require('fs'); var os = require('os'); var path = require('path'); var expect = require('chai').expect; var map = require('lodash/map'); var MockUI = require('../../helpers/mock-ui'); var MockAnalytics = require('../../helpers/mock-analytics...
selvagsz/ember-cli
tests/unit/commands/init-test.js
JavaScript
mit
7,437
import * as types from '../mutation_types'; export default { [types.SET_CURRENT_MERGE_REQUEST](state, currentMergeRequestId) { Object.assign(state, { currentMergeRequestId, }); }, [types.SET_MERGE_REQUEST](state, { projectPath, mergeRequestId, mergeRequest }) { const existingMergeRequest = stat...
iiet/iiet-git
app/assets/javascripts/ide/stores/mutations/merge_request.js
JavaScript
mit
1,148
$(document).ready(function() { var ws = new WebSocket("ws://127.0.0.1:8123/"); ws.onopen = function(e) { if (typeof console !== 'undefined') { console.info('WS open'); } }; ws.onmessage = function (e) { var data = JSON.parse(e.data), type = data.type, i = 0, $webcams = $('#webcams'), $img...
omusico/webcam-capture
webcam-capture-examples/webcam-capture-websockets/src/main/html/ws.js
JavaScript
mit
1,186
if (process.browser) { require("./tests"); require("./tests-jsx"); require("./tests-harmony"); require("./tests-flow"); require("./tests-babel"); }
forivall-old-repos/tacoscript-babel-shared-history
packages/horchata/test/_browser.js
JavaScript
mit
158
/*! * * Super simple wysiwyg editor v0.8.18 * https://summernote.org * * * Copyright 2013- Alan Hong. and other contributors * summernote may be freely distributed under the MIT license. * * Date: 2020-05-20T18:09Z * */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === '...
brucevsked/vskeddemolist
vskeddemos/htmljavascriptcss/bootstrapdemo/js/lib/summernote/lang/summernote-ru-RU.js
JavaScript
mit
11,350
describe('timepicker directive', function () { var $rootScope, element; beforeEach(module('ui.bootstrap.timepicker')); beforeEach(module('template/timepicker/timepicker.html')); beforeEach(inject(function(_$compile_, _$rootScope_) { $compile = _$compile_; $rootScope = _$rootScope_; $rootScope.time ...
ericsteele/retrospec.js
test/input/projects/ui-bootstrap/9205a57/src/timepicker/test/timepicker.spec.js
JavaScript
mit
28,499
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'iframe', 'si', { border: 'සැකිල්ලේ කඩයිම් ', noUrl: 'කරුණාකර රුපයේ URL ලියන්න', scrolling: 'සක්ක්‍රිය කරන්න', title: 'IFrame Properties', // MISSI...
SeeyaSia/www
web/libraries/ckeditor/plugins/iframe/lang/si.js
JavaScript
gpl-2.0
439
/* bender-tags: editor,unit */ var tools = bender.tools; bender.editor = { creator: 'replace', config: { // Start the editor in other mode. on: { loaded: function( evt ) { var editor = evt.editor; editor.addMode( 'source', function( callback ) { callback(); } ); }, instanceReady: func...
SeeyaSia/www
web/libraries/ckeditor/tests/plugins/wysiwygarea/framedwysiwyg.js
JavaScript
gpl-2.0
2,839
/** * Checks if `value` is less than `other`. * * @static * @memberOf _ * @since 3.9.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if `value` is less than `other`, * else `false`. * @example * * _.lt(1, 3); *...
Jorginho211/TFG
web/node_modules/lodash-es/lt.js
JavaScript
gpl-3.0
476
// var statements in strict evalWithBindings code behave like strict eval. var g = newGlobal('new-compartment'); var dbg = new Debugger(g); var hits = 0; dbg.onDebuggerStatement = function (frame) { assertEq(frame.evalWithBindings("var i = a*a + b*b; i === 25;", {a: 3, b: 4}).return, true); hits++; }; g.eval("'...
SlateScience/MozillaJS
js/src/jit-test/tests/debug/Frame-evalWithBindings-07.js
JavaScript
mpl-2.0
555
/* * Copyright (C) 2013 salesforce.com, 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 ...
DebalinaDey/AuraDevelopDeb
aura-components/src/main/components/uiExamples/text/textController.js
JavaScript
apache-2.0
899
//>>built define("dijit/nls/dijit-all_ja-jp",{"dijit/form/nls/validate":{invalidMessage:"\u5165\u529b\u3057\u305f\u5024\u306f\u7121\u52b9\u3067\u3059\u3002",rangeMessage:"\u3053\u306e\u5024\u306f\u7bc4\u56f2\u5916\u3067\u3059\u3002",_localized:{},missingMessage:"\u3053\u306e\u5024\u306f\u5fc5\u9808\u3067\u3059\u3002"},...
aconyteds/Esri-Ozone-Map-Widget
vendor/js/esri/arcgis_js_api/library/3.12/3.12compact/dijit/nls/dijit-all_ja-jp.js
JavaScript
apache-2.0
19,595
// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. load('../base.js'); load('ctor.js'); load('exec.js'); load('flags.js'); load('match.js'); load('replace.js'); load('search.js'); load('split.js'); loa...
macchina-io/macchina.io
platform/JS/V8/v8/test/js-perf-test/RegExp/run.js
JavaScript
apache-2.0
895
/* * 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 ...
pkuwm/incubator-eagle
eagle-webservice/src/main/webapp/app/public/js/srv/applicationSrv.js
JavaScript
apache-2.0
5,486
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * The production Assertion :: \b evaluates by returning an internal AssertionTester closure that takes a State argument x and performs the ... * * @path ch15/15.10/15.10.2/15.10.2....
popravich/typescript
tests/Fidelity/test262/suite/ch15/15.10/15.10.2/15.10.2.6/S15.10.2.6_A3_T8.js
JavaScript
apache-2.0
1,526
import { expect } from 'chai'; import { spec } from 'modules/danmarketBidAdapter'; import { newBidder } from 'src/adapters/bidderFactory'; describe('DAN_Marketplace Adapter', function () { const adapter = newBidder(spec); describe('inherited functions', function () { it('exists and is a function', function ()...
olafbuitelaar/Prebid.js
test/spec/modules/danmarketBidAdapter_spec.js
JavaScript
apache-2.0
10,074
import { contains } from "../utils/utils"; var MISMATCHED_TOKEN_EXCEPTION = "MismatchedTokenException"; var NO_VIABLE_ALT_EXCEPTION = "NoViableAltException"; var EARLY_EXIT_EXCEPTION = "EarlyExitException"; var NOT_ALL_INPUT_PARSED_EXCEPTION = "NotAllInputParsedException"; var RECOGNITION_EXCEPTION_NAMES = [ MISMAT...
BigBoss424/portfolio
v7/development/node_modules/less/packages/less/node_modules/chevrotain/lib_esm/src/parse/exceptions_public.js
JavaScript
apache-2.0
2,000
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview * `cr-events` provides helpers for handling events in Chrome Polymer elements. * * Example: * * <cr-events id="events"></cr-e...
guorendong/iridium-browser-ubuntu
ui/webui/resources/cr_elements/cr_events/cr_events.js
JavaScript
bsd-3-clause
1,512
/* * Copyright (c) 2014 The WebRTC 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 in the root of the source * tree. */ 'use strict'; var getMediaButton = document.querySelector('button#getMedia'); var createPeerCon...
fitraditya/samples
src/content/peerconnection/munge-sdp/js/main.js
JavaScript
bsd-3-clause
10,015
define(["./has"], function(has){ // module: // dojo/sniff /*===== return function(){ // summary: // This module sets has() flags based on the current browser. // It returns the has() function. }; =====*/ if(has("host-browser")){ var n = navigator, dua = n.userAgent, dav = n.appVersion, tv =...
kitsonk/dote
src/dojo/sniff.js
JavaScript
bsd-3-clause
2,793
module.exports = "shared";
NekR/webpack
test/configCases/split-chunks-common/hot-multi/shared.js
JavaScript
mit
27
'use strict'; var assert = require('assert'); var Table = require(__dirname + '/../lib/table'); var Foo = Table.define({ name: 'foo', columns: ['baz','bar'] }); test('operators', function() { assert.equal(Foo.baz.equals(1).operator, '='); assert.equal(Foo.baz.equal(1).operator, '='); assert.equal(Foo.baz.n...
AgtLucas/sequelize-fork
node_modules/sql/test/binary-clause-tests.js
JavaScript
mit
1,483
'use strict'; /* react-native-swiper @author leecade<leecade@163.com> */ Object.defineProperty(exports, '__esModule', { value: true }); 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.hasOwnPr...
wjb12/react-native-swiper
dist/index.js
JavaScript
mit
14,590
(function() { var __slice = [].slice; window.Reddish || (window.Reddish = {}); Reddish.CLIView = Backbone.View.extend({ el: '#cli', trim_regex: /^\s+|\s+$/g, trim_quotes_regex: /^(["'])(.*?)\1$/g, token_regex: /^(["']).*\1\s+$|^[^"'].*\s+$/, config_regex: /^CONFIG\s$/i, tokenize_regex: /...
reqshark/reddish
public/scripts/views/cli.js
JavaScript
mit
7,392
/* * Problem Statement: Given a rod of length n and an array of prices that contains prices of all pieces of size smaller than n. * Determine the maximum value obtainable by cutting up the rod and selling the pieces. */ function rodCuttingProblem (price) { /* Computes maximum money that can be earned by cutting a ro...
mohitkyadav/algos
rod_cutting_problem/rodCuttingProblem.js
JavaScript
mit
1,103
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: Operator x | y returns ToNumber(x) | ToNumber(y) es5id: 11.10.3_A3_T1.1 description: > Type(x) and Type(y) vary between primitive boolean and Boolean object ---*/ //C...
PiotrDabkowski/Js2Py
tests/test_cases/language/expressions/bitwise-or/S11.10.3_A3_T1.1.js
JavaScript
mit
892
(function( $, undefined ) { $.KBWidget({ name: "KBaseMAKResultCard", parent: "kbaseWidget", version: "1.0.0", options: { loadingImage: "../../widgets/images/ajax-loader.gif", title: "MAK Result Overview", isInCard: false, width: 40...
eapearson/ui-common
src/widgets/mak/kbaseMAKResultCard.js
JavaScript
mit
10,440
import _extends from "@babel/runtime/helpers/extends"; import _objectSpread from "@babel/runtime/helpers/objectSpread2"; import _slicedToArray from "@babel/runtime/helpers/slicedToArray"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; var _excluded = ["alt", "crossOrigin", "decod...
cdnjs/cdnjs
ajax/libs/vkui/4.27.2/components/Avatar/Avatar.js
JavaScript
mit
5,682
describe('NumericEditor', function () { var id = 'testContainer'; beforeEach(function () { this.$container = $('<div id="' + id + '"></div>').appendTo('body'); }); afterEach(function () { if (this.$container) { destroy(); this.$container.remove(); } }); var arrayOfObjects = functi...
awadnajilp/delivour
wp-content/themes/justshop/includes/tt-vc-extend/easy-tables-vc/assets/lib/jquery-handsontable/test/jasmine/spec/editors/numericEditorSpec.js
JavaScript
gpl-2.0
1,953
/*globals define: true, requirejs: true */ 'use strict'; requirejs.config({ config: { text: { useXhr: function (url, protocol, hostname, port) { // allow cross-domain requests // remote server allows CORS return true; } }, waitSeconds: 5 }, baseUrl: stat...
francbartoli/geonode
geonode/static/geonode/js/upload/time.js
JavaScript
gpl-3.0
12,727
/* Copyright 2015 Comcast Cable Communications Management, LLC 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 o...
mitchell852/traffic_control
traffic_portal/grunt/compass.js
JavaScript
apache-2.0
1,438
/** * @author mr.doob / http://mrdoob.com/ * @author alteredq / http://alteredqualia.com/ */ THREE.Face4 = function ( a, b, c, d, normal, color, materialIndex ) { this.a = a; this.b = b; this.c = c; this.d = d; this.normal = normal instanceof THREE.Vector3 ? normal : new THREE.Vector3(); this.vertexNormals ...
IntelLabs/RiverTrail-TourDeBlock
tourdeblock/lib/three/src/core/Face4.js
JavaScript
bsd-2-clause
602
DEBUG = false; // getTag: object -> unique id // tagToRef: unique id -> object // Note: this hashing scheme causes a huge memory leak (all b/c JS doesn't support weak references) (function() { var numIdx = 0, tagToRef = {} var _getTag = function(r) { if (r === null || r === undefined) return r swit...
Superconductor/superconductor
superconductorjs/lib/ometa-js/Worlds2_Library.js
JavaScript
bsd-3-clause
11,630
/* 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/Context.js */ /** * Class: Op...
usgin/NGDSDataExplorer
static/lib/ol2-master/lib/OpenLayers/Format/OWSContext.js
JavaScript
mit
2,690
import React from 'react' import toml from 'toml-js' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> <h1>{data.title}</h1> <p>Raw view of toml file</p> ...
MichaelCereda/michaelcereda.com
wrappers/toml.js
JavaScript
mit
416
define(["Tone/core/Tone", "Tone/component/LFO", "Tone/effect/Effect"], function(Tone){ "use strict"; /** * @class Tone.Tremelo modulates the amplitude of an incoming signal using a Tone.LFO. * The type, frequency, and depth of the LFO is controllable. * * @extends {Tone.Effect} * @constructor...
nickells/Tone.js
Tone/effect/Tremolo.js
JavaScript
mit
3,493
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 __()); }; define(["require", "exports", '../Observable'], function (requ...
binariedMe/blogging
node_modules/angular2/node_modules/@reactivex/rxjs/dist/amd/observables/InfiniteObservable.js
JavaScript
mit
943
var chai = require("chai"); var sinon = require("sinon"); var sinonChai = require("sinon-chai"); var expect = chai.expect; chai.use(sinonChai); var $ = require('jquery'); var Arrow = require('../app/models/arrow'); var ArrowCSSView = require('../app/views/arrow_css_view'); describe("ArrowCSSView", function () { va...
hojberg/cssarrowplease
test/arrow_css_view_test.js
JavaScript
mit
1,404
/* * common.js: Common utility functions for requesting against Loggly APIs * * (C) 2010 Nodejitsu Inc. * MIT LICENSE * */ var https = require('https'), util = require('util'), request = require('request'), loggly = require('../loggly'); var common = exports; // // Failure HTTP Response codes based...
ingshtrom/easy-jenkins-jobs
node_modules/winston-loggly/node_modules/loggly/lib/loggly/common.js
JavaScript
mit
5,006
var bson = require('../bson'); var expect = require('chai').expect; var mongodb = require('mongodb'); describe('BSON', function() { describe('toBSON', function() { it('should convert documents with native JS types', function() { var test = '{test: true, "s": "hello", i: -99.44}'; var result = bson.to...
kevingomes17/minutes-of-meeting
node_modules/mongo-express/test/bson.js
JavaScript
mit
5,511
/* flatpickr v4.4.6, @license MIT */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.nl = {}))); }(this, (function (exports) { 'use strict'; var f...
seogi1004/cdnjs
ajax/libs/flatpickr/4.4.6/l10n/nl.js
JavaScript
mit
1,410
/* ********************************************************* * * Copyright (c) 2005, Southpaw Technology * All Rights Reserved * * PROPRIETARY INFORMATION. This software is proprietary to * Southpaw Technolog, and is not to be reproduced, transmitted, * or disclosed in any way without writt...
sadanandb/pmt
src/context/javascript/PyMaya.js
JavaScript
epl-1.0
45,835
/* * 2007-2013 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy ...
ENG-SYSTEMS/Kob-Eye
Skins/Paranature/Js/tools.js
JavaScript
gpl-2.0
16,871
testServerTiming(document.currentScript.src, [{"name":"metric1"}])
anthgur/servo
tests/wpt/web-platform-tests/server-timing/resources/parsing/68.js
JavaScript
mpl-2.0
67
// This file has been autogenerated. var profile = require('../../../lib/util/profile'); exports.getMockedProfile = function () { var newProfile = new profile.Profile(); newProfile.addSubscription(new profile.Subscription({ id: '2c224e7e-3ef5-431d-a57b-e71f4662e3a6', name: 'Node CLI Test', user: { ...
MikhailTryakhov/azure-xplat-cli
test/recordings/arm-network-dns-zone-tests1/arm_network_dns_record-set_create_should_create_a_record-set_of_type_AAAA.nock.js
JavaScript
apache-2.0
3,861
CLI._startJson = function(cmd, opts, jsonVia, cb) { var appConf; var deployConf = null; var apps_info = []; if (typeof(cb) === 'undefined' && typeof(jsonVia) === 'function') cb = jsonVia; if (typeof(cmd) === 'object') { appConf = cmd; } else if (jsonVia == 'pipe') { appConf = json5.parse(cmd...
qhanam/Pangor
js/test/input/argument/pm2_fp2_new.js
JavaScript
apache-2.0
588
/* * Copyright 2013 Research In Motion Limited. * * 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 ...
blackberry/WebWorks-Community-APIs
BB10/ScreenDisplay/ext/community.screendisplay/client.js
JavaScript
apache-2.0
975
/** * @license * Visual Blocks Language * * Copyright 2014 Google Inc. * https://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...
UCSD-PL/typed-blockly
generators/dart.js
JavaScript
apache-2.0
7,173
// Copyright Joyent, Inc. and other Node contributors. // // 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, modi...
splunk/splunk-sdk-javascript
node_modules/events/tests/num-args.js
JavaScript
apache-2.0
2,398
'use strict'; // api test fixture which expose the following functions: // // yield $sql(sql, params) - execute sql with parameters. // yield $get(role, path, params) // yield $post(role, path, params) // yield $download(path, params) var config = require('../config'); var _ = require('lodash'), co = requir...
iamdalianmao/itranswarp.js
www/test/_remote.js
JavaScript
apache-2.0
7,621
(function () { "use strict"; WinJS.UI.Pages.define("/demos/bindingconverters/converters.html", { ready: function (element, options) { WinJS.Namespace.define("codeShow.Demos.bindingconverters", { isAdultConverter: new WinJS.Binding.converter(function(value) { ...
Impertatore/codeshow
codeShow.JS/codeShow.JS.Shared/demos/bindingconverters/bindingconverters.js
JavaScript
apache-2.0
610
// Copyright 2019 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. try { document.write('bypass'); } catch (e) { } const bypassSucess = document.body.innerText.indexOf('bypass') != -1; chrome.runtime.connect().postMessa...
ric2b/Vivaldi-browser
chromium/chrome/test/data/extensions/api_test/content_scripts/bypass_page_trusted_types/a.js
JavaScript
bsd-3-clause
338
module.exports={A:{A:{"4":"K C G E A B YB"},B:{"4":"D w Z I M H"},C:{"1":"0 1 3 5 6 7 8 s t u v z x","2":"WB AB","4":"F J K C G E A B D w Z I M H N O P Q R S T U V W X Y y a b c d e f L h i j k l m n o p q r UB OB"},D:{"1":"0 1 3 5 6 7 8 S T U V W X Y y a b c d e f L h i j k l m n o p q r s t u v z x BB IB DB FB ZB GB"...
severnsc/brewing-app
src/client/node_modules/caniuse-lite/data/features/wordwrap.js
JavaScript
mit
837
// // Test code cell execution. // casper.notebook_test(function () { this.evaluate(function () { var cell = IPython.notebook.get_cell(0); cell.set_text('a=10; print(a)'); cell.execute(); }); this.wait_for_output(0); // refactor this into just a get_output(0) this.then(fun...
mattvonrocketstein/smash
smashlib/ipy3x/html/tests/notebook/execute_code.js
JavaScript
mit
2,318
// TODO: cleanup indirection module.exports = require('./ActivitiesPage.jsx');
mmmavis/teach.webmaker.org
pages/activities/index.js
JavaScript
mpl-2.0
79
tinyMCE.addI18n('tw.template_dlg',{ title:"\u7BC4\u672C\u6A19\u984C", label:"\u7BC4\u672C", desc_label:"\u8AAA\u660E", desc:"\u4F7F\u7528\u7BC4\u672C", select:"\u9078\u64C7\u7BC4\u672C", preview:"\u9810\u89BD", warning:"\u8B66\u544A: \u66F4\u65B0\u5167\u5BB9\u8CC7\u6599\u53EF\u80FD\u6703\u4E0D\u898B\u3002 ", md...
numericube/twistranet
twistranet/themes/twistheme/static/js/tiny_mce/plugins/template/langs/tw_dlg.js
JavaScript
agpl-3.0
1,153
CKEDITOR.plugins.setLang("image2","fr",{alt:"Texte de remplacement",btnUpload:"Envoyer sur le serveur",captioned:"Captioned image",infoTab:"Informations sur l'image2",lockRatio:"Conserver les proportions",menu:"Propriétés de l'image2",pathName:"image",pathNameCaption:"caption",resetSize:"Taille d'origine",resizer:"Cli...
noritnk/otrs
var/httpd/htdocs/js/thirdparty/ckeditor-4.3/plugins/image2/lang/fr.js
JavaScript
agpl-3.0
458
// Copyright 2018 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: --expose-wasm --wasm-test-streaming --no-stress-opt load("test/message/wasm-module-and-function-name-async.js");
zero-rp/miniblink49
v8_7_5/test/message/wasm-module-and-function-name-streaming.js
JavaScript
apache-2.0
292
steal(function(){ steal.client = { trigger: function(type, data){ console.log('__EVT', JSON.stringify({ trigger: type, data: data })); }, evaluate: function(script, arg){ eval("var fn = "+script); var res = fn(arg); return res; } }; });
willametteuniversity/webcirc2
static/funcunit/node/client.js
JavaScript
apache-2.0
269
var cardsServices = angular.module('cardsServices', ['ngResource']); cardsServices.factory('Cards', ['$resource', function ($resource) { return $resource('/Scripts/app/all.json', {}, { query: { method: 'GET', params: { }, isArray: true } }); }]);
jongalloway/Angular-and-ASPNET-Build2014
AngularWebApi/Step6A/Scripts/app/localService.js
JavaScript
apache-2.0
276
define(function(require) { 'use strict'; var DialogContent = require('foreground/view/behavior/dialogContent'); var GoogleSignInView = Marionette.LayoutView.extend({ template: _.template(chrome.i18n.getMessage('googleSignInMessage')), behaviors: { DialogContent: { behaviorClass: DialogCo...
Ekrow/StreamusChromeExtension
src/js/foreground/view/dialog/googleSignInView.js
JavaScript
apache-2.0
379
/* * Copyright 2012, Gregg Tavares. * 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...
housekeeponline/webgl-fundamentals
webgl/resources/jquery-gman-circle.js
JavaScript
bsd-3-clause
9,916
// Copyright 2017 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. (async function() { TestRunner.addResult(`Tests the empty web animations do not show up in animation timeline.\n`); await TestRunner.loadLegacyModule(...
scheib/chromium
third_party/blink/web_tests/http/tests/devtools/animation/animation-empty-web-animations.js
JavaScript
bsd-3-clause
980
import getLength from './_getLength.js'; import isFunction from './isFunction.js'; import allKeys from './allKeys.js'; // Since the regular `Object.prototype.toString` type tests don't work for // some types in IE 11, we use a fingerprinting heuristic instead, based // on the methods. It's not great, but it's the best...
ealbertos/dotfiles
vscode.symlink/extensions/ms-mssql.mssql-1.11.1/node_modules/underscore/modules/_methodFingerprint.js
JavaScript
mit
1,498
import { _isFinite } from './_setup.js'; import isSymbol from './isSymbol.js'; // Is a given object a finite number? export default function isFinite(obj) { return !isSymbol(obj) && _isFinite(obj) && !isNaN(parseFloat(obj)); }
ealbertos/dotfiles
vscode.symlink/extensions/ms-mssql.mssql-1.11.1/node_modules/underscore/modules/isFinite.js
JavaScript
mit
230
function activateCombatModal(id) { const update = { show_combat_modal: 1 }; update['repeating_arms_' + id + '_arm_trigger'] = 0; update.combat_roll_mod = 0; getAttrs(['repeating_arms_' + id + '_arm'], attributes => { update.combat_attack = attributes['repeating_arms_' + id + '_arm']; setAttrs(update, {...
suldae/roll20-character-sheets
Miseries & Misfortunes/js/rollers/combat_roll.js
JavaScript
mit
6,038
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'undo', 'ku', { redo: 'هەڵگەڕاندنەوە', undo: 'پووچکردنەوە' } );
gmuro/dolibarr
htdocs/includes/ckeditor/ckeditor/_source/plugins/undo/lang/ku.js
JavaScript
gpl-3.0
259
/* -*- 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/. */ var gTestfile = 'regress-416628.js...
tejassaoji/RhinoCoarseTainting
testsrc/tests/js1_5/Regress/regress-416628.js
JavaScript
mpl-2.0
3,949
'use strict' exports.__esModule = true const pattern = /(^|;)\s*(export|import)((\s+\w)|(\s*[{*=]))/m /** * detect possible imports/exports without a full parse. * * A negative test means that a file is definitely _not_ a module. * A positive test means it _could_ be. * * Not perfect, just a fast way to disqual...
BigBoss424/portfolio
v8/development/node_modules/eslint-module-utils/unambiguous.js
JavaScript
apache-2.0
890
module.exports = require("core-js-pure/features/reflect/delete-metadata");
BigBoss424/portfolio
v8/development/node_modules/@babel/runtime-corejs3/core-js/reflect/delete-metadata.js
JavaScript
apache-2.0
74
/* * 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 ...
mcgilman/nifi
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-error-handler.js
JavaScript
apache-2.0
8,215
// 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. define('data_receiver', [ 'device/serial/data_stream.mojom', 'device/serial/data_stream_serialization.mojom', 'mojo/public/js/core', 'mojo...
markYoungH/chromium.src
extensions/renderer/resources/data_receiver.js
JavaScript
bsd-3-clause
10,244
var should = require('should'), getCreatorTwitterUrl = require('../../../server/data/meta/creator_url'); describe('getCreatorTwitterUrl', function () { it('should return author twitter url if post and has url', function () { var twitterUrl = getCreatorTwitterUrl({ context: [...
SkynetInc/steam
core/test/unit/metadata/creator_url_spec.js
JavaScript
mit
3,273
#! /usr/bin/env node /** * @license * Copyright Google Inc. 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 */ // git commit-msg hook to check the commit message against Angular conventions // see `/CONTRIB...
trshafer/angular
scripts/git/commit-msg.js
JavaScript
mit
842