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 |
|---|---|---|---|---|---|---|---|
46c4a15eae7c1453f725e22472f5051666e3843d | Add inbox to i18n translations | simul/index.ios.js | simul/index.ios.js | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
NavigatorIOS,
} from 'react-native';
import I18n from 'react-native-i18n'
I18n.fallbacks = true;
I18n.translations = {
en: {
login: 'Login',
enter: 'Enter',
register: 'Register',
home: 'Home',
sear... | JavaScript | 0 | @@ -756,24 +756,44 @@
l Account',%0A
+ inbox: 'Inbox',%0A
from: 'F
@@ -1410,16 +1410,43 @@
%D8%AD%D8%B3%D8%A7%D8%A8',%0A
+ inbox: '%D8%B5%D9%86%D8%AF%D9%88%D9%82 %D8%A7%D9%84%D9%88%D8%A7%D8%B1%D8%AF',%0A
from
|
081220f071c413988a562eec34e08e828b8a23d4 | fix trailing newlines in Changelog | version.js | version.js | const readFileSync = require('fs').readFileSync;
const execSync = require('child_process').execSync;
const validateSemver = require('semver').valid;
const isSemverValid = version => validateSemver(version) !== null;
/* VERSION */
const pkg = JSON.parse(readFileSync('./package.json'));
const version = pkg.version;
if (... | JavaScript | 0.000003 | @@ -1434,13 +1434,11 @@
nc('
-mv -f
+cat
%5C%5C#
@@ -1452,28 +1452,130 @@
angelog
-CHANGELOG.md
+%7C sed -e :a -e %5C'/%5E%5C%5Cn*$/%7B$d;N;%7D;/%5C%5Cn$/ba%5C' %3E CHANGELOG.md', %7B stdio: 'inherit' %7D);%0AexecSync('rm %5C%5C#temp_changelog
', %7B std
|
c2a965a540aeff22172ea94d5a0826e9cb11812c | Update version string to 2.5.1-pre.1 | version.js | version.js | if (enyo && enyo.version) {
enyo.version.onyx = "2.5.0";
}
| JavaScript | 0.000001 | @@ -51,9 +51,15 @@
2.5.
-0
+1-pre.1
%22;%0A%7D
|
32bdf71038e41e54aa6552666d5c6bd3413a9f88 | Add quest trigger op check. | client/js/helpers/questscriptmanager.js | client/js/helpers/questscriptmanager.js | 'use strict';
var knownServerOnlyQsds = [
'3DDATA/QUESTDATA/SERVER/SOLDIER.QSD',
'3DDATA/QUESTDATA/SERVER/MUSE.QSD',
'3DDATA/QUESTDATA/SERVER/COMBAT.QSD',
'3DDATA/QUESTDATA/SERVER/HAWKER.QSD',
'3DDATA/QUESTDATA/SERVER/DEALER.QSD',
'3DDATA/QUESTDATA/NPC/QN-350.QSD',
'3DDATA/QUESTDATA/NPC/QN-070.QSD',
'3... | JavaScript | 0 | @@ -711,16 +711,357 @@
er;%0A%7D;%0A%0A
+function _checkOp(op, left, right) %7B%0A switch (op) %7B%0A case 0: return left === right;%0A case 1: return left %3E right;%0A case 2: return left %3E= right;%0A case 3: return left %3C right;%0A case 4: return left %3C= right;%0A case 10: return left !== r... |
0e005ab562621cf95f7962366291b3197b655558 | remove params from Api get | client/src/services/HistoriesService.js | client/src/services/HistoriesService.js | import Api from '@/services/Api'
export default {
index (params) {
return Api().get('histories', {
params: params
})
},
post (history) {
return Api().post('histories', history)
}
}
| JavaScript | 0 | @@ -99,38 +99,8 @@
ies'
-, %7B%0A params: params%0A %7D
)%0A
|
58a9c7bdc2cb2959d43300a5d963650e362fc89b | Update hostList.js | client/views/hosts/hostList/hostList.js | client/views/hosts/hostList/hostList.js | Template.HostList.events({
});
Template.HostList.helpers({
// Get list of Hosts sorted by the sort field.
hosts: function () {
return Hosts.find({}, {sort: {sort: 1}});
}
});
Template.HostList.rendered = function () {
// Make rows sortable/draggable using Jquery-UI.
this.$('#sortable').sortable({
... | JavaScript | 0.000001 | @@ -1202,430 +1202,4 @@
%7D;%0A%0A
-// Returns a list of host types.%0ATemplate.registerHelper('hostTypes', function () %7B%0A %09var _default = '-- Select one --';%0A%09var a = this.type %7C%7C _default;%0A%09return %5B_default,%22Drupal%22, %22Wordpress%22%5D.map(%0A%09%09function(s)%7B%0A%09%09%09var selected = (s... |
6b9e7a40224281247213aaf3c9cfe47bbd1d7ed6 | Rename contrib_total_commits to calculate_total_commits. | static/js/portico/team.js | static/js/portico/team.js | const contributors_list = page_params.contributors;
const repo_name_to_tab_name = {
zulip: "server",
"zulip-desktop": "desktop",
"zulip-mobile": "mobile",
"python-zulip-api": "python-zulip-api",
"zulip-js": "zulip-js",
zulipbot: "zulipbot",
"zulip-terminal": "terminal",
"zulip-ios-legac... | JavaScript | 0 | @@ -513,22 +513,24 @@
nction c
-ontrib
+alculate
_total_c
@@ -1570,22 +1570,24 @@
mmits: c
-ontrib
+alculate
_total_c
|
5b27ced6036bf0801628c0147b86deae5f19216d | remove console.log command | static/js/super-search.js | static/js/super-search.js | /* Super Search
Author: Kushagra Gour (http://kushagragour.in)
MIT Licensed
*/
(function () {
var isSearchOpen = false,
searchEl = document.querySelector('#js-search'),
searchInputEl = document.querySelector('#js-search__input'),
searchResultsEl = document.querySelector('#js-search... | JavaScript | 0.000019 | @@ -3992,35 +3992,8 @@
dth;
-%0A console.log(posts)
%0A%0A
|
dc6b8d7aa7a040ebb8cc2ead6ccb93fbd96fb5e0 | Update wallaby conf | wallaby.js | wallaby.js | var wallabify = require('wallabify');
var wallabyPostprocessor = wallabify({
// browserify options, such as
// insertGlobals: false
}
// you may also pass an initializer function to chain other
// browserify options, such as transformers
// , b => b.exclude('mkdirp').transform(require('babelify'))
);
m... | JavaScript | 0 | @@ -73,247 +73,9 @@
fy(%7B
-%0A // browserify options, such as%0A // insertGlobals: false%0A %7D%0A // you may also pass an initializer function to chain other%0A // browserify options, such as transformers%0A // , b =%3E b.exclude('mkdirp').transform(require('babelify'))%0A
+%7D
);%0A%0A
|
98c11d9666c0496aa4d12ad311c111de39093e75 | add time | weather.js | weather.js | var Tinkerforge = require('tinkerforge');
var LIGHT;
var BARO;
var HUMI;
var al;
var h;
var b;
var ipcon;
var Humidity;
var AirPressure;
var Temperature;
var Illuminance;
/* istanbul ignore next */
function ipcon_connect(HOST, PORT) {
ipcon.connect(HOST, PORT,
function(error) {
switch (error) {
cas... | JavaScript | 0.00065 | @@ -2887,16 +2887,287 @@
next */%0A
+function getTime() %7B%0A var date = new Date();%0A return ((date.getHours() %3C 10 ? %220%22 : %22%22) + date.getHours()) + %22:%22 + ((date.getMinutes() %3C 10 ? %220%22 : %22%22) + date.getMinutes()) + %22:%22 + ((date.getSeconds() %3C 10 ? %220%22 : %22%22) + date.getSeconds(... |
2938bdc4f281829163e1c8f804921cfa66cb96ad | Use mventory spreadsheet | lambda/app.js | lambda/app.js | var https = require("https");
var GoogleSpreadsheet = require("google-spreadsheet");
var config = {
credentialPath: "./creds.json",
siteUrl: "https://api.trademe.co.nz/v1/SiteStats.json",
sheetId: "1PvLp6O5NLeXZW00l79PXL0Zqcy3ysAocmBmX7tKTPPU",
sheetTitle: "Main"
};
exports.handler = function (event, context) {
... | JavaScript | 0.000001 | @@ -200,51 +200,51 @@
: %221
-PvLp6O5NLeXZW00l79PXL0Zqcy3ysAocmBmX7tKTPPU
+RMcibAPjuPim7N_MUFdVeYqiN_ngroNrQzsHy6VDwB4
%22,%0A%09
|
60e23be34539bbd5a7da6c3aa68220a0f5166799 | level name to uppercase | lib/Logger.js | lib/Logger.js |
function Logger(manager, parent, name, level) {
level = level || Logger.NOTSET;
if (Logger.getLevelName(level) === '') {
throw new Error('[Invalid argument] Unknown level: \'' + level + '\'.');
}
/**
* Instance of manager, which holds the hierarchy of loggers.
* @type {Object}
*/
this._manager = manager... | JavaScript | 0.999999 | @@ -983,21 +983,21 @@
Name = '
-debug
+DEBUG
';%0A%09%7D el
@@ -1043,20 +1043,20 @@
Name = '
-info
+INFO
';%0A%09%7D el
@@ -1105,23 +1105,23 @@
Name = '
-warning
+WARNING
';%0A%09%7D el
@@ -1168,21 +1168,21 @@
Name = '
-error
+ERROR
';%0A%09%7D el
@@ -1232,24 +1232,24 @@
Name = '
-critical
+CRITICAL
';%0A%09%... |
d8862e6c2039db62a09f5bf365b943abe8e3c851 | update lib before publishing | lib/Select.js | lib/Select.js | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("... | JavaScript | 0 | @@ -1165,24 +1165,157 @@
mControl);%0A%0A
+var _FormHelperText = require(%22@material-ui/core/FormHelperText%22);%0A%0Avar _FormHelperText2 = _interopRequireDefault(_FormHelperText);%0A%0A
var _Compose
@@ -4745,32 +4745,70 @@
= _props.form,%0A
+ error = _props.error,%0A
@@ -5937,32 ... |
50e6b3dd64a2f2a04055db63818f021b73b1d570 | Add some semi colons | lib/Server.js | lib/Server.js | var express = require('express');
var bodyParser = require("body-parser");
var hb = require('handlebars');
var fs = require('fs');
var forever = require('forever-monitor');
var WifiManager = require('./WifiManager');
const path = require('path');
var hbCache = {};
hb.registerHelper('toJSON', function(object){
return... | JavaScript | 0.999969 | @@ -2086,16 +2086,17 @@
.start()
+;
%0A %7D
@@ -2444,16 +2444,17 @@
.apps%7D))
+;
%0A
|
f72280e7f59f882b8e6f7335225e6e17397417fd | Fix callback in server | lib/Server.js | lib/Server.js | 'use strict';
const EventEmitter = require('events');
const net = require('net');
const Connection = require('./Connection');
const packet = require('./packet');
class Server extends EventEmitter {
constructor(options, cb) {
super();
this._server = net.createServer((socket) => {
this.emit('session'... | JavaScript | 0.000001 | @@ -1965,16 +1965,20 @@
_SESSION
+, cb
);%0A %7D%0A%0A
|
d8f6ca6e479bd3e94690dde4863619c36e9b1380 | Update Update.js | lib/Update.js | lib/Update.js | "use strict";
var chalk = require('chalk');
var readline = require('readline');
var rl = readline.createInterface(process.stdin, process.stdout);
var sys = require('sys');
var exec = require('child_process').exec;
var fs = require('fs');
var request = require('request');
var tempWrite = require('temp-write');... | JavaScript | 0.000002 | @@ -433,19 +433,20 @@
('./
-version.txt
+package.json
', '
@@ -732,20 +732,40 @@
%0A%09%09%09if (
-body
+JSON.parse(body).version
%3E JSON.
|
89e5621a9d3021fbfb69cb98d8ef519620ac001d | Fix typo | lib/bundle.js | lib/bundle.js | /*
* Copyright 2014-2015 Guy Bedford (http://guybedford.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | JavaScript | 0.999999 | @@ -1694,16 +1694,17 @@
, 'Depen
+d
ency tre
|
6f5a12fb532fdbd174ca654465a53c2509dc74f0 | create entrypoint query | lib/cayley.js | lib/cayley.js | // Dependencies
const cayley = require('cayley')
// RDF constants
const RDF_SYNTAX = '<http://www.w3.org/1999/02/22-rdf-syntax-ns#';
const FLOW_VOCAB = '<http://schema.jillix.net/vocab/';
const SCHEMA = '<http://schema.org/';
// export the cayley client for custom use
exports.connect = (scope, state, args, data, next... | JavaScript | 0.000002 | @@ -470,37 +470,420 @@
IES */%0A%0A
-// fixed cayley query
+exports.entrypoint = (g, entrypoint_name) =%3E %7B%0A return %5B%0A g.V(entrypoint_name).In().In().Tag('subject')%0A .Out('%3Chttp://schema.jillix.net/vocab/environment%3E', 'predicate')%0A .Out('%3Chttp://www.w3.org/1999/02/22-rdf-syn... |
aebfe5eae145d4ba472aed6625016efe89db02df | remove dead code | lib/client.js | lib/client.js |
/**
* Module dependencies.
*/
var net = require('net');
var url = require('url');
var http = require('http');
var Reader = require('./reader');
var preprocess = require('./preprocessor');
var debug = require('debug')('icecast:client');
/**
* Module exports.
*/
exports = module.exports = Client;
/**
* The `Cli... | JavaScript | 0.000002 | @@ -31,60 +31,8 @@
*/%0A%0A
-var net = require('net');%0Avar url = require('url');%0A
var
@@ -1163,83 +1163,8 @@
) %7B%0A
- if ('string' == typeof options) %7B%0A options = url.parse(options);%0A %7D%0A%0A
va
|
31290eaff01f202a0b52cd35d48aa1a6531c5d9d | Add function parseResponse | lib/client.js | lib/client.js | /*
** Module dependencies
*/
var request = require('request');
var Parser = require('inspire-parser').Parser;
var _ = require('lodash');
var Harvester = require('./harvest');
var stringstream = require('stringstream');
/*
** Constructor
*/
function Client(url, options) {
if (!url) throw new Error('URL is required... | JavaScript | 0.000007 | @@ -210,24 +210,435 @@
stream');%0A%0A%0A
+function parseResponse(reqResponse, done) %7B%0A const doneOnce = _.once(done);%0A const parser = new Parser();%0A reqResponse%0A .on('error', err =%3E doneOnce(err))%0A .pipe(stringstream('utf8'))%0A .pipe(parser)%0A .on('error', err ... |
0a6e03e42cc494b713b543e9a5b0002f575b3616 | Update gulp recipe (#90) | recipes/gulp/gulpfile.js | recipes/gulp/gulpfile.js | // Copyright 2016 Google Inc. All Rights Reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE
'use strict';
const gulp = require('gulp');
const connect = require('gulp-connect');
const PWMetrics = require('../../lib/');
const port = 8080;
const connectServer = function() {
return connect.server(... | JavaScript | 0 | @@ -240,20 +240,20 @@
;%0Aconst
-port
+PORT
= 8080;
@@ -254,28 +254,50 @@
8080;%0A%0A
-const connec
+/**%0A * Start server%0A */%0Aconst star
tServer
@@ -392,20 +392,20 @@
port:
-port
+PORT
%0A %7D);%0A%7D
@@ -411,75 +411,135 @@
%7D;%0A%0A
-function handleError() %7B%0A process.exit(1
+/**%0A * Stop ser... |
d982ff9e495f18c9aa2eea7d626aaf746380b8d5 | Fix key encoding for Map dictionaries | lib/encode.js | lib/encode.js | var Buffer = require('safe-buffer').Buffer
/**
* Encodes data in bencode.
*
* @param {Buffer|Array|String|Object|Number|Boolean} data
* @return {Buffer}
*/
function encode (data, buffer, offset) {
var buffers = []
var result = null
encode._encode(buffers, data)
result = Buffer.concat(buffers)
encode.b... | JavaScript | 0.020403 | @@ -3075,35 +3075,108 @@
-encode._encode(buffers, key
+Buffer.isBuffer(key)%0A ? encode._encode(buffers, key)%0A : encode.string(buffers, String(key)
)%0A
|
37dc0d6dee90fc1c4fc4a50eb4046b9dde293912 | Fix limit reached | lib/follow.js | lib/follow.js | var async = require('async');
var db = require('./db');
var users = db.get('users');
var newGithub = require('./new_github');
/**
* Check if a user is following another user.
*
* @param user a GH API instance
* @param other The other user
*/
function isFollowing(user, other, cb) {
user.user.getFollowUser({
... | JavaScript | 0.000002 | @@ -3834,37 +3834,46 @@
ed:
-sum %3C
+(
amount
-&& amount !== -1
+=== -1) ? false : sum %3C amount
%0A
|
b3f0c426858ab22e4abbeb987567fad0d60721a2 | Format with v7 reference | lib/format.js | lib/format.js | 'use strict';
var beautify = require('js-beautify').js_beautify,
reference = require('mapbox-gl-style-spec/reference/v6'),
sortObject = require('sort-object');
function sameOrderAs(reference) {
var keyOrder = {};
Object.keys(reference).forEach(function(k, i) {
keyOrder[k] = i + 1;
});
... | JavaScript | 0 | @@ -120,9 +120,9 @@
ce/v
-6
+7
'),%0A
|
fd2a64415b903c474376865890dce7cc5451a24f | Increase timeout for defer return | lib/handle.js | lib/handle.js | const fs = require('fs'),
crypto = require('crypto'),
{ serialize } = require('./serializers'),
{ getFuncArgs } = require('./parser'),
{ logger } = require('smappi-cl');
const FORMATS = {
'json': 'application/json',
'xml': 'application/xml'
}
function STD (res) {
function output (... | JavaScript | 0.000001 | @@ -3019,17 +3019,17 @@
%7D,
-2
+3
0000);%0A
|
4e572e318494cef8cefe45a64d5420be65abd3e6 | Make Heroku.configure a named function | lib/heroku.js | lib/heroku.js | var Request = require('./request'),
_ = require('lodash');
module.exports = Heroku;
function Heroku (options) {
this.options = options;
}
Heroku.configure = function (config) {
if (config.cache) {
Request.connectCacheClient();
}
return this;
}
Heroku.request = Request.request;
Heroku.prototy... | JavaScript | 0.999252 | @@ -174,16 +174,26 @@
unction
+configure
(config)
|
251ec33fad592ad68d43c7351deeef55ceb0855d | add deprecation warning | lib/indico.js | lib/indico.js | var Promise = require('bluebird'),
services = require('./services.js'),
settings = require('./settings.js'),
image = require('./image.js'),
request = Promise.promisify(require('request')),
indico = module.exports;
Promise.promisifyAll(request);
var public_api = 'http://apiv2.indico.io/'
indico.apiKey = fal... | JavaScript | 0.000001 | @@ -3222,16 +3222,23 @@
ame, api
+, batch
) %7B%0A re
@@ -3264,24 +3264,287 @@
, config) %7B%0A
+ if (batch) %7B%0A console.warn(%0A %22The %60batch%22 + capitalize(api.name) + %22%60 function will be deprecated in the next major upgrade. %22 + %0A %22Please call %60%22 + api.name.replace(%22b... |
2e19e0acc12a3af203f81d53ab0a9c6999f4a0cd | Add Sports specific Layout attributes. | lib/layout.js | lib/layout.js | 'use strict';
/**
* Layout
*
* @constructor
* @param {Object} [opts]
*/
var Layout = module.exports = function (opts) {
this._layout = new _Layout();
if (opts && opts.type) {
if (typeof opts.type !== 'string') {
throw new Error('Expected type to be a string.');
}
this._layout.type = opts.t... | JavaScript | 0 | @@ -1846,16 +1846,1983 @@
ame;%0A %7D
+%0A%0A if (opts && opts.broadcaster) %7B%0A if (typeof opts.broadcaster !== 'string') %7B%0A throw new Error('Expected broadcaster to be a string.');%0A %7D%0A this._layout.broadcaster = opts.broadcaster;%0A %7D%0A%0A if (opts && opts.rankAway) %7B%0A if (typ... |
dbc21e6e540c1870d6f402bae5e534f0b04fb52b | Handle no-extension case | lib/loader.js | lib/loader.js | /*
* Jake JavaScript build tool
* Copyright 2112 Matthew Eernisse (mde@fleegix.org)
*
* 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-... | JavaScript | 0.000034 | @@ -2237,16 +2237,29 @@
fname =
+ ext ? name :
%60$%7Bname
|
25bc54d59f209fe024ce37ac5ae969aa4db1de90 | fix style warnings in lib/logger.js | lib/logger.js | lib/logger.js | var util = require('util');
module.exports = Logger;
function Logger(sink) {
if (!(this instanceof Logger)) return new Logger(sink);
this.sink = sink;
}
Logger.prototype.info = partial(LevelLog, 'INFO');
Logger.prototype.log = Logger.prototype.info;
Logger.prototype.warn = partial(LevelLog, 'WARN');
Logger.prot... | JavaScript | 0.999931 | @@ -379,17 +379,16 @@
og(level
-
/*, item
@@ -571,17 +571,16 @@
rtial(fn
-
/*, firs
|
aa2e8ff532a1e57d696f30ea8fa857e39f6e2a42 | Add log.wrap | lib/logger.js | lib/logger.js | var util = require('util');
var levels = [
'silly',
'input',
'verbose',
'prompt',
'debug',
'http',
'info',
'data',
'help',
'warn',
'error'
];
levels.forEach(function(level) {
exports[level] = function(msg) {
console.log(
level + ':',
util... | JavaScript | 0 | @@ -422,8 +422,744 @@
%7D;%0A%7D);%0A
+%0Aexports.wrap = function(getPrefix, func) %7B%0A if (typeof getPrefix != 'function') %7B%0A var msg = getPrefix;%0A getPrefix = function() %7B%0A return msg;%0A %7D;%0A %7D%0A%0A return function() %7B%0A var args = arguments,%... |
adc2035d7e8f47e49d9d0ab1da414adff88e139c | Update master.js | lib/master.js | lib/master.js | /* vim: set expandtab tabstop=2 shiftwidth=2 foldmethod=marker: */
"use strict";
var fs = require('fs');
var path = require('path');
var util = require('util');
var Emitter = require('events').EventEmitter;
var PROCESS = process;
var child = require(__dirname + '/child.js');
/* {{{ private function _normalize() */
... | JavaScript | 0.000001 | @@ -1164,18 +1164,16 @@
00,%0A
-
'addr':
|
74417176676690b677895a7fef5adc722e753139 | Fix module require context issue. | lib/mockit.js | lib/mockit.js | var mod = require('module');
module.exports = function (path, mocks) {
// Reference to the original require function
var require = mod.prototype.require;
// Overwrite the require function
mod.prototype.require = function (path) {
// Return a mock object, if present. Otherwise, call the original require
... | JavaScript | 0 | @@ -445,16 +445,45 @@
e module
+ in the parent module context
. Our ov
@@ -491,32 +491,37 @@
rwritten require
+%0A //
function will b
@@ -534,21 +534,16 @@
for its
-%0A //
module
@@ -575,17 +575,37 @@
require
-(
+.call(module.parent,
path);%0A%0A
|
e599d29787d4bb70b24b1b219482eff49f36d9cd | Write the post_body to OAuth2 PUT requests | lib/oauth2.js | lib/oauth2.js | var querystring= require('querystring'),
crypto= require('crypto'),
https= require('https'),
http= require('http'),
URL= require('url'),
OAuthUtils= require('./_utils');
exports.OAuth2= function(clientId, clientSecret, baseSite, authorizePath, accessTokenPath, customHeaders) {
this._clientId= cli... | JavaScript | 0.000177 | @@ -4513,17 +4513,17 @@
%0A%0A if(
-
+(
options.
@@ -4538,16 +4538,44 @@
= 'POST'
+ %7C%7C options.method == 'PUT')
&& post
|
0b46167331d52e666b777cb7a31b6b5d3231da83 | allow $loadUsers to still run if not root, ignoring /etc/shadow. | lib/passwd.js | lib/passwd.js | /*jshint node: true*/
'use strict';
var fs = require('fs'),
Q = require('q'),
u = require('util'),
assert = require('assert'),
_ = require('lodash'),
tmp = require('tmp'),
exec = require('child_process').exec,
PUser = require('./p_user'),
IsAdmin = require('./is_admin');
/**
* Repres... | JavaScript | 0 | @@ -894,16 +894,42 @@
swd'));%0A
+ if (self.isAdmin()) %7B%0A
self.s
@@ -1000,16 +1000,20 @@
adow'));
+%0A %7D
%0A%0A // C
@@ -1632,24 +1632,72 @@
nction () %7B%0A
+ if (!self.shadowfile) %7B%0A return;%0A %7D%0A
return Q
|
0be426c3ef8e80a2c4466ec48e445e8859cc9b8f | Initialize returned an out of scope reference via the callback at times. | lib/plugin.js | lib/plugin.js | /**
* Copyright 2015, Marnus Weststrate
* Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
*/
var _ = require('lodash');
var Waterline = require('waterline');
var Promise = require('es6-promise').Promise;
var buildOrm = require('./buildOrm');
/**
* Creates a new `WaterlineM... | JavaScript | 0 | @@ -5381,19 +5381,25 @@
resolve(
-orm
+waterline
Models);
@@ -5468,19 +5468,25 @@
unction(
-orm
+waterline
Models)
@@ -5506,19 +5506,25 @@
b(null,
-orm
+waterline
Models);
|
a22b9c0661ba5a5316743945ae01c44625ceb1d4 | make Pubkey idiomatic | lib/pubkey.js | lib/pubkey.js | /**
* Public Key
* ==========
*
* A public key corresponds to a private key. If you have a private key, you
* can find the corresponding public key with Pubkey().fromPrivkey(privkey).
*/
"use strict";
let Point = require('./point');
let bn = require('./bn');
let privkey = require('./privkey');
let Struct = requir... | JavaScript | 0.004528 | @@ -236,18 +236,18 @@
');%0Alet
-bn
+BN
= requi
@@ -262,44 +262,8 @@
');%0A
-let privkey = require('./privkey');%0A
let
@@ -1859,34 +1859,34 @@
');%0A let x =
-bn
+BN
(xbuf);%0A let
@@ -1889,18 +1889,18 @@
let y =
-bn
+BN
(ybuf);%0A
@@ -2023,34 +2023,34 @@
1);%0A let x =
-bn
+BN
(xbuf);%0A ... |
509798dc57197337010116431fb1b0a742eded9b | remove TODO comment | lib/reader.js | lib/reader.js |
/**
* Module dependencies.
*/
var util = require('util');
var assert = require('assert');
var Parser = require('stream-parser');
var Transform = require('readable-stream/transform');
var debug = require('debug')('wave:reader');
var inherits = util.inherits;
var f = util.format;
var formats = {
WAVE_FORMAT_PCM: 0... | JavaScript | 0 | @@ -3066,51 +3066,8 @@
k);%0A
- // TODO: support formats other than PCM?%0A
th
|
b155f48fcbcba8df5de3a96a373cbf4f5dcd2013 | Add URL Routes for Blog & Projects | lib/router.js | lib/router.js | Router.configure({
layoutTemplate: 'layout'
});
Router.map(function(){
this.route('home', {
path: '/',
template: 'home'
});
// Other routes
this.route('about');
this.route('work');
this.route('contact');
this.route('blog', {
path: '/blog',
template: 'blog'
});
});
| JavaScript | 0 | @@ -170,24 +170,25 @@
e('about');%0A
+%0A
this.route
@@ -193,24 +193,25 @@
te('work');%0A
+%0A
this.route
@@ -222,16 +222,27 @@
ntact');
+%0A%0A // BLOG
%0A this.
@@ -276,16 +276,16 @@
/blog',%0A
-
temp
@@ -302,13 +302,601 @@
g'%0A %7D);
+%0A%0A this.route('list_posts', %7B%0A path: '/admin/post... |
b92ed91b33a4f7574973e34e8cf8a0d0d03ae3e7 | Fix userProfile route | lib/router.js | lib/router.js | Router.configure({
layoutTemplate: 'layout',
loadingTemplate: 'loading',
notFoundTemplate: 'notFound'
});
Router.route('/', {
name: 'projectsList',
waitOn: function() {
return Meteor.subscribe('Projects');
}
});
Router.route('projects/new', {
name: 'projectCreate'
});
Router.route('user/:_id', {
... | JavaScript | 0.000242 | @@ -303,18 +303,21 @@
('user/:
-_i
+userI
d', %7B%0A
@@ -362,17 +362,22 @@
) %7B%0A
-
+return
Meteor.
@@ -408,18 +408,21 @@
.params.
-_i
+userI
d%7D);%0A %7D
|
06667620514ef981ab9538ddd187ef8e8925321e | Add a comment about `rateRec` and its friend | lib/routes.js | lib/routes.js | 'use strict';
var _trader;
// Make sure these are higher than polling interval
// or there will be a lot of errors
var STALE_TICKER = 180000;
var STALE_BALANCE = 180000;
Error.prototype.toJSON = function () {
var self = this;
var ret = {};
Object.getOwnPropertyNames(self).forEach(function (key) {
ret[key]... | JavaScript | 0 | @@ -559,16 +559,166 @@
lance;%0A%0A
+ // %60rateRec%60 and %60satoshiBalanceRec%60 are both objects, so there's no danger%0A // of misinterpreting rate or balance === 0 as 'Server initializing'.%0A
if (!r
|
51176ee76b23fcbebe88f8337bbc4d2f23f684b8 | send notifs to users without subscription keys | lib/routes.js | lib/routes.js | const express = require('express');
const jsonwebtoken = require('jsonwebtoken');
const firebase = require('firebase');
const webpush = require('web-push');
const middlewares = require('./middlewares');
const config = require('../config');
firebase.initializeApp({
databaseURL: config.get('FIREBASE_DATABASE_URL')
... | JavaScript | 0 | @@ -1742,16 +1742,17 @@
if (
+!
user.sub
@@ -1760,32 +1760,77 @@
cription) %7B%0A
+ continue;%0A %7D%0A%0A
@@ -1895,24 +1895,70 @@
message %7D);%0A
+ if (user.subscription.keys) %7B%0A
@@ -2019,16 +2019,691 @@
yload);%0A
+ ... |
f3350515065d2a7f5c869980aaa0f1947ff450d1 | fix call to process jobs | lib/runner.js | lib/runner.js | 'use strict';
import Agenda from 'agenda';
import config from 'config';
import logger from '@hoist/logger';
import {
Publisher
}
from '@hoist/broker';
import {
Event,
EventMetric,
_mongoose
}
from '@hoist/model';
import Moment from 'moment';
import uuid from 'uuid';
import Bluebird from 'bluebird';
Bluebird.pr... | JavaScript | 0 | @@ -2770,26 +2770,78 @@
t',
-this.processEvents
+(job, done) =%3E %7B%0A return this.processEvents(job, done);%0A %7D
);%0A
|
f074c2e2ec4e389e594c508c9f387eb8f67b38ff | Fix up comments and formatting | lib/runner.js | lib/runner.js | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//
// Run a pre-validated and pre-prepared test script across a number of (local) workers
//
'use strict';
const... | JavaScript | 0.000009 | @@ -272,16 +272,19 @@
umber of
+%0A//
(local)
@@ -291,16 +291,17 @@
workers
+.
%0A//%0A%0A'us
@@ -1877,29 +1877,16 @@
//
-This is going to be i
+FIXME: I
neff
@@ -1910,21 +1910,16 @@
payload
- file
s%0A
@@ -1977,16 +1977,21 @@
nterval(
+%0A
this._se
@@ -2009,16 +2009,20 @@
d(this),
+%0A
t... |
2a2135a22d739597bcbb09a933d334732f315d95 | Handle HTTP auth | lib/runner.js | lib/runner.js | /**
* Fetches remote asset / local CSS file and returns analyzer results
*
* Used internally by analyze-css "binary" to communicate with CommonJS module
*/
'use strict';
var cli = require('cli'),
debug = require('debug')('analyze-css:runner'),
fs = require('fs'),
resolve = require('path').resolve,
analyzer = r... | JavaScript | 0.00003 | @@ -2189,20 +2189,59 @@
;%0A%0A%09%09//
-TODO
+@see https://gist.github.com/cojohn/1772154
%0A%09%09if (o
@@ -2301,15 +2301,54 @@
ons.
-auth =
+headers.Authorization = %22Basic %22 + new Buffer(
opti
@@ -2366,11 +2366,11 @@
r +
-':'
+%22:%22
+ o
@@ -2384,16 +2384,44 @@
authPass
+, %22utf8%22).toString(%22bas... |
e63537833ee89b8df6573688e8c6258c15580da3 | Exit from runTask method if task not found | lib/runner.js | lib/runner.js | 'use strict';
const argv = require('yargs').argv;
const fs = require('co-fs-extra');
const path = require('path');
const co = require('co');
const VError = require('verror');
const sprintf = require('extsprintf').sprintf;
const Logger = require('shark-logger'... | JavaScript | 0.000001 | @@ -2845,16 +2845,27 @@
kName);%0A
+%09%09%09return;%0A
%09%09%7D%0A%0A%09%09v
|
45784f1a7c5cacbf1aa769249b52af0a34d479f0 | allow all search sort strings | lib/search.js | lib/search.js | // Copyright 2013 Bowery Software, LLC
/**
* @fileoverview Search builder.
*/
// Module Dependencies.
var assert = require('assert')
var Builder = require('./builder')
/**
* @constructor
*/
function SearchBuilder () {}
require('util').inherits(SearchBuilder, Builder)
/**
* Set collection.
* @param {string}... | JavaScript | 0.000013 | @@ -1157,16 +1157,23 @@
','desc'
+, 'dsc'
%5D.indexO
|
c30044e22b58877872c40d481a9d0b20ad6f2fb4 | make use of the real driver for adding and deleting migration records | lib/seeder.js | lib/seeder.js | var Seed = require('./seed');
var log = require('./log');
var dbmUtil = require('./util');
var Promise = require('bluebird');
var SeederInterface = require( './interface/seederInterface.js');
var internals = {};
Seeder = function (driver, seedsDir, versionControlled, intern) {
this.driver = dbmUtil.reduceToInterfac... | JavaScript | 0 | @@ -343,16 +343,41 @@
face );%0A
+ this._driver = driver;%0A
this.s
@@ -2942,32 +2942,33 @@
f.seedDir, self.
+_
driver, function
@@ -3987,24 +3987,25 @@
edDir, self.
+_
driver, func
|
8142db3be22d3fd0971efe7dfc406325b87fd48d | allow config port | lib/server.js | lib/server.js | function start(config) {
var restify = require('restify');
var logger = require('./logger.js');
var os = require('os');
var path = require('path');
var errors = require('./errors.js');
var util = require('util');
// Statics
const APPLICATION_ROOT = path.resolve(__dirname + '/..');
const API_VERSION =... | JavaScript | 0.000001 | @@ -597,16 +597,36 @@
s.port =
+ process.env.PORT %7C%7C
config.
|
a7a46070582352acaa44246c3be25ac492af30de | Fix crash due to location of log object | lib/server.js | lib/server.js | var restify = require('restify');
var endpoints = require('./endpoints');
function createServer(options) {
var cnapi = restify.createServer({
name: 'Compute Node API',
log: options.log
});
cnapi.use(restify.acceptParser(cnapi.acceptable));
cnapi.use(restify.authorizationParser());
... | JavaScript | 0 | @@ -469,16 +469,22 @@
r(%7Blog:
+cnapi.
log%7D));%0A
|
b8ffea8f16daebc285171cf916cd611de92e656a | rename signing app | lib/signer.js | lib/signer.js | var Q = require('q');
var SIGNING_APP_ID = require('../conf/signing-app').id;
var blacklistedIds = [];
function sign(msg) {
var deferred = Q.defer();
msg = clone(msg);
msg.type = 'sign';
msg.forApp = {
name: 'paranoid'
};
msg.fromApp = {
name: msg.appName || 'Tradle'
};
chrome.runtime.sendMes... | JavaScript | 0.000001 | @@ -219,16 +219,13 @@
e: '
-paranoid
+Signy
'%0A
|
b6063af639c5e8e824f7da2406cfeb63e8af8ab0 | Remove onerror callback from the raw socket | lib/socket.js | lib/socket.js | import EventEmitter from "wolfy87-eventemitter";
import EJSON from "ejson";
export default class Socket extends EventEmitter {
constructor (SocketConstructor, endpoint) {
super();
this.SocketConstructor = SocketConstructor;
this.endpoint = endpoint;
this.rawSocket = null;
}
... | JavaScript | 0 | @@ -1690,929 +1690,8 @@
/*%0A
- * Calls to %60onerror%60 trigger the %60close%60 event on the %60Socket%60%0A * instance, and cause the %60rawSocket%60 object to be disposed of.%0A * Since it's not clear what conditions could cause the error and if%0A * it's possible to recover fro... |
1a13eebe3209407a887267762a733fb9e78a497f | copy data handler flow options and extend with session | lib/stream.js | lib/stream.js | var Stream = require('stream');
exports.Pass = function () {
return Stream.PassThrough({objectMode: true});
};
// writable
exports.Event = function (options) {
options = options || {};
if (typeof options.objectMode === 'undefined') {
options.objectMode = true;
}
var sequence = Stream... | JavaScript | 0 | @@ -1406,32 +1406,202 @@
%7D%0A%0A
+ var dhOptions = Object.assign(%7B%7D, handler%5B1%5D);%0A dhOptions.arg = options;%0A dhOptions.session = options.session; %0A
@@ -1632,26 +1632,25 @@
ler%5B2%5D,
-handler%5B1%5D
+dhOptions
,... |
f314996bbd3791084d22b3366060ffbf4206c39e | make object look less like json | lib/styled.js | lib/styled.js | 'use strict';
let cli = require('..');
let util = require('util');
let inflection = require('inflection');
/**
* styledHeader logs in a consistent header style
*
* @example
* styledHeader('MyApp') # Outputs === MyApp
*
* @param {header} header text
* @returns {null}
*/
function styledHeader(heade... | JavaScript | 0.001828 | @@ -1028,16 +1028,142 @@
rn obj;%0A
+ %7D else if (typeof obj === 'object') %7B%0A return Object.keys(obj).map(k =%3E k + ': ' + util.inspect(obj%5Bk%5D)).join(', ');%0A
%7D el
|
aba7f783d3a07cb05cfbe54c729db6792491bff9 | disable tunneling message | lib/worker.js | lib/worker.js | var _ = require('underscore')
, Promise = require('bluebird')
, config = require('config')
, url = require('url')
;
function Worker() { }
function promise_time(p$, msg) {
var s_hrtime = process.hrtime();
return p$.tap(function(){
var diff = process.hr... | JavaScript | 0.000001 | @@ -2702,16 +2702,19 @@
%7B%0A
+ //
console
|
a85caa94d225a00a607c17de7eff44d3863447e5 | fix 变量判断错误 | libs/stage.js | libs/stage.js | // class Stage
// express中叫 layer, 这里则称为 stage(阶段),代表某个处理阶段
const concat = Array.prototype.concat;
function Stage(stages) {
const befores = {};
const afters = {};
this.stages = stages;
this.stageNames = stages.map(stage => {
const name = stage.name;
befores[name] = [];
afters[name] = [];
retu... | JavaScript | 0.000674 | @@ -1514,11 +1514,15 @@
res.
-has
+forward
Sent
|
5c58f91232a9929e39c7b73478c5b09be999015e | Add numberWithCommas | web/js/coge/utils.js | web/js/coge/utils.js | /* global window, document, coge*/
var coge = window.coge = (function(ns) {
var waitToSearchTimer;
ns.utils = {
ascending: function(a, b) {
return a < b ? -1 : a > b ? 1 : 0;
},
descending: function(a, b) {
return a > b ? -1 : a < b ? 1 : 0;
},
op... | JavaScript | 0.998824 | @@ -4437,16 +4437,25 @@
%09%7D,%0A%0A%09
+function
numberWi
@@ -4462,26 +4462,16 @@
thCommas
-: function
(x) %7B%0A%09%09
|
0d6a451a684d46f38a44d6f14747bd2abd8d317d | support initValue in textFieldValue. Add radioGroupValue | Bacon.UI.js | Bacon.UI.js | (function() {
var isChrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
function nonEmpty(x) { return x && x.length > 0 }
Bacon.UI = {}
Bacon.UI.textFieldValue = function(textfield) {
function getValue() { return textfield.val() }
function autofillPoller() {
if (textfield.attr("typ... | JavaScript | 0.000001 | @@ -197,16 +197,27 @@
extfield
+, initValue
) %7B%0A
@@ -524,32 +524,99 @@
n.never()%0A %7D%0A
+ if (initValue !== null) %7B%0A textfield.val(initValue)%0A %7D%0A
return $(tex
@@ -610,18 +610,16 @@
return
-$(
textfiel
@@ -611,33 +611,32 @@
return textfield
-)
.asEventStream(%22
@@ -662,1... |
799228d133e602261b70011c744cb0b5624ac457 | Update copyright year to 2017 in footer on website (#1019) | website/core/Site.js | website/core/Site.js | /**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... | JavaScript | 0 | @@ -2032,17 +2032,17 @@
opy; 201
-6
+7
Faceboo
|
e930cae2fe9873d3e6e3cd09ce5e34b8d9066826 | Add tx types translations | www/js/lang/en-US.js | www/js/lang/en-US.js | angular.module("omniConfig")
.constant("EnglishTranslation",{
COMMON_ACTIONS: 'Actions',
COMMON_ADDRESS: 'Address',
COMMON_AVAILABLE: 'available',
COMMON_BALANCE: 'Balance',
COMMON_BITCOIN: 'Bitcoin',
COMMON_BROADCAST: 'Broadcast Transaction',
COMMON_OVERVIEW: 'Overview',
COMMON_REMOVEADDRESS: 'Rem... | JavaScript | 0 | @@ -1595,16 +1595,481 @@
ading',%0A
+%09TX_TYPE_0: 'Simple Send',%0A%09TX_TYPE_3: 'Send To Owners',%0A%09TX_TYPE_20: 'Sell Offer',%0A%09TX_TYPE_21: 'Accept Offer',%0A%09TX_TYPE_22: 'Purchase Offer',%0A%09TX_TYPE_50: 'Create a Fixed Property',%0A%09TX_TYPE_51: 'Create a Crowdsale',%0A%09TX_TYPE_52: 'Promote a Property'... |
8a13ae3d2fc6e56488c865f57e12a6c162affc32 | clean up index.js | demo/index.js | demo/index.js | import React from 'react';
import ReactDOM from 'react-dom';
import ons from '../OnsenUI/build/js/onsenui.js';
import {
Page,
Navigator,
Toolbar,
List,
ListItem,
Ripple,
Carousel,
CarouselItem,
BottomToolbar,
ToolbarButton,
} from 'react-onsenui';
import PageExample from './examples/Page';
import... | JavaScript | 0.000007 | @@ -66,17 +66,8 @@
ort
-ons from
'../
@@ -160,81 +160,8 @@
Item
-,%0A Ripple,%0A Carousel,%0A CarouselItem,%0A BottomToolbar,%0A ToolbarButton,
%0A%7D f
|
6650aaa6e195e23554df2c3ef23624e1d1c7206b | scrub it | devServer2.js | devServer2.js | import express from 'express';
import webpack from 'webpack';
import webpackDevMiddleware from 'webpack-dev-middleware';
import webpackHotMiddleware from 'webpack-hot-middleware';
import webpackConfig from './webpack.config.dev';
import cli from 'better-console';
import _ from 'lodash';
import Wreck from 'wreck';
impor... | JavaScript | 0.000001 | @@ -1597,16 +1597,25 @@
authors
+, ...rest
%7D, i, %7Bs
@@ -1666,16 +1666,23 @@
tion = %7B
+...rest
%7D;%0A //
@@ -1867,16 +1867,28 @@
dAuthor(
+'Poster ' +
presenta
|
ab279a8ff870274d43a344469b487268aaca3a76 | Enable React strict mode | web/js/index.js | web/js/index.js | // Copyright © 2015-2019 Esko Luontola
// This software is released under the Apache License 2.0.
// The license text is at http://www.apache.org/licenses/LICENSE-2.0
/* @flow */
import React from "react";
import ReactDOM from "react-dom";
import {Provider} from "react-redux";
import {applyMiddleware, createStore} fr... | JavaScript | 0.000001 | @@ -944,16 +944,41 @@
render(%0A
+ %3CReact.StrictMode%3E%0A
%3CInt
@@ -1032,16 +1032,18 @@
%3E%0A
+
%3CProvide
@@ -1059,16 +1059,18 @@
store%7D%3E%0A
+
@@ -1087,16 +1087,18 @@
%7D%0A
+
%3C/Provid
@@ -1101,16 +1101,18 @@
ovider%3E%0A
+
%3C/In
@@ -1122,16 +1122,40 @@
... |
f91cc2900ac40b86f0ad635601219d752851c194 | fix "if test fail, not exit when run test in local" bug | build/gulp_task/e2e/test.js | build/gulp_task/e2e/test.js | var gulp = require("gulp");
var git = require("gulp-git");
var path = require("path");
var fs = require("fs");
function _getErrorMessage(e) {
if (e[0] === undefined) {
return e;
}
else {
return e[0];
}
}
function _fail(message, done) {
console.log("fail");
console.error(messag... | JavaScript | 0.000002 | @@ -227,24 +227,67 @@
%5D;%0A %7D%0A%7D%0A%0A
+function _exit() %7B%0A process.exit(1);%0A%7D%0A%0A
function _fa
@@ -361,38 +361,30 @@
sage);%0A%0A
-process.
+_
exit(
-1
);%0A%7D%0A%0Afuncti
@@ -1302,48 +1302,16 @@
-console.log(%22done%22);%0A%0A done()
+_exit();
%0A
@@ -5600,32 +560... |
8bcd9f9a00a5d680d59f4b6e7bebfb6c31e8432c | switch config epic to use action$ | applications/desktop/src/notebook/epics/config.js | applications/desktop/src/notebook/epics/config.js | // @flow
import { remote } from "electron";
import { selectors, actions, actionTypes } from "@nteract/core";
import { readFileObservable, writeFileObservable } from "fs-observable";
import { mapTo, mergeMap, map, switchMap } from "rxjs/operators";
import { ofType } from "redux-observable";
import type { ActionsObserv... | JavaScript | 0 | @@ -216,16 +216,24 @@
witchMap
+, filter
%7D from
@@ -554,162 +554,8 @@
on.%0A
- *%0A * @param %7BActionObservable%7D actions ActionObservable for LOAD_CONFIG action%0A * @return %7BActionObservable%7D ActionObservable for MERGE_CONFIG action%0A
*/%0A
@@ -583,33 +583,33 @@
igEpic = (action
-s
+$
: ActionsOb... |
6aaad4cd1f2da678b66d34dffbb6435efed9f36c | add version & license banner to dist files | gruntFile.js | gruntFile.js | /* jshint node:true */
'use strict';
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
// Default task.
grunt.registerTask('default', ['jshint', 'karma:unit']);
grunt.registerTask('serve', ['karma:continuous', 'dist', 'build:gh-pages', 'connect:continuous', 'watch']);
grunt.registerTa... | JavaScript | 0 | @@ -343,16 +343,21 @@
surround
+:main
', 'ugli
@@ -359,16 +359,35 @@
'uglify'
+, 'surround:banner'
%5D);%0A g
@@ -3911,24 +3911,127 @@
surround: %7B%0A
+ main: %7B%0A expand: true,%0A cwd: 'src',%0A src: %5B'*.js'%5D,%0A dest: 'dist',%0A
option
@@ -4027,32 +4027,34 @@
... |
2f179014aae3bfafab33a1af24c459dc4a353882 | remove old map | app/boot.js | app/boot.js | window.name = 'NG_DEFER_BOOTSTRAP!';
require.config({
waitSeconds: 120,
baseUrl : '/app',
paths: {
'authentication' : 'services/authentication',
'angular' : 'libs/angular-flex/angular-flex',
'ngRoute' : 'libs/angular-route/angular-route.min',
'ngSanitize... | JavaScript | 0.000041 | @@ -1645,73 +1645,8 @@
n',%0A
- 'ammapEU' : 'directives/reporting-display/eu',%0A
|
4ac6b6ee8d880b1fd81bfb0697bf33e4777367c4 | add fail error status | src/utils/helpers.js | src/utils/helpers.js | const { Types } = require('mongoose');
const HTTPStatus = require('http-status');
const { ObjectId } = Types;
/**
* Check an parameter is a string or throw an error.
*/
function checkString(chars, { method, message } = {}) {
if (typeof chars !== 'string') {
throw new Error(message || `String parameter must be... | JavaScript | 0.000001 | @@ -1397,16 +1397,31 @@
status:
+ data.status %7C%7C
'error'
@@ -1447,19 +1447,48 @@
code %7C%7C
-500
+HTTPStatus.INTERNAL_SERVER_ERROR
,%0A
@@ -2776,16 +2776,47 @@
errors;%0A
+ error.status = 'fail';%0A
|
c5046367ab151ddb012041c584f26bcf034edd19 | Move index creation to startup | apps/admin/imports/startup/server/mongo-config.js | apps/admin/imports/startup/server/mongo-config.js | import { ProductsCollection } from 'meteor/moreplease:common';
const productIndexes = [
{ productId: 1 },
{ variationId: 1 },
{ storeId: 1 },
];
productIndexes.forEach((index) => {
ProductsCollection.rawCollection().createIndex(index);
});
| JavaScript | 0.000001 | @@ -1,8 +1,48 @@
+import %7B Meteor %7D from 'meteor/meteor';%0A
import %7B
@@ -186,16 +186,41 @@
%7D,%0A%5D;%0A%0A
+Meteor.startup(() =%3E %7B%0A
productI
@@ -247,16 +247,18 @@
x) =%3E %7B%0A
+
Produc
@@ -306,12 +306,18 @@
index);%0A
+ %7D);%0A
%7D);%0A
|
e23adde143972b1ccc9ad962ba1041496eda2337 | remove duplicate mention of sql query files | wallaby-config.js | wallaby-config.js | module.exports = function (wallaby) {
return {
files: [
'src/**/*.js',
'src/queries/**/*.sql',
'test/testUtilities.js'
],
tests: [
'src/queries/**/*.sql',
'test/**/*spec.js'
],
compilers: {
'**/*.js': wal... | JavaScript | 0.000014 | @@ -192,44 +192,8 @@
: %5B%0A
- 'src/queries/**/*.sql',%0A
|
eed809e818a2c595a826799e017e7b6d48ce6272 | Update production to use heroku. | gruntfile.js | gruntfile.js | 'use strict';
// Module dependencies.
var _ = require('lodash');
var defaultAssets = require('./config/assets/default');
var testAssets = require('./config/assets/test');
module.exports = function(grunt) {
// Project Configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
env: {
... | JavaScript | 0 | @@ -6053,20 +6053,22 @@
erTask('
-prod
+heroku
', %5B'bui
|
45246a1477a107a4e028afea0821af6bccd8f942 | fix wrong address in invoice | src/server/api/orderApi.js | src/server/api/orderApi.js | const fs = require('fs');
const { authorization, isAdmin } = require('./auth');
const bodyParser = require('body-parser');
const asyncHandler = require('express-async-handler');
const envConfig = require('../../config/envConfig');
const stripe = require('stripe')(envConfig.getSecretKey('PAYMENT_SECRET'));
const esrGene... | JavaScript | 0.000013 | @@ -1711,24 +1711,16 @@
.value,
-invoice.
address)
|
ced3dc7dcc2973d69a3f466bc0c4ea1ec95c560c | check to see if we should spot the first spottable element in the list when it is ready | source/DataList.js | source/DataList.js | /**
_moon.DataList_ is an [enyo.DataList](#enyo.DataList) with Moonstone styling
applied. It uses [moon.Scroller](#moon.Scroller) as its default scroller.
*/
enyo.kind({
name: "moon.DataList",
kind: "enyo.DataList",
//* @protected
noDefer: true,
allowTransitions: false,
scrollerOptions: { kind: "moon.Scroller"... | JavaScript | 0 | @@ -272,16 +272,34 @@
false,%0A
+%09spotlight: true,%0A
%09scrolle
@@ -355,16 +355,199 @@
idden%22 %7D
+,%0A%09didReset: function () %7B%0A%09%09var spot = enyo.Spotlight.getCurrent();%0A%09%09if (spot === this %7C%7C spo.isDescendentOf(this)) %7B%0A%09%09%09this.spotlight = false;%0A%09%09%09enyo.Spotlight.spot(th... |
a20bd5f6cc2d3d1a1d4d0b9d47f2f854072b7e84 | bump version | track-slide.js | track-slide.js | /* track-slide
* version: 1.3.0
* https://stash.c2mpg.com:8443/projects/C2/repos/track-slide
* @preserve
*/
/*exported TrackSlide */
var TrackSlide = (function ($, Dragger) {
'use strict';
var defaults = {
pageLock: false,
trackSelector: 'ul',
cellSelector: 'li',
autoResi... | JavaScript | 0 | @@ -24,17 +24,17 @@
on: 1.3.
-0
+1
%0A * http
|
db99aa64320324291b69ae94d44c725d08f0d3a6 | Use uuid strings as key. | src/server/models/index.js | src/server/models/index.js | import mongoose from 'mongoose';
import marked from 'marked';
import crypto from 'crypto';
import uuid from 'node-uuid';
const PasswordCode = new mongoose.Schema({
_id: { type: String, unique: true, required: true, default: uuid.v4 }, // uuid
user: { type: String, required: true },
created: { type: Date, r... | JavaScript | 0.000001 | @@ -232,24 +232,16 @@
id.v4 %7D,
- // uuid
%0A use
@@ -449,19 +449,29 @@
true
- %7D, // uuid
+, default: uuid.v4 %7D,
%0A
|
2d38d5c757394899bb71dc305b8827c17f93706b | Fix grunt files src not parsing correctly | gruntfile.js | gruntfile.js | 'use strict';
module.exports = function (grunt) {
if (grunt.option('help')) {
require('load-grunt-tasks')(grunt);
} else {
require('jit-grunt')(grunt, {
force: 'grunt-force-task',
});
}
require('time-grunt')(grunt);
var concatConfig = {
dist: {
... | JavaScript | 0 | @@ -298,32 +298,58 @@
dist: %7B%0A
+ files: %5B%7B%0A
src:
@@ -359,32 +359,36 @@
+
+
'%3C%25= config.file
@@ -385,33 +385,33 @@
onfig.files.src
-$
+%25
%3E',%0A
@@ -402,35 +402,43 @@
%3E',%0A
+
+
%5D,%0A
+
dest... |
23e331af8f00f2d1cd8134639378d058d5e656b5 | add interface in repo dao | src/servers/dao/RepoDAO.js | src/servers/dao/RepoDAO.js | /**
* Created by raychen on 16/8/16.
*/
import {userSchema} from '../../models/userSchema'
import {github_repoSchema} from '../../models/github_repoSchema'
import {github_userSchema} from '../../models/github_userSchema'
import {connect} from '../config'
import {getPublicRepos, getUserStarred} from '../api/github_u... | JavaScript | 0 | @@ -319,16 +319,275 @@
_user'%0A%0A
+async function getRepoInfo(fullname)%7B%0A let t = await new Promise(function(resolve, reject) =%3E %7B%0A github_repoSchema.findOne(%7Bfull_name: fullname%7D, (err, repo_single) =%3E %7B%0A if (err) reject(err);%0A resolve(repo_single);%0A %7D);%0A %7D);%0A retu... |
7fea8795c4412be69b6ad4ce94468d8b61e3c4de | allow immediate (synchronous) call to debounced function | src/shared/lib/debounce.js | src/shared/lib/debounce.js | /** Created by hhj on 1/14/16. */
/* eslint-disable func-names */
/**
* Usage:
* debounce.call(this, fn, delay)
* or
* debounce(fn, delay, this)
* or
* debounce(fn, delay).bind(this)
*
* @param fn Function to be debounced
* @param delay
* @param __context
* @returns {debounced} Debounced function as p... | JavaScript | 0 | @@ -461,16 +461,17 @@
function
+
(...args
@@ -470,24 +470,24 @@
(...args) %7B%0A
-
const co
@@ -533,24 +533,130 @@
ut(timeout)%0A
+%0A // immediate call (bounded to desired context):%0A if (delay === 0) return fn.apply(context, args)%0A%0A
return n
@@ -783,16 +783,16 @@
%7D)%0A %7D%0A%0A
-
deb... |
16701c581bb986ccfae2870d4553090448703b56 | Remove unnecessary defer call | temple.js | temple.js | var Temple = {};
Temple.instanceCount = new ReactiveDict();
Template.onRendered(function () {
var self = this;
Meteor.defer(function () {
// We're going to get the element that surrounds that template
var node = $(self.firstNode).parent();
if (node.closest('#Mongol').length) {
r... | JavaScript | 0.000001 | @@ -118,45 +118,8 @@
%0A %0A
- Meteor.defer(function () %7B %0A
//
@@ -179,18 +179,16 @@
emplate%0A
-
var no
@@ -222,23 +222,19 @@
nt();%0A
- %0A
+%0A
-
if (node
@@ -263,26 +263,24 @@
ngth) %7B%0A
-
return; %0A
@@ -277,29 +277,23 @@
turn; %0A
-
%7D%0A
- %0A
+%0A
i... |
44d49f0d15aac1fccd423a368b7deef3ef2668f7 | Fix typo for aadhaarNo functions | custom/aaa/static/aaa/js/models/person.js | custom/aaa/static/aaa/js/models/person.js | hqDefine("aaa/js/models/person", [
'jquery',
'knockout',
'underscore',
'moment/moment',
'hqwebapp/js/initial_page_data',
], function (
$,
ko,
_,
moment,
initialPageData
) {
var personModel = function (data, postData) {
var self = {};
self.id = data.id;
... | JavaScript | 0.999984 | @@ -1658,38 +1658,41 @@
if (self.
-gender
+aadhaarNo
=== 'N/A') %7B%0A
|
73b04cbc64f5175948dfd83cb81bf1845f153538 | Fix tests for safari | test/ext/promise.test.js | test/ext/promise.test.js | var should = require('../../');
var Promise = require('bluebird');
function promised(value) {
return new Promise(function(resolve) {
resolve(value);
});
}
function promiseFail() {
return new Promise(function(resolve, reject) {
reject(new Error('boom'));
});
}
function promiseFailTimeout() {
return... | JavaScript | 0.000003 | @@ -1759,33 +1759,33 @@
match(%7Bmessage:
-'
+/
expected %5BPromis
@@ -1773,32 +1773,33 @@
: /expected
+%5C
%5BPromise
%5D to be fulf
@@ -1778,32 +1778,33 @@
pected %5C%5BPromise
+%5C
%5D to be fulfille
@@ -1829,34 +1829,41 @@
cted with Error
-%7B
+%5C%7B%5B%5Cs%5CS%5D*
message: %5C'boom%5C
@@ -1851,35 +18... |
ec51e549f0183da723562a252fcb73ef83b4844b | Remove console.log | test/git-diff-archive.js | test/git-diff-archive.js | "use strict";
const fs = require("fs");
const path = require("path");
const assert = require("power-assert");
const glob = require("glob");
const rimraf = require("rimraf");
const unzip = require("unzip");
const gitDiffArchive = require("../");
const ID1 = "b148b54";
const ID2 = "acd6e6d";
const EMPTY_ID1 = "f74c8e2"... | JavaScript | 0.000004 | @@ -2793,34 +2793,8 @@
%3E %7B%0A
- console.log(res);%0A
|
baa24d992e5d3c5bdbeb6e2ebfd56cb948e153bd | add checks for function type | test/inheritance.spec.js | test/inheritance.spec.js | var test = require('tape')
var constructors = require('../src/inheritance.js')
var Rectangle = constructors.Rectangle
var Square = constructors.Square
test('Rectangle and Square constructors should set width and height', function (t) {
t.plan(4)
var rec = new Rectangle(5, 10)
t.equal(rec.width, 5, 'should set ... | JavaScript | 0.000001 | @@ -599,17 +599,17 @@
t.plan(
-5
+7
)%0A%0A var
@@ -628,32 +628,71 @@
ectangle(5, 10)%0A
+ t.equal(typeof rec.area, 'function')%0A
t.equal(rec.ar
@@ -738,32 +738,71 @@
= new Square(7)%0A
+ t.equal(typeof squ.area, 'function')%0A
t.equal(squ.ar
@@ -1155,9 +1155,9 @@
lan(
-2
+4
)%0A%0A
@@ -1180,32 +1180,... |
abd567072705ac54b6e68664c6b05e9c01ccb539 | Add unit test for negation ignore rules in fsAsync (#755) | test/lib/fsAsync.spec.js | test/lib/fsAsync.spec.js | "use strict";
var crypto = require("crypto");
var fs = require("fs");
var os = require("os");
var path = require("path");
var fsAsync = require("../../lib/fsAsync");
var chai = require("chai");
var chaiAsPromised = require("chai-as-promised");
var _ = require("lodash");
var expect = chai.expect;
chai.use(chaiAsProm... | JavaScript | 0 | @@ -2972,32 +2972,626 @@
t();%0A %7D);%0A%0A
+ return expect(promise).to.eventually.deep.equal(expected);%0A %7D);%0A%0A it(%22should support negation rules%22, function() %7B%0A var expected = _.chain(files)%0A .filter(function(file) %7B%0A return file === %22visible%22;%0A %7D)%0A ... |
6c11bed847a40c19c648bd0a199d745f0be957f5 | Fix table row coloring | client-js/views.js | client-js/views.js | var $ = require('jquery');
var _ = require('underscore');
var Backbone = require('backbone');
var models = require('./models.js');
var InventoryItemView = Backbone.View.extend({
tagName: 'tr',
className: 'inv-list-item',
tmpl: _.template($('#inv-row-template').html()),
initialize: function() {},
... | JavaScript | 0.000001 | @@ -649,25 +649,16 @@
if(
-parseInt(
this.mod
@@ -664,47 +664,29 @@
del.
-reserved) == parseInt(this.model.count)
+get('available') == 0
) %7B%0A
|
24b51b5d574076626b0c466216babc93af406c2d | Add CustomEvent to polyfills | .eslintrc.js | .eslintrc.js | module.exports = {
extends: ["ash-nazg/sauron-node"],
parserOptions: {
sourceType: "module"
},
env: {
browser: true
},
settings: {
polyfills: [
"Array.isArray",
"Blob",
"console",
"Date.now",
"document.body",
"document.evaluate",
"document.head",
"... | JavaScript | 0 | @@ -584,16 +584,37 @@
rigin%22,%0A
+ %22CustomEvent%22,%0A
%22M
|
3509681f643f26b6941462a3b945eea71806faec | replace code style from airbnb to standard | .eslintrc.js | .eslintrc.js | module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module'
},
rules: {
semi: 2
},
extends: 'airbnb-base',
}
| JavaScript | 0.000018 | @@ -151,20 +151,18 @@
s: '
-airbnb-base
+standard
',%0A%7D
+;
%0A
|
d242ac2952f575fb846f6677aa9cdba6b0b061fa | Whitelist beforeEach and afterEach as globals for eslint | .eslintrc.js | .eslintrc.js | module.exports = {
"env": {
"browser": true,
"es6": true,
"node": true
},
"globals": {
"describe": false,
"it": false
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
... | JavaScript | 0 | @@ -136,16 +136,66 @@
%22: false
+,%0A %22beforeEach%22: false,%0A %22afterEach%22: false,
%0A %7D,%0A
|
d1222757b74ec8df6710cd717d9d7597b77a0e7b | change publish path for win-ia32 (#496) | builder.config.js | builder.config.js | /* eslint-disable no-template-curly-in-string */
const { externals } = require('./webpack.common')
const fs = require('fs')
const path = require('path')
const { nodeFileTrace } = require('@vercel/nft')
const config = {
afterSign: 'bin/notarize.js',
detectUpdateChannel: true,
generateUpdatesFilesForAllChannels: t... | JavaScript | 0.000001 | @@ -1480,13 +1480,9 @@
ktop
--win-
+/
ia32
|
4edd3d02fd396c29b05ebe7be4b579139a72aa3c | update ecmascript eslint parser target | .eslintrc.js | .eslintrc.js | 'use strict';
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2018,
},
plugins: ['node', 'prettier'],
extends: ['eslint:recommended', 'plugin:node/recommended', 'plugin:prettier/recommended'],
env: {
browser: false,
node: true,
es6: true,
},
globals: {},
rules: {
/***... | JavaScript | 0 | @@ -83,10 +83,10 @@
: 20
-18
+20
,%0A
|
d692e9ae84df2ece38ba7a1ecb81624114417907 | Add valid-typeof rule | .eslintrc.js | .eslintrc.js | module.exports = {
'env': {
'browser': true,
'commonjs': true,
'es6': true,
'jasmine': true
},
'extends': [
'eslint:recommended',
'plugin:flowtype/recommended'
],
'globals': {
// The globals that (1) are accessed but not defined within many of ... | JavaScript | 0.000032 | @@ -1944,24 +1944,52 @@
isnan': 2,%0A%0A
+ 'valid-typeof': 2,%0A%0A
'pre
|
35ec2e20f3ac93239360f7cb0f9fc43e860f9845 | Reducing indent to 2 spaces | .eslintrc.js | .eslintrc.js | module.exports = {
"env": {
"node": true
},
"extends": "eslint:recommended",
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
... | JavaScript | 0.998368 | @@ -18,23 +18,21 @@
%7B%0A
- %22env%22
+'env'
: %7B%0A
@@ -31,18 +31,14 @@
- %22
+'
node
-%22
+'
: tr
@@ -46,29 +46,25 @@
e%0A
-
%7D,%0A
- %22
+'
extends
-%22: %22
+': '
esli
@@ -81,30 +81,28 @@
nded
-%22
+'
,%0A
- %22
+'
rules
-%22
+'
: %7B%0A
@@ -101,20 +101,16 @@... |
f159e79f3ea3a0388f6461ccf5cb03d81012af32 | Allow for-of statement. | .eslintrc.js | .eslintrc.js | module.exports = {
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"env": {
"node": true,
"es6": true
},
"extends": [
"airbnb-base",
"plugin:promise/recommended"
],
"plugins": [
"import",
"promise",
"typescript"
],
"rule... | JavaScript | 0.000075 | @@ -561,16 +561,643 @@
rue %7D%5D,%0A
+ %22no-restricted-syntax%22: %5B%0A %22error%22,%0A %7B%0A selector: 'ForInStatement',%0A message: 'for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.%7Bkeys,values,entries%7D, and iterate over the... |
2ac83ddbc144b52f0edfd52704d6e97b18782147 | Remove tmp ignore | .eslintrc.js | .eslintrc.js | const error = 2;
const warn = 1;
const ignore = 0;
module.exports = {
root: true,
extends: [
'airbnb',
'plugin:jest/recommended',
'plugin:import/react-native',
'prettier',
'prettier/react',
],
plugins: ['prettier', 'jest', 'import', 'react', 'jsx-a11y', 'json'],
parser: 'babel-eslint',
... | JavaScript | 0.000001 | @@ -2403,39 +2403,8 @@
%5D,%0A
- 'linebreak-style': ignore,%0A
|
4ea79ff4ab18474c4a692e1be9262950343f528a | Remove requirement for babel-eslint | .eslintrc.js | .eslintrc.js | (function() {
let error = 2;
module.exports = {
parser: "babel-eslint",
parserOptions: {
"ecmaVersion": 6,
"sourceType": "module"
},
root: true,
extends: "ftgp",
rules: {
"quotes": [error, "double"],
"ftgp/require-class-comment": 0
}
};
})();
| JavaScript | 0 | @@ -48,34 +48,8 @@
= %7B%0A
-%09%09parser: %22babel-eslint%22,%0A
%09%09pa
|
24da14197350c079a902f21297667a0348db4291 | remove unsued variables | embark-ui/src/components/Console.js | embark-ui/src/components/Console.js | import PropTypes from "prop-types";
import React, {Component} from 'react';
import Convert from 'ansi-to-html';
import { Form, Col, Row, Card, CardBody, Input, CardFooter, TabContent, TabPane, Nav, NavItem, NavLink } from 'reactstrap';
import classnames from 'classnames';
import {AsyncTypeahead} from 'react-bootstrap-... | JavaScript | 0.000436 | @@ -118,14 +118,8 @@
rt %7B
- Form,
Col
@@ -134,37 +134,8 @@
ard,
- CardBody, Input, CardFooter,
Tab
|
4bd4c6cc453da42df4c4fc16005e4be647c2c7ad | extend js tests timeout | spec/javascripts/member-ui/fundraiser_spec.js | spec/javascripts/member-ui/fundraiser_spec.js | //= require sumofus
describe("fundraiser", function() {
var suite = this;
before(function() {
suite.validatePath = /\/api\/pages\/[0-9]+\/actions\/validate/;
window.onbeforeunload = function(){
return 'Are you sure you want to leave?';
};
});
afterEach(function() {
suite.server.restore(... | JavaScript | 0.000001 | @@ -69,16 +69,40 @@
= this;
+%0A suite.timeout(10000);
%0A%0A befo
|
03511e6b250873c5fe6c99cafca41850120f5ca1 | fix build display | apps/app/src/pages/Build/ScreenshotsDiffCard.js | apps/app/src/pages/Build/ScreenshotsDiffCard.js | import * as React from "react";
import { x } from "@xstyled/styled-components";
import { gql } from "graphql-tag";
import {
Card,
CardHeader,
CardTitle,
CardBody,
BaseLink,
LinkBlock,
useDisclosureState,
DisclosureContent,
Disclosure,
Icon,
} from "@argos-ci/app/src/components";
import { ChevronRigh... | JavaScript | 0.000033 | @@ -2301,16 +2301,42 @@
%7B
+compareScreenshot.name %7C%7C
baseScre
|
ae86b237deee88c55c43fa79a40a32d0cc695703 | fixing up the email | app/util.js | app/util.js | var nodemailer = require('nodemailer');
var twilio = require('twilio')(process.env.TWILIO_ACCOUNT_SID, process.env.TWILIO_AUTH_TOKEN);
var _ = require('lodash');
// Nodejs encryption with CTR
var crypto = require('crypto'),
algorithm = 'aes-256-ctr',
password = 'CORSICA'; //This should be secret
var util = exports;
... | JavaScript | 0.999999 | @@ -1530,34 +1530,16 @@
to
-%3Ca href='%22+ link +%22'%3E%3C/a%3E%22
+'%22+ link
;%0A
|
c4e753d1c81bc584f5ddd92bde3c986b3c181613 | Allow setting highlanderDeactivate in activate | source/ui/Group.js | source/ui/Group.js | /**
_enyo.Group_ provides a wrapper around multiple elements. It enables the
creation of radio groups from arbitrary components supporting the
[GroupItem](#enyo.GroupItem) API.
*/
enyo.kind({
name: "enyo.Group",
published: {
/**
If true, only one GroupItem in the component list may be active at
a given ti... | JavaScript | 0 | @@ -980,16 +980,429 @@
nder) %7B%0A
+%09%09%09// we can optionally accept an %60allowHighlanderDeactivate%60 property in inEvent without directly %0A%09%09%09// specifying it when instatiating the group - used mainly for custom kinds requiring deactivation %0A%09%09%09if (inEvent.allowHighlanderDeactivate !== undefin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.