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 |
|---|---|---|---|---|---|---|---|
b1f654015564c05e9336cc5040f52cef9460ae37 | Fix uname command | index.js | index.js | #! /usr/bin/env node
/*
* Module dependencies.
*/
var program = require('commander');
var chalk = require('chalk');
// Googleit's version
// Only change this in release branch
program.version('1.1.6');
// Check system is running on macOS or not => Show error message and retrun false
function checkEnvironment(callb... | JavaScript | 0.000399 | @@ -382,16 +382,19 @@
= 'uname
+ -s
';%0A exe
|
65b4a2def107c3a43b0f3272e5feb874f90a115d | fix css error | src/client/components/Profile/ProfileLibrary.component.js | src/client/components/Profile/ProfileLibrary.component.js | 'use strict';
/**
* @file
* ProfileLibraries displays a users favorite libraries.
*/
import React from 'react';
import {find} from 'lodash';
const ProfileLibrary = React.createClass({
displayName: 'ProfileLibrary',
propTypes: {
actions: React.PropTypes.object.isRequired,
editable: React.PropTypes.boo... | JavaScript | 0 | @@ -1430,33 +1430,33 @@
Name='large-
-4
+8
medium-
4 small-12 c
@@ -1439,34 +1439,34 @@
ge-8 medium-
-4
+8
small-
-1
2
+4
columns'%3E%0A
@@ -1662,33 +1662,33 @@
Name='large-
-4
+8
medium-
4 small-12 c
@@ -1671,34 +1671,34 @@
ge-8 medium-
-4
+8
small-
-1
2
+4
columns'%3E%0A
@@ -1930,17 +1930,17 @@
... |
6eb44ca7700a2f545e5d10542b015be84a1dfe30 | Remove MatchlistProvider.match() since this is now handled by hain. | code/providers/Providers.js | code/providers/Providers.js | 'use strict';
//noinspection JSUnusedLocalSymbols
let { indent, reQuery, ResolveLiteral } = require('../utils.js');
let ResolveIcon = require('../util/IconResolver');
let Providers;
module.exports = (() => {
class ProvidersMap extends Map {
constructor(i) {
super(i);
this.Resolvers = new Map();
}
get(k... | JavaScript | 0 | @@ -2093,548 +2093,8 @@
%09%7D%0A%0A
-%09%09/**%0A%09%09 * @param %7Bstring%7D query A pattern match value to query against this provider%0A%09%09 * @returns %7BMatchDefinition%5B%5D%7D%0A%09%09 */%0A%09%09matches(query) %7B%0A%09%09%09/** @type %7Bstring%5B%5D%7D */%0A%09%09%09let matches = reQuery(query, Array.fr... |
7dd930d3e680cc893ce3e1d7612dd1c7f1379d36 | Fix comma slicing | messaging/firebase-messaging-sw.js | messaging/firebase-messaging-sw.js | // Import and configure the Firebase SDK
// These scripts are made available when the app is served or deployed on Firebase Hosting
// If you do not serve/host your project using Firebase Hosting see https://firebase.google.com/docs/web/setup
importScripts('/__/firebase/7.23.0/firebase-app.js');
importScripts('/__/fire... | JavaScript | 0.999255 | @@ -728,11 +728,11 @@
here
-, o
+. O
ther
|
6b4ebb260e08991502915928966404fbd36b29f6 | add default values to data; display an error when username/repo not found | index.js | index.js | var express = require('express'),
cookieParser = require('cookie-parser'),
debug = require('./lib/debug'),
config = require('./config'),
jsesc = require('jsesc'),
VowGithub = require('./lib/vow-github'),
Vow = require('vow'),
app = express(),
diffGetter = require('./lib/diff-getter'),
... | JavaScript | 0 | @@ -2307,24 +2307,139 @@
ons.file) %7B%0A
+ fs.writeFileSync('dist/diff_test.js', 'var diff_model = %5B%5D, content_before = content_after = %5C'%5C';');%0A%0A
@@ -2457,16 +2457,33 @@
options)
+%0A
.then(fu
@@ -2514,24 +2514,28 @@
+
var patch =
@@ -2535,20... |
86dcd5a8b26574586da3cf01231b80a5aef1e2c8 | make the execution of the previously defined handler optional | index.js | index.js |
import {NativeModules, Platform} from 'react-native';
const {ReactNativeExceptionHandler} = NativeModules;
const noop = () => {};
export const setJSExceptionHandler = (customHandler = noop, allowedInDevMode = false) => {
if ((typeof allowedInDevMode !== 'boolean') || (typeof customHandler !== 'function')) {
c... | JavaScript | 0.000002 | @@ -1,13 +1,12 @@
-%0A
import %7B
Nati
@@ -1,16 +1,17 @@
import %7B
+
NativeMo
@@ -29,16 +29,17 @@
form
+
%7D from
-'
+%22
reac
@@ -46,17 +46,17 @@
t-native
-'
+%22
;%0A%0Aconst
@@ -57,16 +57,17 @@
%0Aconst %7B
+
ReactNat
@@ -85,16 +85,17 @@
nHandler
+
%7D = Nati
@@ -126,16 +126,17 @@
() =%3E %7B
+ ... |
70a29d4bb6e69675d63538862f7ab2239e81d500 | check if config file is ignored | index.js | index.js | // import 'babel-polyfill';
// import express from 'express';
// import mongoose from 'mongoose';
// import bodyParser from 'body-parser';
// import { DATABASE_URL, PORT } './config'
const express = require('express');
const mongoose = require('mongoose');
const bodyParser = require('body-parser');
const { DATABASE_U... | JavaScript | 0.000005 | @@ -377,16 +377,35 @@
nv.HOST;
+%0Aconst PORT = 8080;
%0A%0Aconsol
|
720402395b89f95cd499489ee96b82d792f98c6b | Test for errors reducer handling PROJECT_SOURCE_EDITED | test/unit/reducers/errors.js | test/unit/reducers/errors.js | import test from 'tape';
import partial from 'lodash/partial';
import reducerTest from '../../helpers/reducerTest';
import {errors as states} from '../../helpers/referenceStates';
import {gistData} from '../../helpers/factory';
import {
changeCurrentProject,
projectCreated,
gistImported,
} from '../../../src/acti... | JavaScript | 0 | @@ -254,16 +254,32 @@
roject,%0A
+ gistImported,%0A
projec
@@ -286,33 +286,40 @@
tCreated,%0A
-gistImpor
+projectSourceEdi
ted,%0A%7D from
@@ -1326,28 +1326,230 @@
),%0A states.validating,%0A));%0A
+%0Atest('projectSourceEdited', reducerTest(%0A reducer,%0A states.noErrors,%0A partial(projectSourceEdited... |
3391cef44d073834939c567efe2d74c3e3168aca | simplify start node assignment | index.js | index.js |
exports = module.exports = init;
/**
* Module initialization function.
*
* @param {Array.<string>=[]} words - Initial dictionary data.
* @public
*/
function init() {
return new Dawg();
}
// Used to keep track of node IDs
var nextId = 1;
/**
* A node in the DAWG.
*
* @constructor
* @private
*/
function ... | JavaScript | 0 | @@ -1374,96 +1374,8 @@
t;%0A%0A
- if (typeof node == 'undefined') %7B%0A this.root = node = new DawgNode();%0A %7D else %7B%0A
va
@@ -1403,18 +1403,16 @@
etter%5D;%0A
-
if (ty
@@ -1443,18 +1443,16 @@
) %7B%0A
-
-
var next
@@ -1494,26 +1494,24 @@
ring();%0A
-
this.uncheck
@@ -1546,26 +15... |
a0fd4382df364a4ab99f0a463f9e583fc44ecf34 | fix documentation rtl generation | build/docs-rtl.js | build/docs-rtl.js | #!/usr/bin/env node
'use strict'
/*!
* Script to update version number references in the project.
* Copyright 2017 The Bootstrap Authors
* Copyright 2017 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/* global Set */
var fs = require('fs')
var path = require('pat... | JavaScript | 0.000001 | @@ -750,37 +750,36 @@
err:', stderr);%0A
-%7D);
%0A%0A
+
sh.exec(%22find .t
@@ -860,13 +860,12 @@
sted
-%5C.min
+-rtl
%5C./g
@@ -900,32 +900,34 @@
dout, stderr) %7B%0A
+
console.log('E
@@ -937,32 +937,34 @@
code:', code);%0A
+
console.log('P
@@ -981,32 +981,34 @@
put:', stdout);%0A
+
console.l... |
6ffbd1410f418d44c9b3286990a6d169fc20c619 | add dots reporter to saucelabs | build/task/test.js | build/task/test.js | var assign = require('lodash/object/assign');
var buildTest = require('./build-test');
var Server = require('karma').Server;
var vitalBrowsers = ['Firefox', 'Chrome'];
function isVitalBrowser(name) {
return new RegExp(vitalBrowsers.join('|')).test(name);
}
module.exports = function (opts, done) {
var args = [];
... | JavaScript | 0.000001 | @@ -1057,16 +1057,24 @@
ucelabs'
+, 'dots'
%5D,%0A
|
94727677398c746c21b89a764a7ec109a339662e | fix typo | build/tasks/e2e.js | build/tasks/e2e.js | var gulp = require('gulp');
var paths = require('../paths');
var to5 = require('gulp-6to5');
var plumber = require('gulp-plumber');
var gulp = require('gulp');
var webdriver_update = require('gulp-protractor').webdriver_update;
var protractor = require("gulp-protractor").protractor;
// for full documentation of gulp-p... | JavaScript | 0.000074 | @@ -710,21 +710,16 @@
e2e task
- then
%0A// then
|
c7ac3696a63cced7dc02988ab2b3f3c086c7367a | Add handleRejections option support (#41) | index.js | index.js | 'use strict';
const util = require('util');
const Writable = require('readable-stream/writable');
const { LEVEL } = require('triple-beam');
/**
* Constructor function for the TransportStream. This is the base prototype
* that all `winston >= 3` transports should inherit from.
* @param {Object} options - Options fo... | JavaScript | 0 | @@ -963,16 +963,68 @@
ptions;%0A
+ this.handleRejections = options.handleRejections;%0A
this.s
|
c4d6900df83b9f634f1b0946f23851c78baa0817 | include font-src by default | index.js | index.js | module.exports = {
name: 'ember-cli-content-security-policy',
config: function(environment /*, appConfig */) {
var ENV = {
contentSecurityPolicyHeader: 'Content-Security-Policy',
contentSecurityPolicy: {
'default-src': "'none'",
'script-src': "'self'",
'connect-src': "'self'... | JavaScript | 0 | @@ -275,32 +275,62 @@
src': %22'self'%22,%0A
+ 'font-src': %22'self'%22,%0A
'connect
|
81605702a29a165779783e16a022b9eb6851ea5d | support added for local environment | index.js | index.js |
"use strict";
var contentstack = require('contentstack-express');
var ColorThief = require("color-thief");
var fs = require("fs");
var path = require("path");
var colorThief = new ColorThief();
module.exports = function Lazyloader() {
var options = Lazyloader.options;
Lazyloader.tem... | JavaScript | 0 | @@ -839,16 +839,34 @@
lopment'
+ %7C%7C env == %22local%22
)%7B%0A
|
4c66857245b2a6ff26106e7709a39d88397b1fa0 | Add note on how I imagine the data interaction working. | src-web/js/view/Data.js | src-web/js/view/Data.js | import Radium from 'radium';
import React from 'react';
import * as MaterialUI from 'material-ui';
import { getChildren, reactJoin } from './util';
const styles = {
dataConstructor: {
':hover': {
backgroundColor: '#ddd',
},
},
data: {
display: 'flex',
flexDirection: 'column',
},
info... | JavaScript | 0 | @@ -1064,16 +1064,947 @@
%7D%0A%7D%0A%0A%0A
+// TODO:%0A// * button to add (/remove) a type parameter%0A// - this should allow them to be annotated with their kind%0A// (or inferred as Set) if it's left off?%0A// * button to add (/remove) a constructor (or modifying?)%0A// - this should autocomplete from the... |
293994799761ef69cdba843f20185c36139fc403 | Fix for logged in user in app.js data instead of response | client/app/app.js | client/app/app.js | 'use strict';
/***
*
* Load the app manually, first fetch user data asynchronically .
*
***/
angular.element(document).ready(
function() {
var initInjector = angular.injector(['ng']);
var $http = initInjector.get('$http');
var token = localStorage.getItem('columby_token');
if (token) {
$... | JavaScript | 0 | @@ -477,32 +477,28 @@
ss(function(
-response
+data
, status, he
@@ -594,25 +594,16 @@
if (!
-response.
data.id)
@@ -702,17 +702,8 @@
r =
-response.
data
@@ -816,24 +816,20 @@
unction(
-response
+data
, status
|
5bdf95b4aa3707ba6e8babee6a35dcf121167a97 | load script content and create new Function | index.js | index.js | #!/usr/bin/env node
"use strict"
require(__dirname + "/node_modules/" + "flow");
const fs = require("fs");
const presolve = require("path").resolve;
const promisify = require("util").promisify;
const exec = promisify(require("child_process").exec);
const access = promisify(fs.access);
const read = promisify(fs.readFi... | JavaScript | 0 | @@ -27,16 +27,29 @@
trict%22%0A%0A
+const Flow =
require(
@@ -79,21 +79,16 @@
les/
-%22 + %22
flow%22);%0A
%0Acon
@@ -83,17 +83,16 @@
flow%22);%0A
-%0A
const fs
@@ -1049,306 +1049,165 @@
urn
-new Promise((resolve, reject) =%3E %7B%0A process.nextTick(() =%3E %7B%0A try %7B%0A ... |
ada2ea43f0c4526d9d6ab0133eac1311e7fd6142 | Make devfest the default prefix for DevFest season. | client/app/app.js | client/app/app.js | 'use strict';
angular.module('fireflyApp', [
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute',
'ngMaterial',
'ngAria',
'ui.bootstrap',
'googlechart',
'uiGmapgoogle-maps',
'ngGeolocation',
'linkify',
'viewhead',
'ja.qr'
])
.constant('GOOGLE_API_KEY', 'AIzaSyD7v04m_bTu-rcWtuaN3fTP9NBmjhB7lX... | JavaScript | 0 | @@ -1144,19 +1144,15 @@
= '
-i-oextended
+devfest
';%0A
|
c29fab0d2a804aaaf9e050722a16574a5e379662 | Remove libraries no longer needed from main app | problems/kata/001-todo-backend/001/app.js | problems/kata/001-todo-backend/001/app.js | var express = require('express');
var cors = require('cors');
var bodyParser = require('body-parser');
// FIXME: remove direct use of nano when all library calls removed
var nano = require('nano')('http://localhost:5984');
var todo = nano.db.use('todo');
var todos = require('./todo');
var app = express();
app.use(cor... | JavaScript | 0 | @@ -100,160 +100,8 @@
');%0A
-// FIXME: remove direct use of nano when all library calls removed%0Avar nano = require('nano')('http://localhost:5984');%0Avar todo = nano.db.use('todo');%0A
var
|
4ec468038cbfaea6cd97c308e92ceff82dccaa4b | Add options to $observe. | frontend/src/index.js | frontend/src/index.js | import Vue from 'vue';
import App from './App';
import router from './router';
import Vuetify from 'vuetify';
import Vuex from 'vuex';
import store from './store';
import VueRx from 'vue-rx';
import VueTimeago from 'vue-timeago';
import VueScrollto from 'vue-scrollto';
import { Observable, Subscription, Subject } from ... | JavaScript | 0 | @@ -839,16 +839,30 @@
ction(fn
+, options = %7B%7D
) %7B%0A re
@@ -911,16 +911,28 @@
te: true
+, ...options
%7D).pipe
|
f93d43b7fe69323dbdd572b23e650db0e149a43d | use .ctprofile (for custom styling) | cantools/CT/layout.js | cantools/CT/layout.js | /*
This module provides functions that generate common UI elements. These include:
### header(opts) - defaults:
logo: "Placeholder Logo"
right: []
centerLogo: true
### footer(opts) - defaults:
logo: "Placeholder Logo"
links: []
contact: {}
### grid(data, columns, rows, hardheight) - defaults:
columns: 3
rows... | JavaScript | 0 | @@ -3328,16 +3328,26 @@
ght w1-3
+ ctprofile
%22),%0A%09%09%09i
|
8cc6d5515c757a27ab858ecab61e4377d64ef6c4 | Support short gist URLs. Fixes #7 | web.js | web.js | #!/usr/bin/env node
var express = require('express'),
middleware = require('./lib/middleware');
// -- Configure Express --------------------------------------------------------
var app = express();
app.disable('x-powered-by');
if (app.get('env' === 'development')) {
app.use(express.responseTime());
ap... | JavaScript | 0 | @@ -1001,25 +1001,8 @@
aw%5C/
-%5B0-9a-f%5D%7B40%7D%5C/.+$
/,%0A
|
06d4589981271878b76a25fc2c9a550655f5b100 | add weightedAverage function to target | grafana/target.js | grafana/target.js | 'use strict';
var _ = require('underscore');
var util = require('util');
function Target() {
if (arguments.length === 0) {
throw new Error('Incorrect invocation of Target. ' +
'Must provide at least one argument');
}
if (typeof arguments[0] === 'string') {
// Format... | JavaScript | 0.000001 | @@ -2951,16 +2951,40 @@
Above: 3
+,%0A weightedAverage: 2
%0A%7D;%0A%0A_.e
|
5b1226c134152ce8b69a385112b3429bf90ffdef | fix test typo | tests/acceptance/new_slow.js | tests/acceptance/new_slow.js | 'use strict';
var fs = require('fs-extra');
//var RSVP = require('rsvp');
var mkdirSync = fs.mkdirSync;
var rimraf = require('rimraf');
var ember = require('../helpers/ember');
var assert = require('assert');
var walkSync = require('../../lib/utilities/walk-sync').walkSync;
var path = require('path');
describe('Accep... | JavaScript | 0.000197 | @@ -407,16 +407,28 @@
.cwd();%0A
+ try %7B%0A
mkdi
@@ -437,24 +437,42 @@
ync('tmp');%0A
+ %7D catch(e) %7B%7D%0A
process.
@@ -773,16 +773,18 @@
cess.cwd
+()
);%0A%0A
|
22d7ea073276e80f3b40b7054717c432d4088394 | Remove process stdin resume and encoding which are default anyway | pino-mongodb.js | pino-mongodb.js | #!/usr/bin/env node
var pkg = require('./package.json')
var MongoClient = require('mongodb').MongoClient
var params = require('commander')
var jsonParse = require('fast-json-parse')
params
.version(pkg.version)
.description(pkg.description)
.option('-H, --host <address>', 'DataBase host (localhost)', 'localhost'... | JavaScript | 0 | @@ -1053,16 +1053,51 @@
nection)
+%0Aprocess.stdin.pipe(process.stdout)
%0A%0Afuncti
@@ -1168,46 +1168,8 @@
%7D%0A%0A
- process.stdin.pipe(process.stdout)%0A%0A
va
@@ -1319,69 +1319,8 @@
%7D)%0A%0A
- process.stdin.resume()%0A process.stdin.setEncoding('utf8')%0A
pr
|
9748b03d2dd4cbac256d365cf7da1e9f3c858ed2 | change directory that servers application | web.js | web.js | // web.js
var gzippo = require('gzippo');
var express = require("express");
var logfmt = require("logfmt");
var app = express();
app.use(logfmt.requestLogger());
app.use(gzippo.staticGzip("" + __dirname + "/dist"));
var port = Number(process.env.PORT || 5000);
app.listen(port, function() {
console.log("Listening on "... | JavaScript | 0.000001 | @@ -206,12 +206,11 @@
+ %22/
-dist
+app
%22));
|
94b2b0c208f91937143dc1680db49e22e9d6472a | Add env variable | src/app/webpack.config.js | src/app/webpack.config.js | 'use strict;';
const CopyWebpackPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require('webpack');
const isProd = process.env.NODE_ENV === 'production';
const config = {
entry: './src/app/index.tsx',
output: {
filename: '[name].[chun... | JavaScript | 0.000006 | @@ -1227,16 +1227,107 @@
lugin(%7B%0A
+ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV %7C%7C 'development'),%0A
|
3c3ed22412e381292cb7669f3d65cf4d2c5b2a37 | add some useful shotcuts | ctrlers/index.js | ctrlers/index.js | var matcher = function(id) {
return (id && id.match(/^[0-9a-fA-F]{24}$/));
}
var Ctrler = function(model) {
this.model = model ? model : null;
}
Ctrler.prototype.create = function(baby, callback) {
var baby = new this.model(baby);
baby.save(function(err) {
callback(err, baby);
});
}
Ctrle... | JavaScript | 0.000001 | @@ -209,105 +209,40 @@
-var baby = new this.model(baby);%0A baby.save(function(err) %7B%0A callback(err, baby);%0A %7D
+this.model.create(baby, callback
);%0A%7D
@@ -512,31 +512,157 @@
ototype.
-findOneAndUpdat
+updates = function(params, update, callback) %7B%0A if (matcher(id)) this.model.upda... |
15bd9b45207f2ffe2241c4747f6137d462cfb36b | Update tests | lib/node_modules/@stdlib/random/base/improved-ziggurat/test/test.js | lib/node_modules/@stdlib/random/base/improved-ziggurat/test/test.js | /**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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 a... | JavaScript | 0.000001 | @@ -1115,18 +1115,8 @@
'has
- %60factory%60
met
@@ -1119,24 +1119,24 @@
method' );%0A
+
%09t.end();%0A%7D)
@@ -1269,15 +1269,8 @@
'has
- %60NAME%60
pro
@@ -1424,15 +1424,8 @@
'has
- %60PRNG%60
pro
@@ -1583,14 +1583,172 @@
has
-%60seed%60
+property' );%0A%09t.end();%0A%7D);%0A%0Atape( 'attached to the main... |
7dc48730274df3eb2e56f82da9bc256809aa4473 | change config paht to /etc/ealertapirc.conf | lib/config-loader.js | lib/config-loader.js | var fs = require('fs');
var home = process.env.HOME || process.env.USERPROFILE;
var configFile = home + "/.ealertapirc";
var defaultConfig = {
"port" : 3000,
"es_host" : "localhost",
"es_port" : "9200",
"path" : "./rules/",
"index": "rulez",
"type" : "rule"
};
try{
fs.statSync(configFile);
}
catch(excep... | JavaScript | 0 | @@ -18,16 +18,18 @@
'fs');%0A%0A
+//
var home
@@ -97,18 +97,14 @@
e =
-home + %22/.
+%22/etc/
eale
@@ -110,16 +110,21 @@
ertapirc
+.conf
%22;%0Avar d
|
ff5df1b848fb2ef770cc0a8d24732e776969028f | fix addZero method if episodes > 99 | client/app/helper.js | client/app/helper.js | export default {
methods: {
// http://stackoverflow.com/a/24559613
scrollToTop(scrollDuration = 300) {
let cosParameter = window.scrollY / 2;
let scrollCount = 0;
let oldTimestamp = performance.now();
function step(newTimestamp) {
scrollCount += Math.PI / (scrollDuration / (ne... | JavaScript | 0 | @@ -692,24 +692,48 @@
ero(item) %7B%0A
+ if(item %3C 10) %7B%0A
return
@@ -733,17 +733,16 @@
return
-(
'0' + it
@@ -747,19 +747,36 @@
item
-).slice(-2)
+;%0A %7D%0A%0A return item
;%0A
|
d9ca1ee6eee1a48c5af73139af262e162c9d1517 | Update version string to 2.6.0-rc.1 | index.js | index.js | module.exports = {
version: '2.6.0-pre.20.1'
};
| JavaScript | 0 | @@ -33,14 +33,10 @@
6.0-
-pre.20
+rc
.1'%0A
|
7784b3cc753bea5ecfd1419a4a2f82ab531d7b69 | remove duplicate componentDidMount from Datepicker | source/views/components/datepicker/index.js | source/views/components/datepicker/index.js | // @flow
// Copied from https://github.com/xgfe/react-native-datepicker
import * as React from 'react'
import {Keyboard} from 'react-native'
import moment from 'moment-timezone'
import {DatePicker as ActualDatePicker} from './datepicker'
const FORMATS = {
date: 'YYYY-MM-DD',
datetime: 'YYYY-MM-DD HH:mm',
time: 'H... | JavaScript | 0 | @@ -1020,141 +1020,8 @@
%09%7D%0A%0A
-%09componentDidMount() %7B%0A%09%09this.setState(() =%3E (%7B%0A%09%09%09date: this.props.initialDate,%0A%09%09%09timezone: this.props.initialDate.tz(),%0A%09%09%7D))%0A%09%7D%0A%0A
%09com
|
7bf90c0083f3891f7e46d7230e60480642a08a7e | Return Search route early if data is null | src/apps/search/Routes.js | src/apps/search/Routes.js | import React from 'react'
import { Query } from 'react-apollo'
import { Switch, Route } from 'react-router-dom'
import { remove as removeDiacritics } from 'diacritics'
import parseRoute from 'v2/util/parseRoute'
import searchUiStateQuery from 'apps/search/queries/searchUiState'
import SearchPage from 'v2/pages/search... | JavaScript | 0.000011 | @@ -778,16 +778,51 @@
.message
+%0A if (!data) return null
%0A%0A
|
beb4549cbe4fa99afc633fb072e7b518e01fcd2f | add info footer to bus views | source/views/transportation/bus/bus-line.js | source/views/transportation/bus/bus-line.js | // @flow
import React from 'react'
import {View, Text, StyleSheet, Platform} from 'react-native'
import type {BusLineType, FancyBusTimeListType} from './types'
import {getScheduleForNow, getSetOfStopsForNow} from './lib'
import get from 'lodash/get'
import zip from 'lodash/zip'
import head from 'lodash/head'
import las... | JavaScript | 0 | @@ -552,16 +552,28 @@
r, Title
+, ListFooter
%7D from '
@@ -4588,16 +4588,154 @@
tRow%3E*/%7D
+%0A%0A %3CListFooter title=%7B'Bus routes and times subject to change without notice%5Cn%5CnData collected by the humans of All About Olaf'%7D /%3E
%0A %3C
|
ff60631bbe9900f92ed900785d10dbb16dcef6f8 | fix debug function | public/assets/libs/require/plugins/jsx.js | public/assets/libs/require/plugins/jsx.js | /**
* @license The MIT License (MIT)
*
* Copyright (c) 2014 Felipe O. Carvalho
*
* 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 r... | JavaScript | 0.000674 | @@ -2376,39 +2376,32 @@
+= %22%5Cn//# source
-Mapping
URL=%22 + location
@@ -2478,33 +2478,24 @@
ileExtension
- + %22.map%22
;%0A
@@ -2605,15 +2605,8 @@
urce
-Mapping
URL=
@@ -2725,17 +2725,8 @@
sion
- + %22.map%22
;%0A
|
e0db2033eaa5e00c40a7be02f2849887d2393364 | Update Example to Change Title | example/src/client.js | example/src/client.js | import 'babel-polyfill';
import React from 'react';
import { render } from 'express-react-router';
import routes from './routes';
// Turn on React Dev tools
window.React = React;
// Render react-router to page
render(
routes,
window.document.getElementById('reactContent'),
{
title: 'Express React Router Exampl... | JavaScript | 0 | @@ -340,24 +340,19 @@
%7B%0A%09%09
-return %7B%0A%09%09%09url:
+const url =
win
@@ -372,19 +372,78 @@
pathname
+;%0A
%0A%09%09
+document.title = %60Example Page - $%7Burl%7D%60;%0A%09%09return %7B url
%7D;%0A%09%7D%0A);
|
08630ebcd1c0a17f11b40fed6230ea6e19928ed4 | Switch back | server/environment.js | server/environment.js | devEnvironment = {
mode: "dev",
domain: "localhost:3000",
mongoUrl: 'mongodb://localhost:27017/linksDb',
port: 3000,
}
prodEnvironment = {
mode: "prod",
domain: "www.pic.fish",
mongoUrl: 'mongodb://138.68.60.33:27017/linksDb',
port: 3000,
}
console.log("Running in mode:", process.env.NODE_ENV);
modul... | JavaScript | 0.000001 | @@ -210,20 +210,15 @@
b://
-138.68.60.33
+0.0.0.0
:270
|
ec8db970f982e65850d77627dcf599a0b1ce8abd | update features2d test | modules/js/test/test_features2d.js | modules/js/test/test_features2d.js | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
if (typeof module !== 'undefined' && module.exports) {
// The environment is Node.js
var cv = require('./opencv.js');... | JavaScript | 0.000004 | @@ -2076,17 +2076,17 @@
ize(), 5
-2
+3
, 'AKAZE
|
b89be8454f1b16769c2ed3619105d2f01998fb40 | handle the fact that accounts-meld returns a login error message even when successful. fixes #214 | app/client/templates/components/connect-button.js | app/client/templates/components/connect-button.js | // utility function to record the fact that social links can be gleaned from
// a user's profile data on the server side rather than needing to be pulled
// out of the OAuth DB (indicated by a -1)
// needs to be called with a template instance as context
var indicateSocialLinkInUserObject = function() {
var socialLin... | JavaScript | 0.000111 | @@ -393,16 +393,42 @@
%5D = -1;%0A
+ console.log(this.data);%0A
this.g
@@ -1986,51 +1986,254 @@
!err
-) indicateSocialLinkInUserObject.call(tmp);
+ %7C%7C err.message === 'Service correctly added to the current user, no need to proceed!') indicateSocialLinkInUserObject.call(tmp);%0A else %7B%0A co... |
edf888fcbe98f58234437e6c3dd62169c3a1cb5e | Add tests for the 160 char thing | spec/widgets/auto-style/style-utils.spec.js | spec/widgets/auto-style/style-utils.spec.js | var StyleUtils = require('../../../src/widgets/auto-style/style-utils.js');
describe('src/widgets/auto-style/style-utils', function () {
describe('.changeStyle', function () {
it('should change style attribute', function () {
var cartocss = '#layer { marker-line-color: white; marker-fill: #adadad;}';
... | JavaScript | 0 | @@ -1938,13 +1938,680 @@
);%0A %7D);
+%0A%0A describe('.replaceWrongSpaceChar', function () %7B%0A it('should has 12 wrong spaces', function () %7B%0A var cartocss = '#layer%C2%A0%7B%C2%A0marker-line-color:%C2%A0white;%C2%A0marker-fill%C2%A0#adadad%C2%A0%5Bme%3Egasol%C2%A0%7B%C2%A0marker-fill:%C2%A0#fafafa;%... |
ca60c1d1ff2af46b98e98e4d705fedbb70ade2cf | Rename import | gui/app/editor.js | gui/app/editor.js | import Editor from '../editor/src/Editor.js';
import editor from './cfg/editor.js';
/**
* Editor
*
* @type {Function}
*/
export default function () {
document.addEventListener('DOMContentLoaded', () => document.querySelectorAll('textarea[data-type=editor]').forEach(item => Editor.create(item, editor)));
}
| JavaScript | 0.000001 | @@ -46,17 +46,23 @@
%0Aimport
-e
+configE
ditor fr
@@ -302,17 +302,23 @@
e(item,
-e
+configE
ditor)))
|
36200caafeb509206eb5cb98bf631088d3c8624f | Remove console.log | src/routes/Togglol/components/Calendar/TogglolCalendar.js | src/routes/Togglol/components/Calendar/TogglolCalendar.js | /* @flow */
import React from 'react'
import moment from 'moment';
require("moment-duration-format");
import BigCalendar from 'react-big-calendar';
import 'react-big-calendar/lib/css/react-big-calendar.css';
BigCalendar.setLocalizer(
BigCalendar.momentLocalizer(moment)
);
import CreateTimeEntryModal from '../TimeE... | JavaScript | 0.000001 | @@ -2808,39 +2808,8 @@
o)%7B%0A
- console.log(slotInfo);%0A
|
8e70f2d279c27438ee2fb708667b3b63f81185ff | Fix slerp | math/vectorHelpers.js | math/vectorHelpers.js | // This file could have a better name
function rand(min, max) {
min = min || 0;
max = max || 1;
return min + Math.random() * (max - min);
}
function randStart(rangeX, rangeY, rangeZ) {
return {
x: rand(-rangeX/2, rangeX/2),
y: rand(-rangeY/2, rangeY/2),
z: rand(-rangeZ/2, rangeZ/2),
};
}
functi... | JavaScript | 0.00016 | @@ -625,16 +625,23 @@
return
+ (360 +
start +
@@ -663,16 +663,23 @@
* alpha
+) %25 360
;%0A%7D%0A%0Amod
|
9ff46337b4abd59de7313f566febd6776c298c0b | remove electron from the defaults target | cmds/test.js | cmds/test.js | 'use strict'
const EPILOG = `
By default browser tests run in Chrome headless.
Browser testing with Karma supports options forwarding with '--' for more info check https://karma-runner.github.io/3.0/config/configuration-file.html
`
module.exports = {
command: 'test',
desc: 'Test your code in different environment... | JavaScript | 0.000001 | @@ -1358,46 +1358,8 @@
ker'
-, 'electron-main', 'electron-renderer'
%5D%0A
|
9cb258bcc09e19e11d61520fd093faed82c43e3d | Update copyright year | generators/license.js | generators/license.js | /*!
* @overview Ember - JavaScript Application Framework
* @copyright Copyright 2011-2015 Tilde Inc. and contributors
* Portions Copyright 2006-2011 Strobe Inc.
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
* @license Licensed under MIT license
* See https://ra... | JavaScript | 0 | @@ -88,9 +88,9 @@
-201
-5
+6
Til
|
448274369e3f74715941e9a9096a740cbcf71933 | Modify prompt text | cli/mobile/start.js | cli/mobile/start.js | /**
* @file 调试模块入口
* @author firede[firede@firede.us]
* junmer(junmer@foxmail.com)
*/
var path = require('path');
var fs = require('fs');
var extend = require('edp-core').util.extend;
var log = require('edp-core').log;
var pkg = require('edp-core').pkg;
var Deferred = require('edp-core').Deferred;
var spa... | JavaScript | 0.003471 | @@ -1382,32 +1382,101 @@
, function () %7B%0A
+ log.info('try to install ' + name + ', please wait ...')%0A
retu
@@ -1489,32 +1489,32 @@
.install(name);%0A
-
%7D)%0A
@@ -1891,24 +1891,65 @@
startWs() %7B%0A
+ log.info('start web server ...')%0A
var
@@ -2067,32 +... |
bd70a9a667a6b0c5408db7ad96242a325f0628ac | make sure ms time doesn't have decimals | qmlui/js/TimeUtils.js | qmlui/js/TimeUtils.js | /*
Q Light Controller Plus
TimeUtils.js
Copyright (c) Massimo Callegari
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.txt
Unless r... | JavaScript | 0.000158 | @@ -1305,16 +1305,36 @@
%22 +
+parseInt(
ms
+)
:
+parseInt(
ms)
+)
%0A%0A
|
8b5ccc38ea519acd7e340ec8f4e39e9b643f2bb8 | Remove duplicated end braces :( | test/auth/oauth_authenticator_spec.js | test/auth/oauth_authenticator_spec.js | /* jshint mocha:true */
var assert = require('assert');
var rewire = require('rewire');
var sinon = require('sinon');
var OauthAuthenticator = rewire('../../lib/auth/oauth_authenticator');
var BaseBrowserFlow = rewire('../../lib/auth/base_browser_flow');
var Bluebird = require('bluebird');
describe('OauthAuthenticator... | JavaScript | 0.000001 | @@ -2050,22 +2050,16 @@
);%0A %7D);
-%0A %7D);
%0A%0A desc
|
90d9a469d8d9e5c8797118a3d19168791e5ebe36 | Fix alignment issue | make.js | make.js | #!/usr/bin/env node
var JSLINT = './node_modules/jshint/bin/hint',
CSSLINT = './node_modules/csslint/cli.js',
RJS = './node_modules/requirejs/bin/r.js',
STYLUS = './node_modules/stylus/bin/stylus',
DOX = './tools/dox.py',
DIST_DIR = 'dist',
CSS_DIR = 'css',
TEMPLATES_DIR = 'templates'... | JavaScript | 0 | @@ -2355,10 +2355,23 @@
+%0A
-%09%09
+
' -
|
13c402c99007640bce808b68daf8945a9190bdc7 | Move if inside of anonymous function | assets/js/directory.js | assets/js/directory.js | var oldVal = "";
var newVal = "";
var thisObj = null;
var timeout;
var l;
var working = false;
function btnConfirm(btnThis){
if(!working){
l = Ladda.create(btnThis);
l.start();
working = true;
clearTimeout(timeout);
$('#alertbox').fadeOut(100);
$.ajax({
... | JavaScript | 0.000004 | @@ -1044,16 +1044,44 @@
cusout(%0A
+ function()%7B%0A
@@ -1120,36 +1120,8 @@
) %7B%0A
- function()%7B%0A
|
99ae6fb90bba9be6598142454058fc9234de3a37 | Add help message manually since we aren't using optimist and I'm forgetful like that. | index.js | index.js | #!/usr/bin/env node
'use strict'; /*jslint node: true, es5: true, indent: 2 */ /*globals setImmediate */
var _ = require('underscore');
var async = require('async');
var child_process = require('child_process');
var fs = require('fs');
var glob = require('glob');
var minimatch = require('minimatch');
var EXITS = {
S... | JavaScript | 0 | @@ -2460,16 +2460,322 @@
ce(2);%0A%0A
+ if (args.indexOf('--help') %3E -1) %7B%0A console.log(%5B%0A %22Example usages:%22,%0A %22 node_restarter 'templates/**/*.html' 'static/*.js' 'static/*.js' '*.js' 'node server.js --port 8080'%22,%0A %22 node_restarter server.js # (server.js must have +x fla... |
7aa2fac10c6b6833680664136e7615c21946969a | Add quotes to names in csv | homeWardBookmarklet.js | homeWardBookmarklet.js | javascript:(function () {
const memberListUrl = 'https://beta.lds.org/mls/mbr/services/report/member-list?lang=eng';
const memberProfileUrl = 'https://beta.lds.org/mls/mbr/records/member-profile/service/';
let csvMembersWithParents = 'Name,Father\'s Name,Father\'s Unit,Mother\'s Name,Mother\'s Unit\n';
... | JavaScript | 0.000001 | @@ -243,24 +243,25 @@
nts = 'Name,
+%22
Father%5C's Na
@@ -262,17 +262,19 @@
%5C's Name
-,
+%22,%22
Father%5C'
@@ -279,17 +279,19 @@
%5C's Unit
-,
+%22,%22
Mother%5C'
@@ -296,17 +296,19 @@
%5C's Name
-,
+%22,%22
Mother%5C'
@@ -313,16 +313,17 @@
%5C's Unit
+%22
%5Cn';%0A%0A
@@ -1633,16 +1633,22 @@
rents +=
... |
b2dd266c208b02f1f367390703fe8656825e30b4 | remove redundant var | docs/data/index.js | docs/data/index.js | const {
a, abbr, body, h1, head, header, html,
li, nav, p, script, section, link, ul
} = htmlmodule
const onclick = () => parent.location.reload()
document.body = body({
id : 'index',
children : [
header([
h1('Welcome!'),
p([
'You are inside the ',
... | JavaScript | 0.00898 | @@ -42,21 +42,15 @@
er,
-htm
l
+i
,%0A
- li,
nav
|
fb30fcd6eb375215b997a6ea8fb917349a798ea6 | Remove message to put failing query into GraphiQL (#1294) | packages/gatsby/src/internal-plugins/query-runner/query-compiler.js | packages/gatsby/src/internal-plugins/query-runner/query-compiler.js | // @flow
import path from "path"
const normalize = require(`normalize-path`)
import glob from "glob"
import Bluebird from "bluebird"
import invariant from "invariant"
import { IRTransforms } from "relay-compiler"
import ASTConvert from "relay-compiler/lib/ASTConvert"
import RelayCompilerContext from "relay-compiler/lib... | JavaScript | 0 | @@ -4287,54 +4287,8 @@
h%7D%22.
- Copy the failing query into GraphiQL to debug
%5Cn%60%0A
@@ -4500,79 +4500,8 @@
)%0A
- console.log(%60Copy the failing query into GraphiQL to debug%5Cn%60)%0A
|
bbd8d3722350dc79e2f73690e21e07cb5ccadbfe | Update categories | client/Constants.js | client/Constants.js | // Define global constants.
module.exports = {
ADD_EXPENSE: "ADD_EXPENSE",
DELETE_EXPENSE: "DELETE_EXPENSE",
CATEGORIES: [
{
name: "Dining out",
icon: "cutlery"
},
{
name: "Groceries",
icon: "apple"
},
{
... | JavaScript | 0 | @@ -167,97 +167,246 @@
e: %22
-Dining out%22,%0A icon: %22cutlery%22%0A %7D,%0A %7B%0A name: %22Grocerie
+Groceries%22,%0A icon: %22apple%22%0A %7D,%0A %7B%0A name: %22Eating out%22,%0A icon: %22cutlery%22%0A %7D,%0A %7B%0... |
3b64ba55ea0002ba76ebdaa31b0d272ee12592b2 | Fix some transpile issues with example build process. | make.js | make.js | var b = require('substance-bundler');
var fs = require('fs')
var examples = [
'code-editor',
'collab-writer',
'focused',
'form',
'hybrid-inline',
'image',
'inception',
'inline-node',
'input',
'macros',
'marker',
'nested'
]
b.task('clean', function() {
b.rm('./dist')
})
b.task('substance', f... | JavaScript | 0 | @@ -228,16 +228,33 @@
arker',%0A
+ 'spell-check',%0A
'neste
@@ -338,24 +338,108 @@
unction() %7B%0A
+ b.make('substance', 'clean', 'browser')%0A%7D)%0A%0Ab.task('substance:pure', function() %7B%0A
b.make('su
@@ -899,24 +899,29 @@
%5B'substance
+:pure
', 'assets'%5D
@@ -966,19 +966,150 @@
e)%0A %7D)%0A
-%... |
1e242c92aa2e6aacc7c64d956c2fd7dd1f4abe77 | fix another typo | lib/context/index.js | lib/context/index.js | 'use strict';
var util = require('util');
var _ = require('lodash');
var log = require('./../logger');
function Context(obj) {
function f() {
return this['()'].apply(this, arguments)
}
var ctx = Context.compile(obj);
ctx[Context.marker] = true;
_.extend(f, ctx);
return f;
}
Context.mar... | JavaScript | 0.999999 | @@ -828,36 +828,36 @@
ose(%60skipping $%7B
-type
+prop
%7D, because it is
@@ -979,20 +979,20 @@
pping $%7B
-type
+prop
%7D, becau
|
598b46191c5648c409734ca04ffefa012d90c991 | fix typo | app/components/programyear-objective-list-item.js | app/components/programyear-objective-list-item.js | import Component from '@ember/component';
import ObjectiListItem from 'ilios-common/mixins/objective-list-item';
export default Component.extend(ObjectiListItem, {
programYear: null,
expanded: true,
classNames: ['objective-list-item'],
});
| JavaScript | 0.999991 | @@ -45,24 +45,26 @@
port Objecti
+ve
ListItem fro
@@ -148,16 +148,18 @@
(Objecti
+ve
ListItem
|
767d4cc711f0a6f82cea3d14c47f62a91634501a | add link to node-nats | examples/nats-only.js | examples/nats-only.js | 'use strict'
const Hemera = require('./../packages/hemera')
const nats = require('nats').connect()
const hemera = new Hemera(nats, {
logLevel: 'info'
})
/**
* This is useful if you want to communicate with other nodes on NATS which do not use Hemera (NodeJs) e.g Golang, Python.
* The Apcera team maintains client... | JavaScript | 0 | @@ -380,16 +380,74 @@
and C#%0A
+ * More informations https://github.com/nats-io/node-nats%0A
*/%0A%0Ahem
|
b95b7fe8baf33d0c49d0f915d4ed6cb6b4a6585d | Make sure pretender shuts down on test runs | tests/helpers/destroy-app.js | tests/helpers/destroy-app.js | import Ember from 'ember';
export default function destroyApp(application) {
Ember.run(application, 'destroy');
}
| JavaScript | 0 | @@ -108,10 +108,66 @@
troy');%0A
+ if(window.server) %7B%0A window.server.shutdown();%0A %7D%0A
%7D%0A
|
20e63ec0d849422767a8ae030b211df8d298f21e | Fix the photon dev server after the webpack-dev-server update (PR #3797) | res/photon/server.js | res/photon/server.js | // @noflow
const WebpackDevServer = require('webpack-dev-server');
const config = require('./webpack.config.js');
const webpack = require('webpack');
const port = process.env.FX_PROFILER_PHOTON_PORT || 4243;
const host = process.env.FX_PROFILER_PHOTON_HOST || 'localhost';
const serverConfig = {
allowedHosts: ['loca... | JavaScript | 0 | @@ -342,119 +342,58 @@
,%0A
-contentBase: config.output.path,%0A publicPath: config.output.publicPath,%0A stats: %7B%0A colors: true,%0A %7D,%0A%7D;%0A%0A
+host,%0A port,%0A static: false,%0A%7D;%0A%0Aconst server =
new
@@ -409,16 +409,30 @@
vServer(
+serverConfig,
webpack(
@@ -442,117 +442,70 @@
fig)... |
6d5633ca0c22fd3ca7e7441dd6c29aa9c9de6711 | remove enter | assets/js/imageLoad.js | assets/js/imageLoad.js | //Loads images and then initializes Datatables
$(window).load(function() {
var tableTitle = $('.tableImage');
var imageTitle = $('.tableTitle a');
var i = 0;
for (i; i < tableTitle.length; i++) {
var imageLink = imageTitle[i].innerText.toLowerCase();
$('.tableImage')[i].innerHTML = "<a href='/" + imageLin... | JavaScript | 0.000001 | @@ -257,11 +257,8 @@
();%0A
-%09%09%0A
%09%09$(
|
edaff91e824b230fdaf3074fb13458b02f199705 | Fix default req.params in Renderer | lib/core/renderer.js | lib/core/renderer.js | import Tapable from 'tappable'
import chalk from 'chalk'
import _debug from 'debug'
import _glob from 'glob'
import pify from 'pify'
import { Utils } from 'common'
import Router from './router'
const glob = pify(_glob)
const debug = _debug('api:render')
debug.color = 6 // Cyan
const Status = {
INITIAL: 0,
RENDERE... | JavaScript | 0 | @@ -3460,10 +3460,10 @@
%7C%7C
-%5B%5D
+%7B%7D
%0A
|
e00b33af0f12d1c234a430157d573dc352357773 | Fix bug with monkberry #24 | index.js | index.js | 'use strict'
const npm = require('npm')
const path = require('path')
const tmp = require('os').tmpdir()
const webpack = require('webpack')
const uglify = require('uglify-js')
const gzipSize = require('gzip-size')
const MemoryFs = require('memory-fs')
const Buffer = require('buffer').Buffer
const parsePackageName = req... | JavaScript | 0 | @@ -69,19 +69,18 @@
)%0Aconst
-tmp
+os
= requi
@@ -91,17 +91,8 @@
os')
-.tmpdir()
%0Acon
@@ -378,24 +378,113 @@
d-resolve')%0A
+%0Aconst tmp = path.join(os.tmpdir(), 'jsize-' + Math.random().toString(36).substring(7))%0A%0A
const resolv
@@ -1457,18 +1457,16 @@
ll(ids)%0A
-
// Loo
@@ -2683,32 +2683,42 @@
... |
d8fcd82d6b49f0f3d807ab5a4d20e991dce670f7 | Remove "internal" attribute from Index. | maki.js | maki.js | var config = require('./config');
var Maki = require('./lib/Maki');
var maki = new Maki( config );
var Passport = require('maki-passport-local');
var passport = new Passport({
resource: 'Person'
});
maki.use( passport );
maki.use(require('maki-client-level'));
maki.use(require('maki-client-polymer'));
var CMS = re... | JavaScript | 0 | @@ -2716,30 +2716,8 @@
x',%0A
- template: 'splash',%0A
te
@@ -2858,44 +2858,8 @@
%7D,%0A
- names: %7B%0A query: 'splash'%0A %7D,%0A
st
@@ -2872,16 +2872,18 @@
true,%0A
+//
internal
|
e740d27fcd8d038718fcb92bf8f8ce6ff74a20c5 | fix preset test imports | src/__tests__/preset.js | src/__tests__/preset.js | jest.autoMockOff();
const thePreset = require('../../../utils/test-transform')([], { presets: [require('../index')] });
describe('more-optimization', () => {
thePreset('cuts through exports objects', `
function foo() {}
function bar() {}
const exports = Object.freeze({
a: foo,
b: { c: bar }
});
con... | JavaScript | 0.000001 | @@ -47,19 +47,16 @@
('../../
-../
utils/te
|
baa471e4e4c71cfff4c0dfb69488709da167d11d | update index.js with new reducers | react-ui/src/index.js | react-ui/src/index.js | import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import rootReducer from './reducers';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import './styles/inde... | JavaScript | 0 | @@ -226,42 +226,8 @@
t';%0A
-import ReactDOM from 'react-dom';%0A
impo
|
9a8653797584a7bdad4bc9477cee38de5a04fdd3 | Clean up FlatList style | native/app/components/ListPanel.js | native/app/components/ListPanel.js | import fxaUtils from '../vendor/fxa-utils';
import kintoClient from '../vendor/kinto-client';
import ListItem from './ListItem';
import PropTypes from 'prop-types';
import React from 'react';
import store from "../store";
import sync from "../utils/sync";
import { connect } from 'react-redux';
import { FAB } from 'reac... | JavaScript | 0.000001 | @@ -1615,59 +1615,73 @@
-%3CView style=%7Bstyles.container%7D%3E%0A %3CFlatList
+ %3CFlatList%0A contentContainerStyle=%7B%7BmarginBottom:90%7D%7D
%0A
@@ -2975,32 +2975,16 @@
/%3E%0A
- %3C/View%3E%0A
)%0A
@@ -3035,60 +3035,8 @@
e(%7B%0A
- container: %7B%0A backgro... |
fa3fa75f60a60b784d9b1b003d1974e8cbb82380 | Update nanomsg.js | src/adapters/nanomsg.js | src/adapters/nanomsg.js | // nanomsg Adapter
var nano = require('nanomsg');
var Promise = require('bluebird');
var server;
function Adapter(child){
this.child = child;
this.callbacks = {};
this.child.process.on('message', function(result){
this.callbacks[result.id](result.message);
}.bind(this));
}
| JavaScript | 0.000002 | @@ -88,13 +88,13 @@
ar s
-erver
+ocket
;%0A%0Af
@@ -284,6 +284,194 @@
));%0A
-
%7D%0A
+%0AAdapter.prototype.init = function()%7B%0A socket = nano.socket('req');%0A socket.on('message', function()%7B%0A req.connect(addr);%0A %7D);%0A%7D%0A%0AAdapter.server = 'child';%0Amodule.exports = Adapter;%0A
|
9ff24d3f6859240401a3f7586dc11f0128cc6b61 | fix jslint error | app/elements/lmv-button-group/lmv-button-group.js | app/elements/lmv-button-group/lmv-button-group.js | (function() {
LMVUI.ButtonGroup = Polymer({
is: "lmv-button-group",
listeners: {
"active-change": "_onActiveChange"
},
created: function() {
this._currActive = null;
this._handlingChange = false;
},
_onActiveChange: function(event) {
// Avoid recursive calls
if... | JavaScript | 0.000001 | @@ -279,16 +279,42 @@
%7B%0A
+ if (this._handlingChange)
// Avoi
@@ -341,33 +341,9 @@
-if (this._handlingChange)
+
ret
@@ -347,16 +347,17 @@
return;%0A
+%0A
th
@@ -388,52 +388,8 @@
e;%0A%0A
- var activating = event.detail.active;%0A
@@ -468,18 +468,27 @@
if (
-activating
+event.de... |
fc21aefd2c3128404683292e23cbd0e7aa182db1 | Clean up how the echo plugin looks for a better example. | plugins/echo.js | plugins/echo.js | var Plugin = function() {
this.commands = ['echo'];
this.hooks = [];
};
Plugin.prototype.echo = function(bot, to, from, msg, callback) {
bot.say(to, msg);
callback();
};
exports.Plugin = Plugin;
| JavaScript | 0 | @@ -1,14 +1,91 @@
-var Plugin
+/*%0A * Echo plugin%0A * - echo: Repeats whatever is passed with the command%0A */%0Avar Echo
= f
@@ -147,22 +147,21 @@
%5B%5D;%0A%7D;%0A%0A
-Plugin
+%0AEcho
.prototy
@@ -266,16 +266,14 @@
lugin =
-Plugin
+Echo
;%0A
|
b56ca922f621e544047951c1edc1e1d4280a49a5 | Change XRWebGLLayerInit.alpha default to true, per spec | src/api/XRWebGLLayer.js | src/api/XRWebGLLayer.js | /*
* Copyright 2017 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | JavaScript | 0 | @@ -895,20 +895,19 @@
depth:
-fals
+tru
e,%0A ste
|
4c5fee533ebae3026b8f919db58abe9bcff7f3c1 | Fix PressForm onSubmit | reactive/PressForm.js | reactive/PressForm.js | var PressForm = React.createClass({
propTypes: {
submitLabel: React.PropTypes.string.isRequired,
action: React.PropTypes.string,
processData: React.PropTypes.func,
onSubmit: React.PropTypes.func,
onSuccess: React.PropTypes.func,
onError: React.PropTypes.func,
},
getInitialState: function(... | JavaScript | 0 | @@ -163,32 +163,73 @@
PropTypes.func,%0A
+ // Can%E2%80%99t be used with %60processData%60.%0A
onSubmit: Re
@@ -1257,13 +1257,14 @@
his_
+.
setS
-T
+t
ate(
@@ -1769,158 +1769,62 @@
e(%7B'
-s
+isS
ubmit
-Progress': 100%7D);%0A setTimeout(function() %7B%0A this.props.onSubmit(data);%0A th... |
a45d4306e85390dd8f5b629d1ba82f6ea7ceeb11 | Remove server method `log` | server/lib/cordova.js | server/lib/cordova.js | /* global Push, SystemLogger */
Meteor.methods({
log() {
return console.log(...arguments);
},
push_test() {
const user = Meteor.user();
if (!user) {
throw new Meteor.Error('error-not-allowed', 'Not allowed', {
method: 'push_test'
});
}
if (!RocketChat.authz.hasRole(user._id, 'admin')) {
th... | JavaScript | 0 | @@ -44,16 +44,19 @@
hods(%7B%0A%09
+//
log() %7B%0A
@@ -56,16 +56,19 @@
og() %7B%0A%09
+//
%09return
@@ -95,16 +95,19 @@
ents);%0A%09
+//
%7D,%0A%0A%09pus
|
d1c2318b32b71b013ec2319a008c31aa28a36f74 | reorganize a bit | src/states/play.js | src/states/play.js | import Phaser from 'phaser'
import Ball from '../sprites/ball';
import Paddle from '../sprites/paddle';
import BricksGroup from '../groups/bricks';
export default class extends Phaser.State {
create() {
this.physics.startSystem(Phaser.Physics.ARCADE);
this.lives = 3;
this.ball = new Ball(this.game);
... | JavaScript | 0.016197 | @@ -288,36 +288,52 @@
his.
-ball = new Ball(this.game
+createEntities();%0A this.initEntities(
);%0A
+%0A
@@ -341,108 +341,122 @@
his.
-add.existing(this.ball);%0A this.ball.setWorldBoundsHitHandler(this.handleWorldBoundsHit.bind
+prepareNextRound();%0A %7D%0A%0A createEntities() %7B%0A this.ball = ... |
989d8107ca159b13673292bd292af7816f2996a8 | Fix issue with editing VPC and zone fields on providers | stackdio/core/static/stackdio/viewmodel/account.detail.js | stackdio/core/static/stackdio/viewmodel/account.detail.js | define([
'q',
'knockout',
'util/galaxy',
'util/alerts',
'util/form',
'store/ProviderTypes',
'store/Accounts',
'store/Profiles',
'store/Zones',
'api/api'
],
function (Q, ko, $galaxy, alerts, formutils, ProviderTypeStore, AccountStore, ProfileStore, ZoneStore, API) {
var vm = ... | JavaScript | 0 | @@ -4231,16 +4231,60 @@
abled');
+%0A self.vpcId(account.vpc_id);
%0A%0A
|
96fe9b5ebebb87054691186ba876252ed640fe9b | make tourbadge link to tour | client/TourBadge.js | client/TourBadge.js | import React from 'react';
export default class TourBadge extends React.Component {
render() {
const { tour } = this.props;
const targetRepo = tour.targetRepository;
const authorUsername = tour.repository.split('/')[0];
const targetUsername = targetRepo.split('/')[0];
return (
<div classNa... | JavaScript | 0 | @@ -19,16 +19,53 @@
'react';
+%0Aimport %7B Link %7D from 'react-router';
%0A%0Aexport
@@ -115,16 +115,83 @@
onent %7B%0A
+%0A getTourLink(tour) %7B%0A return %60/tour/$%7Btour.repository%7D%60;%0A %7D%0A%0A
render
@@ -498,16 +498,61 @@
png%60%7D/%3E%0A
+ %3CLink to=%7Bthis.getTourLink(tour)%7D%3E%0A... |
dd08792928bb6832ea84f2fd01a30b9a8c0fa40c | Make vendor hack more resilient. | index.js | index.js | /* eslint-env node */
/* eslint-disable new-cap */
'use strict';
var Funnel = require('broccoli-funnel');
var mergeTrees = require('broccoli-merge-trees');
var path = require('path');
var resolve = require('resolve');
function packageTree(name, _options) {
var options = _options || {};
var namespace ... | JavaScript | 0 | @@ -396,16 +396,93 @@
%7C%7C %7B%7D;%0A%0A
+ // console.log('packageTree:', name, resolve.sync(name, resolveOptions));%0A%0A
return
@@ -1143,16 +1143,99 @@
_modules
+ so that immutable.js can be%0A // included directly (see %60included%60 method below)
%0A var
@@ -1264,32 +1264,36 @@
in('
-orbit-core','sr... |
dde4839a01f9a1615679049786ec6041d8490022 | update commitlint rule | commitlint.config.js | commitlint.config.js | module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'feat',
'fix',
'enhance',
'chore',
'test',
'doc',
'refactor',
'style',
'revert',
],
],
},
}
| JavaScript | 0.000001 | @@ -71,16 +71,61 @@
ules: %7B%0A
+ 'header-max-length': %5B1, 'always', 100%5D,%0A
'typ
|
54b93201779de819d51ee229650af72c68331178 | Fix bug when removing a value from rnc | app/js/controllers/foyer/ressources/yearMoins2.js | app/js/controllers/foyer/ressources/yearMoins2.js | 'use strict';
angular.module('ddsApp').controller('FoyerRessourceYearMoins2Ctrl', function($scope, $state, categoriesRnc, IndividuService, SituationService) {
var today = $scope.situation.dateDeValeur;
$scope.yearMoins2 = moment(today).subtract('years', 2).format('YYYY');
$scope.debutAnneeGlissante = momen... | JavaScript | 0 | @@ -2306,61 +2306,33 @@
ove
-from rnc the values that are not modified by the user
+the empty values from rnc
%0A
@@ -2435,29 +2435,36 @@
montant
-!== undefined
+=== 0 %7C%7C rnc.montant
;%0A
|
10793f640c3aea40c2aeb80458189bc30c89459d | Add google maps key to constant | src/app/index.module.js | src/app/index.module.js | /* global moment:false, toastr:false*/
import config from './index.config';
import routerConfig from './index.route';
import runBlock from './index.run';
import ContinentFactory from './continents/continent.factory';
import CharacteristicFactory from './characteristics/characteristic.factory';
import CountryFactory fr... | JavaScript | 0 | @@ -1520,16 +1520,82 @@
lodash)%0A
+ .constant('mapsKey', %22AIzaSyAfgZDFD6gr3HSXRnUu_ihlc3gbvYn97FA%22)%0A
.const
|
fe8a7f3446003e73fc735d03d511cf7214d581f4 | use absolute paths for imports | webapps/ui/cockpit/src/modules/utils/config.js | webapps/ui/cockpit/src/modules/utils/config.js | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | JavaScript | 0 | @@ -998,16 +998,206 @@
uction%22;
+%0Aconst baseImportPath = inProduction%0A ? document.querySelector(%22base%22).href + %22../%22%0A : %22../../%22;%0Aconst baseFetchPath = inProduction%0A ? document.querySelector(%22base%22).href + %22../%22%0A : %22/%22;
%0A%0Alet co
@@ -2697,32 +2697,38 @@
re: true */
-%22.... |
0d698bd60cb86a6944446a0a2dc945ec0bfe0384 | Add article-list test plan | test/spec/controllers/article-list.js | test/spec/controllers/article-list.js | 'use strict';
describe('Controller: ArticlelistCtrl', function () {
// load the controller's module
beforeEach(module('redditAngularApp'));
var ArticlelistCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
... | JavaScript | 0 | @@ -52,25 +52,24 @@
l', function
-
() %7B%0A%0A // l
@@ -250,17 +250,16 @@
function
-
($contro
@@ -347,25 +347,25 @@
ler('Article
-l
+L
istCtrl', %7B%0A
@@ -384,16 +384,18 @@
: scope%0A
+
//
@@ -442,16 +442,21 @@
%7D));%0A%0A
+ /*%0A
it('sh
@@ -523,16 +523,19 @@
() %7B%0A
+ //
expect(
@@... |
48c1e34f90ab7b5f9cfc5b10a8367b6fd2d8972d | Fix __loadSettingsScheme. | client/js/settings.js | client/js/settings.js | // Conventient bundles of settings which you can activate
// at your leasure in the javascript console.
function __loadSettingScheme(name) {
switch (name) {
case "quentin":
localStorage.lagInductionTime = 300;
localStorage.thirdPerson = true;
localStorage.showHistoryBuffers = true;
return "Success!";
case "j... | JavaScript | 0 | @@ -119,16 +119,17 @@
dSetting
+s
Scheme(n
@@ -616,16 +616,37 @@
k%5D;%0A%09%09%7D%0A
+%09%09return %22Success!%22;%0A
%09default
@@ -700,25 +700,10 @@
%22 +
-localStorage.sche
+na
me +
|
46d6e121472f6086975b8ceb902ae0071cf98c3b | Send results to the client when data collection is done | server/retroRunner.js | server/retroRunner.js | const messages = require('./messages');
function shuffle(list) {
const result = [].concat(list);
for (let i = 0; i < result.length; i++) {
const target = result.length - 1 - i;
const swap = Math.floor(Math.random() * (result.length));
const temp = result[target];
result[target] = result[swap];
... | JavaScript | 0 | @@ -2513,24 +2513,50 @@
%7D else %7B%0A
+ this.sendResults();%0A
consol
@@ -2582,24 +2582,431 @@
%0A %7D%0A %7D%0A%0A
+ sendResults() %7B%0A const entries = %7B %7D;%0A Object.keys(this.votes).forEach(category =%3E %7B%0A entries%5Bcategory%5D = %5B%5D;%0A Object.keys(this.votes%5B... |
63d6dea0c5ca88faf3bc20afbc81124e95c91849 | use reporter | gulpfile.babel.js | gulpfile.babel.js | 'use strict';
import babel from 'gulp-babel';
import babelCompiler from 'babel';
import del from 'del';
import gulp from 'gulp';
import eslint from 'gulp-eslint';
import istanbul from 'gulp-istanbul';
import jscs from 'gulp-jscs';
import jshint from 'gulp-jshint';
import mocha from 'gulp-mocha';
const configFiles = '.... | JavaScript | 0.000004 | @@ -702,32 +702,59 @@
t: true%0A %7D))%0A
+ .pipe(jscs.reporter())%0A
.pipe(jshint
|
1a8afc75f6164e260feae16e514334c07ee83cce | Fix duplicate test name | test/test-path-zero-length-strings.js | test/test-path-zero-length-strings.js | 'use strict';
// These testcases are specific to one uncommon behavior in path module. Few
// of the functions in path module, treat '' strings as current working
// directory. This test makes sure that the behavior is intact between commits.
// See: https://github.com/nodejs/node/pull/2106
var tape = require('tape')... | JavaScript | 0.999257 | @@ -859,36 +859,41 @@
%7D);%0A%0Atape('path.
-join
+normalize
zero-length', f
|
992e4cd641a0a8d9d76a75c411e2af92790cc405 | Add padding for time column | cabdriver.js | cabdriver.js | #!/usr/bin/env node
var Program = require('commander');
var SemanticDate = require('semantic-date');
var Moment = require('moment-timezone');
var Async = require('async');
var Pad = require('pad');
var _ = require('underscore');
var auth = require('./lib/auth');
var slack_auth = require('./lib/slack_auth');
var jira_... | JavaScript | 0.000001 | @@ -5480,16 +5480,23 @@
var p
+rojectP
adding =
@@ -5528,24 +5528,260 @@
ngth + 1);%0A%0A
+ var allTimes = _.keys(_.groupBy(msgs, 'time'));%0A var maxTimeLength = allTimes.reduce(function (a, b) %7B return a.length %3E b.length ? a : b; %7D).length;%0A var timePadding = Math.max(2... |
9010c7b45f7c976499bc61476d3b94b732560d9c | Add EquationNode to ast constructors | src/ast_constructors.js | src/ast_constructors.js | function KIFNode(kifExpressions) {
this.type = 'KIFNode';
this.expressions = this.expressions || [];
this.expressions = this.expressions.concat(kifExpressions);
}
function WordNode(identifier) {
this.type = 'WordNode';
this.word = identifier;
}
function VariableNode(identifier, variableType) {
this.type =... | JavaScript | 0.000001 | @@ -666,16 +666,185 @@
st);%0A%7D%0A%0A
+function EquationNode(firstTerm, secondTerm) %7B%0A this.type = 'EquationNode';%0A this.terms = this.terms %7C%7C %5B%5D;%0A this.terms = this.terms.concat(firstTerm, secondTerm);%0A%7D%0A
%0Amodule.
@@ -963,12 +963,42 @@
TermNode
+,%0A EquationNode: EquationNode
%0A%7D;... |
872cb27c817d0baf57297fa006cb7e9a1935df3e | disable fullscreen driver | client/src/js/main.js | client/src/js/main.js | import {run} from '@cycle/core'
import {makeDOMDriver} from '@cycle/dom'
import {makeHTTPDriver} from '@cycle/http'
import {makeHistoryDriver, supportsHistory} from '@cycle/history'
import {useQueries, createHistory, createHashHistory} from 'history'
import speechDriver from './drivers/speech'
import fullScreenDriver f... | JavaScript | 0.000001 | @@ -1151,16 +1151,18 @@
tings),%0A
+//
fullSc
|
4348c467388fb242ecc90007b62d2de17167da5d | fix tests after refactor | server/test/helper.js | server/test/helper.js | var mongoose = require('mongoose');
var User = require('../core-modules/user/user-model.js').model;
var AccessToken = require('../core-modules/auth/auth-accesstoken-model.js').model;
var testData = require('./test-data.js');
var config = require('./config.json');
mongoose.connect(config.mongourl);
function getOrCreat... | JavaScript | 0.000012 | @@ -44,32 +44,36 @@
r = require('../
+src/
core-modules/use
@@ -127,16 +127,20 @@
ire('../
+src/
core-mod
|
8d6d16623283b81de2ebbda7392b92c24ba3e94e | Add test for source-map sourceContent to SourceMap test | test/unit/codegeneration/SourceMap.js | test/unit/codegeneration/SourceMap.js | // Copyright 2011 Traceur Authors.
//
// 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 | @@ -2452,16 +2452,116 @@
%0A %7D);
+%0A%0A var sourceContent = consumer.sourceContentFor(filename);%0A assert.equal(sourceContent, src);
%0A %7D);%0A%0A
|
f2eb4a93c1b1bd3d04853796243c0a62738aa29a | simplify task completion tracking | index.js | index.js | 'use strict';
exports.start = function (firstFn, startFnOpt) {
var dynOpt = {
// default error handler will throw errors, to fail fast
// (and encourage explicit error handling)
onError: function (err) {
throw err;
}
};
// call the target function
var dispatch = function (opt) {
opt... | JavaScript | 0.000718 | @@ -462,40 +462,30 @@
-var startNext = function () %7B%0A
+opt.complete = false;%0A
@@ -513,34 +513,32 @@
unction (err) %7B%0A
-
if (opt.
@@ -565,26 +565,24 @@
%7B%0A
-
throw new Er
@@ -617,34 +617,32 @@
ice!');%0A
-
%7D%0A opt.
@@ -631,26 +631,24 @@
%7D%0... |
a60ab95b04f2d05c81417f8a1250cf48457da020 | remove unneeded empty array | index.js | index.js |
const { rmdir, unlink, readdir, stat } = require('mz/fs')
const { dissoc, merge, groupBy } = require('ramda')
const { differenceInDays } = require('date-fns')
const { reduce } = require('asyncro')
const { join } = require('path')
const actionTypes = {
DELETE: Symbol('DELETE'),
RETAIN: Symbol('RETAIN'),
BUSY: Sy... | JavaScript | 0.00276 | @@ -3379,14 +3379,8 @@
ers)
- %7C%7C %5B%5D
%0A%0A
|
3b85e7f549c6282b8bb9f7ffc38849665ed479f9 | Update to run scraper 2 month ahead instead of behind | gulpfile.babel.js | gulpfile.babel.js | import 'babel-polyfill';
import gulp from 'gulp';
import bunyan from 'bunyan';
import moment from 'moment';
import nusmoderator from 'nusmoderator';
import R from 'ramda';
import config from './config';
import tasks from './gulp-tasks';
import iterateSems from './gulp-tasks/utils/iterateSems';
import { REGULAR_SEMESTER... | JavaScript | 0 | @@ -374,25 +374,27 @@
%0A%0Aconst
-aM
+m
onth
-Ago
+sAhead
= momen
@@ -401,18 +401,13 @@
t().
-subtract(1
+add(2
, 'm
@@ -473,25 +473,27 @@
cadYear(
-aM
+m
onth
-Ago
+sAhead
.toDate(
@@ -559,17 +559,19 @@
Sem(
-aM
+m
onth
-Ago
+sAhead
.wee
|
58c4874d1adc83fbaa26be326b8412f9328cc6ba | Fix optional import | gulpfile.babel.js | gulpfile.babel.js | /* eslint-disable import/no-extraneous-dependencies */
import clean from 'gulp-clean';
import concat from 'gulp-concat';
import gulp from 'gulp';
import gulpUtil from 'gulp-util';
import marked from 'gulp-marked';
import modify from 'gulp-modify';
import notify from 'gulp-notify';
import order from 'gulp-order';
impor... | JavaScript | 0.000001 | @@ -456,89 +456,187 @@
ort
-configLocal from './config.local.json';%0Aimport packageJson from './package.json';
+packageJson from './package.json';%0A%0Alet configLocal = %7B%7D;%0Atry %7B%0A configLocal = require('./config.local.json'); // eslint-disable-line global-require%0A%7D catch (e) %7B%0A // Nothing%0A%7D... |
9f251272d77a4a3f5ec65730bd0496bfc5ef6f38 | Fix typo | index.js | index.js | var lib = require('./build/Release/rijndael');
/**
* A bound Rijndael object with an option for block cipher mode.
*
* @param {!Buffer|string} key The encryption key.
* @param {?options=} options The options hash.
* @constructor
*/
var Rijndael = function(key, options) {
if (!(this instanceof Rijndael))
re... | JavaScript | 0.999991 | @@ -951,16 +951,17 @@
(option
+s
.mode !=
|
b165b2ed90ea4248a5cba24b03b25c53ed811803 | Fix lstat error handling. | index.js | index.js | var fs = require('fs');
var path = require('path');
var Stream = require('stream');
function statdir(dir, names, cb) {
var entries = [];
if (!names.length) return cb(entries);
names.forEach(function (name) {
var relName = path.join(dir, name);
fs.lstat(relName, function (err, stats) {
if (err) s... | JavaScript | 0 | @@ -82,410 +82,8 @@
);%0A%0A
-function statdir(dir, names, cb) %7B%0A var entries = %5B%5D;%0A%0A if (!names.length) return cb(entries);%0A%0A names.forEach(function (name) %7B%0A var relName = path.join(dir, name);%0A%0A fs.lstat(relName, function (err, stats) %7B%0A if (err) s.emit('error', err);%0A ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.