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 |
|---|---|---|---|---|---|---|---|
374bccaf5a9dc9ddb3a54efb0e1091c20f144a6d | remove PropTypes from forwardRef | assets/src/edit-story/components/movable/index.js | assets/src/edit-story/components/movable/index.js | /**
* External dependencies
*/
import Moveable from 'react-moveable';
import PropTypes from 'prop-types';
import styled from 'styled-components';
/**
* WordPress dependencies
*/
import { forwardRef, useContext, createPortal } from '@wordpress/element';
/**
* Internal dependencies
*/
import Context from './conte... | JavaScript | 0 | @@ -69,44 +69,8 @@
e';%0A
-import PropTypes from 'prop-types';%0A
impo
@@ -817,130 +817,8 @@
%0A%7D%0A%0A
-MovableWithRef.propTypes = %7B%0A%09zIndex: PropTypes.number,%0A%7D;%0A%0AMovableWithRef.defaultProps = %7B%0A%09zIndex: DEFAULT_Z_INDEX,%0A%7D;%0A%0A
cons
|
3842aa255cf5afee2e2c8e5b3ec3243352e67d65 | Fix misspelling | lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-leading-description-sentence/lib/main.js | lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-leading-description-sentence/lib/main.js | 'use strict';
// MODULES //
var doctrine = require( 'doctrine' );
var isCapitalized = require( '@stdlib/assert/is-capitalized' );
var isObject = require( '@stdlib/assert/is-object' );
var contains = require( '@stdlib/assert/contains' );
var endsWith = require( '@stdlib/string/ends-with' );
var getJSDocComment = requi... | JavaScript | 1 | @@ -985,17 +985,17 @@
ther JSD
-O
+o
c commen
|
a0d3fe7e24a51a3efbb780550778da3b66d1dba5 | Fix a problem of FFT | fft.js | fft.js | // refs http://d.hatena.ne.jp/ku-ma-me/20111124/p1#20111124f1
var fft = function(a) {
var n = a.length;
for (var i = 0; i < n; i++) {
a[i] = new Complex(a[i], 0);
}
return fftCore(a);
};
var fftCore = function(a) {
var n = a.length;
if (n == 1) {
return a;
}
var a1 = [];
for (var i = 0; i <... | JavaScript | 0.999998 | @@ -72,32 +72,52 @@
= function(a) %7B%0A
+ var result = %5B%5D;%0A%0A
var n = a.leng
@@ -156,17 +156,22 @@
) %7B%0A
-a
+result
%5Bi%5D = ne
@@ -211,17 +211,22 @@
fftCore(
-a
+result
);%0A%7D;%0A%0Av
@@ -1055,19 +1055,8 @@
%5D =
-Math.round(
resu
@@ -1076,17 +1076,17 @@
real / n
-)
+;
%0A %7D%0A%0A
|
a4ff2d8fb7a9cc95927a3ac401f6bb598b2bc9be | Fix a type import | modules/lists/list-section-header.js | modules/lists/list-section-header.js | // @flow
import * as React from 'react'
import {Platform, StyleSheet, Text, View} from 'react-native'
import * as c from '@frogpond/colors'
import {type AppTheme} from '@frogpond/app-theme'
import {useTheme} from '@frogpond/app-theme'
import type {
ViewStyleProp,
TextStyleProp,
} from 'react-native/Libraries/StyleShe... | JavaScript | 0.000004 | @@ -144,14 +144,14 @@
ort
-%7B
type
+%7B
AppT
|
1f1b5d19538b5fab60a78c458aa95780bd9228a7 | Add wait graph test integration | cypress/integration/nav_create_trek.js | cypress/integration/nav_create_trek.js | Cypress.on('uncaught:exception', (err, runnable) => {
// returning false here prevents Cypress from
// failing the test
return false
})
describe('Create trek', () => {
beforeEach(() => {
const username = 'admin'
const password = 'admin'
cy.request('/login/?next=/')
.its('body')
... | JavaScript | 0 | @@ -870,32 +870,114 @@
trek').click()%0A
+ cy.server()%0A cy.route('/api/graph.json').as('graph')%0A cy.wait('@graph')%0A
cy.get(%22a.li
|
334d22572c21326f8298e6c7c054706602420e28 | remove console.log | test/collection-traversing.js | test/collection-traversing.js | var expect = require('chai').expect;
var cytoscape = require('../build/cytoscape.js', cytoscape);
describe('Collection traversing', function(){
var cy, n1, n2, n3, n1n2, n2n3;
// test setup
beforeEach(function(done){
cytoscape({
elements: {
nodes: [
{ data: { id: 'n1' } },
... | JavaScript | 0.000006 | @@ -2403,28 +2403,8 @@
);%0A%0A
- console.log(e)%0A%0A
|
a4e3b7b48b9fe401d256833947ffa3fcabd1bf15 | Update script.js | app/src/main/assets/script.js | app/src/main/assets/script.js | /**
* draws rectangle to canvas
*/
var canvas = document.getElementById('myCanvas');
var cwidth = 100;
var cheight = 20;
var ctx = canvas.getContext("2d");
ctx.fillStyle = "#ffffff";
ctx.fillRect(150, 150, cwidth, cheight);
ctx.fillStyle = "rgb(100,2,3)";
ctx.fillRect(110, 110, 30, 100);
ctx.lineTo(130,140);
ctx.fil... | JavaScript | 0.000002 | @@ -92,18 +92,18 @@
width =
-10
+32
0;%0Avar c
@@ -111,16 +111,17 @@
eight =
+3
20;%0Avar
|
8047d269d3be5f9ce8bd0d99426d2dc91cfa119e | Fix Unit Tests :() | test/BrowserInfoSpec.js | test/BrowserInfoSpec.js | /*
* Copyright 2014 WebFilings, 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | JavaScript | 0.000001 | @@ -4265,119 +4265,8 @@
);%0A%0A
- // In IE9, you cannot set window.event so we'll skip over this%0A if (window.event) %7B%0A
@@ -4356,36 +4356,32 @@
-
var event = null
@@ -4391,36 +4391,32 @@
-
-
BrowserInfo.Even
@@ -4431,32 +4431,147 @@
l... |
0bc9f9b606f71fb050af14aa21d2f7760f07e67f | Add missing build file (#161373) | build/azure-pipelines/common/installPlaywright.js | build/azure-pipelines/common/installPlaywright.js | "use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-------------------------------------------------... | JavaScript | 0 | @@ -363,71 +363,8 @@
-*/%0A
-Object.defineProperty(exports, %22__esModule%22, %7B value: true %7D);%0A
proc
@@ -479,44 +479,8 @@
94)%0A
-const retry_1 = require(%22./retry%22);%0A
cons
@@ -602,33 +602,8 @@
wait
- (0, retry_1.retry)(() =%3E
ins
@@ -636,17 +636,16 @@
nstall()
-)
;%0A%7D%0Ainst
|
42d2fce276eadf04ee00a1548d5bfe779cd0e440 | fix CRC32 empty case | node/v2/checksum.js | node/v2/checksum.js | // Copyright (c) 2015 Uber Technologies, Inc.
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, ... | JavaScript | 0.000385 | @@ -3021,32 +3021,78 @@
;%0A %7D%0A
+ if (csum === undefined) csum = 0;%0A
brea
|
7bcdfc911f46b53c617aa31b441649ba9c5609bc | Update actionsObjUrl | src/main/webapp/scripts/toggle.js | src/main/webapp/scripts/toggle.js | const keywordsTemplateUrl = '/templates/keywords.html';
const newsTemplateUrl = '/templates/news.html';
const actionsTemplateUrl = '/templates/actions.html';
const templatesUrls = [keywordsTemplateUrl, newsTemplateUrl, actionsTemplateUrl];
const keywordsObjUrl = '/json/keywords.json';
const newsObjUrl = '/json/news.... | JavaScript | 0.000001 | @@ -348,25 +348,15 @@
= '/
-json/
actions
-.json
';%0Ac
|
3518793d3f5398702a052da2921ed4755c52e630 | fix amberc command to compile meta example | nodejs/Gruntfile.js | nodejs/Gruntfile.js | module.exports = function(grunt) {
grunt.loadTasks('../vendor/amber/grunt/tasks');
grunt.registerTask('default', ['amberc:hello']);
grunt.initConfig({
pkg: grunt.file.readJSON('../package.json'),
amberc: {
_config: {
amber_dir: '../vendor/amber',
closure_jar: ''
},
hel... | JavaScript | 0 | @@ -591,44 +591,20 @@
-working_dir
+src
:
+%5B
'meta
-',%0A src: %5B'
+/
MySc
@@ -670,17 +670,82 @@
s: %5B
-'parser
+%0A 'Importer-Exporter', 'Compiler-Exceptions', 'Compiler-Core
',
+
'Com
@@ -749,17 +749,133 @@
Compiler
-'
+-AST',%0A 'Compiler-IR', 'Compiler-Inlining', 'Com... |
94f26ff049eca392296ae3667e0003a9437411b9 | prepare to clean up random test | test/common/vmtests/random.js | test/common/vmtests/random.js | var testData = require('../../../../tests/vmtests/random.json'),
async = require('async'),
VM = require('../../../lib/vm'),
Account = require('../../../lib/account.js'),
Block = require('../../../lib/block.js'),
testUtils = require('../../testUtils'),
assert = require('assert'),
levelup = require('levelup... | JavaScript | 0 | @@ -173,52 +173,8 @@
'),%0A
- Block = require('../../../lib/block.js'),%0A
te
@@ -1521,100 +1521,8 @@
);%0A%0A
-console.log('gas: ', results.gasUsed.toNumber(), 'exp: ', testData.exec.gas - testData.gas)%0A
|
e0f838beaf3a637f9969f2b14d196d597cc1f7b3 | use verifyAccountPostConditions | test/common/vmtests/vmSha3.js | test/common/vmtests/vmSha3.js | var vmSha3Test = require('../../../../tests/vmtests/vmSha3Test.json'),
async = require('async'),
VM = require('../../../lib/vm'),
Account = require('../../../lib/account.js'),
assert = require('assert'),
testUtils = require('../../testUtils'),
rlp = require('rlp'),
Trie = require('merkle-patricia-tree');
... | JavaScript | 0 | @@ -251,32 +251,8 @@
'),%0A
- rlp = require('rlp'),%0A
Tr
@@ -2251,64 +2251,12 @@
y, c
-allback) %7B%0A acctData = testData.post%5Bkey%5D;%0A
+b) %7B
%0A
@@ -2417,153 +2417,37 @@
a
-ssert(testUtils.toDecimal(account.balance) === acctData.balance);%0A assert(testUtils.toDecimal(... |
64b400f5a82baf54e5386904b3dc8bb48a3c533f | Add extraSmall container style | app/themes/base/containers.js | app/themes/base/containers.js | export default ({ borders, colors, radii, space }) => {
const defaultStyles = {
mx: [0, 'auto'],
bg: colors.white,
width: ['100%', '95%'],
mb: `${space[6]}px`,
position: 'relative',
};
const large = {
...defaultStyles,
maxWidth: '1600px',
};
const medium = {
...defaultStyles,... | JavaScript | 0 | @@ -404,32 +404,106 @@
'600px',%0A %7D;%0A%0A
+ const extraSmall = %7B%0A ...defaultStyles,%0A maxWidth: '320px',%0A %7D;%0A%0A
const bordered
@@ -946,16 +946,105 @@
%0A %7D,%0A
+ extraSmall,%0A extraSmallBordered: %7B%0A ...extraSmall,%0A ...bordered,%0A %7D,%0A
%7D;%0A%7D;%0A
|
8326964820ac4a44ca830e1109fea129b9287c37 | refactor method of clearing the data tree | lib/api/storage.js | lib/api/storage.js | const STORAGE_KEY = `_shredder`;
let dataTree = {
version: '1.0.0',
mockedRequests: [],
scenarios: [],
currentScenario: null
};
const originalDataTree = Object.assign({}, dataTree);
export class ShredderStorage {
constructor() {
if (!ShredderStorage.getRaw()) {
ShredderStorage.persist();
}
... | JavaScript | 0.000002 | @@ -27,18 +27,20 @@
dder%60;%0A%0A
-le
+cons
t dataTr
@@ -137,63 +137,8 @@
%7D;%0A%0A
-const originalDataTree = Object.assign(%7B%7D, dataTree);%0A%0A
expo
@@ -476,27 +476,16 @@
() %7B%0A
- dataTree =
Object.
@@ -495,31 +495,104 @@
ign(
-%7B%7D, originalDataTree
+dataTree, %7B%0A mockedRequests: %5B%5D,... |
3645325b9d0d353e21040ea5039889e6313070a6 | Fix mostUrgentSubject query to not use r.row in subquery | lib/bot/queries.js | lib/bot/queries.js | var r = require('rethinkdb');
// Number of seconds after which Reddit will archive an article
// (180 days): https://github.com/reddit/reddit/commit/b7b24d2e9fa06ba37ea78e0275dce86d95158e64
var archiveLimit = 180 * 24 * 60 * 60;
exports.mostUrgentSubject = r.table('subjects')
.between(r.now().sub(archiveLimit),r.no... | JavaScript | 0.001892 | @@ -668,19 +668,55 @@
ter(
-r.not(r.row
+function(forfeit)%7B%0A return r.not(forfeit
('wi
@@ -740,16 +740,17 @@
(false))
+%7D
)%0A
@@ -897,23 +897,60 @@
map(
-r.row('reply'))
+function(klaxon)%7Breturn klaxon('reply')%7D)%0A
.coe
|
ee115e620670236ef58c44c17a98f418c8209530 | Remove unused browsers-changed functionality | lib/ci_mode_app.js | lib/ci_mode_app.js | /*
ci_mode_app.js
==============
The entry point for CI mode.
*/
var yaml = require('js-yaml')
var fs = require('fs')
var Server = require('./server')
var spawn = require('child_process').spawn
var tap = require('tap')
var path = require('path')
var async = require('async')
var Backbone = require('backbone')
var Co... | JavaScript | 0.000001 | @@ -1220,78 +1220,8 @@
r)%7B%0A
- on('browsers-changed', this.onBrowsersChanged.bind(this))%0A
@@ -1386,168 +1386,8 @@
%7D%0A
- , onBrowsersChanged: function()%7B%0A if (!this.testsStarted)%7B%0A this.server.startTests()%0A this.testsStarted = true%0A %7D%0A ... |
79c2618d299db8751f4ed6fede4ed2be626cea11 | use bearer prefix | lib/client/http.js | lib/client/http.js | var Client = module.exports
var Promise = require("bluebird")
var request = require("request")
var routes = require("../routes")
var d = require("debug")("raptorjs:client:http")
Client.create = function (container) {
var emit = function() {
container.emit.apply(container, arguments)
}
var opts ... | JavaScript | 0.000213 | @@ -578,21 +578,33 @@
ation =
+%60Bearer $%7B
token
+%7D%60
%0A
|
2a0eb2b689df943495165cbeb25c4b99da260dc6 | Fix bug in whenReady | lib/co-routines.js | lib/co-routines.js | 'use strict'
const webDriver = require('selenium-webdriver')
const By = webDriver.By
const co = require('bluebird').coroutine
const _ = require('lodash')
/** --------------------- co functions ------------------------ **/
const getCoRoutines = (world, defaultTimeout) => {
if (!world) {
throw new Error('World mu... | JavaScript | 0 | @@ -2891,19 +2891,88 @@
-el = yield
+const driver = yield world.getDriver()%0A el = yield driver.findElements(
By.c
@@ -2973,24 +2973,25 @@
s(By.css(el)
+)
%0A %7D%0A
|
cc63a8e2bffe4c0b4b39eeb9f55cd33ba878e802 | Fix wrong thenable implementation in metasync.compose | lib/composition.js | lib/composition.js | 'use strict';
function Composition() {}
const COMPOSE_CANCELED = 'Metasync: asynchronous composition canceled';
const COMPOSE_TIMEOUT = 'Metasync: asynchronous composition timed out';
const compose = (
// Asynchronous functions composition
flow // array of functions, callback-last / err-first
// Returns: funct... | JavaScript | 0.000035 | @@ -414,24 +414,67 @@
callback) %7B%0A
+ if (typeof(data) === 'function') %7B%0A
callba
@@ -490,16 +490,18 @@
;%0A
+
+
data = %7B
@@ -503,16 +503,86 @@
a = %7B%7D;%0A
+ %7D else %7B%0A comp.data = data;%0A return comp;%0A %7D%0A
%7D%0A
@@ -711,32 +711,37 @@
%7... |
59d1c04411fb4a4e2e44b98ee50fa83dac3c921a | Update jquery.greedy-navigation.js | assets/js/plugins/jquery.greedy-navigation.js | assets/js/plugins/jquery.greedy-navigation.js | /*
* Greedy Navigation
*
* http://codepen.io/lukejacksonn/pen/PwmwWV
*
*/
var $nav = $('#site-nav');
var $btn = $('#site-nav button');
var $vlinks = $('#site-nav .visible-links');
var $hlinks = $('#site-nav .hidden-links');
var breaks = [];
function updateNav() {
var availableSpace = $btn.hasClass('hidden') ? $na... | JavaScript | 0 | @@ -260,16 +260,18 @@
Nav() %7B%0A
+
%0A var a
@@ -362,16 +362,237 @@
- 30;%0A%0A
+ console.log(%22updateNav:: I am called%22);%0A console.log(%22availableSpace: %22 + availableSpace);%0A console.log(%22$vlinks.width(): %22 + $vlinks.width());%0A console.log(%22breaks%5Bbreaks.length-1%5D: %22 + breaks%5Bbre... |
4ec227f9e7800600fd82aa70b9faf12825fd00e5 | Remove unused Actor.clear | actor.js | actor.js | var Actor = function(args) {
this.context = args.context;
this.x = args.startX;
this.y = args.startY;
this.name = args.name;
this.radius = 6;
this.direction = args.direction;
this.speed = PAC_MOVE_DELAY;
this.mouthPos = 0.0;
this.mouthIsOpening = true;
this.moveIntervalID = false;
this.keyStates =... | JavaScript | 0.000008 | @@ -565,152 +565,8 @@
%0A%7D;%0A
-Actor.prototype.clear = function() %7B%0A this.context.clearRect(this.x - this.radius, this.y - this.radius, 2 * this.radius, 2 * this.radius);%0A%7D;%0A
Acto
|
98acc9bddf40a0b287763cbf15b4985f21ff1f8c | Verify scope changes on Test | Source/client/app/account/profiles/profiles.controller.js | Source/client/app/account/profiles/profiles.controller.js | 'use strict';
angular.module('medCheckApp')
.controller('ProfilesCtrl', function ($scope, $http, $state, Auth, User, Profile, Allergen, $rootScope, Modal) {
$scope.getCurrentUser = Auth.getCurrentUser;
$scope.frmProfile = {};
$scope.frmProfile.name = "";
$scope.frmProfile.name = "";
$scope.frmProfile.age... | JavaScript | 0.000001 | @@ -5888,16 +5888,160 @@
rofiles;
+%0A if(!$scope.$$phase) %7B%0A console.log('dropped in $apply');%0A $rootScope.$apply();%0A %7D %0A
%0A
|
5ee135dcd0aa624039f81d52b1a8e51351faf518 | Fix wording. | src/commands/information/ping.js | src/commands/information/ping.js | const { Command } = require('discord.js-commando')
const os = require('os')
const moment = require('moment')
require('moment-duration-format')
module.exports = class PingCommand extends Command {
constructor (client) {
super(client, {
name: 'ping',
memberName: 'ping',
group: 'information',
... | JavaScript | 0.000005 | @@ -1351,36 +1351,41 @@
'name': '
-REST
+Websocket
Latency',%0A
@@ -2795,36 +2795,41 @@
'name': '
-REST
+Websocket
Latency',%0A
|
d405cfdac2c7242f728b452daf7f0b5482416518 | Add `clear` as alias | commands/util/clean.js | commands/util/clean.js | const { Command } = require('discord.js-commando');
const winston = require('winston');
module.exports = class CleanCommand extends Command {
constructor(client) {
super(client, {
name: 'clean',
aliases: ['purge', 'prune'],
group: 'util',
memberName: 'clean',
description: 'Deletes messages.',
deta... | JavaScript | 0.005238 | @@ -224,16 +224,25 @@
'prune'
+, 'clear'
%5D,%0A%09%09%09gr
|
91ad418d497623310c186c41af4be8bed3416ee5 | Revert "prevent admin js error for empty signout value" | lib/core/render.js | lib/core/render.js | var _ = require('underscore');
var cloudinary = require('cloudinary');
var fs = require('fs');
var jade = require('jade');
var serializeJavaScript = require('serialize-javascript');
/**
* Renders a Keystone View
*
* @api private
*/
var templateCache = {};
function render(req, res, view, ext) {
var keystone = t... | JavaScript | 0 | @@ -1624,16 +1624,8 @@
rl')
- %7C%7C null
,%0A%09%09
|
df62eda6518b1b2d963abe96abf337aab1cde5a9 | Fix routes order | lib/core/router.js | lib/core/router.js | import { join } from 'path'
import { Utils } from 'common'
export default class Router {
constructor (renderer) {
this.renderer = renderer
this.options = renderer.options
this.routes = {}
}
calculate (method, url) {
const routes = []
const keys = url.slice(1).split('/').filter(v => v.length... | JavaScript | 0 | @@ -346,16 +346,39 @@
routes%0A%0A
+ // Root middleware%0A
if (
@@ -1500,34 +1500,29 @@
peof parent.
-middleware
+param
=== 'object
@@ -1575,35 +1575,52 @@
type: '
-middleware'
+param',%0A value: key
,%0A
@@ -1654,34 +1654,29 @@
lers%5Bparent.
-middleware
+param
.filename%5D%0A
... |
85858e66138ce937fc00b43efbeeb0753462c20b | ADD ALL THE WHITESPACE | src/components/WordCard/index.js | src/components/WordCard/index.js | import React, { PropTypes } from 'react';
import colorByCharacter from '~/constants/colorByCharacter';
function WordCard(props) {
const { word, isClues } = props;
let cardClasses = `bo--1 bor--5 flex flex--jc--c align-items--center height--80 `;
if (isClues) {
cardClasses += word.isRevealed ? 'opacity--4-1... | JavaScript | 0.999741 | @@ -301,16 +301,17 @@
aled ? '
+
opacity-
@@ -321,16 +321,17 @@
10 ' : '
+
cursor--
@@ -397,16 +397,17 @@
er%5D %7C%7C '
+
white ';
@@ -490,16 +490,22 @@
acter%5D ?
+ ' ' +
colorBy
@@ -533,16 +533,17 @@
ter%5D : '
+
white ';
|
379a528d3c6d66c74f9d5c872d673e5c82ce9331 | Fix bgloader transition | src/components/bgloader/index.js | src/components/bgloader/index.js | import angular from 'angular';
import Template from './template.html';
import Styles from './styles.css';
export default angular
.module('ngui.bgloader', [])
.component('bgloader', {
template: `
<div class="main" ng-style="{'background': $ctrl.prebgcss, 'background-size': 'cover', 'background-p... | JavaScript | 0.000001 | @@ -712,16 +712,25 @@
n($scope
+,$timeout
) %7B%0A
@@ -1647,26 +1647,108 @@
$
-ctrl.prebgcss = ''
+timeout(function()%7B%0A $ctrl.prebgcss = '';%0A %7D,1000)
;%0A
|
afc4cc8a13925692213157d060f399fbf95b9af5 | Fix word wrapping error on multi-digit challenge vote counts | src/components/challenge/Post.js | src/components/challenge/Post.js | import React, { Fragment, Component } from 'react'
import {
Box,
Flex,
Icon,
Button,
Heading,
Link,
Text
} from '@hackclub/design-system'
import PropTypes from 'prop-types'
import { Modal, Overlay, CloseButton } from 'components/Modal'
import Comments from 'components/challenge/Comments'
import { dt, tiny... | JavaScript | 0.000014 | @@ -436,16 +436,147 @@
center;%0A
+ border-bottom: 1px solid $%7Bprops =%3E props.theme.colors.smoke%7D;%0A a %7B%0A flex: 1 1 auto;%0A %7D%0A%60%0A%0Aconst Description = Text.extend%60%0A
word-w
@@ -818,103 +818,8 @@
rd;%0A
- border-bottom: 1px solid $%7Bprops =%3E props.theme.colors.smoke%7D;%0A a %7B%0A... |
edeaf015b632a74e87a08fa5f0208ba0aabf0f69 | fix responses display for dashboard | public/index.js | public/index.js | $(function() {
// Chart effective rating
function quality(results) {
// Collect age results
var data = {};
for (var i = 0, l = results.length; i < l; i++) {
var qualityResponse = results[i].responses[0];
var k = String(qualityResponse.answer);
if (!da... | JavaScript | 0.000001 | @@ -2409,24 +2409,466 @@
%7D);%0A %7D%0A%0A
+ // poor man's html template for a response table row%0A function row(response) %7B%0A var tpl = '%3Ctr%3E%3Ctd%3E';%0A tpl += response.answer %7C%7C 'pending...' + '%3C/td%3E';%0A if (response.recordingUrl) %7B%0A tpl += '%3Ctd%3E%... |
b336cd4a8bfe66596b9debea9ec209168c16a09b | fix selection logic, re #1115 | arches/app/media/js/views/graph/permission-manager/grouped-node-list.js | arches/app/media/js/views/graph/permission-manager/grouped-node-list.js | define([
'backbone',
'knockout',
'views/list'
], function(Backbone, ko, ListView) {
var GroupedNodeList = ListView.extend({
/**
* A backbone view to manage a list of graph nodes
* @augments ListView
* @constructor
* @name GroupedNodeList
*/
single... | JavaScript | 0 | @@ -2226,16 +2226,53 @@
elected(
+parentItem ? parentItem.selected() :
!selecte
@@ -2486,32 +2486,68 @@
%7Delse%7B%0A
+ if (parentItem)%7B%0A
@@ -2581,16 +2581,35 @@
cted());
+ %0A %7D
%0A
|
6f2953f34fe5acf0f3c6129513117f00346753c5 | Update jquery.numbervalidation.min.js | demo/js/jquery.numbervalidation.min.js | demo/js/jquery.numbervalidation.min.js | /*
jQuery Number Validation Plugin v1.0.1
copyright: Alexander Perucci
license: Mozilla Public License Version 2.0
*/
(function(e){function t(t,n){n=n=="rgb(0, 0, 0)"?"":n;var r={rules:{type:"integer",required:false,maxvalue:undefined,minvalue:undefined,decimals:undefined,length:undefined},messages:{type:"... | JavaScript | 0.000003 | @@ -72,16 +72,47 @@
Perucci%0A
+ site: alexanderperucci.com%0A
lice
@@ -3437,8 +3437,9 @@
(jQuery)
+%0A
|
b0bff5ac33d4bb4ac67b6a98157f47aead142683 | Update drill-grid-definition-selector.js | waltz-ng/client/drill-grid/components/definition-selector/drill-grid-definition-selector.js | waltz-ng/client/drill-grid/components/definition-selector/drill-grid-definition-selector.js | /*
* Waltz - Enterprise Architecture
* Copyright (C) 2016, 2017 Waltz open source project
* See README.md for more information
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, eit... | JavaScript | 0 | @@ -1406,42 +1406,8 @@
%3E %7B%0A
- console.log('cM', %7B vm %7D)%0A
@@ -3677,8 +3677,9 @@
id%0A%7D;
+%0A
|
6211b0fe43eed2e61920cc936430e91df9f9ba9e | Add withWidgetComponentProps to story. | assets/js/modules/idea-hub/components/dashboard/DashboardCTA.stories.js | assets/js/modules/idea-hub/components/dashboard/DashboardCTA.stories.js | /**
* Idea Hub DashboardCTA 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/licens... | JavaScript | 0 | @@ -846,42 +846,242 @@
ort
-DashboardCTA from './DashboardCTA'
+%7B withWidgetComponentProps %7D from '../../../../googlesitekit/widgets/util/get-widget-component-props';%0Aimport DashboardCTA from './DashboardCTA';%0A%0Aconst WidgetWithComponentProps = withWidgetComponentProps( 'idea-hub' )( DashboardCTA )
;%0A%0Ac... |
af1a4979c8e891c78ef2c3a17ce962cb78333422 | move fetchAttachment | server/helpers/mail/GmailConnector.js | server/helpers/mail/GmailConnector.js | import Promise from 'bluebird';
import moment from 'moment';
import {
MailParser
} from 'mailparser';
import ImapConnector from './ImapConnector';
class GmailConnector extends ImapConnector {
constructor(options) {
super(options);
}
fetchEmails(storeEmail, boxType) {
return this.openBoxAsync(boxType)... | JavaScript | 0.000003 | @@ -1948,489 +1948,8 @@
%7D%0A%0A
- fetchAttachment(mail) %7B%0A return this.imap.collectEmailAsync(mail)%0A .then((msg) =%3E %7B%0A msg.attachments = this.imap.findAttachments(msg);%0A msg.downloads = Promise.all(msg.attachments.map((attachment) =%3E %7B%0A const emailId = msg.attribu... |
881132dc2eaf7d63bbfaf4e38c1d863224f0ce2e | Make TwG Settings Edit view consistent. | assets/js/modules/thank-with-google/components/settings/SettingsForm.js | assets/js/modules/thank-with-google/components/settings/SettingsForm.js | /**
* Thank with Google Settings Form component.
*
* 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/lice... | JavaScript | 0 | @@ -1264,30 +1264,8 @@
/%3E%0A
-%09%09%09%09%3CSupporterWall /%3E%0A
%09%09%09%09
@@ -1303,16 +1303,38 @@
lect /%3E%0A
+%09%09%09%09%3CSupporterWall /%3E%0A
%09%09%09%3C/div
|
68c52eb4f188547251efe9bbddc9e9a18902b8b8 | Make DOM to Aura event replay more defensive. | aura-components/src/main/components/ui/interactive/interactiveHelper.js | aura-components/src/main/components/ui/interactive/interactiveHelper.js | /*
* Copyright (C) 2013 salesforce.com, 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 ... | JavaScript | 0 | @@ -1849,16 +1849,78 @@
elper();
+%0A %0A if (!helper) %7B%0A return;%0A %7D
%0A%0A
@@ -2006,16 +2006,57 @@
s fired%0A
+ if (helper.preEventFiring) %7B%0A
@@ -2091,24 +2091,34 @@
ent, event);
+%0A %7D
%0A%0A //
@@ -2145,24 +2145,60 @@
Aura ... |
04edcc0903afb8707e0ebb192b4e40fea0448075 | send client composition with working even stream! | lib/flow.server.js | lib/flow.server.js | var Flow = require('./flow/flow');
var bunyan = require('bunyan');
var cache = require('./cache');
var socket = require('./socket');
module.exports = function factory (config) {
return socket.incoming(Flow({
module: function loadModule (name, callback) {
try {
var module = requ... | JavaScript | 0 | @@ -1432,15 +1432,44 @@
ns,
-data) %7B
+name) %7B%0A%0A name = name.toString();
%0A%0A
@@ -1646,16 +1646,23 @@
ypoints%5B
+stream.
session.
@@ -1810,24 +1810,493 @@
'%5D; %0A %7D%0A%0A
+ if (!name) %7B%0A return stream.end(new Error('Flow.server.composition: No name.'));%0A %7D%0A%0A try %... |
79488c2b0005ded5294ada63b83dfdf62a5faf53 | add organization action only logs through callback | lib/commands/add/organization.js | lib/commands/add/organization.js | #!/usr/bin/env node
var _ = require('lodash');
var async = require('async');
var utils = require('../../utils');
var actions = utils.getActions();
function registerCommand(program) {
program
.command('organization [quantity]')
.alias('o')
.option('-p, --parentOrganizationId <integer>', 'The parent organizati... | JavaScript | 0 | @@ -581,16 +581,330 @@
zationId
+, function(error, results) %7B%0A%09%09%09%09for (var i = 0, length = results.length; i %3C length; i++) %7B%0A%09%09%09%09%09console.log('');%0A%09%09%09%09%09console.log('New Organization:');%0A%09%09%09%09%09utils.printJSON(JSON.parse(results%5Bi%5D));%0A%09%09%09%09%09console.log('... |
4f405b3930f85c58ff6ee1b4c7b7e759595b3a2f | allow empty paths in filesystem collection | lib/core/FilesystemCollection.js | lib/core/FilesystemCollection.js | /*
filesystem collection class
knows how to crawl a directory and create
models from the raw data
*/
define([
'../core/Collection',
'lodash',
'path'
], function (Collection, _, npath) {
var _super = Collection.prototype;
return Collection.extend({
'namespace': 'FilesystemCollection',
'... | JavaScript | 0.000001 | @@ -1561,32 +1561,110 @@
th);%0A %7D%0A%0A
+ if (!self.filesystem.pathExists(path)) %7B%0A return;%0A %7D%0A%0A
var logg
|
3de781c0215f1ffeff69f0843b73979ba7a2e4fa | Update hdtxbuilder.js | lib/hdtxbuilder.js | lib/hdtxbuilder.js | 'use strict';
var multisigUtil = require('./util_multisig');
var TxBuilder = require('./txbuilder');
var HDTxBuilder = module.exports = function(change_address, hdwallet, feesize, network){
this.hdwallet = hdwallet;
this.network = network;
this.txb = new TxBuilder(
change_address,
... | JavaScript | 0 | @@ -628,66 +628,8 @@
k);%0A
- var path = wallet.path.split('/').slice(1).join(%22/%22);%0A
@@ -746,16 +746,23 @@
+wallet.
path%0A
|
7a7b86cf059d3aef8f73ea76b9f22135268480bb | Add default development environments. | lib/honeybadger.js | lib/honeybadger.js | 'use strict';
var EventEmitter = require('events').EventEmitter;
var util = require('./util');
var backend = require('./backend');
var logger = require('./logger');
var notice = require('./notice');
var middleware = require('./middleware');
var configOpts = ['apiKey', 'endpoint', 'projectRoot', 'environment',
'hostn... | JavaScript | 0 | @@ -1060,16 +1060,44 @@
ents = %5B
+'dev', 'development', 'test'
%5D;%0A%0A se
|
01bd9c6df9a4a5023674052e0302d1af07e5e443 | build the file | lib/Modal/modal.js | lib/Modal/modal.js | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_... | JavaScript | 0.000017 | @@ -2527,46 +2527,16 @@
ive:
- props.isOpen ? props.isOpen :
false,%0A
@@ -2527,24 +2527,24 @@
ive: false,%0A
+
entere
@@ -3087,16 +3087,58 @@
isOpen;%0A
+ var closeModal = _props.closeModal;%0A
%0A%0A
@@ -4158,16 +4158,34 @@
mounted:
+ isOpen ? isOpen :
this.st
@@ -4284,16 +4284,38 @@
... |
86da593eebdc7d7138b76ceac6d4931f851973df | Revert "Revert "negar/revoke_access"" | src/javascript/binary/websocket_pages/user/account/settings/authorised_apps/authorised_apps.ui.js | src/javascript/binary/websocket_pages/user/account/settings/authorised_apps/authorised_apps.ui.js | const ApplicationsData = require('./authorised_apps.data');
const BinarySocket = require('../../../../socket');
const showLocalTimeOnHover = require('../../../../../base/clock').showLocalTimeOnHover;
const localize = require('../../../../../base/localize').localize;
const showLoadingImage = ... | JavaScript | 0 | @@ -370,16 +370,91 @@
gImage;%0A
+const State = require('../../../../../base/storage').State;%0A
const Fl
@@ -688,16 +688,45 @@
rict';%0A%0A
+ let can_revoke = false;%0A%0A
cons
@@ -1262,97 +1262,104 @@
-return %5B%0A app.name,%0A scopes,%0A last_used,%0A... |
d4bccae4191eef25eeae3da28fb8ca1d99e02af9 | empty string should be iterable | lib/is-iterable.js | lib/is-iterable.js | 'use strict';
/**
* Checks if `obj` is iterable.
*
* @param {*} obj - some object.
* @return {boolean}
*/
module.exports = (obj) => Boolean(obj) && typeof obj[Symbol.iterator] === 'function';
| JavaScript | 0.999907 | @@ -19,72 +19,198 @@
%0A *
-Checks if %60obj%60 is iterable.%0A *%0A * @param %7B*%7D obj - some object
+Returns %60true%60 if the specified object implements the Iterator protocol via implementing a %60Symbol.iterator%60.%0A *%0A * @param %7B*%7D iterable - a value which might implement the Iterable protocol
.%0A... |
0f5b0ca28ee988697eb24d85549ba587676537c9 | Remove unnecessary translateGutter export | lib/lineBuilder.js | lib/lineBuilder.js | 'use strict'
const ACTUAL = Symbol('lineBuilder.gutters.ACTUAL')
const EXPECTED = Symbol('lineBuilder.gutters.EXPECTED')
function translateGutter (theme, gutter) {
if (gutter === ACTUAL) return theme.diffGutters.actual
if (gutter === EXPECTED) return theme.diffGutters.expected
return theme.diffGutters.padding
}... | JavaScript | 0.00001 | @@ -317,50 +317,8 @@
ng%0A%7D
-%0Aexports.translateGutter = translateGutter
%0A%0Acl
|
1e4ace613d24a63414f6ffaa11db3e3c162ae4fc | Use global to pull in the window | lib/loadClients.js | lib/loadClients.js | /**
* Treasure Client Loader
*/
// Modules
var _ = require('./utils/lodash')
// Helpers
function applyToClient (client, method) {
var _method = '_' + method
if (client[_method]) {
var arr = client[_method] || []
while (arr.length) {
client[method].apply(client, arr.shift())
}
delete client... | JavaScript | 0 | @@ -72,16 +72,54 @@
lodash')
+%0Avar window = require('global/window')
%0A%0A// Hel
@@ -569,22 +569,22 @@
sObject(
-global
+window
%5Bname%5D))
@@ -604,22 +604,22 @@
ippet =
-global
+window
%5Bname%5D%0A
|
18f7eb281c79294ac79ab4896ea74509c4733ea8 | Fix create new note should not use default note created time | lib/models/note.js | lib/models/note.js | "use strict";
// external modules
var fs = require('fs');
var path = require('path');
var LZString = require('lz-string');
var marked = require('marked');
var cheerio = require('cheerio');
var shortId = require('shortid');
var Sequelize = require("sequelize");
var async = require('async');
var moment = require('moment... | JavaScript | 0.000001 | @@ -9729,16 +9729,87 @@
(body);%0A
+ if (filePath !== config.defaultnotepath) %7B%0A
@@ -9856,16 +9856,42 @@
edTime;%0A
+ %7D%0A
|
db2c4d371b2361638a2818e729ce2ea63e0cdfc0 | use async/await with fetch | lib/actions/api.js | lib/actions/api.js | /* globals fetch */
import deepEqual from 'deep-equal'
import { createAction } from 'redux-actions'
import qs from 'qs'
if (typeof (fetch) === 'undefined') {
require('isomorphic-fetch')
}
import { queryIsValid } from '../util/state'
export const receivedPlanError = createAction('PLAN_ERROR')
export const received... | JavaScript | 0.000003 | @@ -483,16 +483,22 @@
return
+async
function
@@ -1142,31 +1142,43 @@
-fetch(url)
+let response, json%0A try %7B
%0A
-.then(
resp
@@ -1183,28 +1183,40 @@
sponse =
-%3E %7B
+ await fetch(url)
%0A
-
if (resp
@@ -1233,26 +1233,24 @@
s %3E= 400) %7B%0A
-
cons
@@ -1299,18 +1299,16... |
3669eb06ff1205a4abc6f62f8807be604bf492b9 | Fix pr creation | lib/advanced/pr.js | lib/advanced/pr.js | const _ = require('lodash');
const fs = require('fs');
const os = require('os');
const path = require('path');
const audit = require('../git/audit');
const branches = require('../utils/branches');
const configuration = require('../utils/configuration');
const execution = require('../utils/execution');
const prompt =... | JavaScript | 0 | @@ -1754,16 +1754,22 @@
iption =
+ await
prompt.
|
68c710ad4d1aee2863dfb65d8ce5657f19c186f2 | Add Escaping | lib/mu/renderer.js | lib/mu/renderer.js | var BUFFER_LENGTH = 1024 * 8;
var MAX_STACK_SIZE = 100;
var parser = require('./parser');
var nextTick = (typeof setImmediate == 'function') ? setImmediate : process.nextTick;
exports.render = render;
function render(tokens, context, partials, stream, callback) {
if (!Array.isArray(context)) {
context = [cont... | JavaScript | 0.000024 | @@ -1155,24 +1155,26 @@
token%5B1%5D) %7B%0A
+//
case
@@ -1191,32 +1191,34 @@
/ Unescaped Tag%0A
+//
stream
@@ -1277,24 +1277,26 @@
token%5B2%5D));%0A
+//
re
@@ -1353,16 +1353,76 @@
ped Tag%0A
+ case 'utag': // Unescaped Tag (forces escape below)%0A
@@ -4998,17 +4998,... |
16d94f0a9cc0877e781797cf2f7a0166c4d9222c | Change naming to improve code readability | lib/notify-atom.js | lib/notify-atom.js | "use babel";
import {CompositeDisposable} from "atom";
import http from "http";
import querystring from "querystring";
export default {
config: {
port: {
type: "integer",
default: 8090,
minimum: 1,
},
},
subscriptions: null,
packageName: "notify-atom",
activate (state) {
this.... | JavaScript | 0.000004 | @@ -411,18 +411,16 @@
const
-re
startSer
@@ -610,26 +610,24 @@
%7D;%0A%0A
-re
startServer(
@@ -888,18 +888,16 @@
-re
startSer
|
c41202b6b354206a301502a87948591bea92d12f | Add extra file types for OMeta. | lib/ometajs/api.js | lib/ometajs/api.js | var ometajs = require('../ometajs'),
uglify = require('uglify-js'),
vm = require('vm'),
Module = require('module'),
clone = function clone(obj) {
var o = {};
Object.keys(obj).forEach(function(key) {
o[key] = obj[key];
});
return o;
};
//
// ### function compilation... | JavaScript | 0 | @@ -2452,16 +2452,76 @@
tajs'%5D =
+ require.extensions%5B'.ojs'%5D = require.extensions%5B'.ometa'%5D =
functio
|
50fdc4b281515cdc124f88f1b7542e8e823b0cbc | send subRegion to the new endpoint | app/assets/javascripts/map/services/AnalysisNewService.js | app/assets/javascripts/map/services/AnalysisNewService.js | /* eslint-disable */
define(
[
'Class',
'uri',
'bluebird',
'helpers/geojsonUtilsHelper',
'map/services/GeostoreService',
'map/services/DataService'
],
function(
Class,
UriTemplate,
Promise,
geojsonUtilsHelper,
GeostoreService,
ds
) {
'use strict';
var GET... | JavaScript | 0 | @@ -3504,16 +3504,61 @@
region,%0A
+ subRegion: status.iso.subRegion,%0A
|
be98e086ce56d28a5c23c813a370ae4b3e31d297 | Remove save buttons if user is read-only | app/assets/javascripts/student_profile/TransitionNotes.js | app/assets/javascripts/student_profile/TransitionNotes.js | import React from 'react';
import PropTypes from 'prop-types';
import SectionHeading from '../components/SectionHeading';
import _ from 'lodash';
const styles = {
textarea: {
marginTop: 20,
fontSize: 14,
border: '1px solid #eee',
width: '100%' //overriding strange global CSS, should cleanup
}
};
c... | JavaScript | 0.000001 | @@ -3004,78 +3004,45 @@
-%3Cbutton onClick=%7Bthis.onClickSave%7D className=%22btn save%22%3E%0A %7B
+%7Bthis.renderButton(this.onClickSave,
this
@@ -3056,32 +3056,11 @@
Text
-(
)%7D%0A
- %3C/button%3E%0A
@@ -3437,25 +3437,27 @@
-%3Cbutton onClick=%7B
+%7Bthis.renderButton(
th... |
253c99b263c130b1183e3595a7c86f7f27dfbd9e | Rename event handler for consistency | app/scenes/SearchScreen/components/RepoSearchBar/index.js | app/scenes/SearchScreen/components/RepoSearchBar/index.js | import React, { Component } from 'react';
import {
SearchBar,
} from 'react-native-elements';
export default class RepoSearchBar extends Component {
constructor(props) {
super(props)
this.handleChange = this.handleChange.bind(this);
}
render() {
return (
<SearchBar
lightTheme
... | JavaScript | 0 | @@ -206,16 +206,20 @@
leChange
+Text
= this.
@@ -230,16 +230,20 @@
leChange
+Text
.bind(th
@@ -425,16 +425,20 @@
leChange
+Text
%7D /%3E%0A
@@ -460,16 +460,20 @@
leChange
+Text
(newUser
|
95a742be873bd83a32f4de140d6838fb4ce7e1f1 | use correct button type | renderer/components/UI/Tab.js | renderer/components/UI/Tab.js | import React from 'react'
import PropTypes from 'prop-types'
import { Flex } from 'rebass'
import Bar from './Bar'
import Button from './Button'
import Text from './Text'
class Tab extends React.PureComponent {
static propTypes = {
isActive: PropTypes.bool.isRequired,
itemKey: PropTypes.string.isRequired,
... | JavaScript | 0.000006 | @@ -680,16 +680,40 @@
%22small%22%0A
+ type=%22button%22%0A
|
6da312036cd3f10efae60858de8e4be5f5e16439 | Add simple test for store 'subscribe' function | simple-redux/src/store/simpleStore.js | simple-redux/src/store/simpleStore.js | 'use strict';
import counterReducer from '../reducers/counterReducer';
import simpleActionCreator from '../actions/simpleActionCreators';
function createStore( reducer, initialState ) {
let state = initialState;
let subscribers = [ ];
function dispatch( action ) {
state = reducer( state, action )... | JavaScript | 0.000004 | @@ -704,16 +704,45 @@
lue );%0A%0A
+store.subscribe( () =%3E %7B%0A
console.
@@ -737,32 +737,44 @@
console.log(
+ 'State: ' +
store.getState(
@@ -770,32 +770,37 @@
e.getState() );%0A
+%7D );%0A
store.dispatch(
@@ -822,41 +822,8 @@
);%0A
-console.log( store.getState() );%0A
stor
@@ -857,41 +857,8 @@
... |
87b2eab406c2ddab5f4324cf490b29c625795703 | Fix handler names | lib/assetLoader.js | lib/assetLoader.js | var EventEmitter2 = require('eventemitter2').EventEmitter2;
var _ = require('lodash');
var AssetLoader = function(params) {
EventEmitter2.apply(this, arguments);
AssetLoader.prototype.init.apply(this, arguments);
};
var proto = AssetLoader.prototype = Object.create(EventEmitter2.prototype, {
constructor: {
conf... | JavaScript | 0.000003 | @@ -932,16 +932,18 @@
;%0A%09%09xhr.
+on
load = t
@@ -985,16 +985,18 @@
;%0A%09%09xhr.
+on
error =
|
2ccc6fde32ca4fc6ee0ee609bd458f06e5ab87b1 | remove unnecessary code. | lib/automigrate.js | lib/automigrate.js | const async = require('asyncawait/async');
const await = require('asyncawait/await');
const Promise = require('bluebird');
const fs = require('fs');
const helper = require('./index/helper');
module.exports = function(opts) {
return new Promise(function(resolve, reject) {
opts = opts || {};
const knex = requ... | JavaScript | 0.000011 | @@ -6204,36 +6204,8 @@
d();
-%0A console.log(opts.path);
%0A%0A
|
426a71fc61ec92beef37241e3de57e9db1845af7 | Fix accidental trailing zero in offsets | hexdump.js | hexdump.js | 'use strict';
var zero = function (n, max) {
n = n.toString(16).toUpperCase();
while (n.length < max) {
n = '0' + n;
}
return n;
};
module.exports = function (buffer) {
var rows = Math.ceil(buffer.length / 16);
var last = buffer.length % 16 || 16;
var offsetLength = buffer.length.toString(16).length... | JavaScript | 0.999999 | @@ -473,16 +473,17 @@
str + '
+
';%0A%0A v
@@ -772,18 +772,16 @@
%5B0m '*/
- +
' ';%0A
|
e4032f6a95f141904ceba2950083311d59fd17b7 | Store vault data on the user once we have it Useful for further sharing process and progress calculation | js/app/controllers/share.js | js/app/controllers/share.js | 'use strict';
/**
* @ngdoc function
* @name passmanApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the passmanApp
*/
angular.module('passmanApp')
.controller('ShareCtrl', ['$scope', 'VaultService', 'CredentialService', 'SettingsService', '$location', '$routeParams', 'ShareService', function ... | JavaScript | 0 | @@ -3109,24 +3109,53 @@
tion(data)%7B%0A
+%09%09%09%09%09%09list%5Bi%5D.vaults = data;%0A
%09%09%09%09%09%09consol
|
8c1f2752a8bc33a3466d9b618b5198b57050d3a3 | add default w h x y | lib/core/Parser.js | lib/core/Parser.js | /**
* GKA (generate keyframes animation)
* author: joeyguo
* HomePage: https://github.com/joeyguo/gka
* MIT Licensed.
*
*/
const fs = require('fs'),
path = require('path'),
sizeOf = require('image-size'),
PNG = require('pngjs').PNG;
// 根据文件名最后的数字进行排序
const sortByFileName = files => {
const ... | JavaScript | 0.000114 | @@ -3073,24 +3073,76 @@
eH: height,%0A
+%09%09%09%09%09w: width,%0A%09%09%09%09%09h: height,%0A%09%09%09%09%09x: 0,%0A%09%09%09%09%09y: 0%0A
%09%09%09%09%7D);%0A
|
b70d9284ca219c4c1d2872a6990ea223957f7660 | fix redirect | js/routers/accountRouter.js | js/routers/accountRouter.js | define(['jquery', 'backbone','views/AlertGeneralView','views/AlertConfirmView','views/AlertErrorView','views/GlobalView','views/LoginView',
'views/RegistrationView','views/CompleteRegistrationView','views/ForgotPasswordView','views/ResetPasswordView','views/ProjectMessagingView',
'views/ProfileView']
, ... | JavaScript | 0.000001 | @@ -3296,14 +3296,21 @@
'/s
-ign-in
+andbox-logout
/';%0A
|
d5896fc4ba7cedd723fd001fb5a0de7ea2fa47ce | Fix storage bug | js/src/models/Tournament.js | js/src/models/Tournament.js | import Vue from 'vue'
import { isGoZeroDateOrFalsy } from '../util/date.js'
import moment from 'moment'
import Event from './Event.js'
import Player from './Player.js'
import Person from './Person.js'
import Match from './Match.js'
import _ from 'lodash'
export default class Tournament {
static fromObject (obj) {
... | JavaScript | 0.000001 | @@ -4,18 +4,20 @@
ort
-Vu
+stor
e from '
vue'
@@ -16,10 +16,20 @@
om '
-vu
+../core/stor
e'%0Ai
@@ -2361,20 +2361,87 @@
+if (store.getters.upcoming.length === 0) %7B%0A return false%0A %7D%0A
return
-Vue.$
stor
|
19086b49a25071cb424862b296afccfe65f48d82 | document query params | js/util/query-parameters.js | js/util/query-parameters.js | // Copyright 2002-2013, University of Colorado Boulder
/**
* Reads query parameters from browser window's URL.
* This file must be loaded before requirejs is started up, and this file cannot be loaded as an AMD module.
* The easiest way to do this is via a <script> tag in your HTML file.
*
* @author Sam Reid, PhE... | JavaScript | 0.000001 | @@ -286,16 +286,808 @@
L file.%0A
+ * %3Cp%3E%0A * Available query parameters:%0A *%0A * dev - enable developer-only features%0A * fuzzMouse - randomly sends mouse events to sim%0A * fuzzTouches - randomly sends touch events to sim (not working as of 10/8/13)%0A * locale - test with a specific locale%0A * playbackInpu... |
b29a80481c279a4f53ff65e6b54052891362b989 | Add initial error handling | lib/createClass.js | lib/createClass.js | var React = require('react')
, _ = require('./utils')
, Constants = require('./Constants')
, StackInvoker = require('./StackInvoker')
, STATUS_STALE = Constants.status.STALE
, TIMESTAMP_LOADING = Constants.timestamp.loading;
var anyDataset = function(names, predicate) {
var self = this;
if (names) {
... | JavaScript | 0.000001 | @@ -3263,19 +3263,16 @@
- //
validat
@@ -3300,15 +3300,8 @@
data
-.errors
%7C%7C
@@ -3409,16 +3409,16 @@
rapper;%0A
-
%7D)
@@ -3416,24 +3416,220 @@
%0A %7D);%0A%0A
+ wrapper.errors = function(attribute) %7B%0A if (attribute) %7B%0A return validationErrors%5Battribute%5... |
dc40b34f150affe005fddd37da34035755d56c6a | fix typo: refreshhing -> refreshing | lib/credentials.js | lib/credentials.js | var AWS = require('./core');
/**
* Represents your AWS security credentials, specifically the
* {accessKeyId}, {secretAccessKey}, and optional {sessionToken}.
* Creating a `Credentials` object allows you to pass around your
* security information to configuration and service objects.
*
* Note that this class typ... | JavaScript | 0.999733 | @@ -3690,17 +3690,16 @@
refresh
-h
ing of%0A
|
16721f84c9329dce995fa080bbde1f647726978e | use default duration here | addon/components/animated-each.js | addon/components/animated-each.js | import Ember from 'ember';
import layout from '../templates/components/animated-each';
import { task, allSettled } from 'ember-concurrency';
import { afterRender } from '../concurrency-helpers';
import Move from '../motions/move';
export default Ember.Component.extend({
layout,
tagName: '',
motionService: Ember.... | JavaScript | 0 | @@ -3317,27 +3317,8 @@
rite
-, %7B duration: 500 %7D
);%0A
|
6349ec8494e57a19c3d80e327c3f6b4c4122665a | stop panel closing when selecting options | addon/components/as-side-panel.js | addon/components/as-side-panel.js | import Ember from 'ember';
import KeyEventsMixin from 'ember-cli-paint/mixins/key-events';
import TransitionDurationMixin from 'ember-cli-paint/mixins/transition-duration';
import InboundActions from 'ember-component-inbound-actions/inbound-actions';
export default Ember.Component.extend(KeyEventsMixin, TransitionDura... | JavaScript | 0 | @@ -856,24 +856,99 @@
('%3E div');%0A%0A
+ if ($target.closest('html').length === 0) %7B%0A return;%0A %7D%0A%0A
if($ta
|
8ea373b31234d80e18cd8da1496396f86ad159c7 | Update defaultObjs.js | lib/defaultObjs.js | lib/defaultObjs.js | function createDefaults(lang, temperature, currency) {
var defaults = {
"level.dimmer": {
"def": 0,
"type": "number",
"read": true,
"write": true,
"min": 0,
... | JavaScript | 0.000001 | @@ -1610,16 +1610,181 @@
chable%22%0A
+ %7D,%0A %22switch%22 : %7B%0A %22def%22: false, %0A %22type%22: %22boolean%22, %0A %22read%22: true, %0A %22write%22: true, %0A
|
e44066159c5abe2419fe06d8bf7fe740dc4df3b5 | Fix check for valid date to avoid displaying invalid dates | source/js/src/widgets/build_status.js | source/js/src/widgets/build_status.js | //noinspection JSUnusedAssignment
dashlight.widgets = (function (module) {
module.build_status = (function () {
var build = function (content) {
var text;
var textDuration;
var minutes;
text = content.branch + " build"
+ " is " + content.stat... | JavaScript | 0.000001 | @@ -325,34 +325,32 @@
if (
-!!
content.startTim
@@ -346,24 +346,34 @@
nt.startTime
+.isValid()
) %7B%0A
@@ -533,16 +533,26 @@
nishTime
+.isValid()
) %7B%0A
|
dace3350e29e45842fd31440fb1d925d30b6f463 | fix incorrect id assignment of record ids plugin | lib/RecordIdsPlugin.js | lib/RecordIdsPlugin.js | /*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const { compareNumbers } = require("./util/comparators");
const identifierUtils = require("./util/identifier");
/** @typedef {import("./Chunk")} Chunk */
/** @typedef {import("./Compiler")} Compiler */
/... | JavaScript | 0 | @@ -6254,24 +6254,64 @@
f chunks) %7B%0A
+%09%09%09%09%09%09%09if (chunk.id !== null) continue;%0A
%09%09%09%09%09%09%09const
|
cb6b464ea1a0d6e5de9244750486d9b20551b244 | fix native mock | test/helpers/RNBranch.mock.js | test/helpers/RNBranch.mock.js | import React from 'react-native'
const defaultSession = {params: {}, error: null}
React.NativeModules.RNBranch = {
getInitSessionResult() {
return new Promise((resolve, reject) => {
setTimeout(() => resolve(defaultSession), 500)
})
}
}
| JavaScript | 0.000002 | @@ -116,11 +116,14 @@
%7B%0A
-get
+redeem
Init
|
cc4ae294698f8a20159fda730d202657615e0e5b | Set logger | lib/fieldFilter.js | lib/fieldFilter.js | 'use strict';
var through = require('through2');
var winston = require('winston');
var resolveFields = require('./resolveFields');
var formatAddress = require('./formatAddress');
var objectMode = {objectMode: true};
module.exports = function(fields, logger){
if(!logger) logger = winston;
//Chunk is a GeoJSON fea... | JavaScript | 0.000002 | @@ -214,34 +214,40 @@
e%7D;%0A
-%0Amodule.exports =
+var logger = winston;%0A%0A%0A
function
(fie
@@ -246,57 +246,29 @@
tion
-(
+
field
-s, logger)%7B%0A if(!logger) logger = winston;
+Filter(fields)%7B
%0A%0A
@@ -858,10 +858,110 @@
%0A %7D);%0A%7D
+%0A%0AfieldFilter.setLogger = function(newLogger)%7B%0A ... |
0307d8d277220f67bfbb7500193f1d3b53a6bfe1 | handle going offline | lib/gc_api/ajax.js | lib/gc_api/ajax.js | var atevent = null;
var test = false;
var cities_grabbed = {};
function at(num){ atevent = num; }
function sms_count(sent, received, limit){
$('#sms_sent').html(sent);
$('#sms_received').html(received);
$('#sms_counter').show();
if (limit > 0) {
window.remaining = Math.max(limit - sent - received, 0);
... | JavaScript | 0 | @@ -1074,14 +1074,235 @@
==
-401) %7B
+0) %7B%0A Notifier.error(%22You are offline.%22);%0A Ajax.schedule_autoload(30 * 1000);%0A %7D%0A if (req.status == 401) %7B%0A if (demo) return Notifier.error(%22That action is not supported in demo mode.%22);
%0A
@@ -2268,24 +2268,... |
e58298c298046a2d48bd70207aab8b275d0acfe7 | Fix IE compat | Bacon.UI.js | Bacon.UI.js | (function() {
var isChrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
function nonEmpty(x) { return x && x.length > 0 }
Bacon.UI = {}
Bacon.UI.textFieldValue = function(textfield) {
function getValue() { return textfield.val() }
function autofillPoller() {
if (textfield.attr("typ... | JavaScript | 0.000029 | @@ -1553,15 +1553,18 @@
this
-.
+%5B%22
switch
+%22%5D
(fun
|
ba19f294b4a21b354de4e945760fc8e38f6a682f | fix Jasmine failing test | edx_notifications/server/web/static/edx_notifications/js/test/spec/counter_icon_view_Spec.js | edx_notifications/server/web/static/edx_notifications/js/test/spec/counter_icon_view_Spec.js | ;(function (define) {
define([
'jquery',
'backbone',
'counter_icon_view',
'text!notification_icon_template',
'text!notification_pane_template'
], function ($, Backbone, CounterIconView, NotificationIcon, NotificationPane) {
'use strict';
describe("CounterIconView", function(){
beforeEach(... | JavaScript | 0.000012 | @@ -947,16 +947,91 @@
ionPane%0A
+ %7D,%0A refresh_watcher: %7B%0A name: %22none%22%0A
@@ -1736,8 +1736,9 @@
define);
+%0A
|
cd1f32a4b1bdd22b811db5f8e11bb04b961fbf6c | Change the behvior of the id filter flag so that it works the same way as the rest | lib/hapi-statsd.js | lib/hapi-statsd.js | var StatsdClient = require('statsd-client'),
Hoek = require('hoek'),
defaults = {
statsdClient: null,
host: 'localhost',
port: '8125',
prefix: 'hapi',
pathSeparator: '_',
template: '{path}.{method}.{statusCode}',
defaultFilter: {
enableCounter: true,
enableTimer: true,
},
filters: [],
};
mod... | JavaScript | 0 | @@ -1060,30 +1060,25 @@
%09%09%09%09if (
-route.settings
+filter.id
&& rout
@@ -1087,19 +1087,16 @@
settings
-.id
&& rout
@@ -1109,17 +1109,17 @@
ings.id
-=
+!
== filte
@@ -1138,19 +1138,20 @@
%09return
-tru
+fals
e;%0A%09%09%09%09%7D
@@ -1493,24 +1493,37 @@
d%0A%09%09%09%09return
+ filter.id %7C%7C
filt... |
8697db8ee0871aae32ad027f6d8ea07d3a99f572 | Replace React.PropTypes with PropTypes | lib/highlighter.js | lib/highlighter.js | var React = require('react');
var RegExpPropType = require('./regExpPropType');
var escapeStringRegexp = require('escape-string-regexp');
var blacklist = require('blacklist');
var createReactClass = require('create-react-class');
var PropTypes = require('prop-types');
function removeDiacritics(str, blacklist) {
if (... | JavaScript | 0.018127 | @@ -1263,22 +1263,16 @@
OfType(%5B
-React.
PropType
@@ -1281,22 +1281,16 @@
string,
-React.
PropType
|
5a2e418efebf05d29dd4b631f488c00f77c8d697 | Remove dead code. | lib/http-header.js | lib/http-header.js | var BufferWriter = require('buffer-helper');
var LF = "\n".charCodeAt(0)
, CR = "\r".charCodeAt(0)
, SP = " ".charCodeAt(0)
, CO = ":".charCodeAt(0)
, H = "H".charCodeAt(0)
, T = "T".charCodeAt(0)
, P = "P".charCodeAt(0);
var HttpHeader = function(rawHeader) {
this.rawHeader = rawHeader;
this.modified... | JavaScript | 0.00001 | @@ -4413,409 +4413,8 @@
%7D%0A%0A%0A
-var __prout = function() %7B%0A try %7B%0A var u = url.split('//');%0A var protocol = u%5B0%5D;%0A var host = u%5B1%5D.split('/')%5B0%5D;%0A var rest = u%5B1%5D.split('/');%0A %7D catch (e) %7B%0A console.log(%22Error parsing : %22.red +url);%0A console.log(dat... |
95b12878e8e15b7e61019f2dbf4cc1400403ef16 | Fix tokenSecret related test case. | test/strategies/token-test.js | test/strategies/token-test.js | var vows = require('vows');
var assert = require('assert');
var url = require('url');
var util = require('util');
var TokenStrategy = require('passport-http-oauth/strategies/token');
vows.describe('TokenStrategy').addBatch({
'strategy': {
topic: function() {
return new TokenStrategy(function() {}, func... | JavaScript | 0.000001 | @@ -821,23 +821,8 @@
' %7D,
- %7B tokenSecret:
'li
@@ -831,18 +831,16 @@
-zipped'
- %7D
);%0A
|
527fc02601be38796fc28272c4ab688a69b46bfb | Move assets to cdn.busdetective.com | Brocfile.js | Brocfile.js | /* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var app = new EmberApp({
dotEnv: {
clientAllowedKeys: ['CDN_HOST']
},
fingerprint: {
prepend: 'http://drwikejswixhx.cloudfront.net/'
}
});
// Use `app.import` to add additional libraries to the generated
// outpu... | JavaScript | 0 | @@ -204,36 +204,28 @@
p://
-drwikejswixhx.cloudfront.net
+cdn.busdetective.com
/'%0A
|
84b6bca604a5d57a6911454ac1c106a803adae31 | Add CGM identifier | lib/parsers/ccda/demographics.js | lib/parsers/ccda/demographics.js | /*
* Parser for the CCDA demographics section
*/
Parsers.CCDA.demographics = function (ccda) {
var parseDate = Documents.parseDate;
var parseName = Documents.parseName;
var parseAddress = Documents.parseAddress;
var data = {}, el;
var demographics = ccda.section('demographics');
var patient = d... | JavaScript | 0.000001 | @@ -584,19 +584,39 @@
') === '
-cgm
+2.16.840.1.113883.4.825
') %7B%0A
|
d486b00300e92bc48a2ad1921aeabcdc349077c8 | Add explanation why CSRF test has to stay disabled | test/e2e/profileSpec.js | test/e2e/profileSpec.js | /*
* Copyright (c) 2014-2020 Bjoern Kimminich.
* SPDX-License-Identifier: MIT
*/
const config = require('config')
const utils = require('../../lib/utils')
describe('/profile', () => {
let username, submitButton, url, setProfileImageButton
protractor.beforeEach.login({ email: 'admin@' + config.get('application... | JavaScript | 0 | @@ -3196,287 +3196,222 @@
=%3E %7B
-%0A xit('should be possible to perform a CSRF attack against the user profile page', () =%3E %7B // FIXME Fails on Travis-CI. Also fails when run manually with %22Uncaught DOMException: Blocked a frame with origin %22http://htmledit.squarefree.com%22 from accessing a cross-origin... |
0ae0703689814eadb876b70ab80928e62f8b891c | Fix typo | lib/commands/yuidoc.js | lib/commands/yuidoc.js | 'use strict';
var execSync = require('execSync');
var fs = require('fs');
var calculateVersion = require('ember-cli-calculate-version').calculatedVersion;
module.exports = {
name: 'yuidoc',
description: 'Generates html documentation using YUIDoc',
run: function(options, rawArgs) {
console.log('calcula... | JavaScript | 0.999999 | @@ -141,25 +141,24 @@
').calculate
-d
Version;%0A%0Amo
@@ -334,24 +334,25 @@
alculate
-d
Version
+()
);%0A v
|
64eebdee75b6108cb68075b01db0fd5e6b9a65b5 | Add setLogger-method | lib/processors/load/prototype.js | lib/processors/load/prototype.js | /**
*
* @licstart The following is the entire license notice for the JavaScript code in this file.
*
* Base prototypes of processors, converters, record store and record set for recordLoader
*
* Copyright (c) 2015 University Of Helsinki (The National Library Of Finland)
*
* This file is part of record-loader-... | JavaScript | 0.000002 | @@ -1811,24 +1811,72 @@
vel)%0A%09 %7B%0A
+%09 %7D,%0A%09 setLogger: function(logger)%0A%09 %7B%0A
%09 %7D%0A%09%7D;%0A
|
6f2e0ec6227c3cc54653da2361d411f7a42b8d43 | remove debug print | lib/dashboard/index.js | lib/dashboard/index.js | 'use strict';
var express = require('express');
var configHelper = require('../config');
var log = require('../logger')('nodecg/lib/dashboard');
var bundles = require('../bundles');
var favicon = require('express-favicon');
var path = require('path');
var fs = require('fs');
var ncgUtils = require('../util');
var jade... | JavaScript | 0.000008 | @@ -1607,32 +1607,8 @@
);%0A%0A
- console.log(html);%0A%0A
|
68932d8d8adb3001492238643809e404622a8f3a | Use minify html flag | src/configs/webpack/react-app.js | src/configs/webpack/react-app.js | // Licensed under the Apache License, Version 2.0 (the “License”); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed unde... | JavaScript | 0.000582 | @@ -839,16 +839,30 @@
minify,%0A
+ minifyHtml,%0A
%7D = getS
@@ -2710,24 +2710,46 @@
,%0A minify
+: minify %7C%7C minifyHtml
,%0A templa
|
71fe5798c8fc0cbde8f1476ea067e61154c6cb2f | add opts to sendSingleMessage, sendSingleMessageAndReceive | lib/json-socket.js | lib/json-socket.js | var net = require('net');
var StringDecoder = require('string_decoder').StringDecoder;
var decoder = new StringDecoder();
var JsonSocket = function(socket, opts) {
this._socket = socket;
this._contentLength = null;
this._buffer = '';
this._opts = opts || {}
if (!this._opts.delimeter) {
this._... | JavaScript | 0 | @@ -660,32 +660,38 @@
essage, callback
+, opts
) %7B%0A callback
@@ -759,32 +759,38 @@
new net.Socket()
+, opts
);%0A socket.co
@@ -1049,32 +1049,38 @@
essage, callback
+, opts
) %7B%0A callback
@@ -1156,16 +1156,22 @@
Socket()
+, opts
);%0A s
|
27653d11497cd0939f15811f88eedd564cef01cc | Fix project previews (#1684) | src/containers/ProjectPreview.js | src/containers/ProjectPreview.js | import {connect} from 'react-redux';
import ProjectPreview from '../components/ProjectPreview';
import {changeCurrentProject} from '../actions';
import {
getCurrentProjectKey,
getCurrentProjectPreview,
getProject,
} from '../selectors';
function makeMapStateToProps() {
return function mapStateToProps(state, {... | JavaScript | 0 | @@ -150,33 +150,30 @@
ort %7B%0A
-getCurren
+makeGe
tProject
Key,%0A g
@@ -164,19 +164,23 @@
tProject
-Key
+Preview
,%0A getC
@@ -188,31 +188,27 @@
rrentProject
-Preview
+Key
,%0A getProje
@@ -264,24 +264,78 @@
ToProps() %7B%0A
+ const getProjectPreview = makeGetProjectPreview();%0A%0A
return fun
@@ -4... |
265ad9d23f629c80c6e37735f63bee6ecd83d399 | add MAX_PLACEABLES | lib/l20n/parser.js | lib/l20n/parser.js | if (typeof define !== 'function') {
var define = require('amdefine')(module);
}
define(function (require, exports, module) {
'use strict';
var EventEmitter = require('./events').EventEmitter;
var nestedProps = ['style', 'dataset'];
function Parser() {
/* Public */
this.parse = parse;
this.par... | JavaScript | 0.001485 | @@ -443,16 +443,48 @@
tener;%0A%0A
+%0A var MAX_PLACEABLES = 100;%0A%0A
var
@@ -4629,32 +4629,60 @@
exString(str) %7B%0A
+%0A var placeables = 0;%0A%0A
if (str.in
@@ -5284,32 +5284,213 @@
m()%0A %7D);%0A
+ placeables++;%0A if (placeables %3E MAX_PLACEABLES) %7B%0A t... |
789446e97656ef1f1128ebc842ec7e9b02b0283e | Fix tests. | src/components/PermissionsModal/PermissionsModal.js | src/components/PermissionsModal/PermissionsModal.js | import {
isEmpty,
get,
orderBy,
remove,
} from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import { connect as reduxConnect } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import { change } from 'redux-form';
import { stripesConnect } from '@folio/stripes/core'... | JavaScript | 0 | @@ -6353,32 +6353,79 @@
%3CButton%0A
+ data-test-permissions-modal-save%0A
ma
@@ -6628,32 +6628,81 @@
%3CButton%0A
+ data-test-permissions-modal-cancel%0A
cl
|
5ac9f444686b9de79687cc72c4f6574e0cd5af7e | fix lit-element url | src/content/getusermedia/getdisplaymedia/js/main.js | src/content/getusermedia/getdisplaymedia/js/main.js | /*
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree.
*/
'use strict';
import {LitElement, html} from 'https://unpkg.com/@polymer/lit-element@0.6.2?module... | JavaScript | 0.004665 | @@ -306,16 +306,31 @@
nt@0.6.2
+/lit-element.js
?module'
|
33817a55bfc6566ff0cfa879c17478d728afc7c7 | Simplify loop | lib/loke-config.js | lib/loke-config.js | 'use strict';
var yaml = require('js-yaml');
var fs = require('fs');
var path = require('path');
var mergeInto = require('./merge-into');
var objLock = require('./obj-lock');
/**
* Creates a new LOKE config instance
* @param {String} appName The application name or ID.
* Should match where ... | JavaScript | 0.000035 | @@ -1988,17 +1988,8 @@
ths.
-slice(1).
forE
@@ -2005,19 +2005,95 @@
ion(path
-) %7B
+, i) %7B%0A if (i === 0) %7B%0A // already processed above.%0A return;%0A %7D
%0A if
|
14e73898acd0c55c7b8c4791df3d9a4953a8bd08 | Remove old comment | src/plugins/denormalizer/index.js | src/plugins/denormalizer/index.js | import {
compose, curry, head, map, mapObject, mapValues,
prop, reduce, fromPairs, toPairs, toObject, values,
uniq, flatten, get, set, snd
} from '../../fp';
/* TYPES
*
* Path = [String]
*
* Accessors = [ (Path, Type | [Type]) ]
*
* Fetcher = {
* getOne: id -> Promise Entity
* getSome: [id] -> Promise ... | JavaScript | 0 | @@ -1285,56 +1285,9 @@
tem)
- // wasteful to do that all the time, try ealier
+;
%0A
|
c49eee1f6004b31090a3da7f3100cb2272947e02 | Convert rest of tests to use mock store | test/middleware.spec.js | test/middleware.spec.js | import {
authenticate,
createAuthenticator,
createAuthMiddleware,
reducer
} from '../src'
import createMockStorage from './utils/testStorage'
import configureStore from 'redux-mock-store'
const createTestAuthenticator = () => createAuthenticator({
name: 'test',
authenticate: jest.fn(data => Promise.resolve... | JavaScript | 0.000815 | @@ -2892,75 +2892,8 @@
r()%0A
- const getState = () =%3E (%7B session: reducer(undefined, %7B%7D) %7D)%0A
@@ -3005,95 +3005,79 @@
nst
-nextHandler = middleware(%7B getState %7D)%0A const actionHandler = nextHandler(() =%3E %7B%7D
+mockStore = configureStore(%5Bmiddleware%5D)%0A const store = moc... |
950926d30f5a9636d3e51297e5909045eb1ccd21 | Update rest-uris to match servers new uris | lib/moie-client.js | lib/moie-client.js | 'use babel'
jQuery = require('jquery')
export default class MoieClient {
constructor(servername, port) {
port = (port === undefined) ? 9001 : port
servername = (servername === undefined) ? 'localhost' : servername
this.baseAddress = "http://" + servername + ":" + port + "/" + "moie/"
this.mimeType =... | JavaScript | 0 | @@ -294,16 +294,76 @@
%22moie/%22%0A
+ this.projectBaseAddress = this.baseAddress + %22project/%22%0A
this
@@ -1069,33 +1069,40 @@
url: this.
-b
+projectB
aseAddress + 'di
@@ -1102,47 +1102,38 @@
s +
-'disconnect?project-id='+this.projectId
+%60$%7Bthis.projectId%7D/disconnect%60
,%0A
@@ -1645,33 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.