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 |
|---|---|---|---|---|---|
/*
* Kendo UI v2014.2.731 (http://www.telerik.com/kendo-ui)
* Copyright 2014 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial licen... | CE-KMITL-OOAD-2014/drinkforgood | drinktrack/src/js/cultures/kendo.culture.bs-Latn.js | JavaScript | apache-2.0 | 2,626 |
//shoutout to mnemonicflow on github for the OAuth handling
//Designed by Angel, Fay, Alexis, and Isaac
function cb(data) {
//console.log(JSON.stringify(data));
console.log("---CALLBACK---");
console.log(data);
console.log("----------");
}
var auth = {
//
// Update with your auth toke... | flin1/webdevs2 | projects/1/core.js | JavaScript | apache-2.0 | 17,335 |
import "babel-polyfill";
import fs from 'fs';
import del from 'del';
import path from 'path';
import gulp from 'gulp';
import global from 'global-object';
import vinylPaths from 'vinyl-paths';
import childProcess from 'child_process';
import loadPlugins from 'gulp-load-plugins';
import npmScriptSync from 'gulp-npm-scri... | NOD-studios/console | gulpfile.babel.js | JavaScript | apache-2.0 | 5,392 |
import React from "react";
import {inject, observer} from "mobx-react";
@inject("metricsStore", "stateStore") @observer
export default class Settings extends React.Component {
componentWillMount() {
this.props.stateStore.pageTitle = "Settings";
this.props.stateStore.pageDescription = "Configure s... | josueeduardo/snappy | extensions/admin/src/main/resources/admin/components/settings/Settings.js | JavaScript | apache-2.0 | 480 |
/*!
* bootstrap-fileinput v4.3.5
* http://plugins.krajee.com/file-input
*
* Author: Kartik Visweswaran
* Copyright: 2014 - 2016, Kartik Visweswaran, Krajee.com
*
* Licensed under the BSD 3-Clause
* https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
*/
(function (factory) {
"use strict";... | ElissonAlvesSilva/OpenSource | OpenSource/fileInput/js/fileinput.js | JavaScript | apache-2.0 | 152,822 |
import { Dimensions, Platform } from "react-native";
import * as custom from "../app/custom-variables";
import adjustFont from "./helpers/_functions/adjustfont";
import { setColorBasedOnBackground, setContrastScale } from ".... | mendix/database-connector | theme/styles/native/core/variables.js | JavaScript | apache-2.0 | 5,661 |
const moment = require('moment');
const checkInput = require('../../_common/common_functions').checkInput;
const localize = require('../../_common/localize').localize;
const padLeft = require('../../_common/string_util').padLeft;
const clearable = require('../../_common/utility').clearable;
const TimePicker ... | raunakkathuria/binary-static | src/javascript/app/components/time_picker.js | JavaScript | apache-2.0 | 5,539 |
/*
~ Copyright (c) 2014 George Norman.
~ Licensed under the Apache License, Version 2.0 (the "License");
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ --------------------------------------------------------------
~ Renders <lk-navigation-bar> tags - sharable among all projects.
~ ------------------------... | georgenorman/lab-kit-js | src/js/tags/lkNavigationBar.js | JavaScript | apache-2.0 | 3,942 |
var express = require('express');
var router = express.Router();
var quizController = require('../controllers/quiz_controller');
var commentController = require('../controllers/comment_controller');
var sessionController = require('../controllers/session_controller');
/* GET home page. */
router.get('/', function(req... | jdelagal/quiz-jdelagal | routes/index.js | JavaScript | apache-2.0 | 1,628 |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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 a... | stdlib-js/stdlib | lib/node_modules/@stdlib/_tools/eslint/rules/doctest-marker/test/fixtures/invalid.js | JavaScript | apache-2.0 | 3,864 |
/*
Copyright 2017 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 in writing, software
dis... | conversationai/conversationai-moderator | packages/frontend-web/tooling/storybook/Storyshots.test.js | JavaScript | apache-2.0 | 881 |
/* Copyright© 2000 - 2022 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
import {SuperMap} from '../../SuperMap';
import... | SuperMap/iClient9 | src/common/commontypes/geometry/GeoText.js | JavaScript | apache-2.0 | 11,479 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... | windse7en/terra-core | packages/terra-progress-bar/lib/ProgressBar.js | JavaScript | apache-2.0 | 2,641 |
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);
grunt.initConfig({
sass: {
task: {
files: [{
expand: true,
cwd: 'styles',
src: [
'screen.scss',
'search.scss'
],
dest: 'styles',
ext: '.css'
}]
}
},
css... | Mtmotahar/devopera | Gruntfile.js | JavaScript | apache-2.0 | 4,173 |
var five = require("johnny-five");
var board = new five.Board();
board.on("ready", function() {
var proximity = new five.Proximity({
controller: "LIDARLITE"
});
//proximity.on("data", function() {
// console.log("Proximity: ");
// console.log(" cm : ", this.cm);
// console.l... | deanriverson/JavaScriptRobots | arduino/input/lidarlite.js | JavaScript | apache-2.0 | 488 |
(function(){var validator = require('./')
var validate = validator({
type: 'object',
properties: {
hello: {
required: true,
type: 'string'
}
}
})
console.log('should be valid', validate({hello: 'world'}))
console.log('should not be valid', validate({}))
// get the last error message by chec... | durwasa-chakraborty/navigus | .demeteorized/bundle/programs/server/app/lib/node_modules/modulus/node_modules/update-notifier/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/example.js | JavaScript | apache-2.0 | 449 |
import { printSchema } from 'graphql'
import { renderTemplate } from '../../../../utils/template.js'
const TEMPLATE = new URL('print.mustache', import.meta.url)
// Print GraphQL schema as beautified HTML
export const parse = async function ({ config: { graphqlSchema } }) {
const graphqlPrintedSchema = await printG... | autoserver-org/autoserver | src/rpc/adapters/graphqlprint/parse/main.js | JavaScript | apache-2.0 | 638 |
/*
Copyright 2010-2013 SourceGear, 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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... | glycerine/vj | src/veracity/src/js_tests/parked_tests/need_1arg_status/longtests__st_merge_status_05__F00027.js | JavaScript | apache-2.0 | 6,845 |
/*global QUnit */
/*eslint no-undef:1, no-unused-vars:1, strict: 1 */
sap.ui.define([
"sap/ui/qunit/utils/createAndAppendDiv",
"sap/ui/core/Core",
"sap/ui/webc/fiori/ProductSwitch",
"sap/ui/webc/fiori/ProductSwitchItem"
], function(createAndAppendDiv, Core, ProductSwitch, ProductSwitchItem) {
"use strict";
creat... | SAP/openui5 | src/sap.ui.webc.fiori/test/sap/ui/webc/fiori/qunit/ProductSwitch.qunit.js | JavaScript | apache-2.0 | 1,587 |
/**
* Contains preset objects containing filtering parameters for MongoDB
*
* @module Ozone.Services.AppsMall
* @class Ozone.Services.AppsMall.Filter
* @submodule Server-Side
*/
/**
* Filter constructor.
*
* @class Ozone.Services.AppsMall.Filter
* @module Processors
* @constructor
*/
var Filter = func... | ozone-development/depricated-ozp-center | ozone-modules/applications-mall-services/processors/query/Filter.js | JavaScript | apache-2.0 | 1,588 |
// Underscore.snapQ
// (c) 2014 Christophe Novalet
// Documentation: https://github.com/chsneo/underscore.snapQ
// Version '1.0.13'
(function () {
_.mixin({
move: function (array, fromIndex, toIndex) {
array.splice(toIndex, 0, array.splice(fromIndex, 1)[0]);
return array;
... | christophenovalet/underscore.snapQ | dist/snapq.js | JavaScript | apache-2.0 | 16,910 |
// Generated by CoffeeScript 1.3.3
(function () {
var BALANCED_PAIRS, EXPRESSION_CLOSE, EXPRESSION_END, EXPRESSION_START, IMPLICIT_BLOCK, IMPLICIT_CALL, IMPLICIT_END, IMPLICIT_FUNC, IMPLICIT_UNSPACED_CALL, INVERSES, LINEBREAKS, SINGLE_CLOSERS, SINGLE_LINERS, left, rite, _i, _len, _ref,
__indexOf = [].indexO... | DeinDesign/css | node_modules/grunt/node_modules/coffee-script/lib/coffee-script/rewriter.js | JavaScript | apache-2.0 | 15,965 |
/*
* Copyright (C) 2013 salesforce.com, 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 ... | DebalinaDey/AuraDevelopDeb | aura-components/src/main/components/ui/input/inputRenderer.js | JavaScript | apache-2.0 | 1,697 |
/**
* Created by Stasy on 14-Jan-17.
*/
angular.module('Database', ['ngStorage'])
.factory('dbService', function ($localStorage) {
var dbName = "myDB";
var db = $localStorage[dbName] || [];
/*--This creates the database if it is not already existing */
return {
cre... | EbeleChukwuka/StasyWorks | MyNoteBook/scripts/dbService.js | JavaScript | apache-2.0 | 1,797 |
/*
* File: app/store/AlertOperatorStore.js
*/
Ext.define('webapp.store.AlertOperatorStore', {
extend: 'Ext.data.Store',
requires: [
'webapp.model.CommonCodeModel',
'Ext.data.proxy.Ajax',
'Ext.data.reader.Json'
],
constructor: function(cfg) {
var me = this;
cf... | OpenSourceConsulting/athena-meerkat | console/app/store/AlertOperatorStore.js | JavaScript | apache-2.0 | 733 |
import {
_$,
addShapeNode,
} from '../ancui-dom'
import * as utils from '../utils'
/**
* Creates a text SVG element
*
* @function text
*
* @param {String} parentId - The id or element that the group element
* will be added to.
* @param {String} id
* @param {*} x
* @param {*} y
*
* @return {Object} - T... | haroldcampbell/anemic-components | lib/nodes/nodes-text.js | JavaScript | apache-2.0 | 995 |
/* ***********************************************************
* This file was automatically generated on 2014-08-11. *
* *
* Bindings Version 2.0.2 *
* *
* If... | AppWerft/TiTinkerforge | Resources/vendor/tinkerforge/lib/BrickletRotaryEncoder.js | JavaScript | apache-2.0 | 7,806 |
import {applyMiddleware, createStore} from 'redux';
import thunk from 'redux-thunk';
import promise from 'redux-promise-middleware';
import reducer from './reducers';
const middleware = applyMiddleware(thunk, promise());
export default createStore(reducer, middleware); | lime-company/lime-security-powerauth-webauth | powerauth-webflow/src/main/js/store.js | JavaScript | apache-2.0 | 273 |
'use strict';
module.exports = function (grunt) {
// Load the project's grunt tasks from a directory
require('grunt-config-dir')(grunt, {
configDir: require('path').resolve('tasks')
});
// Register group tasks
grunt.registerTask('build', ['eslint', 'eslint', 'copyto']);
grunt.regi... | walkerx/baby | api/Gruntfile.js | JavaScript | apache-2.0 | 367 |
(function(){'use strict';
var escapeStringRegexp = require('escape-string-regexp');
var ansiStyles = require('ansi-styles');
var stripAnsi = require('strip-ansi');
var hasAnsi = require('has-ansi');
var supportsColor = require('supports-color');
var defineProps = Object.defineProperties;
var isSimpleWindowsTerm = proce... | durwasa-chakraborty/navigus | .demeteorized/bundle/programs/server/app/lib/node_modules/modulus/node_modules/update-notifier/node_modules/request/node_modules/har-validator/node_modules/chalk/index.js | JavaScript | apache-2.0 | 3,173 |
/*
* testname_he.js - test the name object in Hebrew
*
* Copyright © 2013-2015,2017, JEDLSoft
*
* 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/... | iLib-js/iLib | js/test/name/testname_he.js | JavaScript | apache-2.0 | 9,269 |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* 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 a... | stdlib-js/stdlib | lib/node_modules/@stdlib/stats/base/dstdevch/benchmark/benchmark.ndarray.js | JavaScript | apache-2.0 | 1,978 |
var searchData=
[
['page_5fres',['PAGE_RES',['../a02646.html',1,'']]],
['page_5fres_5fit',['PAGE_RES_IT',['../a02662.html',1,'']]],
['pageiterator',['PageIterator',['../a02398.html',1,'tesseract']]],
['pangofontinfo',['PangoFontInfo',['../a04898.html',1,'tesseract']]],
['para',['PARA',['../a02634.html',1,'']]... | stweil/tesseract-ocr.github.io | 4.0.0-beta.1/search/classes_f.js | JavaScript | apache-2.0 | 3,870 |
function CalendarCtrl($scope) {
$("#calendar").clndr();
}
| yooo/taishan | js/calendar.js | JavaScript | apache-2.0 | 60 |
'use strict';
angular.module('tiimspotApp')
.factory('ConfigurationService', function ($rootScope, $filter, $http) {
return {
get: function() {
return $http.get('configprops').then(function (response) {
var properties = [];
angular.forEach... | timaar/Tiimspot | src/main/webapp/scripts/components/admin/configuration.service.js | JavaScript | apache-2.0 | 590 |
// A simple module with no dependencies
angular.module('mainModule', []).controller(
'simpleController',
function($scope) {
$scope.person = {
firstName: 'Junjun',
lastName: 'Arbie',
getFullName: function() {
return [
this.firstName,
this.lastName
].join(' ');
} // end getFu... | phektus/angularjshub-tutorials | 02-modules/01-module/script.js | JavaScript | apache-2.0 | 360 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
/* tslint:disable:no-bitwise */
const ex = tslib_1.__importStar(require("../_diagnostics/exception"));
//import * as crypto from "crypto";
const crypto = require("crypto");
/** max for a signed 8bit integer. (... | Novaleaf/xlib | _obsolete/xlib-v17/built/core/_util/numhelper.js | JavaScript | apache-2.0 | 14,813 |
/**
* Copyright 2015 Etienne Membrives <etienne@membrives.fr>
*
* 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... | emembrives/jaccede | js_embed/jaccede.js | JavaScript | apache-2.0 | 3,655 |
'use strict';
var ChefRole = function () {
}
ChefRole.prototype = {
name: 'CHEFROLE',
detect: function (data) {
var fits = false;
// try to parse data
try {
var json = JSON.parse(data);
if (json.json_class === 'Chef::Role') {
fits = true;
... | TelekomLabs/cloudinit-cli | lib/detection/chefrole.js | JavaScript | apache-2.0 | 461 |
'use strict';
// A simple runner for ES6 scripts.
// This module provides a simple runner setup for ES6 scripts, using the
// popular Babel module to transpile ES6 into ES5 on Node 0.10.x and the
// Harmonize module to enable support for Harmony on Node 0.12.x.
var path = require('path');
var fs = require('fs');
var ... | shinji62/cf-abacus | lib/utils/es6runner/index.js | JavaScript | apache-2.0 | 2,313 |
'use strict';
const modelFunction = require('../orderMetaService');
const serviceTestUtils = require('../tests/serviceTestUtils');
describe('lookupStartStopDefaults asynchronous specs', () => {
let context;
beforeAll(() => {
context = serviceTestUtils.beforeAllScript(modelFunction).context;
});
... | vistadataproject/metaPureJS | services/orderMetaService/lookupStartStopDefaults-spec.js | JavaScript | apache-2.0 | 776 |
/*jslint nomen: true */
/*global mx, mxui, mendix, dojo, require, console, define, module */
require([
'dojo/_base/declare', 'mxui/widget/_WidgetBase', 'dijit/_TemplatedMixin',
'mxui/dom', 'dojo/dom', 'dojo/query', 'dojo/dom-prop', 'dojo/dom-geometry', 'dojo/dom-class', 'dojo/dom-style', 'dojo/on', 'dojo/_base... | bgeveritt/iCheck-Checkboxes | src/iCheckCheckboxes/widget/CheckboxSelector.js | JavaScript | apache-2.0 | 15,304 |
'use strict';
const DataStore = require('./DataStore');
const Collection = require('../util/Collection');
const Message = require('../structures/Message');
/**
* Stores messages for text-based channels.
* @extends {DataStore}
*/
class MessageStore extends DataStore {
constructor(channel, iterable) {
super(ch... | Lewdcario/discord.js | src/stores/MessageStore.js | JavaScript | apache-2.0 | 4,238 |
(function() {
'use strict';
/**
* Constructor of the chords wiki
* @param {Object} params.dataSource - data with the list of chords types and categories
* @constructor
* @extend luga.Notifier
* @fires selectionChanged
* @fires selectionReset
*/
chordsWiki.Wiki = function(params) {
luga.extend(luga.N... | giorgiabaroffio/ChordsWiki | src/js/Wiki.js | JavaScript | apache-2.0 | 3,790 |
//// [objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.js]
// Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those
// parameters pairwise identical, have identical type parameter constraints, identical number of para... | fdecampredon/jsx-typescript-old-version | tests/baselines/reference/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.js | JavaScript | apache-2.0 | 1,180 |
// initialize global variables
// global projection objects (uses the proj4js lib)
var epsg_4326 = new OpenLayers.Projection("EPSG:4326"),
epsg_3857 = new OpenLayers.Projection("EPSG:3857");
var lm_draw_points, lm_route_layer, lm_points_layer;
var popup = null;
// define the extent of the area which will be locked fro... | deepanjana1107/manhattan | app/view/LMTab.js | JavaScript | apache-2.0 | 19,016 |
/**
* @license
* Copyright 2015 The Lovefield Project 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
... | sky7sea/lovefield | lib/structs/map.js | JavaScript | apache-2.0 | 3,894 |
import * as chai from 'chai';
// Load Chai assertions
global.expect = chai.expect;
global.assert = chai.assert;
chai.should();
// Load Sinon
global.sinon = require('sinon');
// Initialize Chai plugins
chai.use(require('sinon-chai'));
chai.use(require('chai-as-promised'));
chai.use(require('chai-things'));
| par-mais-tecnologia/dynamito | confs/mocha.conf.js | JavaScript | apache-2.0 | 310 |
/*
* ../../../..//jax/output/HTML-CSS/fonts/Latin-Modern/Symbols/Regular/Main.js
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... | GerHobbelt/MathJax | jax/output/HTML-CSS/fonts/Latin-Modern/Symbols/Regular/Main.js | JavaScript | apache-2.0 | 3,820 |
/* jshint unused: false */
/* global window, $, Backbone, document, d3 */
/* global $, arangoHelper, btoa, _, frontendConfig */
(function () {
'use strict';
window.Router = Backbone.Router.extend({
toUpdate: [],
dbServers: [],
isCluster: undefined,
lastRoute: undefined,
routes: {
'': 'c... | hkernbach/arangodb | js/apps/system/_admin/aardvark/APP/frontend/js/routers/router.js | JavaScript | apache-2.0 | 29,235 |
goog.provide('kemia.model.ArrowTest');
goog.require('kemia.model.Arrow');
goog.require('goog.math.Coordinate');
goog.require('goog.testing.jsunit');
function testGetOrientation() {
var arrow = new kemia.model.Arrow(
new goog.math.Coordinate(0, 0),
new goog.math.Coordinate(1, 0));
var product_center = new goog... | kemia/kemia | kemia/model/arrow_test.js | JavaScript | apache-2.0 | 800 |
var ranking = function(param) {
this.param = param;
};
ranking.prototype = {
setRanking : function(dt){
var nm,data = [],
tb = $('#rankingTables .user_rank'),
rank = $('.socialTablesRank .user_rank'),
elements = $('#rankingTables .user_rank,.mem_tb .user_rank');
... | DAIAD/home-mobile | www/js/socials/rankings.js | JavaScript | apache-2.0 | 8,317 |
/*
* testdatefmtGR_GR_GR.js - test the date GR formatter object GR GRench/GRance
*
* Copyright © 2012-2017, 2020 JEDLSoft
*
* 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
*
* htt... | iLib-js/iLib | js/test/daterange/testdatefmtrange_el_GR.js | JavaScript | apache-2.0 | 19,501 |
var enumorg_1_1onosproject_1_1ovsdb_1_1rfc_1_1table_1_1Interface_1_1InterfaceColumn =
[
[ "columnName", "enumorg_1_1onosproject_1_1ovsdb_1_1rfc_1_1table_1_1Interface_1_1InterfaceColumn.html#a0519585d6e32ba0e1ee3d377af4ffb15", null ],
[ "ADMINSTATE", "enumorg_1_1onosproject_1_1ovsdb_1_1rfc_1_1table_1_1Interface_... | onosfw/apis | onos/apis/enumorg_1_1onosproject_1_1ovsdb_1_1rfc_1_1table_1_1Interface_1_1InterfaceColumn.js | JavaScript | apache-2.0 | 5,163 |
/**
* Copyright 2006 Webmedia Group Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | nortal/araneaframework | etc/js/aranea/src/aranea-popups.js | JavaScript | apache-2.0 | 2,712 |
// Generated on 2015-03-06 using generator-ionic 0.7.1
'use strict';
var _ = require('lodash');
var path = require('path');
var cordovaCli = require('cordova');
var spawn = process.platform === 'win32' ? require('win-spawn') : require('child_process').spawn;
module.exports = function (grunt) {
// Load grunt tasks ... | josmas/ionic-template | Gruntfile.js | JavaScript | apache-2.0 | 14,641 |
(function () {
var specParts;
//#build ../static/specParts.js
function spec ( args ) {
var lookup = args.content.toLowerCase(), matches;
matches = specParts.filter( hasLookup ).map( mapLink );
bot.log( matches, '/spec done' );
if ( !matches.length ) {
return args + ' not found in spec';
}
return matches.join... | ajju4455/SO-ChatBot | source/plugins/spec.js | JavaScript | apache-2.0 | 703 |
/*
* Copyright 2015 OpenCB
*
* 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 in wr... | opencb/jsorolla | src/core/clients/test/tests.js | JavaScript | apache-2.0 | 889 |
'use strict';
var url = require('url');
var Queue = require('./QueueService');
module.exports.processJSONPOST = function processJSONPOST (req, res, next) {
Queue.processJSONPOST(req.swagger.params, res, next);
};
| edubritochaves/diebold | controllers/Queue.js | JavaScript | apache-2.0 | 220 |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.fr');
goog.require('Blockly.Msg');
Blockly.Msg.ADD_COMMENT = "Ajouter un commentaire";
Blockly.Msg.AUTH = "Veuillez autoriser cette application à permettre la sauvegarde de votre travail et à l’autoriser à la partager.... | faizshukri/blockly | msg/js/fr.js | JavaScript | apache-2.0 | 44,640 |
var Sequelize = require('sequelize');
var uid = require('rand-token').uid;
var Promise = require('bluebird');
module.exports = function (sequelize, DataTypes) {
var authToken = sequelize.define('authToken', {
token: {
type: Sequelize.STRING,
allowNull: false
},
crea... | nikhil-ahuja/Express-React | server/models/authToken.js | JavaScript | apache-2.0 | 1,454 |
'use strict';
var _ = require('lodash');
var validator = require('validator');
var sql = require('mssql');
var dataFormatter = require('../../components/formatUtil/formatUtil.service.js');
exports.index = function(req, res) {
/*Configure and open database */
var dbc = require('../../config/db_connection/developme... | VHAINNOVATIONS/PerceptiveReach | Dashboard/PRDash-ADF/server/api/CDSQuestionnaire/CDSQuestionnaire.controller.js | JavaScript | apache-2.0 | 1,358 |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* 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 a... | stdlib-js/stdlib | lib/node_modules/@stdlib/stats/base/sstdevwd/test/test.ndarray.js | JavaScript | apache-2.0 | 5,316 |
import isomorphicFetch from 'isomorphic-fetch';
import { canUseDOM } from 'exenv';
/* eslint-disable no-param-reassign */
/* eslint-disable no-else-return */
function addAuthorizationHeader(options) {
let token = '';
if (canUseDOM) {
token = localStorage.getItem('token');
}
const authenticationHeader = {
... | chengjianhua/book-share | src/core/fetch/index.js | JavaScript | apache-2.0 | 1,618 |
'use strict';
var nock = require('nock');
var chai = require('chai');
var expect = chai.expect;
var path = require('path');
var gutil = require('gulp-util');
var apiHost = 'https://mycommunity.com';
var testRoot = path.resolve(__dirname) + '/..';
var spawn = require('child_process').spawn;
var rewire = require('rewire... | lithiumtech/lithium-sdk | test/lib/create-server-conf-test.js | JavaScript | apache-2.0 | 3,879 |
var path = require('path');
var webpack = require("webpack");
module.exports = {
// This is the main file that should include all other JS files
entry: [
// 'webpack-dev-server/client?http://localhost:8081', // WebpackDevServer host and port
// 'webpack/hot/only-dev-server',
"./src/main.js"],
target: "... | manuel-woelker/jimix | ui/webpack.config.js | JavaScript | apache-2.0 | 1,241 |
var vec2 = require('../vec2')
var depInj = require('../depinj')
/** @one and @two are rays indicating walls **/
function Corner(p, da, db){
if (this === undefined){
return new Corner(p, da, db)
}
if (p instanceof Corner){
this.p = new vec2(p.p)
this.da = new vec2(p.da)
this.db = new vec2(p.db)
... | orlinskj/cartes | lib/geom/corner.js | JavaScript | apache-2.0 | 1,377 |
/*
Copyright (c) 2008 notmasteryet
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, su... | LazyCoder1030/WebCleaner | Delfate.js | JavaScript | apache-2.0 | 12,052 |
/**
* Rutilus
*
* @homepage https://gmrutilus.github.io
* @license Apache-2.0
*/
import { ActionTypes } from '../../actions/actions';
export default function (state = null, action) {
const type = action.type;
const payload = action.payload;
switch(type) {
case ActionTypes.SELECT_QUERY:
... | gmrutilus/rutilus-analytics-node-js | lib/dashboard/reducers/lib/selectedQuery.js | JavaScript | apache-2.0 | 435 |
import _ from 'lodash';
describe(`Server`, () => {
function resetMocks() {
}
beforeEach(done => {
resetMocks();
done();
});
it(`should be a function`, done => {
//expect(Server).to.be.a('function');
done();
});
}); | jewetnitg/frontend-server | test/unit/factories/Server.spec.js | JavaScript | apache-2.0 | 247 |
sc = $("table.result").parent("div").find("p").text();
$("table.result tbody tr").each(function(index) {
a = $(this);
$.get("http://127.0.0.1:5000/data/orly", {
"orly": JSON.stringify({
"school": sc,
"class": a.find("td:eq(0)").text(),
"min": a.find("td:eq(1)").text()... | michcioperz/a-certain-mining-toolset | scriptlet.js | JavaScript | apache-2.0 | 622 |
! function() {
var e = null;
Polymer({
is: "paper-toast",
behaviors: [Polymer.IronOverlayBehavior],
properties: {
fitInto: {
type: Object,
value: window,
observer: "_onFitIntoChanged"
},
horizontalAlign:... | Traderlynk/Etherlynk | communicator/extension/webcam/elements/js/wb-cam-app.63d34b8d-33.js | JavaScript | apache-2.0 | 2,735 |
'use strict';
const express = require('express');
const handler = require('./handler');
const app = express();
app.get('/check', function (req, res) {
const context = {};
// Mock AWS Lambda request object
const request = {
queryStringParameters: {url: req.query.url},
stageVariables: {WOT_API_KEY: process.env.... | factcheckthenews/prototype | index.js | JavaScript | apache-2.0 | 723 |
'use strict';
const loader = require('./loader');
const termGenerator = require('./termGenerator');
module.exports = {
rdfExtensions: loader.rdfExtensions,
termsFor: termGenerator.termsFor,
knownOntologies: termGenerator.knownOntologies,
from: loader.from
};
| howarddierking/metalsmith-ldschema | plugin/src/graph/index.js | JavaScript | apache-2.0 | 277 |
var _class = require("../build");
var inst = new _class();
| RussellsToolbox/sia-explorer-server | manual-debug/index.js | JavaScript | apache-2.0 | 59 |
// modules are defined as an array
// [ module function, map of requireuires ]
//
// map of requireuires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the requireuire for previous bundles
(function outer (modules, cache, entry) {
//... | stdlib-js/www | public/docs/api/latest/@stdlib/stats/iter/meanabs/benchmark_bundle.js | JavaScript | apache-2.0 | 760,691 |
// This event executes when a new guild (server) is joined.
module.exports = (client, guild) => {
// We need to add this guild to our settings!
client.settings.set(guild.id, require(client.base + "settings.json"));
client.config.set(guild.id, require(client.base + "config.json"));
// expSystem
if (client.gco... | BannukDE/Narrator | events/guildCreate.js | JavaScript | apache-2.0 | 586 |
(function(){
var settingsController = function ($rootScope, $scope, $upload, $timeout, $users, appConstants) {
$scope.settings = {
username: "",
location: "",
bio: "",
avatarUrl: appConstants.server + appConstants.context +"rest/public/users/" + $sco... | grogdj/grogshop | grogshop-html5/app/app/controllers/settingsController.js | JavaScript | apache-2.0 | 5,226 |
// The MIT License (MIT)
// Copyright © 2013 Mechanobiology Institute, National University of Singapore.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the “Software”), to deal
// in the Software without restriction, including w... | mbikt/mbinfo-extension | js/web/webapp.js | JavaScript | apache-2.0 | 15,182 |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.sk');
goog.require('Blockly.Msg');
Blockly.Msg.ADD_COMMENT = "Pridať komentár";
Blockly.Msg.AUTH = "Autorizujte prosím túto aplikáciu, aby ste mohli uložiť a zdieľať vašu prácu.";
Blockly.Msg.CHANGE_VALUE_TITLE = "Zmen... | Gamefroot/Gamefroot-Blockly | msg/js/sk.js | JavaScript | apache-2.0 | 78,833 |
import { downloadViaFormPost } from '../../lib/apiUtil';
const SVG_HEADER = '<svg xmlns="http://www.w3.org/2000/svg">';
const SVG_FOOTER = '</svg>';
const DOWNLOAD_SVG_URL = '/api/download/svg';
// Helper to download SVG files that have been rendered in the browser
// filename - the filename you want to use, without... | mitmedialab/MediaCloud-Web-Tools | src/components/util/svg.js | JavaScript | apache-2.0 | 837 |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* 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 a... | stdlib-js/stdlib | lib/node_modules/@stdlib/math/base/assert/is-finite/benchmark/benchmark.native.js | JavaScript | apache-2.0 | 1,497 |
var path = require('path');
var webpack = require('webpack');
var projectDirectory = path.resolve(__dirname, '../');
var HtmlWebpackPlugin = require('html-webpack-plugin');
function getJavaScriptLoaders() {
return [{
test: /\.js/,
include: [path.resolve(projectDirectory, 'app')],
loaders: [... | lehvolk/xodus-entity-browser | entity-browser-frontend/webpack/webpack-share.js | JavaScript | apache-2.0 | 4,554 |
#pragma strict
public var BGTexture : Texture;
public var Minimap : GUITexture;
public var shot_direction_view : Transform;
//var a=9.0;
private var rotation_angle = 0.0;
function OnGUI ()
{
var position_x = Screen.width;
var position_y = Screen.height;
var club_value = ClubChanger.currentNum;
var arrow_he... | KimDongWan/Miseng | example/Unity GearGolf/Assets/Standard Assets/ball_arrow.js | JavaScript | apache-2.0 | 1,484 |
import { put, takeEvery } from 'redux-saga/effects';
import axios from 'axios';
import config from '../config';
export const GET_CURRENCIES = 'app.common.getCurrencies';
export const GET_CURRENCIES_SUCCESS = 'app.common.getCurrenciesSuccess';
export const GET_COUNTRIES = 'app.common.getCountries';
export const GET_COU... | ccwukong/lfcommerce-react | client/src/modules/common.js | JavaScript | apache-2.0 | 3,180 |
//初始化页面
var treeEname;
var userId;
var menuUrlValueType;
var ssoSystemId_value;
efform_onload = function (){
ssoSystemId_value = document.getElementById("result-0-ssoSystemId").value;
menuUrlValueType = document.getElementById("result-0-menuType").value;
var info=_getEi();
block_system = info.getBlock("r... | stserp/erp1 | source/web/EV/EV1401.js | JavaScript | apache-2.0 | 8,224 |
import React, { useContext, useState, useEffect } from "react"
import CreatableSelect from "react-select/creatable"
import { FormContext } from "lib/elektra-form/components/form_context"
const TagsInput = ({ name, initValue, onChange, useFormContext }) => {
const [tagEditorInputValue, setTagEditorInputValue] = useSt... | sapcc/elektra | plugins/lbaas2/app/javascript/app/components/shared/TagsInput.js | JavaScript | apache-2.0 | 3,524 |
/** @license
| Version 10.2
| Copyright 2013 Esri
|
| 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 applicabl... | Esri/public-information-center | js/homePage.js | JavaScript | apache-2.0 | 24,164 |
/**
* @fileoverview Common utils for sending requests.
*/
/** @const */
var request = {};
/** @private @enum {string} */
request.Type_ = {
GET: 'GET',
POST: 'POST'
};
/**
* Sends a GET request to the url with given params and callback.
* Request is performed with JSON.
* @param {{
* url: string,
* par... | ViDA-NYU/genotet | src/request.js | JavaScript | apache-2.0 | 2,004 |
// Check index bound determination for $not:$elemMatch queries. SERVER-5740
t = db.jstests_arrayfind6;
t.drop();
t.save({a: [{b: 1, c: 2}]});
function checkElemMatchMatches() {
assert.eq(1, t.count({a: {$elemMatch: {b: 1, c: 2}}}));
assert.eq(0, t.count({a: {$not: {$elemMatch: {b: 1, c: 2}}}}));
assert.... | christkv/mongo-shell | test/jstests/core/arrayfind6.js | JavaScript | apache-2.0 | 867 |
//////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2014-2015, Egret Technology 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:
//
... | Cenfee/nucleon-egret | client/Nucleon/libs/core/extension/gui/events/CollectionEvent.js | JavaScript | apache-2.0 | 5,689 |
module.exports = function(app) {
var express = require('express');
var streamsRouter = express.Router();
streamsRouter.get('/', function(req, res) {
res.send({"streams":[
{
id: 2,
name: 'Stream one',
file: 1,
active: false,
paused: false,
operators: [0, 1,... | uboot/stromx-web | frontend/server/mocks/streams.js | JavaScript | apache-2.0 | 907 |
/*
* Verto HTML5/Javascript Telephony Signaling and Control Protocol Stack for FreeSWITCH
* Copyright (C) 2005-2014, Anthony Minessale II <anthm@freeswitch.org>
*
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file ex... | Traderlynk/Etherlynk | webmeet-component/verto/scripts/jquery.jsonrpcclient.js | JavaScript | apache-2.0 | 25,680 |
'use strict';
angular.module('skilltrackerApp')
.factory('Auth', function Auth($rootScope, $state, $q, Principal, AuthServerProvider, Account, Register, Activate, Password, PasswordResetInit, PasswordResetFinish) {
return {
login: function (credentials, callback) {
var cb = call... | SkillTracker/skilltracker | src/main/webapp/scripts/components/auth/auth.service.js | JavaScript | apache-2.0 | 5,102 |
/*
* Copyright 2015 Open Networking Laboratory
*
* 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 la... | sonu283304/onos | web/gui/src/main/webapp/app/view/topo/topoModel.js | JavaScript | apache-2.0 | 14,069 |
// //////////////////////////////////////////////////////////////////////////////////////////////////
// Server Methods
// //////////////////////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2017 Bjørn Bråthen, Concept NTNU
//
// Licensed under the Apache License, Version ... | bompi88/grand-view | server/methods/core.js | JavaScript | apache-2.0 | 10,236 |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* 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 a... | stdlib-js/stdlib | lib/node_modules/@stdlib/math/strided/special/ssqrt/examples/index.js | JavaScript | apache-2.0 | 1,032 |
var assert = require('assert');
var indexedDB = require('../test-helper');
var FDBCursor = IDBCursor;
var FDBKeyRange = IDBKeyRange;
var support = require('./support');
var createdb = support.createdb;
describe('W3C IDBCursor.advance Tests', function () {
// idbcursor-advance-continue-async
describe('asyncness... | pixel9/IndexedDBShim | tests-polyfill/w3c/IDBCursor.advance.js | JavaScript | apache-2.0 | 38,789 |
var searchData=
[
['graphic',['Graphic',['../namespace_tri_1_1_graphic.html',1,'Tri']]],
['input',['Input',['../namespace_tri_1_1_input.html',1,'Tri']]],
['system',['System',['../namespace_tri_1_1_input_1_1_system.html',1,'Tri::Input']]],
['tri',['Tri',['../namespace_tri.html',1,'']]],
['triton',['Triton',['.... | TriantEntertainment/TritonEngine | docs/html/search/namespaces_1.js | JavaScript | apache-2.0 | 426 |
/*jshint node:true*/
/* global require, module */
var EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
module.exports = function(defaults) {
var app = new EmberAddon(defaults, {
// Add options here
sassOptions: {
includePaths: [
'bower_components',
'bower_compone... | langens-jonathan/authorization-ember-materialize-addon | ember-cli-build.js | JavaScript | apache-2.0 | 717 |