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
565484126dc07d331266a2d66ac93295490ab30a
Add "backward" argument to checkIfPunctuator fn
lib/token-helper.js
lib/token-helper.js
/** * Returns token by range start. Ignores () * * @param {JsFile} file * @param {Number} range * @param {Boolean} [backward=false] Direction * @returns {Object} */ exports.getTokenByRangeStart = function(file, range, backward) { var tokens = file.getTokens(); // get next token var tokenPos = file.g...
JavaScript
0.000177
@@ -1800,32 +1800,79 @@ tring%7D operator%0A + * @param %7BBoolean%7D %5Bbackward=false%5D Direction%0A * @returns %7BObj @@ -1938,32 +1938,42 @@ range, operator +, backward ) %7B%0A var part @@ -2008,24 +2008,34 @@ (file, range +, backward );%0A%0A if ( @@ -2123,9 +2123,10 @@ false;%0A%7D +; %0A
b8a68040b31c9a7d849112e5f49b4aa20eb1513d
add validators & rename field to property (mapper definition are compliant with JSON Schema)
main.js
main.js
var cb = require('couchbase'); var q = require('q'); var extend = require('extend'); var util = require('util'); var EventEmitter = require('events').EventEmitter; /** * The manager class */ var manager = function(options) { // parent constructor call EventEmitter.call(this); // Handles default options this....
JavaScript
0
@@ -433,17 +433,274 @@ unique'%5D +,%0A // list of property types validators%0A validators: %7B%0A 'string': 'string',%0A 'number': 'number',%0A 'object': 'object', %0A 'date': 'date', %0A 'boolean': 'boolean', %0A 'array': 'array'%0A %7D, %0A...
fe668776bc02097b5b54ef8b9267bb62c1e562bb
Fix tool startup activation (#84)
src/main/javascript/Client.js
src/main/javascript/Client.js
/** * Main map client class * * Typical use case is to call the method configure(config) where config is a valid configuration object (usually parsed from JSON). */ Ext.define('OpenEMap.Client', { requires: ['GeoExt.data.MapfishPrintProvider', 'OpenEMap.Gui', 'OpenEMap.config.Par...
JavaScript
0
@@ -4677,16 +4677,128 @@ wLayer;%0A + %0A if (this.gui.controlToActivate) %7B%0A this.gui.controlToActivate.activate();%0A %7D%0A %7D,%0A
588bdfe2e3a908b10d09995ebef0508e9518d88a
Simplify logic
main.js
main.js
/*jslint vars: true, plusplus: true, devel: true, nomen: true, regexp: true, indent: 2, maxerr: 50 */ /*global define, brackets, CodeMirror */ define(function (require, exports, module) { 'use strict'; var LanguageManager = brackets.getModule("language/LanguageManager"); var regex = { ke...
JavaScript
0.033914
@@ -663,38 +663,8 @@ ) %7B%0A - if (stream.sol()) %7B%0A @@ -687,18 +687,16 @@ ace();%0A%0A - @@ -711,18 +711,16 @@ COMMENT%0A - @@ -749,34 +749,32 @@ /)) %7B%0A - return %22comment%22 @@ -772,26 +772,24 @@ %22comment%22;%0A%0A - // F @@ -795,34 +795,3...
d58017c57e892aa52adffa0ed472d0a3151aab70
Call notSoSimpleDemo from main
main.js
main.js
var SignalPath = require("./SignalPath"); var Transceiver = require("./Transceiver"); var Hub = require("./Hub"); var Switch = require("./Switch"); var Host = require("./Host"); var Frame = require("./Frame"); function simpleDemo() { var pc1 = new Host("PC1", "FC:AA:AA:00:00:00"); var pc2 = new Host("PC2", "F...
JavaScript
0
@@ -1432,17 +1432,22 @@ ); %0A%7D%0A%0A -s +notSoS impleDem
a820c4b96220e39d82f724bc6262673d5cd206c5
Resolve relative paths and log creating of dirs
main.js
main.js
var nconf = require('nconf') fs = require('fs') async = require('async') log4js = require('log4js') path = require('path') var mainLogger = log4js.getLogger("main"); var tasks = {} async.series( [ loadConfig, loadTasks, executeTasks ] ); function loadConfig(cb) { mainLogger...
JavaScript
0
@@ -2395,20 +2395,23 @@ = path. -join +resolve (nconf.g @@ -3540,16 +3540,58 @@ (dir)%0A%7B%0A + mainLogger.debug(%22Creating dir:%22, dir);%0A if (!f
c4bb689abb1f9410e33fa060608edddcb64a4750
add "module exports" header comment
lib/node-gyp.js
lib/node-gyp.js
module.exports = exports = gyp /** * Module dependencies. */ var fs = require('graceful-fs') , path = require('path') , nopt = require('nopt') , log = require('npmlog') , child_process = require('child_process') , EE = require('events').EventEmitter , inherits = require('util').inherits , commands = [...
JavaScript
0.000001
@@ -1,8 +1,37 @@ +%0A/**%0A * Module exports.%0A */%0A%0A module.e
c6848d158090a7b5d3ba78fa024c8456c6933c4c
Allow for the parse module to send badges
lib/notifier.js
lib/notifier.js
/*! * node-notifier * Copyright(c) 2014 Madhusudhan Srinivasa <madhums8@gmail.com> * MIT Licensed */ /** * Module dependencies. */ var fs = require('fs') , path = require('path') , parallel = require('lll'); /** * Initialize notifier * * @api public */ var Notifier = function (config) { if (config) ...
JavaScript
0
@@ -4997,16 +4997,92 @@ %7D%0A %7D;%0A + if (obj.badge !== undefined) %7B%0A notification.data.badge = obj.badge%0A %7D %0A app.s
45ab24d56fb0983d30c7d54c030ffeaab565276e
Enable reload of the mainWindow in the menu (also cmd+r or ctrl+r)
main.js
main.js
// Module to create native browser window, // Module to control application life, // Module to create native application menus and context menus. const {BrowserWindow, app, Menu} = require('electron') const path = require('path') const url = require('url') const DEBUG = false; // Keep a global reference of the window ...
JavaScript
0
@@ -805,16 +805,18 @@ %22Copy%22, + acceler @@ -857,16 +857,123 @@ py:%22 %7D,%0A + %7B label: %22Reload%22, accelerator: %22CmdOrCtrl+R%22, click: function() %7BmainWindow.reload();%7D %7D,%0A
539464a468461a63b386d6ec1d827339025eedff
Handle the directory paths in a FIFO manner
lib/parallel.js
lib/parallel.js
/** * The MIT License (MIT) * Copyright (c) 2016 GochoMugo <mugo@forfuture.co.ke> * Copyright (c) 2016 Forfuture, LLC < we@forfuture.co.ke> * * Handle parallel handling of directories. */ exports.Handler = class Handler { /** * Construct a new handler. * * @param {Object} globals * @para...
JavaScript
0
@@ -183,16 +183,835 @@ tories.%0A + *%0A * Notes:%0A * ------%0A *%0A * The order of the paths in executing the attached function on the handler%0A * is important as we need parent directories to be created before%0A * child directories are considered. The used walker enqueues directories%0A * as it finds them, direct...
98a52690159ee1529f5d9054eb415c74e0fe64b3
allow 0 as a valid protocol value
lib/pcsclite.js
lib/pcsclite.js
var events = require('events'); var bt = require('buffertools'); /* Make sure we choose the correct build directory */ var bindings = require('bindings')('pcsclite'); var PCSCLite = bindings.PCSCLite; var CardReader = bindings.CardReader; inherits(PCSCLite, events.EventEmitter); inherits(CardReader, events.EventEmitte...
JavaScript
0.00001
@@ -2458,20 +2458,32 @@ LUSIVE;%0A +%0A +if (typeof options. @@ -2492,16 +2492,33 @@ otocol = +== 'undefined' %7C%7C options @@ -2527,18 +2527,54 @@ rotocol -%7C%7C +=== null) %7B%0A options.protocol = this.SC @@ -2614,16 +2614,22 @@ OCOL_T1; +%0A %7D %0A%0A if
e2a8cf10936703d17702b3bf962161c2b97571b6
fix in meteor collision
main.js
main.js
(function () { "use strict"; var CommandEnum = com.dgsprb.quick.CommandEnum; var Quick = com.dgsprb.quick.Quick; var GameObject = com.dgsprb.quick.GameObject; var Scene = com.dgsprb.quick.Scene; var gameScene; var buildings = []; // use tiles intead? function fireMissile(targetX, targetY) { var target = new...
JavaScript
0.002834
@@ -1333,24 +1333,57 @@ setSolid();%0A +%09%09explosion.addTag(%22explosion%22);%0A %09%09explosion. @@ -2229,24 +2229,95 @@ ct.getY());%0A +%09%09%09%09%7D else if (gameObject.hasTag(%22explosion%22)) %7B%0A%09%09%09%09%09meteor.expire();%0A %09%09%09%09%7D else i
ebfeed2721b85dfd61e3353801b298c8cc356a85
add transactionID
lib/protocol.js
lib/protocol.js
var command_state = require('./command-state.js'), nconf = require('nconf'); nconf.env() .file({"file": "./lib/epp-config.json"}); var state; module.exports = function() { return { "processMessage": function processMessage(m) { if (state) { if (m.command) { ...
JavaScript
0.000002
@@ -1558,16 +1558,32 @@ %7D, + 'iwmn-login-1', %0A
94d7e9262e4e9ca0f64c91750dae1c531ef62646
Add uglify
main.js
main.js
#!/usr/bin/env node var fs = require("fs"); var path = require("path"); var webpack = require("webpack"); var version = JSON.parse(fs.readFileSync("./package.json")).version; console.log("react-beaker " + version + "\n"); var command = process.argv[2]; var context = process.argv[3] && path.resolve(process.argv[3]); ...
JavaScript
0.000007
@@ -1299,17 +1299,130 @@ %7D%5D%0A %7D +,%0A plugins: command === %22publish%22 ? %5B%0A new webpack.optimize.UglifyJsPlugin(%7Bminimize: true%7D)%0A %5D : %5B%5D %0A - %7D);%0A%0Afun @@ -1624,24 +1624,98 @@ s%22%0A %7D +,%0A plugins: %5Bnew webpack.optimize.UglifyJsPlugin(%7Bminimize:...
88f3766b16d2f4160b84daf2277b2aff6ce11de4
Fix exception in beautify when url is undefined
lib/parser/beautify_url.js
lib/parser/beautify_url.js
// Decode url and collapse its long parts // 'use strict'; var mdurl = require('mdurl'); var punycode = require('punycode'); function elide_text(text, max) { var chars = punycode.ucs2.decode(text); if (chars.length >= max) { return punycode.ucs2.encode(chars.slice(0, max - 1)).replace(/…$/, '') + '…'; } ...
JavaScript
0.000069
@@ -3062,24 +3062,98 @@ x_length) %7B%0A + if (typeof url_str === 'undefined' %7C%7C url_str === null) %7B return ''; %7D%0A%0A var url = @@ -3164,23 +3164,31 @@ l.parse( +String( url_str +) , true);
e36fb59b74132cea6c39531a3ab213d96532623e
fix lint issue
test/configs/backstop_features.js
test/configs/backstop_features.js
const ENGINE = 'puppet'; const SCRIPT_PATH = 'puppet'; const URL = 'https://garris.github.io/BackstopJS'; module.exports = { id: `${ENGINE}_backstop_features`, viewports: [ { label: 'phone', width: 320, height: 480 }, { label: 'tablet', width: 1024, height: 768 }...
JavaScript
0.000003
@@ -483,25 +483,24 @@ /index.html%60 -, %0A %7D,%0A
9ff42bfa62ca568ce3b2146c3dc832af1006f84a
Remove console.log
client/src/GameState.js
client/src/GameState.js
function GameState() { } GameState.prototype.connectWebsocket = function() { var ws = new WebSocket('ws://localhost:1337', 'echo-protocol'); var that = this; this.ws = ws; this.wsReady = false; var that = this; ws.addEventListener('open', function(e) { that.wsReady = true; }); ws.addEventListener('...
JavaScript
0.000004
@@ -378,37 +378,8 @@ a);%0A - console.log(that.state);%0A %7D)
44ab3a1addabecf75baf9c6ab7eef68ac3deac89
fix bug where it looked for a build "attempt+1" times
lib/util/jenkins.js
lib/util/jenkins.js
/* * Copyright 2012 Rackspace * * 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
@@ -2349,16 +2349,17 @@ tempts %3E += self._o
920898f6958af6c212d0025f391c678b887aef3f
fix screenshot request regexp
lib/reporter.js
lib/reporter.js
import process from 'process' import events from 'events' import Allure from 'allure-js-commons' import Step from 'allure-js-commons/beans/step' function isEmpty (object) { return !object || Object.keys(object).length === 0 } const LOGGING_HOOKS = ['"before all" hook', '"after all" hook'] /** * Initialize a new...
JavaScript
0.000001
@@ -3428,17 +3428,8 @@ (/%5C/ -wd%5C/hub%5C/ sess
ec774487c362a4e99feccc5ae69c2ecea203aa81
Remove redundant runner:screenshot listener
lib/reporter.js
lib/reporter.js
import events from 'events' import Allure from 'allure-js-commons' import Step from 'allure-js-commons/beans/step' function isEmpty (object) { return !object || Object.keys(object).length === 0 } const LOGGING_HOOKS = ['"before all" hook', '"after all" hook'] /** * Initialize a new `Allure` test reporter. * *...
JavaScript
0.000002
@@ -2929,17 +2929,16 @@ if ( -! command. @@ -3023,16 +3023,22 @@ and.body +.value ) %7B%0A @@ -3053,107 +3053,124 @@ -this.dumpJSON(allure, 'Response', command.body)%0A %7D%0A%0A allure.endStep('passed') +allure.addAttachment('Screenshot', Buffer.from(command.body.value, 'base64'...
54058ffa1591fb6fe92b2b50e59722070b28a629
update hooks
lib/hooks/index.js
lib/hooks/index.js
var async = require('async'); var hooks = {}; hooks.list = {}; hooks.on = function weAddEventListener(eventName, callback) { if(!hooks.list[eventName]){ hooks.list[eventName] = []; } hooks.list[eventName].push(callback); }; /** * Trigger one wejs event ( works like hooks ) and runs all functions added in...
JavaScript
0.000001
@@ -814,17 +814,16 @@ );%0A%7D;%0A%0A -%0A module.e
7e16d0feb49b2ff1ee829868d20f052f058c06aa
put back test cases that feature run-to-run randomness:
test/image/compare_pixels_test.js
test/image/compare_pixels_test.js
var fs = require('fs'); var path = require('path'); var constants = require('../../tasks/util/constants'); var getOptions = require('../../tasks/util/get_image_request_options'); // packages inside the image server docker var request = require('request'); var test = require('tape'); var gm = require('gm'); var TOLER...
JavaScript
0
@@ -459,16 +459,17 @@ 'batch'%0A +%0A var touc @@ -1034,388 +1034,209 @@ /* -%0A * Some test cases exhibit run-to-run randomness;%0A * skip over these few test cases for now.%0A *%0A * More info:%0A * https://github.com/plotly/plotly.js/issues/62%0A *%0A * 41...
6467f6bc3854f8ca0ee3cfe5fe16b5a28ac32ef4
Fix rattling when image appearance
main.js
main.js
'use restrict'; document.addEventListener('DOMContentLoaded', function (event) { var sourceUri = 'https://www.pixiv.net/ranking.php?mode=daily&format=json&content=illust'; var promiseList = []; for (var i = 1; i <= 3; i++) { var p = axios.get(sourceUri + '&p=' + i); promiseList.push(p); } Promise.al...
JavaScript
0.000003
@@ -397,24 +397,25 @@ tions = %5B%5D;%0A +%0A values.f @@ -1191,37 +1191,257 @@ -items.forEach(function (item) +// Wait for image loading%0A return Promise.all(items.map((item) =%3E %7B%0A return new Promise((resolve) =%3E %7B%0A item.img.onload = item.img.onerror = () =%3E resolve(item);%0A ...
a3f8170a98382b56f56726e42d45c80b3898e831
Add importing from geojson
lib/import-data.js
lib/import-data.js
var fs = require('fs') var importGeo = require('./import-geo') var concat = require('concat-stream') var shp = require('gtran-shapefile') var path = require('path') module.exports = function (osm, name, done) { var ext = path.extname(name) if (ext === '.geojson') { console.log('geojson import', name) conca...
JavaScript
0
@@ -272,133 +272,167 @@ -console.log('geojson import', name)%0A concat(fs.createReadStream(name), function (geojson) %7B%0A if (err) return done(err +var readStream = fs.createReadStream(name)%0A readStream.on('error', done)%0A readStream.pipe(concat(function (geojson) %7B%0A var data = JSON.pa...
acd26c7b49d7309ef240bed4125633469365ba1e
Fix attr-validate error code
lib/rules/attr-validate.js
lib/rules/attr-validate.js
var Issue = require('../issue'); module.exports = { name: 'attr-validate', on: ['tag'], desc: 'If set, attributes in a tag must be well-formed.' }; module.exports.lint = function (ele, opts) { var attrRegex = /^(\s*[^ "'>=\^]+(\s*=\s*(("[^"]*")|('[^']*')|([^ \t\n"']+)))?)*\s*$/, open = ele.ope...
JavaScript
0.000005
@@ -396,9 +396,9 @@ 'E04 -3 +9 ', e
7cd200b5f0a6eceecce3030710ef1b8d729c96eb
Add support for {before,after} style initializer dependencies
lib/initializer.js
lib/initializer.js
var glob = require("glob"); var path = require("path"); var _ = require("lodash"); var sequencify = require("sequencify"); var Promise = require("bluebird"); var requireAll = require("./util/require-all"); var Initializer = function(name, dep, fun) { if(typeof fun === 'undefined') { fun ...
JavaScript
0.000001
@@ -260,26 +260,462 @@ name -, dep, fun) %7B +) %7B%0A this.name = name;%0A this.dep = %5B%5D;%0A this.fun = null;%0A%7D;%0A%0AInitializer.prototype.addDep = function(name) %7B%0A this.dep.push(name);%0A%7D;%0A%0AInitializer.prototype.setFun = function(fun) %7B%0A if(this.fun) %7B%0A throw new Error(%22Cannot ...
cb1ea722fbf50d90cc1f353042437efcdc862aad
remove unused import
lib/runtime/application.js
lib/runtime/application.js
import express from 'express'; import Promise from 'bluebird'; import { log } from '../utils'; import DAG from 'dag-map'; import routerDSL from 'router-dsl'; import Error from './error'; import Engine from './engine'; import blackburn from 'blackburn'; import assign from 'lodash/object/assign'; /** * Application inst...
JavaScript
0.000001
@@ -155,37 +155,8 @@ l';%0A -import Error from './error';%0A impo
645672a93198dbc2d59b3174668a6d8e7a860a86
Fix error
lib/sanitize.js
lib/sanitize.js
/* ======================================================================== * DBH-PG: utilities for sanitize inputs. * ======================================================================== * Copyright 2014 Sapienlab, Rodrigo González and Contributors. * Licensed under MIT LICENSE * =============================...
JavaScript
0.000004
@@ -2407,22 +2407,22 @@ urn -checkWhitelist +sanitizeScalar (val
a834a28ac87251d0201ae8fa8e09851be3180317
clean up logging
main.js
main.js
/* * Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved. * * 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 ri...
JavaScript
0
@@ -1673,13 +1673,32 @@ ts.d -ump%22, +ebug.dump%22, %22dumping %22 + fil @@ -2244,24 +2244,32 @@ assets.error +.convert %22, %22error fr @@ -2969,16 +2969,22 @@ %22assets. +error. getPixma @@ -3540,16 +3540,21 @@ ts.error +.init %22,%0A @@ -3827,23 +3827,61 @@ ish( -%22assets.error%22, +%0A ...
beb2d1fc98b5894dbd9b67cea10aa3ecc0e7a3e0
add platform
lib/saucelabs-launchers.js
lib/saucelabs-launchers.js
var browsers = { chrome_latest_linux: { browserName: 'chrome', platform: 'Linux', version: 'latest' }, chrome_latest_windows: { browserName: 'chrome', platform: 'Windows 10', version: 'latest' }, chrome_latest_osx: { browserName: 'chrome', platform: 'OS X 10.11', version: '...
JavaScript
0.0004
@@ -366,32 +366,55 @@ Name: 'chrome',%0A + platform: 'Linux',%0A version: 'la @@ -417,24 +417,24 @@ 'latest-1'%0A - %7D,%0A chrom @@ -466,32 +466,55 @@ Name: 'chrome',%0A + platform: 'Linux',%0A version: 'la @@ -566,32 +566,55 @@ Name: 'chrome',%0A + platform: 'Linux',%0A version: 'la @...
11a7cb7925e32253dc0f4e76b9d2589efb3b2f35
Read package version directly from package.json.
main.js
main.js
var assert = require("assert"); var path = require("path"); var Q = require("q"); var slice = Array.prototype.slice; var Watcher = require("./lib/watcher").Watcher; var BuildContext = require("./lib/context").BuildContext; var ModuleReader = require("./lib/reader").ModuleReader; var BundleWriter = require("./lib/write...
JavaScript
0
@@ -417,16 +417,111 @@ til%22);%0A%0A +var versionP = util.readJsonFileP(%0A path.join(__dirname, %22package.json%22)%0A).get(%22version%22);%0A%0A function @@ -732,32 +732,39 @@ ildP = function( +version ) %7B%0A var prog @@ -816,15 +816,15 @@ ion( -%220.3.1%22 +version )%0A @@ -3706,24 +3706,25 @@ riga...
9f5815ec04366f25f4b3b4fc1b0a74eae795eec8
allow any scroll direction
lib/scroll-through-time.js
lib/scroll-through-time.js
'use babel'; import { CompositeDisposable } from 'atom'; function getListener (direction) { let previousScroll = 0 let timeout return function (e) { if (Math.abs(e.deltaX) < Math.abs(e.deltaY)) { return } previousScroll += e.deltaX clearTimeout(timeout) timeout = setTimeout(() => previousScroll ...
JavaScript
0
@@ -87,16 +87,196 @@ tion) %7B%0A + let mainAxis = direction == 'left' %7C%7C direction == 'right' ? 'X' : 'Y'%0A let crossAxis = mainAxis == 'X' ? 'Y' : 'X'%0A let reversed = direction == 'right' %7C%7C direction == 'down'%0A let pr @@ -348,23 +348,36 @@ th.abs(e -. +%5B' delta -X +' + mainAxis%5D ) %3C Math...
0b00c09dbad2084484c6c9a0b82c18e483c1115d
append full rendered queue if any more items needed
lib/scroller.js
lib/scroller.js
var pull = require('pull-stream') var Pause = require('pull-pause') var Value = require('mutant/value') var onceIdle = require('mutant/once-idle') var computed = require('mutant/computed') module.exports = Scroller function Scroller (scroller, content, render, cb) { var toRenderCount = Value(0) var toAppendCount ...
JavaScript
0
@@ -618,37 +618,12 @@ -while (appendQueue.length && +if ( dist @@ -660,24 +660,61 @@ ntHeight) %7B%0A + while (appendQueue.length) %7B%0A conten @@ -748,16 +748,24 @@ hift())%0A + %7D%0A %7D%0A%0A
34d1038e34fbdfe41acbf0a1b370feefe360d5a4
Change var to const
main.js
main.js
const electron = require('electron'); const app = electron.app; const BrowserWindow = electron.BrowserWindow; const ipcMain = electron.ipcMain; var Menu = electron.Menu; const path = require('path'); const os = require('os'); const autoUpdater = electron.autoUpdater; const appVersion = require('./package.json').version...
JavaScript
0.000006
@@ -137,19 +137,21 @@ pcMain;%0A -var +const Menu =
6765a5b6787903b0b622092680a5d008f85c7b2e
Improve the ngdoc comments generator.
lib/services.js
lib/services.js
var fs = require('fs'); var ejs = require('ejs'); ejs.filters.q = function(obj) { return JSON.stringify(obj, null, 2 ); }; module.exports = function generateServices(app, ngModuleName, apiUrl) { ngModuleName = ngModuleName || 'lbServices'; apiUrl = apiUrl || '/'; var models = describeModels(app); var serv...
JavaScript
0
@@ -3489,16 +3489,155 @@ p;%0A %7D%0A%0A + // Names of resources/models in Angular start with a capital letter%0A var ngModelName = modelName%5B0%5D.toUpperCase() + modelName.slice(1);%0A method @@ -3651,33 +3651,35 @@ ated = 'Use ' + -m +ngM odelName + '.' + @@ -4048,25 +4048,27 @@ = 'Use ' + -m +ngM ode...
60d2936a3900ae589704105513ef8fdcd6f08b70
Define prototype methods instead of creating new instance methods for each `Levenshtein`
lib/levenshtein.js
lib/levenshtein.js
(function(root, factory){ if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) { define(function(){ return factory(root); }); } else if (typeof module == 'object' && module && module.exports) { module.exports = factory(root); } else { root.Levenshtein = factory(roo...
JavaScript
0
@@ -668,23 +668,16 @@ tance%0A -return function @@ -748,867 +748,8 @@ // -Instance methods%0A this.valueOf = function() %7B%0A return this.distance%0A %7D%0A%0A this.toString = this.inspect = function inspect ( no_print ) %7B var max, buff, sep, rows%0A max = matrix.reduce( function( m, o ) %...
96ff3fed798a725e5e25c062a3baf23f0974d8ce
bump timeouts for windows
test/spec/LiveDevelopment-test.js
test/spec/LiveDevelopment-test.js
/* * Copyright 2012 Adobe Systems Incorporated. All Rights Reserved. */ /*jslint vars: true, plusplus: true, devel: true, browser: true, nomen: true, indent: 4, maxerr: 50 */ /*global define: false, describe: false, it: false, xit: false, expect: false, beforeEach: false, afterEach: false, waitsFor: false, waits: fa...
JavaScript
0
@@ -5822,33 +5822,33 @@ waits( -2 +3 50);%0A @@ -8486,17 +8486,17 @@ waits( -2 +3 50);%0A
b801f3525b0bdb7f63bc33f6ccc09da69528f2c0
Add .ts to watching and slight refactoring
lib/tasks/watch_sources.js
lib/tasks/watch_sources.js
var mappingDefaults = { styles: ['css', 'less', 'scss', 'sass', 'styl'], scripts: ['js', 'jsx', 'es6', 'es', 'coffee'], templates: ['jade', 'pug', 'json', 'html', 'htm'], images: ['jpg', 'jpeg', 'png', 'svg'], sprites: ['svg'] } module.exports = function(gulp, config, watch) { var mapping = require('lodash').me...
JavaScript
0
@@ -112,16 +112,22 @@ 'coffee' +, 'ts' %5D,%0A%09temp @@ -394,105 +394,8 @@ = %5B -'css','styl','scss','sass','less','js','jsx','es6','es','coffee','jade','pug','json','html','htm' %5D%0A%09v
cacad4dbc0121293d72c51ede138d0e7d881a603
handle non-existing property with error
test/spec/adapter/cmof/builder.js
test/spec/adapter/cmof/builder.js
var _ = require('lodash'), fs = require('fs'), path = require('path'); var CmofParser = require('cmof-parser'); var Helper = require('../../../helper'); function Builder() { var desc; var hooks = { 'preSerialize': [] }; function getPackage() { var elementsById = desc.byId; return elem...
JavaScript
0.000001
@@ -795,16 +795,9 @@ if ( -last && +! desc @@ -802,24 +802,118 @@ scriptor) %7B%0A + throw new Error('property %3C' + name + '%3E does not exist');%0A %7D%0A%0A if (last) %7B%0A // r
69205277857dd32760088207faddf183bdf7fbf1
refactor .get(), start on .start()
lib/timelines/timelines.js
lib/timelines/timelines.js
'use strict'; var EventHandler = require('./../utilities/event-handler'); // var TimelineHelper = require('./../utilities/TimelineHelper'); function Timelines(timelineGroups) { EventHandler.apply(this); this._timelineGroups = timelineGroups || {}; this._currentTimeline = null; } Timelines.prototype = Obj...
JavaScript
0.000038
@@ -68,16 +68,70 @@ dler');%0A +var converter = require('best-timelineUI').converter;%0A // var T @@ -222,16 +222,24 @@ neGroups +, states ) %7B%0A @@ -264,16 +264,17 @@ (this);%0A +%0A this @@ -314,16 +314,44 @@ %7C%7C %7B%7D;%0A + this._states = states;%0A%0A this @@ -376,16 +376,54 @@ = null...
7ca4323668a09b477f2477a7f5d4879a49a788ca
add init cb
lib/lite-server.js
lib/lite-server.js
'use strict'; /** * lite-server : Simple server for angular/SPA projects * * Simply loads some default browser-sync config that apply to SPAs, * applies custom config overrides from user's own local `bs-config.{js|json}` file, * and launches browser-sync. */ var browserSync = require('browser-sync').create(); var...
JavaScript
0.000363
@@ -445,16 +445,20 @@ art(opts +, cb ) %7B%0A @@ -1534,13 +1534,42 @@ t(config -) +, cb);%0A%0A return browserSync ;%0A%7D%0A
a0692c5ba000aacbe2e7731dfd030bdbb535118b
Fix app starts
lib/solenoid.js
lib/solenoid.js
var fs = require('fs'), os = require('os'), path = require('path'), spawn = require('child_process').spawn, mkdirp = require('mkdirp'), async = require('async'), pkgcloud = require('pkgcloud'), semver = require('semver'), useradd = require('useradd'); function noop() {} // // Starts an...
JavaScript
0.000001
@@ -4569,19 +4569,34 @@ h, match +, 'bin', 'node' );%0A - call @@ -4703,16 +4703,32 @@ s = %5B%5D,%0A + pid = '',%0A ch @@ -4772,24 +4772,24 @@ tion...');%0A%0A - args = %5B's @@ -4816,16 +4816,39 @@ on.log', + '-p', options.pidFile, '--', ' @@ -5288,66 +5288,73 @@ %0A%0A -fs.writeFile(opt...
0d1c8e7999523d853fcbc9f9ac2595aec0965806
Remove unnecessary logs.
lib/splitter.js
lib/splitter.js
const EventEmitter = require('events').EventEmitter const clone = require('clone') const utils = require('./utils') const Server = require('./server') function Splitter (configuration) { if (!utils.config.validate(configuration)) { throw new Error('Invalid configuration') } // Private const clonedConfig = clone...
JavaScript
0
@@ -847,125 +847,8 @@ %0A ) -%0A console.log(JSON.stringify(clonedConfig.upstreams%5B9%5D))%0A console.log(JSON.stringify(optimizedConfig.upstreams%5B8%5D)) %0A%0A
09cc4135eac1a071fdd5a213a79619bc88a046b4
Add correct button behaviour
main.js
main.js
var express = require('express'), request = require('request'), cheerio = require('cheerio'), app = express(), radiodanClient = require('radiodan-client'), radiodan = radiodanClient.create(), player = radiodan.player.get('main'), port = process.env.PORT || 5000; // var proxy = r...
JavaScript
0.000003
@@ -533,27 +533,28 @@ unction -handlePress +startPlaying ()%7B%0A co @@ -587,16 +587,133 @@ SSED%22);%0A + player.play();%0A%7D%0A%0Afunction stopPlaying() %7B%0A console.log(%22powerButton RELEASED%22);%0A player.pause(%7B value: true %7D);%0A %7D%0A%0Avar n @@ -838,19 +838,61 @@ ss%22, -handlePress + stopPl...
0354604c7a6487cc45c57f9c844636eb9bd0820b
Ensure options to be an object
lib/strategy.js
lib/strategy.js
// ============================================================================= // Module dependencies // ============================================================================= var passport = require('passport-strategy'); var jwt = require('jsonwebtoken'); var util = require('util'); // =======================...
JavaScript
0.999888
@@ -509,16 +509,67 @@ erify) %7B +%0A %0A if (typeof options != 'object') options = %7B%7D; %0A%0A if (
faa9b977c9c0ccb3f3221fe93f6b0f4cad49620a
check geojson filesize as well
lib/validators/omnivore.js
lib/validators/omnivore.js
var fs = require('fs'); var uploadLimits = require('mapbox-upload-limits'); var prettyBytes = require('pretty-bytes'); var path = require('path'); var queue = require('queue-async'); var invalid = require('../invalid'); var sniffer = require('mapbox-file-sniff'); module.exports = function validateOmnivore(opts, callba...
JavaScript
0
@@ -812,16 +812,99 @@ ts.csv;%0A + else if (filetype === 'geojson') limits = opts.limits %7C%7C uploadLimits.geojson;%0A else
c867645a1092bfe465017903ee8df4fe0fbdec43
update user model validations
lib/models/user.js
lib/models/user.js
/** * Module dependencies. */ var config = require('lib/config') var mongoose = require('mongoose') var passportLocalMongoose = require('passport-local-mongoose') var gravatar = require('mongoose-gravatar') var regexps = require('lib/regexps') var normalizeEmail = require('lib/normalize-email') var Schema = mongoose...
JavaScript
0
@@ -408,25 +408,40 @@ type: String - +, maxlength: 100 %7D,%0A lastNam @@ -453,25 +453,40 @@ type: String - +, maxlength: 100 %7D,%0A usernam @@ -498,25 +498,40 @@ type: String - +, maxlength: 100 %7D,%0A locale: @@ -654,16 +654,33 @@ ps.email +, maxlength: 200 %7D, // m
ef14f6c8e8db5d1be017bfa5695deeb7ed885424
Make 'new-topic' notifications true by default
lib/models/user.js
lib/models/user.js
/** * Module dependencies. */ var config = require('lib/config'); var mongoose = require('mongoose'); var mongoUrl = config('mongoUsersUrl') || config('mongoUrl'); var conn = mongoose.createConnection(mongoUrl); var Schema = mongoose.Schema; var ObjectId = Schema.ObjectId; var passportLocalMongoose = require('passpo...
JavaScript
0.011906
@@ -1110,28 +1110,27 @@ n, default: -fals +tru e %7D%0A %7D%0A%7D);%0A
89200842f1c992db941c16def3ba40bcf8cb14bc
Add —ignore-scripts when generating yarn.lock
lib/workers/branch/yarn.js
lib/workers/branch/yarn.js
const logger = require('../../logger'); const fs = require('fs'); const cp = require('child_process'); const tmp = require('tmp'); const path = require('path'); module.exports = { generateLockFile, getLockFile, maintainLockFile, }; async function generateLockFile( newPackageJson, npmrcContent, yarnrcConte...
JavaScript
0
@@ -825,16 +825,36 @@ install' +, '--ignore-scripts' %5D;%0A i
f7f3b48ca87e64f7a9a0b9359e8b3e8e6e15d014
Add the moduleOnly flag
lib/ngts-module.js
lib/ngts-module.js
#!/usr/bin/env node const program = require("commander"); const _ = require("lodash"); const utils = require("./utils"); var dest = ""; program .usage("<module-name> [options]") .arguments("<module-name>") .action(function (moduleName) { cmdModuleName = moduleName; }) .option("-a, --ctrl-a...
JavaScript
0
@@ -1048,16 +1048,61 @@ vePath() +,%0A moduleOnly: program.moduleOnly %7C%7C false %0A%7D;%0A%0Aif
8b54bdb7adf10c6e7ae84d664639f3d38ca5885e
Stop zipping stuff outside of node_modules. Fixes #22.
lib/ziputils.js
lib/ziputils.js
/* jshint node: true */ 'use strict'; var async = require('async'); var fs = require('fs'); var path = require('path'); var util = require('util'); var _ = require('underscore'); var zip = require('node-zip'); /* * Given a single buffer or string, create a ZIP file containing it * and return it as a Buffer. */ m...
JavaScript
0
@@ -3334,16 +3334,17 @@ e.js %22re +s ources/n @@ -4677,24 +4677,16 @@ file)) %7B -%0A // Don' @@ -4739,16 +4739,236 @@ %22.git%22!%0A +%0A if (resourceNamePrefix !== 'node_modules_') %7B%0A var prefix = resourceNamePrefix + file + '/';%0A visitDirectory(fullName, fileList, prefix,...
a9a22c7bf38c9d99205eac61e42c5483712239a1
refresh a little less
app/scripts/services/scheduledCache.js
app/scripts/services/scheduledCache.js
'use strict'; var angular = require('angular'); angular.module('deckApp') .factory('scheduledCache', function($cacheFactory, scheduler, $http) { // returns a cache that is cleared according to the scheduler var that = {}; function disposeAll() { Object.keys(that.schedules).forEach(function(k) { ...
JavaScript
0
@@ -416,16 +416,17 @@ les = 1 +0 ;%0A%0A t @@ -897,18 +897,16 @@ ;%0A %7D; - %0A%0A th
ac680bef9e6c92ca45eb71d6f6575d63f32fa757
Fix crash when movie had no gallery images
src/components/Movie.js
src/components/Movie.js
import React, { Component, PropTypes } from 'react'; import { Image, ScrollView, StyleSheet, Text, View } from 'react-native'; import moment from 'moment'; require('moment/locale/fi'); const styles = StyleSheet.create({ container: { margin: 20, paddingTop: 65, }, detail: { color: 'white', ...
JavaScript
0.000002
@@ -4113,16 +4113,66 @@ eryImage + ?%0A this.props.movie.Gallery.GalleryImage .map((im @@ -4188,24 +4188,26 @@ %3E%0A + + %3CView key=%7Bi @@ -4242,32 +4242,34 @@ w%7D%3E%0A + %3CImage%0A @@ -4265,32 +4265,34 @@ e%0A + + style=%7Bstyles.th @@ -4300,16 ...
2dd515eb1e043afa55bc0159a834e99e7effd30f
add iframe
src/components/comic.js
src/components/comic.js
var h = require('virtual-dom/h') module.exports = function (props) { let number = props.toString() while (number.length < 4) { number = '0' + number } return h('img', {src: `http://www.darthsanddroids.net/comics/darths${number}.jpg`}) }
JavaScript
0.000001
@@ -164,16 +164,31 @@ return +h('div', %5B%0A h('img', @@ -255,11 +255,98 @@ %7D.jpg%60%7D) +,%0A h('iframe', %7Bsrc: %60http://www.darthsanddroids.net/episodes/$%7Bnumber%7D.html%60%7D)%0A %5D) %0A%7D%0A
53ea60caeb815332a2738c0950d9d5710b017021
switch to manage state by react lifecycle, without redux
lib/views/Resume.js
lib/views/Resume.js
import React from 'react' import ReactDom from 'react-dom' import { Provider } from 'react-redux' import { createStore, applyMiddleware } from 'redux' import thunkMiddleware from 'redux-thunk' import { createLogger } from 'redux-logger' import { BrowserRouter } from 'react-router-dom' import JSON5 from 'json5' import ...
JavaScript
0
@@ -48,24 +48,27 @@ 'react-dom'%0A +// import %7B Pro @@ -90,24 +90,27 @@ eact-redux'%0A +// import %7B cre @@ -150,16 +150,19 @@ 'redux'%0A +// import t @@ -195,16 +195,19 @@ -thunk'%0A +// import %7B @@ -318,16 +318,19 @@ json5'%0A%0A +// import r @@ -348,24 +348,27 @@ './routes'%0A%0A +// import fe...
a948f2a43040f6d91c31fcadab5bec659db637fb
fix decorations
src/core/decoratable.js
src/core/decoratable.js
import stampit from 'stampit'; import {forEach, defaults} from 'lodash/fp'; import is from 'check-more-types'; const Decoratable = stampit({ props: { delegate: {} }, methods: { decorate (name, func, opts = {}) { if (is.array(name)) { forEach(value => this.decorate(value.name, value.func, va...
JavaScript
0.000001
@@ -36,17 +36,8 @@ rt %7B -forEach, defa @@ -60,16 +60,48 @@ sh/fp';%0A +import %7BforEach%7D from 'lodash';%0A import i @@ -287,16 +287,32 @@ forEach( +name,%0A value =%3E @@ -365,24 +365,8 @@ pts) -,%0A name );%0A @@ -437,16 +437,22 @@ forEach( +name, (value, @@ -488,14 +488,8 @@ lue...
0358d47357b4b7dcb527e04a20c9ae9f97bc2d1e
clean comment
lib/parse/index.js
lib/parse/index.js
var natural = require('natural'); var norm = require("node-normalizer"); var fs = require("fs"); var path = require("path"); var async = require("async"); var _ = require("underscore"); var checksum = require('checksum'); var mergex = require('deepmerge'); var facts = require("sfacts"); var sort = require("./sort"); va...
JavaScript
0
@@ -1982,770 +1982,8 @@ %7B%0A%0A - // for (var i = 0; i %3C res.length; i++) %7B%0A // topicFlags = mergex(topicFlags, res%5Bi%5D.topicFlags);%0A // gTopics = mergex(gTopics, res%5Bi%5D.gTopics);%0A // gPrevTopics = mergex(gPrevTopics, res%5Bi%5D.gPrevTopics);%0A ...
1864adb0ff21b4d829a9bd8633a4e7562721aa13
enable encodings per op in write-stream
lib/write-stream.js
lib/write-stream.js
/* Copyright (c) 2012-2013 LevelUP contributors * See list at <https://github.com/rvagg/node-levelup#contributing> * MIT +no-false-attribs License * <https://github.com/rvagg/node-levelup/blob/master/LICENSE> */ var Stream = require('stream').Stream , inherits = require('util').inherits , extend ...
JavaScript
0
@@ -2028,16 +2028,48 @@ , entry +%0A , options%0A , self = this %0A%0A , @@ -2749,16 +2749,298 @@ efined)%0A + options = %7B%0A keyEncoding: entry.keyEncoding%0A %7C%7C this._options.keyEncoding%0A , valueEncoding: entry.valueEncoding%0A ...
54a3b3940b4564b1c89122f68bc6a7bcd657ec3b
Remove double-conversion of BG from AR2 reporting
lib/plugins/ar2.js
lib/plugins/ar2.js
'use strict'; var _ = require('lodash'); var rawbg = require('./rawbg')(); function init() { function ar2() { return ar2; } ar2.label = 'AR2'; ar2.pluginType = 'forecast'; var BG_REF = 140; //Central tendency var BG_MIN = 36; //Not 39, but why? var BG_MAX = 400; var WARN_THRESHOLD = 0.05; var...
JavaScript
0
@@ -2675,28 +2675,16 @@ '15m:', -sbx.scaleBg( predicte @@ -2687,17 +2687,16 @@ icted%5B2%5D -) , sbx.un
4e5de6703e72c3c5b19569b374b405199f018eb8
refactor query
lib/query/index.js
lib/query/index.js
'use strict'; var QUERIES = require('./constant').QUERIES , _ = require('../utils') , filter = require('./filter'); /** UserDefinedFunctions: -query for fn: connection .queryUserDefinedFunctions('dbs/b5NCAA==/colls/b5NCAIu9NwA=/', 'SELECT * FROM root r WHERE r.id=something') .toArray(console.log) ...
JavaScript
0.978335
@@ -1378,72 +1378,108 @@ -if(key == '$not') return 'NOT(' + query(object%5Bkey%5D, true) + +var value = object%5Bkey%5D;%0A if(key == '$not') return filter.wrap(query(value, true), 'NOT(', ')' +) ;%0A @@ -1532,56 +1532,18 @@ or: -object%5Bkey%5D %7D %7D);%0A%0A var value = object%5Bkey%5D +value ...
492a42a5ef7c8801f0a397f6a567e1bc02fb1151
Rename variables in SchemaNode
lib/schema-node.js
lib/schema-node.js
const R = require('ramda') const {Maybe, Validation} = require('folktale/data') const {Success, Failure} = Validation const asArray = R.concat([]) const rejectNils = R.reject(R.isNil) const keysToGetters = R.compose(R.map(R.propOr(null)), R.keys) // TODO: Should live elsewhwere const required = (p) => (o) => o.hasOw...
JavaScript
0
@@ -825,37 +825,27 @@ t string -Constraints = R.pick( +Keywords = R.keys(e @@ -868,16 +868,66 @@ .string) +%0A let stringConstraints = R.pick(stringKeywords , this.s @@ -1063,32 +1063,23 @@ num -b er -Constraints = R.pick( +icKeywords = R.ke @@ -1106,16 +1106,68 @@ .number) +%0A let numericConstraints ...
ba65659797fafba3177d4aab3e3e35541730c423
Update smith-chart.js
lib/smith-chart.js
lib/smith-chart.js
// https://jsfiddle.net/b4ycbo4p/22/ function t (x, y) { return `translate(${x},${y})`; } function genSmithChart ($) { function pos (re, im) { const alfa = Math.atan(im / re); const x = re * (Math.cos(2 * alfa) - 1); const y = -re * Math.sin(2 * alfa); return [x, y]; } function ReLine (prop...
JavaScript
0.000001
@@ -1860,24 +1860,128 @@ $('svg', %7B%0A + xmlns: 'http://www.w3.org/2000/svg',%0A 'xmlns:xlink': 'http://www.w3.org/1999/xlink',%0A %09vie
a4c275b30c4e7fba8322c7bcd4514172a0a62e3e
Fix for usage of create
src/createRepository.js
src/createRepository.js
/** @flow */ import {createModel} from './createModel' import type { InsertQuery, UpdateQuery, Repository, Manager, BaseRecord, TableMetadata, Model, Criteria, SelectQuery } from './types' export function createRepository<T: BaseRecord>(tableName: string, manager: Manager): Repository<T> { const repo = { async g...
JavaScript
0
@@ -1727,17 +1727,24 @@ %3E(data: -Q +any = %7B%7D ): Model
252daa0e1f9c0f000a5f1c60abf3b5bb29a8015b
fix for #53
src/directives/modal.js
src/directives/modal.js
import Load from '../util/load' export default { bind (el, binding, vnode) { Load.call(vnode.context, () => { if (el.nodeName === 'button') { el.setAttribute('data-target', binding.arg) } else { el.setAttribute('href', `#${binding.arg}`) }...
JavaScript
0
@@ -116,16 +116,63 @@ () =%3E %7B%0A + const params = binding.value %7C%7C %7B%7D%0A @@ -265,16 +265,32 @@ ding.arg + %7C%7C params.value )%0A @@ -359,16 +359,32 @@ ding.arg + %7C%7C params.value %7D%60)%0A @@ -439,37 +439,34 @@ .arg -%7D%60).modal(binding.value %7C%7C %7B%7D + %7C%...
819cd1d632a84249f8fb551efdb7e101a9b0c021
add e.preventDefault() to span selectstart
src/draggable-number.js
src/draggable-number.js
(function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(factory); } else if (typeof exports === 'object') { // Node. Does not work with strict CommonJS, but // only CommonJS-like enviroments that support module...
JavaScript
0.000001
@@ -3971,20 +3971,49 @@ unction( +e ) %7B%0A + e.preventDefault();%0A
0295ac003ae02300ebc3069e6141e6610c919d93
Check for night evt type
lib/timeEmitter.js
lib/timeEmitter.js
'use babel'; import EventEmitter from 'events'; export default class TimeEmitter extends EventEmitter { constructor(dayTime, nightTime) { let curTime = new Date(); let msToDay = Math.abs(curTime - dayTime); let msToNight = Math.abs(curTime - nightTime); this.dayTimerId = setTimeout(() => this.emit(...
JavaScript
0
@@ -536,16 +536,37 @@ else + if (evt === 'night') %0A t
85dee3ab93f3f8a46f211944cc81c92b8ce52189
Add mock json_decode
tests/js/twig/helpers/BaseTest.js
tests/js/twig/helpers/BaseTest.js
global._ = require('lodash'); global.fs = require('fs'); global.util = require('util'); global.path = require('path'); global.assert = require('chai').assert; global.expect = require('chai').expect; global.sinon = require('sinon'); global.moment = require('moment'); var Asserter = require('./Asserter'); var phpParser ...
JavaScript
0.000066
@@ -1096,16 +1096,115 @@ n null;%0A + %7D,%0A 'json_decode': function (json) %7B%0A return '';%0A
dfecc7d1bf46262e2ed4872f533d76e6d5882108
use logger.debug
lib/trackfinder.js
lib/trackfinder.js
/* * trackfinder * https://github.com/goliatone/trackfinder * * Copyright (c) 2014 goliatone * Licensed under the MIT license. */ 'use strict'; var express = require('express'), debug = require('debug')('trackfinder'), //TODO: Use gextend! extend = require('extend'), _path = require('path'), f...
JavaScript
0.000001
@@ -181,53 +181,8 @@ '),%0A - debug = require('debug')('trackfinder'),%0A @@ -2554,24 +2554,36 @@ ilter);%0A +this.logger. debug('LOAD @@ -2743,24 +2743,36 @@ ();%0A +this.logger. debug('route @@ -3386,16 +3386,28 @@ +this.logger. debug('v
0d576e758332a634b7dac0043657756875dedfd3
Add tests for unreadMessagesClass
tests/unit/models/channel-test.js
tests/unit/models/channel-test.js
import { moduleFor, test } from 'ember-qunit'; moduleFor('model:channel', 'Unit | Model | channel'); test('it exists', function(assert) { let model = this.subject(); assert.ok(!!model); }); test('#slug', function(assert) { var model = this.subject(); model.set('name', '#kosmos-dev'); assert.ok(model.get('...
JavaScript
0
@@ -336,32 +336,57 @@ mos-dev');%0A%7D);%0A%0A +//%0A// formattedTopic%0A//%0A%0A test('#formatted @@ -975,16 +975,1153 @@ quee&gt;');%0A%7D);%0A +%0A//%0A// unreadMessagesClass%0A//%0A%0Atest('#unreadMessagesClass is null when channel is visible', function(assert) %7B%0A var channel = this.subject();%0A channel.s...
b20b30a84f46d6c87bd574dedd882d18272de5ce
add parseSales support for mercenaries
lib/utils/utils.js
lib/utils/utils.js
'use strict'; const moment = require('moment'); const _ = require('lodash'); const rarityfilter = require('./filter/rarityfilter'); const logger = require('../logger'); const config = require('../../config'); module.exports = { /** * @function Parses the raw content of a sales file and returns a JSON array repres...
JavaScript
0
@@ -1819,47 +1819,127 @@ ype. -length !== 0 && type.indexOf(%22%22) === -1 +indexOf(%22Mercenary%22) !== -1) %7B%0A%09%09%09%09sale.type = 'Mercenary';%0A%09%09%09%7D else if (!sale.name.match(/(Stardust%7CTreasure Chest)/) ) %7B%0A @@ -1960,17 +1960,16 @@ = 'Card' -; %0A%09%09%09%7D el
1f3789f1bf0dc1f804d28dbe3912dd356a0adb11
Add view index.
lib/views/index.js
lib/views/index.js
module.exports = {};
JavaScript
0
@@ -11,11 +11,128 @@ orts = %7B +%0A CollectionPaginationView: require('./collection-pagination-view'),%0A CompositeView: require('./composite-view'),%0A%0A %7D;%0A
8a8bc72c392602284bd99e01f8ac1fa63d514594
refactor webpack-cli
lib/webpack-cli.js
lib/webpack-cli.js
const { resolve, parse, join } = require('path'); const { existsSync } = require('fs'); const GroupHelper = require('./utils/group-helper'); const Compiler = require('./utils/compiler'); const webpackMerge = require('webpack-merge'); class WebpackCLI extends GroupHelper { constructor() { super(); ...
JavaScript
0.001531
@@ -6237,18 +6237,20 @@ -le +cons t comman @@ -6257,38 +6257,36 @@ d = -null;%0A args.forEach(arg +Object.keys(Commands).map( i =%3E @@ -6303,23 +6303,19 @@ if ( -Command +arg s.includ @@ -6321,28 +6321,73 @@ des( -arg)) command = arg; +Commands%5Bi%5D)) %7B%0A return Comman...
a5bf7f15fd175097e6f21aa42dec4bbf04549372
Implement numbered lists formatting.
lib/writer/text.js
lib/writer/text.js
var assert = require('assert'); module.exports = function formatText(text, options) { assert(text.shift() == 'text'); var result = []; text.forEach(function(block) { result.push(formatBlock(block)); }); var output = result.join('\n\n') + '\n'; return output; }; function formatBlock(block) { var ty...
JavaScript
0.000001
@@ -134,16 +134,46 @@ t = %5B%5D;%0A + var numbers = %5B0, 0, 0, 0%5D;%0A text.f @@ -230,16 +230,25 @@ ck(block +, numbers ));%0A %7D) @@ -336,24 +336,33 @@ tBlock(block +, numbers ) %7B%0A var ty @@ -450,24 +450,186 @@ tr.level);%0A%0A + if (type === 'numitem') %7B%0A numbers%5Battr.level%5D++;%0A %7D...
88ff4dd4bfb55e4eb350db79450ccfcb86dc79a6
Fixed a string
modules/moderation/addRole.js
modules/moderation/addRole.js
/* * Copyright (C) 2017 Sankarsan Kampa * https://sankarsankampa.com/contact * * This file is a part of Bastion Discord BOT. * https://github.com/snkrsnkampa/Bastion * * This code is licensed under the SNKRSN Shared License. It is free to * download, copy, compi...
JavaScript
0.999997
@@ -2919,13 +2919,11 @@ : 'R -eason +ole ',%0D%0A
75235047e35c8c166ca857bb17fd54f2d27ec98b
Remove extra abstraction over cache
init/LoaderImpl.js
init/LoaderImpl.js
(function (global, globalEval) { var Deferred; Deferred = getDeferredImpl; LoaderImpl = function LoaderImpl (parent, options) { // TODO: inherit from parent this._cache = createCache(); }; LoaderImpl.prototype = { global: global, strict: true, "eval": function (source) { return globalEval(source...
JavaScript
0.000001
@@ -78,21 +78,8 @@ ;%0A%0A%09 -LoaderImpl = func @@ -129,24 +129,30 @@ DO: inherit +cache from parent%0A @@ -162,17 +162,16 @@ his. -_ cache = crea @@ -170,26 +170,14 @@ e = -createCache() +%7B%7D ;%0A%09%7D -; %0A%0A%09L @@ -655,42 +655,63 @@ on ( -) %7B%7D,%0A%09%09has: function () %7B +name) %7B%0A%0...
9a283637ece1252e2145d5d01c5286a084f97c3c
Remove Cache
sw.js
sw.js
importScripts('serviceworker-cache-polyfill.js'); var CACHE_NAME = 'simple-pwa-v2'; // File want to cache var urlsToCache = [ './', './index.html', './manifest.json', './serviceworker-cache-polyfill.js', './src/assets/img/blank-thumbnail.png', './src/assets/img/favicon.png', './src/assets/img/icon-48....
JavaScript
0.000001
@@ -65,28 +65,28 @@ AME = 's -imple-pwa-v2 +tatistika-v1 ';%0A%0A// F @@ -2662,20 +2662,20 @@ %5B's -imple-pwa-v2 +tatistika-v1 '%5D;%0A
a309bd26e83c121c0ac3f150735f5ae2ed347a30
Add import/extensions for TS
ts.js
ts.js
let base = require('./') module.exports = { ...base, parser: '@typescript-eslint/parser', parserOptions: { tsconfigRootDir: process.cwd(), project: ['./tsconfig.json'] }, plugins: [...base.plugins, '@typescript-eslint'], overrides: [ ...base.overrides, { files: ['*.{ts,tsx}'], r...
JavaScript
0
@@ -2671,16 +2671,93 @@ rror',%0A%0A + 'import/extensions': %5B'error', 'always', %7B ignorePackages: true %7D%5D,%0A%0A
f67aae59e9928a632494849c57bab3635908e2b7
Add karma
joce/karma.conf.js
joce/karma.conf.js
'use strict'; // Karma configuration module.exports = function(config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '', // Frameworks to use frameworks: ['jasmine'], // 'ngResource', 'ngCookies', 'ngAnimate', 'ngTouch', 'ngSanitize'...
JavaScript
0.999609
@@ -1135,24 +1135,76 @@ router.js',%0A + 'app/lib/ngCordova/dist/ng-cordova.js',%0A
5bb04806fbdb085b81266db6b9c24e20c1b4b225
Revert "Kaas"
js/entities/HUD.js
js/entities/HUD.js
/** * a HUD container kaas */ game.HUD = game.HUD || {}; game.HUD.Container = me.ObjectContainer.extend({ init : function () { this.parent(); this.isPersistent = true; this.collidable = false; this.z = Infinity; this.name = "HUD"; this.addButton(); }, remove : function () { me.game.re...
JavaScript
0
@@ -19,13 +19,8 @@ iner - kaas %0A */
5b7f342cbd8e9e5bae3f4c58cd50f8e5ff3efcab
Update game_manager.js
js/game_manager.js
js/game_manager.js
function GameManager(size, InputManager, Actuator, ScoreManager) { this.size = size; // Size of the grid this.inputManager = new InputManager; this.scoreManager = new ScoreManager; this.actuator = new Actuator; this.startTiles = 2; this.inputManager.on("move", this.move.bind(this)); this.i...
JavaScript
0.000002
@@ -247,17 +247,18 @@ les = -2 +15 ;%0A%0A thi @@ -1660,18 +1660,20 @@ Cell(), -- 1 +024 );%0A%0A
1dd2012bb36f454767c7f35cade5c634df96d7c3
Update php patterns
js/language/php.js
js/language/php.js
window.Rainbow = window.Rainbow || {}; Rainbow.extend('php', [ { 'name': 'support', 'pattern': /\becho\b/g }, { 'name': 'variable', 'pattern': /\$\w+\b/g }, { 'name': 'keyword.dot', 'pattern': /\./g }, { 'name': 'keyword', 'pat...
JavaScript
0
@@ -339,16 +339,21 @@ e%7Cbreak%7C +case%7C require( @@ -740,20 +740,54 @@ rray -%7Casort +(_sum%7C_rand)?%7Casort%7Ccount%7Cempty%7Cexplode %7Cfile_ +( get_ @@ -795,16 +795,24 @@ ontents%7C +exists)%7C get_(cal @@ -839,16 +839,46 @@ n_array%7C +is_(numeric%7Carray%7Clink)%7Cisset%7C json_(en @@ -903,16 +903,2...
547a7623ccc29fac5d9f0fdcfb1c1304e267ad6e
Change lsKeyView to lsKey in SwitchModel
js/mylib/switch.js
js/mylib/switch.js
// ---------------------------------------------------------------- // Switch Class class SwitchModel extends CommonModel { constructor({ template = null, name = 'Common Switch', view = null, lsKeyView = null, triggerSelector = null, switchSelector = null, toggleTimeMs = 500 } = {}) ...
JavaScript
0
@@ -210,20 +210,16 @@ lsKey -View = null, @@ -398,20 +398,16 @@ f (lsKey -View != null @@ -421,20 +421,16 @@ lsKey -View = %60View @@ -437,20 +437,16 @@ .$%7BlsKey -View %7D%60;%0A @@ -524,20 +524,16 @@ = lsKey -View ;%0A th
b0bbb95c26577747b66d20fe46034dd1639e184b
add a way to override the subcriptions directory
js/search/utils.js
js/search/utils.js
const ByteArray = imports.byteArray; const Gio = imports.gi.Gio; const GLib = imports.gi.GLib; const AsyncTask = imports.search.asyncTask; /* Returns the current locale's language code, or null if one cannot be found */ function get_current_language () { var locales = GLib.get_language_names(); // we don't c...
JavaScript
0.000019
@@ -3877,61 +3877,490 @@ let -path = GLib.build_filenamev(%5BGLib.get_user_data_dir() +user_data_path;%0A if (get_running_under_flatpak()) %7B%0A // When running under flatpak, GLib.get_user_data_dir() points to the%0A // private home inside the application, not the real home.%0A // Use the ab...
c2ad7d266cf2f31080785082380cf647ea3383af
Add span support to UITools
js/window_utils.js
js/window_utils.js
/**** glumal UI tools: For creating a consistent UI across all glumal windows. ****/ var UI = { textbox: function (label_text) { var section = document.createElement("div"); var label = document.createElement("label"); var input = document.createElement("input"); input.setAttri...
JavaScript
0
@@ -2635,21 +2635,276 @@ %0A %7D;%0A + %7D,%0A span: function (text) %7B%0A var s = document.createElement(%22span%22);%0A s.innerHTML = text;%0A return %7B%0A elem: s,%0A label: function (text) %7B%0A this.elem.innerHTML = text;%0A %7D%...
de463c20c9729cfe0694af3c0a63077791e14bc2
update make-command-win.js. update the command to remove the extra slash if it starts with disk
make-command-win.js
make-command-win.js
'use strict'; function makeCommandWin(argv) { var command = 'dir '; if (typeof argv === 'undefined') { argv = {}; } if (argv.isAbsolutePath !== true) { command += '.'; } if (typeof argv.dir === 'string') { command += '/' + argv.dir; } if (typeof argv.name === 'st...
JavaScript
0.000017
@@ -549,16 +549,167 @@ /b/s';%0A + if (command.substring(0, 5) === 'dir %5C%5C') %7B%0A //fix for C:%5C... cases%0A command = command.substring(0, 4) + command.substring(5);%0A %7D%0A retu
bac84c011ca023b93bf313f1e255f2fe68a81774
Update comments and order.
assets/javascript/main/main.scripts.js
assets/javascript/main/main.scripts.js
/** * main.script.js * * Custom, additional scripts */ // Executed on DOM ready domready(function () { // Invoke modules Alerts.init(push_message); // Init alerts Expand.init(); // Init expand / collap...
JavaScript
0
@@ -100,25 +100,30 @@ ion () %7B%0A%0A%09/ -/ +**%0A%09 * Invoke modu @@ -126,16 +126,22 @@ modules%0A +%09 */%0A%0A %09Alerts. @@ -629,17 +629,22 @@ opup%0A%0A%09/ -/ +**%0A%09 * Invoke @@ -656,212 +656,11 @@ ns%0A%09 -// gumshoe.init(); // Init gum...
9d86563d6833889ceff88dd18b568d9870ebedeb
Update dosamigos-ckeditor.widget.js
assets/js/dosamigos-ckeditor.widget.js
assets/js/dosamigos-ckeditor.widget.js
/** * @copyright Copyright (c) 2014 2amigOS! Consulting Group LLC * @link http://2amigos.us * @license http://www.opensource.org/licenses/bsd-license.php New BSD License */ if (typeof dosamigos == "undefined" || !dosamigos) { var dosamigos = {}; } dosamigos.ckEditorWidget = (function ($) { var pub = { ...
JavaScript
0
@@ -720,16 +720,17 @@ k', '.ck +e _dialog_ @@ -757,18 +757,20 @@ lick', ' +. ck +e _dialog_ @@ -1213,8 +1213,9 @@ jQuery); +%0A
049a975ad0a522628b2f94a6859c62e2a290177a
fix code style
marionette.modal.js
marionette.modal.js
(function (root, factory) { if (typeof define === 'function' && define.amd) { define(['backbone', 'underscore', 'marionette'], function (Backbone, _, Marionette) { return factory(Backbone, _, Marionette); }); } else if (typeof exports !== 'undefined') { var Backbone = re...
JavaScript
0.000022
@@ -21,17 +21,16 @@ tory) %7B%0A -%0A if ( @@ -414,24 +414,33 @@ rionette');%0A + %0A modu
7e90141cc755846ff661a90b1b423cc25614f1f1
Fix stop time notation in timetracking advanced history
src/history-advanced.js
src/history-advanced.js
const timetrack = require('./timetrack'); const Sugar = require('sugar-date'); const calculateDuration = require('./calculateDuration'); module.exports = (pluginContext) => { return (query, env = {}) => { return new Promise((resolve, reject) => { // first trim all spaces query = que...
JavaScript
0.000014
@@ -2716,35 +2716,34 @@ .create(entry.st -art +op ), '%25I:%25M:%25S %25p'
2c918ea4a7d59d0919e79cc5eee1ee91d0d77c7d
remove "release candidate" label
src/js/download-data.js
src/js/download-data.js
angular.module('download-data', []) .value('BRANCHES', [ { branch: '1.6.*', version: '${CDN_VERSION_1_6}', title: '1.6.x (release candidate)', cssClass: 'branch-1-6-x', showOnButton: true }, { branch: '1.5.*', version: '${CDN_VERSION_1_5}', title: '1.5.x (stable)', ...
JavaScript
0
@@ -136,180 +136,14 @@ .x ( -release candidate)',%0A cssClass: 'branch-1-6-x',%0A showOnButton: true%0A %7D,%0A %7B%0A branch: '1.5.*', version: '$%7BCDN_VERSION_1_5%7D',%0A title: '1.5.x (stable +latest )',%0A @@ -168,17 +168,17 @@ ranch-1- -5 +6 -x',%0A
0d4bdf5611f11d51d35d3ecf55617fd1425d104a
Change weather provider URL
src/js/pebble-js-app.js
src/js/pebble-js-app.js
function degToText(deg) { if (deg < 45) { return "NNE"; } else if (deg == 45) { return "NE"; } else if (deg > 45 && deg < 90) { return "ENE"; } else if (deg == 90) { return "E"; } else if (deg > 90 && deg < 135) { return "ESE"; } else if (deg == 135) { return "SE"; } else if (deg >...
JavaScript
0
@@ -907,15 +907,15 @@ p:// -parking +weather .was
d6acdfdbdef05e6a03704e7e58099229bd1e4caa
Add todo
src/js/utils/modules.js
src/js/utils/modules.js
import _ from 'lodash'; // Returns a random configuration of a module's timetable lessons. // Used when a module is first added. export function randomLessonConfiguration(lessons) { return _(lessons) .groupBy('LessonType') .mapValues((group) => { return _.groupBy(group, 'ClassNo'); }) .mapVal...
JavaScript
0.000002
@@ -125,16 +125,83 @@ added.%0A +// TODO: Suggest a configuration that does not clash with itself.%0A export f
df213fba3f02c0d2f6c26a77ca7aab1a890782af
add handlebars 'eq' and 'in' helpers
src/js/yunohost/main.js
src/js/yunohost/main.js
(function() { var app = Sammy('#main', function (sam) { /** * Sammy Configuration * */ // Plugins sam.use('Handlebars', 'ms'); Handlebars.registerHelper('ucwords', function(str) { return (str + '').replace(/^([a-z\u00E0-\u00FC])|\s+([a-...
JavaScript
0.000279
@@ -2347,32 +2347,493 @@ );%0A %7D);%0A%0A + // equality stuff because mustache/Handlebars is lame%0A // source https://stackoverflow.com/a/31632215%0A Handlebars.registerHelper('eq', function(a, b) %7B%0A return a === b;%0A %7D);%0A%0A Handlebars.registerHelper('in',...
b0f0efbb4188b57ca2eb180c383f50e672a76a08
Fix derived state 'hasEnabledItem' of ToolGroup.
src/kit/ui/ToolGroup.js
src/kit/ui/ToolGroup.js
import { Component } from 'substance' const DISABLED = { disabled: true } /** * A component that renders a group of tools. * * @param {string} props.name * @param {string} props.style * @param {string} props.theme * @param {boolean} props.hideDisabled * @param {array} props.items array of item specifications ...
JavaScript
0
@@ -3117,16 +3117,39 @@ .enabled + %7C%7C item.hasEnabledItem )%0A re
251da357d6b713137326effb84f67bd7ce818853
Treat False None and True as literals (#1920)
src/languages/python.js
src/languages/python.js
/* Language: Python Category: common */ function(hljs) { var KEYWORDS = { keyword: 'and elif is global as in if from raise for except finally print import pass return ' + 'exec else break not with class assert yield try while continue del or def lambda ' + 'async await nonlocal|10 None True Fal...
JavaScript
0.996872
@@ -303,24 +303,8 @@ l%7C10 - None True False ',%0A @@ -347,16 +347,48 @@ emented' +,%0A literal: 'False None True' %0A %7D;%0A
c701068f310fe784fcc6ee5d59b7920d716091cd
Update registerController.js
js/controllers/registerController.js
js/controllers/registerController.js
/*! Chronicals, v1.0 Created by Kiani Lannoye & Gilles Vandewiele, commissioned by UZ Ghent https://github.com/kianilannoye/Chronicals This file contains the controller to add and modify headaches. */ angular.module('Chronic').config(['$httpProvider', function ($httpProvider) { $httpProvider.defaults.useXDo...
JavaScript
0.000001
@@ -2398,18 +2398,17 @@ $http.p -os +u t('http:
6781a08737abb08268aff4da2ac79c6714faf771
Update lockableContainerObject.js
js/object/lockableContainerObject.js
js/object/lockableContainerObject.js
function LockableContainerObject() { 'use strict'; var _MSG_HAS_CONTENTS = "This container already has contents"; var _MSG_INCORRECT_KEY = "The key doesn't match the lock of this container"; var _MSG_LOCKED = 'This container is locked'; var _MSG_NO_CONTENTS = "This container has no contents"; ...
JavaScript
0.000001
@@ -437,16 +437,17 @@ 'Reset +t ableCoun @@ -946,76 +946,33 @@ -var args = arguments%5B0%5D;%0A this._init(args%5B1%5D, args%5B2%5D, args%5B3 +this._init(arguments%5B0%5D%5B1 %5D);%0A @@ -1277,18 +1277,8 @@ var - CALLBACK, KEY @@ -1368,103 +1368,14 @@ lys( -callback, errback, key) %7B%0A C...
c291e4d78681b5111b4a2c7f480bd7bf18abc34c
fix typeahead test
js/tests/unit/bootstrap-typeahead.js
js/tests/unit/bootstrap-typeahead.js
$(function () { module("bootstrap-typeahead") test("should be defined on jquery object", function () { ok($(document.body).typeahead, 'alert method is defined') }) test("should return element", function () { ok($(document.body).typeahead()[0] == document.body, 'document.body ret...
JavaScript
0.000001
@@ -3787,37 +3787,36 @@ type: 'key -press +down '%0A , keyC @@ -3980,21 +3980,20 @@ pe: 'key -press +down '%0A
271dcbd88ce7d248eb903ad30918c45f85604192
Fix Karma failure "Disconnected (1 times)" by increasing timeout
jsapp/test/configs/karma-amd.conf.js
jsapp/test/configs/karma-amd.conf.js
module.exports = function(config) { var path = require('path'); function project(pattern, included, watched, served) { if(included === undefined) { included = false; } if(watched === undefined) { watched = false; } if(served === undefined) { served = true; } return { ...
JavaScript
0.000113
@@ -2374,17 +2374,17 @@ imeout: -2 +6 0000,%0A
568e937a42f1040607771ba6830460e9386e1647
add embed explore to transifex blacklist
layout/head/app.js
layout/head/app.js
import React from 'react'; import PropTypes from 'prop-types'; import HeadNext from 'next/head'; // Redux import { connect } from 'react-redux'; // Utils import { USERREPORT_BLACKLIST } from 'utils/user-report'; import Package from '../../package.json'; const TRANSIFEX_BLACKLIST = [ '/app/embed/EmbedDashboard', ...
JavaScript
0
@@ -509,16 +509,40 @@ atasets' +,%0A '/app/embed/explore' %0A%5D;%0A%0Acla