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 |
|---|---|---|---|---|---|---|---|
a0ce412d487d516146b981fd7f600e5fe043ea39 | clean gulpfile | gulpfile.js | gulpfile.js | 'use strict';
var gulp = require('gulp'),
merge = require('merge-stream'),
pf = require('./js/paramFiles'),
sourcemaps = require('gulp-sourcemaps'),
vulcanize = require('gulp-vulcanize'),
// css
csscomb = require('gulp-csscomb'),
autoprefixer = require('autoprefixer-core'),
csswring = r... | JavaScript | 0.000001 | @@ -489,47 +489,8 @@
'),%0A
- webpack = require('gulp-webpack'),%0A
@@ -613,95 +613,8 @@
css'
-,%0A PUBLIC_JS = 'public/js',%0A JS_ENTRY_POINTS = %5B%0A JS_PATH + '/main.js'%0A %5D
;%0A%0A/
@@ -2399,106 +2399,8 @@
) %7B%0A
- // return gulp.src(JS_ENTRY_POINTS)%0A // .pipe(webpack())%0A /... |
b94e04bb47ef634e6680ceec4296cbeb2a8a693b | Add cname gulp task | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var sass = require('gulp-sass');
var concat = require('gulp-concat');
var browserSync = require('browser-sync').create();
var clean = require('gulp-clean');
var cssmin = require('gulp-cssmin');
var flatten = require('gulp-flatten');
var uglify = require('gulp-uglify');
var rename = require('... | JavaScript | 0.000037 | @@ -2382,24 +2382,111 @@
s'));%0A%0A%7D);%0A%0A
+gulp.task('cname', function() %7B%0A%09gulp.src('./CNAME').pipe(gulp.dest('./public'));%0A%7D);%0A%0A
gulp.task('d
@@ -2647,12 +2647,21 @@
cuments'
+, 'cname'
%5D);%0A
|
d600f10528b3a9672949a95c5c8d239a36b54d17 | Add plugin gh-pages | gulpfile.js | gulpfile.js | var gulp = require('gulp'),
browserSync = require('browser-sync').create(),
sass = require('gulp-sass'),
autoprefixer = require('gulp-autoprefixer'),
uglify = require('gulp-uglify'),
imagemin = require('gulp-imagemin'),
concat = require('gulp-concat'),
minifyHTML = require('gulp-mi... | JavaScript | 0.000001 | @@ -324,16 +324,56 @@
y-html')
+%0A%09%09ghPages%09%09%09%09= require('gulp-gh-pages')
;%0A%0Agulp.
@@ -1482,32 +1482,127 @@
stream());%0A%7D);%0A%0A
+gulp.task('deploy', function() %7B%0A return gulp.src('./public/**/*')%0A .pipe(ghPages());%0A%7D);%0A%0A
gulp.task('watch
|
715ec1c36f1759b3a05e9ca75b8dcbdd12ec0f70 | Update gulpfile.js | gulpfile.js | gulpfile.js | // Packages
const { src, dest, series, parallel, watch } = require("gulp");
const autoprefixer = require("autoprefixer");
const browserSync = require("browser-sync").create();
const babel = require("gulp-babel");
const del = require("del");
const fs = require("fs");
const cleanCSS = require("gulp-clean-css");
const con... | JavaScript | 0.000001 | @@ -738,13 +738,8 @@
re(%22
-node-
sass
|
a72056ba3a37c038e5220ee83556ee248802e1a8 | Add task for image compression | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
var uglify = require('gulp-uglify');
var cleanCSS = require('gulp-clean-css');
var imagemin = require('gulp-imagemin');
var fileInclude = require('gulp-file-include');
var concat = require('gulp-concat');
// *... | JavaScript | 0.999863 | @@ -1389,32 +1389,165 @@
'build'));%0A%7D);%0A%0A
+gulp.task('img', function() %7B%0A return gulp.src('src/img/*')%0A .pipe(imagemin())%0A .pipe(gulp.dest('build/img'));%0A%7D);%0A%0A
gulp.task('defau
@@ -1591,16 +1591,23 @@
, 'html'
+, 'img'
%5D, funct
@@ -1776,99 +1776,8 @@
%5D);%0A
- gulp.sr... |
e779ddd2e85edc663d97c1e0572d87e884c881a5 | fix typos | gulpfile.js | gulpfile.js | "use strict";
var gulp = require('gulp'),
clean = require('gulp-clean'),
concat = require('gulp-concat'),
inject = require('gulp-inject'),
rename = require('gulp-rename'),
uglify = require('gulp-uglify'),
es = require('event-stream'),
component = require('package.json');
var paths = {
dist: 'dist',
... | JavaScript | 0.003148 | @@ -264,16 +264,18 @@
equire('
+./
package.
@@ -826,17 +826,16 @@
'example
-s
'%5D);%0A%0A/*
@@ -2637,16 +2637,19 @@
js', '!'
+ +
paths.li
|
50d04dd825605ad76304c8dcd057d404cae6e627 | Update gulp file to lint more src | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var jshint = require('gulp-jshint');
var jscs = require('gulp-jscs');
gulp.task('jshint', function() {
return gulp.src('./lib/*.js')
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'));
});
gulp.task('jscs', function () {
return gulp.src('./lib/*.js')
.pipe(jscs())... | JavaScript | 0 | @@ -1,12 +1,27 @@
+'use strict';%0A%0A
var gulp =
@@ -107,24 +107,86 @@
lp-jscs');%0A%0A
+var src = %5B%0A './lib/*.js',%0A 'index.js',%0A 'gulpfile.js'%0A%5D;%0A%0A
gulp.task('j
@@ -220,36 +220,27 @@
rn gulp.src(
-'./lib/*.js'
+src
)%0A .pipe(
@@ -350,28 +350,19 @@
ulp.src(
-'./lib/*.js'
+src
)%0A .p... |
58e455acb7ef640bf5dc301b67d7e902976ae37c | add well-known task | gulpfile.js | gulpfile.js | 'use strict';
var gulp = require('gulp'),
autoprefixer = require('gulp-autoprefixer'),
babel = require("gulp-babel"),
browserify = require('gulp-browserify'),
cssnano = require('gulp-cssnano'),
imagemin = require('gulp-imagemin'),
// notify =... | JavaScript | 0.999999 | @@ -2132,17 +2132,102 @@
%5B'CNAME'
-,
+%5D)%0A .pipe(gulp.dest(DIST));%0A%7D);%0A%0Agulp.task('well-known',() =%3E %7B%0A return gulp.src(%5B
'.well-k
@@ -2255,32 +2255,49 @@
e(gulp.dest(DIST
+ + '/.well-known'
));%0A%7D);%0A%0Agulp.ta
@@ -2872,16 +2872,66 @@
ges'%5D);%0A
+ gulp.watch('.well-known/**/*', %5B... |
a2a29110bc3f93ce1752192e74ffa7d46b36c967 | Fix build-prod gulp task. | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var babel = require('gulp-babel');
var eslint = require('gulp-eslint');
var flow = require('gulp-flowtype');
var notify = require('gulp-notify');
var changed = require('gulp-changed');
var clean = require('gulp-clean');
gulp.task('clean', function() {
return gulp.src('lib', { read: false ... | JavaScript | 0.000002 | @@ -1333,20 +1333,20 @@
rod', %5B'
-flow
+hint
'%5D, func
|
445002e52eb10698076f7074ad2e71f2bce3df38 | Use platform-based icons | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var icongen = require( 'icon-gen' );
var fs = require('fs-extra');
var packager = require('electron-packager')
gulp.task('package', function(done){
packager(
{
dir: "app",
arch: "all",
asar: true,
download: {
cache:... | JavaScript | 0.000001 | @@ -385,14 +385,60 @@
icon
-.ico%22,
+%22, // extension will autocomplete based on platform
%0A
|
c225c4af6492c69c6657178c8a188f48a3018d17 | fix git task name typo | gulpfile.js | gulpfile.js | /*global require, Buffer*/
'use strict'
var pkg = require('./package.json')
, spawn = require('child_process').spawn
, gulp = require('gulp')
, gutil = require('gulp-util')
, plumber = require('gulp-plumber')
, jshint = require('gulp-jshint')
, stylish = require('jshint-stylish')
, uglify = require('gulp... | JavaScript | 0.999994 | @@ -4113,11 +4113,8 @@
'git
-Add
', g
|
9b2beb014c13c382a7efda51d2c88eae1d77c70c | Include data dir in deployment files | gulpfile.js | gulpfile.js | 'use strict';
var gulp = require('gulp');
var path = require('path');
var webserver = require('gulp-webserver');
var jshint = require('gulp-jshint');
var rename = require('gulp-rename');
var rimraf = require('rimraf');
var runSequence = require('run-sequence');
var ghPages = require('gulp-gh-pages');
var bootlint = r... | JavaScript | 0 | @@ -443,16 +443,29 @@
ts/**/*'
+, 'data/**/*'
%5D,%0A b
|
641c3a1fcac8940e1e8ea3132e62a305426e6eb8 | Fix phpjs paths | gulpfile.js | gulpfile.js | var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Larave... | JavaScript | 0.000784 | @@ -809,25 +809,23 @@
'phpjs/
-functions
+src/php
/strings
@@ -876,25 +876,23 @@
'phpjs/
-functions
+src/php
/array/a
@@ -945,25 +945,23 @@
'phpjs/
-functions
+src/php
/datetim
@@ -1020,17 +1020,15 @@
pjs/
-functions
+src/php
/var
|
b5a43bfd82bbf4e326cd14936e6dd81a120f0fba | Fix gulp file to correctly package plugin | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var _ = require('lodash');
var path = require('path');
var mkdirp = require('mkdirp');
var Rsync = require('rsync');
var Promise = require('bluebird');
var eslint = require('gulp-eslint');
var rimraf = require('rimraf');
var zip = require('gulp-zip');
var fs = require('fs');
var spawn = requ... | JavaScript | 0.000001 | @@ -653,16 +653,26 @@
uildDir,
+ 'kibana',
package
|
1e53087dcb03ecc96c19d7d8d29258242d098330 | add commit fallback | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var path = require('path');
var replace = require('gulp-replace');
var child_process = require('child_process');
var fs = require('fs');
var shell = require('gulp-shell');
var jshint = require('gulp-jshint');
var jshStylish = require('jshint-stylish');
var exec = require('child_process').exe... | JavaScript | 0.000001 | @@ -2341,25 +2341,75 @@
release%22
-',%0A 'git
+ %7C%7C echo Nothing to commit',%0A 'git push %7C%7C echo Nothing to
push'%0A%5D
|
0f6cc2d2bf974ab118dc4a33714e4510f0497f6c | Disable macZip on nw-builder | gulpfile.js | gulpfile.js | var fs = require('fs');
var gulp = require('gulp');
var gutil = require('gulp-util');
var del = require('del');
var NwBuilder = require('nw-builder');
gulp.task('sync', function() {
var package = JSON.parse(fs.readFileSync('package.json', 'utf8'));
var srcPackage = JSON.parse(fs.readFileSync('src/package.json', 'u... | JavaScript | 0 | @@ -1032,11 +1032,12 @@
ip:
-tru
+fals
e,%0A
|
7238c6b6ce48e3aa6cbcee0947284c3f93a65801 | Remove trailing space | gulpfile.js | gulpfile.js | 'use strict';
/*global require */
var gulp = require('gulp'),
autoprefixer = require('gulp-autoprefixer'),
concat = require('gulp-concat'),
less = require('gulp-less'),
minifyCss = require('gulp-minify-css'),
notify = require('gulp-notify'),
uglify = require('gulp-uglify'),
util = require('gulp-util');
... | JavaScript | 0.000456 | @@ -311,18 +311,16 @@
util');%0A
-
%0Agulp.ta
|
4b21385cdfca76cc819cb57b6ae8316cafeda99f | Remove unneeded cb's | gulpfile.js | gulpfile.js | /**
* The gulpfile controls the "meta" level of this project. Namely,
* coordinating, validating, etc. the various sub-projects. This file is most
* appropriate for contributors to the project as a whole, and **not**
* developers looking to use the `skeleton` or `full` implementations of
* the examples.
*/
var fs... | JavaScript | 0.000001 | @@ -2308,34 +2308,32 @@
amd%22, function (
-cb
) %7B%0A gulp%0A .
@@ -2705,35 +2705,16 @@
n/amd%22))
-%0A .on(%22end%22, cb)
;%0A%7D);%0A%0Ag
@@ -2743,26 +2743,24 @@
, function (
-cb
) %7B%0A gulp%0A
@@ -2831,27 +2831,8 @@
l%22))
-%0A .on(%22end%22, cb)
;%0A%7D)
|
6a71085534dc08d31c7ca6a99dd20c7dc19c6e70 | Fix indentation | gulpfile.js | gulpfile.js | const gulp = require('gulp');
const path = require('path');
const webpack = require('webpack');
const webpackConfig = require('./webpack.config');
const webpackStream = require('webpack-stream');
const babel = require('gulp-babel');
const mocha = require('gulp-mocha');
const istanbul = require('gulp-babel-istanbul');
c... | JavaScript | 0.017244 | @@ -397,17 +397,16 @@
int');%0A%0A
-%0A
function
@@ -705,17 +705,16 @@
%7B%0A
-
reporter
@@ -722,17 +722,16 @@
'dot',%0A
-
ig
|
ad9db17f97a8317abcef095b30d349e3aecb7d52 | return gulp test | gulpfile.js | gulpfile.js | // See: http://gulpjs.com/
var gulp = require('gulp');
var mocha = require('gulp-mocha');
gulp.task('test', function () {
return gulp.src([
'./test/parser-test.js',
'./test/format-file-test.js',
'./test/format-file-name-test.js',
'./test/format-file-dir-test.js',
... | JavaScript | 0.000405 | @@ -141,229 +141,24 @@
src(
-%5B%0A './test/parser-test.js',%0A './test/format-file-test.js',%0A './test/format-file-name-test.js',%0A './test/format-file-dir-test.js',%0A './test/creator-test.js',%0A %5D
+'./test/**/*.js'
, %7B
|
f440dc7ff86d92134e6db2987f9aa8931466a7eb | Create non-minified app.js for site-js gulp task. | gulpfile.js | gulpfile.js | var SITE_DIR = 'famous-angular-docs/';
var EXAMPLES_DIR = 'famous-angular-examples/';
var EXPRESS_PORT = 4000;
var EXPRESS_DOCS_ROOT = __dirname + '/' + SITE_DIR + '_site';
var LIVERELOAD_PORT = 35729;
// Load plugins
var gulp = require('gulp'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('g... | JavaScript | 0 | @@ -4701,24 +4701,63 @@
('app.js'))%0A
+ .pipe(gulp.dest(SITE_DIR + %22js/%22))%0A
.pipe(ug
|
1ae9c3f0c6899c3b0c422386df6b8a43f4b9e990 | use /img instead of /images | gulpfile.js | gulpfile.js | // require all the plugins used --------------------------------------------------------------------
var gulp = require('gulp'),
jade = require('gulp-jade'),
compass = require('gulp-compass'),
plumber = require('gulp-plumber'),
livereload = require('gulp-livereload'),
imagemin... | JavaScript | 0.000002 | @@ -2800,36 +2800,33 @@
(gulp.dest('./im
-ages
+g
'));%0A%0A if(devel
@@ -3038,20 +3038,17 @@
st('./im
-ages
+g
'));%0A%0A
|
75c31025db6ba5cd3d2bf0f335350ea042dceeb1 | fix wrong dev. website url | gulpfile.js | gulpfile.js | 'use strict';
const gulp = require('gulp');
const htmlmin = require('gulp-htmlmin');
const replace = require('gulp-replace-task');
const spawn = require('child_process').spawn;
const fileinclude = require('gulp-file-include');
const liveServer = require('gulp-live-server');
const runSequence = require('run-sequence');... | JavaScript | 0.999994 | @@ -748,32 +748,57 @@
=== 'production'
+ %7C%7C env === 'development'
? 'https://vqma
@@ -1419,16 +1419,41 @@
duction'
+ %7C%7C env === 'development'
? 'http
|
54fa187af2e0d7525fba8f092fe647690863ee2b | Update npm test | gulpfile.js | gulpfile.js | require('babel-register')
const gulp = require('gulp')
const path = require('path')
const babel = require('gulp-babel')
const clean = require('gulp-clean')
const mocha = require('gulp-mocha')
const concat = require('gulp-concat')
const clc = require('cli-color')
const nodemon = require('gulp-nodemon')
... | JavaScript | 0.000001 | @@ -1676,16 +1676,139 @@
%7D))%0A
+%7D)%0Agulp.task('test:force', %5B'build'%5D, function () %7B%0A gulp.src(buildTests)%0A .pipe(mocha(%7B%0A reporter: 'dot'%0A %7D))%0A
.on(
@@ -1984,24 +1984,30 @@
est', %5B'test
+:force
'%5D, function
@@ -2438,12 +2438,13 @@
ib'%5D%0A %7D)%0A%7D)
+%0A
|
22218b09a554562c5292b49754fd84bc5700ce23 | copy over git repo in order for sem-rel to process | gulpfile.js | gulpfile.js |
/*
* Main build file for fabric8-planner.
* ---
* Each main task has parametric handlers to achieve different result.
* Check out the sections for task variants & accepted task arguments.
*/
// Require primitives
var del = require('del')
, path = require('path')
, argv = require('yargs').argv
, proc = req... | JavaScript | 0 | @@ -6147,16 +6147,72 @@
done) %7B%0A
+ gulp.src(%5B'.git/**/*'%5D).pipe(gulp.dest('dist/.git'));%0A
proc.e
|
3beea77e47fb846942308cb41ed7831d54053854 | serve task | gulpfile.js | gulpfile.js | var gulp = require('gulp');
require('./tasks/build');
require('./tasks/sass');
require('./tasks/watch');
require('./tasks/test');
gulp.task('build', ['browserify', 'sass', 'fonts', 'assets','templates']);
gulp.task('release', ['browserify:release', 'sass', 'fonts', 'assets','templates']);
gulp.task('default', ['sass'... | JavaScript | 0.999999 | @@ -123,16 +123,43 @@
/test');
+%0Arequire('./tasks/server');
%0A%0Agulp.t
|
27c600518889b7ae77aa1af94c4ffad4c8fdcd83 | Fix gulpfile to work with gulp 4.0 | gulpfile.js | gulpfile.js | var browserify = require('browserify'),
concat = require('gulp-concat'),
eslint = require('gulp-eslint'),
gulp = require('gulp'),
insert = require('gulp-insert'),
karma = require('karma'),
package = require('./package.json'),
path = require('path'),
replace = require('gulp-replace'),
source = require(... | JavaScript | 0.000001 | @@ -819,50 +819,8 @@
%22;%0A%0A
-gulp.task('default', %5B'build', 'watch'%5D);%0A
gulp
@@ -890,21 +890,27 @@
sk('
-watch', watch
+unittest', unittest
Task
@@ -930,17 +930,30 @@
'test',
-%5B
+gulp.parallel(
'lint',
@@ -962,17 +962,17 @@
nittest'
-%5D
+)
);%0Agulp.
@@ -977,39 +977,79 @@
p.task('
-unittest', un... |
6d78fcd6c9d67bc50a2f060e43d3fec49a847c9c | Enable imagemin | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var imagemin = require('gulp-imagemin');
var jsonminify = require('gulp-jsonminify');
var minifycss = require('gulp-minify-css');
var minifyhtml = require('gulp-minify-html');
var nib = require('nib');
var stylus = require('gulp-stylus');
var zip = require('gulp-zip');
var version = '1.0.4... | JavaScript | 0.000003 | @@ -1295,10 +1295,8 @@
mg)%0A
-//
|
d4a71aef0b8f2d8e2da12b848650d13a998b95f0 | Copy uncompiled JS to the dist folder | gulpfile.js | gulpfile.js | 'use strict'
const packageJson = require('./package.json')
const version = packageJson.version
// Gulp utility
const gulp = require('gulp')
const del = require('del')
const rename = require('gulp-rename')
const runSequence = require('run-sequence')
// Templates
const transpiler = require('./lib/transpilation/transpi... | JavaScript | 0 | @@ -1775,21 +1775,18 @@
tyles:co
-mpile
+py
', 'buil
@@ -1796,18 +1796,21 @@
tyles:co
-py
+mpile
'%5D, cb)%0A
@@ -2913,32 +2913,54 @@
scripts:lint', %5B
+'build:scripts:copy',
'build:scripts:g
@@ -3452,16 +3452,133 @@
te-ie'))
+%0Agulp.task('build:scripts:copy', () =%3E %7B%0A gulp.src(paths.assetsJs + '**/*.j... |
3794e6ac3e863c7a4c884fedde46603b8f2215ec | remove refs to removed gulp testing modules | gulpfile.js | gulpfile.js | var _ = require('underscore'),
gulp = require('gulp'),
cover = require('gulp-coverage'),
jshint = require('gulp-jshint'),
mocha = require('gulp-mocha'),
gutil = require('gulp-util'),
watch = require('gulp-watch'),
browserify = require('browserify'),
literalify = require('literalify'),
watchify = require('watch... | JavaScript | 0 | @@ -53,109 +53,8 @@
'),%0A
-%09cover = require('gulp-coverage'),%0A%09jshint = require('gulp-jshint'),%0A%09mocha = require('gulp-mocha'),%0A
%09gut
|
07c935bb646052cd2dfc48e72eff9b753390a002 | fix watch task in gulpfile | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
var hbsfy = require('hbsfy');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var appDir = '.'
var dstDir = './build'
gulp.task('build:js', function() {
return brow... | JavaScript | 0.000603 | @@ -758,20 +758,19 @@
Dir + '/
-**/*
+app
.js', %5B'
@@ -811,12 +811,13 @@
+ '/
-**/*
+index
.htm
|
ab810eeabe0031ba05227c7967803d4827d74678 | Remove 'test' task from scss Gulp watcher | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var cleanCSS = require('gulp-clean-css');
var sass = require('gulp-sass');
var rename = require('gulp-rename');
var autoprefix = require('gulp-autoprefixer');
var eslint = require('gulp-eslint');
var qunit = require('gulp-qunit');
var pack = require('./package.js... | JavaScript | 0.001765 | @@ -991,16 +991,17 @@
ion(err)
+
%7B // avo
@@ -1812,17 +1812,16 @@
st/*.js'
-,
%0A %5D, %5B'
@@ -1921,24 +1921,16 @@
%5B'sass'
-, 'test'
%5D);%0A%7D);%0A
|
d9ea0950a0206274c656571487f3f5175c9af9f8 | Fix remaining gulp 3.x syntax | gulpfile.js | gulpfile.js | // grab our gulp packages
var gulp = require("gulp");
var gutil = require("gulp-util");
var uglify = require("gulp-uglify");
var rename = require("gulp-rename");
var concat = require("gulp-concat");
gulp.task("concat", function() {
return gulp.src(["bliss.shy.js", "bliss._.js"])
.pipe(concat("bliss.js"))
.pipe(gu... | JavaScript | 0.00001 | @@ -660,17 +660,28 @@
n.js%22%5D,
-%5B
+gulp.series(
%22concat%22
@@ -690,17 +690,17 @@
%22minify%22
-%5D
+)
);%0A%7D);%0A%0A
|
2d6cf215afd05d5a25756419eee8f27746fc1c55 | Update gulpfile.js | gulpfile.js | gulpfile.js | const gulp = require('gulp')
const cssnano = require('cssnano')
const mqpacker = require('css-mqpacker')
const scss = require('postcss-scss')
const nested = require('postcss-nested')
const cssnext = require('postcss-cssnext')
const atImport = require('postcss-import')
const focus = require('postcss-focus')
const postcs... | JavaScript | 0.000001 | @@ -663,14 +663,99 @@
sk('
-default'
+watch', () =%3E gulp.watch('src/css/**/*.css', %5B'css'%5D))%0A%0Agulp.task('default', %5B'css', 'watch'%5D
)%0A
|
84ae1d7cae238d71714768e62a6b513db493adab | Add comment | gulpfile.js | gulpfile.js | 'use strict'
const { src, dest, watch, series, parallel } = require('gulp')
const gulpUglify = require('gulp-uglify')
const gulpSass = require('gulp-sass')
const del = require('del')
const SRC_DIR = 'src'
const BUILD_DIR = 'build'
const JS_FILES = `${SRC_DIR}/**/*.js`
const SASS_FILES = `${SRC_DIR}/**/*.scss`
const O... | JavaScript | 0 | @@ -458,16 +458,127 @@
ion() %7B%0A
+ // TODO: replace with %60promisify(fs.rmdir)(..., %7Brecursive: true%7D)%60 after%0A // dropping support for Node %3C12%0A
await
|
ad531d2b6eb477e1c2c84a7fb593a107251e42d1 | build html and css when loading gulp | gulpfile.js | gulpfile.js | var gulp = require('gulp'),
connect = require('gulp-connect'),
livereload = require('gulp-livereload'),
sass = require('gulp-ruby-sass');
gulp.task('sass', function() {
return sass('src/stylesheets/', {
style: 'compressed',
loadPath: [
'./src/stylesheets',
'./bower_components/bootstra... | JavaScript | 0.000001 | @@ -1207,16 +1207,32 @@
ault', %5B
+'html', 'sass',
'connect
|
f1f35b8ed7c4833331dc9dee2db6702cad61d4ce | Fix watcher | gulpfile.js | gulpfile.js | 'use strict';
var gulp = require('gulp'),
traceur = require('gulp-traceur'),
connect = require('gulp-connect'),
open = require('open');
gulp.task('connect', function () {
var livereloadPort = 39729;
connect.server({
port: 8080,
livereload: {
port: livereloadPort
},
middlew... | JavaScript | 0.000001 | @@ -532,16 +532,74 @@
ort %7D),%0A
+ mountFolder(connect, 'node_modules/traceur/bin'),%0A
@@ -625,16 +625,17 @@
, 'app')
+,
%0A %5D
@@ -1172,12 +1172,12 @@
ost:
-9421
+8080
');%0A
|
a6e37f2ab0a2c473b9593d70ba1617bbcbe87b27 | update build | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var git = require('gulp-git');
var del = require('del');
var header = require('gulp-header');
var rename = require("gulp-rename");
var runSequence = require('run-sequence');
var pkg = require('./bower.json');
var bann... | JavaScript | 0.000001 | @@ -91,24 +91,57 @@
p-uglify');%0A
+var bump = require('gulp-bump');%0A
var git = re
@@ -846,107 +846,10 @@
/'))
-%0A .pipe(git.add())%0A .pipe(git.commit('Bump version to ' + require('./bower.json').version))
;%0A
+
%7D);%0A
@@ -981,105 +981,8 @@
/'))
-%0A .pipe(git.add())%0A .pipe(git.commit('Bump v... |
31afa807c952440b8b2674d7da3864377a34575f | Add deploy details for prooduction server | gulpfile.js | gulpfile.js | // Module Dependencies
var cp = require('child_process'),
gulp = require('gulp'),
browserSync = require('browser-sync'),
sass = require('gulp-sass'),
autoprefix = require('gulp-autoprefixer');
gutil = require('gulp-util');
argv = require('minimist')(pr... | JavaScript | 0 | @@ -3270,24 +3270,34 @@
hostname = '
+codaye.com
'; // hostna
@@ -3322,24 +3322,31 @@
username = '
+steama4
'; // ssh us
@@ -3382,16 +3382,40 @@
tion = '
+/home/steama4/codaye.com
'; // pa
|
93859fc8a792ff780188c78631646ef5c44c978a | add description for export task | gulpfile.js | gulpfile.js | var gulp = require('gulp');
// public/lib配下に展開したいnpmのパッケージ名
var modules = ['bootstrap-switch'];
gulp.task('export', function() {
modules.map(function(name, index) {
gulp.src('node_modules/' + name + '/**/*')
.pipe(gulp.dest('public/packages/' + name));
});
});
gulp.task('default', ['export']);
| JavaScript | 0.000001 | @@ -36,11 +36,16 @@
lic/
-lib
+packages
%E9%85%8D%E4%B8%8B%E3%81%AB%E5%B1%95
@@ -96,16 +96,64 @@
tch'%5D;%0A%0A
+// modules%E3%81%A7%E6%8C%87%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%9Fnpm%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA%E3%82%92public/packages%E9%85%8D%E4%B8%8B%E3%81%AB%E5%B1%95%E9%96%8B%E3%81%99%E3%82%8B%0A
... |
83f59e655bfc313c40abe4da988414488ae2f6f5 | Add umd support | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var webpack = require('gulp-webpack');
var concat = require('gulp-concat');
var less = require('gulp-less');
var webpackConf = require('./webpack.config.js');
var babel = require('gulp-babel');
var connect = require('gulp-connect');
gulp.task("webpack", function() {
return gulp.src('./e... | JavaScript | 0 | @@ -1066,16 +1066,32 @@
e(babel(
+%7Bmodules: 'umd'%7D
))%0A
|
a687666428f5d411355eef85c85f1d37928b0593 | add gulp watch task - finally :grin: | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var sass = require('gulp-sass');
var jsoncombine = require('gulp-jsoncombine');
var del = require('del');
var runSequence = require('run-sequence');
var paths = {
files: ['images/**/*', 'js/**/*'],
sass: 'sass/main.scss',
manifest: 'manifest.json',
ffmanifest: 'firefox-manifest.json... | JavaScript | 0.000001 | @@ -1553,8 +1553,138 @@
ne);%0A%7D);
+%0A%0Agulp.task('watch', function() %7B%0A gulp.watch(%5B'sass/**/*.scss', 'js/**/*.js', 'images/**/*', 'manifest.json'%5D, %5B'default'%5D);%0A%7D);
|
9d6b100a4ae77c6bcd2aaccf3c0245e0cf4d686b | Update gulpfile.js | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var notify = require('gulp-notify');
var rename = require('gulp-rename');
var wrap = require('gulp-wrap');
var del = require('del');
var nib = require('nib');
var stylus = require('gulp-stylus');
gulp.task('jav... | JavaScript | 0 | @@ -969,17 +969,18 @@
ript');%0A
-%09
+
gulp.sta
@@ -1087,9 +1087,10 @@
%5D);%0A
-%09
+
gulp
|
4c12e40667a95a7d8ed9ad7850a399be018ea81e | Refactor GOPATH calculation in gulpfile | gulpfile.js | gulpfile.js | var path = require('path');
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var bower_components = require('main-bower-files')();
var newenv = process.env;
var gpm_dir = __dirname + path.sep + '.godeps';
if (newenv.GOPATH.split(path.delimiter).indexOf(gpm_dir) == -1) {
newenv.GOPATH = gpm_dir + ... | JavaScript | 0 | @@ -153,30 +153,32 @@
var
-newenv = process.env;%0A
+gopath = function() %7B%0A
var
@@ -225,15 +225,22 @@
s';%0A
+
if (
-new
+process.
env.
@@ -285,17 +285,17 @@
pm_dir)
-=
+!
= -1) %7B%0A
@@ -300,23 +300,49 @@
%7B%0A
-newenv.GOPATH =
+ return process.env.GOPATH;%0A %7D%0A return
gpm
@@ -365,19 +3... |
6a5ba7975f9c7b9d5df05ed0e694cd9bb73f440b | write the default gulp task | gulpfile.js | gulpfile.js | // jchck_'s gulpfile
//
// gulp plugin registry
//
var gulp = require('gulp');
var postcss = require('gulp-postcss');
var cssnext = require('postcss-cssnext');
var precss = require('precss');
var autoprefixer = require('autoprefixer');
var atImport = require('postcss-import');
var mqpacker = requir... | JavaScript | 0.000347 | @@ -1714,16 +1714,92 @@
%5B'css'%5D);%0A%7D);%0A%0A%0A
+//%0A// default task%0A//%0A// $ gulp%0A//%0A%0Agulp.task('default', %5B'css', 'watch'%5D);%0A
|
4291b4d738e4cb62611bcb24300941ca71da8d34 | update keys (#2290) | lib/api/protocol/keys.js | lib/api/protocol/keys.js | const ProtocolAction = require('./_base-action.js');
/**
* Send a sequence of key strokes to the active element. The sequence is defined in the same format as the `sendKeys` command.
* An object map with available keys and their respective UTF-8 characters, as defined on [W3C WebDriver draft spec](https://www.w3.org... | JavaScript | 0 | @@ -624,17 +624,84 @@
pressed.
+ Pass %60client.keys.NULL%60 to the keys function to release modifiers.
%0A
-
*%0A * @e
@@ -793,50 +793,84 @@
.
-setValue('input%5Btype=search%5D', 'nightwatch
+keys(browser.Keys.CONTROL) // hold down CONTROL key%0A * .click('#element
')%0A
@@ -899,14 +899,33 @@
eys.
-ENT... |
84c58a1655b8b183de0a3efb909a86e921d7ba7a | Remove Syntax-Error and require to deleted PageInitializer.js | lib/client/Page.class.js | lib/client/Page.class.js | "use strict"; // run code in ES5 strict mode
var Class = require("nodeclass").Class,
is = require("nodeclass").is,
DisplayObject = require("./DisplayObject.class.js"),
PageInitializer = require("./PageInitializer.class.js"),
resolvePageURLs = require("../shared/helpers/resolvePaths.js").resolvePageURLs... | JavaScript | 0 | @@ -174,69 +174,8 @@
%22),%0A
- PageInitializer = require(%22./PageInitializer.class.js%22),%0A
@@ -2230,86 +2230,8 @@
);%0A%0A
-//@TODO Make this function static%0A//That should be not a part of the page%0A%0A%7D%0A%0A
modu
|
a1919827ebc5707edc934dc233aac61a261c325a | Improve output in case of unresolved links | lib/dump-error-buffer.js | lib/dump-error-buffer.js | import {get} from 'lodash/object'
import {partialRight} from 'lodash/function'
import log from 'npmlog'
import fs from 'fs'
import errorBuffer from 'contentful-batch-libs/utils/error-buffer'
export default function dumpErrorBuffer (params, message = 'Additional errors were found') {
const {destinationSpace, sourceSp... | JavaScript | 0.000007 | @@ -72,16 +72,55 @@
nction'%0A
+import %7Bfind%7D from 'lodash/collection'%0A
import l
@@ -136,16 +136,16 @@
npmlog'%0A
-
import f
@@ -452,24 +452,101 @@
ngth %3E 0) %7B%0A
+ const errorOutputPrefix = additionalInfoForUnresolvedLinks(loggedErrors)%0A
const er
@@ -572,16 +572,23 @@
.reduce(
+%0A
par... |
ce69619266357cada2efa3508ae036b9e483a726 | Use req.param() instead of req.params + req.mixinParams() for filter() as well. Introduce new updateParam() method to replace params with the filtered version See #1 | lib/express_validator.js | lib/express_validator.js | /*
* This binds the node-validator library to the req object so that
* the validation / sanitization methods can be called on parameter
* names rather than the actual strings.
*
* 1. Be sure to include `req.mixinParams()` as middleware to merge
* query string, body and named parameters into `req.params`
*
* ... | JavaScript | 0 | @@ -1890,24 +1890,529 @@
%7D%0A %7D;%0A%0A
+ req.updateParam = function(name, value) %7B%0A // route params like /user/:id%0A if (this.params && this.params.hasOwnProperty(name) && undefined !== this.params%5Bname%5D) %7B%0A return this.params%5Bname%5D = value;%0A %7D%0A // query string params%... |
bc5e4e7688aff1f36c431daa2d321956a033a822 | return scope when no query is given and fix style issues | lib/findBy/perm/index.js | lib/findBy/perm/index.js | var Promise = require('bluebird')
var inspect = require('eyes').inspector()
var _ = require('lodash')
var xml2js = Promise.promisifyAll(require('xml2js'));
module.exports = {
init: init,
find: find
}
function init(env){
return Promise.resolve(env)
}
var _ = require('lodash')
var Promise = require('blueb... | JavaScript | 0 | @@ -22,24 +22,25 @@
('bluebird')
+;
%0Avar inspect
@@ -69,16 +69,17 @@
pector()
+;
%0Avar _ =
@@ -96,16 +96,17 @@
lodash')
+;
%0A%0Avar xm
@@ -205,16 +205,17 @@
: find%0A%7D
+;
%0A%0Afuncti
@@ -226,16 +226,17 @@
nit(env)
+
%7B%0A re
@@ -289,16 +289,17 @@
lodash')
+;
%0Avar Pro
@@ -324,16 +324,17 @@
ueb... |
f00fa148f2fc005c95e1b3e796b85234ba1f61a8 | Update lib: Add `.isValidAirlineCode()` | lib/flight-designator.js | lib/flight-designator.js | /**
* FlightDesignator
* @constructor
* @param {String} airline
* @param {String} number
* @param {String} suffix
* @return {FlightDesignator}
*/
function FlightDesignator( airline, number, suffix ) {
if( !(this instanceof FlightDesignator) )
return new FlightDesignator( airline, number, suffix )
t... | JavaScript | 0 | @@ -572,16 +572,254 @@
%5D?)$/i%0A%0A
+/**%0A * Determines whether the input is a valid airline code%0A * @param %7BString%7D airlineCode%0A * @return %7BBoolean%7D%0A */%0AFlightDesignator.isValidAirlineCode = function( airlineCode ) %7B%0A return /%5E(%5BA-Z0-9%5D%7B2%7D%5BA-Z%5D?)$/i.test( airlineCode )%0A%7D%0A%... |
b5aeb7eca5454c4f870d64b2cb90ea048b2d3652 | make sure block props are passed down | draft-js-resizeable-plugin/src/createDecorator.js | draft-js-resizeable-plugin/src/createDecorator.js | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
const getDisplayName = (WrappedComponent) => {
const component = WrappedComponent.WrappedComponent || WrappedComponent;
return component.displayName || component.name || 'Component';
};
const round = (x, steps) => Math.ceil(x / steps) * s... | JavaScript | 0 | @@ -6448,24 +6448,56 @@
ctionProps%7D%0A
+ blockProps=%7BblockProps%7D%0A
ref=
|
daf25233283f6edc346dc0bef3afbc3ce5b1aa7f | Remove the temp file after deployment. | deployer.js | deployer.js | var fs = require('fs'),
sys = require('sys'),
exec = require('child_process').exec;
var deployer = exports.deployer = function (project, callback) {
var tempFile = __dirname + '/tmp/' + Math.random() + '.js';
fs.writeFile(tempFile, project.lastHandler.code, function(err) {
if (err) throw err;
console.log(sy... | JavaScript | 0 | @@ -301,54 +301,8 @@
rr;%0A
-%09%09console.log(sys.inspect('node '+tempFile));%0A
%09%09no
@@ -318,17 +318,19 @@
('node '
-+
+ +
tempFile
@@ -373,146 +373,186 @@
%0A%09%09%09
-sys.print('stdout: ' + stdout);%0A%09%09%09sys.print('stderr: ' + stderr);%0A%09%09%09if (error !== null) %7B%0A%09%09%09%09console.log('e... |
afdca1e1c6c0f0e78c245d6687b72f1c2c2430ee | set body font-size to 14px + antialiased fonts | src/styles/index.js | src/styles/index.js | import { injectGlobal } from 'styled-components';
const globalStyles = injectGlobal`
html,
body {
height: 100%;
}
body {
box-sizing: border-box;
color: #1f2228;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Sego... | JavaScript | 0 | @@ -343,17 +343,17 @@
-size: 1
-6
+4
px;%0A%09%09ma
@@ -384,16 +384,173 @@
hidden;
+%0A%0A -webkit-font-smoothing: antialiased;%0A text-rendering: optimizeLegibility;%0A -moz-osx-font-smoothing: grayscale;%0A font-feature-settings: 'liga';
%0A%09%7D%0A%0A *
|
5878ac20a47ed230b4c9d77d7f4f2e48d46905f4 | Reset icon classes before updating them | lib/get-icon-services.js | lib/get-icon-services.js | const DefaultFileIcons = require('./default-file-icons')
const {Emitter, CompositeDisposable} = require('atom')
const {repoForPath} = require('./helpers')
let iconServices
module.exports = function getIconServices () {
if (!iconServices) iconServices = new IconServices()
return iconServices
}
class IconServices {... | JavaScript | 0 | @@ -1231,24 +1231,100 @@
on (view) %7B%0A
+ view.directoryName.className = ''%0A%0A const classes = %5B'name', 'icon'%5D%0A
if (this
@@ -1332,32 +1332,32 @@
elementIcons) %7B%0A
-
const disp
@@ -1918,24 +1918,54 @@
%7D%0A %7D%0A
+ classes.push(iconClass)%0A
view.d
@@ -1991,25 +19... |
cd60b38df298e6d2b12d846ec64cd9bc29b3cc63 | Update toloka.js | web.to.plex/plugins/toloka.js | web.to.plex/plugins/toloka.js | /* Web to Plex - Toloka Plugin
* Aurthor(s) - @chmez (2017)
*/
// REQUIRED [var plugin:object]: The plugin variable, must be a variable
var plugin = {
// REQUIRED [plugin.url]: this is what you ask Web to Plex access to; currently limited to a single domain
url: "https://toloka.to/t*",
// OPTIONAL: this... | JavaScript | 0 | @@ -103,24 +103,24 @@
plugin
-variable
+constant
, must b
@@ -127,20 +127,22 @@
e a
-variable%0Avar
+constant%0Aconst
plu
@@ -1584,19 +1584,19 @@
to this%0A
-var
+let
id = pl
|
8d9826d6fe4bd51ad687adf91e895ef0fd259b6f | add padding | src/app/pages/common/Editor/Header/elements.js | src/app/pages/common/Editor/Header/elements.js | import styled from "styled-components";
export const DetailHeaderContainer = styled.div`
min-height: ${props => props.height? props.height : '44.2vh'};
width: 100%;
/* background: #297AFF; */
background: ${props => props.bgUrl? `url("${props.bgUrl}")` : "transparent"};
background-size: cover;
background-po... | JavaScript | 0.000001 | @@ -1036,16 +1036,39 @@
.5rem;%0A
+ padding-right: 1rem;%0A
color:
@@ -1560,17 +1560,17 @@
-right:
-2
+1
rem;%0A b
|
185c83ff8d677c8478e4af31d58055e46ef10265 | fix bug with single image tilesets and stop lowercasing tiledProperties component properties to fix 2nd loading bug | lib/import-from-tiled.js | lib/import-from-tiled.js | "use strict";
/** <p>Import an orthogonal tilemap from
* <a href="http://www.mapeditor.org/" target="_blank">Tiled: Map Editor</a> and draw on the screen.</p>
* <h5>To Do</h5>
* <ul>
* <li><b>Image Layer</b></li>
* <li><b>Ellipse and Polygon Objects</b></li>
* </ul>
* @module Import From Tiled
*/
/** @functio... | JavaScript | 0 | @@ -1091,16 +1091,17 @@
ata%5Bj%5D %3E
+=
file.ti
@@ -1118,24 +1118,24 @@
firstgid) %7B%0A
-
%09%09%09%09%09%09tilese
@@ -2463,16 +2463,109 @@
margin;%0A
+%09%09%09%09%09if(tileset.tileheight == tileset.imageheight) %7B%0A%09%09%09%09%09%09image.sourceY = 0;%0A%09%09%09%09%09%7D else %7B%0A%09
%09%09%09%09%09ima... |
c8d747783eb54d2940d51bcf92a07d949fe7bafa | one timeout is ok | src/async-status-indicator/examples/default.js | src/async-status-indicator/examples/default.js | const labels = {
success: 'Success',
error: 'Error',
ready: 'Ready',
processing: 'Processing'
};
const icons = {
success: <Icon icon='check2' />,
error: <Icon icon='x' />,
processing: <LoadingSpinner size='1em' overlayColor='transparent' />
}
class Example extends React.Component {
state = { state: '... | JavaScript | 0.99984 | @@ -446,17 +446,16 @@
.timeout
-1
= setTi
@@ -464,24 +464,24 @@
out(() =%3E %7B%0A
+
this.s
@@ -559,17 +559,16 @@
.timeout
-2
= setTi
@@ -620,24 +620,24 @@
'ready' %7D);%0A
+
clea
@@ -661,46 +661,8 @@
eout
-1);%0A clearTimeout(this.timeout2
);%0A
|
4cfcea7fc9ab29989797501baeaf0cda8d84da77 | Update controllerUtils.js | src/backend/rest/subscriber/controllerUtils.js | src/backend/rest/subscriber/controllerUtils.js |
var validator = require('validator');
function invalidEmail(email){
//use node-enfore library
return !validator.isEmail(email);
}
function invalidPassword(password){
var min = 8;
var max = 16;
//return !validator.isLength(password, min, max);
return !(password.length<=max&&password.length>=min);
}
//function v... | JavaScript | 0.000001 | @@ -273,15 +273,18 @@
ngth
+
%3C=max
+
&&
+
pass
@@ -298,10 +298,12 @@
ngth
+
%3E=
+
min)
|
fa7fe64b6a58ceaed6f9f2fd909ca966ccd0fc10 | change tagui_header to support config file | src/tagui_header.js | src/tagui_header.js | /* OUTPUT CASPERJS SCRIPT FOR TA.GUI FRAMEWORK ~ TEBEL.SG */
// casperjs (phantomjs) browser settings
var x = require('casper').selectXPath;
var casper = require('casper').create({
verbose: false, logLevel: 'debug',
waitTimeout: 10000,
viewportSize: {width: 1366, height: 768},
pageSettings: {loadImages: true, loadPlug... | JavaScript | 0 | @@ -210,16 +210,26 @@
debug',%0A
+tagui.cfg.
waitTime
@@ -237,13 +237,8 @@
ut:
-10000
,%0Avi
@@ -254,29 +254,45 @@
e: %7B
-width: 1366,
+tagui.cfg.width: , tagui.cfg.
height:
768%7D
@@ -291,11 +291,8 @@
ht:
-768
%7D,%0Ap
@@ -305,16 +305,26 @@
tings: %7B
+tagui.cfg.
loadImag
@@ -327,22 +327,28 @@
Images:... |
f6a95642eecffa45a209b131fbbcc1bda62d8c58 | add path for electron. | src-script/script-util.js | src-script/script-util.js | /**
*
* Copyright (c) 2020 Silicon Labs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | JavaScript | 0 | @@ -909,16 +909,78 @@
h.json')
+%0Aprocess.env.PATH = process.env.PATH + ':./node_modules/.bin/'
%0A%0A// Uti
|
e7ad36f2b3993b9862a37abf3ca42dd7e5313e8e | load profile explicity after a stub profile is created | src/client/modules/app/services/userprofile.js | src/client/modules/app/services/userprofile.js | /*global define */
/*jslint browser: true, white: true */
define([
'promise',
'kb/common/observed',
'kb/service/userProfile',
'kb/common/lang'
], function (
Promise,
observed,
userProfile,
lang
) {
'use strict';
function factory(config) {
var runtime = config.runtime... | JavaScript | 0 | @@ -2284,16 +2284,193 @@
sion'%7D)%0A
+ .then(function () %7B%0A return profile.loadProfile();%0A %7D)%0A
|
c9393976b9eb61cac121c341af0c8ba4b9563b80 | remove debugging | lib/manifest/get-tags.js | lib/manifest/get-tags.js | /**
* Get the tags data from the KA api
*/
var request = require('superagent');
function getTags(next) {
request.get('http://www.khanacademy.org/api/v1/assessment_items/tags')
.end(function (err, res) {
next(err, res.body);
});
}
module.exports = getTags;
/* */
module.exports = fun... | JavaScript | 0.000065 | @@ -290,104 +290,4 @@
gs;%0A
-%0A/* */%0Amodule.exports = function (next) %7B%0A next(null, require('../../data/tags.json'));%0A%7D;%0A/* */%0A
|
66810f70f47b67163b4a2ea79f195caabb9a7bd5 | increase proxy tile zoom ranges | src/tile_pyramid.js | src/tile_pyramid.js | import Tile from './tile';
export default class TilePyramid {
constructor() {
this.tiles = {};
this.max_proxy_descendant_depth = 3; // # of levels to search up/down for proxy tiles
this.max_proxy_ancestor_depth = 5;
}
addTile(tile) {
// Add target tile
this.tiles[t... | JavaScript | 0 | @@ -148,9 +148,9 @@
h =
-3
+6
; //
@@ -240,9 +240,9 @@
h =
-5
+7
;%0A
|
76e5cb767031b3d969dbda7c732374c8f5bd60a8 | Change to root git directory before executing hooks | node/lib/util/hook.js | node/lib/util/hook.js | /*
* Copyright (c) 2018, Two Sigma Open Source
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of... | JavaScript | 0 | @@ -1792,16 +1792,54 @@
_util%22);
+%0Aconst process = require(%22process%22);
%0A%0A/**%0A *
@@ -2060,29 +2060,24 @@
nst
-hookPath = path.join(
+rootDirectory =
GitU
@@ -2101,16 +2101,62 @@
ectory()
+;%0A const hookPath = path.join(rootDirectory
, %22.git/
@@ -2211,24 +2211,24 @@
th, name);%0A%0A
-
... |
e1c34971c2400fa4c235d440bb3d9223fdeb4a4e | remove clientside logging for debug | node/public/js/app.js | node/public/js/app.js | $(document).ready(function () {
new Clipboard('.btn');
$(".btn-login").click(function () {
var $btn = $(this);
var $form = $(".login-form");
$btn.html('<i class="fa fa-refresh fa-spin"></i>');
console.log($form.val());
// send login information to server and validate
... | JavaScript | 0.000001 | @@ -222,42 +222,8 @@
');%0A
- console.log($form.val());%0A
@@ -317,31 +317,20 @@
code%22: $
-(%22.login-
form
-%22)
.val()%0A
@@ -343,35 +343,8 @@
%7D;%0A
- console.log(code);%0A
@@ -1666,67 +1666,8 @@
%22%22;%0A
- console.log(url);%0A console.log(customLink);%0A
|
2cfca8408c94984440ef0058b28157f9e225952a | fix answer | node/routes/answer.js | node/routes/answer.js | var express = require('express');
var router = express.Router();
var result = require('./result');
//TODO
var source_url = {sick: '/gakf/askDoctor.html', doctor: '/gakf/question.html'};
var target_url = {sick: '/gakf/askDoctor.html', doctor: '/gakf/question.html'};
router.get('/message', function (req, res, next) {
... | JavaScript | 0.999999 | @@ -1418,44 +1418,8 @@
) %7B%0A
- console.error(err);%0A
|
561105c1cf3a17a1fef87ce4102f029f846c649c | Add default material for the pile area | src/components/fragments/fragments-defaults.js | src/components/fragments/fragments-defaults.js | import * as THREE from 'three';
import threeLine2d from 'three-line-2d';
import threeLine2dShader from 'three-line-2d-shader';
import COLOR from 'configs/colors';
import pileColors from 'components/fragments/pile-colors';
export const ANIMATION = true;
export const ARRANGE_MEASURES = [];
export const CAT_DATASET =... | JavaScript | 0 | @@ -133,16 +133,17 @@
rt COLOR
+S
from 'c
@@ -1635,16 +1635,17 @@
e: COLOR
+S
.PRIMARY
@@ -1938,32 +1938,443 @@
S_COLORS = %7B%7D;%0A%0A
+export const PILE_AREA_BG = new THREE.MeshBasicMaterial(%7B%0A color: COLORS.PRIMARY,%0A transparent: true,%0A opacity: 0.2%0A%7D);%0A%0Aexport const PILE_AREA_BORDER = new ... |
01bc69839c6b20ba4c3327f7382a445dbd37962b | enable desktop ga | src/ui/analytics.js | src/ui/analytics.js | // @flow
import { Lbryio } from 'lbryinc';
import ReactGA from 'react-ga';
import { history } from './store';
type Analytics = {
pageView: string => void,
setUser: Object => void,
toggle: (boolean, ?boolean) => void,
apiLogView: (string, string, string, ?number, ?() => void) => void,
apiLogPublish: () => voi... | JavaScript | 0.000001 | @@ -2114,17 +2114,17 @@
403362-1
-2
+3
';%0A%0AReac
|
3bdb5afcc88ef9dcdfef47434633abdc4a0ca77f | Fix Queue test. | prolific.queue/t/queue.t.js | prolific.queue/t/queue.t.js | require('proof')(2, require('cadence')(prove))
function prove (async, assert) {
var stream = require('stream')
var Queue = require('../queue')
var queue
async(function () {
queue = new Queue(new stream.PassThrough)
queue.write(1 + '\n')
queue.write(2 + '\n')
queue.write(... | JavaScript | 0 | @@ -888,32 +888,32 @@
9dc5 0%5Cn%25 0
-aaaaaaaa
+811c9dc5
811c9dc5 1%5C
|
2809b585a576459257467d016ecb9707734c76a6 | Exit completion mode when a completion is made | src/search_form.js | src/search_form.js | // SearchFormView
define(function (require) {
var _ = require('underscore'),
$ = require('jquery'),
Backbone = require('backbone'),
Handlebars = require('handlebars'),
search_form_tmpl = require('text!./tmpl/search_form.html'),
filter_to_matching_stems = require('./filter_to_matching_stems'),
... | JavaScript | 0.000001 | @@ -2497,32 +2497,72 @@
'suggestions');%0A
+ t.in_completion = false;%0A
r
@@ -4500,39 +4500,16 @@
al('');%0A
- return;%0A
|
e405749fe5ab5e5fe518fdf3ce0c38b301f0ad8c | Move the onClick from the wrapper to the status bullet | src/components/progressTracker/ProgressStep.js | src/components/progressTracker/ProgressStep.js | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import theme from './theme.css';
import Box from '../box';
import { TextSmall } from '../typography';
class ProgressStep extends PureComponent {
render() {
const { label, active, completed, onClick } =... | JavaScript | 0.000001 | @@ -545,26 +545,8 @@
mes%7D
- onClick=%7BonClick%7D
%3E%0A
@@ -662,16 +662,34 @@
ullet'%5D%7D
+ onClick=%7BonClick%7D
/%3E%0A
|
f39dd81176d5a0d1d543261d0be13750244c4067 | Add placeholder abilities route callback. | inspect.js | inspect.js | module.exports = function(app, settings) {
app.get('/status.json', function(req, res) {
res.send({ status: 'true' });
});
/**
* Inspect fields
*/
app.get('/:mapfile_64/fields.json', function(req, res) {
});
/**
* Inspect data
*/
app.get('/:mapfile_64/data.json',... | JavaScript | 0 | @@ -124,32 +124,203 @@
e' %7D);%0A %7D);%0A%0A
+ /**%0A * @TODO expose available fonts (and other 'abilities').%0A */%0A app.get('/abilities.json', function(req, res) %7B%0A res.send(%7B fonts: %5B%5D %7D);%0A %7D);%0A%0A
/**%0A * I
|
78baf93f29c3bbb10f1544a0b6749d2ba2c52c95 | Verify dependency for "Typosquatting Tier 1" is leaked | test/api/ftpFolderSpec.js | test/api/ftpFolderSpec.js | const frisby = require('frisby')
const URL = 'http://localhost:3000'
describe('/ftp', () => {
it('GET serves a directory listing', () => {
return frisby.get(URL + '/ftp')
.expect('status', 200)
.expect('header', 'content-type', /text\/html/)
.expect('bodyContains', '<title>listing directory /f... | JavaScript | 0 | @@ -3521,32 +3521,36 @@
the package.json
+.bak
file by using P
@@ -3775,16 +3775,20 @@
age.json
+.bak
file by
@@ -5094,12 +5094,282 @@
04)%0A %7D)
+%0A%0A it('GET the package.json.bak file contains a dependency on epilogue-js for %22Typosquatting Tier 1%22 challenge', () =%3E %7B%0A return frisby.get(URL + ... |
f86cd214bfa96389082b40fca0334db45731cfaf | fix postinstall path issue | install.js | install.js | var fs = require('fs')
fs.writeFile(__dirname + '/gulpfile.js', 'console.log("Hello, World!")', function (err) {
if (err) {
return console.log(err)
}
console.log('Gulpfile created!')
})
| JavaScript | 0.000001 | @@ -16,16 +16,52 @@
e('fs')%0A
+console.log('dir: ' + process.cwd())
%0Afs.writ
@@ -70,17 +70,21 @@
ile(
-__dirname
+process.cwd()
+ '
|
1f3b63673fd4302276191f91aaf8694c629c7fdf | Use SSH to clone project | install.js | install.js | const fs = require("fs"),
exec = require('child_process').exec,
modules = [
"stc",
"stc-eslint",
"stc-babel",
"stc-typescript",
"stc-uglify",
"stc-dep-parser",
"stc-plugin",
"stc-file",
"stc-cluster",
"stc-cache",
"stc-demo",
"stc-plugin-invoke",
"stc-helper",
"stc-replace",
"stc-cli",
... | JavaScript | 0 | @@ -1313,24 +1313,20 @@
t clone
-https://
+git@
github.c
@@ -1327,17 +1327,17 @@
thub.com
-/
+:
stcjs/$%7B
|
19ed82f2eab0d677e67b364c5bde5ed78f509c19 | change untested methods to TODOs | test/connectionmanager.js | test/connectionmanager.js | describe('ConnectionManager', function() {
it('constructor');
it('inherits from EventEmitter');
it('initialize', function() {
});
it('_startPeerConnection', function() {
});
it('_processQueue', function() {
});
it('_setupIce', function() {
});
it('_setupNegotiationHandler', function() {... | JavaScript | 0.000001 | @@ -106,271 +106,26 @@
it('
-initialize', function() %7B%0A%0A %7D);%0A%0A it('_startPeerConnection', function() %7B%0A%0A %7D);%0A%0A it('_processQueue', function() %7B%0A%0A %7D);%0A%0A it('_setupIce', function() %7B%0A%0A %7D);%0A%0A it('_setupNegotiationHandler', function() %7B%0A%0A %7D);%0A%0A it('_set... |
c843a4431354da1f7b47dc940238270455a22a77 | Fix test | test/extract_spec/sail.js | test/extract_spec/sail.js | 'use strict'
var should = require('should')
var lodash = require('lodash')
module.exports = function (extract) {
describe('sails', function () {
it('brand with model', function () {
[
'loftsails racing blade',
'loft sails racingblade',
'loft racing blade'
].forEach(function (... | JavaScript | 0.000004 | @@ -392,14 +392,8 @@
Loft
- Sails
',%0A
|
f069c5c7c7ef52248c842d784ac8bb746281d442 | add in MQTT bindings through cfg certs | homestar.js | homestar.js | /*
* homestar.js
*
* David Janes
* IOTDB.org
* 2016-03-16
*
* Copyright [2013-2016] [David P. Janes]
*
* 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.ap... | JavaScript | 0 | @@ -849,16 +849,68 @@
'url')%0A%0A
+const iotdb_transport = require('iotdb-transport');%0A
const MQ
@@ -1487,16 +1487,21 @@
%0A%0Aconst
+make_
mqtt_tra
@@ -1506,16 +1506,18 @@
ransport
+er
= funct
@@ -1682,32 +1682,37 @@
method: %22
+make_
mqtt_transport%22,
@@ -1701,32 +1701,34 @@
e_mqtt_transport
+e... |
623d0b962a12cc603e1a45fb60c16e4ca5677cba | Order photos by date | src/actions/photo-actions.js | src/actions/photo-actions.js | import alt from './../alt';
import Photo from './../models/photo';
import Tag from './../models/tag';
class PhotoActions {
constructor() {
this.generateActions(
'getPhotosSuccess',
'getDatesSuccess',
'setDateFilterSuccess',
'updatedPhotoSuccess',
'setImporting'
);
}
updat... | JavaScript | 0 | @@ -675,16 +675,46 @@
ffset(0)
+.orderBy('created_at', 'desc')
;%0A
|
f70ab05a142c4af0eaf7d3b2ca52b9ef5fd187cf | fix default find breadcrumb | lib/router/breadcrumb.js | lib/router/breadcrumb.js | /**
* Breadcrumb handlers
*/
module.exports = {
/**
* Middleware for select the breadcrumb middleware handler
*/
middleware: function metatagMiddleware(req, res, next) {
if (res.locals.breadcrumbHandler) {
if (typeof res.locals.breadcrumbHandler === 'function') {
return res.locals.breadcr... | JavaScript | 0.000005 | @@ -1498,16 +1498,19 @@
'%3Cli
+%3E%3Ca
href=%22/
@@ -1534,24 +1534,28 @@
('Home')+'%3C/
+a%3E%3C/
li%3E'+%0A
|
2717469daf714768a1d9a48cc36cc279002b13c0 | remove extra functions from list.test.js | lib/routes/lists.test.js | lib/routes/lists.test.js | 'use strict';
var _ = require('lodash'),
filename = __filename.split('/').pop().split('.').shift(),
lib = require('./' + filename),
responses = require('../responses'),
sinon = require('sinon'),
log = require('../log');
describe(_.startCase(filename), function () {
var sandbox;
function createMockReq()... | JavaScript | 0.000013 | @@ -197,16 +197,51 @@
inon'),%0A
+ expect = require('chai').expect,%0A
log =
@@ -326,405 +326,8 @@
x;%0A%0A
- function createMockReq() %7B%0A return %7B%7D;%0A %7D%0A%0A function createMockRes() %7B%0A return %7B%7D;%0A %7D%0A%0A /**%0A * Fail unit test immediately with message;%0A * @param %7Bstr... |
a0833bfac62059cd3e24aa10a149df2fd0e84b1b | Update mark.js | lib/rules_inline/mark.js | lib/rules_inline/mark.js | // Process ==highlighted text==
'use strict';
module.exports = function del(state, silent) {
var found,
pos,
stack,
max = state.posMax,
start = state.pos,
lastChar,
nextChar;
if (state.src.charCodeAt(start) !== 0x3D/* = */) { return false; }
if (silent) { return false; } // ... | JavaScript | 0 | @@ -71,11 +71,12 @@
ion
-del
+mark
(sta
|
6fcc6cb99485e853e65a787bb00ef74730a38a7c | update frontend variables to reflect backend | public/angular/js/config.js | public/angular/js/config.js | angular.module('Aggie')
.value('mediaOptions', ['twitter', 'facebook', 'rss', 'elmo', 'smsgh', 'whatsapp'])
.value('apiSettingsOptions', ['twitter', 'facebook', 'elmo', 'gplaces'])
.value('widgetSettingsOptions', ['incident map'])
.value('statusOptions', ['Read', 'Unread', 'Flagged', 'Unflagged', 'Read & Unflagged'... | JavaScript | 0.000001 | @@ -975,10 +975,9 @@
'api
-_k
+K
ey'%5D
|
5965cc63c62ca6944182967939a386702d19f6e2 | Fix unit test expected result | test/functional/format.js | test/functional/format.js | import expect from 'expect';
import expectJSX from 'expect-jsx';
import React from 'react';
import {createRenderer} from 'react-addons-test-utils';
expect.extend(expectJSX);
export default function (ReactIntl) {
describe('format', () => {
const {
IntlProvider,
FormattedDate,
... | JavaScript | 0.000002 | @@ -1389,16 +1389,41 @@
%7B
+%0A
%60$%7Bhours
@@ -1456,19 +1456,108 @@
rs%7D:
-$%7Bminutes%7D
+%60 +%0A %60$%7Bminutes %3C 10 ? %600$%7Bminutes%7D%60 : minutes%7D %60 +%0A %60
$%7Bho
@@ -1580,16 +1580,37 @@
: 'PM'%7D%60
+%0A ... |
8ee99a2492dc1daa55b64a8e60a4d010a28a3da6 | use scoped variables for mock clock | lib/spec-helper/clock.js | lib/spec-helper/clock.js | "use babel";
/* globals jasmine, spyOn, beforeEach */
import _ from "underscore-plus";
window.__realSetTimeout = window.setTimeout;
window.__realClearTimeout = window.clearTimeout;
window.__real__Now = _._.now;
window.__realSetInterval = window.setInterval;
window.__realClearInterval = window.clearInterval;
jasmine.u... | JavaScript | 0 | @@ -82,23 +82,22 @@
plus%22;%0A%0A
-window.
+const
__realSe
@@ -122,31 +122,30 @@
setTimeout;%0A
-window.
+const
__realClearT
@@ -174,23 +174,22 @@
imeout;%0A
-window.
+const
__real__
@@ -203,23 +203,22 @@
._.now;%0A
-window.
+const
__realSe
@@ -249,23 +249,22 @@
terval;%0A
-window.
+const
__realCl
@@ -2... |
3bd8e73958245268edbaa265aac10764a3eb5b82 | Fix labels in rules to be consistent with stat labels. | src/mist/io/static/js/app/controllers/rules.js | src/mist/io/static/js/app/controllers/rules.js | define('app/controllers/rules', [
'app/models/rule',
'ember',
'jquery'
],
/**
*
* Rules controller
*
* @returns Class
*/
function(Rule) {
return Ember.ArrayController.extend({
command: null,
commandRule: null,
metricList: [
... | JavaScript | 0 | @@ -402,16 +402,22 @@
'disk
+-write
',%0A
@@ -435,16 +435,19 @@
'network
+-tx
'%0A
|
daad3b83c2ea69bf44724d7c6d540611eedd60a5 | Tweak karma regex to be more accepting, fix small user comparitor bug | src/behaviors/karma/karma.js | src/behaviors/karma/karma.js | import Behavior from '../behavior.js';
import Karma from './models/karma.js';
const USER_KARMA_REGEX = /^<@(\w+)>(\+\+|\-\-)(?:\s?#\s?((?:[\s\S])+))?/gi,
USER_REGEX = /<@(\w+)>/gi;
const BEATZ_ID = 'D2HRBHJ7R';
class KarmaBehavior extends Behavior {
constructor(settings) {
settings.name = 'Karma';
setting... | JavaScript | 0 | @@ -108,16 +108,27 @@
@(%5Cw+)%3E(
+?:%5B%5Cs%5C:%5D*)(
%5C+%5C+%7C%5C-%5C
@@ -2059,23 +2059,32 @@
rId ===
+messageData.
user
-.id
) %7B%0A
|
386edcb6f57b9e63de00ee4d5cd8b140984c6b3f | Update BSTNode to accept _store payload on construction | src/binary_trees/BSTNode.es6 | src/binary_trees/BSTNode.es6 | import 'core-js/shim';
const IM = require('immutable');
export default class BSTNode {
constructor(key, value, left, right, id) {
this._store = IM.Map({ '_key': key, '_value': value, '_left': left, '_right': right, '_id': id });
Object.freeze(this);
}
get store() {
return this._store;
}
get k... | JavaScript | 0 | @@ -124,24 +124,93 @@
ight, id) %7B%0A
+ if (IM.Map.isMap(key)) %7B%0A this._store = key;%0A %7D else %7B%0A
this._st
@@ -300,16 +300,22 @@
id %7D);%0A
+ %7D%0A
Obje
|
cf8ef13793e5d50b8dfa7993bdc824df452a4925 | add redirect to signin page if server resource is not available (due to user not being authenticated | public/js/modules/events.js | public/js/modules/events.js | angular.module('eventsInfo', [])
.constant('moment', moment)
.controller('eventsController', function($scope, $state, Eventstored, moment, $interval, $window) {
$scope.eve = {};
$scope.eve.eventDate = '';
$scope.eve.eventDescription = '';
$scope.eve.eventAlert = '';
$scope.eve.eventTime = '';
... | JavaScript | 0 | @@ -643,16 +643,25 @@
vents) %7B
+%0A
%0A%0A
@@ -1271,32 +1271,48 @@
().then(function
+ successCallback
(events) %7B%0A
@@ -1730,32 +1730,32 @@
atData(events);%0A
-
$scope.b
@@ -1777,32 +1777,276 @@
ormattedEvents;%0A
+ %7D,function errorCallback(response) %7B%0A%0A //do no... |
99b41aced5950b8b29f652da807f9c320c1b58a7 | Update API Url | src/utils/config.js | src/utils/config.js | export default {
title: 'zsx\'s Blog',
author: 'zsx',
github: 'https://github.com/zsxsoft',
themeUrl: 'https://github.com/zsxsoft/blog.zsxsoft.com',
apiUrl: 'https://blog.zsxsoft.com/api',
titleOnlyCategoires: ['5', '6', '7'],
analytics: {
google: 'UA-128215311-1',
tencent: '21682966',
baidu:... | JavaScript | 0 | @@ -160,22 +160,72 @@
apiUrl:
+process.browser ? 'https://blog.zsxsoft.com/api' :
'http
-s
://blog.
|
869dca79cb7e3e30606b9a294adef8442c6d7f85 | change right on stat | src/stats/stats.js | src/stats/stats.js | angular.module('angular-login.stats', ['angular-login.grandfather'])
.config(function ($stateProvider) {
$stateProvider
.state('app.stats', {
url: '/stats',
templateUrl: 'stats/stats.tpl.html',
controller: 'StatsController',
control... | JavaScript | 0.000001 | @@ -365,36 +365,38 @@
l: accessLevels.
-dlaf
+public
%0A %7D)%0A
@@ -953,12 +953,14 @@
els.
-dlaf
+public
%0A
|
68d5dcacca1fdea8309c39b019a90edc8515f9aa | Fix bug | src/utils/config.js | src/utils/config.js | import * as fs from 'fs';
import * as yaml from 'js-yaml';
import * as inquirer from 'inquirer';
export const configDirPath = `${__dirname}/../../.config`;
export const configPath = `${configDirPath}/config.yml`;
const form = [
{
type: 'input',
name: 'maintainer',
message: 'Maintainer name(and email address):'... | JavaScript | 0.000001 | @@ -1,52 +1,51 @@
-import * as fs from
+const fs = require(
'fs'
+)
;%0A
-import * as yaml from
+const yaml = require(
'js-
@@ -53,36 +53,36 @@
aml'
+)
;%0A
-import * as inquirer from
+const inquirer = require(
'inq
@@ -91,18 +91,12 @@
rer'
+)
;%0A%0A
-export
cons
@@ -147,15 +147,8 @@
g%60;%0A
-export
c... |
c8e847240b1d356e1ae3e41280980a952eb96572 | add logger back in | src/store/index.js | src/store/index.js | import {
createStore,
applyMiddleware,
combineReducers,
compose,
} from 'redux';
import thunkMiddleware from 'redux-thunk';
import createLogger from 'redux-logger';
import {
routerReducer as routing,
routerMiddleware,
} from 'react-router-redux';
import { browserHistory } from 'react-router';
import app fro... | JavaScript | 0.000001 | @@ -509,19 +509,16 @@
ware),%0A
- //
applyMi
|
b5399158e00b3e6806b1b6cd0680dd458e442cb5 | Return null for no data | src/store/utils.js | src/store/utils.js | // Utilities
/**
* Return values scaled by baseline
*/
export const baselineScale = (values, baseline) => {
return values.map(d => {
return {
week: d.week,
data: baseline ? ((d.data / baseline) - 1) * 100 : -1
}
})
}
/**
* Get data with maximum lag
* First element of the lag array
*/
expo... | JavaScript | 0.000196 | @@ -400,18 +400,20 @@
eturn =
--1
+null
%0A //
|
4aca9e7d512b9666f36d37b6526a11931876be32 | Add grid boundaries | public/js/states/running.js | public/js/states/running.js | /**
* running.js
* Running game state
*/
var RunningState = function(){
var RunningStateClass = function(){
}
RunningStateClass.prototype.preload = function(){}
RunningStateClass.prototype.create = function(){
this.game.stage.backgroundColor = '#FAED95'
var self... | JavaScript | 0.000001 | @@ -463,16 +463,158 @@
d(self)%0A
+ %0A this.numberOfCells = this.game.stage.width*this.game.stage.height*0.01;%0A console.log(this.numberOfCells);%0A
@@ -1495,32 +1495,60 @@
(self)%7B%0A
+var stage = self.game.stage;
%0A self.gr
@@ -1738,32 +1738,33 @@
FCDB... |
a4cd3d4cbe5d7c3ef7781e25b368df894e0cf60d | update time automagically. | public/js/views/universe.js | public/js/views/universe.js | window.UniverseListView = function(options){
var draggable = 'draggable' in options ? options['draggable'] : false;
var collection = options['collection'];
var el = $('#content');
if(options['el'])
el = options['el'];
this.collection = collection;
this.el = el;
el.html(template.uni... | JavaScript | 0 | @@ -450,32 +450,61 @@
nction(model) %7B%0A
+ var self = this;%0A
kb.V
@@ -550,32 +550,32 @@
is, arguments);%0A
-
opti
@@ -710,14 +710,25 @@
del.
-models
+get('collection')
);%0A
@@ -780,16 +780,147 @@
tion()%7B%0A
+//XXX: keep this, it tells KO to update total_time when someth... |
2607d2c0758697cb6a6fa5fff324508afed8979a | Allow setting of styles on empty Groups. | src/style/Style.js | src/style/Style.js | /*
* Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
* http://paperjs.org/
*
* Copyright (c) 2011 - 2013, Juerg Lehni & Jonathan Puckey
* http://lehni.org/ & http://jonathanpuckey.com/
*
* Distributed under the MIT license. See LICENSE file for details.
*
* All rights reserved.
*/
/**
* @name ... | JavaScript | 0 | @@ -2457,16 +2457,39 @@
children
+ && children.length %3E 0
) %7B%0A%09%09%09%09
@@ -3301,16 +3301,41 @@
children
+ %7C%7C children.length === 0
)%0A%09%09%09%09%09%09
|
dcbe5a564b56eed96eaa45395d929937b8d8674c | Fix links in 'drop/ship' pages | public/scripts/drop/ship.js | public/scripts/drop/ship.js | function loadData(query) {
$.getJSON('/drop/ship/' + query.id + "/" + query.rank + ".json", function(obj) {
var table = $('table');
items = [];
$.each(obj.data, function(map, val) {
items.push({
quest: map,
totalCount: val.totalCount,
sCount: val.rankCount ? val.rankCoun... | JavaScript | 0.000001 | @@ -1,16 +1,32 @@
+var rank = '';%0A%0A
function loadDat
@@ -147,16 +147,39 @@
able');%0A
+ rank = query.rank;%0A
%0A
@@ -1088,26 +1088,222 @@
%7B%0A
-return '%3Ca href=%22#
+var val = value.replace('(Boss)', '').replace('%E7%94%B2', 3).replace('%E4%B9%99', 2).replace('%E4%B8%99', 1).split('-');%0A ret... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.