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 |
|---|---|---|---|---|---|---|---|
c881a7f7a3c3cbc7729a3dfaf3e60f202a4a51e8 | Add user-agent info to env | lib/env.js | lib/env.js | 'use strict';
/**
* lib
**/
/*global nodeca, _*/
// 3rd-party
var Puncher = require('puncher');
////////////////////////////////////////////////////////////////////////////////
var tzOffset = (new Date).getTimezoneOffset();
////////////////////////////////////////////////////////////////////////////////
... | JavaScript | 0.000002 | @@ -836,16 +836,63 @@
ions) %7B%0A
+ var req = (options.http %7C%7C options.rpc).req;%0A
var ct
@@ -1507,66 +1507,81 @@
-(options.http %7C%7C options.rpc).req.connection.remoteAddress
+req.connection.remoteAddress,%0A user_agent: req.headers%5B'user-agent'%5D
,%0A
|
444f5b2a29f2c43ecfa3313de1776ef7016a7047 | add separation between selector blocks | lib/css2stylus.js | lib/css2stylus.js | (function (window) {
// use global as window in node
if (typeof global === 'object' && global && global.global === global) {
window = global;
}
var Css2Stylus = {
// constructor
Converter: function (css) {
this.css = css || '';
this.output = '';
return this;
}
};
Css2Sty... | JavaScript | 0.000001 | @@ -2994,17 +2994,115 @@
laration
-;
+,%0A openingBracket = (this.options.openingBracket ? ' ' + this.options.openingBracket : '');%0A
%0A%0A
@@ -3228,78 +3228,22 @@
y +
-(this.options.openingBracket ? ' ' + this.options.openingBracket : '')
+openingBracket
+ '
@@ -3940,16 +3940,37 @@
g, '%5Cn')
+//... |
04af36f9e8adf7cfbce8d71c3d31d81a1659aa22 | add react route to show the start of Onboard | web-app/src/index.js | web-app/src/index.js | /* global document, window */
import React from 'react';
import { render } from 'react-dom';
import { BrowserRouter as Router, Switch, Route, Redirect } from 'react-router-dom';
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import rootRe... | JavaScript | 0 | @@ -671,16 +671,60 @@
tFound';
+%0Aimport OnBoard from './components/OnBoard';
%0A%0Aimport
@@ -1384,24 +1384,75 @@
App /%3E;%0A%7D;%0A%0A
+// TODO: need to think about the onboarding url's%0A%0A
const Root =
@@ -1799,24 +1799,82 @@
=%7BSignUp%7D /%3E
+%0A %3CRoute exact path=%22/start%22 component=%7BOnBoa... |
4a501906241c2781ee6d791475216d74703aa417 | Fix bug where spec config used wrong name. | lib/decorators.js | lib/decorators.js | import App from "./App";
import SpecConfig from "./Registry"; // We can use a registry for the spec config.
export function inject(...args) {
return (target) => {
target.inject = args; // Provide IOC framework with a place to find out what to inject.
};
}
var makePropInject = (getPropTarget) => (...na... | JavaScript | 0 | @@ -1920,24 +1920,31 @@
specConfigs%5B
+config.
name%5D = conf
|
ec0bb60381ee8be26a4b76240733bfa453bbc83c | Fix chopped off data for twelve hours | ui/src/components/metric/close-button.js | ui/src/components/metric/close-button.js | const React = require('react');
const Styled = require('styled-components');
const fns = require('../../shared/functions');
const constants = require('../../shared/constants');
const CloseIcon =
require(
'!babel!svg-react!./close.svg?name=CloseIcon'
);
const {
default: styled
} = Styled;
const {
remcalc
}... | JavaScript | 0.000003 | @@ -210,16 +210,23 @@
'!babel
+-loader
!svg-rea
@@ -227,16 +227,23 @@
vg-react
+-loader
!./close
|
d6ce6e9022157b2b0995abe95b0a0580cde6481e | Update deployment.js | lib/deployment.js | lib/deployment.js | var exec = require('child_process').exec,
fs = require('fs');
module.exports = function(dir, config, callback) {
var env = process.env;
env['REGI_HOST'] = config.host
env['REGI_USER'] = config.user
env['REGI_PASSWD'] = config.pass
var options = {cwd: dir, env: env};
//fs.renameSync(dir + "/" + config.ro... | JavaScript | 0.000001 | @@ -524,12 +524,11 @@
e re
-solv
+bas
e pa
@@ -552,26 +552,8 @@
root
- + %22 --with=local%22
, op
|
6772aedb8d91d0d34c30bb7e28e9c39112ab79b0 | update documentation. and use breaks not returns. | lib/gatherPass.js | lib/gatherPass.js | // The Jikken Shading Language Transpiler
//
// Copyright (c) 2017 Jeffrey Hutchinson
//
// 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 t... | JavaScript | 0 | @@ -3476,16 +3476,116 @@
e 'in':%0A
+%09%09%09%09%09%09// If it doesn't have an identifier right after,it's not an%0A%09%09%09%09%09%09// input layout. Just stop.%0A
%09%09%09%09%09%09if
@@ -3634,27 +3634,21 @@
%0A%09%09%09%09%09%09%09
+b
re
-turn null
+ak
;%0A%0A%09%09%09%09%09
@@ -5201,38 +5201,37 @@
null)%0A%... |
ab8009cfabf37ccecac99ca7eb545d336e059c30 | Add vertices start | lib/gds.js | lib/gds.js | // Licensed under the Apache License, Version 2.0 (the 'License'); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... | JavaScript | 0.000092 | @@ -963,16 +963,47 @@
lid');%0A%0A
+ // vertices%0A var vertices;%0A%0A
return
|
bc474e3c2f9d25b0d873b787e9cb79f38e6027f4 | Add I2C read method | lib/i2c.js | lib/i2c.js | var fs = require('fs');
var ioctl = require('ioctl');
var I2C_SLAVE_FORCE = 0x0706;
function I2C(bus, address) {
this._bus = bus;
this._address = address;
this._fd = null;
}
I2C.prototype.open = function(callback) {
fs.open('/dev/i2c-' + this._bus, 'r+', function(err, fd) {
if (err) {
return call... | JavaScript | 0.000013 | @@ -696,24 +696,332 @@
lback);%0A%7D;%0A%0A
+I2C.prototype.read = function(address, size, callback) %7B%0A this.write(address, new Buffer(0), function(err) %7B%0A if (err) %7B%0A return callback(err);%0A %7D%0A%0A fs.read(this._fd, new Buffer(size), 0, size, null, function(err, bytesRead, buffer) %7B%0A... |
c3add54fbdb9082d983300795950b0281e8ac766 | fix SR meta registration and add docblocks | lib/kafka-avro.js | lib/kafka-avro.js | /*
* kafka-avro
* Node.js bindings for librdkafka with Avro schema serialization.
* https://github.com/waldo/kafka-avro
*
* Copyright © Waldo, Inc.
* Licensed under the MIT license.
*/
var url = require('url');
var EventEmitter = require('events').EventEmitter;
var Promise = require('bluebird');
var cip = requi... | JavaScript | 0 | @@ -1441,16 +1441,428 @@
as = %7B%7D;
+%0A%0A /**%0A * A dict containing all the value schemas metadata, with key the bare%0A * topic name and value the SR response on that topic:%0A *%0A * 'subject' %7Bstring%7D The full topic name, including the '-value' suffix.%0A * 'version' %7Bnumber%7D The version num... |
7b6c89e8e3cc1715aab453bd5a9162d01f8f64da | Add Chrome 20.0 and Opera 12.0 | lib/map.js | lib/map.js | /**
* We need to map the useragent IDs that TestSwarm uses to browser definitions in BrowserStack.
* TestSwarm useragents.ini: https://github.com/jquery/testswarm/blob/master/config/useragents.ini
* BrowserStack API: https://github.com/browserstack/api , http://api.browserstack.com/1/browsers
*/
var map = {
'Ch... | JavaScript | 0 | @@ -511,32 +511,104 @@
n:'19.0'%0A %7D,%0A
+ 'Chrome%7C20':%7B%0A name:'chrome',%0A version:'20.0b'%0A %7D,%0A
// 'Firefox%7C
@@ -1947,32 +1947,103 @@
n:'11.6'%0A %7D,%0A
+ 'Opera%7C12%7C0':%7B%0A name:'opera',%0A version:'12.0'%0A %7D,%0A
// 'Opera%7C12
|
1cebfa5e2f7544e5e197a5229a70edabaf99787b | debug ocm.Roles | lib/ocm.js | lib/ocm.js | /**
* @author Gilles Coomans <gilles.coomans@gmail.com>
* @stability 3 stable
*
*
*
* TODO : refactor 'group' in 'modes'
*
*
*/
//________________________________________________________________________ OCM for the mass !!!
if (typeof define !== 'function') {
var define = require('amdefine')(module);
}
de... | JavaScript | 0.000001 | @@ -6883,13 +6883,10 @@
rn o
-utput
+cm
.Mod
|
4b4c55f39612db8c57271d69d4230db781ae8ac7 | Fix tasks path | lib/run.js | lib/run.js | var fs = require('fs')
var cp = require('child_process')
var path = require('path')
var formattedOutput = require('./formatted_output')
var CommonEnv = require(path.join(process.env.SALINGER_HOME_PATH, 'env'))
var scripts = [
{ ext: 'sh', cmd: 'sh' },
{ ext: 'js', cmd: 'node' },
{ ext: 'py', cmd: 'python' },
{... | JavaScript | 0.00071 | @@ -1257,23 +1257,38 @@
oin(
-__dirname, '..'
+process.env.SALINGER_HOME_PATH
, 't
|
8099f7edf2d75e691a4621d5dc5e389f5a031897 | Fix find with NaN id in base-sql | lib/sql.js | lib/sql.js | module.exports = BaseSQL;
/**
* Base SQL class
*/
function BaseSQL() {
}
BaseSQL.prototype.query = function () {
throw new Error('query method should be declared in adapter');
};
BaseSQL.prototype.command = function (sql, callback) {
return this.query(sql, callback);
};
BaseSQL.prototype.queryOne = functi... | JavaScript | 0.000001 | @@ -1750,32 +1750,147 @@
id, callback) %7B%0A
+ var idNumber = Number(id);%0A if (isNaN(idNumber)) %7B%0A callback(new Error('id is not a number'));%0A %7D%0A
var sql = 'S
@@ -1981,34 +1981,32 @@
) + ' = ' +
+id
Number
-(id)
+ ' LIMIT 1
|
cfd95cf5f4bafe8235d9010a71a468d80612bea0 | add isSameOrigin method | lib/url.js | lib/url.js | /**
* Class for taking a path and compiling it into a regular expression.
*
* Also has a params method for getting an array of params given a path, and
* convenience methods for working with the regexp like test and exec.
*
* XXX where is resolve?
*
*/
Url = function (url, options) {
options = options || {};
... | JavaScript | 0.000474 | @@ -986,24 +986,252 @@
thname;%0A%7D;%0A%0A
+/**%0A * Returns true if both a and b are of the same origin.%0A */%0AUrl.isSameOrigin = function (a, b) %7B%0A var aParts = Url.parse(a);%0A var bParts = Url.parse(b);%0A var result = aParts.origin === bParts.origin;%0A return result;%0A%7D;%0A%0A
/**%0A * Given
|
153781daf7e1e86d6ecc8455c07a0ef568056525 | Load the commands | library.js | library.js | "use strict";
var NodeBB = require('./lib/nodebb'),
Config = require('./lib/config'),
Sockets = require('./lib/sockets'),
app,
Shoutbox = {};
Shoutbox.init = {};
Shoutbox.widget = {};
Shoutbox.settings = {};
Shoutbox.init.load = function(params, callback) {
function renderGlobal(req, res, next) {
Config.get... | JavaScript | 0.000287 | @@ -117,16 +117,55 @@
ckets'),
+%0A%09Commands = require('./lib/commands'),
%0A%0A%09app,%0A
|
b9359af7639831cdd3e2a6a55128d4c618bb0973 | Fix hiding troll comments and answers | lib/pagestyles.js | lib/pagestyles.js | /*jshint moz:true*/
/*global require, exports*/
var self = require("sdk/self");
var pref = require('./pref');
function createStyle(elements, rules) {
'use strict';
return elements.join(',') + '{' + rules.map(function (rule) {
return rule.name + ':' + rule.value + ' !important;';
}).join('') + '}';
}
/**
* @retu... | JavaScript | 0 | @@ -896,41 +896,26 @@
ef('
+hide
troll
-filtermethod') === 'hilight'
+answers')
) %7B%0A
@@ -953,14 +953,15 @@
roll
-Header
+Comment
'%5D,
@@ -973,126 +973,36 @@
e: '
-background-color', value: pref.getPref('trollcolor')%7D%5D));%0A%09%09%7D else if (pref.getPref('trollfiltermethod') === 'hide') %7B
+display', v... |
534d82ea5307a1ea6bb0792a60c026c5a01022ef | create stream with proper type | lib/parse_args.js | lib/parse_args.js | var net = require('net');
module.exports = function (args) {
var opts = {};
for (var i = 0; i < args.length; i++) {
var arg = args[i];
var m;
if (typeof arg === 'number') {
opts.port = arg;
}
else if (typeof arg === 'string') {
if (/... | JavaScript | 0 | @@ -17,16 +17,40 @@
e('net')
+,%0A tls = require('tls')
;%0A%0Amodul
@@ -98,20 +98,16 @@
s = %7B%7D;%0A
-
%0A for
@@ -1179,24 +1179,74 @@
opts;%0A %0A
+ opts.streamType = (opts.tls ? tls : stream);%0A%0A
if (opts
@@ -1268,35 +1268,47 @@
opts.stream =
-net
+opts.streamType
.connect(opts.un
... |
cd036676d794fb37fa74e02e004a3cffd4f859d6 | Add some extras to props | lib/properties.js | lib/properties.js | const date = new Date();
export const defaults = {
date: {
day: date.getDate(),
month: date.getMonth(),
fullYear: date.getFullYear()
},
user: {
name: '',
github: '',
email: ''
},
package: {
name: '',
description: ''
}
};
export const properties = {
'user.name': {
desc... | JavaScript | 0 | @@ -18,16 +18,80 @@
Date();%0A
+const %5Bmajor, minor, patch%5D = process.versions.node.split('.');%0A
export c
@@ -209,16 +209,47 @@
()%0A %7D,%0A
+ node: %7Bmajor, minor, patch%7D,%0A
user:
@@ -322,24 +322,24 @@
name: '',%0A
-
descript
@@ -346,16 +346,62 @@
ion: ''%0A
+ %7D,%0A curly: %7B%0A le... |
df3738b53d8832669da7d6bef1d3c63a8e9f0616 | Remove dead code. | lib/resolve-rc.js | lib/resolve-rc.js | 'use strict';
/**
* The purpose of this module, is to find the project's .babelrc and
* use its contents to bust the babel-loader's internal cache whenever an option
* changes.
*
* This feature is opt-in and it's disabled by default.
*
* @see https://github.com/babel/babel-loader/issues/62
* @see http://git.io... | JavaScript | 0.00001 | @@ -823,71 +823,31 @@
(loc
-) %7B%0A var opts = %5B%5D.slice.call(arguments, 1) %7C%7C %7B%7D;%0A var
+, rel) %7B%0A rel =
rel
-=
+%7C%7C
'.b
@@ -855,17 +855,16 @@
belrc';%0A
-%0A
return
|
f67a789b1080e23f9a1bed9ccfa5d6214d009051 | Support Model.find({ prop: null }) (closes #59) | lib/sql/Select.js | lib/sql/Select.js | module.exports = Builder;
function Builder(opts) {
this.escapeId = opts.escapeId;
this.escape = opts.escape;
this.clear();
}
Builder.prototype.clear = function () {
this.opts = {
table : [],
merge : [],
where : [],
order : []
};
return this;
};
Builder.prototype.count = function () {
this.opts.coun... | JavaScript | 0 | @@ -2670,24 +2670,174 @@
gth; i++) %7B%0A
+%09%09if (this.opts.where%5Bi%5D.value === null) %7B%0A%09%09%09lst.push(%5B%0A%09%09%09%09this.escapeId(this.opts.where%5Bi%5D.field),%0A%09%09%09%09%22IS NULL%22%0A%09%09%09%5D.join(%22 %22));%0A%09%09%09continue;%0A%09%09%7D%0A
%09%09if (typeof
|
bc1555838ba03dc05aecf93492cb8f37735a3c81 | Read file sync | lib/submission.js | lib/submission.js | var db = require('./db');
var fs = require('fs');
var exec = require('child_process').exec;
var Promise = require('promise');
var SubmissionSchema = db.mongoose.Schema({
user: String,
fullPath: String,
filePath: String,
dirPath: String,
isDir: Boolean,
date: Number,
assign: String,
coun... | JavaScript | 0.000001 | @@ -639,16 +639,20 @@
readFile
+Sync
(__dirna
|
3465f198bcb3384386ee5ba59ea2a5264e7c7c2e | Use options in TestUtils | lib/test-utils.js | lib/test-utils.js | const _ = require('lodash');
const memFs = require('mem-fs');
const editor = require('mem-fs-editor');
const ejs = require('ejs');
const path = require('path');
const json = require('./json2js').json;
const fileUtils = require('./file-utils');
module.exports = {
defaults() {
return {
props: {
frame... | JavaScript | 0 | @@ -291,20 +291,22 @@
%7B%0A
-pr
op
+tion
s: %7B%0A
@@ -1034,20 +1034,22 @@
context.
-pr
op
+tion
s, templ
@@ -1157,20 +1157,22 @@
context.
-pr
op
+tion
s);%0A
@@ -1447,20 +1447,22 @@
method,
-pr
op
+tion
s) %7B%0A
@@ -1488,19 +1488,23 @@
ext.
-props, prop
+options, option
s);%0A
|
deaf287619844453e2e90c770a3eede5f274657b | Fix quotes module required. | lib/volatility.js | lib/volatility.js | /*jshint node:true */
"use strict";
var options = require('./Quotes.js');
/* The Cumulative Normal Distribution function */
/* 0 1 2 -> 0.5000000 0.8413447 0.9772499 */
function CND(x) {
var a1 = 0.319381530,
a2 = -0.356563782,
a3 = 1.781477937,
a4 = -1.821255978,
a5 = 1.330274... | JavaScript | 0 | @@ -1,27 +1,4 @@
-/*jshint node:true */%0A%0A
%22use
@@ -34,20 +34,20 @@
ire(
-'./Q
+%22./q
uotes.js
');%0A
@@ -46,9 +46,9 @@
s.js
-'
+%22
);%0A%0A
|
73b2db76a428e341334ff9adaae43301154fc969 | Remove escaping character in CDATA (#25) | lib/xunit-file.js | lib/xunit-file.js | /**
* Module dependencies.
*/
var mocha = require("mocha")
, Base = mocha.reporters.Base
, utils = mocha.utils
, escape = utils.escape
, config = require("../config.json")
, fs = require("fs")
, path = require("path")
, mkdirp = require("mkdirp")
, dateFormat = require('dateformat')
, filePathParse... | JavaScript | 0 | @@ -2153,18 +2153,16 @@
;%0A %7D%0A
-
%0A tes
@@ -2480,17 +2480,16 @@
the XML.
-
%0A */%0Afun
@@ -3704,17 +3704,16 @@
y value.
-
%0A */%0A%0Afu
@@ -3894,17 +3894,16 @@
string.
-
%0A */%0A%0Afu
@@ -5263,22 +5263,8 @@
urn
-cdata escaped
CDAT
@@ -5326,19 +5326,11 @@
' +
-escape(
str
-)
+ '
|
25c6fe95b98fd4dae31bf59c9c8c101c0540e945 | exit status 1 if tests fail | web/javascript/gulpfile.js | web/javascript/gulpfile.js | var browserify = require('browserify');
var gulp = require('gulp');
var gutil = require('gulp-util');
var source = require("vinyl-source-stream");
var reactify = require('reactify');
var watchify = require('watchify');
var uglify = require('gulp-uglify');
var buffer = require('vinyl-buffer');
var concat = require('gulp... | JavaScript | 0 | @@ -1675,48 +1675,37 @@
r',
-function()%7B%0A process.exit(1);%0A %7D
+process.exit.bind(process, 1)
)%0A
@@ -1826,16 +1826,64 @@
tomjs())
+%0A .on('error', process.exit.bind(process, 1))
;%0A%7D);%0A%0Ag
|
18cce756a1476d6bf4f88641838b50423ed0aeff | Remove async keyword | src/api-gateway-websocket/WebSocketClients.js | src/api-gateway-websocket/WebSocketClients.js | import {
WebSocketConnectEvent,
WebSocketDisconnectEvent,
WebSocketEvent,
} from './lambda-events/index.js'
import debugLog from '../debugLog.js'
import LambdaFunctionPool from '../LambdaFunctionPool.js'
import serverlessLog from '../serverlessLog.js'
import { createUniqueId } from '../utils/index.js'
const { st... | JavaScript | 0.000002 | @@ -2849,22 +2849,16 @@
%0A %7D%0A%0A
-async
addClien
|
0571b1a4c92b5fe8d6a0495cbe708e326ecbc70e | add error handling for GET | back-end/api.js | back-end/api.js | 'use strict';
// API
module.exports = (app) => {
var PassFailData = require('./models/passfail.js'); // Schema
var statusList = require('../mock/passfail.json'); // importing mock data
app.get('/', (req, res) => {
res.render('index');
});
// CREATE
app.post('/api/status', (req, res) => { // URL of request
va... | JavaScript | 0 | @@ -734,574 +734,82 @@
%7B%0A
-// res.send('These are the pass/fails!');%0A res.json(%7BstatusList: statusList%7D);%0A // res.send(%7Btodos: %5B%5D%7D);%0A // PassFailData.find(%7B%7D, (err, passfail) =%3E %7B // The model's 'find' method.%0A // // The first parameter of the find method is going t... |
a2ad62a77557d2ccd18bcc1ba276b214a142e51a | Bring back mistakenly removed bin files support | lint-directory.js | lint-directory.js | 'use strict';
var isCallable = require('es5-ext/object/is-callable')
, callable = require('es5-ext/object/valid-callable')
, reEscape = require('es5-ext/reg-exp/escape')
, endsWith = require('es5-ext/string/#/ends-with')
, d = require('d')
, deferred = require('deferr... | JavaScript | 0 | @@ -834,28 +834,126 @@
t) %7B
- return new RegExp('
+%0A%09if (ext === 'js') %7B%0A%09%09return new RegExp('(?:%5E%7C%5B%5C%5C/%5C%5C%5C%5C%5D)(?:%5B%5C0-%5C%5C-0-%5C%5C%5B%5C%5C%5D-%5Cuffff%5D+%7C' +%0A%09%09%09'%5B%5C0-%5C%5C.0-%5C%5C%5B%5C%5C%5D-%5Cuffff%5D*
%5C%5C.'
@@ -976,13 +976,66 @@
+ '
+)
$');
-
+%0A%09... |
0340126212c52850ec8d2158d5d386ede0c86459 | Update UDPefef | benchmark.js | benchmark.js | //
/**
* Created by tungtouch on 2/9/15.
*/
var cluster = require('cluster');
var numCPUs = require('os').cpus().length;
var colors = require('colors');
var dgram = require('dgram');
var message = new Buffer("Some bytes hello world bo bo bo world HEHEHEHE ahhaha hohoho hehe:");
var client = dgram.createSocket("udp4"... | JavaScript | 0 | @@ -466,18 +466,18 @@
delay =
+2
5
-0
;%0Avar nu
|
2f65efbe17adbfccecbeec8800e2018fd7534d66 | update form-checkbox.js for bootstrap beta-3 (#1508) | src/components/form-checkbox/form-checkbox.js | src/components/form-checkbox/form-checkbox.js | import { idMixin, formRadioCheckMixin, formMixin, formSizeMixin, formStateMixin, formCustomMixin } from '../../mixins'
import { isArray } from '../../utils/array'
import { looseEqual } from '../../utils'
export default {
mixins: [idMixin, formRadioCheckMixin, formMixin, formSizeMixin, formStateMixin, formCustomMixin... | JavaScript | 0 | @@ -2000,187 +2000,70 @@
-let indicator = h(false)%0A if (!t.is_ButtonMode && !t.is_Plain) %7B%0A indicator = h('span', %7B attrs: %7B 'aria-hidden': 'true' %7D %7D)%0A %7D%0A%0A const description = h(%0A 'span
+const description = h(%0A t.is_ButtonMode ? 'span' : 'label
',%0A
@@ -2203,2... |
fed03aece2537d4adb667c902894ba3324d05856 | add recommender | www/assets/js/main.js | www/assets/js/main.js | 'use strict'
// initialize Hoodie
var hoodie = new Hoodie();
// on ready calls all binds
$(function () {
if(hoodie.account.username) {
hoodie.store.find('settings', 'user-settings')
.done(function(settings) {
$('#username').append(settings.name || hoodie.account.username)
$('h2.welcoming').appe... | JavaScript | 0 | @@ -2165,128 +2165,625 @@
%0A%7D%0A%0A
-// return results%0Avar result = function result(event) %7B%0A var e = event.target;%0A var urlReq = e.getAttribute('data-url'
+function deserializeDaterange(str) %7B%0A var start = moment(str.split(' - ')%5B0%5D)%0A var end = moment(str.split(' - ')%5B1%5D)%0A%0A return %7... |
9d332cee98707e8d5a0f5b00b8d064bc053f0684 | Fix redirects. | manager.js | manager.js | var _ = require('underscore');
var uri = require('uri-js');
var http = require('http');
var https = require('https');
var config = require('./config.js');
var utils = require('./utils');
var clientConnection = require('./clientConnection');
var modifiers = require('./modifiers');
var everyone = clientConnection.every... | JavaScript | 0 | @@ -4264,16 +4264,18 @@
urn
-_process
+contentFor
Url(
|
0110313bef5747237bd3d5b6ff074d3dd42374d7 | Rename Renderer.doc to Renderer.docController. | src/renderer.js | src/renderer.js | var Article = require('./article');
var _ = require("underscore");
// Renders an article
// --------
//
var Renderer = function(doc) {
this.doc = doc;
// var that = this;
// TODO: use reflection
this.nodeTypes = Article.nodeTypes;
// Collect all node views
this.nodes = {};
};
Renderer.Prototype = funct... | JavaScript | 0 | @@ -126,16 +126,26 @@
tion(doc
+Controller
) %7B%0A th
@@ -150,22 +150,42 @@
this.doc
- = doc
+Controller = docController
;%0A // v
@@ -351,17 +351,16 @@
ion() %7B%0A
-%0A
// Cre
@@ -1192,16 +1192,26 @@
this.doc
+Controller
, %22opera
@@ -1603,16 +1603,26 @@
this.doc
+Controller
.contain
|
753cfb719baecca7c13313161f0f76935a05bc58 | Update profiler.js | svc/profiler.js | svc/profiler.js | /**
* Worker to fetch updated player profiles
* */
const async = require('async');
const queries = require('../store/queries');
const db = require('../store/db');
// const redis = require('../store/redis');
const utility = require('../util/utility');
const { insertPlayer, bulkIndexPlayer } = queries;
const { getData... | JavaScript | 0.000001 | @@ -1909,18 +1909,17 @@
(start,
-10
+5
00);%0A %7D
|
77c22a8260d5ef036fb6fb85ef8250092f0b9a82 | allow user to specify button for sleepify-ing | Leaflet.Sleep.js | Leaflet.Sleep.js | L.Map.mergeOptions({
sleep: true,
sleepTime: 750,
wakeTime: 750,
wakeMessageTouch: 'Touch to Wake',
sleepNote: true,
hoverToWake: true,
sleepOpacity:.7,
sleepButton: null
});
L.Control.SleepMapControl = L.Control.extend({
initialize: function(opts){
L.setOptions(this,opts);
},
options: {
... | JavaScript | 0 | @@ -1509,64 +1509,8 @@
ull;
-%0A this._sleepButton = new L.Control.SleepMapControl()
%0A%0A
@@ -1679,17 +1679,215 @@
.%0A *
-/
+%0A * a custom control/button can be provided by the user%0A * with the map's %60sleepButton%60 option%0A */%0A this._sleepButton = this._map.options.sleepButton %7C... |
d8eb64af38dc1de0af2e8ad92538e11c08e61625 | use style instead href in NotificationsMenu | lib/header/NotificationsMenu.js | lib/header/NotificationsMenu.js | import React, { PropTypes } from 'react';
import NotificationsMenuItem from './NotificationsMenuItem';
const propTypes = {
items: PropTypes.array,
onItemClick: PropTypes.func,
onFooterClick: PropTypes.func,
};
const defaultProps = {
items: [],
};
function NotificationsMenu({ items, onItemClick, onFooterClic... | JavaScript | 0 | @@ -422,16 +422,16 @@
%3Ca
- href=%22%22
+%0A
cla
@@ -454,16 +454,24 @@
-toggle%22
+%0A
data-to
@@ -485,16 +485,61 @@
ropdown%22
+%0A style=%7B%7B cursor: 'pointer' %7D%7D%0A
%3E%0A
|
0fe4f71a8c55334ef3567a5aae146f49df4336e9 | Fix timestamp seek thing | www/static/archive.js | www/static/archive.js | $(function(){
// Resize handling from https://github.com/jcubic/jquery.splitter/issues/32#issuecomment-65424376
var splitPosition = 80;
var splitter = $("#content").split({
orientation:"vertical",
limit:50,
position: splitPosition + "%",
onDragEnd: function(){
splitPosition = Math.round(splitter.position(... | JavaScript | 0.000206 | @@ -1272,16 +1272,48 @@
oLoaded)
+ %7B%0A%09%09window.videoLoaded = false;
%0A%09%09onPla
@@ -1357,16 +1357,19 @@
: %7B%7D%7D);%0A
+%09%7D%0A
%7D);%0A%0Afun
|
40021f968a361f860c5605bff4a2889480d79be9 | move contract deployer to deploy manager | lib/modules/deployment/index.js | lib/modules/deployment/index.js | let async = require('async');
const utils = require('../utils/utils.js');
//require("../utils/debug_util.js")(__filename, async);
const utils = require('../utils/utils.js');
//require("../utils/debug_util.js")(__filename, async);
class DeployManager {
constructor(options) {
const self = this;
this.config =... | JavaScript | 0 | @@ -20,24 +20,84 @@
('async');%0A%0A
+const ContractDeployer = require('./contract_deployer.js');%0A
const utils
|
d99ec02c2d480ce0c9e3b7b51de4cf9a0478b45e | add more messages | message.js | message.js | function err(text){
console.log('\x1b[31mERR! \x1b[39m '+text);
}
function warning(text){
console.log('\x1b[33mOOPS \x1b[39m '+text);
}
function success(text){
console.log('\x1b[32mSUCCESS \x1b[39m '+text);
}
var msg = {
apiServerStarted :function(port){
success('server is running on port ' + p... | JavaScript | 0 | @@ -1268,24 +1268,330 @@
');%0A %7D,%0A
+ noTemplateType: function(template, type, types)%7B%0A warning('Template ' + template + ' has no type ' + type + ' try '+types.join(' or '))%0A %7D,%0A notEnoughChoice: function(type, list)%7B%0A err('run out of unique choice for '+type+' operation. p... |
303448aa50ec898647a1a652ed7851fd0962239d | allow for errors of requiring libraries | packages/code/core/core_require.js | packages/code/core/core_require.js | /*
@author Zakai Hamilton
@component CoreRequire
*/
package.core.require = function CoreRequire(me) {
me.require = function(callback, list) {
require(list, function () {
var modules = [];
list.map((path) => {
var module = require(path);
modules.pus... | JavaScript | 0 | @@ -275,22 +275,188 @@
e =
-require(path);
+null;%0A try %7B%0A module = require(path);%0A %7D%0A catch(e) %7B%0A me.core.console.error(e);%0A %7D
%0A
|
a31be49dc0844395c3f2ef2de230ae99f9de17c9 | Add option normalizing method to compile-solidity that used to be in the legacy files | packages/compile-solidity/index.js | packages/compile-solidity/index.js | const debug = require("debug")("compile"); // eslint-disable-line no-unused-vars
const path = require("path");
const expect = require("@truffle/expect");
const findContracts = require("@truffle/contract-sources");
const Config = require("@truffle/config");
const Profiler = require("./profiler");
const CompilerSupplier ... | JavaScript | 0 | @@ -380,23 +380,22 @@
/run%22);%0A
+%0A
const
- %7B
normali
@@ -408,39 +408,990 @@
ons
-%7D = require(%22./legacy/options%22)
+= options =%3E %7B%0A if (options.logger === undefined) options.logger = console;%0A%0A expect.options(options, %5B%22contracts_directory%22, %22compilers%22%5D);%0A expect.options(opt... |
af696e227926acbc3eeb4e5b25181b99303a1bef | add fields to Table df in webform | frappe/public/js/frappe/web_form/web_form.js | frappe/public/js/frappe/web_form/web_form.js | frappe.ready(function() {
const { web_form_doctype, doc_name, web_form_name } = web_form_settings;
const wrapper = $(".web-form-wrapper");
if (web_form_settings.login_required && frappe.session.user === "Guest") {
const login_required = new frappe.ui.Dialog({
title: __("Not Permitted"),
primary_action_label:... | JavaScript | 0.000002 | @@ -1889,16 +1889,58 @@
%09%09%09%09%7D;%0A%0A
+%09%09%09%09df.fields = form_data%5Bdf.fieldname%5D;%0A%0A
%09%09%09%09if (
|
84c23badc7b9f30cfc337836f0b07e9382b18e58 | Remove some more comments that were junking things up | packages/compile-solidity/index.js | packages/compile-solidity/index.js | const debug = require("debug")("compile"); // eslint-disable-line no-unused-vars
const path = require("path");
const expect = require("@truffle/expect");
const findContracts = require("@truffle/contract-sources");
const Config = require("@truffle/config");
const Profiler = require("./profiler");
const CompilerSupplier ... | JavaScript | 0 | @@ -692,295 +692,8 @@
%7D,%0A%0A
- // contracts_directory: String. Directory where .sol files can be found.%0A // quiet: Boolean. Suppress output. Defaults to false.%0A // strict: Boolean. Return compiler warnings as errors. Defaults to false.%0A // files: Array%3CString%3E. Explicit files to compile besides detec... |
0910c9cf3528f04ce392dc64bb26ff9dcb694af5 | Add more debug output for travis | test/e2e/main.js | test/e2e/main.js | const should = require('should');
const child_process = require('child_process');
const psTree = require('ps-tree');
const isrunning = require('is-running');
const {appPath, electronPath} = require('./helper');
describe('Application', function() {
// Spectron doesn't work with apps that don't open a window,
// so... | JavaScript | 0 | @@ -1671,16 +1671,181 @@
;%0A %7D;%0A%0A
+ /**%0A * @returns %7Bapp%7D a new instance of the app%0A */%0A var spawnApp = function() %7B%0A return child_process.spawn(electronPath, %5B appPath, '--verbose' %5D);%0A %7D%0A%0A
var ap
@@ -1871,16 +1871,16 @@
process%0A
-
var ap
@@ -1996,66 +1996,17 @@
1... |
bd05ccaf596efa2cd39e7de4fa0692e3f7178217 | Add resource name input | src/Activities.js | src/Activities.js | import React from 'react';
export default ({onCreateButtonClick})=> (
<div className="Activities">
<button onClick={e => {
e.preventDefault()
onCreateButtonClick("New Resource")
}}>+</button>
</div>
)
| JavaScript | 0.000011 | @@ -66,40 +66,173 @@
)=%3E
-(%0A %3Cdiv className=%22Activities%22%3E
+%7B%0A var newResourceNameInput = null;%0A%0A return %3Cdiv className=%22Activities%22%3E%0A %3Cinput%0A type=%22text%22%0A ref=%7B(input) =%3E %7B newResourceNameInput = input; %7D%7D /%3E%0A
%0A
@@ -317,21 +317,19 @@
ick(
-%... |
2a409015fd76cfda067bec3833605eaaf0a63d07 | Remove console logs | js/sinbad-app.js | js/sinbad-app.js | appRun();
function appRun() {
$(document).ready(function() {
console.log("READY");
$(".loading").hide();
$(".complete").show();
//PAGE SWIPES
$(document).on('pageinit', function(event){
$('.pages').on("swipeleft", function () {
var nextpage = $(this).next('div... | JavaScript | 0.000002 | @@ -1361,80 +1361,8 @@
');%0A
- console.log(currentBrush);%0A console.log(%22in droppable%22);%0A
|
19038b9d1c1a98b5a6bd185b3784e32f491682b4 | remove .focus-visible on blur & focusout | js/src/button.js | js/src/button.js | /**
* --------------------------------------------------------------------------
* Bootstrap (v4.4.1): button.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
import $ from 'jquery'
/**
* -------------... | JavaScript | 0.000001 | @@ -807,29 +807,23 @@
'focus-
-FOCUS_VISIBLE
+visible
'%0A%7D%0A%0Acon
@@ -5071,37 +5071,100 @@
$(button).
-toggl
+addClass(ClassName.FOCUS_VISIBLE)%0A %7D else %7B%0A $(button).remov
eClass(ClassName
|
5d302859a4bb254afcc3713316abc8d0e1509597 | Throw helpful information -- if uncommented | js/test_utils.js | js/test_utils.js | function isequalRel(x, y, tol) {
var EPS = Math.pow(2, -52); // IEEE 754 double precision epsilon
return (Math.abs(x - y) <= (tol * Math.max(Math.abs(x), Math.abs(y)) + EPS));
}
function assert(state, message) {
return ok(state, message);
} | JavaScript | 0 | @@ -1,16 +1,39 @@
+/*global ok: true%0A */%0A%0A
function isequal
@@ -122,22 +122,18 @@
lon%0A
-return
+if
(Math.a
@@ -194,16 +194,214 @@
+ EPS))
+ %7B%0A return true;%0A %7D%0A // Too bad this stops QUnit test, but is handy for finding want/got values%0A //throw new Error(%22isEqualRel x=%22 ... |
a3cc97a1272f2d7337bbbee0d28fbac3d4105277 | Set Input.value when rerendering. | packages/input/Input.js | packages/input/Input.js | import Component from '../../ui/Component'
import keys from '../../util/keys'
export default class Input extends Component {
render ($$) {
let val = this._getDocumentValue()
let el = $$('input').attr({
value: val,
type: this.props.type,
placeholder: this.props.placeholder
}).addClass('... | JavaScript | 0 | @@ -324,16 +324,32 @@
input')%0A
+ .val(val)%0A
.o
|
6cd1c3cdf1e66d651c9f7a6481c8520c2a996aa9 | Improve performance of no-identical-title | lib/rules/no-identical-title.js | lib/rules/no-identical-title.js | 'use strict';
const createAstUtils = require('../util/ast');
function newLayer() {
return {
describeTitles: [],
testTitles: []
};
}
function isFirstArgLiteral(node) {
return node.arguments && node.arguments[0] && node.arguments[0].type === 'Literal';
}
module.exports = {
meta: {
... | JavaScript | 0.999357 | @@ -198,16 +198,26 @@
return
+(%0A
node.arg
@@ -225,16 +225,24 @@
ments &&
+%0A
node.ar
@@ -254,16 +254,24 @@
ts%5B0%5D &&
+%0A
node.ar
@@ -299,16 +299,22 @@
Literal'
+%0A )
;%0A%7D%0A%0Amod
@@ -536,16 +536,143 @@
tings);%0A
+ const isTestCase = astUtils.buildIsTestCaseAnswe... |
edcd560e4b2c47d6c9b3b5ad92527351df90e337 | Fix typo | lib/service/middleware/cache.js | lib/service/middleware/cache.js | 'use strict'
var memjs = require('memjs')
var crypto = require('crypto')
module.exports = function (config) {
if (!config.MEMCAHE_SERVERS) {
throw new Error('MEMCAHE_SERVERS config variable must be set')
}
var client = memjs.Client.create(config.MEMCAHE_SERVERS, {
username: config.MEMCAHE_USERNAME,
... | JavaScript | 0.999999 | @@ -1272,16 +1272,17 @@
// inten
+t
ionally
|
40f706329c79060678830ee7b0cce022ad840554 | Add console output for errors deleting items | lib/test/object-readall-hook.js | lib/test/object-readall-hook.js | // test/object-readall-hook.js
//
// Testing DatabankObject readAll() hooks
//
// Copyright 2012, StatusNet Inc.
//
// 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.apach... | JavaScript | 0.000001 | @@ -2136,32 +2136,141 @@
function(err) %7B%0A
+ if (err) %7B%0A console.error(err);%0A %7D%0A
|
e1188d1a36533d7b0521ff3de51ef447ddfd28d3 | Use a file to execute clang-query commands | lib/tooling/clang-query-tool.js | lib/tooling/clang-query-tool.js | // Copyright (c) 2018, Compiler Explorer Authors
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// thi... | JavaScript | 0 | @@ -2151,24 +2151,163 @@
oin('%5Cn'));%0A
+ await fs.writeFile(path.join(dir, %22query_commands.txt%22), stdin);%0A args.push('-f');%0A args.push('query_commands.txt');%0A
cons
@@ -2374,23 +2374,16 @@
le, args
-, stdin
);%0A%0A
|
07d90c7dbec4a1d0a4b06c457b7b9e5e01c3d697 | update story | src/components/timerPulser/timerPulser.stories.js | src/components/timerPulser/timerPulser.stories.js | import React from 'react';
import { addStoryInGroup, LOW_LEVEL_BLOCKS } from '../../../.storybook/utils';
import { select } from '@storybook/addon-knobs';
import { TimerPulser } from '../../index';
const sizes = ['small', 'medium', 'large'];
export default {
component: TimerPulser,
title: addStoryInGroup(LOW_LEVE... | JavaScript | 0 | @@ -109,59 +109,8 @@
port
- %7B select %7D from '@storybook/addon-knobs';%0Aimport %7B
Tim
@@ -117,26 +117,24 @@
erPulser
- %7D
from '.
./../ind
@@ -129,64 +129,21 @@
m '.
-./../index';%0A%0Aconst sizes = %5B'small', 'medium', 'large'%5D
+/TimerPulser'
;%0A%0Ae
@@ -264,17 +264,17 @@
nst
-b
+B
asic = (
) =%... |
aac2d47d90531cf18305d3ea7a451606bc2e473e | normalise arguments to write | medea-compressed.js | medea-compressed.js | var after = require('after')
, zlib = require('zlib')
, MedeaCompressed = function (db) {
if (!(this instanceof MedeaCompressed))
return new MedeaCompressed(db)
this.db = db
}
// borrowed from https://github.com/mafintosh/gunzip-maybe
, isGzipped = function (data) {
if (data.... | JavaScript | 0.000036 | @@ -1781,32 +1781,96 @@
ns, callback) %7B%0A
+ if (!callback) %7B%0A callback = options%0A options = %7B%7D%0A %7D%0A%0A
var self = thi
|
84d91967282d6ad580b3f734cc3480fdf4906e24 | fix whitespace in Profile.test.js | src/elements/components/GlobalNav/Profile.test.js | src/elements/components/GlobalNav/Profile.test.js | /**
Copyright 2016 Autodesk,Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | JavaScript | 0.999956 | @@ -3409,18 +3409,16 @@
%0A %7D
-,%0A
%0A %5D;%0A
|
fefbb106243eab175510a737bb0241086a82701e | Fix bad reference on webhook response. | lib/webhooks/riskOrderStatus.js | lib/webhooks/riskOrderStatus.js | /* LIB */
const radial = require('../../radial');
const authenticate = require('./authenticate');
/* MODULES */
const xmlConvert = require('xml-js');
/* CONSTRUCTOR */
(function () {
var RiskOrderStatus = {};
/* PRIVATE VARIABLES */
/* PUBLIC VARIABLES */
/* PUBLIC FUNCTIONS */
RiskOrderStatus.parse... | JavaScript | 0.000001 | @@ -593,24 +593,20 @@
reply =
-response
+body
.RiskAss
|
f85db126a9ac5af0a84abb2ab82c73a6efd282ef | fix polyfill bugs | src/inject/generic/win32/polyfill_Notification.js | src/inject/generic/win32/polyfill_Notification.js | import os from 'os';
const osVersion = os.release().split('.');
if (osVersion[0] && (parseInt(osVersion[0], 10) > 6 || parseInt(osVersion[0], 10) === 6 && parseInt(osVersion[1], 10) > 1) {
// If we are above windows 7 we can use the system notifications but with
// the silent flag forced on
require('../silent_N... | JavaScript | 0.000001 | @@ -181,16 +181,17 @@
10) %3E 1)
+)
%7B%0A //
|
13e90fd8297ee5a4186269b641578532b424644b | Fix nits | js/tss/Format.js | js/tss/Format.js | /**
* T'SoundSystem for JavaScript
*/
/**
* Format prototype
*
* Contain data read and write functions.
* TODO: Use this prototype from all files in the library.
* @author Takashi Toyoshima <toyoshim@gmail.com>
*/
var Format = function () {
this.endian = Format.BIG_ENDIAN;
}
Format.BIG_ENDIAN = 0;
Format.... | JavaScript | 0.000016 | @@ -281,16 +281,17 @@
NDIAN;%0A%7D
+;
%0A%0AFormat
@@ -1123,16 +1123,17 @@
if (0 ==
+=
data%5Bof
|
8f332601da0bf31e7381e24eea4d5af23b74e0fe | Add (sparse) English locale for `main` | js/utils/i18n.js | js/utils/i18n.js | "use strict";
var zoteroI18n = requirePo('./../../../editorsnotes/djotero/locale/%s/LC_MESSAGES/django.po');
module.exports = {
main: null,
zotero: zoteroI18n
}
| JavaScript | 0 | @@ -12,24 +12,34 @@
%22;%0A%0A
-var zoteroI18n =
+module.exports = %7B%0A main:
req
@@ -74,15 +74,12 @@
tes/
-djotero
+main
/loc
@@ -112,63 +112,95 @@
po')
-;%0A%0Amodule.exports = %7B%0A main: null,%0A zotero: zoteroI18n
+,%0A zotero: requirePo('./../../../editorsnotes/djotero/locale/%25s/LC_MESSAGES/django.... |
b1a735f9de6cd95e5d3cc04cbc24fb10df01084a | Update browser.js | bin/browser.js | bin/browser.js | const puppeteer = require('puppeteer');
const request = JSON.parse(process.argv[2]);
const callChrome = async () => {
let browser;
let page;
try {
browser = await puppeteer.launch({ args: request.options.args || [] });
page = await browser.newPage();
if (request.options && reque... | JavaScript | 0.000003 | @@ -9,16 +9,20 @@
ppeteer
+
= requir
@@ -37,17 +37,16 @@
teer');%0A
-%0A
const re
@@ -51,16 +51,22 @@
request
+
= JSON.p
@@ -106,16 +106,19 @@
lChrome
+
= async
@@ -156,16 +156,156 @@
t page;%0A
+ const requestOptions = %7B%7D;%0A const returnOptions = %7B%7D;%0A returnOptions.... |
cd0700c882c2a2b927d2a6c4dd4d453a955d133b | update lib index.js generator to consider sub dirs and internal | generators/init-lib/templates/plain/index.js | generators/init-lib/templates/plain/index.js | /* *****************************************************************************
* Caleydo - Visualization for Molecular Biology - http://caleydo.org
* Copyright (c) The Caleydo Team. All rights reserved.
* Licensed under the new BSD license, available at http://caleydo.org/license
*********************************... | JavaScript | 0 | @@ -709,18 +709,16 @@
a, b) %7B%0A
-
if (a
@@ -735,28 +735,24 @@
FILE) %7B%0A
-
-
return a ===
@@ -764,26 +764,22 @@
0 : -1;%0A
-
%7D%0A
-
-
if (b ==
@@ -794,20 +794,16 @@
FILE) %7B%0A
-
retu
@@ -810,22 +810,18 @@
rn 1;%0A
- %7D%0A
+%7D%0A
return
@@ -981,24 +981,58 @@
c',... |
905ed6106b2c83c23a5c58d5257fd39cac25db5d | use windows 10 with edge | karma.conf-ci.js | karma.conf-ci.js | /*jshint node: true */
/**
* Karma configuration options when testing a push or pull request from a branch.
* This file expects certain TRAVIS secure environment variables to be set.
**/
module.exports = function (config) {
'use strict';
var base = 'BrowserStack',
customLaunchers = {
bs... | JavaScript | 0.000001 | @@ -655,35 +655,34 @@
os_version: '
-8.
1
+0
'%0A %7D,
|
83ae2d9279a8b322b16fe4b0d04c52326119fb36 | Add missing 'ko' export | localize/index.js | localize/index.js | 'use strict';
module.exports = {
en: require('./en'),
ar: require('./ar'),
cz: require('./cz'),
de: require('./de'),
es: require('./es'),
fr: require('./fr'),
hu: require('./hu'),
it: require('./it'),
ja: require('./ja'),
nb: require('./nb'),
nl: require('./nl'),
pl: req... | JavaScript | 0.999811 | @@ -248,24 +248,49 @@
re('./ja'),%0A
+ ko: require('./ko'),%0A
nb: requ
|
3d9275cc3b2d97b9c87934fcd701b922d4ec9d32 | FIX in-page nav | wazimap_za/static/js/profiles.js | wazimap_za/static/js/profiles.js | $('.floating-nav').affix({
offset: {
top: $('.floating-nav').offset().top,
},
});
$('a[href^="#"]').on('click', function(e) {
e.preventDefault();
var target = this.hash;
var $target = $(target);
if ($target.length) {
window.scroll(0, $target.offset().top - 90);
}
});
| JavaScript | 0 | @@ -278,16 +278,99 @@
- 90);%0A
+ if ('pushState' in window.history) window.history.pushState(%7B%7D, null, target);%0A
%7D%0A%7D);%0A
|
a1a97799dea15e8ef6836f7a527e081644c73a50 | fix typo in name | packages/plugin-tab/postinstall.js | packages/plugin-tab/postinstall.js | console.log(`Pattern Lab Node Plugin - "plugin-tab" installed.
Use the CLI to install this: patternlab install --plugins @pattern-lab/tab
Configure or disable this plugin inside your patternlab-config.json file.
Add tabs to the Pattern Lab UI by adding file extensions to the "tabsToAdd" array on the plugins['@pattern-l... | JavaScript | 0.000005 | @@ -127,16 +127,23 @@
ern-lab/
+plugin-
tab%0AConf
|
31c51ea9eb37bbab13867c311dd397e07cd674a0 | Add a layer to the document's children list when created and support activeLayer. | src/Doc.js | src/Doc.js | Doc = Base.extend({
initialize: function(canvas) {
this.canvas = canvas;
this.ctx = this.canvas.getContext('2d');
this.size = new Size(canvas.offsetWidth, canvas.offsetHeight);
this.children = [];
},
redraw: function() {
this.ctx.clearRect(0, 0, this.size.width, this.size.height);
for(var i = 0, l = this... | JavaScript | 0 | @@ -41,24 +41,40 @@
n(canvas) %7B%0A
+%09%09if(canvas) %7B%0A%09
%09%09this.canva
@@ -85,16 +85,17 @@
canvas;%0A
+%09
%09%09this.c
@@ -127,24 +127,25 @@
xt('2d');%0A%09%09
+%09
this.size =
@@ -201,26 +201,78 @@
;%0A%09%09
-this.children = %5B%5D
+%7D%0A%09%09this.activeLayer = new Layer();%0A%09%09this.children... |
b20a1ef1cc49b4decfc1c34098764eb9ac3f316f | Fix typo and use the weak boolean on the correct place. | packages/reactive-state/package.js | packages/reactive-state/package.js | Package.describe({
name: 'meteorflux:reactive-state',
version: '1.3.5',
summary: 'ReactiveState is a reactive object to save complex state data.',
git: 'https://github.com/worona/meteorflux',
documentation: 'README.md'
});
Package.onUse(function(api) {
api.versionsFrom('1.2');
api.use('meteorflux:namespa... | JavaScript | 0.000002 | @@ -486,16 +486,32 @@
mplates'
+, %7B weak: true %7D
);%0A api
@@ -786,22 +786,8 @@
tes'
-, %7Bweek: true%7D
);%0A
|
86ee50e723cfd34ac855df943971bb5bbc42fb76 | use the stringify function in api correctly | src/api.js | src/api.js | var _ = require('./utility');
var Transport = null;
var url = null;
function init(context) {
if (context == 'server') {
Transport = require('./server/transport');
url = require('url');
} else {
Transport = require('./browser/transport');
url = require('./browser/url');
}
}
var defaultOptions = ... | JavaScript | 0.000043 | @@ -61,16 +61,56 @@
= null;
+%0Avar json = null;%0Avar jsonBackup = null;
%0A%0Afuncti
@@ -230,16 +230,82 @@
'url');%0A
+ json = JSON;%0A jsonBackup = require('json-stringify-safe');%0A
%7D else
@@ -347,32 +347,32 @@
er/transport');%0A
-
url = requir
@@ -391,16 +391,40 @@
/url');%0A
+ json = Roll... |
1bda425022393556dca9388d8c3c3ccc4793248d | Fix language sorthand for danish language | locale/bootstrap-markdown.da.js | locale/bootstrap-markdown.da.js | /**
* Danish translation for bootstrap-markdown
* Dan Storm <storm@catalystcode.net>
*/
(function ($) {
$.fn.markdown.messages.nb = {
'Bold': 'Fed',
'Italic': 'Kursiv',
'Heading': 'Overskrift',
'URL/Link': 'URL/Link',
'Image': 'Billede',
'List': 'Liste',
'Preview': 'Forhåndsvisning',
... | JavaScript | 0.998494 | @@ -129,10 +129,10 @@
ges.
-nb
+da
= %7B
|
973143a4b719c44eb47c74f844a5dc4a2ca3a322 | change lisa to lissie in help message | src/cli.js | src/cli.js | import meow from 'meow'
import lissie from './lissie'
const cli = meow(`
Usage
$ lisa <license>
Options
-a, --author "<your name>"
-y, --year <year>
-e, --email "<your email>"
-p, --project "<project name>"
-v, --version
-h, --help
Examples
$ lisa mit
$ lisa mit -a "Zach Orl... | JavaScript | 0 | @@ -84,17 +84,19 @@
$ lis
-a
+sie
%3Clicens
@@ -278,25 +278,27 @@
es%0A $ lis
-a
+sie
mit%0A $ l
@@ -291,33 +291,35 @@
ie mit%0A $ lis
-a
+sie
mit -a %22Zach Or
@@ -343,17 +343,19 @@
$ lis
-a
+sie
mit -a
|
d798a919ba8b5d8baa7dabfe237a5320ea3230f2 | Update jQuery include to 2.2.2 | gamedeals-table-highlighter.user.js | gamedeals-table-highlighter.user.js | // ==UserScript==
// @name GameDeals table highlighter
// @namespace ohmanger
// @grant GM_xmlhttpRequest
// @include https://www.reddit.com/r/GameDeals/comments/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js
// @updateURL https://raw.githubusercontent.com/ohmange... | JavaScript | 0.000001 | @@ -240,17 +240,17 @@
ery/2.2.
-0
+2
/jquery.
|
e1781b8c5931604daf2e618a158a0d653789c17c | Fix PR issues | bin/release.js | bin/release.js | #!/usr/bin/env node
const childProcess = require('child_process');
const fs = require('fs');
const path = require('path');
const minimist = require('minimist');
const semver = require('semver');
const argv = minimist(process.argv, {
string: ['push-build', 'target-branch', 'build'],
default: {
'push-build': n... | JavaScript | 0.000007 | @@ -3585,17 +3585,16 @@
Add buil
-d
t change
|
2b5e4d7aa5e436fb5d89de679f0812ea9c92bdf0 | Fix sexpr-wast-prototype location | bin/runWast.js | bin/runWast.js | #!/usr/bin/env node
const cp = require('child_process')
const fs = require('fs')
const path = require('path')
const Kernal = require('ewasm-kernel')
const loc = path.join(process.cwd(), process.argv[2])
cp.execSync(`${__dirname}/../deps/sexpr-wasm-prototype/out/sexpr-wasm ${loc} -o ./temp.wasm`)
const opsWasm = fs.re... | JavaScript | 0.000006 | @@ -230,11 +230,12 @@
/../
-dep
+tool
s/se
|
7516198c4220db2ea84f26b73ce616a2cae18641 | Install plugins when the server starts | packages/rotonde-core/src/index.js | packages/rotonde-core/src/index.js | import Server from 'socket.io';
import server from './server';
import { registerHandlers } from './handlers';
const httpServer = server(app => {
console.log(`Rotonde listening on ${app.get('host')}:${app.get('port')}`);
const io = new Server(httpServer);
registerHandlers(io);
});
| JavaScript | 0.000001 | @@ -102,16 +102,60 @@
ndlers';
+%0Aimport %7B installPlugins %7D from './plugins';
%0A%0Aconst
@@ -174,16 +174,22 @@
server(
+async
app =%3E %7B
@@ -327,12 +327,94 @@
rs(io);%0A
+ try %7B%0A await installPlugins();%0A %7D catch (err) %7B%0A console.error(err);%0A %7D%0A
%7D);%0A
|
3a94cf68a71debe4841e974bfb9b2dc8a4aaef60 | Use different value for fund age | web/src/js/reducers/data/list.js | web/src/js/reducers/data/list.js | /**
* Process list data
*/
import { fromJS, List as list, Map as map } from 'immutable';
import { YMD } from '../../misc/date';
import {
LIST_COLS_SHORT, LIST_COLS_PAGES
} from '../../misc/const';
import { TransactionsList } from '../../misc/data';
import { formatAge } from '../../misc/format';
import {
getGainC... | JavaScript | 0.000006 | @@ -1273,166 +1273,185 @@
nst
-ageText = formatAge(%0A new Date().getTime() / 1000 - history.get('totalTime') - history.get('startTime'));%0A const lastItem = history.get('history').last();
+lastItem = history.get('history').last();%0A%0A const valueTime = history.get('startTime') + lastItem.get(0);%0A const ag... |
7bcb9fa0b9380446ab0ef034cd6501eb9b25c41b | Add contributors link to menu | web/src/server/components/app.js | web/src/server/components/app.js | import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux'
import { Link } from 'react-router'
import classNames from 'classnames'
import getMuiTheme from 'material-ui/styles/getMuiTheme'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import AppBar from 'material-ui/... | JavaScript | 0 | @@ -1873,32 +1873,175 @@
home%3C/FontIcon%3E%0A
+ %3CFontIcon className=%22material-icons%22 title=%22Contributors%22 onClick=%7Bthis.handlePageClick.bind(this, 'authors')%7D%3Epeople%3C/FontIcon%3E%0A
%3CF
|
062e4fd62c14831519691cc63785343642e51d3c | fix typo | yui_modules/request-cache.js | yui_modules/request-cache.js | /*jslint nomen: true, indent: 4*/
/*
* Copyright (c) 2013 Yahoo! Inc. All rights reserved.
*/
YUI.add('request-cache', function (Y, NAME) {
'use strict';
var originalDispatcher = Y.mojito.Dispatcher,
OriginalActionContext = Y.mojito.ActionContext,
RequestCacheDispatcher = function () {
... | JavaScript | 0.999991 | @@ -1340,16 +1340,18 @@
/ If the
+re
is a ca
|
713757d3949bd8df608a2de17d841d4d71ff2821 | Update 2G profile to match WPT (#37) | bin/index.js | bin/index.js | #!/usr/bin/env node
'use strict';
const minimist = require('minimist');
const throttler = require('../lib/');
const packageInfo = require('../package');
const defaultUp = 330;
const defaultDown = 780;
const defaultRtt = 200;
const profiles = {
'3g': {
down: 1600,
up: 768,
rtt: 150
},
'3gfast': {
... | JavaScript | 0 | @@ -437,18 +437,19 @@
down:
-35
+280
,%0A up
@@ -454,10 +454,11 @@
up:
-3
2
+56
,%0A
@@ -468,10 +468,10 @@
tt:
-65
+40
0%0A
|
feef00606e562935f14535ffd8a6edfa9fe11902 | Add strict option to yargs | bin/index.js | bin/index.js | #!/usr/bin/env node
var updateNotifier = require('update-notifier')
var yargs = require('yargs')
var h = require('../lib/h')
var pkg = require('../package.json')
updateNotifier({pkg: pkg}).notify()
var yargs = yargs
.usage('$0 [opts] -- <command>')
.help('help').alias('help', 'h')
.version(pkg.version, 'version... | JavaScript | 0.000014 | @@ -211,16 +211,28 @@
= yargs%0A
+ .strict()%0A
.usage
@@ -709,12 +709,14 @@
-p
+%5B
PORT
+%5D
', '
|
edbe2ea2e8f3c24ebaff4e336ed10e769ccdeeef | Remove unused express var. | bin/query.js | bin/query.js | #!/usr/bin/env node
var program = require('commander'),
express = require('express'),
exec = require('child_process').exec,
AuthApp = require('../lib/ManualAuthApp'),
debug = require('debug')('queryBin'),
secrets = require('../client_secrets'),
query = require('./tasks-for-owner-example');
var... | JavaScript | 0 | @@ -54,42 +54,8 @@
'),%0A
- express = require('express'),%0A
|
668b1f5787faf2370f1ddb8f7e0d2f37a3247fde | Fix hound issue | src/deep-cache/test/Driver/S3FSDriver.spec.js | src/deep-cache/test/Driver/S3FSDriver.spec.js | 'use strict';
import chai from 'chai';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
import {S3FSDriver} from '../../lib.compiled/Driver/S3FSDriver';
import {S3FSDriverMock} from './../Mocks/S3FSDriverMock';
import FSMock from './../Mocks/FSMock';
import {ContainerAware} from '../../node_modules/deep-... | JavaScript | 0.000001 | @@ -545,16 +545,20 @@
fsMock =
+ new
FSMock(
|
5dc8ff025625e13fc107b981180f88d370a5d241 | change path prefix from ./ to ../chat/ in chat component | chat/ccm.chat.js | chat/ccm.chat.js | /**
* @overview <i>ccm</i> component for simple chats
* @author André Kless <andre.kless@web.de> 2016
* @license The MIT License (MIT)
*/
ccm.component( /** @lends ccm.components.chat */ {
/*-------------------------------------------- public component members --------------------------------------------*/
/... | JavaScript | 0.000001 | @@ -539,32 +539,38 @@
ore, %7B local: '.
+./chat
/templates.json'
@@ -696,32 +696,38 @@
: %5B ccm.load, '.
+./chat
/style.css' %5D,%0A
|
3660bd932cf69cb99369fd036e9bf2beb3e1e159 | disable sw for now | docs/src/index.js | docs/src/index.js | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { BrowserRouter } from 'react-router-dom';
import { createStore } from 'redux'
import { loadComponents } from 'loadable-components'
import './index.css';
import App from './App';
import reducer from './reducers'... | JavaScript | 0 | @@ -311,24 +311,27 @@
/reducers';%0A
+//
import regis
@@ -844,16 +844,19 @@
ot'));%0A
+ //
registe
|
73f757dba57e5ababf151d5aa2bdf454b89634ed | Remove waste rows | client/index.es6 | client/index.es6 | import Backbone from 'backbone'
import _ from 'lodash'
import React from 'react'
import App from 'client/app'
window.addEventListener('load', function(){
var app = new App();
window._app = app;
var container = window.document.querySelector('#js-game-container');
app.renderTo(container);
app.start().then(()... | JavaScript | 0.000003 | @@ -1,59 +1,4 @@
-import Backbone from 'backbone'%0Aimport _ from 'lodash'%0A
impo
|
2946e89b70a87781e3cc67618063e5618cc76874 | add exit | tools/createSchemas.js | tools/createSchemas.js | var redis = require('../libs/redis-client');
var approvedEnvironment = require('../libs/schemas/validator').approvedEnvironment;
var models = require('../models');
var fs = require('fs');
var log = require('czagenda-log').from(__filename);
var SCHEMAS = [{
"name" : "base",
"final" : false,
"file" : "base-abstract.j... | JavaScript | 0.000007 | @@ -2200,16 +2200,52 @@
done%22);%0A
+%09%09%09%09setTimeout(process.exit, 1000);%0A
%09%09%09%7D%0A%0A%09%09
|
833121e7bff1f2a2950386982cf76e12c06e3dd1 | Configure prod webpack for dashboard | webpack/dashboard/webpack.prod.config.js | webpack/dashboard/webpack.prod.config.js | const webpack = require('webpack');
const {resolve} = require('path');
const PACKAGE = require('../../package.json');
const version = PACKAGE.version;
const isVendor = (module, count) => {
const userRequest = module.userRequest;
return userRequest && userRequest.indexOf('node_modules') >= 0;
};
const entryPoints ... | JavaScript | 0 | @@ -2092,16 +2092,1252 @@
ules: %5B%0A
+ %7B%0A test: /%5C.js$/,%0A loader: 'shim-loader',%0A include: %5B%0A resolve(__dirname, '../../', 'node_modules/cartodb.js')%0A %5D,%0A options: %7B%0A shim: %7B%0A 'wax.cartodb.js': %7B%0A ... |
34370a5a014a70cf5415b404868db0ee722b0d38 | Update help.js / sorting | commands/help.js | commands/help.js | exports.run = (client, message, args, level) => {
if (!args[0]) {
const settings = message.guild ? client.settings.get(message.guild.id) : client.config.defaultSettings;
const myCommands = message.guild ? client.commands.filter(cmd => client.levelCache[cmd.conf.permLevel] <= level) : client.commands.filter(cm... | JavaScript | 0 | @@ -720,16 +720,94 @@
category
+%0A ? 1 : p.help.name %3E c.help.name && p.help.category === c.help.category
? 1 : -
@@ -807,16 +807,21 @@
? 1 : -1
+%0A
);%0A s
|
0e6f1ecff3472f9ab2e96762ecdc0375b54d0fdd | Disable display editor settings keyboard shortcut. | website/addons/wiki/static/ShareJSDoc.js | website/addons/wiki/static/ShareJSDoc.js | var activeUsers = [];
var ShareJSDoc = function(viewModel, url, metadata) {
// Initialize Ace and configure settings
var editor = ace.edit("editor");
editor.getSession().setMode("ace/mode/markdown");
editor.getSession().setUseSoftTabs(true); // Replace tabs with spaces
editor.getSession().setUse... | JavaScript | 0 | @@ -484,16 +484,97 @@
margin%0A
+ editor.commands.removeCommand('showSettingsMenu'); // Disable settings menu%0A
edit
|
61b2864a3fb57dc05326f838fdfdf8d299834da8 | fix readme | markdown-guide.js | markdown-guide.js | (function(window, document, undefined){
'use strict';
// Helper functions
function hasClass(elem, klass) {
return (' ' + elem.className + ' ').indexOf(' ' + klass + ' ') > -1;
}
function addClass(elem, klass) {
if (!hasClass(elem, klass))
elem.className = elem.className + " " + klass
}
func... | JavaScript | 0.000001 | @@ -659,16 +659,36 @@
nction,%0A
+ tableClass: '',%0A
tabl
@@ -1077,17 +1077,16 @@
e%0A %7D;%0A%0A
-%0A
var GU
@@ -4102,24 +4102,68 @@
t('table');%0A
+ addClass(table, settings.tableClass);%0A
table.
|
82b225804fd3c0f0d87629ebc0005d57a6462f9c | Exit if conjure.test() not called | bootstrap.js | bootstrap.js | /**
* Allow test scripts to simply define a module.exports function that receives
* a pre-baked conjure instance.
*
* Also allow custom `--bootstrap <file>` modules to modify that instance
* and pass custom arguments to the test module.
*/
var cli = require('casper').create().cli;
var rootDir = cli.raw.get('root... | JavaScript | 0 | @@ -245,18 +245,21 @@
/%0A%0Avar c
-li
+asper
= requi
@@ -279,16 +279,34 @@
create()
+;%0Avar cli = casper
.cli;%0Ava
@@ -1147,12 +1147,236 @@
oduleArgs);%0A
+%0Aif (!conjure.isRunning()) %7B // Prevent empty tests from timing out.%0A conjure.status('bootstrap.js', 'exit', %7BtestFile: testFile, reason: 'NoTestD... |
2f80a9a036235b9d9c4f937697c25bc24b6c8d79 | debug empty count method | js/ai.js | js/ai.js | function AI() {
this.moves = [0,1,2,3];
this.brain = new deepqlearn.Brain(19,4, {
epsilon_test_time: 0.0 // Shut off random guess
});
this.previousMove = 0;
}
AI.prototype.getMaxVal = function() {
var max = 0;
this.grid.cells.forEach(function(row){
row.forEach( function( curVal ){
if( curVal && curVal.v... | JavaScript | 0.000002 | @@ -549,43 +549,8 @@
%09%09%09%0A
-%09%09%09console.log('Empty: ', curVal);%0A
%09%09%09c
@@ -2056,32 +2056,77 @@
ta.empty : 0 );%0A
+%09%09console.log('Empty Count: ', meta.empty );%0A
%09%09console.log('E
|
1bd2841d95a5357df7bc213ec717138b440485d3 | Add slight timeout for buying | buy_stuff.js | buy_stuff.js | $(document).ready(function() {
console.log("finding something to buy");
var baseTimeout = 150000;
var desiredItemName = "Fatty Bearsteak";
var desiredItemPrice = 13;
buyDesiredItems(desiredItemName, desiredItemPrice);
reloadPage(baseTimeout + getRandomInt(0, baseTimeout));
});
function buyDesir... | JavaScript | 0 | @@ -95,10 +95,10 @@
t =
-15
+60
0000
@@ -619,16 +619,41 @@
tml();%0A%0A
+ var counter = 0;%0A
@@ -1136,24 +1136,91 @@
!= %22--%22) %7B%0A
+ counter++;%0A setTimeout(function() %7B%0A%0A
@@ -1305,16 +1305,19 @@
Copper;%0A
+
@@ -1420,24 +1420... |
648479c9a81ccc7044c40d124e5d36c0c2a0f592 | Update index.js | Name-Block/index.js | Name-Block/index.js | 'use strict'; // dont touch
const fs = require('fs');
this.command = []; // dont touch
this.commandName = []; // dont touch
this.gamemodeId = []; // dont touch
this.gamemode = []; // dont touch
this.addToHelp = []; // dont touch
// [General]
this.name = "Name-Block"; // Name of plugin REQUIRED
this.author = "Andrews... | JavaScript | 0.000002 | @@ -2167,16 +2167,47 @@
nfig) %7B%0A
+ gameServer.nameblock = true;%0A
this.c
@@ -2936,14 +2936,8 @@
if (
--1 !=
play
@@ -2984,16 +2984,22 @@
ames%5Bi%5D)
+ != -1
) return
|
456116287ecb7ddc9feaf84d3fbf04e11a8dc854 | remove old log | admin/src/views/list.js | admin/src/views/list.js | var React = require('react');
var CreateForm = require('../components/CreateForm');
var utils = require('keystone-utils');
var Button = require('elemental').Button;
var Dropdown = require('elemental').Dropdown;
var View = React.createClass({
displayName: 'ListView',
getInitialState: function() {
return {
c... | JavaScript | 0.00004 | @@ -1810,31 +1810,8 @@
) %7B%0A
-%09%09%09console.log(item);%0A%0A
%09%09%09i
|
ab27b49deddbd6f74bad126b9a275b015a7fb6cd | rename autoComplete directive as tabComplete to avoid confusion with the autocomplete html attribute | webclient/room/room-directive.js | webclient/room/room-directive.js | /*
Copyright 2014 matrix.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-2.0
Unless required by applicable law or agreed to in writing, software... | JavaScript | 0 | @@ -621,20 +621,19 @@
ective('
-auto
+tab
Complete
@@ -889,28 +889,27 @@
if (!scope.
-auto
+tab
Completing)
@@ -1022,36 +1022,35 @@
scope.
-auto
+tab
CompleteOriginal
@@ -1088,36 +1088,35 @@
scope.
-auto
+tab
Completing = tru
@@ -1209,36 +1209,35 @@
scope.
-auto
+tab
CompleteIn... |
753a1e8c1ebf926fe48b90fdd6d31c9fd95d00c5 | Fix problem where index_bundle ends up in wrong spot (#3289) | webpack.datascience-ui.config.js | webpack.datascience-ui.config.js | const HtmlWebpackPlugin = require('html-webpack-plugin');
const FixDefaultImportPlugin = require('webpack-fix-default-import-plugin');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin')
const configFileName = 'tsconfig.datascience-ui.json';
module.exports = {
entry: ['b... | JavaScript | 0.000001 | @@ -457,16 +457,45 @@
ename: '
+datascience-ui/history-react/
index_bu
|
92d7292f36c07154de8ac2f6f5bc7717fbaad653 | disable server-side uglify in all cases | webpack/webpack.config.server.js | webpack/webpack.config.server.js | // @flow
import path from 'path'
import webpack from 'webpack'
import ExtractTextPlugin from 'extract-text-webpack-plugin'
import HappyPack from 'happypack'
import ProgressBarPlugin from 'progress-bar-webpack-plugin'
import nodeExternals from 'webpack-node-externals'
import buildDir from '../buildDir'
const root = pa... | JavaScript | 0 | @@ -2904,159 +2904,8 @@
n())
-%0Aif (process.argv.indexOf('--no-uglify') %3C 0) %7B%0A config.plugins.push(new webpack.optimize.UglifyJsPlugin(%7B%0A compressor: %7B warnings: false %7D%0A %7D))%0A%7D
%0A%0Aex
|
0797d873cb66c93bcdd2c1da943d8284792560f7 | Fix silly mistake | deploy/deploy_to_s3.js | deploy/deploy_to_s3.js | // node deplpy_to_s3.js [localDirName] [S3DirName]
// node deplpy_to_s3.js ../dist production
var AWS = require('aws-sdk');
var fs = require('fs');
var path = require('path');
var Q = require('q');
var chalk = require('chalk');
AWS.config.region = 'eu-west-1';
var localDirPath = process.argv[2];
var remoteDirName = ... | JavaScript | 0.999999 | @@ -27,27 +27,25 @@
ocal
-DirName%5D %5BS3DirName
+ dir%5D %5Bremote dir
%5D%0A//
@@ -476,18 +476,22 @@
is: ',
-S3
+remote
DirName)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.