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 |
|---|---|---|---|---|---|
/*
* Copyright (C) 2019 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... | djbender/canvas-lms | packages/canvas-rce/src/rce/plugins/instructure_documents/components/DocumentsPanel.js | JavaScript | agpl-3.0 | 3,378 |
/*!
* Handsontable 0.13.1
* Handsontable is a JavaScript library for editable tables with basic copy-paste compatibility with Excel and Google Docs
*
* Copyright (c) 2012-2014 Marcin Warpechowski
* Copyright (c) 2015 Handsoncode sp. z o.o. <hello@handsontable.com>
* Licensed under the MIT license.
* http://hands... | Ebinator/blueprint-today | app/client/lib/handsontable/handsontable.full.js | JavaScript | agpl-3.0 | 715,178 |
// SPOTUS setting for FCKEditor
// CHANGE FOR APPS HOSTED IN SUBDIRECTORY
FCKRelativePath = '';
// section modified image dialog without the upload and advanced tabs
FCKConfig.LinkDlgHideTarget = true ;
FCKConfig.LinkDlgHideAdvanced = true ;
FCKConfig.ImageDlgHideLink = true ;
FCKConfig.ImageDlgHideAdvanc... | spot-us/spot-us | public/javascripts/fckcustom.js | JavaScript | agpl-3.0 | 1,174 |
'use strict';
var AdvancedSearchService = {
getAdvancedSearchFilter: function(searchfilter){
var filter='';
if(searchfilter.sensingFrom && searchfilter.sensingTo)
{
filter += 'beginPosition:['+ this.formatDate(searchfilter.sensingFrom) +
' TO ' + this.formatToDate(search... | calogera/DataHubSystem | client/html/src/main/frontend/app/scripts/services/advanced-search-service.js | JavaScript | agpl-3.0 | 2,558 |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... | laclasse-com/service-portail | public/app/node_modules/@uirouter/core/lib/vanilla/pushStateLocationService.js | JavaScript | agpl-3.0 | 3,608 |
import {
REBLOG_REQUEST,
REBLOG_FAIL,
FAVOURITE_REQUEST,
FAVOURITE_FAIL,
} from '../actions/interactions';
import {
STATUS_MUTE_SUCCESS,
STATUS_UNMUTE_SUCCESS,
STATUS_REVEAL,
STATUS_HIDE,
} from '../actions/statuses';
import {
VOTE_SUCCESS,
SET_ENQUETE_TIMEOUT,
} from '../actions/enquetes';
import e... | masarakki/mastodon | app/javascript/mastodon/reducers/statuses.js | JavaScript | agpl-3.0 | 2,651 |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'sourcedialog', 'oc', {
toolbar: 'Font',
title: 'Font'
} );
| mikolajs/osp | src/main/webapp/ckeditor/plugins/sourcedialog/lang/oc.js | JavaScript | agpl-3.0 | 232 |
$(document).ready(function(){
var map = L.map('map').setView([38.5, -97], 4);
map.addLayer(L.tileLayer('http://{s}.tiles.mapbox.com/v3/643gwozdz.h00dfolo/{z}/{x}/{y}.png', {}));
$.ajax({
context: this,
type: 'GET',
dataType: "json",
url: 'data/fires2012.json',
success: function(dat... | mapcentia/vidi | public/js/lib/q-cluster/demo/js/main.js | JavaScript | agpl-3.0 | 783 |
/**
* ******************************* Default locale
* **************************************************
*/
var batchInstanceConstants = {
download_log_file : "Download batch instance logs",
navigate_to_batch_detail_screen : "Navigate To Batch Detail Screen",
restart_batch : "Restart Batch(s)",
delet... | ungerik/ephesoft | Ephesoft_Community_Release_4.0.2.0/source/dcma-webapp/src/main/webapp/i18n/batchInstance/locale.js | JavaScript | agpl-3.0 | 37,061 |
import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import TraitStatisticBox from 'interface/others/TraitStatisticBox';
import SPELLS from 'common/SPELLS';
import { calculateAzeriteEffects } from 'common/stats';
import { formatDuration, formatNumber, formatPercentage } from 'common/format';
import S... | fyruna/WoWAnalyzer | src/parser/hunter/survival/modules/spells/azeritetraits/BlurOfTalons.js | JavaScript | agpl-3.0 | 4,284 |
import React from 'react';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import { formatNumber } from 'common/format';
import Combatants from 'Parser/Core/Modules/Combatants';
import AbilityTracker from 'Parser/Core/Modules/AbilityTracker';
import Analyzer from 'Parser/Core/Analyzer';
const ... | enragednuke/WoWAnalyzer | src/Parser/Monk/Mistweaver/Modules/Items/PetrichorLagniappe.js | JavaScript | agpl-3.0 | 3,193 |
import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeable from 'react-swipeable';
import HomeTimeline from '../../home_timeline';
import Notifications from '../../n... | Toootim/mastodon | app/javascript/mastodon/features/ui/components/columns_area.js | JavaScript | agpl-3.0 | 2,301 |
function QueryByGeneUtil() {
// add the field
function addFormField(formId, itemName, itemValue) {
//check if the element exist or not
var hiddenInput = $("#" + formId + " [name=" + itemName + "]");
if(hiddenInput.length > 0){
//update its value if element already existed
... | shrumit/cbioportal-gsoc-final | portal/src/main/webapp/js/src/study-view/util/QueryByGeneUtil.js | JavaScript | agpl-3.0 | 1,489 |
var haystack= [];
var skipSearch = false;
var keyboardSelect = -1;
var poly= null;
var readygwt= false;
var readypolymer= false;
var languagesAvailable= null;
var sourceCode= null;
var targetCode= null;
// Show log information on console:
var CONSOLE_LOG= true;
// Input list for the Languages service:
//var inp... | jaspock/forecat | war/libjs/component/elements/translation-autocomplete.js | JavaScript | agpl-3.0 | 13,295 |
var tinyxml_8h =
[
[ "TiXmlCursor", "structflitr_1_1_ti_xml_cursor.html", "structflitr_1_1_ti_xml_cursor" ],
[ "TiXmlVisitor", "classflitr_1_1_ti_xml_visitor.html", "classflitr_1_1_ti_xml_visitor" ],
[ "TiXmlBase", "classflitr_1_1_ti_xml_base.html", "classflitr_1_1_ti_xml_base" ],
[ "Entity", "structfli... | bduvenhage/flitr | Doxygen/html/tinyxml_8h.js | JavaScript | lgpl-3.0 | 3,149 |
import convertConfigToReactLike from './convertConfigToReactLike';
export default function deriveStandardBaseComponent(BaseComponent, config) {
// config is already normalized
const convertedConfig = convertConfigToReactLike(config);
class Component extends BaseComponent {
constructor(props, cont... | mcjazzyfunky/js-surface | boxroom/archive/backup-js-surface-2018-02-19/src/main/adaption/specific/deriveStandardReactLikeComponent.js | JavaScript | lgpl-3.0 | 2,382 |
/**
* @fileoverview The preference server script controls all the preference server communication.
*/
/**
* @ignore
*/
var Ozone = Ozone || {};
/**
* @ignore
*/
Ozone.pref = Ozone.pref || {};
(function(window, document, undefined) {
/**
* @constructor None, this is a Singleton
* @... | ozoneplatform/owf-framework | web-app/js/pref/preference.js | JavaScript | apache-2.0 | 101,428 |
var organizationInfoRoutes = (function () {
'use strict';
var HTTPStatus = require('http-status'),
express = require('express'),
tokenAuthMiddleware = require('../middlewares/token.authentication.middleware'),
roleAuthMiddleware = require('../middlewares/role.authorization.middleware')... | nodebeats/nodebeats | lib/routes/organization.info.route.js | JavaScript | apache-2.0 | 21,724 |
//
// Funktion för att visa android eller ios-meny
//
if(OS_IOS){
$.menuios.visible = true;
}
if(OS_ANDROID){
$.menuandroid.visible = true;
}
//-------------
//Funktionerna nedan skickar användaren till rätt sida utifrån navigeringsmeyn
function toHome(e) {
var index = Alloy.createController('index').getView();... | sweco-sesvic/KosterANDROID | app/widgets/menuWidget/controllers/widget.js | JavaScript | apache-2.0 | 846 |
'use strict'
module.exports = {
'env': {
'es6': true,
'commonjs': true,
'node': true
},
'extends': 'eslint:recommended',
'rules': {
'indent': ['error', 4],
'linebreak-style': 'off',
'quotes': 'off',
'semi': ['error', 'never'],
'no-unused-va... | tangyouyi1513/openrasp | plugins/official/.eslintrc.js | JavaScript | apache-2.0 | 866 |
var express = require("express"),
url = require('url'),
fs = require("fs"),
path = require("path"),
events = require("events"),
inherits = require("util").inherits,
qrCode = require('qrcode-npm'),
util = require(... | sdgdsffdsfff/anyproxy | lib/webInterface.js | JavaScript | apache-2.0 | 5,151 |
var Control = require('../core/Control');
/**
* The LayoutGroup allows you to add PIXI.js children that will be positioned
*
* @class LayoutGroup
* @extends GOWN.Control
* @memberof GOWN
* @constructor
* @param layout The layout for the layout group {GOWN.LayoutAlignment}
* @param [maxWidth=Infinity] The maxim... | brean/pixi_ui | src/controls/LayoutGroup.js | JavaScript | apache-2.0 | 6,246 |
'use strict';
// //////////////////////////////////////////////////////////////////////////////
// / @brief Replication management
// /
// / @file
// /
// / DISCLAIMER
// /
// / Copyright 2012 triagens GmbH, Cologne, Germany
// /
// / Licensed under the Apache License, Version 2.0 (the "License")
// / you may not use ... | Simran-B/arangodb | js/client/modules/@arangodb/general-graph.js | JavaScript | apache-2.0 | 6,340 |
#!/usr/bin/env node
// The follow command-line interface.
//
// Copyright 2011 Iris Couch
//
// 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/licen... | iriscouch/procouch | node_modules/follow/cli.js | JavaScript | apache-2.0 | 2,660 |
var apijs = require ("tnt.api");
var layout = require("./layout.js");
var board = require("tnt.board");
var tnt_feature_transcript = function () {
var feature = board.track.feature()
.layout (board.track.layout.genome())
.index (function (d) {
return d.key;
});
feature.crea... | emepyc/tnt.genome | src/feature.js | JavaScript | apache-2.0 | 11,580 |
/**
* Copyright 2014 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | leandrodvd/visual-to-speech | visual-to-speech-nodejs/public/js/demo.js | JavaScript | apache-2.0 | 6,283 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
function IsEmail(email) {
var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
return regex.test(email);
}... | eduardosco/eduardoscopruebas | src/main/webapp/resources/js/validaciones.js | JavaScript | apache-2.0 | 322 |
// a browserify-style object literal that isn't a parameter shouldn't be optimized.
var a = {
1:[
function(o,r,t){
console.log("browserify style!");
},
{}
]
};
| nolanlawson/optimize-js | test/cases/browserify-object-literal-in-global-scope/output.js | JavaScript | apache-2.0 | 182 |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
export default [
'ru-KZ... | N03297857/2017Fall | node_modules/@angular/common/locales/ru-KZ.js | JavaScript | apache-2.0 | 3,192 |
Bridge.merge(new System.Globalization.CultureInfo("ku-Arab-IR", true), {
englishName: "Kurdish (Perso-Arabic, Iran)",
nativeName: "کوردی (ئێران)",
numberFormat: Bridge.merge(new System.Globalization.NumberFormatInfo(), {
nanSymbol: "NaN",
negativeSign: "-",
positiveSign: "+",
... | AndreyZM/Bridge | Bridge/Resources/Locales/ku-Arab-IR.js | JavaScript | apache-2.0 | 3,279 |
/**
* assure
*
* @author Jason Mulligan <jason.mulligan@avoidwork.com>
* @copyright 2013 Jason Mulligan
* @license BSD-3 <https://raw.github.com/avoidwork/assure/master/LICENSE>
* @link http://avoidwork.github.io/assure/
* @module assure
* @version 1.0.4
*/
( function ( global ) {
"use strict";
/**
* Deferre... | kalpeshshirodker/webworker-xml2json | lib/assure.js | JavaScript | apache-2.0 | 9,313 |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et: */
/* 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/. */
... | sergecodd/FireFox-OS | B2G/gecko/netwerk/test/httpserver/test/test_default_index_handler.js | JavaScript | apache-2.0 | 8,648 |
window.addEventListener("load", function(e) {
document.addEventListener("deviceready", function(e) {
document.addEventListener('touchstart', function(e) { e.stopPropagation(); }, false);
var options = {
pageKey: "NCDRFlood",
entryPage: false,
titleBar: {
... | whchi/TPElineService | channelWebs/assets/js/NCDRFlood.js | JavaScript | apache-2.0 | 11,130 |
/**
* Copyright © 2013 Environmental Systems Research Institute, Inc. (Esri)
*
* 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<br>
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... | aconyteds/Esri-Ozone-Map-Widget | test/spec/image-collection-query-widget/ImageCollectionQuery.spec.js | JavaScript | apache-2.0 | 3,842 |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
/*global QUnit, Date:true */
/**
* SAPUI5 test utilities
*
* @namespace
* @name sap.ui.test
* @public
*/
sap.ui.define('sap/u... | SuicidePreventionSquad/SeniorProject | resources/sap/ui/qunit/QUnitUtils-dbg.js | JavaScript | apache-2.0 | 31,041 |
// Copyright 2014 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.
// Flags: --expose-debug-as debug --harmony
Debug = debug.Debug;
var break_count = 0
var exception = null;
var log = []
var s = 0;
var a = [1, 2, 3];
... | runtimejs/runtime | deps/v8/test/mjsunit/es6/debug-stepnext-for.js | JavaScript | apache-2.0 | 3,906 |
// Copyright 2017 The Kubernetes 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 a... | kenan435/dashboard | build/dependencies.js | JavaScript | apache-2.0 | 2,728 |
var assert = require('assert'),
testUtil = require('./testUtil');
var arrowDBEntryPoint = (process.env.ARROWDB_ENTRYPOINT ? process.env.ARROWDB_ENTRYPOINT : 'https://api.cloud.appcelerator.com');
var arrowDBKey = process.env.ARROWDB_APPKEY;
if (!arrowDBKey) {
console.error('Please create an ArrowDB app and assign AR... | titanium-forks/appcelerator.arrowdb-node-sdk | test/likes.test.js | JavaScript | apache-2.0 | 7,408 |
// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.
$(function () {
$('.colltxt').keyup( function(){
$('.alert alert-error').empty(); //empties the div
$('input[type=submit]').removeAttr('disabled');
var colname = ... | shixudongleo/mongo-tools | app/assets/javascripts/explorer/collections.js | JavaScript | apache-2.0 | 5,409 |
/**
* 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... | rsimha-amp/amphtml | test/integration/test-user-error-reporting.js | JavaScript | apache-2.0 | 3,921 |
'use strict';
var events = require('./events');
var Delete = function() {
this.cascade = false;
};
Delete.prototype.cancel = function() {
events.emit('delete:cancel');
};
Delete.prototype.confirm = function() {
events.emit('delete:confirm', {
cascade: this.cascade
});
};
module.exports = Delete;
| xlinur/camunda-bpm-webapp | ui/cockpit/client/scripts/batches/components/delete.js | JavaScript | apache-2.0 | 316 |
/**
* @author CaMnter
*/
import React, {Component} from 'react';
import {examples} from "./AsyncStorage";
import {SmartPager} from "../../core";
class Root extends Component {
render() {
return (
<SmartPager
examples={examples}/>
);
}
}
module.exports = Root; | CaMnter/front-end-life | react-native-life/ReactNativeLife/js/APIs/AsyncStorage/index.js | JavaScript | apache-2.0 | 318 |
/* global describe it assert */
import React from 'react';
import ReactDOM from 'react-dom';
import {Range} from '../dist/react-onsenui.js';
import TestUtils from 'react/lib/ReactTestUtils';
import rendersToComponent from './testUtil.js';
describe('Range', function() {
rendersToComponent(
<Range />,
'ons-... | OnsenUI/react-onsenui | test/range-test.js | JavaScript | apache-2.0 | 336 |
/**
* Copyright __current_year__ 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
*
* Un... | rsimha-amp/amphtml | build-system/tasks/make-extension/template/shared/extensions/amp-__component_name_hyphenated__/__component_version__/storybook/Basic.amp.js | JavaScript | apache-2.0 | 1,476 |
//
// Copyright (c) Adam Anderly. 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... | rivy/dnsimple-cli | lib/util/dnsimpleClientFactory.js | JavaScript | apache-2.0 | 1,291 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | begoldsm/azure-sdk-for-node | lib/services/customerInsightsManagement/lib/models/interactionListResult.js | JavaScript | apache-2.0 | 1,660 |
({
previousPage : function(component) {
var pageChangeEvent = component.getEvent("pagePrevious");
pageChangeEvent.fire();
},
nextPage : function(component) {
var pageChangeEvent = component.getEvent("pageNext");
pageChangeEvent.fire();
}
}) | forcedotcom/sfdx-dreamhouse | force-app/main/default/aura/PropertyPaginator/PropertyPaginatorController.js | JavaScript | apache-2.0 | 281 |
/**
* Copyright 2013-2017 the original author or authors.
*
* This file is part of the JHipster project, see https://jhipster.github.io/
* for more information.
*
* 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... | fjuriolli/scribble | node_modules/generator-jhipster/generators/aws/index.js | JavaScript | apache-2.0 | 7,545 |
var TestInlineContainer = function() {}
TestInlineContainer.createContainerForTest = function( testName, hub, clientID, params )
{
// first, create container
var container = new OpenAjax.hub.InlineContainer( hub, clientID, params );
// next, create hub client -- use a setTimeout so that we can return ... | benkroeger/open-ajax-hub | testsrc/inline/test_inline_container.js | JavaScript | apache-2.0 | 53,616 |
/**
* @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
... | ralic/lovefield | tools/devtools/devtools.js | JavaScript | apache-2.0 | 805 |
var through = require('through2')
var readonly = require('read-only-stream')
var once = require('once')
var collect = require('collect-stream')
var errors = require('../errors')
var refs2nodes = require('../lib/util').refs2nodes
/**
* Get the changes in a changeset, as `cb(err, changes)` or as a stream
* @param {s... | digidem/osm-p2p-server | api/get_changes.js | JavaScript | bsd-2-clause | 2,332 |
Ext.apply(Zenoss.render, {
api_zpoolHealthRenderer: function(n) {
var status = parseInt(n)
switch (status) {
case 0:
return "online";
case 1:
return "degraded";
case 2:
return "faulted";
case 3:
return "offlin... | N-faycal/ZenPacks.iXsystems.TrueNAS | build/lib/ZenPacks/iXsystems/TrueNAS/resources/Service.js | JavaScript | bsd-2-clause | 497 |
/* jslint node: true, esnext: true */
"use strict";
const RandExp = require('randexp');
/**
* This data generator is an adapter to the faker data creator
*/
class GeneratorRegex {
constructor(config) {
this.config = config;
}
/**
* @param fieldConfig (object) The generator configuration
* @param dataCont... | Kronos-Tools/graph-data-generator | lib/generator/generator-regex.js | JavaScript | bsd-2-clause | 2,306 |
var app = angular.module('ContactsApp', ['ngRoute', 'ngResource']);
app.config(function ($routeProvider, $locationProvider) {
$routeProvider
.when('/contacts', {
controller: 'ListController',
templateUrl: 'views/list.html'
})
.when('/contacts/new', {
controller: 'NewController',
... | ldong/comparing-front-end-frameworks | 3-6-angular-newView/public/app.js | JavaScript | bsd-2-clause | 1,459 |
goog.provide('ol.source.WMTS');
goog.provide('ol.source.WMTSRequestEncoding');
goog.require('goog.asserts');
goog.require('goog.uri.utils');
goog.require('ol.TileUrlFunction');
goog.require('ol.TileUrlFunctionType');
goog.require('ol.array');
goog.require('ol.extent');
goog.require('ol.object');
goog.require('ol.proj'... | bartvde/ol3 | src/ol/source/wmtssource.js | JavaScript | bsd-2-clause | 13,869 |
var httpClient = new HttpClient();
function crawl(origin, destination, crawler, startTime) {
endTime = startTime + 1000 * 60 * 60 * 24;
var date = new Date(startTime);
var day = date.format('d');
var monthYear = date.format('mY');
var returnDate = new Date(endTime);
var returnDay = returnDat... | bedrin/air-crawler | lowcostair-util/src/main/resources/ryanair.js | JavaScript | bsd-3-clause | 6,641 |
/**
* @author zz85 / https://github.com/zz85
*
* Based on "A Practical Analytic Model for Daylight"
* aka The Preetham Model, the de facto standard analytic skydome model
* http://www.cs.utah.edu/~shirley/papers/sunsky/sunsky.pdf
*
* First implemented by Simon Wallner
* http://www.simonwallner.at/projects/atmos... | marco-ponds/Wage | src/fx/scenery/Sky.js | JavaScript | bsd-3-clause | 10,493 |
"use strict";
require('polyfill/polyfill-base.js');
var UNDEFINED_NS = '__undefined__',
namespaces = {};
/**
* Collection of various utility functions.
*
*
* <i>Copyright (c) 2014 ITSA - https://github.com/itsa</i>
* New BSD License - http://choosealicense.com/licenses/bsd-3-clause/
*
* @module utils
* @... | ItsAsbreuk/utils | lib/idgenerator.js | JavaScript | bsd-3-clause | 1,784 |
//Return true if given an array of graphs/arcs with a start and an end, you can go
//from the start and reach the end.
function solve_graph(start, end, arcs) {
var value = false;
var recurse = function(start, visited){
for(var i=0; i<arcs.length; i++){
if(arcs[i].start === start){
poin... | CodeRevelRepeat/glowing-bear-toys | graph_solution.js | JavaScript | bsd-3-clause | 789 |
/*jslint indent: 2 */
/*global $: false, togglbutton: false, createTag: false*/
'use strict';
// Jira
togglbutton.render('#ghx-detail-issue:not(.toggl)', {observe: true}, function (elem) {
var link, description,
container = createTag('div', 'ghx-toggl-button'),
titleElem = $('[data-field-id="summary"]', ele... | bitbull-team/toggl-button | src/scripts/content/atlassian.js | JavaScript | bsd-3-clause | 1,840 |
"use strict";
// A reporter module to be used by JsHint for formatting the output.
module.exports = {
reporter: function (res) {
var len = res.length;
var str = "";
res.forEach(function (r) {
var file = r.file;
var err = r.error;
str += file + ":" + err.line + ":" + err.character + " ... | Tiger66639/skia-buildbot | perf/lint/reporter.js | JavaScript | bsd-3-clause | 479 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... | htc2u/react-native | Libraries/Components/TextInput/TextInput.js | JavaScript | bsd-3-clause | 26,142 |
/**
* Openbiz App Module Frontend Collection File
*
* APPBUILDER_ALLOW_OVERRIDE = YES // if you have manual modified this file please change APPBUILDER_ALLOW_OVERRIDE value to NO
*/
"use strict";
define(function(){
return Backbone.Model.extend({
urlRoot:openbiz.apps.{{APP_NAME}}.appUrl+'{{MODEL_RESOURCE_URI}}',... | openbiz/openbiz-appbuilder | templates/module/frontend/model/backbone-item-template.js | JavaScript | bsd-3-clause | 639 |
/**
* Copyright 2012-2013 Amazon.com, Inc. or its affiliates. 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. A copy of
* the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the ... | exhibia/exhibia | node_modules/db/node_modules/aws-sdk/lib/services/route53.api.js | JavaScript | bsd-3-clause | 18,813 |
/*
invalid-setter.js(4,14): UCE0003: Property setter must have a single argument named 'value'.
*/
function set invalid() {
print('wut?');
}
| bamboo/unityscript | tests/error-messages/invalid-setter.js | JavaScript | bsd-3-clause | 143 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import * as JavaScriptMetadataModule from './javascript_metadata.js';
self.JavaScriptMetadata = self.JavaScriptMetadata || {};
JavaScriptMetadata = JavaS... | endlessm/chromium-browser | third_party/devtools-frontend/src/front_end/javascript_metadata/javascript_metadata-legacy.js | JavaScript | bsd-3-clause | 766 |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @param {string} folderPath
* @return {!{isolatedFileSystem: !Persistence.IsolatedFileSystem, project: !Workspace.Project, testFileSystem: !Binding... | endlessm/chromium-browser | third_party/devtools-frontend/src/front_end/bindings_test_runner/OverridesTestRunner.js | JavaScript | bsd-3-clause | 1,039 |
// Logger Adapter
//
// Allows you to change the logger mechanism
//
// Adapter classes must implement the following functions:
// * log() {}
// * query(options, callback) /* optional */
// Default is WinstonLoggerAdapter.js
export class LoggerAdapter {
constructor(options) {}
log(level, message, /* meta */) {}
}
... | themungapp/themungapp | src/Adapters/Logger/LoggerAdapter.js | JavaScript | bsd-3-clause | 351 |
/*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 3.7.3
build: 3.7.3
*/
YUI.add('node-pluginhost', function (Y, NAME) {
/**
* @module node
* @submodule node-pluginhost
*/
/**
* Registers plugins to be instantiated at t... | giros/alloy-ui | build/node-pluginhost/node-pluginhost.js | JavaScript | bsd-3-clause | 2,926 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview This view displays information on the current GPU
* hardware. Its primary usefulness is to allow users to copy-paste
* their ... | danakj/chromium | content/browser/resources/gpu/info_view.js | JavaScript | bsd-3-clause | 12,474 |
/*
Language: C#
Author: Jason Diamond <jason@diamond.name>
Category: common
*/
function(hljs) {
var KEYWORDS =
// Normal keywords.
'abstract as base bool break byte case catch char checked const continue decimal ' +
'default delegate do double else enum event explicit extern false finally fixed float ' +... | iOctocat/highlight.js | src/languages/cs.js | JavaScript | bsd-3-clause | 3,103 |
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
'u... | Daniel15/jest | packages/jest-cli/src/reporters/SummaryReporter.js | JavaScript | bsd-3-clause | 6,472 |
var vows = require('vows'),
assert = require('assert'),
http = require('http'),
parse = require('url').parse,
qs = require('querystring'),
fs = require('fs'),
echoecho = require('../lib/echo'),
ip = process.env.IP || '127.0.0.1',
port = process.env.PORT || 8181;
//Server to test agains... | davglass/echoecho | tests/tests.js | JavaScript | bsd-3-clause | 33,881 |
/**
* Select2 Arabic translation.
*
* Author: Adel KEDJOUR <adel@kedjour.com>
*/
(function ($) {
"use strict";
$.fn.select2.locales['ar'] = {
formatNoMatches: function () { return "لم يتم العثور على مطابقات"; },
formatInputTooShort: function (input, min) { var n = min -... | georgesks/digirey | ws/assets/vendors/select2/select2_locale_ar.js | JavaScript | mit | 1,980 |
export default {
SET_PAGE_NAME(state, name) {
state.pageName = name;
},
SET_PAGE_STATE(state, pageState) {
state.pageState = pageState;
},
SET_FACILITY_ID(state, facilityId) {
state.facilityId = facilityId;
},
// Profile Page Mutations
SET_PROFILE_BUSY(state, isBusy) {
state.pageState.bu... | christianmemije/kolibri | kolibri/plugins/user/assets/src/state/mutations.js | JavaScript | mit | 1,616 |
/*
---
name: MUI.Mask.Repeat
description: A mask that is defined by a pattern that will match each of the inputted chars.
authors:
- Fábio Miranda Costa
requires:
- MUI.Mask
license: MIT-style license
provides: [MUI.Mask.Repeat]
...
*/
MUI.Mask.Repeat = new Class({
Extends : MUI.Mask,
options: {
mask: '... | nkruzan/mochaui | Source/Controls/textbox/mask.repeat.js | JavaScript | mit | 1,520 |
const express = require('express')
const router = express()
const { createWebAPIRequest } = require('../util/util')
router.get('/', (req, res) => {
const cookie = req.get('Cookie') ? req.get('Cookie') : ''
const data = {
offset: req.query.offset || 0,
total: true,
limit: req.query.limit || 30,
csrf... | SSnewbie/vue-163-music | server/router/top_mv.js | JavaScript | mit | 626 |
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['angular', 'chart.js'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('angular'), require('chart.js'));
}... | godspeedyoo/Breeze-Mapper | vendor/assets/bower_components/angular-chart.js/angular-chart.js | JavaScript | mit | 10,022 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | lmazuel/azure-sdk-for-node | lib/services/networkManagement2/lib/models/loadBalancingRule.js | JavaScript | mit | 6,118 |
define({main:{kn:{identity:{version:{_number:"$Revision: 12293 $",_cldrVersion:"29"},language:"kn"},dates:{timeZoneNames:{hourFormat:"+HH:mm;-HH:mm",gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",regionFormat:"{0} ಸಮಯ","regionFormat-type-daylight":"{0} (+1) ದಿನದ ಸಮಯ","regionFormat-type-standard":"{0} (+0) ಪ್ರಮಾಣಿತ ಸಮಯ",fallbac... | crmouli/crmouli.github.io | js/libs/oj/v3.0.0/resources/nls/kn/timezoneData.js | JavaScript | mit | 20,549 |
$(document).ready(function(e) {
$("#expense_processing").on("click", function (e) {
expense_status('processing', e);
});
$("#expense_closed").on("click", function (e) {
expense_status('closed', e);
});
$("#expense_open").on("click", function (e) {
expense_status('open', e);... | emudmudmudmu/myoffice | web/bundles/quartetkakarot/js/expense.js | JavaScript | mit | 1,186 |
define({
"_widgetLabel": "Guía de respuesta ante emergencias",
"ergMainPageTitle": "Según la Guía de respuesta ante emergencias 2016",
"coordInputLabelStart": "Ubicación de vertido",
"coordInputLabel": "Ubicación de vertido",
"addPointToolTip": "Agregar ubicación de vertido",
"drawPointToolTip": "Haga clic ... | tmcgee/cmv-wab-widgets | wab/2.15/widgets/EmergencyResponseGuide/nls/es/strings.js | JavaScript | mit | 7,080 |
const should = require('should');
// Stuff we are testing
const excerpt = require('../../../../core/frontend/helpers/excerpt');
describe('{{excerpt}} Helper', function () {
it('renders empty string when html, excerpt, and custom_excerpt are null', function () {
const html = null;
const rendered = ... | ErisDS/Ghost | test/unit/frontend/helpers/excerpt.test.js | JavaScript | mit | 9,648 |
/*
Leaflet, a JavaScript library for mobile-friendly interactive maps. http://leafletjs.com
(c) 2010-2013, Vladimir Agafonkin
(c) 2010-2011, CloudMade
*/
(function (window, document, undefined) {
var oldL = window.L,
L = {};
L.version = '0.7.3';
// define Leaflet for Node module pattern loaders, inc... | m4n3z40/simple-hotel-finder | www/js/leaflet.js | JavaScript | mit | 224,216 |
///////////////////////////////////////////////////////////////////////////
// Copyright © Esri. 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.ap... | tmcgee/cmv-wab-widgets | wab/2.15/widgets/Query/setting/RelationshipsSelector.js | JavaScript | mit | 4,247 |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
let React;
let ReactDOM;
function App() {
return null;
}
beforeEach(() => {
jest.resetModules();
... | cpojer/react | packages/react-dom/src/__tests__/ReactUnmockedSchedulerWarning-test.js | JavaScript | mit | 1,733 |
$(document).ready(function(){var a="div.language",o="#lang-chooser",n=function(n){$(a+"#"+n).show(),$(o).val(n),void 0!==typeof Storage&&localStorage.setItem("lang",n);var e=window.location,l=e.pathname;l="/"==l?"/"+n+"/index.html":"/"+n+l.substr(3);var t=e.protocol+"//"+e.host+l;window.open(t,"_self")};if(localStorage... | Moduleplanner/Moduleplanner.github.io | js/language-changer.min.js | JavaScript | mit | 485 |
module.exports = {
cache: true,
entry: './src/index.js',
output: {
path: __dirname + '/build/',
filename: 'bundle.js'
},
devtool: 'source-map',
module: {
loaders: [
{
test: /\.js$/,
include: /src/,
loader: 'babel-loader',
query: {modules: 'common'}
},
... | srackham/riot-todo | webpack.config.js | JavaScript | mit | 472 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... | raskolnikova/infomaps | node_modules/react-d3-core/lib/axis/xaxis.js | JavaScript | mit | 6,598 |
var vows = require('vows');
var optimizerContext = require('../test-helper').optimizerContext;
vows.describe('restructure')
.addBatch(
optimizerContext('advanced on', {
'up until changed': [
'a{color:#000}div{color:red}.one{display:block}.two{display:inline;color:red}',
'a{color:#000}.two,d... | yomed/clean-css | test/selectors/restructure-test.js | JavaScript | mit | 9,823 |
stage.loadFile('data://1stp.bb.mmtf', { defaultRepresentation: true })
| arose/ngl | examples/scripts/parser/mmtf-reduced.js | JavaScript | mit | 72 |
import PropTypes from 'prop-types';
import React from 'react';
const FilterRow = ({ onClick, name, className}) => (
<li>
<a
className={ className }
onClick={ onClick }>
{ name }
</a>
</li>
);
FilterRow.propTypes = {
onClick: PropTypes.func.isRequired,
... | Arlefreak/arlefreakClient | src/js/components/filter__row/index.js | JavaScript | mit | 421 |
'use strict';
const common = require('../common');
const assert = require('assert');
const path = require('path');
const fs = require('fs');
const tmp = common.tmpDir;
common.refreshTmpDir();
const filename = path.resolve(tmp, 'truncate-sync-file.txt');
fs.writeFileSync(filename, 'hello world', 'utf8');
const fd = ... | hoho/dosido | nodejs/test/parallel/test-fs-truncate-sync.js | JavaScript | mit | 476 |
(function () {
'use strict';
angular
.module('doleticApp')
.component('contactTableComponent', contactTableComponent());
function contactTableComponent() {
return {
bindings: {},
controller: "ContactTableController",
templateUrl: "app/components/... | nsorin/DoleticRESTClient | app/components/dashboard/contact-table/contact-table.component.js | JavaScript | mit | 394 |
var ReactFlux = require('react-flux');
var constants = require('../constants/<%= name %>');
var Store = ReactFlux.createStore({
displayName: '<%= name %>Store',
getInitialState: function(){
return {
};
}
});
module.exports = Store; | kjda/ReactFlux | codegen/templates/store.js | JavaScript | mit | 245 |
import Ember from 'ember';
import component from 'ember-bootstrap/components/bs-dropdown-toggle';
export default component;
| h0lyalg0rithm/ember-bootstrap | app/components/bs-dropdown-toggle.js | JavaScript | mit | 125 |
(function(window, document, location, navigator, $, angular, undefined) {
'use strict';
angular.module('footer.controller', [])
.controller('footerController', function($scope, $state, growl) {
})
;}(window, document, location, navigator, jQuery, angular, undefined)); | ziethan/flongular | app/static/dev/library/modules/footer/controllers/footerController.js | JavaScript | mit | 296 |
/**
* Copyright (c) Egret-Labs.org. Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish, distribu... | sucresk/jumpBo | libs/core/extension/resource/analyzer/SheetAnalyzer.js | JavaScript | mit | 5,872 |
define("ace/snippets/puppet",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText = "";
exports.scope = "puppet";
});
(function() {
window.require(["ace/snippets/puppet"], function(m) {
if (typeof module == "... | NPellet/jsGraph | web/site/js/ace-builds/src/snippets/puppet.js | JavaScript | mit | 503 |
import { UIPanel, UIRow } from './libs/ui.js';
function MenubarHelp( editor ) {
var strings = editor.strings;
var container = new UIPanel();
container.setClass( 'menu' );
var title = new UIPanel();
title.setClass( 'title' );
title.setTextContent( strings.getKey( 'menubar/help' ) );
container.add( title );
... | opensim-org/three.js | editor/js/Menubar.Help.js | JavaScript | mit | 1,277 |