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
b71174fa92deba71aa769b08d3afae62b000a7d7
add url-loader for png/jpg files
build/webpack/_base.js
build/webpack/_base.js
import webpack from 'webpack'; import cssnano from 'cssnano'; import HtmlWebpackPlugin from 'html-webpack-plugin'; import config from '../../config'; const paths = config.utils_paths; const debug = require('debug')('kit:webpack:_base'); debug('Create configuration.'); const CSS_MODULES...
JavaScript
0.000001
@@ -2860,16 +2860,84 @@ svg+xml%22 + %7D,%0A %7B test: /%5C.(png%7Cjpg)$/, loader: 'url-loader?limit=8192' %7D%0A
89ed4deb234ec9892ebcc674af04be0f2f64bc75
Create index.js
www/js/index.js
www/js/index.js
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
JavaScript
0.000002
@@ -1401,16 +1401,18 @@ ) %7B%0A +// window.o @@ -1489,24 +1489,85 @@ no'); %0A + window.location.href=%22http://kraftstoffbilliger.de/m3/%22;%0A admob.se
ac1dc5303c563fb82870f8a93e2690b02fab2ca6
Add logic for adding datebox to time formated records
www/js/index.js
www/js/index.js
var post = function(action, data){ return new Promise(function(resolve, reject){ console.log("About to make a post call - "); console.log(action); console.log(data); var request = $.post(action, data); request.done(function(serverData){ resolve(serverData) }); request.fail(functi...
JavaScript
0
@@ -1577,12 +1577,12 @@ $(' -#dat +.tim e'). @@ -1610,14 +1610,111 @@ e: %22 -calbox +durationflipbox%22,%0A overrideDurationOrder:%5B%22h%22,%22i%22,%22s%22%5D,%0A overrideDurationFormat: %22%25DM:%25DS %22%0A @@ -2144,17 +2144,16 @@ cords)%7B%0A -%0A var @@ -2166,40 +2166,10 @@ = ' -%3Ci...
fd6b4a4af9af234e9ec47ce230b5d888df1afc1e
remove json filetype
www/js/login.js
www/js/login.js
function checkCookie(){ if(localStorage.getItem('user_id') != "" && localStorage.getItem('user_id') != null){ window.location = ('pages/main.html'); } } $("button#submit").click( function() { if( $("#username").val() == "" || $("#password").val() == "" ) $("div#loginmsg").html('<font color="red">Vennligst...
JavaScript
0.00002
@@ -706,15 +706,8 @@ %09%09%09%7D -,'json' );%0A
86dbf911764ec44141fd3d9c5924b2221ee634ad
Update myapp.js
www/js/myapp.js
www/js/myapp.js
var app = angular.module('myApp', []); app.controller('formHide', function($scope){ $scope.buy = true; var storedData = myApp.formGetData('buyform'); if (storedData){ $scope.metreName = storedData.metreName; $scope.metre = storedData.metre;} $scope.switcher = true; $scope.regswitcher = true; $scope.changebtn = ...
JavaScript
0.000002
@@ -2441,16 +2441,113 @@ tion()%7B%0A +%09%09if (currentCarrier == %22ECONET%22)%0A%09%09%09alert('ecocash');%0A%09%09else%0A%09%09%09alert('telecash or onewallet');%0A %09%09amt = @@ -3122,12 +3122,13 @@ lTop(0);%0A%7D); +%0A
d5ccf40bc135e478dab9442f0c589cfc1b57a9ef
Update myapp.js
www/js/myapp.js
www/js/myapp.js
var app = angular.module('myApp', []); app.controller('formHide', function($scope){ $scope.buy = true; var storedData = myApp.formGetData('buyform'); if (storedData){ $scope.metreName = storedData.metreName; $scope.metre = storedData.metre;} $scope.switcher = true; $scope.regswitcher = true; $scope.changebtn = ...
JavaScript
0.000002
@@ -2413,16 +2413,8 @@ dow. -cordova. plug
70c60cf5882a677acdb54d6dff639d5e07930e45
remove duplicate js
assets/js/custom.js
assets/js/custom.js
$(function(){ $('.entry-content a').attr('target','_blank'); var headers = $('#post .entry-content :header').map(function (idx, h){ var a = $('<a href="#">'); a.attr('data-id',h.id); a.attr('href', '#' + h.id); a.attr('class', h.nodeName.toLowerCase()); a.html( '<span>' + h.textContent) re...
JavaScript
0.99851
@@ -498,16 +498,20 @@ $(' +body #post'). pare @@ -510,24 +510,8 @@ t'). -parents('body'). appe @@ -1793,105 +1793,10 @@ op;%0A -%0A -var headersTop = $('#headers').offset().top;%0A var headersLeft = $('#headers').offset().left;%0A %0A $
097104012aba3d7eed59c9472d4a8ca587c23ee2
Update jest dependency
react-native-scripts/src/scripts/init.js
react-native-scripts/src/scripts/init.js
// @flow import chalk from 'chalk'; import fse from 'fs-extra'; import path from 'path'; import pathExists from 'path-exists'; import spawn from 'cross-spawn'; import log from '../util/log'; // UPDATE DEPENDENCY VERSIONS HERE const DEFAULT_DEPENDENCIES = { expo: '^18.0.1', react: '16.0.0-alpha.12', 'react-nativ...
JavaScript
0.000001
@@ -441,12 +441,13 @@ '~1 +8 .0. -2 +0 ',%0A
2137ba2e5138bfc3f2da256e76bfbc32e08c8bb9
fix for priorities in Z3
z3/CommandLineZ3.js
z3/CommandLineZ3.js
module('users.timfelgentreff.z3.CommandLineZ3').requires('users.timfelgentreff.z3.NaClZ3', "lively.ide.CommandLineInterface").toRun(function() { NaCLZ3.subclass("CommandLineZ3", { loadModule: function () { // No module used }, get strength() { return { required: u...
JavaScript
0
@@ -4162,16 +4162,132 @@ iority;%0A + if (prio instanceof String %7C%7C typeof(prio) == %22string%22) %7B%0A prio = this.strength%5Bprio%5D;%0A %7D%0A
f606357e4814693e34502caaf1c705c006ac9659
Fix regressions related to SwitchTextTypeCommand.
packages/text/SwitchTextTypeCommand.js
packages/text/SwitchTextTypeCommand.js
'use strict'; var Command = require('../../ui/Command'); var _isMatch = require('lodash/isMatch'); var _find = require('lodash/find'); var _clone = require('lodash/clone'); function SwitchTextType() { Command.apply(this, arguments); } SwitchTextType.Prototype = function() { // Available text types on the surfac...
JavaScript
0
@@ -166,16 +166,55 @@ clone'); +%0Avar warn = require('../../util/warn'); %0A%0Afuncti @@ -433,18 +433,56 @@ face -;%0A if ( +Manager.getFocusedSurface();%0A if (surface && surf @@ -1328,32 +1328,83 @@ tion(context) %7B%0A + var documentSession = context.documentSession;%0A var sel = co @@ -1478,40 ...
429324f8df9027506fe76bb33ff0b507b7237ec9
add FlagsProvider to storybook
.storybook/stories/playground/index.js
.storybook/stories/playground/index.js
/* * Copyright 2020 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
JavaScript
0
@@ -589,16 +589,91 @@ e.%0A */%0A%0A +/**%0A * External dependencies%0A */%0Aimport %7B FlagsProvider %7D from 'flagged';%0A%0A /**%0A * I @@ -1387,18 +1387,45 @@ =%3E -%7B%0A return +(%0A %3CFlagsProvider features=%7B%7B%7D%7D%3E%0A %3CAp @@ -1448,9 +1448,27 @@ %7D /%3E -;%0A%7D +%0A %3C/FlagsProvider%3E...
b22d63bc8beb7aa1ddf191c7e685392c6a5b1e4d
Use dedicated heroku instance
scripts/containers/HomePage.js
scripts/containers/HomePage.js
import { bindActionCreators } from "redux"; import { connect } from "react-redux"; import HomePage from "../components/HomePage"; import * as PollActions from "../actions/poll"; function mapStateToProps(state) { return { server: "https://kinto-leplatrem.herokuapp.com/v1", bucket: "happiness" }; } functi...
JavaScript
0
@@ -244,14 +244,8 @@ s:// -kinto- lepl @@ -249,16 +249,26 @@ eplatrem +-happiness .herokua
41bcbd60a688ffb90d0b6a33a8a94c6fd6773a78
fix bug with deleting tags leaving them in as filters
packages/tags/tags.js
packages/tags/tags.js
Session.setDefault('with_tags', []); Session.setDefault('without_tags', []); tagsHandle = Meteor.subscribe('tags', function () {}); Template.tags.events({ 'keydown #new-tag, keyup #new-tag, focusout #new-tag': function (evt) { if(evt.type === 'keyup' && evt.which === 27) { //esc -> cancel //cancel e...
JavaScript
0
@@ -2053,16 +2053,195 @@ s._id);%0A + Session.set(%22with_tags%22, _.without(Session.get(%22with_tags%22), this._id));%0A Session.set(%22without_tags%22, %0A _.without(Session.get(%22without_tags%22), this._id));%0A %7D%0A%7D);%0A
c7b91e9db8f199fda49cabe08a049f21d8ced9ca
fix test description and route
test/integration/index.js
test/integration/index.js
'use strict'; const request = require('supertest'); const bootstrap = require('../../'); const http = require('http'); const path = require('path'); describe('bootstrap()', () => { let promise; it('must be given a list of routes', () => (() => bootstrap()).should.Throw('Must be called with a list of routes'...
JavaScript
0.000003
@@ -4393,26 +4393,39 @@ it(' -uses a route param +accepts a baseController option ', ( @@ -4651,38 +4651,32 @@ .get('/one -/param ')%0A .ex
ea6b6754f7379b21eaebb18834d5169f5d18c0d2
Make process wait for prosody startup to complete
test/integration/index.js
test/integration/index.js
'use strict'; var Component = require('../../index') , ltx = require('node-xmpp-core').ltx , Client = require('node-xmpp-client') , exec = require('child_process').exec require('should') var component = null , client = null , user = null var options = {} /* jshint -W030 */ describe('Integration tests', f...
JavaScript
0
@@ -6,16 +6,35 @@ strict'; +%0A/* jshint -W030 */ %0A%0Avar Co @@ -286,56 +286,28 @@ %7B%7D%0A%0A -/* jshint -W030 */%0Adescribe('Integration tests', +var connectClients = fun @@ -316,28 +316,82 @@ ion( +done ) %7B%0A -%0A -beforeEach( +component = new Component(options)%0A component.on('online', func...
35fd39f0fbc51d4e1bf0e7ba45592413937ec0e8
Fix test after rebase.
test/less_options/main.js
test/less_options/main.js
if (typeof window !== "undefined" && window.QUnit) { var systemInstantiate = System.instantiate; System.instantiate = function(load) { if (load.name.indexOf("main.less") !== -1) { var hasLineNumber = load.source.indexOf("line 1, input") !== -1, hasStrictMath = load.source.indexOf("100%") !== -1; QUnit....
JavaScript
0
@@ -233,15 +233,8 @@ ne 1 -, input %22) !
0aef18125a917565adc7b9db90a6d07a01d17681
support skipping default empty state assert/check
test/lib/alloc-cluster.js
test/lib/alloc-cluster.js
// Copyright (c) 2015 Uber Technologies, Inc. // // 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...
JavaScript
0
@@ -6973,24 +6973,72 @@ stEnded() %7B%0A + if (!opts.skipEmptyCheck) %7B%0A @@ -7067,32 +7067,50 @@ yState(assert);%0A + %7D%0A
700f65aa50e23eb06bcfe1bf0c675fb2996bbf75
Add implementation of revertSQLInjection in query.js
sashimi-webapp/src/database/retrieve/query.js
sashimi-webapp/src/database/retrieve/query.js
/* * * CS3283/4 - query.js * This class deals with query statements for the facade storage * This class will communicate with sqlCommands to get a certain command for * */ import SqlCommands from 'src/database/sql-related/sqlCommands'; import constants from 'src/database/constants'; import StringManipulator from...
JavaScript
0.000001
@@ -3566,40 +3566,37 @@ r.re -placeAll(fileContent, '%5C%5C%22', '%22' +vertSQLInjections(fileContent );%0A
2faffd7df04e2b399ee2cd2236a5755465670cb3
Reword descriptions for unit tests
test/spec/widgets.spec.js
test/spec/widgets.spec.js
describe('VK widgets', function () { beforeEach(module('vk-api-angular')); beforeEach(inject(function (_$compile_, _$rootScope_) { $compile = _$compile_; $rootScope = _$rootScope_; })); it('call VK.Widgets.Comments()', inject(function () { var spy = spyOn(VK.Widgets, 'Comments'); $compile('<v...
JavaScript
0
@@ -198,32 +198,33 @@ %7D));%0A%0A it('call +s VK.Widgets.Comm @@ -229,16 +229,32 @@ mments() + Open API method ', injec @@ -443,32 +443,33 @@ %7D));%0A%0A it('call +s VK.Widgets.Comm @@ -475,16 +475,32 @@ munity() + Open API method ', injec @@ -699,32 +699,33 @@ %7D));%0A%0A it('call +s VK.Widgets.Cont...
25d8e4ceafa63baff07a0facc0691c94cd967df0
Attach scroll listener after scrollNode is existed
packages/core/src/InfiniteScroll.js
packages/core/src/InfiniteScroll.js
// ************************************* // // Inspired by react-infinite-scroller // // @ref https://github.com/CassetteRocks/react-infinite-scroller // // ************************************* import React, { PureComponent, isValidElement } from 'react'; import PropTypes from 'prop-types'; import classNames from...
JavaScript
0
@@ -5499,16 +5499,35 @@ : + this.scrollNode && this.sc @@ -5548,32 +5548,36 @@ tNode;%0A%0A +if ( this.scrollConta @@ -5572,33 +5572,73 @@ .scrollContainer +) %7B %0A + this.scrollContainer%0A .add @@ -5685,24 +5685,34 @@ lListener);%0A + %7D%0A %7D%0A%0A ...
c3b8de708615878863e74bae39c8374f194aad46
Fix order of arguments
packages/core/src/Rules/EpsToPdf.js
packages/core/src/Rules/EpsToPdf.js
/* @flow */ import path from 'path' import File from '../File' import Log from '../Log' import Rule from '../Rule' import State from '../State' import type { Action, ShellCall, Command, Phase, CommandOptions, ParsedLog } from '../types' export default class EpsToPdf extends Rule { static parameterTypes: Array<Set...
JavaScript
0.999871
@@ -3648,16 +3648,17 @@ e dvipdf +m style %22 @@ -3680,22 +3680,16 @@ %22%0A // - style but for @@ -3812,32 +3812,8 @@ th%7D%60 -,%0A '$DIR_0/$BASE_0' %0A @@ -4218,32 +4218,65 @@ ricted')%0A %7D%0A%0A + args.push('$DIR_0/$BASE_0')%0A%0A return %7B%0A
4c28abc8f33ecc2c1773a0bbd3ffa66fa8f375f5
Convert static/js/portico/confirm-preregistrationuser.js to ES6 module.
static/js/portico/confirm-preregistrationuser.js
static/js/portico/confirm-preregistrationuser.js
"use strict"; $(() => { $("#register").trigger("submit"); });
JavaScript
0.000001
@@ -1,19 +1,4 @@ -%22use strict%22;%0A%0A $(() @@ -45,8 +45,19 @@ %22);%0A%7D);%0A +export %7B%7D;%0A
bae719a4eceb3dc5c671c7e68cb677d17468f0b2
Correct error asserts
test/unit/transactions.js
test/unit/transactions.js
'use strict' process.env.NODE_ENV = 'test' const should = require('should') const transactions = require('../../src/api/transactions') describe("calculateTransactionBodiesByteLength()", () => { it("should calculate the bodies length of a transaction", async () => { const lengthObj = { length: 0 } let tran...
JavaScript
0.000003
@@ -1201,32 +1201,34 @@ )%0A %7D catch (e +rr ) %7B%0A e.shou @@ -1213,34 +1213,32 @@ h (err) %7B%0A -e. should.not.exist @@ -1230,32 +1230,35 @@ hould.not.exist( +err )%0A %7D%0A %7D)%0A%7D)%0A @@ -1522,16 +1522,18 @@ catch (e +rr ) %7B%0A @@ -1534,18 +1534,16 @@ %7B%0A -e. should...
47901b647abff3a9a6800cefc1e1220d7dc0c11a
Streamline Downscope sample (#2560)
auth/downscoping.js
auth/downscoping.js
// Copyright 2021, Google, Inc. // 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 wr...
JavaScript
0
@@ -4795,538 +4795,20 @@ nt: -%7B%0A sign: () =%3E %7B%0A Promise.reject('unsupported');%0A %7D,%0A getCredentials: async () =%3E %7B%0A Promise.reject();%0A %7D,%0A request: opts =%3E %7B%0A return oauth2Client.request(opts);%0A %7D,%0A auth...
80fa0df141371e5b929726e9eabef959adcfed28
Add developer flag to user schema
schemas/userSchema.js
schemas/userSchema.js
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var userSchema = new Schema({ githubId: Number, name: String, avatar_url: String, projects: Array }); module.exports = mongoose.model('User', userSchema);
JavaScript
0.000001
@@ -148,16 +148,40 @@ String,%0A + isDeveloper: Boolean,%0A projec
842c2db6f2cadbd49ec5e0248e71c7667e127a7c
Fix es6 in build scripts
resources/babel/transform-error-codes.js
resources/babel/transform-error-codes.js
/* eslint-disable */ var fs = require('fs') var path = require('path') var _errorCodes = null var _lastReadErrorCodes = null function getErrorCodes() { if (!_errorCodes || !_lastReadErrorCodes || (Date.now() - _lastReadErrorCodes) > 5000) { _errorCodes = JSON.parse(fs.readFileSync(path.join(__dirname, '../', '...
JavaScript
0
@@ -1604,17 +1604,16 @@ rrCode%5D) -, %0A @@ -1623,13 +1623,17 @@ - ... +%5D.concat( node @@ -1655,25 +1655,9 @@ e(2) -,%0A %5D +) %0A
281588e18ff81ed73b13bad8572897c87becf9f4
clean up update-associations
scripts/update-associations.js
scripts/update-associations.js
/*eslint-disable */ /** * * This script queries dfp for all line items that match the arguments * specified, modifies their javascript representation and the submits an update * to DFP. * * Usage: * * $ node scripts/update-associations.js --channel A --platform M --position MIDDLE --region USA --partner SONOB...
JavaScript
0
@@ -555,53 +555,8 @@ g'); -%0Avar formatter = require('../lib/formatter'); %0A%0Ava @@ -1079,64 +1079,8 @@ der%0A -// startDateTime throws an error if you use full values%0A var @@ -1138,24 +1138,82 @@ veId: null,%0A + // startDateTime throws an error if you use full values%0A startDateT @@ -1712,132 +1712,69...
d3f9a17f7c1fff7b133e7ea58b9478847763b384
Rename takeScreenshot to checkForVisualChanges
tests/acceptance/setup.js
tests/acceptance/setup.js
import { remote } from 'webdriverio'; import Mugshot from 'mugshot'; import WebdriverIOAdapte from 'mugshot-webdriverio'; import path from 'path'; let mugshot; before(function() { this.timeout(10 * 1000); const options = { host: 'selenium', desiredCapabilities: { browserName: 'chrome' } }; global.b...
JavaScript
0
@@ -572,30 +572,37 @@ unction -takeScreenshot +checkForVisualChanges (test, n @@ -1558,22 +1558,29 @@ urn -takeScreenshot +checkForVisualChanges (thi
be305de857aeebccf2479f50966c346a9ad201a4
add more tests
packages/vx-axis/test/AxisLeft.test.js
packages/vx-axis/test/AxisLeft.test.js
import { AxisLeft } from '../src'; describe('<AxisLeft />', () => { test('it should be defined', () => { expect(AxisLeft).toBeDefined() }) })
JavaScript
0
@@ -1,8 +1,35 @@ +import React from 'react';%0A import %7B @@ -54,16 +54,50 @@ ../src'; +%0Aimport %7B shallow %7D from 'enzyme'; %0A%0Adescri @@ -201,12 +201,1085 @@ d()%0A %7D) +%0A%0A test('it should render with class .vx-axis-left', () =%3E %7B%0A const wrapper = shallow(%3CAxisLeft /%3E)%0A expect(wrap...
e29d7a79fa89fab18ce1bf8f30ffba57081fdf66
add removing tmpDir after tests and change its name to .tmp (cause its already ignored in .gitignore)
packages/xod-doc/test/generate.spec.js
packages/xod-doc/test/generate.spec.js
import chai, { expect } from 'chai'; import path from 'path'; import chaiFiles from 'chai-files'; import chaiFs from 'chai-fs'; import dirtyChai from 'dirty-chai'; import doc from '../src/index'; const packed = require('./mocks/pack.json'); chai.use(chaiFiles); chai.use(chaiFs); chai.use(dirtyChai); function pathRes...
JavaScript
0
@@ -153,24 +153,53 @@ irty-chai';%0A +import rimraf from 'rimraf';%0A import doc f @@ -558,16 +558,17 @@ rname, ' +. tmp');%0A%0A @@ -699,32 +699,80 @@ hen(done);%0A %7D); +%0A after(() =%3E %7B%0A rimraf.sync(tmpPath);%0A %7D); %0A%0A it('shoult c
295d172ba443ef28ccf5360927fde71cb5d586a5
Make trigger element available on getExtraData
indico/htdocs/js/indico/jquery/ajaxdialog.js
indico/htdocs/js/indico/jquery/ajaxdialog.js
/* This file is part of Indico. * Copyright (C) 2002 - 2015 European Organization for Nuclear Research (CERN). * * Indico is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 3 of the * License...
JavaScript
0
@@ -1637,16 +1637,17 @@ ata_href + ? data_h @@ -1658,16 +1658,16 @@ : href;%0A - @@ -1744,16 +1744,47 @@ rl: href +,%0A trigger: this %0A @@ -2075,16 +2075,77 @@ xtend(%7B%0A + trigger: null, // element that opened the dialog%0A @@ -2449,16 +2449,17 @@ se: nu...
15811398e36dd78afd782e89fa1280e05d627ca2
Remove logging
initializers/points.js
initializers/points.js
module.exports = { loadPriority: 1000, startPriority: 1000, stopPriority: 1000, initialize: function(api, next){ var nano = require('nano')(api.config.database.host); var points = nano.use('points'); function sluggify (text) { var slug = text.replace(/[^a-zA-Z0-9\s]/g,""); slug = ...
JavaScript
0.000001
@@ -803,39 +803,8 @@ ) %7B%0A - console.log(body);%0A @@ -822,32 +822,32 @@ t(error, body);%0A + %7D else @@ -1049,39 +1049,8 @@ ) %7B%0A - console.log(body);%0A @@ -1303,39 +1303,8 @@ ) %7B%0A - console.log(body);%0A @@ -1498,32 +1498,32 @@ (error, bod...
62e1d8515fd2434166ea9dc58203bc90f54f61c9
Correcting the service address
bakbak_validator.js
bakbak_validator.js
$.fn.bakbak_validator = function(options) { return this.each(function() { $(this).focusout(function() { run_validator($(this).val(), options); }); }); }; function run_validator(address_text, options) { // don't run validator without input if (!address_text) { ...
JavaScript
0.999996
@@ -910,17 +910,16 @@ l: 'http -s ://verif @@ -935,16 +935,20 @@ kbak.io/ +api/ validate
dd80da7a019a07003aa8a588f2f3e57f03dd4218
Remove dead code
formatters/custom.js
formatters/custom.js
define(function(require, exports, module) { main.consumes = [ "Plugin", "settings", "save", "collab", "tabManager", "dialog.error", "format" ]; main.provides = ["format.custom"]; return main; function main(options, imports, register) { var settings = imports.settings; var ta...
JavaScript
0.001497
@@ -679,119 +679,8 @@ ) %7B%0A - if (!options.collab) %7B%0A save.on(%22beforeSave%22, function() %7B%7D, plugin);%0A %7D%0A @@ -3095,8 +3095,9 @@ %7D%0A%7D); +%0A
841b0e79b763b3f3afc672a02a4a2f0a1b7a8e1e
Fix reset endpoint
packages/shared/lib/api/settings.js
packages/shared/lib/api/settings.js
export const getSettings = () => ({ url: 'settings', method: 'get' }); export const updatePassword = (data) => ({ url: 'settings/password', method: 'put', data }); export const upgradePassword = (data) => ({ url: 'settings/password/upgrade', method: 'put', data }); export const update...
JavaScript
0.000002
@@ -1026,36 +1026,37 @@ teResetEmail = ( -data +Reset ) =%3E (%7B%0A url: @@ -1099,32 +1099,43 @@ 'put',%0A data +: %7B Reset %7D %0A%7D);%0A%0Aexport con
02b87d59683c2431c1319f2a55d6226d800daa57
Add redo hotkey for Windows (Ctrl+Shift+Z) (#3110)
packages/slate-hotkeys/src/index.js
packages/slate-hotkeys/src/index.js
import { isKeyHotkey } from 'is-hotkey' import { IS_IOS, IS_MAC } from 'slate-dev-environment' /** * Hotkey mappings for each platform. * * @type {Object} */ const HOTKEYS = { bold: 'mod+b', compose: ['down', 'left', 'right', 'up', 'backspace', 'enter'], moveBackward: 'left', moveForward: 'right', moveW...
JavaScript
0
@@ -1265,16 +1265,17 @@ redo: +%5B 'ctrl+y' @@ -1275,16 +1275,33 @@ ctrl+y', + 'ctrl+shift+z'%5D, %0A%7D%0A%0A/**%0A
62be43779e7fcc361fae365ebdd742dea1e932e1
reduce ambiguity
server/game/deck.js
server/game/deck.js
const _ = require('underscore'); const cards = require('./cards'); const DrawCard = require('./drawcard.js'); const ProvinceCard = require('./provincecard.js'); const StrongholdCard = require('./strongholdcard.js'); class Deck { constructor(data) { this.data = data; } prepare(player) { va...
JavaScript
0.999999
@@ -772,36 +772,40 @@ var -draw +conflict Card = this.crea @@ -848,36 +848,40 @@ -draw +conflict Card.location = @@ -935,36 +935,40 @@ tDrawCards.push( -draw +conflict Card);%0A @@ -1150,19 +1150,22 @@ var d -raw +ynasty Card = t @@ -1225,19 +1225,22 @@ d -raw ...
c7fcd6b4b31da03e5e14194acc5f0aa73c4f4b10
Update to Electron v1
electron-start.js
electron-start.js
var app = require('app'); // Module to control application life. var BrowserWindow = require('browser-window'); // Module to create native browser window. // Report crashes to our server. require('crash-reporter').start(); // Keep a global reference of the window object, if you don't, the window will // be closed a...
JavaScript
0
@@ -1,15 +1,20 @@ var -app +electron = requi @@ -21,13 +21,42 @@ re(' +electron');%0Avar app = electron. app -') ; / @@ -117,33 +117,30 @@ w = -require('b +electron.B rowser --w +W indow -') ; / @@ -186,77 +186,8 @@ w.%0A%0A -// Report crashes to our server.%0Arequire('crash-reporter').start();%0A%0A //...
2a918ce67875ec970f27477099dd4779588fb3de
add Node import to appease TypeScript
js/buttons/BooleanRectangularToggleButton.js
js/buttons/BooleanRectangularToggleButton.js
// Copyright 2013-2020, University of Colorado Boulder /** * This toggle button uses a boolean Property and a trueNode and falseNode to display its content. */ import merge from '../../../phet-core/js/merge.js'; import Tandem from '../../../tandem/js/Tandem.js'; import BooleanToggleNode from '../BooleanToggleNode.j...
JavaScript
0
@@ -413,16 +413,94 @@ ton.js'; +%0Aimport %7B Node %7D from '../../../scenery/js/imports.js'; // eslint-disable-line %0A%0Aclass
005f9f6c6f6dcf01859e1b7e993521658e7bf186
add safety
js/common/tests/shell-collection-volatile.js
js/common/tests/shell-collection-volatile.js
//////////////////////////////////////////////////////////////////////////////// /// @brief test the collection interface w/ volatile collections /// /// @file /// /// DISCLAIMER /// /// Copyright 2010-2012 triagens GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you m...
JavaScript
0.000576
@@ -5852,32 +5852,48 @@ c.unload();%0A + c = null;%0A %0A int @@ -5895,34 +5895,61 @@ internal.wait( -4) +5);%0A c = internal.db%5Bcn%5D ;%0A assertEq
caf73e4296e2c16469a5113b1d16e99f25111ac0
Tidy up custom email form
src/admin/dumb_components/custom_email_form.js
src/admin/dumb_components/custom_email_form.js
const React = require('react') const { map, objOf, zipWith, merge, compose, indexBy, prop, converge, dissoc } = require('ramda') export default ({ members, submit }) => { const onSubmit = (e) => { e.preventDefault() submit(members, e.target) } return ( <div className='custom-email-container'> <...
JavaScript
0.000083
@@ -27,106 +27,8 @@ ct') -%0Aconst %7B map, objOf, zipWith, merge, compose, indexBy, prop, converge, dissoc %7D = require('ramda') %0A%0Aex
cf919af73a26bacb03ac4eb3b1914d7472d82d4d
fix db index on media
models/users/Media.js
models/users/Media.js
// Model for file page (comments, file usage...) 'use strict'; var fs = require('fs'); var extname = require('path').extname; var exec = require('child_process').exec; var Mongoose = require('mongoose'); var Schema = Mongoose.Schema; var resize = require('./_lib/resize'); var configReader = req...
JavaScript
0
@@ -1734,16 +1734,18 @@ );%0A%0A // + - Album p @@ -1771,75 +1771,47 @@ // -!!! sorting done in memory, because medias count per album is small +- Media page, fetch next and prev _id's %0A M @@ -1828,24 +1828,43 @@ (%7B album_id: + 1, exists: 1, _id: 1 %7D);%0A%0A //
227ec4c8bd245fc42e321a61e5b0c454675691e3
Create exports as function taking IO
server/controllers/students.js
server/controllers/students.js
//var Teachers = require('../models/teachers'); //var TeacherClasses = require('../models/Teacher_classes'); //var Classes = require('../models/classes'); //var ClassLessons = require('../models/class_lessons'); // var Lessons = require('../models/lessons'); //var RequestedResponses = require('../models/requested_respo...
JavaScript
0.000002
@@ -339,20 +339,74 @@ ports = +function(io) %7B%0A +%0A +var functionTable = %7B%7D;%0A%0A functionTable. readySta @@ -407,17 +407,18 @@ adyStage -: + = functio @@ -423,12 +423,8 @@ ion( -io, req, @@ -735,801 +735,70 @@ - %0A%0A%0A %7D);%0A var responseHTML = %60%3C!doctype html%3E %3Chtml l...
c5dffe31e6de8a9db5392f222918598f5aa3bc87
Add status field to the users model
models/users_model.js
models/users_model.js
import mongoose, { Schema } from 'mongoose'; const userSchema = new Schema({ first_name: { type: String, required: true }, last_name: { type: String, required: true }, email: { type: String, unique: true, required: true }, username: { type: String, unique: true, required: true }, password: { type: ...
JavaScript
0.000001
@@ -335,24 +335,95 @@ ed: true %7D,%0A + status: %7B type: String, enum: %5B'user', 'admin'%5D, required: true %7D,%0A created_
a0c57ac8a360bd53f40ebe8e38fe5c2880175942
Fix missing page action icon
scripts/background.js
scripts/background.js
/*jslint indent: 2 */ /*global window: false, XMLHttpRequest: false, chrome: false, btoa: false */ "use strict"; var TogglButton = { $user: null, $apiUrl: "https://www.toggl.com/api/v7", $newApiUrl: "https://new.toggl.com/api/v8", checkUrl: function (tabId, changeInfo, tab) { if (changeInfo.status === 'co...
JavaScript
0.000335
@@ -230,16 +230,289 @@ api/v8%22, +%0A $sites: new RegExp(%5B%0A 'asana%5C%5C.com',%0A 'podio%5C%5C.com',%0A 'trello%5C%5C.com',%0A 'github%5C%5C.com',%0A 'gitlab%5C%5C.com',%0A 'teambox%5C%5C.com',%0A 'teamweek%5C%5C.com',%0A 'basecamp%5C%5C.com',%0A 'unfuddle%5C%5C.com',%0A 'worksectio...
3d58b58f5333f1c394b0223ef13acc8e044b9623
remove pact
scripts/botCleaner.js
scripts/botCleaner.js
const pact = require('../pact.js'); pact.db.createReadStream({start: 'poll!', end: 'poll!~' }) .on('data', (data) => { console.log(data.value); const title = JSON.parse(data.value).question; console.log(title); if (title.match('href') || title.mat...
JavaScript
0.000102
@@ -1,18 +1,21 @@ const -pact +levelup = requi @@ -22,28 +22,47 @@ re(' -../pact.js');%0A%0Apact. +level');%0Aconst db = levelup('../db');%0A%0A db.c @@ -117,21 +117,16 @@ - end: 'po @@ -131,21 +131,16 @@ poll!~'%0A - @@ -349,13 +349,8 @@ -pact. db.d
7eeb2e526de312c11b08b9ac7e0d639b9f3c301a
Update colorWheel.js
scripts/colorWheel.js
scripts/colorWheel.js
var ColorWheel = React.createClass({ render: function() { var n = this.props.n == undefined ? 24 : this.props.n; var radius = this.props.radius == undefined ? 200 : this.props.radius; var thickness = this.props.thickness == undefined ? 40 : this.props.thickness; // radus is the outer radius ...
JavaScript
0
@@ -1,14 +1,10 @@ %0A%0A -var ColorWhe
eb1b5cf172acc0ac09367b0779cdaa1965786f7b
Remove more from controller
scripts/controller.js
scripts/controller.js
/* * Copyright 2014, Gregg Tavares. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
JavaScript
0
@@ -3663,1204 +3663,8 @@ );%0A%0A - var handleLeftRight = function(pressed, bit) %7B%0A g_leftRight = (g_leftRight & ~bit) %7C (pressed ? bit : 0);%0A if (g_leftRight != g_oldLeftRight) %7B%0A g_oldLeftRight = g_leftRight;%0A g_client.sendCmd('move', %7B%0A dir: (g_leftRight & 1) ...
63fbbbe9aaa87d7effa710dca58dd65aaa2b94af
Test script
scripts/directLink.js
scripts/directLink.js
const directDownload = document.getElementById('directDownload'); const lastReleaseUrl = 'https://api.github.com/repos/nvaccess/nvda/releases/latest'; const lastRelease = async () => { const response =await fetch(lastReleaseUrl); const json = await response.json(); const version = await json.name.substr(9); aw...
JavaScript
0.000001
@@ -350,12 +350,13 @@ te(' -href +title ', v
77e19adab7093bfe8ae841c35a4d5f793a3e5ce8
fix failing test
scripts/dispatcher.js
scripts/dispatcher.js
module.exports = { fire: function (eventName, eventData) { var customEvent = new CustomEvent(eventName, { detail: eventData }); window.dispatchEvent(customEvent); }, on: function (eventName, callback) { window.addEventListener(eventName, function(e) { callback.call(this, e.detail); ...
JavaScript
0.000006
@@ -20,33 +20,32 @@ fire: function - (eventName, even @@ -195,17 +195,16 @@ function - (eventNa
d97b6b337febc40ee806db032400d85d9f7f36d1
Use editor instance.
demo/src/example/index.js
demo/src/example/index.js
import React, { Component } from 'react'; import styled from 'styled-components'; import EmailEditor from '../../../src'; import sample from './sample.json'; const Container = styled.div` display: flex; flex-direction: column; position: relative; height: 100%; `; const Bar = styled.div` flex: 1; backgrou...
JavaScript
0
@@ -9,25 +9,22 @@ eact, %7B -Component +useRef %7D from @@ -694,658 +694,132 @@ %60;%0A%0A -export default class Example extends Component %7B%0A render() %7B%0A return (%0A %3CContainer%3E%0A %3CBar%3E%0A %3Ch1%3EReact E +const Example = (props) =%3E %7B%0A const e mail - Editor - (D...
4518c7a53eec48def29af1d78566929a72bac011
Fix magnitude
2020/js/day22.js
2020/js/day22.js
module.exports = ( input ) => { input = input .replace( /Player [12]:\n/g, '' ) .split( '\n\n' ) .map( l => l.split( '\n' ).map( x => parseInt( x, 10 ) ) ); function score( deck ) { return deck.reduce( ( a, b, i ) => a + b * ( deck.length - i ), 0 ); } function solvePart1() { const d1 = [ ...input[ 0 ...
JavaScript
0.000068
@@ -874,16 +874,25 @@ t hash = + 100000 * score( @@ -901,18 +901,8 @@ ) + - ( 10000 * sco @@ -907,18 +907,16 @@ core( d2 - ) );%0A%0A%09%09%09
34c0e2f4cc885e38716841fbf854c7e92e4e7bba
Add missing key parameter to EXPIREAT call
models/OneTimeToken.js
models/OneTimeToken.js
var crypto = require('crypto') , client = require('../boot/redis') ; /** * OneTimeToken * * OneTimeToken is an expiring (TTL) token class * used for any process that requires an expiring * token such as email verification and password * reset. * * The constructor generates a random string suitable * for ...
JavaScript
0
@@ -2702,16 +2702,45 @@ xpireat( +'onetimetoken:' + token._id, token.ex
90015b90457bda15c887fe67211b4625209c8856
Fix issue where cog-wheel would not spin.
site/content/js/navigation-animation.js
site/content/js/navigation-animation.js
--- yuiCompress: !!bool false --- (function($, window, document) { /** * jQuery event handler that should be triggered when navigating has * completed ('denvelop-navigated' event). This will animate some icons. */ var animate = function(event, prevPage, newPage) { // ...
JavaScript
0
@@ -844,32 +844,105 @@ gear.stop() +%0A .attr(%7B'transform': 'rotate(0 80 96)'%7D)%0A .animate(%7B'trans @@ -997,16 +997,20 @@ + if (gear @@ -1017,24 +1017,28 @@ Rotating) %7B%0A + @@ -1122,24 +1122,28 @@ + gear.attr(%7B' @@ -11...
752352815867a7a503550c93c81ea0aed1c1d8f9
remove "map" file patterns from clean tasks
template-project/gulpfile.js
template-project/gulpfile.js
/** * Configuration */ var config = { host: 'devbox.dev', directory: 'avalanche/template-project', styles: { destination: 'dist', destinationFileName: 'avalanche.css', extractDestination: 'dist-extract', watchDirectories: ['scss/**/*'] }, scripts: { destination: 'dist', destinationFi...
JavaScript
0.000002
@@ -5437,57 +5437,8 @@ css' -,%0A config.styles.destination + '/**/*.css.map' %0A %5D @@ -5606,56 +5606,8 @@ .js' -,%0A config.styles.destination + '/**/*.js.map' %0A %5D @@ -5731,64 +5731,8 @@ css' -,%0A config.styles.extractDestination + '/**/*.css.map' %0A %5D
3c1e5417d7cf6e426577a4bf7053b78fd74db88c
change function to arrow function
mp3tracksorganizer.js
mp3tracksorganizer.js
var nodeID3 = require('node-id3'); var fs = require('fs-extra'); var mv = require('mv'); var path = require('path'); var args = process.argv.slice(2); //get arguments var mPath; //where music is if (typeof args[0] == 'undefined'){ //check if at least an argument is specified console.log("Usage: node mp3tracksorg...
JavaScript
0.000037
@@ -2534,22 +2534,16 @@ %0A - function (err) + =%3E %7B
928ac66cffe487ca0efd32de13da7962625d0b35
Fix comment typo.
bibleQueryParser.js
bibleQueryParser.js
"use strict" const bcvParser = require("bible-passage-reference-parser/js/en_bcv_parser").bcv_parser let bcv = resetParser() // The only exported function. It normalizes the string and returns an object with a recommended course of action. function parse(q) { // The BCV parser expects normalized UTF-8. If the query c...
JavaScript
0
@@ -722,16 +722,17 @@ t proper +t y, so we
6a67cec2a8d2e607811555a612265cb8585e703b
increase min width of advanced search button
templates/advanced_search.js
templates/advanced_search.js
$( document ).ready(function() { var search_input = $('.header__search__input') var search_button = $('.header__search-button') var advanced_search = $('.advanced-search') var advanced_search_input = $('#id_adv_search') var advanced_search_button = $('.adv-filter-submit') var header_bar = $('.he...
JavaScript
0
@@ -437,11 +437,12 @@ ) %3E -768 +1024 ) %7B%0A
85fd4305e47a7b25ffe7ae8cf8797bcca676b0ec
add withInfo decorator as global config
.storybook/config.js
.storybook/config.js
import React from "react"; import { createGlobalStyle } from "styled-components"; import { configure, addDecorator } from "@storybook/react"; const req = require.context( "../", true, /^((?![\\/]node_modules).)*\.story\.js$/ ); function loadStories() { req.keys().forEach(filename => req(filename)); } const G...
JavaScript
0.000001
@@ -134,16 +134,66 @@ /react%22; +%0Aimport %7B withInfo %7D from %22@storybook/addon-info%22; %0A%0Aconst @@ -3365,16 +3365,40 @@ );%0A%7D%0A%0A +addDecorator(withInfo);%0A addDecor
f7c0e61e1addeb91a1901f2180ccaf4eedf9f006
remove unused imports
src/components/services/content/ServiceView.js
src/components/services/content/ServiceView.js
import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; import { autorun } from 'mobx'; import { observer } from 'mobx-react'; import classnames from 'classnames'; import ServiceModel from '../../../models/Service'; import StatusBarTargetUrl from '../../ui/StatusBarTargetUrl'; import We...
JavaScript
0.000001
@@ -589,177 +589,8 @@ ed'; -%0Aimport WebControlsScreen from '../../../features/webControls/containers/WebControlsScreen';%0Aimport %7B CUSTOM_WEBSITE_ID %7D from '../../../features/webControls/constants'; %0A%0Aex
c63ac7e7df9759e754c5b907bf2847b339ceb59e
Update run.js
AI/script/run.js
AI/script/run.js
var ai ={}; var fallback ="/"; function Run(){ ai.input = document.createElement('input'); ai[input].setAttribute("style", "width: 600px; height: 300px;"); document.body.appendChild(ai[input]); }
JavaScript
0.000001
@@ -1,12 +1,39 @@ +alert(%22loaded: No errors%22)%0A var ai =%7B%7D;%0A
73e1ecdcc28c6779d14343ae95278163c4dcb893
Update benchmarks
lib/node_modules/@stdlib/random/base/laplace/benchmark/benchmark.js
lib/node_modules/@stdlib/random/base/laplace/benchmark/benchmark.js
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * 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 a...
JavaScript
0.000001
@@ -1368,16 +1368,17 @@ ( pkg+': +: factory' @@ -1747,28 +1747,451 @@ finished' );%0A%09b.end();%0A%7D);%0A +%0Abench( pkg+'::factory,arguments', function benchmark( b ) %7B%0A%09var scale;%0A%09var rand;%0A%09var mu;%0A%09var z;%0A%09var i;%0A%0A%09mu = 0.0;%0A%09scale = 1.5;%0A%09rand = laplace.factory();%0A%0A%0...
a3d7e4ce54be40f91793b0ab61fe0e2422fe0688
Use touchend as click when drawing lines
client/DrawTogheter.js
client/DrawTogheter.js
function DrawTogheter (container, server) { this.container = container; this.container.style.position = "relative"; this.background = container.appendChild(document.createElement("canvas")); this.canvas = container.appendChild(document.createElement("canvas")); this.effects = container.appendChild(document.create...
JavaScript
0
@@ -3095,16 +3095,45 @@ 'click' + %7C%7C event.type === 'touchend' ) %7B%0A%09%09if
70655120cb2a51756c240c46ac0206aa28c81631
Add ctcp to constants, adds to auto-complete
client/js/constants.js
client/js/constants.js
"use strict"; const commands = [ "/away", "/back", "/ban", "/banlist", "/close", "/connect", "/deop", "/devoice", "/disconnect", "/invite", "/join", "/kick", "/leave", "/me", "/mode", "/msg", "/nick", "/notice", "/op", "/part", "/query", "/quit", "/raw", "/say", "/send", "/server", "/slap", ...
JavaScript
0
@@ -93,16 +93,26 @@ nnect%22,%0A +%09%22/ctcp%22,%0A %09%22/deop%22
588255e3f1e2457d6c5a368c9059bf7a05b1c358
Add doc for new property.
Source/Core/throttleRequestByServer.js
Source/Core/throttleRequestByServer.js
/*global define*/ define([ '../ThirdParty/Uri', '../ThirdParty/when', './defaultValue' ], function( Uri, when, defaultValue) { "use strict"; var activeRequests = {}; var pageUri = new Uri(document.location.href); function getServer(url) { var...
JavaScript
0
@@ -2671,24 +2671,363 @@ %7D);%0A %7D;%0A%0A + /**%0A * Specifies the maximum number of requests that can be simultaneously open to a single server. If this value is higher than%0A * the number of requests per server actually allowed by the web browser, Cesium's ability to prioritize requests will be ad...
6d9522626f708e507791531a11f62582d03d05b0
fix pay password not reset success
src/app/components/forget/forget.controller.js
src/app/components/forget/forget.controller.js
'use strict'; angular.module('csyywx') .controller('ForgetPasswordCtrl', function($scope, $state, $stateParams, $ionicLoading, UserApi, userConfig, utils, settingService) { var resendCountdown = utils.resendCountdown($scope); $scope.pay = +$stateParams.type === 3; // 3支付 $scope.user = { phone: ...
JavaScript
0.000004
@@ -1292,32 +1292,88 @@ a.flag === 1) %7B%0A + userConfig.setSessionId(data.data.sessionId);%0A if ($s @@ -1458,109 +1458,8 @@ e %7B%0A - console.log($scope.user.phone)%0A userConfig.setSessionId(data.data.sessionId);%0A @@ -1601,22 +1601,63 @@ -alert(data.msg +ut...
27cce1446cea7d7691621da3165e176ad30e2f86
Add descriptions to transformation/file/options/index
src/babel/transformation/file/options/index.js
src/babel/transformation/file/options/index.js
import * as parsers from "./parsers"; import config from "./config"; export { config }; /** * [Please add a description.] */ export function validateOption(key, val, pipeline) { var opt = config[key]; var parser = opt && parsers[opt.type]; if (parser && parser.validate) { return parser.validate(key, val,...
JavaScript
0
@@ -94,35 +94,27 @@ %0A * -%5BPlease add a descri +Validate an o ption. -%5D %0A */ @@ -362,35 +362,30 @@ %0A * -%5BPlease add a descri +Normalize all o ption +s . -%5D %0A */
5c00463296d8564298ccf9f3f346247a4929a0a9
fix get message error
server/src/utils/chatHelper.js
server/src/utils/chatHelper.js
'use strict' const Promise = require("bluebird"); let ServerHelper = require('./serverHelper'); module.exports = class ChatHelper { constructor(db) { this.database = db; this.serverHelper = new ServerHelper(db); } getSessions(userId) { return new Promise((resolve,reject)=>{ ...
JavaScript
0.000002
@@ -2117,16 +2117,18 @@ Int(time ++1 )%7D%7D%7D,%0A
b36cf33fd0d5de9e7d155a200f984cc957464a07
Update ismobile.js
javascript/ismobile.js
javascript/ismobile.js
//look for Mobile Device browsers var isMobile = { Android: function() { return navigator.userAgent.match(/Android/i); }, BlackBerry: function() { return navigator.userAgent.match(/BlackBerry/i); }, iOS: function() { retu...
JavaScript
0.000193
@@ -837,16 +837,17 @@ if( +! isMobile
ebe2503dd548c0f26521ee6e96245d41a6bf9e0b
remove sensitive field from export as it is not needed (#704)
server/tasks/AtlasBspbStats.js
server/tasks/AtlasBspbStats.js
const { api } = require('actionhero') const PublicStatTask = require('../classes/PublicStatTask') const { QueryTypes } = require('sequelize') module.exports = class AtlasBspbStats extends PublicStatTask { constructor () { super() this.name = 'AtlasBspbStats' this.description = 'Export atlas statistics fo...
JavaScript
0
@@ -741,34 +741,8 @@ cEN%22 -,%0A s.sensitive %0A @@ -1661,34 +1661,8 @@ cEN%22 -,%0A s.sensitive %0A
756796de8d54d3482daa86f701129eb443f2ed76
fix typo
mods/eventNewMember.js
mods/eventNewMember.js
module.exports = { name: "New Member", event: "guildMemberAdd", task: (member) => { if (member.guild.id == "261878898290196491") { member .send(`Welcome ${member.toString()} to **Live Mapping Project**!` + `\n` + `\nYou are curr...
JavaScript
0.999991
@@ -1152,16 +1152,17 @@ %22Member +s %22), %22Pro
8d74b9e2ec7a0c1cbcc101e26a876fb6a7eac36a
call app chat not chat-sharelatex
services/chat/app/js/server.js
services/chat/app/js/server.js
/* eslint-disable no-unused-vars, */ // TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/sugg...
JavaScript
0.000001
@@ -468,27 +468,16 @@ ze('chat --sharelatex ')%0Aconst
d6f2f871e475e3a2da21279f013fbf4a6f5cdaca
remove extra requirement code
benchmark/performance.js
benchmark/performance.js
var args = require('optimist').argv; var util = require('util'); var path = require('path'); global.LIKELIHOOD_OF_REJECTION = args.e || 0.1; global.triggerIntentionalError = function(){ if(LIKELIHOOD_OF_REJECTION && Math.random() <= LIKELIHOOD_OF_REJECTION) throw new Error("intentional failure"); } function pr...
JavaScript
0.000002
@@ -36,37 +36,8 @@ v;%0A%0A -var util = require('util');%0A%0A var
9628a3ff4d6722dd73abc4afae0427ae32b29331
Modify fetchHotArticles
sources/javascripts/fetchHotArticles.js
sources/javascripts/fetchHotArticles.js
document.addEventListener('DOMContentLoaded', () => { const hotArticlesEl = document.getElementById('hotArticles'); const partialLiTemplate = ` <li class="hotArticles__body__articles__item"> <a href=":url" class="hotArticles__body__articles__item__link" > <div class...
JavaScript
0.000001
@@ -1360,24 +1360,64 @@ url= -http://axross. +$%7Bwindow.location.protocol%7D//$%7Bwindow.location.hostna me +%7D /%60%0A
b32a0ed3e0cfbc9354f0d4b7f3c75221185cd444
Make all button ripples more prominent
shared/common-adapters/button.desktop.js
shared/common-adapters/button.desktop.js
/* @flow */ import React, {Component} from 'react' import {FlatButton} from 'material-ui' import ProgressIndicator from './progress-indicator' import {globalStyles, globalColors} from '../styles/style-guide' import type {Props} from './button' class Button extends Component { props: Props; _styles (type: Props.t...
JavaScript
0.000396
@@ -423,16 +423,169 @@ rs.white +%0A let rippleStyle: %7BrippleColor: string%7D = %7B%7D%0A // Set all button ripples to be more prominent%0A rippleStyle = %7BrippleColor: 'rgba(0, 0, 0, 0.3)'%7D %0A%0A co @@ -2240,16 +2240,29 @@ essColor +, rippleStyle %7D%0A %7D%0A%0A @@ -2378,16 +2378,29 @@ essCol...
5f9423c71b8a56557002b523f0e04bc8d4c5fca8
add shebang
bin/browser-sync.js
bin/browser-sync.js
var startOpts = require("../lib/cli/opts.start.json"); var reloadOpts = require("../lib/cli/opts.reload.json"); var recipeOpts = require("../lib/cli/opts.recipe.json"); var pkg = require("../package.json"); var utils = require("../lib/utils"); /** * Handle cli input */ if (!module.parent) { var yarg...
JavaScript
0.000001
@@ -1,12 +1,32 @@ +#!/usr/bin/env node%0A var startOpt
3b6579b6e934cbe5558d168d95208b0b6a329bcb
Use both keyup and keypress if input unsupported
jquery.formrestrict.js
jquery.formrestrict.js
/* * Every time the form field is changed, sanitize its contents with the given * function to only allow input of a certain form. */ (function ($) { var inputEvents = "input"; if (!("oninput" in document || "oninput" in $("<input>")[0])) { inputEvents += " keyup"; } jQuery.fn.restrict = func...
JavaScript
0.000001
@@ -268,16 +268,25 @@ nts += %22 + keypress keyup%22;
cc97569d730015aeefe9be7fbed2ed5854a229f8
Add _addFilter and _addFilters private functions
scripts/wee-routes.js
scripts/wee-routes.js
import pathToRegExp from 'path-to-regexp'; import { _castString, $isArray, $unserialize } from 'core/types'; import { _doc } from 'core/variables'; import { $exec } from 'core/core'; const REMOVE_SLASHES_REGEXP = /^\/|\/$/g; let _routes = []; let _filters = {}; /** * Add a route to routes array * * @param routes ...
JavaScript
0.000001
@@ -562,24 +562,371 @@ %5Bi%5D);%0A%09%7D%0A%7D%0A%0A +/**%0A * Add a filter to the filter registry%0A *%0A * @param name%0A * @param handler%0A * @private%0A */%0Afunction _addFilter(name, handler) %7B%0A%09_filters%5Bname%5D = handler;%0A%7D%0A%0A/**%0A * Add multiple filters to filter registry%0A * @param filters%0...
02d59ef777ae2fe88bd207a95c2f5cb21288210d
Add missing this.resource.fetch() call
openbudgets/apps/tools/static/tools/comparisons/ui/entities-list.js
openbudgets/apps/tools/static/tools/comparisons/ui/entities-list.js
define([ 'uijet_dir/uijet', 'api', 'comparisons', 'tool_widgets/FilteredList' ], function (uijet, ui, comparisons) { return { type : 'FilteredList', config : { element : '#entities_list', mixins : ['Templated', 'Scrolled', 'Deferred'], ...
JavaScript
0.000053
@@ -107,17 +107,18 @@ (uijet, -u +ap i, compa @@ -442,38 +442,214 @@ : -comparisons.routes_set_promise +function () %7B%0A return uijet.whenAll(%5B%0A comparisons.routes_set_promise,%0A this.resource.fetch(this.options.fetch_options)%0A %5D);%0A...
8e4ca2f2eae07b3043edac42c269c80a32801f1e
save cross section
M-N-Kappa/js/save.js
M-N-Kappa/js/save.js
$("#save").click(function () { localStorage.setItem("mkap", $("#polygon_input").html()) }); $("#load").click(function () { var b = localStorage.getItem("mkap"); $("#polygon_input").html(b) console.log(b); watch() });
JavaScript
0
@@ -33,146 +33,946 @@ -localStorage.setItem(%22mkap%22, $(%22#polygon_input%22).html())%0A%7D);%0A%0A$(%22#load%22).click(function () %7B%0A var b = localStorage.getItem(%22mkap%22 +var save_loc = prompt(%22The cross section will be saved in your browser memory%5Cn%22 +%0A %22Under which name should it ...
62048b323862016705e8b89466024dff0d60c8d6
Include the eslint react defaults so it behaves as expected for React JSX files
.eslintrc.js
.eslintrc.js
module.exports = { 'parser': 'babel-eslint', 'env': { 'browser': true, 'es6': true, 'node': true, }, 'extends': 'eslint:recommended', 'installedESLint': true, 'parserOptions': { 'ecmaFeatures': { 'experimentalObjectRestSpread': true, 'jsx': true, }, 'sourceType': 'module'...
JavaScript
0
@@ -124,16 +124,22 @@ xtends': + %5B%0A 'eslint @@ -153,16 +153,53 @@ ended',%0A + 'plugin:react/recommended',%0A %5D,%0A 'insta
eedaf53de0d6dbc99e64a461bb98168aa8fa8ecd
disable no-continue rule
.eslintrc.js
.eslintrc.js
// To make use of this eslint config file run: // // npm ci // // Then install eslint support in your IDE of choice. module.exports = { env: { browser: true, es6: true, }, extends: [ 'airbnb-base', ], globals: { Atomics: 'readonly', SharedArrayBuffer: 'readonly', }, parserOptions: { ...
JavaScript
0.000021
@@ -596,32 +596,60 @@ ise': %5B'warn'%5D,%0A + 'no-continue': %5B'off'%5D,%0A 'no-lone-blo
b8e5fe5eef70050af96d37fa58158b08f2efdef5
update eslint config
.eslintrc.js
.eslintrc.js
module.exports = { parser: 'babel-eslint', root: true, env: { node: true, browser: true, es6: true, 'jest/globals': true }, extends: [ 'eslint:recommended', ], plugins: [ 'jest' ], parserOptions: { ecmaVersion: 2017, sourceType: 'module', ecmaFeatures: { exper...
JavaScript
0.000001
@@ -131,24 +131,25 @@ obals': true +, %0A %7D,%0A exte @@ -187,34 +187,94 @@ ,%0A -%5D,%0A plugins: %5B%0A 'jest' + 'plugin:react/recommended',%0A %5D,%0A plugins: %5B%0A 'jest',%0A 'import',%0A 'react', %0A %5D @@ -420,22 +420,24 @@ sx: true +, %0A %7D +, %0A %7D,%0A @@ -481,16 +481,1...
b9d12f0e6abe1014e9d9be6083c6e87ee73d4f2d
Fix ESLint config
.eslintrc.js
.eslintrc.js
'use strict'; module.exports = { root: true, parser: '@typescript-eslint/parser', parserOptions: { ecmaVersion: 2018, sourceType: 'module', ecmaFeatures: { legacyDecorators: true, }, }, plugins: ['ember', '@typescript-eslint'], extends: [ 'eslint:recommended', 'plugin:ember/re...
JavaScript
0.000012
@@ -800,47 +800,8 @@ d',%0A - 'prettier/@typescript-eslint',%0A
4eda1050e81c613f3e1a733d0f22e33baec8c8f3
Set jsx curly spacing eslint rule
.eslintrc.js
.eslintrc.js
module.exports = { "parser": "babel-eslint", "env": { "browser": true }, "plugins": [ "react" ], "extends": [ "eslint:recommended", "plugin:react/recommended" ], "rules": { } };
JavaScript
0.000001
@@ -174,19 +174,191 @@ %09%5D,%0A -%09%22rules%22: %7B + %22parserOptions%22: %7B%0A %22ecmaFeatures%22: %7B%0A %22jsx%22: true%0A %7D%0A %7D,%0A%09%22rules%22: %7B%0A %22react/jsx-curly-spacing%22: %5B2, %22always%22, %7B %22spacing%22: %7B%0A %22objectLiterals%22: %22never%22%0A %7D%7D%5D %0...
4d4c877b5068e49c964de3ecf94b167b74fb8a2f
Enable the no-const-assign rule
.eslintrc.js
.eslintrc.js
module.exports = { extends: [ 'onelint' ], env: { es6: true }, parserOptions: { ecmaVersion: 2017 } };
JavaScript
0.000049
@@ -52,16 +52,65 @@ %0A %5D,%0A + rules: %7B%0A 'no-const-assign': 2%0A %7D,%0A env:
cf5d73073aad4ea37098a58c5b1fa01482b037c4
Disable `ember/no-test-support-import` rule for `node-tests` folder
.eslintrc.js
.eslintrc.js
'use strict'; module.exports = { root: true, parser: 'babel-eslint', parserOptions: { ecmaVersion: 2018, sourceType: 'module', ecmaFeatures: { legacyDecorators: true, }, }, plugins: ['ember'], extends: [ 'eslint:recommended', 'plugin:ember/recommended', 'plugin:prettier/re...
JavaScript
0
@@ -1384,24 +1384,78 @@ rules: %7B +%0A 'ember/no-test-support-import': 'off',%0A %7D,%0A %7D,%0A
80e9b32acc12524f96804fc8738dc6d05a4da951
Update eslintrc
.eslintrc.js
.eslintrc.js
module.exports = { 'extends': 'airbnb-base', 'plugins': [ 'import' ], 'env': { 'browser': true, }, 'settings': { 'import/resolver': 'webpack', }, 'rules': { 'no-param-reassign': ['error', { 'props': false }], 'import/prefer-default-export': 'off', 'no-use-before-define': ['error'...
JavaScript
0.000001
@@ -357,16 +357,49 @@ rue %7D%5D,%0A + 'brace-style': 'stroustrup',%0A %7D,%0A%7D;%0A
bcc9099100ee009e513cc321e1a56f7f7160e103
configure airbnb rules
.eslintrc.js
.eslintrc.js
module.exports = { root: true, parser: "babel-eslint", extends: [ "standard", "eslint:recommended", "plugin:react/recommended", "prettier" // Turns off all rules that are unnecessary or might conflict with Prettier. ], plugins: [ "react", "prettier" // Runs Prettier as an ESLint rule a...
JavaScript
0
@@ -135,24 +135,38 @@ commended%22,%0A + %22airbnb%22,%0A %22prettie @@ -245,16 +245,16 @@ ettier.%0A - %5D,%0A p @@ -276,16 +276,29 @@ react%22,%0A + %22babel%22,%0A %22pre @@ -440,16 +440,17 @@ %22error%22 +, // Pret @@ -478,15 +478,896 @@ errors%0A + %22no-unused-expressions%22: %22of...
f0592c4906ee4ff0df34e6285bdf62bafcdbed3b
Add `root: true` to .eslintrc.js
.eslintrc.js
.eslintrc.js
const baseRules = require("eslint-config-lydell"); module.exports = { parser: "babel-eslint", plugins: [ "flowtype", "flowtype-errors", "import", "prettier", "simple-import-sort", ], env: { es6: true, node: true, }, rules: Object.assign({}, baseRules({ flow: true, import: true }...
JavaScript
0.000372
@@ -64,16 +64,30 @@ rts = %7B%0A + root: true,%0A parser
135eff847339056712a184f96d8fe267581ac640
Add browser to eslint globals
.eslintrc.js
.eslintrc.js
module.exports = { "env": { "browser": true, "es6": true }, "extends": "eslint:recommended", "parserOptions": { "sourceType": "module" }, "rules": { "indent": [ "error", 2 ], "linebreak-style": [ "error", ...
JavaScript
0
@@ -12,20 +12,17 @@ rts = %7B%0A - +%09 %22env%22: %7B @@ -22,24 +22,18 @@ env%22: %7B%0A - +%09%09 %22browser @@ -41,24 +41,18 @@ : true,%0A - +%09%09 %22es6%22: t @@ -54,28 +54,47 @@ 6%22: true -%0A %7D,%0A +,%0A%09%09%22webextensions%22: true%0A%09%7D,%0A%09 %22extends @@ -118,20 +...
6229ba9e1192df7b25d8dc7f4f41266bb36832f3
Remove line break style check
.eslintrc.js
.eslintrc.js
module.exports = { 'env': { 'browser' : true, 'commonjs': true, 'es6' : true, 'node' : true }, 'extends': [ 'eslint:recommended' ], 'ignorePatterns': [ 'dist' ], 'parserOptions': { 'sourceType': 'module' }, 'plugins': [],...
JavaScript
0
@@ -774,66 +774,8 @@ %7D%5D,%0A - 'linebreak-style' : %5B'error', 'unix'%5D,%0A
15a787f336679f684b768df6d25a75e17e7b7b6d
add eslint:recommended rules
.eslintrc.js
.eslintrc.js
module.exports = { 'extends': 'google', 'parserOptions': { 'ecmaVersion': 6, }, 'rules': { 'no-multiple-empty-lines': ['error',{'max': 1}], 'arrow-spacing': ['error'] } };
JavaScript
0
@@ -29,16 +29,38 @@ s': +%5B'eslint:recommended', 'google' ,%0A @@ -55,16 +55,17 @@ 'google' +%5D ,%0A 'par @@ -106,16 +106,84 @@ 6,%0A %7D,%0A + 'env':%7B%0A 'es6': true,%0A 'mocha': true,%0A 'node': true%0A %7D,%0A 'rules @@ -240,16 +240,16 @@ ': 1%7D%5D,%0A - 'arr @@ -270,16 +270,43 @@...
e4997bda872e4cc49d58c70988df5c82827a090e
add rule for blank lines
.eslintrc.js
.eslintrc.js
module.exports = { "env": { "browser": true, "es6": true }, "parser": "babel-eslint", "extends": "eslint:recommended", "parserOptions": { "ecmaFeatures": { "experimentalObjectRestSpread": true, "jsx": true }, "sourceType": "module" }, "plugins": [ "react" ], "rules"...
JavaScript
0.000051
@@ -466,24 +466,100 @@ 2%0A %5D,%0A + %22no-multiple-empty-lines%22: %5B2, %7B %22max%22: 2, %22maxEOF%22: 0, %22maxEOF%22: 0 %7D%5D,%0A %22no-mult
5b87f63f3e9c5817bcddf008c0b4005494059368
Use relative URL to access Gerrit base URL
src/main/resources/static/js/plugin-manager.js
src/main/resources/static/js/plugin-manager.js
// Copyright (C) 2015 The Android Open Source Project // // 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 ...
JavaScript
0.000214
@@ -1124,32 +1124,550 @@ Index;%0A %7D%0A%0A + $scope.getBaseUrl = function () %7B%0A // Using a relative URL for allowing to reach Gerrit base URL%0A // which could be a non-root path when behind a reverse proxy%0A // on a path location.%0A // The use of a relative URL is for all...
9daadcf94b7d3e3f3556b90d75a22b7a3d2d310b
Fix detection for ski tracks etc. in geometry field. Fixes #26.
src/modules/unit/components/SingleUnitOnMap.js
src/modules/unit/components/SingleUnitOnMap.js
import React, {Component} from 'react'; import L from 'leaflet'; import {getUnitQuality} from '../helpers'; import UnitMarker from './UnitMarker'; import UnitGeometry from './UnitGeometry'; export class SingleUnitOnMap extends Component{ constructor(props) { super(props); this.handleClick = this.handleClic...
JavaScript
0
@@ -841,16 +841,83 @@ geometry + && unit.geometry.type === 'MultiLineString' ? unit.geometry : null ;%0A%0A r
9031b75bbc859d0cef401719fa995c931c1d032d
rename assertHasOwnProperties.js -> assertHasProperties.js, https://github.com/phetsims/sun/issues/257
js/EnabledComponent.js
js/EnabledComponent.js
// Copyright 2020, University of Colorado Boulder /** * Mixin that adds a settable Property that determines whether the Object is enabled or not. This includes support for * phet-io instrumentation and a variety of options to customize the enabled Property as well as how it is created. * * @author Michael Kauzmann...
JavaScript
0.000001
@@ -422,35 +422,32 @@ import assertHas -Own Properties from @@ -467,35 +467,32 @@ ore/js/assertHas -Own Properties.js';%0A @@ -2647,35 +2647,32 @@ assertHas -Own Properties( this @@ -2899,19 +2899,16 @@ ssertHas -Own Properti
0fe79328e19b17eb5858797dae94363692fca20b
Bump the load timeout for subsuites
browser/subsuite.js
browser/subsuite.js
/** * @license * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be f...
JavaScript
0.000001
@@ -1073,9 +1073,10 @@ t = -5 +10 000; @@ -2961,24 +2961,78 @@ on(error) %7B%0A + WCT.util.debug('SubSuite#loaded', this.url, error);%0A if (this.t
cb1bacfac8fc9fd39bd5577371c42055decb591c
rename cacheBuster -> cacheBust, https://github.com/phetsims/chipper/issues/759
js/axon-test-config.js
js/axon-test-config.js
// Copyright 2019, University of Colorado Boulder /* * IMPORTANT: This file was auto-generated by "grunt generate-config". Please do not modify this directly. Instead * please modify axon/package.json to control dependencies. * * RequireJS configuration file for the axon sim. * Paths are relative to the location ...
JavaScript
0
@@ -1402,18 +1402,16 @@ che bust -er to make @@ -1485,18 +1485,16 @@ acheBust -er =false%0A @@ -1528,18 +1528,16 @@ acheBust -er Args()%0A%7D
1ee3fef99ae982bf1221f827c437c014530c35b7
make verification field hidden
js/components/about.js
js/components/about.js
/** * @jsx React.DOM */ var React = require('react'); var Router = require('react-router'); var Link = Router.Link; var Tag = require('./tag'); var About = React.createClass({ componentWillMount: function(){ document.title = 'About'; }, render: function(){ return ( <div className="release-full article"> ...
JavaScript
0
@@ -3363,12 +3363,14 @@ pe=%22 -text +hidden %22 na