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 |
|---|---|---|---|---|---|
const factory = require("./../../lib/models").CommandLineToolFactory;
const wfFactory = require("./../../lib/models").WorkflowFactory;
const vcOutputRecord = {
"arguments": [
{
"position": 0,
"valueFrom": "sentinel_runtime=cores,$(runtime['cores']),ram,$(runtime['ram'])"
},
... | rabix/cwl-ts | src/tests/performance-tests.js | JavaScript | apache-2.0 | 21,571 |
define([
"backbone",
"underscore",
'moment'
], function(Backbone, _, Moment) {
'use strict';
var appletHelpers = {
getDateForChart: function(date) {
var data = date + '';
data = data.slice(0, 8);
data = data.replace(/(\d{4})(\d{2})(\d{2})/, '$1-$2-$3');
... | KRMAssociatesInc/eHMP | ehmp-ui/product/production/app/applets/vitals/appletHelpers.js | JavaScript | apache-2.0 | 2,008 |
'use strict';
/* Persistence service. */
var Idb = {
// cache of idb instances
instances: {}
};
/**
* options: {
* name: store name,
* key: key name
* indexes: index, name or full object {name: index name, keyPath: key path, unique: uniqueness}
* }
*/
Idb.PersistenceService = function(loggerFactory,... | wdupuy/newzr | web/lib/idb/idb.js | JavaScript | apache-2.0 | 18,122 |
'use strict';
app.factory("InsumoResource", function ($resource, CONST) {
return $resource(CONST.ws.urlSGP + 'insumo/:id', {id: '@_id'}, {
update: { method:'PUT' }
});
}); | thiMuniz/tcc_frontEnd | app/scripts/services/insumo.js | JavaScript | apache-2.0 | 179 |
'use strict';
require(['/assets/js/app.js'], function () {
require(['bootstrap'], function () {
var $windowHeight = $(window).height(),
$documentHeight = $(document).height(),
$bodyHeight = $('body').height(),
$footerHeight = $('#footer').height(),
$footerOffset = 40,
... | xiaxiazhu119/fuddi | Fuddi.Mall/assets/js/controllers/cms/frame.js | JavaScript | apache-2.0 | 1,306 |
/* caption: L20n; extensions: .l20n */
/*
* Copyright 2015 mozilla.org
*
* 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
*
* Unles... | aisle-moz/moz.l20n | modes/l20n.js | JavaScript | apache-2.0 | 1,050 |
var deseasesDatatable;
$(document).ready(function() {
setMenuItemActive();
TableManageButtons.init();
deseasesDatatable = $('#datatable').dataTable({
ajax: {
"type" : "POST",
"url": contextPath + "/ListDiseasesServlet",
"dataSrc": ""
},
"columns": [
{ "data"... | nonamejx/vmv2 | VMV2/WebContent/admin/js/disease-management.js | JavaScript | apache-2.0 | 5,397 |
/**
* Created by Administrator on 2017/11/19.
*/
/**
* Created by user on 2017/11/16.
*/
/**
* Created by user on 2017/11/14.
*/
layui.config({
base : "/SSM/static/js/"
}).use(['layer','form','jquery'],function(){
var layer = parent.layer === undefined ? layui.layer : parent.layer,
$ = layui.jque... | GodGrounp/ssm | src/main/webapp/static/page/admin/setuserrole.js | JavaScript | apache-2.0 | 1,772 |
var commonCityData = require('../../utils/city.js')
//获取应用实例
var app = getApp()
Page({
data: {
provinces:[],
citys:[],
districts:[],
selProvince:'请选择',
selCity:'请选择',
selDistrict:'请选择',
selProvinceIndex:0,
selCityIndex:0,
selDistrictIndex:0
},
bindCancel:function () {
wx.na... | eyeliving/mh-wechat | pages/address-add/index.js | JavaScript | apache-2.0 | 7,393 |
/* ============================================================================
Copyright (C) 2006-2018 Talend Inc. - www.talend.com
This source code is available under agreement available at
https://github.com/Talend/data-prep/blob/master/LICENSE
You should have received a copy of the agreement
along with thi... | Talend/data-prep | dataprep-webapp/src/app/components/datagrid/services/datagrid-external-service.spec.js | JavaScript | apache-2.0 | 11,570 |
const assert = require("assert").ok;
const constants = require("./constants");
const crypto = require("runtime-node-crypto");
const structures = require("./structures");
function Header() {
console.log(crypto);
this.magic = constants.headerMagic;
this.version = constants.version;
this.hostname = "127.0... | SpaceboyRoss01/PeabodyOS | src/system/sys/fs/telnetfs/header.js | JavaScript | apache-2.0 | 945 |
(function() {
'use strict';
describe('controllers', function(){
beforeEach(module('shiftGui'));
it('should define more than 5 awesome things', inject(function($controller) {
var vm = $controller('MainController');
expect(angular.isArray(vm.awesomeThings)).toBeTruthy();
expect(vm.awesom... | RobertBaron/Shapeshift-txStat | src/app/main/main.controller.spec.js | JavaScript | apache-2.0 | 375 |
import React, { Component } from 'react';
import {
StyleSheet,
TextInput,
View
} from 'react-native';
import colors from './../styles/colors';
import {fonts} from './../styles/fonts';
class Input extends Component {
constructor(props) {
super(props);
this.state = { text: '' };
}
_create = () => ... | zhangjunhd/react-examples | react-native-demo/Zebreto/src/components/Input.js | JavaScript | apache-2.0 | 1,507 |
var Helper_RegExp = function()
{
};
Helper_RegExp.lowerCharactor = '[^a-zaáàảãạăắằẳẵặâấầẩẫậeéèẻẽẹêếềểễệiíìỉĩịoóòỏõọôốồổỗộơớờởỡợuúùủũụưứừửữựyýỳỷỹỵđ]';
Helper_RegExp.buildRegExp = function(name)
{
var keyword = name.trim();
keyword = '(^|' + Helper_RegExp.lowerCharactor + ')' + keyword + '($|' + Helper_RegExp.l... | DinhNC/projectIS | Helper/RegExp.js | JavaScript | apache-2.0 | 630 |
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
zip: {
'build': {
src: ["*.html","img/*.*", "fonts/*", "css/*.*","js/*.js","js/lib/*.js","icon.png","package.json"],
dest: 'build/<%= pkg.name %>_v<%= pkg.version ... | FabMo/fabmo-example-app | GruntFile.js | JavaScript | apache-2.0 | 871 |
var selectedschool = Ti.App.Properties.getString('selectedschool');
if(selectedschool == 'Dalton Dokkum'){
createwindows('http://www3.pj.nl/dok_info_leerlingen/','http://www3.pj.nl/infoschermdokkum/');
}else if(selectedschool == 'De Dyk'){
createwindows('http://www3.pj.nl/dyk_info_leerlingen/','http://www3.pj.nl/... | Dylrak/Blind-Turtle | Resources/app.js | JavaScript | apache-2.0 | 17,094 |
import { axe } from 'jest-axe'
import { Provider } from 'react-redux'
import { render } from '@testing-library/react'
import SignIn from './signIn'
import configureStore from '../../store/configureStore'
it('renders without crashing', () => {
const { container } = render(
<Provider store={configureStore()}>
... | Terreii/andromeda-viewer | src/components/login/signIn.test.js | JavaScript | apache-2.0 | 999 |
// Copyright IBM Corp. 2015,2016. All Rights Reserved.
// Node module: eslint-config-strongloop
// This file is licensed under the Artistic License 2.0.
// License text available at https://opensource.org/licenses/Artistic-2.0
'use strict';
module.exports = require('./strongloop.json');
| strongloop/eslint-config-strongloop | index.js | JavaScript | artistic-2.0 | 290 |
/*!
* IBMi connector for LoopBack
*/
var SqlConnector = require('loopback-connector').SqlConnector;
var ParameterizedSQL = SqlConnector.ParameterizedSQL;
//dev
// Adapted for Node4.
>>>>>>> origin/master
var db = require('/QOpenSys/QIBM/ProdData/OPS/Node4/os400/db2i/lib/db2');
var util = require('util');
var debug ... | andrescolodrero/loopback-connector-ibmi | lib/db2i.js | JavaScript | artistic-2.0 | 22,980 |
// This file was procedurally generated from the following sources:
// - src/dstr-assignment/obj-prop-elem-target-yield-ident-invalid.case
// - src/dstr-assignment/syntax/for-of.template
/*---
description: When a `yield` token appears within the DestructuringAssignmentTarget of an AssignmentElement and outside of a gen... | sebastienros/jint | Jint.Tests.Test262/test/language/statements/for-of/dstr-obj-prop-elem-target-yield-ident-invalid.js | JavaScript | bsd-2-clause | 1,381 |
/**
* Copyright (c) 2014,Egret-Labs.org
* 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 li... | fatterx/llk-bailu | libs/core/egret/context/renderer/webgl/shaders/ColorTransformShader.js | JavaScript | bsd-2-clause | 2,847 |
/**
* Создает div.
*
* @author dew1983@mail.ru <Suvorov Andrey M.>
*/
Ext.define(
'FBEditor.editor.command.div.CreateCommand',
{
extend: 'FBEditor.editor.command.AbstractCreateUnboundedCommand',
elementName: 'div'
}
); | Litres/FB3Editor | Frontend/app/editor/command/div/CreateCommand.js | JavaScript | bsd-2-clause | 238 |
var SvgUtils = require('./svg-utilities')
, Utils = require('./utilities')
;
var ShadowViewport = function(viewport, options){
this.init(viewport, options)
}
/**
* Initialization
*
* @param {SVGElement} viewport
* @param {Object} options
*/
ShadowViewport.prototype.init = function(viewport, options) {
... | lsloss/svg-pan-zoom | src/shadow-viewport.js | JavaScript | bsd-2-clause | 8,396 |
// Copyright (c) 2011, OORS contributors
// 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 li... | belteshazzar/oors | oors/scripts/insert_before_action.js | JavaScript | bsd-2-clause | 1,863 |
var errors = require('../errors');
function RequestLocationHistory(data) {
data = data || {};
this._device = data.Device || null;
this._amount = +data.Amount || null;
if(this._device === null || this._amount === null) {
throw new errors.BadRequestError('missing device or amount');
}
}
Re... | miataru/miataru-server | lib/models/RequestLocationHistory.js | JavaScript | bsd-2-clause | 526 |
/**
* Controller de cadastro de um item de canvas.
* @author Marcio C. de Souza <marcio@kazale.com>
* @version 0.2.0
* @since 0.2.0
*/
'use strict';
angular.module( 'kzbmcMobileApp' ).controller( 'CanvasCadastrarCtrl', [ '$scope', '$routeParams', '$location', 'canvasService', 'projetoCanvasService',
function( ... | m4rciosouza/kzbmc-mobile | app/scripts/controllers/canvas/cadastrar.js | JavaScript | bsd-2-clause | 1,705 |
Clazz.declarePackage ("JU");
Clazz.load (["JU.InfTree"], "JU.InfBlocks", ["JU.InfCodes"], function () {
c$ = Clazz.decorateAsClass (function () {
this.mode = 0;
this.left = 0;
this.table = 0;
this.index = 0;
this.blens = null;
this.bb = null;
this.tb = null;
this.bl = null;
this.bd = null;
this.tl = null;
this.td = nul... | bas-rustenburg/jsmol-local | j2s/JU/InfBlocks.js | JavaScript | bsd-2-clause | 11,324 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/obj-ptrn-prop-ary-trailing-comma.case
// - src/dstr-binding/default/for-of-let.template
/*---
description: Trailing comma is allowed following BindingPropertyList (for-of statement)
esid: sec-for-in-and-for-of-statements-runtime-s... | sebastienros/jint | Jint.Tests.Test262/test/language/statements/for-of/dstr-let-obj-ptrn-prop-ary-trailing-comma.js | JavaScript | bsd-2-clause | 1,648 |
var _grape_compute_8h =
[
[ "compute", "_grape_compute_8h.html#a34d3c5a906b9c2908a7734be6d7d30de", null ]
]; | crurik/GrapeFS | Doxygen/html/_grape_compute_8h.js | JavaScript | bsd-2-clause | 112 |
(() => {
'use strict';
const
expect = require('expect'),
deepFreeze = require('deep-freeze'),
immutable = require('../src/immutable-array');
describe('Avoid Array Mutation', () => {
it('addCounter must return new list without mutating the existing list', () => {
const
listBefore =... | sudaraka/learn-redux | test/immutable-array.js | JavaScript | bsd-2-clause | 1,078 |
(function() {
var degreesToRadians = fabric.util.degreesToRadians;
fabric.util.object.extend(fabric.Object.prototype, /** @scope fabric.Object.prototype */ {
/**
* Returns true if object intersects with an area formed by 2 points
* @method intersectsWithRect
* @param {Object} selectionTL
... | Fake51/id-generator | fabric.js-1.1.0/src/object_geometry.mixin.js | JavaScript | bsd-2-clause | 9,676 |
dojo.provide("dijit.form._Spinner");
dojo.require("dijit.form.ValidationTextBox");
dojo.declare(
"dijit.form._Spinner",
dijit.form.RangeBoundTextBox,
{
// summary: Mixin for validation widgets with a spinner
// description: This class basically (conceptually) extends dijit.form.ValidationTextBox.
// It modi... | lortnus/zf1 | externals/dojo/dijit/form/_Spinner.js | JavaScript | bsd-3-clause | 4,251 |
/**
* Copyright (c) 2017, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or
* https://opensource.org/licenses/BSD-3-Clause
*/
/**
* tests/db/model/profile/update.js
*/
'use strict';
const expect = require('ch... | salesforce/refocus | tests/db/model/profile/update.js | JavaScript | bsd-3-clause | 2,088 |
/**
* 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.
*/
var React ... | pgavazzi/react-unity | website/src/react-unity/support.js | JavaScript | bsd-3-clause | 2,031 |
!function(a){"use strict";a.fn.select2.locales["zh-TW"]={formatNoMatches:function(){return"沒有找到相符的項目"},formatInputTooShort:function(a,b){var c=b-a.length;return"請再輸入"+c+"個字元"},formatInputTooLong:function(a,b){var c=a.length-b;return"請刪掉"+c+"個字元"},formatSelectionTooBig:function(a){return"你只能選擇最多"+a+"項"},formatLoadMore:f... | infrabel/docs-gnap | node_modules/gnap-theme-gnap-angular/js/select2/select2_locale_zh-TW.min.js | JavaScript | bsd-3-clause | 600 |
var mapnik = require('../');
var assert = require('assert');
var fs = require('fs');
var path = require('path');
describe('mapnik.Feature ', function() {
it('should throw with invalid usage', function() {
// no 'new' keyword
assert.throws(function() { mapnik.Feature(); });
// invalid args
... | mojodna/node-mapnik | test/feature.test.js | JavaScript | bsd-3-clause | 1,903 |
var classwblut_1_1hemesh_1_1_h_e___vertex_edge_rev_circulator =
[
[ "hasNext", "classwblut_1_1hemesh_1_1_h_e___vertex_edge_rev_circulator.html#abcef64faf6a030a4dbf1103487b7b057", null ],
[ "next", "classwblut_1_1hemesh_1_1_h_e___vertex_edge_rev_circulator.html#a558bccd0be91f76e75d71ffcb85707f0", null ],
[ "... | DweebsUnited/CodeMonkey | resources/hemesh/ref/html/classwblut_1_1hemesh_1_1_h_e___vertex_edge_rev_circulator.js | JavaScript | bsd-3-clause | 688 |
// tests for PUT /api/product
"use strict";
var fluid = require("infusion");
var namespace = "gpii.ul.product.put.tests";
var putTests = fluid.registerNamespace(namespace);
putTests.loader = require("../../../../../config/lib/config-loader");
putTests.config = putTests.loader.loadConfig(require("../../../.... | the-t-in-rtf/unified-listing | front-end/api/product/put/tests/product-put-jqunit.js | JavaScript | bsd-3-clause | 9,868 |
/*
* Copyright (c) 2008-2016, Massachusetts Institute of Technology (MIT)
* 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 above copyrig... | hadrsystems/iweb-modules | draw-menu/src/main/js/iweb/modules/DrawMenuModule.js | JavaScript | bsd-3-clause | 2,806 |
module("baidu.dom.getComputedStyle");
test("get style from style", function() {
if (ua.browser.ie) {
ok(true, "IE not supportted");
return;
}
expect(7);
var div = document.createElement('div');
var img = document.createElement('img');
document.body.appendChild(div);
div.appendChild(img);
div.id... | cnberg/Tangram-base | test/baidu/dom/getComputedStyle.js | JavaScript | bsd-3-clause | 3,329 |
angular
.module('agooDash', [ angularDragula(angular) ] )
.controller('scrum_boardCtrl', [
'$rootScope',
'$scope',
'tasks_list',
'dragulaService',
function ($rootScope,$scope,tasks_list,dragulaService) {
$rootScope.page_full_height = true;
$scope... | AgooDev/Dashboard | app/components/pages/scrum_boardController.js | JavaScript | bsd-3-clause | 3,093 |
'use strict';
const internals = {};
module.exports = () => {
return true;
};
| simon-p-r/node-template | lib/index.js | JavaScript | bsd-3-clause | 85 |
// @flow
import * as Immutable from "immutable";
import type { KernelspecsRef } from "../refs";
export type KernelspecsByRefCommunicationRecordProps = {
loading: boolean,
error: ?Object
};
export const makeKernelspecsByRefCommunicationRecord: Immutable.RecordFactory<
KernelspecsByRefCommunicationRecordProps
> =... | jdfreder/nteract | packages/core/src/state/communication/kernelspecs.js | JavaScript | bsd-3-clause | 710 |
/**
* @providesModule center
* @jsx React.DOM
*/
const React = require('React');
const assign = require('object-assign');
const center = React.createClass({
render() {
const {style, ...props} = this.props;
const newStyle = assign({}, style, {textAlign: 'center'});
return (
<div {...props} sty... | mpontus/jest | website/core/center.js | JavaScript | bsd-3-clause | 404 |
import { ActionsObservable } from "redux-observable";
import {
EXECUTE_CELL,
ABORT_EXECUTION,
ERROR_EXECUTING,
CLEAR_OUTPUTS,
UPDATE_CELL_STATUS,
UPDATE_CELL_PAGERS,
UPDATE_DISPLAY,
NEW_KERNEL
} from "../../../src/notebook/constants";
import { executeCell } from "../../../src/notebook/actions";
import ... | temogen/nteract | test/renderer/epics/execute-spec.js | JavaScript | bsd-3-clause | 12,807 |
/*
* Copyright (c) 2015, 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.
*
*/
/*global ja... | janicduplessis/react-docgen | bin/__tests__/react-docgen-test.js | JavaScript | bsd-3-clause | 6,935 |
(function() {
'use strict';
//module: django.shop, TODO: move this into a summary JS file
var djangoShopModule = angular.module('django.shop.search', ['django.shop.utils']);
// Directive <form shop-product-search ...> to be used in the form containing the input field
// for entering the search query
djangoShopModule.... | awesto/django-shop | shop/static/shop/js/search-form.js | JavaScript | bsd-3-clause | 1,768 |
#!/usr/bin/env node
'use strict';
var fs = require('fs'),
path = require('path');
function readJSONFile ( filepath ) {
return JSON.parse( fs.readFileSync( filepath, { encoding: 'utf8' }) );
}
function getDir (pkgName, defaultDir) {
try {
return readJSONFile( '.' + pkgName + 'rc').directory;
} catch (er... | aplazame/aplazame-js | auto-install.js | JavaScript | bsd-3-clause | 1,970 |
'use strict';
var wavesurfer;
// Init & load
function initAndLoadSpectrogram(colorMap) {
// Create an instance
let options = {
container: '#waveform',
waveColor: 'violet',
progressColor: 'purple',
loaderColor: 'purple',
cursorColor: 'navy',
plugins: [
... | katspaugh/wavesurfer.js | example/spectrogram/app.js | JavaScript | bsd-3-clause | 1,768 |
// Generated by CoffeeScript 1.7.1
/*
*Plugin to implement the MUC extension.
http://xmpp.org/extensions/xep-0045.html
*Previous Author:
Nathan Zorn <nathan.zorn@gmail.com>
*Complete CoffeeScript rewrite:
Andreas Guth <guth@dbis.rwth-aachen.de>
*/
(function() {
var Occupant, RoomConfig, XmppRoom,
... | A-StadLabs/datapeers | bower_components/strophejs-plugins/muc/strophe.muc.js | JavaScript | bsd-3-clause | 37,626 |
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
export default {"viewBox":"0 0 100 100","xmlns":"http://www.w3.org/2000/svg","path":[{"d":"M76 42H24a2 2 0 00-2 2v30a6 6 0 006 6h44a6 6 0 006-6V44a2 2 0 00-2-2zM50 76.1... | salesforce/design-system-react | icons/standard/schedule_objective.js | JavaScript | bsd-3-clause | 605 |
/**
* @file node-ral middleware
* @author hefangshi@baidu.com
* http://fis.baidu.com/
* 2014/9/4
*/
'use strict';
var RAL = require('./ral.js');
module.exports = function (options) {
RAL.init(options);
return function (req, res, next) {
req.RAL = RAL;
next();
};
};
| cuidingfeng/quantum | node_modules/yog2-kernel/node_modules/node-ral/lib/middleware.js | JavaScript | bsd-3-clause | 304 |
/**
* This is the initial point for the game.
*/
var Game = new Phaser.Game(Constants.GAME_WIDTH, Constants.GAME_HEIGHT, Phaser.AUTO, 'card-flipper');
// Choose a seed for the random generator.
Game.rnd.sow([Constants.GAME_SEED]);
// Add all states
Game.state.add('play', PlayState);
Game.state.add('setup', SetupSt... | Dovyski/face-tracking-games | card-flipper/card-flipper.js | JavaScript | bsd-3-clause | 524 |
import {configFromISO, configFromRFC2822} from './from-string';
import {configFromArray} from './from-array';
import {getParseRegexForToken} from '../parse/regex';
import {addTimeToArrayFromToken} from '../parse/token';
import {
expandFormat,
formatTokenFunctions,
formattingTokens,
} from '../format/forma... | hieupham0206/yii-cloudteam-app | vendor/bower/moment/src/lib/create/from-string-and-format.js | JavaScript | bsd-3-clause | 3,920 |
Gm.Comments = function() {
var last_click_on_comment = 0;
return {
name: 'Comments',
ContentInit: function() {
$('.comments form').sisyphus({
timeout: 30,
onSave: Gm.Comments.DraftSaved,
});
$('.spoiler').click(function(e) {
$(e.currentTarget).find('.spoiler-cont... | gamersmafia/gamersmafia | app/assets/javascripts/modules/global/comments.js | JavaScript | bsd-3-clause | 1,199 |
var vertexShader = function(attribute, uniforms){
var v = vec4.fromValues(
attribute.vertex[0],
attribute.vertex[1],
attribute.vertex[2],
1.0
);
vec4.transformMat4(v, v, uniforms.modelviewMatrix);
v[2] -= 4.0;
vec4.transformMat4(v, v, uniforms.projectionMatrix);
/* Important! Make a deep copy which the... | Madsy/jsRaster | src/test.js | JavaScript | bsd-3-clause | 1,980 |
import assign from 'lodash.assign';
const COLOR_NAMES = {
aliceblue: '#f0f8ff',
antiquewhite: '#faebd7',
aqua: '#00ffff',
aquamarine: '#7fffd4',
azure: '#f0ffff',
beige: '#f5f5dc',
bisque: '#ffe4c4',
black: '#000000',
blanchedalmond: '#ffebcd',
blue: '#0000ff',
blueviolet: '#8a2be2',
brown: '#a52a2a',
bur... | salesforce/design-system-react | utilities/color.js | JavaScript | bsd-3-clause | 8,318 |
define('dote-client/nls/addTopic_cs',{
'dijit/form/nls/validate':{"invalidMessage":"Zadaná hodnota není platná.","missingMessage":"Tato hodnota je vyžadována.","rangeMessage":"Tato hodnota je mimo rozsah."}
}); | kitsonk/dote | lib/dote-client/nls/addTopic_cs.js | JavaScript | bsd-3-clause | 215 |
"use strict";
module.exports = {
componentDidMount: function () {
this._thm_isEnabled = (
this.props.initialTarget &&
this.props.encodeTarget &&
this.props.decodeTarget);
if (this._thm_isEnabled) {
var target = (
this.props.decodeTarget(location.hash) ||
this.props.ini... | mietek/target-history-mixin | src/index.js | JavaScript | bsd-3-clause | 1,701 |
$('.datepicker').datepicker();
$('.preview').on('click', function(){
var src = $(this).attr('src');
$('#myPreview .modal-content').html('<img src="'+src+'" width="600px">');
$('#myPreview').modal();
});
$('.operations .view').on('click', function(){
var url = $(this).attr('href');
var id = $(this)... | fimak/rgktest | web/js/main.js | JavaScript | bsd-3-clause | 633 |
$.fn.loadContent = function (content, mimeType, append) {
if (append != true) this.empty();
if (mimeType == 'application/json') {
if ((typeof content) == 'string') content = JSON.parse(content);
if (Array.isArray(content)) {
content.forEach(function(entry) {
loadModel... | MaxNagl/droidBug | files/bugElements.js | JavaScript | bsd-3-clause | 28,830 |
console.log('THIS IS A TEST FOR THE IGNORE PARAM');
| markmur/docky | components/Loader/index.js | JavaScript | bsd-3-clause | 52 |
import $ from 'jquery';
import i18n from 'i18n';
import React from 'react';
import FileComponent from './file-component';
import EditorComponent from './editor-component';
import BulkActionsComponent from './bulk-actions-component';
import BaseComponent from './base-component';
import CONSTANTS from '../constants';
fu... | scott1702/silverstripe-assets-gallery | public/src/component/gallery-component.js | JavaScript | bsd-3-clause | 7,685 |
/*jslint nomen: true */
/*globals define: true */
define(function(require, exports, module) {
'use strict';
// Libs
var _ = require('lib/lodash');
var util = require('./project-utils');
/*
Original colors:
'#3567a4', - blue
'#8329cd', - purple
'#f4c431', - yellow
'#05b04c', - green
'#... | LocalData/localdata-dashboard | src/js/views/projects/project-newark.js | JavaScript | bsd-3-clause | 15,846 |
var expect = require('expect.js');
var require = require('./_require');
var style = require('../lib/style');
describe('styleFile', function() {
it('style stylus async', function(done) {
style.styleFile(__dirname + '/cases/one-section.styl', {encoding: 'utf8'}, function(data) {
expect(data.css).to.contain(... | lepture/ganam | tests/style.test.js | JavaScript | bsd-3-clause | 2,538 |
description("This test performs a check that :valid/:invalid CSS psudo selectors are lively applied.");
// Setup for static elements.
var form = document.createElement('form');
document.body.appendChild(form);
var nonForm = document.createElement('div');
document.body.appendChild(nonForm);
function makeInvalid() {
... | Workday/OpenFrame | third_party/WebKit/LayoutTests/fast/forms/resources/textarea-live-pseudo-selectors.js | JavaScript | bsd-3-clause | 2,826 |
// Generated by CoffeeScript 1.4.0
var Parser, fs, path, pkg, uglifyjs;
fs = require('fs');
path = require('path');
uglifyjs = (function() {
try {
return require('uglify-js');
} catch (_error) {}
})();
Parser = require('./parser');
pkg = require(path.join(__dirname, '..', '..', 'package.json'));
module.ex... | anagrius/dog | lib/dog/module.js | JavaScript | bsd-3-clause | 490 |
/*
* 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... | danakj/chromium | third_party/WebKit/Source/devtools/front_end/ui/InspectorView.js | JavaScript | bsd-3-clause | 20,482 |
var searchData=
[
['abstractdebuginfo_2ecpp',['AbstractDebugInfo.cpp',['../_abstract_debug_info_8cpp.html',1,'']]],
['abstractdebuginfo_2ehpp',['AbstractDebugInfo.hpp',['../_abstract_debug_info_8hpp.html',1,'']]],
['abstractprinter_2ecpp',['AbstractPrinter.cpp',['../_abstract_printer_8cpp.html',1,'']]],
['abstr... | mensinda/tracer | docs/html/search/files_0.js | JavaScript | bsd-3-clause | 586 |
if( CROWDLOGGER.version === undefined ){
CROWDLOGGER.version = {};
}
if( CROWDLOGGER.version.util === undefined ){
/**
* @namespace Provides utilities such as checking for updates.
*/
CROWDLOGGER.version.util = {};
/**
* Checks if there is a new version of the extension. If so, the user is
* notified. A cal... | hafeild/crowdlogger | unconfigured/extension-code-base/js/version.util.js | JavaScript | bsd-3-clause | 10,304 |
let $ = require("jquery");
let Vue = require("vue");
let ApplicationListModel = require("user/ApplicationListModel");
let ApplicationView = require("user/vue-components/ApplicationView");
require("toolkit");
let model, appView;
QUnit.module("user.app_view", {
beforeEach: function(assert) {
let done = assert.asy... | simphony/simphony-remote | frontend/tests/tests/user/test_application_view.js | JavaScript | bsd-3-clause | 4,960 |
// 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.
// TODO(dbeam): test for loading upacked extensions?
GEN('#include "chrome/browser/ui/webui/extensions/' +
'extension_settings_browsertest.h"');
... | vadimtk/chrome4sdp | chrome/browser/ui/webui/extensions/extension_settings_browsertest.js | JavaScript | bsd-3-clause | 14,770 |
var getEmailUser = function (e) {
var cpf = $(e).val();
$('.error_cpf').html('');
$('#email').val('');
if (cpf != '') {
$.ajax({
method: 'POST',
dataType: "json",
url: base_url_intranet + '/nucleo/users/infoUserAjax',
data: {search: cpf}
... | denners777/API-Phalcon | public/app/nucleo/session/register.js | JavaScript | bsd-3-clause | 871 |
Object.defineProperty(exports, "__esModule", { value: true });
var Static_1 = require("./Static");
var Localization = /** @class */ (function () {
function Localization() {
}
Localization.prototype.SetLang = function (lang) {
this.lang = lang;
return this;
};
Localization.prototype.G... | web-dev-server/web-dev-server | build/lib/Requests/Localization.js | JavaScript | bsd-3-clause | 1,673 |
import "jquery-ui/ui/widgets/autocomplete";
import _keys from "underscore/modules/keys";
/*
* tags.js
* Scripts to support tagging.
*/
(function($) {
// Initialize tagging features.
function init() {
initVocab();
initTagAdding(); // first because it visibly dims the Add button
initAutoComplete();
... | mozilla/kitsune | kitsune/sumo/static/sumo/js/tags.js | JavaScript | bsd-3-clause | 9,978 |
/*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial
Software License Agreement provided with the Software or, alternatively, in accordanc... | handsomegyr/ent | public/js/ext/src/grid/plugin/RowEditing.js | JavaScript | bsd-3-clause | 13,421 |
import { EventEmitter } from "events";
import dispatcher from "../dispatcher";
class SearchStore extends EventEmitter {
constructor() {
super()
this.Result = {
query: 'suche',
data: [{
id: '',
Username: '',
... | andsch/ezRAS2 | frontend/src/js/stores/SearchStore.js | JavaScript | bsd-3-clause | 843 |
// d3-view Version 0.6.10. Copyright 2017 quantmind.com.
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-collection'), require('d3-let'), require('object-assign'), require('d3-timer'), require('d3-selection'), require('d3-dispatch'), require('d3... | quantmind/giottojs.org | d3-view/0.6.10/d3-view.js | JavaScript | bsd-3-clause | 93,178 |
var assert = require("assert");
var mocha = require("mocha");
var Component = require("../../components/component");
var Components = require("../../components/components");
suite("Component", function() {
suite("Constructor", function() {
test("fails if colours is not a string", function() {
var block... | ArcticNature/build-tools | tests/components/test_component.js | JavaScript | bsd-3-clause | 8,845 |
/* ------------------------------------------------------------------------------------------------------
* BloopSuperGraph.js
*
* classe do component 'BloopSuperGraph'
* comportamento de interface para gráficos construídos a partir de tabelas HTML simples
* @author Saboia Tecnologia da Informação <relacionamen... | SaboiaTI/framework | shared/components/BloopSuperGraph.js | JavaScript | bsd-3-clause | 5,274 |
/**
* @author Jan Pecha, <janpecha@email.cz>
* @version 2012-09-27-1
* @license see license.txt
*/
var YtPlayer = YtPlayer || {};
YtPlayer.player = null;
YtPlayer.options = {};
YtPlayer.list = {};
YtPlayer.played = 0;
YtPlayer.create = function(elementId, videoList, options) {
// Default options
options =... | janpecha/ytplayer | ytplayer.js | JavaScript | bsd-3-clause | 6,714 |
"use strict";
var Sequelize = require('sequelize');
module.exports = function (sequelize, DataTypes) {
var User = sequelize.define("User", {
api_key: DataTypes.STRING,
}, {
classMethods: {
associate: function (models) {
User.hasMany(models.Miner);
... | Jakedavies/minebot | models/user.js | JavaScript | bsd-3-clause | 397 |
var chai = require('chai');
var expect = chai.expect;
var chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
var app = require('../../../app.js');
var models = require('../../../models');
var utils = require('../../utils');
var server;
describe('/quiz/:id', function() {
var qd;
before(funct... | project-awesome/pa-website | test/e2e/pages/quiz_id.test.js | JavaScript | mit | 2,522 |
/* Kazakh (UTF-8) initialisation for the jQuery UI date picker plugin. */
/* Written by Dmitriy Karasyov (dmitriy.karasyov@gmail.com). */
(function (factory) {
// AMD. Register as an anonymous module.
module.exports = factory(require('../datepicker'));;
}(function (datepicker) {
datepicker.regional['k... | yanhaijing/allorigin | components/jquery-ui/i18n/datepicker-kk.js | JavaScript | mit | 2,870 |
//= require chartkick
//= require Chart.bundle
| ankane/notable_web | app/assets/javascripts/notable_web.js | JavaScript | mit | 47 |
/*
* Globalize Culture tr-TR
*
* http://github.com/jquery/globalize
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* This file was generated by the Globalize Culture Generator
* Translation: bugs found in this f... | jordivila/Net_MVC_NLayer_Result | VsixMvcAppResult/VsixMvcAppResult.UI.Web/Scripts/jquery-globalize/lib/cultures/globalize.culture.tr-TR.js | JavaScript | mit | 1,834 |
---
permalink: "/projects/the-cost-of-education/map-hamilton-county-school-spending/map.js"
---
(function() {
"use strict";
var
container = document.querySelector("#container"),
map = document.querySelector("#map"),
sliders = document.querySelector("#sliders"),
mobile = +(container.offsetWidt... | metroideas/beta.metroideas.org | _pages/the-cost-of-education/map-hamilton-county-school-spending/map.js | JavaScript | mit | 14,685 |
class Search {
constructor() {
this.searchElement = document.querySelector('#search');
this.resultsContainer = document.querySelector('.results');
this.stationPreview = new StationPreview();
this.autoComplete = this.autoComplete.bind(this);
this.onClick = this.onClick.bind(this);
this.regist... | oliverdunk/livestream-code-archive | APIADay-TFL/scripts/search.js | JavaScript | mit | 2,086 |
/*
* 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/autorest | src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/operations/group.js | JavaScript | mit | 9,880 |
import $ from 'dom7';
import { window, document } from 'ssr-window';
import Utils from '../../utils/utils';
import Device from '../../utils/device';
const Input = {
ignoreTypes: ['checkbox', 'button', 'submit', 'range', 'radio', 'image'],
createTextareaResizableShadow() {
const $shadowEl = $(document.createEle... | iamxiaoma/Framework7 | src/core/components/input/input.js | JavaScript | mit | 12,678 |
'use strict';
module.exports = require('./build/index');
| dcronje/skmysql | index.js | JavaScript | mit | 58 |
import npm from '../adapters/npm';
import S3 from '../adapters/s3';
export default async (event, context, callback) => {
const { registry, bucket, region } = process.env;
const storage = new S3({ region, bucket });
const name = `${decodeURIComponent(event.name)}`;
const tarName = `${decodeURIComponent(event.t... | craftship/yith | src/tar/get.js | JavaScript | mit | 865 |
/**
* @class ShadowTemplate
* @classdesc Mixin for stamping a template into a Shadow DOM subtree upon
* component instantiation
*
* If a component defines a template property (as a string or referencing a HTML
* template), when the component class is instantiated, a shadow root will be
* created on the instance,... | basic-web-components/carousel-with-tabs | node_modules/basic-component-mixins/src/ShadowTemplate.js | JavaScript | mit | 2,942 |
/**
* Retrieves the devices location.
* @see extend
*
* @author Joseph Fehrman
* @since 07/09/2016
* @return Promise chain representing coordinates.
*/
function locale(options){
/**
* Private object designed to house coordinates.
*/
var Location = function(latitude, longitude , options){
this.long... | jfehrman/locale | src/locale.js | JavaScript | mit | 1,611 |
////////////////////////////////////////////////////////////////////////////////////////////
// The MIT License (MIT) //
// //
// Copyright (C) 2015 Christopher Mejía ... | chrissmejia/jsConfirm | djangodemo/jsConfirm/static_source/js/partials/core.js | JavaScript | mit | 20,502 |
/**
* jQuery Horizontal Navigation 1.0
* https://github.com/sebnitu/horizontalNav
*
* By Sebastian Nitu - Copyright 2012 - All rights reserved
* Author URL: http://sebnitu.com
*/
(function($) {
$.fn.horizontalNav = function(options) {
// Extend our default options with those provided.
var op... | effexts/segpro | web/bundles/utasegpro/js/jquery.horizontalNav.js | JavaScript | mit | 6,211 |
//event.js
//Handle keyboard/mouse/touch events in the Canvas
(function() {
//returns an O3D object or false otherwise.
function toO3D(n) {
return n !== true ? n : false;
}
//Returns an element position
var getPos = function(elem) {
var bbox = elem.getBoundingClientRect();
return {
x:... | Drakesinger/philogl | src/event.js | JavaScript | mit | 9,678 |
/*! Animatelo | The MIT License (MIT) | Copyright (c) 2017 GibboK */
; (function (animatelo) {
'use strict';
animatelo.swing = function (selector, options) {
var keyframeset = [
{
"transform": 'rotate3d(0, 0, 1, 0deg)',
"offset": "0",
"easing":... | gibbok/animatelo | src/attentionSeekers/swing.js | JavaScript | mit | 1,229 |
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err;... | vovance/3d-demo | es/utils/snap-scene.js | JavaScript | mit | 2,754 |
(function($) {
/**
* Moves elements to/from the first positions of their respective parents.
* @param {jQuery} $elements Elements (or selector) to move.
* @param {bool} condition If true, moves elements to the top. Otherwise, moves elements back to their original locations.
*/
$.prioritize = function... | flyboarder/theLounge | resources/assets/js/landing-util.js | JavaScript | mit | 1,614 |