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
import fixtures from "test/fixtures"; import some from "lodash/some"; export default class ApiClient { call = (endpoint, methodIgnored, optionsIgnored) => { const collectionEndpoints = [ /\/api\/v1\/projects\/\w*\/relationships\/resources/, /\/api\/v1\/projects\/\w*\/relationships\/twitter_queries/, ...
zdavis/manifold
client/src/api/__mocks__/client.js
JavaScript
gpl-3.0
914
'use strict'; const config = require('../lib/config'); const fork = require('../lib/fork').fork; const log = require('../lib/log'); const path = require('path'); const knex = require('../lib/knex'); const {CampaignStatus, CampaignType, CampaignMessageStatus} = require('../../shared/campaigns'); const campaigns = requi...
andris9/mailtrain
server/services/sender-master.js
JavaScript
gpl-3.0
23,954
frappe.provide('erpnext.stock'); erpnext.stock.ItemDashboard = Class.extend({ init: function(opts) { $.extend(this, opts); this.make(); }, make: function() { var me = this; this.start = 0; if(!this.sort_by) { this.sort_by = 'projected_qty'; this.sort_order = 'asc'; } this.content = $(frappe.ren...
adityaduggal/erpnext
erpnext/stock/dashboard/item_dashboard.js
JavaScript
gpl-3.0
5,869
// I18N constants // LANG: "en", ENCODING: UTF-8N { "Toggle Table Operations" : "Toggle Table Operations", "Align" : "Align", "All four sides" : "All four sides", "Background" : "Background", "Baseline" : "Baseline", "Border" : "Border", "Borders" : "Borders", "Bottom" : "Bottom", "Style [CSS]" : "Style [C...
ryumaru/ryuzinewriter
xinha4ryuzine/plugins/TableOperations/lang/en.js
JavaScript
mpl-2.0
3,080
/*###################################################################################################################### # VECNet CI - Prototype # Date: 4/12/2013 # Institution: University of Notre Dame # Primary Authors: # Robert Jones <Robert.Jones.428@nd.edu> #################################################...
vecnet/vnetsource
ts_emod/static/ts_emod/js/ts_emod.js
JavaScript
mpl-2.0
1,251
module.exports = { css: require('./css'), l10n: require('./l10n'), }
df-a/par-nl
node_modules/mdn-data/index.js
JavaScript
mpl-2.0
73
/** * This file is part of Shuup. * * Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. * * This source code is licensed under the AGPLv3 license found in the * LICENSE file in the root directory of this source tree. */ const fileActions = require("../actions/fileActions"); const menuItem = require("./men...
hrayr-artunyan/shuup
shuup/admin/modules/media/static_src/media/browser/menus/fileContextMenu.js
JavaScript
agpl-3.0
700
const { expect } = require('chai'); const appPromise = require('../../../src/app'); const testObjects = require('../helpers/testObjects')(appPromise); const { userModel } = require('../../../src/services/user/model'); describe('firstLogin Service', () => { let app; let server; before(async () => { app = await a...
schul-cloud/schulcloud-server
test/services/user/firstLogin.integration.test.js
JavaScript
agpl-3.0
1,672
import { avatarUploader } from '../avatarUploader'; import '../../src/modules/postgres/postgres'; avatarUploader();
scrollback/pure
tools/tests/avatarUploaderTest.js
JavaScript
agpl-3.0
117
/** * Copyright (C) 2015 Deco Software Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be...
decosoftware/deco-ide
desktop/src/process/syncServiceController.js
JavaScript
agpl-3.0
1,645
module.exports = function(api) { var validEnv = ['development', 'test', 'production'] var currentEnv = api.env() var isDevelopmentEnv = api.env('development') var isProductionEnv = api.env('production') var isTestEnv = api.env('test') if (!validEnv.includes(currentEnv)) { throw new Error( 'Please...
PopulateTools/gobierto
babel.config.js
JavaScript
agpl-3.0
1,661
/// /// @title Backbone.js /// @version 1 /// Provides the structure and documention for Backbone (function () { "use strict"; var Backbone = {}; /// Backbone model Backbone.Model = function () { }; /// @arg properties /// @opt classProperties /// /// To create a Model class of your own, you extend Backbone...
indx/indx-core
apps/service_docs/docs/abstracts/backbone-abstract.js
JavaScript
agpl-3.0
3,393
/** * Copyright (C) 2012 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 distributed in the...
va7map/canvas-lms
public/javascripts/submit_assignment.js
JavaScript
agpl-3.0
19,998
/* ************************************************************************ qooxdoo - the new era of web development http://qooxdoo.org Copyright: 2004-2011 1&1 Internet AG, Germany, http://www.1und1.de License: LGPL: http://www.gnu.org/licenses/lgpl.html EPL: http://www.eclipse.org/org/d...
sebastienhupin/qxrad
qooxdoo/framework/source/class/qx/io/request/Jsonp.js
JavaScript
lgpl-3.0
5,911
/*! carousel-3d - v0.2.0 - 2015-03-13 * Copyright (c) 2015 PAIO co.,Ltd.; Licensed MIT */ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o...
shreyannag/aryans2k13
js/jquery.carousel-3d.js
JavaScript
unlicense
13,679
/* ============================================================= * bootstrap-typeahead.js v2.0.0 * http://twitter.github.com/bootstrap/javascript.html#typeahead * ============================================================= * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "L...
APHLK/ePT-Repository
public/js/bootstrap/bootstrap-typeahead.js
JavaScript
apache-2.0
7,704
(function($, angular) { // document.addEventListener("DOMContentLoaded", function() { // angular.bootstrap($("#my-app"), ["MyApp"]); // }); $(function() { angular.bootstrap($("#my-app"), ["MyApp"]); }); })(jQuery, angular);
training4developers/angular_11162015
unit_testing/js/app.js
JavaScript
apache-2.0
235
/** * * @author Vitaly Zobnin (v.zobnin@samsung.com) * @copyright Copyright (c) 2016 Samsung Electronics, Visual Display Division. All Rights Reserved. **/
VZse/test
js/views/reciept_list.js
JavaScript
apache-2.0
165
module.exports.application = { name: "Address Book - A Sails web-app, with an in-memory Database", author: "Shameer Kunjumohamed", copyright: "&copy; The Great Internet Factory, Dubai." }
sameerean/sails-crud-inmemory
config/application.js
JavaScript
apache-2.0
199
/** * Cesium - https://github.com/AnalyticalGraphicsInc/cesium * * Copyright 2011-2017 Cesium Contributors * * 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/l...
missioncommand/emp3-web
src/mapengine/cesium/js/lib/cesium/Workers/createCorridorGeometry.js
JavaScript
apache-2.0
950,440
require('enyo'); /** * [JSON]{@glossary JSON} related methods and wrappers. * * @module enyo/json * @public */ module.exports = { /** * Wrapper for [JSON.stringify()]{@glossary JSON.stringify}. Creates a * [JSON]{@glossary JSON} [string]{@glossary String} from an * [object]{@glossary Object}. * * @see {@gloss...
enyojs/enyo
src/json.js
JavaScript
apache-2.0
1,894
/*! * ${copyright} */ // Provides control sap.m.FacetFilterItem. sap.ui.define(['./ListItemBase', './library'], function(ListItemBase, library) { "use strict"; /** * Constructor for a new <code>FacetFilterItem</code>. * * @param {string} [sId] ID for the new control, generated automatically if no ID is g...
SQCLabs/openui5
src/sap.m/src/sap/m/FacetFilterItem.js
JavaScript
apache-2.0
2,847
/* * 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/networkManagement2/lib/models/applicationGatewayAvailableSslOptions.js
JavaScript
apache-2.0
4,244
const _level = require('level'); const promisify = require('./util/promisify'); const level = promisify(_level); class LevelDbSerializer { constructor({ cacheDirPath }) { this.path = cacheDirPath; this.leveldbLock = Promise.resolve(); } read() { const start = Date.now(); const moduleCache = {}...
BigBoss424/portfolio
v6/node_modules/hard-source-webpack-plugin/lib/SerializerLeveldb.js
JavaScript
apache-2.0
1,584
/** * Copyright 2016 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...
adup-tech/amphtml
testing/fake-dom.js
JavaScript
apache-2.0
18,525
define(["underscore", "backbone", "fact", "meta4beta/model/Default"], function (_, Backbone, fact) { fact.factory.File = function(_options) { var options = fact.mutate(_options) // internal constants var _DEBUG = options.debug || fact.DEBUG var storeType = options.store || "file" ...
troven/meta4nms
todo/src/static/js/meta4beta/model/File.js
JavaScript
apache-2.0
1,298
/* * Copyright 2015 IBM Corp. * * 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...
EclairJS/eclairjs-node
test/lib/spark.js
JavaScript
apache-2.0
3,207
import React, {Component, PropTypes} from 'react'; import RelatedTests from '../../containers/RelatedTests'; import {VText, VCheckBox, MapSelect, VSelect} from '../shared'; import {WMSVERSION} from '../../constants'; class CreateWMSTest extends Component { constructor(props) { super(props); let selectedMapI...
missioncommand/emp3-web
src/validation/js/components/generalTests/CreateWMSTest.js
JavaScript
apache-2.0
11,010
'use strict'; let group = { _id: "5c8d0c505653de3985aa0ffe", locked: true, code: "owner", name: "Owner Group", description: "this is the owner group that owns the dashboard", config: { allowedPackages: { DSBRD: [ "DSBRD_OWNER" ] } }, ...
soajs/soajs.urac
test/data/stress/urac/groups/owner.js
JavaScript
apache-2.0
427
/* This file runs through all of the supported algorithms to test if they are functioning properly. */ function testEncodeDecode(type, encodedString, rawData) { // First turn the encoded string in to the raw data. var encodeBuffer = Ti.createBuffer({ length:rawData.length }); Crypto.encodeData({ ...
appcelerator-services/x-platform
modules/android/ti.crypto/2.0.1/example/test.js
JavaScript
apache-2.0
15,514
[ { "_id": { "$oid": "56b8f05cf9fcee1b00000010" }, "title": "sada", "body": "body3", "user_id": "56b8d7caf9fcee1b00000001", "updated_at": { "$date" : "2016-02-08T20:02:12.985Z"}, "created_at": { "$date" : "2016-02-08T19:45:32.501Z"} }, { "_id": { "$oid": "56b8da59f9fcee1b00000007" },...
VarchukVladimir/gizer
test_data/oplog2/after_collection_posts.js
JavaScript
apache-2.0
857
// @flow // /** * these are all the named redux actions */ const TYPES: {[key: ActionStrings]: ActionStrings} = { SET_STATE_USER: 'SET_STATE_USER', SET_STATE_DATA: 'SET_STATE_DATA', ADD_TODO: 'ADD_TODO', TOGGLE_TODO: 'TOGGLE_TODO', REDUX_INIT: 'REDUX_INIT', }; function actionInit() { return { type: ...
HyperSprite/starterproject_todolist_react_redux_firebase_ts_md
web/src/client/container/actions.js
JavaScript
apache-2.0
936
/* * Copyright 2016 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...
GerHobbelt/closure-compiler
test/com/google/javascript/jscomp/runtime_tests/module_tests/export_spec_test.js
JavaScript
apache-2.0
715
module.exports = require('./swagger');
maximilien/cf-swagger
node_modules/swagger-to-markdown/index.js
JavaScript
apache-2.0
39
function shellcat(param) { param = param.trim(); var containertext = ''; switch (param) { case 'skills.txt': containertext += '<div class="oldshell">[guest@razorgank ~] $ cat skills.txt</div>'; containertext += '<div class="oldshell">&nbsp;&nbsp;Here are my current skillset:<...
ricasiano/razorgank-hooman
linuxterminal/js/shellcat.js
JavaScript
apache-2.0
3,743
import Curve from './Curve'; import Canvas from '../core/Canvas'; /** * @classdesc * Quadratic Bezier Curve * @category geometry * @extends Curve * @param {Coordinate[]|Number[][]} coordinates - coordinates of the curve * @example * var curve = new QuadBezierCurve( * [ * [121.47083767181408,31.214...
MapTalks/layertalks
src/geometry/QuadBezierCurve.js
JavaScript
apache-2.0
1,551
N.Functions.IO = {}; N.Functions.IO.funcIOErrorCheck = (Parameters) => { try { // Execute and return whatever funcToTry returns return Parameters.funcToTry(); } catch (Error) { N.Functions.Dialogs.funcShow({ strDialogSlug: 'io-error' }); if (Parameters.funcCatch) { Parameters.funcCatch(); ...
n457/Uncolored
app-dev/js/functions/IO.functions.js
JavaScript
apache-2.0
7,160
/** * jQuery Form Validator * ------------------------------------------ * * Romanian language package * * @website http://formvalidator.net/ * @license MIT * @version 2.2.141 */ (function($, window) { 'use strict'; $(window).bind('validatorsLoaded', function() { $.formUtils.LANG = { errorTitl...
mschlenstedt/Loxberry
webfrontend/html/system/scripts/form-validator/lang/ro.dev.js
JavaScript
apache-2.0
2,728
describe('environment-rolename-filter', function() { var environmentHtml = '<div ng-show="machines[environment.Id][\'Offline\']" class="">' + ' <h5 class="separator">Offline</h5>'+ ' <machine-list machines="machines[environment.Id][\'Offline\']" show="show" class="ng-isolate-scope"><u...
davidroberts63/OctoPygmy
spec/environment-role-name-filter.js
JavaScript
apache-2.0
7,896
"use strict"; const TextMessage = require(__dirname + "/../../lib/message/text-message"); exports.testBuildTextMessageSanity = test => { const text = "hello"; const message = new TextMessage(text); const messageBody = { "type": "text", "text": text }; test.deepEqual(message.toJson(), messageBody); test.ok(!mess...
russll/viber-bot-node
test/message/text-message-test.js
JavaScript
apache-2.0
660
/** * Exports the {@link module:enyo/StylesheetSupport~StylesheetSupport} mixin. * @module enyo/StylesheetSupport */ require('enyo'); var kind = require('./kind'); var Style = require('./Style'); /** * The {@link module:enyo/StylesheetSupport~StylesheetSupport} {@glossary mixin} is used to add a * "side-car" inl...
enyojs/enyo
src/StylesheetSupport.js
JavaScript
apache-2.0
2,142
define(["Ti/_/declare", "Ti/_/dom", "Ti/_/UI/Element", "Ti/_/lang", "Ti/_/string", "Ti/_/Layouts", "Ti/_/style", "Ti/UI"], function(declare, dom, Element, lang, string, Layouts, style, UI) { return declare("Ti.UI.View", Element, { _parent: null, constructor: function() { this.constants.__values__.children =...
reaction/fiasco
build/mobileweb/titanium/Ti/UI/View.js
JavaScript
apache-2.0
2,062
/* eslint-env mocha */ const {expect} = require('chai'); const {getLink} = require('../lib/string-utils'); describe('stringUtils module', () => { describe('getLink method', () => { it('should return the url from a string', () => { const str = `Consider lazy - loading offscreen and hidden images after all c...
addyosmani/psi
test/string-utils.test.js
JavaScript
apache-2.0
824
/** * @license * Copyright 2016 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 ...
russitto/shaka-player
lib/media/text_engine.js
JavaScript
apache-2.0
9,765
layui.config({ base : "js/" }).use(['form','layer','jquery','laypage'],function(){ var form = layui.form(), layer = parent.layer === undefined ? layui.layer : parent.layer, laypage = layui.laypage, $ = layui.jquery; //加载页面数据 var newsData = ''; $.get("../../json/newsList.json", function(data){ var newArray...
GodGrounp/ssm
src/main/webapp/static/page/news/newsList.js
JavaScript
apache-2.0
11,187
import {Services} from '#service'; import {user} from '#utils/log'; import {FakeWindow} from '#testing/fake-dom'; import { registerServiceBuilderForDoc, resetServiceForTesting, } from '../../../../../src/service-helpers'; import { AmpScript, AmpScriptService, SanitizerImpl, StorageLocation, setUpgradeF...
ampproject/amphtml
extensions/amp-script/0.1/test/unit/test-amp-script.js
JavaScript
apache-2.0
20,397
function onRequest(context) { var userModule = require("/modules/user.js")["userModule"]; var response = userModule.getRoles(); if (response["status"] == "success") { context["roles"] = response["content"]; } response = userModule.getUsersByUsername(); if (response["status"] == "success"...
dulichan/product-mdm
modules/apps/jaggery/mdm/src/mdm/units/policy-create/policy-create.js
JavaScript
apache-2.0
399
/* * Copyright 2015-2016 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "lice...
aws/aws-iot-device-sdk-js
examples/browser/mqtt-webpack/aws-configuration.js
JavaScript
apache-2.0
1,022
/** * Simple plugin to reload content for an element. Usage: * * $("#container").loadFragment(); * * Note that the element must have an ID! * * @param {type} $ * @returns {undefined} */ (function ($) { var DEFAULT = { url: null, selector: null, complete: null }; var meth...
dangokuson/Harvest-JP
harvest/src/main/webapp/resources/js/plugin/reload-1.0/jquery.load-fragment.js
JavaScript
apache-2.0
1,950
import { h } from '../ionic-site-components.core.js'; class IonicSlider { constructor() { this.slideCount = 1; this.timer = null; this.old = null; this.upcoming = null; this.slideDelay = 10000; this.current = 0; this.status = []; this.ticker ...
ionic-team/ionic-site
content/js/stencil/esm/es2017/build/uy47nvwg.sc.entry.js
JavaScript
apache-2.0
3,798
"use strict"; angular.module("standups.ctrl", ["standups.helpers", "standups.services"]) /* Global view port controller. Handles all views */ .controller("ViewportCtrl", ["$scope", "Extension", function ($scope, Extension) { $scope.Extension = Extension; Extension.Screen.scroll(function (extE...
neti-soft/standups
src/js/controllers.js
JavaScript
apache-2.0
6,378
var assert = require('assert'); var q = require('q'); var sinon = require('sinon'); describe('jive', function () { beforeEach(function() { this.sandbox = sinon.sandbox.create(); this.sandbox.inject(this); }); afterEach(function() { this.sandbox.restore(); this['jive'].even...
jivesoftware/jive-sdk
test/unit/community/testcases/remove.js
JavaScript
apache-2.0
3,632
'use strict'; // ========================================================================= // // phase model and phase base model // // ========================================================================= angular.module('project').factory ('PhaseModel', function (ModelBase, _) { // // build the project model by ...
logancodes/esm-server
modules/phases/client/services/phase.model.service.js
JavaScript
apache-2.0
2,564
// Copyright 2021 Google 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
google-business-communications/bm-nodejs-live-agent-transfer
step-3/solutions/routes/index.js
JavaScript
apache-2.0
12,804
import { GammaEncoding, LinearEncoding, RGBEEncoding, RGBM7Encoding, RGBM16Encoding, RGBDEncoding, sRGBEncoding } from '../../../../build/three.module.js'; import { TempNode } from '../core/TempNode.js'; import { ConstNode } from '../core/ConstNode.js'; import { FloatNode } from '../inputs/FloatNode.js'; import...
sinorise/sinorise.github.io
three/jsm/nodes/utils/ColorSpaceNode.js
JavaScript
apache-2.0
8,623
/* * 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 ...
forcedotcom/aura
aura-components/src/main/components/auradocs/example/exampleHelper.js
JavaScript
apache-2.0
2,509
var express = require('express'); var misc = require('rackspace-shared-utils/lib/misc'); exports.PROXY_ERROR_CODE_TO_HTTP_CODE_MAP = { 'NR-1000': 400, 'NR-1001': 400, 'NR-1002': 401, 'NR-2000': 400, 'NR-5000': 500 }; exports.getTestHttpServer = function(port, ip, callback) { ip = ip || '127.0.0.1'; v...
racker/service-registry
node_modules/rproxy/lib/util/test.js
JavaScript
apache-2.0
1,038
//// [blockScopedEnumVariablesUseBeforeDef.ts] function foo1() { return E.A enum E { A } } function foo2() { return E.A const enum E { A } } //// [blockScopedEnumVariablesUseBeforeDef.js] function foo1() { return E.A; var E; (function (E) { E[E["A"] = 0] = "A"; })(E ||...
Microsoft/TypeScript
tests/baselines/reference/blockScopedEnumVariablesUseBeforeDef.js
JavaScript
apache-2.0
383
/* Copyright 2016 The TensorFlow 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 required by applicable law or a...
BrentDorsey/pipeline
predict/guild/priv/components/tf-graph-common/test/util-test.js
JavaScript
apache-2.0
2,256
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: | If P's characters do not have the form Pattern, then throw a SyntaxError exception es5id: 15.10.4.1_A9_T2 description: Pattern is "[{-z]" ---*/ //CHECK#1 try { $ER...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/RegExp/S15.10.4.1_A9_T2.js
JavaScript
bsd-2-clause
542
/*! * OS.js - JavaScript Operating System * * Copyright (c) 2011-2015, Anders Evenrud <andersevenrud@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions o...
nelug/OS.js-v2
src/javascript/gui/statusbar.js
JavaScript
bsd-2-clause
3,145
/* ========================================= * Copyright (c) 2015-present, Billgo. * Copyright (c) 2015-present, Facebook, Inc. * * All rights reserved. *======================================== */ import Heap from "./Heap"; class IntegerBufferSet { constructor() { this._valueToPositionMap = {}; this._size ...
teasim/helpers
source/addons/struct/IntegerBufferSet.js
JavaScript
bsd-3-clause
3,456
alert('needed in Danish');
assetgraph/assetgraph-builder
testdata/transforms/buildProduction/systemJsConditionals/localeJs/neededInDanish.js
JavaScript
bsd-3-clause
27
self.addEventListener('crossoriginconnect', function(event) { event.acceptConnection(false); }); navigator.services.addEventListener('connect', function(event) { event.respondWith({accept: false}); });
crosswalk-project/blink-crosswalk
LayoutTests/http/tests/navigatorconnect/resources/rejecting-worker.js
JavaScript
bsd-3-clause
207
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * Based on ...
chentsulin/relay
packages/relay-compiler/util/murmurHash.js
JavaScript
bsd-3-clause
2,053
chrome.extension.sendMessage({}, function(response) { var readyStateCheckInterval = setInterval(function() { if (document.readyState === "complete") { clearInterval(readyStateCheckInterval); var url = window.location.search.split("?")[1].split("&"), http = new XMLHttpRequest(), params = {...
ginlane/spree_importer
js/spree_chrome/src/inject/inject.js
JavaScript
bsd-3-clause
938
var ReParse = require('reparse').ReParse; // --------------- grammar bits ------------------- function expr() { return this.chainl1(term, disjunction); } function term() { return this.chainl1(notFactor, conjunction); } function notFactor() { return this.choice(negation, factor); } function factor() { retur...
bloomtime/boolean-expression-js
expression.js
JavaScript
bsd-3-clause
2,497
const r = module.exports = require('express').Router() const npm = require('../npm') const middleware = require('../middleware') const aw = require('./asyncawait') const bodyParser = require('body-parser') // forward audit requests to upstream r.post( '/-/npm/v1/security/audits', middleware.auth.read, bodyParser...
jdxcode/npm-register
lib/routes/audit.js
JavaScript
isc
462
'use strict'; var assert = require('assert'); var fs = require('fs'); var DataCipherKeyIv = require('../crypto-tools/cipher-key-iv'); var DeterministicKeyIv = require('../crypto-tools/deterministic-key-iv'); var crypto = require('crypto'); var path = require('path'); var targz = require('node-tar.gz'); var os = requir...
bleffew99/Token_Broadcast
src/node_modules/storj-lib/lib/crypto-tools/keyring.js
JavaScript
mit
9,776
'use strict'; module.exports = Object.assign({}, { roomSchema: require('./room') });
astesio/api-gateway
src/api/payment/ticket/schemas/index.js
JavaScript
mit
89
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = isUppercase; var _assertString = _interopRequireDefault(require("./util/assertString")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function isUppercase(str) { (0, ...
chriso/validator.js
lib/isUppercase.js
JavaScript
mit
463
module.exports={A:{A:{"2":"J C G E B A TB"},B:{"2":"D","260":"X g H L"},C:{"1":"0 2 4 x y z s r","2":"3 RB F I J C G E B A D X g H L M N O P Q R S T U V W t PB OB","516":"Y Z a b c d e f K h i j k l m n o p q v w"},D:{"1":"0 2 4 8 s r DB AB SB BB","2":"F","16":"I J C G E B A D X g","260":"z","772":"H L M N O P Q R S T ...
UrbanRiskSlumRedevelopment/Maya
node_modules/caniuse-lite/data/features/css-in-out-of-range.js
JavaScript
mit
902
/*! * CanJS - 2.1.2 * http://canjs.us/ * Copyright (c) 2014 Bitovi * Mon, 16 Jun 2014 20:44:18 GMT * Licensed MIT * Includes: CanJS default build * Download from: http://canjs.us/ */ steal('can/util', 'can/map', 'can/list', function (can) { // ## model.js // (Don't steal this file directly in your code.) /...
winnlab/Polpharma
public/js/lib/canjs/steal/canjs/model/model.js
JavaScript
mit
66,521
define("ace/mode/ft_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var FtHighlightRules = function() { ...
tomekstach/tinker
lib/ace/mode-ft.js
JavaScript
mit
2,672
'use strict'; require('mocha'); var assert = require('assert'); var hbs = require('handlebars').create(); var helpers = require('..'); helpers.inflection({handlebars: hbs}); describe('inflection', function() { describe('inflect', function() { it('should return the plural or singular form of a word based on a va...
helpers/handlebars-helpers
test/inflection.js
JavaScript
mit
1,234
(function() { function log(text) { window['__ATA_DEBUG'] && (typeof console !== 'undefined') && (console.info) && console.info(new Date(), ' -> ', text.replace('http', 'htt_p')); } var AD_SERVER_URL = '//s.pubmine.com/'; // !!! [VERY IMPORTANT] !!!! // t...
redcinelli/tp4_repl
hbaseTuto_files/showad.js
JavaScript
mit
18,876
document.onload = function() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { var pos = {lat: position.coords.latitude,lng: position.coords.longitude}; alert(pos) }); } }
filipefilardi/FeedMe
target/classes/public/position.js
JavaScript
mit
244
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
lmazuel/azure-sdk-for-node
lib/services/dataLake.Store/lib/filesystem/models/adlsError.js
JavaScript
mit
1,873
// 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...
ptmt/flow-declarations
test/node/test-asynclistener-error-throw-in-before-multiple.js
JavaScript
mit
2,346
/* Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("specialchar","en-gb",{euro:"Euro sign",lsquo:"Left single quotation mark",rsquo:"Right single quotation mark",ldquo:"Left double ...
jeroendesloovere/forkcms
src/Backend/Core/Js/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js
JavaScript
mit
4,563
/** * VexFlow - Beam Tests * Copyright Mohit Muthanna 2010 <mohit@muthanna.com> */ Vex.Flow.Test.Beam = {} Vex.Flow.Test.Beam.Start = function() { module("Beam"); Vex.Flow.Test.runTest("Simple Beam", Vex.Flow.Test.Beam.simple); Vex.Flow.Test.runTest("Multi Beam", Vex.Flow.Test.Beam.multi); Vex.Flow.Test.ru...
amitgur/vexflow
tests/beam_tests.js
JavaScript
mit
23,590
(function (angular, moment) { 'use strict'; angular.module('birdyard.utilities') .directive('myTime', function () { return { restrict: 'A', replace: false, template: '<span>{{date}}</span>', link: function (scope, element, attrs) { var utc = parseInt(attrs['myTime'], 1...
robotnoises/bebop
src/modules/utilities/directives/myTime.js
JavaScript
mit
572
/** * The config plugin matches prefixed DOM attributes * to property setters and method calls on the spirit. */ describe('gui.EventPlugin', function likethis() { // Preparations .............................................................. /** * Before test. */ beforeEach(function() { this.sandbox = d...
wiredearp/spiritual-gui
test/tests/specific/gui.EventPlugin.spec.js
JavaScript
mit
1,661
/** * @fileoverview Disallow parenthesesisng higher precedence subexpressions. * @author Michael Ficarra */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ var rule = req...
pmcelhaney/eslint
tests/lib/rules/no-extra-parens.js
JavaScript
mit
24,825
(function() { 'use strict'; angular.module('material.components.datepicker') .directive('mdCalendarMonth', mdCalendarMonthDirective); /** * Private directive consumed by md-calendar. Having this directive lets the calender use * md-virtual-repeat and also cleanly separates the month DOM constructi...
mightyselva/material
src/components/datepicker/calendarMonth.js
JavaScript
mit
8,899
import tape from "tape"; import utils from "./utils"; import postcssnext from ".."; tape("postcss-cssnext is a postcss plugin", t => { t.ok( typeof postcssnext.process === "function", "should have the postcss process() function available" ); t.end(); }); tape("cssnext regression test", t => { const ...
cssnext/cssnext
src/__tests__/index.js
JavaScript
mit
657
var _eq = require('./_eq'); module.exports = function _lastIndexOf(list, item, from) { var idx = list.length; if (typeof from == 'number') { idx = from < 0 ? idx + from + 1 : Math.min(idx, from + 1); } while (--idx >= 0) { if (_eq(list[idx], item)) { return idx; } } return -1; };
guptaanoop2005/ramda
src/internal/_lastIndexOf.js
JavaScript
mit
313
(function( $ ) { $.fn.activeNavigation = function(selector) { var pathname = window.location.pathname var extension_position; var href; var hrefs = [] $(selector).find("a").each(function(){ // Remove href file extension extension_position = $(this).att...
Vitaa/ActiveNavigation
jquery.activeNavigation.js
JavaScript
mit
813
//>>built define("clipart/deletethis",["dojo/_base/declare","clipart/_clipart"],function(_1,_2){ return _1("clipart.ArrowUp",[_2],{}); });
Bonome/pauline-desgrandchamp.com
lib/clipart/deletethis.js
JavaScript
mit
139
/* globals chrome */ import BasicAdapter from "./basic"; import Ember from 'ember'; import config from 'ember-inspector/config/environment'; const { computed } = Ember; let emberDebug = null; export default BasicAdapter.extend({ /** * Called when the adapter is created. * * @method init */ init() { ...
maheshsenni/ember-inspector
app/adapters/chrome.js
JavaScript
mit
2,948
// ****************************************************************** // § 5.4. Validation keywords for objects // ****************************************************************** var Errors = require('../../../errors.js'); module.exports = function(config) { var errors = []; var missing = []; for (var i = 0...
karaokyo/karaokyo-nw
node_modules/jayschema/lib/suites/draft-04/keywords/required.js
JavaScript
mit
755
app.directive('todoWidget', ['todoService', function(todoService) { return { restrict: 'EA', templateUrl: 'assets/tpl/directives/todo-widget.html', replace: true, link: function($scope, $element) { $scope.todoService = new todoService($scope); } }; }]);
FlavienGARCIA/shooting-sport-webapp
public/themes/materialism/js/directives/todo-widget.js
JavaScript
mit
284
function Vector3(x, y, z) { this.x = 0; this.y = 0; this.z = 0; this.set(x, y, z); } Vector3.prototype = { set : function(x, y, z) { if (x !== undefined) this.x = x; if (y !== undefined) this.y = y; if (z !== undefined) this.z = z; }, } var ...
Min-Guo/Min-Guo.github.io
computer-graphics/assignment7/drawlib1.js
JavaScript
mit
1,380
svgEditor.readLang({ lang: "et", dir : "ltr", common: { "ok": "Salvestama", "cancel": "Tühista", "key_backspace": "backspace", "key_del": "delete", "key_down": "down", "key_up": "up", "more_opts": "More Options", "url": "URL", "width": "Width", "height": "Height" }, misc: { "powered_by": ...
nilclass/svg-edit
editor/locale/lang.et.js
JavaScript
mit
8,330
export { StoreDevtoolsModule } from './src/instrument'; export { StoreDevtools } from './src/devtools'; //# sourceMappingURL=index.js.map
ashkaushik0007/android
node_modules/@ngrx/store-devtools/index.js
JavaScript
mit
137
/* * A chat server. Client codes can be found in ../resources/chat-client * To run server, execute node chat.js * To run client, navigate to ../resources/chat-client/client.html from browser */ var DEFAULT_USERNAME = 'Guest'; var express = require('express'); var app = express(); var server = require('http').create...
mrttson/chat2
js/chat.js
JavaScript
mit
1,111
/** * Task: clean * Description: Clear files and folders. * Dependencies: rimraf * Contributor: @tbranyen */ module.exports = function(grunt) { "use strict"; grunt.registerMultiTask("clean", "Clear files and folders", function() { var options = grunt.helper("options", this); grunt.verbose.writeflags...
davemo/grunt-contrib
tasks/clean.js
JavaScript
mit
785
let ace = require('ace'); let acequire = require('acequire'); let mode_json = require('ace/mode-json'); var oop = acequire("ace/lib/oop"); var TextMode = acequire("ace/mode/text").Mode; var ScriptMode = require("./script").ScriptMode; var MatchingBraceOutdent = acequire("ace/mode/matching_brace_outdent").MatchingBrace...
istresearch/PulseTheme
kibana/src/core_plugins/console/public/src/sense_editor/mode/input.js
JavaScript
mit
2,187
/** * Base class for Accept headers. * * @memberOf Jymfony.Component.HttpFoundation.Negotiation * @abstract */ export default class BaseAccept { /** * Constructor. * * @param {string} value */ __construct(value) { /** * @type {number} * * @private ...
alekitto/jymfony
src/Component/HttpFoundation/src/Negotiation/BaseAccept.js
JavaScript
mit
3,702
{ "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "Incident number": 100910164, "Date": "4\/1\/2010", "Time": "07:45 PM", "Police District": 4, "Offense 1": "SIMPLE ASSAULT", "Address": "2838 W CARMEN A...
marquettecomputationalsocialscience/clusteredcrimemaps
individual_work/marielle/KMeans/datamound/data_2010-simpleassault_apr.js
JavaScript
mit
302,916