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 |
|---|---|---|---|---|---|
/*global describe, it, assert, clone */
/*jshint browser: true */
describe('clone', function () {
'use strict';
it('should clone an object', function () {
var obj = {
cats: true,
dogs: 2,
fish: [ 0, 1, 2 ]
};
var c = clone(obj);
obj.cats = false;
obj.dogs = 1;
obj.fish[0] = 'stuff';
assert.s... | dequelabs/simple-clone | test/index.js | JavaScript | mpl-2.0 | 1,753 |
initSidebarItems({"enum":[["CSSModificationAccess",""]],"fn":[["serialize_list",""]],"struct":[["CSSStyleDeclaration",""]]}); | susaing/doc.servo.org | script/dom/cssstyledeclaration/sidebar-items.js | JavaScript | mpl-2.0 | 125 |
/*global define*/
define('app/panels-time-active', ['moment', 'lodash', 'TelemetryPromises', 'DevToolsMetrics', 'DEVTOOLS_PANELS', 'LatestVersions', 'FIREFOX_RELEASES'],
function(moment, _, T, DevToolsMetrics, DEVTOOLS_PANELS, LatestVersions, FIREFOX_RELEASES) {
var metrics = DEVTOOLS_PANELS.map((m) => {
return ... | clarkbw/devtools-metrics | js/app/panels-time-active.js | JavaScript | mpl-2.0 | 2,838 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
// @flow
// Dependencies
import React, { Component } from "react";
import classnames from "classnames";
import ... | jasonLaster/debugger.html | src/components/PrimaryPanes/SourcesTree.js | JavaScript | mpl-2.0 | 9,730 |
var __windowDictionary = {
selectedGrammar: [],
selectedLanguage: "",
initialize: {
C: false,
Python: false
}
}
$(function() {
function updateTips( t ) {
tips
.text( t )
.addClass( "ui-state-highlight" );
setTimeout(function() {
tips.removeClass( "ui-state-highlight", 1500 );
... | Shin-Aska/s2sc.js | window/dictionary-settings.js | JavaScript | mpl-2.0 | 5,838 |
'use strict';
/**
* @module emitters/AdvancedEmitter
*/
var events = require('events');
var util = require('util');
var AdvancedEvent = process.requireApi('lib/emitters/AdvancedEvent.js');
/**
* Defines an AdvancedEmitter which wraps an EventEmitter.
*
* An AdvancedEmitter works pretty much the same as the defa... | veo-labs/openveo-api | lib/emitters/AdvancedEmitter.js | JavaScript | agpl-3.0 | 1,610 |
define(function(require) {
'use strict';
var PIXI = require('pixi');
var EnergyConverterView = require('views/energy-converter');
var Assets = require('assets');
var Constants = require('constants');
var ElectricalGenerator = Constants.ElectricalGenerator;
var ElectricalGeneratorView =... | Connexions/simulations | energy-forms-and-changes/src/js/views/energy-converter/electrical-generator.js | JavaScript | agpl-3.0 | 3,102 |
define([
'backbone.associations',
'../qt_basemodel'
],
function (Backbone,BaseModel) {
'use strict';
return BaseModel.extend({
defaults: {
url : '',
uuid : '',
title : '',
preset : '', //url du preset
sub_processor : '', //url du subprocessor
parameters_schema : '' //s... | Parisson/TimeSide | timeside/player/static/timeside2/app/scripts/core/models/client/analysis.js | JavaScript | agpl-3.0 | 430 |
/*
* Copyright © 2015-2019 the contributors (see Contributors.md).
*
* This file is part of Knora.
*
* Knora is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
*... | musicEnfanthen/Knora | salsah1/src/public/js/jquery.dateobj.js | JavaScript | agpl-3.0 | 24,825 |
import React from 'react';
import InputSelectImage from '../../../src/js/components/RegisterFields/InputSelectImage/InputSelectImage.js';
import { shallow, configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
configure({ adapter: new Adapter() });
describe('Test InputSelectImage component', () =>... | nekuno/client | __tests__/components/RegisterFields/InputSelectImage.test.js | JavaScript | agpl-3.0 | 1,402 |
#!/usr/bin/env node
var fs = require('fs');
var path = require('path');
var sys = require('sys');
var exec = require('child_process').exec;
var rootdir = process.argv[2];
if (rootdir) {
exec("gulp", function puts(error, stdout, stderr) {
sys.puts(error);
sys.puts(stderr);
sys.puts(stdout);... | blocktrail/blocktrail-wallet | hooks/before_prepare/010_gulp.js | JavaScript | agpl-3.0 | 392 |
'use strict';
var util = require('util');
var Promise = require('bluebird');
var uuid = require('../../utils/uuid');
var errors = require('../../errors');
var EmbeddedModel = require('../../EmbeddedModel');
// Schema Validator
// ----------------
var validator = require('jjv')();
vali... | mike-marcacci/gandhi | lib/api/models/Cycle/Status.js | JavaScript | agpl-3.0 | 2,129 |
function humanize(string) {
string = string.replace(/-/g, ' ');
string = string.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
return string;
}
function randomString() {
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
var st... | ronanguilloux/Javascript-helpers | String.js | JavaScript | agpl-3.0 | 1,257 |
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import $ from 'jquery'
import _ from 'lodash'
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap/dist/js/bootstrap.min.js'
re... | elebymax/Scheduler | src/main.js | JavaScript | agpl-3.0 | 448 |
/*=========================================================================================
File Name: stacked-clustered-column.js
Description: echarts stacked clustered column chart
----------------------------------------------------------------------------------------
Item Name: Stack - Responsive Ad... | Zahajamaan/Fudulbank | core/static/stack/js/scripts/charts/echarts/bar-column/stacked-clustered-column.js | JavaScript | agpl-3.0 | 5,461 |
// @flow
import { createSelector, type OutputSelector } from 'reselect'
import { sortOrderSort } from 'utils'
import type { EntityState, WrappedEntityState } from 'ducks/entities'
import type { Player, Character, fullQc, Battlegroup } from 'utils/flow-types'
export type entitySelector<T> = OutputSelector<WrappedEntity... | makzu/lotcastingatemi | app/javascript/lca/selectors/entities.js | JavaScript | agpl-3.0 | 2,197 |
const HTTP_TIMEOUT = 30000;
export function httpAsync(theUrl, callback, type, payload, errorCB) {
const xmlHttp = new XMLHttpRequest();
const timeout = setTimeout(() => {
xmlHttp.abort();
if (typeof errorCB === 'function') errorCB();
}, HTTP_TIMEOUT);
xmlHttp.timeout = HTTP_TIMEOUT; //... | TheMegaTB/FINDTracker | http/src/js/api/networking.js | JavaScript | agpl-3.0 | 1,184 |
/*
*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL it... | ONLYOFFICE/web-apps | apps/documenteditor/main/app/collection/EquationGroups.js | JavaScript | agpl-3.0 | 1,970 |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { click, fillIn, render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { setupIntl } from 'ember-intl/test-support';
import { setupMirage } from 'ember-cli-mirage/test-support';
import { Respon... | appknox/irene | tests/integration/components/registration-test.js | JavaScript | agpl-3.0 | 6,538 |
/* Copyright (c) 2015 - 2016 CoNWeT Lab., Universidad Politécnica de Madrid
*
* This file belongs to the business-ecosystem-logic-proxy of the
* Business API Ecosystem
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* publi... | FIWARE-TMForum/business-ecosystem-logic-proxy | public/resources/core/js/services/customer-account.service.js | JavaScript | agpl-3.0 | 3,853 |
/*
Clashing Coders RPG Platform - The platform used for Creamfinance's first coding contest.
Copyright (C) 2016 Florian Proksch
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundati... | Creamfinance/clashing-coders-rpg | game/world.js | JavaScript | agpl-3.0 | 2,538 |
/*
Agora Forum Software
Copyright (C) 2016 Gregory Sartucci
License: AGPL-3.0, Check file LICENSE
*/
Package.describe({
name: 'agoraforum:core',
version: '0.1.3',
summary: 'Graph-based forum',
git: 'https://github.com/Agora-Project/agora-meteor',
documentation: 'README.md'
});
Npm.depe... | Agora-Project/agora-meteor | package.js | JavaScript | agpl-3.0 | 3,656 |
const registry = (() => {
if (!process.env.EXTENSION_DATA) {
// console.log("no EXTENSION_DATA found");
return {};
}
const extensions = typeof process.env.EXTENSION_DATA === "string" ?
JSON.parse(process.env.EXTENSION_DATA) : process.env.EXTENSION_DATA;
Object.keys(extensions).forEach((key) => {
... | nextstrain/auspice | src/util/extensions.js | JavaScript | agpl-3.0 | 898 |
/*
* get_iframes_content.js
*
* -> returns as a string all innerHTML from current document
* as well as from all iframes present in the document
*/
var phantom_iframes = document.getElementsByTagName('frame'),
iframes_content = '',
iframe_content,
ph_i, ph_j;
if (!phantom_iframes.length) {
phanto... | medialab/hyphe | hyphe_backend/crawler/hcicrawler/spiders/js/get_iframes_content.js | JavaScript | agpl-3.0 | 870 |
'use strict';
angular.module('impactApp')
.factory('initQuestionScope', function() {
return function(scope, question, prevStep, nextStep, data, previousModel, sectionModel) {
scope.question = question;
scope.nextStep = nextStep;
scope.hideBack = data && data.hideBack;
scope.isFirstQuestio... | sgmap/impact | client/components/question/question.controller.js | JavaScript | agpl-3.0 | 7,773 |
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
'bounds': {
'width': 400,
'height': 425
}
});
}); | nmunro/Jerusalem | background.js | JavaScript | agpl-3.0 | 169 |
/**
* @license MIT
*/
(function(window, document, undefined) {'use strict';
/**
* Flow.js is a library providing multiple simultaneous, stable and
* resumable uploads via the HTML5 File API.
* @param [opts]
* @param {number} [opts.chunkSize]
* @param {bool} [opts.forceChunkSize]
* @param {number}... | XIMDEX/ximdex | public_xmd/vendors/flow/ng-flow.js | JavaScript | agpl-3.0 | 44,312 |
var clover = new Object();
// JSON: {classes : [{name, id, sl, el, methods : [{sl, el}, ...]}, ...]}
clover.pageData = {"classes":[{"el":119,"id":216512,"methods":[{"el":48,"sc":2,"sl":47},{"el":53,"sc":2,"sl":50},{"el":58,"sc":2,"sl":55},{"el":62,"sc":2,"sl":60},{"el":66,"sc":2,"sl":64},{"el":71,"sc":2,"sl":68},{"el... | cm-is-dog/rapidminer-studio-core | report/html/com/rapidminer/operator/generator/RegressionFunction.js | JavaScript | agpl-3.0 | 1,197 |
import Controller from '@ember/controller';
import modal from '../utils/modal';
import i18n from '../utils/i18n';
import session from '../utils/session';
import persistence from '../utils/persistence';
import CoughDrop from '../app';
import { later as runLater } from '@ember/runloop';
export default Controller.extend(... | CoughDrop/coughdrop | app/frontend/app/controllers/organization.js | JavaScript | agpl-3.0 | 2,958 |
/**
* Created by
* Pratish Shrestha <pratishshrestha@lftechnology.com>
* on 2/15/16.
*/
;(function () {
'use strict';
//React and Redux dependencies
var React = require('react');
var Link = require('react-router').Link;
var connect = require('react-redux').connect;
var bindActionCreators =... | leapfrogtechnology/vyaguta-resource | frontend/src/js/components/budget-type/BudgetTypeList.js | JavaScript | agpl-3.0 | 6,104 |
define({
input: {
eingabe: {
gegenstandswert: 0
},
gebuehr: 0,
hebesatz: {
mittelwert: "",
nenner: undefined,
zaehler: undefined,
zaehler_max: undefined,
zaehler_min: undefined
},
paragraph: "8",
paragraph16: {
checked: false
},
tabelle: "... | ohaz/amos-ss15-proj1 | FlaskWebProject/static/scripts/rechner/spec/steuerberater-verguetung/testData1.js | JavaScript | agpl-3.0 | 763 |
!function($, wysi) {
"use strict";
var tpl = {
"font-styles": function(locale, options) {
var size = (options && options.size) ? ' btn-'+options.size : '';
return "<li class='dropdown'>" +
"<a class='btn dropdown-toggle" + size + "' data-toggle='dropdown' href='#'>... | andrewkrug/artfully_ose | app/assets/javascripts/bootstrap-wysihtml5.js | JavaScript | agpl-3.0 | 22,846 |
/******************************************************************************
Copyright Härnösands kommun(C) 2014
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version ... | Sundsvallskommun/OpenEMap-Admin-WebUserInterface | src/main/javascript/view/mapconfiguration/tools/details/FullExtent.js | JavaScript | agpl-3.0 | 1,441 |
/**
* Babel JavaScript Support
*
* Copyright (C) 2008-2011 Edgewall Software
* All rights reserved.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at http://babel.edgewall.org/wiki/License.
*
* This ... | beeverycreative/BEEweb | src/octoprint/static/js/lib/babel.js | JavaScript | agpl-3.0 | 4,740 |
Room.prototype.checkBlocked = function() {
let exits = Game.map.describeExits(this.name);
let room = this;
let roomCallback = function(roomName) {
let costMatrix = new PathFinder.CostMatrix();
let structures = room.find(FIND_STRUCTURES);
for (let structure of structures) {
costMatrix.set(structu... | Somotaw/screeps | src/prototype_room_external.js | JavaScript | agpl-3.0 | 15,080 |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.provide("erpnext.accounts");
frappe.provide("erpnext.journal_entry");
frappe.ui.form.on("Journal Entry", {
setup: function(frm) {
frm.get_field('accounts').grid.editable_fields =... | anandpdoshi/erpnext | erpnext/accounts/doctype/journal_entry/journal_entry.js | JavaScript | agpl-3.0 | 15,981 |
/**
* Created by
* Pratish Shrestha <pratishshrestha@lftechnology.com>
* on 4/19/16.
*/
var jsdom = require('jsdom').jsdom;
var exposedProperties = ['window', 'navigator', 'document', 'localStorage'];
global.document = jsdom('');
global.window = document.defaultView;
global.localStorage = {getItem: ()=>{}, setIt... | leapfrogtechnology/vyaguta-resource | frontend/test/setup.js | JavaScript | agpl-3.0 | 850 |
var mongoose = require('mongoose');
var es = require('event-stream');
var config = require('../lib/config/config');
var _ = require('lodash');
require('../lib/config/mongoose')(mongoose, config);
var Situation = mongoose.model('Situation');
Situation.find({ status: 'test' }).stream()
.pipe(es.map(function (situa... | sgmap/mes-aides-api | migrations/rsa-isolement.js | JavaScript | agpl-3.0 | 1,192 |
/*
* Copyright 2017 the Isard-vdi project authors:
* Josep Maria Viñolas Auquer
* Alberto Larraz Dalmases
* License: AGPLv3
*/
var href = location.href;
url=href.match(/([^\/]*)\/*$/)[1];
if (url!="Desktops") {
kind='template'
} else {
$('#global_actions').css('display','block');
kind='desktop'
}... | isard-vdi/isard | webapp/webapp/webapp/static/admin/js/domains.js | JavaScript | agpl-3.0 | 41,015 |
import React from 'react'
import PropTypes from 'prop-types'
import { ToastContainer } from 'react-toastify'
import { createBrowserHistory } from 'history'
import { Router, Redirect, Switch, Route, useLocation } from 'react-router'
import { BondeSessionProvider, BondeSessionUI } from 'bonde-core-tools'
import { Loading... | nossas/bonde-client | packages/bonde-admin-canary/src/Root/index.js | JavaScript | agpl-3.0 | 2,346 |
/**
* Created with IntelliJ IDEA.
* User: issa
* Date: 3/16/14
* Time: 9:08 PM
* To change this template use File | Settings | File Templates.
*/
function DistrictStockedOutController($scope,$location,$routeParams,dashboardMenuService,messageService,StockedOutFacilitiesByDistrict) {
$scope.filterObj... | vimsvarcode/elmis | modules/openlmis-web/src/main/webapp/public/js/dashboard/controller/district-stocked-out-controller.js | JavaScript | agpl-3.0 | 5,612 |
import ChatAppDispatcher from '../dispatcher/ChatAppDispatcher';
import ChatConstants from '../constants/ChatConstants';
import * as ChatMessageUtils from '../utils/ChatMessageUtils';
import { EventEmitter } from 'events';
import ThreadStore from './ThreadStore';
let ActionTypes = ChatConstants.ActionTypes;
let CHANGE... | madhavrathi/chat.susi.ai | src/stores/MessageStore.js | JavaScript | lgpl-2.1 | 4,603 |
(function($,v){
v=xe.getApp('validator')[0];if(!v)return;
v.cast('ADD_RULE', ['signed_number', /-?[0-9]+/]);
v.cast('ADD_FILTER',['insertModuleSetup', {'module_srls':{required:true},'module_category_srl':{rule:'number'},'layout_srl':{rule:'signed_number'}}]);
v.cast('ADD_MESSAGE',['isnull','%s 값은 필수입니다.']);
v.cast('ADD... | umjinsun12/dngshin | files/cache/ruleset/a0eca23a020d7bad0734c31fc17645fb.ko.js | JavaScript | lgpl-2.1 | 1,970 |
/*
* Copyright (C) 2008 Apple Inc. All Rights Reserved.
* Copyright (C) 2011 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the ... | youfoh/webkit-efl | Source/WebCore/inspector/front-end/ScriptsPanel.js | JavaScript | lgpl-2.1 | 46,222 |
/**
* Site Members Groups component GET method
*/
function main()
{
var siteId, theUrl, json, membership, data;
siteId = page.url.templateArgs.site;
// get the membership info for the current user in the current site
theUrl = "/api/sites/" + siteId + "/memberships/" + encodeURIComponent(user.name)... | loftuxab/community-edition-old | projects/slingshot/config/alfresco/site-webscripts/org/alfresco/components/site-members/site-groups.get.js | JavaScript | lgpl-3.0 | 2,046 |
import {Inject, Injectable} from 'app/app';
import {RestClient} from 'services/rest-client';
import {PromiseAdapter} from 'adapters/angular/promise-adapter';
import data from 'sandbox/services/rest/object-browser-service.data.json!';
@Injectable()
@Inject(RestClient, PromiseAdapter)
export class ObjectBrowserRestServi... | SirmaITT/conservation-space-1.7.0 | docker/sep-ui/sandbox/services/rest/object-browser-service.stub.js | JavaScript | lgpl-3.0 | 667 |
/**
* Copyright (C) 2005-2015 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco 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 ... | viqsoft/Aikau | aikau/src/main/resources/alfresco/forms/controls/NumberSpinner.js | JavaScript | lgpl-3.0 | 7,431 |
define(
[],
function newItemController() {
return function newItemController($log, $scope, $state) {
$log.debug('newItemController');
$scope.title = 'Nowa pozycja';
$scope.itemTypes = [
{
view : 'sg.new.newPlace',
... | kornicameister/Pebudzenie | www/js/view/home/newItem/newItemController.js | JavaScript | lgpl-3.0 | 649 |
function MbaSelfAccessor(){
}
MbaSelfAccessor.prototype = new MbaAccessor();
MbaSelfAccessor.prototype.constructor = MbaSelfAccessor;
MbaSelfAccessor.prototype.getModelValue = function(model){
return model;
};
MbaSelfAccessor.prototype.setModelValue = function(model, value){
throw new Error('setModelValue not... | amoissant/mambajs | Mamba/js/MbaSelfAccessor.js | JavaScript | lgpl-3.0 | 491 |
isc.DataSource.create({
ID:"employees",
dataURL:"[ISOMORPHIC]/system/reference/inlineExamples/trees/dataBinding/employeesDataChildrenArrays.xml",
recordXPath:"/Employees/employee",
fields:[
{name:"Name"},
{name:"Job"},
{name:"directReports", childrenProperty:true}
]
});
isc... | kylemwhite/isc | isomorphic_11.1p/system/reference/inlineExamples/trees/dataBinding/loadXMLChildrenArrays.js | JavaScript | lgpl-3.0 | 632 |
const kevoree = require('kevoree-library');
const modelValidator = require('kevoree-validator');
const monkeyPatch = require('./util/monkey-patch');
// statements list
const statements = {
addRepo: require('./statements/addRepo'),
add: require('./statements/add'),
move: require('./statements/move'),
attach: re... | kevoree/kevoree-js | tools/kevoree-kevscript/lib/interpreter.js | JavaScript | lgpl-3.0 | 4,996 |
var assert = require('assert');
var path = false;
var path2 = false;
// Normal switch
var test = "B";
switch (test) {
case "A":
assert(false);
break;
case "B":
path = true;
break;
default:
assert(false);
}
assert(path)
// Strict equality in switch test
path = false;
var test2 = 0;
switch (test2) ... | PaulBernier/castl | test/switch.js | JavaScript | lgpl-3.0 | 2,489 |
/// <reference path="../references.d.ts" />
/// <reference path="./gameManager.service.ts" />
/// <reference path="../kdarts.ts" />
var kdarts;
(function (kdarts) {
var game;
(function (game) {
var X01SidenavController = (function () {
function X01SidenavController($state, $mdSidenav, $mdDia... | tiborbotos/kdarts | archive/public/kdarts2/scripts/game/x01sidenav.controller.js | JavaScript | lgpl-3.0 | 1,622 |
var gui={};
(function() {
try {
var open = require("open");
var fs = require("fs");
} catch(e) {
var open = function(path) {
window.open("file://"+path);
}
}
var state = document.getElementById("state"),
statemsg = document.getElementById("statemsg"),
progress = document.getElementById("progress"),... | lovasoa/doublons-js | src/gui.js | JavaScript | lgpl-3.0 | 3,002 |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true... | mWater/mwater-forms | lib/answers/NumberAnswerComponent.js | JavaScript | lgpl-3.0 | 2,266 |
/*
* Copyright 2013, Nexedi SA
*
* This program is free software: you can Use, Study, Modify and Redistribute
* it under the terms of the GNU General Public License version 3, or (at your
* option) any later version, as published by the Free Software Foundation.
*
* You can also Link and Combine this program wit... | nexedi/jio | src/queries/parser-end.js | JavaScript | lgpl-3.0 | 921 |
/*
* 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/coding-rules/models/rules.js | JavaScript | lgpl-3.0 | 1,878 |
var searchData=
[
['linqtosqlrepository',['LinqToSqlRepository',['../class_catharsis_1_1_repository_1_1_linq_to_sql_repository_3_01_e_n_t_i_t_y_01_4.html#a9203aa99de2433032df5e63c5bd74f83',1,'Catharsis.Repository.LinqToSqlRepository< ENTITY >.LinqToSqlRepository(string connectionString)'],['../class_catharsis_1... | prokhor-ozornin/Catharsis.NET.Repository | doc/html/search/all_6.js | JavaScript | lgpl-3.0 | 739 |
BBBx.window.ScheduledMeeting = function (config) {
config = config || {};
var preloadSlides = MODx.load({
xtype: 'modx-combo-browser',
browserEl: 'modx-browser',
fieldLabel: 'preloadSlides',
name: 'preloadSlides',
anchor: '100%'
});
preloadSlides.on('select', func... | virtudraft/bbbx | www/assets/components/bbbx/js/mgr/widgets/window.scheduledmeeting.js | JavaScript | lgpl-3.0 | 26,890 |
var searchData=
[
['hisconst',['HISConst',['../namespaceglados_1_1loaders.html#ac429e94c883bc55092765c8bf14dbe29',1,'glados::loaders']]]
];
| HZDR-FWDF/RISA | docs/search/enums_2.js | JavaScript | lgpl-3.0 | 142 |
import compose from 'koa-compose';
import webpack from 'webpack';
import { devMiddleware, hotMiddleware } from 'koa-webpack-middleware';
// Need to mock these files for development, because our Pug template
// will be looking for them, but they're actually all bundled up into one
// file during development with webpa... | lostpebble/koa-mobx-react-starter | src/server/middleware/developmentMiddleware.js | JavaScript | unlicense | 1,119 |
var esprima = require('esprima');
return esprima.parse(
"function foo(x, y) {\n" +
" var z = x + y;\n" +
" z++;\n" +
" return z;\n" +
"}\n"
); | dfcreative/esdom | test/fixture/simpleFunction.js | JavaScript | unlicense | 166 |
/*!
* Ext JS Library 3.4.0
* Copyright(c) 2006-2011 Sencha Inc.
* licensing@sencha.com
* http://www.sencha.com/license
*/
// private
// This is a support class used internally by the Grid components
Ext.grid.HeaderDragZone = Ext.extend(Ext.dd.DragZone, {
maxDragWidth: 120,
constructor : fun... | ahwxl/cms | icms/src/main/webapp/res/extjs/src/widgets/grid/ColumnDD.js | JavaScript | apache-2.0 | 6,400 |
'use strict';
process.stdin.resume();
process.stdin.setEncoding('utf-8');
let inputString = '';
let currentLine = 0;
process.stdin.on('data', inputStdin => {
inputString += inputStdin;
});
process.stdin.on('end', _ => {
inputString = inputString.trim().split('\n').map(string => {
return string.trim(... | MithileshCParab/HackerRank-10DaysOfStatistics | Tutorials/10 Days Of Javascript/Day 3/try_catch_finally.js | JavaScript | apache-2.0 | 907 |
/* @flow */
import React, { PureComponent } from 'react';
import { checkCompatibility } from '../api';
import CompatibilityScreen from '../start/CompatibilityScreen';
export default class CompatibilityChecker extends PureComponent {
state = {
compatibilityCheckFail: false,
};
componentDidMount() {
chec... | nashvail/zulip-mobile | src/boot/CompatibilityChecker.js | JavaScript | apache-2.0 | 634 |
var nock = require('nock')
//, sinon = require('sinon')
, chai = require('chai')
, fixtures = require('./portal-fixtures')
, EsriPortal = require('../index');
var expect = chai.expect;
var scope;
var prodUrl = 'https://www.arcgis.com';
describe('search ', function () {
beforeEach(function()... | dbouwman/esri-portal-api | test/search.spec.js | JavaScript | apache-2.0 | 3,577 |
/**
* Copyright 2017 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | wjfang/amphtml | ads/google/imaVideo.js | JavaScript | apache-2.0 | 33,640 |
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview The class representing a cursor.
* Used primarily for keyboard navigation.
* @author aschmiedt@google.com (Abby Schmiedt)
*/
'use strict';
goog.provide('Blockly.Cursor');
goog.require('Blockly.ASTNode');
g... | mark-friedman/blockly | core/keyboard_nav/cursor.js | JavaScript | apache-2.0 | 3,270 |
// Setup Canvas
var canvas = document.body.appendChild( document.createElement( 'canvas' ) );
// var canvas = document.body.appendChild( document.createElement( 'canvas' ) );
// canvas.style.zIndex = 1;
// Get WebGL Context
var gl = require('gl-context')( canvas, { preserveDrawingBuffer: true }, render );
// Import W... | rezaali/webgl-sketches | ycam/ycam.js | JavaScript | apache-2.0 | 9,099 |
// CString class.
// Mostly mirrors server/dtypes/cstring/cstring.go.
// By design, satisfies the require('eddie').Model interface.
var _ = require('lodash');
var inherits = require('inherits');
var cvalue = require('./cvalue');
var lib = require('../lib');
///////////////////////////////////////////////////////////... | asadovsky/cdb | client/dtypes/cstring.js | JavaScript | apache-2.0 | 8,759 |
import {QueryService} from '../../../src/mapboxgl/services/QueryService';
import {QueryByBoundsParameters} from '../../../src/common/iServer/QueryByBoundsParameters';
import {QueryByDistanceParameters} from '../../../src/common/iServer/QueryByDistanceParameters';
import {QueryBySQLParameters} from '../../../src/common/... | SuperMap/iClient9 | test/mapboxgl/services/QueryServiceSpec.js | JavaScript | apache-2.0 | 11,464 |
// @link http://schemas.wbeme.com/json-schema/eme/solicits/event/solicit-updated/1-0-0.json#
import EmeAccountsAccountRefV1Mixin from '@wbeme/schemas/eme/accounts/mixin/account-ref/AccountRefV1Mixin';
import GdbotsNcrNodeUpdatedV1Mixin from '@gdbots/schemas/gdbots/ncr/mixin/node-updated/NodeUpdatedV1Mixin';
import Gdbo... | wb-eme/schemas | build/js/src/eme/solicits/event/SolicitUpdatedV1.js | JavaScript | apache-2.0 | 1,234 |
/* Yukon Admin all functions
*
* Content:
*
* 1. Helpers
* 2. Common functions
* 3. Plugins
*
* */
$(function () {
// bootstrap custom functions
yukon_bs_custom.accordion_active_class();
yukon_bs_custom.dropdown_click();
yukon_bs_custom.tooltips_init();
yukon_bs_cust... | ubiquitous-computing-lab/Mining-Minds | supporting-layer/descriptive-analytics/src/assets/js/yukon_all.js | JavaScript | apache-2.0 | 89,162 |
/**
* Copyright 2017 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | google/amp-toolbox | optimizer/demo/simple/index.js | JavaScript | apache-2.0 | 3,789 |
import * as utils from 'src/utils';
import * as url from 'src/url';
import {registerBidder} from 'src/adapters/bidderFactory';
import {NATIVE, VIDEO} from 'src/mediaTypes';
/**
* Adapter for requesting bids from adxcg.net
* updated to latest prebid repo on 2017.10.20
*/
const BIDDER_CODE = 'adxcg';
const SUPPORTED... | atomx/Prebid.js | modules/adxcgBidAdapter.js | JavaScript | apache-2.0 | 4,925 |
var nearby = function(){
navigator.geolocation.getCurrentPosition(
// success
highlight
// error
,function(position){
console.log('Error occurred. Error code: ' + error.code);
}
);
}
var highlight = function(currentPosition, types){
if (!types)
types = ['car_dealer', 'car_rental', 'c... | tiefenauer/dudewheresmycar | app/scripts/nearby.js | JavaScript | apache-2.0 | 1,280 |
/*jslint node:true, browser:true */
'use strict';
/*
Copyright 2015 Enigma Marketing Services Limited
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/li... | getlackey/framework | make-title.js | JavaScript | apache-2.0 | 715 |
/* global error:false */
/* global done:false */
/* global PaymentRequest:false */
/**
* Updates details based on shipping address.
* @param {object} details - The details to update.
* @param {ShippingAddress} addr - The shipping address.
* @return {object} The updated details.
*/
function updateDetails(details, ... | rsolomakhin/rsolomakhin.github.io | 52/pr/us/pr.js | JavaScript | apache-2.0 | 3,278 |
// Copyright 2016, 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 wr... | pcostell/nodejs-docs-samples | functions/datastore/index.js | JavaScript | apache-2.0 | 4,757 |
/**
* @license
* Copyright 2014 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | nishant8BITS/lovefield | lib/query/insert_builder.js | JavaScript | apache-2.0 | 3,243 |
// This snippet file was generated by processing the source file:
// ./storage-next/list-files.js
//
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.
// [START storage_list_paginate_modular]
import { getStorage, ref, list } from "firebase/storage";
async function pageTokenEx... | firebase/snippets-web | snippets/storage-next/list-files/storage_list_paginate.js | JavaScript | apache-2.0 | 987 |
function toggleMenuItem(item, selector) {
if ($(item).parent().next(selector).hasClass('in')) { { $(selector).collapse('hide'); } } else { { $(selector).collapse('show'); } };
}
function refreshView() {
RaiseXafCallback(globalCallbackControl, "", "XafParentWindowRefresh", "", false);
} | Terricks/XAFBootstrap | XAF Bootstrap/Content/bootstrap_js/bootstrap-dx.js | JavaScript | apache-2.0 | 298 |
process.stdin.pipe(process.stdout); | iproduct/course-node-express-react | 05-nodejs-demo/readable0.js | JavaScript | apache-2.0 | 37 |
var class_tri_1_1_graphic_1_1_model =
[
[ "Model", "class_tri_1_1_graphic_1_1_model.html#a57f8abc051d104b925e6a2cbb253b56c", null ],
[ "GetNormal", "class_tri_1_1_graphic_1_1_model.html#a086a31e07b32371a5d7d6c4629853cb9", null ],
[ "GetUV", "class_tri_1_1_graphic_1_1_model.html#a64da67596d9650b41ce0dd60f90e... | TriantEntertainment/TritonEngine | docs/html/class_tri_1_1_graphic_1_1_model.js | JavaScript | apache-2.0 | 535 |
/**
* Copyright 2017 Telerik AD
* ... | xiangxik/castle-platform | castle-themes/castle-theme-uikit/src/main/resources/META-INF/bower_components/kendo-ui/src/js/cultures/kendo.culture.vi.js | JavaScript | apache-2.0 | 6,655 |
// Copyright 2013 Traceur 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 applicable law or agreed ... | rwaldron/traceur-compiler | src/runtime/modules.js | JavaScript | apache-2.0 | 2,054 |
/*!
* ${copyright}
*/
sap.ui.define([
"jquery.sap.global",
"./_Helper",
"./_MetadataConverter"
], function (jQuery, _Helper, _MetadataConverter) {
"use strict";
var sEdmxNamespace = "http://docs.oasis-open.org/odata/ns/edmx",
V4MetadataConverter,
oAnnotationConfig = _MetadataConverter.oAnnotationConfig,
... | nzamani/openui5 | src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_V4MetadataConverter.js | JavaScript | apache-2.0 | 19,617 |
goog.module('grrUi.forms.outputPluginDescriptorFormDirective');
goog.module.declareLegacyNamespace();
const apiService = goog.requireType('grrUi.core.apiService');
const reflectionService = goog.requireType('grrUi.core.reflectionService');
/**
* Controller for OutputPluginDescriptorFormDirective.
* @unrestricted
... | google/grr | grr/server/grr_response_server/gui/static/angular-components/forms/output-plugin-descriptor-form-directive.js | JavaScript | apache-2.0 | 3,457 |
//Info-Content
function getBivesData(v1, v2, command, place){
$(".bivesNavi").hide();
$(".bivesResult").hide();
$('#loading').show();
d3.selectAll(place + ' > *').remove();
$("#bivesInfo").show ();
var dataCatch;
if(sessionStorage.getItem(v1.model+"_"+v1.versionid+"_"+v2.versionid) != null){
dataCatch = ses... | SemsProject/MOST | bives/bivesTool.js | JavaScript | apache-2.0 | 1,506 |
import { Template } from 'meteor/templating';
import { ReactiveDict } from 'meteor/reactive-dict';
import { _ } from 'meteor/underscore';
import { Beaches, BeachesSchema } from '/imports/api/items/beach/beach-item.js';
import { FlowRouter } from 'meteor/kadira:flow-router';
import { Profiles } from '/imports/api/profil... | chasehawaii/chasehawaii | app/imports/ui/components/items/create-beach-form.js | JavaScript | apache-2.0 | 3,843 |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("distfs/codemirror/lib/codemirror"));
else if (typeof define == "function" && defi... | feaster83/elasticsearch-distfs | src/_site/codemirror/mode/apl/apl.js | JavaScript | apache-2.0 | 4,797 |
var Portfolio = function () {
this.performance = [];
this.dateToIndexMap = [];
var index = 0;
for (var i = 0; i <= 30; i++) {
var date = moment().subtract(30 - i, 'days');
if (date.day() != 0 && date.day() != 6) {
var formattedDate = date.format("YYYY-MM-DD");
t... | vaadin-kim/stockwatcher-polymer | src/portfolio.js | JavaScript | apache-2.0 | 4,619 |
export default {
name: "Zena",
x: 0,
y: 0,
control: "us",
zone: "green",
star: {
spectrum: "K",
temperature: "0",
size: "V"
},
planets: [
{
name: "Marider",
shape: "terrestrial",
size: "medium",
atmosphere: "trace",
hydrosphere: "dry",
biosphere: "remn... | almightynassar/BrokenStarsAndroid | src/data/regions/us-zena.js | JavaScript | apache-2.0 | 2,680 |
import React from "react"
import PropTypes from "prop-types"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import Link from "./Link"
const BoxNav = ({ navItems }) => (
<div className="card-footer">
{navItems.map((navItem, navIndex) => (
<Link href={navItem.link} className="card-footer... | aokashi/aokashi_home | src/components/BoxNav.js | JavaScript | apache-2.0 | 767 |
module.exports = checkQuote
function checkQuote(context) {
var marker = context.options.quote || '"'
if (marker !== '"' && marker !== "'") {
throw new Error(
'Cannot serialize title with `' +
marker +
'` for `options.quote`, expected `"`, or `\'`'
)
}
return marker
}
| kyleterry/sufr | pkg/ui/node_modules/mdast-util-to-markdown/lib/util/check-quote.js | JavaScript | apache-2.0 | 309 |
"use strict";
/** @test {index} */
describe("index", () => {
});
| Product-Foundry/business-elements-angular | test/index_test.js | JavaScript | apache-2.0 | 66 |
cordova.define("org.jshybugger.cordova.jsHybuggerLoader", function(require, exports, module) { var newLocation = typeof(JsHybuggerNI) !== 'undefined' ? JsHybuggerNI.getDebugUrl(window.location.toString()) : window.location.toString();
if (newLocation != window.location.toString()) {
console.log('jsHybugger redirected ... | levexis/phonegap-fun | platforms/android/assets/www/plugins/org.jshybugger.cordova/www/jsHybuggerLoader.js | JavaScript | apache-2.0 | 381 |
describe("", function() {
var rootEl;
beforeEach(function() {
rootEl = browser.rootEl;
browser.get("build/docs/examples/example-example25/index-jquery.html");
});
it('should allow user expression testing', function() {
element(by.css('.expressions button')).click();
var lis = element(by.cs... | LADOSSIFPB/nutrif | nutrif-web/lib/angular/docs/ptore2e/example-example25/jquery_test.js | JavaScript | apache-2.0 | 492 |
var app = angular.module('mobile');
app.controller('CouponSelect', function ($scope, ShareSvc, UserCouponSvc) {
document.title = '我的优惠券';
ShareSvc.user().then(function (user) {
UserCouponSvc.listPaged(user._id, CouponStatus.Usable, 1).then(function (userCoupons) {
$scope.userCoupons = user... | wade-yifeng/soofruit | mobile/coupon_select.ctrl.js | JavaScript | apache-2.0 | 367 |
console.warn( "THREE.LineGeometry: As part of the transition to ES6 Modules, the files in 'examples/js' were deprecated in May 2020 (r117) and will be deleted in December 2020 (r124). You can find more information about developing using ES6 Modules in https://threejs.org/docs/index.html#manual/en/introduction/Import-vi... | webmaster444/webmaster444.github.io | other/mypointcloud/three/examples/js/lines/LineGeometry.js | JavaScript | apache-2.0 | 2,196 |