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
adc6160562b4cd4ea811c4617d0d8d268412fae9
add attributes option
src/index.js
src/index.js
module.exports = createMotel; const UrlPattern = require('url-pattern'); const PRIV = new WeakMap(); const VACANCY_ATTRIBUTE = 'data-vacancy'; const VACANCY_ATTRIBUTE_SELECTOR = `[${VACANCY_ATTRIBUTE}]`; const IS_BROWSER = typeof window !== 'undefined'; function createMotel() { return new Motel(); } class Motel {...
JavaScript
0.000003
@@ -1125,24 +1125,48 @@ tree: true,%0A + attributes: true,%0A attrib
eda367ab655abd2cf53efae9ff0b078d2c0537fe
Handle extension rename while processing .sss => .pcss.
src/index.js
src/index.js
/* eslint-disable filenames/match-exported */ import path from "path" import fs from "fs-extra" import postcss from "postcss" import postcssImport from "postcss-import" import postcssSass from "postcss-sass" import postcssScss from "postcss-scss" import postcssSmartAsset from "postcss-smart-asset" import postcssSugarSS...
JavaScript
0
@@ -2630,28 +2630,26 @@ gins.%0A -cons +le t fileExt = @@ -2729,24 +2729,24 @@ fileExt)) %7B%0A - retu @@ -2758,24 +2758,168 @@ ll%0A %7D%0A%0A + // Handle style extension rename - outputting SugarSS is not possible.%0A if (fileExt === %22.sss%22) %7B%0A fileExt = %22.pcss%22%0...
3c82923d70b268fd36417aa2a6e79b013d4d5e79
Add better logging
src/index.js
src/index.js
var config = require('../config'), _ = require('underscore')._, moment = require('moment'), fs = require('fs'), express = require('express'), twilioClient = require('twilio')(config.accountSid, config.authToken), Cleverbot = require('cleverbot-node'); var cleverbot = new Cleverbot(); var express = require('express');...
JavaScript
0.000004
@@ -840,85 +840,8 @@ )%7B%0A%0A - text(getQueryParam(%22Body%22, req), getQueryParam(%22From%22, req));%0A %0A @@ -864,24 +864,24 @@ timestamp);%0A + cons @@ -1011,16 +1011,18 @@ (%22Text: +%5C%22 %22 + getQ @@ -1034,24 +1034,101 @@ aram(%22Body%22, + req) + %22%5C%22%22);%0A tex...
5850e8fe9d89e59c93ce3316e08c965351442e18
fix variable name
src/index.js
src/index.js
// @flow import { concat, flow, map, mapValues, partial, partialRight } from 'lodash' import { autorun, map as mapObs, observable, observe } from 'mobx' import type { StoreConfig, SpliceChange, UpdateChange } from './types' export default function(intitialState: Object = {}, config: StoreConfig = { historyLimit: Infi...
JavaScript
0.000005
@@ -105,22 +105,22 @@ map as -mapObs +obsMap , observ @@ -419,14 +419,14 @@ t = -mapObs +obsMap (map
1a856d8da5d82bf8214dfb92711f4accfe3d6651
add classes back for style override purposes
src/index.js
src/index.js
/** @jsx jsx */ import { jsx } from '@emotion/core'; import styled from 'styled-components'; const Table = styled.div` white-space: nowrap; margin-top: 2rem; border: 2px solid #e5e5e5; display: table; box-sizing: border-box; `; Table.displayName = 'Table'; const Row = styled.div` display: table-row; &...
JavaScript
0
@@ -111,84 +111,83 @@ yled -.div%60%0A white-space: nowrap;%0A margin-top: 2rem;%0A border: 2px solid #e5e5e5 +('div').attrs(%7B%0A className: 'sticky-table-table'%0A%7D)%60%0A white-space: nowrap ;%0A @@ -272,36 +272,83 @@ nst Row = styled -. +(' div +').attrs(%7B%0A className: 'sticky-table-cell'%0A%7D) ...
5b2f677299a5888e64b7346fde40a014400ae369
Fix Linter Error
src/index.js
src/index.js
const postcss = require('postcss'); const parser = require('postcss-selector-parser'); /** * Ensure that attributes with different quotes match. * @param {Object} selector - postcss selector node */ function normalizeAttributes(selector) { selector.walkAttributes((node) => { if (node.value) { // remove ...
JavaScript
0.000001
@@ -1469,183 +1469,8 @@ ,%0A%7D; -%0A%3C%3C%3C%3C%3C%3C%3C HEAD%0A=======%0A%0Amodule.exports = postcss.plugin('postcss-combine-duplicated-selectors', (options = defaultOptions) =%3E %7B%0A%3E%3E%3E%3E%3E%3E%3E 75dbeff16efbe8c5c9830dac460c0c9cd56c2aa0 %0A%0Amo
b2d037dc26bae420d30d9a4ef32ad3eb28fa17d3
make eslint happy
src/index.js
src/index.js
import RendererSVG from './p5.RendererSVG'; import Rendering from './rendering'; import IO from './io'; import Element from './element'; import Filters from './filters'; import constants from './constants'; function init(p5) { /** * @namespace p5 */ RendererSVG(p5); Rendering(p5); IO(p5); ...
JavaScript
0.000141
@@ -258,25 +258,24 @@ */%0A - RendererSVG( @@ -275,25 +275,24 @@ rerSVG(p5);%0A - Renderin @@ -306,17 +306,16 @@ - IO(p5);%0A @@ -306,25 +306,24 @@ IO(p5);%0A - Element( @@ -331,17 +331,16 @@ 5);%0A - Filters( @@ -345,17 +345,16 @@ s(p5);%0A%0A - // a @@ -384,17...
5571d6631d3fb4d5c415f82914a9575ab9799cdf
Add rest parameters to logger definition
src/index.js
src/index.js
/** * Specifies the available logging levels. */ interface LogLevel { /** * No logging. */ none: number, /** * Log only error messages. */ error: number, /** * Log warnings messages or above. */ warn: number, /** * Log informational messages or above. */ info: number, /** * Log all m...
JavaScript
0.000001
@@ -3782,32 +3782,66 @@ message to log.%0A + * @param rest The data to log.%0A */%0A debug(me @@ -3845,32 +3845,48 @@ (message: string +, ...rest: any%5B%5D ): void %7B%7D%0A%0A /* @@ -3940,32 +3940,66 @@ message to log.%0A + * @param rest The data to log.%0A */%0A info(mes @@ -4002,32 +4002,48 @@ (...
f1841a4dc4e3b2d340954859aeba73077f2e3be6
Change command title and placeholder
src/index.js
src/index.js
define([ "text!src/templates/file.html", "less!src/stylesheets/main.less" ], function(fileTemplate) { var _ = codebox.require("hr/utils"); var commands = codebox.require("core/commands"); var rpc = codebox.require("core/rpc"); var dialogs = codebox.require("utils/dialogs"); commands.registe...
JavaScript
0.000001
@@ -365,28 +365,28 @@ %22Find: -Browse F +Jump to f ile -s %22,%0A @@ -1110,20 +1110,22 @@ r: %22 -Browse F +Jump to a f ile -s %22%0A
b83ece6db6352590edb315473dc6c3738df687a2
Add reference to the AudioPlayer class
src/index.js
src/index.js
require('colors') const util = require('util') const Discordie = require('discordie') const moment = require('moment') const CommandManager = require('./commands') const GuildManager = require('./guilds') const ModuleManager = require('./modules') const PermissionsManager = require('./permissions') const DataStore = re...
JavaScript
0
@@ -329,16 +329,61 @@ /data')%0A +const AudioPlayer = require('./audioPlayer')%0A const pk @@ -2491,24 +2491,60 @@ eManager()%0A%0A + this.AudioPlayer = AudioPlayer%0A%0A this.bot
e7b4b561dc262e8c54bc35b3eb035f466876258b
Correct name of input indices send by Shade.compileVertexShader
src/index.js
src/index.js
(function (ns) { var parser = require('esprima'), codegen = require('escodegen'), parameters = require("./analyze/parameters.js"), interfaces = require("./interfaces.js"), inference = require("./analyze/typeinference/typeinference.js"), sanitizer = require("./analyze/sanitize...
JavaScript
0.000001
@@ -5873,24 +5873,214 @@ %7D);%0A%0A + var inputIndices = %7B%7D;%0A for(var inputName in result.inputIndices)%7B%0A inputIndices%5B%22_env_%22 + inputName%5D = result.inputIndices%5BinputName%5D;%0A %7D%0A%0A @@ -6140,24 +6140,24 @@ (aast, %7B%7D)...
18ec95e501b33396dec89e4b63101bdcf2fec4cb
format timestamp with tighter pattern
src/index.js
src/index.js
var _ = require('lodash'); var fs = require('fs'); var moment = require('moment'); var MailerClass = require('./mailer'); var PostServerClass = require('./postServer'); var SpreadsheetClass = require('./spreadsheet'); //----------------------------------------------------...
JavaScript
0.000008
@@ -2121,22 +2121,18 @@ t('D -D/M +/ M/YY -h h:mm - a'),
3a693ddad814480bc23ebece49e42727cf562e7b
Add routing
src/index.js
src/index.js
import React from 'react' import { render } from 'react-dom' import GifApp from './containers/GifApp'; import * as GifAPI from './apis/GifAPI'; GifAPI.mock(); GifAPI.loadData(); render( <GifApp />, document.getElementById('root') );
JavaScript
0.000002
@@ -58,16 +58,86 @@ ct-dom'%0A +import %7B%0A Router,%0A Route,%0A hashHistory%0A%7D from 'react-router'%0A import G @@ -251,35 +251,203 @@ );%0A%0A -render(%0A %3C +const router = (%0A %3CRouter history=%7BhashHistory%7D%3E%0A %3CRoute path=%22/%22 component=%7BGifApp%7D%3E%0A %3CRo...
938f753a85162c0ad7dfd821614e9064d6e717c7
Add RequireError.
src/index.js
src/index.js
const metas = new Map; const queue = []; const map = queue.map; const some = queue.some; const hasOwnProperty = queue.hasOwnProperty; const origin = "https://unpkg.com/"; const identifierRe = /^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/; const versionRe = /^\d+\.\d+\.\d+(-[\w-.+]+)?$/; function string(value) { ...
JavaScript
0
@@ -287,16 +287,157 @@ +)?$/;%0A%0A +export class RequireError extends Error %7B%0A constructor(message) %7B%0A super(message);%0A %7D%0A%7D%0A%0ARequireError.prototype.name = %22RequireError%22;%0A%0A function @@ -933,24 +933,31 @@ ) throw new +Require Error(%22unabl @@ -1438,24 +1438,31 @@ ) throw new +Re...
280f07c3cb209923644ec843718087fd06ef2927
Revert ":fire: Remove unnecessary Infinity handling"
src/index.js
src/index.js
/* @flow */ import invariant from 'assert' import RangeWorker from './worker' export default class RangePool { length: number; workers: Set<RangeWorker>; constructor(length: number) { invariant(typeof length === 'number', 'length is not a number') invariant(Number.isFinite(length), 'length can not be i...
JavaScript
0
@@ -2414,16 +2414,112 @@ orkers,%0A + %7D, function(key: string, value: any) %7B%0A return value === Infinity ? 'Infinity' : value%0A %7D)%0A @@ -2707,16 +2707,112 @@ rialized +, function(key: string, value: any) %7B%0A return value === 'Infinity' ? Infinity : value%0A %7D )%0A co
30c8f70c882bf4078428edd69c3347fb7da6b28e
Make nickname available instead connection handler
src/index.js
src/index.js
import ws from 'nodejs-websocket' import { v4 as getToken } from 'node-uuid' import getAmaze from './amaze' import createState from './state' import amazeChanger from './amazeChanger' import { JOIN_FAILURE, JOIN_REQUEST, JOIN_SUCCESS, REJOIN_FAILURE, REJOIN_REQUEST, REJOIN_SUCCESS, UNKNOWN_ACTION } from ...
JavaScript
0
@@ -1961,16 +1961,189 @@ conn) %7B%0A + const %7B setNickname, getNickname %7D = (() =%3E %7B%0A let state%0A return %7B%0A getNickname: () =%3E state,%0A setNickname: nickname =%3E %7B state = nickname %7D%0A %7D%0A %7D)()%0A%0A consol @@ -3425,24 +3425,54 @@ , %7B x, y %7D)%0A + setNi...
106ed6244ee536d73f99cb670d96ea5c040dec3b
Update index.js
src/index.js
src/index.js
/** ** index.js entry file ** * * react-redux-starter-kit * * Léo Le Bras [leo.lebraf@gmail.com] * * Work with Babel * http://babel.com/ * * MIT 2015 * */ import React from 'react'; import ReactDOM from 'react-dom'; import './index.html'; import App from 'App'; ReactDOM.render(<App />, document.querySelec...
JavaScript
0.000002
@@ -233,45 +233,59 @@ ort -'./index.html';%0Aimport App from 'App' +App from 'App';%0Aif(__PROD__) require('.index.html') ;%0A%0AR
d871e61a715edaf53881e83757002876789d1123
Use the correct API to register the Popup class
src/index.js
src/index.js
import { NetworkRack, User } from 'kinvey-js-sdk/dist/export'; import Kinvey from 'kinvey-html5-sdk'; import { HttpMiddleware } from './middleware'; import Popup from './popup'; import Push from './push'; // Setup racks NetworkRack.useHttpMiddleware(new HttpMiddleware()); // Setup popup User.usePopupClass(Popup); //...
JavaScript
0.000001
@@ -17,14 +17,75 @@ Rack -, User + %7D from 'kinvey-js-sdk/dist/export';%0Aimport %7B MobileIdentityConnect %7D f @@ -100,38 +100,40 @@ vey-js-sdk/dist/ -export +identity ';%0Aimport Kinvey @@ -350,12 +350,29 @@ pup%0A -User +MobileIdentityConnect .use
d076206de55637b33579c468fc31b6954c9be33d
Add page load time.
src/index.js
src/index.js
'use strict'; // console.log("made it to why-did-you-update index.js"); //unknown Object.defineProperty(exports, '__esModule', { value: true }); var _deepDiff = require('./deepDiff'); var _getDisplayName = require('./getDisplayName'); var _normalizeOptions = require('./normalizeOptions'); var _shouldInclude = req...
JavaScript
0
@@ -504,16 +504,274 @@ Load%22;%0A%0A +// convert ms to HMS%0Afunction msToHMS(ms) %7B%0A let seconds = ms/ 1000;%0A let hours = parseInt( seconds / 3600 );%0A seconds = seconds %25 3600;%0A let minutes = parseInt( seconds / 60);%0A seconds = seconds %25 60;%0A%0A return hours + %22:%22 + minutes + %22:%22 + sec...
d746e6bbb994395af3ca0b786699545668caa864
add styling
src/index.js
src/index.js
import React, {Component, PropTypes as PT} from 'react' import * as u from './utils' export default class BreakpointMonitor extends Component { static style = { query: {}, wrapper: {} } static defaultBp = { xs: 320, sm: 480, md: 768, lg: 960 } static propTypes = { bp: PT.object.is...
JavaScript
0.00001
@@ -266,24 +266,284 @@ lg: 960%0A %7D%0A + static defaultStyles = %7B%0A backgroundColor: 'rgba(0,0,0,.5)',%0A color: '#fff',%0A position: 'fixed',%0A top: 0,%0A right: 0,%0A zIndex: 9999,%0A padding: '20px',%0A fontSize: '16px',%0A fontFamily: 'Sans Serif',%0A textTransform: 'uppercase...
f9f828b9027878ad226fdfc7b1028e0f37430b42
Use CommonJS export
src/index.js
src/index.js
/** * Copyright (c) 2016 Nikolai Mavrenkov <koluch@koluch.ru> * * Distributed under the MIT License (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT). * * Created: 12.04.2016 19:58 */ const parseSelector = (selector) => { const regexp = /^([^#\.]+)(?:#([^\.]+))?(?:\.(.+))?$/ c...
JavaScript
0
@@ -1020,22 +1020,24 @@ %0A%7D%0A%0A -export default +module.exports = (pr
8acbfda00b1f02381541cfe8d92739b284494625
disable pause on blur
src/index.js
src/index.js
const Phaser = require('./Phaser') const Tile = require('./Tile') const Animal = require('./Animal') const generateTextures = require('./generateTextures') const MAP_SIZE = 50 const TILE_SIZE = 30 const FOOD_ABUNDANCE = 5 global.game = new Phaser.Game(MAP_SIZE * TILE_SIZE, MAP_SIZE * TILE_SIZE, Phaser.AUTO, 'game-c...
JavaScript
0.000001
@@ -705,16 +705,89 @@ '#555'%0A%0A + // Disable pause on blur.%0A game.stage.disableVisibilityChange = true%0A%0A game.y
fcce0b6b7153e423d76b72ab72357660332e2a17
Fix last array element retrieval
src/index.js
src/index.js
const DEFAULT_BASE = 1000 const DEFAULT_PRECISION = 2 const DEFAULT_DECIMAL_SEPARATOR = '.' const ERROR_INVALID_VALUE = 'Value must be a valid number' const ERROR_UNSAFE_VALUE = 'Value is either too big or too small' const ERROR_INFINITE_VALUE = 'Value must be a finite number' const ERROR_INVALID_PRECISION = 'Precisio...
JavaScript
0.00094
@@ -3515,16 +3515,20 @@ .length +- 1 : unit%0A%0A
2e435108af2020a0d90d5596cbf667a5fa16ce0c
add createView
src/index.js
src/index.js
import { extend_selection } from "./core/extend_selection"; import { Dispatcher } from './core/Dispatcher'; import { EventEmitter } from './core/EventEmitter'; import { assign } from './core/utils'; var SubUnit = {}; if ( typeof module === 'object' ) { module.exports = SubUnit; } SubUnit.select = function (object)...
JavaScript
0.000001
@@ -1259,32 +1259,33 @@ tener = function + (callback) %7B%0A @@ -1443,16 +1443,769 @@ re;%0A%7D;%0A%0A +%0ASubUnit.createView = function (parentNode, methods) %7B%0A%0A var view = assign(new SubUnitView(), methods);%0A%0A function SubUnitView () %7B%0A this.state = %7B%7D;%0A this.root = new THREE.Objec...
80355797d121a226f4a455364bbbb98caa1fbb60
Fix history interval
src/index.js
src/index.js
import got from 'got' import symbols from './symbols.json' const intervals = [1, 7, 30, 90, 180, 365] export async function history (coinName, interval) { let symbol = symbols[coinName.toLowerCase()] || coinName let timeframe = interval ? (interval + 'day/') : '' let url = 'http://www.coincap.io/history/' + tim...
JavaScript
0.998661
@@ -235,16 +235,40 @@ interval +s.indexOf(interval) %3E -1 ? (inte
e9eaa23872d979c5bd884f78710af1bef8a09c70
add image dimensions pass to wrapper function
src/index.js
src/index.js
import React from 'react'; const {PropTypes} = React; const {span} = React.DOM; const Status = { PENDING: 'pending', LOADING: 'loading', LOADED: 'loaded', FAILED: 'failed', }; export default class ImageLoader extends React.Component { static propTypes = { wrapper: PropTypes.func, className: PropTy...
JavaScript
0
@@ -1739,24 +1739,83 @@ ad(event) %7B%0A + const %7B naturalWidth, naturalHeight %7D = event.target; %0A this.des @@ -1839,32 +1839,33 @@ this.setState(%7B + status: Status.L @@ -1869,16 +1869,61 @@ s.LOADED +, width: naturalWidth, height: naturalHeight %7D);%0A%0A @@ -2385,28 +2385,97 @@ -let ...
86634a462bec1004e1e32bd7ef38525cd5eb38c9
Add mode option
src/index.js
src/index.js
'use strict'; // const traverse = require('bash-ast-traverser'); const mode = require('./modes/posix'); const posixShellLexer = require('./posix-shell-lexer'); const Parser = mode.grammar.Parser; const astBuilder = mode.astBuilder; module.exports = function parse(sourceCode, options) { try { options = options || ...
JavaScript
0.000003
@@ -11,120 +11,210 @@ t';%0A -// +%0A const -traverse = require('bash-ast-traverser');%0A%0Aconst mode = require('./modes/ +posixShellLexer = require('./posix-shell-lexer');%0A%0Amodule.exports = function parse(sourceCode, options) %7B%0A%09try %7B%0A%09%09options = options %7C%7C %7B%7D;%0A%09%09options.mode = opt...
3f6cec57003898f927321deb6e596a549cb6eec4
Fix Yolk pragma declaration
src/index.js
src/index.js
/** @jsx Yolk */ import Yolk from 'yolk'; function Counter (props, children) { // map all plus button click events to 1 const handlePlus = this.createEventHandler(); const plusOne$ = handlePlus.map(() => 1); // map all minus button click events to -1 const handleMinus = this.createEventHandler(); const mi...
JavaScript
0.000007
@@ -6,16 +6,18 @@ jsx Yolk +.h */%0Aimpo
985da75b2aef3d676526d5ee4c4b10cce8dfcdfa
add a constant for this
src/index.js
src/index.js
"use strict"; const version = '3.0.0'; import 'babel-polyfill'; import angular from 'angular'; import uiBootstrap from 'angular-ui-bootstrap'; import ngRoute from 'angular-route'; import ngSanitize from 'angular-sanitize'; import ngAnimate from 'angular-animate'; import ngResource from 'angular-resource'; import 'au...
JavaScript
0.480298
@@ -1000,24 +1000,119 @@ ', version)%0A + .constant('MONAD_COPYRIGHT', %5B2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017%5D)%0A .service
2c9370e547904d482d013f0da3b04e9639f2bbf8
Tweak re-export syntax for better output
src/index.js
src/index.js
export {configureStore, createDefaultMiddleware} from "./configureStore"; import createNextState from "immer"; import {combineReducers} from "redux"; export { createNextState, combineReducers, };
JavaScript
0.000001
@@ -68,23 +68,35 @@ tore%22;%0A%0A -im +ex port +%7Bdefault as createNe @@ -102,16 +102,17 @@ extState +%7D from %22i @@ -118,18 +118,18 @@ immer%22;%0A -im +ex port %7Bco @@ -161,58 +161,4 @@ x%22;%0A -%0Aexport %7B%0A createNextState,%0A combineReducers,%0A%7D;
23dd7685660af0610eb249ad5d337e374150eb47
Fix Breaking Change #whoops
src/index.js
src/index.js
import flattenNames from './flattenNames' import mergeClasses from './mergeClasses' import autoprefix from './autoprefix' export handleHover from './components/hover' export handleActive from './components/active' export loop from './loop' export const ReactCSS = (classes, ...activations) => { const activeNames = f...
JavaScript
0
@@ -116,16 +116,74 @@ refix'%0A%0A +export %7B handleHover as hover %7D from './components/hover'%0A export h
9367bdc2220beff7b60b65dcde61921574211476
Fix eslint errors
src/index.js
src/index.js
/*! * jstohtml * © 2018 Denis Seleznev * License: MIT * * https://github.com/hcodes/jstohtml/ */ var isArray = Array.isArray, toString = Object.prototype.toString, entityMap = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', '\'': '&#39;', '/': '&#x2...
JavaScript
0.013429
@@ -21,9 +21,9 @@ 201 -8 +9 Den @@ -104,79 +104,8 @@ var -isArray = Array.isArray,%0A toString = Object.prototype.toString,%0A enti @@ -943,16 +943,33 @@ return +Object.prototype. toString @@ -1329,16 +1329,22 @@ lse if ( +Array. isArray( @@ -2572,24 +2572,94 @@ key in m) %7B%0A + ...
d8182c2e45c264a08ef0e771fd5fb32552a151b7
Use function composition
src/input.js
src/input.js
import process from 'process'; import fs from 'fs'; import { promisify, props, resolve } from 'bluebird'; import { T, __, assoc, concat, cond, contains, curry, filter as filterWhere, has, keys, map, mapObjIndexed, merge, pathEq, reduce, toPairs, when }...
JavaScript
0.000002
@@ -4158,48 +4158,21 @@ s = -curry((fields, answers) =%3E answers +fields =%3E %0A - %7C map @@ -4292,16 +4292,15 @@ -%7C +& props -) ;%0A%0A/
bed401a5ee73e67cac261f0d11684d9b042c3d03
Handle labels that use the older Index attribute.
src/label.js
src/label.js
/*jslint browser: true, node: true */ /*global require, module */ "use strict"; /*** Imports ***/ var gifti = gifti || {}; /*** Static Pseudo-constants ***/ gifti.ATT_KEY = "Key"; gifti.ATT_RED = "Red"; gifti.ATT_GREEN = "Green"; gifti.ATT_BLUE = "Blue"; gifti.ATT_ALPHA = "Alpha"; /*** Constructor ***/ /** ...
JavaScript
0
@@ -283,16 +283,42 @@ Alpha%22;%0A +gifti.ATT_INDEX = %22Index%22; %0A%0A%0A/*** @@ -680,16 +680,47 @@ ATT_KEY%5D + %7C%7C attributes%5Bgifti.ATT_INDEX%5D ;%0A th
b5d25e6bbcb867f6dcc35312ff7cde5d1020e6ee
Remove debugging code
src/level.js
src/level.js
'use strict'; var fx = require('./fx'); var input = require('./input'); var monster = require('./monster'); var params = require('./params'); var props = require('./props'); var player = require('./player'); var shots = require('./shots'); // All other tiles in 1-64 are solid, but these kill you. var OUCH_TILES = [ /...
JavaScript
0.000739
@@ -3382,24 +3382,27 @@ os);%0A%09%7D%0A%7D;%0A%0A +/*%0A Level.protot @@ -3543,24 +3543,27 @@ e.debug);%0A%7D; +%0A*/ %0A%0ALevel.prot
069775110acc5b3290b1094ef0c8556406bb724f
Remove useless log
src/lexer.js
src/lexer.js
var Lexer = function () { var self = this; self.KEYWORDS = [ "def", "if", "end", "true", "false", "none", "not", "or", "and" ]; self.loc = {first_line: 0, first_column: 0, last_line: 0, last_column: 0}; self.tokenize = functi...
JavaScript
0.000002
@@ -1817,49 +1817,8 @@ %5B0%5D; -%0A console.log(identifier); %0A%0A
5422cf5db07e5262fd10bffbf1f1a32d1ca02235
fix typo in R.liftN
src/liftN.js
src/liftN.js
var _curry2 = require('./internal/_curry2'); var _reduce = require('./internal/_reduce'); var _slice = require('./internal/_slice'); var ap = require('./ap'); var curryN = require('./curryN'); var map = require('./map'); /** * "lifts" a function to be the specified arity, so that it may "map over" that * many lists...
JavaScript
0.000186
@@ -328,18 +328,17 @@ her Appl -ie +y s).%0A *%0A @@ -566,27 +566,24 @@ cable to app -lic able objects
994746a89a7e570c87ddd18eef04f4770696735c
remove protocol
src/links.js
src/links.js
var isURL = require('validator').isURL; var axios = require('axios'); var request = axios.create({ baseURL: 'https://cors-anywhere.herokuapp.com/' }); /** * Parses tokenized array into links * @func * @param {array} arr - a chat input string split on whitespace */ module.exports = function getLinks(arr) { var ...
JavaScript
0.000491
@@ -427,24 +427,180 @@ ion (url) %7B%0A + var protocol = url.indexOf('://');%0A if (protocol) %7B%0A var shortned = url.slice(protocol + 3)%0A return request.get(shortned);%0A %7D%0A return
4b87fca288233beacbaf77663f3adb02b277035c
use babel for .module.js build type
tools/rollup.module.js
tools/rollup.module.js
import { buildType } from "./rollup-util"; export default buildType({ postfix: ".module", babel: false, uglify: false, format: "es" });
JavaScript
0
@@ -92,20 +92,19 @@ %09babel: -fals +tru e,%0A%09ugli
ae8a3ddab018399722180bb194a7c26bd251bc2a
remove HACK code that is no longer needed.
src/model.js
src/model.js
// # Recline Backbone Models this.recline = this.recline || {}; this.recline.Model = this.recline.Model || {}; (function($, my) { // ## A Dataset model // // A model has the following (non-Backbone) attributes: // // * fields: (aka columns) is a FieldList listing all the fields on this // Dataset (this can be set e...
JavaScript
0
@@ -1490,244 +1490,8 @@ ');%0A - // HACK: query gets called on event changes and it appears that in those cases the type of event gets passed as first argument. The following handles those cases.%0A if (typeof(queryObj) != 'object') %7B%0A queryObj = null;%0A %7D%0A
e0e8ee0152c52f9af93586ee9d2fbd6f829720e0
Remove _owner check in Base.read() again.
src/paper.js
src/paper.js
/*** * * Paper.js * * A JavaScript Vector Graphics Library, based on Scriptographer.org and * designed to be largely API compatible. * http://paperjs.org/ * http://scriptographer.org/ * * Distributed under the MIT license. See LICENSE file for details. * * Copyright (c) 2011, Juerg Lehni & Jonathan Puckey *...
JavaScript
0
@@ -1339,276 +1339,12 @@ ;%0A%09%09 -// As a convention, do not return objects that are owned, e.g.%0A%09%09// LinkedPoint or SegmentPoint, although they are instances of Point,%0A%09%09// since they override properties with beans. Convert these to pure%0A%09%09// Points instead, further down.%0A%09%09if (obj && !obj....
f735cccae892d7606a6d9081c9ebf5652c82aa2a
Add force option for heroku
config/config.heroku.js
config/config.heroku.js
module.exports = { useSSL: true, forcedSSL: true, trustProxy: true, port: process.env.PORT, dbOptions: getHerokuDBOptions(), sessionSecret: process.env.SESSIONSECRET, auth: { allowRegistration: process.env.ALLOWREGISTRATION || false, googleAuth: { clientID: process.env.googleClientID, clientSecret: pro...
JavaScript
0.000003
@@ -879,16 +879,96 @@ YPTKEY,%0A +%09%09%09force: typeof process.env.FORCE !== %22undefined%22 ? process.env.FORCE : false,%0A %09%09%09admin
8705e6f70dad1d8ab85053e1861112ceab12c69e
Add basic drawPac function
pac_script.js
pac_script.js
var BOARD_HEIGHT = 288; var BOARD_WIDTH = 224; var VERT_TILES = BOARD_HEIGHT / 8; var HORIZ_TILES = BOARD_WIDTH / 8; gameBoard = new Array(VERT_TILES); for(var y = 0; y < VERT_TILES; y++) { gameBoard[y] = new Array(HORIZ_TILES); for(var x = 0; x < HORIZ_TILES; x++) { gameBoard[y][x] = ""; } } var canvas, co...
JavaScript
0.000001
@@ -1107,24 +1107,239 @@ );%0A %7D);%0A%7D%0A%0A +var drawPac = function(x, y) %7B%0A context.fillStyle = %22#FF0%22;%0A context.beginPath();%0A context.arc(x, y, 6, 0.25 * Math.PI, 1.75 * Math.PI, false);%0A context.lineTo(x, y);%0A context.closePath();%0A context.fill();%0A%7D%0A%0A var ready =
dba27b38c1637faebe03d3b4060f31ea90b8bc72
Update character
output.js
output.js
var fs = require('
JavaScript
0
@@ -11,8 +11,9 @@ equire(' +f
ccbe4ddf510280623e1147f52dd984b6b25e399e
set 'out' variables to null
compiler/getAssignable.js
compiler/getAssignable.js
var errors = require('./errors'); var execute = require('./execute'); module.exports = function getAssignable(expression, ctx) { var currentNode = expression; var isMap = false; var variableName, variableIndexExpression, variableIndex; var variable; while (!variableName) { if (currentNode...
JavaScript
0.001136
@@ -1226,16 +1226,30 @@ = false) + %7B%0A variabl @@ -1264,16 +1264,78 @@ me = 0;%0A + ctx.setVariable(variableName, null, 0);%0A %7D%0A
2f201fd1ef716d784b958d0ced0da0bd22a3067f
add steps
Algorithms/JS/arrays/flattenArray.js
Algorithms/JS/arrays/flattenArray.js
/** * Flatten a nested array using Helper Method of Recursion * * Input: Array of Integers and Arrays * Output: Array of Integers * * Example: flatten([1, [2, 3, [4]], 5, [[6]]]) => [1, 2, 3, 4, 5, 6] **/ function flatten(arr){ var result = []; function helper(currObj, res){ for( var i = 0; i<currOb...
JavaScript
0.000566
@@ -209,16 +209,453 @@ %5D%0A **/%0A%0A +%0A// creata variable result to return as our flattened array at the end%0A// create helper function that takes in:%0A // the current Obj we're in%0A // our result array to push our values%0A // our function loops through our current object%0A // if the current item in th...
e42d8f774f61bdd66c289de905d803c38b53b110
Exclude some package meta from POT files.
config/grunt/makepot.js
config/grunt/makepot.js
module.exports = { package: { options: { cwd: '<%= paths.tmp %>', exclude: [ 'includes/back-compat\.php' ], potHeaders: { 'language': 'en', 'plural-forms': 'nplurals=2; plural=(n != 1);', 'poedit': true, 'report-msgid-bugs-to': 'https://audiotheme.com/support/' }, type: 'wp-them...
JavaScript
0
@@ -296,16 +296,691 @@ '%0A%09%09%09%7D,%0A +%09%09%09processPot: function( pot ) %7B%0A%09%09%09%09var translation,%0A%09%09%09%09%09excluded_meta = %5B%0A%09%09%09%09%09%09'Theme Name of the plugin/theme',%0A%09%09%09%09%09%09'Theme URI of the plugin/theme',%0A%09%09%09%09%09%09'Author of the plugin/theme',%0A%09%09...
c4122400b4c0ca7acd6f6a38c9e0c33c344eb657
disable a server by prefixing a '-'
bin/bootstrap.js
bin/bootstrap.js
const fs = require('fs'); const program = require('commander'); const packageJson = require('../package.json'); // const BOOTSTRAP_TYPE_CLIENT = 0; const BOOTSTRAP_TYPE_SERVER = 1; const version = packageJson.version; const usage = '--host <host> --port <port> --key <key> [...]'; const options = [ ['-c, --config [...
JavaScript
0.000001
@@ -3101,16 +3101,17 @@ ervers: +( servers @@ -3127,16 +3127,55 @@ .servers +).filter((server) =%3E server%5B0%5D !== '-') %0A %7D);%0A
2784c1bb4163f7b4a58f217352736e9ed48f4205
Allow copying password for sites that use HTTP auth
src/popup.js
src/popup.js
/*global hw, hwRules */ angular.module('popup', ['clipboard', 'filters']) .directive('popupForm', function () { return { link: linkFn, scope: {}, templateUrl: 'popup-form.html' }; function linkFn(scope) { scope.state = { domain: '', password: '', ...
JavaScript
0
@@ -2707,16 +2707,45 @@ if ( +!chrome.runtime.lastError && results) @@ -2928,32 +2928,125 @@ %7D%0A + else %7B%0A scope.state.showInsert = false;%0A %7D%0A
00801ea8cdde9b021aaa8d3ff9a75a158fa1584d
Fix programmatic centering of the map when the `center` prop changes
components/Map/BaseMap.js
components/Map/BaseMap.js
import React, { Component, PropTypes } from 'react'; import cx from 'classnames'; import mapStyle from '!!file!./mapStyle.json'; import mapboxgl from '../../utils/mapboxgl/mapboxgl'; import lngLat from '../../utils/propTypeValidations/lngLat'; import noop from '../../utils/noop'; import { DEFAULT_CENTER, DEFAULT_MAX_...
JavaScript
0.000001
@@ -1916,16 +1916,24 @@ nter%5B1%5D) + %7B%0A this.ma @@ -1954,18 +1954,41 @@ xtCenter -); +, %7B user: false %7D);%0A %7D %0A if @@ -2032,16 +2032,33 @@ nextZoom +, %7B user: false %7D );%0A %7D%0A%0A
9ce7e71e60bc3ac3b8e1e53a45504e67312b7e05
Rearrange tests and achieve full coverage.
test/safe.js
test/safe.js
// @flow const test = require('tape') const safe = require('../lib/safe') test('safe', (t) => { t.plan(5) const types = safe( [ { name: 'a', type: 'number' }, { name: 'b', type: 'number' } ] ) const add = types( function (a /* : number */, b /* : number */) /* : number */ { retur...
JavaScript
0
@@ -103,11 +103,311 @@ lan( -5)%0A +6)%0A%0A // Case 0%0A const check = safe()%0A const divide = check()(%0A %5B%0A %7B name: 'a', type: 'number' %7D,%0A %7B name: 'b', type: 'number' %7D%0A %5D)(%0A function (a /* : number */, b /* : number */) /* : number */ %7B%0A return a / b%0A ...
0c7d2be4c13bbe55a6beface1da386ebfdfdb5d1
Fix linting issue with Posts
components/Posts/index.js
components/Posts/index.js
import React, { PropTypes } from 'react' import { Link } from 'react-router' import styles from './index.module.css' function Posts (props) { const posts = props.posts.map((post) => { const postRawDate = post.data.date const postDate = new Date(postRawDate).toDateString() return ( <li key={post.pa...
JavaScript
0
@@ -569,16 +569,18 @@ %3E%0A + %3C/Link%3E%0A
5812a2063dad0ff1842653125c37ab27da1aff7f
Update tools.js
am-dashboard/app/tools.js
am-dashboard/app/tools.js
Tools = function(self){ this.bobParse = function(raw){ var clients = [], data = {type: 'Clients'}; // exit on null entry if ( raw === null ) return; for (var cells = raw.replace(/Basic[\r\n\s\ta-z]*Partner ID[\t\s]+/i, '').split(/\t/), client = {}, cols = ['Account ID', 'Account Start Date', ...
JavaScript
0.000001
@@ -5668,16 +5668,24 @@ words = +function (client)
d408fe2906a2dc731bcb7bd09b5593fa67ecc673
Fix a typo in docs (#821)
docs/src/pages/examples/months-reverse.js
docs/src/pages/examples/months-reverse.js
import React from 'react'; import ExamplePage from '../../containers/ExamplePage'; import CodeSample from '../../ui/CodeSample'; export default () => ( <ExamplePage title="Reverse months navigation"> <p> Combined with <code>numberOfMonths</code>, <code>reversMonths</code> will display the closest mo...
JavaScript
0.002031
@@ -266,16 +266,17 @@ e%3Erevers +e Months%3C/
930fe9e2327de42c2d528161003e998deeafca4e
Add icons to tabbar
components/animalScene.js
components/animalScene.js
import React from 'react'; import {TabBarIOS} from 'react-native'; import AnimalNeighbourScene from '../components/animalNeighbourScene'; import animals from '../animals'; class AnimalScene extends React.Component { constructor(props) { super(props); this.state = { selectedTab: 'adultTab' } } ...
JavaScript
0
@@ -165,16 +165,53 @@ nimals'; +%0Aimport * as scenes from '../scenes'; %0A%0Aclass @@ -1560,16 +1560,564 @@ le=%22 -Sousedi%22 +QR k%C3%B3d%22%0A icon=%7Brequire('../images/icon/qr.png')%7D%0A selected=%7Bfalse%7D%0A onPress=%7B() =%3E %7B%0A this.props.navigator.replace(%7B%0...
a0c50d91459ac32293e106cd320d947b95570773
test case that demonstrates issue #5
test/spec.js
test/spec.js
var client = require('../index').createClient(); exports.setClientId = function (test) { client.setClientId({ client_id: 'testrunner' }, function (reply) { test.equal(reply.errmsg, undefined); test.done(); }); }; exports.getClientId = function (test) { client.getClientId(function (reply) {...
JavaScript
0.000001
@@ -1144,32 +1144,687 @@ ();%0A %7D);%0A%7D;%0A%0A +%0Aexports.putVclock = function (test) %7B%0A var options = %7B bucket: 'test', key: 'test-vclock', content: %7B value: '%7B%22test%22:%22data%22%7D', content_type: 'application/json' %7D, return_body: true %7D;%0A client.put(options, function (reply) %7B%0A...
c4dc37a3a8249810015ed41b201d6fe732da7caf
Delete whitespace
src/mist/io/static/js/app/controllers/machines.js
src/mist/io/static/js/app/controllers/machines.js
define('app/controllers/machines', [ 'app/models/machine', 'ember', 'jquery' ], /** * Machines controller * * @returns Class */ function(Machine) { return Ember.ArrayController.extend({ backend: null, content: null, init: function...
JavaScript
0.999997
@@ -5416,33 +5416,32 @@ ;%0A %7D%0A -%0A %7D);%0A
a9250f77f173d133180507803f12aa44e479d741
Format spec.js
test/spec.js
test/spec.js
var expect = require('chai').expect; var pinyinize = require('../index'); describe('pinyinize', function() { it('should convert tai2 wan1', function() { expect(pinyinize('tai2 wan1')).to.equal('tái wān'); }); it('should convert wo3 ai4 ni3', function() { expect(pinyinize('wo3 ai4 ni3')).to...
JavaScript
0.000003
@@ -103,18 +103,16 @@ ion() %7B%0A - it('sh @@ -145,36 +145,32 @@ unction() %7B%0A - - expect(pinyinize @@ -201,35 +201,31 @@ 't%C3%A1i w%C4%81n');%0A - %7D);%0A%0A - it('should @@ -252,36 +252,32 @@ ', function() %7B%0A - expect(pinyi @@ -317,33 +317,29 @@ %C3%A0i n%C7%90');%0A ...
9bd9b7e1126dabb62acba2a9173ba5cdc028688c
update tests for method rename
test/spec.js
test/spec.js
/* * Copyright (C) 2014 Scott Beck, all rights reserved * * Licensed under the MIT license * */ /* jshint undef: true, unused: true */ /* global describe:false, it: false, beforeEach: false, expect: false */ (function () { 'use strict'; var libPath = '../index.js'; describe("remix#exports", function () { ...
JavaScript
0
@@ -1013,34 +1013,34 @@ expect(this.re. -to +as String()).to.equ @@ -1193,34 +1193,34 @@ expect(this.re. -to +as String()).to.equ @@ -1389,18 +1389,18 @@ this.re. -to +as String()
062861167f0daac53d763e1119505e7a930bd05c
Fix tests
test/tdel.js
test/tdel.js
describe('tdel', function () { beforeEach(function () { return Promise.all([ redis.tinsert('tree', 'ROOT', '1'), redis.tinsert('tree', 'ROOT', '2'), redis.tinsert('tree', 'ROOT', '3'), redis.tinsert('tree', '2', '4'), redis.tinsert('tree', '4', '5'), redis.tinsert('tree', '3', ...
JavaScript
0.000003
@@ -1146,18 +1146,23 @@ keys('*' -, +).then( function
1b474888d901743668a97f2d5796f71df21d5cec
add test case
test/test.js
test/test.js
var fs = require('fs'), path = require('path'), ADODB = require('../index'), expect = require('expect.js'); var source = path.join(__dirname, 'node-adodb.mdb'), mdb = fs.readFileSync(path.join(__dirname, '../examples/node-adodb.mdb')); fs.writeFileSync(source, mdb); // Variable declaration var adodb = path.j...
JavaScript
0.000059
@@ -562,65 +562,106 @@ ript -);%0Aconsole.log(adodb);%0Aconsole.log(fs.existsSync(cscript) +, fs.existsSync(cscript) ? 'exists' : '');%0Aconsole.log(adodb, fs.existsSync(adodb) ? 'exists' : '' );%0A%0A
eeb7a4c22898b4a95941ff61b9c7c618ead52fd9
set headers and cors in routes
configuration/routes.js
configuration/routes.js
'use strict'; var controllersPath = '../app/controllers/'; var routes = []; var _ = require('underscore'); function loginRoutes(server) { var loginController = require(controllersPath + 'login-controller')(server); _.each(loginController.routes, function (route) { server.route(route); }); } func...
JavaScript
0
@@ -556,24 +556,155 @@ (server) %7B%0A + var cors = server.settings.connections.routes.cors;%0A var headers = %5B%5D.concat(cors.headers).concat(cors.additionalHeaders);%0A%0A // favic @@ -1427,11 +1427,29 @@ n', -'*' +cors.origin.join(' ') )%0A @@ -1506,47 +1506,26 @@ s', -'Content-Type, X-Requeste...
8d74ad3c8cd8e438b196beea9483429caa5628ed
Add missing Term index to ERIC thesaurus schema
src/node_modules/bn-schema-ericthesaurus/index.js
src/node_modules/bn-schema-ericthesaurus/index.js
module.exports = { prefix: 'eric', fields: { scopenote: { type: 'text', label: 'Scope note' }, preferred: { type: 'edge', unidirected: false, label: 'Preferred' }, synonym: { type: 'inverseedge', ...
JavaScript
0.001456
@@ -659,32 +659,166 @@ abel: 'Related'%0A + %7D,%0A term: %7B%0A type: 'text',%0A label: 'Term',%0A css: 'font-weight: bold; display: block;'%0A %7D%0A %7D,
12f5910cdd1c2b131aa0bb65d03e468183c273f2
add call application container from backbone.js
assets/js/app/index.js
assets/js/app/index.js
var App = Ember.Application.create({ LOG_TRANSITIONS: true, LOG_TRANSITIONS_INTERNAL: true //rootElement: '#ember-app' }); App.ApplicationController = Ember.Controller.extend({ isHamburgerMenuVisible: false, init: function () { console.log('call Application ctor'); }, toggleHamburge...
JavaScript
0.000001
@@ -1407,24 +1407,137 @@ %7D%0A %7D%0A%0A%7D); +%0AApp.Container = App.__container__;%0A//For call App.Container.lookup('controller:application').send('testAction'); %0A%0AApp.Hambur
7035c1228d40c8e8f1541cd22a7d0467905726bf
Add addElement and removeElement to update the internal list of responsive elements when you manually add/remove one to the DOM
responsive-elements.js
responsive-elements.js
// // Responsive Elements // Copyright (c) 2013 Kumail Hunaid // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to us...
JavaScript
0
@@ -1626,24 +1626,199 @@ ;%0A%09%09%7D);%0A%09%7D,%0A +%0A addElement: function(element) %7B%0A this.el = this.el.add(element);%0A %7D,%0A%0A removeElement: function(element) %7B%0A this.el = this.el.remove(element);%0A %7D,%0A%0A %09parseOption
92632f0b1b526d7e362ca084c64fda6e56f693a0
check for unexpected things while parsing ANC text file
parse-ancs.js
parse-ancs.js
var fs = require('fs'), path = require('path'), byline = require('byline'), csv = require('csv'), moment = require('moment'), inFile = process.argv[2], stream = byline(fs.createReadStream(inFile)), outFile = path.join('data', 'ancs.csv'), csvHandle = csv().to(outFile, { columns: ...
JavaScript
0
@@ -462,16 +462,31 @@ values, + date, weekday, i;%0A @@ -593,318 +593,926 @@ if ( -/%5ENov/.test(line)) %7B%0A values = line.trim().split(/%5Cs%7B2,%7D/);%0A record.election_date = moment(values%5B0%5D).format('YYYY-MM-DD');%0A for (i = 1; i %3C values.length; i++) %7B%0A record...
061f1c6e32267c783eadffd912d32549092af1c1
Remove console.log message
users/htdocs/components/30_Register.js
users/htdocs/components/30_Register.js
/* * Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute * Copyright [2016-2018] EMBL-European Bioinformatics Institute * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may...
JavaScript
0.000004
@@ -1072,51 +1072,8 @@ ) %7B%0A - console.log('User has consented');%0A
77b10c53ef8845067da802506a939665950e27e6
Update dependencies.
spec/deps.js
spec/deps.js
// This file was autogenerated by calcdeps.js goog.addDependency("../../src/closure.js", [], []); goog.addDependency("../../src/core/browserinfo.js", ["webfont.BrowserInfo"], []); goog.addDependency("../../src/core/cssclassname.js", ["webfont.CssClassName"], []); goog.addDependency("../../src/core/domhelper.js", ["webf...
JavaScript
0
@@ -932,44 +932,8 @@ ner%22 -,%22webfont.LastResortFontWatchRunner%22 %5D);%0A @@ -1290,152 +1290,8 @@ %5D);%0A -goog.addDependency(%22../../src/core/lastresortfontwatchrunner.js%22, %5B%22webfont.LastResortFontWatchRunner%22%5D, %5B%22webfont.Font%22,%22webfont.FontRuler%22%5D);%0A goog
d33ec1e4c19f0b0a6e7301ffb4e34969b1adb78f
remove extra newline
route/templates/e2e.js
route/templates/e2e.js
'use strict'; describe('<%= dashName %> route', function () { beforeEach(function () { browser.get('<%= route %>'); }); it('should have a basic content', function () { expect(element.all(by.css('div')).first().getText()).toBe('<%= controllerName %>'); }); });
JavaScript
0.000008
@@ -269,13 +269,12 @@ %0A %7D);%0A%0A%7D);%0A -%0A
eaba7719c4fb4f8857b0540379815691ff712066
Add the prefer-reflect rule as disabled
babel.js
babel.js
module.exports = { "extends": "./", "parser": "babel-eslint", "env": { "es6": true }, "rules": { // Override to warn about unnecessary Use Strict Directives "strict": [1, "never"], /** * ECMAScript 6 * These rules are only relevant to ES6 environments and are off by default. ...
JavaScript
0
@@ -1480,24 +1480,104 @@ pread%22: 2,%0A%0A + // suggest using Reflect methods where applicable%0A %22prefer-reflect%22: 0,%0A%0A // disal
4dab23e3d0fe05b83e778972683dfcf65e98e301
Update geolookup.js
import/geolookup.js
import/geolookup.js
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); /* Model to do a reverse geolookup using the yahoo api */ var https = require('https'); require('es6-promise').polyfill(); var makeRequest = function makeRequest(location) { var promise = new Promise(function (resolve, reject) { var ...
JavaScript
0.000001
@@ -453,47 +453,8 @@ = ' -AIzaSyD18a0JHPGgsGYN8CLjyZbdmpapr5jTVrA ';%0A
595c6e681c8f17af3696200335ab19abde30de5c
Enable no-implicit-coercion
rules/main.js
rules/main.js
'use strict' module.exports = { env: { // force use `window.` prefix browser: false }, rules: { /*++++++++++++++++++ + Possible Errors + ++++++++++++++++++*/ // Don't put comma in the last item of object/array, looks very weird 'comma-dangle': ['error', 'never'], // if requireSt...
JavaScript
0.002111
@@ -1173,24 +1173,118 @@ rn': 'off',%0A + // Explicitly convert the type, increase readability%0A 'no-implicit-coercion': 'error',%0A // Disab
4aaa877d8286b9058cf9e4a3c28c3d8ec4f80f8b
update min version
notify.min.js
notify.min.js
/*! Copyright (c) 2016 Rene Tanczos <gravmatt@gmail.com> - The MIT License (MIT) */ var notify=function(i,o){var n=function(){function i(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return i()+i()+"-"+i()+"-"+i()+"-"+i()+"-"+i()+i()+i()};if(!(!1 in window))if("default"===Notification.permissio...
JavaScript
0
@@ -371,33 +371,8 @@ (i,o -,onclick,onclose,onDenied )%7D);
a70e8681fc52a3f4df29fff6752c5572c6a6092c
Fix missing MIME boundary problem
batch.js
batch.js
'use strict'; const uuid = require('uuid'); const _ = require('lodash'); const url = require('url'); const qs = require('querystring'); const mime = require('mimelib'); const Odata = require('./odata'); const util = require('util'); const Expression = require('./expression'); var Batch = function(parent) { this.par...
JavaScript
0.000744
@@ -2511,18 +2511,40 @@ r msg = -'' +%60--$%7Bthis.boundary%5Cr%5Cn%7D%60 ;%0A var @@ -3959,38 +3959,8 @@ %7D%0A - if(this.ops.length %3E 0) %7B%0A ms @@ -3988,20 +3988,16 @@ ry%7D--%60;%0A - %7D%0A return
bed39f6691fbbdfed72e1889a58636cd5e376f1c
add a test for http://--- URL
test/test.js
test/test.js
'use strict'; var fs = require('fs'); var spawn = require('child_process').spawn; var http = require('http'); var path = require('path'); var noop = require('nop'); var rimraf = require('rimraf'); var takeout = require('../'); var test = require('tape'); var pkg = require('../package.json'); var fixtureDir = 'test/...
JavaScript
0.000005
@@ -370,9 +370,9 @@ an(1 -7 +8 );%0A%0A @@ -2665,24 +2665,204 @@ );%0A %7D);%0A%0A + takeout('http://n.ot.fo/un.d', function(err) %7B%0A t.equal(%0A err.code, 'ENOTFOUND',%0A 'should pass an error to the callback when the URL doesn%5C't exist.'%0A );%0A %7D);%0A%0A t.throws(%0A
31e3013c94e7626ba14eb3b879401f30aaff6348
remove extra code, cleanup
client/app/Navbar/Navbar.controller.js
client/app/Navbar/Navbar.controller.js
'use strict'; angular.module('hrr10MjbeApp') .controller('NavbarCtrl', function($rootScope, $scope, Auth) { $scope.message = 'Hello'; Auth.isLoggedIn(function(is) { $scope.loggedIn = is; Auth.getCurrentUser(); }) Auth.getCurrentUser(function(user) { $scope.name = user.name; }) ...
JavaScript
0.000001
@@ -108,288 +108,8 @@ ) %7B%0A - $scope.message = 'Hello';%0A Auth.isLoggedIn(function(is) %7B%0A $scope.loggedIn = is;%0A Auth.getCurrentUser();%0A %7D)%0A%0A Auth.getCurrentUser(function(user) %7B%0A $scope.name = user.name;%0A %7D)%0A%0A Auth.isTeacher(function(is) %7B%0A $scope...
af2c396e6a59d79ea17977c5cd91f65cadaa7561
fix query in example config
config/ooi_epe_science.js
config/ooi_epe_science.js
module.exports = { voc: { uri: 'http://mmisw.org/ont/ooi_epe/science', prefix: 'http://mmisw.org/ont/ooi_epe/science/' }, termList: { fields: [{ name: 'name' }, { name: 'definition' }, { name: 'title' }, { ...
JavaScript
0.000002
@@ -1118,31 +1118,28 @@ nition ? -reference ?unit +title ?image s%5Cn%22 +%0A @@ -1566,23 +1566,20 @@ on ? -reference ?unit +title ?image s wh
003ea8b6657135baaebbe51d16c8dc38e5bb83c8
Allow override of options group name
utils/listable/lib/listable-options.js
utils/listable/lib/listable-options.js
"use strict"; module.exports = listableOptions; function listableOptions(yargs) { return yargs.options({ json: { group: "Command Options:", describe: "Show information as a JSON array", type: "boolean", }, ndjson: { group: "Command Options:", describe: "Show information as ...
JavaScript
0.000001
@@ -77,12 +77,40 @@ args +, group = %22Command Options:%22 ) %7B%0A - re @@ -153,36 +153,16 @@ group -: %22Command Options:%22 ,%0A @@ -262,36 +262,16 @@ group -: %22Command Options:%22 ,%0A @@ -376,36 +376,16 @@ group -: %22Command Options:%22 ,%0A @@ -514,36 +514,16 @@ group ...
02e83950be6eff0c5fbceacd8c8568b4d98e95b8
Update CombatLogParser.js
src/Parser/Warrior/Arms/CombatLogParser.js
src/Parser/Warrior/Arms/CombatLogParser.js
import CoreCombatLogParser from 'Parser/Core/CombatLogParser'; import DamageDone from 'Parser/Core/Modules/DamageDone'; import Abilities from './Modules/Abilities'; import AlwaysBeCasting from './Modules/Features/AlwaysBeCasting'; import BattleCryDamage from './Modules/Core/BattleCryDamage'; import BattleCryGCD from '...
JavaScript
0
@@ -433,84 +433,8 @@ r';%0A -import ColossusSmashUptime from './Modules/BuffDebuff/ColossusSmashUptime';%0A impo
c863d23e515998f71bfaba8bb221f2d6d88d3019
use serif for font-family
russophile.js
russophile.js
var Hexo = require('hexo'); var hexo = new Hexo(process.cwd(), {}); /** * russophile tag * * Syntax: * {% russophile [style] %} * text string * {% endrussophile %} * * Acceptable styles: * sb - serif bold * sp - serif plain * rsb - red serif bold * ...
JavaScript
0.000004
@@ -521,28 +521,13 @@ ily: - %5C'Times New Roman%5C' +serif ; ';
ea1afc300b136736417bd7746c85f07696b7c897
test changes
nukeThread.js
nukeThread.js
'use strict'; /* global snoowrap */ var REDDIT_APP_ID = '_s9Icw2TEXpmaw'; var REDIRECT_URI = 'https://pkmnbumba.github.io/reddit-thread-unnuke/'; var USER_AGENT = 'reddit thread un-nuke by /u/bumbalicious || https://github.com/pkmnbumba/reddit-thread-unnuke'; var REQUIRED_SCOPES = ['modposts', 'read', 'identity']; var...
JavaScript
0.000001
@@ -6227,16 +6227,24 @@ eRemoved +, toNuke %7D));%0A%7D%0A%0A
08aa52803567b1d73095474f43b7dccf97971119
Update character-card.js
elements/character-card/character-card.js
elements/character-card/character-card.js
Polymer({ is: "character-card", properties: { character: Object, stats: { type: Object, notify: true } }, /* stats: { "Might":"", "Speed":"", "Knowledge":"", "Sanity":"", "MightIndex":"", "SpeedIndex":"", "KnowledgeIndex":"", "SanityIndex":"" },*/ fullscreen: function() { screenful...
JavaScript
0.000001
@@ -4087,15 +4087,13 @@ ,%0A%0A%09 -c rea -te d +y : fu
e13fab508ee957d5056606c993b0eb66e5126f59
Update Morfy Universe
themes/default/assets/js/universe.js
themes/default/assets/js/universe.js
"use strict"; window.requestAnimFrame = (function() { return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function( callback ) { window.setTimeout(callback, 1000 / 60 ); } })(); ...
JavaScript
0
@@ -1288,26 +1288,24 @@ .top = -10 0;%0A bound @@ -1322,14 +1322,8 @@ = W - - 100 ;%0A @@ -1347,14 +1347,8 @@ = H - - 200 ;%0A @@ -1367,18 +1367,16 @@ t = -10 0;%0A %7D;%0A
b8da798c2279db37e4e9813f8f2c2c0735880f66
remove scroll from body if sidepanel has scroll
src/SidePanel/SidePanelContents.js
src/SidePanel/SidePanelContents.js
import classNames from 'classnames'; import GeminiScrollbar from 'react-gemini-scrollbar'; /* eslint-disable no-unused-vars */ import React, {PropTypes} from 'react'; /* eslint-enable no-unused-vars */ import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import BindMixin from '../Mixin/BindMixin'; ...
JavaScript
0.000003
@@ -500,24 +500,225 @@ %5D;%0A %7D%0A%0A + componentWillReceiveProps(newProps) %7B%0A super.componentWillReceiveProps(...arguments);%0A%0A if (this.props.open !== newProps.open) %7B%0A document.body.classList.toggle('no-overflow');%0A %7D%0A %7D%0A%0A componentD
c9622b60f82c9b4f6b7e498655c44ea2c0ff21ee
fix get request
sync/itemrepository.js
sync/itemrepository.js
define([], function () { 'use strict'; // In the following line, you should include the prefixes of implementations you want to test. var indexedDB = self.indexedDB || self.mozIndexedDB || self.webkitIndexedDB || self.msIndexedDB; // DON'T use "var indexedDB = ..." if you're not in a function. // ...
JavaScript
0
@@ -4555,13 +4555,8 @@ sult -.name );%0A
1da7806f6279e1919c27bbf4a1e7a07be80461c3
tweak critter behavior
ch07/lifelikeSimulation.js
ch07/lifelikeSimulation.js
"use strict" const sim = require("./simulation") const World = sim.World const Wall = sim.Wall const View = sim.View const util = require("./util") const elementFromChar = util.elementFromChar const randomElement = util.randomElement const directionNames = util.directionNames const actionTypes = Object.create(null) a...
JavaScript
0.000001
@@ -2690,36 +2690,8 @@ ) %7B%0A -%09%09if(value == %22 %22) debugger%0A %09%09th @@ -2864,17 +2864,17 @@ ergy %3E 1 -0 +2 )%0A%09%09%09ret @@ -3088,10 +3088,10 @@ %3E= -6 5 +0 )%0A%09%09
61a1c6beda0ca75425424d6883c702c2504071f6
Fix Windows Script Host error
bin/js-class.js
bin/js-class.js
//#!/usr/bin/env node const cli = require("cli"); const uglify = require("uglify-es"); const readFile = require("../lib/read-file"); const generator = require("../lib/generator"); const classTranspiler = require("../"); const options = cli.parse({ source: ["s", "Source class file path", "file", false], outp...
JavaScript
0.000002
@@ -16,21 +16,19 @@ v node%0A%0A -const +var cli = r @@ -42,21 +42,19 @@ %22cli%22);%0A -const +var uglify @@ -78,21 +78,19 @@ -es%22);%0A%0A -const +var readFil @@ -122,21 +122,19 @@ file%22);%0A -const +var generat @@ -168,21 +168,19 @@ tor%22);%0A%0A -const +var classTr @@ -211,13 +211,11 @@ );%0A%0...
bb064e4cbb316568f6030315ea1c74ab37fdaa9f
remove unnecessary parenthesis
core/firebaseRestAPI.js
core/firebaseRestAPI.js
import 'whatwg-fetch' import camelize from 'camelize' import decamelizeKeysDeep from 'decamelize-keys-deep' import firebase from 'firebase' import { currentUser } from '../lib/session' import config from '../config' import R from 'ramda' const decamelize = decamelizeKeysDeep const LOCATIONS = 'locations' const ...
JavaScript
0.999996
@@ -4148,17 +4148,16 @@ .then( -( organiza @@ -4161,17 +4161,16 @@ izations -) =%3E ensu
676753643dcfb3a492991e465deec7ee0cbcc1ac
Remove users property
client/app/common/user/user.wrapper.js
client/app/common/user/user.wrapper.js
import base from '../base/service'; class UserService extends base { static properties () { return []; } constructor(UserCommunication) { 'ngInject'; super(); this.UserCom=UserCommunication; this.users=[]; } users(search) { return this.UserCom.users(search); } create(user) { ...
JavaScript
0.000004
@@ -213,27 +213,8 @@ on;%0A - this.users=%5B%5D;%0A %7D%0A
4816a70b786ac44d88b2a451974748238e3bfd5f
refactor quote
src/quote.js
src/quote.js
const { tags } = require('./parser') const record = (args) => tags.Record( args.map((arg) => tags.Arg(arg)) ) const quoteArgs = (args) => tags.Record(args.map(({ type, key, value }) => key ? ({ type, key, value: quote(value) }) : ({ type, value: quote(value) }) )) function quote (token) {...
JavaScript
0.000032
@@ -29,16 +29,52 @@ parser') +%0Aconst %7B match %7D = require('./util') %0A%0Aconst @@ -145,16 +145,260 @@ rg))%0A)%0A%0A +const tagged = (token, ...body) =%3E%0A record(%5Btags.String(token.type)%5D.concat(body))%0A%0A// when quoting, do not quote arg tags%0A// %5B#Record %5B%5B#Arg %5B#Ident #foo%5D%5D %5B#Na...
26e68da30196cde64b3d540ac16a1a12b6a43594
change to use attractionname
src/api/attraction/attraction.controller.js
src/api/attraction/attraction.controller.js
import { Types } from 'mongoose'; import Promise from 'bluebird'; import Attraction from './attraction.model'; // return all attractions export function list(req, res, next) { Attraction.find() .then((attractions) => { res.json(attractions); }) .catch(next); } // return the list of currently used ...
JavaScript
0.000001
@@ -2634,11 +2634,13 @@ %7B -_id +title : ra @@ -2654,18 +2654,20 @@ traction -Id +name %7D%0A )
1a402e5dbc20c26d2efc538f9b428f4061be9adc
fix postMessage call
modules/schools/stolaf/sis-parser/import-student/lib.js
modules/schools/stolaf/sis-parser/import-student/lib.js
import Bluebird from 'bluebird' import {parseHtml} from '../parse-html' import forOwn from 'lodash/forOwn' import forEach from 'lodash/forEach' import {v4 as uuid} from 'uuid' export class ExtensionNotLoadedError extends Error {} export class ExtensionTooOldError extends Error {} export function fetchHtml(url, fetchA...
JavaScript
0.000004
@@ -1113,16 +1113,21 @@ rgs,%0A%09%09%7D +, '*' )%0A%09%7D)%0A%7D%0A
815d44958f37e89437a15af26056d1917ec9964d
Update debug to login using new auth method
app/assets/javascripts/app/shared/utils/utils.debug.directive.js
app/assets/javascripts/app/shared/utils/utils.debug.directive.js
(function() { 'use strict'; angular .module('app.core') .directive('debug', debug); /* @ngInject */ function debug () { // Usage: // // Creates: // var directive = { bindToController: true, controller: DebugController, controllerAs: 'vm', templateUrl: 'share...
JavaScript
0
@@ -1358,16 +1358,36 @@ RS%5B0%5D.id +, JURORS%5B0%5D.postcode );%0A
802d58f36157b07b3ccef11e46dbbc8b27a5292e
Fix for iPad Pro in context of non-standard viewport (NGM old viewport solution) (patch)
src/browser-ui-state/device-detectors/device-orientation-detector.js
src/browser-ui-state/device-detectors/device-orientation-detector.js
import KeyboardNoResizeDetector from './keyboard-no-resize-detector' import DeviceDetector from './device-detector' import UserAgentDetector, {UserAgents} from './user-agent-detector' export const Orientation = { LANDSCAPE: 'LANDSCAPE', PORTRAIT: 'PORTRAIT' } const splitModeThreshold = 200 export default cl...
JavaScript
0
@@ -295,10 +295,10 @@ d = -20 +35 0%0A%0Ae
6a53282ee8f86109be81fdf31096b22fde274786
Add NewIdeaDialog state unit tests
desktop/src/FAB/__tests__/NewIdeaDialog.spec.js
desktop/src/FAB/__tests__/NewIdeaDialog.spec.js
/* eslint-env mocha, jest */ import getDefault from '../../shared/testUtils'; import NewIdeaDialog from '../NewIdeaDialog'; const defaultProps = { open: false, onRequestClose() {}, onRequestAdd() {}, }; const getActualDialog = getDefault(NewIdeaDialog, defaultProps); it('should render', () => { getActualDial...
JavaScript
0
@@ -933,16 +933,614 @@ questAdd();%0A%7D);%0A +%0Ait('should set FlatButton disabled based on state', () =%3E %7B%0A const wrapper = getActualDialog();%0A wrapper.find('TextField').props().onChange(%7B target: %7B value: 'a cool idea' %7D %7D);%0A expect(wrapper.find('Dialog').prop('actions')%5B0%5D.props.disabled)...
d1abcfb0c5a38c7d007bd95c929adbe73363b828
Add a warning in the this.autocomplete
src/common/field/mixin/built-in-components.js
src/common/field/mixin/built-in-components.js
// Dependencies import React, {PropTypes} from 'react'; import find from 'lodash/collection/find'; import result from 'lodash/object/result'; import assign from 'object-assign'; // Components import AutocompleteSelectComponent from '../../../components/input/autocomplete-select/field'; import {component as Autocomple...
JavaScript
0.0002
@@ -286,76 +286,8 @@ d';%0A -import %7Bcomponent as Autocomplete%7D from '../../autocomplete/field';%0A impo @@ -508,16 +508,143 @@ /label'; +%0Aconst Autocomplete = props =%3E %3Cdiv%3EThis component is deprecated, please use %3Cpre%3Ethis.autocompleteSelect%3C/pre%3E instead.%3C/div%3E; %0A%0A// Mix
fd4675eccb54f580356c9b72750d0f4630502159
Use `assert` in `t/basics/backward.t.js`.
t/basics/backward.t.js
t/basics/backward.t.js
#!/usr/bin/env node require('./proof')(5, function (Strata, tmp, serialize, equal, ok, step) { var fs = require ('fs'), strata, right step(function () { serialize(__dirname + '/fixtures/merge.before.json', tmp, step()) }, function () { strata = new Strata({ directory: tmp, leafSize: 3, bran...
JavaScript
0
@@ -74,17 +74,14 @@ ze, -equal, ok +assert , st @@ -458,18 +458,22 @@ -ok +assert (cursor. @@ -622,29 +622,30 @@ -equal +assert (got, 'a', ' @@ -800,21 +800,22 @@ -equal +assert (cursor. @@ -863,10 +863,14 @@ -ok +assert (!cu @@ -1000,13 +1000,14 @@ -equal +assert (...
dbb94526c9f40bd1d4b099c61240e055a39ef950
Add ingredients table filler
includes/js/main.js
includes/js/main.js
var mode = 0; //primary var primary = 0, secondary = 0, tertiary = 0; function mode_text() { var modes = ["primary", "secondary", "tertiary"]; return modes[mode]; } function update_selected(name) { if(mode == 0) { $("#primary").text(name); $("#secondary").text("--"); $("#tertiary").text("--"); } else if(mod...
JavaScript
0.000722
@@ -603,32 +603,519 @@ ary = id;%0A%09%7D%0A%7D%0A%0A +function fill_ingredients_table(data) %7B%0A%09var table = $(%22#calc_ingredients%22);%0A%09var header = table.find(%22tr:eq(0)%22);%0A%09var total = 0;%0A%09table.empty();%0A%09table.append(header);%0A%09if(data.length %3E 1) %7B%0A%09%09for(var i = 0; i %3C data...
1a563965e6a7be9e29a523bcbcab3f8bec93ed61
Fix sync test
test/test.js
test/test.js
'use strict'; require('mocha'); var fs = require('fs'); var path = require('path'); var assert = require('assert'); var rimraf = require('rimraf'); var copy = require('./support/copy'); var deleteEmpty = require('..'); var tests = path.join.bind(path, __dirname); var fixtures = path.join.bind(path, tests('fixtures'))...
JavaScript
0.000032
@@ -1739,32 +1739,34 @@ .sync('test/temp +/b ');%0A assert
6fff109cdcf30cacb5872055a399faf17b60fa26
include rootURL in tracking url
ember-google-analytics.js
ember-google-analytics.js
Ember.GoogleAnalyticsTrackingMixin = Ember.Mixin.create({ pageHasGa: function() { return window.ga && typeof window.ga === "function"; }, logTrackingEnabled: function() { return !!window.ENV && !!window.ENV.LOG_EVENT_TRACKING; }, logTracking: function() { Ember.Logger.info('Tracking Google Analy...
JavaScript
0.000001
@@ -1177,16 +1177,46 @@ ageView( +router.rootURL.slice(0, -1) + this.get