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
f9f8ed266d815dfb18d8ac2b3fba500ddfe7443a
Update on className change
tweet-embed.js
tweet-embed.js
import React from 'react' import PropTypes from 'prop-types' const callbacks = [] function addScript (src, cb) { if (callbacks.length === 0) { callbacks.push(cb) var s = document.createElement('script') s.setAttribute('src', src) s.onload = () => callbacks.forEach(cb => cb()) document.body.appen...
JavaScript
0
@@ -1336,16 +1336,24 @@ return +(%0A this.pro @@ -1374,16 +1374,76 @@ Props.id + %7C%7C%0A this.props.className !== nextProps.className%0A ) %0A %7D%0A%0A @@ -1483,24 +1483,68 @@ extState) %7B%0A + if (this.props.id !== nextProps.id) %7B%0A this.loa @@ -1565,24 +1565,30 @@ (nextProps)...
07d20ff85fc921ac7ee49ddca9300bcc3f0cee48
add deviceId to id
twine/index.js
twine/index.js
var Bowline = require('bowline'); var adapter = {}; adapter.sensorName = 'twine'; adapter.types = [ { name: 'twine', fields: { timestamp: 'date', meta: { sensor: 'string', battery: 'string', wifiSignal: 'string' }, time: { age: 'float', timest...
JavaScript
0.000014
@@ -1312,16 +1312,38 @@ imestamp + + '-' + conf.deviceId ;%0A
531334c2437e62fad78d7da19cde57fe333c933f
Update to redux-req-middleware
server/middleware/routing-middleware.js
server/middleware/routing-middleware.js
import { match } from 'react-router'; import routes from '../../src/base/routes'; import renderPage from '../lib/renderPage'; import { fetchRequiredActions } from 'base'; import renderContainer from '../lib/renderContainer'; import configureServerStore from '../lib/configureStore'; import { applyMiddleware, createSto...
JavaScript
0
@@ -30,16 +30,61 @@ router'; +%0Aimport %7B fetchRequiredActions %7D from 'base'; %0A%0Aimport @@ -169,53 +169,8 @@ e';%0A -import %7B fetchRequiredActions %7D from 'base';%0A impo @@ -282,209 +282,8 @@ ';%0A%0A -import %7B applyMiddleware, createStore %7D from 'redux';%0Aimport rootReducer from '../../src/base/re...
d3c291cb68ac0e06d34d568a3a6a264f83c8d713
Correct some errors in German locale
js/i18n/grid.locale-de.js
js/i18n/grid.locale-de.js
;(function($){ /** * jqGrid German Translation * Version 1.0.0 (developed for jQuery Grid 3.3.1) * Olaf Klöppel opensource@blue-hit.de * http://blue-hit.de/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = {...
JavaScript
0.999996
@@ -1410,13 +1410,14 @@ ine -valid +g%C3%BCltig e E- @@ -1568,17 +1568,17 @@ URL. Pr -e +%C3%A4 fix muss @@ -2168,17 +2168,16 @@ gew%C3%A4hlte -n Zeile e @@ -2222,17 +2222,16 @@ e: %22Neue -n Zeile e @@ -2358,12 +2358,12 @@ atz -find +such en%22, @@ -2588,23 +2588,14 @@ en a -nzeigen/verberg +usw%C3%A4h...
8e024c2a2eeef6f1163e83affbac48be463488a4
Add Sinon to require-test-config
js/require-test-config.js
js/require-test-config.js
require.config({ paths: { //Test 'jasmine': 'lib/jasmine-1.3.1/jasmine', 'jasmine-html': 'lib/jasmine-1.3.1/jasmine-html' }, shim: { 'jasmine-html': { deps: ['jasmine'] }, 'jasmine': { exports: 'jasmine' } } });
JavaScript
0
@@ -122,16 +122,52 @@ ne-html' +,%0A%09%09'sinon': 'lib/sinon/sinon-1.6.0' %0A%09%7D,%0A%0A%09s @@ -256,16 +256,54 @@ asmine'%0A +%09%09%7D,%0A%09%09'sinon': %7B%0A%09%09%09exports: 'sinon'%0A %09%09%7D%0A%09%7D%0A%7D
b90a4d892377f6468d1c50464902e1f4b5d16066
make the hold condition clearer.
js/rpg_core/ImageCache.js
js/rpg_core/ImageCache.js
function ImageCache(){ this.initialize.apply(this, arguments); } ImageCache.limit = 20 * 1000 * 1000; ImageCache.prototype.initialize = function(){ this._items = {}; }; ImageCache.prototype.add = function(key, value){ this._items[key] = { bitmap: value, touch: Date.now(), key: key...
JavaScript
0
@@ -1286,101 +1286,45 @@ if( -!item.bitmap.isRequestOnly() && (sizeLeft %3E 0 %7C%7C item.reservationId %7C%7C !item.bitmap.isReady() +sizeLeft %3E 0 %7C%7C this._mustBeHeld(item ))%7B%0A @@ -1472,24 +1472,24 @@ ;%0A %7D%0A - %7D);%0A%7D;%0A%0A @@ -1480,32 +1480,423 @@ %7D%0A %7D);%0A%7D;%0A%0A +I...
f645f73993b8f788a22e884ae833e986a4e085db
make dialog (attachment, file exists) translatable (#1079)
js/service/FileService.js
js/service/FileService.js
/* * @copyright Copyright (c) 2018 Julius Härtl <jus@bitgrid.net> * * @author Julius Härtl <jus@bitgrid.net> * * @license GNU AGPL version 3 or any later version * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published ...
JavaScript
0
@@ -2861,16 +2861,26 @@ m(%0A%09%09%09%09%09 +t('deck', %60A file @@ -2960,23 +2960,34 @@ ite it?%60 +) ,%0A%09%09%09%09%09 +t('deck', 'File al @@ -2999,16 +2999,17 @@ exists' +) ,%0A%09%09%09%09%09f
7a361f1b6c500bdaa7927a2f6b0b8113ca16b0a4
Change spatial rel
js/tasks/LayerInfoTask.js
js/tasks/LayerInfoTask.js
/*global pulse, app, jQuery, require, document, esri, esriuk, Handlebars, console, $, mynearest, window, alert, unescape, define */ /* | Copyright 2015 ESRI (UK) Limited | | Licensed under the Apache License, Version 2.0 (the "License"); | you may not use this file except in compliance with the License. | You ma...
JavaScript
0
@@ -3764,24 +3764,26 @@ %0A +// query.spati
0c2b7483660c4debe997680b4917835159979b43
Update eval.js
commands/eval.js
commands/eval.js
const Discord = require('discord.js'); const config = require("./config.json"); exports.run = async (bot, message) => { var embed = new Discord.RichEmbed() .setTitle("Restricted") .setColor("#f45f42") .addField("You are restricted from this command", "Its for the bot owner only!") const randomColor = "#0...
JavaScript
0.000001
@@ -1130,36 +1130,36 @@ , %60%5C%60%5C%60%5C%60js%5Cn$%7B -args +code %7D%5Cn%5C%60%5C%60%5C%60%60)%0A
dd7ef38e9266bca790b0603a02f8215d43d4d849
Fix error in statistics output
src/Sannis-node-mysql-libmysqlclient.js
src/Sannis-node-mysql-libmysqlclient.js
/* Copyright (C) 2010, Oleg Efimov <efimovov@gmail.com> See license text in LICENSE file */ // Load configuration var cfg = require("./config").cfg; // Require modules var assert = require("assert"), sys = require("sys"), mysql = require("../deps/Sannis-node-mysql-libmysqlclient/mysql-libmysqlclient"), conn ...
JavaScript
0.000864
@@ -808,32 +808,41 @@ (%22 + Math.round( +factor * cfg.insert_rows_
117eae90552876726cb9bf5c9213bc544ae8b4ba
make evaling less annoying
commands/eval.js
commands/eval.js
const clean = (text) => { if (typeof (text) === 'string') { return text.replace(/`/g, '`' + String.fromCharCode(8203)).replace(/@/g, '@' + String.fromCharCode(8203)); } else { return text; } } module.exports = (message) => { let params = message.content.split(' ').splice(1) if (message.member.id ...
JavaScript
0.00005
@@ -234,16 +234,46 @@ e) =%3E %7B%0A + let client = message.client%0A let pa
5400972275f7871c3643329a3c2212f71e5d6f60
remove unused variables
test/source/from-test.js
test/source/from-test.js
require('buster').spec.expose(); var expect = require('buster').expect; var from = require('../../lib/source/from').from; var observe = require('../../lib/combinator/observe').observe; var sentinel = { value: 'sentinel' }; var other = { value: 'other' }; describe('from', function() { it('should support array-like...
JavaScript
0.000014
@@ -184,80 +184,8 @@ e;%0A%0A -var sentinel = %7B value: 'sentinel' %7D;%0Avar other = %7B value: 'other' %7D;%0A%0A%0A desc
0b7fef7c3be1ff59aac49b91971ec6baef78b897
add support for displaying prefix (#144)
commands/info.js
commands/info.js
'use strict' const co = require('co') const cli = require('heroku-cli-util') const humanize = require('humanize-plus') function configVarsFromName (attachments, name) { return attachments .filter((att) => att.addon.name === name) .map((att) => att.name + '_URL') .sort((name) => name !== 'KAFKA_URL') } ...
JavaScript
0
@@ -1085,32 +1085,134 @@ :topics%60%5D%0A %7D)%0A%0A + if (cluster.topic_prefix) %7B%0A lines.push(%7B name: 'Prefix', values: %5Bcluster.topic_prefix%5D %7D)%0A %7D%0A%0A lines.push(%7B%0A
598a25c9c8472888c9abf1db9419c25d638c7b96
Update version string to 2.5.1-pre.7
version.js
version.js
if (enyo && enyo.version) { enyo.version["enyo-ilib"] = "2.5.1-pre.6"; }
JavaScript
0.000001
@@ -65,9 +65,9 @@ pre. -6 +7 %22;%0A%7D
f6d01a768c7d8dc0fae7635b7ce1a3fe683cd3b6
refactor module.exports
react-app/src/storage.js
react-app/src/storage.js
var client = new Dropbox.Client({ key: "" }); var exec = function(f) { if (client.isAuthenticated()) { f(); } else { client.authenticate(function(error, data) { if (error) { console.log(error); } else { f(); } }); } }; exports.userInfo = function(callback) { exec(...
JavaScript
0.000002
@@ -1,12 +1,216 @@ +module.exports = %7B%0A userInfo: userInfo,%0A rootFiles: rootFiles,%0A readdir: readdir,%0A readEntry: readEntry,%0A readfile: readfile,%0A writefile: writefile,%0A writeimage: writeimage,%0A makedir: makedir%0A%7D;%0A%0A var client = @@ -248,27 +248,16 @@ );%0A%0A -var exec = function ...
76e43c94b1c3df7661eceddb08617fac10950740
bump version (#2690)
version.js
version.js
module.exports = '2019-06-22';
JavaScript
0
@@ -21,11 +21,11 @@ 19-0 -6-22 +7-21 ';%0A
5285fb5b2f44977cbb58d32aa573c0499215fbab
Support for Higher-Order Ambisonics (HOA). Rotation, convolution and rendering classes, w/ example.
test/test-hoa-rotator.js
test/test-hoa-rotator.js
/** * Copyright 2017 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
JavaScript
0
@@ -2866,24 +2866,96 @@ nction () %7B%0A + var numberOfChannels = (ambisonicOrder + 1) * (ambisonicOrder + 1);%0A context @@ -2955,16 +2955,22 @@ ontext = +%0A new Off @@ -2990,10 +2990,24 @@ ext( -16 +numberOfChannels , re
8611042bc961ff62d39ffff0e248b9e85af93f4a
update basic package-file testing
test/testPackageFiles.js
test/testPackageFiles.js
/* jshint -W097 */// jshint strict:false /*jslint node: true */ var expect = require('chai').expect; var fs = require('fs'); describe('Test package.json and io-package.json', function() { it('Test package files', function (done) { var fileContentIOPackage = fs.readFileSync(__dirname + '/../io-packag...
JavaScript
0
@@ -11,18 +11,19 @@ -W097 */ -// +%0A/* jshint @@ -34,19 +34,23 @@ ct:false + */ %0A/* + jslint n @@ -62,16 +62,40 @@ true */%0A +/* jshint expr: true */%0A var expe @@ -1158,32 +1158,738 @@ !');%0A %7D%0A%0A + expect(ioPackage.common.authors).to.exist;%0A if (ioPackage.common.name.index...
6c4896512d165b3650f508e0eba84d6a0b9f7fcb
update basic package-file testing
test/testPackageFiles.js
test/testPackageFiles.js
/* jshint -W097 */ /* jshint strict:false */ /* jslint node: true */ /* jshint expr: true */ var expect = require('chai').expect; var fs = require('fs'); describe('Test package.json and io-package.json', function() { it('Test package files', function (done) { console.log(); var fileContentI...
JavaScript
0
@@ -86,19 +86,36 @@ true */%0A -var +'use strict';%0A%0Aconst expect @@ -144,17 +144,16 @@ ct;%0A -var fs +const fs @@ -225,18 +225,13 @@ n', -function() +() =%3E %7B%0A @@ -262,23 +262,15 @@ s', -function ( done -) + =%3E %7B%0A @@ -292,35 +292,37 @@ log();%0A%0A -var +const fileCon...
84216367a31ccf4c364dc3676b063ba7d6db5e82
add more tests for convertAASequence
src/__tests__/convertAASequence.test.js
src/__tests__/convertAASequence.test.js
const convertAASequence = require('../convertAASequence'); describe('Checking convert AA sequence', () => { test('AAAAAAA', () => { const result = convertAASequence('AAAAAAA'); expect(result).toEqual('HAlaAlaAlaAlaAlaAlaAlaOH'); }); test('HAlaAla(H-1OH)AlaOH', () => { const result = convertAASequence('H...
JavaScript
0
@@ -240,16 +240,18 @@ %0A %7D);%0A%0A + test('HA @@ -278,16 +278,18 @@ () =%3E %7B%0A + const @@ -339,16 +339,18 @@ laOH');%0A + expect @@ -390,18 +390,273 @@ laOH');%0A -%7D) + %7D);%0A test('(C33H37O6N3Si) GluTyrGluLys(C16H30O)GluTyrGluOH', () =%3E %7B%0A const result = convertAASequence(%0A ...
19eaed5b44c04592c2407639991d256cb944f7fc
Correct a spelling mistake
example/test/list_component_test.js
example/test/list_component_test.js
var Assert = require("assert"); var ReactDOMServer = require("react-dom/server"); var XPathUtils = require("xpath-react/utils"); var React = require("react"); var Sinon = require("sinon"); var List = require("../lib/list_component"); function asserHasXPath (element, expression) { Assert.ok(XPathUtils.find(eleme...
JavaScript
0.999999
@@ -243,24 +243,25 @@ nction asser +t HasXPath (el @@ -281,16 +281,16 @@ sion) %7B%0A - Assert @@ -910,32 +910,33 @@ %3E);%0A%0A asser +t HasXPath(element @@ -970,32 +970,33 @@ %5D%22);%0A asser +t HasXPath(element @@ -1224,32 +1224,33 @@ %3E);%0A%0A asser +t HasXPath(element @@ -1314,32 +131...
6e7c4596d307ee43967f1b046b9b6dd73a594ebc
update basic package-file testing
test/testPackageFiles.js
test/testPackageFiles.js
/* jshint -W097 */ /* jshint strict:false */ /* jslint node: true */ /* jshint expr: true */ var expect = require('chai').expect; var fs = require('fs'); describe('Test package.json and io-package.json', function() { it('Test package files', function (done) { console.log(); var fileContentI...
JavaScript
0
@@ -2574,130 +2574,8 @@ ue;%0A - expect(fs.existsSync(__dirname + '/../LICENSE'), 'ERROR: LICENSE needs to exist! Please create one.').to.be.true;%0A
e6567bc593b7c57a88542f137375621701579907
fix failing test: round to seconds (#1631)
examples/async/src/actions/index.js
examples/async/src/actions/index.js
export const REQUEST_POSTS = 'REQUEST_POSTS' export const RECEIVE_POSTS = 'RECEIVE_POSTS' export const SELECT_REDDIT = 'SELECT_REDDIT' export const INVALIDATE_REDDIT = 'INVALIDATE_REDDIT' export function selectReddit(reddit) { return { type: SELECT_REDDIT, reddit, } } export function invalidateReddit(redd...
JavaScript
0.001585
@@ -597,17 +597,36 @@ At: -Date.now( +new Date().setMilliseconds(0 ),%0A
d05c2340b89a8312d33b07af6e688a186ee6cc2a
remove console log
gulp/tasks/browserify.js
gulp/tasks/browserify.js
/** * @author centsent */ import config from '../config'; import gulp from 'gulp'; import gulpif from 'gulp-if'; import gutil from 'gulp-util'; import source from 'vinyl-source-stream'; import sourcemaps from 'gulp-sourcemaps'; import buffer from 'vinyl-buffer'; import streamify from 'gulp-streamify'; import watchify...
JavaScript
0.002829
@@ -2210,32 +2210,8 @@ %7D);%0A - console.log(entries);%0A co
bd350cafa94a7bd4e8ba94ccd683a544ddd5dd69
Fix an issue where unown formes weren't parsed
data/alternate_forms.js
data/alternate_forms.js
'use strict'; const formes = new Array(722); formes[0] = null; for (let i = 1; i < formes.length; i++) { formes[i] = null; } formes[25] = [null, 'Rockstar', 'Belle', 'Pop', 'PhD', 'Libre', 'Cosplay']; formes[202] = [ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', ...
JavaScript
0.000004
@@ -207,17 +207,17 @@ ormes%5B20 -2 +1 %5D = %5B%0A
9c2b960d09cd3d43106c4ca444701e35432d0272
disable PDF view for android (#12061)
shared/fs/filepreview/view-container.js
shared/fs/filepreview/view-container.js
// @flow import * as I from 'immutable' import { compose, connect, lifecycle, type Dispatch, type TypedState, setDisplayName, } from '../../util/container' import * as Constants from '../../constants/fs' import * as FsGen from '../../actions/fs-gen' import * as React from 'react' import * as Types from '../...
JavaScript
0
@@ -642,16 +642,67 @@ /styles' +%0Aimport %7BisAndroid%7D from '../../constants/platform' %0A%0Atype P @@ -2164,16 +2164,165 @@ return +isAndroid ? ( // Android WebView doesn't support PDF. Come on Android!%0A %3CDefaultView path=%7Bpath%7D routePath=%7BroutePath%7D /%3E%0A ) : (%0A %3CPdfView...
de3fe9b8720657c3acd70272aa62aa37aaace1c1
Change logic for loading state of checkbox.
assets/js/components/settings/SettingsPlugin.js
assets/js/components/settings/SettingsPlugin.js
/** * SettingsPlugin component. * * 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 ...
JavaScript
0
@@ -2128,26 +2128,8 @@ ng=%7B -%0A%09%09%09%09%09%09%09%09%09%09%09typeof sho @@ -2142,32 +2142,22 @@ Bar -!== 'boolean'%0A%09%09%09%09%09%09%09%09%09%09 +=== undefined %7D%0A%09%09
e92e2ae45a2d6a7a049149be654528d4ff199bd4
Update js gulp task
gulp/tasks/javascript.js
gulp/tasks/javascript.js
'use strict'; var watchify = require('watchify'); var browserify = require('browserify'); var gulp = require('gulp'); var uglify = require('gulp-uglify'); var rename = require('gulp-rename'); var gutil = require('gulp-util'); var maps = require('gulp-sourcemaps'); var assign = require('lodash.assign'); var source = re...
JavaScript
0
@@ -108,24 +108,63 @@ re('gulp');%0A +var changed = require('gulp-changed');%0A var uglify = @@ -184,24 +184,24 @@ p-uglify');%0A - var rename = @@ -583,16 +583,39 @@ pts));%0A%0A +var DEST = './build';%0A%0A gulp.tas @@ -801,24 +801,49 @@ rce('app'))%0A + .pipe(changed(DEST))%0A .pipe(re @@ -892,18 +892...
e280b9628d6ac7853fda06548ff64dbced234194
Fix incorrect Vivillon pattern names
data/alternate_forms.js
data/alternate_forms.js
'use strict'; const formes = new Array(722); formes[0] = null; for (let i = 1; i < formes.length; i++) { formes[i] = null; } formes[25] = [null, 'Rockstar', 'Belle', 'Pop', 'PhD', 'Libre', 'Cosplay']; formes[202] = [ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', ...
JavaScript
0.999997
@@ -1717,9 +1717,9 @@ High -- + Plai @@ -1780,17 +1780,16 @@ 'Savanna -h ',%0A '
1b8a369d6c3358a05ca5988acd3a8cc8d3e1259e
Add admin bar checkbox.
assets/js/components/settings/SettingsPlugin.js
assets/js/components/settings/SettingsPlugin.js
/** * SettingsPlugin component. * * 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 ...
JavaScript
0
@@ -713,16 +713,66 @@ s/i18n'; +%0Aimport %7B useCallback %7D from '@wordpress/element'; %0A%0A/**%0A * @@ -897,16 +897,52 @@ Layout'; +%0Aimport Checkbox from '../Checkbox'; %0A%0Aexport @@ -978,16 +978,75 @@ gin() %7B%0A +%09const onAdminBarToggle = useCallback( () =%3E %7B%0A%0A%09%7D, %5B%5D );%0A%0A %09retur...
f8e504dd14c2ec878449c4d63d7d7bf6f7a123d2
Fix missing accumulator in deploy.js authz (#926)
commands/deploy.js
commands/deploy.js
"use strict"; var _ = require("lodash"); var requireInstance = require("../lib/requireInstance"); var requirePermissions = require("../lib/requirePermissions"); var checkDupHostingKeys = require("../lib/checkDupHostingKeys"); var checkValidTargetFilters = require("../lib/checkValidTargetFilters"); var checkFirebaseSD...
JavaScript
0.000001
@@ -2450,16 +2450,20 @@ );%0A %7D +, %5B%5D );%0A r
f8ad92438dc0f32ecb8b1ffc5a8c828b16c953cf
Comment big key tests due to possible bug in libsodium
test/test_sodium_auth.js
test/test_sodium_auth.js
/** * Created by bmf on 10/31/13. */ "use strict"; var assert = require('assert'); var crypto = require('crypto'); var sodium = require('../build/Release/sodium'); var key = new Buffer(sodium.crypto_auth_KEYBYTES).fill('Jefe').fill(0,4,32);; var c = Buffer.from('what do ya want for nothing?'); var key2 = Buffer.fr...
JavaScript
0
@@ -3052,32 +3052,80 @@ one();%0A %7D);%0A%0A +/* THIS TEST IS DISABLED DUE TO A LIBSODIUM BUG%0A it('crypto_a @@ -3939,12 +3939,14 @@ %7D);%0A +*/ %0A%7D);
df1ffe63d46e3a3c4c74ae2e7f531254ad2b5d24
Include mojular dependency in JS file
assets/scripts/modules/conditional-subfields.js
assets/scripts/modules/conditional-subfields.js
var $ = require('jquery'); Mojular.Modules.ConditionalSubfields = { el: '[data-controlled-by]', init: function() { this.cacheEls(); this.bindEvents(); this.setInitialState(); this.replaceLabels(); }, setInitialState: function() { var self = this; this.conditionalFields .each(fu...
JavaScript
0
@@ -1,12 +1,32 @@ +require('mojular');%0A var $ = requ
b7c9e260ae261ec48f9e4664aa62bcbacadd71a1
Remove requiring FS since it's not needed
commands/emotes.js
commands/emotes.js
var fs = require('fs'); module.exports = { emote_alphys: function(bot, user, userID, channelID, message) { var helpers = require('./../helpers'); helpers.statistics("emoted", user, userID, channelID, message); bot.uploadFile({ to: channelID, file: "emote/alphys.png" ...
JavaScript
0
@@ -1,29 +1,4 @@ -var fs = require('fs');%0A%0A modu
001d1f491a789278132055db39281d2024b584af
use the configured id of a model - fixes list.get(model)
model/list/list.js
model/list/list.js
steal('can/model/list','jquery/model').then(function() { // List.get used to take a model or list of models var getList = $.Model.List.prototype.get; $.Model.List.prototype.get = function(arg) { var ids; if(arg instanceof $.Model.List) { ids = []; $.each(arg,function() { ids.push(this.attr('id')); }...
JavaScript
0
@@ -196,24 +196,28 @@ %7B%0A%09%09var ids +, id ;%0A%09%09if(arg i @@ -362,25 +362,65 @@ && arg. -attr('id' +constructor && (id = arg.attr(arg.constructor.id) )) %7B%0A%09%09%09 @@ -429,22 +429,10 @@ g = -arg.attr('id') +id ;%0A%09%09
dbc30e11332b9be3a63634bad5410c820092ab32
command is no array
commands/reload.js
commands/reload.js
const alias = require('../events/message.js').alias; exports.run = async(client, msg, args) => { if (!args || args.length < 1) return msg.reply('Please type the command name to reload'); let command; if (require('./' + args[0])) { command = args[0] } try { delete require.cache[require.resolve(`./` +...
JavaScript
0.999999
@@ -321,19 +321,16 @@ command -%5B0%5D )%5D;%0A
75beb0542a3541e2e48c3d5c6455969c69409e4d
Tidy up.
src/article/shared/EditEntityCommand.js
src/article/shared/EditEntityCommand.js
import { Command } from 'substance' /* This command intended to switch view and scroll to the selected node. Command state becoming active only for certain type of custom selection, e.g. if you want to use it, provide config with selectionType property. */ export default class EditEntityCommand extends Command {...
JavaScript
0.000002
@@ -44,34 +44,63 @@ his -command intended to switch +is a preliminary solultion that switches to the correct vie @@ -111,19 +111,19 @@ d scroll - to +s%0A the sel @@ -136,157 +136,105 @@ node -.%0A Command state becoming active only for certain type of custom selection,%0A e.g. if you want to use it, provide...
46dfb3990aa247d9406704d13f2d6734d7d31a72
add sqrt and fix getType
examples/js/nodes/math/Math1Node.js
examples/js/nodes/math/Math1Node.js
/** * @author sunag / http://www.sunag.com.br/ */ THREE.Math1Node = function( a, method ) { THREE.TempNode.call( this ); this.a = a; this.method = method || THREE.Math1Node.SIN; }; THREE.Math1Node.RAD = 'radians'; THREE.Math1Node.DEG = 'degrees'; THREE.Math1Node.EXP = 'exp'; THREE.Math1Node.EXP2 = 'exp2'; TH...
JavaScript
0
@@ -391,15 +391,42 @@ ode. -INVERSE +SQRT = 'sqrt';%0ATHREE.Math1Node.INV _SQR @@ -1205,16 +1205,14 @@ ode. -DISTANCE +LENGTH :%0A%09%09
ef02a3b0295cdc3fd206ee61a208625255a4f666
Remove debug info
src/assets/js/materialbox-fullscreen.js
src/assets/js/materialbox-fullscreen.js
/** * materialbox_fullscreen.js * Oleg Fomin <ofstudio@gmail.com> * * Based on materialbox from Materialize Framework v0.96.1 | https://github.com/Dogfalo/materialize * Added fullscreen feature * * See * ... * newWidth = windowWidth * 1; * newHeight = windowWidth * 1 * ratio; * ... * * Docs and demo: http:...
JavaScript
0.000001
@@ -3686,48 +3686,8 @@ 0;%0A - console.log('Works!');%0A%0A %0A
7ba1b5ea23471b4c2df9f0cbd45afd9764dd4b98
Fix build process for Leaflet.markercluster
Jakefile.js
Jakefile.js
const LeafletBuild = require('./vendor/leaflet/build/build') const MarkerClusterBuild = require('./vendor/leaflet-markercluster/build/build') function pushdAsync(wd) { const oldwd = process.cwd() process.chdir('vendor/leaflet') return () => { process.chdir(oldwd) complete() } } function installDepsCm...
JavaScript
0.000003
@@ -209,32 +209,18 @@ s.chdir( -'vendor/leaflet' +wd )%0A retu @@ -856,31 +856,16 @@ uster'%5D, - %7Basync: true%7D, () =%3E %7B @@ -857,32 +857,32 @@ ster'%5D, () =%3E %7B%0A + console.log('. @@ -925,80 +925,137 @@ )%0A -MarkerClusterBuild.build(pushdAsync('vendor/leaflet-markercluster'), '7' +const oldwd...
cc16cd936e582933ac9831f986dcf7fd03d77799
Add Gravity Suit (#322)
mods/cssb/items.js
mods/cssb/items.js
'use strict'; exports.BattleItems = { // VXN "wondergummi": { id: "wondergummi", name: "Wonder Gummi", spritenum: 538, naturalGift: { basePower: 200, type: "???", }, isNonStandard: true, onUpdate: function (pokemon) { if (pokemon.hp <= pokemon.maxhp / 4 || (pokemon.hp <= pokemon.maxhp / 2 && po...
JavaScript
0
@@ -1234,11 +1234,332 @@ .%22,%0A%09%7D,%0A +%09// Gligars%0A%09%22gravitysuit%22: %7B%0A%09%09id: %22gravitysuit%22,%0A%09%09name: %22Gravity Suit%22,%0A%09%09spritenum: 581,%0A%09%09fling: %7B%0A%09%09%09basePower: 30,%0A%09%09%7D,%0A%09%09onStart: function (pokemon) %7B%0A%09%09%09this.useMove('Gravity', pokemon);%...
35249ff3536527a7767eb342ce84ca2cfb8232da
Remove unused variable
src/utils/configuration.js
src/utils/configuration.js
const characters = { 0: [1008, 1008, 3132, 3132, 15375, 15375, 15375, 15375, 15375, 15375, 3852, 3852, 1008, 1008], 1: [240, 240, 1008, 1008, 240, 240, 240, 240, 240, 240, 240, 240, 4095, 4095], 2: [4092, 4092, 15375, 15375, 63, 63, 1020, 1020, 4080, 4080, 16128, 16128, 16383, 16383], 3: [4095, 4095, 60, 60, 24...
JavaScript
0.000015
@@ -1168,31 +1168,8 @@ 14; -%0Aconst defaultSize = 4; %0A%0Aco @@ -1286,21 +1286,8 @@ mns, - defaultSize, def
f4d0d54fc30096a9303651548953dcc5418f1db1
Update qrCodeScanning.js
Moma/Moma.Droid/Assets/Content/scripts/qrCodeScanning.js
Moma/Moma.Droid/Assets/Content/scripts/qrCodeScanning.js
function qrCodeScanBtn() { jsBridge.ScanQRCode(); } function qrCodeTextBtn() { jsBridge.showQRCodeText(); //showQRText('Emile Berliner \n Born in Germany May 20, 1851, he first worked as a printer, then as a clerk in a \n fabric store. It was here that his talent as an inventor first surfaced. He invent...
JavaScript
0
@@ -591,24 +591,50 @@ ext(text) %7B%0A + if (text != %22%22) %7B%0A var titl @@ -662,24 +662,28 @@ e h1');%0A + + var content @@ -709,24 +709,28 @@ ent');%0A%0A + + var boxTitle @@ -743,24 +743,28 @@ CODE%22;%0A + + var boxConte @@ -779,16 +779,20 @@ t;%0A%0A + + t...
2bbf83c79a1ba863af40a557d78ca442ff7a1fc8
Build bundle in Travis.
test/ui-examples-test.js
test/ui-examples-test.js
const tape = require('tape'), phylotree = require('../dist/phylotree'), express = require('express'), puppeteer = require('puppeteer'); const app = express(); const PORT = process.env.PORT || 8888; const HEADLESS = process.env.HEADLESS == 'false' ? false : true; app.use(express.static('.')); var server, browser...
JavaScript
0
@@ -1233,16 +1233,17 @@ ape(%22Sel +e ctome lo
86257d6d52f5f53c3880f4e8de4a74a789baae74
Fix copy pasta
banana-stand/app/controllers/song.controller.js
banana-stand/app/controllers/song.controller.js
var server = require('vvps-engine').server, BaseApiController = require('vvps-engine').controllers.base, songController = new BaseApiController(require('../models/song.model.js')), Song = songController.model; /** * Get all songs * @param req * @param res * @param next */ songController.getMany = func...
JavaScript
0.000002
@@ -237,16 +237,62 @@ l songs%0A + * TODO search params -- title & artist match%0A * @para @@ -289,32 +289,32 @@ h%0A * @param req%0A - * @param res%0A * @@ -565,20 +565,19 @@ Get a s -hark +ong by its @@ -727,20 +727,19 @@ (err, s -hark +ong ) %7B%0A%0A @@ -835,12 +835,11 @@ on(s -hark +ong );%0A
296dcb45f7a9f070ebef96edf139cf8ca1664916
Append invisible character to buttery output
modules/buttery.js
modules/buttery.js
/** * Eighteen seconds of spam. */ var readline = require( 'readline' ); var fs = require( 'fs' ); module.exports = { commands: { buttery: { help: 'Sings a lovely song', aliases: [ 'biscuit', 'base', 'wobble' ], privileged: true, // very spammy! command: function ( bot, msg ) { var rl = readline.cr...
JavaScript
0.998525
@@ -494,16 +494,50 @@ to, line + + '%5Cu200b' /* zero width space */ );%0A%09%09%09%09
be4b589fd76f20d00aacf86c886807df0289baf3
fix isPlainObject, is comparing object stringified object constructors instead of prototypes (did not work from iframes because Object in iframe is not the same as in parent)
src/utils/isPlainObject.js
src/utils/isPlainObject.js
/** * @param {any} obj The object to inspect. * @returns {boolean} True if the argument appears to be a plain object. */ export default function isPlainObject(obj) { if (!obj) { return false; } return typeof obj === 'object' && Object.getPrototypeOf(obj) === Object.prototype; }
JavaScript
0
@@ -1,8 +1,74 @@ +const fnToString = (fn) =%3E Function.prototype.toString.call(fn);%0A%0A /**%0A * @ @@ -238,16 +238,43 @@ if (!obj + %7C%7C typeof obj !== 'object' ) %7B%0A @@ -298,50 +298,61 @@ %0A%0A -return typeof obj === 'object' &&%0A +const proto = typeof obj.constructor === 'function' ? Obj...
0a6a742e2182dbfa150608a0d01c7abc7150bb29
Remove the loop-bug
role.harvester.js
role.harvester.js
module.exports = { run: function(creep) { if (creep.spawning === false) { if (creep.memory.sourcenum == undefined) { var numEnergySources = creep.room.lookForAtArea(LOOK_ENERGY, 0, 0, 49, 49, true).length; creep.memory.sourcenum = Math.floor(Math.random() * (numEnergySources + 1)); } ...
JavaScript
0
@@ -2699,593 +2699,8 @@ e %7B%0A -%0A var targets = creep.room.find(FIND_STRUCTURES, %7B%0A filter: (structure) =%3E %7B%0A return (structure.structureType === STRUCTURE_CONTAINER %7C%7C%0A structure.structureType === STRUCTURE_STORAGE) &&%0A structure.sto...
5dc3085a812c52f66d3f64c225437da5531d4277
add netease api
routes/netease.js
routes/netease.js
var express = require('express'); var request = require('request'); var router = express.Router(); /* GET users listing. */ router.get('/', function(req, res, next) { res.header("Content-Type", "application/json;charset=utf-8"); //console.log('ref:' + req.header('referer')); var id = req.query.id; var ...
JavaScript
0
@@ -508,32 +508,41 @@ st/detail/?id='+ +playlist_ id+'&ids=%255B'+id @@ -531,32 +531,41 @@ t_id+'&ids=%255B'+ +playlist_ id+'%255D';%0A %7D%0A
f139cafb37f0093ab5379843c33648a792d8d42a
switch to property 'using asked parameter types'
test/arbitrary/command.js
test/arbitrary/command.js
const assert = require('assert'); const jsc = require('jsverify'); const {command} = require('../../src/arbitrary/command'); const GENSIZE = 10; function MyEmptyClass(...params) { this.params = params; }; describe('command', function() { describe('generator', function() { it('should insta...
JavaScript
0
@@ -723,24 +723,26 @@ %7D);%0D%0A +%0D%0A it(' @@ -826,62 +826,382 @@ nst -a +knownA rb +s = -command(MyEmptyClass, jsc.nat, jsc.array(jsc.nat +%7B%0D%0A %22bool%22 : %7B%0D%0A arb: jsc.bool,%0D%0A check: v =%3E v === true %7C%7C v === false%0D...
c175ebb784fe838e2f2b40ef2a2648b6a3e73a46
Fix the tests
test/write-files.test.js
test/write-files.test.js
/** * Tests for the file writer */ const test = require('tape'); const utils = require('./fixture'); const prunk = require('prunk'); const Immutable = require('immutable'); const setup = (mkdirpMock, fsMock) => { prunk.mock('mkdirp', mkdirpMock); prunk.mock('fs-promise', fsMock); return require('../lib...
JavaScript
0.999909
@@ -1111,16 +1111,22 @@ ns(name) +, name );%0A @@ -1293,34 +1293,33 @@ .catch( -() +e =%3E t.fail() );%0A @@ -1309,28 +1309,46 @@ e =%3E t.fail( +e ) ); +%0A%0A teardown(); %0A%7D);%0A%0Atest(' @@ -1605,33 +1605,28 @@ .get('output -Directory +Path ') );%0A%0A c @@ -1709,16 +1709,22 @@ con...
de7278a9045655a404c95c1bf64dcec5cc1ed7cf
Add test to catch non-numeric sorting
exercises/triangle/triangle.spec.js
exercises/triangle/triangle.spec.js
var Triangle = require('./triangle'); describe('Triangle', function() { it('equilateral triangles have equal sides', function() { var triangle = new Triangle(2,2,2); expect(triangle.kind()).toEqual('equilateral'); }); xit('larger equilateral triangles also have equal sides', function() { var triang...
JavaScript
0.000015
@@ -2601,12 +2601,188 @@ %0A %7D);%0A%0A + xit('triangles violating triangle inequality are illegal 3', function() %7B%0A var triangle = new Triangle(10,1,3);%0A expect(triangle.kind.bind(triangle)).toThrow();%0A %7D);%0A%0A %7D);%0A
3061f890aa18e405236e0daebe59333e419a796d
Use switch in loadMore onInteract
src/components/MessageTypes/LoadMore.js
src/components/MessageTypes/LoadMore.js
'use strict' import React, { useCallback, useEffect, useRef, useState } from 'react' import PropTypes from 'prop-types' import { useTranslation } from 'react-i18next' import debounce from 'lodash.debounce' function LoadMore ({ parentElement, onActivate, ...rest }) { const [t] = useTranslation() const [paddingTop,...
JavaScript
0
@@ -541,26 +541,30 @@ =%3E %7B%0A -if +switch (event.type @@ -567,70 +567,91 @@ type - === 'click') activate()%0A else if (event.type === +) %7B%0A case 'click':%0A activate()%0A break%0A case 'wheel' ) %7B%0A @@ -646,20 +646,20 @@ 'wheel' -) %7B%0A +:%0A ...
1ac3b0e2ff05dcc781a90abf266b7ca400a3af88
Update index.js
src/with-features/index.js
src/with-features/index.js
import React, { Component } from "react"; import getEnabled from "../utils/get-enabled"; import updateFeaturesWithParams from "../utils/updateFeaturesWithParams"; import PropTypes from "prop-types"; const getEnabledFeatures = (initialFeatures, windowLocationSearch) => getEnabled(updateFeaturesWithParams(initialFeatu...
JavaScript
0.000002
@@ -412,24 +412,30 @@ Location -: Object +Search: String %7D) =%3E C
62b498af984349b80b0ebcf04c1d0242a3b49116
Update documentation
demo/examples/common.js
demo/examples/common.js
import React from 'react'; import Modules from '../helpers/modules'; import { AwesomeButton, AwesomeButtonProgress } from '../../src/index'; export const properties = [ { name: 'General', props: [ { name: 'button-default-height', type: 'range', max: 100, min: 30, ...
JavaScript
0
@@ -2957,15 +2957,8 @@ act- -native- awes @@ -3099,12 +3099,13 @@ tonS -hare +ocial ,%0A%7D
c5cdbb1d6244cd5e0a77416c1ef598336de4809a
change deprecated transaction to runInAction
test/observable-stream.js
test/observable-stream.js
'use strict'; const utils = require('../'); const mobx = require('mobx'); const test = require('tape'); const Rx = require("rxjs"); test("to observable", t => { const user = mobx.observable({ firstName: "C.S", lastName: "Lewis" }) mobx.useStrict(false); let values = [] const sub = Rx.Observable ...
JavaScript
0.000001
@@ -483,14 +483,14 @@ obx. -transa +runInA ctio
9a56478947c81b6a8d4a12d59f1e6afb32b58008
Add a test for postNewNupicStatus
test/test-shaValidator.js
test/test-shaValidator.js
var assert = require('assert'), shaValidator = require('./../utils/shaValidator.js') repoClientStub = { 'getAllStatusesFor': function(sha, callback) { callback(null, 'fakeStatusHistory'); }, 'validators': { 'excludes': [] } }, repoClientSecondStub = { 'getAllS...
JavaScript
0
@@ -3635,12 +3635,1007 @@ %0A %7D); +%0A%0A it('Testing postNewNupicStatus', function(done) %7B%0A var mockSha = 'mockSha',%0A mockStatusDetails = %7B%0A 'state': 'success',%0A 'target_url': 'otherTargetURL',%0A 'description': 'description'%0A %7D,%0A ...
f900cb77d877db00ded9d07f4705efcd73b41420
remove extra whitespace
test/testium-core.test.js
test/testium-core.test.js
import assert from 'assertive'; import Gofer from 'gofer'; import { getTestium, getBrowser } from '../'; const gofer = new Gofer({ globalDefaults: {}, }); async function fetch(uri, options) { return gofer.fetch(uri, options); } async function fetchResponse(uri, options) { return gofer.fetch(uri, options).getRe...
JavaScript
0.999995
@@ -2158,17 +2158,16 @@ %0A %7D);%0A%0A -%0A descri
5151208d82faa5b3f6fe3c9dcb85f8fd30b657a9
test wrong callback type throws right exception
test/tests/events_spec.js
test/tests/events_spec.js
"use strict"; provide(function(exports) { using('lib/component', function(defineComponent) { describe("(Core) events", function() { var Component = (function() { function testComponent() { this.after('initialize', function() { this.testString || (this.testString = ""); ...
JavaScript
0.000003
@@ -4545,32 +4545,378 @@ d();%0A %7D);%0A%0A + it('throws the expected error when attempting to bind to wrong type', function() %7B%0A var instance = new Component(document.body);%0A var badBind = function() %7Binstance.on(document, 'foo', %22turkey%22)%7D;%0A expect(badBind).toThrow(%22...
bc0e04fad14c341e0a297e14da55318490f08c12
Test cargo tessel sdk install/uninstall
test/unit/cargo-tessel.js
test/unit/cargo-tessel.js
// Test dependencies are required and exposed in common/bootstrap.js require('../common/bootstrap'); /*global CrashReporter */ exports['Cargo Subcommand (cargo tessel ...)'] = { setUp(done) { this.sandbox = sinon.sandbox.create(); this.info = this.sandbox.stub(log, 'info'); this.error = this.sandbox.stu...
JavaScript
0
@@ -276,24 +276,72 @@ g, 'info');%0A + this.warn = this.sandbox.stub(log, 'warn');%0A this.err @@ -614,18 +614,8 @@ uild -: function (tes @@ -622,19 +622,16 @@ t) %7B%0A - // test.ex @@ -639,9 +639,9 @@ ect( -3 +4 );%0A%0A @@ -687,22 +687,23 @@ var b -uildOp +resolve = Promi @@ -836,22 +836,23 ...
bc8b847d897af07399d267c86abe0d8ebc88b623
check for corner case of too few flickr images when cycling images
javascripts/app.js
javascripts/app.js
jQuery(document).ready(function ($) { var flickrImages = []; var flickrLimit = 20; var previousIdx = 9999; var timeout = {}; /* ---------------------------------------------------------------------- * Flickr image magick * -----------------------------------------------------------------...
JavaScript
0
@@ -496,17 +496,16 @@ );%0A%09%7D)%0A%0A -%0A %09// this @@ -702,16 +702,42 @@ while + (flickrImages.length%3E1 && ((num=M @@ -801,16 +801,12 @@ Idx) +) %7B%7D -%09 %0A%09
000ec8b33bd96e3187e522630770624c2f923599
fix linter error
src/@ui/ConnectedImage/SkeletonImage.tests.js
src/@ui/ConnectedImage/SkeletonImage.tests.js
import React from 'react'; import { Text } from 'react-native'; import renderer from 'react-test-renderer'; import SkeletonImage from './SkeletonImage'; describe('the SkeletonImage component', () => { it('should render a loading state', () => { const tree = renderer.create( <SkeletonImage onReady={false}...
JavaScript
0.000002
@@ -24,45 +24,8 @@ t';%0A -import %7B Text %7D from 'react-native';%0A impo
9babccc978ed4d7124631bd4289fb3e9da117dff
copy change
development/scripts/views/stats_coffee.js
development/scripts/views/stats_coffee.js
"use strict"; const StatsView = require("./stats"); const xhr = require("xhr"); module.exports = StatsView.extend({ template: ` <section class="category coffee"> <header> <div class="art"></div> <div class="copy"> <p></p> </div> </header> <main class="stats"> <div class="stats-contain...
JavaScript
0.000001
@@ -935,13 +935,14 @@ han -Usual +Median %3C/h3
aae8a628d0f82561d9087e1b8fbd8024d7b4fbf4
remove dead code
client/scripts/task/controller/cam-tasklist-task-groups-ctrl.js
client/scripts/task/controller/cam-tasklist-task-groups-ctrl.js
define([ 'angular' ], function( angular ) { 'use strict'; var GROUP_TYPE = 'candidate'; return [ '$scope', '$translate', '$q', 'Notifications', 'camAPI', function( $scope, $translate, $q, Notifications, camAPI ) { // setup /////////////////////////////////////...
JavaScript
0.998565
@@ -1988,222 +1988,8 @@ ) %7B%0A - // return Notifications.addError(%7B%0A // status: messages.failure,%0A // message: messages.addGroupFailed,%0A // exclusive: true,%0A // scope: $scope%0A // %7D);%0A%0A
1544405be029163cfa0dd5719d16833b72ae82d1
Add preset to jest babel config
.babelrc.js
.babelrc.js
const withTests = { presets: [ [ '@babel/preset-env', { shippedProposals: true, useBuiltIns: 'usage', corejs: '3', targets: { node: 'current' } }, ], ], plugins: [ 'babel-plugin-require-context-hook', 'babel-plugin-dynamic-import-node', '@babel/plugin-transform-runtime', ], }; m...
JavaScript
0
@@ -1176,24 +1176,66 @@ chen-sink',%0A + presets: %5B'@vue/babel-preset-jsx'%5D,%0A env: %7B
1eca38d5b3f226163d33f2c2d8bde7eac79d9193
Add a "Do Not Track" policy to tracking entrypoint
utils/track.js
utils/track.js
import fetch from 'isomorphic-fetch' import Router from 'next/router' const reportView = () => { const { pathname } = window.location fetch('https://sc-micro-analytics.now.sh' + pathname) .then(() => { console.log(`Reported page view for ${pathname}.`) }) .catch(err => { console.warn('Coul...
JavaScript
0.000002
@@ -64,16 +64,377 @@ outer'%0A%0A +if (%0A (navigator.doNotTrack && navigator.doNotTrack !== 'no') %7C%7C%0A window.doNotTrack %7C%7C%0A navigator.msDoNotTrack%0A) %7B%0A console.log('Tracking is disabled due to the Do Not Track policy of this browser.')%0A%7D else %7B%0A console.log('Tracking is enabled. If you ...
81178452cc15448c2857b1d7df4eb3b7f55f3bd7
Test phase
node-hsync/main.js
node-hsync/main.js
var program = require('commander'); var Process = require('process'); var util = require('util'); var Hubic = require('./hubic.js'); var HFile = require('./hfile.js'); var LFile = require('./lfile.js'); var Syncer = require('./syncer.js'); program.option("-u, --username <login>", "Hubic username"); program.option("-p,...
JavaScript
0.000001
@@ -232,16 +232,73 @@ er.js'); +%0Avar Authentification = require('./authentification.js'); %0A%0Aprogra
b8ec958f89616a5e6071c0d6586f0a4126582370
Add addPolyfills function
utils/utils.js
utils/utils.js
/* * utils.js: utility functions */ export { getScrollOffsets, drag }; /* * getScrollOffsets: Use x and y scroll offsets to calculate positioning * coordinates that take into account whether the page has been scrolled. * From Mozilla Developer Network: Element.getBoundingClientRect() */ function getScrollOffs...
JavaScript
0.000001
@@ -63,16 +63,30 @@ ts, drag +, addPolyfills %7D;%0A%0A/*%0A @@ -3121,8 +3121,1392 @@ ;%0A %7D%0A%7D%0A +%0A/*%0A* addPolyfills: Add polyfill implementations for JavaScript object methods%0A* defined in ES6 and used by bookmarklets:%0A* 1. Array.prototype.find%0A* 2. String.prototype.includes%0A*/%0Afuncti...
19935ca18a36e73a225f38fd96d0d7a2376baf81
Set UeberDB cache to 0 in remove-orphan-db-records.js
scripts/remove-orphan-db-records.js
scripts/remove-orphan-db-records.js
#! /usr/bin/env node // vim:set sw=2 ts=2 sts=2 ft=javascript expandtab: 'use strict'; // Dependencies var program = require('commander'), fs = require('fs'), path = require('path'); var _cliProgress = require('cli-progress'); var ueberDB = require('ueberdb2'), jsonminify = require('jsonmi...
JavaScript
0.000001
@@ -1610,16 +1610,46 @@ Settings +, %7Bcache: 0, writeInterval: 0%7D );%0A%0A/*%0A
8b7e30ae70a8e0b103b032cea69b6214b553710f
Fix test
tests/e2e/reports_spec.js
tests/e2e/reports_spec.js
/*global browser:false, element:false, by:false */ 'use strict'; //https://github.com/angular/protractor/blob/master/docs/api.md //GetAttribute() returns "boolean" values and will return either "true" or null browser.get('/'); describe('Reports List', function() { it('should have a Report Editor title', function(...
JavaScript
0.000004
@@ -1556,32 +1556,213 @@ ')).toBe(null);%0A + checkboxes.count().then(function(count)%7B%0A if(count === 1) %7B%0A expect(toggle.getAttribute('indeterminate')).toBe(null);%0A %7D else %7B%0A expect(t @@ -1808,24 +1808,50 @@ Be('true');%0A + %7D%0...
ba0d3d373e89fb8a589d785abb058a127f78cc1f
Update config.js
samples/config.js
samples/config.js
var QBApp = { appId: 92, authKey: 'wJHdOcQSxXQGWx5', authSecret: 'BTFsj7Rtt27DAmT' }; var QBUsers = [ { id: 2077886, login: '@user1', password: 'x6Bt0VDy5', full_name: 'User 1' }, { id: 2077894, login: '@user2', password: 'x6Bt0VDy5', full_name: 'User 2' }, { id: 207...
JavaScript
0.000002
@@ -1197,38 +1197,38 @@ %7D,%0A %7B%0A id: 2 -077906 +344849 ,%0A login: 'an
5b2f6697acd10851a49bb2fdf2040043dc15b039
use people API for sample (#2528)
samples/oauth2.js
samples/oauth2.js
// Copyright 2012 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
JavaScript
0
@@ -828,19 +828,21 @@ %0Aconst p -lus +eople = googl @@ -844,19 +844,21 @@ google.p -lus +eople ('v1');%0A @@ -3087,19 +3087,21 @@ await p -lus +eople .people. @@ -3109,20 +3109,78 @@ et(%7B -userId: 'me' +%0A resourceName: 'people/me',%0A personFields: 'emailAddresses',%0A %7D);%0A @@ -3223,16 +3223,...
99efb92fe23fe0fc2910c55b048e28d3de8bd797
Replace React.addons.classSet with classnames
src/Autosuggest.js
src/Autosuggest.js
'use strict'; var React = require('react/addons'); var guid = 0; var Autosuggest = React.createClass({ propTypes: { initialValue: React.PropTypes.string, // Input's initial value inputId: React.PropTypes.string, // Input's id inputPlaceholder: React.PropTypes.string, // Input's placeholder ...
JavaScript
0.000465
@@ -38,14 +38,47 @@ eact -/addon +');%0Avar classnames = require('classname s'); @@ -5022,43 +5022,102 @@ -this.refs.input.getDOMNode().focus( +setTimeout(function() %7B%0A React.findDOMNode(this.refs.input).focus();%0A %7D.bind(this) );%0A @@ -5359,29 +5359,18 @@ s = -React.addons.classSet +cla...
318568ef96b963f1dca06813b44aa8db0ad8ee23
Update index.spec.js
tests/unit/index.spec.js
tests/unit/index.spec.js
import chai from 'chai'; import chaiJsonSchema from 'chai-json-schema'; import schemas from 'jsfile-schemas'; import JsFile from 'JsFile'; import OoxmlEngine from './../../src/index'; chai.use(chaiJsonSchema); const assert = chai.assert; describe('jsFile-ooxml', () => { let files; const documentSchema = schem...
JavaScript
0.000002
@@ -1202,16 +1202,8 @@ json -.content , do @@ -1506,8 +1506,9 @@ %7D);%0A%7D); +%0A
009d81819b84ff27276bf72b1a978831449d32b0
Load all macros aliases on test
tests/unit/macro-test.js
tests/unit/macro-test.js
import Ember from "ember"; import { alias, empty, notEmpty, none, not, bool, match, equal } from "ember-computed-decorators"; import { module, test, skip } from "qunit"; const { get, set } = Ember; module('macro decorator'); test('alias', function(assert) { var didInit = false; var obj = Ember....
JavaScript
0
@@ -45,66 +45,242 @@ ,%0A -empty,%0A notEmpty,%0A none,%0A not,%0A bool,%0A match,%0A equal +and,%0A bool,%0A collect,%0A empty,%0A equal,%0A filter,%0A filterBy,%0A gt,%0A gte,%0A lt,%0A lte,%0A map,%0A mapBy,%0A match,%0A max,%0A min,%0A none,%0A not,%0A notEmpty,%0A oneWay,%0A or,%0A re...
15c7c23367e1a665a3aff8527a194a012ae2503a
Fix forceRecur when GC is the only payment processor in use
js/gcform.js
js/gcform.js
// This ensures that the is_recur check box is always checked if a GoCardless payment processor is selected. document.addEventListener('DOMContentLoaded', function () { // This next line gets swapped out by PHP var goCardlessProcessorIDs = []; var isRecurInput = document.getElementById('is_recur'); var ppRadio...
JavaScript
0
@@ -350,16 +350,30 @@ ('input%5B +type=%22radio%22%5D%5B name=%22pa @@ -765,24 +765,61 @@ ithAlert) %7B%0A + if (selectedProcessorName) %7B%0A alert( @@ -895,16 +895,96 @@ ing.%22);%0A + %7D%0A else %7B%0A alert(%22Contributions must be recurring.%22);%0A %7D%0A %7D%0A @@ ...
6a490657bfa0925c3ac94384d2e06c5e0f18df23
Fix 'helper.equal' function to compare objects correctly
js/helper.js
js/helper.js
(function(app) { 'use strict'; var helper = {}; helper.randomString = function(len) { var s = []; for (var i = 0, n = Math.ceil(len / 7); i < n; i++) { s.push(Math.random().toString(36).slice(-7)); } return s.join('').slice(-len); }; helper.encodePath = function(str) { return str....
JavaScript
0.021258
@@ -1209,32 +1209,58 @@ ) %7B%0A return + (b.hasOwnProperty(key) && helper.equal(a%5B @@ -1272,16 +1272,17 @@ b%5Bkey%5D) +) ;%0A %7D)
79a373ec421a17a6acbf1a59c389624d29538f95
Correct test case 1 to 4 for AboutInheritance.js
koans/AboutInheritance.js
koans/AboutInheritance.js
function Muppet(age, hobby) { this.age = age; this.hobby = hobby; this.answerNanny = function(){ return "Everything's cool!"; } } function SwedishChef(age, hobby, mood) { Muppet.call(this, age, hobby); this.mood = mood; this.cook = function() { return "Mmmm soup!"; } } SwedishChef.prototyp...
JavaScript
0.000082
@@ -631,34 +631,36 @@ ()).toEqual( -FILL_ME_IN +%22Mmmm soup!%22 );%0A %7D);%0A %0A @@ -778,34 +778,44 @@ ()).toEqual( -FILL_ME_IN +%22Everything's cool!%22 );%0A %7D);%0A %0A @@ -925,34 +925,25 @@ ge).toEqual( -FILL_ME_IN +2 );%0A expec @@ -972,34 +972,33 @@ by).toEqual( -FILL_ME_IN +%22cooking%22 );%0A...
895c9f16aca4c85dfd6f1eafe8b4db1d72b267ab
improve javascript
marginotes.js
marginotes.js
var marginotes = function (options) { var options = options || {} $('body').append('<div class = "margintooltip" style = "display:none;"></div>') var field = options.field || "desc" var spans = this.filter("span") spans.css({ 'border-bottom': '1px dashed #337ab7', 'cursor': 'help' }) this.hove...
JavaScript
0.000316
@@ -33,20 +33,16 @@ ns) %7B%0A -var options @@ -56,16 +56,92 @@ ns %7C%7C %7B%7D +;%0A var field = options.field %7C%7C 'desc';%0A var spans = this.filter('span');%0A %0A $('bo @@ -163,19 +163,17 @@ iv class - = += %22margint @@ -185,19 +185,17 @@ p%22 style - = += %22display @@ -195,16 +195,17 @@ dis...
104bf2e18f2b97b7842b74c3e6e93027e847bfcd
Update script.js
js/script.js
js/script.js
jQuery(document).ready(function($) { // function - on scroll, navbar shrinks $(window).scroll(function() { var scroll = $(this).scrollTop(); var nav = $('#main-navbar'); // nav.addClass('#main-navbar.second-state'); if (scroll > 200) { nav.addClass('#main-navba...
JavaScript
0.000002
@@ -34,29 +34,21 @@ ) %7B%0A -%0A -// function - +%0A / on +o scr @@ -169,26 +169,21 @@ %09%09= $('# -main-navba +heade r');%0A%0A @@ -335,16 +335,18 @@ else %7B%0A +
8637794d54cc444f11a139838358adda989aa639
Update script.js
js/script.js
js/script.js
/** * Created by Gopalakrishnan on 7/5/2017. */ $(document).ready(function () { loadMenu(); addEmailandNumber(); /*loadResumeLink();*/ loadYear(); }); function loadMenu() { var menuhtml = '<a class="mdl-navigation__link" href="index">Overview</a>'; menuhtml += '<a class="mdl-navigation__link"...
JavaScript
0.000002
@@ -1633,18 +1633,18 @@ hnan -be16@gmail +gk@outlook .com
e66e106c003573c1d1a346481fce4e2b1335cbc2
fix typo in code document -> window
js/script.js
js/script.js
/* This script will be available on every screen as a child of the window object (see data/app.xml). */ window.addEventListener(Savvy.LOAD, function(){ // fired once when Savvy loads first document.querySelector("audio").play(); }); window.addEventListener(Savvy.READY, function(){ // fired every time a screen "r...
JavaScript
0.000033
@@ -343,24 +343,22 @@ ed%0A%7D);%0A%0A -document +window .addEven
63f82cafdf4524a53aee562754b306bb0fb951f0
Update script.js
js/script.js
js/script.js
(function(window, document, undefined) { window.onload = init; function init() { //get the canvas var canvas = document.getElementById("mapcanvas"); var c = canvas.getContext("2d"); var width = 960; var height = 540; } })(window, document, undefined);
JavaScript
0.000002
@@ -265,16 +265,394 @@ ;%0A %7D%0A + %0A document.getElementById(%22paintbtn%22).onclick = paint;%0A %0A function paint()%7B%0A var widthSelect = document.getElementById(%22width%22);%0A width = widthSelect.options%5BwidthSelect.selectedIndex%5D.value;%0A %0A var heightSelect...
52b9e97c0b7acc7cfaf9e02a6bfe52bc135a6cbb
Update script.js
js/script.js
js/script.js
var script = document.createElement('script'); script.src = 'http://code.jquery.com/jquery-1.11.0.min.js'; script.type = 'text/javascript'; document.getElementsByTagName('head')[0].appendChild(script); (function(window, document, undefined) { window.onload = init; function init() { var canvas = documen...
JavaScript
0.000002
@@ -525,17 +525,18 @@ it2 = -1 +; %0A - %0A @@ -605,16 +605,17 @@ = it1+1 +; %0A @@ -638,16 +638,41 @@ == 0)%7B%0A + it1 = 0;%0A @@ -690,16 +690,17 @@ = it2+1 +; %0A
886981718049d73389d6416e54d2c1e35eecc58d
Update slider.js
js/slider.js
js/slider.js
; ( function ( $, window, document, undefined ) { "use strict"; var pluginName = "slider"; var defaults = { delay: 1000, interval: 10000 }; function Plugin( element, options ) { this.element = element; this.settings = $.extend( {}, defaults, options ); this.vari = { timer: undefined, ...
JavaScript
0.000001
@@ -2062,22 +2062,17 @@ ity: 0%7D, -%0A%09%09%09%09%09 + this.set @@ -2457,22 +2457,17 @@ ity: 1%7D, -%0A%09%09%09%09%09 + this.set
ce7f2b2986f36d657c7271ada12d173ce7f48fab
Update splash.js
js/splash.js
js/splash.js
var content = "<span class='badge'>New</span>"; var content += "Un nuovo video sull'autismo (realizzato con la collaborazione del prof. Tony Attwood, esperto dell'autismo)" var thumbup = <span class=\"glyphicon glyphicon-thumbs-up\"></span>"; <!-- this is the same for all the groups --> splasha.innerHTML = content + t...
JavaScript
0.000001
@@ -165,16 +165,17 @@ utismo)%22 +; %0Avar thu @@ -242,53 +242,8 @@ %22;%0A%0A -%3C!-- this is the same for all the groups --%3E%0A spla
42cab27120436e93ae230a9b01267716569f1781
Update upvote.js
js/upvote.js
js/upvote.js
var Upvote = (function (window, document) { that = this; // endEvent = hasTouch ? 'touchend' : 'mouseup', Upvote = function (opts) { that = this; this.current_category = 'us'; // --------------------------------------------------------- // Muench launch // -------------------------------------...
JavaScript
0.000002
@@ -1326,20 +1326,8 @@ %09 -alert('ok'); %0A @@ -3748,43 +3748,8 @@ %09%09%0A - %09%09alert('ok1');%0A %09%09%0A
565087faabc1dbbee7ab0802e4fc10175ef6b825
add change for dist dir
dist/geom/ShapeUtils.js
dist/geom/ShapeUtils.js
/** * Created by Samuel Gratzl on 27.12.2016. */ import { AShape } from './AShape'; import { Rect } from './Rect'; import { Circle } from './Circle'; import { Ellipse } from './Ellipse'; import { Line } from './Line'; import { Polygon } from './Polygon'; export class ShapeUtils { static wrapToShape(obj) { ...
JavaScript
0
@@ -254,15 +254,8 @@ n';%0A -export clas @@ -1797,9 +1797,8 @@ s.js.map -%0A
5b440fc021d50bec3dbdd9464d80b626a6929988
add Triangle
javascripts/enemies/triangle.js
javascripts/enemies/triangle.js
JavaScript
0.999986
@@ -0,0 +1,349 @@ +Triangle = Class.create(Enemy, %7B%0A initialize: function(x, y) %7B%0A Sprite.call(this, 50, 50);%0A this.image = game.assets%5B'images/triangle_glow.png'%5D;%0A this.frame = 0;%0A%0A this.x = x;%0A this.y = y;%0A%0A this.speed = 2;%0A this.scoreValue = 10;%0A %7D,%0A%0A onen...
1cdcd3227d9d70e0e11bf4ec30d0402638c98e3c
Remove Sample app comment
index.ios.js
index.ios.js
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image } from 'react-native'; import Guco from './Guco'; const views = [ { title: 'Guco' }, { title: 'McGucci' }, { titl...
JavaScript
0
@@ -1,93 +1,4 @@ -/**%0A * Sample React Native App%0A * https://github.com/facebook/react-native%0A * @flow%0A */%0A%0A impo
432a1e3c69f697ee21544720659b3e37594f33b7
Update main.js
web-ui/js/main.js
web-ui/js/main.js
var KrempelAirApp = angular.module('KrempelAirApp', ['ngRoute']); var uri = "/api" KrempelAirApp.config(['$locationProvider', function($locationProvider) { $locationProvider.hashPrefix(''); }]); KrempelAirApp.config(function ($routeProvider) { $routeProvider .when('/', { templateUrl: '../views/air....
JavaScript
0.000001
@@ -3734,32 +3734,35 @@ e.data%5B%22TempSoll +NAK %22%5D;%0A
edf3a7fb5b8b65065d2f0ad296a83f56e70221e2
fix test case class name
src/Component/Stopwatch/test/StopwatchTest.js
src/Component/Stopwatch/test/StopwatchTest.js
import { expect } from 'chai'; const Stopwatch = Jymfony.Component.Stopwatch.Stopwatch; const StopwatchEvent = Jymfony.Component.Stopwatch.StopwatchEvent; const TestCase = Jymfony.Component.Testing.Framework.TestCase; export default class StopwatchPeriodTest extends TestCase { get testCaseName() { return ...
JavaScript
0.000003
@@ -247,14 +247,8 @@ atch -Period Test
a035ae76d303fad9747a16f747f2e51f2e327935
Fix bug with Ember.Handlebars.helper
packages/ember-handlebars-compiler/lib/main.js
packages/ember-handlebars-compiler/lib/main.js
/** @module ember @submodule ember-handlebars-compiler */ // Eliminate dependency on any Ember to simplify precompilation workflow var objectCreate = Object.create || function(parent) { function F() {} F.prototype = parent; return new F(); }; var Handlebars = this.Handlebars || (Ember.imports && Ember.imports.H...
JavaScript
0
@@ -1318,22 +1318,16 @@ unction( -name, options)
6217aff4445e16885e5e05debc19e8bd298a82b2
remove duplicate test
packages/ember-metal/tests/performance_test.js
packages/ember-metal/tests/performance_test.js
/* This test file is designed to capture performance regressions related to deferred computation. Things like run loops, computed properties, and bindings should run the minimum amount of times to achieve best performance, so any bugs that cause them to get evaluated more than necessary should be put here. */ ...
JavaScript
0.000409
@@ -377,558 +377,8 @@ );%0A%0A -test(%22computed properties that depend on multiple properties should run only once per run loop%22, function() %7B%0A var obj = %7Ba: 'a', b: 'b', c: 'c'%7D;%0A var count = 0;%0A Ember.defineProperty(obj, 'abc', Ember.computed(function(key) %7B%0A count++;%0A return 'computed ...
f7a460c37b6a4fdbbd40610f8fc45d70253742be
Update utils-constants.js
dataprep-webapp/src/services/utils/constants/utils-constants.js
dataprep-webapp/src/services/utils/constants/utils-constants.js
(function() { 'use strict'; angular.module('data-prep.services.utils') /** * @ngdoc object * @name data-prep.services.utils.service:apiUrl * @description The REST api base url */ .constant('apiUrl', 'http://10.42.10.99:8888') /* VM1 */ // .constant('...
JavaScript
0.000001
@@ -283,175 +283,8 @@ 88') - /* VM1 */%0A // .constant('apiUrl', 'http://10.42.40.91:8888') /* VINCENT */%0A //.constant('apiUrl', 'http://192.168.40.134:8888') /* MARC VM DOCKER */ %0A
fc45b842cdce2a3208ba3fd910d1eaed9bdde454
add jsdoc example to execution context
packages/execution-context/ExecutionContext.js
packages/execution-context/ExecutionContext.js
export default class ExecutionContext { /** * @param {Executor} executor — an instance that handles code running * @param {Number} concurrent — number of routines that can be executed at once * @param {Boolean} manual — set to `true` if manual queue execution needed */ constructor(executor, concurrent =...
JavaScript
0.000001
@@ -1,8 +1,306 @@ +/**%0A * Executes arbitrary code asynchronously and concurrently.%0A * @example%0A * const executor = new ImmediateExecutor()%0A * const context = new ExecutionContext(executor);%0A * const result = context.execute(() =%3E 'Hello, World!');%0A * result.then(message =%3E console.log(me...
2a4ecd94bba80ae245976f4c724c0f52a98a32ab
Update comments
helpers/sortByMapping.js
helpers/sortByMapping.js
/* jslint node: true */ 'use strict'; var _ = require( 'lodash' ); module.exports = function( dust ) { /* * @description Sorting method that orders a list of things based on a provided map * @param {object} sortObject - Object to sort * @param {string} map - Map to use to sort with * @param {string} indexe...
JavaScript
0
@@ -520,16 +520,196 @@ apping%7D%0A + * At present their is no unit test coverage for this helper, this is being addressed by changing the structure of our helpers to ensure functions available outside scope of dust%0A */%0A%0A @@ -1131,22 +1131,43 @@ the -sort parameter +object to be sorted using the index ...
933f9ad8a581679654e511879016d20ae2c895da
remove deprecated jQuery .ready() syntax (#2738)
resources/scripts/app.js
resources/scripts/app.js
/** * External Dependencies */ import 'jquery'; $(document).ready(() => { // console.log('Hello world'); });
JavaScript
0.000001
@@ -50,24 +50,8 @@ %0A%0A$( -document).ready( () =
8e9371e3d3259deea1a922d47686967bee54c00f
fix proptypes warning with router prop
src/views/SearchPictogramsView.js
src/views/SearchPictogramsView.js
import React, {Component, PropTypes} from 'react' import { defineMessages, FormattedMessage } from 'react-intl' import SearchBox from 'components/SearchBox.js' import FilterPictograms from 'components/Filter/Filter' import Toggle from 'material-ui/lib/toggle' import { connect } from 'react-redux' import { resetErrorMes...
JavaScript
0
@@ -1370,13 +1370,8 @@ %7D%60)%0A - %0A @@ -1405,23 +1405,89 @@ ing -a higher class: +HOC: https://github.com/reactjs/react-router/blob/master/upgrade-guides/v2.4.0.md %0A @@ -3262,16 +3262,58 @@ pes.node +,%0A router: React.PropTypes.any.isRequired %0A%7D%0A%0Acons
08b359d6f8d3627efe88688ba57c2acd040bff37
change cursor style for datepicker
packages/tocco-ui/src/DatePicker/DatePicker.js
packages/tocco-ui/src/DatePicker/DatePicker.js
import React, {useRef} from 'react' import PropTypes from 'prop-types' import {injectIntl, intlShape} from 'react-intl' import styled, {withTheme} from 'styled-components' import {theme} from '../utilStyles' import {useDatePickr} from './useDatePickr' const WrapperStyle = styled.div` .flatpickr-calendar.open { ...
JavaScript
0
@@ -280,16 +280,38 @@ ed.div%60%0A + cursor: pointer;%0A %0A .flatp