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
8f0dbaf09eafbaca868d5ae7e7c7c3a64ebb05b0
remove ie 10 tests
karma.conf-ci.js
karma.conf-ci.js
/*jshint node: true */ /** * Karma configuration options when testing a push or pull request from a branch. * This file expects certain TRAVIS secure environment variables to be set. **/ module.exports = function (config) { 'use strict'; var base = 'BrowserStack', customLaunchers = { bs...
JavaScript
0
@@ -515,220 +515,8 @@ %7D,%0A - bs_windows_ie_10: %7B%0A base: base,%0A browser: 'ie',%0A browser_version: '10.0',%0A os: 'Windows',%0A os_version: '8.0'%0A %7D,%0A
360f5553f9fcb838306d1daaf1eabf58456b55d6
Add note about lambda event body.
lambda/server.js
lambda/server.js
import path from 'path'; import {exec} from 'child_process'; import cors from 'cors'; import express from 'express'; import getLambdas from './lambdas'; // Load environment variables from .env file. // https://github.com/keithmorris/node-dotenv-extended require('dotenv-extended').load(); process.env.NODE_ENV = pro...
JavaScript
0
@@ -1250,16 +1250,136 @@ (req) %7B%0A +%0A // Need to use body-parser if we want this to be populated%0A const body = req.body ? JSON.stringify(req.body) : '';%0A%0A return @@ -1600,32 +1600,12 @@ dy: -JSON.stringify(req. body -) ,%0A
8c59944fa6568678402d82c3d179a5865d0273c0
fix fetch call to show statusText to client on err
src/redux/modules/folders.js
src/redux/modules/folders.js
import fetch from 'isomorphic-fetch' import folderReducer from './folder' // folders actions const GENERATE_REPORT = 'GENERATE_REPORT' export function markCompleted(id) { return { type: GENERATE_REPORT, payload: { id }, } } const REQUEST_FOLDERS = 'REQUEST_FOLDERS' function requestFolders(operator) { re...
JavaScript
0
@@ -1219,129 +1219,163 @@ nse. -json())%0A .then(json =%3E dispatch(receiveFolders(operator, json)))%0A .catch(err =%3E dispatch(fetchFoldersFailed(err +ok%0A ? response.json()%0A : dispatch(fetchFoldersFailed(response.statusText))%0A )%0A .then(json =%3E dispatch(receiveFolders(opera...
a9fcb205aaa6085961c086161c51914a91dbaa9a
update sw
src/registerServiceWorker.js
src/registerServiceWorker.js
// In production, we register a service worker to serve assets from local cache. // This lets the app load faster on subsequent visits in production, and gives // it offline capabilities. However, it also means that developers (and users) // will only see deployed updates on the "N+1" visit to a page, since previously...
JavaScript
0.000001
@@ -1068,17 +1068,18 @@ %7D, -1 +36 000);%0A
6f05466cf5e3cf9a06a3532d244c4697c3bf0136
normalise windows path separators to unix
lib/6to5/file.js
lib/6to5/file.js
module.exports = File; var SHEBANG_REGEX = /^\#\!.*/; var transform = require("./transformation/transform"); var generate = require("./generation/generator"); var Scope = require("./traverse/scope"); var util = require("./util"); var t = require("./types"); var _ = require("lodash"); functi...
JavaScript
0.000137
@@ -853,24 +853,125 @@ alse%0A %7D);%0A%0A + // normalise windows path separators to unix%0A opts.filename = opts.filename.replace(/%5C%5C/g, %22/%22);%0A%0A _.defaults
54ff50134acdec4687a1e4f9fd3db9a8f2195bfd
fix #25 make id type string
lib/BaseModel.js
lib/BaseModel.js
'use strict'; const extend = require('gextend'); const Waterline = require('waterline'); const uuid = require('random-uuid-v4'); let BaseModel = Waterline.Collection.extend({ persistence: null, connection: process.env.NODE_ENV || 'default', attributes: { id: { type: 'text', ...
JavaScript
0.000003
@@ -299,12 +299,14 @@ e: ' -text +string ',%0A @@ -392,17 +392,16 @@ function - () %7B%0A @@ -1413,16 +1413,17 @@ if + (!values @@ -2040,29 +2040,16 @@ late)) %7B -%0A %7D else i @@ -3894,25 +3894,16 @@ extend( -%0A %7B%7D,%0A
7f77b8c2802ea450588e3dabaea3954919ef3e70
fix typos
lib/QueueMngr.js
lib/QueueMngr.js
"use strict"; const _ = require("lodash"); const shuffle = require('shuffle-array'); const owjs = require('overwatch-js'); const config = require("../config.json"); const GAME_SIZE = config.gameSize; const GROUP_SIZE = GAME_SIZE / 2; const DEAFULT_RANK = config.deafultRank; module.exports = {getInstance: getIns...
JavaScript
0.999974
@@ -268,10 +268,10 @@ g.de -a f +a ultR
a9eed62152f72ab0fa9d788933bffafb55fcd307
fix for os_version of playstation
lib/appliance.js
lib/appliance.js
/* HEADER BEGIN */ var util = require('./util'), updateMap = util.updateMap, updateVersion = util.updateVersion, updateCategory = util.updateCategory, updateOs = util.updateOs, dataset = require('./dataset'); /* HEADER END */ var challengePlaystation = exports.challengePlaystation = function(ua, re...
JavaScript
0
@@ -186,16 +186,60 @@ dateOs,%0A + updateOsVersion = util.updateOsVersion,%0A data @@ -376,32 +376,70 @@ ar data = null;%0A + var os_version = null;%0A var match;%0A if (ua.indexOf @@ -467,32 +467,38 @@ rtable);') %3E= 0) + %7B%0A data = dataset. @@ -506,24 +506,127 @@ et('PSP');%0A + if ((matc...
3760835b029b7e1d465acccadc15e839046bed35
support # for comments
lib/assembler.js
lib/assembler.js
var Assembler = function() { var old_machine_code = null; var machine_code = null; this.assemble = function(code) { code = code.replace(/;.*$/mg, ''); code = code.replace(/\s+/g, ' '); code = code.replace(/^\s+/, ''); code = code.replace(/\s+$/, ''); code = code.toLowerCase(); var codes ...
JavaScript
0
@@ -141,17 +141,20 @@ eplace(/ -; +%5B;#%5D .*$/mg,
186daf0f3ac426b611171ea23f02365da8038583
Allow semver range for release in chlg-show
lib/chlg-show.js
lib/chlg-show.js
'use strict'; var fs = require('fs'); var chalk = require('chalk'); var semver = require('semver'); var LineStream = require('lstream'); var common = { releases: require('./common/releases'), sections: require('./common/sections') }; var formatter = require('./format'); var program = require('commander');...
JavaScript
0
@@ -1315,16 +1315,66 @@ RELEASED +) %7B%0A if (semver.valid(releases%5Bi%5D) === null && semv @@ -1373,32 +1373,37 @@ && semver.valid +Range (releases%5Bi%5D) == @@ -1408,24 +1408,80 @@ === null) %7B%0A + if (semver.valid(releases%5Bi%5D) === null) %7B%0A retu @@ -1549,32 +1549,164 @...
0284317a21e51f7aadceb9c624e7cda7ecda31da
Fix the cli batch processing yield
lib/cli/index.js
lib/cli/index.js
'use strict'; var co6 = require('co6'); var fs = co6.promisifyAll(require('fs')); var os = require('os'); var parse = require('./parse'); var server = require('../server'); /* * Run the command line application. */ co6.main(function *() { var options = parse(process.argv); var source = options.source || 'Man...
JavaScript
0.000005
@@ -878,21 +878,17 @@ string%7D -fileP +p ath%0A * @ @@ -954,21 +954,17 @@ *batch( -fileP +p ath) %7B%0A @@ -1013,21 +1013,17 @@ tsAsync( -fileP +p ath))) r @@ -1035,24 +1035,25 @@ tasks;%0A +( yield fs.rea @@ -1067,13 +1067,9 @@ ync( -fileP +p ath, @@ -1076,16 +1076,17 @@ 'utf8') +) .split('
cbad6eec86b574a94f4be9cd21a5c8c507e2613a
fix typo
lib/collision.js
lib/collision.js
let platformCollisionCheck = function(player, platforms) { platforms.forEach(function(platform) { var checkLeft = (platform.x - (player.position.x + player.size.width)); var checkRight = (player.position.x - (platform.x + platform.width)); var checkTop = (player.position.y - (platform.y + platform.height...
JavaScript
0.999991
@@ -2001,17 +2001,16 @@ t / 2);%0A -%5D %0A%0A%0A //
7ca2450f3fecbe4449767d2f953ac9dd1259a685
remove unneccessary code
lib/component.js
lib/component.js
"use strict"; var events = require('events'); var util = require('util'); var BrigCore = require('../build/Release/brig.node'); var Item = require('./item'); var Component = module.exports = function(engine) { var self = this; self.engine = engine || null; self.native = null; }; util.inherits(Component, events.E...
JavaScript
0.999998
@@ -597,163 +597,59 @@ ion( -) %7B%0A%09%09console.log('progressChanged 1', arguments%5B0%5D);%0A%09%7D);%0A%0A%09self.native.on('progressChanged', function() %7B%0A%09%09console.log('progressChanged 2', arguments%5B0%5D +progress) %7B%0A%09%09self.emit('progressChanged', progress );%0A%09 @@ -710,55 +710,8 @@ %7B%...
3b2862ac83da43340fb0730173503ccb2e73852c
make base converter export same as specific converters
lib/converter.js
lib/converter.js
'use strict'; var cpuprofile = require('./cpuprofile') , traceUtil = require('./trace-util') function Converter(trace, traceStart, opts) { if (!(this instanceof Converter)) return new Converter(trace, traceStart, opts); opts = opts || {}; this._trace = traceUtil.normalizeEmptyLines(trace); this._traceStar...
JavaScript
0.000002
@@ -779,36 +779,8 @@ ype; -%0Amodule.exports = Converter; %0A%0A// @@ -3756,12 +3756,101 @@ rofile();%0A%7D%0A +%0Aexports = module.exports = Converter;%0Aexports.ctor = Converter;%0Aexports.proto = proto;%0A
b6f28173ccea62178a56252b32d56bdfffdce5cc
Update hostnames to new Blizzard API URLs #75
lib/endpoints.js
lib/endpoints.js
/** * @file Exports Blizzard API regional endpoints. * @module lib/endpoints */ /** * Blizzard API regional endpoints. * * @typedef {Object} Endpoint * @prop {String} hostname The regional hostname * @prop {String} locale A regional locale */ const endpoints = { us: { hostname: 'https://us.api.b...
JavaScript
0.000001
@@ -119,142 +119,22 @@ ints -.%0A *%0A * @typedef %7BObject%7D Endpoint%0A * @prop %7BString%7D hostname The regional hostname%0A * @prop %7BString%7D locale A regional locale + with locales. %0A */ @@ -189,33 +189,35 @@ s://us.api.b -attle.net +lizzard.com ',%0A defau @@ -317,33 +317,35 @@ s://eu.api.b...
dda473e16c8caa9cfc4aca3179802826ec762940
Update the non-critical request API to use the correct data structure for requests.
lib/firefoxos.js
lib/firefoxos.js
(function (context, localforage) { var event = new Event('network-ready'), queue = [], obj = {}, startedAt = new Date().getTime(), storageKey = 'latencyStore', origin = 'unknown'; context.addEventListener("network-ready", function () { for (var i = 0; i < queue.length; ++i) { ...
JavaScript
0
@@ -357,11 +357,12 @@ e%5Bi%5D -%5B0%5D +.Url , qu @@ -371,11 +371,13 @@ e%5Bi%5D -%5B1%5D +.Data , qu @@ -386,11 +386,17 @@ e%5Bi%5D -%5B2%5D +.Callback , fa
915f595b50bf96c609c60499731cef6da75c9595
Add limit field and use options to wrap them
lib/hijack/db.js
lib/hijack/db.js
var mongoConnectionProto = getMongoConnectionProto(); //findOne is handled by find - so no need to track it //upsert is handles by update ['find', 'update', 'remove', 'insert', '_ensureIndex', '_dropIndex'].forEach(function(func) { var originalFunc = mongoConnectionProto[func]; mongoConnectionProto[func] = functio...
JavaScript
0
@@ -2631,232 +2631,88 @@ -if(cursorDescription.options.fields) %7B%0A payload.fields = cursorDescription.options.fields;%0A %7D;%0A if(cursorDescription.options.sort) %7B%0A payload.fields = cursorDescription.options.sort;%0A %7D +payload.options = _.pick(cursorDescription.o...
b1165eb75519144d70955bf12885aa5d23cc6ce7
Fix typo on POST requests
lib/http-mock.js
lib/http-mock.js
'use strict'; function mockTemplate() { var expectations = '<place_content_here>'; var newModule = angular.module('httpMock', []); newModule.config(['$provide', function($provide){ $provide.decorator('$http', ['$delegate', '$q', function($http, $q) { function endsWith(url, path){ return url.indexOf(path,...
JavaScript
0.000013
@@ -3238,34 +3238,35 @@ onfig.method = ' -GE +POS T';%0A%0A%09%09%09%09return
ccc65b7e0479890c2b984e66dcf3f41f0f761df0
Set max listeners to 0 on SSL agent's event emitter object
lib/http/node.js
lib/http/node.js
/** * Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You * may not use this file except in compliance with the License. A copy of * the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the ...
JavaScript
0
@@ -3008,24 +3008,78 @@ e%0A %7D);%0A + AWS.NodeHttpClient.sslAgent.setMaxListeners(0);%0A %7D%0A re
8333cdbc6a2c3ad053816951be6d9a001c571cf2
fix missing function
lib/mediaType.js
lib/mediaType.js
/* * Copyright 2017 Alexandre Moreno <alex_moreno@tutk.com> * * This file is part of lwm2m-node-lib * * lwm2m-node-lib is free software: you can redistribute it and/or * modify it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the Lice...
JavaScript
0.999985
@@ -1664,23 +1664,33 @@ if ( -isObject(value) +typeof value === 'object' ) %7B%0A
adf8a23b4c3700660ffb82fd2f24a1f4966e8020
remove transparent blocks from output when using image api.
lib/moose-res.js
lib/moose-res.js
/* * Copyright (C) 2020 Anthony DeDominic <adedomin@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. ...
JavaScript
0
@@ -5253,24 +5253,56 @@ e,%0A %7D);%0A%0A + painter.background = false;%0A painter.
5ac8a624143336fde9138de0e26f06422bb897d3
Remove deprecated moveTo method
lib/new-block.js
lib/new-block.js
module.exports = function newBlock(decl, selector, props, values) { var completeSelector; var block; function appendToSelectors(_thisSelector, selectorToAppend) { var appendedSelectors = []; _thisSelector.split(',').forEach(function appendSelectorsFunction(item) { appendedSelectors.push(item + sel...
JavaScript
0
@@ -780,25 +780,25 @@ -rule.moveTo(block +block.append(rule );%0A
cefd81cabe933583698e5a1efc4e26557c9519fb
Fix linter errors.
lib/portfolio.js
lib/portfolio.js
"use strict"; var fs = require("fs"), path = require("path"), rio = require("rio"), qp = require("quadprog"), stats = require("./stats.js"), returns = require("./returns.js"), performances = require("./performances.js"); function portfolioOptim(x, pm, lows, highs, shorts) { var i, j, k, Dm...
JavaScript
0.000001
@@ -2261,20 +2261,16 @@ - undefine
f02874d8725c2799417cc3885205d02667106f14
add put() & get() method
lib/rockstage.js
lib/rockstage.js
(function() { window.RS = { init: function() { }, put: function put(key, value) { key = this.key; value = this.value; var div = document.getElementById('console'); div.innerHTML = 'This is ' + key + ' and value is ' + value; }, get: function get(key) { // body... ...
JavaScript
0.000002
@@ -7,492 +7,1497 @@ ion( -) %7B%0A window.RS = %7B%0A init: function() %7B%0A %7D,%0A put: function put(key, value) %7B%0A key = this.key;%0A value = this.value;%0A var div = document.getElementById('console');%0A%0A div.innerHTML = 'This is ' + key + ' and value is ' + value +window, un...
91f6d16699641f2eeb23508caaa07fe65c5c97fd
Fix scheduler bugs
lib/scheduler.js
lib/scheduler.js
(function () { var scheduleClass = function (sys) { this.sys = sys; } scheduleClass.prototype.run = function () { var schedule = require('node-schedule'); var sys = this.sys; sys.db.all('SELECT adminID,name,email,interval FROM admin WHERE email IS NOT NULL AND interval IS NOT...
JavaScript
0.000002
@@ -723,16 +723,68 @@ (8,36);%0A + var oldAdminKey = row.adminKey;%0A @@ -859,16 +859,28 @@ terKeys( +oldAdminKey, adminID, @@ -980,16 +980,28 @@ erKeys ( +oldAdminKey, adminID, @@ -1101,16 +1101,25 @@ nID=?',%5B +adminKey, adminID%5D @@ -1193,24 +1193,166 @@ duler(2)'%7D;%0A + ...
9eee2a0a98fe08b875a03e2ca00cff71760c8ef2
fix typo
lib/steps/xml.js
lib/steps/xml.js
var fs = require('fs'); var util = ProjRequire('./lib/util.js'); var xml2js = require('xml2js') module.exports = { spec : function() { return { name : 'xml', desc : '', fields : [ {type:'string',name:'file',description:'',required:true}, {type:'string',name:'var',description:'',required:true} ] }...
JavaScript
0.999991
@@ -496,10 +496,10 @@ eadi -g n +g fil
3e2ce07a7996b7eae957245647c24e79eec36b44
use stringifyRequest helper to compose relative pathes
lib/transform.js
lib/transform.js
import falafel from 'falafel'; import getResults from './runner'; import getOutput from './output'; import getOutputWithInjects from './inject/output'; export default function(source, file, options) { const consumerPaths = options.layers.map(layer => layer.path).concat(options.consumers || []); const isFileIn...
JavaScript
0
@@ -145,16 +145,65 @@ output'; +%0Aimport %7B stringifyRequest %7D from 'loader-utils'; %0A%0Aexport @@ -1011,24 +1011,365 @@ result =%3E %7B%0A + if (result.component) %7B%0A result.component = stringifyRequest(this, result.component).replace(/%22/g, '');%0A ...
dc85ecfc195faf98d09accdedc32d2fc1966cfc0
Drop email debugging
lib/utilities.js
lib/utilities.js
'use strict'; function bot_mock() { return 'sectery'; } function bot_prod() { return process.env.IRC_USER; } function sms_mock() { return function(db,to,message) { return 0;}; } function sms_prod() { var preq = require('preq'); return function(db,to, message) { preq.post({ headers: { 'con...
JavaScript
0.000001
@@ -1106,23 +1106,8 @@ od() - + '@localhost' ,%0A @@ -1170,48 +1170,8 @@ %7D;%0A - console.log('sending mail:', mail);%0A
1e5f823d339b62700d417a82eb9dfd6893837c58
check for Cipher/Decipher before using them, and warn if not available
lib/utils/ini.js
lib/utils/ini.js
// TODO: Use ini parsing instead of JSON. More humane. // TODO: Merge from other places, make locations configurable. // Should look in {installPrefix}/etc/npmrc first by default, // and then env.HOME/.npmrc for overrides. var fs = require('fs') , path = require('path') , http = require('http') , log = requir...
JavaScript
0
@@ -349,16 +349,482 @@ (%22ini%22)%0A + , crypto = require(%22crypto%22)%0A%0A// if installed, use rhys' package explicitly%0Aif (typeof crypto.Cipher !== %22function%22) %7B%0A try %7B%0A crypto = require(%22crypto-0.0.5%22)%0A %7D catch (ex) %7B%7D%0A%7D%0Aif (typeof crypto.Cipher !== %22function%22) %7B%0A s...
f122f21374c124add39fb45435007514e4b09ec9
watermark api
lib/watermark.js
lib/watermark.js
const levelup = require('levelup'), leveldown = require('leveldown'), cluster = require('./cluster'), logger = require('./logger'), MODULE = 'cluster-watermark'; const CMD = { get : "get", create : "create", clean : "clean", remove : "remove", save : "save", error : "error", success : "success" } const DE...
JavaScript
0.000001
@@ -1445,24 +1445,222 @@ %09%7D%0A%09%09%7D);%0A%09%7D%0A +%09keys() %7B%0A%09%09return new Promise((ok,rej)=%3E%7B%0A%09%09%09let keys = %5B%5D;%0A%09%09%09this.db.%0A%09%09%09%09createKeyStream().%0A%09%09%09%09on('data', d=%3Ekeys.push(d.toString())).%0A%09%09%09%09on('end',()=%3Eok(keys)).%0A%09%09%09%09on('error'...
84039fe381a16353ef4e38ad598201ba166390ec
remove test
src/router.config.js
src/router.config.js
import Vue from 'vue'; import VueRouter from 'vue-router'; import LayoutPage from './pages/LayoutPage'; // System import { NotFound } from './pages/system'; // Home import { HomePage } from './pages/home'; // Search import { SearchPage, SearchDetail } from './pages/search'; // Message import { MessagePage } from './pa...
JavaScript
0.000026
@@ -436,19 +436,16 @@ st Page%0A -// import T @@ -481,58 +481,8 @@ e';%0A -import ComInfoEdit from './pages/HR/ComInfoEdit';%0A // %E6%B3%A8 @@ -977,19 +977,16 @@ nt: -ComInfoEdit +TestPage %7D,%0A
e10197a3af3e30c1d7da0b4dfd52e282c1d90d65
Update testFunctions.js
test/testFunctions.js
test/testFunctions.js
var expect = require('chai').expect; var setup = require(__dirname + '/lib/setup'); var objects = null; var states = null; var onStateChanged = null; var onObjectChanged = null; var hostname = require('os').hostname(); function checkConnectionOfAdapter(cb, counter) { counter = counter || 0; if (counter > 20...
JavaScript
0.000001
@@ -3646,33 +3646,33 @@ this.timeout( -5 +8 000);%0A va @@ -6150,8 +6150,9 @@ %7D);%0A%7D); +%0A
086b3f50db0d79aa22b031b651def3ad5d46a27f
Update bootstrap with new events.
packages/config/index.js
packages/config/index.js
/* eslint-disable no-param-reassign */ const fs = require('fs-extra'); const path = require('path'); const { EXTS, DIR_PATTERN, CJS_FOLDER, ESM_FOLDER } = require('./constants'); const extsWithoutJSON = EXTS.filter(ext => ext !== '.json'); function hasNoPositionalArgs(context, name) { const args = context.args._; ...
JavaScript
0
@@ -388,16 +388,73 @@ me);%0A%7D%0A%0A +/**%0A * @param %7B import('@beemo/core').default %7D tool%0A */%0A module.e @@ -564,63 +564,8 @@ ');%0A - const workspacesEnabled = !!tool.package.workspaces;%0A co @@ -657,30 +657,25 @@ l.on -('babel.init-driver', +RunDriver.listen( cont @@ -1014,32 +1014,41 @@ LDER)...
0f91e2e4ec558d712f67826d9f990a3024144f16
Remove redundant `nyc.clearCache` function call
npm/test-cli.js
npm/test-cli.js
#!/usr/bin/env node require('shelljs/global'); require('colors'); var Mocha = require('mocha'), expect = require('chai').expect, recursive = require('recursive-readdir'), NYC = require('nyc'), execOptions = { silent: true }, /** * The directory containing CLI test specs. * * @type ...
JavaScript
0.000027
@@ -911,30 +911,8 @@ );%0A%0A - nyc.clearCache();%0A
41b594b440ce78805b5238d31c51ea18a4225f39
fix Safari detection
src/scripts/utils.js
src/scripts/utils.js
/*eslint-disable no-nested-ternary */ /** * Convert hex to RGB * * @param {string} hex * @returns {Object} */ export function hexToRGB(hex) { // Expand shorthand form (e.g. "03F") to full form (e.g. "0033FF") const shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; const newHex = hex.replace(shorthandRege...
JavaScript
0.000002
@@ -710,16 +710,32 @@ ';%0A %7D%0A%0A + // Opera 8.0+%0A const @@ -821,66 +821,20 @@ // -Opera 8.0+ (UA detection to detect Blink/v8-powered Opera) +Firefox 1.0+ %0A c @@ -892,143 +892,100 @@ ed'; -// Firefox 1.0+%0A const isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor'...
48d4e6b649c7610dc4f5fa9e0feb0e12622d4b40
Fix eslint.
src/server/config.js
src/server/config.js
var nconf = require('nconf'); // Specifying an env delimiter allows you to override below config when shipping to production server // by e.g. defining piping__ignore or version variables. nconf.env('__'); var config = { appLocales: ['en', 'fr'], defaultLocale: 'en', googleAnalyticsId: 'UA-XXXXXXX-X', isProdu...
JavaScript
0.000001
@@ -1035,8 +1035,9 @@ f.get(); +%0A
cf194104753cb60525ebda4630026aca9a83d826
Remove ping timer, it's already implemented in the irc package
ircbot.js
ircbot.js
#!/usr/bin/env node var irc = require('irc'); var fs = require('fs'); var http = require('http'); var control = require('./control'); var server = 'irc.ludost.net'; var nickname = 'initLabNotifier'; var nicknamePassword = fs.readFileSync('nickserv.txt'); var announceChannel = '#initlab'; var socketPath = '/tmp/ircb...
JavaScript
0
@@ -195,16 +195,18 @@ ifier';%0A +// var nick @@ -328,30 +328,8 @@ ck'; -%0Avar pingTimer = null; %0A%0Ava @@ -1598,257 +1598,8 @@ %0A%7D%0A%0A -// ping%0Aircbot.addListener('ping', function() %7B%0A%09if (pingTimer !== null) %7B%0A%09%09clearTimeout(pingTimer);%0A%09%7D%0A%0A%09pingTimer = setTimeout(function() %...
757e2add4c865fc3dfd8b81820bdd9a600b33777
remove param()
lib/Request.js
lib/Request.js
var isIP = require('net').isIP; var accepts = require('accepts'), typeis = require('type-is'), fresh = require('fresh'), parseRange = require('range-parser'), parse = require('parseurl'), proxyaddr = require('proxy-addr'), proxyaddrAll = require('proxy-addr').all; var RE_COMMA_SPLIT = /\s*,\s*...
JavaScript
0.000121
@@ -1386,333 +1386,8 @@ %7D;%0A%0A -Request.prototype.param = function(name, defaultVal) %7B%0A var params = this.params,%0A body = this.body,%0A query = this.query,%0A val;%0A if (params && (val = params%5Bname%5D))%0A return val;%0A if (body && (val = body%5Bname%5D))%0A return val;%0A if (q...
1775b72b7ae6ed8e69f85911ba39dabc008f0973
Decrease timeout of retry
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.000018
@@ -1275,10 +1275,9 @@ ay: -20 +4 * 1
d3c408ae2ec9c7e2a5e73b8f04566c8c3a1d3936
Simplify hiding Container components
react/features/base/react/components/native/Container.js
react/features/base/react/components/native/Container.js
/* @flow */ import React from 'react'; import { Dimensions, TouchableHighlight, TouchableWithoutFeedback, View } from 'react-native'; import AbstractContainer from '../AbstractContainer'; /** * Represents a container of React Native/mobile {@link Component} children. * * @extends AbstractContainer...
JavaScript
0.0019
@@ -46,24 +46,8 @@ t %7B%0A - Dimensions,%0A @@ -1004,762 +1004,376 @@ // -mov +sett ing it - out of site of the screen boundaries. An attempt to use the%0A // opacity property was made in order to eventually implement a%0A // fadeIn/fadeOut animation, however a known React Native problem wa...
c5020129c6f210b2013bede35485bf4abe7aa68a
Update Wrapper to handle focusgroup.activate
lib/Wrapper.js
lib/Wrapper.js
var React = require('react'); var createManager = require('./createManager'); module.exports = React.createClass({ displayName: 'AriaTabPanel-Wrapper', propTypes: { children: React.PropTypes.node.isRequired, activeTabId: React.PropTypes.string, letterNavigation: React.PropTypes.bool, onChange: Rea...
JavaScript
0
@@ -983,24 +983,95 @@ troy();%0A %7D, +%0A %0A componentDidMount: function() %7B%0A this.manager.activate();%0A %7D, %0A%0A render:
41bc2a3b5c98d49670766af74b938ee1a9157196
fix get caller path
lib/_helper.js
lib/_helper.js
var path = require('path'); var fs = require('fs'); /* List all js file @param {String} dir @param fn */ exports.listJSFiles = function(dir, callback) { //read all file in dir fs.readdir(dir, function (err, files) { if (err) return callback(err); var js_files = []; for(...
JavaScript
0.000001
@@ -1791,16 +1791,73 @@ shift(); +%0A stack.shift();%0A stack.shift();%0A stack.shift(); %0A%0A //
a23160f78427401815af4d5497631d05d3d572a7
Fix up SSH plugin.
plugins/ssh.js
plugins/ssh.js
var SSH = require('../lib/ssh'); exports.initialize = function (API, args) { var log = API.log; // args.host // args.port // args.username // args.password // args.privateKey // args.sock API.ssh = function (args) { return connect(args); }; // args.host // args.port // args.username ...
JavaScript
0.000929
@@ -1,12 +1,39 @@ var%0A +U = require('../lib/u'),%0A SSH = re @@ -123,16 +123,33 @@ I.log;%0A%0A + API.ssh = %7B%0A%0A // arg @@ -147,32 +147,34 @@ // args.host%0A + // args.port%0A @@ -164,32 +164,34 @@ // args.port%0A + // args.userna @@ -185,32 +185,34 @@ / args.username%0A + // ...
4abad22ebeafeedc2bd130c969f86f1361cf43fe
Simplify further using a generator
lib/transforms/moveAssetsInOrder.js
lib/transforms/moveAssetsInOrder.js
const compileQuery = require('../compileQuery'); const createAssetMover = require('../util/assetMover'); // Helper function for determining the order in which the hashes can be computed and the assets // moved. The challenge lies in the fact that updating a relation to point at <hash>.<extension> // will change the ha...
JavaScript
0
@@ -457,26 +457,26 @@ function - findAsset +* generate MoveOrde @@ -468,39 +468,32 @@ enerateMoveOrder -Batches (assetGraph, que @@ -505,30 +505,8 @@ ) %7B%0A - const batches = %5B%5D;%0A co @@ -1947,21 +1947,15 @@ -batches.push( +yield* curr @@ -1966,33 +1966,14 @@ atch -) ;%0A %7D%0A - return bat...
a275e03264c4785dfd45986b94eefe1e55b87388
refactor supaya modular
belajar-restful-web/src/main/webapp/js/aplikasi.js
belajar-restful-web/src/main/webapp/js/aplikasi.js
/* * Copyright (C) 2011 ArtiVisi Intermedia <info@artivisi.com> * * 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 requ...
JavaScript
0.999077
@@ -668,18 +668,26 @@ , %5B' -ngResource +belajar.controller '%5D)%0A @@ -1106,21 +1106,70 @@ %7D%5D);%0A%0A -modul +angular.module('belajar.service', %5B'ngResource'%5D)%0A .factory @@ -1196,16 +1196,30 @@ ervice', + %5B'$resource', functio @@ -1236,16 +1236,20 @@ e)%7B%0A + + return $ @@ -1292,...
0e31b8cd46401a98a49c98f63ef88d13f6caa3da
load tab fix... again
load_tab_html.js
load_tab_html.js
$(function(){ cur_url = window.location.href; new_url = cur_url; url_length = cur_url.length; if (cur_url[url_length -1] != '/'){ cur_url = cur_url + '/'; if (cur_url.indexOf("home.html") > -1 ){ end = cur_url.indexOf("home.html"); new_url = cur_url.substring(0,end); ...
JavaScript
0
@@ -53,60 +53,141 @@ -new_url = cur_url;%0A url_length = cur_url.length; +if (cur_url.indexOf(%22home.html%22) %3E -1 )%7B%0A end = cur_url.indexOf(%22home.html%22);%0A cur_url = cur_url.substring(0,end);%0A %7D %0A @@ -204,12 +204,16 @@ url%5B +cur_ url -_ +. leng @@ -223,13 +223,13 @@...
2225a5f06cdb6618473e95413b2592cf99dea1ab
Comment only
src/shapes/matrix.js
src/shapes/matrix.js
import BaseShape from './base-shape'; import TimelineTimeContext from '../core/timeline-time-context'; import LayerTimeContext from '../core/layer-time-context'; import PNGEncoder from '../utils/png.js'; const xhtmlNS = 'http://www.w3.org/1999/xhtml'; export default class Matrix extends BaseShape { getClassName()...
JavaScript
0
@@ -962,16 +962,41 @@ = 2048; + //!!! todo: parameterise %0A con @@ -1014,16 +1014,42 @@ = 1024; + //!!! todo: parameterise %0A%0A co
1109fc5fbbecc1a52b8b80d65db389063c613d66
Add redis connection / model as param
mb-digest-api/routes/routes.js
mb-digest-api/routes/routes.js
/** * Application routes module. Routes define which objects to instantiate as * a result. */ module.exports = (function() { var express = require('express'); var app = express(); var router = express.Router(); var model = require('model/model'); var Campaign = require('lib/campaign'); if (app.get('...
JavaScript
0
@@ -1458,32 +1458,37 @@ = new Campaign( +model );%0A campaig @@ -1706,16 +1706,21 @@ ampaign( +model );%0A
e34996024322478c1fc1596af1bcd21f1c5950ee
Update apa.js
js/apa.js
js/apa.js
/*----------------------------- Advanced Path Animation v1.1.0 (c) 2015 <http://vrnehot.ru> MIT-style license. ------------------------------*/ function PathAnimator(opt){ this.offset = 0; // 0..1 this.duration = 1000; this.loop = Infinity; this.easing = null; // function(p){ return p; } this.fps = 60; this.pat...
JavaScript
0.000001
@@ -89,29 +89,8 @@ ru%3E%0A -%0A%0AMIT-style license.%0A ---- @@ -127,28 +127,19 @@ unction -PathAnimator +APA (opt)%7B%0A%09 @@ -482,36 +482,27 @@ s.init();%0A%7D%0A -PathAnimator +APA .prototype.i @@ -612,36 +612,27 @@ r = null;%0A%7D%0A -PathAnimator +APA .prototype.s @@ -823,36 +823,27 @@ update();%0A%7D%...
2be9b74faf04a479d233f4969c021241472d5455
remove logging
thymer.js
thymer.js
$().ready(function(){ var timerList = $('#timer-list'); var timers = []; var Thymer = { init:function() { if ('localStorage' in window) { var timersData = window.localStorage.getItem('timers'); console.log(timersData); if (timersData) { var timersData = JSON.parse(tim...
JavaScript
0.000001
@@ -217,41 +217,8 @@ ');%0A - console.log(timersData);%0A @@ -487,32 +487,190 @@ %7D%0A %7D +%0A%0A if (window.webkitNotifications && window.webkitNotifications.checkPermission() != 0) %7B%0A window.webkitNotifications.requestPermission();%0A %7D %0A %7D,%0A addT
ff187f4d065070ac5972d03d5d6d09ae06f44118
Allow custom exception level
lib/winston/transports/transport.js
lib/winston/transports/transport.js
/* * transport.js: Base Transport object for all Winston transports. * * (C) 2010 Charlie Robbins * MIT LICENCE * */ var events = require('events'), util = require('util'); // // ### function Transport (options) // #### @options {Object} Options for this instance. // Constructor function for the Tranport ob...
JavaScript
0.000001
@@ -794,16 +794,77 @@ false;%0A + this.exceptionsLevel = options.exceptionsLevel %7C%7C 'error';%0A %7D;%0A%0A//%0A/ @@ -3311,23 +3311,36 @@ his.log( -'error' +self.exceptionsLevel , msg, m
ac9db13be82844ff2be62b230a1220c83baa409f
add a way to set the volume of an airplay device
lib/airplay.js
lib/airplay.js
module.exports = { listAirPlayDevices: function (callback){ itunes = Application('iTunes'); airPlayDevices = itunes.airplayDevices(); airPlayResults = []; for (i = 0; i < airPlayDevices.length; i++) { airPlayDevice = airPlayDevices[i]; if (!airPlayDevice.networkAddress()) continue; ...
JavaScript
0.000001
@@ -2081,32 +2081,1100 @@ dress();%0A %7D%0A%0A + return deviceData;%0A %7D,%0A setVolumeAirPlayDevice: function (id, level)%7B%0A itunes = Application('iTunes');%0A id = id.replace(/-/g, ':');%0A foundAirPlayDevice = null;%0A deviceData = %7B%7D;%0A%0A airPlayDevices = itunes.airplayDevices();%...
3e678f518b8a098617f0555b9ef97673e18730e0
comment out, remove root
lib/animate.js
lib/animate.js
/* * Scroller * http://github.com/zynga/scroller * * Copyright 2011, Zynga Inc. * Licensed under the MIT License. * https://raw.github.com/zynga/scroller/master/MIT-LICENSE.txt * * Based on the work of: Unify Project (unify-project.org) * http://unify-project.org * Copyright 2011, Deutsche Telekom AG * Licen...
JavaScript
0
@@ -2197,96 +2197,8 @@ %7D%60%0A - * @param root %7BElement%7D Render root. Used for internal usage of requestAnimationFrame.%0A * @ @@ -2404,16 +2404,41 @@ .now();%0A + var lastFrame = start;%0A var pe @@ -3021,20 +3021,64 @@ ning%5Bid%5D + %7C%7C (verifyCallback && !verifyCallback(id)) ) %7B%0A +%0A ...
62eaa8c775f18546714ecf0c061a260179a75086
Add first location
js/app.js
js/app.js
var locations = [ ]; /* Map */ var mapOptions = { zoom: 13, center: {lat: 24.726389, lng: -81.040278}, }; var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); var infowindow = new google.maps.InfoWindow(); var marker, i; for (i = 0; i < locations.length; i++) { marker = n...
JavaScript
0.004179
@@ -16,13 +16,119 @@ = %5B%0A -%0A + %7B%0A %09name : %22Marathon Library%22,%0A %09latitude: 24.710633,%0A %09longitude: -81.095606%0A%0A %7D%0A %5D;%0A%0A +%0A%0A%0A /* M @@ -135,16 +135,49 @@ ap */%0A%0A +var mapViewModel = function() %7B%0A%0A var mapO @@ -527,11 +527,17 @@ s%5Bi%5D -%5B...
4222af301a47d2455c9f9517e4b76c5efc7c7558
change nav-list onclick event handler to use a delegated handler (via on()) instead of plain old click()
js/app.js
js/app.js
define( ["jquery", "raphael", "euclib", "units"], function( $, Raphael, euclib, units ) { var pub = {}; function setNavActive ( ele ) { $("#units-nav > li").removeClass("active"); ele.addClass("active"); } pub.start = function () { var euc = euclib(Raphael("canvas", 600, 400))...
JavaScript
0.000001
@@ -600,22 +600,29 @@ -nav - %3E li%22).click( +%22).on(%22click%22, %22li%22, func
c8c6c1268c7f549958928918560099900ef7d258
Change while to if. Modify hover color
js/app.js
js/app.js
// Fallout Password Terminal Challenge $(function() { // Hide Password Grid $passwordGrid = $("#js-pwd-grid"); $passwordGrid.hide(); // Hide Terminal Div $terminalDiv = $("#js-terminal-div"); $terminalDiv.hide(); // Create password lists var billingPasswords = [ 'kreolo', 'treelo', 'gril...
JavaScript
0.000001
@@ -1893,32 +1893,35 @@ .css(%7B%0A + // 'background-col @@ -1928,32 +1928,73 @@ or': '#FFFFFF',%0A + 'background-color': '#939393',%0A 'borde @@ -3108,70 +3108,46 @@ 0;%0A +%0A -charsCorrect = checkPassword($(this).text(), hSecret);%0A%0A +if (attempts %3C HR_GUESSES) %7B%0A ...
0bcb8ed8827bbbf9539e1ffd7276661518f4fdb8
fix typo and remove debug logs
js/app.js
js/app.js
// DOMContentLoaded is fired once the document has been loaded and parsed, // but without waiting for other external resources to load (css/images/etc) // That makes the app more responsive and perceived as faster. // https://developer.mozilla.org/Web/Reference/Events/DOMContentLoaded window.addEventListener('DOMConten...
JavaScript
0.000002
@@ -1690,56 +1690,8 @@ ng;%0A - console.log(%22(un)hiding %22, permlist);%0A @@ -1725,32 +1725,32 @@ ggle(%22hidden%22);%0A + %7D);%0A @@ -1990,109 +1990,8 @@ me;%0A - console.group();%0A console.log(%22permissions for %22, appName);%0A console.log(app);%0A @@ -...
75efba7075a2296c816badd0a87e02dbcc962070
remove hashtag from URL (commented)
js/app.js
js/app.js
var app = angular.module('openEvacMap', ['ui.router', 'ngFileUpload']); app.config(['$stateProvider', '$locationProvider', function($stateProvider, $locationProvider) { $stateProvider .state('addresses', { url: "/{openedTab}", templateUrl: "templates/addresses/list.html", ...
JavaScript
0
@@ -163,20 +163,187 @@ ider) %7B%0A +%0A +// uncomment to remove hashtag from URL on production, and add %3Cbase href=%22/%22%3E to the %3Chead%3E section of index%0A //$locationProvider.html5Mode(true).hashPrefix('!')%0A %0A $st @@ -852,12 +852,13 @@ %7D);%0A%7D%5D);%0A +%0A
fdf6d4b531650c5806a13f02b1c7bfabfda3639c
fix server bot logic so hostplayer switches on death
server/events/player.js
server/events/player.js
var db = require('../db/queries'); module.exports = function (host, sync, io) { return { killed: function (socket, packet) { var room = host.sockets[socket.id].room; var target = host.rooms[room].bot; if(target === undefined || room === undefined) { socket.disconnect(true); re...
JavaScript
0
@@ -729,16 +729,28 @@ layer) %7B +%0A target. @@ -766,18 +766,16 @@ r = key; - %7D %0A @@ -781,15 +781,29 @@ + break;%0A + %7D%0A
fb2d0f3c700b612d647daf340ed88c19c520ec8d
change to exported
byway/src/main/webapp/utils.js
byway/src/main/webapp/utils.js
/** Script that contains shared functions, primarily for use in the third page */ // object that communicates with the GMaps API service let directionsService; // object that renders display results on the map let directionsRenderer; // map object used in the route page let map; // object that communicates with t...
JavaScript
0.000002
@@ -1083,510 +1083,17 @@ %0A%0A/* -* Initializes map on the page */%0Afunction initMap() %7B%0A directionsService = new google.maps.DirectionsService();%0A directionsRenderer = new google.maps.DirectionsRenderer();%0A %0A let mapOptions = %7B%0A zoom: 14,%0A // arbitrary center as it will get recentered to th...
280ae1bc1632b5a9ad1c0794b6a054fd0bee4ee8
Remove console logger
bookworm/library/templates/static/bookworm.js
bookworm/library/templates/static/bookworm.js
jQuery(document).ready(function() { // $("#bw-upload-box").hide(); $('#bw-upload-link').hover(function() { $("#bw-upload-box").slideDown('fast'); }, function() {} ); $('#bw-shell-table').hover(function() { $("#bw-upload...
JavaScript
0.000002
@@ -1486,61 +1486,8 @@ t);%0A - console.log(get_font_sizing(main_text));%0A
c68f40548c50dfd78ae5df9906f8beb158b0e72b
add size, flat props; add custom classes for flat, size, clearable
src/dropdown/Dropdown.js
src/dropdown/Dropdown.js
import React from 'react'; import { props, t, skinnable } from '../utils'; import Select from 'react-select'; import find from 'lodash/find'; import omit from 'lodash/omit'; import cx from 'classnames'; import { warn } from '../utils/log'; const PropTypes = { value: t.maybe(t.union([t.Number, t.String, t.Object])), ...
JavaScript
0
@@ -496,16 +496,213 @@ .Array,%0A + size: t.enums.of(%5B'medium', 'small'%5D),%0A disabled: t.maybe(t.Boolean),%0A searchable: t.maybe(t.Boolean),%0A clearable: t.maybe(t.Boolean),%0A multi: t.maybe(t.Boolean),%0A flat: t.maybe(t.Boolean),%0A id: t. @@ -888,16 +888,167 @@ nent %7B%0A%0A + static defaultProp...
b1b75620fdcd9966b588f14e6dd50cc2354bff59
la busqueda no es case-sensitive
js/app.js
js/app.js
var urlViz = "http://gcba.cartodb.com/api/v2/viz/e043bc9c-c0eb-11e3-b175-0e73339ffa50/viz.json"; var sql = cartodb.SQL({ user: 'gcba' }); /* * Inicializacion del mapa */ function main() { cartodb.createVis('map', urlViz, { tiles_loader: true, center_lat: -34.610060, center_lon: -58.439307,...
JavaScript
0.999763
@@ -2027,16 +2027,42 @@ d(key)%7B%0A +%09key = key.toLowerCase();%0A %09var q = @@ -2114,12 +2114,19 @@ ERE +LOWER( tags +) LIK @@ -2146,22 +2146,29 @@ %22%25' OR +LOWER( nombre +) LIKE '%25 @@ -2183,20 +2183,27 @@ +%22%25' OR +LOWER( tipo +) LIKE '%25
13aae83912c5514a2fe08a0d5a27940d14929408
Add noSandbox option
lib/browser.js
lib/browser.js
'use strict' const debug = require('debug')('HeadlessChrome:browser') /** * Created by: Luciano A. Ganga * Inspired by: * - Doffy (https://github.com/qieguo2016/doffy) * - Horseman (https://github.com/johntitus/node-horseman) * More Info: * https://developers.google.com/web/updates/2017/04/headless-chrome...
JavaScript
0.000006
@@ -1135,16 +1135,38 @@ NT: true +,%0A noSandbox: false %0A %7D,%0A @@ -2188,24 +2188,32 @@ userDataDir, + %0A lau @@ -2315,16 +2315,66 @@ leSIGINT +,%0A noSandbox: this.options.chrome.noSandbox %0A %7D
35bc929e3dc663852c794ab232bace82abc3e48c
Add basic getHomeActivityLevelCounts method
server/methods/homes.js
server/methods/homes.js
Meteor.methods({ 'getHomeResidentIds': function (homeId) { // Get all residents of specific home var residents = Residents.find({'homeId': homeId}).fetch(); // Create an array containing only resident IDs var residentIds = _.map(residents, function (resident) { return resident._id; }); ...
JavaScript
0
@@ -2194,16 +2194,706 @@ ttened;%0A + %7D,%0A %22getHomeActivityLevelCounts%22: function (homeId) %7B%0A // // Get home residents by calling getHomeResidentIds%0A // Meteor.call(%22getHomeResidentIds%22,homeId, function (error, result) %7B%0A // residentIdsVar.set(result);%0A // %7D);%0A // console....
1f36576a2d915e8d84e608a4d03db4f7c616925f
update description
browser/plugins/three_line_material.plugin.js
browser/plugins/three_line_material.plugin.js
(function() { var ThreeLineMaterialPlugin = E2.plugins.three_line_material = function(core) { AbstractThreeMaterialPlugin.apply(this, arguments) this.desc = 'THREE.js Point Cloud Material' this.input_slots = [ { name: 'color', dt: core.datatypes.COLOR }, { name: 'linewidth', dt: core.datatypes.FLOAT, d...
JavaScript
0.000001
@@ -170,19 +170,12 @@ .js -Point Cloud +Line Mat
9dc776949cf874f78c6e5d6ac6669e536c2fde5a
add some sample data to the share sheet
src/screens/share-sheet.js
src/screens/share-sheet.js
import React, {PropTypes} from 'react' import omit from 'lodash/object/omit' import history from '../history' import Button from '../components/button' import Icon from '../components/icon' import Toolbar from '../components/toolbar' import Modal from '../components/modal' function closeModal(location) { const query...
JavaScript
0
@@ -267,16 +267,54 @@ s/modal' +%0Aimport List from '../components/list' %0A%0Afuncti @@ -855,21 +855,149 @@ %09%09Share -Modal +%22%7Bstudent.name%7D%22 via:%0A%09%09%09%3CList type='bullet'%3E%0A%09%09%09%09%3Cli%3EGoogle Drive%3C/li%3E%0A%09%09%09%09%3Cli%3EEmail File%3C/li%3E%0A%09%09%09%09%3Cli%3EDownload File...
52cedb64b14f7c6207c62cf6831e908bd2ca5129
Clean up
resources/js/app.js
resources/js/app.js
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); window.Vue = require('vue'); /** * The following block of code may be...
JavaScript
0.000002
@@ -721,17 +721,16 @@ vue$/i)%0A -%0A // files @@ -751,24 +751,8 @@ y =%3E - %7B%0A// return Vue @@ -813,13 +813,8 @@ ey)) -%0A// %7D )%0A%0A/
11444623447330357c12fe53802b093093443928
test firebase
server/node/firebase.js
server/node/firebase.js
const connectToFirebase = () => { const admin = require("firebase-admin"); let serviceAccount = require("./config/quizchatbot-ce222-firebase-adminsdk.json") admin.initializeApp({ credential: admin.credential.cert(serviceAccount), databaseURL: "https://quizchatbot-ce222.firebaseio.com/" }...
JavaScript
0
@@ -3757,32 +3757,33 @@ %7D%0A %7D + %0A resolve
07713973c5b9edd6e44c232f025d94ec7a2040d7
refactor box message
lib/builder.js
lib/builder.js
const debug = require('debug')('netrat') const path = require('path') const os = require('os') const fs = require('fs') const boxen = require('boxen') const exec = require('pkg').exec const Mustache = require('mustache') const SEED_PATH = path.join(__dirname, 'seed', 'shell.mustache') var OUT_NAME = 'netrat' function ...
JavaScript
0.000182
@@ -1253,221 +1253,261 @@ )%0A -console.log(boxen('%5Cu2714 Build succeed!', %7Bpadding: 1, margin: 1, align: 'center', borderColor: 'green'%7D))%0A%7D%0A%0Afunction fail (err) %7B%0A debug('pkg build failed', err %7C%7C '')%0A console.log(boxen('%5Cu274c Build failed! +Msg('Build succeed!', 0)%0A%7D%0A%0Afunction...
e24444bd5f3a20694cb14a2b8e2f46161b8fd5fe
Remove code that closes categories upon resize
js/app.js
js/app.js
// When DOM elements are ready, excluding images $(document).ready(function () { // Check if URL references specific category if (window.location.hash && window.location.hash.indexOf('#') > -1) { openCategory(window.location.hash.substring(1)); } // Unveil images 50px before they appear $('img').unveil(5...
JavaScript
0
@@ -2431,104 +2431,8 @@ ));%0A - $('.category h5 i').removeClass('active-icon');%0A $('.website-table').css('display', 'none');%0A %7D);%0A
1166aff4c7aa309eda98804dc472378b369245c1
Handle transforms that are plain functions
lib/bundler.js
lib/bundler.js
var extend = require( 'extend' ); var dispatchy = require( 'dispatchy' ); module.exports = { create: function ( id ) { return extend( dispatchy.create(), { id: id, bundle: function ( target, options ) { var me = this; var opts = { browserifyOpts: { }, u...
JavaScript
0
@@ -2089,32 +2089,75 @@ nfig.config ) %7B%0A + if ( transform.configure ) %7B%0A tran @@ -2196,32 +2196,261 @@ onfig.config );%0A + %7D else %7B%0A var oldTransform = transform;%0A transform = function ( _b, _opts ) %7B%0A return oldTransfo...
de5c4e982b9d29666b09e64ad36e8adf34ea6d61
delete console.log
server/routes/privateArea/handlers/handlePostInfoPoll.js
server/routes/privateArea/handlers/handlePostInfoPoll.js
const Poll = require('../../../models/poll.js') const User = require('../../../models/user.js') const handlePostInfoPoll = (req, res) => { const {question, userID} = req.body console.log(req.body) let duplicationChecking = 'none' let allowMoreThanOne = false if (req.body.duplicationChecking) duplicationChec...
JavaScript
0.000007
@@ -175,31 +175,8 @@ ody%0A - console.log(req.body) %0A l
ee37d9e6511860cdc5275fc5c1701fcdb379338c
Add media proxy route
src/server/routes/media.js
src/server/routes/media.js
import Express from "express"; const router = Express.Router(); router.get('/', function(res, req, next){ log.warning("Media requested") }) export default router
JavaScript
0
@@ -24,16 +24,95 @@ press%22;%0A +import request from %22request%22;%0Aimport headers from '../config/requestHeaders'%0A%0A const ro @@ -135,16 +135,29 @@ outer(); +%0Avar options; %0A%0Arouter @@ -181,14 +181,14 @@ n(re -s +q , re -q +s , ne @@ -200,38 +200,231 @@ -log.warning(%22Media requested%22) +cons...
5e050aa38938d02433df179ce42d293402c165ce
Update app.js
js/app.js
js/app.js
(function (window, document, drawModule, undefined) { var btn = document.getElementById('btn'); btn.addEventListener("click", function(){ drawModule.init();}); document.onkeydown = function(event) { keyCode = window.event.keyCode; keyCode = event.keyCode; switch(keyCode) { // WAS...
JavaScript
0.000002
@@ -132,16 +132,18 @@ tion()%7B +%0A%09 drawModu @@ -152,16 +152,29 @@ .init(); +%0A%09score = 0;%0A %7D);%0A%0A%09do
8b594bf09c3c30f835049a9576ac4ce20da5b07f
Change SC namespace
js/app.js
js/app.js
var App = SC.Application.create(); App.MyView = SC.View.extend({ mouseDown: function() { window.alert("hello world!"); } });
JavaScript
0.000001
@@ -3,18 +3,18 @@ r App = -SC +Em .Applica @@ -46,10 +46,10 @@ w = -SC +Em .Vie
37575262ab680d6d93330e63d479dbd38fa46bc0
Update AlertEmbed.js
src/embeds/AlertEmbed.js
src/embeds/AlertEmbed.js
'use strict'; const BaseEmbed = require('./BaseEmbed.js'); /** * Generates alert embeds */ class AlertEmbed extends BaseEmbed { /** * @param {Genesis} bot - An instance of Genesis * @param {Array.<Alert>} alerts - The alerts to be included in the embed */ constructor(bot, alerts) { super(); th...
JavaScript
0
@@ -1635,35 +1635,39 @@ s.push(%7B name: ' -_ _ +Levels: ', value: %60**Lev @@ -1665,20 +1665,8 @@ e: %60 -**Levels:** $%7Ba. @@ -1735,16 +1735,135 @@ true %7D); +%0A this.fields.push(%7B name: 'Archwing Required', value: a.mission.archwingRequired ? 'Yes' : 'No', inline: true %7D); %0A%0A
5bcbd2e766248612d7eb487475911238793acd81
Fix issue with console.log()
routes/dashboard.js
routes/dashboard.js
var express = require('express'); var router = express.Router(); var exec = require('child_process').exec; var delayed = require('delayed'); var config = require('../boot/libs/configure.js'); var fs = require('fs'); var YAML = require('yamljs'); var runner = require('../libs/runner/findapp.js'); const root = "dashboard...
JavaScript
0
@@ -1440,10 +1440,8 @@ og(%22 -%5Cn %22);%0A
24b6a680d96690b5221112667babbbedf08de12b
fix auth
routes/dashboard.js
routes/dashboard.js
var express = require('express'); var router = express.Router(); router.get('/', function(req, res, next) { if (!req.isAuthenticated()) { res.redirect('../'); } var model = require('../model'); // ꗗǂݍ var Problem = model.Problem; Problem.find().sort({ sort: 1}).exec(function(err, prob...
JavaScript
0.000365
@@ -379,16 +379,243 @@ var +condition;%0A if (req.user.provider == 'google' %7C%7C req.user.provider == 'github')%0A condition = %7B provider: req.user.provider, provider_id: req.user.id %7D;%0A else if (req.user.provider == 'twitter')%0A conditio
612a6c84313f137d173c9fe4cf4b73dd34241b87
Fix Combo box margin issue
views/combo_box_view.js
views/combo_box_view.js
//= require ./select_button_view //= require ./text_field_view Flame.ComboBoxView = Flame.SelectButtonView.extend({ classNames: ['flame-combo-box-view'], childViews: 'textView buttonView'.w(), handlebars: undefined, acceptsKeyResponder: false, textView: Flame.TextFieldView.extend({ layout:...
JavaScript
0
@@ -332,17 +332,17 @@ right: -0 +3 %7D,%0A @@ -625,9 +625,9 @@ t: - -5 +2 , wi
4de912a42e46ae15607d5437d8769077f1acbac7
Add playlist on the return of remove track on playlist
routes/playlists.js
routes/playlists.js
var Playlist = require('../models/playlist').model; var User = require('../models/user').model; var Track = require('../models/track').model; var _ = require('underscore'); exports.createPlaylist = function (req, res) { User.findById(req.user.id, function (err, user) { if (!err) { var playlist ...
JavaScript
0.000007
@@ -2854,16 +2854,24 @@ 0).send( +playlist );%0A
b1a885a439fb524e17aa0323b4a93e7abff31ed3
fix response
routes/tableflip.js
routes/tableflip.js
var request = require('request'); var flip = require('flip'); module.exports = function (app) { app.post('/tableflip', function (req, res) { var text, payload, requestOpts; text = '(╯°□°)╯︵ ' + (req.body.text ? flip(req.body.text) : '┻━┻'); payload = { channel: req.channel, text: text, ...
JavaScript
0.000002
@@ -650,39 +650,8 @@ end( -%7Bsuccess: true, response: body%7D );%0A
68be0d7de2d3278e8c1e239ef4be6dc7add8cb41
Make the enemy ship follow when you get too close
src/states/play_mission.js
src/states/play_mission.js
// namespace var App = App || {}; App.PlayMissionState = (function () { "use strict"; var fn = function (game) { Phaser.State.call(this, game); }; fn.prototype = Object.create(Phaser.State.prototype); fn.prototype.constructor = fn; fn.prototype.init = function () { ...
JavaScript
0.000001
@@ -2675,36 +2675,825 @@ %7D%0D%0A - %7D%0D%0A%0D%0A return fn;%0D%0A%7D)(); +%0D%0A if (Math.abs(this.player.body.x - this.enemy1.body.x) %3C 200 && Math.abs(this.player.body.y - this.enemy1.body.y) %3C 200) %7B%0D%0A this.enemy1.follow = 1;%0D%0A %7D%0D%0A if (this.enemy1.follo...
2fa9213366f5c91139b649a1805e110f472b0a58
Update img.js
js/img.js
js/img.js
(function() { "use strict"; var states = { MAIN: 0, VIEW: 1 }; var sequenceTypes = { ALPHABETICAL: 0, NUMERIC: 1 }; var casings = { LOWERCASE: 0, UPPERCASE: 1, MIXED: 2 }; var state = null; var baseUrl = null; var sequences = []; function byId(input) { ret...
JavaScript
0.000001
@@ -1054,32 +1054,253 @@ XED, start);%0A %7D +%0A%0A var casingHtml = '%3Cselect class=%22casing%22%3E%3Coption value=%220%22%3ELowercase%3C/option%3E%3Coption value=%221%22%3EUppercase%3C/option%3E%3Coption value=%221%22%3EMixed%3C/option%3E%3C/select%3E';%0A var paddingHtml = '%3Cinput class=%22padding%22 type=%2...
e636c758e0089fc20841193c135ebcbbef981b8b
Remove unnecessary toLowerCase
lib/command.js
lib/command.js
var _ = require('lodash'); var Promise = require('bluebird'); var fbuffer = require('flexbuffer'); var utils = require('./utils'); /** * Command instance * * It's rare that you need to create a Command instance yourself. * * @constructor * @param {string} name - Command name * @param {string[]} [args=null] - An ...
JavaScript
0.998906
@@ -1370,22 +1370,8 @@ name -.toLowerCase() ;%0A
b2ea356885470cef86420994e1226c40c2e6587d
Fix clearing directions
js/map.js
js/map.js
var mapOptions = { zoom: 12, center: new google.maps.LatLng(52.2324, 21.0127), mapTypeId: google.maps.MapTypeId.ROADMAP, panControl: true, panControlOptions: { position: google.maps.ControlPosition.RIGHT_TOP }, zoomControl: true, zoomControlOptions: { style: google.maps.Z...
JavaScript
0.000004
@@ -801,96 +801,8 @@ );%0A%0A -//function that calculate routes%0Afunction calcRoute(from, fromStation, toStation, to) %7B%0A %0A @@ -1531,24 +1531,113 @@ Options%7D);%0A%0A +//function that calculate routes%0Afunction calcRoute(from, fromStation, toStation, to) %7B%0A%0A directio @@ -3750,9 +3750,11 @@ ...
53835c5dc885a3432cf37c5ca93ffbfb9527f07f
Remove search feature in map
js/map.js
js/map.js
function hasCoordinates(event) { return ( event.location !== "virtual" && typeof event.location.coordinates === "object" && typeof event.location.coordinates.latitude === "number" && typeof event.location.coordinates.longitude === "number" ); } var clusterStyleCache = {}; var clusterStyle = function...
JavaScript
0.000001
@@ -4925,350 +4925,8 @@ );%0A%0A - var geocoder = new Geocoder(%22nominatim%22, %7B%0A provider: %22photon%22,%0A lang: %22en%22,%0A placeholder: %22Search for ...%22,%0A limit: 5,%0A debug: true,%0A autoComplete: true,%0A keepOpen: false,%0A preventDefault: true%0A %7D);%0A map.addControl(g...
0dba4699df61ffe5be0d04e4fdbf4daa20cbc8b4
Add basic source map feature
markdown-core.js
markdown-core.js
// markdown-it window.mdc = window.markdownit({ html: true, xhtmlOut: true, // <br /> instead of <br> linkify: true }); // Configuration for Gantt diagrams mermaid.ganttConfig = { axisFormatter: [ ["%-m/%-d", function (d) { return d.getDay() == 1; }] ] }; // subscript & superscript mdc = mdc...
JavaScript
0
@@ -1526,18 +1526,20 @@ %0A var t -ag +oken = token @@ -1544,16 +1544,35 @@ ens%5Bidx%5D +;%0A var tag = token .type;%0A @@ -1655,16 +1655,132 @@ = true;%0A + if(token.level == 0 && token.map != null) %7B%0A token.attrPush(%5B'data-source-line', token.map%5B0%5D + 1%5D);%0A %7D%0A %7D else @@ -20...
e70876a2413eaa32fcd8087fec085ba9970c78a6
Update up to changes in es5-ext
lib/console.js
lib/console.js
'use strict'; var inspect = require('util').inspect , sequence = require('es5-ext/lib/Function/sequence') , curry = require('es5-ext/lib/Function/curry').call , callBind = require('es5-ext/lib/Function/call/bind') , flog = require('es5-ext/lib/Function/log').call , peek = require('es5-ext/l...
JavaScript
0
@@ -545,16 +545,26 @@ ib/Date/ +prototype/ duration @@ -565,21 +565,16 @@ ration') -.call %0A , dpa @@ -2946,16 +2946,21 @@ duration +.call (this.st
f0d88431fdc114975b84e0285f4d6113555d203f
Fix default location, now defaults to berkeley
js/map.js
js/map.js
var map; var MY_MAPTYPE_ID = 'custom_style'; // turn this into a promise. $.when(getCurrentLocation()) .then(setCurrentUserPosition) .fail(setDefaultUserPosition); // Figure out a way to optimize this, so that you // don't see "Skater" before the name changes. $(document).on('pageshow', '#login-page', function...
JavaScript
0
@@ -497,25 +497,24 @@ nction () %7B%0A -%0A // Do th
f8eb90199aa55694b60ebeac89702ecdec56d1ad
use lib indexder
lib/content.js
lib/content.js
// content related functions var scraper = require('./scraper.js'); // save a content item, queueing content and creating annotations as required // desc: { uri: uri, member: psMember, referer: referer, isHTML: browser_request.is_html, content: pageBuffer, contentType: contentType, headers: saveHeaders} exports.index...
JavaScript
0.000001
@@ -356,16 +356,30 @@ ck) %7B%0A +GLOBAL.config. indexer.
d61062d11b3439f5adf25009191b0b66a88a57b7
Update nav.js
js/nav.js
js/nav.js
function init() { window.addEventListener('scroll', function(e){ var distanceY = window.pageYOffset || document.documentElement.scrollTop, shrinkOn = 80, header = document.querySelector(".site-nav"); if (distanceY > shrinkOn) { classie.add(header,"smaller"); ...
JavaScript
0.000001
@@ -171,10 +171,10 @@ n = -80 +75 ,%0A
b1322b6a7b5dc75a5a7d7662c99de65943cee01e
Fix #10 Default signedness based on presence of keys
lib/cookies.js
lib/cookies.js
var cache = {} function Cookies( request, response, keys ) { this.request = request this.response = response this.keys = keys } Cookies.prototype = { get: function( name, opts ) { var sigName = name + ".sig" , header, match, value, remote, data, index header = this.request.headers[ "cooki...
JavaScript
0
@@ -265,23 +265,102 @@ , index%0A + , signed = opts && opts.signed !== undefined ? opts.signed : !!this.keys%0A %0A - head @@ -547,21 +547,16 @@ pts %7C%7C ! -opts. signed ) @@ -1205,16 +1205,95 @@ header%0A + , signed = opts && opts.signed !== undefined ? opts.signed : !!this.keys%0A ...
898eba852e97365ba5f62b17beedbc20a6fb99ea
Fix variable string substitutions
lib/superstring/index.js
lib/superstring/index.js
var _ = require('../util').lodash, uuid = require('uuid'), E = '', SuperString, // constructor Substitutor; // constructor /** * A string-like instance with additional functionalities to track string operations better * * @constructor * @private * @param {String} value */ SuperString = function ...
JavaScript
0.999999
@@ -1718,24 +1718,41 @@ nts%0A +replacements && ( this.substit @@ -1765,27 +1765,9 @@ += -Number(replacements +1 ); /
f377066fb048c691c29d88f028575cca6323753b
Switch to Cognito Unauthenticated user
js/sns.js
js/sns.js
AWS.config.update({ accessKeyId: 'AKIAIX5VKUESX7ZWVEJA', secretAccessKey: 'y+xql1rSpIZSCd+B8FRskUdmSJy1GWSAdvWaG5KY' }); AWS.config.region = 'eu-west-1'; function SendSNS(msg, name, email, result, thankyou) { msg = msg.trim() name = name.trim() email = email.trim() thankyou = thankyou.trim() ...
JavaScript
0
@@ -8,126 +8,29 @@ fig. -update(%7B%0A accessKeyId: 'AKIAIX5VKUESX7ZWVEJA',%0A secretAccessKey: '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'%0A%7D);%0A +region = 'eu-west-1'; %0AAWS @@ -37,36 +37,138 @@ .config. +c re -gion = 'eu-west-1' +dentials = new AWS.CognitoIdentityCredentials(%7B%0A IdentityPoolId: '...
11cb84f1393df5fc1a6155bc301da767795d95d2
Remove unnecessary code
lib/cson-db.js
lib/cson-db.js
'use babel'; import {Emitter} from 'atom'; import CSON from 'season'; import fs from 'fs'; import path from 'path'; import os from 'os'; import _ from 'underscore-plus'; export default class CSONDB { constructor() { this.emitter = new Emitter(); this.updaters = {}; this.onUpdate((projects) => { f...
JavaScript
0.001341
@@ -2068,45 +2068,8 @@ %7D%0A%0A - let project = null;%0A let key;%0A @@ -2103,24 +2103,30 @@ %0A for ( +const key in proje @@ -2136,41 +2136,8 @@ ) %7B%0A - project = projects%5Bkey%5D;%0A @@ -2169,37 +2169,8 @@ ) %7B%0A - delete(props._id);%0A @@ -2198,16 +2198,16 @...
742631522c902a079ccd50438ca53bd9ebe8d078
use config.name for name fallback
lib/dist/js.js
lib/dist/js.js
// tooling const fs = require('../fs'); const rollup = require('rollup'); const require2 = require('../require'); // cache let cache; module.exports = ({ from, to, map = false, plugins = [], format = 'iife', name = '' }, config) => { const absoluteFrom = fs.join(config.from, from); const absoluteTo = fs.j...
JavaScript
0.000002
@@ -219,13 +219,8 @@ name - = '' %7D, @@ -899,16 +899,31 @@ me: name + %7C%7C config.name ,%0A%09%09%09%09so
f9e2e166958103f394eb66a88581c99352181065
add acct alias if auth is present
flows/convert-to-v2.js
flows/convert-to-v2.js
const fs = require('fs'); const path = require('path'); const async = require('async'); const ObjectId = require('mongodb').ObjectId; const datafire = require('../index'); const flow = module.exports = new datafire.Flow('convertToV2', "Converts a v1 flow to v2"); const mongo = datafire.Integration.new('mongodb').as('...
JavaScript
0.000001
@@ -2050,20 +2050,27 @@ forEach( +( link +, idx) =%3E %7B%0A @@ -2231,11 +2231,154 @@ e%7D') -%5Cn%60 +%60%0A if (v1.settings && v1.settings.links%5Bidx%5D.account) %7B%0A code += %22.as('%22 + v1.settings.links%5Bidx%5D.account + %22')%22;%0A %7D%0A code += ';%5Cn'; %0A %7D
851be88b1760f147e31519743aed623d3675fb6b
fix fragment transition context (fix #1295)
src/fragment/fragment.js
src/fragment/fragment.js
var _ = require('../util') var transition = require('../transition') /** * Abstraction for a partially-compiled fragment. * Can optionally compile content with a child scope. * * @param {Function} linker * @param {Vue} vm * @param {DocumentFragment} frag * @param {Vue} [host] * @param {Object} [scope] */ fun...
JavaScript
0
@@ -414,24 +414,39 @@ dFrags = %5B%5D%0A + this.vm = vm%0A this.scope @@ -1874,29 +1874,26 @@ arget, this. -scope +vm )%0A this.ins @@ -2122,21 +2122,18 @@ e, this. -scope +vm )%0A this @@ -2421,37 +2421,34 @@ nodes%0A var -scope +vm = this. scope%0A var @@ -2431,29 +2431,26 @@ r vm = this. -scope +...
ebaa7d5e4589f734f2b067486ecb601e08370fef
return element node type 1
lib/element.js
lib/element.js
/** * Module dependencies. */ var Attribute = require('./attribute'); var Text = require('./text'); /** * Expose 'Element' */ module.exports = Element; /** * Element interface. * * Represents an object of a document. * * @param {String} tag * @api public */ function Element(tag) { this.localName = ...
JavaScript
0.998277
@@ -351,19 +351,21 @@ is.child -ren +Nodes = %5B%5D;%0A @@ -1052,19 +1052,21 @@ is.child -ren +Nodes .push(ch @@ -1322,19 +1322,21 @@ is.child -ren +Nodes .length; @@ -1374,19 +1374,21 @@ is.child -ren +Nodes %5Bi%5D.rend