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 |
|---|---|---|---|---|---|
treeServices.factory(
'StorageService',
[
'$window', function($window) {
return {
set: function(key, value) {
$window.localStorage[key] = value;
},
get: function(key, defaultValue) {
return $window.localStorage[key] || defaultVa... | kitolog/Tree | app/js/services/storage.js | JavaScript | apache-2.0 | 710 |
// Copyright 2022 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 in ... | googleapis/nodejs-translate | .jsdoc.js | JavaScript | apache-2.0 | 1,483 |
svg3d.xInfinite = 1000;
svg3d.yInfinite = 10;
svg3d.xOrigin = 1000;
svg3d.yOrigin = 10;
svg3d.sortAlgo = svg3d.AVERAGE_Z;
$( document ).ready(function() {
var shapeAxex = svg3d.shapeFactory(document.getElementById("axex"));
shapeAxex.transform([svg3d.setTranslationMatrix(0, 0, 0)]);
var shapeAxey = svg3d.shapeFacto... | ndebeiss/svg3d | examples/js/Box_clip_art.js | JavaScript | apache-2.0 | 1,317 |
sap.ui.define(['sap/ui/webc/common/thirdparty/base/asset-registries/Icons'], function (Icons) { 'use strict';
const name = "call";
const pathData = "M400 298q17 16 33 32l32 32q15 15 15 32l-.5 9.5L465 428q-6 5-11.5 10.5T443 450q-15 17-33.5 23.5T371 480h-8l-9-1q-36-4-68-18.5T224 426q-54-37-96-83.5T57 237q-10-20-16-40.... | SAP/openui5 | src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/v4/call.js | JavaScript | apache-2.0 | 1,077 |
/*
* Licensed to Cloudkick, Inc ('Cloudkick') under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* Cloudkick licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not us... | cloudkick/cast | lib/util/http_pumpfile.js | JavaScript | apache-2.0 | 5,365 |
(function() {
'use strict';
angular
.module('blackholeApp')
.config(stateConfig);
stateConfig.$inject = ['$stateProvider'];
function stateConfig($stateProvider) {
$stateProvider.state('home', {
parent: 'app',
url: '/',
data: {
... | dlwhitehurst/blackhole | src/main/webapp/app/home/home.state.js | JavaScript | apache-2.0 | 905 |
define({
"commonWebmap": {
"selector": {
"lblWebMap": "Mapa",
"lblLocation": "Ubicación",
"lblContent": "Contenido",
"lblPopup": "Ventana emergente",
"lblControls": "Extras",
"lblOverview": "Mapa de vista general",
"lblLegend": "Leyenda",
"lblGeocoder": "Buscador de... | Esri/shortlist-storytelling-template-js | src/app/storymaps/common/_resources/nls/es/webmap.js | JavaScript | apache-2.0 | 5,326 |
var app = angular.module('angular-google-api-example', [
'ngCookies',
'ngMessages',
'ui.router',
'angular-google-gapi',
'angular-google-api-example.router',
'angular-google-api-example.controller'
]);
app.run(['GAuth', 'GApi', 'GData', '$state', '$rootScope', '$window', '$cookies',
functi... | fabien88/poubelleconnetable | src/main/webapp/app/app.js | JavaScript | apache-2.0 | 1,626 |
/**
* 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 applic... | a1ph/puppeteer | lib/ElementHandle.js | JavaScript | apache-2.0 | 3,927 |
// create tab group
var tabGroup = Titanium.UI.createTabGroup({
id:'tabGroup1'
});
//
// create base UI tab and root window
//
var win1 = Titanium.UI.createWindow({
className:'win1',
backgroundColor:'#fff'
});
var tab1 = Titanium.UI.createTab({
id:'tab1',
title:'Actu',
icon:'../images/rss... | anthonyNkuinjeu/UTTRss | Resources/sport_utt/football_win.js | JavaScript | apache-2.0 | 6,688 |
(function(window, document) {
"use strict";
// CAN'T TOUCH THIS
// No, seriously. Don't touch it.
var AXIS_DEFAULT = 0.003921627998352051;
var AXIS_DEADZONE = 0.2;
var AXIS_MAX = 1;
var AXIS_MIN = -1;
var DEBUG = true;
var NO_CAMERA = true;
function Car() {
this.blackboard = document.getEleme... | lukaszo/picar_worhshop | picar/static/js/main.js | JavaScript | apache-2.0 | 10,443 |
// this proxy will route requests to /api to backend
// and all the other requests to frontend
const backendDevServerPort = 8080;
const frontendDevServerPort = 3000;
const portThatProxyListensOn = 9000;
const http = require("http");
const httpProxy = require('http-proxy');
const proxy = httpProxy.createProxyServer({}... | googleinterns/step250-2020 | reverse-proxy/index.js | JavaScript | apache-2.0 | 578 |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.pt');
goog.require('Blockly.Msg');
Blockly.Msg["ADD_COMMENT"] = "Adicionar Comentário";
Blockly.Msg["CANNOT_DELETE_VARIABLE_PROCEDURE"] = "Não se pode eliminar a variável '%1' porque faz parte da definição da função '%... | trinketapp/blockly | msg/js/pt.js | JavaScript | apache-2.0 | 34,866 |
const initialState = {
item: null,
isLoading: false,
receivedAt: null,
error: null
}
const requestHealthmonitor = (state) => ({...state, isLoading: true, error: null})
const receiveHealthmonitor = (state, {healthmonitor}) => {
if(!healthmonitor || !healthmonitor.id){
return state
}
return {... state... | sapcc/elektra | plugins/lbaas2/app/javascript/app/reducers/healthmonitors.js | JavaScript | apache-2.0 | 1,573 |
var express = require('express');
var router = express.Router();
var ctrlMenu = require("../controllers/menu");
// menu controller
router.get("/menulist", ctrlMenu.calculate);
router.get("/menu/:id", ctrlMenu.recipt);
module.exports = router; | rouce/make-me-food | app_api/routes/index.js | JavaScript | apache-2.0 | 244 |
/**
* @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/snanstdev/test/test.js | JavaScript | apache-2.0 | 2,062 |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2017 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['jquery.sap.global','./TableExtension'],function(q,T){"use strict";var E={};var a={};var b=T.extend("sap.ui.table.Table... | thbonk/electron-openui5-boilerplate | libs/openui5-runtime/resources/sap/ui/table/TableDragDropExtension.js | JavaScript | apache-2.0 | 751 |
'use strict';
angular.module('CentralDogmaAdmin')
.factory('SettingsService',
function (ApiV1Service, EntitiesUtil, $q) {
return {
listTokens: function () {
var defer = $q.defer();
ApiV1Service.get("tokens").then(function (tokens) {
var i;
if (angular.isArray(tok... | line/centraldogma | server/src/main/resources/webapp/scripts/components/entities/settings.service.js | JavaScript | apache-2.0 | 1,406 |
export default {
list: [
{
name: "Charm",
art: "Mutate",
art_specialisation: "Minor",
form: "Mental",
form_specialisation: "Simple",
difficulty: "Standard",
duration: "Encounter",
range: "Smarts",
tar... | almightynassar/BrokenStarsAndroid | src/data/powers/mutate-mental.js | JavaScript | apache-2.0 | 661 |
// Copyright 2022 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 in ... | googleapis/nodejs-web-security-scanner | samples/generated/v1alpha/web_security_scanner.stop_scan_run.js | JavaScript | apache-2.0 | 1,923 |
'use strict';
var changed = require('gulp-changed'),
dest = './build',
gulp = require('gulp');
gulp.task('pages', function() {
return gulp.src('src/*.html')
.pipe(changed(dest))
.pipe(gulp.dest(dest));
});
| goodforenergy/animal-shelter | gulp/tasks/pages.js | JavaScript | apache-2.0 | 215 |
// Copyright 2019-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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | googleapis/nodejs-pubsub | samples/listenForMessages.js | JavaScript | apache-2.0 | 2,576 |
/**
* @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/iter/special/erfcinv/lib/main.js | JavaScript | apache-2.0 | 1,746 |
import { connect } from 'react-redux'
import DistributionContainer from './component'
const mapStateToProps = state => ({
token: state.tokens[state.currentToken],
})
export default connect(mapStateToProps)(DistributionContainer)
| onyb/ethane | react/components/DistributionContainer/container.js | JavaScript | apache-2.0 | 235 |
/*
* Copyright 2018 TWO SIGMA OPEN SOURCE, 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 appl... | twosigma/beaker-notebook | test/js/groovy/codeAndMagics.js | JavaScript | apache-2.0 | 3,200 |
// Copyright 2015-present runtime.js project 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 applicab... | facekapow/runtime | js/test/unit/script/index.js | JavaScript | apache-2.0 | 1,365 |
var request = require('supertest')
, env = process.env.NODE_ENV || 'test'
, config = require('../../config/config')[env]
, app = require('express')()
, httpStatus = require('../../app/helpers/http-status')
, passport = require('passport');
require('../../config/express')(app, config, passport);
require('../.... | orapouso/justbrew | test/controllers/home.js | JavaScript | apache-2.0 | 1,325 |
/**
* @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/stats/base/dists/negative-binomial/cdf/test/test.cdf.js | JavaScript | apache-2.0 | 6,109 |
// 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 wr... | GoogleCloudPlatform/nodejs-docs-samples | appengine/pubsub/test/app.test.js | JavaScript | apache-2.0 | 4,062 |
var request = require('request');
var _ = require('lodash');
var util = require('util');
var ctrlBase = require('./baseController');
var CardController = function() {
var self = this;
CardController.super_.call(self, 'swfc'); // Call the base init
self.object = 'cards';
};
util.inherits(CardController, ctrlBase)... | jpero09/swfc-ui | server/controllers/cards.js | JavaScript | apache-2.0 | 807 |
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '6.29.1',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
FILE_SUFFIX: '.html',
LINK_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'... | Shynixn/BlockBall | docs/build/html/_static/documentation_options.js | JavaScript | apache-2.0 | 356 |
define(['app'], function(app)
{
app.controller('ContactViewController',
[
'$scope',
function($scope)
{
$scope.page =
{
heading: 'Contact Us'
};
}
]);
}); | joesaas/rest-html | app/scripts/controllers/ContactViewController.js | JavaScript | apache-2.0 | 250 |
define('crm/Integrations/BOE/Views/Account/SalesDashboardWidget', ['module', 'exports', 'dojo/_base/declare', 'dojo/_base/lang', 'dojo/string', 'argos/Convert', 'argos/RelatedViewManager', '../../DashboardWidget', 'argos/I18n', 'crm/Format', 'crm/Aggregate', 'icboe/Aggregate'], function (module, exports, _declare, _lan... | Saleslogix/argos-saleslogix | src-out/Integrations/BOE/Views/Account/SalesDashboardWidget.js | JavaScript | apache-2.0 | 9,645 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | airbnb/caravel | superset/assets/src/visualizations/deckgl/Multi/MultiChartPlugin.js | JavaScript | apache-2.0 | 1,364 |
var boot = require('../bin/www').boot,
shutdown = require('../bin/www').shutdown,
port = require('../bin/www').port,
should = require('should'),
Q = require('q'),
request = require('superagent');
function sendInstruction(data, route) {
var deferred = Q.defer();
request.post('http://localhost:' + port + r... | eduartheinen/raspiblocos | test/raspiblocos-route.js | JavaScript | apache-2.0 | 1,601 |
var logger = require('lib/logger')(module);
var async = require('async');
var User = require('models/user').User;
var HttpError = require('error').HttpError;
var Problem = require('models/problem').Problem;
var BONUS_KEY_WORD = "бонус";
var HINT_KEY_WORD = "подсказка";
exports.post = function (req, res, next) {
l... | koof90/srengine | routes/globalbonus.js | JavaScript | apache-2.0 | 4,141 |
var group__i2c__dma__driver =
[
[ "i2c_master_dma_handle_t", "group__i2c__dma__driver.html#struct__i2c__master__dma__handle", [
[ "transfer", "group__i2c__dma__driver.html#a2a42954d3ed3c3138a2e0470d10d4485", null ],
[ "transferSize", "group__i2c__dma__driver.html#a2b7048fa97083cb5e44c75755d1331a6", null... | scottdarch/Noer | FRDMK66NoEr/SDK_2.1_FRDM-K66F-GCC-Full/docs/Kinetis SDK API Reference Manual MK66F18_v2.1.0/group__i2c__dma__driver.js | JavaScript | apache-2.0 | 1,285 |
var score = function(table, table_type, bmi, age) {
var result = 0;
var items = table.items;
if (!items || items.length === 0) return result;
for(var i = 0;i < items.length; i++) {
result += cal(items[i]);
}
table.score = result;
if (table_type == 'caprini') {
if (bmi >= 25 && bmi < 40) {
result += 1;
}... | chris6k/doctor | node/biz/calculate.js | JavaScript | apache-2.0 | 3,129 |
// Copyright 2022 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 in ... | googleapis/nodejs-ai-platform | samples/generated/v1/job_service.list_batch_prediction_jobs.js | JavaScript | apache-2.0 | 2,909 |
/*
* Copyright 2016 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 applicabl... | google/marzipano | demos/cube-generated/SolidColorSource.js | JavaScript | apache-2.0 | 2,453 |
(function () {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
var Hasher = C_lib.Hasher;
var C_x64 = C.x64;
var X64Word = C_x64.Word;
var X64WordArray = C_x64.WordArray;
var C_algo = C.algo;
function X64Word_create() {
return X64Word.create.apply(X64Word, arguments);
... | EJLearner/church-site | public_html/js/sha512-goog.js | JavaScript | apache-2.0 | 12,390 |
/* @flow */
import React from 'react';
import { shallow } from 'enzyme';
import DialogFooter from '../DialogFooter';
import examples from '../../../website/app/demos/Dialog/DialogFooter/examples';
import testDemoExamples from '../../../../utils/testDemoExamples';
function shallowDialogFooter(props = {}) {
const dial... | mineral-ui/mineral-ui | src/library/Dialog/__tests__/DialogFooter.spec.js | JavaScript | apache-2.0 | 615 |
/* @flow */
import keytar from 'keytar'
import * as auth from 'poodle-core/lib/actions/auth'
import * as chrome from 'poodle-core/lib/actions/chrome'
import { takeLatest } from 'redux-saga'
import { call, cancelled, fork, put } from 'redux-saga/effects'
import * as oauth from '../oauth'
import type { Effect } from 'r... | PoodleApp/poodle-electron | src/sagas/index.js | JavaScript | apache-2.0 | 2,290 |
/**
* $Id: editor_plugin_src.js,v 1.1.1.1 2008/09/09 19:44:59 sp208304 Exp $
*
* @author Moxiecode
* @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
*/
/* Import plugin specific language pack */
tinyMCE.importPluginLanguagePack('save');
var TinyMCE_SavePlugin = {
getInfo ... | shanti/olio | tags/0.1-final/tags/release-0.1/webapp/php/trunk/public_html/js/tiny_mce/plugins/save/editor_plugin_src.js | JavaScript | apache-2.0 | 3,181 |
"use strict";
/**
* Requirements
*/
const SassFileParser = require(SOURCE_ROOT + '/parser/documentation/SassFileParser.js').SassFileParser;
const ContentType = require(SOURCE_ROOT + '/model/ContentType.js');
const ContentKind = require(SOURCE_ROOT + '/model/ContentKind.js');
const co = require('co');
const sinon = r... | entoj/entoj-core | test/parser/documentation/SassFileParserSpec.js | JavaScript | apache-2.0 | 2,193 |
/**
* Copyright (c) 2012-2017 Netflix, 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 require... | Netflix/msl | tests/src/main/javascript/entityauth/MockPresharedAuthenticationFactory.js | JavaScript | apache-2.0 | 8,710 |
(function () {
'use strict';
angular
.module('odsApp.newuser')
.controller('NewuserController', NewuserController);
NewuserController.$inject = ['newuserService'];
function NewuserController(newuserService) {
var vm = this;
vm.user = {firstName: '' ,lastName: '',email:'', mobile:'', roles:[]};
vm.... | slever/p2c | p2c-webapp/src/main/resources/static/app/newuser/newuser.controller.js | JavaScript | apache-2.0 | 1,124 |
"use strict";
angular.module('cast.controllers', [])
.controller('CastCtrl', [
'$scope','cast', '$log', 'appId','$state',
function CastCtrl($scope, cast, $log, appId, $state){
$scope.castApi = new cast.Api();
$scope.onReceiverList = function(list) {
$scope.re... | empiri-software/empiri-software.github.io | js/CastControllers.js | JavaScript | apache-2.0 | 1,711 |
'use strict';
goog.provide('Blockly.Python.base');
goog.require('Blockly.Python');
// ok
Blockly.Python.inout_highlow = function () {
// Boolean values HIGH and LOW.
var code = (this.getFieldValue('BOOL') == 'HIGH') ? '1' : '0';
return [code, Blockly.Python.ORDER_ATOMIC];
};
// ok
Blockly.Python.inout_dig... | xbed/Mixly_Arduino | mixly_arduino/blockly/generators/microbit_python/inout.js | JavaScript | apache-2.0 | 3,030 |
/**
* 设置环境变量
* Created by lingyuwang on 2016/3/28.
*/
var path = require('path');
module.exports = function(app){
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'ejs');
} | zhechu/nodework | ZeroCloud/environment.js | JavaScript | apache-2.0 | 220 |
/**
* @constructor
* @extends UIBase
*/
var ContainerBase = function()
{
this.type = 'container';
this.height = 0;
this.width = 0;
this.border_left = 1;
this.border_right = 1;
this.top = 0;
this.left = 0;
this.is_dirty = true;
this.view_id = '';
this.setDimensions = function(force_redraw, ... | runeh/dragonfly-stp-1 | src/ui-scripts/containers.js | JavaScript | apache-2.0 | 2,110 |
define([
'jquery',
'underscore',
'backbone',
'views/sidebar/SidebarView',
'text!templates/otros/contactoAyuda.html'
], function($, _, Backbone, SidebarView, ayuda){
var contactoAyuda = Backbone.View.extend({
el: $("#page"),
render: function(){
$('.menu li').removeClass('active');
... | polieduco/marcas20162 | proyectoweb/WebContent/js/views/otros/contactoAyudaView.js | JavaScript | apache-2.0 | 546 |
define(
({
"widgets": {
"TemplateBuilder": {
"enterBuilderButtonText": "Naar builder gaan",
"exitBuilderButtonText": "Builder verlaten",
"enterBuilderModeHelpText": "Ga naar de buildermodus om de applicatie te configureren",
"buil... | naulston/impact-summary-map-template-js-master | js/nls/nl/TemplateBuilder.js | JavaScript | apache-2.0 | 3,894 |
import React from 'react';
import { Linking, Text, TouchableOpacity } from 'react-native';
export default class URLButton extends React.PureComponent {
openURL() {
Linking.canOpenURL(this.props.url)
.then((supported) => {
if (!supported) {
console.warn("Can't... | Jack3113/edtBordeaux | components/buttons/URLButton.js | JavaScript | apache-2.0 | 847 |
var path = require('path');
var padEnd = require('lodash.padend');
var maxBy = require('lodash.maxby');
var startsWith = require('lodash.startswith');
var endsWith = require('lodash.endswith');
var find = require('lodash.find');
var CLIOption = require('./clioption');
var Iterator = require('./iterator');
var transform... | subchen/snack-cli | lib/cli.js | JavaScript | apache-2.0 | 7,953 |
/*global describe,it,element,by,takeScreenshot,expect*/
describe("sap.m.PlanningCalendar", function() {
"use strict";
/*
1. 2683
*/
it("should render the whole page", function() {
expect(takeScreenshot(element(by.id("page1-cont")))).toLookAs("hours_page");
});
/*
2. 2683
*/
it("should render page unde... | SAP/openui5 | src/sap.m/test/sap/m/visual/PlanningCalendar.spec.js | JavaScript | apache-2.0 | 19,234 |
require('chai').should();
var $ = require('jquery');
var _ = require('underscore');
var viewTestUtils = require('./utils/view-test-utils');
var POINT_1_FIELD = {
a : 'AAA'
};
var POINT_3_FIELDS = {
time : new Date(),
number : 3,
string : 'ABC'
};
var MARK = '------------------------------------------... | juttle/juttle-viz | test/views/text.spec.js | JavaScript | apache-2.0 | 11,354 |
var args = arguments[0] || {};
var xhr;
function onOpen(e) {
if (OS_ANDROID) {
var actionBar = e.source.activity.actionBar;
actionBar.displayHomeAsUp = true;
actionBar.onHomeIconItemSelected = function() {
e.source.close();
};
e.source.activity.inv... | BitterSymphony/Test | app/controllers/popup.js | JavaScript | apache-2.0 | 508 |
const featureScorePercentage = require('../helpers/featureScorePercentage.js');
module.exports = function () {
const elem = document.createElement('canvas');
const webgl = elem.getContext('webgl');
const ANGLE_instanced_arrays = webgl.getExtension('ANGLE_instanced_arrays');
const EXT_blend_minmax = web... | dafzthomas/doesitrunwell | src/modules/webgl.module.js | JavaScript | apache-2.0 | 2,862 |
sap.ui.define([
"sap/ui/core/UIComponent",
"sap/ui/Device",
"./model/models",
"./controller/ListSelector",
"./controller/ErrorHandler"
], function (UIComponent, Device, models, ListSelector, ErrorHandler) {
"use strict";
return UIComponent.extend("sap.ui.demo.masterdetail.Component", {
metadata : {
manife... | SAP/openui5-masterdetail-app | webapp/Component.js | JavaScript | apache-2.0 | 2,435 |
var click = {
__setup__: function __setup__(window_, xhr_, debug) {
var document_ = window_.document;
var screen_ = window_.screen;
var pagePath = window_.location.pathname;
// information about the size of the user screen. send once
var screen_h = screen_.height;
var screen_w = screen_.width... | buckbaskin/Insight | flaskserver/app/home/templates/js/components/click.js | JavaScript | apache-2.0 | 3,192 |
(function(fps) {
var RingShield = function(params) {
BABYLON.Mesh.call(this, "Shield", fps.Game.getInstance().scene);
this.maxHealth = params.h * fps.options.current.shieldFactor;
this.health = this.maxHealth;
this.color = params.c;
this.init();
};
RingShield.protot... | Vrashq/BabylonJs_Rendu | js/class/RingShield.js | JavaScript | apache-2.0 | 2,442 |
(function() {
"use strict";
var LOCAL = 0;
var REMOTE = 1;
var labels = {};
labels[LOCAL] = "L";
labels[REMOTE] = "R";
var targets = {};
Settings.foreach(labels, function(key, value) {
targets[value] = key;
});
function call(expression) {
var matches = (expression + "").match(Settings.regex.functions);
if (!matc... | Ghabriel/INE5425-Trab1 | Simulator.js | JavaScript | apache-2.0 | 7,284 |
import gremlin from 'gremlin'
import { createAcquiredByEdge } from './createAcquiredByEdge'
const gremlinStatistics = gremlin.process.statics
/**
* Given an Instrument object, Gremlin connection, and associated platform and collection, index instrument and build relationships between platform/instrument and collect... | nasa/Common-Metadata-Repository | graph-db/serverless/src/utils/cmr/indexInstrument.js | JavaScript | apache-2.0 | 1,671 |
import MessageRef from '@gdbots/pbj/well-known/MessageRef';
export default function BlockV1Mixin(M) {
Object.assign(M.prototype, {
/**
* @param {?string} tag
* @returns {MessageRef}
*/
generateMessageRef(tag = null) {
return new MessageRef(this.schema().getCurie(), this.get('etag') || th... | triniti/schemas | build/js/src/triniti/canvas/mixin/block/BlockV1Mixin.js | JavaScript | apache-2.0 | 367 |
/* eslint-env mocha */
import moment from 'moment'
import intercept from 'intercept-stdout'
import * as alexaSkill from '../src/alexa-skill'
import chai from 'chai'
import sinon from 'sinon'
import sinonChai from 'sinon-chai'
import dirtyChai from 'dirty-chai'
import {MinDurationError, MaxDurationError} from '../src/li... | ceilfors/realtime-ww2-alexa | packages/core/test/alexa-skill.spec.js | JavaScript | apache-2.0 | 7,487 |
module.exports = class RuleTreeNode {
constructor(letter, path) {
this.letter = letter;
this.rules = [];
this.path = path;
this.children = [];
}
put(index, rule) {
const path = rule.path;
const letter = path.charAt(index);
if (letter !== this.letter)... | qiangyt/mock-where | src/RuleTreeNode.js | JavaScript | apache-2.0 | 1,730 |
define(['marionette',
'backbone',
'backgrid',
'views/table', 'views/filter',
'collections/proposaltypes',
'modules/stats/collections/overview',
'modules/stats/collections/runs',
'utils', 'utils/table',
'templates/stats/overview2.html',
'jquery.flot'
], function(Marionette, Backbone, Backgrid, Tab... | DiamondLightSource/SynchWeb | client/src/js/modules/stats/views/overview2.js | JavaScript | apache-2.0 | 11,311 |
var mongoose = require('mongoose');
var bcrypt= require('bcrypt');
var userSchema = mongoose.Schema({
local: {
email: {type:String,required:true,unique:true},
password: {type:String, required:true},
firstname: String,
lastname: String,
telephone: String,
resetPasswordToken:String,
resetPassw... | salman-bhai/Quince | app/models/user.js | JavaScript | artistic-2.0 | 765 |
"ab\
cd"
"ab\\u2028cd" | highsource/javascript-codemodel | parser/src/test/resources/org/hisrc/jscm/parser/tests/StringLiteralTest.06.js | JavaScript | bsd-2-clause | 22 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/ary-ptrn-rest-ary-rest.case
// - src/dstr-binding/default/gen-func-expr.template
/*---
description: Rest element containing a rest element (generator function expression)
esid: sec-generator-function-definitions-runtime-semantics-... | sebastienros/jint | Jint.Tests.Test262/test/language/expressions/generators/dstr-ary-ptrn-rest-ary-rest.js | JavaScript | bsd-2-clause | 2,091 |
#!/usr/bin/env node
const Path = require('path')
const Fs = require('fs')
const mkdirp = require('mkdirp')
const cmdwatcher = require('./util/cmdwatcher')
const processing = {}
const waiting = {}
function process(file) {
if (processing[file]) {
waiting[file] = true
}
processing[file] = true
var output = Path.jo... | nodeschool/nodeschool.github.io | scripts/build-copy.js | JavaScript | bsd-2-clause | 791 |
// Copyright (C) 2018 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-atomics.wait
description: >
Demonstrates that Atomics.store(...) is causing a waiting
includes: [atomicsHelper.js]
features: [Atomics, BigInt, SharedArrayBuffer, TypedArray]... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Atomics/wait/bigint/no-spurious-wakeup-on-store.js | JavaScript | bsd-2-clause | 1,412 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-9-c-iii-10
description: >
Array.prototype.filter return value of callbackfn is a number
(value is negative number)
---*/... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-10.js | JavaScript | bsd-2-clause | 513 |
'use strict';
// Establish the root object, `window` in the browser, or `exports` on the server.
var root = this;
/**
* `imgix` is the root namespace for all imgix client code.
* @namespace imgix
*/
var imgix = {
version: '1.1.2'
};
// expose imgix to browser or node
if (typeof exports !== 'undefined') {
if (... | ivanseidel/imgix.js | src/core.js | JavaScript | bsd-2-clause | 66,637 |
/*
* Last.fm Connect Module
* Copyright (c) 2011, Stefan Hahn
*
* Based on BisaChat Last.fm Connect
*/
Modules.LastfmConnector = {
loadingTrack: false,
callerObj: null,
init: function(callerObj) {
this.callerObj = callerObj;
this.showNowPlayingButton();
this.registerOption();
},
showNowPlayingButto... | DerBiber/BisaChat-Plus | modules/LastfmConnector.js | JavaScript | bsd-2-clause | 3,657 |
var searchData=
[
['get_5fcontinuous_5fdelay_5fcir_2em',['get_continuous_delay_cir.m',['../get__continuous__delay__cir_8m.html',1,'']]],
['get_5fdiscrete_5fdelay_5fall_5fcirs_2em',['get_discrete_delay_all_cirs.m',['../get__discrete__delay__all__cirs_8m.html',1,'']]],
['get_5fdiscrete_5fdelay_5fcir_2em',['get_disc... | fms13/cdx | documentation/html/search/files_4.js | JavaScript | bsd-2-clause | 507 |
var curScript = null;
var curScript2 = null;
var server = new ScriptServer("api/")
function getScriptCallback(scriptCallback) {
return (function(e) {
var val = e.target.value;
console.log("getting script:", val);
server.getScript(val, function(item) {
console.log(item);
scriptCallback(item.... | sbarman/webscript_db | webscript_backend/static/scripts/compare.js | JavaScript | bsd-2-clause | 7,481 |
/*global assert*/
function iframeExecute(iframe, done, execute, assertCallback) {
iframe.contentWindow.done = function () {
try {
assertCallback(iframe);
done();
} catch (e) {
done(e);
}
};
// use setTimeout so stack trace doesn't go all the way ba... | Mappy/raven-js | test/integration/test.js | JavaScript | bsd-2-clause | 34,425 |
'use strict';
var gulp = require('gulp');
var gutil = require('gulp-util');
var sass = require('gulp-sass');
var connect = require('gulp-connect'); //Runs a local dev server
var open = require('gulp-open'); //Open a URL in a web browser
var browserify = require('browserify');
var babelify = require('babelify... | rtellez700/MESA_Connect_2.0 | gulpfile.js | JavaScript | bsd-2-clause | 2,751 |
goog.provide('ol.dom.Input');
goog.provide('ol.dom.InputProperty');
goog.require('goog.events');
goog.require('goog.events.EventType');
goog.require('ol.Object');
/**
* @enum {string}
*/
ol.dom.InputProperty = {
VALUE: 'value',
CHECKED: 'checked'
};
/**
* Helper class for binding HTML input to an {@link ol... | yinxiaomei/ol3 | src/ol/dom/input.js | JavaScript | bsd-2-clause | 3,353 |
const handleDataforAllPapers = (datas) => {
var results = [];
var data = datas.map(function (item) {
item.data.forEach(function (e) {
results.push(e);
});
});
return results;
};
const getAllPaperInfos = (github, resp) => {
var a = resp.meta.link.split('<https://');
a = a[a.length - 1].replace(... | Mignon-han/issue-processing | server/routes/utils.js | JavaScript | bsd-2-clause | 728 |
'use strict';
const chai = require('chai');
const chaiAsPromised = require('chai-as-promised');
const sinon = require('sinon');
const sinonChai = require('sinon-chai');
const should = chai.should();
const expect = chai.expect;
chai.use(sinonChai);
chai.use(chaiAsPromised);
const oracledb = require('oracledb');
const... | tmeisenh/node-oracle-helper | test/oracle-helper-tests.js | JavaScript | bsd-2-clause | 7,472 |
var createResource = require('./lib/resource.js');
var allInOnePack = require('./lib/pack.js');
var _ = fis.util;
/**
* 粗暴的打包器,纯前端嘛,不能识别模板语言,所以处理所有分析到的资源。
*/
function rudePackager(ret, pack, settings, opt) {
var files = ret.src;
var sources = _.toArray(files);
// 生成映射表,方便快速查找!
var idmapping = ret.idmapping ... | fengshao0907/fis3-postpackager-loader | index.js | JavaScript | bsd-2-clause | 4,733 |
///
/// @copyright 2015 Adam Meily <meily.adam@gmail.com>
///
// Libraries
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('./logger');
var cookieParser = require('cookie-parser');
var config = require('./conf/app-config');
var bodyParser = req... | ameily/raziel | app.js | JavaScript | bsd-2-clause | 3,310 |
define(
['storeys/conf/urls', 'storeys/views/generic/base'],
function(urls, base) {
var url = urls.url,
include = urls.include,
TemplateView = base.TemplateView;
return [
url('^/',
new TemplateView({
templatepath: 'app/index.html',
targe... | storeys/storeys | examples/apps/app/urls.js | JavaScript | bsd-2-clause | 470 |
/*
*
* Copyright 2015, Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | ksophocleous/grpc | src/node/examples/perf_test.js | JavaScript | bsd-3-clause | 4,024 |
var sudoku =
[ 0, 0, 0, 0, 0, 5, 3, 0, 7,
0, 9, 2, 1, 4, 0, 0, 0, 0,
0, 0, 0, 8, 0, 0, 0, 0, 0,
0, 0, 0, 0, 7, 0, 5, 0, 1,
0, 4, 0, 0, 0, 0, 0, 7, 0,
5, 0, 6, 0, 8, 0, 0, 0, 0,
0, 0, 0, 0, 0, 6, 0, 0, 0,
0, 0, 0, 0, 3, 9, 2, 5, 0,
2, 0, 9, 4, 0, 0, 0, 0, 3 ]
function sudokuDig... | malie/drolesat | sudoku-visualisation/vis.js | JavaScript | bsd-3-clause | 4,570 |
/**
* Turn Markdown image shortcuts into <img> tags.
*/
showdown.subParser('images', function (text, options, globals) {
'use strict';
var inlineRegExp = /!\[(.*?)]\s?\([ \t]*()<?(\S+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(['"])(.*?)\6[ \t]*)?\)/g,
referenceRegExp = /!\[(.*?)][... | bsansouci/showdown | src/subParsers/images.js | JavaScript | bsd-3-clause | 2,437 |
define([
"dcl/dcl",
"intern!object",
"intern/chai!assert",
"decor/sniff",
"delite/register",
"dojo/dom-class", // TODO: replace (when replacement confirmed)
"dstore/Memory",
"dstore/Trackable",
"deliteful/list/List",
"deliteful/Combobox",
"deliteful/Store"
], function (dcl, registerSuite, assert, has, regist... | redaktor/deliteful | tests/unit/Combobox.js | JavaScript | bsd-3-clause | 16,678 |
/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the Clear BSD license.
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/Control.js
* @requires OpenLayers/Geometry/... | bianchimro/django-openlayers | openlayers/static/lib/OpenLayers/Control/Geolocate.js | JavaScript | bsd-3-clause | 5,371 |
const { asPromise } = require( '../utils' );
async function simpleExecutor( handler, ...args ) {
return await handler( ...args );
}
async function asyncExecutor( handler, ...args ) {
// will create a callback
return asPromise( handler, ...args );
}
function createExecutor( handler ) {
let executor... | vandium-io/vandium-node | lib/event_types/executors.js | JavaScript | bsd-3-clause | 594 |
export const Action = {
Increment: x => x + 1,
Decrement: x => x - 1
}
export const init = (count) => count
export const update = (action, model) => action(model)
export default {init, update, Action}
| steos/elmar.js | src/examples/AdvancedCounter/Model.js | JavaScript | bsd-3-clause | 218 |
function extension_runAudits(callback)
{
evaluateOnFrontend("InspectorTest.startExtensionAudits(reply);", callback);
}
// runs in front-end
var initialize_ExtensionsAuditsTest = function()
{
InspectorTest.startExtensionAudits = function(callback)
{
const launcherView = WebInspector.panels.audits._l... | smilusingjavascript/blink | LayoutTests/inspector/extensions/extensions-audits-tests.js | JavaScript | bsd-3-clause | 1,573 |
var config = {"document":{"height":210,"width":297,"mode":"rgb"},"characterStyles":[{"name":"swatchRectTitle","attributes":{"size":8}}],"swatchRect":{"textPosition":0.125},"colors":[{"group":"vega-viridis-3","name":"vega-viridis-3-1","rgb":[59,82,139]},{"group":"vega-viridis-3","name":"vega-viridis-3-2","rgb":[33,145,1... | netbek/chrys | illustrator/vega-viridis-3.js | JavaScript | bsd-3-clause | 13,851 |
//Use Strict Mode
(function($) {
"use strict";
//Remove loading-wrapper class before window load
// setTimeout(function(){
// $('.loading-wrapper').removeClass('loading-wrapper-hide');
// return false;
// }, 10);
//======= Run on Window Load ============
$(window).load(function(){
//Viewport
var windowHe... | Anilbits09/zaldibazar_repo | zaldibazar_repo/static/js/main.js | JavaScript | bsd-3-clause | 9,599 |
/*
* Copyright (c) 2016, Two Sigma Open Source
* 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 source code must retain the above copyright notice,
* this list of... | twosigma/git-meta | node/lib/util/commit.js | JavaScript | bsd-3-clause | 94,196 |
// Path parsing and rendering code adapted from fabric.js -- Thanks!
var cmdlen = { m:2, l:2, h:1, v:1, c:6, s:4, q:4, t:2, a:7 },
regexp = [/([MLHVCSQTAZmlhvcsqtaz])/g, /###/, /(\d)([-+])/g, /\s|,|###/];
module.exports = function(pathstr) {
var result = [],
path,
curr,
chunks,
parsed, pa... | smartpcr/vega-scenegraph | src/path/parse.js | JavaScript | bsd-3-clause | 1,154 |
(function() {
// delete a reply
$('.reply-list .delete').click(function() {
var self = $(this);
var replyId = self.attr('href').slice(1);
$.ajax({
url: location.pathname + '/reply?reply=' + replyId,
method: 'DELETE',
success: function() {
self.parents('.item').fadeOut();
... | lepture/june | static/js/site.js | JavaScript | bsd-3-clause | 362 |
define(["require", "exports", 'dojo/_base/array', './has', './util'], function (require, exports, arrayUtil, has, util) {
var Observable = (function () {
function Observable(kwArgs) {
if (kwArgs === void 0) { kwArgs = {}; }
this._dependencies = has('es5') ? Object.create(null) : {};
... | SitePen/mayhem-bower | Observable.js | JavaScript | bsd-3-clause | 4,425 |