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 |
|---|---|---|---|---|---|---|---|
f0979ab1b9520edbd5b0fd0d1a9ded57a39550e6 | Ajuste para conectar ao backend da amazon | mobile/www/js/services/applicationService.js | mobile/www/js/services/applicationService.js | angular
.module('woole')
.factory('ApplicationService', ['$http', '$q', function($http, $q) {
return {
apiPath: 'http://192.168.0.10:3200/api',
buildMapRoute: function(o, d) {
var data = {o:o, d:d};
return this.buildPostRequest('/map', data, 'An er... | JavaScript | 0 | @@ -145,19 +145,21 @@
p://
-192.168.0.1
+54.200.242.20
0:32
|
228e154347162ae13d87e527004f1caffaed3432 | Delete handlers import from GameOver.js | src/states/GameOver.js | src/states/GameOver.js | import * as handler from '../modules/handlers';
import displayText from '../modules/displayText';
import * as reset from '../helpers/reset';
class GameOver extends Phaser.State {
create() {
this.game.add.tileSprite(0, 0, 800, 600, 'game_over');
this.game.input.onTap.addOnce(this.restartGame, this);
}
restartG... | JavaScript | 0.000001 | @@ -1,52 +1,4 @@
-import * as handler from '../modules/handlers';%0A
impo
|
065e63e88fb2c5bfeae525e35191230b3f66541b | add a message if there are no todos yet | src/root/app/todo/components.js | src/root/app/todo/components.js | 'use strict';
Vue.component('todo-app', {
template: `<div class='todo-app'>
<div class="add-new-container" style="margin-top: 5px;">
<div class="add-new">
<div class="add-new-title">Add Todo</div>
<form>
... | JavaScript | 0.000001 | @@ -1043,32 +1043,146 @@
%3Cul id=%22todos%22%3E%0A
+ %3Cp v-if=%22todos.length === 0%22%3EYou haven't created any TODOs yet. Come on, get started!%3C/p%3E%0A
|
14c881b6f0810424c26fa868132ead439b8a762a | Handle empty thumbnail data | web/src/js/components/Search/WikipediaQuery.js | web/src/js/components/Search/WikipediaQuery.js | import React from 'react'
import PropTypes from 'prop-types'
import { get } from 'lodash/object'
import fetchWikipediaResults from 'js/components/Search/fetchWikipediaResults'
class WikipediaQuery extends React.Component {
constructor(props) {
super(props)
this.state = {
queryInProgress: false,
r... | JavaScript | 0.000061 | @@ -1355,18 +1355,23 @@
ailURL %7D
+ = %7B%7D
,%0A
-
%7D =
@@ -1456,32 +1456,60 @@
cription%7D%3C/div%3E%0A
+ %7BthumbnailURL ? (%0A
%3Cimg%0A
@@ -1515,16 +1515,18 @@
+
+
src=%7Bthu
@@ -1536,16 +1536,18 @@
ailURL%7D%0A
+
@@ -1591,16 +1591,18 @@
+
+
st... |
75fd5af85c4c4bea520215f356f1db894632479e | Validate query document and output Xcode compatible errors | src/parseQueryDocument.js | src/parseQueryDocument.js | import {
parse,
visit,
visitWithTypeInfo,
TypeInfo
} from 'graphql';
export default function parseQueryDocument(queryDocument, schema) {
const typeInfo = new TypeInfo(schema);
const ast = parse(queryDocument);
function source(location) {
return queryDocument.slice(location.start, location.end);
}... | JavaScript | 0.000002 | @@ -11,16 +11,28 @@
parse,%0A
+ validate,%0A
visit,
@@ -163,75 +163,416 @@
nst
-typeInfo = new TypeInfo(schema);%0A%0A const ast = parse(
+ast = parse(queryDocument);%0A%0A const validationErrors = validate(schema, ast);%0A if (validationErrors && validationErrors.length %3E 0) %7B%0A for (const error of ... |
fe1b4f912da67dae2c24db2ed5a7826f4ba2d0a0 | Update api_5_call_2.js | src/api_5_call_2.js | src/api_5_call_2.js | function getResult(callback, json) { var token = ''; console.log('call_id : api_5_call_2'); var input = json.input; var all_required = false; if(input.spotify.artist.id){ all_required = true; } if(all_required){ var call = 'https://api.spotify.com/v1/artists/'+input.spotify.artist.id+'/top-tracks?country=FR'; require('... | JavaScript | 0.000003 | @@ -29,16 +29,20 @@
json) %7B
+%0A
var tok
@@ -49,16 +49,20 @@
en = '';
+%0A
console
@@ -92,16 +92,20 @@
all_2');
+%0A
var inp
@@ -120,16 +120,20 @@
n.input;
+%0A
var all
@@ -150,19 +150,24 @@
= false;
+%0A
if
+
(input.s
@@ -183,17 +183,26 @@
tist.id)
-%7B
+ %7B%0A
all_req
@@ ... |
ded9826dfdfadf6e8250838fd75b1312d54c5e95 | Add test module for globals | tests/main.js | tests/main.js | var assertionsModifier = require('../src/modifiers/assertions');
var testsModifier = require('../src/modifiers/tests');
var assert = require('assert');
var fs = require('fs');
var noOfData = 2;
var oneToTenArray = [];
for(var i = 1; i <= noOfData; i++) {
oneToTenArray.push(i);
}
var testData = oneToTenArray.map(func... | JavaScript | 0 | @@ -109,24 +109,83 @@
rs/tests');%0A
+var globalsModifier = require('../src/modifiers/globals');%0A
var assert =
@@ -243,17 +243,17 @@
fData =
-2
+3
;%0A%0Avar o
@@ -1037,28 +1037,260 @@
ctedData%5Bi%5D);%0A%09%09%7D%0A%09%7D);%0A%7D);%0A%0A
+describe('Globals working', function () %7B%0A%09it('should have a work... |
7830a1d728f63d2d286c5bfe7ddd268fc7ac1dd6 | Add horizontal padding to button | src/scripts/content/intercom.js | src/scripts/content/intercom.js | 'use strict';
togglbutton.render('.conversation__card__content-expanded__controls .inbox__conversation-controls__pane-selector:not(.toggl)',
{ observe: true },
function (elem) {
if (elem.querySelector('.toggl-button')) {
// With the way this UI renders, we must check for existence of the button.
re... | JavaScript | 0 | @@ -583,16 +583,59 @@
%7D;%0A%0A
+ /**%0A * @type %7BHTMLElement%7D%0A */%0A
cons
@@ -744,24 +744,62 @@
ctor%0A %7D);
+%0A link.style.paddingRight = '15px';
%0A%0A // Sto
|
d4077dd4edb31658ab529c440c4efbfd3ddceb02 | Replace multiple characters | tests/test.js | tests/test.js | var iiIii = require('../js/i-i-i-i-i');
exports.empty_returns_empty = function(test) {
test.equal("", iiIii([], ""));
test.done();
};
exports.space_returns_space = function(test) {
test.equal(" ", iiIii([], " "));
test.equal("\n", iiIii([], "\n"));
test.done();
};
exports.non_special_character_r... | JavaScript | 0.999999 | @@ -414,28 +414,288 @@
%225%22));%0A test.done();%0A%7D;%0A
+%0Aexports.replace_multiple_characters = function(test) %7B%0A test.equal(%22___%22, iiIii(%5B%5D, %22abc%22));%0A test.done();%0A%7D;%0A%0Aexports.replace_multiple_characters_with_spaces = function(test) %7B%0A test.equal(%22_ __%5Cn__%22, ii... |
aaaa90ab362a868affe922331e2344bdf5fd6655 | Move setup code to beforeEach | spec/log_tree.spec.js | spec/log_tree.spec.js | // Copyright (c) 2017 The Regents of the University of Michigan.
// All Rights Reserved. Licensed according to the terms of the Revised
// BSD License. See LICENSE.txt for details.
const log_tree = require("../lib/log_tree");
describe("a log_tree object", function() {
var tree;
describe("when created from nothin... | JavaScript | 0 | @@ -869,33 +869,19 @@
-it(%22remembers its name%22,
+beforeEach(
func
@@ -916,24 +916,75 @@
ee(%22name%22);%0A
+ %7D);%0A%0A it(%22remembers its name%22, function() %7B%0A
expect
|
4d5c4ddf8f0c86fb1e00a3d60c35b420a0bca84c | Update mode-verilog.js | src-min-noconflict/mode-verilog.js | src-min-noconflict/mode-verilog.js | -ace.define("ace/mode/verilog_highlight_rules", ["require", "exports", "module", "ace/lib/oop", "ace/mode/text_highlight_rules"], function(e, t, n) {
"use strict";
var r = e("../lib/oop"),
i = e("./text_highlight_rules").TextHighlightRules,
s = function() {
var e = "if|endif|else|or"... | JavaScript | 0 | @@ -462,15 +462,12 @@
%22
-invalid
+list
%22: n
|
0d97e3ec10574b5150f1fe1ebe08f6de6f7f33d7 | Enable transformImageUri for image references (#130) | src/ast-to-react.js | src/ast-to-react.js | 'use strict'
const React = require('react')
const xtend = require('xtend')
function astToReact(node, options, parent = {}, index = 0) {
if (node.type === 'text') {
return node.value
}
const renderer = options.renderers[node.type]
if (typeof renderer !== 'function' && typeof renderer !== 'string') {
t... | JavaScript | 0 | @@ -2952,16 +2952,158 @@
src:
+%0A opts.transformImageUri && ref.href%0A ? opts.transformImageUri(ref.href, node.children, ref.title, node.alt)%0A :
ref.hre
|
aa307c481c85c04954017b8d0d4859c2932f9a7d | Add .css test for postcss loader | generators/app/conf.js | generators/app/conf.js | 'use strict';
const lit = require('fountain-generator').lit;
module.exports = function webpackConf(props) {
const conf = {
module: {
loaders: [
{test: lit`/\.json$/`, loaders: ['json']}
]
}
};
if (props.test === false) {
conf.plugins = [
lit`new webpack.optimize.Occurrence... | JavaScript | 0 | @@ -2247,16 +2247,33 @@
let test
+ = lit%60/%5C%5C.css$/%60
;%0A if
|
ddd0029fb06fa90595eee378c6aa5d08ca395ede | implement scroll to bio | assets/js/lib/models/Members.js | assets/js/lib/models/Members.js | /**
* members.js
* ----------
* Registry of members
*/
/**
* @constructor
* @param {object} data json object containing members data
*/
function Members(data) {
this.data = data;
}
// ********************
// * instance methods *
// ********************
/**
* Renders all member cards to the output element s... | JavaScript | 0 | @@ -1735,16 +1735,219 @@
.show();
+%0A%0A // scroll to clicked bio after reflow is complete%0A setTimeout(function() %7B%0A $('html, body').animate(%7B%0A scrollTop: $(fullMemberCard).offset().top%0A %7D, 500);%0A %7D, 1);
%0A %7D);
|
63c765d36864248abcd4660ba13ac2dca4c079aa | add keyword filter for search refresh | csgo-puppeteer/src/search-refresh.js | csgo-puppeteer/src/search-refresh.js | #!/usr/bin/env node
const puppeteer = require('puppeteer');
const config = require('./config');
const EmailService = require('./email');
// 用到的通知邮件
const emailService1 = new EmailService('sohu');
const emailService2 = new EmailService('163');
const Utils = require('./utils');
const play = require('./sound');
const coo... | JavaScript | 0 | @@ -729,16 +729,90 @@
unt = 0;
+%0A// %E5%A6%82%E6%9E%9C%E7%89%A9%E5%93%81%E5%90%8D%E7%A7%B0%E5%8C%85%E5%90%AB%E4%BB%BB%E4%BD%95%E5%85%B3%E9%94%AE%E5%AD%97,%E5%B0%B1%E4%B8%8D%E4%BC%9A%E8%A2%AB%E6%AF%94%E8%BE%83%E5%92%8C%E6%8F%90%E7%A4%BA.%0Aconst excludeKeywords = %5B'%E8%8F%B1%E8%83%8C%E8%9B%87%E7%BA%B9', '%E9%A3%8E%... |
7a24974e6b34dfcbba6030fa3df0bdfbd6deb992 | Add xdd test | tests/test.js | tests/test.js | describe("initErrorlog", function() {
it("window.onerror should be a function", function(){
heartbeat.initErrorlog();
expect(typeof window.onerror).toBe('function');
});
// it("window.onerror should send a message", function(){
// expect(window.onerror()).toBe('function');
// })... | JavaScript | 0.000003 | @@ -1113,32 +1113,34 @@
unction() %7B%0A
+
it(%22Should retur
@@ -1137,32 +1137,31 @@
ould return
-a number
+promise
%22, function(
@@ -1175,55 +1175,104 @@
-expect(prepareId()).toEqual(jasmine.any(Number)
+var promise = xdr('http://localhost', 'POST', 'test');%0A expect(promise.then).toBeDefine... |
b16c4e725418354db15b23098b3ca1d4c7d76eba | Fix comment | assets/main/components/index.js | assets/main/components/index.js | /*
* Components styles and scripts.
* Will be loaded asynchronous at the bottom of the page.
*/
import '../../polyfills';
import './components.css';
| JavaScript | 0 | @@ -52,34 +52,30 @@
ded
-asynchronous at the bottom
+deferred in the %3Chead%3E
of
|
bca06c7b9dfce29d17eb4b25487abc2bdda7da20 | Test wording change | shared/modules/Template/tests/templates.spec.js | shared/modules/Template/tests/templates.spec.js | /**
* @overview In browser testing of UI
*/
import deepFreeze from 'deep-freeze';
export default function(component) {
console.log('Finished Loading');
describe('After creating one template for a new company:', function() {
const formControls = document.querySelectorAll("input.form-control");
... | JavaScript | 0.000002 | @@ -3748,36 +3748,46 @@
it('should fail
-with
+to submit when
missing company
@@ -4210,36 +4210,46 @@
it('should fail
-with
+to submit when
missing dept',
@@ -4672,36 +4672,46 @@
it('should fail
-with
+to submit when
missing unit',
@@ -5134,36 +5134,46 @@
it('should fail
-with
+to submit when
missing ... |
f967ae2317d33188297d5458e1e09cdcf22d3562 | Add selector for making stages non cumulative | src/selectors/StageSelectors.js | src/selectors/StageSelectors.js | /* @flow */
import { createSelector } from 'reselect';
import aperture from 'ramda/src/aperture';
import compose from 'ramda/src/compose';
import head from 'ramda/src/head';
import last from 'ramda/src/last';
import cond from 'ramda/src/cond';
import of from 'ramda/src/of';
import always from 'ramda/src/always';
import... | JavaScript | 0.000002 | @@ -376,16 +376,50 @@
/curry';
+%0Aimport %7B mapAccum %7D from 'ramda';
%0A%0Aexport
@@ -484,16 +484,317 @@
tages;%0A%0A
+export const nonCumulativeStagesSelector = createSelector(%0A stagesSelector,%0A compose(last, mapAccum(%0A (prevParticipants, stage) =%3E (%5B%0A stage.participants,%0A %7B%0A ... |
c1d3a66f2ae17a58b58b8664d2f9b859df22e323 | Fix lint error | src/serverless.js | src/serverless.js | 'use strict'
const { ApolloServer } = require('apollo-server-lambda')
const config = require('./utils/config')
const connect = require('./utils/connect')
const createApolloServer = require('./utils/createApolloServer')
const { createServerlessContext } = require('./utils/createContext')
if (config.dbUrl == null) {
... | JavaScript | 0.000035 | @@ -825,9 +825,8 @@
e'%0A%09%7D%0A%7D)
-%0A
|
6514e46a6a7a8e1414111907e665de80cb187854 | Update the test case, TravisCI test failing | tests/test.js | tests/test.js | //I hear you like to run node in your node, so I'm testing node using node
var spawn = require('spawn-cmd').spawn,
testProcess = spawn('node ./src/index.js < ./tests/eval.js'),
assert = require('assert');
testProcess.stdout.on('data', function (data) {
assert.equal(data, 'This is only a test');
});
... | JavaScript | 0.000019 | @@ -505,66 +505,55 @@
e, 0
-);%0D%0A%7D);%0D%0Aconsole.log(%22Huzzah! The simple single test passes%22
+, %22The spawned process did not exit cleanly%22);%0D%0A%7D
);
|
2af8387c7f2b4afe4ecfa0ee23cbddac68b04bad | Clean up migrate command | packages/truffle-core/lib/commands/migrate.js | packages/truffle-core/lib/commands/migrate.js | var command = {
command: 'migrate',
description: 'Run migrations to deploy contracts',
builder: {
reset: {
type: "boolean",
default: false
},
"compile-all": {
describe: "recompile all contracts",
type: "boolean",
default: false
},
"dry-run": {
describe: "Run... | JavaScript | 0.000002 | @@ -4499,26 +4499,8 @@
%7D;
-%0A return;
%0A%0A
@@ -4551,25 +4551,16 @@
%7D
-%0A%0A
else if
@@ -4572,16 +4572,17 @@
duction)
+
%7B%0A%0A
|
6423dcd6d50602f71f1216c955f30e450e668ef8 | use syncTo in PhysicalObject | src/serialize/PhysicalObject.js | src/serialize/PhysicalObject.js | 'use strict';
const GameObject = require('./GameObject');
const Serializer = require('./Serializer');
const ThreeVector = require('./ThreeVector');
const Quaternion = require('./Quaternion');
/**
* The PhysicalObject is the base class for physical game objects
*/
class PhysicalObject extends GameObject {
stati... | JavaScript | 0.000001 | @@ -1956,24 +1956,22 @@
gTarget.
-copyFrom
+syncTo
(this);%0A
@@ -1987,16 +1987,14 @@
his.
-copyFrom
+syncTo
(ori
|
8a277ea76914228f2523d0e293b80b0e2a76faa2 | set default page to map.html | api/routes/index.js | api/routes/index.js | 'use strict';
const router = require('express').Router();
const Seller = require('../models/Seller');
const bodyParser = require('body-parser');
const Promise = require('bluebird');
const _ = require('lodash');
router.use(bodyParser.urlencoded({extended: true}));
// router.use(bodyParser.json());
router.get('/seller... | JavaScript | 0.000001 | @@ -204,16 +204,42 @@
odash');
+%0Aconst fs = require('fs');
%0A%0Arouter
@@ -316,24 +316,112 @@
r.json());%0A%0A
+router.get('/', (req, res) =%3E %7B%0A fs.createReadStream('pages/map.html').pipe(res);%0A%7D);%0A%0A
router.get('
|
867b6ac0501be3d6eee788ef95f020fb4b7351d3 | update simulation | src/simulation.js | src/simulation.js | import { request } from "http"
import { createConnection } from "net"
import { v4 } from "uuid"
import { forEach } from "ramda"
import { isDevelopment } from "./share/environment"
import WebSocket from "ws"
import { logger } from "./app/index"
const clients = []
const clientCount = parseInt(process.argv[2], 10) ||... | JavaScript | 0.000001 | @@ -202,16 +202,49 @@
rom %22ws%22
+%0Aimport %7B Chess %7D from %22chess.js%22
%0A%0Aimport
@@ -273,16 +273,67 @@
p/index%22
+%0Aimport %7B REVISION_TYPES %7D from %22./share/constants%22
%0A%0Aconst
@@ -2089,24 +2089,54 @@
ponent %7D) %7B%0A
+ this.chess = new Chess()%0A%0A
if (game
@@ -2192,19 +2192,32... |
ce826900b62f284769873ecec5b1a31e693b971e | Commit new solution for three sum | src/three-sum/index.js | src/three-sum/index.js | /**
* @param {number[]} numbers
* @return {number[][]}
*/
const threeSum = function (numbers) {
let results = [];
if (!numbers || numbers.length < 3) {
return results;
}
let map = new Map();
for (let i = 0; i < numbers.length; ++i) {
let count = map.get(numbers[i]);
map.se... | JavaScript | 0.995979 | @@ -68,16 +68,21 @@
threeSum
+ByMap
= funct
@@ -1178,16 +1178,1068 @@
ts;%0A%7D;%0A%0A
+const threeSum = function (nums) %7B%0A nums.sort((a, b) =%3E a - b);%0A let ret = %5B%5D;%0A let prevNum = NaN;%0A for (let i0 = 0; i0 %3C nums.length; ++i0) %7B%0A if (nums%5Bi0%5D === prevNum) %7B%0A ... |
dd647644a3f6d961760273655561b85d0dd78eb0 | Remove unused options | tests/test.js | tests/test.js | import path from 'path'
import { transformSnapshot, compareFixture, expectUnchanged } from './helpers'
describe('Basic functionality', () => {
it('should work', () => {
compareFixture('basic.css', {
selfSelector: /:--component/,
namespace: '.namespaced',
})
})
it('has a default namespace sel... | JavaScript | 0.000003 | @@ -2270,46 +2270,8 @@
%7D',%0A
- %7B namespace: '.my-component' %7D,%0A
@@ -2449,46 +2449,8 @@
%7D',%0A
- %7B namespace: '.my-component' %7D,%0A
|
bce8b27ae457fdf4ef0c05934ea1f3583dc1ab43 | replace reserved keyword "package", fixes #1143 | src/plugins/appVersion.js | src/plugins/appVersion.js | // install : cordova plugin add https://github.com/whiteoctober/cordova-plugin-app-version.git
// link : https://github.com/whiteoctober/cordova-plugin-app-version
angular.module('ngCordova.plugins.appVersion', [])
.factory('$cordovaAppVersion', ['$q', function ($q) {
return {
getAppName: ... | JavaScript | 0 | @@ -613,19 +613,16 @@
on (pack
-age
) %7B%0A
@@ -641,19 +641,16 @@
lve(pack
-age
);%0A
|
e1369714e026c13f1538b0a4f1ae82fa2826822c | use RN's style merger instead of all this obscure magic | src/basic/Button.js | src/basic/Button.js | /* eslint-disable new-cap */
import React from 'react';
import PropTypes from 'prop-types';
import {
TouchableOpacity,
Platform,
View,
TouchableNativeFeedback,
StyleSheet
} from 'react-native';
import { connectStyle } from 'native-base-shoutem-theme';
import variable from '../theme/variables/platform';
impor... | JavaScript | 0 | @@ -371,58 +371,8 @@
r';%0A
-import computeProps from '../utils/computeProps';%0A
impo
@@ -978,24 +978,25 @@
otProps() %7B%0A
+%0A
const de
@@ -997,435 +997,153 @@
nst
-defaultProps = %7B%0A style: this.getInitialStyle().borderedBtn%0A %7D;%0A%0A if (Array.isArray(this.props.style)) %7B%0A con... |
26cf28897b2256576be437cc20bf77a8ad92e941 | Fix issues in the SettingsForm.stories.js file. | assets/js/modules/analytics/components/settings/SettingsForm.stories.js | assets/js/modules/analytics/components/settings/SettingsForm.stories.js | /**
* Analytics SettingsView component stories.
*
* Site Kit by Google, Copyright 2021 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/licen... | JavaScript | 0 | @@ -3017,32 +3017,347 @@
accountID %7D );%0A
+%09%09%09%09registry.dispatch( MODULES_ANALYTICS_4 ).receiveGetWebDataStreams( %5B%0A%09%09%09%09%09%7B%0A%09%09%09%09%09%09_id: '2001',%0A%09%09%09%09%09%09/* eslint-disable sitekit/acronym-case */%0A%09%09%09%09%09%09measurementId: '1A2BCD345E',%0A%09%09%09%09%09%09defa... |
6b0ad775be1f092359b39cb1f85b278ce942a403 | Update meal displaying | src/main/webapp/meal-page-script.js | src/main/webapp/meal-page-script.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 in writin... | JavaScript | 0 | @@ -1664,32 +1664,16 @@
ngCheck(
-capitalizeFirst(
ingredie
@@ -1675,17 +1675,16 @@
redient)
-)
, %22li%22)%0A
|
be5c6c3f3a4830d6298c8ce190cd95179effa1eb | update maximum-depth-of-binary-tree solution | src/maximum-depth-of-binary-tree.js | src/maximum-depth-of-binary-tree.js | /*
* Given a binary tree, find its maximum depth.
* The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
*
* Tags:
* - Tree
* - Breadth-first Search
*/
var TreeNode = require('../lib/TreeNode');
var BinaryTree = require('../lib/BinaryTree');
/**... | JavaScript | 0.000001 | @@ -444,232 +444,167 @@
%0A%0A
-var maxLevel = 0;%0A function getMaxLevel(node, lv) %7B%0A if (node === null) return;
+// it's leaf node%0A if (root.left === null && root.right === null) %7B
%0A
-getMaxLevel(node.left, lv +
+return
1
-)
;%0A
- if (lv %3E maxLevel) maxLevel = lv;%0A getMaxLevel(nod... |
fbcd656521b1b5ce512e35e70235d9cd696aa858 | Add firstTimeAttender field | both/collections/registrants.js | both/collections/registrants.js | Registrants = new Meteor.Collection("registrants");
Registrants.allow({
// User must be logged in to register
insert: function (userId, doc) {
return !! userId;
}
});
Registrants.attachSchema(new SimpleSchema({
'first_name' : {
type: String,
label: "First Name",
max: 20... | JavaScript | 0 | @@ -903,24 +903,172 @@
%7D%0A %7D,%0A
+ 'firstTimeAttender': %7B%0A type: Boolean,%0A optional: true,%0A defaultValue: false,%0A label: %22First time attender?%22%0A %7D,%0A
'childre
|
a91d37c1f936fc313880812c65d25588d36f379a | fix js error | cdap-ui/app/features/hydrator/services/create/actions/config-actions.js | cdap-ui/app/features/hydrator/services/create/actions/config-actions.js | /*
* Copyright © 2015 Cask Data, 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 t... | JavaScript | 0.000001 | @@ -3933,17 +3933,16 @@
ta : err
-;
%0A
|
0c66015835503e6cff20732da58d3d106aef6f06 | Revert "prevent httpErrorHandler from swallowing non http errors when used with cors" | src/middlewares/httpErrorHandler.js | src/middlewares/httpErrorHandler.js | module.exports = (opts) => {
const defaults = {
logger: console.error
}
const options = Object.assign({}, defaults, opts)
return ({
onError: (handler, next) => {
if (typeof options.logger === 'function') {
options.logger(handler.error)
}
handler.response = handler.response |... | JavaScript | 0 | @@ -187,534 +187,350 @@
if (
-typeof options.logger === 'function') %7B%0A options.logger(handler.error)%0A %7D%0A%0A handler.response = handler.response %7C%7C %7B%7D%0A if (handler.error.constructor.super_ && handler.error.constructor.super_.name === 'HttpError') %7B%0A handler.response ... |
b29a08c6f73fe175a29ed6018dcf1e4c5c02ed58 | Use underscore for standard lib parameter names | backend/javascript-generator.js | backend/javascript-generator.js | /*
* Translation to JavaScript
*
* Requiring this module adds a gen() method to each of the AST classes.
* Nothing is actually exported from this module.
*
* Generally, calling e.gen() where e is an expression node will return the
* JavaScript translation as a string, while calling s.gen() where s is a
* statem... | JavaScript | 0 | @@ -3312,17 +3312,17 @@
rint', '
-s
+_
', 'cons
@@ -3329,17 +3329,17 @@
ole.log(
-s
+_
);');%0A
@@ -3367,17 +3367,17 @@
sqrt', '
-x
+_
', 'retu
@@ -3389,17 +3389,17 @@
th.sqrt(
-x
+_
);');%0A%7D%0A
|
b9f696343c4c578d199f5741dbe0a1e77f925e55 | remove extraneous _e call method | bridge/lib/ref.js | bridge/lib/ref.js | // if node
var util = require('./util.js');
// end node
var Ref = function (bridgeRoot, pathchain, operations) {
function Ref() {
var args = [].slice.apply(arguments);
Ref.call.apply(Ref, args);
}
Ref._fixops = function() {
for (var x in Ref._operations) {
var op = Ref._operations[x];
Ref... | JavaScript | 0.006482 | @@ -342,49 +342,8 @@
ll;%0A
- Ref%5Bop + '_e'%5D = Ref.get(op).call;%0A
|
49eeaff952a91a065970e4f02f8cc20c72e58fff | update for Subsonic beta 6.0 | extension/keysocket-subsonic.js | extension/keysocket-subsonic.js | function onKeyPress(key) {
if (this.jwplayer) {
if (key === NEXT) {
var playPauseButton = document.querySelector('img[onclick="onNext(false)"]');
simulateClick(playPauseButton);
} else if (key === PLAY) {
location.href = "javascript:window.jwplayer().play()";
} else if (key === PREV) {
... | JavaScript | 0 | @@ -77,122 +77,65 @@
-var playPauseButton = document.querySelector('img%5Bonclick=%22onNext(false)%22%5D');%0A simulateClick(playPauseButton)
+location.href = %22javascript:window.onNext(repeatEnabled)%22
;%0A
@@ -265,111 +265,56 @@
-var backButton = document.querySelector('img%5Bonclick=%22onPrevio... |
d2642382cc812c1da7ee3b52823156377e2da767 | Improve selector | extension/keysocket-subsonic.js | extension/keysocket-subsonic.js | function onKeyPress(key) {
if (this.jwplayer) {
if (key === NEXT) {
var playPauseButton = document.querySelector('img[src="icons/default_dark/forward.png"]');
simulateClick(playPauseButton);
} else if (key === PLAY) {
location.href = "javascript:window.jwplayer().play()";
} else if (key === PREV) {
... | JavaScript | 0.000002 | @@ -20,17 +20,18 @@
(key) %7B%0A
-%09
+
if (this
@@ -43,18 +43,20 @@
ayer) %7B%0A
-%09%09
+
if (key
@@ -63,27 +63,30 @@
=== NEXT) %7B%0A
-%09%09%09
+
var playPaus
@@ -127,52 +127,42 @@
img%5B
-src=%22icons/default_dark/forward.png%22%5D');%0A%09%09%09
+onclick=%22onNext(false)%22%5D');%0A
sim... |
cbd7ce3696261aae4cbbe453f91bfcf76ffbfcc4 | use info level as default if none is given | src/notification-service.js | src/notification-service.js | import {Container} from 'aurelia-dependency-injection';
import {inject} from 'aurelia-framework';
import {Origin} from 'aurelia-metadata';
import {CompositionEngine} from 'aurelia-templating';
import {invokeLifecycle} from './lifecycle';
import {NotificationController} from './notification-controller';
import {Notific... | JavaScript | 0 | @@ -1364,17 +1364,29 @@
level:
-l
+notificationL
evel%0A
|
837fbf14c48b707b22c5ad69217fd0f02da31066 | Use utf-8 to unintentionally pop up character visibility issues | extensions/tools/hooks/stats.js | extensions/tools/hooks/stats.js | 'use strict';
var storeStats = function(time, stats) {
var i, value, tmp;
for (i in Memory.statsHistory) {
value = i in stats ? stats[i] : NaN;
// Grab previous value
tmp = Memory.statsHistory[i][Memory.statsHistory[i].length - 1];
// Value is same
if (tmp.type === un... | JavaScript | 0 | @@ -3204,32 +3204,17 @@
msg += %22
-Number of creeps
+%E2%99%98
in glob
@@ -3275,24 +3275,9 @@
+= %22
-Number of creeps
+%E2%99%98
in
@@ -3335,32 +3335,33 @@
tyQueue + %22%5Cn%22;%0A
+%0A
msg += %22Numbe
@@ -3359,28 +3359,9 @@
+= %22
-Number of own spawn:
+%F0%9F%8F%A0
%22 +
@@ -3382,23 +3382,16 @@
mySp... |
2da874ad7405e565c80e37edf3266ac7982b2b32 | Build new release | build/angular-no-captcha.min.js | build/angular-no-captcha.min.js | "use strict";angular.module("noCAPTCHA",[]).provider("googleGrecaptcha",function(){var a;this.setLanguage=function(b){a=b},this.$get=["$q","$window","$document","$rootScope",function(b,c,d,e){var f=b.defer();c.recaptchaOnloadCallback=function(){e.$apply(function(){f.resolve()})};var g=d[0].createElement("script"),h="ht... | JavaScript | 0 | @@ -406,16 +406,48 @@
;return
+g.type=%22application/javascript%22,
a&&(h+=%22
|
0d3882930e339c4b2e0a5083a8f2e01b39604a30 | Fix name typo in background module api | src/modules/background/utils/api.js | src/modules/background/utils/api.js | import { toUrl } from '@utils/url.utils';
import { prefetch as prefetchImage } from '@utils/image.utils';
import * as StorageUtils from '@utils/storage.utils';
import apiConfigs from '../configs/api.config';
import cacheConfigs from '../configs/cache.config';
const { client_id, base, uris } = apiConfigs;
const randomP... | JavaScript | 0 | @@ -1782,26 +1782,26 @@
const exis
-i
t
+i
ngPrefetched
@@ -1938,18 +1938,18 @@
if (exis
-i
t
+i
ngPrefet
|
44b5ddfbe461ae32e994d5bfbffe38021eb8a1f7 | copy config | app-template/apply.js | app-template/apply.js | #!/usr/bin/env node
'use strict';
//
var templates = {
'package-template.json': '/',
'index.html': 'www/',
'ios.html': 'www/',
'and.html': 'www/',
'boot.html': 'www/',
'config-template.xml': '/',
'ionic.config.json': '/',
'.desktop': 'webkitbuilds/',
'setup-win.iss': 'webkitbuilds... | JavaScript | 0.000001 | @@ -3528,24 +3528,25 @@
onfig.js');%0A
+%0A
copyDir(conf
@@ -3561,18 +3561,16 @@
'/config
-/*
', '../s
@@ -3575,17 +3575,22 @@
/src/js/
-*
+config
');%0A// P
|
a8703a4ed2c9f0db0a9b70a1e4e9edd78a00d917 | remove log | ckeditor/plugins/freme/plugin.js | ckeditor/plugins/freme/plugin.js | /**
* Created by bjdmeest on 4/12/2015.
*/
CKEDITOR.plugins.add('freme', {
init: function (editor) {
var $ = window.$ || window.jQuery;
console.log(this.path);
if (!$) {
editor.showNotification('jQuery not found!', 'warning');
}
editor.addContentsCss(this.path... | JavaScript | 0.000001 | @@ -148,41 +148,8 @@
y;%0A%0A
- console.log(this.path);%0A%0A
|
8e816c1693e3a05a24a9b624fbae2740d0b28179 | fix logged-in check | my-unhosted-website/www/unhosted/unhosted.js | my-unhosted-website/www/unhosted/unhosted.js | // app state shared with login.html:
// =================================
// localStorage::"unhosted".userAddress
// localStorage::"unhosted".davAuth
// localStorage::"unhosted".cryptoPwd
// localStorage::"unhosted".davBaseUrl
/////////
// DAV //
/////////
var DAV = function() {
var dav = {}
keyToUrl = function... | JavaScript | 0.000001 | @@ -1,233 +1,4 @@
-// app state shared with login.html:%0A// =================================%0A// localStorage::%22unhosted%22.userAddress%0A// localStorage::%22unhosted%22.davAuth%0A// localStorage::%22unhosted%22.cryptoPwd%0A// localStorage::%22unhosted%22.davBaseUrl%0A%0A%0A
//
@@ -1465,20 +1465,21 @@
et().dav... |
b82816c774ebdff076375fb5705b9f720ac9de67 | reformat session configuration in preparation for the next commit | src/node/hooks/express/webaccess.js | src/node/hooks/express/webaccess.js | var express = require('express');
var log4js = require('log4js');
var httpLogger = log4js.getLogger("http");
var settings = require('../../utils/Settings');
var hooks = require('ep_etherpad-lite/static/js/pluginfw/hooks');
var ueberStore = require('../../db/SessionStore');
var stats = require('ep_etherpad-lite/node/sta... | JavaScript | 0 | @@ -4896,16 +4896,21 @@
Module(%7B
+%0A
secret:
@@ -4924,16 +4924,20 @@
.secret,
+%0A
store:
@@ -4958,16 +4958,20 @@
onStore,
+%0A
resave:
@@ -4976,16 +4976,20 @@
e: true,
+%0A
saveUni
@@ -5005,16 +5005,20 @@
d: true,
+%0A
name: '
@@ -5030,16 +5030,20 @@
ss_sid',
+%0A
proxy:
@@ -5... |
3f7936bd0100a6324bd12b97e6a17b7843666fa3 | fix transaction#get | src/node_modules/lib/transaction.js | src/node_modules/lib/transaction.js | const NotEnoughDataError = require('lib/not-enough-data-error')
const temporary = Buffer.alloc(8)
// Called in object stream.
class Transaction {
constructor(stream) {
this.stream = stream
this.index = 0
}
commit() {
this.stream.consume(this.index)
}
get(i) {
return this.stream.get(i)
}
... | JavaScript | 0.000007 | @@ -275,16 +275,20 @@
%0A get(i
+ = 0
) %7B%0A
@@ -310,16 +310,29 @@
eam.get(
+this.index +
i)%0A %7D%0A%0A
|
f2c3825d86234dd31c1bdcb013088d79a92b1932 | add an data attribute id to the debug window | build/js/jquery.debug-window.js | build/js/jquery.debug-window.js | /*global jQuery*/
/*jslint nomen: true, plusplus: true, browser: true, devel: true */
"use strict";
var _console = console;
var i;
var console = {
log: function() {
var args = Array.prototype.slice.call(arguments);
for (i = 0; i < args.length; i += 1) {
messageConsole(args[i], 'log');
... | JavaScript | 0 | @@ -1404,17 +1404,16 @@
tringify
-
(object)
@@ -5296,25 +5296,47 @@
(options) %7B%0A
+ var index = 0;
%0A
-
this
@@ -5347,32 +5347,78 @@
h(function () %7B%0A
+ $(this).attr('data-debug-1', '');%0A
new
@@ -5453,25 +5453,24 @@
%7D);%0A
-%0A
retu
@@ -5478,17... |
3d4db5a49bf4478f4f8ec185f3b360adf7327fbe | Replace `Number.isNaN` call with `isNaN` call. | source/Grid/utils/CellSizeAndPositionManager.js | source/Grid/utils/CellSizeAndPositionManager.js | /** @flow */
/**
* Just-in-time calculates and caches size and position information for a collection of cells.
*/
export default class CellSizeAndPositionManager {
constructor ({
cellCount,
cellSizeGetter,
estimatedCellSize
}: CellSizeAndPositionManagerConstructorParams) {
this._cellSizeGetter = ... | JavaScript | 0.000225 | @@ -1246,15 +1246,8 @@
if (
-Number.
isNa
|
e78a04dc0d215072a6456f85d4d41de73b978a59 | rename table cell component | new-lamassu-admin/src/pages/Assets/Assets.js | new-lamassu-admin/src/pages/Assets/Assets.js | import Grid from '@material-ui/core/Grid'
import Table from '@material-ui/core/Table'
import TableBody from '@material-ui/core/TableBody'
import TableCell from '@material-ui/core/TableCell'
import TableContainer from '@material-ui/core/TableContainer'
import TableHead from '@material-ui/core/TableHead'
import TableRow ... | JavaScript | 0.000882 | @@ -676,22 +676,16 @@
%0A%0Aconst
-Styled
Cell = w
@@ -2210,38 +2210,32 @@
%3C
-Styled
Cell align=%22left
@@ -2229,32 +2229,32 @@
l align=%22left%22%3E%0A
+
@@ -2300,38 +2300,32 @@
%3C/
-Styled
Cell%3E%0A
@@ -2329,38 +2329,32 @@
%3C
-Style... |
6af69da3fced4e8ac389c492338c6da8ad9968f2 | fix (test): fix mocks for modules and commonJS build test | __mocks__/react-easy-state.js | __mocks__/react-easy-state.js | // use this to test the raw src folder
export * from '../src'
// use this to test the es6 modules build
// export * from '../dist/es6'
// use to test the commonJS build
// export * from '../dist/es5'
| JavaScript | 0.000001 | @@ -125,18 +125,31 @@
./dist/e
-s6
+asyState.module
'%0A%0A// us
@@ -208,8 +208,23 @@
st/e
-s5
+asyState.commonJS
'%0A
|
f8dfd046008ab298622cff2e5bda6306ebed84f0 | Add test for optional prefix | __tests__/applyAtRule.test.js | __tests__/applyAtRule.test.js | import postcss from 'postcss'
import plugin from '../src/lib/substituteClassApplyAtRules'
import generateUtilities from '../src/util/generateUtilities'
import defaultConfig from '../defaultConfig.stub.js'
const defaultUtilities = generateUtilities(defaultConfig, [])
function run(input, config = defaultConfig, utiliti... | JavaScript | 0.000001 | @@ -4116,28 +4116,483 @@
s().length).toBe(0)%0A %7D)%0A%7D)%0A
+%0Atest('you can apply utility classes without using the given prefix', () =%3E %7B%0A const input = %60%0A .foo %7B @apply .mt-4; %7D%0A %60%0A%0A const expected = %60%0A .prefix-foo %7B margin-top: 1rem; %7D%0A %60%0A%0A const config = %7B%0... |
9b7ff2f357b7d7a3da2099a7ea3028d62c8c9fde | remove the duplicated 'it' word in the tests. | __tests__/conversions.test.js | __tests__/conversions.test.js | import { toSeatData } from '../src/conversions';
describe('when using toSeatData conversion function', () => {
let seatState, converted;
beforeEach(() => {
seatState = { x: 10, y: 40, id: 1, label: 'G-13' };
converted = toSeatData(seatState);
});
it('it removes the position of the seat in the output'... | JavaScript | 0.000742 | @@ -255,35 +255,32 @@
);%0A %7D);%0A%0A it('
-it
removes the posi
@@ -415,19 +415,16 @@
%0A%0A it('
-it
removes
@@ -513,35 +513,32 @@
);%0A %7D);%0A%0A it('
-it
keeps the label
@@ -631,19 +631,16 @@
%0A%0A it('
-it
keeps th
@@ -861,11 +861,8 @@
it('
-it
retu
|
c26e1f873ed238e1bdaf99902af0ec27859d58b1 | add check dns action to community module | client/community/action-creators/dns-control/async-check-hosted-zone.js | client/community/action-creators/dns-control/async-check-hosted-zone.js | import * as t from '../../action-types'
import { createAction } from '../create-action'
/*CHECK_DNS_HOSTED_ZONE_FAILURE*/
// TODO: Call API method
export default dnsHostedZone => (dispatch, getState, { api }) => {
dispatch(createAction(t.CHECK_DNS_HOSTED_ZONE_REQUEST))
return new Promise((resolve, reject) => {
... | JavaScript | 0 | @@ -85,317 +85,517 @@
on'%0A
-%0A/*CHECK_DNS_HOSTED_ZONE_FAILURE*/%0A%0A// TODO: Call API method%0Aexport default dnsHostedZone =%3E (dispatch, getState, %7B api %7D) =%3E %7B%0A%0A dispatch(createAction(t.CHECK_DNS_HOSTED_ZONE_REQUEST))%0A return new Promise((resolve, reject) =%3E %7B%0A setTimeout(() =%3E %7B%0... |
8a9ed76e7cbc3b913c237bf0d98329808b59219a | Add russian translation for 'unshare' | src/translations/ru.js | src/translations/ru.js | module.exports = {
emptyDoc: 'Пишите …',
search: 'Искать …',
footer: 'Пишите с легкостью! Исходный код открыт.',
share: 'Поделиться',
unshare: 'unshare',
open: 'открыть',
modified: 'изменён',
welcome: require('./welcome-ru.txt'),
secondsAgo: function (x) {
if (x === 1) return 'a second ago'
re... | JavaScript | 0.000192 | @@ -51,14 +51,13 @@
h: '
-%D0%98%D1%81%D0%BA%D0%B0%D1%82%D1%8C
+%D0%9D%D0%B0%D0%B9%D1%82%D0%B8
%E2%80%A6',
@@ -125,18 +125,20 @@
e: '
-%D0%9F%D0%BE%D0%B4%D0%B5%D0%BB%D0%B8%D1%82%D1%8C%D1%81%D1%8F
+%D0%BE%D0%BF%D1%83%D0%B1%D0%BB%D0%B8%D0%BA%D0%BE%D0%B2%D0%B0%D1%82%D1%8C
',%0A
@@ -148,23 +148,35 @@
share: '
-unsha... |
e0c3027c8e2ce3ef7bcea190c8379050f353b984 | Clean up repeating UI bindings | src/types/repeating.js | src/types/repeating.js | "use strict";
var m = require("mithril"),
assign = require("lodash.assign"),
times = require("lodash.times"),
config = require("../config"),
hide = require("./lib/hide"),
children = require("./children"),
css = require("./repeating.css"),
icons = config.icons;
fun... | JavaScript | 0.000002 | @@ -625,27 +625,27 @@
remove.bind(
-ctr
+nul
l, options,
@@ -1247,20 +1247,68 @@
ion(opts
+, e
) %7B%0A
+ e.preventDefault();%0A %0A
@@ -1852,28 +1852,76 @@
s, data, idx
+, e
) %7B%0A
+ e.preventDefault();%0A %0A
@@ -2822,19 +2822,19 @@
dd.bind... |
ce7b258132373d0628a8a94a790471b8b2922baf | Fix linting errors. | behaviors/autocomplete.js | behaviors/autocomplete.js | 'use strict';
var _ = require('lodash'),
dom = require('../services/dom'),
db = require('../services/db'),
lists = {};
/**
* Find the first child that is a text input.
* @param {object} el
* @returns {object|undefined}
*/
function findFirstTextInput(el) {
var inputs, l, i, type, textInput;
inputs = e... | JavaScript | 0.000003 | @@ -1,46 +1,7 @@
-'use strict';%0Avar _ = require('lodash'),%0A
+var
dom
@@ -217,26 +217,24 @@
Input(el) %7B%0A
-
%0A var input
@@ -301,18 +301,16 @@
nput');%0A
-
%0A for (
@@ -480,18 +480,16 @@
%7D%0A %7D%0A
-
%0A retur
@@ -1114,16 +1114,17 @@
Time();%0A
+%0A
return
@@ -1205,18 +1205,16 @@
ar... |
208e8a4e5ee309f540f87ab7e23d3f56a14edb40 | Fix for day of the weekday mapping, in newer versions in Node-RED | schedule.js | schedule.js | /**
* Copyright 2014 Nicholas J Humfrey
*
* 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... | JavaScript | 0 | @@ -743,17 +743,19 @@
var day
-s
+map
= %7B%0A
@@ -777,15 +777,15 @@
%22: %22
-e
+E
very
-d
+D
ay%22,
@@ -806,29 +806,59 @@
%22
-1-5
+6,0
%22: %22
-Mondays to Fri
+Weekend%22,%0A %221,2,3,4,5%22: %22Week
days
@@ -881,36 +881,16 @@
%22
-6-7
+0
%22: %22S
-aturdays and Sundays
+un
%22... |
46991b76fd4ec1b753ed80f92f4f34b87deea940 | Fix an easy `any`. | src/realm/realmActions.js | src/realm/realmActions.js | /* @flow */
import type {
Auth,
GetState,
Dispatch,
RealmFilter,
InitialData,
RealmInitAction,
DeleteTokenPushAction,
SaveTokenPushAction,
InitRealmEmojiAction,
InitRealmFilterAction,
} from '../types';
import { initializeNotifications, refreshNotificationToken } from '../utils/notifications';
impor... | JavaScript | 0.000002 | @@ -2,16 +2,29 @@
* @flow
+strict-local
*/%0Aimpor
@@ -94,16 +94,35 @@
alData,%0A
+ RealmEmojiState,%0A
RealmI
@@ -1397,14 +1397,23 @@
is:
-Object
+RealmEmojiState
): I
|
af326f7ad485710887780b5c1ae10c07dbed438c | complete add image condition | waterfallFlow/js/index.js | waterfallFlow/js/index.js | window.onload = function() {
waterfall('main', 'box');
window.onscroll = function() {
}
}
function waterfall(parent, box) {
// 将main下的所有的class为box的元素取出来
var oParent = document.getElementById(parent);
var oBoxs = getByClass(oParent, box);
// 计算整个页面显示的列数(页面宽/box的宽)
var oBoxW = oBoxs[0].offsetWid... | JavaScript | 0 | @@ -88,16 +88,48 @@
) %7B%0A
+if (checkScrollSlide()) %7B%0A%0A %7D
%0A %7D%0A%7D%0A%0A
@@ -671,16 +671,36 @@
else %7B%0A
+ // %E7%BB%99%E5%89%A9%E4%B8%8B%E7%9A%84%E5%85%83%E7%B4%A0%E8%BF%9B%E8%A1%8C%E5%AE%9A%E4%BD%8D%0A
va
@@ -1451,20 +1451,530 @@
eturn i;%0A %7D%0A %7D%0A%7D
+%0A%0A// %E6... |
81244a0f4ead086c297f8c5aeaf62d9d496aab43 | Update bindery.js | web-components/bindery.js | web-components/bindery.js | /**
# bindery
This is a simple experimental component for binding a model to the DOM.
You assign an object to the `<bindery-model>`'s `value` and then bind to its
(top-level) properties by name.
For example:
```
<bindery-model events="mouseup">
<h4>Simple Binding</h4>
<button data-on="mouseup=click" data-to="t... | JavaScript | 0 | @@ -1224,16 +1224,281 @@
nding)%0A%0A
+### Ideas%0A%0A- implement multiple bindings%0A- implement %60toTargets%60 (and possibly %60fromTargets%60)%0A- implement list bindings -- %60%3Cbindery-list%3E%60? Contents become template, slot is hidden.%0A- consider whether to add %60byPath%60 support or keep paths simple (on... |
d57fa56331d55c407cd6a860ddf7cbfcd53c999f | improve code formatting | src/EvernoteClient.js | src/EvernoteClient.js | import Promise from 'bluebird'
import { Evernote } from 'evernote'
import EvermarkError from './EvermarkError'
const debug = require('debug')('evernote')
// Define Evernote API error codes
export const UNKNOWN_ERROR = 1
export const BAD_DATA_FORMAT = 2
export const PERMISSION_DENIED = 3
export const INTERNAL_ERROR = ... | JavaScript | 0.000327 | @@ -2059,16 +2059,17 @@
UND%0A %7D%0A
+%0A
const
|
5f7ca54d4eecd29043dee6e7ae8956f1d51fda1e | update dll build | build/dll/webpack.config.dll.js | build/dll/webpack.config.dll.js | const webpack = require('webpack'),
AssetsPlugin = require('assets-webpack-plugin'),
CompressionPlugin = require('compression-webpack-plugin'),
config = require('../config.js'),
utils = require('../utils.js'),
library = '[name]_lib';
module.exports = {
mode: 'production',
entry: {
... | JavaScript | 0.000001 | @@ -85,16 +85,19 @@
n'),%0A
+ //
Compres
@@ -1227,33 +1227,32 @@
son')%0A %7D)
-,
%0A%0A new Co
@@ -1240,24 +1240,27 @@
%7D)%0A%0A
+ //
new Compres
@@ -1275,24 +1275,27 @@
in(%7B%0A
+ //
test: n
@@ -1367,24 +1367,27 @@
$'),%0A
+ //
cache:
@@ -1391,32 +1391,3... |
c8ea3293e879738eed1c731b065d86e42a400a00 | convert to ES6 class syntax | ArtistListScreen.js | ArtistListScreen.js | 'use strict';
var React = require('react-native');
var {
AppRegistry,
Image,
ListView,
StyleSheet,
Text,
View,
} = React;
var fetch = require('fetch');
var API_KEY='81bbfd4ecee91148e9f6df34090f5d7e';
var API_URL = 'http://ws.audioscrobbler.com/2.0/?method=geo.gettopartists&country=ukraine&format=json';
v... | JavaScript | 0.999994 | @@ -364,19 +364,21 @@
I_KEY;%0A%0A
-var
+class
ArtistL
@@ -391,74 +391,90 @@
een
-= React.createClass(%7B%0A getInitialState: function() %7B%0A return
+extends React.Component %7B%0A constructor(props) %7B%0A super(props)%0A this.state =
%7B%0A
@@ -607,25 +607,24 @@
%7D)%0A %7D%0A %7D
-,
%0A ... |
fbb8f67f838f8fe820d6446fca2d702b172b1472 | Use TranslatedText component to get translated text. | src/common/Label.js | src/common/Label.js | /* @flow */
import React, { PureComponent } from 'react';
import { Text } from 'react-native';
import { FormattedMessage } from 'react-intl';
import type { LocalizableText, Style } from '../types';
type Props = {
text: LocalizableText,
style?: Style,
};
export default class Label extends PureComponent<Props> {
... | JavaScript | 0 | @@ -99,45 +99,45 @@
ort
-%7B FormattedMessage %7D from 'react-intl
+TranslatedText from './TranslatedText
';%0A%0A
@@ -398,16 +398,53 @@
der() %7B%0A
+ const %7B styles %7D = this.context;%0A
cons
@@ -492,84 +492,8 @@
ops;
-%0A const message = text.text %7C%7C text;%0A const %7B styles %7D = this.con... |
50418bb49f3cb8ee2c45db7fa340cd0eac114f5c | use currentUserMock for settings story | src/pages/Settings.story.js | src/pages/Settings.story.js | import { storiesOf } from '@storybook/vue'
import store from '@/store'
import i18n from '@/i18n'
import Settings from '@/pages/Settings'
import { usersMock } from '>/mockdata'
storiesOf('Settings Page', module)
.add('Default', () => ({
render (h) {
return h(Settings)
},
created () {
store.co... | JavaScript | 0 | @@ -140,21 +140,27 @@
mport %7B
-u
+currentU
ser
-s
Mock %7D f
@@ -365,20 +365,23 @@
er:
-u
+currentU
ser
-s
Mock
-%5B0%5D
%7D)%0A
|
a61a722f69658d4bae98c6e93a898cd5e5837b16 | Enable streaming for GAE logs | builder/server.js | builder/server.js | 'use strict';
const fs = require('fs');
const express = require('express');
const spawn = require('child_process').spawn;
const bodyParser = require('body-parser');
const API_KEY_HEADER = 'X-API-KEY';
const PORT = 8080;
// Handler for CI.
function runLH(params, req, res, next) {
const url = params.url;
const for... | JavaScript | 0 | @@ -856,16 +856,114 @@
p-alive'
+,%0A 'X-Accel-Buffering': 'no' // Forces Flex App Engine to keep connection open for streaming.
%0A %7D);
|
d65c7c1f2d553b73f82ecfbd9a9e3e092542fc5a | remove unused dependencies | src/tasks/task/view/taskView.js | src/tasks/task/view/taskView.js | angular.module('tasks')
.config(['$routeProvider', '$locationProvider', '$stateProvider', '$urlRouterProvider', 'sysConfig', 'securityAuthorizationProvider',
function ($routeProvider, $locationProvider, $stateProvider, $urlRouterProvider, sysConfig, securityAuthorizationProvider) {
var taskView = {
name: 'page.ta... | JavaScript | 0.000003 | @@ -32,203 +32,87 @@
(%5B'$
-routeProvider', '$locationProvider', '$stateProvider', '$urlRouterProvider', 'sysConfig', 'securityAuthorizationProvider',%0A%09function ($routeProvider, $locationProvider, $stateProvider, $urlRouter
+stateProvider', 'sysConfig', 'securityAuthorizationProvider',%0A%09function ($state
Prov... |
c13c59ce454951432da5805947970b11d90ff629 | Update app.settings.js | app/app.settings.js | app/app.settings.js | var app = angular.module('hpsa-client');
app.constant('AppSettings', {
apiUrl: 'http://expense-api.52.27.252.3.nip.io/',
})
| JavaScript | 0.000002 | @@ -103,16 +103,17 @@
.52.
-27.252.3
+39.108.65
.nip
|
039eb2066711ecb68909526fd1a238d942657146 | Update auth.js | Auth-plugin/auth.js | Auth-plugin/auth.js |
this.init = function(index, gameServer) {
this.gameServer = gameServer;
this.index = index;
}
this.beforespawn = function (player) {
if (!player.auth) {
if (!player.astage) player.astage = 0;
if (player.astage == 0) {
player.frozen = true;
player.aname = player.name;
var name = 'w = login';
if (thi... | JavaScript | 0.000001 | @@ -147,24 +147,48 @@
yer.auth) %7B%0A
+ player.frozen = true;%0A
if (!playe
@@ -248,34 +248,8 @@
) %7B%0A
- player.frozen = true;%0A
@@ -2340,16 +2340,38 @@
= 100;%0A
+ player.auth = true;%0A
return
@@ -3193,18 +3193,43 @@
stage =
-50
+100%0A player.auth = true;
%0A %7D els
|
2395159e4a66c815efb6ed007d557646e028a69a | optimize ref method in props-proxy HOC | src/HOC/propsProxy.js | src/HOC/propsProxy.js | /**
* @file 高阶组件之属性代理
*/
import React, { Component } from 'react'
class Input extends Component {
constructor(props) {
super(props);
this.printName = this.printName.bind(this)
}
printName() {
console.log(`Wrapped component's name: ${this.props.name}`)
}
render() {
... | JavaScript | 0 | @@ -232,55 +232,108 @@
cons
-ole.log(%60Wrapped component's name: $%7Bthis.props
+t %7B input %7D = this.refs;%0A console.log(%60Wrapped component is an $%7Binput.tagName%7D named $%7Binput
.nam
@@ -379,16 +379,28 @@
n %3Cinput
+ ref=%22input%22
name=%22n
@@ -613,58 +613,8 @@
%7D
-;%0A this.onCha... |
1e8b44ffc0e736bdd51f40fa9448c4380784f5a1 | remove on | node/src/socket/UDPServer.js | node/src/socket/UDPServer.js | import dgram from 'dgram'
const handleCommand = (socket) => {
// Passed string of command to relay
console.log('socket start', socket)
socket.on('prime', (data) => {
console.log(`prime command: ${data}`)
// Info for connecting to the local process via UDP
const PORT = 12345
const HOST = '192.168... | JavaScript | 0.000001 | @@ -127,53 +127,10 @@
art'
-, socket)%0A socket.on('prime', (data) =%3E %7B%0A
+)%0A
co
@@ -168,18 +168,16 @@
a%7D%60)%0A%0A
-
-
// Info
@@ -220,18 +220,16 @@
via UDP%0A
-
const
@@ -241,18 +241,16 @@
= 12345%0A
-
const
@@ -272,18 +272,16 @@
.7.2'%0A
-
-
const bu
@@ -305,18 +305,16 @@
... |
b132ce780e1038cb8ca2a4ff69b0fa1319a95d2b | Introduce 10ms timeout on webview inapp dismiss | Sources/WonderPush/Resources/javascript/webViewBridgeJavascriptFileToInject.js | Sources/WonderPush/Resources/javascript/webViewBridgeJavascriptFileToInject.js | (function() {
var identifierCounter = 0;
var generateIdentifier = function() {
return ""+(+new Date())+":"+(identifierCounter++);
};
window.WonderPushInAppSDK = new Proxy({}, new function() {
this.get = function(target, prop, receiver) {
if (this.hasOwnProperty(prop)) return ... | JavaScript | 0 | @@ -753,32 +753,76 @@
%7D);%0A
+ var post = function() %7B%0A
@@ -885,16 +885,158 @@
ssage);%0A
+ %7D;%0A // delay dimiss%0A if (prop === %22dismiss%22) setTimeout(post, 10);%0A else post();%0A
|
1159a107070b75f5981eb20ced8a194d9f442a4f | Fix button colour changing the wrong row when deselecting, Remove console.logs | src/pages/StocktakesPage.js | src/pages/StocktakesPage.js | /* @flow weak */
/**
* OfflineMobile Android Stocktakes Page
* Sustainable Solutions (NZ) Ltd. 2016
*/
import React from 'react';
import {
StyleSheet,
View,
TouchableOpacity,
} from 'react-native';
import {
Cell,
DataTable,
Header,
HeaderCell,
Row,
} from '../widgets/DataTable';
import Icon from... | JavaScript | 0 | @@ -3135,69 +3135,8 @@
te;%0A
- console.log(deleteSelection.indexOf(stocktake.id) %3E= 0);%0A
@@ -3255,12 +3255,8 @@
.id)
- - 1
, 1)
@@ -3316,62 +3316,8 @@
d);%0A
- console.log(this.state.deleteSelection.length);%0A
|
7021bcf84ab33d6884788dbb158a1a05fa908ccd | disable linking packages when running in builder mode | packages/core/lib/builder/installPackages.js | packages/core/lib/builder/installPackages.js | const getPackages = require("zero-dep-tree-js").getPackages;
const fs = require("fs");
const os = require("os");
var glob = require("fast-glob");
const deepmerge = require("deepmerge");
var { spawn } = require("child_process");
const commonDeps = require("zero-common-deps");
var path = require("path");
const debug = re... | JavaScript | 0 | @@ -4495,16 +4495,76 @@
psJson =
+ process.env.ISBUILDER%0A ? commonDeps.dependencies()%0A :
commonD
|
715d7c69eae6af104b672cd85672f034ae0ea900 | Fix typos in orderedmap docstrings | src/util/orderedmap.js | src/util/orderedmap.js | // ;; Persistent data structure representing an ordered mapping from
// strings to values, with some convenient update methods.
export class OrderedMap {
constructor(content) {
this.content = content
}
find(key) {
for (let i = 0; i < this.content.length; i += 2)
if (this.content[i] == key) return i... | JavaScript | 0.000432 | @@ -2112,32 +2112,33 @@
ject, OrderedMap
+%3E
) %E2%86%92 OrderedMap%0A
@@ -2128,32 +2128,32 @@
%3E) %E2%86%92 OrderedMap%0A
-
// Create a ne
@@ -2434,32 +2434,33 @@
ject, OrderedMap
+%3E
) %E2%86%92 OrderedMap%0A
@@ -2753,32 +2753,33 @@
ject, OrderedMap
+%3E
) %E2%86%92 OrderedMap%0A
@@ -3100,24 +3100,24 ... |
61b795e5b610fe608701c620fb816481e2bb99a2 | Add element type to prop-types (#3959) | definitions/npm/prop-types_v15.x.x/flow_v0.104.x-/prop-types_v15.x.x.js | definitions/npm/prop-types_v15.x.x/flow_v0.104.x-/prop-types_v15.x.x.js | type $npm$propTypes$ReactPropsCheckType = (
props: any,
propName: string,
componentName: string,
href?: string
) => ?Error;
// Copied from: https://github.com/facebook/flow/blob/0938da8d7293d0077fbe95c3a3e0eebadb57b012/lib/react.js#L433-L449
declare module 'prop-types' {
declare var array: React$PropType$Pri... | JavaScript | 0.000007 | @@ -849,32 +849,90 @@
Primitive%3Cany%3E;%0A
+ declare var elementType: React$PropType$Primitive%3Cany%3E;%0A
declare var in
|
9201111222a31994f0a600cbd0aa933a8966648e | Add use of actions in StocktakesPage | src/pages/StocktakesPage.js | src/pages/StocktakesPage.js | /* eslint-disable import/prefer-default-export */
/* eslint-disable react/forbid-prop-types */
/**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
import React, { useCallback } from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
import { UIDatabase } from '../database'... | JavaScript | 0 | @@ -1204,16 +1204,68 @@
kingData
+%0A .filtered('status != $0', 'finalised')%0A
.sorted(
@@ -1284,16 +1284,23 @@
', true)
+%0A
.slice()
@@ -1986,16 +1986,35 @@
ctions,%0A
+ showFinalised,%0A
%7D = st
@@ -4674,34 +4674,72 @@
onPress: () =%3E
-%7B%7D
+dispatch(PageActions.showNotFinalised()... |
f7e7301641dc9889c93c448f6ad86bf594119a19 | Fix custom select | source/assets/javascripts/locastyle/_custom-fields.js | source/assets/javascripts/locastyle/_custom-fields.js | var locastyle = locastyle || {};
locastyle.customFields = (function() {
'use strict';
function init() {
findFields();
bindRemoveCustomClass();
}
function findFields(){
$('.ls-custom').find(':input').not('.ls-input-original').each(function(index, field){
if($(field).eq(0).attr('class') !== u... | JavaScript | 0.000001 | @@ -1190,32 +1190,44 @@
%5B0%5D.type);%0A %7D%0A%0A
+ // Select%0A
function custo
@@ -1235,32 +1235,32 @@
Select($field)%7B%0A
-
var selectTe
@@ -1426,16 +1426,87 @@
ld%5B0%5D);%0A
+ bindCustomSelect($field)%0A %7D%0A%0A function bindCustomSelect($field)%7B%0A
var
@@ -1640,32 +1640,46 @@
())%0A... |
48fa46e2351351304d38581ea256ba0e282612f2 | Update EmptyMJMLError for empty body | packages/mjml-core/src/parsers/document.js | packages/mjml-core/src/parsers/document.js | import { ParseError, EmptyMJMLError, NullElementError } from '../Error'
import compact from 'lodash/compact'
import dom from '../helpers/dom'
import each from 'lodash/each'
import filter from 'lodash/filter'
import { endingTags } from '../MJMLElementsCollection'
import MJMLHeadElements from '../MJMLHead'
import warning... | JavaScript | 0 | @@ -2880,32 +2880,57 @@
ound in the file
+, or %22%3Cmj-body%3E%22 is empty
')%0A %7D%0A%0A if (he
|
22b5bbb4887f756e69e6de58d59bea985637bc1b | Use sane location for config (#3584) | app/config/paths.js | app/config/paths.js | // This module exports paths, names, and other metadata that is referenced
const {homedir} = require('os');
const {app} = require('electron');
const {statSync} = require('fs');
const {resolve, join} = require('path');
const isDev = require('electron-is-dev');
const cfgFile = '.hyper.js';
const defaultCfgFile = 'config... | JavaScript | 0 | @@ -365,36 +365,318 @@
);%0A%0A
-const applicationDirectory =
+// If the user defines XDG_CONFIG_HOME they definitely want their config there,%0A// otherwise use the home directory in linux/mac and userdata in windows%0Aconst applicationDirectory =%0A process.env.XDG_CONFIG_HOME !== undefined%0A ? join(process.env... |
69cfc7a7d2916fd73dc43e7d44d09d0d594e0d63 | remove leftover debugger | src/patterns/collapsible.js | src/patterns/collapsible.js | define([
'require',
'lib/jquery',
], function(require) {
var collapsible = {
initContent: function(root) {
debugger;
$(root).find('.collapsible').each(function() {
var $this = $(this),
$data = $this.data('collapsible');
if (!$d... | JavaScript | 0.000004 | @@ -124,30 +124,8 @@
) %7B%0A
- debugger;%0A
|
8f0a5f2295894d68f38e7d469e3641e70933bdb0 | remove some redundant (now broken) config | webpack/webpack.config.js | webpack/webpack.config.js | const { DefinePlugin, EnvironmentPlugin } = require("webpack");
const path = require("path");
const LessColorLighten = require("less-color-lighten");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const devServer = {
open: false,
overlay: true,
port: 4200,
proxy: { "*": { target: process.env.... | JavaScript | 0 | @@ -3988,38 +3988,24 @@
options: %7B
-%0A
sourceMap:
@@ -4012,130 +4012,8 @@
true
-,%0A config: %7B%0A path: path.join(__dirname, %22../postcss.config.js%22),%0A %7D,%0A
%7D,%0A
|
432fbf5e03c0047bd07862263c47700bc3f73288 | use single quotes | canvid.js | canvid.js | (function(root, factory) {
if (typeof module !== 'undefined' && module.exports) {
module.exports = factory();
} else if (typeof define === 'function' && define.amd) {
define([], factory);
} else {
root.canvid = factory();
}
}(this, function() {
function canvid(params) {
... | JavaScript | 0 | @@ -6538,17 +6538,17 @@
===
-%22
+'
function
%22 %7C%7C
@@ -6547,9 +6547,9 @@
tion
-%22
+'
%7C%7C
@@ -7086,16 +7086,17 @@
factory function
+%0A
|
99aa06f19bbd69c51a60f9ebd21cf64d58911ba2 | Fix reference | src/validator/index.js | src/validator/index.js | 'use strict'
import '../typedefs'
import _ from 'lodash'
import {dereference} from '../dereference'
import {
addWarningResult,
aggregateResults,
ensureJsonObject,
validateRequiredAttribute
} from './utils'
import containerValidatorFactory from './container'
import viewSchema from './view-schemas/v1'
import... | JavaScript | 0.000002 | @@ -307,16 +307,66 @@
as/v1'%0A%0A
+export %7Bvalidate as validateModel%7D from './model'%0A
import %7B
@@ -455,51 +455,8 @@
alue
-%0Aexport const validateModel = validateValue
%0A%0Aex
@@ -4428,16 +4428,17 @@
esult =
+_
validate
|
92a9a6a6a184ab1c04fdfd4d4abcda9fa177393c | Correct dots view. | src/view/RunnerDots.js | src/view/RunnerDots.js | /**@namespace An outputs in dots formats for Runner’s events.
*/
var RunnerDots = {};
var failuresAndErrorsBuffer = [],
failureCounter = 0,
successCounter = 0,
errorCounter = 0,
startTime,
browserReadyTime;
/** Informs the user that the emitting Runner is waiting for the browser.
*/
RunnerDots.beforeRun = functi... | JavaScript | 0 | @@ -3531,16 +3531,52 @@
%25 60%0A%09%7D
+;%09// don't you remove this semicolon
%0A%0A%09%5B'hou
|
04b47bf99e16a113125d543cea6a86c68d014db2 | Handle reverting to invalid timeslice | src/timetravel.js | src/timetravel.js | import R from 'ramda'
import Bacon from 'baconjs'
import Common from './utils/common-util'
import Storage from './utils/storage-util'
import StoreNames from './stores/store-names'
import ActionTypes from './actions/action-types'
import TimeTravelAction from './actions/timetravel-action.js'
const isAction = R.pathEq(
... | JavaScript | 0.000001 | @@ -607,16 +607,74 @@
ty)%0A%5D)%0A%0A
+const hasTimeslice = R.path(%0A %5B'action', 'timeslice'%5D%0A)%0A%0A
const fi
@@ -1040,24 +1040,51 @@
when(%0A
-isRevert
+R.allPass(%5BisRevert, hasTimeslice%5D)
,%0A getT
|
addf9c55fc1a67d38e305451e507c3a79985f60f | Fix get started button on website | website/pages/en/index.js | website/pages/en/index.js | /**
* Copyright 2018-present Facebook.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* @format
*/
const React = require('react');
const CompLibrary = require('../../core/CompLibrary');
const Container = CompLibrary.Container;
const Gri... | JavaScript | 0 | @@ -1094,16 +1094,24 @@
%22 href=%22
+/formik/
docs/ove
@@ -6892,16 +6892,24 @@
%22 href=%22
+/formik/
users.ht
|
3bd603c7be55879fd0849a6e0fbcb27e01613b17 | Fix links | website/pages/en/index.js | website/pages/en/index.js | /**
* Copyright (c) 2017-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.
*/
const React = require('react');
const CompLibrary = require('../../core/CompLibrary.js');
const MarkdownBlock = CompLibrary.MarkdownBl... | JavaScript | 0 | @@ -4434,20 +4434,16 @@
rame-log
-ging
%5D(docs/a
@@ -4453,19 +4453,16 @@
rame-log
-.md
), %5Bairf
@@ -4492,19 +4492,16 @@
me-codec
-.md
), and %5B
@@ -4530,11 +4530,8 @@
rame
-.md
) in
@@ -5032,16 +5032,22 @@
me-json)
+-based
seriali
|
d9bc14f41712801e1166404f4bcb296ddc5c1f70 | remove log | src/playground/executors.js | src/playground/executors.js | /*
*
*/
'use strict';
class Executor {
constructor(block, entity) {
this.scope = new Entry.Scope(block, this);
this.entity = entity;
this._callStack = [];
this.register = {};
this.paused = false;
this.parentExecutor = null;
this.valueMap = {};
this.... | JavaScript | 0.000001 | @@ -1949,21 +1949,16 @@
.then((
-value
) =%3E %7B%0A
@@ -2529,57 +2529,8 @@
%3E %7B%0A
- console.log('eeeee', e);%0A
|
56e3cf72fac9cecc18d6d5d4153bcc6f934ddf09 | allow sourceMaps false in transpiler options (#418) | src/transpiler.js | src/transpiler.js | /*
* Traceur, Babel and TypeScript transpile hook for Loader
*/
var transpile = (function() {
// use Traceur by default
Loader.prototype.transpiler = 'traceur';
function transpile(load) {
var self = this;
return Promise.resolve(__global[self.transpiler == 'typescript' ? 'ts' : self.transpiler]
... | JavaScript | 0 | @@ -1189,16 +1189,60 @@
false;%0A
+ if (options.sourceMaps === undefined)%0A
opti
@@ -1260,32 +1260,32 @@
aps = 'inline';%0A
-
options.file
@@ -1839,16 +1839,59 @@
ystem';%0A
+ if (options.sourceMap === undefined)%0A
opti
@@ -1908,32 +1908,32 @@
Map = 'inline';%0A
-
options.inpu
@@ -2... |
06f2b7822b19fa76f439dd593c94fbe6a5098ab0 | Fix regex for builder redirects | website/redirects.next.js | website/redirects.next.js | module.exports = [
{
source: '/docs/installation',
destination: '/docs/install',
permanent: true,
},
{
source: '/docs/command-line/machine-readable',
destination: '/docs/commands',
permanent: true,
},
{
source: '/docs/command-line/introduction',
destination: '/docs/commands',
... | JavaScript | 0.000001 | @@ -3643,28 +3643,27 @@
amazon-:path
-*
',%0A
+
destinat
@@ -3760,33 +3760,32 @@
ders/azure-:path
-*
',%0A destinati
@@ -3885,25 +3885,24 @@
hyperv-:path
-*
',%0A desti
@@ -4007,25 +4007,24 @@
oracle-:path
-*
',%0A desti
@@ -4126,25 +4126,24 @@
rs/osc-:path
-*
',%0A desti
@@ -4253,25 +4253,24... |
8b091bf0742abb7c5b11f16f9d1dcf3d32ecf378 | use camelcase for property names in JS | website/src/flux/index.js | website/src/flux/index.js | /**
* @jsx React.DOM
*/
var React = require('React');
var Site = require('Site');
var Prism = require('Prism');
var Marked = require('Marked');
var unindent = require('unindent');
var index = React.createClass({
render: function() {
return (
<Site>
<div className="hero">
<div className... | JavaScript | 0 | @@ -1248,17 +1248,17 @@
1%22 frame
-b
+B
order=%220
@@ -1268,13 +1268,12 @@
llow
-f
+F
ull
-s
cree
|
efb1efa9cca1c1609d2e1738f20a6dc3358135a6 | Reformat Spinner.js | src/widgets/Spinner.js | src/widgets/Spinner.js | const React = require('react');
const ReactNative = require('react-native');
const {
Animated,
StyleSheet,
View,
} = ReactNative;
export class Spinner extends React.Component {
constructor(props) {
super(props);
this.progressAnimation = new Animated.Value(0);
this.startSpinning = this.startSpinning... | JavaScript | 0 | @@ -1,16 +1,17 @@
-cons
+impor
t React
= re
@@ -10,77 +10,27 @@
act
-= require('react');%0Aconst ReactNative = require('react-native');%0Acons
+from 'react';%0Aimpor
t %7B%0A
@@ -69,21 +69,27 @@
,%0A%7D
-= R
+from 'r
eact
-N
+-n
ative
+'
;%0A%0Ae
@@ -1022,19 +1022,22 @@
lStyles.
-box
+square
,%0A
@@ ... |
12882f9f99ed2e8cc3726f50a909cd946a71144b | fix spelling of 'country' (#3679) | modules/etargetBidAdapter.js | modules/etargetBidAdapter.js | 'use strict';
import {registerBidder} from '../src/adapters/bidderFactory';
import { BANNER, VIDEO } from '../src/mediaTypes';
const BIDDER_CODE = 'etarget';
const countryMap = {
1: 'sk',
2: 'cz',
3: 'hu',
4: 'ro',
5: 'rs',
6: 'bg',
7: 'pl',
8: 'hr',
9: 'at',
10: 'co',
11: 'de',
255: 'en'
}
ex... | JavaScript | 0.999877 | @@ -703,24 +703,25 @@
var lastCo
+u
ntry = 'sk';
@@ -843,24 +843,25 @@
lastCo
+u
ntry = count
@@ -1063,16 +1063,17 @@
+ lastCo
+u
ntry + '
|
9e7c4eba73306f8adf040c758c245a48b17685d9 | Revert enabling image bitmap (#4596) | src/resources/parser/texture/img.js | src/resources/parser/texture/img.js | import { path } from '../../../core/path.js';
import { http } from '../../../net/http.js';
import {
PIXELFORMAT_R8_G8_B8, PIXELFORMAT_R8_G8_B8_A8, TEXHINT_ASSET
} from '../../../graphics/constants.js';
import { Texture } from '../../../graphics/texture.js';
import { ABSOLUTE_URL } from '../../../asset/constants.j... | JavaScript | 0 | @@ -158,17 +158,40 @@
NT_ASSET
+,%0A DEVICETYPE_WEBGPU
%0A
-
%7D from '
@@ -776,24 +776,25 @@
es = 0;%0A
+%0A
this.use
@@ -789,64 +789,960 @@
-this.useImageBitmap = typeof ImageBitmap !== 'undefined'
+// ImageBitmap current state (Sep 2022):%0A // - Lastest Chrome and Firefox browsers app... |
0ae26dcb702f3cd99223b12679a3e820af3f5eef | remove console log | src/components/topic/snapshots/foci/create/keywordSearch/KeywordSearchResultsContainer.js | src/components/topic/snapshots/foci/create/keywordSearch/KeywordSearchResultsContainer.js | import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { Row, Col } from 'react-flexbox-grid/lib';
import { fetchCreateFocusKeywordStories } from '../../../../../../actions/topicActions';
import composeAsyncContainer from '../../../../../commo... | JavaScript | 0.000003 | @@ -967,61 +967,8 @@
ps;%0A
- console.log(%60search for $%7BnextProps.keywords%7D%60);%0A
|
2620967387f88dde892e20860ea1ad4339c8ccbe | call -> apply, in diana.createUtilLogger() | app/jobs/prototype.js | app/jobs/prototype.js | 'use strict';
require(__dirname + '/../modules/diana');
exports.extend = function(subType, props) {
diana.shared.Lang.inheritPrototype(subType, Job);
subType.prototype.__super__ = Job;
_.extend(subType.prototype, props);
};
var Job = function() {
var options = {
// Result collection is dropped after the ... | JavaScript | 0 | @@ -5498,20 +5498,21 @@
lLogger.
-call
+apply
(null, a
@@ -5513,21 +5513,16 @@
ull, arg
-ument
s);%0A%7D;%0A%0A
|
4997fc27ff78d7ce83c4b035e375b6b2f23c4b32 | update decode of multigameindication | src/xseries/xpacket.js | src/xseries/xpacket.js | var _ = require('lodash');
var XBytes = require('./xbytes');
var calc = require('../xseries/utilities');
class XPacket {
constructor(byteArray) {
if (byteArray == undefined) {
throw new Error("byteArray is null or undefined");
}
if(byteArray.length < 2) {
th... | JavaScript | 0.000007 | @@ -3053,24 +3053,157 @@
eIndication:
+ %7B%0A byteRange: 14 + '-' + 15,%0A hex: this.getBytes(14, 15).rawData(),%0A value:
this.getByt
@@ -3223,32 +3223,51 @@
BCD().join(%22%22),%0A
+ %7D,%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.