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 |
|---|---|---|---|---|---|---|---|
79ae4607f562cf2ab1e7d1a936c2ed78c45b2eeb | Fix issues | polyocat.js | polyocat.js | async function main() {
const REGEXP = {
"/ year": /\/ year$/,
"/ month": /\/ month$/,
"N open": /^([\d,]+) Open$/,
"N closed": /^([\d,]+) Closed$/,
"N files": /^([\d,]+) files?$/,
"N forks": /^([\d,]+) forks?$/,
"N stars": /^([\d,]+) stars?$/,
"N comments": /^([\d,]+) comments?$/,
... | JavaScript | 0.000002 | @@ -494,12 +494,17 @@
itor
+(?:y%7C
ies
-?
+)
$/,%0A
@@ -1717,27 +1717,8 @@
%7D)%0A%0A
- translateTitle()%0A
tr
@@ -3563,147 +3563,8 @@
%0A %7D
-%0A%0A function translateTitle() %7B%0A let title = document.title.trim()%0A let value = find(title)%0A if (value) document.title = value%0A %7D
%0A %0A ... |
b6688a349c558d5e723513fe27045206c0e5480c | bring Vector export up to speed with recent changes | lib/vector.js | lib/vector.js | /**
* Vector: One dimensional array.
* Extends upon the Array datatype to do some serious number crunching.
* @author Fredrick Galoso
*/
Array.prototype.asc = function(a, b) {
return a - b;
};
Array.prototype.desc = function(a, b) {
return b - a;
};
/* Returns a clone of the Vector object */
Array.protot... | JavaScript | 0 | @@ -6289,15 +6289,25 @@
orts
-.Vector
+ = module.exports
= A
@@ -6312,9 +6312,8 @@
Array;%0A
-%0A
|
e2cfa4444191f2e790f0ade6671578e0172886f7 | change sql and fixed minor bugs | libs/stats.js | libs/stats.js | var pg = require('pg');
var sql = new pg.Client('postgres://netscout:dbadmin@localhost/pgsql_stealth_db');
var isSqlReady = true;
var moment = require('moment');
var reg_ex = {
ipv4: new RegExp(/^([1-9][0-9]{0,2})\.([0-9]{1,3}\.){2}([0-9]{1,3})$/i),
community_id: new RegExp(/^(0)\.([0-9]{1,3}\.){2}([0-9]{1,3})$/i)... | JavaScript | 0 | @@ -369,16 +369,18 @@
)/i)%0A%7D%0A%0A
+//
sql.on('
@@ -457,16 +457,16 @@
inished%0A
-
sql.on('
@@ -1096,32 +1096,33 @@
.fromserveroctet
+s
, ksi.clientaddr
@@ -1150,32 +1150,73 @@
ns, comm.name %5C%0A
+ from ksi_hourly as ksi %5C%0A
@@ -2525,16 +2525,18 @@
HH:mm:ss
+ZZ
');%0A ... |
3d47b8a0206b5ba2ad505f2e8750fb6f100b3f0b | Add jake watch task | Jakefile.js | Jakefile.js | var build = require('./build/build.js'),
lint = require('./build/hint.js'),
fs = require('fs');
var COPYRIGHT = fs.readFileSync('src/copyright.js', 'utf8');
desc('Check Raphael Layer source for errors with JSHint');
task('lint', function() {
var files = build.getFiles();
console.log('Checking for JS errors...');... | JavaScript | 0.000002 | @@ -1668,16 +1668,168 @@
%09%7D%0A%7D);%0A%0A
+desc('Watch src directory and build on any changes');%0AwatchTask(%5B'build'%5D, function () %7B%0A this.watchFiles.include(%5B%0A './src/**/*.js'%0A %5D);%0A%7D);%0A%0A
task('de
|
65ff5b5319b595a962ff710959c8fd0a225027fc | fix datables in ranking | games/azureStar-new/ranking.js | games/azureStar-new/ranking.js | function RankingOnline() {
Parse.initialize("L2h9j8kembYZqb5zFNrlw3yV2R7dgxVgeb0s5jq4", "ZjngB69wiAeqYygsEukF45ahWfa5tF9XtcLWcZBj");
this.ipAddress = "unknown";
this.country = "World";
}
RankingOnline.prototype = {
enviar: function (nome) {
var Score = Parse.Object.extend("Score");
var score = new Score();
... | JavaScript | 0.000016 | @@ -1173,19 +1173,16 @@
%09%09 %7D%0A
-
%09%09%09$('#a
@@ -1206,16 +1206,32 @@
aTable(%7B
+retrieve: true,
searchin
|
a798aca5d2b9c72878595b35dde2c22a66cd2af8 | update Syncing storybook entry | stories/containers/syncing.stories.js | stories/containers/syncing.stories.js | import React from 'react'
import { storiesOf } from '@storybook/react'
import { linkTo } from '@storybook/addon-links'
import { State, Store } from '@sambego/storybook-state'
import { Modal } from 'components/UI'
import { Syncing } from 'components/Syncing'
import { boolean, number, select } from '@storybook/addon-knob... | JavaScript | 0.999991 | @@ -116,64 +116,8 @@
ks'%0A
-import %7B State, Store %7D from '@sambego/storybook-state'%0A
impo
@@ -160,18 +160,16 @@
port
- %7B
Syncing
%7D f
@@ -164,18 +164,16 @@
Syncing
- %7D
from 'c
@@ -269,216 +269,134 @@
t %7B
-Window %7D from '../helpers'%0A%0Aconst store = new Store(%7B%0A address: '2MxZ2z7AodL6... |
367b842bb8cabb9796d52714172451f2fffb17ec | Remove no longer needed jquery references. | ui/webpack.config.js | ui/webpack.config.js | const path = require('path')
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const { VueLoaderPlugin } = require('vue-loader')
const { DefinePlugin, ProvidePlugin } = require('webpack')
const CompressionPlugin = require('compression-webpack-plugin'... | JavaScript | 0 | @@ -1854,55 +1854,8 @@
n(%7B%0A
- $: 'jquery',%0A jQuery: 'jquery',%0A
|
3048c01175e93e0eaf45b16ffb0643d72b1ea0a3 | fix undefined 'session_id' member in kernel.js | IPython/frontend/html/notebook/static/js/kernel.js | IPython/frontend/html/notebook/static/js/kernel.js | //----------------------------------------------------------------------------
// Copyright (C) 2008-2011 The IPython Development Team
//
// Distributed under the terms of the BSD License. The full license is in
// the file COPYING, distributed as part of this software.
//------------------------------------------... | JavaScript | 0.000062 | @@ -809,32 +809,126 @@
unning = false;%0A
+ %0A this.username = %22username%22;%0A this.session_id = utils.uuid();%0A %0A
if (type
@@ -1501,25 +1501,29 @@
rname :
-%22
+this.
username
%22,%0A
@@ -1514,17 +1514,16 @@
username
-%22
,%0A
@@ -1539,16 +1539,17 @@
sess... |
cfba3408d008b75f30509d07f9d8bb36435fc0c7 | Fix bug where interval is not correctly cleared | templates/scripts/libs/base-object.js | templates/scripts/libs/base-object.js | //*****************************************************************
// A core object that all other objects inherit from.
//
// Currently only used to provide nice timeout management. You can
// add or remove named timeouts. If they are removed before
// triggering, they disappear.
//***********************************... | JavaScript | 0.000001 | @@ -1647,123 +1647,35 @@
-if (
this.
-timeouts%5Bname%5D) %7B%0A window.clearTimeout(this.timeouts%5B
+_removeTimeout(
name
-%5D
);%0A
- this.timeouts%5Bname%5D = null;%0A %7D%0A
%7D,
@@ -2026,96 +2026,123 @@
- //clear the timeout after it has run%0A self.timeouts%5Bname%5D = null... |
d8ad15e8e8b97ee84fc505dcbd4f5c0aa4017217 | fix unit tests | test/components/change-sex-buttons.js | test/components/change-sex-buttons.js | import ChangeSexButtons from '../../src/code/components/change-sex-buttons';
describe.skip("<ChangeSexButtons />", function(){
it("should create a <div> tag with appropriate classes", function() {
const wrapper = shallow(<ChangeSexButtons sex='male' onChange={function() {}}/>);
assert(wrapper.find('div').at... | JavaScript | 0.000001 | @@ -83,13 +83,8 @@
ribe
-.skip
(%22%3CC
@@ -116,16 +116,16 @@
tion()%7B%0A
+
%0A it(%22s
@@ -239,22 +239,32 @@
ons sex=
-'male'
+%7BBioLogica.MALE%7D
onChang
@@ -894,24 +894,34 @@
ons sex=
-'female'
+%7BBioLogica.FEMALE%7D
onChang
@@ -1560,22 +1560,32 @@
ons sex=
-'male'
+%7BBioLogica.MALE%7D
species
@@ -... |
a3adb6316c6c9b5daedab823e9c885a9520c8c14 | Revert response to old version. Needs to be updated still | test/fixtures/transaction_response.js | test/fixtures/transaction_response.js | /**
* Avalara © 2017
* file: test/fixtures/transaction_response.js
*/
export default {
"id": 26964607,
"code": "d99acf3d-3b2b-407b-8123-8d2d18c468c8",
"companyId": 123456,
"date": "2017-01-10",
"taxDate": "2017-01-10T00:00:00",
"paymentDate": "1900-01-01T00:00:00",
"status": "Committed",
"type": "Sa... | JavaScript | 0 | @@ -196,19 +196,28 @@
17-01-10
+T00:00:00
%22,%0A
-
%22taxDa
@@ -1015,24 +1015,33 @@
%222017-01-10
+T00:00:00
%22,%0A %22exchan
@@ -1700,32 +1700,41 @@
te%22: %222017-01-10
+T00:00:00
%22,%0A %22revAccou
@@ -1877,24 +1877,24 @@
Id%22: 38007,%0A
-
%22taxDate
@@ -1907,16 +1907,25 @@
17-01-10
+T00:00:... |
e463dc1949e2b7be5f8be4d4554ad04358b16e18 | fix 名称大小写 | test/leaflet/overlay/MapVLayerSpec.js | test/leaflet/overlay/MapVLayerSpec.js | require('../../../src/leaflet/overlay/mapVLayer');
var mapv = require('mapv');
window.mapv = mapv;
var url = GlobeParameter.ChinaURL;
describe('leaflet_MapVLayer', function () {
var originalTimeout;
var testDiv, map, mapvLayer;
beforeAll(function () {
testDiv = document.createElement("div");
... | JavaScript | 0.000058 | @@ -31,17 +31,17 @@
overlay/
-m
+M
apVLayer
|
4f1dda07468d8aa7d16690a61663b6e52fccc893 | Correct signature | test/mocha/BackendCallHandler-Test.js | test/mocha/BackendCallHandler-Test.js | var assert = require("assert");
var bus = require('../../dist/EventBus');
var jrpc = require('../../dist/JsonRpc');
var handler = require('../../dist/BackendCallHandler');
var sample = require('../extra/wsrpc_registry_classes').wsrpc_registry_classes;
handler.DEBUG = true;
var mockClient = {
callCount: 0,
js... | JavaScript | 0.000323 | @@ -3089,32 +3089,104 @@
arse(message));%0A
+ var client = _handler.getClientResponseWithId(rpc.getId());%0A
_han
@@ -3203,32 +3203,40 @@
esponseToOrigin(
+client,
rpc.getId(), rpc
@@ -4131,32 +4131,104 @@
arse(message));%0A
+ var client = _handler.getClientResponseWithId(rpc.get... |
19520e0e14f229692496001e697852cd6ff97070 | clean up | test/spec/filters/regexFilter.spec.js | test/spec/filters/regexFilter.spec.js | 'use strict';
describe("Unit Testing: regex filters", function () {
var filt;
var dummyList = [{
'name': 'msajc003'
}, {
'name': 'msajc010'
}, {
'name': 'msajc012'
}, {
'name': 'msajc015'
}, {
'name': 'msajc022'
}, {
'name': 'msajc023'
}, {
'name': 'msajc057'
}];
// l... | JavaScript | 0.000001 | @@ -62,16 +62,17 @@
on () %7B%0A
+%0A
var fi
@@ -76,17 +76,16 @@
filt;%0A%0A
-%0A
var du
@@ -478,24 +478,117 @@
');%0A %7D));%0A%0A
+ it('should have a regex filter: ', function () %7B%0A expect(filt).not.toEqual(null);%0A %7D)%0A%0A
// test re
@@ -639,16 +639,25 @@
th regex
+ properly
: ', fun
@@ ... |
7b2ac2fc8dcc29a2f8c64fc1ec5fbf8a34ddfe52 | comment out failing tests that need rewrite | test/unit/responsive-carousel_test.js | test/unit/responsive-carousel_test.js | /*global QUnit:false, module:false, test:false, asyncTest:false, expect:false*/
/*global start:false, stop:false ok:false, equal:false, notEqual:false, deepEqual:false*/
/*global notDeepEqual:false, strictEqual:false, notStrictEqual:false, raises:false*/
(function($) {
/*
======== A Handy Little QUnit Reference ===... | JavaScript | 0 | @@ -772,18 +772,16 @@
sage%5D)%0A%09
-*/
%0A%0A// DOM
@@ -5902,16 +5902,18 @@
);%0A%7D);%0A%0A
+*/
%0A%7D(jQuer
|
92eee35b7f4fd64982d2c803748e1e1a0d527cb0 | Fix jshint | addon/components/power-select-typeahead/trigger.js | addon/components/power-select-typeahead/trigger.js | import Ember from 'ember';
import layout from '../../templates/components/power-select-typeahead/trigger';
const { isBlank, run, get } = Ember;
export default Ember.Component.extend({
layout: layout,
tagName: '',
// Lifecycle hooks
didUpdateAttrs({ oldAttrs, newAttrs }) {
this._super(...arguments);
i... | JavaScript | 0.000114 | @@ -587,16 +587,17 @@
ns.open)
+;
%0A %7D
|
30fd0caf5effacf63a863a5b157ca96aadf15303 | Add todo comment to find a better solution to bind the className to the parent | addon/pods/components/frost-list-item/component.js | addon/pods/components/frost-list-item/component.js | /* global $ */
import Ember from 'ember'
import _ from 'lodash/lodash'
import FrostList from '../frost-list/component'
export default Ember.Component.extend({
classNameBindings: ['isSelected', 'frost-list-item'],
initContext: Ember.on('init', function () {
this.set('_frostList', this.nearestOfType(FrostList))... | JavaScript | 0 | @@ -380,24 +380,100 @@
nction () %7B%0A
+ // TODO: Find a better solution for binding the className to the parent%0A
let mode
|
4a7347e35b8ab58cc1e83081610ef1fdeefc49ff | fix error messages in new course page | administration/static/js/new-course/controllers.js | administration/static/js/new-course/controllers.js | (function(angular){
var app = angular.module('new-course');
app.controller('CourseEditController',
['$scope', 'Course', '$filter', 'youtubePlayerApi', 'VideoData',
function($scope, Course, $filter, youtubePlayerApi, VideoData) {
$scope.errors = {};
$scope.alert = {
... | JavaScript | 0 | @@ -3844,48 +3844,85 @@
var
-label = (Course.fields%5Batt%5D%7C%7C%7B%7D).label ?
+message = response.data%5Batt%5D;%0A if(Course.fields &&
Cou
@@ -3940,21 +3940,11 @@
att%5D
-.label : att;
+) %7B
%0A
@@ -3972,130 +3972,157 @@
-$scope.alert.messages.push(%0A ... |
937134b46881251df63ef086634004e4d928b429 | fix caesar_cipher | algorithm/cryptography/caesar_cipher/basic/code.js | algorithm/cryptography/caesar_cipher/basic/code.js | function getPosUp(pos) {
return (pos === alphabet.length - 1) ? 0 : pos + 1;
}
function getPosDown(pos) {
return (pos === 0) ? alphabet.length - 1 : pos - 1;
}
function getNextChar(currChar, direction) {
var pos = alphabetMap[currChar];
var nextPos = direction === 'up' ? getPosUp(pos) : getPosDown(pos);
var... | JavaScript | 0.001513 | @@ -351,19 +351,17 @@
xtPos);%0A
-
%0A
+
logger
@@ -571,21 +571,17 @@
wait();%0A
-
%0A
+
var
@@ -835,11 +835,11 @@
le (
+r
--
-r
%3E 0
@@ -948,20 +948,16 @@
;%0A %7D%0A
-
%0A str
|
eab7246218a757faa18a43530beaa394add53a8c | Clear component data window before merging it | app/assets/javascripts/app/models/app/component.js | app/assets/javascripts/app/models/app/component.js | class Component extends Item {
constructor(json_obj) {
super(json_obj);
if(!this.componentData) {
this.componentData = {};
}
if(!this.disassociatedItemIds) {
this.disassociatedItemIds = [];
}
if(!this.associatedItemIds) {
this.associatedItemIds = [];
}
}
mapConte... | JavaScript | 0 | @@ -47,24 +47,309 @@
json_obj) %7B%0A
+ // If making a copy of an existing component (usually during sign in if you have a component active in the session),%0A // which may have window set, you may get a cross-origin exception since you'll be trying to copy the window. So we clear it here.%0A json_obj.window ... |
f814f8e2eddf8fab97a63ef4fd373fdda48aaaf0 | Fix updatePosition uncaught error | packages/strapi-plugin-content-manager/admin/src/components/RelationPreviewList/RelationPreviewTooltip.js | packages/strapi-plugin-content-manager/admin/src/components/RelationPreviewList/RelationPreviewTooltip.js | import React, { useState, useEffect, useCallback, useRef, useLayoutEffect } from 'react';
import { Text, Padded } from '@buffetjs/core';
import { LoadingIndicator, request } from 'strapi-helper-plugin';
import PropTypes from 'prop-types';
import getRequestUrl from '../../utils/getRequestUrl';
import Tooltip from '../T... | JavaScript | 0 | @@ -1733,44 +1733,269 @@
-tooltipRef.current.updatePosition();
+// A react-tooltip uncaught error is triggered when updatePosition is called in firefox.%0A // https://github.com/wwayne/react-tooltip/issues/619%0A try %7B%0A tooltipRef.current.updatePosition();%0A %7D catch (err) %7B%0A ... |
c804c11c871a07a538958cf6c6dd202ae325e9f6 | Change order of unit column in Pathways | app/javascript/app/data/data-explorer-constants.js | app/javascript/app/data/data-explorer-constants.js | export const DATA_EXPLORER_BLACKLIST = [
'id',
'iso_code3',
'iso_code2',
'emissions'
];
export const DATA_EXPLORER_FIRST_TABLE_HEADERS = [
'region',
'data_source',
'sector',
'gwp',
'gas',
'unit',
'location',
'model',
'scenario',
'category',
'subcategory',
'indicator',
'definition'
];
... | JavaScript | 0 | @@ -203,18 +203,8 @@
s',%0A
- 'unit',%0A
'l
@@ -284,16 +284,26 @@
cator',%0A
+ 'unit',%0A
'defin
@@ -2478,16 +2478,69 @@
tegory'%0A
+ %7D,%0A subcategories: %7B%0A key: 'subcategory'%0A
%7D%0A
|
cb87aa8e84e2557ab31a9dbf892f256535ff880f | fix bug: undefined nodeName | Redirector.safariextension/redirector.js | Redirector.safariextension/redirector.js | function getTarget(element) {
if (element.nodeName == 'LINK' && element.type == 'text/css'){
return 'style';
}else{
return element.nodeName.toLowerCase();
}
}
safari.self.addEventListener("message", function(event){
console.log(evnet);
}, false);
document.addEventListener("beforeload",... | JavaScript | 0.00021 | @@ -363,16 +363,51 @@
target;%0A
+ if (!element.nodeName) return;%0A
var
@@ -439,13 +439,8 @@
t);%0A
- %0A
|
dd7be7687bb0057fbe038a54edb9a34718c8a2fc | Use initial input value if set | Resources/public/js/adapter/fancytree.js | Resources/public/js/adapter/fancytree.js | /**
* A tree browser adapter for the Fancytree library.
*
* @author Wouter J <wouter@wouterj.nl>
* @see https://github.com/mar10/fancytree
*/
var FancytreeAdapter = function (dataUrl) {
if (!window.jQuery || !jQuery.fn.fancytree) {
throw 'The FancytreeAdapter requires both jQuery and the FancyTree libr... | JavaScript | 0.000015 | @@ -3385,137 +3385,21 @@
-// change active node when the value of the input field changed%0A var tree = this.tree;%0A $input.on('change',
+var showKey =
fun
@@ -3405,17 +3405,19 @@
nction (
-e
+key
) %7B%0A
@@ -3449,21 +3449,11 @@
ath(
-$(this).val()
+key
, fu
@@ -3638,32 +3638,386... |
302a85b8e97043ad521d2fbd07d1d9c4700ad097 | Fix cursor position on panel hide/show - not perfect, but easy. | js/chrome/splitter.js | js/chrome/splitter.js | $.fn.splitter = function () {
var $document = $(document),
$blocker = $('<div class="block"></div>'),
$body = $('body');
// blockiframe = $blocker.find('iframe')[0];
var splitterSettings = JSON.parse(localStorage.getItem('splitterSettings') || '[]');
return this.each(function () {
var $el ... | JavaScript | 0 | @@ -3930,16 +3930,107 @@
ings));%0A
+%0A // todo: wait until animations have completed!%0A setTimeout(function () %7B%0A
@@ -4059,24 +4059,41 @@
eeditors');%0A
+ %7D, 120);%0A
%7D%0A
|
68e3a778f856bdb60098502eec11f3948a3fdabb | support latest in the url | BlazarUI/app/scripts/data/RepoBuildApi.js | BlazarUI/app/scripts/data/RepoBuildApi.js | /*global config*/
import Resource from '../services/ResourceProvider';
import Q from 'q';
import { findWhere, map, extend } from 'underscore';
import humanizeDuration from 'humanize-duration';
function _parse(resp) {
if (resp.startTimestamp && resp.endTimestamp) {
resp.duration = humanizeDuration(resp.endTimesta... | JavaScript | 0 | @@ -114,16 +114,21 @@
, extend
+, max
%7D from
@@ -141,16 +141,16 @@
score';%0A
-
import h
@@ -1128,37 +1128,185 @@
(resp) =%3E %7B%0A
-const
+let repoBuild;%0A%0A if (params.buildNumber === 'latest') %7B%0A repoBuild = max(resp, (build) =%3E %7B return build.buildNumber; %7D);%0A %7D%0A%0A els... |
b83814b40617db82dfd1eca9889c5c889b221e55 | Update ValueDesc_Other.js | CNN/Unpacker/ValueDesc/ValueDesc_Other.js | CNN/Unpacker/ValueDesc/ValueDesc_Other.js | export { channelCount1_pointwise1Before };
export { Pointwise_HigherHalfDifferent };
export { Depthwise_HigherHalfDifferent };
export { AvgMax_Or_ChannelMultiplier };
export { WhetherShuffleChannel };
import { Int } from "./ValueDesc_Base.js";
/** Describe id, range, name of channelCount1_pointwise1Before.
*
* Con... | JavaScript | 0.000001 | @@ -3229,74 +3229,8 @@
;%0A%0A%0A
-//!!! ...unfinished... (2021/12/23) Depthwise_HigherHalfDifferent%0A
/**
@@ -3371,33 +3371,33 @@
er between %5B 0,
-4
+2
%5D representing:
|
832bf227e89c32c489eb58b57fabf51c22d502fd | disable cool animations for a while since it's already laggy | js/post-hover-tree.js | js/post-hover-tree.js | /**
* post-hover-tree.js
*
* Post hover tree. Because post-hover.js isn't russian enough.
*
* Usage:
* $config['additional_javascript'][] = 'js/jquery.min.js';
* $config['additional_javascript'][] = 'js/settings.js';
* $config['additional_javascript'][] = 'js/post-hover-tree.js';
*
*/
$(document).ready... | JavaScript | 0 | @@ -768,15 +768,8 @@
%7D).
-hide().
appe
@@ -784,20 +784,8 @@
dy%22)
-.fadeIn(200)
;%0A
@@ -1288,54 +1288,8 @@
) %7B%0A
- $(%22.hover%22).fadeOut(200);%0A
|
f036c722289a75c513807cda969360071b068f5f | Modify FPS Stats presentation | js/stats_bootstrap.js | js/stats_bootstrap.js | head.js("lib/js/stats.js", function() {
var stats = new Stats();
stats.setMode(0); // 0: fps, 1: ms
// Align top-left
stats.domElement.style.position = 'absolute';
stats.domElement.style.left = '0px';
stats.domElement.style.top = '0px';
document.body.appendChild( stats.domElement );
window.stats = sta... | JavaScript | 0 | @@ -195,21 +195,22 @@
yle.
-left = '0px';
+zIndex = 100;%0A
%0A s
@@ -229,25 +229,194 @@
ent.
-style.top = '0px'
+children%5B 0 %5D.children%5B 0 %5D.style.color = %22#aaa%22;%0A stats.domElement.children%5B 0 %5D.style.background = %22transparent%22;%0A stats.domElement.children%5B 0 %5D.children%5B 1 %5D.style.... |
2bcf1a7c537fa31aa772005b5d4d5b5420371cd0 | Correct client key for production | js/wrangler-config.js | js/wrangler-config.js | wrangler.clientKey = "58E26CE2-C218-11E4-A971-4464D61CF0AC"; // "0F03372E-1078-11E5-BCFA-5FDDE71C24E1";
wrangler.anonECI = "85255500-0b65-0130-243c-00163ebcdddd";
wrangler.callbackURL = "http://devtools.picolabs.io/code.html";
wrangler.host = "kibdev.kobj.net"; // change to cs.kobj.net when in production
wrangler.login... | JavaScript | 0.000001 | @@ -1,107 +1,164 @@
-wrangler.clientKey = %2258E26CE2-C218-11E4-A971-4464D61CF0AC%22; // %220F03372E-1078-11E5-BCFA-5FDDE71C24E1%22;
+// This is the client key for devtools (in pjw account)%0Awrangler.clientKey = %2263D2ED70-A81D-11E5-AE52-D18AE71C24E1%22; // %2258E26CE2-C218-11E4-A971-4464D61CF0AC%22;
%0Awra
|
52599f16ad4b1c36fb0a9f4ab414c46e23648ea7 | Bump copyright date. | awx/ui/client/lib/components/components.strings.js | awx/ui/client/lib/components/components.strings.js | function ComponentsStrings (BaseString) {
BaseString.call(this, 'components');
const { t } = this;
const ns = this.components;
ns.REPLACE = t.s('REPLACE');
ns.REVERT = t.s('REVERT');
ns.ENCRYPTED = t.s('ENCRYPTED');
ns.OPTIONS = t.s('OPTIONS');
ns.SHOW = t.s('SHOW');
ns.HIDE = t.s(... | JavaScript | 0 | @@ -2456,9 +2456,9 @@
201
-7
+8
Red
|
33211dc39f4ff171fe9604709e676671b3587398 | fix integration test | tests/integration/integration.test.js | tests/integration/integration.test.js | /* eslint-disable no-console */
import chai from 'chai';
import dirty from 'dirty-chai';
import sinonChai from 'sinon-chai';
import sinon from 'sinon';
import fs from 'fs';
import path from 'path';
import shell from 'shelljs';
import electron from 'electron';
import { Application } from 'spectron';
import mockery from ... | JavaScript | 0 | @@ -3674,20 +3674,24 @@
arams --
-init
+scaffold
-b', ()
@@ -4584,12 +4584,16 @@
0',
-init
+scaffold
: tr
|
9b9cb14a629de5bb6bda12d613b3372fedf8ffd3 | Make root kill timeout configurable. | listen.bin.js | listen.bin.js | #!/usr/bin/env node
/*
___ usage ___ en_US ___
usage: olio <socket> [command] <args>
--help display this message
--socket <string> socket
___ $ ___ en_US ___
unknown argument:
unknown argument: %s
___ . ___
*/
require('arguable')(module, function (progra... | JavaScript | 0 | @@ -103,18 +103,17 @@
--help
-
+%0A
@@ -137,16 +137,125 @@
message%0A
+%0A --kill %3Cnumber%3E%0A number of milliseconds to wait before declaring child processess hung%0A%0A
@@ -275,17 +275,55 @@
ing%3E
+%0A
-socket
+ path for UNIX domain socket server
%0A%0A ... |
d9de32f802d26608517496fcb8c89f1072f2b659 | Fix inconsistent quotes | tests/js/app/modules/testMediaCard.js | tests/js/app/modules/testMediaCard.js | const Endless = imports.gi.Endless;
const Gtk = imports.gi.Gtk;
const InstanceOfMatcher = imports.tests.InstanceOfMatcher;
const CssClassMatcher = imports.tests.CssClassMatcher;
const Utils = imports.tests.utils;
Utils.register_gresource();
const MediaObjectModel = imports.search.mediaObjectModel;
const MediaCard = i... | JavaScript | 0 | @@ -689,37 +689,37 @@
caption:
-%22foo%22
+'foo'
,%0A li
@@ -717,37 +717,37 @@
license:
-%22bar%22
+'bar'
,%0A co
@@ -754,37 +754,37 @@
pyright_holder:
-%22baz%22
+'baz'
,%0A ge
@@ -1044,13 +1044,13 @@
se:
-%22bar%22
+'bar'
,%0A
@@ -1081,13 +1081,13 @@
er:
... |
9db0b67b6d0957327a473a13321f829763dd12e5 | Test 3 | webpack/webpack.config.production.babel.js | webpack/webpack.config.production.babel.js | const webpack = require('webpack');
const baseConfig = require('./webpack.config.base.babel');
module.exports = {
...baseConfig,
devtool: 'source-map',
plugins: [
...baseConfig.plugins,
new webpack.optimize.ModuleConcatenationPlugin(),
new webpack.DefinePlugin({
__DEV__: false,
'process.e... | JavaScript | 0.000001 | @@ -194,62 +194,8 @@
ns,%0A
- new webpack.optimize.ModuleConcatenationPlugin(),%0A
|
c35678bb3e64657e7c9bb56c4265395658392122 | add 1 sat buffer to fee limits | utils/crypto.js | utils/crypto.js | import get from 'lodash/get'
import { address } from 'bitcoinjs-lib'
import lightningRequestReq from 'bolt11'
import coininfo from 'coininfo'
export const networks = {
bitcoin: {
mainnet: coininfo.bitcoin.main.toBitcoinJS(),
testnet: coininfo.bitcoin.test.toBitcoinJS(),
regtest: coininfo.bitcoin.regtest.... | JavaScript | 0 | @@ -4758,38 +4758,43 @@
turn null%0A %7D%0A
-return
+const fee =
routes.reduce((
@@ -4846,32 +4846,132 @@
s%5B0%5D.total_fees)
+%0A%0A // Add one to the fee to add room for accuracy error when using as a fee limit.%0A return fee + 1
%0A%7D%0A%0A/**%0A * getMa
@@ -5194,22 +5194,27 @@
l%0A %7D%0A
-return
+c... |
8c62efe870fd2b7e71873d403adcf2ff69fddd0e | make TaskQueue a real class | src/common/TaskQueue.js | src/common/TaskQueue.js |
function TaskQueue() {
var _this = this;
var isPaused = false;
var isRunning = 0;
var q = [];
$.extend(this, EmitterMixin);
this.queue = function(/* taskFunc, taskFunc... */) {
q.push.apply(q, arguments); // append
tryStart();
};
this.pause = function() {
isPaused = true;
};
this.resume = function(... | JavaScript | 0.000292 | @@ -1,17 +1,12 @@
%0A
-function
+var
TaskQue
@@ -11,45 +11,60 @@
ueue
-() %7B%0A%09var _this = this;%0A%09var
+ = Class.extend(EmitterMixin, %7B%0A%0A%09q: null,%0A%09
isPaused
= f
@@ -63,23 +63,18 @@
used
- =
+:
false
-;
+,
%0A%09
-var
isRu
@@ -82,73 +82,74 @@
ning
- = 0;%0A%09var q = %5B%5D;%0A%0A%09$.... |
c784c50b656500cfc379bb29589ce050b868a370 | add an internal variable to handle setting the canvas width and height | src/common/container.js | src/common/container.js |
d3.ma = {};
/*
return element: Most of methods return svg canvas object for easy chaining
E.G: d3.ma.container('body').margin({top: 80, left: 80}).box(600, 500)
var container = d3.ma.container('#vis'),
canvas = container.canvas().chart("LabeledCirclesChart");
d3.ma.container(selector) is absolutely required... | JavaScript | 0 | @@ -1551,24 +1551,38 @@
', true);%0A%0A%09
+var canvasW =
container.ca
@@ -1615,24 +1615,24 @@
oxCalled) %7B%0A
-
%09%09if (!argum
@@ -1785,32 +1785,46 @@
ontainer;%0A%09%7D;%0A%0A%09
+var canvasH =
container.canvas
@@ -2171,26 +2171,16 @@
Width':
-container.
canvasW(
@@ -2224,26 +2224,16 @@
eight':
-conta... |
9de14c41146b1f556fcbe63046cc827054eb9ecd | add radix | website/src/components/markdown/Heading.js | website/src/components/markdown/Heading.js | /** @jsx jsx */
import React from 'react'; // eslint-disable-line no-unused-vars
import reactAddonsTextContent from 'react-addons-text-content';
import snakeCase from 'lodash.snakecase';
import { jsx } from '@emotion/core';
import { colors, gridSize } from '@arch-ui/theme';
import { LinkIcon } from '@arch-ui/icons';
... | JavaScript | 0.000262 | @@ -678,16 +678,20 @@
slice(1)
+, 10
);%0A con
|
5f22a100b3b76b5394ad8915a876cf44de540f67 | add extra space | tests/server/fixtures/userFixtures.js | tests/server/fixtures/userFixtures.js | const { encryptPassword } = require('../../../server/utils/validate');
module.exports = {
_id: 1,
email: 'test@xyz.io',
password: encryptPassword('shoes2231'),
first_name: 'Tony',
last_name: 'Tiger',
dob: '2017-10-1',
};
| JavaScript | 0.00076 | @@ -84,16 +84,17 @@
rts = %7B%0A
+
_id: 1,
@@ -94,16 +94,17 @@
_id: 1,%0A
+
email:
@@ -118,16 +118,17 @@
yz.io',%0A
+
passwor
@@ -160,16 +160,17 @@
2231'),%0A
+
first_n
@@ -182,16 +182,17 @@
'Tony',%0A
+
last_na
@@ -204,16 +204,17 @@
Tiger',%0A
+
dob: '2
|
64ef98fa8e0fe35ebcce7f3070637c622799da02 | Change route . | router/index.js | router/index.js | var render = require('../application/render');
var Backbone = require('backbone');
var ArgumentNullException = require('../exception/ArgumentNullException');
var message = require('../message');
var userHelper = require('../user');
module.exports = Backbone.Router.extend({
noRoleRoute: 'home',
route(route, name, ca... | JavaScript | 0 | @@ -670,24 +670,76 @@
te = route;%0A
+ console.log(%60Route change: $%7BcurrentRoute%7D%60);%0A
//The
|
8eb17eca054d669888235d8cd54d5653db350798 | Fix prettier error #775 | tests/unit/services/head-data-test.js | tests/unit/services/head-data-test.js | /* eslint-disable prettier/prettier */
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Service | head-data', function(hooks) {
setupTest(hooks);
// TODO: Replace this with your real tests.
test('it exists', function(assert) {
let service = this.owner.lookup('ser... | JavaScript | 0.000004 | @@ -1,43 +1,4 @@
-/* eslint-disable prettier/prettier */%0A
impo
@@ -118,16 +118,17 @@
function
+
(hooks)
@@ -196,16 +196,16 @@
tests.%0A
-
test('
@@ -224,16 +224,17 @@
function
+
(assert)
|
9e88f223bfab0f1f57df274e516ab2d706307ccf | Disable broken Twitter connection | routes/index.js | routes/index.js | // -*- coding: utf-8 -*-
// Copyright 2010-2012 Felix E. Klee <felix.klee@inka.de>
//
// 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-... | JavaScript | 0.000014 | @@ -891,16 +891,27 @@
ord;%0D%0A%0D%0A
+/* BROKEN%0D%0A
twitter
@@ -1136,16 +1136,20 @@
%7D%0D%0A%7D);%0D
+%0A*/%0D
%0A%0D%0Aadmin
@@ -3671,24 +3671,35 @@
false */%0D%0A%0D%0A
+/* BROKEN%0D%0A
twitter.
@@ -3906,16 +3906,20 @@
%0A );%0D
+%0A*/%0D
%0A%0D%0A r
|
7cbf086e8ece5ab3965574e8a2d3e821a87bfd81 | Changed city to title | routes/index.js | routes/index.js | var express = require('express');
var router = express.Router();
var request = require('request');
var _ = require('lodash');
router.get('/', function(req, res) {
var url = "https://seeclickfix.com/api/v2/issues?place_url=hampton-city&state=VA&per_page=10&page=1";
request(url, function(err, response, body) {
... | JavaScript | 0.999406 | @@ -2737,48 +2737,80 @@
%7D
-%0A
else
-%7B%0A title = city.split('-');
+if(city == 'hampton-city') %7B%0A title = 'hampton';%0A %7D else %7B
%0A
@@ -2822,19 +2822,16 @@
e = city
-%5B0%5D
;%0A %7D%0A
|
3874885de65d887d433b420f18e0fa99f089a6ff | Update index.js | routes/index.js | routes/index.js | const express = require('express');
const router = express.Router();
const Geetest = require('../gt-sdk');
const websiteDao = require('../dao/websiteDao');
const usersDao = require('../dao/usersDao');
const blogsDao = require('../dao/blogsDao');
const tagsDao = require('../dao/tagsDao');
const dbDao = require('../dao/... | JavaScript | 0.000002 | @@ -65,46 +65,8 @@
r();
-%0Aconst Geetest = require('../gt-sdk');
%0A%0Aco
|
c0df2fe52f7dcbea8b2c5cf552eaaba5adb8228c | Fix calculation | routes/index.js | routes/index.js | const _ = require('lodash');
const Bluebird = require('bluebird');
const express = require('express');
const Feed = require('../src/feed');
const helper = require('../src/helper');
const router = express.Router();
const ua = require('universal-analytics');
const tracking = require("../src/tracking");
router.get('/', ... | JavaScript | 0.000174 | @@ -1162,16 +1162,23 @@
NextAd:
+250 - (
supportR
@@ -1199,16 +1199,17 @@
tAd %7C%7C 0
+)
%0A %7D%0A
|
9e6f19001bf83de68140d70976f5b1fa7412300d | comment out the res.send at end of route file | routes/index.js | routes/index.js | import keystone from 'keystone';
import webpack from 'webpack';
import webpackMiddleware from 'webpack-dev-middleware';
import webpackHotMiddleware from 'webpack-hot-middleware';
import path from 'path';
import express from 'express';
import config from '../webpack.config.js';
import createTemplate from './utils/create... | JavaScript | 0 | @@ -2792,24 +2792,27 @@
%7D);%0A %7D);%0A
+ //
app.get('/*
@@ -2831,16 +2831,19 @@
) =%3E %7B%0A
+ //
res.s
@@ -2891,20 +2891,23 @@
x.html'));%0A
+ //
%7D);%0A%7D;%0A
|
e0474d19980b08c0f9ff26e3a821c8932dd38a36 | add category to route directory of category routes to define properly category routes, add delete param routes to index routes, indent properly for readability category routes | routes/index.js | routes/index.js |
var express = require('express');
var router = express.Router();
var userRoutes = require('./user');
var sessionRoutes = require('./session');
var homeRoutes = require('./home');
var fashionRoutes = require('./fashion');
var categoryRoutes = require('./category');
var roleRoutes = require(... | JavaScript | 0 | @@ -1704,37 +1704,53 @@
ter.get('/admin/
-add',
+category/index',
categoryRoutes.
@@ -1776,21 +1776,37 @@
'/admin/
-new',
+category/new',
categor
@@ -1811,34 +1811,32 @@
oryRoutes.new);%0A
-//
router.get('/adm
@@ -1836,36 +1836,43 @@
t('/admin/catego
-ty',
+ries',
categoryRou
@@ -1905,32... |
f1da9f35647cd44ee8bd898593da8f35b7e7cb02 | Remove temporary file after upload | routes/media.js | routes/media.js | const db = require('../lib/db')
const mongoose = db.goose
const conn = db.rope
const fs = require('fs')
const router = require('koa-router')()
const File = require('../lib/models/file')
const grid = require('gridfs-stream')
const gfs = grid(conn.db, mongoose.mongo)
router.get('/', function *() {
try {
var resu... | JavaScript | 0 | @@ -1044,16 +1044,85 @@
eld next
+%0A%0A fs.unlink(file.path, function (err) %7B%0A if (err) throw err%0A %7D)
%0A%7D)%0A%0Amod
|
fe8546ad7e32b1d2323e1da24176875566e0fac0 | Fix relative path check | routes/music.js | routes/music.js | var mongoose = require('mongoose'),
db = mongoose.connection,
fs = require('fs'),
settings = require('../settings.json');
exports.index = function(req, res){
var id = req.params.id,
Track = mongoose.model('track');
Track.findOne({ _id : id }, function (err, track) {
if (err) {
console.error(err);
} else ... | JavaScript | 0.000003 | @@ -77,16 +77,41 @@
('fs'),%0A
+%09path = require('path'),%0A
%09setting
@@ -402,65 +402,123 @@
%09%09%09%09
-if (exists && settings.scanner.path.indexOf(track.path) =
+var relativepath = path.relative(settings.scanner.path, track.path);%0A%09%09%09%09if (exists && relativepath.indexOf('..') !
== 0
|
23d82f07c6455daaaf4e98e6529f1885fa329cd7 | Add missing return annotations | tools/browserify/bundle/lib/bundle.js | tools/browserify/bundle/lib/bundle.js | 'use strict';
// MODULES //
var debug = require( 'debug' )( 'browserify:bundle' );
var writeFile = require( 'fs' ).writeFile;
var browserify = require( 'browserify' );
// MAIN //
/**
* Bundles files into a single file using `browserify`.
*
* @param {StringArray} files - files to bundle
* @param {string} [dest] - o... | JavaScript | 0.000221 | @@ -1166,16 +1166,35 @@
bundle%0A
+%09* @returns %7Bvoid%7D%0A
%09*/%0A%09fun
@@ -1725,16 +1725,35 @@
object%0A
+%09* @returns %7Bvoid%7D%0A
%09*/%0A%09fun
|
f6a15880273b078c5922f69545546eb1fda1aea2 | Rename dialog: select notebook name instead of dir | public/ipython/notebook/js/savewidget.js | public/ipython/notebook/js/savewidget.js | // Copyright (c) IPython Development Team.
// Distributed under the terms of the Modified BSD License.
define([
'base/js/namespace',
'jquery',
'base/js/utils',
'base/js/dialog',
'base/js/keyboard',
'moment',
], function(IPython, $, utils, dialog, keyboard, moment) {
"use strict";
var S... | JavaScript | 0 | @@ -5381,16 +5381,30 @@
=%22text%22%5D
+.notebook-name
').focus
|
84432d74fd5fd0184a1c5c38a880c31f2fbe3e69 | fix dirname default for “name” within `create` cmd | packages/cli/lib/commands/create.js | packages/cli/lib/commands/create.js | const ora = require('ora');
const glob = require('glob');
const gittar = require('gittar');
const fs = require('fs.promised');
const { green } = require('chalk');
const { resolve } = require('path');
const { prompt } = require('inquirer');
const { promisify } = require('bluebird');
const isValidName = require('validate... | JavaScript | 0 | @@ -1859,21 +1859,16 @@
name %7C%7C
-argv.
dest;%0A%0A
|
383b1b2f179119ea97c22931633f56ace2b98ae0 | Use synchronous dialog to fix cmd+q | packages/desktop/src/main/launch.js | packages/desktop/src/main/launch.js | import path from "path";
import { shell, BrowserWindow, dialog } from "electron";
let launchIpynb;
export function getPath(url) {
const nUrl = url.substring(url.indexOf("static"), path.length);
return path.join(__dirname, "..", "..", nUrl.replace("static/", ""));
}
export function deferURL(event, url) {
event... | JavaScript | 0.000001 | @@ -934,116 +934,51 @@
%0A%0A
-let actuallyExit = false;%0A%0A win.on(%22close%22, e =%3E %7B%0A if (!actuallyExit) %7B%0A e.preventDefault();%0A
+win.on(%22close%22, e =%3E %7B%0A const response =
dia
@@ -1000,23 +1000,10 @@
Box(
+%7B
%0A
- %7B%0A
@@ -1028,20 +1028,16 @@
,%0A ... |
b5f3cd0c574333aa75f5c3ebcf5635c97770d8ac | Remove possibility to have slashes in id | nuserv/app/repository/repositories.js | nuserv/app/repository/repositories.js | var app = angular.module('repositoryApp.controllers', [
function() {
}
]);
app.factory('repositoryListViewModelFactory', ['$rootScope', function($rootScope) {
var repository = function (atts) {
var childScope = $rootScope.$new(true);
childScope.repository = {};
var s... | JavaScript | 0.000001 | @@ -814,18 +814,16 @@
-Za-z0-9
-%5C/
%5D/g, '-'
@@ -828,57 +828,8 @@
-').
-replace(/%5C/%7B2,%7D/, '/').replace(/%5E%5C/+%7C%5C/+$/g, '').
toLo
|
8a8d703d1b9ce60b6e6f34d36bac518a45994ef7 | Put what it looks like before how it works | src/components/About.js | src/components/About.js | import React from 'react'
import { Heading, Container, Flex, Box, Image, Text, Subhead } from 'rebass'
import Icon from './Icon'
import { colors, cx, mx, mm, wk } from '../theme'
const defaultBackgroundColor = cx('gray.1')
const Base = Container.extend.attrs({
maxWidth: '100%',
mt: 64 * -3,
pt: 64 * 3.5,
pb: ... | JavaScript | 0.000002 | @@ -1417,330 +1417,8 @@
ck%3E%0A
- %3CBold%3EHow it works.%3C/Bold%3E You, a student who knows how to code, get%0A 1 - 2 others to start a Hack Club. You apply, we accept you, you use%0A the community's open source materials and remote office hours with the%0A staff to get your club... |
28df4f7258df6930b0fa5892becde4c8962c6017 | Add simple location to Geolocation package | packages/geolocation/geolocation.js | packages/geolocation/geolocation.js | var locationDep = new Deps.Dependency();
var location = null;
var locationRefresh = false;
var options = {
enableHighAccuracy: true,
maximumAge: 0
};
var errCallback = function () {
// do nothing
};
var callback = function (newLocation) {
location = newLocation;
locationDep.changed();
};
var enableLocatio... | JavaScript | 0 | @@ -624,14 +624,270 @@
cation;%0A
+ %7D,%0A // simple version of location; just lat and lng%0A latLng: function () %7B%0A var loc = Geolocation.currentLocation();%0A%0A if (loc) %7B%0A return %7B%0A lat: loc.coords.latitude,%0A lng: loc.coords.longitude%0A %7D;%0A %7D%0A%0A retur... |
427d3ae7f91670d6176e15286b3de4a0f3005022 | Add some margin to the output value of a Brick | src/components/Brick.js | src/components/Brick.js | import React, { PropTypes, Component } from 'react'
import { Group, Text } from 'react-art'
import Rectangle from 'react-art/lib/Rectangle.art'
import composeBrick from './composeBrick'
import { getConstant } from './constants'
import { getFillColor } from '../utils'
import {
BindingPropTypes,
PositionPropTypes,
... | JavaScript | 0.001527 | @@ -1937,24 +1937,28 @@
+ slotWidth
++ 3
%7D%0A
@@ -1967,32 +1967,36 @@
y=%7B size.height
++ 2
%7D%0A %3E%0A
|
af56a39be34c4c42ffffbcf9f5dff5bba268bb8a | Add close icon to modal window | src/components/Modal.js | src/components/Modal.js | import React from 'react'
import styled from 'styled-components'
const Modal = props =>
props.isOpen ? (
<ModalContainer>
<ModalContent>{props.children}</ModalContent>
</ModalContainer>
) : (
<div />
)
const ModalContainer = styled.div`
display: flex;
justify-content: center;
align-items... | JavaScript | 0 | @@ -57,16 +57,61 @@
ponents'
+%0Aimport Close from 'react-icons/lib/md/close'
%0A%0Aconst
@@ -187,16 +187,83 @@
Content%3E
+%0A %3CCloseIcon onClick=%7B() =%3E props.handleClose()%7D /%3E%0A
%7Bprops.c
@@ -270,16 +270,23 @@
hildren%7D
+%0A
%3C/ModalC
@@ -392,16 +392,42 @@
: flex;%0A
+ flex... |
c212e62ed53015800e8dfc2c5d663b44746d23eb | add AudioListener to camera in sound component. #801 #356 | src/components/sound.js | src/components/sound.js | var debug = require('../utils/debug');
var diff = require('../utils').diff;
var registerComponent = require('../core/component').registerComponent;
var THREE = require('../lib/three');
var warn = debug('components:sound:warn');
/**
* Sound component.
*
* @param {bool} [autoplay=false]
* @param {string} on
* @par... | JavaScript | 0 | @@ -2162,24 +2162,61 @@
Listener();%0A
+ el.sceneEl.camera.add(listener);%0A
sound =
|
fbd516d44813f226fd5e32b9370b1e609590e7d7 | Update tmhDynamicLocale.js | src/tmhDynamicLocale.js | src/tmhDynamicLocale.js | (function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module unless amdModuleId is set
define([], function () {
return (factory());
});
} else if (typeof exports === 'object') {
// Node. Does not work with strict CommonJS, but
// onl... | JavaScript | 0 | @@ -7153,17 +7153,24 @@
caleId,
-v
+angularV
ersion:
|
a8abb720a1d887a42469bb6d29ae3b6304dc451f | Add user, server, and channel registration functions to savefile.js | src/tracker/savefile.js | src/tracker/savefile.js | /*
* SAVEFILE STRUCTURE
* ==================
*
* {
* meta: {
* users: {
* <discord user id>: {
* name: <user name>
* }, ...
* },
*
* // the user index is an array of discord user ids,
* // these indexes are used in the message objects to save space
* userindex: [
... | JavaScript | 0 | @@ -1668,16 +1668,1083 @@
= %7B%7D;%0A%7D;
+%0A%0ASAVEFILE.prototype.findOrRegisterUser = function(userId, userName)%7B%0A if (!(userId in this.meta.users))%7B%0A this.meta.users%5BuserId%5D = %7B%0A name: userName%0A %7D;%0A %0A this.meta.userindex.push(userId);%0A return this.tmp.userlookup%5Bus... |
11672d104f419b4fa5351d1b689a1a0da487b031 | Align #include to the left. | src/util/PaperScript.js | src/util/PaperScript.js | var PaperScript = new function() {
//TODO: Make sure there are all the correct copyrights for the inlined
//parse-js:
//#include "../../lib/parse-js-min.js"
// Handle Math Operators
var operators = {
'+': 'add',
'-': 'subtract',
'*': 'multiply',
'/': 'divide',
'%': 'modulo',
'==': 'equals',
'!=': '... | JavaScript | 0 | @@ -28,17 +28,16 @@
ion() %7B%0A
-%09
//TODO:
@@ -98,20 +98,17 @@
inlined
-%0A%09//
+
parse-js
@@ -109,17 +109,16 @@
rse-js:%0A
-%09
//#inclu
|
e2b99ff82d464b5a8be4e856c34f737184b9b326 | Fix redirect to old dashboard version if user is logged in to another account | src/utils/RoutesUtil.js | src/utils/RoutesUtil.js | import _ from 'lodash';
import Cookies from 'js-cookie';
import localStorage from 'local-storage-fallback';
import URI from 'urijs';
import auth from '../apps/Account/auth';
import NewLibConnection from '../apps/Session/NewLibConnection';
import SessionStore from '../apps/Session/SessionStore';
import SessionActions ... | JavaScript | 0 | @@ -2484,54 +2484,8 @@
) %7B%0A
- if (!localStorage.getItem('token')) %7B%0A
@@ -2538,24 +2538,16 @@
oken'));
-%0A %7D
%0A%0A
|
d02638066fb9e0761591fc57f0b42f2d52715f75 | fix syntax | src/utils/date-utils.js | src/utils/date-utils.js | import moment from 'moment';
var generateShortMonths = function(startingMonth) {
const shortMonths = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
return shortMonths.slice(startingMonth)
.concat(shortMonths.slice(0, startingMonth)... | JavaScript | 0.000023 | @@ -1107,17 +1107,18 @@
sAndYear
-:
+ =
functio
|
1d2b9a5f93742dc037852141f57687f3fc26f023 | add keys to search query string | src/utils/query.util.js | src/utils/query.util.js | "use strict";
import _ from 'lodash';
function parseQueryStringObject (queryStringObject) {
return _.flatten(_.map(queryStringObject, parseQueryStringElement));
}
function parseQueryStringElement(values, key) {
return values.split('|').map((value, i)=> {
return {
value,
type: key,
index: key... | JavaScript | 0.000003 | @@ -424,19 +424,22 @@
%7D%0A
-state
+_
.each(
+state,
(ele
@@ -465,19 +465,20 @@
element.
-key
+type
%5D = quer
@@ -487,19 +487,20 @@
element.
-key
+type
%5D %7C%7C %5B%5D;
@@ -522,18 +522,27 @@
ent.
-key
+type
%5D.push(
+element.
valu
@@ -564,30 +564,50 @@
urn
-query.map((element) =%3E
+_.map(query, (el... |
254a3a85d6ca2e769949c7062bb6035dcfd9cd11 | Fix single event class bindings | addon/components/ilios-calendar-event.js | addon/components/ilios-calendar-event.js | import Ember from 'ember';
import { default as CalendarEvent } from 'el-calendar/components/calendar-event';
import layout from '../templates/components/ilios-calendar-event';
import moment from 'moment';
const {computed, Handlebars} = Ember;
const {SafeString} = Handlebars;
export default CalendarEvent.extend({
la... | JavaScript | 0.000057 | @@ -372,13 +372,21 @@
Name
+Binding
s: %5B'
+:
even
@@ -386,24 +386,25 @@
%5B':event', '
+:
event-pos',
@@ -404,16 +404,17 @@
-pos', '
+:
ilios-ca
@@ -449,16 +449,17 @@
lass', '
+:
day'%5D,%0A
|
05295cf14967fc04c4dffba1a487134949b6a037 | Add controller function to retrieve list of view data for heat map | api/controllers/ViewSessionController.js | api/controllers/ViewSessionController.js | /**
* ViewSessionController
*
* @description :: Server-side logic for managing video view sessions to calculate statistics
* @help :: See http://links.sailsjs.org/docs/controllers
*/
module.exports = {
/**
* Default routes generated using blueprints
* ::::::::::::::::::::::::::::::::::::::::::::::... | JavaScript | 0 | @@ -2050,16 +2050,773 @@
%7D);%0A
+ %7D,%0A%0A /**%0A * %60ViewSessionController.getVideoStat()%60%0A * Usage: GET /api/viewsession/getVideoStat/:id%0A * Description: Get list of video data for specified video id%0A */%0A getVideoStat: function (req, res) %7B%0A ViewSession.find(%7B%0A videoId: ... |
2737bb11a92f22c710824d1c3b36dab289beeb67 | add _requireSignedOut method to router | app/assets/javascripts/routers/router.js | app/assets/javascripts/routers/router.js | Maildog.Routers.Router = Backbone.Router.extend({
initialize: function(options) {
this.$rootEl = options.$rootEl;
this.$flashEl = options.$flashEl;
this.flashMessages = new Maildog.Views.FlashMessageList();
this.$flashEl.html(this.flashMessages.render().$el);
},
routes: {
"session/new": "sig... | JavaScript | 0 | @@ -846,16 +846,224 @@
;%0A %7D,%0A%0A
+ _requireSignedOut: function(callback) %7B%0A if (Maildog.currentUser.isSignedIn()) %7B%0A callback = callback %7C%7C this._goHome.bind(this);%0A callback();%0A return false;%0A %7D%0A%0A return true;%0A %7D,%0A%0A
showEm
|
2d676bb12f40c298806f064909d07239864231a2 | update on delete | app/controllers/wh/content/type/index.js | app/controllers/wh/content/type/index.js | export default Ember.ArrayController.extend({
type: null,
cmsControls: null,
controlsChanged: function () {
this.set('cmsControls', this.get('contentType.controls').filterBy('showInCms'));
this._updateItemControls();
}.observes('contentType.controls.@each.showInCms'),
contentChanged: function () ... | JavaScript | 0 | @@ -854,16 +854,93 @@
Record()
+.then(function () %7B%0A window.ENV.sendBuildSignal();%0A %7D.bind(this))
;%0A %7D,
|
834e9759427ae21fd489b4b31f8663e701638d4e | remove console log from expenses | app/js/Controllers/ExpensesController.js | app/js/Controllers/ExpensesController.js | expenseTrackerAppModule.controller('expenseTracker.ExpensesController', function ($scope, $location, $routeParams, $rootScope, UserModel, ExpensesModel, CategoriesModel, CurrenciesModel) {
'use strict';
var now,
currentCategoryId,
v,
infiniteValue = 0,
up = 0,
down = 0,
$ival = $('div.ival'... | JavaScript | 0.000001 | @@ -1352,45 +1352,8 @@
) %7B%0A
-%09%09//console.log( %22saveExpense%22 );%0A%09%09%0A
%09%09Ex
|
108cc837079959cbe55ce333f978f4c53c15097e | Add comment about an encoding issue in resource | app/js/arethusa.core/resource.service.js | app/js/arethusa.core/resource.service.js | "use strict";
// A service that acts like a factory. The create functions spawns new resource
// objects, that are a wrapper around ngResource
angular.module('arethusa.core').service('resource', function($resource, $location) {
var paramsToObj = function(params) {
return arethusaUtil.inject({}, params, function... | JavaScript | 0 | @@ -137,16 +137,411 @@
esource%0A
+//%0A// Note that this approach right now doesn't work with totally freeform URL passed%0A// as route, because ngResource will always encode slashes.%0A// There is a pending issue for this https://github.com/angular/angular.js/issues/1388%0A//%0A// As it's not a top priority right no... |
e2e21ff5d2708491c9d16bf965f8fade3a6b6461 | Write the direct image URL instead of the cors-anywhere proxied URL to the database | ui/js/controllers/dashboard_qna_image.js | ui/js/controllers/dashboard_qna_image.js | import find from 'lodash/collection/find';
import uniq from 'lodash/array/uniq';
import reduce from 'lodash/collection/reduce';
import map from 'lodash/collection/map';
import nlp from 'nlp_compromise';
import poweredByBingImg from '../../images/powered_by_bing';
export default class {
constructor($scope, $http, p... | JavaScript | 0.000001 | @@ -2319,19 +2319,20 @@
tImage:
-url
+data
,%0A
|
8bbf89e8e92e0a1acdbda89297aeffa2ba676073 | use capture to intercept trigger before checking for focus returning | packages/veui/src/managers/focus.js | packages/veui/src/managers/focus.js | import { remove, findIndex, keys } from 'lodash'
import { focusIn } from '../utils/dom'
import Vue from 'vue'
class FocusContext {
/**
*
* @param {Element} root Root element for focus context
* @param {FocusManager} env FocusManager instance that creates this context
* @param {=Element} source Previous f... | JavaScript | 0 | @@ -2592,16 +2592,111 @@
k = %5B%5D%0A%0A
+ /**%0A * Latest interaction is triggered by pointer or keyboard%0A */%0A trigger = 'pointer'%0A%0A
trigge
@@ -2709,16 +2709,16 @@
ers = %7B%0A
-
keyd
@@ -2827,70 +2827,8 @@
er'%0A
- %7D,%0A touchstart: () =%3E %7B%0A this.trigger = 'pointer'%0A
... |
1044bf187b26a441c4745d3f9a7e794e7b1d5ac6 | Update aggregation column too on layer change | lib/assets/javascripts/cartodb3/editor/widgets-form/schemas/data/widgets-form-category-data-schema-model.js | lib/assets/javascripts/cartodb3/editor/widgets-form/schemas/data/widgets-form-category-data-schema-model.js | var cdb = require('cartodb.js');
module.exports = cdb.core.Model.extend({
defaults: {
schema: {}
},
initialize: function (attrs, opts) {
if (!opts.widgetDefinitionModel) throw new Error('layerDefinitionsCollection is required');
if (!opts.layerDefinitionsCollection) throw new Error('layerDefinition... | JavaScript | 0 | @@ -1221,71 +1221,89 @@
ns:
-%5B%5D.concat(this.get('aggregation_column') %7C%7C this.get('column'))
+columns,%0A editorAttrs: %7B%0A disabled: columns%5B0%5D.disabled%0A %7D
%0A
|
652ec02a791c9bfbe4d3cb6e1f7133529445fa92 | remove not used , close #98 | app/scripts/directives/map_controller.js | app/scripts/directives/map_controller.js | /**
* @ngdoc directive
* @name MapController
* @requires $scope
* @property {Hash} controls collection of Controls initiated within `map` directive
* @property {Hash} markersi collection of Markers initiated within `map` directive
* @property {Hash} shapes collection of shapes initiated within `map` directive
* ... | JavaScript | 0.000001 | @@ -458,22 +458,16 @@
unction(
-$scope
) %7B %0A%0A
|
86cbf95fd4f695e4d662ec13dd3ebf7b0d2d2efa | improve the code | server/api/package/package.controller.js | server/api/package/package.controller.js | 'use strict';
var _ = require('lodash');
var Package = require('./package.model');
var logger = require('../../components/logger');
var sanitize = require('sanitize-filename');
var path = require('path');
var fs = require('fs');
var tar = require('tar');
// Get list of packages
exports.index = function (req, res) {
... | JavaScript | 0.999983 | @@ -2785,106 +2785,17 @@
var
-mainDir = path.join(path.dirname(require.main.filename), '..');%0A var tarball = path.join(mainDir,
+tarball =
req
@@ -2804,17 +2804,16 @@
ile.path
-)
;%0A%0A fs.
@@ -2837,16 +2837,21 @@
tarball)
+%0A
.pipe(ta
@@ -2860,16 +2860,21 @@
Parse())
+%0A
.on('err
@@ -2888,24 +... |
75795b81069c029a1c8430dbd990ce02d653a6af | Improve socket and ping handling | server/backends/irc/connectionManager.js | server/backends/irc/connectionManager.js | #!/usr/bin/env node --harmony
//
// Copyright 2014 Ilkka Oksanen <iao@iki.fi>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
... | JavaScript | 0.000001 | @@ -2683,32 +2683,51 @@
params.network;%0A
+ var pingTimer;%0A
var options
@@ -2922,16 +2922,103 @@
inutes%0A%0A
+ function sendPing() %7B%0A client.write('PING ' + params.host + '%5Cr%5Cn');%0A %7D%0A%0A
clie
@@ -3180,32 +3180,87 @@
work%0A %7D);
+%0A%0A pingTimer = setInter... |
475982c0f14212d8b00386eb693efdaa2e94de29 | fix middlewares appling | lib/createRouter.js | lib/createRouter.js | const { flatten, concat } = require('ramda');
const ExpressPromiseRouter = require('express-promise-router');
const requireTree = require('require-tree');
const { methodsNames } = require('./methods');
const createValidationMiddleware = require('./createValidationMiddleware');
const createController = require('./create... | JavaScript | 0.000009 | @@ -1923,28 +1923,17 @@
ddleware
-.bind(null,
+(
'params'
@@ -2016,28 +2016,17 @@
ddleware
-.bind(null,
+(
'query',
@@ -2110,20 +2110,9 @@
ware
-.bind(null,
+(
'bod
|
b87e99c8fd6e1e978bb613543bdbbab9b47acc11 | Fix bug in rate calculation in progress bar | lib/document/Bar.js | lib/document/Bar.js | /*
Terminal Kit
Copyright (c) 2009 - 2021 Cédric Ronvel
The MIT License (MIT)
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
... | JavaScript | 0.000001 | @@ -2852,24 +2852,25 @@
,%0A%09%09rate =
+(
this.value -
@@ -2883,16 +2883,17 @@
minValue
+)
/ ( thi
|
99d1026dd54243992afad42b0112df5ae3f0e132 | use symbol instead of string | lib/extend/logic.js | lib/extend/logic.js | const Validator = require('think-validator');
const helper = require('think-helper');
let validatorsRuleAdd = false;
module.exports = {
/**
* combine scope and rules
*/
getCombineRules(scope, rules) {
if (helper.isObject(scope)) {
rules = helper.extend({}, scope, rules);
}
return rules;
}... | JavaScript | 0.001418 | @@ -78,16 +78,52 @@
elper');
+%0A%0Aconst INVOKED = Symbol('invoked');
%0Alet val
@@ -457,25 +457,23 @@
this%5B
-'
INVOKED
-'
%5D = true
@@ -1667,17 +1667,15 @@
his%5B
-'
INVOKED
-'
%5D) %7B
|
6c14c6074cffcf67a27a975e45ad0ab2d8c6686e | fix #30 | lib/find_process.js | lib/find_process.js | /*
* @Author: zoujie.wzj
* @Date: 2016-01-23 18:25:37
* @Last Modified by: Ayon Lee
* @Last Modified on: 2018-10-19
*/
'use strict'
const path = require('path')
const utils = require('./utils')
function matchName (text, name) {
if (!name) {
return true
}
return text.match(name)
}
function fetchBin (cmd... | JavaScript | 0.998812 | @@ -261,17 +261,90 @@
rue%0A %7D%0A
-%0A
+ // make sure text.match is valid, fix #30%0A if (text && text.match) %7B%0A
return
@@ -361,16 +361,35 @@
h(name)%0A
+ %7D%0A return false%0A
%7D%0A%0Afunct
|
998763d87d1b28c7bf9994d041c1f4086635d1b8 | Add activity.js | lib/models/index.js | lib/models/index.js | 'use strict';
module.exports = {
Page: require('./page'),
User: require('./user'),
Revision: require('./revision'),
Bookmark: require('./bookmark'),
Comment: require('./comment'),
Attachment: require('./attachment'),
UpdatePost: require('./updatePost'),
Notification: require('./notification'),
};
| JavaScript | 0.000002 | @@ -305,11 +305,46 @@
tion'),%0A
+ Activity: require('./activity'),%0A
%7D;%0A
|
ba1072340cdbcf205502e58f293756a948dc0aab | prepare last last beta - beta.11 | SpotifyAPI.Docs/src/install_instructions.js | SpotifyAPI.Docs/src/install_instructions.js | import CodeBlock from '@theme/CodeBlock';
import TabItem from '@theme/TabItem';
import Tabs from '@theme/Tabs';
import React from 'react';
// Will be removed after beta releases
const VERSION = '6.0.0-beta.10';
const installCodeNuget = `Install-Package SpotifyAPI.Web -Version ${VERSION}
# Optional Auth module, which ... | JavaScript | 0 | @@ -201,17 +201,17 @@
0-beta.1
-0
+1
';%0A%0Acons
|
5ac1077cfe25c2958ee67ab563d99352d0df816c | prepare beta.5 | SpotifyAPI.Docs/src/install_instructions.js | SpotifyAPI.Docs/src/install_instructions.js | import React from "react";
import CodeBlock from '@theme/CodeBlock'
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
const installCodeNuget =
`Install-Package SpotifyAPI.Web -Version 6.0.0-beta.4
# Optional Auth module, which includes an embedded HTTP Server for OAuth2
Install-Package SpotifyAPI.W... | JavaScript | 0 | @@ -130,16 +130,88 @@
bItem'%0A%0A
+// Will be removed after beta releases%0Aconst VERSION = '6.0.0-beta.5';%0A%0A
const in
@@ -266,36 +266,34 @@
eb -Version
-6.0.0-beta.4
+$%7BVERSION%7D
%0A# Optional
@@ -396,36 +396,34 @@
th -Version
-6.0.0-beta.4
+$%7BVERSION%7D
%0A%60;%0A%0Aconst i
@@ -491,36 +491,34 @@
b... |
8db8513921a3c466639f15def689036dcf8c9ef8 | Add a timeout param to FeedsService.wait_for | src/app/components/feed/feeds.service.js | src/app/components/feed/feeds.service.js | /*
* Copyright (C) 2015 SUSE Linux
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE.txt file for details.
*/
(function () {
'use strict';
angular.module('janusHangouts')
.service('FeedsService', FeedsService);
FeedsService.$inject = ['$q'];
fu... | JavaScript | 0.000007 | @@ -976,16 +976,87 @@
ttempts%0A
+ * @param %7Bnumber%7D timeout Time (in miliseconds) between attempts%0A
* @
@@ -1167,16 +1167,25 @@
attempts
+, timeout
) %7B%0A
@@ -1301,9 +1301,43 @@
%7C%7C
-3
+10;%0A timeout = timeout %7C%7C 1000
;%0A%0A
@@ -1942,12 +1942,15 @@
%7D,
-2000
+timeout
)... |
6e5f6930355837de5947774b28f663f0d7e2a969 | Update license links to thirdparty libraries | ZRHome/App/viewmodels/license.js | ZRHome/App/viewmodels/license.js | define(['services/logger'], function (logger) {
var license = {
title: 'License',
description: 'Photos, source code and articles published on this website, that are not explicitly mentioned otherwise, are licensed under <a target="_blank" href="http://creativecommons.org/licenses/by-nc/3.0/deed.en... | JavaScript | 0 | @@ -1346,12 +1346,8 @@
s://
-raw.
gith
@@ -1372,16 +1372,21 @@
urandal/
+blob/
master/L
@@ -1496,24 +1496,36 @@
knockout
-#license
+/blob/master/LICENSE
' %7D,%0A
@@ -1741,13 +1741,8 @@
.co/
-docs/
lice
|
0519e5a131f3597d2630ba19fdd817ca043e0a3a | make continue message 60s up from 5s | client/views/messages/message/plain-message.es6.js | client/views/messages/message/plain-message.es6.js | /**
* Creates the timestamp popup
* @param target is a dom element to show the popup on
* @param timestamp is the timestamp to use for the popup
*/
function createTimestampPopup(target, timestamp) {
const m = moment(timestamp);
$(target).popup({
title: m.fromNow(),
content: m.format("dddd, M... | JavaScript | 0.000001 | @@ -4536,9 +4536,10 @@
) %3C
-5
+60
000;
|
9fefa5901df2685c292a0871774aa29598f46322 | Update inviteHandler | test-client/test-server/inviteHandler.js | test-client/test-server/inviteHandler.js | const Wreck = require('wreck');
const config = require('../src/config');
const fs = require('fs');
const path = require('path');
const getAccessToken = require('./getAccessToken');
const wreck = Wreck.defaults({
baseUrl: 'http://localhost:9000',
json: true,
});
const clientId = config.clientId;
const scope = 'ope... | JavaScript | 0.000001 | @@ -238,17 +238,17 @@
host:900
-0
+1
',%0A jso
@@ -578,11 +578,12 @@
ent.
-dev
+test
:300
@@ -609,21 +609,29 @@
oad.
-sco
+response_ty
pe
-
=
-scope
+'code'
;%0A
@@ -650,32 +650,21 @@
oad.
-app_name = 'Test Client'
+scope = scope
;%0A
|
b9df73685aa86043b620a5d9644186167fca240f | Fix test and test-dashboard | test-dashboard/toolpanel-dashboard/ui.js | test-dashboard/toolpanel-dashboard/ui.js | 'use strict';
var Plotly = window.Plotly;
var ToolPanel = window.ToolPanel;
var divs = [];
function createRemoveButton () {
var removeButton = document.createElement('button');
removeButton.innerHTML = 'remove toolpanel';
removeButton.id = 'removeButton';
document.body.appendChild(removeButton);
... | JavaScript | 0.000001 | @@ -1365,16 +1365,35 @@
trace2%5D;
+%0A var toolPanel;
%0A%0A Pl
@@ -1444,16 +1444,28 @@
lPanel =
+ toolPanel =
new Too
@@ -1561,24 +1561,68 @@
iv%0A %7D);%0A%0A
+ window.toolPanel = graphDiv.toolPanel;%0A%0A
graphDiv
@@ -1674,24 +1674,24 @@
er: toolDiv%0A
-
%7D);%0A%0A
@@ -1683,24 +1683... |
3701008f0c0c5587407f4e0a5a6da2be0aee1faf | Fix modal dimmer | addon/components/modal-dialog.js | addon/components/modal-dialog.js | /**
@module ember-flexberry
*/
import Ember from 'ember';
/**
ModalDialog component for Semantic UI.
@example
```handlebars
{{#modal-dialog
title='Title'
sizeClass='large'
close='removeModalDialog'
created='createdModalDialog'
useOkButton=false
useCloseButton=false
... | JavaScript | 0.000001 | @@ -2303,24 +2303,77 @@
tiple: true,
+%0A context: '.ember-application %3E .ember-view',
%0A%0A on
|
e0c4c1a6a3292b536755f379e8d1b86ef4f97407 | fix ReviewButton | apps/app/src/pages/Build/ReviewButton.js | apps/app/src/pages/Build/ReviewButton.js | import * as React from "react";
import { x } from "@xstyled/styled-components";
import {
Alert,
Button,
Menu,
MenuButton,
MenuItem,
useMenuState,
MenuButtonArrow,
useTooltipState,
TooltipAnchor,
Tooltip,
} from "@argos-ci/app/src/components";
import { gql, useMutation } from "@apollo/client";
import... | JavaScript | 0.000348 | @@ -113,22 +113,8 @@
nu,%0A
- MenuButton,%0A
Me
@@ -203,16 +203,38 @@
ooltip,%0A
+ HeadlessMenuButton,%0A
%7D from %22
@@ -1527,24 +1527,32 @@
%7B1%7D%3E%0A %3C
+Headless
MenuButton%0A
@@ -1730,24 +1730,32 @@
/%3E%0A %3C/
+Headless
MenuButton%3E%0A
|
ad0c23263fdab943f9bd7044d2ea3141ae02c7be | Make sure the binding is still there | src/dce-plugin/index.js | src/dce-plugin/index.js | 'use strict';
module.exports = ({ Plugin, types: t }) => {
const removeReferenceVisitor = {
ReferencedIdentifier(path) {
if (!this.bindingsToReplace[path.node.name]) {
return;
}
const { replacement, markReplaced, scope } = this.bindingsToReplace[path.node.name];
if ((t.isClass(... | JavaScript | 0 | @@ -1052,16 +1052,17 @@
%5Bname%5D;%0A
+%0A
@@ -3486,32 +3486,55 @@
+ if (binding.path.node)
binding.path.re
|
168a7a58a8f9959f13d8ea07108e2827232eac89 | fix conflict | packages/bitcore-client/lib/wallet.js | packages/bitcore-client/lib/wallet.js | const fs = require('fs');
const Bcrypt = require('bcrypt');
const Encrypter = require('./encryption');
const Mnemonic = require('bitcore-mnemonic');
const bitcoreLib = require('bitcore-lib');
const Client = require('./client');
const Storage = require('./storage');
const txProvider = require('../lib/providers/tx-provid... | JavaScript | 0.031708 | @@ -395,16 +395,50 @@
access);
+%0Aconst config = ('../lib/config');
%0A%0Aclass
@@ -1847,24 +1847,52 @@
wallet %7D);%0A
+ config.addWallet(path);%0A
const lo
@@ -2459,24 +2459,19 @@
-return console.e
+throw new E
rror
|
d8dc324dadd0164dc9cb6b318248db1ec109461e | add missing prop type | packages/core/entity-list/src/main.js | packages/core/entity-list/src/main.js | import _isEmpty from 'lodash/isEmpty'
import _isEqual from 'lodash/isEqual'
import _pickBy from 'lodash/pickBy'
import PropTypes from 'prop-types'
import {
appFactory,
notification,
errorLogging,
actionEmitter,
externalEvents,
actions,
formData
} from 'tocco-app-extensions'
import SimpleFormApp from 'tocc... | JavaScript | 0.000003 | @@ -6028,16 +6028,44 @@
g%0A %7D),%0A
+ showLink: PropTypes.bool,%0A
action
|
68f8564c4020bc529f7c2c839d0d2049a44ca1f5 | Remove trailing commas | src/defaultPropTypes.js | src/defaultPropTypes.js | import PropTypes from 'prop-types';
export default {
message: PropTypes.oneOfType([
PropTypes.string,
PropTypes.element,
]).isRequired,
action: PropTypes.oneOfType([
PropTypes.bool,
PropTypes.string,
PropTypes.node,
]),
onClick: PropTypes.func,
style: PropTypes.bool,
actionStyle: Prop... | JavaScript | 0.999987 | @@ -123,18 +123,17 @@
.element
-,
%0A
+
%5D).isR
@@ -229,25 +229,24 @@
opTypes.node
-,
%0A %5D),%0A onC
@@ -501,17 +501,16 @@
s.number
-,
%0A %5D),%0A
@@ -708,15 +708,13 @@
node
-,
%0A %5D)
-,
%0A%7D;%0A
|
77eded6d2b227842e7bb3b31ed120acf32e0733d | Fix indentation | src/commands/assign/createRequestBody.js | src/commands/assign/createRequestBody.js | import env from './assignConfig';
import {config} from '../../utils';
const createRequestBody = () => ({
projects: env.ids
.reduce((acc, id) => acc
.concat(config.languages
.map(language => ({project_id: id, language}))), []),
});
export default createRequestBody;
| JavaScript | 0.017244 | @@ -154,18 +154,16 @@
c%0A
-
.concat(
@@ -179,18 +179,16 @@
nguages%0A
-
|
0e684a7dbba8f0a0adbf23ff200f73e9a998404c | Fix #4161 (nomailize currentIndex in timelinechanged event) | src/component/timeline/timelineAction.js | src/component/timeline/timelineAction.js | /**
* @file Timeilne action
*/
define(function(require) {
var echarts = require('../../echarts');
echarts.registerAction(
{type: 'timelineChange', event: 'timelineChanged', update: 'prepareAndUpdate'},
function (payload, ecModel) {
var timelineModel = ecModel.getComponent('tim... | JavaScript | 0 | @@ -97,16 +97,63 @@
harts');
+%0A var zrUtil = require('zrender/core/util');
%0A%0A ec
@@ -694,38 +694,220 @@
-ecModel.resetOption('timeline'
+// Set normalized currentIndex to payload.%0A ecModel.resetOption('timeline');%0A%0A return zrUtil.defaults(%7B%0A currentInde... |
da5f6525cdd4c8c4346ff7e6ab104e4e7f927df6 | Fix forgot password screen copy | src/engine/automatic.js | src/engine/automatic.js | import Base from '../index';
import Login from './automatic/login';
import SignUp from './automatic/sign_up_screen';
import ResetPassword from '../connection/database/reset_password';
import { renderSSOScreens } from '../core/sso/index';
import {
authWithUsername,
defaultDatabaseConnection,
defaultDatabaseConnect... | JavaScript | 0 | @@ -4299,27 +4299,14 @@
il a
-nd the new password
+ddress
. We
@@ -4336,19 +4336,18 @@
to
-confirm the
+reset your
pas
@@ -4355,18 +4355,10 @@
word
- change
.%22
-,
%0A %7D
|
273262b8f20b43385d2448bb2042e4835d1d53e7 | remove QRcode to string method, it's not implemeted fully | src/ethereumQrPlugin.js | src/ethereumQrPlugin.js | import QRCode from 'qrcode';
import DEFAULTS from './defaults';
import { encodeEthereumUri, decodeEthereumUri } from './uri_processor';
/**
* Main plugin logic
*/
class EthereumQRplugin {
/**
*
* Generates a data encode string
*
* @public
* @param {Object} config
* @returns String
... | JavaScript | 0.000008 | @@ -1878,437 +1878,8 @@
%7D%0A
- /**%0A * may use https://github.com/edi9999/jsqrcode for readng the canvas data to JSON%0A * @param %7B*%7D dataURl%0A */%0A /*%0A readImageToJSON(dataURl)%7B%0A const qr = new QrCode();%0A qr.callback = function(error, result) %7B%0A if(e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.