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
f403d9d594da53b162892e387f4bc2e4b4a2c1cc
Update map.js
web/map.js
web/map.js
var zoomOut = 4; var zoomIn = 1; var tilePath = '../day/'; function CustomMapType() { } CustomMapType.prototype.tileSize = new google.maps.Size(512,512); CustomMapType.prototype.maxZoom = zoomOut+zoomIn; CustomMapType.prototype.getTile = function(coord, zoom, ownerDocu...
JavaScript
0.000001
@@ -64,14 +64,13 @@ = ' -../day +tiles /';%0A
14d6ef7dde6d5437491ce2f70e88780e4659e214
Fix documentation for GridLayout to add a return type
modules/ve/ui/layouts/ve.ui.GridLayout.js
modules/ve/ui/layouts/ve.ui.GridLayout.js
/*! * VisualEditor UserInterface GridLayout class. * * @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt * @license The MIT License (MIT); see LICENSE.txt */ /** * Grid layout. * * @class * @extends ve.ui.Layout * * @constructor * @param {ve.ui.PanelLayout[]} panels Panels in the grid * @...
JavaScript
0.000001
@@ -3290,16 +3290,79 @@ osition%0A + * @returns %7Bve.ui.PanelLayout%7D The panel at the given postion%0A */%0Ave.u
a653f01e43f29a24104181ed3c99fe2129c65894
use .cmd versions for Windows
scripts/postinstall.es6
scripts/postinstall.es6
import fs from 'fs-plus' import path from 'path' import childProcess from 'child_process' async function spawn(cmd, args, opts = {}) { return new Promise((resolve, reject) => { const options = Object.assign({stdio: 'inherit'}, opts); const proc = childProcess.spawn(cmd, args, options) proc.on("error", re...
JavaScript
0
@@ -2485,16 +2485,96 @@ tions);%0A + let npmCmd = %22npm%22%0A if (process.platform === %22win32%22) %7B npmCmd = %22npm.cmd%22 %7D%0A await @@ -2579,21 +2579,22 @@ t spawn( -%22 npm -%22 +Cmd , %5Bcmd%5D,
6e0f6fc662b7b8b71d106fc0ed05fd6c5e07ad33
Change title/edition on a published item does not change the url
src/main/web/florence/js/functions/_checkRenameUri.js
src/main/web/florence/js/functions/_checkRenameUri.js
function checkRenameUri(collectionId, data, renameUri, onSave) { if (renameUri) { swal({ title: "Warning", text: "You have changed the title or edition and this could change the uri. Are you sure you want to proceed?", type: "warning", showCancelButton: true, confirmButtonText: "Chan...
JavaScript
0
@@ -1793,32 +1793,33 @@ );%0A %7D +, %0A );%0A @@ -1817,39 +1817,126 @@ -);%0A console.log(newUri + onError = function () %7B%0A onSave(collectionId, data.uri, JSON.stringify(data));%0A %7D%0A );%0A @@ -2607,32 +2607,33 @@ );%0A %7D...
9bb85a8c73b81ae831e024750b96db99c0e76028
clean up
src/electron/electron.js
src/electron/electron.js
'use strict'; const { app, BrowserWindow } = require('electron'); // electron-connect is used only in dev mode, node_modules are not // shipped in the electron package so importing electron-connect // will throw an error when using "npm run package" let client; if (process.env.NODE_ENV === 'development') { client =...
JavaScript
0.999723
@@ -1127,16 +1127,17 @@ )%0A %7D%0A%7D) +; %0A%0Aapp.on @@ -1197,16 +1197,17 @@ tform != += 'darwin
e87399b6ccec4edba7ef98d64bc40be56f281a65
fix domain
js/plot.js
js/plot.js
var BAR_WIDTH = 10; var MIN_HEIGHT = 5; var data = null; var plotted = false; var getters = { 'duration': function(d) { return d.duration; }, 'cpu_time': function(d) { return d.cpu_times.system + d.cpu_times.user; }, 'memory': function(d) { return d.ext_memory_info.rss; ...
JavaScript
0.000006
@@ -719,17 +719,17 @@ ).top - -2 +3 0;%0A%0A @@ -1402,26 +1402,17 @@ domain(%5B -MIN_HEIGHT +0 , d3.max
f395596a24a381ea9bd7d05f18f75b76a2fcffec
Fix webhook command unauth attempt
src/commands/webhook.js
src/commands/webhook.js
const MenuUtils = require('../structs/MenuUtils.js') const FeedSelector = require('../structs/FeedSelector.js') const Translator = require('../structs/Translator.js') const Profile = require('../structs/db/Profile.js') const Feed = require('../structs/db/Feed.js') const Supporter = require('../structs/db/Supporter.js')...
JavaScript
0.008375
@@ -2102,16 +2102,37 @@ if ( +Supporter.enabled && !validSe
ec5f9cea6f65c7d4d40b712d035e814fb302c062
fix travis
scripts/test.e2e.ios.js
scripts/test.e2e.ios.js
const _ = require('lodash'); const exec = require('shell-utils').exec; const release = _.includes(process.argv, '--release'); run(); function run() { try { startRecording(); const conf = release ? `release` : `debug`; exec.execSync(`detox build --configuration ios.sim.${conf}`); exec.execAsync(`sle...
JavaScript
0.000002
@@ -158,30 +158,8 @@ y %7B%0A - startRecording();%0A @@ -202,16 +202,16 @@ debug%60;%0A + exec @@ -298,9 +298,9 @@ eep -3 +1 0%60). @@ -420,17 +420,37 @@ %7D);%0A -%0A + startRecording(); %0A exe
ee28c70b5de6ca723bd91e6e24b9f19f6a1c26c5
Update gulpfile.js
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var browserSync = require('browser-sync'); var postcss = require('gulp-postcss'); var atImport = require('postcss-import'); var customProps = require('postcss-custom-properties'); var calc = require('postcss-calc'); var autoprefixer = require('autoprefixer'); var cssnano = require('cssnano')...
JavaScript
0.000001
@@ -2,16 +2,25 @@ ar gulp + = requir @@ -46,16 +46,18 @@ serSync + = requir @@ -87,16 +87,22 @@ postcss + = requir @@ -133,16 +133,21 @@ tImport + = requir @@ -183,16 +183,18 @@ omProps + = requir @@ -234,16 +234,25 @@ ar calc + = requir @@ -287,16 +287,17 @@ refixer ...
98ae95c46b7c3bb70eb4c0f859466576bf42ea64
Clean up read-generator a little
examples/create-generator.js
examples/create-generator.js
// Inject the dependencies to fsDb to work using node.js var platform = require('./node'); // And create a db instance var db = require('../lib/fs-db.js')(platform)("test.git", true); // And wrap in a repo API var repo = require('../lib/repo.js')(db); var run = require('gen-run'); var parallel = require('../lib/parall...
JavaScript
0.000001
@@ -250,85 +250,8 @@ );%0A%0A -var run = require('gen-run');%0Avar parallel = require('../lib/parallel.js');%0A%0A // M @@ -1176,18 +1176,33 @@ %7D%0A%7D;%0A%0Ar -un +equire('gen-run') (functio
5881c7f0a29b902f1caa8e1148cc95e48bd72298
Make build specs depend on build
gulpfile.js
gulpfile.js
var browserify = require('gulp-browserify'); var clean = require('gulp-clean'); var concat = require('gulp-concat'); var exec = require('child_process').exec; var sh = require('execSync'); var fs = require('fs'); var gulp = require('gulp'); var gutil = require('gulp-util'); var rename = require('gulp-rename'); var ugli...
JavaScript
0
@@ -2079,16 +2079,25 @@ pecs', %5B +'build', 'copy-sp @@ -2172,25 +2172,16 @@ spec', %5B -'build', 'build-s
a572bcee01f6a6732debf90bface2503d2b03084
Remove nextTick
lib/index.js
lib/index.js
/** * Module dependencies. */ var Identify = require('segmentio-facade').Identify; var integration = require('segmentio-integration'); var isostring = require('isostring'); var hash = require('string-hash'); var mapper = require('./mapper'); var time = require('unix-time'); var extend = require('extend'); var dot =...
JavaScript
0
@@ -380,24 +380,20 @@ k = -process.nextTick +setImmediate ;%0Ava @@ -1840,17 +1840,16 @@ its%5D %7D;%0A -%0A
d359663a0a16d5e687519434d54106a757601383
Fix unmute
bot/commandlist.js
bot/commandlist.js
/** * contains a list of commands. you can link and unlink any command you like */ module.exports = { "ping": "ping", "hello": "hello", "lock": "lock", "stats": "stats", "add": "add", "remove": "remove", "unlock": "unlock", "info": "info", "hash": "hash", "bf2": "bf2", "alp...
JavaScript
0.001118
@@ -901,16 +901,17 @@ %22um%22:%22u +n mute%22,%0A
b8bf0d535d34069f2194459f5c83d219d5d1e949
Add period with status Not yet started only if grid is empty
src/main/webapp/public/requisitions/period.factory.js
src/main/webapp/public/requisitions/period.factory.js
(function() { 'use strict'; angular.module('openlmis.requisitions').factory('PeriodFactory', periodFactory); periodFactory.$inject = ['$resource', 'RequisitionURL', 'RequisitionService', 'messageService', '$q', 'DateUtils', 'Status']; function periodFactory($resource, RequisitionURL, Requisition...
JavaScript
0
@@ -2333,147 +2333,30 @@ l && -%0A foundRequisition.status != Status.INITIATED &&%0A foundRequisition.status != Status.SUBMITTED + lineItems.length == 0 )) %7B
a901a59502f854f1deb18470384951188c4fab8b
Update rect.js
js/rect.js
js/rect.js
function Rect(initX) { this.x = initX; this.y = 288 - 32; this.velocity = 0; this.veleftright = 0; this.tail = this.x + 32; }; Rect.prototype.draw = function(context) { //context.beginPath(); context.strokeRect(this.x, this.y, 32, 32); //context.stroke(); //context.closePath(); }; Rect.prototype.upd...
JavaScript
0
@@ -334,16 +334,18 @@ n() %7B%0A +/* if (this @@ -443,24 +443,26 @@ x = -32;%0A %7D +*/ %0A %0A if(pla
076a8d7f0590bfd1ffffa7797d178807d2c5fa92
fix validation
src/managers/master/fp-duration-estimation-manager.js
src/managers/master/fp-duration-estimation-manager.js
"use strict"; var ObjectId = require("mongodb").ObjectId; require("mongodb-toolkit"); var DLModels = require("dl-models"); var map = DLModels.map; var ProcessType = DLModels.master.ProcessType; var FinishingPrintingDurationEstimation = DLModels.master.FinishingPrintingDurationEstimation; var ProcessTypeManager = req...
JavaScript
0.000005
@@ -2733,32 +2733,21 @@ %7D -%0A + else if (_ol
3490691040a67f842129da85162e6de6920aa0d0
remove test name
modern-tribe-issue-summary.js
modern-tribe-issue-summary.js
// ==UserScript== // @name Central issue summary test // @namespace http://central.tri.be/ // @version 0.2.2 // @description Generate a ticket summary from visible tickets // @author Matthew Batchelder & Nick Pelton // @include /https?:\/\/central.tri.be\/projects\/[^\/]+\/issues\/?/ // @gra...
JavaScript
0.999779
@@ -53,13 +53,8 @@ mary - test %0A//
68e01175c3e3d06adbc31476b9b6cb3789759710
Fix default cron configuration
lib/index.js
lib/index.js
var createJob = require('./createJob'); module.exports = function (sails) { return { defaults: {}, initialize: function (cb) { var config = sails.config.cron; var tasks = Object.keys(config); tasks.forEach(function (time) { return createJob({ cronTime: time, on...
JavaScript
0.000001
@@ -96,16 +96,24 @@ aults: %7B +cron: %7B%7D %7D,%0A%0A
ccbddfe20f2cff074dab92efde726911aea55d08
Remove unneeded action types
app/scripts/actionTypes.js
app/scripts/actionTypes.js
import keyMirror from 'keymirror' export default keyMirror({ API_FAILURE: null, API_REQUEST: null, API_SUCCESS: null, AUTH_LOGIN_FAILURE: null, AUTH_LOGIN_REQUEST: null, AUTH_LOGIN_SUCCESS: null, AUTH_LOGOUT: null, AUTH_REGISTER_FAILURE: null, AUTH_REGISTER_REQUEST: null, AUTH_REGISTER_SUCCESS: nu...
JavaScript
0.000001
@@ -2125,52 +2125,8 @@ l,%0A%0A - STREAM_START: null,%0A STREAM_STOP: null,%0A%0A UP
8afb8ec8cc5bbaa332ae91c43c76b48b41a79753
set correct default value when property becomes visible
addon/components/property-options/component.js
addon/components/property-options/component.js
import Ember from 'ember'; export default Ember.Component.extend({ tagName: '', showProperty: true, init() { this._super(...arguments); let property = this.get('property.property'); let document = this.get('document'); if (!property.isDependentProperty) { return; } this.setPropert...
JavaScript
0.000001
@@ -1788,17 +1788,16 @@ if ( -! showProp @@ -1814,48 +1814,612 @@ -document.set(property.documentPath, null +this._setDefaultValue();%0A %7D else %7B%0A document.set(property.documentPath, null);%0A %7D%0A %7D,%0A%0A _setDefaultValue() %7B%0A let document = this.get('document');%0A let pr...
6469ee7f04e88bb1eb57a743e91939bda946ba3a
Fix links
Source/Mixin/Request.js
Source/Mixin/Request.js
/* --- script: Request.js description: Make various requests to back end license: Public domain (http://unlicense.org). requires: - LSD.Mixin - Core/Request - Ext/Request.Form - Ext/Request.Auto - Ext/document.createFragment provides: - LSD.Mixin.Request ... */ LSD.Mixin.Request = new Class({...
JavaScript
0
@@ -709,24 +709,40 @@ events: %7B%0A + self: %7B%0A getCom @@ -758,32 +758,34 @@ n: function() %7B%0A + if (!thi @@ -832,18 +832,16 @@ + + %7D,%0A +%0A - %0A @@ -864,32 +864,34 @@ n: function() %7B%0A + if (this @@ -938,16 +938,26 @@ pdate';%0A + %7...
8462af6d1c55cd3a5476a41c201346082568b61a
Enable source maps for browserify
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var jshint = require('gulp-jshint'); var less = require('gulp-less'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var path = require('path'); var rename = require('gulp-rename'); var react = require('gulp-react'); var flowtype = require('gulp-flowtype'); var sou...
JavaScript
0.000031
@@ -1927,24 +1927,61 @@ /js/main.js' +, %7B%0A debug: true%0A %7D )%0A .t
384923fdf6054333c91590b584745661ad8bc30d
Fix spelling and add more help information.
lib/index.js
lib/index.js
var fs = require('fs'), util = require('util'), colors = require('colors'); var applyIf = function (object, config) { var property; if (object) { for (property in config) { if (object[property] === undefined) { object[property] = config[property]; } } } return object; } var processHierarchy = ...
JavaScript
0
@@ -1652,23 +1652,16 @@ r) %7B%0A%09%09%09 -return console. @@ -1697,16 +1697,96 @@ '.red);%0A +%09%09%09console.log('To create .econf.js execute:'.yellow, 'econf init');%0A%09%09%09return;%0A %09%09%7D%0A%0A%09%09v @@ -2633,17 +2633,17 @@ og('### -F +D o not fo
7b6ca9cbf1be8c8cd340208e835997c170df3808
add up
J8-0.0.1.js
J8-0.0.1.js
/** * Created by lja on 2015/11/20. */ var type = (function () { 'use strict'; var class2type = {}, toString = class2type.toString; ('Boolean Number String Function Array Date RegExp Object Error').split(' ').forEach(function (name) { class2type['[object ' + name + ']'] = name.toLowerCa...
JavaScript
0.000048
@@ -7601,18 +7601,16 @@ %0A %7D;%0A -%0A%0A %0A
acf657e2e0ab463231f25c06cb2778c056ad34eb
Fix bug in CompoundPath#draw(ctx, draw) which was causing an error when a compound path didn't have any children.
src/path/CompoundPath.js
src/path/CompoundPath.js
/* * Paper.js * * This file is part of Paper.js, a JavaScript Vector Graphics Library, * based on Scriptographer.org and designed to be largely API compatible. * http://paperjs.org/ * http://scriptographer.org/ * * Copyright (c) 2011, Juerg Lehni & Jonathan Puckey * http://lehni.org/ & http://jonathanpuckey.co...
JavaScript
0
@@ -2838,16 +2838,146 @@ aram) %7B%0A +%09%09var l = this._children.length;%0A%09%09// Return early if the compound path doesn't have any children:%0A%09%09if (l == 0) %7B%0A%09%09%09return;%0A%09%09%7D%0A %09%09var fi @@ -3006,16 +3006,16 @@ ren%5B0%5D;%0A - %09%09ctx.be @@ -3050,16 +3050,16 @@ = true;%0A + %09%...
0f034677f647b8fad1b21bdbde259a51f2a5b9bc
Fix comma
widgets.js
widgets.js
sagecell.require(["notebook/js/widgets/widget"], function(WidgetManager){ var WebCameraView = IPython.DOMWidgetView.extend({ render: function(){ // based on https://developer.mozilla.org/en-US/docs/WebRTC/taking_webcam_photos var video = $('<video>')[0]; var canvas...
JavaScript
0.999998
@@ -3456,16 +3456,17 @@ newlist +, %0A
e27449790ec167a2e610a02abadc9a8d1beb5392
add a missing space after the [beta] label
source/views/settings/sections/odds-and-ends.js
source/views/settings/sections/odds-and-ends.js
// @flow import React from 'react' import {View} from 'react-native' import {getVersion} from 'react-native-device-info' import {Cell, Section} from 'react-native-tableview-simple' import {version, allaboutolaf} from '../../../../package.json' import type {TopLevelViewPropsType} from '../../types' import {setFeedbackSt...
JavaScript
0.998936
@@ -1576,16 +1576,17 @@ source%7D%5D + %60 : ''%0A%0A
a806f485caa6be7c6d940aa4b8dc7e0f152084dc
update DropdownSelect examples
examples/containers/app/modules/fields/DropdownSelectExamples.js
examples/containers/app/modules/fields/DropdownSelectExamples.js
import React, {Component} from 'react'; import DropdownSelect from 'src/DropdownSelect'; import Widget from 'src/Widget'; import WidgetHeader from 'src/WidgetHeader'; import Theme from 'src/Theme'; import PropTypeDescTable from '../PropTypeDescTable'; import DropdownSelectDoc from 'assets/propTypes/DropdownSelect.jso...
JavaScript
0
@@ -1100,32 +1100,67 @@ a fa-facebook',%0A + value: 'Facebook',%0A @@ -1169,32 +1169,32 @@ xt: 'Facebook',%0A - @@ -1277,32 +1277,66 @@ fa fa-twitter',%0A + value: 'Twitter',%0A @@ -1459,24 +1459,58 @@ ogle-plus',%0A + ...
a8d50835b910118301f7835dcdf9435223315d8b
Move to sign with Developer ID key :apple:
build/Gruntfile.js
build/Gruntfile.js
var path = require('path'); module.exports = function(grunt) { // Load the plugins... grunt.loadNpmTasks('grunt-electron'); // Load all platform specific tasks: switch (process.platform) { case 'win32': grunt.loadNpmTasks('grunt-electron-installer'); break; case 'darwin': grunt.load...
JavaScript
0
@@ -1629,22 +1629,8 @@ y: ' -3rd Party Mac Deve @@ -1635,16 +1635,19 @@ veloper +ID Applicat
d678c718ca9993cfb82d9d088b739afcd746a17a
Add custom to restify-bunyan-logger
lib/index.js
lib/index.js
'use strict'; var restify = require('restify'); var autoload = require('auto-load'); var session = require('client-sessions'); var async = require('async'); var http = require('http'); var https = require('https'); var lru = require('lru-cache'); var yaqs = require('yaqs'); var Logger = require("bunyan"); var restifyB...
JavaScript
0
@@ -2459,24 +2459,166 @@ unyanLogger( +%7B%0A custom: function(req, res, route, err, log) %7B%0A log.req.user = req.token ? req.token.accountName : null;%0A return log;%0A %7D%0A %7D ));%0A%0A serve
3afb0bb4d4ad0fef414239090a5cd72c4a42cf87
enforce Node.js version
Jakefile.js
Jakefile.js
/*global desc, task, jake, fail, complete */ (function() { "use strict"; desc("Build and test"); task("default", ["lint", "test"]); desc("Lint everything"); task("lint", [], function() { var lint = require("./build/lint/lint_runner.js"); var files = new jake.FileList(); fi...
JavaScript
0.000048
@@ -135,24 +135,25 @@ %22test%22%5D);%0A%0A +%0A desc(%22Li @@ -183,24 +183,30 @@ sk(%22lint%22, %5B +%22node%22 %5D, function( @@ -675,16 +675,22 @@ test%22, %5B +%22node%22 %5D, funct @@ -1556,24 +1556,24 @@ master'%22);%0A - %7D);%0A%0A @@ -1565,24 +1565,737 @@ );%0A %7D);%0A%0A +// desc(%2...
b6f7c4401ef7c30b415415771ca81f2704f46e06
Remove unnecessary eslint disable
src/components/common/errorMessage/ErrorMessage.js
src/components/common/errorMessage/ErrorMessage.js
/* eslint-disable react/no-array-index-key */ import React from 'react'; import { PropTypes as Types } from 'prop-types'; import { FormattedMessage } from 'react-intl'; import './ErrorMessage.scss'; const noop = () => null; const ErrorMessage = ({ errors, onCancel, overlayed }) => { const content = ( <div cla...
JavaScript
0.000004
@@ -1,51 +1,4 @@ -/* eslint-disable react/no-array-index-key */%0A%0A impo
264500ae7c7fea37a52155e0e276a99470d957ac
fix bug on blurring <Editor /> (#952)
lib/Editor/Editor.js
lib/Editor/Editor.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import className from 'classnames'; import ReactQuill from 'react-quill'; import merge from 'lodash/merge'; // eslint-disable-next-line import/no-webpack-loader-syntax import '!style-loader!css-loader!react-quill/dist/quill.snow.css'; import...
JavaScript
0
@@ -1795,309 +1795,47 @@ %0A%0A -getRootStyle() %7B%0A return className(%0A formStyles.inputGroup,%0A this.props.className,%0A );%0A %7D%0A%0A getEditorStyle() %7B%0A return className(%0A sharedInputStylesHelper(this.props),%0A css.editor,%0A this.props.editorClassName,%0A );%0...
4f7d036fe902962c53ea6a5aeb2ee3ed8ef214aa
Fix issue with invalid this context for graceful restart functions
bin/index.js
bin/index.js
var fs = require('fs'), path = require('path'), inherit = require('inherit'), fsExtra = require('fs-extra'), bseAdmin = require('bse-admin'), Tripwire = require('memory-tripwire'), logger = require('bem-site-logger').createLogger(module), SnapshotMaster = require('../lib/master/index'), ...
JavaScript
0.000002
@@ -21,36 +21,8 @@ '),%0A - path = require('path'),%0A @@ -47,24 +47,24 @@ 'inherit'),%0A + fsExtra @@ -1177,17 +1177,16 @@ on () %7B%0A -%0A @@ -2803,17 +2803,27 @@ Restart2 -( +.apply(this );%0A @@ -3082,33 +3082,43 @@ gracefulRestart1 -( +.apply(this );%0A @@ -3298,1...
172e5eae5ebe261fa6fada39e8d211fa3a413663
Disable links prefetch
data/prefs.js
data/prefs.js
// Disable onload popups pref("dom.disable_open_during_load", true); // Disable usless security warnings pref("security.warn_entering_secure", false); pref("security.warn_entering_secure.show_once", true); pref("security.warn_leaving_secure", false); pref("security.warn_leaving_secure.show_once", false); pref("securit...
JavaScript
0
@@ -1,16 +1,86 @@ +// Disable links prefetch%0Auser_pref(%22network.prefetch-next%22, false);%0A%0A // Disable onloa
06709391d49045249356f16fdcb8da32420fee6d
Test size report
rules/no-only-tests.js
rules/no-only-tests.js
/** * @fileoverview Rule to flag use of .only in tests, preventing focused tests being committed accidentally * @author Levi Buzolic */ 'use strict'; //------------------------------------------------------------------------------ // Rule Definition //---------------------------------------------------------------...
JavaScript
0
@@ -1248,17 +1248,18 @@ var -block +options = -( cont @@ -1278,17 +1278,41 @@ 0%5D %7C%7C %7B%7D -) +;%0A var block = options .block %7C @@ -1349,34 +1349,15 @@ s = -(context.options%5B0%5D %7C%7C %7B%7D) +options .foc @@ -1398,34 +1398,15 @@ = !! -(context.options%5B0%5D %7C%7C %7B%7D) +options .fix @@...
6944b842e9dc0759c6168baf01e0f06d911b4189
Use gulp default task to build all
gulpfile.js
gulpfile.js
var path = require('path'); var gulp = require('gulp'); var $ = require('gulp-load-plugins')(); var bower_components = require('main-bower-files')(); var gopath = function() { var gpm_dir = __dirname + path.sep + '.godeps'; if (process.env.GOPATH.split(path.delimiter).indexOf(gpm_dir) != -1) { return process....
JavaScript
0
@@ -944,64 +944,41 @@ t', -function() %7B%0A // place code for your default task here%0A +%5B'go', 'css', 'js'%5D, function() %7B %7D);%0A
8ffc112cf73e948d5819d4f673be61751bb91554
fix intl test
packages/app-extensions/src/intl/intl.spec.js
packages/app-extensions/src/intl/intl.spec.js
import fetchMock from 'fetch-mock' import cache from '../cache' import {setLocale, getUserLocale, loadTextResources} from './intl' describe('tocco-util', () => { describe('intl', () => { beforeEach(() => { fetchMock.reset() fetchMock.restore() cache.clearAll() }) describe('setLocale',...
JavaScript
0.000003
@@ -70,19 +70,8 @@ rt %7B -setLocale, getU @@ -98,16 +98,27 @@ esources +, setLocale %7D from ' @@ -2086,15 +2086,14 @@ ule= -( merge -%7C +, comp @@ -2102,9 +2102,9 @@ ents -%7C +, acti @@ -2120,17 +2120,16 @@ %5C%5C.title -) ',%0A
0cf9a7b552a8036158d5b158f875057b9aaf5fc0
Fix last label undefined
client/components/activities/activities.js
client/components/activities/activities.js
const activitiesPerPage = 20; BlazeComponent.extendComponent({ onCreated() { // XXX Should we use ReactiveNumber? this.page = new ReactiveVar(1); this.loadNextPageLocked = false; const sidebar = this.parentComponent(); // XXX for some reason not working sidebar.callFirstWith(null, 'resetNextPeak'...
JavaScript
0.999982
@@ -2715,16 +2715,30 @@ ;%0A if + (lastLabel && (lastLa @@ -2785,16 +2785,17 @@ === '') +) %7B%0A
5f75bb268565499f6cc6d543aa0723ce0fd5d912
Update user.js
examples/express/models/user.js
examples/express/models/user.js
'use strict'; var model = require('../../../index').model; var User = model('user', { table: 'user', fields: ['id', 'name', 'email'], primary: ['id'] });
JavaScript
0.000001
@@ -8,16 +8,74 @@ rict';%0A%0A +//change to var model = require('mysql-easy-model').model%0A var mode @@ -209,8 +209,9 @@ id'%5D%0A%7D); +%0A
25f7a21d29f7ea69a6bf35ef4d07d8ebed676386
Use persistent file watches
wrapper.js
wrapper.js
/** * Hooks into `require()` to watch for modifications of required files. * If a modification is detected, the process exits with code `101`. */ var fs = require('fs'); var Path = require('path'); var vm = require('vm'); var spawn = require('child_process').spawn; /** Remove wrapper.js from the argv array */ proce...
JavaScript
0.000001
@@ -1672,12 +1672,11 @@ nt: -fals +tru e%7D,
2d4c5a500cc77ad7433cf326a1dda9ec35fb8db1
update story with Marker component
src/components/emptyState/emptyState.stories.js
src/components/emptyState/emptyState.stories.js
import React from 'react'; import { select, text } from '@storybook/addon-knobs'; import { addStoryInGroup, MID_LEVEL_BLOCKS } from '../../../.storybook/utils'; import EmptyState from './EmptyState'; const sizes = ['small', 'medium', 'large']; export default { title: addStoryInGroup(MID_LEVEL_BLOCKS, 'EmptyState'),...
JavaScript
0
@@ -39,14 +39,8 @@ lect -, text %7D f @@ -186,16 +186,56 @@ yState'; +%0Aimport %7B Marker %7D from '../typography'; %0A%0Aconst @@ -271,16 +271,120 @@ large'%5D; +%0Aconst title = (%0A %3C%3E%0A I am the empty state title that %3CMarker%3Ehighlights%3C/Marker%3E a keyword%0A %3C/%3E%0A); %0A%0Aexport @@ -...
4548964db11a6ddf049517a916b5f286652bdd1b
Allow grouping of custom components
src/fields/form/index.js
src/fields/form/index.js
import React, { Component } from 'react'; import { View, Text } from 'native-base'; import GenerateForm from '../../formBuilder'; export default class FormField extends Component { static propTypes = { attributes: React.PropTypes.object, theme: React.PropTypes.object, updateValue: React.PropTypes.func, ...
JavaScript
0.000001
@@ -398,20 +398,66 @@ s.func,%0A + customComponents: React.PropTypes.object,%0A %7D%0A - constr @@ -997,24 +997,48 @@ Validation,%0A + customComponents,%0A %7D = this @@ -1443,32 +1443,32 @@ autoValidation%7D%0A - cust @@ -1491,32 +1491,80 @@ stomValidation%7D%0A + customC...
62b5fecb05c3c5c2a247b71e7fd2311cb98b4736
Clear the code
src/botPage/common/SmartChartTicksService.js
src/botPage/common/SmartChartTicksService.js
import { Map } from 'immutable'; import { doUntilDone } from '../bot/tools'; import TicksService from './TicksService'; export default class SmartChartTicksService extends TicksService { unsubscribeAllAndSubscribeListeners(symbol) { const ohlcSubscriptions = this.subscriptions.getIn(['ohlc', symbol]); ...
JavaScript
0.999998
@@ -699,714 +699,8 @@ %7D%0A%0A - updateTicksAndCallListeners(symbol, ticks) %7B%0A if (this.ticks.get(symbol) === ticks) %7B%0A return;%0A %7D%0A this.ticks = this.ticks.set(symbol, ticks);%0A%0A const listeners = this.tickListeners.get(symbol);%0A%0A if (listeners) %...
0dc86b2b1a331694e9012301151e02bc5718ac2f
create app into directory with app name
generators/app/index.js
generators/app/index.js
var yeoman = require('yeoman-generator'); var chalk = require('chalk'); var yosay = require('yosay'); var _ = require('lodash'); var path = require('path'); var helpers = require('../../helpers'); module.exports = yeoman.generators.Base.extend({ prompting: function () { var done = this.async(); this.log(yos...
JavaScript
0.000001
@@ -2410,16 +2410,142 @@ ;%0A %7D,%0A%0A + paths: function () %7B%0A // Save app into directory with app name%0A this.destinationRoot(this.props.appName + '/');%0A %7D,%0A%0A writin
d0004e40df6129effd9f9cb511017ca25ea392a5
modify swagger
server/config/config.js
server/config/config.js
require('dotenv').config(); module.exports = { development: { username: 'andeladeveloper', password: null, database: 'docmanager-dev', host: '127.0.0.1', port: 5432, dialect: 'postgres' }, test: { username: 'andeladeveloper', password: null, database: 'docmanager-test', ho...
JavaScript
0.000005
@@ -232,148 +232,31 @@ use -rname: 'andeladeveloper',%0A password: null,%0A database: 'docmanager-test',%0A host: '127.0.0.1',%0A port: 5432,%0A dialect: 'postgres +_env_variable: 'TEST_DB '%0A
29070db505642956070b59cf78c553c479711b96
Insert Coin...
Tools/WebpackPlugins/babylonWebpackConfig.js
Tools/WebpackPlugins/babylonWebpackConfig.js
const webpack = require('webpack'); const babylonExternals = require('./babylonExternals'); const config = require("../Config/config.js"); module.exports = function defaultConfig(options) { if (!options) { throw "Options are mandatory to create the config."; } const module = options.mod...
JavaScript
0
@@ -1850,24 +1850,131 @@ on: false,%0D%0A + exclude: %5B%0D%0A 'node_modules'%0D%0A %5D%0D%0A
8ca9b8df81d313548290a3c03851c5c2a7b3d08c
Fix logging permissions
generators/app/index.js
generators/app/index.js
const fs = require('fs'); const Generator = require('yeoman-generator'); const buildPolicy = (serviceName, stage, region) => { return { Version: '2012-10-17', Statement: [ { Effect: 'Allow', Action: [ 'cloudformation:List*', 'cloudformation:Get*', 'cloudfor...
JavaScript
0.000002
@@ -2983,32 +2983,318 @@ %7D,%0A %7B%0A + Action: %5B'logs:CreateLogGroup', 'logs:CreateLogStream'%5D,%0A Resource: %5B%60arn:aws:logs:$%7Bregion%7D:*:*%60%5D,%0A Effect: 'Allow'%0A %7D,%0A %7B%0A Action: %5B'logs:PutLogEvents'%5D,%0A Resource: %5B%60arn:aws:logs:...
0d4e29b18b4926a760933e952b5b95173cf0be9c
Add option to filter form fields to be sent
src/plugins/Multipart.js
src/plugins/Multipart.js
const Plugin = require('./Plugin') const UppySocket = require('../core/UppySocket') const Utils = require('../core/Utils') module.exports = class Multipart extends Plugin { constructor (core, opts) { super(core, opts) this.type = 'uploader' this.id = 'Multipart' this.title = 'Multipart' // Defau...
JavaScript
0
@@ -381,16 +381,40 @@ les%5B%5D',%0A + metaFields: null,%0A re @@ -1251,32 +1251,163 @@ ormData()%0A%0A + const metaFields = Array.isArray(opts.metaFields)%0A ? opts.metaFields%0A // Send along all fields by default.%0A : Object.keys(fil @@ -1413,16 +1413,33 @@ le.meta) +%0A ...
dc1c90ec27b601c728987deb114a1c2db0f392e9
Fix some spacing
RESTular.js
RESTular.js
$(document).ready(function() { $(".submission-box").on("keyup", function() { setGoldenText(this); }) $('tr.route').mouseover(function(){ addClassHover(this); }); $('tr.route').mouseout(function(){ removeClassHover(this); }); $(".route").on("click", function() { toggleNext(this); t...
JavaScript
0.999993
@@ -72,18 +72,17 @@ tion() %7B - %0A + setG @@ -490,17 +490,16 @@ ient.on( - %22ready%22, @@ -687,17 +687,16 @@ ient.on( - %22afterco @@ -1337,20 +1337,16 @@ Case()); - %0A $(%22.g @@ -1996,9 +1996,10 @@ ice(1);%0A - %7D +%0A
100bcdc5e862e29d39767e8d3a6dc979cb2bf1fe
fix property title update
pages/media/js/pages.type.js
pages/media/js/pages.type.js
/* * This file is part of dj-pages released under the MIT license. * See the NOTICE for more information. */ (function($) { $.pages = $.pages || {}; function ResourceType() { this.cache = {}; } $.extend(ResourceType.prototype, { request: function(app, req) { this.app...
JavaScript
0
@@ -1934,32 +1934,135 @@ pdate%22, %5Brow%5D);%0A + if (this.id == %22name%22)%0A $(%22.current%22).html($(this).val()); %0A @@ -5107,163 +5107,8 @@ ; %0A%0A - $(%22#name%22).bind(%22keyup%22, function(e) %7B%0A var el = $(%22td:fir...
b359be74a1102b7220235b41821a410cd6f3b7a0
remove superfluous check in while loop
src/renderers/shared/stack/reconciler/ReactUpdates.js
src/renderers/shared/stack/reconciler/ReactUpdates.js
/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModu...
JavaScript
0.000001
@@ -5316,44 +5316,8 @@ ) %7B%0A - if (dirtyComponents.length) %7B%0A @@ -5372,26 +5372,24 @@ etPooled();%0A - transact @@ -5439,26 +5439,24 @@ ction);%0A - ReactUpdates @@ -5494,22 +5494,16 @@ ction);%0A - %7D%0A %7D%0A%7D;%0A%0A
57526356dec26b472748ab3ff6186c1716eaaa8c
Add KLC
univList.js
univList.js
var univNames = [ "Adelphi University", "Boston University", "Carnegie Mellon University", "College of William & Mary", "Ez-zitouna University", "Gabes University", "Gafsa University", "Harvard University", "Manouba University", "Monastir University", "New York University", "Sfax University", ...
JavaScript
0.000001
@@ -1736,17 +1736,20 @@ %EB%8C%80%22,%0A %22%ED%95%9C -%EB%8F%99 +%EA%B5%AD%EC%8A%B9%EA%B0%95%EA%B8%B0 %EB%8C%80%22,%0A %22%ED%95%9C @@ -1763,24 +1763,33 @@ %0A %22%ED%95%9C%EA%B5%AD%ED%95%AD%EA%B3%B5%EB%8C%80%22,%0A + %22%ED%95%9C%EB%8F%99%EB%8C%80%22,%0A %22%ED%95%9C%EB%B0%AD%EB%8C%80%22,%0A %22
02b41d9151c1f405560cb6c41bf4e074ef30d447
Add window onload for card.
development/cards.js
development/cards.js
const cardElementsLoad = [ document.getElementsByClassName('card-image'), document.getElementsByClassName('card-gradient'), document.getElementsByClassName('card-header-title'), document.getElementsByClassName('card-header-line'), document.getElementsByClassName('card-header-subtitle'), document.getElements...
JavaScript
0
@@ -1128,16 +1128,19 @@ -circle +on- load'),%0A @@ -1190,16 +1190,19 @@ ail-day +on- load'),%0A @@ -1254,16 +1254,19 @@ l-month +on- load'),%0A @@ -1318,16 +1318,19 @@ l-venue +on- load'),%0A @@ -1385,16 +1385,19 @@ ocation +on- load'),%0A @@ -1449,16 +1449,19 @@ l-dates +on- load'),%0A @@ -1514,16 +1...
ef40cb9956f9685ef741193d5b664cb4c7de90b3
test window for browser
spec/bower/bower.spec.js
spec/bower/bower.spec.js
var window = {}; commonSpec('Bower', Opal, Opal.Asciidoctor);
JavaScript
0.000005
@@ -1,8 +1,4 @@ -var wind
7e6746d32bdd8cf664179c0b129223ed0b553ab1
Use closure actions to only advance page number if fetchResults is successful.
addon/components/osf-paginator/component.js
addon/components/osf-paginator/component.js
import Ember from 'ember'; import layout from './template'; // Ember component that is very similar to osf/website/static/js/paginator.js export default Ember.Component.extend({ layout, currentPage: 1, pages: Ember.computed('totalSearchResults', function() { let totalSearchResults = this.get('total...
JavaScript
0
@@ -1837,20 +1837,14 @@ his. -sendAction(' +attrs. fetc @@ -1847,27 +1847,25 @@ fetchResults -', +( query, page) @@ -1860,26 +1860,42 @@ query, page) -;%0A +.then(() =%3E %7B%0A @@ -1925,16 +1925,33 @@ page);%0A + %7D);%0A%0A
c8aaa44979ebc80bb888318b01adff0e4d6e9e00
Update checks.js
app/src/renderer/checks.js
app/src/renderer/checks.js
let checks = [ { title: 'Routine Dental Care Recommended/<em>Se recomienda Atencion Dental de Rutina</em>', options: { A: 'Dental Cleaning recommended/<em>Se recomienda limpieza dental</em>', B: 'Screen for cavities between the teeth (interproximal caries)/<em>Se recomienda examinar por caries en...
JavaScript
0.000001
@@ -140,17 +140,17 @@ 'Dental -C +c leaning
ba4a0c9b977dac3831ffaf2ddf5d87be0ca61a67
enforce OS-specific line breaks
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var jshintStylish = require('jshint-stylish'); var gutil = require('gulp-util'); // Currently unused, but gulp strongly suggested I install... var jshint = require('gulp-jshint'); var jscs = require('gulp-jscs'); var replace = require('gulp-replace'); var jsHintOptions = { "nonbsp": true, ...
JavaScript
0.000035
@@ -2046,50 +2046,25 @@ s%22: -process.platform === 'win32' ? null : %22LF%22 +require('os').EOL ,%0A%09%22
17db807f605aabee2eb6c34a9a5ee0933ffd7047
add Grid module (empty)
app/scripts/common/forms/inputSelector/index.js
app/scripts/common/forms/inputSelector/index.js
define(function(require) { "use strict"; var Marionette = require('backbone.marionette'), Backbone = require('backbone'); var Dropdown = require('common/forms/dropdown/index'); var hbs = require('handlebars'); var Selector = Marionette.Layout.extend({ template: require('hbs!./template'), regions: { dr...
JavaScript
0
@@ -590,49 +590,8 @@ ) %7B%0A -//%09%09%09console.info('Selector::onRender');%0A %09%09%09t @@ -1087,46 +1087,8 @@ ) %7B%0A -%09%09%09console.info('onSelect: ', value);%0A %09%09%09t
52a0adccb82445755b136f027969bb0efb0e1c23
Update variable name
pouchdb/02-create-remote-database.js
pouchdb/02-create-remote-database.js
// Create a remote PouchDB database var db = new PouchDB("https://bradley-holt.cloudant.com/smart-meter"); // Delete the database db.destroy().then(function() { console.log("Database deleted"); }).catch(function(error) { console.log(error); });
JavaScript
0.000003
@@ -33,17 +33,23 @@ ase%0Avar -d +remoteD b = new
15f94d37327f6574a1ea16070a0134b76247caa8
Update checkbox
src/components/views/terms/InlineTermsAgreement.js
src/components/views/terms/InlineTermsAgreement.js
/* Copyright 2019 The Matrix.org Foundation C.I.C. 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 ...
JavaScript
0.000002
@@ -783,16 +783,73 @@ bjects%22; +%0Aimport StyledCheckbox from %22../elements/StyledCheckbox%22; %0A%0Aexport @@ -3495,32 +3495,23 @@ - %3Cinput type='c +%3CStyledC heckbox -' onC @@ -3570,18 +3570,16 @@ checked%7D - / %3E%0A @@ -3607,24 +3607,64 @@ (%22Accept%22)%7D%0A + %3C/...
30590e9a8f9a303ef193930e38b71f964795dfaf
remove bare options for coffee compiler
gulpfile.js
gulpfile.js
var path = require('path'), gulp = require('gulp'), watch = require('gulp-watch'), sass = require('gulp-sass') include = require('gulp-include'), coffee = require('gulp-coffee'), slim = require("gulp-slim"), prefix = require('gulp-autoprefixer'); var ROOT_PATH = __...
JavaScript
0
@@ -838,22 +838,8 @@ fee( -%7B bare: true %7D ) )%0A
5b9582ba12778e024b37a57e61c52c9e30454b31
Update attach.js
frappe/public/js/frappe/form/controls/attach.js
frappe/public/js/frappe/form/controls/attach.js
frappe.ui.form.ControlAttach = frappe.ui.form.ControlData.extend({ make_input: function() { var me = this; this.$input = $('<button class="btn btn-default btn-sm btn-attach">') .html(__("Attach")) .prependTo(me.input_area) .on("click", function() { me.onclick(); }); this.$value = $('<div style="m...
JavaScript
0.000085
@@ -427,17 +427,16 @@ fa-paper -- clip%22%3E%3C/
8d2ed08e5c49cb96e9cc0aa7fff5556b8d2317f3
Update user.js
js/user.js
js/user.js
const User = (function(){ function User(container, nick){ this.container = container; this.isOp = false; this.isVoice = false; this.nick = nick; } User.prototype.remove = function(){ removeNode(this.container); }; User.prototype.op = function(){ const nick = this.container.getElemen...
JavaScript
0.000001
@@ -35,16 +35,24 @@ on User( +system, containe @@ -164,16 +164,42 @@ = nick;%0A + this.system = system;%0A %7D%0A%0A U
3cbcf228c05ad7d199f8cd9a4aa39d0c92c29f27
add tsv to object list
parser/node_modules/utils.js
parser/node_modules/utils.js
var moment = require('moment-timezone'); exports.parseInteger = function (text) { if (text == '') return undefined; if (text == '#NV') return undefined; if (/[0-9]+/.test(text)) return parseInt(text, 10); console.error('Was für ein Integer ist "'+text+'"?'); } exports.parseDateTime = function (date) { var m = mo...
JavaScript
0
@@ -33,16 +33,40 @@ ezone'); +%0Avar fs = require('fs'); %0A%0Aexport @@ -620,8 +620,325 @@ urn t;%0A%7D +%0A%0Aexports.readListOfObjects = function (file) %7B%0A%09file = fs.readFileSync(file, 'utf8').split('%5Cn');%0A%09var header = file.shift().split('%5Ct');%0A%09var list = file.map(function (line) %7B%0A%09%09v...
febb26e935c40e59e3b6e8172c874dd8fab77b5c
allow button of different sizes in df
frappe/public/js/frappe/form/controls/button.js
frappe/public/js/frappe/form/controls/button.js
frappe.ui.form.ControlButton = frappe.ui.form.ControlData.extend({ can_write() { // should be always true in case of button return true; }, make_input: function() { var me = this; const btn_type = this.df.primary ? 'btn-primary': 'btn-default'; this.$input = $(`<button class="btn btn-xs ${btn_type}">`) ...
JavaScript
0
@@ -249,16 +249,98 @@ fault';%0A +%09%09const btn_size = this.df.btn_size%0A%09%09%09? %60btn-$%7Bthis.df.btn_size%7D%60%0A%09%09%09: %22btn-xs%22;%0A %09%09this.$ @@ -369,22 +369,27 @@ ss=%22btn +$%7B btn --xs +_size%7D $%7Bbtn_t
0a9fcce055761f5e5d2f61e114c8eba8ea5447ae
fix eslint
src/presets/obfs-http.js
src/presets/obfs-http.js
import fs from 'fs'; import crypto from 'crypto'; import {IPreset} from './defs'; /** * parse text file into {request: response} pairs * @param file * @returns {Array} */ function parseFile(file) { const txt = fs.readFileSync(file, {encoding: 'utf-8'}); const lines = txt.split(/\r\n|\n|\r/); const parts = []...
JavaScript
0.000007
@@ -1713,22 +1713,16 @@ (%7Bbuffer -, next %7D) %7B%0A @@ -2022,38 +2022,32 @@ erverIn(%7Bbuffer, - next, fail%7D) %7B%0A if @@ -2647,14 +2647,8 @@ fer, - next, fai
3ebd0e0d57c504650daed075584387e1d2b2695e
Remove evolve alias
generators/app/utils.js
generators/app/utils.js
'use strict'; const R = require('ramda'); /** * Turn a string into a nice title. * @param {String} * @returns {String} * @example toTitle('some-slug_string'); => Some Slug String */ const toTitle = R.pipe( // String => Array R.split(/[\W_]+/), // Array => Array R.map(word => word.replace(/^\w/, R.toUpper...
JavaScript
0.000002
@@ -1464,233 +1464,8 @@ );%0A%0A -/**%0A * @see http://ramdajs.com/docs/#evolve%0A * @param %7BObject%7D%0A * @param %7BObject%7D%0A * @returns %7BObject%7D%0A * @example%0A * evolve(%7Bname: toSlug%7D, %7Bname: 'Ricky Bobby'%7D);%0A * =%3E %7Bname: 'ricky-bobby'%7D%0A */%0Aconst evolve = R.evolve;%0A%0A modu @@ -1...
5c3518e8e834e38e3d8d21dbe73b6131ab87085b
create a copy of options before modifying to prevent problems in callbacks
google-api-async.js
google-api-async.js
// kill logs var Log = function () {} GoogleApi = { // host component, shouldn't change _host: 'https://www.googleapis.com', _callAndRefresh: function(method, path, options, callback) { var self = this; options = options || {}; self._call(method, path, options, // need to bind ...
JavaScript
0
@@ -237,24 +237,16 @@ %7C%7C %7B%7D;%0A - %0A sel @@ -275,23 +275,16 @@ options, - %0A / @@ -352,17 +352,16 @@ callback - %0A / @@ -720,29 +720,17 @@ error);%0A - %0A + @@ -945,21 +945,9 @@ d);%0A - %0A + @@ -1118,19 +1118,17 @@ );%0A %7D...
e0b9629326b851c8e8799c79296b5520b4eb8542
Put MDAO in context so it works
src/foam/nanos/crunch/lite/CapableAdapterDAO.js
src/foam/nanos/crunch/lite/CapableAdapterDAO.js
/** * @license * Copyright 2020 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.nanos.crunch.lite', name: 'CapableAdapterDAO', extends: 'foam.dao.AbstractDAO', javaImports: [ 'foam.dao.DAO', 'foam.dao.MDAO', 'java.util.Arrays' ...
JavaScript
0.000186
@@ -245,24 +245,43 @@ aImports: %5B%0A + 'foam.core.X',%0A 'foam.da @@ -2072,16 +2072,68 @@ nfo());%0A + X xTmp = x.put(%22capablePayloadMDAO%22, mdao);%0A @@ -2265,20 +2265,74 @@ -m +DAO dao = (DAO) xTmp.get(%22capablePayloadMDAO%22);%0A dao.put -_(x, +( payl
38058dfdb5aaa1dc1396620125c5b1ef733c0be7
Fix bad Require annotation.
projects/bugtrace/js/src/BugTrace.js
projects/bugtrace/js/src/BugTrace.js
/* * Copyright (c) 2014 airbug inc. http://airbug.com * * bugtrace may be freely distributed under the MIT license. */ //------------------------------------------------------------------------------- // Annotations //------------------------------------------------------------------------------- //@Export('bugt...
JavaScript
0
@@ -401,24 +401,25 @@ quire('Trace +r ')%0A%0A%0A//-----
d2f3e1e1162b68176b5fc21bc8655b31f6916606
Add rmdir and unlink methods to WebDAV client
lib/protocols/webdav.js
lib/protocols/webdav.js
'use strict'; var events = require('events'); var fs = require('fs'); var http = require('http'); var path = require('path'); var url = require('url'); var util = require('util'); var merge = require('merge'); var request = require('request'); function WebDAVClient(options) { this.options = options;...
JavaScript
0
@@ -3422,16 +3422,446 @@ k);%0A%7D;%0A%0A +WebDAVClient.prototype.rmdir = function (path, callback) %7B%0A if (path.charAt(path.length - 1) !== '/') %7B%0A path += '/';%0A %7D%0A%0A this.request(%7B%0A method: 'DELETE',%0A headers: %7B%0A 'Depth': 'infinity',%0A %7D%0A %7D, path, function (error) ...
593c8dce853fba4889f904b2931a1a4560fa89d2
use rpid rather than dcid
client/js/modules/dc/views/reprocessoverview.js
client/js/modules/dc/views/reprocessoverview.js
define(['marionette', 'collections/reprocessings', 'collections/reprocessingparameters', 'collections/reprocessingimagesweeps', 'views/table', 'utils/table'], function(Marionette, Reprocessings, ReprocessingParamters, ReprocessingImageSweeps, TableView, table) { var St...
JavaScript
0.000003
@@ -6357,30 +6357,29 @@ .pluck(' -DATACOLLECTION +PROCESSINGJOB ID')%0A
d393270d4ee1a541b089c6214e8d71f3d368fd4d
Update test value
lib/node_modules/@stdlib/string/utf16-to-utf8-array/test/test.js
lib/node_modules/@stdlib/string/utf16-to-utf8-array/test/test.js
'use strict'; // MODULES // var tape = require( 'tape' ); var utf16ToUTF8Array = require( './../lib' ); // TESTS // tape( 'main export is a function', function test( t ) { t.ok( true, __filename ); t.strictEqual( typeof utf16ToUTF8Array, 'function', 'main export is a function' ); t.end(); }); tape( 'the functi...
JavaScript
0.000001
@@ -1077,20 +1077,9 @@ %0A%09%09' -%5Cud801%5Cudc37 +%F0%90%90%B7 ' //
8328f6803349876780bf112db45ccf9d606d0331
Comment out ratelimit isolate level
server/db/ratelimits.js
server/db/ratelimits.js
'use strict'; // 3rd const assert = require('better-assert'); const debug = require('debug')('db:ratelimits'); const _ = require('lodash'); // 1st const dbUtil = require('./util'); // maxDate (Required Date): the maximum, most recent timestamp that the user // can have if they have a row in the table. i.e. if user can...
JavaScript
0
@@ -1100,24 +1100,97 @@ lient) %7B%0A + // Temporarily disabled as a longshot attempt to prevent issue%0A // -- yield clien
10b60b11099b380e2a0070cd01803f24a910dce0
fix editor shortcut key
demo/index.js
demo/index.js
/* jshint browser: true, devel: true */ /* global SCScript, CodeMirror */ window.onload = function() { "use strict"; var editor; var prev = ""; var update = function(source) { if (prev !== source) { window.location.replace("#" + encodeURIComponent(source)); prev = source; } }; var get...
JavaScript
0.000001
@@ -2531,16 +2531,241 @@ %7D%0A %7D;%0A%0A + var execute = function() %7B%0A var code, result;%0A%0A code = SCScript.compile(getCode(editor));%0A%0A result = eval.call(null, code);%0A%0A if (result) %7B%0A result = result.valueOf();%0A %7D%0A%0A console.log(result);%0A %7D;%0A%0A editor @@...
2f715739ca15c48fd97dd3c520723be54993d4d5
Fix custom emoji display in suggestions (#2519)
src/components/Chat/Input/EmojiSuggestion.js
src/components/Chat/Input/EmojiSuggestion.js
import React from 'react'; import PropTypes from 'prop-types'; import ListItemAvatar from '@mui/material/ListItemAvatar'; import ListItemText from '@mui/material/ListItemText'; import Suggestion from './Suggestion'; import emojiUrl from '../../../utils/emojiUrl'; const shortcode = (emoji) => `:${emoji.shortcode}:`; f...
JavaScript
0
@@ -166,24 +166,67 @@ tItemText';%0A +import %7B useSelector %7D from 'react-redux';%0A import Sugge @@ -299,16 +299,95 @@ ojiUrl'; +%0Aimport %7B customEmojiNamesSelector %7D from '../../../selectors/configSelectors'; %0A%0Aconst @@ -493,16 +493,140 @@ ps%0A%7D) %7B%0A + const customEmojiNames = useSelector(cus...
e3a4f75ec5500f7b2896d2d875b28478bf93169d
fix a typo
packages/core-js/internals/is-callable.js
packages/core-js/internals/is-callable.js
// `isCallable` abstract operation // https://tc39.es/ecma262/#sec-iscallable module.exports = function (argument) { return typeof argument === 'function'; };
JavaScript
1
@@ -1,13 +1,13 @@ // %60 -i +I sCallabl
dc2ca3a2833831ac4074d092767fd0fadaf67775
Add `Ember.Subarray.prototype.toString`.
packages/ember-runtime/lib/system/subarray.js
packages/ember-runtime/lib/system/subarray.js
var get = Ember.get, forEach = Ember.EnumerableUtils.forEach, RETAIN = 'r', FILTER = 'f'; function Operation (type, count) { this.type = type; this.count = count; } /** An `Ember.SubArray` tracks an array in a way similar to, but more specialized than, `Ember.TrackedArray`. It is useful for keepi...
JavaScript
0
@@ -4496,15 +4496,214 @@ %7D%0A %7D%0A + %7D,%0A%0A toString: function () %7B%0A var str = %22%22;%0A forEach(this._operations, function (operation) %7B%0A str += %22 %22 + operation.type + %22:%22 + operation.count;%0A %7D);%0A return str.substring(1);%0A %7D%0A%7D;%0A
fcdcf55f599e200c471a16377f549b2f0221b789
add surveyid questionBySurveyId
app/controllers/questions.server.controller.js
app/controllers/questions.server.controller.js
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), errorHandler = require('./errors.server.controller'), Question = mongoose.model('Question'), _ = require('lodash'); /** * Create a Question */ exports.create = function(req, res) { var question = new Question(req.body); question....
JavaScript
0.000832
@@ -1940,16 +1940,40 @@ veyId: ' +55209d8d4416313c18bceb20 ' %7D).pop
d2e6aee0b93c0c4cfa790426d843f201936d601d
Update run.js
Time/run.js
Time/run.js
module.exports = function(context, req) { context.log('Node.js HTTP trigger function processed a request. RequestUri=%s', req.originalUrl); if (req.query.text || (req.body && req.body.text)) { var now = new Date(); context.res = { // status: 200, /* Defaults to 200 */ ...
JavaScript
0.000001
@@ -313,16 +313,40 @@ + body: %7B text: %22hello%22, respon @@ -366,17 +366,18 @@ channel%22 -, + %7D %0A @@ -381,22 +381,18 @@ -body: +// %22Hello %22
a7b30b89cd7000283fa77d439c6595a662db8b41
Remove old comment
server/discord/index.js
server/discord/index.js
// Get the required shit together const Discord = require('eris'); const config = require('config'); const utils = require('./utils.js'); require('colors'); const client = new Discord.Client(config.get('api').discord.token); const prefixes = config.get('discord').prefix.user.concat(config.get('discord').prefix.guild);...
JavaScript
0
@@ -2400,56 +2400,8 @@ ld'; -%0A%09%09%09// message.words = pre%5B3%5D.split(/%5Cn+%7C%5Cs+/g); %0A%0A%09%09
5bf531487ca95f5abbee911d8c88d1ecef132b69
Make close shortcut close focused window, not store window
app/stores/window-store.js
app/stores/window-store.js
'use strict' let AppActions = require('../actions/app-actions') let AppDispatcher = require('../dispatcher/app-dispatcher') let AppConstants = require('../constants/app-constants') let Store = require('./store') let app = require('electron').app let BrowserWindow = require('electron').BrowserWindow let window let qu...
JavaScript
0.000001
@@ -1322,39 +1322,77 @@ %7B%0A -WindowStore.with(w =%3E w.hid +let w = BrowserWindow.getFocusedWindow()%0A if (!w) return%0A w.clos e() -) %0A%7D%0A%0A
5c3e8e68673485f5646458b9d7af8a1eafa41ff1
resolve issue with default plugin instantiation
packages/core/src/service/plugin/index.js
packages/core/src/service/plugin/index.js
// @flow import uuid from 'uuid' import { satisfies } from 'semver' import { ContentPlugin, LayoutPlugin, Plugin } from './classes' import defaultPlugin from './default' import missing from './missing' const find = (name: string, version: string = '*') => (plugin: Plugin): boolean => plugin.name === name && satisfies(...
JavaScript
0.000001
@@ -210,16 +210,19 @@ find = ( +%0A name: st @@ -218,32 +218,34 @@ %0A name: string, +%0A version: string @@ -250,16 +250,17 @@ ng = '*' +%0A ) =%3E (pl @@ -1159,16 +1159,17 @@ yout: %5B%5D + %7D = %7B%7D) @@ -1821,16 +1821,71 @@ ontent = + %5B%5D; // semicolon is required to avoid syntax error%0A ...
48180f28ba34e84bf47851e34ec25986aeda2100
add weinre
biz/index.js
biz/index.js
var url = require('url'); var https = require('https'); var http = require('http'); var util = require('../util'); var config = util.config; var FULL_WEINRE_HOST = config.WEINRE_HOST + ':' + config.weinreport; function request(req, res, port) { var options = url.parse(util.getFullUrl(req)); options.host = '127.0.0.1...
JavaScript
0.000104
@@ -372,16 +372,42 @@ = null;%0A +%09options.protocol = null;%0A %09if (por
7175724b1282b5eaff096ec60b85a51fbee09802
define indexOfO in jquery
src/public/src/js/app.js
src/public/src/js/app.js
function _App () { var self = this // Configure bower_components path requirejs.config({ paths: { 'localstorage': '../bower_components/local-storage-api/dist/storage.min', 'jquery': '../bower_components/jquery/dist/jquery.min', 'jquery-ui': '../bower_components/jquery-ui/jquery-ui.min', ...
JavaScript
0.000003
@@ -892,16 +892,190 @@ torage() +%0A%0A $.indexOfO = function(array, compFunc)%7B%0A for(var key in array)%7B%0A if(compFunc(array%5Bkey%5D))%7B%0A return key%0A %7D%0A %7D%0A return -1%0A %7D%0A %0A req @@ -2909,146 +2909,4 @@ p()%0A -%0AArray.prototype.indexOfO = ...
bccc4745b6d8586011400b76d674aee8eb5f7678
Update BaseCollection.methods.js
app/imports/api/base/BaseCollection.methods.js
app/imports/api/base/BaseCollection.methods.js
import { Meteor } from 'meteor/meteor'; import { CallPromiseMixin } from 'meteor/didericis:callpromise-mixin'; import { Roles } from 'meteor/alanning:roles'; import { ValidatedMethod } from 'meteor/mdg:validated-method'; import { _ } from 'meteor/erasaur:meteor-lodash'; import { RadGrad } from '../radgrad/RadGrad'; imp...
JavaScript
0.000001
@@ -3195,16 +3195,31 @@ ;%0A %7D%0A + return '';%0A %7D,%0A%7D);
578d4e52ba22da01af0ef44b7619dee09177bfc7
Add Gecko 16 nsITransferable.init() support.
modules/util/newUserScript.js
modules/util/newUserScript.js
Components.utils.import('resource://greasemonkey/parseScript.js'); Components.utils.import('resource://greasemonkey/util.js'); const EXPORTED_SYMBOLS = ['newUserScript']; const gClipboard = Components.classes["@mozilla.org/widget/clipboard;1"] .getService(Components.interfaces.nsIClipboard); const gWindowWatcher = Co...
JavaScript
0.000003
@@ -640,16 +640,73 @@ rable);%0A + if ('init' in transferable) transferable.init(null);%0A tran
d9847f51e5a6f3aaf013928e54079b7628330946
fix hidden flag
packages/heroku-orgs/commands/orgs/default.js
packages/heroku-orgs/commands/orgs/default.js
'use strict'; let cli = require('heroku-cli-util'); let co = require('co'); function* run () { cli.error(`orgs:default is no longer in the CLI.\nUse the HEROKU_ORGANIZATION environment variable instead.\nSee ${cli.color.cyan('https://devcenter.heroku.com/articles/develop-orgs#default-org')} for more info.`...
JavaScript
0.000003
@@ -409,14 +409,12 @@ -' true -' ,%0A
c8da2505ddd722e0a9cb1eb83c9c44e96f3c5c30
Include artist articles
schema/artist/index.js
schema/artist/index.js
import { defaults } from 'lodash'; import cached from '../fields/cached'; import initials from '../fields/initials'; import markdown from '../fields/markdown'; import Image from '../image'; import Artwork from '../artwork'; import PartnerShow from '../partner_show'; import ArtworkSorts from '../sorts/artwork_sorts'; im...
JavaScript
0
@@ -183,16 +183,50 @@ image';%0A +import Article from '../article';%0A import A @@ -536,16 +536,67 @@ avity';%0A +import positron from '../../lib/loaders/positron';%0A import %7B @@ -3833,24 +3833,240 @@ %7D,%0A %7D, +%0A%0A articles: %7B%0A type: new GraphQLList(Article.type),%0A resolve:...
2110b40851584943689ece4c5f4db2dfc2102a15
Fix for issue #10
js/zoom.js
js/zoom.js
+function ($) { "use strict"; /** * The zoom service */ function ZoomService () { this._activeZoom = this._initialScrollPosition = this._initialTouchPosition = this._touchMoveListener = null this._$document = $(document) this._$window = $(window) this._$body ...
JavaScript
0
@@ -587,32 +587,91 @@ 'IMG') return%0A%0A + if (this._$body.hasClass('zoom-overlay-open')) return%0A%0A if (e.metaKe
6971cf99fe0aaff0e216a46776e95a3e84c88b49
Add build:docs task
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'); var gutil = require('gulp-util'); var gulpif = require('gulp-if'); var browserify = require('browserify'); var watchify = require('watchify'); var buffer = require('vinyl-buffer'); var uglify = require('gulp-uglify'); var size = require('gulp-size'); var source = require('vinyl...
JavaScript
0.000012
@@ -2313,16 +2313,32 @@ ps.init( +%7BloadMaps: true%7D )))%0A @@ -5029,32 +5029,260 @@ ', function() %7B%0A + config.isProd = true;%0A browserifyDefaults = config.browserify.dragular;%0A%0A sequence(%5B'browserify', 'styles'%5D);%0A%7D);%0A%0Agulp.task('build:docs', function() %7B%0A config.isProd = true;%0A...
d4486729119d85c559b40ebe7b9e034967086df0
Use post.update to set the latest post
server/handlers/post.js
server/handlers/post.js
const Boom = require('boom') const Logger = require('franston')('handlers/post') const Slug = require('slug') const DateSort = require('../helpers/date-sort') const IsAuthorized = require('../helpers/is-authorized') const Post = require('../models/post') exports.create = function (request, reply) { Logger.debug('po...
JavaScript
0
@@ -415,16 +415,21 @@ gory%7D $%7B +post. title%7D%60, @@ -453,258 +453,48 @@ %0A%0A -Post.create(post, (err, created) =%3E %7B%0A if (err) return (Logger.error(err), reply(Boom.badRequest(err)))%0A%0A const query = %7B%0A slug: %7B $ne: created.slug %7D%0A %7D%0A%0A Post.update(query, %7B isLates...
aae8159de83f743814682fd87c38dfbe30e5d78e
better output
lib/index.js
lib/index.js
var _ = require('lodash'); var request = require('request'); var BatchManager = function (opts) { // http xhr request batch api handler for outbound rest/rpc like calls // (c) 2013 davehigginbotham@gmail.com var options = opts || null; this.prefix = 'batchman'; this.middleware = []; this.key = ...
JavaScript
0.999999
@@ -1653,56 +1653,219 @@ %7B %0A - %0A if (err) %7B%0A return fn(err, +%0A var output = %7B%0A path: defaults.url,%0A method: defaults.method,%0A body: (body) ? JSON.parse(body) : null,%0A status: (resp) ? resp.statusCode : null,%0A err: (err) ? err : null -); %0...
8adfdd5aead935a83008aad1da5fdd9ab24389f8
Fix spelling mistakes
extension/src/content_script.js
extension/src/content_script.js
// Check if active view mode is List or Gallery mode let soldQuantitySelector; let stringToReplace; let itemHeight; const viewMode = document.querySelector('.ico'); const viewModeActive = viewMode.className.includes('list selected') ? 'list' : 'gallery'; if (viewModeActive === 'gallery') { soldQuantitySelector = '....
JavaScript
1
@@ -1394,14 +1394,9 @@ %0A// -Lets c +C lean @@ -1512,18 +1512,9 @@ %0A// -Now lets i +I nser @@ -1533,13 +1533,12 @@ ems +s or -der +t ed d @@ -1543,19 +1543,16 @@ descend -end ly%0ArowIt
9155ba8cf71f36ae44d29ab48b1601f1000c815b
Handle multiple plug-in install at once
app-web/src/main/webapp/main/system/plugin/plugin.js
app-web/src/main/webapp/main/system/plugin/plugin.js
define(function () { var current = { initialize: function () { _('table').dataTable({ ajax: REST_PATH + 'plugin', dataSrc: '', sAjaxDataProp: '', dom: '<"row"<"col-sm-6"B><"col-sm-6"f>r>t', pageLength: -1, destroy: true, order: [[1, 'asc']], columns: [ { data: null, ...
JavaScript
0
@@ -1308,46 +1308,801 @@ %09%0A%09%09 -install : function(name) %7B%0A%09%09%09name && +/**%0A%09%09 * Install the requested plug-ins.%0A%09%09 * @param The plug-in identifier or null. When null, a prompt is displayed.%0A%09%09 */%0A%09%09install : function(name) %7B%0A%09%09%09if (name) %7B%0A%09%09%09%09current.ins...
97beb4bcefee81dcbb98e77ede391dadb3ba2fe1
Make positive condition and use it in the main func
lib/grainstore/paths/from23To30.js
lib/grainstore/paths/from23To30.js
'use strict'; var postcss = require('postcss'); var symbolyzers = [ 'polygon', 'line', 'marker', 'shield', 'text' ]; module.exports = function (cartoCss) { return postcss() .use(postcssCartocssMigrator()) .process(cartoCss) .css; }; var postcssCartocssMigrator = postcs...
JavaScript
0.019283
@@ -597,16 +597,85 @@ +%0A if (symbolizer === 'polygon') %7B%0A setPatte @@ -711,32 +711,50 @@ e, symbolyzer);%0A + %7D%0A %7D);%0A @@ -1153,67 +1153,8 @@ ) %7B%0A - if (symbolizer !== 'polygon') %7B%0A return;%0A %7D%0A%0A
be94f47d93bc6b4ac3ee14633214e02be55b27fe
Simplify the dependency.js.
dependency.js
dependency.js
path = require('path'); dirname = path.relative('.', __dirname); console.log(path.join(dirname, 'binding.gyp:native_mate'));
JavaScript
0.000028
@@ -1,70 +1,4 @@ -path = require('path');%0A%0Adirname = path.relative('.', __dirname);%0A cons @@ -9,18 +9,31 @@ log( +require(' path +') .join( +__ dirn
6535f89937c2170f650a85544a0855e8f0da3b41
fix Buffer deprecation
lib/raw-image-stream.js
lib/raw-image-stream.js
var inherits = require('util').inherits var Transform = require('stream').Transform module.exports = RawImageStream function RawImageStream (frameSize) { Transform.call(this) this.frameSize = frameSize this.buffer = new Buffer(0) } inherits(RawImageStream, Transform) RawImageStream.prototype._transform = func...
JavaScript
0.000035
@@ -220,19 +220,21 @@ er = - new Buffer +.alloc (0)%0A
6d1412dbf60922f3c178fc5c6f986cb76385291d
simplify Layout
plant/twigs/Layout/Layout.js
plant/twigs/Layout/Layout.js
import React, { PropTypes } from 'react'; import * as layouts from './index'; const Layout = ({ name, children }) => { const CustomLayout = layouts[name]; return ( <CustomLayout children={children} /> ); }; Layout.propTypes = { name: PropTypes.string.isRequired, children: PropTypes.node, }; export def...
JavaScript
0.99831
@@ -3,15 +3,8 @@ port - React, %7B P @@ -11,16 +11,31 @@ ropTypes +, createElement %7D from @@ -123,107 +123,50 @@ =%3E -%7B%0A const CustomLayout = layouts%5Bname%5D;%0A%0A return (%0A %3CCustomLayout children=%7Bchildren%7D /%3E%0A );%0A%7D +createElement(layouts%5Bname%5D, %7B children %7D) ;%0A%0AL...