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 2019 EPAM Systems
*
* 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 ... | reportportal/service-ui | app/src/controllers/testItem/sagas.js | JavaScript | apache-2.0 | 10,865 |
var CU = require('../compilerUtils'),
U = require('../../../utils'),
CONST = require('../../../common/constants'),
_ = require('../../../lib/alloy/underscore')._;
exports.parse = function(node, state) {
return require('./base').parse(node, state, parse);
};
function parse(node, state, args) {
var code = '';
//... | jppope/alloy | Alloy/commands/compile/parsers/Ti.UI.ListItem.js | JavaScript | apache-2.0 | 972 |
const fs = require('fs'),
nock = require('nock'),
sinon = require('sinon'),
request = require('postman-request'),
COLLECTION = {
id: 'C1',
name: 'Collection',
item: [{
id: 'ID1',
name: 'R1',
request: 'https://postman-echo.com/get'
}]
... | postmanlabs/newman | test/library/postman-api-key.test.js | JavaScript | apache-2.0 | 7,684 |
/**
* (c) Copyright 2016 Hewlett Packard Enterprise Development LP
*
* 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 requi... | openstack/designate-dashboard | designatedashboard/static/designatedashboard/resources/os-designate-floatingip/details/overview.controller.js | JavaScript | apache-2.0 | 1,362 |
var slug = require('slug')
, FeedParser = require('feedparser')
, Parse = require("parse").Parse
, MongoClient = require('mongodb').MongoClient
, assert = require('assert')
, request = require('request')
, _ = require('underscore');
var req = request('https://yts.to/rss')
, feedparser = new... | gbaldera/yts-movies-checker | movies_checker.js | JavaScript | apache-2.0 | 3,724 |
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'), // the package file to use
uglify: {
main: {
files: {
'dist/afe.min.js': [
'src/js/afe.js',
'src/js/afe.core.js',
'src/js/afe.form.js',
'src/js/afeCheckbox.js',
'src/js/afeRad... | efureev/ajax-form-elements | Gruntfile.js | JavaScript | apache-2.0 | 1,694 |
/*jshint multistr: true */
/*jshint evil: true */
angular.module('slicebox.directives', [])
.directive('sbxChip', function() {
return {
restrict: 'E',
transclude: true,
template: '<span class="sbx-chip {{chipClass}}" ng-transclude></span>',
scope: {
chipClass: '@'
... | slicebox/slicebox | src/main/assets/js/directives.js | JavaScript | apache-2.0 | 32,162 |
'use strict';
goog.provide('Blockly.Blocks.storage');
goog.require('Blockly.Blocks');
Blockly.Blocks.storage.HUE = 0;
Blockly.Blocks.store_sd_init = {
init: function () {
this.appendDummyInput("")
.appendField("SD")
.appendField(Blockly.MIXLY_SETUP);
this.appendValueInput("PIN_MOSI")
.setCheck... | xbed/Mixly_Arduino | mixly_arduino/blockly/blocks/arduino/storage.js | JavaScript | apache-2.0 | 12,272 |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... | zombiepaladin/smartfarm | app/assets/javascripts/application.js | JavaScript | apache-2.0 | 1,117 |
/**
* Test to check if the component renders correctly
*/
/* global it expect */
import 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import AboutView from '@containers/about/AboutView';
it('AboutView renders correctly', () => {
const tree = renderer.create(
<AboutView... | elarasu/roverz-chat | src/containers/__tests__/aboutview-test.js | JavaScript | apache-2.0 | 378 |
var packageJSON = require("../../../package.json");
var config = {
// @@ENV gets replaced by build system
environment: "@@ENV",
// If the UI is served through a proxied URL, this can be set here.
rootUrl: "",
// Defines the Marathon API URL,
// leave empty to use the same as the UI is served.
apiURL: "..... | yp-engineering/marathon-ui | src/js/config/config.js | JavaScript | apache-2.0 | 848 |
//
// Vivado(TM)
// rundef.js: a Vivado-generated Runs Script for WSH 5.1/5.6
// Copyright 1986-2016 Xilinx, Inc. All Rights Reserved.
//
var WshShell = new ActiveXObject( "WScript.Shell" );
var ProcEnv = WshShell.Environment( "Process" );
var PathVal = ProcEnv("PATH");
if ( PathVal.length == 0 ) {
PathVal... | martinmiranda14/Digitales | Lab_6/project_7/project_7.runs/synth_1/rundef.js | JavaScript | apache-2.0 | 1,265 |
soul = {
name: "Template",
content: "Chariot",
toonList: [{ viz: 1, id: "idle", speed: .3 }],
awake: function (rock) {
var glob = rock.glob;
rock.display.alpha = 0;
var delay = 5;
var offSet = "+=" + delay;
var duration = 2;
var tl = new TimelineLite()... | s-r-c/globhammer | client/static/000000/globTitle/index.js | JavaScript | artistic-2.0 | 458 |
// Generated by CoffeeScript 1.8.0
(function() {
var BubbleChart, root,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
BubbleChart = (function() {
function BubbleChart(data) {
this.hide_details = __bind(this.hide_details, this);
this.show_details = __bind(th... | SoxFace/fhs-datavis | js/vis.js | JavaScript | bsd-2-clause | 8,093 |
(function () {
var t = 0, n = 10000, i
, results = []
;
function asyncFn (i, cb) {
setTimeout(function () {
cb(null, 'foo' + i);
}, t);
}
var fs = {
stat: function (file, cb) {
this.setTimeout(file, cb);
},
setTimeout: function (file, cb) {
setTimeout(function ... | jtblin/syncho | benchmarks/co.js | JavaScript | bsd-2-clause | 1,297 |
const tableName = 'koa2_api_movies'
exports.seed = function(knex, Promise) {
// Deletes ALL existing entries
return knex(tableName).del()
.then(function () {
// Inserts seed entries
return knex(tableName).insert([
{
name: 'The Land Before Time',
genre: 'Fantasy',
... | sharkspeed/dororis | packages/javascript/koajs/koa2-pg-api/src/server/db/seeds/movies_seed.js | JavaScript | bsd-2-clause | 680 |
/* This file is generated automatically by generatejs.con. Do not edit. */
'use strict';
if (!con.arch)
con.arch = { };
con.arch._zip_open = this.__cjs__zip_open;
con.arch.__zip_name_locate = this.__cjs___zip_name_locate;
con.arch._zip_fopen = this.__cjs__zip_fopen;
con.arch._zip_fopen_index = this.__cjs__zip_fopen_... | Devronium/ConceptApplicationServer | modules/_js/standard.arch.zip.js | JavaScript | bsd-2-clause | 1,667 |
var util = require('util');
var AbstractWriter = require('./AbstractWriter');
/**
* A dummy writer that doesn't actually write anything.
*
* @class guerrero.writer.NullWriter
* @extend guerrero.writer.AbstractWriter
* @constructor
* @param {Object} options
*/
var NullWriter = function (options) {
NullWrite... | pigulla/guerrero | src/writer/NullWriter.js | JavaScript | bsd-2-clause | 526 |
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Lexical declaration (const) not allowed in statement position
esid: sec-if-statement
es6id: 13.6
negative:
phase: parse
type: SyntaxError
---*/
throw "Test262... | sebastienros/jint | Jint.Tests.Test262/test/language/statements/if/if-const-else-const.js | JavaScript | bsd-2-clause | 412 |
var decryptRegex = new RegExp(config.template.replace(/__VALUE__/, "(.+)"), "m");
function decrypt(text) {
var md, data, result = text;
while (md = result.match(decryptRegex)) {
data = GibberishAES.dec(md[1]+'\n', config.secret);
//console.log(md, data);
result = md.input.substring(0, md.index) + data ... | viking/cryptify | chrome/cryptify.js | JavaScript | bsd-2-clause | 1,055 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.foreach
es5id: 15.4.4.18-7-b-12
description: >
Array.prototype.forEach - deleting own property with prototype
property causes prototype index pr... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-12.js | JavaScript | bsd-2-clause | 781 |
'use strict';
import rebound from 'rebound';
import React, { Component } from 'react';
import {
Platform,
Animated,
PanResponder,
Dimensions,
View,
} from 'react-native';
import Svg, { Path } from 'react-native-svg';
var { width, height } = Dimensions.get('window');
class JellySideMenu extends Component ... | VansonLeung/react-native-jelly-side-menu | JellySideMenu.js | JavaScript | bsd-2-clause | 11,635 |
var $iframe = $('#pagePreview'),
iframeDoc,
$iframeBody;
$iframe.load(function() {
var $overlay = $('<div/>');
console.log('iframe loaded');
iframeDoc = $iframe[0].contentDocument;
$iframeBody = $(iframeDoc.body);
$overlay.css({
'height': $iframeBody.height(),
'width': $iframeBody.width(),
... | rexmac/zyndax | application/modules/admin/views/scripts/site/theme.js | JavaScript | bsd-2-clause | 1,965 |
(function () {
'use strict';
APP.GraphLib.getGraphStyle = function (ds_schema) {
if (ds_schema === undefined || ds_schema.attributes === undefined) {
return "";
}
var dsAttrs = ds_schema.attributes;
return dsAttrs.graph ? (dsAttrs.graph.style || "") : ""
};
... | scion-network/scion_ui | app/scripts/libs/graph_utils.js | JavaScript | bsd-2-clause | 1,011 |
window.playground = function() {
'use strict';
var chessboard;
function createChessboard() {
var rows = 8
, cols = 8
, r
, c
, chessboard;
chessboard = new Array(rows);
for (r = 0; r < rows; r = r + 1) {
chessboard[r] = new Array(cols);
for (c = 0; c < cols; c = ... | cjus/jsplayground | js/playground.js | JavaScript | bsd-2-clause | 523 |
var class_grape_f_s_1_1_interface_f_u_s_e =
[
[ "Create", "class_grape_f_s_1_1_interface_f_u_s_e.html#a387b9c196c23b9b3fc82e16b6aba612c", null ],
[ "access", "class_grape_f_s_1_1_interface_f_u_s_e.html#a5231c684ce9603168127cb0a93163b42", null ],
[ "chmod", "class_grape_f_s_1_1_interface_f_u_s_e.html#abf2b18... | crurik/GrapeFS | Doxygen/html/class_grape_f_s_1_1_interface_f_u_s_e.js | JavaScript | bsd-2-clause | 2,663 |
/**
* Copyright 2016 Telerik AD
* ... | gngeorgiev/platform-friends | friends-hybrid/bower_components/kendo-ui/src/js/cultures/kendo.culture.se.js | JavaScript | bsd-2-clause | 6,639 |
// Grunt build tasks for averylawfirm.com
//
// See also: package.json
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
// Environment: Development
debug: {
options: {
style: 'expanded',
debugInfo: false
},... | i8degrees/blew-infosys | Gruntfile.js | JavaScript | bsd-2-clause | 2,317 |
(function ($) {
$(function() {
// Shortcut, if there isn't any change form
if (!$('body').hasClass('change-form')) return;
var LOCALIZED_FIELDS, ADMIN_URL, $translation_field;
if (window.location.pathname.substr(-7) === 'change/') {
// When inside Django /change/ url, s... | jonasundderwolf/django-localizedfields | localizedfields/static/localizedfields/localizedfields.js | JavaScript | bsd-3-clause | 12,057 |
/** Created by charles.sexton on 2/26/2016 */
var webdriver = require('selenium-webdriver');
var IllegalArgumentError = require('../src/errors/IllegalArgumentError');
var FrameHandler = function(driver) {
var driver = driver.getDriver();
this.switchToFrame = function(name)
{
if (typeof name !== '... | Orasi/JS-Selenium-Toolkit | JS-Selenium-Toolkit/src/FrameHandler.js | JavaScript | bsd-3-clause | 1,482 |
'use strict';
// Based on Resig's pretty date
function prettyDate(time) {
var diff = (Date.now() - time) / 1000;
var day_diff = Math.floor(diff / 86400);
if (isNaN(day_diff))
return '(incorrect date)';
if (day_diff < 0 || diff < 0) {
// future time
return (new Date(time)).toLocaleFormat('%x %R');... | yurydelendik/gaia | apps/dialer/js/helper.js | JavaScript | bsd-3-clause | 1,343 |
const models = require('../../../models/index');
const User = models.User;
const Contact = models.Contact;
module.exports = {
getPendingContactRequests: function (socket, json) {
User.find({
where: { userid: json.userid }
}).then(user => {
return Contact.findAll({
... | AntoineJanvier/Slyx | Server/tools/socketManagement/contacts/getPendingContactRequests.js | JavaScript | bsd-3-clause | 1,547 |
function propertiesViewModel () {
var self = this;
// TODO: make function to map properties with test
self.showPropertyPanels = ko.observable(false);
self.propertyList = ko.observableArray();
self.showEditPanel = ko.observable(false);
self.showDetailPanel = ko.observable(false);
self.showCreatePanel = ko.... | Ecotrust/forestplanner | media/common/property.js | JavaScript | bsd-3-clause | 14,934 |
/*!
* remark v1.0.7 (http://getbootstrapadmin.com/remark)
* Copyright 2015 amazingsurge
* Licensed under the Themeforest Standard Licenses
*/
$.components.register("slidePanel",{mode:"manual",defaults:{closeSelector:".slidePanel-close",mouseDragHandler:".slidePanel-handler",loading:{template:function(options){retur... | afquinterog/mkitserverapp | web/js/components/slidepanel.min.js | JavaScript | bsd-3-clause | 586 |
// Copyright 2018 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.
load('../base.js');
load('toNumber.js');
load('toLocaleString.js');
load('toHexString.js');
function PrintResult(name, result) {
console.log(name);
... | youtube/cobalt | third_party/v8/test/js-perf-test/Numbers/run.js | JavaScript | bsd-3-clause | 644 |
/**
* 微信相关 js 收集整理
* */
// 判断用户是不是用微信打开了浏览器
// @see: https://gist.github.com/anhulife/8470534
function isWeixinBrowser(){
// 截至2014年2月12日,这个方法不能测试 windows phone 中的微信浏览器
return (/MicroMessenger/i).test(window.navigator.userAgent);
}
// 方法二
var _is_weixin_browser = 0;
document.addEventListener('WeixinJSBridge... | hy0kl/study | js/wx.js | JavaScript | bsd-3-clause | 1,899 |
var path = require('path');
module.exports = {
entry: './input',
output: {
filename: 'output.js',
},
resolve: {
root: path.resolve('../../../build/packages'),
alias: {
'react': 'react/dist/react',
'react-dom': 'react-dom/dist/react-dom',
},
},
};
| sekiyaeiji/react | fixtures/packaging/webpack-alias/config.js | JavaScript | bsd-3-clause | 286 |
//= require admin/spree_core
//= require admin/jquery.uploadify
| meinekleinefarm/spree_mkf_theme | app/assets/javascripts/admin/spree_mkf_theme.js | JavaScript | bsd-3-clause | 65 |
define(["jquery"], function ($) {
/***
* Displays an overlay on top of a given cell range.
*
* TODO:
* Currently, it blocks mouse events to DOM nodes behind it.
* Use FF and WebKit-specific "pointer-events" CSS style, or some kind of event forwarding.
* Could also construct the borders separately u... | almarklein/bokeh | bokehjs/src/vendor/slick-grid-2.1.0/plugins/slick.cellrangedecorator.js | JavaScript | bsd-3-clause | 1,488 |
var searchData=
[
['junctiontreetype',['JunctionTreeType',['../a00073.html#a09b40d82e5be58829294d734b90e74cb',1,'gtsam::EliminateableFactorGraph::JunctionTreeType()'],['../a00075.html#a3105cd6512d1674d6d433034c87b4e0c',1,'gtsam::EliminationTraits< DiscreteFactorGraph >::JunctionTreeType()'],['../a00076.html#ac9... | devbharat/gtsam | doc/html/search/typedefs_7.js | JavaScript | bsd-3-clause | 436 |
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config');
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: true,
}).listen(3000, 'localhost', function(err, result) {
});
| comlewod/document | pages/tests/server.js | JavaScript | bsd-3-clause | 279 |
/**
*
* Changes the current plate name
*
**/
function change_plate_name() {
$('#updateNameBtn').prop('disabled', true).find('span').addClass('glyphicon glyphicon-refresh gly-spin');
$('#newNameInput').prop('disabled', true);
var value = $('#newNameInput').val().trim();
var plateId = $('#plateName').prop('pm... | josenavas/labman | labman/gui/static/js/plate.js | JavaScript | bsd-3-clause | 4,011 |
/**
* Copyright 2015, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import FormatDateFormatter from './format-date';
/**
* @private
* @hide
*/
export default class FormatTime extends FormatDateFormatter {}
| yahoo/ember-intl | addon/-private/formatters/format-time.js | JavaScript | bsd-3-clause | 277 |
// vim:ts=4:sw=4:expandtab
x11vis = (function() {
var used_names = [];
var details = {};
function type_to_color(type) {
if (type === 'event') {
return '#ffffc0';
} else if (type === 'reply') {
return '#c0ffc0';
} else if (type === 'error') {
retu... | x11vis/x11vis | gui/x11vis.js | JavaScript | bsd-3-clause | 11,369 |
"use strict";
module.exports = (sequelize, DataTypes) => {
const AcWatching = sequelize.define("AcWatching", {
priority: { type: DataTypes.INTEGER, allowNull: false },
type: { type: DataTypes.INTEGER, allowNull: false },
deleted: { type: DataTypes.BOOLEAN, allowNull: false, defaultValue: false }
}, {
... | rbjarnason/active-citizen | models/ac_watching.js | JavaScript | bsd-3-clause | 1,139 |
/* jshint ignore:start */
import Component from 'metal-component/src/Component';
import Soy from 'metal-soy/src/Soy';
var templates;
goog.loadModule(function(exports) {
// This file was automatically generated from MetalPlayground.soy.
// Please don't edit this file by hand.
/**
* @fileoverview Templates in namespac... | LeventeHudak/metal-playground | src/MetalPlayground.soy.js | JavaScript | bsd-3-clause | 12,043 |
const Cast = require('../util/cast');
class Scratch3DataBlocks {
constructor (runtime) {
/**
* The runtime instantiating this block package.
* @type {Runtime}
*/
this.runtime = runtime;
}
/**
* Retrieve the block primitives implemented by this package.
... | isabela-angelo/scratch-tangible-blocks | src/blocks/scratch3_data.js | JavaScript | bsd-3-clause | 4,584 |
/* @flow */
import * as Immutable from "immutable";
import {
createContentRef,
makeStateRecord,
makeEntitiesRecord,
makeContentsRecord,
makeNotebookContentRecord,
makeDocumentRecord
} from "@nteract/core";
import { ipcRenderer as ipc } from "../../__mocks__/electron";
import * as globalEvents from "../../... | rgbkrk/nteract | applications/desktop/__tests__/renderer/global-events-spec.js | JavaScript | bsd-3-clause | 3,718 |
/**
* Copyright 2012 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | huiyan-fe/mapv | src/map/google-map/CanvasLayer.js | JavaScript | bsd-3-clause | 15,556 |
import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import SignatureAddFormComponent from 'Theme/signature-add-form'
import { signPetition, devLocalSignPetition } from '../actions/petitionActions'
import { actions as sessionActions } from '../actions/sessionActions'
impo... | MoveOnOrg/mop-frontend | src/containers/signature-add-form.js | JavaScript | bsd-3-clause | 12,722 |
/**
* Copyright (c) 2015-present, Alejandro Mantilla <@AlejoJamC>.
* 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 or translated in the assets folder.
*/
// Load required packages
var Logger = require('../co... | AlejoJamC/avaritia | routes/auth.js | JavaScript | bsd-3-clause | 5,284 |
import React from 'react';
import {browserHistory, Route, Router} from 'react-router';
import {withInfo} from '@storybook/addon-info';
import PropTypes from 'prop-types';
import StreamGroup from 'app/components/stream/group';
import GroupStore from 'app/stores/groupStore';
export default {
title: 'Features/Issues/S... | beeftornado/sentry | docs-ui/components/streamGroup.stories.js | JavaScript | bsd-3-clause | 7,195 |
var a00166 =
[
[ "Ptr", "a00166.html#ae27b748b63b02e4b72f90f645ec14ff2", null ],
[ "Node", "a00166.html#ada3566b0aeea909906ad5efd78138eca", null ],
[ "~Node", "a00166.html#af157cf8d47cb333def0bd09a4e343279", null ],
[ "apply", "a00166.html#ad12be70c49797ca5d16da021b6241d07", null ],
[ "apply_f_op_g"... | devbharat/gtsam | doc/html/a00166.js | JavaScript | bsd-3-clause | 1,197 |
var lastProviderState={};
/**********************************************************************************
* DOCUMENT.READY FUNCTION
**********************************************************************************/
$(document).ready(function() {
var addConsent_tmp = null;
var isProviderAdminUser_tmp = null;
... | OBHITA/Consent2Share | DS4P/consent2share/pg/web-pg/src/main/webapp/resources/js/consent/addConsent.js | JavaScript | bsd-3-clause | 52,910 |
/**
* Created by KP_TerminalUser2 on 05/09/2014.
*/
var ClinicalEvaluationModel = require('../schema/clinical_evaluation_schema');
var MedicalHistory = require('../models/medical_history');
var DrugAllergy = require('../models/drug_allergy');
var PregnancyInfo = require('../models/pregnancy_info');
var CD4Info = requ... | ODItina/dtsms_patient_manager | lib/clinical_evaluation_manager.js | JavaScript | bsd-3-clause | 8,716 |
require([
'xapp/manager/Context',
'require',
'dcl/dcl',
"xide/utils",
"delite/popup",
"deliteful/Combobox",
"deliteful/list/List",
"dstore/Memory",
"xide/types"
], function (Context, require, dcl,utils,popup,Combobox, List, Memory,types) {
var context = null;
var fileServerD... | xblox/control-freak | example_workspace/workspace/AXFile.js | JavaScript | bsd-3-clause | 13,328 |
/*!
* Copyright 2012 Tsvetan Tsvetkov
*
* 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 agre... | joshuaadickerson/Elkarte2 | Elkarte/www/themes/default/scripts/desktop-notify.js | JavaScript | bsd-3-clause | 10,439 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.5.2.1_A1_T1;
* @section: 15.5.2.1;
* @assertion: When "String" is called as part of a new expression, it is a constructor: it initialises the newly created object and
* T... | luboid/ES5.Script | TestScripts/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.5_String_Objects/15.5.2_The_String_Constructor/S15.5.2.1_A1_T1.js | JavaScript | bsd-3-clause | 1,701 |
// Copyright 2014 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.
/**
* @constructor
* @implements {WebInspector.App}
* @implements {WebInspector.TargetManager.Observer}
*/
WebInspector.ScreencastApp = function()
{
... | danakj/chromium | third_party/WebKit/Source/devtools/front_end/screencast/ScreencastApp.js | JavaScript | bsd-3-clause | 4,119 |
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Using.js - Simple JavaScript module loader.
Copyright (c) 2015 Jonathan Steinbeck
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the f... | jsteinbeck/WebStory-Engine | build/WebStoryEngine.js | JavaScript | bsd-3-clause | 517,692 |
var appBase = require("../app_base/app");
var config = {
host: "192.168.1.35",
port: 8080
};
appBase.init(config);
| B4U/TSKL | examples/demo/app1/app.js | JavaScript | bsd-3-clause | 119 |
var RS = new RemoteScripting();
function RemoteScripting()
{
this.pool = new Array();
this.poolSize = 0;
this.maxPoolSize = 1000;
this.usePOST = false;
this.debug = false;
// Sniff the browser
if (document.layers)
this.browser = "NS";
else if (document.all)
{
var agent = navigator.userAgent.... | BackupTheBerlios/wc3o-svn | web/trunk/Game/Scripts/RemoteScripting.js | JavaScript | bsd-3-clause | 10,815 |
provided_data = {{ provided_data|safe }};
function loadAdditionalData(adata) {
$.ajax({
method: "GET",
url: "{% url 'device-details-json' device_id %}",
}).done(function(data) {
if (data.formatted_entries) {
adata.provided_data = data.formatted_entries;
... | MPIB/Lagerregal | templates/devices/detail/device_detail.js | JavaScript | bsd-3-clause | 883 |
/*
* Copyright (c) 2014 Jesse van den Kieboom. 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... | jessevdk/webgl-play | js/models/rendergroup.js | JavaScript | bsd-3-clause | 4,245 |
define([
'jquery',
], function( $ ) {
var ConsoleBlock = function(class_name) {
this.console_blocks = $(class_name);
this.init();
};
ConsoleBlock.prototype = {
init: function(){
var self = this;
$(document).ready(function () {
$(".c-tab-u... | django/djangoproject.com | djangoproject/static/js/mod/console-tabs.js | JavaScript | bsd-3-clause | 921 |
/**
* Import success pane
*
* Displays success messages if import went fine :)
*
* - It needs a model to know what happened with the import.
*
* new cdb.admin.ImportSuccessPane({ model: state_model });
*
*/
cdb.admin.ImportSuccessPane = cdb.core.View.extend({
className: 'cr... | comilla/map | lib/assets/javascripts/cartodb/common/import/import_success_pane.js | JavaScript | bsd-3-clause | 1,643 |
$(document).ready(function() {
var link = '<a href="#" class="prompt-toggle">Toggle Prompt</a><br /><br />';
$(link).prependTo( $("div.code.python,div.highlight-python > .highlight > pre") );
$(".prompt-toggle").click(function (e) {
e.preventDefault();
$(this.parentElement).find("span.gp").t... | anacode/anacode-toolkit | docs/source/_static/js/toggable_prompt.js | JavaScript | bsd-3-clause | 340 |
import glob from 'glob';
import fs from 'fs';
const fileExists = filePath =>
{
try
{
return fs.statSync(filePath).isFile();
}
catch (err)
{
return false;
}
};
const filesConverted = [];
const filesRemaining = [];
glob('**/*.js', {
ignore: ['**/es6/**','**/node_modules/**', '*... | openAgile/CommitStream.Web | src/app/es6/hitlist.js | JavaScript | bsd-3-clause | 1,135 |
import * as actions from './v3_keystore_actions';
export default {
actions,
};
| soundchain/soundchain-frontend | src/js/keystoreTypes/v3/index.js | JavaScript | bsd-3-clause | 82 |
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
/* jshint newcap: false */
var _ = require('lodash');
var domready = require('domready');
var React = require('react');
var ReactDOM = require('react-dom... | vanadium/website | browser/index.js | JavaScript | bsd-3-clause | 4,154 |
define(
{
"id": 1,
"testSpecs": {
"name": "Test 1",
"description": "Test 1",
"items": 300,
"maxOmissions": 0,
"duration": 5
},
"testItems": {
"instructions": [
{
"id": 1,
... | alkaest2002/gzts-lab | web/app/assets/js/app/data/tests/1/testData.js | JavaScript | bsd-3-clause | 23,986 |
/**
* Inline development version. Only to be used while developing since it uses document.write to load scripts.
*/
/*jshint smarttabs:true, undef:true, latedef:true, curly:true, bitwise:true, camelcase:true */
/*globals $code */
(function(exports) {
"use strict";
var html = "", baseDir;
var modules = {}, expos... | killer-djon/dev-v2.web2book.ru | public/mixins/javascripts/tinymce4/plugins/spellchecker/plugin.dev.js | JavaScript | bsd-3-clause | 2,587 |
var path = require('path'),
User = require(path.resolve('models/User'));
module.exports = function(app, rootUrl) {
app.get(rootUrl + '/users/:id', function(req,res) {
var id = req.params.id;
if (id == 'me')
id = req.user.id;
User.findById(id, function(err, user) {
... | calvinDN/portfolio_webapp | routes/admin/users.js | JavaScript | bsd-3-clause | 499 |
container: "paypal-container",
singleUse: <%= payment_method.preferred_store_payments_in_vault.eql?('do_not_store') %>,
amount: <%= @order.total %>,
currency: "<%= current_currency %>",
locale: "en_us",
displayName: "<%= payment_method.preferred_paypal_display_name %>",
enableShippingAddress: true,
shippingAddressOverr... | muzykabart/spree_braintree_vzero | app/views/spree/shared/braintree_vzero/_paypal.js | JavaScript | bsd-3-clause | 1,633 |
/*globals namespace, ursa, xsd, rdf, rdfs, owl, hydra, shacl, guid */
(function(namespace) {
"use strict";
var parseDate = function(dateTime) {
var timeZone = null;
var position;
if ((position = dateTime.lastIndexOf("+")) !== -1) {
timeZone = dateTime.substr(position + 1);
... | alien-mcl/URSA | URSA.Client/app/scripts/ursa/model/helpers.js | JavaScript | bsd-3-clause | 10,750 |
// Copyright (c) 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.
function getParentRect(element) {
var parent = element.parentElement;
var parentRect = parent.getClientRects()[0];
return parentRect;
}
functio... | endlessm/chromium-browser | chrome/test/chromedriver/js/get_element_location.js | JavaScript | bsd-3-clause | 3,490 |
import React from 'react';
import Relay from 'react-relay';
import 'babel/polyfill';
import './FacebookLoginButton.css';
class FacebookLoginButton extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<a onClick={this.props.onClick} className="btn-auth btn-facebook lar... | xuorig/form-check-app | js/components/shared/Buttons/FacebookLoginButton.js | JavaScript | bsd-3-clause | 434 |
var path = require('path');
var port = 3000;
var domain = 'http://127.0.0.1';
module.exports = module.exports || {};
module.exports.name = 'trending-food';
module.exports.port = port;
module.exports.url = domain + ':' + port;
module.exports.uploadDir = 'uploads';
module.exports.backupDir = 'backups';
/**
* Databas... | ICANS/trending-food | config/default.js | JavaScript | bsd-3-clause | 694 |
var model = require('../models')
, config = require('../config')
var title = config.development.express.title;
var subtitle = config.development.express.subtitle;
exports.index = function(req, res){
res.render('index', { user: req.user, title: title, subtitle: subtitle });
};
exports.profile = function(req, res){... | Tzvayim/theArk | routes/index.js | JavaScript | bsd-3-clause | 425 |
// Copyright 2015 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.
// This Polymer element is used as a header for the media router interface.
Polymer({
is: 'media-router-header',
properties: {
/**
* The nam... | was4444/chromium.src | chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js | JavaScript | bsd-3-clause | 6,625 |
Ext.define('icc.controller.idatabase.Collection', {
extend: 'Ext.app.Controller',
models: ['idatabase.Collection', 'idatabase.Structure'],
stores: ['idatabase.Collection', 'idatabase.Collection.Type', 'idatabase.Structure'],
views: ['idatabase.Collection.Grid', 'idatabase.Collection.Add', 'idatabase.Collection.Edit... | shanghaiyangming/iCC | public/js/app/controller/idatabase/Collection.js | JavaScript | bsd-3-clause | 35,128 |
/*jslint nomen: true */
/*global define, window, history*/
define(["dojo/_base/lang", "dojo/_base/declare", "dapp/Controller", "dapp/utils/hash", "dojo/topic"], function (lang, declare, Controller, hash, topic) {
"use strict";
// module:
// dapp/tests/mediaQuery3ColumnApp/controllers/CustomHistory
... | kfbishop/dworklight-testapp | apps/DWorklightApp/common/app/controllers/CustomHistory.js | JavaScript | bsd-3-clause | 10,200 |
define([
'dojo/_base/declare',
'dojo/_base/lang',
'dojo/when',
'dojo/Deferred',
'dojo/Stateful',
'dijit/registry',
'dijit/_WidgetBase',
'dijit/_TemplatedMixin',
'dijit/_WidgetsInTemplateMixin',
'dojox/mvc/_InlineTemplateMixin',
'dojox/mvc/at',
'../computed',
'dojox/mvc/Element',
'./TodoEscape',
'./TodoFo... | gabrielmancini/interactor | src/demo/dojo/js/todo/widgets/Todo.js | JavaScript | bsd-2-clause | 3,146 |
const test = require('tape')
const sinon = require('sinon')
const helpers = require('../test/helpers')
const bindFunc = helpers.bindFunc
const isFunction = require('../core/isFunction')
const unit = require('../core/_unit')
const constant = x => () => x
const compareWith = require('./compareWith')
test('compareWi... | evilsoft/crocks | src/pointfree/compareWith.spec.js | JavaScript | isc | 1,462 |
/**
*
* DASH4 configuration
* https://github.com/smollweide/dash4
*
*/
const { PluginTerminal } = require('@dash4/plugin-terminal');
const { PluginReadme } = require('@dash4/plugin-readme');
const { PluginNpmScripts } = require('@dash4/plugin-npm-scripts');
const { PluginActions } = require('@dash4/plugin-action... | namics/generator-nitro | packages/project-nitro-typescript/dash4.config.js | JavaScript | mit | 2,124 |
const express = require('express'),
path = require('path'),
bodyParser = require('body-parser'),
cookieParser = require('cookie-parser'),
mongoose = require('mongoose'),
passport = require('passport'),
session = require('express-session'),
cel = require('connect-ensure-login'),... | ErnestUrzua/csc583-midterm | server.js | JavaScript | mit | 1,528 |
var asyncLoop = function asyncLoop(arr, funk, exit){
var index = 0;
var loop = {
next:function(){
if (index < arr.length) {
funk(arr[index++], loop);
} else {
exit();
}
},
break:function(){
exit();
}
... | zackehh/redis-scanner | util/util.js | JavaScript | mit | 395 |
'use strict';
var _ = require('lodash');
var Domain = require('../base/Domain');
var V1 = require('./monitor/V1');
/* jshint ignore:start */
/**
* Initialize monitor domain
*
* @constructor Twilio.Monitor
*
* @property {Twilio.Monitor.V1} v1 - v1 version
* @property {Twilio.Monitor.V1.AlertList} alerts - alert... | sagnew/floppy-bird-demo | twilio-temp/lib/rest/Monitor.js | JavaScript | mit | 1,108 |
describe('Lock/Unlock methods ', function () {
var Context = {
syncemitted: 0,
syncLastValue: 0
};
var Stream = Warden.Stream(function(trigger){
this.sync = function(value){
trigger(value);
}
this.async = function(time, value){
setTimeout(function(){
trigger(value);
}, time);
}
}, Context)... | xgrommx/Warden.js | test/src/specs/common/lockunlock.js | JavaScript | mit | 2,113 |
// @flow
declare module 'http-status-codes' {
/**
* Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.3
*
* The request has been received but not yet acted upon. It is non-committal, meaning that there is no way in HTTP to later send an asynchronous response indicating the outcome o... | flowtype/flow-typed | definitions/npm/http-status-codes_v1.x.x/flow_v0.25.0-/http-status-codes_v1.x.x.js | JavaScript | mit | 17,389 |
/**
* Created by kiran on 12/16/15.
*/
'use strict';
module.exports = function(sequelize, DataTypes) {
var ProductVendor = sequelize.define('ProductVendor', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: DataTypes.INTEGER
},
ProductId:{
type:DataType... | freshcarton/freshcarton | server/models/productvendor.js | JavaScript | mit | 835 |
define(["require", "exports"], function (require, exports) {
/**
* @name Browser
* @author Mient-jan Stelling
* @description a replacement of the mootools Browser static class, gives you crossplatform Xhr request. Browser name, version, platform
* @todo add type of device like iphone, tablet, an... | ThaNarie/AutoListing | source/inc/script/lib/temple/utils/Browser.js | JavaScript | mit | 3,842 |
import Init from './_init';
import parseHTML from './parsehtml';
import on from './on';
import off from './off';
import add from './add';
import assign from '../../_helpers/assign';
// tiny jQuery replacement for Seemple
export default function mq(selector, context) {
return new Init(selector, context);
}
mq.parseH... | matreshkajs/matreshka | packages/seemple/src/_dom/mq/index.js | JavaScript | mit | 386 |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2h-3zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8h-3zM5 19l3-4 2 3 3-4 4 5H5z" />
, 'AddPhotoAlternate');
| callemall/material-ui | packages/material-ui-icons/src/AddPhotoAlternate.js | JavaScript | mit | 307 |
import { FS } from 'grind-support'
const path = require('path')
export async function DetectPackagesProvider(app) {
app.packages = []
if (!(await FS.exists(app.paths.bootstrap))) {
return
}
const bootstrap = (await FS.readFile(app.paths.bootstrap)).toString()
const info = require(app.paths.packageInfo)
cons... | shnhrrsn/grind-framework | packages/toolkit/app/Providers/DetectPackagesProvider.js | JavaScript | mit | 1,270 |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z" /><... | allanalexandre/material-ui | packages/material-ui-icons/src/TabOutlined.js | JavaScript | mit | 359 |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M10.83 5L9.36 6.47 17 14.11V5zM7 9.79V19h9.23z" opacity=".3" /><path d="M10.83 5H17v9.11l2 2V5c0-1.1-.9-2-2-2h-7L7.94 5.06l1.42 1.42L10.83 5z... | allanalexandre/material-ui | packages/material-ui-icons/src/SignalCellularNoSimTwoTone.js | JavaScript | mit | 485 |
layoutManager.setWallSize= function(runtime, container) {
var totalRow = runtime.totalRow;
var totalCol = runtime.totalCol;
var gutterY = runtime.gutterY;
var gutterX = runtime.gutterX;
var cellH = runtime.cellH;
var cellW = runtime.cellW;
var totalWidth = Math.max(0, cellW * totalCol - gutt... | iraycd/brickwork | src/layout_manager/set-wallsize.js | JavaScript | mit | 783 |
var Scroll = {};
Scroll.positions = {};
var ease = {
outSine: function(t, b, c, d) {
return c * Math.sin(t/d * (Math.PI/2)) + b;
},
outQuint: function(t, b, c, d) {
t /= d;
t--;
return c*(t*t*t*t*t + 1) + b;
},
outQuad: function(t, b, c, d) {
t /= d;
return -c * t*(t-2) + b;
},
ou... | mohitleo9/chromium-vim | content_scripts/scroll.js | JavaScript | mit | 4,462 |
var config = require('../config')
var gulp = require('gulp')
var gulpSequence = require('gulp-sequence')
var getEnabledTasks = require('../lib/getEnabledTasks')
var productionTask = function(cb) {
var tasks = getEnabledTasks('production')
gulpSequence('clean', tasks.codeTasks, 'favicons', 'optimize',... | youonlyliveonce/24-1.studio | gulpfile.js/tasks/production.js | JavaScript | mit | 412 |