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 |
|---|---|---|---|---|---|
define([
'dojo/_base/declare',
'JBrowse/Component'
],
function( declare, Component ) {
return declare( Component,
{
constructor: function( args ) {
this.name = args.name;
this.cssLoaded = args.cssLoaded;
this._finalizeConfig( args.config );
},
_de... | wurmlab/afra | www/JBrowse/Plugin.js | JavaScript | apache-2.0 | 430 |
import moment from 'moment';
function rdTimer() {
return {
restrict: 'E',
scope: { timestamp: '=' },
template: '{{currentTime}}',
controller($scope) {
$scope.currentTime = '00:00:00';
// We're using setInterval directly instead of $timeout, to avoid using $apply, to
// prevent the ... | imsally/redash | client/app/components/rd-timer.js | JavaScript | bsd-2-clause | 794 |
// Copyright 2005 Google Inc.
// All Rights Reserved
//
// An XPath parser and evaluator written in JavaScript. The
// implementation is complete except for functions handling
// namespaces.
//
// Reference: [XPATH] XPath Specification
// <http://www.w3.org/TR/1999/REC-xpath-19991116>.
//
//
// The API of the parser ha... | generaltso/ajaxslt | xpath.js | JavaScript | bsd-3-clause | 70,892 |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(async function() {
TestRunner.addResult(`Tests that InspectorCSSAgent API methods work as expected.\n`);
await TestRunner.loadLegacyModule('elements'... | chromium/chromium | third_party/blink/web_tests/http/tests/devtools/elements/styles-4/styles-new-API.js | JavaScript | bsd-3-clause | 8,869 |
// Norwegian
$.extend( $.fn.pickadate.defaults, {
monthsFull: [ 'janaur', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember' ],
monthsShort: [ 'jan', 'feb', 'mar', 'apr', 'mai', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'des' ],
weekdaysFull: [ 'sønd... | FronterAS/pickadate.js | v2-(deprecated)/pickadate.js/translations/pickadate.no_NO.js | JavaScript | mit | 583 |
/*!
* Module dependencies.
*/
var async = require('async');
var ValidationError = require('../error/validation.js');
var ObjectId = require('../types/objectid');
/**
* Applies validators and defaults to update and findOneAndUpdate operations,
* specifically passing a null doc as `this` to validators and defaults
... | merlox/thetoptenweb-blog | node_modules/mongoose/lib/services/updateValidators.js | JavaScript | mit | 5,743 |
module.exports={A:{A:{"2":"J C G E B A VB"},B:{"1":"D Y g H L"},C:{"1":"0 1 3 4 5 6 l m n o p q r s x y u t","2":"TB z F I J C G E B A D Y g H L RB QB","129":"f K h i j k","420":"M N O P Q R S T U V W X v Z a b c d e"},D:{"1":"0 1 4 5 6 u t FB AB CB UB DB","2":"F I J C G E B A D Y g H L M N O P","420":"3 Q R S T U V W ... | hellokidder/js-studying | 微信小程序/wxtest/node_modules/caniuse-lite/data/features/stream.js | JavaScript | mit | 847 |
import {
moduleForComponent,
test
} from 'ember-qunit';
moduleForComponent('paper-content', 'PaperContentComponent', {
// specify the other units that are required for this test
// needs: ['component:foo', 'helper:bar']
unit: true
});
test('it renders', function(assert) {
assert.expect(2);
// creates t... | elwayman02/ember-paper | tests/unit/components/paper-content-test.js | JavaScript | mit | 527 |
// Generated by CoffeeScript 1.9.0
(function() {
var key, ref, val;
ref = require('./coffee-script');
for (key in ref) {
val = ref[key];
exports[key] = val;
}
}).call(this);
| nlhuykhang/atom-config | packages/linter-coffeelint/node_modules/coffeelint/lib/lib/coffee-script/index.js | JavaScript | mit | 192 |
// 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... | teeple/pns_server | work/install/node-v0.10.25/test/simple/test-tls-connect.js | JavaScript | gpl-2.0 | 2,554 |
import Reaction from "./core";
import * as Accounts from "./core/accounts";
import Router from "./router";
import { GeoCoder } from "./geocoder";
import Hooks from "./hooks";
import Logger from "./logger";
import { MethodHooks } from "./method-hooks";
// Legacy globals
// TODO: add deprecation warnings
ReactionCore = ... | NahomAgidew/eCommerce | server/api/index.js | JavaScript | gpl-3.0 | 804 |
// Generated by CoffeeScript 1.6.1
(function() {
this.Conditional = (function() {
function Conditional(element, callerElId) {
var dependencies;
this.el = $(element).find('.conditional-wrapper');
this.callerElId = callerElId;
if (callerElId !== void 0) {
dependencies = this.el.dat... | Emergya/icm-openedx-educamadrid-platform-basic | common/static/xmodule/modules/js/002-671868a7e1fc0cd56c25e708428edc7b.js | JavaScript | agpl-3.0 | 1,499 |
//// [tests/cases/compiler/exportStarForValues10.ts] ////
//// [file0.ts]
export var v = 1;
//// [file1.ts]
export interface Foo { x }
//// [file2.ts]
export * from "file0";
export * from "file1";
var x = 1;
//// [file0.js]
System.register([], function(exports_1, context_1) {
"use strict";
var ... | AbubakerB/TypeScript | tests/baselines/reference/exportStarForValues10.js | JavaScript | apache-2.0 | 1,278 |
/*
* 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 ... | psadusumilli/ignite | modules/web-console/backend/app/settings.js | JavaScript | apache-2.0 | 2,672 |
/**
* Copyright 2018 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... | dotandads/amphtml | extensions/amp-subscriptions/0.1/test/test-service-adapter.js | JavaScript | apache-2.0 | 4,939 |
// (C) Copyright 2015 Martin Dougiamas
//
// 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 agre... | Nithis111/AIT | www/addons/mod/resource/services/handlers.js | JavaScript | apache-2.0 | 7,714 |
/*
* 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 ma... | ShinichiU/OpenPNE3_with_webInstaller | plugins/opOpenSocialPlugin/lib/vendor/Shindig/features/i18n/data/NumberFormatConstants__si_LK.js | JavaScript | apache-2.0 | 1,468 |
/* global createHttpBackend: false, createMockXhr: false, MockXhr: false */
'use strict';
describe('$httpBackend', function() {
var $backend, $browser, callbacks,
xhr, fakeDocument, callback;
beforeEach(inject(function($injector) {
callbacks = {counter: 0};
$browser = $injector.get('$browser');
... | aakoch/angular.js | test/ng/httpBackendSpec.js | JavaScript | mit | 14,615 |
import Ember from "ember-metal/core";
import { get } from "ember-metal/property_get";
import run from "ember-metal/run_loop";
import { computed } from "ember-metal/computed";
import EmberView from "ember-views/views/view";
var originalLookup = Ember.lookup;
var lookup, view;
QUnit.module("EmberView.create", {
setup... | vitch/ember.js | packages/ember-views/tests/views/view/init_test.js | JavaScript | mit | 1,410 |
/* -*- 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/. */
gTestfile = 'short-001.js';
/**
... | sam/htmlunit-rhino-fork | testsrc/tests/lc2/JSToJava/short-001.js | JavaScript | mpl-2.0 | 3,033 |
horizon.addInitFunction(function() {
var allPanelGroupBodies = $('.nav_accordion > dd > div > ul');
allPanelGroupBodies.each(function(index, value) {
var activePanels = $(this).find('li > a.active');
if(activePanels.length === 0) {
$(this).slideUp(0);
}
});
// mark the active panel group
v... | spandanb/horizon | horizon/static/horizon/js/horizon.accordion_nav.js | JavaScript | apache-2.0 | 2,840 |
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Li... | darkrsw/safe | tests/browser_extensions/e4x/XMLList/13.5.1.js | JavaScript | bsd-3-clause | 2,967 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
/**
* @fileoverview Provides a mechanism for drawing massive numbers of
* colored rectangles into a canvas in an efficient manner, pr... | xin3liang/platform_external_chromium-trace | trace-viewer/src/tracing/fast_rect_renderer.js | JavaScript | bsd-3-clause | 3,854 |
Package.describe({
name: 'rocketchat:videobridge',
version: '0.2.0',
summary: 'jitsi integration',
git: ''
});
Package.onUse(function(api) {
api.versionsFrom('1.0');
api.use([
'ecmascript',
'underscore',
'less@2.5.0',
'rocketchat:lib'
]);
api.use('templating', 'client');
api.addAssets('client/publi... | BorntraegerMarc/Rocket.Chat | packages/rocketchat-videobridge/package.js | JavaScript | mit | 884 |
Package.describe({
name: 'rocketchat:favico',
version: '0.0.1',
summary: 'Favico.js for Rocket.Chat'
});
Package.onUse(function(api) {
api.addFiles('favico.js', 'client');
});
| xasx/Rocket.Chat | packages/rocketchat-favico/package.js | JavaScript | mit | 181 |
/**
* @fileOverview Surface
*/
import React, { Component, PropTypes } from 'react';
import classNames from 'classnames';
import { getPresentationAttributes } from '../util/ReactUtils';
const propTypes = {
width: PropTypes.number.isRequired,
height: PropTypes.number.isRequired,
viewBox: PropTypes.shape({
x:... | happyboy171/Feeding-Fish-View- | src/vendor/recharts/src/container/Surface.js | JavaScript | mit | 1,199 |
…
consts: [[__AttributeMarker.Bindings__, "click", "change"]],
template: function MyComponent_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵelementStart(0, "div", 0);
$r3$.ɵɵlistener("click", function MyComponent_Template_div_click_0_listener() {
return ctx.click();
})("change", function MyComponent_Temp... | ocombe/angular | packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/same_element_chained_listeners_template.js | JavaScript | mit | 425 |
// when the dom is ready...
$(function() {
var i = 0;
$("colgroup").each(function() {
i++;
$(this).attr("id", "col"+i);
});
var totalCols = i;
i = 1;
$("td").each(function() {
$(this).attr("rel", "col"+i);
i++;... | EduSec/EduSec | js/example-one.js | JavaScript | gpl-3.0 | 725 |
var searchData=
[
['glm_20core',['GLM Core',['../a00155.html',1,'']]],
['geometric_20functions',['Geometric functions',['../a00147.html',1,'']]],
['gtc_20extensions_20_28stable_29',['GTC Extensions (Stable)',['../a00153.html',1,'']]],
['glm_5fgtc_5fbitfield',['GLM_GTC_bitfield',['../a00159.html',1,'']]],
['gl... | sTorro/CViewGL | extern/glm-0.9.7.1/doc/api/search/groups_4.js | JavaScript | gpl-3.0 | 6,690 |
/**
* Shopware 5
* Copyright (c) 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
* permission... | wlwwt/shopware | themes/Backend/ExtJs/backend/customer/view/customer_stream/conditions/has_canceled_orders_condition.js | JavaScript | agpl-3.0 | 2,130 |
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax
(function TestNewlineInCPPComment() {
function Module() {
"use asm" // Crash by comment!
function f() {}
... | weolar/miniblink49 | v8_7_5/test/mjsunit/asm/regress-913822.js | JavaScript | apache-2.0 | 580 |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var core_1 = require('@angular/core');
var dom_a... | evandor/skysail-webconsole | webconsole.client/client/dist/lib/@angular/platform-browser/src/dom/events/dom_events.js | JavaScript | apache-2.0 | 1,930 |
// (C) Copyright 2015 Martin Dougiamas
//
// 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 agre... | VieiraAkA/Aplicacao | www/addons/mod/quiz/main.js | JavaScript | apache-2.0 | 3,228 |
try {
eval("bosh");
} catch (e) {
bosh = {};
} | jaxl/ebosh | bosh.js/src/bosh.xmpp.js | JavaScript | isc | 48 |
/*!
* resanitize - Regular expression-based HTML sanitizer and ad remover, geared toward RSS feed descriptions
* Copyright(c) 2012 Dan MacTough <danmactough@gmail.com>
* All rights reserved.
*/
/**
* Dependencies
*/
var validator = require('validator');
/**
* Remove unsafe parts and ads from HTML
*
* Example:... | danmactough/node-resanitize | resanitize.js | JavaScript | mit | 12,345 |
/*
* /MathJax/jax/output/CommonHTML/config.js
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* 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... | davidsiaw/weaver | data/weaver/js/MathJax/jax/output/CommonHTML/config.js | JavaScript | mit | 1,466 |
var satisfy = require('satisfy')
, Satisfaction = satisfy.Satisfaction;
var _fill = Satisfaction.prototype.fill;
Satisfaction.prototype.fill = function () {
if (arguments.length === 1) {
var namesToVals = arguments[0];
for (var name in namesToVals) {
_fill.call(this, 'input[name="' + name + '"]', nam... | fjytzh/pomeframe | web-server/node_modules/everyauth/test/util/satisfy.js | JavaScript | mit | 2,810 |
t = db.index_arr1
t.drop()
t.insert( { _id : 1 , a : 5 , b : [ { x : 1 } ] } )
t.insert( { _id : 2 , a : 5 , b : [] } )
t.insert( { _id : 3 , a : 5 } )
assert.eq( 3 , t.find( { a : 5 } ).itcount() , "A1" )
t.ensureIndex( { a : 1 , "b.x" : 1 } )
//t.find().sort( { a : 1 } )._addSpecial( "$returnKey" , 1 ).forEach(... | barakav/robomongo | src/third-party/mongodb/jstests/index_arr1.js | JavaScript | gpl-3.0 | 634 |
var namespace_mix_e_r_p_1_1_net_1_1_core_1_1_modules_1_1_back_office_1_1_hubs =
[
[ "DbHub", "class_mix_e_r_p_1_1_net_1_1_core_1_1_modules_1_1_back_office_1_1_hubs_1_1_db_hub.html", "class_mix_e_r_p_1_1_net_1_1_core_1_1_modules_1_1_back_office_1_1_hubs_1_1_db_hub" ]
]; | mixerp/mixerp | docs/api/namespace_mix_e_r_p_1_1_net_1_1_core_1_1_modules_1_1_back_office_1_1_hubs.js | JavaScript | gpl-3.0 | 273 |
/*
* jQuery UI @VERSION
*
* Copyright (c) 2008 AUTHORS.txt (http://ui.jquery.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI
*/
;(function($) {
/** jQuery core modifications and additions **/
$.keyCode = {
BACKSPACE: 8,
CAPS_LOCK:... | damilare/opencore | opencore/views/static/jquery-ui/grid/ui/ui.core.js | JavaScript | gpl-2.0 | 13,924 |
/*
* This file is part of Cockpit.
*
* Copyright (C) 2014 Red Hat, Inc.
*
* Cockpit is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any l... | SotolitoLabs/cockpit | pkg/dashboard/image-editor.js | JavaScript | lgpl-2.1 | 9,115 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* Check For Statement for automatic semicolon insertion
*
* @path ch07/7.9/S7.9_A6.4_T1.js
* @description Three semicolons. For header is (false semicolon false semicolon false se... | hippich/typescript | tests/Fidelity/test262/suite/ch07/7.9/S7.9_A6.4_T1.js | JavaScript | apache-2.0 | 395 |
define(function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
var Tokenizer = require("../tokenizer").Tokenizer;
var HaxeHighlightRules = require("./haxe_highlight_rules").HaxeHighlightRules;
var MatchingBraceOutdent = require("./matching_brace_outden... | steveworley/tornado | web/scripts/lib/ace/mode/haxe.js | JavaScript | mit | 1,666 |
var fs = require('fs');
function File() {
this.promise = Promise.resolve();
}
// Static method for File.prototype.read
File.read = function (filePath) {
var file = new File();
return file.read(filePath);
};
File.prototype.then = function (onFulfilled, onRejected) {
this.promise = this.promise.then(onFul... | purepennons/promises-book | Ch4_AdvancedPromises/embed/embed-fs-promise-chain.js | JavaScript | mit | 838 |
/*
Copyright (c) 2012 Barnesandnoble.com, llc, Donavon West, and Domenic Denicola
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 us... | digitalbazaar/credentials-io | tests/setImmediate.js | JavaScript | bsd-3-clause | 9,641 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
/** @suppress {duplicate} */
var remoting = remoting || {};
/**
* @param {Array<remoting.HostSetupFlow.State>} sequence Sequence of
... | Pluto-tv/chromium-crosswalk | remoting/webapp/crd/js/host_setup_dialog.js | JavaScript | bsd-3-clause | 17,508 |
/*
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
define(["dojo"],function(_1){
dijit=_1._dijit||{};
return dijit;
});
| skobbler/AddressHunter | web-app/public/js/dijit/lib/main.js | JavaScript | bsd-3-clause | 266 |
import React, {Component} from 'react';
import AppBar from 'material-ui/AppBar';
import IconButton from 'material-ui/IconButton';
import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-ui/MenuItem';
import FlatButton from 'material-ui/FlatButton';
import Toggle from 'material-ui/Toggle';
import Mor... | pbogdan/react-flux-mui | react-flux-mui/js/material-ui/docs/src/app/components/pages/components/AppBar/ExampleComposition.js | JavaScript | bsd-3-clause | 1,832 |
/*
YUI 3.15.0 (build 834026e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('uploader-html5', function (Y, NAME) {
/**
* This module provides a UI for file selection and multiple file upload capability using
* HTML5 XMLHTTPRequest Level 2 as ... | sameertechworks/wpmoodle | moodle/lib/yuilib/3.15.0/uploader-html5/uploader-html5.js | JavaScript | gpl-2.0 | 33,726 |
/**
* @private
*/
Ext.define('Ext.event.ListenerStack', {
currentOrder: 'current',
length: 0,
constructor: function() {
this.listeners = {
before: [],
current: [],
after: []
};
this.lateBindingMap = {};
return this;
},
add: ... | applifireAlgo/ZenClubApp | zenws/src/main/webapp/ext/packages/sencha-core/src/event/ListenerStack.js | JavaScript | gpl-3.0 | 4,258 |
/**
Task to optimize polyfiller.js
//grunt.loadTasks('_js/bower_components/webshim/grunt-tasks/');
//...
optimizePolyfiller: {
options: {
src: 'js-webshim/dev/', //required
features: 'forms mediaelement', //which features are used?
dest: 'js-webshims/minified/polyfiller-custom.js',
//should existing uglify be... | IsmailM/sequenceserver | public/vendor/npm/webshim@1.15.8/grunt-tasks/optimize-polyfiller.js | JavaScript | agpl-3.0 | 5,898 |
/*
* JQuery zTree excheck 3.5.02
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
*
* Licensed same as jquery - MIT License
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2013-01-28
*/
(function($){
//default consts of excheck
var _consts = {
event: {
CHECK:... | smgoller/geode | geode-pulse/src/main/webapp/scripts/lib/jquery.ztree.excheck-3.5.js | JavaScript | apache-2.0 | 21,302 |
if (self.importScripts)
importScripts("/js-test-resources/js-test.js");
description("Test EventSource reconnect after end of event stream.");
self.jsTestIsAsync = true;
var retryTimeout;
function checkReadyState(es, desiredState) {
shouldBe("es.readyState", "es." + desiredState);
}
var errCount = 0;
var es... | vadimtk/chrome4sdp | third_party/WebKit/LayoutTests/http/tests/eventsource/script-tests/eventsource-reconnect.js | JavaScript | bsd-3-clause | 1,087 |
describe("groupBy", function() {
ensureLaziness(function() { Lazy(people).groupBy(Person.getGender); });
it("groups the collection by a specified selector function", function() {
var byGender = Lazy(people).groupBy(Person.getGender).toArray();
expect(byGender).toEqual([
["M", [david, adam, daniel]],
... | ellismarkf/hacked | src/vendor/lazy/spec/group_by_spec.js | JavaScript | mit | 1,291 |
/*
* Copyright 2012 the original author or authors.
* Licensed under the Apache License, Version 2.0 (the "License");
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under t... | katsuya0719/visEPlus | static/vendor/js/dc.js | JavaScript | apache-2.0 | 104,931 |
/**
* @license jQuery Text Highlighter
* Copyright (C) 2011 - 2013 by mirz
*
* 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... | ahocevar/cdnjs | ajax/libs/texthighlighter/0.2/jquery.textHighlighter.js | JavaScript | mit | 18,913 |
(function() {
// Load plugin specific language pack
// tinymce.PluginManager.requireLangPack('wpdev_bk_quicktags');
tinymce.create('tinymce.plugins.WPDEV_BK_Quicktags', {
/**
* Initializes the plugin, this will be executed after the plugin has been created.
* This call is done before the editor instance has... | middle8media/Alpha-Accounting | wp-content/plugins/booking/js/custom_buttons/editor_plugin.js | JavaScript | gpl-2.0 | 1,893 |
//
// ShellJS
// Unix shell commands on top of Node's API
//
// Copyright (c) 2012 Artur Adib
// http://github.com/arturadib/shelljs
//
var fs = require('fs'),
path = require('path'),
util = require('util'),
vm = require('vm'),
child = require('child_process'),
os = require('os');
// Node shims fo... | stephenlorenz/sproutstudy | sproutStudy_web/yo/node_modules/grunt-contrib-jshint/node_modules/jshint/node_modules/shelljs/shell.js | JavaScript | apache-2.0 | 51,298 |
module.exports = require("npm:create-hash@1.1.1/browser"); | TelerikFrenchConnection/JS-Applications-Teamwork | lib/npm/create-hash@1.1.1.js | JavaScript | mit | 58 |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v9.0.2
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto... | nolsherry/cdnjs | ajax/libs/ag-grid/9.0.2/lib/filter/numberFilter.js | JavaScript | mit | 7,548 |
/**
* 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... | jdelhommeau/amphtml | src/utils/dom-fingerprint.js | JavaScript | apache-2.0 | 3,490 |
import { ShaderMaterial } from './ShaderMaterial';
import { ShaderChunk } from '../renderers/shaders/ShaderChunk';
import { UniformsLib } from '../renderers/shaders/UniformsLib';
import { UniformsUtils } from '../renderers/shaders/UniformsUtils';
/**
* @author mrdoob / http://mrdoob.com/
*
* parameters = {
* opac... | robcbryant/projectanka | static/three/extras/materials/ShadowMaterial.js | JavaScript | apache-2.0 | 1,127 |
IonicModule
.controller('$ionicTab', [
'$scope',
'$ionicViewService',
'$attrs',
'$location',
'$state',
function($scope, $ionicViewService, $attrs, $location, $state) {
this.$scope = $scope;
//All of these exposed for testing
this.hrefMatchesState = function() {
return $attrs.href && $location.path(... | frangucc/gamify | www/sandbox/pals/app/bower_components/ionic/js/angular/controller/tabController.js | JavaScript | mit | 803 |
var object1 = {
get [Symbol.create]() {
},
set [set()](value) {
}
};
var object2 = {
*[generator()]() {
}
};
var object3 = {
*[generator()]() {
}
};
var object4 = {
[Symbol.xxx]: 'hello',
[ok()]: 42
};
| Khan/escodegen | test/compare-harmony/computed-property.expected.js | JavaScript | bsd-2-clause | 242 |
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof module === "object" && module.exports) {
var $ = require('jquery');
module.exports = factory($);
} else {
// Browser globals
facto... | tpphu/jquery-textcomplete | dist/jquery.textcomplete.js | JavaScript | mit | 36,737 |
/*!
*
* ZingTouch v1.0.5
* Author: ZingChart http://zingchart.com
* License: MIT
*/
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ ... | sashberd/cdnjs | ajax/libs/zingtouch/1.0.5/zingtouch.js | JavaScript | mit | 108,494 |
var formatFailedStep = function(step) {
var stack = step.trace.stack;
var message = step.message;
if (stack) {
// remove the trailing dot
var firstLine = stack.substring(0, stack.indexOf('\n') - 1);
if (message && message.indexOf(firstLine) === -1) {
stack = message + '\n' + stack;
}
/... | vsdev1/testacular | adapter/jasmine.src.js | JavaScript | mit | 3,535 |
var getAllMatches = function(string, regex) {
//var regex = new RegExp(regex_str,"g");
var matches = [];
var match;
while (match = regex.exec(string)) {
var allmatches = [];
for (var index = 0; index < match.length; index++) {
allmatches.push(match[index]);
}
matches.push(allmatches);
}
re... | froala/cdnjs | ajax/libs/fast-xml-parser/1.1.1/fastxmlparser.js | JavaScript | mit | 2,896 |
YUI.add('dataschema-base', function (Y, NAME) {
/**
* The DataSchema utility provides a common configurable interface for widgets to
* apply a given schema to a variety of data.
*
* @module dataschema
* @main dataschema
*/
/**
* Provides the base DataSchema implementation, which can be extended to
* create Da... | aqt01/math_problems | node_modules/yui/dataschema-base/dataschema-base-debug.js | JavaScript | gpl-2.0 | 1,640 |
// Copyright (c) 2012 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.
/**
* DefaultTaskDialog contains a message, a list box, an ok button, and a
* cancel button.
* This dialog should be used as task picker for file o... | js0701/chromium-crosswalk | ui/file_manager/file_manager/foreground/js/ui/default_task_dialog.js | JavaScript | bsd-3-clause | 4,532 |
/*!
* # Semantic UI x.x - Checkbox
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2014 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ( $, window, document, undefined ) {
"use strict";
$.fn.checkbox = function(parameters) {
var
$allMod... | jw-psychopomp/ScotchDigital-portfolio | semantic/dist/components/checkbox.js | JavaScript | mit | 14,832 |
/* eslint-env node */
'use strict';
var path = require('path');
module.exports = {
entry: {
word_cloud: 'word_cloud',
},
output: {
path: path.resolve(__dirname, 'public/js'),
filename: '[name].js',
},
module: {
rules: [
{
test: /\.(js|jsx)$/,
use: 'babel-loader',
... | eduNEXT/edx-platform | common/lib/xmodule/xmodule/assets/word_cloud/webpack.config.js | JavaScript | agpl-3.0 | 1,004 |
/**
* html5tooltips.js
* Light and clean tooltips with CSS3 animation.
* https://github.com/ytiurin/html5tooltipsjs
*
* Yevhen Tiurin <yevhentiurin@gmail.com>
* The MIT License (MIT)
* http://opensource.org/licenses/MIT
*
* July 22, 2015
**/
(function() {
var tt, tModels, options, activeElements,
html5tooltipsPredef... | jackrosenhauer/html5tooltipsjs | html5tooltips.js | JavaScript | mit | 17,672 |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("uicolor","de",{title:"UI-Farbpipette",options:"Farboptionen",highlight:"Highlight",selected:"Ausgewählte Farbe",predefined:"Vord... | gitee2008/glaf | webapps/glaf/static/AdminLTE/bower_components/ckeditor/plugins/uicolor/lang/de.js | JavaScript | apache-2.0 | 414 |
var Waterline = require('../../../lib/waterline'),
assert = require('assert');
describe('Model', function() {
describe('associations Many To Many', function() {
describe('.add() with an id', function() {
/////////////////////////////////////////////////////
// TEST SETUP
//////////////////... | contra/waterline | test/integration/model/association.add.manyToMany.id.js | JavaScript | mit | 3,026 |
/*
** Copyright (c) 2018 The Khronos Group Inc.
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and/or associated documentation files (the
** "Materials"), to deal in the Materials without restriction, including
** without limitation the rights to use, copy, modify... | paulrouget/servo | tests/wpt/webgl/tests/js/tests/line-rendering-quality.js | JavaScript | mpl-2.0 | 6,605 |
/*
* blueimp Gallery JS 2.7.4
* https://github.com/blueimp/Gallery
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Swipe implementation based on
* https://github.com/bradbirdsall/Swipe
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*jslint regexp: true */
/*... | joacub/zf-joacub-uploader-twb | vendor/jQuery-File-Upload/Gallery/js/blueimp-gallery.js | JavaScript | bsd-3-clause | 47,446 |
import EmberError from 'ember-metal/error';
/**
@module ember
@submodule ember-metal
*/
var SPLIT_REGEX = /\{|\}/;
/**
Expands `pattern`, invoking `callback` for each expansion.
The only pattern supported is brace-expansion, anything else will be passed
once to `callback` directly.
Example
```js
funct... | cjc343/ember.js | packages/ember-metal/lib/expand_properties.js | JavaScript | mit | 2,084 |
'use strict';
const concat = require('../utils').concat;
function isRelative (module) {
return module.startsWith('./') || module.startsWith('../');
}
function formatFileList (files) {
const length = files.length;
if (!length) return '';
return ` in ${files[0]}${files[1] ? `, ${files[1]}` : ''}${length > 2 ? `... | niuzz/ci | vue-source/node_modules/friendly-errors-webpack-plugin/src/formatters/moduleNotFound.js | JavaScript | mit | 2,440 |
// Model
App.Mailbox = Em.Object.extend();
App.Mailbox.reopenClass({
find: function(id) {
if (id) {
return App.FIXTURES.findBy('id', id);
} else {
return App.FIXTURES;
}
}
});
// Routes
App.Router.map(function() {
this.resource('mailbox', { path: '/:mailbox_id' }, function() {
this... | elidupuis/website | source/javascripts/app/examples/routing/app.js | JavaScript | mit | 756 |
'use strict';
var resolveCommand = require('./util/resolveCommand');
var hasEmptyArgumentBug = require('./util/hasEmptyArgumentBug');
var escapeArgument = require('./util/escapeArgument');
var escapeCommand = require('./util/escapeCommand');
var readShebang = require('./util/readShebang');
var isWin = process.platfor... | mikemcdaid/getonupband | sites/all/themes/getonupband/node_modules/cross-spawn/lib/parse.js | JavaScript | gpl-2.0 | 3,725 |
/**
* @fileoverview Rule to flag block statements that do not use the one true brace style
* @author Ian Christian Myers
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//---------------------------------------------------------------------------... | BabbleCar/demo-mirrorlink-cordova | plugins/cordova-plugin-mirrorlink/www/node_modules/eslint/lib/rules/brace-style.js | JavaScript | mit | 8,342 |
/*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | JetBrains/jdk8u_nashorn | test/script/error/conditional_catch_nse.js | JavaScript | gpl-2.0 | 1,222 |
"use strict";
/**
* @class elFinder folders tree
*
* @author Dmitry (dio) Levashov
**/
$.fn.elfindertree = function(fm, opts) {
var treeclass = fm.res('class', 'tree');
this.not('.'+treeclass).each(function() {
var c = 'class',
/**
* Root directory class name
*
* @type String
*/
ro... | BROcart/2.7.8 | www/admin/elfinder/js/ui/tree.js | JavaScript | gpl-3.0 | 12,339 |
/**
* Push badges to backpack.
* @deprecated since 3.7
*/
function addtobackpack(event, args) {
var badgetable = Y.one('#issued-badge-table');
var errordiv = Y.one('#addtobackpack-error');
var errortext = M.util.get_string('error:backpackproblem', 'badges');
var errorhtml = '<div id="addtobackpack-er... | enovation/moodle | badges/backpack.js | JavaScript | gpl-3.0 | 1,670 |
/// <reference path="Definitions/jsnlog_interfaces.d.ts"/>
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
function JL(loggerName) {
// If name is... | sitna/api-sitna | lib/jsnlog/jsnlog.js | JavaScript | bsd-2-clause | 33,564 |
/**
* 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.
*
* @provides... | foxsofter/RealtimeMessaging-ReactNative | node_modules/react-native/Libraries/Network/XMLHttpRequest.ios.js | JavaScript | mit | 1,204 |
/**
* These objects store the data about the DOM nodes we create, as well as some
* extra data. They can then be transformed into real DOM nodes with the
* `toNode` function or HTML markup using `toMarkup`. They are useful for both
* storing extra properties on the nodes, as well as providing a way to easily
* wor... | cyanlime/platform | webapp/non_npm_dependencies/katex/src/domTree.js | JavaScript | agpl-3.0 | 7,224 |
// HTML block
'use strict';
var block_names = require('../common/html_blocks');
var HTML_TAG_OPEN_RE = /^<([a-zA-Z][a-zA-Z0-9]{0,14})[\s\/>]/;
var HTML_TAG_CLOSE_RE = /^<\/([a-zA-Z][a-zA-Z0-9]{0,14})[\s>]/;
function isLetter(ch) {
/*eslint no-bitwise:0*/
var lc = ch | 0x20; // to lower case
return (lc >= 0x... | waddedMeat/ember-proxy-example | test-app/node_modules/ember-cli/node_modules/markdown-it/lib/rules_block/html_block.js | JavaScript | mit | 1,933 |
module.exports = {
up(queryInterface, DataTypes) {
return queryInterface.createTable(
'Topics', {
id: {
type: DataTypes.STRING,
primaryKey: true
},
text: {
type: DataTypes.STRING
},
count: {
type: DataTypes.INTEGER
},
... | reactGo/reactGo | server_pg/db/sequelize/migrations/20160416222221-add-topics.js | JavaScript | mit | 520 |
/*prettydiff.com topcoms: true, insize: 4, inchar: " ", vertical: true */
/*jshint laxbreak: true*/
/*global __dirname, ace, console, define, global, module, options, process, require */
/*
Execute in a NodeJS app:
var prettydiff = require("prettydiff"),
args = {
source: "asdf",
... | dc-js/cdnjs | ajax/libs/prettydiff/2.1.12/prettydiff.js | JavaScript | mit | 23,178 |
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed ... | yesudeep/puppy | tools/google-closure-library/closure/goog/structs/structs.js | JavaScript | mit | 11,046 |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v5.0.0-alpha.0
* @link http://www.ag-grid.com/
* @license MIT
*/
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? t... | holtkamp/cdnjs | ajax/libs/ag-grid/5.0.0-alpha.0/lib/rowControllers/virtualPageRowModel.js | JavaScript | mit | 19,039 |
define(function () { return {"zones":{"America/Lower_Princes":["z",{"wallclock":-157766400000,"format":"AST","abbrev":"AST","offset":-14400000,"posix":-157750200000,"save":0},{"wallclock":-1826755200000,"format":"ANT","abbrev":"ANT","offset":-16200000,"posix":-1826738653000,"save":0},{"wallclock":-1.7976931348623157e+3... | usmschuck/canvas | public/javascripts/vendor/timezone/America/Lower_Princes.js | JavaScript | agpl-3.0 | 432 |
/**
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/**
* JMediaManager behavior for media component
*
* @package Joomla.Extensions
* @subpackage Media
* @since 1.5
*/
(function() {
var Media... | AxelFG/ckbran-inf | old/media/media/js/mediamanager.js | JavaScript | gpl-2.0 | 4,948 |
/**
* Based on bootstrap-slider-knockout-binding, written by Cosmin Stefan-Dobrin, https://github.com/cosminstefanxp,
* licensed under MIT License
*
* Github: https://github.com/cosminstefanxp/bootstrap-slider-knockout-binding
*/
ko.bindingHandlers.slider = {
init: function (element, valueAccessor, allBindings, v... | dragondgold/OctoPrint | src/octoprint/static/js/lib/bootstrap-slider-knockout-binding.js | JavaScript | agpl-3.0 | 1,654 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var widgetRole = {
abstract: true,
accessibleNameRequired: false,
baseConcepts: [],
childrenPresentational: false,
nameFrom: [],
props: {},
relatedConcepts: [],
requireContextRole: [],
requiredOwnedElements: [],
required... | grshane/monthofmud | web/themes/custom/mom/node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js | JavaScript | mit | 393 |
/*
BigVideo - The jQuery Plugin for Big Background Video (and Images)
by John Polacek (@johnpolacek)
Dual licensed under MIT and GPL.
Dependencies: jQuery, jQuery UI (Slider), Video.js, ImagesLoaded
*/
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// Register as an ano... | pkrulik/scentovation | js/vendor/BigVideo.js-master/lib/bigvideo.js | JavaScript | mit | 12,341 |
var m1_a1 = 10;
var m1_c1 = (function () {
function m1_c1() {
}
return m1_c1;
}());
var m1_instance1 = new m1_c1();
function m1_f1() {
return m1_instance1;
}
/// <reference path='ref/m1.ts'/>
var a1 = 10;
var c1 = (function () {
function c1() {
}
return c1;
}());
var instanc... | AbubakerB/TypeScript | tests/baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.js | JavaScript | apache-2.0 | 462 |
// Copyright 2016 The Closure Library 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 requ... | joshbruning/selenium | third_party/closure/goog/html/sanitizer/unsafe_test.js | JavaScript | apache-2.0 | 8,241 |