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 |
|---|---|---|---|---|---|
function thisMovie(movieName) {
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[movieName];
} else {
return document[movieName];
}
}
function trigger(value) {
thisMovie("map_test").receiveNotification(value);
}
function triggerXml(xmlurl,value) {
thisMovie("map_test... | commtrack/temp-rapidsms | apps/schools/static/javascripts/flashlinks.js | JavaScript | lgpl-3.0 | 351 |
import React, {Component} from 'react';
import ReactRethinkdb from 'react-rethinkdb';
import reactMixin from 'react-mixin';
import ReactPanels from '../layout/ReactPanels'
import ReactPanel from '../layout/ReactPanel'
import Variables from './Variables'
const r = ReactRethinkdb.r;
class Namespaces extends Component ... | jachinte/pascani | web/dashboard/src/panels/Namespaces.js | JavaScript | lgpl-3.0 | 1,759 |
var cache = {};
var ensureTokenKey = (token) => {
if (!cache[token])
cache[token] = {};
};
exports.set = (token, key, data) => {
ensureTokenKey(token);
cache[token][key] = data;
};
exports.get = (token, key) => {
ensureTokenKey(token);
return cache[token][key];
};
exports.clean = (token) => {
var da... | suryakencana/niimanga | frontends/xcms/app/utils/cache.js | JavaScript | lgpl-3.0 | 473 |
//// [callChainWithSuper.ts]
// GH#34952
class Base { method?() {} }
class Derived extends Base {
method1() { return super.method?.(); }
method2() { return super["method"]?.(); }
}
//// [callChainWithSuper.js]
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics ... | alexeagle/TypeScript | tests/baselines/reference/callChainWithSuper(target=es5).js | JavaScript | apache-2.0 | 1,513 |
var _Color = (function () {
function _Color() {
}
return _Color;
})();
var Color;
(function (Color) {
Color.namedColors;
})(Color || (Color = {}));
var a = Color.namedColors["azure"];
var a = Color.namedColors.blue;
var a = Color.namedColors["pale blue"];
| hippich/typescript | tests/baselines/reference/propertyNamesWithStringLiteral.js | JavaScript | apache-2.0 | 286 |
import {Post} from 'api/post/post';
import {log} from 'components/logger';
var _ = require('lodash');
var slug = require('slug');
var tag = 'post/controller';
var controller = {
mountId: function(req, res, next, id) {
if (req.query.slug) {
Post.findBySlug(id)
.then(post =>{
req.post = po... | angular-class/angular-class-site | server/api/post/controller.js | JavaScript | apache-2.0 | 1,820 |
'use strict';
var LE = require('../').LE;
var le = LE.create({
server: 'staging'
, acme: require('le-acme-core').ACME.create()
, store: require('le-store-certbot').create({
configDir: '~/letsencrypt.test/etc'
, webrootPath: '~/letsencrypt.test/var/:hostname'
})
, challenge: require('le-challenge-fs').create(... | Daplie/node-greenlock | tests/renew-certificate.js | JavaScript | apache-2.0 | 2,906 |
/* ******************************
Search Prompt
Author: Jack Lukic
Designed to be used as an autocomplete
or to deliver quick inline search results
****************************** */
;(function ($, window, document, undefined) {
$.fn.search = function(source, parameters) {
var
$allModules = $(this... | riaval/Magister | semantic/modules/search.js | JavaScript | apache-2.0 | 24,477 |
/// Copyright (c) 2009 Microsoft Corporation
///
/// 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 conditions and
/// ... | hnafar/IronJS | Src/Tests/ietestcenter/chapter15/15.4/15.4.4/15.4.4.20/15.4.4.20-1-13.js | JavaScript | apache-2.0 | 2,298 |
'use strict';
angular.module('openshiftConsole')
// The HTML5 `autofocus` attribute does not work reliably with Angular,
// so define our own directive
.directive('takeFocus', function($timeout) {
return {
restrict: 'A',
link: function(scope, element) {
// Add a delay to allow other async... | tmckayus/oshinko-rest | vendor/github.com/openshift/origin/assets/app/scripts/directives/util.js | JavaScript | apache-2.0 | 5,042 |
'use strict';
let angular = require('angular');
module.exports = angular.module('spinnaker.core.pipeline.config.trigger.jenkins', [
require('../trigger.directive.js'),
require('../../../../ci/jenkins/igor.service.js'),
require('../../pipelineConfigProvider.js'),
])
.config(function(pipelineConfigProvider) {
... | zanthrash/deck-1 | app/scripts/modules/core/pipeline/config/triggers/jenkins/jenkinsTrigger.module.js | JavaScript | apache-2.0 | 2,210 |
/*
* Copyright 2016 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-nashorn | src/main/resources/eclairjs/mllib/optimization/LBFGS.js | JavaScript | apache-2.0 | 7,288 |
import * as utils from '../src/utils.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
const BIDDER_CODE = 'jcm';
const URL = 'https://media.adfrontiers.com/pq'
export const spec = {
code: BIDDER_CODE,
aliases: ['jcarter'],
isBidRequestValid: function(bid) {
return !!(bid.params && bid.pa... | varashellov/Prebid.js | modules/jcmBidAdapter.js | JavaScript | apache-2.0 | 2,345 |
/**
* 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... | Adtoma/amphtml | extensions/amp-bind/0.1/test/test-bind-evaluator.js | JavaScript | apache-2.0 | 3,455 |
import { expect } from 'chai';
import { spec } from 'modules/sekindoUMBidAdapter';
import { newBidder } from 'src/adapters/bidderFactory';
describe('sekindoUMAdapter', () => {
const adapter = newBidder(spec);
const bannerParams = {
'spaceId': '14071'
};
const videoParams = {
'spaceId': '14071',
'... | SpreeGorilla/Prebid.js | test/spec/modules/sekindoUMBidAdapter_spec.js | JavaScript | apache-2.0 | 5,318 |
Input::
//// [/lib/lib.d.ts]
/// <reference no-default-lib="true"/>
interface Boolean {}
interface Function {}
interface CallableFunction {}
interface NewableFunction {}
interface IArguments {}
interface Number { toExponential: any; }
interface Object {}
interface RegExp {}
interface String { charAt: any; }
interface ... | kpreisser/TypeScript | tests/baselines/reference/tsc/composite/initial-build/when-setting-composite-false-on-command-line-but-has-tsbuild-info-in-config.js | JavaScript | apache-2.0 | 1,364 |
enyo.kind({
name: "AllInOneApp",
kind: enyo.HFlexBox,
components: [
{flex: 1, kind: "VFlexBox", style: "background: white; overflow: auto; padding: 10px;", components: [
{name: "docs", onclick: "docClick", requiresDomMousedown: true, allowHtml: true, className: "selectable"}
]}
],
create: function() {
// ... | enyojs/enyo-1.0 | support/docs/api/source/allInOneApp.js | JavaScript | apache-2.0 | 1,262 |
//This file is automatically rebuilt by the Cesium build process.
/*global define*/
define(function() {
'use strict';
return "//#define SHOW_TILE_BOUNDARIES\n\
\n\
uniform vec4 u_initialColor;\n\
\n\
#if TEXTURE_UNITS > 0\n\
uniform sampler2D u_dayTextures[TEXTURE_UNITS];\n\
uniform vec4 u_dayTextureTranslation... | ceos-seo/Data_Cube_v2 | ui/django_site_v2/data_cube_ui/static/assets/js/Cesium-1.23/Source/Shaders/GlobeFS.js | JavaScript | apache-2.0 | 11,686 |
/**
* Copyright 2013-2014, 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.
*
* @emails react-co... | spicyj/react | src/browser/__tests__/ReactDOM-test.js | JavaScript | bsd-3-clause | 3,499 |
// This file comes from Box2D-JS, Copyright (c) 2008 ANDO Yasushi.
// The original version is available at http://box2d-js.sourceforge.net/ under the
// zlib/libpng license (see License.txt).
// This version has been modified to make it work with O3D.
o3djs.require('o3djs.util');
o3djs.require('o3djs.math');
o3djs.req... | rwatson/chromium-capsicum | o3d/samples/box2d-3d/demos/demos.js | JavaScript | bsd-3-clause | 8,843 |
/*
* Tangram
* Copyright 2009 Baidu Inc. All rights reserved.
*
* path: baidu/dom/hide.js
* author: allstar
* version: 1.1.0
* date: 2009/11/17
*/
///import baidu.dom.g;
/**
* 隐藏目标元素
* @name baidu.dom.hide
* @function
* @grammar baidu.dom.hide(element)
* @param {HTMLElement|string} element 目标元素或目标元素的id
... | BaiduFE/Tangram-base | src/baidu/dom/hide.js | JavaScript | bsd-3-clause | 673 |
var $P = PATHBUBBLES;
$P.HtmlObject = $P.defineClass(
$P.Object2D,
/**
* @classdesc A wrapper for an html object to be displayed on the screen.
* @constructor
* @param {!string} config.parent - the parent tag selector
* @param {!string} config.type - the type of the tag
* @param {object} config.objectConf... | maya70/GraphMirrors | js/HtmlObject.js | JavaScript | bsd-3-clause | 2,563 |
const chai = require('chai');
const expect = chai.expect;
const mock = require('mock-fs');
const fs = require('fs');
const path = require('path');
const makeImportPatch = require('../../../../src/android/patches/0.20/makeImportPatch');
const applyPatch = require('../../../../src/android/patches/applyPatch');
const pro... | mrspeaker/react-native | local-cli/rnpm/link/test/android/patches/0.20/makeImportPatch.js | JavaScript | bsd-3-clause | 943 |
var EXPORTED_SYMBOLS = ['GM_openInTab'];
var Cu = Components.utils;
var Ci = Components.interfaces;
var Cc = Components.classes;
Cu.import('resource://gre/modules/Services.jsm');
function GM_openInTab(aFrame, aBaseUrl, aUrl, aOptions) {
var loadInBackground = null;
if ("undefined" != typeof aOptions) {
if (... | Martii/greasemonkey | modules/GM_openInTab.js | JavaScript | bsd-3-clause | 1,051 |
'use strict';
/**
*
* Auto load AMD modules through RequireJS
*
* Example:
*
* <div data-clockwork-module="test"></div>
*
* File: /amm/amd_module/release/test.js
* File Contents:
* define(function(){
* return: {
* run: function(){
* console.info('Ran!');
* ... | jdstand/Railay | www/modules/cw-amd/loader.js | JavaScript | mit | 2,759 |
import React from "react"
export default () => (
<div
css={{
display: `flex`,
alignItems: `center`,
justifyContent: `center`,
flexDirection: `column`,
height: `100vh`,
}}
>
<h1>Weeee...</h1>
<img src="https://media1.giphy.com/media/urVO9yrQhKwDK/200.webp#1-grid1" />
... | mickeyreiss/gatsby | examples/using-glamor/src/pages/other-page.js | JavaScript | mit | 329 |
import fakeData from './fakeData.js';
import Content from '../../../client/ProfileComponents/Content.jsx';
import ReactTestUtils from 'react-addons-test-utils';
import {expect} from 'chai';
describe('Content', function() {
var {
Simulate,
renderIntoDocument,
findRenderedDOMComponentWithClass,
... | anthonypecchillo/bracegirdles | spec/client/ProfileSpecs/ContentSpec.js | JavaScript | mit | 932 |
'use strict';
// MODULES //
var deepSet = require( 'utils-deep-set' ).factory,
deepGet = require( 'utils-deep-get' ).factory,
ENTROPY = require( './number.js' );
// ENTROPY //
/**
* FUNCTION: entropy( arr, path[, sep] )
* Computes the distribution entropy and deep sets the input array.
*
* @param {Array} arrays... | distributions-io/exponential-entropy | lib/deepset.js | JavaScript | mit | 969 |
/*!
* Bootstrap modal.js v4.6.1 (https://getbootstrap.com/)
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof modu... | venkatramanm/swf-all | swf/src/main/resources/scripts/node_modules/bootstrap/js/dist/modal.js | JavaScript | mit | 22,710 |
var Server = require('../').Server
exports.createServer = function (t, serverType, cb) {
var opts = serverType === 'http' ? { udp: false } : { http: false }
var server = new Server(opts)
server.on('error', function (err) {
t.error(err)
})
server.on('warning', function (err) {
t.error(err)
})
s... | precisit/bittorrent-tracker | test/common.js | JavaScript | mit | 562 |
var fs = require('fs');
var path = require('path');
var gulp = require('gulp');
var del = require('del');
var mocha = require('gulp-mocha');
var tar = require('gulp-tar');
var gzip = require('gulp-gzip');
var merge = require('merge2');
var minimist = require('minimist');
var typescript = require('gulp-tsc');
var build... | TwoToneBytes/vso-agent | gulpfile.js | JavaScript | mit | 3,005 |
var log = [];
var a = {
...{ get foo() { log.push(1); } },
get bar() { log.push(2); }
};
expect(log).toEqual([1]);
| kaicataldo/babel | packages/babel-plugin-proposal-object-rest-spread/test/fixtures/object-spread/expression/exec.js | JavaScript | mit | 121 |
var numbro = require('../../numbro'),
language = require('../../languages/sr-Cyrl-RS');
numbro.culture('sr-Cyrl-RS', language);
exports['culture:sr-Cyrl-RS'] = {
setUp: function (callback) {
numbro.culture('sr-Cyrl-RS');
callback();
},
tearDown: function (callback) {
numbro.cu... | foretagsplatsen/numbro | tests/languages/sr-Cyrl-RS.js | JavaScript | mit | 2,705 |
'use strict';
var $compileMinErr = minErr('$compile');
/**
* @ngdoc service
* @name $templateRequest
*
* @description
* The `$templateRequest` service downloads the provided template using `$http` and, upon success,
* stores the contents inside of `$templateCache`. If the HTTP request fails or the response data... | Lucassssss/angular.js | src/ng/templateRequest.js | JavaScript | mit | 2,103 |
import Ember from 'ember';
/*global hljs*/
export default {
name: 'hightlightjs',
initialize: function() {
return Ember.Route.reopen({
renderTemplate: function() {
this._super();
return Ember.run.next(this, function() {
return $('pre code').each(function(i, e) {
retu... | dwmcnelis/zz-form | tests/dummy/app/initializers/hightlightjs.js | JavaScript | mit | 396 |
'use strict';
var addFinalProp = require('../utils').addFinalProp;
var assert = require('../assert');
var Class = require('../imports').SessionId;
var Instance = require('./Instance');
module.exports = SessionId;
function SessionId(opaqueKey) {
if (assert(opaqueKey).extends(Instance).isValid) {
addFinalProp(thi... | i-e-b/webdriver-sync | src/classes/SessionId.js | JavaScript | mit | 679 |
"use strict";
//# sourceMappingURL=Iterable.js.map | riccardomoja/typespirit | tspirit/system/collections/Iterable.js | JavaScript | mit | 50 |
//https://www.hackerrank.com/challenges/fizzbuzz
for(i=0;i++<100;)console.log(i%3?i%5?i:"Buzz":i%5?"Fizz":"FizzBuzz") | hongyegong/hackerrank | miscellaneous/code_golf/fizzbuzz.js | JavaScript | mit | 118 |
var path = require('path');
module.exports = function (config) {
config.set({
browsers: ['PhantomJS',/*'Chrome','Firefox','IE'*/],
coverageReporter: {
reporters: [
{ type: 'html', subdir: 'html' },
{ type: 'lcovonly', subdir: '.' },
{type:'json', subdir: '.'},
],
},
... | Lext3r/drilldown-nps-map | karma.config.js | JavaScript | mit | 1,872 |
import { SetAsMasterMessage, RestoreChildLinkMessage } from '../messages';
import sendMessageToDriver from '../send-message-to-driver';
import { CannotSwitchToWindowError } from '../../../../shared/errors';
import { WAIT_FOR_WINDOW_DRIVER_RESPONSE_TIMEOUT } from '../timeouts';
export default class ParentWindowDriverLi... | DevExpress/testcafe | src/client/driver/driver-link/window/parent.js | JavaScript | mit | 1,534 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: Return the number value for the MV of Result(4)
es5id: 15.1.2.3_A5_T1
description: Checking Infinity
---*/
//CHECK#1
if (parseFloat("Infinity") !== Number.POSITIVE_INFINITY) ... | PiotrDabkowski/Js2Py | tests/test_cases/built-ins/parseFloat/S15.1.2.3_A5_T1.js | JavaScript | mit | 792 |
import firebase from 'firebase'
import { createUser } from './helpers'
import { FirebaseProviderAuthenticationError } from './errors'
export default function linkWithFacebook(options = {}) {
const scopes = options.scopes || []
const redirect = options.redirect || false
const provider = new firebase.auth.Facebook... | garth/cerebral | packages/node_modules/@cerebral/firebase/src/linkWithFacebook.js | JavaScript | mit | 927 |
/*!
* Bootstrap-select v1.13.8 (https://developer.snapappointments.com/bootstrap-select)
*
* Copyright 2012-2019 SnapAppointments, LLC
* Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE)
*/
(function (root, factory) {
if (root === undefined && window !== undef... | sufuf3/cdnjs | ajax/libs/bootstrap-select/1.13.8/js/i18n/defaults-sl_SI.js | JavaScript | mit | 1,428 |
var mocha = require('mocha');
var assert = require('assert');
var nconf = require('nconf');
var testingKeys = nconf.env().file({
file: __dirname + '/testing_keys.json'
});
var util = require('util');
var merge = require('merge');
var postmark = require('../lib/postmark/index.js');
describe('client template handli... | jedahan/postmark.js | tests/fixture_clientTemplateHandling.js | JavaScript | mit | 3,748 |
/**
* bootstrap-table - An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features. (supports twitter bootstrap v2 and v3).
*
* @version v1.14.1
* @homepage https://bootstrap-table.com
* @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
* @license MIT
... | joeyparrish/cdnjs | ajax/libs/bootstrap-table/1.14.1/locale/bootstrap-table-fr-BE.min.js | JavaScript | mit | 980 |
'use strict';
const Npc = require('./Npc');
const BehaviorManager = require('./BehaviorManager');
/**
* Stores definitions of entities to allow for easy creation/cloning
*/
class EntityFactory {
constructor() {
this.entities = new Map();
this.scripts = new BehaviorManager();
}
/**
* Create the key... | isaachelbling/gnosis-mud | src/EntityFactory.js | JavaScript | mit | 2,280 |
/**
* @license Highcharts JS v7.0.1 (2018-12-19)
*
* Money Flow Index indicator for Highstock
*
* (c) 2010-2018 Grzegorz Blachliński
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
module.exports = factory;
} else if (typeof... | joeyparrish/cdnjs | ajax/libs/highcharts/7.0.1/indicators/mfi.src.js | JavaScript | mit | 6,895 |
/*
* GoJS v2.0.0-beta12 JavaScript Library for HTML Diagrams
* Northwoods Software, https://www.nwoods.com/
* GoJS and Northwoods Software are registered trademarks of Northwoods Software Corporation.
* Copyright (C) 1998-2019 by Northwoods Software Corporation. All Rights Reserved.
* THIS SOFTWARE IS LICENSED. ... | sufuf3/cdnjs | ajax/libs/gojs/2.0.0-beta12/go.js | JavaScript | mit | 865,341 |
define(function(require) {
var IMAGE_SRC = 'images/sprite.png';
var sprite = null;
// Constructor
function SuperMario(posX, posY) {
this.posX = posX;
this.posY = posY;
var imageObj = new Image();
imageObj.src = IMAGE_SRC;
sprite = generateSprite(imageObj, posX,... | TelerikAcademy/flextry-Telerik-Academy | Web Design & Development/4. JavaScript UI & DOM/06. Canvas Animations/01. Super Mario/scripts/Models/SuperMario.js | JavaScript | mit | 1,166 |
this["wp"] = this["wp"] || {}; this["wp"]["primitives"] =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
... | pjhooker/monferratopaesaggi | trunk/wp-includes/js/dist/primitives.js | JavaScript | mit | 13,957 |
/*
* 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:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions ... | lordmos/blink | Source/devtools/front_end/ApplicationCacheModel.js | JavaScript | mit | 7,855 |
/**
* filesize
*
* @copyright 2019 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 4.1.2
*/
(function (global) {
const b = /^(b|B)$/,
symbol = {
iec: {
bits: ["b", "Kib", "Mib", "Gib", "Tib", "Pib", "Eib", "Zib", "Yib"],
bytes: ["B", "KiB", "MiB", "GiB", "TiB", "PiB"... | extend1994/cdnjs | ajax/libs/filesize/4.1.2/filesize.es6.js | JavaScript | mit | 4,253 |
/**
* @license Highcharts JS v7.0.2 (2019-01-17)
*
* (c) 2014-2019 Highsoft AS
* Authors: Jon Arild Nygard / Oystein Moseng
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.exports = factor... | cdnjs/cdnjs | ajax/libs/highcharts/7.0.2/modules/treemap.src.js | JavaScript | mit | 68,015 |
/*!
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2015
* @version 1.3.3
*
* Date formatter utility library that allows formatting date/time variables or Date objects using PHP DateTime format.
* @see http://php.net/manual/en/function.date.php
*
* For more JQuery plugins visit http://plugin... | tech-server/tgmanage | web/nms.gathering.org/js/jquery.datetimepicker.full.js | JavaScript | gpl-2.0 | 110,839 |
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
define([
'ko',
'uiClass'
], function (ko, Class) {
'use strict';
return Class.extend({
initialize: function () {
this._super()
.initObservable();
return t... | FPLD/project0 | vendor/magento/module-ui/view/frontend/web/js/model/messages.js | JavaScript | gpl-2.0 | 2,128 |
/*
* Copyright 2013 the original author or authors
* @license MIT, see LICENSE.txt for details
*
* @author Scott Andrews
*/
(function (buster, define) {
'use strict';
var assert, refute, fail;
assert = buster.assertions.assert;
refute = buster.assertions.refute;
fail = buster.assertions.fail;
define('res... | toolsmasterbioinfo/toolsmasterbioinfo | node_modules/github-token/node_modules/rest/test/interceptor/csrf-test.js | JavaScript | gpl-2.0 | 2,933 |
import { Media, Revisions } from "/lib/collections";
import { Reaction } from "/server/api";
import { RevisionApi } from "/imports/plugins/core/revisions/lib/api/revisions";
/**
* CollectionFS - Image/Video Publication
* @params {Array} shops - array of current shop object
*/
Meteor.publish("Media", function (shop... | 3rrolw/Reaction-Theme | server/publications/collections/media.js | JavaScript | gpl-3.0 | 2,044 |
// Copyright (C) 2011 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 or agreed to in ... | ashking/Cloud9 | node_modules/sourcemint-loader-js/node_modules/sourcemint-platform-nodejs/node_modules/q/.tmp/weak-map.js | JavaScript | gpl-3.0 | 17,395 |
/*global wc_add_to_cart_variation_params */
;(function ( $, window, document, undefined ) {
/**
* VariationForm class which handles variation forms and attributes.
*/
var VariationForm = function( $form ) {
var self = this;
self.$form = $form;
self.$attributeFields = $form.find( '.variat... | woothemes/woocommerce | assets/js/frontend/add-to-cart-variation.js | JavaScript | gpl-3.0 | 27,355 |
let StandaloneSass = require('../StandaloneSass');
class FastSassPlugin {
/**
* Create a new plugin instance.
*
* @param {Array} files
*/
constructor(files = []) {
this.files = files;
}
/**
* Apply the plugin.
*/
apply() {
this.files.forEach(sass => {... | Maurifc/MacMan | node_modules/laravel-mix/src/plugins/FastSassPlugin.js | JavaScript | gpl-3.0 | 504 |
/*
* Copyright (C) 2014 Canonical, Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY... | jonjahren/unity8 | tests/mocks/Utils/Style.js | JavaScript | gpl-3.0 | 1,257 |
/**
* Copyright (c) 2008-2009 The Open Source Geospatial Foundation
*
* Published under the BSD license.
* See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text
* of the license.
*/
Ext.namespace("GEOR");
/** api: (define)
* module = GEOR
* class = FeaturePanel
* base_link = `Ext.form.F... | landryb/georchestra | mapfishapp/src/main/webapp/app/addons/annotation/js/FeaturePanel.js | JavaScript | gpl-3.0 | 11,790 |
"use strict";
/* global define, app, socket, bootbox */
define('admin/extend/plugins', function() {
var Plugins = {};
Plugins.init = function() {
var pluginsList = $('.plugins'),
numPlugins = pluginsList[0].querySelectorAll('li').length,
pluginID;
if (!numPlugins) {
pluginsList.append('<li><p><i>No plu... | rockq-org/cnodebb | public/src/admin/extend/plugins.js | JavaScript | gpl-3.0 | 7,813 |
import { module } from 'qunit';
import { setupTest } from 'ember-qunit';
import test from 'ember-sinon-qunit/test-support/test';
module('Unit | Route | dc', function(hooks) {
setupTest(hooks);
test('it exists', function(assert) {
let route = this.owner.lookup('route:dc');
assert.ok(route);
});
});
| hashicorp/consul | ui/packages/consul-ui/tests/unit/routes/dc-test.js | JavaScript | mpl-2.0 | 315 |
OC.L10N.register(
"spreed",
{
"(Duration %s)" : "(Duración %s)",
"You attended a call with {user1}" : "Tomaste una llamda con {user1}",
"_%n guest_::_%n guests_" : ["%n inivitado","%n inivitados"],
"You attended a call with {user1} and {user2}" : "Tuviste una llamada con {user1} y {user2}",
... | nextcloud/spreed | l10n/es_UY.js | JavaScript | agpl-3.0 | 6,423 |
lang['Open'] = 'Obre';
lang['Close'] = 'Tanca';
lang['Save'] = 'Desa';
lang['Save As'] = 'Desa com...'; | jonrandoem/eyeos | eyeos/apps/notepad/lang/ca/ca.js | JavaScript | agpl-3.0 | 103 |
/*
* 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 | app/jsx/gradezilla/SISGradePassback/PostGradesDialogNeedsGradingPage.js | JavaScript | agpl-3.0 | 2,722 |
//// [tests/cases/compiler/moduleResolutionWithSymlinks_notInNodeModules.ts] ////
//// [abc.ts]
// When symlinked files are not in node_modules, realpath is not used.
// A symlink file acts like the real thing. So, 2 symlinks act like 2 different files.
// See GH#10364.
export const x = 0;
//// [app.ts]
import... | jwbay/TypeScript | tests/baselines/reference/moduleResolutionWithSymlinks_notInNodeModules.js | JavaScript | apache-2.0 | 1,104 |
/**
* Copyright 2013-2020 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... | cbornet/generator-jhipster | generators/client/prompts.js | JavaScript | apache-2.0 | 5,953 |
define(
"dojo/cldr/nls/bs/gregorian", //begin v1.x content
{
"dateFormatItem-yM": "MM.y.",
"field-dayperiod": "pre podne/ popodne",
"dayPeriods-format-wide-pm": "popodne",
"field-minute": "minut",
"eraNames": [
"Pre nove ere",
"Nove ere"
],
"dateFormatItem-MMMEd": "E, dd. MMM",
"field-day-relative+-1": "juč... | Caspar12/zh.sw | zh.web.site.admin/src/main/resources/static/js/dojo/dojo/cldr/nls/bs/gregorian.js.uncompressed.js | JavaScript | apache-2.0 | 3,767 |
/**
* @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
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
export default [
[
... | N03297857/2017Fall | node_modules/@angular/common/locales/extra/en-SX.js | JavaScript | apache-2.0 | 768 |
/*!
* Module dependencies.
*/
var readPref = require('./drivers').ReadPreference
, EventEmitter = require('events').EventEmitter
, VirtualType = require('./virtualtype')
, utils = require('./utils')
, MongooseTypes
, Kareem = require('kareem')
, async = require('async')
, PromiseProvider = require('./p... | giblets2570/turinglab | node_modules/mongoose/lib/schema.js | JavaScript | apache-2.0 | 27,195 |
/*
* 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 no... | 100star/echarts | src/component/dataset.js | JavaScript | apache-2.0 | 1,740 |
// Copyright 2011, 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 applicabl... | gileze33/google-api-adwords-js | js/adwordsapi/examples/google/ads/adwords/v201101/DeleteAd.js | JavaScript | apache-2.0 | 3,647 |
const puppeteer = require('puppeteer');
const path = require('path');
const cas = require('../../cas.js');
(async () => {
const browser = await puppeteer.launch(cas.browserOptions());
const page = await cas.newPage(browser);
await cas.uploadSamlMetadata(page, path.join(__dirname, '/saml-md/idp-metadata.xml... | apereo/cas | ci/tests/puppeteer/scenarios/saml2-idp-simplesign-binding-login/script.js | JavaScript | apache-2.0 | 991 |
import Ember from 'ember';
import FormMixin from 'open-event-frontend/mixins/form';
import { timezones } from 'open-event-frontend/utils/dictionary/date-time';
const { Component, computed, computed: { alias } } = Ember;
export default Component.extend(FormMixin, {
event : alias('data.parentData.event'),... | sumedh123/open-event-frontend | app/components/forms/wizard/sessions-speakers-step.js | JavaScript | apache-2.0 | 1,713 |
/*
* Waltz - Enterprise Architecture
* Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project
* See README.md for more information
*
* 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 ... | khartec/waltz | waltz-ng/client/software-catalog/components/overview/software-package-overview.js | JavaScript | apache-2.0 | 1,651 |
describe('GridLayer', function () {
var div, map;
beforeEach(function () {
div = document.createElement('div');
div.style.width = '800px';
div.style.height = '600px';
div.style.visibility = 'hidden';
document.body.appendChild(div);
map = L.map(div);
});
afterEach(function () {
document.body.remo... | msiadak/Leaflet | spec/suites/layer/tile/GridLayerSpec.js | JavaScript | bsd-2-clause | 25,460 |
import {CommitAuthor} from './commitAuthor';
import {Repository} from './repository';
export function Commit(params = {}) {
return {
dateCreated: '2018-11-30T18:46:31Z',
message:
'(improve) Add Links to Spike-Protection Email (#2408)\n\n* (improve) Add Links to Spike-Protection Email\r\n\r\nUsers now h... | beeftornado/sentry | tests/js/sentry-test/fixtures/commit.js | JavaScript | bsd-3-clause | 549 |
module.exports = function() {
if (!("querySelectorAll" in document)) {
return;
}
var className = ".tab";
var Tab = function(element, opts) {
opts = opts || {};
this.element = element;
this.$element = $(element);
this.tabNav = $(".tabs [href='#" + element.id + "']");
this.isOpen = false... | rutaihwa/newww | assets/scripts/tabs.js | JavaScript | isc | 2,279 |
import Enum from '../lib/Enum';
export default new Enum([
'pending',
'initializing',
'ready',
'resetting',
], 'module');
| ele828/ringcentral-js-integration-commons | src/enums/moduleStatuses.js | JavaScript | mit | 130 |
var title = "Got Milk? ";
var desc = "And after you got <a href=\"event:item|milk_butterfly\">Milk<\/a>, got <a href=\"event:item|meat\">Meat<\/a>? Get a <a href=\"event:item|butterfly_milker\">Butterfly Milker<\/a> and a <a href=\"event:item|meat_collector\">Meat Collector<\/a>, install them in your yard, then set the... | yelworc/eleven-gsjs | quests/remoteherdkeeping_fill_up_meat_collector_and_milker.js | JavaScript | mit | 3,125 |
module.exports=['\xBB','\u2019','\u201D','\u203A','\u2E03','\u2E05','\u2E0A','\u2E0D','\u2E1D','\u2E21'] | marclundgren/mithril-fidm-app | node_modules/gulp-jscs/node_modules/jscs/node_modules/unicode-6.3.0/categories/Pf/symbols.js | JavaScript | mit | 104 |
var fs = require('fs');
var http = require('http');
var path = require('path');
var util = require('util');
var querystring = require('querystring');
var httpProxy = require('http-proxy');
var pause = require('pause');
var mime = require('mime');
var helper = require('./helper');
var proxy = require('./proxy');
var lo... | alivanov/testacular | lib/web-server.js | JavaScript | mit | 7,073 |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const { SyncWaterfallHook } = require("tapable");
const util = require("util");
const RuntimeGlobals = require("./RuntimeGlobals");
const memoize = require("./util/memoize");
/** @typedef {import("webpac... | webpack/webpack | lib/MainTemplate.js | JavaScript | mit | 10,391 |
/*!@license
* Infragistics.Web.ClientUI templating localization resources 15.1.20151.1005
*
* Copyright (c) 2011-2015 Infragistics Inc.
*
* http://www.infragistics.com/
*
*/
/*global jQuery */
(function ($) {
$.ig = $.ig || {};
if (!$.ig.Templating) {
$.ig.Templating = {};
$.extend($.ig.Templating... | ajbeaven/personal-finance-sample | PersonalFinance/Scripts/ig/modules/i18n/infragistics.templating-bg.js | JavaScript | mit | 556 |
SirTrevor.BlockDeletion = (function(){
var BlockDeletion = function() {
this._ensureElement();
this._bindFunctions();
};
_.extend(BlockDeletion.prototype, FunctionBind, Renderable, {
tagName: 'a',
className: 'st-block-ui-btn st-block-ui-btn--delete st-icon',
attributes: {
html: 'dele... | 10thfloor/sir-trevor-js | src/block.deletion.js | JavaScript | mit | 394 |
/*
*
* Copyright 2013 Anis Kadri
*
* 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 ... | frangucc/gamify | www/sandbox/pals/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/plugins.js | JavaScript | mit | 4,067 |
{
// This was the first test song of Akiba Hero, made by Arnaldo Brenna.
// Was an early prototype built only for pre-testing audio sync on Akihabara and is the
// song played in the demo video I've made before releasing the audio engine.
//
// http://www.youtube.com/watch?v=ChL5dZpkFOE - Akiba Hero 'The Fifth Ma... | deminew/akihabara | resources/akibahero/bundle-song-demo.js | JavaScript | mit | 10,953 |
Package.describe({
summary: "Allows templates to be defined in .html files",
version: '1.1.1'
});
// Today, this package is closely intertwined with Handlebars, meaning
// that other templating systems will need to duplicate this logic. In
// the future, perhaps we should have the concept of a template system
// r... | esteedqueen/meteor | packages/templating/package.js | JavaScript | mit | 2,036 |
var Game = new function() {
var KEY_CODES = { 37:'left', 39:'right', 32 :'fire' };
this.keys = {};
this.initialize = function(canvas_dom,level_data,sprite_data,callbacks) {
this.canvas_elem = $(canvas_dom)[0];
this.canvas = this.canvas_ele... | TommyTura/AlienInvaders | js/engine.js | JavaScript | mit | 5,911 |
'use strict';
const path = require('path');
describe('PIXI.loaders.spritesheetParser', function ()
{
it('should exist and return a function', function ()
{
expect(PIXI.loaders.spritesheetParser).to.be.a('function');
expect(PIXI.loaders.spritesheetParser()).to.be.a('function');
});
it(... | staff0rd/pixi.js | test/loaders/spritesheetParser.js | JavaScript | mit | 6,529 |
/****************************************************************************
Copyright (c) 2014-2015 Chukong Technologies Inc.
http://www.cocos2d-x.org
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 th... | i-z/cocos2d-x-samples | samples/MoonWarriors/frameworks/cocos2d-html5/extensions/runtime/CCLoaderLayer.js | JavaScript | mit | 37,627 |
/* global it, expect, describe */
import React from 'react'
import { shallow } from 'enzyme'
import renderer from 'react-test-renderer'
import App from '../pages/index.js'
describe('With Enzyme', () => {
it('App shows "Hello world!"', () => {
const app = shallow(
<App />
)
expect(app.find('p').te... | nahue/next.js | examples/with-jest/__tests__/index.test.js | JavaScript | mit | 568 |
'use strict';
const withGL = require('../withGL');
describe('PIXI.Graphics', function ()
{
describe('constructor', function ()
{
it('should set defaults', function ()
{
const graphics = new PIXI.Graphics();
expect(graphics.fillAlpha).to.be.equals(1);
expect... | themoonrat/pixi.js | test/core/Graphics.js | JavaScript | mit | 8,630 |
/* global server */
import Ember from 'ember';
import {module, test} from 'qunit';
import startApp from '../helpers/start-app';
var application;
module('Acceptance: Create new app', {
beforeEach: function() {
application = startApp();
server.create('host_app', { id: 'current' });
},
afterEach: function(... | tedconf/front_end_builds | admin/tests/acceptance/create-new-app-test.js | JavaScript | mit | 1,362 |
var utils = require('../../../utils');
module.exports = function LocalFileType(config) {
var self = {
selector: '.field-type-localfile[for="' + config.fieldName + '"]',
elements: {
label: '.FormLabel',
button: '.file-toolbar .Button--default',
},
commands: [{
assertUI: function() {
this
.exp... | michaelerobertsjr/keystone | test/e2e/adminUI/pages/fieldTypes/localFile.js | JavaScript | mit | 554 |
function test() {
var i, names = ["anchor", "fontcolor", "fontsize", "link"];
for (i = 0; i < names.length; i++) {
if (""[names[i]]('"') !== ""[names[i]]('&' + 'quot;')) {
return false;
}
}
return true;
}
if (!test())
throw new Error("Test failed");
| Debian/openjfx | modules/web/src/main/native/Source/JavaScriptCore/tests/es6/String.prototype_HTML_methods_quotes_in_arguments_are_escaped.js | JavaScript | gpl-2.0 | 272 |
var Immutable = require('immutable');
var SummaryArticle = require('./summaryArticle');
/*
A part represents a section in the Summary / table of Contents
*/
var SummaryPart = Immutable.Record({
level: String(),
title: String(),
articles: Immutable.List()
});
SummaryPart.prototype.getLeve... | hhkaos/awesome-arcgis | node_modules/gitbook/lib/models/summaryPart.js | JavaScript | gpl-3.0 | 1,370 |
import { Meteor } from "meteor/meteor";
import { expect } from "meteor/practicalmeteor:chai";
import { sinon } from "meteor/practicalmeteor:sinon";
import { ExampleApi } from "./exampleapi";
const paymentMethod = {
processor: "Generic",
storedCard: "Visa 4242",
status: "captured",
mode: "authorize",
created... | NahomAgidew/eCommerce | imports/plugins/included/payments-example/server/methods/example-payment-methods.app-test.js | JavaScript | gpl-3.0 | 6,144 |