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 |
|---|---|---|---|---|---|
/* global test expect */
const ConfigObject = require('../config_object')
test('new', () => {
const object = new ConfigObject()
expect(object).toBeInstanceOf(ConfigObject)
expect(object).toBeInstanceOf(Object)
})
test('set', () => {
const object = new ConfigObject()
expect(object.set('key', 'value')).toEqu... | jmarkbrooks/shine | vendor/bundle/ruby/2.5.0/gems/webpacker-3.5.2/package/config_types/__tests__/config_object.js | JavaScript | gpl-3.0 | 1,100 |
'use strict';
exports.__esModule = true;
exports['default'] = mergeMap;
var _mergeMapSupport = require('./mergeMap-support');
function mergeMap(project, resultSelector) {
var concurrent = arguments.length <= 2 || arguments[2] === undefined ? Number.POSITIVE_INFINITY : arguments[2];
return this.lift(new _mer... | NodeVision/NodeVision | node_modules/angular2/node_modules/@reactivex/rxjs/dist/cjs/operators/mergeMap.js | JavaScript | gpl-3.0 | 428 |
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, de... | Elektro1776/latestEarthables | core/client/tmp/broccoli_persistent_filterbabel-output_path-mXQppNyR.tmp/modules/ember-cli-mirage/route-handlers/object.js | JavaScript | gpl-3.0 | 1,209 |
/*
* Don't edit this file by hand!
* This file was generated from a npm-package using gulp.
* For more information see gulpfile.js in the project root
*/
define(function (require, exports, module) {"use strict";
var path = require("path");
var util = require("util/util");
var Level = require("./level");
va... | mvz/metapolator | app/lib/npm_converted/util-logging/lib/logger.js | JavaScript | gpl-3.0 | 13,686 |
//
// Run test script in content process instead of chrome (xpcshell's default)
//
function run_test() {
run_test_in_child("../unit/test_dns_cancel.js");
}
| Yukarumya/Yukarum-Redfoxes | netwerk/test/unit_ipc/test_dns_cancel_wrap.js | JavaScript | mpl-2.0 | 159 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | arenadata/ambari | ambari-web/test/views/main/admin/highAvailability/resourceManager/step3_view_test.js | JavaScript | apache-2.0 | 1,572 |
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2016, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... | hsanjuan/one | src/sunstone/public/app/tabs/clusters-tab/form-panels/create/formPanelId.js | JavaScript | apache-2.0 | 1,276 |
/**
* Copyright 2015 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... | engtat/amphtml | extensions/amp-mustache/0.1/test/test-amp-mustache.js | JavaScript | apache-2.0 | 14,835 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/machinelearningservicesManagement/lib/models/operationDisplay.js | JavaScript | apache-2.0 | 1,865 |
/**
* Copyright 2017 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... | gumgum/amphtml | extensions/amp-a4a/0.1/real-time-config-manager.js | JavaScript | apache-2.0 | 10,381 |
"use strict";
const color = require('kleur');
const Prompt = require('./prompt');
const _require = require('../util'),
style = _require.style,
clear = _require.clear;
const _require2 = require('sisteransi'),
cursor = _require2.cursor,
erase = _require2.erase;
/**
* TogglePrompt Base Element... | GoogleCloudPlatform/prometheus-engine | third_party/prometheus_ui/base/web/ui/react-app/node_modules/prompts/dist/elements/toggle.js | JavaScript | apache-2.0 | 2,677 |
/**
* @ngdoc directive
* @name gustav.account.directive:accountBox
* @restrict EA
* @element ANY
* @scope
* @description
* Displays information about an account.
*/
angular.module('gustav.account').directive('accountBox', function (Account) {
return {
templateUrl: 'plugins/account/partials/account.h... | amirmamaghani/Gustav | app/plugins/account/scripts/accountDirectives.js | JavaScript | bsd-3-clause | 2,332 |
// Copyright 2022 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.
/** @enum {number} */
const SchemeType = {
NORMAL: 0,
INCREASED_CONTRAST: 1,
GRAYSCALE: 2,
INVERTED_COLOR: 3,
INVERTED_GRAYSCALE: 4,
YELLOW_ON... | chromium/chromium | ui/accessibility/extensions/highcontrast/storage.js | JavaScript | bsd-3-clause | 5,366 |
var request = require('supertest');
var app = require(__dirname+'/../../lib/app.js');
var gateway = require(__dirname+'/../../');
describe('delete currency', function(){
it('should return unauthorized without credentials', function(done){
request(app)
.delete('/v1/currencies/usd')
.expect(401)
... | zealord/gatewayd | test/http/remove_currency.js | JavaScript | isc | 712 |
/**
* Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/>
* Build: `lodash modularize modern exports="amd" -o ./modern/`
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Inv... | john-bixly/Morsel | app/vendor/lodash-amd/modern/collections/forEachRight.js | JavaScript | mit | 1,971 |
define({
"_widgetLabel": "共有",
"selectSocialNetwork": "次のオプションを選択してアプリを共有します:",
"email": "電子メール",
"facebook": "Facebook",
"googlePlus": "Google+",
"twitter": "Twitter",
"addNew": "新規追加",
"socialMediaUrl": "ソーシャル メディアの URL",
"uploadIcon": "アイコンのアップロード",
"embedAppInWebsite": "Web サイトにアプリを埋め込む"
}); | cmccullough2/cmv-wab-widgets | wab/2.3/widgets/Share/nls/ja/strings.js | JavaScript | mit | 446 |
import Vue from "vue";
import App from "./App.vue";
Vue.config.productionTip = false;
new Vue({
render: h => h(App)
}).$mount("#app");
| rodet/styleguide | src/main.js | JavaScript | mit | 139 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({indentUnit: 2}, "javascript");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
MT("locals",
"[k... | gsage/engine | resources/editor/webviews/codemirror/mode/javascript/test.js | JavaScript | mit | 19,313 |
module.exports=['\u2C00','\u2C01','\u2C02','\u2C03','\u2C04','\u2C05','\u2C06','\u2C07','\u2C08','\u2C09','\u2C0A','\u2C0B','\u2C0C','\u2C0D','\u2C0E','\u2C0F','\u2C10','\u2C11','\u2C12','\u2C13','\u2C14','\u2C15','\u2C16','\u2C17','\u2C18','\u2C19','\u2C1A','\u2C1B','\u2C1C','\u2C1D','\u2C1E','\u2C1F','\u2C20','\u2C21... | marclundgren/mithril-fidm-app | node_modules/gulp-jscs/node_modules/jscs/node_modules/unicode-6.3.0/blocks/Glagolitic/symbols.js | JavaScript | mit | 880 |
'use strict';
var AlgoliaSearchCore = require('../../AlgoliaSearchCore.js');
var createAlgoliasearch = require('../createAlgoliasearch.js');
module.exports = createAlgoliasearch(AlgoliaSearchCore, '(lite) ');
| shadow000902/blog_source | node_modules/hexo-algoliasearch/node_modules/algoliasearch/src/browser/builds/algoliasearchLite.js | JavaScript | mit | 211 |
var Promise = require('bluebird'),
config = require('../config'),
crypto = require('crypto'),
https = require('https');
module.exports.lookup = function lookup(userData, timeout) {
var gravatarUrl = '//www.gravatar.com/avatar/' +
crypto.createHash('md5').update(userData.email.toLowerCase().trim... | disordinary/Ghost | core/server/utils/gravatar.js | JavaScript | mit | 1,515 |
var activeRequests = 0;
$(function() {
$('#change').text('I changed it');
$('#drag').draggable();
$('#drop').droppable({
drop: function(event, ui) {
ui.draggable.remove();
$(this).html('Dropped!');
}
});
$('#clickable').click(function() {
var link = $(this);
setTimeout(function() {... | ducktyper/bfnz | vendor/cache/ruby/2.3.0/gems/capybara-2.8.1/lib/capybara/spec/public/test.js | JavaScript | mit | 3,770 |
import { Range } from 'immutable';
export const ADD_HUNDRED_TODOS = 'ADD_HUNDRED_TODOS';
export const ADD_TODO = 'ADD_TODO';
export const CLEAR_ALL_COMPLETED_TODOS = 'CLEAR_ALL_COMPLETED_TODOS';
export const CLEAR_ALL_TODOS = 'CLEAR_ALL_TODOS';
export const DELETE_TODO = 'DELETE_TODO';
export const TOGGLE_TODO_COMPLET... | SidhNor/este-cordova-starter-kit | src/common/todos/actions.js | JavaScript | mit | 1,302 |
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
var _excluded = ["photos", "visibleCount", "size", "layout", "children"];
import { createScopedElement } from "../../lib/jsxRuntime";
import * as React from "react";
import { get... | cdnjs/cdnjs | ajax/libs/vkui/4.27.1/components/UsersStack/UsersStack.js | JavaScript | mit | 2,760 |
;var ls = ls || {};
/**
* Опросы
*/
ls.poll = (function ($) {
/**
* Голосование в опросе
*/
this.vote = function(idTopic, idAnswer) {
var url = aRouter['ajax']+'vote/question/';
var params = {idTopic: idTopic, idAnswer: idAnswer};
ls.hook.marker('voteBefore');
ls.ajax(url, params, function(result) {
i... | ieasyweb/altocms | common/templates/frontend/ls/js/poll.js | JavaScript | gpl-2.0 | 1,908 |
( function( mw ) {
mediaWiki.messages.set( {
"mwe-upwiz-code-unknown": "Unknown language"
} );
/**
* Utility class which knows about languages, and how to construct HTML to select them
* TODO: make this a more common library, used by this and TimedText
*/
mw.LanguageUpWiz = {
defaultCode: 'en', // when we absol... | SuriyaaKudoIsc/wikia-app-test | extensions/UploadWizard/resources/mw.LanguageUpWiz.js | JavaScript | gpl-2.0 | 5,288 |
/**
* Nanocloud turns any traditional software into a cloud solution, without
* changing or redeveloping existing source code.
*
* Copyright (C) 2016 Nanocloud Software
*
* This file is part of Nanocloud.
*
* Nanocloud is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affe... | Gentux/nanocloud | assets/tests/unit/utils/get-key-from-value-test.js | JavaScript | agpl-3.0 | 1,492 |
(function (root, factory)
{
if (typeof define === "function" && define.amd)
{
define([], factory);
}
else
{
root.MessageServer = factory();
}
}(this, function()
{
var CHANNELS = {};
function MessageServer(origins, channel, messageHandlerResolver)
{
if (!origins || !channel)... | AFaust/Aikau | aikau/src/main/resources/alfresco/integration/MessageServer.js | JavaScript | lgpl-3.0 | 4,057 |
/*
* Copyright 2012 Amadeus s.a.s.
* 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 i... | vcarle/ariatemplates | test/aria/widgets/wai/input/label/RadioButtonJawsTestCase.js | JavaScript | apache-2.0 | 873 |
var tree = require('../lib/tree');
exports['extend - install new - reduce dep version'] = function (test) {
var packages = {
'foo': {
versions: {
'0.0.1': {
config: { name: 'foo', version: '0.0.1', dependencies: {} },
source: 'local'
... | daniel-z/kanso | test/test-lib-tree.js | JavaScript | apache-2.0 | 16,865 |
/*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of ... | GoogleCloudPlatform/prometheus-engine | third_party/prometheus_ui/base/web/ui/react-app/node_modules/jsdom/node_modules/tough-cookie/lib/permuteDomain.js | JavaScript | apache-2.0 | 2,718 |
export { default } from 'shared/components/schema/input-workload/component';
| pengjiang80/ui | lib/shared/app/components/schema/input-workload/component.js | JavaScript | apache-2.0 | 77 |
Package.describe({
name: 'rocketchat:message-pin',
version: '0.0.1',
summary: 'Pin Messages'
});
Package.onUse(function(api) {
api.versionsFrom('1.0');
api.use([
'coffeescript',
'underscore',
'less@2.5.0',
'rocketchat:lib'
]);
api.addFiles([
'client/lib/PinnedMessage.coffee',
'client/actionButton.... | TribeMedia/Rocket.Chat | packages/rocketchat-message-pin/package.js | JavaScript | mit | 1,131 |
var assert = require('assert')
, EventEmitter = require('events').EventEmitter
, fs = require('fs')
, sinon = require('sinon')
, Twit = require('../lib/twitter')
, config1 = require('../config1')
, config2 = require('../config2')
, helpers = require('./helpers')
, util = require('util')
, async = requ... | PuffyCoffee/tweety | node_modules/twit/tests/rest.js | JavaScript | mit | 23,685 |
export const packageName = "bundle-visualizer";
export const classPrefix = "meteorBundleVisualizer";
export const methodNameStats = `/__meteor__/${packageName}/stats`;
export const typeBundle = "bundle";
export const typePackage = "package";
export const typeNodeModules = "node_modules";
function capitalizeFirstLetter... | Hansoft/meteor | packages/non-core/bundle-visualizer/common.js | JavaScript | mit | 491 |
(function () {
'use strict';
var controllerId = 'reports.principals.allexpired.controller';
angular
.module('app.reports')
.controller('ReportsExpired90Controller', ReportsExpired90Controller);
ReportsExpired90Controller.$inject = ['$q', 'PrincipalDataService', 'usSpinnerService', 'lo... | jansenbe/PnP-Tools | Solutions/Tenant Information Portal/src/TIP.DashBoard/Scripts/app/reports/principals/reports.expired90.controller.js | JavaScript | mit | 2,066 |
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var react = require('gulp-react');
gulp.task('build', function() {
gulp.src('src/*.jsx')
.pipe(react())
.pipe(concat('form-generator.min.js'))
.pipe(uglify())
.pipe(gulp.dest('dist'));
});
gulp.task... | shaunstanislaus/react-form-generator | gulpfile.js | JavaScript | mit | 419 |
/*
* BrainBrowser: Web-based Neurological Visualization Tools
* (https://brainbrowser.cbrain.mcgill.ca)
*
* Copyright (C) 2011
* The Royal Institution for the Advancement of Learning
* McGill University
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero Gener... | codedsk/hubzero-tool-brains | www/assets/brainbrowser-dev/volume-viewer/modules/loading.js | JavaScript | mit | 23,878 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _stringify;
function _load_stringify() {
return _stringify = _interopRequireDefault(require('babel-runtime/core-js/json/stringify'));
}
var _promise;
function _load_promise() {
return _promise = _interopRequireDefault(require('b... | rafaeltomesouza/frontend-class1 | aula2/a9/linkedin/client/.gradle/yarn/node_modules/yarn/lib-legacy/config.js | JavaScript | mit | 17,939 |
export default class DateHelper {
// See tests for desired format.
static getFormattedDateTime(date) {
return `${date.getMonth() + 1}/${date.getDate()} ${date.getHours()}:${this.padLeadingZero(date.getMinutes())}:${this.padLeadingZero(date.getSeconds())}`;
}
static padLeadingZero(value) {
return value ... | afreix/personal-site | src/utils/dateHelper.js | JavaScript | mit | 353 |
/*! UIkit 3.0.0-rc.8 | http://www.getuikit.com | (c) 2014 - 2017 YOOtheme | MIT License */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
typeof define === 'function' && define.amd ? define('uikitlightbox_panel', ['... | extend1994/cdnjs | ajax/libs/uikit/3.0.0-rc.8/js/components/lightbox-panel.js | JavaScript | mit | 51,570 |
require('colors');
var moment = require('moment');
module.exports = function() {
function _log(text) {
var timeStamp = moment().format('D/M/YY HH:mm:ss');
console.log('[bower] '.green, timeStamp.cyan, ' ', text);
}
function _error(text, exception) {
_log(text.red);
conso... | migros/private-bower | lib/infrastructure/logger.js | JavaScript | mit | 1,050 |
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function() {
function addCombo( editor, comboName, styleType, lang, entries, defaultLabel, styleDefinition, order ) {
var config = editor.config;... | bkahlert/com.bkahlert.nebula | src/com/bkahlert/nebula/widgets/composer/html/plugins/font/plugin.js | JavaScript | mit | 7,353 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.is = is;
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
function is(x, y) {
return x === y && ( // -0 is not +0
x !== 0 || 1 / x === 1 / y) || // both NaN
x !== x && y !== y;
}
/... | cdnjs/cdnjs | ajax/libs/vkui/4.27.2/cjs/lib/is.js | JavaScript | mit | 349 |
import React from 'react';
import PropTypes from 'prop-types';
const Select = ({
placeholder, onChange, options, disabled, value,
}) => {
const renderOptions = arr =>
arr.map(({ name, id }) => (
<option key={id} value={id}>
{name}
</option>
));
return (
<select
disabled={di... | mccun934/katello | webpack/move_to_pf/Select/Select.js | JavaScript | gpl-2.0 | 826 |
tinyMCE.addI18n('sl.modxlink',{
link_desc:"Insert/edit link"
}); | svyatoslavteterin/belton.by | core/packages/tinymce-4.3.3-pl/modPlugin/46c188883a90c37d912c8b5f16d2bdbd/0/tinymce/jscripts/tiny_mce/plugins/modxlink/langs/sl.js | JavaScript | gpl-2.0 | 68 |
/*
* Kendo UI Web v2013.3.1119 (http://kendoui.com)
* Copyright 2013 Telerik AD. All rights reserved.
*
* Kendo UI Web commercial licenses may be obtained at
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
* If you do not own a commercial license, this file shall be governed by the
* G... | hschaen/teamcalbaseball | wp-content/themes/teamcalbaseball/src/js/cultures/kendo.culture.qut-GT.js | JavaScript | gpl-2.0 | 2,800 |
/*
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/Legal/2008/03-bsd-license
[3] http://www.w3.or... | danlrobertson/servo | tests/wpt/web-platform-tests/web-animations/testcommon.js | JavaScript | mpl-2.0 | 8,786 |
/**
* @file list_gallery.js
* @brief List-type image gallery
* @author NHN (developers@xpressengine.com)
**/
(function($){
var listShow = xe.createPlugin('list', {
API_SHOW_LIST : function(sender, params) {
var srl = params[0], imgs, $zone, i, c, im, scale, w1, w2, h1, h2;
imgs = this.cast('GET_IMAGES', [s... | daolcms/xdt-ex-core | modules/editor/components/image_gallery/tpl/list_gallery.js | JavaScript | lgpl-2.1 | 1,049 |
/*!
* Ext JS Library 3.2.1
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
*/
Ext.onReady(function(){
// The action
var action = new Ext.Action({
text: 'Action 1',
handler: function(){
Ext.example.msg('Click','You clicked on "Action 1".... | DeepLit/WHG | root/static/js/ext/examples/menu/actions.js | JavaScript | apache-2.0 | 1,908 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... | vohtaski/moodle-shindig | features/src/main/javascript/features/i18n/data/DateTimeConstants__mn_Mong_CN.js | JavaScript | apache-2.0 | 3,426 |
// 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.10-3-2
description: >
Object.preventExtensions - indexed properties cannot be added into
the returned object
includes: [propertyHelper.js]
---*/
var obj = ... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Object/preventExtensions/15.2.3.10-3-2.js | JavaScript | bsd-2-clause | 501 |
/**
* Uploader.js
*
* Released under LGPL License.
* Copyright (c) 1999-2015 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/**
* Upload blobs or blob infos to the specified URL or handler.
*
* @private
* @class tinymce.fil... | oncebuilder/OnceBuilder | libs/tinymce/js/tinymce/classes/file/Uploader.js | JavaScript | mit | 5,322 |
require('traceur');
var System = require('../dist/es6-module-loader.src');
System.parser = 'traceur';
module.exports = {
Loader: global.LoaderPolyfill,
System: System
};
| AbdulBasitBashir/learn-angular2 | step9_gulp_router/node_modules/es6-module-loader/lib/index-traceur.js | JavaScript | mit | 177 |
import 'ember-material-lite/extensions/tooltip';
export function initialize(/* container, application */) {
// application.inject('route', 'foo', 'service:foo');
}
export default {
name: 'material-lite-extensions',
initialize
};
| leoeuclids/ember-material-lite | addon/initializers/material-lite-extensions.js | JavaScript | mit | 237 |
/* BulagaJS - v1.0.0 - 2017-02-23
* https://github.com/juvarabrera/bulagajs
*
* Copyright (c) 2017 Juvar Abrera;
* Licensed under the MIT license
*/
"use strict";
$.fn.bulaga = function(options) {
function Bulaga(el, options) {
var obj = this;
this.el = el;
if(options == undefined)
options = {};
th... | gdgphilippines/boomerang | public/assets/scripts/bulaga-1.0.0.js | JavaScript | mit | 2,620 |
(function(hello) {
hello.init({
windows: {
name: 'Windows live',
// REF: http://msdn.microsoft.com/en-us/library/hh243641.aspx
oauth: {
version: 2,
auth: 'https://login.live.com/oauth20_authorize.srf',
grant: 'https://login.live.com/oauth20_token.srf'
},
// Refresh the access_token once... | arunreddy143/helloJs | src/modules/windows.js | JavaScript | mit | 3,904 |
/* MIT https://github.com/kenwheeler/cash */
(function(){
'use strict';var e=document,g=window,h=Array.prototype,l=h.filter,m=h.indexOf,aa=h.map,p=h.push,q=h.reverse,r=h.slice,ba=/^#[\w-]*$/,ca=/^\.[\w-]*$/,da=/<.+>/,ea=/^\w+$/;function t(a,b){void 0===b&&(b=e);return ca.test(a)?b.getElementsByClassName(a.slice(1)):ea.... | jonobr1/cdnjs | ajax/libs/cash/2.2.1/cash.min.js | JavaScript | mit | 12,108 |
/* 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/. */
define([
'chai',
'sinon',
'jquery',
'models/auth_brokers/iframe',
'models/reliers/relier',
'lib/promis... | riadhchtara/fxa-password-manager | app/tests/spec/models/auth_brokers/iframe.js | JavaScript | mpl-2.0 | 2,421 |
var b = new ArrayBuffer(4);
var dv = new DataView(b);
dv.setInt32(0, 42);
var w = wrap(dv);
assertEq(DataView.prototype.getInt32.call(w, 0), 42);
| michath/ConMonkey | js/src/jit-test/tests/basic/testBug761439.js | JavaScript | mpl-2.0 | 146 |
/* -*- 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/. */
//--------------------------------... | JasonGross/mozjs | js/src/tests/ecma_3/Statements/regress-444979.js | JavaScript | mpl-2.0 | 1,286 |
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/ */
// To JSON.stringify, symbols are the same as undefined.
var symbols = [
Symbol(),
Symbol.for("ponies"),
Symbol.iterator
];
for (var sym of symbols) {
assertEq(JSON.stringify(sym), undefined);
... | cstipkovic/spidermonkey-research | js/src/tests/ecma_6/Symbol/json-stringify-values.js | JavaScript | mpl-2.0 | 956 |
/* -*- 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/. */
/**
File Name: 15.6.4... | michath/ConMonkey | js/src/tests/ecma/extensions/15.6.4-2.js | JavaScript | mpl-2.0 | 1,028 |
var searchData=
[
['debug',['debug',['../class_q_rspec.html#a2e597199e2a6a4e04ba44a1ec1a8f7be',1,'QRspec']]]
];
| Darkflib/php-qrcode | docs/html/search/functions_64.js | JavaScript | lgpl-3.0 | 114 |
export * from './actions';
export * from './actionTypes';
export * from './constants';
export * from './functions';
| gpolitis/jitsi-meet | react/features/base/settings/index.js | JavaScript | apache-2.0 | 116 |
/*!
* Module dependencies.
*/
var utils = require('./utils');
var EventEmitter = require('events').EventEmitter;
var driver = global.MONGOOSE_DRIVER_PATH || './drivers/node-mongodb-native';
var Schema = require('./schema');
var Collection = require(driver + '/collection');
var STATES = require('./connectionstate');
... | jiaomuhub/active | webapp/node_modules/mongoose/lib/connection.js | JavaScript | apache-2.0 | 23,296 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fs = require("fs-extra");
const path = require("path");
const webpack = require("webpack");
const app_utils_1 = require("../utilities/app-utils");
const webpack_config_1 = require("../models/webpack-config");
const utils_1 = require("../... | tongpa/pypollmanage | pypollmanage/public/javascript/node_modules/@angular/cli/tasks/build.js | JavaScript | apache-2.0 | 3,293 |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { stringify } from '../facade/lang';
/**
* A parameter metadata that specifies a dependency.
*
* ### Exampl... | psumkin/northshore | ui/node_modules/@angular/core/src/di/metadata.js | JavaScript | apache-2.0 | 7,116 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | ilantukh/ignite | modules/web-console/frontend/webpack/webpack.test.js | JavaScript | apache-2.0 | 1,351 |
/*!
* jquery.fancytree.edit.js
*
* Make node titles editable.
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
*
* Copyright (c) 2014, Martin Wendt (http://wwWendt.de)
*
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version @VERSI... | shpark76/WhereHows | wherehows-web/public/legacy-app/vendors/fancytree/src/jquery.fancytree.edit.js | JavaScript | apache-2.0 | 9,398 |
// Copyright 2016 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 --opt --no-always-opt
var global = {}
var fish = [
{'name': 'foo'},
{'name': 'bar'},
];
for (var i = 0; i < fish... | youtube/cobalt | third_party/v8/test/mjsunit/regress/regress-crbug-594183.js | JavaScript | bsd-3-clause | 2,111 |
this.L = this.L || {};
this.L.Control = this.L.Control || {};
this.L.Control.Geocoder = (function (L) {
'use strict';
L = L && L.hasOwnProperty('default') ? L['default'] : L;
var lastCallbackId = 0;
// Adapted from handlebars.js
// https://github.com/wycats/handlebars.js/
var badChars = /[&<>"'`]/g;
var possible = /... | ThomasDaheim/GPXEditor | src/main/resources/leaflet/geocoder/Control.Geocoder.js | JavaScript | bsd-3-clause | 37,785 |
/* The contents of this file are subject to the Netscape Public License
* Version 1.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.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS"
*... | frivoal/presto-testo | core/standards/scripts/jstest-futhark/es-regression/imported-netscape/ecma/String/15.5.4.9-1.js | JavaScript | bsd-3-clause | 10,111 |
var getSchema = require('../../../server/data/meta/schema'),
should = require('should');
describe('getSchema', function () {
it('should return post schema if context starts with post', function () {
var metadata = {
blog: {
title: 'Blog Title',
logo: 'http://... | NovaDevelopGroup/Academy | core/test/unit/metadata/schema_spec.js | JavaScript | mit | 7,260 |
// This service worker is required to expose an exported Godot project as a
// Progressive Web App. It provides an offline fallback page telling the user
// that they need an Internet connection to run the project if desired.
// Incrementing CACHE_VERSION will kick off the install event and force
// previously cached r... | honix/godot | misc/dist/html/service-worker.js | JavaScript | mit | 2,848 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _actionTypes = require('./actionTypes');
var _deleteInWithCleanUp = require('./deleteInWithCleanUp');
var _deleteInWithCleanUp2 = _interopRequireDefault(_deleteInWithCleanUp);
var _plain = require('./structure/plain');
var _plain2 ... | Akkuma/npm-cache-benchmark | pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/redux-form/6.6.3/lib/reducer.js | JavaScript | mit | 20,975 |
module.exports={title:"Tidal",hex:"000000",source:"https://tidal.com",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Tidal icon</title><path d="M12.012 3.992L8.008 7.996 4.004 3.992 0 7.996 4.004 12l4.004-4.004L12.012 12l-4.004 4.004 4.004 4.004 4.004-4.004L12.012 12l4.004-4.004-4.00... | cdnjs/cdnjs | ajax/libs/simple-icons/1.9.28/tidal.min.js | JavaScript | mit | 388 |
/*
* Copyright (c) 2008-2014 The Open Source Geospatial Foundation
*
* Published under the BSD license.
* See https://github.com/geoext/geoext2/blob/master/license.txt for the full
* text of the license.
*/
/*
* @requires GeoExt/data/reader/CswRecords.js
*/
/**
* The model for the structure returned by CS-W ... | henriquespedro/Autarquia-Livre | vendor/geoext2/src/GeoExt/data/CswRecordsModel.js | JavaScript | gpl-2.0 | 856 |
({
showTarget : function(component) {
var evt = $A.get('e.ui:popupTargetToggle');
evt.setParams({
component : component,
show : true
});
evt.fire();
},
hideTarget : function(component) {
var evt = $A.get('e.ui:popupTargetToggle');
evt.setParams({
component : component,
show : false
});
... | lcnbala/aura | aura-components/src/test/components/uitest/popupTestTriggerElement/popupTestTriggerElementController.js | JavaScript | apache-2.0 | 337 |
/**
* Copyright 2015 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... | DistroScale/amphtml | test/functional/test-event-helper.js | JavaScript | apache-2.0 | 6,023 |
import {getNextArrow, getPrevArrow, getSlide} from './helpers';
/** The total number of slides in the carousel */
const SLIDE_COUNT = 7;
describes.endtoend(
'amp-base-carousel - arrows with custom arrows',
{
version: '0.1',
fixture: 'amp-base-carousel/custom-arrows.amp.html',
experiments: [
'amp... | alanorozco/amphtml | extensions/amp-base-carousel/0.1/test-e2e/test-arrows.js | JavaScript | apache-2.0 | 1,291 |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... | seogi1004/cdnjs | ajax/libs/react-slick/0.18.0/react-slick.js | JavaScript | mit | 121,185 |
/**
* @author mrdoob / http://mrdoob.com/
*/
THREE.SoftwareRenderer2 = function () {
console.log( 'THREE.SoftwareRenderer', THREE.REVISION );
var canvas = document.createElement( 'canvas' );
var context = canvas.getContext( '2d' );
var imagedata = context.getImageData( 0, 0, canvas.width, canvas.height );
va... | christopheschwyzer/StopheWebLab | three/source/three/examples/js/renderers/SoftwareRenderer2.js | JavaScript | mit | 9,867 |
define([], function() {
/** Used to match template delimiters. */
var reInterpolate = /<%=([\s\S]+?)%>/g;
return reInterpolate;
});
| tomek-f/shittets | require-js-amd/require-zepto-lodash/static/js/lib/lodash-amd/internal/reInterpolate.js | JavaScript | mit | 140 |
// Copyright 2012 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... | fieldenms/tg | platform-web-ui/src/main/resources/polymer/accessibility-developer-tools/lib/closure-library/closure/goog/i18n/ordinalrules.js | JavaScript | mit | 25,427 |
var assert = require("assert");
var FirebaseTokenGenerator = require("../../../dist/firebase-token-generator-node.js");
function _decodeJWTPart(part) {
return JSON.parse(new Buffer(part.replace("-", "+").replace("_", "/"), "base64").toString());
}
describe("FirebaseTokenGenerator", function() {
var obj = new F... | prasad47/firebase-set-data | node_modules/firebase-token-generator/js/test/mocha/nodetests.spec.js | JavaScript | mit | 2,238 |
/* flatpickr v4.2.2, @license MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.ar = {})));
}(this, (function (exports) { 'use strict';
var fp = typeof wi... | wout/cdnjs | ajax/libs/flatpickr/4.2.2/l10n/ar.js | JavaScript | mit | 1,471 |
/* ========================================================================
* Bootstrap: modal.js v3.0.0
* http://twbs.github.com/bootstrap/javascript.html#modals
* ========================================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Versio... | ajalovec/aj-cms-sandbox | web/js/bootstrap_modal_9.js | JavaScript | mit | 6,747 |
/*!
* twitter-text-js 1.8.0
*
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this work except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
(function() {
if... | andrezimpel/djron | wp-content/themes/djron/assets/bower_components/twitter-text/pkg/twitter-text-1.8.0.js | JavaScript | gpl-2.0 | 55,165 |
// Authors:
// Eric Butler <eric@codebutler.com>
register({
name: 'Harvest',
sessionCookieNames: [ '_harvest_sess' ],
matchPacket: function (packet) {
return (packet.host.match(/\.harvestapp.com$/));
},
processPacket: function () {
this.siteUrl = 'http://' + this.firstPacket.host;
var cooki... | gregory-nisbet/firesheep | xpi/handlers/harvest.js | JavaScript | gpl-3.0 | 929 |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'toolbar', 'mn', {
toolbarCollapse: 'Collapse Toolbar', // MISSING
toolbarExpand: 'Expand Toolbar', // MISSING
toolbarGroups: {
document: 'Documen... | gmuro/dolibarr | htdocs/includes/ckeditor/ckeditor/_source/plugins/toolbar/lang/mn.js | JavaScript | gpl-3.0 | 694 |
/**
* Sample plugin.
*/
Draw.loadPlugin(function(ui) {
// Adds custom sidebar entry
ui.sidebar.addPalette('esolia', 'eSolia', true, function(content) {
// content.appendChild(ui.sidebar.createVertexTemplate(null, 120, 60));
content.appendChild(ui.sidebar.createVertexTemplate('shape=image;imag... | wangan/draw.io | war/plugins/p1.js | JavaScript | gpl-3.0 | 2,961 |
/**
* Copyright 2018 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... | dotandads/amphtml | extensions/amp-subscriptions/0.1/entitlement.js | JavaScript | apache-2.0 | 3,338 |
import { buildField } from './helpers/builders';
import { expectThatTyping } from './helpers/expectations';
import Keysim from 'keysim';
import FieldKit from '../../src';
import {expect} from 'chai';
testsWithAllKeyboards('FieldKit.CardTextField', function() {
var textField;
var visa = '4111 1111 1111 1111';
be... | square/fieldkit | test/unit/card_text_field_test.js | JavaScript | apache-2.0 | 4,282 |
function QueryString()
{
this.parameters = [];
}
QueryString.prototype.parameters = function()
{
for ( var i = 0; i < arguments.length; i++ )
this.addValueParameter( arguments[i] );
}
QueryString.prototype.addValueParameter = function( name, identifier, decoder, encoder )
{
if ( identifier === undefin... | YingHsuan/termite_data_server | server_src/static/TermTopicMatrix1/js/QueryString.js | JavaScript | bsd-3-clause | 5,152 |
(async function(testRunner) {
var {page, session, dp} = await testRunner.startBlank(`
Tests that turning on device emulation with a non-1 device pixel ratio sets the
appropriate initial scale. Page scale is reflected by the innerWidth and
innerHeight properties. Since the layout width is set to 980 (in th... | nwjs/chromium.src | third_party/blink/web_tests/inspector-protocol/emulation/device-emulation-initial-scale.js | JavaScript | bsd-3-clause | 1,007 |
ReactIntl.__addLocaleData({"locale":"tk","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"},"fields":{"year":{"displayName":"Year","relative":{"0":"this year","1":"next year","-1":"last year"},"relativeTime":{"future":{"other":"+{0} y"},"past":{"other":"-{0} y"}}},"month":{"displayNam... | redbrick9/liquid | web-console/src/main/webapp/resources/react-intl/locale-data/tk.js | JavaScript | apache-2.0 | 966 |
/*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('pjax-base', function (Y, NAME) {
/**
`Y.Router` extension that provides the core plumbing for enhanced navigation
implemented using the pjax technique (HTML5 pushSta... | gdomingos/Wegas | wegas-resources/src/main/webapp/lib/yui3/build/pjax-base/pjax-base.js | JavaScript | mit | 15,159 |
'use strict';
/** Highest positive signed 32-bit float value */
const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
/** Bootstring parameters */
const base = 36;
const tMin = 1;
const tMax = 26;
const skew = 38;
const damp = 700;
const initialBias = 72;
const initialN = 128; // 0x80
const delimiter = '-'; // '\x2... | MTASZTAKI/ApertusVR | plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/lib/punycode.js | JavaScript | mit | 12,589 |
var TabsSelect = React.createClass({
getInitialState: function() {
return {
key: '1'
};
},
handleSelect: function(key) {
console.log('你点击了:', key);
this.setState({
key: key
});
},
render: function() {
return (
<Tabs defaultActiveKey={this.state.key} onSelect={this.... | Pyiner/amazeui-react | docs/tabs/03-select.js | JavaScript | mit | 1,461 |