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 |
|---|---|---|---|---|---|
// IPAddress type
module.exports = exports = function IpAddr(mongoose) {
'use strict';
var Schema = mongoose.Schema;
var SchemaType = mongoose.SchemaType;
var Types = mongoose.Types;
var mongo = mongoose.mongo;
var v6 = require("ipv6").v6;
var v4 = require("ipv6").v4;
/**
* Lo... | sis-cmdb/sis-api | util/types/ipaddress.js | JavaScript | bsd-3-clause | 4,442 |
const React = window.React;
import Fixture from '../../Fixture';
import FixtureSet from '../../FixtureSet';
import TestCase from '../../TestCase';
import InputTestCase from './InputTestCase';
class TextInputFixtures extends React.Component {
render() {
return (
<FixtureSet
title="Inputs"
d... | wmydz1/react | fixtures/dom/src/components/fixtures/text-inputs/index.js | JavaScript | bsd-3-clause | 3,441 |
/**
* @license
* Copyright (c) 2019 Google Inc. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* Code distributed by Google as part of this project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io... | PolymerLabs/arcs-live | particles/TMDB/source/TMDBTile.js | JavaScript | bsd-3-clause | 2,401 |
/**
* 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... | xiayz/react-native | local-cli/bundle/output/writeFile.js | JavaScript | bsd-3-clause | 626 |
/*
*
* xxxxxxx xxxxxxx
* x:::::x x:::::x
* x:::::x x:::::x
* x:::::xx:::::x
* x::::::::::x
* x::::::::x
* x::::::::x
* x::::::::::x
* ... | rherrick/XNATImageViewer | src/main/scripts/viewer/X/visualization/renderer2D.js | JavaScript | bsd-3-clause | 36,879 |
/*
* 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | endlessm/chromium-browser | third_party/devtools-frontend/src/front_end/network/RequestHTMLView.js | JavaScript | bsd-3-clause | 2,671 |
/*
Soule Designs home javascript functionality
*/
//-------------------------------------------------------
// Page init
//-------------------------------------------------------
// Defined in content for easy manipulation
SetupHomeSlides(); | SouleDesigns/SouleDesigns.Orchard | src/Orchard.Web/Themes/SouleDesignsDark/Scripts/home.js | JavaScript | bsd-3-clause | 247 |
'use strict';
module.exports = {
db: 'mongodb://localhost/bitslip-test',
port: 3001,
app: {
title: 'bitslip - Test Environment'
},
coinbase: {
clientID: process.env.COINBASE_ID || 'APP_ID',
clientSecret: process.env.COINBASE_SECRET || 'APP_SECRET'
},
mailer: {
from: process.env.MAILER_FROM || 'MAILER_FR... | orphaned-comet/bitslip | config/env/test.js | JavaScript | bsd-3-clause | 561 |
(function($){
$(document).ready(function(){
if($('.wholesaler-form, .new_spree_wholesaler').is('*')){
// $('.wholesaler-form, .new_wholesaler').validate();
var get_states = function(region){
country = $('p#' + region + 'country' + ' span#' + region + 'country :only-child').val();
ret... | wearespry/spree_wholesale | app/assets/javascripts/wholesaler_address.js | JavaScript | bsd-3-clause | 2,179 |
jQuery(function ($) {
// Used for code highlighting
if (typeof hljs !== 'undefined')
hljs.initHighlightingOnLoad();
// User for dialogs
$('#bootbox-alert').on(ace.click_event, function () {
bootbox.alert('Hello World!', function () {
});
});
$('#bootbox-confirm').on(ace... | vincentsels/themes-gnap | custom/ace/html/app/views/assets/scripts/examples.js | JavaScript | bsd-3-clause | 9,473 |
// The following is adapted from fdlibm (http://www.netlib.org/fdlibm),
//
// ====================================================
// Copyright (C) 1993-2004 by Sun Microsystems, Inc. All rights reserved.
//
// Developed at SunSoft, a Sun Microsystems, Inc. business.
// Permission to use, copy, modify, and distribute t... | yury-s/v8-inspector | Source/chrome/v8/src/third_party/fdlibm/fdlibm.js | JavaScript | bsd-3-clause | 31,910 |
/**
* Pimcore
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.pimcore.org/license
*
* @copyright Copyright (c) 2009-2010 elements.at New Media ... | clime/pimcore-custom | static/js/pimcore/object/classes/data/languagemultiselect.js | JavaScript | bsd-3-clause | 2,032 |
'use strict';
var style = require('./style')
, events = require('./events')
, query = require('./query')
, activeElement = require('./activeElement')
, ownerDocument = require('./ownerDocument')
, ownerWindow = require('./ownerWindow')
module.exports = {
...style,
...events,
...query,
activeEleme... | glortho/dom-helpers | src/index.js | JavaScript | mit | 424 |
// Karma configuration
// http://karma-runner.github.io/0.12/config/configuration-file.html
// Generated on 2014-09-12 using
// generator-karma 0.8.3
module.exports = function(config) {
'use strict';
config.set({
// enable / disable watching file and executing tests whenever any file changes
autoWatch: tr... | Filirom1/docker-registry-frontend | test/karma.conf.js | JavaScript | mit | 2,499 |
"use strict";
var through = require('through2');
var report = require('./report');
var extra = require('./extra_api');
var notifier = require('node-notifier');
module.exports = function (options) {
var reporter;
var lastFile = null;
options = options || {};
var templateOptions = options.templateOptions || {}... | danneh/Grid_Layout | node_modules/gulp-notify/lib/notify.js | JavaScript | mit | 2,100 |
/**
* @description
* this file is based on : piuccio/node-coverage
* folliwing MIT license
* the project : https://github.com/piuccio/node-coverage
* the origin file : lib/instrument.js
*/
var parser = require("uglify-js").parser;
var uglify = require("uglify-js").uglify;
/**
* instrument code
* @public
* @pa... | wenjoy/homePage | node_modules/node-captcha/node_modules/canvas/node_modules/mocha/node_modules/jade/node_modules/stylus/node_modules/jscoverage/lib/instrument.js | JavaScript | mit | 7,398 |
'use strict';
module.exports = (err, data, res) => {
if (err) return console.log('Erro:', err);
res.json(data);
};
| Webschool-io/Node-Atomic-Design-Modelo-Padrao | crud-express-populate/modules/Professor/organisms/organelles/callbackExpress.js | JavaScript | mit | 120 |
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports", "@angular/core", "./virtual... | 12mo2525/angularMail | node_modules/ionic-angular/umd/components/virtual-scroll/virtual-scroll.js | JavaScript | mit | 43,823 |
"use strict";
var assert = chai.assert;
var should = chai.should();
var expect = chai.expect;
require("../../../src/index");
describe('helpers', function () {
var node = document.createElement('p'),
parentNode = document.createElement('div');
parentNode.classList.add('test-class');
parentNode.app... | sfjs/sf.js | test/unit/core/helpers.spec.js | JavaScript | mit | 5,393 |
Ext.define('Fiddle.FieldsFilter', {
extend: 'Ext.panel.Panel',
requires: [
'Fiddle.FieldFilter',
'Fiddle.FieldsFilterController'
],
alias: 'widget.fieldsfilter',
config: {
controller: 'fieldsfilter',
layout: {
type: 'vbox',
align: 'left'
... | bradyhouse/house | fiddles/extjs6/fiddle-0033-CSVExporter/src/view/east/filter/fieldsfilter/FieldsFilter.js | JavaScript | mit | 1,902 |
var searchData=
[
['getinsertsize',['getInsertSize',['../adapter_trimming_8h.html#a8427805bc99660a9476176b62061f45f',1,'adapterTrimming.h']]],
['getoverlap',['getOverlap',['../adapter_trimming_8h.html#af28bd342d3520fd7fe6e298e0271e288',1,'adapterTrimming.h']]],
['getprefix',['getPrefix',['../demultiplex_8h.html#a... | bkahlert/seqan-research | raw/pmsb13/pmsb13-data-20130530/sources/24xc47o54r0zzgyu/2013-05-28T12-13-04.486+0200/sandbox/my_sandbox/Berichte & Dokumentation/DoxyGen/html/search/functions_67.js | JavaScript | mit | 816 |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.0-rc4-master-f9738f5
*/
(function( window, angular, undefined ){
"use strict";
/**
* @ngdoc module
* @name material.components.dialog
*/
angular
.module('material.components.dialog', [
'material.core',
'material... | joshm101/blackwashed_portfolio | public/lib/angular-material/modules/js/dialog/dialog.js | JavaScript | mit | 44,877 |
/// <reference path="models.js" />
| pn787/Knockout-MVA | Knockout MVA Demos/M1-BugTracker/js/site.js | JavaScript | mit | 39 |
/*
* Sir Trevor Editor Store
* By default we store the complete data on the instances $el
* We can easily extend this and store it on some server or something
*/
SirTrevor.editorStore = function(editor, method, options) {
var resp;
options = options || {};
switch(method) {
case "create":
// Grab our... | 10thfloor/sir-trevor-js | src/extensions/sir-trevor.editor-store.js | JavaScript | mit | 1,535 |
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _slicedToArray = function () {... | BearGuy/QHacks2017bot | node_modules/node-wit/lib/wit.js | JavaScript | mit | 9,600 |
YUI.add('gallery-event-pasted', function(Y) {
/**
* simple event support test
* TODO: this is useful and should be abstracted
* @param eventName {String} name of event to test for (with or without 'on' prefix)
* @param node {Y.Node|HTMLElement} optional node to test event support for
* @return {Boolean}
*/
funct... | inikoo/fact | libs/yui/yui3-gallery/build/gallery-event-pasted/gallery-event-pasted-debug.js | JavaScript | mit | 4,804 |
var _ = require('underscore');
var assert = require('./assert.more');
var ActiveDirectory = require('../index');
var config = require('./config');
describe('ActiveDirectory', function() {
var ad;
var settings = require('./settings').getGroupMembershipForUser;
before(function() {
ad = new ActiveDirectory(conf... | gheeres/node-activedirectory | test/getgroupmembershipforuser.js | JavaScript | mit | 3,041 |
/*
* @name 이징(Easing)
* @description 화면 위로 마우스 커서를 움직이면 기호가 따라옵니다.
* 애니메이션의 매 프레임 사이에, 프로그램은 기호와 마우스 커서 간의 거리를 계산합니다.
* 만약 그 거리가 1픽셀보다 크다면, 기호는 현재 위치로부터 커서의 위치를 향해
* 일정 거리(0.05)를 이동합니다.
*/
let x = 1;
let y = 1;
let easing = 0.05;
function setup() {
createCanvas(720, 400);
noStroke();
}
function draw() {
... | processing/p5.js-website | src/data/examples/ko/21_Input/02_Easing.js | JavaScript | mit | 712 |
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for license information.
*/
Type.registerNamespace('Mscrm');
Mscrm.IBrowserStorage = function() {}
Mscrm.IBrowserStorage.registerInterface('Mscrm.IBrowserStorage');
Mscrm.CrmCrossBrow... | Adoxio/xRM-Portals-Community-Edition | Samples/MasterPortal/js/charts/crm/CrmInternalUtility.js | JavaScript | mit | 11,874 |
import { AbstractTestCase } from 'internal-test-helpers';
import { get } from 'ember-metal';
import { runArrayTests, newFixture } from '../helpers/array';
class UnshiftObjectsTests extends AbstractTestCase {
'@test returns receiver'() {
let obj = this.newObject([]);
let items = newFixture(3);
this.asser... | kennethdavidbuck/ember.js | packages/ember-runtime/tests/mutable-array/unshiftObjects-test.js | JavaScript | mit | 3,627 |
(function() {
window.page2reader = (function() {
var frameName, formName,
action = 'http://page2reader.appspot.com/submit',
charset = document.characterSet || document.charset,
pUrl = document.location.href;
var listen = function(evnt, elem, func) {
if (elem.addEventListener) {... | witterk/page2reader | web/page2reader/firefox-extension/data/sendp2r.js | JavaScript | mit | 4,711 |
import {List, Record} from 'immutable';
export default Record(
{
items: new List(),
state: 'passed',
},
'ErrorList',
);
| outoftime/learnpad | src/records/ErrorList.js | JavaScript | mit | 135 |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... | jbrantly/ts-loader | test/comparison-tests/allowJs-entryFileIsJs/expectedOutput-2.6/bundle.js | JavaScript | mit | 2,497 |
'use strict'
const joi = require('joi')
const itemSchema = require('./lineItem')
module.exports = joi.alternatives().try(
joi.object().keys({
line_items: joi.array().items(itemSchema)
}).unknown(),
joi.array().items(itemSchema)
)
| CaliStyle/trailpack-proxy-cart | lib/schemas/cart/updateItems.js | JavaScript | mit | 241 |
"use strict";
const React = require("react");
const { Container, GridBlock } = require("../../../core/CompLibrary.js");
class Help extends React.Component {
render() {
const supportLinks = [
{
content:
"Learn more using the [documentation on this site.](/docs/en/why-prettier.html)\n",
... | prettier/prettier | website/pages/en/help/index.js | JavaScript | mit | 1,201 |
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under the MIT license
*/
if (typeof jQuery === 'undefined') {
throw new Error('Bootstrap\'s JavaScript requires jQuery')
}
+function ($) {
'use strict';
var version = $.fn.jquery.split(' ')[0].split('.')
if ((v... | jongalloway/aspnetcore-app-workshop | save-points/5-User-association-and-personal-agenda/ConferencePlanner/FrontEnd/wwwroot/lib/bootstrap/dist/js/bootstrap.js | JavaScript | mit | 69,708 |
// DO NOT EDIT THIS FILE
// This file is automatically generated from the webgme-setup-tool.
"use strict";
var config = require("webgme/config/config.default"),
validateConfig = require("webgme/config/validator");
// The paths can be loaded from the webgme-setup.json
config.plugin.basePaths.push("src/plugin");
conf... | webgme/webgme-setup-tool | test/res/OtherProject/config/config.webgme.js | JavaScript | mit | 1,098 |
(function() {
var AlignItems, Declaration, flexSpec, _ref,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototyp... | sela/quiz | web/sm/node_modules/grunt-autoprefixer/node_modules/autoprefixer/lib/hacks/align-items.js | JavaScript | mit | 1,774 |
'use strict';
var inherits = require('util').inherits,
f = require('util').format,
EventEmitter = require('events').EventEmitter,
ReadPreference = require('./read_preference'),
Logger = require('../connection/logger'),
debugOptions = require('../connection/utils').debugOptions,
retrieveBSON = require('../c... | aguerny/LacquerTracker | node_modules/mongodb/lib/core/topologies/server.js | JavaScript | mit | 31,325 |
'use strict';
module.exports = angular.module('app.home', [])
.config(['$stateProvider', function($stateProvider){
$stateProvider.state('home', {
url: '/home',
views: {
'container@': {
template: require('./home.page.html')
}
... | imperia1991/study-agular1.5 | app/states/home/home.module.js | JavaScript | mit | 560 |
/**
* @fileoverview Tests for one-true-brace rule.
* @author Ian Christian Myers
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const rule = require("../../../lib/rul... | vitorbal/eslint | tests/lib/rules/brace-style.js | JavaScript | mit | 16,286 |
describe('Module Uilogic', function() {
beforeEach(function() {
browser.get('/');
});
it('start the generation of random numbers when clicking on the button', function() {
// navbar directive is present
var navbar = element(by.id('navbar'));
expect(navbar.isDisplayed()).toBe(true);
///////////// CLIC... | kanedaki/Redradix-course-angular-november2015 | TEMA8/EJERCICIOS/test/e2e/client/modules/uilogic/uilogicSpecs.js | JavaScript | mit | 1,299 |
/**
* Let's weed out the ES versions that won't work with a given Kibana version.
* 1. Major version differences will never work together.
* 2. Older versions of ES won't work with newer versions of Kibana.
*/
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports['default'] = isEs... | phupn1510/ELK | kibana/kibana/src/core_plugins/elasticsearch/lib/is_es_compatible_with_kibana.js | JavaScript | mit | 1,273 |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* The Impact Velocity component.
* Should be applied as a mixin.
*
* @namespace Phaser.Physics.Impact.Components.Velocity
* @since 3.0.... | photonstorm/phaser | plugins/impact/components/Velocity.js | JavaScript | mit | 2,258 |
exports.pluginOptionsSchema = ({ Joi }) => Joi.object({})
| gatsbyjs/gatsby | packages/gatsby-plugin-twitter/src/gatsby-node.js | JavaScript | mit | 58 |
this["JST"] = this["JST"] || {};;;;;;this["JST"]["test/fixtures/basic.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [2,'>= 1.0.0-rc.3'];
helpers = helpers || Handlebars.helpers; data = data || {};
return "Basic template that does nothing.";
}); | rcgray/geometryzen | node_modules/lineman/node_modules/grunt-contrib-handlebars/test/expected/custom_separator.js | JavaScript | mit | 310 |
/**
* ContentTranslation Tools
* A tool that allows editors to translate pages from one language
* to another with the help of machine translation and other translation tools
*
* @file
* @ingroup Extensions
* @copyright See AUTHORS.txt
* @license GPL-2.0+
*/
( function ( $, mw ) {
'use strict';
function ada... | Rjaylyn/mediawiki-extensions-ContentTranslation | modules/tools/ext.cx.tools.poem.js | JavaScript | gpl-2.0 | 1,200 |
// $Id: tokens.js 8633 2010-04-25 12:57:33Z c_schmitz $
$(document).ready(function(){
$("#filterduplicatetoken").change(function(){
if ($("#filterduplicatetoken").attr('checked')==true)
{
$("#lifilterduplicatefields").slideDown();
}
else
{
$("#lifilterduplicatefields").slideUp()... | afypa/forms | admin/scripts/tokens.js | JavaScript | gpl-2.0 | 1,230 |
// <?php // This should fool phpDocumentor into parsing this file
/**
* Debug Function, that works like print_r for Objects in Javascript
*/
function var_dump(obj) {
var vartext = "";
for (var prop in obj) {
if( isNaN( prop.toString() )) {
vartext += "\t->"+prop+" = "+ eval( "obj."+prop.toString()) +"\n";
}
... | SSCPS/Check-It | pre-fork-install/components/com_booklibrary/includes/functions.js | JavaScript | gpl-2.0 | 5,977 |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'showblocks', 'sl', {
toolbar: 'Prikaži ograde'
} );
| shophelfer/shophelfer.com-shop | admin/includes/modules/ckeditor/plugins/showblocks/lang/sl.js | JavaScript | gpl-2.0 | 224 |
google.load("visualization","1",{packages:["corechart"]});google.setOnLoadCallback(drawChart);
function drawChart(){var a,c=[],d=document.getElementById("ab_chart"),b=new google.visualization.DataTable;if(d&&antispambee.created.length){var e=antispambee.created.split(","),f=antispambee.count.split(",");for(a in e)c[a]=... | Simon-Windisch/test-Blog | wp-content/plugins/antispam-bee/js/dashboard.min.js | JavaScript | gpl-2.0 | 849 |
/**
* This is a modified version of the Thickbox file: we use it to override the built-in
* thickbox's "tb_remove" function because it does not play well with JQuery tabs.
* See http://code.google.com/p/wordpress-custom-content-type-manager/issues/detail?id=192&sort=milestone
*
* To see if this is having the desir... | AgenciaIM/www.radiosampaio.dev | wp-content/plugins/custom-content-type-manager/js/thickbox.js | JavaScript | gpl-2.0 | 1,255 |
// **********************************************************************
//
// Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// ***************************************************... | elijah513/ice | js/src/Ice/browser/ModuleRegistry.js | JavaScript | gpl-2.0 | 1,160 |
/**
This module provides classes for the parsing of a JSON describing
a faust interface and the realization of that interface in SVG.
It also allows for interaction between this interface and a server.
@module Faust Web UI
@main Faust Web UI
**/
/**
Extension of the JavaScript String class.
@class String
@for
@cons... | FlatIO/faudiostream | architecture/httpdlib/html/js/svg/faust_proto.js | JavaScript | gpl-2.0 | 30,126 |
Blockly.Blocks.lp2i_mp3_init.getBlockType = function() {
return Blockly.Types.NUMBER;
}; | technologiescollege/Blockly-at-rduino_offline | wwwBlockly@rduino/blocks/dfplayer-mini-mp3-dfrobot/blocks_typing.js | JavaScript | gpl-2.0 | 89 |
tinyMCE.addI18n('pt.zenphoto_dlg',{
about_title:"Sobre o TinyMCE",
about_general:"Sobre",
about_help:"Ajuda",
about_license:"Licen\u00E7a",
about_plugins:"Plugins",
about_plugin:"Plugin",
about_author:"Autor",
about_version:"Vers\u00E3o",
about_loaded:"Plugins Instalados",
anchor_title:"Inserir/editar \u00E2n... | jewsroch/sf-photos | zp-core/zp-extensions/tiny_mce/themes/zenphoto/langs/pt_dlg.js | JavaScript | gpl-2.0 | 1,944 |
/**
* @fileOverview Contains the block quote button code.
* @license http://www.raptor-editor.com/license
*
* @author David Neilsen <david@panmedia.co.nz>
* @author Michael Robinson <michael@panmedia.co.nz>
* @author Melissa Richards <melissa@panmedia.co.nz>
*/
/**
* Creates an instance of the preview toggle b... | misol/raptor-editor | src/plugins/text-style/block-quote.js | JavaScript | gpl-3.0 | 518 |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
define([
'base/js/namespace',
'base/js/utils',
'jquery',
'tree/js/notebooklist',
], function(IPython, utils, $, notebooklist) {
"use strict";
var TerminalList = function (selector, options) {... | boompieman/iim_project | project_python2/lib/python2.7/site-packages/notebook/static/tree/js/terminallist.js | JavaScript | gpl-3.0 | 4,301 |
/**
* @author Martin Micunda {@link http://martinmicunda.com}
* @copyright Copyright (c) 2015, Martin Micunda
* @license GPL-3.0
*/
'use strict';
import LocationResource from './location.js';
describe('LocationResource', () => {
let locationResource, mockData= '$http', route = `locations`;
beforeEa... | vanife/employee-scheduling-ui | src/app/core/resources/location/location.spec.js | JavaScript | gpl-3.0 | 656 |
/* -*- indent-tabs-mode: nil; js-indent-level: 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/. */
/**
File Name: 11.4.2.js
ECMA Section: ... | cstipkovic/spidermonkey-research | js/src/tests/ecma/Expressions/11.4.2.js | JavaScript | mpl-2.0 | 3,041 |
// Copyright 2015 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: --min-preparse-length=0
function f() {
var a, b;
[ a, b ] = [1, 2];
assertEquals(1, a);
assertEquals(2, b);
}
f();
| Jet-Streaming/framework | deps/v8/test/mjsunit/es6/destructuring-assignment-lazy.js | JavaScript | mpl-2.0 | 303 |
load(libdir + "eqArrayHelper.js");
assertEqArray([...wrap([1])], [1]);
assertEqArray([1,, ...wrap([2, 3, 4]), 5, ...wrap([6])], [1,, 2, 3, 4, 5, 6]);
| cledoux/cmps530 | js/src/jit-test/tests/basic/spread-array-wrap.js | JavaScript | mpl-2.0 | 151 |
const winston = require('winston');
const { format } = require('logform');
const logger = winston.createLogger({
transports: [
new winston.transports.Console({
name: 'console',
level: 'info',
format: format.combine(
format.colorize(),
form... | mwest1066/PrairieLearn | lib/logger.js | JavaScript | agpl-3.0 | 676 |
$(document).ready(function() {
setQueryRequiredFunctions["ContactDetailQueryInstance"] = makeContactDetailQueryRequired;
});
function initContactDetailQuery(queryID) {
var shortQueryID = "#q" + queryID;
$(shortQueryID + "_mobilephone").keyup(function() {
if($(this).val() != "") {
$(s... | christer155/Open-ePlatform | FlowEngine/src/com/nordicpeak/flowengine/queries/contactdetailquery/staticcontent/js/contactdetailquery.js | JavaScript | agpl-3.0 | 853 |
/* Own modules */
var examples = require('./examples.js'),
packageDownload = require('./packageDownload.js');
/* httpHandler module */
(function(module) {
/* The function that handles normal requests to the HTTP-server */
module.handleRequest = function(handlerName, domain, req, res) {
var i;
... | sintefmath/equelle | webdemo/srv/server/httpHandler.js | JavaScript | agpl-3.0 | 1,025 |
/*
* (C) Copyright 2013-2014 Kurento (http://kurento.org/)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/... | TribeMedia/kurento-client-js | test/elements/RecorderEndpoint.js | JavaScript | lgpl-2.1 | 2,505 |
if (!org.bustany.TrackerBird.Plugin || !org.bustany.TrackerBird.Plugin.__initialized)
org.bustany.TrackerBird.Plugin = {
// Init barrier
__initialized: true,
_trackerConnection: null,
_mailstore: org.bustany.TrackerBird.MailStore,
_persistentstore: org.bustany.TrackerBird.PersistentStore,
_trackerstore: org.bust... | outofbits/tracker | src/plugins/thunderbird/chrome/content/plugin.js | JavaScript | lgpl-2.1 | 2,855 |
description("Test to ensure correct behaviour of Object.getOwnPropertyNames");
function argumentsObject() { return arguments; };
var expectedPropertyNamesSet = {
"{}": "[]",
"{a:null}": "['a']",
"{a:null, b:null}": "['a', 'b']",
"{b:null, a:null}": "['a', 'b']",
"{__proto__:{a:null}}": "[]",
"... | youfoh/webkit-efl | LayoutTests/fast/js/script-tests/Object-getOwnPropertyNames.js | JavaScript | lgpl-2.1 | 6,639 |
/**
The GPL License (GPL)
Copyright (c) 2012 Andreas Herz
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; either version 2 of the License, or (at your option) any later version.
This program is dis... | igemsoftware/SYSU-Software_2014 | server/static/js/graphiti/geo/PositionConstants.js | JavaScript | lgpl-3.0 | 1,053 |
/*!
* Ext JS Library 3.3.0
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
*/
/**
* @class Date
*
* The date parsing and formatting syntax contains a subset of
* <a href="http://www.php.net/date">PHP's date() function</a>, and the formats that are
* supported will pr... | zigama/rapidsms-rwanda | apps/webapp/static/javascripts/extjs/src/util/Date.js | JavaScript | lgpl-3.0 | 55,998 |
function numberOfChangesMatching(number) {
return sinon.match(function(changes) {
return changes.length === number;
}, 'number of changes matching ' + number);
}
function aChangeMatches(changes, options){
var found = false, i=0, l = changes.length, change;
var test = function(change){
var resu... | ellipticaljs/Object.observe | test/helpers.js | JavaScript | unlicense | 3,531 |
// call signatures in derived types must have the same or fewer optional parameters as the base type
var b;
var a;
a = b.a; // ok
a = b.a2; // ok
a = b.a3; // error
a = b.a4; // error
a = b.a5; // ok
a = b.a6; // error
var a2;
a2 = b.a; // ok
a2 = b.a2; // ok
a2 = b.a3; // ok
a2 = b.a4; // ok
a2 = b.a... | hippich/typescript | tests/baselines/reference/assignmentCompatWithConstructSignaturesWithOptionalParameters.js | JavaScript | apache-2.0 | 708 |
/*
Copyright (c) 2004-2010, 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
*/
if(!dojo._hasResource["dojox.fx.easing"]){ //_hasResource checks added by build. Do not use _hasResource directly in... | ozoneplatform/owf-framework | web-app/js-lib/dojo-release-1.5.0/dojox/fx/easing.js | JavaScript | apache-2.0 | 700 |
/*
** Copyright 2013 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 i... | niezengying/liquid-galaxy-origin | lib/multiaxis.js | JavaScript | apache-2.0 | 2,902 |
function(i) {
if (i<0||i>7)return this;
var bit = this.val$&(1<<i);
if (bit>0) {
return Byte(this.val$&(0xff^(1<<i)));
} else {
return Byte(this.val$|(1<<i));
}
return this;
}
| unratito/ceylon.language | runtime-js/Byte/flip.js | JavaScript | apache-2.0 | 196 |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | GoogleCloudPlatform/cloud-build-samples | node-example-yarn/test.js | JavaScript | apache-2.0 | 1,141 |
define( [
"dojo/_base/declare"
], function(declare) {
var XMLWriter = declare( "scidrive.XMLWriter", null, {
constructor: function(args) {
declare.safeMixin(this, args);
this.XML= [];
this.Nodes= [];
this.State = "";
},
FormatXML: function(Str) {
if (Str)
... | nds-org/scidrive-ui | src/scidrive/XMLWriter.js | JavaScript | apache-2.0 | 12,803 |
/*!
* apiai
* Copyright(c) 2015 http://api.ai/
* Apache 2.0 Licensed
*/
'use strict';
var Request = require('./request').Request;
var util = require('util');
var ServerError = require('./exceptions').ServerError;
exports.JSONApiRequest = module.exports.JSONApiRequest = JSONApiRequest;
util.inherits(JSONApiRequ... | mrkmvd/Agent21 | src/node_modules/apiai/module/json_api_request.js | JavaScript | apache-2.0 | 1,735 |
/**
* Yobi, Project Hosting SW
*
* Copyright 2013 NAVER Corp.
* http://yobi.io
*
* @author Jihan Kim
*
* 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/li... | doortts/fork-yobi | public/javascripts/service/yobi.project.Setting.js | JavaScript | apache-2.0 | 5,365 |
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component, PropTypes } from 'react';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Props';
const CLASS_ROOT = ... | nickjvm/grommet | src/js/components/icons/base/Launch.js | JavaScript | apache-2.0 | 1,834 |
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... | apache/couchdb-fauxton | app/addons/components/components/codeeditorpanel.js | JavaScript | apache-2.0 | 3,811 |
define(
({
builder: {
layouts: {
mainStage: "Obszar główny",
sideTitle: "Panel boczny",
sideDescr: "Układ dla opowiadania z dużą ilością tekstu, doskonały do połączenia zdjęć, filmów wideo oraz map w przejrzystą prezentację.",
floatTitle: "Panel przestawny",
floatDescr: "Układ umożliwiający ... | ssylvia/growth-of-cities | src/resources/tpl/builder/nls/pl/template.js | JavaScript | apache-2.0 | 7,430 |
// (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... | mtcsathya/knms | www/core/lib/text.js | JavaScript | apache-2.0 | 9,544 |
//// [computedPropertyNames43_ES5.ts]
class Foo { x }
class Foo2 { x; y }
class C {
[s: string]: Foo2;
}
class D extends C {
// Computed properties
get ["get1"]() { return new Foo }
set ["set1"](p: Foo2) { }
}
//// [computedPropertyNames43_ES5.js]
var __extends = (this && this.__extends) || funct... | plantain-00/TypeScript | tests/baselines/reference/computedPropertyNames43_ES5.js | JavaScript | apache-2.0 | 1,254 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.4.4.16-7-8
description: Array.prototype.every - no observable effects occur if len is 0
---*/
var accessed = false;
function callbackfn(val, idx, obj)... | m0ppers/arangodb | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/Array/prototype/every/15.4.4.16-7-8.js | JavaScript | apache-2.0 | 596 |
// test multiply
var assert = require('assert'),
math = require('../../../index'),
approx = require('../../../tools/approx'),
market = require('../../../tools/matrixmarket'),
multiply = math.multiply,
divide = math.divide,
matrix = math.matrix,
complex = math.complex,
bignumber = math.bi... | ericman314/mathjs | test/function/arithmetic/multiply.test.js | JavaScript | apache-2.0 | 29,248 |
/* global ga */
(function(ctx) {
/**
*
*/
function Analytics(options) {
/* eslint-disable */
if (!options.googleAnalyticsTrackingId) {
console.log(
'Failed to initialize Google Analytics handler, no tracking ID');
return;
}
/*... | gpolitis/jitsi-meet | analytics-ga.js | JavaScript | apache-2.0 | 5,927 |
/*jslint browser: true*/
'use strict';
// ------------------------------------------------------------------------------------------ Component Dependencies
// Unfortunately, Bootstrap requires global jQuery object
var $ = require('jquery');
// -------------------------------------------------------------------------... | rohan591/youtransfer | src/js/components/select-section/select-section.js | JavaScript | apache-2.0 | 1,804 |
// Copyright 2014 Samsung Electronics Co., Ltd.
//
// 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 la... | LeeHayun/jerryscript | tests/jerry-test-suite/11/11.05/11.05.02/11.05.02-024.js | JavaScript | apache-2.0 | 651 |
/*
Copyright (c) 2008-2009 Yahoo! Inc. All rights reserved.
The copyrights embodied in the content of this file are licensed by
Yahoo! Inc. under the BSD (revised) open source license
@author Vlad Dan Dascalescu <dandv@yahoo-inc.com>
Tokenizer for PHP code
References:
+ http://php.net/manual/en/reserved.php
+... | GavinGu/kyli_v2 | webapp/s/ckfinder/plugins/fileeditor/codemirror/contrib/php/js/tokenizephp.js | JavaScript | apache-2.0 | 78,057 |
$app.controller('homeController', ['$scope', '$routeParams', function ($scope, $routeParams) {
}]); | GlobalX/SbManager | src/SbManager/Scripts/manager/helpController.js | JavaScript | apache-2.0 | 103 |
/* eslint-disable import/no-extraneous-dependencies */
// Installed by gatsby-remark-draw
const Svg = require('skyrta/lib/svg');
/* eslint-enable import/no-extraneous-dependencies */
const SupportedLanguages = require('./lib/supportedlanguages');
const langs = new SupportedLanguages();
function supportedLanguages() {... | line/armeria | site/src/plugins/lib/skyrta-patched/index.js | JavaScript | apache-2.0 | 1,162 |
girderTest.importPlugin('authorized_upload');
girderTest.startApp();
var secureUrl = null;
describe('Create an authorized upload.', function () {
it('register a user', girderTest.createUser(
'admin', 'admin@girder.test', 'Admin', 'Admin', 'passwd'));
it('go to the authorize upload page', function () {... | girder/girder | plugins/authorized_upload/plugin_tests/authorizedUploadSpec.js | JavaScript | apache-2.0 | 3,124 |
var global_language,langSet;
//取得語言設定
function getLan(){
$.ajax({
url: configObject.langSet,
data: {type:"getLan"},
type: "POST",
async: false,
dataType: "JSON",
success:function(rs){
//console.log(rs);
if(rs.status){
langSet = rs... | DelphiRace/Customers-Mana | public/include/js/main/langSet.js | JavaScript | apache-2.0 | 1,042 |
import {Injector} from 'di/di';
import {ProtoElementInjector} from 'core/compiler/element_injector';
var ITERATIONS = 20000;
var count = 0;
export function run () {
var appInjector = new Injector([]);
var bindings = [A, B, C];
var proto = new ProtoElementInjector(null, 0, bindings);
var ei = proto.instantiat... | jeffbcross/angular | modules/benchmarks/src/element_injector/instantiate_directive_benchmark.js | JavaScript | apache-2.0 | 615 |
/*
Copyright (c) 2004-2010, 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
*/
if(!dojo._hasResource["dojox.form.manager._Mixin"]){ //_hasResource checks added by build. Do not use _hasResource d... | ozoneplatform/owf-framework | web-app/js-lib/dojo-release-1.5.0/dojox/form/manager/_Mixin.js | JavaScript | apache-2.0 | 15,535 |
import Feature from '../../../../src/ol/Feature.js';
import LineString from '../../../../src/ol/geom/LineString.js';
import MultiLineString from '../../../../src/ol/geom/MultiLineString.js';
import MultiPolygon from '../../../../src/ol/geom/MultiPolygon.js';
import Point from '../../../../src/ol/geom/Point.js';
import ... | fredj/ol3 | test/rendering/ol/style/text.test.js | JavaScript | bsd-2-clause | 15,964 |
/*
* @class Canvas
* @inherits Renderer
* @aka L.Canvas
*
* Allows vector layers to be displayed with [`<canvas>`](https://developer.mozilla.org/docs/Web/API/Canvas_API).
* Inherits `Renderer`.
*
* Due to [technical limitations](http://caniuse.com/#search=canvas), Canvas is not
* available in all web browsers,... | hyperknot/Leaflet | src/layer/vector/Canvas.js | JavaScript | bsd-2-clause | 9,740 |
require('fs').readFile;
// Tests that this ref points to !node.fs.readFile, not the readFile function's
// AVal that is reachable via file scope. Just to make for cleaner refs.
| sourcegraph/jsg | testdata/nodejs_core_ref.js | JavaScript | bsd-3-clause | 178 |
/* @flow */
/**
* Copyright (c) 2015, 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.
*/
i... | mitenmit/graphql-js | src/type/definition.js | JavaScript | bsd-3-clause | 22,234 |