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
09771caf4c859b39327ed886c572c1a1faef1bbd
Add github status report
app.js
app.js
var express = require('express'), app = express(), swig = require('swig'); var bodyParser = require('body-parser'); app.engine('html', swig.renderFile); app.set('view engine', 'html'); app.set('views', __dirname + '/pages'); app.set('view cache', false); swig.setDefaults({ cache: false }); app.use(express.static(__...
JavaScript
0.000001
@@ -108,16 +108,76 @@ arser'); +%0Avar https = require('https'), config = require('./config'); %0A%0Aapp.en @@ -515,16 +515,17 @@ eq, res) + %7B%0A%09res.r @@ -598,18 +598,55 @@ eq, res) + %7B%0A%09if (req.body && req.body.after) %7B%0A +%09 %09console @@ -654,18 +654,267 @@ log( -req.body); +%22checking: %22...
728d6f1240d992d31733e2f5c6d47161df3afff0
Change mongodb IP
app.js
app.js
var express = require('express'); var app = express(); var csvjson = require('csvjson'); var traverse = require('traverse'); //var knayi = require("knayi-myscript"); // Retrieve var MongoClient = require('mongodb').MongoClient; var ObjectID = require('mongodb').ObjectID; var dbhost="mongodb://10.240.33.97:27017/elecapi...
JavaScript
0.000001
@@ -298,13 +298,11 @@ 240. -33.97 +0.2 :270
504789b1900f097fc7d7b9e0c301d64bab5b77a6
Comment out d3
app.js
app.js
//require('newrelic'); var INSTANCE = { processVerisons: process.versions, processTitle: process.title, processPID: process.pid, startTime: process.hrtime(), platform: process.platform, arch: process.arch, memory: process.memoryUsage(), uptime: process.uptime(), network: require('os'...
JavaScript
0
@@ -954,24 +954,26 @@ passport');%0A +// var d3 = req
5b0a12108d829f4cd397141aa977d776374a33f9
send me a body
app.js
app.js
var r = require("request"); var express = require("express"); var app = express(); var path = require('path'); //var twilio = require('twilio')(process.env.TWILIO_ACCOUNT_SID, process.env.TWILIO_AUTH_TOKEN); var twilio = require('twilio'); var moment = require('moment'); var _ = require('lodash'); var qs = require('que...
JavaScript
0
@@ -1242,16 +1242,21 @@ eq.query +.Body )));%0A%0A
222c4445ff9a20a2a1aa01dd355bdead37b786a7
Add app.js file.
app.js
app.js
var express = require('express'); var app = express(); app.use(express.static('public')); // app.get('/', function (req, res) { // res.send(__dirname + 'public/index.html'); // }); app.post('/', function (req, res){ res.send('Got a POST request'); }) var server = app.listen(3000, function () { var host = ser...
JavaScript
0
@@ -85,16 +85,98 @@ ic'));%0A%0A +// TODO: Hook up get route. For when querying by current location is implemented.%0A // app.g @@ -183,33 +183,32 @@ et('/', function - (req, res) %7B%0A// @@ -200,18 +200,22 @@ req, res +ponse ) - %7B%0A// r @@ -216,21 +216,30 @@ // res +ponse .send +File (__dirna @@ -...
682913d8f55caf61c9d0ac1c7a9f3bddcc2968fa
Rename the convert command to original name to simplify the setup steps
app.js
app.js
'use strict'; var express = require('express'); var fs = require('fs'); var mkdirp = require('mkdirp'); var path = require('path'); var app = express(); var imageDir = 'image'; mkdirp(imageDir, function (err) { // path is already exists }); var avatarGenerator = require('avatar-generator')({ order: 'background ...
JavaScript
0.000008
@@ -451,14 +451,8 @@ vert --image '%0A%7D)
3986653fc115b13075cb81d563fc01cd8b30dda9
Clean up confirmation code
app.js
app.js
var restify = require('restify'), builder = require('botbuilder'), nconf = require('nconf'); // Create nconf environment to load keys and connections strings // which should not end up on GitHub nconf .file({ file: './config.json' }) .env(); //=========================================...
JavaScript
0
@@ -2096,328 +2096,21 @@ -function (session, results) %7B%0A if (results.response.toLowerCase() == 'y' %7C%7C results.response.toLowerCase() == 'yes') %7B%0A session.endDialog(%22Ok, I'm getting the hang of things.%22);%0A %7D else %7B%0A session.endDialog(%22Darn. Ok, I've log...
3398f26792939a7f86f404eeebbc201be6fa84ec
Load NewRelic before any other requirements
app.js
app.js
'use strict'; var express = require('express'); var http = require('http'); var path = require('path'); var io = require('socket.io'); var logger = require('morgan'); var bodyParser = require('body-parser'); var errorHandler = require('errorhandler'); var config = require('./config'); var db = require('./db'); var an...
JavaScript
0
@@ -8,16 +8,112 @@ rict';%0A%0A +var config = require('./config');%0A%0Aif (config.newrelic.license_key) %7B%0A require('newrelic');%0A%7D%0A%0A var expr @@ -347,42 +347,8 @@ );%0A%0A -var config = require('./config');%0A var @@ -414,68 +414,8 @@ );%0A%0A -if (config.newrelic.license_key) %7B%0A require('newrel...
de12a9bbff95fa0e27ce94acd00331f73840203f
Fix log
app.js
app.js
'use strict'; var http = require('http'); var config = require('./lib/configLoader'); var api = require('./lib/api'); var logger = config.logger; // Inspired from https://github.com/mojombo/semver/issues/110#issuecomment-19433284, but more permissive (allow leading zeros) and non capturing var versionRegexp = '(\\d...
JavaScript
0.000002
@@ -710,19 +710,44 @@ n: %25s', -err +JSON.stringify(err, null, 4) );%0A%7D);%0A%0A
4534166e0363211c16215b3fc3aef5ca26da5a63
put access log into file
app.js
app.js
/** * Module dependencies. */ var express = require('express'), routes = require('./routes'), about = require('./routes/about'), builder = require('./routes/builder'), test = require('./routes/test'), http = require('http'), Client = require('cas.js'), path = require('path'); var app = express(); va...
JavaScript
0.000001
@@ -262,16 +262,38 @@ s.js'),%0A + fs = require('fs'),%0A path = @@ -329,24 +329,103 @@ express();%0A%0A +var access_logfile = fs.createWriteStream('./logs/access.log', %7Bflags: 'a'%7D);%0A%0A var cas = ne @@ -779,13 +779,32 @@ ger( -'dev' +%7Bstream: access_logfile%7D ));%0A @@ -1362,16 +1362,89 @@ tion()%7...
cf3374f3a6cea5fdc719a2c45061dad0243e26ca
Remove database require
app.js
app.js
'use strict'; require('dotenv').config(); var bodyParser = require('body-parser'); var cookieParser = require('cookie-parser'); var express = require('express'); var logger = require('morgan'); var path = require('path'); var database = require('./config/database'); var routes = require('./rou...
JavaScript
0
@@ -243,53 +243,8 @@ );%0A%0A -var database = require('./config/database');%0A var @@ -250,18 +250,16 @@ routes - = requir
0c18d156fc58d2e9d6bf18468c1b8209a5aeccf6
load mongoose models alongside sequelize models
app.js
app.js
/** * Not Another Budget App * 0.0.0 * */ // deps var express = require('express') var fs = require('fs') var path = require('path') var favicon = require('serve-favicon') var logger = require('morgan') var cookieParser = require('cookie-parser') var bodyParser = require('body-parser') var db = require('mongoose')...
JavaScript
0
@@ -1,59 +1,4 @@ -/**%0A * Not Another Budget App%0A * 0.0.0%0A *%0A */%0A%0A// deps%0A var @@ -234,18 +234,24 @@ r')%0Avar -db +mongoose = requi @@ -270,25 +270,8 @@ ')%0A%0A -/**%0A * init%0A */%0A%0A // a @@ -1075,18 +1075,14 @@ ose -models%0A// +setup%0A fs.r @@ -1119,43 +1119,22 @@ s')%0A -// + .ma...
b427e3ba8bc4f04e0b92d6966fd9ce1ce3b9f561
allow line break in non code text
app.js
app.js
/** * Observe DOM mutations and convert monospace code blocks * @author Tyler Chen, Jesse Mu */ var observerConfig = { childList: true, subtree: true, characterData: false, attributes: false }; var cfx = []; //ideally array containing all '_3hi clearfix' div //there is probably a way to avoid havi...
JavaScript
0.000604
@@ -1086,128 +1086,8 @@ %7D%0A - //cfx = cfx.concat( m.addedNodes%5Bl%5D.getElementsByClassName( %22_3hi clearfix%22 )%5B0%5D ); //Y I AM DUM?? %0A @@ -1363,10 +1363,13 @@ it(' -%5Cn +%3Cbr/%3E ').l @@ -1537,16 +1537,245 @@ = %5B%5D;%0A%0A +//This function can be redone redone. It's not ...
8d8e1a34260484c2ff175a695f0d63c8bbf6ec7a
Fix program name in the usage string
bin.js
bin.js
#!/usr/bin/env node 'use strict'; var concat = require('concat-stream') , prompt = require('cli-prompt') , uniq = require('uniq') , output = require('simple-output'); var spawn = require('child_process').spawn , util = require('util'); output.stdout = output.stderr; (function (argv) { if (argv.length !=...
JavaScript
0.999996
@@ -278,108 +278,139 @@ ;%0A%0A%0A -(function (argv) %7B%0A if (argv.length != 1) %7B%0A output.info('Usage: ' + process.argv%5B1%5D + ' %3Cname%3E' +var usage = function () %7B%0A output.message('Usage: killsome %3Cname%3E');%0A%7D;%0A%0A%0A(function (argv) %7B%0A if (argv.length != 1) %7B%0A usage( );%0A ...
4fc926f52a9181f600c83a9352adb6455b899062
clarify auto-prefix logic
bot.js
bot.js
'use strict'; const Bot = require('node-telegram-bot-api'); const validator = require('validator'); const TinyURL = require('tinyurl'); const symbols = require('log-symbols'); const bot = new Bot(process.env.TOKEN, { polling: true }); const prefixProtocol = url => !/^(?:f|ht)tps?\:\/\//.test(url) ? 'http://' + ...
JavaScript
0.008361
@@ -301,16 +301,17 @@ (url) ? +( 'http:// @@ -317,16 +317,17 @@ /' + url +) : url;%0A
15621444af8aea31b649a1e148ef261b8c1aa573
Fix staging logic to check for one or more comments rather than exactly one
bot.js
bot.js
// https://github.com/octokit/core.js#readme const { Octokit } = require('@octokit/core'); const octokit = new Octokit({auth: process.env.GITHUB}); const constants = require('./constants.json'); const markdown = require('./audits/markdown.js'); // const psi = require('./audits/psi.js'); // const dom = require('./audits...
JavaScript
0
@@ -3408,21 +3408,19 @@ .length -=== 1 +%3E 0 ;%0A // C
4156ce7edb364ae5069ed9358af37973362e2ca5
Restructure where bot posts
bot.js
bot.js
var slackbot = require('node-slackbot'), slackApiKey = process.env.SLACK_KEY, bot = new slackbot(slackApiKey); bot.use(function(message, cb) { var botChannel = message.channel ? message.channel === 'D0NARQRGA' : false, msgType = message.type ? message.type === 'message' : false, toUser = message.text ? m...
JavaScript
0.000003
@@ -151,84 +151,8 @@ var -botChannel = message.channel ? message.channel === 'D0NARQRGA' : false,%0A msgT @@ -284,22 +284,8 @@ if ( -botChannel && msgT @@ -325,33 +325,300 @@ age( -'C0NANKWF7', message.text +message.channel, %22Posted to #you-guys-are-awesome!%22)%0A bot.sendMessage('C0NANKWF7', message.t...
23669d9aab5d242282b4299de7c0724ab34f3bd8
handle no answer, reply w/ error on error
bot.js
bot.js
var constants = require('./constants') // Loads environment files require('envc')({}) var request = require('request') if (!process.env.token) { console.log('Error: Specify token in environment') process.exit(1) } var Botkit = require('./lib/Botkit.js') var os = require('os') var controller = Botkit.slackbot({ ...
JavaScript
0
@@ -1243,24 +1243,105 @@ onse', err)%0A + bot.reply('Error: You must construct additional pylons!')%0A return%0A %7D%0A @@ -1499,16 +1499,43 @@ answered + && item.accepted_answer_id )%0A @@ -2180,32 +2180,121 @@ Response', err)%0A + bot.reply('Error: You must construct addi...
30dfd62c51de7f8dbecadf44cd009e15ebcf7464
add `rm` as alias for `del`
cli.js
cli.js
#!/usr/bin/env node var path = require('path'); var fs = require('fs'); var program = require('commander'); var npmconf = require('npmconf'); var ini = require('ini'); var echo = require('node-echo'); var extend = require('extend'); var open = require('open'); var async = require('async'); var request = require('...
JavaScript
0.000001
@@ -951,24 +951,130 @@ on(onDel);%0A%0A +program%0A .command('rm %3Cregistry%3E')%0A .description('delete one custom registry')%0A .action(onDel);%0A%0A program%0A
c604f5a056f4eaff8195928c8894c70a2b2af197
clean up experimental data-store code
cli.js
cli.js
#!/usr/bin/env node 'use strict'; process.title = 'expand-object'; var argv = require('minimist')(process.argv.slice(2)); var stdin = require('get-stdin'); var Store = require('data-store'); var store = new Store('expand-object'); var expand = require('./index'); var pkg = require('./package.json'); function help(...
JavaScript
0.000094
@@ -156,84 +156,8 @@ ');%0A -var Store = require('data-store');%0Avar store = new Store('expand-object');%0A%0A var @@ -945,211 +945,11 @@ %7B%0A -if (argv.get) %7B%0A output = store.get(argv.get);%0A console.log(output);%0A return;%0A %7D%0A%0A var output = contents;%0A if (argv.set) %7B%0A output...
d1d4573c6c71ff51c1523807d7f9bb69742cfe22
add default and version
cli.js
cli.js
#!/usr/bin/env node 'use strict' const Makenova = require('./') const makenova = new Makenova() const yargs = require('yargs') .usage('$0 <cmd>') .command('name', 'Display name', {}, () => console.log(makenova.name)) .command('title', 'Display title', {}, () => console.log(makenova.title)) .help('h') .alias...
JavaScript
0
@@ -327,16 +327,42 @@ 'help')%0A + .version()%0A .demand(1)%0A .argv%0A
f7d1362573277aba0a4599603bce65e7432897d5
add opnr trigger
cli.js
cli.js
#!/usr/bin/env node const summary = require('server-summary') const cliclopts = require('cliclopts') const isStream = require('is-stream') const minimist = require('minimist') const router = require('./build') const http = require('http') const path = require('path') const url = require('url') const copts = cliclopts...
JavaScript
0
@@ -651,16 +651,20 @@ 'start') + %7B%0A server( @@ -687,16 +687,167 @@ rt, -summary) +function () %7B%0A const addr = 'localhost:' + this.address().port%0A console.log(JSON.stringify(%7B type: 'connect', url: addr %7D))%0A summary.call(this)%0A %7D)%0A%7D %0A%0A//
01c9eed5fa583ae06869227d1967cfb0b36baf74
update cli
cli.js
cli.js
#!/usr/bin/env node const Listr = require('listr'); const inquirer = require('inquirer') const fs = require('fs') const exec = require('child_process').exec; const { getOfficialStations } = require('./lib/station') getOfficialStations().then(() => { console.log('hey'); }) fs.readdir(__dirname + '/stations', (err, ...
JavaScript
0
@@ -23,397 +23,203 @@ nst -Listr = require('listr');%0Aconst inquirer = require('inquirer')%0Aconst fs = require('fs')%0Aconst exec = require('child_process').exec;%0A%0Aconst %7B getOfficialStations %7D = require('./lib/station')%0A%0AgetOfficialStations().then(() =%3E %7B%0A console.log('hey');%0A%7D)%0A%0Afs.read...
6cbce4e38b9b0907c7d41fc9c989409240930e40
fix absolute path resolving for appDirectory
cli.js
cli.js
#! /usr/bin/env node /* * electron-builder * https://github.com/loopline-systems/electron-builder * * Licensed under the MIT license. */ 'use strict'; var fs = require( 'fs' ); var meow = require( 'meow' ); var assign = require( 'lodash.assign' ); var path = require( 'path' ); var builder = ( requi...
JavaScript
0.000001
@@ -635,20 +635,23 @@ = path. -join +resolve ( proces
8cf19ceac824134daa67b6d48e3b0e3ebfc8a64b
Remove obsolete temp dir creation
cmd.js
cmd.js
#!/usr/bin/env node var amok = require('./'); var async = require('async'); var cmd = require('commander'); var fs = require('fs'); var path = require('path'); var temp = require('temp'); var repl = require('repl'); var util = require('util'); var pkg = require('./package.json'); cmd.usage('[options] <script>'); cmd...
JavaScript
0.000001
@@ -1040,138 +1040,8 @@ %7D%0A%0A - temp.track();%0A temp.mkdir('amok', function(error, dirpath) %7B%0A if (error) %7B%0A return callback(error);%0A %7D%0A%0A @@ -1109,26 +1109,24 @@ rr) %7B%0A - if (error) %7B @@ -1118,34 +1118,32 @@ if (error) %7B%0A - return ...
cfadc97e3d12551be06e41f9fd0df5c2736cefe8
Fix bootstrapping to use __dirname
cmd.js
cmd.js
#!/usr/bin/env node var path = require('path') var fs = require('fs') var rimraf = require('rimraf') var resolve = require('./').resolve var install = require('./').install var flags = {} var targets = process.argv.slice(2).filter(function (target, i, arr) { var match = /^--?(.*)$/.exec(target) if (!match) return...
JavaScript
0.000037
@@ -625,37 +625,33 @@ c(path.join( -process.cwd() +__dirname , 'package.j
30f8411b423becbf01a80cd0c6ba7f9ee60711ff
Fix Link Error
dir.js
dir.js
var fileHierarchy={}; const API_PREFIX="http://api.github.com/"; function getRepos() { $.getJSON(API_PREFIX+"users/viethtran/repos", function (result) { if (result["message"]==="Not Found") { println("Error getting data from github"); return; } for (var i=0; i<resul...
JavaScript
0.000001
@@ -37,16 +37,17 @@ IX=%22http +s ://api.g
bcc2984a78c55b18a40ab13ff28ca7eff373fd8f
Optimize loops by storing this.length which is assumed to be invariant.
es5.js
es5.js
// ECMAScript 5 compatibility functions // // Copyright (c) 2011, Jean Vincent // // Licensed under the MIT license // Object.create || ( Object.create = function ( o ) { if ( arguments.length > 1 ) { throw new Error( 'Object.create implementation only accepts the first parameter.' ); } function O()...
JavaScript
0
@@ -1551,33 +1551,52 @@ );%0A var i = -1 -; +, l = this.length;%0A while( ++i %3C th @@ -1589,35 +1589,25 @@ hile( ++i %3C -this.length +l ) c.call( t @@ -1731,33 +1731,52 @@ );%0A var i = -1 -; +, l = this.length;%0A while( ++i %3C th @@ -1769,35 +1769,25 @@ hile( ++i %3C -this.length +l ) if ( c.c...
841454515dfbc1825bc6c5e1e6b6e77806255bf8
修复fiz-web-template名称问题
fiz.js
fiz.js
#!/usr/bin/env node // vi fiz/bin/fiz.js var Liftoff = require("liftoff"); var argv = require("minimist")(process.argv.slice(2)); var path = require("path"); var fs = require("fs"); var cli = new Liftoff({ name: "fiz", processTitle: "fiz", moduleName: "fiz", configName: "fis-conf", //only js supported exte...
JavaScript
0
@@ -546,16 +546,61 @@ //%E6%8F%90%E4%BE%9B%E7%9A%84%E6%9C%8D%E5%8A%A1%0A + var WEB_GIT_NAME = %22fiz-web-template%22;%0A va @@ -653,22 +653,20 @@ me: -%22web-template%22 +WEB_GIT_NAME ,%0A @@ -704,32 +704,32 @@ m/luozt/ -fiz-web-template +%22+WEB_GIT_NAME+%22 .git%22%0A
0b9c80cdd50a78a8008aa1152b3dc8c35ff4e2cf
Fix warning on docs deploy.
docs/web_modules/app/routes.js
docs/web_modules/app/routes.js
import React, {Component, PropTypes} from "react"; import {Route} from "react-router"; import PhenomicPageContainer from "phenomic/lib/PageContainer"; import LayoutContainer from "../LayoutContainer"; import OptimisationContainer from "../layouts/Optimisations/show"; import * as layouts from '../layouts'; class PageCo...
JavaScript
0
@@ -87,16 +87,34 @@ %0Aimport +%7BPageContainer as Phenomic @@ -130,23 +130,24 @@ iner +%7D from -%22 +' phenomic /lib @@ -146,27 +146,9 @@ omic -/lib/PageContainer%22 +' ;%0Aim
9beebf50a4a6c7e4b7ac8b7d780b805c45d84988
remove entity DB cache
ringojs-convinient/app/models.js
ringojs-convinient/app/models.js
var {Store, ConnectionPool, Cache} = require('ringo-sqlstore'); // DO NOT TOUCH THE FOLLOWING LINE. // THIS VARIABLE IS REGEX REPLACED BY setup.py var dbHost = 'localhost'; // create and configure store var connectionPool = module.singleton("connectionPool", function() { return new ConnectionPool({ "url":...
JavaScript
0.000003
@@ -548,104 +548,8 @@ l);%0A -var entityCache = module.singleton(%22entityCache%22, function() %7B%0A return new Cache(10000);%0A%7D);%0A var @@ -642,43 +642,8 @@ %7D);%0A -store.setEntityCache(entityCache);%0A stor @@ -1041,8 +1041,9 @@ : 0;%0A%7D; +%0A
4501a79341cf2255b8da277ef30ca441ae0c2c20
add back html decode to mojim
lyric_engine_js/modules/mojim.js
lyric_engine_js/modules/mojim.js
const Sentry = require('@sentry/node'); const LyricBase = require('../include/lyric-base'); const keyword = 'mojim'; class Lyric extends LyricBase { get_lang(url) { const pattern = /com\/([a-z]{2})y/; return this.get_first_group_by_pattern(url, pattern); } filter_ad(lyric) { const separator = '<br...
JavaScript
0.000132
@@ -1,12 +1,57 @@ +const %7B decode %7D = require('html-entities');%0A const Sentry @@ -2348,20 +2348,19 @@ const -html +raw = await @@ -2379,16 +2379,46 @@ ml(url); +%0A const html = decode(raw); %0A%0A th
16457b8e7f6bde133088d444466d2e374076f768
build issues
config/test/protractor.conf.js
config/test/protractor.conf.js
// FIRST TIME ONLY- run: // ./node_modules/.bin/webdriver-manager update // // Try: `npm run webdriver:update` // // AND THEN EVERYTIME ... // 1. Compile with `tsc` // 2. Make sure the test server (e.g., http-server: localhost:8080) is running. // 3. ./node_modules/.bin/protractor protractor.config.js // // ...
JavaScript
0
@@ -687,14 +687,15 @@ e: ' -chrome +firefox '%0A
7a27fe459a306be837be6d935cd72802570906d5
Format output from graphql list command a little better
packages/@sanity/core/src/actions/graphql/listApisAction.js
packages/@sanity/core/src/actions/graphql/listApisAction.js
module.exports = async function listApisAction(args, context) { const {apiClient, output} = context const client = apiClient({ requireUser: true, requireProject: true }) let endpoints try { endpoints = await client.request({ url: `/apis/graphql`, method: 'GET' }) } catch (err) ...
JavaScript
0
@@ -83,16 +83,23 @@ , output +, chalk %7D = cont @@ -417,16 +417,239 @@ %7D%0A %7D%0A%0A + endpoints = %5B%7B%0A dataset: 'production',%0A tag: 'default',%0A generation: 'gen1',%0A playgroundEnabled: false%0A %7D, %7B%0A dataset: 'staging',%0A tag: 'next',%0A generation: 'gen2',%0A playgr...
dc3edae3167c5e6784c41a6d8555dbb00b4de49d
Fix css-vars issue on preview refresh.
modules/css-vars/script.js
modules/css-vars/script.js
/* global kirkiCssVarFields */ var kirkiCssVars = { /** * Get styles. * * @since 3.0.28 * @returns {Object} */ getStyles: function() { var style = jQuery( '#kirki-css-vars' ), styles = style.html().replace( ':root{', '' ).replace( '}', '' ).split( ';' ), stylesObj = {}; // Format styles a...
JavaScript
0
@@ -1429,20 +1429,737 @@ yles ) ) -%09%09%09%09 +;%0A%09%09%09%7D );%0A%09%09%7D );%0A%09%7D );%0A%7D );%0A%0Awp.customize.bind( 'preview-ready', function() %7B%0A%09wp.customize.preview.bind( 'active', function() %7B%0A%09%09_.each( kirkiCssVarFields, function( field ) %7B%0A%09%09%09wp.customize( field.settings, fun...
1f38dcdf8a85955b44a71bd006263ed6992400df
Set the correct node type in helper-remap-async-to-generator
packages/babel-helper-remap-async-to-generator/src/index.js
packages/babel-helper-remap-async-to-generator/src/index.js
/* @flow */ import type { NodePath } from "babel-traverse"; import nameFunction from "babel-helper-function-name"; import template from "babel-template"; import * as t from "babel-types"; let buildWrapper = template(` (function () { var ref = FUNCTION; return function (PARAMS) { return ref.apply(this,...
JavaScript
0.000016
@@ -1391,24 +1391,63 @@ ration()) %7B%0A + node.type = %22FunctionExpression%22;%0A%0A let decl
b93a481d099d827ea1706dc848adecb86e670945
Range Not satisfiable error fix
config/express.js
config/express.js
'use strict'; var express = require('express'), path = require('path'), config = require('./config'), serveIndex = require('serve-index'); var favicon = require('serve-favicon'), //express middleware errorHandler = require('errorhandler'), logger = require('morgan'), methodOverride...
JavaScript
0.000003
@@ -4992,33 +4992,32 @@ ) %7B%0A if ( -~ err.message.inde @@ -5032,16 +5032,20 @@ found') + %3E=0 ) return @@ -5106,9 +5106,8 @@ if ( -~ err. @@ -5127,18 +5127,8 @@ Of(' -Requested Rang @@ -5146,16 +5146,21 @@ fiable') + %3E=0 ) return
3b88ae1224f5462e33db9fbaa579379ebd786eba
remove log
modules/gulp-nuget-pack.js
modules/gulp-nuget-pack.js
const temp = require("temp"), xml2js = require("xml2js"), Vinyl = require("vinyl"), fs = require("./fs"), path = require("path"), parseXml = function(data) { return new Promise((resolve, reject) => { xml2js.parseString(data, (err, result) => { if (err) { return reject(err); ...
JavaScript
0
@@ -1051,42 +1051,8 @@ ) %7B%0A - console.log(%7B%0A options%0A %7D);%0A if
472c9d3a88180b474c98a015914154110cb054b1
Fix U4-4779: Media Picker not working as single picker
src/Umbraco.Web.UI.Client/src/views/propertyeditors/mediapicker/mediapicker.controller.js
src/Umbraco.Web.UI.Client/src/views/propertyeditors/mediapicker/mediapicker.controller.js
//this controller simply tells the dialogs service to open a mediaPicker window //with a specified callback, this callback will receive an object with a selection on it angular.module('umbraco').controller("Umbraco.PropertyEditors.MediaPickerController", function($rootScope, $scope, dialogService, mediaResource,...
JavaScript
0.000004
@@ -416,16 +416,51 @@ Picker = + $scope.model.config.multiPicker && $scope. @@ -4309,12 +4309,14 @@ ;%0D%0A%0D%0A %7D); +%0D%0A
20ad79c5cf36e84c7e003af77782956d7dd462b0
add option entriesFilter
lib/util/ensureConfigHasEntry.js
lib/util/ensureConfigHasEntry.js
function ensureConfigHasEntry (webpackConfig, entry, entryQuery, options = {}) { if (Array.isArray(webpackConfig)) { return webpackConfig.map((value) => ensureConfigHasEntry(value, entry, entryQuery, options)) } if (Array.isArray(entry)) { entry.forEach((e) => ensureConfigHasEntry(webpackConfig, e, entry...
JavaScript
0
@@ -1328,28 +1328,242 @@ -Object.keys(obj%5Bkey%5D +let %7B%0A entriesFilter = () =%3E true%0A %7D = options%0A%0A if (Array.isArray(entriesFilter)) %7B%0A entriesFilter = (entryName) =%3E options.entriesFilter.indexOf(entryName) !== -1%0A %7D%0A%0A Object.keys(obj%5Bkey%5D).filter(entriesFi...
53cb773a3781196dd9535c21662fd0fd085f7d2e
fix indention
lib/utils/parse-platform-opts.js
lib/utils/parse-platform-opts.js
var _kebabCase = require('lodash').kebabCase; var _forEach = require('lodash').forEach; var IOS_OPTS = [ 'codeSignIdentity', 'provisioningProfile', 'codesignResourceRules' ]; var ANDROID_OPTS = [ 'keystore', 'provisioningProfile', 'storePassword', 'alias', 'password', 'keystoreType', 'gradleArg', ...
JavaScript
0.000001
@@ -626,24 +626,28 @@ === 'ios') %7B +%0A optsKeys = @@ -659,12 +659,12 @@ PTS; - %7D %0A + %7D els @@ -694,16 +694,20 @@ roid') %7B +%0A optsKey @@ -723,16 +723,18 @@ ID_OPTS; +%0A %7D%0A%0A _f
b87e40b5cf7fed9fba170f01840aaa2586f62ea6
fix case of import
server/controllers/AdditionalReviewerController.js
server/controllers/AdditionalReviewerController.js
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2015 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your optio...
JavaScript
0.000275
@@ -794,17 +794,17 @@ eviewerD -B +b ';%0Aimpor
dcc29edb76cccab78de102bc9bf4f33029cdc090
remove debugging element
packages/react-router-website/modules/components/APIDocs.js
packages/react-router-website/modules/components/APIDocs.js
import React from 'react' import ReactDOM from 'react-dom' import { Route } from 'react-router-dom' import { I, H, B, PAD, lightGray, red } from './bricks' import MarkdownViewer from './MarkdownViewer' import ScrollToMe from './ScrollToMe' export const API = [ { name: 'BrowserRouter', html: require('../api/Brows...
JavaScript
0.000016
@@ -3522,49 +3522,8 @@ w%7D%3E%0A - %3CB%3E%7Bthis.state.overflow%7D%3C/B%3E%0A
b004fb2752abf26bc1b087d54d17016aa22ca4f3
add Flow
src/synthesizeImages.js
src/synthesizeImages.js
function loadImage(dataUrl) { return new Promise(resolve => { const image = new Image(); image.onload = () => resolve(image); image.src = dataUrl; }); } function generateBaseCanvas(baseImage) { return loadImage(baseImage).then(image => { const canvas = document.createElement('canvas'); canvas...
JavaScript
0.000001
@@ -1,16 +1,25 @@ +// @flow%0A function loadIma @@ -28,17 +28,41 @@ (dataUrl -) +: string): Promise%3CImage%3E %7B%0A ret @@ -224,16 +224,19 @@ eCanvas( +%0A baseImag @@ -236,17 +236,95 @@ aseImage -) +: string%0A): Promise%3C%7Bcanvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D%7D%3E %7B%0A ret @@ -...
29a3753ece812af0f57ee36132e50375a609ee00
Debug Quelltext entfernt.
invertika/index.js
invertika/index.js
/*! * * Invertika.js - Web-based 2D MMORPG * http://invertika.org * */ // Variablen var ip = "127.0.0.1"; var accountServerConnectionString=sprintf("ws://%s:9601", ip); var accountServer; var PROTOCOL_VERSION=1; var _username; var _password; //Debug function debug() { //login("seeseekey", "geheim"); //lo...
JavaScript
0
@@ -1116,162 +1116,8 @@ ));%0A -%09%09%09%0A%09%09%09//BuildPW%0A%09%09%09// var a=sha256_digest(username + password);%0A%09%09%09// var b=sha256_digest(a);%0A%09%09%09// var c=sha256_digest(b+token);%0A%09%09%09// msg.addValue(c);%0A %09%09%09%09
6665c4693f2b677e4bc9b7aef5f6c3d71ef77e1c
Clear hang timeout timer when LibreOffice exits
src/node/utils/LibreOffice.js
src/node/utils/LibreOffice.js
/** * Controls the communication with LibreOffice */ /* * 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 appl...
JavaScript
0
@@ -3312,31 +3312,46 @@ -setTimeout(function()%7B +const hangTimeout = setTimeout(() =%3E %7B %0A @@ -3842,24 +3842,59 @@ ion(code) %7B%0A + clearTimeout(hangTimeout);%0A if (
fb39a8ba49a28f777eb01bdecd8f988ce5f70e54
Update w/ api changes.
ios/example/app.js
ios/example/app.js
// This is a test harness for your module // You should do something interesting in this harness // to test out the module and to provide instructions // to users on how to use it by example. // open a single window var win = Ti.UI.createWindow({ backgroundColor:'white' }); var label = Ti.UI.createLabel(); win.add...
JavaScript
0
@@ -562,24 +562,183 @@ atabase();%0A%0A +database.addEventListener(database.CHANGE_EVENT, function(e) %7B%0A%09var query = e.source.queryAllDocuments;%0A%09%0A%09label.text = %22Documents: %22 + query.rows.count;%0A%7D);%0A%0A var userId = @@ -981,17 +981,19 @@ ication. -c +isC ontinuou @@ -1083,17 +1083,19 @@ ica...
cc3f5941a490d19544ab5e5d5ff959f90119a4d5
Update secrets.js
config/secrets.js
config/secrets.js
/** * IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT IMPORTANT * * You should never commit this file to a public repository on GitHub! * All public code on GitHub can be searched, that means anyone can see your * uploaded secrets.js file. * * I did it for your convenience using "throw away" AP...
JavaScript
0.000001
@@ -1577,21 +1577,23 @@ e: ' -cleansheetnod +yourdatabasaher e',%0A @@ -2318,8 +2318,9 @@ '%0A %7D%0A%7D; +%0A
883e5f52ea4a18c912234904ed2561e557f79e5a
Fix linting
src/patch/operators/string.js
src/patch/operators/string.js
// eslint-disable-next-line no-underscore-dangle export const _replace = { attribute: ['string'], argument: ['string[]'], check({ arg: opVal }) { // eslint-disable-next-line no-magic-numbers const isValid = opVal.length <= 3 && opVal.length >= 2 if (!isValid) { return 'the argument must be an...
JavaScript
0.000004
@@ -151,57 +151,8 @@ ) %7B%0A - // eslint-disable-next-line no-magic-numbers%0A
bb7eae5c5382bb0d31972e46198a81ca47a0e638
Call sendMessage in iOS ClearableTextInput onBlur
native/components/clearable-text-input.react.ios.js
native/components/clearable-text-input.react.ios.js
// @flow import type { ClearableTextInputProps } from './clearable-text-input'; import type { KeyPressEvent } from '../types/react-native'; import * as React from 'react'; import { TextInput, View, StyleSheet } from 'react-native'; import invariant from 'invariant'; type State = {| textInputKey: number, |}; class...
JavaScript
0
@@ -3627,16 +3627,453 @@ false;%0A + if (this.pendingMessage) %7B%0A // This is to catch a race condition where somebody hits the send button%0A // and then blurs the TextInput before the textInputKey increment can%0A // rerender this component. With this.focused set to false, the new%0A // Tex...
b50a648e8b205dadb34ceb5dd42c1dd9841ffd13
delete some console.log Please enter the commit message for your changes. Lines starting
packages/telescope-custom-post-form/lib/stripe-post-form.js
packages/telescope-custom-post-form/lib/stripe-post-form.js
// secret key: sk_test_G77gaaVCcCaEFTccvZx04IFC --> keep in server side // publishable key: pk_test_GpmbjLyT5iOAfAPK7zT7DkF1 --> keep in client side // href="https://connect.stripe.com/oauth/authorize?response_type=code&client_id=ca_7NQ3TnZveKPdFms4tlzUx5wswjPDubGN&scope=read_write if(Meteor.isServer){ ...
JavaScript
0.000003
@@ -149,19 +149,16 @@ ent side -%0A%0A%0A %0A// hr @@ -1527,34 +1527,32 @@ ) %7B%0A - console.log(%22res @@ -1688,34 +1688,32 @@ else %7B%0A - cons
326416a891fd52f2c3911d47e36fd471bef47d58
Remove redundant sign in toggle
public/js/popit.js
public/js/popit.js
$(document).ready(function() { /* Enlarge and shrink the search box on focus */ $('#person-search').focus(function(event) { $('.person-header-nav').addClass('focus-search'); }).blur(function(event) { $('.person-header-nav').removeClass('focus-search'); }); /* Design State Demos - the different ...
JavaScript
0.000001
@@ -267,17 +267,16 @@ %0A%09%7D);%0A%09%0A -%09 %0A%09/*%0A%09%09D @@ -358,62 +358,8 @@ ogo%0A -%09%09- Sign-in box toggle states, logged in / logged out%0A %09*/ @@ -436,87 +436,8 @@ %7D);%0A -%09$('#user_menu a').click(function(e) %7B $('body').toggleClass('signed_in'); %7D);%0A %09%0A%7D)
700b200b1affa68babb4955df52e2fab378dad37
Implement detectLocation through ajax promise.
library/CM/FormField/Location.js
library/CM/FormField/Location.js
/** * @class CM_FormField_Location * @extends CM_FormField_SuggestOne */ var CM_FormField_Location = CM_FormField_SuggestOne.extend({ _class: 'CM_FormField_Location', events: { 'click .detectLocation': 'detectLocation' }, ready: function() { CM_FormField_SuggestOne.prototype.ready.call(this); ...
JavaScript
0
@@ -1236,41 +1236,62 @@ is;%0A +%0A -var deferred = $.Deferred();%0A +return new Promise(function(resolve, reject) %7B%0A @@ -1335,35 +1335,17 @@ ion( -deferred.resolve, deferred. +resolve, reje @@ -1349,29 +1349,22 @@ eject);%0A -%0A -deferred +%7D) .then(fu @@ -1384,24 +1384,33 @@ on) %7B%0...
7407ac1a4560940fd8bf2f5b924e647d2c406b89
Fix traffic info formatting.
traffic.js
traffic.js
var rest = require('restler'); var jf = require('jsonfile'); var util = require('./util'); var ltaCredFile = './private/lta_credentials.json'; var ltaCredentials = jf.readFileSync(ltaCredFile); var busStops = [19059, 19051, 17099, 17091]; var defaultBusStop = 19059; var busStopUrl = 'http://datamall2.mytransport...
JavaScript
0.000002
@@ -998,16 +998,21 @@ ingsList + = %22%22 ;%0A va @@ -1283,16 +1283,17 @@ ngsList ++ = bus.Se @@ -1412,16 +1412,23 @@ BusTime) + + '%5Cn' ;%0A @@ -1471,58 +1471,61 @@ List -) ? %22Buses in operation: %5Cn%22 : %22Go walk home %F0%9F%98%9C.%5Cn%22 + === %22%22) ? %22Go walk home %F0%9F%98%9C.%22 : %22Bu...
38f35b567691b7db3474e595653799d08616735c
mark simpleavatar.js as dependency for the main avatar application js.
bin/scenes/Avatar/avatarapplication.js
bin/scenes/Avatar/avatarapplication.js
// Avatar application. Will handle switching logic between avatar & freelook camera (clientside), and // spawning avatars for clients (serverside). Note: this is not a startup script, but is meant to be // placed in an entity in a scene that wishes to implement avatar functionality. var avatar_area_size = 10; var avat...
JavaScript
0
@@ -1,12 +1,46 @@ +// !ref: local://simpleavatar.js%0A%0A // Avatar ap
01ca1e56562692510e3ed76ecd6b9693417adfd1
Add itemizing class only on addItem
itemObjectModel.js
itemObjectModel.js
define(function() { 'use strict'; var _BYTESOURCE = Symbol('byteSource'); var itemObjectModel = { createItem: function(title) { var itemElement = document.createElement('SECTION'); itemElement.classList.add('item'); itemElement.appendChild(itemElement.titleElement = document.cr...
JavaScript
0
@@ -1723,51 +1723,8 @@ ) %7B%0A - this.classList.add('itemizing');%0A @@ -2085,24 +2085,67 @@ ingItems();%0A + this.classList.add('itemizing');%0A th
750731b2adc3bdb8bf256764510ea3330c4222f3
Modify basic-demo
demos/basic/main.js
demos/basic/main.js
var mainWorkspace, nested1, nested11, nested12, nested121, nested2, nested21, nested22, nested221, block1, block2, block3, block4; var main = function() { mainWorkspace = new BB.Workspace('main', 'mainWorkspaceDiv'); nested1 = mainWorkspace.addWorkspace('nested1', {width : 300, height: 300, x: 10, y: 10}); nested2 =...
JavaScript
0.000004
@@ -286,17 +286,18 @@ ht: -3 +4 00, x: -1 +35 0, y @@ -375,17 +375,17 @@ height: -3 +4 00%7D);%0A%09n @@ -436,18 +436,18 @@ width : +2 1 -0 0, heigh @@ -450,17 +450,17 @@ eight: 1 -0 +4 0, x: 10 @@ -814,16 +814,38 @@ '%5D;%0A%09%7D;%0A + // Main Workspace%0A %09mainWor @@ -1088,241 +1088,8 @@ 0);%0A...
94c90f640e4c0d0554b9c18acf5e74c79246cb81
add dark mode bottom border to sidebar
pkg/interface/link/src/js/components/lib/channel-sidebar.js
pkg/interface/link/src/js/components/lib/channel-sidebar.js
import React, { Component } from 'react'; import { Route, Link } from 'react-router-dom'; import { ChannelsItem } from '/components/lib/channels-item'; export class ChannelsSidebar extends Component { // drawer to the left render() { const { props, state } = this; let privateChannel = Object.keys(...
JavaScript
0
@@ -2491,17 +2491,17 @@ ssName=%7B -%60 +%22 f8 f9-m @@ -2510,16 +2510,20 @@ -l f9-xl + %22 + %0A @@ -2526,16 +2526,17 @@ +%22 pt1 pt4- @@ -2545,24 +2545,28 @@ pt4-l pt4-xl + %22 + %0A @@ -2565,16 +2565,17 @@ +%22 pr4 pb3 @@ -2592,16 +2592,20 @@ l pb3-xl + %22 + %0A ...
2ee89538eeb5193a5fba07e9c07468824782b59f
Add babel-register
truffle.js
truffle.js
var DefaultBuilder = require("truffle-default-builder"); module.exports = { networks: { development: { host: "localhost", port: 8545, network_id: "*" // Match any network id }, testnet: { host: "localhost", port: 8545, network_id: 3 } } };
JavaScript
0
@@ -1,58 +1,81 @@ -var DefaultBuilder = require(%22truffle-default-builder%22 +// Allows us to use ES6 in our migrations and tests.%0Arequire('babel-register' );%0A%0A
2e2b5398a87624bcd3a3636ed981163262d42921
modify poitem model
src/po/purchase-order-item.js
src/po/purchase-order-item.js
'use strict' var BaseModel = require('capital-models').BaseModel; var Product = require('../core/product'); module.exports = class PurchaseOrderItem extends BaseModel { constructor(source) { super(type || 'purchase-order-item', '1.0.0'); this.qty = 0; this.price = 0; this.p...
JavaScript
0
@@ -185,16 +185,22 @@ r(source +, type ) %7B%0A @@ -250,24 +250,16 @@ .0.0');%0A - %0A
b776f561c5d83a2c5fc4d26cf49569a571b950b3
Fix minification
mediaexperience.js
mediaexperience.js
/*! * mediaexperienceJS v0.2.0 * * Copyright 2014 Martin Adamko * Released under the MIT license * */ ;(function( $, window, document ){ /** * @constructor */ var MediaExperience = function( elem, options ){ this.elem = elem; this.$elem = $(elem); this.options = options; ...
JavaScript
0.000019
@@ -5085,24 +5085,25 @@ %7D%0A %7D +; %0A%0A MediaE
20c4f082f52ecda48a974c3652fd0193431b6f01
remove unnecessary providers
src/test-utils/index.js
src/test-utils/index.js
/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import { render, fireEvent } from '@testing-library/react'; import { node } from 'prop-types'; import { TypographyProvider } from '../components/Typography'; import { BoxProvider } from '../components/Box'; const propTypes = { children...
JavaScript
0.000001
@@ -236,57 +236,8 @@ hy'; -%0Aimport %7B BoxProvider %7D from '../components/Box'; %0A%0Aco @@ -327,26 +327,8 @@ %3E (%0A - %3CBoxProvider%3E%0A %3CT @@ -346,18 +346,16 @@ ovider%3E%0A - %3C%3E%7Bc @@ -366,18 +366,16 @@ ren%7D%3C/%3E%0A - %3C/Typo @@ -394,25 +394,8 @@ er%3E%0A - %3C/BoxProvider...
74f6dec5d20fa74c9562d8daabd2a7f66337e482
Update jasmine tests runner.
tests/js/runner.js
tests/js/runner.js
require.config({ baseUrl: '../../www/', paths: { underscore: 'lib/underscore/underscore', jquery: 'lib/jquery/jquery', bootstrap: 'lib/bootstrap/dist/js/bootstrap', contextmenu:'lib/bootstrap-contextmenu/bootstrap-contextmenu', moment: 'lib/moment/moment', ...
JavaScript
0
@@ -131,16 +131,21 @@ /jquery/ +dist/ jquery', @@ -365,25 +365,25 @@ ng -Cookies: +Sanitize: 'lib/an @@ -388,23 +388,24 @@ angular- -cookies +sanitize /angular @@ -409,15 +409,16 @@ lar- -cookies +sanitize ',%0A @@ -483,27 +483,33 @@ -ngM +'angular-m oment +' : - 'lib/an @@ -571,19 +571...
375ad7e7b2c2ebe250a84eb7afa24152b593625e
add default WP version for E2E tests (#10574)
packages/e2e-test-utils/src/minWPVersionRequired.js
packages/e2e-test-utils/src/minWPVersionRequired.js
/* * 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/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
JavaScript
0
@@ -868,16 +868,28 @@ _VERSION + %7C%7C 'latest' ;%0A if (
b9384e989faa4f971928274da4c67cbad47fd7f7
replace `method` with `type`
jquery.fajax.js
jquery.fajax.js
;(function ($) { $.fn.fajax = function (options) { var settings = $.extend({ beforeSend: function(){}, success: function(){}, error: function(){}, complete: function(){}, }, options); return this.each(function() { $(this).on('su...
JavaScript
0.998672
@@ -621,22 +621,20 @@ -method +type : method
1dcdf50396006f49d84b01c934e13513d6a2a8df
Add repository URL in a comment.
jquery.wheel.js
jquery.wheel.js
/** * Author & Copyright: Michał Gołębiowski <m.goleb@gmail.com> * License: MIT * * Thanks to Brandon Aaron (http://brandonaaron.net) for the idea of this plugin. */ (function ($) { 'use strict'; if ($.fn.wheel) { // already polyfilled return; } // Modern browsers support `wheel`, WebKit...
JavaScript
0
@@ -75,16 +75,69 @@ se: MIT%0A + * Repository: https://github.com/mzgol/jquery-wheel%0A *%0A * Th
25ba8186e636679f8d875db96e37e7967a085d52
make init function for car model
models/car.model.js
models/car.model.js
const validator = require('../utils').validator; const size = require('../utils').constants.size; const convert = require('../utils/inputConverter').convert; class Car { constructor(model, photoLink) { this._makemodel = model.makemodel; this._category = model.category; this._carphotolink = ...
JavaScript
0.000006
@@ -5758,16 +5758,99 @@ %7D%0A%7D%0A%0A +%0Aconst initCar = (model, photoLink) =%3E %7B%0A return new Car(model, photoLink);%0A%7D;%0A%0A module.e @@ -5857,14 +5857,27 @@ xports = + %7B Car +, initCar %7D ;%0A
7e2e96cbee78d8b9c62401953a9f905e4dd36373
use native findIndex if supported
src/popper/utils/findIndex.js
src/popper/utils/findIndex.js
/** * Return the index of the matching object * @method * @memberof Popper.Utils * @argument {Array} arr * @argument prop * @argument value * @returns index or -1 */ export default function findIndex(arr, prop, value) { // use filter instead of find because find has less cross-browser support const matc...
JavaScript
0.000001
@@ -221,16 +221,161 @@ alue) %7B%0A + // use native findIndex if supported%0A if (Array.prototype.findIndex) %7B%0A return arr.findIndex((cur) =%3E cur%5Bprop%5D === value);%0A %7D%0A%0A // u
9925672d517dc7d8ec72e11a57cdd8ce24cfebb2
format #59
js/StatusBar.js
js/StatusBar.js
// Copyright 2018, University of Colorado Boulder /** * Status bar that runs along the top of a game * * @author Andrea Lin */ define( function( require ) { 'use strict'; // modules var BackButton = require( 'SCENERY_PHET/buttons/BackButton' ); var inherit = require( 'PHET_CORE/inherit' ); var Node =...
JavaScript
0.000013
@@ -185,19 +185,16 @@ modules%0A - %0A var Ba @@ -1290,20 +1290,16 @@ er %7D );%0A - %0A var @@ -1665,16 +1665,18 @@ undFill%0A + %7D );
1f2027b62c5531d40ef0da436f228e52270a410d
Update app.js
javascripts/app.js
javascripts/app.js
var main = function(){ //Dropdown menu $(''.dropdown-toggle').click(function(){ $(''.dropdown-menu').toggle(); }); //For the about toggle $('#pagetopic').click(function(){ $('#pagetopic').fadeOut(1000); }); }; $(document).ready(main);
JavaScript
0.000002
@@ -33,25 +33,24 @@ wn menu%0A $(' -' .dropdown-to
8912c190268c7d718efba7418e6a4671cd9866ea
changed to shorter date
WebKit/scripts/lib/Timeago.js
WebKit/scripts/lib/Timeago.js
define([ "jquery" ], function($) { /** * Timeago is a jQuery plugin that makes it easy to support automatically * updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago"). * * @name timeago * @version 0.11.4 * @requires jQuery v1.2.3+ * @author Ryan McGeary * @license MIT License - http://ww...
JavaScript
0.999126
@@ -1087,14 +1087,11 @@ o: %22 -ago %22,%0A + @@ -1143,26 +1143,14 @@ s: %22 -less than a minute +%25d sec %22,%0A @@ -1169,22 +1169,13 @@ e: %22 -about a +1 min -ute %22,%0A @@ -1197,20 +1197,16 @@ %22%25d min -utes %22,%0A @@ -1219,21 +1219,11 @@ r: %22 -about an hour +1 h %22,%0A @@ -1241,...
4e829853e46937f11261ec0de2d28a68f8f40bd9
Fix cached files paths.
build/serviceworker.js
build/serviceworker.js
'use strict'; importScripts('serviceworker-cache-polyfill.js'); var CACHE_NAME = 'react-boilerplate-cache-v1'; // The files we want to cache var urlsToCache = ['/', '/css/main.css', '/js/bundle.js']; // Set the callback for the install step self.addEventListener('install', function (event) { // Perform install ste...
JavaScript
0
@@ -161,16 +161,21 @@ %5B'/', ' +build /css/mai @@ -183,16 +183,21 @@ .css', ' +build /js/bund @@ -1811,12 +1811,13 @@ ;%0A %7D));%0A%7D); +%0A
b28087d046371069028af24de4b20adabd4dc9bd
FIX : bad systemjs-router-bundler parameter
build/tasks/release.js
build/tasks/release.js
var gulp = require('gulp'); var insert = require('gulp-insert'); var concatFile = require('gulp-concat'); var runSequence = require('run-sequence'); var routeBundler = require('systemjs-route-bundler'); var paths = require('../paths'); gulp.task('cache-bust', function () { var cacheBust = "var systemLocate = System....
JavaScript
0.000001
@@ -1570,20 +1570,22 @@ -syste +jsp mConfig +Path : '.
1a779cdbef531036ccbd1f39d7d900cbb0dd0955
Revert "changed chmod/chown target to sim directory #146"
js/grunt/dev.js
js/grunt/dev.js
// Copyright 2017, University of Colorado Boulder /** * Deploys a dev version after incrementing the test version number. * * @author Jonathan Olson <jonathan.olson@colorado.edu> */ 'use strict'; // modules const _ = require( 'lodash' ); // eslint-disable-line const assert = require( 'assert' ); const booleanPro...
JavaScript
0
@@ -6380,35 +6380,39 @@ chmod -R g+w %22$%7B -sim +version Path%7D%22%60 );%0A awa @@ -6437,27 +6437,31 @@ -R :phet %22$%7B -sim +version Path%7D%22%60 );%0A%0A
d6b22176bbd4cbe8bd29980b1c60a8325e409656
Add File.ShortPath
_emulator/FileSystemObject.js
_emulator/FileSystemObject.js
var controller = require("../_controller"); function TextStream(filename) { this.buffer = controller.readFile(filename) || ""; this.uuid = controller.getUUID(); this.filename = filename; this.Write = this.WriteLine = line => { this.buffer = this.buffer + line; controller.writeFile(filename, this.buffer); con...
JavaScript
0.000001
@@ -624,16 +624,71 @@ t();%0A%09%7D%0A +%09this.ShortPath = function() %7Bconsole.log(arguments);%7D%0A %7D%0A%0Afunct @@ -1057,16 +1057,68 @@ tents);%0A +%09this.ShortPath = %22C:%5C%5CPROGRA~1%5C%5Cexample-file.exe%22;%0A %7D%0A%0Afunct
57a0666c000d72902e4b7965c1438e42c9e235bf
modify default zoom
mobile/ol3map/js/map.js
mobile/ol3map/js/map.js
var baseLayer = new ol.layer.Tile({ source: new ol.source.OSM() }); var countries = new ol.layer.Vector({ source: new ol.source.GeoJSON({ projection: 'EPSG:3857', url: '../data/shanghai.json' }) }); var center = ol.proj.transform([114.01,22.51],'EPSG:4326','EPSG:3857'); //-122.0312186,37.33233141 var vi...
JavaScript
0.000001
@@ -362,9 +362,10 @@ om: -9 +12 %0A%7D);
8f3a114bc2e20fad3d338a9c670785bdda3f50e3
add comments to the top of each function
js/news/news.js
js/news/news.js
// A lot of this code is from the original feedToJson function that was included with this project // The new code allows for multiple feeds to be used but a bunch of variables and such have literally been copied and pasted into this code and some help from here: http://jsfiddle.net/BDK46/ // The original version can b...
JavaScript
0
@@ -855,24 +855,275 @@ Id: null%0A%7D%0A%0A +/**%0A * Creates the query string that will be used to grab a converted RSS feed into a JSON object via Yahoo%0A * @param %7Bstring%7D feed The original location of the RSS feed%0A * @return %7Bstring%7D The new location of the RSS feed provided by Yahoo%0A */%0A new...
353e4ab7978ec1359b275f7a2cae8c019a2e66b9
Update count value to Number type.
models/AkamaiLogData.js
models/AkamaiLogData.js
var mongoose = require('mongoose'); require('./projectModel'); var AkamaiSchema = new mongoose.Schema({ Day : { type: String, index: true}, URL: String, Completed : Number, Initiated : String, EDGE_VOLUME : String, OK_EDGE_VOLUME : String, ERROR_EDGE_VOLUME : String, EDGE_HITS : String, OK_EDGE_HI...
JavaScript
0
@@ -190,22 +190,22 @@ iated : -String +Number ,%0D%0A%09EDGE @@ -210,30 +210,30 @@ GE_VOLUME : -String +Number ,%0D%0A%09OK_EDGE_ @@ -237,30 +237,30 @@ GE_VOLUME : -String +Number ,%0D%0A%09ERROR_ED @@ -267,30 +267,30 @@ GE_VOLUME : -String +Number ,%0D%0A%09EDGE_HIT @@ -289,30 +289,30 @@ EDGE_HITS : -Str...
f8e13c372e12cd0ca6b6292116376bdece63eb81
use channel.id?
modules/checkforcode.js
modules/checkforcode.js
/* Systematically search through Discord comments to find unformatted Code. * Look for lines ending in ; * Look for lines ending in ) * Look for lines ending in { or } * If found, Locate the first Code Block Line * If found, Locate the last Code Block Line * RePost the message surrounded by...
JavaScript
0
@@ -2470,15 +2470,10 @@ nel. -mention +id + '
8876cb99b1294be0ce7f0ed9c9378e925002f550
Update sub.js
modules/commands/sub.js
modules/commands/sub.js
const Discord = require("discord.js"); const config = require('../../config.json'); const prefix = config.prefix; const request = require('request') const ytkey = config.youtube_api_key; module.exports = (bot) => { bot.addCommand("sub ", (payload) => { var message = payload.message var id = message.content.s...
JavaScript
0.000001
@@ -170,16 +170,24 @@ .youtube +.youtube _api_key
701f8306911fa625557fa8c0a735eec3ba0b774b
Add optional syncCallback argument to worker.postMessage()
modules/ringo/worker.js
modules/ringo/worker.js
var engine = require("ringo/engine").getRhinoEngine(); var {Semaphore: JavaSemaphore, TimeUnit} = java.util.concurrent; export("Worker", "Semaphore"); function Worker(module) { if (!(this instanceof Worker)) { return new Worker(module); } var worker; var self = this; var onmessage = fun...
JavaScript
0
@@ -593,24 +593,28 @@ (data, s -emaphore +yncCallbacks ) %7B%0A @@ -648,32 +648,203 @@ ne.getWorker();%0A + var invokeCallback = function(callback, arg) %7B%0A if (syncCallbacks) callback(arg);%0A else currentWorker.submit(self, callback, arg);%0A %7D%0A var targ @@ -...
d614747f1c241ed84146e9246a945879d9cbea6d
add items in features tree
js/autocomplete.js
js/autocomplete.js
var autocomplete = { autocompleteTree: { pathKey: { empty : ['coverage', 'places', 'journeys', 'coord'], all : ['addresses', 'commercial_modes', 'companies', 'departures', 'disruptions', 'lines', 'networks', ...
JavaScript
0
@@ -454,35 +454,36 @@ 'route_schedule +s ',%0A - 'rou @@ -967,16 +967,17 @@ schedule +s ',%0A @@ -1172,24 +1172,118 @@ paramKey: %7B%0A + departures : %5B'from_datetime', 'duration', 'forbidden_uris%5B%5D', 'data_freshness'%5D,%0A @@ -1424,38 +1424,403 @@ -places: ...
7ac5f9a60307b02fb1bb1dcafd2a9ed1efd932c0
refactor ternary
js/base/Precise.js
js/base/Precise.js
'use strict' const zero = BigInt (0) const minusOne = BigInt (-1) class Precise { constructor (number, decimals = 0) { const isBigInt = typeof number === 'bigint' const isString = typeof number === 'string' if (!(isBigInt || isString)) { throw new Error ('Precise initiated with...
JavaScript
0.999904
@@ -3362,149 +3362,244 @@ -cons +le t sign - = this.integer %3C 0 ? '-' : ''%0A const integerArray = Array.from ((this.integer %3C 0 ? this.integer * minusOne : this.integer) +%0A let abs%0A if (this.integer %3C 0) %7B%0A sign = '-'%0A abs = -this.integer%0A %7D ...
44f6ae48c51898202ffc53453c787d8d59a5c87d
fix typo in Link response header
ldp.js
ldp.js
/*jshint node:true*/ // ldp.js // This file contains the server side JavaScript code for your application. // This sample application uses express as web application framework (http://expressjs.com/), // and jade as template engine (http://jade-lang.com/). var express = require('express'); var rdfstore = require('rdf...
JavaScript
0.00004
@@ -1156,9 +1156,8 @@ e: ' -%3C http
05135bb205993c55da3edc8354fa2b49c5bf3c39
Fix issue #127, reset button does not persist accurately
js/editable-css.js
js/editable-css.js
(function(global) { var exampleChoiceList = document.getElementById('example-choice-list'); var exampleChoices = exampleChoiceList.querySelectorAll('.example-choice'); var header = document.querySelector('header'); var initialChoice = 0; var originalChoices = []; var output = document.getElement...
JavaScript
0
@@ -1052,24 +1052,163 @@ tor('pre');%0A + var currentChoiceText = choice.textContent.trim();%0A var originalChoice = originalChoices%5BindexOf(exampleChoices, choice)%5D;%0A%0A choi @@ -1300,27 +1300,76 @@ d state, -%0A + or the code%0A does not match the original example, ...
64e39ac713a2b22ba52b87fbecfc7cd600226b20
add data to report
lib.js
lib.js
// this is a proof of concept implementation of a code duplication finder // that will find the highest threshold and create an array of reports. // // using https://github.com/danielstjules/jsinspect to find duplicated code const child_process = require("child_process") var results = [] function inspector(file, thr...
JavaScript
0
@@ -333,16 +333,72 @@ back) %7B%0A + // console.log('inspect with threshold', threshold);%0A%0A // TOD @@ -947,19 +947,16 @@ %0A - // report. @@ -969,17 +969,16 @@ results -m // add
5ed5968b767357ab31a8b8bb6604dc04ede3286c
fix reverting tag values
js/id/ui/preset.js
js/id/ui/preset.js
iD.ui.preset = function(context, entity, preset) { var original = context.graph().base().entities[entity.id], event = d3.dispatch('change', 'close'), fields = [], tags = {}, formwrap, formbuttonwrap; function UIField(field, show) { field = _.clone(field); ...
JavaScript
0
@@ -2198,19 +2198,18 @@ ey%5D -: undefined +%7C%7C '' : '' ;%0A
16804b22e67bebf64670f3b1dde3703fe0b77003
Update English.js
js/lang/English.js
js/lang/English.js
const language = { "unknown_error" : "Unknown error from server", "newJoin" : "%nick joined the channel", "onTitle" : "Title: %title", "op" : "Set op to %nick", "voice" : "Set voice to %nick", "deop" : "Removed op from %nick", "devoice" : "Removed voice from %...
JavaScript
0.000002
@@ -29,16 +29,18 @@ n_error%22 + : %22Unkn @@ -73,32 +73,34 @@ %22newJoin%22 + : %22%25nick joined @@ -127,24 +127,26 @@ itle%22 + + : %22Title: %25t @@ -158,16 +158,18 @@ ,%0A %22op%22 + @@ -198,24 +198,26 @@ %22,%0A %22voice%22 + : %22 @@ -251,24 +251,26 @@ p%2...
193969611510d47008e1dcba2e844c70b187dde1
Update action-builder.js
src/application/action-builder.js
src/application/action-builder.js
const dispatcher = require('../dispatcher'); const {manageResponseErrors} = require('../network/error-parsing'); const {isArray} = require('lodash/lang'); const {identity} = require('lodash/utility'); /** * Method call before the service. * @param {Object} config - The action builder config. */ function _preServic...
JavaScript
0.000001
@@ -1963,16 +1963,35 @@ orResult + %7C%7C %7B%5Bnode%5D : null%7D ;%0A co
992ebfe166457a8e59d64638da77a3a2416642b0
bump version to 0.0.3
classes.js
classes.js
/*global atom, module*/ (function (atom) { // Establish the root object var root = this, // 'window' or 'global' classes = { VERSION: '0.0.2' }, previous = root.classes ; if (typeof module !== 'undefined' && module.exports) { module.exports = classes; } root.classes = classes; classes.noConflict = func...
JavaScript
0.000001
@@ -143,9 +143,9 @@ 0.0. -2 +3 ' %7D,
06462c96a33307bef2e7dd231774960da3e8dab3
test require config
tests/test-main.js
tests/test-main.js
var allTestFiles = []; var TEST_REGEXP = /(spec|test)\.js$/i; // Get a list of all the test files to include var tests = []; for (var file in window.__karma__.files) { if (window.__karma__.files.hasOwnProperty(file)) { if (TEST_REGEXP.test(file)) { // Normalize paths to RequireJS module names. // If...
JavaScript
0.00001
@@ -1739,24 +1739,26 @@ t files%0A +// deps: allTes @@ -2124,24 +2124,81 @@ nction() %7B%0A%0A + requirejs(allTestFiles, function() %7B%0A @@ -2227,16 +2227,36 @@ tart();%0A + %7D)%0A%0A
2639b4bffb3e7282ae863bd58c5d3457f08efd0e
correct mapping of Observable methods (#20518)
packages/common/http/rollup.config.js
packages/common/http/rollup.config.js
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const globals = { '@angular/core': 'ng.core', '@angular/platform-browser': 'ng.platformBrowser', '@angular/com...
JavaScript
0
@@ -447,26 +447,16 @@ servable -.prototype ',%0A%0A 'r
552d157251e4d473b65af0031bfe90905685fe39
improve postcss-necsst configurability
packages/config/lib/postcss-necsst.js
packages/config/lib/postcss-necsst.js
'use strict'; var postcss = require('postcss'); var autoprefixer = require('autoprefixer'); var isSupported = require('caniuse-api').isSupported; var features = [ ['css-variables', 'postcss-custom-properties'], ['css-image-set', 'postcss-image-set-polyfill'], 'postcss-nesting', 'postcss-custom-media', 'post...
JavaScript
0
@@ -139,16 +139,52 @@ pported; +%0Avar camelize = require('camelize'); %0A%0Avar fe @@ -1378,16 +1378,83 @@ eature)( +%0A options%5Bcamelize(feature.replace(/%5Epostcss-/, ''))%5D%0A ));%0A @@ -1495,16 +1495,37 @@ refixer( +Object.assign(%0A options. @@ -1570,16 +1570,50 @@ s %7D : %7B%7D ...
36b4c385a0bb88a1ca03f830f70e8e3538d95c2b
Use a jenkins hash algorithm as it varys the hash result far more significantly for minor value changes (old hash looked too similar for strings of the same length)
js/rgb_password.js
js/rgb_password.js
/* * * RGB Password * @author: James White * @date: 20/11/11 * */ // http://werxltd.com/wp/2010/05/13/javascript-implementation-of-javas-string-hashcode-method/ String.prototype.hashCode = function(){ var hash = 0; if (this.length == 0) return hash; for (i = 0; i < this.length; i++) { char = this.charCodeAt(...
JavaScript
0
@@ -74,33 +74,65 @@ p:// -werxltd.com/wp +findingscience.com/javascript/hashing/memcache /2010/ -05/13 +12/28 /jav @@ -162,77 +162,70 @@ of-j -avas-string +enkins -hash -code-method/%0AString.prototype.hashCode = function() +.html%0Afunction jenkins_hash(key, interval_size) %7B%0A + va @@ -242,65 +242,28 @@ ...
d54a1edbb6491532acf30e5c1531513ac4bcdee0
move fn.openActive() code to fn.treemenu()
jquery.treemenu.js
jquery.treemenu.js
/* treeMenu - jQuery plugin version: 0.4.2 Copyright 2014 Stepan Krapivin */ (function($){ $.fn.openActive = function(activeSel) { activeSel = activeSel || ".active"; var c = this.attr("class"); this.find(activeSel).each(function(){ var el = $(this).parent(); ...
JavaScript
0.000001
@@ -38,11 +38,9 @@ : 0. -4.2 +6 %0A%0A C @@ -73,17 +73,16 @@ vin%0A%0A*/%0A -%0A (functio @@ -91,682 +91,8 @@ $)%7B%0A - $.fn.openActive = function(activeSel) %7B%0A activeSel = activeSel %7C%7C %22.active%22;%0A%0A var c = this.attr(%22class%22);%0A%0A this.find(activeSel).each(function()%...
e177613b2ced752015f67e396b7d306a5f133d11
Add a way to play through a sequence of board events
js/screens/game.js
js/screens/game.js
import board from 'board'; import display from 'display'; var cursor = {}; function setCursor (x = 0, y = 0, selected = false) { cursor = { x, y, selected }; } function selectJewel (x = cursor.x, y = cursor.y) { if (!cursor.selected) { setCursor(x, y, true); return; } var dx = Math.a...
JavaScript
0.002545
@@ -70,16 +70,571 @@ = %7B%7D;%0A%0A +function playBoardEvents (events) %7B%0A if (events.length === 0) %7B%0A redrawBoard();%0A return;%0A %7D%0A%0A var boardEvent = events.shift();%0A var next = function () %7B%0A playBoardEvents(events);%0A %7D;%0A%0A switch (boardEvent.type)...
84edd7c3fe6c2b744c92e01ef123a1d8b02e7a18
Add case to update state on navigation
src/reducers/FridgeReducer.js
src/reducers/FridgeReducer.js
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2020 */ import moment from 'moment'; import { UIDatabase } from '../database'; import { FRIDGE_ACTIONS } from '../actions/FridgeActions'; const initialState = () => { const sensors = UIDatabase.objects('Sensor'); const locations = UIDatabase.objects('Locat...
JavaScript
0.000001
@@ -189,16 +189,62 @@ ctions'; +%0Aimport %7B ROUTES %7D from '../navigation/index'; %0A%0Aconst @@ -1305,24 +1305,212 @@ e %7D;%0A %7D%0A%0A + case 'Navigation/BACK':%0A case 'Navigation/NAVIGATE': %7B%0A const %7B routeName %7D = action;%0A%0A if (routeName === ROUTES.VACCINES) return initialSt...
96ec8ce9bd8a4367fe70efa4dcde594bb23f05bc
Add args test
tests/scripts/unit/wee-events.js
tests/scripts/unit/wee-events.js
import $ from 'wee-dom'; import $events from 'wee-events'; import { createSingleDiv, createMultiDiv, resetDOM } from '../helpers/dom'; function triggerEvent(el, type) { if ('createEvent' in document) { // modern browsers, IE9+ let e = document.createEvent('HTMLEvents'); e.initEvent(type, fal...
JavaScript
0.000017
@@ -3076,16 +3076,319 @@ );%0A%09%09%7D); +%0A%0A%09%09describe('args', () =%3E %7B%0A%09%09%09it('can add injected arguments', () =%3E %7B%0A%09%09%09%09$events.on('.test', 'click', (e, el, arg1, arg2) =%3E %7B%0A%09%09%09%09%09expect(arg1).to.equal('arg1');%0A%09%09%09%09%09expect(arg2).to.equal('arg2');%0A%09%09%09...
5b8ea4f56acc009fbd866ac49a4eebb4bc0e9041
Add ability to find work
js/auto-puuller.js
js/auto-puuller.js
var _ = require('underscore') , fs = require('fs') , async = require('async') ; module.exports = function(db, puush){ var record = function(p){ if (!p.isDeleted && !p.isPrivate) { fs.writeFile('./db/store/' + p.md5, p.body); } p.tags = []; db.insert(_.omit(p, 'b...
JavaScript
0.000002
@@ -75,16 +75,50 @@ async')%0A + , Promise = require('bluebird')%0A ;%0A %0Am @@ -641,32 +641,377 @@ %7D, 5);%0A %0A + var lastRecordedPid = function()%7B%0A return new Promise(function(resolve, reject)%7B%0A db.find(%7B%7D).sort(%7Bpid:-1%7D).limit(1).exec(function(err, rows)%7B%0A ...
63321b7bec4768a5eca050a01ab6f18c58bf0844
Clean up and simplify iD.svg.Areas
js/id/svg/areas.js
js/id/svg/areas.js
iD.svg.Areas = function(projection) { // Patterns only work in Firefox when set directly on element var patterns = { wetland: 'wetland', beach: 'beach', scrub: 'scrub', construction: 'construction', cemetery: 'cemetery', grave_yard: 'cemetery', meadow: 'me...
JavaScript
0.000002
@@ -1833,24 +1833,171 @@ a.area; %7D); +%0A areas = _.pluck(areas, 'entity');%0A%0A var strokes = areas.filter(function(area) %7B%0A return area.type === 'way';%0A %7D); %0A%0A fu @@ -2017,28 +2017,13 @@ ths( -group, areas, filter +areas , kl @@ -2242,13 +2242,58 @@ s = -gr...