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
3ffe6deaa7e2101ecf83528013b21d92721cb235
debug logging
src/ssh-keygen.js
src/ssh-keygen.js
var spawn = require('child_process').spawn; var _ = require('underscore'); var fs = require('fs'); var os = require('os'); var path = require('path'); function checkAvailability(location, force, log, callback){ var pubLocation = location+'.pub'; log.debug('checking availability: '+location); fs.exists(location, fun...
JavaScript
0.000001
@@ -1831,20 +1831,21 @@ pts.log. -info +debug ('exited
86beddc1e5104b9e2d8db53264f6a116ee628d2d
Fix the failing test
__tests__/src/ariaMap-test.js
__tests__/src/ariaMap-test.js
/* eslint-env mocha */ import expect from 'expect'; import rolesMap from '../../src/ariaMap'; describe('ariaMap', function () { it('should be a Map', function () { expect(ariaMap).toBeA(Map); }); it('should have size', function () { expect(ariaMap.size).toBeGreaterThan(0); }); });
JavaScript
0.999999
@@ -56,13 +56,12 @@ ort -roles +aria Map
7db9b3941c46b3d9c43ff85796a028966717fdf1
Fix th class of BaseFormatSet
lib/plugin/queryApi/format/baseFormatSetTable.js
lib/plugin/queryApi/format/baseFormatSetTable.js
"use strict" const BaseFormatSet = require('./baseFormatSet'); class BaseFormatSetTable extends BaseFormatSet { commit(subquery, formattedRows) { let output = '<thead><tr>'; for (let field of Object.values(subquery.statement.fields)) { output += '<th class="query_field_header query_field_header_${fiel...
JavaScript
0.000008
@@ -257,17 +257,17 @@ tput += -' +%60 %3Cth clas @@ -354,17 +354,17 @@ eAlias%7D%3E -' +%60 + (fiel
0a6b19fd2a82e098a357b0216e89e5f16fb536bb
Fix universal loading error
src/static/generateRoutes.js
src/static/generateRoutes.js
import path from 'path' import slash from 'slash' import fs from 'fs-extra' export default async ({ config }) => { const { templates, routes } = config const id404 = routes.find(route => route.path === '404').templateID const file = ` import React, { Component } from 'react' import { Route } from 'react-route...
JavaScript
0
@@ -564,18 +564,21 @@ error: -() +props =%3E %7B%0A @@ -630,31 +630,20 @@ %3EAn -unknown error -has occur +r ed l @@ -662,50 +662,65 @@ page -. Please reload your browser and try again +'s template. More information is available in the console .%3C/d
065179bee204a2f4081e14a77b191bce19d5583b
move filtering to clientside :sweat:
frontend/react/PaymentsAPI.js
frontend/react/PaymentsAPI.js
import request from 'superagent'; import dateFormat from 'dateformat'; const API_ADDR = 'http://localhost:3000'; export default class PaymentsAPI { constructor() { } static constructURL(path) { return `${API_ADDR}${path}` } static get(path, params, SuccessCB, ErrorCB) { request .get(this.construct...
JavaScript
0
@@ -869,178 +869,166 @@ %7B%0A%09%09 -var doc = %7B%7D;%0A%09%09doc._sort = 'amount';%0A%09%09doc._order = 'DESC';%0A%09%09if (N) %7B%0A%09%09%09doc._limit = N;%0A%09%09%09doc._page = 1;%0A%09%09%7D%0A%09%09this.get(this.constructURL('/payments'), doc, SuccessCB +this.get(this.constructURL('/payments'), %7B%7D, functi...
b06e83afec8e943d923185a1383fde19717ff556
Modify variables passing in in dummy app.
tests/dummy/app/controllers/nodes/detail/index.js
tests/dummy/app/controllers/nodes/detail/index.js
import Ember from 'ember'; import CommentableMixin from 'ember-osf/mixins/commentable'; import TaggableMixin from 'ember-osf/mixins/taggable-mixin'; import NodeActionsMixin from 'ember-osf/mixins/node-actions'; import KeenTrackerMixin from 'ember-osf/mixins/keen-tracker'; export default Ember.Controller.extend(Comment...
JavaScript
0
@@ -1213,42 +1213,151 @@ ent( -'button', 'click', 'u +%7B%0A category:'button',%0A action: 'click',%0A label: 'U pdate + Node' +%0A %7D, this.get('model') );%0A +%0A
0e9484b4ee8c9029bc012a944d906fcbee8b1754
update wave animation
src/static/js/render/home.js
src/static/js/render/home.js
;(function() { var Home = function Home(options) { App.Core.View.call(this, options); }; Home.prototype = Object.create(App.Core.View.prototype); Home.prototype.constructor = Home; Home.prototype.controller = function(opts) { if (!this.get('initialized')) { // Set ite...
JavaScript
0
@@ -2299,17 +2299,18 @@ ATION = -5 +10 0,%0A
a074b9d8378cf327413638329b9e17d107d658e5
Update Handler.es6
src/DeepHelloWorld/Backend/src/SayHello/Handler.es6
src/DeepHelloWorld/Backend/src/SayHello/Handler.es6
'use strict'; import DeepFramework from 'deep-framework'; export default class extends DeepFramework.Core.AWS.Lambda.Runtime { /** * @param {*} args */ constructor(...args) { super(...args); } /** * @param {Object} request */ handle(request) { let payload = { Name: request.getPara...
JavaScript
0
@@ -232,23 +232,24 @@ Object%7D -request +nameData %0A */%0A @@ -260,93 +260,19 @@ dle( -request) %7B%0A let payload = %7B%0A Name: request.getParam('Name', 'World'),%0A %7D;%0A +nameData) %7B %0A @@ -296,23 +296,24 @@ oadInFs( -payload +nameData , (error @@ -437,23 +437,24 @@ oadInDb( -payload...
d0c06efc03bfcf0e2286d2b72e80355f5a1ef5b0
add react eslint support
.eslintrc.js
.eslintrc.js
module.exports = { "env": { "browser": true, "es6": true, }, "parserOptions": { "ecmaVersion": 8, }, "plugins": [ "eslint-plugin-html", "eslint-plugin-optional-comma-spacing", "eslint-plugin-one-variable-per-var", "eslint-plugin-require-trailing-comma", ], "extends": "eslint:re...
JavaScript
0
@@ -115,25 +115,99 @@ ,%0A -%7D,%0A %22plugins%22: %5B + %22ecmaFeatures%22: %7B%0A %22jsx%22: true%0A %7D,%0A %7D,%0A %22plugins%22: %5B%0A %22eslint-plugin-react%22, %0A
f149bb8d767730c9639f58c6db5ba080c152bfba
Improve styling for interating with component buttons
src/ui/sidebar/component-selection/ComponentButton.js
src/ui/sidebar/component-selection/ComponentButton.js
import React from 'react'; import radium from 'radium'; import R from 'ramda'; import ArtWrapper from './ArtWrapper.js'; function styles({COLORS}) { const imgSize = 50; return { button: { padding: 0, width: imgSize + 'px', border: 'none', backgroundColor: COLORS.background, ':hov...
JavaScript
0
@@ -302,16 +302,41 @@ ground,%0A + cursor: 'pointer',%0A ': @@ -552,16 +552,42 @@ n: 'top' +,%0A userSelect: 'none' %0A %7D,%0A
829811a0232cacacaaf19058a426b62c1511e6f6
Support TS and CoffeeScript
lib/config/default-scopes.js
lib/config/default-scopes.js
'use babel' export default [ { scopes: ['source.js'], prefixes: [ 'import\\s+.*?from\\s+[\'"]', // import foo from './foo' 'require\\([\'"]', // require('./foo') 'define\\(\\[?[\'"]' // define(['./foo']) or define('./foo') ], extensions: ['js', 'jsx', 'ts', 'coffee'], relative: ...
JavaScript
0
@@ -51,16 +51,98 @@ urce.js' +, 'source.js.jsx', 'source.coffee', 'source.coffee.jsx', 'source.ts', 'source.tsx' %5D,%0A p @@ -369,16 +369,23 @@ ', 'ts', + 'tsx', 'coffee
6a24f1c27bf2e3f74609e7a601fe641d67b28148
comment out log output
app/lib/util.js
app/lib/util.js
function log(m) { console.log(m); } function makeArray(v) { if (v !== null && v !== 'undefined') { return v instanceof Array ? v : new Array(v); } return new Array(); } function logArray(arr) { if (arr !== null && arr !== 'undefined' && arr instanceof Array) { arr.forEach(logArra...
JavaScript
0.000001
@@ -17,16 +17,18 @@ ) %7B%0A +// console.
1e9eb2367397ab278da79cdb4df8eea63a488578
Add issue number for FIXME CMD+.
src/Dialogs.js
src/Dialogs.js
/* * Copyright 2012 Adobe Systems Incorporated. All Rights Reserved. */ /*jslint vars: true, plusplus: true, devel: true, browser: true, nomen: true, indent: 4, maxerr: 50 */ /*global define: false, $: false, brackets: false */ /** * Utilities for working with Deferred, Promise, and other asynchronous processes. ...
JavaScript
0
@@ -1894,11 +1894,11 @@ ue # -XXX +418 ) CM @@ -1937,9 +1937,8 @@ hell -? %0A
db4108cd4e9b45502f245b5ce653fdeb2ad0cfa0
Add install deps
src/swagger/steps/install.js
src/swagger/steps/install.js
/** * Step 7 * Where installation are run (npm, bower) */ export default function () { };
JavaScript
0
@@ -59,36 +59,137 @@ */%0A%0A -export default function () %7B +const DEPENDENCIES = %5B%0A 'express', 'marlinspike'%0A%5D;%0A%0Aexport default function () %7B%0A this.npmInstall(DEPENDENCIES, %7Bsave: true%7D); %0A%7D;%0A
83a1250861f78301eda68b04ec6a251f963024db
Remove prop-types import in production
react.js
react.js
'use strict' const getBrowserslistConfig = require('./lib/getBrowserslistConfig') const mergeByEnv = require('./lib/mergeByEnv') module.exports = mergeByEnv({ presets: [ [ 'babel-preset-env', { modules: false, targets: { browsers: getBrowserslistConfig() }, ...
JavaScript
0
@@ -830,32 +830,33 @@ ments',%0A +%5B 'babel-plugin-tr @@ -887,16 +887,39 @@ p-types' +, %7BremoveImport: true%7D%5D %0A %5D
506723c0c227bcc2ecc2abd79f40613ff46f0f0b
Version 1.5
app/timeline.js
app/timeline.js
var Timeline = require('pebble-api'); var timeline = new Timeline(); module.exports = { createPin: function(group, event) { var time = new Date(event.time); time.setHours(newTime.getHours() + 4); return new Timeline.Pin ({ "id": group._id.oid + event._id.oid, "time": time, "duration": event.duration *...
JavaScript
0.000001
@@ -175,12 +175,9 @@ urs( -newT +t ime.
16e42ee44821d933c31aff65fe5b54a98a8c139a
Make method to get 'hide-disabled' state of a port
js/components/module-port.js
js/components/module-port.js
(function(app) { 'use strict'; var jCore = require('jcore'); var helper = app.helper || require('../helper.js'); var dom = app.dom || require('../dom.js'); var ModulePort = helper.inherits(function(props) { ModulePort.super_.call(this); this.label = this.prop(props.label); this.name = this.prop...
JavaScript
0.000017
@@ -1316,32 +1316,118 @@ ighted();%0A %7D;%0A%0A + ModulePort.prototype.hideDisabled = function() %7B%0A return !this.hideable();%0A %7D;%0A%0A ModulePort.pro @@ -4179,20 +4179,24 @@ var hide +Dis able +d = this. @@ -4195,28 +4195,32 @@ = this.hide +Dis able +d ();%0A if ( @@ -4223,20 +4223,24 @@ ...
0c93331d97dfffea28b6695586060b0e21c950ae
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
c0c1608062bf791f497d50f42bf972b459738d78
add /oauth/token password grant preLoginHandler and postLoginHandler support
lib/controllers/get-token.js
lib/controllers/get-token.js
'use strict'; var stormpath = require('stormpath'); /** * Allow a developer to exchange their API keys for an OAuth token. * * The URL this controller is bound to can be controlled via express-stormpath * settings. * * @method * * @param {Object} req - The http request. * @param {Object} res - The http respo...
JavaScript
0
@@ -45,16 +45,74 @@ mpath'); +%0Avar expandAccount = require('../helpers/expand-account'); %0A%0A/**%0A * @@ -954,16 +954,1091 @@ );%0A %7D%0A%0A + function writeSuccessResponse(authResult) %7B%0A res.json(authResult.accessTokenResponse);%0A %7D%0A%0A function continueWithHandlers(authResult, preHandler, post...
37fa7d1aa03e9e051bf49eabf69f5e2240431b1f
Fix the Facebook OAuth
assets/js/app.js
assets/js/app.js
// Load the angular application var mainAPIUrl = 'https://api.sikr.io/v1/'; // Timeouts. When reached, the content dissapears. var serviceTimeout = 30000; // 30 seconds var itemTimeout = 300000; // 5 minutes var app = angular.module('sikre', [ 'satellizer', 'sikre.services', 'sikre.controllers', 'sikr...
JavaScript
0.999988
@@ -1445,24 +1445,46 @@ url: ' +https://api.sikr.io/v1 /auth/facebo @@ -1591,48 +1591,93 @@ ri: -'https://api.sikr.io/auth/facebook/login +window.location.origin %7C%7C window.location.protocol + '//' + window.location.host + '/ ',%0A @@ -3459,450 +3459,8 @@ 8 %7D%0A - //name: 'Sikre',%0A //u...
23f29e3bb4e4062eed26a515a7045102b4a3db8a
Update index.js
src/test/index.js
src/test/index.js
import './feature'; import './get-enabled'; import './get-is-enabled'; import './update-features-with-query'; import './with-features'; import './configure-feature'; import './is-feature-included'; import './features'; import './feature-toggles'; import './feature';
JavaScript
0.000002
@@ -195,29 +195,8 @@ d';%0A -import './features';%0A impo
a7f2da3b09ae625dbbec0a0f583221b856efd54e
Enable ES6
.eslintrc.js
.eslintrc.js
/* global module */ module.exports = { root: true, // Based on the recommended rules extends: "eslint:recommended", // Default environments env: { es6: false, browser: true, jquery: true }, // Globals globals: { "luga": false }, parserOptions: { ecmaFeatures: { // Enable let and const bloc...
JavaScript
0.000007
@@ -154,20 +154,19 @@ %0A%09%09es6: -fals +tru e,%0A%09%09bro
1472153dc01b819e12e1c0ea21d87f016d9d9ae0
Add id property to FOAMlet.
js/foam/navigator/FOAMlet.js
js/foam/navigator/FOAMlet.js
/** * @license * Copyright 2015 Google Inc. 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 requir...
JavaScript
0
@@ -694,32 +694,107 @@ erties: %5B%0A %7B%0A + name: 'id',%0A mode: 'read-only',%0A hidden: true%0A %7D,%0A %7B%0A name: 'nam
63a81b4dc0b65113b3c1bbed046cff27cf947951
Add "no-new" rule
.eslintrc.js
.eslintrc.js
module.exports = { root: true, env: { }, globals: { }, rules: { // JSHint "expr" 'no-unused-expressions': [2, { allowShortCircuit: true, allowTernary: true, }], // JSHint "proto", disabled due to warnings 'no-proto': 0, // JSHint "strict", disabled due to warnings '...
JavaScript
0.000354
@@ -1332,16 +1332,87 @@ ingle'%5D, +%0A%0A // JSHint %22nonew%22, disabled already in .jshintrc%0A 'no-new': 0, %0A %7D,%0A%7D;
1d6083782380f3761aca9211b304a06287b193de
Fix build.
tests/unit/initializers/allow-link-action-test.js
tests/unit/initializers/allow-link-action-test.js
import Ember from 'ember'; import { initialize } from '../../../initializers/allow-link-action'; import { module, test } from 'qunit'; let registry, application; module('Unit | Initializer | allow link action', { beforeEach() { Ember.run(() => { application = Ember.Application.create(); registry ...
JavaScript
0
@@ -765,24 +765,62 @@ yet'%0A );%0A%0A + initialize(registry, application);%0A%0A // window.
b39664a2e2b11dac43a7c49fd000080290921b5e
Replace global resize handler in interchange with zf trigger
js/foundation.interchange.js
js/foundation.interchange.js
'use strict'; !function($) { /** * Interchange module. * @module foundation.interchange * @requires foundation.util.mediaQuery * @requires foundation.util.timerAndImageLoader */ class Interchange { /** * Creates a new instance of Interchange. * @class * @fires Interchange#init * @param {Object} el...
JavaScript
0
@@ -858,24 +858,176 @@ _init() %7B%0A + var id = this.$element%5B0%5D.id %7C%7C Foundation.GetYoDigits(6, 'interchange');%0A this.$element.attr(%7B%0A 'data-resize': id,%0A 'id': id%0A %7D);%0A%0A this._ad @@ -1038,24 +1038,24 @@ akpoints();%0A - this._ge @@ -1198,28 +1198,33 @@ -...
ec095e388aa044cf17bc924a5f2f11f4e2b31489
extend react rules in linter
.eslintrc.js
.eslintrc.js
module.exports = { "env": { "browser": true, "es6": true }, "extends": "eslint:recommended", "parserOptions": { "ecmaFeatures": { "experimentalObjectRestSpread": true, "jsx": true }, "sourceType": "module" }, "plugins": [ "r...
JavaScript
0
@@ -92,16 +92,17 @@ tends%22: +%5B %22eslint: @@ -114,16 +114,45 @@ mended%22, + %22plugin:react/recommended%22%5D, %0A %22pa
212af4c10e93188b7065e79e8b7b6de5da271509
Make config/ember-try.js use the correct environment...
.eslintrc.js
.eslintrc.js
module.exports = { root: true, extends: ['eslint:recommended', 'prettier'], plugins: ['prettier'], parserOptions: { ecmaVersion: 2017, sourceType: 'module', }, env: { browser: true, }, rules: { 'prettier/prettier': ['error', { singleQuote: true, trailingComma: 'es5', pr...
JavaScript
0
@@ -382,27 +382,50 @@ %5B'index.js' +, 'config/ember-try.js' %5D,%0A - exclud @@ -491,24 +491,51 @@ rOptions: %7B%0A + ecmaVersion: 2015,%0A sour @@ -590,32 +590,32 @@ browser: false,%0A - node: tr @@ -614,24 +614,42 @@ node: true,%0A + es6: true%0A %7D,%0A
b87f791173bc3b1d49a31e64e4530c1fccb557ac
change color of edit mode
src/theme/edit.js
src/theme/edit.js
module.exports = [ { 'id': 'gl-edit-line', 'type': 'line', 'source': 'edit', 'filter': ['all', ['==', '$type', 'LineString']], 'layout': { 'line-cap': 'round', 'line-join': 'round' }, 'paint': { 'line-color': '#ff00ff', 'line-dasharray': [0, 2], 'line-width': ...
JavaScript
0.000001
@@ -832,36 +832,36 @@ ill-color': '#ff -00 ff +00 ',%0A 'fill-o @@ -871,36 +871,36 @@ ine-color': '#ff -00 ff +00 ',%0A 'fill-o @@ -1188,36 +1188,36 @@ ine-color': '#ff -00 ff +00 ',%0A 'line-d @@ -1232,12 +1232,12 @@ ': %5B -4, 4 +2, 2 %5D,%0A
5b5f3539b849bb288d92c07fe070f2092a1c8f99
Fix errors in node 6 on Windows x64
.eslintrc.js
.eslintrc.js
module.exports = { root: true, env: { browser: true, node: true }, extends: 'standard', plugins: [ 'html' ], 'rules': { 'arrow-parens': 0, 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0 } }
JavaScript
0.000004
@@ -26,16 +26,65 @@ : true,%0A + parserOptions: %7B%0A sourceType: 'module'%0A %7D,%0A env: %7B
290e4fded2d889782c0a4f616a43f46d3e0abcd9
Disable RTP data channels (deprecated)
jsapps/lib/PeerConnection.js
jsapps/lib/PeerConnection.js
'use strict'; var Message = require('../../signalingserver/lib/CRMessage'); function PeerConnection(client, servers, parent) { this.parent = parent; this.client = client; this.servers = servers || null; this.videoElement = null; this.channel = false; this.icebuffer = []; } PeerConnection.prototype.initiat...
JavaScript
0
@@ -527,35 +527,8 @@ rue%7D -, %7B RtpDataChannels: true %7D %5D %7D @@ -1056,35 +1056,8 @@ rue%7D -, %7B RtpDataChannels: true %7D %5D %7D
ae256a45bfd8f676939afd96f7f3a209ce1e3aac
Enable new flowtype eslint rules
.eslintrc.js
.eslintrc.js
module.exports = { parser: 'babel-eslint', plugins: [ 'flowtype', // Although we don't have any React or JSX in this project, we need to have // this plugin and some of the rules from this plugin enabled here so that // our tests work. We should probably look into a way of doing this so that /...
JavaScript
0
@@ -658,32 +658,78 @@ -flow-type': 2,%0A + 'flowtype/generic-spacing': %5B2, 'never'%5D,%0A 'flowtype/re @@ -746,32 +746,32 @@ meter-type': 2,%0A - 'flowtype/re @@ -847,16 +847,77 @@ %7D%5D,%0A + 'flowtype/require-valid-file-annotation': %5B2, 'always'%5D,%0A 'flo @@ -1008,32 +1008,149 @@ :...
b0d431987e71e52d2227fec5cf0aa8a87de747c6
babel env should have EdgeHTML version not Edger browser version
babel.config.js
babel.config.js
const presets = [ [ "@babel/env", { targets: { edge: "44", firefox: "66", chrome: "73", safari: "12", ie: "9" } }, ], ]; module.exports = {presets};
JavaScript
0.999828
@@ -75,10 +75,10 @@ e: %22 -44 +18 %22,%0A
7f70b482386d149fe76ae613947366af7769872f
improve config style
babel.config.js
babel.config.js
module.exports = api => { const env = api.env(); const isProduction = env.endsWith("production"); const presetEnv = { loose: true, shippedProposals: true, useBuiltIns: "entry" }; const presets = [ ["@babel/preset-env", presetEnv], "@babel/preset-react", [ "@emotion/babel-preset...
JavaScript
0.000289
@@ -256,16 +256,17 @@ v%5D,%0A +%5B %22@babel/ @@ -278,16 +278,17 @@ t-react%22 +%5D ,%0A %5B%0A @@ -438,33 +438,32 @@ plugins = %5B%0A -%5B %22@babel/plugin-p @@ -492,24 +492,22 @@ ce-from%22 -%5D ,%0A -%5B %22@babel/ @@ -539,24 +539,22 @@ perties%22 -%5D ,%0A -%5B %22@babel/ @@ -582,24 ...
50a43795115c7b5c6b5072017755fd5d9372bf01
implement exclude in tslint config
.tslintrc.js
.tslintrc.js
module.exports = { extends: ['tslint-config-airbnb', 'tslint-config-prettier'], defaultSeverity: 'error', rules: { 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, 'no-console': process.env.NODE_ENV === 'production' ? 1 : 0, 'prefer-array-literal': [true, { 'allow-type-parameters': true }...
JavaScript
0.000001
@@ -103,16 +103,91 @@ error',%0A + linterOptions: %7B%0A exclude: %5B%0A './src/vendor/**/*.ts',%0A %5D%0A %7D,%0A rules:
3e51bea0d3caebce74b74a309cbb5d1051e3273a
Fix width reference, get from tricanvas not triterminal
triterminal.js
triterminal.js
'use strict'; var Tricanvas = require('tritmapped-canvas'); var toTritmap = require('trit-text').toTritmap9x14; var CHAR_HEIGHT = 14; var CHAR_WIDTH = 9; var fromUnicode = require('trit-text').fromUnicode; var fromEvent = require('trit-text').fromEvent; function Triterm(opts) { this.tc = Tricanvas(opts); this...
JavaScript
0.000001
@@ -1025,24 +1025,27 @@ ursorX %3E= t. +tc. width / CHAR @@ -1124,16 +1124,19 @@ rY %3E= t. +tc. width /
979a0eb30dcabeb2f807eb32f13819b377caf715
comment uncomment
data/data.js
data/data.js
var request = require('request'); var forismatic = require('forismatic-node')(); var fs = require('fs'); var hexu = require('hexu'); var quotes = JSON.parse(fs.readFileSync(__dirname + "/data.json")) || []; module.exports.quotes = quotes; // console.log(hexu.blue("*** Ice is mining data ***")); function pushData(cb)...
JavaScript
0.000001
@@ -1076,19 +1076,16 @@ %7D);%0A%0A - // forisma @@ -1122,19 +1122,16 @@ ote) %7B%0A - // if(er @@ -1137,23 +1137,20 @@ rr) %7B%0A -// - throw er @@ -1153,28 +1153,22 @@ w err;%0A - // %7D%0A - // if(qu @@ -1209,19 +1209,16 @@ 10) %7B%0A - // con @@ -1300,19 +1300,16 @@ Text)...
f449df1bd9ccc1b683f7ac38c46be5ca627bcc24
Fix helper.exit()
cli/helpers/promise.js
cli/helpers/promise.js
var Promise = require('bluebird') , logger = require('ezseed-logger') , i18n = require('i18n') , util = require('util') , debug = require('debug')('ezseed:cli') , inquirer = require('inquirer') var sudo_password = '' var Spawner = require('promise-spawner') , spawner = new Spawner({ out: '', e...
JavaScript
0.000002
@@ -2153,20 +2153,21 @@ .format. -call +apply (util, a
b1b6a35df066149103516c168e59e02aba64b95b
Use ES2017 padStart.
client/html/timelog.js
client/html/timelog.js
/* * Copyright (c) 2017 Erik Nordstrøm <erik@nordstroem.no> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS...
JavaScript
0
@@ -3888,23 +3888,22 @@ inute = -(%220%22 + +String ((i * 15 @@ -3913,53 +3913,24 @@ 60) -);%0A%09%09minute = minute.substr(minute.length - 2 +.padStart(2, '0' );%0A%09 @@ -3945,15 +3945,15 @@ r = -(%220%22 + +String( Math @@ -3970,46 +3970,24 @@ 4)) -;%0A%09%09hour = hour.substr(hour.length - 2 +.padStart...
7d9873bfd6a4487b9e24e263b74b0aed2116f480
Switch ref from this to that.
client/js/app.tools.js
client/js/app.tools.js
var ColorPickerToolView = Backbone.View.extend({ id: 'color-picker', className: 'pane', events: { 'click a.color-picker': 'showPicker' }, initialize: function() { _.bindAll(this, 'activate', 'showPicker'); this.render(); window.app.bind('ready', this.activate); },...
JavaScript
0
@@ -4067,18 +4067,18 @@ oject:th -is +at .project
6e34a8a4edf006d938d26b68a671e719de7190bb
update ugen/index: pan2
src/ugen/index.js
src/ugen/index.js
module.exports = function(neume) { "use strict"; neume.use(require("./add")); neume.use(require("./array")); neume.use(require("./audio-node")); neume.use(require("./biquad")); neume.use(require("./boolean")); neume.use(require("./buf")); neume.use(require("./comp")); neume.use(require("./conv")); ...
JavaScript
0
@@ -704,24 +704,56 @@ (%22./pan%22));%0A + neume.use(require(%22./pan2%22));%0A neume.use(
c05a95a0db7bdba55dacbc9e446d73551a5923e5
change port 3000
redis.js
redis.js
'use strict' /** * Created by tungtouch on 2/9/15. */ var redis = require('redis'); var rClient = redis.createClient(); var message = new Buffer("Some bytes hello world bo bo bo world HEHEHEHE ahhaha hohoho hehe ban kinh dai bakbakabk efefe"); var async = require('async'); var max = 2000000; var arr = []; for (var...
JavaScript
0.000002
@@ -287,17 +287,16 @@ = 200000 -0 ;%0Avar ar
f803baaacd026f43def3fdaff1962bbb52e0a76b
fix linting warnings
src/Fab/Fab.js
src/Fab/Fab.js
import React, { PropTypes, Children, cloneElement } from 'react'; import classnames from 'classnames'; import Icon from '../Icon'; const ROOT='mdc-fab'; const propTypes = { className: PropTypes.string, children: PropTypes.node, mini: PropTypes.bool, plain: PropTypes.bool, }; const Fab = ({ className, min...
JavaScript
0.000001
@@ -135,17 +135,19 @@ nst ROOT -= + = 'mdc-fab @@ -342,17 +342,16 @@ herProps -, %0A%7D) =%3E %7B @@ -530,21 +530,23 @@ ildren, +( child +) =%3E %7B%0A @@ -875,17 +875,18 @@ n%3E%0A );%0A - %7D +; %0AFab.pro
35c293becbe41d9411620822989818759b38a7a5
Rename to JBrowseDesktop
browser/main.js
browser/main.js
var app = require('app'); var BrowserWindow = require('browser-window'); var Menu = require('menu'); var menu = require('./menu'); var mainWindow; app.on('window-all-closed', function () { app.quit(); }); app.on('ready', function () { mainWindow = new BrowserWindow({ center: true, title: 'Desktop JBrowse', ...
JavaScript
0.999993
@@ -297,23 +297,22 @@ e: ' -Desktop JBrowse +Desktop ',%0A%09
b61bf272d3ed7ec831d73393a17e6f220d9676ca
Update geo.js
src/GPS/geo.js
src/GPS/geo.js
get_geo_position(); function on_success(position){ document.getElementById("latitude").innerHTML = "Latitude = " + position.coords.latitude; document.getElementById("longitude").innerHTML = "Longitude= " + position.coords.longitude; document.getElementById("acc").innerHTML = "Accuracy = "+position.coords.accuracy; ...
JavaScript
0.000001
@@ -1055,21 +1055,8 @@ 300& -sensor=false& key=
d09bdbb768fb9cc4aebbc8ec2e6b13b7fee8b705
refactor directive function
app/scripts/directives/bug.js
app/scripts/directives/bug.js
(function() { 'use strict'; angular .module('debugblogApp') .directive('avBug', avBug); function avBug() { return { templateUrl: 'views/directives/bug.html', restrict: 'E', controller: BugFormController, controllerAs: 'bugCtrl', bindToController: true, scope: { ...
JavaScript
0.000005
@@ -124,17 +124,51 @@ -return %7B%0A +var directive = %7B%0A restrict: 'E',%0A @@ -218,32 +218,13 @@ %0A - restrict: 'E',%0A - cont @@ -250,16 +250,18 @@ roller,%0A + co @@ -289,16 +289,18 @@ ,%0A + bindToCo @@ -321,16 +321,18 @@ ,%0A + + scope: %7B @@ -...
e7ede4340649ae350211ce4c8a78871bcfd8cce0
Update Forest3.js
fire-static/Forest3.js
fire-static/Forest3.js
/* TODO: * What do we want next? * * Different species? * Temperature options? * * */ const radius = 5; const sense = 25; const ripple = 25; const clock = 80;//150;50; const anim = 150; const initCount = 2000;//2000; const fireProbL = 0.02;//Natural case const fireProbR = 0.001;//Suppression case // const f...
JavaScript
0
@@ -243,17 +243,17 @@ bL = 0.0 -2 +3 ;//Natur @@ -282,17 +282,18 @@ R = 0.00 -1 +05 ;//Suppr
0af828543b1ddebf3b004b65220fb66773019802
Disable minify
config/webpack.production.config.js
config/webpack.production.config.js
var webpack = require('webpack'); var path = require('path'); var rules = require('./webpack.rules'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var WebpackCleanupPlugin = require('webpack-cleanup-plugin'); var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; var CopyWebpackP...
JavaScript
0.007968
@@ -623,16 +623,59 @@ s'%0A %7D,%0A + optimization:%7B%0A minimize: false,%0A %7D,%0A resolv
308e2c79d238fb370131044988e25917e9b7d1f6
refactor handlers management
es6/lib/builder/OnBuilder.js
es6/lib/builder/OnBuilder.js
import isFunction from 'lodash/lang/isFunction.js'; import toArray from 'lodash/lang/toArray.js'; import find from 'lodash/collection/find.js'; import noop from 'lodash/utility/noop.js'; import Builder from './Builder.js'; /** * The on builder. * Its goal is to provide a way to listen events coming from the custom ...
JavaScript
0.000003
@@ -2469,31 +2469,113 @@ ault -,%0A listener; +;%0A%0A on('before:createdCallback').invoke((el) =%3E %7B%0A el._cebOnHandlers = %5B%5D;%0A %7D);%0A %0A @@ -2638,16 +2638,20 @@ +let listener @@ -3302,16 +3302,17 @@ %7D;%0A +%0A @@ -3316,21 +3316,58 @@ ...
cd54024c6b2294a24671a5137bfe1c78a63aecb3
Use context directly
view/components/business-process-payments-list.js
view/components/business-process-payments-list.js
// Payment receipt uploads list 'use strict'; var normalizeOptions = require('es5-ext/object/normalize-options') , _ = require('mano').i18n.bind('View: Component: Payments') , _d = _; module.exports = function (businessProcess/*, options*/) { var options = normalizeOptions(argument...
JavaScript
0
@@ -227,31 +227,23 @@ nction ( -businessProcess +context /*, opti @@ -311,16 +311,69 @@ nts%5B1%5D)%0A +%09 , businessProcess = context.businessProcess%0A %09 , url
41d54925f3ced687a4e5b44a23b0c0276c1e7e68
Fix calc expand with variables
src/utils/calc.js
src/utils/calc.js
/** * Based on the Shunting-yard algorithm. */ import List from './list'; let { last } = List(); const default_context = { 'π': Math.PI, '∏': Math.PI } export default function(input, context) { const expr = infix_to_postfix(input); return calc(expr, Object.assign(default_context, context)); } const operat...
JavaScript
0.000008
@@ -5055,17 +5055,17 @@ ypeof v -! += == 'numb @@ -5082,19 +5082,31 @@ return -num +Number(num) * v ;%0A %7D el @@ -5117,39 +5117,64 @@ %0A return -Number( num -) * -v +calc(infix_to_postfix(v), context) ;%0A %7D%0A%7D%0A%0Afun
9ab1ae865cceb6c49c996315e8fde49163e03134
Add comment on finding desired language
lib/filters/preset_locale.js
lib/filters/preset_locale.js
'use strict'; /*global nodeca, _*/ // cache of enabled locales in form of `parsed locale` -> `original` // var enabledLocales; // returns array with `language`, `country`. `country` might not be presented // // 'ru' -> ['ru'] // 'ru_RU' -> ['ru', 'ru'] // 'ru-UA' -> ['ru', 'ua'] // function parseLocale(str)...
JavaScript
0.000001
@@ -1270,24 +1270,281 @@ nguage'%5D) %7B%0A + // Accept-Language is a string in form: %3Clanguage%3E%5B;q=%3Cpriority%3E%5D%5B, ...%5D%0A // We don't respect %60q%60 weight, as normal browsers are sending languages%0A // in the correct order:%0A //%0A // 'en,en-US;q=0.5,en-GB;q=0.5' -%3E %5B 'en', 'en-...
2bc102ef4eb0f4772dfd68bb78c09ea65f194413
correct decimal rounding in purchase shares
web/src/components/transactions/PurchaseShares.js
web/src/components/transactions/PurchaseShares.js
import {useRecoilValue} from "recoil"; import TransactionCreditorShare from "./TransactionCreditorShare"; import List from "@material-ui/core/List"; import ListItem from "@material-ui/core/ListItem"; import {groupAccounts} from "../../recoil/groups"; import Grid from "@material-ui/core/Grid"; import Typography from "@m...
JavaScript
0.000132
@@ -8362,16 +8362,17 @@ toFixed( +2 )%7D %7Btran
007040904fdc0cc54d355e8a68cac52003bf54e7
use console to log school object and message
web/js/login.js
web/js/login.js
/****************************************** * Form Handlers and page * * generators for TSSAA WebApp Fat Client * *****************************************/ $(document).on("pageinit", function(e, obj) { /** * Login form handler */ $("#login_page").on("submit", function(e, obj) { ...
JavaScript
0
@@ -3394,24 +3394,97 @@ .name);%0A +console.log(%22oh hai%22);%0A %0A $(%22h2#school_object%22).html(school.name);%0A %0A $.mobil @@ -3571,53 +3571,7 @@ %7D); -%0A%0A $(%22h2#school_object%22).html(school.name); %0A%7D%0A
8265ad14594aff7ef60cd4c60f002ec0e9c35b04
Limit the lengths of the news item title and description
web/src/js/components/Search/NewsSearchResults.js
web/src/js/components/Search/NewsSearchResults.js
import React from 'react' import PropTypes from 'prop-types' import Paper from '@material-ui/core/Paper' import Typography from '@material-ui/core/Typography' // TODO: use class styles const NewsSearchItem = props => { const { item: { // eslint-disable-next-line no-unused-vars category, contra...
JavaScript
0.99853
@@ -466,24 +466,401 @@ %7D = props%0A%0A + // If the title or description are too long, slice them%0A // and add ellipses.%0A const MAX_DESC_CHARS = 125%0A const MAX_TITLE_CHARS = 80%0A const subtitle =%0A description.length %3E MAX_DESC_CHARS%0A ? %60$%7Bdescription.slice(0, MAX_DESC_CHARS)%7D ...%60%0A...
26ad8dd196817a1b02aa6df5eb28d6528214cb4e
fix typo
app/assets/javascripts/controllers/controllers.js
app/assets/javascripts/controllers/controllers.js
angular.module('barter') .controller('WelcomeController', ['$routeParams', "UserService", "TalentService", function($routeParams, UserService, TalentService ){ this.tals = []; this.persons = []; this.selectedCategory = 'Music'; UserService.query(function(data) { this.persons = data; cons...
JavaScript
0.999991
@@ -4102,16 +4102,22 @@ ;%0A %7D%0A + %7D;%0A%0A %7D%5D);%0A%0A%0A%0A
387b8baf5a62fd2c1ca15e31cac82c4124784ef6
Update Model linkage
templates/model.template.js
templates/model.template.js
/** * @description * Global <%= Modelname %>. Model * <%= whatIsThisModel %> **/ angular.module('models.<%= modelname %>', [ 'humpback.models' ]) /** * @description * Run and ignore for unit testing * **/ .run(function($sailsSocket, DS, <%= Modelname %>Service){ console.log("listening to <%= modelname %> cha...
JavaScript
0
@@ -95,15 +95,8 @@ le(' -models. %3C%25= @@ -107,16 +107,22 @@ lname %25%3E +.model ', %5B%0A
672db86fc556e0ae3cac870b21728fbb7580ffdf
Use the rootURL in prerender to get assets
lib/ilios-prerender/index.js
lib/ilios-prerender/index.js
/* eslint-env node */ module.exports = { name: 'ilios-prerender', contentFor: function(type, config) { // eslint-disable-line no-unused-vars if (type === 'body-footer') { return '<script src="ilios-prerender/scripts.js"></script>'; } if (type === 'test-body-footer') { return '<script src="...
JavaScript
0
@@ -138,17 +138,16 @@ sed-vars - %0A if @@ -178,33 +178,33 @@ %7B%0A return -' +%60 %3Cscript src=%22ili @@ -192,32 +192,49 @@ n %60%3Cscript src=%22 +$%7Bconfig.rootURL%7D ilios-prerender/ @@ -246,33 +246,33 @@ ts.js%22%3E%3C/script%3E -' +%60 ;%0A %7D%0A if ( @@ -315,17 +315,17 @@ return ...
ea21088de0b6a5a050cf73663c02b4a891e63fd3
Remove undefined
pickyfill.js
pickyfill.js
/*! Pickyfill - Offline caching for picturefill responsive image polyfill. Author: Rich Trott | Copyright: Regents of University of California, 2012 | License: MIT */ (function( w ) { "use strict"; var localStorage = w.localStorage, applicationCache = w.applicationCache, image, dataUri...
JavaScript
0.999961
@@ -2275,17 +2275,16 @@ %0A if -( (applica @@ -2338,80 +2338,10 @@ DY) -%7C%7C%0A (applicationCache.status === applicationCache.CACHED)) %7B%0A +%7B%0A @@ -3487,15 +3487,8 @@ on ( - param ) %7B%0A @@ -3544,16 +3544,38 @@ imageSrc +,%0A mimeType ;%0A%0A @@ -4023,16 +4023,167...
cf870b2778dbb63fff97e61c1fe39c65f8f6abd1
test fix
app/services/score_service.js
app/services/score_service.js
'use strict'; module.exports = function(app) { app.factory('ScoreService', ['$http', 'AuthService','$window', function($http, AuthService, $window) { // const mainRoute = "http://localhost:3000/api"; let scoreId; let scoreService = {}; scoreService.createScore = function(data) { return $http.p...
JavaScript
0.000001
@@ -315,24 +315,28 @@ http.post('/ +api/ users/' + da @@ -364,16 +364,16 @@ , data)%0A - .t @@ -562,32 +562,36 @@ urn $http.get('/ +api/ users/' + userId @@ -755,32 +755,36 @@ urn $http.get('/ +api/ users/' + data.u @@ -975,24 +975,28 @@ $http.get('/ +api/ users/' + da @@ -1276,16 +1276,20 @@ p.put('/ ...
867ebc442685ceefa9092293a099652ee3876690
convert to page
lib/integrations/comscore.js
lib/integrations/comscore.js
var integration = require('../integration') , load = require('load-script'); /** * Expose `comScore` integration. */ var comScore = module.exports = integration('comScore'); /** * Required key. */ comScore.prototype.key = 'c2'; /** * Default options. */ comScore.prototype.defaults = { // your comsco...
JavaScript
0.999941
@@ -41,12 +41,13 @@ on') -%0A , +;%0Avar loa @@ -182,67 +182,8 @@ ;%0A%0A%0A -/**%0A * Required key.%0A */%0A%0AcomScore.prototype.key = 'c2';%0A%0A%0A /**%0A @@ -388,65 +388,8 @@ ze.%0A - *%0A * @param %7BObject%7D options%0A * @param %7BFunction%7D ready%0A */%0A @@ -435,22 +435,8 @@ on ( -options, ready )...
fb547aad6c654b507ff7360132679cfd54ce443e
add gabriele's reference to reference data
app/src/data/referenceData.js
app/src/data/referenceData.js
const references = [ { id: 0, text: `Ryan is a fantastic leader, teacher and project manager. He has a wealth of knowledge expanding from the Front end technologies to integrating the back-end aspect on projects. The information he brings fundamentally makes everyone around him better. Anyti...
JavaScript
0
@@ -29,16 +29,1052 @@ id: 0,%0A + text: %60Ryan will be a great asset in any field he%0A applies his energy to. He is extremely knowledgeable%0A and has also some fundamental traits that make him ideal in%0A any team. He is very open minded, determined and well rounded%0A in javascript, Front-E...
2084f5b3fc00991e3565a319f3b9154540de8852
Fix javascript day calculation to highlight current day
app/assets/javascripts/store/spree_store_hours.js
app/assets/javascripts/store/spree_store_hours.js
//= require store/spree_frontend $(function() { var timezone = "US/Pacific"; $.getJSON("http://json-time.appspot.com/time.json?tz="+timezone+"&callback=?", function(data){ var wday = data.datetime.substring(0,3).toLowerCase(); $("div#store-hours ul li."+wday).addClass("today"); }) });
JavaScript
0
@@ -30,138 +30,99 @@ end%0A -$(function() %7B%0A var timezone = %22US/Pacific%22;%0A $.getJSON(%22http://json-time.appspot.com/time.json?tz=%22+timezone+%22&callback=?%22,%0A +if (!window.SpreeStoreHours) %7B%0A window.SpreeStoreHours = %7B%7D;%0A%0A SpreeStoreHours.wday = fun @@ -131,21 +131,18 @@ ion( ...
10abf4e0032e1e25f28df27507af80bfe85f9093
sort orthologs by taxonomic order of species
webapp/src/components/orthology/orthologyTable.js
webapp/src/components/orthology/orthologyTable.js
import React, { Component } from 'react'; import { Link } from 'react-router'; import MethodHeader from './methodHeader'; import MethodCell from './methodCell'; import BooleanCell from './booleanCell'; const columnNames = ['Species', 'Gene symbol', 'Score', 'Best score', 'Best reverse score', 'Method']; class Ortho...
JavaScript
0.993661
@@ -302,16 +302,340 @@ hod'%5D;%0A%0A +const speciesOrder = %5B%0A 'H. sapiens',%0A 'M. musculus',%0A 'R. norvegicus',%0A 'D. rerio',%0A 'D. melanogaster',%0A 'C. elegans',%0A 'S. cerevisiae'%0A%5D;%0A%0Aconst getSpeciesOrderScore = (speciesName) =%3E %7B%0A const speciesIndex = speciesOrder.indexOf(speciesNam...
3c3fcadbe95b9c56212df713ef6e10cbfa2fd149
Fix icon.
templates/user_list_pane.js
templates/user_list_pane.js
/** @jsx React.DOM */ "use babel"; "use strict"; const React = require("react-atom-fork"); const _ = require("lodash"); const mixins = require("./mixins"); const UserlistView = require("./user_view").UserlistView; module.exports = React.createClass({ mixins: [mixins.ReactUnwrapper], render: function () { ret...
JavaScript
0
@@ -306,16 +306,80 @@ on () %7B%0A + let path = atom.packages.getActivePackage('floobits').path;%0A retu @@ -383,16 +383,16 @@ eturn (%0A - %3Cd @@ -479,24 +479,29 @@ src= -%22atom://floobits +%7B%22file://%22 + path + %22 /res @@ -522,16 +522,17 @@ x64.png%22 +%7D /%3EFloob
a44cb1137538d0598b54104fd451d03323159015
Update utils.js
app/src/server/utils/utils.js
app/src/server/utils/utils.js
import fs from 'fs'; import childProcess from 'child_process'; import Promise from 'bluebird'; import rimraf from 'rimraf'; // promisify certain callback functions export const mkdir = Promise.promisify(fs.mkdir); export const writeFile = Promise.promisify(fs.writeFile); export const readFile = Promise.promisify(fs.re...
JavaScript
0.000001
@@ -1625,1166 +1625,8 @@ );%0A%0A -// PATH: '/Users/samhagan/.rbenv/shims:/Users/samhagan/.rbenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin',%0A// TMPDIR: '/var/folders/d0/884kl82x5gs2wdphhwdm8vr40000gn/T/',%0A// LOGNAME: 'samhagan',%0A// XPC_FLAGS: '0x0',%0A// HOME: '/Users/samhagan',%0A// A...
19432b690121077e85d3774008b02373b938b82f
Update downtime.js
downtime.js
downtime.js
/*! * jQuery downtime plugin * version 0.2 * Author: Rob Griffiths <rob@bytespider.eu> http://github.com/bytespider/downtime * Licence: MIT license */ /* * Copyright (c) 2012 Rob Griffiths * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documen...
JavaScript
0.000002
@@ -7725,32 +7725,44 @@ inutes(timestamp +, resolution ) %7B%0A @@ -7861,16 +7861,28 @@ imestamp +, resolution ) %7B%0A
ad2673056213847d4411f8fdd7efd3f0d2b2a047
Revert to actual campaign target number
graphql/database/globals/getCurrentCampaignConfig.js
graphql/database/globals/getCurrentCampaignConfig.js
import createCampaignConfiguration from './createCampaignConfiguration' const campaignTitle = '## COVID-19 Food Bank Support' const campaignDescription = ` #### Thanks to you, our community [raised thousands of dollars](https://tab.gladly.io/covid-19/) for the World Health Organization over the last few days. #### In ...
JavaScript
0.012075
@@ -2059,73 +2059,8 @@ ber: - 30, // FIXME: reenable correct targetNumber%0A // targetNumber: 100
c4b900ce5ac1c75a8f3ae87f3accfd6be969d57a
Handle multiple sources on NearbyLocation
app/assets/scripts/components/nearby-locations.js
app/assets/scripts/components/nearby-locations.js
'use strict'; import React from 'react'; import _ from 'lodash'; import { Link } from 'react-router'; import LocationCard from './location-card'; import InfoMessage from './info-message'; import LoadingMessage from './loading-message'; var NearbyLocations = React.createClass({ displayName: 'NearbyLocations', prop...
JavaScript
0.000001
@@ -1552,22 +1552,55 @@ t source +s Data = + o.sourceNames%0A .map(s =%3E _.find( @@ -1630,21 +1630,35 @@ me: -o.sourceName%7D +s%7D))%0A .filter(s =%3E s );%0A @@ -2125,24 +2125,25 @@ source +s Data=%7Bsource @@ -2142,16 +2142,17 @@ =%7Bsource +s Data%7D%0A
d3232f91bee770f5743199f0fa1ba04c5c42fe45
Update gridify.js
jquery/gridify.js
jquery/gridify.js
/** * Created by khanhnh on 13/09/2014. */ $.fn.extend({ imageLoaded: function(cb) { var images = $(this).find('img'); var count = images.length; if (count == 0) cb(); images.each(function(i, image){ var image = new Image(); image.onload = function(e){ ...
JavaScript
0.000001
@@ -1262,17 +1262,16 @@ == 1 ? -- item_mar
1b9f73224eba7871937df11d398b245d8fc45aad
Add some bootstrap styling to error message
js/AjaxNetwork.js
js/AjaxNetwork.js
function AjaxNetwork() { function sendRequest(url, onComplete, data, method) { var requestMethod = method === null ? "GET" : method; var headers = {}; if (requestMethod == "POST") { headers["X-CSRFToken"] = $.cookie("csrftoken"); } $.ajax({ url: url, ...
JavaScript
0
@@ -1855,31 +1855,106 @@ -$(%22#login_error%22).text( +// TODO: is this XSS-able?%0A $(%22#login_error%22).html(%22%3Cdiv class='alert alert-danger'%3E%22+ resp @@ -1970,16 +1970,27 @@ onseText + + %22%3C/div%3E%22 );%0A
a99b9749076faa64349477bc377c3112f9130cc3
use MyArray.prototype.each (for Java 6)
dump_ods.js
dump_ods.js
"use strict"; load("my_init.js"); loadUtf8("libo_calc.js"); //////////////////////////////// function isBlank(val){ return ("" + val).length === 0; } //////////////////////////////// var TableSheet = (function(){ function TableSheet(sheet){ this.sh = sheet; this.offset = this._getOffset(sheet); } ...
JavaScript
0
@@ -4570,19 +4570,21 @@ +_ma( sheets -.forE +).e ach(
ffdddfe3c48d341265be148b1220a4c51b71d6da
Revert change that broke the application.
js/application.js
js/application.js
$(document).ready(function() { lastEventX = null; lastEventY = null; velocityX = 0; velocityY = 0; FRICTION = 0.96; MIN_VELOCITY = 0.5; MS_BTW_UPD = 18; init(); }); var init = function() { attachEvents(); draw(); }; var attachEvents = function() { $(document).mousemo...
JavaScript
0
@@ -3666,17 +3666,16 @@ leX') == -= null) %7B
3652aa76505e0e4b7834650b45f653cd67abba23
add hover feature for bird gallery, refactor bxslider into separate function
js/application.js
js/application.js
$(document).ready(function() { $('.bxslider').bxSlider({ minSlides: 4, maxSlides: 4, slideWidth: 500, // slideMargin: 10, ticker: true, speed: 100000 }); $('.bird-img').colorbox({close: "x"}); });
JavaScript
0
@@ -1,8 +1,23 @@ +(function() %7B%0A%09 $(docume @@ -39,16 +39,115 @@ ion() %7B%0A +%09%09ticker();%0A%09%09hover();%0A%0A%09%09$('.bird-img').colorbox(%7Bclose: %22x%22%7D);%0A%09%7D);%0A%0A%09var ticker = function() %7B%0A%09 %09$('.bxs @@ -165,16 +165,17 @@ lider(%7B%0A +%09 %09 minSl @@ -183,16 +183,17 @@ de...
3a123b1214d0b5f229354b0d606b8074fec7b23b
Remove presents from Firebase when starting new game
js/application.js
js/application.js
angular.module('project', ['firebase']). value('fbUrl', 'https://slug-dub.firebaseio.com/'). factory('Presents', function(angularFireCollection, fbUrl) { return angularFireCollection(fbUrl + 'presents'); }). config(function($routeProvider) { $routeProvider. when('/', { controller: InitialControlle...
JavaScript
0
@@ -618,34 +618,24 @@ angularFire, - Presents, fbUrl) %7B%0A @@ -726,43 +726,77 @@ -P +var p resents -.splice(0, Presents.length + = new Firebase(fbUrl + 'presents');%0A presents.remove( );%0A
43b3ef50852095392f4a739c7caa847b9d8fe80b
Update webid-oidc.js
src/webid-oidc.js
src/webid-oidc.js
// @flow /* global RequestInfo, Response */ import * as authorization from 'auth-header' import RelyingParty from '@solid/oidc-rp' import PoPToken from '@solid/oidc-rp/lib/PoPToken' import type { loginOptions } from './solid-auth-client' import { currentUrl, navigateTo, toUrlString } from './url-util' import type { we...
JavaScript
0
@@ -2207,19 +2207,20 @@ console. -err +info (%22Coulnd @@ -2258,24 +2258,24 @@ ut, -THIS IS HARMLESS +this is harmless .%22);
d2bbf6ba814c5d5bbd256b7ab9e2030b2270ddaa
make tests pass
duration.js
duration.js
var Duration = (function () { var millisecond = 1, second = 1000 * millisecond, minute = 60 * second, hour = 60 * minute, day = 24 * hour, week = 7 * day; var unitMap = { "ms" : millisecond, "s" : second, ...
JavaScript
0.000003
@@ -247,19 +247,215 @@ var -unitMap = %7B +microsecond = millisecond / 1000,%0A nanosecond = microsecond / 1000;%0A%0A var unitMap = %7B%0A %22ns%22 : nanosecond,%0A %22us%22 : microsecond,%0A %22%C2%B5s%22 : microsecond,%0A %22%CE%BCs%22 : microsecond, %0A @@ -1622,32 +1622...
4312e67febbe7335bd508d5886e6bf0dc01881a9
Update winjs.shim.js
src/winjs.shim.js
src/winjs.shim.js
var WinJS = require('winjs'); var _pageDefine = WinJS.UI.Pages.define; function abs(uri) { var a = document.createElement("a"); a.href = uri; return a.href; }; WinJS.UI.Pages.define = function(uri, members, baseClassDef) { var absUri = abs(uri); var pageClassDef = _pageDefine(absUri, members); ...
JavaScript
0.000001
@@ -310,16 +310,47 @@ mbers);%0A + if(baseClassDef)%0A %7B%0A base @@ -391,17 +391,25 @@ assDef;%0A -%0A + %0A // m @@ -443,24 +443,28 @@ verride%0A + + var property @@ -523,16 +523,20 @@ otype);%0A + for( @@ -580,26 +580,32 @@ ++)%0A -%7B%0A + %7B%0A ...
f432846a289ff2d5131901001c4377e1e0286557
Modify test-code style for 'Hide Manu Bar'
test/specs/browser/settings_test.js
test/specs/browser/settings_test.js
'use strict'; const path = require('path'); const fs = require('fs'); const env = require('../../modules/environment'); function initClient(client) { return client .url('file://' + path.join(env.sourceRootDir, 'dist/browser/settings.html')) .waitUntilWindowLoaded(); } function addClientCommands(client) { ...
JavaScript
0
@@ -120,168 +120,8 @@ );%0A%0A -function initClient(client) %7B%0A return client%0A .url('file://' + path.join(env.sourceRootDir, 'dist/browser/settings.html'))%0A .waitUntilWindowLoaded();%0A%7D%0A%0A func @@ -153,16 +153,16 @@ ient) %7B%0A + client @@ -954,41 +954,95 @@ -return initClient(this.app....
9e79c7e9bd2938687e0d2e9d3f4d7e8b382aea0e
Add more tests
test/compositeError.test.js
test/compositeError.test.js
'use strict'; var CompositeError = require('../'); var should = require('should'); describe('CompositeError', function() { describe('#stack', function() { describe('when there is one inner error', function() { it('should contain stack traces of current error and its inner error', function() { ...
JavaScript
0
@@ -681,34 +681,31 @@ tack.should. -be. equal(%0A + @@ -1002,32 +1002,33 @@ %7D);%0A %7D);%0A +%0A describe @@ -1532,27 +1532,24 @@ tack.should. -be. equal(%0A @@ -1858,32 +1858,1574 @@ %7D);%0A %7D); +%0A%0A describe('when there are no inner errors', function() %...
64dd14d05b88782b0e677e7211742b7b56d5b50c
add storeroom, tags and last_edit to item-modell
modules/items/server/models/item.server.model.js
modules/items/server/models/item.server.model.js
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Item Schema */ var ItemSchema = new Schema({ name: { type: String, default: '', required: 'Please fill Item name', trim: true }, created: { type: Date, default: Date.now ...
JavaScript
0
@@ -372,16 +372,194 @@ 'User'%0A + %7D,%0A storeroom: %7B%0A type: Schema.ObjectId,%0A ref: 'Storeroom'%0A %7D,%0A tags: %5B%7B%0A type: String,%0A trim: true%0A %7D%5D,%0A last_edited: %7B%0A type: Date,%0A default: Date.now%0A %7D%0A%7D);%0A
990c1a17f793406505cce2c55978797862be1e8f
update maxRightmostFailureOffset in clearObsoleteEntries()
src/PosInfo.js
src/PosInfo.js
'use strict'; // -------------------------------------------------------------------- // Private stuff // -------------------------------------------------------------------- function PosInfo() { this.applicationMemoKeyStack = []; // active applications at this position this.memo = {}; this.maxExaminedLength =...
JavaScript
0
@@ -3084,24 +3084,65 @@ Length = 0;%0A + this.maxRightmostFailureOffset = -1;%0A var self @@ -3408,24 +3408,151 @@ nedLength);%0A + self.maxRightmostFailureOffset =%0A Math.max(self.maxRightmostFailureOffset, memoRec.rightmostFailureOffset);%0A %7D%0A
c2015c652c6eee62a7b4e3a4904e6b911c75a7d7
switch to using sudo for systemctl commands
lib/process/systemd/index.js
lib/process/systemd/index.js
var BaseProcess = require('../index'), execSync = require('child_process').execSync; module.exports = BaseProcess.extend({ name: 'systemd', init: function init(config) { this._super(config); this.service = 'ghost_' + config.get('pname'); }, setup: function setup() { var Pr...
JavaScript
0
@@ -1778,91 +1778,8 @@ ) %7B%0A - var started = false;%0A%0A while (!started) %7B%0A try %7B%0A @@ -1784,32 +1784,37 @@ execSync(' +sudo systemctl start @@ -1841,32 +1841,24 @@ - stdio: %5B'inh @@ -1898,386 +1898,48 @@ - %7D);%0A ...
a9e4f43f94297b10d026b349d1068480a8d87087
Fix tests for event emitting runner
test/e2e/runner-e2e-test.js
test/e2e/runner-e2e-test.js
var gearman = require('gearman-coffee') , runner = require('../../lib/daemon/runner') , child_process = require('child_process') , chai = require('chai') , sinon = require('sinon') , sinonChai = require('sinon-chai') , expect = chai.expect; chai.should(); chai.use(sinonChai); suite('(e2e) runner', functio...
JavaScript
0.000001
@@ -1153,33 +1153,8 @@ ));%0A - console.log(json);%0A @@ -1321,38 +1321,8 @@ %7D);%0A - console.log(sample_task);%0A
84a378ee75faa4ce009627700df092f4413c15ae
change track's timestamp to date string and change tracks order #43
app/_assets/javascripts/app.js
app/_assets/javascripts/app.js
$(function () { $('.navbar-toggle').on('click', function () { var $navbar = $($(this).data('target')); $navbar.slideToggle(150); }); $('.scroll-to').on('click', function (e) { e.preventDefault(); $('html, body').animate({ scrollTop: $($(this).attr('href')).offset().top - 70 // Header heigh...
JavaScript
0.000002
@@ -1548,128 +1548,17 @@ e(). -getTime();%0A%0A analytics.track('request_newsletter_updates', %7B%0A email: email,%0A request_date: submitTime%0A %7D +toString( );%0A%0A @@ -1801,32 +1801,152 @@ (300);%0A %7D); +%0A%0A analytics.track('request_newsletter_updates', %7B%0A email: email...
f7926d95873ecd2a1348ac755742bd22f337fd9f
move react normalizer to client
webpack.make.js
webpack.make.js
var fs = require('fs'), path = require('path'), mkdirp = require('mkdirp'), webpack = require('webpack'), ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = function buildWebpackConfig (options) { options = options || {}; var ENV = options.ENV || process.env.NODE_ENV || 'developm...
JavaScript
0.000001
@@ -2662,17 +2662,206 @@ plugins%0A -%0A + if (PRODUCTION) %7B%0A // var cssName = PRODUCTION ? 'scripts.%5Bhash%5D.css' : 'scripts.dev.css'%0A config.plugins.push(new ExtractTextPlugin('scripts.%5Bhash%5D.css'));%0A %7D%0A if (!RENDERER) %7B%0A // Ens @@ -2939,16 +2939,18 @@ irement%0A + var re @@...
bb20433688d4b7858eab841350a749d7f2bbb943
fix where address form receives adata
legacy/src/c/address-form.js
legacy/src/c/address-form.js
import m from 'mithril'; import prop from 'mithril/stream'; import _ from 'underscore'; import { catarse } from '../api'; import h from '../h'; import models from '../models'; import nationalityRadio from '../c/nationality-radio'; import addressVM from '../vms/address-vm'; import addressFormInternational from './addres...
JavaScript
0.000055
@@ -8062,16 +8062,35 @@ tateName + && attrs.stateName ()) %7B%0A
701f0dd852acae9aab5247de6e1c5c5fc1438ddf
Make JS observation on 'change notice period' form live.
app/assets/javascripts/change_meeting_notice_period_resolutions.js
app/assets/javascripts/change_meeting_notice_period_resolutions.js
// Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. $(document).ready(function () { var currentMeetingNoticePeriod = parseInt($('span.meeting_notice_period').first().text()); $('#change_meeting_notice_period_resolution_me...
JavaScript
0
@@ -178,58 +178,75 @@ %7B%0A -var currentM +$(document).on('change', '#change_m eeting -N +_n otice -P +_p eriod - = parseInt($('span. +_resolution_ meet @@ -267,73 +267,77 @@ iod' -).first().text());%0A $('#change_m +, function() %7B%0A var currentM eeting -_n +N otice -_p +P eriod -_resolution_ + = par...
e488e284be6c81a7fc17e27e093b3ae86a5f491b
Clear canvas before redrawing
examples/browser/public/assets/js/test_qrcoder.js
examples/browser/public/assets/js/test_qrcoder.js
/*global qrcoder, jic*/ var srcCanvas = document.getElementById('srcCanvas'); var tarCanvas = document.getElementById('tarCanvas'); var srcImage = new Image(); var cmpImage = new Image(); var qrImage = new Image(); var tarImage = new Image(); cmpImage.onload = function() { qrImage.src = qrcoder.encodeQR(cmpImage....
JavaScript
0
@@ -238,16 +238,113 @@ age();%0A%0A +function clearCanvas(obj) %7B%0A obj.getContext('2d').clearRect (0, 0, obj.width, obj.height);%0A%7D%0A%0A cmpImage @@ -447,24 +447,52 @@ unction() %7B%0A + clearCanvas(tarCanvas);%0A tarCanva @@ -540,16 +540,41 @@ 0, -512, 512 +tarCanvas.width, tarCanvas.height );...
02faf4c31cb0f00ed30c27df7fbda1fb607f4a7c
Make directory operations more generic
app/assets/javascripts/operations/DirectoryOperations.js
app/assets/javascripts/operations/DirectoryOperations.js
/* Copyright 2016 First People's Cultural Council 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 w...
JavaScript
0.000001
@@ -1689,106 +1689,25 @@ -return new Promise(%0A function(resolve, reject) %7B%0A properties.client.request(%0A +let requestBody = '/q @@ -1838,32 +1838,304 @@ '' + queryAppend +;%0A%0A // Switch between direct REST access and controlled mode%0A if (path.indexOf('/api') === 0) %7B%0A...
9bfa65a669a08468acb3b874f8541129d42fa23d
update Cookie
utils/weibo.js
utils/weibo.js
const getContent = require('../lib/spider'); const cheerio = require('cheerio'); const toMarkdown = require('to-markdown'); const fs = require('fs'); const path = require('path'); exports.getGitDaily = function* () { var Cookie = 'SUHB=0Ryr9-FWsUMJP2; _T_WM=9999d45b15f34759ddbf410f183a9f6d; SUB=_2A257MPX8DeTxGeNJ6V...
JavaScript
0.000001
@@ -550,16 +550,17 @@ dirname) +; %0A var f
bb28244771a3364a7219689e760790ce5a2ce065
Fix remotestorage sync;
app/scripts/modules/remotestorage/classes/sync.js
app/scripts/modules/remotestorage/classes/sync.js
/** * Copyright (C) 2015 Laverna project Authors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* global define */ define([ 'underscore', 'marionet...
JavaScript
0
@@ -2306,21 +2306,21 @@ var -model +path = cha @@ -2327,35 +2327,31 @@ nge. -newValue %7C%7C change.oldValue +relativePath.split('/') ,%0A @@ -2368,48 +2368,70 @@ -path +channel = +( change. -relativePath.split('/') +newValue %7C%7C change.oldValue).type %7C%7C path%5B1%5D ;%0A%0A @@ -2561...
17ac433b4d97659b74cf682b7e79d48542a13822
Fix sortShapeProp when shape is not an object literal
lib/rules/sort-prop-types.js
lib/rules/sort-prop-types.js
/** * @fileoverview Enforce propTypes declarations alphabetical sorting */ 'use strict'; const variableUtil = require('../util/variable'); const propsUtil = require('../util/props'); const docsUrl = require('../util/docsUrl'); // ------------------------------------------------------------------------------ // Rule...
JavaScript
0.000007
@@ -2230,24 +2230,221 @@ arations) %7B%0A + // Declarations will be %60undefined%60 if the %60shape%60 is not a literal. For%0A // example, if it is a propType imported from another file.%0A if (!declarations) %7B%0A return;%0A %7D%0A%0A declar
f0cd4ff57e30ede29444ab243a6db59ec4b16f0f
add src input and get image upload skeleton working
app/components/property-editor/contextual-menus/image.js
app/components/property-editor/contextual-menus/image.js
import React, { Component } from "react"; import { ipcRenderer } from "electron"; import commonStyles from "../index.css"; import styles from "./image.css"; export default class ImageMenu extends Component { static contextTypes = { store: React.PropTypes.object }; constructor(props) { super(props); ...
JavaScript
0
@@ -404,20 +404,19 @@ st image -Path +Obj = ev.ta @@ -451,73 +451,37 @@ s%5B0%5D - && ev.target.files%5B0%5D.path;%0A%0A console.log(ev.target.files%5B0%5D) +;%0A%0A console.log(imageObj); %0A @@ -490,20 +490,19 @@ f (image -Path +Obj ) %7B%0A @@ -513,43 +513,39 @@ nst -imageType = ev.target.files...
1913d8089cd1876e493e533bf264a99269a8074b
remove unnecessary merge
src/victory-util/textsize.js
src/victory-util/textsize.js
// http://www.pearsonified.com/2012/01/characters-per-line.php /*eslint-disable no-magic-numbers */ import { merge, defaults, toString } from "lodash"; const fontDictionary = { "American Typewriter": 2.09, "Baskerville": 2.51, "Georgia": 2.27, "Hoefler Text": 2.39, "Palatino": 2.26, "Times New Roman": 2.48...
JavaScript
0.000003
@@ -102,21 +102,22 @@ mport %7B -merge +assign , defaul @@ -3044,13 +3044,14 @@ urn -merge +assign (%7B%7D,
b409a49391a1d9b8e181e133bc143c3295c60e64
throw error in jquery plugin if imgix.js or jquery is not found
imgix.jquery.js
imgix.jquery.js
(function($, imgix) { $.imgix = { all: function() { var imgs = imgix.getElementsWithImages(), results = []; for (var i = 0; i < imgs.length; i++) { results.push(imgs[i]); } return $(results).imgix(); } }; $.fn.imgix = function () { var jq = this; var methods = { setParam: function(...
JavaScript
0
@@ -16,16 +16,282 @@ gix) %7B%0A%0A +%09if (!imgix) %7B%0A%09%09throw %22imgix.js is not loaded on this page. The imgix jQuery plugin will not work without also including imgix.js%22;%0A%09%7D%0A%0A%09if (!$) %7B%0A%09%09throw %22jquery is not loaded on this page. The imgix jQuery plugin will not work without also inc...
ad4a78ab9cc982db06de363833ffb736125d6d57
Fix json generated by wizard in order to add all outputs added to triggers and cubes
web/src/scripts/controllers/policies/policy-finish.js
web/src/scripts/controllers/policies/policy-finish.js
/* * Copyright (C) 2015 Stratio (http://stratio.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
JavaScript
0
@@ -2736,16 +2736,29 @@ + cubeOutputs= cubeOut @@ -3202,21 +3202,39 @@ rOutputs -.push += triggerOutputs.concat (trigger
da16b6e748d30564ce340c4a65bf07eaa512e342
fix type filter
app/common-components/filters/sorting-type_module.js
app/common-components/filters/sorting-type_module.js
'use strict'; var sortingTypeFilter = angular.module( 'sortingTypeFilter', [ ] ); sortingTypeFilter.filter( 'sortingType', function( ) { return function( items, type, input ) { if( input && items ) { var out = [ ]; switch( type ) { //case 'leadership': //items.forEach( function( item )...
JavaScript
0.000001
@@ -1017,16 +1017,233 @@ 'type': +%0A items.forEach( function( item)%7B%0A if( item.types.map(function(item)%7Breturn item.toLowerCase()%7D).indexOf(input) !== -1)%7B%0A out.push ( item )%0A %7D%0A %7D)%0A%0A break; %0A%0A%09%09%09%09ca
660cb058e18f8607a0044b5a89614e1caeb07ed9
Improve relative timestamps in web UI (#7233)
app/javascript/mastodon/components/relative_timestamp.js
app/javascript/mastodon/components/relative_timestamp.js
import React from 'react'; import { injectIntl, defineMessages } from 'react-intl'; import PropTypes from 'prop-types'; const messages = defineMessages({ just_now: { id: 'relative_time.just_now', defaultMessage: 'now' }, seconds: { id: 'relative_time.seconds', defaultMessage: '{number}s' }, minutes: { id: 'relat...
JavaScript
0.000124
@@ -691,23 +691,21 @@ month: ' -numeric +short ',%0A day @@ -1521,16 +1521,55 @@ quired,%0A + year: PropTypes.number.isRequired,%0A %7D;%0A%0A @@ -1616,16 +1616,86 @@ ,%0A %7D;%0A%0A + static defaultProps = %7B%0A year: (new Date()).getFullYear(),%0A %7D;%0A%0A should @@ -3064,16 +3064,22 @@ mp, ...
abb6aa96a97642c537e0b6f7eabeb108a0b2c51a
add newline after use strict
src/clients/storage/CassandraTableStorageManager.js
src/clients/storage/CassandraTableStorageManager.js
'use strict'; const asyncEachLimit = require('async/eachLimit'); /** http://docs.datastax.com/en/developer/nodejs-driver/3.2/features/batch/ * TODO: ASYNC_BATCH_LIMIT will need to be tuned. * It is best to keep the batch size small (in the order of 10s). * If the batch size is greater than 5k, then the server will ...
JavaScript
0.000001
@@ -7,16 +7,17 @@ trict';%0A +%0A const as