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 |
|---|---|---|---|---|---|
'use strict';
function AccessDeniedError(message) {
this.name = 'AccessDeniedError';
var detail = message || 'Please check the permissions needed to perform this function.';
this.message = this.name + ': ' + detail;
Error.captureStackTrace(this, AccessDeniedError);
}
AccessDeniedError.prototype = Object.cre... | ArrowElectronics/aws-iot-dragonsense-js | lambda/lib/error/index.js | JavaScript | apache-2.0 | 2,281 |
/* ------------------------------------------------------------------------------
*
* # D3.js - multiple nested pie charts
*
* Demo d3.js multiple pie charts setup with nesting
*
* Version: 1.0
* Latest update: August 1, 2015
*
* --------------------------------------------------------------------... | iBase4J/iBase4J | iBase4J-UI/iBase4J-UI-DataTables/src/assets/js/charts/d3/pies/pie_multiple_nesting.js | JavaScript | apache-2.0 | 3,957 |
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Tip from 'grommet/components/Tip';
import Menu from 'grommet/components/Menu';
import Anchor from 'grommet/components/Anchor';
import DocsArticle from '../../components/DocsArticle';
import Code from '... | karatechops/grommet-docs | src/docs/components/TipDoc.js | JavaScript | apache-2.0 | 3,412 |
/*
* Copyright 2021 ThoughtWorks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | GaneshSPatil/gocd | server/src/main/webapp/WEB-INF/rails/spec/webpack/views/dashboard/dashboard_widget_spec.js | JavaScript | apache-2.0 | 19,337 |
/** @license
* Copyright 2015 - present 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
... | pbakaus/amp-publisher-sample | amp-pwa/src/index.js | JavaScript | apache-2.0 | 1,287 |
"use strict";
const {strict: assert} = require("assert");
const fs = require("fs");
const {JSDOM} = require("jsdom");
const {mock_esm, set_global, with_field, zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const $ = require("../zjsunit/zjquery");
const template = fs.read... | eeshangarg/zulip | frontend_tests/node_tests/billing.js | JavaScript | apache-2.0 | 7,403 |
/**
* AJAX without async
*/
$.ajax({
url: "",
dataType: "JSON",
data: {
arg1: "val"
},
type: "POST",
async: true,
timeout: 60000, // 1h
success: function (data) {
//
},
error: function (jqXHR, textStatus, error) {
var msg = textStatus + ": " + error;
... | Ju2ender/CommentLib | snippets/JavaScript.js | JavaScript | apache-2.0 | 1,304 |
import { clone } from '../../utils/object.js'
import { format } from '../../utils/string.js'
import { factory } from '../../utils/factory.js'
const name = 'transpose'
const dependencies = ['typed', 'matrix']
export const createTranspose = /* #__PURE__ */ factory(name, dependencies, ({ typed, matrix }) => {
/**
*... | FSMaxB/mathjs | src/function/matrix/transpose.js | JavaScript | apache-2.0 | 4,258 |
export default
function GetSourceTypeOptions(Rest, ProcessErrors, GetBasePath) {
return function(params) {
var scope = params.scope,
variable = params.variable;
if (scope[variable] === undefined) {
scope[variable] = [];
Rest.setUrl(GetBase... | GoogleCloudPlatform/sap-deployment-automation | third_party/github.com/ansible/awx/awx/ui/client/src/inventories-hosts/inventories/related/sources/factories/get-source-type-options.factory.js | JavaScript | apache-2.0 | 1,423 |
var app = angular.module('commentsApp', []);
var pageNumber = window.location.pathname
app.controller('CommentController', function($scope, $http) {
var updateCommentSection = function() {
$scope.comments = [];
$http({
method: 'GET',
url: '/svc/comments/get?page_number=' + pageNumber
}).then(function s... | Ivoirians/hour-a-day | 24/24.js | JavaScript | apache-2.0 | 1,194 |
define(
({
_widgetLabel: "Vejledninger",
searchPlaceholder: "Find adresse eller sted"
})
); | cob222/CPG | widgets/Directions/nls/da/strings.js | JavaScript | apache-2.0 | 107 |
Bridge.merge(new System.Globalization.CultureInfo("smn-FI", true), {
englishName: "Sami, Inari (Finland)",
nativeName: "anarâškielâ (Suomâ)",
numberFormat: Bridge.merge(new System.Globalization.NumberFormatInfo(), {
nanSymbol: "epiloho",
negativeSign: "-",
positiveSign: "+",
... | AndreyZM/Bridge | Bridge/Resources/Locales/smn-FI.js | JavaScript | apache-2.0 | 3,189 |
// Copyright 2015 Eryx <evorui аt gmаil dοt cοm>, 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 re... | hooto/hootopress | webui/hpm/js/spec-editor.js | JavaScript | apache-2.0 | 40,219 |
cordova.define("cordova-plugin-file.DirectoryEntry", function(require, exports, module) { /*
*
* 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. T... | kankanjam12/numaho | platforms/browser/www/plugins/cordova-plugin-file/www/DirectoryEntry.js | JavaScript | apache-2.0 | 4,790 |
/**
* Visual Blocks Editor
*
* Copyright 2011 Google Inc.
* http://blockly.googlecode.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/LICEN... | velniukas/blockly.cascading.jruby | core/inject.js | JavaScript | apache-2.0 | 11,453 |
const URL = "ftp://localhost/bug543805/";
var year = new Date().getFullYear().toString();
const tests = [
// AIX ls format
["-rw-r--r-- 1 0 11 Jan 1 20:19 nodup.file\r\n" +
"-rw-r--r-- 1 0 22 Jan 1 20:19 test.blankfile\r\n" +
"-rw-r--r-- 1 0 33 Apr 1 2... | sergecodd/FireFox-OS | B2G/gecko/netwerk/test/unit/test_bug543805.js | JavaScript | apache-2.0 | 3,520 |
var appLocale = {lc:{"ar":function(n){
if (n === 0) {
return 'zero';
}
if (n == 1) {
return 'one';
}
if (n == 2) {
return 'two';
}
if ((n % 100) >= 3 && (n % 100) <= 10 && n == Math.floor(n)) {
return 'few';
}
if ((n % 100) >= 11 && (n % 100) <= 99 && n == Math.floor(n)) {
return '... | cloud3edu/code-dot-org-old | dashboard/public/apps-package/js/pt_pt/maze_locale.js | JavaScript | apache-2.0 | 11,254 |
function includeJsFile(filename) {
document.write(
'<script src="'
+ CUI_INCLUDE_PATH + filename +
'" type="text/javascript"><\/script>'
);
}
function includeAbsJsFile(filename) {
document.write(
'<script src="'
+ filename +
'" type="text/j... | sanyaade-iot/canopy-web-ui | www/cui_include.js | JavaScript | apache-2.0 | 2,774 |
/**
* views -- render HTML/CSS with JS templating
*/
App.Views.EducationList = Backbone.View.extend({
classname : 'educationList_view',
tagName: 'div',
tmpl_url : '',
initialize: function(options){
this.options = options;
this.bind('change', this.render);
this.model = this.options.model;
this.collect... | haiyangxue/HMapVis | WebRoot/js/views/educationListView.js | JavaScript | apache-2.0 | 832 |
/*
** Copyright 2013 Google Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to i... | niezengying/liquid-galaxy-origin | public/touchscreen/js/map/earthpos.js | JavaScript | apache-2.0 | 1,977 |
"use strict";
const sinon = require('sinon')
, expect = require("chai").expect
, SecretStoreService = require("../../security/secret-store-service");
describe("Secret Store Tests", function () {
afterEach(function () {
sinon.restore();
});
it('Test read', function (done) {
const ... | ngageoint/mage-server | test/security/secret-store-service-test.js | JavaScript | apache-2.0 | 745 |
/**
* @license
* Copyright 2016 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
*
* Unless required by... | petermezei/angular2-cli | node_modules/tslint/lib/rules/restrictPlusOperandsRule.js | JavaScript | apache-2.0 | 3,786 |
$(document).ready(function () {
LlenarTabla();
//$(".Agregar").click(function () {
// $('#ModalAgregarTipoPregunta').modal('show');
//});
});
function LlenarTabla() {
$('#TablaTipoPreguntas').dataTable({
"processing": true,
"serverSide": true,
"bFilter": false,
... | isfon/CallCenter | Encuestas/Softv/SoftvMVC/dist/js/pages/TipoPregunta/Lista.js | JavaScript | apache-2.0 | 4,670 |
'use strict';
const chalk = require('chalk');
const fs = require('hexo-fs');
const pathFn = require('path');
const Promise = require('bluebird');
const COMPLETION_DIR = pathFn.join(__dirname, '../../completion');
function helpConsole(args) {
if (args.v || args.version) {
return this.call('version');
} else i... | zhengxiexie/blog | node_modules/hexo/node_modules/hexo-cli/lib/console/help.js | JavaScript | apache-2.0 | 3,183 |
/*
* Copyright 2016 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... | fbasso/ariatemplates | test/aria/widgets/wai/processingIndicator/ProcessingIndicatorOnSectionWithTabJawsTestCase.js | JavaScript | apache-2.0 | 980 |
(function() {
var AppWindow;
AppWindow = function(title, navHiddenFlag) {
var self = Ti.UI.createWindow({
title:title,
barColor:'#000000',
backgroundColor:'#ffffff'
});
self.hideNavBar();
self.addEventListener('focus', function(e){
... | kirou/books_app_list | sinkancheaker/Resources/ui/common/AppWindow.js | JavaScript | apache-2.0 | 442 |
/*
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
//>>built
define("dojo/_base/kernel",["../has","./config","require","module"],function(k,g,h,c){var f,b;f=function(){return ... | aconyteds/Esri-Ozone-Map-Widget | vendor/js/esri/arcgis_js_api/library/3.11/3.11compact/dojo/_base/kernel.js | JavaScript | apache-2.0 | 2,150 |
import Ember from 'ember';
const STATUS_HELP = {
pending: function(registration) {
return 'The application for ' + registration.sourceName + ' is being reviewed. Check back soon!';
},
accepted: function(registration) {
if (registration.directSource) {
return registration.sourceN... | chrisseto/ember-share | app/components/registration-status/component.js | JavaScript | apache-2.0 | 1,992 |
import * as Utils from '../utils';
describe('Utils', () => {
describe('mapToCssModules', () => {
describe('without css module', () => {
it('should return a string', () => {
expect(Utils.mapToCssModules('btn btn-primary')).toEqual(expect.any(String));
});
it('should return the classname... | GoogleCloudPlatform/prometheus-engine | third_party/prometheus_ui/base/web/ui/react-app/node_modules/reactstrap/src/__tests__/utils.spec.js | JavaScript | apache-2.0 | 11,343 |
// http://www.cnblogs.com/lyqf365/p/3287293.html
//
define(["dojo/_base/declare","esri/layers/tiled"], function(declare){
return declare(esri.layers.TiledMapServiceLayer, {
constructor: function() {
g_wkid = 4326;
g_width = 180;
g_height = 90;
this.spatialReference = new esri.SpatialRefer... | justasabc/map | test/js/tdt/all/TdtVectorAnnoLayer.js | JavaScript | apache-2.0 | 4,260 |
var clickJquerySelector = function(sel){
clickJqueryResult(jQuery(sel))
};
var clickJqueryResult = function($el){
var el = $el[0];
var etype = 'click';
clickDomElement(el, etype);
};
var followLink = function(operationFn, $sel){
alert("about to click a link: " + jQuery_text(operationFn, $sel, true));
... | swhgoon/wookie-view | src/main/resources/wookie/wookie.js | JavaScript | apache-2.0 | 3,494 |
//// [optionalParamAssignmentCompat.ts]
interface I1 {
(p1: number, p2: string): void;
}
interface I2 {
p1: I1;
m1(p1?: string): I1;
}
var i2: I2;
var c: I1 = i2.p1; // should be ok
var d: I1 = i2.m1; // should error
//// [optionalParamAssignmentCompat.js]
var i2;
var c = i2.p1;
var d = i2.m1;
| DickvdBrink/TypeScript | tests/baselines/reference/optionalParamAssignmentCompat.js | JavaScript | apache-2.0 | 316 |
/**
* @license
* Copyright 2015 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
*/
CLASS({
name... | mdittmer/foam | js/foam/graphics/HTMLGraph.js | JavaScript | apache-2.0 | 3,241 |
// Copyright 2015 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 applicable... | taimir/dashboard | src/app/frontend/common/resource/resourcedetail.js | JavaScript | apache-2.0 | 1,225 |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
export default [
[
... | N03297857/2017Fall | node_modules/@angular/common/locales/extra/eu.js | JavaScript | apache-2.0 | 968 |
function Monome( forest , whichHit , whichNote , mesh ){
this.forest = forest;
this.page = this.forest.page;
this.active = false;
this.selected = false;
this.hovered = false;
this.mesh = mesh;
this.mesh.visible = false;
this.mesh.monome = this; // For use in intersections
this.hit = whichHit;
... | passiweinberger/passiweinberger.github.io | fun/enough/js/pages/forest/Monome.js | JavaScript | apache-2.0 | 5,269 |
'use strict';
describe('E2E: tests for the page routing', function () {
it('should have a working / route', function () {
});
// describe('Employee Page', function() {
//
// beforeEach(function () {
// browser().navigateTo('/taxcalculator/#/employees');
// });
//
// it('should... | cegeka/batchers | taxcalculator/taxcalculator-presentation/src/test/js/e2e/e2e.routing.spec.js | JavaScript | apache-2.0 | 597 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: |
When the Object constructor is called with one argument value and
the type of value is Number, return ToObject(number)
es5id: 15.2.2.1_A5_T3
description: Argument va... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Object/S15.2.2.1_A5_T3.js | JavaScript | bsd-2-clause | 1,041 |
"use strict";
const batch_size = 1100;
class DataGenerator {
constructor() {
this._enabled = false;
this._data = [];
}
enable() {
this._enabled = true;
}
disable() {
this._enabled = false;
}
next() {
if (!this._enabled) {
return false;
... | qminer/qtopology | demo/local_massive/spout_common.js | JavaScript | bsd-2-clause | 1,584 |
Ext.define('icc.view.idatabase.Statistic.Grid', {
extend: 'Ext.grid.Panel',
alias: 'widget.idatabaseStatisticGrid',
requires: ['icc.common.Paging', 'icc.view.common.Combobox.Boolean'],
collapsible: false,
closable: false,
multiSelect: false,
disableSelection: false,
sortableColumns: false,
initComponent: funct... | shanghaiyangming/iCC | public/js/app/view/idatabase/Statistic/Grid.js | JavaScript | bsd-3-clause | 2,886 |
// Generated by IcedCoffeeScript 1.7.1-c
(function() {
var ACCTYPES, BTC, CHECK, E, Link, LinkTable, Proof, ProofSet, SHA256, ST, SigCache, SigChain, Warnings, asyncify, athrow, bitcoyne, cheerio, colors, constants, date_to_unix, db, deq, dict_union, env, format_fingerprint, fs, iced, libkeybase, log, make_email, mak... | keybase/node-client | lib/sigchain.js | JavaScript | bsd-3-clause | 32,606 |
require('chai').should();
var fakeweb = require('node-fakeweb');
var path = require('path');
var helper = require(path.join(__dirname, '..', '..', 'support',
'locker-helper.js'));
var follows = require(path.join('services', 'instagram', 'follows.js'));
var feed = require(path.join('services', 'instagram', 'feed.js'... | Singly/hallway | test/lib/services/instagram.test.js | JavaScript | bsd-3-clause | 1,802 |
"use strict";
var assert = require("@sinonjs/referee").assert;
var proxyquire = require("proxyquire");
var colors = [
{ name: "bold", code: 1 },
{ name: "cyan", code: 96 },
{ name: "green", code: 32 },
{ name: "red", code: 31 },
{ name: "white", code: 39 },
];
describe("color", function () {
... | cjohansen/Sinon.JS | test/util/core/color-test.js | JavaScript | bsd-3-clause | 1,950 |
/**
* Copyright 2015, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import Ember from 'ember';
import {
moduleFor, test
}
from 'ember-qunit';
var options, validator, message;
var set = Ember.set;
moduleFor('validator:length', 'Unit | Validator | len... | rwjblue/ember-cp-validations | tests/unit/validators/length-test.js | JavaScript | bsd-3-clause | 2,272 |
function calculateLateDays(inputDate){
let select_menu = document.getElementById("g_id");
if(select_menu.selectedIndex === 0){
alert("Please select a gradeable first!");
return;
}
var due_date_value = select_menu.options[select_menu.selectedIndex].getAttribute("data-due-date");
var n... | RCOS-Grading-Server/HWserver | site/public/js/latedays.js | JavaScript | bsd-3-clause | 3,172 |
describe('Token Manager', function() {
"use strict";
var should = require('should');
var util = require('util');
var async = require('async');
var SIS = require("../util/constants");
var TestUtil = require('./fixtures/util');
var LocalTest = new TestUtil.LocalTest();
var schemaManager ... | sis-cmdb/sis-api | test/test-tokenmanager.js | JavaScript | bsd-3-clause | 8,718 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("uicolor","tr",{title:"UI Renk Seçicisi",preview:"Canlı önizleme",config:"Bu dizeyi config.js dosyasının içine yapıştırın",predefined:"Önceden ... | stsoft/printable | assets/f83cf217/js/ckeditor/plugins/uicolor/lang/tr.js | JavaScript | bsd-3-clause | 366 |
/*
* Copyright (c) 2014 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
'use strict';
// Utilities to allow googletest style tests of apps / extensions.
/**
* @namespace.
*/
var chrometest = {};
/**
* @p... | binji/naclports | chrome_test/chrome_test.js | JavaScript | bsd-3-clause | 24,289 |
'use strict';
var t = require('babel-types');
/**
* Try to find the part of JavaScript a comment is referring to, by
* looking at the syntax tree closest to that comment.
*
* @param {Object} path abstract syntax tree path
* @returns {?Object} ast path, if one is found.
* @private
*/
function findTarget(path) {... | devierol/heroku-gjs | node_modules/documentation/lib/infer/finders.js | JavaScript | bsd-3-clause | 900 |
define([
"intern",
"intern!object",
"intern/dojo/node!leadfoot/helpers/pollUntil",
"intern/chai!assert",
"intern/dojo/node!leadfoot/keys",
"require"
], function (intern, registerSuite, pollUntil, assert, keys, require) {
function loadFile(remote, url) {
return remote
.get(require.toUrl(url))
.then... | cjolif/deliteful | tests/functional/Switch.js | JavaScript | bsd-3-clause | 6,690 |
/************
TODO :
TEL ALEXANDRE 21.01.2016
- tooltip entreprise: quel département paie ? quelle catégorie de services ?
- catégories: nettoyer données pour n'avoir que les 22 catégories principales
- prévoir chargement des données avec un fichier par année / langue
A DISCUTER
~ - quoi afficher dans détails
√ - co... | evequozf/Swiss_Procurement-LeMatinDimanche | src/js/TODO.js | JavaScript | bsd-3-clause | 2,834 |
var isCommonJS = typeof window == "undefined" && typeof exports == "object";
/**
* Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework.
*
* @namespace
*/
var jasmine = {};
if (isCommonJS) exports.jasmine = jasmine;
/**
* @private
*/
jasmine.unimplementedMethod_ = function() {
... | NCIP/cadsr-cdecurate | test/js/vendors/jasmine-1.3.0.js | JavaScript | bsd-3-clause | 74,838 |
// 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.
cr.define('help', function() {
var Page = cr.ui.pageManager.Page;
var PageManager = cr.ui.pageManager.PageManager;
/**
* Encapsulated handling o... | danakj/chromium | chrome/browser/resources/help/help_page.js | JavaScript | bsd-3-clause | 25,344 |
/* jslint indent: 2 */
/* global $: false, document: false, togglbutton: false */
'use strict';
togglbutton.render('.review-request:not(.toggl)', { observe: true }, function () {
const description = $('#field_summary').textContent;
const projectName = $('#field_repository').textContent;
const li = document.creat... | glensc/toggl-button | src/scripts/content/reviewboard.js | JavaScript | bsd-3-clause | 560 |
'use strict';
angular.module("ngLocale", [], ["$provide", function ($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"\u0e01\u0e48\u0e2d\u0e19\u0e40... | mudunuriRaju/tlr-live | tollbackend/web/js/angular-1.5.5/i18n/angular-locale_th.js | JavaScript | bsd-3-clause | 5,171 |
// Copyright (c) 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.
var Event = require('org.chromium.common.events');
var exec = cordova.require('cordova/exec');
var callbackWithError = require('org.chromium.common.err... | hgl888/mobile-chrome-apps | chrome-cordova/plugins/chrome.sockets.tcpServer/sockets.tcpServer.js | JavaScript | bsd-3-clause | 2,960 |
/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the 2-clause BSD license.
* See license.txt in the OpenLayers distribution or repository for the
* full text of the license. */
/**
* @requires OpenLayers/Layer/Grid.js
*/
/**
* Class: OpenL... | girc/dmis | common/asset-files/openlayers/ol2/lib/OpenLayers/Layer/TMS.js | JavaScript | bsd-3-clause | 7,272 |
var client;
self.addEventListener('crossoriginconnect', function(event) {
client = event.client;
event.acceptConnection(true);
});
self.addEventListener('crossoriginmessage', function(event) {
client.postMessage(event.data, event.ports);
});
navigator.services.addEventListener('connect', function(event) {
eve... | crosswalk-project/blink-crosswalk | LayoutTests/http/tests/navigatorconnect/resources/echo-worker.js | JavaScript | bsd-3-clause | 396 |
import Career from './Profile/Public/CareerRow';
import { connect } from 'react-redux';
import { connectScreenSize } from 'react-screen-size';
import { defaultUser } from '../../reducers/user';
import FCCStatTables from './Profile/Public/FCCTables';
import { isEmpty } from 'lodash';
import { isGitterUser } from '../../... | FCC-Alumni/alumni-network | client/src/components/dashboard/PublicProfile.js | JavaScript | bsd-3-clause | 14,156 |
import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import Header from './Header';
const mockProps = ( overrides) => ({ // eslint-disable-line no-unused-vars
user: {},
ws_notification: [],
consumeNotification: () => {},
...overrides
});
const wrapper = shallow(<Header ... | karuppiah7890/Mail-for-Good | client/components/admin-lte/Header.spec.js | JavaScript | bsd-3-clause | 474 |
// Copyright 2013 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.
/**
* @param {!VolumeManager} volumeManager
* @constructor
* @struct
* @suppress {checkStructDictInheritance}
* @extends {cr.EventTarget}
*/
functio... | mou4e/zirconium | ui/file_manager/file_manager/background/js/file_operation_manager.js | JavaScript | bsd-3-clause | 13,298 |
/*eslint-env mocha*/
/*global BOOMR_test,assert*/
describe("e2e/14-errors/12-events-xhr", function() {
var tf = BOOMR.plugins.TestFramework;
var t = BOOMR_test;
var C = BOOMR.utils.Compression;
if (!BOOMR.plugins.AutoXHR) {
it("Skipping on non-AutoXHR supporting browser", function() {
return this.skip();
}... | lognormal/boomerang | tests/page-templates/14-errors/12-events-xhr.js | JavaScript | bsd-3-clause | 3,935 |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2012, 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 sou... | paladox/ace | lib/ace/mode/terraform.js | JavaScript | bsd-3-clause | 2,495 |
var searchData=
[
['check_5fpersistent_5fptr_5farray_2ehpp_237',['check_persistent_ptr_array.hpp',['../check__persistent__ptr__array_8hpp.html',1,'']]],
['common_2ehpp_238',['common.hpp',['../common_8hpp.html',1,'']]],
['condition_5fvariable_2ehpp_239',['condition_variable.hpp',['../condition__variable_8hpp.html'... | pbalcer/pbalcer.github.io | content/libpmemobj-cpp/v1.5/doxygen/search/files_1.js | JavaScript | bsd-3-clause | 525 |
'use strict'
var path = require('path')
, urltils = require('./util/urltils')
, logger = require('./logger').child({component : 'error_tracer'})
, NAMES = require('./metrics/names')
/*
*
* CONSTANTS
*
*/
var MAX_ERRORS = 20
/**
* Given either or both of a transaction and an exception, generate an... | jakeleboeuf/campaign-scraper | node_modules/newrelic/lib/error.js | JavaScript | mit | 7,704 |
import { Observable } from 'rxjs/Observable';
import 'firebase/database';
import * as utils from './utils';
export class FirebaseListObservable extends Observable {
constructor($ref, subscribe) {
super(subscribe);
this.$ref = $ref;
}
lift(operator) {
const observable = new FirebaseLi... | Jeck99/At-T | node_modules/angularfire2/database/es2015/firebase_list_observable.js | JavaScript | mit | 2,380 |
KISSY.add(function(S,Cookie) {
describe('cookie', function() {
if (location.protocol === 'file:') {
return;
}
describe('get', function() {
document.cookie = '_ks_test_1=1';
document.cookie = '_ks_test_2=';
document.cookie = '_ks_test_3=';
... | 110035/kissy | src/cookie/tests/specs/index.js | JavaScript | mit | 2,281 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeof2 = require('babel-runtime/helpers/typeof');
var _typeof3 = _interopRequireDefault(_typeof2);
var _bluebird = require('bluebird');
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 ... | sblausten/makersbnb | node_modules/cucumber/lib/cli/profile_loader.js | JavaScript | mit | 2,638 |
'use strict';
var mocha = require('gulp-mocha');
var istanbul = require('gulp-istanbul');
var config = require('../config');
module.exports = function (gulp) {
gulp.task('test', ['lint'], function (cb) {
gulp.src(['!' + config.paths.cliFile].concat(config.paths.lib))
.pipe(istanbul({
includeUntest... | nachos/nachos-home | gulp/tasks/test.js | JavaScript | mit | 647 |
import React, {Component, PropTypes} from 'react';
import RadioButton from '../RadioButton';
import warning from 'warning';
class RadioButtonGroup extends Component {
static propTypes = {
/**
* Should be used to pass `RadioButton` components.
*/
children: PropTypes.node,
/**
* The CSS clas... | frnk94/material-ui | src/RadioButton/RadioButtonGroup.js | JavaScript | mit | 4,300 |
if(!dojo._hasResource["dojox.highlight.languages._all"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo._hasResource["dojox.highlight.languages._all"] = true;
dojo.provide("dojox.highlight.languages._all");
/* groups of similar languages */
dojo.require("dojox.highlight.lang... | simonbates/bitstructures | js/dojo-1.1.1/dojox/highlight/languages/_all.js | JavaScript | mit | 441 |
var bunyan = require('bunyan');
var PrettyStream = require('bunyan-prettystream');
var prettyStdOut = new PrettyStream();
prettyStdOut.pipe(process.stdout);
var config = {
name: 'coregi',
streams: [
{
level: process.env.LOG_LEVEL || 'info',
type: 'raw',
stream: prettyStdOut
},
{
... | yodlr/CoreGI | lib/logger.js | JavaScript | mit | 504 |
define([
"jquery",
"underscore",
"storage",
"crel",
"xregexp",
"stacktrace",
"FileSaver"
], function($, _, storage, crel, XRegExp, printStackTrace, saveAs) {
var utils = {};
utils.msie = (function() {
/**
* IE 11 changed the format of the UserAgent string.
* See http://msdn.microsoft.com/en-us/librar... | swsmile/Wiz.StackEdit | stackedit/public/res/utils.js | JavaScript | mit | 23,461 |
// minifier: path aliases
enyo.path.addPaths({layout: "C://Users/Jason/Documents/My Dropbox/Public/org.webosports.app.calculator-master/enyo/../lib/layout/", onyx: "C://Users/Jason/Documents/My Dropbox/Public/org.webosports.app.calculator-master/enyo/../lib/onyx/", onyx: "C://Users/Jason/Documents/My Dropbox/Public/or... | JayCanuck/enyo-bookmarklet | example/build/app.js | JavaScript | mit | 107,937 |
const { join } = require('path')
const { existsSync } = require('fs-extra')
module.exports = ({ base, template }) => {
const localPath = join(base, 'templates', template)
const npmPath = join(base, 'node_modules', template)
if (existsSync(localPath)) {
return localPath
}
let name = template
try {
... | AcyOrt/acyort | lib/config/template.js | JavaScript | mit | 650 |
(function() {
'use strict';
app.controller('profileCtrl', ['api', 'constants','commonFactory','url', 'localStorageService',
function(api, constants,commonFactory, url, localStorageService) {
var profile = this;
var profileCallConfig = {
url: url.user.me
};
api.exe... | colorgap/bowyer | themes/bootstrap/dashboard/app/modules/dashboard/profile/profileController.js | JavaScript | mit | 992 |
import BaseSyntax from './base.js';
/**
* The class to define the TemplateElement syntax
*
* @class TemplateElement
*/
export default
class TemplateElement extends BaseSyntax {
/**
* Create a template literal
*
* @constructor
*/
constructor() {
super('TemplateElement');
this.value = {r... | bigsan/xto6 | src/syntax/template-element.js | JavaScript | mit | 553 |
//
// Sets up intial project settings, middleware, mounted apps, and
// global configuration such as overriding Backbone.sync and
// populating sharify data
//
var express = require('express'),
Backbone = require('backbone'),
sharify = require('sharify'),
path = require('path'),
fs = require('fs');
mo... | artsy/ezel | src/js-clean/lib/setup.js | JavaScript | mit | 1,968 |
'use strict';
const rp = require('minimal-request-promise');
const prompt = require('souffleur');
const tlReply = require('./reply');
const tlParse = require('./parse');
const color = require('../console-colors');
module.exports = function tlSetup(api, bot, logError, optionalParser, optionalResponder) {
let parser ... | IvanJov/claudia-bot-builder | lib/telegram/setup.js | JavaScript | mit | 2,461 |
import inatjs from "inaturalistjs";
import { showAlert } from "./alert_actions";
const POST_COMMENT = "post_comment";
function postComment( params ) {
return function ( dispatch ) {
const body = Object.assign( {}, params );
// TODO handle error state
return inatjs.comments.create( body ).catch( e => {
... | calonso-conabio/inaturalist | app/webpack/observations/identify/actions/comment_actions.js | JavaScript | mit | 651 |
"use strict";
var dgram = require("dgram");
var mersenne = require("./mersenne");
var mt = new mersenne.MersenneTwister19937();
var EPHEMERAL_LIFETIME_MS = 1000;
var Client = function(host, port, socket, options) {
this.host = host || "localhost";
this.port = port || 8125;
// optional shared socket
... | BlueRival/node-dogstatsd | lib/statsd.js | JavaScript | mit | 4,955 |
import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... | yhx0634/foodshopfront | node_modules/antd/es/date-picker/wrapPicker.js | JavaScript | mit | 4,473 |
/*
* 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.
*/
/... | lmazuel/azure-sdk-for-node | lib/services/resourceManagement/lib/policy/models/index.js | JavaScript | mit | 1,145 |
/*!
* Ext JS Connect
* Copyright(c) 2010 Sencha Inc.
* MIT Licensed
*/
/**
* Module dependencies.
*/
var Buffer = require('buffer').Buffer;
/**
* Cache in memory for the given `cacheDuration`.
*
* @param {Number} cacheDuration
* @return {Function}
* @api public
*/
module.exports = function cache(cacheD... | nko/showoff.js | vendor/connect/lib/connect/middleware/cache.js | JavaScript | mit | 3,782 |
/**
* @file
* User related utility functions.
*/
var userHelper = module.exports = {
createUser: function(application, roles, callback) {
var User = application.type('user');
var account = userHelper.sample();
account.roles = roles;
User.validateAndSave(account, function(error, user) {
cal... | recidive/choko | test/lib/userHelper.js | JavaScript | mit | 817 |
'use strict';
var SfTextSettingsPage = function() {
// currently this page is called questions-settings.html but will be refactored. IJH 2014-06
this.tabs = {
editText: element(by.linkText('Edit Text')),
archiveQuestions: element(by.linkText('Archived Questions')),
audioFile: element(by.l... | sil-jterm-2015/sfwebchecks | test/app/scriptureforge/sfchecks/pages/textSettingsPage.js | JavaScript | mit | 2,049 |
/*!jQuery Knob*/
/**
* Downward compatible, touchable dial
*
* Version: 1.2.0 (15/07/2012)
* Requires: jQuery v1.7+
*
* Copyright (c) 2012 Anthony Terrien
* Under MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Thanks to vor, eskimoblood... | nlkhagva/educenter.mn | web/frontend/assets/js/jquery.knob.js | JavaScript | mit | 20,736 |
const personalData = require('./personalData');
const webModel = require('./webModel');
const robotModel = require('./robotModel');
const webModelFunctions = require('./webModelFunctions');
const EddystoneBeaconScanner = require('eddystone-beacon-scanner');
const inRoomDistance = 15;
const lostSignalTimeout = 120; // S... | DTU-R3/ArloBot | node/BluetoothBeaconScanner.js | JavaScript | mit | 4,893 |
define({
"_widgetLabel": "適合性モデラー",
"general": {
"clear": "消去",
"cancel": "キャンセル",
"save": "実行",
"saveAs": "エクスポート"
},
"saveModel": {
"save": "エクスポート",
"title": "タイトル: ",
"summary": "サマリー: ",
"description": "説明: ",
"tags": "タグ: ",
"folder": "フォルダー: ",
"homeFolderPatte... | tmcgee/cmv-wab-widgets | wab/2.15/widgets/SuitabilityModeler/nls/ja/strings.js | JavaScript | mit | 6,543 |
/****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2008-2010 Ricardo Quesada
Copyright (c) 2011 Zynga Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this sof... | SapientNitroLA/profiling-the-frontend | cocos2dx/HelloHTML5World/src/myApp.js | JavaScript | mit | 5,180 |
define(['iframeResizer'], function(iFrameResize) {
describe('Parent Page', function() {
describe('reset Page', function() {
var iframe;
var log=LOG;
var testId = 'parentPage1';
beforeEach(function(done){
loadIFrame('iframe600.html');
iframe = iFrameResize({
log:log,
id:testId
})[... | kalwar/iframe-resizer | spec/parentSpec.js | JavaScript | mit | 1,751 |
const TetherBase = {modules: []};
let zeroElement = null;
// Same as native getBoundingClientRect, except it takes into account parent <frame> offsets
// if the element lies within a nested document (<frame> or <iframe>-like).
function getActualBoundingClientRect(node) {
let boundingRect = node.getBoundingClientRec... | mohammed52/something.pk | node_modules/reactstrap-tether/src/js/utils.js | JavaScript | mit | 8,670 |
var isDate = require('../lang/isDate');
/**
* return the day of the year (1..366)
*/
function dayOfTheYear(date){
return (Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()) -
Date.UTC(date.getFullYear(), 0, 1)) / 86400000 + 1;
}
module.exports = dayOfTheYear;
| thomjoy/sydney-buses | node_modules/bower/node_modules/mout/date/dayOfTheYear.js | JavaScript | mit | 302 |
module.exports = rotate
/**
* Rotates a mat2 by the given angle
*
* @alias mat2.rotate
* @param {mat2} out the receiving matrix
* @param {mat2} a the matrix to rotate
* @param {Number} rad the angle to rotate the matrix by
* @returns {mat2} out
*/
function rotate(out, a, rad) {
var a0 = a[0], a1 = a[1], a2 =... | oudalab/fajita | node_modules/plotly.js/node_modules/ndarray-homography/node_modules/gl-matrix-invert/node_modules/gl-mat2/rotate.js | JavaScript | mit | 512 |
// Flags: --expose-internals
'use strict';
const common = require('../common');
const assert = require('assert');
const { fork } = require('child_process');
const http = require('http');
if (process.argv[2] === 'child') {
process.once('message', (req, socket) => {
const res = new http.ServerResponse(req);
... | enclose-io/compiler | current/test/parallel/test-child-process-http-socket-leak.js | JavaScript | mit | 1,307 |
/*jshint -W104 */
'use strict';
const
Transmitter = require('./transmitter'),
RfxCom = require('./rfxcom');
/*
* This is a class for controlling Lighting6 lights.
*/
class Lighting6 extends Transmitter {
constructor(rfxcom, subtype, options) {
super(rfxcom, subtype, options);
this.packetT... | kalemena/node-rfxcom | lib/lighting6.js | JavaScript | mit | 2,800 |
var Router = require('koa-router');
var Role = require('../../lib/role');
var Middleware = require('../../lib/middleware');
var router = module.exports = new Router();
router.use(Middleware.allow('admin.roles'));
router.get('/admin/api/roles', function *() {
var page = parseInt(this.request.query.page) || 1;
var ... | leonlin14/OpenStackHackathon | routes/admin/roles.js | JavaScript | mit | 1,550 |
angular
.module('angularCancelOnNavigateModule', [])
.config(function($httpProvider) {
$httpProvider.interceptors.push('HttpRequestTimeoutInterceptor');
})
.run(function ($rootScope, HttpPendingRequestsService) {
$rootScope.$on('$locationChangeSuccess', function (event, newUrl, oldUrl) {
if (newUr... | trgpwild/angular-cancel-on-navigate | src/angularCancelOnNavigateModule.js | JavaScript | mit | 404 |
define([
'matreshka_dir/core/var/core',
'matreshka_dir/core/var/sym',
'matreshka_dir/core/initmk'
], function(core, sym, initMK) {
"use strict";
var unbindNode = core.unbindNode = function(object, key, node, evt) {
if (!object || typeof object != 'object') return object;
initMK(object);
var type = typeof ... | finom/ru.coding.farm | matreshka/src/core/bindings/unbindnode.js | JavaScript | mit | 2,986 |
var exampleOutput = function(id, content) {
var outputDiv = document.getElementById(id);
if (outputDiv && outputDiv.childNodes && outputDiv.childNodes[0]) {
outputDiv.replaceChild(document.createTextNode(content), outputDiv.childNodes[0]);
} else {
outputDiv.appendChild(document.createTextNode(content));... | alsoscotland/react-super-select | src_docs/super-selects/support/example-output.js | JavaScript | mit | 362 |