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 |
|---|---|---|---|---|---|---|---|
1257a858e307fd731a9efc046fd1ba87331be7ae | test contribute | app.js | app.js | /**
* Module dependencies.
*/
var express = require('./opt/lib/node_modules/express');
var routes = require('./routes');
var user = require('./routes/user');
var device = require('./routes/device');
var monitor = require('./routes/monitor');
var http = require('http');
var path = require('path');
var app = expre... | JavaScript | 0 | @@ -26,17 +26,16 @@
s.%0A */%0A%0A
-%0A
var expr
|
472d58bfb296d77e1a79701a64596bdd3ae0f950 | Add compression to app | app.js | app.js | /**
* Module dependencies.
*/
const express = require('express');
/**
* Express configuration.
*/
const app = express();
/**
* Express configuration.
*/
app.set('port', process.env.PORT || 3000);
/**
* Catch all error requests
*/
app.use(function(err, req, res, next) {
console.error(err.stack);
res.statu... | JavaScript | 0.000001 | @@ -60,16 +60,60 @@
press');
+%0Aconst compression = require('compression');
%0A%0A/**%0A *
@@ -162,16 +162,40 @@
press();
+%0Aapp.use(compression());
%0A%0A/**%0A *
|
c18875bd5bc73807bec4c20197cce275e08bce46 | update root route | app.js | app.js | var
express = require('express'),
app = express(),
ejs = require('ejs'),
ejsLayouts = require('express-ejs-layouts'),
mongoose = require('mongoose'),
flash = require('connect-flash'),
logger = require('morgan'),
cookieParser = require('cookie-parser'),
bodyParser = require... | JavaScript | 0.000001 | @@ -688,9 +688,8 @@
')))
-;
%0A%0A//
@@ -920,16 +920,26 @@
. Sweet!
+ (gift-db)
')%0A%7D)%0A%0A/
@@ -1354,21 +1354,47 @@
res.
-render('index
+sendFile(_dirname + '/views/roulette.js
')%0A%7D
@@ -1439,16 +1439,17 @@
tes)%0A%0A//
+
product/
@@ -1464,16 +1464,17 @@
utes%0A%0A//
+
api rout
|
796174d58262bafa0157684ae6e28e455dec82b3 | Fix 'template' error replacing View with Template (suggested in blog comments) | app.js | app.js | import {Component, View, bootstrap} from 'angular2/angular2';
// Annotation section
@Component({
selector: 'my-app'
})
@View({
inline: '<h1>Hello {{ name }}</h1>'
})
// Component controller
class MyAppComponent {
constructor() {
this.name = 'Alice'
}
}
bootstrap(MyAppComponent); | JavaScript | 0 | @@ -12,20 +12,24 @@
ponent,
-View
+Template
, bootst
@@ -126,12 +126,16 @@
%7D)%0A@
-View
+Template
(%7B%0A
|
8c927966da6778c0a7400e5769b13d92a3da8752 | Add a comment for test purposes | app.js | app.js | var express = require('express')
, http = require('http')
, fs = require('fs')
, passport = require('passport')
, LocalStrategy = require('passport-local').Strategy
, path = require('path');
var app = express();
// all environments
app.set('port', process.env.PORT || 4000);
app.use(express.logger('dev'));
ap... | JavaScript | 0 | @@ -1023,24 +1023,79 @@
user);%0A%7D;%0A%0A
+// returns user object by finding username by username%0A
function fin
|
0ac45ef7e26d54ca5089b423aa38b9b3b386bd66 | add fs module | app.js | app.js | const express = require("express");
const bodyParser = require("body-parser");
const flash = require("connect-flash");
const mongoose = require("mongoose");
const session = require("express-session");
const path = require("path");
const passport = require("passport");
const cookieParser = require("cookie-parser");
con... | JavaScript | 0.000001 | @@ -308,16 +308,42 @@
arser%22);
+%0Aconst fs = require(%22fs%22);
%0A%0Aconst
|
688a5bb432a7c03cceec9770bd454bd2ca47e5a2 | update app details yet again | app.js | app.js | 'use strict';
// Module Dependencies
// -------------------
var express = require('express');
var http = require('http');
var JWT = require('./lib/jwtDecoder');
var path = require('path');
var request = require('request');
var routes = require('./routes');
var activity = require('.... | JavaScript | 0 | @@ -582,43 +582,43 @@
: '
-a6e7140c-2606-4bd1-889d-af8cfa63976
+2421d8a7-6578-44cc-9725-7728e2a4644
f',%0A
@@ -644,32 +644,32 @@
: '
-ek91sy2mc1v4ng6u013p8ato
+c0ynecuc5r28dad1umbtbj7t
',%0A
@@ -694,32 +694,32 @@
: '
-QyJeUpjAHkiudlTIwHPUKb31
+Yfv74IZTfTlTccaq86nhmyvH
',%0A
@@ -744,263 +744,263 @@
: '
-zna... |
fa4b23bde87a0b420c7fe79e8a434ce9fd47146f | reorganized the init-functions as a Marionette-module | app.js | app.js | var stringify = require('json-stringify-safe');
var _ = require('underscore');
var domify = require('domify');
var templates = require('./templates/compiled');
var domReady = require('domready');
var User = require('./models/user');
var PlayRouter = require('./routers/playrouter');
var MainLayout = require('./vi... | JavaScript | 0.999394 | @@ -547,16 +547,18 @@
ts = %7B%0D%0A
+%0D%0A
init
@@ -618,16 +618,78 @@
this;%0D%0A
+ var App = window.app = new Marionette.Application();%0D%0A
@@ -1194,19 +1194,51 @@
elf.init
-App
+Module(App);%0D%0A App.start
();%0D%0A
@@ -1265,19 +1265,22 @@
init
-App
+Module
: functi... |
b520f43511738eefaa0d48c734dff9c7ffe6f2e3 | Fix weird redirect upon login | app.js | app.js | /**
* Module dependencies.
*/
const express = require('express');
const compression = require('compression');
const session = require('express-session');
const bodyParser = require('body-parser');
const logger = require('morgan');
const chalk = require('chalk');
const errorHandler = require('errorhandler');
const lus... | JavaScript | 0 | @@ -3571,102 +3571,8 @@
t);%0A
-app.get('/signup', userController.getSignup);%0Aapp.post('/signup', userController.postSignup);%0A
app.
@@ -4042,340 +4042,8 @@
);%0A%0A
-app.get('/api/github', passportConfig.isAuthenticated, passportConfig.isAuthorized, apiController.getGithub);%0A%0Aapp.get('/auth/github', passport... |
461084cc72f3012905527dde321808e28d1020c0 | Add missing shebang | bin.js | bin.js | function usage () {/*
Usage
http-file-store --config=/path/to/config.json
Options
--config | -c Path to the JSON configuration file
--verbose | -v Enable verbosity pass in the module list to debug.
Config
The configuration is a plain json object describing several options to
apply to your instance ... | JavaScript | 0.99982 | @@ -1,8 +1,29 @@
+#!/usr/bin/env node%0A%0A
function
|
83ed66786a4ceeed0a4fac71163b67ec7fd2229a | change channel | bot.js | bot.js | var botkit = require('botkit');
var token = process.env.BOTKIT_SLACK_VERIFY_TOKEN;
var controller = botkit.slackbot({
debug: false
}).configureSlackApp({
clientId: process.env.BOTKIT_SLACK_CLIENT_ID,
clientSecret: process.env.BOTKIT_SLACK_CLIENT_SECRET,
scopes: ['commands']
}
);
controller.setupWebserver(pro... | JavaScript | 0.000002 | @@ -965,18 +965,15 @@
nd #
-team-alpha
+general
to
|
610bcfe56f8fef1d2d0b097eabf55703d1ef5fca | Set bot game status | bot.js | bot.js | const commando = require('discord.js-commando');
const path = require('path');
const oneLine = require('common-tags').oneLine;
const CalendarSequelize = require('./src/calendar/CalendarSequelize.js');
const EventCalendar = require('./src/calendar/EventCalendar.js');
let config
try {
config = require('./con... | JavaScript | 0 | @@ -936,24 +936,107 @@
er.id%7D)%60);%0D%0A
+ client.user.setGame('You must be tired after today %7C Let%E2%80%99s go to sleep.')%0D%0A
%7D)%0D%0A
|
c881da66272c39db888ef6c25dc59b4cddbdb0ef | add cli alias: `-h`. | cli.js | cli.js | #!/usr/bin/env node
/**
* @file cli
* @author junmer
*/
/* eslint-env node */
'use strict';
var fs = require('fs');
var meow = require('meow');
var path = require('path');
var stdin = require('get-stdin');
var Fontmin = require('./');
var _ = require('lodash');
var cli = meow({
help: [
'Usage',
... | JavaScript | 0 | @@ -1344,16 +1344,35 @@
ow-time'
+,%0A h: 'help'
%0A %7D%0A%7D
@@ -2851,16 +2851,90 @@
zed.ttf'
+,%0A '',%0A 'See %60fontmin --help%60 for more information.'
%0A
|
06c417181cf4b0b0235a5a79cb02528252d5f93c | Add a short flags for `help` and `version` options (#14) | cli.js | cli.js | #!/usr/bin/env node
'use strict';
const chalk = require('chalk');
const meow = require('meow');
const githubRepos = require('./');
const cli = meow(`
Usage
$ github-repositories kevva
$ github-repositories kevva --token 523ef69119eadg12
Options
-f, --forks Only list forks
-r, --repos Only display ... | JavaScript | 0 | @@ -547,16 +547,29 @@
lias: %7B%0A
+%09%09h: 'help',%0A
%09%09f: 'fo
@@ -629,16 +629,32 @@
: 'urls'
+,%0A%09%09v: 'version'
%0A%09%7D%0A%7D);%0A
|
060b87db47058cdd3941b5a716f49dd95c8eb785 | Disable the file name without a extension and add the error message on the case of the config file not found | cli.js | cli.js | #! /usr/bin/env node
'use strict';
var Liftoff = require('liftoff');
var argv = require('minimist')(process.argv.slice(2));
var Stubbatti = require('./');
// construct stubbatti DSL vocabulary
var stubbatti = new Stubbatti();
Stubbatti.methods.forEach(function (method) {
global[method] = function (path, body... | JavaScript | 0.000001 | @@ -150,16 +150,67 @@
('./');%0A
+var homepage = require('./package.json').homepage;%0A
%0A%0A// con
@@ -751,26 +751,8 @@
js':
- null,%0A '':
nul
@@ -831,24 +831,293 @@
on (env) %7B%0A%0A
+ console.log('Stubbatti server version %25s.', Stubbatti.version);%0A%0A if (!env.configPath) %7B%0A cons... |
8b9fc3a40d2d6f4d53f8dadf1c565461e57d5678 | Update CLI help | cli.js | cli.js | #!/usr/bin/env node
'use strict'
const meow = require('meow')
const ghDescription = require('./')
const Promise = require('bluebird')
const gitconfig = require('gitconfiglocal')
const pify = require('pify')
const ghauth = Promise.promisify(require('ghauth'))
const authOptions = {
configName: 'gh-description',
note... | JavaScript | 0 | @@ -533,16 +533,88 @@
-Current
+Set and get a GitHub repository description%0A $ gh-description RichardLitt/gh-
desc
@@ -620,17 +620,20 @@
cription
-:
+%0A
Set and
|
09870f4b58bfc99060c6ad9915336f16e3e6833e | fix code style | cli.js | cli.js | #!/usr/bin/env node
'use strict';
var fs = require('fs');
var meow = require('meow');
var path = require('path');
var stdin = require('get-stdin');
var Fontmin = require('./');
var cli = meow({
help: [
'Usage',
' $ fontmin <file> <directory>',
' $ fontmin <directory> <output>',
'... | JavaScript | 0.000022 | @@ -13,16 +13,80 @@
nv node%0A
+%0A/**%0A * @file cli%0A * @author junmer%0A */%0A%0A/* eslint-env node */%0A%0A
'use str
@@ -1031,15 +1031,17 @@
+'
boolean
+'
: %5B%0A
@@ -1263,17 +1263,16 @@
+%5C.%5Cw*$/
-g
.test(pa
@@ -1364,16 +1364,20 @@
);%0A %7D
+%0A
catch (
@@ -1451,34 +1451,33 @@
cli.fl... |
6367e728b8d93227e79da5806d94ff0e402a6c6c | more verbose output | cli.js | cli.js | #!/usr/bin/env node
var fs = require("fs");
var path = require('path');
var chalk = require('chalk');
var Table = require('cli-table');
var async = require('async');
var theGit = require('git-state');
var Spinner = require('cli-spinner').Spinner;
var spinner = null;
var table = null;
var cwd = null;
var debug = fal... | JavaScript | 0.999977 | @@ -677,16 +677,23 @@
head: %5B
+%0A
chalk.cy
@@ -709,16 +709,23 @@
tory'),
+%0A
chalk.cy
@@ -747,16 +747,139 @@
nch/NA')
+, %0A chalk.cyan('Ahead'), %0A chalk.cyan('Dirty'), %0A chalk.cyan('Untracked'), %0A chalk.cyan('Stashes')%0A
%5D%0A %7D);%0A
@@ -1870,16 +1870,210 @@
... |
5d17767bc10f9f27a512fef1b7dd908b99d40f37 | Formatted summary output | cli.js | cli.js | /*eslint no-console: ["error", {allow: ["log"]}] */
var validate = require('./index.js');
var colors = require('colors/safe');
var fs = require('fs');
module.exports = function (dir, options) {
options.filesPerIssueMax = 10;
if (fs.existsSync(dir)) {
validate.BIDS(dir, options, function (errors, warni... | JavaScript | 0.999793 | @@ -59,16 +59,17 @@
alidate
+
= requir
@@ -96,16 +96,19 @@
colors
+
= requir
@@ -129,18 +129,97 @@
');%0Avar
-fs
+cliff = require('cliff');%0Avar pluralize = require('pluralize');%0Avar fs
= requi
@@ -2268,221 +2268,238 @@
) %7B%0A
+%0A
-console.log(colors.blue.underline('%5Ct' + 'Summa... |
d0cc6914cb40d19e2c40abb0e3185b26d52509c6 | Drop support for really old browsers | grunt/autoprefixer-settings.js | grunt/autoprefixer-settings.js | module.exports = {
browsers: [
//
// Official browser support mirrors Bootstrap's policy:
// http://v4-alpha.getbootstrap.com/getting-started/browsers-devices/#supported-browsers
//
'Chrome >= 35', // Exact version number here is kinda arbitrary
// Rather than using A... | JavaScript | 0 | @@ -32,191 +32,8 @@
: %5B%0A
- //%0A // Official browser support mirrors Bootstrap's policy:%0A // http://v4-alpha.getbootstrap.com/getting-started/browsers-devices/#supported-browsers%0A //%0A
@@ -51,10 +51,10 @@
%3E=
-35
+49
', /
@@ -103,73 +103,38 @@
rary
-%0A // Rather... |
7da5833c957ccfb52c82fe6073476c81c7e88b87 | Fix path.join error in Node 7.1; added support for enabling/disabling transforms via env variables | register.js | register.js | var fs = require( 'fs' );
var path = require( 'path' );
var crypto = require( 'crypto' );
var homedir = require( 'os-homedir' );
var buble = require( './' );
var original = require.extensions[ '.js' ];
var nodeModulesPattern = path.sep === '/' ? /\/node_modules\// : /\\node_modules\\/;
var nodeVersion = /(?:0\.)?\d+/... | JavaScript | 0 | @@ -688,16 +688,421 @@
%0A%09%7D%0A%7D;%0A%0A
+function configTransform (transforms, enabled) %7B%0A%09options.transforms = options.transforms %7C%7C %7B%7D; %0A%09transforms.forEach(function (transform) %7B%0A%09%09options.transforms%5Btransform.trim()%5D = enabled;%0A%09%7D);%0A%7D%0A%0Aif (process.env.BUBLE_OPTION_... |
a226e7e6c8a63c6ed3f37ea69bfa4fb9fb9050d8 | clean whitespace | renderer.js | renderer.js | // This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
const electron = require('electron')
const request = require('request')
// handler to get company name
let companyNameHandler = debounce(function() ... | JavaScript | 0.999541 | @@ -3064,17 +3064,18 @@
iate) %7B%0A
-%09
+
var time
@@ -3078,17 +3078,18 @@
timeout%0A
-%09
+
return f
@@ -3100,18 +3100,20 @@
ion() %7B%0A
-%09%09
+
var cont
@@ -3141,18 +3141,20 @@
guments%0A
-%09%09
+
var late
@@ -3170,19 +3170,22 @@
ion() %7B%0A
-%09%09%09
+
timeout
@@ -3195,11 +3195,1... |
54a5a792025ebd324f01e6ac386b0412ed97d122 | Change window size | app/main.js | app/main.js | /**
* @module drivshare-gui/main
*/
'use strict';
var app = require('app');
var BrowserWindow = require('browser-window');
var main = null;
app.on('ready', function () {
var ipc = require('electron-safe-ipc/host');
var dialog = require('dialog');
var ApplicationMenu = require('./lib/menu');
var menu = new... | JavaScript | 0.000001 | @@ -375,17 +375,17 @@
width: 6
-2
+0
0,%0A h
@@ -395,11 +395,11 @@
ht:
-720
+635
%0A %7D
|
8b3bb16c3afccedf5570a015f370d9299c917182 | create the otone_data folder incase it doesn't already exist | app/main.js | app/main.js | if (require('electron-squirrel-startup')) return;
const fs = require('fs')
const child_process = require('child_process')
const http = require('http')
const path = require('path')
const electron = require('electron')
const {app, BrowserWindow, powerSaveBlocker} = electron
const autobahn = require('autobahn')
c... | JavaScript | 0 | @@ -1301,16 +1301,144 @@
t there%0A
+%0A try %7B%0A fs.mkdirSync(app.getPath('userData') + '/otone_data');%0A %7D%0A catch(e) %7B%0A //file already exists%0A %7D%0A%0A
fs.a
|
ab6834a41a90a1983715bd4d8f550600ecca7417 | Remove dead code. | app/site.js | app/site.js | /**
* Module dependencies.
*/
var kerouac = require('kerouac')
, fs = require('fs')
, path = require('path');
var DASHED_REGEX = /^(\d+)-(\d+)-(\d+)-(.*)/;
exports = module.exports = function(
postHandler,
atomFeed, rssFeed, rdfFeed, jsonFeed,
postsDB) {
var dir, options;
if (typeof dir == 'obj... | JavaScript | 0.00001 | @@ -1993,1428 +1993,8 @@
%7D);%0A
- %0A return;%0A %0A %0A fs.readdir(dir, function(err, files) %7B%0A if (err && err.code == 'ENOENT') %7B%0A return done();%0A %7D else if (err) %7B return done(err); %7D%0A %0A var idx = 0%0A , file, base, ext%0A , url;%0A ... |
118a051aa1573af86b83fcb5f465cbfca1c1c093 | update tests | app/test.js | app/test.js | 'use strict';
/* eslint max-nested-callbacks:[2,5] */
const path = require('path'),
test = require('yeoman-test'),
assert = require('yeoman-assert'),
folder = path.join('components', 'foo'),
tpl = 'template.nunjucks',
all = 'all.css',
print = 'print.css',
schema = 'schema.yml',
bootstrap = 'bootstrap.... | JavaScript | 0.000001 | @@ -227,42 +227,26 @@
,%0A
-all = 'all.css',%0A print = 'print.
+styles = 'styles.s
css'
@@ -916,12 +916,16 @@
dds
-all.
+styles.s
css'
@@ -977,19 +977,22 @@
folder,
-all
+styles
);%0A%0A
@@ -1085,11 +1085,14 @@
rint
-.cs
+ style
s',
@@ -1142,21 +1142,22 @@
folder,
-print
+styles
);%0A%0A
@@ -1... |
533833d77577306c8250410dba1ef3332cc4c1e6 | Add master to admins when added to group | handlers/middlewares/addedToGroup.js | handlers/middlewares/addedToGroup.js | 'use strict';
// Bot
const bot = require('../../bot');
const { replyOptions } = require('../../bot/options');
const { addGroup, managesGroup } = require('../../stores/group');
const { masterID } = require('../../config.json');
const addedToGroupHandler = async (ctx, next) => {
const msg = ctx.message;
const wasAd... | JavaScript | 0 | @@ -101,24 +101,72 @@
options');%0A%0A
+const %7B admin %7D = require('../../stores/user');%0A
const %7B addG
@@ -475,16 +475,35 @@
erID) %7B%0A
+%09%09admin(ctx.from);%0A
%09%09if (!a
|
442068ba85a93ff8cf79dc645bc35993d0c50c2b | switch to vercel and netlify path | public/former/js/script.js | public/former/js/script.js | $(document).ready(function () {
// initialize tab
$('#tabs').tabs();
/** binding */
// select url when focus on #url [text input]
$('#url').bind('click', function () {
this.select();
});
// select lyric all
$('#select').bind('click', function (e) {
$('#lyric_div > textarea').focus();
$('#l... | JavaScript | 0 | @@ -1389,24 +1389,303 @@
').show();%0A%0A
+ var appPath = '/app';%0A var host = window.location.hostname.toLowerCase();%0A if (host.endsWith('.vercel.app')) %7B%0A appPath = 'api/lyric/get/' + encodeURIComponent(url);%0A %7D%0A if (host.endsWith('.netlify.app')) %7B%0A appPath = '.netlify/func... |
4403c1c0371aac63c0e79731f70c3faa8aa22f92 | Decrease timeout of retry | config/configuration.js | config/configuration.js | 'use strict';
/**
* @file Defines the provider settings.
*
* Will set the path to Mongo, and applications id
* Most of the configuration can be done using system environment variables.
*/
// Load environment variables from .env file
var dotenv = require('dotenv');
dotenv.load();
// node_env can either be "devel... | JavaScript | 0.000018 | @@ -1538,18 +1538,17 @@
yDelay:
-20
+4
* 1000,
|
8e1c8c4be843f18f30a1b3bbb1b10a03cd37c759 | Add config.appName | config/configuration.js | config/configuration.js | /**
* @file Defines the provider settings.
*
* Will set the path to Mongo, and applications id
* Most of the configuration can be done using system environment variables.
*/
// Load environment variables from .env file
var dotenv = require('dotenv');
dotenv.load();
// node_env can either be "development" or "pro... | JavaScript | 0.000009 | @@ -1221,16 +1221,49 @@
ECRET,%0A%0A
+ appName: process.env.APP_NAME,%0A
provid
|
9501e6d5f050bdb3ad7a80a625d13c30fc4cf51b | Allow htmltemplate option for photon (#151) | src/geocoders/photon.js | src/geocoders/photon.js | var L = require('leaflet'),
Util = require('../util');
module.exports = {
class: L.Class.extend({
options: {
serviceUrl: 'https://photon.komoot.de/api/',
reverseUrl: 'https://photon.komoot.de/reverse/',
nameProperties: [
'name',
'street',
'suburb',
'hamlet',
'town',
'city',
'st... | JavaScript | 0 | @@ -1631,16 +1631,112 @@
ame(f),%0A
+%09%09%09%09%09%09html: this.options.htmlTemplate ?%0A%09%09%09%09%09%09%09this.options.htmlTemplate(f)%0A%09%09%09%09%09%09%09: undefined,%0A
%09%09%09%09%09%09ce
|
ec34ddc5fb99d80bdb07a33a09450e7c9e0f022d | Reformat code | src/geometry/Polygon.js | src/geometry/Polygon.js | U.Polygon = U.Collection.extend({
init:function (outRing, innerRings) {
this.outRing = outRing;
this.innerRings = innerRings;
// add it to the geometries collection for maintain.
if(this.outRing){
this.addGeometry(this.outRing,0);
}
if(this.innerRings){
... | JavaScript | 0 | @@ -3992,24 +3992,25 @@
ne(points);%0A
+%0A
return n
|
089acd688aa2332386d3240f4c89f2da653a21ab | Fix remaining specs | lib/directory-view.js | lib/directory-view.js | const {CompositeDisposable} = require('atom')
const getIconServices = require('./get-icon-services')
const Directory = require('./directory')
const FileView = require('./file-view')
module.exports =
class DirectoryView {
constructor(directory) {
this.directory = directory
this.subscriptions = new CompositeDi... | JavaScript | 0.000001 | @@ -4186,16 +4186,29 @@
entry)%0A%0A
+%3C%3C%3C%3C%3C%3C%3C HEAD%0A
%3C%3C%3C%3C%3C%3C%3C
@@ -4407,16 +4407,131 @@
x specs%0A
+=======%0A const subscription = this.directory.onDidRemoveEntries(removedEntries =%3E %7B%0A%3E%3E%3E%3E%3E%3E%3E Fix remaining specs%0A
if
@@ -4639,24 +4639,37 @@
%3C%3C%3C%3C%3... |
a0bb86b3c40b93523253aa422bd37275ca100ae9 | Update dashboard-controller.js | www/dashboard/dashboard-controller.js | www/dashboard/dashboard-controller.js | 'use strict';
angular.module('MyApp.controllers')
.value('BASE_URL', 'https://noticeapp.firebaseio.com/')
.controller('DashboardCtrl', function($firebase, $scope, Auth, md5, $ionicModal, User, $http) {
var noticeRef = new Firebase('https://trynotice.firebaseio.com/notifications');
$scope.notifications = $fireb... | JavaScript | 0.000001 | @@ -2444,16 +2444,23 @@
+$scope.
dataLoad
|
79dcb4083ee3520bdfd4de08dd1d1cdaeb06497c | Update dashboard-controller.js | www/dashboard/dashboard-controller.js | www/dashboard/dashboard-controller.js | 'use strict';
angular.module('MyApp.controllers')
.value('BASE_URL', 'https://noticeapp.firebaseio.com/')
.controller('DashboardCtrl', function($firebase, $scope, Auth, md5) {
var noticeRef = new Firebase('https://noticeapp.firebaseio.com/notifications');
$scope.notifications = $firebase(noticeRef);
$sc... | JavaScript | 0.000001 | @@ -404,12 +404,8 @@
e =
-'%22%22'
'';%0A
|
9b75c8804f946d4ad476dadb42cd85942c4ec9f5 | Fix scroll bug in tabs.js | public/javascripts/tabs.js | public/javascripts/tabs.js | TAB_HEADINGS = 'h2';
TAB_CLASS = 'tab';
SECTION_CLASS = 'section';
QUERY_SECTION_ARG = 'section';
TAB_SELECTED_CLASS = 'selected';
TAB_NOT_SELECTED_CLASS = 'not-selected';
LOADING_ELM_ID = 'loading';
CONTENT_HOLDER_ID = 'content-holder';
lastSection = -1
function checkHash() {
var section = get... | JavaScript | 0.000001 | @@ -1229,24 +1229,110 @@
adings%5Bi%5D);%0A
+ headings%5Bi%5D.setAttribute('origId', headings%5Bi%5D.id)%0A headings%5Bi%5D.id = null;%0A
%7D%0A //
@@ -2098,25 +2098,29 @@
tAttribute('
-i
+origI
d') %7C%7C secti
@@ -2189,24 +2189,26 @@
on) %7B%0A
+//
var y = type
@@ -2430,16 +2430,18 @@
;%... |
26b9b6d75edb0c974339ae1aa9396804268b5c5f | Update forum.js | developer/forum.js | developer/forum.js | //todo write angular scripts for developer page.
var developerKingdomModule = angular.module('app', []).
controller("forumCtrl", function forumCtrl($scope, $window, $http){
$scope.forum = {
threads: [{subject: "blah blah blah", posts: [{user: "user1", time: (new Date()).toLocaleString(), message: "hi how u ... | JavaScript | 0 | @@ -244,382 +244,73 @@
s: %5B
-%7Buser: %22user1%22, time: (new Date()).toLocaleString(), message: %22hi how u doing%22%7D, %7Buser: %22user2%22, time: (new Date()).toLocaleString(), message: %22lol wassup%22%7D%5D%7D,%0A%09%09%09%09%7Bsubject: %22how to add your own functions%22, posts: %5B%7Buser: %22user1%22, tim... |
7b42a4e5b7f077cda8b636076c7e7ce48304b12f | Move default plot to AAB | public/scripts/fireplot.js | public/scripts/fireplot.js | //Set Default Values
var region = 'Boreal';
var replicate = '0';
var simfile = "/json/alfresco/1.00.json";
var obsfile = "/json/alfresco/Historical.json";
//var obsfile = "/json/alfresco/Observed.json";
var plot = "DFN";
var maxreps = 200;
var startyear = 1950;
var endyear = 2014;
var ppk = 1; // Pixels Per Kilometer
... | JavaScript | 0 | @@ -208,19 +208,19 @@
plot = %22
-DFN
+AAB
%22;%0Avar m
|
f91c581a0af24b202585be11108576b10de1651f | update allowances | public/scripts/hkTaxCal.js | public/scripts/hkTaxCal.js | if (typeof define !== 'function') {
var define = require('amdefine')(module);
}
define([], function() {
//TODO rename as this is more than tax but also living feeds
var _calculator = {};
var rates = {
"y2013": {
"0": {
"limit": 40000,
"rate": 0.02
},
"1": {
... | JavaScript | 0.000001 | @@ -2064,17 +2064,510 @@
00%0A %7D
-%0A
+,%0A %22y2015%22: %7B%0A //only update child, another just copy%0A %22basic%22: 120000,%0A %22married%22: 240000,%0A %22child%22: 100000,%0A %22bornChild%22: 140000,%0A %22dependentSiblings%22: 33000,%0A //%22dependentDisa... |
1a52500134a75735d740f3502a6dd3905ad64a2e | fix display example | lib/gamejs/display.js | lib/gamejs/display.js | var Surface = require('gamejs').Surface;
/**
* @fileoverview Methods to create, access and manipulate the display Surface.
* Drawing to the screen is as simple as this:
*
* $r.preload(["images/sunflower.png"),
* $r.ready(function() {
* // init
* gamejs.display.setMode([800, 600]);
... | JavaScript | 0.000001 | @@ -177,18 +177,62 @@
*
-$r
+var gamejs = require('gamejs');%0A * gamejs
.preload
@@ -270,10 +270,14 @@
-$r
+gamejs
.rea
@@ -296,28 +296,8 @@
) %7B%0A
- * // init%0A
*
@@ -402,16 +402,17 @@
face();%0A
+%0A
*
@@ -538,16 +538,16 @@
ower%22);%0A
-
*
@@ -582,16 +582,18 @... |
15fb3424222cff5bfe2d32938af72f8d6f3d515e | fix rename property and add docs on filter | filter-widget/Filter.js | filter-widget/Filter.js | import DefineMap from 'can-define/map/map';
import DefineList from 'can-define/list/list';
export const Filter = DefineMap.extend('Filter', {
value: {
type: '*'
},
name: {
type: 'string',
value: ''
},
operator: {
type: 'string',
value: 'like'
},
opFie... | JavaScript | 0 | @@ -89,233 +89,1091 @@
';%0A%0A
-export const Filter = DefineMap.extend('Filter', %7B%0A value: %7B%0A type: '*'%0A %7D,%0A name: %7B%0A type: 'string',%0A value: ''%0A %7D,%0A operator: %7B%0A type: 'string',%0A value: 'like'%0A %7D,%0A op
+/**%0A * @constructor... |
82819f222e6c46606ec0c9350ec20a450a6b5e92 | Add An Unpublished debugMode Flag | lib/gocodeprovider.js | lib/gocodeprovider.js | 'use babel'
import {CompositeDisposable} from 'atom'
import path from 'path'
import _ from 'lodash'
class GocodeProvider {
constructor (goconfigFunc, gogetFunc) {
this.goconfig = goconfigFunc
this.goget = gogetFunc
this.subscriptions = new CompositeDisposable()
this.subscribers = []
this.select... | JavaScript | 0 | @@ -3464,16 +3464,169 @@
ptions)%0A
+ let debugMode = atom.config.get('autocomplete-go.debugMode')%0A if (debugMode) %7B%0A console.log(cmd + '' + args.join(' '))%0A %7D%0A
|
4e4cfac6ab5bfd4d8d263bc7def4488c7634932e | Use UTC time when updating dates | lib/daterangepicker/daterangepicker.timesupport.js | lib/daterangepicker/daterangepicker.timesupport.js | (function(root, factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery', 'underscore', 'moment', 'timepicker'], function($, _, moment) {
return factory($, _, moment);
});
} else {
root.daterangepicker.timeSupport = factory(root.jQuery, ... | JavaScript | 0.000002 | @@ -8366,16 +8366,20 @@
= moment
+.utc
(date).h
@@ -9345,8 +9345,9 @@
ort;%0A%7D);
+%0A
|
914ac72df7fb2cc99a724b447ae549180f64dbb8 | disable find dialog in ace (#1134) | ui/client/components/graph/node-modal/editors/expression/ExpressionSuggest.js | ui/client/components/graph/node-modal/editors/expression/ExpressionSuggest.js | import cn from "classnames"
import _ from "lodash"
import PropTypes from "prop-types"
import React from "react"
import ReactDOMServer from "react-dom/server"
import {connect} from "react-redux"
import ActionsUtils from "../../../../../actions/ActionsUtils"
import ProcessUtils from "../../../../../common/ProcessUtils"
i... | JavaScript | 0 | @@ -918,16 +918,137 @@
-_.%5D/%5D%0A%0A
+const commandFindConfiguration = %7B%0A name: %22find%22,%0A bindKey: %7Bwin: %22Ctrl-F%22, mac: %22Command-F%22%7D,%0A exec: () =%3E false,%0A%7D%0A%0A
class Ex
@@ -6612,32 +6612,84 @@
%7D%7D%0A
+ commands=%7B%5BcommandFindConfiguration%5D%7D%0A
... |
103f3a82fdd6b076232fc761a3f43345cc787a51 | Fix Break | templates/controller.template.js | templates/controller.template.js | /**
* @description
* <%= Controllername %>. Controller
* <%= whatIsThis %>
**/
angular.module('<%= controllerName %>.controller', [
'humpback.controllers'
])
.controller( '<%= ControllerName %>', function <%= ControllerNameLong %> ( $scope ) {
}); | JavaScript | 0.000001 | @@ -15,25 +15,25 @@
tion %0A* %3C%25=
-C
+c
ontrollernam
@@ -33,18 +33,17 @@
ller
-n
+N
ame %25%3E.
- C
+c
ontr
|
8f11635b399f14980386deda7e63f14f7e1a6c0c | implement route /verifyEmail #13 | src/routes/UserRoute.js | src/routes/UserRoute.js | import Express from 'express';
import Model from '../models/model';
import Utils from '../utils';
let router = Express.Router();
//POST URL: localhost:8080/api/user?username=testusername&email=testemail&password=testpassword&api_key=testapikey&api_secret=testapisecret
router.route('/user')
.post(function(req, res) ... | JavaScript | 0.000002 | @@ -1793,16 +1793,323 @@
%0A%09%09%7D);%0A%0A
+router.route('/verifyEmail')%0A%09%09.post(function(req, res) %7B%0A%09%09%09try%7B%0A%09%09%09%09Model.User.update(%7B%0A%09%09%09%09%09Email_verified: true,%0A%09%09%09%09%7D,%0A%09%09%09%09%7B%0A%09%09%09%09%09where: %7B%0A%09%09%09%09%09%09GUID: req.body.userguid%0A%0... |
72bcff83f71a0fd9cb04a05386e43898c6fbf75b | Fix hook to remove build.gradle config on uninstall. | hooks/lib/android-helper.js | hooks/lib/android-helper.js |
var fs = require("fs");
var path = require("path");
var utilities = require("./utilities");
module.exports = {
addFabricBuildToolsGradle: function() {
var buildGradle = utilities.readBuildGradle();
buildGradle += [
"// Fabric Cordova Plugin - Start Fabric Build Tools ",
... | JavaScript | 0 | @@ -234,16 +234,32 @@
e += %5B%0A
+ %22%22,%0A
@@ -1072,18 +1072,16 @@
ld Tools
-%5Cn
/, %22%22);%0A
|
cbaefd8dcbb8b940ab373c4c1e29f55f01682541 | Update removeDesc.js (#798) | plugins/removeDesc.js | plugins/removeDesc.js | 'use strict';
exports.type = 'perItem';
exports.active = true;
exports.params = {
removeAny: false
};
exports.description = 'removes <desc> (only non-meaningful by default)';
var standardDescs = /^Created with/;
/**
* Removes <desc>.
* Removes only standard editors content or empty elements 'cause it can be... | JavaScript | 0 | @@ -199,16 +199,17 @@
scs = /%5E
+(
Created
@@ -212,16 +212,31 @@
ted with
+%7CCreated using)
/;%0A%0A/**%0A
|
8d1f37df3b597e5fe53374a3c2ec37d0ca54816e | Make benchmark result electron output friendly | benchmarks/message-registry.js | benchmarks/message-registry.js | 'use babel'
import {MessageRegistry} from '../lib/message-registry'
import {getLinter, getMessage} from '../spec/common'
import {timeNow, timeDiff, getMessages} from './common'
const messageRegistry = new MessageRegistry()
messageRegistry.debouncedUpdate = function() {}
const linter = getLinter()
function benchmarkR... | JavaScript | 0.000001 | @@ -748,11 +748,15 @@
ages
-',
+: ' + (
sum
@@ -769,11 +769,12 @@
nt - 1))
+)
%0A%7D%0A
|
209e8325b79f3ad74d4a377bba8dd7965602401c | update toObject to check proper values when cleaning associations | lib/waterline/model/lib/defaultMethods/toObject.js | lib/waterline/model/lib/defaultMethods/toObject.js |
/**
* Module dependencies
*/
var _ = require('lodash'),
utils = require('../../../utils/helpers'),
hasOwnProperty = utils.object.hasOwnProperty;
/**
* Model.toObject()
*
* Returns a cloned object containing just the model
* values. Useful for doing operations on the current values
* minus the instance... | JavaScript | 0 | @@ -575,16 +575,74 @@
proto;%0A%0A
+ // Hold joins used in the query%0A this.usedJoins = %5B%5D;%0A%0A
this.o
@@ -2723,19 +2723,8 @@
dle
-Belongs-To
Join
@@ -3052,33 +3052,34 @@
if(self.
-proto.association
+context._attribute
s%5Bassoci
@@ -3109,33 +3109,34 @@
= self.
-proto.association
+context._attribut... |
f07c60613e7c5907e937fd821a61cc136d3f270e | Fix wait for socket test | test/lib/test-wait-for-socket.js | test/lib/test-wait-for-socket.js | var waitForSocket = require('../../lib/wait-for-socket');
describe('waitForSocket', function(){
before(function() {
// chill winston
winston.remove(winston.transports.Console);
});
after(function() {
winston.add(winston.transports.Console);
});
before(function () {
this.port = 65535;
});
... | JavaScript | 0.000001 | @@ -94,179 +94,8 @@
()%7B%0A
- before(function() %7B%0A // chill winston%0A winston.remove(winston.transports.Console);%0A %7D);%0A%0A after(function() %7B%0A winston.add(winston.transports.Console);%0A %7D);%0A%0A
be
@@ -1047,17 +1047,16 @@
%7D);%0A%0A
-%0A
it('
@@ -1157,16 +1157,18 @@
out =... |
e28431b3a4252d02b7b487ae4b03668e1bd3950e | clean up | popup/popup-script.js | popup/popup-script.js | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
let powerPara = document.getElementById("power");
let settings = document.getElementById("settings");
let powerBttn... | JavaScript | 0.000001 | @@ -498,13 +498,8 @@
();%0A
- %0A
%7D%0A%0A/
|
4e17e8e9034541aefafc91ec396cf516d6cc27d6 | check for azure and check for value | env.js | env.js | 'use strict';
var env = { };
var crypto = require('crypto');
var consts = require('./lib/constants');
var fs = require('fs');
// Module to constrain all config and environment parsing to one spot.
function config ( ) {
/*
* First inspect a bunch of environment variables:
* * PORT - serve http on this port
... | JavaScript | 0 | @@ -1036,16 +1036,50 @@
cmType')
+ && readENV('ScmType') == 'GitHub'
) %7B%0A
|
ba70555a2dab6f162b82d754a9e956e2a67eb803 | remove loging | eq3.js | eq3.js | 'use strict'
const eq3device = require('./lib/eq3device')
module.exports = function(RED) {
function eq3(config) {
var node = this;
RED.nodes.createNode(this, config);
this.serverConfig = RED.nodes.getNode(config.server);
eq3device.discoverByAddress(config.eq3device ,function(device) {
node.dev... | JavaScript | 0.000001 | @@ -1495,56 +1495,8 @@
%7D%0A%0A
- console.log(msg.payload.setTemperature)%0A
|
6478e252063641a2b78e157e6beddf3370aa58f8 | add device | eq3.js | eq3.js | 'use strict'
const eq3device = require('./lib/eq3device')
const devices = {}
module.exports = function(RED) {
RED.httpNode.get('/eq3', function(req,res) {
res.send(Object.keys(devices))
});
eq3device.discover((device) => {
device.connectAndSetUp()
.then(() => {
devices[device.id] = device
... | JavaScript | 0.000001 | @@ -263,28 +263,8 @@
p()%0A
- .then(() =%3E %7B%0A
@@ -291,23 +291,16 @@
device%0A
- %7D)%0A
%7D)%0A%0A
|
261b4a90a24506649e3e480f812f25c8f3c12e68 | Fix date offset issue. | assets/js/modules/analytics/components/module/ModulePopularPagesWidget/index.js | assets/js/modules/analytics/components/module/ModulePopularPagesWidget/index.js | /**
* ModulePopularPagesWidget component.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LI... | JavaScript | 0.000001 | @@ -885,16 +885,35 @@
import %7B
+ DATE_RANGE_OFFSET,
MODULES
@@ -1328,16 +1328,55 @@
geDates(
+ %7B%0A%09%09offsetDays: DATE_RANGE_OFFSET,%0A%09%7D
) );%0A%0A%09c
|
adf8cf4de707ce8898dafe15e8dec67bbeba34da | add lazy load html | lml.js | lml.js | /**
* LMLJS Framework
* Copyright (c) 2014 http://lmlphp.com All rights reserved.
* Licensed ( http://mit-license.org/ )
* Author: leiminglin <leiminglin@126.com>
*
* A lovely javascript framework.
*
* $id: $
*
*/
(function(win, doc, undf){
var deferred = {};
deferred.queue = [];
deferred.promise = fun... | JavaScript | 0.000002 | @@ -3672,16 +3672,371 @@
();%0A%09%7D);
+%0A%09%0A%09/**%0A%09 * Lazy load HTML%0A%09 */%0A%09deferred.then( function()%7B%0A%09%09var e = document.getElementsByClassName('lazyHtml');%0A%09%09for( var i=0; i%3Ce.length; i++ ) %7B%0A%09%09%09if(e%5Bi%5D.tagName == 'TEXTAREA')%7B%0A%09%09%09%09var wrapdiv = document.cre... |
3d1b561fe060994345de22cca17b87a5534a5067 | Add a marker for a point in Flatiron and highlight the neighborhood. | map.js | map.js | var map = L.mapbox.map('map').setView([40.775,-73.98], 12);
// Set base style of vector data
function style(feature) {
return {
weight: 0,
fillOpacity: 0.5,
fillColor: '#FFEDA0'
};
}
// Set hover colors
function highlightFeature(e) {
var layer = e.target;
layer.setStyle({
weight: 10,
... | JavaScript | 0 | @@ -202,28 +202,8 @@
%0A%7D%0A%0A
-// Set hover colors%0A
func
@@ -228,38 +228,16 @@
ure(
-e) %7B%0A var layer = e.target;
+layer) %7B
%0A
@@ -254,16 +254,20 @@
Style(%7B%0A
+
weig
@@ -278,16 +278,20 @@
10,%0A
+
+
opacity:
@@ -294,16 +294,20 @@
ity: 1,%0A
+
colo
@@ -317,16 +317,2... |
091cecaf4331aa00fc12cdcf46fd34543a0f233a | Add class iterator support | src.js | src.js | (function() {
function dup(pairs){
var a=JSON.parse(JSON.stringify(pairs));
return a;
}
function pullData() {
this.data = {};
this.pull = function(name) {
return this.data[name];
}
}
function iterator_former(fn) {
this.fn = fn;
this.data = new pullData();
this.yield = function(pairs) {
this... | JavaScript | 0.000001 | @@ -223,26 +223,25 @@
ormer(fn
+,x
) %7B%0A%09%09
-this
+x
.fn = fn
@@ -244,20 +244,17 @@
= fn;%0A%09%09
-this
+x
.data =
@@ -271,20 +271,17 @@
ta();%0A%09%09
-this
+x
.yield =
@@ -366,24 +366,36 @@
.data);%0A%09%09%7D%0A
+%09%09return x;%0A
%09%7D%0A%0A%09functio
@@ -454,20 +454,16 @@
r block=
-new
iterat... |
02f939d7dcb9b07b7bed0b194d85e2aa4eefbad8 | Update GraticuleLayerSpec.js | test/mapboxgl/overlay/GraticuleLayerSpec.js | test/mapboxgl/overlay/GraticuleLayerSpec.js | import { GraticuleLayer } from '../../../src/mapboxgl/overlay/GraticuleLayer';
import mapboxgl from 'mapbox-gl';
import { Feature } from '@supermap/iclient-common';
var url = GlobeParameter.ChinaURL + '/zxyTileImage.png?z={z}&x={x}&y={y}';
describe('mapboxgl_GraticuleLayer', () => {
var originalTimeout;
var te... | JavaScript | 0 | @@ -1664,19 +1664,45 @@
leLayer(
-map
+%7BlayerID :'graticuleLayer_1'%7D
);%0A
|
fa14d066dc97c24f329cea0cc83a6559039285c2 | Extend clearing of jasmine noise to jessie/jasmine.js | lib/jessie/jasmine.js | lib/jessie/jasmine.js | // Great trick by mhevery
global.window = {
setTimeout: setTimeout,
clearTimeout: clearTimeout,
setInterval: setInterval,
clearInterval: clearInterval
};
var filename = __dirname + '/../../vendor/jasmine.js';
var src = require('fs').readFileSync(__dirname + '/../../vendor/jasmine.js');
// Load up jasmi... | JavaScript | 0.000005 | @@ -904,22 +904,31 @@
egex = /
+(
vendor
+%7Cjessie)
%5C/jasmin
|
8d202e481bc623f839a3566a3abab7528909c9e3 | fix aspect's select_all deselect_all | app/assets/javascripts/app/views/aspects_list_view.js | app/assets/javascripts/app/views/aspects_list_view.js | app.views.AspectsList = app.views.Base.extend({
templateName: 'aspects-list',
el: '#aspects_list',
events: {
'click .toggle_selector' : 'toggleAll'
},
postRenderTemplate: function() {
this.collection.each(this.appendAspect, this);
this.$('a[rel*=facebox]').facebox();
},
appendAspect: funct... | JavaScript | 0.000005 | @@ -159,16 +159,109 @@
'%0A %7D,%0A%0A
+ initialize: function()%7B%0A this.collection.on('change', this.toggleSelector, this);%0A %7D,%0A%0A
postRe
@@ -375,24 +375,51 @@
.facebox();%0A
+ this.toggleSelector();%0A
%7D,%0A%0A appe
|
00f83b17b7bf6d1f7f5494b01440446d5fc21473 | remove console log statement in logicadBidAdapter unit tests (#4021) | test/spec/modules/logicadBidAdapter_spec.js | test/spec/modules/logicadBidAdapter_spec.js | import {expect} from 'chai';
import {spec} from '../../../modules/logicadBidAdapter';
import * as utils from 'src/utils';
describe('LogicadAdapter', function () {
const bidRequests = [{
bidder: 'logicad',
bidId: '51ef8751f9aead',
params: {
tid: 'PJ2P',
page: 'http://www.logicad.com/'
},
... | JavaScript | 0 | @@ -4029,42 +4029,8 @@
0);%0A
- console.log(serverResponse);
%0A
|
f2869aeb8de2832f071fe614ba0e692988558686 | use getInstallments to get the correct section of credit_card | app/assets/javascripts/catarse_pagarme/credit_card.js | app/assets/javascripts/catarse_pagarme/credit_card.js | App.views.PagarmeForm.addChild('PaymentCard', {
el: '#payment_type_credit_card_section',
events: {
'keyup input[type="text"]' : 'creditCardInputValidator',
'keyup #payment_card_number' : 'onKeyupPaymentCardNumber',
'click input#credit_card_submit' : 'onSubmit',
'click a.use_another-card': 'showCred... | JavaScript | 0 | @@ -1775,74 +1775,25 @@
his.
-$('.my_credit_cards select#payment_card_installments').val()%0A
+getInstallments()
%7D%0A
@@ -2139,19 +2139,179 @@
s: this.
-$('
+getInstallments()%0A %7D%0A %7D%0A%0A return data;%0A %7D,%0A%0A getInstallments: function() %7B%0A if(this.hasSelectedSomeCard()) %7B... |
23211975e27104cd93916a622b355c566f14af8a | Remove bem-site-logger dependency from base.test.js test file | test/src/tasks-libraries/model/base.test.js | test/src/tasks-libraries/model/base.test.js | var fsExtra = require('fs-extra'),
Logger = require('bem-site-logger'),
Base = require('../../../../lib/tasks-libraries/model/base');
describe('Base', function() {
var sandbox = sinon.sandbox.create(),
base;
beforeEach(function() {
sandbox.stub(console, 'error');
sandbox.stub(f... | JavaScript | 0.000001 | @@ -32,49 +32,8 @@
'),%0A
- Logger = require('bem-site-logger'),%0A
|
6e4986cbb24789aa0a03d4bbe04d9241181a7150 | Clean Commit. | app/assets/javascripts/client/controllers/HomeCtrl.js | app/assets/javascripts/client/controllers/HomeCtrl.js | PDRClient.controller('HomeCtrl', ['$scope','ToolKit', 'SessionService', '$timeout',
function($scope, ToolKit, SessionService, $timeout) {
$scope.toolKits = []
$scope.user = SessionService.getCurrentUser();
ToolKit.query({}, function(t) {
$scope.toolKits = t;
setToolTip();
}... | JavaScript | 0 | @@ -313,24 +313,25 @@
%0A %7D);%0A%0A
+%0A
functi
|
1fbf2b2549bbad612d2deeec96f45dca292611fd | fix localStorage specific tests | test/stash/drivers/local_storage_browser.js | test/stash/drivers/local_storage_browser.js | describe('Stash::Drivers::LocalStorage', function () {
var namespace = 'test';
var cacheManager = new Stash.Drivers.LocalStorage(namespace);
var pool = new Stash.Pool(cacheManager);
var item = pool.getItem('foo');
pool.flush();
it('should commit to localStorage', function () {
item.set('bar');
... | JavaScript | 0.000001 | @@ -307,19 +307,75 @@
ar')
-;%0A %0A
+.then(function (done) %7B%0A catching(done, function () %7B%0A
+
expe
@@ -412,24 +412,28 @@
ace))%0A
+
.to.contain(
@@ -440,16 +440,38 @@
'bar');%0A
+ %7D);%0A %7D)%0A %0A
%7D);%0A%0A
@@ -516,32 +516,36 @@
ces', function (
+done
) %... |
c9b1e95d27e9e5bc150576cd02a2e4769a073f8f | Add password validation to client side | public/js/register.js | public/js/register.js | $(function() {
$("#register").submit(function() {
var password = $("#password").val();
if (password !== $("#confirm").val()) {
return false;
}
var hashedPassword = CryptoJS.SHA256(password).toString();
$("#hashedPassword").val(hashedPassword);
return true;
})
}); | JavaScript | 0.000002 | @@ -8,18 +8,18 @@
ion() %7B%0A
-
+%0A%09
$(%22#regi
@@ -45,20 +45,19 @@
ion() %7B%0A
-
+%0A%09%09
var pass
@@ -89,27 +89,27 @@
();%0A
- if (password !=
+%09%09var confirmation
= $(
@@ -129,42 +129,297 @@
al()
-) %7B%0A return false;%0A %7D%0A
+;%0A%0A%09%09clearErrors();%0A%0A%09%09if (!pas... |
fe9d0b8afc6bfa47a92c8e33bb5fecfce4caeb28 | Solve IE incompatibility with es6 promises and fetch | public/src/actions.js | public/src/actions.js | /**
* Solve IE incompatibility with es6 promises and featch
*/
import Promise from 'es6-promise';
import 'whatwg-fetch';
window.Promise = window.Promise || Promise;
/**
* Actions:
* - ADD_DECK
* - SHOW_ADD_DECK
* - HIDE_ADD_DECK
*/
export const addDeck = name => ({ type: 'ADD_DECK', data: name });
export con... | JavaScript | 0.000026 | @@ -49,17 +49,16 @@
s and fe
-a
tch%0A */%0A
@@ -160,16 +160,17 @@
omise;%0A%0A
+%0A
/**%0A * A
|
51db8f3cbac019a9446b167112736b73c16cca9d | Add workplaces validator. | app/routes/joblistings/components/JoblistingEditor.js | app/routes/joblistings/components/JoblistingEditor.js | // @flow
import React from 'react';
import styles from './JoblistingEditor.css';
import LoadingIndicator from 'app/components/LoadingIndicator';
import { reduxForm, Field, change } from 'redux-form';
import { Form, SelectInput } from 'app/components/Form';
import Button from 'app/components/Button';
import moment from... | JavaScript | 0 | @@ -4801,24 +4801,121 @@
%C3%A5r'%22;%0A %7D%0A
+ if (!values.workplaces) %7B%0A errors.workplaces = 'Arbeidssteder kan ikke v%C3%A6re tom';%0A %7D%0A
const vi
|
ce07374e6770d201494592a5242ae76711236d9f | remove not needed expicit injection | app/templates/src/components/navbar/_navbar.controller.js | app/templates/src/components/navbar/_navbar.controller.js | 'use strict';
angular.module('<%= appname %>')
.controller('NavbarCtrl', ['$scope', function ($scope) {
$scope.date = new Date();
}]);
| JavaScript | 0.000001 | @@ -72,19 +72,8 @@
rl',
- %5B'$scope',
fun
@@ -126,8 +126,7 @@
%0A %7D
-%5D
);%0A
|
7870e1b52dee3195dbe730bb5ff6bfd3e31de82d | remove unnecessarily strict constraint in helper | tests/pages/services/DeploymentsModal-cy.js | tests/pages/services/DeploymentsModal-cy.js | describe("Deployments Modal", function() {
function openDeploymentsModal(numDeployments = 1) {
cy.get(".button")
.contains(numDeployments + " deployment")
.click();
}
beforeEach(function() {
cy.configureCluster({
mesos: "1-for-each-health",
deployments: "one-deployment",
nod... | JavaScript | 0.00001 | @@ -72,26 +72,8 @@
dal(
-numDeployments = 1
) %7B%0A
@@ -114,27 +114,9 @@
ins(
-numDeployments + %22
+%22
depl
@@ -5160,24 +5160,33 @@
%7B%0A cy.
+server().
route(%0A
|
92874b50078867ce6688f193ae8e5acaa8c9228d | Update MainTabNavigator.js | apps/native-component-list/navigation/MainTabNavigator.js | apps/native-component-list/navigation/MainTabNavigator.js | import React from 'react';
import { Platform, StyleSheet } from 'react-native';
import { createBottomTabNavigator } from 'react-navigation';
import { createMaterialBottomTabNavigator } from 'react-navigation-material-bottom-tabs';
import TabIcon from '../components/TabIcon';
import { Colors, Layout } from '../constant... | JavaScript | 0 | @@ -786,27 +786,30 @@
tor.path = '
+API
';%0A
-
ExpoApisStac
@@ -903,16 +903,26 @@
path = '
+Components
';%0AExpoC
@@ -999,16 +999,16 @@
s',%0A%7D;%0A%0A
-
ReactNat
@@ -1037,16 +1037,27 @@
path = '
+ReactNative
';%0AReact
|
c587cf8477c4f8a0c6abd3b7b436c722dda554bc | Add persona avatar image for placeholder card | app/views/components/item-column/placeholder-cards.js | app/views/components/item-column/placeholder-cards.js | import _ from 'lodash';
import React from 'react';
import OwnerAvatar from '../item-card/owner';
// Flux
import HeaderActions from '../../../actions/header-actions'
import HeaderStore from '../../../stores/header-store'
const CURRENT_COL_STATUS = 'in-progress';
var PlaceholderCards = React.createClass({
propTypes... | JavaScript | 0 | @@ -922,60 +922,8 @@
) %7B%0A
- // Future: navigation.transitionTo('add-item');%0A
|
62c1c2993842c5ef4a92ea28b65360b1b17929f8 | reset after submit. | apps/social/themes/default/js/custom/comment-input.js | apps/social/themes/default/js/custom/comment-input.js | var QueryString = function () {
// This function is anonymous, is executed immediately and
// the return value is assigned to QueryString!
var query_string = {};
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair... | JavaScript | 0 | @@ -858,16 +858,29 @@
;%0A%7D();%0A%0A
+var $radio =
$('.auto
@@ -893,16 +893,24 @@
t-star')
+;%0A$radio
.rating(
@@ -955,16 +955,27 @@
%7D%0A%7D);%0A%0A
+var $btn =
$('#btn-
@@ -980,16 +980,22 @@
n-post')
+;%0A$btn
.click(f
@@ -1040,16 +1040,17 @@
var
+$
textArea
@@ -1052,16 +1052,18 @@
tArea =
+$(... |
71585af269745d1abad71f8ea487ac0742ceaed1 | Add /news to userpath controller | trails-log/app/assets/javascripts/trails.js | trails-log/app/assets/javascripts/trails.js | $(document).on("ready", function() {
L.mapbox.accessToken = 'pk.eyJ1IjoidGlzZGVyZWsiLCJhIjoiNDQ5Y2JiODdiZDZmODM0OWI0NmRiNDI5OGQzZWE4ZWIifQ.rVJW4H9TC1cknmRYoZE78w';
var userMap = L.mapbox.map('user-map', 'mapbox.run-bike-hike')
.addControl(L.mapbox.geocoderControl('mapbox.places'))
.setView([37.7833, -122.4167]... | JavaScript | 0 | @@ -1900,16 +1900,124 @@
cludes('
+/new')) %7B%0A return windowLocation.replace('/new', '.json')%0A %7D%0A else if (windowLocation.includes('/
trails')
@@ -2054,15 +2054,15 @@
n +
-%22
+'
.json
-%22
+'
%0A
|
2b1a4c06edadb864b40c498b0d8d9e90302c3969 | Disable forceHttps | run.js | run.js | 'use strict';
const dne = 10000;
const configuration = {
keyPublishable: process.env.PUBLISHABLE_KEY || 'pk_test_DZkclA7Lk0U2szChf0u7RV8U',
keySecret: process.env.SECRET_KEY || 'sk_test_JvHrW5FfszUh49X5eMW5ZKU5',
port: process.env.PORT || 1111,
dne,
priceMultiplier: 1.022,
priceAddition: 0.60,
gst: 1.05,... | JavaScript | 0.000065 | @@ -1653,19 +1653,20 @@
TTPS %7C%7C
-tru
+fals
e,%0A%7D;%0A%0Ac
|
75356786a3801cb44ec3728af9fe56d3a2164bdd | remove linting from prepare release task | build/tasks/prepare-release.js | build/tasks/prepare-release.js | var gulp = require('gulp');
var runSequence = require('run-sequence');
var paths = require('../paths');
var changelog = require('conventional-changelog');
var fs = require('fs');
var bump = require('gulp-bump');
var args = require('../args');
gulp.task('bump-version', function(){
return gulp.src(['./package.json', '... | JavaScript | 0.000119 | @@ -843,20 +843,8 @@
d',%0A
- 'lint',%0A
|
1735abcd21404e32dd79ef7c1a09399a3dff9e0f | Disable rollup uglify for now as it breaks for some reason | config/plugin/rollup.js | config/plugin/rollup.js | var babel = require('rollup-plugin-babel');
var uglify = require('rollup-plugin-uglify');
var resolve = require('rollup-plugin-node-resolve');
var paths = require('./paths');
var babelConfig = require('./babel');
var plugins = [
resolve({module: false}),
babel(babelConfig),
];
if (process.env.NODE_ENV === 'produ... | JavaScript | 0 | @@ -278,16 +278,75 @@
g),%0A%5D;%0A%0A
+// Uglify breaks the build process, so disabled for now%0A//
if (proc
@@ -382,16 +382,19 @@
ion') %7B%0A
+//
plugin
@@ -411,16 +411,19 @@
ify());%0A
+//
%7D%0A%0Amodul
|
bb95cb816f06f936254befcb7187cd631553cd15 | disable eslint | src/AnimateGroup.js | src/AnimateGroup.js | import React, { Children } from 'react';
import { TransitionGroup } from 'react-transition-group';
import PropTypes from 'prop-types';
import AnimateGroupChild from './AnimateGroupChild';
function AnimateGroup(props) {
const {
component, children, appear, enter, leave,
} = props;
return (
<TransitionGro... | JavaScript | 0.000025 | @@ -563,16 +563,39 @@
index%7D%60%7D
+ // eslint-disable-line
%0A
|
8fff3f4efaeb2a140c980cf0fa85d403052c0ccc | Fix hexBytes | any_sha1.js | any_sha1.js | /*global Rusha hex_sha1 jsSHA sjcl forge CryptoJS*/
/*any_sha1 Copyright (c) 2014 Stuart P. Bentley
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitati... | JavaScript | 0.001032 | @@ -1454,16 +1454,22 @@
ce(i*2,
+(i*2)+
2), 16);
|
72eee9d90451e9e898312a5915b33e8ed0769cae | Allow Text to be positioned and styled | src/Hexagon/Text.js | src/Hexagon/Text.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
// TODO Text is a separate component so that it could wrap the given text inside the surrounding hexagon
class Text extends Component {
static propTypes = {
children: PropTypes.string
};
render() {
const { children } = this.pr... | JavaScript | 0 | @@ -244,16 +244,99 @@
hildren:
+ PropTypes.string,%0A x: PropTypes.number,%0A y: PropTypes.number,%0A className:
PropTyp
@@ -384,16 +384,33 @@
children
+, x, y, className
%7D = thi
@@ -449,21 +449,58 @@
t x=
-%220%22 y=%220.3em%22
+%7Bx %7C%7C 0%7D y=%7By ? y : '0.3em'%7D className=%7BclassName%7D
tex... |
7a53d008fd7414fbb1e1045ee65a3d5eee88b23e | Add Object.assign to polyfill.js | src/main/resources/static/js/polyfill.js | src/main/resources/static/js/polyfill.js | var global = this;
var console = {};
console.debug = print;
console.warn = print;
console.log = print;
console.error = print;
console.trace = print;
| JavaScript | 0.000002 | @@ -134,16 +134,1306 @@
.trace = print;%0A
+%0A// https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#Polyfill%0Aif (!Object.assign) %7B%0A Object.defineProperty(Object, 'assign', %7B%0A enumerable: false,%0A configurable: true,%0A writable: true,%0A ... |
c8bec8ae1213dcd96e05c2a69dbc72c3a9d00b67 | Add delete queue | src/schema/sqs/index.js | src/schema/sqs/index.js | import AWS from 'aws-sdk';
import Promise from 'bluebird';
import {
GraphQLObjectType,
GraphQLNonNull,
GraphQLList,
GraphQLString,
GraphQLInt,
GraphQLEnumType
} from 'graphql/lib/type';
const sqs = new Promise.promisifyAll(new AWS.SQS());
const attributeNamesType = new GraphQLEnumType({
name: 'Queue Att... | JavaScript | 0.000002 | @@ -2840,16 +2840,361 @@
ons = %7B%0A
+ deleteQueue: %7B%0A type: new GraphQLNonNull(GraphQLString),%0A args: %7B%0A url: %7B%0A name: 'url',%0A type: new GraphQLNonNull(GraphQLString)%0A %7D%0A %7D,%0A resolve: (obj, %7Burl%7D) =%3E %7B%0A return sqs.deleteQueueAsync(%7B Queu... |
236f72ac16f836181ca041ff07a3fb5fc2977090 | tag values are now sorted alphabetically | app/Data.js | app/Data.js | var THREE = require("three");
var parsedPoints = [],
parsedTags = [],
tagColors = new Map(),
total = 0;
var Data = module.exports = {
pointSize: 2,
pointSizeMultiplier: 1,
cloudSize2D: 1.5,
loadData: function(data) {
parsedPoints = [];
parsedTags = [];
total = data... | JavaScript | 0.000002 | @@ -733,32 +733,62 @@
int);%0A %7D%0A
+ this.sortTagValues();%0A
%7D,%0A%0A /**%0A
@@ -5358,32 +5358,498 @@
urn -1;%0A %7D,%0A%0A
+ /**%0A * Sorts tag values alphabetically%0A */%0A sortTagValues: function() %7B%0A for (var i = 0; i %3C parsedTags.length; i++) %7B%0A ... |
29cb67b3a7b126ee57864c1df35fcc40a8588f5a | undo the change just done | modules/core/client/services/core.model.service.js | modules/core/client/services/core.model.service.js | 'use strict';
// =========================================================================
//
// this is intended to be a sort of base class for all crud services in the
// client, just to avoid retyping everything over and over again
//
// =========================================================================
angul... | JavaScript | 0.000002 | @@ -4161,36 +4161,8 @@
bj;%0A
-%09%09%09this.modelIsNew = false;%0A
%09%09%09r
|
30e5d13006577c45c354efb998c9389e71329063 | rename Warning to WarningType | modules/gob-object-student/find-course-warnings.js | modules/gob-object-student/find-course-warnings.js | // @flow
import flatten from 'lodash/flatten'
import compact from 'lodash/compact'
import some from 'lodash/some'
import zip from 'lodash/zip'
import ordinal from 'ord'
import oxford from 'listify'
import {findTimeConflicts} from '@gob/schedule-conflicts'
import {expandYear, semesterName} from '@gob/school-st-olaf-co... | JavaScript | 0 | @@ -532,13 +532,17 @@
ning
+Type
= %7B%0A
-
%09war
@@ -674,32 +674,36 @@
ber,%0A): ?Warning
+Type
%7B%0A%09if (course.s
@@ -1161,16 +1161,20 @@
?Warning
+Type
%7B%0A%09if (
@@ -1590,16 +1590,20 @@
?Warning
+Type
, ?Warni
@@ -1604,16 +1604,20 @@
?Warning
+Type
%5D%3E %7B%0A%09re
@@ -1889,16 +1889,20 @@
?W... |
1433a2c013aa6b9c2d5956f84a5b76d39632a73a | remove a blank line | modules/gob-web/components/area-of-study/picker.js | modules/gob-web/components/area-of-study/picker.js | // @flow
import React from 'react'
import Select from 'react-select'
import uniqueId from 'lodash/uniqueId'
import type {OptionType} from 'react-select/src/types'
import {AreaOfStudyProvider} from './provider'
import type {ParsedHansonFile} from '@gob/hanson-format'
import {filterAreaList} from '@gob/object-student'
... | JavaScript | 1 | @@ -1151,17 +1151,16 @@
s.props%0A
-%0A
%09%09let id
|
289e4b5dc1e79259fe3b53b75567d3fc0dd655d1 | Tweak Summary.toText doc | lib/models/summary.js | lib/models/summary.js | var is = require('is');
var Immutable = require('immutable');
var error = require('../utils/error');
var LocationUtils = require('../utils/location');
var File = require('./file');
var SummaryPart = require('./summaryPart');
var SummaryArticle = require('./summaryArticle');
var parsers = require('../parsers');
var Su... | JavaScript | 0 | @@ -2892,16 +2892,76 @@
s text%0A%0A
+ @param %7BString%7D parseExt Extension of the parser to use%0A
@ret
@@ -3022,25 +3022,27 @@
nction(parse
-r
+Ext
) %7B%0A var
@@ -3102,16 +3102,20 @@
);%0A%0A
+var
parser =
@@ -3120,17 +3120,19 @@
= parse
-r
+Ext
? parser
@@ -3147,17 +3147,19 @@
xt(parse
... |
157f55f59a86d0012863fcc328f6487cc139831b | fix reference errors | src/server/game_list.js | src/server/game_list.js | import { v4 } from "uuid"
import Board from "alekhine"
export default class GameList {
constructor() {
this.nodes = {}
this.length = 0
this.head = null
this.tail = null
}
mk(white, black) {
let gid = v4()
// create game object in two parts for closure
this.nodes[gid] = {
next... | JavaScript | 0.000002 | @@ -3921,16 +3921,21 @@
%5B%22r%22%5D =
+this.
head.sta
@@ -4179,16 +4179,21 @@
%5B%22l%22%5D =
+this.
tail.sta
|
412328629652c4ce3d0af4912ccc3194e24142ce | make ssr properly return 404 | src/server/ssr/index.js | src/server/ssr/index.js | /**
* @flow
* @desc
*/
import React from 'react'
import _ from 'lodash'
import {renderToNodeStream} from 'react-dom/server'
import {ServerStyleSheet, StyleSheetManager} from 'styled-components'
import {configureRootComponent, configureApp} from 'common/app'
import asyncBootstrapper from 'react-async-bootstrapper'
im... | JavaScript | 0.000259 | @@ -49,31 +49,8 @@
ct'%0A
-import _ from 'lodash'%0A
impo
@@ -1388,16 +1388,56 @@
er%3E%0A%09)%0A%0A
+%09// match url against browseable routes%0A
%09// if t
@@ -1509,24 +1509,43 @@
= !
-_.find(routes, a
+routes.filter(r =%3E !!r.path).find(r
=%3E
@@ -1567,14 +1567,9 @@
rl,
-a.path
+r
))%0A%0A
|
ec32a5f5ad4127498808f69dd65918b04cf9c005 | move some variable declarations | src/server/transport.js | src/server/transport.js | var _ = require('../utility');
var logger = require('./logger');
var http = require('http');
var https = require('https');
var jsonBackup = require('json-stringify-safe');
/*
* accessToken may be embedded in payload but that should not be assumed
*
* options: {
* hostname
* protocol
* path
* port
* ... | JavaScript | 0.000002 | @@ -546,32 +546,41 @@
sportFactory) %7B%0A
+ var t;%0A
if (!callback
@@ -601,32 +601,32 @@
on(callback)) %7B%0A
-
callback = f
@@ -787,25 +787,16 @@
tions);%0A
- var t;%0A
if (tr
@@ -1286,16 +1286,25 @@
tory) %7B%0A
+ var t;%0A
if (!c
@@ -1724,16 +1724,16 @@
.value;%0A
+
option
@@ -1787,25 +17... |
1a3e591ed192cb334e6d9ea48a0635788a29f59d | Replace UTF-8 with hex in digests and salts | app/main.js | app/main.js | module.exports = function() {
console.log('Initializing...');
const bodyParser = require('body-parser');
const cors = require('cors');
const crypto = require('crypto');
const express = require('express');
const mongoose = require('mongoose');
const morgan = require('morgan');
const passport = require('... | JavaScript | 0.000049 | @@ -1323,20 +1323,19 @@
String('
-utf8
+hex
');%0A %7D;
@@ -1587,12 +1587,11 @@
ng('
-utf8
+hex
')%0A
|
3e11b423a17bbb7516a6df09ed310723aefc78ab | remove operator cache | lib/operator/index.js | lib/operator/index.js | 'use strict'
var Observable = require('../observable')
var _emitInternal = Observable.prototype.emitInternal
var obs = new Observable({
bind: 'parent', // fix the bind -- also do for emitters (fn)
properties: {
operator: '_operator',
order: '_order'
},
define: {
emitInternal: function (data, event,... | JavaScript | 0.000001 | @@ -591,11 +591,358 @@
%0A %7D
+,%0A on: %7B%0A parent: %7B%0A operatorCache: removeOperatorsCache%0A %7D,%0A remove: %7B%0A operatorCache: function () %7B%0A var parent = this.parent%0A if (parent) %7B%0A removeOperatorsCache(parent)%0A %7D%0A %7D%0A %7D%0A ... |
8748966e817a006bf9878f6ff59d02a579df31f3 | Update the bounce sample | example/bounce.js | example/bounce.js | exports.run = function() {
var w = Ti.UI.createWindow({
backgroundColor: "white",
title: "Rotate and Bounce",
fullscreen: false
}),
view1 = Ti.UI.createView({
backgroundColor: "red",
top: "16dp", left: "32dp",
right: "32dp", height: "280dp"
}),
view2 = Ti.UI.createView({
backgroundColor: "... | JavaScript | 0 | @@ -790,16 +790,42 @@
ion() %7B%0A
+%09%09button.enabled = false;%0A
%09%09animMo
@@ -862,16 +862,16 @@
(view2)%0A
-
%09%09%09.setI
@@ -925,32 +925,53 @@
tDuration(3000)%0A
+%09%09%09.setStartDelay(0)%0A
%09%09%09.xBy(%22200dp%22)
@@ -1245,24 +1245,91 @@
onBy(-360*4)
+%0A%09%09%09%09.withEndAction(function() %7B... |
bcd77361cd13268157578c87bd0b02c8a4e03330 | fix invalid `envs` option | example/config.js | example/config.js | 'use strict';
// npm install gulp gulp-eslint
const gulp = require('gulp');
const eslint = require('..');
/**
* Simple example of using ESLint and a formatter
* Note: ESLint does not write to the console itself.
* Use format or formatEach to print ESLint results.
* @returns {stream} gulp file stream
*/
gulp.tas... | JavaScript | 0 | @@ -1247,32 +1247,16 @@
vs:
-%7B%0A%09%09%09%09'node': true%0A%09%09%09%7D%0A
+%5B'node'%5D
%0A%09%09%7D
|
c2c711f7896ad4cf405e239a4d37dd8112fd288a | Handle 404 from BitBucket API | chrome-extension/app/scripts/bitbucket.js | chrome-extension/app/scripts/bitbucket.js | var BitBucket = {
hasLogin: function () {
return !!localStorage['bitbucketLogin'] && !!localStorage['bitbucketRepo'];
},
getLastChangeset: function (user, repo, callback, fail) {
var url = "https://bitbucket.org/api/1.0/repositories/" + user + "/" + repo + "/changesets/";
$.ajax({
dataType: "j... | JavaScript | 0 | @@ -493,16 +493,124 @@
ccout%22)%0A
+ %7D,%0A 404: function () %7B%0A fail(%22Not found: please, sign in or check repository name%22)%0A
|
a9334fe87488a74410f502a0ced8c2df0145f042 | Support for david.nhachot.info and dl.nhachot.info | src/sites/link/adfly.js | src/sites/link/adfly.js | (function () {
'use strict';
var hostRule = /^(www\.)?adf\.(ly|acb\.im|sazlina\.com)|[jq]\.gs|go\.(phpnulledscripts|nicoblog-games)\.com|ay\.gy|(chathu|alien)\.apkmania\.co|ksn\.mx|goto\.adflytutor\.com|dl\.apkpro\.net|adf(ly\.itsrinaldo|\.tuhoctoan)\.net|.*\.gamecopyworld\.com$/;
$.register({
rule: {
... | JavaScript | 0 | @@ -276,16 +276,42 @@
rld%5C.com
+%7C(dl%7Cdavid)%5C.nhachot%5C.info
$/;%0A%0A $
|
0333a3d9584cae798d9cd6274dddf02e15fef20d | Fix lint errors | example/script.js | example/script.js | var tabs = require('../'),
events = require('chi-events');
var myTabs = tabs(document.querySelector('#my-tabs'));
events(document.querySelector('#select-first')).on('click', function() {
myTabs.select(0);
});
events(document.querySelector('#select-dogs')).on('click', function() {
myTabs.select(document.q... | JavaScript | 0.000396 | @@ -54,16 +54,48 @@
events')
+,%0A document = window.document
;%0A%0Avar m
@@ -368,12 +368,13 @@
dogs'));%0A%7D);
+%0A
|
3340af44e4fafcf4510b9212ea92aceeb1d306a5 | Fix localstorage bug | backends/browser_localstorage.js | backends/browser_localstorage.js | var cache = false;
module.exports = {
write: function(str) {
if(typeof window == 'undefined' || !window.localStorage ||
typeof JSON == 'undefined' || !JSON.stringify) return;
if(!cache) { cache = window.localStorage.minilog || []; }
cache.push(new Date().toString() + ' '+ str);
window.localSto... | JavaScript | 0.000002 | @@ -172,16 +172,31 @@
tringify
+ %7C%7C !JSON.parse
) return
@@ -222,16 +222,17 @@
cache =
+(
window.l
@@ -255,13 +255,55 @@
log
-%7C%7C
+? JSON.parse(window.localStorage.minilog) :
%5B%5D
+)
; %7D%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.