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 |
|---|---|---|---|---|---|---|---|
94297b00d8aa332521f8ac01ac3f7e55686ee83c | remove copyright header | src/app.js | src/app.js | /*
* Copyright (c) 2018, Hugo Freire <hugo@exec.sh>.
*
* This source code is licensed under the license found in the
* LICENSE.md file in the root directory of this source tree.
*/
#!/usr/bin/env node
const VERSION = process.env.VERSION
const VERSION_COMMIT = process.env.VERSION_COMMIT
const VERSION_BUILD_DATE =... | JavaScript | 0 | @@ -1,191 +1,4 @@
-/*%0A * Copyright (c) 2018, Hugo Freire %3Chugo@exec.sh%3E.%0A *%0A * This source code is licensed under the license found in the%0A * LICENSE.md file in the root directory of this source tree.%0A */%0A%0A
#!/u
|
0573d6036e2c208e133e37a4c7f839757bb40ff0 | wrong path | src/terms.js | src/terms.js | import en from './lang/en';
import de from './lang/de';
import fr from './lang/fr';
import pt from './lang/pt';
import ca from '.lang/ca';
import cn from './lang/cn';
import it from './lang/it';
import es from './lang/es';
import th from './lang/th';
import id from './lang/id';
import sv from './lang/sv';
import ru fro... | JavaScript | 0.999884 | @@ -122,16 +122,17 @@
from '.
+/
lang/ca'
|
35a6a401557001f4b7ddfc4015a528ccc88f4bb8 | Change Route Rule. [FINISHED #373290772] Reload of angular will not redirect directly to login page. | src/client/js/registries.js | src/client/js/registries.js | angular.module('registries', ['ngRoute', 'ngCookies', 'security', 'personal-page','schema-editor','generic-search', 'registry','ui.ace'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/personal-page', {templateUrl: '/partials/personal-page.html', controller: 'personalPageCtrl', permissions... | JavaScript | 0 | @@ -1588,47 +1588,8 @@
ta;%0A
-%09%09%09console.log('getCurrentUser done');%0A
%09%09%09c
@@ -2080,106 +2080,8 @@
) %7B%0A
-%09%09console.log('$routeChangeStart');%0A%09%09console.log(nextRoute);%0A%09%09console.log($rootScope.security);%0A
%09%09if
|
2994d9115dfcc63d5317821ad982f6e583f74abb | stop main loop on error | src/app.js | src/app.js | /* Copyright 2015 Dietrich Epp.
This file is part of Dash and the Jetpack Space Pirates. The Dash
and the Jetpack Space Pirates source code is distributed under the
terms of the MIT license. See LICENSE.txt for details. */
'use strict';
// This is first, so we get console.log.
require('./util');
// Regist... | JavaScript | 0.000002 | @@ -2034,56 +2034,8 @@
%09%7D%0A%0A
-%09handle = window.requestAnimationFrame(render);%0A
%09gl.
@@ -2227,16 +2227,130 @@
h,%0A%09%7D);
+%0A%0A%09// Do this last... if we get an exception, it won't get called.%0A%09handle = window.requestAnimationFrame(render);
%0A%7D%0A%0Awind
|
774edb05abc51b9918f0d4ae9b0f37516fe55dd3 | Apply default hub to dashboard | app/control-panel/controllers/DashboardCtrl.js | app/control-panel/controllers/DashboardCtrl.js | app.controller('DashboardCtrl', DashboardCtrl);
DashboardCtrl.$inject = ['$scope', '$q', 'hub', 'printer', 'sensor'];
function DashboardCtrl($scope, $q, hub, printer, sensor) {
console.log('User Default Hub: ' + $scope.user._user.default_hub_id);
$scope.printer = {};
var defaultHubId = 27;
// Var defaultHub... | JavaScript | 0 | @@ -176,81 +176,8 @@
) %7B%0A
- console.log('User Default Hub: ' + $scope.user._user.default_hub_id);%0A%0A
$s
@@ -195,17 +195,16 @@
r = %7B%7D;%0A
-%0A
var de
@@ -219,36 +219,8 @@
Id =
- 27;%0A // Var defaultHubId =
$sc
@@ -227,16 +227,17 @@
ope.user
+.
_user.de
@@ -250,17 +250,16 @@
hub_id;%0A
-%0A
... |
fc9f112163d165f4d9be6d12de739fc3e0739190 | fixed the semi-colon error in hello | hello.js | hello.js | var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello TravisCI\n') // missing a semi-colon with fail to build
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');
| JavaScript | 0.999988 | @@ -145,16 +145,17 @@
isCI%5Cn')
+;
// miss
|
496a570df84c64be1debcdec86b7db40005d793b | add a drop target for trackend | src/track.js | src/track.js | /*
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
/**
* This event denotes the beginning of a series of tracking events.
*
* @for Events
* @event trackstart
* @param {Number} dx Pixels move... | JavaScript | 0 | @@ -3183,40 +3183,19 @@
var
-e = dispatcher.makeEvent(inType,
+trackData =
%7B%0A
@@ -3406,23 +3406,288 @@
terType%0A
-
%7D
+;%0A if (inType === 'trackend') %7B%0A // TODO(dfreedman): this will leak shadowdom targets, replace with a%0A // more sophisticated mechanism%0A trackData.... |
5d02352f6c9f2158c2e668821ef01bb321928b76 | change layout of AP list | tests/ListWifiAccessPoints.js | tests/ListWifiAccessPoints.js | var ConnMan = require('../index.js');
var connman = new ConnMan();
connman.init(function() {
if (connman.Wifi.Powered)
console.log('Wifi is powered');
else
console.log('Wifi is not powered');
if (connman.Wifi.Connected)
console.log('Wifi is connected');
else
console.log('Wifi is not connected');
console... | JavaScript | 0 | @@ -537,26 +537,8 @@
x%5D;%0A
-%09%09%09%09if (ap.Name)%0A%09
%09%09%09%09
@@ -554,21 +554,23 @@
og('
-%5B
+
' +
+(
ap.Name
+ '%5D
@@ -569,52 +569,29 @@
ame
-+ '%5D');%0A%09%09%09%09else%0A%09%09%09%09%09console.log('%5B
+? ap.Name : '
*hidden*
%5D');
@@ -590,29 +590,23 @@
den*
-%5D
')
-;%0A%09%09%09%09... |
204a0467422ba9e97e32a17b3e3699dc8a346adc | Reorganize .reset() | src/js/drinkmachine.js | src/js/drinkmachine.js | var $ = require('jquery');
var options = {
reel: '.Reel',
spin: 'Reel-spin',
reverseSpin: 'Reel-reverseSpin',
playButton: '.js-play',
slotSize: 3,
slotMappings: [
'coffee',
'tea',
'espresso'
]
};
var slotResults = [];
var DrinkMachine = function() {
this.setupButtonHandler();
};
DrinkMac... | JavaScript | 0.000001 | @@ -1923,32 +1923,40 @@
%5B%0A 'is-' +
+options.
slotMappings%5B0%5D
@@ -1954,17 +1954,16 @@
pings%5B0%5D
-
,%0A
@@ -1962,32 +1962,40 @@
,%0A 'is-' +
+options.
slotMappings%5B1%5D,
@@ -2005,24 +2005,32 @@
'is-' +
+options.
slotMappings
@@ -2047,74 +2047,22 @@
-if (slotResults.leng... |
d7cbaff71643b251d1f7a773a8e7e498927ecaa4 | Enforce the open website setting | Chrometana/js/bootstrap.js | Chrometana/js/bootstrap.js | var custom_engine;
var storageChange;
var debugging = false;
function convertURL(url){
log(url);
url = url.replace(/%20/g,"+");
var uri = /\?q\=([0-9a-zA-Z-._~:\/?#[\]@!$'()*+,;=%]*)($|(\&))/.exec(url)[1];
log("url: " + url);
log("uri: " + uri);
log("StorageChange: " + storageChange);
var ma... | JavaScript | 0.000309 | @@ -31,16 +31,41 @@
Change;%0A
+var enable_open_website;%0A
var debu
@@ -105,16 +105,39 @@
L(url)%7B%0A
+ log(%22convertURL%22);%0A
log(
@@ -347,24 +347,122 @@
ageChange);%0A
+ log(%22enable_open_website: %22 + enable_open_website);%0A if(enable_open_website === true)%7B%0A
var matc
@@ -551,2... |
557529eb1ba780e7b66cc52ca63ba74048b3b774 | fix failing test | tests/base/getNumberOffset.js | tests/base/getNumberOffset.js | var should = chai.should();
describe("DraggableNumberElement.getNumberOffset", function() {
var input = document.createElement("input");
var input2 = document.createElement("input");
beforeEach(function() {
document.body.appendChild(input);
this.el = new DraggableNumber(input);
});
afterEach(functi... | JavaScript | 0.000006 | @@ -133,16 +133,35 @@
nput%22);%0A
+ input.value = 0;%0A
var in
@@ -199,16 +199,36 @@
input%22);
+%0A input2.value = 0;
%0A%0A befo
|
67ab39e1b0aea27bee63216fdd606bd45e4c2bd0 | Improve logger to log arbitrary numbers of arguments | src/logger.js | src/logger.js | const logLevels = ['DEBUG', 'INFO', 'WARN', 'ERROR']
let currentLevel = 1
module.exports = {
setLogLevel: (newLevel) => {
currentLevel = logLevels.indexOf(newLevel)
if (currentLevel < 0) {
currentLevel = 1
}
},
debug: (message) => logMessage(0, message),
info: (message) => logMes... | JavaScript | 0.000002 | @@ -248,28 +248,29 @@
debug:
-(message) =%3E
+function () %7B
logMess
@@ -280,132 +280,147 @@
(0,
-message),%0D%0A info: (message) =%3E logMessage(1, message),%0D%0A warn: (message) =%3E logMessage(2, message),%0D%0A error: (message) =%3E
+arguments) %7D,%0D%0A info: function () %7B logMessage(1, arguments) ... |
bd51e6ea6d6824108c01601d09b12dc4118daa4f | Improve property-no-unknown performance (#4277) | lib/rules/property-no-unknown/index.js | lib/rules/property-no-unknown/index.js | "use strict";
const _ = require("lodash");
const isCustomProperty = require("../../utils/isCustomProperty");
const isStandardSyntaxDeclaration = require("../../utils/isStandardSyntaxDeclaration");
const isStandardSyntaxProperty = require("../../utils/isStandardSyntaxProperty");
const optionsMatches = require("../../ut... | JavaScript | 0 | @@ -793,16 +793,67 @@
ions) %7B%0A
+ const allValidProperties = new Set(properties);%0A%0A
return
@@ -1721,17 +1721,25 @@
if (
-p
+allValidP
ropertie
@@ -1744,15 +1744,11 @@
ies.
-indexOf
+has
(pro
@@ -1767,15 +1767,8 @@
e())
- !== -1
) %7B%0A
|
96f14b8bbd1a0b24dc889483e9f815de3bb1096d | Update cli for lint issue | src/cli.js | src/cli.js | #! /usr/bin/env node --harmony -r babel-register
import Promise from 'bluebird'
import DebugEventStream from './DebugEventStream'
import yargs from 'yargs'
const args = yargs.usage('sa-debug [options] <host>')
.option('project', {
alias: 'p',
describe: 'Proj... | JavaScript | 0 | @@ -1,54 +1,4 @@
-#! /usr/bin/env node --harmony -r babel-register%0A%0A
impo
@@ -22,16 +22,42 @@
bluebird
+'%0Aimport yargs from 'yargs
'%0A%0Aimpor
@@ -106,35 +106,8 @@
m'%0A%0A
-import yargs from 'yargs'%0A%0A
cons
|
895a8bc36b31d4a831fa4619891652811345e4e8 | remove default value for timeout parameter | app/scripts/services/dimInfoService.factory.js | app/scripts/services/dimInfoService.factory.js | (function() {
'use strict';
angular.module('dimApp')
.factory('dimInfoService', InfoService);
InfoService.$inject = ['toaster', '$http', 'SyncService'];
function InfoService(toaster, $http, SyncService) {
return {
show: function(id, content, timeout = 0) {
content = content || {};
... | JavaScript | 0.000001 | @@ -259,39 +259,67 @@
content, timeout
- = 0) %7B
+) %7B%0A timeout = timeout %7C%7C 0;
%0A content
@@ -582,15 +582,45 @@
eout
- = 0) %7B
+) %7B%0A timeout = timeout %7C%7C 0;
%0A
|
1d0beb8effa1bc13b648c3cd74fe9bb92d5fc5f9 | Add mising shebang to CLI script. | src/cli.js | src/cli.js | /*globals require, process */
(function () {
'use strict';
var reports = [],
cli = require('commander'),
fs = require('fs'),
cr = require('./complexityReport'),
check = require('check-types'),
options,
formatter,
state = {
reading: true,
unread: 0,
tooComp... | JavaScript | 0 | @@ -1,8 +1,29 @@
+#!/usr/bin/env node%0A%0A
/*global
|
89d733d574bac351ecd96e8abae4cf5900aefa4b | add opacity to bar to make it a bit less saturated | app/scripts/store/dimStoreHeading.directive.js | app/scripts/store/dimStoreHeading.directive.js | /*jshint -W027*/
(function() {
'use strict';
angular.module('dimApp')
.directive('dimStoreHeading', StoreHeading);
StoreHeading.$inject = ['ngDialog'];
function StoreHeading(ngDialog) {
return {
controller: StoreHeadingCtrl,
controllerAs: 'vm',
bindToController: true,
scope: ... | JavaScript | 0 | @@ -3006,16 +3006,29 @@
#00aae1'
+, opacity: .9
%7D;%0A
|
5fbdc364d1264ff6aa34186be87ca024dacde824 | update lib | lib/telegram-driver/telegram-driver.js | lib/telegram-driver/telegram-driver.js | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.makeTelegramDriver = makeTelegramDriver;
var _rx = require('rx');
var _rx2 = _interopRequireDefault(_rx);
var _ramda = require('ramda');
var _sources = require('./sources');
var _apiRequest = require('./api-request');
var _typ... | JavaScript | 0.000001 | @@ -953,21 +953,25 @@
%7D,
-Object.assign
+(0, _ramda.merge)
(%7B%7D,
|
0a1dcfac625c2832b46d143dbdcaea24a8c2c349 | Check an exit buffer when leaving zone. | src/js/questManager.js | src/js/questManager.js | "use strict";
var _ = require('lodash'),
$ = require('jquery'),
Bacon = require('baconjs'),
BootstrapDialog = require('bootstrap-dialog'),
cards = require('./cards'),
zoneUtils = require('./zoneUtils'),
quests = require('../quests.json');
var ACTIVE_QUEST = 'fairmount-water-works',
DEFAULT... | JavaScript | 0 | @@ -430,16 +430,90 @@
ions.',%0A
+ EXIT_BUFFER = 1, // distance in meters to buffer when exiting a zone.%0A
ques
@@ -702,16 +702,60 @@
LatLng)%0A
+ .skipDuplicates(exitBuffer)%0A
@@ -1551,16 +1551,812 @@
%7D%0A%7D;%0A%0A
+function exitBuffer(oldValue, newValue) %7B%0A if (oldVal... |
fba49412c74b44e3ab8add82e593fa15f84ca989 | Update utils.common.quote to escape unicode characters and inner escape sequences | lib/utils/common.js | lib/utils/common.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/. */
utils.common = {
objToString: function (obj) {
try {
return '' + obj
} catch (e) {
return '[... | JavaScript | 0 | @@ -680,24 +680,610 @@
ion (obj) %7B%0A
+ function escapeString (s) %7B%0A let escaped = s.replace(/%5C%5C/g, '%5C%5C%5C%5C')%0A .replace(/%5C%22/g, '%5C%5C%5C%22') // eslint-disable-line no-useless-escape%0A .replace(/%5C0/g, '%5C%5C0')%0A .replace(/%5Cn/g, '%5C%5Cn')%0A .replace(/... |
0dfecf5956ec5d49d3ab0cbc43f42758262ee798 | Make a HTTP request before the PhotoList renders | src/components/PhotoList.js | src/components/PhotoList.js | import React, { Component } from 'react';
import { Text, View } from 'react-native';
class PhotoList extends Component {
render() {
return (
<View>
<Text>Photo List!!</Text>
</View>
);
}
}
export default PhotoList;
| JavaScript | 0.000003 | @@ -77,16 +77,43 @@
native';
+%0Aimport axios from 'axios';
%0A%0Aclass
@@ -141,16 +141,152 @@
ponent %7B
+%0A componentWillMount() %7B%0A axios.get('https://jsonplaceholder.typicode.com/photos')%0A .then(respose =%3E console.log(respose));%0A %7D
%0A%0A rend
|
fb0b3a5131171b1ac57a824c5cd99e5b8a0d9199 | Fix tests broken due to new rule message text | tests/lib/rules/no-bitwise.js | tests/lib/rules/no-bitwise.js | /**
* @fileoverview Tests for no-bitwise rule.
* @author Nicholas C. Zakas
*/
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
var vows = require("vows"),
assert = require("assert"),... | JavaScript | 0.000005 | @@ -2910,16 +2910,12 @@
of
+'
%3C%3C
- found
+'
.%22);
@@ -3480,24 +3480,20 @@
use of
+'
%3E%3E
- found
+'
.%22);%0A
@@ -4060,17 +4060,13 @@
of
+'
%3E%3E%3E
- found
+'
.%22);
@@ -4946,15 +4946,11 @@
of
-~ found
+'~'
.%22);
|
46c3b26a6ef4eefc32ee00692c808b1c5e1389f8 | Add an extra line to the editor box. | src/js/views/editor.js | src/js/views/editor.js | (function(L) {
'use strict';
L.views.Editor = Backbone.View.extend({
initialize: function(options) {
if (!options) {
options = {};
}
this.initialContent = options.text || '';
this.actions = options.actions;
this.toolbarItems = options.toolbarItems;
this.autoResize = _... | JavaScript | 0 | @@ -771,16 +771,55 @@
'auto';%0A
+ // Don't hardcode height here.%0A
@@ -855,16 +855,21 @@
ight() +
+ 16 +
'px';%0A
|
25c9c553c6e3e778f7ee90c42a9ca9f6915def37 | fix vim mode +cleanup | lib/ace/keyboard/vim.js | lib/ace/keyboard/vim.js | /* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... | JavaScript | 0.000008 | @@ -2019,11 +2019,11 @@
-'i'
+%22i%22
: %7B%0A
@@ -2073,11 +2073,11 @@
-'I'
+%22I%22
: %7B%0A
@@ -2136,11 +2136,11 @@
-'a'
+%22a%22
: %7B%0A
@@ -2191,11 +2191,11 @@
-'A'
+%22A%22
: %7B%0A
@@ -2249,16 +2249,16 @@
-'
+%22
ctrl-f
-'
+%22
: %7B%0A
@@ -2304,16 +2304,16 @@
-'
+%22
c... |
61537dbd28c47362337ac70bd93e81a39c08d428 | add destroy method to dispose of the player properly Conflicts: src/components/core/core.js | src/components/core/core.js | src/components/core/core.js | // Copyright 2014 Globo.com Player authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
/**
* The Core is responsible to manage Containers, the mediator, MediaControl
* and the player state.
*/
var _ = require('underscore');
var $ = r... | JavaScript | 0.000001 | @@ -905,16 +905,51 @@
params;%0A
+ this.setupExternalInterface();%0A
this
@@ -987,16 +987,16 @@
lement;%0A
-
this
@@ -1298,16 +1298,118 @@
);%0A %7D,%0A
+ setupExternalInterface: function() %7B%0A this.params.player.destroy = this.destroy.bind(this);%0A %7D,%0A
load:
@@ -1569,32 +1569,32 @@
e... |
b85e46812c8e35a83c6e755e78996e66ed684efa | Fix previous commit from Sunday to Monday | src/utils.js | src/utils.js | import database from 'sqlite';
import {find} from 'lodash';
import moment from 'moment';
import {slack} from './resources';
import config from '../config'; // eslint-disable-line import/no-unresolved
/**
* Returns string with pretty printed json object
*
* @param {Object} json - json object
* @returns {string} - ... | JavaScript | 0.000097 | @@ -3947,17 +3947,16 @@
1)%0A if
-(
(now.day
@@ -3964,16 +3964,37 @@
) === 0
+%7C%7C (now.day() === 1
&& now.h
@@ -4009,27 +4009,8 @@
13)
- %7C%7C now.day() === 1
%7C%7C
|
c54da935ab98405e376bdacf4a3969dbadc999de | create dom elements only for visible cursors | lib/ace/layer/cursor.js | lib/ace/layer/cursor.js | /* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* 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 so... | JavaScript | 0 | @@ -5038,16 +5038,198 @@
, true);
+%0A if ((pixelPos.top %3E config.height + config.offset %7C%7C %0A pixelPos.top %3C -config.offset) && i %3E 1) %7B%0A continue;%0A %7D
%0A%0A
|
9c4076f8c7acd03bb17163a478b104571105dd87 | indent comment | src/utils.js | src/utils.js | import React from 'react'
import {connect} from 'react-redux'
import {bindMarkersActions} from './redux/markers'
/* electron */
import {remote} from 'electron'
const Identity = (a) => a
const doOnWindow = (fn) =>
(arg) => {
const window = remote.getCurrentWindow()
if (window) {
return fn(window, a... | JavaScript | 0 | @@ -1500,24 +1500,25 @@
/*
+*
%0A
@@ -1509,22 +1509,17 @@
%0A
-
+*
we're
@@ -1589,22 +1589,17 @@
%0A
-
+*
go bac
@@ -1612,22 +1612,17 @@
%0A
-
+*
*/%0A
|
8ff82ee2094c76a58cb5caa8ea74348c67add123 | include per-region data points | src/utils.js | src/utils.js | /*
* These are functions that are useful in many common use
* cases within Taskcluster projects. They should take an
* monitor to operate on as their first argument and return
* a function so that the real and fake classes can share
* them.
*/
let debug = require('debug')('taskcluster-lib-monitor');
let usage = r... | JavaScript | 0.000615 | @@ -3802,16 +3802,26 @@
measure(
+%60global.$%7B
operatio
@@ -3821,20 +3821,17 @@
peration
- + '
+%7D
.duratio
@@ -3831,17 +3831,17 @@
duration
-'
+%60
, reques
@@ -3872,33 +3872,276 @@
unt(
-operation + '.count', 1);
+%60global.$%7Boperation%7D.count%60, 1);%0A if (service.config && service.config.region) ... |
aa4077eae528b17b01de39971f4de63e44a8f6cf | update lang/defineProp -- add comments | src/lang/defineProp.js | src/lang/defineProp.js | var omit = require('../object/omit')
var extend = require('../object/extend')
var hasOwn = require('../object/hasOwn')
var isBoolean = require('./isBoolean')
var isFunction = require('./isFunction')
var isPlainObject = require('./isPlainObject')
va... | JavaScript | 0 | @@ -1378,16 +1378,25 @@
%0A// obj:
+ %5Bobject%5D
object
@@ -1417,16 +1417,25 @@
// prop:
+ %5BString%5D
propert
@@ -1454,16 +1454,33 @@
config:
+ %5BBoolean%7CObject%5D
boolean
@@ -1536,16 +1536,26 @@
merable:
+ %5BBoolean%5D
boolean
@@ -1579,16 +1579,35 @@
ey%0A// a:
+ %5BBoolean%7CFunction%5D
boolea... |
dd6a97d40fe6184b33bc77d00b7036e109d59f2e | Correct way to get global object -> typeof returns a string | src/utils.js | src/utils.js | const _ = {
isFunction: require('lodash/lang/isFunction'),
isObject: require('lodash/lang/isObject'),
extend: Object.assign, // require('lodash/object/extend'),
keys: Object.keys, // require('lodash/object/keys'),
each: (what, funct) => what.forEach(funct) // require('lodash/collection/each'),
};
function ge... | JavaScript | 0.000007 | @@ -395,24 +395,25 @@
of self !==
+'
undefined) %7B
@@ -401,32 +401,33 @@
f !== 'undefined
+'
) %7B%0A return s
@@ -455,24 +455,25 @@
global !==
+'
undefined) %7B
@@ -461,32 +461,33 @@
l !== 'undefined
+'
) %7B%0A return g
@@ -521,16 +521,17 @@
dow !==
+'
undefine
@@ -531,16 +531,17 @@
ndefined
+'
... |
0e4cae7f08d1fb630b821047f80bf840c93e0615 | fix merge error | src/layer/TileLayer.js | src/layer/TileLayer.js | /*
* L.TileLayer is used for standard xyz-numbered tile layers.
*/
L.TileLayer = L.Class.extend({
includes: L.Mixin.Events,
options: {
minZoom: 0,
maxZoom: 18,
tileSize: 256,
subdomains: 'abc',
errorTileUrl: '',
attribution: '',
unloadInvisibleTiles: L.Browser.mobileWebkit,
upd... | JavaScript | 0.000001 | @@ -5441,13 +5441,8 @@
%0A%09%7D%0D%0A%7D);
-%0A%7D);%0A
|
fc6c0bcdf4b2a42f6bb551718687eae06cdfb29b | add utils | src/utils.js | src/utils.js | var crypto = require('crypto')
var sha256 = (data) => crypto.createHash('sha256').update(data).digest()
var dsha256 = (data) => sha256(sha256(data))
var prefixBy = (what) => (to) => {
var bWhat = Buffer.from(what)
var payload = Buffer.concat([bWhat, to], bWhat.length + to.length)
return payload
}
var prefixTo... | JavaScript | 0.000004 | @@ -1270,16 +1270,81 @@
rn b%0A%7D%0A%0A
+var reverseHex = (hex) =%3E hex.match(/.%7B2%7D/g).reverse().join('')%0A%0A
module.e
@@ -1532,11 +1532,37 @@
teUIntLE
+,%0A reverseHex: reverseHex
%0A%7D%0A
|
0e916a082123b03f45067469fd24b44ac530c138 | Rename variable to better convey its meaning. | backend/server/db/model/experiment-datasets.js | backend/server/db/model/experiment-datasets.js | module.exports = function(r) {
const dbExec = require('./run');
const db = require('./db')(r);
const model = require('./model')(r);
const commonQueries = require('./common-queries');
return {
getDatasetsForExperiment,
getDataset,
createDatasetForExperiment,
addSample... | JavaScript | 0.000005 | @@ -2607,17 +2607,32 @@
let
-b
+matchingEntriesB
ySampleI
@@ -2738,17 +2738,32 @@
e_id in
-b
+matchingEntriesB
ySampleI
|
3d97291ef6db54c6406a82db120a6ade56b23cfb | Support disablePagination() hook (#90) | src/utils.js | src/utils.js | import sift from 'sift';
import {_, sorter as createSorter} from '@feathersjs/commons/lib/utils';
import {defer} from 'rxjs/observable/defer';
function getSource (originalMethod, args) {
return defer(() => originalMethod(...args));
}
function makeSorter (query, options) {
// The sort function (if $sort is set)
... | JavaScript | 0 | @@ -751,16 +751,32 @@
N(limit)
+ && limit !== -1
) %7B%0A
|
eed350b2b554efb78718d9dfcf5d5140cbdae2f7 | Replace method name. stringToArrayBuffer -> stringToBytes | src/utils.js | src/utils.js | /* require:
jsziptools.js
*/
/**
* convert from Array, ArrayBuffer or String to Uint8Array.
*
* @param {ArrayBuffer|Uint8Array|Array|string} buffer
* @return {Uint8Array}
*/
jz.utils.toBytes = function(buffer){
if(typeof buffer === 'string') buffer = jz.utils.stringToArrayBuffer(buffer);
return (buffer.... | JavaScript | 0.9997 | @@ -126,16 +126,44 @@
t8Array%7C
+Int8Array%7CUint8ClampedArray%7C
Array%7Cst
@@ -248,47 +248,63 @@
-if(typeof buffer === 'string') buffer =
+switch(buffer.constructor)%7B%0A case String: return
jz.
@@ -317,27 +317,21 @@
stringTo
-ArrayBuffer
+Bytes
(buffer)
@@ -340,78 +340,183 @@
-return (buff... |
141fce4bc489a2268ab60271a851bd5bfd96761a | Add utility function | src/utils.js | src/utils.js | export function flatten(arr) {
return arr.reduce((flattened, item) => flattened.concat(item), [])
}
export function zip(a1, a2) {
const times = a1.length >= a2.length ? a1.length : a2.length
const zipped = []
for (let i = 0; i < times; ++i) {
zipped.push([a1[i], a2[i]])
}
return zipped
}
export func... | JavaScript | 0.000007 | @@ -1019,8 +1019,212 @@
%0A %7D%0A%0A%7D%0A
+%0Aexport function findFirstTruthy(items, fn) %7B%0A for(let i = 0; i %3C items.length; ++i) %7B%0A const item = items%5Bi%5D%0A const fnVal = fn(item)%0A%0A if(fnVal) %7B%0A return fnVal%0A %7D%0A %7D%0A%0A return null%0A%7D%0A
|
5bf08394556c161889ae3d2118597ae59e450693 | Sanitize incoming string to exclude thousands-sep | src/utils.js | src/utils.js |
/*
* OBIS: Online Banking Is Shit
* A JavaScript framework for downloading bank statements
* Copyright (c) 2017 by Conan Theobald <me[at]conans[dot]co[dot]uk>
* MIT licensed: See LICENSE.md
*
* File: utils.js: Helper methods
*/
// jshint unused:true
/* globals obis,SparkMD5,jQuery */
/*
Methods:
htmlEscape... | JavaScript | 0.999975 | @@ -1999,24 +1999,133 @@
String ) %7B%0A%0A
+%09%09%09// Sanitize%0A%09%09%09decimalCurrencyString = ( decimalCurrencyString %7C%7C '0.00' ).replace( /%5B%5E0-9%5C.%5C-%5D/g, '' );%0A%0A
%09%09%09var float
|
71370fcd8183bc533fb3080f87281319c03ea470 | remove unnecessary check | lib/atom-ternjs-type.js | lib/atom-ternjs-type.js | 'use babel';
const TypeView = require('./atom-ternjs-type-view');
const TOLERANCE = 20;
import manager from './atom-ternjs-manager';
import packageConfig from './atom-ternjs-package-config';
import emitter from './atom-ternjs-events';
import {Range} from 'atom';
import {
prepareType,
prepareInlineDocs,
extractP... | JavaScript | 0.000001 | @@ -1283,59 +1283,8 @@
f (%0A
- !packageConfig.options.inlineFnCompletion %7C%7C%0A
@@ -4677,20 +4677,16 @@
roy() %7B%0A
-
%0A emi
|
8cb538107102e8fd95bf0c97b1747206fa7aa702 | Simplify type signature for identity | src/utils.js | src/utils.js | /**
* @flow
*/
import type Microcosm from './microcosm'
import { castPath, type KeyPath } from './key-path'
import { toStringTag } from './symbols'
type MixedObject = { [key: string]: mixed }
/**
* Generate a unique id
*/
let uidStepper = 0
export function uid(prefix: string): string {
return `${prefix}${uidSt... | JavaScript | 0.000001 | @@ -4570,20 +4570,14 @@
tity
-%3CT%3E
(n:
-T): T
+*)
%7B%0A
|
2cc2ad61afcd016d751e8eefe8862b21369a0181 | send name and property to other adapter in syncTo() | ObjAdapter.js | ObjAdapter.js | /** MIT License (c) copyright B Cavalier & J Hann */
(function (define) {
define(function () {
"use strict";
/**
* @constructor
* @param obj {Object}
* @returns {Watchable}
*/
function ObjAdapter(obj) {
this._obj = obj;
this._listeners = {};
// set blank bindings
this.setBindings({});
}
ObjAdap... | JavaScript | 0 | @@ -903,16 +903,19 @@
ter.set(
+p,
this._ob
|
8a7f68e21147e7372e79b19b9701d4fccd852174 | Remove optional parameter from server and enforce empty list everywhere | local-cli/dependencies/dependencies.js | local-cli/dependencies/dependencies.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const Metro = require('metro');
const denodeify = require('denodeify');
const fs = require('fs');
const path = require('p... | JavaScript | 0 | @@ -833,16 +833,17 @@
fined;%0A%0A
+%0A
const
@@ -902,16 +902,37 @@
Y_PATH,%0A
+ cacheStores: %5B%5D,%0A
proj
|
7c1b963fc9a4249b5d371a395458955e76556af5 | Check if selectors are matching before deleting the property | index.js | index.js | var postcss = require('postcss');
module.exports = postcss.plugin('postcss-media-queries-drop-redundant', function (opts) {
opts = opts || {};
var mediaRules = [];
return function (css, result) {
/* enrich media rules */
css.walkAtRules(/media/, function (media) {
mediaRules.... | JavaScript | 0.000001 | @@ -1666,16 +1666,71 @@
lues%5Bi%5D.
+walkRules(function (rule1) %7B%0A rule1.
walkDecl
@@ -1746,24 +1746,28 @@
n (decl1) %7B%0A
+
@@ -1834,24 +1834,28 @@
+
values%5Bj%5D.wa
@@ -1852,16 +1852,83 @@
lues%5Bj%5D.
+walkRules(function (rule2) %7B%0A ... |
2282a06d7e4f0ea473ac962a6b73935f29e90685 | fix the index, moving to the real code | index.js | index.js | /* global require, console, response, process */
// Module dependencies
var fs = require('fs');
var http = require('http');
var xml2js = require('xml2js');
var prettyjson = require('prettyjson');
// xml2js parser instance
var parser = new xml2js.Parser();
var storeID = process.argv[2];
// abort if missing store id
if... | JavaScript | 0.000024 | @@ -1513,534 +1513,34 @@
%0A%7D%0A%0A
-%0AcreateDIR(storeID);%0AcreateDIR(storeID + '/images');%0AcreateFile('catalog.xml', '');%0A//%0Ahttp.get('http://store.yahoo.com/' + storeID + '/catalog.xml', function(res) %7B%0A res.setEncoding('utf8');%0A res.on('data', function (chunk)%7B%0A fs.appendFile(storeI... |
03d7caceb256c3407c4c25ca9734707434e68782 | testd isPrime function | index.js | index.js |
const funcPrime = require('./funcPrime');
const funcHelper = require('./funcHelper');
console.log('Hello Functional Programming in JS');
// console.log(funcPrime.mersenneNumber(2));
// console.log(funcPrime.mersenneNumber(3));
// console.log(funcPrime.mersenneNumber(5));
// console.log(funcPrime.mersenneNumber(7));
... | JavaScript | 0.873036 | @@ -783,12 +783,49 @@
rn 2*x;%7D));%0A
+%0A%0Aconsole.log(funcPrime.isPrime(7));%0A
|
59d4eca5b2f10c8c050a69922515f419d0ad5493 | Update index.js | index.js | index.js | import React, { Component } from 'react'; // eslint-disable-line
import PropTypes from 'prop-types';
import {
StyleSheet,
Text,
TouchableOpacity,
View,
Modal,
Picker,
Dimensions,
TouchableWithoutFeedback,
Animated,
SafeAreaView,
Platform,
} from 'react-native'; // eslint-disable-line
const SCREEN_WIDTH ... | JavaScript | 0 | @@ -4425,30 +4425,8 @@
n (%0A
- %3CSafeAreaView%3E%0A
@@ -4819,16 +4819,34 @@
%7D%0A
+%09%09%09%3CSafeAreaView%3E%0A
@@ -5865,45 +5865,41 @@
ew%3E%0A
- %3C/Modal%3E%0A %3C/SafeAreaView
+%09%09%3C/SafeAreaView%3E%0A %3C/Modal
%3E%0A
|
23079026d73138020a0d3d09b39e5b7ebb91ec99 | Change behavior on wall hit | index.js | index.js | function start() {
sprite = document.getElementById("sprite");
score_box = document.getElementById("score");
highscore = 0;
jump = false;
moveSprite(2, -0.1, 50, false, [makeRect(-15, 5), makeRect(-30, 5), makeRect(-60, 10), makeRect(-95, 5), makeRect(-150, 40)], 0);
//velocity, gravity, x, left_side, [[rect, y... | JavaScript | 0 | @@ -2117,18 +2117,8 @@
city
- + gravity
;%0A%09%09
@@ -2364,17 +2364,17 @@
avity *
-1
+2
0;%0A%09%09%7D%0A%09
|
e17cb0318fdb5feca714fe54ab2f657ab8d3d9b1 | delete cb as soon as possible | index.js | index.js | var through = require('through')
var serialize = require('stream-serializer')()
function get(obj, path) {
if(Array.isArray(path)) {
for(var i in path)
obj = obj[path[i]]
return obj
}
return obj[path]
}
module.exports = function (obj, raw) {
var cbs = {}, count = 1, local = obj || {}
function f... | JavaScript | 0 | @@ -1618,74 +1618,119 @@
-cbs%5Bi%5D.apply(null, args)%0A delete cbs%5Bi%5D //no longer need this
+var cb = cbs%5Bi%5D%0A delete cbs%5Bi%5D //delete cb before calling it, incase cb throws.%0A cb.apply(null, args)
%0A
|
7382af4e00229f3386e9795e805b8c9244cdaf6c | update home view url, update regex to not match )).constant | index.js | index.js | 'use strict';
var Q = require('q');
var request = Q.denodeify(require('request'));
var chromecastHomeURL = 'https://clients3.google.com/cast/chromecast/home/v/c9541b08';
var initJSONStateRegex = /(JSON\.parse\(.+'\))/;
var parseChromecastHome = function(htmlString) {
var JSONParse = htmlString.match(initJSONStat... | JavaScript | 0.000007 | @@ -155,19 +155,8 @@
home
-/v/c9541b08
';%0Av
@@ -198,14 +198,19 @@
se%5C(
+'
.+'%5C))
+%5C)%5C.
/;%0A%0A
@@ -266,25 +266,23 @@
var
-JSONParse
+matches
= htmlS
@@ -312,16 +312,45 @@
teRegex)
+;%0A var JSONParse = matches
%5B1%5D;%0A
|
07987279c76e357d5efbcbe61a2fc6d43918df67 | Refactor internal API | index.js | index.js | var Mailgun = require('mailgun').Mailgun
function Logger (opts) {
this.email = opts.email
this.mailgun = new Mailgun(opts.apiToken)
}
Logger.prototype.send = function send (message, cb) {
if (message.length > 250) {
cb(new Error('Unable to post message. Message length must be <=250 characters'))
return
... | JavaScript | 0.000001 | @@ -448,19 +448,169 @@
il,
-apiToken) %7B
+opts) %7B%0A if (!opts) %7B%0A opts = %7B%7D%0A %7D%0A%0A if (typeof email === 'object') %7B%0A opts = email%0A %7D%0A%0A if (typeof email === 'string') %7B%0A opts.email = email%0A %7D%0A
%0A r
@@ -630,23 +630,12 @@
ger(
-email, apiToken
+opts
)%0A%7D%0A
|
46388eebfc6e4147e1f16c42e943b2aaad5850e1 | Allow addon dummy apps to use pods | index.js | index.js | /* jshint node: true */
'use strict';
var Funnel = require('broccoli-funnel');
var Concat = require('broccoli-concat');
var Merge = require('broccoli-merge-trees');
var ProcessStyles = require('./lib/pod-style.js');
var ExtractNames = require('./lib/pod-names.js');
var IncludeAll = require('./lib/include-all.js');
mod... | JavaScript | 0 | @@ -707,16 +707,36 @@
lePrefix
+ && !this._isAddon()
? this.
|
b11ce04f3f53dd01886dc73e7a12cd31061c97f8 | Use singlequotes instead of douglequotes | index.js | index.js | 'use strict';
const fs = require('fs');
const path = require('path');
const url = require('url');
const fileUrl = require('file-url');
const Promise = require('bluebird');
const showdown = require('showdown');
const showdownEmoji = require('showdown-emoji');
const cheerio = require('cheerio');
const pdf = require('html... | JavaScript | 0 | @@ -1809,29 +1809,29 @@
ME,
-%22
+'
.config
-%22, %22
+', '
mdpdf
-%22, %22
+', '
styl
@@ -1835,17 +1835,17 @@
tyle.css
-%22
+'
);%0A%09%09if
|
a3219700e7ce48b52add88adfb6d12d91b72b15f | Fix point form | index.js | index.js | // http://en.wikipedia.org/wiki/Even%E2%80%93odd_rule
// modified from: https://github.com/substack/point-in-polygon/blob/master/index.js
// which was modified from http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html
/**
* Checks to see if a {@link Point} is inside of a {@link Polygon}. The Polygon... | JavaScript | 0.000024 | @@ -638,24 +638,25 @@
turf.point(
+%5B
-111.467285,
@@ -668,29 +668,12 @@
5766
-);%0A * pt1.properties%5B
+%5D, %7B
'mar
@@ -686,18 +686,18 @@
lor'
-%5D =
+:
%22#f00%22
+%7D)
;%0A *
@@ -718,16 +718,17 @@
f.point(
+%5B
-111.873
@@ -745,29 +745,12 @@
7303
-);%0A * pt2.properties%5B
+%5D, %7B
'mar
@@ -763,18 ... |
e57af80f6a3eaa79b5ec80a1ac4c6960ac978fd8 | add suffix option to jsdoc comment | index.js | index.js | /*!
* response-time
* Copyright(c) 2011 TJ Holowaychuk
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/
'use strict'
/**
* Module dependencies
* @api private
*/
var deprecate = require('depd')('response-time')
var onHeaders = require('on-headers')
/**
... | JavaScript | 0.000001 | @@ -602,16 +602,58 @@
e-Time%5D%0A
+ * @param %7Bboolean%7D %5Boptions.suffix=true%5D%0A
* @retu
|
25ebd289878fbba07d6c90fdc2a3501b54baf977 | Add options for Channel Server | index.js | index.js | var fs = require('fs');
var path = require('path');
var argv = require('optimist').argv;
var utils = require('./utils');
var loadJsonSync = function(filePath) {
if( filePath ){
try {
var data = fs.readFileSync(filePath);
return JSON.parse(data.toString());
} catch (ex) {
console.error... | JavaScript | 0.000001 | @@ -3021,57 +3021,345 @@
ns%5B'
-push'%5D = config.push %7C%7C utils.getPushConfig()
+mongodb'%5D = config.mongodb %7C%7C process.env.MONGODB;%0A options%5B'master'%5D = config.master %7C%7C process.env.MASTER_KEY %7C%7C 's3cR3T';%0A options%5B'app'%5D = config.app %7C%7C process.env.APP_ID %7C%7C 'STALK... |
0d2cbfa177248b24ec4995adc9669e969b07bddd | Add error request failed | index.js | index.js | var http = require ('httpreq');
var config = {
email: null,
apikey: null,
timeout: 5000
};
function talk (props, callback) {
var options = {
url: 'https://gtmetrix.com/api/0.1/' + props.path,
parameters: props.params || null,
method: props.method || 'GET',
timeout: config.timeout || 5000,
a... | JavaScript | 0.000001 | @@ -681,16 +681,145 @@
null;%0A%0A
+ if (err) %7B%0A error = new Error ('request failed');%0A error.error = err;%0A callback (error);%0A return;%0A %7D%0A%0A
if (
|
8423d3e377afcd68c249d314fdcd7dd44026e781 | add scripts/rollup-plugin dir | lib/configs/_special.js | lib/configs/_special.js | /**
* @author Toru Nagashima
* See LICENSE file in root directory for full license.
*/
"use strict"
const { merge } = require("../utils")
const nodeConfig = require("./+node")
const relaxConfig = {
rules: { "no-console": "off", "no-process-env": "off" },
}
const jsConfig = merge({}, nodeConfig, nodeConfig.over... | JavaScript | 0 | @@ -660,24 +660,64 @@
/**/*.mjs%22,%0A
+ %22**/scripts/rollup-plugin/**/*.js%22,%0A
%22rollup.
|
f4bae0ce4b7eeb7f0d18d3fbdd6e265a7ecc8ecb | Use ['catch'] instead of .catch so IE 8 does not crash | index.js | index.js | module.exports = function (walkCreator) {
return function (context) {
var dispatch = context.dispatch
return function (next) {
return function (action) {
var walk = walkCreator(action)
var dispatchWith = dispatcher(dispatch)(walk)
findError(walk, action)(action.type)
i... | JavaScript | 0.000004 | @@ -685,14 +685,17 @@
lve)
-.
+%5B'
catch
+'%5D
(rej
|
9c9f62242cec0c96a2b2287d444f5a9884493956 | remove a bunch of extraneous callbacks | lib/control/services.js | lib/control/services.js | /*
* Licensed to Cloudkick, Inc ('Cloudkick') under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* Cloudkick licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not us... | JavaScript | 0.000031 | @@ -2398,38 +2398,28 @@
Service(name
-, callback
) %7B%0A
+
var j = ne
@@ -2534,34 +2534,24 @@
Service(name
-, callback
) %7B%0A var j
@@ -2669,34 +2669,24 @@
Service(name
-, callback
) %7B%0A var j
@@ -2801,34 +2801,24 @@
Service(name
-, callback
) %7B%0A var j
@@ -2903,32 +2903,32 @@
return j;%0A%... |
9670aee233977c5295097c7c5a9c0dc37823b32b | Fix identation. | src/lib/try-promise.js | src/lib/try-promise.js | import Success from './success';
import Failure from './failure';
import TryError from './try-error';
import ValidationUtil from './validation-util';
class TryPromise {
constructor(promise) {
this.promise = promise.catch(err => new TryError(err));
}
filter(fn) {
ValidationUtil.requireNonN... | JavaScript | 0.000003 | @@ -877,24 +877,25 @@
n) %7B%0A
+
return new T
|
ec4b227511b1c08a82cfc513c1a70a9ea004d020 | fix hook main call | index.js | index.js | module.exports = function(params) {
var that = this;
var configs = params.configs;
var dependecies = configs.dependency;
var singletons = {};
var Q = require('q');
if (params.container) {
this.container = params.container;
} else {
this.container = require('./dependable').container();
}
this.get = functi... | JavaScript | 0.000001 | @@ -2143,28 +2143,40 @@
p.apply(
-inheritScope
+that.get(dependencyName)
, args);
|
2b613e0a1e5fe626f57e86eeec5aa50b24c699fb | fix for #215 “nodejitsu deploy not working anymore”, will create pull-request | lib/core/environment.js | lib/core/environment.js | /**
* This module returns appropriate config values for the provided
* platform, environment and project. It is used directly by the start
* script in the bin directory.
*/
var fs = require('fs');
var url = require('url');
var path = require('path');
var ports = require('ports');
var _ = require('underscore');
var... | JavaScript | 0 | @@ -2892,14 +2892,16 @@
_.
-extend
+defaults
(cfg
|
4aa13c6551d58482855d80c50a83baee6cd96c82 | allow additional endpoints | src/mpay24.js | src/mpay24.js | const soap = require('soap')
const js2xmlparser = require('js2xmlparser')
const pkg = require('../package.json')
const helper = require('./helper.js')
function mpay24() {
if (!(this instanceof mpay24)) {
return new mpay24()
}
return this
}
mpay24.wsdl = 'https://www.mpay24.com/soap/etp/1.5/ETP.wsdl'
mpay24... | JavaScript | 0 | @@ -890,68 +890,212 @@
nst
-prefix = environment === 'TEST' ? 'test' : 'www'%0A const
+ep = '/app/bin/etpproxy_v15'%0A let mpayEndpoint%0A switch (environment) %7B%0A case 'TEST':%0A mpayEndpoint = %60https://test.mpay24.com$%7Bep%7D%60%0A break%0A case 'LIVE':%0A ... |
40ae0acdbe742c5e7dc787c8c7c399f912a3f1f0 | Allow gh-pages branch | index.js | index.js | 'use strict'
var os = require('os')
var fs = require('fs')
var path = require('path')
var exec = require('child_process').exec
var afterAll = require('after-all-results')
exports.isGit = function (dir, cb) {
fs.exists(path.join(dir, '.git'), cb)
}
exports.isGitSync = function (dir) {
return fs.existsSync(path.jo... | JavaScript | 0 | @@ -166,16 +166,61 @@
ults')%0A%0A
+var VALID_BRANCHES = %5B'master', 'gh-pages'%5D%0A%0A
exports.
@@ -605,27 +605,40 @@
ean(
-branch !== 'master'
+!~VALID_BRANCHES.indexOf(branch)
%7C%7C%0A
|
4df2f7cc450419a5e3dfad6a774a819b895d1de0 | Add missing semicolon | index.js | index.js | /* eslint-env node */
'use strict';
var path = require('path');
var Funnel = require('broccoli-funnel');
var mergeTrees = require('broccoli-merge-trees');
var map = require('broccoli-stew').map;
var defaults = {
assetPath: 'vendor'
};
module.exports = {
name: 'ember-spectrum-color-picker',
included: function(... | JavaScript | 0.999999 | @@ -757,16 +757,17 @@
icker'))
+;
%0A var
|
8cc04d2c3633986f4a09be861a40f5d59f73178a | Update jsdoc | lib/data/ExampleFile.js | lib/data/ExampleFile.js | var serialize = require('./utils/serialize');
/**
* @param {Object} [data]
* @constructor
*/
function ExampleFile(data) {
var data = data || {};
this.id = data.id || null;
this.type = data.type || null;
this.source = data.source || null;
this.context = data.context || null;
this.attrs = data.attrs || {... | JavaScript | 0.000001 | @@ -67,14 +67,72 @@
ct%7D
-%5Bdata%5D
+data%0A * @param %7Bstring%7D data.type%0A * @param %7Bstring%7D data.source
%0A *
|
f874bc49ed391c8ac4b1864af92fb75c8e872621 | Replace tabs with spaces | index.js | index.js | var map = require('map-stream');
var util = require('util');
var path = require('path');
var table = require('text-table');
var f = require('sprintf-js').sprintf;
var chalk = require('chalk');
var plur = require('plur');
var symb = require('log-symbols');
var extend = require('extend');
var strLen = require('string-len... | JavaScript | 0.001329 | @@ -4886,17 +4886,24 @@
porter(%0A
-%09
+
stats%5Bop
@@ -4927,17 +4927,17 @@
%0A
-%09
+
stats%5Bop
@@ -4964,9 +4964,9 @@
-%09
+
exte
|
a774afd7deb762a86521c38f3baa0d2f500390e4 | Add HMR | index.js | index.js | import config from './config';
import apiRouter from './api/index';
import sassMiddleware from 'node-sass-middleware';
import path from 'path';
import express from 'express';
import webpackDevMiddleware from 'webpack-dev-middleware';
import webpackHotMiddleware from 'webpack-hot-middleware';
import webpackHotServerMidd... | JavaScript | 0.000001 | @@ -1,12 +1,49 @@
+import apiRouter from './api/index';%0A
import confi
@@ -72,35 +72,54 @@
ort
-apiRouter from './api/index
+express from 'express';%0Aimport path from 'path
';%0Ai
@@ -179,54 +179,75 @@
ort
-path from 'path';%0Aimport express from 'express
+webpack from 'webpack';%0Aimport webpackConfig from './... |
4a6fbf4e1c3fa9be58dc4112edbae6f1e52245fe | Move flatten function into exported index object | index.js | index.js | var _ = require('lodash');
var lib = './lib/';
var exports = {};
exports.Actions = {
ErrorHandlingActionCreators: require('./lib/actions/ErrorHandlingActionCreators'),
FormActions: require('./lib/actions/FormActionCreators')
};
exports.Components = {
Global: {
AlertHandler: require('./lib/components/gl... | JavaScript | 0.000001 | @@ -3608,16 +3608,34 @@
%7B*%7D%0A */%0A
+exports.Flatten =
function
@@ -3635,23 +3635,16 @@
unction
-flatten
(object,
@@ -4064,16 +4064,17 @@
paths;%0A%7D
+;
%0A%0A/**%0A *
@@ -4412,17 +4412,25 @@
tened =
-f
+exports.F
latten(e
|
5b46266a5155cd6576ff7fe2aa2c8561cd485087 | fix none-www redirect | index.js | index.js | import Koa from 'koa';
import path from 'path';
import api from './routes/index';
import handel from './routes/handel';
import config from './config/config';
import mongoose from 'mongoose';
import convert from 'koa-convert';
import Bodyparser from 'koa-bodyparser';
import Koaerror from 'koa-onerror';
import logger fro... | JavaScript | 0.000009 | @@ -953,16 +953,22 @@
app.use(
+async
(ctx, ne
@@ -1110,24 +1110,60 @@
.host)%0A %7D
+ else %7B%0A await next();%0A %7D%0A
%0A%7D);%0Aapp.use
|
6334f5b4efdd5682aec82df0bd399590e685ac1d | Add embedded JS to list of supported scopes (#62) | index.js | index.js | /** @babel */
import {CompositeDisposable} from 'atom';
import {install} from 'atom-package-deps';
import fix from './lib/fix';
import format from './lib/format';
import lint from './lib/lint';
const SUPPORTED_SCOPES = [
'source.js',
'source.jsx',
'source.js.jsx'
];
export function activate() {
install('linter-xo... | JavaScript | 0 | @@ -260,16 +260,44 @@
.js.jsx'
+,%0A%09'source.js.embedded.html'
%0A%5D;%0A%0Aexp
|
c699a57b74ff0d11f05f192016faa6ba7f24dce5 | Remove workaround for obsolete environments | index.js | index.js | /*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
// The _isBuffer check is for Safari 5-7 support, because it's missing
// Object.prototype.constructor. Remove this eventually
module.exports = function (obj) {
return obj != nul... | JavaScript | 0.000001 | @@ -137,135 +137,8 @@
*/%0A%0A
-// The _isBuffer check is for Safari 5-7 support, because it's missing%0A// Object.prototype.constructor. Remove this eventually%0A
modu
@@ -159,16 +159,25 @@
unction
+isBuffer
(obj) %7B%0A
@@ -203,102 +203,8 @@
l &&
- (isBuffer(obj) %7C%7C isSlowBuffer(obj) %7C%7C !!obj._isBuffer... |
29e8de42ea63a06d3cdfefb5fe30a3124fff9f20 | Fix transpiling in index.js | index.js | index.js | #!/usr/bin/env node
/* eslint-disable no-console, no-var, vars-on-top, func-names */
var Promise = require('bluebird');
var appPromise;
function createSpacer(title) {
return [
'-------------------',
title,
'-------------------',
'\n',
].join(' ');
}
if (process.env.NODE_ENV === 'production') {
r... | JavaScript | 0.000134 | @@ -113,16 +113,44 @@
bird');%0A
+var path = require('path');%0A
var appP
@@ -424,16 +424,82 @@
.exec);%0A
+ var babel = path.resolve(__dirname, 'node_modules/.bin/babel');%0A
appPro
@@ -510,22 +510,25 @@
= exec(
-'
babel
+ + '
src -d
|
fc05aba56a48b1f151c3fca92b40e202ddcc0075 | Fix bad catch grammar | index.js | index.js | 'use strict';
/**
* Configures and builds a seneca instance
* that uses AMQP as its transport, declaring clients
* and listeners.
*
* Expects a configuration object like this:
*
* {
* "seneca": {
* "timeout": 3000
* },
* "amqp": {
* "hostname": "dev.rabbitmq.com",
* "port": 5672,
* "username": ... | JavaScript | 0.999995 | @@ -688,18 +688,18 @@
*/%0A%0A
-const util
+var seneca
= r
@@ -706,20 +706,22 @@
equire('
-util
+seneca
');%0Acons
@@ -722,22 +722,20 @@
;%0Aconst
-seneca
+util
= requi
@@ -730,38 +730,36 @@
util = require('
-seneca
+util
');%0Aconst Promis
@@ -1179,16 +1179,20 @@
%7D catch
+ (e)
%7B%0A r
|
d503de9fa3dcc080f89d3b64e459c471b57a575a | Change david login tapp size | src/constants/login-tapp.js | src/constants/login-tapp.js | /* eslint-disable prefer-destructuring */
import getDavidVersion from '../utils/getDavidVersion';
import { getUrlParameters } from '../utils/url-parameter';
export const LOGIN_TAPP_ID = -1;
const loginTapps = [
'https://tapp03.tobit.com/ChaynsWebLightLogin/?AppVersion=##version##&OS=##os##&colormode=##colormode##... | JavaScript | 0.000008 | @@ -1353,17 +1353,17 @@
x: 4
-2
+0
0,%0A
@@ -1381,10 +1381,10 @@
y: 2
-88
+50
,%0A
|
4efd6a30d3871ec773a54f16656d548eed48b2bc | use new fork/switch api, where you can add a stream | index.js | index.js |
//box the messages in a stream so that you can
//track data/end and the id of that stream.
var fork = require('pull-fork')
var many = require('pull-many')
var pair = require('pull-pair')
var pull = require('pull-stream')
var u = require('./util')
var pullFSM = require('./fsm')
module.exports = function (onConnecti... | JavaScript | 0 | @@ -96,16 +96,52 @@
r fork =
+ require('pull-switch')%0A//var fork =
require
@@ -351,16 +351,22 @@
nnection
+, name
) %7B%0A%0A v
@@ -632,43 +632,8 @@
) %7B%0A
- console.log('createPairs', id)%0A
@@ -721,16 +721,17 @@
sides.%0A
+%0A
if(!
@@ -825,21 +825,16 @@
source:
-pull(
p.source
@@ -838,90... |
87f66b9b7b4d19786319df73a69940e8a2570fab | Change instanceRef with applyRef util in BaseControl | src/controls/BaseControl.js | src/controls/BaseControl.js | import React from 'react';
import PropTypes from 'prop-types';
import * as events from '../util/events';
import { getProp, isControlledProp } from '../util/props';
import { ParentContext } from '../Context';
export class BaseControl extends React.Component {
constructor() {
super();
this.state = { instance:... | JavaScript | 0 | @@ -201,16 +201,52 @@
ontext';
+%0Aimport applyRef from '../util/ref';
%0A%0Aexport
@@ -1782,54 +1782,22 @@
-if (typeof instanceRef === 'function') %7B%0A
+applyRef(null,
ins
@@ -1796,33 +1796,34 @@
ull, instanceRef
-(
+,
instance);%0A %7D
@@ -1816,22 +1816,16 @@
stance);
-%0A %7D
%0A%0A re... |
90c668ac0625ba403d76e048ed4224791a99032e | decode uri | index.js | index.js | /**
*
*/
var fs=require('fs');
var http=require('http');
var async=require('async');
var documentRoot='./html/';
var devices=[
{
name:'Pin 7',
direction:'in',
}
]
function printFile(file, res){
}
var server=http.createServer(function(req, res) {
... | JavaScript | 0.999999 | @@ -706,24 +706,68 @@
%09%09%09%09%7D);%0A%09%09%09%09
+file=file.replace(encodeURI(' %7C '), ' %7C '));
%0A%09%09%09%09async.m
|
2b215df9242c7788209b73962ea9325d3bd61595 | load override config on end | index.js | index.js | /**
* Module dependencies
*/
var winston = require('winston'),
fs = require('fs'),
glob = require('glob');
exports = module.exports = yanlog;
/**
* Default configuration
*/
var defaultConfig = {
"configuration": {
"appender": {
"name": "console",
"transports": [{
... | JavaScript | 0.000001 | @@ -1134,55 +1134,8 @@
) %7B%0A
- console.log(%22reconfiguration%22)%0A
@@ -2243,25 +2243,43 @@
-cache
+var appenderList
= %7B%7D
-;
+,
%0A
-a
+ newA
ctiv
@@ -2294,15 +2294,22 @@
= %5B%5D
-;%0A r
+,%0A newR
ootL
@@ -2326,34 +2326,8 @@
ll;%0A
- var appenderList = %7... |
636a456614774785e414471559ddc16d47f0be56 | Should fix #30 | index.js | index.js | var Hapi = require("hapi");
var masterConfig = require("./config/config");
var serverConfig = masterConfig.config;
var server = new Hapi.Server(serverConfig.hostname, serverConfig.port, serverConfig.options);
var home = require("./lib").Home;
var user = require("./lib").User;
var admin = require("./lib").Admin;
serve... | JavaScript | 0.99993 | @@ -2688,17 +2688,16 @@
%7Bhashkey
-*
%7D%22,%0A%09%09%09c
@@ -2734,25 +2734,8 @@
firm
-,%0A%09%09%09%09auth: false
%0A%09%09%09
|
3238a88ff8ebb590d97246a6fd662f12d0117e76 | Use current year if none given | index.js | index.js | #! /usr/bin/env node
var fs = require('fs');
var program = require('commander');
const licensesPath = __dirname + '/licenses/';
function validateLicense(license) {
license = license.toLowerCase();
const licenses = fs.readdirSync(licensesPath);
if (licenses.indexOf(license) > -1) {
return license;
} else {... | JavaScript | 0.015418 | @@ -913,27 +913,70 @@
user
- && program.year) %7B
+) %7B%0A var year = program.year %7C%7C new Date().getFullYear();
%0A
@@ -1046,24 +1046,16 @@
year%5D',
-program.
year);%0A
|
b9e6bbd610a4e4590c8efa60eb088b42a2ac0800 | Add basic error handling | index.js | index.js | #!/usr/bin/env /usr/local/bin/node
// <bitbar.title>BitBus</bitbar.title>
// <bitbar.version>v1.0</bitbar.version>
// <bitbar.author>Robert Benjamin</bitbar.author>
// <bitbar.author.github>robertbenjamin</bitbar.author.github>
// <bitbar.desc>A BitBar menubar app for seeing when the next bus arrives at my work.</bitb... | JavaScript | 0.000003 | @@ -1005,16 +1005,141 @@
res) %7B%0A
+ if (err %7C%7C !res.ok) %7B%0A bitbar(%5B%7B%0A text: ':bus: no internet :(',%0A color: menuColor%0A %7D%5D);%0A return;%0A %7D%0A %0A
var re
@@ -2038,11 +2038,12 @@
(menu);%0A
+%0A
%7D);
|
0fdfc93ecf6c5ff67ccd6617606e9e3e4f7a9a7b | remove unused objects and functions | index.js | index.js | var NAME = 'gulp-html-to-json';
var fs = require("fs"),
path = require("path"),
es = require("event-stream"),
gutil = require("gulp-util"),
marked = require('marked'),
glob = require('glob'),
frontmatter = require('front-matter');
_DIRECTIVE_REGEX = /^(.*=\s*([\w\.\*\/-]+)... | JavaScript | 0.000001 | @@ -224,17 +224,16 @@
glob'),%0A
-%0A
fron
@@ -268,18 +268,16 @@
ter');%0A%0A
-%0A%0A
_DIRECTI
@@ -2075,23 +2075,25 @@
unction
-include
+htmtojson
(file, c
@@ -2610,78 +2610,8 @@
);%0A%0A
- //file.path = gutil.replaceExtension(file.path, '.json');%0A
@@ -2886,18 +2886,16 @@
%0A %7D%0A%0... |
6efbd7dcbd641e65d610f24da3f82cfd57387371 | Remove comment | lib/getPropertyValue.js | lib/getPropertyValue.js | 'use strict';
// const propertyPattern = /(?:^|\.)(\w+(\(.*?\))|\w+(\[.*?\])|\w+)/g;
const propertyPattern = /(?:^|\.)((\w+(\(.*?\)))|\w+(\[.*?\])|\[.+?\]|\w+)/g;
const bracketPattern = /^\[(.+)\]$/;
const chainedBracketPattern = /^(.+)\[(.+)\]$/;
const propertyFunctionPattern = /^(.+)\((.*)\)$/;
function getProperty... | JavaScript | 0 | @@ -12,79 +12,8 @@
';%0A%0A
-// const propertyPattern = /(?:%5E%7C%5C.)(%5Cw+(%5C(.*?%5C))%7C%5Cw+(%5C%5B.*?%5C%5D)%7C%5Cw+)/g;%0A
cons
|
8a709220be0db07ad50e0ac7be8e92f3beed481a | remove ES6 features (node v4 compatibility) | index.js | index.js | const fetch = require('node-fetch');
const url = require('url');
const externals = [];
const internals = [];
var hasErrors;
function processLink(ctx, link) {
// If it's external with no scheme, use the default
if (link.startsWith('//'))
link = ctx.config.defaultScheme + link;
// Parse the link
... | JavaScript | 0 | @@ -1,13 +1,11 @@
-const
+var
fetch =
@@ -28,21 +28,19 @@
etch');%0A
-const
+var
url = r
@@ -55,21 +55,19 @@
url');%0A%0A
-const
+var
externa
@@ -75,21 +75,19 @@
s = %5B%5D;%0A
-const
+var
interna
@@ -605,14 +605,21 @@
-err =%3E
+function(err)
%7B%0A
@@ -1301,17 +1301,24 @@
ush(
+function(
output
... |
454323d88a6a5db844e20580ad6372c27c90568c | Use `charAt` | index.js | index.js | var decode = require('base64-decode');
var crypto = require('crypto');
var ANTI_CHEAT_CODE = 'Fe12NAfA3R6z4k0z';
var SALT = 'af0ik392jrmt0nsfdghy0';
function parse(save) {
if (save.indexOf(ANTI_CHEAT_CODE) > -1) {
var result = save.split(ANTI_CHEAT_CODE);
save = '';
for (var i = 0; i < result[0].length;... | JavaScript | 0.000002 | @@ -351,11 +351,18 @@
t%5B0%5D
-%5Bi%5D
+.charAt(i)
;%0A
|
9f4e13ebafcd574c3b9c159fd550934f071d2bed | remove check for `Number.isSafeInteger` | index.js | index.js | /*!
* is-odd <https://github.com/jonschlinkert/is-odd>
*
* Copyright (c) 2015-2017, Jon Schlinkert.
* Released under the MIT License.
*/
'use strict';
const isNumber = require('is-number');
module.exports = function isOdd(value) {
const n = Math.abs(value);
if (!isNumber(n)) {
throw new TypeError('expec... | JavaScript | 0 | @@ -418,16 +418,23 @@
%0A if (!
+Number.
isSafeIn
@@ -437,32 +437,32 @@
feInteger(n)) %7B%0A
-
throw new Er
@@ -540,190 +540,4 @@
%7D;%0A%0A
-function isSafeInteger(n) %7B%0A if (typeof Number.isSafeInteger === 'function') %7B%0A return Number.isInteger(n) && (n %3C= Number.MAX_SAFE_INTEGER);%0A %7D%0A ... |
5db6c29b84b81b8250dd35b42e96b89e5bea0c56 | Remove unused throttle | index.js | index.js | var Stream = require('stream');
var util = require('util');
function Camera(options) {
var self = this;
Stream.call(self);
options = options || {};
if (options.THREE) options = {game:options};
if (!options.game) throw new Error('Must specify a game.');
self.game = options.game;
options.marker = options.... | JavaScript | 0.000001 | @@ -1779,27 +1779,8 @@
tPng
- && !self._throttle
) %7B%0A
|
61d4946586355a24a73cfa12226fcfe0b2404048 | add pushonly option | index.js | index.js | // qb-relyq/index.js
// Provide relyq backend for qb
var relyq = require('relyq')
, async = require('async')
, _ = require('underscore')
module.exports = backend
var default_options = {
prefix: 'qb', //qb-relyq: Base prefix of all redis keys
clean_finish: true, //relyq: Don't keep jobs after being finished
... | JavaScript | 0.000001 | @@ -1128,16 +1128,82 @@
checks%0A
+ pushonly: false, //qb-relyq: Dont execute tasks on this process%0A
specif
@@ -2023,16 +2023,32 @@
stener =
+ opts.pushonly ?
queue.l
@@ -2058,16 +2058,23 @@
en(opts)
+ : null
%0A%0A
@@ -2278,16 +2278,28 @@
)%0A%0A
+ listener &&
listene
|
a43825cc25e0712249104d0e54066754f421a6ff | Add parameter disableStructuralMinification, disabling the csso structual minification if true | index.js | index.js | /*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var csso = require("csso");
var SourceNode = require("source-map").SourceNode;
var loaderUtils = require("loader-utils");
module.exports = function(content) {
this.cacheable && this.cacheable();
var result = [];
var q... | JavaScript | 0.00003 | @@ -487,24 +487,61 @@
ompress(tree
+, query.disableStructuralMinification
);%0A%09%09tree =
|
7f96686aa219502dfa741a582761460402404eee | Fix tabs | Server/app.js | Server/app.js | var serialport = require("serialport"),
sqlhelper = require("./sql-helper"),
dateTime = require('node-datetime');
// var serialPortName = "/dev/ttyUSB0";
var serialPortName = "COM2";
var serialPort = new serialport(serialPortName, {
baudrate: 9600,
dataBits : 8,
parity : 'none',
stopBits: 1,
flowControl : fa... | JavaScript | 0.000002 | @@ -1652,25 +1652,24 @@
= null)%0A%09%09%09%09
-%09
var latVal =
@@ -1849,33 +1849,32 @@
ng(4,9))/60;%0A%09%09%09
-%09
if(geoJSON%5B%22long
@@ -1912,33 +1912,32 @@
tude%22%5D != null)%0A
-%09
%09%09%09%09var longVal
@@ -2129,17 +2129,16 @@
/60;%0A%09%09%09
-%09
if(geoJS
@@ -2190,17 +2190,16 @@
= null)%0A
-%09... |
b2469178f0a1ee4a5eec17eed7a8d59109db044d | handle time queries | lib/influx-connector.js | lib/influx-connector.js | 'use strict';
var influx = require('influx');
var debug = require('debug')( 'connector:influxdb' );
exports.initialize = function initializeDataSource(dataSource, callback) {
var settings = dataSource.settings || {};
dataSource.connector = new InfluxDBConnector( settings );
callback && process.nextTick(call... | JavaScript | 0.000006 | @@ -2196,122 +2196,462 @@
-whereClause.push('%22' + k + '%22' + operators%5Bp%5D + %22'%22 + obj%5Bk%5D%5Bp%5D + %22'%22);%0A %7D%0A %7D%0A %7D else %7B
+var val = obj%5Bk%5D%5Bp%5D;%0A if( !isNaN(val) && k == 'time' ) %7B%0A val += 's';%0A %7D e... |
eed3a76e990ccbe535bdb1869dc65d10651ab1d9 | Replace connect.static with mincer.server | lib/init/http_assets.js | lib/init/http_assets.js | "use strict";
/*global nodeca, _*/
// stdlib
var fs = require('fs');
var path = require('path');
// 3rd-party
var Mincer = require('mincer');
var Environment = Mincer.Environment;
var Manifest = Mincer.Manifest;
var UglifyJS = require('uglify-js');
var Csso = require('csso');
var connect ... | JavaScript | 0.00008 | @@ -154,81 +154,8 @@
');%0A
-var Environment = Mincer.Environment;%0Avar Manifest = Mincer.Manifest;%0A
var
@@ -1070,16 +1070,23 @@
= new
+Mincer.
Environm
@@ -1138,16 +1138,23 @@
= new
+Mincer.
Manifest
@@ -2812,16 +2812,38 @@
;%0A %7D%0A%0A%0A
+ // compile manifest%0A
manife
@@ -3086,53 +3086,82... |
fdc1012c003733e9aca978895f22b479f2a50c8a | Update router usage in HTTP server | lib/init/server/http.js | lib/init/server/http.js | "use strict";
/*global nodeca, _*/
// stdlib
var url = require('url');
// 3rd-party
var qs = require('qs');
// internal
var env = require('../../env');
////////////////////////////////////////////////////////////////////////////////
var http = module.exports = {};
/////////////////////////////////////////... | JavaScript | 0 | @@ -151,24 +151,85 @@
../env');%0A%0A%0A
+// nodeca%0Avar HashTree = require('nlib').Support.HashTree;%0A%0A%0A
////////////
@@ -3579,18 +3579,32 @@
.params)
+,%0A func
;%0A
-
%0A if
@@ -3727,24 +3727,72 @@
urn;%0A %7D%0A%0A
+ func = HashTree(nodeca.server, match.meta);%0A
nodeca.f
@@ -3812,... |
f135e2dc05884474bd24d114b6be5753cd8833be | fix indentation | src/ng/log.js | src/ng/log.js | 'use strict';
/**
* @ngdoc service
* @name $log
* @requires $window
*
* @description
* Simple service for logging. Default implementation safely writes the message
* into the browser's console (if present).
*
* The main purpose of this service is to simplify debugging and troubleshooting.
*
* The default is... | JavaScript | 0.000002 | @@ -1885,24 +1885,26 @@
= flag;%0A
+
return this;
|
e538b40bf3e92c5b24db4b4de4e7fa08e22a2069 | Use constistently single quotes instead of backticks. This way won't break if multiple styleUrls were added to the input. | index.js | index.js | var through = require('through2');
var gutil = require('gulp-util');
var pathModule = require('path');
var sass = require('node-sass');
var less = require('less');
var fs = require('fs');
var autoprefixer = require('autoprefixer');
var postcss = require('post... | JavaScript | 0 | @@ -3682,17 +3682,18 @@
tyles: %5B
-%60
+%5C'
'));%0A%0A
@@ -3945,17 +3945,18 @@
Buffer('
-%60
+%5C'
%5D'));%0A
|
07296cf55cb54777fbcb2fcb9a5668803efb5e71 | Set an attribute flagging mirroring rather than modifying the element with a style tag | index.js | index.js | var plugin = require('rtc-core/plugin');
var extend = require('cog/extend');
/**
# rtc-attach
Roughly equivalent to the
[`attachMediaStream`](https://www.npmjs.org/package/attachmediastream)
package but with support for rtc.io plugins. Also uses an error first
async API to allow plugins time to initialize.... | JavaScript | 0 | @@ -2021,39 +2021,42 @@
el.s
-tyle.transform = 'scale(-1, 1)'
+etAttribute('data-mirrored', true)
;%0A
|
1194923324cb71ab68ad40b358928b221c7ce7ef | put preaction on componentDidMount method if it is working on client-side | src/decorators/preaction.js | src/decorators/preaction.js | import React from 'react';
import ReactDOM from 'react-dom';
import flux from './flux';
function doAllActions(flux, actions) {
for (var action in actions) {
args = actions[action];
var _args = [ 'action.' + action ];
if (args instanceof Array)
_args = _args.concat(args);
flux.dispatch.apply(flux, _args... | JavaScript | 0 | @@ -1691,16 +1691,43 @@
tHandler
+ && !context.flux.isBrowser
) %7B%0A%09%09%09%09
@@ -2444,48 +2444,8 @@
) %7B%0A
-%09%09%09%09%09%09%09%09%09console.log('111', arguments);%0A
%09%09%09%09
@@ -2616,32 +2616,130 @@
method);%0A%09%09%09%09%09%7D
+%0A%0A%09%09%09%09%09if (this.flux.isBrowser) %7B%0A%09%09%09%09%09%... |
294661dcc38d46d99215b9ce7714a0b32963fd85 | remove console.log | index.js | index.js | 'use strict';
var Promise = require('bluebird');
var superagent = require('superagent');
var qs = require('qs');
var extend = require('extend');
var methods = [
"checkout",
"connect",
"copy",
"delete",
"get",
"head",
"lock",
"m-search",
"merge",
"mkactivity",
"mkcol",
"m... | JavaScript | 0.000006 | @@ -2014,31 +2014,8 @@
s);%0A
- console.log(args);%0A
|
c85a3a9e8bfa3085b42709c9bfe4182e09ef07bf | Remove newlines in a paragraph | index.js | index.js | module.exports = function(md, options) {
options = options || {};
options.listUnicodeChar = options.hasOwnProperty('listUnicodeChar') ? options.listUnicodeChar : false;
options.stripListLeaders = options.hasOwnProperty('stripListLeaders') ? options.stripListLeaders : true;
options.gfm = options.hasOwnProperty('... | JavaScript | 0.999999 | @@ -2378,16 +2378,101 @@
%5Cn%5Cn');%0A
+ // Remove newlines in a paragraph%0A .replace(/(%5CS+)%5Cn%5Cs*(%5CS+)/g, '$1 $2');%0A
%7D catc
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.