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 |
|---|---|---|---|---|---|
const { util, callNativeFunction, onNativeEvent } = require('@neft/core')
const xhr = process.env.NEFT_BROWSER ? require('./xhr') : null
const NATIVE_PREFIX = 'NeftRequest'
const REQUEST = `${NATIVE_PREFIX}/request`
const ON_RESPONSE = `${NATIVE_PREFIX}/response`
const METHODS = ['get', 'post', 'put', 'patch', 'delete... | Neft-io/neft | packages/neft-request/index.js | JavaScript | apache-2.0 | 2,622 |
/*
* Copyright 2020 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | GoogleForCreators/web-stories-wp | packages/patterns/src/test/generatePatternStyles.js | JavaScript | apache-2.0 | 7,061 |
/* eslint new-cap:0 */
/**
* TODO (imlucas): If we add this as a `--require`
* option to mocha config, tests will be much cleaner
* as everything on exports will be a global?
*/
process.env.NODE_ENV = 'testing';
var supertest = require('supertest');
var assert = require('assert');
var app = require('../');
var for... | mongodb-js/scope-server | test/helper.js | JavaScript | apache-2.0 | 4,265 |
/**
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"... | Icenium/cordova-cli | spec/serve.spec.js | JavaScript | apache-2.0 | 4,922 |
/* global studentQuery */
import $ from 'jquery';
import _ from 'underscore';
import Promise from 'bluebird';
import datatables from 'datatables';
import datatablesJqueryUi from 'datatables.jqueryui';
export default function() {
var getResultsTemplateAsync = fetch('/scripts/pt-student-search/html/results.html', {
... | IronCountySchoolDistrict/pt-student-search | src/scripts/pt-student-search/js/app.js | JavaScript | apache-2.0 | 1,547 |
import gtr from './global-translation.js'
import GraphicsHandler from './graphics-handler.js'
const ALPHA = Math.tan(30 * Math.PI / 180)
const CONTAINER = document.querySelector('.graphics-wrapper')
export default class IsometricGrid {
constructor () {
this.gh = new GraphicsHandler(CONTAINER)
this.gh.strok... | drpentagon/isometric-paint | src/isometric-grid.js | JavaScript | apache-2.0 | 2,177 |
const WebPageTest = require('webpagetest');
const { WPT_API_KEY, COMMIT_REF, URL } = process.env;
const request = require("request");
exports.handler = function(event, context) {
const wpt = new WebPageTest('https://www.webpagetest.org', WPT_API_KEY);
let opts = {
"firstViewOnly": true,
"runs"... | WPO-Foundation/webpagetest-docs | functions/deploy-succeeded.js | JavaScript | apache-2.0 | 1,382 |
var structnx__flow__monitor__request =
[
[ "flags", "structnx__flow__monitor__request.html#a590c62459e187ca0931176f00a169d3b", null ],
[ "id", "structnx__flow__monitor__request.html#af215a1cdbae5936ea48ebc93227660af", null ],
[ "match_len", "structnx__flow__monitor__request.html#a933abe9808bca5b5c6a82bb1487... | vladn-ma/vladn-ovs-doc | doxygen/ovs_all/html/structnx__flow__monitor__request.js | JavaScript | apache-2.0 | 637 |
angular.module('app', ['app.util'])
.config(function($interpolateProvider) {
$interpolateProvider.startSymbol('[[');
$interpolateProvider.endSymbol(']]');
})
.controller('BigCtrl', BigCtrl)
function BigCtrl(FlotServ, $scope, $interval, $timeout, $filter) {
var vm = this;
var urlH = '/dashboard/chart/... | codepiano/dashboard | rrd/static/js/big_ng.js | JavaScript | apache-2.0 | 3,254 |
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
TextInput,
View,
Image
} from 'react-native';
import DrawerNav from './src/routers/DrawerNav';
import TabNav from './src/routers/TabNav';
... | lincmin/FirstReactApp | App.js | JavaScript | apache-2.0 | 678 |
/*
* (c) Copyright 2016 Hewlett Packard Enterprise Development Company LP
*
* 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... | wolverineav/horizon | horizon/static/framework/widgets/magic-search/hz-magic-search-context.directive.js | JavaScript | apache-2.0 | 4,493 |
import assert from 'assert';
import bucketclient from 'bucketclient';
import BucketInfo from '../BucketInfo';
import { logger } from '../../utilities/logger';
import config from '../../Config';
const METADATA_DEFAULT_VERSION = 1;
class BucketClientInterface {
constructor() {
assert(config.bucketd.bootstr... | lucisilv/Silviu_S3-Antidote | lib/metadata/bucketclient/backend.js | JavaScript | apache-2.0 | 5,254 |
var test = require('tape');
var gen = require('../generators');
test('empty connection constraints', function(t) {
var c;
t.plan(1);
c = gen.connectionConstraints();
t.deepEqual(c, {});
}); | hanjo77/help-me | node_modules/rtc-quickconnect/node_modules/rtc-tools/test/generators-connection-constraints.js | JavaScript | apache-2.0 | 199 |
if ( typeof exports === 'object' && typeof exports.nodeName !== 'string' && typeof define !== 'function' ) {
var define = function( factory ) {
factory( require, exports, module );
};
}
/**
* @preserve Copyright 2012 Martijn van de Rijdt & Modi Labs
*
* Licensed under the Apache License, Version 2.0 ... | kobotoolbox/enketo-core | src/widget/time/timepicker-extended.js | JavaScript | apache-2.0 | 4,744 |
$.fn.GMaps = function(opts){
var defaults = {
useCluster: true,
gMapOptions:
{
center: new google.maps.LatLng(51.511307,-0.120163),
zoom: 12,
mapTypeId: google.maps.MapTypeId.ROADMAP,
},
gMapClustererOptions:
{
gridSize: 50,
maxZoom: 50
},
GMapsAPIScript: '../api.gmaps.php?act=get_all... | andy9l/jQuery.GMaps | js/src/jquery.gmaps.js | JavaScript | apache-2.0 | 2,144 |
Target = function(game, posX, posZ) {
this.game = game;
BABYLON.Mesh.call(this, "target", game.scene);
var vd = BABYLON.VertexData.CreateSphere(16, 5);
vd.applyToMesh(this, false);
// The game
this.game = game;
// Target position
this.position = new BABYLON.Vector3(posX, ... | j3camero/mmofps | js/Target.js | JavaScript | apache-2.0 | 782 |
var markdown = require('node-markdown').Markdown;
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loa... | NautSoft/angular-cesium | Gruntfile.js | JavaScript | apache-2.0 | 11,514 |
/**
* @license
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Touch handling for Blockly.
*/
'use strict';
/**
* Touch handling for Blockly.
* @namespace Blockly.Touch
*/
goog.module('Blockly.Touch');
const utilsString = goog.require('Blockly.utils.string');
/* esli... | rachel-fenichel/blockly | core/touch.js | JavaScript | apache-2.0 | 9,246 |
/* ========================================================================
* Bootstrap: button.js v3.0.0
* http://twbs.github.com/bootstrap/javascript.html#buttons
* ========================================================================
* Copyright 2013 Twitter, Inc.
*
* Licensed under the Apache License, Vers... | duereg/bootstrap-for-ember | dist/js/bs-button.max.js | JavaScript | apache-2.0 | 9,832 |
$(function(){
var colNames =[ 'ID', '名称', '值','备注', '新建日期','新建人', '更新日期', '更新人' ];
var colModel = [
{name : 'id',index : 'id'},
{name : 'name',index : 'name'},
{name : 'value',index : 'value'},
{name : 'remark',index : 'remark'},
{n... | bran4he/FruitSMSDemo | src/main/webapp/WEB-INF/static/js/pubConfig.js | JavaScript | apache-2.0 | 762 |
var isoFetch = require('isomorphic-fetch')
var patchRequest = require('./lib/patch-request')
var patchResponse = require('./lib/patch-response')
function fetch (url, options) {
return patchRequest(options).then(function (options) {
return isoFetch(url, options).then(function (res) {
return patchResponse(re... | BluelabUnifor/sunny-messeger | node_modules/watson-speech/node_modules/nodeify-fetch/index.js | JavaScript | apache-2.0 | 361 |
(function (TDI) {
'use strict';
QUnit.module('TDI.Ajax');
QUnit.test('TDI.Ajax.send: beforeStart/start/beforeEnd/end callbacks', function (assert) {
var done = assert.async();
assert.expect(4);
TDI.Ajax.send($('#tdi-ajax-send-href'), {
beforeStart: function () {
assert.ok(true, '#tdi-ajax-send-href: ... | twinstone/tdi | tests/tdi-ajax-tests.js | JavaScript | apache-2.0 | 7,033 |
(function () {
'use strict';
var module = angular.module('hz.dashboard', [
'hz.dashboard.launch-instance'
]);
module.constant('dashboardBasePath', '/static/dashboard/');
})();
| CiscoSystems/horizon | openstack_dashboard/static/dashboard/dashboard.module.js | JavaScript | apache-2.0 | 190 |
/*
* MindTouch API - javascript api for mindtouch
* Copyright (c) 2010 MindTouch Inc.
* www.mindtouch.com oss@mindtouch.com
*
* For community documentation and downloads visit developer.mindtouch.com;
* please review the licensing section.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* ... | yurigorokhov/mindtouch.api | src/string.js | JavaScript | apache-2.0 | 9,855 |
// Model for Tbpregunta entity
/**
*
*/
define(
[
// librerias javascript
'underscore', 'backbone' ],
function(_, Backbonel) {
var preguntaModel = Backbone.Model
.extend({// se extienden todos los métodos y atributos de
// la clase Backbone.Model en el modelo actual.
// valores predeter... | polieduco/preguntasrespuestas20162 | PQRsWEB/WebContent/js/models/pregunta/preguntaModel.js | JavaScript | apache-2.0 | 2,421 |
import GraphModule from './Graph'
import GraphController from './Graph.controller';
import GraphComponent from './Graph.component';
import GraphTemplate from './Graph.html';
describe('Graph', () => {
let $rootScope, makeController;
beforeEach(window.module(GraphModule.name));
beforeEach(inject((_$rootScope_) =>... | HealthForge/hackday-nhs-14may2016 | client/app/components/graph/graph.spec.js | JavaScript | apache-2.0 | 1,514 |
gXMLBuffer ="<?xml version='1.0' encoding='utf-8' ?> <project homepage=\"overview-summary.html\" langid=\"2052\" datapath=\"whxdata\" toc=\"whtoc.xml\" index=\"whidx.xml\" fts=\"whfts.xml\" glossary=\"whglo.xml\" brs=\"whbrs.xml\" > </project>"; | SuperMap/iClient-Android-Example | help/html/mergedProjects/forAndroidJavaDoc/whproj_xml.js | JavaScript | apache-2.0 | 247 |
import React from 'react';
import ReactDOM from 'react-dom';
import joint from 'jointjs/index';
import { connect } from 'react-redux'
import Shapes from 'jointjs-configuration/Shapes'
class Graph extends React.Component {
constructor(props) {
super(props);
this.graph = new joint.dia.Graph();
}... | vgudzhev/DiagramTool | source/src/components/Design/playground.js | JavaScript | apache-2.0 | 1,302 |
import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import queryString from 'query-string';
import { hot } from 'react-hot-loader';
import { AppContextMenu, Route, Switch, IfPermission } from '@folio/stripes/core';
import {
NavList,
NavListItem,
NavListSe... | folio-org/ui-users | src/index.js | JavaScript | apache-2.0 | 7,326 |
$(document).ready(function() {
var bodyId="addDetectionBody";
var detectionUserDg="detectionUserDg";
var deviceItemDg="deviceItemTable";
$('#'+detectionUserDg).datagrid({
//工具栏
toolbar: [{
text:'增加维修人员',
iconCls: 'icon-add',
handler: function(){
... | huanxu20011572/evm | evm/src/main/webapp/js/addOrderDetection.js | JavaScript | apache-2.0 | 11,142 |
var models = require('../models');
var marked = require('marked');
var async = require('async');
var moment = require('moment');
var config = require('../config');
var helpers = require( '../helpers' );
moment.lang(config.lang);
exports.index = function (req, res) {
async.parallel({
blog: function (callba... | nodenica/nodenica-website | controllers/home.js | JavaScript | apache-2.0 | 2,296 |
var DOMParser = require('xmldom').DOMParser,
XmlSerializer = require('xmldom').XMLSerializer,
documentCreator = require("../Model/Document.js"),
DocumentStatusCode = require("../Model/Enum/enum.js").DocumentStatusCode,
Q = require("q");
_ = require("underscore");
//etl = extract, transform, load
... | lantanagroup/SEE-Tool | utils/etl.js | JavaScript | apache-2.0 | 4,755 |
$(function() {
changeType();
});
function changeType() {
if ($("#type").val() == "P") {
$("#personal").css("display", "block");
$("#enterprise").css("display", "none");
$("#pe_area_select").show();//Ç¿ÖÆÏÔʾ
$("#en_area_select").hide();//Ç¿ÖÆÒþ²Ø£¬±ÜÃâÔÚIE6Ï¿ÉÄܵÄÒþ»¼
/*****±ÜÃâÒòΪnameÖµÒ»Ñù´Ó¶... | hnccfr/ccfrweb | admin/WebContent/scripts/user/register.js | JavaScript | apache-2.0 | 8,822 |
chorus.dialogs.RenameWorkfile = chorus.dialogs.Base.include(chorus.Mixins.DialogFormHelpers).extend({
constructorName: "RenameWorkfileDialog",
templateName: "rename_workfile_dialog",
title: t("workfile.rename_dialog.title"),
additionalContext: function(){
var isSql = this.model.isSql();
... | nvoron23/chorus | app/assets/javascripts/dialogs/workfiles/rename_workfile_dialog.js | JavaScript | apache-2.0 | 1,124 |
import React, { Component } from 'react';
import { connect } from 'react-redux'
import { isAdmin } from '../../utility';
import {
Modal,
} from 'react-modal-bootstrap'
import themes from './data/Themes'
import Select from "react-select";
import { serviceurl } from '../../config/serviceurl'
class Settings extends ... | giux78/daf-dataportal | src/views/Settings/Settings.js | JavaScript | apache-2.0 | 19,903 |
'use strict';
angular.module('cloudworkerApp')
.config(function ($stateProvider) {
$stateProvider
.state('health', {
parent: 'admin',
url: '/health',
data: {
authorities: ['ROLE_ADMIN'],
pageTitle: 'Health c... | CloudWorkers/cloudworker | server/src/main/webapp/scripts/app/admin/health/health.js | JavaScript | apache-2.0 | 668 |
// Copyright 2017 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... | google/upvote_py2 | upvote/gae/modules/upvote_app/frontend/web_ui/components/common/common-filter.js | JavaScript | apache-2.0 | 5,008 |
/*************************************************************************
*
* INFIVERVE TECHNOLOGIES PTE LIMITED CONFIDENTIAL
* __________________
*
* (C) INFIVERVE TECHNOLOGIES PTE LIMITED, SINGAPORE
* All Rights Reserved.
* Product / Project: Flint IT Automation Platform
* NOTICE: All information ... | getflint/flint-util | windows/windows_service_status.js | JavaScript | apache-2.0 | 3,557 |
#!/usr/bin/env node
(function () {
"use strict";
var net = require('net'),
socket = '/tmp/node-mc-test.sock',
multicast = new (require('./multicaster')),
message = "Hello World",
count = 0;
function sendData() {
multicast.write(message);
}
function attachClients() {
var count = 5, i... | coolaj86/node-examples-js | multicaster-test.js | JavaScript | apache-2.0 | 1,338 |
'use strict';
var express = require('express');
var app = express();
// Socket.io ways to build connection
var server = require('http').createServer(app);
var io = require('socket.io').listen(server);
// the socket that will be used to subscribe to pub/sub server
var subSocket = require('./lib/subscribe');
// badge... | aramisf/csbadges-live-stream | webserver/app.js | JavaScript | artistic-2.0 | 1,472 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/ary-ptrn-elem-id-init-undef.case
// - src/dstr-binding/default/func-decl.template
/*---
description: Destructuring initializer with an undefined value (function declaration)
esid: sec-function-definitions-runtime-semantics-instant... | sebastienros/jint | Jint.Tests.Test262/test/language/statements/function/dstr-ary-ptrn-elem-id-init-undef.js | JavaScript | bsd-2-clause | 1,933 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/ary-ptrn-rest-id-elision.case
// - src/dstr-binding/default/gen-meth.template
/*---
description: Rest element following elision elements (generator method)
esid: sec-generator-function-definitions-runtime-semantics-propertydefinit... | sebastienros/jint | Jint.Tests.Test262/test/language/expressions/object/dstr-gen-meth-ary-ptrn-rest-id-elision.js | JavaScript | bsd-2-clause | 2,535 |
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 23.4.1.1
esid: sec-weakset-iterable
description: >
The WeakSet constructor is the %WeakSet% intrinsic object and the initial
value of the WeakSet property of the glo... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/WeakSet/undefined-newtarget.js | JavaScript | bsd-2-clause | 558 |
'use strict'
exports = module.exports
exports.table = [
0x3935ea, 0x1c9af5, 0xf1b77e, 0x78dbbf, 0xc397db, 0x9e31e9, 0xb0e2f0,
0x587178, 0x2c38bc, 0x161c5e, 0x0b0e2f, 0xfa7d13, 0x82c48d, 0xbe9842,
0x5f4c21, 0xd05c14, 0x682e0a, 0x341705, 0xe5f186, 0x72f8c3, 0xc68665,
0x9cb936, 0x4e5c9b, 0xd8d449, 0x939020, 0x49... | flightrac/modes-crc | lib/parity.js | JavaScript | bsd-2-clause | 1,211 |
/**
* Кнопка создания элемента em.
*
* @author dew1983@mail.ru <Suvorov Andrey M.>
*/
Ext.define(
'FBEditor.editor.view.toolbar.button.em.Em',
{
extend: 'FBEditor.editor.view.toolbar.button.AbstractStyleButton',
xtype: 'editor-toolbar-button-em',
html: '<i class="fa fa-italic"></i>',
elementName: 'em'... | Litres/FB3Editor | Frontend/app/editor/view/toolbar/button/em/Em.js | JavaScript | bsd-2-clause | 403 |
function createCookie(name, value, days) {
localStorage.setItem(name, value);
}
function readCookie(name) {
return localStorage.getItem(name);
}
function toggleInherited(el) {
var toggle = $(el).closest(".toggle");
toggle.toggleClass("toggle-on");
if (toggle.hasClass("toggle-on")) {
$("i", toggle).removeClass(... | gameduell/duellbuilddocumentation | themes/default/resources/index.js | JavaScript | bsd-2-clause | 4,633 |
define(
['base/logger'],
function(logger){
var validArticles = ['–', 'der', 'die', 'das'];
/**
*
* @param {*} article
* @return {Boolean}
*/
function validate(article) {
var result = validArticles.indexOf(article) > -1;
if (!r... | peteraba/deutschodoro | app/library/validation/article.js | JavaScript | bsd-2-clause | 514 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/ary-ptrn-rest-obj-prop-id.case
// - src/dstr-binding/default/gen-meth.template
/*---
description: Rest element containing an object binding pattern (generator method)
esid: sec-generator-function-definitions-runtime-semantics-prop... | sebastienros/jint | Jint.Tests.Test262/test/language/expressions/object/dstr-gen-meth-ary-ptrn-rest-obj-prop-id.js | JavaScript | bsd-2-clause | 2,495 |
var globals_defs =
[
[ "_", "globals_defs.html", null ],
[ "a", "globals_defs_a.html", null ],
[ "b", "globals_defs_b.html", null ],
[ "c", "globals_defs_c.html", null ],
[ "d", "globals_defs_d.html", null ],
[ "e", "globals_defs_e.html", null ],
[ "f", "globals_defs_f.html", null ],
[ "... | bplainia/galaxyLightingSystem | doxygen/html/globals_defs.js | JavaScript | bsd-2-clause | 986 |
import React from 'react';
import renderer from 'react-test-renderer';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
// component:
import Header from './Header';
jest.mock('material-ui/List/ListItem');
describe('Header', () => {
it('renders correctly', () => {
const tree = renderer
.cre... | pletcher/cltk_frontend | imports/ui/components/header/Header/Header.test.js | JavaScript | bsd-2-clause | 450 |
"use strict";
var express = require("express");
var bodyParser = require("body-parser");
var crypto = require("crypto");
var _ = require("lodash");
var Promise = require("bluebird");
var log4js = require("log4js");
var sockjs = require("sockjs")
var log = log4js.getLogger("backend");
log.setLevel("warn");
var Group =... | crertel/gorman-backend | app.js | JavaScript | bsd-2-clause | 7,245 |
define([
'module', '../util/class/declare',
'dijit/_WidgetBase', 'dijit/_TemplatedMixin', 'dijit/_WidgetsInTemplateMixin',
'./editor/_TinymceMixin', './editor/_CodeMirrorMixin',
'dojo/text!./templates/Editor.html',
'dijit/layout/TabContainer', 'dijit/layout/ContentPane'
], function (
module,... | jnewman/rasp | input/Editor.js | JavaScript | bsd-2-clause | 1,102 |
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.events.condition');
goog.require('ol.format.GeoJSON');
goog.require('ol.interaction.Extent');
goog.require('ol.layer.Tile');
goog.require('ol.layer.Vector');
goog.require('ol.source.OSM');
goog.require('ol.source.Vector');
var vectorSource = new ol.sour... | fblackburn/ol3 | examples/extent-interaction.js | JavaScript | bsd-2-clause | 1,106 |
define(['../mType/HashTable',
'./transpose',
'./minus',
'./size',
"jStat"], function(HashTable, transpose, minus, size, jStat){
function ttest() {
var args = Array.prototype.slice.call(arguments, 0);
var callback = args.pop();
var alpha = 0.05;
var df, i = 0;
while(i < args.length){
var key;... | Calculingua/cali-app | src/calcu/base/ttest.js | JavaScript | bsd-2-clause | 3,476 |
$(document).ready(function(){
$('input[type=checkbox],input[type=radio],input[type=file]').uniform();
$('select').select2();
//$('.colorpicker').colorpicker();
//$('.datepicker').datepicker();
});
| frf/fsipedidos | public/js/maruti.form_common.js | JavaScript | bsd-3-clause | 221 |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... | exponent/exponent | packages/danger/build/index.js | JavaScript | bsd-3-clause | 955 |
import { LightningElement, api, track, wire } from "lwc";
import { NavigationMixin } from "lightning/navigation";
import checkAccessForCurrentUser from "@salesforce/apex/EDASettingsController.checkAccessForCurrentUser";
import stgErrorInsufficientAccess from "@salesforce/label/c.stgErrorInsufficientAccess";
import st... | SalesforceFoundation/HEDAP | force-app/main/default/lwc/edaSettings/edaSettings.js | JavaScript | bsd-3-clause | 4,634 |
angular.module('os.biospecimen.specimen.addaliquots', [])
.controller('AddAliquotsCtrl', function(
$scope, $rootScope, $state, $stateParams, userRole, specimen, cpr,
visit, extensionCtxt, hasSde, hasDict, cpDict, onValueChangeCb, createDerived, aliquotFields, incrFreezeThawCycles,
CollectSpecimensSvc, Sp... | krishagni/openspecimen | www/app/modules/biospecimen/participant/specimen/add-aliquots.js | JavaScript | bsd-3-clause | 4,541 |
hqDefine("app_manager/js/forms/form_view", function () {
var initialPageData = hqImport("hqwebapp/js/initial_page_data").get,
appManagerUtils = hqImport('app_manager/js/app_manager');
appManagerUtils.setPrependedPageTitle("\u2699 ", true);
appManagerUtils.setAppendedPageTitle(gettext("Form Settings"... | dimagi/commcare-hq | corehq/apps/app_manager/static/app_manager/js/forms/form_view.js | JavaScript | bsd-3-clause | 7,421 |
"use strict";
var util = require('util');
var IllegalArgumentException = require('./IllegalArgumentException');
var Constants = require('./Constants');
/**
* FCM message.
*
* <p>
* Instances of this class should be immutable. In order to accomplish, build method
* must be called lastly {@link #build}.... | javamonn/node-xcs | google/Message.js | JavaScript | bsd-3-clause | 7,385 |
/*
// require cacheFn.js
*/
// test expensive function
function myFn(num) {
var result = 0,
count = num || 10000;
console.time("myFn");
while(count-- > 0) {
result +=1;
}
console.timeEnd("myFn");
return result;
}
function myFnTwo(num, str, obj) {
}
describe("mySuperFn", function() {
// make myFn to be ... | gogocat/JsMagic | test/spec/test_cacheFn.js | JavaScript | bsd-3-clause | 2,171 |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './app.js';
ReactDOM.render(<App/>, document.querySelector("#container"));
| jvdanker/react-test | webpack-test/src/index.js | JavaScript | bsd-3-clause | 153 |
// external js: isotope.pkgd.js
$( window ).on('load',function() {
// init Isotope
var $container = $('.isotope').isotope({
itemSelector: '.element-item',
layoutMode: 'fitRows',
getSortData: {
name: '.name',
symbol: '.symbol',
number: '.number parseInt',
category: '[d... | ascribano/rob | public/assets/js/isotope.function.js | JavaScript | bsd-3-clause | 1,724 |
/*
* Altair Admin (AngularJS)
* Automated tasks ( http://gulpjs.com/ )
*/
'use strict';
var gulp = require('gulp'),
runSequence = require('run-sequence');
// include all tasks from separated files (./tasks)
require('require-dir')('./gulp-tasks');
/* Available tasks (/gulp-tasks/*.js)
LESS (t_less.js)
... | AgooDev/Dashboard | gulpfile.js | JavaScript | bsd-3-clause | 2,063 |
/**
* Model of the meta tags.
*
* @author Dmitriy Yurchenko <feedback@evildev.ru>
* @link http://cubeframework.com/
* @copyright Copyright © Dmitriy Yurchenko 2013
* @license http://cubeframework.com/license/
*/
'use strict';
module.exports = Cube.Class({
extend: Cube.MyActiveRecord,
/**
* Returns wi... | EvilDevRu/cube-cms | application/models/mysql/meta.js | JavaScript | bsd-3-clause | 656 |
import PrettyDate from './PrettyDate.react';
import React from 'react';
export default class TodoItem extends React.Component {
constructor(props) {
super(props);
this.state = {
editing: false,
editText: '',
};
this.onChange = this.onChange.bind(this);
this.onKeyDown = this.onKeyDow... | andrewimm/parse-lite | demos/react-redux/todo/components/TodoItem.react.js | JavaScript | bsd-3-clause | 2,141 |
var redtape = require('redtape'),
fs = require('fs'),
path = require('path'),
JSONStream = require('JSONStream'),
bl = require('bl'),
d = require('defunct'),
sl = require('..'),
concat = require('concat-stream'),
crypto = require('crypto');
var it = redtape({
beforeEach: function (cb)... | eugeneware/streamlined | test/index.js | JavaScript | bsd-3-clause | 19,599 |
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
export default {"viewBox":"0 0 52 52","xmlns":"http://www.w3.org/2000/svg","g":{"path":[{"d":"M9.5 35h13c.8 0 1.5-.7 1.5-1.5V10c0-1.7-1.8-3-3.2-3H9.5C8.7 7 8 7.7 8 8.5v... | salesforce/design-system-react | icons/utility/knowledge_base.js | JavaScript | bsd-3-clause | 735 |
/**
* Copyright (c) 2016, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or
* https://opensource.org/licenses/BSD-3-Clause
*/
/**
* view/admin/components/common/CompoundFields.js
*
* Returns fieldset in read... | salesforce/refocus | view/admin/components/common/CompoundFields.js | JavaScript | bsd-3-clause | 4,814 |
$(document).ready(function() {
$(".fileinput").filestyle({
buttonText: '',
placeholder: 'Escolher arquivo',
buttonName: 'btn-info btn-fill',
buttonBefore: true
});
$(".fileinput-mult").filestyle({
buttonText: '',
placeholder: 'Escolher arquivo(s)',
b... | HaroldBecker1/Framewoks-Usabilidade | public/js/admin.js | JavaScript | bsd-3-clause | 392 |
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
/* eslint-disable import/no-mutable-exports */
import React from 'react';
import deprecatedProperty from '../../utilities/warning/deprecated-property';
import deprecate... | salesforce/design-system-react | components/tooltip/check-props.js | JavaScript | bsd-3-clause | 2,127 |
var ex__open_8c =
[
[ "ex_open_int", "ex__open_8c.html#a6595a688ca002de77217c2bb7c271147", null ],
[ "warning_output", "ex__open_8c.html#ab71aa5cfa846f02a7fb1924bcfeb77db", null ]
]; | nschloe/seacas | docs/html/ex__open_8c.js | JavaScript | bsd-3-clause | 190 |
import React, { Component } from "react";
import TestRenderer from "react-test-renderer";
import PropTypes from "prop-types";
import MockedProvider from "../../provider-test-tools/src/mocked-provider";
import mockGetTokenisedArticleUrl from "./mock-get-tokenised-article-url";
import "./mocks";
import BarItem from "../... | newsuk/times-components | packages/save-and-share-bar/__tests__/shared-tracking.js | JavaScript | bsd-3-clause | 3,951 |
(function() {
var SerialPort, parsers, _ref;
_ref = require("serialport"), SerialPort = _ref.SerialPort, parsers = _ref.parsers;
module.exports = (function() {
function exports(config) {
var conf;
this.config = config;
conf = this.config;
delete conf.path;
conf.parser = parser... | daizoru/node-hydrant | lib/input/serial.js | JavaScript | bsd-3-clause | 729 |
var cacheName = 'cache-v2';
var filesToCache = [
// './index.html',
// './index.html?utm_source=homescreen',
// './style.css',
// './bundle.js',
'./manifest.json',
// './assets/icons/favicon-16x16.png',
// './assets/icons/favicon-32x32.png'
];
//Adding 'install' event listener
self.addEventListener('instal... | ronanamsterdam/lemonapp | content-srv/src/serviceWorker.js | JavaScript | bsd-3-clause | 2,111 |
var searchData=
[
['basic_5faffinity_5fmanager',['basic_affinity_manager',['../classcpuaff_1_1impl_1_1basic__affinity__manager.html',1,'cpuaff::impl']]],
['basic_5faffinity_5fstack',['basic_affinity_stack',['../classcpuaff_1_1impl_1_1basic__affinity__stack.html',1,'cpuaff::impl']]],
['basic_5fcpu',['basic_cpu',['... | dcdillon/cpuaff | docs/html/search/classes_0.js | JavaScript | bsd-3-clause | 1,144 |
'use strict';
import {isServerSide} from 'metal';
import Component from 'metal-component';
import Soy from 'metal-soy';
import {addClasses,hasClass} from 'metal-dom';
import {dispatchGlobalState} from './utils';
import moment from 'moment';
import templates from './TutorialSidebar.soy.js';
class TutorialSidebar exte... | wedeploy/wedeploy.com | node/electric/src/components/TutorialSidebar.js | JavaScript | bsd-3-clause | 2,373 |
/**
* Copyright (c) 2016, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or
* https://opensource.org/licenses/BSD-3-Clause
*/
/**
* api/v1/helpers/nouns/perspectives.js
*/
'use strict'; // eslint-disable-line... | salesforce/refocus | api/v1/helpers/nouns/perspectives.js | JavaScript | bsd-3-clause | 2,251 |
var serviceModule = angular.module('marrowApp.services', ['ngResource']);
serviceModule.factory('UserBone', ['$resource',
function boneFactory($resource){
console.log('hi');
return $resource('/api/bones/u/:user', {}, {
});
}]);
serviceModule.factory('BoneService', ['$resource',
function boneFactory($... | elangley/marrow | static/js/new/services.js | JavaScript | bsd-3-clause | 1,958 |
module.exports = {
rules: {
'at-rule-empty-line-before': ['always', {
except: [
'blockless-after-same-name-blockless',
'first-nested',
],
ignore: ['after-comment'],
ignoreAtRules: ['if', 'else', 'elseif'],
}],
'at-rule-name-case': 'lower',
'at-rule-name-space-after': 'always-single-line',
... | DeloitteDigitalAPAC/stylelint-config-deloitte | index.js | JavaScript | bsd-3-clause | 4,880 |
describe( "Testing the issues-by-date functions", function()
{
var accessMongo = require( "../../../../models/pull-report-data.js" );
var issuesByDate = require( "../../../../controllers/reports/issues-by-date.js" );
var event = require( "events" );
var ee = new event.EventEmitter();
describe( "Testing ... | blackboard/security-operations-console | test/spec/controllers/reports/issues-by-date-spec.js | JavaScript | bsd-3-clause | 15,361 |
'use strict';
var path = require('path');
exports = module.exports = {
port: process.env.PORT || 5000,
dirs: {
build : path.resolve('build/'),
i18n : path.resolve('i18n/'),
examples: path.resolve('examples/'),
views : path.resolve('views/pages/'),
layouts : path... | okuryu/formatjs-site | config/index.js | JavaScript | bsd-3-clause | 407 |
var searchData=
[
['null_5flayout_3c_20t_20_3e_0',['null_layout< T >',['../classmpl_1_1layout.html#a297cff9dc710fa1e886d36a3db3fe53b',1,'mpl::layout']]]
];
| rabauke/mpl | docs/html/search/related_9.js | JavaScript | bsd-3-clause | 164 |
import {test, domElement} from './utils';
import {visuals, BarChart} from '../index';
describe('BarChart -', () => {
it ('defaults', () => {
var bar = visuals.options.barchart;
expect(bar).toBeTruthy();
expect(bar.orientation).toBe('vertical');
});
test('default chart', async () ... | quantmind/d3-visualize | test/test-bar.js | JavaScript | bsd-3-clause | 1,121 |
/**
* Pimcore
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.pimcore.org/license
*
* @copyright Copyright (c) 2009-2010 elements.at New Media ... | theghostbel/pimcore | pimcore/static/js/pimcore/object/classes/data/fieldcollections.js | JavaScript | bsd-3-clause | 2,876 |
/**
* Jath is free software provided under the MIT license.
* See LICENSE file for full text of the license.
* Copyright 2010 Dan Newcome.
*/
(function() {
Jath = {};
Jath.parse = parse;
Jath.resolver = null;
// values prefixed with literal charactar marker will not be
// treated as xpath expressions and will be outpu... | benetech/readium | lib/jath.js | JavaScript | bsd-3-clause | 3,841 |
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
// Automatically clear mock calls and instances between every test
clearMocks: true,
// The directory where Jest should output its coverage files
coverageDirectory: "c... | keybase/node-avdl-compiler | jest.config.js | JavaScript | bsd-3-clause | 746 |
/*
Copyright 2012 Igor Vaynberg
Version: 3.2 Timestamp: Mon Sep 10 10:38:04 PDT 2012
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 in the LICENSE file, or at:
http://www.apache.org/licenses/LI... | luzfcb/django_documentos | test_proj/static/solar/js/select2/select2.js | JavaScript | bsd-3-clause | 89,833 |
/* Scala.js runtime support
* Copyright 2013 LAMP/EPFL
* Author: Sébastien Doeraene
*/
/* ---------------------------------- *
* The top-level Scala.js environment *
* ---------------------------------- */
//!if outputMode == ECMAScript51Global
var ScalaJS = {};
//!endif
// Get the environment info
ScalaJS.env ... | colinrgodsey/scala-js | tools/scalajsenv.js | JavaScript | bsd-3-clause | 24,659 |
/*
*
* Copyright (C) 2011, The Locker Project
* All rights reserved.
*
* Please see the LICENSE file for more information.
*
*/
var fs = require('fs')
, data = '';
;
// Process the startup JSON object
process.stdin.setEncoding('utf8');
process.stdin.on("data", function(newData) {
// Do the initialization bits... | tjgillies/Locker | Common/node/synclet/client.js | JavaScript | bsd-3-clause | 866 |
import * as React from "react";
import { shallow } from "enzyme";
import renderer from "react-test-renderer";
import { HeaderEditor } from "../src/";
describe("Header Editor", () => {
it("renders correctly with no props", () => {
const tree = renderer.create(<HeaderEditor />).toJSON();
expect(tree).toMatchS... | rgbkrk/nteract | packages/presentational-components/__tests__/header-editor-spec.js | JavaScript | bsd-3-clause | 2,128 |
var [a,...] | mck89/peast | test/Peast/Syntax/ES2015/files/ArrayBinding/Invalid5.js | JavaScript | bsd-3-clause | 11 |
/*: #define tyScalar
{(or (= (tag v) "number")
(= (tag v) "boolean")
(= (tag v) "string")
(= (tag v) "undefined")
(= v null))} */ "#define";
/*: #define tagSet
{(or (= v "number")
(= v "boolean")
(= v "string")
(= v "undefined")
(= v "obje... | ravichugh/djs | tests/djs/operators/typeof01.js | JavaScript | bsd-3-clause | 427 |
var fs = require('fs'),
express = require('express'),
path = require('path'),
http = require('http'),
mongoose = require('mongoose'),
less = require('less-middleware'),
clc = require('cli-color'),
_ = require('underscore'),
passport = requ... | calvinDN/portfolio_webapp | server.js | JavaScript | bsd-3-clause | 3,430 |
var Backbone = require('backbone');
var CoreView = require('backbone/core-view');
var CustomView = require('../../../custom-list/custom-view');
var DropdownOverlayView = require('../../../dropdown-overlay/dropdown-overlay-view');
var statusTemplate = require('./select-list-view-states.tpl');
var checkAndBuildOpts = req... | splashblot/dronedb | lib/assets/javascripts/cartodb3/components/form-components/editors/select/select-list-view.js | JavaScript | bsd-3-clause | 4,238 |
define([
'jqueryui',
'jsplumb',
'iwcotw',
'Util',
'operations/ot/NodeAddOperation',
'operations/ot/EdgeAddOperation',
'operations/non_ot/ToolSelectOperation',
'operations/non_ot/EntitySelectOperation',
'operations/non_ot/ActivityOperation',
'operations/non_ot/ExportDataOperation'... | Mortymus/syncmeta | src/js/canvas_widget/Canvas.js | JavaScript | bsd-3-clause | 48,389 |
var gulp = require('gulp'),
plumber = require('gulp-plumber'),
coffee = require('gulp-coffee'),
shell = require('gulp-shell'),
coffeelint = require('gulp-coffeelint'),
mocha = require('gulp-mocha'),
sources = {
coffee: 'src/**/*.coffee',
lib: 'lib/**/*.js',
tests: 'test/*... | hpbuniat/copy-paste-detector | gulpfile.js | JavaScript | bsd-3-clause | 1,234 |
function FileData_Pairs(x)
{
x.t("protocols","publications");
x.t("owner","login");
x.t("owner","click");
x.t("owner","transferred");
x.t("clear","fields");
x.t("user","click");
x.t("current","owners");
x.t("administrator","using");
x.t("type","drop-down");
x.t("reset","clear");
x.t("link","transfer");
x.t... | NCIP/cananolab | docs/webappOnlineHelp/wwhdata/js/search/pairs/pair106.js | JavaScript | bsd-3-clause | 1,856 |
'use strict';
/*global angular:false, $:false, console:false, growl:false, d3:false, window:false */
angular.module('argus.directives.charts.chart', [])
.directive('agChart', ['Metrics', 'Annotations', 'ChartRenderingService', 'ChartDataProcessingService', 'ChartOptionService', 'DateHandlerService', 'CONFIG', 'VIEWELE... | xizi-xu/Argus | ArgusWeb/app/js/directives/charts/chart.js | JavaScript | bsd-3-clause | 11,351 |
var searchData=
[
['abstractfilebackedfeatureextractor',['AbstractFileBackedFeatureExtractor',['../classreranker_1_1_candidate.html#a859ab638260cebff3ff246e58ea25638',1,'reranker::Candidate']]]
];
| dbikel/refr | html/search/related_61.js | JavaScript | bsd-3-clause | 199 |