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 formInstance = (
<Form>
<Input placeholder="验证成功" label="验证成功" validation="success" />
<Input placeholder="验证警告" label="验证警告" validation="warning" />
<Input placeholder="验证失败" label="验证失败" validation="error" />
<FormGroup validation="success">
<label>单选按钮:</label>
<Input type="radio" l... | Node-X/amazeui-react | docs/form/06-field-state.js | JavaScript | mit | 517 |
// randomColor by David Merfield under the CC0 license
// https://github.com/davidmerfield/randomColor/
;(function(root, factory) {
// Support AMD
if (typeof define === 'function' && define.amd) {
define([], factory);
// Support CommonJS
} else if (typeof exports === 'object') {
var randomColor = fac... | CraigBanach/voting-app | views/home/poll/randomcolor/randomColor.js | JavaScript | mit | 9,464 |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
erpnext.SMSManager = function SMSManager(doc) {
var me = this;
this.setup = function() {
var default_msg = {
'Lead' : '',
'Opportunity' : 'Your enquiry has been logged into th... | mhbu50/erpnext | erpnext/public/js/sms_manager.js | JavaScript | gpl-3.0 | 3,678 |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var gTestfile = 'regress-441477-01... | sainaen/rhino | testsrc/tests/ecma_3/Regress/regress-441477-01.js | JavaScript | mpl-2.0 | 1,005 |
import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { BrowserRouter, Route } from 'react-router-dom';
import { ScrollContext } from 'react-router-scroll-4';
import UI from '../features/ui';
import { fetchCust... | Ryanaka/mastodon | app/javascript/mastodon/containers/mastodon.js | JavaScript | agpl-3.0 | 2,454 |
/**
* 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.
*
* @flow
*/... | mcanthony/react-devtools | shells/chrome/src/background.js | JavaScript | bsd-3-clause | 1,679 |
module.exports={A:{A:{"2":"H E G C B WB","36":"A"},B:{"36":"D u g I J"},C:{"1":"0 1 2 3 4 5 6 n o p q r s t y K","2":"UB x F L H E G C B A D u g I J Y SB RB","36":"O e P Q R S T U V W X v Z a b c d N f M h i j k l m"},D:{"1":"0 1 2 3 4 5 6 h i j k l m n o p q r s t y K GB AB CB VB DB EB","2":"F L H E G C B A D u g I J ... | mytkdals93/golfpass | public/framework/node_modules/caniuse-lite/data/features/screen-orientation.js | JavaScript | mit | 802 |
/**
* 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 from 'react';
import withStyles from 'isomorp... | zerubeus/voicifix | src/components/Footer/Footer.js | JavaScript | mit | 951 |
var path = require('path');
var package = require('./package');
var webpack = require('webpack');
var ProgressPlugin = require('webpack/lib/ProgressPlugin');
var inspect = require('util').inspect;
var Busboy = require('busboy');
var chalk = require('chalk');
var webpackMiddleware = require('webpack-dev-middleware');
va... | samlin08/ant-design | nico.js | JavaScript | mit | 3,338 |
import demand from 'must';
import { columnsParser, sortParser, filtersParser, filterParser, createFilterObject } from '../index';
import sinon from 'sinon';
describe('<List> query parsers', function () {
beforeEach(function () {
this.fields = {
name: {
path: 'name',
paths: {
first: 'name.first',
... | trentmillar/keystone | admin/client/App/parsers/tests/index.test.js | JavaScript | mit | 7,962 |
tinyMCE.addI18n('sk.simple',{
bold_desc:"Tu\u010Dn\u00FD text (Ctrl+B)",
italic_desc:"\u0160ikm\u00FD text (kurz\u00EDva) (Ctrl+I)",
underline_desc:"Pod\u010Diarknut\u00FD text (Ctrl+U)",
striketrough_desc:"Pre\u0161krtnut\u00FD text",
bullist_desc:"Zoznam s odr\u00E1\u017Ekami",
numlist_desc:"\u010C\u00EDslovan\... | skevy/django-tinymce | tinymce/media/tiny_mce/themes/simple/langs/sk.js | JavaScript | mit | 466 |
define("dojox/gfx/utils", ["dojo/_base/kernel","dojo/_base/lang","./_base", "dojo/_base/html","dojo/_base/array", "dojo/_base/window", "dojo/_base/json",
"dojo/_base/Deferred", "dojo/_base/sniff", "require","dojo/_base/config"],
function(kernel, lang, g, html, arr, win, jsonLib, Deferred, has, require, config){
v... | ISTang/sitemap | web/public/libs/dojo/1.8.3/dojox/gfx/utils.js.uncompressed.js | JavaScript | gpl-2.0 | 11,072 |
describe('Controller: FileController', function() {
var $scope,
File;
beforeEach(module('Bastion.files', 'Bastion.test-mocks'));
beforeEach(inject(function($controller, $rootScope, MockResource) {
$scope = $rootScope.$new();
File = MockResource.$new();
$scope.$stateParams ... | Katello/katello | engines/bastion_katello/test/files/details/file.controller.test.js | JavaScript | gpl-2.0 | 622 |
module.exports={A:{A:{"2":"J C G E B A VB"},B:{"2":"D Y g H L"},C:{"1":"m n o p q r s x y","2":"0 1 3 4 5 TB z F I J C G E u t RB QB","132":"L M N O P Q R S T U V W X v Z a b c d e f K h i j k l","164":"B A D Y g H"},D:{"1":"0 1 3 4 5 8 h i j k l m n o p q r s x y u t FB BB UB CB DB","2":"F I J C G E B A D Y g H L M N ... | cleverswine/cleverswine-hugo | themes/semantic-cards/semantic/node_modules/caniuse-lite/data/features/battery-status.js | JavaScript | gpl-3.0 | 796 |
/*
* SERVER-6127 : $project uasserts if an expected nested field has a non object parent in a document
*
* This test validates the SERVER-6127 ticket. Return undefined when retrieving a field along a
* path, when the subpath does not exist (this is what happens when a field does not exist and
* there is no path). ... | wvdd007/robomongo | src/third-party/mongodb/jstests/aggregation/bugs/server6127.js | JavaScript | gpl-3.0 | 1,497 |
/* @preserve
* Leaflet 1.6.0+Detached: 0c81bdf904d864fd12a286e3d1979f47aba17991.0c81bdf, a JS library for interactive maps. http://leafletjs.com
* (c) 2010-2019 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(export... | c3nav/c3nav | src/c3nav/static/leaflet/leaflet.js | JavaScript | apache-2.0 | 409,097 |
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/
'use stric... | demns/todomvc-perf-comparison | todomvc/react/node_modules/flux/node_modules/fbemitter/node_modules/fbjs/lib/areEqual.js | JavaScript | mit | 2,892 |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v14.0.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c ... | ahocevar/cdnjs | ajax/libs/ag-grid/14.0.0/lib/cellNavigationService.js | JavaScript | mit | 12,314 |
(function() {
var DE = window.DiscourseEmbed || {};
var comments = document.getElementById('discourse-comments');
var iframe = document.createElement('iframe');
['discourseUrl', 'discourseEmbedUrl', 'discourseUserName'].forEach(function(i) {
if (window[i]) { DE[i] = DE[i] || window[i]; }
});
var quer... | charan47/discourse | public/javascripts/embed.js | JavaScript | gpl-2.0 | 2,104 |
/*
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.5.2
*/
/**
* The dom module provides helper methods for manipulating Dom elements.
* @module dom
*
*/
(function() {
var Y = YAHOO.util, // internal shorthand
... | SuriyaaKudoIsc/wikia-app-test | resources/wikia/libraries/yui/dom/dom-debug.js | JavaScript | gpl-2.0 | 51,341 |
// Do not edit this file; automatically generated by build.py.
'use strict';
Blockly.Blocks.colour={};Blockly.Constants={};Blockly.Constants.Colour={};Blockly.Constants.Colour.HUE=20;
Blockly.defineBlocksWithJsonArray([{type:"colour_picker",message0:"%1",args0:[{type:"field_colour",name:"COLOUR",colour:"#ff0000"}],ou... | jjalling/domoticz | www/js/blockly/blocks_compressed.js | JavaScript | gpl-3.0 | 71,738 |
/*!
* Copyright 2019 Hitachi Vantara. 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 appli... | ddiroma/pentaho-kettle | plugins/file-open-save-new/core/src/main/javascript/app/shared/directives/context.directive.js | JavaScript | apache-2.0 | 2,261 |
var typing_status = require('js/typing_status');
function return_false() { return false; }
function return_true() { return true; }
function return_alice() { return "alice"; }
function return_bob() { return "bob"; }
function make_time(secs) {
// make times semi-realistic
return 1000000 + 1000 * secs;
}
functi... | SmartPeople/zulip | frontend_tests/node_tests/typing_status.js | JavaScript | apache-2.0 | 7,740 |
#!/usr/bin/env node
var tests = require("./hardcoded_tests.js");
var runTest = require(".//hardcoded_test_runner.js");
var colors = require("colors");
var parseArgs = require("minimist");
var failures = {};
var num_successes = 0;
var num_failures = 0;
var argv = parseArgs(
process.argv.slice(2),
{string: ["filter... | bowlofstew/kythe | third_party/flow/src/parser/test/run_hardcoded_tests.js | JavaScript | apache-2.0 | 3,592 |
//// [tests/cases/compiler/allowSyntheticDefaultImports7.ts] ////
//// [b.d.ts]
export function foo();
export function bar();
//// [a.ts]
import { default as Foo } from "./b";
Foo.bar();
Foo.foo();
//// [a.js]
System.register(["./b"], function (exports_1, context_1) {
"use strict";
var __moduleNam... | vilic/TypeScript | tests/baselines/reference/allowSyntheticDefaultImports7.js | JavaScript | apache-2.0 | 615 |
Clazz.declarePackage ("javajs.swing");
Clazz.load (["javajs.swing.AbstractButton"], "javajs.swing.JCheckBox", null, function () {
c$ = Clazz.declareType (javajs.swing, "JCheckBox", javajs.swing.AbstractButton);
Clazz.makeConstructor (c$,
function () {
Clazz.superConstructor (this, javajs.swing.JCheckBox, ["chkJCB"]);
... | bas-rustenburg/jsmol-local | j2s/javajs/swing/JCheckBox.js | JavaScript | bsd-2-clause | 626 |
/**
* @author Tim Knip / http://www.floorplanner.com/ / tim at floorplanner.com
*/
THREE.ColladaLoader = function () {
var COLLADA = null;
var scene = null;
var daeScene;
var readyCallbackFunc = null;
var sources = {};
var images = {};
var animations = {};
var controllers = {};
var geometries = {};
var... | krris/3d-bin-packing | visual/app/js/loaders/ColladaLoader.js | JavaScript | mit | 81,501 |
var Emitter = require('emitter-component');
var Hammer = require('../module/hammer');
var moment = require('../module/moment');
var util = require('../util');
var DataSet = require('../DataSet');
var DataView = require('../DataView');
var Range = require('./Range');
var Core = require('./Core');
var TimeAxis = require(... | brandune/librenms | lib/vis/lib/timeline/Graph2d.js | JavaScript | gpl-3.0 | 9,773 |
/* The Editor object manages the content of the editable frame. It
* catches events, colours nodes, and indents lines. This file also
* holds some functions for transforming arbitrary DOM structures into
* plain sequences of <span> and <br> elements
*/
var internetExplorer = document.selection && window.ActiveXOb... | Alex-Bond/Core-package | tests/editors/ckfinder/plugins/fileeditor/codemirror/js/editor.js | JavaScript | gpl-3.0 | 53,109 |
/*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 3.2.0
build: 2676
*/
YUI.add('querystring-stringify', function(Y) {
/**
* Provides Y.QueryString.stringify method for converting objects to Query Strings.
*
* @module que... | dhamma-dev/SEA | web/lib/yui/3.2.0/build/querystring/querystring-stringify.js | JavaScript | gpl-3.0 | 2,956 |
/**
* A test for ensuring that the WMS's registered in Known Layers are working as expected
*/
Ext.define('admin.tests.KnownLayerWMS', {
extend : 'admin.tests.SingleAJAXTest',
getTitle : function() {
return 'Known layer WMS availability';
},
getDescription : function() {
v... | AuScope/VEGL-Portal | src/main/webapp/js/admin/tests/KnownLayerWMS.js | JavaScript | gpl-3.0 | 1,735 |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[... | donaldpipowitch/TypeScript | tests/baselines/reference/project/prologueEmit/node/out.js | JavaScript | apache-2.0 | 1,219 |
/**
* Copyright 2012 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 required by app... | wtanneb983/domsnitch | scanner/heuristics/Json.js | JavaScript | apache-2.0 | 5,031 |
/* -*- 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... | darkrsw/safe | tests/parser_tests/js/src/tests/js1_5/Regress/regress-424311.js | JavaScript | bsd-3-clause | 2,471 |
define(['exports'], function (exports) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
var App = expor... | stl-florida/casestudy-riskmap | node_modules/aurelia-binding/doc/example-dist/binding-binding-behaviors/update-trigger/app.js | JavaScript | mit | 888 |
'use strict';
module.exports = function renderMenu(props) {
if (!props.menu) {
return;
}
return props.menu({
className: 'z-header-menu-column',
gridColumns: props.columns
});
}; | pombredanne/react-datagrid | lib/render/renderMenu.js | JavaScript | mit | 219 |
( function ( $ ) {
'use strict';
var asInScript2 = {
id: 'as-inscript2',
name: 'ইনস্ক্ৰিপ্ট ২',
description: 'Enhanced InScript keyboard for Assamese language',
date: '2013-02-09',
URL: 'http://github.com/wikimedia/jquery.ime',
author: 'Parag Nemade',
license: 'GPLv3',
version: '1.0',
patterns: [
... | BluePigeons/alltheunicode | libs/rules/as/as-inscript2.js | JavaScript | mit | 2,575 |
var config = require('../config')
var gulp = require('gulp')
var gulpSequence = require('gulp-sequence')
var getEnabledTasks = require('../lib/getEnabledTasks')
var productionTask = function(cb) {
var tasks = getEnabledTasks('production')
gulpSequence('clean', tasks.assetTasks, tasks.codeTasks, 'rev'... | gautamgb/GBWebApp | gulpfile.js/tasks/production.js | JavaScript | mit | 411 |
/**
* @overview If this code is included on a page with wbads it will add the criteo data as global
* targeting params to all ad slots rendered on the page.
*
* Set the globals window.CRTG_* prior to including this script
* so the criteo tags are properly added.
*
* This script must be included AFTER wbads is in... | wb-crowdfusion/wb-ads | view/shared/assets/js/wb/ads/latest/criteo.js | JavaScript | apache-2.0 | 3,021 |
/* global SnippetedMessages */
Template.snippetedMessages.helpers({
hasMessages() {
return SnippetedMessages.find({ snippeted:true, rid: this.rid }, { sort: { ts: -1 } }).count() > 0;
},
messages() {
return SnippetedMessages.find({ snippeted: true, rid: this.rid }, { sort: { ts: -1 } });
},
message() {
retur... | tntobias/Rocket.Chat | packages/rocketchat-message-snippet/client/tabBar/views/snippetedMessages.js | JavaScript | mit | 878 |
'use strict';
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
var hasSymbolSham = require('./shams');
module.exports = function hasNativeSymbols() {
if (typeof origSymbol !== 'function') { return false; }
if (typeof Symbol !== 'function') { return false; }
if (typeof origSymbol('foo') !== 'symbol') { ret... | matryer/bitbar | xbarapp.com/node_modules/has-symbols/index.js | JavaScript | mit | 420 |
function runTest(config,qualifier) {
var testname = testnamePrefix( qualifier, config.keysystem ) + ', basic events';
var configuration = getSimpleConfigurationForContent( config.content );
if ( config.initDataType && config.initData ) configuration.initDataTypes = [ config.initDataType ]
async_test... | bbansalWolfPack/servo | tests/wpt/web-platform-tests/encrypted-media/scripts/events.js | JavaScript | mpl-2.0 | 2,344 |
module.exports = {
initialize: function (success, fail, args, env) {
GeofenceComponent.GeofenceTrigger.register();
success && success();
},
addOrUpdate: function (success, fail, args, env) {
args.forEach(function (geo) {
var geoN = new GeofenceComponent.GeoNotification(... | johnrobertcobbold/cordova-plugin-geofence | src/windows/GeofenceProxy.js | JavaScript | apache-2.0 | 1,337 |
// # Update Checking Service
//
// Makes a request to Ghost.org to check if there is a new version of Ghost available.
// The service is provided in return for users opting in to anonymous usage data collection.
//
// Blog owners can opt-out of update checks by setting `privacy: { useUpdateCheck: false }` in their conf... | moehub/openshift-ghost-quickstart | node_modules/ghost/core/server/update-check.js | JavaScript | mit | 8,968 |
/**
* @author mrdoob / http://mrdoob.com/
*/
var EventDispatcher=function(){};Object.assign(EventDispatcher.prototype,{addEventListener:function(i,t){void 0===this._listeners&&(this._listeners={});var e=this._listeners;void 0===e[i]&&(e[i]=[]),-1===e[i].indexOf(t)&&e[i].push(t)},hasEventListener:function(i,t){if(voi... | cvazquezlos/LOGANALYZER | testloganalyzer-gui/documentation/js/libs/EventDispatcher.js | JavaScript | apache-2.0 | 767 |
/**
* lodash 3.0.3 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Rep... | mason-smith/netboox | server/node_modules/lodash.isboolean/index.js | JavaScript | mit | 1,819 |
/*
* Foundation Responsive Library
* http://foundation.zurb.com
* Copyright 2015, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function ($, window, document, undefined) {
'use strict';
var header_helpers = function (class_array) {
var head = $('head')... | flavour/eden | static/scripts/foundation/foundation/foundation.js | JavaScript | mit | 21,868 |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'newpage', 'da', {
toolbar: 'Ny side'
} );
| aodarc/flowers_room | styleguides/static/ckeditor/ckeditor/plugins/newpage/lang/da.js | JavaScript | mit | 216 |
export * from './calendar';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy9jYWxlbmRhci9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsWUFBWSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZX... | cdnjs/cdnjs | ajax/libs/primeng/12.2.3/esm2015/calendar/public_api.js | JavaScript | mit | 358 |
describe("setPathValues", function() {
require("./primitive.spec");
require("./atom.spec");
require("./expired.spec");
require("./branch.spec");
}); | darioajr/falcor | test/set/pathValues/index.js | JavaScript | apache-2.0 | 164 |
exports.BattleAbilities = {
"cutecharm": {
inherit: true,
onAfterDamage: function(damage, target, source, move) {
if (move && move.isContact) {
if (this.random(3) < 1) {
source.addVolatile('attract', target);
}
}
}
},
"effectspore": {
inherit: true,
onAfterDamage: function(damage, target... | damokles/Pokemon-Showdown-master-1 | mods/gen3/abilities.js | JavaScript | mit | 4,550 |
define([
"dojo/_base/declare", // declare
"dojo/Deferred",
"dojo/_base/kernel", // kernel.deprecated
"dojo/_base/lang", // lang.mixin
"dojo/store/util/QueryResults",
"./_AutoCompleterMixin",
"./_ComboBoxMenu",
"../_HasDropDown",
"dojo/text!./templates/DropDownBox.html"
], function(declare, Deferred, kernel, la... | algogr/Site | web/js/dojo/dijit/form/ComboBoxMixin.js | JavaScript | mit | 4,578 |
// Copyright 2009 the Sputnik authors. All rights reserved.
/**
* Arguments : ()
*
* @path ch11/11.2/11.2.4/S11.2.4_A1.1_T1.js
* @description Function is declared with no FormalParameterList
*/
function f_arg() {
return arguments;
}
//CHECK#1
if (f_arg().length !== 0) {
$ERROR('#1: function f_arg() {return ... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch11/11.2/11.2.4/S11.2.4_A1.1_T1.js | JavaScript | bsd-3-clause | 537 |
/**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... | gregRV/rn-property-finder | Examples/UIExplorer/UIExplorerList.js | JavaScript | bsd-3-clause | 6,288 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.4/15.4.4/15.4.4.21/15.4.4.21-9-c-i-26.js
* @description Array.prototype.reduce - This object is the Arguments object which implements its own property get method (number of arguments equals number of parameters)
*/
function testc... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch15/15.4/15.4.4/15.4.4.21/15.4.4.21-9-c-i-26.js | JavaScript | bsd-3-clause | 756 |
// Copyright 2009 the Sputnik authors. All rights reserved.
/**
* DecimalLiteral :: DecimalIntegerLiteral. DecimalDigigts ExponentPart
*
* @path ch07/7.8/7.8.3/S7.8.3_A3.4_T4.js
* @description ExponentPart :: E -DecimalDigits
*/
//CHECK#0
if (0.0E-1 !== 0) {
$ERROR('#0: 0.0E-1 === 0');
}
//CHECK#1
if (1.1E-1 ... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch07/7.8/7.8.3/S7.8.3_A3.4_T4.js | JavaScript | bsd-3-clause | 919 |
var arrayAggregator = require('./_arrayAggregator'),
baseAggregator = require('./_baseAggregator'),
baseIteratee = require('./_baseIteratee'),
isArray = require('./isArray');
/**
* Creates a function like `_.groupBy`.
*
* @private
* @param {Function} setter The function to set accumulator valu... | Moccine/global-service-plus.com | web/libariries/bootstrap/node_modules/zip-stream/node_modules/lodash/_createAggregator.js | JavaScript | mit | 812 |
angular.module('listDemo1', ['ngMaterial'])
.config(function($mdIconProvider) {
$mdIconProvider
.iconSet('communication', 'img/icons/sets/communication-icons.svg', 24);
})
.controller('AppCtrl', function($scope) {
var imagePath = 'img/60.jpeg';
$scope.phones = [
{
type: 'Home',
num... | oostmeijer/material | src/components/list/demoBasicUsage/script.js | JavaScript | mit | 1,906 |
import React from 'react'
import { Router, Route, hashHistory } from 'react-router'
import Home from './components/ui/Home'
import About from './components/ui/About'
import MemberList from './components/ui/MemberList'
import { Left, Right, Whoops404 } from './components'
const routes = (
<Router history={hashHis... | Raziyehbazargan/React.js_Essential_Training | Ch07/07_01/start/src/routes.js | JavaScript | mit | 624 |
/**
* FTScroller: touch and mouse-based scrolling for DOM elements larger than their containers.
*
* While this is a rewrite, it is heavily inspired by two projects:
* 1) Uxebu TouchScroll (https://github.com/davidaurelio/TouchScroll), BSD licensed:
* Copyright (c) 2010 uxebu Consulting Ltd. & Co. KG
* Copy... | froala/cdnjs | ajax/libs/ftscroller/0.2.0/ftscroller.js | JavaScript | mit | 91,839 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getTableBodyUtilityClass = getTableBodyUtilityClass;
exports.default = void 0;
var _unstyled = require("@material-ui/unstyled");
function getTableBodyUtilityClass(slot) {
return (0, _unstyled.generateUtilityClass)('MuiTableBody'... | cdnjs/cdnjs | ajax/libs/material-ui/5.0.0-beta.5/node/TableBody/tableBodyClasses.js | JavaScript | mit | 482 |
/* */
var $def = require("./$.def"),
$entries = require("./$.object-to-array")(true);
$def($def.S, 'Object', {entries: function entries(it) {
return $entries(it);
}});
| jasminZ/sequenceserver | public/vendor/npm/core-js@1.1.2/modules/es7.object.entries.js | JavaScript | agpl-3.0 | 179 |
// META: script=/service-workers/service-worker/resources/test-helpers.sub.js
// META: script=resources/utils.js
'use strict';
// "If parsedURL includes credentials, then throw a TypeError."
// https://fetch.spec.whatwg.org/#dom-request
// (Added by https://github.com/whatwg/fetch/issues/26).
// "A URL includes creden... | anthgur/servo | tests/wpt/web-platform-tests/background-fetch/credentials-in-url.https.window.js | JavaScript | mpl-2.0 | 1,273 |
var assert = require('assert');
var R = require('..');
describe('mapObjIndexed', function() {
var times2 = function(x) {return x * 2;};
var addIndexed = function(x, key) {return x + key;};
var squareVowels = function(x, key) {
var vowels = ['a', 'e', 'i', 'o', 'u'];
return R.contains(key, vowels) ? x *... | syves/ramda | test/mapObjIndexed.js | JavaScript | mit | 1,258 |
var convert = require('./convert'),
func = convert('wrapperLodash', require('../wrapperLodash'), require('./_falseOptions'));
func.placeholder = require('./placeholder');
module.exports = func;
| Moccine/global-service-plus.com | web/libariries/bootstrap/node_modules/zip-stream/node_modules/lodash/fp/wrapperLodash.js | JavaScript | mit | 204 |
/*
YUI 3.5.1 (build 22)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('sortable', function(Y) {
/**
* The class allows you to create a Drag & Drop reordered list.
* @module sortable
*/
/**
* The class allows y... | sergiomt/zesped | src/webapp/js/yui/sortable/sortable-debug.js | JavaScript | agpl-3.0 | 17,368 |
define(
({
nomatchMessage: "Lozinke se ne podudaraju.",
badPasswordMessage: "Neispravna lozinka."
})
);
| avz-cmf/zaboy-middleware | www/js/dojox/form/nls/hr/PasswordValidator.js | JavaScript | gpl-3.0 | 113 |
define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var XmlHighlightRules = function(normal... | ddico/odoo | addons/web/static/lib/ace/mode-xml.js | JavaScript | agpl-3.0 | 23,724 |
loadjs = (function () {
/**
* Global dependencies.
* @global {Object} document - DOM
*/
var devnull = function() {},
bundleIdCache = {},
bundleResultCache = {},
bundleCallbackQueue = {};
/**
* Subscribe to bundle load event.
* @param {string[]} bundleIds - Bundle ids
* @param {Function} callbackFn ... | jonobr1/cdnjs | ajax/libs/loadjs/3.4.0/loadjs.js | JavaScript | mit | 6,072 |
(function() {
"use strict";
window.GOVUK = window.GOVUK || {};
// For usage and initialisation see:
// https://github.com/alphagov/govuk_frontend_toolkit/blob/master/docs/analytics.md#create-an-analytics-tracker
var Tracker = function(config) {
this.trackers = [];
if (typeof config.universalId != 'u... | matt-hammond/baymax | src/baymax/wwwroot/public/javascripts/govuk/analytics/tracker.js | JavaScript | mit | 2,322 |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReduxLittleRouter"]... | maruilian11/cdnjs | ajax/libs/redux-little-router/3.0.0/redux-little-router.js | JavaScript | mit | 156,293 |
/**
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
Object.append(Browser.Features, {
inputemail: (function() {
var i = document.createElement("input");
i.setAttribute("type", "email");
return i.type !== ... | SuperFamousGuy/AdLib | tmp/install_4f31d69ae5bd9/media/system/js/validate-uncompressed.js | JavaScript | gpl-2.0 | 4,702 |
CKEDITOR.plugins.setLang("iframe","es",{border:"Mostrar borde del marco",noUrl:"Por favor, escriba la dirección del iframe",scrolling:"Activar barras de desplazamiento",title:"Propiedades de iframe",toolbar:"IFrame",tabindex:"Remove from tabindex"}); | stweil/TYPO3.CMS | typo3/sysext/rte_ckeditor/Resources/Public/JavaScript/Contrib/plugins/iframe/lang/es.js | JavaScript | gpl-2.0 | 254 |
"use strict";
/**
* @license
* Copyright 2017 Palantir Technologies, 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
*
* Unle... | rootulp/exercism | typescript/space-age/node_modules/tslint/lib/rules/noUnnecessaryQualifierRule.js | JavaScript | mit | 4,873 |
'use strict';
var SAX = require('sax'),
JSAPI = require('./jsAPI');
var config = {
strict: true,
trim: false,
normalize: true,
lowercase: true,
xmlns: true,
position: false
};
/**
* Convert SVG (XML) string to SVG-as-JS object.
*
* @param {String} data input data
* @param {Function} c... | shanginn/newsaity74.ru | templates/blank_j3/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-svgo/node_modules/svgo/lib/svgo/svg2js.js | JavaScript | gpl-2.0 | 3,231 |
/* Copyright 2014 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | sajochiu/cdnjs | ajax/libs/pdf.js/1.4.99/pdf_viewer.js | JavaScript | mit | 101,003 |
YUI.add('anim-base', function(Y) {
/**
* The Animation Utility provides an API for creating advanced transitions.
* @module anim
*/
/**
* Provides the base Anim class, for animating numeric properties.
*
* @module anim
* @submodule anim-base
*/
/**
* A class for constructing animation instances.
* @cla... | Showfom/cdnjs | ajax/libs/yui/3.1.0pr2/anim/anim-debug.js | JavaScript | mit | 34,102 |
(function(h,t,z,q){function g(b,a){try{return t.hasOwnProperty?b.hasOwnProperty(a.toString()):Object.prototype.hasOwnProperty.call(b,a.toString())}catch(d){console.dir(d)}}function p(b,a){var d=[],c=/^[+-]?\d+(\.\d+)?$/,f={lat:"",lng:""};if("string"===typeof b||h.isArray(b))if(d="string"===typeof b?b.replace(/\s+/,"").... | DKMonster/Shoper | Lesson39/assets/js/plugin/jquery.tinyMap.min.js | JavaScript | mit | 16,478 |
/*
* Copyright (c) 2013 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 ri... | mat-mcloughlin/brackets | src/utils/NodeConnection.js | JavaScript | mit | 21,552 |
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("anim-xy",function(e,t){var n=Number;e.Anim.behaviors.xy={set:function(e,t,r,i,s,o,u){e._node.setXY([u(s,n(r[0]),n(i[0])-n(r[0]),o),u(s,n(r[1]),n(i[1])-n(r[1]),o)])},get:fu... | pulipulichen/kals-moodle | moodle/lib/yuilib/3.7.3/build/anim-xy/anim-xy-min.js | JavaScript | bsd-3-clause | 405 |
/*
* jQuery Autocomplete plugin 1.1
*
* Copyright (c) 2009 Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Revision: $Id: jquery.autocomplete.js 15 2009-08-22 10:30:27Z joern.zaefferer $
*/
;(... | zorna/zorna | zorna/media/javascript/jquery.autocomplete.js | JavaScript | bsd-3-clause | 21,271 |
module.exports = function(grunt) {
/**
* Initialize development environment for Testacular
*
* - register git hooks (commit-msg)
*/
grunt.registerTask('init-dev-env', 'Initialize dev environment.', function() {
var fs = require('fs');
var done = this.async();
fs.symlink('../../tasks/lib/va... | risingspiral/testacular | tasks/init-dev-env.js | JavaScript | mit | 500 |
var test = require("tap").test
var npm = require.resolve("../../bin/npm-cli.js")
var spawn = require("child_process").spawn
var node = process.execPath
// ignore-scripts/package.json has scripts that always exit with non-zero error
// codes. The "install" script is omitted so that npm tries to run node-gyp,
// which ... | teeple/pns_server | work/install/node-v0.10.25/deps/npm/test/tap/ignore-scripts.js | JavaScript | gpl-2.0 | 1,896 |
tinyMCE.addI18n('ta.advhr_dlg',{size:"\u0b89\u0baf\u0bb0\u0bae\u0bcd",noshade:"\u0ba8\u0bbf\u0bb4\u0bb2\u0bcd \u0b87\u0bb2\u0bcd\u0bb2\u0bc8",width:"\u0b85\u0b95\u0bb2\u0bae\u0bcd",normal:"Normal",widthunits:"Units"}); | ciudadanointeligente/votainteligente-portal-electoral | votai_general_theme/static/js/tiny_mce/plugins/advhr/langs/ta_dlg.js | JavaScript | gpl-3.0 | 218 |
// @flow
let tests = [
// setting a property
function(x: $Tainted<string>, y: string) {
let obj: Object = {};
obj.foo = x; // error, taint ~> any
obj[y] = x; // error, taint ~> any
},
// getting a property
function() {
let obj: Object = { foo: 'foo' };
(obj.foo: $Tainted<string>); // ok
... | MichaelDeBoey/flow | tests/taint/any_object.js | JavaScript | mit | 514 |
/**
* @author TristanVALCKE / https://github.com/Itee
* @author moraxy / https://github.com/moraxy
*/
/* global QUnit */
import { runStdLightTests } from '../../qunit-utils';
import { DirectionalLight } from '../../../../src/lights/DirectionalLight';
export default QUnit.module( 'Lights', () => {
QUnit.module( '... | SpinVR/three.js | test/unit/src/lights/DirectionalLight.tests.js | JavaScript | mit | 1,276 |
/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* permission... | Goucher/shopware | themes/Backend/ExtJs/backend/base/model/tax.js | JavaScript | agpl-3.0 | 1,867 |
/* Copyright (c) 2011 by The Authors.
* Published under the LGPL 2.1 license.
* See /license-notice.txt for the full text of the license notice.
* See /license.txt for the full text of the license.
*/
describe('jsts.algorithm.InteriorPointArea', function() {
var ipa;
it('can be constructed', function() {
... | mileswwatkins/ABiteBetweenUs | utilities/scripts/jsts/test/spec/jsts/algorithm/InteriorPointArea.js | JavaScript | apache-2.0 | 3,213 |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("language","es",{button:"Fijar lenguaje",remove:"Quitar lenguaje"}); | Laravel-Backpack/crud | src/public/packages/ckeditor/plugins/language/lang/es.js | JavaScript | mit | 261 |
// Copyright 2008 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | elsigh/browserscope | third_party/closure/goog/ui/flatbuttonrenderer.js | JavaScript | apache-2.0 | 4,935 |
function load(/*String*/fileName){
//summary: opens the file at fileName and evals the contents as JavaScript.
//Read the file
var fileContents = readFile(fileName);
//Eval the contents.
var Context = Packages.org.mozilla.javascript.Context;
var context = Context.enter();
try{
return context.evaluateString(... | ozoneplatform/owf-framework | web-app/js-lib/dojo-release-1.5.0-src/util/buildscripts/webbuild/server/js/build.js | JavaScript | apache-2.0 | 6,787 |
/* -*- 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... | igor-sfdc/qt-wk | tests/auto/qscriptjstestsuite/tests/ecma_3/RegExp/regress-100199.js | JavaScript | lgpl-2.1 | 7,363 |
//=require rich/base | Nimdis/rich | test/dummy/app/assets/javascripts/rich.js | JavaScript | mit | 20 |
var Notify = require('../');
var notifier = new Notify();
notifier.notify({
"title": "Phil Coulson",
"subtitle": "Agent of S.H.I.E.L.D.",
"message": "If I come out, will you shoot me? 'Cause then I won't come out.",
"sound": "Funk", // case sensitive
"appIcon": __dirname + "/coulson.jpg",
"contentImage": _... | digisavvy/pureallex | wp-content/themes/pureallax/node_modules/gulp-notify/node_modules/node-notifier/example/advanced.js | JavaScript | gpl-2.0 | 457 |
var numLimitInput = element(by.model('numLimit'));
var letterLimitInput = element(by.model('letterLimit'));
var longNumberLimitInput = element(by.model('longNumberLimit'));
var limitedNumbers = element(by.binding('numbers | limitTo:numLimit'));
var limitedLetters = element(by.binding('letters | limitTo:letter... | viral810/ngSimpleCMS | web/bundles/sunraangular/js/angular/angular-1.3.3/docs/examples/example-example102/protractor.js | JavaScript | mit | 2,030 |
/**
* @license AngularJS v1.6.10
* (c) 2010-2018 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular) {'use strict';
var $resourceMinErr = angular.$$minErr('$resource');
// Helper functions and regex to lookup a dotted path on an object
// stopping at undefined/null. The path must be co... | brat000012001/keycloak | themes/src/main/resources/theme/keycloak/common/resources/node_modules/angular-resource/angular-resource.js | JavaScript | apache-2.0 | 35,575 |
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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 3 of the License, or
// (at your option) any later version.
//
// Moodle is dis... | tesler/cspt-moodle | moodle/admin/tool/lp/amd/src/competency_outcomes.js | JavaScript | mit | 2,874 |
/*
* Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | JetBrains/jdk8u_nashorn | test/script/basic/NASHORN-105.js | JavaScript | gpl-2.0 | 1,686 |
/****************************************************************************
Copyright (c) 2008-2010 Ricardo Quesada
Copyright (c) 2011-2012 cocos2d-x.org
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of t... | darkoverlordofdata/demo-cocos2d-tsc | web/frameworks/cocos2d-html5/cocos2d/core/support/CCPointExtension.js | JavaScript | mit | 13,129 |
/*! leaflet-routing-machine - v3.2.1 - 2016-10-11
* Copyright (c) 2013-2016 Per Liedman
* Distributed under the ISC license */
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefi... | emmy41124/cdnjs | ajax/libs/leaflet-routing-machine/3.2.1/leaflet-routing-machine.js | JavaScript | mit | 82,594 |