commit stringlengths 40 40 | subject stringlengths 1 3.25k | old_file stringlengths 4 311 | new_file stringlengths 4 311 | old_contents stringlengths 0 26.3k | lang stringclasses 3
values | proba float64 0 1 | diff stringlengths 0 7.82k |
|---|---|---|---|---|---|---|---|
faa3cb0ccc84360ccbf02a993899be841ce82447 | Test for apollo link | javascript_client/sync/__tests__/generateJsClientTest.js | javascript_client/sync/__tests__/generateJsClientTest.js | var { generateClient, JS_TYPE } = require("../generateClient")
var fs = require("fs")
function withExampleClient(mapName, callback) {
// Generate some code and write it to a file
var exampleMap = { a: "b", "c-d": "e-f" }
var jsCode = generateClient("example-client", exampleMap, JS_TYPE)
var filename = "./" + m... | JavaScript | 0 | @@ -1382,28 +1382,675 @@
%22example-client/b%22)%0A %7D)%0A%7D)%0A
+%0Ait(%22generates an Apollo Link%22, () =%3E %7B%0A var fakeOperation = %7B%0A operationName: %22a%22,%0A context: null,%0A setContext: function(c) %7B%0A this.context = c%0A %7D,%0A extensions: %7B%7D,%0A %7D%0A%0A var forwar... |
21402a6e56fd72e116388c738369ea9e69f7e00d | Fix Widget edit | Bundle/CoreBundle/Resources/public/js/edit/widget.js | Bundle/CoreBundle/Resources/public/js/edit/widget.js | // Event
////////
// Open select when click on dropdown link
$vic(document).on('focus', '.vic-new-widget select', function(event) {
$vic(this).addClass('vic-open');
});
$vic(document).on('blur', '.vic-new-widget select', function(event) {
$vic(event.target).prop('selectedIndex', 0);
$vic(event.target).rem... | JavaScript | 0 | @@ -3393,25 +3393,30 @@
if (
-form == undefined
+$vic(form).length == 0
) %7B%0A
|
a4ad9cef7fe21b4ea69ea80f4a0ad787b6bc50c0 | Initialize default position at map creation | src/GoogleMaps/widget/GoogleMaps.js | src/GoogleMaps/widget/GoogleMaps.js | /*jslint white:true, nomen: true, plusplus: true */
/*global mx, define, require, browser, devel, console, google, window */
define([
'dojo/_base/declare', 'mxui/widget/_WidgetBase', 'dijit/_TemplatedMixin',
'dojo/dom-style', 'dojo/dom-construct', 'dojo/_base/array', 'dojo/_base/lang',
'GoogleMaps/lib/goog... | JavaScript | 0 | @@ -779,16 +779,48 @@
: null,%0A
+ _defaultPosition: null,%0A
%0A%0A
@@ -2191,32 +2191,126 @@
%7D);%0A%0A
+ this._defaultPosition = new google.maps.LatLng(this.defaultLat, this.defaultLng);%0A
this
@@ -2418,64 +2418,29 @@
er:
-new google.maps.LatLng(
this.
+_
defau... |
02c121ab3ecea235d3ae842589b6f7c7c30f390c | change layerspec TESTING | app/assets/javascripts/map/services/MapLayerService.js | app/assets/javascripts/map/services/MapLayerService.js | /**
* Aysynchronous service for accessing map layer metadata.
*
*/
define([
'Class',
'mps',
'store',
'map/services/DataService',
'uri',
'underscore'
], function (Class, mps, store, ds, UriTemplate, _) {
'use strict';
var MapLayerService = Class.extend({
requestId: 'MapLayerService:getLayers',
... | JavaScript | 0 | @@ -2228,24 +2228,47 @@
external, %5C%0A
+ iso, %5C%0A
@@ -2649,18 +2649,22 @@
pec_
-adrian_dev
+nuclear_hazard
%5C%0A
|
c4dd9dd950f3c13ba2e7b6bc08ab995cdc4bc268 | Set the observable properties when rendering templates | js/models/dashboard.js | js/models/dashboard.js | ds.models.dashboard = function(data) {
"use strict";
var storage = {}
, self = {};
this._init = function(_) {
self.index = {}
if (_) {
self.set_id(_.id)
.set_title(_.title)
.set_category(_.category)
.set_summary(_.summary)
.set_description(_.description... | JavaScript | 0.000001 | @@ -2686,22 +2686,19 @@
%7B%0A s
-torage
+elf
.descrip
@@ -2759,22 +2759,19 @@
);%0A s
-torage
+elf
.title
@@ -2826,22 +2826,19 @@
);%0A s
-torage
+elf
.summary
|
8a4c27ce44214cd02522381fb9fcf06fb340d072 | Update defaults-et_EE.js | js/i18n/defaults-et_EE.js | js/i18n/defaults-et_EE.js | /*
* Translated default messages for bootstrap-select.
* Locale: EN (English)
* Region: US (United States)
*/
(function ($) {
$.fn.selectpicker.defaults = {
noneSelectedText: 'Valikut pole tehtud',
noneResultsText: 'Otsingule {0} ei ole vasteid',
countSelectedText: function (numSelected, numTotal) {
... | JavaScript | 0.000001 | @@ -65,18 +65,21 @@
e: E
-N (English
+T (Eesti keel
)%0A *
@@ -91,25 +91,19 @@
on:
-US (United States
+EE (Estonia
)%0A *
|
6f928098194b65fa92a3657d954b0b053889890b | Update paste-decoded-uri-shortcut.user.js | paste-decoded/paste-decoded-uri-shortcut.user.js | paste-decoded/paste-decoded-uri-shortcut.user.js | // ==UserScript==
// @name decodeURI & Paste text - Keyboard shortcut
// @namespace https://github.com/arieljannai/tampermonkey-scripts
// @version 0.1
// @description Calling decodeURI to get a nicer and readable URI (Ctrl + Shift + V)
// @author Ariel Jannai
// @icon https://pixabay.com... | JavaScript | 0.000001 | @@ -379,16 +379,48 @@
720.png%0A
+// @include /%5Ehttps?://.*/%0A
// @gran
@@ -1108,12 +1108,13 @@
eturn x;%0A%7D);
+%0A
|
72ba6199888e9b68f741605fdd48f8084ca14ed4 | converted string to Number | js/iqama-data-function.js | js/iqama-data-function.js | jQuery(document).ready(function( $ ) {
var iqamaNewTimes = iqamaNew;
var iqamaOldTimes = iqamaOld;
var monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
var currentDate = new Date();
var currentMonth = monthNames[currentDate.get... | JavaScript | 0.999999 | @@ -1025,32 +1025,39 @@
tedDate ===
+Number(
obj.Day)
%7B%0A%09%09%09%09%09%09%09$(
@@ -1036,32 +1036,33 @@
Number(obj.Day)
+)
%7B%0A%09%09%09%09%09%09%09$('#pr
@@ -1922,24 +1922,31 @@
ate ===
+Number(
obj.Day)
%7B%0A%09%09%09%09%09
@@ -1937,16 +1937,17 @@
obj.Day)
+)
%7B%0A%09%09%09%09%09
|
c26bc22b0c94863c4abaefeb50895f7c34edeccd | Add shebang and change permission | bin/bulbo.js | bin/bulbo.js | 'use strict'
var interpret = require('interpret')
var Liftoff = require('liftoff')
var argv = require('minimist')(process.argv.slice(2))
var pkg = require('../package')
var version = function () {
console.log(pkg.name + '@' + pkg.version)
}
var usage = function () {
console.log('Usage: bulbo [build|serve]... | JavaScript | 0 | @@ -1,8 +1,29 @@
+#! /usr/bin/env node%0A
'use str
|
a4a81c5434c73139f7c1d66f2687039237c5208a | Fix crash in /web/lists | app/javascript/flavours/glitch/features/lists/index.js | app/javascript/flavours/glitch/features/lists/index.js | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from 'flavours/glitch/components/loading_indicator';
import Column from 'flavours/glitch/features/ui/components/column';
import Column... | JavaScript | 0 | @@ -1932,16 +1932,178 @@
%0A %7D%0A%0A
+ const emptyMessage = %3CFormattedMessage id='empty_column.lists' defaultMessage=%22You don't have any lists yet. When you create one, it will show up here.%22 /%3E;%0A%0A
retu
|
c29b98e31494147726859939533f29ba30b99a72 | Update chunkSize in chunkModeSwitcher | app/js/arethusa.core/directives/chunk_mode_switcher.js | app/js/arethusa.core/directives/chunk_mode_switcher.js | "use strict";
angular.module('arethusa.core').directive('chunkModeSwitcher', [
'navigator',
'notifier',
'translator',
function(navigator, notifier, translator) {
return {
restrict: 'A',
scope: {},
link: function(scope, element, attrs) {
scope.navi = navigator;
scope.size =... | JavaScript | 0 | @@ -296,50 +296,8 @@
tor;
-%0A scope.size = navigator.chunkSize;
%0A%0A
@@ -386,16 +386,100 @@
ror');%0A%0A
+ scope.$watch('navi.chunkSize', function(newVal) %7B scope.size = newVal; %7D);%0A%0A
|
7ea4b37e0cd4bcf64b9a4e14058248513e566fd5 | Update jquery.adcHighlight.js | js/jquery.adcHighlight.js | js/jquery.adcHighlight.js | /**
* jQuery adcHighlight Plugin v1.0.0
* https://github.com/adclick
*
* Copyright 2014 Adclick Lda
*
* 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/licens... | JavaScript | 0.000001 | @@ -59,20 +59,48 @@
.com/adc
-lick
+-tcarvalho/jquery-adcHighlighter
%0A *%0A * C
@@ -3491,8 +3491,9 @@
Query));
+%0A
|
ab90eaebecaee13b35b3219b7ceb7f05572d9fd9 | update help | bin/index.js | bin/index.js | #!/usr/bin/env node
'use strict';
var Liftoff = require('liftoff');
var tildify = require('tildify');
var semver = require('semver');
var reportError = require('./util/reportError');
var lintConfig = require('./commands/lint').lintConfig;
var glob = require('glob');
var log = require('../lib/util/log.js');
var path = ... | JavaScript | 0 | @@ -795,24 +795,192 @@
err);%0A%7D);%0A%0A
+var printHelpMessage = function(program, cliVersion, moduleVersion) %7B%0A%0A console.log(%22tog v%22 + cliVersion + %22 local module v%22 + moduleVersion);%0A program.help();%0A%0A%7D;%0A%0A%0A
var launcher
@@ -2747,16 +2747,63 @@
sCLI(env
+, cliPackage.version, env.mo... |
f60c0b16ebff02d7502c19b4871bcab29c7704a1 | use var for subcats | app/scripts/controllers/admin.categories.controller.js | app/scripts/controllers/admin.categories.controller.js | /*globals prompt */
'use strict';
(function() {
angular
.module('simpleArmoryApp')
.controller('AdminCategories', AdminCategories);
function AdminCategories($scope, AdminService) {
AdminService.getMountData().then(function(data){
// Generic interface to allow different t... | JavaScript | 0 | @@ -373,16 +373,57 @@
= data;%0A
+ $scope.col1child = 'subcats';
%0A
@@ -1163,16 +1163,84 @@
n html%0A%0A
+ // TODO: how do i remap subcats/items global somewhere%0A%0A
@@ -1575,24 +1575,34 @@
selected
-.subcats
+%5B$scope.col1child%5D
;%0A
@@ -4080,24 +4080,34 @@
sele... |
eea5219c26e3c89e8f8f2993226337fa43cd98b9 | Fix for adding contact details | src/CSBill/ClientBundle/Resources/public/js/contacts_collection.js | src/CSBill/ClientBundle/Resources/public/js/contacts_collection.js | (function($) {
'use strict';
/**
* Form Collection
*/
$(document.body).on('click', '.contact_details_collection li', function(event) {
var value,
collectionHolder,
prototype,
regex,
form,
prototype_name,
collectionCo... | JavaScript | 0 | @@ -164,16 +164,45 @@
var
+$this = $(this),%0A
value,%0A
@@ -353,22 +353,20 @@
iner = $
-(
this
-)
.closest
@@ -483,22 +483,20 @@
('.' + $
-(
this
-)
.parents
@@ -520,62 +520,11 @@
et')
-);%0A collectionHolder = collectionHolder.filter(
+ +
'%5Bda
@@ -536,22 +536,20 @@
pe=' + $
-(
... |
4d4b6a35e5a91bcd51e010a4eb82f8772bf1c542 | test a run of zeros! | test/runs.js | test/runs.js |
var tape = require('tape')
var runs = require('../').runs
function seq (n, fn) {
var items = []
for(var i = 0; i < n; i++)
items.push(fn(i))
return items
}
tape('rle only', function (t) {
var actual = runs(seq(100, function () { return 4 }))
t.deepEqual(actual, [{value: 4, repeats: 100}])
t.end()
... | JavaScript | 0.000002 | @@ -1948,20 +1948,163 @@
%5D%5D%0A )%0A t.end()%0A%7D)%0A
+%0Atape('run of zeros', function (t) %7B%0A t.deepEqual(runs(seq(100, function () %7B return 0 %7D)),%0A %5B%7Bvalue: 0, repeats: 100%7D%5D%0A )%0A t.end()%0A%7D)%0A%0A%0A
|
338256d41ab85b7e4126641a03cbfd3461643619 | add -h,--help option for terminal help | bin/index.js | bin/index.js | #!/usr/bin/env node
var comn = require(".."),
isString = require("@nathanfaucett/is_string"),
filePath = require("@nathanfaucett/file_path"),
fileUtils = require("@nathanfaucett/file_utils"),
argv = require("@nathanfaucett/argv");
var options = argv({
file: ["f", "start file", "string"],
out:... | JavaScript | 0.000013 | @@ -257,17 +257,22 @@
tion
-s = argv(
+Definitions =
%7B%0A
@@ -643,20 +643,626 @@
ng%22%5D
-%0A%7D).parse();
+,%0A help: %5B%22h%22, %22show this help information%22, %22boolean%22%5D%0A%7D;%0A%0Avar options = argv(optionDefinitions).parse();%0A%0Afunction printHelp() %7B%0A%0A var fmt = %22comn v0.0.13%5C... |
c7eb3be843916677cc45ff754bc1d073cf05fec1 | fix integration tests startup | zuul.config.js | zuul.config.js | var zuulConfig = module.exports = {
ui: 'tape',
browserify: [{
transform: 'bulkify'
}]
};
if (process.env.BROWSERS !== 'integration') {
zuulConfig.scripts = [
'/node_modules/jquery/dist/jquery.min.js',
'/node_modules/jQuery-ajaxTransport-XDomainRequest/jquery.xdomainrequest.min.js',
'/node_modu... | JavaScript | 0.000011 | @@ -121,11 +121,10 @@
WSER
-S !
+ =
== '
@@ -164,16 +164,145 @@
pts = %5B%0A
+ // browser integration tests will use the dist files%0A '/dist/algoliasearch.min.js'%0A %5D;%0A%7D else %7B%0A zuulConfig.scripts = %5B%0A
'/no
|
cd415ee675ccc8a43ca893d79714e8663b225cb8 | Insert test to check for special types of insertion | colonel-kurtz/models/__tests__/block_list-test.js | colonel-kurtz/models/__tests__/block_list-test.js | jest.dontMock('../block_list')
jest.dontMock('../../utils/uid')
describe('Models - Block List', function() {
var BlockList = require('../block_list')
it ('can insert a block', function() {
var b = new BlockList({})
b.insertBlock(0, 0)
expect(b.all()).toEqual([ 0 ])
})
it ('can insert a block at... | JavaScript | 0 | @@ -387,33 +387,33 @@
.insertBlock(0,
-0
+1
)%0A b.insertBl
@@ -419,17 +419,17 @@
lock(1,
-1
+0
)%0A%0A e
@@ -453,20 +453,20 @@
Equal(%5B
-0, 1
+1, 0
%5D)%0A %7D)%0A
|
84ceac981a5d59d545748d4dbd3869c363b5c8dc | Handle index.html in a subdirectory of FOAM as well as a parent. | core/ModelDAO.js | core/ModelDAO.js | /**
* @license
* Copyright 2015 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 requir... | JavaScript | 0 | @@ -1054,16 +1054,17 @@
Of('/'))
+;
%0A foamd
@@ -1114,16 +1114,17 @@
Of('/'))
+;
%0A%0A // I
@@ -1203,16 +1203,34 @@
/%0A if (
+ foamdir === '' %7C%7C
path.in
|
135dcf2262387b2ba865b0e998a486ec4f26acf8 | Add test for direct code transpilation | __tests__/misc.test.js | __tests__/misc.test.js | import {compareTranspiled} from "./helpers";
describe('simple export', () => {
test('should not be changed', () => {
return compareTranspiled("examples/misc/export_noop");
});
});
describe('for paths with corresponding redirect of false', () => {
test('should remove imports without side effects', () => {
retur... | JavaScript | 0 | @@ -18,16 +18,31 @@
anspiled
+, transpileCode
%7D from %22
@@ -1033,28 +1033,929 @@
c/replace_import%22);%0A%09%7D);%0A%7D);
+%0A%0Adescribe('when code is provided not from a file', () =%3E %7B%0A%09test('assume filename to be %3Croot%3E/index.js when resolving path', () =%3E %7B%0A%09%09const input = %60%0A%09%09%0... |
e948114e09e9ee91fb5bdd8f713c8f43dba4e5bf | remove duplicate maintenance command | packages/heroku-apps/index.js | packages/heroku-apps/index.js | exports.topics = [
{ name: 'apps', description: 'manage apps' },
{ name: 'buildpacks', description: 'manage the buildpacks for an app' },
{ name: 'config', description: 'manage app config vars' },
{ name: 'create', hidden: true },
{ name: 'domains', description: 'manage the domains for a... | JavaScript | 0.000001 | @@ -2274,51 +2274,8 @@
'),%0A
- require('./commands/maintenance/index'),%0A
re
|
be78ab531778558eebffae40f9c68700371f9020 | clear update name timeout on unmount (#2800) | react/features/welcome/components/WelcomePage.web.js | react/features/welcome/components/WelcomePage.web.js | /* global APP, config, interfaceConfig, JitsiMeetJS */
import Button from '@atlaskit/button';
import { FieldTextStateless } from '@atlaskit/field-text';
import { AtlasKitThemeProvider } from '@atlaskit/theme';
import React from 'react';
import { connect } from 'react-redux';
import { initAnalytics } from '../../analy... | JavaScript | 0 | @@ -3328,32 +3328,71 @@
WillUnmount() %7B%0A
+ super.componentWillUnmount();%0A%0A
document
|
c8be7947f9aafe938b47f3fe131e198d16f1c3a3 | Update bootstrap.js | plugins/spoon/project_structure/app/bootstrap.js | plugins/spoon/project_structure/app/bootstrap.js | requirejs([
'Application/ApplicationController',
'services/state',
'{{baseLibrary}}'
], function (ApplicationController, stateService, {{baseLibraryVar}}) {
'use strict';
{{baseLibraryReady}}(function () {
// Initialize the Application controller
var appController = new Application... | JavaScript | 0.000001 | @@ -727,31 +727,16 @@
%7D
-, appController
)%0A
|
378ce8c447972fba832354ae023d824ace56d569 | copy traceback in firefox | addons/web/static/src/js/services/crash_manager.js | addons/web/static/src/js/services/crash_manager.js | odoo.define('web.CrashManager', function (require) {
"use strict";
var ajax = require('web.ajax');
var core = require('web.core');
var Dialog = require('web.Dialog');
var QWeb = core.qweb;
var _t = core._t;
var _lt = core._lt;
var map_title ={
user_error: _lt('Warning'),
warning: _lt('Warning'),
access_e... | JavaScript | 0.000004 | @@ -4966,32 +4966,337 @@
%7D
+,%0A // Container added because of Bootstrap modal that give the focus to another element.%0A // We need to give to correct focus to ClipboardJS (see in ClipboardJS doc)%0A // https://github.com/zenorocha/clipboard.js/issues/155%... |
487daba4a6d44a2152fc524938dde509e9f3da72 | Add inject as dependency of buildfiles | MSPSpain.Web/Content/gulpfile.js | MSPSpain.Web/Content/gulpfile.js | var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
var files = {
build: 'build/**/*.*',
buildJS: 'build/code.js',
buildCSS: 'build/styles.css',
css: 'css/**/*.css',
filePaths: ['css/**/*.css', 'ts/Services/*.js', 'ts/Models/*.js', 'ts/Interfaces/*.js', 'ts/Controllers/*.js', 'ts/App.js'],
... | JavaScript | 0.000001 | @@ -1643,24 +1643,34 @@
es', %5B'sass'
+, 'inject'
%5D, function
|
322620412dc86c5a6bfd02f80bbd6572098d3364 | change port | node/src/socket/UDPServer.js | node/src/socket/UDPServer.js | import dgram from 'dgram'
const handleCommand = (socket) => {
// Passed string of command to relay
socket.on('prime', (data) => {
console.log(`prime command: ${data}`)
// Info for connecting to the local process via UDP
const PORT = 12345
const HOST = '127.0.0.1'
const buffer = new Buffer(data... | JavaScript | 0.000001 | @@ -95,16 +95,54 @@
o relay%0A
+ console.log('socket start', socket)%0A
socket
@@ -311,16 +311,18 @@
= '1
-27.0.0.1
+92.168.7.2
'%0A
|
808669883f61e42a277c7728bcbe0bff0dab1f90 | Use constant instead of prop | modules/RouteHandlerMixin.js | modules/RouteHandlerMixin.js | var React = require('react');
var PropTypes = require('./PropTypes');
var RouteHandlerMixin = {
contextTypes: {
getRouteAtDepth: PropTypes.func.isRequired,
setRouteComponentAtDepth: PropTypes.func.isRequired,
routeHandlers: PropTypes.array.isRequired
},
childContextTypes: {
routeHandlers: PropT... | JavaScript | 0.000011 | @@ -31,42 +31,127 @@
var
-PropTypes = require('./PropTypes')
+assign = require('react/lib/Object.assign');%0Avar PropTypes = require('./PropTypes');%0A%0Avar REF_NAME = '__routeHandler__'
;%0A%0Av
@@ -554,97 +554,8 @@
%7D,%0A%0A
- getDefaultProps: function () %7B%0A return %7B%0A ref: '__routeHandler__'%0A... |
59e3c3e04527ecee3522aaea8089eb7d3bed54ca | fix deletion redux action for sources | ui/src/sources/containers/ManageSources.js | ui/src/sources/containers/ManageSources.js | import React, {PropTypes} from 'react';
import {withRouter, Link} from 'react-router';
import {getKapacitor, deleteSource} from 'shared/apis';
import {
loadSources as loadSourcesAction,
removeSource as removeSourceAction,
} from 'src/shared/actions/sources';
import {connect} from 'react-redux';
export const Manage... | JavaScript | 0.000001 | @@ -1263,24 +1263,35 @@
=%3E %7B%0A
+this.props.
removeSource
|
b595e1a87555171135a4b82241f43005ee8feb40 | fix slaves list updates+init | testsuite/wsperf/commander/static/js/wsperf.js | testsuite/wsperf/commander/static/js/wsperf.js | var sess;
var retryCount = 0;
var retryDelay = 1;
var slaves = {};
function onConnect() {
sess.prefix("api", "http://wsperf.org/api#");
sess.prefix("event", "http://wsperf.org/event#");
sess.subscribe("event:slaveConnected", onSlaveConnected);
sess.subscribe("event:slaveDisconnected", onSlaveDisconnected... | JavaScript | 0.000001 | @@ -54,23 +54,18 @@
r slaves
- = %7B%7D
;%0A
+
%0Afunctio
@@ -80,16 +80,34 @@
ect() %7B%0A
+%0A slaves = %7B%7D;%0A%0A
sess.
@@ -205,137 +205,8 @@
);%0A%0A
- sess.subscribe(%22event:slaveConnected%22, onSlaveConnected);%0A sess.subscribe(%22event:slaveDisconnected%22, onSlaveDisconnected);%0A%0A
s
@@... |
f481b9214a04ed9e8d1629418dee07388297db60 | delete redefinition of _general variable | lib/generators/fluxify/templates/stores/general_store.js | lib/generators/fluxify/templates/stores/general_store.js | /* global EventEmitter */
(function(root) {
'use strict';
var CHANGE_EVENT = "change";
var _general = [];
var generalMethod = function(data) {
var _general = data;
};
root.GeneralStore = $.extend({}, EventEmitter.prototype, {
general: function () {
return _general.slice();
},
addChang... | JavaScript | 0.000538 | @@ -148,20 +148,16 @@
) %7B%0A
-var
_general
|
8d9726f80b002cd5628b6f310a4442c97485e5cb | stop cron before save lastrun | core/Cronjob.js | core/Cronjob.js | function Cronjob(name, cycle, callback) {
var _name = '';
var _cycle = '* * * * *';
var _cycle_data = [];
var _callback = function(time) { /* Override Me */ };
var _last_run = undefined;
var _last_check = undefined;
var _watcher;
function Cronjob(instance, name, cycle, callback) {
_name = name;
_cycle... | JavaScript | 0.000001 | @@ -1976,16 +1976,31 @@
ion() %7B%0A
+%09%09this.stop();%0A
%09%09DB.sav
|
7fcd5f2383c6645c92e91fdd503bc417d1e48bac | Introduce handleFilterKeyPress test | ui/test/shared/components/Dropdown.test.js | ui/test/shared/components/Dropdown.test.js | import React from 'react'
import {Dropdown} from 'shared/components/Dropdown'
import DropdownMenu from 'shared/components/DropdownMenu'
import DropdownInput from 'shared/components/DropdownInput'
import {mount} from 'enzyme'
// mock props
const itemOne = {text: 'foo'}
const itemTwo = {text: 'bar'}
const items = [item... | JavaScript | 0 | @@ -6040,21 +6040,963 @@
%7D)%0A %7D)
+%0A%0A describe('handleFilterKeyPress', () =%3E %7B%0A describe('when Enter is pressed and there are items', () =%3E %7B%0A it('sets state of isOpen to false', () =%3E %7B%0A const %7Bdropdown%7D = setup(%7Bitems%7D)%0A dropdown.setState(%7B... |
4fb3ba837179d31190dcb2f9f8bf57ccf6ee4b09 | Remove use of LoDash from index.js | bin/index.js | bin/index.js | #!/usr/bin/env node
require('babel/polyfill');
var program = require('commander');
var fs = require("fs");
var each = require("lodash/collection/each");
var keys = require("lodash/object/keys");
var pkg = require("../package.json");
function list(val) {
return val.split(',');
}
program.option("-o, --out-file [out]"... | JavaScript | 0 | @@ -104,96 +104,8 @@
%22);%0A
-var each = require(%22lodash/collection/each%22);%0Avar keys = require(%22lodash/object/keys%22);%0A
var
@@ -760,13 +760,9 @@
;%0A%7D%0A
-each(
+%0A
file
@@ -766,18 +766,25 @@
ilenames
-,
+.forEach(
function
|
849b92f5d7150f1d77f5dfd30746157d01b8dff5 | update season title when clicked | vis/js/main.js | vis/js/main.js | console.log("Javascript loading!");
// These have to be global variables that preserve the state
// (basically which season and episode the user is currently trying to see)
var seasonNumber = 1;
var episodeNumber = 1;
var textData;
// this needs to change variable names
function make_episode_color_list() {
var e... | JavaScript | 0 | @@ -632,16 +632,112 @@
ist;%0A%7D%0A%0A
+var season_strings = %5B'Season 1', 'Season 2', 'Season 3', 'Season 4', 'Season 5', 'Season 6'%5D;%0A%0A
function
@@ -3295,16 +3295,136 @@
licked;%0A
+%0A // update season in left hand side%0A d3.select(%22#season-title%22).text(season_strings%5Bseries_clicked-1... |
28416dd17f76510e5ebdb7cf873a728ffeecced9 | Change countdown date to reflect end date | web/js/libs/countdown.min.js | web/js/libs/countdown.min.js | /* CountDown Clock v1.0.0.0 - https://github.com/e-piksel/countdown */
(function(e){e.fn.countdown=function(t,n){function o(){var e=new Date(r.date),t=s();var o=e-t;if(o<0){clearInterval(u);if(n&&typeof n==="function")n();return}var a=1e3,f=a*60,l=f*60,c=l*24;var h=Math.floor(o/c),p=Math.floor(o%c/l),d=Math.floor(o%l/f... | JavaScript | 0.000195 | @@ -1308,18 +1308,18 @@
'04/
-11
+20
/2015
-10
+22
:00:
|
e4747588341423d8a7dde4e273b3c81f3d65c384 | Update namespace | lib/node_modules/@stdlib/types/ndarray/base/lib/index.js | lib/node_modules/@stdlib/types/ndarray/base/lib/index.js | 'use strict';
/*
* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.
*/
// MODULES //
var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
// MAIN //
/**
* Top-level namespace.
*
* @namespace ns
*/
var ns = {};
/**
* @name bind2vin... | JavaScript | 0.000001 | @@ -1121,24 +1121,254 @@
ides' ) );%0A%0A
+/**%0A* @name strides2offset%0A* @memberof ns%0A* @readonly%0A* @constructor%0A* @see %7B@link module:@stdlib/types/ndarray/base/strides2offset%7D%0A*/%0AsetReadOnly( ns, 'strides2offset', require( '@stdlib/types/ndarray/base/strides2offset' ) );%0A%0A
%0A// EXPORTS
|
3928dd6bb6fa44c98ac88da91c0764c362805cc6 | Add renderAppWithState function to jest utils | client/jest/clientTestUtils.js | client/jest/clientTestUtils.js | // adapted from Kent Dodds's testing workshop repo
// https://github.com/kentcdodds/testing-workshop/blob/master/client/test/client-test-utils.js
import React from 'react'
import {Router} from 'react-router-dom'
import {mount} from 'enzyme'
import {createMemoryHistory} from 'history'
import * as generate from 'til-sha... | JavaScript | 0 | @@ -214,21 +214,63 @@
import %7B
+ Provider %7D from 'react-redux';%0Aimport %7B
mount
+
%7D from '
@@ -285,16 +285,17 @@
import %7B
+
createMe
@@ -305,16 +305,17 @@
yHistory
+
%7D from '
@@ -323,16 +323,89 @@
istory'%0A
+import %7B createStore %7D from 'redux';%0Aimport App from '../src/app/App'%0A//
imp... |
7f1c8fb26acb5b7e2f6dda8418ec39365741ce06 | add white background to Avatars component images | agir/front/components/genericComponents/Avatars.js | agir/front/components/genericComponents/Avatars.js | import PropTypes from "prop-types";
import React from "react";
import styled from "styled-components";
import Avatar from "./Avatar";
const StyledWrapper = styled.span`
display: inline-block;
padding: 0;
margin: 0;
line-height: 0;
display: grid;
grid-template-columns: 20px 20px 20px;
grid-template-rows:... | JavaScript | 0 | @@ -430,16 +430,45 @@
d white;
+%0A background-color: white;
%0A%0A :f
|
f65ab7e21d399176f7342d8ccfd9a99cf54424f1 | add test with combining data-uri and coffee-loader | test/cases/resolving/data-uri/index.js | test/cases/resolving/data-uri/index.js | it("should require js module from base64 data-uri", function() {
const mod = require("data:text/javascript;charset=utf-8;base64,bW9kdWxlLmV4cG9ydHMgPSB7CiAgbnVtYmVyOiA0MiwKICBmbjogKCkgPT4gIkhlbGxvIHdvcmxkIgp9Ow==");
expect(mod.number).toBe(42);
expect(mod.fn()).toBe("Hello world");
});
it("should require js module ... | JavaScript | 0 | @@ -702,28 +702,329 @@
)).toBe(%22Hello world%22);%0A%7D);%0A
+%0Ait(%22should require coffee module from base64 data-uri%22, function() %7B%0A%09const mod = require('coffee-loader!data:text/javascript;charset=utf-8;base64,bW9kdWxlLmV4cG9ydHMgPQogIG51bWJlcjogNDIKICBmbjogKCkgLT4gIkhlbGxvIHdvcmxkIg==');%0A%09expect(mod.... |
30e0a28f3d3309a2711416c0bad9123810acaa0b | Include whole entrypoint directory to be compiled (#152) | bin/micro.js | bin/micro.js | #!/usr/bin/env node
// Native
const path = require('path')
// Packages
const asyncToGen = require('async-to-gen/register')
const updateNotifier = require('update-notifier')
const nodeVersion = require('node-version')
const args = require('args')
const isAsyncSupported = require('is-async-supported')
// Ours
const pk... | JavaScript | 0 | @@ -1591,16 +1591,65 @@
')).base
+%0A const fileDirectoryPath = path.parse(file).dir
%0A%0A asyn
@@ -1728,16 +1728,29 @@
)%7C$%7Bfile
+DirectoryPath
%7D.*%60),%0A
|
453a780b2244255fcb5be198b0a904396e4715f9 | add -v, --version command | bin/dockerps.js | bin/dockerps.js | #!/usr/bin/env node
'use strict'
const meow = require('meow')
const _ = require('lodash')
const exec = require('child_process').exec
const print = require('../lib')
const cli = meow(`
Usage
$ dockerps [OPTIONS]
Options
-a, --all Show all containers (default shows just running)
-l, --latest Show ... | JavaScript | 0.000018 | @@ -237,24 +237,25 @@
, --all
+
Show all con
@@ -309,16 +309,17 @@
latest
+
Show the
@@ -383,16 +383,17 @@
number
+
Show n l
@@ -432,24 +432,56 @@
non-running%0A
+ -v, --version Show version%0A
-h, --he
@@ -482,24 +482,25 @@
, --help
+
Show usage%0A%60
@@ -553,16 +553,16 @@
atest',%0... |
6cd749996fe2770935927f0da71f6be7a6de4706 | Fix jsdoc. | assets/js/modules/analytics/components/module/index.js | assets/js/modules/analytics/components/module/index.js | /**
* Analytics dashboard components.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENS... | JavaScript | 0 | @@ -14,17 +14,19 @@
ics
-dashboard
+module page
com
|
8792242c3780d6284d836d8f83e126035a9030ef | Update waitForElementWithText.js | __tests__/e2e/extensions/waitForElementWithText.js | __tests__/e2e/extensions/waitForElementWithText.js | const timeoutOverride = process.env.TEST_TIMEOUT_OVERRIDE
module.exports.command = function (selector, text, timeout) {
const finalTimeout = timeout && timeout > 0 ? timeout : (timeoutOverride ? timeoutOverride : 5000)
this.expect.element(selector).text.to.contain(text).before(finalTimeout)
return this
}
| JavaScript | 0.000001 | @@ -290,18 +290,16 @@
imeout)%0A
-
%0A retur
|
b995dcdf834fb9582c4c545dc0cd67ee9662ea2e | fix Animate import | test/spec.js | test/spec.js | import Animate from '../lib/';
import React from 'react';
import ReactDOM from 'react-dom';
import ReactTestUtils from 'react-addons-test-utils';
import { expect } from 'chai';
describe('Animate', () => {
it('Should change the style of children', (done) => {
const instance = ReactTestUtils.renderIntoDocument(
... | JavaScript | 0.000003 | @@ -21,11 +21,11 @@
'../
-lib
+src
/';%0A
|
ce5129377a8852bf4169319aab64646e37925ec7 | Fix path in bin. | bin/jthoober.js | bin/jthoober.js | #!/usr/bin/env node
'use strict';
const bole = require('bole');
const jthoober = require('./index');
const path = require('path');
const argv = require('yargs')
.usage('Usage: jthoober --rules path/to/rules.js --secret sooper-sekrit')
.alias('rules', 'r')
.describe('rules', 'path to the rules file')
.... | JavaScript | 0 | @@ -90,16 +90,17 @@
quire('.
+.
/index')
|
3b7311d4ec5f950556fc10a6134854f26ba73bf3 | Fix welcome punctuation | js/index.js | js/index.js | // Is device mobile?
if (window.innerWidth >= 850) {
// Give video its source, will initiate load. Otherwise, it won't load anything and will be hidden by CSS.
// This is so the video doesn't burn mobile data on phones.
// Also it's a stylistic nightmare.
document.getElementsByTagName('video')[0].src = ... | JavaScript | 0.999994 | @@ -570,16 +570,17 @@
ngs = %5B'
+%C2%A1
BIENVENI
@@ -586,14 +586,16 @@
IDOS
+!
', '%E6%AC%A2%E8%BF%8E
+!
', '
@@ -603,16 +603,18 @@
IENVENUE
+ !
', 'WILL
@@ -619,20 +619,22 @@
LLKOMMEN
+!
', '
+!
%D8%A3%D9%87%D9%84%D8%A7%D9%8B %D9%88
@@ -650,16 +650,17 @@
RVETULOA
+!
', 'CREO
@@ -661,16 +661,17 @@
'CREO... |
48f09c542c71ad598c59a74b1cc325039bbec7bc | Set MeteorConnection-wasConnected status to true if disconnected more than 5 seconds | client/banner.js | client/banner.js | Meteor.startup(function(){
Template.connectionBanner.events({
'click #connection-try-reconnect': function(event, template){
event.preventDefault();
Meteor.reconnect();
}
});
Template.connectionBanner.helpers({
'wasConnected': function(event, template){
return Session.equals('MeteorConnection-wasConne... | JavaScript | 0 | @@ -3286,16 +3286,200 @@
%7D,500);%0A
+%09%09%09%7D else %7B%0A %09Meteor.setTimeout(function()%7B%0A %09%09Session.set('MeteorConnection-wasConnected', true);%0A %09%7D, 5000);%0A
%09%09%09%7D%0A%09%09%7D
@@ -3545,12 +3545,13 @@
;%0A%09%7D);%0... |
c675018cfe0a4290f1f8ec9b527b4a084e5c4b79 | test fix | test/test.js | test/test.js | 'use strict'
var test = require('tape')
var type = require('../')
test('.isNumber(value)', function (t) {
t.equal(type.isNumber(0), true)
t.equal(type.isNumber(1), true)
t.equal(type.isNumber(1.1), true)
t.equal(type.isNumber(0xff), true)
t.equal(type.isNumber(6.2e5), true)
t.equal(type.isNumber(NaN), fals... | JavaScript | 0.000001 | @@ -60,16 +60,135 @@
'../')%0A%0A
+function evaluates (statement) %7B%0A try %7B%0A eval(statement)%0A return true%0A %7D catch (err) %7B%0A return false%0A %7D%0A%7D%0A%0A
test('.i
@@ -2256,32 +2256,73 @@
)%0A t.end()%0A%7D)%0A%0A
+if (evaluates('class Something %7B%7D')) %7B%0A
test('.isClass(v
@@ ... |
aa9a4925b05c8c863c6a550f6d6e2d135eba2ae6 | Fix annoying warning message related to license info not loading appropriately | awx/ui/client/src/bread-crumb/bread-crumb.directive.js | awx/ui/client/src/bread-crumb/bread-crumb.directive.js | export default
[ 'templateUrl', '$state', 'FeaturesService', 'ProcessErrors', 'Store', 'Empty', function(templateUrl, $state, FeaturesService, ProcessErrors, Store, Empty) {
return {
restrict: 'E',
templateUrl: templateUrl('bread-crumb/bread-crumb'),
link: function(scop... | JavaScript | 0 | @@ -3970,22 +3970,204 @@
Info
-.license_type;
+ ? licenseInfo.license_type : null;%0A if (!licenseInfo) %7B%0A console.warn(%22License info not loaded correctly%22);%0A %7D
%0A
|
549ced612825ff681f7927db4e17812d9620e853 | Revert change, @evan’s fix is better | packages/nylas-core/logger.js | packages/nylas-core/logger.js | const bunyan = require('bunyan')
const {getLogStreams} = require('./log-streams')
const NODE_ENV = process.env.NODE_ENV || 'unknown'
function createLogger(name, env = NODE_ENV) {
if (process.env.USE_CONSOLE_LOG) {
console.forAccount = () => {
return console;
}
console.child = () => {
return c... | JavaScript | 0 | @@ -177,187 +177,8 @@
) %7B%0A
- if (process.env.USE_CONSOLE_LOG) %7B%0A console.forAccount = () =%3E %7B%0A return console;%0A %7D%0A console.child = () =%3E %7B%0A return console;%0A %7D%0A return console;%0A %7D%0A%0A
co
|
088531da6a2d85dcf88c6c11b4198c644d9c19b6 | increase turret fire time for better rendering. decrease bot fire times for more realism from bots | client/game/classes/s.Ship.js | client/game/classes/s.Ship.js | s.Ship = new Class({
extend: s.GameObject,
options: {
leftTurretOffset: new THREE.Vector3(35, 0, -200),
rightTurretOffset: new THREE.Vector3(-35, 0, -200),
missileOffset: new THREE.Vector3(0, 0, -120),
turretFireTime: 150,
botTurretFireTime: 1500,
botDefenderFire... | JavaScript | 0 | @@ -252,18 +252,18 @@
reTime:
-15
+30
0,%0A
@@ -285,17 +285,17 @@
eTime: 1
-5
+0
00,%0A
@@ -323,9 +323,9 @@
me:
-9
+6
00,%0A
|
d966768d8752d534dea9c7dc72206868303a5bc1 | Fix version detection | bin/taper.js | bin/taper.js | #!/usr/bin/env node
var sprintf = require('sprintf').sprintf;
var clc = require('cli-color');
var prog = require('commander');
var VERSION = '0.1.3';
prog
.version(VERSION)
.usage('[options] <path ...>')
.option('--no-color', 'Run without colorization')
.option('--timeout [ms]' , 'Individual test file timeou... | JavaScript | 0.000002 | @@ -126,55 +126,58 @@
);%0A%0A
-var VERSION = '0.1.3';%0A%0Aprog%0A .version(VERSION
+prog%0A .version(require('../package.json').version
)%0A
|
84fb560e08d41e964658d4f305715b5478002854 | update underscore 1.5.1 => 1.5.2 | client/client.js | client/client.js | /*
* jsbyte: An interactive JS/HTML/CSS environment
*/
(function() {
'use strict';
var CDNJS = '//cdnjs.cloudflare.com/ajax/libs';
requirejs.config({
baseUrl: '/js',
urlArgs: 'v=' + (new Date()).getTime(),
paths: {
// libraries
jqueryjs: CDNJS + '/jquery/2.0.3/jquery.min',
under... | JavaScript | 0.000932 | @@ -350,17 +350,17 @@
.js/1.5.
-1
+2
/undersc
|
49be85268657422b39f32927ba165c0aee693c5d | remove non assigning require moment | public/scripts/views/lists/details.js | public/scripts/views/lists/details.js | /*
* Copyright (c) $year, Den Norske Turistforening (DNT)
*
* https://github.com/Turistforeningen/turadmin
*/
define(function (require, exports, module) {
"use strict";
// Dependencies
var $ = require('jquery'),
_ = require('underscore'),
Backbone = require('backbone'),
moment ... | JavaScript | 0.000005 | @@ -795,31 +795,8 @@
o');
-%0A require('moment');
%0A%0A
|
a0b376fd423345dafb368932314cdca157d52a77 | fix compilation | avBooth/simultaneous-questions-screen-directive/simultaneous-questions-screen-directive.js | avBooth/simultaneous-questions-screen-directive/simultaneous-questions-screen-directive.js | /*
* Simultaneous questions screen directive.
*
* A layout that shows multiple questions at the same time.
* NOTE: Only valid for unordered voting systems.
*
* FIXME: Does not check if the user selected less options in a question than
* the minimum so when that happens an encryption codification error is shown.
... | JavaScript | 0.000001 | @@ -5911,16 +5911,22 @@
return
+scope.
numSelec
|
a50f6094cce296f8a4017a1e45116f2b95a79cae | allow `/` + wait to also show all commands | src/autocomplete/CommandProvider.js | src/autocomplete/CommandProvider.js | /*
Copyright 2016 Aviral Dasgupta
Copyright 2017 Vector Creations Ltd
Copyright 2017 New Vector Ltd
Copyright 2018 Michael Telatynski <7t3chguy@gmail.com>
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 Licens... | JavaScript | 0 | @@ -3938,16 +3938,17 @@
ust %60/%60
+(
and the
@@ -3959,16 +3959,26 @@
hit TAB
+ or waits)
, show t
@@ -4061,17 +4061,8 @@
'/'
- && force
? C
|
5feef9753d0c4a3d7652032acb4f766091ed675a | Use document.documentElement instead of document.body to place the iframe used for MessageChannel emulation in Firefox because document.body may not yet exist. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=49737707 | closure/goog/async/nexttick.js | closure/goog/async/nexttick.js | // Copyright 2013 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | JavaScript | 0.000003 | @@ -2991,12 +2991,23 @@
ent.
-body
+documentElement
.app
|
a181657cd396a465745ecfeb9a8ce1196338f09b | Fix NPC conversations. | client/gui/dialogs/npcchat.js | client/gui/dialogs/npcchat.js | 'use strict';
ui.NpcChatDialog = function(template, conversation) {
ui.Dialog.call(this, template);
this._message = ui.label(this, '.label.message');
this._options = ui.list(this, '.list.options');
this._conversation = conversation;
this._conversation.on('changed', this._update.bind(this));
thi... | JavaScript | 0.000005 | @@ -950,23 +950,20 @@
m =
-$('%3Cdiv%3E%3C/div%3E'
+ui.listitem(
);%0D%0A
@@ -1149,24 +1149,45 @@
m =
-$('%3Cdiv%3E
+ui.listitem();%0D%0A item.text('
0. Close
%3C/di
@@ -1186,14 +1186,8 @@
lose
-%3C/div%3E
');%0D
|
3f22c24c9505a5431428e36e56556a1e9012b757 | add back in strict statement for utils | bin/utils.js | bin/utils.js | var log = require('loglevel');
var utilsApi = {};
/**
* Set the internal log level and return a log module instance
* @param {Object} options Command line options e.g silent, verbose
* @return {Object} Log module instance
*/
utilsApi.getLogInstance = function(options) {
if(options.silent) {
log.setLev... | JavaScript | 0.000007 | @@ -1,12 +1,27 @@
+%22use strict%22;%0A%0A
var log = re
|
6eda6d814062604622c8919708d038fab8a08b88 | update production document title | webpack.production.config.js | webpack.production.config.js | var webpack = require('webpack');
var path = require('path');
var loaders = require('./webpack.loaders');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var WebpackCleanupPlugin = require('webpack-cleanup-plugin');
// local css modules
loaders.pu... | JavaScript | 0.000001 | @@ -1564,18 +1564,20 @@
: 'W
-ebpack App
+CA React POC
'%0A
|
a53a13c08e4b0a5d40c5675ebc4aebac8b121a01 | remove isrequired from prop | packages/card/src/js/react.js | packages/card/src/js/react.js | /*! [replace-name] v[replace-version] */
/***************************************************************************************************************************************************************
*
* card function
*
* A container for all types of content
*
***************************************************... | JavaScript | 0.000002 | @@ -3505,27 +3505,16 @@
, '6' %5D)
-.isRequired
,%0A%7D%0A%0AAUc
|
0d322c6b8c8e6c8fd0282244ad71d8387458cda9 | Update asana-in-bitbucket.js | scripts/asana-in-bitbucket.js | scripts/asana-in-bitbucket.js | // ==UserScript==
// @name Asana Links in Bitbucket
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Use Asana Task Id and render as links in Bitbucket
// @author Lukas Siemon
// @match https://bitbucket.org/*
// @grant none
// ==/UserScript==
(function() {
... | JavaScript | 0.000001 | @@ -78,27 +78,53 @@
http
+s
://
-tampermonkey.net
+github.com/GetintheLoop/asana-highlighter
/%0A//
@@ -140,17 +140,17 @@
0.
-1
+2
%0A// @des
@@ -281,16 +281,16 @@
t.org/*%0A
-
// @gran
@@ -303,16 +303,125 @@
none%0A
+// @updateURL https://github.com/GetintheLoop/asana-highlighter/blob/master/script... |
897c8b5167dd79389975136e5a4b15abed100ffc | Add useHistoryState-plugin to plugins. (not only create) | Kwc/List/Switch/Component.js | Kwc/List/Switch/Component.js | Ext.namespace('Kwc.List.Switch');
Kwc.List.Switch.Component = Ext.extend(Kwf.EyeCandy.List,
{
//transition: {},
showArrows: true,
defaultState: 'normal',
childSelector: '> div > .listSwitchItem',
_init: function() {
this.states = [
'normal'
];
if (!this.plugi... | JavaScript | 0 | @@ -1163,16 +1163,34 @@
+this.plugins.push(
new Kwf.
@@ -1254,16 +1254,17 @@
%7D)
+)
;%0A
|
14a000396a102518a71ed90760b8dd826435e290 | add error message to the sliced-to-array helper on a non-iterable param - fixes #766 | lib/6to5/transformation/templates/sliced-to-array.js | lib/6to5/transformation/templates/sliced-to-array.js | (function (arr, i) {
if (Array.isArray(arr)) {
return arr;
} else {
var _arr = [];
for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {
_arr.push(_step.value);
if (i && _arr.length === i) break;
}
return _arr;
}
});
| JavaScript | 0 | @@ -19,16 +19,143 @@
%7B%0A if
+(!arr %7C%7C !arr%5BSymbol.iterator%5D) %7B%0A throw new TypeError(%22Invalid attempt to destructure non-iterable instance%22);%0A %7D else if
(Array.i
|
f84d4a74130601907bce39817dcbdbf02602a3d8 | Update index.js | lambda/custom/index.js | lambda/custom/index.js | /* eslint-disable func-names */
/* eslint quote-props: ["error", "consistent"]*/
/**
* This sample demonstrates a simple skill built with the Amazon Alexa Skills
* nodejs skill development kit.
* This sample supports multiple lauguages. (en-US, en-GB, de-DE).
* The Intent Schema, Custom Slots and Sample Utterances... | JavaScript | 0.000529 | @@ -225,17 +225,17 @@
tiple la
-u
+n
guages.
|
21846db86846b56abcde2c6cc2e01cbe9b478c91 | remove row className try to another solution 201211301848 | Resources/ui/common/ConfessWindow/ProjectTableRow.js | Resources/ui/common/ConfessWindow/ProjectTableRow.js | /**
* @author fvi@
* create 2012 07 19
*
*/
exports.createRowObject = function(image_path, title, side, photo, id) {
height = Ti.Platform.displayCaps.platformHeight, width = Ti.Platform.displayCaps.platformWidth;
//画像生成に負荷がかかると感じたので一旦削除する 20121128
if (!id)
id = 'STUB';
//titleの数で幅を大きくして行く
var hasPhoto = ... | JavaScript | 0.00003 | @@ -612,16 +612,18 @@
0.30,%0A%09%09
+//
classNam
|
ee7128b43549ed2ce1e8a96c132503809ac87ba9 | Clear highlight on RSA public key generation | apps/files_external/js/public_key.js | apps/files_external/js/public_key.js | $(document).ready(function() {
OCA.External.Settings.mountConfig.whenSelectAuthMechanism(function($tr, authMechanism, scheme) {
if (scheme === 'publickey') {
var config = $tr.find('.configuration');
if ($(config).find('[name="public_key_generate"]').length === 0) {
setupTableRow($tr, config);
}
}
})... | JavaScript | 0 | @@ -1180,24 +1180,32 @@
.public_key)
+.keyup()
;%0A%09%09%09%09$(conf
|
19fa8aba91e84ed7da93ebabb3164b00cea9a954 | fix version | test/test.js | test/test.js | 'use strict';
require('mocha');
var assert = require('assert');
var kindOf = require('..');
var version = process.version.match(/^v(\d+)\.(\d+)\.(\d+)/);
var major = version[1];
var minor = version[2];
describe('kindOf', function() {
describe('null and undefined', function() {
it('should work for undefined', f... | JavaScript | 0.000001 | @@ -2442,17 +2442,16 @@
(major %3E
-=
5) %7B%0A
|
55037a492f86aad3f951097615613cad430461b6 | Add strict mode | client/client.js | client/client.js |
$(document).ready(function() {
var globalMap = [];
var playerSprites = {};
var stage = new PIXI.Container();
var renderer = PIXI.autoDetectRenderer(640, 640);
var mapContainer = new PIXI.Container();
mapContainer.x = 0;
mapContainer.y = 0;
stage.addChild(mapContainer);
$('.canvas-block').append... | JavaScript | 0.000314 | @@ -1,8 +1,22 @@
+'use strict';%0A
%0A$(docum
@@ -807,16 +807,20 @@
for (
+var
i = 0; i
|
b3eb7612a27c5b582e1a863e7ccfee03a8ab7ca8 | add method tests, fixes #9 | test/test.js | test/test.js | describe('CssSelectorExtract', function() {
var cssSelectorExtract = require('../');
var expect = require('chai').expect;
var fs = require('fs');
var css = fs.readFileSync('test/test.scss').toString();
describe('#process()', function() {
/**
* .test1
*/
it('correct way to extract default s... | JavaScript | 0 | @@ -3,16 +3,22 @@
scribe('
+class
CssSelec
@@ -211,16 +211,556 @@
ing();%0A%0A
+ it('should be a function', function()%7B%0A expect(typeof cssSelectorExtract).to.equal('function');%0A %7D);%0A%0A it('should have a process method', function()%7B%0A expect(typeof cssSelectorExtract.process).to.equal('functio... |
e89d68f6363920747e9178b4c59efdaac0c6cadb | Support .mjs modules (as well as .js and .jsx) in ecmascript plugin. | packages/ecmascript/plugin.js | packages/ecmascript/plugin.js | Plugin.registerCompiler({
extensions: ['js', 'jsx'],
}, function () {
return new BabelCompiler({
react: true
});
});
| JavaScript | 0.000001 | @@ -45,16 +45,23 @@
', 'jsx'
+, 'mjs'
%5D,%0A%7D, fu
|
9a5e00d73ea16fd614843851093c6de852e1d23a | Add analytics | website/docusaurus.config.js | website/docusaurus.config.js | const path = require('path');
const {listNames} = require('./src/plugins/components');
module.exports = {
title: 'Benthos',
tagline: 'The stream processor for mundane tasks',
url: 'https://benthos.dev',
baseUrl: '/',
favicon: 'img/favicon.ico',
organizationName: 'Jeffail',
projectName: 'benthos',
custo... | JavaScript | 0.000001 | @@ -2589,24 +2589,191 @@
s.%60,%0A %7D,%0A
+ googleAnalytics: %7B%0A trackingID: 'UA-135959729-1',%0A %7D,%0A /*%0A TODO%0A algolia: %7B%0A apiKey: 'api-key',%0A indexName: 'index-name',%0A %7D,%0A */%0A
%7D,%0A prese
|
31839d01b587ac1199efb119014f100c7e7fd26d | Fix Typos | client/routes/StoriesQuery.js | client/routes/StoriesQuery.js | import Relay from 'react-relay';
/**
* #3 - Relay routes
* Define a root GraphQL query into which your
* containers' query fragments will be composed.
*
* To learn more about Relay routes, visit:
* https://facebook.github.io/relay/docs/guides-routes.html
*/
class UsersRoute extends Relay.Route {
static rout... | JavaScript | 0.000014 | @@ -373,24 +373,20 @@
= %7B%0A
-greeting
+User
s: Compo
@@ -415,17 +415,17 @@
query
-U
+u
sersQuer
@@ -440,16 +440,12 @@
-greeting
+user
s %7B%0A
@@ -479,17 +479,17 @@
agment('
-U
+u
sers')%7D,
|
f2dbced2a5941a51311716bd59e90db0d4049dd7 | Improve generator test for components & mixins | test/test.js | test/test.js | /*global describe:true, beforeEach:true, it:true */
var assert = require('assert');
var helpers = require('yeoman-generator').test;
var path = require('path');
describe('Flight generator test', function () {
beforeEach(function (cb) {
helpers.testDirectory(path.join(__dirname, './temp'), function (err) {
... | JavaScript | 0 | @@ -1939,35 +1939,44 @@
onent', deps, %5B'
-foo
+my_component
'%5D);%0A cb();
@@ -2163,19 +2163,28 @@
mponent/
-foo
+my_component
.js', /f
@@ -2191,19 +2191,27 @@
unction
-foo
+myComponent
()/%5D,%0A
@@ -2238,19 +2238,28 @@
mponent/
-foo
+my_component
.spec.js
@@ -2293,19 +2293,28 @@
ponent%5C/
-foo
+m... |
5c8cf4b2eb48965db0d07b98d8f7a019323362b2 | Update index.js | js/index.js | js/index.js | $.getJSON("assets/english.json", function(data){
var treasures = data.treasures;
$(document).ready(function(){
treasures.sort(function(a, b) {
a = a.name;
b = b.name;
return (a<b?-1:(a>b?1:0));
});
for (var i in treasures)
{
opt = $('<option/>', {value: treasures[i].id, text:... | JavaScript | 0.000002 | @@ -1,8 +1,921 @@
+jQuery.fn.filterByText = function(textbox, selectSingleMatch) %7B%0A return this.each(function() %7B%0A var select = this;%0A var options = %5B%5D;%0A $(select).find('option').each(function() %7B%0A options.push(%7Bvalue: $(this).val(), text: $(this).text()%7D);%0A %7D);%0A $(sel... |
5693e6a37e930eac7ed6ebd0a0bacde272b5b755 | fix modal not closing on overlay click | client/src/components/News.js | client/src/components/News.js | import React, { Component } from 'react'
import Modal from 'react-modal'
import { withApollo } from 'react-apollo'
import moment from 'moment'
import './styles/News.css'
import storyCommentsQuery from '../queries/storyComments'
import Comments from './Comments'
class News extends Component {
state = { modalIsOpen: ... | JavaScript | 0 | @@ -2228,16 +2228,58 @@
IsOpen%7D%0A
+ onRequestClose=%7Bthis._closeModal%7D%0A
|
4914a2f7ab87ed0f70812cc5df90c230c63541d9 | Fix non-zero operating cost for must runs in chart | app/assets/javascripts/d3/data/merit_order_data.js | app/assets/javascripts/d3/data/merit_order_data.js | /* globals _ $ d3 */
var MeritOrderData = (function () {
'use strict';
function operatingCosts(queryValues) {
return queryValues.type === 'must_run' || queryValues.capacity <= 0 ? 0 : undefined;
}
return {
set: function (data) {
this.data = data;
this.formatted = undefined;
return ... | JavaScript | 0.000064 | @@ -760,20 +760,22 @@
ngCosts(
-item
+future
),%0A
|
1d504f0f557c362a16f3affd4b809fcdce2acfd8 | Remove obsolete 500 error handling | client/src/components/Page.js | client/src/components/Page.js | import {
DEFAULT_PAGE_PROPS,
DEFAULT_SEARCH_PROPS,
setPageProps,
setPagination,
setSearchProps
} from "actions"
import autobind from "autobind-decorator"
import { setMessages } from "components/Messages"
import NotFound from "components/NotFound"
import _get from "lodash/get"
import _isEmpty from "lodash/isEm... | JavaScript | 0.000002 | @@ -254,38 +254,8 @@
nd%22%0A
-import _get from %22lodash/get%22%0A
impo
@@ -3749,25 +3749,16 @@
if (
-%0A
response
@@ -3776,116 +3776,8 @@
404
- %7C%7C%0A (response.status === 500 &&%0A _get(response, %5B%22errors%22, 0%5D) === %22Invalid Syntax%22)%0A
) %7B%0A
|
5717b0c2e67a3cf2abb5ac176be493e5905a7ac0 | remove TriggerTime from raws | Extract/index.js | Extract/index.js |
const request = require('request');
const mkdirp = require('mkdirp');
const path = require('path');
const fs = require('fs');
const config = require('./config.json');
const git = require('simple-git')(config.dest_path);
function loadProgramsFromHomegenie(callback) {
return new Promise(function (resolve, reject)... | JavaScript | 0 | @@ -2344,24 +2344,57 @@
grampath);%0A%0A
+ delete program.TriggerTime;%0A%0A
fs.write
|
11e5f3b0e0db8d323ea46b581a24929f0df70c96 | Fix typo | app/assets/javascripts/index/codeforces-tracker.js | app/assets/javascripts/index/codeforces-tracker.js | var CodeforcesTracker = (function() {
if(window.location.protocol == "https:") {
var codeforces_user_submissions_url = "/codeforces?method=user.status?handle={0}";
var codeforces_all_problems_url = "/codeforces?method=problemset.problems";
}
else {
var codeforces_user_submissions_url = "http://codeforces.co... | JavaScript | 0.999999 | @@ -5648,21 +5648,8 @@
%09%7D;%0A
-%09return ret;%0A
%7D)()
|
b506efa0600cdf1764f6a40e637e46c07c814d55 | Remove comments from Root.js | client/src/components/Root.js | client/src/components/Root.js | import React from 'react';
import { Provider } from 'react-redux';
import { Router, Route, browserHistory, IndexRoute } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { LandingPage } from './LandingPage';
import Signup from './Signup/Signup';
import Login from './Login';
import P... | JavaScript | 0 | @@ -2252,88 +2252,4 @@
ot;%0A
-%0A// %3CRoute path=%22/user/:id/details%22 component=%7BUserDetails%7D onEnter=%7BrequireAuth%7D /%3E
|
f8f4da6f6da39c49485477da3aa14c48b9017db9 | use dom helper for registration | lib/features/interaction-events/InteractionEvents.js | lib/features/interaction-events/InteractionEvents.js | 'use strict';
var _ = require('lodash');
var Snap = require('snapsvg');
var GraphicsUtil = require('../../util/GraphicsUtil'),
Renderer = require('../../draw/Renderer'),
Dom = require('../../util/Dom'),
createLine = Renderer.createLine,
updateLine = Renderer.updateLine;
/**
* A plugin that provid... | JavaScript | 0 | @@ -1712,24 +1712,50 @@
nts(svg) %7B%0A%0A
+ var node = svg.node;%0A%0A
/**%0A
@@ -1797,15 +1797,19 @@
se h
-as left
+overed over
an
@@ -1845,19 +1845,21 @@
element.
-out
+hover
%0A *%0A
@@ -2001,24 +2001,81 @@
vent%0A */
+%0A Dom.on(node, 'mouseover', handler('element.hover'));
%0A%0A ... |
412c5f83bb38095f7374e72c1cf83d9b584f9a0b | debug make request | js/index.js | js/index.js | var httpRequest = null;
var content = null;
var tags = null;
var categories = null;
var blogs = null;
/* tags.json
* {
* name:"tags",
* data:[
* {
* "name":"tags1",
* "count":"11"
* },
* {
* "name":"tags2",
* "count":"1"
* }
* ]
* }
*/
function initNagivator()
... | JavaScript | 0.000001 | @@ -2512,24 +2512,75 @@
== 304 ) %7B%0A
+ console.log(httpRequest.responseText);%0A
|
330cfe33971bec7738a8cdc1e24442e5ea42e4cb | set user_value when loading values from engine | app/assets/javascripts/lib/models/input_element.js | app/assets/javascripts/lib/models/input_element.js |
var InputElement = Backbone.Model.extend({
initialize:function() {
_.bindAll(this, 'markDirty');
this.dirty = false;
this.ui_options = {'element' : $('#input_element_'+this.get('id'))};
this.bind('change:user_value', this.markDirty);
this.bind('change:user_value', this.logUpdate);
this.bind(... | JavaScript | 0.000003 | @@ -438,20 +438,16 @@
actor');
-
%0A thi
@@ -3282,16 +3282,74 @@
_label);
+%0A input_element.set(%7Buser_value: values.user_value%7D);
%0A%0A
@@ -3897,18 +3897,16 @@
s.%0A */
-
%0A api_u
@@ -4615,21 +4615,17 @@
ment%7D);%0A
-
%0A
+
this
@@ -4775,21 +4775,17 @@
;%0A %7D,%0A%0A
-... |
15b327aa15fe660b4d934300a53e9e602826053f | Add VIEW_CONTEXT_POSTS_LIST constant. | assets/js/googlesitekit/constants.js | assets/js/googlesitekit/constants.js | /**
* Core constants.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | JavaScript | 0 | @@ -735,16 +735,68 @@
pageDashboard';%0A
+export const VIEW_CONTEXT_POSTS_LIST = 'postsList';%0A
|
49918a320a2aadae0be1765724d5804a4073e418 | Use a dummy test to see if mocha works | test/lib/helpers/validate-type-test.js | test/lib/helpers/validate-type-test.js | var sass = require('node-sass');
var includePaths = '../stylesheets/lib-sass';
describe('validate type function', function() {
var error = false;
it('should return an error message when (1px "string" "") is passed', function(done) {
sass.render({
data: '$error: validate-type(1px "string" ""... | JavaScript | 0.000004 | @@ -1,12 +1,15 @@
+//
var sass = r
@@ -29,16 +29,56 @@
sass');%0A
+var expect = require('chai').expect;%0A//
var incl
@@ -168,32 +168,8 @@
) %7B%0A
- var error = false;%0A%0A
@@ -247,20 +247,16 @@
unction(
-done
) %7B%0A
@@ -263,247 +263,134 @@
-sass.render(%7B%0A data: '$error: val... |
562511ab4c612f78407ea965cc1edb846ee88e11 | Add test for reset | test/test.js | test/test.js | var http = require('http');
var request = require('supertest');
var mockRequests = require('..');
describe('mockRequests()', function () {
var server;
beforeEach(function () {
server = createServer({}, function (req, res) {
res.end('not mocked');
});
});
it('should not mock when no mocks are ... | JavaScript | 0.000001 | @@ -1919,24 +1919,461 @@
%22%7D', done);%0A
+ %7D);%0A%0A it('should stop mocking after a reset request', function (done) %7B%0A request(server)%0A .post('/mock/api')%0A .send(%7Bmock: 'data'%7D)%0A .end(function () %7B%7D);%0A%0A request(server)%0A .get('/api')%0A .expect(200)%0A ... |
00b2beb705438f5061055f95a503aebd22cd5fdd | Add node exporter port in azure security group | lib/nodes/addon/components/driver-azure/component.js | lib/nodes/addon/components/driver-azure/component.js | import { alias } from '@ember/object/computed';
import { get, set, computed, observer } from '@ember/object';
import { scheduleOnce } from '@ember/runloop';
import Component from '@ember/component';
import NodeDriver from 'shared/mixins/node-driver';
import layout from './template';
import { regions, sizes, storageType... | JavaScript | 0 | @@ -3625,16 +3625,28 @@
89/udp',
+ '9796/tcp',
'10256/
|
7518a6e59df2e0403bf3eb9228bcc434bd44bf9c | fix with .save and model associations. Fixes #369 | lib/waterline/model/lib/associationMethods/update.js | lib/waterline/model/lib/associationMethods/update.js |
/**
* Module dependencies
*/
var _ = require('lodash'),
utils = require('../../../utils/helpers'),
hasOwnProperty = utils.object.hasOwnProperty;
/**
* Update the current instance with the currently set values
*
* Called in the model instance context.
*
* @param {Object} collection
* @param {Object} p... | JavaScript | 0 | @@ -1115,16 +1115,27 @@
ove any
+collection
associat
@@ -1203,24 +1203,132 @@
ciations) %7B%0A
+ var associated = proto.associations%5Bassociation%5D;%0A if(hasOwnProperty(associated, 'model')) continue;%0A
delete _
|
cd2c7f79962e233a0809f247d9533debe7d06ede | Update modal.js | js/modal.js | js/modal.js | $('a.btn-light').on('click', function(e) {
var src = $(this).attr('data-src');
var height = $(this).attr('data-height') || 300;
var width = $(this).attr('data-width') || 400;
$("#myModal iframe").attr({'src':src,
'height': height,
'width': width});
})... | JavaScript | 0.000001 | @@ -5,14 +5,8 @@
.btn
--light
').o
|
3f3ea2ce17314c08e40b80739259adbbf15d9b0a | Remove unneeded test since vinyl files always need a path | test/test.js | test/test.js | 'use strict';
var fs = require('fs');
var path = require('path');
var bufferEqual = require('buffer-equal');
var isWebP = require('is-webp');
var read = require('vinyl-file').read;
var test = require('ava');
var Vinyl = require('vinyl');
var imageminWebp = require('../');
test('convert an image into a WebP', function... | JavaScript | 0 | @@ -12,32 +12,8 @@
';%0A%0A
-var fs = require('fs');%0A
var
@@ -32,24 +32,24 @@
re('path');%0A
+
var bufferEq
@@ -182,38 +182,8 @@
');%0A
-var Vinyl = require('vinyl');%0A
var
@@ -582,16 +582,16 @@
ents));%0A
+
%09%09%09t.ass
@@ -698,399 +698,8 @@
);%0A%0A
-test('keep file path undefined when a file doesn%5C... |
182173d7e8ead8171d67d77283baba6c3229c779 | Test event | js/nalyt.js | js/nalyt.js | $(document).ready(function(){
if (analytics) {
$('a[target=_blank]').click(function (e) {
var url = this.getAttribute("href") || this.getAttribute("xlink:href");
analytics.track("Clicked External Link", {url: url});
});
window.onpopstate = function (event) {
analytics.page("Slide", {ur... | JavaScript | 0.000021 | @@ -237,16 +237,220 @@
%7D);%0A%0A
+ $('a.share-reveal-facebook').click(function (e) %7B%0A var url = this.getAttribute(%22href%22) %7C%7C this.getAttribute(%22xlink:href%22);%0A analytics.track(%22Clicked Social%22, %7Burl: url%7D);%0A %7D);%0A%0A
wind
|
bbe05c8cddd727961b84bdef001f9b51ab330095 | fix deleting feature point and some refactoring | js/store.js | js/store.js | var data_schema = {
"v" : "string",
data : [{
"path" : "string", //filesystem path or url : filesystem path will be empty for web applications
"imagename": "string",
"attributes": [{
"label" : "string",
"value": ["string"]
}],
... | JavaScript | 0.000001 | @@ -2181,80 +2181,23 @@
var
-index = getPointIndex(shapeId , pointid);%0A %0A if(position)%7B%0A
+featurePoints =
lab
@@ -2260,28 +2260,75 @@
ints
-%5B
+;%0A var
index
-%5D.x
=
+indexOf(featurePoints, pointid);%0A%0A if(
position
.cx;
@@ -2327,12 +2327,10 @@
tion
-.cx;
+)%7B
%0A
@@ -... |
790b0303b1439456c388306d7eb430cd56925b6c | remove minAmountTrade from fetchCurrencies | js/tidex.js | js/tidex.js | 'use strict';
// ---------------------------------------------------------------------------
const liqui = require ('./liqui.js');
// ---------------------------------------------------------------------------
module.exports = class tidex extends liqui {
describe () {
return this.deepExtend (super.desc... | JavaScript | 0 | @@ -3605,100 +3605,19 @@
'
-wallet': %7B%0A 'address': undefined,%0A 'extra': undefined,
+funding': %7B
%0A
@@ -4025,34 +4025,17 @@
n':
-currency%5B'minAmountTrade'%5D
+undefined
,%0A
|
4634304d8a44b7541fc778f394abbf948a9e3cda | Add more unit tests. | test/test.js | test/test.js | describe("LocalDate", function() {
it("can calculate days since hypothetical Day 0.", function() {
expect(new LocalDate(1, 1, 1).sinceDayZero()).toBe(1);
expect(new LocalDate(1, 1, 2).sinceDayZero()).toBe(2);
expect(new LocalDate(1, 2, 2).sinceDayZero()).toBe(33);
expect(new LocalDat... | JavaScript | 0 | @@ -2540,8 +2540,632 @@
%7D);%0A%7D)%0A
+%0Adescribe(%22DateCalc%22, function() %7B%0A it(%22can calculate the days between the start and the end dates.%22,%0A function() %7B%0A expect(DateCalc.daysBetween(%220001-01-01%22, %220001-01-02%22)).toBe(1);%0A expect(DateCalc.daysBetween(%22... |
be28c34f576436dc78c99b3680003488b4b75a8b | add 'pm' for Gas Properties | js/units.js | js/units.js | // Copyright 2018-2019, University of Colorado Boulder
/**
* These are the units that can be associated with Property instances.
*
* @author Sam Reid (PhET Interactive Simulations)
*/
define( function( require ) {
'use strict';
// modules
var axon = require( 'AXON/axon' );
var units = {
values: [
... | JavaScript | 0.00004 | @@ -672,24 +672,50 @@
ticles/ps',%0A
+ 'pm', // picometers%0A
'ps',
|
b1894c592e505d382fbd515da5678783fbd3d186 | Fix broken test. | test/test.js | test/test.js | test("gt test", function() {
// Make privates public for unit tests
// Expose privates for testing.
lilswf.enableTest()
//arguments to array casting
var args = lilswf.argumentsToArray(1, 2, 3);
equals(args instanceof Array, true)
//convert an array of values to a string
//simple number a... | JavaScript | 0.000007 | @@ -128,131 +128,8 @@
)%0A%09%0A
- //arguments to array casting%0A var args = lilswf.argumentsToArray(1, 2, 3);%0A equals(args instanceof Array, true)%0A%0A
@@ -4909,8 +4909,9 @@
%0A%0A%7D);
+%0A
|
66e335d5a45a3f979825c30ca611dbce610dbac3 | test sync as well as async | test/test.js | test/test.js | // var g = require("../lib/glob")
var g = require("../build/default/glob")
// console.log(g.globSync("*", 0))
// console.log(g.globSync("*/*.js", 0))
// console.log(g.globSync("lib/*", 0))
// console.log(g.globSync("~/*", g.GLOB_TILDE))
g.glob("*", 0, function (er, m) {
console.log(er, m)
g.glob("*/*.js", 0, fun... | JavaScript | 0.000002 | @@ -69,19 +69,16 @@
glob%22)%0A%0A
-//
console.
@@ -93,35 +93,32 @@
obSync(%22*%22, 0))%0A
-//
console.log(g.gl
@@ -134,27 +134,24 @@
/*.js%22, 0))%0A
-//
console.log(
@@ -174,19 +174,16 @@
*%22, 0))%0A
-//
console.
|
57c324c5244d91c01711e331c7ce30bad668b7c9 | Remove test containers on exit (#67) | test/test.js | test/test.js | 'use strict';
const assert = require('assert');
const spawn = require('child_process').spawn;
const exec = require('child_process').exec;
const request = require('request');
const util = require('util');
const uuid = require('node-uuid');
describe('nodejs-docker', () => {
it('serves traffic on 8080', (done) => {
... | JavaScript | 0.000104 | @@ -900,16 +900,24 @@
'run',
+ '--rm',
'-i', '
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.