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
37400087ae1d9001b2bd1e5d0617d3fd2b1de030
Refactor addColor and addBackgrondColor into a single setStyle method
lib/items/tool-bar-button-view.js
lib/items/tool-bar-button-view.js
const {CompositeDisposable} = require('atom'); const { ToolBarItem } = require('./tool-bar-item'); /** * A button class with many options * * @property {HTMLElement} element * @property {number} priority * @property {string} group * * @property {ButtonOptions} options * @property {boolean} enabled * @property...
JavaScript
0
@@ -955,48 +955,92 @@ his. -addColor();%0A this.addBackgroundColor( +setStyle('color', options.color);%0A this.setStyle('background', options.background );%0A @@ -3221,20 +3221,22 @@ /** -Add color to +Set a style on the @@ -3252,282 +3252,90 @@ /%0A -addColor () %7B%0A if (this.options.color) %7B%0A...
fb3c7d183c345b8eaadf5b9a22747f5cfba2ceee
rename to config
server/models/image.js
server/models/image.js
var debug = require('debug')('server:models:image'); var Promise = require('bluebird'); var path = require('path'); var child_process = require('child_process'); var gm = require('gm').subClass({imageMagick: true}); var dataobjectParser = require('dataobject-parser'); var siteConfig = require('../config.json'); var...
JavaScript
0.999057
@@ -270,21 +270,17 @@ );%0A%0Avar -siteC +c onfig = @@ -1547,60 +1547,8 @@ );%0A%0A -%09%09%09// return Promise.fromNode(function (callback) %7B%0A %09%09%09r @@ -2436,29 +2436,25 @@ .quality %7C%7C -siteC +c onfig.defaul @@ -2800,37 +2800,33 @@ s.hsv.whitebg : -siteC +c onfig.defaultAna @@ -3010,21 +3010,1...
d2a918236c99cbf22e4461361d5bc0cc174e14f6
Add a steps field to each step.
backend/server/db/model/experiments.js
backend/server/db/model/experiments.js
module.exports = function(r) { const dbExec = require('./run'); const db = require('./db')(r); const model = require('./model')(r); return { getAllForProject, get, create, update, createStep, getStep, experimentExistsInProject, experimentS...
JavaScript
0
@@ -1682,32 +1682,93 @@ ld dbExec(rql);%0A + experiment.steps.forEach((step) =%3E step.steps = %5B%5D);%0A return %7B
866b19301ee0671b910c3c13facef7ae5bb19d78
Remove ESLint ignore line
cashcow-template/.config/webpack.config.js
cashcow-template/.config/webpack.config.js
/* eslint arrow-body-style: 0 */ const path = require('path'); module.exports = env => { return { entry: path.resolve(__dirname, '../public/javascripts/client.js'), output: { filename: 'bundle.js', path: path.resolve(__dirname, '../dist'), pathinfo: !env.prod, }, context: path.resol...
JavaScript
0.000001
@@ -1,37 +1,4 @@ -/* eslint arrow-body-style: 0 */%0A cons
5bdfcbfddf113a9572f615eee37638e89f900103
Use connection string for production's sequelize connection
server/models/index.js
server/models/index.js
import fs from 'fs'; import path from 'path'; import Sequelize from 'sequelize'; import config from '../../config/config'; const basename = path.basename(module.filename); const db = {}; const sequelize = new Sequelize(config.db.database, config.db.user, config.db.password, config.db.options); fs .readdirSync(__...
JavaScript
0.000001
@@ -182,22 +182,142 @@ b = %7B%7D;%0A -%0Aconst +let sequelize;%0A%0Aif (process.env.NODE_ENV === 'production') %7B%0A sequelize = new Sequelize(process.env.DATABASE_URL);%0A%7D else %7B%0A sequeli @@ -411,16 +411,18 @@ tions);%0A +%7D%0A %0A%0Afs%0A .
0c52dab91f422681869cbaf301efd793775420fe
use datasource status as loaded check
MovieList.js
MovieList.js
'use strict'; var React = require('react-native'); var { AppRegistry, StyleSheet, Image, Text, View, ListView, TouchableHighlight, AlertIOS, VibrationIOS, } = React; var API_KEY = '7waqfqbprs7pajbz28mqf6vz'; var API_URL = 'http://api.rottentomatoes.com/api/public/v1.0/lists/movies/in_theaters.json';...
JavaScript
0
@@ -748,29 +748,8 @@ %7D),%0A - loaded: false,%0A @@ -1013,32 +1013,8 @@ ),%0A - loaded: true,%0A @@ -1998,17 +1998,16 @@ if ( -! this.sta @@ -2013,14 +2013,38 @@ ate. -loaded +dataSource.getRowCount() === 0 ) %7B%0A
828632796dbadaa909cb131b48d2c0f494d33909
add v1.1.5 tests
lib/platforms/alexaSkill/request/intentRequest.js
lib/platforms/alexaSkill/request/intentRequest.js
'use strict'; const _ = require('lodash'); const AlexaRequestContextAndSession = require('./alexaRequestContextAndSession').AlexaRequestContextAndSession; /** * Alexa intent request */ class IntentRequest extends AlexaRequestContextAndSession { /** * Constructor * @param {*} request object */ ...
JavaScript
0.000001
@@ -2474,24 +2474,67 @@ %7D%0A%0A /**%0A + * Registers intents to skip unhandled%0A * @para
4b607864587602b2034611a8a60b65d3523ba7ac
fix compile_po not compling the last po file in file list
tasks/compile_po.js
tasks/compile_po.js
/* * grunt-require-gettext * https://github.com/open-xchange-frontend/grunt-require-gettext * * Copyright (c) 2014 Julian Bäume * Licensed under the MIT license. */ 'use strict'; module.exports = function (grunt) { grunt.registerMultiTask('compile_po', 'Compiles different po files to their corresponding re...
JavaScript
0.000004
@@ -1210,12 +1210,8 @@ ngth - - 1 ;%0A
7201c47fb8cf25ed89590fddbcc7aca8d768d5c0
Fix release tracking script (again)
ecosystem.config.js
ecosystem.config.js
module.exports = { /** * Application configuration section * http://pm2.keymetrics.io/docs/usage/application-declaration/ */ apps: [ { name: 'blair', script: 'dist/index.js', env_production: { NODE_ENV: 'production' }, wait_ready: true, listen_timeout: 4000, ...
JavaScript
0
@@ -809,16 +809,19 @@ && sudo +sh ./sentry
f552b19361c9ac78fb951a55eb0f0230711d360e
Correct logout action
resources/js/theme/streams.cp.js
resources/js/theme/streams.cp.js
/** * Boot the Cp class. */ Streams.Cp.boot = function () { // Initialize things. this.markThirdFlag(); //Bind Cp behaviors. this.bindTooltips(); this.bindModalShown(); this.bindLogoutAnimation(); this.bindMessageDismissal(); this.bindChooseLanguage(); // Keyboard shortcuts. ...
JavaScript
0.000048
@@ -1298,16 +1298,65 @@ deOut'); +%0A%0A window.location = $(this).attr('href'); %0A %7D);
1e75c4ba3fdcd55c1dd78187a7c044c41cbb5254
Add microscopy photo check in json.js
bids-validator/validators/json/json.js
bids-validator/validators/json/json.js
import utils from '../../utils' import Ajv from 'ajv' const ajv = new Ajv({ allErrors: true }) ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json')) ajv.addSchema(require('./schemas/common_definitions.json')) const Issue = utils.issues.Issue /** * JSON * * Takes a JSON file as a string and a callback...
JavaScript
0
@@ -3907,32 +3907,200 @@ %7D else if (%0A + file.relativePath.includes('/micr') &&%0A file.name.endsWith('photo.json')%0A ) %7B%0A schema = require('./schemas/microscopy_photo.json')%0A %7D else if (%0A file.relat
6b4690b58cac2f6a09983c3fc3e8ec64f0676a05
Update protractor.conf.js
e2e-tests/protractor.conf.js
e2e-tests/protractor.conf.js
var HtmlReporter = require('protractor-html-screenshot-reporter'); //var ScreenShotReporter = require('protractor-screenshot-reporter'); var reporter=new HtmlReporter({ baseDirectory: './protractor-result', // a location to store screen shots. docTitle: 'Protractor Demo Reporter', docName: 'protractor-d...
JavaScript
0
@@ -522,16 +522,18 @@ %7D,%0A%0A +// baseUrl: @@ -555,12 +555,8 @@ ost: -8000 /',%0A
eb81affb9122d0decb57225bcd614b0345c4b5b9
work on site
site/syntax.js
site/syntax.js
/* syntax.js * apply simple syntax highlighting to Tetra code */ keywords = ["def", "if", "elif", "else", "while", "for", "in", "parallel"]; function applySyntax() { /* find all the <pre><code> blocks */ var snippets = document.querySelectorAll('pre code'); /* highlight each one */ for (i = 0; i < ...
JavaScript
0
@@ -742,27 +742,25 @@ pets%5Bi%5D. -textContent +innerHTML = text;
56783971b56e81dfb045ce03fa95f1b1b61bd014
handle ?a=b;c=d
lib/Url.js
lib/Url.js
var url = require("url"); var ideal = require("ideal"); var oden = module.parent.exports; oden.Url = ideal.Proto.clone().newSlots({ type: "oden.Url", protocol: "http:", host: "localhost", port: "80", path: "/", queryMap: null }).setSlots({ init: function() { this.setQueryMap(ideal.map()); }, setString:...
JavaScript
0.007151
@@ -381,16 +381,229 @@ true);%0A +%09%09var query = url.parse(urlString).query;%0A%09%09if (query && (query.split(%22=%22).length %3E 2) && (!query.contains(%22&%22)))%0A%09%09%7B%0A%09%09%09var q = %7B%7D;%0A%09%09%09q%5Bquery%5D = %22%22;%0A%09%09%09query = q;%0A%09%09%7D%0A%09%09else%0A%09%09%7B%0A%09%09%09query =...
3cd0182c080a15785cef2e3861a5951d7329096c
update priorityNav.js
tests/priority-nav/js/priorityNav.js
tests/priority-nav/js/priorityNav.js
/** * priorityNav * * dependencies: * classlist * prepend * append * append * firstElementChild * getOuterWidth * pageXOffset * addEventListener */ function priorityNav (navClass, buttonText, restore, distory) { var restore = ( typeof restore !== 'undefined' && restore !== ...
JavaScript
0.000001
@@ -1099,17 +1099,16 @@ H = %5B%5D;%0A -%0A for @@ -1345,25 +1345,35 @@ -%7D;%0A alert(bp); + bpV.push(newWidth);%0A %7D %0A%0A @@ -1430,177 +1430,221 @@ var -outerWidth = getOuterWidth(nav),%0A availableSpace,%0A target,%0A current,%0A ww = window.innerWidth...
e9849168ed7507b11244c000c3798fbfe3d6dcd8
Update dbConfig.js
server/config/dbConfig.js
server/config/dbConfig.js
var path = require('path'); // Handle both development and deployment environments without breaking var knex; console.log('here is process.env.CUSTOMCONNSTR_MYSQL_CONNURL:', JSON.stringify(process.env.CUSTOMCONNSTR_MYSQL_CONNURL)); if (process.env.CUSTOMCONNSTR_MYSQL_CONNURL){ knex = require('knex').initialize({ ...
JavaScript
0.000001
@@ -508,16 +508,19 @@ 'n/a',%0A + // %7D */; @@ -521,16 +521,19 @@ %7D */;%0A + // %7D;%0A co
4d8bd3ed8527c6ad93451c253ac9385cfa3cd7b0
Use the default minHeight
demo/src/index.js
demo/src/index.js
import React, {Component} from 'react' import {render} from 'react-dom' import styled, { injectGlobal } from 'styled-components' import Example from '../../src' injectGlobal` html, body { margin: 0; padding: 0; height: 100%; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; } #demo...
JavaScript
0.000003
@@ -1173,36 +1173,8 @@ ple%0A - minHeight=%7B%22768px%22%7D%0A
ba0edc794ee168ba44f3d33b44d92dbbcb1ff1d0
fix modal bug
lib/assets/javascripts/esphinx/ui/windows/modal.js
lib/assets/javascripts/esphinx/ui/windows/modal.js
// require ../support/jquery // require esphinx_ui // require esphinx/support/ajax // require esphinx/support/function // require esphinx/support/array // require esphinx/observer var jQuery, esPhinx, Singleton, Ajax, Constructor; (function ($module) { "use strict"; $module.extend({ ...
JavaScript
0.000001
@@ -174,16 +174,31 @@ server%0A%0A +%22use strict%22;%0A%0A var%0A @@ -286,26 +286,8 @@ e) %7B -%0A %22use strict%22; %0A%0A @@ -521,24 +521,8 @@ r = -Constructor.get( $mod @@ -547,20 +547,8 @@ new, - arguments), %0A @@ -659,53 +659,8 @@ ax,%0A - args = arguments%5B0%5D,%0A ...
a4b705d4cbf93ae5f3a9426316240d5560d4d79c
why did i mispell gitlab as gitab
lib/Web.js
lib/Web.js
const express = require('express'); const bodyParser = require('body-parser'); // const cookieParser = require('cookie-parser'); const ChannelConfig = require('./Models/ChannelConfig'); const GitlabEventHandler = require('./Gitlab/EventHandler'); const bot = require('./Discord'); const addons = require('yappybots-addon...
JavaScript
0.998805
@@ -4007,16 +4007,17 @@ s.tk/git +l ab' : %60h
19da2833d3e3055eb9c19bf0a466bb1fbec6abd6
Fix bootstrapp-jqueryui issue with setDate method
Resources/public/js/bootstrapp-jqueryui.js
Resources/public/js/bootstrapp-jqueryui.js
/*! * bootstrapp-pickadate.js v1.0.0 * * Copyright (c) 2012, Nathanaël Mariani <github@nmariani.fr> * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ if(typeof Bootstrapp == "undefined") { var Bootstrapp = {}; } Bootstrapp.jQueryUI...
JavaScript
0.000001
@@ -1922,16 +1922,38 @@ ate() %7C%7C + !this.date.getTime %7C%7C date.ge
310d706320e6ca5262b1911132c4558573b3c8e0
fix jshint warnings and errors
tasks/svg2string.js
tasks/svg2string.js
/* * grunt-svg2string * https://github.com/mistakster/grunt-svg2string * * Copyright (c) 2014 Vladimir Kuznetsov * Licensed under the MIT license. */ 'use strict'; function injectFilename(str, filename) { return str .replace('%s', filename) .replace('%S', filename.toLocaleUpperCase()) } module.export...
JavaScript
0.000001
@@ -296,16 +296,17 @@ rCase()) +; %0A%7D%0A%0Amodu @@ -1174,16 +1174,19 @@ content, + i, l, svg @@ -1512,27 +1512,34 @@ ength / -LINE_LENGTH +options.lineLength );%0A @@ -1623,32 +1623,46 @@ i * -LINE_LENGTH, LINE_LENGTH +options.lineLength, options.lineLength ) +
e969948eecb8080277980d478e49b1122c84f76d
test the switching between list and object view actions in search controller
app/assets/javascripts/tests/controllers/search_controller_test.js
app/assets/javascripts/tests/controllers/search_controller_test.js
emq.globalize(); App.setupForTesting(); App.injectTestHelpers(); setResolver(Ember.DefaultResolver.create({ namespace: App })); moduleFor('controller:search', 'Search Controller', { needs: ['controller:application', 'controller:flash'] }); test('can see the application controller', function() { expect(2); ...
JavaScript
0
@@ -666,46 +666,47 @@ st(' -provenance can be enabled and disabled +check and uncheck compounds and targets via @@ -1211,32 +1211,32 @@ rgetsChecked');%0A - equal(ctrl.g @@ -1256,20 +1256,624 @@ ecked'), true);%0A%7D);%0A +test('switch to list view and objecct view via the actions', function() %7B%0A expec...
7830f434af827923e1c3cdeee4103f5535047183
Fix doc api
packages/ember-runtime/lib/system/array_proxy.js
packages/ember-runtime/lib/system/array_proxy.js
// ========================================================================== // Project: Ember Runtime // Copyright: ©2011 Strobe Inc. and contributors. // License: Licensed under MIT license (see license.js) // ========================================================================== require('ember-runtime/mixin...
JavaScript
0.000001
@@ -772,25 +772,17 @@ var a -rrayProxy +p = Ember
2a34ae3f70350fc94ad3650928dc817552b42a64
include / in url_source userNickSuggestions
Resources/public/js/userNickSuggestions.js
Resources/public/js/userNickSuggestions.js
// // $('#element').donetyping(callback[, timeout=1000]) // Fires callback when a user has finished typing. This is determined by the time elapsed // since the last keystroke and timeout parameter or the blur event--whichever comes first. // @callback: function to be called when even triggers // @timeout: (default...
JavaScript
0
@@ -2576,32 +2576,33 @@ r url_source = ' +/ api/users/email- @@ -2755,32 +2755,46 @@ to remove this / + of url_source %0A @@ -4852,16 +4852,17 @@ urce = ' +/ api/user @@ -5034,16 +5034,30 @@ e this / + of url_source %0A
ea27eb6aef9623d767420fe518580b346f2acecf
Move createMessage to messageManager
bin/message-manager/message-manager.js
bin/message-manager/message-manager.js
const winston = require('winston') const Q = require('Q') const dbClient = require('mariasql'); const message = require('../messages/message') const utils = require('../../utilities') const user_settings = require('../../user_settings') const db = require('../../models') var MessageManager = { message_states: Obje...
JavaScript
0.000001
@@ -57,24 +57,24 @@ )%0Aconst -dbClient +bluebird = requi @@ -81,19 +81,18 @@ re(' -mariasql +bluebird ') -; %0Acon @@ -799,24 +799,555 @@ n m%0A %7D,%0A%0A + createMessage: function(body, contact_id, direction, is_reply_to = null)%7B%0A console.log(%22Creating a message:%5Cn%22 + body + %22%5Cn%22...
b3542ff8c8414c42ce48906452483a7ec4426c25
add query by page
queryService/query.js
queryService/query.js
/** * Created by chriscai on 2014/10/14. */ var MongoClient = require('mongodb').MongoClient, connect = require('connect'); var url = global.MONGDO_URL; var mongoDB; // Use connect method to connect to the Server MongoClient.connect(url, function(err, db) { if(err){ console.log("failed connect to...
JavaScript
0
@@ -2641,33 +2641,32 @@ %7D%0A%0A%0A%0A - queryJSON.date = @@ -2699,20 +2699,99 @@ artDate + %7D;%0A%0A +%0A queryJSON.level = json.level %7C%7C 0;%0A%0A var limit = 500;%0A%0A @@ -2893,45 +2893,258 @@ -var data = %5B%5D;%0A cursor +res.writeHead(200...
15c856a709a9df6cb66de16cca8f34a395dd7632
add a todo item
firefox/gm_scripts/Hello_World/Hello_World.user.js
firefox/gm_scripts/Hello_World/Hello_World.user.js
// ==UserScript== // @name Hello World // @namespace http://hayageek.com // @include https://greasyfork.org/* // @include http://www.google.com/* // @include https://www.google.com/* // @grant none // @version 1 // ==/UserScript== var input = document.createElement('input'); input.type...
JavaScript
0.000001
@@ -256,16 +256,172 @@ ript==%0A%0A +// TODO: The button shows up in both the hayageek.com and the%0A// www.google.com page, but clicking on the button in the%0A// www.google.com page does nothing. %0A%0Avar in
e278d9f3b9e9b6c0820a339f7e285e95e5305090
Fix eslint errors
src/ActionButton/ActionButton.react.js
src/ActionButton/ActionButton.react.js
import { View, Text, TouchableNativeFeedback, StyleSheet } from 'react-native'; import React, { Component, PropTypes } from 'react'; import Icon from '../Icon'; const propTypes = { /** * Called when button is pressed. Text is passed as param */ onPress: PropTypes.func, /** * Called when button ...
JavaScript
0.013429
@@ -41,20 +41,8 @@ back -, StyleSheet %7D f
becda9a30316bd2cf576fa657b13991244fb5eff
Fix infinte wrapping (#1342)
src/client/NodeJS/ms-rest/lib/requestPipeline.js
src/client/NodeJS/ms-rest/lib/requestPipeline.js
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. 'use strict'; var request = require('request'); var through = require('through'); var duplexer = require('duplexer'); var _ = require('underscore'); var Constan...
JavaScript
0
@@ -2420,25 +2420,36 @@ back) %7B%0A -r +var defaultR equest = req @@ -2577,33 +2577,40 @@ tHeaderStream = -r +defaultR equest(options); @@ -3133,33 +3133,40 @@ bodyStream.pipe( -r +defaultR equest(options)) @@ -3206,17 +3206,24 @@ tream = -r +defaultR equest(o @@ -3627,17 +3627,24 @@ am.pipe( -r +defaul...
38f47e042aecda765d9addd7f25f95ed9a1d44a5
Fix Info assignment
src/com/rtg/vcf/resources/vcf_filter_preamble.js
src/com/rtg/vcf/resources/vcf_filter_preamble.js
// Global variable to hold the current record var rec; var VcfUtils = Java.type("com.rtg.vcf.VcfUtils"); var FilterField = Java.type("com.rtg.vcf.header.FilterField"); var InfoField = Java.type("com.rtg.vcf.header.InfoField"); var FormatField = Java.type("com.rtg.vcf.header.FormatField"); (function (global) { fun...
JavaScript
0
@@ -1732,16 +1732,27 @@ d, value +.toString() , index) @@ -2995,16 +2995,27 @@ .add(val +.toString() );%0A @@ -3081,16 +3081,27 @@ d(values +.toString() );%0A
91ee7f46803a829c91aa8dc5ec894e8a77b12185
fix commenters byline on recent activity teaser with updated graphql query on api server
src/modules/community/components/RecentActivityTeaser/RecentActivityTeaser.js
src/modules/community/components/RecentActivityTeaser/RecentActivityTeaser.js
import React from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import { Link } from 'react-router-dom'; // lib import Utils from '../../../../lib/utils'; // components import AvatarIcon from '../../../users/components/AvatarIcon'; import './RecentActivityTeaser.css'; class RecentActivi...
JavaScript
0
@@ -589,20 +589,8 @@ ent, - commenters, use @@ -1056,16 +1056,31 @@ cons -ole.log( +t commenters = comment. comm @@ -1085,17 +1085,17 @@ mmenters -) +; %0A%09%09if (c
25f1fde6a9571648c82353b29888f7f924d9b39e
Remove unneeed call()
lib/api.js
lib/api.js
exports.initialize = function (app) { return getApis(app).then(getResponseValue).then(function (api) { app.electron = {} addApi(app, app.electron, [], api) // Add electron property to client prototype so promises can be chained Object.getPrototypeOf(app.client).electron = app.electron }) } functio...
JavaScript
0.000001
@@ -1596,20 +1596,9 @@ cute -.call(this, +( call @@ -1617,27 +1617,16 @@ s, args) -%0A .then(ge
ad09a271cf05289875c32b086f1897476480708f
Remove unused function createMocha()
gulp-tasks/tests.js
gulp-tasks/tests.js
var angularProtractor = require('gulp-angular-protractor'), exec = require('child_process').exec, mocha = require('gulp-spawn-mocha'), path = require('path'), globby = require('globby'); var yargs = require('yargs'); var buildFolder = path.join('dist', process.platform + '-' + process.arch); module.exports = ...
JavaScript
0.000001
@@ -335,342 +335,8 @@ %7B%0A%0A - function createMocha() %7B%0A return new mochaa(%7B%0A recursive: true,%0A compilers: 'js:babel-core/register',%0A env: %7B%0A NODE_PATH: '.'%0A %7D,%0A grep: yargs.argv.grep,%0A g: yargs.argv.g,%0A reporter: yargs.argv.reporter,%0A ...
aab3b443b24974269352e3f4176f250a57c6aa8b
update addclass, fix deps
captn.dom.addclass/index.js
captn.dom.addclass/index.js
"use strict"; var hasClassNameProperty = require('captn.dom._hasClassNameProperty'); var hasClass = require('captn.dom.hasclass'); /** * Adds a class name to the element's list of class names. * * @static * @param {DOMElement} element The DOM element to modify. * @param {string} className The name to append. ...
JavaScript
0
@@ -58,26 +58,26 @@ dom._has -C +c lass -NameP +namep roperty'
7ba10cf5442575bc9a178abbb6d5ab59252265bf
Update LoadCSSJS.js
LoadCSSJS.js
LoadCSSJS.js
/*! Simple CSS JS loader asynchronously for all browsers by cara-tm.com, MIT License */ var LoadCSSJS = function ( e, t, o ) { "use strict"; var f="", s; if( f.indexOf("["+e+"]") == -1 ) { f += "["+e+"]"; switch (t) { case "css" : s = document.createElement( "link" ); s.rel = ( o.rel || "stylesh...
JavaScript
0
@@ -341,16 +341,120 @@ e;%0A%09%09%09%09 +// Temporary invalid media query to load it async%0A%09%09%09%09s.media = %22only foo%22;%0A%09%09%09%09setTimeout( function()%7B s.media @@ -472,24 +472,29 @@ %7C%7C %22all%22 ); + %7D ); %0A%09%09%09break;%0A%0A
6f98fb35b506fbd360a922ac47ba7c2fef13be25
update MolecularFormula
eln/libs/MolecularFormula.js
eln/libs/MolecularFormula.js
export { default } from 'https://www.lactame.com//lib/molecular-formula/0.45.0/molecular-formula.min.js'; // } from 'http://localhost:9898/cheminfo-js/molecular-formula/dist/molecular-formula.js';
JavaScript
0.000013
@@ -70,17 +70,17 @@ la/0.45. -0 +1 /molecul
99b1fe0aa2cbaa6c6105b62ca16bb00b27b51b7a
Fix syntax error
lib/droonga-protocol/connections.js
lib/droonga-protocol/connections.js
/** * var connections = new Connections({ tag: 'droonga', * defaultDataset: 'example', * hostNames: ['127.0.0.1', ...], * port: 24224, * rece...
JavaScript
0.000585
@@ -1576,16 +1576,17 @@ rams.tag +, %0A @@ -1630,16 +1630,17 @@ tDataset +, %0A @@ -1661,24 +1661,25 @@ hostName +, %0A por @@ -1709,16 +1709,17 @@ ams.port +, %0A @@ -1764,16 +1764,17 @@ HostName +, %0A
149ef4c78a67e30f86ecf7409baa3228341a53f6
change jwt exp policy
server/controllers/jwt.js
server/controllers/jwt.js
"use strict" const jwt = require("jsonwebtoken"), configs = require("../config/index"), utils = require('../utils/index'), mw = require('../middlewares/index'); const cert = configs.jwt.cert; module.exports.init = function (router) { router.post('/tokens', create); router.get('/tokens/check', mw.ver...
JavaScript
0
@@ -726,16 +726,19 @@ + // exp: Ma @@ -781,17 +781,18 @@ 0 * 60// -1 +24 hours%0A @@ -809,16 +809,38 @@ %7D, cert +,, %7B expiresIn: '7d' %7D );%0A
742ba286fa1de0f4fd1d4d5be0f1a3f4a14f2acc
Remove reserved word 'package'
bin/db_server.js
bin/db_server.js
/* 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/. */ var restify = require('restify') var error = require('../error') var bufferize = require('../bufferize') var confi...
JavaScript
0.000266
@@ -442,22 +442,18 @@ r)%0Avar p -ackage +kg = requi @@ -4345,22 +4345,18 @@ rsion: p -ackage +kg .version
68e2dd8677c874e084beaf8e9354c2da605bc7bb
Fix progress resolution
model/business-process-new/requirement-uploads.js
model/business-process-new/requirement-uploads.js
// BusinessProcess requirement uploads resolution 'use strict'; var memoize = require('memoizee/plain') , definePercentage = require('dbjs-ext/number/percentage') , defineMultipleProcess = require('../lib/multiple-process') , defineRequirementUpload = require('../requirement-upload') ...
JavaScript
0.000003
@@ -1774,16 +1774,56 @@ erve) %7B%0A +%09%09%09if (!this.applicable.size) return 1;%0A %09%09%09retur
778fb568e59f6bc3f3379e9f3a96daca9c213eaf
use PATCH in the HTML templates
fcrepo-http-api/src/main/resources/views/common.js
fcrepo-http-api/src/main/resources/views/common.js
function addChild() { var id; var userSuppliedId = $("#new_id").val().trim(); if ( userSuppliedId == "") { id = "fcr:new"; } else { id = userSuppliedId; } var mixin = $("#new_mixin").val(); var newURI = $('#main').attr('resource') + "/" + id; if ( mixin != '' ) { ...
JavaScript
0
@@ -4541,35 +4541,36 @@ ostURI, type: %22P -OST +ATCH %22, contentType:
4542c689e844ffa0742c13fc16e3712fdb821b9f
Add FIXME about avoiding tile cache clears
src/ol/source/imagetilesource.js
src/ol/source/imagetilesource.js
goog.provide('ol.source.TileImage'); goog.require('goog.asserts'); goog.require('ol.Attribution'); goog.require('ol.Extent'); goog.require('ol.ImageTile'); goog.require('ol.Projection'); goog.require('ol.Tile'); goog.require('ol.TileCache'); goog.require('ol.TileCoord'); goog.require('ol.TileState'); goog.require('ol....
JavaScript
0
@@ -2876,24 +2876,213 @@ Function) %7B%0A + // FIXME It should be possible to be more intelligent and avoid clearing the%0A // FIXME cache. The tile URL function would need to be incorporated into the%0A // FIXME cache key somehow.%0A this.tileC
24cce428cba7815cb64c1b5f8765c8b24b67c897
Fix lint error
lib/octicons_styled/src/common.js
lib/octicons_styled/src/common.js
import * as styledSystem from 'styled-system' const COMMON = styledSystem.compose(styledSystem.space, styledSystem.color) export default COMMON
JavaScript
0.000035
@@ -1,8 +1,56 @@ +// eslint-disable-next-line import/no-namespace%0A import *
83af10913dd87b398f931ada76334b0efe0ffbc2
fix style
src/Dashboard.js
src/Dashboard.js
import React, { Component } from 'react'; import firebase from 'firebase'; import { Link } from 'react-router' import {List, ListItem} from 'material-ui/List'; import {GridList, GridTile} from 'material-ui/GridList'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import ContentAdd from 'material-u...
JavaScript
0.000001
@@ -600,24 +600,43 @@ ddButton: %7B%0A + marginTop: 10,%0A display:
70a11d9522665eb8dab9367a63a82875a38ba428
Fix preload crash
assets/js/webview-preload.js
assets/js/webview-preload.js
const { remote, webFrame } = require('electron') const config = remote.require('./lib/config') const WindowManager = remote.require('./lib/window') if (config.get('poi.content.muted', false)) { remote.getCurrentWebContents().setAudioMuted(true) } remote.getCurrentWebContents().addListener('dom-ready', (e) => { if...
JavaScript
0.000001
@@ -1411,33 +1411,16 @@ tents(). -getWebContents(). session. @@ -1473,25 +1473,8 @@ s(). -getWebContents(). sess
dea2e5a46c2b6976aabf69749f35e1e73855fcc9
work with href or ng-href
client/app/components/Common/directives.js
client/app/components/Common/directives.js
(function() { 'use strict'; var defaultActiveClass = 'active'; angular.module('stakes.common.directives', []) .directive('isActive', ['$location', function($location) { return { restrict: 'A', link: function($scope, element, attrs)...
JavaScript
0
@@ -399,16 +399,17 @@ eClass;%0A +%0A @@ -450,16 +450,17 @@ oute %7C%7C +( attrs.hr @@ -461,16 +461,33 @@ trs.href + %7C%7C attrs.ngHref) .substr(
3eeb84bd9a86f6cd84a46223c891937c295b1c4a
Fix salt generation now that url is no longer an array
lib/generators/yamlTestGenerator.js
lib/generators/yamlTestGenerator.js
var fs = require("fs"), _ = require("lodash"), url = require("url"), path = require("path"), yaml = require("js-yaml"), logger= require('../logger.js') // // Yaml Test Generator // // // Format expects 2 root properties: // defaults: an object of default TestDefition properties // ...
JavaScript
0.000006
@@ -6173,141 +6173,120 @@ -testDefinition.url = _.map(testDefinition.url, function(t) %7B%0A var separator = (t.indexOf('?') === -1) ? '?' : '&'%0A return t +var separator = (testDefinition.url.indexOf('?') === -1) ? '?' : '&'%0A testDefinition.url = testDefinition.url + s @@ -6307,23 +6307,16 @@ ...
4b78d4dd3861c06e168d0aebac2285eb8ee8e87f
fix lint issues
gulp/tasks/watch.js
gulp/tasks/watch.js
import { task, watch, series } from 'gulp' import loadPlugins from 'gulp-load-plugins' import config from '../../config' const g = loadPlugins() const { log } = g.util task('watch', (cb) => { const handleChange = (e) => log(`File ${e.path} was ${e.type}, running tasks...`) // rebuild doc info watch(config.path...
JavaScript
0.000001
@@ -302,16 +302,19 @@ watch( +%60$%7B config.p @@ -327,20 +327,17 @@ rc() - + ' +%7D /**/*.js ', s @@ -332,17 +332,17 @@ /**/*.js -' +%60 , series
018203ef00027f6af9ad2fad03b8d63a47ebdd79
Allow configuring keepFnName for babel-minify.
options.js
options.js
"use strict"; const getESModule = require("reify/lib/runtime/utils.js").getESModule; const nodeRequire = require; require = function require(id) { const exports = nodeRequire(id); return getESModule(exports) && exports.default || exports; }; const babelPresetMeteor = require("babel-preset-meteor"); const babelPre...
JavaScript
0
@@ -5536,32 +5536,66 @@ ierDefaults( -features +%7B inlineNodeEnv, keepFnName = false %7D = %7B%7D ) %7B%0A const @@ -6101,16 +6101,17 @@ resets: +%5B %5Brequire @@ -6137,51 +6137,66 @@ fy%22) -%5D%0A %7D;%0A%0A if (features) %7B%0A if (features. +, %7B keepClassName: keepFnName, keepFnName %7D%5D%5D%0A %...
ae63e574fd302426da0cb435f2ba8a77c8864b01
Load settings during startup
editor/main.js
editor/main.js
require([ "hr/utils", "hr/dom", "hr/promise", "hr/hr", "hr/args", "resources/init", "core/application", "core/commands", "core/packages", "core/users", "core/settings", "utils/dialogs", "utils/menu", "models/file" ], function(_, $, Q, hr, args, resources, app, com...
JavaScript
0.000001
@@ -945,16 +945,56 @@ .root))%0A + .then(settings.load.bind(settings))%0A .the
df0575a755ea4f69ccc606b342eea4b7a2755af9
Fix html render error from introducing ’iteration’
lib/plugins/html/dataCollector.js
lib/plugins/html/dataCollector.js
'use strict'; const merge = require('lodash.merge'), get = require('lodash.get'), reduce = require('lodash.reduce'), set = require('lodash.set'); class DataCollector { constructor(resultUrls) { this.resultUrls = resultUrls; this.urlRunPages = {}; this.urlPages = {}; this.summaryPages = {}; ...
JavaScript
0
@@ -1787,16 +1787,49 @@ x%5D %7C%7C %7B%0A + iteration: runIndex + 1,%0A
a52ed9d1defaa82d6e36fd29bb7a69c85747bb66
Update GetProfileLinks_FromDump.js
src/GetProfileLinks_FromDump.js
src/GetProfileLinks_FromDump.js
/** * Created by Tom on 06/09/2015. */ var fs = require('fs'); module.exports.getProfileLinks = getProfileLinks(); function getProfileLinks() { //function for filtering unique links function onlyUnique(value, index, self) { return self.indexOf(value) === index; } //read json file var ...
JavaScript
0
@@ -112,18 +112,16 @@ nks();%0A%0A -%0A%0A function @@ -402,19 +402,30 @@ ression -for +to filter only profile @@ -587,24 +587,44 @@ unique links + (delete duplicates) %0A var uni @@ -626,16 +626,28 @@ r unique +ProfileLinks = profi @@ -704,16 +704,48 @@ 2, '1'%5D%0A +console.log(uniqueProfileLinks); %0...
6cd28eebe5b0b0d9285b275488696f6564dc9d34
Remove already ran check
lib/js/components/tour-indicator.js
lib/js/components/tour-indicator.js
var m = require('mithril') var debounce = require('debounce') var TourTooltip = require('./tour-tooltip') var calculatePosition = require('../utils/calculate-position') var noop = function () {} module.exports = function TourIndicator (props) { var showTooltip = false function toggleTooltip () { showTooltip =...
JavaScript
0
@@ -392,53 +392,8 @@ ) %7B%0A - if (hasAlreadyRan) %7B%0A return%0A %7D%0A%0A
85b55847e10e19cfdc09ef0226d66361f8be1c50
missing semicolon
src/components/views/rooms/JumpToBottomButton.js
src/components/views/rooms/JumpToBottomButton.js
/* Copyright 2019 New Vector Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
JavaScript
0.999988
@@ -758,16 +758,17 @@ badge = +( %3Cdiv cla @@ -835,16 +835,18 @@ s%7D%3C/div%3E +); %0A %7D%0A
0d4be50896ee65bec51e5825be2a29e4f612f9b7
update pls
public/scripts.js
public/scripts.js
var app = angular.module('mrchung', [ 'ui.router', 'tableSort', 'ngFileUpload' ]); function objToSet(obj) { return Object.keys(obj).filter(k => obj[k] === true); } function setToObj(set) { var ret = {}; set.forEach(function(el) { ret[el] = true; }); return ret; } function adaptMongooseToNg(data) ...
JavaScript
0
@@ -2816,16 +2816,20 @@ https:// +www. youtube.
935baed3035613b1f81cb14efc896913284b17e7
Update Block_TensorPlaceholderSet.js
CNN/Conv/Block/Block_TensorPlaceholderSet.js
CNN/Conv/Block/Block_TensorPlaceholderSet.js
export { TensorPlaceholderSet }; //!!! ...unfinished... (2022/05/30) Used by Operation.apply() // class OperationApplyArgs { // // // constructor() { // // this.blockInput0 = // // this.blockInput1 = // // // // this.operationInput0 = // // this.operationInput1 = // // this.operationOutput0 = // ...
JavaScript
0
@@ -2396,16 +2396,107 @@ nput1;%0A%0A +//!!! ...unfinished... (2022/05/30) Register as the input TensorPlaceholder's final user.%0A%0A this
eb68a8cf5858de894b0b5747b90a5bedf77ac074
Fix options page
options.js
options.js
function save_options() { const color = document.getElementById("darkcolorinput").value; document.getElementById("darkcolor").value = color; chrome.storage.sync.set({ darkColor: color }, function() { // Update status to let user know options were saved. var status = document.getElementById('status'...
JavaScript
0.000001
@@ -579,17 +579,17 @@ r: '#000 -e +0 00'%0A %7D,
e2a77df1f3dc43adafe678c16c290d9cfcfe1de5
use new booting style for exercises
exercises/index.js
exercises/index.js
import React from 'react'; import { get } from 'lodash'; import { startMathJax } from 'shared/helpers/mathjax'; import api from './src/api'; import User from './src/models/user'; import { ReactHelpers } from 'shared'; import './resources/styles/app.scss'; function loadApp() { api.start(); startMathJax(); const d...
JavaScript
0
@@ -183,37 +183,51 @@ ort -%7B ReactHelpers %7D from 'shared +renderRoot from 'shared/helpers/render-root ';%0Ai @@ -263,17 +263,53 @@ .scss';%0A -%0A +import Root from './src/app';%0A%0Aasync function @@ -498,247 +498,74 @@ r);%0A +%0A -// Both require and module.hot.accept must be passed a bare string, not...
9e7978d9ca38efd0d3b87845697a36aff12eef06
Add slot folder #4
generators/app/resources/handler.js
generators/app/resources/handler.js
const _ = require('lodash'); let questions = require('./prompts'), initialPrompt = questions.initialPrompt, secondPrompt = questions.secondPrompt, pluginsPrompt = questions.pluginsPrompt, installPrompt = questions.installPrompt, _plugins = require('./plugins'); module.exports = class Prom...
JavaScript
0.000001
@@ -6144,32 +6144,199 @@ this.fs.copy(%0A + this.templatePath('speechAssets/customSlotTypes/.gitkeep'),%0A this.destinationPath('speechAssets/customSlotTypes/.gitkeep')%0A );%0A this.fs.copy(%0A this.tem
8feaf8300345588daecb48b8ad537f9059ec0f44
fix upload test
components/upload/__tests__/uploadlist.test.js
components/upload/__tests__/uploadlist.test.js
import React from 'react'; import { mount } from 'enzyme'; import Upload from '..'; const delay = timeout => new Promise(resolve => setTimeout(resolve, timeout)); const fileList = [{ uid: -1, name: 'xxx.png', status: 'done', url: 'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png', ...
JavaScript
0
@@ -2615,24 +2615,46 @@ delay(100);%0A + wrapper.update();%0A expect(w
ba95d11dde54107b67e37dd3bba96b7f06414f21
Fix zube.io
src/scripts/content/zube.js
src/scripts/content/zube.js
/*jslint indent: 2, unparam: true*/ /*global $: false, document: false, togglbutton: false*/ 'use strict'; //Board view togglbutton.render('.post-it:not(.toggl)', {observe: true}, function (elem) { var link, description = $('.heading', elem).textContent.trim(), project = $('.projects .title').textContent.tri...
JavaScript
0
@@ -225,32 +225,39 @@ on = $('.heading + .title ', elem).textCon @@ -319,24 +319,68 @@ ntent.trim() +,%0A container = $('.heading .title', elem) ;%0A%0A link = @@ -527,27 +527,17 @@ %0A%0A -$('.heading', elem) +container .ins @@ -556,21 +556,27 @@ nk, $('. -title +zube-number ', elem) @@ -1038,16 +1038,2...
0dbce70edaa56d51be7d80f9c048938009b39351
Fix month number of bird metadata
explorer/js/app.js
explorer/js/app.js
// ------------------------- // Fetch data from cartodb // ------------------------- // general function to fetch data given a url function fetchTrackingData(url) { var result = jQuery.get(url, function(data) { jQuery('.result').html(data); }); return result; } // fetch distances of a device to a ...
JavaScript
0.002069
@@ -4871,32 +4871,33 @@ lYear() + %22-%22 + +( tracking_start.g @@ -4903,24 +4903,29 @@ getMonth() + + 1) + %22-%22 + track
592ff6dcf773a4821b507016f1c60204db28da8d
update TextAreaExamples
examples/containers/app/modules/fields/TextAreaExamples.js
examples/containers/app/modules/fields/TextAreaExamples.js
import React, {Component} from 'react'; import TextArea from 'src/TextArea'; import Widget from 'src/Widget'; import WidgetHeader from 'src/WidgetHeader'; import PropTypeDescTable from 'components/PropTypeDescTable'; import doc from 'assets/propTypes/TextArea.json'; class TextAreaExamples extends Component { co...
JavaScript
0
@@ -2525,16 +2525,79 @@ h=%7B100%7D%0A + isStrictMaxLength=%7Btrue%7D%0A
53196f31be2fec1b5cde771195b949d09e3e231d
redemption is more acurate
src/actions/matches-actions.js
src/actions/matches-actions.js
import base64 from 'base-64' import base from '../base' import { updateAlert, generateAlertPayload } from './alert-actions' export const ADD_MATCHES = 'ADD_MATCHES' export const ADD_MATCHES_SUCCESS = 'ADD_MATCHES_SUCCESS' export const ADD_MATCHES_FAILURE = 'ADD_MATCHES_FAILURE' export const UPDATE_MATCH = 'UPDATE_MAT...
JavaScript
0.998865
@@ -1724,20 +1724,26 @@ .fetch(' -auth +redemption -codes', @@ -1768,28 +1768,34 @@ nst validate -Auth +Redemption Code = (user @@ -1796,28 +1796,34 @@ (userCode, -auth +redemption Code) =%3E bas @@ -1861,20 +1861,26 @@ ()) === -auth +redemption Code%0A%0Aex @@ -1926,28 +1926,24 @@ ayload, user -Auth Code)...
d4be92ac7be3cc6e7bf62904daaf3a88bd9d95dc
Store the data in localStorage when the Websocket is not available
tab-spy-extension/background.js
tab-spy-extension/background.js
// TODO: handle that the websocket goes down // * store events in LocalStorage? // * Notify the user? // TODO: make the port configurable (function () { var ws, connected = false, queue = [], backoff = 1000; function setupWebsocket() { ws = new WebSocket("ws://localhost:8765/tabs"); ...
JavaScript
0.000001
@@ -42,49 +42,8 @@ own%0A -// * store events in LocalStorage?%0A // @@ -153,20 +153,8 @@ se, -queue = %5B%5D, back @@ -164,16 +164,505 @@ = 1000; +%0A%0A if (!localStorage.queue) %7B%0A localStorage.queue = JSON.stringify(%5B%5D);%0A %7D%0A%0A function addToQueue(event) %7B%0A var...
b8d59b4f842ad6d8d4bf81c71a721e6851b4e360
Remove unnecessary semi-colon.
spec/dice-expression-spec.js
spec/dice-expression-spec.js
/* * Copyright (c) 2015 Steven Soloff * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publi...
JavaScript
0.000326
@@ -2786,33 +2786,32 @@ %7D -; %0A
dc10d9f672a6e5aa0bc322ed8ff97e115b1af05d
Remove old js
guides/assets/javascripts/guides.js
guides/assets/javascripts/guides.js
$.fn.selectGuide = function(guide) { $("select", this).val(guide); }; var guidesIndex = { bind: function() { var currentGuidePath = window.location.pathname; var currentGuide = currentGuidePath.substring(currentGuidePath.lastIndexOf("/")+1); $(".guides-index-small"). on("change", "select", guides...
JavaScript
0.000644
@@ -1710,181 +1710,8 @@ %7D;%0A%0A -// Disable autolink inside example code blocks of guides.%0A$(document).ready(function() %7B%0A SyntaxHighlighter.defaults%5B'auto-links'%5D = false;%0A SyntaxHighlighter.all();%0A%7D);%0A%0A // L
082ae4e0689622ac0887e17b198f9f49398b12f1
Update issueHandler.js
GitHub4Jive-Addon/tiles/github-issues-recent/backend/webhooks/issueHandler.js
GitHub4Jive-Addon/tiles/github-issues-recent/backend/webhooks/issueHandler.js
/* * Copyright 2014 Jive Software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
JavaScript
0.000001
@@ -1337,16 +1337,85 @@ stance;%0A + // (1) create GitHub webhook, callback is /github/WebHookPortal; %0A ret @@ -1509,16 +1509,111 @@ , auth, +%0A // (2) contribute a webhook callback function to handle issue events%0A %0A function @@ -1618,16 +1618,20 @@ on () %7B%0A + ...
f5be758183a944d3c957549f38f6f98f1a3ffc93
add bpm to queso
src/scripts/models/queso.js
src/scripts/models/queso.js
import EventEmitter from 'events'; export default class Queso extends EventEmitter { constructor(opts) { this.tracks = []; this.selectedTrack = null; this.isPlaying = false; this.isRecording = false; } addTrack(track) { this.tracks.push(track); this.emit('TRACK_ADDED', track); this.s...
JavaScript
0.999188
@@ -97,16 +97,21 @@ tor(opts + = %7B%7D ) %7B%0A @@ -217,16 +217,48 @@ false;%0A + this.bpm = opts.bpm %7C%7C 120;%0A %7D%0A%0A a @@ -875,11 +875,84 @@ D');%0A %7D +%0A%0A setBpm(bpm) %7B%0A this.bpm = bpm;%0A this.emit('STATE_CHANGED');%0A %7D %0A%7D%0A
fd7b27f6cbff5567565e1ded1f78c49f68f20432
Add assertions
spec/domain/journal-entry.js
spec/domain/journal-entry.js
require('./helper'); describe('JournalEntry', function () { describe('getDebitAmount', function () { it('returns the amount of debit if it is debit entry', function () { var entry = new JournalEntry(null, 'debit', null, new Money(500), null, null); expect(entry.getDebitAmount(...
JavaScript
0.000153
@@ -1970,16 +1970,220 @@ , 'D'%5D); +%0A expect(d1.getCorrespondingTitles()).to.eql(%5B'C', 'D'%5D);%0A expect(c0.getCorrespondingTitles()).to.eql(%5B'A', 'B'%5D);%0A expect(c1.getCorrespondingTitles()).to.eql(%5B'A', 'B'%5D); %0A%0A
0bbb611002dde76c2bfa24632f575ba3bf22f276
Fix Help link
extension/popup.js
extension/popup.js
// @flow /* @jsx h */ /* global document */ import { // eslint-disable-next-line h, render, Component } from 'preact'; import { isUrlAccepted, getEffectiveRule, blacklist, whitelist } from './sitelist'; import { loadOptions, saveOptions, type Options } from './options'; import { getCu...
JavaScript
0
@@ -4662,57 +4662,238 @@ %3Ca - href=%22https://soreine.dev/hyper-gwent/help%22%3Ehelp +%0A rel=%22noopener noreferrer%22%0A target=%22_blank%22%0A href=%22https://soreine.dev/hyper-gwent/help%22%0A %3E%0A ...
34a741325452c8bf662ab20f7b0bccbfad3e0e1a
Fix size report to display app/shared size
gulpfile.js/tasks/rev/sizereport.js
gulpfile.js/tasks/rev/sizereport.js
var config = require('../../config'); var gulp = require('gulp'); var repeatString = require('../../lib/repeatString'); var sizereport = require('gulp-sizereport'); // 6) Report sizes gulp.task('size-report', function() { var hashedFiles = '/**/*-' + repeatString('[a-z,0-9]', 8) + '*.*'; return g...
JavaScript
0
@@ -321,17 +321,16 @@ ulp.src( -%5B config.p @@ -338,52 +338,45 @@ blic -Assets + hashedFiles, '*!rev-manifest.json'%5D +Directory + 'assets/javascripts/*.js' )%0A
1443c1f9c2c1c2c404e012818b4f90a555e7800d
change presets
src/seq/fragments/preset.js
src/seq/fragments/preset.js
// @flow import type { FragmentSetting } from 'types/pattern' import Fragments from 'components/seq/fragments/index' const { Stairs, Transpose, Repeat, Limit, Stretch, Scale } = Fragments export const seqFragments: Array<FragmentSetting> = [ { class: Repeat, props: { count: 2 }, }, { class: Stairs,...
JavaScript
0.000001
@@ -150,15 +150,8 @@ eat, - Limit, Str @@ -176,16 +176,16 @@ agments%0A + %0Aexport @@ -274,17 +274,17 @@ count: -2 +1 %7D,%0A %7D, @@ -331,9 +331,9 @@ es: -5 +2 %7D,%0A @@ -392,10 +392,10 @@ e: - -31 +20 %7D,%0A @@ -637,32 +637,32 @@ class: Repeat,%0A - props: %7B cou @@ -671,32 +671,93 @@ :...
e86d1ee4468eade46b04f9a840394e3bad043a83
use year from currentDate instead of initialising a new Date() object
lib/CorneliusAction.js
lib/CorneliusAction.js
const EventEmitter = require('events').EventEmitter; const MlbRequest = require('./MlbRequest'); /** * Represents some Cornelius action. */ class CorneliusAction extends EventEmitter { /** * Create an action. * @param {string} action * @param {object} options */ constructor(action, options...
JavaScript
0.000001
@@ -2889,32 +2889,24 @@ urn -new Date().getFullY +currentDate.y ear -() ;%0A
adb93243554eae6e6b46e6a523be5340c9cd5333
Add support for Delete and other recordId adjustments
app/assets/javascripts/components/generic_object/generic-object-definition-toolbar.js
app/assets/javascripts/components/generic_object/generic-object-definition-toolbar.js
ManageIQ.angular.app.component('genericObjectDefinitionToolbar', { bindings: { recordId: '=?', entity: '@', entityName: '@?', redirectUrl: '@?', }, controllerAs: 'toolbar', controller: genericObjectDefinitionToolbarController, }); genericObjectDefinitionToolbarController.$inject = ['API', 'miqS...
JavaScript
0
@@ -98,25 +98,8 @@ ?',%0A - entity: '@',%0A @@ -112,24 +112,24 @@ Name: '@?',%0A + redirect @@ -695,16 +695,51 @@ nt.type; +%0A toolbar.entity = event.entity; %0A%0A if @@ -894,16 +894,175 @@ rdId%5D);%0A + %7D else if (ManageIQ.record.recordId) %7B%0A toolbar.genericObjectDefinitio...
e041b1727cafdaf45f13deb1d94848deaae8c9b7
fix linting error
gulpfile.js/tests/changelog.test.js
gulpfile.js/tests/changelog.test.js
'use strict' const test = require('tape') const changelog = require('../tasks/changelog') test('changelog - runCommand', (t) => { t.plan(3) changelog .runCommand() .catch(function (err) { t.ok(err instanceof Error, 'returns an Error if the command fails') t.ok(err.message.includes('No command...
JavaScript
0.000005
@@ -2260,17 +2260,16 @@ %7D)%0A%0A -%0A t.ok(c
08969bd0b94be215a7e84841a66639f56d09069b
Fix start for bin script.
src/server/routes/config.js
src/server/routes/config.js
"use strict"; exports.port = process.env.ARGO_PORT || 8000; exports.staticFiles = "./src/client/"; exports.apiUrl = "/api"; exports.streamUrl = "/stream"; exports.environment = process.env.OANDA_ENVIRONMENT || "practice"; exports.accessToken = process.env.OANDA_TOKEN || "ACCESS_TOKEN"; exports.accountId = process.en...
JavaScript
0
@@ -4,24 +4,53 @@ e strict%22;%0A%0A +var path = require(%22path%22);%0A%0A exports.port @@ -110,14 +110,38 @@ s = -%22./src +path.resolve(__dirname, %22../.. /cli @@ -145,16 +145,17 @@ client/%22 +) ;%0Aexport
4b8d7381d187ec967efa2c913b48d0030ae08451
Clean up profile editor controller
public/modules/users/controllers/profile.edit.client.controller.js
public/modules/users/controllers/profile.edit.client.controller.js
'use strict'; /* This declares to JSHint that 'moment' and 'settings' are global variables: */ /*global moment:false */ /*global settings:false */ angular.module('users').controller('EditProfileController', ['$scope', '$modal', '$http', '$log', '$stateParams', '$state', 'Languages', 'Users', 'Authentication', funct...
JavaScript
0
@@ -235,16 +235,8 @@ tp', - '$log', '$s @@ -335,14 +335,8 @@ ttp, - $log, $st @@ -2706,75 +2706,8 @@ r);%0A -%0A $log.log('-%3EupdateUserProfile');%0A $log.log(user);%0A%0A @@ -2758,31 +2758,29 @@ -$log.log('user.$update: +console.log('response ');%0A @@ -2793,12 +2793,15 @@ -$lo...
3a8733d7cc6c72f4a78f6fe5415607acc7d6844b
Include forgot/reset password routes in local auth module
generators/authentication/modules/local/passport-routes.js
generators/authentication/modules/local/passport-routes.js
app.get('/login', user.loginGet); app.post('/login', user.loginPost); //app.get('/logout', userController.logout); //app.get('/forgot', userController.getForgot); //app.post('/forgot', userController.postForgot); //app.get('/reset/:token', userController.getReset); //app.post('/reset/:token', userController.postReset);...
JavaScript
0
@@ -1,35 +1,36 @@ app.get('/ -login +signup ', user. loginGet);%0Aa @@ -17,21 +17,22 @@ ', user. -login +signup Get);%0Aap @@ -44,21 +44,22 @@ t('/ -login +signup ', user. logi @@ -58,22 +58,21 @@ ser. -login +signup Post);%0A -// app. @@ -84,88 +84,29 @@ /log -out +in ', user -Controller.logout);%0A//app....
2e038dcfa5e6b3ec3529b608b1f8b00d7ad69680
remove ,
src/server/setupPassport.js
src/server/setupPassport.js
var passport = require('passport'), config = require('config'), LocalStrategy = require('passport-local').Strategy, JwtStrategy = require('passport-jwt').Strategy, ExtractJwt = require('passport-jwt').ExtractJwt, bcrypt = require('bcrypt'), Model = require('./model/models.js'), module.expo...
JavaScript
0.000001
@@ -294,17 +294,16 @@ els.js') -, %0A %0A%0Am
b04639ccc55f5fd1d86763c1a2adae837b344a41
Fix vbarray extern
externs/vbarray.js
externs/vbarray.js
/** * @externs * @see http://msdn.microsoft.com/en-us/library/y39d47w8(v=vs.94).aspx */ /** * FIXME check argument type * @constructor * @param {VBArray|string} safeArray */ var VBArray = function(safeArray) {}; /** * @return {number} */ VBArray.prototype.dimensions = function() {}; /** * @param {...num...
JavaScript
0.000018
@@ -412,34 +412,39 @@ * @param %7Bnumber += %7D +opt_ dimension%0A * @re @@ -484,32 +484,36 @@ ound = function( +opt_ dimension) %7B%7D;%0A%0A @@ -615,18 +615,23 @@ %7Bnumber += %7D +opt_ dimensio @@ -687,16 +687,20 @@ unction( +opt_ dimensio
987d790d6b28c75fe1410c379ec3cadbb2373a17
fix hexagon link
public/js/jqueryselect.js
public/js/jqueryselect.js
$(document).ready(function(){ $(window).bind('beforeprint', function(){ $('select').each(function(){ if($(this).hasClass("color")){ if($(this).prop('selectedIndex')==5){ $(this).parent("span").after($('<span class="select-print noscreen" style="position: relative;top:1px;left:5px;color:'+ $(this).find('o...
JavaScript
0.000001
@@ -1406,10 +1406,8 @@ rc=%22 -.. /ima
af61ff32bc2497440a5c8510c4d7b7b3a3ef8875
support for namespace imports
lib/ast/AstProvider.js
lib/ast/AstProvider.js
'use babel'; import BufferedNodeProcessExecutorPool from '../utils/BufferedNodeProcessExecutorPool.js' const Q = require('q'); const path = require('path'); const _ = require('lodash'); const EXPORT_DEFAULT = 'ExportDefaultDeclaration'; const EXPORT_NAMED = 'ExportNamedDeclaration'; const IMPORT_DEFAULT = 'ImportDef...
JavaScript
0
@@ -432,24 +432,87 @@ Specifier';%0A +const IMPORT_NAMESPACE_SPECIFIER = 'ImportNamespaceSpecifier';%0A const VARIAB @@ -3808,63 +3808,90 @@ -return %7B%0A textLocal: specifier.local.name, +let textImported;%0A if (specifier.type !== IMPORT_NAMESPACE_SPECIFIER) %7B %0A @@ -3913,17 +3...
cac396a74ffb7da4a33c25397f5354b6a62d0d57
Change url for rpc methods
lib/cb.httpRPC/main.js
lib/cb.httpRPC/main.js
// Requires var HttpRPCManager = require('./manager').HttpRPCManager; function setup(options, imports, register) { // Import var app = imports.server.app; // Construct var manager = new HttpRPCManager(app, '/rpc'); // Register register(null, { "httpRPC": { register: manag...
JavaScript
0
@@ -224,11 +224,8 @@ , '/ -rpc ');%0A
a6f4d4bf9cccb9eea6e5d39c741a88b3f22a4771
add angular-router for non cui project
templates/web/app/karma.conf.js
templates/web/app/karma.conf.js
var bowerConfig = require('./bower.json'); module.exports = function(config){ var files=[]; if(bowerConfig.dependencies && bowerConfig.dependencies.cui){ files=[ 'bower_components/cui/bin/js/cui-vendor.min.js', 'bower_components/cui/bin/js/cui.min.js' ]; } else{ files=['bower_compon...
JavaScript
0
@@ -300,16 +300,23 @@ files=%5B +%0A 'bower_c @@ -348,16 +348,82 @@ .min.js' +,%0A 'bower_components/angular-route/angular-route.min.js'%0A %5D;%0A %7D%0A%0A
b87a2b028820871e7b9230432574d75e43745319
Fix typo
lib/channel_factory.js
lib/channel_factory.js
/*jslint node: true, indent: 2, unused: true, maxlen: 80, camelcase: true */ /* * stompit.ChannelFactory * Copyright (c) 2014 Graham Daws <graham.daws@gmail.com> * MIT licensed */ var ConnectFailover = require('./connect_failover'); var Channel = require('./channel'); function ChannelFactory() { if (!(this i...
JavaScript
0.999999
@@ -550,34 +550,34 @@ %7B%0A this._con -e n +e ctFailover = arg
aa44418328e4ea299d343640ca1ac102ffb7871b
Clean repeated code block
lib/circular_buffer.js
lib/circular_buffer.js
/* * Ucloud - circular buffer * Copyright(c) 2012 HP Labs Singapore * Description: A Circular Buffer that is implemented with node.js Buffer */ var CircularBuffer = exports.CircularBuffer = function(size){ if (!size || isNaN(size)){ throw size + " is not a number"; } this.buffer = new Buffer(si...
JavaScript
0.000003
@@ -2,17 +2,8 @@ *%0A * - Ucloud - cir @@ -40,25 +40,39 @@ 012 -HP Labs Singapore +Liu Xiaohui (herolxh@gmail.com) %0A * @@ -856,204 +856,8 @@ %0A%7D%0A%0A -CircularBuffer.prototype.datasize = function()%7B%0A if (this.end %3E= this.start)%7B%0A return this.end - this.start;%0A %7D%0A else%7B%0A...
352c691f539ca2f9602d5b52db8918c908c0b8c0
create test for class
lib/commands/Extend.js
lib/commands/Extend.js
var Command = require('./Command'); var Templates = require('../render/TemplatesCollection'); var _super = Command.prototype; var child_process = require('child_process'); var handlebars = require('handlebars'); var npath = require('path'); var _ = require('lodash'); module.exports = Command.extend({ 'defaults': [ ...
JavaScript
0.000003
@@ -1250,16 +1250,46 @@ = this; +%0A var started = new Date(); %0A%0A pa @@ -2219,83 +2219,918 @@ Path +, started );%0A +%0A -// console.log('createClass', path, parentPath, outputPath, +self.createTestForClass(parentPath, outputPath);%0A %7D,%0A%0A 'createTestForClass': function (parentPath, output...
8fc8d5626daad958a6bf976a6f92ac48016d86a4
use standard events for invoke
lib/commands/invoke.js
lib/commands/invoke.js
var _ = require('lodash'); var callbacks = require('../internal/callbacks'); var fs = require('fs'); var path = require('path'); var paths = require('../internal/paths'); var Request = require('../api/request'); var Response = require('../api/response'); var rjson = require('relaxed-json'); var url = require('url'); va...
JavaScript
0.000001
@@ -352,16 +352,67 @@ utils'); +%0Avar events = require('../internal/lambda-events'); %0A%0Avar DE @@ -584,16 +584,30 @@ rLiteral +, app, context ) %7B%0A va @@ -1045,786 +1045,60 @@ %7D%0A -%0A -// Add any caller-supplied headers to the defaults.%0A var headers = _.clone(DEFAULT_HEADERS);%0A if (opts.hea...
6c8cb25685fc1bb23eaf86632a44ceae4c9ffd9f
fix grammer error in logout message
lib/commands/login._js
lib/commands/login._js
// // Copyright (c) Microsoft and contributors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
JavaScript
0.000001
@@ -5287,19 +5287,18 @@ not logg -ing +ed in as %5C @@ -5307,18 +5307,8 @@ s%5C'. - Quitting. '),
37285e2eade9c1a342e3ecc2a808417464054cae
Fix deployment (babel 6)
lib/deploy_gh_pages.js
lib/deploy_gh_pages.js
'use strict'; require('babel/register'); var ghpages = require('gh-pages'); var config = require('../webpack.config.babel'); main(); function main() { ghpages.publish(config.output.path, console.error.bind(console)); }
JavaScript
0
@@ -22,17 +22,17 @@ e('babel -/ +- register
2c121c43e8622081fed3803dd52706fecdc9d8d4
Check if the file is commented before creating a new h3 for the file.
lib/documenters/lib.js
lib/documenters/lib.js
/** * Module dependencies */ var javascript = require('./../htmlifiers/javascript'), fs = require('fs'), step = require('step'), readdirp = require('readdirp'); /** * Build a html piece from the lib folder of the module in `cwd` * @param {string} cwd - current working directory * @param {Function} ca...
JavaScript
0
@@ -555,16 +555,50 @@ '!deps' +,'!docs','!doc','!perf','!windows' %5D%0A%09%09%09%7D;%0A @@ -1362,16 +1362,25 @@ t);%0A%09%09%09%09 +if(html) section
e3281c057a99efe9560e0099ab67aa28a59e3bf5
Fix console function test
test/html/js/console/console.js
test/html/js/console/console.js
import chai from 'chai'; const expect = chai.expect; import checkConsoleLog from '../../../../src/html/js/console/console.js'; describe('html', function() { describe('test console function', function() { it('should return array with error', () => { const result = { body: 'function something(text) {...
JavaScript
0.000166
@@ -219,31 +219,54 @@ uld -return array with error +throw error if javascript contains console.log ', ( @@ -398,38 +398,31 @@ %7D;%0A%0A -const error = +expect( checkConsole @@ -428,55 +428,38 @@ eLog -(result);%0A expect(error.length).to.equal(1 +.bind(null, result)).to.throw( );%0A @@ -492,19 +4...
52f989ad84af134fa4fabb8a5b3141d26ab8455f
fix event test
test/qunit/ydn_db_tck_events.js
test/qunit/ydn_db_tck_events.js
if (/log/.test(location.hash)) { if (/ui/.test(location.hash)) { var div = document.createElement('div'); document.body.appendChild(div); ydn.debug.log('ydn.db', 100, div); } else { ydn.debug.log('ydn.db', 100); } } var db; var options = {}; // options = {Mechanisms: ['websql']}; var db_name_ev...
JavaScript
0.000004
@@ -3637,36 +3637,32 @@ ta, 'value');%0A - %7D%0A start();%0A %7D @@ -3650,32 +3650,39 @@ %0A start();%0A + %7D%0A%0A %7D);%0A%0A db.add( @@ -4931,22 +4931,19 @@ alue');%0A +%0A - %7D%0A star @@ -4939,32 +4939,38 @@ %0A start();%0A + %7D%0A %7D);%0A%0A db.add(
d3556bfb8d55019a3269d4caaef879f61cf23da6
Add mapKeys utility
src/utilities/functional.js
src/utilities/functional.js
'use strict'; // Similar to Lodash map() and mapValues(), but with vanilla JavaScript const map = function (obj, mapperFunc) { if (obj instanceof Array) { return obj.map(mapperFunc); } if (!obj || obj.constructor !== Object) { const message = `map utility must be used with objects or arrays: ${JSON.str...
JavaScript
0
@@ -947,16 +947,410 @@ %7D%0A%7D;%0A%0A +// Similar to map() for keys%0Aconst mapKeys = function (obj, mapperFunc) %7B%0A if (!obj %7C%7C obj.constructor !== Object) %7B%0A const message = %60map utility must be used with objects or arrays: $%7BJSON.stringify(obj)%7D%60;%0A throw new Error(message);%0A %7D%0...
7d723d8e5b462050a878850f841dc641e3972b80
add general reduceChildren method to ensure standard default childNames
src/victory-util/helpers.js
src/victory-util/helpers.js
import { defaults, isFunction, property, omit } from "lodash"; import Collection from "./collection"; export default { getPadding(props) { const padding = typeof props.padding === "number" ? props.padding : 0; const paddingObj = typeof props.padding === "object" ? props.padding : {}; return { top: ...
JavaScript
0
@@ -38,16 +38,24 @@ ty, omit +, reduce %7D from @@ -102,16 +102,43 @@ ection%22; +%0Aimport React from %22react%22; %0A%0Aexport @@ -3725,15 +3725,1018 @@ alues);%0A + %7D,%0A%0A /**%0A * @param %7BObject%7D props: axis component props%0A * @param %7BFunction%7D iteratee: a function with arguments %22child...
4a1f0f6f295fc4d39e5c39d58b2b0567a37c3aa7
fix clipPath not update correctly when chart onExit
src/victory-util/helpers.js
src/victory-util/helpers.js
import { defaults, isFunction, merge, partial, property, omit } from "lodash"; export default { getPadding(props) { const padding = typeof props.padding === "number" ? props.padding : 0; const paddingObj = typeof props.padding === "object" ? props.padding : {}; return { top: paddingObj.top || paddi...
JavaScript
0
@@ -4849,16 +4849,97 @@ yle%22%5D);%0A + const clipPathProps = %7B clipWidth: props.width, clipHeight: props.height %7D;%0A%0A retu @@ -4960,16 +4960,31 @@ , props, + clipPathProps, themePr
e9d35690c8f6c95ac72eb5a3221137f4d8a52bc1
Update Index.js
ref/pu/Index.js
ref/pu/Index.js
var v="v0.0.8"; var n = 0; n++; var s = "p"; s += n; s += ".txt"; function blDiv(oBoss,id,html){ var r = document.getElementById(id); if(!r){ r = document.createElement("div"); r.id = id; r.style.border = "1px solid #3d3d3d"; r.style.position = "fixed"; r.style.top =0; ...
JavaScript
0.000001
@@ -9,9 +9,9 @@ 0.0. -8 +9 %22;%0Av @@ -615,14 +615,18 @@ Div( -%22 +$(%22# myPu%22 +) ,%22p1
6183a8a29d7fa0084f4de68ffd0e8dc881d18e59
Use CRM.url() to generate the url of the ajax service.
regionlookup.js
regionlookup.js
cj(function ($) { // The "source" is the DOM selector that triggers the lookup (ex: postcode field) if (! CRM.regionlookup.source) { return; } $(CRM.regionlookup.source).change(function() { if (! $(this).val()) { return; } var query = '/civicrm/regionlookup/postcode/' + $(this).val() + '...
JavaScript
0
@@ -256,26 +256,33 @@ var query = +CRM.url( ' -/ civicrm/regi @@ -292,32 +292,33 @@ ookup/postcode/' +) + $(this).val()
c8c9f54d12340c80b6b70516fce5709831bf61fe
fix bug introduced by maintainability fix
relay-server.js
relay-server.js
var util = require("util"); var EventEmitter = require("events").EventEmitter; var net = require("net"); var tls = require('tls'); var fs = require('fs'); module.exports = { createRelayServer: function(relayPort, internetPort, options) { if (options === undefined) { options = { ...
JavaScript
0
@@ -2803,24 +2803,30 @@ handleClose( +client );%0A %7D);%0A @@ -3053,32 +3053,38 @@ lose = function( +client ) %7B%0A var i = @@ -3096,37 +3096,32 @@ pending.indexOf( -this. client);%0A if @@ -3212,21 +3212,16 @@ indexOf( -this. client);