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 |
|---|---|---|---|---|---|---|---|
07e2930dc2d317052c34303fad435166c8116180 | Move getValueFromKey in key | source/view/form/key.js | source/view/form/key.js | /**
* Key management function
* @param {[type]} field [description]
* @param {[type]} doc [description]
* @param {[type]} group) { var self [description]
* @return {[type]} [description]
*/
define(function(require, exports, module) {
var _log = __debug('view:form-utils');
module.expor... | JavaScript | 0.000002 | @@ -4225,16 +4225,827 @@
%0A %7D,%0A
+%0A%0A /**%0A * Get Value for the given key%0A * @param %7Bstring%7D name defined in dot notation%0A * @param %7BObject%7D info%0A * @return %7BMixin%7D The Value of the given key%0A */%0A getValueFromKey: function(name, info) %7B%0A var keys = ... |
e223b4126b78323fd74ed5713715215171689c4f | Check for updates on start. | app/modules/updater.js | app/modules/updater.js | /* global $ */
/* global requirejs */
'use strict';
var request = require('request');
var ipc = require('electron-safe-ipc/guest');
var pjson = require('./package.json');
exports.init = function() {
ipc.on('checkForUpdates', exports.checkForUpdates);
}
exports.checkForUpdates = function(bSilentCheck) {
try {
re... | JavaScript | 0 | @@ -248,16 +248,48 @@
dates);%0A
+%09exports.checkForUpdates(true);%0A
%7D%0A%0Aexpor
@@ -622,10 +622,8 @@
%09%09%09%09
-//
$('#
@@ -666,55 +666,8 @@
');%0A
-%09%09%09%09%09$('#modalUpdateAvailable').modal('show');%0A
%09%09%09%09
|
5cb1a7b0e2ff02442e9743640c5736699357e107 | fix typo | src/shared/components/CalComponent.js | src/shared/components/CalComponent.js | import React, { PropTypes } from 'react'
import { Link } from 'react-router'
import { isEmpty } from 'lodash'
import Cards from 'shared/components/wall/PostCards'
import DayPicker from 'react-day-picker'
import { LocaleUtils } from 'react-day-picker/lib/addons'
import { isSameDay } from 'shared/utils/date-utils'
import... | JavaScript | 0.999991 | @@ -1182,18 +1182,18 @@
urn 'zh-
-tw
+TW
'%0A%0A r
|
9f868e042162edeaab7194cce6856fc432ddd534 | Fix incorrect call of getDocument. | test/collab/testDocumentEngine.js | test/collab/testDocumentEngine.js | function testDocumentEngine(documentEngine, QUnit) {
// Document API
// --------------------
QUnit.test("Test if seed db has a valid document test-doc", function(assert) {
var done = assert.async();
documentEngine.getDocument({documentId: 'test-doc'}, function(err, doc) {
assert.ok(doc, 'valid doc... | JavaScript | 0.000003 | @@ -1386,32 +1386,45 @@
ine.getDocument(
+%7BdocumentId:
'test-doc', func
@@ -1409,32 +1409,33 @@
ntId: 'test-doc'
+%7D
, function(err,
|
aa25ad8c8283bf82f54910afbe633f3632d589ec | fix a typo | layermaker/makejs.js | layermaker/makejs.js | var path = require('path');
var fs = require('fs');
var gutil = require('gulp-util');
var log = gutil.log;
var colors = gutil.colors;
var Timer = require('./timer');
var inject = require('./injector');
var makeContainerTemplate = require('./makecontainertemplate');
var makeComponentTemplate = require('./makecomponentte... | JavaScript | 1 | @@ -644,16 +644,17 @@
pitalize
+d
+ '-rel
|
9138c407ad95d3cbaddd3a080f438a76d6a0d2e9 | 修复打包:样式文件找不到 | build/gulpfile.js | build/gulpfile.js | const gulp = require('gulp');
const webpack = require('webpack-stream');
const webpackConfig = require('../build/webpack.config');
const rimraf = require('rimraf');
const rename = require('gulp-rename');
const uglify = require('gulp-uglify');
const ignore = require('gulp-ignore');
const minifycss = require('gulp-clean... | JavaScript | 0 | @@ -3105,16 +3105,27 @@
clean',
+'gen-css',
%5B'dist-c
@@ -3127,27 +3127,16 @@
ist-copy
-', 'gen-css
', 'dist
|
8de0de6aebed46d137354963c1491f550b5b3fd5 | Update app.js | build/app.js | build/app.js | 'use strict';
//var Menu = React.createClass({
// displayName: 'Menu',
// render: function render() {
// var menus = [{ name: 'Home', link: '#home' }, { name: 'Portfolio', link: '#portfolio' }, { name: 'Article', link: '#article' }, { name: 'About', link: '#about' }];
// return React.createElement... | JavaScript | 0.000002 | @@ -1803,33 +1803,32 @@
)
-,
%0A
@@ -1824,32 +1824,34 @@
+//
React.createElem
@@ -1869,32 +1869,34 @@
+//
'div',%0A
@@ -1904,32 +1904,34 @@
+//
%7B className: 'ei
@@ -1962,32 +1962,34 @@
+//
React.create... |
b3a867d7ffb668384118ac482709e1e0761d3980 | Add option to not include the Data API initialization code | build-module-v4.js | build-module-v4.js | var fs = require('fs');
var uglify = require('uglify-js');
var pack = require('./package.json');
var version = 'v' + pack.version;
var license = pack.license + '-License';
var libPath = __dirname + '/lib';
var { getModuleNames, error } = require('./lib/helpers');
module.exports = (options) => {
// Arguments Sanity C... | JavaScript | 0 | @@ -3092,16 +3092,45 @@
r init =
+ options.noInitDataAPI ? '' :
fs.read
|
f33ada16326756733bdcff7e1860fd9afcaf6c79 | remove query string tests | test/connect-force-domain.test.js | test/connect-force-domain.test.js |
var connect = require('connect'),
force_domain = require('../lib/connect-force-domain'),
assert = require('assert');
app = connect.createServer(force_domain('shapeshed.com'));
module.exports = {
'GET /': function(){
assert.response(app,
{ url: '/' },
{ status: 301 , headers: { 'Location': 'http:... | JavaScript | 0.00355 | @@ -1036,395 +1036,8 @@
%7D);%0A
- %7D,%0A 'GET /querystring?a=1': function()%7B%0A assert.response(app,%0A %7B url: '/querystring?a=1' %7D,%0A %7B status: 301 , headers: %7B 'Location': 'http://shapeshed.com/querystring?a=1' %7D%7D);%0A %7D,%0A 'GET /querystring/?a=1': function()%7B%0A assert.resp... |
dfc868b3891f412f1d34cb72e448a92f01b1abc1 | Add type="button" to buttons | dist/van11y-accessible-hide-show-aria.es6.js | dist/van11y-accessible-hide-show-aria.es6.js | /*
* ES2015 simple and accessible hide-show system (collapsible regions), using ARIA
* Website: https://van11y.net/accessible-hide-show/
* License MIT: https://github.com/nico3333fr/van11y-accessible-hide-show-aria/blob/master/LICENSE
*/
;(doc => {
'use strict';
const HIDESHOW_EXPAND = 'js-expandmore... | JavaScript | 0.000311 | @@ -3654,32 +3654,62 @@
EL_ID + iLisible
+ ,%0D%0A 'type' : 'button'
%0D%0A %7D);%0D%0A
|
227ec136baefe8cf79bf32a876ec9d8b06d1bc90 | fix hit test | public/js/proto_02.js | public/js/proto_02.js | /**
* http://usejsdoc.org/
*/
var mapImg = '/img/map64.png';
var charImg = '/img/chara64.png';
var mySpeed = 8;
var SHEEP_SPEED = 16;
var WOLF_SPEED = 12;
var pixel = 64;
function initGame(userObj,mapObj) {
enchant();
var game = new Core(mapObj.width * pixel, mapObj.height * pixel); //game dimension
game... | JavaScript | 0.000006 | @@ -1545,20 +1545,17 @@
pixel;%0A
-
%0A
+
%0A
@@ -2068,64 +2068,8 @@
ls.%0A
- %09var xoffset = pixel/2;%0A %09var yoffset = pixel/2;%0A
@@ -2162,43 +2162,26 @@
f (m
-ap.h
+yH
itTest(
-x + xoffset, y + yoffset
+map, x, y
)) %7B
@@ -2374,43 +2374,26 @@
f (m
-ap.h
+yH
itTest(
-x + xoffset, ... |
42514c4951c7f8edf1958b5730b10802d03d7717 | Ensure GIT_COMMIT_SHA is valid | tools/publish-dev/index.js | tools/publish-dev/index.js | "use strict";
const cp = require( "child_process" );
const fs = require( "fs" );
const path = require( "path" );
// paths
const packagejson = require.resolve( "pegjs/package.json" );
const pegjs = path.dirname( packagejson );
const npmignore = path.join( pegjs, ".npmignore" );
const npmrc = path.join( pegjs, ".npmrc... | JavaScript | 0.99951 | @@ -456,28 +456,8 @@
CH,%0A
- GIT_COMMIT_SHA,%0A
@@ -501,16 +501,130 @@
s.env;%0A%0A
+let %7B%0A%0A GIT_COMMIT_SHA,%0A%0A%7D = process.env;%0A%0Aif ( GIT_COMMIT_SHA === %22not-found%22 ) GIT_COMMIT_SHA = GIT_BRANCH;%0A%0A
// local
@@ -1350,22 +1350,8 @@
_SHA
- %7C%7C GIT_BRANCH
, fa
|
96c57ab1ae1388304cc87fde82629728f8241370 | webgme exports its logManager under the name 'logManager' | webgme.js | webgme.js | /*
* Copyright (C) 2013 Vanderbilt University, All rights reserved.
*
* Author: Tamas Kecskes
*/
var requirejs = require('requirejs');
requirejs.config({
nodeRequire: require,
baseUrl: __dirname,
paths:{
"logManager": "common/LogManager"
}
});
module.exports = {
clientStorage: r... | JavaScript | 0.996944 | @@ -550,14 +550,56 @@
dalone')
+,%0D%0A logManager: requirejs('logManager')
%0D%0A%7D;%0D%0A
|
36f499827478446bec36962d694666d40f4b6197 | add multipleStatements to DATAASE_URL building5/sails-db-migrate#28 | lib/sailsDbMigrate.js | lib/sailsDbMigrate.js | 'use strict';
var util = require('util');
var fork = require('child_process').fork;
var path = require('path');
/**
* Build a URL from the Sails connection config.
*
* @param {object} connection Sails connection config.
* @returns {string} URL for connecting to the specified database.
* @throws Error if adapter ... | JavaScript | 0.000001 | @@ -1126,24 +1126,199 @@
abase);%0A %7D%0A
+%0A var params = %5B%5D;%0A if (connection.multipleStatements) %7B%0A params.push('multipleStatements=true');%0A %7D%0A%0A if (params.length %3E 0) %7B%0A url += '?' + params.join('&');%0A %7D%0A%0A
return url
|
83b1adf95060a6e159cde50c99785ac9f7425ef6 | Add missing license header | codelab-elements/google-codelab-survey/google_codelab_survey_def.js | codelab-elements/google-codelab-survey/google_codelab_survey_def.js | goog.module('googlecodelabs.CodelabSurveyDef');
const CodelabSurvey = goog.require('googlecodelabs.CodelabSurvey');
try {
window.customElements.define(CodelabSurvey.getTagName(), CodelabSurvey);
} catch (e) {
console.warn('googlecodelabs.CodelabSurvey', e);
} | JavaScript | 0.000001 | @@ -1,12 +1,622 @@
+/**%0A * @license%0A * Copyright 2018 Google Inc.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0... |
bca88b11ab7477ce12f517b73f450f97f42000f4 | Resolution is typeof number | src/memo-switch.js | src/memo-switch.js | // @flow
export const Resolutions = {
YEAR: 1,
MONTH: 2,
DAY: 3,
HOUR: 4,
MINUTE: 5,
SECOND: 6,
MILLISECOND: 7,
}
type TimeStamp = number
type ResoTime = Array<number>
type ResoTimeDiff = number
type DateArg = number|string|Date
type Resolution = 1|2|3|4|5|6|7
type Args = {
start: Reso... | JavaScript | 0.999954 | @@ -274,21 +274,14 @@
n =
-1%7C2%7C3%7C4%7C5%7C6%7C7
+number
%0Atyp
|
f92769db8ca7934799e3aa3d6f55df5e7b3d7323 | Return real path, not lowercase path | app/protocol_filter.js | app/protocol_filter.js | const path = require('path');
const fs = require('fs');
function _eliminateAllAfterCharacter(string, character) {
const index = string.indexOf(character);
if (index < 0) {
return string;
}
return string.slice(0, index);
}
function _urlToPath(targetUrl, options = {}) {
const { isWindows } = options;
... | JavaScript | 0.999191 | @@ -1235,28 +1235,24 @@
bsolute(
-properCasing
+realPath
)) %7B%0A
@@ -1325,28 +1325,24 @@
path '$%7B
-properCasing
+realPath
%7D'%60%0A
@@ -1664,28 +1664,24 @@
path '$%7B
-properCasing
+realPath
%7D' (user
@@ -1816,28 +1816,24 @@
path:
-properCasing
+realPath
,%0A %7D)
|
0c96e85ec8efdd0c4739cf23b9b3ac0ddde43686 | update react on public site | troposphere/static/js/public_site/main.js | troposphere/static/js/public_site/main.js | require.config({
baseUrl: '/assets/js',
paths: {
jquery: '//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min',
backbone: '//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min',
marionette: '//cdnjs.cloudflare.com/ajax/libs/backbone.marionette/1.8.6/core/amd/backbone.marionette.min',
... | JavaScript | 0 | @@ -810,17 +810,17 @@
eact/0.1
-0
+2
.0/react
|
eb2ac72513908d4c4ae4bea680b5a2420fe3521a | Update lime/src/transitions/transition.js | lime/src/transitions/transition.js | lime/src/transitions/transition.js | goog.provide('lime.transitions.Transition');
/**
* Animation for switching active scenes
* @param {lime.Scene} outgoing Outgoing scene.
* @param {lime.Scene} incoming Incoming scene.
* @constructor
* @extends goog.events.EventTarget
*/
lime.transitions.Transition = function(outgoing, incoming) {
goog.events.... | JavaScript | 0 | @@ -1905,11 +1905,75 @@
= true;%0A
+ %0A this.outgoing_ = null;%0A this.incoming_ = null;%0A %0A
%7D;%0A
|
0a3f91217a0b8ecae57e83448a2c83768c5d5b32 | Update UDPefef | benchmark.js | benchmark.js | //
/**
* Created by tungtouch on 2/9/15.
*/
var cluster = require('cluster');
var numCPUs = require('os').cpus().length;
var dgram = require('dgram');
var message = new Buffer("Some bytes hello world bo bo bo world HEHEHEHE ahhaha hohoho hehe:");
var client = dgram.createSocket("udp4");
var async = require('async')... | JavaScript | 0 | @@ -559,17 +559,39 @@
qs = 0;%0A
+ var totalReqs = 0;
%0A
-
setI
@@ -636,28 +636,77 @@
og(%22
-numReqs =%22, numReqs)
+Total request =%22, totalReqs, %22NumReq=%22, numReqs);%0A numReqs = 0
;%0A
@@ -821,24 +821,24 @@
Request') %7B%0A
-
@@ -851,16 +851,43 @@
s += 1;%0A
+ t... |
de6c5b0b6ec84265cc7d45ab4bd4c4abb9e12fe0 | Fix linting errors | app/scripts/helpers.js | app/scripts/helpers.js | define(function() {
'use strict';
/**
* @param {string} str
* @return {string}
*/
var capitalize = function(str) {
return str.substr(0, 1).toUpperCase() + str.substr(1);
}
return { capitalize }
});
| JavaScript | 0.000075 | @@ -204,16 +204,17 @@
);%0A %7D
+;
%0A%0A re
@@ -232,14 +232,15 @@
talize %7D
+;
%0A%7D);%0A%0A
|
a8f228ef19d33242d1db66e467cf6bc50768304e | Update UDPefef | benchmark.js | benchmark.js | //
/**
* Created by tungtouch on 2/9/15.
*/
var cluster = require('cluster');
var numCPUs = require('os').cpus().length;
var colors = require('colors');
var dgram = require('dgram');
var message = new Buffer("Some bytes hello world bo bo bo world HEHEHEHE ahhaha hohoho hehe:");
var client = dgram.createSocket("udp4"... | JavaScript | 0 | @@ -1216,32 +1216,34 @@
);%0A%0A
+//
process.exit(1);
|
94b2eff4b3ba0274a554dbf1116d070a575bf6eb | Switch to combined sem urls in nusmods.js | app/scripts/nusmods.js | app/scripts/nusmods.js | /*global define*/
(function (root, factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(factory);
} else if (typeof exports === 'object') {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments tha... | JavaScript | 0 | @@ -784,35 +784,34 @@
se %7C%7C $.getJSON(
-sem
+ay
BaseUrl + 'modul
@@ -1401,32 +1401,165 @@
llback);%0A %7D,%0A
+ getModIndex: function (code, callback) %7B%0A return $.getJSON(ayBaseUrl + 'modules/' + code + '/index.json', callback);%0A %7D,%0A
getMods: fun
@@ -1640,35 +1640,34 @@
se %7C%7C $.... |
be1a5fd5ab62a2ddb355eab9d7c60225228310b3 | Update UDPefef | benchmark.js | benchmark.js | //
/**
* Created by tungtouch on 2/9/15.
*/
var cluster = require('cluster');
var numCPUs = require('os').cpus().length;
var colors = require('colors');
var dgram = require('dgram');
var message = new Buffer("Some bytes hello world bo bo bo world HEHEHEHE ahhaha hohoho hehe:");
var client = dgram.createSocket("udp4"... | JavaScript | 0 | @@ -1672,19 +1672,22 @@
i %3C numC
-PUs
+luster
; i++) %7B
|
826586f884cd7cb1dbc420a49d818f48eb000ce5 | fix error handling | lib/swagger-client.js | lib/swagger-client.js | var SwaggerParser = require('swagger-parser');
var Request = require('request');
var btoa = require('btoa');
var URL = require('url');
let getBestSecurity = function(securityDefinitions) {
if (!securityDefinitions) return;
var ret = null;
for (var label in securityDefinitions) {
def = securityDefinitions[lab... | JavaScript | 0.000001 | @@ -1509,24 +1509,15 @@
tch(
-e =%3E callback(e)
+catchFn
)%0A
@@ -1541,20 +1541,19 @@
allback(
-null
+err
, self.s
|
c0190d281fc2fbfdee7cef87dc7147ea89047a7e | change how we differentiate powers from trumps | app/services/assets.js | app/services/assets.js | /*
* Copyright (C) 2017 by Arena of Titans Contributors.
*
* This file is part of Arena of Titans.
*
* Arena of Titans is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the Lice... | JavaScript | 0.000002 | @@ -4434,24 +4434,42 @@
ve' in trump
+ %7C%7C trump.is_power
) %7B%0A
|
969bd131b47709f47c9262e93283db0edda1e5d4 | Rearrange temp support for no internet | app/services/stocks.js | app/services/stocks.js | app.factory('stocks', ['$http', function($http) {
var endPoint = 'https://query.yahooapis.com/v1/public/yql?q=',
symbols = [
"W",
"FIT"
],
query = "select * from yahoo.finance.quotes where symbol IN(\"" + symbols.join('","') + "\")",
args = "&format=json&env=http://datatables.org/alltables.env",
... | JavaScript | 0.000001 | @@ -367,19 +367,88 @@
args;%0A%0A%09
-//
+return $http.get('http://localhost:8000/app/components/stocks.json');%0A%0A%09
return $
@@ -462,19 +462,16 @@
t(url)%0A%09
-//
.success
@@ -481,35 +481,32 @@
nction(data) %7B%0A%09
-//
%09return data;%0A%09/
@@ -508,18 +508,12 @@
a;%0A%09
-//
%7D)%0A%09
-//
.err
@... |
c9d9470cca9ed127bd6bafe2619690594395562f | use BaskTask, reject promise on failure | lib/tasks/open-app.js | lib/tasks/open-app.js | 'use strict';
var Task = require('ember-cli/lib/models/task');
var Promise = require('ember-cli/lib/ext/promise');
var path = require('path');
var exec = require('child_process').exec;
var getOpenCommand = require('../utils/open-app-command');
var cordovaPath = require('../util... | JavaScript | 0.000074 | @@ -19,32 +19,36 @@
Task
+
= require('ember
@@ -82,32 +82,36 @@
Promise
+
= require('ember
@@ -133,16 +133,67 @@
omise');
+%0Avar BashTask = require('../tasks/bash');
%0A%0Avar pa
@@ -197,32 +197,36 @@
path
+
+
= require('path'
@@ -232,20 +232,24 @@
');%0A... |
d5fadad9c4edafd5ee43fbdbe9288e485bb3d84f | Make path a non-optional field now that we've rolled out the compiler changes | packages/relay-runtime/util/ReaderNode.js | packages/relay-runtime/util/ReaderNode.js | /**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
// flowlint ambiguous-object-type:error
'use strict';
import type {ConnectionMetadata} fro... | JavaScript | 0.000001 | @@ -5145,188 +5145,15 @@
ad,%0A
- // This field is optional for now as we rollout the compiler change%0A // Once the new version of the compiler has been rolled out, this%0A // will become: %60path: string%60.%0A
+path
-?
: st
|
c184825a83bc2e498a8a17b1a49800e43dcb5573 | Fix a node-webkit issue | lib/utils/parameter-validator.js | lib/utils/parameter-validator.js | 'use strict';
var _ = require('lodash');
var util = require('util');
var validateDeprecation = function(value, expectation, options) {
if (!options.deprecated) {
return;
}
var valid = value instanceof options.deprecated;
if (valid) {
var message = util.format('%s should not be of type "%s"', util.in... | JavaScript | 0.000063 | @@ -225,18 +225,121 @@
precated
+ %7C%7C Object.prototype.toString.call(value) === Object.prototype.toString.call(options.deprecated.call())
;%0A
-
%0A if (v
@@ -614,40 +614,321 @@
%7B%0A
-if (value instanceof expectation
+// the second part of this check is a workaround to deal with an issue that occurs in node... |
2f3a017e50ebec822f85f159ba4fb9d80a123646 | Update aggregate.js | lib/waterline/query/aggregate.js | lib/waterline/query/aggregate.js | /**
* Aggregate Queries
*/
var async = require('async'),
_ = require('lodash'),
usageError = require('../utils/usageError'),
utils = require('../utils/helpers'),
normalize = require('../utils/normalize'),
callbacks = require('../utils/callbacksRunner'),
Deferred = require('./deferred'),
h... | JavaScript | 0 | @@ -1915,32 +1915,38 @@
%0A%0A async.each
+Series
(valuesList, cre
|
99bae60d29fb44f903da8a620d63a06fb8308727 | Fix ban messages timestamp | lib/twitchMessages.js | lib/twitchMessages.js | 'use strict';
const moment = require('moment');
require('moment-timezone');
module.exports = function TwitchMessages(client) {
let modChannel;
if (client.user.id === '120105547633524736') {
modChannel = client.channels.get('140025699867164673');
} else {
modChannel = client.channels.get('2522757326282424... | JavaScript | 0.000001 | @@ -1159,16 +1159,26 @@
(x =%3E -x
+.userstate
%5B'sent-t
@@ -1229,16 +1229,26 @@
moment(x
+.userstate
%5B'sent-t
|
4a3f0ccea7e66cd12581af9a3aa31e2c51401e49 | Remove unneeded variable | test/unit-test/src/cf-tables/src/Table-spec.js | test/unit-test/src/cf-tables/src/Table-spec.js | import { simulateEvent } from '../../../../util/simulate-event';
const Table = require( '../../../../../src/cf-tables/src/Table' );
const HTML_SNIPPET = `
<table id="test-one" class="o-table o-table__sortable">
<thead>
<tr>
<th>
Agency
</th>
<th>
... | JavaScript | 0.000034 | @@ -2633,25 +2633,8 @@
';%0A%0A
-let testID = 0;%0A%0A
desc
|
fac179335267a4535212ef475752c574ac1c76c4 | Fix bug, use surveyID to edit subject | web/portal/src/containers/Portal/index.js | web/portal/src/containers/Portal/index.js |
// CSS
import styles from './style.css';
import React from 'react';
import PureComponent from 'react-pure-render/component';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
// Actions
import * as EditSubjectActions from '../../actions/editSubject';
import * as SubjectActions from '... | JavaScript | 0 | @@ -4455,32 +4455,66 @@
state.subject,%0A
+ surveyID: state.surveyID,%0A
editSubj
|
8b74c4cccf84084ec64a2165f84587a14e0c7292 | refactor tests | test/unit/controllers/CentreController.test.js | test/unit/controllers/CentreController.test.js | var jhg = require('../../helpers/JsonHelperGenerator');
var validation_schema = require('../../../node_modules/removals_dashboard/assets/schema').centre;
describe('INTEGRATION CentreController', () => {
var centre;
beforeEach(() => Centre.create({name: _.uniqueId("test")})
.then(newcentre => centre = newcen... | JavaScript | 0.00002 | @@ -370,13 +370,8 @@
it
-.only
('sh
|
04ef9b356f0dab0543be8e081ed3b47d7793d70a | fix default values for tagsFromEnv config entry | lib/util/spmconfig.js | lib/util/spmconfig.js | /*
* @copyright Copyright (c) Sematext Group, Inc. - All Rights Reserved
*
* @licence SPM for NodeJS is free-to-use, proprietary software.
* THIS IS PROPRIETARY SOURCE CODE OF Sematext Group, Inc. (Sematext)
* This source code may not be copied, reverse engineered, or altered for any purpose.
* This source code i... | JavaScript | 0 | @@ -2306,19 +2306,16 @@
file%0A
- //
tagsFro
@@ -2407,24 +2407,27 @@
ig files%0A
+ //
tagsFromEnv
|
1c8d3974b93c15ffd426dfba1e0c53eb0e98bf7c | Add `!default` suffix to all Sass variables | build/lessToSass.js | build/lessToSass.js | 'use strict';
// https://github.com/ekryski/less2sass
let glob = require('glob')
let path = require('path')
let fs = require('fs')
let mkdir = require('mkdirp')
let files = glob.sync(__dirname + '/../src/less/*.less');
files.forEach(transpile)
function transpile(filename) {
let lines = fs.readFileSync(filename, 'u... | JavaScript | 0.000001 | @@ -1826,39 +1826,187 @@
%0A%0A
-return line.replace(atRegex, '$
+// Matches any Sass variable line%0A var variableRegex = /%5E(%5C$%5B%5Cw%5Cd-_%5D+:%5Cs*(.(?!%5C!default))+);(.*)$/gm;%0A%0A return line.replace(atRegex, '$$').replace(variableRegex, '$1 !default;$3
');%0A
|
3fa0711b4486ac56d1f0b63a117e7edb49502f08 | Add accessibilityLabel for reading 'ok' string of IconButton | garnet/src/ConfirmPanelSample.js | garnet/src/ConfirmPanelSample.js | require('garnet');
var
kind = require('enyo/kind'),
Control = require('enyo/Control'),
Button = require('garnet/Button'),
IconButton = require('garnet/IconButton'),
PopupPanelScroller = require('garnet/PopupPanelScroller'),
Panel = require('garnet/Panel'),
ConfirmPanel = require('garnet/ConfirmPanel'),
PanelM... | JavaScript | 0.000013 | @@ -1463,32 +1463,58 @@
es: 'g-ok-image'
+, accessibilityLabel: 'ok'
%7D%0A%09%09%09%5D,%0A%09%09%09compo
@@ -1900,16 +1900,42 @@
k-image'
+, accessibilityLabel: 'ok'
%7D%0A%09%09%09%5D,%0A
|
f619db068cb0c639d22a4ed8e0f5599d5e9f27c8 | Test travis cli error with instanceof | test/services/TokenServiceTest.js | test/services/TokenServiceTest.js | import Faker from '../../test/Faker';
import Context from '../../src/vo/Context';
import Product from '../../src/entities/Product';
import Licensee from '../../src/entities/Licensee';
import Token from '../../src/entities/Token';
import ProductService from '../../src/services/ProductService';
import LicenseeService fro... | JavaScript | 0 | @@ -1932,32 +1932,88 @@
n((entity) =%3E %7B%0A
+ expect(entity.class).toBe(Token.class);%0A
|
b6d3e6317e8bbca4ee9d33e6c1475f4c29e04b85 | convert tabs to spaces | test/spec/filter/math/byte-fmt.js | test/spec/filter/math/byte-fmt.js | 'use strict';
describe('byteFmtFilter', function () {
var filter;
beforeEach(module('a8m.math.byteFmt'));
beforeEach(inject(function ($filter) {
filter = $filter('byteFmt');
}));
it('should return the correct display from number of bytes', function() {
expect(filter(0,2)).toEqual("0 B");
expe... | JavaScript | 0.999944 | @@ -661,22 +661,16 @@
); %0A
-
%0A
+
%7D);%0A
-
%0A
+
it
@@ -720,33 +720,36 @@
r', function()%7B%0A
-%09
+
expect(filter(%220
@@ -762,33 +762,36 @@
toEqual(%22NaN%22);%0A
-%09
+
expect(filter(%5B0
@@ -804,33 +804,36 @@
toEqual(%22NaN%22);%0A
-%09
+
expect(filter(%7Bn
@@ -867,19 +867,17 ... |
bbb15581e47ac114696e90e74cc39c52fd026b3d | modify list paginaton for member account block log | server/controllers/memberAccountBlockLog.js | server/controllers/memberAccountBlockLog.js | function route(expressApp){
expressApp.get('/memberAccountBlockLog', 'memberAccountBlockLog', expressApp.restrict, function (req, res) {
expressApp.models.MemberAccountBlockLog.findAll().then(function(results) {
res.render('memberAccountBlockLog/list', {
title: 'MemberAccountBlo... | JavaScript | 0 | @@ -123,32 +123,38 @@
nction (req, res
+, next
) %7B%0A expr
@@ -153,71 +153,587 @@
-expressApp.models.MemberAccountBlockLog.findAll().then(function
+var perPage = 15;%0A var currentPage = Number(req.query.page %7C%7C 1);%0A var filter = %7B%7D;%0A%0A var Model = expressApp.models.Me... |
5f0bf8afb73db8f298b32a136fe21c351aca3949 | Fix the user model | src/models/user.js | src/models/user.js | import COLUMNS from '../lib/schema';
export default class User {
identities: Array<string>;
constructor(data) {
if (data.type !== 'user') throw (new Error('invalid_type'));
for (const name of COLUMNS.user) {
this[name] = data[name] || data[name.toLowerCase()];
}
}
packArguments(): Object {
const data =... | JavaScript | 0.033245 | @@ -1,22 +1,24 @@
import
+ %7B
COLUMNS
from '.
@@ -9,16 +9,18 @@
COLUMNS
+ %7D
from '.
@@ -34,16 +34,17 @@
chema';%0A
+%0A
export d
@@ -67,37 +67,8 @@
r %7B%0A
-%09identities: Array%3Cstring%3E;%0A%0A
%09con
|
2897d9e657beffc33a8034a74217b3ff02645f97 | fix worker code | worker.js | worker.js | /* __ __
* \ \ / /_ _ _ __ _ __
* \ V / _` | '_ \| '_ \
* | | (_| | |_) | |_) |
* |_|\__,_| .__/| .__/
* |_| |_|
* Yet Another Php Proxy
*
* Copyright (c) 2016-2021 Jakub Jankiewicz <https://jcubic.pl/me>
*
* Released under MIT license <https://opensource.org/licenses/MIT>
*/
var __prox... | JavaScript | 0.000123 | @@ -1934,22 +1934,20 @@
%7D%0A%7D)(
-window
+self
.fetch);
|
153721e93389cc4072472e5223d6f867e8fd5fdc | add error handler for spawned process, fail gracefully if there is an error with notifier | index.js | index.js | var notifier = require('node-notifier')
var spawn = require('child_process').spawn
var util = require('util')
var errify = function (command, args, options) {
options = options || {}
options.stdio = [process.stdin, process.stdout, 'pipe']
var child = spawn(command, args, options)
child.stderr.on('data', funct... | JavaScript | 0 | @@ -108,18 +108,259 @@
')%0A%0A
-var errify
+function notify (command, args, data) %7B%0A try %7B%0A return notifier.notify(%7B%0A 'title': util.format('Error running %25s %25s', command, args.join(' ')),%0A 'message': data.toString('utf8')%0A %7D)%0A %7D catch (err) %7B%0A return false%0A %7D%0A... |
bd6785a9f5d15bab8fbf7f5520531bacf0e01e4d | Optimize the `last_seq` check | index.js | index.js | 'use strict'
const util = require('util')
const assert = require('assert')
const Duplex = require('stream').Duplex
const ChangesResponse = module.exports = function(options) {
const self = this
Duplex.call(self, { objectMode: true })
self._type = options.type || 'normal'
assert(
ChangesResponse.SUPPORTE... | JavaScript | 0.000551 | @@ -1342,49 +1342,8 @@
) %7B%0A
- const chunkKeys = Object.keys(chunk)%0A
@@ -1550,56 +1550,66 @@
hunk
-Keys.length === 1 && chunkKeys%5B0%5D === 'last_seq'
+.last_seq !== undefined && Object.keys(chunk).length === 1
) re
|
13008f2e4e2005591709174bc135566ef9fd354f | add another order by statement | index.js | index.js | var fs = require('fs');
var mysql = require('mysql');
var express = require('express');
var validator = require('validator');
var nodemailer = require('nodemailer');
var bodyParser = require('body-parser');
var expressBrute = require('express-brute');
var config = JSON.parse(fs.readFileSync('config.json', 'UTF-8'));
v... | JavaScript | 0.000373 | @@ -1922,24 +1922,40 @@
courseID = ?
+ ORDER BY e.date
', %5Bid%5D, fun
|
b196b9372fb93bd56c4ef136706f13829fb2a76e | add bindRepaintOnWindowResize function to Abstract.js | library/CM/Component/Abstract.js | library/CM/Component/Abstract.js | /**
* @class CM_Component_Abstract
* @extends CM_View_Abstract
*/
var CM_Component_Abstract = CM_View_Abstract.extend({
_class: 'CM_Component_Abstract',
_ready: function() {
cm.dom.setup(this.$());
this.ready();
_.each(this.getChildren(), function(child) {
child._ready();
});
},
/**
* Called on... | JavaScript | 0.000001 | @@ -350,24 +350,258 @@
tion() %7B%0A%09%7D,
+%0A%0A%09bindRepaintOnWindowResize: function() %7B%0A%09%09var self = this;%0A%09%09var callback = function() %7B%0A%09%09%09self.repaint();%0A%09%09%7D;%0A%09%09$(window).on('resize', callback);%0A%09%09this.on('destruct', function() %7B%0A%09%09%09$(window).off('resize', ... |
06ce394d3154277325f26e352554cc4692afee8a | Remove propType for style property #98 | index.js | index.js | import React from 'react-native';
const {
PixelRatio,
StatusBarIOS,
Component,
Text,
View,
PropTypes
} = React;
import NavbarButton from './NavbarButton';
import styles from './styles';
const ButtonShape = {
title: PropTypes.string.isRequired,
style: PropTypes.object,
handler: PropTypes.func,
};
con... | JavaScript | 0 | @@ -2532,96 +2532,8 @@
= %7B%0A
- style: PropTypes.oneOfType(%5B%0A PropTypes.object,%0A PropTypes.array,%0A %5D),%0A
|
1670d051e73518c00996cf13dc7eaffdede9b73c | add ability to generate a list of insights | index.js | index.js | var nouns = [
'action items',
'alignments',
'applications',
'architectures',
'bandwidth',
'benefits',
'best practices',
'catalysts for change',
'channels',
'clouds',
'collaboration and idea-sharing',
'communities',
'content',
'convergence',
'core competencies',
'customer service',
'dat... | JavaScript | 0.000115 | @@ -1869,29 +1869,24 @@
unction
-createInsight
+generate
() %7B%0A r
@@ -1962,18 +1962,285 @@
s =
-createInsight
+function (numberOfInsights) %7B%0A // if a number is passed to the method then make that many insights%0A if (numberOfInsights) %7B%0A var insights = %5B%5D%0A for(var i = 0; i %3C numberOfIns... |
cea95904b28cb8152b5e6cab27db29968470d5a6 | check for error in getOn | index.js | index.js | var request = require("request");
var wol = require("wake_on_lan");
var Service, Characteristic;
module.exports = function(homebridge) {
Service = homebridge.hap.Service;
Characteristic = homebridge.hap.Characteristic;
homebridge.registerAccessory("homebridge-sonybraviatv", "SonyBraviaTV", SonyBraviaTVAcc... | JavaScript | 0 | @@ -2566,16 +2566,17 @@
is.isOn)
+;
%0A %7D e
@@ -2630,32 +2630,49 @@
%7B%0A
+ if (err == null)
this.log(%22State
@@ -2701,16 +2701,17 @@
: %22off%22)
+;
%0A
|
a2f888ea45a4d7b4900735252928a53151c1efb6 | remove `app:` from time label | index.js | index.js | var EventEmitter = require('events');
var Module = require('module');
var path = require('path');
var CONF = require('config');
var cache = new WeakMap;
var logCallback = function() {
console.log.apply(console, arguments);
};
function logConsole(method, module) {
method = method.toUpperCase();
var logLevel = ... | JavaScript | 0.000116 | @@ -886,20 +886,16 @@
onsole('
-app:
time', m
|
a0ac5be7378dfc31dd2566936e1f6ababa34e0fc | Fix wrong pitch value for Cb | index.js | index.js | (function() {
'use strict';
var base12 = {
"C": 1,
"D": 3,
"E": 5,
"F": 6,
"G": 8,
"A": 10,
"B": 12
};
/**
* The MusicJsonToolbox class implements static functions to operate with musicjson objects.
* @exports MusicJsonToolbox
*/
var MusicJsonToolbox = {
/**
* R... | JavaScript | 0.003722 | @@ -2507,121 +2507,174 @@
-if (absolute) %7B%0A return (base12%5Bstep%5D + octave * 12) + alter;%0A %7D else %7B%0A return base12%5Bstep%5D
+var ret = base12%5Bstep%5D;%0A if (ret === 0) %7B%0A ret = 12;%0A %7D%0A if (absolute) %7B%0A ret += (octave * 12);%0A %... |
c25ffdf56bb685c5beaf67929071318e3d67b443 | Fix overly specific knockout reference | app/templates/_main.js | app/templates/_main.js | requirejs.config({
paths: {
'text': '../bower_components/requirejs-text/text',
'durandal': '../bower_components/durandal/js',
'plugins': '../bower_components/durandal/js/plugins',
'transitions': '../bower_components/durandal/js/transitions',
'knockout': '../bower_components/... | JavaScript | 0 | @@ -337,14 +337,8 @@
kout
--2.3.0
.deb
@@ -1669,12 +1669,13 @@
%0A %7D);%0A%7D);
+%0A
|
380f9085d6897c4662c3211decedf2e3a2826ed3 | fix lint | index.js | index.js | "use strict";
const os = require("os");
const platform = os.platform();
if (["aix", "android", "darwin", "freebsd", "linux", "openbsd", "sunos", "win32"].includes(platform)) {
let file;
if (platform === "aix") {
// AIX `netstat` output is compatible with Solaris
file = `${os.type() === "OS400" ? "ibmi" : ... | JavaScript | 0.000013 | @@ -608,17 +608,16 @@
() =%3E %7B
-
throw ne
@@ -664,10 +664,8 @@
m%7D%60)
-;
%7D;%0A
|
21a73f5e3adb34e57aa1e03b2b44af0b13d8f874 | Update test | test/test_getAgentDecisionTree.js | test/test_getAgentDecisionTree.js | import CONFIGURATION_1 from './data/configuration_1.json';
import CONFIGURATION_1_OPERATIONS_1 from './data/configuration_1_operations_1.json';
import CONFIGURATION_2 from './data/configuration_2.json';
import parse from '../src/parse';
import semver from 'semver';
import craftai, { errors } from '../src';
const CONF... | JavaScript | 0.000001 | @@ -3279,17 +3279,16 @@
meout: 5
-0
%0A %7D
|
63475973810e2fd1471680eda841de0a78082e4f | update LocalAutoComplete examples | examples/containers/app/modules/fields/LocalAutoCompleteExamples.js | examples/containers/app/modules/fields/LocalAutoCompleteExamples.js | import React, {Component} from 'react';
import LocalAutoComplete from 'src/LocalAutoComplete';
import Widget from 'src/Widget';
import WidgetHeader from 'src/WidgetHeader';
import PropTypeDescTable from '../PropTypeDescTable';
import LocalAutoCompleteDoc from 'assets/propTypes/LocalAutoComplete.json';
import 'sass/c... | JavaScript | 0 | @@ -303,85 +303,8 @@
';%0A%0A
-import 'sass/containers/app/modules/fields/LocalAutoCompleteExamples.scss';%0A%0A
expo
|
c7062f6a333ff29b8bb728eaa1ee2d41a37d2e65 | Add logging of messages received in sse.js | sse.js | sse.js | "ues strict";
var RAND_ALPHABET = "0123456789abcdef"
function randId(bits) {
var n = bits / Math.log2(RAND_ALPHABET.length);
var chars = []
for (var i = 0; i < n; i++) {
var randIndex = Math.floor(Math.random() * RAND_ALPHABET.length);
chars.push(RAND_ALPHABET[randIndex]);
}
return ... | JavaScript | 0 | @@ -430,16 +430,44 @@
ion(e) %7B
+%0A console.log(e.data)%0A
eval(e.
@@ -472,17 +472,17 @@
e.data);
-
+%0A
%7D%0A%0Afunct
|
b8f1e5a1239c4520a7b64d3a72ba0eab30f9a8ef | blur out everything except target sentence | contentScript.js | contentScript.js | console.log("context script running")
/*$( "p" ).foggy();*/
$( "p" ).each(function(index) {
var str = $(this).text();
if (str.includes("Ji Hun")) {
console.log(index + ":" + $(this).text() );
} else {
$(this).foggy();
}
});
/*
http://stackoverflow.com/questions/4409378/text-selection-and-bubble-overlay... | JavaScript | 1 | @@ -1,64 +1,336 @@
-console.log(%22context script running%22)%0A/*$( %22p%22 ).foggy();*/%0A
+targetText = %22Ji Hun Kim%22; %0AaddTagToText(targetText);%0AblurOutText(targetText) %0A%0Afunction blurOutText(targetText) %7B%0A $( %22p%22 ).each(function(index) %7B%0A var str = $(this).text();%0A if (str.includes(... |
f63ab273411ed04955edb499fa9da41a4b1b3f30 | fix typo in error handling | bin/build.js | bin/build.js | #!/usr/bin/env node
var path = require('path')
var yargs = require('yargs')
var argv = yargs.options({
config: {
type: 'string',
requiresArg: true
},
'disable-chunks-info': {
type: 'boolean'
}
}).argv
var webpack = require('webpack')
var exposedLibraries = ['react', 'react-dom', 'superagent', 're... | JavaScript | 0.000039 | @@ -2758,16 +2758,18 @@
sole.err
+or
(err)%0A
|
65e5481afc0ef2b25d1cd43e72670f6a8230f19a | Complete SpinnerToggle tests | examples/playground/cypress/integration/table/SpinnerToggle_spec.js | examples/playground/cypress/integration/table/SpinnerToggle_spec.js | describe("Actionable Rows", function () {
beforeEach(function () {
cy.visit("http://localhost:8080/#/components/table");
});
context("Navigate to Sprinner Table", function () {
it("can navigate to 'spinner' from tab options", function () {
cy.get(".btn-group").within(function () {
cy.contains("spinner").... | JavaScript | 0 | @@ -94,12 +94,13 @@
ost:
-8080
+21356
/#/c
@@ -331,16 +331,16 @@
%09%09%09%7D);%0A%0A
-
%09%09%09cy.ge
@@ -408,16 +408,365 @@
);%0A%09%09%7D);
+%0A%0A%09%09it(%22can navigate to 'spinner' from tab options and toggle spinner off%22, function () %7B%0A%09%09%09cy.get(%22.btn-group%22).within(function () %7B%0A%09%09... |
3fb7d40c66528025ae93d72ecc458e3018e890d2 | switch default salary to 1000 | main.js | main.js | var app = angular.module('app', []);
app.controller('Controller', function Controller($scope) {
$scope.counter = 0;
$scope.display_counter = Math.round($scope.counter);
$scope.salary = 4000;
$scope.salaryFrequency = "monthly";
$scope.startAt = "now"
var start_tick = 0
var refresh_rate = ... | JavaScript | 0.000025 | @@ -193,17 +193,17 @@
alary =
-4
+1
000;%0A
@@ -265,16 +265,17 @@
= %22now%22
+;
%0A%0A va
@@ -290,16 +290,17 @@
tick = 0
+;
%0A var
@@ -349,16 +349,17 @@
w Date()
+;
%0A%0A fu
@@ -1010,32 +1010,33 @@
Date().getTime()
+;
%0A var dif
@@ -1066,16 +1066,17 @@
/ 1000.0
+;
%0A%0A
@@ -1... |
32f6c9f7953182b1c9e4bd5db3ef8b49a5cb64d0 | Allow for a single array or multiple arguments | index.js | index.js | var Promise = require('es6-promise').Promise;
var engine = require('static-engine');
var compose = require('static-compose');
module.exports = function (name, plugins) {
var composed = compose(plugins);
return function (pages) {
var promises = pages.map(function (page) {
return new Prom... | JavaScript | 0.00001 | @@ -161,24 +161,137 @@
plugins) %7B%0A%0A
+ if(!Array.isArray(plugins) %7C%7C arguments.length %3E 2) %7B%0A%0A plugins = %5B%5D.slice.call(arguments, 1);%0A %7D%0A%0A
var comp
|
be3908f7464f8046e6b27257b012dbd05f8de64f | create window on mac | index.js | index.js | 'use strict';
const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
const ipcMain = electron.ipcMain;
const Tray = electron.Tray;
const path = require('path');
const os = require('os');
const fs = require('fs');
const xdgBasedir = require('xdg-basedir');
const wi... | JavaScript | 0.000001 | @@ -1062,24 +1062,66 @@
ow.focus();%0A
+ %7D else %7B%0A displayMainWindow();%0A
%7D%0A%7D);%0A%0Ai
|
5b7eff4a8c594ff5453883513a6ee9dd138106f5 | clean up logging and dead code | index.js | index.js | module.exports = function(bbox, factor){
var currentXDistance = (bbox[2] - bbox[0])
var currentYDistance = (bbox[3] - bbox[1])
var newXDistance = currentXDistance * factor
var newYDistance = currentYDistance * factor
var xChange = newXDistance - currentXDistance
var yChange = newYDistance - currentYDistanc... | JavaScript | 0 | @@ -318,211 +318,8 @@
ance
-%0A console.log(currentXDistance)%0A console.log(newXDistance)%0A console.log(xChange)%0A //var xDistance = (((bbox%5B2%5D - bbox%5B0%5D) / 2) * factor) /2%0A //var yDistance = (((bbox%5B3%5D - bbox%5B1%5D) / 2) * factor) /2
%0A%0A
|
e25c2942c04dcae85eb5aa5a139ec845c86bddfe | use strict | index.js | index.js | var anymatch = require('anymatch');
function returnFalse() { return false; }
function generateAnysort(criteria) {
if (!criteria) { criteria = returnFalse; }
var matcher = anymatch.matcher(criteria);
return function sorter(a, b, startIndex) {
var hasA, hasB, indexOfA, indexOfB;
indexOfA = matcher(a, true... | JavaScript | 0.001538 | @@ -1,12 +1,27 @@
+'use strict';%0A%0A
var anymatch
|
e4239ca49eefec4564c8024cad20aabeae1a5d96 | Adding commas for #20 | public/datum/Datum.js | public/datum/Datum.js | var Datum = Backbone.Model.extend(
/** @lends Datum.prototype */
{
/**
* @class <The Datum widget is the place where all linguistic data is entered; one at a time. >
*
* @property {String} utterance <The utterance field generally corresponds to the first line in linguistic examples that can either be w... | JavaScript | 0.999261 | @@ -3858,24 +3858,25 @@
ion() %7B%0A %7D
+,
%0A%0A%0A /**%0A
@@ -4309,16 +4309,17 @@
) %7B%0A %7D
+,
%0A%0A%0A /
|
703e7bf57f92863a0a36ba41c6a60baabcb750f4 | make failure due to not being set a bit more obvious | test/cases/functionalTest.js | test/cases/functionalTest.js |
(function(){
TestCase("functionalTest", {
'testVarargsWithSomeFixedArgs': function() {
var received1, received2, received3;
function f(r1, r2, r3){
received1 = r1;
received2 = r2;
received3 = r3;
}
var varargsSpy ... | JavaScript | 0.000002 | @@ -625,16 +625,32 @@
eceived1
+ = 'not yet set'
;%0A
@@ -1377,24 +1377,16 @@
, half);
-%0A
// com
|
7742d05c0560829aac69336eb6e392a87c0b8056 | remove console.error | index.js | index.js | var mkdirp = require('mkdirp')
var http = require('https')
var fs = require('fs')
var crypto = require('crypto')
var tar = require('tar')
var os = require('os')
var zlib = require('zlib')
var fstream = require('fstream')
var path = require('path')
var request = require('request')
function toGithubDownload (repo) {
/... | JavaScript | 0.000069 | @@ -1090,32 +1090,8 @@
) %7B%0A
- console.error(_url)%0A
|
a7675466d1fb1e90e745849ea0bb2c4e2ac50ef3 | change controller name according to filename change | public/scripts/app.js | public/scripts/app.js | 'use strict';
var chatterBox = angular.module('chatterBox', [
'ngRoute',
'btford.socket-io'
]);
chatterBox.factory('socket', function (socketFactory) {
return socketFactory();
});
chatterBox.config(['$routeProvider',
function($routeProvider) {
$routeProvider.when('/', {
templateUr... | JavaScript | 0.000003 | @@ -377,10 +377,18 @@
: 'M
-sg
+essageList
Cont
|
43fcbdeae26441141614c73aefdd07d5e8f15de1 | Add some exponent syntax to tests | test/context-convert-test.js | test/context-convert-test.js | var vows=require('vows');
var assert=require('assert');
var rdf=require('rdf');
var util=require('util');
function tl(value, type){ return value.tl(type).valueOf(); }
var batches = {};
function strictCompare(nv){
var test = function(t){ assert.strictEqual(t, nv); };
test.nativeValue = nv;
return test;
}
function... | JavaScript | 0.000016 | @@ -1609,24 +1609,88 @@
1.578125));%0A
+addBatch(%22-1.2344e56%22, %22xsd:float%22, strictCompare(-1.2344e56));%0A
addBatch(%22-4
|
253a62aad32c1eadfd73b5078ffbde68269b7fad | add passing tests | tests/lib/rules/no-access-state-in-setstate.js | tests/lib/rules/no-access-state-in-setstate.js | /**
* @fileoverview Prevent usage of this.state within setState
* @author Rolf Erik Lekang, Jørgen Aaberg
*/
'use strict';
// ------------------------------------------------------------------------------
// Requirements
// ------------------------------------------------------------------------------
const RuleT... | JavaScript | 0.000001 | @@ -422,16 +422,66 @@
state');
+%0Aconst parsers = require('../../helpers/parsers');
%0A%0Aconst
@@ -2651,16 +2651,377 @@
Options%0A
+ %7D, %7B%0A code: %60%0A class ComponentA extends React.Component %7B%0A state = %7B%0A greeting: 'hello',%0A %7D;%0A%0A myFunc = () =%3E %7B%... |
535fa01a549d69f280db5610053a9175be6331aa | Add strikethrough to deleted tags | bin/index.js | bin/index.js | #! /usr/bin/env node
var marked = require('marked');
var fs = require('fs');
var chalk = require('chalk');
var argv = require('yargs')
.usage('Usage: $0 --input [Markdown File] --lineLength [num]')
.default({'input': 'README.md', 'lineLength': 80})
.alias('i', 'input')
.nargs('input', 1)
.alias('l', 'lineLen... | JavaScript | 0 | @@ -1883,36 +1883,57 @@
ext) %7B%0A return
+chalk.strikethrough(
text
+)
;%0A%7D;%0A%0Arenderer.l
|
9f6775494584e49d58375845015e401613a23e1f | Update hyper preferences | hyper/.hyper.js | hyper/.hyper.js | module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily: '"Source Code Pro", "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248... | JavaScript | 0 | @@ -743,59 +743,8 @@
5em;
- %7D x-row %3E span:first-child %7B margin-right: -0.5em;
%7D',
|
e60e5a541f125304bfb34c97e50226194cd67129 | change featured image preview image when switching between existing assets | vendor/assets/javascripts/initializers.js | vendor/assets/javascripts/initializers.js | Dropzone.autoDiscover = false;
// TODO: Initializers depend on libraries loaded through rails-assets gems.
// Gems can't be loaded through alternate sources (rails-assets.org) in .gemspec, so the best alternative
// will be adding bower to the gemspec somehow
$(document).on('turbolinks:load', function() {
UIkit.init(... | JavaScript | 0 | @@ -2159,12 +2159,237 @@
;%0A %7D);%0A
+ $('.js-featured-image-table-element').each(function() %7B%0A $(this).find('input').on('click', function(event) %7B%0A $('.js-featured-image').attr('src', event.target.parentElement.parentElement.dataset.url);%0A %7D);%0A %7D);%0A
%7D);%0A
|
e1535aace493025194c73782ce94d2a1ea861af5 | fix hyper to work with tmux | hyper/.hyper.js | hyper/.hyper.js | // Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but ... | JavaScript | 0 | @@ -3378,16 +3378,17 @@
t: false
+,
%0A%0A //
@@ -3688,16 +3688,64 @@
is/#cfg%0A
+ modifierKeys: %7B%0A altIsMeta: true%0A %7D%0A
%7D,%0A%0A
|
8957bd0bf71d983618004a683f5488f08ff37c5f | fix some ui/ux problems | vendor/assets/javascripts/initializers.js | vendor/assets/javascripts/initializers.js | Dropzone.autoDiscover = false;
// TODO: Initializers depend on libraries loaded through rails-assets gems.
// Gems can't be loaded through alternate sources (rails-assets.org) in .gemspec, so the best alternative
// will be adding bower to the gemspec somehow
$(document).on('turbolinks:load', function() {
UIkit.init(... | JavaScript | 0.000002 | @@ -2785,32 +2785,81 @@
();%0A
-$jsAsset
+var $anchor = $jsAsset.find('a').first();%0A $anchor
.text(urlArr
@@ -2889,31 +2889,30 @@
);%0A $
-jsAsset
+anchor
.attr('href'
@@ -2941,16 +2941,121 @@
es.id);%0A
+ $jsAsset.removeClass('uk-hidden');%0A $('.js-asset-buttons').first().ad... |
199b155333602b9386cb31148349a939cbb0f4bc | update img spriting build paths | build/img_spriting.js | build/img_spriting.js | /*
* A postcss task to create a sprite of all CSS background images and update
* the references to them in the CSS.
*/
var fs = require('fs');
var postcss = require('postcss');
var css = fs.readFileSync('./css/scpr_style.css', 'utf8');
var opts = {
filterBy: function(image) {
if (!/\.png$/.test(image.url)) ... | JavaScript | 0 | @@ -196,32 +196,39 @@
readFileSync('./
+public/
css/scpr_style.c
@@ -237,24 +237,24 @@
', 'utf8');%0A
-
%0Avar opts =
@@ -416,16 +416,23 @@
ath: './
+public/
css',%0A
@@ -446,16 +446,23 @@
ath: './
+public/
img'%0A%7D;%0A
@@ -548,24 +548,31 @@
from: './
+public/
css/scpr_sty
@@ -593,16 +593,23 @@
to: ... |
8a7e5fc9bf5489a91e491260708d1b6b7d3220a8 | Remove valid-jsdoc rule | index.js | index.js | const ALLOWED_MAGIC_NUMBERS = [-1, 0, 1, 2, 3, 10, 100, 1000];
const MAX_ALLOWED_COMPLEXITY = 5;
const MAX_LINE_LENGTH = 150;
/*
fix --> indicates that rule can be "auto-fixed" by ESLint
*/
module.exports = {
env: {
// node: true,
// es6: true,
browser: true
},
globals: {
... | JavaScript | 0.000001 | @@ -4159,42 +4159,8 @@
'%5D,%0A
- 'valid-jsdoc': %5B'error'%5D,%0A
|
1bfe201e19bdd6b3b6be3507665c47cd185528d0 | Add more tests | tests/transformers/securityDefinitions.spec.js | tests/transformers/securityDefinitions.spec.js | const expect = require('chai').expect;
const transformSecurituDefinitions = require('../../app/transformers/securityDefinitions');
// const nameResolver = require('../../app/transformers/securityDefinitions').nameResolver;
const typeResolver = require('../../app/transformers/securityDefinitions').typeResolver;
describ... | JavaScript | 0 | @@ -128,11 +128,8 @@
');%0A
-//
cons
@@ -884,12 +884,342 @@
;%0A %7D);%0A
+ it('Should resolve names', () =%3E %7B%0A Object.keys(nameResolver).map(key =%3E %7B%0A const fixture = %7B auth: %7B type: 'basic' %7D %7D;%0A fixture.auth%5Bkey%5D = 'value';%0A const res = transformSecurituDefinitions... |
7120b59cfd5fb4b67f149ef36627dd79bfb24f03 | remove un-needed console definition | build/mini_require.js | build/mini_require.js | /* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | JavaScript | 0.000103 | @@ -1952,732 +1952,8 @@
%7B%0A%0A
-// These are the functions that are available in Chrome 4/5, Safari 4%0A// and Firefox 3.6. Don't add to this list without checking browser support%0Avar NAMES = %5B%0A %22assert%22, %22count%22, %22debug%22, %22dir%22, %22dirxml%22, %22error%22, %22group%22, %22groupEnd%22,%0A ... |
108f30a88425051f7ff2d41bb565cee4944421c8 | Add resize events | public/js/calendar.js | public/js/calendar.js | //
(function() {
// Launch calendar
var calendar = $('#calendar');
calendar.fullCalendar({
header: {
left: 'title prev,next today',
right: 'month,agendaWeek,agendaDay'
},
editable: true,
selectable: true,
unselectCancel: '.popover',
firstDay: 1,
timeFormat: 'H:mm',
ev... | JavaScript | 0.000001 | @@ -390,16 +390,46 @@
r.drop,%0A
+ eventResize: editor.drop,%0A
sele
|
eb62b370c6374a51ee4f29dccdc6a0ce8f2a6112 | Replace vars for consts in test | tests/unit/components/job-repo-actions-test.js | tests/unit/components/job-repo-actions-test.js | import { test, moduleForComponent } from 'ember-qunit';
import Ember from 'ember';
// stub auth service
const authStub = Ember.Service.extend({
currentUser: Ember.Object.create()
});
moduleForComponent('job-repo-actions', 'JobRepoActionsComponent', {
unit: true,
needs: ['helper:perform'],
beforeEach() {
t... | JavaScript | 0.000003 | @@ -436,32 +436,21 @@
rt) %7B%0A
-var component;%0A
+const
compone
@@ -695,24 +695,13 @@
%7B%0A
-var component;%0A
+const
com
@@ -979,37 +979,21 @@
rt) %7B%0A
-var component, job;%0A
+const
job = E
@@ -1074,32 +1074,38 @@
o: true%0A %7D);%0A
+const
component = this
@@ -1502,29 +1502,13 @@
%7B%0... |
263c5e80783a72dd121d0e9c54f110ff1f98f2e9 | Change to deleting entire thread | main.js | main.js | // start up scheduled tasks
require('./cronjobs.js');
// load env variables
require('dotenv').config({path: '.env'});;
var login = require('facebook-chat-api');
// load module definitions
var commandDescriptions = require('./modules.json');
var prefixLen = 1;
// return module that handles a command
var commands = c... | JavaScript | 0 | @@ -683,23 +683,22 @@
message.
-message
+thread
ID) %7B%0A
@@ -715,15 +715,14 @@
lete
-Message
+Thread
(mes
@@ -726,23 +726,22 @@
message.
-message
+thread
ID);%0A
|
b3a291227659a934be8ae4c54146c81223708060 | fix espower-babel pattern | test/espower-babel-loader.js | test/espower-babel-loader.js | require('espower-babel')({
cwd: process.cwd(),
pattern: 'tmp/test/**/*-test.js',
espowerOptions: {
patterns: [
'assert(value, [message])',
'assert.ok(value, [message])',
'assert.equal(actual, expected, [message])',
'assert.notEqual(actual, expected, [message])',
'assert.strictEqu... | JavaScript | 0.00001 | @@ -54,16 +54,17 @@
ttern: '
+.
tmp/test
|
88cf7523436ba76fff23c08a79262eead9ad9a6f | fix if not in envjs environment | scripted/tests/pre.js | scripted/tests/pre.js | /**
* Parse incoming query parameters into module names.
* Then run only those modules.
* see post.js
*/
var Modules = {
tests: {
'String': 'util/string.js',
'Array': 'util/array.js',
'Exhibit.Set': 'util/set.js',
'Exhibit.Util': 'util/util.js',
'Exhibit.Util.HTML': 'util... | JavaScript | 0.000071 | @@ -1036,24 +1036,64 @@
cript);%0A%7D;%0A%0A
+if (typeof Envjs !== %22undefined%22) %7B%0A
Modules.load
@@ -1140,20 +1140,66 @@
args%22);%0A
+%7D%0A%0A
if (
+typeof Modules.original !== %22undefined%22 &&
Modules.
|
30157e8b223256944c1e393b0fd6a4212882bab3 | remove no longer valid test. | test/zip-archive-output-stream.js | test/zip-archive-output-stream.js | /*global before,describe,it */
var fs = require('fs');
var stream = require('stream');
var assert = require('chai').assert;
var mkdir = require('mkdirp');
var helpers = require('./helpers');
var WriteHashStream = helpers.WriteHashStream;
var testBuffer = helpers.binaryBuffer(1024 * 16);
var testDate = new Date('Jan 03... | JavaScript | 0.000001 | @@ -3297,455 +3297,8 @@
);%0A%0A
- it('should force UTC', function(done) %7B%0A var archive = new ZipArchiveOutputStream(%7B%0A forceUTC: true%0A %7D);%0A var testStream = new WriteHashStream('tmp/zip-stream64.zip');%0A var entry = new ZipArchiveEntry('stream.txt');%0A%0A testStrea... |
3aecd7e38bfed86ecfa53e1f5bee36f809c54d65 | Fix the ignore list for packaging. r=jsantell | build/task-package.js | build/task-package.js | // Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/
import path from 'path';
import os from 'os';
import through2 from 'through2';
import packager from 'electron-packager';
import vinyl from 'vinyl-fs';
import zip from 'gulp-vinyl-zip';
import * as BuildUtils from... | JavaScript | 0.000012 | @@ -389,18 +389,229 @@
nst
-IGNORE = %5B
+ROOT = path.resolve(path.join(__dirname, '..'));%0A%0A// electron-packager compares these against paths that are rooted in the root%0A// but begin with %22/%22, e.g. %22/README.md%22%0Aconst IGNORE = %5B%0A // Ignore hidden files%0A '/%5C%5C.',%0A
%0A /
@@ -634,18 +634,17... |
45a84ec2ef7e110c8df5d4e508c7ce8c695a8726 | Add meta description | src/pages/About.js | src/pages/About.js | import React from 'react'
import Page from '../components/Page'
import { H1 } from '../components/common/Title'
export default () => (
<Page title="About">
<H1>About.</H1>
</Page>
)
| JavaScript | 0.000004 | @@ -150,16 +150,75 @@
=%22About%22
+ meta=%7B%5B%7B name: 'description', content: 'About us page' %7D%5D%7D
%3E%0A %3CH
|
870028955b5cfafeed43b0cc830e1c1c85aa3fba | No need to define option aliases as boolean | bin/serve.js | bin/serve.js | #!/usr/bin/env node
// Native
const path = require('path')
// Packages
const micro = require('micro')
const args = require('args')
const compress = require('micro-compress')
const detect = require('detect-port')
const {coroutine} = require('bluebird')
const updateNotifier = require('update-notifier')
const {red} = re... | JavaScript | 0.999973 | @@ -1587,13 +1587,8 @@
- 'a',
'au
@@ -1601,13 +1601,8 @@
- 'C',
'co
@@ -1615,13 +1615,8 @@
- 'S',
'si
@@ -1631,13 +1631,8 @@
- 's',
'si
@@ -1647,13 +1647,8 @@
- 'u',
'un
|
7bda568a6cd3f7cdc0eebcafe8690b2ab3d32756 | fix error highlighting when running locally | tour/static/js/services.js | tour/static/js/services.js | /* Copyright 2012 The Go Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
'use strict';
/* Services */
angular.module('tour.services', []).
// Google Analytics
factory('analytics', ['$window',
function(win) {
var t... | JavaScript | 0.000001 | @@ -1085,12 +1085,10 @@
ch(/
-prog
+.*
%5C.go
|
2ae2382ef70ca3b1ef7a808d9e890132fd85b93d | Make loader async. | index.js | index.js | 'use strict';
const fs = require("fs-promise");
const path = require('path');
const svg2png = require('svg2png');
const sizeOf = require('image-size');
const mkdirp = require('mkdirp-promise')
const loaderUtils = require('loader-utils');
const deepAssign = require('deep-assign');
module... | JavaScript | 0 | @@ -366,16 +366,47 @@
e(true);
+%0A let callback = this.async();
%0A%0A let
@@ -1381,42 +1381,8 @@
);%0A%0A
- console.log(svgName, svgSize);%0A%0A
//
@@ -1628,16 +1628,19 @@
//
+ //
retina
@@ -1649,32 +1649,35 @@
nversion%0A
+ //
svg2png(svgBuff
@@ -1681,32 +1681,35 @@
uffer, %7B%0A ... |
aa494183b9d5b3ad01a030c043411c5ff90d57a5 | Allow the use of full platform names | index.js | index.js | var json3 = require('json3');
var _ = require('lodash');
var request = require('request');
var ENDPOINT = 'http://api.captainteemo.com';
var PLATFORMS = [
{'short': 'na', 'full': 'North_America'},
{'short': 'br', 'full': 'Brasil'},
{'short': 'euw', 'full': 'Europe_West'},
{'short': 'eun', 'full': 'Europe_East'... | JavaScript | 0.000001 | @@ -2373,58 +2373,263 @@
%0A%0A
-var prepareGet = function(platform, summoner, call
+/**%0A * Converts full platform string to their shorthand version.%0A *%0A * @param %7BString%7D platform The platform to shorten.%0A * @param %7BFunction%7D cb(shortPlatform) The function called after shortening.%0A */%0A... |
27d967f7c11e7b1cbe093d2c19cca9802c27f2a9 | return proper match and notFound values for each case | index.js | index.js | 'use strict';
var util = require('./lib/util');
exports = module.exports = Parth;
function Parth(){
if(!(this instanceof Parth)){
return new Parth();
}
this.regex = [];
this.store = {};
this.regex.master = new RegExp('(?:[])');
}
/**
## parth.set
```js
function set(string path[, object options])
```... | JavaScript | 0.000003 | @@ -2905,21 +2905,8 @@
= %7B
-match: path,
notF
@@ -2919,16 +2919,8 @@
path
- %7C%7C true
%7D;%0A%0A
@@ -2939,24 +2939,44 @@
ore%5Bpath%5D)%7B%0A
+ o.match = path;%0A
o.notFou
@@ -2980,21 +2980,18 @@
Found =
-false
+''
;%0A re
@@ -3169,21 +3169,19 @@
= path.
-repla
+sli
ce(o.mat
@@ -3182,20 +318... |
045ab008e2d38fb70b4e570d22a71a1f9c956552 | Add adjustments for Firefox | src/performance.js | src/performance.js | (function(){
'use strict';
if (document.readyState === 'complete') {
startCollect();
} else {
window.addEventListener('load', startCollect);
}
function startCollect() {
const timing = performance.getEntriesByType('navigation')[0].toJSON();
if (timing.duration > 0) {
// we have only 4 c... | JavaScript | 0.000001 | @@ -284,24 +284,611 @@
tion %3E 0) %7B%0A
+ // fetchStart sometimes negative in FF, make an adjustment based on fetchStart%0A var adjustment = timing.fetchStart %3C 0 ? -timing.fetchStart : 0;%0A %5B'domainLookupStart',%0A 'domainLookupEnd',%0A 'connectStart',%0A 'connectEnd',%0A ... |
7fde1f19d742cda2ce68376e60bd30cd966d77dd | Fix error pointed out by JSLint | scripts/URIManager.js | scripts/URIManager.js | var URIManager = {
initialPopStateHasRun: false,
init: function() {
window.addEventListener('popstate', function(event) {
// Chrome throws an initial popState, http://dropshado.ws/post/15251622664/ignore-initial-popstate
var isChrome = navigator.userAgent.toLowerCase().indexOf('chrome') ... | JavaScript | 0 | @@ -2976,17 +2976,16 @@
);%0A %7D
-,
%0A%7D;%0A
|
942f5d618a7a3c89942e204154bea1fbceb06dd4 | Fix errant ko reference | index.js | index.js |
import {
toJS
} from 'tko.utils';
import {
unwrap
} from 'tko.observable';
var sproto = String.prototype;
var filters = {};
// Convert value to uppercase
filters.uppercase = function(value) {
return sproto.toUpperCase.call(unwrap(value));
};
// Convert value to lowercase
filters.lowercase = function(val... | JavaScript | 0.000002 | @@ -1817,19 +1817,16 @@
ringify(
-ko.
toJS(roo
|
abcd72a9dfb91445eb33bfda9f66b6ef1ec0ecee | fix comment typo | main.js | main.js | //
// Copyright (c) 2012 Sebnarware. All rights reserved.
//
//
// required packages
//
var winston = require('winston');
var express = require('express');
var gzippo = require('gzippo');
var fs = require('fs');
var forecasts = require('./forecasts.js');
//
// HTTP server
//
runServer();
function runServer() {
... | JavaScript | 0.000031 | @@ -1806,17 +1806,16 @@
// serve
-r
static
|
f964bf4a22efbc4eed69f74cd05785f64d34b186 | Return promise | index.js | index.js | const finders = require( './modules/finders/' );
const api = require( './modules/api.js' );
const getAccounts = function getAccounts ( game ) {
return api.load( `/${ game }/accounts` );
};
const getGames = function getGames () {
return api.load( '/games' );
};
const findDevelopers = function findDevelopers (... | JavaScript | 0.999968 | @@ -709,16 +709,23 @@
%7D%0A%0A
+return
getAccou
|
15549b100dbd524a089a62ca1c9026a517cd0c33 | change all of these functions to nested single-argument function | main.js | main.js | const zero = (p,x)=> x;
const one = (p,x)=> p(x);
const two = (p,x)=> p(p(x));
const three = (p,x)=> p(p(p(x)));
function to_integer(n) {
return n((x)=>x+1,0)
}
console.log(to_integer(zero));
console.log(to_integer(one));
console.log(to_integer(two));
console.log(to_integer(three));
| JavaScript | 0.001852 | @@ -3,17 +3,17 @@
nst
-z
+Z
ero = (p
,x)=
@@ -8,22 +8,24 @@
ero = (p
-,
+)=%3E(
x)=%3E
-
x;%0Aconst
@@ -29,22 +29,24 @@
nst
-one
+ONE
= (p
-,
+)=%3E(
x)=%3E
-
p(x)
@@ -57,22 +57,24 @@
nst
-two
+TWO
= (p
-,
+)=%3E(
x)=%3E
-
p(p(
@@ -88,211 +88,33 @@
nst
-three
+THREE
= (p
-,x
)=%3E
- p(p(p(x))... |
a617c51c3df75dd1102f9de434c14885b49038f0 | remove excess newline | index.js | index.js | 'use strict'
function Voorhees (req, res) {
this.view = ''
this.xhr = req.xhr
this.res = res
}
Voorhees.prototype = Object.create({
setView: function (view) {
this.view = view
return this
},
respond: function (data, view) {
let res = this.res
this.xhr ? res.json(data) : res.render(view || ... | JavaScript | 0.000003 | @@ -463,9 +463,8 @@
dleware%0A
-%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.