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
6d71eaf6e8de38ec96eb658cef58935e61010f61
add stringify method to avoid having 'undefined' stuff in html
jquery.template.js
jquery.template.js
/** * jQuery template plugin using EJS syntax * * @copyright johnresig for most the compile code implementatio * @see http://ejohn.org/blog/javascript-micro-templating/ */ ;(function ($, window, document) { 'use strict'; // undefined is used here as the undefined global // variable in ECMAScript 3 an...
JavaScript
0.000007
@@ -903,16 +903,442 @@ %7D;%0A %0A +%0A function stringify(obj) %7B%0A if (typeof obj == %22string%22) %7B%0A return obj;%0A %7D else if (obj === null %7C%7C obj === false %7C%7C obj === NaN %7C%7C obj === undefined) %7B // ''%0A return '';%0A %7D else if ((obj+%22%22)....
8dd6d6dc93d9d38f83534d168cf70c1433edc2fd
improve computation of cap line position
js/SubSupText.js
js/SubSupText.js
// Copyright 2002-2014, University of Colorado Boulder /** * Renders text that contains subscripts and superscripts. * This was created to render chemical formulas (e.g. 'H<sub>3</sub>O<sup>+</sup>') but will undoubtedly have other uses. * Text must be provided in HTML format, and may contain only plaintext, <sub> ...
JavaScript
0.000326
@@ -1716,17 +1716,18 @@ Offset: -5 +0, // offs @@ -1770,65 +1770,119 @@ line -, default is non-zero because of Text height inaccuracies +%0A capHeightScale: 0.75 // fudge factor for computing cap height, compensates for inaccuracy of Text.height %0A @@ -2197,16 +2197,41 @@ Offset = + options.capHeightSca...
dad8510f6871e78eddfc7a43e444703599b88ad0
Improve splitting around argsString
src/modules/filters/CommandExecutorFilter.js
src/modules/filters/CommandExecutorFilter.js
import { dependencies as Inject, singleton as Singleton, container as ApplicationIocContainer } from "needlepoint"; import FilterModule from "../FilterModule"; import Configuration from "../../core/config/Configuration"; import ChatApi from "../../core/api/ChatApi"; import glob from "glob"; import CommandModule from "....
JavaScript
0.000002
@@ -2942,19 +2942,21 @@ y.split( -%22 %22 +/%5Cs+/ )%5B0%5D;%0A%0A
464c81982cf43dc74d91834383f1fa50712b4829
Fix typo
src/mw-utils/services/mw_url_storage_test.js
src/mw-utils/services/mw_url_storage_test.js
'use strict'; describe('MwUrlStorageTest', function () { var queryParams = {}, currentUrl = '', $rootScope, $q, subject, routeSpy, locationSpy; beforeEach(module('mwUI.Utils')); beforeEach(module(function ($provide) { locationSpy = { url: function () { return currentUr...
JavaScript
0.999999
@@ -2567,9 +2567,8 @@ VANT -2 ', %7B
769f69a05366f37150e5b94240eb60586f162f19
ADD collection description to the graduation Requirement database
imports/api/database-controller/graduation-requirement/graduationRequirement.js
imports/api/database-controller/graduation-requirement/graduationRequirement.js
import { mongo } from 'meteor/mongo'; import { SimpleSchema } from 'meteor/aldeed:simple-schema'; class GraduationRequirementCollection extends Mongo.Collection {} const GraduationRequirements = new GraduationRequirementCollection('gradiationRequirement'); const gradRequirementSchema = { requirementName: { typ...
JavaScript
0
@@ -92,16 +92,328 @@ hema';%0A%0A +/// This Component handles the initialization of the graduation requirement collection%0A/// requirementModule should be in he following format :%0A/// module code: boolean true/false%0A/// e.g : CS1231: false%0A/// the boolean is to indicate in the logic section if the following mod...
cee1a270667f85ed5323ad2328a12598e555dfed
Fix ValidatorUtil isEmail test
src/js/utils/__tests__/ValidatorUtil-test.js
src/js/utils/__tests__/ValidatorUtil-test.js
jest.dontMock('../ValidatorUtil'); describe('ValidatorUtil', function () { var ValidatorUtil = require('../ValidatorUtil'); describe('#isEmail', function () { // RFC822 email address validator // http://sphinx.mythic-beasts.com/~pdw/cgi-bin/emailvalidate?address= it('should have at least an username...
JavaScript
0.000003
@@ -782,16 +782,17 @@ ('%22Joe.%5C +%5C Blow%22@ex
92f5f99ea71f3f9ea7ace3335ba50eee476125a7
Update SearchResultsTypeFilter to use es6 class.
jujugui/static/gui/src/app/components/search-results/type-filter/type-filter.js
jujugui/static/gui/src/app/components/search-results/type-filter/type-filter.js
/* This file is part of the Juju GUI, which lets users view and manage Juju environments within a graphical interface (https://launchpad.net/juju-gui). Copyright (C) 2012-2013 Canonical Ltd. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License...
JavaScript
0
@@ -806,12 +806,12 @@ ;%0A%0Ac -onst +lass Sea @@ -835,141 +835,33 @@ ter -= React.createClass(%7B%0A%0A propTypes: %7B%0A changeState: React.PropTypes.func.isRequired,%0A currentType: React.PropTypes.string%0A %7D,%0A +extends React.Component %7B %0A / @@ -1077,26 +1077,16 @@ eClasses -: function (sel...
7311c32bc3d77b35aa1ae54a068e6b0c34fdbecf
Simplify mix require
webpack.mix.js
webpack.mix.js
const { mix } = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel a...
JavaScript
0.00001
@@ -2,16 +2,12 @@ onst - %7B mix - %7D = r
8290fe246cb2557e8958cdcde2564fbeef1f52c7
Fix switcher behavior on links with another domain
js/all/switcher.js
js/all/switcher.js
/** * Switcher.js allows native-like page switching with ajax. * * Server identifies Switcher.js requests by "X-Requested-With: SwitchPage" HTTP header. * When this header is detected, you can return only updated elements. Usually there is no point * to track which elements was updated, but you can return very sim...
JavaScript
0
@@ -4255,32 +4255,237 @@ eturn;%0A %7D +%0A %0A var host = window.location.protocol + '//' + window.location.host + '/';%0A if (host !== href.substring(0, host.length) && href.indexOf('://') !== -1) %7B%0A return;%0A %7D %0A%0A event.
c5e1537535bd8104fa6e862a9048ef0ea8fc4ff5
trim whitespace
js/alphabetizer.js
js/alphabetizer.js
//basis of alphabetization code from //http://stackoverflow.com/a/25431980 //http://stackoverflow.com/a/9645447 // still need to add: //clearing all items //more things //string logic ///tolowercase ///check for returns var alphabetizeOn = true; var instantEntry = true; var deleteOnClick = false; var multiEntry = f...
JavaScript
0.000091
@@ -2853,32 +2853,195 @@ -items.push(item +var itemTrimmed = item.trim(); // trim leading and following white space%0A //var itemsSplit = itemTrimmed.split(/%5Cr%5Cn%7C%5Cr%7C%5Cn/g ); +%0A + items.push(itemTrimmed);
47ff4ef345faf3fcf2dc2ab2c57f460df3719b96
Add reflection to solo challenge
week-7/game.js
week-7/game.js
// Design Basic Game Solo Challenge // This is a solo challenge // Your mission description: // Overall mission: Create madlibs game! // Goals: Prompt user for input for various nouns, adjectives, and names. Set up alert that shows small bits of storyline with user input inserted. // Characters: N/A // Objects: Story...
JavaScript
0
@@ -207,80 +207,76 @@ es. -Set up alert that shows small bits of +Insert selected keywords into story +- line - with user input inserted +, and print completed script .%0A// @@ -289,17 +289,16 @@ cters: N -/ A%0A// Obj @@ -302,16 +302,29 @@ Objects: + Field boxes, Story%0A/ @@ -363,18 +363,14 @@ ut, -alert...
a81207c01c8ea1de6e9073e8561b435495c559ae
Add additional queue route test
na-backend/test/routes/queue-test.js
na-backend/test/routes/queue-test.js
import chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; import sinon from 'sinon' import {addToQueue, getQueue} from '../../js/routes/queue'; chai.use(chaiAsPromised); const expect = chai.expect; describe('Queue route', function() { describe('addToQueue', function() { it('should have corr...
JavaScript
0
@@ -3207,29 +3207,991 @@ %7D);%0A %7D); +%0A%0A it('should generate a handler that returns an empty array when no queued songs', function() %7B%0A const allQueue = %5B%5D;%0A%0A const query = sinon.stub();%0A const db = %7B%0A query: query%0A %7...
297f3aceaf57eab5948d5711afe1b151463c43ac
address version comment from @nfriedly
natural-language-understanding/v1.js
natural-language-understanding/v1.js
/** * Copyright 2015 IBM Corp. 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. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
JavaScript
0
@@ -1046,24 +1046,68 @@ ed, use +NaturalLanguageUnderstandingV1.VERSION_DATE_ 2016 --01- +_01_ 23');%0A
95c3e500a8985f6285fba3472620ee1a452282b5
Update cmdprocess.js
js/cmdprocess.js
js/cmdprocess.js
var e1entry = 1 var area1 = 'GlowBear Indevelopment Edition <br> A simple JavaScript based web terminal that supports commands and stuff <br> Use help command for command listing' var ynh = 'GlowBear Help <br> Commands: <br> write {insert string message here} (Prints the message to the console) <br/> rep...
JavaScript
0.000001
@@ -307,17 +307,16 @@ ole) %3Cbr -/ %3E repo ( @@ -1192,38 +1192,8 @@ te;%0A - %09%0A %09%0A
1179c3f164d95d72ba7f12e135ca52f654551252
fix up project reducer for active
src/main/client/manager/reducers/projects.js
src/main/client/manager/reducers/projects.js
import update from 'react-addons-update' const projects = (state = { isFetching: false, all: null }, action) => { let projects, sources, projectIndex, sourceIndex, versionIndex, activeIndex switch (action.type) { case 'CREATE_PROJECT': projects = [{ isCreating: true, name: '' },...
JavaScript
0
@@ -90,16 +90,32 @@ ,%0A all: + null,%0A active: null%0A%7D, @@ -200,21 +200,43 @@ , active -Index +Project, activeIndex, feeds %0A switc @@ -2212,170 +2212,402 @@ -return update(state, %7B all: %7B $set: projects %7D%7D)%0A%0A case 'RECEIVE_FEEDSOURCES':%0A activeIndex = +activeProject = action.p...
961c5b429f31bd04c6e28e2c1849b2490f33e390
Add animation key.
js/controller.js
js/controller.js
function Controller(display, canvas) { this.display = display; this.canvas = canvas; var _this = this; canvas.addEventListener('mousemove', function(event) { _this.motion(P(event.pageX, event.pageY)); }); canvas.addEventListener('mousedown', function(event) { _this.down = true; ...
JavaScript
0
@@ -834,24 +834,124 @@ %7D, false);%0A + window.addEventListener('keypress', function(event) %7B%0A _this.press(event.which);%0A %7D);%0A this.dow @@ -3589,12 +3589,315 @@ = false;%0A%7D;%0A +%0AController.prototype.toggleAnimate = function() %7B%0A if (this.animating) %7B%0A this.stopAni...
582cfcd57933cf371e70d1c00152bf0612885f9e
Make commits larger on remote
js/explaingit.js
js/explaingit.js
define(['historyview', 'controlbox', 'd3'], function(HistoryView, ControlBox, d3) { var prefix = 'ExplainGit', openSandBoxes = [], open, reset, explainGit; open = function(_args) { var args = Object.create(_args), name = prefix + args.name, containerId = name + '-Container', c...
JavaScript
0.000003
@@ -811,10 +811,25 @@ us: -15 +args.commitRadius ,%0A
6e4d288b017138d901e982e75638b22e9fc5eeb0
Update documentation, see https://github.com/phetsims/chipper/issues/1000
js/grunt/lint.js
js/grunt/lint.js
// Copyright 2017-2020, University of Colorado Boulder /** * Runs the lint rules on the specified files. * * @author Sam Reid (PhET Interactive Simulations) */ 'use strict'; // modules const _ = require( 'lodash' ); // eslint-disable-line require-statement-match const { ESLint } = require( 'eslint' ); // eslint-...
JavaScript
0
@@ -493,15 +493,11 @@ ode -and lin +tha t sh @@ -505,21 +505,14 @@ uld -not be attemp +be lin ted%0A
a80d3daac7c6daec04daf0d5d6fe8e5491ebbb55
remove _self vars
js/homeButton.js
js/homeButton.js
define([ "dojo/_base/declare", "dijit/_WidgetBase", "dijit/_OnDijitClickMixin", "dijit/_TemplatedMixin", "dojo/on", // load template "dojo/text!./templates/homeButton.html", "dojo/i18n!./nls/homeButton", "dojo/dom", "dojo/dom-class", "dojo/dom-style" ], function ( declare...
JavaScript
0.006034
@@ -24,24 +24,47 @@ e/declare%22,%0A + %22dojo/_base/lang%22,%0A %22dijit/_ @@ -338,16 +338,26 @@ eclare,%0A + lang,%0A _Wid @@ -1571,38 +1571,8 @@ ) %7B%0A - var _self = this;%0A @@ -1615,21 +1615,20 @@ if (! -_self +this .map) %7B%0A @@ -1643,21 +1643,20 @@ -_self +t...
9535f4616589006c05d4145e8db21f7c3bda04c6
Update qalet_plugin.js
js/qalet_plugin.js
js/qalet_plugin.js
var _CALLBACK_ = function() { $(document).ready( function() { function parse(v) { var t = v.replace(/(“|”)/ig, '"'); return JSON.parse(t); } var v = $('.qaletplugin'), r={}, f=[]; for (var i = 0; i < v.length; i++) { var data = $(v[i]).html(); if (!data) data = $(v[i]).attr('data'); ...
JavaScript
0.000001
@@ -563,24 +563,78 @@ gth; i++) %7B%0A +%09%09%09%09if (typeof _QALET_%5Bf%5Bi%5D.module%5D == 'function') %7B%0A%09 %09%09%09%09_QALET_%5B @@ -653,16 +653,17 @@ (f%5Bi%5D);%0A +%09 %09%09%09%09$(v%5B @@ -682,16 +682,27 @@ %22slow%22); +%09%09%09%09%09%0A%09%09%09%09%7D %0A%09%09%09%7D%0A%0A%09
cc5d1b033e7e0c348f3346e172791421a57c49f9
fix AMD dependency
src/sap.m/src/sap/m/MultiComboBoxRenderer.js
src/sap.m/src/sap/m/MultiComboBoxRenderer.js
/*! * ${copyright} */ sap.ui.define(['jquery.sap.global', './InputBaseRenderer', 'sap/ui/core/Renderer', 'sap/ui/core/ValueStateSupport'], function(jQuery, InputBaseRenderer, Renderer, ValueStateSupport) { "use strict"; /** * MultiComboBox renderer. * @namespace */ var MultiComboBoxRenderer = Renderer.ext...
JavaScript
0.000001
@@ -56,25 +56,24 @@ al', './ -InputBase +ComboBox Renderer @@ -151,25 +151,24 @@ jQuery, -InputBase +ComboBox Renderer @@ -216,17 +216,16 @@ rict%22;%0A%0A -%0A %09/**%0A%09 * @@ -343,18 +343,17 @@ derer);%0A -%09 %0A + %09/**%0A%09 * @@ -509,34 +509,33 @@ MultiComboBox%22;%0A -%09 %0A + %09/**%0A%09 * CSS...
c1519fc20add637b1892806f8bfd30874ab361ee
Fix incorrectly setting tray images
src/scripts/browser/managers/tray-manager.js
src/scripts/browser/managers/tray-manager.js
import EventEmitter from 'events'; import {Menu, Tray} from 'electron'; import filePaths from 'common/utils/file-paths'; import platform from 'common/utils/platform'; import template from 'browser/menus/tray'; import prefs from 'browser/utils/prefs'; class TrayManager extends EventEmitter { constructor (mainWindow...
JavaScript
0.000001
@@ -46,16 +46,29 @@ nu, Tray +, nativeImage %7D from ' @@ -78,16 +78,16 @@ ctron';%0A - %0Aimport @@ -699,37 +699,34 @@ %7B%0A -this.tray = new Tray( +const imagePath = filePath @@ -764,25 +764,24 @@ te.png') -) ;%0A this.tra @@ -776,22 +776,75 @@ -this.tray.setP +const image = nativeImage....
2c20b87bd308de35a0b5f198d5f2f93785262943
Load alternate language links dynamically
js/navigation.js
js/navigation.js
jQuery(document).ready(function() { var siteUrl = 'http://' + (document.location.hostname || document.location.host); // Catch all internally-focused links and push a new state. $(document).delegate('a[href^="/"],a[href^="' + siteUrl + '"]', "click", function(e) { e.preventDefault(); History.pushState({}, "", t...
JavaScript
0
@@ -787,32 +787,455 @@ .*?)%5C%22%3E/)%5B1%5D%7D);%0A +%09%09%09// Update alternate language links (remove and add because the number of links may be different)%0A%09%09%09$('link%5Brel=%22alternate%22%5D%5Bhreflang%5D').remove();%0A%09%09%09var alternateLanguages = data.match(/(%3Clink rel=%5C%22alternate%5C%22 href=...
7e5f0dec650bac1f51aa354ef53989f1c405b533
Fix styling on empty repository page
wide-github.js
wide-github.js
// ==UserScript== // @name Wide Github // @namespace https://github.com/xthexder/wide-github // @include *github.com* // @version 1.0.2 // @grant none // ==/UserScript== if (document.getElementById('js-repo-pjax-container')) { var s = document.createElement('style'); s.type = "text/css"; s...
JavaScript
0.000001
@@ -1203,32 +1203,123 @@ t;%22 +%0A %22%7D%22 +%0A + %22.repository-content .empty-repo .rule %7B%22 +%0A %22clear:none !important;%22 +%0A %22%7D%22 +%0A %22.repository
9b260305c6a5cabc99a1126ada68c3559bfa6310
Remove now duplicated `@homepage` because OUJS is normalizing on `@homepageURL`
wide-github.js
wide-github.js
(function () { "use strict"; // ==UserScript== // @name Wide Github // @namespace https://github.com/xthexder/wide-github // @description This plugin changes all github repository pages to be full width and dynamically sized. // @author xthexder // @copyright 2013+, xthexder (https://github.com/xthex...
JavaScript
0
@@ -618,64 +618,8 @@ png%0A -// @homepage https://github.com/xthexder/wide-github%0A // @
f7ce996341fd9489c238ab60080bf5646e786b64
Set calibration settings by simulating manually inputting values on webpage
js/photonic3d.js
js/photonic3d.js
// Photonic3D Modifications and Features to SLAcer // Utils function findPythagoreanC(a, b) { return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)); } function setPrinterCallibrationSettings(printer) { // console.log(printer); var slicingProfile = printer.configuration.slicingProfile; var monitorDriverConfig = printe...
JavaScript
0
@@ -157,33 +157,32 @@ on setPrinterCal -l ibrationSettings @@ -197,34 +197,8 @@ ) %7B%0A -%09// console.log(printer);%0A %09var @@ -485,16 +485,19 @@ ) / 2;%0A%09 +// if (Math @@ -518,17 +518,16 @@ X - dots -r PermmY) @@ -537,16 +537,19 @@ 0.1) %7B%0A%09 +// %09return @@ -555,16 +555,19 @@ true;%0A%09 +...
57ea2ba5f5b557b0d7922d27b085719c929afa7e
Change setInterval to setTimeout for less state
src/main/resources/static/disapprove-list.js
src/main/resources/static/disapprove-list.js
require(['model/page-state', 'util/navbuilder', 'jquery'], function(state, nav, $) { var intervalNumber = 0; var baseUrl = undefined; var repoId = undefined; var prRestBaseUrl = undefined; /* Extract query information from the page's URL */ function getUrlParam (name) { var results = new RegExp...
JavaScript
0
@@ -83,34 +83,8 @@ %7B%0A%0A - var intervalNumber = 0;%0A va @@ -2451,49 +2451,104 @@ -stopDisapprovalTask();%0A checkMorePrs +checkMorePrs();%0A %7D else %7B%0A // Reschedule self to run again%0A scheduleDisapprovalTask ();%0A @@ -2778,32 +2778,29 @@ ) %7B%0A -schedule +doNew D...
558d1851209324185210b64a3a0732b64de9f99c
Fix CommandExecutorFilter not splitting all whitespace
src/modules/filters/CommandExecutorFilter.js
src/modules/filters/CommandExecutorFilter.js
import { dependencies as Inject, singleton as Singleton, container as ApplicationIocContainer } from "needlepoint"; import FilterModule from "../FilterModule"; import Configuration from "../../core/config/Configuration"; import ChatApi from "../../core/api/ChatApi"; import glob from "glob"; import CommandModule from "....
JavaScript
0.007603
@@ -2745,35 +2745,37 @@ msg.body.split( -%22 %22 +/%5Cs+/ )%5B0%5D;%0A%0A r
80d5fe8ad9bd551d5aa8095479eedb37fe79bf98
Remove favourites on tearout
src/sidebars/favourites/tearout-directive.js
src/sidebars/favourites/tearout-directive.js
(function(window) { 'use strict'; angular.module('openfin.tearout') .directive('tearable', ['geometryService', 'hoverService', 'currentWindowService', 'configService', (geometryService, hoverService, currentWindowService, configService) => { return { rest...
JavaScript
0
@@ -5254,32 +5254,103 @@ e(scope.stock);%0A + store.remove(scope.stock);%0A
9cbf336dfe18cf8e4dc60810e3042287355fbe68
Use relative paths for test resources and add tests for v1.0.0
src/__tests__/civ5save.test.js
src/__tests__/civ5save.test.js
import Civ5Save from "../civ5save"; // TODO: Replace this with a relative path if possible //const noOptionsSavegamePath = "file://./src/__tests__/resources/victory-all-advanced-all.Civ5Save"; const noOptionsSavegamePath = "file:///home/bryan/Dropbox/Projects/javascript-civ5save/src/__tests__/resources/victory-all-adv...
JavaScript
0
@@ -34,153 +34,116 @@ %22;%0A%0A -// TODO: Replace this with a relative path if possible%0A//const noOptionsSavegamePath = %22file://./src/__tests__/resources/victory-all-advanced-all +const path = require('path');%0A%0Aconst TEST_SAVEGAME_V100 = path.join(__dirname, %22resources%22, %221.0.0.17 (test) .Civ @@ -152,1...
350c77507d3f86e87bd10ddce89c1d1d46de9be1
update file /www/connect.js
www/connect.js
www/connect.js
document.getElementById('go').onclick = function () { document.getElementById('connectResponse').innerHTML = "<p>Connecting.....</p>"; $fh.cloud( { path: 'connect', method: "GET", data: { host: document.getElementById('host').value, port: document.getElementById('po...
JavaScript
0.000001
@@ -686,24 +686,146 @@ , params) %7B%0A + document.getElementById('connectResponse').innerHTML = %22%3Cp background-color:red;%3E%22 + errorprops.message + %22%3C/p%3E%22;%0A docu
0f8cb606e4a30bc4f32eb2e4ec8ded8319c56ee3
fix error if null
static/javascript/tba_js/gameday_matchbar.js
static/javascript/tba_js/gameday_matchbar.js
function updateAll() { var eventKeys = {}; $('.view-close').each(function () { eventKeys[$(this).attr('event_key')] = true; }); for (var eventKey in eventKeys){ checkUpdate(eventKey); } } var lastTimestamp = null; function checkUpdate(eventKey) { $.ajax({ url: 'https://thebluealliance-dev.fi...
JavaScript
0.000382
@@ -435,24 +435,46 @@ ) %7B%0A if + (timestamp != null && (lastTimest @@ -507,32 +507,33 @@ = lastTimestamp) +) %7B%0A getUp
8a1a7efeb4953b549a3b6f20a83ba70ca5c7c2c0
Fix linting
src/scenes/tracksFeed/components/ListFeed.js
src/scenes/tracksFeed/components/ListFeed.js
import React, { PureComponent } from 'react'; import TimeAgo from 'react-timeago'; import { func, arrayOf, string, bool, number, object } from 'prop-types'; import { formatSeconds } from 'helpers/format'; import styled, { css } from 'styled-components'; import { prop, ifProp } from 'styled-tools'; import TrackRow, { He...
JavaScript
0.000004
@@ -43,45 +43,8 @@ t';%0A -import TimeAgo from 'react-timeago';%0A impo @@ -124,139 +124,37 @@ ort -%7B formatSeconds %7D from 'helpers/format';%0Aimport styled, %7B css %7D from 'styled-components';%0Aimport %7B prop, ifProp %7D from 'styled-tool +styled from 'styled-component s';%0A
b45aeb349e53a709e90eb0d542c7cfed647dfd2a
Add test for normalized filtering
src/schema/image/__tests__/normalize.test.js
src/schema/image/__tests__/normalize.test.js
import { first, isNull, isUndefined } from "lodash" import normalize, { grab, setVersion } from "schema/image/normalize" describe("grab", () => { it("grabs the first value for a set of possible keys", () => { expect(grab({ foo: "bar" }, "foo")).toBe("bar") expect(grab({ bar: "baz" }, ["foo", "bar"])).toBe("b...
JavaScript
0
@@ -799,16 +799,30 @@ %22large%22 +, %22normalized%22 %5D,%0A i @@ -949,24 +949,91 @@ large.jpg%22,%0A + normalized: %22https://xxx.cloudfront.net/xxx/normalized.jpg%22,%0A %7D,%0A %7D%0A%0A @@ -1705,24 +1705,169 @@ %22%0A )%0A %7D) +%0A%0A it(%22should not include normalized as a fallback%22, (...
eb9568b3bb44c692f59cb86d51d37fbe4b65e5a1
use strict dec.
src/scripts/buildModel/createDynamicModel.js
src/scripts/buildModel/createDynamicModel.js
var addRelationsToModel = require("./addRelations"), Model = require("./Model"); function createDynamicModel(schema) { // create the dynamicModel var dynamicModel = Object.keys(schema).reduce(function(dm, key) { dm[key] = new Model(key, schema[key]); return dm; }, Object.create(null, {...
JavaScript
0.000001
@@ -42,16 +42,23 @@ elations +ToModel %22),%0A @@ -132,34 +132,22 @@ -// create the dynamicModel +%22use strict%22;%0A %0A
5651c655d8aa50cf33d69287ffdda8c87a2b9061
handle mail for password reset in server
src/services/passwordRecovery/hooks/index.js
src/services/passwordRecovery/hooks/index.js
const auth = require('@feathersjs/authentication'); const local = require('@feathersjs/authentication-local'); const globalHooks = require('../../../hooks'); const hashId = (hook) => { if (!hook.data.password) { const accountService = hook.app.service('/accounts'); const { username } = hook.data; return accoun...
JavaScript
0
@@ -100,24 +100,112 @@ on-local');%0A +const %7B NotFound %7D = require('@feathersjs/errors');%0Aconst logger = require('winston');%0A%0A const global @@ -235,24 +235,24 @@ ../hooks');%0A - %0Aconst hashI @@ -544,24 +544,915 @@ %09%7D);%0A%09%7D%0A%7D;%0A%0A +const sendInfo = (hook) =%3E %7B%0A%09if (hook.path ===...
e94dac7dce86a66e1db93bc681a848b5381f79d7
Remove unnecessary hooks
src/services/teams/hooks/scopePermissions.js
src/services/teams/hooks/scopePermissions.js
const auth = require('@feathersjs/authentication'); const logger = require('winston'); const { Forbidden, BadRequest, Conflict, NotImplemented, NotFound, MethodNotAllowed, NotAcceptable, } = require('@feathersjs/errors'); const globalHooks = require('../../../hooks'); module.exports = { before: { all: [], find: ...
JavaScript
0.000036
@@ -333,262 +333,97 @@ %5D,%0A%09 -%09create: %5B%5D,%0A%09%09update: %5B%5D,%0A%09%09patch: %5B%5D,%0A%09%09remove: %5B%5D,%0A%09%7D,%0A%09after: %7B%0A%09%09all: %5B%5D,%0A%09%09find: %5B%5D,%0A%09%09get: %5B%5D,%0A%09%09create: %5B%5D,%0A%09%09update: %5B%5D,%0A%09%09patch: %5B%5D,%0A%09%09remove: %5B%5D,%0A%09%7D,...
8f718413bfc5bcf1ff5505a56a4b6838c5d10848
remove useless stuff
www/js/auth.js
www/js/auth.js
angular.module('citizen-engagement.auth', ['angular-storage']) .factory('AuthService', function (store) { var service = { currentUserId: store.get('currentUserId'), setUser: function (user) { service.currentUserId = user.userId; store.set('currentUs...
JavaScript
0.000013
@@ -1486,41 +1486,8 @@ er.%0A - console.log('plop');%0A
3ffb78112c826dc6bf30ef4c0c3c7fa5f4c18786
Apply linter in bvb.js
www/lib/bvb.js
www/lib/bvb.js
var BVB = (function () { "use strict"; function init(){ favs = localStorage.getObj("favs") || []; registered = localStorage.getObj("registered") || false; if( !registered ){ interval_ready_id = window.setInterval(checkDeviceReady, 500); } } function checkDe...
JavaScript
0
@@ -950,16 +950,17 @@ cipe_id) +; %0A%0A @@ -1269,32 +1269,33 @@ e + '%22/%3E%3C/span%3E' +; %0A %7D%0A%0A func @@ -1936,16 +1936,17 @@ %3C/span%3E' +; %0A %7D%0A%0A @@ -2139,16 +2139,17 @@ _id), 1) +; %0A
dac3a49388b9850c282710e7003b449ea88fcc80
Fix issue where unable to login on Opera
www/sandbox.js
www/sandbox.js
// Recall is a program for storing bookmarks of different things // Copyright (C) 2012 Cal Paterson // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, ...
JavaScript
0
@@ -2406,32 +2406,25 @@ ction(key)%7B%0A - +%09 return local @@ -2435,22 +2435,15 @@ age. -hasOwnProperty +getItem (mod @@ -2454,32 +2454,41 @@ ame + %22$%22 + key) + !== null ;%0A %7D;%0A int
7bc348043843ae73d8f611ec6676bfc8157dadc5
Fix iterable.isIterable and .zip
src/common/utility/iterable.js
src/common/utility/iterable.js
"use strict"; /** Returns if the specified object is iterable * (= has property [System.iterable] set to a function). */ exports.isIterable = function(obj) { return ((obj != null) && (typeof obj[System.iterable] == "function")); }; /** Returns an iterable that yields the value a specified number of times. */ exp...
JavaScript
0.00007
@@ -195,20 +195,20 @@ f obj%5BSy -stem +mbol .iterabl @@ -3348,27 +3348,20 @@ efined, -ignoreFirst +true %5D;%0A fo
c74719e933d07fbb63e206acfb4f7445a6df326a
enable flow in AsyncStreams
src/components/AsyncStreams.js
src/components/AsyncStreams.js
import Loadable from './Loadable'; const AsyncStreams = Loadable({ loader: () => import(/* webpackChunkName: "streams" */ './Streams'), }); export default AsyncStreams;
JavaScript
0
@@ -1,12 +1,22 @@ +// @flow%0A%0A import Loada
c19a52a234cd680bd35d4653ceaf07a51f948117
Add button form prop
src/components/Button/index.js
src/components/Button/index.js
import React, { PropTypes } from 'react'; import classNames from 'classnames'; import './styles.css'; const Button = ({ id, children, type, className, style, disabled, primary, buttonRef, onClick }) => ( <button id={id} type={type} className={classNames( className, 'sec-ui-b...
JavaScript
0.000001
@@ -140,16 +140,24 @@ type,%0A + form,%0A classN @@ -262,16 +262,32 @@ =%7Btype%7D%0A + form=%7Bform%7D%0A clas @@ -751,16 +751,42 @@ quired,%0A + form: PropTypes.string,%0A classN
8f9d3b4ada9a9419c5cf863765e16d37daeff5fb
Revert changes to SimpleSelect
src/components/SimpleSelect.js
src/components/SimpleSelect.js
const React = require('react'); const PropTypes = require('prop-types'); const Radium = require('radium'); const keycode = require('keycode'); const _merge = require('lodash/merge'); import { withTheme } from './Theme'; const Icon = require('./Icon'); const { Listbox, Option } = require('./accessibility/Listbox'); con...
JavaScript
0
@@ -316,16 +316,18 @@ ;%0Aconst +MX FocusTra @@ -343,24 +343,21 @@ re(' -f +./MXF ocus --t +T rap --react ');%0A @@ -1891,16 +1891,18 @@ %0A %3C +MX FocusTra @@ -3513,16 +3513,18 @@ %3C/ +MX FocusTra
7953a53fa67831768eb8dfe864c1de7fcdd79512
add event to toggle click return
src/components/ToggleSwitch.js
src/components/ToggleSwitch.js
const React = require('react'); const Radium = require('radium'); const StyleConstants = require('../constants/Style'); const ToggleSwitch = React.createClass({ propTypes: { activeColor: React.PropTypes.string, children: React.PropTypes.node, componentStyle: React.PropTypes.oneOfType([ React.PropTy...
JavaScript
0
@@ -1713,16 +1713,21 @@ Toggle ( +event ) %7B%0A @@ -1887,32 +1887,39 @@ e(activePosition +, event );%0A %7D,%0A%0A _rend
b0b7da0e07e1131d17e195c36855b2389242d138
Fix issue when only text is displayed and no emote
src/components/chat/Message.js
src/components/chat/Message.js
import React from 'react'; import IconButton from 'material-ui/IconButton'; import Username from './Username'; import './Message.css'; class Message extends React.Component { constructor(props) { super(props); this._renderMessage = this._renderMessage.bind(this); this.state = { liked: false }; } _r...
JavaScript
0
@@ -452,22 +452,8 @@ %5B%5D;%0A - debugger;%0A @@ -1505,24 +1505,107 @@ %7D%0A %7D +%0A if (coherentString) %7B%0A parsedMsg%5BmsgArray.length%5D = coherentString;%0A %7D %0A%0A return
b53f5fee2b0cd7b13825c982b99eefd5dc659c7a
remove code to generate spr_obsolete index
src/components/sqliteStream.js
src/components/sqliteStream.js
const Readable = require('stream').Readable; const Sqlite3 = require('better-sqlite3'); const logger = require('pelias-logger').get('whosonfirst:sqliteStream'); // attempt to create index to improve read performance // // catch all failures since the PIP service will have several processes all // trying to acquire a w...
JavaScript
0.000001
@@ -159,589 +159,8 @@ );%0A%0A -// attempt to create index to improve read performance%0A//%0A// catch all failures since the PIP service will have several processes all%0A// trying to acquire a write lock on the DB, and only one will succeed%0A//%0A// note: can be removed once the upstream PR is merged and all data o...
09c73a2d539f6f51856342d433803674e9e7e1ce
convert TitleTab to function component
src/components/tab/TitleTab.js
src/components/tab/TitleTab.js
import React, { createRef, forwardRef, PureComponent } from 'react'; import PropTypes from 'prop-types'; import Box from '../box'; import cx from 'classnames'; import theme from './theme.css'; import omit from 'lodash.omit'; import { Heading4, Heading5 } from '../typography'; class TitleTab extends PureComponent { ...
JavaScript
0.000002
@@ -12,19 +12,8 @@ t, %7B - createRef, for @@ -21,29 +21,22 @@ ardRef, -PureComponent +useRef %7D from @@ -171,40 +171,8 @@ ss'; -%0Aimport omit from 'lodash.omit'; %0A%0Aim @@ -223,20 +223,20 @@ phy';%0A%0Ac -lass +onst TitleTa @@ -241,49 +241,124 @@ Tab -extends PureComponent %7B%0A tabNode = creat +=...
d8704614a4195de7ec828ca6a4b85f41a5bb8ef3
delete geo objects action constant
src/constants/GeoAppActions.js
src/constants/GeoAppActions.js
/** * Created by nickbespalov on 09.05.15. */ 'use strict'; var keyMirror = require('keymirror'); module.exports = keyMirror({ CATEGORY_CREATE: null, CATEGORIES_COLLECTION: null, GEO_OBJECTS_COLLECTION: null, GEO_OBJECTS_CREATE: null });
JavaScript
0.000001
@@ -238,22 +238,52 @@ ECTS_CREATE: + null,%0A GEO_OBJECTS_DELETE: null%0A%7D);%0A
a6a8ab5e7cefbc6a9b622663c60845f9a5ccdc84
Improve ControlBones to allow property loading
src/controller/ControlBones.js
src/controller/ControlBones.js
var _ = require('underscore'), ControlBones; ControlBones = function() { }; ControlBones.prototype = {}; /** * This is called to render the view using * the latest data from the model. */ ControlBones.prototype.render = function() { // noop }; ControlBones.extend = function(prototypeAdditions) { var pa...
JavaScript
0
@@ -71,15 +71,151 @@ ion( -) %7B +options) %7B%0A var self = this;%0A%0A // Copy all options to object%0A _.each(options, function(value, key) %7B%0A self%5Bkey%5D = value;%0A %7D);%0A %7D;%0A +%0A Cont
c61373feaa2fdddbf74d03f0940c1752480dd7f9
Enable redux dev tools
web/static/js/app.js
web/static/js/app.js
/* eslint-disable react/jsx-filename-extension */ import React from "react" import { render } from "react-dom" import { createStore } from "redux" import { Provider } from "react-redux" import RemoteRetro from "./components/remote_retro" import RetroChannel from "./services/retro_channel" import rootReducer from "./r...
JavaScript
0
@@ -568,36 +568,22 @@ t%22)%0A -%0Arender(%0A %3CProvider +const store -=%7B + = crea @@ -590,16 +590,19 @@ teStore( +%0A rootRedu @@ -604,17 +604,132 @@ tReducer -) +,%0A window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()%0A)%0A%0Arender(%0A %3CProvider store=%7Bstore %7D%3E%0A ...
6c904c9ba25606a4be9799b5327cef0a8699d098
fix contacts overview page
user/static/js/es6_modules/contacts/overview.js
user/static/js/es6_modules/contacts/overview.js
import {teammemberTemplate} from "./templates" import {addMemberDialog, deleteMemberDialog} from "./manage" export let contactsOverview = function () { //intialize the teammember table jQuery('#team-table tbody').append(teammemberTemplate({'members': window.teammembers})) //select all members jQuery('...
JavaScript
0
@@ -142,24 +142,69 @@ nction () %7B%0A +%0A jQuery(document).ready(function() %7B%0A //intial @@ -228,24 +228,28 @@ r table%0A + + jQuery('#tea @@ -325,16 +325,20 @@ ers%7D))%0A%0A + //se @@ -354,16 +354,20 @@ members%0A + jQue @@ -422,24 +422,28 @@ ) %7B%0A + + ...
5f8862c3a7fa031c6e7fbee75da459879b88c3ac
add missing require for app-root-path
src/data/timeline-generator.js
src/data/timeline-generator.js
var fs = require('fs'); var timelineUtils = require('../utils/timeline-utils'); require('dotenv').load({path: appRoot + '/.env'}); var generateCommitsTimeline = function() { var db = require('../db/content-provider'); db.loadDatabase({}, function() { var outputFilename = process.env.JSON_FILENAME + '....
JavaScript
0.000002
@@ -17,16 +17,56 @@ ('fs');%0A +var appRoot = require('app-root-path');%0A var time
11ebe3e7c7567dda0a6668387143e42ba2d11f1f
Change verbage to "WebStorage"
ClientStore.js
ClientStore.js
/* ClientStore is a standard interface for storing client side data. It's standard methods (set, get) are defined at runtime based on the availability of certain client-side storage libraries (localStorage). ClientStore also includes functionality for expiration of LocalStorage entries, which is not supporte...
JavaScript
0
@@ -192,21 +192,19 @@ raries ( -local +Web Storage) @@ -532,21 +532,19 @@ (this.is -Local +Web StorageS @@ -638,21 +638,26 @@ this.get -Local +WebStorage ;%0A th @@ -673,21 +673,26 @@ this.set -Local +WebStorage ;%0A th @@ -714,21 +714,26 @@ s.expire -Local +WebStorage ;%0A %7D el @@ -1003,21 +1003,19 ...
2644d730cc303e693f93fab0892015064f6982e9
extend _WidgetBase, use data-dojo-* only
Declaration.js
Declaration.js
define([ "dojo/_base/array", // array.forEach array.map "dojo/aspect", // aspect.after "dojo/_base/declare", // declare "dojo/_base/lang", // lang.getObject "dojo/parser", // parser._functionFromScript "dojo/query", // query "./_Widget", "./_TemplatedMixin", "./_WidgetsInTemplateMixin", "dojo/NodeList-dom" ],...
JavaScript
0
@@ -235,16 +235,20 @@ /_Widget +Base %22,%0A%09%22./_ @@ -371,32 +371,36 @@ , query, _Widget +Base , _TemplatedMixi @@ -509,16 +509,20 @@ _Widget +Base , %7B%0A%09%09// @@ -1307,16 +1307,20 @@ ._Widget +Base %22, %22diji @@ -2673,16 +2673,20 @@ _Widget +Base , _Templ @@ -2928,47 +2928,8 @@ ) %7C%7C - src.g...
df80f80031642e934fac8951dfb98ace78aca914
add main entry support
react/index.js
react/index.js
var React = require('react'); var createElement = React.createElement; var Application = require('./components/application'); module.exports = function(config) { return function createApp(src, props) { return createElement(Application, Object.assign({ src: src, props: props }, config)); }; };
JavaScript
0
@@ -156,16 +156,44 @@ nfig) %7B%0A + var entry = config.entry;%0A return @@ -230,22 +230,25 @@ ) %7B%0A -return +var app = createE @@ -335,16 +335,86 @@ nfig));%0A + if (entry) app = createElement(entry, null, app);%0A return app;%0A %7D;%0A%7D;%0A
244712bcfd15ab9e5ca11b17e91646c3291b0362
Update integration tests
tests/integration/components/tag-input-test.js
tests/integration/components/tag-input-test.js
import Ember from 'ember'; import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; import { typeInInput, typeCharacterInInput } from '../../helpers/ember-tag-input'; moduleForComponent('tag-input', 'Integration | Component | Ember Tag Input', { integration: true }); con...
JavaScript
0
@@ -588,32 +588,33 @@ nder(hbs%60%0A %7B%7B +# tag-input%0A @@ -648,32 +648,80 @@ ion addTag)%0A + as %7Ctag%7C%0A %7D%7D%0A %7B%7Btag%7D%7D%0A %7B%7B/tag-input %7D%7D%0A %60);%0A%0A cons @@ -1382,32 +1382,33 @@ nder(hbs%60%0A %7B%7B +# tag-input%0A @@ -1446,24 +1446,72 @@ add...
80374af930d6f24c76785a835d0e772a21c2566e
Update systemjs.config.js
src/assets/systemjs.config.js
src/assets/systemjs.config.js
/** * System configuration for Angular 2 samples * Adjust as necessary for your application needs. */ (function(global) { // map tells the System loader where to look for things var map = { 'app': 'assets/components', // 'site', '@angular': 'assets/lib/@angular', ...
JavaScript
0.000002
@@ -230,24 +230,10 @@ 'a -ssets/components +pp ', /
0f7e010e3e0324b49421d4c4bb06f716b0a65438
remove isSpecifierDefault check for ExportDefaultSpecifier - fixes #1673
src/babel/types/validators.js
src/babel/types/validators.js
import esutils from "esutils"; import * as t from "./index"; /** * Check if the input `node` is a reference to a bound variable. */ export function isReferenced(node: Object, parent: Object): boolean { switch (parent.type) { // yes: PARENT[NODE] // yes: NODE.child // no: parent.CHILD case "MemberE...
JavaScript
0
@@ -3595,58 +3595,8 @@ %7C%7C%0A - t.isExportDefaultSpecifier(specifier) %7C%7C%0A
7e04e768aa8904ec6043dd02bc392c8824baf75a
Change styling for CI check
src/block_mixins/droppable.js
src/block_mixins/droppable.js
"use strict"; /* Adds drop functionaltiy to this block */ var _ = require('../lodash'); var $ = require('jquery'); var config = require('../config'); var utils = require('../utils'); var EventBus = require('../event-bus'); module.exports = { mixinName: "Droppable", valid_drop_file_types: ['File', 'Files', 'tex...
JavaScript
0
@@ -1586,16 +1586,24 @@ ay(obj)) + %7B%0A return @@ -1607,16 +1607,22 @@ rn obj;%0A + %7D%0A %0A @@ -1647,67 +1647,8 @@ %0A - // iterate backwards ensuring that length is an UInt32%0A @@ -1659,16 +1659,23 @@ (var i = + 0; i %3C obj.len @@ -1681,20 +1681,13 @@ ngth - %3E%3E%3E 0; i-...
0e6895b35e2b8ea1dcc54d5e8f759f5a7a2f1cfa
Fix failing tests
src/code/modules/tutorials.js
src/code/modules/tutorials.js
import Immutable from 'seamless-immutable'; import actionTypes from '../action-types'; import t from '../utilities/translate'; import tutorialSteps from './tutorial.json'; const tutorialActionTypes = { TUTORIAL_ENABLED: "Tutorial enabled", TUTORIAL_STARTED: "Tutorial started", TUTORIAL_COMPLETE: "Tutorial comple...
JavaScript
0.000069
@@ -1349,36 +1349,34 @@ h !== 1) return -null +%5B%5D ;%0A%0A let levelMi @@ -1484,20 +1484,18 @@ return -null +%5B%5D ;%0A%0A let @@ -1622,12 +1622,10 @@ urn -null +%5B%5D ;%0A
3eab77319bb87eff3b3444baa7a6cabbd587d7a5
Add now-obligatory callback to writeFile
src/collab/server/instance.js
src/collab/server/instance.js
const {readFileSync, writeFile} = require("fs") const {Mapping} = require("prosemirror-transform") const {schema} = require("../schema") const {Comments, Comment} = require("./comments") const {populateDefaultInstances} = require("./defaultinstances") const MAX_STEP_HISTORY = 10000 // A collaborative editing docume...
JavaScript
0.000003
@@ -4381,16 +4381,28 @@ ify(out) +, () =%3E null )%0A%7D%0A%0Afun
a501febd54bd069c33bd7f0f16c058d57c78ace7
Add date separator to beginning of chat
src/components/MessageList.js
src/components/MessageList.js
'use strict' import React, { useEffect, useRef, useState } from 'react' import PropTypes from 'prop-types' import { AutoSizer, CellMeasurer, CellMeasurerCache, List } from 'react-virtualized' import MessageRow from '../components/MessageRow' import MessagesDateSeparator from '../components/MessagesDateSeparator' impo...
JavaScript
0
@@ -2746,28 +2746,16 @@ t date = - prevDate && new Dat @@ -2765,32 +2765,121 @@ essage.meta.ts)%0A + // Add separator when this is the first message or the dates between messages differ%0A const addDat @@ -2888,16 +2888,22 @@ epator = +%0A date && @@ -2903,16 +2903,31 @@ date && +(!prevDate %7C%7C...
d5b6850c308f91984f5dbd93e0f8607c79a4b211
Change init console message
src/components/MiniConsole.js
src/components/MiniConsole.js
const decorateMiniConsole = (draw, ox, oy) => { return [0, 1, 2, 3, 4].map(index => draw.text({ x: ox, y: oy - index * 9, id: `line${index}`, text: index, fill: 'gray' }) ) } export { decorateMiniConsole }
JavaScript
0.000003
@@ -55,21 +55,32 @@ rn %5B -0, 1, 2, 3, 4 +'Hmm...', '', '', '', '' %5D.ma
86aae2c8ddfcc157628801fb05aa0e3a9f1c8300
Make Modals wider
src/components/Modal/Modal.js
src/components/Modal/Modal.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Modal, Button } from 'react-bootstrap'; import { connect } from 'react-redux'; import { hideModal } from '../../actions/modals'; class NewModal extends Component { static propTypes = { modalId: PropTypes.string.isRequired, ...
JavaScript
0.000004
@@ -1793,16 +1793,39 @@ %3CModal%0A + bsSize=%22large%22%0A
e9ff64a93e1bdabf3c7e39d53168108a45898186
set background color of PostRankTab
src/components/PostRankTab.js
src/components/PostRankTab.js
// import React from 'react' import styled from 'styled-components' import { colors } from '../styles' export const TabWrapper = styled.div` margin-bottom: 1rem; ` export const Tab = styled.button` min-width: 6rem; padding: 0.5rem 1rem; border: none; border-bottom: 3px solid ${({ isSelected }) => (isSel...
JavaScript
0
@@ -370,10 +370,30 @@ : none;%0A + background: #fff;%0A %60%0A
b9e5646497404be2bb726a2297ae81c2681d493f
Use minimizer explicitly
src/configs/webpack/shared.js
src/configs/webpack/shared.js
// Licensed under the Apache License, Version 2.0 (the “License”); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed unde...
JavaScript
0
@@ -545,16 +545,69 @@ cense.%0A%0A +import UglifyJsPlugin from 'uglifyjs-webpack-plugin'%0A import %7B @@ -1573,16 +1573,81 @@ on () %7B%0A + const MINIMIZER = %7B%0A minimizer: %5Bnew UglifyJsPlugin()%5D%0A %7D%0A%0A return @@ -2185,16 +2185,46 @@ minify,%0A + ...minify && MINIMIZER,%0A %7D,%0A
ca4b5457a71518764083fa04e93f8543d9dcdc8f
Remove end turn for enemy
src/containers/Board/Board.js
src/containers/Board/Board.js
import React, { PropTypes } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { DragDropContext as dragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import { boardSelector } from 'redux/modules/board'; import { endTurn } from '...
JavaScript
0
@@ -1018,102 +1018,8 @@ turn - (yours)%3C/button%3E%0A %3Cbutton onClick=%7Bactions.endTurn%7D disabled=%7ByourTurn%7D%3EEnd turn (enemy) %3C/bu
2083c07d6db574c6df07c89dbda34149f8ad0731
Remove ws debugging
src/containers/ProjectPage.js
src/containers/ProjectPage.js
import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import config from '../config'; import { loadProject, updateProjectStatus } from '../actions/projects'; import { importFeatures } from '../actions/features'; import Project from '../components/Project'; import LoaderCentered ...
JavaScript
0.000008
@@ -1154,50 +1154,8 @@ %60;%0A%0A - console.log(%22Connecting: %22 + wsUrl);%0A%0A @@ -1213,186 +1213,37 @@ t.on -open = function () %7B%0A console.log('Connected to: ' + wsUrl);%0A %7D;%0A%0A this.socket.onmessage = function(message) %7B%0A console.log(%22Message received: %22 + message.data...
d0fb26a24484dc3a4a1214bad6705754a6cb84be
fix inflexible formatting
src/embeds/EnableInfoEmbed.js
src/embeds/EnableInfoEmbed.js
'use strict'; const BaseEmbed = require('./BaseEmbed.js'); /** * Utility class for making rich embeds */ class EnableInfoEmbed extends BaseEmbed { /** * @param {Genesis} bot - An instance of Genesis * @param {number} enable - 1 if enabling command, 0 if disabling * @param {Array<string>} params - list of...
JavaScript
0.00006
@@ -54,16 +54,221 @@ .js');%0A%0A +function createGroupedArray(arr, chunkSize) %7B%0A const groups = %5B%5D;%0A for (let i = 0; i %3C arr.length; i += (chunkSize %7C%7C 10)) %7B%0A groups.push(arr.slice(i, i + (chunkSize %7C%7C 10)));%0A %7D%0A return groups;%0A%7D%0A%0A /**%0A * U @@ -695,24 +695,9 @@ = %5B...
b90d61c7858e73303238c34e65ddb49cffe65f3f
Fix bug where cypress test would click wrong date
cypress/support/utils.js
cypress/support/utils.js
import mockMazemapApiResponse from '../fixtures/mockApiResponses/mazemap.json'; export const apiBaseUrl = Cypress.env('API_BASE_URL') || 'http://localhost:8000'; // CSS Selector to match classnames by their prefix export const c = (classname) => `[class*="${classname}"]`; // Find links by their path export const a...
JavaScript
0
@@ -2078,16 +2078,31 @@ ('button +:not(:disabled) ')%0A .
cbaff9a6cf01366af73b87f1c78f563ba0a7a732
add user haskell file path
src/Compiler/Compiler.js
src/Compiler/Compiler.js
if( ! JSHC.Compiler )JSHC.Compiler = {}; //////////////////////////////////////////////////////////////////////////////// JSHC.Compiler = function(modulePrefix){ this.flags = {}; this.fileSystem = {}; this.path = []; if( location !== undefined && location.href !== undefined ){ this.path.push(locatio...
JavaScript
0
@@ -379,16 +379,105 @@ lib/%22);%0A +%09this.path.push(location.href.substr(0, location.href.lastIndexOf(%22/%22) + 1) + %22hsusr/%22);%0A %7D%0A
35e7ad2a8c0b4b7ea646a284fb87096d147f6fc5
Update eregistrations package
node_modules/eregistrations/server/services/query-memory-db/queries/notify-business-process-assigned.js
node_modules/eregistrations/server/services/query-memory-db/queries/notify-business-process-assigned.js
'use strict'; var ensureDatabase = require('dbjs/valid-dbjs') , notifyAssigned = require('../../../email-notifications/business-process-assigned'); module.exports = function (db) { var dispatcherEmails = ensureDatabase(db).User.filterByKey('roles', function (roles) { if (!roles) return false; return roles.has(...
JavaScript
0
@@ -225,16 +225,56 @@ db).User +%0A%09%09.filterByKey('isSuperUser', false)%0A%09%09 .filterB @@ -306,16 +306,17 @@ oles) %7B%0A +%09 %09%09if (!r @@ -337,16 +337,17 @@ alse;%0A%09%09 +%09 return r @@ -370,16 +370,17 @@ cher');%0A +%09 %09%7D).map(
e780cc5e672a1d94dd9bff7ee963492c8b0814db
remove unnecessary element check in the preview rendering
app/react/src/client/preview/render.js
app/react/src/client/preview/render.js
/* global document */ import React from 'react'; import ReactDOM from 'react-dom'; import { stripIndents } from 'common-tags'; import ErrorDisplay from './error_display'; // check whether we're running on node/browser const isBrowser = typeof window !== 'undefined'; const logger = console; let rootEl = null; let pr...
JavaScript
0
@@ -2684,372 +2684,8 @@ %7D%0A%0A - if (element.type === undefined) %7B%0A const error = %7B%0A title: %60Expecting a valid React element from the story: %22$%7BselectedStory%7D%22 of %22$%7BselectedKind%7D%22.%60,%0A description: stripIndents%60%0A Seems like you are not returning a correct Reac...
15e86ddaceeeb7b24d7f9802c6b50e409069335f
Check that the add todo input is cleared after adding a todo
tests/acceptance/todos.spec.js
tests/acceptance/todos.spec.js
import setup from './test.setup.js'; import { Simulate } from 'react-addons-test-utils'; const ENTER = 13; describe('App', function() { let $component; beforeEach(function() { $component = setup(); }); describe('adding new todos', function() { it('should focus on the new todo input when the page l...
JavaScript
0.000001
@@ -1157,16 +1157,202 @@ %0A %7D); +%0A%0A it('should clear the add todo input after adding a todo', function() %7B%0A addTodo($component, 'buy eggs');%0A%0A expect($component.find('.new-todo').val()).to.be.empty;%0A %7D); %0A %7D);%0A%7D
173759be2fca330204d82a0624e26c3de9a25d88
Troubleshoot callback
js/splashMain.js
js/splashMain.js
$(document).ready(function(){ facebookSdk(main); }); function main() { $('#boardLink').click(function (e) { e.stopImmediatePropagation(); console.log(fbUser); if (!fbUser) { FB.login(function (response) { setUser(response); if (fbUser.access_token) { window.location = "/vi...
JavaScript
0.000001
@@ -40,383 +40,19 @@ Sdk( -main);%0A%7D);%0A%0Afunction main() %7B%0A%09$('#boardLink').click(function (e) %7B%0A e.stopImmediatePropagation();%0A console.log(fbUser);%0A if (!fbUser) %7B%0A FB.login(function (response) %7B%0A setUser(response);%0A if (fbUser.access_token) %7B%0A w...
540735383d858129121ab0447a7880163c31e658
Fix RNTester Not Resizing Examples on Rotation/Resize (#30376)
packages/rn-tester/js/components/ExamplePage.js
packages/rn-tester/js/components/ExamplePage.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow */ 'use strict'; import * as React from 'react'; import {StyleSheet, View, Text, Dimensions} from 'react-nati...
JavaScript
0.000128
@@ -287,20 +287,8 @@ Text -, Dimensions %7D fr @@ -472,60 +472,8 @@ %3E;%0A%0A -const ScreenWidth = Dimensions.get('window').width;%0A impo @@ -1957,32 +1957,8 @@ : %7B%0A - width: ScreenWidth,%0A
f3c2e5e1bffd02813a3feb85843514a862e04de2
Set the core.htpasswd objects on the config, in stead of a custom hash
web-proxy/lib/config.js
web-proxy/lib/config.js
/*jslint node: true*/ var fs = require('fs'); /** * Overwrites obj1's values with obj2's and adds obj2's if non existent in obj1 * @param obj1 * @param obj2 * @returns obj3 a new object based on obj1 and obj2 */ function merge_options(obj1, obj2) { var obj3 = {}; var attrname, attrname2; for (attrname...
JavaScript
0
@@ -1361,19 +1361,8 @@ = - %7Busername: con @@ -1382,59 +1382,8 @@ sswd -.username, password: config.core.htpasswd.password%7D ;%0A
43f25458a2c06c568ce62e3f71f66fe281b2a2ba
Fix JSHint warnings.
web/src/oauth-helper.js
web/src/oauth-helper.js
var AGS_objectId; // the SWF object id // called from ArcGIS API for Flex function AGS_oAuthSignIn(portalURL, appId, expiration, locale, objectId) { var path = location.pathname; var idx = path.lastIndexOf("/"); var redirectURI = location.protocol + "//" + location.host + path.substring(0, idx) + "...
JavaScript
0
@@ -276,24 +276,26 @@ ion.host + + %0A + path. @@ -286,18 +286,16 @@ %0A - + path.su @@ -414,24 +414,26 @@ e=token%22 + + %0A + %22&cli @@ -424,18 +424,16 @@ %0A - + %22&clien @@ -466,24 +466,26 @@ t(appId) + + %0A + %22&red @@ -476,18 +476,16 @@ %0A - + %2...
f18e9029ad31ce89732aca3507d73010a6ec2314
update config
config/index.js
config/index.js
const config = { project: { name: 'OP System', }, system: { proxy: { host: 'http://127.0.0.1', port: 8080, }, language: 'en', server: { host: 'http://127.0.0.1', port: 80, }, }, cdnConfig: {}, // for debug model isDebugger: true } module.exports = { ...co...
JavaScript
0.000001
@@ -213,16 +213,18 @@ port: 80 +81 ,%0A %7D,
927d3190f9c2b256b180a247ba1deb2ca3955b6f
Fix checking for falling back to localhost
src/foam/nanos/theme/Themes.js
src/foam/nanos/theme/Themes.js
/** * @license * Copyright 2019 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.nanos.theme', name: 'Themes', documentation: `Support methods for Theme`, axioms: [ foam.pattern.Singleton.create() ], implements: [ 'foam.mlang.Expres...
JavaScript
0.000002
@@ -1735,21 +1735,16 @@ %7C%7C -'localhost' = +domain ! == t @@ -4323,27 +4323,24 @@ null %7C%7C -%22localhost%22 +! domain .equals(
6d7f559494dc13dcd567d5ab18072f5915b41cb6
remove old tests
test/basic.js
test/basic.js
const tape = require('tape') const hyperdrive = require('hyperdrive') const memdb = require('memdb') const hyperIdentity = require('..') const collect = require('collect-stream') tape('basic', function (t) { var drive = hyperdrive(memdb()) var id = hyperIdentity(drive) id.setMeta({foo: 'bar'}, err => { t.err...
JavaScript
0.000743
@@ -452,588 +452,4 @@ %7D)%0A%0A -tape('challenge', function (t) %7B%0A var drive = hyperdrive(memdb())%0A var id = hyperIdentity(drive)%0A var nonce = Math.floor(Math.random() * 1000)%0A var email = 'test@example.com'%0A var serviceName = 'some_service'%0A%0A var list = id.list()%0A list.on('data', x =%3E %7B%...
f662b66edf93439a659c95b1b0060ef46d8e826c
Add a few extra class names to test nodes.
test/bench.js
test/bench.js
(function() { const DEPTH = 25; const DISPATCHES = 1500; function build(depth) { var selectors = []; var parent = document.body; for (var i = 0; i < depth; i++) { var name = 'js-div-' + i; selectors.push('.' + name); var child = document.createElement('div'); child.classList.a...
JavaScript
0
@@ -316,24 +316,39 @@ ist.add(name +, 'a', 'b', 'c' );%0A par
23e02fe1957ad3a7af49c2c0cf946db236ec4598
Add test for swapping vertical tiles
test/board.js
test/board.js
const chai = require('chai'); const assert = chai.assert; const Tile = require('../lib/tile'); const Board = require('../lib/board'); describe('Board', function () { it('randomly generates all tiles for an 8x8 board', function() { var board = new Board(null, null, 8, 8, 70, 70); board.generate(); assert...
JavaScript
0
@@ -1451,32 +1451,614 @@ row, 0);%0A %7D);%0A%0A + it('can swap two vertically adjacent tiles', function() %7B%0A var board = new Board(null, null, 8, 8, 70, 70);%0A var tile1 = new Tile(1, 0, 0);%0A var tile2 = new Tile(2, 0, 1);%0A board.tiles.push(tile1);%0A board.tiles.push(tile2);%0A board.swa...
568418926c9ce41e85afaa9ed57b1f8c670d297c
Add a failing test case
test/build.js
test/build.js
const test = require('ava') const { tmpdir } = require('os') const { join } = require('path') const rollup = require('rollup') const config = require('../rollup.config') test('build: creates a valid bundle', async assert => { const bundle = await rollup.rollup(config) const file = join(tmpdir(), 'bundle.js') awa...
JavaScript
0.998859
@@ -168,16 +168,21 @@ ')%0A%0Atest +.skip ('build: @@ -523,16 +523,55 @@ = 42')%0A + const literal = tree.find('Literal')%0A assert @@ -578,17 +578,20 @@ .truthy( -tree +literal )%0A%7D)%0A
010400283628347c0f30e45a4f55a0d6fd1c456e
Fix link for article in admin scholar table.
dataviva/static/js/modules/scholar/table.js
dataviva/static/js/modules/scholar/table.js
var ScholarTable = function () { this.tableId = '#scholar-table'; this.table = $(this.tableId).DataTable({ "oLanguage": { "sSearch": "Pesquisar " }, "sAjaxSource": "/scholar/articles/all", "sAjaxDataProp": "articles", "order": [], "columnDefs": [ ...
JavaScript
0
@@ -1118,17 +1118,16 @@ /article -s /'+artic
eb43a598ebbf5dcf230e778a568c90e07b4ad961
use monotonic-timestamp
test/clock.js
test/clock.js
var level = require('level-test')() var test = require('tape') var sublevel = require('level-sublevel') var master = require('../') process.on('uncaughtException', console.error) test('vector clock', function (t) { var db = sublevel(level('vectorClock')) var masterDb = master(db, 'master', 'TEST') v...
JavaScript
0.992661
@@ -139,54 +139,133 @@ /')%0A -%0Aprocess.on('uncaughtException', console.error +var timestamp = require('monotonic-timestamp')%0A%0Aprocess.on('uncaughtException', function (err) %7B%0A console.error(err.stack)%0A%7D )%0A%0At @@ -404,16 +404,17 @@ s = -Date.now +timestamp ()%0A%0A @@ -584,16 +584,20 @@ og(clock...
7488e692dbec111e36c81ad54ad002850588dce4
fix travis environment test.
test/index.js
test/index.js
var getConfiguration = require("../index"); describe("index", function(){ if (process.env.NODE_ENV == 'test'){ it ("can get local git info", function(done){ getConfiguration(function(err, config){ failOnError(err); expect(config.commitId). to.match(/[0-9a-f]{40}/); e...
JavaScript
0
@@ -805,34 +805,38 @@ buildId).to. -eql('NONE' +match(/%5B0-9%5D+/ );%0A e
f1c540de7f03652e670839a3eb0fcda6ae00b416
Test main subdb function + encodings
test/index.js
test/index.js
var test = require('tape') var memdown = require('memdown') var subdown = require('../leveldown') var levelup = require('levelup') var testCommon = require('./common') var testBuffer = Buffer.from('this-is-test-data') require('abstract-leveldown/abstract/open-test').args(down, test, testCommon) require('abstract-level...
JavaScript
0
@@ -87,24 +87,50 @@ leveldown')%0A +var subdb = require('..')%0A var levelup @@ -2522,16 +2522,1399 @@ %7D)%0A%7D)%0A%0A +test('SubDb main function', function (t) %7B%0A t.test('opts.open hook', function (t) %7B%0A t.plan(1)%0A subdb(levelup('loc', %7Bdb: memdown%7D), 'test', %7B%0A open: function (cb)...
35089bc513b296aaf8717307684f070f7d7cec24
correct webpack devtool option casing
webpack.dev.babel.js
webpack.dev.babel.js
import friendlyFormatter from 'eslint-friendly-formatter'; import paths from './paths'; import webpack from 'webpack'; /** * This config builds and serves the doc site with webpack dev server. * @type {{}} */ export default { entry: { app: [ 'webpack/hot/only-dev-server', paths.docsApp + '/DocsApp...
JavaScript
0.000001
@@ -974,17 +974,17 @@ %7D,%0A dev -T +t ool: 'so
540f28c4ae06b1bcabb06b405ff9665089df303b
Update tests to use promises
test/index.js
test/index.js
var hidePoweredBy = require('..') var connect = require('connect') var request = require('supertest') var assert = require('assert') describe('hidePoweredBy', function () { function test (name, options) { it(name, function (done) { var app = connect() app.use(function (req, res, next) { res....
JavaScript
0
@@ -183,72 +183,25 @@ ion -test (name, options) %7B%0A it(name, function (done +app ( ) %7B%0A - var app @@ -188,35 +188,38 @@ pp () %7B%0A var -app +result = connect()%0A @@ -215,29 +215,30 @@ nnect()%0A - app +result .use(functio @@ -260,26 +260,24 @@ xt) %7B%0A - res.setHea...
8359161086e95ecd08382f03f2f69543768e28e3
fix some bugs with the new autocomplete
modules/contacts/site.js
modules/contacts/site.js
var delete_contact = function(id) { Hm_Ajax.request( [{'name': 'hm_ajax_hook', 'value': 'ajax_delete_contact'}, {'name': 'contact_id', 'value': id}], function(res) { $('.contact_row_'+id).remove(); } ); }; var add_contact_from_message_view = function() { var contact = $('#add_contac...
JavaScript
0.000009
@@ -1237,16 +1237,51 @@ var i;%0A + var count = 0;%0A @@ -1306,32 +1306,32 @@ _div).html('');%0A - @@ -1594,17 +1594,21 @@ if ( -i +count == 0) %7B @@ -1769,32 +1769,65 @@ %7D%0A + count++;%0A @@ -1979,32 +1...
9aa09938d7fecceae7929cd9e46cdd01ff9fa2ea
prepare for props changes
webpages/js/props.js
webpages/js/props.js
(function (window, document) { // eslint-disable-line no-unused-vars 'use strict'; var limeta = window.limeta; var _ = limeta._; limeta.apiFail = limeta.apiFail || function(){}; limeta.properties = { '/id/p/12': { title: 'No. of Participants', description: 'number of participants in the expe...
JavaScript
0
@@ -359,32 +359,293 @@ ky@port.ac.uk',%0A + type: 'characteristic', // todo: show characteristics first, then results%0A // but also change the ID scheme from /id/p/ to something else,%0A // and the name from props: maybe %22column%22 and /id/col/?%0A ...
04e94362d8dc18b99eea739e06a468b24642ed7d
fix tests for passing the action result to the condition function
test/index.js
test/index.js
import assert from 'assert'; import promiseDoWhilst from '../lib'; describe('promise-do-whilst', function () { it('should "do" loop 5 times', function (done) { let count = 0; promiseDoWhilst(() => { count++; }, () => { return count < 5; }).then(() => { assert(count === 5, 'did not l...
JavaScript
0
@@ -769,25 +769,124 @@ -%7D, (counter) =%3E %7B + return count;%0A %7D, (counter) =%3E %7B%0A assert(typeof counter === 'number', 'did not pass the %22action%22 result'); %0A
05472080480b4be0ee2a3b4e5fa004db8ab6f21f
Add tests for `required` value
test/index.js
test/index.js
var test = require('tape'); var viewConventions = require('ampersand-view-conventions'); var CheckboxView = require('../ampersand-checkbox-view'); viewConventions.view(test, CheckboxView, {name: 'hi'}); viewConventions.formField(test, CheckboxView, {name: 'hi'}, true); test('basics', function (t) { var counter; ...
JavaScript
0.000001
@@ -684,32 +684,112 @@ input value');%0A + t.strictEqual(view.required, false, 'required should be false by default');%0A t.strictEqua @@ -844,32 +844,32 @@ e by default');%0A - t.strictEqua @@ -1647,24 +1647,91 @@ on init)');%0A + t.strictEqual(view.required, true, 'required should be true');%0A ...
d526a4ab6515843239093edbcd637bd68132901e
add some documentation for navigator.mimeTypes
node_modules/oae-core/linkpreview/js/linkpreview.js
node_modules/oae-core/linkpreview/js/linkpreview.js
/*! * Copyright 2014 Apereo Foundation (AF) Licensed under the * Educational Community 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://opensource.org/licenses/ECL-2.0 * * Unless required by applicab...
JavaScript
0
@@ -5514,16 +5514,210 @@ arnings. + We also check the mime type%0A * of the link and only embed types that the browser can display.%0A * @see https://developer.mozilla.org/en-US/docs/Web/API/NavigatorPlugins.mimeTypes %0A @@ -6378,32 +6378,120 @@ %7D%0A %7D%0A + // Only e...
7f8c8afd265c480a9817805da1d2958f916e2cd9
disable chrome update
cypress/plugins/index.js
cypress/plugins/index.js
// *********************************************************** // This example plugins/index.js can be used to load plugins // // You can change the location of this file or turn off loading // the plugins file with the 'pluginsFile' configuration option. // // You can read more here: // https://on.cypress.io/plugins-g...
JavaScript
0.000024
@@ -1277,24 +1277,174 @@ able-gpu%22);%0A + // disable update for chrome for CI%0A launchOptions.args.push(%0A %60--simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT'%60%0A );%0A %7D%0A if
255685efe44e8de9816a6dfa25061141f3d8f14e
Test coverage
test/index.js
test/index.js
// Load modules var Chai = require('chai'); var Boom = process.env.TEST_COV ? require('../lib-cov') : require('../lib'); // Declare internals var internals = {}; // Test shortcuts var expect = Chai.expect; describe('Boom', function () { it('returns an error with info when constructed using another error a...
JavaScript
0.000001
@@ -364,24 +364,17 @@ err +or = new -Boom(new Erro @@ -383,16 +383,75 @@ 'inner') +;%0A error.xyz = 123;%0A var err = new Boom(error , 'outte @@ -539,32 +539,389 @@ qual('outter');%0A + expect(err.xyz).to.equal(123);%0A expect(err.toResponse()).to.deep.equal(%7B%0A code:...
2ff4fb6048e37c0e85d9eb5978b0d92059649fbc
Fix enabled flag
modules/data/provider.js
modules/data/provider.js
/** * GA Anomalies Monitor (https://github.com/fraszczakszymon/ga-anomalies-monitor) * * Copyright © 2016 Frąszczak Szymon. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. */ /*global module, require*/ var anal...
JavaScript
0
@@ -1219,16 +1219,21 @@ Id%5D));%0A%09 +%09%09%09%7D%0A %09%09%09%09quer @@ -1239,22 +1239,16 @@ ryId++;%0A -%09%09%09%09%7D%0A %09%09%09%7D);%0A%0A @@ -1345,8 +1345,9 @@ : get%0A%7D; +%0A
b030ce9111aeca0642e7940403896bada42bae74
Remove unnecessary duplication in tests.
test/index.js
test/index.js
/* globals animals */ var readFile = require('fs').readFile; var assert = require('assert'); var test = require('./test'); readFile("./zoo.js", "utf-8", function(err, value) { test("zoo.js exists", function() { if (err) throw err; }) test("zoo.js parses correctly", function() { assert(va...
JavaScript
0.000012
@@ -911,37 +911,31 @@ -var sorted = +assert( isSorted(ani @@ -951,34 +951,8 @@ me') -%0A assert(sorted , %22%60 @@ -1188,37 +1188,31 @@ -var sorted = +assert( isSorted(sor @@ -1234,34 +1234,8 @@ me') -%0A assert(sorted , %22t @@ -1968,29 +1968,23 @@ -v...