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
/* Copyright (c) 2008-2015 Pivotal Labs 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, modify, merge, publish, distribut...
adellanno/thermostat_wed
lib/jasmine-2.3.4/jasmine-html.js
JavaScript
mit
14,724
'use strict'; describe('basic mark with accuracy partially', function() { var $ctx; beforeEach(function(done) { loadFixtures('basic/accuracy-partially.html'); $ctx = $('.basic-accuracy-partially'); new Mark($ctx[0]).mark('lorem', { 'accuracy': 'partially', 'separateWordSearch': false, ...
julmot/jquery.mark
test/specs/basic/accuracy-partially.js
JavaScript
mit
549
module.exports = function ({ $lookup }) { return { object: function () { return function (object, $buffer, $start) { $buffer[$start++] = object.nudge & 0xff $buffer[$start++] = Number(object.value & 0xffn) $buffer[$start++] = Number(object.value >...
bigeasy/packet
test/generated/bigint/le/long.serializer.all.js
JavaScript
mit
918
import trimTransform from '../../../validations/trim'; import { module, test } from 'qunit'; module('Unit | Transform | trim'); test('valid', function(assert) { assert.expect(1); const trim = trimTransform.transform; assert.deepEqual(trim('foo '), 'foo'); });
JKGisMe/ember-stickler
tests/unit/validations/trim-test.js
JavaScript
mit
273
CodeMirror.Vim.suppressErrorLogging = true; var code = '' + ' wOrd1 (#%\n' + ' word3] \n' + 'aopop pop 0 1 2 3 4\n' + ' (a) [b] {c} \n' + 'int getchar(void) {\n' + ' static char buf[BUFSIZ];\n' + ' static char *bufp = buf;\n' + ' if (n == 0) { /* buffer is empty */\n' + ' n = read(0, buf, sizeof buf);\n' + ' ...
antimatter15/CodeMirror
test/vim_test.js
JavaScript
mit
141,174
// Github: https://github.com/shdwjk/Roll20API/blob/master/UsePower/UsePower.js // By: The Aaron, Arcane Scriptomancer // Contact: https://app.roll20.net/users/104025/the-aaron var UsePower = UsePower || (function() { 'use strict'; var version = 0.31, schemaVersion = 0.1, ch = function (c) { var enti...
rbroemeling/roll20-api-scripts
UsePower/UsePower.js
JavaScript
mit
14,540
/////////////////////////////////////////////////////////////////////////// // Copyright © Esri. 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.ap...
tmcgee/cmv-wab-widgets
wab/2.15/widgets/Bookmark/HeadBar.js
JavaScript
mit
7,032
define("p3/widget/viewer/JobResult", [ 'dojo/_base/declare', 'dijit/layout/BorderContainer', 'dojo/on', 'dojo/dom-class', 'dijit/layout/ContentPane', 'dojo/dom-construct', '../PageGrid', '../formatter', '../../WorkspaceManager', 'dojo/_base/lang', 'dojo/dom-attr', '../WorkspaceExplorerView', 'dijit/Dialog', '.....
dawenx/p3_web
public/js/release/p3/widget/viewer/JobResult.js
JavaScript
mit
6,330
quail.inputCheckboxRequiresFieldset = function (quail, test, Case) { test.get('$scope').find(':checkbox').each(function() { var _case = Case({ element: this, expected: $(this).closest('.quail-test').data('expected') }); test.add(_case); if (!$(this).parents('fieldset').length) { _cas...
cksource/quail
src/js/custom/inputCheckboxRequiresFieldset.js
JavaScript
mit
452
'use strict'; const validator = require('./utils/validator-extras').validator; const extendModelValidations = require('./utils/validator-extras').extendModelValidations; const Utils = require('./utils'); const sequelizeError = require('./errors'); const Promise = require('./promise'); const DataTypes = require('./data...
mason-smith/netboox
server/node_modules/sequelize/lib/instance-validator.js
JavaScript
mit
12,595
/* globals process module */ module.exports = { port: process.env.PORT || 3001 };
shakuu/Exams
js-apps/solution/config/index.js
JavaScript
mit
86
var Fiber = require('fibers'); var Future = require('fibers/future'); var _ = require('underscore'); var files = require('./fs/files.js'); var parseStack = require('./utils/parse-stack.js'); var fiberHelpers = require('./utils/fiber-helpers.js'); var Progress = require('./progress.js').Progress; var debugBuild = !!pro...
D1no/meteor
tools/buildmessage.js
JavaScript
mit
18,780
version https://git-lfs.github.com/spec/v1 oid sha256:6e0fec378eb4f28a5413e72853e29d53e7f507d5d5244b079b91dfc326849a1d size 26697
yogeshsaroya/new-cdnjs
ajax/libs/rxjs/2.1.20/rx.coincidence.js
JavaScript
mit
130
import { helper as h } from "@ember/component/helper"; export const helper = h( params => params.reduce( ( a, b ) => a - b ) );
streamlink/streamlink-twitch-gui
src/app/ui/components/helper/math-sub.js
JavaScript
mit
130
/* --- MooTools: the javascript framework web build: - http://mootools.net/core/76bf47062d6c1983d66ce47ad66aa0e0 packager build: - packager build Core/Core Core/Array Core/String Core/Number Core/Function Core/Object Core/Event Core/Browser Core/Class Core/Class.Extras Core/Slick.Parser Core/Slick.Finder Co...
joseluisq/uslider
assets/mootools-core-1.4.5-full-compat-yc.js
JavaScript
mit
115,127
version https://git-lfs.github.com/spec/v1 oid sha256:84d2ba940af161741f3e4dce70a2cfb1a542aca54abda9b1bb6166556d1fbf8d size 12104
yogeshsaroya/new-cdnjs
ajax/libs/codemirror/4.4.0/mode/verilog/verilog.js
JavaScript
mit
130
'use strict'; var postcss = require('postcss'); var fs = require('fs'); var path = require('path'); var fontFile = fs.readFileSync(path.resolve(__dirname, '../../packages/theme-chalk/src/icon.scss'), 'utf8'); var nodes = postcss.parse(fontFile).nodes; var classList = []; nodes.forEach((node) => { var selector = nod...
Kingwl/element
build/bin/iconInit.js
JavaScript
mit
588
Vue.mixin({ methods: { logout() { document.getElementById('logout-form').submit() } // logout } // methods })
PrismPrince/SSG-Poll-System
resources/assets/js/mixins/_logout.js
JavaScript
mit
133
/** * @module myModule * @summary: This module's purpose is to: * * @description: * * Author: Justin Mooser * Created On: 2015-05-14. * @license Apache-2.0 */ "use strict"; exports.config = { seleniumAddress: 'http://localhost:4444/wd/hub', //specs: ['tests/e2e/*.js'], //protractor protractor.conf.js -...
webinverters/ng-base
test/protractor.conf.js
JavaScript
mit
807
/** * This module is responsible for drawing an image to an enabled elements canvas element */ (function (cornerstone) { "use strict"; /** * API function to draw a standard web image (PNG, JPG) to an enabledImage * * @param enabledElement * @param invalidated - true if pixel data has be...
liyocee/cornerstone
src/rendering/renderWebImage.js
JavaScript
mit
2,477
import foo from "directories_lib/foo"; import directories_lib from "directories_lib"; import { foo as other } from "./another"; export default { name: "test/test", foo: foo, directories_lib: directories_lib, other: other };
stealjs/steal
test/npm/directories_lib/test/test.js
JavaScript
mit
229
'use strict'; var React = require('react'); var mui = require('material-ui'); var SvgIcon = mui.SvgIcon; var ImageMusicNote = React.createClass({ displayName: 'ImageMusicNote', render: function render() { return React.createElement( SvgIcon, this.props, React.createElement('path', { d: 'M12...
jotamaggi/react-calendar-app
node_modules/react-material-icons/icons/image/music-note.js
JavaScript
mit
456
var test = require("tape"); var a = require("../"); var fixture = [ 1, 2, 3 ]; test("a.contains(array, value)", function(t){ t.strictEqual(a.contains(fixture, 1), true); t.strictEqual(a.contains(fixture, 4), false); t.end(); }); test("a.contains(array, array)", function(t){ t.strictEqual(a.contains(f...
Essk/FreeCodeCamp-Projects
node_modules/local-web-server/node_modules/object-tools/node_modules/array-tools/test/contains.js
JavaScript
mit
426
import nodeResolve from 'rollup-plugin-node-resolve'; import uglify from 'rollup-plugin-uglify'; import progress from 'rollup-plugin-progress'; import sourcemaps from 'rollup-plugin-sourcemaps'; import visualizer from 'rollup-plugin-visualizer'; var MINIFY = process.env.MINIFY; var ROUTER = process.env.ROUTER; var EVE...
firasbarakat/node-server-template
public/bower_components/angular-ui-router/rollup.config.js
JavaScript
mit
2,153
// ------------------------------------------------------------- // WARNING: this file is used by both the client and the server. // Do not use any browser or node-specific API! // ------------------------------------------------------------- import { Syntax } from '../tools/esotope'; import { createTempVarIdentifier,...
georgiy-abbasov/testcafe-hammerhead
src/processing/script/transformers/for-in.js
JavaScript
mit
1,121
'use strict'; /** @module */ function toEpochWithoutTime (text) { // be sure to exclude time so we get accurate text var dateTextWithoutTime = new Date(Date.parse(text)).toDateString(); return Date.parse(dateTextWithoutTime); } function sameMonth (firstEpoch, secondEpoch) { var first = new Date(first...
p-equis/mountebank
src/util/date.js
JavaScript
mit
1,489
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.0.16 (2019-09-24) */ (function () { 'use strict'; ...
extend1994/cdnjs
ajax/libs/tinymce/5.0.16/plugins/print/plugin.js
JavaScript
mit
1,493
/*jshint node:true, mocha:true, expr:true*/ /** * @author kecso / https://github.com/kecso */ var testFixture = require('./../_globals.js'); describe('issue110 testing', function () { 'use strict'; var gmeConfig = testFixture.getGmeConfig(), Q = testFixture.Q, expect = testFixture.expect, ...
pillforge/webgme
test/issue/110_serialization_of_aspect_meta_rule.js
JavaScript
mit
4,964
var config = require('../config') var gulp = require('gulp') , stylus = require('gulp-stylus') , nib = require('nib') , rename = require('gulp-rename') , minifyCss = require('gulp-minify-css') gulp.task('stylus', function(){ return gulp.src(config.entryFiles.stylus) .on('error', function(){ console...
kenCode-de/react-accordion
gulp/tasks/stylus.js
JavaScript
mit
594
var util = require("util"); var choreography = require("temboo/core/choreography"); /* ChangePassword Changes a user's password. */ var ChangePassword = function(session) { /* Create a new instance of the ChangePassword Choreo. A TembooSession object, containing a valid set of Temboo cr...
rwaldron/ideino-linino-dist
node_modules/temboo/Library/Salesforce/Passwords.js
JavaScript
mit
14,598
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import OpenIcon from '../svg-icons/hardware/keyboard-arrow-up'; import CloseIcon from '../svg-icons/hardware/keyboard-arrow-down'; import IconButton from '../IconButton'; function getStyles() { return { root: { top: 0, bottom...
kittyjumbalaya/material-components-web
src/Card/CardExpandable.js
JavaScript
mit
1,159
/** * @fileoverview 管道对象集合 * @authors Tony Liang <pillar0514@163.com> */ define('mods/model/pipelist',function(require,exports,module){ var $ = require('lib'); var $model = require('lib/mvc/model'); var $pipe = require('mods/model/pipe'); var $channel = require('mods/channel/global'); var $delay = require('lib...
tony-302/log-analysis
src/js/mods/model/pipelist.js
JavaScript
mit
2,006
const SecurityExtension = Jymfony.Bundle.SecurityBundle.DependencyInjection.SecurityExtension; const ContainerBuilder = Jymfony.Component.DependencyInjection.ContainerBuilder; const ParameterBag = Jymfony.Component.DependencyInjection.ParameterBag.ParameterBag; const JsDumper = Jymfony.Component.DependencyInjection.Dum...
alekitto/jymfony
src/Bundle/SecurityBundle/test/DependencyInjection/SecurityExtensionTest.js
JavaScript
mit
1,253
var inspector = require('../'); var schema = { type: 'object', properties: { lorem: { type: 'string', eq: 'ipsum' }, dolor: { type: 'array', items: { type: 'number' } } } }; var candidate = { lorem: 'not_ipsum', dolor: [ 12, 34, 'ERROR', 45, 'INVALID' ] }; var result = inspector.validate(schema, cand...
Atinux/schema-inspector
misc/node-test.js
JavaScript
mit
533
var Remote = require('remote'); var App = Remote.require('app'); var React = require('react'); var SearchbarContainer = require('../searchbar/container'); var DownloadManager = require('../../../modules/DownloadManager'); var KakuCore = require('../../../modules/KakuCore'); var ToolbarContainer = React.createClass({...
uirsevla/Kaku
src/views/components/toolbar/container.js
JavaScript
mit
2,565
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------...
arunetm/ChakraCore_0114
test/es6/object-assign.js
JavaScript
mit
6,868
'use strict'; exports.BattleItems = { abomasite: { inherit: true, isUnreleased: false, }, aggronite: { inherit: true, isUnreleased: false, }, aguavberry: { inherit: true, onUpdate: function (pokemon) { if (pokemon.hp <= pokemon.maxhp / 2) { pokemon.eatItem(); } }, onEat: function (pokemo...
Lord-Haji/SpacialGaze
mods/gen6/items.js
JavaScript
mit
5,746
'use strict'; var React = require('react'); var mui = require('material-ui'); var SvgIcon = mui.SvgIcon; var EditorFormatBold = React.createClass({ displayName: 'EditorFormatBold', render: function render() { return React.createElement( SvgIcon, this.props, React.createElement('path', { d: ...
jotamaggi/react-calendar-app
node_modules/react-material-icons/icons/editor/format-bold.js
JavaScript
mit
606
// @flow import * as React from "react"; import TopBarProgressIndicator from "react-topbar-progress-indicator"; TopBarProgressIndicator.config({ barThickness: 4, barColors: { "0": "#fff", "1.0": "#fff", }, shadowBlur: 5, }); const devicePixelRatio = typeof window === "undefined" ? 1 : window.device...
MoOx/statinamic
website/components/ActivityIndicator.js
JavaScript
mit
2,666
/*eslint-disable no-console */ 'use strict'; var fs = require('fs-extra'); var ng = require('../helpers/ng'); var existsSync = require('exists-sync'); var expect = require('chai').expect; var path = require('path'); var tmp = require('../helpers/tmp'); var root = process.cwd(); var conf = require('ember-cli/tests/help...
cironunes/angular-cli
tests/acceptance/generate-pipe.spec.js
JavaScript
mit
5,065
"use strict"; var utils = require('../../../src/packages/dom'); describe("SirTrevor.Submittable", function() { var submittable; var formTemplate = "<form><input type='submit' value='Go!'></form>"; beforeEach(function() { submittable = new SirTrevor.Submittable(utils.createDocumentFragmentFromString(formTe...
madebymany/sir-trevor-js
spec/javascripts/units/submittable.spec.js
JavaScript
mit
2,119
var assert = require('assert'), error = require('../../../lib/error/index'), math = require('../../../index'), approx = require('../../../tools/approx'), pi = math.pi, atanh = math.atanh, tanh = math.tanh, complex = math.complex, matrix = math.matrix, unit = math.unit, bigmath = ...
jeslopcru/code-refactoring-course
class6/ejercicio/mathjs-solucion/test/function/trigonometry/atanh.test.js
JavaScript
mit
4,567
import { action, createType, createAsyncTypes, APP, BOOK, SLOT, } from 'helpers/actions'; const type = base => createType(APP, BOOK, SLOT, base); const asyncType = base => createAsyncTypes(type(base)); export const INIT = asyncType('INIT'); export const INVALIDATE_PARENTS = asyncType('INVALIDATE_PARENTS'...
Apozhidaev/ergonode
src/store/app/book/currentSlot/actions.js
JavaScript
mit
895
// Karma configuration // Generated on Mon Jan 20 2014 05:41:33 GMT-0500 (EST) module.exports = function(config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '../../..', // frameworks to use frameworks: ['mocha'], // list of files / patterns to load in the brows...
bentrm/DeftJS
test/karma/touch/2.1.0.conf.js
JavaScript
mit
2,465
(function () { "use strict"; var config = require('./config.js'); var app =config.initApp(); var router = config.initRouter(app); require('./rutas/index.js')(router); app.listen(3000); }());
AcademiaBinaria/NodeJS
12 mongodb/practica/req/tienda.js
JavaScript
mit
201
Error.stackTraceLimit = Infinity; var acorn = require("../src/index") var pp = acorn.Parser.prototype var tt = acorn.tokTypes pp.isRelational = function (op) { return this.type === tt.relational && this.value === op } pp.expectRelational = function (op) { if (this.isRelational(op)) { this.next() } else { ...
samccone/babel
src/acorn/plugins/flow.js
JavaScript
mit
22,991
'use strict'; /* global describe, it */ const assert = require('assert'); const app = require('../../../index'); describe('AuthController', () => { it('should exist', () => { assert(app.api.controllers['AuthController']); }); });
wbprice/okcandidate-platform
test/integration/controllers/AuthController.test.js
JavaScript
mit
248
// This file is part of Indico. // Copyright (C) 2002 - 2021 CERN // // Indico is free software; you can redistribute it and/or // modify it under the terms of the MIT License; see the // LICENSE file for more details. import createBookingURL from 'indico-url:rb.create_booking'; import fetchEventsURL from 'indico-url:...
pferreir/indico
indico/modules/rb/client/js/modules/bookRoom/actions.js
JavaScript
mit
9,361
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normalizeCoreJSOption = normalizeCoreJSOption; exports.default = normalizeOptions; exports.validateUseBuiltInsOption = exports.validateModulesOption = exports.validateIgnoreBrowserslistConfig = exports.validateBoolOption = exports.v...
gusortiz/code_challenges
node_modules/@babel/preset-env/lib/normalize-options.js
JavaScript
mit
8,771
// Morris.js Charts sample data for SB Admin template $(function() { // Area Chart Morris.Area({ element: 'morris-area-chart', data: [{ estacion: '2016-04-27 15:00:00', min: 5.0, pro: 0.7, max: 0.8 }, { estacion: '2016-04-27 1...
renenoeluv/gestion-costas
plantilla/js/plugins/morris/morris-data.js
JavaScript
mit
1,712
/*! * OOUI v0.41.3 * https://www.mediawiki.org/wiki/OOUI * * Copyright 2011–2021 OOUI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * * Date: 2021-03-12T21:47:47Z */ ( function ( OO ) { 'use strict'; /** * An ActionWidget is a {@link OO.ui.ButtonWidget button wi...
cdnjs/cdnjs
ajax/libs/oojs-ui/0.41.3/oojs-ui-windows.js
JavaScript
mit
117,418
/* home: http://getbootstrap.com */ /* version: 3.1.1 */ /*! * Bootstrap v3.1.1 (http://getbootstrap.com) * Copyright 2011-2014 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery...
gsitgithub/java-spring-code
webapp-template/src/main/webapp/resources/javascripts/bootstrap.js
JavaScript
gpl-2.0
55,315
/** * @file * @author Bob Hutchinson http://drupal.org/user/52366 * @copyright GNU GPL * * Javascript functions for getlocations polylines support * jquery stuff */ (function ($) { Drupal.behaviors.getlocations_polylines = { attach: function() { var default_polyline_settings = { strokeColor:...
Matwilk/ma
sites/all/modules/getlocations/js/getlocations_polylines.js
JavaScript
gpl-2.0
4,674
// script.aculo.us dragdrop.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009 // Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo.us/ i...
olindata/debian-zabbix
frontends/php/js/scriptaculous/dragdrop.js
JavaScript
gpl-2.0
31,185
// ********************************************************************** // // 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/test/Ice/promise/Client.js
JavaScript
gpl-2.0
34,762
jQuery.sap.declare("sap.ui.demo.myFiori.Component"); sap.ui.core.UIComponent.extend("sap.ui.demo.myFiori.Component", { createContent : function() { // create root view var oView = sap.ui.view({ id : "app", viewName : "sap.ui.demo.myFiori.view.App", type : "JS", viewData : { component : this } }); ...
qmacro/SAPUI5-Fiori
Component.js
JavaScript
gpl-2.0
998
/*! jQuery UI - v1.10.4 - 2014-04-07 * http://jqueryui.com * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ (function(t){t.effects.effect.shake=function(e,i){var s,n=t(this),a=["position","top","bottom","left","right","height","width"],o=t.effects.setMode(n,e.mode||"effect"),r=e.direction||"l...
TabLand/timetabling
ux/lib/jquery/development-bundle/ui/minified/jquery.ui.effect-shake.min.js
JavaScript
gpl-3.0
914
var assert = require('assert') , waatest = require('waatest') , _ = require('underscore') , async = require('async') , helpers = require('../../helpers') describe('dsp.osc~', function() { var cos = Math.cos , sin = Math.sin afterEach(function() { helpers.afterEach() }) describe('contructor', functi...
mcanthony/WebPd
test/browser/dsp/osc~phasor~triangle~square~-tests.js
JavaScript
gpl-3.0
12,793
var group__spi__dff = [ [ "SPI_CR1_DFF_16BIT", "group__spi__dff.html#gaff3138f6c7be4a8a55699ffb40cdb4a8", null ], [ "SPI_CR1_DFF_8BIT", "group__spi__dff.html#ga7cb377132c9f09bb43ca27057655a760", null ] ];
Aghosh993/TARS_codebase
libopencm3/doc/stm32f4/html/group__spi__dff.js
JavaScript
gpl-3.0
212
"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 Lint = require("tslint"); var ErrorTolerantW...
dtysky/MoeNotes
tslint-contrib/noFunctionExpressionRule.js
JavaScript
gpl-3.0
2,841
define('ghost-admin/mirage/fixtures/roles', ['exports'], function (exports) { /* jscs:disable requireCamelCaseOrUpperCaseIdentifiers */ exports['default'] = [{ id: 1, uuid: 'b2576c4e-fa4e-41d4-8236-ced75f735222', name: 'Administrator', description: 'Administrators', creat...
Elektro1776/latestEarthables
core/client/tmp/broccoli_persistent_filterbabel-output_path-OKbFKF1N.tmp/ghost-admin/mirage/fixtures/roles.js
JavaScript
gpl-3.0
1,286
var gulp = require('gulp'); var config = require('../../config.js'); var utils = require('../../utils.js'); gulp.task('copy-jquery-treeview-images', function(){ return gulp.src([config.paths.nodes + 'jquery-treeview/images/**/*']) .pipe(gulp.dest( config.paths.build + 'vendors/jquery-treeview/images')); })...
nmaillat/Phraseanet
resources/gulp/components/vendors/jquery-treeview.js
JavaScript
gpl-3.0
754
var chai = require("chai"); chai.should(); require("./helpers/listdeps.js"); describe("VISH.Editor.Flashcard", function(){ //// OBJECT CREATION it('should create a VISH.Editor.Flashcard object', function(){ VISH.Editor.Flashcard.should.be.an.instanceof(Object); }); //// EXPORTED METHODS it...
agordillo/vish_editor
test/VISH.Editor.Flashcard.test.js
JavaScript
agpl-3.0
2,141
var _Object$getOwnPropertyDescriptor = require("../core-js/object/get-own-property-descriptor"); var _Object$defineProperty = require("../core-js/object/define-property"); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { ...
ed1d1a8d/macweb
node_modules/@babel/runtime/helpers/interopRequireWildcard.js
JavaScript
agpl-3.0
818
var test = require('tape'); var parse = require('../').parse; test('parse shell commands', function (t) { t.same(parse('a \'b\' "c"'), [ 'a', 'b', 'c' ]); t.same( parse('beep "boop" \'foo bar baz\' "it\'s \\"so\\" groovy"'), [ 'beep', 'boop', 'foo bar baz', 'it\'s "so" groovy' ] ); t.sa...
cgi-eoss/fstep
fs-tep-portal/src/main/resources/app/scripts/vendor/shell-quote/test/parse.js
JavaScript
agpl-3.0
519
/* * 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 distributed in the hope that it will b...
mlba-team/open-lighting
tools/rdm/static/rdm_tests.js
JavaScript
lgpl-2.1
28,685
/** * Copyright (c) 2010-present Abixen Systems. All rights reserved. * * This library 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 ...
abixen/abixen-platform
abixen-platform-business-intelligence-service/src/main/web/service/abixen/business-intelligence/application/multi-visualisation/javascript/application-data-source.factory.js
JavaScript
lgpl-2.1
1,049
/* * Waltz - Enterprise Architecture * Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project * See README.md for more information * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License ...
khartec/waltz
waltz-ng/client/common/services/index.js
JavaScript
apache-2.0
5,860
/// Copyright (c) 2009 Microsoft Corporation /// /// Redistribution and use in source and binary forms, with or without modification, are permitted provided /// that the following conditions are met: /// * Redistributions of source code must retain the above copyright notice, this list of conditions and /// ...
hnafar/IronJS
Src/Tests/ietestcenter/chapter15/15.5/15.5.4/15.5.4.20/15.5.4.20-3-5.js
JavaScript
apache-2.0
2,301
import {BrowserWindow} from 'electron'; import {findItemById, findMenu} from 'browser/menus/utils'; import prefs from 'browser/utils/prefs'; /** * Set a key of the item with the given value. */ export function setLocal (localKey, valueExpr) { return function (item) { item[localKey] = valueExpr.apply(this, arg...
rafael-neri/whatsapp-webapp
src/scripts/browser/menus/expressions/expr-parse.js
JavaScript
apache-2.0
1,790
// Copyright 2014 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. (function(global, utils) { 'use strict'; %CheckIsBootstrapping(); // ------------------------------------------------------------------- // Imports ...
m0ppers/arangodb
3rdParty/V8/V8-5.0.71.39/src/js/harmony-unicode-regexps.js
JavaScript
apache-2.0
1,124
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.readFile = exports.stat = void 0; const stat = (inputFileSystem, path) => new Promise((resolve, reject) => { inputFileSystem.stat(path, (err, stats) => { if (err) { reject(err); } resolve(stats); }); }); exp...
cloudfoundry-community/asp.net5-buildpack
fixtures/node_apps/angular_dotnet/ClientApp/node_modules/copy-webpack-plugin/dist/utils/promisify.js
JavaScript
apache-2.0
569
/*! jQuery-ui-Slider-Pips - v1.11.3 - 2016-03-15 * Copyright (c) 2016 Simon Goellner <simey.me@gmail.com>; Licensed MIT */ (function($) { "use strict"; var extensionMethods = { // pips pips: function( settings ) { var slider = this, i, j, p, ...
a-rol/BOS-Project_SoftwareEngineering
webanwendung/js/jquery-ui-slider-pips.js
JavaScript
apache-2.0
24,066
var hooks = require('hooks'); hooks.before('GET /api/functions/{fx} -> 200', function(test, done) { test.request.path = test.request.path.replace(/{fx}/, 'biologicalProcess'); return done(); });
nbargnesi/openbel-server
tests/api-specification/functions_hook.js
JavaScript
apache-2.0
200
/** * Created with IntelliJ IDEA. * User: Win7 * Date: 15-11-3 * Time: 下午5:05 * To change this template use File | Settings | File Templates. */ //微信端标准版controller
BeastBeaten/iluvcodingMain
mainSite-web/src/main/webapp/WEB-INF/views/indexPages/wechant/page_files.js
JavaScript
apache-2.0
186
'use strict'; angular.module('report-editor') .controller('ListValidationsCtrl', function($scope, $state, $stateParams){ $scope.languageType = $stateParams.languageType; }) ;
AndreSteenveld/cellstore
app/report/taxonomy/concept/formula/validations/list/list.js
JavaScript
apache-2.0
193
/** * @license Copyright 2016 The Lighthouse Authors. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applica...
umaar/lighthouse
lighthouse-core/test/fixtures/invalid-gatherers/missing-after-pass.js
JavaScript
apache-2.0
713
/* * Copyright (c) 2012-2015 S-Core 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 law...
minsung-jin/webida-client
apps/ide/src/plugins/webida.editor.text-editor/menus.js
JavaScript
apache-2.0
9,662
'use strict'; var extend = require('../helpers/clone-extend').extend; /** * Represents a strategy that enriches the API Key configuration (post loading). * * @class */ function EnrichClientConfigStrategy () { } EnrichClientConfigStrategy.prototype.process = function (config, callback) { // If we have specified...
nikhil-ahuja/Express-React
node_modules/stormpath-config/lib/strategy/EnrichClientConfigStrategy.js
JavaScript
apache-2.0
1,206
function __processArg(obj, key) { var arg = null; if (obj) { arg = obj[key] || null; delete obj[key]; } return arg; } function Controller() { require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments)); this.__controllerPath = "index"; this...
mobilehero/adamantium
test/apps/testing/ALOY-656/_generated/mobileweb/alloy/controllers/index.js
JavaScript
apache-2.0
1,584
// 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...
tilmannOSG/jerryscript
tests/jerry-test-suite/11/11.09/11.09.02/11.09.02-011.js
JavaScript
apache-2.0
645
'use strict'; describe('Directives: whatsNew', function () { require('./whatsNew.directive.html'); beforeEach( window.module( require('./whatsNew.directive'), require('angular-ui-bootstrap') ) ); beforeEach(window.inject(function ($rootScope, $compile, whatsNewReader, viewStateCache, $q,...
zanthrash/deck-1
app/scripts/modules/netflix/whatsNew/whatsNew.directive.spec.js
JavaScript
apache-2.0
3,608
// @flow import * as Constants from './constants' import type { Action } from '../types' import type { RobotSettingsState, PerRobotRobotSettingsState } from './types' export const INITIAL_STATE: RobotSettingsState = {} const INITIAL_ROBOT_STATE: PerRobotRobotSettingsState = { settings: [], restartPath: null, } ...
Opentrons/labware
app/src/robot-settings/reducer.js
JavaScript
apache-2.0
952
import Feature from '../src/ol/Feature.js'; import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; import IGC from '../src/ol/format/IGC.js'; import {LineString, Point} from '../src/ol/geom.js'; import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js'; import OSM, {ATTRIBUTION} fro...
fredj/ol3
examples/igc.js
JavaScript
bsd-2-clause
5,190
'use strict'; var utils = require('./utils'); var iso = require('../../portable'); console.log('Client side code started'); //move to new lesson (4?) console.log(iso.fibonacci.next()); console.log(iso.fibonacci.next()); console.log(iso.fibonacci.next()); console.log(iso.fibonacci.next()); console.log(iso.fibonacci.n...
tutsplus/start-coding-es6-with-babel
5_generators/client/app/main.js
JavaScript
bsd-2-clause
467
(function() { if(typeof(L) === "undefined") return; /** * leaflet torque layer */ var LeafLetTorqueLayer = L.TorqueLayer.extend({ initialize: function(layerModel, leafletMap) { var extra = layerModel.get('extra_params'); var query = this._getQuery(layerModel); // initialize the base layers ...
Stonelinks/cartodb-lite
src/geo/leaflet/torque.js
JavaScript
bsd-3-clause
3,440
import reduceBy from './reduceBy.js'; /** * Counts the elements of a list according to how many match each value of a * key generated by the supplied function. Returns an object mapping the keys * produced by `fn` to the number of occurrences in the list. Note that all * keys are coerced to strings because of how ...
endlessm/chromium-browser
third_party/devtools-frontend/src/node_modules/ramda/es/countBy.js
JavaScript
bsd-3-clause
1,105
/* Copyright 2015 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 * `cr-events` provides helpers for handling events in Chrome Polymer elements. * * Example: * * <cr-events id="events"></c...
sgraham/nope
ui/webui/resources/cr_elements/cr_events/cr_events.js
JavaScript
bsd-3-clause
1,516
app.Maps = Backbone.Collection.extend({ model: app.Map, url: '/api/maps', });
mudpuddle/transitmix
app/js/collections/Maps.js
JavaScript
isc
82
'use strict' const BB = require('bluebird') const cacache = require('cacache') const cacheKey = require('./util/cache-key') const fetchFromManifest = require('./fetch').fromManifest const finished = BB.promisify(require('mississippi').finished) const minimatch = require('minimatch') const normalize = require('normali...
Jeck99/At-T
node_modules/npm/node_modules/pacote/lib/finalize-manifest.js
JavaScript
mit
8,262
import convert from '../../src/app/utils/convert'; describe('Convert util tests', function() { it("utf8ToHex encodes ascii", function() { // Arrange: let ascii = "Hello"; let expectedResult = "48656c6c6f"; // Act: let result = convert.utf8ToHex(ascii); // Assert: ...
QuantumMechanics/NanoWallet
tests/specs/convert.spec.js
JavaScript
mit
5,444
/* Copyright (c) 2004-2009, 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.drawing.ui.dom.Pan"]){ dojo._hasResource["dojox.drawing.ui.dom.Pan"]=true; dojo.provide("dojox...
bjorns/logger
src/main/webapp/js/dojox/drawing/ui/dom/Pan.js
JavaScript
mit
3,529
/*! * Centralize this so we can more easily work around issues with people * stubbing out `process.nextTick()` in tests using sinon: * https://github.com/sinonjs/lolex#automatically-incrementing-mocked-time * See gh-6074 */ 'use strict'; module.exports = function immediate(cb) { return process.nextTick(cb); };...
aguerny/LacquerTracker
node_modules/mongoose/lib/helpers/immediate.js
JavaScript
mit
321
__webpack_public_path__ = window.__webpack_public_path__; // eslint-disable-line import Global from './theme/global'; const getAccount = () => import('./theme/account'); const getLogin = () => import('./theme/auth'); const noop = null; const pageClasses = { account_orderstatus: getAccount, account_order: get...
sacr3dc0w/cornerstone
assets/js/app.js
JavaScript
mit
3,380
/* * macros.js: Test macros for director tests. * * (C) 2011, Nodejitsu Inc. * MIT LICENSE * */ var assert = require('assert'), request = require('request'); exports.assertGet = function(port, uri, expected) { var context = { topic: function () { request({ uri: 'http://localhost:' + port + '/'...
caolan/director
test/server/helpers/macros.js
JavaScript
mit
1,027
'use strict'; var createError = require('errno').create; var BitcoreNodeError = createError('BitcoreNodeError'); var RPCError = createError('RPCError', BitcoreNodeError); module.exports = { Error: BitcoreNodeError, RPCError: RPCError };
braydonf/bitcore-node
lib/errors.js
JavaScript
mit
245
if(!!process.version) { return module.exports = global.require("sys"); } // 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...
crcn-archive/sardines
lib/builtin/sys.js
JavaScript
mit
1,687
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(function(o, d) { r...
JoshKLPA/aurelia-typescript
pwkad-aurelia-samples/pwkad-aurelia-samples/views/knockout.js
JavaScript
mit
2,025
define([ "constants", "mediator", "utils", "hbs!labelsTabTemplate" ], function(C, mediator, utils, labelsTabTemplate) { "use strict"; var _MODULE_ID = "labelsTab"; var _openSections = { panelOuterLabels: true, panelInnerLabels: false, panelLabelStyles: false, panelLabelLines: false, panelTooltips: fal...
benkeen/d3pie
website/pages/generator/tabs/labels/tabLabels.js
JavaScript
mit
3,427
/*eslint-disable no-console*/ console.log('injected');
mikekoetter/node-phantom-simple
test/fixtures/injecttest.js
JavaScript
mit
55