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 |
|---|---|---|---|---|---|
var searchData=
[
['jerk',['jerk',['../namespacenum.html#a6e927eaca1f1b7440ab08397472e34a1',1,'num']]]
];
| tevaughan/numeric | docs/doxygen-html/search/typedefs_6.js | JavaScript | lgpl-3.0 | 108 |
import { ADD_TEMPLATE, EDIT_TEMPLATE } from '../constants/ActionTypes';
import * as types from '../constants/ActionTypes'
const initialState = {
id: 0,
title: '',
description: '',
fields: [],
allowInsert: 0,
allowUpdate: 0,
allowDelete: 0,
};
export default function(state = initialState, a... | lybo/dcms | front-end/reducers/template.js | JavaScript | lgpl-3.0 | 628 |
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2004-2011 1&1 Internet AG, Germany, http://www.1und1.de
License:
LGPL: http://www.gnu.org/licenses/lgpl.html
EPL: http://www.eclipse.org/org/d... | sebastienhupin/qxrad | qooxdoo/application/mobileshowcase/source/class/mobileshowcase/page/Animation.js | JavaScript | lgpl-3.0 | 2,176 |
/*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... | joansmith/sonarqube | server/sonar-web/src/main/js/api/quality-profiles.js | JavaScript | lgpl-3.0 | 1,195 |
goog.provide('ydn.crm.su.model.SearchTest');
goog.setTestOnly('ydn.crm.su.model.SearchTest');
goog.require('goog.testing.asserts');
goog.require('goog.testing.jsunit');
goog.require('ydn.crm.su.model.Record');
goog.require('ydn.crm.su.model.Search');
goog.require('ydn.crm.su.model.Sugar');
goog.require('ydn.crm.test')... | yathit/sugarcrm | src/ydn/crm/sugarcrm/model/search-test.js | JavaScript | lgpl-3.0 | 1,603 |
angular.module('dystopia-tracker').controller('EmbedCtrl', ['$scope', 'Prediction', 'Categories', 'Sources', 'Realisation', '$rootScope', '$location', '$routeParams', '$cookies', '$filter', '$timeout',
function($scope, Prediction, Categories, Sources, Realisati... | jplusplus/dystopia-tracker | app/static/js/controllers/EmbedCtrl.js | JavaScript | lgpl-3.0 | 1,452 |
/*
* StorytellingWidget.js
*
* Copyright (c) 2013, Sebastian Kruse. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your o... | skruse/PLATIN | js/Storytelling/StorytellingWidget.js | JavaScript | lgpl-3.0 | 6,562 |
importScripts('../../drivers/common.js')
options = { a: 4, b: 'default' }
init(function(name, command) {
log('I am ' + name + ' from ' + command.count)
getter('answer', function() { return 42 })
})
on('talk', function(msg) {
log(msg.data)
load('A', { a: 1 })
worker('A', { command: ':b' })
out... | ai/evolu-steam | spec/workers/commoner.js | JavaScript | lgpl-3.0 | 411 |
/*
Tests for m.codegen.js.
.
This file is dedicated to the public domain by way of CC0.
https://creativecommons.org/publicdomain/zero/1.0/
*/
test["codegen dynamic IR integration"] = function () {
var cache = {};
cache.test_result = 0;
cache.test_method = function (a, b) {
this.test_result = ... | Aeva/m.grl | tests/test.codegen.js | JavaScript | lgpl-3.0 | 2,923 |
// JavaScript Document
window.onload=function(){showdd(0);}
function showdd(mydl){//显示指定DL下的DD
var alldl=document.getElementsByTagName("dl");
var thedt=alldl[mydl].getElementsByTagName("dt");thedt[0].className="dtjian";
var thedd=alldl[mydl].getElementsByTagName("dd");
for (ii=0;ii<thedd.length;ii++){thedd[ii].st... | sdyycn/qxzxb | jobadmin/templates/scripts/menu.js | JavaScript | lgpl-3.0 | 1,002 |
/*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... | Builders-SonarSource/sonarqube-bis | server/sonar-web/src/main/js/apps/system/section.js | JavaScript | lgpl-3.0 | 1,628 |
#pragma strict
var currentWeapon = 0;
var maxWeapons = 2;
var theAnimator : Animator;
function Awake ()
{
SelectWeapon(0);
}
function Update ()
{
if(Input.GetAxis("Mouse ScrollWheel") > 0)
{
if(currentWeapon + 1 <= maxWeapons)
{
currentWeapon++;
}
else
{
currentWeapon = 0;
}
SelectWeapon(cur... | pierredepaz/alternate-realities | projects/miha/Projects/02_Spacefall/tests/custom-arms/survival-game-assets/Scripts/WeaponSwitching02.js | JavaScript | unlicense | 1,424 |
/*
Tree Kit
Copyright (c) 2014 - 2018 Cédric Ronvel
The MIT License (MIT)
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 u... | Haini/dotfiles | .joplin-bin/lib/node_modules/joplin/node_modules/tree-kit/test/mask-test.js | JavaScript | unlicense | 6,782 |
/**
* Created by HuayiSeven on 2015/2/9.
*/
$F.regist('latest.getLatest', function () {
$f.call("comm.homeList",
'latest',
$f.get("SERVER_URL").latestUrl,
function(total, items){
var host = $f.get("SERVER_URL").host;
for (var i = 0; i < items.length; i++) {
... | tonyjames3212/yuexiangappwww | www/js/controller/latest/getLatest.js | JavaScript | unlicense | 834 |
'use strict'
const fs = require('fs')
const electron = require('electron')
const app = electron.app
const badge = require('./badge')
const inbox = require('./inbox')
const menu = require('./menu')
const createTray = require('./tray')
app.on('window-all-closed', function () {
app.quit()
})
app.on('ready', function... | chrisyip/inbox-app | app/index.js | JavaScript | unlicense | 554 |
cordova.define("cordova-plugin-ace.TextBlock", function(require, exports, module) { //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for f... | Universav/UniversavPoke | cordova/platforms/android/platform_www/plugins/cordova-plugin-ace/www/framework/TextBlock.js | JavaScript | unlicense | 1,659 |
function alwaysTrue() {
return true;
}
//The exploration ship is blocked by the Kraken's tentacles. They are difficult (but possible) to beat
//if the kraken is not defeated since they regenerate 10x as quickly and start out more powerful
var explorationCripplingTentaclesAction = new ToggleAction(new BattleAction(... | lancehalberd/lazyrpg | world-ancientContinent.js | JavaScript | unlicense | 13,153 |
var app = window.app || {};
app.calc = require("./calc.js");
app.doAdd = function() {
var firstoperand = $('firstoperand');
var secondoperand = $('secondoperand');
$('result').innerHTML = window.app.calc.add(firstoperand.value, secondoperand.value);
};
window.app = app;
window.$ = function(id) {
return ... | nimiux/ncswd | js/agile/tdd/frontend_testing/js/app.js | JavaScript | unlicense | 469 |
var Utility = {
formatTime: function(milliseconds) {
if (milliseconds <= 0)
return '00:00';
var seconds = Math.round(milliseconds);
var minutes = Math.floor(seconds / 60);
if (minutes < 10)
minutes = '0' + minutes;
seconds = seconds % 60;
if (seconds < 10)
... | SlovakNationalGallery/soundwalk-filko | www/js/utility.js | JavaScript | unlicense | 792 |
'use strict';
/**
* Test case for : /attack/around
*
* @author jun.thong@me.com (Jun Thong)
*/
let supertest = require('supertest'),
userTools = require('../tools/userTools');
let url = '/attack/around/35.652832/139.839478?access_token=00000000-0000-0000-0000-000000000000'
module.exports.isArray ... | jun-thong/kaijuAlert | test/attack/around.js | JavaScript | unlicense | 337 |
define(['modules/user/userDetailView', 'modules/user/user'], function(UserDetailView, User) {
describe('User detail view', function() {
var userDetailView, user, age;
beforeEach(function() {
age = 12;
user = new User();
userDetailView = new UserDetailView({ use... | kjbekkelund/js-java-setup | src/test/js/modules/user/userDetailViewSpec.js | JavaScript | unlicense | 648 |
var gulp = require("gulp"),
rm = require('gulp-rimraf'),
shell = require('gulp-shell'),
webpack = require('webpack-stream'),
zip = require('gulp-zip');
gulp.task('clean', function() {
gulp.src('dist/*').pipe(rm());
});
gulp.task('build', ['clean'], function() {
return gulp.src('./src/index.js')
... | steveortiz/alexa-family-feud | gulpfile.js | JavaScript | unlicense | 778 |
ace.define('ace/theme/gist', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
exports.isDark = false;
exports.cssClass = "ace-gist";
exports.cssText = "/* CSS style content from gist's default pygments highlighter template.\
Cursor and selection styles from textmate.css. */\
.ace-... | briangreenery/gist | public/deps/ace/theme-gist.js | JavaScript | unlicense | 2,152 |
'use strict';
angular.module('athenaApp')
.factory('ConfigurationService', function ($rootScope, $filter, $http) {
return {
get: function() {
return $http.get('configprops').then(function (response) {
var properties = [];
angular.forEach(r... | StarTrackDevKL/athena | src/main/webapp/scripts/components/admin/configuration.service.js | JavaScript | unlicense | 588 |
sap.ui.define([
'sap/ui/core/mvc/Controller',
'sap/ui/model/json/JSONModel'
], function(Controller, JSONModel) {
"use strict";
var ListController = Controller.extend("sap.m.sample.ListSelection.List", {
onInit : function (evt) {
// set explored app's demo model on this sample
var oModel = new JSONModel... | SAP/openui5 | src/sap.m/test/sap/m/demokit/sample/ListSelection/List.controller.js | JavaScript | apache-2.0 | 605 |
var iopipe = require("iopipe")
/*
Pass event containing:
audio - Audio to be transcribed
context_type - audio/flac, audio/l16, audio/wav, audio/ogg
*/
module.exports = iopipe.define(
"examples/watson-speech-to-text",
iopipe.property("results")[0]["alternatives"][0]["transcript"],
iopipe.tee(
"exampl... | iopipe/iopipe-examples | apps/voice-assistant/index.js | JavaScript | apache-2.0 | 700 |
require('coffee-script/register');
DigitalOcean_API = require('./src/DigitalOcean_API');
do_Api = new DigitalOcean_API()
do_Api.list(function (data) {
console.log(data)
}) | o2platform/digitalocean-cli | index.js | JavaScript | apache-2.0 | 178 |
import Queue from './queue';
import {Transfer} from '../../contracts/const';
import {RequestType} from '../../contracts/enums';
import {WaiterJob} from '../../contracts/entities';
import logger from '../../utils/logger';
const debug = logger('executor:waiter');
export default class Waiter {
constructor(options = {... | o-evin/glacier-console | source/main/executor/waiter.js | JavaScript | apache-2.0 | 2,580 |
//// [superWithTypeArgument3.ts]
class C<T> {
foo: T;
bar<U>(x: U) { }
}
class D<T> extends C<T> {
constructor() {
super<T>();
}
bar() {
super.bar<T>(null);
}
}
//// [superWithTypeArgument3.js]
var __extends = (this && this.__extends) || (function () {
var extendStatic... | domchen/typescript-plus | tests/baselines/reference/superWithTypeArgument3.js | JavaScript | apache-2.0 | 1,270 |
var common = require('../../lib/common');
var statusCode = require('./statusCode');
var async = require('async');
var util = require('util');
var mysql = require('mysql2');
var MAX_RETRY = 3;
module.exports = function(environment) {
var clientName = 'azuremysqldbClient';
var log = common.getLogger(clientName);
... | zhongyi-zhang/meta-azure-service-broker | test/utils/azuremysqldbClient.js | JavaScript | apache-2.0 | 3,027 |
import React, {useRef, useEffect} from "react";
import {Query, Mutation} from "react-apollo";
import {Table, Button} from "helpers/reactstrap";
import gql from "graphql-tag.macro";
import "./style.scss";
import Printable from "helpers/printable";
import useQrCode from "react-qrcode-hook";
import {useQuery, useMutation}... | Thorium-Sim/thorium | src/components/views/SpaceEdventuresToken/core.js | JavaScript | apache-2.0 | 11,531 |
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/autoload/multiline.js
*
* Implements the HTML-CSS output for <mrow>'s that contain line breaks.
*
* -----... | GerHobbelt/MathJax | unpacked/jax/output/HTML-CSS/autoload/multiline.js | JavaScript | apache-2.0 | 32,797 |
define("dojox/drawing/ui/Button", ["dojo", "../util/oo", "../stencil/Rect", "../stencil/Ellipse",
"../stencil/Text", "../manager/_registry"],
function(dojo, oo, Rect, Ellipse, Text, registry){
//dojox.drawing.ui.Button =
var Button = oo.declare(
function(options){
options.subShape = true;
dojo.mixin(this, opti... | Caspar12/zh.sw | zh.web.site.admin/src/main/resources/static/js/dojo/dojox/drawing/ui/Button.js.consoleStripped.js | JavaScript | apache-2.0 | 6,649 |
var _ = require('/lib/underscore')._;
var log = require('/lib/log');
var settings = require('/lib/settings');
var appName = 'Shuttle Pad';
var resourcesPath = Ti.Filesystem.resourcesDirectory;
var dataPath = Ti.Filesystem.applicationDataDirectory;
var osname = Ti.Platform.osname;
var osversion = Ti.Platform.version;
... | web-ascender/Titanium-Ruby-on-Rails-Starter | Resources/context.js | JavaScript | apache-2.0 | 2,988 |
/**
* Created by lum on 2015/7/22.
*/
define([
'backbone'], function (Backbone) {
'use strict';
var urlError = function () {
throw new Error('A "url" property or function must be specified');
};
var user = Backbone.Model.extend({
defaults: {
name: '',
job:... | lumeng689/luapp | blog/src/main/webapp/static/js/models/user.js | JavaScript | apache-2.0 | 1,055 |
import React from 'react';
import AltContainer from 'alt-container';
import {
BrowserRouter as Router,
Route, Link, Switch
} from 'react-router-dom';
import ContentActions from '../stores/ContentActions';
import ContentStore from '../stores/ContentStore';
import {View} from "./viewers";
import {flatMapTable} fro... | walnutgeek/hashstore | hashstore/bakery/js/src/components/ContentView.js | JavaScript | apache-2.0 | 959 |
module.exports = function (res, err, foundDocuments) {
if (err) res.status(500).send(errorHandler(err));
else if (foundDocuments == null) res.status(500).send(errorHandler('Query Returned no Documents'));
else res.status(200).json(foundDocuments);
} | duhiga/MusicCampScheduler2 | utilities/sendDocuments.js | JavaScript | apache-2.0 | 255 |
const a =require('./a.js')
console.log(a) | vickCZX/Node.js | b.js | JavaScript | apache-2.0 | 41 |
//var render = nunjucks.renderString('Hello {{ username }}', { username: 'James' });
//var env = nunjucks.configure('views', { autoescape: true });
//var env = nunjucks.configure({ autoescape: true });
//var env = new nunjucks.Environment();
//var loader = new nunjucks.PrecompiledLoader(templates);
//var env = new nunj... | itemsapi/curated-list | assets/script.js | JavaScript | apache-2.0 | 4,080 |
// Generated by CoffeeScript 1.6.3
var Services, fs, logger, nodprof, path, utils, _;
fs = require("fs");
path = require("path");
_ = require("underscore");
nodprof = require("../..");
utils = require("../common/utils");
logger = require("../common/logger");
Services = require("./services").Services;
exports.ru... | pmuellr/nodprof | lib/node/profiler.js | JavaScript | apache-2.0 | 1,344 |
/**
* 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 t... | googleinterns/filesystem-in-appsscript | FileMapper/show_prompt_choice.js | JavaScript | apache-2.0 | 1,285 |
/**
* Proudly created by ohad on 04/01/2017.
*/
const expect = require('chai').expect,
_ = require('../../../../common/util/wrapper'),
$ = require('../../../../common/util/dom'),
BaseError = require('../../../../common/log/base.error'),
Level ... | mybrainpal/brainjs | src/client/manipulation/execute/dom/tooltip/tooltip.test.js | JavaScript | apache-2.0 | 10,082 |
/**
* DeleteSystemMessage AJAX requests: mark a system message as archived
* takes parameter systemMessageId
*
* - processResponse()
* - processError()
*/
enyo.kind({
name: 'AJAX.DeleteSystemMessage',
kind: 'AJAX.Parent',
method:'DELETE',
rest:'/api/v1/systemMessage/delete'
});
| pcimino/enyo-mvc-web-app | source/models/ajax/AJAXDeleteSystemMessage.js | JavaScript | apache-2.0 | 292 |
import FolderModel from 'girder/models/FolderModel';
import View from 'girder/views/View';
import UploadWidget from 'girder/views/widgets/UploadWidget';
import { setCurrentToken } from 'girder/auth';
import template from '../templates/authorizedUpload.pug';
import '../stylesheets/authorizedUpload.styl';
var Authorized... | sutartmelson/girder | plugins/authorized_upload/web_client/views/AuthorizedUploadView.js | JavaScript | apache-2.0 | 1,498 |
/**
* @license
* Copyright 2015 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... | osric-the-knight/foam | js/foam/core/dao/StripPropertiesDAO.js | JavaScript | apache-2.0 | 1,571 |
//Module._load
//var Module = new Module(...);
//module.exports = ...
//module.load()
//module._extensions()
//Module.wrap();
//(function (export, require, module, _filename, _dirname){
var greet = function(){
console.log("Hello from greet module");
};
//Pass by reference the wrap function
module.exports = greet;
/... | koitoer/mean | node_training/1_basics/greet.js | JavaScript | apache-2.0 | 325 |
/*
Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
This file is licensed under the Apache License, Version 2.0 (the "License").
You may not use this file except in compliance with the License. A copy of
the License is located at
http://aws.amazon.com/apache2.0/
This fi... | imshashank/aws-doc-sdk-examples | javascript/example_code/iam/iam_createaccountalias.js | JavaScript | apache-2.0 | 977 |
/********************************************************************
* Author: Matias Grioni
* Created: 14 November 2015
*
* An osilloscope type canvas element to specifically interface with
* musical notes.
********************************************************************/
var Oscilloscope = function(canvasId, so... | matgrioni/HuMIDIfier | js/oscilloscope.js | JavaScript | apache-2.0 | 1,029 |
import React, {PropTypes} from "react";
import TextInput from "../common/TextInput";
import PasswordInput from "../common/PasswordInput";
const LoginForm = ({credentials, onChange, onLogin}) => {
return (
<form>
<h3>Welcome to courses</h3>
<TextInput
name="username"
label="U... | illichso/courses | frontend/src/components/login/LoginForm.js | JavaScript | apache-2.0 | 937 |
'use strict';
/****************************************************************************************************
*
* Mappify Controller
*
***************************************************************************************************/
app.controller('MappifyFormCtrl', function($scope, ComponentsService, GraphS... | GeoKnow/GeoKnowGeneratorUI | src/main/webapp/js/workbench/search-querying-and-exploration/mappify-controller.js | JavaScript | apache-2.0 | 958 |
require([
"config/FintrackerConfig",
"dojo/_base/lang",
"dojo/on",
"dojo/topic",
"dojo/behavior",
"dojo/parser",
"dojo/io-query",
"dojo/window",
"dojo/dom-style",
"dojo/dom-attr",
"dojo/date/locale",
"dojo/store/Memory",
"dojo/data/ObjectStore",
"dijit/layout/BorderContainer",
"dijit/layout/TabContainer",
"dijit/layout... | paul-lysak/fintracker | app/js/script.js | JavaScript | apache-2.0 | 2,035 |
import {Joi} from 'express-joi'
const update = {
email: Joi.string().email().required(),
profile: Joi.object({
name: Joi.string().min(2).max(150).optional(),
subscription: Joi.string().required(),
gender: Joi.string().allow('').optional(),
location: Joi.string().allow('').option... | bogdanmarin/artisan | server/init/express-validators/user.js | JavaScript | apache-2.0 | 851 |
/**
* @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/_tools/github/fetch-file/test/fixtures/request.js | JavaScript | apache-2.0 | 2,107 |
/**
* @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 la... | google/outrigger | uxAutomation/test/smoke/expectations/keyboard-validation.js | JavaScript | apache-2.0 | 1,118 |
module.exports = {
base: {
dbname: 'torero_dev'
},
models: {},
services: {},
helpers: {},
controllers: {}
}; | thebyrd/torero | src/all/app/config/development.js | JavaScript | apache-2.0 | 124 |
function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete obj[key];
}
return arg;
}
function Controller() {
require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
this.__controllerPath = "searchView";
... | CAGIS/CagisWorks | Resources/android/alloy/controllers/searchView.js | JavaScript | apache-2.0 | 1,002 |
//! OpenSeadragon 2.0.0
//! Built on 2015-09-15
//! Git commit: v2.0.0-101-aa83e01
//! http://openseadragon.github.io
//! License: http://openseadragon.github.io/license/
/*
* OpenSeadragon
*
* Copyright (C) 2009 CodePlex Foundation
* Copyright (C) 2010-2013 OpenSeadragon contributors
*
* Redistribution and use ... | informatics-isi-edu/microscopy | viewer/js/openseadragon.js | JavaScript | apache-2.0 | 722,871 |
var Parameter, REGEX_MULTIWORD, REGEX_OPTIONAL, REGEX_REQUIRED, REGEX_STDIN, REGEX_VARIADIC, STDIN_CHARACTER, _, parse;
_ = require('lodash');
parse = require('./parse');
REGEX_REQUIRED = /^<(.*)>$/;
REGEX_OPTIONAL = /^\[(.*)\]$/;
REGEX_VARIADIC = /^[<\[](.*)[\.]{3}[>\]]$/;
REGEX_MULTIWORD = /\s/;
REGEX_STDIN = ... | resin-io/capitano | build/parameter.js | JavaScript | apache-2.0 | 2,836 |
/*
Copyright 2017 Bitnami.
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
... | andresmgot/serverless-kubeless | test/kubelessInfo.test.js | JavaScript | apache-2.0 | 10,632 |
module.exports = function let(project) {
return project(this);
} | trxcllnt/RxJSx | src/operators/let.js | JavaScript | apache-2.0 | 68 |
/**
* @fileoverview View manager of Genotet.
*/
'use strict';
/** @const */
genotet.viewManager = {};
/**
* Object that stores all the views. Keys are view names.
*/
genotet.viewManager.views = {};
/**
* Initializes the view manager.
*/
genotet.viewManager.init = function() {
genotet.viewManager.views = {};... | ViDA-NYU/genotet | src/view-manager.js | JavaScript | apache-2.0 | 5,842 |
import React, { Component } from 'react';
import { Link } from 'react-router'
import {
Grid,
PageHeader,
} from 'react-bootstrap';
export default class Home extends Component {
render() {
let buildID = this.props.location.query.build_id;
return (
<div className="HomePage">
<PageHeader style... | bslatkin/dpxdt | dpxdt/server/static/release-config/src/HomePage.js | JavaScript | apache-2.0 | 936 |
import { load } from './load/main.js'
import { parse } from './parse/main.js'
import { transformSuccess, transformError } from './response.js'
export const graphql = {
name: 'graphql',
title: 'GraphQL',
routes: ['/graphql'],
methods: ['GET', 'POST'],
parse,
transformSuccess,
transformError,
load,
}
| autoserver-org/autoserver | src/rpc/adapters/graphql/main.js | JavaScript | apache-2.0 | 317 |
// @flow
import { openDialog } from '../../../base/dialog';
import { translate } from '../../../base/i18n';
import { IconMenuThumb } from '../../../base/icons';
import { connect } from '../../../base/redux';
import { AbstractButton } from '../../../base/toolbox';
import type { AbstractButtonProps } from '../../../base... | bgrozev/jitsi-meet | react/features/toolbox/components/native/OverflowMenuButton.js | JavaScript | apache-2.0 | 1,131 |
/**
* Copyright 2014 Scn Community Contributors
*
* Original Source Code Location:
* https://github.com/org-scn-design-studio-community/sdkpackage/
*
* 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... | org-scn-design-studio-community/lumiradesignercommunityext_src | legacy_src/org.scn.community.utils/res/Replacer/Replacer.js | JavaScript | apache-2.0 | 7,590 |
import LazyLoadingList from './LazyLoadingList.component';
export default LazyLoadingList;
| Talend/ui | packages/components/src/List/ListComposition/LazyLoadingList/index.js | JavaScript | apache-2.0 | 92 |
exports.Transaction = function (mongoose) {
var transactionSchema = mongoose.Schema({
date: Date,
concept: String,
amount: Number,
account: String,
person: String,
splitId: String
});
return mongoose.model('Transaction', transactionSchema);
};
exports.Person =... | coseguera/ispentit | models/mongoModels.js | JavaScript | apache-2.0 | 674 |
// Copyright 2007 The Closure Library 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 requ... | nanaze/closure-rhino-fork | closure/goog/ui/menu.js | JavaScript | apache-2.0 | 15,089 |
jQuery(document).ready(function($) {
$('#waypoints').select2();
stopSorting();
$('#sr-wizard').on('finished.fu.wizard', function (e, data) {
createService();
});
$('.delete-service').on('click', function(e) {
var serviceID = $(this).data('service-id');
console.log(serviceID);
panel = $('#se... | brocade-apj/anzsdnhackathon2016 | www/www/static/js/main.js | JavaScript | apache-2.0 | 1,863 |
/**
* Created by Administrator on 2016/1/25.
*/
var PrepareDataNav = function () {
var layers = [];
layers.push(["卫星影像", 'world_image']);
layers.push(["地图", 'world_vector']);
layers.push(["天地图影像", 'tianditu_image']);
layers.push(["Bing影像地图", 'bing_image']);
layers.push(["ESRI影像地图", 'esri_image... | guazipi/labProject | js/PreDataNav.js | JavaScript | apache-2.0 | 36,429 |
log('<< ui/buy/Buy.js >>');
var navBar, buyImage, contactImage;
module.exports = function(data, nav) {
navBar = nav;
var table = Ti.UI.createTableView({
data: [createThumnailRow(data), createSeparator(), createDetailsRow(data), createSeparator(), createButtonRow(data)],
top: 0,
footerTitle: '',
backg... | YasKuraishi/p2p-Books | Resources/ui/buy/Details.js | JavaScript | apache-2.0 | 5,455 |
var canvas = document.getElementById('myCanvas');
var context = canvas.getContext('2d');
var PIXEL_HEIGHT = 1;
var COOKIE_WIDTH = canvas.width;
var CHOC_WIDTH = Math.floor(COOKIE_WIDTH * 0.05);
var CHOC_BOX = Math.floor(COOKIE_WIDTH / 7); // Boxes for randomly choosing chocolate chip UL point
var COOKIE_COLOR = "#BA8C5... | shuyangli94/shuyangli94.github.io | crumblies/crumblies.js | JavaScript | apache-2.0 | 20,422 |
var demo = {
scene: "WCafe",
incremental: false,
binary: false,
doNotUseCDN: false,
collisions: true,
offline: true,
freeze: true,
onload: function () {
}
}; | BabylonJS/Samples | build/Demos/WCafe/demo.js | JavaScript | apache-2.0 | 197 |
/**
* @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/ndarray/base/assert/is-same-kind-data-type-cast/examples/index.js | JavaScript | apache-2.0 | 1,138 |
var mapData;
var useConvexHull = true;
$.btnClear.enabled = false;
if(OS_IOS){
var navWin = arguments[0].navWin;
};
if(OS_ANDROID){
$.drawableMapWin.addEventListener('open', function() {
var actionBar;
if (! $.drawableMapWin.activity) {
Ti.API.error("Can't access action bar on a lightweight window.... | csgf/earthserver-sg-mobile | app/controllers/meeo/DrawableMapWin.js | JavaScript | apache-2.0 | 2,209 |
var expect = require('chai').expect;
describe('runner~timings', function () {
var Timings = require('../../lib/runner/timings');
it('should expose a constructor', function () {
expect(Timings).to.be.a('function');
});
it('should instantiate a new timings object', function () {
expect(... | postmanlabs/postman-runtime | test/unit/runner-timings.test.js | JavaScript | apache-2.0 | 2,515 |
var causes = ["wounds", "other", "disease"];
var parseDate = d3.time.format("%m/%Y").parse;
var margin = {top: 20, right: 50, bottom: 30, left: 20},
width = 960 - margin.left - margin.right,
height = 500 - margin.top - margin.bottom;
var x = d3.scale.ordinal()
.rangeRoundBands([0, width]);
var y = d3.sc... | katsuya0719/visEPlus | static/js/stack.js | JavaScript | apache-2.0 | 3,290 |
import tools from './tools/tools';
import loader from './tools/Loader';
import Routing from './tools/Routing';
$(document).ready(() => {
const table = $('#week-stat');
let columns = [
{ data: 'createdAt' },
{ data: 'nbUsers' },
{ data: 'nbMentees' },
{ data: 'nbMentors' },
... | ESNFranceG33kTeam/sf_buddysystem | assets/js/week-stat.js | JavaScript | apache-2.0 | 1,100 |
/*
* Copyright (c) 2017-2018, Inversoft 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... | inversoft/passport-node-client | test/PassportClientTest.js | JavaScript | apache-2.0 | 4,923 |
'use strict';
var adapters = ['http', 'local'];
adapters.forEach(function (adapter) {
describe('test.changes.js-' + adapter, function () {
var dbs = {};
// if it exists, return the single element
// which has the specific id. Else retun null.
// useful for finding elements within a _changes feed... | seigel/pouchdb | tests/integration/test.changes.js | JavaScript | apache-2.0 | 54,978 |
import Slack from './slack'
import Log from './log'
export { Slack, Log }
| RcKeller/STF-Refresh | server/integrations/index.js | JavaScript | apache-2.0 | 79 |
const userRoutes = require('./userRoutes');
const constructorMethod = (app) => {
app.use("/user", userRoutes);
app.use("*", (req,res) => {
res.render("welcome/welcome");
});
}
module.exports = constructorMethod; | pszonkadonk/cognitive-finance | routes/index.js | JavaScript | apache-2.0 | 247 |
/*!
* Copyright 2012 Sakai Foundation (SF) 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.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable... | Coenego/3akai-ux | ui/js/notfound.js | JavaScript | apache-2.0 | 757 |
/**
* @fileoverview Basic mock client.
*/
goog.provide('ydn.client.MockClient');
goog.require('goog.log');
goog.require('ydn.client.Client');
goog.require('ydn.client.SimpleHttpRequest');
/**
* Basic mock client.
* @param {number=} opt_delay server respond time, default to 0 for
* synchronous respond.
* @co... | yathit/ydn-base | src/ydn/client/mock-client.js | JavaScript | apache-2.0 | 3,470 |
'use strict';
require(['/assets/js/app.js'], function () {
require(['config', 'utils'], function (Config, Utils) {
$('#btn-signin').off('click').on('click', function () {
var mobile = $.trim($('#mobile').val()),
pwd = $('#pwd').val();
if (mobile === '') {
Utils.formVe... | xiaxiazhu119/onedream | OneDream.Web/assets/js/controllers/web/passport/signin-controller.js | JavaScript | apache-2.0 | 884 |
/**
* Sponge Knowledge Base
* Defining, calling and disabling Actions
*/
function onInit() {
// Variables for assertions only
sponge.setVariable("scriptActionResult", null);
sponge.setVariable("javaActionResult", null);
}
var EchoAction = Java.extend(Action, {
onConfigure: function(sel... | softelnet/sponge | sponge-nashorn/examples/script/js/actions.js | JavaScript | apache-2.0 | 1,580 |
import '../javascripts/pc'
import '../stylesheets/pc'
import '../stylesheets/db'
require.context('images', true, /\.(jpg|jpeg|png|svg)$/)
| elzzup/annict | app/frontend/packs/pc.js | JavaScript | apache-2.0 | 139 |
import _ from 'underscore';
import ItemModel from 'girder/models/ItemModel';
import { restRequest } from 'girder/rest';
import events from './events';
const MinervaModel = ItemModel.extend({
defaults: {},
initialize: function () {
var minervaMetadata = this.getMinervaMetadata();
if (minervaM... | Kitware/minerva | web_external/MinervaModel.js | JavaScript | apache-2.0 | 3,317 |
exports.getLogin = (req, res) => {
res.render('auth/login', {
title: 'Login'
});
}
exports.postLogin = (req, res) => {
res.render('auth/login', {
title: 'Login'
});
}
exports.getRegister = (req, res) => {
res.render('auth/register', {
title: 'Register'
});
}
exports.postRegister = (req, res) ... | nicklee1990/CompanyIdeas | server/controllers/auth.js | JavaScript | apache-2.0 | 461 |
if (typeof Reflect === 'object' && typeof Reflect.ownKeys === 'function') {
module.exports = Reflect.ownKeys;
} else if (typeof Object.getOwnPropertySymbols === 'function') {
module.exports = function Reflect_ownKeys(o) {
return (
Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))
)... | GoogleCloudPlatform/prometheus-engine | third_party/prometheus_ui/base/web/ui/react-app/node_modules/reflect.ownkeys/index.js | JavaScript | apache-2.0 | 384 |
angular.module('miq.util').factory('dashboardUtilsFactory', function() {
var createProvidersStatus = function() {
return {
title: __('Providers'),
count: 0,
notifications: [],
};
};
var createAlertsStatus = function() {
return {
title: __('Alerts'),
count: 0,
notifi... | ManageIQ/manageiq-ui-classic | app/javascript/oldjs/controllers/container_dashboard/util/dashboard-utils-factory.js | JavaScript | apache-2.0 | 3,348 |
'use strict';
'require rpc';
'require uci';
return L.Class.extend({
title: _('Dynamic DNS'),
callDDnsGetServicesStatus: rpc.declare({
object: 'luci.ddns',
method: 'get_services_status',
expect: { }
}),
load: function() {
return Promise.all([
this.callDDnsGetServicesStatus(),
uci.load('ddns')
]);... | nmav/luci | applications/luci-app-ddns/htdocs/luci-static/resources/view/status/include/70_ddns.js | JavaScript | apache-2.0 | 1,204 |
/**
* @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/strided/base/unary-addon-dispatch/benchmark/benchmark.js | JavaScript | apache-2.0 | 4,055 |
/** @jsx React.DOM */
var React = require('react');
var Router = require('react-router');
var AuthStore = require('../../stores/app-auth.js');
var AuthAction = require('../../actions/app-auth.js');
var FbLoginButton = require('./app-fbloginbutton.js');
var Login = React.createClass({
mixins: [ Router.Navigation ],
... | przeor/react-pdfjs-viewer-playground | react_app/src/js/components/auth/app-login.js | JavaScript | apache-2.0 | 1,554 |
var CommonToString = function(Parse) {
Parse = Parse || false;
if(Parse) {
var Params = Parse.split("");
var Type = Params[0];
var Count = Params[1];
switch(Type) {
case "D" :
width = parseInt(Count);
z = 0
n = this + "";
return n.length >= width ? n : new... | DimasAriel/Inmobi-Itla | inc/Functions/toString.js | JavaScript | apache-2.0 | 1,675 |
import { removeDeletedNode } from '../reducers';
const queryNodes = (state = {}, action) => {
switch (action.type) {
case 'SUBMIT_SEARCH_FORM':
return { ...state, search_form: action.data };
case 'RECEIVE_SEARCH_ENTITIES':
return { ...state, search_result: action.data, search_status: action.search_status... | uc-cdis/data-portal | src/QueryNode/reducers.js | JavaScript | apache-2.0 | 909 |
//// [structConstructorWithExpressionLessReturn_basic.ts]
// no error
struct C {
constructor() {
return;
}
}
struct D {
x: number;
constructor() {
return;
}
}
struct E {
constructor(public x: number) {
return;
}
}
struct F<T> {
constructor(public x: T) {
... | wangyanxing/TypeScript | tests/baselines/reference/structConstructorWithExpressionLessReturn_basic.js | JavaScript | apache-2.0 | 1,564 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | airbnb/caravel | superset/assets/src/explore/controlPanels/WorldMap.js | JavaScript | apache-2.0 | 1,673 |
'use strict';
/**
* @license
* Copyright SOAJS All Rights Reserved.
*
* Use of this source code is governed by an Apache license that can be
* found in the LICENSE file at the root of this repository
*/
const lib = {
"message": require("../../lib/message.js"),
"mail": null,
"generateUsername": requi... | soajs/soajs.urac | bl/lib/joinCode.js | JavaScript | apache-2.0 | 5,960 |
import chai from 'chai';
import Pipeline from '../src/bus/Pipeline';
let expect = chai.expect;
describe('Pipeline', function() {
it('fail detected', function() {
var errorResult = 'none';
var msgResult;
let pipeline = new Pipeline((error) => {
errorResult = error;
});
pipeline.handlers =... | reTHINK-project/dev-runtime-core | test/Pipeline.spec.js | JavaScript | apache-2.0 | 1,887 |