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
e45f7eb62428aa8e5b00afeca2fa0bed5aeb9c21
Change error message when caching fails
lib/less-browser/cache.js
lib/less-browser/cache.js
// Cache system is a bit outdated and could do with work module.exports = function(window, options, logger) { var cache = null; if (options.env !== 'development') { try { cache = (typeof(window.localStorage) === 'undefined') ? null : window.localStorage; } catch (_) {} } ret...
JavaScript
0.000001
@@ -755,16 +755,61 @@ to save + %22' + path + '%22 to local storage for caching. ');%0A
b0483165a9125ffc36725bd96b1c5f70bd28d346
Test corrections.
client/js/controller.js
client/js/controller.js
function AppCtrl($scope) { 'use strict'; $scope.title = 'The Movie Database'; } function WelcomeCtrl($scope, moviesResponse) { 'use strict'; $scope.movies = moviesResponse.data; } WelcomeCtrl.resolve = { moviesResponse: function ($http) { 'use strict'; return $http.get('/movies'); ...
JavaScript
0.000802
@@ -2248,16 +2248,17 @@ ngth) == += path) %7B @@ -2281,20 +2281,21 @@ (path == - %22/%22 += '/' && $loc @@ -2309,20 +2309,21 @@ ath() == - %22/%22 += '/' ) %7B%0A @@ -2341,24 +2341,24 @@ return -%22 +' active -%22 +' ;%0A @@ -2385,12 +2385,13 @@ h == - %22/%22 += '/' ) %7B%0A @@ -2413,18 +2413,...
e6dbe288868ec172030b02508e2f4a8993553ee9
Update he.js
dist/locale/he.js
dist/locale/he.js
export default { after: (field, [target]) => `השדה ${field} חייב להכיל תאריך לאחר ${target}.`, alpha_dash: (field) => `השדה ${field} יכול להכיל רק אותיות, מספרים ומקפים.`, alpha_num: (field) => `השדה ${field} יכול להכיל רק אותיות ומספרים..`, alpha_spaces: (field) => `השדה ${field} יכול להכיל רק אותיות ו...
JavaScript
0
@@ -1536,21 +1536,21 @@ length%7D -%D7%A1%D7%A4%D7%A8%D7%95%D7%AA +%D7%AA%D7%95%D7%95%D7%99%D7%9D .%60,%0A @@ -1738,21 +1738,21 @@ length%7D -%D7%A1%D7%A4%D7%A8%D7%95%D7%AA +%D7%AA%D7%95%D7%95%D7%99%D7%9D %D7%9C%D7%A4%D7%97%D7%95%D7%AA.%60
c42e3066e0147c6fa5ff36451b7a0e8759114e3e
Update the marker form widget when changing the settings
src/public/js/view/editPoiLayerColumn.js
src/public/js/view/editPoiLayerColumn.js
define([ 'underscore', 'backbone', 'marionette', 'bootstrap', 'templates', ], function ( _, Backbone, Marionette, Bootstrap, templates ) { 'use strict'; return Marionette.ItemView.extend({ template: JST['editPoiLayerColumn.html'], behaviors: { 'l20n': {}, 'column': {}, }, ui: { '...
JavaScript
0
@@ -524,24 +524,48 @@ _content',%0A%0A +%09%09%09'marker': '.marker',%0A %09%09%09'editMark @@ -1002,24 +1002,82 @@ del.clone(); +%0A%0A%09%09%09this.model.on('change', this.updateMarkerIcon, this); %0A%09%09%7D,%0A%0A%09%09ope @@ -1189,24 +1189,209 @@ se');%0A%09%09%7D,%0A%0A +%09%09updateMarkerIcon: function () ...
26e37c35f797b376bcd9f2eb5c61e58ec4db265c
move back to lodash keys
packages/substyle/src/coerceSelection.js
packages/substyle/src/coerceSelection.js
// @flow import type { KeysT } from './types' const coerceSelection = (select?: KeysT): Array<string> => { if (!select) { return [] } else if (typeof select === 'string') { return [select] } else if (!Array.isArray(select)) { const objSelect: { [string]: boolean } = select // workaround for https://g...
JavaScript
0.000001
@@ -2,16 +2,46 @@ / @flow%0A +import %7B keys %7D from 'lodash'%0A import t @@ -394,15 +394,8 @@ urn -Object. keys
055052725296d9edb43872fd0bd718117cafe277
fix compilation
dist/http-root/dashboard.js
dist/http-root/dashboard.js
function switchVersion(node,link) { alert('switching node ' + node + ' to version ' + document.getElementById(node+'_newVersion').value); window.location = link + document.getElementById(node+'_newVersion').value; } function commandNode(node, command, link) { alert('sending command \'' + command + '\' to node ' +...
JavaScript
0.000001
@@ -424,21 +424,19 @@ /;%0A%09var -dates +arr =%5B%5D,els= @@ -532,13 +532,11 @@ d%5D) -dates +arr .pus @@ -570,17 +570,17 @@ r.length -, +; %0A%09var no
0ba04703202c5468b0a0b2030e4151067598e639
Fix issue with successive clicks on date breaking multi-selection
modules/gm.datepickerMultiSelect.js
modules/gm.datepickerMultiSelect.js
/* The MIT License (MIT) Copyright (c) 2014 Gregory McGee Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,...
JavaScript
0.000001
@@ -1485,16 +1485,44 @@ s = %5B%5D;%0A + var alreadyUpdated;%0A @@ -1665,16 +1665,36 @@ wDates;%0A + update();%0A @@ -1716,16 +1716,28 @@ /* +*%0A * Fires w @@ -1785,65 +1785,329 @@ nged - */%0A scope.$parent.$watch('activeDateId', function +.%0A * ...
d8bcbfc68d8ec4b24699b8ad9ec030533347ed99
fix validation errors on send
packages/local-sync/src/local-api/routes/send.js
packages/local-sync/src/local-api/routes/send.js
const Joi = require('joi'); const Utils = require('../../shared/utils'); const {createSyncbackRequest} = require('../route-helpers'); const recipient = Joi.object().keys({ name: Joi.string().required(), email: Joi.string().email().required(), // Rest are optional account_id: Joi.string(), client_id: Joi.str...
JavaScript
0
@@ -918,32 +918,44 @@ id: Joi.string() +.allow(null) ,%0A repl @@ -975,32 +975,44 @@ id: Joi.string() +.allow(null) ,%0A clie @@ -2296,32 +2296,44 @@ id: Joi.string() +.allow(null) ,%0A re @@ -2355,32 +2355,44 @@ id: Joi.string() +.allow(null) ,%0A cl
60b4515413250f84adebd256956317413c20b28d
Remove xhr-specific .abort() logic because it's fairly useless
src/model/fancy/ajax.js
src/model/fancy/ajax.js
/** * model/fancy/ajax.js */ models.ajax = asyncModel.extend({ state: function asyncState(dataCallback) { var self = this; var myXhr; function complete() { removeInFlight(self); if (myXhr) { myXhr = null; } self.onComplete()...
JavaScript
0.000105
@@ -136,27 +136,8 @@ is;%0A - var myXhr;%0A @@ -200,77 +200,8 @@ f);%0A - if (myXhr) %7B%0A myXhr = null;%0A %7D%0A @@ -1630,115 +1630,8 @@ te,%0A - beforeSend: function beforeSend(xhr) %7B%0A myXhr = xhr;%0A %7D...
8ec975d9ca2cf218bf2c2eddfe6ed4d8718f45dc
Use utility.js
lexos/static/js/scripts_rwanalysis.js
lexos/static/js/scripts_rwanalysis.js
/** * Show the milestone input when the milestone check box is checked. */ function updateMSopt () { if ($('#rollinghasmilestone').is(':checked')) { $('#rollingmilestoneopt').show() } else { $('#rollingmilestoneopt').hide() } } /** * the function to convert the from into json * @returns {{string: str...
JavaScript
0.000003
@@ -1,12 +1,53 @@ +import * as utility from './utility.js'%0A%0A /**%0A * Show @@ -283,902 +283,8 @@ %0A%7D%0A%0A -/**%0A * the function to convert the from into json%0A * @returns %7B%7Bstring: string%7D%7D - the from converted to json%0A */%0Afunction jsonifyForm () %7B%0A const form = %7B%7D%0A $.each($('form')...
7b2ce4258d9cca635f19a12a6babede915229356
Fix flow error
packages/react-accessible-tooltip/src/Tooltip.js
packages/react-accessible-tooltip/src/Tooltip.js
// @flow import React, { Component } from 'react'; import type { ElementProps, ComponentType } from 'react'; export type LabelProps = { labelAttributes: { role: 'tooltip', tabIndex: '0', 'aria-describedby': string, onFocus: () => void, }, isHidden: boolean, }; export type ...
JavaScript
0.000003
@@ -422,23 +422,22 @@ idden': -boolean +string ,%0A %7D,
0fd0abe7dbcabbd5089b1353f4c0cedee32692ab
fix typo
src/renderers/webgl/WebGLRenderStates.js
src/renderers/webgl/WebGLRenderStates.js
/** * @author Mugen87 / https://github.com/Mugen87 */ import { WebGLLights } from './WebGLLights.js'; function WebGLRenderState() { var lights = new WebGLLights(); var lightsArray = []; var shadowsArray = []; var spritesArray = []; function init() { lightsArray.length = 0; shadowsArray.length = 0; sp...
JavaScript
0.999991
@@ -510,26 +510,21 @@ prite( s -hadowLight +prite ) %7B%0A%0A%09%09 @@ -539,34 +539,29 @@ rray.push( s -hadowLight +prite );%0A%0A%09%7D%0A%0A%09fu
c650b20ebb8e20f01a51dfed774c505dfe0efa4c
Add a link to performance tests on JSPerf for replacer()
lib/natural/util/utils.js
lib/natural/util/utils.js
/* Copyright (c) 2012, Guillaume Marty Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distr...
JavaScript
0
@@ -1308,16 +1308,74 @@ first.%0A + * @see Speed test http://jsperf.com/build-a-regexp-table%0A *%0A * @p
3b3fb64d7e0b8f725e2edc412063a96ec23cfec9
update copy as per Gail's email
packages/ui/src/components/Tracking/CookieBox.js
packages/ui/src/components/Tracking/CookieBox.js
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import styles from '../css/cookie-box.module.css'; import controls from '../../css/controls.module.css'; // Copy/pasted from pages/PreferencesPage.js. // TODO: Abstract this is we see this pattern any more times. c...
JavaScript
0
@@ -2101,16 +2101,17 @@ o opt in + to addit @@ -2135,24 +2135,24 @@ support the%0A - @@ -2374,45 +2374,8 @@ ip. -This opting in is entirely up to you. %0A @@ -2620,16 +2620,17 @@ n%3EOpt in + to Adobe @@ -2690,32 +2690,32 @@ %3Cp%3E%0A - Fo @@ -2711,16 +2711,49 @@ ...
257f54a79a6efa1137b96ebbb9944fae69f57604
make sure LIMIT is set
fast-future.js
fast-future.js
var LIMIT = process.maxTickDepth / 2 , factory = function () { var count = 0 return function (callback) { if (count >= LIMIT){ global.setImmediate(callback) count = 0 } else process.nextTick(callback) count++ } } module.exports = global.setI...
JavaScript
0.00003
@@ -29,16 +29,24 @@ epth / 2 + %7C%7C 1000 %0A , fac
4e38470801b80e54be0732d0b292a6c37aa7e37d
Remove assert import
sperm-whale/database.js
sperm-whale/database.js
const MongoClient = require('mongodb').MongoClient; const assert = require('assert'); const url = 'mongodb://localhost:27017/test'; MongoClient.connect(url, function(err, db) { console.log(`Connected to MongoDB @${url}`); const buildings = db.collection('buildings'); const courses = db.collection('courses'); ...
JavaScript
0.000001
@@ -48,42 +48,8 @@ ent; -%0Aconst assert = require('assert'); %0A%0Aco
51eb67b717a7ba716bc34f81bf73ae671b37b53c
Update QuadNode.js
src/modules/QuadNode.js
src/modules/QuadNode.js
'use strict'; /* * Fast and easy Quad-Tree implementation written by Barbosik. * Useful for quick object search in the area specified with bounds. * * Copyright (c) 2016 Barbosik https://github.com/Barbosik * License: Apache License, Version 2.0 */ function QuadNode(bound) { var halfWidth = (bound.maxx - bou...
JavaScript
0
@@ -276,28 +276,29 @@ ound) %7B%0A -var +this. halfWidth = @@ -332,20 +332,21 @@ 2;%0A -var +this. halfHeig @@ -514,70 +514,8 @@ xy,%0A - halfWidth: halfWidth,%0A halfHeight: halfHeight,%0A @@ -535,16 +535,21 @@ .minx + +this. halfWidt @@ -576,16 +576,21 @@ .miny + +this. half...
6c79e8148be797415ff92d447f6eacfbd7e97857
Add support for handling native `event`
src/mousetrap-config.js
src/mousetrap-config.js
import Mousetrap from 'mousetrap'; import {inject} from 'aurelia-framework'; import {EventAggregator} from 'aurelia-event-aggregator'; import {Configure} from './configure'; /** * This class binds and stores the keymap, where the keymap and callback are configurable. * The default implementation for the callback is ...
JavaScript
0
@@ -1477,16 +1477,22 @@ combo, ( +$event ) =%3E %7B%0A @@ -1526,32 +1526,40 @@ llback(eventName +, $event );%0A @@ -1763,8 +1763,9 @@ %0A %7D%0A%7D +%0A
c77cf00a60d489aaf3ceb45eb9f08ba7a85d2097
Clean up figlet font loading for node
figlet-node.js
figlet-node.js
/** * Figlet JS node.js module * * Copyright (c) 2010 Scott González * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://github.com/scottgonzalez/figlet-js */ var Figlet = require("./figlet").Figlet; Figlet.loadFont = function(name, fn) { require("fs").readFile(...
JavaScript
0
@@ -208,16 +208,68 @@ js%0A */%0A%0A +var fs = require(%22fs%22);%0Avar path = require('path');%0A var Figl @@ -345,65 +345,139 @@ ) %7B%0A -%09require(%22fs%22).readFile(%22./fonts/%22 + name + %22.flf%22 +%0A%09var fontFileName = name + %22.flf%22;%0A%09%0A%09var filePath = path.resolve(__dirname, %22fonts%22, fo...
47dceb6610544a1a5537a864448f5a207c0f04b6
set object-curly-spacing always
xo.config.js
xo.config.js
module.exports = { space: true, rules: { '@typescript-eslint/prefer-readonly-parameter-types': 'off', 'ava/no-skip-test': 'off', 'ava/no-only-test': 'off' } };
JavaScript
0.000001
@@ -163,16 +163,64 @@ ': 'off' +,%0A 'object-curly-spacing': %5B'error','always'%5D %0A %7D%0A%7D;%0A
f022e434384ce86c259a449e30e9efd038954c04
Fix Denkpause: Accidental .split() with "Eintopf" keyword in menu name
parser/mensen/parsers/parser_bistro_denkpause.js
parser/mensen/parsers/parser_bistro_denkpause.js
var bistroparser = function(mensa){ var parser = require('./parser'); var request = require('request'); // process the html data and find the data we are interested in request(mensa.url, function(error, response, html) { // moment library for date conversion var moment = require("moment"); // cheerio library...
JavaScript
0
@@ -2253,16 +2253,19 @@ Eintopf/ +, 4 )%0A%09%09%09%09%09.
e3796f6f416c70cd72a57ebbd4ec8882232df3ef
Convert the password prompt to ES6 syntax
web/password_prompt.js
web/password_prompt.js
/* Copyright 2012 Mozilla Foundation * * 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...
JavaScript
0.999999
@@ -1429,120 +1429,36 @@ */%0A%0A -/**%0A * @class%0A */%0Avar PasswordPrompt = (function PasswordPromptClosure() %7B%0A /**%0A * @constructs PasswordPrompt +class PasswordPrompt %7B%0A /** %0A @@ -1506,39 +1506,27 @@ */%0A -function PasswordPrompt +constructor (options @@ -2054,20 +2054,14 @@ n', -fu...
6c63ec12eb9218ab99f5903606a1e52f9144857c
Make the power-save-blocker a bit more concise
lib/browser/api/power-save-blocker.js
lib/browser/api/power-save-blocker.js
var powerSaveBlocker powerSaveBlocker = process.atomBinding('power_save_blocker').powerSaveBlocker module.exports = powerSaveBlocker
JavaScript
0.000001
@@ -1,42 +1,18 @@ -var powerSaveBlocker%0A%0ApowerSaveBlocker +module.exports = p @@ -73,39 +73,4 @@ ker%0A -%0Amodule.exports = powerSaveBlocker%0A
d224f5975ba09e3f12c31d61b73d902950b1c823
Fix webpack config
webpack/prod.config.js
webpack/prod.config.js
import path from 'path'; import webpack from 'webpack'; import importantly from 'postcss-importantly'; export default { entry: { todoapp: [path.join(__dirname, '../chrome/extension/todoapp')], background: [path.join(__dirname, '../chrome/extension/background')], inject: [path.join(__dirname, '../chrome/e...
JavaScript
0.000004
@@ -52,55 +52,8 @@ ck'; -%0Aimport importantly from 'postcss-importantly'; %0A%0Aex
5a5246bff8f2d938fd1481d65b8772c495d41963
add query equal to botid
lib/controller/replyWithDumbledore.js
lib/controller/replyWithDumbledore.js
const { INPUT, OUTPUT, DB } = require('../const'); async function studentStats(originalMessage) { const student = originalMessage.text.substring(originalMessage.text.indexOf('@') + 1).split('>')[0]; const userName = await this.convertToUserName(student); if (userName.name !== 'dumbledore') { const Student ...
JavaScript
0.999897
@@ -1141,32 +1141,76 @@ Query(Student);%0A + query.equalTo(DB.STUDENT.BOT_ID, this.id); %0A query.descend @@ -1704,16 +1704,60 @@ udent);%0A + query.equalTo(DB.STUDENT.BOT_ID, this.id); %0A query @@ -2569,32 +2569,77 @@ Query(Student);%0A + query.equalTo(DB.STUDENT.BOT_ID, this.id);%0A query.descendi
49f10b54d0f90c8891655c19e6b657e3bc541c30
Add argument for handling errors on executeSql call
sqldatabase.deferred.js
sqldatabase.deferred.js
(function (window, $, undefined) { function DeferredSQLTransaction(tx) { this.transaction = tx; }; DeferredSQLTransaction.prototype.executeSql = function executeSql(sqlStatement, sqlArguments) { var self = this, d = $.Deferred(), successCallback = function (tx, resu...
JavaScript
0.000001
@@ -206,16 +206,30 @@ rguments +, handleErrors ) %7B%0A @@ -477,32 +477,33 @@ t(self, error);%0A +%0A @@ -603,32 +603,47 @@ successCallback, + handleErrors ? errorCallback); @@ -632,32 +632,44 @@ ? errorCallback + : undefined );%0A%0A retu @@ -1456,32 +1456,295 @@ ction (error) %7...
dcfabfccf27d97ed9a0e6adb5dec37bc8688d245
Fix off-by-one error
lib/controllers/reviews-controller.js
lib/controllers/reviews-controller.js
import React from 'react'; import PropTypes from 'prop-types'; import {Emitter} from 'event-kit'; import {RemoteSetPropType, BranchSetPropType, EndpointPropType, WorkdirContextPoolPropType} from '../prop-types'; import ReviewsView from '../views/reviews-view'; import PullRequestCheckoutController from '../controllers/...
JavaScript
0.998437
@@ -3121,16 +3121,20 @@ Position + - 1 ,%0A
2466beb6fc3a2750a6a2f7d18d57309a713e6805
Modify user schema
lib/dataaccess/handler/mongo/model.js
lib/dataaccess/handler/mongo/model.js
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var ObjectId = Schema.Types.ObjectId; /** * Schemas */ var UserSchema = new Schema({ uid: { type: String, required: true, index: { unique: true, dropDups: true} }, pwd: { type: String, required: true, select: false }, nick: { type: String...
JavaScript
0
@@ -98,16 +98,95 @@ ectId;%0A%0A +/**%0A * Connect Mongodb%0A */%0A%0Amongoose.connect('mongodb://localhost/speedyfx');%0A%0A /**%0A * S @@ -259,32 +259,44 @@ required: true, + trim: true, index: %7B unique @@ -407,32 +407,44 @@ tring, required: + true, trim: true %7D,%0A ema @@ -464,32 +464,44 @@ tring, r...
f40b5d47c98a594fc589f6869e4b724add3bf3d2
add up
J8-0.0.1.js
J8-0.0.1.js
/** * Created by lja on 2015/11/20. */ var type = (function () { 'use strict'; var class2type = {}, toString = class2type.toString; ('Boolean Number String Function Array Date RegExp Object Error').split(' ').forEach(function (name) { class2type['[object ' + name + ']'] = name.toLowerCa...
JavaScript
0.000048
@@ -7601,18 +7601,16 @@ %0A %7D;%0A -%0A%0A %0A
7cb7cba3c88e084dea874b7602af5d351aa20201
Handle error message in readability mode
data/js/ext.api.js
data/js/ext.api.js
define(function(require, exports, module) { 'use strict'; var TSCORE = require("tscore"); console.log("Loading: ext.api.js"); window.addEventListener("message", handleMessage, false); function handleMessage(msg) { var data = JSON.parse(msg.data); var command = data.command; switch (command) { ...
JavaScript
0.000001
@@ -328,24 +328,23 @@ se %22 -readabilityError +showAlertDialog %22:%0A @@ -383,13 +383,8 @@ his -HTML cont @@ -404,16 +404,28 @@ loaded.%22 +, data.title );%0A
8d4772b3cae9c6df1f31ff11280ebc0a1b83a7fb
Fix href with "#"
src/page-accelerator.js
src/page-accelerator.js
/* * PageAccelerator - A solution to load web pages faster * http://github.com/EasyFood/PageAccelerator * author: Evandro Leopoldino Goncalves <evandrolgoncalves@gmail.com> * http://github.com/EasyFood * License: MIT */ (function(global, factory) { /*global define: false*/ /*global exports: true*/ if ...
JavaScript
0.000004
@@ -3545,16 +3545,54 @@ protocol + %7C%7C%0A /#/.test(element.href) ) %7B%0A
613652f62601ed368d5dd04f1b9cdf2c523fd8fe
Add new lines at end of inserted syntax block
assets/js/code-modal.js
assets/js/code-modal.js
jQuery.fn.serializeObject = function() { var o = {}; var a = this.serializeArray(); jQuery.each(a, function() { if (o[this.name]) { if (!o[this.name].push) { o[this.name] = [o[this.name]]; } o[this.name].push(this.value || ''); } e...
JavaScript
0.000001
@@ -5329,16 +5329,31 @@ uterHTML + + %22%5Cn%5Cn&nbsp;%22 );%0D%0A
a53e5b9758bee535de8a449ae9da8d3a2a322a4c
Use newest editor instance.
src/pat/edit-tinymce.js
src/pat/edit-tinymce.js
define([ "jquery", "../core/parser", "../core/logger", "../registry", "../utils", "jquery.textchange", "tinymce" ], function($, Parser, logger, registry, utils) { var log = logger.getLogger("pat.editTinyMCE"), parser = new Parser("edit-tinymce"); parser.add_argument("tinymce...
JavaScript
0
@@ -2970,16 +2970,21 @@ var ed +itors = tinyM @@ -3031,24 +3031,28 @@ + return e.id @@ -3079,12 +3079,65 @@ -%7D)%5B0 + %7D),%0A ed = editors%5Beditors.length-1 %5D;%0A%0A
491388f9a9e0307fc00b70b18e901c60a30c6682
fix test for chart test component
src/Chart/Chart.spec.js
src/Chart/Chart.spec.js
// @flow weak /* eslint-env mocha */ import React from 'react'; import { assert } from 'chai'; import { createShallowWithContext } from 'test/utils'; import Chart, { styleSheet } from './Chart'; describe('<Chart />', () => { let shallow; let classes; before(() => { shallow = createShallowWithContext(); ...
JavaScript
0
@@ -751,21 +751,21 @@ classes. -Chart +paper ), true, @@ -778,29 +778,29 @@ ld have the -Chart +paper class');%0A
f0bab6b112f72e247a9dfd5fcbd3c32b4c566f0c
use camelCase
web-app/src/components/NotFound/index.js
web-app/src/components/NotFound/index.js
import React, { Component } from 'react'; import crest_background from '../../theme/flying/crest_red_background_no_shadow.svg'; import crest_bird_alone from '../../theme/flying/crest_bird_alone.svg'; import crest_bird_flying from '../../theme/flying/crest_bird_flying.svg'; import './NotFound.css'; import classNames fr...
JavaScript
0.998173
@@ -43,26 +43,25 @@ import crest -_b +B ackground fr @@ -128,31 +128,29 @@ import crest -_bird_a +BirdA lone from '. @@ -198,31 +198,29 @@ import crest -_bird_f +BirdF lying from ' @@ -881,18 +881,17 @@ c=%7Bcrest -_b +B ackgroun @@ -1016,31 +1016,29 @@ n%22src=%7Bcrest -_bird_a +BirdA lone%7D alt=%22C @@ -11...
bf332b85b9d27186a6f5e313757f76fb9adee17b
Add summary delegation to reporters.
src/pipeline/summary.js
src/pipeline/summary.js
module.exports = () => arguments
JavaScript
0
@@ -15,19 +15,113 @@ = ( -) =%3E arguments +type, results) =%3E %7B%0A const reporter = require(%60../reporters/$%7Btype%7D-reporter%60)%0A return reporter(results)%0A%7D %0A
6d25d3793d5b9148bca0d3aba30fc3f99c81315f
use slugs for anchors in markdown reporter
lib/reporters/markdown.js
lib/reporters/markdown.js
/** * Module dependencies. */ var Base = require('./base'); /** * Expose `Markdown`. */ exports = module.exports = Markdown; /** * Initialize a new `Markdown` reporter. * * @param {Runner} runner * @api public */ function Markdown(runner) { Base.call(this, runner); var self = this , stats = this...
JavaScript
0
@@ -55,16 +55,48 @@ ./base') +%0A , utils = require('../utils') ;%0A%0A/**%0A @@ -524,16 +524,81 @@ +level;%0A + console.log('%3Ca name=%22' + utils.slug(suite.title) + '%22 /%3E');%0A proc @@ -797,36 +797,26 @@ -process.stdout.write('%5Cn ' + +console.log('%25s.', tes @@ -826,16 +826,8 @@ itle - ...
4789636f443fc9f15024d1864469805e9f076ba8
fix only working once
lib/meteor-template-generator-view.js
lib/meteor-template-generator-view.js
'use babel'; import fs from 'fs-plus'; export default class MeteorTemplateGeneratorView { constructor() { const div = document.createElement('div'); div.classList.add('meteor-template-generator'); const editor = document.createElement('atom-text-editor'); editor.setAttribute('mini', true); div...
JavaScript
0
@@ -660,24 +660,47 @@ s.attach();%0A + this.initialize();%0A %7D%0A //%0A / @@ -1279,12 +1279,12 @@ his. -elem +cont ent,
cdd4e204faf88cf640a6d4eeb0f252b3e0c0526e
Fix GestureEventListeners generated externs name.
lib/mixins/gesture-event-listeners.js
lib/mixins/gesture-event-listeners.js
/** @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://...
JavaScript
0
@@ -1160,17 +1160,16 @@ /%0Aconst -_ GestureE @@ -2757,17 +2757,16 @@ Somehow -_ GestureE @@ -2983,21 +2983,15 @@ */%0A -export const +_ Gest @@ -3042,17 +3042,16 @@ return -_ GestureE @@ -3080,8 +3080,67 @@ ss);%0A%7D;%0A +%0Aexport %7B_GestureEventListeners as GestureEventListeners%7D;%0A
bc94cb1396a275e961e2845c983c837857ea30b6
Validate users length.
backend/sockets/game.js
backend/sockets/game.js
"use strict"; var error = require('debug')('error'); var generate = require('./base'); var verbose = require('debug')('verbose:game'); var games = {}; var incrementId = 0; // constants var TurnLength = 15; // in seconds var TeamSize = 3; var NumberOfTeam = 2; function Game(id, users, room) { verbose('Game() const...
JavaScript
0.000008
@@ -414,37 +414,106 @@ %0A%0A -// TODO:validate users.length +if (users.length !== TeamSize * NumberOfTeam) %7B%0A error('invaild users.length');%0A return;%0A %7D %0A%0A
def58b3dbb01965478db353fc520f98592ae6616
Support JSX files. Fixes #6
lib/standard-formatter.js
lib/standard-formatter.js
/*global atom*/ var pkgConfig = require('pkg-config') module.exports = { style: null, formatters: {}, activate: function () { this.commands = atom.commands.add('atom-workspace', 'standard-formatter:format', this.format.bind(this)) this.editorObserver = atom.workspace.observeTextEditors(this.handleEvent...
JavaScript
0
@@ -47,16 +47,43 @@ config') +%0Avar path = require('path') %0A%0Amodule @@ -127,16 +127,162 @@ ers: %7B%7D, +%0A fileTypes: %5B'.js', '.jsx'%5D,%0A%0A fileSupported: function (file) %7B%0A var ext = path.extname(file)%0A return !!~this.fileTypes.indexOf(ext)%0A %7D, %0A%0A acti @@ -2794,56 +2794,8 @@ rn...
b1ffbc05edd9cf840927f4c85af925a881bce3ff
remove useless console.log
lib/translations/index.js
lib/translations/index.js
var fs = require('fs') var path = require('path') var defaults = require('defaults-deep') var t = require('t-component') /** * Generate an Array with all the available localizations */ var available = fs.readdirSync(path.join(__dirname, 'lib')).map(function (p) { return p.replace('.json', '') }) console.log('=====...
JavaScript
0.000002
@@ -298,109 +298,8 @@ )%0A%7D) -%0Aconsole.log('=======================')%0Aconsole.log(available)%0Aconsole.log('=======================') %0A%0Ava
f8d197825869f25c0918eacb28ad54262277f977
Provide string representation props for Boolean
lib/types-base/boolean.js
lib/types-base/boolean.js
'use strict'; var d = require('es5-ext/lib/Object/descriptor') , extend = require('es5-ext/lib/Object/extend-properties') , Base = require('./base') , BooleanType; module.exports = BooleanType = Base.$create('Boolean'); BooleanType._$construct.$setValue(Boolean); BooleanType._is.$setValue(function (valu...
JavaScript
0.99942
@@ -19,16 +19,20 @@ d + = requir @@ -77,16 +77,20 @@ extend + = requir @@ -142,16 +142,20 @@ Base + = requir @@ -165,16 +165,109 @@ ./base') +%0A , StringType = require('./string')%0A , define = require('../_internals/define').define %0A%0A , Bo @@ -865,33 +865,454 @@ lue( -Bool...
45a5bd8bfab8e4ec7ce0e3a9f6b685b1f4be58ef
Align the images horizontally. [ci skip]
lib/unexpectedResemble.js
lib/unexpectedResemble.js
var imageType = require('image-type'), getTemporaryFilePath = require('gettemporaryfilepath'), _ = require('underscore'), fs = require('fs'), resemble; try { resemble = require('resemble'); } catch (e) { resemble = require('resemblejs'); } module.exports = { name: 'unexpected-resemble', ...
JavaScript
0.0002
@@ -2167,16 +2167,267 @@ %7D;%0A%0A + var longestLabelLength = Object.keys(imageByName).reduce(function (longestSeenLabelLength, label) %7B%0A return Math.max(longestSeenLabelLength, label.length);%0A %7D, 0);%0A%0A @@ -...
7bd89774265209bf3f97b1b3168febff5fd2dce2
Send 0 values to statsd in debug mode
lib/windshaft/profiler.js
lib/windshaft/profiler.js
var debug = 0; function Profiler(opts) { if ( opts.statsd_client ) { this.statsd_client = opts.statsd_client; } this.events = []; this.taskcount = 0; } Profiler.prototype.done = function(what) { var now = Date.now(); if ( debug ) { console.log("prf " + now + " done " + what); } var item = { na...
JavaScript
0
@@ -1807,32 +1807,41 @@ if ( elapsed +%7C%7C debug ) %7B%0A va @@ -2275,32 +2275,41 @@ if ( elapsed +%7C%7C debug ) %7B%0A var @@ -2873,16 +2873,25 @@ elapsed +%7C%7C debug ) %7B%0A
1e8c481c3027ff9cb1a09431259019068e828b04
remove log from json-editor TASK-2253
src/webcomponents/commons/json-editor.js
src/webcomponents/commons/json-editor.js
/* * Copyright 2015-2016 OpenCB * * 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 ...
JavaScript
0.000048
@@ -3620,104 +3620,8 @@ ) %7B%0A - console.log(%22onChange%22, %7BupdatedContent, previousContent, contentErrors, patchResult%7D);%0A
2cbc24c30b2cb082cb776f176d46e5ba7b6995e2
Enable "remember me"
config/default.js
config/default.js
const project_name = 'nidarholm'; const serializers = { req: (req) => ({ method: req.method, url: req.url, }), res: (res) => ({ statusCode: res.statusCode, }), }; module.exports = { auth: { facebook: { clientId: '291636897704096', clientSecre...
JavaScript
0.000015
@@ -913,32 +913,59 @@ ck',%0A %7D,%0A + remember_me: true,%0A %7D,%0A bunya
f38dd4434356f2b0cbd355599ba74ba3bb4866ae
Include reason for replication failure in _replicator doc
script/test/replicator_db_invalid_filter.js
script/test/replicator_db_invalid_filter.js
// 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 writing, software // distributed un...
JavaScript
0
@@ -1552,24 +1552,180 @@ tion_state); +%0A TEquals(%22Could not open source database %60couch_foo_test_db%60: %7Bdb_not_found,%3C%3C%5C%22couch_foo_test_db%5C%22%3E%3E%7D%22,%0A repDoc1._replication_state_reason); %0A%0A popula @@ -2131,16 +2131,187 @@ _state); +%0A TEquals(%22Couldn't open docum...
5c06b60b12006ff9fc3cf423152f664280f42ca1
Remove export.default
scripts/update-export-default-typescript.js
scripts/update-export-default-typescript.js
#!/usr/bin/env node const fs = require('fs-extra'); const path = require('path'); const glob = require('glob'); const load = require('load-json-file'); const camelcase = require('camelcase'); // Update index.js export default module (Typescript compatible) glob.sync(path.join(__dirname, '..', 'packages', 'turf-*', 'i...
JavaScript
0.000001
@@ -1418,31 +1418,39 @@ x.includes(' +module. export - +s. default') && @@ -1450,29 +1450,75 @@ lt') - && !index.includes(' +) %7B%0A console.log(name);%0A // throw new Error('invalid modu @@ -1539,47 +1539,120 @@ ault -')) %7B + =', name); %0A +%7D%0A -throw new Error('missing +// Rem...
a84f76043cd16166afc2242f07184b4c2f2c2967
Add reject error handler to import wrapper
server/build/babel/plugins/handle-import.js
server/build/babel/plugins/handle-import.js
// Based on https://github.com/airbnb/babel-plugin-dynamic-import-webpack // We've added support for SSR with this version import template from 'babel-template' import syntax from 'babel-plugin-syntax-dynamic-import' import { dirname, relative, resolve } from 'path' const TYPE_IMPORT = 'Import' const buildImport = (a...
JavaScript
0
@@ -1181,32 +1181,40 @@ %7D%0A %7D, + reject, 'chunks/$%7Bargs.
f4c3c4005d8a53fcd727e255dc64f424f729ad90
support react v0.13.x
src/TextareaAutosize.js
src/TextareaAutosize.js
import React from 'react'; import autosize from 'autosize'; const UPDATE = 'autosize:update', DESTROY = 'autosize:destroy', RESIZED = 'autosize:resized'; const TextareaAutosize = React.createClass({ propTypes: { onResize: React.PropTypes.func }, getDefaultProps() { return { rows: 1 }; ...
JavaScript
0
@@ -309,32 +309,176 @@ 1%0A %7D;%0A %7D,%0A%0A + getTextareaDOMNode() %7B%0A return this.refs.textarea.nodeType === 1 ?%0A this.refs.textarea :%0A this.refs.textarea.getDOMNode();%0A %7D,%0A%0A componentDidMo @@ -503,29 +503,36 @@ ze(this. -refs.t +getT extarea +DOMNode() );%0A i @@ -568,2...
3b8647f3bdc33b75ea87adf0a3ddb7076a773dc7
Remove writable flag because it's incompatible with getters and setters
JoiModel.js
JoiModel.js
require('babel-register'); const Joi = require('joi'); const util = require('util'); const _ = require('lodash'); const hashAString = require('string-hash'); const schema = Joi.object().keys({ a: Joi.boolean().valid(true), b: Joi.alternatives().try([ Joi.string().regex(/^a/), Joi.string().valid...
JavaScript
0
@@ -1561,36 +1561,8 @@ ue,%0A - writable: true,%0A
aeabcfa4a246adc952bd8b1314ee7bd950b41807
Disable debug
src/app/index.config.js
src/app/index.config.js
export function config ($locationProvider, $logProvider, toastrConfig) { 'ngInject'; // Enable log $logProvider.debugEnabled(true); // Set options third-party lib toastrConfig.allowHtml = true; toastrConfig.timeOut = 3000; toastrConfig.positionClass = 'toast-top-right'; toastrConfig.preventDuplicates =...
JavaScript
0.000003
@@ -124,19 +124,20 @@ Enabled( -tru +fals e);%0A%0A /
979717d7e60ccd59d886e05b32acdb6ed3de5636
update settings-tab styling && remove compiler option/action (that has been moved to the compile tab)
src/app/settings-tab.js
src/app/settings-tab.js
var yo = require('yo-yo') // -------------- styling ---------------------- var csjs = require('csjs-inject') var styleGuide = require('./style-guide') var styles = styleGuide() var css = csjs` .settingsTabView { padding: 2%; display: flex; } .info extends ${styles.infoTextBox} { margin-bottom: 2em; ...
JavaScript
0
@@ -309,24 +309,52 @@ ottom: 2em;%0A + word-break: break-word;%0A %7D%0A .crow @@ -483,1297 +483,239 @@ %7D%0A - .button extends $%7Bstyles.button%7D %7B%0A background-color: #C6CFF7;%0A width: 100%25;%0A align-self: center;%0A text-align: -webkit-center;%0A %7D%0A .col1 extends $%7Bstyles.ti...
df19d00b8758a88018fe8eca124c134a440c3534
add a new test for the nullSpace() operator
src/arithmetic/types.js
src/arithmetic/types.js
const base = require('./base'); const mats = require('./matrices'); export const integerMethods = base.arithmetic().register( require('./integers').methods() ); export const integers = integerMethods.ops(); export const rationalMethods = integerMethods.register( require('./fractions').methods(integers, ['Integer...
JavaScript
0.000002
@@ -2881,16 +2881,44 @@ 9,1%5D%5D);%0A + testNullSpace(%5B%5B0,2,0%5D%5D);%0A %0A%0A cons
6ca934b7d8c14f365243178bd393dd7f9b5bd76b
Reduce max of recentlyVisited to 5
server/services/recently-visited-limiter.js
server/services/recently-visited-limiter.js
// Service: Limits LRU recentlyVisited lists up to max 10 (configurable) items 'use strict'; var ensureNaturalNumber = require('es5-ext/object/ensure-natural-number-value') , startsWith = require('es5-ext/string/#/starts-with') , debug = require('debug-ext')('recently-visited-limiter') , ...
JavaScript
0.999999
@@ -48,18 +48,17 @@ to max -10 +5 (config @@ -571,10 +571,9 @@ ) : -10 +5 ;%0A%09s
49667f12bfe10d5e13529761b6268ae6623d11f9
fix URL routing
examples/booklog-jollen/index.js
examples/booklog-jollen/index.js
/** * Module dependencies. */ var express = require('../../lib/express'); // Path to our public directory var pub = __dirname + '/public'; // setup middleware var app = express(); app.use(express.static(pub)); var mongoose = require('mongoose'); mongoose.connect('mongodb://localhost/booklog2'); var db = mongoo...
JavaScript
0.000003
@@ -1414,23 +1414,16 @@ p.get('/ -welcome ', funct
c73983658a0141037f7951cfac068144d909e321
Fix helper
shuriken-web/imports/ui/submissionStatus.js
shuriken-web/imports/ui/submissionStatus.js
'use strict'; // APIs and collections. import {Evaluations} from '../api/evaluations.js'; // Libs. import {Template} from 'meteor/templating'; // UI fragments. import './submissionStatus.html'; // Requires. const moment = require('moment'); const _ = require('lodash'); const should = require('should'); /** * #### Co...
JavaScript
0.000002
@@ -5700,32 +5700,85 @@ aluation(this);%0A + if (!_.isNull(evaluation.kueProgressData)) %7B%0A return eva @@ -5820,16 +5820,61 @@ th %3E 0;%0A + %7D else %7B%0A return false;%0A %7D%0A %7D el
1fe0d92603486de6057a22180c9ac798dd4cc665
resolve d3 in $timeout(), avoids problems with $apply() during active $digest()
sirepo/package_data/static/js/angular-d3.js
sirepo/package_data/static/js/angular-d3.js
// code from http://www.ng-newsletter.com/posts/d3-on-angular.html angular.module('d3', []) .factory('d3Service', function($document, $q, $rootScope) { var d = $q.defer(); function onScriptLoad() { // Load client in the browser $rootScope.$apply(function() { d.resolve(window...
JavaScript
0.000005
@@ -137,25 +137,23 @@ t, $q, $ -rootScope +timeout ) %7B%0A @@ -269,24 +269,15 @@ $ -rootScope.$apply +timeout (fun
f6c509c1d2ea65548ecb99c51d77a0c9147553a6
index git commit -m index
workspace/index.ios.js
workspace/index.ios.js
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class workspace extends Component { render() { return ( <View style={styles.container...
JavaScript
0.000005
@@ -86,984 +86,34 @@ */%0A%0A -import React, %7B Component %7D from 'react';%0Aimport %7B%0A AppRegistry,%0A StyleSheet,%0A Text,%0A View%0A%7D from 'react-native';%0A%0Aexport default class workspace extends Component %7B%0A render() %7B%0A return (%0A %3CView style=%7Bstyles.container%7D%3E%0A %3...
1beea31db15b6dddc5399de1d43e6f9df771ad4f
optimize invalidations
src/reducers/pickers.js
src/reducers/pickers.js
import { combineReducers } from 'redux'; import { REQUEST_PROGRAMS, RECEIVE_PROGRAMS, REQUEST_GROUPS, RECEIVE_GROUPS, SET_YEAR, SET_GROUP, SET_PROGRAM, SET_STUDENT } from '~/constants/actions'; function studentSelection(state = '', { type, student }) { switch (type) { case SET_STUDENT: ...
JavaScript
0.000002
@@ -448,70 +448,86 @@ pe, -...values %7D) %7B%0A switch (type) %7B%0A case SET_YEAR:%0A +year, program, group %7D) %7B%0A if (type === SET_YEAR && year !== state.year) %7B%0A @@ -549,25 +549,20 @@ .state, -...values +year , progra @@ -581,36 +581,34 @@ up: null %7D;%0A - +%7D%0A ...
593668adb390ebadd9648d7de06a8874a39ec51a
Update staging.js
config/staging.js
config/staging.js
exports.config = { common: { database: { url: process.env.NODE_API_DB_URL, host: process.env.NODE_API_DB_HOST, port: process.env.NODE_API_DB_PORT, database: process.env.NODE_API_DB_NAME, username: process.env.NODE_API_DB_USERNAME, passw...
JavaScript
0.000001
@@ -496,9 +496,10 @@ %0A %7D%0A%7D +; %0A
fecb36d131b57b4b0aade288efb5cfec6791b9f6
Update js dist
dist/siteshot.js
dist/siteshot.js
var SiteShot; SiteShot = (function() { function SiteShot() { var parseString, phantom, _; this.fs = require('fs'); if (process.argv.indexOf('config') !== -1) { this.config(); } else { this.config = require('../siteshot.json'); parseString = require('xml2js').parseString; _ = r...
JavaScript
0.000001
@@ -64,16 +64,31 @@ %0A var + async, mkdirp, parseSt @@ -92,16 +92,22 @@ eString, + path, phantom @@ -107,16 +107,21 @@ phantom, + url, _;%0A @@ -393,24 +393,148 @@ 'phantom');%0A + async = require('async');%0A url = require('url');%0A path = require('path');%0A mkdirp = require('mk...
009152a4c574115a5bf47bace22c0a1d1e7bfb6f
Fix not render null, undefined and boolean when pass on render
src/renderers/render.js
src/renderers/render.js
import { buildComponentFromVNode } from '../isomorphic/createComponent'; let component; /** * @public * @param vnode * @param parent */ const render = (vnode, parent) => { if (isNullOrBoolean(vnode)) vnode = ''; if (isString(vnode) || isNumber(vnode)) return document.createTextNode(vnode); if (isFunction(vno...
JavaScript
0.000001
@@ -81,16 +81,34 @@ mponent; +%0Alet initialVnode; %0A%0A/**%0A * @@ -185,24 +185,246 @@ arent) =%3E %7B%0A +%09initialVnode = vnode;%0A%0A%09let returnRender = irender(vnode, initialVnode);%0A%0A%09if (parent) parent.appendChild(returnRender);%0A%0A%09return returnRender;%0A%7D%0A%0A/**%0A * Internal of render.%0A ...
81b0d268bc717b4fcc5c792b77fcc8f333f44fbd
remove dgeni for now
Gulpfile.js
Gulpfile.js
var gulp = require('gulp'); var karma = require('karma').server; var Dgeni = require('dgeni'); /** * Run test once and exit */ gulp.task('test', function (done) { karma.start({ configFile: __dirname + '/karma.conf.js', singleRun: true }, done); }); gulp.task('docs', function () { var d...
JavaScript
0
@@ -61,38 +61,8 @@ ver; -%0Avar Dgeni = require('dgeni'); %0A%0A/* @@ -245,135 +245,8 @@ ;%0A%0A%0A -%0Agulp.task('docs', function () %7B%0A var dgeni = new Dgeni(%5Brequire('./docs/dgeni-conf')%5D);%0A return dgeni.generate();%0A%7D);%0A%0A%0A gulp
18b0830fef4d1aaa7e215bbba1edbde52be3769f
remove undefined env task
Gulpfile.js
Gulpfile.js
"use strict"; var fs = require("fs"); var copy = require("gulp-copy"), gulp = require("gulp"), jshint = require("gulp-jshint"), rename = require("gulp-rename"), replace = require("gulp-replace"), run = require("gulp-run"), sourcemaps = ...
JavaScript
0.999677
@@ -3471,18 +3471,8 @@ , %5B%22 -set-env%22,%22 temp
4aaae362eafd2307c8abaffc3b8b284d82af692e
Add render mode enum to generated docs.
Gulpfile.js
Gulpfile.js
var gulp = require('gulp') var autoprefixer = require('gulp-autoprefixer') var browserify = require('browserify') var buffer = require('vinyl-buffer') var concat = require('gulp-concat') var del = require('del') var fs = require('fs') var KarmaServer = require('karma').Server var minifyCSS = require('gulp-minify-css')...
JavaScript
0
@@ -1548,16 +1548,52 @@ Size.ts' +,%0A './src/render/RenderMode.ts' %0A %5D,%0A
e0827580d7e1c21a578bb818c83eb8ebf5490803
add cron
geoDownload.js
geoDownload.js
(function() { var fs = require('fs'), Sails = require('sails'), AdmZip = require('adm-zip'), tempFolder = 'tempFolder/', http = require("http"), fs = require('fs'), rimraf = require('rimraf'), async = require('async'), callDataSet = [], csv = require('fast-csv'), ...
JavaScript
0.000002
@@ -4306,32 +4306,88 @@ nsole.log(err);%0A + sails.lower()%0A process.exit(1)%0A %7D);%0A
e038ed39f3b7eddb59d3c632df64df5e61249f51
Fix conversion that kept medical devices counts from showing.
lists/veteran-full-csv.js
lists/veteran-full-csv.js
function(head, req) { var row; start({ "headers": { "Content-Type": "text/csv", "Content-disposition": "attachment;filename=VeteranInfo.csv" } }); var headerNeeded = true; while(row = getRow()) { r = row.value; result = { app_date: r.app_date, ...
JavaScript
0
@@ -2023,250 +2023,8 @@ e,%0D%0A - ac_addr_street: r.alt_contact.address.street,%0D%0A ac_addr_city: r.alt_contact.address.city,%0D%0A ac_addr_state: r.alt_contact.address.state,%0D%0A ac_addr_zip: r.alt_contact.address.zip,%0D%0A @@ -2638,60 +2638,8 ...
0518b2aa0d78a95e51fbb7d8a650dc9f1b5c2649
remove activeOpacity+highlight from Thumbnail
source/views/streaming/webcams/thumbnail.js
source/views/streaming/webcams/thumbnail.js
// @flow import * as React from 'react' import {StyleSheet, View, Text, Image} from 'react-native' import {Touchable} from '@frogpond/touchable' import * as c from '@frogpond/colors' import {images as webcamImages} from '../../../../images/webcams' import {trackedOpenUrl} from '@frogpond/open-url' import LinearGradien...
JavaScript
0
@@ -1379,33 +1379,8 @@ ble%0A -%09%09%09%09%09activeOpacity=%7B0.7%7D%0A %09%09%09%09
8c86562a38bc25a591a9187c71b857eb0202040b
update async/concurrent
src/async/concurrent.js
src/async/concurrent.js
// lightweight parallel async iterators: // [each, reduce, map, filter, reject, detect, every, some, concat, times, sort, parallel] // adpoted from: https://github.com/aliaksandr-pasynkau/async-iterate function asyncEachArray (arr, iterator, done) { if (!arr || !arr.length) return done() var idx = -1 var len ...
JavaScript
0
@@ -2731,325 +2731,8 @@ %0A%7D%0A%0A -function asyncReduceSort (obj, result, iterator, done) %7B%0A asyncEach(obj, function (v, k, done) %7B%0A iterator(result, v, k, function (err, value) %7B%0A result = value%0A done(err)%0A %7D)%0A %7D, function (err) %7B%0A done(err, _map(result.sort(compara...
73c9fa85a1e985782f307883631839a015e11b89
fix uploadFolder bug
plugins/Files/js/loader.js
plugins/Files/js/loader.js
'use strict'; /* * fileLoader namespace module: * fileLoader contains the logic for uploading and loading files */ // Node modules const fs = require('fs'); const path = require('path'); const tools = require('./uiTools'); const siad = require('sia.js'); // Whether to upload files with autorenew feature or some...
JavaScript
0
@@ -1833,16 +1833,27 @@ (functs, + filePaths, siapath
5d80633206ffbe019a925d83a76f6eb94eb0c5c2
add watchSendSiacoin saga to middleware
plugins/Wallet/js/index.js
plugins/Wallet/js/index.js
// index.js: main entrypoint for the Sia-UI wallet plugin. 'use strict' import React from 'react'; import ReactDOM from 'react-dom'; import createSagaMiddleware from 'redux-saga'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import rootReducer from './js/reducers/index...
JavaScript
0
@@ -938,16 +938,60 @@ ddress); +%0AsagaMiddleware.run(sagas.watchSendSiacoin); %0A%0A// Ren
fce2272b6fe337fa013a63563c67b1cb1057c7e5
add useless "fetch" handler to meet installable criteria
www/notification-sw.js
www/notification-sw.js
// This will be called only once when the service worker is activated. self.addEventListener('activate', function () { console.log('RP Service Worker installed!') }) self.addEventListener('message', function (event) { console.log(event.data) if (event.data.action === 'setup') { setupSubscription(event.data....
JavaScript
0.000001
@@ -158,24 +158,179 @@ lled!')%0A%7D)%0A%0A +self.addEventListener('fetch', event =%3E %7B%0A // not useful, but required to meet %22installable%22 criteria%0A console.log(%60fetching $%7Bevent.request.url%7D%60);%0A%7D)%0A%0A self.addEven
96cc8a957f106ce1f51b97f07489953a6c1fbb67
Declare images precompiled
app/assets/config/manifest.js
app/assets/config/manifest.js
/* eslint-disable spaced-comment */ //= link application.css
JavaScript
0.000003
@@ -29,16 +29,45 @@ ment */%0A +//= link_directory ../images%0A //= link
3ca22640744353d6576cf7435c1d08342811a729
change zoom condition
app/assets/javascripts/map.js
app/assets/javascripts/map.js
$(document).on("ready", function() { L.mapbox.accessToken = 'pk.eyJ1IjoibXR0aHdncnkiLCJhIjoibW82OTJicyJ9.ykVo84aS5xtK3jPy_iX6Sg'; var map = L.mapbox.map('map', 'mtthwgry.bcb9b827', { zoomControl: false }) .setView([37.771167, -122.402504], 12); var featureLayer = L.mapbox.featureLayer().loadURL('/all_location...
JavaScript
0
@@ -164,24 +164,21 @@ , 'm -tthwgry.bcb9b827 +apbox.emerald ', %7B @@ -1732,31 +1732,8 @@ %3C 8 - && usersOn.length %3C= 1 ) %7B%0A
6c95aa40a90f779cf5772f51696bc17337bd93cd
Update canvas.js
src/client/js/canvas.js
src/client/js/canvas.js
var global = require('./global'); class Canvas { constructor(params) { this.directionLock = false; this.target = global.target; this.reenviar = true; this.socket = global.socket; this.directions = []; var self = this; this.cv = document.getElementById('cvs')...
JavaScript
0.000001
@@ -26,16 +26,53 @@ lobal'); +%0Avar joystick = new VirtualJoystick() %0A%0Aclass @@ -1008,32 +1008,224 @@ hInput, false);%0A + //Register joystick movements%0A this.cv.addEventListener (joystick.up(), function (event)%7B%0A %09self.reenviar = true;%0A self.directionUp (event);%0A ...
1910bb0f6f9da8f90cf0cba9a16c98975144b651
fix link typo
app/components/About/index.js
app/components/About/index.js
/** * * About * */ import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Paper from 'material-ui/Paper'; import Grid from 'material-ui/Grid'; import { Link } from 'react-router'; import slacLogo from 'components/Header/SLAC_Logo.png'; import doeLogo ...
JavaScript
0.000001
@@ -5219,17 +5219,16 @@ /profile -%7D '%7D%0A
3512e40c1af015fb32af911778c2b73d351e1997
set optional mapping function as data attribute and pull JSON formatting into function
app/components/export-tool.js
app/components/export-tool.js
import Ember from 'ember'; export default Ember.Component.extend({ attributeBindings: ['data', 'mappingFunction'], processedData: Ember.computed( 'data', { get() { var dataArray = this.get('data'); if (Ember.isPresent(dataArray)) { console.log(dataArray); ...
JavaScript
0
@@ -155,19 +155,38 @@ 'data', + 'mappingFunction', %7B%0A - @@ -239,16 +239,79 @@ data');%0A + var mappingFunction = this.get('mappingFunction');%0A @@ -344,16 +344,52 @@ taArray) + && Ember.isPresent(mappingFunction) ) %7B%0A @@ -412,25 +412,31 @@ ole.log( -dataArray +mapping...
39b57da42b1f5f98f4db327df5a1f09d3449d289
Remove a debugging trace.
src/collection/redis.js
src/collection/redis.js
import Bluebird, {coroutine} from 'bluebird'; import Collection, {ModelAlreadyExists} from '../collection'; import difference from 'lodash.difference'; import filter from 'lodash.filter'; import forEach from 'lodash.foreach'; import getKey from 'lodash.keys'; import isEmpty from 'lodash.isempty'; import map from 'lodas...
JavaScript
0.000003
@@ -1704,25 +1704,8 @@ %7D) -.tap(console.log) ;%0A
77484ccdf3ea41eb660c01cc50877dbf50566507
Remove duplicate definition of path variable
src/command-line/add.js
src/command-line/add.js
var ClientManager = new require("../clientManager"); var bcrypt = require("bcrypt"); var fs = require("fs"); var program = require("commander"); var mkdirp = require("mkdirp"); var Helper = require("../helper"); program .command("add <name>") .description("Add a new user") .action(function(name) { try ...
JavaScript
0.00002
@@ -179,43 +179,51 @@ );%0D%0A -var Helper = require(%22../helper%22);%0D +%0Aconst HOME = process.env.HOME + %22/.shout%22; %0A%0D%0Ap @@ -315,26 +315,16 @@ ame) %7B%0D%0A -%09%09try %7B%0D%0A%09 %09%09var pa @@ -356,24 +356,32 @@ th(%22users%22); +%0A%09%09try %7B %0D%0A%09%09%09mkdirp. @@ -580,56 +580,8 @@ %...
e0f5a29eb0d2bd397b5c5abf4f0ab0de68f89ef2
Migrate to new config layout
src/commands/release.js
src/commands/release.js
const path = require('path') const chalk = require('chalk') const { prompt } = require('inquirer') const Listr = require('listr') const Command = require('../Command') const readProjectConfiguration = require('../tasks/readProjectConfiguration') const scanPluginsVersion = require('../tasks/scanPluginsVersion') const cr...
JavaScript
0
@@ -1500,20 +1500,16 @@ p(plugin -Name =%3E (%7B%0A @@ -1531,17 +1531,18 @@ : plugin -N +.n ame,%0A @@ -1593,17 +1593,18 @@ $%7Bplugin -N +.n ame%7D%60),%0A
9c1cecbb7d747f7d03416912bf0eff4309996c45
disable for now
src/common/dev-tools.js
src/common/dev-tools.js
module.exports = process.env.NODE_ENV !== 'production' && require('./dev-tools.dev')
JavaScript
0
@@ -9,16 +9,25 @@ xports = + false // process
14cb0ea3005694e1453e80ae80e9a286cd0c3acb
Update core.client.routes.js
public/modules/core/config/core.client.routes.js
public/modules/core/config/core.client.routes.js
'use strict'; // Setting up route angular.module('core').config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { // Redirect to home view when route not found $urlRouterProvider.otherwise('/'); // Home state routing $stateProvider. state('home', { url: '/', temp...
JavaScript
0.000002
@@ -671,25 +671,24 @@ %09url: '/item -- form',%0A%09%09%09te
785458b5b04b3e88c0f04ef772bf350553d1ae67
Remove passwords
e2e/helpers/authenticate.js
e2e/helpers/authenticate.js
'use strict'; const roles = { EMPLOYEE: { password: process.env.PASSWORD_EMPLOYEE || 'Winterdag2016', username: process.env.USERNAME_EMPLOYEE || 'atlas.employee@amsterdam.nl' }, EMPLOYEE_PLUS: { password: process.env.PASSWORD_EMPLOYEE_PLUS || 'Winterdag2016', username: proce...
JavaScript
0.000149
@@ -87,35 +87,16 @@ EMPLOYEE - %7C%7C 'Winterdag2016' ,%0A @@ -254,27 +254,8 @@ PLUS - %7C%7C 'Winterdag2016' ,%0A
ecbb6626e5c8ca4ed19d5eb49caf4f90a41f5833
Change prefix to '?'
Commando.js
Commando.js
global.Promise = require('bluebird'); const commando = require('discord.js-commando'); const oneLine = require('common-tags').oneLine; const path = require('path'); const winston = require('winston'); const Database = require('./postgreSQL/postgreSQL'); const config = require('./settings'); const database = new Data...
JavaScript
0.002456
@@ -401,13 +401,9 @@ x: ' -sir, +? ',%0A%09
4ad6ff1ffa55320236c0596ecda35db95ba1d24a
update json limit
HUla/app.js
HUla/app.js
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); global._ = global._ || require('underscore'); var routes = require('./routes/index'); // var contra...
JavaScript
0.000001
@@ -920,16 +920,30 @@ er.json( +%7Blimit: '5mb'%7D ));%0Aapp.
5cf46a28efec1ffd12edaa21de18860c7e6d4591
Set the install task to a dependency of build.
Gulpfile.js
Gulpfile.js
'use strict'; var gulp = require('gulp'), addsrc = require('gulp-add-src'), concat = require('gulp-concat'), cssnano = require('gulp-cssnano'), del = require('del'), filter = require('gulp-filter'), htmlmin = require('gulp-htmlmin'), imagemin = require('gulp-imagemin'), install = require('gulp-install'), jshi...
JavaScript
0
@@ -778,16 +778,27 @@ 'clean', + 'install', 'jshint
895ce9963ee3c23ffd25f032ac0806d23f55be86
fix up gulp build. watch processes killed for bundler
Gulpfile.js
Gulpfile.js
'use strict'; var gulp = require('gulp'); var gutil = require('gulp-util'); var source = require('vinyl-source-stream'); var watchify = require('watchify'); var mergeStream = require('merge-stream'); var objectAssign = require('object-assign'); var browserify = require('browserify'); var reactify = require('reactify')...
JavaScript
0.000001
@@ -1328,32 +1328,141 @@ ', function() %7B%0A + // watchify watch handles must be closed, otherwise gulp task will hang,%0A // thus the .on('end', ...)%0A return merge @@ -1469,16 +1469,20 @@ Stream(%0A + @@ -1510,24 +1510,28 @@ (),%0A + + viewerBundle @@ -1546,15 +1546,139 @@ ...
ee59d82849dd72f593d1d39c0c91b073a3f63e92
Add `"type": "module"` to `@apollo/client/core`
config/prepareDist.js
config/prepareDist.js
// The Apollo Client source that is published to npm is located in the // "dist" directory. This utility script is called when building Apollo Client, // to make sure the "dist" directory is prepared for publishing. // // This script will: // // - Copy the current root package.json into "dist" after adjusting it for //...
JavaScript
0.999999
@@ -2840,16 +2840,70 @@ ffects,%0A + ...dirs.includes('core') && %7B type: %22module%22 %7D,%0A %7D, n
91e3c6bddf1345970b7e2f8a34a487ccf9dc5224
Add code framework to return data from test
sashimi-webapp/test/database/sqlCommands_test.js
sashimi-webapp/test/database/sqlCommands_test.js
/* * Test-unit framework for sqlCommands.js */ const assert = require('assert'); const vows = require('vows'); const Sql = require('../../src/database/sql-related/sqlCommands'); const sqlCommands = new Sql(); const isNotEmptyTable = function isNotEmptyTable(stringResult) { return stringResult !== undefined; };...
JavaScript
0.000003
@@ -315,16 +315,94 @@ ed;%0A%7D;%0A%0A +const returnTableToMemory = function(tableData) %7B%0A // do nothing for now%0A%7D;%0A%0A const sq @@ -496,24 +496,79 @@ teTable() %7B%0A + let preData = '';%0A let isPreDataExists = false;%0A try %7B%0A @@ -628,18 +628,93 @@ %7B%0A -// +preData = sqlComma...
a2981360a9531458ce590eb8c6144fbd64848d90
Add parser to ts overrides
configs/typescript.js
configs/typescript.js
module.exports = { plugins: ['@typescript-eslint'], overrides: [ { files: ['**/*.ts', '**/*.tsx'], rules: { // typescript will handle this so no need for it 'no-undef': 'off', 'no-unused-vars': 'off', 'no-use-before-define': 'off', '@typescript-eslint/no-unus...
JavaScript
0
@@ -106,16 +106,59 @@ .tsx'%5D,%0A + parser: '@typescript-eslint/parser',%0A ru
0aa2e65b17c3d442ba3b533c9b9f97a097d9ee6d
Use tooltip titles
assets/js/bootstrap-global.js
assets/js/bootstrap-global.js
(function ($, document, window, undefined) { 'use strict'; var $document = $(document), $window = $(window), eventNames = { ready: 'ise:ready', load: 'ise:load' }, selectors = { time: '.timeago', modal: '.modal' }; /** * Initialise ...
JavaScript
0.000001
@@ -267,16 +267,43 @@ '.modal' +,%0D%0A title: '%5Btitle%5D' %0D%0A %7D; @@ -1056,24 +1056,138 @@ dalShown);%0D%0A + $(selectors.title).tooltip(%7B%0D%0A container: 'body',%0D%0A placement: 'auto'%0D%0A %7D);%0D%0A %7D%0D%0A %0D
abb266defb3456802e39b872a68975cbc29947ef
Add support for fundraising event donate links
controllers/donate.js
controllers/donate.js
'use strict'; const menu = require('./common/menu'); const donate = require('./common/donate'); /* A controller for the donate page. */ function controller(app) { app.get('/donate', function (req, res) { donate(app).then(function(donate) { let data = { menu: menu(), donate: donate };...
JavaScript
0
@@ -197,24 +197,264 @@ req, res) %7B%0A + if(process.env.DONATE_URI) %7B%0A // If a donate uri is provided, redirect to that instead of using our%0A // default donate page. This is useful during fundraising events.%0A res.redirect(process.env.DONATE_URI);%0A %7D else %7B%0A donate(a @@ -477...
87cc0594cab7d8b9e660236f32251dcbfe907cb8
Improve Set polyfill name. Fixes #2
polyfill.js
polyfill.js
'use strict'; var clear = require('es5-ext/array/#/clear') , eIndexOf = require('es5-ext/array/#/e-index-of') , setPrototypeOf = require('es5-ext/object/set-prototype-of') , callable = require('es5-ext/object/valid-callable') , d = require('d') , ee = require('ev...
JavaScript
0
@@ -726,16 +726,59 @@ etValues +, NativeSet;%0A%0Aif (isNative) NativeSet = Set ;%0A%0Amodul @@ -808,16 +808,19 @@ unction +Set (/*itera @@ -1009,16 +1009,22 @@ eOf(new +Native Set(), g @@ -1393,16 +1393,22 @@ etPoly, +Native Set);%0A%09S @@ -1440,16 +1440,22 @@ .create( +Native Set.prot
437cd3d54ae15a78a64357f22d3ed213f72e8a22
Fix build
Jakefile.js
Jakefile.js
/* jshint node: true, camelcase: false */ /* globals jake: false, task: false */ // Globals exposed by jake var path = require('path'); task('lint', [], function() { require('./smpl-build-test'); var files = []; files.push(path.join(__dirname, 'Jakefile.js')); files.push(path.join(__dirname, 'package.json')); fil...
JavaScript
0.000003
@@ -130,16 +130,58 @@ ath');%0A%0A +task('test', %5B'lint'%5D, function() %7B%0A%09%0A%7D);%0A task('li
6370d600b19cae30dc7142e3cefa06aeb0579a8b
Add update target
Jakefile.js
Jakefile.js
"use strict"; var child_process = require("child_process"); var fs = require("fs"); var util = require("util"); // for use with child_process.exec/execFile function execCallback(task) { return function (error, stdout, stderr) { if (stdout) console.log(stdout.toString()); if (stderr) console.error(stderr.toS...
JavaScript
0
@@ -2345,8 +2345,163 @@ itsim%22)%0A +%0Atask('update', %7Basync:true%7D, function() %7B%0A jake.exec(%5B%0A %22git pull%22,%0A %22npm install%22,%0A %22tsd reinstall%22%0A %5D, %7BprintStdout: true%7D);%0A%7D)%0A%0A
9e35deb851d5d72eb957dce6565631ddc25e9a80
fix issue #82 (ticket validation regexp limit)
lib/ticket.js
lib/ticket.js
"use strict"; //const { promisify } = require('util'); var parseUrl = require('url').parse var querystring = require('querystring') var logger = require('./logger')('cas_validate::ticket') var force_protocol=require('./force_protocol') const got = require('got') const xmlparser = require('./xml_parser') function tic...
JavaScript
0
@@ -2989,9 +2989,9 @@ -.%7B2 -8 +6 ,256
de112eb4e3b6529ec68b8e6b3c00950f004a4d6a
Add track link support
lib/tomahk.js
lib/tomahk.js
JavaScript
0
@@ -0,0 +1,647 @@ +var http = require('http');%0A%0Amodule.exports = %7B%0A shortenUrl: function (url, cb) %7B%0A http.get(url, function (res) %7B%0A res.on('data', function (data) %7B%0A // seek through data%0A %7D);%0A res.on('end', function () %7B%0A ...
635c895f83407708945633dfefa76ce61d4331ed
Add hyperterm-subpixel-antialiased
.hyperterm.js
.hyperterm.js
module.exports = { config: { fontSize: 12, fontFamily: 'Menlo, "DejaVu Sans Mono", "Lucida Console", monospace', padding: '10px', }, plugins: [ 'hypercwd', 'hyperterm-blink', 'hyperterm-title', 'hyperterm-one-light' ], localPlugins: [] };
JavaScript
0.998795
@@ -242,16 +242,54 @@ e-light' +,%0A 'hyperterm-subpixel-antialiased' %0A %5D,%0A