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 |
|---|---|---|---|---|---|---|---|
3e4672051c857edb5e3e5051f8f6b6bcb3a1f10c | update API key to pivotal expert | docs/settings.js | docs/settings.js | (function() {
// Initialize Firebase
var config = {
apiKey: "AIzaSyA1C3DGIpn6zY1p9z4a7qDnE60p28HDgxQ",
authDomain: "fyp-development.firebaseapp.com",
databaseURL: "https://fyp-development.firebaseio.com",
storageBucket: "fyp-development.appspot.com",
messagingSenderId: "1024577960550"
};
firebase.... | JavaScript | 0 | @@ -32,16 +32,17 @@
irebase%0A
+
var con
@@ -49,16 +49,17 @@
fig = %7B%0A
+
apiKe
@@ -72,44 +72,45 @@
zaSy
-A1C3DGIpn6zY1p9z4a7qDnE60p28HDgxQ
+Dt22-VriobDs7cNfkmY8yxHur9IQBewWo
%22,%0A
+
a
@@ -121,30 +121,29 @@
omain: %22
-fyp-developmen
+pivotal-exper
t.fireba
@@ -154,16 +154,17 @@
p.com%22,%0A
+
... |
d255083e1c79ffca41a3048dca3b0d66b208bedc | Add blockfinder to database (#22) | libs/shareProcessor.js | libs/shareProcessor.js | var redis = require('redis');
var Stratum = require('stratum-pool');
/*
This module deals with handling shares when in internal payment processing mode. It connects to a redis
database and inserts shares with the database structure of:
key: coin_name + ':' + block_height
value: a hash with..
key:
*/
mo... | JavaScript | 0 | @@ -3501,16 +3501,34 @@
a.height
+, shareData.worker
%5D.join('
|
f3507ecb65393e444818994cb45f32e7b00a8100 | fix Right hand drill. | learn-keyboard.js | learn-keyboard.js | // Wrap everything in a function to avoid polluting the global namespace.
(function() {
let E = {};
TypeJig.WordSets.LearnKeyboard = E;
/**
* Randomize array element order in-place.
* Using Durstenfeld shuffle algorithm.
*/
function shuffle(a) {
for (var i=a.length-1; i>=1; i--) {
var j = Math.floor(Ma... | JavaScript | 0 | @@ -2392,16 +2392,20 @@
','-Z'%5D,
+100,
false)%0A%09
|
ecffcf72242258333917badc716132b4b6c3c74f | Revert "Don't store needless information" | content/config.js | content/config.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/.
*/
var BASE = 'extensions.auto-confirm@myokoym.net.';
var { prefs } = Components.utils.import('resource://auto-confir... | JavaScript | 0 | @@ -2200,16 +2200,125 @@
rule;%0A%0A
+ Object.keys(rule).forEach(function(aKey) %7B%0A item.setAttribute('data-' + aKey, rule%5BaKey%5D);%0A %7D);%0A%0A
let
|
f2cb57da612db483c3b38316c239ac43b2544a7b | use white background for graph | demo/main.js | demo/main.js | var view;
var LEFT_MARGIN = 130;
var RIGHT_MARGIN = 200;
function loadHandler() {
var colorScheme = new window.graphalicious.base.ColorScheme('#65bcd4', '#55acc4')
view = new window.graphalicious.base.View(colorScheme);
document.getElementById('footer').appendChild(view.element());
view.element().style.position... | JavaScript | 0.000001 | @@ -377,16 +377,66 @@
+ 'px';
+%0A view.element().style.backgroundColor = 'white';
%0A%0A var
@@ -840,26 +840,25 @@
ttomMargin:
-20
+5
,%0A labelG
|
1ddd60910a98b29be5b204f06eca227f37236a65 | Add command line arguments support | fire.js | fire.js | var utils = require('./utils.js');
var fs = require('fs');
var count = 0; // How many articles in the blog?
var pageSize = 10; // How many articles in each page? Defaults to 10.
var pages = 0; // How many pages are there in the blog?
var options = {
hostname: 'aico77.blog.163.com',
path: '/blog',
encoding: 'GBK... | JavaScript | 0.000002 | @@ -233,95 +233,483 @@
g?%0A%0A
-var options = %7B%0A hostname: 'aico77.blog.163.com',%0A path: '/blog',%0A encoding: 'GBK'%0A%7D
+console.log('process.argv:', process.argv);%0Aif (!process.argv%5B2%5D) %7B%0A console.error(%22Blog name must be passed.%22);%0A return ;%0A%7D%0A%0A// TODO : verification the blog n... |
8d2468eba99cba14415ef25062228f84edc066e2 | fix project nav e2e util | e2e/utils/nav.js | e2e/utils/nav.js | var helper = module.exports;
var common = require('./common');
var actions = {
project: function(index) {
browser.actions().mouseMove($('div[tg-dropdown-project-list]')).perform();
let project = $$('div[tg-dropdown-project-list] li a').first();
common.link(project);
common.waitL... | JavaScript | 0 | @@ -256,14 +256,17 @@
a').
-first(
+get(index
);%0A%0A
|
359fc22bebd2dd3f2d77cde10c0a7c20e91c94fb | add issue number | src/test/suite/basic.js | src/test/suite/basic.js | import assert from 'assert';
import electron from 'electron';
const { BrowserWindow, ipcMain } = electron;
function jews(url) {
return new Promise((resolve, reject) => {
if (jews.cache[url]) return resolve(jews.cache[url]);
let window = new BrowserWindow({
show: process.env.JEWS_SHOW_E... | JavaScript | 0.000005 | @@ -1796,16 +1796,19 @@
'); // #
+229
%0A %7D);
|
4ef8c29180ac11c48a544065136eb49543744fa1 | remove console.log | gumi.js | gumi.js | /**
* Gumi v0.1
* @usage $('sel').gumi()
*/
;(function($, window, document, undefined) {
var defaults = {
buttonClass: 'btn-default',
buttonSelectedClass: 'btn-selected',
dropdownClass: 'dropdown-default',
onChange: function() {},
onOpen: function() {}
};
/**
* @constructor
*/
va... | JavaScript | 0.000006 | @@ -1958,36 +1958,8 @@
%7D%0A%0A
- console.log(data);%0A%0A
|
c77a2bf66934d492e5be5431aeeed71bf6f13e0c | allow options for readableObjectMode, but restrict writeableObjectMode to false, for transform stream | lib/CsvBuilder.js | lib/CsvBuilder.js | const { Readable, Transform } = require('stream')
const pick = require('lodash.pick')
const get = require('lodash.get')
const deprecate = msg => console.warn(`CsvBuilder: ${msg}`)
const hasQuotes = str => /\"/.test(str)
class CsvBuilderObjectReadStream extends Readable {
constructor (data) {
super({ objectMode:... | JavaScript | 0 | @@ -2765,27 +2765,17 @@
am (
-st
rea
-mOptions = %7B o
+dableO
bjec
@@ -2779,24 +2779,23 @@
jectMode
-:
+ =
true
- %7D
) %7B%0A
@@ -2841,21 +2841,74 @@
is,
-streamOptions
+%7B%0A writeableObjectMode: false,%0A readableObjectMode%0A %7D
)%0A
|
cbf477c8ad325a45391bd439ee9bbbd80cf99eda | update config interface | http.js | http.js | /*! lil-http - v0.1 - MIT License - https://github.com/lil-js/http */
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(['exports'], factory)
} else if (typeof exports === 'object') {
factory(exports)
if (typeof module === 'object' && module !== null) {
module.ex... | JavaScript | 0.000001 | @@ -4261,36 +4261,72 @@
-xhr = null%0A return config
+return %7B xhr: xhr, config: config, start: new Date().getTime() %7D
%0A %7D
@@ -4907,16 +4907,24 @@
nction')
+%0A
throw n
@@ -4937,17 +4937,17 @@
eError('
-C
+c
allback
|
d15e5aeb883d1e6b058679d54c6621a46591e780 | Disable SourceMaps resolving. | src/lib/exceptions.js | src/lib/exceptions.js | var logger = require('./logger')
var config = require('./config')
var transport = require('./transport')
var utils = require('./utils')
var StackTrace = require('stacktrace-js')
var StackTraceGPS = require('stacktrace-gps')
var sourceCache = {}
module.exports = {
install: function() {
window.onerror = function... | JavaScript | 0 | @@ -655,24 +655,55 @@
sourceCache
+,%0A disableSourceMaps: true
%0A %7D).then
|
ac9511b9542f36ad622b484c0abe1e8377c14fce | Disable menu item | electron-main.js | electron-main.js | 'use strict';
const IS_LINUX = !process.env.PATHEXT;
const electron = require('electron');
const ipc = electron.ipcMain;
const app = electron.app; // Module to control application life.
const BrowserWindow = electron.BrowserWindow; // Module to create native browser window.
const Menu = electron.Menu;
const MenuItem... | JavaScript | 0.000003 | @@ -2161,16 +2161,48 @@
-reset')
+,%0A enabled: false
%0A
|
c3cb50c72e0592518b29d1c1f0216ecc3b57c93f | Revert separation of loadPrompt() function | igit.js | igit.js | #!/usr/bin/env node
var $ = require("clor")
, sh = require("shelljs")
, inquirer = require('inquirer')
, glob = require("glob");
/**
* checkIfCwdIsGitRepository
*
* Checks if current working directory contains git repo.
*
* @return {boolean}
*
*/
function checkIfCwdIsGitRepository(){
var cwd = sh.pwd(... | JavaScript | 0.000001 | @@ -349,16 +349,17 @@
+ '/.git
+s
')) %7B%0A
@@ -1646,30 +1646,24 @@
%0A/**%0A * load
-Readme
Prompt%0A *%0A *
@@ -1673,22 +1673,33 @@
ads the
+p
re
-adme
+tty InquirerJS
prompt.
@@ -1721,32 +1721,35 @@
containing paths
+%0A *
to readmes.%0A *%0A
@@ -1735,32 +1735,80 @@
hs%0A * to readmes
+ as well as a ... |
85b1509072a07e93151603c8c0a1699fd6ff500f | Send modifier keys to VM but allow bubbling | src/lib/vm-manager.js | src/lib/vm-manager.js | const bindAll = require('lodash.bindall');
class VMManager {
constructor (vm) {
bindAll(this, [
'attachKeyboardEvents',
'detachKeyboardEvents',
'onKeyDown',
'onKeyUp'
]);
this.vm = vm;
}
attachKeyboardEvents () {
// Feed keyboa... | JavaScript | 0 | @@ -794,218 +794,216 @@
-// Don't capture browser keyboard shortcuts%0A if (e.metaKey %7C%7C e.altKey %7C%7C e.ctrlKey) return;%0A%0A this.vm.postIOData('keyboard', %7B%0A keyCode: e.keyCode,%0A isDown: true%0A %7D);
+this.vm.postIOData('keyboard', %7B%0A keyC... |
bca1d5db26cf0c77a25e9e1d7ec2ec4b4354a493 | fix wireClient.remove return value | src/lib/wireClient.js | src/lib/wireClient.js | /*global localStorage */
/*global ArrayBuffer */
define(['./getputdelete', './util'], function (getputdelete, util) {
"use strict";
var prefix = 'remote_storage_wire_';
var events = util.getEventEmitter('connected', 'disconnected', 'error');
var state = 'anonymous';
var settings = util.getSettingStore('... | JavaScript | 0.000005 | @@ -3676,16 +3676,23 @@
');%0A
+return
getputde
|
48aac2d18dad5854845fb4fe7a48f426b08f129f | Add latest SchemaForm transpiled version | lib/SchemaForm.js | lib/SchemaForm.js | 'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... | JavaScript | 0 | @@ -985,24 +985,129 @@
TextArea);%0A%0A
+var _TextSuggest = require('./TextSuggest');%0A%0Avar _TextSuggest2 = _interopRequireDefault(_TextSuggest);%0A%0A
var _Select
@@ -4271,32 +4271,82 @@
tArea2.default,%0A
+ 'textsuggest': _TextSuggest2.default,%0A
'sel
|
694ee14eebcce746f0bee74184005af5d47bd1bc | make isolated scope to the grid | src/js/directives/ngReactGridDirective.js | src/js/directives/ngReactGridDirective.js | var ngReactGrid = require("../classes/NgReactGrid");
var ngReactGridDirective = function ($rootScope) {
return {
restrict: "E",
link: function (scope, element, attrs) {
new ngReactGrid(scope, element, attrs, $rootScope);
}
}
};
module.exports = ngReactGridDirective;
| JavaScript | 0 | @@ -134,16 +134,68 @@
t: %22E%22,%0A
+ scope : %7B%0A grid : %22=%22%0A %7D,%0A
|
14fe63951d2baa37ca3ff9fb5424fc6c2fde57e8 | Fix japanese translation | src/locale/lang/ja.js | src/locale/lang/ja.js | export default {
el: {
datepicker: {
now: '今',
today: '今日',
cancel: 'キャンセルする',
clear: 'クリヤー',
confirm: 'はい',
selectDate: '日付を入力',
selectTime: '時間を入力',
startDate: '開始日',
startTime: '開始時間',
endDate: '終了日',
endTime: '終了時間',
year: '年',
mont... | JavaScript | 0.999999 | @@ -48,17 +48,18 @@
now: '
-%E4%BB%8A
+%E7%8F%BE%E5%9C%A8
',%0A
@@ -84,34 +84,32 @@
cancel: '%E3%82%AD%E3%83%A3%E3%83%B3%E3%82%BB%E3%83%AB
-%E3%81%99%E3%82%8B
',%0A clear:
@@ -115,10 +115,9 @@
'%E3%82%AF%E3%83%AA
-%E3%83%A4%E3%83%BC
+%E3%82%A2
',%0A
@@ -158,18 +158,18 @@
te: '%E6%97%A5%E4%BB%98%... |
42d9ce8dad50d8702394a3b4ed533ee13c6c802b | Remove superfluous map | lib/aria/roles.js | lib/aria/roles.js | /*global aria, lookupTables, utils */
/**
* Check if a given role is valid
* @param {String} role The role to check
* @return {Boolean}
*/
aria.isValidRole = function (role) {
'use strict';
if (lookupTables.role[role]) {
return true;
}
return false;
};
/**
* Get the roles that have a certain "type"
* @... | JavaScript | 0.019754 | @@ -515,11 +515,14 @@
le).
-map
+filter
(fun
@@ -598,67 +598,8 @@
%7D%0A%09
-%09return null;%0A%09%7D).filter(function (r) %7B return r !== null;
%7D);%0A
|
93ffe9dc98f1e955bd1560af843b91d2ee63bb6b | Update a comment | lib/components/kernel-monitor.js | lib/components/kernel-monitor.js | /* @flow */
import React from "react";
import ReactTable from "react-table";
import { ReactTableDefaults } from "react-table";
import { observer } from "mobx-react";
import _ from "lodash";
import tildify from "tildify";
import { isUnsavedFilePath, isDeletedFilePath } from "../utils";
import typeof store from "../st... | JavaScript | 0 | @@ -1014,14 +1014,10 @@
h wo
-uld no
+n'
t ha
@@ -1031,15 +1031,135 @@
ter
-#
+https://github.com/nteract/hydrogen/pull/1662 since every deleted%0A // unsaved editor is caught by %60isDeletedFilePath%60
, but
+is
kept
@@ -1179,16 +1179,17 @@
r safety
+.
%0A if (!
|
25d68151b858ea50c4308aee2014740ecd77224a | Remove unused argument from setFocus method | modal.js | modal.js | /*!
* CSS Modal
* http://drublic.github.com/css-modal
*
* @author Hans Christian Reinl - @drublic
* @version 1.0.0
*/
(function (global) {
'use strict';
// Storage variable
var modal = {};
// Store for currently active element
modal.lastActive = undefined;
modal.activeElement = undefined;
// Polyfill ... | JavaScript | 0.000001 | @@ -2765,20 +2765,16 @@
nction (
-hash
) %7B%0A%09%09if
|
3a3e556ad7d7aa4f41abe842b38e449eb996e601 | move toward hard coded to test logic | middleware.js | middleware.js | module.exports = {
incoming: function (message, bot, builder) {
console.log('conversations/state')
console.log(global.conversations);
console.log('************');
console.log('users');
console.log(global.users);
console.log('agents');
console.log(global.agent... | JavaScript | 0.000002 | @@ -573,78 +573,9 @@
.id%5D
- = Object.assign(%7B%7D, global.conversations%5Bmessage.conversation.id%5D, %7B
+.
find
@@ -586,17 +586,15 @@
gent
-:
+ =
true
- %7D)
;%0A
@@ -777,36 +777,32 @@
) %7B%0A
-
console.log('sta
@@ -840,21 +840,22 @@
al.agent
-.push
+%5B0%5D =
(message
@@ -934,86 +93... |
2a1735951b6227a9d22a141739118a5f10f7ba4f | fix for style with correcte position | src/widgetfly.modal.js | src/widgetfly.modal.js | Widgetfly.Modal = (function(global) {'use strict';
// Widgetfly.Modal
// -------------
var Modal = function(options) {
var el, elms = window.document.querySelector('.modal');
Widgetfly.Widget.apply(this, arguments);
this.options = options;
this.container = window.document.querySelector('body');
if (opti... | JavaScript | 0 | @@ -484,25 +484,8 @@
id);
-%0A%0A%09%09this.style();
%0A%09%09%0A
@@ -543,16 +543,33 @@
tions);%0A
+%09%09%09this.style();%0A
%09%09%09if (o
|
f3455cc0c844c285178656875e5450a288afab78 | Add in ckeditor call | public/dist/js/dashboard.js | public/dist/js/dashboard.js | $.fn.editable.defaults.mode = 'inline';
$(document).ready(function() {
$('#newelectionbox').submit(function(event) {
document.getElementById("submitbtn").disabled = true;
document.getElementById("submitbtn").innerHTML = "Creating...";
var formData = {
'election'... | JavaScript | 0 | @@ -64,24 +64,69 @@
nction() %7B%0D%0A
+ CKEDITOR.replace('noticeeditor');%0D%0A %0D%0A
$('#newe
|
cb35561929957d08d709ceb40206a202dee541dd | Fix typo'd route. | app/routes/claim-codes.js | app/routes/claim-codes.js | const ClaimCodes = require('../models/claim-codes')
const middleware = require('../lib/middleware')
const log = require('../lib/logger')
// #TODO: factor this out, see ./badge-instances.js
const prefix = {
system: '/systems/:systemSlug/badges/:badgeSlug',
issuer: '/systems/:systemSlug/issuers/:issuerSlug/badges/:... | JavaScript | 0.000022 | @@ -3828,16 +3828,17 @@
.concat(
+%5B
claimCod
@@ -3846,17 +3846,16 @@
Finder,
-%5B
claim%5D))
|
8fd68a824f9c1a7c554bf34ddbeaf340be9268d3 | remove debug prints | src/scene/EC_Placeable.js | src/scene/EC_Placeable.js | // For conditions of distribution and use, see copyright notice in LICENSE
var cComponentTypePlaceable = 20;
function EC_Placeable() {
Component.call(this, cComponentTypePlaceable);
this.addAttribute(cAttributeTransform, "transform", "Transform");
this.addAttribute(cAttributeBool, "drawDebug", "Show bound... | JavaScript | 0.000001 | @@ -1094,32 +1094,34 @@
.value;%0A
+//
console.log(%22par
@@ -1353,32 +1353,34 @@
+//
console.log(%22pla
@@ -2109,16 +2109,18 @@
+//
console.
|
2e4a67130652cf97e6b44e1969901a323e154d03 | fix signage cypress tests | cypress/integration/nav_create_signage.js | cypress/integration/nav_create_signage.js | Cypress.on('uncaught:exception', (err, runnable) => {
// returning false here prevents Cypress from
// failing the test
return false
})
describe('Create signage', () => {
before(() => {
const username = 'admin'
const password = 'admin'
cy.setCookie('django_language', 'en');
cy.loginByCSRF... | JavaScript | 0 | @@ -605,23 +605,28 @@
signage/
+drf/
signage
+s
.geojson
|
a1d8a1367645b523dfe8a33096385cb32d69971c | add selector .select2 | public/javascript/custom.js | public/javascript/custom.js | $(document).ready(function () {
$('.input-tags').select2({
tags: true,
tokenSeparators: [',']
})
$('.btn-visit-home').on('click', function (e) {
e.preventDefault();
var url = $(this).data('href');
window.open(url, '_blank');
})
$('.btn-delete').on('click',... | JavaScript | 0.000006 | @@ -107,32 +107,61 @@
: %5B','%5D%0A %7D)%0A%0A
+ $('.select2').select2()%0A%0A
$('.btn-visi
|
9212a1e321593714577b33b375b7bfed2eae7f5f | Create the snippet, then the draft. | app/routes/stories/new.js | app/routes/stories/new.js | import Ember from 'ember';
export default Ember.Route.extend({
actions: {
submit: function () {
var content = this.controller.get('firstSnippet');
var snippet = this.store.createRecord('snippet', {
content: content,
});
snippet.save().then(function () {
var draft = this.... | JavaScript | 0 | @@ -105,16 +105,45 @@
var
+%0A self = this,%0A
content
@@ -184,20 +184,17 @@
et')
-;%0A%0A
+,%0A
-var
sni
@@ -233,24 +233,26 @@
snippet', %7B%0A
+
cont
@@ -332,28 +332,28 @@
var draft =
-this
+self
.store.creat
@@ -392,22 +392,22 @@
stLine:
-snippe
+conten
t.slice(
@@... |
ca8a906acc39cb484b3b58ee21267b5286824516 | Update Gallery.js | src/widgets/Gallery.js | src/widgets/Gallery.js | /**
* 图片gallery组件
* @file gallery.js
* @return {Function} Gallery 图像浏览组件类
*/
define(['../core/Class',
'../core/lib',
'../core/native'
], function (Class, lib, native) {
var Gallery;
Gallery = Class({
config: {
index: 0,
gallery: []
},
statics: {
... | JavaScript | 0 | @@ -1189,11 +1189,14 @@
his.
-add
+update
Imag
|
ed73d3aa06d6a2e34bdac7d408f26c2cf9bf181a | Disable failure on empty glob result | fs_scan.js | fs_scan.js | var gs = require('glob-stream')
var miss = require('mississippi')
module.exports = (pattern) => miss.pipeline.obj(gs(pattern, {
nodir: true
}), miss.through.obj((chunk, enc, cb) => cb(null, {
file: chunk.path,
status: 'PRESENT'
})))
| JavaScript | 0 | @@ -129,16 +129,36 @@
nodir:
+ true,%0A allowEmpty:
true%0A%7D)
|
f2e9ca59f2f92e501cb3706a673f8ac3c0b3bdd0 | Fix broken link for /get-started/ide | app/scripts/app-routes.js | app/scripts/app-routes.js | /**
* Copyright 2014-present Ivan Kravets <me@ikravets.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | JavaScript | 0 | @@ -1631,32 +1631,113 @@
stall'%0A %7D)%0A
+ .when('/get-started/ide', %7B%0A redirectTo: '/platformio-ide'%0A %7D)%0A
.when('/in
|
459e711b4a1c29c826f5573fc8252f8bfa356b67 | remove arrow function from middleware. | middleware.js | middleware.js | const config = require('./config');
const serialize = require('serialize-javascript');
module.exports = (opts) => {
opts = opts || {}; // eslint-disable-line no-param-reassign
opts.getAuth = opts.getAuth || (callback => callback(null, {}));
const hot = opts.hot;
const middlewares = [];
if (hot) {
const w... | JavaScript | 0 | @@ -205,16 +205,32 @@
Auth %7C%7C
+function getAuth
(callbac
@@ -230,19 +230,19 @@
callback
- =%3E
+) %7B
callbac
@@ -252,17 +252,19 @@
ull, %7B%7D)
-)
+; %7D
;%0A cons
|
311e6d7ffdbf5774844c743fae17f09c63f5f584 | fix unformatted html in connection error message (TNL-5818) display default error message for non-json responses (TNL-5818) | cms/static/cms/js/main.js | cms/static/cms/js/main.js | /* globals AjaxPrefix */
(function(AjaxPrefix) {
'use strict';
define(['domReady', 'jquery', 'underscore.string', 'backbone', 'gettext',
'common/js/components/views/feedback_notification', 'coffee/src/ajax_prefix',
'jquery.cookie'],
function(domReady, $, str, Backbone, gettext, Noti... | JavaScript | 0.000002 | @@ -1128,20 +1128,240 @@
ar m
-essage, msg;
+sg, contentType,%0A message = gettext('This may be happening because of an error with our server or your internet connection. Try refreshing the page or making sure you are online.'); // eslint-disable-line max-len
%0A
@@ -1483,474 +1483,484 @@
... |
3c5d0d6cc4875803c74846da3ce8986fca966d41 | Allow load-from-drive to download videos, too. | demo_modules/slideshow/load_from_drive.js | demo_modules/slideshow/load_from_drive.js | /* Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | JavaScript | 0 | @@ -3594,16 +3594,79 @@
p.blob()
+.then(blob =%3E (%7Bblob, type: resp.headers.get('content-type')%7D))
)%0A
@@ -3671,23 +3671,40 @@
.then(
+(%7B
blob
- =%3E
+, type%7D) =%3E (%7Burl:
URL.cre
@@ -3721,16 +3721,24 @@
RL(blob)
+, type%7D)
)%0A
@@ -3743,19 +3743,29 @@
.then(
+(%7B
url
+, type%7D)... |
01bbe1e69b63ef5ab7f16385f7ebcf8cf6cdb609 | clear Ember.merge deprecation for ember>2.5 | app/services/-gestures.js | app/services/-gestures.js | import Ember from 'ember';
import config from '../config/environment';
import Service from 'ember-gestures/services/-gestures';
let gestures = Ember.merge({}, {
useCapture: false
});
gestures = Ember.merge(gestures, config.gestures);
export default Service.extend({
useCapture: gestures.useCapture
});
| JavaScript | 0 | @@ -122,16 +122,143 @@
ures';%0A%0A
+const %7B%0A%09isEmpty%0A%7D = Ember;%0A%0Alet merge;%0Aif (!isEmpty(Ember.assign)) %7B%0A%09merge = Ember.assign;%0A%7D else %7B%0A%09merge = Ember.merge;%0A%7D%0A%0A
let gest
@@ -260,30 +260,24 @@
gestures =
-Ember.
merge(%7B%7D, %7B%0A
@@ -311,22 +311,16 @@
tures =
-Ember... |
5e9294ccbcc6a559ac406b15316ef01eab000a5e | clear localStorage cache upon logging out | app/services/user-auth.js | app/services/user-auth.js | import Ember from 'ember';
import config from '../config/environment';
export default Ember.Service.extend({
tokenHandler: Ember.inject.service("token-handler"),
store: Ember.inject.service('store'),
authRequest: Ember.inject.service(),
isAuthenticated: true,
getCurrentUserFromServer:function () {
let ... | JavaScript | 0 | @@ -1883,24 +1883,58 @@
rID = null;%0A
+ localStorage.clear();%0A
%7D);%0A
|
6daa3b201ff033886bc77dad1bd07e0de2fbe9d5 | remove debug output | src/server/api/v3/step.js | src/server/api/v3/step.js | /*
* Copyright (c) 2016-2017 by STEP Tools Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | JavaScript | 0.000101 | @@ -3492,43 +3492,8 @@
d);%0A
- console.log(%22type %22+type);%0A
|
0827766ec81d6c144cd258a9f2fda5d5a1649b49 | enable status bar | app/src/containers/app.js | app/src/containers/app.js | /* eslint-disable
no-use-before-define,
react/prefer-stateless-function */
import React from 'react-native';
import LoginContainer from '../containers/login_container';
import Home from '../components/home';
import CreateQuilt from '../components/create_quilt';
// todo: create seperate component/container for quilts
i... | JavaScript | 0.000001 | @@ -506,19 +506,16 @@
iends';%0A
-//
import N
@@ -1182,11 +1182,8 @@
-%7B/*
%3CNa
@@ -1257,11 +1257,8 @@
/%3E
-*/%7D
%0A
|
ab61cfe63049070f97780d81e354bdd945707bda | Remove unused `await` | src/server/http/server.js | src/server/http/server.js | 'use strict';
const http = require('http');
const { log, getPromise } = require('../../utilities');
const { httpRequestHandler } = require('./request_handler');
const { port, host } = require('../../config');
const startServer = async function (options) {
const requestHandler = await httpRequestHandler(options);... | JavaScript | 0.000001 | @@ -508,22 +508,16 @@
return
-await
promise;
|
7bd7d376bac7ac71478a31e756a25be6d5b6c08a | use UMD dependencies, not window-based ones | src/services/Fireproof.js | src/services/Fireproof.js |
angular.module('angular-fireproof.services.Fireproof', [])
.factory('Firebase', function($window) {
return $window.Firebase;
})
.factory('Fireproof', function($window, $timeout, $q) {
$window.Fireproof.setNextTick($timeout);
$window.Fireproof.bless($q);
return $window.Fireproof;
});
| JavaScript | 0 | @@ -83,23 +83,16 @@
unction(
-$window
) %7B%0A re
@@ -92,32 +92,24 @@
%7B%0A return
-$window.
Firebase;%0A%7D)
@@ -144,17 +144,8 @@
ion(
-$window,
$tim
@@ -159,24 +159,16 @@
q) %7B%0A%0A
-$window.
Fireproo
@@ -194,24 +194,16 @@
out);%0A
-$window.
Fireproo
@@ -229,16 +229,8 @@
urn
-$window.
Fire
|
97b837990a73e3677da64d377671b3447dc86ec8 | Fix lint | src/io/fetch-stream-loader.js | src/io/fetch-stream-loader.js | /*
* Copyright (C) 2016 Bilibili. All Rights Reserved.
*
* @author zheng qian <xqq@xqq.im>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICE... | JavaScript | 0 | @@ -3257,17 +3257,16 @@
wngrade'
-,
%0A
|
74ce04b92ae85043e843c3dcbe6d08b23d7fe983 | Add buttonClass and textClass options | src/jquery-input-file-text.js | src/jquery-input-file-text.js | (function($) {
$.fn.inputFileText = function(userOptions) {
// Shortcut for plugin reference
var P = $.fn.inputFileText;
var options = P.getOptions(userOptions);
if(P.shouldRemoveInputFileText(this, options.remove)) {
return P.removeInputFileText(this);
}
... | JavaScript | 0.000001 | @@ -768,16 +768,52 @@
ext + '%22
+ class=%22' + options.buttonClass + '%22
/%3E'%0A
@@ -952,16 +952,50 @@
ft: 5px%22
+ class=%22' + options.textClass + '%22
%3E%3C/span%3E
@@ -1843,16 +1843,72 @@
e: false
+,%0A buttonClass: '',%0A textClass: ''
%0A
|
9ff8fddfefabb04c78426291984155639d033fd9 | allow urls containin dashes for ext communication | src/js/background/tutorial.js | src/js/background/tutorial.js | /*global Rules lastActiveTab onTabReadyRules Logger Utils Storage Workflows */
/*eslint no-undef:0 no-unused-vars:0 */
// Handler for receiving messages from defined
// webpages (see manifest.json -> externally_connectable).
// This sets the active tutorial ID
var didBackup = false;
var Tutorial = Tutorial || {};
Tu... | JavaScript | 0 | @@ -402,16 +402,17 @@
our-%5B0-9
+-
%5D+%5C.html
|
59bcfb5de6adb3dda2d5a381ad4803c468182c9a | Add link to about page to <HomePage> | src/js/components/HomePage.js | src/js/components/HomePage.js | import React from 'react';
import Title from './Title';
import Type from './Type';
import { cycle, setTitle } from '../utils';
class HomePage extends React.Component {
static titles = [
"I'm a frontend developer.",
'I love my work.',
"I'm a professional.",
];
constructor() {
super();
this.in... | JavaScript | 0 | @@ -20,16 +20,57 @@
react';%0A
+import %7B Link %7D from 'react-router-dom';%0A
import T
@@ -928,16 +928,79 @@
/Title%3E%0A
+ %3CLink className=%22button%22 to=%22/about%22%3EAbout Me%3C/Link%3E%0A
|
d56161c7ab912395eac5af462436fc73909595e4 | Fix track of play/pause button | static/js/audioPlay.js | static/js/audioPlay.js | $(document).ready(function() {
// Setup the player to autoplay the next track
function loadTrackHTML() {
var tracksWrapper = $('.tracks');
tracksWrapper.children('.track').each(function(index, trackElement) {
var $trackElement = $(trackElement),
$progressBarWrapper = $('<div>', {class: 'trac... | JavaScript | 0.000001 | @@ -2275,26 +2275,35 @@
ing';%0A
+console.lo
g
-a
('send', 'ev
@@ -2313,39 +2313,112 @@
', playOrPause,
-$(this)
+track.find('.track-title').text());%0A ga('send', 'event', playOrPause, track
.find('.track-ti
|
99487a55d505177c4d8791fc38638328e0fd0dfc | change animation identification | static/js/dashboard.js | static/js/dashboard.js |
function filterMachines(f) {
$('.machines-buttons .quick-button').removeClass('active');
$('.machines-buttons .btn-'+f).addClass('active');
if (f === 'all') f = '*';
else f = '.'+f;
$('#machines-loader').isotope( { filter: f } );
}
var cloudlyVMSmanager = {
template: '',
actualMachines: '',
colors :... | JavaScript | 0 | @@ -2454,32 +2454,34 @@
800,function()%7B%0A
+//
|
d87de39f58db804eb7efd2a15434a167e70527b0 | Remove dependency on RequireJS | static/js/moment.fi.js | static/js/moment.fi.js | // moment.js language configuration
// language : finnish (fi)
// author : Tarmo Aidantausta : https://github.com/bleadof
var numbers_past = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
numbers_future = ['nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
... | JavaScript | 0.000001 | @@ -1514,27 +1514,15 @@
%0A%7D%0A%0A
-require('../
moment
-'
+(
).la
|
5636f33e453a9304aede2129411a50d813c0b444 | Move import inside the runtime call | models/Set.js | models/Set.js | /* jshint node: true */
'use strict';
module.exports = function(sequelize, DataTypes) {
var Exercise = require('./exercise')(sequelize, DataTypes);
var Set = sequelize.define('Set', {
weight: DataTypes.STRING,
reps: DataTypes.INTEGER
}, {
classMethods: {
associate: function(models) {
//... | JavaScript | 0.000001 | @@ -84,70 +84,8 @@
s) %7B
-%0A var Exercise = require('./exercise')(sequelize, DataTypes);
%0A%0A
@@ -295,23 +295,76 @@
-%7D%0A %7D%0A %7D);%0A%0A
+ var Exercise = require('./exercise')(sequelize, DataTypes);%0A
Se
@@ -386,16 +386,37 @@
rcise);%0A
+ %7D%0A %7D%0A %7D);%0A%0A
return... |
43ca71212c7cff387d5aa7ad6d3184b1326277bf | Add simple connect button handler to connect to default robot | app/ui/containers/Root.js | app/ui/containers/Root.js | // top-level container
import React from 'react'
import {connect} from 'react-redux'
import {
NAME as ROBOT_NAME,
actions as robotActions,
selectors as robotSelectors
} from '../robot'
import App from '../components/app'
const mapStateToProps = (state) => {
return {
isRunning: state.robot.isRunning,
... | JavaScript | 0 | @@ -1098,16 +1098,159 @@
s.run())
+,%0A // TODO(mc): revisit when robot discovery / multiple robots is addressed%0A onConnectButtonClick: () =%3E dispatch(robotActions.connect())
%0A %7D%0A%7D%0A%0A
|
52439c7cb1552200dca9ba5ce542cde326c019f5 | Handle text messages with regex specific handlers | handler.js | handler.js | module.exports = function (handlers) {
return function (event, context) {
var cb = function (err, result) {
if (err) context.fail(err);
else context.succeed(result);
};
if (event.message && typeof(handlers.onMessage) === 'function') {
handlers.onMessage(event.message, cb);
} e... | JavaScript | 0.000005 | @@ -216,56 +216,386 @@
sage
- && typeof(handlers.onMessage) === 'function') %7B
+) %7B%0A if (event.message.text && handlers.onText) %7B%0A var result;%0A for (var h in handlers.onText) %7B%0A result = handlers.onText%5Bh%5D.matches.exec(event.message.text);%0A if (result) %7B%0A ... |
6328aff0aedcd018f145ff4993a13bdf955d7f9f | use $.text() instead of $.html() | apps/pgp_mail/view-pgp.js | apps/pgp_mail/view-pgp.js | define('pgp_mail/view-pgp', [
'io.ox/core/extensions',
'io.ox/core/extPatterns/links',
'io.ox/core/extPatterns/actions',
'io.ox/mail/api',
'pgp_mail/util',
'gettext!pgp_mail',
'less!pgp_mail/style'
], function (ext, links, actions, api, util, gt) {
'use strict';
var Action = actions... | JavaScript | 0.000069 | @@ -3944,12 +3944,12 @@
%3E').
-html
+text
(tex
|
e85a87769991194d4ad67d04b0f28a466b3d106d | Fix typo in legacy.js | legacy.js | legacy.js | 'use strict'
var pull = require('pull-stream')
var pl = require('pull-level')
var Live = require('pull-live')
var paramap = require('pull-paramap')
var u = require('./util')
var stdopts = u.options
var Format = u.formatStream
var msgFmt = u.format
var timestamp = require('monotonic-ti... | JavaScript | 0.999998 | @@ -2583,16 +2583,18 @@
= flume
+db
.progres
|
45dc3d16db69aff075eb53e654893117e482866d | save transaction details | lib/db.js | lib/db.js | var Seq = require('seq');
module.exports = new (function(){
var db_filename, db
var tables = {'tx': [["id", "INTEGER PRIMARY KEY ASC"],
["account_id","integer"],
["address","text"],
["category","text"],
["amount","text"],
... | JavaScript | 0 | @@ -112,15 +112,15 @@
%22, %22
-INTEGER
+integer
PRI
@@ -131,12 +131,8 @@
KEY
- ASC
%22%5D,%0A
@@ -393,24 +393,31 @@
%22txid%22,%22text
+ UNIQUE
%22%5D,%0A
@@ -1078,16 +1078,22 @@
le_name%5D
+, this
)%0A %7D)
@@ -1142,16 +1142,20 @@
columns
+, cb
)%7B%0A v
@@ -1397,16 +1397,39 @@
'+err)%7D%0... |
bbbc6aa223ce0a1da8f44d6b170d7d359e738aab | Include images required for some styles | tools/cdn.js | tools/cdn.js | 'use strict';
var _ = require('lodash');
var path = require('path');
var utility = require('./utility');
var browserBuild = require('./browser');
var directory;
function moveLanguages() {
var input = path.join(directory.root, 'src', 'languages', '*.js'),
output = path.join(directory.build, 'langu... | JavaScript | 0 | @@ -1617,21 +1617,21 @@
%7B%0A var
-input
+css
= path
@@ -1675,24 +1675,98 @@
, '*.css'),%0A
+ images = path.join(directory.root, 'src', 'styles', '*.%7Bjpg,png%7D'),%0A
output
|
8928254445c97cb611e469dff880dcb113113f8c | Update lyric.js | tpl/lyric.js | tpl/lyric.js | (function($){
$(document).ready(function(){
var audio = $('div.xe_content audio');
var multimedia = $("div.xe_content img[multimedia_src*='.mp3']");
var audio_count = audio.length + multimedia.length;
var document_srl = location.href.getQuery('document_srl');
var msg = '<div class="lyric_before" style="tex... | JavaScript | 0.000001 | @@ -568,16 +568,39 @@
Lyric',%0A
+%09%09%09%09%09mid: current_mid,%0A
%09%09%09%09%09doc
|
5b88bd02f22ff5353325a95dc5f58fe09d731e63 | add necessary type of argument in onPress | components/CardMedia.js | components/CardMedia.js | /* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Image,
StyleSheet,
Text,
TouchableWithoutFeedback,
View,
} from 'react-native';
import type { StyleObj } from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
type Props = {
style: StyleObj,
files: A... | JavaScript | 0.000011 | @@ -399,24 +399,40 @@
onPress?: (
+fileIndex:Number
) =%3E mixed,%0A
|
20de459b561334dcdb1297f74e91efa2688bb51e | Add missing quote | docs/assets/js/scripts.js | docs/assets/js/scripts.js | $(function(){
$("body").addClass("js-on");
// A - Z Sorting
$(".alpha-sort a").click(function(e){
e.preventDefault();
var term = $(this).text();
var $sites = $(".sites section");
$sites.show().filter(function() {
var text = $(this).find(".site-header").text().re... | JavaScript | 0.000283 | @@ -3561,16 +3561,17 @@
title%22,
+%22
%22);%0A%0A
|
847517756fd8c2b1555faac4a78f04b69bef4dc6 | Fix MODULESTATE_REPLACE bug: checked for a member literally called 'module', rather than for a member named according to the content of module. | stripes-core/src/reducers.js | stripes-core/src/reducers.js | import { routerReducer as routing } from 'react-router-redux';
import { reducer as form } from 'redux-form';
import crud from 'redux-crud'
import { combineReducers } from 'redux';
// TODO reducer registry in core via store.replaceReducer() and handle
// module state with a reducer instance for each module/key
const mo... | JavaScript | 0 | @@ -857,16 +857,14 @@
(!(
-'
module
-'
in
|
3d53839a0f3d7633c0f7a9f385691f47531a360d | Allow `<Link />`'s icon to be targeted via a classname | components/Link/Link.js | components/Link/Link.js | import React, { PropTypes } from 'react';
import cx from 'classnames';
import css from './Link.css';
import Icon from '../Icon/Icon';
const Link = ({ href, className, children, ...rest }) => (
<a { ...rest } href={ href } className={ cx(css.root, className) }>
{ children } <Icon className={ css.icon } name="che... | JavaScript | 0 | @@ -161,16 +161,31 @@
assName,
+ iconClassName,
childre
@@ -203,16 +203,16 @@
%7D) =%3E (%0A
-
%3Ca %7B .
@@ -312,16 +312,19 @@
e=%7B
+cx(
css.icon
%7D n
@@ -319,16 +319,32 @@
css.icon
+, iconClassName)
%7D name=
@@ -412,16 +412,16 @@
string,%0A
-
classN
@@ -443,16 +443,51 @@
string,%0A
+ iconClass... |
bddb21daffd80363285255770b1cb3e87d58e860 | Check if there is body so app not collapse | packages/custom/icu/server/root-notifications/hi/talkToRocketChat.js | packages/custom/icu/server/root-notifications/hi/talkToRocketChat.js |
var request = require('request');
exports.talkToRocketChat = function(rocketChat, options, callback) {
if(rocketChat.active == true) {
var loginRequest = {
uri: rocketChat.uri + '/api/v1/login',
strictSSL: false,
method: 'POST',
headers: {'Content-type': 'application/json'},
form: ... | JavaScript | 0.000004 | @@ -468,24 +468,197 @@
se, body) %7B%0A
+ if (body == '' %7C%7C body == null)%0A %7B%0A callback(error ? error : body, response ? response.statusCode : 500);%0A %7D%0A else%0A %7B%0A
var js
@@ -686,24 +686,28 @@
ody);%0A
+
+
var status =
@@ -725,... |
129b10dbe4bdc5e22e15e9c01b4e3e65dc61e69d | add error checks in interceptor | irods-cloud-frontend/app/components/httpInterceptors.js | irods-cloud-frontend/app/components/httpInterceptors.js | /**
*
* Defines interceptors for auth and error handling with the REST back end
* Created by mikeconway on 3/7/14.
*
*
*/
angular.module('httpInterceptorModule', []).factory('myHttpResponseInterceptor', ['$q', '$location', '$log', 'MessageService', 'globals', function ($q, $location, $log, MessageService, global... | JavaScript | 0.000001 | @@ -2803,16 +2803,169 @@
s codes%0A
+ if (!rejection %7C%7C !rejection.data) %7B%0A msg = %22unknown exception occurred%22; //FIXME: i18n%0A %7D
%0A
|
daa940e9886e2797da1ef1731cec89ce97ca2265 | Fix documentation site edit urls (#1303) | docs/docusaurus.config.js | docs/docusaurus.config.js | // @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Ransack documentat... | JavaScript | 0 | @@ -897,20 +897,25 @@
ransack/
-docs
+edit/main
/docs/',
@@ -993,28 +993,16 @@
editUrl:
-%0A
'https:
@@ -1043,20 +1043,25 @@
ransack/
-docs
+edit/main
/blog/',
|
0b771f425d20dda3df8fbd7a458732aa990293f0 | Fix delete role with Bookshelf | packages/strapi-plugin-users-permissions/config/queries/bookshelf.js | packages/strapi-plugin-users-permissions/config/queries/bookshelf.js | const _ = require('lodash');
module.exports = {
find: async function (params = {}, populate) {
const records = await this.query(function(qb) {
_.forEach(params.where, (where, key) => {
qb.where(key, where[0].symbol, where[0].value);
});
if (params.sort) {
qb.orderByRaw(params.s... | JavaScript | 0 | @@ -2534,18 +2534,44 @@
: params
+%5Bthis.primaryKey%5D %7C%7C params
.
-_
id%0A
|
7e04a41ceededc1da2a27a3dc77515ff737a9918 | Use keys filter in nestedMenuCollection | app/js/arethusa.relation/directives/nested_menu_collection.js | app/js/arethusa.relation/directives/nested_menu_collection.js | "use strict";
angular.module('arethusa.relation').directive('nestedMenuCollection', function() {
return {
restrict: 'A',
replace: 'true',
scope: {
current: '=',
all: '=',
property: '=',
ancestors: '=',
emptyVal: '@',
labelAs: "=",
change: "&"
},
link: fun... | JavaScript | 0.001994 | @@ -1030,32 +1030,27 @@
at=%22
-(
label
-, labelObj)
in all
+ %7C keys
%22%5C%0A
@@ -1191,24 +1191,26 @@
belView(
+all%5B
label
-Obj
+%5D
)%22%5C%0A
@@ -1256,24 +1256,26 @@
el-obj=%22
+all%5B
label
-Obj
+%5D
%22%3E%5C%0A
|
c97718bdcd6502fa19e133486c79e0674759b598 | reset nice2 padding | packages/tocco-ui/src/FormattedValue/typeFormatters/HtmlFormatter.js | packages/tocco-ui/src/FormattedValue/typeFormatters/HtmlFormatter.js | import PropTypes from 'prop-types'
import React from 'react'
import styled from 'styled-components'
import {scale, theme} from '../../utilStyles'
import {declareTypograhpy, StyledSpan} from '../../Typography'
const StyledHtmlFormatter = styled(StyledSpan)`
&&& {
${props => declareTypograhpy(props, 'html')}
... | JavaScript | 0 | @@ -581,24 +581,73 @@
nice2 reset%0A
+ padding-left: 0 !important; // nice2 reset%0A
%7D%0A%0A .
|
a5a19568708f5d39a4cc3ee8eaeef283dc21c80e | add one more test | test/View.js | test/View.js | /* global x, equal, ok */
/* jshint multistr: true */
(function() {
"use strict";
QUnit.module('franky');
x.views.setParseRe(/{{\s+([^}]+)\s+}}/g);
x.views.parseRules.test = function (key) {
return function (d) {
return key + d.x;
};
};
x.views.
let("test",... | JavaScript | 0.000003 | @@ -108,16 +108,257 @@
anky');%0A
+ x.views.%0A let(%22helloName%22, %22hello %5B%25 name %25%5D%22);%0A%0A test('helloName', function() %7B%0A equal(%0A x.views.get(%22helloName%22, %7Bname: 'Mark'%7D),%0A %22hello Mark%22,%0A 'helloName failed'%0A );%0A ... |
90b9fedc4f599439e3406723953fc9ff43e3c836 | Clean up auth test sequence | test/auth.js | test/auth.js | 'use strict'
const assert = require('assert')
const helpers = require('./helpers')
describe('auth', function()
{
before(cb => helpers.boot(cb))
it('should allow a user to authenticate and then use an authenticated endpoint', function(cb)
{
helpers.sequence([
{ path: '/auth', params: { userID: 'ruan' }, test... | JavaScript | 0.998569 | @@ -322,26 +322,17 @@
res =%3E
-%0A%09%09%09%7B%0A%09%09%09%09
+
assert.e
@@ -358,17 +358,9 @@
rue)
-%0A%09%09%09%7D%0A%09%09%09
+
%7D,%0A%09
@@ -401,18 +401,9 @@
s =%3E
-%0A%09%09%09%7B%0A%09%09%09%09
+
asse
@@ -423,15 +423,11 @@
ime)
-;%0A%09%09%09%7D%7D
+ %7D,
%0A%09%09%5D
|
5b7d03a79f11127faca447e0b3e4306e7f153d03 | Fix tests | test/base.js | test/base.js | var assert = require('assert');
var sinon = require('sinon');
var Base = require('..');
describe('.extend', function () {
it('create a new object inheriting the Generator', function () {
assert.equal(Base.extend().prototype.constructor, Base);
});
it('pass the extend method along', function () {
var Sub... | JavaScript | 0.000003 | @@ -186,37 +186,39 @@
() %7B%0A assert.
-equal
+ok(new
(Base.extend().p
@@ -219,31 +219,20 @@
nd()
-.prototype.constructor,
+) instanceof
Bas
@@ -1231,11 +1231,158 @@
;%0A %7D);%0A
-%7D);
+%0A it('set constructor as the children', function () %7B%0A var Child = Base.extend();%0A assert.equal(Child.pro... |
c3215a19bc2511a8ee263022e14fe4783f2f43fa | use in/out instead of direction | test/file.js | test/file.js | /* global describe, it */
/* jslint node: true, esnext: true */
"use strict";
const fs = require('fs'),
path = require('path'),
events = require('events'),
scopeReporter = require('scope-reporter'),
uti = require('uti'),
chai = require('chai'),
assert = chai.assert,
expect = chai.expect,
should = chai.should(... | JavaScript | 0.00001 | @@ -1241,40 +1241,19 @@
%09%09%09%09
-direction: %22out(active,passive)%22
+%22out%22: true
%0A%09%09%09
@@ -2291,23 +2291,18 @@
%09%09%09%09
-direction: %22in%22
+%22in%22: true
%0A%09%09%09
|
12899d13c81bb16664d9e1b520ab1427a2888688 | Fix http tests on travis | test/http.js | test/http.js |
'use strict';
var assert = require('assert');
var http = require('http');
var URL = require('url');
var probe = require('../');
function createBuffer(src, opts) {
if (typeof src === 'number') {
return Buffer.alloc ? Buffer.alloc(src, opts) : new Buffer(src, opts);
}
return Buffer.from ? Buffer.from... | JavaScript | 0.000001 | @@ -639,20 +639,44 @@
ten(
-callback);%0A%0A
+0, 'localhost', function (err) %7B%0A%0A
@@ -700,16 +700,18 @@
%7B%0A
+
protocol
@@ -726,16 +726,18 @@
,%0A
+
+
hostname
@@ -767,16 +767,18 @@
,%0A
+
port:
@@ -799,16 +799,18 @@
).port,%0A
+
pa
@@ -821,16 +821,48 @@
'... |
ffd5c245e1db246a1507e078648a41af1ee5c8f4 | add delay for count query during tests | test/init.js | test/init.js | var async = require('async');
var fs = require('fs');
module.exports = require('should');
var DataSource = require('loopback-datasource-juggler').DataSource;
var config = require('rc')('loopback', {test: {riak: {}}}).test.riak;
global.getConfig = function (options) {
var dbConf = {
host: 'localhost',
port:... | JavaScript | 0 | @@ -807,24 +807,268 @@
y slow%0A %7D%0A%0A
+ var originalCount = db.connector.count;%0A db.connector.count = function()%7B%0A var args = arguments;%0A%0A setTimeout(function()%7B%0A originalCount.apply(db.connector, args);%0A %7D, 8000); // yes, this makes the tests ridiculously slow%0A %7D%0A%0A
... |
f17a64f1d2ea7ca09e68aa8ada3238ec2861617a | no const | accum.js | accum.js | 'use-strict'
const utils = require('./utils')
// O(n)
module.exports = function accumulative (utxos, outputs, feeRate) {
const outAccum = utils.sum(outputs)
// accumulators
var bytesAccum = utils.transactionBytes([], outputs)
var inAccum = 0
var inputs = []
for (var i = 0; i < utxos.length; ++i) {
c... | JavaScript | 0.999931 | @@ -118,21 +118,19 @@
te) %7B%0A
-const
+var
outAccu
@@ -310,21 +310,19 @@
) %7B%0A
-const
+var
utxo =
@@ -425,21 +425,19 @@
o)%0A%0A
-const
+var
fee = f
|
55f46f23138a73368a3792fdae71d020bea27203 | Update Actor.move to return collision value | actor.js | actor.js | var Actor = function(args) {
this.context = args.context;
this.x = args.startX;
this.y = args.startY;
this.name = args.name;
this.radius = 6;
this.direction = args.direction;
this.speed = PAC_MOVE_DELAY;
this.mouthPos = 0.0;
this.mouthIsOpening = true;
this.moveIntervalID = false;
this.keyStates =... | JavaScript | 0.000001 | @@ -4024,24 +4024,57 @@
s.render();%0A
+ return this.detectCollision();%0A
%7D;%0AActor.pro
|
174cfcfaa111438bb945aa32e46cc8567f3f363c | add the raw option to lp cups does not strip in out | agent.js | agent.js | var fs = require('fs');
var tmp = require('tmp');
var processx = require('child_process');
var when = require('when');
var nodefn = require('when/node/function');
var es = require('event-stream');
var request = require('superagent');
var message = {
id: '5395D9-E9915C46C8-72B4C9E2',
url... | JavaScript | 0 | @@ -5816,24 +5816,34 @@
pawn('lp', %5B
+'-o raw',
filepath, '-
|
4ff08ab801cb4931a30c30df5243da05afb1ac24 | add support for script tags | rendering/html-generator.js | rendering/html-generator.js | import { tidyHtml } from "lively.ide/html/editor-plugin.js";
import { IFrameMorph, show } from "lively.morphic";
import { create as createNode } from "virtual-dom";
import { tree } from "lively.lang";
export function morphToNode(morph, renderer = morph.env.renderer) {
let vNode = morph.render(renderer),
node =... | JavaScript | 0.000001 | @@ -2227,32 +2227,52 @@
addMetaTags,%0A
+ addScripts,%0A
appendHT
@@ -2346,16 +2346,33 @@
erHeight
+, id: containerId
%7D = cont
@@ -2882,16 +2882,79 @@
Name%7D%22%60%0A
+ + (containerId ? %60 id=%22$%7BcontainerId%7D%22 %60 : '')%0A
@@ -3542,28 +3542,128 @@
tle%3E
+%0A ... |
70d2324d743e2efe96ef685855076a65059cc14d | Corrected a small mistake | svyChat/forms/svyChatForm.js | svyChat/forms/svyChatForm.js |
/**
* @type {plugins.ClientManager.BroadCaster}
*
* @private
*
* @properties={typeid:35,uuid:"7C4B63C4-F18C-4BAA-8C21-B0AB4EF6B051",variableType:-4}
*/
var broadcasterTyping = null;
/**
* @type {plugins.ClientManager.BroadCaster}
*
* @private
*
* @properties={typeid:35,uuid:"54C77905-1298-45C8-AD08-8C4... | JavaScript | 0.998892 | @@ -2356,12 +2356,24 @@
ode(
-this
+onSendingMessage
);%0A%09
|
befc844c15cdcf5953074ef72e009acad1abbb59 | Add removeAll function | backbone.overview.js | backbone.overview.js | /*!
* Backbone.Overview
*
* Copyright (c) 2014, JC Brand <jc@opkode.com>
* Licensed under the Mozilla Public License (MPL)
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(["underscore", "backbone"],
function(_, Backbone) {
return fa... | JavaScript | 0.000018 | @@ -1297,32 +1297,133 @@
%7D%0A %7D;%0A
+ this.removeAll = function (id) %7B%0A _.each(_.keys(views), this.remove);%0A %7D;%0A%0A
Backbone
|
622677eef7f3d73998ae4dd6f1d9d363986c16e9 | Add ability to return all chunks in a region | lib/Region.js | lib/Region.js | let fs = require('fs'),
ReadBuffer = require('kld-nbt').ReadBuffer,
utils = require('./utils'),
Chunk = require('./Chunk');
let MAX_CHUNK_COUNT = 1024;
module.exports = class Region {
constructor(filename) {
this.filename = filename;
this.xz = null;
this.timestamps = new Array(... | JavaScript | 0.000001 | @@ -2446,12 +2446,276 @@
t;%0A %7D
+%0A%0A getChunks() %7B%0A var chunks = %5B%5D;%0A%0A for (var i = 0; i %3C MAX_CHUNK_COUNT; i++) %7B%0A let chunk = this.getChunk(i);%0A%0A if (chunk !== null) %7B%0A chunks.push(chunk);%0A %7D%0A %7D%0A%0A ... |
83409debcaa332d5745ed0742841ed587cdc368c | Support OutgoingFrameStream object injection in Socket constructor | lib/Socket.js | lib/Socket.js | /*jslint node: true, indent: 2, unused: true, maxlen: 80, camelcase: true */
/*
* stompit.Socket
* Copyright (c) 2013 Graham Daws <graham.daws@gmail.com>
* MIT licensed
*/
var OutgoingFrameStream = require('./OutgoingFrameStream');
var IncomingFrameStream = require('./IncomingFrameStream');
var util ... | JavaScript | 0 | @@ -1485,26 +1485,24 @@
me = false;%0A
-
%0A this._out
@@ -1506,16 +1506,52 @@
output =
+ options.outgoingFrameStream %7C%7C %0A
new Out
|
ab4b0dd14888791dd7c649404fa28c217267d734 | Remove unnecessary logic in Action helper | lib/action.js | lib/action.js | var _ = require('lodash-node');
var Action = function(name, two, three, four) {
var options, run, helpers;
// Syntax .extend('action#method', function() { ... }, {})
if ( typeof two == 'function' ) {
options = {};
run = two;
helpers = three;
}
// Syntax .extend('action#method', {}, function() {... | JavaScript | 0.000019 | @@ -110,324 +110,45 @@
%0A%0A
-// Syntax .extend('action#method', function() %7B ... %7D, %7B%7D)%0A if ( typeof two == 'function' ) %7B%0A options = %7B%7D;%0A run = two;%0A helpers = three;%0A %7D%0A%0A // Syntax .extend('action#method', %7B%7D, function() %7B ... %7D, %7B%7D)%0A if ( typeof three == ... |
5313c8419d75023ce5bf80186e519da0c55d4100 | use --no-sandbox when running cron inside a container | testem.js | testem.js | module.exports = {
test_page: 'tests/index.html?hidepassed',
disable_watching: true,
launch_in_ci: [
'Chrome'
],
launch_in_dev: [
'Chrome'
],
browser_args: {
Chrome: {
mode: 'ci',
args: [
'--disable-gpu',
'--headless',
'--remote-debugging-port=0',
'-... | JavaScript | 0 | @@ -215,24 +215,146 @@
args: %5B%0A
+ // --no-sandbox is needed when running Chrome inside a container%0A process.env.CI ? '--no-sandbox' : null,%0A%0A
'--d
|
236db6b4ce622e38f17b12e02b48d5e5129ba758 | Fix JS warnings | benchmark/general.js | benchmark/general.js | /* Results on Intel 5Y70 and 8 GB RAM:
PostCSS: 47 ms
Rework: 77 ms (1.7 times slower)
libsass: 128 ms (2.7 times slower)
Less: 157 ms (3.4 times slower)
Stylus: 189 ms (4.1 times slower)
Ruby Sass: 1143 ms (24.5 times slower)
*/
var exec = require('child_process').exec;
var path = require('path')... | JavaScript | 0.000004 | @@ -782,14 +782,17 @@
%5D);%0A
+var
pcss
-
= cs
@@ -870,32 +870,33 @@
height: 16px; %7D'
+;
%0Afor ( var i = 0
@@ -1143,14 +1143,17 @@
');%0A
+var
rcss
-
= cs
@@ -1468,14 +1468,17 @@
');%0A
+var
scss
-
= cs
@@ -1549,32 +1549,33 @@
height: 16px; %7D'
+;
%0Afor ( var i = 0
@@ -1922,14 +1922,17 @@
'... |
092a48fdd6ccde2cfe76d528be5d4c88bbd1c54b | Add res object to req | logger.js | logger.js | 'use strict'
var pino = require('pino')
function pinoLogger (opts, stream) {
if (opts && opts._writableState) {
stream = opts
opts = null
}
opts = opts || {}
opts.serializers = opts.serializers || {}
opts.serializers.req = opts.serializers.req || asReqValue
opts.serializers.res = opts.serializers... | JavaScript | 0 | @@ -1118,15 +1118,35 @@
ed (
-res
) %7B%0A
+ var res = this.res%0A
@@ -1373,16 +1373,52 @@
te.now()
+%0A if (!req.res) %7B req.res = res %7D
%0A%0A re
@@ -1594,28 +1594,8 @@
ed',
- function () %7B%0A
onR
@@ -1607,19 +1607,8 @@
rted
-(res)%0A %7D
)%0A%0A
|
49bf9fe5d4eb8cf9eb8be90fd1c411ecb9958695 | Add a big TODO | lib/bridge.js | lib/bridge.js | "use strict";
/**
* @constructor
* @param {Object} opts Options to pass to the bridge
* @param {AppServiceRegistration|string} opts.registration Application service
* registration object or path to the registration file.
* @param {string} opts.homeserverUrl The base HS url
* @param {string} opts.domain The domai... | JavaScript | 0.000074 | @@ -7,16 +7,467 @@
trict%22;%0A
+/*%0ATODO Bridge:%0A- filename to AppServiceRegistration in constructor.%0A- Run the AppService in run()%0A- Construct ClientFactory to make an AppServiceBot and set as props%0A- Construct a RequestFactory to make Requests on callbacks%0A- Construct an Intent and hook to AS bot Client.... |
142fb16988ec41d5b38ea95b9ad4341cf3334231 | add .turbocommit config feat | bin/config-parser.js | bin/config-parser.js | #!/usr/bin/env node
module.exports = function (configJson) {
'use strict';
configJson = configJson || require('./config.json');
return (function (configJson) {
var self = {};
self.config = configJson;
self.commits = getProperty('commits');
initConfig();
return {
... | JavaScript | 0 | @@ -13,16 +13,165 @@
nv node%0A
+var shell = require('shelljs'),%0A fs = require('fs'),%0A path = require('path'),%0A utils = require('./utils')();%0A%0Ashell.config.silent = false;%0A%0A
module.e
@@ -181,32 +181,33 @@
rts = function (
+_
configJson) %7B%0A
@@ -226,25 +226,345 @@
t';%0A
-%0A configJs... |
9e81dd2bcb0db3a3d4a2127e11d461fca5f5ad98 | Fix the default LDAP properties to match the configuration documentation. | bin/ejabberd-auth.js | bin/ejabberd-auth.js | #!/usr/bin/env node
//
// NodeJS script that implements an authentication daemon for eJabberd.
//
'use strict';
var assert = require('assert'),
etc = require('etc'),
yml = require('etc-yaml'),
conf = etc().use(yml).etc().add({
"ejabberd-auth": {
method: 'ldap',
l... | JavaScript | 0 | @@ -391,22 +391,57 @@
: '(
-objectClass=*)
+userPassword=*)',%0A uuidAttr: 'uuid
'%0A
|
12fae00ee4025e5d06ebbeba87c120c6b18c5909 | Fix broken client | lib/client.js | lib/client.js | const { EventEmitter } = require('events')
const rpc = require('rpc-websockets')
const debug = require('debug')('microserv:client')
const ClientService = require('./client-service')
const { SERVICES_METHOD, ADD_SERVICE_EVENT, SERVICE_EVENT } = require('./constants')
class Client extends EventEmitter {
constructor(opt... | JavaScript | 0.000004 | @@ -1768,19 +1768,8 @@
ws)
-.bind(this)
)%0A%09%09
|
9d7dd0e26c91565b816f8832cdbf299d76612703 | Allow version check to actually run on older node versions | bin/version-check.js | bin/version-check.js | #!/usr/bin/env node
/* eslint-disable strict */
/* eslint-disable no-console */
/* eslint-disable prefer-template */
'use strict';
// A simple check that node + npm versions
// meet the expected minimums.
const exec = require('shelljs').exec;
const chalk = require('chalk');
const semver = require('semver');
const ... | JavaScript | 0 | @@ -19,31 +19,139 @@
e%0A%0A/
-* eslint-disable strict
+/ eslint messages suppressed to allow this to work%0A// in older node versions.%0A%0A/* eslint-disable strict */%0A/* eslint-disable no-var
*/%0A
@@ -310,21 +310,19 @@
imums.%0A%0A
-const
+var
exec =
@@ -346,21 +346,19 @@
).exec;%0A
-const
+var
chalk =
@... |
7f76f28a1ce5f5b06b076ab5a45c8b22caa56d2c | Refactor current file, info in context | lib/clojjs.js | lib/clojjs.js |
require('./core');
var path = require('path');
var parsers = require('./parser');
var compiler = require('./compiler');
var lists = require('./list');
var symbols = require('./symbol');
var fs = require('fs');
cljs.core.load_HY_file = function (filename, context) { executeFile(filename, context); };
cljs.... | JavaScript | 0 | @@ -480,16 +480,35 @@
if (
+context && context.
currentf
@@ -514,16 +514,24 @@
file &&
+context.
currentf
@@ -587,16 +587,24 @@
dirname(
+context.
currentf
@@ -744,34 +744,8 @@
%0D%0A%0D%0A
-var currentfile = %7B %7D;%0D%0A%0D%0A
func
@@ -1660,32 +1660,62 @@
me, context) %7B%0D%0A
+ context = context %... |
483abfc1d4b8c17649830f5033a30f7289c63444 | move prop meta to separate file | lib/common.js | lib/common.js | /**
* This module contains commonly used constants and functions
*/
'use strict';
var colors = require('colors/safe');
var log = new (require('log'))('debug');
var _ = require('underscore');
(function(exports) {
// Initialize common as an empty object
var common = {};
// Configurations
common.conf = {
... | JavaScript | 0 | @@ -613,794 +613,140 @@
s%0A
-common.PROP_META = %7B%0A %22vfe%22: %7B%0A %22property-id%22: %22tag:staff@noreply.openkim.org,2015-07-28:property/monovacancy-neutral-relaxed-formation-potential-energy-crystal-npt%22,%0A %22test-driver%22: %22VacancyFormationMigration%22,%0A %22property-key%22: %22r... |
5ab82012c5cf984a8e8895ea0519d7fef44ef943 | check if React.mixins is available | lib/common.js | lib/common.js | var cache = { id: 0 },
reactBackboneAware = !!React.mixins.exists('modelFieldValidator');
module.exports = function(React) {
return {
uniqueId: function() {
return 'rsui-' + cache.id++;
},
defaults: function() {
var base = arguments[0],
current;
for (var i=1; i<arguments.... | JavaScript | 0 | @@ -45,10 +45,24 @@
e =
-!!
+React.mixins &&
Reac
|
0f55eb4049a2ab2087fafd5e7ec06eaaf844cf5a | exclude fis-conf.js | lib/config.js | lib/config.js | /*
* fis
* http://fis.baidu.com/
*/
'use strict';
var DEFAULT_SETTINGS = {
project: {
charset: 'utf8',
md5Length: 7,
md5Connector: '_',
files: ['**'],
ignore: ['node_modules/**', 'output/**'],
watch: {
exclude: /^\/(?:output|node_modules).*$/i,
}
},
component: {
skipRo... | JavaScript | 0.000015 | @@ -211,16 +211,31 @@
tput/**'
+, 'fis-conf.js'
%5D,%0A w
@@ -289,17 +289,16 @@
es).*$/i
-,
%0A %7D%0A
|
1fcf788a641f2d12edc16aa53303e664d6d803f0 | remove unused function | lib/config.js | lib/config.js | var _ = require('underscore'),
async = require('async'),
fu = require('./fileUtil'),
path = require('path');
/**
*
* @name load
* @function This function loads the lumbar JSON file, and returns
* helper methods associated with accessing its specific data.
* @param {string} lumbarFile the location of ... | JavaScript | 0.000016 | @@ -436,61 +436,8 @@
t;%0A%0A
- function registerCustomPlugins(config) %7B%0A %0A %7D%0A%0A
fu
|
19f6b0b292cb3488967ff1299529652cbccea8ed | fix spelling mistake | lib/config.js | lib/config.js | /*
* fis
* http://fis.baidu.com/
*/
'use strict';
var DEFALUT_SETTINGS = {
project: {
charset: 'utf8',
md5Length: 7,
md5Connector: '_',
files: ['**'],
ignore: ['node_modules/**', 'output/**'],
watch: {
exclude: /^\/(?:output|node_modules).*$/i,
}
},
component: {
skipRo... | JavaScript | 0.999999 | @@ -52,26 +52,26 @@
';%0A%0Avar DEFA
-L
U
+L
T_SETTINGS =
@@ -4850,26 +4850,26 @@
g).init(DEFA
-L
U
+L
T_SETTINGS);
@@ -4935,26 +4935,26 @@
TINGS = DEFA
-L
U
+L
T_SETTINGS;%0A
|
fe0d9f071e0ffb70b84889840979d43c94133dae | add *.env.js support | lib/config.js | lib/config.js | 'use strict';
const glob = require('glob');
const path = require('path');
const fs = require('fs');
const helpers = require('./helpers');
const load = require('./load');
const createLogger = require('./logger');
const DEFAULT_ENV = 'development';
const ENVIRONMENT_DIR = 'environments';
const DEFAULT_CONFIG_FILE = 'co... | JavaScript | 0 | @@ -375,24 +375,67 @@
%7Bjs,json%7D';%0A
+const EXTRA_ENV_FILES = '*.env.%7Bjs,json%7D';%0A
const ENVIRO
@@ -464,24 +464,24 @@
%7Bjs,json%7D';%0A
-
const LOGGER
@@ -838,16 +838,153 @@
*%0A * 4.
+ Load %60%5Bextra%5D.env.%7Bjs,json%7D%60 file according to %60process.env.NODE_ENV%60, default%0A * is %60developme... |
015940208fe43bb8ba0dab58c70617e9a72d9133 | Include error message in rejected daemon commands | lib/daemon.js | lib/daemon.js | import readline from 'readline';
import winston from 'winston';
import Importer from './Importer';
import findProjectRoot from './findProjectRoot';
import initializeModuleFinder from './initializeModuleFinder';
import version from './version';
const commandsToFunctionNames = {
fix: 'fixImports',
word: 'import',
... | JavaScript | 0 | @@ -2639,21 +2639,34 @@
.catch((
-error
+%7B message, stack %7D
: Object
@@ -2664,32 +2664,135 @@
%7D: Object) =%3E %7B%0A
+ const errorParts = %5Bmessage%5D;%0A if (stack) %7B%0A errorParts.push(stack);%0A %7D%0A
const js
@@ -2847,14 +2847,24 @@
rror
-.stack
+Parts.join('%5Cn... |
4c5f28e90615ca718fde5728eef3486558b4a1e8 | use ▸ for errors/warnings | lib/errors.js | lib/errors.js | 'use strict';
let cli = require('..');
let console = require('./console');
function wrap (msg) {
let linewrap = require('linewrap');
return linewrap(6,
process.stderr.getWindowSize()[0], {
skipScheme: 'ansi-color'
})(msg || '');
}
function bangify (msg) {
let lines = msg.split('\n');
for(let i=... | JavaScript | 0 | @@ -262,24 +262,27 @@
bangify (msg
+, c
) %7B%0A let li
@@ -388,10 +388,13 @@
= '
-!
'
+ + c
+ l
@@ -895,16 +895,36 @@
ge(err))
+, cli.color.red('%E2%96%B8')
));%0A%7D%0A%0Af
@@ -977,16 +977,39 @@
rap(msg)
+, cli.color.yellow('%E2%96%B8')
));%0A%7D%0A%0Af
|
434e510bb1baf7fcb20db790fdea947be8477648 | Remove Code suffix from some of error codes | lib/errors.js | lib/errors.js | "use strict";
var _ = require('lodash');
/* jshint maxlen: 350 */
var KafkaError = function (code, message) {
Error.call(this);
Error.captureStackTrace(this, this.constructor);
this.name = 'KafkaError';
this.code = code;
this.message = message || 'Error';
};
KafkaError.prototype = Object.creat... | JavaScript | 0.000002 | @@ -1988,20 +1988,16 @@
lerEpoch
-Code
', 11, '
@@ -2083,20 +2083,16 @@
TooLarge
-Code
', 12, '
@@ -2194,20 +2194,16 @@
Progress
-Code
', 14,
@@ -2513,20 +2513,16 @@
vailable
-Code
', 15
@@ -2764,20 +2764,16 @@
ForGroup
-Code
', 16,
@@ -2925,20 +2925,16 @@
lidTopic
-Code
', 17
@@ -3151,20 +3151,16... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.