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
enyo.kind({ name: "SundayDataHTTPTest", kind: enyo.TestSuite, test1: function() { var SundayData = enyo.global.SundayData; var testid = "test"+Math.uuid(32, 16).toLowerCase(); var testSD = new SundayData("http://testcouch:test123@localhost:5984/"+testid+"/"); var assertEqual = eny...
olafura/sundaydata
test/sundaydata/tests/SundayDataHTTPTest.js
JavaScript
apache-2.0
5,631
/* * provide advise to Pocket */ import { not, compose, split, filter, init, head, last, slice, startsWith, endsWith, anyPass, append, insert, isEmpty, path as pathFn, ifElse, identity, tail, values, pick, map, pickBy, } from 'ramda' import { from } from 'rxjs' import { I...
mydearxym/mastani
src/containers/tool/Doraemon/logic/advisor.js
JavaScript
apache-2.0
4,253
/** * Copyright 2017 Yuichiro Tsuchiya * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
asha-nepal/AshaFusionCross
src/web/containers/PatientView.react.js
JavaScript
apache-2.0
750
// Copyright 2013 SAP AG. // // 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...
SAP/node-hdb
lib/protocol/part/ConnectOptions.js
JavaScript
apache-2.0
5,958
$(document).ready(function () { if ($(".bxslider").length) { $('.bxslider').bxSlider({mode: 'fade'}); } });
KinokoNguyen/Education
blocks/2016/js/2016.js
JavaScript
apache-2.0
123
/** * @author Vui Nguyen */ function DeckInfoCardsWindow(parentWindow, colorGroupName, color, descrip) { var window = Ti.UI.createWindow({ title: color, backgroundImage: '/images/bg.png', backgroundRepeat: 'true', barColor: '#272B33', layout: 'vertical' }); var platform = Ti.Pl...
PlebeianApps/CardPuller2
Resources/ui/deck/DeckInfoCardsWindow.js
JavaScript
apache-2.0
2,825
/*! * Start Bootstrap - Grayscale Bootstrap Theme (http://startbootstrap.com) * Code licensed under the Apache License v2.0. * For details, see http://www.apache.org/licenses/LICENSE-2.0. */ // jQuery to collapse the navbar on scroll // $(window).scroll(function() { // if ($(".navbar").offset().top > 50) { // ...
austinblanchard/tc_5k
js/grayscale.js
JavaScript
apache-2.0
5,248
/* * Copyright 2012 OSBI 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 law or a...
NAUMEN-GP/saiku
saiku-ui/js/saiku/models/Session.js
JavaScript
apache-2.0
4,694
import React, { Component } from 'react'; import { Text, View } from 'react-native'; import { GraphRequest, GraphRequestManager } from 'react-native-fbsdk'; import { Router } from '../Nav'; import LogOut from '../LogOut'; import styles from './styles'; export default class FriendList extends Component { constructor(...
murilovmachado/caronete
shared/FriendList/index.js
JavaScript
apache-2.0
1,817
/** * @license Apache-2.0 * * Copyright (c) 2019 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/repl/lib/validate.js
JavaScript
apache-2.0
6,379
require('dotenv').config({ path: `.env`, }) const prismicHtmlSerializer = require('./src/gatsby/htmlSerializer') const website = require('./config/website') const pathPrefix = website.pathPrefix === '/' ? '/' : website.pathPrefix module.exports = { /* General Information */ pathPrefix: website.pathPrefix, s...
maektwain/maektwain.github.io
gatsby-config.js
JavaScript
apache-2.0
2,180
module.exports = (function() { 'use strict'; var router = require('express').Router(), ModelContact = require('../lib/models/contact'), ControllerContacts = require('../lib/controllers/contacts'); router.post('/contacts', function (req, res) { var ctrlr = new ControllerContact...
lamplightdev/contact-lens
routes/api.js
JavaScript
apache-2.0
2,261
/** * ¾ÀÆ«Ëã·¨ * @type {{PI: number, x_pi: number, delta: delta, gcj_encrypt: gcj_encrypt, gcj_decrypt: gcj_decrypt, gcj_decrypt_exact: gcj_decrypt_exact, bd_encrypt: bd_encrypt, bd_decrypt: bd_decrypt, mercator_encrypt: mercator_encrypt, mercator_decrypt: mercator_decrypt, distance: distance, outOfChina: o...
pasu/ExamplesforCesium
examples/js/gps.js
JavaScript
apache-2.0
7,552
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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.o...
swsachith/product-bam
modules/components/org.wso2.carbon.siddhi.editor.core/src/main/resources/web/js/source-editor/antlr/gen/SiddhiQLListener.js
JavaScript
apache-2.0
31,107
/** * Simple wrapper around localStorage */ var Storage = {}; var store; try { if (typeof window.localStorage == 'undefined' || window.localStorage === null) { store = CookieStorage(); } else { store = window.localStorage; } } catch(err) { store = CookieStorage(); } Storage.get = function(key, default_val)...
orangechat/webapp
src/Services/Storage.js
JavaScript
apache-2.0
2,561
var MTA_CONFIG={app_id:"",event_id:"",api_base:"https://pingtas.qq.com/pingd",prefix:"_mta_",version:"1.3.10",stat_share_app:!1,stat_pull_down_fresh:!1,stat_reach_bottom:!1,stat_param:!0};function getNetworkType(a){wx.getNetworkType({success:function(b){a(b.networkType)}})} function getSystemInfo(){var a=wx.getSystemIn...
EastWorld/wechat-app-mall
packageStreamMedia/components/TRTCCalling/libs/mta_analysis.js
JavaScript
apache-2.0
5,827
Ext.define('SysApp.view.role.auth.sysroleauth.center.SysRoleAuthAdjustController', { extend: 'Ext.app.ViewController', alias: 'controller.sys-role-auth-adjust', onAfterRender : function(comp){ PmhTech.Ajax.request({ url :'/sys/roles', method : 'GET', success : th...
pmhtech/extjs
sys/classic/src/view/role/auth/sysroleauth/center/SysRoleAuthAdjustController.js
JavaScript
apache-2.0
4,338
var map = null; var marks = null; var routes = null; var currentPosition = null; var horarios = null; $(document).ready(function () { initializeMap(); getCurrentPosition(); }); function initializeMap() { var latlng = new google.maps.LatLng(-34.617952, -58.484447); var myOptions = { zoom: 11, ...
esculli/CalC-AppCelulares
www/javascripts/sitio.mapa.js
JavaScript
apache-2.0
5,117
/** * @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/no-dynamic-exports/examples/index.js
JavaScript
apache-2.0
1,316
/* * This software stands under the Apache 2 License */ describe("utils", function() { it("should format time string correctly", function() { defaultTranslationMap = {}; defaultTranslationMap["minabbr"] = 'min'; defaultTranslationMap["hourabbr"] = 'h'; defaultTranslationMap["dayabb...
jansoe/graphhopper
web/src/test/webapp/spec/UtilsSpec.js
JavaScript
apache-2.0
6,170
sap.ui.define(['sap/ui/webc/common/thirdparty/base/config/Theme', './v5/menu', './v4/menu'], function (Theme, menu$2, menu$1) { 'use strict'; const pathData = Theme.isThemeFamily("sap_horizon") ? menu$1 : menu$2; var menu = { pathData }; return menu; });
SAP/openui5
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/menu.js
JavaScript
apache-2.0
261
function languageSelect(languageCode, redirect){ //language code: iso639 code $.ajax({ url: "/setlang/" + languageCode, async: true, error: function (query, status, error) { console.log("Error getting data: " + error); }, success: function (data) { ...
xuzhongxing/deeplearning4j
deeplearning4j-ui-parent/deeplearning4j-play/src/main/resources/deeplearning4jUiAssets/js/train/train.js
JavaScript
apache-2.0
4,489
var classqsense_1_1_u_u_i_d = [ [ "Version", "classqsense_1_1_u_u_i_d.xhtml#af5542ea81f669e1c5644494e7703e175", [ [ "UUID_TIME_BASED", "classqsense_1_1_u_u_i_d.xhtml#af5542ea81f669e1c5644494e7703e175a397af5830ac9c2762f7602fedd5e9011", null ], [ "UUID_DCE_UID", "classqsense_1_1_u_u_i_d.xhtml#af5542ea81f6...
sidecar-io/sidecar-arduino-sdk
doc/html/classqsense_1_1_u_u_i_d.js
JavaScript
apache-2.0
2,870
var ODataCollectionWindow = function(args, collection) { var self = Ti.UI.createWindow(args); var eventName = 'odata_member_resources_loaded_' + collection; Ti.API.debug('Attaching event listener: ' + eventName); Ti.UI.addEventListener(eventName, function(data) { Ti.API.debug('Responding to event: ' + eventName...
predominant/TItanium-OData-App-Example
Resources/ui/ODataCollectionWindow.js
JavaScript
apache-2.0
545
var wallgame_result; var firstlivalue; var secondlivalue; var wallgame_firstliselected = false; var wallgame_secondliselected = false; var id1; var id2; var wallgame_counter; var numberoflis; var wallgame_intentos; /*====================================== Initialise the wallgame =======================================...
kreuzerk/AdventuraMathematica
js/wallgame.js
JavaScript
apache-2.0
3,863
import React from 'react' import Container from '../../components/Container' // import Button from '../../components/Button' import ExpenseForm from './ExpenseForm' // TODO move these // const itemCoffee = { // id: uuidv1(), // title: 'Coffee', // cost: 4 // } // const itemDinner = { // id: uuidv1(), // tit...
mitchgavan/got-your-money
src/scenes/addExpense/AddExpense.js
JavaScript
apache-2.0
851
'use strict'; var soajs = require('soajs'); var Grid = require('gridfs-stream'); var formidable = require('formidable'); var Mongo = soajs.mongo; var mongo; var dbName = "momento"; var collName = "events"; function checkIfMongo(soajs) { if (!mongo) { mongo = new Mongo(soajs.registry.coreDB[dbName]); }...
antoinehage/hackathon
model/event.js
JavaScript
apache-2.0
5,666
import React, { Component } from 'react'; import './users.css'; import * as api from '../../../services/api' import * as socket from '../../../services/socket' import { setUsers, addThread, selectThread, toggleUsersMenu } from '../actions'; import { connect } from 'react-redux'; export class Users extends Component ...
fabianobizarro/chat-app
src/components/Chat/Users/Users.js
JavaScript
apache-2.0
2,247
/* Qookery - Declarative UI Building for Qooxdoo Copyright (c) Ergobyte Informatics S.A., www.ergobyte.gr 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/LICE...
ergobyte/qookery
qookerymobile/source/class/qookery/mobile/components/FormComponent.js
JavaScript
apache-2.0
7,970
/* jshint expr:true */ "use strict"; var Flight = source("flight"); describe("Cylon.Drivers.ARDrone.Flight", function() { var driver; var ardrone = { _ref: { emergency: false } }; beforeEach(function() { driver = new Flight({ connection: { animate: spy(), front: spy(), stop: s...
LintangArief/Jalaon
node_modules/cylon-ardrone/spec/lib/flight.spec.js
JavaScript
apache-2.0
2,760
/** * Created by kevin on 05/12/2015 for Podcast Server */ import {Component, Module} from '../../../decorators'; import DownloadManager from '../../service/data/downloadManager'; import playlistService from '../../service/playlistService'; import ItemServiceModule from '../../service/data/itemService'; import Copy f...
davinkevin/Podcast-Server
frontend-angularjs/www/app/common/component/item-menu/item-menu.js
JavaScript
apache-2.0
2,865
function initOptions() { $("#options-url").attr("href", chrome.extension.getURL('src/options/options.html')); chrome.runtime.sendMessage({type: "get-active-tab-base-url"}, function(result) { if (result.activeTabBaseUrl){ $("#search").attr("placeholder", "Search history for " + result.acti...
kavanpuranik/go-back-there
src/browser_action/browser_action.js
JavaScript
apache-2.0
2,195
import React from 'react'; import ReactDOM from 'react-dom'; import Draft from 'draft-js'; // 将下载的百度富文本文件包导入到合适位置;这里放入的是dist目录下面 const {RichUtils, CompositeDecorator, Editor, EditorState} = Draft; class Ueditor extends React.Component{ constructor(props){ super(props); this.state = {}; } com...
MichaelNow/FlowCRM
web/src/main.js
JavaScript
apache-2.0
1,093
/* @flow */ import { insertRule } from 'glamor'; import { uniq } from 'lodash'; import { clinicalDonorTracks, dataTypeTracks, geneTracks, geneSetTracks, gdcTracks, getColorValue, } from '@ncigdc/components/Oncogrid/tracks'; import { mapDonors, mapGenes, buildOccurrences } from './dataMapping'; import { T...
NCI-GDC/portal-ui
src/packages/@ncigdc/components/Oncogrid/oncoGridParams.js
JavaScript
apache-2.0
5,117
/* * 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 ...
badlogicmanpreet/aura
aura-components/src/main/components/ui/pillContainer/pillContainerHelper.js
JavaScript
apache-2.0
12,440
/** * Directive of Video Player */ 'use strict'; syncPlayerApp.directive('newRoomDialog', [ '$resource', '$location', function($resource, $location) { return { restrict : 'E', scope : {}, templateUrl : '/js/dir/new-room-dialog.tpl.html', link : function(scope, elem, attr, ctrl) { reset(); ...
chundongwang/syncPlayer
webapp/js/dir/new-room-dialog.js
JavaScript
apache-2.0
1,361
import { FlowRouter } from 'meteor/kadira:flow-router'; import { BlazeLayout } from 'meteor/kadira:blaze-layout'; FlowRouter.route('/', { name: 'Public_Landing_Page', action() { BlazeLayout.render('App_Body', { main: 'Public_Landing_Page' }); }, }); FlowRouter.route('/login', { name: 'Login_Page', actio...
dylanpavao/final-project-mockup
app/imports/startup/client/router.js
JavaScript
apache-2.0
1,840
import React from 'react' import PropTypes from 'prop-types' import { Text, View, StyleSheet } from 'react-native' class Pager extends React.PureComponent { static propTypes = { themeColor: PropTypes.string.isRequired, dataSource: PropTypes.array.isRequired } render() { const { header, themeColor, da...
manweill/dna-ebook
src/components/viewer/Pager.js
JavaScript
apache-2.0
1,231
const electron = require('electron'); const {app} = electron; const {BrowserWindow} = electron; require('electron-reload')(`${__dirname}/src/app/**/*.backend.js`, { electron: require('electron-prebuilt') }); let win; function createWindow() { win = new BrowserWindow({width: 1100, height: 800, icon: `${__dirname}...
ts8-io/apps-manager
main.js
JavaScript
apache-2.0
740
jQuery(function(){ jQuery('textarea').each(function(index,obj){ var $obj = jQuery(obj); var $button = jQuery('<button >Edit in ace editor</button>'); var $editor_id = 'aceedit'+index; $button.data('linkededitor' , obj); $button.data('editorid' ,$editor_id); $but...
eriksimonic/magento_ace_editor
js/aceeditor/ace_initeditor.js
JavaScript
apache-2.0
2,389
/* eslint-env node */ 'use strict'; var path = require('path'); module.exports = function (root, options) { 'use strict'; var tungstenPath = '../dist/tungsten.backbone.web.js'; if (options && options.dev) { tungstenPath = '../dist/tungsten.backbone.debug.web.js'; } return { entry: './js/app', ...
wayfair/tungstenjs
examples/base_webpack.config.js
JavaScript
apache-2.0
1,316
/* @flow */ import { config } from '../config'; import { LOG_LEVEL } from '../constants'; import { getSessionID, getSessionState } from './session'; const BEACON_URL = 'https://www.paypal.com/webapps/hermes/api/logger'; export function beacon(event : string, payload : Object = {}) { try { payload.event...
trainerbill/paypal-checkout
src/lib/beacon.js
JavaScript
apache-2.0
3,031
(function () { 'use strict'; angular .module('myApp') .factory('SearchData',SearchData) .controller('MovieController',MovieController); function MovieController ($scope,$stateParams,SearchData) { var title= $stateParams.title; console.log(title); SearchData.fetch(title).then(function(...
varunsahni003/MovieApp
views/search/search.js
JavaScript
apache-2.0
606
/*! * ${copyright} */ sap.ui.define([ "sap/ui/core/mvc/Controller", "sap/ui/core/UIComponent", "sap/ui/model/json/JSONModel", "sap/ui/mdc/condition/ConditionModel", "sap/ui/mdc/condition/Condition", "sap/m/Dialog", "sap/m/Button", "sap/m/library", 'sap/m/Text', "sap/m/MessageToast" ], function (Controller,...
SAP/openui5
src/sap.ui.mdc/test/sap/ui/mdc/integration/ListReport/controller/OrderDetails.controller.js
JavaScript
apache-2.0
4,227
function Subscriber(ws, clientKey, options) { this.ws = ws; this.clientKey = clientKey; this.options = options; this.publish = this.publish.bind(this); } Subscriber.prototype.publish = function(updated, deviceID, serviceID, data) { // only send updated data, subject to change if we need to do api ...
out4b/cdif
lib/ws-subscriber.js
JavaScript
apache-2.0
2,124
/** * Created by dmccarthy on 14/11/2013. */ 'use strict'; var dataApi = require('./main.js'); var config = { dao_sink : { spec:'tcp://127.0.0.1:49999', bind:false, type:'push', id:'d' }, mongrel_handler : { source : { spec:'tcp://127.0.0.1:49913', id:'e', bind:false, type:'pull', isMongrel2:tr...
peat-platform/attachment-api
lib/local-runner.js
JavaScript
apache-2.0
903
import { Plug } from 'mindtouch-http.js/plug.js'; import { Settings } from './lib/settings.js'; import { modelParser } from './lib/modelParser.js'; import { utility } from './lib/utility.js'; import { pageCommentModel } from './models/pageCommentModel.js'; export class PageComment { constructor(pageId = 'home', co...
derekrobbins/martian
pageComment.js
JavaScript
apache-2.0
1,483
/* * Copyright 2005-2014 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless requi...
ua-eas/ua-rice-2.1.9
web/src/main/webapp/krad/scripts/krad.initialize.js
JavaScript
apache-2.0
11,745
import { config } from '../src/config.js'; import { setS2STestingModule } from '../src/adapterManager.js'; let s2sTesting = {}; const SERVER = 'server'; const CLIENT = 'client'; s2sTesting.SERVER = SERVER; s2sTesting.CLIENT = CLIENT; var testing = false; // whether testing is turned on var bidSource = {}; // store ...
varashellov/Prebid.js
modules/s2sTesting.js
JavaScript
apache-2.0
3,995
// labels along the x-axis var qpsNum = ["10", "100", "200", "400", "800", "1000"]; // x-axis and y-axis labels var memOptions = { scales: { yAxes: [{ scaleLabel: { display: true, labelString: "istio-proxy average Memory (Mi)" }, }], xA...
istio/tools
perf_dashboard/static/js/mem_qps.js
JavaScript
apache-2.0
18,044
import {ElementRef} from 'angular2/angular2'; import {Injectable} from 'angular2/src/di/annotations_impl'; // TODO(radokirov): Once the application is transpiled by TS instead of Traceur, // add those imports back into 'angular2/angular2'; import {Component, Directive} from 'angular2/src/core/annotations_impl/annotati...
justinfagnani/angular
modules/examples/src/hello_world/index_common.js
JavaScript
apache-2.0
2,465
/** * Copyright (c) 2013-2015 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 requir...
rspieldenner/msl
core/src/main/javascript/util/MslUtils.js
JavaScript
apache-2.0
2,603
//Retrieve the countries in ajax and return an array of value //The selectType change the value key : //for select input : {"value":"FR", "text":"France"} //for select2 input : {"id":"FR", "text":"France"} function getCountries(selectType) { mylog.log("getCountries"); var result = new Array(); $.ajax({ url: baseU...
pixelhumain/co2
assets/js/dataHelpers.js
JavaScript
apache-2.0
16,862
/** * @author Marc Worrell <marc@worrell.nl> * @copyright 2016 Marc Worrell * @doc Chat using pubzub (MQTT) * * Copyright 2016 Marc Worrell * * 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 Licen...
mworrell/mod_chatpage
lib/chatpage/component.js
JavaScript
apache-2.0
2,411
var repo = require("./repo"); var qtest = require("./test").qtest; exports.branches = { // Branches listing list: function(test) { qtest(repo.branches(), test); }, // Current branch current: function(test) { qtest(repo.branch(), test); } }
CodeboxIDE/gittle.js
test/branches-test.js
JavaScript
apache-2.0
281
import Ember from 'ember'; import Resource from 'ember-api-store/models/resource'; import { parseExternalId } from 'ui/utils/parse-externalid'; import C from 'ui/utils/constants'; export default Resource.extend({ catalog: Ember.inject.service(), type: 'catalogTemplate', externalId: function() { let id = th...
radishgz/ui-1.5.9
app/models/catalogtemplate.js
JavaScript
apache-2.0
1,232
/*! * ${copyright} */ sap.ui.define([ "sap/ui/fl/initial/_internal/changeHandlers/ChangeHandlerStorage", "sap/ui/fl/Utils", "sap/ui/fl/Layer", "sap/ui/fl/Change", "sap/ui/fl/ChangePersistenceFactory", "sap/ui/fl/write/_internal/Versions", "sap/ui/fl/apply/_internal/changes/Applier", "sap/ui/fl/apply/_interna...
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/FlexController.js
JavaScript
apache-2.0
26,074
const path = require('path'); module.exports = { extensions: ['.ts', '.tsx', '.js'], alias: { components: path.join(__dirname, 'components'), layouts: path.join(__dirname, 'layouts'), lib: path.join(__dirname, 'lib'), pages: path.join(__dirname, 'pages'), }, };
amazeeio/lagoon
services/ui/src/webpack.shared-config.js
JavaScript
apache-2.0
285
var validPath = require('./valid-path') module.exports = function parents (path) { if (!path) return undefined if (path === '/') { return [] } var components = path.split('/'), list = [] for (var i = 0; i < components.length -1; i++) list[i] = (i === 0 ? '/' : compone...
jasonpincin/pharos-tree
lib/parents.js
JavaScript
apache-2.0
595
var orgTreeModel = new eiTreeModel('ESUTTR10'); var userTreeModel = new eiTreeModel('ESUTTR11'); var HROGTreeModel = new eiTreeModel('ESUTTR30'); gridIds = [ "ef_grid_user", "ef_grid_post", "ef_grid_postType", "ef_grid_hrog" ]; gridMeta = { "ef_grid_user" : ["USER", "用户", ...
stserp/erp1
source/web/ES/UT/ESUT10.js
JavaScript
apache-2.0
9,791
var dir_f9c523579e050b9f4011336496fe9b0c = [ [ "stc", "dir_f26e1547dbf68aef713f07c1c8999739.html", "dir_f26e1547dbf68aef713f07c1c8999739" ] ];
onosfw/apis
onos/apis/dir_f9c523579e050b9f4011336496fe9b0c.js
JavaScript
apache-2.0
146
'use strict'; var Babbler = require('./Babbler'); var Tell = require('./block/Tell'); var Listen = require('./block/Listen'); var Then = require('./block/Then'); var Decision = require('./block/Decision'); var IIf = require('./block/IIf'); /** * Create a new babbler * @param {String} id * @return {Babbler} babble...
enmasseio/babble
lib/babble.js
JavaScript
apache-2.0
10,777
/* Lavaca 1.0.5 Copyright (c) 2012 Mutual Mobile 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, ...
egomez1981/baseMobileWebFramework
www/js/app/net/ExampleController.js
JavaScript
apache-2.0
2,306
/** * The app module, as both AngularJS as well as RequireJS module. * Splitting an app in several Angular modules serves no real purpose in Angular 1.2. * (Hopefully this will change in the near future.) * Splitting it into several RequireJS modules allows async loading. We cannot take full advantage * of Require...
sambott/toy-chat-server
app/assets/javascripts/app.js
JavaScript
apache-2.0
719
#!/usr/bin/env node /* How many Sundays fell on the first of the month during the twentieth century (1 Jan 1901 to 31 Dec 2000)? A leap year occurs on any year evenly divisible by 4, but not on a century unless it is divisible by 400. */ var operator = require('../operator.js'), timer = require('../time...
dhermes/project-euler
javascript/complete/no019.js
JavaScript
apache-2.0
1,457
import { Button } from './Button'; class ButtonToggle extends Button { constructor() { super(); } register(resolve) { console.log('Registering decorated component ...'); super.register(resolve); } onClick(ev) { alert('Clicked on ButtonToggle!'); } } export { B...
janbiasi/vape
example/app/components/ButtonToggle.js
JavaScript
apache-2.0
335
/*global defineSuite*/ defineSuite([ 'Scene/ShadowMap', 'Core/BoundingSphere', 'Core/BoxGeometry', 'Core/Cartesian3', 'Core/Color', 'Core/ColorGeometryInstanceAttribute', 'Core/ComponentDatatype', 'Core/defined', 'Core/EllipsoidTerrainProvider', ...
ceos-seo/Data_Cube_v2
ui/django_site_v2/data_cube_ui/static/assets/js/Cesium-1.23/Specs/Scene/ShadowMapSpec.js
JavaScript
apache-2.0
37,501
// js/servidorCore.js google.load('visualization', '1', { packages: ['corechart'] }); angular.module('metaCore',['servidorController','servidorService','servidorDirective']);
fabiolenine/Meta
dashboard/js/servidorCore.js
JavaScript
apache-2.0
178
/** * This is from someones JSbin pen. Can't remember who nor the link. Sorry */ module.exports = function (ctx, text, points) { if (points.length !== 8) return; const Ribbon = { maxChar: 140, startX: points[0], startY: points[1], control1X: points[2], control1Y: points[3], cont...
LonelessCodes/Bratwurst-Bot
modules/curve.js
JavaScript
apache-2.0
4,290
/* @flow */ import { createSelector } from 'reselect'; import { getAllMessages, getSubscriptions, getActiveNarrow, getActiveNarrowString, getMute, getUsers, getStreams, getOutbox, } from '../directSelectors'; import { getCaughtUpForActiveNarrow } from '../caughtup/caughtUpSelectors'; import { getIsFetc...
kunall17/zulip-mobile
src/chat/chatSelectors.js
JavaScript
apache-2.0
4,245
var cloudant = require('./default-db-connection.js'); module.exports = cloudant.db.use('master_table');
mss-parveensachdeva/interscreens
api/models/default_master_table.js
JavaScript
apache-2.0
103
function Controller() { function closeModal(e) { $.modal.fireEvent("removeClose", e); } function restorePurchaseHandle() { Storekit.addEventListener("restoredCompletedTransactions", handleRestoredCompletedTransactions); restorePurchases(); } function showLoading() { T...
ponnam/ESAT123
Resources/alloy/controllers/settings.js
JavaScript
apache-2.0
9,480
describe('Regex Filter', function() { var regexFilter; var input = [{'id': 1, 'name': 'foo'}, {'id': 2, 'name': 'bar'}, {'id': 3, 'name': 'koo'}]; beforeEach(function() { module('app'); module('app.filters'); }); beforeEach(inject(function(_regexFilter_) { regexFil...
openstack/openstack-health
test/unit/filters/regex_spec.js
JavaScript
apache-2.0
1,302
/* * 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 ...
SarahMehddi/HelloWorld
dashboard/public/js/init.js
JavaScript
apache-2.0
1,084
import { Dimensions } from 'react-native'; const { width, height } = Dimensions.get('window'); const guidelineBaseWidth = 350; const guidelineBaseHeight = 680; const scale = size => Math.round(width / guidelineBaseWidth * size); const verticalScale = size => Math.round(height / guidelineBaseHeight * size); const mod...
JSSolutions/Perfi
app/styles/scalingUtils.js
JavaScript
apache-2.0
459
import angular from 'angular'; import Navbar from './navbar/navbar'; import Hero from './hero/hero'; import User from './user/user'; let commonModule = angular.module('app.common', [ Navbar, Hero ]) .name; export default commonModule;
baraamashaal/ertaqy
client/app/common/common.js
JavaScript
apache-2.0
243
/*global QUnit */ sap.ui.define([ "sap/ui/qunit/utils/createAndAppendDiv", "sap/m/CustomTreeItem", "sap/m/Tree", "sap/m/Image", "sap/m/Text", "sap/ui/model/json/JSONModel", "sap/ui/core/Core" ], function(createAndAppendDiv, CustomTreeItem, Tree, Image, Text, JSONModel, oCore) { "use strict"; createAndAppendDi...
SAP/openui5
src/sap.m/test/sap/m/qunit/CustomTreeItem.qunit.js
JavaScript
apache-2.0
2,608
/* Copyright © 2016 University of Murcia * * 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 agree...
TellOP/SERVER
js/app.js
JavaScript
apache-2.0
1,244
/** * @license * Copyright 2014 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 requir...
ropik/lovefield
tests/proc/limit_skip_by_index_pass_test.js
JavaScript
apache-2.0
5,402
// node modules var nmDakota = require('../../index'); var nmLogger = require('../../lib/logger'); module.exports = { // columns columns: { // timestamps ctime: 'timestamp', utime: 'timestamp', // data id: 'uuid', bio: 'text', email: 'text', loc: 'text', name: 'text...
ahlwong/dakota-cassandra
tests/models/user.schema.js
JavaScript
apache-2.0
2,904
var indexerLanguage="en"; //Auto generated index for searching. w["-"]="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24"; w["-1"]="20"; w["-d"]="2,10,18"; w["-h"]="2"; w["-l"]="2,4"; w["-n"]="10"; w["-nr"]="16"; w["-o"]="2,18"; w["-p"]="2,18"; w["-pn"]="8"; w["-s"]="2,10"; w["-t"]="2,12,17"; w["-tulpen...
midonet/midonet-docs
www/docs/en/troubleshooting-guide/5.2/content/search/index-1.js
JavaScript
apache-2.0
5,556
import { labelToPlural, calculateDropdownButtonConfigs, humanizeNumber } from './utils'; describe('utils for data visualization explorer', () => { it('calculate dropdown button configurations correctly', () => { const buttonConfigs = [ { enabled: true, title: 'Download Clinical', dr...
uc-cdis/data-portal
src/GuppyDataExplorer/utils.test.js
JavaScript
apache-2.0
2,348
// @flow import { toState } from '../base/redux'; /** * Returns true if the filmstrip on mobile is visible, false otherwise. * * NOTE: Filmstrip on mobile behaves differently to web, and is only visible * when there are at least 2 participants. * * @param {Object | Function} stateful - The Object or Function th...
bgrozev/jitsi-meet
react/features/filmstrip/functions.native.js
JavaScript
apache-2.0
636
/** * @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/math/base/special/wrap/lib/main.js
JavaScript
apache-2.0
2,015
'use strict'; var builder = require('ltx') , Base = require('xmpp-ftw').Base var SuperFeedr = function() { this.itemParser = null } SuperFeedr.prototype = new Base() SuperFeedr.prototype.NS_PUBSUB = 'http://jabber.org/protocol/pubsub' SuperFeedr.prototype.NS_EVENT = 'http://jabber.org/protoc...
xmpp-ftw/xmpp-ftw-superfeedr
lib/superfeedr.js
JavaScript
apache-2.0
6,173
"use strict"; var Sqlite = function(config) { var sqlite3 = require('sqlite3').verbose(); this.connection = new sqlite3.Database('local/' + config.database + '.db'); }; // pull methods Sqlite.prototype.findPull = function(pull_number, pull_repo, callback) { this.connection.all('SELECT pulls.*, jobs.status, jobs.id...
steves/mergeatron
db/sqlite.js
JavaScript
apache-2.0
2,998
/* global describe, beforeEach, afterEach, it, instanceInfo, before */ //////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2018 ArangoDB GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this f...
fceller/arangodb
tests/js/server/resilience/repair/repair-distribute-shards-like-spec.js
JavaScript
apache-2.0
29,940
import React from 'react' import ReactDOM from 'react-dom' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import App from './App' import './index.css' import { Provider } from 'react-redux' import { createStore, combineReducers } from 'redux' import theme from './theme' import chartData from './re...
webmaster444/webmaster444.github.io
react/data_generator/src/index.js
JavaScript
apache-2.0
776
module.exports = [ { isApi: true, priority: 1000.0002, key: "TabGroup", style: { backgroundColor: "#221E1D" } }, { isApi: true, priority: 1000.0003, key: "Window", style: { backgroundColor: "#221E1D" } }, { isApi: true, priority: 1000.0004, key: "Tab",...
Geeosp/SnapContacts
bin/assets/Resources/alloy/styles/detalhesContato.js
JavaScript
apache-2.0
2,063
$(document).ready(function(){ var getGroupInterface = groupDirInterface(); getGroupInterface.getGroupList(); $('#addGroup').click(function(){ $('#diBox').dialog({ autoOpen : false, resizable : false, title : '그룹 생성', open : function(){ $(this).fin...
wooseok01/Test
FileDetectingProject/FileDetectingExpress/public/js/groupScript.js
JavaScript
apache-2.0
1,130
Ext.define('GECSW.store.GoogleEarthOptions', { extend: 'Ext.data.Store', fields: ['name', 'value', 'label'], data: [{ name: 'setStatusBarVisibility', value: false, label: 'Status Bar', type: 'boolean' }, { name: 'setGridVisibility', value: false, l...
geogrid/aistcsw-client-1.0-2
app/store/GoogleEarthOptions.js
JavaScript
apache-2.0
748
"use strict"; module.exports = function(scalingEngineSettings) { var request = require("request"); var logger = require("../log/logger"); var HttpStatus = require("http-status-codes"); var fs = require("fs"); var scalingEngineUtilObj = {}; var getOptions = function(appId, startTime, endTime, order) { va...
pradyutsarma/app-autoscaler
api/lib/utils/scalingEngineUtils.js
JavaScript
apache-2.0
2,382
import { observable } from 'mobx'; export default class ProfileModel { @observable nick = ''; @observable name = ''; @observable email = ''; constructor(store, props) { Object.assign(this, props); } }
ilkkao/mas
client/app/models/Profile.js
JavaScript
apache-2.0
217
/** * @license 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 law or a...
mixed/lighthouse
lighthouse-core/audits/byte-efficiency/total-byte-weight.js
JavaScript
apache-2.0
4,999
import 'assets/styles/base.scss'; import React from 'react'; import Helmet from 'react-helmet'; import settings from 'settings'; const TITLE_TEMPLATE = `%s | ${settings.title}`; export default ({ children }) => ( <div className={'wrapper'}> <Helmet titleTemplate={TITLE_TEMPLATE} /> <main aria-label='Content...
iris-dni/iris-frontend
src/views/Widget.js
JavaScript
apache-2.0
364
/** * Copyright 2017 The AMP HTML Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
chaveznvg/amphtml
extensions/amp-story/1.0/amp-story-page.js
JavaScript
apache-2.0
23,853
define(["dijit/_WidgetBase", "dojo/parser", "dojo/ready", "dojo/_base/declare", "dojo/dom-construct", "dijit/_TemplatedMixin", "dojo/text!./tpl2.html"], function(_WidgetBase, parser, ready, declare, domConstruct, _TemplatedMixin, template) { declare("DemoWidget", [_WidgetBase, _TemplatedMixin], { te...
ericwgreene/intuit-bootcamp
app/www/js/myapp/myform.js
JavaScript
apache-2.0
1,259
import { errors } from 'arsenal'; import assert from 'assert'; import bucketDelete from '../../../lib/api/bucketDelete'; import bucketPut from '../../../lib/api/bucketPut'; import constants from '../../../constants'; import metadata from '../metadataswitch'; import objectPut from '../../../lib/api/objectPut'; import {...
lucisilv/Silviu_S3-Antidote
tests/unit/api/bucketDelete.js
JavaScript
apache-2.0
3,311
/** * @license 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 law or a...
tkadlec/lighthouse
lighthouse-core/test/lib/dependency-graph/simulator/tcp-connection-test.js
JavaScript
apache-2.0
11,557
// Copyright 2013 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...
quisquous/quantidian
client/logs.js
JavaScript
apache-2.0
2,894