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
e32a36d8b916e6fe8375f6f4cf71f0705fed6634
change to assets to release
Gruntfile.js
Gruntfile.js
'use strict'; module.exports = function (grunt) { // load configs grunt.loadTasks('conf'); // load project tasks grunt.loadTasks('tasks'); // load external tasks grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-compass'); grunt.loadNpmTasks('grunt-contrib-c...
JavaScript
0
@@ -615,14 +615,15 @@ sk(' -assets +release ', %5B
cd8ab8b31318fa83af0827bca6f86ef7960118cb
Support internal storage resolution
server/data-fragments/get-part-object-fragments.js
server/data-fragments/get-part-object-fragments.js
// Returns fragment generator, where each returned fragment emits selected data for specified object 'use strict'; var aFrom = require('es5-ext/array/from') , ensureString = require('es5-ext/object/validate-stringifiable-value') , ensureSet = require('es6-set/valid-set') , deferred = r...
JavaScript
0
@@ -489,16 +489,76 @@ -event') +%0A , anyIdToStorage = require('../utils/any-id-to-storage') %0A%0A , dr @@ -663,16 +663,71 @@ sArray, +storage, storagePromise;%0A%09if (storageName != null) %7B%0A%09%09 storage @@ -773,16 +773,57 @@ eName)); +%0A%09%09storagePromise = deferred(storage);%0A%09%7D %0A%0A%09en...
785149f39b6744d3e9ca128056f02b4bb7e99451
Update Sidebar styles
src/components/Sidebar.js
src/components/Sidebar.js
import React, { Component } from 'react'; import { NavLink } from 'react-router-dom'; import ContentController from '../controllers/Content'; export default class Sidebar extends Component { constructor(props){ super(props); this.state = { content: {} }; this.renderConte...
JavaScript
0
@@ -854,15 +854,8 @@ link - active %22 hr @@ -912,24 +912,24 @@ %3C/span%3E%3C/a%3E%0A + @@ -1510,39 +1510,82 @@ %3C -NavLink exact to='/content/add' +ul className=%22nav flex-column%22%3E%0A %3Cli className=%22nav-item%22 %3E%0A @@ -1604,15 +1604,20 @@ -%3Cbutton + %3C...
461d783aaa82651981fc5a9c6470dd7333c1901c
Fix jasmine-suites support for Jasmine 1.4.
reviewboard/static/lib/js/jasmine.suites-1.0.js
reviewboard/static/lib/js/jasmine.suites-1.0.js
/* * Namespaced test suites for Jasmine. * * Copyright (C) 2014 Beanbag, Inc. * * Licensed under the MIT license. */ (function() { var SuiteInfo, _rootSuite; /* * Information on a suite of tests. * * This is a fancy generator for Jasmine describe() calls, which allows for * taking a '/'-separated name...
JavaScript
0.000002
@@ -25,32 +25,37 @@ ites for Jasmine + 1.4+ .%0A *%0A * Copyrigh @@ -1538,16 +1538,20 @@ escribe( +this );%0A @@ -1928,32 +1928,47 @@ ribe = function( +parentSuiteInfo ) %7B%0A var self @@ -1978,42 +1978,161 @@ this -,%0A env = jasmine.getEnv(),%0A +;%0A%0A if (self._added) %7B%0A self._...
8bb50fda4a8c70289745458918d85ac68f946ff6
Fix crash in /roomshop buy
chat-plugins/roomshop.js
chat-plugins/roomshop.js
/* Room shop system (economy) * This plugin gives each room that is allowed, * a custom shop for their room. Room founders * can customize what items they want to be in * their shops. Only certain rooms can have * their own shops. * by: panpawn and Siiilver */ // OBJECT STRUCTURE: // { 'roomid': { 'item1id': ...
JavaScript
0
@@ -4368,20 +4368,26 @@ ce = RS%5B +toId( item +) %5D%5B2%5D;%0A%09%09
5aae3f2ade1894eefd1898f532c5904161c04a5c
Add zoomAllChartContent in chart-render.js
content/chart-render.js
content/chart-render.js
var _selector_chart_box_all = "section div[name=chart-box]"; function renderCharts () { renderChartBoxes(); renderChartContents(); } function renderChartBoxes () { console.log("renderChartBoxes ~~~~~~~"); removeChartBoxes(); $.each(gauge_data, function (index, label_data) { var _id_col = index % 2 == 0...
JavaScript
0
@@ -1243,24 +1243,230 @@ d ~ !%22);%0A%7D%0A%0A +function zoomAllChartContent(_start, _end) %7B%0A $.each(_chart_set, function (index, _chart_id) %7B%0A _chart_id.zoomToIndexes(_start, _end);%0A console.log(_chart_id.graphs%5B0%5D.title, _start, _end);%0A %7D);%0A%7D%0A%0A function upd
a6458745bd5ae49cedf6e5c60df6c8c69b5ef93c
Fix code errors
apps/workflowengine/js/requestuseragentplugin.js
apps/workflowengine/js/requestuseragentplugin.js
/** * @copyright Copyright (c) 2016 Joas Schilling <coding@schilljs.com> * * @license GNU AGPL version 3 or any later version * * 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, eith...
JavaScript
0.003575
@@ -1682,34 +1682,33 @@ %09%09%09if (check -%5B' +. operator '%5D === 'matc @@ -1687,34 +1687,32 @@ (check.operator -'%5D === 'matches' %7C @@ -1714,34 +1714,33 @@ es' %7C%7C check -%5B' +. operator '%5D === '!mat @@ -1719,34 +1719,32 @@ %7C check.operator -'%5D === '!matches') @@ -2053,34 +2053,33 @@ %09...
36d87af17dcdf8a84250969e0d4f95d75e9b3185
fix typo
ShortUrl/server.js
ShortUrl/server.js
var http = require('http'); var url = require('url'); var qs = require('querystring'); var sqlite3 = require('sqlite3').verbose(); var config = require('./config.js'); var port = config.port || 8000; console.log("Starting app"); var db = new sqlite3.Database('links.db', sqlite3.OPEN_READWRITE | sqlite3.OPEN_CREATE, ...
JavaScript
0.999991
@@ -3019,32 +3019,36 @@ nfig.base_url + +row. path,%0A
7ebe692fd771c5c0477cf00d6f1f2db65255a842
Add comment about a line that can be removed once the new version of streen is in production
extension.js
extension.js
'use strict'; var EventEmitter = require('events').EventEmitter; var axon = require('axon'); var rpc = require('axon-rpc'); var req = axon.socket('req'); var subSock = axon.socket('sub'); var rpcClient = new rpc.Client(req); var equal = require('deep-equal'); module.exp...
JavaScript
0
@@ -3301,24 +3301,159 @@ tSub = data; +%0A%0A // 10-30-2015: Streen now ensures that %22months%22 is an integer.%0A // The below line can be removed soon. %0A @@ -3507,24 +3507,41 @@ ta.months);%0A + %0A
2b0f5f2a7063103008999941f044057a96a70753
Fix typo
index.js
index.js
'use strict'; var execFile = require('child_process').execFile; var fs = require('fs'); var rm = require('rimraf'); var tempfile = require('tempfile'); /** * Run a buffer through a child process * * @api public */ function ExecBuffer() { if (!(this instanceof ExecBuffer)) { return new ExecBuffer(); ...
JavaScript
0.999999
@@ -1006,35 +1006,36 @@ return this._ -src +dest ;%0A %7D%0A%0A thi
4e9304f6986390e2b63e2485e5f092d2a6a580f5
stop if no records given
lib/base/relations/utils.js
lib/base/relations/utils.js
exports.utils = { recordsToConditions: function(records, from, to){ const self = this if(from.length === 0 || to.length === 0 || records.length === 0) return false const conditions = {} var found = 0 from.forEach(function(key, index){ const opposite = to[index] var keyFound = false...
JavaScript
0.000013
@@ -82,24 +82,81 @@ self = this%0A + if(!records %7C%7C !Array.isArray(records)) return false%0A if(from. @@ -429,16 +429,20 @@ %7C%7C %5B%5D%0A + %0A r
bccca077810366b91afe2592351b4466aebefd1d
Remove unused import
src/components/connect.js
src/components/connect.js
import React, { Component, createElement } from 'react' import storeShape from '../utils/storeShape' import shallowEqual from '../utils/shallowEqual' import isPlainObject from '../utils/isPlainObject' import wrapActionCreators from '../utils/wrapActionCreators' import hoistStatics from 'hoist-non-react-statics' import ...
JavaScript
0.000001
@@ -3,15 +3,8 @@ port - React, %7B C
ac424f56c1e6d43699e136b384bc0fbb14d7dcb3
Disable grammatik-option
src/main/js/screens/app/components/GakuseiNav.js
src/main/js/screens/app/components/GakuseiNav.js
import React from 'react'; import { Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap'; import { LinkContainer, IndexLinkContainer } from 'react-router-bootstrap'; import { Link, withRouter } from 'react-router'; import Utility from '../../../shared/util/Utility'; import * as Security from '../../../...
JavaScript
0.000015
@@ -1426,16 +1426,24 @@ NavItem +disabled %3EGrammat
c8a7a2b4251fc6155eac3ff141230856c610bd25
change gold license type
platform/gold/GoldPlatform.js
platform/gold/GoldPlatform.js
/* Copyright 2016 Firewalla LLC * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, *...
JavaScript
0
@@ -1142,10 +1142,10 @@ n %5B%22 -a2 +b1 %22%5D;%0A
5c2a629e2bb78edb2560b35c84ac1b3665cf3992
Update pattern for setting default options for the iterator
abstract-leveldown.js
abstract-leveldown.js
/* Copyright (c) 2013 Rod Vagg, MIT License */ var xtend = require('xtend') , AbstractIterator = require('./abstract-iterator') , AbstractChainedBatch = require('./abstract-chained-batch') function AbstractLevelDOWN (location) { if (!arguments.length || location === undefined) throw new E...
JavaScript
0
@@ -5077,30 +5077,8 @@ s = -'keys' in options ? !! opti @@ -5086,21 +5086,24 @@ ns.keys -: tru +!== fals e%0A opti @@ -5119,32 +5119,8 @@ s = -'values' in options ? !! opti @@ -5130,21 +5130,24 @@ .values -: tru +!== fals e%0A opti @@ -5268,37 +5268,8 @@ r = -'keyAsBuffer' in options ? !! opti @@ -5284...
f0545b13188a19c52776874c76684e649c81cc1c
Clear the progressbar value when hiding. Also make it 100% width.
Resources/ui/common/surveys/SurveysIndexView.js
Resources/ui/common/surveys/SurveysIndexView.js
//SurveysIndexView Component Constructor function SurveysIndexView() { var Survey = require('models/survey'); var _ = require('lib/underscore')._; var convertModelDataForTable = function() { return _(Survey.all()).map(function(survey) { return { title : survey.name, hasDetail : true, surveyID : surv...
JavaScript
0
@@ -974,17 +974,18 @@ %09%7D%0A%09%7D);%0A +%09 %0A - %09//creat @@ -1218,17 +1218,17 @@ bottom: -0 +2 ,%0A%09%09widt @@ -1235,11 +1235,14 @@ h : -250 +'100%25' ,%0A%09%09 @@ -1510,16 +1510,49 @@ Value()) + %7B%0A%09%09%09progressBar.setValue(0);%09%09%09 %0A%09%09%09prog @@ -1567,16 +1567,20 @@ hide();%0A ...
e2ac7bc02643ea402d4c9a720ae1f21e598cd515
Add colorpicker to Gruntfile
Gruntfile.js
Gruntfile.js
"use strict"; var srcFiles = 'app/**/*.js'; var htmlFiles = 'app/**/*.html'; var specFiles = 'spec/**/*.js'; var specE2eFiles = 'spec-e2e/**/*.js'; var devServerPort = 8084; var mountFolder = function(connect, dir) { return connect.static(require('path').resolve(dir)); }; module.exports = function(grunt) { grunt....
JavaScript
0
@@ -1948,32 +1948,123 @@ /d3/d3.min.js',%0A + './vendor/angular-foundation-colorpicker/js/foundation-colorpicker-module.js',%0A './v
62733ba1303e416771ea408b3d46786ae248bdf5
Update urlencoded.js
lib/parser/urlencoded.js
lib/parser/urlencoded.js
var qs = require('querystring'), util = require('../util'); /** * Parse urlencoded post request. * @param bin {Buffer} * @param parameter {string} * @param charset {string} * @return {Object} */ var parse = function (bin, parameter, charset) { var text = decodeURIComponent(util.decode(bin, charset)), ...
JavaScript
0
@@ -255,66 +255,201 @@ t) %7B + %0A%09%09 %0A%09%09var -text = decodeURIComponent(util.decode(bin, charset) +str = util.decode(bin, charset) %0A%09%09str=str.replace(/%25(%5BA-z%5D%5Ba-zA-Z0-9%5D)/g,function(_,code)%7B %0A %09%09return String.fromCharCode(parseInt(code,16)); %0A%09%09%7D),text = decodeURICompone...
9dd0ad72e36822ecc72d72a121e7c7f038c4af90
Fix asset build (#927)
ecosystem/platform/server/app/assets/config/manifest.js
ecosystem/platform/server/app/assets/config/manifest.js
/* * Copyright (c) Aptos * SPDX-License-Identifier: Apache-2.0 */ //= link_tree ../images //= link_directory ../stylesheets .css //= link_tree ../../javascript .js //= link_tree ../../../vendor/javascript .js
JavaScript
0
@@ -190,24 +190,48 @@ ./vendor/javascript .js%0A +//= link_tree ../builds%0A
1abca59f9ed5d0dc1f397088388914fc347cddd8
Update error message
src/main/js/project/components/Workspace.js
src/main/js/project/components/Workspace.js
var React = require('react'); var Modal = require('react-modal'); var ModalStyles = require('shared/misc/OverrideBullshitModalStyles.js'); var PersonList = require('project/components/PersonList.js'); var PairingBoard = require('project/components/PairingBoard.js'); var NameForm = require('shared/components/NameForm.j...
JavaScript
0.000001
@@ -1333,16 +1333,17 @@ ng... 10 +0 charact
ae37ac9bdaba90aa76df8d10b9eaf3722d5765cc
Add slim rule set
index.js
index.js
'use strict'; module.exports = { rules: { 'no-ajax': require('./rules/no-ajax'), 'no-animate': require('./rules/no-animate'), 'no-attr': require('./rules/no-attr'), 'no-bind': require('./rules/no-bind'), 'no-class': require('./rules/no-class'), 'no-clone': require('./rules/no-clone'), 'no...
JavaScript
0
@@ -3053,16 +3053,330 @@ %7D%0A + %7D,%0A slim: %7B%0A rules: %7B%0A %22jquery/no-ajax%22: 2,%0A %22jquery/no-animate%22: 2,%0A %22jquery/no-fade%22: 2,%0A %22jquery/no-hide%22: 2,%0A %22jquery/no-param%22: 2,%0A %22jquery/no-serialize%22: 2,%0A %22jque...
45f91526c9413c41a71bf0c0d7528abeda721b88
Use the option "watch" in Grunt compass task
Gruntfile.js
Gruntfile.js
/*jshint strict:true, browser:true, jquery:true, devel:true, curly:true, eqeqeq:true, immed:true, latedef:true, plusplus:true, undef:true, unused:true, laxbreak:true, nonew:false */ /*global module */ module.exports = function(grunt) { "use strict"; grunt.initConfig({ compass: { dist: { options: { htt...
JavaScript
0.999202
@@ -389,16 +389,34 @@ urcemap: + true,%0A%09%09%09%09%09watch: true%0A%09%09
6480a03f2da6099a75b57177b5de242484b2457e
Add a get classes method to styleManager
packages/stylishly/src/styleManager.js
packages/stylishly/src/styleManager.js
import warning from 'warning'; import { find } from './utils/helpers'; import { rulesToCSS } from './utils/css'; import { getClassNames } from './styleSheet'; import { getRenderer } from './renderers'; import { createPluginRegistry } from './pluginRegistry'; /** * styleManager module. Used to create styleManager obje...
JavaScript
0.000001
@@ -1202,16 +1202,32 @@ ger = %7B%0A + getClasses,%0A empt @@ -1330,641 +1330,147 @@ %0A%0A -/**%0A * Returns an object containing the current sheets in the renderer,%0A * keyed by grouping (default is %60default%60) with a CSS string as the value%0A *%0A * @memberOf module:styleManager~styleManager...
1231ec173ad3c1cca919e1ba1d197af1eb7a9c5b
Trim the team name before adding new team.
src/main/web/florence/js/functions/_viewTeams.js
src/main/web/florence/js/functions/_viewTeams.js
function viewTeams() { getTeams( success = function (data) { populateTeamsTable(data.teams); }, error = function (jqxhr) { handleApiError(jqxhr); } ); function populateTeamsTable(data) { var teams = _.sortBy(data, function (d) {return d.name.toLowerCase()}); var teamsHtml = t...
JavaScript
0.0011
@@ -865,16 +865,50 @@ %7D%0A%0A + teamName = teamName.trim();%0A po
2555cb67d4d8c7457406d9576e269a0297b2c768
Fix bug causing incorrect uri() value in Wee.routes
script/wee.routes.js
script/wee.routes.js
/* jshint maxdepth: 5 */ (function(W, U) { 'use strict'; W.fn.make('routes', { /** * Get currently bound URI values or set with string or value object * * @param {(object|string)} [value] * @param {string} [value.full] * @param {string} [value.hash] * @param {boolean} [value.history] * @param...
JavaScript
0.000001
@@ -715,25 +715,16 @@ a.search -.slice(1) ;%0A%0A%09%09%09%09i @@ -1045,18 +1045,16 @@ path + -a. search +
22d3ddab6c202ed8a9d8931d6df10bd811a05a89
Make map fit markers
src/main/webapp/script/map.js
src/main/webapp/script/map.js
function buildIconUrl(letter) { return "http://www.google.com/mapfiles/marker" + letter + ".png" } var TimeSlider = function(initialTime, initialDate, map) { var sliderValue = (initialTime.getHours() * 60) + (Math.floor(initialTime.getMinutes() / 15) * 15); function computeTime(value, twelveHour) { //...
JavaScript
0.000001
@@ -3254,32 +3254,86 @@ ection.empty();%0A + var bounds = new google.maps.LatLngBounds ();%0A $.each(d @@ -3914,32 +3914,40 @@ rker(map, letter +, bounds );%0A @@ -4076,32 +4076,63 @@ %7D%0A %7D);%0A + map.fitBounds(bounds);%0A %7D%0A %7D)%0A @@ -5580,24 +5580...
6b1a8d7dea1f6cc09f92a97b533a4daa11ea9075
Fix create action
src/middleware/operation/execute/graphql/resolver/write.js
src/middleware/operation/execute/graphql/resolver/write.js
'use strict'; const { throwError } = require('../../../../../error'); const { assignArray } = require('../../../../../utilities'); const { ACTIONS } = require('../../../../../constants'); const resolveWrite = async function ({ actions, actions: [{ actionConstant, modelName }], nextLayer, mInput, topArgs, })...
JavaScript
0.000001
@@ -1344,16 +1344,21 @@ rentData +%0A .find(cu @@ -1370,16 +1370,32 @@ Datum =%3E + currentDatum && current
b1960b3dc6f269ca3b7529125276963ca6e29243
add keep alive to connector
game-server/app/servers/connector/handler/entryHandler.js
game-server/app/servers/connector/handler/entryHandler.js
var pomelo = require('pomelo'); var logger = require('pomelo-logger').getLogger('sparxo-share-music-app'); module.exports = function (app) { return new Handler(app); }; var Handler = function (app) { this.app = app; if (!this.app) logger.error(app); }; var pro = Handler.prototype; pro.enter = fu...
JavaScript
0
@@ -1502,16 +1502,116 @@ %7D);%0A%7D%0A%0A +pro.keepAlive = function (msg, session, next) %7B%0A next(null, %7B code: 200, isExisted: false %7D);%0A%7D%0A%0A var onUs
26c4ccbe88ad9be33a7d399039978505ba6827d7
update hmr api
src/index.js
src/index.js
import Inferno from 'inferno' import {ga} from './lib/analytics' import Main from './components' import webfont from './lib/webfont' import styles from './styles' const container = document.createElement('div') container.className = styles.container ;(() => { webfont({ families: ['Cinzel Decorative:400'], ...
JavaScript
0.000005
@@ -611,19 +611,16 @@ r)%0A %7D%0A%7D -)() %0A%0Aif (mo @@ -651,12 +651,66 @@ .accept( +'./components/index', () =%3E %7B%0A render(%3CMain /%3E)%0A %7D )%0A%7D%0A
f1fa7f6be1f2f2450e91b64e6330efed0cf912d1
Add place holder for nav element to maintain spacing
src/components/Drawer.js
src/components/Drawer.js
const Radium = require('radium'); const React = require('react'); const Velocity = require('velocity-animate'); const Button = require('../components/Button'); const StyleConstants = require('../constants/Style'); const Drawer = React.createClass({ propTypes: { buttonPrimaryColor: React.PropTypes.string, d...
JavaScript
0
@@ -2446,16 +2446,52 @@ : null;%0A + ) : %3Cdiv style=%7Bstyles.nav%7D /%3E;%0A %7D,%0A%0A
35dda07522b5acae5dc0c638696ec39c2936f996
Return as early as possible
src/server/api/images.js
src/server/api/images.js
import tinify from 'tinify'; import sharp from 'sharp'; import Image from 'src/models/Image'; import s3 from 'src/config/s3'; import imagemin from 'imagemin'; import imageminPngquant from 'imagemin-pngquant'; import imageminMozJpeg from 'imagemin-mozjpeg'; import sizeOf from 'image-size'; import awsConfig from 'src/con...
JavaScript
0.000629
@@ -1258,16 +1258,546 @@ s) =%3E %7B%0A + const originalSize = sizeOf(req.file.buffer);%0A if (originalSize.width %3E 2560) originalSize.height = 2560;%0A if (originalSize.height %3E 1440) originalSize.width = 1440;%0A const filteredSizes = filterSizes(originalSize);%0A const img = new Image(%7B id: req.body.id %...
75c5a170c5890bb971c2f1acb71762562c80048c
fix win test
src/modules/@knit/find-dependencies/__tests__/unit.test.js
src/modules/@knit/find-dependencies/__tests__/unit.test.js
/* flow */ import path from "path"; import * as knit from ".."; const mockPath = path; require("read-pkg").__setMockPackages({ "@scope/package": {}, packageB: {} }); jest.mock("@knit/depcheck", () => jest.fn( module => new Promise(resolve => resolve({ using: { [mockPat...
JavaScript
0.000001
@@ -126,32 +126,46 @@ ges(%7B%0A +%5Bpath.join( %22@scope -/ +%22, %22 package%22 : %7B%7D,%0A @@ -156,16 +156,18 @@ package%22 +)%5D : %7B%7D,%0A
8573382f99f00ecdd07e7b73b65c0ae25ba5a3f4
Fix undefind displayName
src/index.js
src/index.js
import template from 'babel-template' import hash from './utils/hash' import getTarget from './utils/get-target' const buildStyledCall = template(`STYLED({ target: TARGET, displayName: DISPLAYNAME, identifier: IDENTIFIER })`) // Default imported variable name to "styled", adjust based on import below let impor...
JavaScript
0.001396
@@ -3035,16 +3035,31 @@ yName && + displayName && t.strin @@ -3152,16 +3152,30 @@ ifier && + identifier && t.strin
24fee577dbb10fec33f30f4ef1e61943ac74be2a
Fix CLI hanging
index.js
index.js
'use strict'; var dgram = require('dgram'); var dns = require('dns-socket'); var type = { v4: { server: '208.67.222.222', question: { name: 'myip.opendns.com', type: 'A' } }, v6: { server: '2620:0:ccc::2', question: { name: 'myip.opendns.com', type: 'AAAA' } } }; function query(version, cb...
JavaScript
0.000002
@@ -346,16 +346,29 @@ ion%5D;%0A%0A%09 +var socket = dns(%7B%0A%09%09 @@ -433,16 +433,26 @@ p4')%0A%09%7D) +;%0A%0A%09socket .query(%7B @@ -614,16 +614,36 @@ 0%5D.data; +%0A%09%09socket.destroy(); %0A%0A%09%09if (
9b3ac3027124f5f7976dec6359f22cf1a8a3b2e5
Remove the unnassary console log
src/components/nav-bar.js
src/components/nav-bar.js
import React from 'react' import Tabs, {Tab} from 'material-ui/Tabs' import {MuiThemeProvider} from 'material-ui/styles' import Card from 'material-ui/Card' import theme from './theme' import {Redirect} from "react-static"; class NavBar extends React.Component { constructor (props) { super(props) this.pageLi...
JavaScript
0.000003
@@ -678,59 +678,8 @@ ) %7B%0A - console.log('LINK ' + this.state.selection);%0A
9aa1fe501a2aac58805dd1ade297125730fce85a
fix memberupdate
bot/listen.js
bot/listen.js
const refresh = require('./lib/refresh'); const bot = require('./bot.js'); const settings = require('./../settings.json'); const modules = require('./modules.js'); const Message = require('./../orm/Message') const commands = require('./commands'); const request = require('request-promise-native'); let lock = false; bot...
JavaScript
0.000001
@@ -2513,22 +2513,21 @@ r, n -member +ewMem ) %7B%0A var @@ -2518,27 +2518,27 @@ wMem) %7B%0A -var +let user = memb @@ -2612,24 +2612,53 @@ 339072%22)) %7B%0A + let oldMem = member;%0A if(!
f9d2f561abcdb1bcbdc4ba49c56ed2871bf0a028
Add lerp function to expression language.
packages/vega-functions/src/codegen.js
packages/vega-functions/src/codegen.js
import { codegen, constants, functions } from 'vega-expression'; import { isTuple } from 'vega-dataflow'; import { selectionTest, selectionResolve, selectionVisitor } from 'vega-selections'; import { random } from 'vega-statistics'; import { isArray, isBoolean, isDate, isNumber, isObject, ...
JavaScript
0.000007
@@ -524,16 +524,24 @@ nrange,%0A + lerp,%0A pad,%0A @@ -2097,35 +2097,80 @@ toString,%0A -pad,%0A peek +flush,%0A lerp,%0A merge,%0A pad,%0A peek,%0A span,%0A inrange ,%0A truncate @@ -2517,53 +2517,16 @@ ,%0A -span,%0A merge,%0A flush,%0A bandspace,%0A inrang +bandspac e,%0A
09a825827b49315686cb273d2f01cdc8943ee9a5
Remove article layout from 11ty include
.eleventy.js
.eleventy.js
/* ***** ----------------------------------------------- ***** ** /* ***** Eleventy Config /* ***** ----------------------------------------------- ***** */ // Import transforms const parseContent = require('./eleventy/transforms/parseContent.js'); const minifyHtml = require('./eleventy/transforms/minifyHtml.js'); con...
JavaScript
0
@@ -2424,24 +2424,25 @@ s/base.njk') +; %0A config.ad @@ -2483,24 +2483,25 @@ efault.njk') +; %0A config.ad @@ -2544,66 +2544,9 @@ jk') -%0A config.addLayoutAlias('article', 'layouts/article.njk') +; %0A%0A
6c503ecf2b7026f71cf941e486a3f23682d4233b
Make search service tooltips slightly taller to fill hover gap
shared/search/user-search/search-bar.desktop.js
shared/search/user-search/search-bar.desktop.js
// @flow import React, {Component} from 'react' import _ from 'lodash' import {Box, Icon, Input, Text} from '../../common-adapters' import {globalStyles, globalColors, transition} from '../../styles/style-guide' import {platformToLogo24} from '../../constants/search' import type {SearchPlatforms} from '../../constant...
JavaScript
0
@@ -4502,16 +4502,51 @@ ack_40,%0A + borderBottom: '2px solid white',%0A border
bcf476a3d88eee353be64f133998e8233ddc4574
Lowercase the provided license name
index.js
index.js
#! /usr/bin/env node var program = require('commander'); var fs = require('fs'); // Get version from package.json. var version = require('./package.json').version; // Get available licenses. var licenses = []; fs.readdirSync(__dirname + '/licenses').map(function(license) { licenses.push(license.replace(/\.[0-9a-z]...
JavaScript
0.999999
@@ -1004,16 +1004,101 @@ tions)%7B%0A + // Lowercase the provided license name%0A license = license.toLowerCase();%0A %0A // U @@ -2473,24 +2473,109 @@ (license) %7B%0A + // Lowercase the provided license name%0A license = license.toLowerCase();%0A %0A if (!lic
832986fbc7e1d16c4de8c95e7a68286645ded451
Fix tasks never finishing (and thus never starting their deps)
index.js
index.js
'use strict'; var through = require('through2'); var gutil = require('gulp-util'); module.exports = function filelog (taskParam) { var count = 0; function decorate (color, text) { return text ? '[' + gutil.colors[color](text) + ']' : ''; } return through.obj(function (file, enc, callback) { var item...
JavaScript
0.000012
@@ -671,16 +671,18 @@ nction ( +cb ) %7B%0A @@ -817,16 +817,26 @@ les.');%0A + cb();%0A %7D);%0A%7D;
54c0e45ed2d674c0c1fc8e35aadb3c11da2681da
Break up some list operations in ngRedux
src/components/ngRedux.js
src/components/ngRedux.js
import Connector from './connector'; import invariant from 'invariant'; import {createStore, applyMiddleware, compose, combineReducers} from 'redux'; import digestMiddleware from './digestMiddleware'; import assign from 'lodash.assign'; import isArray from 'lodash.isarray'; import isFunction from 'lodash.isfunction'; ...
JavaScript
0.000022
@@ -231,16 +231,50 @@ ssign';%0A +import curry from 'lodash.curry';%0A import i @@ -351,27 +351,71 @@ n';%0A -%0Aconst isObject = x +import map from 'lodash.map';%0A%0Aconst typeIs = curry((type, val) =%3E @@ -425,22 +425,91 @@ eof -x +val === -'object' +type);%0Aconst isObject = typeIs('object');%0Aconst is...
b92cc2543329e55089cb28435f4ba00234dcb4d6
Remove globals handled by grumbler-scripts
.eslintrc.js
.eslintrc.js
/* @flow */ module.exports = { 'extends': './node_modules/grumbler-scripts/config/.eslintrc-browser.js', 'globals': { 'Promise': false, '__TEST__': true, '__MIN__': true, '__FILE_NAME__': true, '__PAYPAL_CHECKOUT__': true, '__paypal_checkout__': true, '_...
JavaScript
0
@@ -151,90 +151,8 @@ se,%0A - '__TEST__': true,%0A '__MIN__': true,%0A '__FILE_NAME__': true,%0A @@ -278,33 +278,8 @@ ue,%0A - '__ENV__': true,%0A
2fa763a6bb55e4c86218eb737971c7a26289da81
Rewrite Invert css
src/components/Invert.js
src/components/Invert.js
import React, { Component, Fragment } from 'react' import PropTypes from 'prop-types' import { Button } from '@hackclub/design-system' import IconButton from 'components/IconButton' const css = ` .invert { background-color: #fff; filter: invert(100%); } img:not([src*=".svg"]), video { filter: inve...
JavaScript
0.00003
@@ -94,16 +94,23 @@ %7B Button +, theme %7D from @@ -183,16 +183,46 @@ utton'%0A%0A +theme.colors.dark = '#17171d'%0A const cs @@ -265,46 +265,341 @@ or: -#fff;%0A filter: invert(100%25);%0A %7D%0A%0A +$%7Btheme.colors.dark%7D;%0A color: $%7Btheme.colors.white%7D !important;%0A %7D%0A%0A .invert %3E *...
b40e1149689b10397ff9adf35560ca8fb486176e
remove un-needed join() in debug array check
lib/protocol/Protocol.js
lib/protocol/Protocol.js
var Parser = require('./Parser'); var Sequences = require('./sequences'); var Packets = require('./packets'); var Auth = require('./Auth'); var Stream = require('stream').Stream; var Util = require('util'); var PacketWriter = require('./PacketWriter'); module.exports = Protocol; Uti...
JavaScript
0.000001
@@ -7221,15 +7221,8 @@ bug. -join(). inde
ecf6658716bde9b1330b1360bfe68d1ee47b1311
Add text dependency ability
find-deps.js
find-deps.js
var fs = require('fs'); var dirname = require('path').dirname; var pathJoin = require('path').join; var mine = require('./mine.js'); var modules = {}; exports.flush = flush; function flush() { var output = modules; modules = {}; return output; } exports.add = add; function add(path) { if (path in modules) re...
JavaScript
0.000008
@@ -1110,32 +1110,221 @@ return path;%0A%7D%0A%0A +function addText(path, real) %7B%0A if (path in modules) return path;%0A var txt = fs.readFileSync(real, %22utf8%22);%0A modules%5Bpath%5D = %22module.exports = %22 + JSON.stringify(txt);%0A return path;%0A%7D%0A%0A function baseRes @@ -1709,24 +1709,179 @@ lve(...
9badc3e217c1a60064254394895afa97fc818e8b
comment in-dev out
src/components/NavBar.js
src/components/NavBar.js
import React, { Component } from 'react'; import { NavLink, Link } from 'react-router-dom'; export default class NavBar extends Component { render() { const elements = [ { path: '/', text: 'Homepage' }, { path: '/agreementform', text: 'AgreementForm' }, { path: '/agreeme...
JavaScript
0
@@ -466,32 +466,34 @@ %7D,%0A +/* %7B path: '/thesis @@ -653,16 +653,18 @@ ings' %7D, +*/
b0b6e46959d14396ca017c6f58a82ea57082cffc
Tidy up Gruntfile
Gruntfile.js
Gruntfile.js
module.exports = function( grunt ) { // Load Tasks require( 'matchdep' ).filterDev( 'grunt-*' ).forEach( grunt.loadNpmTasks ); grunt.initConfig({ // jshint task jshint: { // Path to jshintrc file jshintrc: '.jshintrc', // Glob of where to find files to li...
JavaScript
0.000017
@@ -152,16 +152,405 @@ onfig(%7B%0A + // Editable config for the tasks to use%0A paths: %7B%0A scripts : 'scripts/**/*.js',%0A docs : 'build/docs',%0A staging : 'build/staging'%0A %7D,%0A ignores: %7B%0A staging: %5B%0A ...
171a24c2c9186f0d1fc9318d3b3980e94422b4dd
Store symbols in CodeEditor's cell state.
src/shared/CodeEditor.js
src/shared/CodeEditor.js
import { Component, TextPropertyEditor, isArrayEqual } from 'substance' import analyseCode from './analyseCode' import { getSyntaxTokens } from '../shared/expressionHelpers' export default class CodeEditor extends Component { didMount() { super.didMount() // this is used to run the code analysis thi...
JavaScript
0
@@ -1565,23 +1565,185 @@ -let tokens = %5B%5D +// tokens for syntax-highlighting%0A let tokens = %5B%5D%0A // symbols such as 'var', 'cell', or 'range'%0A let symbols = %5B%5D%0A // detected complex nodes, such as function calls %0A @@ -1794,24 +1794,33 @@ (%7Btokens, + symbols, nodes%7D = a...
e067cc6ad1c18fc10eb4adef09c1c355a8b576de
update eslint globals, re #7128
.eslintrc.js
.eslintrc.js
module.exports = { "extends": "eslint:recommended", // add your custom rules here rules: { "semi": ["error", "always"], "indent": ["error", 4], "space-before-function-paren": ["error", "never"], "no-extra-boolean-cast": 0, // 0=silence, 1=warning, 2=error // allow asy...
JavaScript
0
@@ -821,16 +821,40 @@ Params%22: + false,%0A %22fetch%22: false%0A
504fd7e84ead4e3b3d5461429c7660b5afca11aa
Add initial implementation
ffux.js
ffux.js
module.exports = function() { }
JavaScript
0.000001
@@ -1,35 +1,1498 @@ -%0A%0Amodule.exports = function() %7B%0A +const Bacon = require(%22baconjs%22)%0A%0Affux.run = run%0Aexport default ffux%0A%0Afunction ffux(%7BinitialState, actions%7D) %7B%0A return function (initState) %7B%0A const initial = arguments.length %3E 0 ? initState%0A : typeof initialState !==...
3ab8b78c892cc4f35a3fc796ac2b3ab9b1c97b1d
Change about location
src/components/NavBar.js
src/components/NavBar.js
var React = require('react'); var NavBar = React.createClass({ render: function () { return ( <div className="header"> <ul className="header"> <li className="header-left"><a href="/">Home</a></li> <li className="header-left"><a href="http://www.smogon.com/forums/forums/rate-m...
JavaScript
0.002068
@@ -562,72 +562,80 @@ http -s :// -github.com/TheFenderStory/rmt-template/blob/master/README.md +www.smogon.com/forums/threads/cleanrmt-a-rmt-formatting-tool.3583957/ %22 ta
a90afbee741ebc2d6724b3ee5420839bf1de4c56
Fix indentation issues
src/components/footer.js
src/components/footer.js
import { h, Component } from 'preact'; import axios from 'axios'; export default class Footer extends Component { constructor(props) { super(props); this.state = { contributors: [] }; } fetchContributers() { axios.get('https://api.github.com/repos/ivanseed/gitstats/contributors') ...
JavaScript
0.000038
@@ -339,33 +339,8 @@ %3E %7B%0A - console.log(1)%0A @@ -392,23 +392,19 @@ %7D)%0A - %7D)%0A - .cat @@ -411,26 +411,24 @@ ch(err =%3E %7B%0A - consol @@ -450,18 +450,16 @@ or :(')%0A - %7D)%0A
981085e9d9303529d0ff39ff33e26e4627c62842
add required platform argument to packager URL
app/assets/javascripts/components/Simulator.js
app/assets/javascripts/components/Simulator.js
'use strict'; import React, { Component } from 'react'; import classNames from 'classnames'; import Qs from 'qs'; import { result, find, template, clone } from 'lodash'; import BuildPicker from './BuildPicker'; import QrModal from './qr_modal'; import Switch from './Switch'; // Sample appetize URL // https://appetize...
JavaScript
0
@@ -1617,16 +1617,42 @@ t_name%7D) + + %60?platform=$%7Bplatform%7D%60 %0A %7D%0A%0A
9a279c266a058e6c7a6f0e18a4c1b486b9201e57
Add EventListener to reloaded document
Sources/kitchen.js
Sources/kitchen.js
/* kitchen.js Copyright (C) 2015 toshi0383 All Rights Reserved. */ var parser; var currentTab; var tabItemDictionary; /// Presenters function defaultPresenter(xml) { dismissModal(); if(this.loadingIndicatorVisible) { navigationDocument.replaceDocument(xml, this.loadingIndicator); this.loadin...
JavaScript
0
@@ -5772,24 +5772,268 @@ xmlString);%0A + doc.addEventListener(%22select%22, load.bind(this));%0A doc.addEventListener(%22highlight%22, highlight.bind(this));%0A doc.addEventListener(%22holdselect%22, holdselect.bind(this));%0A doc.addEventListener(%22play%22, play.bind(this));%0A ...
21c3d6928b6ef370484b04773ec3b85250ea4320
Update Gruntfile.js to latest file list from FOAModels.js
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { require('grunt-log-headers')(grunt); // Returns the repetitive shell commands for measuring the size. function sizeOptions() { var ret = {}; function oneSize(file, gzip) { ret[file + (gzip ? '.gz' : '')] = { command: 'cat build/' + file + ' | ' + ...
JavaScript
0
@@ -1854,32 +1854,89 @@ 'core/view.js',%0A + 'core/layout.js',%0A 'core/daoView.js',%0A 'core/ @@ -2352,19 +2352,80 @@ 'core/ -dao +messaging.js',%0A 'core/dao.js',%0A 'core/arrayDAO .js',%0A @@ -2917,40 +2917,8 @@ s',%0A - 'lib/email/email.js',%0A @...
de749ab1c46319ca27e4ebd3a061bda0dac3dec1
tweak eslint config
.eslintrc.js
.eslintrc.js
const CHECK_CODESTYLE = process.env.CODE_STYLE === 'true'; module.exports = { extends: '@emico/eslint-config', rules: { 'react/react-in-jsx-scope': 'off', 'no-use-before-define': 'off', 'import/order': [ // This is an annoying code style rule that can be fixed automatically. // Only check i...
JavaScript
0.000001
@@ -83,16 +83,17 @@ xtends: +%5B '@emico/ @@ -111,58 +111,48 @@ ig', -%0A rules: %7B%0A 'react/react-in-jsx-scope': 'off', + 'plugin:react/jsx-runtime'%5D,%0A rules: %7B %0A
fbe0c329e32e48b252deac8a90ac6e83675d5143
remove logging
app/assets/javascripts/controllers/meetings.js
app/assets/javascripts/controllers/meetings.js
APP.controllers.meetings = (function() { function init() { if ($("section.meeting").exists()) { initMeetingDetail(); } if ($("section.create-meeting").exists()) { initCreateMeeting(); } if ($("section.meetings-compose-mail").exists()) { initComposeMailMeeting...
JavaScript
0.000001
@@ -1616,41 +1616,8 @@ ();%0A - console.log(user_index);%0A
c2b021f3d5e2d405ce58f738ad8bb5fa16dbbcac
Allow elements other than divs to be detected as forms
app/assets/javascripts/helpers/form_helpers.js
app/assets/javascripts/helpers/form_helpers.js
var FORM_HELPERS = (function (){ 'use strict'; /** * Returns a method that renders templates from a given default path. * * @param {String} defaultPath The absolute path to where the templates reside. * @return {renderFromPath~inner} The renderer. */ function renderFromPath(defaultPath) { ...
JavaScript
0
@@ -3257,11 +3257,8 @@ ts(' -div %5Bdat
ee8953605aec21e78b3e33b7fde96f0012787084
add method to get isReceived false
src/managers/merchandiser/efr-pk-manager.js
src/managers/merchandiser/efr-pk-manager.js
'use strict'; // external deps var ObjectId = require('mongodb').ObjectId; // internal deps require('mongodb-toolkit'); var BateeqModels = require('bateeq-models'); var map = BateeqModels.map; var SPKDoc = BateeqModels.merchandiser.SPK; var SPKItem = BateeqModels.merchandiser.SPKItem; var moduleId = "EFR-PK/PBA"; ...
JavaScript
0.000065
@@ -1979,16 +1979,1411 @@ %7D;%0A%0A + query%5B'$and'%5D.push($or);%0A %7D %0A this.SPKDocCollection%0A .where(query)%0A .page(_paging.page, _paging.size)%0A .orderBy(_paging.order, _paging.asc)%0A .execute()%0A ...
47632a1fb96798304e38bf9a792d0efe4ac74106
Add missing `data` prop type to `Option`
src/components/Option.js
src/components/Option.js
// @flow import React, { type Node } from 'react'; import { css } from 'emotion'; import type { CommonProps, PropsWithStyles, InnerRef } from '../types'; type State = { /** Wether the option is disabled. */ isDisabled: boolean, /** Wether the option is focused. */ isFocused: boolean, /** Whether the option ...
JavaScript
0
@@ -1003,16 +1003,74 @@ ption',%0A + /* The data of the selected option. */%0A data: any,%0A %7D;%0A%0Aex
17d02350b013faa5fef7634795c480521e39d2ca
Fix .eslintrc.js
.eslintrc.js
.eslintrc.js
module.exports = { extends: [ 'onelint' ], env: { es6: false }, parserOptions: null };
JavaScript
0.000002
@@ -91,33 +91,8 @@ %7D -,%0A parserOptions: null %0A%7D;%0A
2488205f4abe93c6729cfc7925df1e576c97d609
Fix services output spacing
cli/lib/services/list.js
cli/lib/services/list.js
'use strict'; var servicesList = exports; var Promise = require('es6-promise').Promise; var _ = require('lodash'); var output = require('../cli/output'); var client = require('../api/client').create(); servicesList.output = {}; servicesList.output.success = output.create(function(services) { var length = services...
JavaScript
0.000027
@@ -413,9 +413,36 @@ me, -4 +service.body.name.length + 1 );%0A
938cae6d99a6a51846ca79b292fa56b320273656
disable rule ember/avoid-leaking-state-in-ember-objects
.eslintrc.js
.eslintrc.js
module.exports = { root: true, parserOptions: { ecmaVersion: 2017, sourceType: 'module' }, plugins: [ 'ember' ], extends: [ 'eslint:recommended', 'plugin:ember/recommended', 'plugin:ember-suave/recommended' ], env: { browser: true }, rules: { }, overrides: [ // no...
JavaScript
0
@@ -284,16 +284,72 @@ ules: %7B%0A + 'ember/avoid-leaking-state-in-ember-objects': 'off'%0A %7D,%0A o
de2c278ab286e1b920117dedda540be210ce92c0
validate code5
Survu/index.ios.js
Survu/index.ios.js
const styles = require('./styles.js') const Firebase = require('firebase'); const StatusBar = require('./components/StatusBar'); const ActionButton = require('./components/ActionButton'); const ListItem = require('./components/ListItem'); const { ListView, TextInput, Switch, SliderIOS, AlertIOS, DatePickerIOS, Picker, ...
JavaScript
0.020861
@@ -822,101 +822,746 @@ l);%0A -var refRequest = new Firebase(FirebaseUrlR +%0Aref.child(%22request%22).on(%22child_added%22, function(snapshot) %7B%0A var newPost = snapshot.val();%0A //console.log(%22Title: %22 + newPost.title);%0A //console.log(%22Text: %22 + newPost.text);%0A //console.log(%22Previous Post ID:...
e341e71a630384a2c96cf53c3657cc4c2099c2a9
Fix surrogate pair split :sushi:
src/index.js
src/index.js
/* @flow */ /** * sanketa * * @param {number|string} rawChars - raw chars * @param {Object} [opts] - options * @param {boolean} [opts.r] - reverse flag * @param {number|string} [opts.s] - sepalater * @return {string} */ export default function sanketa(rawChars: (number|string), opts: Object = {}): string { co...
JavaScript
0
@@ -530,30 +530,32 @@ chars = -chars.split('' +Array.from(chars ).map((c @@ -1091,22 +1091,24 @@ urn -chars.split('' +Array.from(chars ).re
e3c244bf8da67bbbaeda5d746f6f080e56eb5caf
update index.js reduce tasks
index.js
index.js
"use strict"; var options = require('minimist')(process.argv.slice(2)); module.exports = function(server, config) { var assemble = require('./lib/assemble/config'); var runSequence = require('run-sequence').use(assemble); var livereload = require('gulp-livereload'); assemble.task('clean', require('./l...
JavaScript
0.000001
@@ -6,16 +6,67 @@ strict%22; +%0A%0Avar template = require('lodash/string/template'); %0Avar opt @@ -120,57 +120,312 @@ ));%0A -%0Amodule.exports = function( +var serverConfig = require((process.cwd() + '/' + options.serverConfig %7C%7C (process.cwd() + '/' + './env/config/local.json')))%5B(options.env %7C%7C 'devel...
77cb836a8cec20c5e842e12385d7c42c3520aaa1
Append CODE_FILE, CODE_LINE and CODE_FUNC for Error instances
index.js
index.js
"use strict"; var journal = require( './build/Release/journal_send.node' ); function obj2iovec( iovec, obj, prefix ) { if( prefix === undefined ) prefix = ''; // Go through all fields for( var o in obj ) { var name = o.toUpperCase(); if( typeof obj[o] == 'object' ) { obj2iovec( iovec, obj[o], prefix + nam...
JavaScript
0.000001
@@ -71,16 +71,80 @@ de' );%0A%0A +var stackTraceRE = /at (%5B%5E%5C %5D+) %5C((%5B%5E:%5D+):(%5B0-9%5D+):%5B0-9%5D+%5C)$/;%0A%0A function @@ -928,74 +928,539 @@ ) %7B%0A -%09%09fields.STACK_TRACE = message.stack;%0A%09%09message = message.message; +%0A%09%09var stack = message.stack.toString();%0A%0A%09%09// Store s...
c439437e9a3e740e1e3847e8dbcdf5a11c0fd490
remove @ for handling of files in /support
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.loadTasks('./grunt/tasks'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.registerTask('default', ['peg', 'amberc:all']); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { banner: '/*!\n <%= pkg.title || pkg.name %> - v<%= pkg.ve...
JavaScript
0
@@ -3282,25 +3282,24 @@ erpreter', ' -@ parser',%0A @@ -4079,9 +4079,8 @@ ', ' -@ pars
9f003cb11b19e01f5dc4b023eaab122bd95c5ba4
Extend eslint config from @patternslib/dev.
.eslintrc.js
.eslintrc.js
module.exports = { extends: ["eslint:recommended", "prettier"], root: true, env: { es6: "true", browser: true, node: true, jest: true, }, parser: "@babel/eslint-parser", ignorePatterns: [], rules: { "no-debugger": 1, "no-duplicate-imports": 1, ...
JavaScript
0
@@ -14,604 +14,46 @@ s = -%7B%0A extends: %5B%22eslint:recommended%22, %22prettier%22%5D,%0A root: true,%0A env: %7B%0A es6: %22true%22,%0A browser: true,%0A node: true,%0A jest: true,%0A %7D,%0A parser: %22@babel/eslint-parser%22,%0A ignorePatterns: %5B%5D,%0A rules: ...
5ce80d01a8d364a6865034367faadff622fa7beb
Copy project.yaml to proper dest location
generators/app/index.js
generators/app/index.js
'use strict'; /** * Drizzle Project Yeoman Generator * * @example yo drizzle * @example yo drizzle --full * @example yo drizzle --help */ const chalk = require('chalk'); const inquirer = require('inquirer'); const yeoman = require('yeoman-generator'); const utils = require('./utils'); const PackageType = { P...
JavaScript
0
@@ -3496,16 +3496,136 @@ s%0A ); +%0A%0A this.fs.copyTpl(%0A %60$%7Btemplates%7D/project.yaml%60,%0A %60$%7Bdest%7D/src/data/project.yaml%60,%0A this.props%0A ); %0A %7D%0A%0A
ed53d584e6bf5a0988b6960129ef30d900cd4d25
Remove unneeded helpers
go/base/static/js/test/apps/dialogue/states/end.test.js
go/base/static/js/test/apps/dialogue/states/end.test.js
describe("go.apps.dialogue.states.end", function() { var dialogue = go.apps.dialogue, states = go.apps.dialogue.states; var setUp = dialogue.testHelpers.setUp, tearDown = dialogue.testHelpers.tearDown, newDialogueDiagram = dialogue.testHelpers.newDialogueDiagram; var oneElExists = go.testHelpe...
JavaScript
0.000001
@@ -285,103 +285,8 @@ m;%0A%0A - var oneElExists = go.testHelpers.oneElExists,%0A noElExists = go.testHelpers.noElExists;%0A%0A va
528db6e339dd80d1787efb4bc575a0acd75a81e3
remove get function
github-better-header.js
github-better-header.js
;(function() { // Promise object of retrieving a web resource function get(url) { return new Promise(function(resolve, reject) { fetch(url).then(function(response) { return response.text(); }).then(resolve); }); } // Promise-like object of gathering variables function variablesPo...
JavaScript
0.000007
@@ -13,242 +13,8 @@ %7B%0A%0A - // Promise object of retrieving a web resource%0A function get(url) %7B%0A return new Promise(function(resolve, reject) %7B%0A fetch(url).then(function(response) %7B%0A return response.text();%0A %7D).then(resolve);%0A %7D);%0A %7D%0A%0A // @@ -958,19 +958,...
cf6b0f69755e01e0f74da90d8b82c2a14991fb3b
Enable Cross-origin resource sharing for all routes
index.js
index.js
'use strict' require('babel/register')({ optional: ['es7.decorators', 'es7.objectRestSpread'] }) var Hapi = require('hapi') var Primus = require('primus') var config = require('config') var EventEmitter = require('eventemitter3') var logger = require('./lib/util/log')(module) var routes = require('./lib/routes') va...
JavaScript
0
@@ -392,16 +392,77 @@ .Server( +%7B%0A connections: %7B%0A routes: %7B%0A cors: true%0A %7D%0A %7D%0A%7D )%0Avar Ro
7d56a3f8d499bc9fd08fab94de74e7accddee572
app/**/*, not app**/*
gulp/config.js
gulp/config.js
var dest = './dist'; var src = './app'; module.exports = { browserSync: { notify: true, minify: false, browser: 'google chrome', server: { // We're serving the src folder as well, // for sass sourcemap linking baseDir: [dest, src] }, files: [ dest + '/**', '!' + dest + '/**.map', // Exclude...
JavaScript
0.998055
@@ -360,16 +360,17 @@ %09src + ' +/ **/*.%7Bjs
0d73a80cfa785b78659b581a84108363daa74703
Update update peer dependencies script to update peer dependencies of output packages as well
scripts/update-peer-dependencies.js
scripts/update-peer-dependencies.js
const fs = require('fs'); const { PackageGraph } = require('@lerna/package-graph'); const { Project } = require('@lerna/project'); const { getFilteredPackages } = require('@lerna/filter-options'); const { join, relative } = require('path'); const log = require('npmlog'); (async () => { const cwd = join(__dirname, '....
JavaScript
0
@@ -270,213 +270,264 @@ );%0A%0A -(async () =%3E %7B%0A const cwd = join(__dirname, '..');%0A const project = new Project(cwd);%0A const packages = await project.getPackages();%0A const packageGraph = new PackageGraph(packages);%0A%0A const framework +function getPackagesWithPeerDependency(packages, peerDependenc...
738f26cba04a08831c84a77912122affc91de2f0
stop emitting two `click` events for every cursor intersection (fixes #351)
src/components/cursor.js
src/components/cursor.js
var registerComponent = require('../core/register-component').registerComponent; module.exports.Component = registerComponent('cursor', { defaults: { value: { timeout: 0, maxDistance: 5, fuse: false } }, dependencies: { value: { raycaster: '' } }, init: { value: function (...
JavaScript
0
@@ -1216,50 +1216,8 @@ ');%0A - this.intersectedEl.emit('click');%0A
f6aa8b17dd208bbc66547e6752101ec791072b1d
check for process.on [BROWSER]
index.js
index.js
'use strict'; var inherits = require('util').inherits var rules = require('./rules') function createId () { return ( Math.random().toString(16).substring(2) + Math.random().toString(16).substring(2) ) } function find (array, id) { if(!id) return for (var k in array) { if(array[k].id == id) return ...
JavaScript
0
@@ -201,18 +201,17 @@ tring(2) - %0A + )%0A%7D%0A%0Af @@ -690,21 +690,17 @@ rn funx%0A - %0A + var @@ -852,17 +852,16 @@ n: funx, - %0A n @@ -1378,15 +1378,9 @@ ned%0A - %0A + @@ -1462,19 +1462,17 @@ r around - %0A +%0A %0A @@ -1559,17 +1559,16 @@ ( around - %0A ...
31ecb354ded325c31a6ff166d2ef0eee4a6e6826
Add U to API in plugins initializer.
initializers/plugins.js
initializers/plugins.js
var Promise = require('../lib/promise'); exports.initialize = function (API, args) { var promises = [ require('../plugins/path').initialize(API, args), require('../plugins/shell').initialize(API, args), require('../plugins/ssh').initialize(API, args), require('../plugins/git_config').initialize(AP...
JavaScript
0
@@ -1,12 +1,43 @@ var%0A +U = require('../lib/u'),%0A Promise @@ -116,16 +116,41 @@ %7B%0A var + promises;%0A%0A API.U = U;%0A %0A promi
a2e6f0fb3b28ade6e8bd1ae1a959eb9794f4f845
Update CSS rule
lib/rules/style/sheet.js
lib/rules/style/sheet.js
exports.name = "style.sheet"; exports.check = function (sr, done) { if (!sr.config.styleSheet) return done(); var url = "//www.w3.org/StyleSheets/TR/" + sr.config.styleSheet , sels = [ "head > link[rel=stylesheet][href='" + url + "']" , "head > link[rel=stylesheet][href='htt...
JavaScript
0
@@ -151,16 +151,21 @@ eets/TR/ +2016/ %22 + sr.c
d196dd65c5c9d22681d69c6fc5ff3ab827e0d921
Disable warning for max-len and valid-jsdoc rules.
.eslintrc.js
.eslintrc.js
module.exports = { "extends": "google", "rules": { "max-len": "warn", "max-nested-callbacks": ["warn", {"max": 5}], "valid-jsdoc": "warn" } };
JavaScript
0
@@ -71,22 +71,17 @@ x-len%22: -%22warn%22 +0 ,%0A @@ -151,22 +151,17 @@ jsdoc%22: -%22warn%22 +0 %0A %7D%0A%7D
0e37ab9f249c447728557c7cbd6bceada4e82f98
Fix x axis for time
app/assets/scripts/components/scatter-chart.js
app/assets/scripts/components/scatter-chart.js
import React from 'react'; import PropTypes from 'prop-types'; import { Scatter } from 'react-chartjs-2'; export default function ScatterChart({ data, xAxisLabels }) { const series = { labels: xAxisLabels, datasets: [ { label: 'average', data: data, backgroundColor: '#198CFF', ...
JavaScript
0.000064
@@ -147,21 +147,8 @@ data -, xAxisLabels %7D) @@ -172,33 +172,8 @@ = %7B%0A - labels: xAxisLabels,%0A @@ -617,32 +617,189 @@ es: %5B%0A %7B%0A + type: 'time',%0A time: %7B%0A unit: 'month',%0A displayFormats: %7B%0A quarter: 'MMM',%0A ...
7bff152ad1b1fe7a3baf5f2e7754eb34b5ceeb19
Fix the space captureApiError handler.
src/modules/spaces/actions.js
src/modules/spaces/actions.js
import {actionCreatorsFor} from 'redux-crud' import cuid from 'cuid' import e from 'gEngine/engine' import app from 'ampersand-app' import {changeActionState} from 'gModules/canvas_state/actions' import {saveCheckpoint} from 'gModules/checkpoints/actions' import * as userActions from 'gModules/users/actions' import * ...
JavaScript
0.000003
@@ -5533,35 +5533,51 @@ cesUpdate', -null, null, +err.jqXHR, err.textStatus, err, %7Burl:
a687f14d4444eb934d8325c0fae46d492707f9d8
Implement Hero
src/components/layout.js
src/components/layout.js
import React from 'react' import PropTypes from 'prop-types' import Helmet from 'react-helmet' import { StaticQuery, graphql } from 'gatsby' import Header from './header' import './layout.sass' const Layout = ({ children }) => ( <StaticQuery query={graphql` query SiteTitleQuery { site { ...
JavaScript
0.000006
@@ -144,20 +144,18 @@ mport He -ade r +o from '. @@ -157,20 +157,18 @@ om './he -ade r +o '%0Aimport @@ -496,32 +496,46 @@ %7B%5B%0A %7B +%0A name: 'descript @@ -543,26 +543,96 @@ on', - content: 'Sample' +%0A content: 'A list of public Slack networks around the world.',%...
ba9a2eb395d25bb22accb0a20e47b8700984352a
use explicit two digit date parts (helps testing, and ensures consistency across browsers)
src/plugin/iframe_root/modules/lib/formatters.js
src/plugin/iframe_root/modules/lib/formatters.js
define([], () => { 'use strict'; function formattedDate(time) { return Intl.DateTimeFormat('en-US', { year: 'numeric', month: 'numeric', day: 'numeric', hour: '2-digit', minute: 'numeric', hour12: true }).format(time); ...
JavaScript
0
@@ -161,23 +161,23 @@ month: ' -numeric +2-digit ',%0A @@ -189,23 +189,23 @@ day: ' -numeric +2-digit ',%0A @@ -249,23 +249,23 @@ inute: ' -numeric +2-digit ',%0A
f62d22de1fea44ec23f5c41674f0ed7e8991bddd
Disable tests for now
gulp/server.js
gulp/server.js
'use strict'; var gulp = require('gulp'); var paths = gulp.paths; var util = require('util'); var browserSync = require('browser-sync'); var middleware = require('./proxy'); function browserSyncInit(baseDir, files, browser) { browser = browser === undefined ? 'google chrome' : browser; var routes = null; i...
JavaScript
0
@@ -736,21 +736,8 @@ dep' -, 'test:auto' %5D, f
9469b50f703248863cf4d8e590b2d235a5cb698e
Switch back to using parallel processing, by impose a limit
src/modules/startCapturing.js
src/modules/startCapturing.js
// startCapturing.js // ================= /* Copyright 2014 Yahoo! Inc. * Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */ var utils = require('./utils'), defaultOptions = require('./defaultOptions'), startCronJob = require('./startCronJob'), async = require('a...
JavaScript
0.000001
@@ -2037,21 +2037,32 @@ ync. -series +parallelLimit (tasks, + 10, fun
10861a0c0539e23626385f0971954b8deaf6420e
fix file path
e2e/specs/completions.js
e2e/specs/completions.js
const assert = require('assert'); function run(server) { server.send({ command: 'open', arguments: { file: './main.ts', fileContent: 'const q = gql`query { ', scriptKindName: "TS" } }); server.send({ command: 'completions', arguments: { file: 'main.ts', offset: 22, line: 1, prefix: '' } }); return server.close()...
JavaScript
0.000003
@@ -31,31 +31,131 @@ ');%0A -%0Afunction run(server) %7B +const path = require('path');%0A%0Afunction run(server) %7B%0A const file = path.resolve(__dirname, '../project-fixture/main.ts'); %0A s @@ -205,21 +205,8 @@ file -: './main.ts' , fi @@ -330,19 +330,8 @@ file -: 'main.ts' , of
f8b846782e920b7a2e04e22605108457e274bcde
change junit reporter
Gruntfile.js
Gruntfile.js
module.exports = function (grunt) { 'use strict'; // prevent grunt failing by test errors grunt.option('force', true); // redirect mocha node tests to the given xml // @see https://github.com/peerigon/xunit-file/blob/master/lib/xunit-file.js process.env.JUNIT_REPORT_PATH = 'build/test-results/node.xml'; ...
JavaScript
0
@@ -2764,25 +2764,21 @@ ',%0A ' -mochaTest +karma :test',%0A @@ -2774,37 +2774,41 @@ rma:test',%0A ' -karma +mochaTest :test',%0A 'sto
b52601ec6bcf4acad81767529b83b940b88a704a
Add migration code to support default directories
fist.js
fist.js
'use strict'; var Server = /** @type Server */ require('./core/server'); var _ = require('lodash-node'); var inherit = require('inherit'); var path = require('path'); var dirname = path.dirname(module.parent.filename); /** * @param {Object} [params] * @param {Object} [members] * @param {Object} [statics] * * @r...
JavaScript
0
@@ -390,20 +390,19 @@ var -Fist +app = fist. inhe @@ -397,24 +397,31 @@ = fist. -inherit( +create(params, members, @@ -440,89 +440,201 @@ -params = _.extend(%7Bcwd: +return app.%0A plug(path.join(__ dirname -%7D , -params);%0A%0A return new Fist(params).%0A +'plugins', '**', '*.js')%0A%0A ...
8a2b13662fbdb8a844cce1c922fabc557b8db522
Use ts eslint quotes
.eslintrc.js
.eslintrc.js
module.exports = { parser: "@typescript-eslint/parser", env: { browser: true, node: true }, plugins: [ "@typescript-eslint", "node", "import", "react", "react-hooks" ], settings: { react: { version: "17.0.2" // stable Di...
JavaScript
0
@@ -567,27 +567,13 @@ es: -%5B%22error%22, %22double%22%5D +%22off%22 ,%0A @@ -1166,32 +1166,90 @@ semi%22: %22error%22,%0A + %22@typescript-eslint/quotes%22: %5B%22error%22, %22double%22%5D,%0A %22@typesc
e5b677c7f6197d2ea4c640d7ce2ff5eab16722bd
Fix naming of MOVE event in index.js
src/index.js
src/index.js
var EventEmitter = require('events'); var util = require('util'); var Runtime = require('./engine/runtime'); var adapter = require('./engine/adapter'); /** * Handles connections between blocks, stage, and extensions. * * @author Andrew Sliwinski <ascii@media.mit.edu> */ function VirtualMachine () { var instan...
JavaScript
0.000077
@@ -1587,21 +1587,21 @@ old -Field +Input : e.oldI @@ -1675,13 +1675,13 @@ new -Field +Input : e.
f7e0aaa1ada5e4dc62454aa4ec7c00fdde314c21
Use built-in arrow-parens rule
.eslintrc.js
.eslintrc.js
module.exports = { 'extends': ['standard', 'plugin:ava/recommended'], 'parserOptions': { 'ecmaVersion': 2017, 'sourceType': 'module', 'ecmaFeatures': { 'impliedStrict': true } }, 'env': { 'node': false, 'node-globals/env': true }, 'plugins': ['ava', 'babel', 'import', 'node-glo...
JavaScript
0
@@ -341,24 +341,68 @@ 'rules': %7B%0A + 'arrow-parens': %5B'error', 'as-needed'%5D,%0A 'ava/no- @@ -482,58 +482,8 @@ r',%0A - 'babel/arrow-parens': %5B'error', 'as-needed'%5D,%0A
d8d2428b6f16137422d15df0a81766341924b665
delete *.*~
healthygeek.js
healthygeek.js
HealthygeeksList = new Mongo.Collection('healthygeeks'); if (Meteor.isClient) { Template.body.events({ "submit form": function (event) { // Prevent default browser form submit event.preventDefault(); // Get value from form element var yourHeight = event.target.yourHeight.value; v...
JavaScript
0.000001
@@ -1062,17 +1062,17 @@ tent = %22 -%E6%82%A8 +%E4%BD%A0 %E7%9A%84%E4%BD%93%E9%87%8D%E8%BF%87%E8%BD%BB%22; @@ -1181,17 +1181,17 @@ tent = %22 -%E6%82%A8 +%E4%BD%A0 %E7%9A%84%E4%BD%93%E9%87%8D%E6%AD%A3%E5%B8%B8%22; @@ -1296,25 +1296,25 @@ tContent = %22 -%E6%82%A8 +%E4%BD%A0 %E7%9A%84%E4%BD%93%E9%87%8D%E8%B6%85%...
5743a9cb1de70f794610fbf04f86081014903864
change data to properties in unit.js
domain/unit.js
domain/unit.js
var pluralizer = new Inflector(); var Imperial = 'imperial'; var Metric = 'metric'; var Both = 'both'; var Wet = 'wet'; var Dry = 'dry'; var Unit = function(data) { this.name = data.name; this.alternateNames = data.alternateNames || []; this.plural = data.plural || pluralizer.plural(this.name) this.system = d...
JavaScript
0.000001
@@ -152,20 +152,26 @@ unction( -data +properties ) %7B%0A th @@ -180,20 +180,26 @@ .name = -data +properties .name;%0A @@ -221,20 +221,26 @@ Names = -data +properties .alterna @@ -270,20 +270,26 @@ lural = -data +properties .plural @@ -336,20 +336,26 @@ ystem = -data +properties .system; @@ -372,20 +37...
fc8ec72b1b4c3e5ab9734eb461a4a9f093d26b6c
Make item creation match page creation
src/menu-items/index.js
src/menu-items/index.js
// TODO: componentize var PouchDB = require('pouchdb'); var db = new PouchDB(location.protocol + '//' + location.hostname + ':' + location.port + '/' + location.pathname.split('/')[1]); module.exports = { replace: true, template: require('./template.html'), paramAttributes: ['type'], data: function() { ...
JavaScript
0.000001
@@ -2977,25 +2977,24 @@ %7D,%0A -createDoc +modalize : functi @@ -2992,32 +2992,67 @@ e: function( -type +doc ) %7B%0A + console.log('modalize', doc);%0A var se @@ -3095,22 +3095,19 @@ oot. -createDoc(type +editDoc(doc );%0A @@ -3187,23 +3187,31 @@ -%7D,%0A editDoc: + modal.$on('afterD...
c6486c953ffe1fbca732d13eeb7ae3ed5bf0d293
Fix hotel validation bug
step-capstone/src/components/TravelObjectForms/AddHotel.js
step-capstone/src/components/TravelObjectForms/AddHotel.js
import React, { useEffect } from "react"; import { useState } from "react"; import { TextField, Grid, Checkbox, FormControlLabel, Box, } from "@material-ui/core"; import { MuiPickersUtilsProvider, KeyboardDateTimePicker, } from "@material-ui/pickers"; import DateFnsUtils from "@date-io/date-fns"; import L...
JavaScript
0.000001
@@ -2611,20 +2611,71 @@ ess===%22%22 -)) %7B +%7C%7Clocation.address === null)) %7B%0A console.log(%22hi%22) %0A p @@ -4907,16 +4907,45 @@ s === %22%22 + %7C%7C location.address === null )%7D%0A
a4115cc668e0d621b1422992271089496f2142a8
Change Gruntfile.js
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: { options: { banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' }, build: { src: 'src/<%= pkg.name %>.js', de...
JavaScript
0.000001
@@ -176,31 +176,21 @@ r: '/*! -%3C%25= pkg.name %25%3E +canal %3C%25= gru @@ -272,31 +272,21 @@ c: 'src/ -%3C%25= pkg.name %25%3E +canal .js',%0A @@ -308,23 +308,13 @@ ild/ -%3C%25= pkg.name %25%3E +canal .min
9e4f8e88b33aaa150c4dd80c482349f9d66a27dc
improve performance
index.js
index.js
var _ = require('lodash') , debug = require('debug')('koa-rewrite') , toRegexp = require('path-to-regexp'); const DEFAULTS = { on: true, // is turned rewrite whitelist: [] // white list which will be bypassed }; var _params_ = _.clone(DEFAULTS); function toMap(params) { var map = {}; params.forEach(fun...
JavaScript
0.000045
@@ -547,16 +547,104 @@ .path;%0A%0A + // Only repath once. Prevent repath more.%0A if (this._hasRepath_) return yield next;%0A%0A isWhit @@ -1183,16 +1183,44 @@ %7D);%0A + this._hasRepath_ = true; %0A deb
54debcdfc44304089266193e0901dfbae6f31f3c
Add a third racer to race
src/menu/NewGameMenu.js
src/menu/NewGameMenu.js
import * as Pixi from 'pixi.js'; import * as RacerDefs from '../racer/RacerDefs'; import AIRacerController from '../racer/AIRacerController'; import Entity from '../core/Entity'; import Game from '../core/Game'; import IO from '../core/IO'; import ListMenu from './ListMenu'; import MainMenu from './MainMenu'; import Me...
JavaScript
0.999802
@@ -618,17 +618,16 @@ roller'; -; %0Aimport @@ -1245,202 +1245,98 @@ acer -Controller = new PlayerRacerController(racer +3 = new Racer(%5B-5, 5%5D );%0A +%0A -const racerController2 = new AIRacerController(racer2, race);%0A const cameraController = new RaceCameraController(racer, this.game.camera +this.ga...