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 |
|---|---|---|---|---|---|
// Amara, universalsubtitles.org
//
// Copyright (C) 2013 Participatory Culture Foundation
//
// This program 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, either version 3 of the
// License, or (at... | norayr/unisubs | media/js/widget/timeline/timerowul.js | JavaScript | agpl-3.0 | 3,671 |
/**
* This object contains all possible options. It will check if the types are correct, if required if the option is one
* of the allowed values.
*
* __any__ means that the name of the property does not matter.
* __type__ is a required field for all objects and contains the allowed types of all objects
*/
let st... | Peter-Schneider/vis | lib/timeline/optionsGraph2d.js | JavaScript | apache-2.0 | 7,501 |
function S4() {
return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
}
function guid() {
return S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4();
}
function InitAdapter(config) {
if (!db) {
if (typeof Ti.Database == "undefined") throw "No support for Tit... | timmasterson/styletime-mobile | Resources/alloy/sync/sql.js | JavaScript | apache-2.0 | 5,882 |
/* eslint-env mocha */
/* eslint no-template-curly-in-string: 0 */
import assert from 'assert';
import {
extractProp,
describeIfNotBabylon,
changePlugins,
setParserName,
} from '../helper';
import { getLiteralPropValue } from '../../src/getPropValue';
describe('getLiteralPropValue', () => {
beforeEach(() => ... | BigBoss424/portfolio | v8/development/node_modules/jsx-ast-utils/__tests__/src/getPropLiteralValue-flowparser-test.js | JavaScript | apache-2.0 | 14,410 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 11.13.2-2-s
description: >
Strict Mode - ReferenceError is thrown if the LeftHandSideExpression of a
Compound Assignment operator(/=) evaluates to an unresolvable ... | sebastienros/jint | Jint.Tests.Test262/test/language/expressions/compound-assignment/11.13.2-2-s.js | JavaScript | bsd-2-clause | 423 |
/**
* Change focus to the parent context. If the current context is the top level browsing context,
* the context remains unchanged.
*
* @see https://w3c.github.io/webdriver/webdriver-spec.html#switch-to-parent-frame
* @type protocol
*
*/
export default function frameParent () {
return this.requestHandler.... | isabela-angelo/scratch-tangible-blocks | scratch-blocks/node_modules/webdriverio/lib/protocol/frameParent.js | JavaScript | bsd-3-clause | 411 |
/*
* A model representing pagination.
*/
RB.Pagination = Backbone.Model.extend({
defaults: {
isPaginated: false,
pages: 0,
hasPrevious: false,
hasNext: false,
pageNumbers: [],
previousPage: null,
nextPage: null,
currentPage: null
},
/*
... | custode/reviewboard | reviewboard/static/rb/js/diffviewer/models/paginationModel.js | JavaScript | mit | 755 |
SomeVeryLongUpperCaseConstant.someVeryLongCallExpression().some_very_long_member_expression
weNeedToReachTheEightyCharacterLimitXXXXXXXXXXXXXXXXX.someNode
.childrenInAnArray[0];
superSupersuperSupersuperSupersuperSupersuperSuperLong.exampleOfOrderOfGetterAndSetterReordered;
superSupersuperSupersuperSupersuperSupersup... | yamafaktory/prettier | tests/method-chain/break-last-member.js | JavaScript | mit | 787 |
requirejs.config({
map : {
"*" : {
'tquery.grassground' : 'plugins/requirejs/confrequire/grassground.initrequire',
}
},
});
| creatologist/sandbox-js | threeJS/tquery/plugins/requirejs/confrequire/grassground.confrequire.js | JavaScript | mit | 133 |
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
$.extend(frappe.model, {
docinfo: {},
sync: function(r) {
/* docs:
extract docs, docinfo (attachments, comments, assignments)
from incoming request and set in `locals` and `frappe.model.docinfo`
*/
i... | gangadhar-kadam/smrterpfrappe | frappe/public/js/frappe/model/sync.js | JavaScript | mit | 2,217 |
import Upload from 's3-uploader';
import type {
S3UploaderVersion,
S3UploaderOptions,
imageSize,
Meta,
image,
} from 's3-uploader';
const myS3UploaderVersion: S3UploaderVersion = {
original: true,
suffix: '-test',
quality: 1,
maxWidth: 1,
maxHeight: 1
};
const myS3UploaderOptions: S3UploaderOption... | mwalkerwells/flow-typed | definitions/npm/s3-uploader_v2.0.x/test_s3-uploader_v2.0.x.js | JavaScript | mit | 1,470 |
module.exports={"title":"Kibana","hex":"005571","source":"https://www.elastic.co/brand","svg":"<svg aria-labelledby=\"simpleicons-kibana-icon\" role=\"img\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><title id=\"simpleicons-kibana-icon\">Kibana icon</title><path d=\"M21.04 23.99H4.18l9.88-11.86c4.23 2.7... | cdnjs/cdnjs | ajax/libs/simple-icons/1.9.9/kibana.js | JavaScript | mit | 378 |
/*global wc_geolocation_params */
jQuery( function( $ ) {
var this_page = window.location.toString();
var $append_hashes = function() {
if ( wc_geolocation_params.hash ) {
$( 'a[href^="' + wc_geolocation_params.home_url + '"]:not(a[href*="v="]), a[href^="/"]:not(a[href*="v="])' ).each( function() {
var $th... | pcutler/stoneopen | wp-content/plugins/woocommerce/assets/js/frontend/geolocation.js | JavaScript | gpl-2.0 | 2,365 |
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 2007-2009. All Rights Reserved.
*
* The contents of this file are subject to the Erlang Public License,
* Version 1.1, (the "License"); you may not use this file except in
* compliance with the License. You should have received a copy of the
* Erlang Public Lice... | michalliu/OpenWrt-Firefly-Libraries | staging_dir/host/lib/erlang/lib/percept-0.8.10/priv/server_root/scripts/percept_area_select.js | JavaScript | gpl-2.0 | 5,594 |
// Array.prototype.iterator applied to undefined or null throws directly.
load(libdir + "asserts.js");
load(libdir + "iteration.js");
for (var v of [undefined, null]) {
// ES6 draft 2013-09-05 section 22.1.5.1.
assertThrowsInstanceOf(function () { Array.prototype[Symbol.iterator].call(v); }, TypeError);
a... | cstipkovic/spidermonkey-research | js/src/jit-test/tests/for-of/array-iterator-null.js | JavaScript | mpl-2.0 | 492 |
/*!
* Copyright 2002 - 2015 Webdetails, a Pentaho company. All rights reserved.
*
* This software was developed by Webdetails and is provided under the terms
* of the Mozilla Public License, Version 2.0, or any later version. You may not use
* this file except in compliance with the license. If you need a copy of ... | carlosrusso/cdf | core-js/src/test/javascript/cdf/dashboard/Dashboard.query-spec.js | JavaScript | mpl-2.0 | 5,058 |
/* -*- 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/. */
//--------------------------------... | SlateScience/MozillaJS | js/src/tests/ecma_3/extensions/regress-327170.js | JavaScript | mpl-2.0 | 888 |
define(["jquery", "underscore", "js/views/baseview", "xblock/runtime.v1"],
function ($, _, BaseView, XBlock) {
var XBlockView = BaseView.extend({
// takes XBlockInfo as a model
initialize: function() {
BaseView.prototype.initialize.call(this);
this.v... | yokose-ks/edx-platform | cms/static/js/views/xblock.js | JavaScript | agpl-3.0 | 6,695 |
define(["mersenne", "underscore", "PrairieGeom"], function(mersenne, _, PrairieGeom) {
/** RandomGenerator constructor.
@param {String} seed (Optional, default uses current time) Seed value for the generator, must be in base 36.
*/
function RandomGenerator(seed) {
seed = (seed === undefin... | jakebailey/PrairieLearn | public/localscripts/calculationQuestion/PrairieRandom.js | JavaScript | agpl-3.0 | 19,799 |
// 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.
globalThis.oninstall = function(event) {};
// So sorry about this waste of bytes:
// Filler comment, to trigger code caching heuristic (script > 1K.)
// ... | scheib/chromium | content/test/data/service_worker/worker.js | JavaScript | bsd-3-clause | 1,066 |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {PDFScriptingAPI, PDFViewerElement} from 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/pdf_viewer_wrapper.js';
const tests = [
/**
* T... | ric2b/Vivaldi-browser | chromium/chrome/test/data/pdf/beep_test.js | JavaScript | bsd-3-clause | 748 |
// 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.
/**
* @fileoverview This file is not auto-generated from cr.js, because it's a
* special case. cr.js holds a lot of functionality that is unnecessary in... | scheib/chromium | ui/webui/resources/js/cr.m.js | JavaScript | bsd-3-clause | 12,637 |
/****************************************************************************
Copyright (c) 2011-2012 cocos2d-x.org
Copyright (c) 2013-2014 Chukong Technologies Inc.
Copyright (c) 2014 Shengxiang Chen (Nero Chan)
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a cop... | MSW9/CutCutCut-JS | frameworks/cocos2d-html5/extensions/spine/CCSkeleton.js | JavaScript | mit | 14,442 |
define(['mout/math/loop'], function (loop) {
describe('math/loop()', function(){
it('should return `min` if `val` is bigger than `max`', function(){
expect( loop(11, 0, 10) ).toEqual(0);
expect( loop(9999999, 999, 9999) ).toEqual(999);
expect( loop(-500, -1000, -750) ).... | moklick/mout | tests/spec/math/spec-loop.js | JavaScript | mit | 1,080 |
'use strict';
// Last time updated: 2016-04-15 3:06:46 PM UTC
// Open-Sourced: https://github.com/muaz-khan/RecordRTC
//--------------------------------------------------
// Muaz Khan - www.MuazKhan.com
// MIT License - www.WebRTC-Experiment.com/licence
//--------------------------------------------------
// ... | extend1994/cdnjs | ajax/libs/RecordRTC/5.3.1/RecordRTC.js | JavaScript | mit | 122,376 |
/* @flow */
/* eslint-disable no-unused-vars, no-undef, no-console */
import createSagaMiddleware from 'redux-saga';
import {
utils,
delay,
eventChannel,
buffers,
channel,
takeEvery,
takeLatest,
runSaga,
END,
} from 'redux-saga';
import {
take,
takem,
put,
call,
apply,
cps,
fork,
s... | altano/flow-typed | definitions/npm/redux-saga_v0.11.x/test_redux-saga_0.11.x.js | JavaScript | mit | 22,108 |
/**
* Shopware 4.0
* Copyright © 2012 shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* permi... | mirkobeine/shopware-4 | templates/_default/backend/overview/view/main/grid.js | JavaScript | agpl-3.0 | 7,316 |
import { expect } from 'chai';
import { spec } from 'modules/gjirafaBidAdapter';
describe('gjirafaAdapterTest', () => {
describe('bidRequestValidity', () => {
it('bidRequest with propertyId and placementId', () => {
expect(spec.isBidRequestValid({
bidder: 'gjirafa',
params: {
prop... | PubWise/Prebid.js | test/spec/modules/gjirafaBidAdapter_spec.js | JavaScript | apache-2.0 | 5,731 |
import Ember from 'ember';
import NodeActionsMixin from 'ember-osf/mixins/node-actions';
import { module, test } from 'qunit';
module('Unit | Mixin | node actions');
// Replace this with your real tests.
test('it works', function(assert) {
let NodeActionsObject = Ember.Object.extend(NodeActionsMixin);
let subject... | pattisdr/ember-osf | tests/unit/mixins/node-actions-test.js | JavaScript | apache-2.0 | 377 |
//https://github.com/abdmob/x2js/blob/master/xml2json.js
/*
Copyright 2011-2013 Abdulla Abdurakhmanov
Original sources are available at https://code.google.com/p/x2js/
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may ob... | EnzeZY/offline-editor-js | lib/tpk/xml2json.js | JavaScript | apache-2.0 | 20,706 |
var alloy = require('../.alloy');
var gulp = require('gulp');
var insert = require('gulp-insert');
var path = require('path');
var ROOT = path.join(__dirname, '..');
gulp.task('cdn', ['build'], function() {
return gulp.src('build/aui/*.js', { cwd: ROOT })
.pipe(insert.append('\n' +
'YUI_config... | dsanz/alloy-ui | tasks/cdn.js | JavaScript | bsd-3-clause | 601 |
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... | pocketpimps/pocketpimps-app | plugins/cordova-plugin-file/src/windows/FileProxy.js | JavaScript | mit | 44,977 |
function SetPageSize()
{
var width = $(window).width();
var height = $(window).height();
$.ajax
({
url: "Services/PageSize.ashx",
data:
{
'Height': height,
'Width': width
},
contentType: "application/json; charset=utf-8",
dataType: "json"
}).success(function (data) {
if (data.Refresh) {
wi... | okhosting/OKHOSTING.ORM | test/OKHOSTING.Zoologico/OKHOSTING.Zoologico.ORM.UI.TEST.Net4.WebForms/js/PageSize.js | JavaScript | mit | 884 |
// Copyright 2011 Mark Cavage, Inc. All rights reserved.
var assert = require('assert');
var EventEmitter = require('events').EventEmitter;
var net = require('net');
var tls = require('tls');
var util = require('util');
var asn1 = require('asn1');
var VError = require('verror').VError;
var dn = require('./dn');
var... | Snehal1112/TodoList | node_modules/ldapjs/lib/server.js | JavaScript | mit | 23,969 |
// Generated by CoffeeScript 1.3.1
(function() {
var Parser, alt, alternatives, grammar, name, o, operators, token, tokens, unwrap;
Parser = require('jison').Parser;
unwrap = /^function\s*\(\)\s*\{\s*return\s*([\s\S]*);\s*\}/;
o = function(patternString, action, options) {
var match;
patternString = ... | andrewlarkin/expectCSS | node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/grammar.js | JavaScript | mit | 18,038 |
describe('Semantic-UI: Elements - smDivider', function() {
'use strict';
var $scope, $compile;
beforeEach(module('semantic.ui.elements.divider'));
beforeEach(inject(function($rootScope, _$compile_) {
$scope = $rootScope.$new();
$compile = _$compile_;
}));
it('has to be able to be defined as vert... | giftstarter/Semantic-UI-Angular | src/elements/divider/divider.spec.js | JavaScript | mit | 690 |
/*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial
Software License Agreement provided with the Software or, alternatively, in accordance with th... | ryancanulla/findMe | web/ext/src/data/Types.js | JavaScript | mit | 8,551 |
function Collection() {
/* jshint -W009 */
var items = new Array();
/* jshint +W009 */
var self = {
add: function add(item) {
items.push(item);
},
insert: function insert(index, item) {
items.splice(index, 0, item);
},
removeAtIndex: function removeAtIndex(index) {
items... | zenners/angular-contacts | node_modules/firebase/node_modules/faye-websocket/node_modules/websocket-driver/node_modules/websocket-extensions/node_modules/jstest/node_modules/buster/node_modules/buster-server-cli/node_modules/phantom-proxy/node_modules/cucumber/lib/cucumber/type/collection.js | JavaScript | mit | 1,937 |
/**
* 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.
*
* @flow
*/... | prayuditb/tryout-01 | websocket/client/Client/node_modules/react-native/packager/react-packager.js | JavaScript | mit | 2,877 |
data = [
"jmiller@realblab.com",
"jsims@eabox.mil",
"palexander@zazio.info",
"dortiz@kaymbo.name",
"agriffin@realcube.org",
"rturner@trunyx.biz",
"tsimmons@latz.biz",
"rlawson@cogibox.gov",
"mmendoza@meezzy.name",
"kgardner@wikizz.biz",
"jprice@ainyx.edu",
"tray@tazzy.info",
"pruiz@avamm.gov",
"bburns@abatz.biz",
"tmye... | iamhabitat/Content-generator-sketch-plugin | data/persona/emails.js | JavaScript | mit | 23,218 |
/*!
* Copyright (c) 2017 NAVER Corp.
* @egjs/infinitegrid project is licensed under the MIT license
*
* @egjs/infinitegrid JavaScript library
* https://github.com/naver/egjs-infinitegrid
*
* @version 3.0.0
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && ... | extend1994/cdnjs | ajax/libs/egjs-infinitegrid/3.0.0/parallax.js | JavaScript | mit | 22,811 |
// var obj = {
// name: 'Andrew'
// };
// var stringObj = JSON.stringify(obj);
// console.log(typeof stringObj);
// console.log(stringObj);
// var personString = '{"name": "Andrew","age": 25}';
// var person = JSON.parse(personString);
// console.log(typeof person);
// console.log(person);
const fs = require('fs');... | narayanants/complete-nodejs-dev-course | Source Code/Notes App/n-3-9-adding-note/playground/json.js | JavaScript | mit | 631 |
var d3 = require('d3');
var augment = require('augment');
var debug = require('debug')('transitive:renderer');
var each = require('each');
var Renderer = require('./index');
var RenderedEdge = require('./renderededge');
var PathSegment = require('../core/pathsegment');
var RenderedSegment = require('./renderedsegment'... | zarnold/transitive.js | lib/renderer/wireframe-renderer.js | JavaScript | mit | 4,035 |
/**
* KIRKI CONTROL: PRESET
*/
wp.customize.controlConstructor['preset'] = wp.customize.Control.extend( {
ready: function() {
var control = this;
var element = this.container.find( 'select' );
jQuery( element ).selectize();
this.container.on( 'change', 'select', function() {
/**
* First of all we ... | minhhoangle/finalproject.dev | wp-content/themes/kyma/inc/kirki/assets/js/controls/preset.js | JavaScript | gpl-2.0 | 9,784 |
define(['app'], function (app) {
app.controller('ForecastController', [ '$scope', '$rootScope', '$location', '$http', '$interval', function($scope,$rootScope,$location,$http,$interval) {
init();
function init()
{
$scope.MakeGlobalConfig();
var htmlcontent = '';
htmlcontent+='<iframe class="cIFr... | murdemon/domoticz_codesys | www/app/ForecastController.js | JavaScript | gpl-3.0 | 529 |
/* Doesn't really matter what is in here. */
// # sourceMappingURL=noroot.js.map
| ruturajv/debugger.html | packages/devtools-source-map/src/tests/fixtures/noroot.js | JavaScript | mpl-2.0 | 82 |
// Word cloud layout by Jason Davies, http://www.jasondavies.com/word-cloud/
// Algorithm due to Jonathan Feinberg, http://static.mrfeinberg.com/bv_ch03.pdf
define([
'd3'
],
function(d3) {
(function() {
function cloud() {
var size = [256, 256],
text = cloudText,
font = clou... | LucidWorks/solr-for-datascience | static/app/panels/tagcloud/d3.layout.cloud.js | JavaScript | apache-2.0 | 12,472 |
/**
* 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... | criteo-forks/amphtml | extensions/amp-accordion/0.1/test/test-amp-accordion.js | JavaScript | apache-2.0 | 6,731 |
/*
YUI 3.6.0 (build 5521)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('datasource-xmlschema', function(Y) {
/**
* Extends DataSource with schema-parsing on XML data.
*
* @module datasource
* @submodule datasource-xmlschema
*/
/**
* Ad... | bretkikehara/wattdepot-visualization | src/main/webapp/yui/3.6.0/build/datasource-xmlschema/datasource-xmlschema.js | JavaScript | bsd-3-clause | 2,764 |
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModu... | wmydz1/react | src/renderers/dom/shared/HTMLNodeType.js | JavaScript | bsd-3-clause | 585 |
/**
* @license
* Copyright The Closure Library Authors.
* SPDX-License-Identifier: Apache-2.0
*/
goog.module('goog.async.deferredTest');
goog.setTestOnly();
const Deferred = goog.require('goog.async.Deferred');
const GoogPromise = goog.require('goog.Promise');
const GoogThenable = goog.require('goog.Thenable');
co... | scheib/chromium | third_party/google-closure-library/third_party/closure/goog/mochikit/async/deferred_test.js | JavaScript | bsd-3-clause | 34,775 |
//
// Copyright (c) Microsoft and contributors. 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 requi... | gyiang/advdb-exp | node_modules/keystone/node_modules/azure/node_modules/azure-storage/lib/services/table/internal/requesthandler.js | JavaScript | mit | 5,896 |
// (c) 2010 Jeremy Ashkenas, DocumentCloud Inc.
// Underscore is freely distributable under the terms of the MIT license.
// Portions of Underscore are inspired by or borrowed from Prototype.js,
// Oliver Steele's Functional, and John Resig's Micro-Templating.
// For all details and documentation:
/... | TheNeatCompany/rack-oauth2-server | lib/rack/oauth2/admin/js/underscore.js | JavaScript | mit | 25,233 |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.parser = f()}}... | jonobr1/cdnjs | ajax/libs/fast-xml-parser/2.8.2/parser.js | JavaScript | mit | 11,969 |
'use strict';
// Watches files for changes and runs tasks based on the changed files
module.exports = {
js: {
files: [
'Gruntfile.js',
'tasks/**/*.js',
'angular-block-spinner.js'
],
tasks: ['newer:jshint:src']
},
tests: {
files: ['tests/**/*.js'],
tasks: ['newer:jshint:tests... | PnCevennes/projet_suivi | web/js/lib/angular-loading-1.0/tasks/options/watch.js | JavaScript | gpl-3.0 | 364 |
CKEDITOR.plugins.setLang("image","fr",{alt:"Texte alternatif",border:"Bordure",btnUpload:"Envoyer sur le serveur",button2Img:"Voulez-vous transformer le bouton avec image sélectionné en simple image ?",hSpace:"Espacement horizontal",img2Button:"Voulez-vous transformer l'image sélectionnée en bouton avec image ?",infoT... | codeka/wwmmo | website/static/ckeditor/plugins/image/lang/fr.js | JavaScript | mit | 860 |
/*********************************************************************************************************/
/* Canvasdesigner panel app and controller */
/*********************************************************************************************************/
var app = angular.module("Umbraco.canvasdesigner", ['col... | aaronpowell/Umbraco-CMS | src/Umbraco.Web.UI.Client/src/canvasdesigner/canvasdesigner.controller.js | JavaScript | mit | 20,388 |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
con... | cpojer/react | packages/shared/forks/Scheduler.umd.js | JavaScript | mit | 1,488 |
import { inspect } from "ember-metal/utils";
import { create } from "ember-metal/platform";
QUnit.module("Ember.inspect");
test("strings", function() {
equal(inspect("foo"), "foo");
});
test("numbers", function() {
equal(inspect(2.6), "2.6");
});
test("null", function() {
equal(inspect(null), "null");
});
te... | JacobNinja/es6 | packages/ember-metal/tests/core/inspect_test.js | JavaScript | mit | 1,329 |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.11.1-master-991bd63
*/
!function(a,i,t){"use strict";!function(){function a(){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(a,t){var n=a.children(),e=!1;i.forEach(["","data-","x-"],function(... | AppXpress/AppXpress-Labs-Swift | www/lib/angular-material/modules/js/fabActions/fabActions.min.js | JavaScript | mit | 556 |
!function(e,s){"object"==typeof exports&&"undefined"!=typeof module?module.exports=s(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],s):e.dayjs_locale_ca=s(e.dayjs)}(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var s={name:"ca",weekdays:"Diumenge_Dilluns_Dimarts_Di... | joeyparrish/cdnjs | ajax/libs/dayjs/1.8.3/locale/ca.js | JavaScript | mit | 871 |
var MEDIA_PATH = staticurl + '/media/';
var snippeteditor;
var gamecontainer;
var firstColorError = true;
var SpaceRocks;
$(document).ready( function() {
gamecontainer = $( '#gamecontainer' );
snippeteditor = setupEditor( "snippetcode", '', "ace/mode/javascript" );
// Toggle game when editing
... | WinnipegAndroid/cordova-android-tv | www/static/apps/space_rocks_/js/index.js | JavaScript | gpl-2.0 | 22,069 |
/**
* 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.
*/
'use strict... | mk007sg/threeSeaShells | node_modules/react-native/Libraries/Animated/src/__tests__/Animated-test.js | JavaScript | gpl-3.0 | 15,137 |
define(["infobox/link", "infobox/node"], function (Link, Node) {
return function (config, sidebar, router) {
var self = this
var el
function destroy() {
if (el && el.parentNode) {
el.parentNode.removeChild(el)
el = undefined
sidebar.reveal()
}
}
function creat... | nonchip/meshviewer | lib/infobox/main.js | JavaScript | agpl-3.0 | 1,023 |
var f = function() {
//定义测试模块
module("effect api test");
var _ = NEJ.P,
_e = _('nej.e'),
_v = _('nej.v'),
_p = _('nej.ut');
test('effect api test',function(){
expect(0);
var _box = _e._$get('box');
var _button = _e._$getByClassName(document.body,'button');
var _... | NEYouFan/nej-toolkit | test/cases/nej_0.1.0/webapp/src/javascript/lib/nej/util/effect/test/effect.api.test.js | JavaScript | mit | 3,266 |
/**
@ngdoc directive
@name umbraco.directives.directive:umbBoxHeader
@restrict E
@scope
@description
Use this directive to construct a title. Recommended to use it inside an {@link umbraco.directives.directive:umbBox umbBox} directive. See documentation for {@link umbraco.directives.directive:umbBox umbBox}.
<h3>Mark... | mattbrailsford/Umbraco-CMS | src/Umbraco.Web.UI.Client/src/common/directives/components/html/umbbox/umbboxheader.directive.js | JavaScript | mit | 2,837 |
/*
* classList.js: Cross-browser full element.classList implementation.
* 1.2.20171109
*
* By Eli Grey, http://eligrey.com
* License: Dedicated to the public domain.
* See https://github.com/eligrey/classList.js/blob/master/LICENSE.md
*/
/*global self, document, DOMException */
/*! @source http://purl.eligre... | tholu/cdnjs | ajax/libs/classlist/1.2.20171109/classList.js | JavaScript | mit | 6,330 |
var fs = require('fs'); //Always required to read from files
var path = fs.absolute('.');
//Read files from filesystem
var expected = fs.read(path + '/blocklyeditor/tests/com/google/appinventor/blocklyeditor/data/underscore/underscoreExpected.yail');
var formJson = fs.read(path + '/blocklyeditor/tests/com/google/appi... | satgod/appinventor | appinventor/blocklyeditor/tests/com/google/appinventor/blocklyeditor/underscoreTest.js | JavaScript | mit | 1,847 |
/**
* Copyright 2013-present NightWorld.
*
* 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 ag... | dcoellarb/SICRIEN | pubsub/node_modules/oauth2-server/lib/grant.js | JavaScript | gpl-2.0 | 11,622 |
var assert = require('assert');
var error = require('../../../lib/error/index');
var math = require('../../../index');
var approx = require('../../../tools/approx');
var pi = math.pi;
var complex = math.complex;
var matrix = math.matrix;
var unit = math.unit;
var asin = math.asin;
var sin = math.sin;
var bigmath = math... | mefozzy/mathjs | test/function/trigonometry/asin.test.js | JavaScript | apache-2.0 | 5,830 |
// Fine Uploader 5.16.0-alpha.14 - (c) 2013-present Widen Enterprises, Inc. MIT licensed. http://fineuploader.com
(function(global) {
var qq = function(element) {
"use strict";
return {
hide: function() {
element.style.display = "none";
return this;
... | ahocevar/cdnjs | ajax/libs/file-uploader/5.16.0-alpha.14/azure.fine-uploader/azure.fine-uploader.core.js | JavaScript | mit | 286,401 |
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy... | dvh11er/mage-cheatcode | magento/js/mage/adminhtml/accordion.js | JavaScript | gpl-2.0 | 4,730 |
Proj4js.defs["EPSG:2625"] = "+proj=tmerc +lat_0=0 +lon_0=147 +k=1 +x_0=500000 +y_0=0 +ellps=krass +units=m +no_defs"; | debard/georchestra-ird | mapfishapp/src/main/webapp/lib/proj4js/lib/defs/EPSG2625.js | JavaScript | gpl-3.0 | 117 |
Proj4js.defs["EPSG:32182"] = "+proj=tmerc +lat_0=0 +lon_0=-56 +k=0.9999 +x_0=304800 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs"; | debard/georchestra-ird | mapfishapp/src/main/webapp/lib/proj4js/lib/defs/EPSG32182.js | JavaScript | gpl-3.0 | 136 |
/** A stream of tree nodes, accessing nodes from a tree of some kind */
org.antlr.runtime.tree.TreeNodeStream = function() {};
org.antlr.lang.extend(org.antlr.runtime.tree.TreeNodeStream,
org.antlr.runtime.IntStream);
| ekcs/congress | thirdparty/antlr3-antlr-3.5/runtime/JavaScript/src/org/antlr/runtime/tree/TreeNodeStream.js | JavaScript | apache-2.0 | 242 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* Operator x == y uses GetValue
*
* @path ch11/11.9/11.9.1/S11.9.1_A2.1_T1.js
* @description Either Type is not Reference or GetBase is not null
*/
//CHECK#1
if ((1 == 1) !== tr... | hippich/typescript | tests/Fidelity/test262/suite/ch11/11.9/11.9.1/S11.9.1_A2.1_T1.js | JavaScript | apache-2.0 | 972 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* Operator uses GetValue
*
* @path ch11/11.13/11.13.2/S11.13.2_A2.1_T3.4.js
* @description If GetBase(LeftHandSideExpression) is null, throw ReferenceError. Check operator is "x +... | hippich/typescript | tests/Fidelity/test262/suite/ch11/11.13/11.13.2/S11.13.2_A2.1_T3.4.js | JavaScript | apache-2.0 | 567 |
var structblackbone_1_1_module_table =
[
[ "count", "structblackbone_1_1_module_table.html#aba6a49f8ea332394f531ce49ac7cc921", null ],
[ "entry", "structblackbone_1_1_module_table.html#a56fdc62799ded3b3eafe68a83a4add59", null ]
]; | dooooon/Blackbone | doc/lib/html/structblackbone_1_1_module_table.js | JavaScript | mit | 238 |
'use strict';
var path = require('path');
var fs = require('graceful-fs');
var Promise = require('pinkie-promise');
var parseJson = require('parse-json');
module.exports = function(packageDir, packageProp) {
var packagePath = path.join(packageDir, 'package.json');
return new Promise(function(resolve, reject) {
... | PWNCgit/website | sites/all/themes/pwnc_theme/node_modules/stylelint/node_modules/cosmiconfig/lib/loadPackageProp.js | JavaScript | gpl-2.0 | 850 |
Proj4js.defs["EPSG:2028"] = "+proj=utm +zone=16 +ellps=clrk66 +units=m +no_defs"; | pmauduit/georchestra | mapfishapp/src/main/webapp/lib/proj4js/lib/defs/EPSG2028.js | JavaScript | gpl-3.0 | 81 |
module.exports.animate = function (graph) {
beginAddNodesLoop(graph);
}
function beginRemoveNodesLoop(graph){
var nodesLeft = [];
graph.forEachNode(function(node){
nodesLeft.push(node.id);
});
var removeInterval = setInterval(function(){
var nodesCount = nodesLeft.length;
if (nodesCount > 0) {
... | yantrabuddhi/external-tools | ocViewer/media/js/ngraph-master/examples/three.js/Side by side/lib/animateGraph.js | JavaScript | agpl-3.0 | 1,869 |
!function(e,t){"function"==typeof define&&define.amd?define(["exports","./globals/js/components","./globals/js/settings"],t):"undefined"!=typeof exports?t(exports,require("./globals/js/components"),require("./globals/js/settings")):(t(t={},e.components,e.settings),e.index=t)}("undefined"!=typeof globalThis?globalThis:"... | cdnjs/cdnjs | ajax/libs/carbon-components/10.27.0/umd/index.min.js | JavaScript | mit | 763 |
module.exports={title:"Autoprefixer",slug:"autoprefixer",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Autoprefixer</title><path d="M5.87 21.045h2.923l.959-3.068h4.503l.949 3.068h2.922L11.94 2.955l-6.07 18.09zm6.162-10.12 1.543 4.917h-3.153l1.553-4.916h.057zM24 17.617l-.378-1.182-6.... | cdnjs/cdnjs | ajax/libs/simple-icons/5.21.1/autoprefixer.min.js | JavaScript | mit | 623 |
function f() {};
function g(o) {
f = new Function("");
eval("");
}
g({});
g({});
f++;
| michath/ConMonkey | js/src/jit-test/tests/basic/bug657901.js | JavaScript | mpl-2.0 | 94 |
// 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.
// Flags: --invoke-weak-callbacks --omit-quit --gc-interval=355
var __v_33 = {};
__v_4 = 70000;
function __f_18() {
if ((__v_7 % 50) != 0) {
} else... | zero-rp/miniblink49 | v8_7_5/test/debugger/debug/regress/regress-617882.js | JavaScript | apache-2.0 | 652 |
app.factory('cells', function($resource) {
return $resource('../api/cells/');
});
app.factory('keyspaces', function($resource) {
return $resource('../api/keyspaces/:keyspace', {}, {
'action': {method: 'POST'}
});
});
app.factory('shards', function($resource) {
return $resource('../api/shards/:keyspace/:... | anusornc/vitess | web/vtctld/api.js | JavaScript | bsd-3-clause | 934 |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else {
var a = factory();
for(var i in a) (typeof exports === 'object' ? exports : roo... | froala/cdnjs | ajax/libs/rollbar.js/2.2.7/rollbar.noconflict.umd.js | JavaScript | mit | 148,449 |
'use strict';
module.exports = {
allMarkdownRemark: {
group: [
{
fieldValue: 'test_0',
totalCount: 1
},
{
fieldValue: 'test_1',
totalCount: 2
}
],
edges: [
{
node: {
fields: {
slug: '/test_0',
category... | wall3/wall3.github.io | jest/__fixtures__/all-markdown-remark.js | JavaScript | mit | 841 |
module.exports={title:"ComproPago",hex:"00AAEF",source:"https://compropago.com",svg:'<svg aria-labelledby="simpleicons-compropago-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title id="simpleicons-compropago-icon">ComproPago icon</title><path d="M19.32 7.778h-.003c-.604-.604-1.508-.604-2.11 ... | cdnjs/cdnjs | ajax/libs/simple-icons/1.9.9/compropago.min.js | JavaScript | mit | 997 |
CKEDITOR.plugins.setLang("image2","lt",{alt:"Alternatyvus Tekstas",btnUpload:"Siųsti į serverį",captioned:"Captioned image",captionPlaceholder:"Caption",infoTab:"Vaizdo informacija",lockRatio:"Išlaikyti proporciją",menu:"Vaizdo savybės",pathName:"image",pathNameCaption:"caption",resetSize:"Atstatyti dydį",resizer:"Clic... | wcadena/inventarioFinalApp | public/js/plugins/ckeditor/plugins/image2/lang/lt.js | JavaScript | epl-1.0 | 479 |
'use strict';
var StripeResource = require('../StripeResource');
var stripeMethod = StripeResource.method;
/**
* CustomerSubscription is a unique resource in that, upon instantiation,
* requires a customerId, and therefore each of its methods only
* require the subscriptionId argument.
*
* This streamlines the A... | leapon/reactcms | site/public/library/stripe/resources/CustomerSubscriptions.js | JavaScript | mit | 917 |
module.exports={title:"A-Frame",slug:"a-frame",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>A-Frame icon</title><path d="M17.37 17.07H6.57L4.24 24H3.01l8.23-24h1.52l8.23 24h-1.3zm-.39-1.13l-5-14.96-5.03 14.98h10.03Z"/></svg>',get path(){return this.svg.match(/<path\s+d="([^"]*)/)[1... | cdnjs/cdnjs | ajax/libs/simple-icons/4.25.0/a-frame.min.js | JavaScript | mit | 403 |
// 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: '4004a9fd-d58e-48dc-aeb2-4a4aec58606f',
name: 'AAD_POLICY_ADMINISTRATION_SERV... | wastoresh/azure-xplat-cli | test/recordings/arm-cli-role-tests/arm_role_definition_show_for_Owner_role_should_work.nock.js | JavaScript | apache-2.0 | 4,320 |
// Copyright 2009 the Sputnik authors. All rights reserved.
/**
* let P be ToString(pattern) and let F be ToString(flags)
*
* @path ch15/15.10/15.10.4/S15.10.4.1_A8_T12.js
* @description Pattern is "\u0042" and flags is {toString:void 0, valueOf:function(){throw "invalof";} }
*/
//CHECK#1
try {
$ERROR('#1.1: ne... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch15/15.10/15.10.4/S15.10.4.1_A8_T12.js | JavaScript | bsd-3-clause | 684 |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v10.0.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var VerticalStack = (function () {
function VerticalStack(... | extend1994/cdnjs | ajax/libs/ag-grid/10.0.0/lib/layout/verticalStack.js | JavaScript | mit | 1,215 |
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later
// Mixin to provide date formatting and "createdAt" method
// other attributes can be accessed by calling this.timeOf("timestamp-field")
// Requires:
// this = model with "created_at" attribute
app.models.form... | spixi/diaspora | app/assets/javascripts/app/models.js | JavaScript | agpl-3.0 | 525 |
/**
* @fileOverview
*
* KityMinder UI 注册及加载机制
*
* @author: techird
* @copyright: Baidu FEX, 2014
*/
(function() {
var uiQueue = [];
/* 注册一个新的 UI 交互 */
KityMinder.registerUI = function(id, deps, ui) {
if (typeof(deps) == 'function') {
ui = deps;
deps = null;
}... | xiaocuixt/kityminder | ui/ui.js | JavaScript | bsd-3-clause | 2,774 |
var store_list = [
["key0", "value0"],
["key1", "value1"],
["key2", "value2"]
];
["localStorage", "sessionStorage"].forEach(function(name) {
test(function () {
var storage = window[name];
storage.clear();
store_list.forEach(function(item) {
storage.setItem(item[0], item[1]);
});
for ... | scheib/chromium | third_party/blink/web_tests/external/wpt/webstorage/storage_set_value_enumerate.window.js | JavaScript | bsd-3-clause | 537 |
[
{
"category": "Nd",
"mappings": {
"default": {
"default": "digit zero",
"short": "zero"
},
"mathspeak": {
"default": "0"
}
},
"key": "0030"
},
{
"category": "Nd",
"mappings": {
"default": {
"default": "digit one",
"sho... | MarkUsProject/Markus | vendor/assets/javascripts/MathJax_lib/extensions/a11y/mathmaps/symbols/math_digits.js | JavaScript | mit | 68,437 |
import {path} from "d3-path";
import {slice} from "../array";
import constant from "../constant";
import {x as pointX, y as pointY} from "../point";
import pointRadial from "../pointRadial";
function linkSource(d) {
return d.source;
}
function linkTarget(d) {
return d.target;
}
function link(curve) {
var sourc... | alienzhou/source-reading | visualization/d3/modules/d3-shape/src/link/index.js | JavaScript | mit | 2,218 |