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 |
|---|---|---|---|---|---|
/*
* SoftVis3D Sonar plugin
* Copyright (C) 2014 Stefan Rinderle
* stefan@rinderle.info
*
* 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, or (at... | stefanrinderle/sonar-softvis3d-plugin | src/main/resources/static/threeViewer/three/objectFactory.js | JavaScript | lgpl-3.0 | 6,284 |
'use strict';
let IdocPage = require('./idoc-page').IdocPage;
let TEXT_STYLE = require('./idoc-page').ListEditorMenu.TEXT_STYLE;
let TestUtils = require('../test-utils');
let ObjectDataWidget = require('./widget/object-data-widget/object-data-widget.js').ObjectDataWidget;
let ObjectDataWidgetConfig = require('./widge... | SirmaITT/conservation-space-1.7.0 | docker/sep-ui/test-e2e/idoc/undo-redo.spec.js | JavaScript | lgpl-3.0 | 20,371 |
/*
* WorkspaceToolbar.js
*
* Copyright (c) 2011, OSBI Ltd. 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 2.1 of the License, or (at your... | Mgiepz/saiku-adhoc-ui | js/adhoc/views/Toolbar.js | JavaScript | lgpl-3.0 | 3,887 |
/*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info 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, o... | lbndev/sonarqube | server/sonar-web/src/main/js/apps/projects/components/ProjectCardContainer.js | JavaScript | lgpl-3.0 | 1,184 |
/*
* This file is part of IMS Caliper Analytics™ and is licensed to
* IMS Global Learning Consortium, Inc. (http://www.imsglobal.org)
* under one or more contributor license agreements. See the NOTICE
* file distributed with this work for additional information.
*
* IMS Caliper is free software: you can redistri... | IMSGlobal/caliper-js-public | test/entities/videoObjectTest.js | JavaScript | lgpl-3.0 | 2,161 |
var server = require('./app');
server.listen({host:'127.0.0.1', port:3002}, function(){
console.log('[SERVER] running at http://127.0.0.1:3002/');
}); | samshum/Nodejs.Web | server.js | JavaScript | lgpl-3.0 | 152 |
/*
* AAC.js - Advanced Audio Coding decoder in JavaScript
* Created by Devon Govett
* Copyright (c) 2012, Official.fm Labs
*
* AAC.js 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 vers... | audiocogs/aac.js | src/cce.js | JavaScript | lgpl-3.0 | 5,232 |
/* eslint complexity: "off"*/
odoo.define("media_form_widget", function(require) {
"use strict";
var core = require("web.core");
var KanbanRecord = require("web.KanbanRecord");
var session = require("web.session");
var qweb = core.qweb;
var basic_fields = require("web.basic_fields");
var Fie... | yelizariev/addons-yelizariev | web_preview/static/src/js/media_form_widget.js | JavaScript | lgpl-3.0 | 6,190 |
// Production key
Parse.initialize("XYwe86rF27FL0zSEeNETivcLQ9nyBtniNxh6Swub", "R4C0M1hxn3FGyvRHgZBSeXO8ULwffzld77ZtFjTf");
//Safe-dev key
// Parse.initialize("FcavaMqNGXulqDITFSUd3cngJo6ttTctma1r2e3X", "jNfnNnqVxA5djYXg6iYZmWxADD6BRpoGn48ixPsz");
var Full_movie = React.createClass({
componentDidMount: function(){
... | EroticaDevelopers/EroticaDevelopers.github.io | js/parse_data.js | JavaScript | lgpl-3.0 | 7,655 |
// Generated on 2017-05-08 using generator-jhipster 4.4.1
'use strict';
var gulp = require('gulp'),
rev = require('gulp-rev'),
templateCache = require('gulp-angular-templatecache'),
htmlmin = require('gulp-htmlmin'),
imagemin = require('gulp-imagemin'),
ngConstant = require('gulp-ng-constant'),
rename = re... | kevoree/kevoree-registry | gulpfile.js | JavaScript | lgpl-3.0 | 5,676 |
var class_relay_command =
[
[ "RelayCommand", "class_relay_command.html#a711f0ac6148aa35a81fef72ef1a12c2e", null ],
[ "RelayCommand", "class_relay_command.html#ad7534667812f0cbdc9a07fe852daceb3", null ],
[ "RelayCommand", "class_relay_command.html#aaf0f6af75435c95b4cea61d461a62d1f", null ],
[ "CanExecut... | clement-chollet/Easy-Video-Edition | docs/documentation/class_relay_command.js | JavaScript | lgpl-3.0 | 579 |
var V;
var G = [[]]; // input edge weights
var dist = [[]]; // distance matrix
// for all pairs shortest paths
// O(V^3)
function floydwarshall() {
for (var i = 0; i < V; ++i) {
for (var j = 0; j < G[i].length; ++j) {
dist[i].push(G[i][j]);
}
}
// pick intermediate vertex
for (var k = 0; k < V; ++k) {
... | jan25/code_sorted | Graph/floydwarshall.js | JavaScript | unlicense | 517 |
(function() {
'use strict';
angular
.module('santafeJhApp')
.factory('AddressSearch', AddressSearch);
AddressSearch.$inject = ['$resource'];
function AddressSearch($resource) {
var resourceUrl = 'api/_search/addresses/:id';
return $resource(resourceUrl, {}, {
... | acardenasnet/santafe_jh | src/main/webapp/app/entities/address/address.search.service.js | JavaScript | unlicense | 390 |
module.exports = {
Project: require('./lib/project')
} | RaniSputnik/GM-Studio | index.js | JavaScript | unlicense | 55 |
//BG Color Change
var colors = ["red", "green", "blue", "purple", "yellow", "orange"];
var currentColor = 0;
function switchColor() {
if (currentColor >= colors.length) currentColor = 0;
$('#outer').css('background-color', colors[currentColor++]);
setTimeout(switchColor, 400);
}
switchColor();
//Rotate Dri... | edwarddakin/edwarddakin.github.io | pint/js/scripts.js | JavaScript | unlicense | 925 |
import toAverageProp from "../dist/toAverageProp.js";
describe("toAverageProp", function() {
var mockup = [{
city: "Rio de Janeiro",
temperature: 96,
demographics: {
population: 6.32
}
}, {
city: "São Paulo",
temperature: 82.5,
demographics: {
population: 12.04
}
}, {
city: "Curitiba",
tem... | leofavre/canivete | test/toAveragePropSpecs.js | JavaScript | unlicense | 1,201 |
var async = require('async'),
request = require('request'),
fs = require('fs'),
url = require('url'),
path = require('path');
function downloadImage(imageUrl, outFilePath, imageNum, onFinished) {
request.head(imageUrl, function(err, res) {
if (err) {
console.error('Unable to dow... | doggan/recurrimg | lib/image_download.js | JavaScript | unlicense | 2,208 |
var Player = function (game, gameSize) {
this.game = game;
this.size = {
x: 20,
y: 20
};
this.center = {
x: gameSize.x / 2 - this.size.x / 2,
y: gameSize.y - this.size.y
};
this.controls = new Controls();
};
Player.prototype = {
update: function () {
if (th... | begedin/JavaScriptGameLoop | objects/player.js | JavaScript | unlicense | 936 |
module.exports = Backbone.View.extend({
className: 'login',
initialize: function(){
var self = this
self.$el.html(ss.tmpl['login-base'].render()).appendTo('.dash')
var $logIn = self.$el.find('#log-in');
var $loggingIn = self.$el.find('#logging-in');
var $authenticationFailed = self.$el.find... | lamassu/lamassu-admin | client/code/app/Views/Login/index.js | JavaScript | unlicense | 1,928 |
/**
* Solution for problem from here:
* https://www.reddit.com/r/dailyprogrammer/comments/6jr76h/20170627_challenge_321_easy_talking_clock/
*/
const numbers = {
0: 'twelve',
1: 'one',
2: 'two',
3: 'three',
4: 'four',
5: 'five',
6: 'six',
7: 'seven',
8: 'eight',
9: 'nine',
10: 'ten',
11: 'elev... | jimalgo/funalgos | TimeToSpeech/index.js | JavaScript | unlicense | 1,334 |
/*!
* SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.ui.unified.DateTypeRange.
sap.ui.define(['jquery.sap.global', './DateRange', './library'],
functi... | ghostxwheel/utorrent-webui | resources/sap/ui/unified/DateTypeRange-dbg.js | JavaScript | unlicense | 1,552 |
mycallback( {"_record_type": "fec.version.v7_0.TEXT", "FILER COMMITTEE ID NUMBER": "C00441410", "REC TYPE": "TEXT", "TEXT4000": "Complete Campaigns", "TRANSACTION ID NUMBER": "TINCA504", "_src_file": "2011/20110504/727399.fec_1.yml", "BACK REFERENCE TRAN ID NUMBER": "INCA504", "BACK REFERENCE SCHED / FORM NAME": "SA11A... | h4ck3rm1k3/federal-election-commission-aggregation-json-2011 | objects/e9/925c4637bcc14a1887bdf564f3199c5b5d7e99.js | JavaScript | unlicense | 326 |
import '../src/styles/variables.css';
| pascalduez/react-module-boilerplate | .storybook/preview.js | JavaScript | unlicense | 38 |
/**
* AngularJS Tutorial 1
* @author Nick Kaye <nick.c.kaye@gmail.com>
*/
/**
* Main AngularJS Web Application
*/
var app = angular.module('tutorialWebApp', [
'ngRoute'
]);
/**
* Configure the Routes
*/
app.config(['$routeProvider', function ($routeProvider) {
$routeProvider
// Home
.when("/", {tem... | Apeksha14/AngularAppExample | .history/public/js/main_20170501192448.js | JavaScript | unlicense | 2,084 |
import {_map, deepAccess, isArray, logWarn} from '../src/utils.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import {auctionManager} from '../src/auctionManager.js';
import {BANNER, VIDEO} from '../src/mediaTypes.js';
import {Renderer} from '../src/Renderer.js';
import {find} from '../src/polyfi... | prebid/Prebid.js | modules/hybridBidAdapter.js | JavaScript | apache-2.0 | 8,044 |
/*
Copyright 2017 Kurt Wagner. 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 agreed to i... | KurtWagner/sw-navigation-prefetch | test/helpers/get-local-browsers.js | JavaScript | apache-2.0 | 1,003 |
angular
.module('sbAdminApp.protocol', [
'oc.lazyLoad',
'ui.router',
'ui.bootstrap',
'angular-loading-bar',
'ngFileUpload'
])
.config(['$stateProvider', '$urlRouterProvider', '$ocLazyLoadProvider', function ($stateProvider, $urlRouterProvider, $ocLazyLoadProvider) {
... | BrianMa2014/payment-admin-ui | app/scripts/controllers/protocol.js | JavaScript | apache-2.0 | 2,032 |
/*
* Copyright 2021 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/components/checklist/karma/checklist.karma.js | JavaScript | apache-2.0 | 19,426 |
/* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. */
/******************************************************************************
*
* You may not use the identified files except in compliance with the Apache
* License, Version 2.0 (the "License.")
*
* You may obtain a copy of the Licens... | oracle/Node-oracledb | test/currentSchema.js | JavaScript | apache-2.0 | 2,571 |
var maxSDHAnzahl;
var maxTWAnzahl;
var maxTPAnzahl;
function showClassInfo(elem, number, event) {
setClassInfoText(number + ' elements on unit');
showClassInfoDiv();
positionClassInfoDiv(event);
}
function setClassInfoText(text) {
var classInfoDiv = document.getElementById('classInfoDiv');
while (... | vbuendia/lfsom | lfsom/contents/libraries/G4P/library/rsc/reportGenerator/reporter.js | JavaScript | apache-2.0 | 9,022 |
module.exports = {
up(queryInterface, Sequelize) {
return queryInterface.createTable('Upvotes', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
createdAt: {
allowNull: false,
type: Sequelize.DATE
},... | larrystone/BC-26-More-Recipes | server/migrations/20170903211231-create-upvote.js | JavaScript | apache-2.0 | 900 |
/*
* Copyright (c) 2016 highstreet technologies GmbH and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
de... | demx8as6/CENTENNIAL | 03-WTP-PoC/code/ux/mwtnSpectrum/mwtnSpectrum-module/src/main/resources/mwtnSpectrum/mwtnSpectrum.controller.js | JavaScript | apache-2.0 | 967 |
'use strict';
describe('Controller: AddstationCtrl', function () {
// load the controller's module
beforeEach(module('clientApp'));
var AddstationCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
Addstat... | bonds0097/eliteauthority | client/test/spec/controllers/addstation.js | JavaScript | apache-2.0 | 529 |
'use strict';
angular.module('jhipsterApp')
.config(function ($stateProvider) {
$stateProvider
.state('sessions', {
parent: 'account',
url: '/sessions',
data: {
roles: ['ROLE_USER'],
pageTitle: 'Sessions'
... | gmarziou/jhipster-ionic | server/src/main/webapp/scripts/app/account/sessions/sessions.js | JavaScript | apache-2.0 | 667 |
var eslint = require('gulp-eslint');
module.exports = function (gulp) {
/**
* Lints the javascript
* @name eslint
* @memberof build.tasks
*/
gulp.task('eslint', function () {
return gulp.src(['./src/js/**/*.js'])
.pipe(eslint())
});
};
| jewetnitg/edia-frontend-build-proposal | tasks/eslint.js | JavaScript | apache-2.0 | 265 |
import React, { PureComponent } from 'react';
import Modal from 'react-native-modal';
import {
Container,
Content,
Body,
Button,
Footer,
FooterTab,
Header,
Text,
Title
} from 'native-base';
import style from './styles/content_group_editor';
class ContentGroupEditor extends PureCompo... | Vosie/QianLiYan | src/components/ContentGroupEditor.js | JavaScript | apache-2.0 | 1,474 |
_exportHelpers = {
/**
*
* Returns the export templates that are defined on this table.
* NOTE If this returns `null`, then the exportTemplates is not defined on the table or schema
* NOTE The returned array should not be directly used as it might be using fragments
... | informatics-isi-edu/ermrestjs | js/export.js | JavaScript | apache-2.0 | 31,427 |
// Autogenerated by hob
window.cls || (window.cls = {});
cls.ResourceManager || (cls.ResourceManager = {});
cls.ResourceManager["1.3"] || (cls.ResourceManager["1.3"] = {});
cls.ResourceManager["1.3"].ResourceID = function(arr)
{
this.resourceID = arr[0];
};
| operasoftware/dragonfly | src/resource-manager/resourcemanager.1.3.responses.createrequest.js | JavaScript | apache-2.0 | 265 |
// This file is part of mapchat released under Apache License, Version 2.0.
// See the NOTICE for more information.
function(event, text) {
var that = $(this);
$.pathbinder.go('/');
if (/^@/.test(text)) {
// Search by username
that.trigger('startload');
$$(window).app.db.view('mapchat/messages_by_a... | mapchat/mapchat | evently/content/_init/selectors/#overlay/search-query.js | JavaScript | apache-2.0 | 1,151 |
//-----------------------------------------------------------------
// fpago_mysql
// implementa el acceso a la basde de datos mysql
//-----------------------------------------------------------------
var mysql = require('mysql');
var conector = require('../comun/conector_mysql');
// getFPago
// devuelve las formas ... | icedrum/ariconta6 | api/AntiguosLIB/fpago/fpago_mysql.js | JavaScript | apache-2.0 | 1,123 |
var search = require('search');
function getDepartments(path) {
search.doDepartmentSearch({
success: function(data){
var rows = [];
_.each(data, function(item) {
rows.push(Alloy.createController("departmentListRow", {
item: item
})... | uwoshkosh/uwo-mobile-alloy | app/controllers/departmentList.js | JavaScript | apache-2.0 | 627 |
const {waitUntilReady, cleanup, PouchDB} = require('./utils');
describe('signatures', () => {
before(waitUntilReady);
afterEach(cleanup);
it('seamless auth', () => {
const promise = PouchDB.seamlessSession(() => {});
promise.then.should.be.ok;
promise.catch.should.be.ok;
return promise;
});
})... | pouchdb/pouchdb-server | tests/pouchdb-seamless-auth/signatures.js | JavaScript | apache-2.0 | 322 |
treeDirectives.directive(
'sidebarDirective', function () {
return {
restrict: 'E',
replace: true,
scope: true,
controller: [
'$scope',
'$modal',
'TreeService',
function ($scope, $modal, TreeServi... | kitolog/Tree | app/js/directives/sidebar.js | JavaScript | apache-2.0 | 1,306 |
function goDiary(e) {
//alert($.label.text);
var diary = Alloy.createController("diary").getView();
diary.open();
}
$.index.open();
| ruchango/Test06 | app/controllers/index.js | JavaScript | apache-2.0 | 145 |
/**
* Created by Emil Atanasov
*/
//##############################################################################
// TweenMaxJS.js
//##############################################################################
// TODO: possibly add a END actionsMode (only runs actions that == position)?
// TODO: evaluate a way ... | heitara/FlashCC-TweenMax | flash-project/libs/TweenMaxJS.js | JavaScript | apache-2.0 | 32,614 |
import App from './App';
import Tag from './components/Tag';
import Listen from './components/Listen';
import Home from './components/Home';
import DeezerChannel from './components/DeezerChannel';
export function configRouter (router) {
router.map({
'/': {
name: 'app',
component: App,
subRoutes... | Erilan/average | src/routeConfig.js | JavaScript | apache-2.0 | 669 |
/*jshint globalstrict: true*/ 'use strict';
var configuration = require('grunt-splunk/lib/configuration'),
splunkEnvironment = require('grunt-splunk/lib/environment'),
splunkWatchConfig = require('grunt-splunk/lib/watchConfig'),
path = require('path');
module.exports = function(grunt) {
// Verify enviro... | outcoldman/generator-splunkapp | app/templates/splunkapp/Gruntfile.js | JavaScript | apache-2.0 | 2,112 |
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/docs/referenceConf.js
/*global jasmine */
var SpecReporter = require('jasmine-spec-reporter');
exports.config = {
allScriptsTimeout: 11000,
specs: [
'./e2e/**/*.e2e-spec.ts'
],
capabilities: {
... | Arkord/runcanrol | protractor.conf.js | JavaScript | apache-2.0 | 730 |
/**
* @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/ops/cadd/benchmark/benchmark.js | JavaScript | apache-2.0 | 1,621 |
// Copyright 2019 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... | GoogleCloudPlatform/cloud-for-marketing | marketing-analytics/activation/data-tasks-coordinator/src/tasks/multiple_task.js | JavaScript | apache-2.0 | 8,160 |
// Copyright 2018, Google, LLC.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... | JustinBeckwith/google-auth-library-nodejs | samples/adc.js | JavaScript | apache-2.0 | 1,193 |
/**
* Copyright 2017 Tyler Eastman.
*
* 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 ... | teastman/node-red-contrib-ftp-download | ftp-download.js | JavaScript | apache-2.0 | 6,995 |
Input::
//// [/a/lib/lib.d.ts]
/// <reference no-default-lib="true"/>
interface Boolean {}
interface Function {}
interface CallableFunction {}
interface NewableFunction {}
interface IArguments {}
interface Number { toExponential: any; }
interface Object {}
interface RegExp {}
interface String { charAt: any; }
interfa... | kpreisser/TypeScript | tests/baselines/reference/tscWatch/programUpdates/should-properly-handle-module-resolution-changes-in-config-file.js | JavaScript | apache-2.0 | 4,002 |
import BvButtonGroup from '../button/button-group'
/* istanbul ignore next */
BvButtonGroup.install = (Vue) => {
Vue.component(BvButtonGroup.name, BvButtonGroup)
}
export default BvButtonGroup
| Harveyzhao/Basic-view | src/components/button-group/index.js | JavaScript | apache-2.0 | 199 |
/**
* @author aleeper / http://adamleeper.com/
* @author mrdoob / http://mrdoob.com/
* @author gero3 / https://github.com/gero3
* @author Mugen87 / https://github.com/Mugen87
* @author neverhood311 / https://github.com/neverhood311
*
* Description: A THREE loader for STL ASCII files, as created by Solidworks and... | sPyOpenSource/personal-website | public/games/STLLoader.js | JavaScript | apache-2.0 | 10,067 |
/*! jquery.selectBoxIt - v3.8.1 - 2013-10-17
* http://www.selectboxit.com
* Copyright (c) 2013 Greg Franko; Licensed MIT*/
// Immediately-Invoked Function Expression (IIFE) [Ben Alman Blog Post](http://benalman.com/news/2010/11/immediately-invoked-function-expression/) that calls another IIFE that contains all of the ... | lyoniionly/django-cobra | src/cobra/static/cobra/scripts/lib/jquery.selectBoxIt.js | JavaScript | apache-2.0 | 108,934 |
const Bluebird = require('bluebird');
const exec = Bluebird.promisify(require('child_process').exec);
module.exports = {
title: 'Bluetooth tests',
deviceType: {
type: 'object',
required: ['data'],
properties: {
data: {
type: 'object',
required: ['connectivity'],
properties: {
connectivity: ... | resin-os/meta-resin | tests/suites/os/tests/bluetooth/index.js | JavaScript | apache-2.0 | 1,996 |
Ext.define('util.JavaMap', {
singleton: true,
keys: new Array(),
contains: function (key) {
var entry = this.findEntry(key);
return !(entry == null || entry instanceof App.Util.NullKey);
},
get: function (key) {
var entry = this.findEntry(key);
if (!(entry == n... | hyokun31/wisekb-management-platform | wisekb-web/src/main/webapp/flamingo/packages/util/src/JavaMap.js | JavaScript | apache-2.0 | 1,394 |
function initUI(){
$("#products").html(""); //vide le contenu statique
$.getJSON("/chicon/webServices/serviceRelatedWebService.php",{cmd: "getAllServices"},
function(data){
if(data.result['code']==200){
var j = 0;
for( var i in data.result['data'].srvList){
if(j==3){j=0};
if(j==0){
... | roiKosmic/chiconServer | chicon/webSite/js/serviceShop.html-1.js | JavaScript | apache-2.0 | 2,648 |
// Provides control sap.ui.dt.test.controls.SimpleScrollControl
/*globals sap*/
sap.ui.define(['jquery.sap.global', 'sap/ui/core/Control'],
function(jQuery, Control) {
"use strict";
/**
* Constructor for a new SimpleScrollControl.
*
* @param {string} [sId] id for the new control, generated automatically if no... | SQCLabs/openui5 | src/sap.ui.dt/test/sap/ui/dt/qunit/testdata/controls/SimpleScrollControl.js | JavaScript | apache-2.0 | 2,396 |
var utils = require('./utils')
module.exports = function ({type, hot, disableExtract, media, mode}) {
let extract = hot !== true && disableExtract !== true;
return {
loaders: utils.cssLoaders({
sourceMap: false,
extract,
type,
media,
mode
})
}
}
| didi/chameleon | packages/chameleon-tool/configs/cml-loader.conf.js | JavaScript | apache-2.0 | 292 |
// JSmolCore.js -- Jmol core capability 9/30/2013 6:43:14 PM
// see JSmolApi.js for public user-interface. All these are private functions
// BH 9/30/2013 6:42:24 PM: pdb.gz switch pdb should only be for www.rcsb.org
// BH 9/17/2013 10:17:51 AM: asynchronous file reading and saving
// BH 8/16/2013 12:02:20 PM... | DeepLit/WHG | root/static/js/jsmol/js/JSmolCore.js | JavaScript | apache-2.0 | 49,790 |
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var q = require("Q");
var M = (function (_super) {
__extends(M, _super);
function M... | mbrowne/typescript-dci | tests/baselines/reference/exportAssignmentOfGenericType1.commonjs.js | JavaScript | apache-2.0 | 398 |
function ignoreInput() {
document.getElementById("personalQuestionReciverName").value = "";
document.getElementById("personalQuestion").value = "";
} | MyCapitaine/Personal-health-management-system | view/script/PersonalMsg.js | JavaScript | apache-2.0 | 152 |
// 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/jsapi_zh-tw",{"esri/nls/jsapi":{findHotSpotsTool:{hotspotsPointDefine:"Analyze \x3cb\x3e${layername}\x3c/b\x3e to find statistically significant h... | aconyteds/Esri-Ozone-Map-Widget | vendor/js/esri/arcgis_js_api/library/3.11/3.11compact/esri/nls/jsapi_zh-tw.js | JavaScript | apache-2.0 | 74,168 |
/a/lib/tsc.js -w /user/username/projects/myproject/a.ts --skipLibCheck
//// [/user/username/projects/myproject/a.ts]
interface Document {
fullscreen: boolean;
}
var y: number;
//// [/a/lib/lib.d.ts]
/// <reference no-default-lib="true"/>
interface Boolean {}
interface Function {}
interface CallableFunction {}... | minestarks/TypeScript | tests/baselines/reference/tscWatch/programUpdates/updates-errors-in-lib-file/when-non-module-file-changes/with-skipLibCheck.js | JavaScript | apache-2.0 | 4,133 |
module.exports = function(grunt) {
var config = {
pkg: grunt.file.readJSON('package.json'),
jshint: {
all: [
'Gruntfile.js',
'*.js',
'pdf417/*.js',
'pdf417/decoder/*.js',
'pdf417/detector/*.js',
'pdf417/decoder/ec/*.js',
'common/*.js... | coinme/js-zxing-pdf417 | Gruntfile.js | JavaScript | apache-2.0 | 2,665 |
'use strict';
describe('farmbuild.soilSampleImporter module', function() {
beforeEach(function() {
fixture.setBase('src/unit-test-data')
})
// instantiate service
var soilSampleImporterSession, soilSampleImporter,
milkSold, fertilizersPurchased,
susanFarmJson = 'farmdata-susan.json',
$log;
... | FarmBuild/farmbuild-soil-sample-importer | src/session/index.spec.js | JavaScript | apache-2.0 | 494 |
/*
* 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
* distributed u... | corgrath/abandoned-planemo.js | src/services/observer-service.js | JavaScript | apache-2.0 | 7,276 |
var guiData = null;
var guiDataChanged = false;
var gui;
function initGui() {
//obj = new THREE.PerspectiveCamera( 50, window.innerWidth / window.innerHeight, 1, 10000 );
// @Todo: make it work with enabled controllers, not sure which one should come first
if (typeof(trackballControls.object) != 'object') {
retur... | marcelovani/xhprof | xhprof_html/themes/VR/js/vrGui.js | JavaScript | apache-2.0 | 6,626 |
import { setPropertiesFromJSON } from '../../json-helper';
/**
* Generated class for shr.skin.SupportSurfaceCategory.
*/
class SupportSurfaceCategory {
/**
* Get the value (aliases codeableConcept).
* @returns {CodeableConcept} The shr.core.CodeableConcept
*/
get value() {
return this._codeableConc... | standardhealth/flux | src/model/shr/skin/SupportSurfaceCategory.js | JavaScript | apache-2.0 | 1,450 |
// Copyright 2011 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(function(global, utils) {
"use strict";
%CheckIsBootstrapping();
// ----------------------------------------------------------------------------
// ... | dreamllq/node | deps/v8/src/proxy.js | JavaScript | apache-2.0 | 5,850 |
exports.ProxyServer = require('./proxyserver/ProxyServer');
exports.Host = require('./Host');
| enmasseio/remoteobjects | lib/remoteobjects.js | JavaScript | apache-2.0 | 94 |
// Read configs, init loggers, init apps, fills N object.
'use strict';
const cluster = require('cluster');
const crypto = require('crypto');
const fs = require('fs');
const path = require('path');
const Promise = require('bluebird');
const npm = require('npm');
const _ ... | nguyendev/DVMN | Code/DVMN/DoVuiHaiNao/wwwroot/lib/fontello/lib/system/runner/initialize.js | JavaScript | apache-2.0 | 17,413 |
// Generated on 2015-09-12 using
// generator-webapp 1.0.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// If you want to recursively match all subfolders, use:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Time how long tasks t... | fmpwizard/owlcrawler | webapp/Gruntfile.js | JavaScript | apache-2.0 | 11,073 |
/*jslint indent: 2, maxlen: 120, vars: true, white: true, plusplus: true, regexp: true, -W051: true, sloppy: true */
/*global require, exports */
////////////////////////////////////////////////////////////////////////////////
/// @brief node helper module "util"
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2004... | morsdatum/ArangoDB | js/node/util.js | JavaScript | apache-2.0 | 3,998 |
#! /usr/local/bin/node
/*jslint node:true */
// loader.js
// ------------------------------------------------------------------
//
// Load JSON collections into an API BaaS organization + app.
//
// created: Thu Feb 5 19:29:44 2015
// last saved: <2017-April-26 09:03:07>
var fs = require('fs'),
path = require('pa... | DinoChiesa/EdgeTools | baasLoadExport/loader.js | JavaScript | apache-2.0 | 5,788 |
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import DateTime from 'grommet/components/DateTime';
import Form from 'grommet/components/Form';
import FormField from 'grommet/components/FormField';
import InteractiveExample from '../../../components/Intera... | grommet/grommet-docs | src/docs/components/date-time/DateTimeExamplesDoc.js | JavaScript | apache-2.0 | 1,653 |
'use strict';
/* global describe, beforeEach, it */
var _ = require('lodash');
var testUtils = require('../util/testUtils');
var NetSimTestUtils = require('../util/netsimTestUtils');
var utils = require('@cdo/apps/utils');
var DataConverters = require('@cdo/apps/netsim/DataConverters');
var NetSimConstants = require('... | dillia23/code-dot-org | apps/test/netsim/NetSimRouterNode.js | JavaScript | apache-2.0 | 79,546 |
/*
* Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
* Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
* Created By:
* Maintained By:
*/
//= require can.jquery-all
//= require models/cacheable
(function(ns, can) {
can.Model.Cacheable("CMS.Models.Person",... | alaeddine10/ggrc-core | src/ggrc/assets/javascripts/pbc/person.js | JavaScript | apache-2.0 | 3,636 |
//Initializes all the global html element objects that are often reused.
function initiateGlobals() {
usernameInput = document.getElementById("usernameInput");
messageTextarea = document.getElementById("messageTextarea");
chatBoxDiv = document.getElementById("chatBoxDiv");
fontSelect = document.getElementById('font... | atheiman/chatHub | assets/initialize.js | JavaScript | apache-2.0 | 2,219 |
var caf_comp = require('caf_components');
exports.load = function($, spec, name, modules, cb) {
modules = modules || [];
modules.push(module);
caf_comp.load($, spec, name, modules, cb);
};
| cafjs/caf_session | test/hello/main.js | JavaScript | apache-2.0 | 204 |
// Copyright (c) 2017 Intel Corporation. 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... | minggangw/rclnodejs-1 | lib/entity.js | JavaScript | apache-2.0 | 1,020 |
/*!
* Start Bootstrap - Grayscale Bootstrap Theme (http://startbootstrap.com)
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
// jQuery to collapse the navbar on scroll
// jQuery for page scrolling feature - requires jQuery Easing plugin
$(function... | kaie-n/kaie-n.github.io | lennylah/js/grayscale.js | JavaScript | apache-2.0 | 788 |
angular.module("notesApp.enseignants.controllers", []).controller("EnseignantController", ["$scope", "$modal", "$log", "Enseignant",
function ($scope, $modal, $log, Enseignant) {
var deps = Enseignant.query(function () {
$scope.enseignants = deps;
$scope.totalItems = $scope.enseignan... | infotel-iss/notesBackend | src/main/webapp/modules/enseignant/js/controllers.js | JavaScript | apache-2.0 | 2,613 |
//>>built
define("dojox/editor/plugins/nls/zh/Breadcrumb",{nodeActions:"${nodeName} \u64cd\u4f5c",selectContents:"\u9009\u62e9\u5185\u5bb9",selectElement:"\u9009\u62e9\u5143\u7d20",deleteElement:"\u5220\u9664\u5143\u7d20",deleteContents:"\u5220\u9664\u5185\u5bb9",moveStart:"\u5c06\u5149\u6807\u79fb\u81f3\u5f00\u5934",m... | Caspar12/zh.sw | zh.web.site.admin/src/main/resources/static/js/dojo/dojox/editor/plugins/nls/zh/Breadcrumb.js | JavaScript | apache-2.0 | 413 |
'use strict';
var mongoose = require('mongoose');
var Book = new mongoose.Schema({
bookname: {
type: String,
require: true
},
isbn : {
type: String,
require : true
}
createdAt: {
type: Date,
'default': Date.now
}
}, {strict: true});
module.exports = mongoose.model('Book', Book);
| giboow/bibliworld | API/models/book.js | JavaScript | apache-2.0 | 320 |
/*
* Copyright 2012 Amadeus s.a.s.
* 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 i... | flongo/ariatemplates | src/aria/tools/inspector/InspectorDisplayScript.js | JavaScript | apache-2.0 | 4,847 |
/*!
* Copyright 2014 Apereo Foundation (AF) 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://opensource.org/licenses/ECL-2.0
*
* Unless required by applicab... | Coenego/avocet-ui | node_modules/oae-core/lhnavigation/js/lhnavigation.js | JavaScript | apache-2.0 | 14,879 |
Polymer({
is: 'pie-chart',
properties: {
title: '',
inputs: {
notify: true,
type: Array,
value: () => {
return [{
input: 'slice',
txt: 'Pick a dimension',
selectedValue: null,
selectedObjs: [],
selectedName: 'label',
uityp... | arunsoman/polymer-d3 | pie-chart/pie-chart.js | JavaScript | apache-2.0 | 4,691 |
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
ABOUT THIS NODE.JS EXAMPLE: This example works with the AWS SDK for JavaScript version 3 (v3),
which is available at https://github.com/aws/aws-sdk-js-v3. This example is in the 'AWS SDK for JavaScript v3 Develope... | awsdocs/aws-doc-sdk-examples | javascriptv3/example_code/ses/src/ses_createreceiptruleset.js | JavaScript | apache-2.0 | 1,343 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function GMAP_GET_ADDRESS_OBJECT(address,name,description,img)
{
var obj = new Object();
obj.address=address;
obj.name=name;
obj.description=description;
obj.img=img;
obj.poi... | mrinsss/Full-Repo | urbanzing/system/application/libraries/libgmap/codebase/google_map_main.js | JavaScript | apache-2.0 | 5,137 |
/**
* @license
* Copyright 2015 The Lovefield Project 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
... | digital-synapse/lovefield | testing/smoke_tester.js | JavaScript | apache-2.0 | 9,103 |
requirejs(['jquery', 'bootstrap', 'app/spreadsheet_utility', 'app/spreadsheet_equations', 'app/spreadsheet_calculator', 'app/spreadsheet_table'], function($, bootstrap, SpreadsheetUtility, SpreadsheetEquations, SpreadsheetCalculator, SpreadsheetTable) {
// The entire application is namespaced behind this App varia... | haiquangtran/SpreadsheetApp | js/app/spreadsheet_main.js | JavaScript | apache-2.0 | 5,755 |
function boss() {
return {h: 104, d: 8, a: 1};
}
function parse(block) {
var lines = block.split('\n');
return lines.slice(1).map(l=>l.match(/([a-z0-9+]+)[ ]+([0-9]+)[ ]+([0-9]+)[ ]+([0-9]+)/i));
}
var weapons = parse(`Weapons: Cost Damage Armor
Dagger 8 4 0
Shortsword 10 5 ... | farafonoff/Advent2016 | 2015/Puzzle21/01.js | JavaScript | apache-2.0 | 2,769 |
var allTestFiles = [];
// var TEST_REGEXP = /test.*\.js$/;
var TEST_REGEXP = /.*Spec\.js$/;
Object.keys(window.__karma__.files).forEach(function(file) {
if (TEST_REGEXP.test(file)) {
allTestFiles.push(file);
}
});
var dojoConfig = {
packages: [
{
name:"spec",
locati... | Esri/landscape-modeler-js | test/spec/main.js | JavaScript | apache-2.0 | 1,148 |
export default class CreateReferendum {
constructor(referendumId, name, proposal, options) {
this.referendumId = referendumId;
this.name = name; // mandatory
this.proposal = proposal; // mandatory
this.options = options; // mandatory
}
}; | kmalakoff/nota | src/commands/CreateReferendum.js | JavaScript | apache-2.0 | 259 |
const path = require('path');
const fs = require('fs');
const request = require('request');
const cachedRequest = require('cached-request')(request)
function resolveUrls(urls, callback) {
// console.log('resolveUrls', urls);
Promise.all(urls.map((url, idx) => {
return new Promise((resolve, reject) => {
c... | mabels/clavator | src/server/dispatcher/dice-ware-loader.js | JavaScript | apache-2.0 | 1,840 |
/*jshint strict: false */
/*global chrome */
var merge = require('./merge');
exports.extend = require('pouchdb-extend');
exports.ajax = require('./deps/ajax');
exports.createBlob = require('./deps/binary/blob'); // TODO: don't export this
exports.uuid = require('./deps/uuid');
exports.getArguments = require('argsarray'... | KlausTrainer/pouchdb | lib/utils.js | JavaScript | apache-2.0 | 10,959 |
var __UserInfo = null;
function GetUserInfo() {
if (__UserInfo == null) {
alert("您尚未登录,请重新登陆!");
location = "Login.html";
return;
}
return __UserInfo;
}
var dhMb = "<li>" +
" <a href='[URL]' target='mainpage' onclick='aSelect(this,2);'>" +
" ... | yiaslu/qbpDemo | WebUI/Controllers/index.js | JavaScript | apache-2.0 | 4,203 |