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 |
|---|---|---|---|---|---|
/**
* This file is part of Thallium.
*
* Thallium, a PHP-based framework for web applications.
* Copyright (C) <2015-2016> <Andreas Unterkircher>
*
* 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 Soft... | unki/thallium | public/resources/thallium_messagebus.js | JavaScript | agpl-3.0 | 12,235 |
#! /bin/env node
var fs = require('fs');
var validate = require('jsonschema').validate;
var readline = require('readline');
var process = require('process');
var schemaFile = process.argv[2];
var schema = '';
var testCode = '';
var success = true;
var numFiles = 0;
var numFailed = 0;
var numSucceeded = 0;
var fileNa... | adrianbrink/tendereum | vendor/github.com/ethereum/go-ethereum/tests/testdata/JSONSchema/validate.js | JavaScript | agpl-3.0 | 1,857 |
/* @flow */
import ReactNative from 'react-native';
const {
InteractionManager,
} = ReactNative;
const pendingTasks = {};
let id = 0;
global.Promise.prototype.done = () => {}; // FIXME: Without this InteractionManager throws
global.requestIdleCallback = (callback: Function) => {
const handle = id++;
pendingTasks... | scrollback/pure | src/ui/polyfills/requestIdleCallback.native.js | JavaScript | agpl-3.0 | 598 |
var gulp = require("gulp"),
plumber = require("gulp-plumber"),
notify = require("gulp-notify"),
gutil = require("gulp-util"),
beep = require("beepbeep"),
shell = require("gulp-shell"),
fs = require("fs"),
rimraf = require("rimraf"),
sass = require("gulp-sass");
var themesDir = process.... | lots0logs/numix-cinnamon | Numix-Cinnamon/cinnamon/gulpfile.js | JavaScript | agpl-3.0 | 2,244 |
/*
* 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 | app/jsx/content_shares/__tests__/PreviewModal.test.js | JavaScript | agpl-3.0 | 1,731 |
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here.
// For complete reference see:
// http://docs.ckeditor.com/#!/... | olympian94/gstudio | gnowsys-ndf/gnowsys_ndf/ndf/static/ndf/ckeditor/config.js | JavaScript | agpl-3.0 | 1,381 |
'use strict';
describe('authoring', function() {
var GUID = 'urn:tag:superdesk-1';
var USER = 'user:1';
var ITEM = {guid: GUID};
beforeEach(module('superdesk.preferences'));
beforeEach(module('superdesk.archive'));
beforeEach(module('superdesk.authoring'));
beforeEach(module('superdesk.p... | sivakuna-aap/superdesk | client/app/scripts/superdesk-authoring/tests/authoring_spec.js | JavaScript | agpl-3.0 | 67,662 |
/**
* Expose the MediaStreamRenderer class.
*/
module.exports = MediaStreamRenderer;
/**
* Dependencies.
*/
var
debug = require('debug')('iosrtc:MediaStreamRenderer'),
exec = require('cordova/exec'),
randomNumber = require('random-number').generator({min: 10000, max: 99999, integer: true}),
EventTarget = requ... | wesley1001/mobile | plugins/cordova-plugin-iosrtc/js/MediaStreamRenderer.js | JavaScript | agpl-3.0 | 7,705 |
/* eslint-disable newline-per-chained-call */
var workspace = require('./helpers/pages').workspace,
content = require('./helpers/content'),
authoring = require('./helpers/authoring');
describe('content', () => {
var body = element(by.tagName('body'));
function selectedHeadline() {
var headli... | ioanpocol/superdesk-client-core | spec/content_spec.js | JavaScript | agpl-3.0 | 8,116 |
"use strict";
describe("Advanced Search", function () {
var win, zp;
before(function* () {
win = yield loadZoteroPane();
zp = win.ZoteroPane;
});
after(function () {
win.close();
});
it("should perform a search", function* () {
var item = yield createDataObject('item', { setTitle: true });
var... | rmzelle/zotero | test/tests/advancedSearchTest.js | JavaScript | agpl-3.0 | 1,068 |
/*
* Spreed WebRTC.
* Copyright (C) 2013-2014 struktur AG
*
* This file is part of Spreed WebRTC.
*
* 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 3 of the License... | tymiles003/spreed-webrtc | static/js/controllers/statusmessagecontroller.js | JavaScript | agpl-3.0 | 1,317 |
this.gameEnded = false;
this.initialize = function()
{
Game.score = Game.score || 0;
this.Scene.paused = false;
this.Scene.enemies = 28;
this.Scene.lives = 5;
this.Scene.sceneScore = 0;
MessageHandler.subscribe("playerDied", this.playerDied, this);
MessageHandler.subscribe("enemyDied", thi... | pranavrc/gluon | player/examples/invaders.gluon/assets/scripts/controller.js | JavaScript | lgpl-2.1 | 1,671 |
'use strict';
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
function generateSchema() {
const includeSchema = Schema({
data: {
type: Schema.Types.Mixed
},
createdAt: {
type: Date,
default: Date.now()
},
updatedAt:... | philmander/pagespace | src/schemas/include.js | JavaScript | lgpl-3.0 | 751 |
'use strict';
/**
* @module br/test/viewhandler/BorderWidth
*/
require('jquery');
var br = require('br/Core');
var Errors = require('br/Errors');
var ViewFixtureHandler = require('br/test/viewhandler/ViewFixtureHandler');
/**
* @class
* @alias module:br/test/viewhandler/BorderWidth
* @implements module:br/test... | andreoid/testing | brjs-sdk/workspace/sdk/libs/javascript/br-test/src/br/test/viewhandler/BorderWidth.js | JavaScript | lgpl-3.0 | 1,002 |
/// <reference name="MicrosoftAjax.debug.js" />
/// <reference name="MicrosoftAjaxTimer.debug.js" />
/// <reference name="MicrosoftAjaxWebForms.debug.js" />
(function() {
var scriptName = "ExtendedThreading";
function execute() {
var version = Sys.version;
if (!version && !Sys._versionChecked) {
... | consumentor/Server | trunk/tools/AspNetAjaxLibraryBeta0911/Scripts/extended/Common/Threading.debug.js | JavaScript | lgpl-3.0 | 8,983 |
(function () {
'use strict';
angular.module('SmallBIApp')
.factory('planoResource', planoResource);
function planoResource(Service) {
var service = {
listaPlanos: listaPlanos,
inserePlano:inserePlano,
alteraPlano: alteraPlano,
getPlanoById: getPlanoById,
deletePlano: deletePl... | deynesonborba/SmallBI | SmallBI_FrontEnd/app/scripts/plano/plano.resource.js | JavaScript | unlicense | 947 |
/*! WebUploader 0.1.6 */
/**
* @fileOverview 让内部各个部件的代码可以用[amd](https://github.com/amdjs/amdjs-api/wiki/AMD)模块定义方式组织起来。
*
* AMD API 内部的简单不完全实现,请忽略。只有当WebUploader被合并成一个文件的时候才会引入。
*/
(function( root, factory ) {
var modules = {},
// 内部require, 简单不完全实现。
// https://github.com/amdjs/amdjs-api/wiki... | yuzhiping/jeeplus | jeeplus-web/src/main/webapp/static/plugins/webuploader/webuploader.js | JavaScript | apache-2.0 | 280,982 |
/**
* Dataverse FileBrowser configuration module.
*/
var $ = require('jquery');
var HGrid = require('hgrid');
var Rubeus = require('rubeus');
var bootbox = require('bootbox');
var osfHelpers = require('osfHelpers');
// Private members
function refreshDataverseTree(grid, item, state) {
var data = item.data || {};
... | kushG/osf.io | website/addons/dataverse/static/dataverseRubeusCfg.js | JavaScript | apache-2.0 | 3,351 |
/*!
* jQuery UI 1.8.9
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI
*/
(function(c,j){function k(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility"... | SEGULL/Mis-Proyectos-Personales | System/web/js/jquery-ui-1.8.9.custom.min.js | JavaScript | apache-2.0 | 207,149 |
// 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 un... | apache/couchdb-futon | script/test/users_db_security.js | JavaScript | apache-2.0 | 13,194 |
/* @flow */
'use strict';
import {expect} from 'chai';
import ContigInterval from '../main/ContigInterval';
describe('ContigInterval', function(done) {
it('should have basic accessors', function(done) {
var tp53 = new ContigInterval(10, 7512444, 7531643);
expect(tp53.toString()).to.equal('10:7512444-75316... | hammerlab/pileup.js | src/test/ContigInterval-test.js | JavaScript | apache-2.0 | 3,893 |
'use strict'
var stringifySync = require('./safe-json').stringifySync
var util = require('util')
var Readable = require('readable-stream')
var os = require('os')
module.exports = Logger
var LEVELS = {
'trace': 10,
'debug': 20,
'info': 30,
'warn': 40,
'error': 50,
'fatal': 60
}
util.inherits(Logger, Read... | singhshashi/tweetsmart | node_modules/newrelic/lib/util/logger.js | JavaScript | apache-2.0 | 3,220 |
'use strict'
const assert = require('assert')
const { SdUtils } = require('../lib/sdutils')
describe('#sdutils', function () {
it('should handle base properties', function () {
var res = SdUtils.insertByPath(null, 'foo', 'test')
assert.deepEqual(res, { foo: 'test' })
})
it('should handle nested propert... | couchbase/couchnode | test/sdutils.test.js | JavaScript | apache-2.0 | 613 |
// Copyright 2017 Dell Inc. or its subsidiaries. All Rights Reserved.
/* jshint node: true */
'use strict';
describe(require('path').basename(__filename), function() {
var schemaFileName = 'dell-wsman-get-config-catalog.json';
var canonical = {
serverIP: "1.1.1.1",
serverUsername: "root",
... | AlaricChan/on-tasks | spec/lib/task-data/schemas/dell-wsman-get-config-catalog-spec.js | JavaScript | apache-2.0 | 1,818 |
define(
({
_widgetLabel: "Pulsante Home"
})
); | nickperez1285/truck-hunt-hackathon | server/apps/2/widgets/HomeButton/nls/it/strings.js | JavaScript | apache-2.0 | 62 |
/*global define,$,dojo,setTimeout */
/*jslint sloppy:true */
/*
| Copyright 2014 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
|
| http://www.apache.org/licenses/LICENSE-2.0
|
| Un... | etes/skjenkebevilling | js/widgets/details-panel/inspection-form.js | JavaScript | apache-2.0 | 74,668 |
/*
* 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/serviceFabric/lib/models/nodeHealthReport.js | JavaScript | apache-2.0 | 2,221 |
'use strict'
const ActionHero = require('actionhero')
module.exports = class MyAction extends ActionHero.Action {
constructor () {
super()
this.name = '%%name%%'
this.description = '%%description%%'
this.outputExample = {}
}
async run (data) {
// your logic here
}
}
| crrobinson14/actionhero | bin/templates/action.js | JavaScript | apache-2.0 | 297 |
/*
* Copyright 2022 ThoughtWorks, 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 agr... | gocd/gocd | server/src/main/webapp/WEB-INF/rails/app/assets/javascripts/old_application.js | JavaScript | apache-2.0 | 4,465 |
var common = require('../common-tap.js')
var fs = require("fs")
var test = require("tap").test
var rimraf = require("rimraf")
var npm = require("../../")
var http = require("http")
var mr = require("npm-registry-mock")
var okFile = new Buffer(
'/**package\n' +
' * { "name": "npm-test-peer-deps-file"\n' +
' * , "main":... | fabm/BabyHelp | node_modules/npm/test/tap/peer-deps-invalid.js | JavaScript | apache-2.0 | 2,242 |
/* global UTILS */
'use strict';
angular.module('alienUiApp').controller('UploadCtrl', [ '$scope', '$upload', function($scope, $upload) {
// states classes
var statesToClasses = {
'error': 'danger',
'success': 'success',
'progress': 'info'
};
$scope.uploadInfos = [];
$scope.upload = [];
$scope... | igorng/alien4cloud | alien4cloud-ui/yo/app/scripts/controllers/upload.js | JavaScript | apache-2.0 | 2,467 |
'use strict';
var generators = require('yeoman-generator');
var user = require('../node_modules/yeoman-generator/lib/actions/user');
var config = {};
var userName;
module.exports = generators.Base.extend({
_fistCharToUpper: function(string){
return string.replace(/^./, string[0].toUpperCase());
},
promptin... | cboling/xos | views/ngXosLib/generator-xos/app/index.js | JavaScript | apache-2.0 | 4,710 |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.0-rc4-master-b1c1bde
*/
(function( window, angular, undefined ){
"use strict";
/**
* @ngdoc module
* @name material.components.divider
* @description Divider module!
*/
angular.module('material.components.divider', [
'... | INK-Team/INK-Project | app/www/lib/angular-material/modules/js/divider/divider.js | JavaScript | apache-2.0 | 1,086 |
var bcrypt = require('bcryptjs');
var models = require('../models');
var express = require('express');
var router = express.Router();
var keepresp = [];
// dashboard
router.get('/', function(req, res) {
models.User.findOne({
where: { email: req.session.email }
}).then(function(response) {
if (r... | bryce-richards/dot-planner | controllers/users_controller.js | JavaScript | apache-2.0 | 8,172 |
import React from 'react';
import FontAwesome from 'react-fontawesome';
import PropTypes from 'prop-types';
import { DropdownButton, MenuItem } from 'react-bootstrap';
import { hashHistory } from 'react-router';
import PageConsts from '../../utils/Consts/PageConsts';
import styles from './headernav.module.css';
cons... | kryptnostic/gallery | src/components/headernav/AccountMenu.js | JavaScript | apache-2.0 | 909 |
var app = angular.module('demo', ['elasticui']);
app.constant('euiHost', 'http://localhost:9200'); <!-- TODO: change to your host-->
app.controller('IndexController', function($scope) {
$scope.indexName = "INDEX_NAME"; <!--TODO: change to your index-name -->
});
| svola/ElasticUI-extension | materializecss-template/js/app.js | JavaScript | apache-2.0 | 271 |
/*
* 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.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/serviceFabric/lib/models/imageStoreContent.js | JavaScript | apache-2.0 | 2,062 |
/**
* This file contains a Dojo AMD port of the Blockly library
* @author Chris Jackson
*/
define([
"dojo/_base/declare",
"dojo/_base/lang",
"dojo/_base/array",
"dojo/dom-geometry",
"dijit/layout/BorderContainer",
"dijit/layout/ContentPane",
"dijit/layout/Acco... | cdjackson/dBlockly | dojoblockly/Blockly.js | JavaScript | apache-2.0 | 5,786 |
/**
*
* @authors fudapeng (icefirefd@163.com)
* @date 2016-01-12 16:04:06
* @version $Id$
* depend jquery.jsonrpcclient.js
*/
(function($) {
'use strict';
var Monitor = function(targetId){
this.show = false;
this.progress = {};
this.maskTarget = null;
var pushMessage = function... | freiby/flex | server/nirvana-plugins/nirvana-resources/src/main/webapp/js/nirvana.rpc.js | JavaScript | apache-2.0 | 2,203 |
import {Services} from '#service';
import {VisibilityModel} from './visibility-model';
import {dev, user} from '#utils/log';
import {dict, map} from '#core/types/object';
import {getFriendlyIframeEmbedOptional} from '../../../src/iframe-helper';
import {getMinOpacity} from './opacity';
import {getMode} from '../../../s... | jridgewell/amphtml | extensions/amp-analytics/0.1/visibility-manager.js | JavaScript | apache-2.0 | 25,566 |
//// [collisionThisExpressionAndLocalVarInConstructor.ts]
class class1 {
constructor() {
var x2 = {
doStuff: (callback) => () => {
var _this = 2;
return callback(this);
}
}
}
}
class class2 {
constructor() {
var _this = 2;
... | synaptek/TypeScript | tests/baselines/reference/collisionThisExpressionAndLocalVarInConstructor.js | JavaScript | apache-2.0 | 1,138 |
var Gritter = function () {
$('#add-sticky').click(function () {
var unique_id = $.gritter.add({
// (string | mandatory) the heading of the notification
title: 'This is a sticky notice!',
// (string | mandatory) the text inside the notification
text: 'Lorem ... | tanvirshuvo/abtec | target/ABTeC/resources/js/gritter.js | JavaScript | apache-2.0 | 4,351 |
import { expect } from 'chai';
import { describe, it } from 'mocha';
import AdhocMetric, { EXPRESSION_TYPES } from '../../../src/explore/AdhocMetric';
import { AGGREGATES } from '../../../src/explore/constants';
const valueColumn = { type: 'DOUBLE', column_name: 'value' };
describe('AdhocMetric', () => {
it('sets ... | timifasubaa/incubator-superset | superset/assets/spec/javascripts/explore/AdhocMetric_spec.js | JavaScript | apache-2.0 | 6,228 |
/*
* 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.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/iothub/lib/models/routeErrorPosition.js | JavaScript | apache-2.0 | 1,334 |
/*
* Copyright 2013 Mirantis, 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 ... | koder-ua/nailgun-fcert | nailgun/ui_tests/test_cluster_logs.js | JavaScript | apache-2.0 | 2,239 |
/**
* Copyright 2021 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 | src/polyfills/custom-elements.extern.js | JavaScript | apache-2.0 | 792 |
(function() {
'use strict';
angular.module('VINYLTAP.model.swap', [])
.service('Swap', function($http){
this.createSwap = function(swap){
return $http.post('/swaps', swap);
}
this.updateSwap = function(id, swap){
return $http.patch('/swaps/' + id, swap);
}
this.getSwapsToMe = func... | geraldanekwe/vinyl-tap | foundation/client/assets/js/models/swap.js | JavaScript | apache-2.0 | 506 |
/* 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... | stefan-ziel/Activiti | modules/activiti-ui/activiti-app/src/main/webapp/workflow/scripts/services/form-service.js | JavaScript | apache-2.0 | 2,775 |
/**
_ _____ _ _ _
| | __ \ (_) | | | |
___ ___ | | |__) |___ ___ _ ______ _| |__ | | ___
/ __/ _ \| | _ // _ \/ __| |_ / _` | '_ \| |/ _ \
| (_| (_) | | | \ \ __/\__ \ |/ / (_| | |_) | | __/
\___\___/|_|_| \_\__... | fywxin/base | system-parent/system-ui/src/main/webapp/html/plugins/grid/src/colResizable-1.5.source.js | JavaScript | apache-2.0 | 18,973 |
'use strict';
function MemoryStore(windowMs) {
var hits = {};
this.incr = function(key, cb) {
if (hits[key]) {
hits[key]++;
} else {
hits[key] = 1;
}
cb(null, hits[key]);
};
this.resetAll = function() {
hits = {};
};
// export an API to allow hits from o... | gportillo94/my-app-123-1481569150340 | node_modules/express-rate-limit/lib/memory-store.js | JavaScript | apache-2.0 | 533 |
var _ = require('lodash');
var BPlusTree = require('./bplustree');
function tindex (key,tcoll,options,name) {
this.options = options || {};
this.name = name || key+'_';
this._unique = this.options.unique || false;
this._c = tcoll;
this._nuls = {};
this._array = this.options._tiarr || false;
this.key = key[0][0]... | nickperez1285/truck-hunt-hackathon | server/node_modules/tingodb/lib/tindex.js | JavaScript | apache-2.0 | 3,563 |
import https from 'https';
import axios from 'axios';
import {
AWX_E2E_URL,
AWX_E2E_USERNAME,
AWX_E2E_PASSWORD
} from './settings';
const session = axios.create({
baseURL: AWX_E2E_URL,
xsrfHeaderName: 'X-CSRFToken',
xsrfCookieName: 'csrftoken',
httpsAgent: new https.Agent({
reject... | GoogleCloudPlatform/sap-deployment-automation | third_party/github.com/ansible/awx/awx/ui/test/e2e/api.js | JavaScript | apache-2.0 | 1,484 |
define([
'foreground/view/prompt/clearStreamPromptView'
], function (ClearStreamPromptView) {
'use strict';
describe('ClearStreamPromptView', function () {
beforeEach(function () {
this.documentFragment = document.createDocumentFragment();
this.view = new ClearStreamPromptV... | 1hella/StreamusChromeExtension | src/js/test/foreground/view/prompt/clearStreamPromptViewTest.js | JavaScript | apache-2.0 | 1,209 |
'use strict';
var should = require('should');
var app = require('../../app');
var request = require('supertest');
describe('GET /api/reports', function() {
it('should respond with JSON array', function(done) {
request(app)
.get('/api/reports')
.expect(200)
.expect('Content-Type', /json/)
... | erezcarmel/timetracker | server/api/reports/reports.spec.js | JavaScript | apache-2.0 | 464 |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.12/esri/copyright.txt for details.
//>>built
define("esri/nls/jsapi_fi-fi",{"esri/nls/jsapi":{findHotSpotsTool:{hotspotsPointDefine:"Analysoi \x3cb\x3e${layername}\x3c/b\x3e, jotta l\u00f6yd\u00e4t tilastollis... | aconyteds/Esri-Ozone-Map-Widget | vendor/js/esri/arcgis_js_api/library/3.12/3.12compact/esri/nls/jsapi_fi-fi.js | JavaScript | apache-2.0 | 98,599 |
import {bind, wire} from 'hyperhtml';
import config from '../../../config.json';
/**
* The HyperHTML view displaying the channel guide.
*/
export default class ChannelGuide {
/**
* Default constructor for setting the values
*
* @param {HTMLElement} element - The HTML element to bind/adopt
* @param {Arr... | codeinthewoods/now-playing-yle | app/scripts/views/ChannelGuide.js | JavaScript | apache-2.0 | 5,445 |
/*************************************************************
*
* MathJax/jax/output/SVG/fonts/STIX-Web/fontdata-extra.js
*
* Adds extra stretchy characters to the STIX-Web fonts
* Copyright (c) 2013-2017 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... | jinntrance/mathjax | unpacked/jax/output/SVG/fonts/STIX-Web/fontdata-extra.js | JavaScript | apache-2.0 | 23,784 |
var assert = require('assert');
var test = require('../basePersistenceTest');
describe('jive', function () {
describe('#persistence.file', function () {
it('save', function (done) {
var jive = this['jive'];
var testUtils = this['testUtils'];
testUtils.createTempDir().... | jivesoftware/jive-sdk | test/unit/persistence/testcases/file.js | JavaScript | apache-2.0 | 2,939 |
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component, PropTypes } from 'react';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
const CLASS_ROOT = CSSClassnames.CONTROL_ICON;
const COLOR_IN... | codeswan/grommet | src/js/components/icons/base/PlatformDropbox.js | JavaScript | apache-2.0 | 2,018 |
/*
<UserID>
name - user name
score - score
extra - extra data like photo
updateAt - timestamp of last score updating
*/
// ECMAScript 5 strict mode
"use strict";
assert2(cr, "cr namespace not created");
assert2(cr.plugins_, "cr.plugins_ not created");
/////////////////////////////////////
// Plugin class
cr.p... | jasonshortphd/construct2games | plugins/plugins/rex_firebase_leaderboard/runtime.js | JavaScript | apache-2.0 | 14,539 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: |
When String is called as a function rather than as a constructor, it
performs a type conversion
es5id: 15.5.1.1_A1_T5
description: Call String(x), where x is undefin... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/String/S15.5.1.1_A1_T5.js | JavaScript | bsd-2-clause | 982 |
// import React and Redux dependencies
var React = require('react');
var connect = require('react-redux').connect;
var Measure = require('./Measure');
function mapStatetoProps (state, ownProps) {
return {
name: state.DepVars.getIn([ownProps.depVarId, 'name']),
measureIds: state.DepVars.getIn([ownProps.depVa... | mdboop/francis | src/containers/RunAdHocExperiment/DepVar.js | JavaScript | bsd-2-clause | 931 |
/*
* 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | espadrine/opera | chromium/src/third_party/WebKit/Source/devtools/front_end/DOMBreakpointsSidebarPane.js | JavaScript | bsd-3-clause | 15,251 |
/*!
* jquery.fancytree.debug.js
*
* Miscellaneous debug extensions.
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
*
* Copyright (c) 2008-2016, Martin Wendt (http://wwWendt.de)
*
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @ver... | Honvid/yshop | common/vendor/fancytree/assets/src/jquery.fancytree.debug.js | JavaScript | bsd-3-clause | 3,731 |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... | exponentjs/exponent | packages/jest-expo-puppeteer/build/build-expo.js | JavaScript | bsd-3-clause | 1,574 |
// Used exclusively for testing in PhantomJS environment.
// https://gist.github.com/paulirish/1579671
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. ... | chen-ye/chendr | src/rAF.js | JavaScript | bsd-3-clause | 1,327 |
/*
*######################################
* eWebEditor V10.3 - Advanced online web based WYSIWYG HTML editor.
* Copyright (c) 2003-2015 eWebSoft.com
*
* For further information go to http://www.ewebeditor.net/
* This copyright notice MUST stay intact for use.
*######################################
*/
//##########... | lloydz/integle_sdes | frontend/web/editor2/language/zh-tw.js | JavaScript | bsd-3-clause | 35,843 |
var oscar = (function(o, $) {
o.getCsrfToken = function() {
// Extract CSRF token from cookies
var cookies = document.cookie.split(';');
var csrf_token = null;
$.each(cookies, function(index, cookie) {
cookieParts = $.trim(cookie).split('=');
if (cookieParts[... | DrOctogon/unwash_ecom | oscar/static/oscar/js/oscar/dashboard.js | JavaScript | bsd-3-clause | 12,762 |
jQuery(function($){
$.datepicker.regional['ar-QA'] = {"Name":"ar-QA","closeText":"Close","prevText":"Prev","nextText":"Next","currentText":"Today","monthNames":["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليه","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],"monthNamesShort":["يناير","فبراير","مارس","أبريل","... | diiceas/adukacyja.info | Scripts/jquery-ui-i18n/jquery.ui.datepicker-ar-QA.js | JavaScript | bsd-3-clause | 936 |
const assert = require("assert");
const fs = require("fs");
const path = require("path");
const antlr4 = require("antlr4/index");
const ReportingErrorListener = require("./utils").WdlParserErrorListener;
const WdlLexer = require("../src/WdlLexer").WdlLexer;
const WdlParser = require("../src/WdlParser").WdlParser;
des... | openwdl/wdl | versions/development/parsers/antlr4/JavaScript/test/WdlParserTests.js | JavaScript | bsd-3-clause | 2,037 |
(function(window){
var urlCount = 0,
NativeMediaSource = window.MediaSource || window.WebKitMediaSource || {},
nativeUrl = window.URL || {},
EventEmitter,
flvCodec = /video\/flv; codecs=["']vp6,aac["']/,
objectUrlPrefix = 'blob:vjs-media-source/';
EventEmitter = function(){};
EventE... | tangyanhan/homesite | static/js/videojs-media-sources.js | JavaScript | mit | 4,963 |
// PLUGIN: TV - an interactive debug console plugin for hapi
// TV is a simple web page in which developers can view server logs for their requests.
// https://github.com/hapijs/tv
/*
var config = require("config");
module.exports = function registerTv(server){
server.register(
{
register: r... | paulovieira/clima-madeira | server/plugins/tv.js | JavaScript | mit | 607 |
#!/usr/bin/env babel-node --optional es7.asyncFunctions
import fs from 'fs';
import path from 'path';
import { Schema } from '../data/schema';
import { graphql } from 'graphql';
import { introspectionQuery } from 'graphql/utilities';
async () => {
var result = await (graphql(Schema, introspectionQuery));
if (resu... | jnuine/relay-chat | scripts/updateSchema.js | JavaScript | mit | 541 |
import generateConfig from '../../rollup-generate-config';
import pkg from './package.json';
export default generateConfig(pkg, 'valueTypes');
| InventingWithMonster/popmotion | packages/style-value-types/rollup.config.js | JavaScript | mit | 144 |
(function (angular) {
'use strict';
angular.module('birdyard.users')
.factory('authService', ['$rootScope', '$timeout', '$q', 'firebaseService', '$Auth', '$firebaseObject', 'colorService', 'presenceService',
function ($rootScope, $timeout, $q, firebaseService, $Auth, $firebaseObject, colorService, pre... | bebopchat/bebop | src/modules/user/services/auth-svc.js | JavaScript | mit | 5,200 |
import { RequestHook, Selector } from 'testcafe';
import { resolve } from 'path';
const ReExecutablePromise = require(resolve('./lib/utils/re-executable-promise'));
export default class CustomHook extends RequestHook {
constructor (config) {
super(null, config);
this.pendingAjaxRequestIds = new S... | DevExpress/testcafe | test/functional/fixtures/regression/gh-4516/testcafe-fixtures/index.js | JavaScript | mit | 1,674 |
module.exports = {
blog: require('./blog'),
auth: require('./auth')
};
| V-Tom/vue-blog | src/t-tom.me/controller/index.js | JavaScript | mit | 75 |
import mixpanel from 'mixpanel-browser';
import {editorReady} from '../../actions/instrumentation';
import {makeInstrumentEnvironmentReady} from '../instrumentEnvironmentReady';
import {makeTestLogic} from './helpers';
test('dispatches to mixpanel on the first editor ready action', async () => {
const testLogic = ... | outoftime/learnpad | src/logic/__tests__/instrumentEnvironmentReady.test.js | JavaScript | mit | 856 |
(function (define) {
define( function ( ){
return { name: 'one' };
});
}(typeof define === 'function' && define.amd ? define : function () {
}));
| quantumlicht/collarbone | public/js/libs/rjs/build/tests/lib/namespaceMinified/modules/one.js | JavaScript | mit | 173 |
// If you want to suggest a new language you can use this file as a template.
// To reduce the file size you should remove the comment lines (the ones that start with // )
if(!window.calendar_languages) {
window.calendar_languages = {};
}
// Here you define the language and Country code. Replace en-US with your own.
/... | Adoxio/xRM-Portals-Community-Edition | Samples/MasterPortal/Areas/EntityList/js/language/he-IL.js | JavaScript | mit | 4,878 |
require("./node");
var transform = module.exports = require("../transformation");
transform.options = require("../transformation/file/options");
transform.version = require("../../../package").version;
transform.transform = transform;
transform.run = function (code, opts = {}) {
opts.sourceMaps = "inline";
retur... | azu/babel | src/babel/api/browser.js | JavaScript | mit | 2,148 |
module.exports = require('./lib/connect')
| jaketrent/redux-react-connect-by-name | index.js | JavaScript | mit | 42 |
import Ember from 'ember';
export default Ember.Component.extend({
tagName: '',
errorMessages: Ember.computed('errors', function() {
if (this.get('errors.length')) {
return `${ this.get('errors').join(', ') }.`;
}
}),
actions: {
clearMessages() {
this.set('errors', null);
}
}
})... | blakepettersson/dashboard.aptible.com | app/components/spd-errors/component.js | JavaScript | mit | 322 |
var cp_space_serializer_8h =
[
[ "cpSpaceSerializerDelegate", "classcp_space_serializer_delegate.html", "classcp_space_serializer_delegate" ],
[ "cpSpaceSerializer", "classcp_space_serializer.html", "classcp_space_serializer" ],
[ "__CPSPACESERIALIZER_H__", "cp_space_serializer_8h.html#aa21d15bcdad4b0f9b8c8... | pIkEL618/cocos2DTriangles | htmldoc/cp_space_serializer_8h.js | JavaScript | mit | 537 |
/*
Siesta 2.0.5
Copyright(c) 2009-2013 Bryntum AB
http://bryntum.com/contact
http://bryntum.com/products/siesta/license
*/
/**
@class Siesta.Recorder.TargetExtractor.Recognizer.DatePicker
*
* A class recognizing the Ext JS DatePicker component
**/
Class('Siesta.Recorder.TargetExtractor.Recognizer.DatePicker', {
... | OhmzTech/AppInspector | app/test/siesta-2.0.5-lite/lib/Siesta/Recorder/TargetExtractor/Recognizer/DatePicker.js | JavaScript | mit | 607 |
var mongoose = require('mongoose');
var User = mongoose.model('User');
// Estrategia de autenticación con Twitter
var TwitterStrategy = require('passport-twitter').Strategy;
// Estrategia de autenticación con Facebook
var FacebookStrategy = require('passport-facebook').Strategy;
// Fichero de configuración donde se enc... | sucendo/passportjs | passport.js | JavaScript | mit | 3,145 |
/*!
* Bootstrap-select v1.13.1 (https://developer.snapappointments.com/bootstrap-select)
*
* Copyright 2012-2018 SnapAppointments, LLC
* Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE)
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
... | ka215/WP-Gentelella | vendors/bootstrap-select/dist/js/i18n/defaults-da_DK.js | JavaScript | mit | 1,477 |
'use_strict';
/*
* Model Names Register:
* only registered model can have relations
*
* Relations register:
* there must be some evidence of relations, to prevent duplicities,
* and easy getting relation details, such as type, or constructor
*
*/
var _models = {};
var _relations = {};
module.exports = {
... | nodejs-enterprise/model | lib/register.js | JavaScript | mit | 2,120 |
var _ = require('lodash'),
deepExtend = require('deep-extend');
module.exports = function (queryObj, properties, deep) {
return function updateRelations(assetGraph) {
assetGraph.findRelations(queryObj).forEach(function (relation) {
if (deep) {
deepExtend(relation, properties... | jiumx60rus/grishyGhost | staticDecor/node_modules/assetgraph/lib/transforms/updateRelations.js | JavaScript | mit | 428 |
Date.prototype.format = function(format) {
var o = {
"M+" : this.getMonth() + 1, // month
"d+" : this.getDate(), // day
"h+" : this.getHours(), // hour
"m+" : this.getMinutes(), // minute
"s+" : this.getSeconds(), // second
"q+" : Math.floor((this.getMonth() + 3) / 3), // quarter
"S" : this.getMillisecon... | liufeng0103/bnade-web-ssh | src/main/resources/static/js/main.js | JavaScript | mit | 670 |
(function() {
"use strict";
describe('Mouse controls - noSwitching Range Horizontal', function() {
var helper,
RzSliderOptions,
$rootScope,
$timeout;
beforeEach(module('test-helper'));
beforeEach(inject(function(TestHelper, _RzSliderOptions_, _$rootScope_, _$timeout_) {
helper... | kddc/angularjs-slider | tests/specs/mouse-controls/noSwitching-range-slider-horizontal-test.js | JavaScript | mit | 4,654 |
function exposeTestFunctionNames() {
return [
'testGetItems',
'testGetNext',
'testGetPrev',
'testEach'
];
}
function testGetItems() {
var eventSource = tm.timeline.getBand(0).getEventSource(), items, item;
assertEquals("Four items in eventSource", 4, eventSource.getCount... | fivejjs/timemap_modified | tests/iterationTests.js | JavaScript | mit | 4,895 |
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
var pkg = grunt.file.readJSON('package.json');
var colors = {
'red': '#F44336',
'pink': '#E91E63',
'purple': '#9C27B0',
'deep-purple': '#673AB7',
'indigo': '#3F51B5',
'blue': '#2196F3',
... | afonsof/jenkins-material-theme | Gruntfile.js | JavaScript | mit | 6,513 |
/**
* @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
(function(global) {
glo... | Toxicable/angular | packages/common/locales/global/sw.js | JavaScript | mit | 2,828 |
Resizeable = Class.create();
Resizeable.prototype = {
startX: null,
startY: null,
startWidth: null,
startHeight: null,
active: false,
elem: null,
cont: null,
handle: null,
onend: null,
minWidth: 0,
minHeight: 0,
initialize: function(container,element,options) {
this.cont = $(co... | cykod/Webiva | public/javascripts/resize.js | JavaScript | mit | 3,006 |
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: [
'webpack-dev-server/client?http://localhost:3000',
'webpack/hot/only-dev-server',
'./src/main'
],
output: {
path: path.join(__dirname, 'public', 'dist'),
filename: 'app.js',
publicPath: 'http://local... | bhamodi/nuclear-js | examples/hot-reloading/webpack.config.js | JavaScript | mit | 584 |
$(function() {
$(".article-sidebar .sticky").css('width', $(".article-sidebar .sticky").width()-2);
$(".article-sidebar .sticky").sticky({topSpacing:45});
$(".article-sidebar ul.categories a").on('click', function(e) {
if (!$(this).siblings('ul').length)
return;
e.preventDefault(... | ChrononGit/hackthis.co.uk | html/files/js/articles.js | JavaScript | mit | 1,088 |
"use strict";
// this prevents Rekuire from being cached, so 'parent' is always updated
delete require.cache[require.resolve(__filename)];
var path = require('path');
var scanner = require('./helpers/scanner');
var findBase = require('./helpers/findBase');
var baseDir = findBase(module.parent.paths);
var pkg = requi... | skt90u/ezpos | node_modules/rekuire/lib/main.js | JavaScript | mit | 3,280 |
let WebpackExtractPlugin = require('extract-text-webpack-plugin')
class ExtractTextPluginFactory {
/**
* Create a new class instance.
*
* @param {string|boolean} cssPath
*/
constructor(mix, cssPath) {
if (typeof cssPath === 'boolean') {
cssPath = path.join(global.entry.b... | Zaltok/jugendjazzt | node_modules/laravel-mix/src/Vue/ExtractTextPluginFactory.js | JavaScript | mit | 2,083 |
'use strict';
var extname = require('../extname');
/**
* Constants
*/
var TARGET_TYPES = ['html', 'jade', 'slm', 'jsx', 'haml'];
var IMAGES = ['jpeg', 'jpg', 'png', 'gif'];
var DEFAULT_TARGET = TARGET_TYPES[0];
/**
* Transform module
*/
var transform = module.exports = exports = function (filepath, i, length, sou... | ksomville/Angular2-Hearthstone | node_modules/gulp-inject/src/transform/index.js | JavaScript | mit | 4,066 |