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
ed2e8aa504298f2b9749c598e533df0c8184d464
Fix speed palette initialization
activities/XmasLights.activity/js/palettes/speedpalette.js
activities/XmasLights.activity/js/palettes/speedpalette.js
define(['sugar-web/graphics/palette'], function(palette) { var speedpalette = {}; speedpalette.SpeedPalette = function(invoker, primaryText) { palette.Palette.call(this, invoker, primaryText); this.getPalette().id = "speedpalette"; this.speedEvent = document.createEvent('CustomEvent'); this.speedEvent.init...
JavaScript
0.000021
@@ -893,16 +893,95 @@ + %22:%22;%0A +%09%09%09document.getElementById(%22speedvalue%22).value = 100-((app.blinkTime-500)/10);%0A %09%09%7D);%0A%0A%09 @@ -1132,16 +1132,20 @@ speed = +100- this.val
14c9a161b2362d84905476ffb31be2864eec8a4a
Replace loaders -> rules. Delete useless configs
angular-typescript-webpack-jasmine/webpack/webpack.test.js
angular-typescript-webpack-jasmine/webpack/webpack.test.js
const loaders = require("./loaders"); const webpack = require("webpack"); const path = require("path"); module.exports = { context: path.join(__dirname, ".."), entry: ["./src/test.ts"], output: { filename: "build.js", path: path.resolve("temp"), publicPath: "/" }, resolve: { extensions: [ ...
JavaScript
0
@@ -1,20 +1,18 @@ const -loader +rule s = requ @@ -18,22 +18,20 @@ uire(%22./ -loader +rule s%22);%0Acon @@ -463,187 +463,20 @@ -loaders: loaders%0A /* postLoaders: %5B%0A %7B%0A test: /%5E((?!%5C.spec%5C.ts).)*.ts$/,%0A exclude: /(node_modules)/,%0A loader: %22istanbul-instrumen...
6d88cd72ea545fe8411b4fbc72e3c8bf64cd0742
update to not change keypair every sign
express/public/js/crypto.js
express/public/js/crypto.js
(function() { "use strict"; var crypto_vue = new Vue({ el: "#crypto_vue", data: { name: "crypto.js", message: "", pk: "", sk: "", reqResult: "", signature: "", showreqresult: true, waiting: false }, methods: { sign: function() { try { ...
JavaScript
0
@@ -374,12 +374,59 @@ -let +if (this.keyPair === undefined) %7B%0A this. keyP @@ -452,16 +452,28 @@ Pair();%0A + %7D%0A @@ -493,16 +493,21 @@ (%22pk:%22, +this. keyPair) @@ -543,32 +543,37 @@ il.encodeBase64( +this. keyPair.publicKe @@ -619,16 +619,21 @@ eBase64( +this. key...
cbc054b5c90bc22826d565924c10db43f7dcd022
add comments
app/assets/javascripts/scripts/core/lib/modules/Setting.js
app/assets/javascripts/scripts/core/lib/modules/Setting.js
define([ 'config/anthill', 'modules/Router' ], function defineSetting(AntHill, Router) { /** * Define Setting * @class Setting * @param {*} scope * @param {String} name * @constructor * @extends AntHill */ var Setting = function Setting(scope, name) { /** ...
JavaScript
0
@@ -6756,16 +6756,48 @@ unction%0A + * clear: Function%0A @@ -6907,23 +6907,249 @@ -setting: this,%0A +/**%0A * Define scope%0A * @type %7BSetting%7D%0A */%0A setting: this,%0A%0A /**%0A * Set sto...
550572bee36b3eec82a2c76044c5b2221e5e2455
Add tests for Arrays, Mixed types
koans/AboutDeconstructing.js
koans/AboutDeconstructing.js
describe("About Deconstructing", function () { describe("Object", function () { it("should understand variable declaration usage", function () { var person = { name: 'Tim', age: 26 }; var { name, age } = person; expect(name).toEqual(FILL_ME_IN); expect(age).toEqua...
JavaScript
0
@@ -1810,52 +1810,1829 @@ %0A%0A -// describe('Arrays', function() %7B%0A //%0A // +describe('Arrays', function() %7B%0A%0A it('should understand variable declaration usage', function() %7B%0A var colours = %5B'red', 'blue', 'green', 'purple'%5D;%0A%0A var %5B firstColour, secondColour %5D = colours;%...
88942bb8112dbdbf46c77715dc3bc6fe11bead54
Fix deprecated Buffer
scripts/save_assets_hashes.js
scripts/save_assets_hashes.js
#!/usr/bin/env node var crypto = require('crypto'); var helpers = require('./helpers'); module.exports = function (context) { var path = require('path'); var fs = require('fs'); var cordovaUtil = context.requireCordovaModule('cordova-lib/src/cordova/util'); var platforms = context.requireCordovaModule...
JavaScript
0.000043
@@ -3173,19 +3173,20 @@ ile: - new Buffer +.from (fil
ddc33925b02d9d43a4dee54514504416e0f55450
Make autocomplete errors mostly silent
app/lib/actions/library.js
app/lib/actions/library.js
import { gotError } from 'lib/actions/general'; import * as api from 'lib/api/locations'; import { reorderModels } from 'lib/helpers'; import { searchAutocompleteFor } from 'lib/google'; import { Promise } from 'es6-promise'; export function importLocations( data ) { return function( dispatch, getState ) { const...
JavaScript
0.000262
@@ -2376,54 +2376,177 @@ -.catch( ( err ) =%3E dispatch( gotError( +// Mostly silent errors because sometimes we just have no results%0A .catch( ( err ) =%3E console.error( %60No autocomplete results for %22$%7B searchString %7D%22; error: %60, err ) - ) );%0A
bb1901f9173c5df8ca7444919cfbe18457ebfa3f
Use `charCodeAt` instead of `charAt`
endswith.js
endswith.js
/*! http://mths.be/endswith v0.1.0 by @mathias */ if (!String.prototype.endsWith) { (function() { 'use strict'; // needed to support `apply`/`call` with `undefined`/`null` var toString = {}.toString; String.prototype.endsWith = function(search) { var string = String(this); if ( this == null || (sea...
JavaScript
0
@@ -987,16 +987,20 @@ ing.char +Code At(start @@ -1029,16 +1029,20 @@ ing.char +Code At(index
3fa8bba48e3933c36bf60a43defefcc6fad26571
Make 'make test' factors faster.
test/driver.js
test/driver.js
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- / /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* * A Test Driver for PDF.js */ 'use strict'; var appPath, browser, canvas, currentTaskIdx, manifest, stdout; function queryParams() { var qs = window.location.sea...
JavaScript
0
@@ -5747,24 +5747,89 @@ t.in -nerHTML += str;%0A +sertAdjacentHTML(%22BeforeEnd%22, str);%0A%0A if (str.charAt(str.length - 1) == '%5Cn')%0A ch
7aafd344d8d0c72d6afe48598a410a7536850b2c
Fix the diff viewer JS with modern babel.
reviewboard/static/rb/js/pages/models/diffViewerPageModel.es6.js
reviewboard/static/rb/js/pages/models/diffViewerPageModel.es6.js
/** * The model for the diff viewer page. * * This handles all attribute storage and diff context parsing needed to * display and update the diff viewer. * * Model Attributes: * canDownloadDiff (boolean): * Whether a diff file can be downloaded, given the current revision * state. * * ...
JavaScript
0.000162
@@ -947,21 +947,227 @@ .%0A * -/ %0A + * NOTE: this explicitly doesn't use the shorthand %22member function%22 syntax%0A * because otherwise browsers get confused about whether this is a class%0A * constructor.%0A */%0A constructor: function constru
518aa9c05e0e2b1cdd13de045f30df9817319984
Load all db models
packages/local-sync/src/shared/local-database-connector.js
packages/local-sync/src/shared/local-database-connector.js
const Sequelize = require('sequelize'); const fs = require('fs'); const path = require('path'); const {loadModels, PromiseUtils} = require('isomorphic-core'); const HookTransactionLog = require('./hook-transaction-log'); const HookIncrementVersionOnSave = require('./hook-increment-version-on-save'); require('./databas...
JavaScript
0.000004
@@ -1007,33 +1007,8 @@ , %7B%0A - loadShared: false,%0A
c275c45987ce57cfbc3811ea0b409f3700119c5b
add secondCompanyInList section and associated work
test/acceptance/features/companies/page-objects/CompanyList.js
test/acceptance/features/companies/page-objects/CompanyList.js
const { getSelectorForElementWithText, getButtonWithText, getMetaListItemValueSelector, } = require('../../../helpers/selectors') const getBadgeWithText = (text) => getSelectorForElementWithText( text, { el: '//span', className: 'c-meta-list__item-label', child: '/following-sibling::span', }, )...
JavaScript
0
@@ -56,36 +56,32 @@ hText,%0A get -Meta ListItem ValueSelecto @@ -68,29 +68,35 @@ ListItem -ValueSelector +MetaElementWithText ,%0A%7D = re @@ -315,16 +315,202 @@ ,%0A %7D,%0A) +%0Aconst getFirstListItemMetaElementWithText = (text) =%3E getListItemMetaElementWithText(text)%0Aconst getSecondListItemMetaElementWi...
0e920620e2511917e3fd579b8631d56f23dc5970
Update remote-control-client.js
sample-clients/webpage/resources/custom/remote-control-client.js
sample-clients/webpage/resources/custom/remote-control-client.js
var pubnub = PUBNUB({ publish_key : '---INSERT KEY HERE---', subscribe_key : '---INSERT KEY HERE---' }); pubnub.subscribe({ channel : 'output', message : function (message, envelope, channelOrGroup, time, channel) { jQuery('#display').text(message.slide + '.' + message.part); } }); functio...
JavaScript
0
@@ -101,16 +101,32 @@ HERE---' +,%0A ssl: true, %0A%7D);%0A%0Apu
8f66ca14e6f02cd5cce5db27f5ca95ef0dfa397a
Test missing message parameter
test/encode.js
test/encode.js
var i3p = require('../'); var should = require('should'); describe('i3p', function() { describe('#encode', function() { it('should return `Buffer`', function() { var b = i3p.encode(0, ''); b.should.be.a.Buffer; }); it('should return Buffer with i3-ipc prefix', function() { var b = i3p.e...
JavaScript
0.000002
@@ -1267,16 +1267,161 @@ %7D);%0A + it('should handle missing %60message%60 parameter', function() %7B%0A (function() %7B%0A i3p.encode(0);%0A %7D).should.not.throw();%0A %7D);%0A %7D);%0A%7D)
47f497a51d9da8d9e013588e104793aac6a939d5
fix test
test/services/beekeeper/beekeeper-mocks.js
test/services/beekeeper/beekeeper-mocks.js
const nock = require("nock") const bindAll = require("lodash/fp/bindAll") class BeekeeperMocks { constructor({ isPrivate }) { bindAll(Object.getOwnPropertyNames(BeekeeperMocks.prototype), this) this.isPrivate = isPrivate this.authed = nock("https://beekeeper.octoblu.com") .matchHeader("accept", "a...
JavaScript
0
@@ -1228,16 +1228,32 @@ %0A %7D)%0A + return this%0A %7D%0A%0A t
ad27845ccd4fe34189514db23b645d7ab2213496
Fix double-firing submit events (#12877)
packages/react-dom/src/events/ReactBrowserEventEmitter.js
packages/react-dom/src/events/ReactBrowserEventEmitter.js
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import {registrationNameDependencies} from 'events/EventPluginRegistry'; import { TOP_BLUR, TOP_CANCEL, TOP_CLOSE, T...
JavaScript
0.999996
@@ -329,22 +329,49 @@ ,%0A TOP_ -SCROLL +RESET,%0A TOP_SCROLL,%0A TOP_SUBMIT ,%0A%7D from @@ -5842,16 +5842,75 @@ %7D else + if (dependency !== TOP_SUBMIT && dependency !== TOP_RESET) %7B%0A
9d34c4e09fa322819634714aa84d5c3bd3d1ce33
update expand tests
test/expand.js
test/expand.js
/*! * micromatch <https://github.com/jonschlinkert/micromatch> * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License */ 'use strict'; var should = require('should'); var argv = require('minimist')(process.argv.slice(2)); var ref = require('./support/reference'); var mm = require('..'); i...
JavaScript
0
@@ -1062,19 +1062,21 @@ ql(/%5E(?: -(?: +%5B%5E/%5D( a(?!%5C.)( @@ -1091,25 +1091,8 @@ *?%7Cb -%5C/(?!%5C.)(?=.)%5B%5E/%5D ))$/
27db102e58359bb83932863f4097ab880eae9128
fix photobooth sample, make it pkg-friendly
examples/photobooth/main.js
examples/photobooth/main.js
/** * Copyright 2018 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
JavaScript
0.000001
@@ -713,16 +713,42 @@ 'path'); +%0Aconst os = require('os'); %0A%0A(async @@ -929,16 +929,84 @@ canary'%5D +,%0A localDataDir: path.join(os.homedir(), '.carlophotobooth'), %0A %7D @@ -1125,17 +1125,17 @@ ction.') -. +; %0A app.s
b8173fcb00aa5e8599c2bdca5e888614eebf70eb
Add active() method to graph object model
lib/models/graph-object.js
lib/models/graph-object.js
// Copyright 2015, EMC, Inc. 'use strict'; module.exports = GraphModelFactory; GraphModelFactory.$provide = 'Models.GraphObject'; GraphModelFactory.$inject = [ 'Model' ]; function GraphModelFactory (Model) { return Model.extend({ connection: 'mongo', identity: 'graphobjects', attribu...
JavaScript
0.000002
@@ -167,16 +167,33 @@ 'Model' +,%0A 'Constants' %0A%5D;%0A%0Afun @@ -222,16 +222,27 @@ y (Model +, Constants ) %7B%0A @@ -945,16 +945,177 @@ 'nodes'%0A + %7D,%0A active: function() %7B%0A var obj = this.toObject();%0A return obj._status === Constants.Task...
134a45b3e57ffef9a95a397336600414e768b3a5
Add TESTME comment (related to issue #73)
lib/net/network-overlay.js
lib/net/network-overlay.js
/* See license.txt for terms of usage */ "use strict"; const { Trace, TraceError } = require("../core/trace.js").get(module.id); const { Class } = require("sdk/core/heritage"); const { BaseOverlay } = require("../chrome/baseOverlay.js"); const { Menu } = require("../chrome/menu.js"); const { PanelToolbar } = require(...
JavaScript
0
@@ -6179,24 +6179,65 @@ unction() %7B%0A + // This needs automated test TESTME.%0A let win
393f9b373beb7546f0243218d5bce8189757e2cb
Check for a shebang and remove it if it's there
gulp.jslint.js
gulp.jslint.js
/** * gulp.jslint.js * Copyright (C) 2014 Karim Alibhai. **/ (function () { "use strict"; // load up colorful strings require('colors'); var path = require('path'), gutil = require('gulp-util'), evtStr = require('event-stream'), jslint = require('jslint'), JSLINT = ...
JavaScript
0
@@ -503,16 +503,21 @@ ar myRet +, str ;%0A%0A @@ -710,24 +710,248 @@ g('utf8');%0A%0A + // check for shebang%0A if (js.substr(0, js.indexOf('%5Cn')).match(/%5E#! ?/)) %7B%0A js = js.replace(js.split('%5Cn', 1) + '%5Cn', '');%0A ...
a580b0f46ba85726dc5c0f0c2e413839f5ddc0a3
add test for defaultValue check
react/src/base/inputs/SprkTextInput/SprkTextInput.test.js
react/src/base/inputs/SprkTextInput/SprkTextInput.test.js
import React from 'react'; import Enzyme, { mount } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; import SprkTextInput from './SprkTextInput'; import SprkIcon from '../../../components/icons/SprkIcon'; Enzyme.configure({ adapter: new Adapter() }); it('should render an element with the correct class', ...
JavaScript
0
@@ -2028,32 +2028,366 @@ oBe(true);%0A%7D);%0A%0A +it('should add floating label class to huge text when there is defaultValue', () =%3E %7B%0A const wrapper = mount(%0A %3CSprkTextInput%0A defaultValue=%22default Value%22%0A type=%22hugeTextInput%22%0A /%3E,%0A );%0A expect(%0A wrapper%0A ....
48c3ba4d8c3184049b8a3fcc085d9cc9b021f5cb
Update SetupForm to receive errors from secondary action failures.
assets/js/modules/tagmanager/components/setup/SetupForm.js
assets/js/modules/tagmanager/components/setup/SetupForm.js
/** * Tag Manager Setup Form component. * * Site Kit by Google, 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/LICE...
JavaScript
0
@@ -2587,16 +2587,30 @@ tChanges +, receiveError %7D = use @@ -2629,24 +2629,24 @@ ORE_NAME );%0A - %09const dispa @@ -3414,24 +3414,54 @@ alse );%0A%09%09%09%09 +const saveAnalyticsSettings = await dispat @@ -3488,16 +3488,126 @@ ings();%0A +%09%09%09%09if ( saveAnalyticsSettings.error ) %7B%0A%09%09%09%09%09...
7540582c08d1150974e52d544ebe67aa10afd75c
Update server.js
src/Highscore/server.js
src/Highscore/server.js
// BASE SETUP // ============================================================================= var express = require('express'); // call express var app = express(); // define our app using express var bodyParser = require('body-parser'); // AZURE SQL DATABASE CONNECTION USING SERIATE // =============================...
JavaScript
0.000001
@@ -1232,122 +1232,8 @@ %0A%7D); -%0Aapp.use(function(req, res, next) %7B%0A res.header('Content-Type', 'text/html; charset=utf-8');%0A next();%0A %7D); %0A%0A// @@ -5410,16 +5410,74 @@ q,res)%7B%0A + res.header('Content-Type', 'text/html; charset=utf-8');%0A res.se
9a8f70a3953141ee4d8e77bae74abd8612a4b0ba
create json objects from api returns for 4 frameworks
script.js
script.js
// $(document).ready(function () { console.log('page loaded') var Httpreq = new XMLHttpRequest(); // a new request Httpreq.open("GET",'https://api.github.com/users/technoweenie',false); Httpreq.send(null); console.log(Httpreq.responseText); // });
JavaScript
0
@@ -1,123 +1,468 @@ -// $(document).ready(function () %7B%0A console.log('page loaded')%0A%0A%0A%0Avar Httpreq = new XML +var Httpreq = new XMLHttpRequest();%0A%0AHttpreq.open(%22GET%22,%22https://api.github.com/repos/facebook/react%22,false);%0AHttpreq.send(null);%0Avar reactJSON = JSON.parse(Httpreq.response);%0A%0A...
cb1f7322e1a1deef147a86a5bb1f75e75fb59492
fix another test
test/module.js
test/module.js
/* globals describe, it, before */ var should = require("should"); describe("clu", function(){ var clu = require("../clu"); describe(".createCluster()", function(){ it("should exist", function(){ should.exist(clu.createCluster); }); it("should throw without any parameters", function(){ (function(){ ...
JavaScript
0.000292
@@ -3080,22 +3080,21 @@ var -worker +statu s = clu. work @@ -3089,22 +3089,21 @@ s = clu. -worker +statu s();%0A%09%09%09 @@ -3114,28 +3114,39 @@ uld( -workers).have.length +status.workers.active).be.equal (0);
151000a04d266faf85b4dd3a2fdcdf7cf297d556
remove {$query: true} to signify "the same key" this conflicts when it's on the top level
test/reduce.js
test/reduce.js
var tape = require('tape') var R = require('../reduce') var numbers = [1,2,3,4,5] tape('easy', function (t) { t.equal(numbers.reduce(R({$count: true})), 5) t.equal(numbers.reduce(R({$sum: true})), 15) t.equal(numbers.reduce(R({$max: true})), 5) t.equal(numbers.reduce(R({$min: true})), 1) t.deepEqual(numbers....
JavaScript
0.000046
@@ -673,36 +673,37 @@ bar: %7B$sum: -true +'bar' %7D%0A %7D), null), @@ -737,24 +737,25 @@ ar: 15%7D%0A )%0A +%0A t.end()%0A%7D) @@ -756,16 +756,310 @@ d()%0A%7D)%0A%0A +tape('collect', function (t) %7B%0A t.deepEqual(%0A objs.reduce(R(%7B%0A primes: %7B$collect: 'baz'%7D%0A %7D), null),%0A ...
e749a3e0d71bf9c035c29c5085126970c0d7b16d
add missing semicolons
lib/plugins/body_reader.js
lib/plugins/body_reader.js
// Copyright 2012 Mark Cavage, Inc. All rights reserved. var crypto = require('crypto'); var zlib = require('zlib'); var assert = require('assert-plus'); var errors = require('../errors'); ///--- Globals var BadDigestError = errors.BadDigestError; var InvalidContentError = errors.InvalidContentError; var Request...
JavaScript
0.999999
@@ -499,16 +499,17 @@ ers = %5B%5D +; %0A%0A va @@ -565,16 +565,17 @@ = false +; %0A if @@ -818,16 +818,17 @@ t = true +; %0A %7D%0A%0A @@ -934,24 +934,25 @@ .push(chunk) +; %0A els @@ -1000,16 +1000,17 @@ buffers) +; %0A @@ -1078,16 +1078,17 @@ (%22utf8%22) +; %0A
9ef9db652da9495b9f05c7748161ca53eb850d3f
add logs
lib/plugins/s3HtmlCache.js
lib/plugins/s3HtmlCache.js
var cache_manager = require('cache-manager'); var s3 = new (require('aws-sdk')).S3({params:{Bucket: process.env.S3_BUCKET_NAME}}); module.exports = { init: function() { this.cache = cache_manager.caching({ store: s3_cache }); }, beforePhantomRequest: function(req, res, next) { ...
JavaScript
0.000002
@@ -594,16 +594,91 @@ else %7B%0A + console.log('cache miss')%0A console.log(err)%0A
3079d5667bc3497b606c7166ddd61880d11f22dc
add 'DOH'
script.js
script.js
var textareaNewline = new Array(300).join(' '); function addTemplateForm() { $('#ticket-chat').append('<div class="select"><label>Brand</label><br /><input type="radio" name="brand" value="Alle">Alle&nbsp;&nbsp;&nbsp;<input type="radio" name="brand" value="CBB">CBB&nbsp;&nbsp;&nbsp;<input type="radio" name="brand...
JavaScript
0.999693
@@ -413,32 +413,179 @@ Mobil%3C/div%3E');%0A%0A + $('#ticket-chat').append('%3Cdiv class=%22select%22%3E%3Clabel%3ESkal DOH CC p%C3%A5 sagen?%3C/label%3E%3Cbr /%3E%3Cinput type=%22radio%22 name=%22doh%22 value=%22ja%22%3EJa%3C/div%3E');%0A%0A $('#ticket-c
52fbcda9c372ac213df151c3d28a636194de51d5
テスト追加.
test/serial.js
test/serial.js
var serialport = require("serialport"); var SerialPort = serialport.SerialPort; var assert = require('assert'); var portName = "/dev/tty.usbmodem1411"; var readData = ''; var phase = 0; var sp = new SerialPort(portName, { baudRate: 9600, dataBits: 8, parity: 'none', stopBits: 1, flowControl: false, }); fun...
JavaScript
0
@@ -1382,16 +1382,44 @@ .log();%0A + readData = '';%0A phase++;%0A %7D%0A%0Asp.on @@ -1765,50 +1765,8 @@ t);%0A - readData = '';%0A phase = 1;%0A @@ -2044,50 +2044,8 @@ d);%0A - readData = '';%0A phase = 2;%0A @@ -2303,50 +2303,8 @@ d);%0A - readData = '';%0A ...
b8fd7aa7e1ab67e3915fcd3168b557080aa95e5e
remove quota config field (#1089)
web/src/components/project/component/addProject/FormContent.js
web/src/components/project/component/addProject/FormContent.js
import { Field } from 'formik'; import PropTypes from 'prop-types'; import { Form, Input, Button, Row, Col } from 'antd'; import Quota from '@/components/public/quota'; import MakeField from '@/components/public/makeField'; const { TextArea } = Input; const InputField = MakeField(Input); const TextareaField = MakeFiel...
JavaScript
0
@@ -119,55 +119,8 @@ d';%0A -import Quota from '@/components/public/quota';%0A impo @@ -763,364 +763,8 @@ /%3E%0A - %3CField%0A label=%7Bintl.get('allocation.quotaConfig')%7D%0A name=%22spec.quota%22%0A component=%7BQuota%7D%0A update=%7Bupdate%7D%0A parentSubmitCount=%7Bsubm...
cd8de70c29e63cc6b3a1bca7aef5264d875b4efa
Fix bug with arrows not working if there is no preselected option
select/operations/index.js
select/operations/index.js
var Select = require('./../index'); Select.prototype._select = function(option, index) { this.model.set('value', option[this.key]); this.model.set('selected', option); this.model.set('selectedIndex', index); this._closeOptions(); }; Select.prototype._willSelect = function() { this.model.set('selectOptions...
JavaScript
0.000001
@@ -735,24 +735,29 @@ ectedIndex') + %7C%7C 0 );%0A%0A this.f
6b9c2802a3b29aef1212bc07d12ac358a79e8080
Remove .only
test/stress.js
test/stress.js
require('babel-polyfill'); const moment = require('moment'); const fs = require('fs'); const Conference = artifacts.require("Conference.sol"); const Tempo = require('@digix/tempo'); const { wait, waitUntilBlock } = require('@digix/tempo')(web3); const gasPrice = web3.toWei(2, 'gwei'); const usd = 303; let addresses = [...
JavaScript
0.000001
@@ -3309,13 +3309,8 @@ ribe -.only ('st
13e2c5a61e4cdf66e3230be483b1f0b6864bf8fd
handle case of empty bpmnJs config
webapps/ui/cockpit/client/scripts/camunda-cockpit-bootstrap.js
webapps/ui/cockpit/client/scripts/camunda-cockpit-bootstrap.js
window.__define('camunda-cockpit-bootstrap', [ './scripts/camunda-cockpit-ui' ], function() { 'use strict'; var camundaCockpitUi = window.CamundaCockpitUi; requirejs.config({ baseUrl: '../../../lib' }); var requirePackages = window; camundaCockpitUi.exposePackages(requirePackages); window.define...
JavaScript
0
@@ -2461,24 +2461,25 @@ alModules = +( window.camCo @@ -2494,16 +2494,23 @@ f.bpmnJs + %7C%7C %7B%7D) .additio
95a8a3217ab3f90da2d648ed4958829ffa761507
Add info.
script.js
script.js
angular.module('galleryApp', []) .controller('galleryController', function() { var gallery = this; gallery.language = "en"; gallery.title = { en: "Projects", ro: "Proiecte" }; gallery.description = { en: "a list of projects in which I participate or participated", ro: "o ...
JavaScript
0
@@ -2471,35 +2471,36 @@ %7B%0A id: ' -... +2013 ',%0A img:
850f8ebdb903bcbdc4cfc87cd703bd6fa79972ed
Refactor and comment code
script.js
script.js
$(function() { 'use scrict'; remark.highlighter.engine.registerLanguage('γλώσσα', glossa); var slideshow = remark.create({ sourceUrl: 'presentation.md', // ratio: '16:9', highlightLanguage: 'γλώσσα', highlightLines: true, highlightStyle: 'vs' }); setTimeout(function() { // Make all links to target to...
JavaScript
0
@@ -529,52 +529,55 @@ %0A%09%09%09 -// Clear flowchart markup first +$current_clide = $('.remark-visible');%0A %0A%09%09%09// -Then d +D raw @@ -585,39 +585,51 @@ lowchart -%0A%09%09%09$('.remark-visible + from code%0A%09%09%09$current_clide.find(' .remark- @@ -738,32 +738,8 @@ ();%0A -%09%09%09//%09console.lo...
1b43a633b06dc1bf75dbfd5735bce19a956c1ee2
Update samsung_maple_unload.js
static/script-tests/tests/devices/media/samsung_maple_unload.js
static/script-tests/tests/devices/media/samsung_maple_unload.js
/** * @preserve Copyright (c) 2014 British Broadcasting Corporation * (http://www.bbc.co.uk) and TAL Contributors (1) * * (1) TAL Contributors are listed in the AUTHORS file and at * https://github.com/fmtvp/TAL/AUTHORS - please extend this file, * not this notice. * * @license Licensed under the Apache...
JavaScript
0.000002
@@ -922,88 +922,8 @@ */%0A%0A -jstestdriver.console.warn(%22devices/media/samsung_maple.js is poorly tested!%22);%0A%0A (fun
8bc93f4c03caca5a5392bbf39dbb3bf4923192e0
Update getViewPort Pixel 2 size to use x as a separator (#1581)
lib/support/getViewPort.js
lib/support/getViewPort.js
'use strict'; const get = require('lodash.get'); const { isAndroidConfigured } = require('../android'); const log = require('intel').getLogger('browsertime'); // Most use screen size as of 2018 // https://www.w3schools.com/browsers/browsers_display.asp const DEFAULT_VIEWPORT = '1366x768'; // Keep numbers even to work...
JavaScript
0
@@ -600,17 +600,17 @@ 2': '412 -: +x 732',%0A
bd04a23911230f50206285f46ff896e78598e112
Remove 'Bookmark' from method names in bookmark.js
server/models/bookmarks.js
server/models/bookmarks.js
var querystring = require('querystring'); var mongodb = require('mongodb'); var config = { host: "127.0.0.1", port: mongodb.Connection.DEFAULT_PORT, database: "tasty", serverOptions: {}, databaseOptions: {} }; var mongoServer = new mongodb.Server(config.host, config.port, config.serverOptions); var mongoConnect...
JavaScript
0.000011
@@ -1571,17 +1571,8 @@ tAll -Bookmarks = f @@ -1586,24 +1586,24 @@ (params) %7B%0A + %09%0A%09// Valida @@ -2036,24 +2036,16 @@ s.create -Bookmark = funct @@ -2490,24 +2490,16 @@ orts.get -Bookmark = funct @@ -3063,24 +3063,16 @@ s.update -Bookmark = funct @@ -3622,22 +3622,14 @@ rts. -deleteBookmark +r...
f1e355f52266933fe1713219812f76fe9d389328
Fix CSP header again.
server/staticHttpServer.js
server/staticHttpServer.js
'use strict'; const fs = require('async-file'); const http = require('http'); const path = require('path'); const url = require('url'); const common = require('../common/common'); const logger = require('./logger'); const STATIC_ASSETS_PATH = '../ui/build'; const INITIAL_FILE = 'index.html'; const jcmHostname = 'jcm2...
JavaScript
0
@@ -2053,17 +2053,16 @@ tyle-src -: 'sha256
6a4390f2cd0731a55bc6f65745ca16156fa74a94
Fix ilm-session serializer test dependancies
tests/unit/serializers/ilm-session-test.js
tests/unit/serializers/ilm-session-test.js
import { moduleForModel, test } from 'ember-qunit'; moduleForModel('ilm-session', 'Unit | Serializer | ilm session', { // Specify the other units that are required for this test. needs: ['serializer:ilm-session'] }); // Replace this with your real tests. test('it serializes records', function(assert) { let reco...
JavaScript
0.000025
@@ -185,16 +185,117 @@ needs: %5B +%0A 'model:session',%0A 'model:learner-group',%0A 'model:instructor-group',%0A 'model:user',%0A 'seriali @@ -310,16 +310,19 @@ session' +%0A %5D%0A%7D);%0A%0A/
fe2eba58d6ab0d3cc2787b849427a9e6bbf58dfe
Improve annotations and docs for PublicPromise
lib/util/public_promise.js
lib/util/public_promise.js
/** * @license * Copyright 2016 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 ...
JavaScript
0.00001
@@ -1594,27 +1594,24 @@ ** @ -type %7Bfunction(T=)%7D +param %7BT=%7D value */%0A @@ -1656,36 +1656,55 @@ olve -;%0A%0A%0A/** @type %7Bfunction(*=)%7D + = function(value) %7B%7D;%0A%0A%0A/** @param %7B*=%7D reason */%0A @@ -1740,14 +1740,36 @@ otype.reject + = function(reason) %7B%7D ;%0A
60c35e7aeda84356455b66a958fa3a428ef39c3d
Update comment in wipe-database file
lib/wipe-database/index.js
lib/wipe-database/index.js
'use strict'; // This is pretty much the same code that's in the `reset-database` command. // It should probably be converted to a shared utility. const wipeDb = `DROP SCHEMA public CASCADE; CREATE SCHEMA public; GRANT ALL ON SCHEMA public TO postgres; GRANT ALL ON SCHEMA public TO public; COMMENT ON SCHEMA public IS ...
JavaScript
0
@@ -12,141 +12,8 @@ ';%0A%0A -// This is pretty much the same code that's in the %60reset-database%60 command.%0A// It should probably be converted to a shared utility.%0A cons @@ -52,16 +52,18 @@ ASCADE;%0A + CREATE S @@ -76,16 +76,18 @@ public;%0A + GRANT AL @@ -118,16 +118,18 @@ stgres;%0A + GRANT AL @...
32c5477a9cfaf5735565c13b5d406d6e04aee35b
include body in response from web integrator
news-wires-db/models/newsIntegration.js
news-wires-db/models/newsIntegration.js
const cheerio = require('cheerio'); const FeedParser = require('feedparser'); const LRU = require('lru-cache'); const request = require('request'); const Twitter = require('twitter'); const config = require('news-wires-twitter'); module.exports = (sequelize, DataTypes) => { const NewsIntegration = sequelize.define('...
JavaScript
0
@@ -2944,31 +2944,119 @@ request( -this.config.url +%7B%0A uri: this.config.url,%0A resolveWithFullResponse: true,%0A maxRedirects: 30%0A %7D );%0A%0A
3e596899aca2ae00e4011d69be80b55f10be3243
Add query dict
hmwk2/happy.js
hmwk2/happy.js
//return state codes for drop down function stateOptions() { document.write(`<option value="AK">AK</option> <option value="AL">AL</option> <option value="AR">AR</option> <option value="AZ">AZ</option> <option value="CA">CA</option> <option value="CO">CO</option> <option value="CT">CT</option> <option v...
JavaScript
0.000659
@@ -1,8 +1,204 @@ +var querydict = %7B%7D;%0Alocation.search.substr(1).split(%22&%22).forEach(function(item) %7Bvar s = item.split(%22=%22), k = s%5B0%5D, v = s%5B1%5D && decodeURIComponent(s%5B1%5D); (k in qd) ? qd%5Bk%5D.push(v) : qd%5Bk%5D = %5Bv%5D%7D)%0A %0A//retur
841dbf7890910fbcb71c0524ecae1e55b9d2276d
add EventEmitter.off
lib/ace/lib/event_emitter.js
lib/ace/lib/event_emitter.js
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2010, Ajax.org B.V. * 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 so...
JavaScript
0.000007
@@ -3936,32 +3936,51 @@ n callback;%0A%7D;%0A%0A +EventEmitter.off =%0A EventEmitter.rem
492dea1176884953dba7d8be9824f8e4e4f32c5a
Update examples
tools/gh-pages/readme-to-html/lib/index.js
tools/gh-pages/readme-to-html/lib/index.js
'use strict'; /** * Convert a package README to HTML. * * @module @stdlib/tools/gh-pages/readme-to-html * * @example * var convert = require( '/path/to/readme-to-html' ); * * var opts = { * 'title': 'beep boop' * }; * * var src = '/beep/boop/README.md'; * var out = '/foo/bar/index.html'; * * convert( src, out, opt...
JavaScript
0
@@ -208,16 +208,52 @@ ep boop' +,%0A* 'out': '/foo/bar/index.html' %0A* %7D;%0A*%0A @@ -292,43 +292,8 @@ d';%0A -* var out = '/foo/bar/index.html';%0A *%0A* @@ -309,13 +309,8 @@ src, - out, opt @@ -405,16 +405,322 @@ %7D%0A* %7D%0A +*%0A*%0A* @example%0A* var convert = require( '/path/to/readme-to-html' ...
edb2db4f08c703610a7017fb5d054577d5ae4601
Add request from module test 3
src/components/map-finder/map-finder-page-component.js
src/components/map-finder/map-finder-page-component.js
/** * Created by long on 4/12/17. */ "use strict"; import React, {Component} from "react"; import Popup from '../wrapper/map-finder/map-finder-popup-component'; import TextComponent from '../common/text/text-component'; import SearchFilterComponent from '../wrapper/map-finder/map-finder-search-filter-component'; im...
JavaScript
0
@@ -1194,16 +1194,24 @@ =dis';%0A%0A + url = 'h @@ -1265,268 +1265,8 @@ AW'; -%0A // const options = %7B%0A // url: url,%0A // headers: %7B%0A // 'Authorization': %22Basic ZGV2OmRldjIwMTY=%22,%0A // %22X_API_KEY%22: %22XrVL2DyqsA3hIF3oIfbQU7bAF7EtfRS...
0aa85922351f69fca1ea4bf2ded5f8bec54f6e58
use flastlist
src/containers/discover/free-book-list/FreeBookList.js
src/containers/discover/free-book-list/FreeBookList.js
/* eslint-disable no-undef */ import React, { Component } from 'react'; import { ScrollView, Text, View, ActivityIndicator } from 'react-native'; import { ListItem } from 'react-native-elements'; import * as shortid from 'shortid'; import Helper from '../../../utils/helper'; class FreeBookList extends Component { st...
JavaScript
0
@@ -115,16 +115,46 @@ ndicator +, FlatList, TouchableHighlight %7D from @@ -1339,14 +1339,70 @@ View -%3E%3CText + style=%7B%7B padding: 10 %7D%7D%3E%3CText style=%7B%7B textAlign: 'center' %7D%7D %3E%7Bse @@ -1439,33 +1439,41 @@ -%7B +%3CFlatList %0A @@ -1475,16 +1475,22 @@ ...
21c1bfe46ad0fe5919569ceba29098763e007485
clean code
lib/commands/deploy/index.js
lib/commands/deploy/index.js
'use strict'; var fs = require('fs'); var _ = require('lodash'); var chalk = require('chalk'); var bar = require('progress-bar'); var mcaprc = require('mcaprc'); var log = require('mcap-log'); var mctCore = require('mct-core'); var when = require("node-promise").when; /** * return the default server from the json file...
JavaScript
0.000008
@@ -225,49 +225,8 @@ ');%0A -var when = require(%22node-promise%22).when;%0A /**%0A @@ -1455,14 +1455,8 @@ args -, opts ) %7B%0A @@ -3279,32 +3279,8 @@ ) %7B%0A - var args = this.args;%0A th
7c8fac37fb7cf7ea55d8fffa4908f9f393f23369
throw if branches are the same
lib/commands/merge-branch.js
lib/commands/merge-branch.js
/** @babel */ import gitCmd from "../git-cmd"; import helper from "../helper"; import Notifications from "../Notifications"; import MergeBranchDialog from "../dialogs/MergeBranchDialog"; export default { label: "Merge Branch...", description: "Merge a branch", async command(filePaths, statusBar, git = gitCmd, noti...
JavaScript
0.000003
@@ -633,16 +633,108 @@ ate();%0A%0A +%09%09if (rootBranch.name === mergeBranch.name) %7B%0A%09%09%09throw %22Branches cannot be the same.%22;%0A%09%09%7D%0A%0A %09%09status
c968354ce020b7847804bc6faf464adb6e1df09f
Update production config for new GCE deployment.
lib/config/env/production.js
lib/config/env/production.js
'use strict'; module.exports = { env: 'production', mongo: { uri: process.env.OPENSHIFT_MONGODB_DB_URL + process.env.OPENSHIFT_APP_NAME || 'mongodb://localhost/gdgx-hub-prod' }, mail: { sender: "GDG[x] Hub <hub@gdgx.io>", transport: "Direct", error_recipient: "splaktar@gmail.com" }, ...
JavaScript
0
@@ -165,17 +165,21 @@ b:// -localhost +104.154.43.56 /gdg @@ -372,16 +372,37 @@ _DB_HOST + %7C%7C '130.211.142.195' ,%0A %09por @@ -439,16 +439,26 @@ _DB_PORT + %7C%7C '6379' ,%0A %09pas @@ -503,16 +503,86 @@ PASSWORD -%0A %7D + %7C%7C ''%0A %7D,%0A hostname: process.env.OPENSHIFT_NODEJS_IP %7C%7C %2223.236...
650b71d559a568e398651d9a1c05b0ec34a3de30
Add adsw support
lib/controlPlayerMovement.js
lib/controlPlayerMovement.js
import $ from 'jquery' import moveActor from './moveActor' import returnTileByDirection from './returnTileByDirection' import gameOver from './gameOver' import updatePlayerSpeed from './updatePlayerSpeed' import checkForChainSkip from './checkForChainSkip' let playerSpeed = 200 let playerMovementInterval let autoMove ...
JavaScript
0
@@ -438,24 +438,41 @@ 7, 'west'%5D,%0A + %5B65, 'west'%5D,%0A %5B83, 'sou
33444a36c0107d2cc8f5fa482212d1f069e35830
use the db method getter
lib/dialects/sqlite/query.js
lib/dialects/sqlite/query.js
var Utils = require("../../utils") , AbstractQuery = require('../abstract/query') module.exports = (function() { var Query = function(database, sequelize, callee, options) { this.database = database this.sequelize = sequelize this.callee = callee this.options = Utils._.extend({ loggin...
JavaScript
0.000001
@@ -769,17 +769,20 @@ atabase%5B -d +getD atabaseM @@ -786,16 +786,27 @@ seMethod +.call(self) %5D(self.s @@ -1103,260 +1103,40 @@ -var isInsertCommand = (self.sql.toLowerCase().indexOf('insert') == 0)%0A , isUpdateCommand = (self.sql.toLowerCase().indexOf('update') == 0)%0A , databaseMethod = ...
01bf6d6872f461b913e5eb391aeb3a505f72326a
Enable overwriting of extend method.
source/index.js
source/index.js
/*jscs:disable disallowDanglingUnderscores*/ /*global require, exports, module, define*/ (function (root, factory) { 'use strict'; if (typeof define === 'function' && define.amd) { // AMD: Register as an anonymous module return define([], factory); } if (typeof exports === 'object') {...
JavaScript
0
@@ -3266,16 +3266,17 @@ (Child, +! Child.ex @@ -3284,25 +3284,8 @@ end -!== Cla55.extend ? %7Be
e1f54334c8c429ec32233ad1b3073937e6e26429
Add type identifier
source/index.js
source/index.js
"use strict"; var createWebDAVClient = require("webdav"); function __convertStat(data) { return { isDirectory: function() { return data.type === "directory"; }, isFile: function() { return data.type === "file"; }, mtime: (new Date(data.lastmod)).getT...
JavaScript
0.000021
@@ -8,16 +8,44 @@ rict%22;%0A%0A +var TYPE_KEY = '@@fsType';%0A%0A var crea @@ -857,24 +857,115 @@ return %7B%0A%0A + // fs adapter type (for downstream integrations)%0A %5BTYPE_KEY%5D: %22webdav-fs%22,%0A%0A mkdi
a79d07684dabfe1deaa8d2e8d0b38c3c254f96e1
Handle javascript events when plugin name includes capital letters
lib/handlebars/javascript.js
lib/handlebars/javascript.js
var format = require('string-template'); var handlebars = require('handlebars'); var hljs = require('highlight.js'); var kebab = require('kebab-case'); /** * Formats a JavaScript plugin constructor name to look like this: * ```js * var elem = new Foundation.Plugin(element, options); * ``` * * @par...
JavaScript
0.000005
@@ -2689,24 +2689,82 @@ e, title) %7B%0A + title = title.charAt(0).toLowerCase() + title.slice(1);%0A return for @@ -2798,22 +2798,8 @@ tle. -toLowerCase(). repl
45f911b648e256475db88808a5483cd64cba3c7b
remove log line
lib/handlers/users/update.js
lib/handlers/users/update.js
var middleware = require('../../middleware') , es = require('event-stream') , fs = require('fs') , path = require('path') , gitStream = require('../../stream-git') ; function callbacks (profile, committer, msg) { var config = { }; function getMessage (fn) { fn(msg); } function getAuthor (fn) { ...
JavaScript
0.000036
@@ -3581,61 +3581,8 @@ s);%0A - console.log(%22UPDATE MIDDLE%22, endpoint.middleware);%0A en
47f6d636e93cd4c7b48793d3458ba13bf03f76ca
Fix missing propType for conversation delete
app/javascript/flavours/glitch/features/direct_timeline/components/conversation.js
app/javascript/flavours/glitch/features/direct_timeline/components/conversation.js
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from 'flavours/glitch/components/status_content'; import AttachmentList from 'flavours/glitch/components/at...
JavaScript
0
@@ -1837,24 +1837,63 @@ isRequired,%0A + delete: PropTypes.func.isRequired,%0A intl: Pr
41b3590dd2ffc5a0c81a6c5f7e823febe63bc858
Update ModelObserver to prevent update backlogs
lib/models/model-observer.js
lib/models/model-observer.js
export default class ModelObserver { constructor({fetchData, didUpdate}) { this.fetchData = fetchData || (() => {}); this.didUpdate = didUpdate || (() => {}); this.activeModel = null; this.activeModelData = null; this.activeModelUpdateSubscription = null; } setActiveModel(model) { if (mod...
JavaScript
0
@@ -271,20 +271,75 @@ = null;%0A + this.inProgress = false;%0A this.pending = false;%0A %7D%0A - %0A setAc @@ -895,24 +895,103 @@ iveModel) %7B%0A + if (this.inProgress) %7B%0A this.pending = true;%0A return null;%0A %7D%0A this.las @@ -1129,24 +1129,66 @@ ta(model) %7B%0A + try %7...
8b69135d046ddcb3da2ee25eb9086c984b69fdf1
Revert "Remove `ember update` mention in update-checker"
lib/models/update-checker.js
lib/models/update-checker.js
'use strict'; var Promise = require('../ext/promise'); var versionUtils = require('../utilities/version-utils'); var chalk = require('chalk'); var debug = require('debug')('ember-cli:update-checker'); module.exports = UpdateChecker; function UpdateChecker(ui, settings, localVersion) { this.ui = ...
JavaScript
0
@@ -1158,16 +1158,100 @@ on + '). + To install it, type ' +%0A chalk.green('ember update') + '.' );%0A
c680fe90ad220e6f5bd5d3b68ddf9fc8ba029ea4
Fix linter warnings in spec/helpers.js
spec/helpers.js
spec/helpers.js
const path = require('path') let editor = null module.exports = { getEditor: () => editor, open, expectScopeToBe, wait, waitToOpen, waitToSettle, } function open(fileName){ const projectPath = path.join(__dirname, 'fixtures', fileName) return atom.workspace.open(projectPath).then(openedEditor => P...
JavaScript
0
@@ -150,17 +150,16 @@ ToSettle -, %0A%7D%0A%0Afunc @@ -167,16 +167,17 @@ ion open + (fileNam @@ -178,16 +178,17 @@ ileName) + %7B%0A cons @@ -380,16 +380,17 @@ copeToBe + (...args @@ -390,16 +390,17 @@ ...args) + %7B%0A cons @@ -515,16 +515,17 @@ ion wait + (delay = @@ -529,16 +529,17 @@ y = 100) + ...
6b71c4e30dc0f07fbfcdb6c27f2c9929e7cbc7db
Remove console.log left over from c8ef95f
lib/orion/entities/common.js
lib/orion/entities/common.js
commonSchema = { title: { type: String, label: 'Title' }, body: orion.attribute('summernote', { label: 'Body', optional: true, autoform: { summernoteOptions: { toolbar: [ ['style', ['bold', 'italic', 'underline', 'clear']], ['para', ['ul', 'ol', 'paragraph']],...
JavaScript
0
@@ -1374,35 +1374,8 @@ ();%0A - console.log(item);%0A
e60c0c63ee6ffc629b628961add0c87915ff4e7c
Add pick_one operator
tablesmeerp.js
tablesmeerp.js
var yaml = require('js-yaml'); var Chance = require('chance'); var chance = new Chance(); var Roll = require('roll'); var roll = new Roll(); var marked = require('marked'); marked.setOptions({ smartypants: true }); module.exports = function (args) { args = args || {}; var generatorVars = []; var source = a...
JavaScript
0.000003
@@ -4196,32 +4196,439 @@ fault);%0A %7D%0A + %7D,%0A%0A /**%0A * Return a random parsed expression from the expr's first value.%0A * @example%0A * %7Bpick_one: %5B%7Bexpr%7D, %7Bexpr%7D, %7Bexpr%7D%5D%7D%0A * @param %7Bobject%7D expr The pick_one j-expression%0A * @return %7Bobject%7D ...
4e2c191031523a9376c2b1a7778079a064726c32
Allow package-specific override of expand option
tasks/bower.js
tasks/bower.js
/* * grunt-bower * https://github.com/curist/grunt-bower * * Copyright (c) 2012 curist * Licensed under the MIT license. */ module.exports = function(grunt) { // Please see the grunt documentation for more information regarding task and // helper creation: https://github.com/gruntjs/grunt/blob/master/docs/t...
JavaScript
0
@@ -5626,16 +5626,208 @@ dest;%0A%0A + var expand_option =%0A (package_opt && typeof package_opt.expand != 'undefined')%0A ? package_opt.expand%0A : options.expand;%0A%0A @@ -5908,30 +5908,29 @@ -options.expand +expand_option ...
8867b7e172013383931028f6bc399b02fc5ed572
Fix glob issue related to clean task
tasks/clean.js
tasks/clean.js
var gulp = require("gulp") , clean = require("gulp-clean") , paths = require("./paths") module.exports = function(){ gulp.src(paths.dist.pages, {read : false}).pipe(clean()) }
JavaScript
0.000012
@@ -142,16 +142,25 @@ st.pages + + %22**/*%22 , %7Bread
d27f30d2007962779057b0cd5670c544939d9594
make verbose
tasks/clean.js
tasks/clean.js
var del = require('del'), gulp = require('gulp'); // Clean dist folder gulp.task('clean', function () { return del([ './build/' ]); }); gulp.task('clean:pack', function () { return del([ 'build/assets/css/listr.pack.css', 'build/assets/js/listr.pack.js' ]); });
JavaScript
0.999999
@@ -95,32 +95,61 @@ , function () %7B%0A + console.log('Cleaning up%E2%80%A6') %0A return del(%5B%0A
72f39869d6e43b73a60b14353623fdd6aebccd98
Fix possible undefined add.
src/InfoPane.js
src/InfoPane.js
trackerdash.views.InfoPane = Backbone.View.extend({ el: '.info-pane', initialize: function (settings) { this.branch = settings.branch || 'master'; this.day = settings.day || this.getToday(); this.totalDatasets = settings.totalDatasets || 0; this.totalDistance = settings.totalDis...
JavaScript
0.000003
@@ -1074,16 +1074,21 @@ %5D.length + %7C%7C 0 ;%0A
d01691599e3f00a9f0ffd8fc721c7c43cf700cab
disable stupid force props destructuring rule
linters/cloudability/base.js
linters/cloudability/base.js
module.exports = { parser : 'babel-eslint', extends: [ '../../packages/eslint-config-airbnb', ].map(require.resolve), parserOptions: { ecmaVersion : 2017, ecmaFeatures: { impliedStrict: false, }, }, globals: { // testing-related describe: false, expect : false, it ...
JavaScript
0
@@ -415,24 +415,136 @@ *%0A */%0A%0A + // Not worth the effort of refactoring all %60this.props%60 usage%0A 'react/destructuring-assignment': 'off',%0A%0A // Forci
3567dec1634c6188fc1a93180c5d2f89c682936c
update images proptypes to match new format, supporting srcset ref #6
src/Lightbox.js
src/Lightbox.js
import React from 'react'; import blacklist from 'blacklist'; import Fade from './Fade'; import Icon from './Icon'; import Portal from './Portal'; import defaultStyles from './styles/default'; import Transition from 'react-addons-transition-group'; const BODY = document.getElementsByTagName('body')[0]; var Lightbox ...
JavaScript
0
@@ -570,16 +570,174 @@ es.array +Of(%0A%09%09%09React.PropTypes.shape(%7B%0A%09%09%09%09src: React.PropTypes.string,%0A%09%09%09%09thumbnail: React.PropTypes.string,%0A%09%09%09%09srcset: React.PropTypes.array,%0A%09%09%09%7D)%0A%09%09).isRequired ,%0A%09%09isOp
aca434a4fe30ac772acdaaa24b418c968af30bdf
Improve Pipeline
src/Pipeline.js
src/Pipeline.js
import _ from 'lodash'; import pipe from './pipe'; export default class Pipeline { /** * * @param main {function} * Main pipeline process * @param parent {Pipeline} */ constructor(parent = null) { // TODO - handle unexpected main and parent this.pipes = { // Pipelines? supply: [], ...
JavaScript
0.000003
@@ -551,16 +551,54 @@ %0A %7D;%0A + this.pipe = this.pipe.bind(this);%0A %7D%0A%0A / @@ -6096,16 +6096,93 @@ eturn %7B%0A + ...options, // Options should be used to add new properties not override%0A pipe @@ -6236,24 +6236,8 @@ er,%0A - ...options,%0A %7D%0A
1c0233e18c9f23c2eabea6c504c5bc0594122c4f
Clean up Register
src/Register.js
src/Register.js
/** * General Register implementation. * Specific register for CPU and PPU are implemented in each class. */ /** * */ function Register(type, onBeforeLoad, onAfterStore) { this.data = new type(1); // Uint8Array or Uint16Array this.data[0] = 0; this.onBeforeLoad = onBeforeLoad; this.onAfterStore = onAfter...
JavaScript
0
@@ -2448,41 +2448,8 @@ ase%0A - var width = this.getWidth();%0A @@ -2477,13 +2477,23 @@ Bit( -w +this.getW idth +() - 1
5d6704a9540a1ca7f46d4d4ff62da8e7f104746e
update form action to match route, attempt at fixing the signup error
src/Register.js
src/Register.js
import React, { Component } from 'react'; import './Register.css'; import axios from 'axios'; import validator from 'validator'; class Register extends Component { constructor(props) { super(props); this.state = { errors: {}, user: { email: '', ...
JavaScript
0
@@ -639,559 +639,152 @@ -axios(%7B method: 'post', %0A url: '/signup', %0A data: %7B%0A email: this.state.user.email, %0A username: this.state.user.username, %0A firstname: this.state.user.firstname, %0A last...
4db8128f060fc71319d32f42623c98e6b780cd61
Update Settings.js
src/Settings.js
src/Settings.js
var Settings = (function(E) { E.SettingsTest = function() { return true; }; E.header = { 'header4': {remove: /[]/gm, regex: /[]/gm} }; return E; })(DocTypBeta || {});
JavaScript
0.000001
@@ -22,70 +22,28 @@ ion( -E) %7B%0A E.SettingsTest = function() %7B%0A return true;%0A %7D;%0A E +exports) %7B%0A exports .hea @@ -115,28 +115,20 @@ urn -E;%0A%7D)(DocTypBeta %7C%7C +exports;%0A%7D)( %7B%7D);
e28887a980f92b817ef8a95d769aade175b4d14f
Rename canvas -> context for clarity
src/Truncate.js
src/Truncate.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class Truncate extends Component { static propTypes = { children: PropTypes.node, ellipsis: PropTypes.node, lines: PropTypes.oneOfType([ PropTypes.oneOf([false]), PropTypes.n...
JavaScript
0
@@ -1142,21 +1142,22 @@ this.c -anvas +ontext = canva @@ -3114,21 +3114,22 @@ c -anvas +ontext %0A @@ -3847,21 +3847,22 @@ c -anvas +ontext .font = @@ -3991,21 +3991,22 @@ n this.c -anvas +ontext .measure
b69e75ee7bde20a4482d0515cfde845acfaff356
remove unnecessary bindings and updates
src/Umbraco.Web.UI.Client/src/common/directives/editors/umbAutoResize.directive.js
src/Umbraco.Web.UI.Client/src/common/directives/editors/umbAutoResize.directive.js
angular.module("umbraco.directives") .directive('umbAutoResize', function($timeout) { return { require: ["^?umbTabs", "ngModel"], link: function(scope, element, attr, controllersArr) { var domEl = element[0]; var domElType = domEl.type; var umbTabsControll...
JavaScript
0
@@ -3858,209 +3858,8 @@ );%0A%0A - element.bind('keyup keydown keypress change', update);%0A element.bind('blur', update(true));%0A%0A $timeout(function() %7B%0A update(true);%0A %7D, 200);%0A%0A
52af0643797403ce96b4d220cc0294e217eb7a3a
Remove some logging output.
src/agsquery.js
src/agsquery.js
String.prototype.bool = function() { return (/^true$/i).test(this); }; function MergeRecursiveCopy(obj1, obj2) { var r = {}; for (var i=0; i<arguments.length; i++) { r = MergeRecursive(r, arguments[i]); } return r; } function MergeRecursive(obj1, obj2) { // http://stackoverflow.com/a/383245 for (var...
JavaScript
0.000001
@@ -2196,40 +2196,8 @@ ;%0A%09%0A -%09console.log(this.rawParams);%0A%09%0A %09//
d786d37d1ca559be0d2c013ff3d4fdd77743440d
include credentials in requests and add accept json header
src/api/http.js
src/api/http.js
export async function request(method, href, data) { const request = { body: data && JSON.stringify(data), method, } const response = await fetch(href, request) if (response.status == 200) { return await response.json() } throw Error(`${response.status}: ${response.statusText}`) }
JavaScript
0
@@ -105,16 +105,102 @@ (data),%0A + credentials: 'include',%0A headers: new Headers(%7B Accept: 'application/json' %7D),%0A meth
e898123712072cc884f65a94e58a29a5d454bdbe
add deconstruction of text with link
src/app/home.js
src/app/home.js
import React from 'react' function r([component, attr, ...children]) { return React.createElement( component, attr, ...children.map((c) => Array.isArray(c) ? r(c) : c), ) } const Card = ({link, newPage, icon, title, description, children}) => { const blank = {target: '_blank', rel: 'noopener norefer...
JavaScript
0.000001
@@ -1358,25 +1358,72 @@ Text - = (%7BtextWithLink +WithLink = (%7BdescriptionBefore, descriptionAfter, link, linkText %7D) = @@ -1469,37 +1469,24 @@ er'%7D,%0A -textWithLink. descriptionB @@ -1510,29 +1510,16 @@ , %7Bhref: -textWithLink. link ?? @@ -1547,29 +1547,16 @@ text'%7D, -textWithLink. linkText ...
a206a194ee84324badfef7a77ac23bb55787e383
format for linter
src/chordMap.js
src/chordMap.js
import { mapFlatToSharp } from './flatToSharpMap'; export const fingeringForChord = (chord) => { chord = mapFlatToSharp(chord) const tabs = { "G#7sus":"1324", "G#sus":"1344", "G#9":"3323", "G#m6":"1312", "G#6":"1313", "G#maj7":"1333", "G#m7":"1322", ...
JavaScript
0.000003
@@ -125,16 +125,17 @@ p(chord) +; %0A%0A co @@ -3514,8 +3514,9 @@ xxx%22;%0A%7D; +%0A
d07b9c73edb3b9427be5f39c74e42002b64fae7c
Fix #84 placeholder should be removed before executing commands
src/commands.js
src/commands.js
/** * Rich Text Query/Formatting Commands * * @example * var commands = new wysihtml5.Commands(editor); */ wysihtml5.Commands = Base.extend( /** @scope wysihtml5.Commands.prototype */ { constructor: function(editor) { this.editor = editor; this.composer = editor.composer; this.doc = this....
JavaScript
0
@@ -1393,17 +1393,17 @@ %0A // -i +I f compos @@ -1453,91 +1453,321 @@ -if (this.composer.hasPlaceholderSet()) %7B%0A this.editor.fire('unset_placeholder' +// Do not apply on commands that are behavioral %0A if (this.composer.hasPlaceholderSet() && !wysihtml5.lang.array(%5B'styleWithCSS', 'enableObj...
9ab5c98934fff454b474f943781c95e8c1a922af
Comment out console.log
aspiredb/src/main/webapp/scripts/ASPIREdb/view/VariantCompoundHeterozygoteWindow.js
aspiredb/src/main/webapp/scripts/ASPIREdb/view/VariantCompoundHeterozygoteWindow.js
/* * The aspiredb project * * Copyright (c) 2013 University of British Columbia * * 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...
JavaScript
0.000001
@@ -1491,24 +1491,27 @@ %7D%0A%0A + // console.log
753cc5d4f45113539bf946d49e1354065b2db9f7
Add missing method in spec
lib/assets/test/spec/builder/components/modals/add-widgets/add-widgets-view.spec.js
lib/assets/test/spec/builder/components/modals/add-widgets/add-widgets-view.spec.js
var _ = require('underscore'); var Backbone = require('backbone'); var ConfigModel = require('builder/data/config-model'); var UserModel = require('builder/data/user-model'); var AnalysisDefinitionNodesCollection = require('builder/data/analysis-definition-nodes-collection'); var LayerDefinitionsCollection = require('b...
JavaScript
0.000004
@@ -2759,32 +2759,72 @@ dels);%0A %7D +,%0A goToEditWidget: function () %7B%7D %0A %7D,%0A @@ -7466,16 +7466,56 @@ %7D +,%0A goToEditWidget: function () %7B%7D %0A %7D
044e00517b76e00500e51ab8526aa687b9edfa37
mark ping tests as flaky
packages/node_modules/@ciscospark/internal-plugin-wdm/test/integration/spec/ping.js
packages/node_modules/@ciscospark/internal-plugin-wdm/test/integration/spec/ping.js
/*! * Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file. */ import '@ciscospark/internal-plugin-wdm'; import CiscoSpark from '@ciscospark/spark-core'; import testUsers from '@ciscospark/test-helper-test-users'; describe('plugin-wdm', function () { describe('Device', () => { this.timeout(30000); ...
JavaScript
0.000002
@@ -159,16 +159,69 @@ -core';%0A +import %7Bflaky%7D from '@ciscospark/test-helper-mocha';%0A import t @@ -1869,34 +1869,71 @@ =%3E %7B%0A -it +flaky(it, process.env.SKIP_FLAKY_TESTS) ('responds to pi @@ -2071,18 +2071,55 @@ -it +flaky(it, process.env.SKIP_FLAKY_TESTS) ('respon
54332b6ca8466f7a4843c0bb3f8ae45d05a5940e
Update autocomplete.js
taggit_autocomplete_jqueryui/static/taggit_autocomplete_jqueryui/js/autocomplete.js
taggit_autocomplete_jqueryui/static/taggit_autocomplete_jqueryui/js/autocomplete.js
(function (root, $) { root.Taggit = (function () { var $hidden, $taglist; function updateTags (id) { var new_val = []; $taglist[id].find('li').each(function(i,el){ new_val.push($(el).attr('data-tag')) }); $hidden[id].val(new_val.join(', ')); } function remove (e) { var $target = $(e...
JavaScript
0.000001
@@ -2115,16 +2115,33 @@ em.value +, '#'+e.target.id );%0A%09%09%09%7D%0A
ebf71049146cff3bd42e53ff214a40a29c3fd204
update trello integration
scripts/trello-integration.js
scripts/trello-integration.js
module.exports = function(robot) { 'use strict' var trello = require("node-trello"); var slackmsg = require("./slackMsgs.js"); var trelloapi = require("./trello-api.js"); // auth var key = process.env.HUBOT_TRELLO_KEY; var token = process.env.HUBOT_TRELLO_TOKEN; var t = new trello(key,...
JavaScript
0
@@ -3164,16 +3164,22 @@ ion(data +_board , res)%7B%0A @@ -3321,24 +3321,30 @@ istId = data +_board .actions%5B0%5D. @@ -3380,16 +3380,22 @@ e = data +_board .actions @@ -3431,16 +3431,22 @@ d = data +_board .callbac @@ -3532,13 +3532,8 @@ s = -'';// %7Bcar @@ -3551,16 +3551,32 @@ %0A + var data_list ...
cdd8fcaee2f3a9b325775068f686fa0f98dc6fdf
update trello integration
scripts/trello-integration.js
scripts/trello-integration.js
module.exports = function(robot) { 'use strict' var trello = require("node-trello"); var slackmsg = require("./slackMsgs.js"); var trelloapi = require("./trello-api.js"); // auth var key = process.env.HUBOT_TRELLO_KEY; var token = process.env.HUBOT_TRELLO_TOKEN; var t = new trello(key,...
JavaScript
0
@@ -3504,17 +3504,16 @@ pars = -%60 %7Bcards: @@ -3518,17 +3518,17 @@ : %22all%22%7D -%60 +; %0A
adea8e2324ee0e358e347ffb5f572d879c9b3d05
Add callback after insert image
imagecropper.js
imagecropper.js
/** * @link https://github.com/denar90/imperavi-image-cropper-plugin * @copyright Copyright (c) 2015 denar90 * @license http://opensource.org/licenses/MIT MIT */ if (!RedactorPlugins) var RedactorPlugins = {}; (function($) { RedactorPlugins.imagecropper = function() { return { cropped: false, modalWidth:...
JavaScript
0.000001
@@ -2812,25 +2812,25 @@ ropper.image -c +C ropped()) %7B%0A @@ -3219,25 +3219,25 @@ %09%7D,%0A%09%09%09image -c +C ropped: func @@ -3790,16 +3790,70 @@ false);%0A +%09%09%09%09this.core.setCallback('imageUpload', $img, json);%0A %09%09%09%7D%0A%09%09%7D
869acbb1a2fb58edb13d4f8cf8298e6392e206eb
revert Curriki.js since this file isn't available on 'Join Curriki' page
web/src/main/webapp/skins/curriki8/js/presentation.js
web/src/main/webapp/skins/curriki8/js/presentation.js
Ext.namespace('Layout'); Layout.accordion = function(containerName) { var subPanelsDom = Ext.query('#'+containerName+'>div.x-panel-body>div.x-panel'); var subPanelsCmp = new Array(); for (var x in subPanelsDom) { subPanelsCmp[x] = new Ext.Panel({el: subPanelsDom[x], collapsed: x!=0}); } var acdnPanel = new Ext....
JavaScript
0
@@ -499,1746 +499,4 @@ ;%0A%7D%0A -%0A%0A%0Avar CurrikiJS = %7B%0A%0A%09validEmail: function(emailStr)%7B%0A%09%09// return true if 'emailStr' has valid email address format; from jt_.js, wingo.com%0A%09%09var emailPat=/%5E(.+)@(.+)$/%0A%09%09var specialChars=%22%5C%5C(%5C%5C)%3C%3E@,;:%5C%5C%5C%5C%5C%5C%5C%22%5C%5C.%...
6d8f33d7a9cf192fa8ab589bd5944ac8ba291326
fix no such key error
sensor/DataMigrationSensor.js
sensor/DataMigrationSensor.js
/* Copyright 2016 Firewalla LLC * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * ...
JavaScript
0.000067
@@ -2172,37 +2172,33 @@ -hosts.forEach(async (host) =%3E +for (const host of hosts) %7B%0A @@ -2279,36 +2279,8 @@ or ( -let i in ips) %7B%0A cons @@ -2288,17 +2288,17 @@ ip -= +of ips -%5Bi%5D; +) %7B %0A @@ -2665,35 +2665,33 @@ %7D%0A - %0A + ke @@ -2963...
0133de17349df04239935760dc5f9d6ac6eb258c
Fix jscs
web/war/src/main/webapp/js/data/withSocketHandlers.js
web/war/src/main/webapp/js/data/withSocketHandlers.js
define([], function() { 'use strict'; return withSocketHandlers; function withSocketHandlers() { this.after('initialize', function() { this.on('socketMessage', this.onSocketMessage); }); this.onSocketMessage = function(evt, message) { var self = this, ...
JavaScript
0.001042
@@ -5103,16 +5103,40 @@ tatus && +%0A message @@ -5156,19 +5156,21 @@ === -%22 +' OFFLINE -%22%0A +' &&%0A @@ -5188,18 +5188,16 @@ -&& message @@ -5207,16 +5207,40 @@ ta.id && +%0A message
d33ab1d37ef23a4a1d88115f64b6e7c04ea45d11
Remove accidental second call to stream.end() - copy+paste fail.
test/precompiler-addReviveTemplateBoilerplate.test.js
test/precompiler-addReviveTemplateBoilerplate.test.js
var expect = require('chai').expect, stream = require('stream'), Template = require('yui/template-base').Template, PrecompilerTest = require('./precompiler-test'); PrecompilerTest(function(testUtil) { var precompiler = testUtil.precompiler; describe('addReviveTemplateBoilerplate()', function() { var templates ...
JavaScript
0
@@ -783,106 +783,8 @@ );%0A%0A -%09%09%09stream.end(%7B%0A%09%09%09%09name: 'test-template',%0A%09%09%09%09template: testUtil.getTestTemplate('food')%0A%09%09%09%7D);%0A%0A %09%09%09r
d30d2ab52b12fbd27f618ce1e127dee249e85cb3
Move routes into the global scope
html/script.js
html/script.js
$(function() { // we'll be populating this with our GeoJSON layers var routes = { "Valhalla": null, "OSRM": null, "GMaps": null }; var map = L.map('map').setView([51.500829999995766, -0.12203999999842599], 12); var bg = L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{...
JavaScript
0.000001
@@ -1,23 +1,4 @@ -$(function() %7B%0A // w @@ -45,20 +45,16 @@ layers%0A - var rout @@ -64,20 +64,16 @@ = %7B%0A - - %22Valhall @@ -86,20 +86,16 @@ ll,%0A - - %22OSRM%22: @@ -100,20 +100,16 @@ : null,%0A - %22GMa @@ -118,22 +118,34 @@ %22: null%0A - %7D; +%7D;%0A%0A$(funct...
3894ff7cdb239eebd92cd84cd476048bb51a3222
trim line for travis
test/tester.js
test/tester.js
var fs = require('fs'); var path = require('path'); var child_process = require('child_process'); var BufferList = require('bl'); var ministyle = require('ministyle'); var style = ministyle.ansi(); var getViewWidth = require('../lib/getViewWidth'); var DiffFormatter = require('unfunk-diff').DiffFormatter; var forma...
JavaScript
0
@@ -2301,16 +2301,35 @@ 'utf8')) +.replace(/%5Cn$/, '') ;%0A @@ -3444,32 +3444,57 @@ turn;%0A %7D%0A + console.log('');%0A console. @@ -3551,24 +3551,49 @@ ed, ' '));%0A + console.log('');%0A %7D);%0A%0A
2a9a975c9ddc4259541a6f4e7007f0ae8b9cebc4
Add function to create new card
packages/base/resources/js/main_page.js
packages/base/resources/js/main_page.js
function clean_up_board_page(that){ var bp_div = document.getElementById('board_page'); // remove the child of the previous board while(bp_div.hasChildNodes()){ var node = bp_div.firstChild; bp_div.removeChild(node); } } function generate_board_page(that, board_id){ /* Generate the...
JavaScript
0.000001
@@ -1181,16 +1181,38 @@ id: k,%0A + nodeId:k,%0A @@ -2772,16 +2772,224 @@ %7D); +%0A list_div._('div', %7B%0A innerHTML: 'Add a card...',%0A list_id: k,%0A _class:'add-new-card',%0A connect_onclick: %22var that=this; create_new_card(that);%...
47e7b750524b1d3b6b4857503270746884dfd761
remove annoying output
tasks/jsdoc.js
tasks/jsdoc.js
var childProcess = require('child_process'); module.exports = function (grunt) { grunt.registerTask('jsdoc', function () { var opts = grunt.config.get('jsdoc'), done = this.async(), args = ['-c'], child; // push the conf file args.push(opts.configFile || 'jsdoc-conf.json'); // ensure we ha...
JavaScript
0.99971
@@ -397,70 +397,8 @@ %0A%09%09%0A -%09%09grunt.log.write('Running JSDoc against known sources...');%0A%0A %09%09// @@ -527,67 +527,12 @@ t', -function () %7B%0A%09%09%09grunt.log.write('done%5Cn');%0A%0A%09%09%09done();%0A%09%09%7D +done );%0A%09
51a30c27a6696e981968b629b38a38be4c021dc7
Update assets/js/modules/search-console/util/is-zero-report.js
assets/js/modules/search-console/util/is-zero-report.js
assets/js/modules/search-console/util/is-zero-report.js
/** * Report utilities. * * Site Kit by Google, 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 * * Un...
JavaScript
0
@@ -1003,77 +1003,48 @@ f ( -! report?.length %7C%7C ( typeof report !== 'object' && report !== null ) +Array.isArray( report ) && report.length ) %7B
c1e8ced19cd2bd4026cbaf3cbcb1fd9baa52149c
convert `deleteAll` result to boolean, https://github.com/tc39/proposal-collection-methods/commit/0b91c071f5ed3a83ba5aa6fabf59f2c00f622b7c
packages/core-js/internals/collection-delete-all.js
packages/core-js/internals/collection-delete-all.js
'use strict'; var anObject = require('../internals/an-object'); var aFunction = require('../internals/a-function'); // https://github.com/tc39/collection-methods module.exports = function (/* ...elements */) { var collection = anObject(this); var remover = aFunction(collection['delete']); var allDeleted = true; ...
JavaScript
0.999997
@@ -455,16 +455,18 @@ return +!! allDelet
7020b31dc7053077a77a7bcba6dd0f3be39596c5
Change back version.
src/core/jsm.js
src/core/jsm.js
var JSM = { mainVersion : 0, subVersion : 21 }; JSM.Eps = 0.00000001; JSM.Inf = 9999999999; JSM.RadDeg = 57.29577951308232; JSM.DegRad = 0.017453292519943; JSM.IsZero = function (a) { return Math.abs (a) < JSM.Eps; }; JSM.IsPositive = function (a) { return a > JSM.Eps; }; JSM.IsNegative = function (a) { return...
JavaScript
0
@@ -38,17 +38,17 @@ sion : 2 -1 +0 %0A%7D;%0A%0AJSM