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
import Koa from 'koa'; import convert from 'koa-convert'; import webpack from 'webpack'; import webpackConfig from '../build/webpack.config'; import historyApiFallback from 'koa-connect-history-api-fallback'; import serve from 'koa-static'; import _debug from 'debug'; import config from '../config'; import webpackProxy...
magnusbae/laughing-octo-eureka
server/main.js
JavaScript
mit
2,194
module.exports = require("core-js/library/fn/string/trim");
Skillupco/babel
packages/babel-runtime/core-js/string/trim.js
JavaScript
mit
59
import { CRUD_GET_LIST_SUCCESS } from '../../../actions/dataActions'; export default resource => (previousState = 0, { type, payload, meta }) => { if (!meta || meta.resource !== resource) { return previousState; } if (type === CRUD_GET_LIST_SUCCESS) { return payload.total; } return ...
RestUI/rest-ui
src/redux/reducer/resource/list/total.js
JavaScript
mit
338
'use strict'; var grunt = require('grunt'); /* ======== A Handy Little Nodeunit Reference ======== https://github.com/caolan/nodeunit Test methods: test.expect(numAssertions) test.done() Test assertions: test.ok(value, [message]) test.equal(actual, expected, [message]) test.notEqual(actua...
getdave/grunt-deployments
test/deployments_test.js
JavaScript
mit
1,351
var MusicView = React.createClass({ getInitialState: function() { return {album: null} }, render: function() { if (this.state.album){ return ( <div className="musicView" > <h2 className="musicName"> {this.st...
melissabica/metacritic-react
contents/js/music/view.js
JavaScript
mit
1,088
(function($) { $(document).ready(function() { $('.styleswitch').click(function() { switchStylestyle(this.getAttribute("rel")); return false; }); var c = readCookie('style'); if (c) switchStylestyle(c); }); function switchStylestyle(styleName) { $('link[rel*=style][title]').each(function(i) { ...
myunimol/website
public/js/fswit.js
JavaScript
mit
1,502
const express = require('express') const app = express() const formidable = require('formidable') const path = require('path') const rimraf = require('rimraf') const fs = require('fs') const throttle = require('express-throttle-bandwidth') const port = process.env.PORT || 4444, folder = path.join(__dirname, 'files...
rstoenescu/quasar-framework
ui/dev/upload-server/server.js
JavaScript
mit
1,266
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: > If the argument len is a Number and ToUint32(len) is equal to len, then the length property of the newly constructed object is set to ToUint32(len) es5id: 15.4.2.2_A...
PiotrDabkowski/Js2Py
tests/test_cases/built-ins/Array/length/S15.4.2.2_A2.1_T1.js
JavaScript
mit
830
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { PropTypes } from 'react'; import withStyle...
rowinf/robertirwin.me-v2
src/routes/content/Content.js
JavaScript
mit
838
/* Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.3.5 Version: 1.9.0 Author: Sean Ngu Website: http://www.seantheme.com/color-admin-v1.9/admin/ */ var handleDataTableResponsive = function() { "use strict"; if ($('#data-table').length !== 0) { $('#da...
DirectDev/wds-V2
www/admin/js/table-manage-responsive.demo.js
JavaScript
mit
578
// @flow import { createPopper, popperGenerator, detectOverflow } from './createPopper'; export type * from './types'; // eslint-disable-next-line import/no-unused-modules export { createPopper, popperGenerator, detectOverflow };
FezVrasta/popper.js
src/popper-base.js
JavaScript
mit
232
/** The MIT License (MIT) Copyright (c) 2013-2015, Joe Bain 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...
abyoussef/SmartFlow
node_modules/args-js/dist/Args.js
JavaScript
mit
14,146
import { moduleFor, RenderingTestCase, runTask } from 'internal-test-helpers'; import { Object as EmberObject } from '@ember/-internals/runtime'; import { set, setProperties, computed } from '@ember/-internals/metal'; import { setComponentManager, capabilities } from '@ember/-internals/glimmer'; const BasicComponentM...
kellyselden/ember.js
packages/@ember/-internals/glimmer/tests/integration/custom-component-manager-test.js
JavaScript
mit
16,163
/* * Planck.js v0.3.0-rc.1 * * Copyright (c) 2016-2018 Ali Shakiba http://shakiba.me/planck.js * Copyright (c) 2006-2013 Erin Catto http://www.gphysics.com * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising ...
sufuf3/cdnjs
ajax/libs/planck-js/0.3.0-rc.1/planck-with-testbed.js
JavaScript
mit
478,044
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { banner : '/*!\n' + ' * <%= pkg.title %> v<%= pkg.version %> - <%= pkg.description %>\n' + ' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> - <%= pkg.homepage %>\n' + ' * ...
MuddyPaw/testcalendar
web/vendor/timepicker/GruntFile.js
JavaScript
mit
825
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,d,a){b!=Array.prototype&&b!=Object.prototype&&(b[d]=a.value)};$jscomp.getG...
extend1994/cdnjs
ajax/libs/rx-player/3.0.0-rc4/rx-player.min.js
JavaScript
mit
223,270
/* Highcharts JS v7.1.0 (2019-04-01) (c) 2010-2019 Highsoft AS Author: Sebastian Domas License: www.highcharts.com/license */ (function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/histogram-bellcurve",["highcharts...
joeyparrish/cdnjs
ajax/libs/highcharts/7.1.0/modules/histogram-bellcurve.js
JavaScript
mit
4,265
var vows = require('vows'), _ = require('underscore')._, RawTests = require('./selenium.vows'); // makeSuite takes a configuration and makes a batch of tests, splitting // up tests according to 'conf.processes' exports.makeSuite = function(conf) { var getCapText = function(conf, cap) { return " (" + cap.bro...
UziTech/jquery.kinetic
test/selenium/makeSuite.js
JavaScript
mit
1,904
/* * The MIT License (MIT) * * Copyright (c) 2014 Apigee Corporation * * 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 * t...
rgparkins/http-stub
src/tests/node_modules/swagger-tools/middleware/swagger-metadata.js
JavaScript
gpl-2.0
15,539
// closure to avoid namespace collision (function(){ var edTest = ''; // creates the plugin tinymce.create('tinymce.plugins.js_columns', { init : function(ed, url) { ed.addButton('js_columns_button', { title : 'Add Column', image : url+'/icon_columns.png', ...
marcminor/citywell
wp-content/themes/savior/_theme_settings/shortcodes/columns/script.js
JavaScript
gpl-2.0
3,717
/*! * VisualEditor ContentEditable View class. * * @copyright 2011-2014 VisualEditor Team and others; see http://ve.mit-license.org */ /** * Generic base class for CE views. * * @abstract * @extends OO.ui.Element * @mixins OO.EventEmitter * * @constructor * @param {ve.dm.Model} model Model to observe * @p...
felixonmars/app
extensions/VisualEditor/lib/ve/src/ce/ve.ce.View.js
JavaScript
gpl-2.0
5,092
import React from "react"; import PropTypes from "prop-types"; import Box from "grommet/components/Box"; import Heading from "grommet/components/Heading"; import Anchor from "../partials/Anchor"; import Label from "grommet/components/Label"; import Paragraph from "grommet/components/Paragraph"; import LinkIcon from "...
pamfilos/data.cern.ch
ui/cap-react/src/components/welcome/Documentation.js
JavaScript
gpl-2.0
4,448
<?php /** * @package EasySocial * @copyright Copyright (C) 2010 - 2014 Stack Ideas Sdn Bhd. All rights reserved. * @license Proprietary Use License http://stackideas.com/licensing.html * @author Stack Ideas Sdn Bhd */ defined( '_JEXEC' ) or die( 'Unauthorized Access' ); ?> EasySocial.require() .script( 'admin/gr...
cuongnd/banhangonline88_joomla
administrator/components/com_easysocial/themes/default/themes/default.js
JavaScript
gpl-2.0
422
/** * The abbr dialog definition. * * Created out of the CKEditor Plugin SDK: * http://docs.ckeditor.com/#!/guide/plugin_sdk_sample_1 */ // Our dialog definition. CKEDITOR.dialog.add( 'map_sc_generatorDialog', function( editor ) { return { // Basic properties of the dialog window: title, minimum size. tit...
alexfinnarn/express
modules/custom/cu_shortcodes_wysiwyg/plugins/map_sc_generator/dialogs/map_sc_generator.js
JavaScript
gpl-2.0
1,946
// VAST ads plugin // Sponsored by Minoto Video // 2013/02/01 0.5 research // 2013/02/09 1.5 build loading mechanism // 2013/02/10 2.5 events to play preroll, skip function, start/end calls, \ // 2013/02/11 2 click events // ---- // 2013/02/23 3.5 split into a generic pre-roll plugin (function($) { // on...
carleton/reasoncms
www/mediaelement/src/js/mediaelementplayer-feature-ads.js
JavaScript
gpl-2.0
8,971
var group__dma__mburst = [ [ "DMA_SxCR_MBURST_INCR16", "group__dma__mburst.html#gadaf6b33ae31b2cbde69244c3c0f441e8", null ], [ "DMA_SxCR_MBURST_INCR4", "group__dma__mburst.html#ga1d161291aabb811293bc78a8f9c30736", null ], [ "DMA_SxCR_MBURST_INCR8", "group__dma__mburst.html#ga8c35dd793bc079a92b3ec71d534b0cc8...
Aghosh993/TARS_codebase
libopencm3/doc/stm32l1/html/group__dma__mburst.js
JavaScript
gpl-3.0
434
/*global define*/ define([ '../Core/Color', '../Core/defined', '../Core/defineProperties', '../Core/Event', './createPropertyDescriptor', './Property' ], function( Color, defined, defineProperties, Event, createPropertyDescripto...
rbensa01/Cesium-ESIPE-Project-District
projet/cesium/Source/DataSources/PolylineOutlineMaterialProperty.js
JavaScript
gpl-3.0
5,290
/** * This file is part of the Unit.js testing framework. * * (c) Nicolas Tallefourtane <dev@nicolab.net> * * For the full copyright and license information, please view * the LICENSE file distributed with this source code * or visit http://unitjs.com. * * @author Nicolas Tallefourtane <dev@nicolab.net> */ '...
Geovo/turing_machine_simulator
node_modules/unit.js/test/node/index.js
JavaScript
gpl-3.0
724
(function($) { var $openDialog = null; var $background = null; var defaultOptions = { autoOpen:true, opacity:'0.3' }; function initialize() { if (!$background) { $background = $('<div />').css({ 'display':'none', 'position':'fixed', '_position':'absolute', ...
baracudakb/Legend
plugins/i18n_specialpages/js/jquery.dialog.js
JavaScript
gpl-3.0
2,335
/* const config = require('./config'); const Steam = require('steam'); const Dota2 = require('dota2'); const utility = require('./utility'); const async = require('async'); const convert64To32 = utility.convert64to32; const express = require('express'); const app = express(); const users = config.STEAM_USER.split(',');...
coreymaher/yasp
dev/lobby.js
JavaScript
gpl-3.0
2,616
var Conditions; Conditions = function() { var self = this; this.compare = function( leftValue, rightValue, operator ) { switch ( operator ) { /* eslint-disable eqeqeq */ case '==': return leftValue == rightValue; case '!=': return leftValue != rightValue; /* eslint-enable eqeqeq */ case '!=...
ramiy/elementor
assets/dev/js/editor/utils/conditions.js
JavaScript
gpl-3.0
1,771
/** * SqueezeBox - Expandable Lightbox * * Allows to open various content as modal, * centered and animated box. * * Dependencies: MooTools 1.2 * * Inspired by * ... Lokesh Dhakar - The original Lightbox v2 * * @version 1.1 rc4 * * @license MIT-style license * @author Harald Kirschner <mail [at] digi...
luizwbr/MoIP-VirtueMart-3
assets/js/SqueezeBox.js
JavaScript
gpl-3.0
12,254
"use strict"; /*global define, ajaxify, app, socket, utils, bootbox, RELATIVE_PATH*/ define('admin/general/dashboard', ['semver', 'Chart'], function(semver, Chart) { var Admin = {}, intervals = { rooms: false, graphs: false }, isMobile = false, isPrerelease = /^v?\d+\.\d+\.\d+-.+$/, graphData = { r...
rockq-org/cnodebb
public/src/admin/general/dashboard.js
JavaScript
gpl-3.0
13,348
odoo.define('mail/static/src/models/activity/activity/js', function (require) { 'use strict'; const { registerNewModel } = require('mail/static/src/model/model_core.js'); const { attr, many2many, many2one } = require('mail/static/src/model/model_field.js'); const { clear } = require('mail/static/src/model/model_field_...
rven/odoo
addons/mail/static/src/models/activity/activity.js
JavaScript
agpl-3.0
11,677
/** * Copyright 2013-2020 the original author or authors from the JHipster project. * * This file is part of the JHipster project, see http://www.jhipster.tech/ * for more information. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Li...
cbornet/generator-jhipster
jdl/jhipster/application-types.js
JavaScript
apache-2.0
1,037
/** * SoundJS * Visit http://createjs.com/ for documentation, updates and examples. * * Copyright (c) 2011 gskinner.com, inc. * * Distributed under the terms of the MIT license. * http://www.opensource.org/licenses/mit-license.html * * This notice shall be included in all copies or substantial portions of the Software...
Koava/Shtacker
jQueryShtacker/jQueryShtacker/TypeScriptShtacker/public/javascripts/soundjs-NEXT.min.js
JavaScript
apache-2.0
12,246
/** * plugin.js * * Copyright, Moxiecode Systems AB * Released under LGPL License. * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ /*global tinymce:true */ tinymce.PluginManager.add('image', function(editor) { function getImageSize(url, callback) { var img...
jbottel/openstorefront
server/openstorefront/tinymcetextarea/src/main/resources/META-INF/resources/webjars/tinymcetextarea/5.1/tinymce/plugins/image/plugin.js
JavaScript
apache-2.0
10,236
import Component from '@ember/component'; import layout from './template'; import { inject as service } from '@ember/service'; import { get, computed } from '@ember/object'; import C from 'ui/utils/constants'; const headers = [ { name: 'state', sort: ['sortState', 'displayName'], sear...
westlywright/ui
lib/shared/addon/components/custom-catalog/component.js
JavaScript
apache-2.0
3,874
export function cloneComplexInteractors(json) { // We'll need collections of our interactions and interactors for later.. const interactions = json.data.filter(function (interaction) { return interaction.object === "interaction"; }); const instanceCount = new Map(); // Loop through our in...
colin-combe/ComplexViewer
src/js/clone-complex-interactors.js
JavaScript
apache-2.0
4,371
/** * Copyright 2019 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...
techhtml/amphtml
build-system/pr-check/dist-tests.js
JavaScript
apache-2.0
2,766
/* * Copyright (C) 2013 salesforce.com, 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 ...
TribeMedia/aura
aura-components/src/main/components/ui/inputNumberLibrary/number.js
JavaScript
apache-2.0
2,047
/** * @fileoverview Mocha test wrapper * @author Ilya Volodin */ "use strict"; /* global describe, it */ /* * This is a wrapper around mocha to allow for DRY unittests for eslint * Format: * RuleTester.run("{ruleName}", { * valid: [ * "{code}", * { code: "{code}", options: {options}, g...
Khan/khan-linter
node_modules/eslint/lib/testers/rule-tester.js
JavaScript
apache-2.0
21,598
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es5id: 15.2.3.6-4-365 description: > ES5 Attributes - fail to update [[Enumerable]] attribute of data property ([[Writable]] is false, [[Enumerable]] is true, [[Confi...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/Object/defineProperty/15.2.3.6-4-365.js
JavaScript
bsd-2-clause
1,015
/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModu...
rlugojr/react
src/renderers/native/ReactNativeFiber.js
JavaScript
bsd-3-clause
11,790
// according to the offical reference (EN) // https://ichigojam.net/IchigoJam-en.html Prism.languages.ichigojam = { 'comment': /(?:\B'|REM)(?:[^\n\r]*)/i, 'string': { pattern: /"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/, greedy: true }, 'number': /\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i, ...
netbek/chrys
demo/vendor/prismjs/components/prism-ichigojam.js
JavaScript
bsd-3-clause
899
(function($){ $(function(){ var base_url = window.location.origin; var d = document; var safari = (navigator.userAgent.toLowerCase().indexOf() != -1) ? true : false; var gebtn = function(parEl,child) { return parEl.getElementsByTagName(child); }; ...
Baishakhidelgence/testzend
public/js3/checkNradio.js
JavaScript
bsd-3-clause
7,017
var path = require('path'); var Supervisor = require(path.join(__dirname,'/../processes/supervisor')); /** * @function stopGateway * @description Halts all pocesses. */ function stopGateway() { return new Supervisor().stop(); } module.exports = stopGateway;
zealord/gatewayd
lib/api/stop_gateway.js
JavaScript
isc
272
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { Injector, NgModule, NgZone, OpaqueToken } from '@angular/core'; import { AsyncTestCompleter } from './async_...
ujjwalsharma045/Angular2-Creative-Tim-Admin-Theme-With-Code-
node_modules/ng2-opd-popup/node_modules/@angular/core/testing/test_bed.js
JavaScript
mit
16,066
'use strict'; (function(window, document, $, undefined) { window.kunstmaan = window.kunstmaan || {}; window.kunstmaan.leadGeneration = window.kunstmaan.leadGeneration || {}; window.kunstmaan.leadGeneration.Popup = function(name, htmlId) { var instance = { 'name': name }; ...
webtown-php/KunstmaanBundlesCMS
src/Kunstmaan/LeadGenerationBundle/Resources/public/js/popup/Popup.js
JavaScript
mit
8,758
var fs = require('fs'); var execSync = require('child_process').execSync; var exec = function (cmd) { execSync(cmd, {stdio: 'inherit'}); }; /* global jake, task, desc, publishTask */ task('build', ['lint', 'clean', 'browserify', 'minify'], function () { console.log('Build completed.'); }); desc('Cleans browerifi...
ealbertos/dotfiles
vscode.symlink/extensions/ms-mssql.mssql-1.11.1/node_modules/ejs/jakefile.js
JavaScript
mit
2,033
define(["npm:aurelia-loader-default@1.0.0-beta.1.0.1/aurelia-loader-default"], function(main) { return main; });
Mteuahasan/ror-microblog
public/jspm_packages/npm/aurelia-loader-default@1.0.0-beta.1.0.1.js
JavaScript
mit
114
version https://git-lfs.github.com/spec/v1 oid sha256:908993a1b52e182ff79479fca7e10537d646cd9285dde32433ffc66265343ed3 size 1819
yogeshsaroya/new-cdnjs
ajax/libs/angular.js/1.3.0/i18n/angular-locale_id.js
JavaScript
mit
129
//------------------------------------------------------------------------------------------------------- // 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/Lib/error.js
JavaScript
mit
488
angular .module('material.components.icon') .directive('mdIcon', ['$mdIcon', '$mdTheming', '$mdAria', '$sce', mdIconDirective]); /** * @ngdoc directive * @name mdIcon * @module material.components.icon * * @restrict E * * @description * The `md-icon` directive makes it easier to use vector-based icons in y...
Frank3K/material
src/components/icon/js/iconDirective.js
JavaScript
mit
11,275
version https://git-lfs.github.com/spec/v1 oid sha256:b1828b45943f19da0e26be3154d3d51fd17dc7940a670c52379f02d4ff678d46 size 591
yogeshsaroya/new-cdnjs
ajax/libs/dojo/1.10.4/cldr/nls/it/currency.js.uncompressed.js
JavaScript
mit
128
var test = require('tape'); var AmpersandModel = require('ampersand-model'); var AmpersandCollection = require('ampersand-rest-collection'); var AmpersandView = require('../ampersand-view'); var Model = AmpersandModel.extend({ props: { id: 'number', name: ['string', true], html: 'string', ...
mrwingfield/ampersand-view
test/renderCollection.js
JavaScript
mit
6,842
tinyMCE.addI18n('it.xoopsemotions_dlg',{ title : 'Inserisci Faccine/Emoticon di Xoops', tab_emotionsbrowser: 'Faccine/Emoticon', tab_emotionsadmin: 'Aggiungi Faccine/Emoticon', error_noemotions: 'Non ci sono Faccine/Emoticon nel database !!!' });
mambax7/XoopsCore25
htdocs/class/xoopseditor/tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsemotions/langs/it_dlg.js
JavaScript
gpl-2.0
263
angular.module('kityminderEditor') .directive('imageBtn', ['$modal', function($modal) { return { restrict: 'E', templateUrl: 'ui/directive/imageBtn/imageBtn.html', scope: { minder: '=' }, replace: true, link: function($s...
wangjun/kityminder-editor
ui/directive/imageBtn/imageBtn.directive.js
JavaScript
gpl-2.0
1,169
/********************************************************************** require( 'require' ) ----------------------------------------------------------------------- @example var Path = require("node://path"); // Only in NodeJS/NW.js environment. var Button = require("tfw.button"); *****************************...
tolokoban/hackathon-2016
spec/mod/@require.js
JavaScript
gpl-3.0
1,562
/* ***** BEGIN LICENSE BLOCK ***** * * Copyright (C) 1998 Netscape Communications Corporation. * Copyright (C) 2010 Apple Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; ei...
youfoh/webkit-efl
LayoutTests/java/lc3/ConvertJSObject/ToLong-001.js
JavaScript
lgpl-2.1
2,161
define(function (require) { var tdd = require('intern!tdd'); // Not really Chai but a Chai-compatible "assert" library for old IE. var assert = require('intern/chai!assert'); // parse-srcset is an AMD module. var parseSrcset = require('../../src/parse-srcset'); var he = require('tests/he'); tdd.suite('P...
GoogleCloudPlatform/prometheus-engine
third_party/prometheus_ui/base/web/ui/react-app/node_modules/parse-srcset/tests/unit/ps.js
JavaScript
apache-2.0
21,793
// Copyright 2013 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: --noanalyze-environment-liveness --allow-natives-syntax var r = /r/; function f() { r[r] = function() {}; } for (var i = 0; i < 300; i++) ...
weolar/miniblink49
v8_7_5/test/mjsunit/regress/regress-crbug-217858.js
JavaScript
apache-2.0
363
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js function plural(n) { if...
rospilot/rospilot
share/web_assets/nodejs_deps/node_modules/@angular/common/locales/ckb-IR.js
JavaScript
apache-2.0
1,598
/* * 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 ...
hbeatty/incubator-trafficcontrol
traffic_portal/app/src/modules/private/tenants/deliveryServices/index.js
JavaScript
apache-2.0
2,124
import h from 'spec/spec_helper'; import { config, path, t, utils, fsAsync } from 'azk'; import { Cli } from 'azk/cli'; import { Manifest } from 'azk/manifest'; describe('Azk cli, init controller', function() { var outputs = []; var ui = h.mockUI(beforeEach, outputs); var manifest = config('manifest'); ...
renanmpimentel/azk
spec/cmds/init_spec.js
JavaScript
apache-2.0
3,149
/** * @license * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
jacksonic/vjlofvhjfgm
src/lib/input.js
JavaScript
apache-2.0
6,330
define(function(require){ require('$model/UI2/system/components/justep/window/window'); require('$model/UI2/system/components/bootstrap/navbar/navbar'); require('$model/UI2/system/components/bootstrap/navs/navs'); var __parent1=require('$model/UI2/system/lib/base/modelBase'); var __parent0=require('$model/UI2/system/c...
Diaosir/WeX5
UI2/system/components/bootstrap/navbar/demo/.release/base/base.w.form.js
JavaScript
apache-2.0
632
/* ***** 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 License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
Osmose/snippets-service
vendor-local/lib/python/django_ace/static/django_ace/ace/theme-solarized_dark.js
JavaScript
bsd-3-clause
4,589
// Copyright 2012 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. // This file relies on the fact that the following declarations have been made // in runtime.js: // var $Object = global.Object; // var $Boolean = globa...
kingland/go-v8
v8-3.28/src/v8natives.js
JavaScript
mit
55,369
const fs = require('fs-extra'); const path = require('path'); const cleanDirs = [ 'dist' ]; cleanDirs.forEach(dir => { const cleanDir = path.join(__dirname, '../', dir); fs.removeSync(cleanDir); });
TillaTheHun0/ionic
core/scripts/clean.js
JavaScript
mit
208
'use strict'; var fs = require('fs'); var Promise = require('../ext/promise'); var readFile = Promise.denodeify(fs.readFile); var lstat = Promise.denodeify(fs.stat); var chalk = require('chalk'); var EditFileDiff = require('./edit-file-diff'); var EOL = require('os').EOL; var ...
pixelhandler/ember-cli
lib/models/file-info.js
JavaScript
mit
4,573
var everything = function () { return 42; }; anything.prototype.everything = everything;
Sha-Grisha/anything.js
src/everything.js
JavaScript
mit
93
/* * /MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpSm/Regular/All.js * * Copyright (c) 2009-2016 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...
masterfish2015/my_project
半导体物理/js/mathjax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpSm/Regular/All.js
JavaScript
mit
1,609
/************************************************************* * * MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/BoxDrawing.js * * Copyright (c) 2009-2016 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compli...
masterfish2015/my_project
半导体物理/js/mathjax/unpacked/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/BoxDrawing.js
JavaScript
mit
4,295
/* * Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved. * * 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...
bglassy/brackets
src/extensions/default/RecentProjects/main.js
JavaScript
mit
17,380
const BaseChecker = require('./../base-checker') const ruleId = 'imports-on-top' const meta = { type: 'order', docs: { description: `Import statements must be on top.`, category: 'Style Guide Rules' }, isDefault: false, recommended: true, defaultSetup: 'warn', schema: null } class ImportsOnTo...
protofire/solhint
lib/rules/order/imports-on-top.js
JavaScript
mit
903
Ext.define('KitchenSink.view.charts.area.NegativeController', { extend: 'Ext.app.ViewController', alias: 'controller.area-negative', onPreview: function () { var chart = this.lookupReference('chart'); chart.preview(); }, getSeriesConfig: function (field, title) { ...
mesocentrefc/Janua-SMS
janua-web/ext/examples/kitchensink/classic/samples/view/charts/area/NegativeController.js
JavaScript
gpl-2.0
1,559
/** * * This example shows how to create a pivot grid and display the results in * a compact layout. * */ Ext.define('KitchenSink.view.pivot.LayoutCompact', { extend: 'Ext.pivot.Grid', xtype: 'compact-pivot-grid', controller: 'pivotlayout', requires: [ 'KitchenSink.store.pivot....
mesocentrefc/Janua-SMS
janua-web/ext/examples/kitchensink/classic/samples/view/pivot/LayoutCompact.js
JavaScript
gpl-2.0
3,950
v.setCursorPosition(1,19); v.enter(); v.type("ok");
hlamer/kate
tests/data/indent/cstyle/aplist10/input.js
JavaScript
lgpl-2.1
51
angular.module('spartan.services', []) /** * A simple example service that returns some data. */ .factory('Friends', function() { // Might use a resource here that returns a JSON array // Some fake testing data var friends = [ { id: 0, name: 'Scruff McGruff' }, { id: 1, name: 'G.I. Joe' }, { id: 2...
carlosrojaso/urbangods
www/js/services.js
JavaScript
unlicense
554
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add("cellProperties",function(f){var g=f.lang.table,c=g.cell,d=f.lang.common,h=CKEDITOR.dialog.validate,j=/^(\d+(?:\.\d+)?)(px|%)$/,e={type:"html",html:"&nbs...
Thellmann/callimachus
webapp/assets/ckeditor/plugins/tabletools/dialogs/tableCell.js
JavaScript
apache-2.0
6,207
'use strict'; describe('Service: Oauth2RequestInterceptor', function () { // load the service's module beforeEach(module('yamaAppApp')); // instantiate service var Oauth2RequestInterceptor; beforeEach(inject(function (_Oauth2RequestInterceptor_) { Oauth2RequestInterceptor = _Oauth2RequestInterceptor_; ...
imamb/yama2_imam
webapp/test/spec/services/oauth2requestinterceptor.js
JavaScript
apache-2.0
432
/*! Copyright (C) 2016 Google Inc. Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> */ /* * Generally useful helpers * Primarily to support Jasmine 1.3 -> Jasmine 2 */ // polls check function and calls done when truthy window.waitsFor = function (check, done) { if (!check()) { ...
andrei-karalionak/ggrc-core
src/ggrc/assets/js_specs/spec_helpers.js
JavaScript
apache-2.0
745
/*! jQuery UI - v1.10.4 - 2014-06-10 * http://jqueryui.com * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.autocomplete.js, jquery.ui.button....
qqming113/bi-platform
designer/src/main/resources/public/silkroad/dep/jquery-ui.custom-1.10.4.js
JavaScript
apache-2.0
339,820
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ 'use strict'; module.exports = () => [ require.resolve('./console.js'), require.resolve('./error-guard.js'), ...
arthuralee/react-native
packages/polyfills/index.js
JavaScript
bsd-3-clause
359
// 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 Behavior common to Site Settings classes. */ /** @polymerBehavior */ var SiteSettingsBehaviorImpl = { properties: { /** ...
js0701/chromium-crosswalk
chrome/browser/resources/settings/site_settings/site_settings_behavior.js
JavaScript
bsd-3-clause
11,974
/** * 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...
cpunion/react-native
website/core/Site.js
JavaScript
bsd-3-clause
14,480
module.exports = { VERSION: '%KARMA_VERSION%', KARMA_URL_ROOT: '%KARMA_URL_ROOT%', KARMA_PROXY_PATH: '%KARMA_PROXY_PATH%', CONTEXT_URL: 'context.html' }
pedrotcaraujo/karma
client/constants.js
JavaScript
mit
161
var AreasOfEffect = (() => { 'use strict'; let MENU_CMD = '!areasOfEffectShowMenu'; let ADD_EFFECT_CMD = '!areasOfEffectAddEffect'; let APPLY_EFFECT_CMD = '!areasOfEffectApplyEffet'; let DEL_EFFECT_CMD = '!areasOfEffectDeleteEffect'; let SHOW_EFFECTS_CMD = '!areasOfEffectShowEffects'; let VERSION = '1.0'...
shdwjk/roll20-api-scripts
AreasOfEffect/1.0/aoe.js
JavaScript
mit
10,124
var fs = require('fs'); var os = require('os'); var path = require('path'); var util = require('./ci-util'); // initialize _package util.initializePackagePath(); // create the tasks.zip util.createTasksZip(); var branch = null; if (process.env.TF_BUILD) { // during CI agent checks out a commit, not a branch. ...
vithati/vsts-tasks
ci/stage-hotfix.js
JavaScript
mit
1,362
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function(){function a(b,c){var d=b.lang.placeholder,e=b.lang.common.generalTab;return{title:d.title,minWidth:300,minHeight:80,contents:[{id:'info',label:e,title:e,eleme...
evansd-archive/kohana-module--ckeditor
vendor/ckeditor/plugins/placeholder/dialogs/placeholder.js
JavaScript
mit
985
if(!dojo._hasResource["tests.rpc"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["tests.rpc"] = true; dojo.provide("tests.rpc"); dojo.require("dojo.rpc.RpcService"); dojo.require("dojo.rpc.JsonService"); dojo.require("dojo.rpc.JsonpService"); doh.register("te...
Goldcap/TAHealth
web/js/dojo/dojo/tests/rpc.js
JavaScript
mit
3,491
// set default source and build directories var dest = './build'; var src = './src'; module.exports = { // options for Gulp tasks go here markup: { /* there most likely won't be a need for any markup other than a main index.html but you can add more configuration here if necessary */ src: src + '/index...
zelliott/intrn
gulp/config.js
JavaScript
mit
473
let helpers = { formatPrice : function(cents) { return '$' + ( (cents / 100).toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g, ",") ); }, rando : function(arr) { return arr[Math.floor(Math.random() * arr.length)]; }, slugify : function(text) { return text.toString().toLowerCase() .replace(/\s+/g...
nicholasbair/react-todo
scripts/helpers.js
JavaScript
mit
1,548
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.JSEncrypt = {}))); }(this, (function (exports) { 'use strict'; var BI_RM = "0123456789abcdefghijklmnopqrstuvwxy...
jonobr1/cdnjs
ajax/libs/jsencrypt/3.0.0-rc.1/jsencrypt.js
JavaScript
mit
177,817
'use strict'; /** * Lazily required module dependencies */ var lazy = require('lazy-cache')(require); var fn = require; require = lazy; require('falsey', 'isFalsey'); require('delimiter-regex', 'delims'); require('get-view'); require = fn; /** * Expose `utils` */ module.exports = lazy;
glg-enterprises/Cms
template/admin/node_modules/layouts/utils.js
JavaScript
mit
296
interface A { 'C': string; } interface B { "D": boolean; }
rattrayalex/prettier
tests/format/flow/generic/interface.js
JavaScript
mit
59
"use strict"; var render = require("../../render"); var src = __dirname + "/src.js"; render( { src: src, template: __dirname + "/../template.hbs", "global-index-format": "none", source: src }, __dirname + "/readme.md" );
daserge/jsdoc-to-markdown
example/tags/todo and done/render.js
JavaScript
mit
267
import React from "react"; export default React.createClass({ propTypes: { show: React.PropTypes.bool, viaCSS: React.PropTypes.bool, }, render: function() { if (this.props.viaCSS) { const display = this.props.show ? null : {display: "none"}; return ( <div style={display}>{this.pro...
wflmax/webm.js
src/util/show-hide.js
JavaScript
cc0-1.0
435
/* * grunt-notify * https://github.com/dylang/grunt-notify * * Copyright (c) 2014 Dylan Greene, 2014 Matej Simek * Licensed under the MIT license. */ 'use strict'; var NOTIFY_TYPE = 'toaster'; var path = require('path'); var os = require('os'); var spawn = require('../util/spawn'); var semver = require('semver'...
marceliotstein/marcelio8
web/themes/baspac/node_modules/grunt-notify/lib/platforms/toaster.js
JavaScript
gpl-2.0
1,564