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 |
|---|---|---|---|---|---|
(function() {
'use strict';
angular
.module('frontendApp')
.controller('PasswordController', PasswordController);
PasswordController.$inject = ['Auth', 'Principal'];
function PasswordController (Auth, Principal) {
var vm = this;
vm.changePassword = changePassword;
... | upscaletech/gateway | src/main/webapp/app/account/password/password.controller.js | JavaScript | apache-2.0 | 1,078 |
import {SpatialAnalystService} from '../../../src/mapboxgl/services/SpatialAnalystService';
import {GeometryBufferAnalystParameters} from '../../../src/common/iServer/GeometryBufferAnalystParameters';
import {GeometryOverlayAnalystParameters} from '../../../src/common/iServer/GeometryOverlayAnalystParameters';
import {... | SuperMap/iClient9 | test/mapboxgl/services/GeometryBatchAnalysisSpec.js | JavaScript | apache-2.0 | 4,924 |
// Reference https://github.com/jshttp/mime-db/blob/master/db.json
var mimetype_to_extension = {
"application/epub+zip": ["epub"],
"application/java-archive": ["jar","war","ear"],
"application/java-vm": ["class"],
"application/javascript": ["js"],
"application/json": ["json","map"],
"application/octet-strea... | jul11co/websaver | lib/mimetypes.js | JavaScript | apache-2.0 | 5,211 |
var radios = document.querySelectorAll("input[type='radio']");
var customRadio = document.getElementById("custom");
var customText = document.getElementById("customInput");
if(customRadio.checked == true) {
customText.readOnly = false;
}
for(var i = 0; i < radios.length; i++) {
radios[i].addEventListener("clic... | chango2/TipCalculator | tipCalc.js | JavaScript | apache-2.0 | 460 |
// This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
/* Full Reddit example, as a serial procedure. */
var mldb = require('mldb')
var unittest = require('mldb/unittest')
//smaller tests
mldb.put("/v1/datasets/eg", {"type":"sparse.mutable"})
mldb.post("/v1/datasets/eg/rows", {
"rowName"... | mldbai/mldb | testing/MLDB-826-vector-ops.js | JavaScript | apache-2.0 | 2,191 |
var searchData=
[
['sorted_5ffloats',['SORTED_FLOATS',['../a00568.html#aef8186f49aebf966706617113b8082b5',1,'SORTED_FLOAT']]]
];
| stweil/tesseract-ocr.github.io | 3.x/search/related_7.js | JavaScript | apache-2.0 | 131 |
const { Command } = require('discord.js-commando')
const fs = require('fs')
module.exports = class ViewCommandCommand extends Command {
constructor (client) {
super(client, {
name: 'viewcommand',
memberName: 'viewcommand',
group: 'utility',
description: 'View an entire command.',... | Aceheliflyer/Ace-Bot | src/commands/utility/viewcommand.js | JavaScript | apache-2.0 | 949 |
/**
* Copyright 2013 IBM Corp.
*
* 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... | mblackstock/node-red-contrib | red/red.js | JavaScript | apache-2.0 | 2,153 |
// This file has been autogenerated.
var profile = require('../../../lib/util/profile');
exports.getMockedProfile = function () {
var newProfile = new profile.Profile();
newProfile.addSubscription(new profile.Subscription({
id: '00977cdb-163f-435f-9c32-39ec8ae61f4d',
name: 'node',
user: {
name:... | harshiam-hdinsight/azure-xplat-cli | test/recordings/arm-cli-rediscache-tests/arm_Redis_Cache_create_cache_with_same_name_should_fail.nock.js | JavaScript | apache-2.0 | 3,993 |
(function () {
"use strict";
angular.module('greenpepper.services').factory('FileLoader', FileLoader);
FileLoader.$inject = ['$http'];
function FileLoader($http) {
var httpConfig = {cache: false, headers: {'Cache-Control': 'no-cache'}};
function getlogsurl(repoName, specName) {
... | strator-dev/greenpepper | greenpepper-open/greenpepper-report/src/main/webapp/support/app/services/fileloader.js | JavaScript | apache-2.0 | 1,469 |
"use strict";
// Adapted from https://johnflux.com/2015/05/02/nokia-6110-part-3-algorithms/
{
(function () {
// init map
var init = function init() {
snake.body.length = 0;
map.init(10, 10);
map.generate_r(-1, -1, 0, 0);
map.generateTourNumber();
snake.addHead(0, 0);
snake.addHead(1, 0);
sn... | Ojas-Singh/Ojas-Singh.github.io | old/perfect-snake/js/index.js | JavaScript | apache-2.0 | 11,462 |
var assert = require('assert');
import pick from "..";
import { pick as pickAlias } from "../..";
describe( __filename, function() {
it('pick alias', function(){
assert.equal( pick, pickAlias );
} );
it('pick hello world', function() {
assert.equal(
pick( '{% hello world %}' )... | zemzheng/ziey-utils | src/pick/__test__/index.js | JavaScript | apache-2.0 | 4,377 |
var detect_dsize_8h =
[
[ "DetectDsizeData_", "structDetectDsizeData__.html", "structDetectDsizeData__" ],
[ "DETECTDSIZE_EQ", "detect-dsize_8h.html#a88bc36da4cea5874206a080baaaab4fe", null ],
[ "DETECTDSIZE_GT", "detect-dsize_8h.html#a1f4c47480e6b0d7c602f12aede2eb2ad", null ],
[ "DETECTDSIZE_LT", "dete... | onosfw/apis | suricata/apis/detect-dsize_8h.js | JavaScript | apache-2.0 | 658 |
// Copyright 2012 Applied Geographics, Inc. Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0
$(function () {
var $frmPostBack = $("#frmPostBack");
if ($frmPostBack.length) {
$frmPostBack.attr("action", document.location.href).submit();
}
else {
if ($("#autoP... | AppGeo/GPV | WebApp/Scripts/Identify.js | JavaScript | apache-2.0 | 715 |
// set up events
//-------------------------------------
var events = require('events');
var ee = new events.EventEmitter();
// configuration file
//-------------------------------------
var nconf = require('nconf');
nconf.file({file: 'config.json'});
// pizza
//-------------------------------------
var Dominos = req... | marky421/netflix-switch | app.js | JavaScript | apache-2.0 | 1,308 |
import moment from 'moment-timezone';
import {
callApi,
now,
currencyCode,
getCurrencyBasedOn
} from '../../util';
import {
GET_TICKER,
GET_PRICE
} from './apiAction.js';
import MARKET_CODE from './marketCode.js';
import notifier from 'node-notifier';
export function monitorRealtimePrice() {
let getLastT... | vitostan/vitostan | src/feature/trade/marketBoard.js | JavaScript | apache-2.0 | 1,810 |
import { Template } from 'meteor/templating';
Template.Back_To_Top_Button.onRendered(function backToTopButtonOnRendered() {
// add your statement here
const offset = 250;
const duration = 300;
$(window).scroll(function windowScrollTop() { // eslint-disable-line
if (this.$(this).scrollTop() > offset) {
... | radgrad/radgrad | app/imports/ui/components/shared/back-to-top-button.js | JavaScript | apache-2.0 | 637 |
/*!
* Add to Homescreen v2.0.8 ~ Copyright (c) 2013 Matteo Spinelli, http://cubiq.org
* Released under MIT license, http://cubiq.org/license
*/
var addToHome = (function (w) {
var nav = w.navigator,
isIDevice = 'platform' in nav && (/iphone|ipod|ipad/gi).test(nav.platform),
isIPad,
isRetina,
isSafari,
isS... | matthewriley/whsclassof96 | add2home/add2home.js | JavaScript | apache-2.0 | 14,402 |
/*
Author: Jafar Akhondali
Release year: 2016
Title: Light-Zoom JQuery plugin that use pure css to zoom on images, this enables you to zoom without loading bigger image and zoom even on gif images !
https://github.com/JafarAkhondali/lightzoom
*/
$.fn.lightzoom=function(a){a=$.extend({zoomPower:3,glassSize:175},a);... | 4everinstone/4everinstone.github.io | javascript/lightzoom.min.js | JavaScript | apache-2.0 | 1,215 |
import { read, save } from '../../storage'
import { STORE_KEY_CONFIG_PAGE_LIMIT } from '../../constants'
const state = {
pageLimit: 20,
menu:1
}
const mutations = {
UPDATE (state, config) {
state.pageLimit = config.pageLimit || state.pageLimit
},
MENU(state,index) {
state.menu = index... | ixufeng/ECollege | admin/client/src/store/modules/global-config.js | JavaScript | apache-2.0 | 819 |
'use strict';
import React, {Component} from 'react';
import {connect} from 'react-redux';
import _ from 'lodash/core';
import {Drawer} from 'native-base';
import {BackAndroid, Platform, StatusBar} from 'react-native';
import {closeDrawer} from './actions/drawer';
import {popRoute} from './actions/route';
import Navi... | chris50bn/Between | js/AppNavigator.js | JavaScript | apache-2.0 | 7,259 |
export default {
CARD: 'card'
}; | jiangli373/react-proto | js/ItemTypes.js | JavaScript | apache-2.0 | 37 |
#!/usr/bin/env node
(function(global) {
var USAGE = _multiline(function() {/*
Usage:
node ClosureCompiler.js [@label ...]
[--help]
[--verbose]
[--nowrap]
[--nocompile]
... | uupaa/ClosureCompiler.js | index.js | JavaScript | apache-2.0 | 12,193 |
Ext.define('gov.va.cprs.Surgery', {
extend: 'Ext.container.Container',
requires: [
'gov.va.cpe.viewdef.HealthTimeColumn',
'gov.va.cpe.viewdef.FacilityColumn',
'gov.va.hmp.ux.UnderConstruction'
],
title: 'Surgery',
height: '100%',
layout: {type: 'vbox', align: 'stretch'},
... | KRMAssociatesInc/eHMP | ehmp/product/production/hmp-plugin-classic-views/src/main/js/gov/va/cprs/Surgery.js | JavaScript | apache-2.0 | 979 |
(function() {
'use strict';
appleController.$inject = ['$scope', '$rootScope', '$resource', '$http', 'usSpinnerService', "$log" ];
function appleController($scope, $rootScope, $resource, $http, usSpinnerService, $log) {
$scope.collectionResource = null;
$scope.itemResource = null;
$scope.search... | seniya2/reference_webui_template | src/main/resources/static/apps/reference_webui_template/apple/apple.js | JavaScript | apache-2.0 | 5,894 |
/*
* This file is automatically loaded from state/load.js
* to change default state - change state/load.js at line: 34
*/
"use strict";
window.Pacman.state.demo = {
create: function(){
// create all objects
var all = mt.createAll();
// prevent pause on focus lost
this.game.stage.disableVisibilityChange =... | Byte-Camp/Website | static/best-ofs/2Dgame/Ben - Pacman/js/state/demo.js | JavaScript | apache-2.0 | 501 |
/**
*
*/
;
(function ($, window, document, undefined) {
var pluginName = "fontFamilyCellEditor";
var defaults = {
parent: "",
msg: "",
};
var MbSelectCellEditor = function (element, options) {
this.element = element;
this.options = $.extend({
parent: "",
... | CloudBPM/SwinFlowCloud-CloudSide | om/src/main/webapp/js/editors/fontfamilycelleditor.js | JavaScript | apache-2.0 | 4,183 |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.ru');
goog.require('Blockly.Msg');
Blockly.Msg.ADD_COMMENT = "Добавить комментарий";
Blockly.Msg.AUTH = "Пожалуйста, авторизуйте это приложение, чтоб можно было сохранять вашу работу и чтобы дать возможность вам делить... | TransmediaLab/SmartFarm | priv/js/msg/js/ru.js | JavaScript | apache-2.0 | 40,145 |
module.exports = function (RED) {
var firebase = require('firebase');
var Utils = require('./utils/utils');
var _ = require('lodash-node');
function FirebaseUpdate(n) {
RED.nodes.createNode(this, n);
this.firebaseConfig = RED.nodes.getNode(n.firebaseConfig);
this.childpath = n.childpath;
this.a... | shrikantzarekar/node-red-contrib-shri-firebase | shri-firebase/firebase_update.js | JavaScript | apache-2.0 | 1,016 |
/**
* Created by JiBingkun on 2015/07/09.
*/
var mongoose = require('mongoose')
, Schema = mongoose.Schema
, ObjectId = Schema.ObjectId;
/**
* 短息设置
* @type {Schema}
*/
var NoteTextSchema = new Schema({
id: ObjectId
, smsUser : { type: String, trim: true, required: true}//短信通道用户名
, smsPassword:... | jbkzty/-manageMent-background | app/models/noteText.js | JavaScript | apache-2.0 | 486 |
// Copyright 2016 Artem Lytvynov <buntarb@gmail.com>. 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
//
// Unle... | buntarb/zz.events | lib/sources/tests/zz.events.baseevents_test.js | JavaScript | apache-2.0 | 1,343 |
var a02506 =
[
[ "EDGEPT", "a02506.html#aa70527d4bff3d2972ed3be5a138bf00d", null ],
[ "EDGEPT", "a02506.html#a0661438956401b0af728a1c80e3c58ee", null ],
[ "CopyFrom", "a02506.html#a7564d2ea97089e8e8665e5e71632c854", null ],
[ "EqualPos", "a02506.html#a90550b6319d12411397e4e2cc08c7e6a", null ],
[ "Hi... | stweil/tesseract-ocr.github.io | 4.0.0-beta.1/a02506.js | JavaScript | apache-2.0 | 1,671 |
/*
* Copyright 2016 Studentmediene i Trondheim AS
*
* 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 ... | Studentmediene/Momus | webapp/js/app.js | JavaScript | apache-2.0 | 13,550 |
/**
* @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/blas/ext/base/ssumors/benchmark/benchmark.ndarray.js | JavaScript | apache-2.0 | 1,973 |
function(args) {
var mm=getrtmm$$(this.tipo);
if (mm.ps===undefined)throw InvocationException$meta$model("Applied function does not have metamodel parameter info for named args call");
var mapped={};
var iter=args.iterator();var a;while((a=iter.next())!==getFinished()) {
mapped[a.key]=a.item;
}
var orde... | jvasileff/ceylon.language | runtime-js/jsint/AppliedFunction/namedApply.js | JavaScript | apache-2.0 | 1,104 |
/*global define, $j, psData, loadingDialogInstance, jQuery*/
import $ from 'jquery';
import _ from 'underscore';
import parsley from 'parsley';
import inputMask from 'jquery.inputmask';
import inputMaskExtensions from 'inputmask.extensions';
import {
service
} from './service';
import {
config
} from './config';
... | IronCountySchoolDistrict/student-contacts | src/scripts/student-contacts/js/student-contacts-update/actions.js | JavaScript | apache-2.0 | 39,089 |
//mongo localhost:27017/sli --eval 'var tenant="MegatronIL";' jsExpected.js
var criteria = {};
if( typeof tenant != 'undefined'
&& tenant != null
&& tenant.length > 0)
criteria['metaData.tenantId']=tenant;
var entities ={
'assessment':4,
'attendance':16,
... | inbloom/secure-data-service | sli/acceptance-tests/test/features/ingestion/test_data/PropagatedDataSet/jsExpected.js | JavaScript | apache-2.0 | 2,068 |
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component, PropTypes } from 'react';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Props';
const CLASS_ROOT = ... | nickjvm/grommet | src/js/components/icons/base/RestroomMen.js | JavaScript | apache-2.0 | 1,830 |
/* @flow */
import { ALIGN, APPEARANCE, FONT_WEIGHT } from './constants';
import type {
ComponentTheme,
ComponentThemeFn,
ThemeObj,
ThemeValue
} from '../themes/types';
type Align = $Keys<typeof ALIGN>;
type Appearance = $Keys<typeof APPEARANCE>;
type FontWeight = $Keys<typeof FONT_WEIGHT> | number;
export t... | mineral-ui/mineral-ui | src/library/Text/types.js | JavaScript | apache-2.0 | 2,067 |
/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!(function(a, b) {
"object" == typeof module && "object" == typeof module.exports
? (module.exports = a.document
? b(a, !0)
: function(a) {
if (!a.document)
throw new Error("jQuery require... | zhangdaiscott/jeecg-boot | jeecg-boot/jeecg-boot-module-demo/src/main/resources/static/bigscreen/template1/js/jquery.min.js | JavaScript | apache-2.0 | 174,741 |
var keys = [192, 49, 50, 51, 52, 53, 54, 55, 56, 57, 48, 189, 187, 8,
9,81,87,69,82,84,89,85,73,79,80,219,221,220,
20,65,83,68, 70, 71, 72, 74, 75, 76, 186,222,13,
16,90, 88, 67, 86, 66, 78, 77, 188, 190 , 191, 16,
17, 18, 32, 18, 17 ];
var xcord = [113, 152, 190, 230, 269, 308, 347, 386, 425,... | brendanwr/dvorak | dvorak.js | JavaScript | apache-2.0 | 4,710 |
if(!dojo._hasResource["dojox.dtl.tests.dom.tag"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo._hasResource["dojox.dtl.tests.dom.tag"] = true;
dojo.provide("dojox.dtl.tests.dom.tag");
dojo.require("dojox.dtl.dom");
dojo.require("dojox.dtl.Context");
dojo.require("doj... | feklee/rotogame | source/dojo-release-1.3.0-src/release/dojo/dojox/dtl/tests/dom/tag.js | JavaScript | apache-2.0 | 16,462 |
/*
Copyright (c) 2004-2016, The JS Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
//>>built
define("dojo/cldr/nls/zh-tw/number",{$locale:"zh-hant-tw","decimalFormat-short":"000T",nan:"\u975e\u6578\u503c"}); | wanglongbiao/webapp-tools | Highlander/ship-gis/src/main/webapp/js/arcgis_js_api/library/3.22/dojo/cldr/nls/zh-tw/number.js | JavaScript | apache-2.0 | 318 |
var a02458 =
[
[ "PGEventHandler", "a02458.html#a9d9d15673f7d24bf751d3d67ea63ddd8", null ],
[ "Notify", "a02458.html#a12be356045e7f4b06670afd16df62862", null ]
]; | stweil/tesseract-ocr.github.io | 4.0.0-beta.1/a02458.js | JavaScript | apache-2.0 | 170 |
var $ = require('jquery');
function NestableTemplate() {
this.el = document.createElement('div');
this.$header = $('<div/>').addClass('header');
this.$body = $('<div/>').addClass('body');
this.$footer = $('<div/>').addClass('footer');
$(this.el).append(this.$header);
$(this.el).append(this.... | juttle/juttle-viz | src/views/facet/nestableTemplate.js | JavaScript | apache-2.0 | 683 |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | stdlib-js/stdlib | lib/node_modules/@stdlib/math/base/special/acot/examples/index.js | JavaScript | apache-2.0 | 863 |
//// [parserCommaInTypeMemberList2.ts]
var s = $.extend< { workItem: any }, { workItem: any, width: string }>({ workItem: this._workItem }, {});
//// [parserCommaInTypeMemberList2.js]
var s = $.extend({ workItem: this._workItem }, {});
| freedot/tstolua | tests/baselines/reference/parserCommaInTypeMemberList2.js | JavaScript | apache-2.0 | 238 |
/**
* Useful functions for dealing with strings.
*
* @module StringUtils
*/
(function(define) {
'use strict';
define([], function() {
var interpolate;
/**
* Returns a string created by interpolating the provided parameters.
*
* The text is provided as a tokenized... | edx/edx-ui-toolkit | src/js/utils/string-utils.js | JavaScript | apache-2.0 | 2,752 |
const App = require('../dist/index.js');
App.run(); | MajorHard/Enz | scripts/start.js | JavaScript | apache-2.0 | 52 |
//(function () {
'use strict';
angular
.module('genseq.servicos')
.factory('Autenticacao', Autenticacao);
//Autenticacao.$inject = ['$cookies', '$http'];
//CORRIGIR COOKIES DEPOIS
Autenticacao.$inject = ['$http'];
//function Autenticacao($cookies,$http) {
//CORRIGIR COOKIES DEPOIS
function Autenticacao($... | kz3r/sb-admin-angular-master | app/scripts/OLDgenseq.servicos.js | JavaScript | apache-2.0 | 1,658 |
var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileName='src/basic/Tabs/Button.windows.js';var React=require('react');
var ReactNative=... | chaitanya0bhagvan/NativeBase | dist/src/basic/Tabs/Button.windows.js | JavaScript | apache-2.0 | 655 |
//// [promisePermutations.ts]
interface Promise<T> {
then<U>(success?: (value: T) => Promise<U>, error?: (error: any) => Promise<U>, progress?: (progress: any) => void): Promise<U>;
then<U>(success?: (value: T) => Promise<U>, error?: (error: any) => U, progress?: (progress: any) => void): Promise<U>;
then<U... | freedot/tstolua | tests/baselines/reference/promisePermutations.js | JavaScript | apache-2.0 | 17,125 |
module.exports = function(pg, db, errorCodes, bcrypt){
const saltRounds = 10;
var User = {
register: (data, callback) => {
db.query(`select * from public.User where login=$1`, [data.login], (err, result)=>{
if(err){
callback(err)
} else if(r... | kvoronov/uvs | entities/User.js | JavaScript | apache-2.0 | 4,619 |
/*
*
*/
"use strict";
goog.provide("Entry.Code");
goog.require("Entry.Collection");
goog.require('Entry.STATIC');
/*
*
*/
Entry.Code = function(code, object) {
Entry.Model(this, false);
if (object) this.object = object;
this._data = new Entry.Collection();
this._eventMap = {};
this._blockM... | jangmoonchul/entryjs | src/workspace/code.js | JavaScript | apache-2.0 | 10,256 |
var clients = [];
$(function () {
//clients = $.clientsInit();
})
//$.clientsInit = function () {
// var dataJson = {
// dataItems: [],
// organize: [],
// role: [],
// duty: [],
// user: [],
// authorizeMenu: [],
// authorizeButton: []
// };
// var init = ... | CAH-FlyChen/Evolution.Framework | src/Evolution.Web.Html/wwwroot/js/framework-clientdata.js | JavaScript | apache-2.0 | 950 |
/**
* @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/doctest/create-annotation-value/test/test.js | JavaScript | apache-2.0 | 11,445 |
/*
* Copyright (c) 2012-2015 S-Core Co., 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... | wing9405/webida-client | apps/ide/src/plugins/webida.ide.project-management.run.java/plugin.js | JavaScript | apache-2.0 | 9,205 |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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, modi... | mosaic-cloud/mosaic-distribution-dependencies | dependencies/nodejs/0.8.22/test/simple/test-https-strict.js | JavaScript | apache-2.0 | 6,118 |
//// [downlevelLetConst11.ts]
"use strict";
let
//// [downlevelLetConst11.js]
"use strict";
var ;
| freedot/tstolua | tests/baselines/reference/downlevelLetConst11.js | JavaScript | apache-2.0 | 99 |
/**
* Copyright 2020 The Google Earth Engine Community 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... | google/earthengine-community | samples/javascript/guides/reducers011.js | JavaScript | apache-2.0 | 1,207 |
/**
* @author Alonso Zaragoza
*/
var activityIndicator, showingIndicator, activityIndicatorWindow, progressTimeout;
var progressIndicator = null;
exports.showIndicator = function(_messageString, _progressBar) {
//if Android, we need a container for the prgress bar to make it more visible.
if ( OS_ANDROID) {
andr... | Program-person75/CIDM4385_Chapter05_Tigram | app/lib/progressWindow.js | JavaScript | apache-2.0 | 3,054 |
var _sunSpiderStartDate = new Date();
// The Great Computer Language Shootout
// http://shootout.alioth.debian.org
//
// Contributed by Ian Osgood
function pad(n,width) {
var s = n.toString();
while (s.length < width) s = ' ' + s;
return s;
}
function primes(isPrime, n) {
var i, count = 0, m = 10000<<n, ... | keil/TbDA | test/sunspider/bitops-nsieve-bits.js | JavaScript | apache-2.0 | 788 |
var
// get util library
util = require("core/Util");
function Featured(options){
var self = Ti.UI.createTableView({
width : Ti.UI.FILL,
backgroundColor : Theme.Home.Featured.HeaderBackgroundColor,
height : options.height || null
});
return {
get : function(){
return self;
},
/*
* Feature... | nicolascine/TiClassicApp | Resources/ui/Featured.js | JavaScript | apache-2.0 | 2,858 |
import React, { PropTypes } from 'react';
import { Nav, NavDropdown, MenuItem } from 'react-bootstrap';
import uuid from 'uuid';
import Icon from '../../../Icon';
function getIcon(selected) {
switch (selected) {
case 'table': return 'talend-table';
case 'large': return 'talend-expanded';
case 'tile': return 'talen... | Talend/react-talend-components | src/List/Toolbar/SelectDisplayMode/SelectDisplayMode.component.js | JavaScript | apache-2.0 | 1,356 |
/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | stdlib-js/stdlib | lib/node_modules/@stdlib/math/strided/special/dmsktrunc/test/test.dmsktrunc.native.js | JavaScript | apache-2.0 | 6,804 |
var classorg_1_1onosproject_1_1ovsdb_1_1provider_1_1host_1_1OvsdbHostProvider =
[
[ "OvsdbHostProvider", "classorg_1_1onosproject_1_1ovsdb_1_1provider_1_1host_1_1OvsdbHostProvider.html#abeb2a94a025f64ca4f619d9964329f58", null ],
[ "activate", "classorg_1_1onosproject_1_1ovsdb_1_1provider_1_1host_1_1OvsdbHostPro... | onosfw/apis | onos/apis/classorg_1_1onosproject_1_1ovsdb_1_1provider_1_1host_1_1OvsdbHostProvider.js | JavaScript | apache-2.0 | 1,387 |
module.exports = function (app) {
app.require('cantina-app-users');
app.load('conf');
app.load('plugins');
app.load('middleware');
app.load('controllers');
app.load('views');
};
| cantina/cantina-app-ui-users | cantina-app-ui-users.js | JavaScript | apache-2.0 | 191 |
describe('Qminder.webhooks', function() {
beforeEach(function() {
if (typeof Qminder === 'undefined') {
Qminder = this.Qminder;
}
if (typeof sinon === 'undefined') {
sinon = this.sinon;
}
Qminder.setKey('EXAMPLE_API_KEY');
Qminder.setServer('api.qminder.com');
this.requestStub ... | Qminder/qminder-api | test/web/WebhooksService.test.js | JavaScript | apache-2.0 | 2,362 |
'use strict';
var path = require('path'),
logger = require('morgan'),
express = require('express'),
bodyParser = require('body-parser'),
cookieParser = require('cookie-parser');
var routes = require('./routes/index');
var app = express();
app.config = require((process.env.NODE_ENV === 'test') ? './c... | e-ucm/rage-analytics-games | app.js | JavaScript | apache-2.0 | 1,490 |
exports.ini = function(_title)
{
$.mytitle.text = _title;
};
exports.setOptionText = function(_t, _num_char)
{
if(_num_char == null)
{
_num_char = 15;
}
//$.info.text= Alloy.Globals.webservice.stringNum(_t,_num_char,true);
};
exports.getTitle = function()
{
return $.title.text;
};
//
| Zuhn/ProductManager | app/controllers/PMXOptionListRow.js | JavaScript | apache-2.0 | 296 |
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
fetchRegisteredUsersAndRender(req, res);
});
router.get('/landingPageData', function(req, res, next) {
/*
var RegisteredUsers1 = {
"user-name": "Manu Mathew",
"d... | manu682/User-Registration-MEAN | sampleapp/routes/index.js | JavaScript | apache-2.0 | 965 |
/**
* Copyright 2019 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... | zhouyx/amphtml | src/preact/base-element.js | JavaScript | apache-2.0 | 29,045 |
/**
* @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/bessely1/scripts/evalrational.js | JavaScript | apache-2.0 | 3,752 |
function collectData(additionalData,
eventBus, env) {
additionalData.put("test", "Javascript output!");
}
function registerListeners(eventBus) {
}
function setHostFragment(fragment) {
} | jochen777/rosebud | src/main/resources/js/blub.js | JavaScript | apache-2.0 | 214 |
(function () {
'use strict';
describe('error scenarios', function () {
var loginPage = require("../login/loginPage.js");
afterEach(function () {
browser.clearMockModules();
browser.refresh();
});
describe('server unavailable', function () {
... | silverbullet-dk/opentele-client-html | e2e-tests/areas/errors/errorScenarios.js | JavaScript | apache-2.0 | 2,871 |
//Auto generated index for searching.
w["peer"]="27";
w["peer0"]="27";
w["peer1"]="27";
w["perform"]="3,7,16";
w["perman"]="17";
w["permiss"]="17";
w["physic"]="0,27";
w["pid_fil"]="25";
w["pipelin"]="11";
w["pleas"]="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,25,26,27";
w["plug"]="3,18";
w["plug-... | midonet/midonet-docs | www/docs/en/quick-start-guide_rhel-7_kilo-osp/5.1-rev1/content/search/index-3.js | JavaScript | apache-2.0 | 5,981 |
// Copyright 2014-2015 François de Campredon
//
// 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... | fdecampredon/rx-react | lib/component.js | JavaScript | apache-2.0 | 2,257 |
define({"topics" : [{"title":"Event Records","href":"datacollector\/UserGuide\/Destinations\/HadoopFS-destination.html#concept_dmx_1ln_qx","attributes": {"data-id":"concept_dmx_1ln_qx",},"menu": {"hasChildren":false,},"tocID":"concept_dmx_1ln_qx-d46e91019","topics":[]}]}); | rockmkd/datacollector | docs/generated/oxygen-webhelp/app/nav-links/json/concept_bvb_rxj_px-d46e90906.js | JavaScript | apache-2.0 | 273 |
const app = require('./app');
const mongoose = require('mongoose');
const Bot = require('./app/models/bot');
const WeatherReport = require('./app/models/WeatherReport');
mongoose.Promise = global.Promise;
mongoose.connect('localhost', 'forecast');
process.on('uncaughtException', (err) => {
console.log(`Caught excep... | BrandonMathis/forecast | main.js | JavaScript | apache-2.0 | 427 |
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LetterlikeSymbols.js
*
* Copyright (c) 2009-2010 Design Science, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in comp... | AKSW/SlideWiki | slidewiki/libraries/frontend/MathJax/unpacked/jax/output/HTML-CSS/fonts/STIX/General/Regular/LetterlikeSymbols.js | JavaScript | apache-2.0 | 4,888 |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2016 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | denisprotopopov/pentaho-kettle | plugins/repositories-plugin/src/main/resources/web/js/controllers.js | JavaScript | apache-2.0 | 16,725 |
const { RyvrsCollection } = require('./RyvrsCollection');
const RELS_RYVRS_COLLECTION = 'https://mountain-pass.github.io/ryvr/rels/ryvrs-collection';
class RyvrApp {
constructor() {
this.reset();
}
reset() {
this.theTitle = 'ryvr';
this.ryvrsCollection = new RyvrsCollection();
}
get title() {... | mountain-pass/ryvr | src/main/js/model/RyvrApp.js | JavaScript | apache-2.0 | 551 |
/**
* Copyright 2015 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... | BrightcoveOS/amphtml | test/functional/test-cid.js | JavaScript | apache-2.0 | 18,746 |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides the base implementation for all model implementations
sap.ui.define(['./FormatException', './ParseException', './SimpleTy... | SuicidePreventionSquad/SeniorProject | resources/sap/ui/model/CompositeType-dbg.js | JavaScript | apache-2.0 | 3,339 |
/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | stdlib-js/stdlib | lib/node_modules/@stdlib/math/strided/special/abs-by/lib/ndarray.js | JavaScript | apache-2.0 | 1,953 |
/**
* @license
* Copyright 2012 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 ... | picklesrus/blockly | generators/python.js | JavaScript | apache-2.0 | 12,936 |
/* http://keith-wood.name/calendars.html
Thai calendar for jQuery v1.1.4.
Written by Keith Wood (kbwood{at}iinet.com.au) February 2010.
Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and
MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses.
... | ndrmc/cats | Cats.Web.Hub/Scripts/js/jquery.calendars.thai.js | JavaScript | apache-2.0 | 5,627 |
Ti.include('/SQL.js');
var info_urlCollection = Alloy.Collections.info_urlModel;
var info_Collection = Alloy.Collections.infoModel;
var media_Collection = Alloy.Collections.mediaModel;
var trail_Collection = Alloy.Collections.trailsModel;
var infoCoord_Collection = Alloy.Collections.infospotCoordinatesModel;
var hotsp... | samsweco/KosterDROID | app/lib/collectionData.js | JavaScript | apache-2.0 | 4,947 |
var struct__OVS__EVENT__QUEUE__ELEM =
[
[ "link", "struct__OVS__EVENT__QUEUE__ELEM.html#a270a52b9effb23967447c352f7bfda66", null ],
[ "portNo", "struct__OVS__EVENT__QUEUE__ELEM.html#a2a70f76ffafa45055c2e8ec7237c7914", null ],
[ "status", "struct__OVS__EVENT__QUEUE__ELEM.html#a58ea82f1223a1dcb8295599f7613516... | vladn-ma/vladn-ovs-doc | doxygen/ovs_all/html/struct__OVS__EVENT__QUEUE__ELEM.js | JavaScript | apache-2.0 | 333 |
function load_chal_template(chal_type_name){
$.get(script_root + '/static/admin/js/templates/challenges/'+ chal_type_name +'/' + chal_type_name + '-challenge-create.hbs', function(template_data){
var template = Handlebars.compile(template_data);
$("#create-chal-entry-div").html(template({'nonce':non... | liam-middlebrook/CTFd | CTFd/static/admin/js/chal-new.js | JavaScript | apache-2.0 | 1,403 |
/* jshint browser:true, debug:true */
/* globals Peer, console */
"use strict";
var peerJsApiKey = "gnyz9wskc2chaor";
function randElt(arr) {
return arr[Math.floor(Math.random() * arr.length)];
}
function humanFriendlyId() {
var firstPartChoices = "John Gregory Benedict Clement Leo Boniface Urban Celestine S... | playsign/wex-ec-experiment | oulu/p2pnet.js | JavaScript | apache-2.0 | 1,220 |
import helper from "../configs/helper.json";
let paramController = function (app, control={auth, passport, acl}){
function controller (req, res, next) {
req.controller = "param";
return next();
}
app.get('/param/list', (req, res) => {
let $name = req.params.name;
if(helper){
... | wp-wilsonperez/backendInstance | app/controllers/param.js | JavaScript | apache-2.0 | 542 |
/*
Copyright (C) 2017 Innotrade GmbH <https://innotrade.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/licenses/LICENSE-2.0
Unless required by applicable law ... | innotrade/enapso-client-js | testsws.js | JavaScript | apache-2.0 | 1,928 |
/**
* @license Copyright 2019 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... | GoogleChrome/lighthouse-ci | packages/viewer/test/e2e/different-category-comparison.test.js | JavaScript | apache-2.0 | 2,165 |
(function(window) {
if (window.svg3d === undefined) {
window.svg3d = function() {};
}
function Shape(domNode) {
this.domNode = domNode;
this.assignSetNormal();
}
/*
get next coord in the string
*/
var COORD = new RegExp("^ *,? *(-?[\\d.]+([eE][-+]?\\d+)?) ?");
Shape... | ndebeiss/svg3d | svg3d/svg3d.js | JavaScript | apache-2.0 | 44,496 |
const { libPaths } = require('../config');
const fs = require('fs');
const rimraf = require('rimraf');
const { PATH_TO_LIBS_DIR } = require('../constants');
const libsWithPathAndName = libPaths.map((libPath) => ({
fullPath: libPath,
fileName: libPath.replace(/^.*[\\\/]/, '')
}));
// Make sure that the lib sou... | StBozov/Core | e2e/scripts/copyLibs.js | JavaScript | apache-2.0 | 1,414 |
formats["en-us"] = [
'EEEE, MMMM dd, yyyy hh:mm:ss a',
'EEEE, dd MMMM, yyyy hh:mm:ss a',
'EEEE, MMMM dd, yyyy h:mm:ss a',
'EEEE, dd MMMM, yyyy h:mm:ss a',
'EEEE, MMMM dd, yyyy HH:mm:ss',
'EEEE, dd MMMM, yyyy HH:mm:ss',
'EEEE, MMMM dd, yyyy H:mm:ss',
'EEEE, MMMM dd, yyyy hh:mm a',
'EEEE, dd MMMM, yyyy ... | anychart-solutions/localization-demo | formats/en-us.js | JavaScript | apache-2.0 | 2,685 |
/*global angular, _*/
angular.module('taskRunner')
.controller('TasksCtrl', function ($scope, taskService, usSpinnerService, authService, $state) {
'use strict';
$scope.toggleTasksText = 'Show All';
$scope.hasUnavailable = false;
$scope.hasInvalidItems = false;
$scope.const... | voyagersearch/navigo | app/src/taskrunner/tasks-controller.js | JavaScript | apache-2.0 | 3,760 |
"use strict";
popupSupport.directive('popUp',["popupService",function (popupService) {
return {
restrict: 'E',
transclude: true,
replace: true,
scope: {
width: '@', //width of the popup
popupCount: '@',
id: '@',//an id for the background overlay f... | AjabShahar/Ajab-Shahar-TW | web/app/user/js/common/directives/popupSupport/popup.js | JavaScript | apache-2.0 | 1,181 |
'use strict';
App.directive('wizard', function($q, util, applicationService, pluginsService) {
return {
restrict: 'E',
require: '?ngModel',
scope: {
wizardConfig: "=?",
ngModel: '='
},
templateUrl: 'assets/pages/wizard-template.html',
link: fun... | rcassola/DigiCard | src/main/webapp/assets/directives/wizard.js | JavaScript | apache-2.0 | 3,917 |