code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
/**
* Copyright (c) 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
*/
'use strict';
const React = require('react');
const {SimpleAlertExampleBlock} = require('./AlertExample')... | exponentjs/react-native | RNTester/js/examples/Alert/AlertIOSExample.js | JavaScript | bsd-3-clause | 4,934 |
var log = require('./log');
/**
* If no callback is passed then this is a one & done
*/
function exit(err) {
if (err) {
log.error(err);
process.exit(1);
} else {
log.info('completed');
process.exit(0);
}
}
/**
* Expose `run`
*/
module.exports.run = function(program, done) {
done = done |... | amigocloud/modified-tripplanner | lib/worker.js | JavaScript | bsd-3-clause | 595 |
/*jshint node:true */
/*global describe:false, it:false */
"use strict";
var Orchestrator = require('../');
var should = require('should');
require('mocha');
describe('orchestrator', function() {
describe('_resetSpecificTasks()', function() {
it('should set done = false on specified done tasks', function(done) {
... | dminkovsky/orchestrator | test/resetSpecificTasks.js | JavaScript | mit | 3,047 |
"use strict";
require("requirish")._(module);
var factories = require("lib/misc/factories");
// OPC Unified Architecture, Part 4 page 106
var ApplicationInstanceCertificate_Schema = {
// ApplicationInstanceCertificate with signature created by a Certificate Authority
name: "ApplicationInstanceCertificate",
... | rodp82/node-opcua | schemas/ApplicationInstanceCertificate_schema.js | JavaScript | mit | 2,662 |
'use strict';
export default {
browserPort: 3000,
UIPort: 3001,
testPort: 3002,
sourceDir: './app/',
buildDir: './build/',
styles: {
src: 'app/styles/**/*.scss',
dest: 'build/css',
prodSourcemap: false,
sassIncludePaths: []
},
scripts: {
src: 'app/js/**/*.js',
dest: 'build/j... | edund/frontend | gulp/config.js | JavaScript | mit | 1,179 |
import ejs from 'ejs'
import fs from 'fs'
import mkdirp from 'mkdirp'
/**
* @class
*/
export default class BaseCommand {
/**
* @param {String} source
* @param {String} destination
*/
copyFile(source, destination) {
fs.createReadStream(source).pipe(fs.createWriteStream(destination));
this.logEntr... | nihitok/fluct | src/base_command.js | JavaScript | mit | 1,288 |
'use strict';
var fs = require('fs');
var visitors = require('react-tools/vendor/fbtransform/visitors');
var jstransform = require('jstransform');
var visitorList = visitors.getAllVisitors();
var getJsName = function(filename) {
var dot = filename.lastIndexOf(".");
var baseName = filename.substring(0, dot);
... | vasanthk/react-components | prepublish.js | JavaScript | mit | 810 |
DataExplorer.TableHelpers = (function () {
var tables,
infoTemplate = document.create('i', {
className: 'icon-info button table-data',
title: 'show the contents of this table'
}),
closeTemplate = document.create('i', {
className: 'icon-remove butto... | jango2015/StackExchange.DataExplorer | App/StackExchange.DataExplorer/Scripts/query.tablehelpers.js | JavaScript | mit | 3,681 |
import Ember from 'ember';
const {
Route
} = Ember;
export default Route.extend({
breadCrumb: {
title: 'I am Bar Index'
}
});
| abhilashlr/ember-crumbly | tests/dummy/app/foo/bar/index/route.js | JavaScript | mit | 138 |
version https://git-lfs.github.com/spec/v1
oid sha256:38067ac6e74cbe55f1203dde50a9f85f7f90b6bfe09e94ea11ccf8a3d31fe6a2
size 713
| yogeshsaroya/new-cdnjs | ajax/libs/jquery-noty/2.2.5/layouts/bottomLeft.js | JavaScript | mit | 128 |
/**
* The Studio: Artist of the Day plugin
* This is a daily activity where users nominate the featured artist for the day, which is selected randomly once voting has ended.
* Only works in a room with the id 'thestudio'
*/
'use strict';
function toArrayOfArrays(map) {
let ret = [];
map.forEach(function (value,... | Syurra/Pokemon-Showdown | chat-plugins/thestudio.js | JavaScript | mit | 14,907 |
version https://git-lfs.github.com/spec/v1
oid sha256:63544f1ce0b192b27c8946c878c716ba60158e9fb1adf9375a57279a2fc15a1a
size 2271
| yogeshsaroya/new-cdnjs | ajax/libs/highstock/2.0.3/modules/funnel.js | JavaScript | mit | 129 |
import Raphael from 'raphael/raphael';
Raphael.prototype.commitTooltip = function commitTooltip(x, y, commit) {
const boxWidth = 300;
const icon = this.image(gon.relative_url_root + commit.author.icon, x, y, 20, 20);
const nameText = this.text(x + 25, y + 10, commit.author.name);
const idText = this.text(x, y ... | stoplightio/gitlabhq | app/assets/javascripts/network/raphael.js | JavaScript | mit | 1,975 |
'use strict';
exports.__esModule = true;
exports.default = function (hexColor, lightness) {
var hex = String(hexColor).replace(/[^0-9a-f]/gi, '');
if (hex.length < 6) {
hex = hex.replace(/(.)/g, '$1$1');
}
var lum = lightness || 0;
var rgb = '#';
var c = undefined;
for (var i = 0; i < 3; ++i) {
... | TarikHuber/react-redux-material-starter-kit | node_modules/redux-devtools-log-monitor/lib/brighten.js | JavaScript | mit | 495 |
module.exports={title:"RubyGems",slug:"rubygems",get svg(){return'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>RubyGems</title><path d="'+this.path+'"/></svg>'},path:"M7.81 7.9l-2.97 2.95 7.19 7.18 2.96-2.95 4.22-4.23-2.96-2.96v-.01H7.8zM12 0L1.53 6v12L12 24l10.47-6V6L12 0zm8.47 16.85L1... | cdnjs/cdnjs | ajax/libs/simple-icons/5.24.0/rubygems.min.js | JavaScript | mit | 458 |
/**
* @Project NUKEVIET 4.x
* @Author Mr.Thang (kid.apt@gmail.com)
* @License GNU/GPL version 2 or any later version
* @Createdate 16-03-2015 12:55
*/
CKEDITOR.plugins.setLang('tbvdownload', 'vi', {
toolbar : 'Dán HTMl để tải ảnh về máy chủ',
tooltip : 'Dán bài viết để tải hình ảnh về máy chủ',
conten... | nhatnhatnet/nukecms | assets/editors/ckeditor/plugins/tbvdownload/lang/vi.js | JavaScript | gpl-2.0 | 791 |
/**
*
* -------------------------------------------
* Script for the interactive elements shortcodes
* -------------------------------------------
*
**/
jQuery(window).load(function () {
jQuery('.gk-toggle').each(function (i, el) {
jQuery(el).children('h3').click(function (e) {
v... | olek1984/dremboard | wp-content/themes/old-Msocial/js/shortcodes.elements.js | JavaScript | gpl-2.0 | 652 |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'indent', 'eo', {
indent: 'Pligrandigi Krommarĝenon',
outdent: 'Malpligrandigi Krommarĝenon'
} );
| SeeyaSia/www | web/libraries/ckeditor/plugins/indent/lang/eo.js | JavaScript | gpl-2.0 | 271 |
module.exports = function(moduleName) {
try {
return module.parent.require(moduleName);
} catch (e) {
// This could mean that we are in a browser context.
// Add another try catch like it used to be, for backwards compability
// and browserify reasons.
try {
return require(moduleNa... | kailash-cd/CustomAdCreator | node_modules/grunt-bower-installer/node_modules/bower/node_modules/request/lib/optional.js | JavaScript | gpl-3.0 | 360 |
/**
* The current (or pending) State Parameters
*
* An injectable global **Service Object** which holds the state parameters for the latest **SUCCESSFUL** transition.
*
* The values are not updated until *after* a `Transition` successfully completes.
*
* **Also:** an injectable **Per-Transition Object** object w... | statusengine/interface | public/node_modules/angular-ui-router/lib-esm/injectables.js | JavaScript | gpl-3.0 | 10,912 |
/*!
* Copyright 2002 - 2017 Webdetails, a Hitachi Vantara company. All rights reserved.
*
* This software was developed by Webdetails and is provided under the terms
* of the Mozilla Public License, Version 2.0, or any later version. You may not use
* this file except in compliance with the license. If you need a ... | pamval/cdf | core-js/src/main/javascript/cdf/addIns/clippedText/templateType/clippedText.js | JavaScript | mpl-2.0 | 1,104 |
/*
* This program is part of the OpenLMIS logistics management information system platform software.
* Copyright © 2013 VillageReach
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, eith... | OpenLMIS/open-lmis | modules/openlmis-web/src/main/webapp/public/js/shared/controller/manage-menu-controller.js | JavaScript | agpl-3.0 | 971 |
/**
* @file 报表的公共功能 - model
* @author 赵晓强(longze_xq@163.com)
* @date 2014-10-10
*/
define(['url'], function (Url) {
return Backbone.Model.extend({
/**
* 构造函数
*
* @constructor
*/
initialize: function () {},
/**
* 发布报表
... | qqming113/bi-platform | designer/src/main/resources/public/silkroad/src/report/report-model.js | JavaScript | apache-2.0 | 1,391 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var dateFormats = {
ful... | BigBoss424/portfolio | v8/development/node_modules/date-fns/locale/pt/_lib/formatLong/index.js | JavaScript | apache-2.0 | 1,080 |
/**
* Copyright 2013, 2015 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | olopez32/node-red | editor/js/ui/palette.js | JavaScript | apache-2.0 | 14,023 |
/*
* Copyright (c) 2012-2015 S-Core Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | wcho/webida-client | common/src/webida/widgets/views/viewmanager.js | JavaScript | apache-2.0 | 5,903 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* Let reservedURIComponentSet be the empty string
*
* @path ch15/15.1/15.1.3/15.1.3.2/S15.1.3.2_A3_T1.js
* @description uriReserved and "#" not in reservedURIComponentSet. HexDigi... | hippich/typescript | tests/Fidelity/test262/suite/ch15/15.1/15.1.3/15.1.3.2/S15.1.3.2_A3_T1.js | JavaScript | apache-2.0 | 1,649 |
/**
* Copyright (c) 2013-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.
*/
// This mock only provides short-circuited methods of applyWithGuard and guard.
// A lot of modules rely on these two functions. This mo... | hoastoolshop/react-native | Libraries/Core/__mocks__/ErrorUtils.js | JavaScript | bsd-3-clause | 856 |
/* vim:ts=4:sts=4:sw=4:
* ***** 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://... | pizzapanther/Neutron-IDE | neutron/static/ide/js/ace/lib/ace/mode/behaviour/xml.js | JavaScript | bsd-3-clause | 3,715 |
'use strict';
var test = require('tape'); //jshint ignore:line
var Github = require("../");
var test_user = require('./user.json');
test("Repo API", function(t) {
var timeout = setTimeout(function () { t.fail(); }, 100000);
var github = new Github({
username: test_user.USERNAME,
password: test_use... | aendrew/github | test/test.repo.js | JavaScript | bsd-3-clause | 4,043 |
var shell = require('..');
var assert = require('assert'),
path = require('path'),
fs = require('fs');
// Node shims for < v0.7
fs.existsSync = fs.existsSync || path.existsSync;
shell.silent();
function numLines(str) {
return typeof str === 'string' ? str.match(/\n/g).length : 0;
}
// save current dir
va... | xk/shelljs | test/cat.js | JavaScript | bsd-3-clause | 1,255 |
function accepts(language) {
return require('../')({
headers: {
'accept-language': language || ''
}
})
}
describe('accepts.languages()', function(){
describe('with no arguments', function(){
describe('when Accept-Language is populated', function(){
it('should return accepted types', func... | nystromj/global-renaissance | website/node_modules/express/node_modules/accepts/test/language.js | JavaScript | mit | 1,690 |
/*
mustache.js — Logic-less templates in JavaScript
See http://mustache.github.com/ for more info.
*/
var Mustache = function() {
var Renderer = function() {};
Renderer.prototype = {
otag: "{{",
ctag: "}}",
pragmas: {},
buffer: [],
pragmas_implemented: {
"IMPLICIT-ITERATOR": true
... | airizar/dam-2015 | jQuery/libs/mustache.js | JavaScript | mit | 7,970 |
import {localeModule, test} from '../qunit';
import moment from '../../moment';
localeModule('de');
test('parse', function (assert) {
var tests = 'Januar Jan._Februar Feb._März März_April Apr._Mai Mai_Juni Juni_Juli Juli_August Aug._September Sep._Oktober Okt._November Nov._Dezember Dez.'.split('_'), i;
functi... | dilawar/ncbs-hippo | vendor/moment/moment/src/test/locale/de.js | JavaScript | mit | 12,572 |
/**
* @param {string} value
* @returns {RegExp}
* */
/**
* @param {RegExp | string } re
* @returns {string}
*/
function source(re) {
if (!re) return null;
if (typeof re === "string") return re;
return re.source;
}
/**
* @param {...(RegExp | string) } args
* @returns {string}
*/
function concat(...args... | ealbertos/dotfiles | vscode.symlink/extensions/bierner.markdown-preview-github-styles-0.2.0/node_modules/highlight.js/lib/languages/accesslog.js | JavaScript | mit | 2,592 |
/* Inspire Tree
* @version 6.0.0-alpha.1
* https://github.com/helion3/inspire-tree
* @copyright Copyright 2015 Helion3, and other contributors
* @license Licensed under MIT
* see https://github.com/helion3/inspire-tree/blob/master/LICENSE
*/
(function (global, factory) {
typeof exports === 'object' && t... | sashberd/cdnjs | ajax/libs/inspire-tree/6.0.0-alpha.1/inspire-tree.js | JavaScript | mit | 198,428 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S11.8.6_A2.1_T1;
* @section: 11.8.6;
* @assertion: Operator "instanceof" uses GetValue;
* @description: Either Expression is not Reference or GetBase is not null;
*/
//C... | seraum/nectarjs | tests/ES3/Conformance/11_Expressions/11.8_Relational_Operators/11.8.6_The_instanceof_operator/S11.8.6_A2.1_T1.js | JavaScript | mit | 881 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: "CharacterEscapeSequnce :: SingleEscapeSequence"
es5id: 7.8.4_A4.1_T2
description: "SingleEscapeSequence :: one of ' \" \\"
---*/
//CHECK#1
if (String.fromCharCode(0x0027) !=... | PiotrDabkowski/Js2Py | tests/test_cases/language/literals/string/S7.8.4_A4.1_T2.js | JavaScript | mit | 751 |
/* global redux_change */
(function( $ ) {
"use strict";
$.reduxMultiText = $.reduxMultiText || {};
$( document ).ready(
function() {
$.reduxMultiText.init();
}
);
$.reduxMultiText.init = function() {
$( '.redux-multi-text-remove' ).live(
'click', ... | dennisWEB/test2 | wp-content/themes/studio-x/admin/redux/admin/redux-framework/ReduxCore/inc/fields/multi_text/field_multi_text.js | JavaScript | gpl-2.0 | 1,401 |
/**
* 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... | HealthStaffTraining/healthstafftraining | wp-includes/js/tinymce/plugins/image/plugin.js | JavaScript | gpl-2.0 | 14,737 |
module.exports = function( grunt ) {
'use strict';
var sass = require( 'node-sass' );
grunt.initConfig({
// Setting folder templates.
dirs: {
css: 'assets/css',
fonts: 'assets/fonts',
images: 'assets/images',
js: 'assets/js',
php: 'includes'
},
// JavaScript linting with ESLint.
eslint: {... | Ninos/woocommerce | Gruntfile.js | JavaScript | gpl-3.0 | 4,349 |
// Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax
// Note in general that "arguments.foo" and "var o = arguments; o.foo"
// are treated differently by full-codegen, an... | victorzhao/miniblink49 | v8_4_5/test/mjsunit/es6/arguments-iterator.js | JavaScript | gpl-3.0 | 6,508 |
/*
* jQuery UI Datepicker @VERSION
*
* Copyright (c) 2006, 2007, 2008 Marc Grabanski
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI/Datepicker
*
* Depends:
* ui.core.js
*
* Marc Grabanski (m@marcgrabanski.com) and Keith Wood (... | jackbravo/amaranto | web/js/ui/ui.datepicker.js | JavaScript | gpl-3.0 | 75,200 |
/*
* Copyright (C) 2015 Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distributed in the ... | djbender/canvas-lms | gems/tatl_tael/spec/lib/tatl_tael/linters/fixtures/copyright_linter/js/invalid__missing-present.js | JavaScript | agpl-3.0 | 934 |
description(
'Test regular expression processing with many capturing brackets (200).'
);
var count = 200;
var regexp = "";
for (var i = 0; i < count; ++i)
regexp += "(";
regexp += "hello";
for (var i = 0; i < count; ++i)
regexp += ")";
var manyHellosArray = new Array;
for (var i = 0; i <= count; ++i)
man... | youfoh/webkit-efl | LayoutTests/fast/js/script-tests/regexp-many-brackets.js | JavaScript | lgpl-2.1 | 471 |
/**
* Copyright (c) Microsoft. 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 applicable ... | MikhailTryakhov/azure-xplat-cli | test/commands/arm/network/arm.network.lb-frontend-ip-tests.js | JavaScript | apache-2.0 | 9,926 |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var OptionsDefaulter = require("./OptionsDefaulter");
var Template = require("./Template");
function WebpackOptionsDefaulter() {
OptionsDefaulter.call(this);
this.set("devtool", false);
this.set("cache", tr... | petermezei/angular2-cli | node_modules/webpack/lib/WebpackOptionsDefaulter.js | JavaScript | apache-2.0 | 3,898 |
/* http://keith-wood.name/countdown.html
* Bulgarian initialisation for the jQuery countdown extension
* Written by Manol Trendafilov manol@rastermania.com (2010) */
(function($) {
$.countdown.regional['bg'] = {
labels: ['Години', 'Месеца', 'Седмица', 'Дни', 'Часа', 'Минути', 'Секунди'],
labels1: ['Година', 'Мес... | opensingular/singular-core | resources/ui-static-resources/src/main/java/org/opensingular/resources/singular/global/plugins/countdown/plugin/jquery.countdown-bg.js | JavaScript | apache-2.0 | 711 |
define(
({
viewer: {
common: {
close: "閉じる"
},
loading: {
step1: "アプリケーションを読み込んでいます",
step2: "データを読み込んでいます",
step3: "初期化しています",
loadBuilder: "ビルダに切り替えています",
long: "マップ ジャーナルを初期化しています",
long2: "お待ちください",
failButton: "アプリケーションの再読み込み"
},
signin: {
title: "認証が必要です",
... | ssylvia/growth-of-cities | src/resources/tpl/viewer/nls/ja/template.js | JavaScript | apache-2.0 | 3,601 |
// favorite.js
//
// A favorite by a user of an object
//
// Copyright 2012 E14N https://e14n.com/
//
// 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... | OpenSocial/pump.io | lib/model/favorite.js | JavaScript | apache-2.0 | 2,825 |
import { Vector3 } from '../math/Vector3';
import { Object3D } from '../core/Object3D';
import { LineSegments } from '../objects/LineSegments';
import { LineBasicMaterial } from '../materials/LineBasicMaterial';
import { Float32BufferAttribute } from '../core/BufferAttribute';
import { BufferGeometry } from '../core/Bu... | robcbryant/projectanka | static/three/extras/helpers/SpotLightHelper.js | JavaScript | apache-2.0 | 2,169 |
/*
* Copyright 2013 Samsung Information Systems America, 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 requ... | cwz920716/jalangi2 | tests/unit/eval_opt.js | JavaScript | apache-2.0 | 1,752 |
//// [classExtendsItselfIndirectly2.ts]
class C extends N.E { foo: string; } // error
module M {
export class D extends C { bar: string; }
}
module N {
export class E extends M.D { baz: number; }
}
module O {
class C2<T> extends Q.E2<T> { foo: T; } // error
module P {
export class D2<T> ex... | jwbay/TypeScript | tests/baselines/reference/classExtendsItselfIndirectly2.js | JavaScript | apache-2.0 | 2,616 |
import Circle from '../../../../src/ol/geom/Circle.js';
import LinearRing from '../../../../src/ol/geom/LinearRing.js';
import Polygon, {
fromCircle,
fromExtent,
} from '../../../../src/ol/geom/Polygon.js';
import expect from '../../expect.js';
import {boundingExtent, isEmpty} from '../../../../src/ol/extent.js';
... | ahocevar/ol3 | test/node/ol/geom/Polygon.test.js | JavaScript | bsd-2-clause | 22,237 |
!function(){
var d3 = {version: "3.4.3"}; // semver
| pungme/d3 | src/start.js | JavaScript | bsd-3-clause | 54 |
// Copyright 2014 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
* Class to communicate with the host daemon via Native Messaging.
*/
'use strict';
/** @suppress {duplicate} */
var remoting = re... | SaschaMester/delicium | remoting/webapp/crd/js/host_daemon_facade.js | JavaScript | bsd-3-clause | 14,438 |
/**
* 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... | jevakallio/react-native | Libraries/Core/Devtools/setupDevtools.js | JavaScript | bsd-3-clause | 2,049 |
version https://git-lfs.github.com/spec/v1
oid sha256:8fb458d5e0e2c5d65e097235388fc06997991621e1d122e250e97b52c03fb41f
size 8274
| yogeshsaroya/new-cdnjs | ajax/libs/yui/3.9.1/datasource-textschema/datasource-textschema-coverage.js | JavaScript | mit | 129 |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'colorbutton', 'en-gb', {
auto: 'Automatic',
bgColorTitle: 'Background Colour',
colors: {
'000': 'Black',
'800000': 'Maroon',
'8B... | webmasterETSI/web | web/ckeditor/plugins/colorbutton/lang/en-gb.js | JavaScript | mit | 1,299 |
context('User Groups', () => {
beforeEach(() => {
cy.umbracoLogin(Cypress.env('username'), Cypress.env('password'));
});
it('Create member group', () => {
const name = "Test Group";
cy.umbracoEnsureMemberGroupNameNotExists(name);
cy.umbracoSection('member');
cy.ge... | mattbrailsford/Umbraco-CMS | src/Umbraco.Tests.AcceptanceTest/cypress/integration/Members/memberGroups.js | JavaScript | mit | 808 |
return "'" + this.replace('\\', '\\\\').replace("'", '\\\'') + "'";
// comment
| markfink/metrics | tests/resources/code_samples/js3.js | JavaScript | mit | 79 |
'use strict';
const align = {
right: alignRight,
center: alignCenter
};
const top = 0;
const right = 1;
const bottom = 2;
const left = 3;
export class UI {
constructor(opts) {
var _a;
this.width = opts.width;
this.wrap = (_a = opts.wrap) !== null && _a !== void 0 ? _a : true;
... | matryer/bitbar | xbarapp.com/node_modules/cliui/build/lib/index.js | JavaScript | mit | 9,667 |
/**
* @fileoverview Tests for no-magic-numbers rule.
* @author Vincent Lemeunier
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const rule = require("../../../lib/rul... | SimenB/eslint | tests/lib/rules/no-magic-numbers.js | JavaScript | mit | 7,293 |
(function($) {
$.widget('pageflow.hideTextOnSwipe', {
_create: function() {
this.element.swipeGesture({
orientation: 'x'
});
this.element.on('swipegestureleft', function() {
pageflow.hideText.activate();
});
this.element.on('touchstart MSPointerDown pointerdown mous... | grgr/pageflow | app/assets/javascripts/pageflow/slideshow/hide_text_on_swipe.js | JavaScript | mit | 628 |
module.exports = function(config) {
return !/^v(4|6)/.test(process.version);
};
| EliteScientist/webpack | test/configCases/performance/many-exports/test.filter.js | JavaScript | mit | 81 |
version https://git-lfs.github.com/spec/v1
oid sha256:056ea780a4642ef75cef42293c9f0a75bf57873516dae527e0b48998868dfd39
size 2091
| yogeshsaroya/new-cdnjs | ajax/libs/dojo/1.9.7/cldr/nls/de/chinese.js.uncompressed.js | JavaScript | mit | 129 |
/**
* Copyright (c) 2008-2009 The Open Source Geospatial Foundation
*
* Published under the BSD license.
* See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text
* of the license.
*/
Ext.namespace("GeoExt.tree");
/** private: constructor
* .. class:: LayerNodeUI
*
* Place in a separ... | fedesanchez/suite-3.1 | recipes/resources/geoext/lib/GeoExt/widgets/tree/LayerNode.js | JavaScript | gpl-2.0 | 15,781 |
/*
** InkWeb - Inkscape's Javscript features for the open vector web
**
** Copyright (C) 2009 Aurelio A. Heckert, aurium (a) gmail dot com
**
** ********* Bugs and New Fetures *************************************
** If you found any bug on this script or if you want to propose a
** new feature, please report it... | tik0/inkscapeGrid | share/extensions/inkweb.js | JavaScript | gpl-2.0 | 6,209 |
/**
* Validate an email address.
* @param - The email address to validate.
* @returns undefined
*/
declare export function validate(email: string): boolean
/**
* Async email validation.
* @param - The email address to validate.
* @param - The callback to execute.
*/
declare export function vali... | fzzzy/testpilot | flow-typed/email-validator.js | JavaScript | mpl-2.0 | 460 |
/// Copyright (c) 2009 Microsoft Corporation
///
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
/// that the following conditions are met:
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
/// ... | mbouaziz/ML-LambdaJS | tests/ES5conform/TestCases/chapter15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-7.js | JavaScript | lgpl-3.0 | 1,996 |
/// Copyright (c) 2009 Microsoft Corporation
///
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
/// that the following conditions are met:
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
/// ... | mbouaziz/ML-LambdaJS | tests/ES5conform/TestCases/chapter15/15.2/15.2.3/15.2.3.13/15.2.3.13-2-13.js | JavaScript | lgpl-3.0 | 2,026 |
describe("chorus.alerts.VisualizationError", function() {
beforeEach(function() {
this.task = backboneFixtures.frequencyTaskWithErrors();
this.alert = new chorus.alerts.VisualizationError({ model: this.task });
});
describe("#makeModel", function() {
it("should have the correct ... | nvoron23/chorus | spec/javascripts/alerts/visualization_error_alert_spec.js | JavaScript | apache-2.0 | 459 |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image', 'en-ca', {
alt: 'Alternative Text',
border: 'Border',
btnUpload: 'Send it to the Server',
button2Img: 'Do you want to transform the selec... | ldilov/uidb | plugins/ckeditor/plugins/image/lang/en-ca.js | JavaScript | apache-2.0 | 932 |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['sv'] = {
"editor": "Rich Text Editor",
"editorPanel": "Rich Text Editor panel",
"common": {
"editorHelp": "Tryck ALT 0 för hjälp",
... | cloudtp/Cloud-Portal | static/plugins/ckeditor/lang/sv.js | JavaScript | apache-2.0 | 15,894 |
// 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 'settings-manage-languages-page' is a sub-page for enabling
* and disabling languages.
*
* @group Chrome Settings Elements
* @ele... | js0701/chromium-crosswalk | chrome/browser/resources/settings/languages_page/manage_languages_page.js | JavaScript | bsd-3-clause | 3,034 |
/*global self*/
/*jshint latedef: nofunc*/
/*
Distributed under both the W3C Test Suite License [1] and the W3C
3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
policies and contribution forms [3].
[1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
[2] http://www.w3.org/Consortium/Leg... | hgl888/web-testing-service | wts/tests/resources/testharness.js | JavaScript | bsd-3-clause | 93,989 |
/*globals equal,test*/
Ink.requireModules(['Ink.UI.FormValidator_1', 'Ink.Dom.Element_1', 'Ink.Dom.Selector_1', 'Ink.Util.Array_1', 'Ink.Dom.Event_1'], function (FormValidator, InkElement, Selector, InkArray, InkEvent) {
'use strict';
var body = document.getElementsByTagName('body')[0];
test('required text... | Anmo/Ink | test/unit/Ink.UI.FormValidator_1/test.js | JavaScript | mit | 3,459 |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'basicstyles', 'ar', {
bold: 'غامق',
italic: 'مائل',
strike: 'يتوسطه خط',
subscript: 'منخفض',
superscript: 'مرتفع',
underline: 'تسطي... | webmasterETSI/web | web/ckeditor/plugins/basicstyles/lang/ar.js | JavaScript | mit | 362 |
'use strict';
var React = require('react/addons');
var PureRenderMixin = React.addons.PureRenderMixin;
var SvgIcon = require('../../svg-icon');
var AvPlayCircleOutline = React.createClass({
displayName: 'AvPlayCircleOutline',
mixins: [PureRenderMixin],
render: function render() {
return React.createElemen... | sparkymat/youhaveto-react | node_modules/material-ui/lib/svg-icons/av/play-circle-outline.js | JavaScript | mit | 602 |
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'));
} else {
factory(jQuery);
}
}(function (jQuery) {
// Italian
jQuery.timeago.settings.str... | seogi1004/cdnjs | ajax/libs/jquery-timeago/1.6.0/locales/jquery.timeago.it.js | JavaScript | mit | 676 |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of so... | bocharsky-bw/bow | web/libs/ace-builds/src/mode-less.js | JavaScript | mit | 33,925 |
/**
* @format
* @flow
*/
// nope
// context -1
// context -2
// context -3
(null: empty); // Error: null ~> empty
// context +1
// context +2
// context +3
// nope
| facebook/flow | tests/cli_renderer_color/basic.js | JavaScript | mit | 168 |
version https://git-lfs.github.com/spec/v1
oid sha256:da06c3b3d37f5e97e47feddb285099005ffae0ba73c9ef7aa89f07322e13c54d
size 2459
| yogeshsaroya/new-cdnjs | ajax/libs/angular.js/1.3.0-beta.19/i18n/angular-locale_ln-cf.js | JavaScript | mit | 129 |
/*
* /MathJax/localization/bcc/MathMenu.js
*
* Copyright (c) 2009-2018 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/lice... | seogi1004/cdnjs | ajax/libs/mathjax/2.7.4/localization/bcc/MathMenu.js | JavaScript | mit | 837 |
var assert = require('assert')
var Completion = require('./lib/completion')
var locale = require('./lib/locale')
var Parser = require('./lib/parser')
var path = require('path')
var Usage = require('./lib/usage')
var Validation = require('./lib/validation')
var Y18n = require('y18n')
Argv(process.argv.slice(2))
var ex... | supahseppe/path-of-gaming | wp-content/themes/flatbase/node_modules/gulp-sass/node_modules/node-sass/node_modules/sass-graph/node_modules/yargs/index.js | JavaScript | gpl-2.0 | 14,617 |
pref("extensions.torlauncher.transportproxy_path", "/usr/bin/obfs4proxy");
| goodcrypto/tails | config/chroot_local-includes/etc/xul-ext/tor-launcher.js | JavaScript | gpl-3.0 | 75 |
/**
* Copyright 2016 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... | DAC-f1h-dev/amphtml | extensions/amp-fresh/0.1/test/test-amp-fresh.js | JavaScript | apache-2.0 | 2,913 |
//// [destructuringVoid.ts]
declare const v: void;
const {} = v;
//// [destructuringVoid.js]
var _a = v;
| nojvek/TypeScript | tests/baselines/reference/destructuringVoid.js | JavaScript | apache-2.0 | 112 |
Spree.Views.Tables.EditableTableRow = Backbone.View.extend({
events: {
"select2-open": "onEdit",
"focus input": "onEdit",
"click [data-action=save]": "onSave",
"click [data-action=cancel]": "onCancel",
'keyup input': 'onKeypress'
},
onEdit: function(e) {
if (this.$el.hasClass('editing')) ... | pervino/solidus | backend/app/assets/javascripts/spree/backend/views/tables/editable_table_row.js | JavaScript | bsd-3-clause | 1,511 |
var Lab = require('lab');
var Code = require('code');
var Constants = require('../../../../client/pages/login/Constants');
var lab = exports.lab = Lab.script();
lab.experiment('Login Constants', function () {
lab.test('it loads', function (done) {
Code.expect(Constants).to.exist();
done();
... | bigbassroller/aqua | test/client/pages/login/Constants.js | JavaScript | mit | 329 |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const makeSerializable = require("../util/makeSerializable");
const ModuleDependency = require("./ModuleDependency");
const ModuleDependencyTemplateAsId = require("./ModuleDependencyTemplateAsId");
class... | arvenil/resume | node_modules/webpack/lib/dependencies/CommonJsRequireDependency.js | JavaScript | mit | 752 |
/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/react-select
*/
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arg... | maty21/statistisc | node_modules/react-select/lib/Select.js | JavaScript | mit | 40,319 |
ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(acequire, exports, module) {
"use strict";
var oop = acequire("../lib/oop");
var TextHighlightRules = acequire("./text_highlight_rules").TextHighlightRules;
var reservedKeywords = exports.re... | jedfoster/brace | mode/sh.js | JavaScript | mit | 27,796 |
WYMeditor.STRINGS['pt-br'] = {
Strong: 'Resaltar',
Emphasis: 'Enfatizar',
Superscript: 'Sobre escrito',
Subscript: 'Sub escrito ',
Ordered_List: 'Lista ordenada',
Unordered_List: 'Lista desordenada',
Indent: 'Indentado',
Outdent: 'Desidentar',
Undo: 'Desfazer',
Redo: 'Refazer',
Link: '... | joshuef/training | public/javascripts/wymeditor/lang/pt-br.js | JavaScript | mit | 1,168 |
/*
* grunt-replace
*
* Copyright (c) 2014 outaTiME
* Licensed under the MIT license.
* https://github.com/outaTiME/grunt-replace/blob/master/LICENSE-MIT
*/
'use strict';
// plugin
module.exports = function (grunt) {
var path = require('path');
var fs = require('fs');
var chalk = require('chalk');
var... | LGCNSA-DM/grunt-replace-status | tasks/replace.js | JavaScript | mit | 3,642 |
//Author : @arboshiki
/**
* Generates random string of n length.
* String contains only letters and numbers
*
* @param {int} n
* @returns {String}
*/
Math.randomString = function (n) {
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var i = 0;... | sashberd/cdnjs | ajax/libs/lobipanel/1.0.6/js/lobipanel.js | JavaScript | mit | 75,013 |
/* *
*
* (c) 2010-2019 Torstein Honsi
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import H from './Globals.js';
/**
* @typedef {"circlepin"|"flag"|"squarepin"} Highcharts.FlagsShapeValue
*/
import U from './Utilit... | cdnjs/cdnjs | ajax/libs/highcharts/7.2.2/es-modules/parts/FlagsSeries.js | JavaScript | mit | 21,369 |
describe('Ext.chart.AbstractChart', function() {
var chart, store;
var Model = Ext.define(null, {
extend: 'Ext.data.Model',
fields: ['label', 'value']
});
function makeStore(rows) {
var data = [],
i;
for (i = 1; i <= rows; ++i) {
da... | turtlerrrrr/myapp | web/src/main/webapp/WEB-INF/app/ext/packages/charts/test/specs/chart/AbstractChart.js | JavaScript | gpl-2.0 | 15,767 |
/*!
* Module dependencies.
*/
var readPref = require('./drivers').ReadPreference;
var EventEmitter = require('events').EventEmitter;
var VirtualType = require('./virtualtype');
var utils = require('./utils');
var MongooseTypes;
var Kareem = require('kareem');
var async = require('async');
var PromiseProvider = requi... | adeeldev/courts | node_modules/mongoose/lib/schema.js | JavaScript | gpl-3.0 | 32,159 |
/**
* Command line implementation for JSCS.
*
* See documentation on exit codes in - https://github.com/jscs-dev/node-jscs/wiki/Exit-codes
*
* Common usage case is:
*
* ./node_modules/.bin/jscs file1 dir1 file2 dir2
*/
var Checker = require('./checker');
var configFile = require('./cli-config');
var ConfigGener... | cichaczem/custom_tinymce | node_modules/jscs/lib/cli.js | JavaScript | lgpl-2.1 | 4,519 |