code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
'use strict';
describe('Service: solvice', function () {
// load the service's module
beforeEach(module('vcPlannerApp'));
// instantiate service
var solvice;
beforeEach(inject(function (_solvice_) {
solvice = _solvice_;
}));
it('should do something', function () {
expect(!!solvice).toBe(true);... | truemath/vc-planner | test/spec/services/solvice.js | JavaScript | apache-2.0 | 332 |
import {action} from "mobx";
import MainStore from "../common/MainStore";
import ToastStore from "../toast/ToastStore";
import commonActions from "../common/commonActions";
import "whatwg-fetch";
// TODO: ES2015
module.exports = {
saveDownloadList: action(saveDownloadList),
hideDownloadCard: action(hideDown... | kabir-plod/spoiler-blocker | src/panel/download_card/downloadActions.js | JavaScript | apache-2.0 | 1,173 |
/*!
* STAN Loader 1.1.0
* Copyright 2015 Andrew Womersley
*/
!function(a,b){function c(c,d,e,j){g=c,h=d,i=e,b.addEventListener?b.addEventListener("DOMContentLoaded",f):a.attachEvent("onload",f),"undefined"!=typeof j&&f()}function d(){j++,g[j]?f():"function"==typeof h&&h()}function e(){"function"==typeof i&&i()}funct... | awomersley/stan-loader | stan-loader.min.js | JavaScript | apache-2.0 | 638 |
import React, { Component } from "react";
import { ReactiveBase, MultiList, ReactiveElement } from "../../app.js";
import { combineStreamData } from "../../middleware/helper.js";
import ResponsiveStory from "./ResponsiveStory";
import { GetTopTopics } from "./helper";
import { Img } from "../Img.js";
require("../list.... | appbaseio/reactivebase | app/stories/ReactiveElement/WithTheme.js | JavaScript | apache-2.0 | 2,846 |
/*global defineSuite*/
defineSuite([
'Widgets/Geocoder/GeocoderViewModel',
'Core/Cartesian3',
'Specs/createScene',
'Specs/pollToPromise',
'ThirdParty/when'
], function(
GeocoderViewModel,
Cartesian3,
createScene,
pollToPromise,
... | atrawog/360-flight-explorer | Specs/Widgets/Geocoder/GeocoderViewModelSpec.js | JavaScript | apache-2.0 | 6,981 |
'use strict';
const React = require('react');
const rB = require('react-bootstrap');
const AppActions = require('../actions/AppActions');
const ListNotif = require('./ListNotif');
const AppStatus = require('./AppStatus');
const Counter = require('./Counter');
const Follow = require('./Follow');
const DisplayError = re... | cafjs/caf_helloworld | public/js/components/MyApp.js | JavaScript | apache-2.0 | 4,081 |
'use strict';
/**
* @ngdoc overview
* @name tryingAngularJsApp
* @description
* # tryingAngularJsApp
*
* Main module of the application.
*/
angular
.module('tryingAngularJsApp', [
'ngAnimate',
'ngAria',
'ngCookies',
'ngMessages',
'ngResource',
'ngRoute',
'ngSanitize',
'ngTouch'... | JArandaIzquierdo/TryingAngularJS | YO/app/scripts/app.js | JavaScript | apache-2.0 | 708 |
function Controller() {
require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
$model = arguments[0] ? arguments[0].$model : null;
var $ = this, exports = {};
Alloy.Models.instance("user");
_.extend($, $.__views);
var user = Alloy.Models.user;
user.se... | antoniokaplan/Alloy-Widgets | Resources/alloy/controllers/index.js | JavaScript | apache-2.0 | 601 |
ace.define("ace/snippets/d",["require","exports","module"],function(r,e,m){"use strict";e.snippetText=undefined;e.scope="d";});
| thbonk/electron-openui5-boilerplate | libs/openui5-runtime/resources/sap/ui/codeeditor/js/ace/snippets/d.js | JavaScript | apache-2.0 | 128 |
/**
* @license Copyright 2019 The Lighthouse 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 required by applica... | GoogleChrome/lighthouse | lighthouse-core/scripts/lantern/collect/golden.js | JavaScript | apache-2.0 | 4,553 |
$(function(){
// 设置jQuery Ajax全局的参数
$.ajaxSetup({
type: "POST",
error: function(jqXHR, textStatus, errorThrown){
switch (jqXHR.status){
case(500):
alert("服务器系统内部错误");
break;
case(401):
alert("未登录");
... | jiangyuanlin/hello | src/main/webapp/static/custom/common.js | JavaScript | apache-2.0 | 5,440 |
import merge from 'deepmerge';
import { grey4, lightBlack, blue1 } from '../../../../../styles/modules/variables';
import commonCss, { avatar } from '../../../common.styles';
export default merge(
commonCss,
{
row: {
paddingBottom: 20,
maxHeight: 177,
borderTop: `1px solid ${grey4}`,
},
... | veritone/veritone-sdk | packages/veritone-widgets/src/widgets/EngineSelection/EngineListView/EngineListContainer/EngineSelectionRow/styles.js | JavaScript | apache-2.0 | 1,293 |
/******************************************************************************
Redis dispatch client
*******************************************************************************/
'use strict';
var _ = require('underscore'),
Base = require('./base'),
logger = require('../../logger'),
redis = require(... | wgrmath/forum | server/backends/dispatch/redis.js | JavaScript | apache-2.0 | 1,353 |
"use strict";
import HTTP from "./http";
import endpoint from "./endpoint";
import * as requests from "./requests";
import * as optionUtils from "./options";
import Tenant from "./tenant";
import Admin from "./admin/admin";
import LocationService from "./location";
/**
* HTTP client for the Business Elements API.
... | Product-Foundry/business-elements-client-js | src/base.js | JavaScript | apache-2.0 | 8,012 |
/**
* @require common:widget/jquery/jqueryEx.js
* @require common:widget/utils/underscore.js
* @require common:widget/dhtmlxSuite/dhtmlxEx.js
*/
$(window).resize(function() {
GPW.layout.mainLayout.setSizes();
});
var GPC = {
url:{
refreshGridUrl:GLOBAL.S.URL+GLOBAL.P.MODULES+"/a/resLoadRole?_value="+GLOBAL.... | LittleLazyCat/TXEYXXK | 2017workspace/go-public/go-show/src/main/webapp/WEB-INF/core/scripts/resourceRole.js | JavaScript | apache-2.0 | 5,019 |
/*
Copyright 2017 Vector Creations Ltd.
Copyright 2017, 2018 New Vector Ltd.
Copyright 2019 The Matrix.org Foundation C.I.C.
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.or... | matrix-org/matrix-react-sdk | src/components/structures/GroupView.js | JavaScript | apache-2.0 | 56,656 |
'use strict'
var crypto = require('crypto');
var Authenticator = require('./authenticator.js');
/**
* A class implementing http digest authentication.
*
* @constructs Digest
* @param {ReplayDetector} detector - A replay detector registering hashes.
* @param {Function} identify - A function performing the passwo... | tdecaluwe/http-authentication | digest.js | JavaScript | apache-2.0 | 2,263 |
var Utils = {
_parseUrl: function (url) {
var query_string = {};
var url = url.substring(url.lastIndexOf("?") + 1).split("&")[0];
var vars = url.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
// If first entry with this name... | lopesdasilva/trakt-it | src/services/Utils.js | JavaScript | apache-2.0 | 1,090 |
var chai = require('chai');
var expect = chai.expect;
var sinonChai = require('sinon-chai');
var _ = require("underscore");
var syncClient = require("../../src/feedhenry").sync;
chai.use(sinonChai);
//work around phantomjs's issue: https://github.com/ariya/phantomjs/issues/10647
var fakeNavigator = {};
for (var i i... | feedhenry/fh-js-sdk | test/tests/test_sync.js | JavaScript | apache-2.0 | 2,821 |
LineAnnotate = Rickshaw.Class.create({
initialize: function(args) {
var graph = this.graph = args.graph;
var element = this.element = document.createElement('div');
element.className = 'line_annotation_parent';
this.visible = true;
graph.element.appendChild(element);
this.lastEvent = null;
... | arkadius/micro-burn | src/main/webapp/js/LineAnnotate.js | JavaScript | apache-2.0 | 4,653 |
/*
Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.3.4
Version: 1.7.0
Author: Sean Ngu
Website: http://www.seantheme.com/color-admin-v1.7/admin/
*/var handleDataTableTools=function(){"use strict";if($("#data-table").length!==0){$("#data-table").DataTable({dom:'T<"... | CreditEaseDBA/Themis | task_export/assets/js/table-manage-tabletools.demo.min.js | JavaScript | apache-2.0 | 514 |
/**
* Created by Administrator on 14/12/2016.
*/
$(document).ready(function () {
function showDateNgaySinh(target) {
//datetimepicker nam sinh.
var date_input = $('input[name="' + target + '"]');
var container = $('.bootstrap-iso form').length > 0 ? $('.bootstrap-iso form').parent() : "bo... | ducnt93/cvweb | public/cv/js/user-datepicker.js | JavaScript | apache-2.0 | 2,507 |
module.exports = [
require('./abs'),
require('./add'),
require('./ceil'),
require('./cube'),
require('./divide'),
require('./dotDivide'),
require('./dotMultiply'),
require('./dotPow'),
require('./exp'),
require('./fix'),
require('./floor'),
require('./gcd'),
require('./lcm'),
require('./log'... | mikberg/mathjs | lib/function/arithmetic/index.js | JavaScript | apache-2.0 | 643 |
module.exports = {
entry: __dirname + "/src/videocontext.js",
devtool: "source-map",
output: {
path: __dirname+'/dist',
filename: "videocontext.commonjs2.js",
libraryTarget: "commonjs2",
library: "VideoContext"
},
module: {
loaders: [
{ test: /\.c... | bdrobinsonbbc/VideoContext | webpack.commonjs2.config.js | JavaScript | apache-2.0 | 465 |
var interfacebsort_1_1quick__sort__gen =
[
[ "quick_sort_vec_gen_dble", "interfacebsort_1_1quick__sort__gen_a026a7eee27468ff06ba0a0505fe6a5ce.html#a026a7eee27468ff06ba0a0505fe6a5ce", null ],
[ "quick_sort_vec_gen_int", "interfacebsort_1_1quick__sort__gen_a69e4550f2d7428dbbbb3b2017c9d3384.html#a69e4550f2d7428dbb... | arinrb/bsort | doc/html/interfacebsort_1_1quick__sort__gen.js | JavaScript | apache-2.0 | 966 |
var jsface = require('jsface');
var packageVersion = require('../../package.json').version;
/**
* @name Globals
* @namespace
* @classdesc Globals to be used throught Newman.
*/
var Globals = jsface.Class({
$singleton: true,
newmanVersion: packageVersion,
/**
* Used to add the Globals used throug... | RTHMaK/RPGOne | src/utilities/Globals.js | JavaScript | apache-2.0 | 1,626 |
'use strict';
/**
* Module dependencies.
*/
const path = require('path');
const extend = require('util')._extend;
const development = require('./env/development');
const test = require('./env/test');
const production = require('./env/production');
const notifier = {
service: 'postmark',
APN: false,
em... | muhammad-saleh/weightlyio | server/config/config.js | JavaScript | apache-2.0 | 749 |
/*
All functions related to creating a Slider item.
*/
var slideCount = 1;
// SETTER
function addSlide() {
slideCount++;
}
// GETTER
function getSlide() {
return(slideCount);
}
// Adds the Slider as well as the 'Edit' and 'delete' buttons.
function slider() {
var node = document.createEl... | kevcorky/Task-Builder | javascript/widgets/Slider.js | JavaScript | apache-2.0 | 3,104 |
module.exports = [{"isId":true,"priority":100000.0002,"key":"Container","style":{}},{"isId":true,"priority":100000.0003,"key":"windowActivity","style":{backgroundColor:"#166181",}},{"isId":true,"priority":100000.0004,"key":"activityIndicator","style":{style:Ti.UI.ActivityIndicatorStyle.DARK,indicatorColor:"White",color... | tasa95/Sudoku | Resources/iphone/alloy/styles/CreationSudoku.js | JavaScript | apache-2.0 | 547 |
/*************************************************************
*
* MathJax/fonts/HTML-CSS/TeX/png/Main/Regular/SuppMathOperators.js
*
* Defines the image size data needed for the HTML-CSS OutputJax
* to display mathematics using fallback images when the fonts
* are not available to the client browser.
*
* ... | GerHobbelt/MathJax | fonts/HTML-CSS/TeX/png/Main/Regular/unpacked/SuppMathOperators.js | JavaScript | apache-2.0 | 2,217 |
/**
* @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/gamma/cdf/examples/index.js | JavaScript | apache-2.0 | 1,016 |
//src: test/specs/fixtures/whitespace.tag
riot.tag2('my-tag', '<div style=" top:0; left:0" a=" " expr="{{ foo:\'bar\', bar:⁗\'⁗ }}"> Foo\' </div> <p></p>', 'p { display: none; }', 'style=" top:0; left:0" a=" " expr="{{ foo:⁗bar⁗ }}"', function(opts) {
this.click = function(e)
{}.bind(thi... | eric1foard/riot-pvfm | node_modules/riot-compiler/test/specs/expect/whitespace.js | JavaScript | apache-2.0 | 335 |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import './styles/ColumnView.scss';
import prefixClass from './utils/prefixClass';
import icBEM from './utils/icBEM';
export const COMPONENT_NAME = prefixClass('column-view');
const ROOT_BEM = icBEM(COMPONENT_NAME);
exp... | iCHEF/gypcrete | packages/core/src/ColumnView.js | JavaScript | apache-2.0 | 2,190 |
//= require jquery
//= require jquery_ujs
//= require foundation
//= require turbolinks
//= require_tree .
| converge-proximity-network/converge-backend | app/assets/javascripts/application.js | JavaScript | apache-2.0 | 107 |
import Check from "../../Core/Check.js";
import Cesium3DTilesInspector from "../Cesium3DTilesInspector/Cesium3DTilesInspector.js";
/**
* A mixin which adds the {@link Cesium3DTilesInspector} widget to the {@link Viewer} widget.
* Rather than being called directly, this function is normally passed as
* a parameter t... | YonatanKra/cesium | Source/Widgets/Viewer/viewerCesium3DTilesInspectorMixin.js | JavaScript | apache-2.0 | 1,237 |
// @ts-nocheck
'use strict';
const _ = require('lodash');
const isStandardSyntaxAtRule = require('../../utils/isStandardSyntaxAtRule');
const report = require('../../utils/report');
const ruleMessages = require('../../utils/ruleMessages');
const validateOptions = require('../../utils/validateOptions');
const vendor =... | kyleterry/sufr | pkg/ui/node_modules/stylelint/lib/rules/at-rule-whitelist/index.js | JavaScript | apache-2.0 | 1,508 |
//// [lastPropertyInLiteralWins.ts]
interface Thing {
thunk: (str: string) => void;
}
function test(thing: Thing) {
thing.thunk("str");
}
test({ // Should error, as last one wins, and is wrong type
thunk: (str: string) => {},
thunk: (num: number) => {}
});
test({ // Should be OK. Last 'thunk' is of co... | freedot/tstolua | tests/baselines/reference/lastPropertyInLiteralWins.js | JavaScript | apache-2.0 | 629 |
import React from 'react';
import { PropTypes } from 'prop-types';
import timezones from '../../data/timezones';
import map from 'lodash/map';
import classnames from 'classnames';
import validateInput from '../../validations/signup';
import TextFieldGroup from '../Form/TextFieldGroup';
import signUp from '../../utils/s... | atflowers/pantryraid | client/src/components/SignupForm/SignupForm.1.js | JavaScript | apache-2.0 | 4,575 |
// Test query stage merge sorting.
t = db.stages_mergesort;
t.drop();
var collname = "stages_mergesort";
var N = 10;
for (var i = 0; i < N; ++i) {
t.insert({foo: 1, bar: N - i - 1});
t.insert({baz: 1, bar: i});
}
t.ensureIndex({foo: 1, bar: 1});
t.ensureIndex({baz: 1, bar: 1});
// foo == 1
// We would (inter... | christkv/mongo-shell | test/jstests/core/stages_mergesort.js | JavaScript | apache-2.0 | 1,265 |
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this f... | todinov/milagro-crypto-js | test/test_DVS.js | JavaScript | apache-2.0 | 5,722 |
import React from 'react';
import { connect } from 'react-redux';
import settings from 'settings';
import Rezponsive from 'rezponsive';
import ShareButtons from 'components/ShareButtons';
import openShareWindow from 'helpers/sharing/openShareWindow';
import filterShareButtonsForTouch from 'helpers/sharing/filterShareBu... | iris-dni/iris-frontend | src/containers/SharePetition.js | JavaScript | apache-2.0 | 1,104 |
'use strict';
var _ = require('underscore');
var inspect = require(global.OSYNC_UTILS + 'inspect');
var logUtil = require(global.OSYNC_UTILS + 'log');
var JdsClient = require(global.OSYNC_SUBSYSTEMS + 'jds/jds-client');
function JobStatusUpdater(setLog, setConfig, jdsClient) {
if (!(this instanceof JobStatusUpda... | KRMAssociatesInc/eHMP | ehmp/product/production/osync/jobframework/JobStatusUpdater.js | JavaScript | apache-2.0 | 3,477 |
var https = require('https');
//var request = require('request');
var Q = require('q');
var restify = require('restify');
var moment = require('moment');
var request = require('request');
var client;
var connectionConf;
exports.configure = function(conf) {
connectionConf = conf;
client = restify.createJsonClient({... | flightwatching/wilco-api | nodejs/apiv3.js | JavaScript | apache-2.0 | 1,631 |
/*
Copyright 2012 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
di... | defus/gContacts | js/app.js | JavaScript | apache-2.0 | 5,069 |
module.exports = function(req, res, log, next) {
res.json({keyWithParamPOST: 'value'});
}; | contactlab/saray | test/data/call4?param1=value1.POST.js | JavaScript | apache-2.0 | 92 |
/**
* @widgetClass Structure class
* @package wof.bizWidget
* @copyright author
* @Time: 13-9-21 下午08:46
*/
wof.bizWidget.ObjectInspector = function (root) {
this.getDomInstance().mousedown(function (event) {
event.stopPropagation();
});
};
wof.bizWidget.ObjectInspector.prototype =... | xlyyc/wof | src/wof/bizWidget/ObjectInspector.js | JavaScript | apache-2.0 | 3,841 |
// ERRORS_KEY = 'signinErrors'
Template.signin.onCreated(function() {
// Session.set(ERRORS_KEY, {})
});
Template.signin.helpers({
userName: function() {
// if (!$('input[name="name"]').val()) {
// return ;
// } else {
return "guest";
// }
},
avator: fun... | YY030913/start | client/templates/register/signin.js | JavaScript | apache-2.0 | 4,473 |
const passport = require('passport');
const request = require('request');
const LocalStrategy = require('passport-local').Strategy;
const User = require('../models').User;
const INVALID_CREDENTIALS_MESSAGE = 'Invalid email and/or password.';
const UNAUTHORIZED_MESSAGE = 'You are not authorized.';
passport.serializeU... | kklisura/project-neumann | server/app/config/passport.js | JavaScript | apache-2.0 | 1,301 |
import angular from 'angular';
import gameboardComponent from './gameboard.component';
import Game from '../../common/game/game';
let gameboardModule = angular.module('gameboard', [
Game
])
.component('gameboard', gameboardComponent)
.name;
export default gameboardModule;
| zbicin/word-game | client/app/components/gameboard/gameboard.js | JavaScript | apache-2.0 | 283 |
/*
* @license
* 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 require... | jacksonic/foamTableTop | bower_components/foam2-experimental/src/core/Constant.js | JavaScript | apache-2.0 | 1,859 |
import { isInteger } from "../utils/native";
const ASCENDING = (a, b) => a - b;
const DESCENDING = (a, b) => b - a;
const isInRange = (value, start, end) => value >= start && value <= end;
const isValidIndex = function (keys, start, end) {
return function (key) {
return !(key in keys)
&& isInteger(key)
... | jrsearles/SandBoxr | src/iterators/sparse-iterator.js | JavaScript | apache-2.0 | 2,091 |
/**
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | GoogleChromeLabs/scheduler-polyfill | src/host-callback.js | JavaScript | apache-2.0 | 6,775 |
const path = require('path')
const config = require('config')
const git = require('git-rev-sync')
const CDN = config.get('cdn')
const appVersion = git.short()
const CDN_URI = appVersion
const CDN_URL = CDN ? `${CDN}/${CDN_URI}` : ''
const PUBLIC_PATH = CDN ? `${CDN}/${CDN_URI}/assets/` : '/assets/'
const ROOT_PATH ... | ecmadao/hacknical | config/path.js | JavaScript | apache-2.0 | 942 |
import { connect } from 'react-redux';
import ErrorMessageList from '../../components/error_messages/list';
import {
fetchErrorMessagesIfNeeded,
searchErrorMessages,
loadNext
} from '../../actions/error_messages'
export default connect(
(state,ownProps) => {
let errorMessages;
let match = ownProps.m... | sapcc/elektra | plugins/shared_filesystem_storage/app/javascript/app/containers/error_messages/list.js | JavaScript | apache-2.0 | 916 |
'use strict';
var common = require('../common');
var assert = require('assert');
var net = require('net');
var expected_bad_connections = 1;
var actual_bad_connections = 0;
var host = '********';
host += host;
host += host;
host += host;
host += host;
host += host;
function do_not_call() {
throw new Error('This f... | dreamllq/node | test/parallel/test-net-dns-error.js | JavaScript | apache-2.0 | 806 |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | GoogleForCreators/web-stories-wp | packages/patterns/src/test/createSolid.js | JavaScript | apache-2.0 | 1,195 |
/*
* Copyright 2014 Space Dynamics Laboratory - Utah State University Research Foundation.
*
* 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... | Jedwondle/openstorefront | client/openstorefront/app/scripts/directives/services/filterquery.js | JavaScript | apache-2.0 | 9,465 |
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]... | storjarn/node-toolbox | tools/http/tinyserver/public/assets/bundles/rpg.js | JavaScript | apache-2.0 | 37,993 |
/*
* Copyright 2014 Red Hat, Inc.
*
* Red Hat 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.org/licenses/LICENSE-2.0
*
* Unless required by app... | remi128/vertx-apex_old | src/main/resources/vertx-apex-js/favicon_handler.js | JavaScript | apache-2.0 | 2,843 |
/* ========================================================================
* ColorPicker.js [1.5.0+]
* ========================================================================
* Copyright (c) 2016 cnezsoft.com; Licensed MIT
* ======================================================================== */
(function($) ... | fengjianheizhao/TP51 | public/static/h-ui/lib/ColorPicker/1.5.0/ColorPicker.js | JavaScript | apache-2.0 | 6,801 |
import Vue from 'vue'
/**
* 递归初始化菜单列表,将menu下的子菜单添加tempList中
* */
function initMenu (menu, level, tempList) {
let childList = menu.childList
if (!childList) {
return
}
for (let i = 0; i < childList.length; i++) {
let childMenu = childList[i]
childMenu.level = level
Vue.set(childMenu, 'isShowIn... | lcw2004/one | one-ui/src/common/mixins/TreeTableMiXin.js | JavaScript | apache-2.0 | 3,287 |
/* @flow */
export const ALIGN_ITEMS = {
start: 'start',
end: 'end',
center: 'center',
stretch: 'stretch'
};
export const GUTTER_WIDTH = {
xxs: 'xxs',
xs: 'xs',
sm: 'sm',
md: 'md',
lg: 'lg',
xl: 'xl',
xxl: 'xxl'
};
| mineral-ui/mineral-ui | src/library/Grid/constants.js | JavaScript | apache-2.0 | 238 |
define(["dojo/_base/declare", "dojo/Deferred", "dojo/promise/all",
"dojo/_base/lang", "dojo/_base/array", "esri/arcgis/utils", "esri/lang",
"esri/tasks/PrintTemplate", "esri/request"
], function(
declare, Deferred, all, lang, array, arcgisUtils, esriLang, PrintTemplate,
esriRequest) {
return declare(null, {
... | Esri/Viewer | js/PrintConfig.js | JavaScript | apache-2.0 | 5,499 |
Titanium.include( "../models/notice.js" );
Titanium.include( "../models/product.js" );
Titanium.include( "../helpers/bottom_menu.js" );
var win = Titanium.UI.currentWindow;
var tableView, listeners = [];
function main() {
// HACK: get active tab index.
win.tabGroup.addEventListener( "focus", function( e ) {
... | nebiros/barrel | Resources/app/windows/notices.js | JavaScript | apache-2.0 | 8,802 |
import { Class, Enum } from 'meteor/jagi:astronomy'
import 'jagi:astronomy-timestamp-behavior'
export const ApplicationStatus = Enum.create({
name: 'ApplicationStatus',
identifiers: {
DRAFT: 0,
ACTIVE: 1,
INACTIVE: 2
}
})
export const Application = Class.create({
name: 'Application',
collection:... | openmarketplace/openmarketplace | imports/api/applications/application-model.js | JavaScript | apache-2.0 | 1,262 |
(function() {
window.WallTime || (window.WallTime = {});
window.WallTime.data = {
rules: {},
zones: {"Etc/GMT+10":[{"name":"Etc/GMT+10","_offset":"-10","_rule":"-","format":"GMT+10","_until":""}]}
};
window.WallTime.autoinit = true;
}).call(this);
| badlogicmanpreet/aura | aura-resources/src/main/resources/aura/resources/walltime-js/olson/walltime-data_Etc-GMT+10.js | JavaScript | apache-2.0 | 280 |
/**
* :copyright: (c) 2014 Building Energy Inc
* :license: see LICENSE for more details.
*/
angular.module('BE.seed.controller.dataset', [])
.controller('dataset_list_controller', [
'$scope',
'datasets_payload',
'$modal',
'urls',
'dataset_service',
'$location',
function ($scope, datasets_... | buildingenergy/buildingenergy-platform | seed/static/seed/js/controllers/dataset_list_controller.js | JavaScript | apache-2.0 | 5,009 |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | GoogleForCreators/web-stories-wp | packages/story-editor/src/utils/useDoubleClick.js | JavaScript | apache-2.0 | 2,991 |
import mx from '../../multiplex';
import * as mocks from './_mocks';
import {
qmodule,
qtest
} from '../../qunit';
qmodule('linq-first');
function simpleNumericPredicate(t) {
return t > 3;
}
qtest('basic "first" test', function (assert) {
assert.equal(mx(mocks.array).first(), 1, 'first of an array o... | multiplex/multiplex.js | test/unit/linq/first.js | JavaScript | apache-2.0 | 3,479 |
sap.ui.define(["sap/ui/core/UIComponent", "sap/ui/core/mvc/XMLView"],
function(UIComponent, XMLView) {
'use strict';
var Component = UIComponent.extend("sap.tnt.sample.InfoLabelInTable.Component", {
metadata : {
publicMethods : [
"getTable"
],
dependencies : {
libs : [
"sap.tnt",
"sap.m... | cschuff/openui5 | src/sap.tnt/test/sap/tnt/demokit/sample/InfoLabelInTable/Component.js | JavaScript | apache-2.0 | 768 |
'use strict';
const Q = require("q");
const util = require("util");
const https = require("https");
const http = require("http");
const fs = require("fs");
const xml2js = require("xml2js");
const paths = {
"inchikey" : "inchikey",
"name" : "name/startswith",
"rn" : "rn"
};
function ChemIDDB () {
... | timdockins/webchemjs | lib/chemid.js | JavaScript | apache-2.0 | 2,485 |
/*!
* express
* Copyright(c) 2009-2013 TJ Holowaychuk
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/
'use strict';
/**
* Module dependencies.
* @private
*/
var contentDisposition = require('content-disposition');
var deprecate = require('depd')('express');
var encodeUrl = require('enco... | wangweiyan0901/practiceCode | express_wwy/node_modules/express/lib/response.js | JavaScript | apache-2.0 | 21,341 |
var current_iframe;
/**
* 切换子系统界面
* @param moduleid
* (1)传字符串表示子系统第一级菜单的menuid或moduleid
* (2)传数字表示切换第几个子系统,从0开始
*/
DM.index.module = function(moduleid){
var $a;
if(typeof moduleid=='number'){
$a = $('div.menu-root li.item').eq(moduleid).children('a');
}else{
$a = $('div.menu-root li.item').... | wlzjdm/wolf | wolf-sys-manager/src/main/webapp/frame/component/js/dm-index3.js | JavaScript | apache-2.0 | 13,417 |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2020 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['jquery.sap.global', './ListItemBaseRenderer', 'sap/ui/core/Renderer'],
function(jQuery, ListItemBaseRenderer, Render... | openui5/packaged-sap.m | resources/sap/m/MenuListItemRenderer.js | JavaScript | apache-2.0 | 3,122 |
'use strict';
module.exports = {
db: "mongodb://localhost/openqna-test",
port: 3001,
facebook: {
clientID: "APP_ID",
clientSecret: "APP_SECRET",
callbackURL: "http://localhost:3000/auth/facebook/callback"
},
twitter: {
clientID: "CONSUMER_KEY",
clientSecret: ... | noamshemesh/openqna | config/env/test.js | JavaScript | apache-2.0 | 715 |
import deepFreeze from 'deep-freeze';
import {
getUnreadByStream,
getUnreadStreamTotal,
getUnreadByPms,
getUnreadPmsTotal,
getUnreadByHuddles,
getUnreadHuddlesTotal,
getUnreadMentionsTotal,
getUnreadTotal,
getUnreadStreamsAndTopics,
getUnreadStreamsAndTopicsSansMuted,
} from '../unreadSelectors';
... | vishwesh3/zulip-mobile | src/unread/__tests__/unreadSelectors-test.js | JavaScript | apache-2.0 | 15,573 |
/**
* @license
* Visual Blocks Editor
*
* Copyright 2012 Google Inc.
* https://blockly.googlecode.com/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | ehiller/mobilecsp-v18 | assets/lib/quizly/appinv-revised/warning.js | JavaScript | apache-2.0 | 5,539 |
'use strict';
import { TitusResizeServerGroupModal } from './resize/TitusResizeServerGroupModal';
import * as angular from 'angular';
import _ from 'lodash';
import {
AccountService,
ClusterTargetBuilder,
CONFIRMATION_MODAL_SERVICE,
ServerGroupReader,
ServerGroupWarningMessageService,
SERVER_GROUP_WRITER... | sgarlick987/deck | app/scripts/modules/titus/src/serverGroup/details/serverGroupDetails.titus.controller.js | JavaScript | apache-2.0 | 15,954 |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.11/esri/copyright.txt for details.
//>>built
define("esri/nls/widgets_pl",{"dijit/_editor/nls/commands":{removeFormat:"Usu\u0144 formatowanie",copy:"Kopiuj",paste:"Wklej",selectAll:"Wybierz wszystko",insertOrd... | aconyteds/Esri-Ozone-Map-Widget | vendor/js/esri/arcgis_js_api/library/3.11/3.11/esri/nls/widgets_pl.js | JavaScript | apache-2.0 | 8,156 |
/**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { useState, useCallback, useEffect } from 'react';
import classnames from 'classnames';
import { settings } from 'carbon-compon... | carbon-design-system/carbon-components | packages/react/src/components/FileUploader/stories/drop-container.js | JavaScript | apache-2.0 | 5,193 |
// @flow
import React, { Component } from "react";
import PropTypes from "prop-types";
import { bindActionCreators } from "redux";
import { connect } from "react-redux";
import * as actions from "./actions";
import { defaultStyles } from "../../styles/default-styles";
import { StyleSheet, View, TouchableOpacity, Text }... | johnneed/GreenUpVermont | screens/trash-tracker-screen/trash-toggles.js | JavaScript | apache-2.0 | 5,277 |
/*-------------------------------------------------------------------------+
| |
| Copyright 2005-2012 the ConQAT Project |
| |
| Licensed u... | vimaier/conqat | org.conqat.engine.html_presentation/src/org/conqat/engine/html_presentation/javascript/config/LogPage.js | JavaScript | apache-2.0 | 7,919 |
var searchData=
[
['joystick',['Joystick',['../class_tri_1_1_input_1_1_joystick.html#a2b9df8a7989454ead020526745d49fdb',1,'Tri::Input::Joystick']]]
];
| TriantEntertainment/TritonEngine | docs/html/search/functions_8.js | JavaScript | apache-2.0 | 153 |
// native Promises are supported from Node.js 6.10 on AWS lambdas
module.exports.handler = function (event, context) {
if (event.succeed) {
const delay = event.succeed.delay;
const result = event.succeed.result;
return new Promise((resolve) => setTimeout(resolve,delay))
.then(... | bbc/aws-lambda-runner | spec/test_promise.js | JavaScript | apache-2.0 | 602 |
"use strict";
function deprecated(message, helpPage) {
if (typeof console !== "undefined" && typeof console.warn === "function") {
console.warn("[DEPRECATED] " + message + build(helpPage));
}
}
function build(helpPage) {
if (!helpPage) {
return "";
}
return ". Go to " + helpPage +... | zomaish/brisket | lib/util/deprecated.js | JavaScript | apache-2.0 | 381 |
const path = require('path')
const json = require('@rollup/plugin-json')
const alias = require('@rollup/plugin-alias')
const replace = require('@rollup/plugin-replace')
const PLATFORMS = {
'mp-weixin': {
prefix: 'wx',
title: '微信小程序'
},
'mp-qq': {
prefix: 'wx',
title: 'QQ小程序'
},
... | dcloudio/uni-app | build/rollup.config.mp.js | JavaScript | apache-2.0 | 2,359 |
chromeMyAdmin.controller("CreateRoutineDialogController", ["$scope", "Events", "mySQLClientService", "typeService", "sqlExpressionService", "targetObjectService", function($scope, Events, mySQLClientService, typeService, sqlExpressionService, targetObjectService) {
"use strict";
var onShowDialog = function() {... | igrep/chrome_mysql_admin | app/scripts/window/controllers/create_routine_dialog_controller.js | JavaScript | apache-2.0 | 5,262 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
const Cc = Components.classes;
const Ci = Components.interfaces;
const Cr = Components.results;
const Cu = Compone... | bwp/SeleniumWebDriver | third_party/gecko-15/win32/bin/components/nsLivemarkService.js | JavaScript | apache-2.0 | 39,954 |
var express = require('express');
var app = express();
app.set('port', (process.env.PORT || 9000));
app.use(express.static(__dirname + '/dist'));
app.get('/app', function(req, res) {
res.sendFile('./dist/index.html', {"root": __dirname});
});
app.listen(app.get('port'), function() {
console.log("Node app is run... | morpheyesh/TeenyURL | react_app/server.js | JavaScript | apache-2.0 | 364 |
//
// Copyright 2016-2018 The Last Pickle 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 applicabl... | thelastpickle/cassandra-reaper | src/ui/app/snapshot.js | JavaScript | apache-2.0 | 1,741 |
import { chainMiddleware} from '../src';
import chai from 'chai';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
chai.should();
chai.use(sinonChai);
const store = {dispatch: sinon.spy((data)=>data)}
const defnext = sinon.spy((in_action)=> in_action);
const chainMW = chainMiddleware(store);
describ... | kneradovsky/redents | test/testChain.spec.js | JavaScript | apache-2.0 | 1,588 |
/**
* -----------------------------------------------------------------------------
*
* @review isipka
*
* -----------------------------------------------------------------------------
*/
/**
* Basic ML extensions class. Extensions purpose is rendering of observer value,
* implementation of input methods, etc.... | rbelusic/fm-js | src/gui/ml/gui.MlExtension.js | JavaScript | apache-2.0 | 6,174 |
goog.module('grrUi.core.fileDownloadUtils');
goog.module.declareLegacyNamespace();
var AFF4_PREFIXES = {
'OS': 'fs/os', // PathSpec.PathType.OS
'TSK': 'fs/tsk', // PathSpec.PathType.TSK
'REGISTRY': 'registry', // PathSpec.PathType.REGISTRY
'TMPFILE': 'temp', // PathSpec.PathType.TMPF... | google/grr | grr/server/grr_response_server/gui/static/angular-components/core/file-download-utils.js | JavaScript | apache-2.0 | 5,581 |
;;;;
// Flash callback
function idp_xx_movie_DoFSCommand(cmd, args) {
// alert(cmd);
if ("undefined" != typeof mainWindow) {
mainWindow.onFSCommand(cmd, args);
}else{
alert("no mainwindow");
}
}
// Create movie
var t = '';
t += '<embed name="idp_xx_movie" id="idp_xx_movie" src="' + url... | seven1240/trainer-studio-opensource | resources/loadflash.js | JavaScript | apache-2.0 | 534 |
(function() {
'use strict';
angular
.module('cribbleApp')
.factory('JhiMetricsService', JhiMetricsService);
JhiMetricsService.$inject = ['$rootScope', '$http'];
function JhiMetricsService ($rootScope, $http) {
var service = {
getMetrics: getMetrics,
thr... | fjuriolli/scribble | src/main/webapp/app/admin/metrics/metrics.service.js | JavaScript | apache-2.0 | 737 |
/**
*
*
* @module AppsMallUI.directivesModule
* @submodule AppsMallUI.FileUploadModule
* @requires amlApp.directives
*/
'use strict';
/**
* HTML element directive: Renders clickable image viewing area, and HTML5 file input control to handle file uploading.
*
* Usage: ```<file-upload app-object="[Object]" fie... | ozone-development/depricated-ozp-center | apps/appsmall/public/js/directives/FileUpload.js | JavaScript | apache-2.0 | 13,048 |
var classorg_1_1onosproject_1_1cli_1_1net_1_1HostRemoveCommand =
[
[ "execute", "classorg_1_1onosproject_1_1cli_1_1net_1_1HostRemoveCommand.html#a4960a063b349a69cf44f0b607ce4cabb", null ]
]; | onosfw/apis | onos/apis/classorg_1_1onosproject_1_1cli_1_1net_1_1HostRemoveCommand.js | JavaScript | apache-2.0 | 194 |
jQuery(document).ready(function ($) {
var string_locator_search_active = false;
var add_notice = function( title, message, format ) {
$(".notices").append( '<div class="notice notice-' + format + ' is-dismissible"><p><strong>' + title + '</strong><br />' + message + '</p></div>' );
};
var thro... | vaughnick/fco | wp-content/plugins/string-locator/resources/js/string-locator-search.js | JavaScript | apache-2.0 | 5,728 |
import React, {Component, PropTypes} from 'react';
import MiddleArticleList from './MiddleArticleList';
import RightDetail from '../RightDetail';
import NoMatchImg from '../NoMatchImg';
import Detail from './Detail';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {selectArticle... | yodfz/nblog | PC_client/views/manage/Article/Main.js | JavaScript | apache-2.0 | 1,605 |
import * as Preact from '#preact';
import {
Alignment,
Axis,
findOverlappingIndex,
getPercentageOffsetFromAlignment,
scrollContainerToElement,
} from './dimensions';
import {WithBentoLightboxGallery} from '../../amp-lightbox-gallery/1.0/component';
import {debounce} from '#core/types/function';
import {forwar... | smartadserver/amphtml | extensions/amp-base-carousel/1.0/scroller.js | JavaScript | apache-2.0 | 11,287 |