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
var _ = require('underscore'); /* A rule should contain explain and rule methods */ // TODO explain explain // TODO explain missing // TODO explain assert function assert (options, password) { return !!password && options.minLength <= password.length; } function explain(options) { if (options.minLength === 1) { ...
nherzalla/ProfileX-1
node_modules/password-sheriff/lib/rules/length.js
JavaScript
mit
1,063
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** 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 Lic...
jubos/meguro
deps/spidermonkey/tests/js1_5/Regress/regress-463259.js
JavaScript
mit
2,273
import { rectangle } from 'leaflet'; import boundsType from './types/bounds'; import Path from './Path'; export default class Rectangle extends Path { static propTypes = { bounds: boundsType.isRequired, }; componentWillMount() { super.componentWillMount(); const { bounds, map, ...props } = this.pro...
TaiwanStat/react-leaflet
src/Rectangle.js
JavaScript
mit
584
/* YUI 3.8.0pr2 (build 154) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add("dd-drop-plugin",function(e,t){var n=function(e){e.node=e.host,n.superclass.constructor.apply(this,arguments)};n.NAME="dd-drop-plugin",n.NS="drop",e.extend(n,e.DD.Drop),e...
SHMEDIALIMITED/tallest-tower
node_modules/grunt-contrib/node_modules/grunt-contrib-yuidoc/node_modules/yuidocjs/node_modules/yui/dd-drop-plugin/dd-drop-plugin-min.js
JavaScript
mit
394
//= require d3/d3 //= require jquery.qtip.min //= require simple_statistics gfw.ui.model.CountriesEmbedOverview = cdb.core.Model.extend({ defaults: { graph: 'total_loss', years: true, class: null } }); gfw.ui.view.CountriesEmbedOverview = cdb.core.View.extend({ el: document.body, events: { '...
apercas/gfw
app/assets/javascripts/embed_countries.js
JavaScript
mit
43,948
declare module 'fast-memoize' { declare type Cache<K, V> = { get: (key: K) => V, set: (key: K, value: V) => void, has: (key: K) => boolean } declare type Options = { cache?: Cache<*, *>; serializer?: (...args: any[]) => any; strategy?: <T>(fn: T, options?: Options) => T; } declare ...
splodingsocks/FlowTyped
definitions/npm/fast-memoize_v2.x.x/flow_v0.53.x-v0.103.x/fast-memoize_v2.x.x.js
JavaScript
mit
374
angular.module('ualib.imageCarousel', ['angular-carousel']) .constant('VIEW_IMAGES_URL', '//wwwdev2.lib.ua.edu/erCarousel/api/slides/active') .factory('imageCarouselFactory', ['$http', 'VIEW_IMAGES_URL', function imageCarouselFactory($http, url){ return { getData: function(){ ...
8bitsquid/roots-ualib
assets/js/_ualib_imageCarousel.js
JavaScript
mit
2,702
import { ListWrapper } from 'angular2/src/facade/collection'; import { stringify, isBlank } from 'angular2/src/facade/lang'; import { BaseException, WrappedException } from 'angular2/src/facade/exceptions'; function findFirstClosedCycle(keys) { var res = []; for (var i = 0; i < keys.length; ++i) { if (L...
binariedMe/blogging
node_modules/angular2/es6/prod/src/core/di/exceptions.js
JavaScript
mit
7,494
// Help functions /* * Return a string with all helper functions whose name contains the 'substring'; * if the 'searchDescription' is true, then also search the function description"); */ function getHelp(substring, searchDescription) { return framework.getJavaScriptHelp(".*(?i:" + substring + ").*", searchDesc...
workcraft/workcraft
workcraft/WorkcraftCore/res/scripts/core-help.js
JavaScript
mit
1,523
FullCalendar.globalLocales.push(function () { 'use strict'; var it = { code: 'it', week: { dow: 1, // Monday is the first day of the week. doy: 4, // The week that contains Jan 4th is the first week of the year. }, buttonText: { prev: 'Prec', next: 'Succ', today: 'Oggi...
unaio/una
upgrade/files/11.0.4-12.0.0.B1/files/plugins_public/fullcalendar/locale/it.js
JavaScript
mit
612
/* @flow */ /*eslint-disable no-undef, no-unused-vars, no-console*/ import _, { compose, pipe, curry, filter, find, isNil, repeat, replace, zipWith } from "ramda"; import { describe, it } from 'flow-typed-test'; const ns: Array<number> = [1, 2, 3, 4, 5]; const ss: Array<string> = ["one", "two", "thre...
flowtype/flow-typed
definitions/npm/ramda_v0.27.x/flow_v0.76.x-v0.103.x/test_ramda_v0.27.x_misc.js
JavaScript
mit
2,464
'use strict'; exports.up = function (knex) { return knex.schema.createTable('migration_test_trx_1', function (t) { t.increments(); t.string('name'); }); }; exports.down = function (knex) { return knex.schema.dropTable('migration_test_trx_1'); };
tgriesser/knex
test/integration/migrate/test_per_migration_trx_enabled/20131019235242_migration_1.js
JavaScript
mit
262
/** * @author mrdoob / http://mrdoob.com/ * @author bhouston / http://exocortex.com/ */ ( function ( THREE ) { THREE.Raycaster = function ( origin, direction, near, far ) { this.ray = new THREE.Ray( origin, direction ); // normalized ray.direction required for accurate distance calculations if( this.ray.d...
DLar/three.js
src/core/Raycaster.js
JavaScript
mit
5,607
'use strict'; require('../../modules/es.weak-set'); require('../../modules/esnext.weak-set.from'); var WeakSet = require('../../internals/path').WeakSet; var weakSetfrom = WeakSet.from; module.exports = function from(source, mapFn, thisArg) { return weakSetfrom.call(typeof this === 'function' ? this : WeakSet, sourc...
AntonyThorpe/knockout-apollo
tests/node_modules/core-js/features/weak-set/from.js
JavaScript
mit
343
/** @babel */ /** @jsx etch.dom **/ import etch from 'etch'; export default class WelcomeView { constructor(props) { this.props = props; etch.initialize(this); this.element.addEventListener('click', event => { const link = event.target.closest('a'); if (link && link.dataset.event) { ...
PKRoma/atom
packages/welcome/lib/welcome-view.js
JavaScript
mit
7,386
'use strict'; angular.module('sw.plugin.split', ['sw.plugins']) .factory('split', function ($q) { return { execute: execute }; function execute (url, swagger) { var deferred = $q.defer(); if (swagger && swagger.swagger && !swagger.tags) { ...
darosh/angular-swagger-ui-material
src/plugins/before-parse/split.js
JavaScript
mit
1,127
/*----------------------------------------------------------------------------------- /* /* Main JS /* -----------------------------------------------------------------------------------*/ (function($) { /*---------------------------------------------------- */ /* Preloader ----------------------------------...
wassapste97/sitomio
resources/js/main.js
JavaScript
mit
8,220
/** * @license Highcharts Gantt JS v7.2.0 (2019-09-03) * * CurrentDateIndicator * * (c) 2010-2019 Lars A. V. Cabrera * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; module.exports...
extend1994/cdnjs
ajax/libs/highcharts/7.2.0/modules/current-date-indicator.src.js
JavaScript
mit
4,598
var dep = require('./dep'); dep('');
gsteacy/ts-loader
test/execution-tests/1.8.2_allowJs-entryFileIsJs/src/app.js
JavaScript
mit
37
/** * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'magicline', 'it', { title: 'Inserisci paragrafo qui' } );
SeeyaSia/www
web/libraries/ckeditor/plugins/magicline/lang/it.js
JavaScript
gpl-2.0
247
import React from "react"; import PropTypes from "prop-types"; import Box from "grommet/components/Box"; import Paragraph from "grommet/components/Paragraph"; import Label from "grommet/components/Label"; import FormLayer from "../components/FormLayer"; class LayerObjectFieldTemplate extends React.Component { cons...
pamfilos/data.cern.ch
ui/cap-react/src/components/drafts/form/themes/grommet-preview/templates/LayerObjectFieldTemplate.js
JavaScript
gpl-2.0
1,677
var UserInformation_AccountStore = new Ext.data.Store({ fields:[ {name : 'Name'}, {name : 'ID'}, {name : 'Mail'}, {name : 'Roles'} ], reader : AccountReader }); var UserInformationItem = [ { fieldLabel : 'User ID', name : 'id', readOnly : true }, { fieldLabel : 'User Name...
chusiang/ezScrum_Ubuntu
WebContent/javascript/ezScrumPanel/UserInformationManagementFormPanel.js
JavaScript
gpl-2.0
4,497
(function ($) { providers_small.mailru = { name: 'mail.ru', url: "javascript: $('#mail_ru_auth_login a').click();" }; openid.getBoxHTML__mailru = openid.getBoxHTML; openid.getBoxHTML = function (box_id, provider, box_size, index) { if (box_id == 'mailru') { var no_sprite = this.no_sprite; this.no_sprite = ...
janicak/C-Db
sites/all/modules/openid_selector/openid_selector_mailru.js
JavaScript
gpl-2.0
650
/* Class: Graphic.Ellipse Shape implementation of an ellipse. Author: Sébastien Gruhier, <http://www.xilinus.com> License: MIT-style license. See Also: <Shape> */ Graphic.Ellipse = Class.create(); Object.extend(Graphic.Ellipse.prototype, Graphic.Shape.prototype); // Keep parent initialize Graphic.El...
j9recurses/whirld
vendor/assets/components/cartagen/lib/prototype-graphic/src/shape/ellipse.js
JavaScript
gpl-3.0
1,191
define(["ng", "lodash"], function(ng, _){ "use strict"; var DashboardVM = function DashboardVM($scope, $rootScope){ var _self = this; this.toggleHStretch = function(isOn){ _self.setOptions(options); }; this.updateOptions = function(options){ ng.extend(_self, options); }; this.resetOptions = ...
apartensky/mev
web/src/main/javascript/edu/dfci/cccb/mev/web/ui/app/widgets/dashboard/controllers/DashboardVM.js
JavaScript
gpl-3.0
1,974
modules.define( 'spec', ['button', 'i-bem__dom', 'chai', 'jquery', 'BEMHTML'], function(provide, Button, BEMDOM, chai, $, BEMHTML) { var expect = chai.expect; describe('button_type_link', function() { var button; beforeEach(function() { button = buildButton({ block : 'button',...
dojdev/bem-components
common.blocks/button/_type/button_type_link.spec.js
JavaScript
mpl-2.0
2,043
// |jit-test| allow-oom; allow-unhandlable-oom gcparam("maxBytes", gcparam("gcBytes") + 4*1024); var max = 400; function f(b) { if (b) { f(b - 1); } else { g = { apply:function(x,y) { } }; } g.apply(null, arguments); } f(max - 1);
Yukarumya/Yukarum-Redfoxes
js/src/jit-test/tests/baseline/bug847425.js
JavaScript
mpl-2.0
294
import Analyzer from 'parser/core/Analyzer'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; class Insanity extends Analyzer { _insanityEvents = []; on_toPlayer_energize(event) { if (event.resourceChangeType === RESOURCE_TYPES.INSANITY.id) { this._insanityEvents = [ ...this._insanityEvents, ...
ronaldpereira/WoWAnalyzer
src/parser/priest/shadow/modules/core/Insanity.js
JavaScript
agpl-3.0
435
Clazz.declarePackage ("org.jmol.shapespecial"); Clazz.load (["org.jmol.shape.AtomShape", "org.jmol.atomdata.RadiusData", "org.jmol.util.BitSet"], "org.jmol.shapespecial.Dots", ["java.util.Hashtable", "org.jmol.constant.EnumVdw", "org.jmol.geodesic.EnvelopeCalculation", "org.jmol.util.BitSetUtil", "$.Colix", "$.Escape",...
ksripathi/edx-demo-course
static/jsmol/j2s/org/jmol/shapespecial/Dots.js
JavaScript
agpl-3.0
7,637
/* * * * (c) 2010-2020 Torstein Honsi * * License: www.highcharts.com/license * * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!! * * */ 'use strict'; import H from './Globals.js'; import Point from './Point.js'; import U from './Utilities.js'; var seriesType = U.seriesType; var seri...
burki/jewish-history-online
web/vendor/highcharts/es-modules/parts/OHLCSeries.js
JavaScript
agpl-3.0
11,563
/*-------------------------------------------------------------------- Copyright (c) 2011 Local Projects. All rights reserved. Licensed under the Affero GNU GPL v3, see LICENSE for more details. --------------------------------------------------------------------*/ tc.gam.widgetVisibilityHandler = function(option...
localprojects/Change-By-Us
static/js/tc.gam.widget-visibility-handler.js
JavaScript
agpl-3.0
2,065
{ "translatorID": "cd587058-6125-4b33-a876-8c6aae48b5e8", "label": "WHO", "creator": "Mario Trojan, Philipp Zumstein", "target": "^http://apps\\.who\\.int/iris/", "minVersion": "3.0", "maxVersion": "", "priority": 100, "inRepository": true, "translatorType": 4, "browserSupport": "gcsibv", "lastUpdated": "201...
ZotPlus/zotero-better-bibtex
test/fixtures/profile/zotero/zotero/translators/WHO.js
JavaScript
unlicense
9,219
'use strict'; angular.module('mgcrea.ngStrap.typeahead', ['mgcrea.ngStrap.tooltip', 'mgcrea.ngStrap.helpers.parseOptions']) .provider('$typeahead', function() { var defaults = this.defaults = { animation: 'am-fade', prefixClass: 'typeahead', prefixEvent: '$typeahead', placement: 'bottom...
anirvann/testApp
vendor/angular-strap/src/typeahead/typeahead.js
JavaScript
unlicense
8,390
///<reference path="app.js" /> define(['Dexie', 'Dexie.Observable', './console'], function (Dexie, DexieObservable, console) { // Declare Dexie instance and explicitely apply the addon: var db = new Dexie("appdb2", { addons: [DexieObservable] }); // Define database schema db.version(1).stores({ ...
YuriSolovyov/Dexie.js
samples/requirejs-with-addons/scripts/db.js
JavaScript
apache-2.0
643
/*! * Copyright 2014 Apereo Foundation (AF) Licensed under the * Educational Community 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://opensource.org/licenses/ECL-2.0 * * Unless required by applicab...
nicolaasmatthijs/3akai-ux
node_modules/oae-core/editprofile/js/editprofile.js
JavaScript
apache-2.0
16,154
if (!this["output"]) output = print; var passed = 0; var failed = 0; function is(got, expected, msg) { if (got == expected) { output("OK: " + msg); ++passed; } else { output("FAIL: " + msg); output("Expected |" + expected + "|"); output(" Got |" + got + "|"); ++failed; } } function...
krishnabangalore/Webinos-Platform
webinos/core/manager/synchronisation_manager/lib/json-sync-master/test.js
JavaScript
apache-2.0
24,453
/** * Copyright 2020 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...
lannka/amphtml
extensions/amp-a4a/0.1/head-validation.js
JavaScript
apache-2.0
6,308
'use strict'; module.exports = function (math) { var util = require('../../util/index'), BigNumber = math.type.BigNumber, collection = require('../../type/collection'), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isInteger = util.number.isInteger, isC...
wyom/mathjs
lib/function/probability/factorial.js
JavaScript
apache-2.0
2,388
/* * author: the5fire * blog: the5fire.com * date: 2014-03-16 * */ $(function(){ WEB_SOCKET_SWF_LOCATION = "/static/WebSocketMain.swf"; WEB_SOCKET_DEBUG = true; var socket = io.connect(); socket.on('connect', function(){ console.log('connected'); }); $(window).bind("beforeunload",...
yhbyun/wechat-1
src/static/js/chat.js
JavaScript
apache-2.0
10,736
/* */ "format cjs"; /** * Determines whether two sequences are equal by comparing the elements pairwise using a specified equality comparer. * * @example * var res = res = source.sequenceEqual([1,2,3]); * var res = res = source.sequenceEqual([{ value: 42 }], function (x, y) { return x.value === y.val...
cfraz89/moonrock-js-starter
jspm_packages/npm/rx@2.5.3/src/core/linq/observable/sequenceequal.js
JavaScript
apache-2.0
3,046
function getUrlVars() { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for (var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); vars.push(hash[0]); vars[hash[0]] = hash[1]; } return vars; }
SreejithNS/com.sreejithn
www/js/geturi.js
JavaScript
apache-2.0
312
export const CREATE_COURSE = 'CREATE_COURSE';
bluSCALE4/react-hello-world
src/actions/actionTypes.js
JavaScript
apache-2.0
46
/*** Wrapper/Helper Class for datagrid based on jQuery Datatable Plugin ***/ var Datatable = function () { var tableOptions; // main options var dataTable; // datatable object var table; // actual table jquery object var tableContainer; // actual table container object var tableWr...
zeickan/Infected-Engine
static/global/scripts/datatable.js
JavaScript
apache-2.0
11,607
Ext.data.ArrayReader=Ext.extend(Ext.data.JsonReader,{readRecords:function(c){var b=this.meta?this.meta.id:null;var h=this.recordType,q=h.prototype.fields;var e=[];var s=c;for(var m=0;m<s.length;m++){var d=s[m];var u={};var a=((b||b===0)&&d[b]!==undefined&&d[b]!==""?d[b]:null);for(var l=0,w=q.length;l<w;l++){var r=q.ite...
Ariah-Group/Continuity
src/main/webapp/javascripts/ext/build/data/ArrayReader-min.js
JavaScript
apache-2.0
539
/** * @file * <a href="https://travis-ci.org/Xotic750/has-to-string-tag-x" * title="Travis status"> * <img * src="https://travis-ci.org/Xotic750/has-to-string-tag-x.svg?branch=master" * alt="Travis status" height="18"> * </a> * <a href="https://david-dm.org/Xotic750/has-to-string-tag-x" * title="Dependency sta...
BluelabUnifor/sunny-messeger
node_modules/watson-developer-cloud/node_modules/buffer-from/node_modules/is-array-buffer-x/node_modules/has-to-string-tag-x/index.js
JavaScript
apache-2.0
2,875
// Copyright (C) 2016 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-html-like-comments description: SingleLineHTMLOpenComment info: | Comment :: MultiLineComment SingleLineComment SingleLineHTMLOpenComment ...
sebastienros/jint
Jint.Tests.Test262/test/annexB/language/comments/single-line-html-open.js
JavaScript
bsd-2-clause
1,179
// Copyright (C) 2016 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-%typedarray%.prototype.copywithin description: > Set values with out of bounds negative target argument. info: | 22.2.3.5 %TypedArray%.prototype.copyWithin (targe...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/TypedArray/prototype/copyWithin/BigInt/negative-out-of-bounds-target.js
JavaScript
bsd-2-clause
1,835
// 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-3-114 description: > Object.defineProperty - 'configurable' property in 'Attributes' is a Boolean object (8.10.5 step 4.b) ---*/ var obj = {}; Object.de...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/Object/defineProperty/15.2.3.6-3-114.js
JavaScript
bsd-2-clause
629
// 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.3-2-25 description: > Object.getOwnPropertyDescriptor - argument 'P' is a number that converts to a string (value is 1e-7) ---*/ var obj = { "1e-7": 1 };...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-2-25.js
JavaScript
bsd-2-clause
425
/** * License and Terms of Use * * Copyright (c) 2011 SignpostMarv * * 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, cop...
aurora-sim/Aurora-WebUI
www/worldmap/javascripts/mapapi.shape.js
JavaScript
bsd-3-clause
12,790
/** * 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 * @flow strict-local */ 'use strict'; import type {Node} from 'React'; import {ActivityIndicator, StyleSheet, View} fr...
hoangpham95/react-native
packages/rn-tester/js/examples/ActivityIndicator/ActivityIndicatorExample.js
JavaScript
bsd-3-clause
3,613
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @providesModule takeSnapshot * @flow */ 'use strict'; const UIManager = require('UIManager'); const findNumericNodeHandle = require...
yangshun/react
src/renderers/native/takeSnapshot.js
JavaScript
bsd-3-clause
1,528
(function($, window, document) { var pluginName = 'fatNav', defaults = {}; function Plugin(options) { this.settings = $.extend({}, defaults, options); this._defaults = defaults; this._name = pluginName; this.init(); } $.extend(Plugin.prototype, { ...
wangrunxinyes/sby
frontend/plugin/include/extensions/fullscren.choices/src/js/jquery.fatNav.js
JavaScript
bsd-3-clause
2,044
// package metadata file for Meteor.js 'use strict'; var packageName = 'gromo:jquery.scrollbar'; // https://atmospherejs.com/mediatainment/switchery var where = 'client'; // where to install: 'client' or 'server'. For both, pass nothing. Package.describe({ name: packageName, version: '0.2.10', // Brief, o...
aivankovich/zo
vendor/jquery.scrollbar/package.js
JavaScript
bsd-3-clause
964
Prism.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)...
netbek/chrys
demo/vendor/prismjs/components/prism-j.min.js
JavaScript
bsd-3-clause
818
/* * zClip :: jQuery ZeroClipboard v1.1.1 * http://steamdev.com/zclip * * Copyright 2011, SteamDev * Released under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * Date: Wed Jun 01, 2011 */ (function ($) { $.fn.zclip = function (params) { if (typeof par...
xantage/code
vilya/static/js/lib/jquery.zclip.js
JavaScript
bsd-3-clause
16,750
var clientid = '4c3b2c1b-364c-4ceb-9416-8371dd4ebe3a'; if (/^#access_token=/.test(location.hash)) { location.assign('/Home/index?auto=1&ss=0' + '&cors=1' + '&client_id=' + clientid+ '&origins=https://webdir.online.lync.com/autodiscover/autodiscoverservice.svc/root'); } $('.logi...
unixcbt/demos
LamnaHealthCare-Patient/obj/Release/Package/PackageTmp/Scripts/onlinesignin.js
JavaScript
bsd-3-clause
698
var vows = require('vows'), assert = require('assert'), path = require('path'), fs = require('fs'), exec = require('child_process').exec, base = path.join(__dirname, 'assets/badmodule/'), buildBase = path.join(base, 'build'), srcBase = path.join(base, 'src/foo'), rimraf = require('rimraf...
wf2/shifter
tests/14-builder-uglify-badmodule-cmd.js
JavaScript
bsd-3-clause
1,833
/* jshint multistr:true */ /* jshint -W040 */ 'use strict'; var envify = require('envify/custom'); var es3ify = require('es3ify'); var grunt = require('grunt'); var UglifyJS = require('uglify-js'); var uglifyify = require('uglifyify'); var derequire = require('derequire'); var collapser = require('bundle-collapser/pl...
kchia/react
grunt/config/browserify.js
JavaScript
bsd-3-clause
3,473
(function ($) { $.Redactor.opts.langs['ua'] = { html: 'Код', video: 'Відео', image: 'Зображення', table: 'Таблиця', link: 'Посилання', link_insert: 'Вставити посилання ...', link_edit: 'Edit link', unlink: 'Видалити посилання', formatting: 'Стилі', paragraph: 'Звичайний текст', quote: 'Цитата', code: 'Код',...
elearninglondon/ematrix_2015
themes/third_party/editor/redactor/lang/ua.js
JavaScript
mit
2,697
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors // MIT License. See license.txt $.extend(frappe.model, { docinfo: {}, sync: function(r) { /* docs: extract docs, docinfo (attachments, comments, assignments) from incoming request and set in `locals` and `frappe.model.docinfo` */ var i...
bcornwellmott/frappe
frappe/public/js/frappe/model/sync.js
JavaScript
mit
2,359
export const INCREMENT_COUNTER = 'INCREMENT_COUNTER' export const DECREMENT_COUNTER = 'DECREMENT_COUNTER'
niqdev/react-redux-bootstrap4
src/modules/counter/CounterActionTypes.js
JavaScript
mit
106
var expect = require('chai').expect; var runner = require('../runner'); describe('nasm runner', function() { describe('.run', function() { it('should handle basic code evaluation (no libc)', function(done) { runner.run({ language: 'nasm', code: [ ' global _start', ' ...
Codewars/codewars-runner
test/runners/nasm_spec.js
JavaScript
mit
1,513
/** * error handling middleware loosely based off of the connect/errorHandler code. This handler chooses * to render errors using Jade / Express instead of the manual templating used by the connect middleware * sample. This may or may not be a good idea :-) * @param options {object} array of options **/ exports =...
brendan1mcmanus/PennApps-Fall-2015
middleware/errorHandler.js
JavaScript
mit
1,381
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
ptmt/flow-declarations
test/node/test-tls-friendly-error-message.js
JavaScript
mit
1,945
Kanboard.App = function() { this.controllers = {}; }; Kanboard.App.prototype.get = function(controller) { return this.controllers[controller]; }; Kanboard.App.prototype.execute = function() { for (var className in Kanboard) { if (className !== "App") { var controller = new Kanboard[cla...
fguillot/kanboard
assets/js/src/App.js
JavaScript
mit
3,355
/* * Should * Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ module.exports = function(should, Assertion) { /** * Assert given object is NaN * @name NaN * @memberOf Assertion * @category assertion numbers * @example * * (10).should.not.be.NaN(); * NaN.should...
XuanyuZhao1984/MeanJS_train1
node_modules/should/lib/ext/number.js
JavaScript
mit
3,086
'use strict'; var APPLICATION_JSON = 'application/json'; var CONTENT_TYPE_APPLICATION_JSON = {'Content-Type': APPLICATION_JSON + ';charset=utf-8'}; var JSON_START = /^\[|^\{(?!\{)/; var JSON_ENDS = { '[': /]$/, '{': /}$/ }; var JSON_PROTECTION_PREFIX = /^\)\]\}',?\n/; var $httpMinErr = minErr('$http'); var $httpMi...
evil-wolf/angular.js
src/ng/http.js
JavaScript
mit
49,570
import { run } from '@ember/runloop'; import { guidFor, setName } from 'ember-utils'; import { context } from 'ember-environment'; import EmberObject from '../../../lib/system/object'; import Namespace from '../../../lib/system/namespace'; import { moduleFor, AbstractTestCase } from 'internal-test-helpers'; let origin...
csantero/ember.js
packages/ember-runtime/tests/system/object/toString_test.js
JavaScript
mit
3,366
define(["../core","../manipulation"],function(e){function t(t,n){var o,a=e(n.createElement(t)).appendTo(n.body),d=window.getDefaultComputedStyle&&(o=window.getDefaultComputedStyle(a[0]))?o.display:e.css(a[0],"display");return a.detach(),d}function n(n){var d=document,r=a[n];return r||(r=t(n,d),"none"!==r&&r||(o=(o||e("...
dandenney/dandenney.com
build/assets/javascripts/vendor/jquery/src/css/defaultDisplay.js
JavaScript
mit
494
#!/usr/bin/env node 'use strict'; var fs = require('fs'), path = require('path'), exec = require('child_process').exec, chalk = require('chalk'), Table = require('cli-table'); var fileNames = [ 'abc', 'amazon', //'eloquentjavascript', //'es6-draft', 'es6-table', 'google', 'html-minifier...
psychoss/html-minifier
benchmark.js
JavaScript
mit
3,946
steal('can/util', 'can/observe', function(can) { // ** - 'this' will be the deepest item changed // * - 'this' will be any changes within *, but * will be the // this returned // tells if the parts part of a delegate matches the broken up props of the event // gives the prop to use as 'this' // - par...
SpredfastLegacy/canjs
observe/delegate/delegate.js
JavaScript
mit
11,161
var name = "Wanderer"; var collection_type = 0; var is_secret = 0; var desc = "Visited 503 new locations."; var status_text = "Gosh, where HAVEN'T you traveled? Your peregrinations have earned you this footworn-but-carefree Wanderer badge."; var last_published = 1348803094; var is_shareworthy = 1; var url = "wande...
yelworc/eleven-gsjs
achievements/wanderer.js
JavaScript
mit
1,587
export default class ModelAccessor { constructor() { this.value = 10 } get highCount() { return this.value + 100 } set highCount(v) { this.value = v - 100 } get doubleHigh() { return this.highCount * 2 } incr() { this.value++ } }
nekronos/fuselibs-public
Source/Fuse.Models/Tests/UX/Accessor.js
JavaScript
mit
255
import { Template } from 'meteor/templating'; Template.messageAction.helpers({ isButton() { return this.type === 'button'; }, areButtonsHorizontal() { return Template.parentData(1).button_alignment === 'horizontal'; }, jsActionButtonClassname(processingType) { return `js-actionButton-${ processingType || 's...
4thParty/Rocket.Chat
app/message-action/client/messageAction.js
JavaScript
mit
344
import fs from 'fs'; import url from 'url'; import path from 'path'; import mime from 'mime-types'; import gulp from 'gulp'; import createServerTask from './tasks/server'; import consoleArguments from './console-arguments'; import { adminBundle } from './admin-bundle.tasks'; import { dashboardBundle } from './dashboard...
Kunstmaan/KunstmaanBundlesCMS
groundcontrol/start-local.task.js
JavaScript
mit
3,206
'use strict'; describe('Service: Initiatives', function () { // instantiate service var Initiatives, Timeout, cfg, $httpBackend, $rootScope, tPromise; // load the service's module beforeEach(module('sumaAnalysis')); beforeEach(inject(function (_$rootScope_, _$httpBackend_, _in...
cazzerson/Suma
analysis/test/js/spec/services/initiatives.js
JavaScript
mit
2,143
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; }; /* Tabulator v4.0.2 (c) Oliver Folkerd */ var Ht...
joeyparrish/cdnjs
ajax/libs/tabulator/4.0.2/js/modules/html_table_import.js
JavaScript
mit
4,916
//------------------------------------------------------------------------------------------------------- // 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/Array/array_init.js
JavaScript
mit
1,438
$_L(["$wt.widgets.Layout"],"$wt.layout.FillLayout",["$wt.graphics.Point","$wt.layout.FillData"],function(){ c$=$_C(function(){ this.type=256; this.marginWidth=0; this.marginHeight=0; this.spacing=0; $_Z(this,arguments); },$wt.layout,"FillLayout",$wt.widgets.Layout); $_K(c$, function(){ $_R(this,$wt.layout.Fi...
01org/mayloon-portingtool
sources/net.sf.j2s.lib/j2slib/org/eclipse/swt/layout/FillLayout.js
JavaScript
epl-1.0
4,054
var path = require("path"); module.exports = { entry: "./public/App.js", output: { filename: "bundle.js", path: path.resolve(__dirname, "public") } };
generalelectrix/wiggles
view/webpack.config.js
JavaScript
gpl-2.0
179
$(document).ready(function(){ // removing some column headers when there is at least one product if ( $('#lines tbody tr.product').length > 0 ) { $('#lines').addClass('with-product'); $('body').addClass('with-product'); } if ( $('#lines tbody tr.ticket').length > 0 ) { $('#lines').addClass('with...
Fabrice-li/e-venement
web/js/print-tickets.js
JavaScript
gpl-2.0
803
/* Implement Github like autocomplete mentions http://ichord.github.com/At.js Copyright (c) 2013 chord.luo@gmail.com Licensed under the MIT license. */ /* 本插件操作 textarea 或者 input 内的插入符 只实现了获得插入符在文本框中的位置,我设置 插入符的位置. */ /** * -------------------- * Vanilla Forums NOTE: * -------------------- * * This fil...
rwmcoder/Vanilla
js/library/jquery.atwho.js
JavaScript
gpl-2.0
35,430
'use strict'; const common = require('../common.js'); const bench = common.createBenchmark(main, { pieces: [1, 4, 16], pieceSize: [1, 16, 256], withTotalLength: [0, 1], n: [1024] }); function main(conf) { const n = +conf.n; const size = +conf.pieceSize; const pieces = +conf.pieces; const list = new A...
domino-team/openwrt-cc
package/gli-pub/openwrt-node-packages-master/node/node-v6.9.1/benchmark/buffers/buffer-concat.js
JavaScript
gpl-2.0
563
function test() { return (function foo(){}).name === 'foo' && (function(){}).name === ''; } if (!test()) throw new Error("Test failed");
Debian/openjfx
modules/web/src/main/native/Source/JavaScriptCore/tests/es6/function_name_property_function_expressions.js
JavaScript
gpl-2.0
153
FD40.ready(function($) { var jQuery = $;// Catalan jQuery.timeago.settings.strings = { prefixAgo: "fa", prefixFromNow: "d'aqui a", suffixAgo: null, suffixFromNow: null, seconds: "menys d'1 minut", minute: "1 minut", minutes: "uns %d minuts", hour: "1 hora", hours: "unes %d hores", day: "1 dia", d...
BetterBetterBetter/WheresWalden
media/foundry/4.0/scripts/timeago/ca.js
JavaScript
gpl-2.0
450
/* * JCE Editor 2.2.4 * @package JCE * @url http://www.joomlacontenteditor.net * @copyright Copyright (C) 2006 - 2012 Ryan Demmer. All rights reserved * @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html...
ArtificialEX/jwexport
components/com_jce/editor/tiny_mce/themes/advanced/js/colorpicker.js
JavaScript
gpl-2.0
1,641
/** * @file Visual mapping. */ define(function (require) { var zrUtil = require('zrender/core/util'); var zrColor = require('zrender/tool/color'); var linearMap = require('../util/number').linearMap; var each = zrUtil.each; var isObject = zrUtil.isObject; var CATEGORY_DEFAULT_VISUAL_INDEX = ...
mo-norant/FinHeartBel
website/node_modules/echarts/src/visual/VisualMapping.js
JavaScript
gpl-3.0
20,627
var express = require('express') var app = module.exports = express() app.get('/404', require('lib/site/layout')) app.get('*', function (req, res) { res.redirect('/404') })
democracy-os-fr/democracyos
lib/site/error-pages/not-found/index.js
JavaScript
gpl-3.0
176
// Set iterators produces entries in the order they were inserted. var set = Set(); var i; for (i = 7; i !== 1; i = i * 7 % 1117) set.add(i); assertEq(set.size, 557); i = 7; for (var v of set) { assertEq(v, i); i = i * 7 % 1117; } assertEq(i, 1);
SlateScience/MozillaJS
js/src/jit-test/tests/collections/Set-iterator-order.js
JavaScript
mpl-2.0
261
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports...
systems-rebooter/music
js/vendor/aurora/flac.js
JavaScript
agpl-3.0
25,523
/* * /MathJax/localization/br/br.js * * Copyright (c) 2009-2015 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LI...
hannesk001/SPHERE-Framework
Library/MathJax/2.5.0/localization/br/br.js
JavaScript
agpl-3.0
2,278
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** 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 Lic...
csinitiative/trisano
webapp/features/support/firefox-36/components/nsPlacesTransactionsService.js
JavaScript
agpl-3.0
42,772
/* YUI 3.11.0 (build d549e5c) Copyright 2013 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('tree-openable', function (Y, NAME) { /*jshint expr:true, onevar:false */ /** Extension for `Tree` that adds the concept of open/closed state for nodes. @module tre...
devmix/openjst
server/commons/war/src/main/webapp/ui/lib/yui/build/tree-openable/tree-openable.js
JavaScript
agpl-3.0
7,103
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'blockquote', 'af', { toolbar: 'Sitaatblok' } );
ging/vish_orange
lib/plugins/ediphy/app/assets/javascripts/lib/ckeditor/plugins/blockquote/blockquote/lang/af.js
JavaScript
agpl-3.0
219
import { expect } from 'chai'; import { spec } from 'modules/yieldoneBidAdapter.js'; import { newBidder } from 'src/adapters/bidderFactory.js'; import { deepClone } from 'src/utils.js'; const ENDPOINT = 'https://y.one.impact-ad.jp/h_bid'; const USER_SYNC_URL = 'https://y.one.impact-ad.jp/push_sync'; const VIDEO_PLAYER...
PubWise/Prebid.js
test/spec/modules/yieldoneBidAdapter_spec.js
JavaScript
apache-2.0
16,949
$(document).ready( function() { var $roles = $(".role_change"); $roles.each( function() { var str = $(this).find("input").val(); var en_role_index = getRoleIndex(str,"EN"); var cn_role_str = indexToRole(en_role_index,"CN"); $(this).find("span").append(cn_role...
tianfengjingjing/ZhuoHuaCMMOracle11g
WebRoot/js/admin/staff/viewStaffInfo.js
JavaScript
apache-2.0
367
(function () { var pigKeywordsU = pigKeywordsL = pigTypesU = pigTypesL = pigBuiltinsU = pigBuiltinsL = []; var mimeMode = CodeMirror.mimeModes['text/x-pig']; Object.keys(mimeMode.keywords).forEach( function(w) { pigKeywordsU.push(w.toUpperCase()); pigKeywordsL.push(w.toLowerCase()); }); Object.key...
radicalbit/ambari
contrib/views/pig/src/main/resources/ui/pig-web/vendor/pig-hint.js
JavaScript
apache-2.0
3,053
import {removeElement} from '#core/dom'; import {Layout_Enum, applyFillContent} from '#core/dom/layout'; import {Services} from '#service'; import {userAssert} from '#utils/log'; import {TAG as KEY_TAG} from './amp-embedly-key'; import {getIframe} from '../../../src/3p-frame'; import {listenFor} from '../../../src/...
media-net/amphtml
extensions/amp-embedly-card/0.1/amp-embedly-card-impl.js
JavaScript
apache-2.0
2,517
/** * Sitespeed.io - How speedy is your site? (https://www.sitespeed.io) * Copyright (c) 2014, Peter Hedenskog, Tobias Lidskog * and other contributors * Released under the Apache 2.0 License */ 'use strict'; var util = require('../util/util'), RequestTiming = require('../requestTiming'), Stats = require('fast...
yesman82/sitespeed.io
lib/collectors/domains.js
JavaScript
apache-2.0
5,405