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 |
|---|---|---|---|---|---|---|---|
682e1e788b89acdf7b25e84afbc9f73409fee1eb | exclude neural networks | Gruntfile.js | Gruntfile.js | var Path = require('path')
var prompt = require('prompt')
prompt.start()
var stream = 'stable'
var media = require('./lib/path').media(stream)
var ais = {
ai_config: 'ai/vanilla/ai_config.json',
ais: [
{
name: 'Vanilla (Default)',
path: 'ai/vanilla',
rule_postfix: '_Default',
file_post... | JavaScript | 0.999914 | @@ -2322,13 +2322,38 @@
rc:
+%5B
'**',
+ '!neural_networks/**'%5D,
%0A
|
763f0f052f5447b0d65400a6af91cf1f52f30002 | Fix Saucelabs integration. | Gruntfile.js | Gruntfile.js | module.exports = (grunt) => {
'use strict';
require('load-grunt-tasks')(grunt);
let testBuildNumber;
if (process.env.TRAVIS_JOB_ID) {
testBuildNumber = "travis-" + process.env.TRAVIS_JOB_ID;
} else {
testBuildNumber = "manual-" + (new Date()).getTime();
}
grunt.in... | JavaScript | 0 | @@ -5864,22 +5864,17 @@
p://
-localhost:9999
+127.0.0.1
/tes
@@ -6990,16 +6990,18 @@
+//
'connect
|
f17dc66ae68c6e179c75a3a90afb94612615d44d | Bump to version 0.4.1 | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function( grunt ) {
grunt.initConfig({
pkg: {
name: 'barman',
description: 'A small library to brew JavaScript objects.',
version: '0.4.0',
homepage: 'https://github.com/dfernandez79/barman',
keywords: [
'traits',
'oop',
'clas... | JavaScript | 0 | @@ -187,17 +187,17 @@
n: '0.4.
-0
+1
',%0A
|
73be4ecd1ab988f9e575dabd1d9dd714d3899651 | clean live folder on every site update | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
css: {
files: '**/*.scss',
tasks: ['sass:base']
}
},
sass: {
base: {
files: {
'src/mfb.css': 'src/mfb.scss' ... | JavaScript | 0 | @@ -407,16 +407,70 @@
/check'%5D
+,%0A live: %5B'.grunt/grunt-gh-pages/gh-pages/live'%5D
%0A %7D,%0A
|
f34eda7ebe8c66c1635a9fbd6af588eceae3cf1f | correct jQuery minification path | Gruntfile.js | Gruntfile.js | /*global module:false*/
module.exports = function (grunt) {
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// JavaScript Minifier. Add your files to be minified in the src array.
uglify: {
build: {
src: [
... | JavaScript | 0.000002 | @@ -319,17 +319,16 @@
'
-/
res/comp
|
caff5679b94be80e812ad4dcc6bea39649042f48 | add some comments | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
'use strict';
var options = {
pkg: require('./package'), // <%=pkg.name%>
// Global Grunt vars. Edit this file to change vars
config : require('./_grunt-configs/config.js')
};
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt, {pattern: ["grunt-*", "c... | JavaScript | 0 | @@ -690,16 +690,39 @@
un this
+to show the start page
before s
@@ -1603,58 +1603,56 @@
s to
-%0A%09 * run bower install, uglify, sass, autoprefixer
+ show the start page before starting development
%0A%09 *
|
13c383c4bc68c47b46fc2351b13d24a024429bc4 | Fix running individual tests with 'test' task | Gruntfile.js | Gruntfile.js | /*
* grunt-contrib-watch
* http://gruntjs.com/
*
* Copyright (c) 2014 "Cowboy" Ben Alman, contributors
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'tasks/**/*.js',
'<%= nodeunit.test... | JavaScript | 0.000001 | @@ -709,16 +709,46 @@
file) %7B%0A
+ grunt.task.run('jshint');%0A
grun
@@ -1056,62 +1056,8 @@
);%0A%0A
- grunt.registerTask('test', %5B'jshint', 'nodeunit'%5D);%0A
gr
|
cef095001fad847daad47801400fd1845aa51a56 | remove karma from Gruntfile | Gruntfile.js | Gruntfile.js | 'use strict';
var paths = {
js: ['*.js', 'test/**/*.js', '!test/coverage/**', '!bower_components/**', 'packages/**/*.js', '!packages/**/node_modules/**', '!packages/contrib/**/*.js', '!packages/contrib/**/node_modules/**'],
html: ['packages/**/public/**/views/**', 'packages/**/server/views/**'],
css: ['!bower_co... | JavaScript | 0.000001 | @@ -2322,86 +2322,8 @@
%7D%0A
- %7D,%0A karma: %7B%0A unit: %7B%0A configFile: 'karma.conf.js'%0A %7D%0A
@@ -2706,22 +2706,8 @@
est'
-, 'karma:unit'
%5D);%0A
|
3b1cd1519d11e470e536d02542c1323be85e8292 | rename HTML5 validation Grunt task since it checks the examples too | Gruntfile.js | Gruntfile.js | /* jshint node: true */
module.exports = function(grunt) {
"use strict";
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
banner: '/**\n' +
'* <%= pkg.name %>.js v<%= pkg.version %> by @fat and @mdo\n' +
'* Copyright <%=... | JavaScript | 0 | @@ -3704,20 +3704,20 @@
alidate-
-docs
+html
', %5B'jek
@@ -3806,20 +3806,20 @@
alidate-
-docs
+html
'%5D;%0A //
|
1c620f3d24788bc65386625f1e35e05d38592207 | Customize gruntfile. | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
var host = grunt.option('host') || 'localhost';
grunt.loadNpmTasks('grunt-contrib');
grunt.loadNpmTasks('grunt-karma');
grunt.initConfig({
concat: {
all: {
files: {
'dist/skate.js': [
'src/skate.js'
]
... | JavaScript | 0 | @@ -50,59 +50,8 @@
';%0A%0A
- var host = grunt.option('host') %7C%7C 'localhost';%0A%0A
gr
@@ -85,16 +85,16 @@
trib');%0A
+
grunt.
@@ -200,29 +200,28 @@
'dist/
-skate
+espy
.js': %5B%0A
@@ -233,21 +233,20 @@
'src/
-skate
+espy
.js'%0A
@@ -392,29 +392,28 @@
'dist/
-skate
+espy
.js',%... |
c3df515c48fcc3520de2e0e17de6b8ce87316349 | Include resource root files in text-format.js file | Gruntfile.js | Gruntfile.js | module.exports = function( grunt ) {
"use strict";
var coreFiles = [
"resource-bundle.js",
"locale.js",
"currency-data.js",
"currency.js",
"field-position.js",
"parse-position.js",
"format.js"
];
var numberFormatFiles = [
"number-format.... | JavaScript | 0.000001 | @@ -1160,34 +1160,32 @@
-*.js%22;%0A
-re
sourceFiles.push
|
0f1617793c703129b0bd496bf8d8a921d14f8b2d | add "serve" grunt task that keeps express server running | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
express: {
custom: {
options: {
hostname: '0.0.0.0',
port: 3000,
base: '.',
debug: true
}
}
},
qunit:... | JavaScript | 0.000256 | @@ -28,17 +28,16 @@
runt) %7B%0A
-%0A
grun
@@ -628,24 +628,91 @@
b-qunit');%0A%0A
+ grunt.registerTask('serve', %5B'express', 'express-keepalive'%5D);%0A
grunt.re
|
8851a64bce8a90b419d22a6a58ce93941b012b25 | Increase saucelabs test timeout | Gruntfile.js | Gruntfile.js | var child_process = require('child_process');
var util = require('util');
module.exports = function(grunt) {
'use strict';
var bower = grunt.file.readJSON('bower.json');
var components = [];
for (var i in bower.concat.app) {
components.push('components/' + bower.concat.app[i] + '/**/*.js');
}
var lib... | JavaScript | 0 | @@ -5198,16 +5198,44 @@
r Tests'
+,%0A maxDuration: 300
%0A
|
152573f60111e32b8319ed81e1242d84030d1f80 | include validation methods in the main script | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
uglify: {
options: {
banner:
"/*!\n" +
" <%= pkg.name %> v<%= pkg.version %>: A lightweight javascript library to model data on the ... | JavaScript | 0 | @@ -907,24 +907,78 @@
/clear.js%22,%0A
+ %22lib/validations/methods.js%22,%0A
|
7d897b345bcdfc8f0b5298b9c68f70db9d6cfad6 | Remove bower from test runs (it should only be run when we want to update vendor dependencies). Suggested by @justinvdm. | Gruntfile.js | Gruntfile.js | require('js-yaml');
var path = require('path');
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-bower-task');
grunt.loadNpmTasks('grunt-contrib-jst');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-karma');
grunt.initConfig({
paths: require('./js_paths.yml'),
bower: ... | JavaScript | 0 | @@ -1443,21 +1443,8 @@
, %5B%0A
- 'bower',%0A
|
fd5013f52e7b0aaf02b2b6d2beb8481b6f647731 | update ngdocs task to use interpolation script | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks... | JavaScript | 0.000001 | @@ -2900,24 +2900,171 @@
late.min.js'
+,%0A 'http://rawgithub.com/PascalPrecht/bower-angular-translate-interpolation-default/master/angular-translate-interpolation-default.min.js'
%0A %5D,%0A
|
6dfa48de8e88010e5296d727e948f9e04eb89457 | add task descrptions [ci skip] | Gruntfile.js | Gruntfile.js | /**
* @file Automation tasks with grunt.
* @see {@link http://gruntjs.com/ | grunt}
* @param grunt
*
*/
"use strict";
var path = require('path'),
fs = require('fs');
module.exports = function (grunt) {
/**
* Task defined as ci.
* @param {string} filename
* @returns {function}
*/
... | JavaScript | 0.000529 | @@ -2714,23 +2714,20 @@
roject.'
+,
%5B%0A
-
@@ -2743,20 +2743,16 @@
-
-
'mkdir',
@@ -2752,20 +2752,16 @@
mkdir',%0A
-
@@ -2780,20 +2780,16 @@
-
-
'catalog
@@ -2791,20 +2791,16 @@
talog',%0A
-
@@ -2810,36 +2810,32 @@
llery',%0A
-
- ... |
b827f068435901a3bd1d291f6ea415b0b2196943 | build -> build.all | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
"use strict";
var _ = grunt.util._;
var path = require('path');
var coreFiles = [
'vendor/**/*.js',
'template/_header.js',
'src/**/*.js',
'template/_footer.js'
];
var plugins = grunt.option('plugins');
// Create plugin pat... | JavaScript | 0 | @@ -5644,24 +5644,72 @@
urceMaps'%5D);
+%0A grunt.registerTask('build', %5B'build.all'%5D);
%0A%0A // Tes
|
7c83b0d550ac48d7da222a5dd1d750b97a679546 | add linux builds | Gruntfile.js | Gruntfile.js | var rimraf = require('rimraf');
var fs = require('fs-extra');
var util = require('util')
util._extend({
encoding: "utf8",
timeout: 0,
maxBuffer: false,
killSignal: "SIGTERM",
cwd: null,
env: null
});
module.exports = function(grunt) {
"use strict";
// buildPlatforms = parseBuildPlatforms(grunt.option... | JavaScript | 0.000001 | @@ -4545,20 +4545,19 @@
inux32:
-fals
+tru
e,%0A
@@ -4568,20 +4568,19 @@
inux64:
-fals
+tru
e,%0A
|
3ae2a0821c3fae3aabde181e533e103ac5858b59 | Add test and modules tasks | Gruntfile.js | Gruntfile.js | "use strict";
module.exports = function (grunt) {
grunt.initConfig({
bump: {
options: {
files: ["package.json"],
commit: true,
commitMessage: "Release %VERSION%",
commitFiles: ["package.json"],
createTag: true,
... | JavaScript | 0 | @@ -660,11 +660,8 @@
-u
--f
--ta
@@ -678,16 +678,16 @@
master%22%0A
+
@@ -947,32 +947,102 @@
%0A %7D,%0A
+ test: %7B%0A command: %22npm test%22%0A %7D%0A
%7D,%0A
@@ -1307,24 +1307,55 @@
%5B%22jshint%22,
+ %22shell:modules%22, %22shell:tes... |
3d89b822eba50d300a69b91ab584b7d248b05126 | change test option src | Gruntfile.js | Gruntfile.js | /*
* grunt-qiniu-upload
* https://github.com/wjs/grunt-qiniu-upload
*
* Copyright (c) 2015 wjs
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'tasks/*.js',
... | JavaScript | 0.000001 | @@ -799,32 +799,36 @@
src: '
+test
/upload/assets/c
@@ -898,16 +898,20 @@
src: '
+test
/upload/
|
212f5580f25c9d740e751736392bc44245f37823 | Fix License URL | Gruntfile.js | Gruntfile.js | /**
* @file Gruntfile.js
* @version 0.0.1
*
* @copyright 2014 CoNWeT Lab., Universidad Politécnica de Madrid
* @license Apache v2 (https://github.com/Wirecloud/room-manager-src/blob/master/LICENSE)
*/
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('packag... | JavaScript | 0.000001 | @@ -1,52 +1,8 @@
/*
-*%0A * @file Gruntfile.js%0A * @version 0.0.1%0A *
%0A
+
* @
@@ -94,69 +94,35 @@
http
-s
://
-github.com/Wirecloud/room-manager-src/blob/master/LICENSE
+www.apache.org/licenses/
)%0A *
|
c2b544f061ca0303f5fb91bd11507ff7786ded1b | enable to display help message | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
var fs = require('fs');
// excluded list of plugins in which we cannot obtain a default configration
var excludeList = 'grunt-contrib-nodeunit grunt-contrib-watch grunt-contrib-requirejs grunt-contrib-jasmine grunt-contrib-qunit grunt-contrib-yuidoc grunt-contrib-compass';
gr... | JavaScript | 0 | @@ -398,32 +398,65 @@
rbose', false);%0A
+ if (!grunt.option('help')) %7B%0A
grunt.log.mute
@@ -497,16 +497,20 @@
message
+%0A %7D
%0A%0A var
@@ -1177,16 +1177,99 @@
= this;%0A
+ // define this.options() as an accessor property so as not to be overwritten%0A
Ob
|
4f2a0788ef839d1ec01b5b39e636c8cbd418ea08 | add grunt release plugin | Gruntfile.js | Gruntfile.js | /*
* grunt-bower-update-main
* https://github.com/matmar10/grunt-bower-update-main
*
* Copyright (c) 2014 Matthew J. Martin
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
... | JavaScript | 0 | @@ -1173,17 +1173,156 @@
'%5D%0A %7D
-%0A
+,%0A%0A // Auto-magically rev, tag, npm publish%0A release: %7B%0A github: %7B%0A repo: 'matmar10/grunt-bower-update-main'%0A %7D%0A %7D
%0A %7D);%0A%0A
@@ -1574,16 +1574,55 @@
eunit');
+%0A grunt.loadNpmTasks('grunt-release');
%0A%0A // W
|
420ac6f408dcb12abb2d2cb0807149aba733a5c6 | add metadata | Gruntfile.js | Gruntfile.js | 'use strict';
/* eslint-env node, es6 */
const _ = require('underscore');
const fs = require('fs');
const path = require('path');
// sources variables
const sources_dir = 'src';
const content_dir = path.join(sources_dir, 'content');
const pages_dir = path.join(content_dir, 'pages');
const layouts_dir = path.join(sou... | JavaScript | 0.000031 | @@ -3224,13 +3224,277 @@
'
+site-name': 'Neal.Rame.',%0A name: 'Julien Graziano',%0A address: '45 Rue d%5C'Amiens - 59000 Lille',%0A phone: '+33 6 75 12 29 57',%0A birth: '31 mars 1981',%0A
year
-'
... |
a6cd236ea2e1ccc8b85f827f962fad3d8eb907e4 | add grunt test task | Gruntfile.js | Gruntfile.js | var path = require('path');
var stylesheetsDir = 'assets/stylesheets';
var rendrDir = 'node_modules/rendr';
var rendrModulesDir = rendrDir + '/node_modules';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
bgShell: {
runNode:... | JavaScript | 0.007353 | @@ -402,24 +402,94 @@
ue%0A %7D,%0A
+ runTests: %7B%0A cmd: 'npm test',%0A bg: false%0A %7D,%0A
runRed
@@ -3240,24 +3240,101 @@
nRedis'%5D);%0A%0A
+ // Run the test suite%0A grunt.registerTask('test', %5B'bgShell:runTests'%5D);%0A%0A
// Default
|
8e2fee01f6e5db06449fdfad3bb42a5d050259b1 | remove unneeded grunt task | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
grunt.initConfig({
/**
* Pull in the package.json file so we can read its metadata.
*/
pkg: grunt.file.readJSON('package.json'),
/**
*
* Pull in environment-specific vars
*
*/
env: grunt.file.readJSON('config.json'),... | JavaScript | 0.000059 | @@ -5673,71 +5673,8 @@
%5D);%0A
- grunt.registerTask('functional', %5B'shell:sauce-connect'%5D);%0A
|
b35ebcaaa13af2ba08dd996087a0851996d5eb6d | Update CSSLint rules | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
"use strict";
var headerComment = "/*! <%= pkg.name %> v<%= pkg.version %> (<%= grunt.template.today() %>)\n" +
" * ---------------------------------------------\n" +
" * <%= pkg.description %>\n" +
" * <%= pkg.homepage %>\n" ... | JavaScript | 0 | @@ -1096,16 +1096,57 @@
erties%22:
+ false,%0A %22box-sizing%22:
false%0A
|
99c2eb262c08127ed4707cc1c4fb43ad303a9d41 | improve grunt tasks | Gruntfile.js | Gruntfile.js | /* global module: true */
module.exports = function (grunt) {
"use strict";
var hintFiles = [
"bower.json",
"Gruntfile.js",
"package.json",
".jshintrc",
".jsbeautifyrc",
"src/**/*.js",
"test/**/*.js",
"test/.jshintrc",
"karma/**/*.js",
];
grunt.initConfig({
pkg: grunt.f... | JavaScript | 0.000812 | @@ -2167,28 +2167,8 @@
%22%5D);
- //through phantomjs
%0A g
@@ -2213,24 +2213,37 @@
coverage%22%5D);
+ // travis.sh
%0A grunt.reg
@@ -2288,24 +2288,37 @@
serstack%22%5D);
+ // travis.sh
%0A grunt.reg
@@ -2568,24 +2568,20 @@
, %5B%22
-default%22, %22watch
+test%22, %22lint
%22%5D);
@@ -2611,33 +2611,33 @@
de... |
62ac1639686c593e27ab51733b787fcf6c3a9cf3 | Use http instead of https for grunt deployment. | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
buildcontrol: {
options: {
dir: 'demo',
commit: true,
push: true,
message: 'Built %sourceName% from commit %sourceCommit% on branch %sourceBranch%.'
},
pages: {
options: {
remote: 'git@https:/... | JavaScript | 0 | @@ -310,17 +310,16 @@
git@http
-s
://git.c
|
bf549855dbd6cbe3e042f4207cd6c2b6d0b5f8b9 | update e2e tests to also compile css before | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
var karmaSource = ['public/js/**/*.js'];
var sourceFiles = karmaSource;
var configFiles = ['*.js', 'config/**/*.js'];
var karmaTests = ['test/client/**/*.js'];
var e2eTests = ['test/e2e/**/*.js'];
var testFiles = karmaTests.concat(e2eTests);
var confi... | JavaScript | 0 | @@ -3765,16 +3765,29 @@
update',
+ 'sass:dist',
'expres
|
5cffacf9e8eba9b583c52082e0edb213b5aee0d6 | Active browserSync for folder javascript | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
clean: {
temp: [
'assets/js/all.js', 'assets/js/libs.js', 'assets/js/main.js', 'assets/css/main.css', 'assets/css/main.css.map' ],
all: ['assets/']
},
sass: {
dev: {
files: {
'assets/css/main.css': 'source/sass/main.scss'
}
}
... | JavaScript | 0 | @@ -66,153 +66,62 @@
%0A%09%09%09
-temp: %5B%0A%09%09%09%09%09'assets/js/all.js', 'assets/js/libs.js', 'assets/js/main.js', 'assets/css/main.css', 'assets/css/main.css.map' %5D,%0A%09%09%09all: %5B'assets/'
+src: %5B 'assets/js/main.js', 'assets/css/main.css.map'
%5D%0A%09%09
@@ -326,24 +326,55 @@
sets/*.html'
+,%0... |
299441ed5dd501874e80630951353efc8e4e733f | Move the autogenerated StyledElements.js file from src to build | Gruntfile.js | Gruntfile.js | /*
* @copyright 2014 CoNWeT Lab., Universidad Politécnica de Madrid
* @license Apache v2 (http://www.apache.org/licenses/)
*/
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
isDev: grunt.option('target') === 'release' ? '' : '-dev',
... | JavaScript | 0 | @@ -995,24 +995,21 @@
dest: %22
-src/test
+build
/helpers
@@ -1485,24 +1485,46 @@
elpers/*.js'
+, 'build/helpers/*.js'
%5D,%0A
|
3d71bba24b80e2283988089ac9187bd84d21473d | Stop compiling for amd | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
var version = 0.1;
var babel = require('rollup-plugin-babel');
var exposedFiles = ['engine/Story.js'];
// Project configuration.
grunt.initConfig( {
pkg: grunt.file.readJSON('package.json'),
watch: {
files: ['engine/*.js'],
t... | JavaScript | 0 | @@ -593,16 +593,18 @@
%7D,%0A
+//
%09%09%09amd:
@@ -601,24 +601,26 @@
//%09%09%09amd: %7B%0A
+//
@@ -648,24 +648,26 @@
t: 'amd' %7D,%0A
+//
@@ -691,24 +691,26 @@
nk.amd.js',%0A
+//
@@ -723,32 +723,34 @@
c: exposedFiles%0A
+//
%7D,%0A
|
91d45eb02f1aba34445a565a8977a7eb034bac30 | Add copy config for images | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Configurations
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
build: {
src: ['dist'],
},
},
compass: {
dist: {
options: {
sassDir: 'src/sass',
cssDir: 'dist/css',
specify: 'src/sass/binary.scss',
noLineCo... | JavaScript | 0 | @@ -4167,16 +4167,211 @@
js/',%7D,%0A
+%09%09 %7Bexpand: true, cwd: 'src/images/', src: %5B'**'%5D, dest: 'dist/images/',%7D,%0A%09%09 %7Bexpand: true, cwd: 'src/css/external/jquery-ui-custom-theme/images/', src: %5B'**'%5D, dest: 'dist/css/images',%7D,%0A
%09%09%5D,%0A%09
|
f67136ecdb43ca5707c753da2b53e9246f31fca8 | switch to eslint | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
all: ['Gruntfile.js', 'src/*.js']
},
concat: {
dist: {
src: ['src/JsonML.js', 'src/WaveDrom.js', 'src/Save.js'],
dest: 'wave... | JavaScript | 0.00006 | @@ -28,16 +28,18 @@
runt) %7B%0A
+
'use s
@@ -46,16 +46,18 @@
trict';%0A
+
// Pro
@@ -76,16 +76,18 @@
ration.%0A
+
grunt.
@@ -103,16 +103,20 @@
g(%7B%0A
+
+
pkg: gru
@@ -157,18 +157,28 @@
+
-jsh
+ esl
int: %7B%0A
+
@@ -206,17 +206,39 @@
', 'src/
-*
+WaveDrom.js', 'src/... |
c059c7e596e299a75c99bf88be1a2b6d1bce62a0 | fix jshint | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
/**
* 1.清理
* 2.用bower安装依赖
* 3.生成stylus样式
*/
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
//clean the dist before copy & compile files
clean: {
dist: ["dist/"],
examples: ["examples/butterfly"]
},
//just run 'grunt bowe... | JavaScript | 0.000002 | @@ -2239,19 +2239,16 @@
ify');%0A
- //
grunt.l
|
09eb46fad375540aaf8163d2386bb322be6e15b3 | Fix symlink | Gruntfile.js | Gruntfile.js | /*!
* Bootstrap-checkbox's Gruntfile
* http://vsn4ik.github.io/bootstrap-checkbox
* Copyright 2014-2015 Vasily A. (https://github.com/vsn4ik)
* Licensed under MIT (https://github.com/vsn4ik/bootstrap-checkbox/blob/master/LICENSE)
*/
'use strict';
module.exports = function(grunt) {
// Force use of Unix newlines... | JavaScript | 0.000084 | @@ -921,27 +921,21 @@
,%0A
-node_module
+asset
s: %7B%0A
@@ -965,32 +965,124 @@
expand: true,%0A
+ src: 'dist/**',%0A dest: '_gh_pages/'%0A %7D, %7B%0A expand: true,%0A
cwd: '
@@ -3530,20 +3530,22 @@
'
-copy
+jshint
',%0A '
jshi
@@ -3532,38 +3532,41 @@... |
7c48c1a36268c1acdcbc802b66f2370d5344daa4 | remove dist_complete_min from gruntfile since jquery is gone | Gruntfile.js | Gruntfile.js | 'use strict';
var browsers = [
'last 2 versions',
'ie 9',
'ie 10',
'Firefox ESR',
'Opera 12.1'
];
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner: '\n/*!\n * <%= pkg.title || pkg.name %> - v<%= pkg.vers... | JavaScript | 0 | @@ -1212,262 +1212,8 @@
%7D,%0A
- dist_complete_min: %7B%0A options: %7B%0A transform: %5B %5B'uglifyify', %7B global: true %7D %5D %5D%0A %7D,%0A src: 'src/js/shariff.js',%0A dest: 'build/shariff.complete.js'%0A %7D,... |
c2bb75d05bceb000e67f5882e636e5308b6672c5 | Update Gruntfile | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Modules
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('bootcamp');
// Grunt Tasks
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
... | JavaScript | 0.000001 | @@ -486,20 +486,535 @@
-'src
+// Decoder%0A 'src/decode/helpers/_throw.scss',%0A 'src/decode/helpers/_comsume.scss',%0A 'src/decode/helpers/_trim.scss',%0A 'src/decode/helpers/_value.scss',%0A 'src/decode/types/_bool.scss',%0A 'src/decode/types/_null.scss'... |
325cf869f3d935801bb45bf53ceff96aadaf2124 | Update LoadCSSJS.js | LoadCSSJS.js | LoadCSSJS.js | /*! Simple CSS JS loader asynchronously for all browsers by cara-tm.com, MIT License */
var LoadCSSJS = function ( e, t, o ) {
"use strict";
var f="", s;
if( f.indexOf("["+e+"]") == -1 ) {
f += "["+e+"]";
switch (t) {
case "css" :
s = document.createElement( "link" );
s.rel = ( o.rel || "stylesh... | JavaScript | 0 | @@ -757,43 +757,8 @@
0%5D;%0A
-%09%09window.setTimeout(function() %7B%0A%09%09
%09%09t
@@ -769,18 +769,16 @@
css%22 ? %0A
-%09%09
%09%09%09docum
@@ -831,19 +831,16 @@
d(s) : %0A
-%09%09%09
%09%09a.pare
@@ -869,46 +869,8 @@
a);
-%0A%09%09%09%7D, 35);%0A%09%09%09window.clearTimeout(a);
%0A%0A%09%7D
|
7a280971a16beb76f31f8bac50c592a2d11b367e | Update LoadCSSJS.js | LoadCSSJS.js | LoadCSSJS.js | function LoadCSSJS(e, t, m){
"use strict";
if (t == "css") {
var f=document.createElement("link");
f.setAttribute("rel", "stylesheet");
f.setAttribute("href", e);
(m ? "" : m="all");
f.setAttribute("media", m);
f.setAttribute("type", "text/css");
} else if (t == "js") {
var f = docume... | JavaScript | 0 | @@ -1,8 +1,23 @@
+var els = %22%22;%0A%0A
function
@@ -35,16 +35,17 @@
e, t, m)
+
%7B%0A%0A%09%22use
@@ -53,16 +53,171 @@
strict%22;
+%0A%09%0A%09if (els.indexOf(%22%5B%22+e+%22%5D%22) == -1) %7B%0A%09%09Moader(e, t, m);%0A%09%09els += %22%5B%22+e+%22%5D%22;%0A%09%7D%0A%09else%0A%09%09alert(%22File %22+e+%22 alrea... |
ec85149a218413e067410294fbb7a4ce7e2548b0 | Fix typo | src/buttons/template/styles/button.js | src/buttons/template/styles/button.js | /* @flow */
import { ENV } from '@paypal/sdk-constants/src';
import { LOGO_CLASS } from '@paypal/sdk-logos/src';
import { BUTTON_COLOR, CLASS } from '../../../constants';
export const buttonStyle = `
.${ CLASS.CONTAINER } {
display: block;
white-space: nowrap;
margin: 0;
backgrou... | JavaScript | 0.999999 | @@ -463,17 +463,16 @@
ht: 500;
-R
%0A
|
ea0184778b426e920111b83d312e0719f4017e56 | Remove unneeded class | assets/javascripts/scripts.js | assets/javascripts/scripts.js | (function () {
$(function () {
$('a[data-table-name]').on('click', function (e) {
e.preventDefault();
$('a[data-table-name]').removeClass('active');
$(e.target).addClass('active');
var tableName = $(e.target).data('tableName');
$.get('/tables/' + tableName + '/rows', function (dat... | JavaScript | 0.000007 | @@ -824,24 +824,8 @@
'%3Ctd
- class=%22no-wrap%22
%3E' +
|
ad106e72fba6f864a90882f6dae58aeee1b91efe | make menu breakdown earlier | assets/tfcs/tfcs_interface.js | assets/tfcs/tfcs_interface.js | // change layout based on amount of Y scroll
var startProductBarPos=-1;
function moveThings() {
var vid = document.getElementById('video-frame');
if(window.innerWidth > 960) {
var nav = document.getElementById('video-navigation');
var exp = document.getElementById('phoneme-explanation');
... | JavaScript | 0 | @@ -737,16 +737,20 @@
ctBarPos
+-200
)%7B%0A
|
ba9e95d2bdea2d9bbd7262c1e0429d45f76d6d3f | fix TableCell component bug | src/components/TableBody/TableCell.js | src/components/TableBody/TableCell.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import TableContext from './TableContext';
export default class TableCell extends Component {
static propTypes = {
children: PropTypes.node,
renderCell: PropTypes.func,
store: PropTypes.object,
};
_handleClick = () => {
const { r... | JavaScript | 0 | @@ -312,22 +312,21 @@
const %7B
-record
+store
%7D = thi
@@ -336,18 +336,44 @@
rops
-.store;
+;%0A%09%09if (store && store.record) %7B
%0A%09%09
+%09
this
@@ -404,16 +404,22 @@
ctedKey(
+store.
record.k
@@ -423,16 +423,20 @@
d.key);%0A
+%09%09%7D%0A
%09%7D;%0A%0A%09_r
|
e2f471e8635a5a0c800bd2bc4861c93466f676cb | Remove webpack footer | src/components/Widgets/ListControl.js | src/components/Widgets/ListControl.js | import React, { Component, PropTypes } from 'react';
import { List, Map, fromJS } from 'immutable';
import { sortable } from 'react-sortable';
import FontIcon from 'react-toolbox/lib/font_icon';
import ObjectControl from './ObjectControl';
import styles from './ListControl.css';
function ListItem(props) {
return <di... | JavaScript | 0 | @@ -6204,66 +6204,4 @@
%7D%0A%7D%0A
-%0A%0A// WEBPACK FOOTER //%0A// ./components/Widgets/ListControl.js%0A
|
ae34a6900e5121553ed643b219b08afe24f39a13 | Define proptypes for duration input | src/components/input/DurationInput.js | src/components/input/DurationInput.js | import React, { useRef } from 'react';
import PropTypes from 'prop-types';
import { Box, NumericInput } from '../../';
import theme from './theme.css';
import cx from "classnames";
const transformToPaddedNumber = (number) => (number < 10 ? `0${number}` : number.toString());
const MINUTES_STEP = 15;
const DurationInp... | JavaScript | 0.000006 | @@ -4481,42 +4481,8 @@
%7D;%0A%0A
-DurationInput.defaultProps = %7B%7D;%0A%0A
expo
|
2d9ab4d9759dd83db0650ef6357f83351ec4dbb2 | add Figma url | src/components/radio/radio.stories.js | src/components/radio/radio.stories.js | import React from 'react';
import { addStoryInGroup, LOW_LEVEL_BLOCKS } from '../../../.storybook/utils';
import { boolean, select } from '@storybook/addon-knobs/react';
import { Store, State } from '@sambego/storybook-state';
import { RadioGroup, RadioButton } from '../../index';
const sizes = ['small', 'medium', 'la... | JavaScript | 0.000002 | @@ -593,24 +593,170 @@
rameters: %7B%0A
+ design: %7B%0A type: 'figma',%0A url: 'https://www.figma.com/file/LHH25GN90ljQaBEUNMsdJn/Desktop-components?node-id=6454%253A22776',%0A %7D,%0A
info: %7B%0A
|
d82d482fe957721c7211c5a8193d7936b6c8cf05 | Update sigma.js | inst/htmlwidgets/sigma.js | inst/htmlwidgets/sigma.js | HTMLWidgets.widget({
name: "sigma",
type: "output",
initialize: function(el, width, height) {
// create our sigma object and bind it to the element
// force to use canvas - webgl not rendering opacity
// properly consistently
var sig = new sigma({
renderers: [{
container: ... | JavaScript | 0.000001 | @@ -248,24 +248,26 @@
stently%0A
+//
var sig = ne
@@ -280,16 +280,18 @@
a(%7B%0A
+//
render
@@ -298,24 +298,26 @@
ers: %5B%7B%0A
+//
containe
@@ -351,24 +351,26 @@
el.id),%0A
+//
type: 'c
@@ -380,16 +380,18 @@
as'%0A
+//
%7D%5D%0A
@@ -391,17 +391,56 @@
%7D%5D%0A
-%7D
+... |
b86b1c42f2d7cd7683de5e264876c93bb923ae7e | Add additional logging and fixes for installation | src/install.js | src/install.js | import {findParentFolder, copyHookFiles} from './fs-utils.js';
let currentPath = process.env.pwd;
try{
copyHookFiles(findParentFolder(currentPath, '.git'));
} catch(error) {
console.log(error.message);
}
| JavaScript | 0 | @@ -97,29 +97,93 @@
d;%0A%0A
-try%7B%0A copyHookFiles(
+let gitPath;%0A%0Aconsole.log('Installing JIRA pre-commit hook....');%0A%0Atry %7B%0A gitPath =
find
@@ -219,13 +219,12 @@
it')
-)
;%0A%7D
-
+%0A
catc
@@ -248,26 +248,241 @@
ole.
-log(error.message);%0A%7D
+error('Your project needs a git repository to i... |
620c91076581f87f67471157446bfb3c43376f20 | add another test assertion | packages/core/botpress/tests/database_helpers.js | packages/core/botpress/tests/database_helpers.js | /* eslint-env babel-eslint, node, mocha */
const { itBoth, run } = require('./database_base')
const helpers = require('../src/database/helpers')
const expect = require('chai').expect
const moment = require('moment')
const _ = require('lodash')
const Promise = require('bluebird')
const { randomTableName } = require('./... | JavaScript | 0.000016 | @@ -1779,16 +1779,75 @@
String)%0A
+ expect(typeof inserted.tId).to.equal('number')%0A
|
2130fe91610bc4613efd1ab53a8f5e6d2434c4dc | Remove errornous svn:executable property from source code file. | javascript/i18n/phonenumbers/regioncodefortesting.js | javascript/i18n/phonenumbers/regioncodefortesting.js | /**
* @license
* Copyright (C) 2011 The Libphonenumber Authors
*
* 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 ... | JavaScript | 0 | |
1108e6e71967b702f3afa85b4523b245ff9f90dd | Disable lives saved stat for now | src/Parser/Paladin/Holy/CombatLogParser.js | src/Parser/Paladin/Holy/CombatLogParser.js | import CoreCombatLogParser from 'Parser/Core/CombatLogParser';
import LowHealthHealing from 'Parser/Core/Modules/Features/LowHealthHealing';
import HealingDone from 'Parser/Core/Modules/HealingDone';
import LightOfDawnNormalizer from './Normalizers/LightOfDawn';
import DivinePurposeNormalizer from './Normalizers/Divin... | JavaScript | 0 | @@ -1705,24 +1705,27 @@
Reduction';%0A
+//
import Devot
@@ -1882,24 +1882,27 @@
Reduction';%0A
+//
import AuraO
@@ -4165,16 +4165,31 @@
tionAura
+damageReduction
: Devoti
@@ -4210,24 +4210,27 @@
duction,%0A
+ //
devotionAur
@@ -4333,24 +4333,27 @@
duction,%0A
+ //
auraOfSacri
|
9300b3d688b8a3a647dd3a95444ec043cfa3c89f | fix tests | packages/heroku-orgs/test/commands/orgs/index.js | packages/heroku-orgs/test/commands/orgs/index.js | 'use strict'
/* globals describe it beforeEach afterEach cli nock expect */
let cmd = require('../../../commands/orgs')
let stubGet = require('../../stub/get')
describe('heroku orgs', () => {
beforeEach(() => cli.mockConsole())
afterEach(() => nock.cleanAll())
it('shows both Enterprise orgs and teams including... | JavaScript | 0.000001 | @@ -277,1214 +277,395 @@
ows
-both Enterprise orgs and teams including a warning', () =%3E %7B%0A let apiGetOrgs = stubGet.orgs()%0A%0A return cmd.run(%7Bflags: %7B%7D%7D)%0A .then(() =%3E expect(%0A %60org a collaborator%0Aorg b admin%0Ateam a collaborator%0Ateam b ... |
ca2463ddb1b61ab68d70d3854d70c3fd36ea999a | Add departed field | both/collections/residents.js | both/collections/residents.js | Residents = new Mongo.Collection('residents');
var ResidentsSchema = new SimpleSchema({
firstName: {
type: String,
label: 'First Name'
},
lastInitial: {
type: String,
label: 'Last Initial',
max: 1,
},
homeId: {
type: String,
label: 'Home',
autoform: {
options: function()... | JavaScript | 0 | @@ -1603,16 +1603,73 @@
'%0A %7D%0A
+ %7D,%0A departed: %7B%0A type: Boolean,%0A optional: true%0A
%7D%0A%7D);%0A
|
36c7fe649ccd322e00cef6e737e831f49e2c9e69 | Fix semantic-release config | release.config.js | release.config.js | module.exports = {
branch: 'master',
plugins: [
['@semantic-release/commit-analyzer', {
preset: 'eslint',
}],
'@semantic-release/release-notes-generator',
'@semantic-release/npm',
'@semantic-release/github',
],
} | JavaScript | 0.000003 | @@ -49,17 +49,16 @@
: %5B%0A
-%5B
'@semant
@@ -89,42 +89,8 @@
er',
- %7B%0A preset: 'eslint',%0A %7D%5D,
%0A
|
5e8ba5ef0402834d9e4da53476027cc7c0a395b8 | Update auth0-variables.js | 00-Starter-Seed/basic-sample/www/js/auth0-variables.js | 00-Starter-Seed/basic-sample/www/js/auth0-variables.js | var AUTH0_CLIENT_ID='BUIJSW9x60sIHBw8Kd9EmCbj8eDIFxDC';
var AUTH0_CALLBACK_URL=location.href;
var AUTH0_DOMAIN='samples.auth0.com';
| JavaScript | 0.000001 | @@ -18,40 +18,19 @@
ID='
-BUIJSW9x60sIHBw8Kd9EmCbj8eDIFxDC
+%7BCLIENT_ID%7D
';%0Av
@@ -88,24 +88,15 @@
IN='
-samples.auth0.com
+%7BDOMAIN%7D
';%0A
|
e773d5d0d02e15df3ed5ee78fe96400a77f34733 | Fix route count | packages/strapi-generate-api/json/routes.json.js | packages/strapi-generate-api/json/routes.json.js | 'use strict';
/**
* Module dependencies
*/
// Node.js core.
const fs = require('fs');
// Public node modules.
const _ = require('lodash');
/**
* Expose main routes of the generated API
*/
module.exports = scope => {
function generateRoutes() {
const tokenID = scope.args.tpl && scope.args.tpl !== 'mongoos... | JavaScript | 0.000012 | @@ -597,36 +597,30 @@
anizeId + '/
-:' + tokenID
+count'
,%0A ha
@@ -649,15 +649,13 @@
+ '.
-findOne
+count
',%0A
@@ -771,38 +771,44 @@
.humanizeId + '/
-count'
+:' + tokenID
,%0A handle
@@ -821,37 +821,39 @@
pe.globalID + '.
-count
+findOne
',%0A confi
|
8c9b2d9adc3728412a1c1069d647615fe9fc60a1 | Fix event handlers | src/js/bind.js | src/js/bind.js | extend(prototype, {
bind: function () {
var _this = this;
var options = _this.options;
var cropper = _this.cropper;
addListener(cropper, EVENT_MOUSE_DOWN, proxy(_this.cropStart, _this));
if (options.zoomable && options.zoomOnWheel) {
addListener(cropper, EVENT_WHEEL, proxy(... | JavaScript | 0.000062 | @@ -178,16 +178,36 @@
SE_DOWN,
+ (_this._cropStart =
proxy(_
@@ -229,16 +229,17 @@
_this))
+)
;%0A%0A
@@ -327,16 +327,32 @@
T_WHEEL,
+ (_this._wheel =
proxy(_
@@ -362,32 +362,33 @@
s.wheel, _this))
+)
;%0A %7D%0A%0A
@@ -472,16 +472,35 @@
BLCLICK,
+ (_this._dblclick =
proxy(_
@@ -521,16 +521... |
dae13a55c0b729cdcddc72e731f4997eb7d8c0ae | Remove unneeded async stuff from help specs | packages/truffle/test/scenarios/commands/help.js | packages/truffle/test/scenarios/commands/help.js | const assert = require("assert");
const CommandRunner = require("../commandrunner");
const MemoryLogger = require("../memorylogger");
let config = {};
describe("truffle help", () => {
const logger = new MemoryLogger();
beforeEach("set up config for logger", () => {
config.logger = logger;
});
describe("wh... | JavaScript | 0 | @@ -385,32 +385,28 @@
%22, function(
-done
) %7B%0A
+
Comman
@@ -560,32 +560,16 @@
ns%5D%22));%0A
- done();%0A
%7D)
@@ -700,36 +700,32 @@
mand%22, function(
-done
) %7B%0A Comman
@@ -894,32 +894,16 @@
nt'%22));%0A
- done();%0A
%7D)
@@ -979,20 +979,16 @@
unction(
-done
) %... |
42130308557fc1ff31151141a47568566f2e83d2 | fix areaseries test | packages/xy-chart/test/series/AreaSeries.test.js | packages/xy-chart/test/series/AreaSeries.test.js | import React from 'react';
import { shallow, mount } from 'enzyme';
import Area from '@vx/shape/build/shapes/Area';
import LinePath from '@vx/shape/build/shapes/LinePath';
import { FocusBlurHandler } from '@data-ui/shared';
import { XYChart, AreaSeries } from '../../src/';
describe('<AreaSeries />', () => {
const mo... | JavaScript | 0 | @@ -1415,35 +1415,8 @@
Path
- if strokeWidth is non-zero
', (
@@ -1781,289 +1781,8 @@
(1);
-%0A%0A const wrapperNoLine = shallow(%0A %3CXYChart %7B...mockProps%7D %3E%0A %3CAreaSeries data=%7Bdata%7D strokeWidth=%7B0%7D /%3E%0A %3C/XYChart%3E,%0A );%0A%0A const areaSeriesNoLinePath = wrappe... |
8d5890dc528b96758bbe9e3252c17f47db3bd448 | Remove webpack thread loader from CI build | build/loaders.js | build/loaders.js | // NOTE: Loader `include` paths are relative to this module
import path from 'path'
import CssExtractPlugin from 'mini-css-extract-plugin'
import { externalTsModules } from './external'
export const threadLoader = {
loader: 'thread-loader',
options: {
poolTimeout: Infinity, // Threads won't timeout/nee... | JavaScript | 0 | @@ -3056,16 +3056,25 @@
duction'
+ && !isCI
) %7B%0A
@@ -3116,16 +3116,56 @@
in.use%5D%0A
+ %7D%0A%0A if (mode !== 'production') %7B%0A
|
c162ceafbfba07ccc5bd1210980c4feb5dc0d2d8 | remove lambda expression from lib | src/js/linq.js | src/js/linq.js | function Comparer(a, b) {
if (a === b) return 0;
if (a == null) return -1;
if (b == null) return 1;
if (typeof(a) == "string") return a.toString().localeCompare(b.toString());
return a.valueOf() - b.valueOf();
};
Object.defineProperty(Object.prototype, "equals", {
value: function (b) {
"use strict";
return ... | JavaScript | 0.99838 | @@ -3,16 +3,23 @@
unction
+default
Comparer
@@ -311,16 +311,32 @@
trict%22;%0A
+%09%09var a = this;%0A
%09%09return
@@ -340,21 +340,19 @@
urn
-this
+a =
== b %7C%7C
this
@@ -347,20 +347,17 @@
== b %7C%7C
-this
+a
=== b %7C
@@ -373,20 +373,17 @@
ringify(
-this
+a
) === JS
@@ -1599,32 +1599,39 @@
r = co... |
70b0faa04f8f9e268ce04d10d1e8e66509098270 | Use the pushable repo. | build/release.js | build/release.js | #!/usr/bin/env node
/*
* jQuery Migrate Plugin Release Management
*/
// Debugging variables
var debug = false,
skipRemote = false;
var fs = require("fs"),
child = require("child_process"),
path = require("path");
var releaseVersion,
nextVersion,
finalFiles,
isBeta,
pkg,
scpURL = "jqadmin@code.origin.jquer... | JavaScript | 0 | @@ -411,19 +411,17 @@
L = %22git
-://
+@
github.c
@@ -422,17 +422,17 @@
thub.com
-/
+:
jquery/j
|
a2ae59cf5a88ce3483a10bc255cc77b48a8ce60f | Use defined "imageData" | src/js/load.js | src/js/load.js | extend(prototype, {
init: function () {
var element = this.element;
var tagName = element.tagName.toLowerCase();
var url;
if (getData(element, NAMESPACE)) {
return;
}
setData(element, NAMESPACE, this);
if (tagName === 'img') {
this.isImg = true;
... | JavaScript | 0.000001 | @@ -1340,18 +1340,30 @@
eData =
-%7B%7D
+this.imageData
;%0A
@@ -2605,42 +2605,8 @@
%7D%0A%0A
- this.imageData = imageData;%0A
|
0de5301c23f6dcd9a069bf74c6dbce2a44ade68b | Fix eslint errors/warnings emitted to browser | awx/ui/build/webpack.watch.js | awx/ui/build/webpack.watch.js | const path = require('path');
const _ = require('lodash');
const webpack = require('webpack');
const merge = require('webpack-merge');
const nodeObjectHash = require('node-object-hash');
const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
const HtmlWebpackHarddiskPlugin = require('html-webpack-hardd... | JavaScript | 0.000001 | @@ -950,213 +950,8 @@
der'
-,%0A options: %7B%0A failOnWarning: false,%0A failOnError: false,%0A emitError: false,%0A emitWarning: false%0A %7D
%0A
@@ -1810,32 +1810,64 @@
https: true,%0A
+ clientLo... |
2f0c123f9b4012a49f8f67bf7485ec55398fdedf | fix undefined description | src/writer_modules/archivist/select_entity_mixin.js | src/writer_modules/archivist/select_entity_mixin.js | var $$ = React.createElement;
var TYPE_LABELS = {
"prison": "Prison",
"toponym": "Toponym",
"person": "Person",
"definition": "Definition"
};
// Example of a sub view
// ----------------
var EntityView = React.createClass({
displayName: "Entity",
handleClick: function(e) {
e.preventDefault();
th... | JavaScript | 0.999999 | @@ -988,24 +988,30 @@
.description
+ %7C%7C ''
;%0A // T
|
f3c389fec35cbb59c752eb5e7068c4ac3cd732d1 | add two util functions | control/DomainBlock.js | control/DomainBlock.js | /* Copyright 2016 Firewalla LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
*... | JavaScript | 0.029906 | @@ -4454,16 +4454,391 @@
%0A %7D
+%0A%0A getAllIPMappings() %7B%0A return async(() =%3E %7B%0A let list = await (rclient.keysAsync(%22ipmapping:site:*%22))%0A let list2 = await (rclient.keysAsync(%22ipmapping:domain:*%22))%0A return list.concat(list2)%0A %7D)()%0A %7D%0A%0A removeAllIPMapp... |
2384e8f3f7384737b9b2b959303e4c66d1f7168d | verify flowInstanceDetails was set | nodes/xible/xible.flow.start/index.js | nodes/xible/xible.flow.start/index.js | 'use strict';
const getFlowInstance = require('../utils.js').getFlowInstance;
module.exports = (NODE) => {
const triggerIn = NODE.getInputByName('trigger');
const flowsIn = NODE.getInputByName('flows');
const doneOut = NODE.getOutputByName('done');
const instanceOut = NODE.getOutputByName('instance');
trig... | JavaScript | 0 | @@ -1825,16 +1825,93 @@
(NODE);%0A
+ if (!thisState %7C%7C !thisState.flowInstanceDetails) %7B%0A return;%0A %7D%0A%0A
cons
|
12e5bef4b6957a80770eae376fe77d483afb730b | add remaining reducers | material-ui/js/reducers.js | material-ui/js/reducers.js | //import inbox from './reducers/inbox'
//import mixer from './reducers/mixer'
import app from './reducers/app'
import users from './reducers/users'
import { combineReducers }
from 'redux'
export default combineReducers({
// ui,
// mixer,
// inbox,
app,
users,
})
| JavaScript | 0.000001 | @@ -1,18 +1,16 @@
-//
import
-inbox
+app
fro
@@ -27,29 +27,25 @@
ers/
-inbox'%0A//
+app'%0A
import
-mixer
+inbox
fro
@@ -58,21 +58,21 @@
educers/
-mixer
+inbox
'%0Aimport
@@ -68,29 +68,29 @@
box'%0Aimport
-app
+mixer
from './red
@@ -87,35 +87,37 @@
rom './reducers/
-app
+mixer
'%0Aimport users f
@@... |
1930baa9caf14f8e0f0958f227b39be8cb60edf1 | Remove broken Seed parse_json string interpretation. | src/js/seed.js | src/js/seed.js | //
// Seed support
//
var sjcl = require('../../build/sjcl');
var utils = require('./utils');
var jsbn = require('./jsbn');
var extend = require('extend');
var BigInteger = jsbn.BigInteger;
var Base = require('./base').Base,
UInt = require('./uint').UInt,
UInt256 = require('./uint256').UInt256,
... | JavaScript | 0 | @@ -1102,123 +1102,8 @@
%7D%0A
- %7D else if (Array.isArray(j) && 16 === j.length) %7B%0A this._value = new BigInteger(utils.stringToArray(j), 128);%0A
%7D
|
2de4cd45d13f784d3582ab2d41b83e96ba0077ec | Fix getting data on file system; | controllers/library.js | controllers/library.js | 'use strict';
var _ = require('underscore');
var async = require('async');
var debug = require('debug')('packagesize:library');
var getSize = require('../helpers/size.js').getSize;
var packages = require(__dirname + '\\..\\data\\packages.json').packages;
function createUrl(name, version, file) {
return 'http://cdn... | JavaScript | 0 | @@ -121,16 +121,44 @@
brary');
+%0Avar path = require('path');
%0A%0Avar ge
@@ -232,33 +232,44 @@
ire(
-__dirname + '%5C%5C..%5C%5Cdata%5C%5C
+path.join(__dirname, '..', 'data', '
pack
@@ -279,16 +279,17 @@
s.json')
+)
.package
|
a320ff91e0b354e0a9af76a095e97fd5fcd8cd77 | Fix 'Cannot read property 'apply' of undefined' introduced in daaae82 | src/lib/api.js | src/lib/api.js | var utils = require('./utils')
function api (opbeat, queuedCommands) {
this.q = []
this.opbeat = opbeat
this.execute = utils.functionBind(this.execute, this)
this.push = utils.functionBind(this.push, this)
if (queuedCommands) {
for (var i = 0; i < queuedCommands.length; i++) {
var cmd = queuedCom... | JavaScript | 0.000002 | @@ -337,17 +337,29 @@
his.push
-(
+.apply(this,
cmd)%0A
|
af526c93950c7b9971b04e400cce90bff4740ac1 | Remove the validation on HumanNameTrait because it's not great validation and it gets in the way of any validation that a implementor of this interface might want. | src/foam/nanos/auth/HumanNameTrait.js | src/foam/nanos/auth/HumanNameTrait.js | /**
* @license
* Copyright 2018 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.INTERFACE({
package: 'foam.nanos.auth',
name: 'HumanNameTrait',
properties: [
{
class: 'String',
name: 'firstName',
tableWidth: 160,
documentation: 'First n... | JavaScript | 0 | @@ -330,1028 +330,239 @@
er.'
-,%0A validateObj: function(firstName) %7B%0A if ( firstName.length %3E 70 ) %7B%0A return 'First name cannot exceed 70 characters.';%0A %7D%0A%0A if ( /%5Cd/.test(firstName) ) %7B%0A return 'First name cannot contain numbers.';%0A %7D%0A... |
6b6f7c7f46a54e5b57f0bce51c678235d0e86722 | Allow .png file extension | routes/avatars.js | routes/avatars.js | var helpers = require('../modules/helpers');
var router = require('express').Router();
var config = require('../modules/config');
var skins = require('../modules/skins');
/* GET avatar request. */
router.get('/:uuid', function(req, res) {
var uuid = req.params.uuid;
var size = req.query.size || config.default_size... | JavaScript | 0.000004 | @@ -209,16 +209,22 @@
('/:uuid
+.:ext?
', funct
|
95fb511ded789592231392493320a15451aa70bb | Delete route for domains created | routes/domains.js | routes/domains.js | // Deps
var validator = require('validator');
var async = require('async');
// Config
var config = require('../config');
// Utils
var utils = require('../lib/utils');
var pdns = require('pdns')(config.pdns);
var api_static = require('../lib/api_static');
// Read (all)
module.exports.all = function (req, res, next) {... | JavaScript | 0 | @@ -3713,28 +3713,361 @@
-res.send(%22delete%22);%0A
+// Domain validation%0A var domain = (validator.matches(req.params.domainname, api_static.regexps.fqdn)) ? req.params.domainname : (function () %7B throw new Error(%22Domain is required and must be FQDN%22); %7D());%0A pdns.domains.remove(%7Bname: domain... |
1684e3756287dad84c8b5be4841bb0f1b603b56e | fix missing region | routes/mmstats.js | routes/mmstats.js | var express = require('express');
var mmstats = express.Router();
var redis = require('../redis').client;
var constants = require('../constants');
var async = require('async');
var pageCalls = createCalls(-1);
var apiCalls = createCalls(0);
mmstats.route('/mmstats').get(function(req, res, next){
async.paralle... | JavaScript | 0.999983 | @@ -705,20 +705,16 @@
s = %7B%7D;%0A
-
%0A for
@@ -734,10 +734,45 @@
i %3C
-16
+Object.keys(constants.regions).length
; i+
|
b4f805e63531a156e94e17f133bf19879ef78e55 | Add date filtering | routes/reports.js | routes/reports.js | const Boom = require("boom");
const json2csv = require("json2csv");
const bookshelf = require("../db/bookshelf_init");
module.exports = [
{
method: "GET",
path: "/reports/{hashtags}",
handler: (req, res) => {
if (!req.params.hashtags) {
return res(Boom.badRequest("Valid, comma-separated ha... | JavaScript | 0.000011 | @@ -448,16 +448,280 @@
shelf;%0A%0A
+ let startDate = new Date(0);%0A let endDate = new Date();%0A%0A if (req.query.startdate != null) %7B%0A startDate = new Date(req.query.startdate);%0A %7D%0A%0A if (req.query.enddate != null) %7B%0A endDate = new Date(req.query.enddate);%0A ... |
887f79c529070814fb4c19e8466ef3159289069a | Modify snippet metadata | bitbucket-issue-clean.user.js | bitbucket-issue-clean.user.js | // ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Your code here...
})();
| JavaScript | 0.000001 | @@ -32,22 +32,26 @@
-New Userscript
+Bitbucket clean up
%0A//
@@ -72,27 +72,32 @@
http
+s
://
-tampermonkey.net
+franklinyu.github.io
/%0A//
@@ -136,82 +136,127 @@
on
-try to take over the world!%0A// @author You%0A// @match
+Block the useless %22+1%22 comments.%0A// @author Franklin Yu%0A// @... |
01751f90447cc623e3d6538dcd9b8e0d0384cc2f | Update !commands to link to readme's command section | bot/commands/info/commands.js | bot/commands/info/commands.js | module.exports = function(bot, db) {
bot.sendChat("Here are a few commands to get you started: !rules, !dubx, !eta, !link, !tune, !love");
};
| JavaScript | 0 | @@ -52,92 +52,96 @@
at(%22
-Here are a few commands to get you started: !rules, !dubx, !eta, !link, !tune, !love
+Check out all of the commands at my repo: https://github.com/coryshaw1/SteveBot#commands
%22);%0A
|
86662f170bea61e438c829d0ebcae53ec7395ae0 | Add a little more behavior to search box view | src/js/search/views/searchBox-view.js | src/js/search/views/searchBox-view.js | import $ from 'jquery';
import BaseView from '../../utils/_base-view';
class SearchBoxView extends BaseView {
get el() { return '#search-box'; }
get query() {
return $('#search-box input').val();
}
displayQuery(queryString) {
let displayString = decodeURIComponent(queryString.replace(/\+/g, '%20'));... | JavaScript | 0 | @@ -63,16 +63,62 @@
e-view';
+%0Aimport Messages from '../../utils/messenger';
%0A%0Aclass
@@ -172,27 +172,33 @@
return '
-#
+.site-
search-
-box
+form
'; %7D%0A%0A
@@ -202,24 +202,29 @@
%0A get query
+Input
() %7B%0A ret
@@ -604,16 +604,84 @@
);%0A %7D
+%0A%0A this.listenTo(Messages, 'search:getIn... |
9e7f105dbeaa060e28551bd4b3a4a1944c2ed5e0 | Add relevance and summaryHtml to UPS generator | src/answer_generators/ups/generator.js | src/answer_generators/ups/generator.js | function generateResults
(
recognitionResults,
q,
context
)
{
if (!recognitionResults['com.solveforall.recognition.business.UPSTrackingNumber'])
{
return null;
}
return [{
label: "UPS",
uri: 'http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&Typ... | JavaScript | 0 | @@ -21,13 +21,9 @@
ults
-%0A(%0A
+(
reco
@@ -41,23 +41,19 @@
lts,
-%0A
q,
-%0A
context
%0A)%0A%7B
@@ -52,20 +52,28 @@
text
-%0A)%0A
+)
%7B%0A
-if (!
+var results =
reco
@@ -148,11 +148,25 @@
er'%5D
-)
+;
%0A
+ if (!results)
%7B%0A
@@ -219,13 +219,13 @@
el:
-%22UPS%22
+'UPS'
,%0A
@@ -278,21... |
24155be2c6ccce0acd2a5be68d00c4c7c3cb1cf4 | Work on Tabs demo. | src/com/google/foam/demos/u2/Border.js | src/com/google/foam/demos/u2/Border.js | foam.CLASS({
name: 'SampleBorder',
extends: 'foam.u2.Element',
axioms: [
foam.u2.CSS.create({
code: function() {/*
^ { background: gray; padding: 10px; display: inline-block; }
^title { padding: 6px; align-content: center; background: aliceblue; }
^content { padding: 6px; width:... | JavaScript | 0 | @@ -1,28 +1,80 @@
+var E = foam.__context__.E.bind(foam.__context__);%0A%0A
foam.CLASS(%7B%0A name: 'Sample
@@ -798,20 +798,8 @@
%7D);%0A
-sb.write();%0A
sb.a
@@ -817,68 +817,10 @@
');%0A
-%0A%0Avar E = foam.__context__.E.bind(foam.__context__);%0AE('br')
+sb
.wri
@@ -825,16 +825,18 @@
rite();%0A
+%0A%0A
E('br'... |
e61e0866342b6e7cc5cdd1ef4a82d8978f7b68e5 | Revert "restrição para aplicativos ios" | UpdateApp.js | UpdateApp.js | Ext.define('Mba.ux.UpdateApp', {
extend: 'Ext.Evented',
requires: ['Ext.MessageBox'],
mixins: [
'Mba.ux.BuilderConfig.mixin.BuilderConfig'
],
config: {
plist: '',
currentVersion: '',
message: 'Uma nova versão do aplicativo foi encontrada. Deseja fazer o download?'
... | JavaScript | 0 | @@ -381,74 +381,8 @@
();%0A
- if (!this.checkSupport()) %7B%0A return;%0A %7D%0A
@@ -481,182 +481,49 @@
-checkSupport: function() %7B%0A return Ext.os.is.iOS;%0A %7D,%0A%0A load: function() %7B%0A var me = this;%0A if (!me.checkSupport()) %7B%0A ... |
8c488cb44f152620940978a10fba518c3ca37c0a | add #dataURL. | lib/BlobObject.js | lib/BlobObject.js | /**
* @module BlobObject
* @private
* @mixin
* @description Exports BlobObject class.
*/
import Super from './Super';
import Promise from './Promise';
import constructors from './constants/constructors';
import {
isArray, isFunction,
toStringTag, Symbol, defineProperties
} from './helpers';
/**
* @typedef {... | JavaScript | 0 | @@ -1380,16 +1380,242 @@
%0A */%0A%0A
+ /**%0A * @member %7BString%7D BlobObject#dataURL%0A * @type %7BString%7D%0A * @public%0A * @readonly%0A * @description Returns dataURL representation of the blob.%0A */%0A get dataURL() %7B%0A return URL.createObjectURL(this.$);%0A %7D%0A%0A
/**%0A
@@ -3... |
600ce1f0e104cff170035bcfd5ca88c50742fc16 | Fix edit this page link | src/components/Docs/Container/index.js | src/components/Docs/Container/index.js | import PropTypes from 'prop-types';
import React from 'react';
import Nav from '../Nav';
import NavDropdown from '../Nav/dropdown';
import Content from '../Content';
import './style.css';
class Container extends React.Component {
renderTopNav(cat) {
const { selectedCatId } = this.props;
const path = `/docs/$... | JavaScript | 0 | @@ -890,14 +890,14 @@
ree/
-master
+source
/src
|
021b93db4a96cd986e5f064bcd46fb4a2f61b88f | update expr condition | lib/Expression.js | lib/Expression.js | let EXPR_OPEN_BOUNDS = '{{';
let EXPR_CLOSE_BOUNDS = '}}';
function Expression (source = '') {
// source = source
// .replace(/^{/g, '')
// .replace(/}$/g, '');
return source;
}
// {
function isOpenExpr(letter = '', nextLetter = '') {
return letter === EXPR_OPEN_BOUNDS.charAt(0) && nextLe... | JavaScript | 0.000465 | @@ -270,48 +270,16 @@
urn
+%5B
letter
- === EXPR_OPEN_BOUNDS.charAt(0) &&
+,
nex
@@ -281,29 +281,34 @@
, nextLetter
- ===
+%5D.indexOf(
EXPR_OPEN_BO
@@ -307,34 +307,31 @@
_OPEN_BOUNDS
-.charAt(1)
+) === 0
;%0A%7D%0A%0A// %7D%0Afu
@@ -396,49 +396,16 @@
urn
+%5B
letter
- === EXPR_CLOSE_BOUNDS.charAt(0) &&
+,... |
f323194f58d50ad1bc1d416f14abe7729fadb93c | add tranactions | lib/MlbRequest.js | lib/MlbRequest.js | const EventEmitter = require('events').EventEmitter;
const url = require('url');
const http = require('http');
const ACTIONS = require('./Config').ACTIONS;
const BASE_URLS = require('./Config').BASE_URLS;
const PUBLIC_ENDPOINTS = require('./Config').ENDPOINTS.PUBLIC_LOOKUP;
const STATS_ENDPOINTS = require('./Config').... | JavaScript | 0.998773 | @@ -1826,32 +1826,249 @@
break;%0A
+ case ACTIONS.TRANSACTIONS:%0A uri = %60$%7BBASE_URLS.PUBLIC_LOOKUP%7D$%7BPUBLIC_ENDPOINTS.TRANSACTIONS%7D.bam?sport_code='mlb'&start_date=$%7Boptions.start_date%7D&end_date=$%7Boptions.end_date%7D%60;%0A break;%0A
default:
|
578c4c9f0251b0cf4d5989ebe3513b3e6f982d59 | Fix d3 import | src/packing.js | src/packing.js | import d3 from 'd3'
/**
* Pack an object into a data package
*
* @param {anything} thing The Javascript object
* @return {Object} A data package
*/
function pack (thing) {
let type = typeof thing
let format = 'text'
let value = thing
if (thing === null) {
type = 'null'
value = 'null'
} else if ... | JavaScript | 0.000006 | @@ -1,15 +1,20 @@
import
+* as
d3 from
|
f24f032e7e249adac71771f9020ae2ee8d578ab6 | Use exactly format function from bytes | src/plugin1.js | src/plugin1.js | import { select } from 'd3-selection';
import { partition as d3partition, hierarchy as d3hierarchy } from 'd3-hierarchy';
import { arc as d3arc } from 'd3-shape';
import { scaleLinear, scaleSqrt } from 'd3-scale';
import bytes from 'bytes';
var data = window.nodesData;
var width = 700,
height = 700,
radius = ... | JavaScript | 0.000003 | @@ -214,21 +214,41 @@
%0Aimport
-b
+%7B format as formatB
ytes
+ %7D
from 'b
@@ -2223,17 +2223,23 @@
.text(
-b
+formatB
ytes(d.v
|
cea18c13dd78b05f735b8a92fc1c40ab567eeb79 | move registerPlugin from plugins.utils to plugins | src/plugins.js | src/plugins.js | /**
* Utility to register plugins and common namespace for keeping reference to all plugins classes
*/
import {objectEach} from './helpers/object';
import {toUpperCaseFirst} from './helpers/string';
const registeredPlugins = new WeakMap();
Handsontable.plugins = Handsontable.plugins || {};
/**
* Registers plugin... | JavaScript | 0 | @@ -2525,14 +2525,8 @@
ins.
-utils.
regi
|
d5cb1afdc5e837d599181fbd0abffc1abc50ec9f | Fix usage of `expected` as array with keycollector | lib/collectors.js | lib/collectors.js | 'use strict';
module.exports = (api) => {
api.metasync.collect = (expected) => {
const isCount = typeof(expected) === 'number';
const isKeys = Array.isArray(expected);
if (!(isCount || isKeys)) throw new Error('Unexpected type');
let keys = null;
if (isKeys) keys = new Set(expected);
let co... | JavaScript | 0.002884 | @@ -276,16 +276,24 @@
(isKeys)
+ %7B%0A
keys =
@@ -307,24 +307,64 @@
(expected);%0A
+ expected = expected.length;%0A %7D%0A
let coun
|
5f02a987a2c2a9f1c9ce0d7bf089cb7318f479f0 | Fix logging example (#2946) | lib/config/cli.js | lib/config/cli.js | const commander = require('commander');
const configDefinitions = require('./definitions');
const { version } = require('../../package.json');
module.exports = {
getCliName,
getConfig,
};
function getCliName(option) {
if (option.cli === false) {
return '';
}
const nameWithHyphens = option.name.replace(/... | JavaScript | 0 | @@ -1767,15 +1767,13 @@
vel
-verbose
+debug
sin
|
2f82d11f436d79aefa94aedc7aabc6bc7bbdeded | Support title props in addition to children | src/reducer.js | src/reducer.js | import {
ADD,
SHOW,
DISMISS
} from './actions.js'
const INITIAL_STATE = {
items: [],
current: null
}
function show (state, payload) {
return {
...state,
current: Object.assign({}, payload)
}
}
function add (state, payload) {
if (!state.current) {
return {
...state,
current: Ob... | JavaScript | 0 | @@ -102,24 +102,218 @@
nt: null%0A%7D%0A%0A
+function transformProps (item) %7B%0A const %7B title %7D = item%0A const transformedItem = Object.assign(%7B%7D, item)%0A%0A if (title) %7B%0A transformedItem.children = title%0A %7D%0A%0A return transformedItem%0A%7D%0A%0A
function sho
@@ -371,34 +371,31 @@
urre... |
60dac5fa38c3470556d987b01405d3ccca6af9ec | remove async dep | lib/dest/index.js | lib/dest/index.js | var async = require('async');
var map = require('map-stream');
var path = require('path');
var mkdirp = require('mkdirp');
var writeContents = require('./writeContents');
module.exports = function(outFolder, opt) {
if (!opt) opt = {};
if (!opt.cwd) opt.cwd = process.cwd();
function saveFile (file, cb) {
va... | JavaScript | 0.000001 | @@ -1,34 +1,4 @@
-var async = require('async');%0A
var
|
92ba83221222edd6293c34a786fc204122dd8342 | Fix deep copy of a new key | lib/diff-array.js | lib/diff-array.js | 'use strict';
var module = angular.module('diffArray', []);
var idStringify = LocalCollection._idStringify;
var idParse = LocalCollection._idParse;
// Calculates the differences between `lastSeqArray` and
// `seqArray` and calls appropriate functions from `callbacks`.
// Reuses Minimongo's diff algorithm implementat... | JavaScript | 0.000063 | @@ -5786,24 +5786,92 @@
t(value)) %7B%0A
+ if (!oldItem%5Bkey%5D)%0A oldItem%5Bkey%5D = value;%0A else%0A
deepCo
|
518944bf46aa5b136e7aa4cf926e7b4d27581163 | Improve debug log | src/request.js | src/request.js | 'use strict';
const lodash = require('lodash');
const superagent = require('superagent');
class Request {
constructor(config) {
config = config || {};
this.verbose = config.verbose || false;
this.timeout = config.timeout || 10000;
this.defaults = {
method: 'GET'
};
}
load(options) {
... | JavaScript | 0.000015 | @@ -1408,16 +1408,22 @@
es.error
+ %7C%7C ''
); // es
|
16eef6e0adab867ff1a2a9b4df369f0edf65e213 | delete error | lib/dumbledore.js | lib/dumbledore.js | // const random = require('random-js')(); // uses the nativeMath engine
const Cron = require('cron').CronJob; // cron works
const { INPUT, OUTPUT, DB } = require('./const');
const SlackBot = require('./helper/slackBot');
class Dumbledore {
constructor(settings) {
const token = settings.token || 'your-token';
... | JavaScript | 0.000002 | @@ -5057,126 +5057,8 @@
e);%0A
- %7D else if (text.includes(INPUT.POINTS_FROM.CALL) %7C%7C text.includes(this.name)) %7B%0A this.deductPoints(message);%0A
|
e35e7a8c64f335d349af0d11ec5968648868ad9d | add back: keep heroku alive setup in express router | src/routers.js | src/routers.js | let express = require('express');
let multipart = require('connect-multiparty');
class NullRouter {
/**
* Setup an empty router object
*
* returns nothing
*/
constructor(robot) {
let msg = 'A script has tried registering a HTTP route while the HTTP ' +
'server is disabled with --disabled-... | JavaScript | 0 | @@ -73,16 +73,66 @@
party');
+%0Aimport * as HttpClient from 'scoped-http-client';
%0A%0Aclass
@@ -1107,24 +1107,25 @@
express();%0A
+%0A
app.use(
@@ -1331,24 +1331,25 @@
s.query());%0A
+%0A
app.use(
@@ -1396,24 +1396,141 @@
encoded());%0A
+ // replacement for deprecated express.multipart/connect.mu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.