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 IBM Corp. 2016 // // 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...
IBM-Bluemix/collaboration
angular/app/scripts/directives/request.js
JavaScript
apache-2.0
907
'use strict'; /** * Each source object must provide these functions * (they all return promises): * * * onUserInfoSaved(userInfo); * * onLogin(reqAuthData, userInfo); */ exports.sourceMethodNames = [ // This is a special hook for the 'save' function; // it is not added to the AuthenticationMethodSchema metho...
groboclown/fonzrecon
rest-server/lib/account/index.js
JavaScript
apache-2.0
555
import React, {Component} from 'react'; import ReactDOM from 'react-dom'; import Movement from './Movement.js'; import config from 'react-global-configuration'; import Location from '../util/Location.js'; import Reason from '../util/Reason.js'; import Time from '../util/Time.js'; import Via from '../util/Via.js'; imp...
peter-mount/departureboards
src/service/Schedule.js
JavaScript
apache-2.0
10,541
// File describing all migrations and their upward/downward changes // for API Usage Information see https://github.com/percolatestudio/meteor-migrations import {Meteor} from 'meteor/meteor'; import {ImageResources} from '../imports/modules/constants'; /* eslint-disable lodash/prefer-lodash-method */ if(Meteor.isServ...
Women-in-Computing-at-RIT/Wearables-Web-App
server/migrations.js
JavaScript
apache-2.0
2,436
Vue.component('dot-header',{ template:`<div id="dotTopBanner" style="width: 100%; background: #152350; height: 60px; padding: 5px 0 0 10px"> <a style="background: none" href="https://transportation.gov"> <img src="/data/images/icons/dot_logo.png" style="height: 35px; margin-left:...
usdot-its-jpo-data-portal/microsite
data/js/usdot_data_microsite_template.js
JavaScript
apache-2.0
31,223
'use strict'; /* * A module for adding new a routing system Angular 1. */ angular.module('ngNewRouter', []) .factory('$router', routerFactory) .value('$routeParams', {}) .factory('$componentMapper', $componentMapperFactory) .provider('$pipeline', pipelineProvider) .factory('$$pipeline', privatePipelineFact...
shangyilim/router
dist/router.es5.js
JavaScript
apache-2.0
50,742
/*! JsRender v1.0pre: http://github.com/BorisMoore/jsrender */ /* * Optimized version of jQuery Templates, for rendering to string. * Does not require jQuery, or HTML DOM * Integrates with JsViews (http://github.com/BorisMoore/jsviews) * Copyright 2012, Boris Moore * Released under the MIT License. */ // informal pre ...
lantanagroup/SEE-Tool
client/js/lib/external/jsrender/jsrender.js
JavaScript
apache-2.0
35,600
var numberOfPagesToOpen = 10; var url = ''; var system = require('system'); var args = system.args; var failures = 0; if (args.length === 1) { console.log('Usage:\nphantomjs http://url 100\nReturns how long it takes to load url 100 times.'); phantom.exit(0); } else { var url = args[1] || 'https://google.co...
mcritz/NetTest
NetTest.js
JavaScript
apache-2.0
2,426
'use strict' const { GraphQLInterfaceType, GraphQLNonNull, GraphQLID } = require('graphql'); const {videoType} = require('../') const nodeInterface = new GraphQLInterfaceType({ name : 'Node', fields : { id : { type : new GraphQLNonNull(GraphQLID) } }, resolveType : (obj) =>{ if...
arnavyagnik/Todo-Graphql
src/node.js
JavaScript
apache-2.0
709
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides class sap.ui.base.Event sap.ui.define(['jquery.sap.global', './Object'], function(jQuery, BaseObject) { "use strict"; ...
pro100den/openui5-bundle
Resources/public/sap/ui/base/Event-dbg.js
JavaScript
apache-2.0
4,014
// This file was procedurally generated from the following sources: // - src/dstr-binding/ary-ptrn-rest-obj-id.case // - src/dstr-binding/default/let-stmt.template /*--- description: Rest element containing an object binding pattern (`let` statement) esid: sec-let-and-const-declarations-runtime-semantics-evaluation es6...
sebastienros/jint
Jint.Tests.Test262/test/language/statements/let/dstr-ary-ptrn-rest-obj-id.js
JavaScript
bsd-2-clause
1,210
goog.provide('ol.interaction.Snap'); goog.provide('ol.interaction.SnapProperty'); goog.require('goog.array'); goog.require('goog.asserts'); goog.require('goog.events'); goog.require('goog.events.EventType'); goog.require('goog.object'); goog.require('ol.Collection'); goog.require('ol.CollectionEvent'); goog.require('o...
tsauerwein/ol3
src/ol/interaction/snapinteraction.js
JavaScript
bsd-2-clause
17,618
// This file was procedurally generated from the following sources: // - src/dstr-binding/obj-ptrn-prop-ary-trailing-comma.case // - src/dstr-binding/default/cls-decl-meth.template /*--- description: Trailing comma is allowed following BindingPropertyList (class expression method) esid: sec-runtime-semantics-bindingcla...
sebastienros/jint
Jint.Tests.Test262/test/language/statements/class/dstr-meth-obj-ptrn-prop-ary-trailing-comma.js
JavaScript
bsd-2-clause
2,419
function f() { return 1; } function f() { return 2; } export default f;
nginx/njs
test/js/module/declaration_exception.js
JavaScript
bsd-2-clause
83
function receiveMessage(event) { if (event.data.message == 'fetch-json') { var opsworksJson = document.getElementById('stack_custom_json').value; $('#jsoneditoriframe').get(0).contentWindow.postMessage({ jsonFromOpsworks: opsworksJson }, chrome.extension.getURL('')); } if...
easybiblabs/chrome-opsworks-json-extension
editor.js
JavaScript
bsd-2-clause
1,632
// This file was procedurally generated from the following sources: // - src/dstr-binding/obj-ptrn-prop-ary-value-null.case // - src/dstr-binding/error/cls-decl-gen-meth.template /*--- description: Object binding pattern with "nested" array binding pattern taking the `null` value (class expression method) esid: sec-cla...
sebastienros/jint
Jint.Tests.Test262/test/language/statements/class/dstr-gen-meth-obj-ptrn-prop-ary-value-null.js
JavaScript
bsd-2-clause
2,649
var winston = require('winston'); exports.init = function(conf) { return new (winston.Logger)({ transports: [ new (winston.transports.Console)({ level: conf.log.level || 'debug', "colorize": conf.log.colorize || true, "timestamp": conf.log.timestamp || true }) ...
mchmarny/mqtt-stats
lib/logger.js
JavaScript
bsd-2-clause
358
// This file was procedurally generated from the following sources: // - src/dstr-binding/ary-ptrn-rest-not-final-ary.case // - src/dstr-binding/default/async-gen-func-expr.template /*--- description: Rest element (array binding pattern) may not be followed by any element (async generator function expression) esid: sec...
sebastienros/jint
Jint.Tests.Test262/test/language/expressions/async-generator/dstr-ary-ptrn-rest-not-final-ary.js
JavaScript
bsd-2-clause
1,280
var CommentForm = React.createClass({ handleSubmit: function(e) { e.preventDefault(); var author = this.refs.author.getDOMNode().value.trim(); var text = this.refs.text.getDOMNode().value.trim(); if (!text || !author) { return; } this.props.onCommentSubmit({author: author, text: text}); ...
Jias/react-list
demo/commentList/jsx/CommentForm.js
JavaScript
bsd-2-clause
763
var Emitter = (function() { var callbacks = {}; return { on: function(type, callback) { if(!!callbacks[type]) { callbacks[type] = []; } callbacks[type].push({action: callback, isActive: true}) }, emit: function(type) { if(!!callbacks[type]) { for(var i = 0, length = callbacks[type].length; ...
kristijan-pajtasev/ChatBOx
dev/js/.module-cache/8b6ec52dfc68b2c4e429bc7b0bce3a71d6df33c1.js
JavaScript
bsd-2-clause
463
/*! * VisualEditor UserInterface TargetToolbar class. * * @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt * @license The MIT License (MIT); see LICENSE.txt */ /** * UserInterface target toolbar. * * @class * @extends ve.ui.SurfaceToolbar * * @constructor * @param {ve.init.Target} target ...
BRL-CAD/web
wiki/extensions/VisualEditor/modules/ve/ui/ve.ui.TargetToolbar.js
JavaScript
bsd-2-clause
933
EPUBJS.Book = function(options){ var book = this; this.settings = EPUBJS.core.defaults(options || {}, { bookPath : undefined, bookKey : undefined, packageUrl : undefined, storage: false, //-- true (auto) or false (none) | override: 'ram', 'websqldatabase', 'indexeddb', 'filesystem' fromStorage : false, ...
adn-tm/epub.js
src/book.js
JavaScript
bsd-2-clause
36,716
// This file was procedurally generated from the following sources: // - src/dstr-binding/ary-ptrn-empty.case // - src/dstr-binding/default/gen-method-dflt.template /*--- description: No iteration occurs for an "empty" array binding pattern (generator method (default parameter)) esid: sec-generator-function-definitions...
sebastienros/jint
Jint.Tests.Test262/test/language/expressions/object/dstr-gen-meth-dflt-ary-ptrn-empty.js
JavaScript
bsd-2-clause
2,098
/** * @fileoverview Build file * @author nzakas */ /* global cp, echo, rm */ /* eslint no-console: 0*/ //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ import "shelljs/make.js"; //----...
eslint/espree
tools/sync-docs.js
JavaScript
bsd-2-clause
820
// 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.every es5id: 15.4.4.16-7-c-i-25 description: > Array.prototype.every - This object is the Arguments object which implements its own property get...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-25.js
JavaScript
bsd-2-clause
655
var expect = require('chai').expect; var assert = require('chai').assert; var selenium = require('selenium-launcher'); var soda = require('soda'); var browser = null; var World = function(callback){ this.assert = assert; this.expect = expect; if (browser == null) { selenium(fu...
JasonPaulGardner/GruntBuild
src/features/support/world.js
JavaScript
bsd-2-clause
790
// This file was procedurally generated from the following sources: // - src/dstr-assignment/obj-prop-put-prop-ref.case // - src/dstr-assignment/default/for-of.template /*--- description: The DestructuringAssignmentTarget of an AssignmentElement may be a PropertyReference. (For..of statement) esid: sec-for-in-and-for-o...
sebastienros/jint
Jint.Tests.Test262/test/language/statements/for-of/dstr-obj-prop-put-prop-ref.js
JavaScript
bsd-2-clause
1,264
/*! * VisualEditor InternalListNode class. * * @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt * @license The MIT License (MIT); see LICENSE.txt */ /** * ContentEditable internal list node. * * @class * @extends ve.ce.BranchNode * @constructor * @param {ve.dm.InternalListNode} model Model...
BRL-CAD/web
wiki/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.InternalListNode.js
JavaScript
bsd-2-clause
1,026
tabris.load(function() { var page = tabris.create("Page", { title: "ProgressBar", topLevel: true }); var progressBar = tabris.create("ProgressBar", { layoutData: {left: 15, right: 15, centerY: 0}, maximum: 300, selection: 100 }).appendTo(page); setInterval(function() { var selection...
paulvi/tabris-js
snippets/progressbar/progressbar.js
JavaScript
bsd-3-clause
455
{ 'dateTimeFormat': 'iso8601', 'events' : [ {'start': '1850', 'title': 'durationEvent false, start date', 'durationEvent' : false }, {'start': '1850', 'end': '1855', 'title': 'durationEvent false, start and end dates', 'durationEvent' : false }, ...
zepheira/timeline
src/webapp/examples/test_example/test.js
JavaScript
bsd-3-clause
11,869
// Copyright (c) 2011 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. // Simple success test: we want content-script APIs to be available (like // sendRequest), but other APIs to be undefined. var success = false; try {...
aYukiSekiguchi/ACCESS-Chromium
chrome/test/data/extensions/api_test/content_scripts/extension_iframe/iframe.js
JavaScript
bsd-3-clause
508
/*jslint browser: true, devel: true, node: true, ass: true, nomen: true, unparam: true, indent: 4 */ /** * @license * Copyright (c) 2015 The ExpandJS authors. All rights reserved. * This code may only be used under the BSD style license found at https://expandjs.github.io/LICENSE.txt * The complete set of authors ...
MassiveZergInc/MassiveZergInc.github.io
everHomev2/bower_components/expandjs/lib/tester/isDate.js
JavaScript
bsd-3-clause
1,019
/* A simple slider object that works with jQuery. Put this in your html : <div class="lydSlider"> <img src="./img/slider-left.png" alt="left"> <div class="container"> <div class="bar"> <div class='imgBox'><img src='./img/slider1.jpg' alt='slider_img'></div> ...
lydstyl/zend
public/js/lyd_slider.js
JavaScript
bsd-3-clause
5,405
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview PageListView implementation. * PageListView manages page list, dot list, switcher buttons and handles apps * pages callbacks fr...
SaschaMester/delicium
chrome/browser/resources/ntp4/page_list_view.js
JavaScript
bsd-3-clause
27,120
(function(global, undef) { var isBrowser = !! (typeof window !== undef && global.navigator && global.document); var debug; var basepath; if (isBrowser) { debug = (/debug/).test(location.search); basepath = location.href.slice(0, location.href.lastIndexOf('/')); } var mod = { basepath: debug ? basepath + '/s...
kshar1989/lithe
example/src/config.js
JavaScript
bsd-3-clause
535
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */ /* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */ /* eslint-disable import/no-mutable-exports */ // This function will deliver an error message to the browser console when all of the props passed in are undefined (fals...
salesforce/design-system-react
utilities/warning/one-of-component.js
JavaScript
bsd-3-clause
1,641
import { Application } from './lib/application'; import * as Sentry from 'sentry-expo'; import { SENTRY_DSN, SENTRY_ENABLE_IN_DEV, SENTRY_DEBUG } from 'react-native-dotenv'; Sentry.init({ dsn: SENTRY_DSN, enableInExpoDevelopment: SENTRY_ENABLE_IN_DEV, debug: SENTRY_DEBUG }); export default Application;
pg-irc/pathways-frontend
App.js
JavaScript
bsd-3-clause
318
import { uniqWith, identical, pipe, curryN } from 'ramda'; import lengthLte from './lengthLte'; /** * Returns true if all items in the list are equivalent using `R.identical` for equality comparisons. * * @func allIdentical * @memberOf RA * @since {@link https://char0n.github.io/ramda-adjunct/2.11.0|v2.11.0} * ...
char0n/ramda-adjunct
src/allIdentical.js
JavaScript
bsd-3-clause
830
import merge from 'lodash/merge'; export default class { constructor() { this.pageSize = 25; this.translations = { emptyPlaceholder: 'No data available', }; } /** * Set the default page size * @param {Number} pageSize the default page size */ setPageSize(pageSize) { this.p...
ovh-ux/ovh-ui-kit
packages/components/datagrid/src/js/datagrid.provider.js
JavaScript
bsd-3-clause
716
/* * Copyright (C) 2012 Singly, 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 conditions and ...
Singly/hallway
lib/authManager.js
JavaScript
bsd-3-clause
29,113
/** * $Id: editor_plugin_src.js,v 1.1 2006/12/26 22:46:51 tmseidel Exp $ * * @author Moxiecode * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved. */ /* Import plugin specific language pack */ tinyMCE.importPluginLanguagePack('insertdatetime'); var TinyMCE_InsertDateTimePlugi...
versionone/VersionOne.Integration.Eclipse
de.spiritlink.richhtml4eclipse/tiny_mce/jscripts/tiny_mce/plugins/insertdatetime/editor_plugin_src.js
JavaScript
bsd-3-clause
3,200
var Backbone = require('backbone'); module.exports = Backbone.View.extend({ events: { 'change': 'handleChange', }, template: _.template(`<span class='<%= holderClass %>'></span>`), initialize(opts) { var opt = opts || {}; var ppfx = opt.ppfx || ''; this.target = opt.target || {}; this.in...
851091009/grapesjs
src/domain_abstract/ui/Input.js
JavaScript
bsd-3-clause
1,956
var parse = require("./message-parser"); var cube = require("cube"); var emitter = cube.emitter("ws://127.0.0.1:1080"); // TODO configure process.on("SIGINT", function() { emitter.close(); }); module.exports = function(date, source, dyno, message) { if (source === "heroku" && dyno === "router") { message = ...
mbostock/cube-logplex
lib/cube-logplex/router.js
JavaScript
bsd-3-clause
1,085
angular.module('RadCalc').directive('isolateForm', [function () { return { restrict: 'A', require: '?form', link: function (scope, elm, attrs, ctrl) { if (!ctrl) { return; } // Do a copy of the controller var ctrlCopy = {}; ...
CTSIatUCSF/RadiationDoseCalculator
app/directives/IsolateFormDirective.js
JavaScript
bsd-3-clause
1,202
/*! jQuery UI - v1.9.2 - 2015-05-24 * http://jqueryui.com * Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */ jQuery(function(e){e.datepicker.regional.km={closeText:"ធ្វើ​រួច",prevText:"មុន",nextText:"បន្ទាប់",currentText:"ថ្ងៃ​នេះ",monthNames:["មករា","កុម្ភៈ","មីនា","មេសា","ឧសភា","មិថុនា","កក្ក...
innervisiongroup/FoodlidaysWebApp
www/development-bundle/ui/minified/i18n/jquery.ui.datepicker-km.min.js
JavaScript
bsd-3-clause
1,238
var __extends = this.__extends || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; ///< reference path="../d.ts/jquery_plugins.d.ts" /> var AssureNote; (function (AssureNote) { var ...
AssureNote/AssureNote
AssureNote/src/HistoryView.js
JavaScript
bsd-3-clause
6,869
$(function(){ //阅读全文按钮 $('.post-permalink .btn').click(function(){ }); //留言版-显示表情包 $tog=true; $('.face-img').click(function(){ if($tog){ $('.exp-box').show(); }else{ $('.exp-box').hide(); } $tog=!$tog; }); //留言板-留言:转换表情 $arr_face=[]; $all_face=[]; $msg_face=[]; for($i=0; $i< $('.exp-box li'...
louzhiqiang/yyblog
web/assets/js/main.js
JavaScript
bsd-3-clause
4,213
/* Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.gi...
cvoegtle/polymer-wetter-wolke
gulpfile.js
JavaScript
bsd-3-clause
7,545
/* * Copyright (c) 2016, Two Sigma Open Source * 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...
twosigma/git-meta
node/lib/util/push.js
JavaScript
bsd-3-clause
10,697
var filtergrid = "#materialgrid_gw"; var filtermodal = "#MaterialFilter"; var filtersearch = "MaterialSearch"; var modalShow = function () { $(filtergrid).find('.filter_button').click(function (e) { e.preventDefault(); $(filtermodal).modal('show').find('.modal-body').html('<div style="height: 150px...
vovancho/yii2test
web/js/materialfilter.js
JavaScript
bsd-3-clause
3,240
var ex__put__concat__elem__block_8c = [ [ "ex_put_concat_elem_block", "ex__put__concat__elem__block_8c.html#a03cff8e6e59a2c6b56cc1f232c2898c8", null ] ];
nschloe/seacas
docs/html/ex__put__concat__elem__block_8c.js
JavaScript
bsd-3-clause
157
angular.module('os.biospecimen.models.visitnameprinter', ['os.common.models']) .factory('VisitNamePrinter', function(osModel, $http, Alerts) { var VisitNamePrinter = osModel('visit-name-printer'); VisitNamePrinter.printNames = function(detail) { return $http.post(VisitNamePrinter.url(), detail).then( ...
krishagni/openspecimen
www/app/modules/biospecimen/models/visit-printer.js
JavaScript
bsd-3-clause
518
/*! ColReorder 1.1.4-dev * ©2010-2014 SpryMedia Ltd - datatables.net/license */ /** * @summary ColReorder * @description Provide the ability to reorder columns in a DataTable * @version 1.1.4-dev * @file dataTables.colReorder.js * @author SpryMedia Ltd (www.sprymedia.co.uk) * @contact w...
ingzepe/pronoi
public/js/dataTables.colReorder.js
JavaScript
bsd-3-clause
50,824
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ // Compressed version of core/ckeditor_base.js. See original for instructions. /*jsl:ignore*/ if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',version:'3.5...
fredd-for/codice
ckeditor/ckeditor_basic_source.js
JavaScript
bsd-3-clause
1,507
import React, { PureComponent } from 'react'; import { I18nManager, Platform, View, ViewPropTypes } from 'react-native'; import PropTypes from 'prop-types'; import PaginationDot from './PaginationDot'; import styles from './Pagination.style'; const IS_IOS = Platform.OS === 'ios'; const IS_RTL = I18nManager.isRTL; exp...
houseofstylist/react-native-snap-carousel
src/pagination/Pagination.js
JavaScript
bsd-3-clause
4,760
"use strict"; var katex = require('katex'); export class LaTeXTransformer { get mimetype() { return 'text/latex'; } transform(latex, doc) { var el = doc.createElement('div'); el.innerHTML = katex.renderToString(latex); return el; } }
willwhitney/transformime-jupyter-transformers
src/latex.transformer.js
JavaScript
bsd-3-clause
285
import React from 'react'; import {storiesOf} from '@storybook/react'; // import {action} from '@storybook/addon-actions'; import {withInfo} from '@storybook/addon-info'; import StackedBarChart from 'sentry-ui/stackedBarChart'; storiesOf('StackedBarChart', module).add( 'default', withInfo('')(() => ( <div sty...
gencer/sentry
docs-ui/components/stackedBarChart.stories.js
JavaScript
bsd-3-clause
966
/** * Created by praba on 2/12/2016. */ //JS file for physicins page Polymer({ is: "physicins-page", ready:function() { //Setting current page in session for fetching labels dynamically localStorage.setItem("curr_sess_showpage","physicins-page"); //calling webcomponent service to fetch labels fo...
ZenCodes/erpworkflow
app/scripts/physicins-page.js
JavaScript
bsd-3-clause
551
/** * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails onca...
mpontus/jest
packages/jest-cli/src/__tests__/watch-filename-pattern-mode-test.js
JavaScript
bsd-3-clause
7,293
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
RPGOne/Skynet
node-master/test/parallel/test-crypto-dh-odd-key.js
JavaScript
bsd-3-clause
1,665
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ 'use strict'; var createStore = require('fluxible/addons').createStore; var routesConfig= require('../configs/routes') var ApplicationStore = createStore({ storeName: 'ApplicationSt...
michaelBenin/flux-examples
fluxible-router/stores/ApplicationStore.js
JavaScript
bsd-3-clause
1,925
function tryDecode(array) { var IV=[], message=''; var key = localStorage.aeskey; if (!key) key = '00112233445566778899aabbccddeeff'; var key = CryptoJS.enc.Hex.parse(key); for (i = 0; i < array.length; ++i) message = message + array[i]; if (message.length < 64) return; IV = message.slice(0,32...
WillerZ/snique-client-chrome
background.js
JavaScript
bsd-3-clause
2,617
define([ "intern!object", "intern/chai!assert", "delite/register", "deliteful/Button" ], function (registerSuite, assert, register, Button) { var container, html = "<button is='d-button' id='b1' textDir='ltr'>" + "\u05d0\u05d1\u05d2 ABC</button>" + "<button is='d-button' id='b2' textDir='rtl'>ABC \u05d0\u05d1\...
tkrugg/deliteful
tests/unit/bidi/Button.js
JavaScript
bsd-3-clause
4,612
import { Start } from './components/start'; import { About } from './components/about'; import { Contact } from './components/contact'; @RouteConfig([ { path: '/', component: Start, as: 'start'} { path: '/about', component: About, as: 'about'} { path: '/contact', component: Contact, as: 'contact'} ]) class...
olostan/slides_ng2arch
web/samples/route_s1.js
JavaScript
bsd-3-clause
334
// Generated by CoffeeScript 1.10.0 (function() { var preloaded, indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; preloaded = []; arcs.preload = function(images) { var i, img, len, results; if (typeof...
matrix-msu/arcs
app/webroot/js/utils/preload.js
JavaScript
bsd-3-clause
691
import m from 'mithril'; export function view(ctrl, Body) { return <html> <head> <title>readings</title> <meta charset="utf-8" /> <meta name="description" content="A platform to present written information about specific topics" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> ...
PaulAvery/readings
src/views/frame.js
JavaScript
bsd-3-clause
748
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S15.5.4.14_A4_T5; * @section: 15.5.4.14; * @assertion: String.prototype.split (separator, limit) returns an Array object into which substrings of the result of converting thi...
luboid/ES5.Script
TestScripts/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.5_String_Objects/15.5.4_Properties_of_the_String_Prototype_Object/15.5.4.14_String.prototype.split/S15.5.4.14_A4_T5.js
JavaScript
bsd-3-clause
2,443
/* eslint-env jest */ import React from 'react' import { fireEvent, cleanup } from '@testing-library/react' import { renderWithIntl } from '../../../../test/helpers/render' import StreetMetaWidthMenu from '../StreetMetaWidthMenu' describe('StreetMetaWidthMenu', () => { afterEach(cleanup) it('renders (metric units...
codeforamerica/streetmix
assets/scripts/streets/__tests__/StreetMetaWidthMenu.test.js
JavaScript
bsd-3-clause
1,813
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
StyleT/angularjs-acl
dist/acl.js
JavaScript
bsd-3-clause
44,485
/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 3.7.3 build: 3.7.3 */ YUI.add("lang/datatable-sort",function(e){e.Intl.add("datatable-sort","",{asc:"Ascending",desc:"Descending",sortBy:"Sort by {column}",reverseSortBy:"Rev...
giros/alloy-ui
build/datatable-sort/lang/datatable-sort.js
JavaScript
bsd-3-clause
356
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview Root element of the OOBE UI Debugger. */ // #import {addSingletonGetter} from 'chrome://resources/js/cr.m.js'; // #import {loadTime...
ric2b/Vivaldi-browser
chromium/chrome/browser/resources/chromeos/login/debug/debug.js
JavaScript
bsd-3-clause
49,340
'use strict'; //# sourceMappingURL=index.js.map
koack/koack
lib-node7/types/index.js
JavaScript
isc
47
import attach from "@unction/attach" import isArray from "@unction/isarray" import isObject from "@unction/isobject" import reduceWithValueKey from "@unction/reducewithvaluekey" export default function mapValuesWithValueKey (unction: ValueType => ValueType): Function { return function mapValuesWithValueKeyUnction (i...
krainboltgreene/ramda-extra.js
package/mapValuesWithValueKey/index.js
JavaScript
isc
885
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z" /> , 'Tune');
callemall/material-ui
packages/material-ui-icons/src/Tune.js
JavaScript
mit
260
import { clickable, create, hasClass, isVisible, text } from 'ember-cli-page-object'; import { pageObjectFillInFroalaEditor, pageObjectFroalaEditorValue } from 'ilios-common'; import meshManager from './manage-objective-descriptors'; import competencyManager from './manage-objective-competency'; import meshDescriptors ...
ilios/frontend
tests/pages/components/program-year/objective-list-item.js
JavaScript
mit
2,041
define(["exports", "foo"], function (_exports, _foo) { "use strict"; Object.defineProperty(_exports, "__esModule", { value: true }); _exports.default = void 0; _exports.default = _foo.foo; });
babel/babel
packages/babel-plugin-transform-modules-amd/test/fixtures/assumption-constantReexports/export-from-2/output.js
JavaScript
mit
208
import { Template } from 'meteor/templating'; import './DiscussionTabbar.html'; Template.discussionsTabbar.helpers({ close() { const { data } = Template.instance(); const { tabBar } = data; return () => tabBar.close(); }, });
Sing-Li/Rocket.Chat
app/discussion/client/views/DiscussionTabbar.js
JavaScript
mit
236
import { IsolatedInlineNodeComponent, TextPropertyEditor } from 'substance' export default class TestInlineNodeComponent extends IsolatedInlineNodeComponent { getClassNames () { return 'sc-test-inline sc-inline-node' } renderContent ($$) { const node = this.props.node return $$('span').append( ...
michael/substance-1
test/shared/TestInlineNodeComponent.js
JavaScript
mit
506
'use strict'; var PbWatcher = require('../'); var watchIntervalMs = 250; PbWatcher(function(data){ console.log('Clipboard changed to : "%s"', data); }, watchIntervalMs);
FGRibreau/clipboard-watcher
examples/simple.js
JavaScript
mit
175
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M21 3h-6.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H3v18h18V3zm-9 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-2 14l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z" /> , 'AssignmentTurnedInSharp'...
callemall/material-ui
packages/material-ui-icons/src/AssignmentTurnedInSharp.js
JavaScript
mit
323
var React = require('react/addons'); React.createElement('div', getProps(), 'foo');
reactjs/react-codemod
transforms/__testfixtures__/create-element-to-jsx-call-expression-as-prop.input.js
JavaScript
mit
85
OC.L10N.register( "files_versions", { "Versions" : "Versións", "Failed to revert {file} to revision {timestamp}." : "Non foi posíbel reverter {file} á revisión {timestamp}.", "_%n byte_::_%n bytes_" : ["%n byte","%n bytes"], "Restore" : "Restabelecer", "No other versions available" : "Non ha...
phil-davis/core
apps/files_versions/l10n/gl.js
JavaScript
mit
394
import {GraphQLNonNull, GraphQLID} from 'graphql' import {unlockRetroSurveyForUser} from 'src/server/actions/retroSurveyLockUnlock' import userCan from 'src/common/util/userCan' import {Project} from 'src/server/services/dataService/models' import {LGNotAuthorizedError} from 'src/server/util/error' import {ProjectSumm...
sdweber422/echo
src/server/graphql/mutations/unlockRetroSurveyForUser.js
JavaScript
mit
1,019
exports.config = { framework: 'jasmine', seleniumAddress: 'http://localhost:4444/wd/hub', baseUrl: 'http://localhost:8100', capabilities: { // You can use other browsers // like firefox, phantoms, safari, IE (-_-) 'browserName': 'chrome' }, specs: [ // We are going to make this file in a min...
shadow-heart/shadow-heart
client/www/protractor.config.js
JavaScript
mit
814
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors // MIT License. See license.txt frappe.ui.form.Comments = Class.extend({ init: function(opts) { $.extend(this, opts); this.make(); }, make: function() { var me = this; this.wrapper = $(frappe.render_template("timeline", { image: frappe...
mbauskar/helpdesk-frappe
frappe/public/js/frappe/form/footer/timeline.js
JavaScript
mit
8,048
import React from "react"; import ReactDOM from 'react-dom'; import _ from "lodash"; import {Key} from "../utils.js"; var Prompt = React.createClass({ contextTypes: { returnFocus: React.PropTypes.func }, propTypes: { options: React.PropTypes.array.isRequired, done: React.PropTypes....
ikoz/mitmproxy
web/src/js/components/prompt.js
JavaScript
mit
2,988
var searchData= [ ['bool_5foff',['bool_off',['../struct_sim___model_1_1bool__off.html',1,'Sim_Model']]], ['bool_5fon',['bool_on',['../struct_sim___model_1_1bool__on.html',1,'Sim_Model']]], ['bool_5fpiecewise',['bool_piecewise',['../struct_sim___model_1_1bool__piecewise.html#a577cc72f80e489a40e8e055aebdcdbe3',1,'S...
DL42/GOFish
docs/search/all_1.js
JavaScript
mit
1,483
/** @license MIT License (c) copyright 2010-2016 original author or authors */ /** @author Brian Cavalier */ /** @author John Hann */ import Stream from '../Stream' import Map from '../fusion/Map' import Pipe from '../sink/Pipe' /** * Transform each value in the stream by applying f to each * @param {function(*):*}...
axefrog/most
src/combinator/transform.js
JavaScript
mit
1,567
var Detector = require('./vendor/Detector.js'); if ( Detector.webgl ) renderer = new THREE.WebGLRenderer( {antialias:true} ); // if browser suports webgl use webgl renderer else renderer = new THREE.CanvasRenderer(); // fallback renderer.setSize(window.innerWidth, window.innerHeight); // set renderer size based o...
dweedon/DoI
app/server/public/js/renderer.js
JavaScript
mit
414
var _assoc = require('./_assoc'); var _dissoc = require('./_dissoc'); var _slice = require('./_slice'); module.exports = function _dissocPath(path, obj) { switch (path.length) { case 0: return obj; case 1: return _dissoc(path[0], obj); default: var head ...
raine/ramda
src/internal/_dissocPath.js
JavaScript
mit
474
var exec = require("cordova/exec"); var AppPreferences = function () {}; var AppPreferencesError = function(code, message) { this.code = code || null; this.message = message || ''; }; AppPreferencesError.NO_PROPERTY = 0; AppPreferencesError.NO_PREFERENCE_ACTIVITY = 1; AppPreferences.pr...
chrisekelley/AppPreferences
src/android/applicationPreferences.js
JavaScript
mit
1,285
// Karma configuration // Generated on Sat Oct 18 2014 22:09:29 GMT-0400 (EDT) var webpackConfig = require( "./webpack.config.js" ); var _ = require( "lodash" ); _.extend( webpackConfig, { cache: true, watch: false, debug: true, devtool: "inline-source-map" } ); var reporters = [ "spec" ]; delete webpackConfig....
dcneiner/lux.js
karma.conf.js
JavaScript
mit
2,071
if(!employees) { employees = []; } employees.push({ id:1, name: 'Lulu Hodges' });
dharapvj/learning-webpack2
step-00-no-webpack/modules/e115.js
JavaScript
mit
90
'use strict'; describe('testFilter', function () { var filter; beforeEach(module('a8m.test')); beforeEach(inject(function ($filter) { filter = $filter('test'); })); it('should test a string with given pattern', function() { expect(filter('15/12/2003', '^[0-9]{2}[/]{1}[0-9]{2}[/]{1}[0-9]{4}$', 'i...
gofaster-git/gofasterapp
node_modules/angular-filter/test/spec/filter/string/test.js
JavaScript
mit
956
import { Schema, Config } from '../../'; import schema from './schema' Config({ database: { adapter: 'postgresql', host: '127.0.0.1', user: /*'postgres',//*/ 'Z80', database: 'moon', password: '' }, server: { port: 8088, dist: __dirname + '/../dist' ...
z81/moonlight
src/examples/todomvc/server.js
JavaScript
mit
346
'use strict'; var common = require('../common'); var Transform = require('../../').Transform; module.exports = function (t) { t.test('transform split objectmode', function (t) { t.plan(10); var parser = new Transform({ readableObjectMode : true }); t.ok(parser._readableState.objectMode, 'parser 1'); ...
iojs/readable-stream
test/browser/test-stream-transform-split-objectmode.js
JavaScript
mit
1,617
let addEmp167 = (employees) => { employees.push( {id:167, name: 'Norman Atkins'} ) return employees; }; export {addEmp167};
dharapvj/learning-webpack2
step-01-with-webpack/modules/e167.js
JavaScript
mit
145
function OneCard(context) { this.context_ = context; } OneCard.prototype.exchange = function () { console.log(this); } suite('Base access', function() { test('need auth', function(done) { var request = require('request'); var card = new OneCard("hello"); var responseProcessor = _.bind(c...
zaqwes8811/micro-apps
projects/thin-client-impl/google-docs-nodejs/template.js
JavaScript
mit
1,104
// import config from './config'; import messages from '../client/messages'; const initialLocale = 'en'; export default { $pendingActions: {}, auth: { form: { fields: { email: '', password: '' }, error: null } }, i18n: { formats: {}, locales: initialLocale, ...
masterfung/react-immutable-flux-login
src/server/initialstate.js
JavaScript
mit
526
'use strict'; module.exports.install = function(admin){ admin.menu.addBefore('account', { id:'users', name:'User Management', icon:'fa fa-users', href:'#/users', allowRoles:['admin'] }); // admin angular module dependencies admin.module...
nodejs-enterprise/package-admin
packages/nodee-admin.package/plugins/users.js
JavaScript
mit
2,146