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 |
|---|---|---|---|---|---|---|---|
eddb3f0668398a6a9cdd90fa111f5ea569b395de | Fix indentation | src/test/run-make/wasm-export-all-symbols/verify.js | src/test/run-make/wasm-export-all-symbols/verify.js | const fs = require('fs');
const process = require('process');
const assert = require('assert');
const buffer = fs.readFileSync(process.argv[2]);
let m = new WebAssembly.Module(buffer);
let list = WebAssembly.Module.exports(m);
console.log('exports', list);
const my_exports = {};
let nexports_fn = 0;
let nexports_glob... | JavaScript | 0.017244 | @@ -469,18 +469,16 @@
1;%0A %7D%0A
-
my_exp
|
a79618057cc326c47fde0807084fe11961896a02 | Update send.js | sms/send.js | sms/send.js | require('dotenv').config({path: __dirname + '/../.env'})
const NEXMO_API_KEY = process.env.NEXMO_API_KEY
const NEXMO_API_SECRET = process.env.NEXMO_API_SECRET
const NEXMO_FROM_NUMBER = process.env.NEXMO_FROM_NUMBER
// By default use the command line argument. Otherwise use the environment variable.
const NEXMO_TO_NUM... | JavaScript | 0.000001 | @@ -163,205 +163,32 @@
nst
-NEXMO_FROM_NUMBER = process.env.NEXMO_FROM_NUMBER%0A%0A// By default use the command line argument. Otherwise use the environment variable.%0Aconst NEXMO_TO_NUMBER = process.argv%5B2%5D %7C%7C process.env.NEXMO_
+TO_NUMBER = process.env.
TO_N
@@ -328,25 +328,18 @@
m =
-NEXMO_FROM_NUMBER... |
ab1bc0d2bf9bb3f6d7e0b05818bde10380870777 | remove sample data from utils | assets/static/js/boundary/utils.js | assets/static/js/boundary/utils.js | 'use strict';
(function() {
var t = klp.boundaryUtils = {};
var sampleProgramData = {
"count": 4,
"next": null,
"previous": null,
"features": [{
"id": 5,
"name": "Anganwadi",
"academicyear_name": "2009-2010",
"partn... | JavaScript | 0.000002 | @@ -60,1215 +60,12 @@
%7B%7D;
-%0A%0A
-var sampleProgramData = %7B%0A %22count%22: 4,%0A %22next%22: null,%0A %22previous%22: null,%0A %22features%22: %5B%7B%0A %22id%22: 5,%0A %22name%22: %22Anganwadi%22,%0A %22academicyear_name%22: %2220... |
ccfaa70dd9e7c80e6b5dab493ed6a765fdd90f9b | rename a couple of vars | make.js | make.js | /**!
* make.js, script to build the website for MPC-HC
* Released under the terms of MIT license
*
* https://github.com/mpc-hc/website
*
* Copyright (C) 2013 MPC-HC Team
*/
(function () {
'use strict';
require('shelljs/make');
var fs = require('fs'),
cleanCSS = require('clean-css'),
... | JavaScript | 0.000042 | @@ -2342,18 +2342,19 @@
var
-ou
+des
tCss = B
@@ -2547,18 +2547,19 @@
ileSync(
-ou
+des
tCss, mi
@@ -2934,18 +2934,19 @@
var
-ou
+des
tJs = BU
@@ -3241,18 +3241,19 @@
ileSync(
-ou
+des
tJs, min
|
719f5e35f4af0c48130c2de3b8d6daf6d6eddfd6 | Update window.log | app/app.js | app/app.js | 'use strict';
var _ = require('lodash')
var Promise = require('bluebird')
var db = require('./helpers/db')
var React = require('react')
var Fluxxor = require('fluxxor')
var documentReady = require('./helpers/document-ready')
var Gobbldygook = require('./models/gobbldygookApp')
var loadData = require('./helpers/loadDa... | JavaScript | 0.000001 | @@ -694,16 +694,44 @@
React%0A%0A
+// Handy debugging function%0A
window.l
@@ -763,16 +763,51 @@
ole.log(
+_.isUndefined(thing) ? arguments :
thing)%7D%0A
|
175f4e3747ac04d08a49d5e8dd11738fb6dd3524 | fix activityLike issue | app/app.js | app/app.js | import React from 'react';
import ReactDOM from 'react-dom';
import Activity from './activity/activity';
import Post from './post/post';
import Settings from './settings/settings';
import Chat from './chat/chat'
import Notification from './notification/notification';
import Search from './search/search';
import Profile... | JavaScript | 0 | @@ -1496,16 +1496,25 @@
e user=%7B
+parseInt(
this.pro
@@ -1527,16 +1527,17 @@
ams.user
+)
%7D /%3E%0A
|
00fa31c4ac36724faf938c30d19bc8b26aec9bbd | move instance method above static ones | duration.js | duration.js | var Duration = (function () {
var millisecond = 1,
second = 1000 * millisecond,
minute = 60 * second,
hour = 60 * minute,
day = 24 * hour,
week = 7 * day;
var unitMap = {
"ms" : millisecond,
"s" : second,
... | JavaScript | 0 | @@ -4181,32 +4181,213 @@
sign);%0A %7D;%0A%0A
+ Duration.prototype.roundTo = function (duration) %7B%0A var ms = new Duration(duration).valueOf();%0A this._milliseconds = ms * Math.round(this._milliseconds / ms);%0A %7D;%0A%0A
Duration.pro
@@ -4864,189 +4864,8 @@
%7D;%0A%0A
- Duration.prot... |
86966cd89caa2ed79f69683a54c28fff0d01e6bd | Update app.js | app/app.js | app/app.js | 'use strict';
// Declare app level module which depends on views, and components
var api = angular.module('myApp', ['ngResource']);
api.config(['$resourceProvider', function($resourceProvider) {
// Don't strip trailing slashes from calculated URLs
$resourceProvider.defaults.stripTrailingSlashes = false;
}]);
// ... | JavaScript | 0.000001 | @@ -467,17 +467,16 @@
s/:id/',
-
%0A %7Bid
@@ -597,16 +597,17 @@
ourceObj
+;
%0A %7D%0A%5D);
@@ -989,16 +989,17 @@
%7D)
+;
%0A %7D;%0A
@@ -1328,16 +1328,17 @@
length)
+;
%0A
@@ -1410,16 +1410,17 @@
%7D)
+;
%0A%0A %7D;
@@ -1695,39 +1695,32 @@
econds;%0A
-return
$scope.... |
1eb92c3e0fa21fdd1d6bf32112c4dfffa9145d39 | Remove old cache | app/app.js | app/app.js | 'use strict';
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ngRoute',
'myApp.view1',
'myApp.view2',
'myApp.version',
'OfflinkJs',
'ServiceWorkerModule'
]).
config(['$routeProvider', function ($routeProvider) {
$routeProvider.otherwise(... | JavaScript | 0.000005 | @@ -194,35 +194,8 @@
kJs'
-,%0A 'ServiceWorkerModule'
%0A%5D).
|
71351ee5b820e74ca099177c6dbf0b3ab1f5eeca | disable devtools debug | electron.js | electron.js | var path = require('path')
var menubar = require('menubar')
var BrowserWindow = require('browser-window')
var ipc = require('ipc')
var mb = menubar({
width: 700,
height: 300,
index: 'file://' + path.join(__dirname, 'app.html'),
icon: 'file://' + path.join(__dirname, 'img', 'Icon.png')
})
mb.on('ready', functi... | JavaScript | 0.000001 | @@ -906,24 +906,27 @@
ion () %7B%0A
+ //
win.webCont
@@ -949,13 +949,8 @@
s()%0A
- %0A
|
ffc36c51a221bd2f9cd02cb572a8d0f84654b412 | fix text attribute for nested nodes | ellipsed.js | ellipsed.js | function ellipsed(selector, rows) {
/* Copyright (C) 2017 Nicola Zambello
*
* https://github.com/nzambello/ellipsed
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as publishe... | JavaScript | 0.000004 | @@ -1121,24 +1121,26 @@
xt = el.
-innerTex
+textConten
t.split(
@@ -1209,32 +1209,34 @@
;%0A%0A el.
-innerTex
+textConten
t = '';%0A
@@ -1344,24 +1344,26 @@
if (el.
-innerTex
+textConten
t.length
@@ -1379,39 +1379,43 @@
el.
-innerText = el.innerTex
+textContent = el.textConten
t.concat
@@ -1491,3... |
040f1e5c000b0df147960dd71a9f1960110aae89 | Add check for console.warn call | src/ggrc/assets/javascripts/models/tests/join_models_spec.js | src/ggrc/assets/javascripts/models/tests/join_models_spec.js | /*!
Copyright (C) 2016 Google Inc.
Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
*/
describe('CMS.Models.Relationship getRelationshipBetweenInstances() method',
function () {
var method;
var instance1;
var instance2;
beforeAll(function () {
method = CMS.Models.... | JavaScript | 0 | @@ -485,32 +485,62 @@
d%7D;%0A %7D);%0A
+ spyOn(console, 'warn');%0A
%7D);%0A%0A it(
@@ -3355,16 +3355,71 @@
ual(2);%0A
+ expect(console.warn.calls.count()).toEqual(1);%0A
|
febe4ecf225d80d4308fe57b15eed92f13a4a90b | Update default collections | configure.js | configure.js | var config = require('./config')
var client = require('mongodb').MongoClient
var collections = [
{
name: 'categories',
exists: false,
data: [{
name: 'chips'
},{
name: 'glass'
},{
name: 'godis'
},{
name: 'hudvård'
... | JavaScript | 0.000001 | @@ -1491,32 +1491,94 @@
se%0A %7D,%0A %7B%0A
+ name: 'revisions',%0A exists: false%0A %7D,%0A %7B%0A
name: 's
@@ -5878,8 +5878,9 @@
false;%0A%7D
+%0A
|
0cf8d581428b67c290873815ae20fe195fca0aaf | Fix whitespace | modules/ringo/jsgi.js | modules/ringo/jsgi.js |
include('ringo/webapp/util');
include('io');
include("binary");
export('handleRequest');
var log = require('ringo/logging').getLogger(module.id);
module.shared = true;
/**
* Handle a JSGI request.
* @param moduleId the module id. Ignored if functionObj is already a function.
* @param functionObj the function, eit... | JavaScript | 0.999999 | @@ -2303,20 +2303,16 @@
quest'%5D;
-
%0A var
@@ -4309,20 +4309,16 @@
false;%0A
-
%0A var
|
b30c2f2876a8ad47f3b82452d82e35f05473b4f6 | add extend class | menu.js | menu.js | //show and hide the stuff we don't wan initially
$(".start-menu").hide();
$(".image-dialog").hide();
function showstartmenu() {
$(".start-menu").fadeIn(200);
}
function hidestartmenu() {
$(".start-menu").hide();
}
$(".start-button").hover(showstartmenu);
$(document.body).click(hidestartmenu);
//bind functions u... | JavaScript | 0.000001 | @@ -662,16 +662,29 @@
class='
+extend-block
map-exte
@@ -1305,28 +1305,29 @@
an use a regular click event
+%0A
|
e3853f3a2ffe671c2c515ba52167a6987daf74aa | Add Safari to airmode focusout workaround | src/js/base/module/AirPopover.js | src/js/base/module/AirPopover.js | import $ from 'jquery';
import env from '../core/env';
import func from '../core/func';
import lists from '../core/lists';
import dom from '../core/dom';
const AIR_MODE_POPOVER_X_OFFSET = 20;
export default class AirPopover {
constructor(context) {
this.context = context;
this.ui = $.summernote.ui;
this... | JavaScript | 0 | @@ -649,13 +649,18 @@
efox
+/Safari
do
-es
n't
@@ -744,16 +744,23 @@
ut in FF
+/Safari
.%0A
@@ -773,16 +773,32 @@
env.isFF
+ %7C%7C env.isSafari
) %7B%0A
|
502aa6949fa4e54fe1c4601e550e8d1df1baafab | Remove reference to tripleo.sh on Nodes page | src/js/components/nodes/Nodes.js | src/js/components/nodes/Nodes.js | import { connect } from 'react-redux';
import { Link } from 'react-router';
import React from 'react';
import { Map } from 'immutable';
import ImmutablePropTypes from 'react-immutable-proptypes';
import NavTab from '../ui/NavTab';
import NodesActions from '../../actions/NodesActions';
import { getRegisteredNodes,
... | JavaScript | 0 | @@ -2320,560 +2320,8 @@
div%3E
-%0A%0A %3Cdiv className=%22panel panel-info%22%3E%0A %3Cdiv className=%22panel-heading%22%3E%0A %3Ch3 className=%22panel-title%22%3E%0A %3Cspan className=%22pficon pficon-help%22%3E%3C/span%3E Nodes%0A %3C/h3%3E%0A ... |
b1185c85e9dcfa51af1c84c4df8ada9f11755987 | Disable MapChart zoom in Internet Explorer version lte 8 #511 | src/js/components/series/zoom.js | src/js/components/series/zoom.js | /**
* @fileoverview Zoom component.
* @author NHN Ent.
* FE Development Lab <dl_javascript@nhnent.com>
*/
'use strict';
var seriesTemplate = require('./seriesTemplate');
var chartConst = require('../../const');
var dom = require('../../helpers/domHandler');
var renderUtil = require('../../helpers/renderUt... | JavaScript | 0 | @@ -125,16 +125,105 @@
strict';
+%0Avar IS_MSIE_VERSION_LTE_THAN_8 = tui.util.browser.msie && tui.util.browser.version %3C= 8;
%0A%0Avar se
@@ -1215,15 +1215,11 @@
YPE_
-RAPHAEL
+DOM
;%0A%0A
@@ -1630,16 +1630,83 @@
var
+container;%0A%0A if (!IS_MSIE_VERSION_LTE_THAN_8) %7B%0A
containe
@@ ... |
30cec784c4139c5a761fbb5824b7deeb5eb345f6 | Include about:blank and :newtab. | src/js/google-logo-fonts.user.js | src/js/google-logo-fonts.user.js | // ==UserScript==
// @name Google Logo Fonts
// @namespace https://github.com/AndersDJohnson/
// @version 1.1.3
// @downloadURL https://github.com/AndersDJohnson/google-logo-fonts.user.js/raw/master/src/js/google-logo-fonts.user.js
// @updateURL https://github.com/AndersDJohnson/google-logo-fonts.us... | JavaScript | 0 | @@ -559,16 +559,75 @@
e.com/*%0A
+// @include about:blank%0A// @include about:newtab%0A
// @requ
|
48eaf3e81dedff6871c85a33f286d73bce52ab17 | Use localized description as title/tooltip https://github.com/kidoju/Kidoju-Widgets/issues/15 | src/js/kidoju.widgets.toolbox.js | src/js/kidoju.widgets.toolbox.js | /**
* Copyright (c) 2013-2015 Memba Sarl. All rights reserved.
* Sources at https://github.com/Memba
*/
/* jshint browser: true, jquery: true */
/* globals define: false */
(function (f, define) {
'use strict';
define([
'./window.assert',
'./window.logger',
'./vendor/kendo/kendo.bin... | JavaScript | 0.000001 | @@ -5050,18 +5050,27 @@
), tool.
-i
d
+escription
))%0A
|
04808df8da02af4b4584f09309c69cf70c89d40c | Change wording on about page | src/About.js | src/About.js | /*---------------------------------------------------------------------------*\
| About.js |
| |
| Copyright © 2017, Rajiv Bakulesh Shah, original author. |
| ... | JavaScript | 0 | @@ -2295,18 +2295,8 @@
all%3E
-, Twitter,
or
@@ -2400,16 +2400,110 @@
d me on
+reddit%0A (%3Ca href='https://www.reddit.com/user/Brainix'%3Eu/Brainix%3C/a%3E),%0A
Twitter%0A
|
7c1beed98cc5d4d1833b6ab8a3bfe90e1c53aa1a | Update Array prototype to include override for Array.every() | src/Array.js | src/Array.js | // overriding Array.map
Array.prototype.map = function(f) {
if(typeof f !== 'function') {
throw new Error('Arguments passed in to .map() should be a function');
}
var len = this.length,
index,
results = [],
currVal;
for(index = 0; index < len; index++) {
currVal = f.call(this,this[index]);
if(currVa... | JavaScript | 0 | @@ -2385,24 +2385,642 @@
cedArray);%0A%0A
+/*************** Overriding Array.every() ********************/%0A%0AArray.prototype.every = function(fn) %7B%0A%0A%09if(!fn %7C%7C typeof(fn) !== 'function') %7B%0A%09%09throw new Error('arguments passed in .every() must be function');%0A%09%09return;%0A%09%7D%0A%0A%09var va... |
d07ce1ebf6d3c78b7e002df9f8a380b5826848bc | make app global | scripts/app.js | scripts/app.js | var audioCtx = new(window.AudioContext || window.webkitAudioContext)();
window.onload = function() {
var app = new App();
app.loadFile();
};
var App = function() {
this.audioHandler = null;
this.visualiser = null;
this.analyser = audioCtx.createAnalyser();
this.analyser.connect(audioCtx.desti... | JavaScript | 0.000003 | @@ -64,16 +64,25 @@
text)();
+%0Avar app;
%0A%0Awindow
@@ -108,20 +108,16 @@
) %7B%0A
-var
app = ne
|
4a5aaacd483f4af18ecedbde624a72b334df639a | fix start stop misfire | scripts/app.js | scripts/app.js | define('app', [
'lodash.min',
'jquery',
'play-note',
'tempo',
'buffers',
'dispatcher',
'settings'
], function (
_,
$,
play,
tempo,
buffers,
dispatcher,
settings
) {
tempo.set(120);
var isLocked = true;
var isPlaying = false;
var tracks = [];
var currentTrack = nul... | JavaScript | 0.000001 | @@ -1245,32 +1245,56 @@
Track (event) %7B%0A
+ if (!isPlaying) %7B%0A
dispatcher.p
@@ -1318,32 +1318,34 @@
tion () %7B%0A
+
isPlaying = true
@@ -1344,32 +1344,34 @@
g = true;%0A
+
+
console.profile(
@@ -1378,36 +1378,44 @@
'machine');%0A
+
%7D);%0A
+ %7D%0A
event.preven
@@... |
ddf8a05bb30a5841d42ff0014f28c8c60ed1b2f0 | refactor events | make-editable.js | make-editable.js | var extend = require('utils').extend;
// is actually not es6...
'use strict';
// mixin to add editable properties to a visualiser component
function makeEditable(layer) {
// a visualiser to decorate
var proto = layer.prototype;
// keep old methods to override
var defaultDraw = proto.draw;
var defaultLoad =... | JavaScript | 0.000183 | @@ -389,17 +389,16 @@
%7B%0A
-
// defau
@@ -451,38 +451,8 @@
s);%0A
- var baseId = base.id();%0A
@@ -483,19 +483,16 @@
ng%0A
- //
base.on
@@ -496,15 +496,9 @@
.on(
-id + ':
+'
mous
@@ -547,27 +547,17 @@
base.on(
-baseId + ':
+'
drag', t
@@ -590,35 +590,25 @@
base.on(
-baseId + ':
+... |
b88501d78983efb1852bfc660fdc2f19f994f6c0 | Update mousehandling on map. | scripts/map.js | scripts/map.js | define(["jquery", "gmaps", "events"], function($, gmaps, events) {
function Map(selector, mapOptions) {
var map = new gmaps.Map($(selector)[0], mapOptions);
var overlays = [];
var currentTrackPoint = new gmaps.Marker({
map: map,
zIndex: gmaps.Marker.MAX_ZINDEX,
icon: "http://labs.googl... | JavaScript | 0 | @@ -281,16 +281,20 @@
X_ZINDEX
+ - 1
,%0A
@@ -699,16 +699,63 @@
ition);%0A
+ if (currentTrackPoint.map == null) %7B%0A
@@ -785,16 +785,26 @@
p(map);%0A
+ %7D%0A
%7D%0A
@@ -2446,16 +2446,34 @@
th: path
+, clickable: false
%7D);%0A
@@ -2498,32 +2498,40 @@
= drawPolyline(%... |
96f02212eecb493a1cb582b971b911b0d1a841d7 | fix tableapiutils | src/main/resources/assets/javascripts/utils/TableApiUtils.js | src/main/resources/assets/javascripts/utils/TableApiUtils.js | // Fetch the column data
function fetchColumData(table) {
return $.ajax({
type: 'GET',
url: table.url + '/columns'
});
}
function fetchPreviewData(table, partition) {
partition = partition || {};
return $.ajax({
type: 'GET',
url: table.url + '/preview',
data: {
partitionName: partiti... | JavaScript | 0.000004 | @@ -909,16 +909,17 @@
%7D);%0A %7D
+,
%0A%0A getT
|
66d1303d79af510964eb8c6a75145e5c33e02150 | Remove setBehaviour click conditional to allow deselecting an element when clicking elsewhere. | src/Focus.js | src/Focus.js | (function (win, doc, ns, _undefined_) {
var Focus, isNative;
if (ns === _undefined_) {
ns = win;
}
/**
* Check if function is native code
* @return {Boolean}
*/
isNative = function(fpCallback)
{
return fpCallback.toString().indexOf("[native code]") !== -1;
}... | JavaScript | 0 | @@ -1202,17 +1202,16 @@
* @mem
-m
ber Focu
@@ -3406,108 +3406,8 @@
t);%0A
- if(oActive === null)%0A %7B%0A return;%0A %7D
%0A
|
b4f2d887f6c0ba473d367a2681dd9e3b697a74aa | fix specs | src/Input.js | src/Input.js | import React from 'react';
import cx from 'classnames';
import idgen from './idgen';
import constants from './constants';
class Input extends React.Component {
constructor(props) {
super(props);
this.state = {value: this.props.defaultValue};
this._onChange = this._onChange.bind(this);
}
componentDid... | JavaScript | 0.000001 | @@ -381,32 +381,60 @@
s.browserDefault
+ && typeof $ !== 'undefined'
) %7B%0A $(this
|
24e271be0d352050d2951b51b13abfbd4628d0af | use current protocol for images | constants.js | constants.js | var fs = require('fs');
var cfs = fs.readdirSync('./json');
var constants = {};
cfs.forEach(function(f) {
constants[f.split(".")[0]] = require('./json/' + f);
});
var heroes = constants.heroes.result.heroes;
//key heroes by id
constants.heroes = {};
//key heroes by name
constants.hero_names = {};
heroes.forEach(fun... | JavaScript | 0.000001 | @@ -329,37 +329,32 @@
%7B%0A h.img = %22
-http:
//cdn.dota2.com/
@@ -953,37 +953,32 @@
ems%5Bkey%5D.img = %22
-http:
//cdn.dota2.com/
@@ -1193,13 +1193,8 @@
= %22
-http:
//cd
|
78e4e010eb65f12b76f282f88c1da6bb980ca17d | Remove extra newlines in tests | test/rules/disallow-spaces-inside-array-brackets.js | test/rules/disallow-spaces-inside-array-brackets.js | var Checker = require('../../lib/checker');
var assert = require('assert');
describe('rules/disallow-spaces-inside-array-brackets', function() {
var checker;
beforeEach(function() {
checker = new Checker();
checker.registerDefaultRules();
});
describe('true value', function() {
... | JavaScript | 0.000001 | @@ -860,33 +860,32 @@
%7D);%0A
-%0A
it('
@@ -1040,33 +1040,32 @@
%7D);%0A
-%0A
it('
@@ -1217,33 +1217,32 @@
%7D);%0A
-%0A
it('
@@ -1690,33 +1690,32 @@
%7D);%0A
-%0A
it('
@@ -1928,33 +1928,32 @@
%7D);%0A
... |
1c6c010a94cf3bfe98d5dc93c23bd966c6ab16a6 | Fix onClick of tabs entry | src/Tabs.js | src/Tabs.js | const React = require('react');
const classNames = require('classnames');
/**
* <Tabs>
* <Tabs.Nav>
* <Tabs.Item active>Hello</Tabs.Item>
* <Tabs.Item>World</Tabs.Item>
* </Tabs.Nav>
* <Tabs.Content>
*
* </Tabs.Content>
* </Tabs>
*/
const Tabs = React.createClass({
propTypes: {
... | JavaScript | 0 | @@ -1443,16 +1443,39 @@
f=%7Bhref%7D
+ onClick=%7Bthis.onClick%7D
%3E%7Bchildr
|
f56d468f94c62603f1c5411114aff61346cb3c4d | Improve event collection unit tests | test/unit/apps/events/middleware/collection.test.js | test/unit/apps/events/middleware/collection.test.js | const { assign } = require('lodash')
const nock = require('nock')
const config = require('~/config')
const eventCollectionData = require('~/test/unit/data/events/collection.json')
describe('Event collection middleware', () => {
beforeEach(() => {
nock(config.apiRoot)
.post(`/v3/search/event`)
.reply(... | JavaScript | 0.000001 | @@ -34,72 +34,8 @@
h')%0A
-const nock = require('nock')%0Aconst config = require('~/config')%0A
cons
@@ -183,105 +183,8 @@
%3E %7B%0A
- nock(config.apiRoot)%0A .post(%60/v3/search/event%60)%0A .reply(200, eventCollectionData)%0A%0A
@@ -372,16 +372,58 @@
obalRes)
+%0A this.searchStub = this.san... |
4259fd1b03e1a0093f0cbe38f64aa9f982697f48 | fix some fuckery | src/lib/modules/ConfigFactory.js | src/lib/modules/ConfigFactory.js | /**
* @file Configuration Factory for Clara
* @author Capuccino
*/
const fs = require('fs');
const mm = require('mime-types');
const YAML = require('yamljs');
/**
* Abstraction class for managing loading config, falling back to environment args if the file doesn't exist.
*/
class ConfigFactory {
/**
* ... | JavaScript | 0.000014 | @@ -2019,30 +2019,16 @@
.yaml'))
- %7B%0A
return
@@ -2038,16 +2038,32 @@
L.parse(
+fs.readFileSync(
this.fil
@@ -2064,25 +2064,27 @@
is.file)
-;
+);
%0A
%7D else
@@ -2067,34 +2067,32 @@
file)); %0A
- %7D
else if(this.fi
|
bdcc15d62751990cac02a5da9ac831cd53fe3e6d | include css in email rendering | src/lib/server/RequestHandler.js | src/lib/server/RequestHandler.js | /*global webpackIsomorphicTools*/
import path from "path";
import _SSRCaching from "electrode-react-ssr-caching";
import React from "react";
import LRU from "lru-cache";
import Oy from "oy-vey";
import { renderToString, renderToStaticMarkup } from "react-dom/server";
import { match, RouterContext } from "react-router";... | JavaScript | 0.000001 | @@ -5437,12 +5437,19 @@
l ?
-null
+headContent
: g
|
3eb1b91cce808a3d538c009699788cd7a32c93aa | Make DTDs work again in our pseudo-overlay code | sdk/windows.js | sdk/windows.js | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
Instances.register("XHR",
"@mozilla.org/xmlextras/xmlhttprequest;1",
... | JavaScript | 0 | @@ -6162,16 +6162,461 @@
+ src);%0A
+ // Elevate the request, so DTDs will work. Not a security issue since we%0A // always load from BASE_PATH, and that is our privileged chrome package.%0A // This is no different than regular overlays.%0A let sec = Cc%5B'@mozilla.org/scriptsecuritymanager;1'%5D.%0A ge... |
df8120a9a4d76111c109785e92dd87b2bd319a50 | Make window functions a bit more consistant | src/assets/scripts/overlay_load.js | src/assets/scripts/overlay_load.js | // JavaScript Document
// Scripts written by YOURNAME @ YOURCOMPANY
// open an overlay when the page finishes loading
window.onload = function() {
overlay_loader(window.location.hash.substring(1));
};
// open an overlay when the hash changes
window.onhashchange = function() {
overlay_loader(window.location.h... | JavaScript | 0.000002 | @@ -124,16 +124,32 @@
dow.
-on
+addEventListener(%22
load
- =
+%22,
fun
@@ -210,24 +210,25 @@
tring(1));%0A%7D
+)
;%0A%0A// open a
@@ -266,18 +266,34 @@
%0Awindow.
-on
+addEventListener(%22
hashchan
@@ -294,18 +294,18 @@
shchange
- =
+%22,
functio
@@ -365,17 +365,18 @@
ng(1));%0A
-
%7D
+)
;%0A%0A// fu
|
4d6cc885196ea8dcb96ffc9a3594842559720e63 | add ax5.util.cssNumber TEST | src/ax5core/test/test.core.misc.js | src/ax5core/test/test.core.misc.js | describe('ax5.util.param TEST', function() {
it('ax5.util.param({a: 1, b: \'123\'"2&\'}, "param") expect "a=1&b=123%27%222%26"', function() {
var actual = ax5.util.param({a: 1, b: '123\'"2&'}, 'param');
actual.should.equal('a=1&b=123%27%222%26');
});
it('ax5.util.param("a=1&b=12\'"32", "par... | JavaScript | 0.002484 | @@ -4001,20 +4001,684 @@
xpect);%0A %7D);%0A%7D);%0A
+%0Adescribe('ax5.util.cssNumber TEST', function() %7B%0A var testCases = %5B%0A %7B%0A args: '100px',%0A expect: '100px'%0A %7D,%0A %7B%0A args: 100,%0A expect: '100px'%0A %7D,%0A ... |
669bf85f86d632482e56fd1b5cec025f5a1bf7ca | Allow for all valid c++ identifiers | emulator.js | emulator.js | 'use strict';
/*
The following section defines the Constants.h file
*/
// PIN Constants
const HackH = 48;
const HackA = 26;
const HackC = 24;
const HackK = 46;
const MiddleA = 36;
const ColaC = 38;
const ColaO = 28;
const ColaL = 40;
const ColaA = 30;
const RedZero = 44;
const RedOne = 34;
const RedTwo = 50;
const... | JavaScript | 0.000016 | @@ -2853,24 +2853,26 @@
/int(%5Cs*
+_*
%5BA-Za-z%5D
*%5Cs*)=/g
@@ -2863,16 +2863,21 @@
%5BA-Za-z%5D
++_*%5Cd
*%5Cs*)=/g
@@ -2916,29 +2916,27 @@
nce of %22int
-const
+var
iable = n%22%0A
@@ -3002,21 +3002,19 @@
of %22int
-const
+var
iable%22%0A
@@ -3124,24 +3124,29 @@
(/void (
+%5Cs*_*
%5BA-Za-z%5D
*)/g,... |
18277db99e92db74c4e1440e6c1fc986de438b22 | Remove console.log statement. | website/src/app/project/samples/mc-project-samples-table.component.js | website/src/app/project/samples/mc-project-samples-table.component.js | angular.module('materialscommons').component('mcProjectSamplesTable', {
templateUrl: 'app/project/samples/mc-project-samples-table.html',
controller: MCProjectSamplesTableComponentController,
bindings: {
samples: '<',
filterBy: '='
}
});
/*@ngInject*/
function MCProjectSamplesTableCompo... | JavaScript | 0 | @@ -428,83 +428,8 @@
me%22;
-%0A console.log('MCProjectSamplesTableComponentController', ctrl.samples);
%0A%0A
|
dddc3682df4046324109255e532ab3b6449b9f7f | Update mysql-info.js | HomeServer/config/mysql-info.js | HomeServer/config/mysql-info.js | var mysql_info = {
host : 'localhost',
user : 'janush',
password : '',
database : 'homeserver',
recaptcha_url : 'https://www.google.com/recaptcha/api/siteverify',
recaptcha_secret : 'Your secret'
};
module.exports = mysql_info;
| JavaScript | 0.000001 | @@ -60,14 +60,18 @@
: '
-janush
+homeserver
',%0A
|
d38f249df47a2305c2bac5a56e0e1abba20b2ae7 | edit https://app.asana.com/0/60993780339150/70724604482007 | public_html/js/services/volunteer-service.js | public_html/js/services/volunteer-service.js | app.constant("VOLUNTEER_ENDPOINT", "api/volunteer/");
app.service("VolunteerService", function($http, VOLUNTEER_ENDPOINT) {
function getUrl() {
return(VOLUNTEER_ENDPOINT);
}
function getUrlForId(volId) {
return(getUrl() + volId);
}
function getUrlForEmail(volEmail) {
return(getUrl + volEmail);
}
functio... | JavaScript | 0 | @@ -285,24 +285,36 @@
urn(getUrl +
+ '?email=' +
volEmail);%0A
@@ -313,16 +313,16 @@
Email);%0A
-
%09%7D%0A%0A%09fun
@@ -371,24 +371,38 @@
urn(getUrl +
+ '?isAdmin=' +
volIsAdmin)
@@ -439,32 +439,32 @@
one(volPhone) %7B%0A
-
%09%09return(getUrl
@@ -464,16 +464,28 @@
getUrl +
+ '?phone=' +
volPhon
|
66a06c1b10b20d882ec5ab57f23842238d612713 | Exit 1 on failure in js helpers | helpers/javascript/bin/run.js | helpers/javascript/bin/run.js | const parser = require("../lib/parser");
const methodMap = {
parse: parser.parse
};
function output(obj) {
process.stdout.write(JSON.stringify(obj));
}
const input = [];
process.stdin.on("data", data => input.push(data));
process.stdin.on("end", () => {
const request = JSON.parse(input.join(""));
const metho... | JavaScript | 0 | @@ -428,14 +428,23 @@
-return
+process.exit(1)
;%0A
@@ -605,16 +605,39 @@
ssage);%0A
+ process.exit(1);%0A
%7D);%0A
|
dd5c9fc31bdecc7dd352c48e52d38c700f945123 | enforce params validations for projects | backend/config/param-validation.js | backend/config/param-validation.js | import Joi from 'joi';
export default {
createUser: {
body: {
firstName: Joi.string().required(),
lastName: Joi.string().required(),
email: Joi.string().required(),
password: Joi.string().required(),
holidays: Joi.number().required(),
... | JavaScript | 0 | @@ -586,32 +586,99 @@
ing().required()
+,%0A approvers: Joi.array().items(Joi.string()).required()
%0A %7D%0A %7D
|
4f574a6f513fdb67d06c6be5504a68397cf09a99 | Allow sync methods in Markdown JavaScript code blocks | etc/eslint/.eslintrc.markdown.js | etc/eslint/.eslintrc.markdown.js | 'use strict';
// MODULES //
var copy = require( '@stdlib/utils/copy' );
var defaults = require( './.eslintrc.js' );
// MAIN //
/**
* ESLint configuration.
*
* @namespace eslint
*/
var eslint = copy( defaults );
/**
* Allow variables to be declared as needed.
*
* @private
*/
eslint.rules[ 'vars-on-top' ] = 'off';
... | JavaScript | 0.000001 | @@ -306,32 +306,123 @@
op' %5D = 'off';%0A%0A
+/**%0A* Allow using synchronous methods.%0A*%0A* @private%0A*/%0Aeslint.rules%5B 'no-sync' %5D = 'off';%0A%0A
/**%0A* Allow usin
|
cbcd0797ed0fd2120ca09810215d6517c2b7f147 | Revert "Enabled browser tests in the CI environment" | npm/test.js | npm/test.js | #!/usr/bin/env node
/* eslint-env node, es6 */
require('shelljs/global');
var async = require('async'),
colors = require('colors/safe');
async.series([
require('./test-lint'),
require('./test-system'),
require('./cache'),
require('./test-unit'),
require('./test-integration'),
require('./te... | JavaScript | 0 | @@ -295,24 +295,111 @@
ation'),%0A
+ // run the browser tests locally and not on CI%0A process.env.CI ? async.constant() :
require('./
|
78610c6a09f583dcf31d86c45e433bd32a7fafb2 | add exam added | ExamSystem.FrontEnd/ExamSystem.WebClient/Scripts/Modules/controller.js | ExamSystem.FrontEnd/ExamSystem.WebClient/Scripts/Modules/controller.js | /// <reference path="data-persister.js" />
define(["DataPersister", "htmlRenderer", "jquery"], function (DataPersister, htmlRenderer) {
var controller = (function () {
var persister = DataPersister.getDataPersister('http://localhost:1945/');
var $main = $('#main');
function attachEvents() ... | JavaScript | 0 | @@ -897,61 +897,8 @@
nt);
-%0A $main.on('click', %22#add-exam%22, addExam);
%0A%0A
@@ -4176,32 +4176,43 @@
art-time').val()
+.toString()
;%0A va
@@ -4232,32 +4232,43 @@
end-time').val()
+.toString()
;%0A pe
@@ -4269,126 +4269,522 @@
-persister.userPersister.addExam($name, ... |
22a399a5b5c759962324a3fd48b02175157a0310 | Update skeletontracing_accessor.js | app/assets/javascripts/oxalis/model/accessors/skeletontracing_accessor.js | app/assets/javascripts/oxalis/model/accessors/skeletontracing_accessor.js | // @flow
import Maybe from "data.maybe";
import _ from "lodash";
import type { OxalisState, SkeletonTracingType, NodeType, TreeType, TreeMapType } from "oxalis/store";
export function getActiveNode(tracing: SkeletonTracingType) {
const { activeTreeId, activeNodeId } = tracing;
if (activeTreeId != null && activeNod... | JavaScript | 0 | @@ -75,21 +75,8 @@
pe %7B
- OxalisState,
Ske
|
a51b53f2a40dfffa74d4d87f8c4adeea12f19c79 | add a new font-family for the menu links | src/components/MenuLinks/styled.js | src/components/MenuLinks/styled.js | import styled from 'styled-components'
import { Link } from 'gatsby'
export const MenuLinksWrapper = styled.nav``
export const MenuLinksList = styled.ul`
font-size: 1.2rem;
font-weight: 300;
`
export const MenuLinksItem = styled.li`
padding: 0.5rem 0;
.active {
color: var(--highlight);
}
`
export con... | JavaScript | 0.000001 | @@ -346,16 +346,72 @@
(Link)%60%0A
+ font-family: 'Inter', sans-serif;%0A font-weight: 500;%0A
color:
|
e51bf55ea264742ef472dbd6f9b70e979bc30a0c | change button but tickets label | src/components/BuyTickets.js | src/components/BuyTickets.js | import React, { PureComponent } from 'react';
import { css } from 'glamor';
import Globals from '../utils/Globals';
import Text from './Text';
const styles = {
container: css({
alignSelf: 'flex-end',
background: '#f0f0f0',
width: '100vw',
display: 'flex',
'@media(max-width: 720px)': {
alig... | JavaScript | 0.000001 | @@ -1326,28 +1326,16 @@
OTE
-- A PARTIR DE AGOSTO
+R$250,00
%3C/b%3E
|
d02b3e5a839a1fb72e6d38d278ce7889936f4d3a | Add TreeWidget to the concatenated JavaScript output. | Implementation/WebTier/WebContent/JavaScript/Source/ProcessPuzzleUI.js | Implementation/WebTier/WebContent/JavaScript/Source/ProcessPuzzleUI.js | //= require_directory ./AbstractDocument
//= require_directory ./BrowserWidget
//= require_directory ./ComponentStateManager
//= require_directory ./Desktop
//= require_directory ./DiagramWidget
//= require_directory ./DocumentEditor
//= require_directory ./EventWidget
//= require_directory ./FundamentalTypes
/... | JavaScript | 0 | @@ -956,32 +956,68 @@
/ToolBarWidget%0D%0A
+//= require_directory ./TreeWidget%0D%0A
//= require_dire
|
6139a375c6e4f5adf16fcd4702a20b17edbd4e6d | Add once helper | src/components/app/utils/helper.js | src/components/app/utils/helper.js | ( function( window, define, require, undefined ) {
'use strict';
define( [], function() {
return {
/**
* The extend helper
*
* This helper extends an existing object with new properties or override
* properties specified.
*
... | JavaScript | 0.000001 | @@ -885,16 +885,755 @@
Object;%0A
+ %7D,%0A%0A /**%0A * The once helper%0A *%0A * This helper creates a function, which can be called just once%0A *%0A * @param %7BFunction%7D fn The function to be wrapped%0A * @param... |
0d1995298e8024621e23dd5fec33a95ef4cdb021 | remove liquid fire from blueprint | blueprints/ember-calendar/index.js | blueprints/ember-calendar/index.js | /* eslint-env node*/
'use strict';
module.exports = {
normalizeEntityName: function() {},
afterInstall: function() {
var self = this;
return self.addAddonsToProject({
packages: [{ name: 'ember-moment', target: '7.3.0' }]
}).then(function() {
return self.addPackagesToProject([
{ na... | JavaScript | 0.000001 | @@ -411,59 +411,8 @@
0.0'
- %7D,%0A %7B name: 'liquid-fire', target: '0.27.0'
%7D%0A
|
7981cd33eed2bc2167f30f84b30a7a89addfe305 | Fix the coordinate lookup for TextTools | src/components/editor/TextTools.js | src/components/editor/TextTools.js | import React, { Component, PropTypes } from 'react'
import classNames from 'classnames'
import { LinkIcon } from './EditorIcons'
import { textToolsPath } from '../../networking/api'
function prefixLink(text) {
const linkPrefix = /((ftp|http|https):\/\/.)|mailto(?=:[-.\w]+@)/
if (!linkPrefix.test(text)) return `htt... | JavaScript | 0.000007 | @@ -3233,20 +3233,27 @@
dinates.
+get('
left
+')
, top: c
@@ -3263,19 +3263,26 @@
dinates.
+get('
top
+')
- 40 %7D
|
091c1835a0ff6ef86b4ed4a72b8a5b54fc6e2db4 | Update index.js | blueprints/ember-debonair/index.js | blueprints/ember-debonair/index.js | module.exports = {
normalizeEntityName: function() {},
afterInstall: function() {
return this.addPackageToProject('eslint-plugin-ship-shape')
.then(() => {
return this.addAddonsToProject({
packages: [
{
name:'ember-cli-eslint',
target:'3.0.0'
}
... | JavaScript | 0.000002 | @@ -106,16 +106,17 @@
dPackage
+s
ToProjec
@@ -117,16 +117,59 @@
Project(
+%5B%0A 'codeclimate-test-reporter',%0A
'eslint-
@@ -186,16 +186,24 @@
p-shape'
+%0A %5D
)%0A .t
@@ -287,27 +287,8 @@
-%7B%0A name:
'emb
@@ -294,21 +294,22 @@
ber-cli-
-eslin
+blanke
t',%0A
@@ -318... |
9e6850d64911fdfa266534752e65286970f23c7c | Fix disabled property in tab context menu (#7480) | src/components/Editor/Tab.js | src/components/Editor/Tab.js | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
// @flow
import React, { PureComponent } from "react";
import { connect } from "react-redux";
import { showMen... | JavaScript | 0 | @@ -2384,28 +2384,33 @@
ed:
-() =%3E tabCount
+otherTabURLs.length
===
-1
+0
%0A
@@ -2680,22 +2680,16 @@
isabled:
- () =%3E
%0A
|
3aa37450a07a0d7b7df8d966ce4fdbe4382085de | Improve error message for text nodes in View | src/components/View/index.js | src/components/View/index.js | /**
* Copyright (c) 2015-present, Nicolas Gallagher.
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* @providesModule View
* @flow
*/
import applyLayout from '../../modules/applyLayout';
import applyNativeMethods from '../../modules/applyNativeMethods';
import { bool } from 'prop-types';
... | JavaScript | 0.000002 | @@ -1355,16 +1355,27 @@
variant(
+%0A
typeof i
@@ -1391,18 +1391,59 @@
string',
+%0A %60Unexpected text node: $%7Bitem%7D.
-'
A text n
@@ -1475,17 +1475,27 @@
a %3CView%3E
-'
+.%60%0A
);%0A
|
9bd70cae1d1a1ef8bd0640c1f1315ec961e6adde | Disable caching from development mode web server | scripts/server.js | scripts/server.js | // production webserver
// August 2016 Benjamin Foote
//
/* supporting the Docker infrastructure
* http://checkdesk-api.qa.checkdesk.org/api/me
*
*/
var express = require('express'),
serveStatic = require('serve-static'),
app = express();
var port = process.env.SERVER_PORT || 8000;
// standard headers
a... | JavaScript | 0 | @@ -1,157 +1,26 @@
//
-production webserver%0A// August 2016 Benjamin Foote%0A//%0A/* supporting the Docker infrastructure%0A * http://checkdesk-api.qa.checkdesk.org/api/me%0A *%0A */
+Check app webserver
%0A%0Ava
@@ -890,16 +890,66 @@
172256%0A%0A
+ if (process.env.NODE_ENV === 'production') %7B%0A
res.h... |
827bf1b10d8cd7977f1269443ee9cc276eaf0c77 | Replaces state with ternary | src/components/dev/DevHud.js | src/components/dev/DevHud.js | import React, { Component } from 'react';
import {
Menu,
Checkbox,
Button,
Dropdown,
} from 'semantic-ui-react';
// PROJECT COMPONENTS
import { HeadingWithDetail } from '../details';
// Dev components
import { CustomClient } from '../CustomClient';
// DATA
import { localizations } from '../../localization/all... | JavaScript | 0.999999 | @@ -2082,614 +2082,205 @@
%0A%0A
-constructor (props) %7B%0A super(props);%0A%0A var toggleContent = %60Hide%60;%0A if (props.devProps.hidden) %7B%0A toggleContent = %60Show%60;%0A %7D%0A%0A this.state = %7B visibilityToggleContent: toggleContent %7D;%0A %7D;%0A%0A toggleHiding = () =%3E %7B%0A... |
1695c79a753e5605adebf1770991fbf9af4861f6 | Fix typos | src/Menu.js | src/Menu.js | import React from 'react';
import PropTypes from 'prop-types';
import {
Animated,
Dimensions,
Easing,
Modal,
Platform,
StyleSheet,
TouchableWithoutFeedback,
View,
ViewPropTypes,
} from 'react-native';
import WidthContext from './WidthContext';
const STATES = {
HIDDEN: 'HIDDEN',
ANIMATING: 'ANIM... | JavaScript | 0.999999 | @@ -804,25 +804,24 @@
l;%0A%0A _setCo
-i
ntainerRef =
@@ -894,25 +894,24 @@
on%0A _onMenu
-l
Layout = e =
@@ -3770,17 +3770,16 @@
s._setCo
-i
ntainerR
@@ -4130,17 +4130,16 @@
._onMenu
-l
Layout%7D%0A
|
f3b4aaf388d1a219442aadbc8c6b84c61a0749e9 | Fix process override in ErrorUtils test (#10293) | src/renderers/shared/utils/__tests__/ReactErrorUtils-test.js | src/renderers/shared/utils/__tests__/ReactErrorUtils-test.js | /**
* Copyright 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react... | JavaScript | 0 | @@ -817,16 +817,178 @@
= false;
+%0A%0A // Mutating process.env.NODE_ENV would cause our babel plugins to do the%0A // wrong thing. If you change this, make sure to test with jest --no-cache.
%0A o
@@ -1045,31 +1045,37 @@
-env: Object.assign(%7B%7D,
+...process,%0A env: %7B...
proc
@@ -1... |
e127eb735db32e7acbdec4c482ede33240893f99 | Add missing prop | src/routes/Library/components/SearchResults/SearchResults.js | src/routes/Library/components/SearchResults/SearchResults.js | import PropTypes from 'prop-types'
import React from 'react'
import PaddedList from 'components/PaddedList'
import ArtistItem from '../ArtistItem'
import SongList from '../SongList'
import './SearchResults.css'
const ARTIST_HEADER_HEIGHT = 22
const ARTIST_RESULT_HEIGHT = 44
const SONG_HEADER_HEIGHT = 22
const SONG_RES... | JavaScript | 0.005908 | @@ -3314,32 +3314,83 @@
filterKeywords%7D%0A
+ queuedSongIds=%7Bthis.props.queuedSongIds%7D%0A
/%3E%0A
|
fc1c4d45ac796ae66d53df67fdef2e74751440b3 | Remove debug log | src/chat.js | src/chat.js | 'use strict';
const Discord = require('discord.js');
const Commands = require('./commands');
const Events = require('./events');
const notification = require('./lib/notification');
const config = require('./config').chat;
/**
* A fantastic chat bot. Truly amazing.
*/
class Bot {
/**
* Create a new Discord chat ... | JavaScript | 0.000002 | @@ -1062,92 +1062,8 @@
s);%0A
- console.log(%60commands initialized: $%7BJSON.stringify(this.commands.keys())%7D%60);%0A
|
d9c5081d97f4309d2bbd9a9dc5047a3f02331906 | Support customizable hapi-swagger options | src/core/services/boot/PostBoot.js | src/core/services/boot/PostBoot.js | const HapiBlipp = require('blipp');
const HapiSwagger = require('hapi-swagger');
const Inert = require('inert');
const Vision = require('vision');
export default class PostBoot {
boot = async () => {
if (!isTest) {
server.register([
Inert,
Vision, {
tags: ['api'],
regist... | JavaScript | 0 | @@ -141,16 +141,88 @@
ion');%0A%0A
+const %7B%0A combineObject,%0A%7D = requireF('core/services/CommonServices');%0A%0A
export d
@@ -297,39 +297,70 @@
-server.register(%5B%0A Inert
+const hapiSwaggerConf = %7B%0A basePath: conf.get('prefix')
,%0A
@@ -369,15 +369,13 @@
-Vision,
+info:
%... |
d25c52bcd7e86a16296973a1787f059f3022f9b9 | Update index.android.js | __tests__/index.android.js | __tests__/index.android.js | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<AppNavigator />
).toJSON();
expect(tree).toMatc... | JavaScript | 0.000007 | @@ -264,20 +264,13 @@
%3C
-AppNavigator
+setup
/%3E%0A
|
148ac507a04d90053a72374f3afd450b67c7ca08 | Remove onfinish for animations and make it more blissful with newspaper rotate style | _assets/javascripts/app.js | _assets/javascripts/app.js | //
// Sprockets Includes
//
//= require vendor/barba.min
//= require vendor/web-animations.min
//
//
// http://dustindiaz.com/smallest-domready-ever
function ready(cb) {
/in/.test(document.readyState) // in = loadINg
? setTimeout(ready.bind(null, cb), 9)
: cb();
}
ready(function(){
// Page transitions
Ba... | JavaScript | 0 | @@ -625,16 +625,27 @@
resolve(
+%0A
_this.ol
@@ -655,32 +655,45 @@
ntainer.animate(
+%0A
%7B opacity: %5B0.5,
@@ -695,24 +695,129 @@
%5B0.5, 0%5D
- %7D, 400)
+, transform: %5B'scale(0.8)', 'scale(0)'%5D %7D,%0A %7B duration: 400, easing: 'ease-out' %7D%0A )%0A
);%... |
8af0f9cbf17538ccb79fa0737ec1431570d0ff6e | Fix PR commits selector in Chrome | github/common.js | github/common.js | "use strict";
function parsePR(url) {
const match = url.match(/^https\:\/\/github.com\/([\w-]+\/[\w-]+\/pull\/[\d]+)/);
return match && match[1];
}
const observer = {
listeners: new Map(),
emit(node) {
if (node instanceof Element) {
for (const [selector, listener] of observer.listeners) {
n... | JavaScript | 0.000003 | @@ -1345,18 +1345,8 @@
ent
-:-moz-any(
img.
@@ -1352,16 +1352,45 @@
.avatar,
+ div.pull-request-tab-content
a.commi
@@ -1397,17 +1397,16 @@
t-author
-)
%22, x =%3E
|
9d06307b0c50c6cdc9ed3ae1340791e8db9c3f21 | Improve imagemin task | gulp_tasks/imagemin.js | gulp_tasks/imagemin.js | const config = require('../bathe.config.js');
const gulp = require('gulp');
const imagemin = require('gulp-imagemin');
const newer = require('gulp-newer');
const plumber = require('gulp-plumber');
const pngquant = require('imagemin-pngquant');
gulp.task('imagemin', function () {
return gulp.src(config.asse... | JavaScript | 0.999587 | @@ -26,13 +26,14 @@
'../
-bathe
+frasco
.con
|
0896c243d4a48180bdd3d71c8f7af35af36e21c7 | 删除两个不属于稳定版本的文件 修改baidu.js中的错误版本号。 | src/baidu.js | src/baidu.js | // Copyright (c) 2009, Baidu Inc. All rights reserved.
//
// Licensed under the BSD License
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://tangram.baidu.com/license.html
//
// Unless required by applicable law or agreed to in wri... | JavaScript | 0 | @@ -658,35 +658,33 @@
%0D%0A *
-/%0D%0A%0D%0A/**%0D%0A * %E5%A3%B0%E6%98%8E
+ %0D%0A * path:
baidu
-%E5%8C%85
+.js
%0D%0A *
-@
auth
@@ -704,47 +704,90 @@
erik
-, meizz, berg%0D%0A */%0D%0Avar T,%0D%0A
+%0D%0A * version: 1.1.0%0D%0A * date: 2009/12/2%0D%0A */%0D%0A%0D%0A/**%0D%0A * %E5%A3%B0%E6%98%8Ebaidu%E5%8... |
708bcf0a18f8b03b8837b211773da87b761c45a3 | Add a sit still button. | src/Unit.js | src/Unit.js | function Unit(x, y, c, style) {
this.x = x;
this.y = y;
this.c = c || 'X';
this.style = style || 'white';
}
Unit.prototype.step = function(callback) {
return true;
};
Unit.prototype.karma = 0;
Unit.STEP_PLAYER = function(callback) {
var unit = this;
display.draw(ctx); /* Update the displa... | JavaScript | 0 | @@ -1697,32 +1697,135 @@
break;%0A
+ case 190: // .%0A case 12:%0A dx = 0; dy = 0;%0A break;%0A
%7D%0A
|
ca99e14960c56ee1e57fbd1f7c4afd6809a158c6 | allow zoom & pan to be set on init | src/core.js | src/core.js | ;(function($$){
$$.fn.core = function( fnMap, options ){
for( var name in fnMap ){
var fn = fnMap[name];
$$.Core.prototype[ name ] = fn;
}
};
$$.Core = function( opts ){
if( !(this instanceof $$.Core) ){
return new $$.Core(opts);
}
var cy = this;
var container = opts.container;
var reg = ... | JavaScript | 0 | @@ -1760,32 +1760,248 @@
om:
-1,%0A%09%09%09pan: %7B x: 0, y: 0
+$$.is.number(options.zoom) ? options.zoom : 1,%0A%09%09%09pan: %7B%0A%09%09%09%09x: $$.is.plainObject(options.pan) && $$.is.number(options.pan.x) ? options.pan.x : 0,%0A%09%09%09%09y: $$.is.plainObject(options.pan) && $$.is.number(options.pan.y) ? opti... |
34aec9fa11f246bf56316f25c0cb28388ff39c74 | fix test | src/Util.js | src/Util.js | import L from 'leaflet';
import {
geojsonToArcGIS as g2a,
arcgisToGeoJSON as a2g
} from 'arcgis-to-geojson-utils';
export function geojsonToArcGIS (geojson) {
return g2a(geojson);
}
export function arcgisToGeoJSON (arcgis) {
return a2g(arcgis)
}
// shallow object clone for feature properties and attributes
/... | JavaScript | 0.000002 | @@ -153,16 +153,24 @@
(geojson
+, idAttr
) %7B%0A re
@@ -185,16 +185,24 @@
(geojson
+, idAttr
);%0A%7D%0A%0Aex
@@ -238,16 +238,24 @@
(arcgis
+, idAttr
) %7B%0A re
@@ -269,17 +269,26 @@
g(arcgis
-)
+, idAttr);
%0A%7D%0A%0A// s
@@ -1886,40 +1886,22 @@
-featureCollection.features.push(
+var feature =
ar... |
5319b8f92567df1d2dffe9cdca63ac45e6552b2d | Change repository url | scripts/main/music-player.js | scripts/main/music-player.js | /**
* Music player in browser
* author: kubosho_ <ta2@o2p.jp>
* Repository: https://github.com/kubosho/browser-music-player
* License: MIT
*/
(function (global, undefined) {
'use strict';
/**
* @constructor
*/
function MusicPlayer () {
var AudioContext = global.AudioContext || globa... | JavaScript | 0.000001 | @@ -103,16 +103,8 @@
sho/
-browser-
musi
@@ -111,16 +111,27 @@
c-player
+-in-browser
%0A * Lice
|
61429e913caed16797ca07e78d642b3e09d9f491 | revert weird name change. all caps now | src/GLOW.js | src/GLOW.js | /*
* Glow - Just-Above-Low-Level WebGL API
*/
var GLOW = (function() {
"use strict"; "use restrict";
var glow = {};
var contexts = {};
var uniqueIdCounter = -1;
glow.currentContext = {};
//--- register context ---
glow.registerContext = function( context ) {
contexts[ context.id ... | JavaScript | 0.000002 | @@ -1,17 +1,17 @@
/*%0A* G
-low
+LOW
- Just-
|
e0a9ba94e19a3d1c9859f333ca542c80c9cf1dc0 | set up cronjob to compare images | server/cronjob.js | server/cronjob.js | var basicScraper = require('./controllers/basicScraperController');
var getExternalUrl = require('./controllers/urlController').getExternalUrl;
var CronJob = require('cron').CronJob;
var secret = require('../config.js');
var db = require('./db.js');
var Sequelize = require('sequelize');
var mandrill = require('mandrill... | JavaScript | 0 | @@ -1102,47 +1102,8 @@
) %7B%0A
- console.log('in the for loop')%0A
@@ -1141,32 +1141,33 @@
j++)%7B%0A
+
console.log('url
@@ -1155,35 +1155,40 @@
console.log('
-url
+checking
', url%5Bj%5D.UserUr
@@ -1185,70 +1185,28 @@
%5Bj%5D.
-UserUrl.cropImage)%0A // console.log('url', url... |
179e85fa65ed60d87dabb4210572f55b6c464dac | Append req.url to proxyUrl | pipe.js | pipe.js | var norma = require('norma');
var request = require('request');
var debug = require('debug')('waif:pipe');
var Uri = require('./state/uri');
var pathToUrl = require('path-to-url');
module.exports = function(config) {
var service = this.service;
var args = norma('url:s, rest:.*', arguments);
debu... | JavaScript | 0 | @@ -407,119 +407,131 @@
) %7B%0A
- debug('service %25s piping to %25s', service.name, req.url);%0A%0A var proxyUrl = pathToUrl(args.url, req.params
+%0A var proxyUrl = pathToUrl(args.url, req.params) + req.url;%0A%0A debug('service %25s piping to %25s', service.name, proxyUrl
);%0A%0A
|
8d72638ad4768356a575ce890426d9621d60a2fa | Fix connection edges field description | src/connection/connection.js | src/connection/connection.js | /* @flow */
/**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
i... | JavaScript | 0.000004 | @@ -3279,40 +3279,23 @@
n: '
-Information to aid in pagination
+A list of edges
.'%0A
|
932c57bf63a12f6073abf286febe8891a23f8eb4 | add comments to arcgis example | examples/arcgis-viewer/viewer.js | examples/arcgis-viewer/viewer.js | require([
"dojo/query",
"terraformer/terraformer",
"terraformer/arcgis",
"esri/map"
], function ($, Terraformer, TerraformerArcGIS) {
var map = new esri.Map("map", {
basemap: "gray",
center: [-122, 45],
zoom: 6
});
function showOnMap(){
var input = JSON.parse($("#input").attr("value")[0])... | JavaScript | 0 | @@ -257,16 +257,47 @@
nMap()%7B%0A
+ // parse the input as json%0A
var
@@ -345,16 +345,83 @@
e%22)%5B0%5D);
+%0A%0A // convert teh geojson object to a arcgis json representation
%0A var
@@ -463,16 +463,63 @@
(input);
+%0A%0A // create a new geometry object from json
%0A var
@@ -561,16 +561,61 ... |
f3c26859fbeea44f91b0ed059f1b9bb830426f18 | Update minsoo.js | minsoo/minsoo.js | minsoo/minsoo.js | var count = document.getElementById("count");
var canvas = document.getElementById("canvas");
var dc = canvas.getContext("2d");
var ms = new Array();
var gen_color = function(){
return "rgb(" +
parseInt(Math.random()*255) + "," +
parseInt(Math.random()*255) + "," +
parseInt(Math.random()*255) + ")";
}
v... | JavaScript | 0.000001 | @@ -1193,32 +1193,45 @@
dc.closePath();%0A
+ dc.fill();%0A
%0A dc.globalCo
|
36a584b7f70dda5dfb4d61b2baa7d22397e4c5ac | Disable DOM prettify until it handles code blocks | basilar.js | basilar.js | 'use strict';
const fs = require('fs');
const JSDOM = require('jsdom').JSDOM;
const showdown = require('showdown'); // This is our fork of showdown, which will auto-link to HTTPS as oppose to HTTP. Currently not in used, replaced with 'markdown-it'.
const domspace = require('domspace');
const path = require('path');
c... | JavaScript | 0.000001 | @@ -3873,16 +3873,121 @@
%0A
+ // Disabled until this issue has been fixed: https://github.com/papandreou/domspace/issues/25%0A //
domspac
|
c4f5174f9f720ae9342501dde067db5001e592d7 | Add the Dealer class as a subclass of the player | src/Game.js | src/Game.js | /**
* A utility library for all related blackjack functions.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*
* Author: Chris Zieba <zieba.chris@gmail.com>
*/
'use strict';
var Blackjack = Blackjack || {};
Blackjack.Game = (f... | JavaScript | 0 | @@ -1101,60 +1101,468 @@
-Dealer.prototype = Object.create(Player.prototype);%0A
+/**%0A * Represents the dealer (house) in the game. A dealer%0A * is a subclass of the Player class.%0A *%0A * @param %7BString%7D $name%0A */%0A function Dealer(name) %7B%0A Player.call(this, name);%0A... |
6d0e2feb528a85b296171e3322995fd762957d7b | Fix wording. | examples/ballmer-peak/example.js | examples/ballmer-peak/example.js | /**
* @jsx React.DOM
*/
function computeBallmerPeak(x) {
// see: http://ask.metafilter.com/76859/Make-a-function-of-this-graph-Thats-like-an-antigraph
x = x * 100;
return (
1-1/(1+Math.exp(-(x-6)))*.5 + Math.exp(-Math.pow(Math.abs(x-10), 2)*10)
) / 1.6;
}
var BallmerPeakCalculator = React.createClass({
... | JavaScript | 0 | @@ -1009,17 +1009,19 @@
ill
-hav
+b
e bug
-s
+ free
.%0A
|
16f80956552d8258fe42d2fd73bb50a4c39c1617 | Update minsoo.js | minsoo/minsoo.js | minsoo/minsoo.js | var count = document.getElementById("count");
var canvas = document.getElementById("canvas");
var dc = canvas.getContext("2d");
var ms = new Array();
var gen_color = function(){
return "rgb(" +
parseInt(Math.random()*255) + "," +
parseInt(Math.random()*255) + "," +
parseInt(Math.random()*255) + ")";
}
v... | JavaScript | 0.000001 | @@ -1082,13 +1082,12 @@
= %22
-light
+dark
er%22;
@@ -1165,13 +1165,13 @@
000,
-600,6
+700,8
00,0
|
5088fa2fb291a6fd708a07065e821cd699426222 | make urls relative | scripts/sample_pack_store.js | scripts/sample_pack_store.js | (function () {
/**
* SamplePackStore is a global store that contains
* all the samples that we have
*
* @constructor
*/
var SamplePackStore = window.SamplePackStore = Object.create({});
Object.assign(SamplePackStore, {
samplePacks: {},
samplePacksData: {},
activeSamplePack: null,
s... | JavaScript | 0.999764 | @@ -683,25 +683,24 @@
%7B%0A 48: '
-/
samples/firs
@@ -722,25 +722,24 @@
',%0A 49: '
-/
samples/firs
@@ -763,25 +763,24 @@
',%0A 50: '
-/
samples/firs
@@ -804,25 +804,24 @@
',%0A 51: '
-/
samples/firs
@@ -845,25 +845,24 @@
',%0A 33: '
-/
samples/firs
@@ -890,17 +890,16 @@
34: '
-/
samples... |
24834c0b86b6de916b1d780ddd0eae36a02f0875 | mirage errors | mirage/config.js | mirage/config.js | import config from 'irene/config/environment';
export default function() {
this.namespace = config.host + "/" + config.namespace;
this.get('/users/:id', 'user');
this.get('/collaborations/:id', 'collaboration');
this.get('/projects/:id', 'project');
this.get('/projects', 'project');
this.get('/pricings... | JavaScript | 0.999494 | @@ -208,32 +208,80 @@
ollaboration');%0A
+ this.get('/collaborations', 'collaboration');%0A
this.get('/pro
@@ -418,24 +418,66 @@
bmission');%0A
+ this.get('/submissions', 'submission');%0A
this.get('
@@ -873,17 +873,16 @@
;%0A %7D);%0A
-%0A
this.p
|
d8f7539e964b0f39dbf690c91efa012f3813f460 | correct raised buttons | src/Home.js | src/Home.js | import React, {Component} from "react";
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Button from 'material-ui/Button';
const styles = theme => ({
margin: theme.spacing.unit,
});
const buttonData = [
{"key": 1, "hrefs":"https://www.linkedin.com/in/gregory-katchmar-3a4... | JavaScript | 0.000002 | @@ -610,22 +610,32 @@
on %0A
+variant=%22
raised
+%22
%0A key
@@ -1079,22 +1079,41 @@
%3CButton
+%0A variant=%22
raised
+%22
%0A
|
a1876ad7e78263d75b052cf21a412e4e78126c12 | Use msSaveBlob for exporting, when available | src/containers/LessonsApp.js | src/containers/LessonsApp.js | var Base64 = require('base-64')
var React = require('react')
var {bindActionCreators} = require('redux')
var {Connector} = require('redux/react')
var Lessons = require('../components/Lessons')
var LessonActions = require('../actions/LessonActions')
require('./LessonsApp.css')
var LessonsApp = React.createClass({
ex... | JavaScript | 0 | @@ -348,63 +348,123 @@
var
-json64 = Base64.encode(JSON.stringify(lessons, null, 2)
+filename = 'react-lessons.json'%0A var json = JSON.stringify(lessons, null, 2)%0A var json64 = Base64.encode(json
)%0A
@@ -558,12 +558,11 @@
ext/
-plai
+jso
n;ba
@@ -596,36 +596,24 @@
nload =
-'react-lessons.json'
+filen... |
6fbeeb3ada670dd01cc519405b90989d822364cb | test modif heberglinux | examples/joystick/ipega/ipega.js | examples/joystick/ipega/ipega.js |
/* Import jController files */
$.jController.import([
{ dir : "../../../plugins", files : ["rect", "arc", "circle", "text",] },
{ dir : "../../../helpers", files : ["canvas",] },
]
/* Ipega controller */
, function() {
/* Ipega components */
var buttonA = $.jController.button({
x : 480,
y : 130,
label : "A"... | JavaScript | 0.000001 | @@ -949,16 +949,133 @@
,%0A%09%7D);%0A%0A
+%09function button_callback(label) %7B%0A%09%09return function(data) %7B%0A%09%09%09console.log(%22button%22 + label + %22 : %22, data);%0A%09%09%7D%0A%09%7D%0A%0A
%09/* Star
@@ -1497,8 +1497,9 @@
%7D);%0A%0A%7D);
+%0A
|
97c508ed8fbf2e677547b393707d2b4e4e8e6f2d | Remove extraneous refresh call | src/containers/SinglePost.js | src/containers/SinglePost.js | import React from 'react'
import Post from '../components/Post'
import { prefetch } from 'react-fetcher'
import { connect } from 'react-redux'
import { includes } from 'lodash'
import { get, pick } from 'lodash/fp'
import { FETCH_POST, navigate, notify, setMetaTags } from '../actions'
import { fetchComments } from '../... | JavaScript | 0.000002 | @@ -4828,16 +4828,17 @@
tUser),%0A
+%0A
// A
@@ -4941,28 +4941,12 @@
yId)
-, %7Brefresh: true%7D
),%0A
+%0A
|
5df83224a90abfcb63a4f36c34d45e099e1a70a2 | Set process title. | bin/bot.js | bin/bot.js | #!/usr/bin/env node
var Datastore = require('nedb');
var Discord = require('discord.js');
var async = require('async');
var auth = require('../blitzbot.json');
var pkg = require('../package.json');
// set WarGaming API key, so require does not return an init function
process.env.APPLICATION_ID = auth.wotblitz.key;
v... | JavaScript | 0.000001 | @@ -1390,24 +1390,50 @@
ient, db);%0A%0A
+process.title = pkg.name;%0A
client.userA
|
ab404f9030e585bc5c4a9a04cb377a45f392f9ec | Bump cache | service-worker.js | service-worker.js | 'use strict';
var CACHE_NAME = 'number-rush-cache-v5';
// The files we want to cache
const urlsToCache = [
'index.html',
'assets/audio/beep.mp3',
'assets/audio/incorrect.mp3',
'assets/audio/success.mp3',
'assets/styles/css/main.min.css',
'assets/scripts/dist/bundle.js'
];
// Set the callback f... | JavaScript | 0.000001 | @@ -48,9 +48,9 @@
he-v
-5
+6
';%0A%0A
|
e809b03d20df5ae57525398365e63510ebc08b31 | remove no longer relevant code | src/core/observer/watcher.js | src/core/observer/watcher.js | /* @flow */
import config from '../config'
import Dep, { pushTarget, popTarget } from './dep'
import { queueWatcher } from './scheduler'
import {
warn,
remove,
isObject,
parsePath,
_Set as Set
} from '../util/index'
let uid = 0
/**
* A watcher parses an expression, collects dependencies,
* and fires call... | JavaScript | 0.000069 | @@ -5002,97 +5002,8 @@
oyed
- or is performing a v-for%0A // re-render (the watcher list is then filtered by v-for)
.%0A
@@ -5040,34 +5040,8 @@
oyed
- && !this.vm._vForRemoving
) %7B%0A
|
72295a17790104a54addf548c46ae175d456de9f | update shell script | bin/cli.js | bin/cli.js | var parser = require("nomnom");
parser.option('debug', {
abbr: 'd',
flag: true,
help: 'Print debugging info',
callback: function () {
console.log("debug");
}
});
parser.parse();
| JavaScript | 0.000001 | @@ -1,16 +1,98 @@
-var parser =
+function getCommandlineOptions () %7B%0A%09var version = require('../package.json').version;%0A%09return
req
@@ -105,24 +105,19 @@
nomnom%22)
-;%0Aparser
+%0A%09%09
.option(
@@ -127,16 +127,18 @@
bug', %7B%0A
+%09%09
%09abbr: '
@@ -141,16 +141,18 @@
r: 'd',%0A
+%09%09
%09flag: t... |
0c209c8fae8bde97006d0c456cc34e1844240fdd | Add short form of some CLI options again | bin/cli.js | bin/cli.js | #!/usr/bin/env node
'use strict';
const process = require('process');
const program = require('commander');
const rc = require('rc')('madge');
const version = require('../package.json').version;
program
.version(version)
.usage('[options] <src...>')
.option('--basedir <path>', 'base directory for resolving paths')... | JavaScript | 0 | @@ -257,16 +257,19 @@
option('
+-b
--basedi
@@ -332,60 +332,11 @@
n('-
--list', 'show dependency list (default)')%0A%09.option('
+s,
--su
@@ -386,16 +386,20 @@
option('
+-c,
--circul
@@ -439,24 +439,28 @@
)%0A%09.option('
+-d,
--depends %3Cn
@@ -498,24 +498,28 @@
)%0A%09.option('
+-x,
--exclude %3Cr
@@ -... |
13d8505f1a16537a2f0552b1f4005ed589f7e627 | make sure that we don't populate settings.meta with empty strings and the like... stick with -1 | src/base.js | src/base.js | var Sensi = Sensi || (function ($) {
var Utils = {}, // toolbox
Pages = {}, // page-specific logic
Features = {}, // generic re-usable features
App = {}; // global logic and initialiser
// if not defined, let's assume that we're not in debug mode
if (typeof DEBUG === 'u... | JavaScript | 0 | @@ -612,36 +612,20 @@
-Utils.settings.meta.
+var
page = $
@@ -662,16 +662,153 @@
ntent%22);
+%0A if (typeof page !== 'undefined' && page !== '') %7B%0A Utils.settings.meta.page = page;%0A %7D
%0A%0A
@@ -960,24 +960,41 @@
'undefined'
+ && userid !== ... |
f5d268a84481ea29d84d32a41c19357c3bb8f271 | update help info | bin/cli.js | bin/cli.js | #!/usr/bin/env node
require('colors');
var path = require('path');
var homedir = require('os-homedir');
var Args = require('hemsl');
var showImage = require('../src/helpers/showImage');
var packageInfo = require('../package');
var pluginManager = require('../src/plugin');
var mkdirp = require('../src/helpers/mkdirp'... | JavaScript | 0 | @@ -2170,21 +2170,17 @@
cribe: '
-The l
+L
og level
@@ -2185,17 +2185,15 @@
els,
-
format:
-
%3Clev
|
7c30a618e96a10260127d2b3471bdc05a07d2c20 | add debug flag | bin/cli.js | bin/cli.js | #!/usr/bin/env node
'use strict'
const path = require('path');
const bundle = require('../lib/bundle');
const exit = require('../lib/exit');
const meow = require('meow');
const cli = meow(`
Usage
Requires adding build config in package.json
see https://github.com/jhnstn/bundbi#example for more details
$... | JavaScript | 0.000001 | @@ -385,16 +385,64 @@
n source
+%0A -d, --debug Enable Browserify debug setting
%0A%0A Exam
@@ -500,16 +500,34 @@
'watch'
+,%0A d: 'debug'
%0A %7D%0A%7D
@@ -783,16 +783,17 @@
put%5B0%5D;%0A
+%0A
let targ
|
f3b2fce5bfa8e76f952bf4cec411b5d3d0801b3c | add owner provided property | model/request.js | model/request.js | /*jslint es5:true*/
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var Mixed = Schema.Types.Mixed;
var ObjectId = Schema.Types.ObjectId;
// request status
// 0: saved 1: submitted 2: approved 3: rejected
// cable status
// procuring
// 100: approved 101: ordered 102: received 103: accepted
// in... | JavaScript | 0 | @@ -1871,32 +1871,95 @@
: Boolean%0A %7D,%0A%0A
+ ownerProvided: %7B%0A type: Boolean,%0A default: false%0A %7D,%0A%0A
length: Number
|
ef369da40f002e1599d234fe77a2e833afac175d | Add 'logger' to propTypes validation. | src/Root.js | src/Root.js | import React, { Component, PropTypes } from 'react';
import { combineReducers } from 'redux';
import { Provider, connect } from 'react-redux';
import Router from 'react-router/BrowserRouter';
import Match from 'react-router/Match';
import Miss from 'react-router/Miss';
import MainContainer from './components/MainConta... | JavaScript | 0 | @@ -2170,16 +2170,53 @@
quired,%0A
+ logger: PropTypes.func.isRequired,%0A
%7D;%0A%0Afunc
|
481b56e29b24b72002490fb1ac7ffa23e4549b4f | exit with non zero on error | bin/cli.js | bin/cli.js | #!/usr/bin/env node
var cwd = process.cwd();
var pkgJson = require('../package.json');
var npmCheck = require('../lib/npm-check');
var output = require('../lib/output');
process.title = pkgJson.name;
npmCheck(cwd)
.then(output)
.catch(function(err){
console.log('[npm-check]', err.stack || err);
}... | JavaScript | 0.000006 | @@ -308,16 +308,41 @@
%7C err);%0A
+ process.exit(1);%0A
%7D)%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.