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 |
|---|---|---|---|---|---|---|---|
7326b1a4430f7b2a3fe8329e04c3b5bf28af24c9 | Fix JS style. | power/power_api.js | power/power_api.js | // Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// FIXME: A lot of these methods should throw NOT_SUPPORTED_ERR on desktop.
// There is no easy way to do verify which methods are supported yet.
var sc... | JavaScript | 0 | @@ -1152,26 +1152,24 @@
enState() %7B%0A
-
var msg =
@@ -1170,18 +1170,16 @@
msg = %7B%0A
-
'cmd
@@ -1209,15 +1209,11 @@
'%0A
-
-
%7D;%0A
-
va
@@ -1252,18 +1252,16 @@
(msg));%0A
-
screen
|
c5c681673d7abe3a50162982cd15a31407c78444 | Use dedicated html id generator | view/dbjs/form-section-base-get-resolvent.js | view/dbjs/form-section-base-get-resolvent.js | /**
* @param options {object}
* @returns {object} of the form:
* {
* affectedSectionId: id || undefined,
* legacyScript: radioMatch || selectMatch || undefined,
* formResolvent: field || undefined
* }
*/
'use strict';
var generateId = require('time-uuid')
, resolvePropertyPath = require('dbjs/_se... | JavaScript | 0 | @@ -262,15 +262,39 @@
re('
-time-uu
+dom-ext/html-document/generate-
id')
|
bd8a046c839c4ee827b4662c7f5bb3b70c8f78e8 | Update server.js | examples/server.js | examples/server.js | const webpack = require('webpack');
const WebpackDevServer = require('webpack-dev-server');
const config = require('./webpack.config');
const port = process.env.PORT || 3000;
config.entry.app.push(
'webpack-dev-server/client?http://0.0.0.0:' + port,
'webpack/hot/only-dev-server'
);
new WebpackDevServer(webpack(co... | JavaScript | 0.000001 | @@ -362,16 +362,44 @@
icPath,%0A
+ historyApiFallback: true,%0A
disabl
|
0840a069ed41d2d81783e1a0d87bba5fceda427f | remove console.log | examples/server.js | examples/server.js | var http = require('http')
var app = require('../index')()
var send = require('../send')
var error = require('../error')
var log = app.log
app.on('/', function (req, res, ctx) {
if (req.method === 'POST') {
console.log(ctx.body)
return send(200, ctx.body).pipe(res)
} else if (req.method === 'GET') {
re... | JavaScript | 0.000006 | @@ -207,34 +207,8 @@
) %7B%0A
- console.log(ctx.body)%0A
|
ed1707eca68aec633786d20cfeacdb04a02f6952 | add attribution to relay | src/networkLayer.js | src/networkLayer.js | // ensure env has promise support
import { polyfill } from 'es6-promise';
polyfill();
import fetch from 'isomorphic-fetch';
import {
isString,
isArray,
} from 'lodash';
class NetworkLayer {
constructor(uri, opts = {}) {
if (!uri) {
throw new Error('A remote enpdoint is required for a newtork layer')... | JavaScript | 0 | @@ -1714,16 +1714,185 @@
%7D%0A%0A%7D%0A%0A
+/*%0A%0A An easy way to breakdown the errors of a query%0A from https://github.com/facebook/relay/blob/master/src/network-layer/default/RelayDefaultNetworkLayer.js#L174%0A%0A*/%0A
function
|
64fd9b9f784a419545f6f0a94337552c20d1dbcd | add constraint | src/objects/Room.js | src/objects/Room.js | import { SpriteWidth, SpriteHeight, SpriteRatioX, SpriteRatioY } from "../Constants.js";
import { Wall } from "../SpriteConstants";
class Room extends Phaser.Group {
constructor(game, parent, name) {
super(game, parent, name, false, false, Phaser.Physics.ARCADE);
}
createRandomLine(x1, y1, x2, y2, division... | JavaScript | 0.000177 | @@ -55,16 +55,24 @@
teRatioY
+, Bounds
%7D from
@@ -1749,17 +1749,16 @@
y = y1;%0A
-%0A
whil
@@ -1802,23 +1802,8 @@
y);%0A
- debugger%0A
@@ -1835,16 +1835,76 @@
break;%0A
+ if(x %3C 0 %7C%7C y %3C 0 %7C%7C x %3E Bounds %7C%7C y %3E Bounds) break;%0A
le
|
a0984bf05b9855cf554f7eacc80e463730e4db4d | Fix wording | site/website/pages/en/download.js | site/website/pages/en/download.js | /**
* Copyright (c) 2017-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.
*/
const React = require('react');
const CompLibrary = require('../../core/CompLibrary');
const Container = CompLibrary.Container;
const C... | JavaScript | 0.000977 | @@ -3028,25 +3028,8 @@
ster
- and running jobs
. Fo
|
2cbd28138d5781aebc39381a50a7ee8815987e48 | Remove a startup test from dev env | src/config/env/development.js | src/config/env/development.js | /** @module Env Dev */
'use strict';
var logger = require(process.env.LOGGER)('Env Dev');
// EXPORTED OBJECT ============================================================
/**
* [exports description]
*
* @type {Object}
*/
module.exports = {
app: {
title: 'Accounting app - Development environment'
},
ser... | JavaScript | 0.000001 | @@ -86,16 +86,17 @@
ev');%0A%0A%0A
+%0A
// EXPOR
@@ -1023,16 +1023,17 @@
(err) %7B%0A
+%0A
%09%09if (er
@@ -1036,16 +1036,17 @@
(err)%7B%0A
+%0A
%09%09%09logge
@@ -1128,16 +1128,17 @@
r(err);%0A
+%0A
%09%09%7Delse
@@ -1139,16 +1139,17 @@
%7Delse %7B%0A
+%0A
%09%09%09logge
@@ -1207,17 +1207,16 @@
ted');%0A%... |
230800a962b270e6f3e84e339be4c1bea80c085d | fix up (tunnel-client dep added to mojito-client) | tests/unit/lib/app/autoload/test-mojito-client.client.js | tests/unit/lib/app/autoload/test-mojito-client.client.js | /*
* Copyright (c) 2011-2012, Yahoo! Inc. All rights reserved.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
/*jslint anon:true, sloppy:true, nomen:true, node:true*/
/*global YUI*/
/*
* Test suite for the mojito-client.client.js file functionality.
*/
YUI(... | JavaScript | 0 | @@ -235,16 +235,71 @@
YUI*/%0A%0A
+YUI.add('mojito-tunnel-client', function(Y, NAME) %7B%7D);%0A
%0A/*%0A * T
|
01a95a69a537c3a5432f41dfa7fc81c36f2ce535 | fix comment parsing in Foxx controllers | js/common/modules/org/arangodb/foxx/preprocessor.js | js/common/modules/org/arangodb/foxx/preprocessor.js | /*global require, exports */
////////////////////////////////////////////////////////////////////////////////
/// @brief Foxx Preprocessor
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2013 triagens GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use ... | JavaScript | 0.000006 | @@ -3002,29 +3002,31 @@
urn str.
-match
+replace
(/%5E%5Cs*%5C/
?%5C*%5C*?%5C/
@@ -3021,31 +3021,311 @@
s*%5C/
-?
%5C*%5C*
-?%5C/?%5Cs*(.*)$/)%5B1%5D;
+/, ''). // start of JSDoc comment%0A replace(/%5E%5Cs*%5C*/, ''). // continuation of JSDoc comment%0A replace(/%5E.*?%5C*%5C//, '')... |
c8ba54d0a3f43c440866d4ac8595eb87e1447335 | use grunt.util.linefeed instead of hard-coding '\n' | tasks/usebanner.js | tasks/usebanner.js | /*
* grunt-banner
* https://github.com/mattstyles/grunt-banner
*
* Copyright (c) 2013 Matt Styles
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Please see the Grunt documentation for more information regarding task
// creation: http://gruntjs.com/creating-task... | JavaScript | 0.000439 | @@ -1015,20 +1015,35 @@
anner +
-'%5Cn'
+grunt.util.linefeed
+ grunt
@@ -1091,12 +1091,27 @@
) +
-'%5Cn'
+grunt.util.linefeed
+ o
@@ -1167,27 +1167,31 @@
%09grunt.
-log
+verbose
.writeln( 'B
|
34719be9318a0a98dd006dcfa6f26f672bdce5d2 | Correct 'abort' message. | tasks/wp_deploy.js | tasks/wp_deploy.js | /*
* grunt-wp-deploy
* https://github.com/stephenharris/wp-deploy
*
* Copyright (c) 2013 Stephen Harris
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
var exec = require('child_process').exec;
var inquirer = require('inquirer');
// Please see the Grunt documentation ... | JavaScript | 0.003823 | @@ -3675,48 +3675,20 @@
n( '
-Removing temporary directory ' + svnpath
+Aborting...'
);%0A
|
930b8bc91f7c963a4510c21db5785931f41fa0c6 | set type to directory on directories | fs.js | fs.js | var fs = require('fs')
var pump = require('pump')
var mkdirp = require('mkdirp')
var through = require('through2')
var path = require('path')
var walker = require('folder-walker')
var each = require('stream-each')
module.exports.listEach = function (opts, onEach, cb) {
var stream = walker(opts.dir, {filter: opts.fil... | JavaScript | 0.000003 | @@ -888,25 +888,129 @@
%7D%0A
-%7D
+ item.type = 'file'%0A %7D%0A var isDir = data.stat.isDirectory()%0A if (isDir) item.type = 'directory'
%0A onEach(
|
830a354447f2e622845ef46db0ff0e6695b0846f | Fix socialTrack | ga.js | ga.js | /**
* @class GA
* @author Flavio De Stefano <flavio.destefano@caffeinalab.com>
* Proxy module for Google Analitycs
*
* Require 'analitycs.google'
*
*/
/**
* * **ua**: UA of Google Analitycs. Default: `null`
* @type {Object}
*/
var config = _.extend({
ua: null
}, Alloy.CFG.T.ga);
exports.config = config;
... | JavaScript | 0 | @@ -1828,19 +1828,19 @@
kSocial(
-net
+obj
);%0A%09Ti.A
|
2061c800ee1572f7bf83b5c3541b03490a98cbc2 | Add id#ivars() helper to get a wrapped id's instance variables. | id.js | id.js | /**
* The 'id' function is essentially the "base class" for all Objective-C
* objects that get passed around JS-land.
*/
var proto = exports.proto = Object.create(Function.prototype)
, core = require('./core')
, types = require('./types')
, SEL = require('./sel')
, exception = require('./exception')
/**... | JavaScript | 0 | @@ -4186,24 +4186,392 @@
turn rtn%0A%7D%0A%0A
+proto.ivars = function ivars (maxDepth, sort) %7B%0A var rtn = %5B%5D%0A , c = this.getClass()%0A , md = maxDepth %7C%7C 1%0A , depth = 0%0A while (c && depth++ %3C md) %7B%0A var is = c.getInstanceVariables()%0A , i = is.length%0A while (i--) %7B%0A... |
02cf2c342bcf678c6442eb7db85fefd1900882ff | Clear the closeWithTimeout timer before unmounting | lib/components/ModalPortal.js | lib/components/ModalPortal.js | var React = require('react');
var div = React.DOM.div;
var focusManager = require('../helpers/focusManager');
var scopeTab = require('../helpers/scopeTab');
var cx = require('classnames');
// so that our CSS is statically analyzable
var CLASS_NAMES = {
overlay: {
base: 'ReactModal__Overlay',
afterOpen: 'Reac... | JavaScript | 0 | @@ -1083,32 +1083,110 @@
();%0A %7D%0A %7D,%0A%0A
+ componentWillUnmount: function() %7B%0A clearTimeout(this.closeTimer);%0A %7D,%0A%0A
componentWillR
@@ -2297,16 +2297,34 @@
%7B%0A
+ this.closeTimer =
setTime
|
2a9a78f7fc4212a48670db9c814c5d8a141fd5ce | Update src/models/Thread.js | src/models/Thread.js | src/models/Thread.js | import { FirestoreModel } from 'myfirebase'
class Thread extends FirestoreModel {
/**
* Create new Thread.js Instance.
*
* @param {object} ref
*/
constructor (ref) {
super(ref)
}
/**
* Define required properties.
*
* @return array
*/
required... | JavaScript | 0.000001 | @@ -1124,16 +1124,139 @@
ge%0A %7D
+%0A%0A /**%0A * Clear message.%0A * %0A * @return %7Bvoid%7D%0A */%0A clearMessage () %7B%0A this.message = ''%0A %7D
%0A%7D%0A%0Aexpo
|
e04ca0b17eebd49abc295da27ee78f616e4c32b5 | Update src/models/Thread.js | src/models/Thread.js | src/models/Thread.js | import { FirestoreModel } from 'myfirebase'
class Thread extends FirestoreModel {
/**
* Create new Thread.js Instance.
*
* @param {object} ref
*/
constructor (ref) {
super(ref)
}
/**
* Define required properties.
*
* @return array
*/
required... | JavaScript | 0.000001 | @@ -1247,16 +1247,161 @@
''%0A %7D
+%0A%0A /**%0A * Set thread message.%0A * %0A * @param %7Bvoid%7D message%0A */%0A setMessage (message) %7B%0A this.message = message%0A %7D
%0A%7D%0A%0Aexpo
|
3294cfc76f403723dcb7b0198365cbffa20b455b | add nav-extended, close #406 | src/navbar/navbar.js | src/navbar/navbar.js | import { bindable, customElement } from 'aurelia-templating';
import { bindingMode } from 'aurelia-binding';
import { inject } from 'aurelia-dependency-injection';
import { getBooleanFromAttributeValue } from '../common/attributes';
import { AttributeManager } from '../common/attributeManager';
@customElement('md-navb... | JavaScript | 0 | @@ -413,24 +413,99 @@
ode.oneTime%0A
+ %7D) mdExtended;%0A @bindable(%7B%0A defaultBindingMode: bindingMode.oneTime%0A
%7D) mdFixed
@@ -502,24 +502,24 @@
%7D) mdFixed;%0A
-
@bindable(
@@ -1061,24 +1061,146 @@
ht');%0A %7D%0A
+ if (getBooleanFromAttributeValue(this.mdExtended)) %7B%0A this.navAt... |
a0520205fb3768f3d6b92cb438291af79b6ad6be | Fix DstoreAdapter range query and result total | legacy/DstoreAdapter.js | legacy/DstoreAdapter.js | define([
'dojo/_base/declare',
'dojo/_base/array',
'dojo/store/util/QueryResults'
/*=====, "dstore/api/Store" =====*/
], function (declare, arrayUtil, QueryResults /*=====, Store =====*/) {
// module:
// An adapter mixin that makes a dstore store object look like a legacy Dojo object store.
// No base class, but... | JavaScript | 0.000001 | @@ -1768,27 +1768,30 @@
%09%09%09%09
-var
+if ('
start
- =
+' in
options
.sta
@@ -1790,89 +1790,50 @@
ions
-.start;
+) %7B
%0A%09%09%09%09
+%09
var
- end =
start
-!
=
-null && options.count && (start + options.count)
+options.start %7C%7C 0
;%0A
+%09
%09%09%09%09
@@ -1860,35 +1860,119 @@
nge(
-start, e... |
cdcd46cea88e1d7cf35e74e14f819f3b04c8653b | Fix angular module creation. | src/observability.js | src/observability.js | (function() {
"use strict";
var observableMethods = {
registerObserver: function (fn) {
if (typeof fn !== "function") {
throw new TypeError("registerObserver must be called with a function");
}
setupObservers(this);
this._observ... | JavaScript | 0 | @@ -1404,16 +1404,20 @@
lity.js%22
+, %5B%5D
).value(
|
98a8c58eb12a3d51b3173237010ba4e383c2c111 | Fix for click in submit button's children. Also fixes that button's value not being posted. Can't test until jsdom gets fixed, see https://github.com/tmpvar/jsdom/pull/1523 [#1523] | src/parsley/form.js | src/parsley/form.js | import $ from 'jquery';
import ParsleyAbstract from './abstract';
import ParsleyUtils from './utils';
var ParsleyForm = function (element, domOptions, options) {
this.__class__ = 'ParsleyForm';
this.$element = $(element);
this.domOptions = domOptions;
this.options = options;
this.parent = window.Parsley;
... | JavaScript | 0 | @@ -1673,17 +1673,24 @@
$(event.
-t
+currentT
arget);%0A
|
73b503d5ce23504daa99c492eaaba33f07969ee4 | Fix linter error in Kick | src/plugins/Kick.js | src/plugins/Kick.js | import Plugin from "./../Plugin";
import Auth from "../helpers/Auth";
export default class Kick extends Plugin {
static get plugin() {
return {
name: "Kick",
description: "Kicks users",
help: "Reply with /kick or ban, or send /[kick|ban] ID.",
needs: {
... | JavaScript | 0.000001 | @@ -910,24 +910,16 @@
%7D
-%0A
else%0A
|
7fa04c7f763c76177a0c39c0151822fa19136960 | Fix mix of tabs and spaces for indentation | src/proj4leaflet.js | src/proj4leaflet.js | L.CRS.proj4js = (function () {
var createProjection = function (code, def, /*L.Transformation*/ transformation) {
if (typeof(def) !== 'undefined') {
Proj4js.defs[code] = def;
}
var proj = new Proj4js.Proj(code);
return {
project: function (latlng) {
var point = new L.Point(latlng.lng, l... | JavaScript | 0.000001 | @@ -673,22 +673,19 @@
CRS, %7B%0D%0A
-
+%09%09%09
code: co
@@ -689,22 +689,19 @@
code,%0D%0A
-
+%09%09%09
transfor
@@ -781,14 +781,11 @@
),%0D%0A
-
+%09%09%09
proj
|
d4a4f562b97571f727285fc5c60244b2bcdd082f | Add 'define' statement | chromatography.js | chromatography.js | (function() {
var Color;
chromato = function(x, y, z, m) {
return new Color(x, y, z, m);
};
if ((typeof module !== "undefined" && module !== null) && (module.exports != null)) {
module.exports = chroma;
}
chromato.color = function(x, y, z, m) {
return new Color(x, y, z, m);
};
chromato.color = functio... | JavaScript | 0.999999 | @@ -215,33 +215,41 @@
%7D%0A%0A
-chromato.color
+ if (typeof define ==
=
+'
function
(x,
@@ -248,57 +248,204 @@
tion
-(x, y, z, m)
+' && define.amd) %7B%0A define(%5B%5D, function() %7B%0A return chroma;%0A %7D);%0A %7D else
%7B%0A
+
-return new Color(x, y, z, m);%0A%7D;
+ root = typeof expor... |
540b635d1bb30deadfa39794bd9bb0a94dcd6fea | Change badge names for magnified badge group | src/constants/badge-groups.js | src/constants/badge-groups.js | import { pluralize } from 'helpers/text';
export const badgeGroups = {
MULTI: [
{
count: 1,
expeditions: 5,
name: 'Novice Collection\'s Explorer',
badge: 'multi/multi_1x5.png',
},
{
count: 25,
expeditions: 5,
name: 'Intermediate Collection\'s Explorer',
bad... | JavaScript | 0 | @@ -1909,16 +1909,21 @@
ame: '5x
+ Zoom
', badge
@@ -1988,16 +1988,21 @@
me: '50x
+ Zoom
', badge
@@ -2069,16 +2069,21 @@
e: '150x
+ Zoom
', badge
|
166f9079512682774ee29a7bc57c9c660be945d0 | add empty select tag | src/containers/QueryFilter.js | src/containers/QueryFilter.js | import { Component } from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
export default class TagFilter extends Component {
initQueryFilter() {
const { loadCategories, loadTags } = this.props;
loadCategories();
loadTags();
}
getFilteredPosts(categoryInput... | JavaScript | 0.000001 | @@ -1693,32 +1693,71 @@
Input = node%7D%7D%3E%0A
+ %3Coption value=%22%22%3E%3C/option%3E%0A
%7BObj
@@ -2072,32 +2072,71 @@
Input = node%7D%7D%3E%0A
+ %3Coption value=%22%22%3E%3C/option%3E%0A
%7BObj
@@ -2374,26 +2374,16 @@
select%3E%0A
-
%0A
|
e51dfcebb50c2640da8d157bdc4b504fae8998af | remove hide on preview analytics | src/scripts/view.js | src/scripts/view.js | Polymer({
is: 'figme-item-view',
properties: {
item: Object,
isShown: {
type: Boolean,
value: false
}
},
show: function() {
this.isShown = true;
ga('send', 'event', 'Preview', 'show', this.item.id);
},
hide: function() {
thi... | JavaScript | 0 | @@ -336,70 +336,8 @@
se;%0A
- ga('send', 'event', 'Preview', 'hide', this.item.id);%0A
|
9b0eddd2d7cadd0f81fc6f2e5efb774adbee7f42 | Fix HTML rendering on server | src/server/index.js | src/server/index.js | import path from 'path';
import express from 'express';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { match, RouterContext } from 'react-router';
import Helmet from 'react-helmet';
import routes from '../shared/routes';
const app = express();
const PORT = process.env.PORT || 80... | JavaScript | 0.000002 | @@ -470,31 +470,8 @@
tml
-lang=%22en%22%3E%0A %3Chead
$%7Bhe
@@ -501,16 +501,62 @@
ing()%7D%3E%0A
+ %3Chead%3E%0A %3Cmeta charset=%22utf-8%22 /%3E%0A
@@ -562,20 +562,21 @@
$%7Bhead.
-meta
+title
.toStrin
@@ -587,37 +587,36 @@
%0A $%7Bhead.
-title
+meta
.toString()%7D%0A
|
c75652929c4ecbf09aa60013a53b1bff7c717583 | Replace default build reporter for better experience | src/server/index.js | src/server/index.js | /**
* Copyright 2017-present, Callstack.
* All rights reserved.
*/
const Express = require("express");
const http = require("http");
/**
* Custom made middlewares
*/
const webpackDevMiddleware = require("webpack-dev-middleware");
const devToolsMiddleware = require("./middleware/devToolsMiddleware");
const liveRe... | JavaScript | 0 | @@ -55,24 +55,37 @@
s reserved.%0A
+ * %0A * @flow%0A
*/%0A%0Aconst E
@@ -616,24 +616,568 @@
roxy.js%22);%0A%0A
+/**%0A * Better build reporter for Webpack builds%0A */%0Aconst buildReporter = (reporterOptions) =%3E %7B%0A const %7B state, stats, options %7D = reporterOptions;%0A %0A if (!state) %7B%0A consol... |
b1895a87993725b2e0bf8ea7a0858719eddfe89c | Remove comments | lib/activities/Activity.js | lib/activities/Activity.js | 'use strict';
const debug = require('debug');
const EventEmitter = require('events').EventEmitter;
const internals = {};
module.exports = internals.Activity = function(activity, parentContext) {
this.parentContext = parentContext;
this.id = activity.id;
this.type = activity.$type;
this.name = activity.name;
... | JavaScript | 0 | @@ -1815,39 +1815,8 @@
se;%0A
- // this.emit('leave', this);%0A
se
|
91018f94b1885f75020ca3bccc145af58d4c7950 | Make find blueprint use JsonApiService | lib/api/blueprints/find.js | lib/api/blueprints/find.js | /**
* Module dependencies
*/
var util = require( 'util' ),
actionUtil = require( './_util/actionUtil' ),
pluralize = require('pluralize');
/**
* Find Records
*
* get /:modelIdentity
*
* An API call to find and return model instances from the data adapter
* using the specified criteria.
*
*/
module.ex... | JavaScript | 0.000001 | @@ -641,159 +641,18 @@
-matchingRecords.forEach((record) =%3E %7B%0A var id = record.id;%0A delete record.id%0A%0A data.data.push(%7B%0A id: id.toString(),%0A
+var
type
-:
+ =
plu
@@ -706,77 +706,76 @@
ler)
-,%0A attributes: record%0A %7D);%0A %7D)%0A%0A return ... |
5ac6e72f6957ea82279f0e786f6ce890aa637d40 | fix some errors on Windows | lib/atom-markdown-katex.js | lib/atom-markdown-katex.js | 'use strict'
/**
* atom-markdown-katex plugin for atom editor
* By Yiyi Wang (shd101wyy)
*
*/
let startMDPreview = require('./md-preview.js').startMDPreview,
MarkdownPreviewEditor = require('./md-preview-editor')
// open new window to show rendered markdown html
function beginMarkdownKatexPreview() {
// ge... | JavaScript | 0.000038 | @@ -2333,16 +2333,102 @@
etURI()%0A
+ if (uri && uri.startsWith('atom-markdown-katex:/') && uri.endsWith(' preview')) %7B%0A
pa
|
ab1ce92b2ccdd20e767ad6c210066b3a5db18db0 | Fix getter method references | lib/_relation/getter.js | lib/_relation/getter.js | 'use strict';
var arrRemove = require('es5-ext/lib/Array/prototype/remove')
, d = require('es5-ext/lib/Object/descriptor')
, relation = require('./')
, defineProperty = Object.defineProperty
, activateTriggers, deactivateTriggers;
activateTriggers = function (baseRel) {
var ontriggeradd, ontrigger... | JavaScript | 0.000001 | @@ -1210,26 +1210,24 @@
en_.forEach(
-on
add);%0A%09%7D;%0A%09r
@@ -1723,18 +1723,16 @@
forEach(
-on
remove);
@@ -3020,18 +3020,16 @@
forEach(
-on
add);%0A%7D;
|
9e1ccc41097b2215a02375c2dc7325d08ee0a9e0 | read wifiName property from config object | lib/accessories/wifi.js | lib/accessories/wifi.js | /**
* FritzWifiAccessory
*
* @url https://github.com/andig/homebridge-fritz
* @author Andreas Götz <cpuidle@gmx.de>
* @license MIT
*/
/* jslint node: true, laxcomma: true, esversion: 6 */
"use strict";
var Service, Characteristic, FritzPlatform;
module.exports = function(homebridge) {
Service = homebridge.... | JavaScript | 0.000001 | @@ -575,15 +575,14 @@
orm.
-options
+config
.wif
|
122c290b6313cad385ad0b961585e7620b54f558 | Fix mode list. | lib/ace/ext/modelist.js | lib/ace/ext/modelist.js | define(function(require, exports, module) {
"use strict";
var modes = [];
/**
* Suggests a mode based on the file extension present in the given path
* @param {string} path The path to the file
* @returns {object} Returns an object containing information about the
* suggested mode.
*/
function getModeForPath(pat... | JavaScript | 0 | @@ -1472,21 +1472,8 @@
%22%5D,%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A
@@ -1537,40 +1537,8 @@
%22%5D,%0A
-=======%0A%3E%3E%3E%3E%3E%3E%3E upstream/master%0A
|
bc843c8d76c3b00c297dd83fc4d1ff3d63c9a5aa | add done callback function to be used for tests | lib/actions/generate.js | lib/actions/generate.js | 'use strict';
const createPipeline = require('./../pipeline');
const initPipelineFns = require('./../pipeline_fns');
const initProcessorRegister = require('../register_functions/content_asset_decorator_processor');
const initFileProcessorRegister = require('../register_functions/file_processor');
const initTemplatePr... | JavaScript | 0 | @@ -947,42 +947,142 @@
);%0A%0A
-function generate(basePath, isProd
+// doneFn is the last pipeline function. It's used for E2E tests%0Afunction generate(basePath, isProd = false, doneFn = (_, n) =%3E %7Bn();%7D
) %7B%0A
@@ -3222,24 +3222,48 @@
essWriters);
+%0A pipeline.use(doneFn);
%0A%0A pipeline
|
c402470d6d5ed30f3c92f58894001c56ab1d5d70 | Add comments | src/string-class.js | src/string-class.js | // Disable eslint do not modify native methods
/* eslint-disable no-extend-native */
String.prototype.hasVowels = function hasVowels() {
// Is there any vowel in the input string?
const vowels = new RegExp('[aeiou]', 'i');
return vowels.test(this);
};
String.prototype.toUpper = function toUpper() {
/* Replace... | JavaScript | 0 | @@ -1665,16 +1665,17 @@
d) -%3E Ma
+t
ches dig
|
52be08b80141ad46a56ab8cdb76f93971762b99b | Fix for potentially misleading logging | lib/cli/commands/deploy.js | lib/cli/commands/deploy.js | // > The deploy command tars up a directory and streams it to the server
//
// > Copyright © 2013 Matt Styles
// > Licensed under the MIT license
'use strict';
// Includes.
var icarus = require( './../../icarus' ),
fs = require( 'fs' ),
path = require( 'path' ),
util = require( 'util' ),
exec = req... | JavaScript | 0.000001 | @@ -1710,82 +1710,8 @@
or.%0A
- // For now just log an error but we should probably exit.%0A
@@ -1773,34 +1773,8 @@
root
- -- using default log file
' );
|
aad0a00384f118bbd4e4a614eeeafd12d01c67ed | remove comments | lib/commands/attachment.js | lib/commands/attachment.js | 'use strict';
// var doc = savedDoc // <some saved couchdb document which has an attachment>
// var id = doc._id
// var rev = doc._rev
// var idAndRevData = {
// id: id,
// rev: rev
// }
// var attachmentData = {
// name: attachmentName // something like 'foo.txt'
// 'Content-Type': attachmentMim... | JavaScript | 0 | @@ -12,636 +12,8 @@
';%0A%0A
-// var doc = savedDoc // %3Csome saved couchdb document which has an attachment%3E%0A// var id = doc._id%0A// var rev = doc._rev%0A// var idAndRevData = %7B%0A// id: id,%0A// rev: rev%0A// %7D%0A// var attachmentData = %7B%0A// name: attachmentName // something like 'f... |
ebaec176a77d047bd8583fa0501d70b3a485cffe | check if the passed reference is a DaoFactory | lib/dao-factory-manager.js | lib/dao-factory-manager.js | var Toposort = require('toposort-class')
module.exports = (function() {
var DAOFactoryManager = function(sequelize) {
this.daos = []
this.sequelize = sequelize
}
DAOFactoryManager.prototype.addDAO = function(dao) {
this.daos.push(dao)
return dao
}
DAOFactoryManager.prototype.removeDAO = fu... | JavaScript | 0.000001 | @@ -6,16 +6,18 @@
oposort
+
= requir
@@ -35,16 +35,58 @@
-class')
+%0A , DaoFactory = require('./dao-factory')
%0A%0Amodule
@@ -1120,16 +1120,18 @@
ar daos
+
= %7B%7D%0A
@@ -1194,24 +1194,45 @@
tion(dao) %7B%0A
+ var deps = %5B%5D%0A%0A
daos%5Bd
@@ -1250,36 +1250,16 @@
e%5D = dao
-%0A ... |
a8e4775302b0738e40915e423d06d465403fbcd7 | Add enableAndStartService utility function which enable a service, "waits" and than starts a service. Function only waits before calls start if a runit service manager is used. | lib/deployment/services.js | lib/deployment/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 | @@ -790,16 +790,47 @@
e.%0A */%0A%0A
+var async = require('async');%0A%0A
var serv
@@ -875,16 +875,196 @@
ement');
+%0Avar runit = require('service_management/runit');%0A%0A/**%0A * Maximum delay before runit picks up new changes (in milliseconds).%0A * @type %7BNumber%7D%0A * @const%0A */%0Avar RUNIT_DELAY = 6000;
... |
e31ab9888d82e28c7676e5f3d4e5fb3ebb0061f7 | Add documentation. | lib/exchange/redelegate.js | lib/exchange/redelegate.js | /**
* Module dependencies.
*/
var utils = require('../utils')
, TokenError = require('../errors/tokenerror');
/**
*
* References:
* - [A Method of Bearer Token Redelegation and Chaining for OAuth 2](http://tools.ietf.org/html/draft-richer-oauth-chain-00)
* - [OAuth Service Chaining](http://www.ietf.org/mail... | JavaScript | 0 | @@ -113,16 +113,555 @@
;%0A%0A%0A/**%0A
+ * Exchanges an access token for a derivative token.%0A *%0A * This exchange is used by a resource server to exchange an access token it has%0A * recieved from a client for a derivative token for use with another resource%0A * server. This scenario facilitiates service chainin... |
f0ee5cc3241ecf3a0350cf56f228c9e16f26dada | update filenames with latest Android icon names | lib/favicons-middleware.js | lib/favicons-middleware.js | var fs = require('fs');
var crypto = require('crypto');
var path = require('path');
var url = require('url');
module.exports = function favicons(dir, opts) {
dir = dir || process.cwd() + '/public';
opts = opts || {};
var cache = Object.create(null);
var maxAge = opts.maxAge || 86400000;
var filenames = [
... | JavaScript | 0 | @@ -1086,32 +1086,134 @@
-'touch-icon-192x192.png'
+%22favicon-16x16.png%22,%0A %22favicon-32x32.png%22,%0A %22favicon-128x128.png%22,%0A %22mstile-150x150.png%22,%0A %22safari-pinned-tab.svg%22
%0A %5D
|
079691e9532c08399b50bd5c0407546543088aa4 | fix body parser hanging issue | lib/helpers/body-parser.js | lib/helpers/body-parser.js | 'use strict';
var qs = require('qs');
var bytes = require('bytes');
var anyBody = require('body/any');
var formBody = require('body/form');
var defaultSizeLimit = '200kb';
function queryStringParser(text, callback) {
callback(null, qs.parse(text));
}
function handleBodyFn(options, bodyFn) {
options = options ||... | JavaScript | 0.000001 | @@ -473,24 +473,164 @@
es, next) %7B%0A
+ // If the body is already parsed, by e.g. body-parser, then skip parsing.%0A if (req.body !== undefined) %7B%0A return next();%0A %7D%0A%0A
bodyFn(r
|
dd035c95d264301bc15c211db133802980b1ef3a | Remove unused | lib/bootstrapHelpers.js | lib/bootstrapHelpers.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/. */
/**
*
* Helper functions for Bootstrap components.
*/
function setButtonChecked(button, checked) {
button.... | JavaScript | 0.000349 | @@ -862,385 +862,8 @@
%0A%7D%0A%0A
-function addInputValidation(input, callback) %7B%0A function validateInput(e) %7B%0A let pass = e.target.checkValidity();%0A input.parentNode.classList.toggle(%22has-error%22, !pass);%0A callback(pass);%0A %7D%0A%0A input.addEventListener(%22input%22, v... |
1717c45ddeacc50c058462e0ac03d8a4ca308584 | Move initialization of Brackets object from appshell_extensions.js to Global.js (#13975) | src/utils/Global.js | src/utils/Global.js | /*
* Copyright (c) 2012 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* ... | JavaScript | 0 | @@ -2134,24 +2134,523 @@
brackets) %7B%0A
+%0A // Earlier brackets object was initialized at %0A // https://github.com/adobe/brackets-shell/blob/908ed1503995c1b5ae013473c4b181a9aa64fd22/appshell/appshell_extensions.js#L945.%0A // With the newer versions of CEF, the initialization was crashing the ... |
abf20365ddc898d0c98f273f465322563a1bbba9 | remove console.log(jsonAxes) | src/renderer/axes.js | src/renderer/axes.js | const processAxes = ( Graph, graph, type, axisOptions, allAxes ) => {
if ( !Array.isArray( axisOptions ) ) {
axisOptions = [ axisOptions ];
}
axisOptions.forEach( ( options ) => {
let constructorName;
if ( type == 'x' ) {
type = 'bottom';
} else if ( type == 'y' ) {
type = 'left';
... | JavaScript | 0.000011 | @@ -1293,35 +1293,8 @@
%5B%5D;%0A
- console.log( jsonAxes );%0A
if
|
ade63f614a9005f5eedd01cdb0b3ae3f3eac92d0 | add default ops state | lib/dirAsyncSequence.js | lib/dirAsyncSequence.js | 'use strict';
var fs = require('fs'),
path = require('path'),
Lazy = require('lazy.js');
/**
*
* @class DirectoryStreamSequence
*
* @param path
* @param ops
* @constructor
*/
function DirectoryStreamSequence(path, ops) {
this.path = path;
this.ops = ops;
this.parent = this;
}
DirectoryStre... | JavaScript | 0.000001 | @@ -663,33 +663,73 @@
this.ops = ops
-;
+ %7C%7C %7B%0A recursive: true%0A %7D;%0A
%0A this.files
|
298b7ff039ddf155832a4ce83df99b044e015dbd | Fix name not being passed to search query | lib/google-locations.js | lib/google-locations.js | var https = require('https'),
_ = require('underscore'),
url = require('url');
var GoogleLocations = function(key, options) {
// Set default options
if (!options) options = {};
options = _.defaults(options, {
format: 'json',
headers: { "User-Agent": 'Google-Locations (https://www.npmjs.org... | JavaScript | 0.000008 | @@ -3140,32 +3140,24 @@
0%7D;%0A if (
-options.
name) query.
|
468ce5bc122e580fed449525d8f83ada78fb1d5e | Fix syntax | lib/helpers/hydrater.js | lib/helpers/hydrater.js | 'use strict';
/**
* @file Hydrate the file from scratch.
* Download it from AnyFetch, save it to local storage, run the hydrater function and return the result.
*
* This helper is used in the server queue.
*/
var async = require('async');
var fork = require('child_process').fork;
var request = require('supertest... | JavaScript | 0.509732 | @@ -6829,16 +6829,26 @@
%7D
+%0A
else %7B%0A
@@ -7217,16 +7217,25 @@
Logger(%22
+INTERNAL
ERR%22, in
|
a2587167edfc7e3cccfa81996cbc31cead683a26 | Fix test error | lib/hexo/load_config.js | lib/hexo/load_config.js | 'use strict';
const merge = require('lodash/merge');
const { sep, resolve, join, parse } = require('path');
const tildify = require('tildify');
const Theme = require('../theme');
const Source = require('./source');
const fs = require('hexo-fs');
const chalk = require('chalk');
module.exports = ctx => {
if (!ctx.env... | JavaScript | 0.000017 | @@ -1516,20 +1516,16 @@
rtsWith(
-base
name));%0A
@@ -1557,23 +1557,16 @@
urn
-pathFn.
join(dir
name
@@ -1561,20 +1561,16 @@
join(dir
-name
, item);
|
2b7d5ecce06fc4dc0588797f3513a95d29a6ff3b | Use underscores | lib/inputs/HTTPInput.js | lib/inputs/HTTPInput.js | let util = require('util'),
BaseInput = require('./BaseInput'),
EventContainer = require('../EventContainer')
/**
* Turns http requests into events
* You must call `listen` after adding this input
*
* const http = require('http')
* let s = http.createServer()
* s.listen(9012)
* addInputPlugin('http', { ... | JavaScript | 0.00001 | @@ -2444,17 +2444,18 @@
ata.http
-R
+_r
equest =
|
c7fba4755776d26c9080a711ff9edc640395eaf1 | Add volume scales | src/scales/volume.js | src/scales/volume.js | /*
* Cookie Calculator / scales/volume.js
* copyright (c) 2016 Susisu
*/
"use strict";
import { SIUnit } from "../units.js";
let values = [
];
export default values.map(x => ({
quantity : SIUnit.CUBIC_METRE.value(x.value),
description: x.description
}));
| JavaScript | 0.000002 | @@ -139,16 +139,623 @@
ues = %5B%0A
+ %7B%0A value: 2.82e-45,%0A description:%0A %60Proton%60%0A %7D,%0A %7B%0A value: 7.23e-30,%0A description:%0A %60Hydrogen atom%60%0A %7D,%0A %7B%0A value: 5e-21,%0A description:%0A %60A virus... |
51c2ce6c9069cb85c37f756caebc426fe265d2fb | Fix root expires token handling | lib/lumbar-long-expires.js | lib/lumbar-long-expires.js | var _ = require('underscore'),
async = require('async'),
exec = require('child_process').exec,
jsdom = require('jsdom').jsdom,
lumbar = require('lumbar'),
fu = lumbar.fileUtil;
module.exports = {
priority: 80,
generateToken: function(command, callback) {
if (!command) {
return callba... | JavaScript | 0.000001 | @@ -2492,24 +2492,25 @@
static' %7C%7C !
+(
context.reso
@@ -2537,17 +2537,16 @@
en'%5D %7C%7C
-!
context.
@@ -2560,16 +2560,17 @@
e.root))
+)
%7B%0A
|
a577b3c8f0fca2aa88c994095488f577bbddb325 | update default injected styles | lib/oasis/style-barrier.js | lib/oasis/style-barrier.js | import nextFrame from 'oasis/raf';
function addThrottledListener(elt, event, handler) {
let pending = false;
elt.addEventListener(event, () => {
if (pending) { return; }
pending = true;
nextFrame(() => {
pending = false;
handler();
});
});
}
function setSrcDoc(iframe, content) {
if... | JavaScript | 0.000001 | @@ -949,16 +949,29 @@
rgin: 0;
+ height: auto
%7D body
|
9306de9dcfd88eec32d334419cfa83726c1edc81 | fix error | lib/offshore/core/cache.js | lib/offshore/core/cache.js | var fs = require('fs');
var path = require('path');
var os = require('os');
var _ = require('lodash');
var filepath = os.tmpdir();
var prefix = 'CACHE_';
var defaultCacheTime = 3600000;
var HEADER_SIZE = 20;
function fullpath(key) {
return path.join(filepath, prefix + key);
}
;
var DefaultAdapter = {
get: funct... | JavaScript | 0.000002 | @@ -3944,16 +3944,31 @@
move(key
+, function() %7B%7D
);%0A
|
b9f2eb21fa23d369ad5185adb3ec33ca7001d474 | Fix api docs of Processor | lib/mincer/processor.js | lib/mincer/processor.js | /*:nodoc:* internal
* class Processor
*
* Subclass of [[Template]].
*
* Used to create custom processors without need to extend [[Template]] by
* simply providing a function to the processor registration methods:
*
* var name = 'my-pre-processor';
* var func = function (context, data, callback) {... | JavaScript | 0 | @@ -40,41 +40,8 @@
%0A *%0A
- * Subclass of %5B%5BTemplate%5D%5D.%0A *%0A
*
@@ -624,16 +624,64 @@
ssing%5D%5D%0A
+ *%0A *%0A * ##### SUBCLASS OF%0A *%0A * %5B%5BTemplate%5D%5D%0A
**/%0A%0A%0A'
|
9949a62f1f56417ac02a8873fe49c21cc143e1c4 | Fix output view closing too early Output view would close too early because of previous timeout. | lib/output-view-manager.js | lib/output-view-manager.js | 'use babel';
'use strict';
/* jshint node: true */
/* jshint esversion: 6 */
/* global localStorage, console, atom, module */
const ScrollView = require('atom-space-pen-views').ScrollView;
let defaultMessage = '[Loading...]';
class OutputView extends ScrollView {
constructor() {
super();
this.mes... | JavaScript | 0.007646 | @@ -346,24 +346,102 @@
ine(line) %7B%0A
+ if (this.timeout) %7B%0A clearTimeout(this.timeout);%0A %7D%0A
if (
@@ -470,24 +470,24 @@
tMessage) %7B%0A
-
@@ -582,24 +582,102 @@
reset() %7B%0A
+ if (this.timeout) %7B%0A clearTimeout(this.timeout);%0A ... |
fb491087b9a8771c8b45d441f5185036ee5adf6e | Fix array parser parsing blank string. | lib/parsers/as-array.js | lib/parsers/as-array.js | 'use strict';
function parseQueryParamAsArray(p) {
return function parseQueryParameter(q) {
var query = {};
query[p] = q[p].split(',');
return query;
};
}
module.exports = parseQueryParamAsArray;
| JavaScript | 0.000033 | @@ -122,16 +122,30 @@
ery%5Bp%5D =
+ (q && q%5Bp%5D) ?
q%5Bp%5D.sp
@@ -152,16 +152,21 @@
lit(',')
+ : %5B%5D
;%0A%0A r
|
b9e2d28204cf196af51e184ad757c9e34619d016 | Change 'Default Menu' title to 'Menu' | lib/plugin/menu/menu.js | lib/plugin/menu/menu.js | "use strict";
const Plugin = require('../plugin');
const Data = require('../settings/data');
const MenuWidget = require('./widget/menuWidget');
const Handler = require('../router/handler');
const merge = require('../../util/merge');
const Path = require('path');
const {coroutine: co} = require('bluebird');
class Menu... | JavaScript | 0.008324 | @@ -1609,24 +1609,16 @@
title: '
-Default
Menu',%0A
|
cf492e9eba6902df7c6f3e7764fbcca08b95ff25 | Disable minifyJs for ampSafe | lib/presets/ampSafe.es6 | lib/presets/ampSafe.es6 | import objectAssign from 'object-assign';
import safePreset from './safe';
/**
* A safe preset for AMP pages (https://www.ampproject.org)
*/
export default objectAssign({}, safePreset, {
collapseBooleanAttributes: {
amphtml: true,
},
});
| JavaScript | 0.000001 | @@ -246,12 +246,33 @@
%0A %7D,%0A
+ minifyJs: false,%0A
%7D);%0A
|
7838950f5aa2c97555d60dd704466d0a26d84d04 | Remove redundant branches to fix Airbnb 9 issue. | lib/registration-record.js | lib/registration-record.js | 'use strict';
/**
* Registration record for a dependency
*/
class RegistrationRecord {
/**
* Initialize a new registration record
* @param {object} details - Registration details
*/
constructor(details) {
if (!details) {
throw new Error('Cannot initialize RegistrationRecord: no de... | JavaScript | 0 | @@ -337,33 +337,32 @@
%7D else if (!
-(
details.generato
@@ -363,17 +363,16 @@
nerator)
-)
%7B%0A
@@ -468,17 +468,16 @@
se if (!
-(
details.
@@ -481,17 +481,16 @@
ls.tags)
-)
%7B%0A
|
0cf5fd7e04e03aeb7b3744a4fb411a1a90b948e8 | Add support for private packages | lib/registry-package.js | lib/registry-package.js | var registryUrl = require('registry-url')
var request = require('superagent')
var url = require('url')
var parsePackage = require('./parse-package')
module.exports = registryPackage
function registryPackage(name, opts, callback) {
request
.get(url.resolve(registryUrl(), name))
.end(parsePackage(opts, callba... | JavaScript | 0 | @@ -1,12 +1,36 @@
+var rc = require(%22rc%22);%0A
var registry
@@ -43,17 +43,17 @@
require(
-'
+%22
registry
@@ -56,18 +56,19 @@
stry-url
-')
+%22);
%0Avar req
@@ -82,17 +82,17 @@
require(
-'
+%22
superage
@@ -93,18 +93,19 @@
peragent
-')
+%22);
%0Avar url
@@ -119,14 +119,15 @@
ire(
-'url')
+%22url%22);
%0Av... |
5ca17674128754c7fa05e7cb5ce6f38622f2ee22 | fix error message for REST step failure | lib/rest-integration.js | lib/rest-integration.js | let Operation = require('./operation');
let Integration = require('./integration.js');
let SwaggerClient = require('./swagger-client');
const METHODS = ['get', 'put', 'post', 'patch', 'delete', 'options', 'head'];
const getID = op => {
return op.operationId || (op.method.toUpperCase() + ' ' + op.path);
}
class RES... | JavaScript | 0.000001 | @@ -523,18 +523,279 @@
, args,
-cb
+(err, data) =%3E %7B%0A if (err) %7B%0A if (err instanceof Error) return cb(err);%0A let message = err.statusCode;%0A if (data) message += '%5Cn' + JSON.stringify(data, null, 2);%0A return cb(new Error(message));%0A %7D%0A cb(null, data);%... |
f54bfb323fceb0927292f1255647785bf34c03d3 | Remove debug code | lib/server/tokenService.js | lib/server/tokenService.js | const _ = require('lodash');
const grpc = require('grpc');
const path = require('path');
const unirest = require('unirest');
const fd = grpc.load(path.join(__dirname, './proto/com/africastalking/SdkServerService.proto')).africastalking;
let config = null;
const sipCredentials = [];
const getToken = (cxt, callback... | JavaScript | 0.000299 | @@ -739,11 +739,8 @@
%0A
- //
url
@@ -783,104 +783,8 @@
te';
-%0A url = 'https://kaende-api-rs-host.africastalking.com/token/generate';%0A console.log(url);
%0A%0A
|
d5b5341ae7b569ae2b7e1f534711bc6441883210 | remove original not a function error | lib/services/HttpClient.js | lib/services/HttpClient.js | 'use strict';
var angular = require('camunda-bpm-sdk-js/vendor/angular');
var CamSDK = require('camunda-bpm-sdk-js/lib/angularjs/index');
module.exports = ['$rootScope', '$timeout' , '$q', function($rootScope, $timeout, $q) {
function AngularClient(config) {
this._wrapped = new CamSDK.Client.HttpClient(config)... | JavaScript | 0.000063 | @@ -552,28 +552,78 @@
ginal =
-options.done
+angular.isFunction(options.done) ? options.done : angular.noop
;%0A%0A
|
9612eacb2dd9075aebc8c87e5882725d3742cb16 | fix lookupOption to allow falsy values except undefined | lib/route_controller.js | lib/route_controller.js | /*****************************************************************************/
/* Imports */
/*****************************************************************************/
var Controller = Iron.Controller;
var Url = Iron.Url;
var MiddlewareStack = Iron.MiddlewareStack;
/**********************************************... | JavaScript | 0 | @@ -983,24 +983,31 @@
chain%0A if (
+typeof
this%5Bkey%5D)%0A
@@ -1003,16 +1003,32 @@
his%5Bkey%5D
+ !== 'undefined'
)%0A re
|
d1326e6dfa94f6d49e76b7fd62b3a05e34cd6264 | Use the session user to fetch org repos | lib/router/repo-info.js | lib/router/repo-info.js | /*jshint strict:true, trailing:false, unused:true, node:true */
'use strict';
require("babel/register");
var GitHub = require('../github');
var redis = require('../redis');
var Repo = require('../repo');
module.exports = function(req, res) {
var owner = req.params.owner;
var name = req.params.repo;
return... | JavaScript | 0 | @@ -324,19 +324,30 @@
dis.get(
-own
+req.session.us
er)%0A .t
@@ -784,24 +784,46 @@
(err) =%3E %7B%0A
+ console.log(err);%0A
console.
|
f3adc3d330e7682bd26c5ad28f1e7dcb02632a4d | Tidy up | lib/sonaatti-scraper.js | lib/sonaatti-scraper.js | #!/usr/bin/env node
var restaurants = ['aallokko', 'alvari', 'cafe-libri', 'lozzi',
'musica', 'piato', 'wilhelmiina', 'hestia',
'kvarkki', 'ylisto', 'novelli', 'normaalikoulu'];
var apiPrefix = 'api';
var baseUrl = 'http://www.sonaatti.fi/';
var restify = require('restify');
var io = require('node.io');
funct... | JavaScript | 0.000027 | @@ -304,24 +304,136 @@
node.io');%0A%0A
+// TODO: --serve%0AfoodToday(baseUrl + 'piato', function(d) %7Bconsole.log(d);%7D);%0A// main();%0A%0Afunction main() %7B%0A
function res
@@ -455,24 +455,28 @@
next) %7B%0A
+
+
res.send(foo
@@ -486,19 +486,27 @@
day());%0A
-%7D%0A%0A
+ %7D%0A%0A
var serv... |
4fbbd142358bba34cabe104e6804ed5228dfea0b | check if path contains `/` at beginning | lib/util/escape-path.js | lib/util/escape-path.js | // Escape URI-sensitive chars, but leave forward slashes alone.
module.exports = function escapePath(p) {
return encodeURIComponent(p)
.replace(/%2F/g, '/')
.replace(/\)/g, '%29')
.replace(/\(/g, '%28');
}
| JavaScript | 0.000001 | @@ -105,14 +105,15 @@
%7B%0A
-return
+var p =
enc
@@ -212,10 +212,62 @@
'%2528');%0A
+ if (p%5B0%5D === '/') %7B p = p.slice(1); %7D%0A return p;%0A
%7D%0A
|
1f989423cea21d3f75b7731b5b7665bc91722363 | Load rabbitmq credentials from docker secret file | lib/utilities/config.js | lib/utilities/config.js | var nconf = require('nconf');
var path = require('path');
var getSecret = require('./docker-secrets').getDockerSecret;
var argv = require('yargs')
.option('app-config', {
"alias": "a",
"describe": "Configure EPP with JSON string",
"string": true
}).coerce('app-config', JSON.parse)
.option("registries... | JavaScript | 0 | @@ -1614,16 +1614,140 @@
FILE');%0A
+ let rabbitmqUser = nconf.get('RABBITMQ_DEFAULT_USER_FILE');%0A let rabbitmqPass = nconf.get('RABBITMQ_DEFAULT_PASS_FILE');%0A
if (ep
@@ -1945,16 +1945,217 @@
%7D)%0A %7D%0A
+ if (rabbitmqUser) %7B%0A getSecret(rabbitmqUser, (line) =%3E %7B nconf.set('rabbitlogin', line... |
b3ffd237a7993897d56ec309f6b70c3b35281b6a | Update up to changes in es5-ext | lib/utils/index-test.js | lib/utils/index-test.js | 'use strict';
var fs = require('fs')
, normalize = require('path').normalize
, curry = require('es5-ext/lib/Function/prototype/curry')
, contains = curry.call(require('es5-ext/lib/Array/prototype/contains'))
, noop = require('es5-ext/lib/Function/noop')
, not = require('es5-ext/lib/Fun... | JavaScript | 0 | @@ -448,12 +448,14 @@
ype/
-dash
+hyphen
-to-
@@ -463,13 +463,8 @@
amel
--case
')%0A
|
8d06698669ae8a93893315d416b6676a01a89ff2 | Rearrange ErrorView buttons | lib/views/error-view.js | lib/views/error-view.js | import React from 'react';
import PropTypes from 'prop-types';
export default class ErrorView extends React.Component {
static propTypes = {
title: PropTypes.string,
descriptions: PropTypes.arrayOf(PropTypes.string),
preformatted: PropTypes.bool,
retry: PropTypes.func,
logout: PropTypes.func,
... | JavaScript | 0.000001 | @@ -770,24 +770,192 @@
ge-action%22%3E%0A
+ %7Bthis.props.retry && (%0A %3Cbutton className=%22github-Message-button btn btn-primary%22 onClick=%7Bthis.props.retry%7D%3ETry Again%3C/button%3E%0A )%7D%0A
@@ -1164,176 +1164,8 @@
)%7D%0A
- %7Bthis.props.retry ... |
394999c50829e833dbe1669aef3f274d2265dfe6 | Update tests | __tests__/components/Languages-test.js | __tests__/components/Languages-test.js | jest.dontMock('../../components/Languages.js');
var React = require('react');
var TestUtils = require('react-addons-test-utils');
var languagesComponent = React.createFactory(require('../../components/Languages'));
describe('Languages component test suite', function () {
var component;
describe('for an empty lan... | JavaScript | 0.000001 | @@ -72,16 +72,53 @@
eact');%0A
+var ReactDOM = require('react-dom');%0A
var Test
@@ -157,24 +157,24 @@
st-utils');%0A
-
%0Avar languag
@@ -610,38 +610,45 @@
;%0A%09%09%09expect(
-h2.get
+ReactDOM.find
DOMNode(
).textConten
@@ -627,32 +627,34 @@
DOM.findDOMNode(
+h2
).textContent).t
@@ -1548,22 +1548,29 @@
ect... |
a2497d0cc85505cb5c68fcd351d23369fd1e5f7c | Resolve strange kalastack_url inconsistency between installer/updater | kalabox/updater.js | kalabox/updater.js | /**
* @file
* Update mechanism for Kalabox's dependencies.
*
* Copyright 2013 Kalamuna LLC
*/
// Dependencies:
var fs = require('fs'),
exec = require('child_process').exec,
request = require('request'),
flow = require('nue').flow,
as = require('nue').as,
config = require('../config'),
box ... | JavaScript | 0 | @@ -629,24 +629,178 @@
TACK_DIR'),%0A
+ KALASTACK_VERSION = config.kalastack.get('kalastack_version'),%0A KALASTACK_URL = KALASTACK_BASE_URL + 'kalastack-' + KALASTACK_VERSION + '.tar.gz',%0A
DEPENDEN
@@ -4489,53 +4489,11 @@
ACK_
-BASE_URL + configuration%5B'kalastack_version'%5D
+URL
);%0A
|
f95c49edb3637a91b9e2c7d4b17c405c3eb5ebb6 | refresh button | Resources/layouts/ipad/nav.js | Resources/layouts/ipad/nav.js | Layouts.ipad.nav = function(main_content, main_window) {
var nav_view = Ti.UI.createView({
backgroundImage:"images/nav/NCR_iPad2_button_row_bg.png",
top:189,
height:122,
left:0,
right:0
});
var schedules_button = Ti.UI.createButton({
backgroundImage:"images/nav/NCR_iPad_schedule_btn_inactive.png",
b... | JavaScript | 0.000001 | @@ -1546,105 +1546,8 @@
);%0A%09
-%0A%09Ti.App.addEventListener(%22apiUpdateStart%22, function(e) %7B%0A%09%09refresh_button.visible = false;%0A%09%7D);%0A
%09%0A%09T
@@ -1606,41 +1606,8 @@
) %7B%0A
-%09%09refresh_button.visible = true;%0A
%09%09bu
|
d14ac4cb067e0e69e9e286b738c222ec1ce189b9 | increase verbosity of persisted logs | src/server/logger.js | src/server/logger.js | import { join } from "path"
import { format, inspect } from "util"
import { Writable } from "stream"
import bunyan from "bunyan"
import { environment } from "./environment"
const logPath = join(process.cwd(), "log", environment)
let logger = null
export default function() {
if (logger === null) {
logger = cr... | JavaScript | 0 | @@ -691,16 +691,32 @@
logPath
+, level: %22debug%22
%7D%5D%0A%0A i
|
11f80d5ba0cb82e20e17b22484dc4d9a172eff1f | Load all enum files in the Plugin class to expose for plugins | classes/Plugin.js | classes/Plugin.js | var Path = require('path'),
fs = require('fs-extra'),
{app} = require('electron');
module.exports = function(pluginName) {
const pluginPath = Path.resolve('plugins', pluginName);
return {
require: (name) => {
return require(Path.resolve('./', name));
},
event: {
... | JavaScript | 0 | @@ -190,22 +190,28 @@
);%0A%0A
-return
+var plugin =
%7B%0A
@@ -1641,14 +1641,407 @@
%7D
-%0A %7D;
+,%0A enums: %7B%7D%0A %7D;%0A%0A // Load all enums in the ./enum directory and set plugin.enums%0A const enumFiles = fs.readdirSync( './enum' );%0A enumFiles.forEach((enumFile) =%3E ... |
99a4a3666abc6183e74f4b830fd6f0ae5890e1bf | Print Button | js/OpenGraph.js | js/OpenGraph.js |
// Called when the page is ready and loaded
$(document).ready(function()
{
// -------------------------------------------
// --- OpenGraphAppPaper.js Initialization ---
// -------------------------------------------
board = JXG.JSXGraph.initBoard('myBox',
{
boundingbox: [-10, 12, 10, -10],
axis: { tic... | JavaScript | 0.000078 | @@ -2047,24 +2047,652 @@
%7D%0A %7D);%0A
+ $(%22#print%22).click(function () %7B%0A board.renderer.svgRoot.setAttribute(%22xmlns%22, %22http://www.w3.org/2000/svg%22);%0A var svg = board.renderer.svgRoot;%0A var svgData = new XMLSerializer().serializeToString(svg);%0A%0A // having t... |
19c007901d7b4397c9d35ae1beb2cc386bbb4438 | Add warning for undefined connection file (#5223) | lib/dialects/sqlite3/index.js | lib/dialects/sqlite3/index.js | // SQLite3
// -------
const defaults = require('lodash/defaults');
const map = require('lodash/map');
const { promisify } = require('util');
const Client = require('../../client');
const Raw = require('../../raw');
const Transaction = require('./execution/sqlite-transaction');
const SqliteQueryCompiler = require('./q... | JavaScript | 0 | @@ -828,16 +828,336 @@
onfig);%0A
+%0A if (config.connection && config.connection.filename === undefined) %7B%0A this.logger.warn(%0A 'Could not find %60connection.filename%60 in config. Please specify ' +%0A 'the database path and name to avoid errors. ' +%0A '(see docs https://knexjs... |
076d16226a4b77449d6b5f82a2cb5b5070b4f503 | change SW route | src/server/server.js | src/server/server.js | import 'babel-polyfill'
import path from 'path'
import { Server } from 'http'
import Express from 'express' // eslint-disable-line
import React from 'react'
import { renderToString } from 'react-dom/server'
import { match, RouterContext } from 'react-router'
import { createStore } from 'redux'
import { Provider } from... | JavaScript | 0.000001 | @@ -988,16 +988,21 @@
rname, '
+../..
/dist/st
|
39569c7b2a45b8a16dac596f2e9f0a65e7e503d7 | Remove unused SKIP for websql | lib/dialects/websql/runner.js | lib/dialects/websql/runner.js | // Runner
// -------
module.exports = function(client) {
var Promise = require('../../promise');
// Require the SQLite3 Runner.
require('../sqlite3/runner')(client);
var Runner_SQLite3 = client.Runner;
var inherits = require('inherits');
var _ = require('lodash');
// Inherit from the `Runner` constructor's ... | JavaScript | 0.000001 | @@ -696,71 +696,8 @@
j);%0A
- if (obj.sql === SKIP) %7B%0A return Promise.resolve(obj);%0A %7D%0A
va
|
7cdbe4ededf2cc84f9eb1f9cedc439ba425e696c | fix buggy dispose in TimerNode, https://github.com/phetsims/scenery-phet/issues/430 | js/TimerNode.js | js/TimerNode.js | // Copyright 2014-2018, University of Colorado Boulder
/**
* Shows a readout of the elapsed time, with play and pause buttons. By default there are no units (which could be used
* if all of a simulations time units are in 'seconds'), or you can specify a selection of units to choose from.
*
* @author Jonathan Ols... | JavaScript | 0 | @@ -5179,24 +5179,67 @@
imerNode();%0A
+ Node.prototype.dispose.call( this );%0A
%7D%0A %7D );
|
c0c17041a09f9ee1aa80368f4e8eb8d3485c48a9 | fix ssh password being ignored | client/actions.js | client/actions.js | 'use strict';
import { Client } from 'ssh2';
import net from 'net';
import Redis from 'ioredis';
import _ from 'lodash';
const actions = {
connect(config) {
return dispatch => {
if (config.ssh) {
dispatch({ type: 'updateConnectStatus', data: 'SSH connecting...' });
const conn = new Client(... | JavaScript | 0.000007 | @@ -964,16 +964,49 @@
try %7B%0A
+ if (config.sshKey) %7B%0A
@@ -1022,16 +1022,18 @@
nnect(%7B%0A
+
@@ -1070,16 +1070,18 @@
+
port: co
@@ -1112,16 +1112,18 @@
+
username
@@ -1152,16 +1152,18 @@
+
+
privateK
@@ -1181,16 +1181,18 @@
sshKey,%0A
+... |
9f171809e5ae91244b690fa4ca70296edbc550b6 | send geojson as string not as object CDB-585 | lib/assets/javascripts/cartodb/table/geom_editor.js | lib/assets/javascripts/cartodb/table/geom_editor.js |
cdb.admin.GeometryEditor = cdb.core.View.extend({
className: "editing",
MAX_VERTEXES: 2000,
events: {
'click .done': 'finish',
'click .discard': 'discard',
'click .cancel': 'discard',
'mousedown': 'killEvent'
},
initialize: function() {
this.add_related_model(this.model);
this.geom... | JavaScript | 0 | @@ -869,24 +869,39 @@
'the_geom',
+JSON.stringify(
this.drawer.
@@ -913,16 +913,17 @@
oJSON())
+)
;%0A
|
798c2577b8a12220fb873fe55045067f34add6f5 | Update countdown.js | js/countdown.js | js/countdown.js | function getTimeRemaining(endtime) {
var t = Date.parse(endtime) - Date.parse(new Date());
var seconds = Math.floor((t / 1000) % 60);
var minutes = Math.floor((t / 1000 / 60) % 60);
var hours = Math.floor((t / (1000 * 60 * 60)) % 24);
var days = Math.floor(t / (1000 * 60 * 60 * 24));
return {
'total': t... | JavaScript | 0 | @@ -355,20 +355,8 @@
ours
- + 24 * days
,%0A
|
12c7fa7456c24d93db7cdd6a116b0f6fece82184 | remove log | test/acceptance.js | test/acceptance.js | // use a minimal 100 line test framework. We do not want this
// file to exit prematurely. both `tape` & `mocha` do process.exit()
var test = require('assert-tap').test
var Readable = require('readable-stream').Readable
var setTimeout = require('timers').setTimeout
var getRawBody = require('../')
// this test is abou... | JavaScript | 0.000001 | @@ -2951,35 +2951,8 @@
) %7B%0A
- console.log('wtf :(')%0A%0A
|
8c3e702c3521a2f7c4b28994d25022e5d4487f2c | Update functions.js | js/functions.js | js/functions.js | $(document).ready(function() {
setTimeout(function() {
$("#preloader").css("display","none")
}, 5000);
});
function hoverHash(imdb) {
$.get("https://www.omdbapi.com/?i="+imdb+"&plot=full&r=json&apikey=bd31da15", function (data) {
movie_rating = Math.round(data.imdbRating);
movie_rating_star = '<i class="fas fa... | JavaScript | 0.000002 | @@ -2701,20 +2701,56 @@
ow.open(
-hash
+%22https://codepen.io/eliooses/pen/vMQpEO%22
, %22kad%22,
@@ -2778,12 +2778,13 @@
w.close();%0A%7D
+%0A
|
efe9a59f29e322e9450dd4ee62f491f3ce904b40 | Update tests to cover expected result of getLicense method. | test/basic-test.js | test/basic-test.js | // Basic tests
// ===========
// Basic library tests.
var expect = require('chai').expect,
QClient = require('../qclient'),
config = require('./config.js'),
Q = new QClient(config.clientId, config.clientSecret, config.options);
describe('QClient', function() {
it('should set client ID and secret... | JavaScript | 0 | @@ -240,18 +240,51 @@
options)
+,%0A _ = require('lodash')
;%0A
-
%0Adescrib
@@ -1317,97 +1317,8 @@
);%0A%0A
- expect(response).to.be.a('string');%0A%0A var parsed = JSON.parse(response);%0A%0A
@@ -1457,22 +1457,24 @@
expect(
-par
+respon
se
-d
.status)
@@ -1564,38 +1564,40 @@
... |
36355e6b9fdaa6a1b51bfb3b8b06036094791241 | Add some space | judy.js | judy.js | /*! written by @travisjeffery */
+function ($) { 'use strict';
var Effect = function (element) {
this.element = element
this.chars = element.querySelectorAll('.js-judy-char')
this.charsLength = this.chars.length
if (!this.charsLength) return
this.endIndex = 0
this.startInd... | JavaScript | 0.012746 | @@ -268,26 +268,24 @@
return%0A
-
this.endInde
@@ -290,24 +290,24 @@
dex = 0%0A
+
this.sta
@@ -1107,16 +1107,17 @@
)' : ''%0A
+%0A
this
@@ -1139,16 +1139,17 @@
(color)%0A
+%0A
for
@@ -1241,18 +1241,17 @@
lors%5Bn%5D%0A
-
+%0A
this
@@ -1797,16 +1797,17 @@
it(' ')%0A
+%0A
for... |
421b548b527b40b83dd9a204e58bfc928de11e53 | Add axis labels to histograms | js/histogram.js | js/histogram.js |
function draw_hist(ident, vals) {
// A formatter for counts.
var formatCount = d3.format(",.0f");
var margin = {top: 10, right: 30, bottom: 30, left: 30},
width = 200 - margin.left - margin.right,
height = 100 - margin.top - margin.bottom;
var x = d3.scale.linear()
.domain([-... | JavaScript | 0.000004 | @@ -98,11 +98,10 @@
t(%22,
-.0f
+0d
%22);%0A
@@ -157,17 +157,17 @@
, left:
-3
+4
0%7D,%0A
@@ -697,17 +697,17 @@
.ticks(
-5
+3
)%0A
@@ -3090,110 +3090,531 @@
nd(%22
-g%22)%0A .attr(%22class%22, %22y axis%22)%0A .attr(%22transform%22, %22translate(0, 0)%22)%0A .call(yAxis
+text%22)... |
56db6587422408579fdf52e19d41ab539cd36a20 | add platform flag for sample app symlink issue | lib/MMXSampleApp.js | lib/MMXSampleApp.js | var ejs = require('ejs')
, fs = require('fs')
, MMXManager = require('./MMXManager')
, JSZip = require("jszip");
var CONFIGS = {
android : {
quickstart : 'quickstart-android/app/src/main/res/raw/quickstart.properties',
rpsls : 'rpsls-android/app/src/main/res/raw/rpsls.properties',
soap... | JavaScript | 0 | @@ -1468,16 +1468,20 @@
type
+
: 'nodeb
@@ -1486,16 +1486,61 @@
ebuffer'
+,%0A platform : process.platform
%0A
|
1a8efa78722eb174f75b6472a14e8d6f9ed4f771 | Add Josh Lewis | js/locations.js | js/locations.js | var locations = [
{ name: 'wayne bills', origin: 'northaven, tn', latitude: 35.26507, longitude: -90.04078 },
{ name: 'brad montgomery', origin: 'lepanto, ar', latitude: 35.61046, longitude: -90.33114 },
{ name: 'stephen bramlett', origin: 'memphis, tn', latitude: 35.14174, longitude: -89.97456 },
{ name: 'eric... | JavaScript | 0.00029 | @@ -391,12 +391,109 @@
964886 %7D
+,%0A %7B name: 'josh lewis', origin: 'rogersville, mo', latitude: 37.110618, longitude: -93.053759 %7D
%0A%5D;%0A
|
7306b74c1da3723bf42fd875f349ada496d823a6 | Add Daniel Soskel to locations. | js/locations.js | js/locations.js | var locations = [
{ name: 'wayne bills', origin: 'northaven, tn', latitude: 35.26507, longitude: -90.04078 },
{ name: 'brad montgomery', origin: 'lepanto, ar', latitude: 35.61046, longitude: -90.33114 },
{ name: 'Stephen Bramlett', origin: 'memphis, tn', latitude: 35.2243923520236, longitude: -90.00089585781097 }... | JavaScript | 0 | @@ -1207,12 +1207,118 @@
944866 %7D
+,%0A %7B name: 'Daniel Soskel', origin: 'Salt Lake City, UT', latitude: 40.7762692, longitude: -112.2006695 %7D
%0A%5D;%0A
|
270088278d55af8bf7d54893e6753a1c5509d5aa | Update lunr-feed.js | js/lunr-feed.js | js/lunr-feed.js | ---
---
// builds lunr
var index = lunr(function () {
this.field('title')
this.field('content', {boost: 10})
this.field('category')
this.field('tags')
this.ref('id')
{% assign count = 0 %}
{% for post in site.posts %}
this.add({
title: {{post.title | jsonify}},
category: {{post.category | jsonify}},
c... | JavaScript | 0 | @@ -649,18 +649,16 @@
g' %25%7D%0A
-//
%7B%25 assig
@@ -695,13 +695,8 @@
d:'/
-blog/
post
@@ -825,18 +825,16 @@
nify%7D%7D,%0A
-//
%22image
|
d2c48cfa207b9b5b27774a9f3fa4fae4d243760e | Test code | js/menuLogic.js | js/menuLogic.js | "use strict";
var user = undefined;
// Using a redirect.
firebase.auth().getRedirectResult().then(function(result) {
if (result.credential) {
// This gives you a Google Access Token.
var token = result.credential.accessToken;
}
user = result.user;
});
if (user !== undefined) {
$("#mainM... | JavaScript | 0.000001 | @@ -268,16 +268,109 @@
lt.user;
+%0A%0A $(%22#mainMenu-loginMenu%22).hide();%0A $(%22#controls%22).show();%0A $(%22#logoutBtn%22).show();
%0A%7D);%0A%0Aif
|
c2ec4bcfb81d7d21141710a68e3588df8f87f4c5 | maintain consistent code style | lib/timelines/timelines.js | lib/timelines/timelines.js | 'use strict';
var EventHandler = require('./../utilities/event-handler');
var converter = require('framework-utilities/converter');
var toSalty = converter.sweetToSalty;
var piecewise = require('./../helpers/helpers').piecewise;
function Timelines(timelineGroups, states) {
EventHandler.apply(this);
this._ti... | JavaScript | 0.00106 | @@ -3894,33 +3894,32 @@
-
var timelineBeha
@@ -3949,25 +3949,24 @@
%5Bbehavior%5D;%0A
-
@@ -4037,25 +4037,24 @@
-
if (definiti
@@ -4115,17 +4115,16 @@
pi */ %7D%0A
-
|
0c271db3766effc35aa26118c1620ec6f7764b4f | Fix broken log object output. | lib/utils/requestLogger.js | lib/utils/requestLogger.js | var _ = require('underscore');
exports.create = function(logger) {
const PAYLOAD_PREVIEW_LENGTH = 1024;
const EXPOSED_CENSOR_CHARS = 4;
var logRequest = (verb, requestOptions) => {
logRequestBasics('info', verb, requestOptions);
logHeaders(requestOptions.headers);
logPayload(requestOptions.body); //... | JavaScript | 0.000002 | @@ -488,34 +488,32 @@
try #%25d%5CnCause:
-%25O
', attemptNum, e
@@ -708,18 +708,16 @@
nCause:
-%25O
', attem
@@ -735,61 +735,8 @@
r);%0A
- logRequestBasics('error', verb, requestOptions);%0A
%7D;
@@ -1577,10 +1577,8 @@
rs:
-%25O
', h
|
184eb8bf0f473fa5b54c1661e9f4522d5d943eec | Check the message before parsing | lib/message/message-parser.js | lib/message/message-parser.js | // telegram-mt-node
// Copyright 2014 Enrico Stara 'enrico.stara@gmail.com'
// Released under the MIT License
// https://github.com/enricostara/telegram-mt-node
// MessageParser class
//
// This class provide a parser for the messages from Telegram
// Import dependencies
require('requirish')._(mod... | JavaScript | 0 | @@ -598,24 +598,152 @@
duration) %7B%0A
+ if(!message %7C%7C !message.getTypeName) %7B%0A logger.error('Message undefined or unknown', message);%0A return;%0A %7D%0A
switch (
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.