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 |
|---|---|---|---|---|---|---|---|
6838eaf66b94445e314f087ec407d7e2b5bf1fb5 | remove cruft from wallaby config | .wallaby.js | .wallaby.js | 'use strict';
module.exports = () => {
return {
files: [
'index.js',
'lib/**/*.{js,json}',
'test/setup.js',
'test/assertions.js',
{
pattern: 'test/node-unit/**/*.fixture.js',
instrument: false
},
{
pattern: 'test/unit/**/*.fixture.js',
ins... | JavaScript | 0 | @@ -1067,17 +1067,18 @@
timeout(
-2
+10
00);%0A
@@ -1372,24 +1372,24 @@
haUnderTest%0A
+
);%0A
@@ -1389,524 +1389,8 @@
);%0A
- // to make test/node-unit/color.spec.js pass, we need to run mocha in the project's folder context%0A const childProcess = require('child_process');%0A const ex... |
6a6db2a15565422d42a54571e39d476448cb3fb5 | use es6 arrow functions for the sake of consistency | test/MultiCompiler.test.js | test/MultiCompiler.test.js | "use strict";
const path = require("path");
const { createFsFromVolume, Volume } = require("memfs");
const webpack = require("..");
const createMultiCompiler = () => {
const compiler = webpack([
{
context: path.join(__dirname, "fixtures"),
entry: "./a.js"
},
{
context: path.join(__dirname, "fixtures")... | JavaScript | 0.000002 | @@ -1251,39 +1251,31 @@
ime (run)%22,
-function (
done
-)
+ =%3E
%7B%0A%09%09const c
@@ -1496,39 +1496,31 @@
e (watch)%22,
-function (
done
-)
+ =%3E
%7B%0A%09%09const c
@@ -1788,39 +1788,31 @@
- watch)%22,
-function (
done
-)
+ =%3E
%7B%0A%09%09const c
@@ -2045,39 +2045,31 @@
ch - run)%22,
-function ... |
1963dddb4c4b85bac510c1f9fb930e3402dbf30b | use different value for rest input | test/bq-translator.test.js | test/bq-translator.test.js | // -*- indent-tabs-mode: nil; js2-basic-offset: 2 -*-
var assert = require('chai').assert;
var BooleanQueryTranslator = require('../lib/bq-translator').BooleanQueryTranslator;
function testQuery(label, expected, query) {
test('query: ' + label + ': ' +
'<' + query + '> -> <' + expected + '>', function() {
... | JavaScript | 0.00003 | @@ -1920,17 +1920,17 @@
%2229
-29
+75
%22);%0A%7D)%0A
|
7f6bda8aeae435ca4f5d4ab3feec0f88b4a9cb5b | Fix bad test for tabbed nav presence | test/components/AppTest.js | test/components/AppTest.js | const assert = require('assert')
const React = require('react')
const ReactDOM = require('react-dom')
const ReactRedux = require('react-redux')
const Redux = require('redux')
const TestUtils = require('react-addons-test-utils')
const fetchMock = require('fetch-mock')
const App = require('../../src/components/App')
con... | JavaScript | 0.000001 | @@ -1272,13 +1272,11 @@
ctor
-All
('
+#
tabb
|
c5aa570edcc9c0815c304939d9ded20b13a8e56f | Update loader.js | plugins/spoon/project_structure/app/loader.js | plugins/spoon/project_structure/app/loader.js | /*global requirejs*/
requirejs.config({
baseUrl: '/dev/src',
paths: {
'mout': '../bower_components/mout/src',
'events-emitter': '../bower_components/events-emitter/src',
'address': '../bower_components/address/src',
'text': '../bower_components/requirejs-text/text',
'has... | JavaScript | 0.000002 | @@ -808,16 +808,89 @@
e/View',
+%0A 'spoon/Joint': '../bower_components/spoonjs/src/core/Joint',
%0A%0A
|
18f957c3a7fd7e70a4e275b2a4f700a5231316ce | add real controller tests | test/factories/debounce.js | test/factories/debounce.js | /*global beforeEach,afterEach,describe,it*/
import debounce from '../../src/factories/debounce'
import { reset, check, expect, expectCount } from '../helpers/chaiCounter'
beforeEach(reset)
afterEach(check)
describe('debounce()', function () {
it('should not call output more than twice when immediate', function (don... | JavaScript | 0.000001 | @@ -168,81 +168,1300 @@
er'%0A
-%0AbeforeEach(reset)%0AafterEach(check)%0A%0Adescribe('debounce()', function () %7B
+import controller from '../helpers/controller'%0A%0Afunction increaseCount (%7B state %7D) %7B%0A state.set('count', state.get('count') + 1)%0A%7D%0A%0Acontroller.addSignals(%7B%0A increaseImmediate: ... |
684e42a48c008c1ab7c53e0ba3220db8f5f777dc | revert debugging | stream/osm_filter.js | stream/osm_filter.js |
var through = require('through2'),
features = require('../features');
function isAddress( item ){
return( item.tags.hasOwnProperty('addr:housenumber') && item.tags.hasOwnProperty('addr:street') );
}
function isPOIFromFeatureList( item ){
return( 'string' === typeof item.tags.name && !!features.getFeature( it... | JavaScript | 0.000001 | @@ -328,225 +328,8 @@
%0A%7D%0A%0A
-var lastCommit = new Date().getTime();%0Avar c = 0;%0A%0Afunction inc( type, record )%7B%0A c++;%0A var now = new Date().getTime();%0A if( now %3E= lastCommit +1000 )%7B%0A lastCommit = now;%0A console.log( c );%0A c = 0;%0A %7D%0A%7D%0A%0A
modu
@@ -417,31 +417,8 @@
... |
b90b374f30fbf043d2ecaa0f87d5911d3b4df4c5 | test main reducer handling SET_INTERFACE_FONT_SIZE_SCALING_FACTOR | test/redux/modules/main.js | test/redux/modules/main.js | import test from 'ava';
import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import mainReducer, {setInterfaceFontSizeScalingFactor, SET_INTERFACE_FONT_SIZE_SCALING_FACTOR,
setAppFont, SET_APP_FONT, setAppLocale, SET_APP_LOCALE, setWriteDelay,
SET_WRITE_DELAY, setIntl} from './../../... | JavaScript | 0.000002 | @@ -2609,16 +2609,380 @@
%7BappFont%7D);%0A%7D);%0A
+%0Atest('main reducer should handle action SET_INTERFACE_FONT_SIZE_SCALING_FACTOR', (t) =%3E %7B%0A const interfaceFontSizeScalingFactor = 1.5;%0A const store = mockStore(%7B%7D);%0A const result = mainReducer(store.getState(), %7Btype: SET_INTERFACE_FONT_SIZE_SC... |
f34715ee7520fdbc793d3f3a67b8eaf157154209 | Clean up tests. | test/session/store.test.js | test/session/store.test.js | var $require = require('proxyquire');
var expect = require('chai').expect;
var sinon = require('sinon');
var factory = require('../../app/session/store');
var MemoryStore = require('express-session').MemoryStore;
describe('session/store', function() {
var NODE_ENV;
var container = new Object();
var logger = new... | JavaScript | 0 | @@ -152,66 +152,8 @@
');%0A
-var MemoryStore = require('express-session').MemoryStore;%0A
%0A%0Ade
|
d311de104685d657427085ba3bb66b20a63d4b04 | Fix unit tests | test/spec/CSSUtils-test.js | test/spec/CSSUtils-test.js | /*
* Copyright 2011 Adobe Systems Incorporated. All Rights Reserved.
*/
/*jslint vars: true, plusplus: true, devel: true, browser: true, nomen: true, indent: 4, maxerr: 50 */
/*global define: false, describe: false, it: false, expect: false, beforeEach: false, afterEach: false, waitsFor: false, runs: false, $: false... | JavaScript | 0.000005 | @@ -1841,21 +1841,20 @@
tors%5B0%5D.
-start
+line
).toBe(2
@@ -1890,19 +1890,27 @@
tors%5B0%5D.
-end
+ruleEndLine
).toBe(3
@@ -1950,13 +1950,12 @@
%5B1%5D.
-start
+line
).to
@@ -1999,11 +1999,19 @@
%5B1%5D.
-end
+ruleEndLine
).to
|
8567710f50eeee9a6bde3039895d1d91bc85b56f | Document ui/ContainerAnnotator. | ui/ContainerAnnotator.js | ui/ContainerAnnotator.js | 'use strict';
var oo = require('../util/oo');
var _ = require('../util/helpers');
var Component = require('./Component');
var ContainerEditor = require('./ContainerEditor');
var $$ = Component.$$;
/**
Represents a flow annotator that manages a sequence of nodes in a container. Instantiate
this class using {@link ... | JavaScript | 0 | @@ -279,546 +279,404 @@
er.
-Instantiate%0A this class using %7B@link ui/Component.$$%7D within the render method of a component. Needs to be%0A instantiated within a %7B@link ui/Controller%7D context.%0A%0A @class ContainerAnnotator%0A @component%0A @extends ui/ContainerEditor%0A%0A @example%0A%0A %60%60%60js... |
fa32335f6e496a98ac9dc11821690839f81224f7 | Make new UI tests faster. | test/test/util/ui_utils.js | test/test/util/ui_utils.js | /**
* @license
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | JavaScript | 0.000058 | @@ -1670,24 +1670,186 @@
'');%0A %7D%0A%0A
+ // Create the waiter first so we can catch a synchronous event.%0A const p =%0A waiter.failOnTimeout(false).waitForEvent(document, 'shaka-ui-loaded');%0A%0A
// Call
@@ -1895,16 +1895,16 @@
r shaka%0A
-
// e
@@ -1994,77 +1994,9 @@
ait
-waiter.fa... |
6e9cc6c6cc90055361373d0e21654ff8eb83e736 | Add additional UgliffyJSPlugin options | ui/webpack/prodConfig.js | ui/webpack/prodConfig.js | /* eslint-disable no-var */
const webpack = require('webpack')
const path = require('path')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
const ForkTsCheckerWebpackPlugin = require('fork... | JavaScript | 0 | @@ -3731,24 +3731,105 @@
ifyJsPlugin(
+%7B%0A parallel: true,%0A uglifyOptions: %7B%0A ie8: false,%0A %7D,%0A %7D
),%0A new w
|
e1230f472d33ea79b12e299c8585886686050d89 | work with connection logigc | middleware.js | middleware.js | module.exports = {
incoming: function (message, args) {
console.log(args);
console.log('users')
console.log(global.users);
console.log('************');
// WHERE do we create a user? on first run?
// WHEN do we update the user's address? Conv id will change.
... | JavaScript | 0 | @@ -73,32 +73,98 @@
sole.log(args);%0A
+ console.log('agents')%0A console.log(global.agents);%0A
console.
@@ -175,16 +175,18 @@
'users')
+;%0A
%0A
@@ -2425,16 +2425,85 @@
ny users
+%0A console.log('handoff to agent');%0A console.log(agent);
%0A%0A
@@ -2545,16 +2545... |
a23cbe516dc69ffd39c07e4bdf394a51c1374a04 | Clarify the copy in the add liquids to deck hint (#2107) | protocol-designer/src/tutorial/hintManifest.js | protocol-designer/src/tutorial/hintManifest.js | // @flow
type Hint = {title: string, body: string}
const hintManifest: {[string]: Hint} = {
add_liquids_and_labware: {
title: 'Add Liquids to Deck',
body: "Go to 'Labware & Liquids' and specify where liquids start on the deck before the robot starts moving."
}
}
export type HintKey = $Keys<typeof hintMan... | JavaScript | 0.000001 | @@ -164,38 +164,60 @@
dy:
-%22
+'
Go to
-'Labware & Liquids' and
+Starting Deck State and hover over labware to
spe
@@ -245,20 +245,8 @@
art
-on the deck
befo
@@ -276,9 +276,9 @@
ing.
-%22
+'
%0A %7D
|
713c03cd946b03939517e3932ab822b00b95eaf5 | fix the auto registering of app services | src/Kernel/Core.js | src/Kernel/Core.js | namespace('Sy.Kernel');
/**
* Framework heart
*
* @package Sy
* @subpackage Kernel
* @class
*/
Sy.Kernel.Core = function () {
this.config = new Sy.Configurator();
this.container = new Sy.ServiceContainer('sy::core');
};
Sy.Kernel.Core.prototype = Object.create(Object.prototype, {
/**
* Return ... | JavaScript | 0.000001 | @@ -1841,16 +1841,50 @@
var
+def = %7B%7D,%0A
name = s
@@ -1970,81 +1970,19 @@
-this.container.set(%0A name,%0A
+def%5Bname%5D =
ser
@@ -1989,16 +1989,17 @@
vices%5Bi%5D
+;
%0A
@@ -2003,32 +2003,54 @@
+this.c... |
0ebbea0ac8c1b0f6fe435623ae01549bbab7de55 | Set element to play area on task detail on element exist | public/javascripts/app/views/projectManager.js | public/javascripts/app/views/projectManager.js | define([
'Backbone',
//Model
'app/models/project',
//Collection
'app/collections/projects',
//View
'app/views/taskController',
'app/views/projectsController',
'app/views/filterController',
'app/views/playersController',
//Templates
'text!templates/project-page/gamePageTemplate.html',
'tex... | JavaScript | 0 | @@ -2130,16 +2130,73 @@
fetch();
+%0A this.taskList.taskDetail.setElement('#play-area');
%0A%0A
|
8d8240cb90dd646bbf93ad8139bbadb4ed827b80 | Remove double 'data' event on write | src/OrbitClient.js | src/OrbitClient.js | 'use strict';
const EventEmitter = require('events').EventEmitter;
const async = require('asyncawait/async');
const await = require('asyncawait/await');
const ipfsDaemon = require('orbit-common/lib/ipfs-daemon');
const PubSub = require('./PubSub');
const OrbitDB = require('./OrbitDB');
clas... | JavaScript | 0.002583 | @@ -1722,24 +1722,27 @@
l, hash)%0A
+ //
this.events
|
e28e21d69e10dbcf4b276ad19447fede6e596bb8 | update Popup | src/Popup/Popup.js | src/Popup/Popup.js | /**
* @file Popup component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import BasePopup from '../_BasePopover';
import Theme from '../Theme';
import Position from '../_statics/Position';
imp... | JavaScript | 0.000001 | @@ -200,25 +200,23 @@
%0Aimport
-BasePopup
+Popover
from '.
@@ -221,13 +221,8 @@
'../
-_Base
Popo
@@ -2304,17 +2304,15 @@
%3C
-BasePopup
+Popover
%7B..
@@ -2323,18 +2323,16 @@
tProps%7D%0A
-
@@ -2369,34 +2369,32 @@
-
className=%7Bpopup
@@ -2404,18 +2404,16 @@
ssName%7D%0A
... |
a01ef325285fdc4f34972c3aa9cc9e0f377f1cff | Update ember-qunit to 0.4.2. | blueprints/ember-cli-qunit/index.js | blueprints/ember-cli-qunit/index.js | module.exports = {
normalizeEntityName: function() {
// this prevents an error when the entityName is
// not specified (since that doesn't actually matter
// to us
},
afterInstall: function() {
return this.addBowerPackagesToProject([
{ name: 'qunit', target: '~1.17... | JavaScript | 0 | @@ -522,17 +522,17 @@
t: '0.4.
-1
+2
' %7D%0A
|
ae349eeeb5a5cbd22f6050e3cb1b105ea90bf49a | add the ability to bootstrap an app with no account | blueprints/ember-pagefront/index.js | blueprints/ember-pagefront/index.js | var chalk = require('chalk');
var appendFileSync = require('fs').appendFileSync;
var green = chalk.green;
var white = chalk.white;
var DEPLOY = 'ember deploy production';
var NEW_LINE = '\n';
var MESSAGE = NEW_LINE + green('Success! Now deploy your app: ') + white(DEPLOY) + NEW_LINE;
var GITIGNORE = '.gitignore';
var... | JavaScript | 0.000001 | @@ -1,12 +1,64 @@
+var Promise = require('ember-cli/lib/ext/promise');%0A
var chalk =
@@ -127,16 +127,74 @@
eSync;%0A%0A
+var API = require('ember-cli-deploy-pagefront/lib/api');%0A%0A
var gree
@@ -301,23 +301,23 @@
n';%0Avar
-MESSAGE
+SUCCESS
= NEW_L
@@ -398,259 +398,1376 @@
var
-GITIGNORE = '.gitignore';%0A... |
e93b6596dcd9a0b4d16248a106daa586780d2b8c | update passport local strategy to fetch actual user via sql query | config/passport.js | config/passport.js | const passport = require('passport');
const LocalStrategy = require('passport-local').Strategy;
const db = require('./database');
const { query } = require('../utils');
passport.use(new LocalStrategy({
usernameField: 'identifier'
}, (username, password, done) => {
const user = {
fullname: 'Arnelle Bala... | JavaScript | 0 | @@ -235,17 +235,23 @@
%0A%7D,
-(username
+async (idenfier
, pa
@@ -283,129 +283,244 @@
nst
-user = %7B%0A fullname: 'Arnelle Balane',%0A username: 'arnellebalane',%0A email: 'arnellebalane@gmail.com',
+getUserWithCredentialsQuery = await query('05-get-user-with-credentials.sql', %7B identifier... |
99320746931af6f7b5da58aed7f211f85bfc3673 | add style changing support | ui/app.js | ui/app.js | var h = require('hyperscript');
// XXX require('global/mumble')
var window = global.window;
var document = global.document;
document.title = 'Flash Phrases';
document.head.appendChild(
h('link', {
rel: 'stylesheet',
type: 'text/css',
href: 'style.css'
}));
////
var PhraseData = requi... | JavaScript | 0.000003 | @@ -285,16 +285,702 @@
%7D));%0A%0A
+// XXX use a module for this%0Afunction loadHash() %7B%0A var hash = window.location.hash;%0A if (hash && hash%5B0%5D === '#') hash = hash.slice(1);%0A var parts = hash.split(';');%0A var out = %7B%7D;%0A parts.forEach(function(part) %7B%0A var i = part.inde... |
46b9e204203d7ce33cb99630c8a19d1e8d29231b | make maxErrorPerWord and repromptDelay defaults explicit | ui/app.js | ui/app.js | var h = require('hyperscript');
// XXX require('global/mumble')
var window = global.window;
var document = global.document;
document.title = 'Flash Phrases';
document.head.appendChild(
h('link', {
rel: 'stylesheet',
type: 'text/css',
href: 'style.css'
}));
////
var fs = require('fs')... | JavaScript | 0.000001 | @@ -792,24 +792,72 @@
ime: 10000,%0A
+ maxErrorPerWord: 2,%0A repromptDelay: 200,%0A
complexi
|
6a5f92d6d72c8cbe1e15f377de8b377bca79ff30 | fix csp modification | chrome-extension/background.js | chrome-extension/background.js |
/**
* The default content security policy for github.com only allows AJAX posts to white-listed domains.
* In order to allow us to post to our server, we intercept the content-security-policy header and whitelist our domain.
*/
chrome.webRequest.onHeadersReceived.addListener(function(details) {
for(var i = 0; ... | JavaScript | 0 | @@ -536,16 +536,26 @@
+ var csp =
details
@@ -583,42 +583,150 @@
alue
- += %22 whaler-on-fleek.appspot.com%22
+;%0A csp = csp.replace('connect-src', 'connect-src whaler-on-fleek.appspot.com');%0A details.responseHeaders%5Bi%5D.value = csp;
%0A
|
7025074c082adc146b8b7b9a6db745d0be7d613f | Fix stdin processing | bf/index.js | bf/index.js | var Evaluator = require('./evaluator');
var unescape = function unescape(value){
return String(value)
.replace(/"/g, '"')
.replace(/'/g, "'")
.replace(/</g, '<')
.replace(/>/g, '>')
.replace(/&/g, '&');
}
module.exports = function(argv, channel, response, logger) {
var input... | JavaScript | 0.000087 | @@ -425,16 +425,17 @@
stdin =
+(
inputSpl
@@ -439,16 +439,23 @@
Split%5B1%5D
+ %7C%7C '')
.split('
|
d113834c865f6ef9a5e94c9824d09e4e1742b983 | Fix unnamed function ESLint warning | jest.shim.js | jest.shim.js | if (!global.requestAnimationFrame) {
global.requestAnimationFrame = function(callback) {
setTimeout(callback, 0);
};
}
| JavaScript | 0.999617 | @@ -71,16 +71,38 @@
function
+ requestAnimationFrame
(callbac
|
3dfdc465212392c3f137377e7831eeff4147bf50 | Update player when width or height changes | src/ReactPlayer.js | src/ReactPlayer.js | import 'es6-promise'
import React, { Component } from 'react'
import { propTypes, defaultProps } from './props'
import players from './players'
export default class ReactPlayer extends Component {
static displayName = 'ReactPlayer'
static propTypes = propTypes
static defaultProps = defaultProps
static canPlay... | JavaScript | 0 | @@ -688,17 +688,111 @@
s.volume
+ %7C%7C%0A this.props.height !== nextProps.height %7C%7C%0A this.props.width !== nextProps.width
%0A
-
)%0A
@@ -983,32 +983,8 @@
) %7B%0A
- let progress = %7B%7D%0A
@@ -1116,335 +1116,69 @@
ded
-!== null && loaded !== this.prevLoaded) %7B%0A progr... |
27f918f76634d500fe2856a61d93741a8db5e487 | update tests | frontend/test/unit/specs/people/OrganizationAdd.spec.js | frontend/test/unit/specs/people/OrganizationAdd.spec.js | import { shallow, createLocalVue } from '@vue/test-utils'
import Vuex from 'vuex'
import OrganizationAdd from '@/registry/components/people/OrganizationAdd.vue'
const localVue = createLocalVue()
localVue.use(Vuex)
describe('OrganizationAdd.vue', () => {
let store
let getters
let mutations
let actions
befor... | JavaScript | 0.000001 | @@ -674,22 +674,16 @@
dd a
-n Organization
+ Company
')%0A
|
ec2e279626ed62572843f92cc872d4ed0d4eb7eb | Update SetState.js | routes/redis/SetState.js | routes/redis/SetState.js | /**
* Created by Kun on 6/28/2015.
*/
//http://www.sitepoint.com/using-redis-node-js/
var express = require("express");
var Q = require('q');
var router = express.Router();
impredis = require("../../imp_services/impredis.js");
router.route('/:stateObject').get(function(req, res) {
impredis.set(req.cookies.I... | JavaScript | 0.000001 | @@ -227,16 +227,106 @@
js%22);%0A%0A%0A
+//TODO Make sure navigation object stringifies and parses stateObject request and response
%0Arouter.
@@ -638,8 +638,9 @@
router;
+%0A
|
c5fb340fa27ae0b163fbb46fc4481db5598e7c0b | Use consistent method | lib/node_modules/@stdlib/math/base/special/uimuldw/test/test.js | lib/node_modules/@stdlib/math/base/special/uimuldw/test/test.js | /**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | JavaScript | 0.000072 | @@ -1127,25 +1127,31 @@
aN, 1 );%0A%09t.
-e
+strictE
qual( isnan(
@@ -1210,33 +1210,39 @@
w( 1, NaN );%0A%09t.
-e
+strictE
qual( isnan( v )
@@ -1307,17 +1307,23 @@
N );%0A%09t.
-e
+strictE
qual( is
@@ -1421,16 +1421,17 @@
e double
+
word pro
@@ -1446,23 +1446,17 @@
two
-words,
+(
unsigned
', f
@@ -1451,16... |
77ef3c180f6bd8f06b357cefd8e2142164cf3618 | add item spec | client/js/components/assessments/item.spec.js | client/js/components/assessments/item.spec.js | import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react/lib/ReactTestUtils';
import Item from './item';
describe('item', function() {
var question = {
title:"Test Question Title"
};
var currentItemIndex = 0;
var assessmentKind... | JavaScript | 0 | @@ -178,16 +178,17 @@
item';%0A%0A
+f
describe
@@ -277,35 +277,35 @@
ar c
-urrentItemIndex = 0
+heckedResponse = %7B%7D
;%0A var
asse
@@ -304,36 +304,28 @@
var
-assessmentKind = %22SUMMATIVE%22
+currentItemIndex = 0
;%0A
@@ -374,109 +374,8 @@
10;
-%0A var nextQuestion = () =%3E %7B%7D;%0A var previousQu... |
ce2317029178c6b07c79fb9c5be83a6ead953bd1 | tag v0.5.0-beta3 | client/js/ng-controllers/versionController.js | client/js/ng-controllers/versionController.js | mainModule.controller('versionController', function($scope, $routeParams, $location, defaultFactory) {
// nText app by Dan McKeown | http://danmckeown.info/code/ntext
$scope.nVersion = "0.5.0-beta3-dev"; // This is the app version number
});
| JavaScript | 0.000001 | @@ -195,12 +195,8 @@
eta3
--dev
%22;%09/
|
aa5af759e0082b16d1e45b6b429c63dd1fd9853c | Add meta options for spawn/shell git exec options | node-services/sencha-cmd/lib/git.js | node-services/sencha-cmd/lib/git.js | "use strict";
var logger = require('./logger'),
fs = require('fs'),
child_process = require('child_process');
/**
* Constructor for git execution wrapper
*/
var Git = module.exports = function(options) {
if (typeof options == 'string') {
options = {
gitDir: options
};
}... | JavaScript | 0 | @@ -2042,32 +2042,336 @@
%7D%0A%0A
+ if ('$spawn' in args) %7B%0A execOptions.spawn = args.$spawn;%0A delete args.$spawn;%0A %7D%0A%0A if ('$shell' in args) %7B%0A execOptions.shell = args.$shell;%0A ... |
f9ae2c2f1c6d46b0a7e3c07df2a965ba6e9ba2dc | fix example | examples/a.js | examples/a.js | "use strict";
var _ = require("lodash");
var ChangeLog = require(".");
var properChange = "openstack (0.99.18-0ubuntu1~14.04.1~bleed1) trusty; urgency=medium\n\n" +
" * Fix nclxd\n\n" +
" -- Adam Stokes <adam.stokes@ubuntu.com> Thu, 25 Jun 2015 10:25:15 -0400\n\n" +
"openstack (0.99.17-0ubuntu1~15.10.1~... | JavaScript | 0 | @@ -61,16 +61,17 @@
quire(%22.
+.
%22);%0A%0Avar
|
6be0e405f35f06d4cc48e483a621b0d96d3bb1d7 | Fix change type typos | test/unit/remote/change.js | test/unit/remote/change.js | const {describe, it} = require('mocha')
const remoteChange = require('../../../core/remote/change')
describe('remote change sort', () => {
it('sort correctly move inside move', () => {
const parent = {
'doc': {'path': 'parent/dst/dir'},
'type': 'FolderMoved',
'was': {'path': 'parent/src/dir'}
... | JavaScript | 0.000001 | @@ -264,25 +264,24 @@
'FolderMove
-d
',%0A 'wa
@@ -420,17 +420,16 @@
FileMove
-d
',%0A
|
36ee0b25ccc81d60a52ed79e8f57c974e4a936ab | add new middlewares distinct on content range | ressources/middlewares.js | ressources/middlewares.js | var passport = require('passport');
require('./oauth.js')(passport);
module.exports = {
delete: {
auth: function(req, res, context) {
passport.authenticate('bearer', {
session: false
})(req, res, function() { // this is the function called after auth
if(req.user){
cont... | JavaScript | 0 | @@ -409,16 +409,226 @@
%7D%0A %7D,%0A
+ list: %7B%0A fetch: %7B%0A before: function (req, res, context) %7B%0A context.options = context.options %7C%7C %7B%7D;%0A context.options.distinct = true;%0A return context.continue;%0A %7D%0A %7D%0A %7D,%0A
create
|
45cf4661b7e2463d9b4740d371112e6b26a6a46b | Add backwards dependency for old connectToStores with deprecation notices | connectToStores.js | connectToStores.js | /**
* Copyright 2015, Yahoo Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
'use strict';
var React = require('react');
var objectAssign = require('object-assign');
var contextTypes = require('fluxible').contextTypes;
var hoistNonReactStatics = require('hoist-no... | JavaScript | 0 | @@ -1378,24 +1378,2534 @@
+if ('function' !== typeof getStateFromStores) %7B%0A //@TODO remove this branch in next minor%0A if ('production' !== process.env.NODE_ENV) %7B%0A console.warn('Using connectToStores with a state getter ' +%0A ... |
002532c4211d2923c6189e5ea87e413d5b970881 | Handle missing entries in diff.js | bin/diff.js | bin/diff.js | #!/usr/bin/env node
/**
* Copyright 2012 Google, Inc. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/**
* @fileoverview Diff tool.
*
* @author benvanik@google.com (Ben Vanik)
*/
var toolRunner = require('./tool-runner');
var ut... | JavaScript | 0.000006 | @@ -2115,24 +2115,35 @@
= Math.abs(
+(entryA1 ?
entryA1.getM
@@ -2148,25 +2148,66 @@
tMeanTime()
--
+: 0) -%0A (entryA2 ?
entryA2.get
@@ -2212,24 +2212,29 @@
etMeanTime()
+ : 0)
);%0A var e
@@ -2351,16 +2351,27 @@
ath.abs(
+(entryB1 ?
entryB1.
@@ -2384,17 +2384,58 @@
nTime()
--... |
53d5700946baba9d535cc4493f6bcd8e6b52e9a7 | Add view-header element for settings view | client/src/js/settings/components/Settings.js | client/src/js/settings/components/Settings.js | /**
*
*
* @copyright 2017 Government of Canada
* @license MIT
* @author igboyes
*
*/
import React from "react";
import { connect } from "react-redux";
import { withRouter, Switch, Redirect, Route } from "react-router-dom";
import { Nav, NavItem } from "react-bootstrap";
import { LinkContainer } from "react-rout... | JavaScript | 0 | @@ -1154,24 +1154,164 @@
container%22%3E%0A
+ %3Ch3 className=%22view-header%22%3E%0A %3Cstrong%3E%0A Settings%0A %3C/strong%3E%0A %3C/h3%3E%0A%0A
|
363703f81cf5be01e99ad04f9bcd0adde8404f28 | Enable button after wromg file type | buckets/static/buckets/js/script.js | buckets/static/buckets/js/script.js | (function () {
function getParentByTagName(el, tagName) {
var p = el.parentElement;
if (p.tagName === tagName.toUpperCase()) {
return p;
} else {
return getParentByTagName(p, tagName);
}
}
var uploads = 0;
function disableSubmit(el, status) {
... | JavaScript | 0 | @@ -4066,16 +4066,55 @@
lowed.')
+;%0A disableSubmit(el, false);
%0A
|
8f5c299e190bc301f8e29910a7414146e1923500 | clear precache thread on destroy | client/js/modules/imaging/views/imagehistory.js | client/js/modules/imaging/views/imagehistory.js | define(['marionette',
'utils/xhrimage',
'tpl!templates/imaging/imagehistory.html',
'tpl!templates/imaging/imagehistorymin.html'
], function(Marionette, XHRImage, template, templatemin) {
var ThumbView = Marionette.ItemView.extend({
tagName: 'figure',
templat... | JavaScript | 0 | @@ -3148,32 +3148,75 @@
y: function() %7B%0A
+ clearTimeout(this.cachethread)%0A
this
|
434402dfe84617e8334cf16ba0dda9b723b37b32 | remove todo that was completed in a previous refactor | public/app/components/home/home-controller.js | public/app/components/home/home-controller.js | angular.module('app.home', [])
.controller('HomeController',
function($scope, $rootScope, $window, $location, $state, $http, $timeout, Utilities, Posts) {
'use strict';
// get recent posts to display on home page
// TODO: change when this fires so it only happens on home page (c... | JavaScript | 0 | @@ -243,100 +243,8 @@
age%0A
- // TODO: change when this fires so it only happens on home page (controller reorg?)%0A
|
d62f015d188313b416631cf015604f27b7313b19 | fix summary not clickable on dashboards | layouts/dashboards/selectors.js | layouts/dashboards/selectors.js | import { createSelector, createStructuredSelector } from 'reselect';
import upperFirst from 'lodash/upperFirst';
import { encodeQueryParams } from 'utils/url';
import {
filterWidgetsByLocation,
getWidgetCategories,
getActiveCategory,
} from 'components/widgets/selectors';
import { getActiveArea } from 'provider... | JavaScript | 0.000003 | @@ -1898,16 +1898,105 @@
%7D),%0A
+ ...(category.value === 'summary' && %7B%0A category: undefined,%0A %7D),%0A
%7D)
|
e0d37a79655947ca31eb869e3d52fbedf8d018a1 | Fix deployedUrl. | upload.js | upload.js | import archiver from 'archiver'
import fs from 'mz/fs'
import path from 'path'
import {run} from 'yacol'
import http from 'http'
import https from 'https'
import e from './env.js'
import parseArgs from 'minimist'
import fetch from 'node-fetch'
const {bool, env, getErrors} = e()
const request = (bool('HTTPS') ? https :... | JavaScript | 0 | @@ -1373,17 +1373,16 @@
seUrl()%7D
-/
$%7BisDraf
@@ -1386,16 +1386,18 @@
raft ? '
+/$
drafts'
@@ -1399,20 +1399,16 @@
fts' : '
-docs
'%7D/$%7Bdoc
|
c57c4b4b6a0aaa4478c9cc241eb9d780de8496eb | Update list_metadata_parser.js | test/core/list_metadata_parser.js | test/core/list_metadata_parser.js | require('../initialize-globals').load();
var listMetadataParser = require('../../lib/core/list_metadata_parser');
describe('# list_metadata_parser', function() {
describe("##createListMetadatasOptions", function() {
it('GET', function() {
var meta = {
top: 10,
skip: 23,
sortFieldName... | JavaScript | 0.000002 | @@ -217,16 +217,21 @@
%7B%0A it
+.skip
('GET',
@@ -764,8 +764,9 @@
%7D);%0A%7D);
+%0A
|
748cbd48a2c0558a6f653aa92773493dc146fcec | fix typo | client/app/pods/media/route.js | client/app/pods/media/route.js | /*
Single Ember.js Route that will work for all media types
*/
import Ember from 'ember';
import DataRotueErrorMixin from 'client/mixins/data-route-error';
const {
Route,
get
} = Ember;
// TODO: Figure out if different media types should just use different
// templates, or if they should not share any code at a... | JavaScript | 0.001084 | @@ -94,26 +94,26 @@
mport DataRo
-t
u
+t
eErrorMixin
@@ -351,18 +351,18 @@
d(DataRo
-t
u
+t
eErrorMi
|
98710a45424dafe5164d212207c5102044ac3e74 | fix `unflatten` for sequenced/defaulted args | runtime-js/functions2.js | runtime-js/functions2.js | var exports=null;//IGNORE
function String$(a,b){}//IGNORE
function StringBuilder(){}//IGNORE
function string(/*Iterable<Character>*/chars) {
if (chars === undefined) return String$('',0);
var s = StringBuilder();
var iter = chars.iterator();
var c; while ((c = iter.next()) !== getFinished()) {
... | JavaScript | 0.000002 | @@ -2510,32 +2510,50 @@
%7D else
+ if (seq.size %3E i)
%7B%0A
@@ -2570,32 +2570,95 @@
%5D = seq.get(i);%0A
+ %7D else %7B%0A a%5Bi%5D = undefined;%0A
|
b6f23172ccb9da4549d7e1c691d07e8973f1e430 | Fix podcast publisher not showing in podcast detail view | public/app/js/cbus-server-get-podcast-info.js | public/app/js/cbus-server-get-podcast-info.js | if (!cbus.hasOwnProperty("server")) { cbus.server = {} }
(function() {
cbus.server.getPodcastInfo = function(podcastUrl, callback) {
var podcastData = {};
xhr({
url: podcastUrl,
// headers: cbus.const.REQUEST_HEADERS
}, function(err, result, body) {
if (err) {
callba... | JavaScript | 0 | @@ -940,16 +940,23 @@
agName(%22
+itunes:
author%22)
@@ -989,50 +989,8 @@
Elem
- && authorElem.tagName === %22itunes:author%22
) %7B%0D
|
b7e97954668783e49d80f717d0ae7343ca3a54e2 | make modal donation text dynamic (#38462) | client/src/components/Donation/DonationModal.js | client/src/components/Donation/DonationModal.js | /* eslint-disable max-len */
import React from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { Modal, Button, Col, Row } from '@freecodecamp/react-bootstrap';
import { Spacer } from '../he... | JavaScript | 0 | @@ -521,16 +521,96 @@
teForm';
+%0Aimport %7B modalDefaultStateConfig %7D from '../../../../config/donation-settings';
%0A%0Aimport
@@ -2204,41 +2204,374 @@
st d
-onationText = %3Cb%3EBecome an annual
+urationToText = donationDuration =%3E %7B%0A if (donationDuration === 'onetime') return 'a one-time';%0A else... |
5fdd6483d7346751b297b6f6ec16cf591507de8d | remove rate persent | src/js/components/Transaction/ExchangeForm.js | src/js/components/Transaction/ExchangeForm.js | import React from "react"
import { roundingNumber } from "../../utils/converter"
const ExchangeForm = (props) => {
var errorToken = props.errors.selectSameToken + props.errors.selectTokenToken
var tokenRate = props.isSelectToken ? <img src="/assets/img/waiting.svg" /> : props.exchangeRate.rate
var render = (
... | JavaScript | 0.000005 | @@ -2784,32 +2784,36 @@
+ %7B/*
%3Cspan class=%22up
@@ -2846,24 +2846,28 @@
ent%7D%25%3C/span%3E
+ */%7D
%0A
|
e903aa8710d1558c79049f2e6305026065759132 | support company tag; bugfix: hide locked problem after sort | leetcode-ext/leetcode-hidden.js | leetcode-ext/leetcode-hidden.js | /**
* Created by binarylu on 3/21/16.
*/
$(function(){
var path = window.location.pathname;
chrome.storage.sync.get({
ac_difficulty: 'show',
hide_locked: 0
}, function(items) {
if(chrome.runtime.lastError) {
console.log(chrome.runtime.lastError.message);
}
... | JavaScript | 0 | @@ -345,32 +345,72 @@
egExp('%5E%5C/tag'))
+ %7C%7C path.match(new RegExp('%5E%5C/company'))
) %7B%0A
@@ -749,16 +749,56 @@
%5C/tag'))
+ %7C%7C path.match(new RegExp('%5E%5C/company'))
) %7B%0A
@@ -913,16 +913,71 @@
1000);%0A
+ setTimeout(tag_hide_locked, 1000);%0A
|
dc6cacb775d1970fdc2371191f436c43eaac2828 | Update console2winston.js | console2winston.js | console2winston.js | var util = require("util");
var winston = require("winston");
var stackTrace = require("stack-trace");
var _ = require("underscore");
var g_logger = winston;
exports.logger = g_logger;
exports.init= function(log) {
g_logger = log;
exports.logger = exports.winston = g_logger;
return g_logger;
}
exports.en... | JavaScript | 0.000001 | @@ -1140,24 +1140,26 @@
%0A
+/*
case %22debug%22
@@ -1212,32 +1212,77 @@
break;%0A
+ */ // no console.debug function%0A
case
|
f6089cb812b2504fe90942d1d8180172f8194cc6 | Add x-api-locale to http header | src/app/common/services/i18n-service.js | src/app/common/services/i18n-service.js | /**
* @ngdoc service
* @name just.service.service:i18nService
* @description
* # i18nService
* Service to handle language settings.
*/
angular.module('just.service')
.service('i18nService', [
'$translate', 'tmhDynamicLocale', 'settings',
'localStorageService', 'justFlowService',
'justRoutes', '$q',
... | JavaScript | 0.000001 | @@ -336,16 +336,24 @@
ervice',
+'$http',
functio
@@ -437,16 +437,22 @@
eService
+,$http
) %7B%0A
@@ -3257,32 +3257,107 @@
nction (lang) %7B%0A
+ $http.defaults.headers.common%5B%22X-API-LOCALE%22%5D = lang%5B'lang-code'%5D;%0A
$transla
|
036d3b4e1866b5f56e12a4019bca779b7d317969 | change readme | src/js/components/navigation/KLSteps/index.js | src/js/components/navigation/KLSteps/index.js | /**
* @file KLSteps 步骤条
* @author ziane(zianecui@gmail.com)
*/
const Component = require('../../../ui-base/component');
const template = require('./index.html');
const _ = require('../../../ui-base/_');
/**
* @class KLSteps
* @extend Component
* @param {object} [options.data] =... | JavaScript | 0.000001 | @@ -458,16 +458,50 @@
=%3E %E7%8A%B6%E6%80%81id
+%EF%BC%8C%E6%94%AF%E6%8C%81%E6%96%B9%E6%B3%95%EF%BC%8C%E4%BC%A0%E5%85%A5%E5%BD%93%E5%89%8D current %E8%BF%94%E5%9B%9E true %E5%88%99%E5%B1%9E%E4%BA%8E%E5%BD%93%E5%89%8D%E7%8A%B6%E6%80%81
%0A * @par
|
440568e2a14be6bfb4ed4f6a83522f7c22790aa4 | Fix linting errors | webpack.common.js | webpack.common.js | const webpack = require('webpack')
const path = require('path')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
module.exports = {
entry: {
adhocracy4: [
'./meinberlin/assets/scss/style.scss',
'./meinberlin/assets/extra_css/_sli... | JavaScript | 0.000002 | @@ -2451,24 +2451,22 @@
: %7B%0A
-'
django
-'
: 'djang
@@ -3768,17 +3768,15 @@
-'
jquery$
-'
: 'j
@@ -3812,17 +3812,16 @@
-'
shariff$
': '
@@ -3816,17 +3816,16 @@
shariff$
-'
: 'shari
@@ -3859,16 +3859,14 @@
-'
shpjs$
-'
: 's
@@ -3894,17 +3894,16 @@
,%0A
-'
a4maps_c
@@ -3908,17 ... |
68db3627a88782e5127e83aaa4cc8f80c2626942 | fix test configs | karma-espower-preprocessor/karma.conf.js | karma-espower-preprocessor/karma.conf.js | module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['mocha', 'expect'],
files: [
{ pattern: 'node_modules/requirejs/require.js', included: false },
{ pattern: 'test/fixture/amd.html', watched: true, served: true, included: false },
... | JavaScript | 0 | @@ -1012,16 +1012,21 @@
'test/
+tobe_
*/*.js':
|
221d49f83ebbb23a9ddffe76cb90c74c1e347dc7 | Use separate property to shutdown workers | worker-manager.js | worker-manager.js | var Worker = require('./worker')
/**
* Tracks worker state across runs.
*/
function WorkerManager () {
this._pollHandle = null
this.workers = {}
this.isPolling = false
}
WorkerManager.prototype.registerWorker = function registerWorker (workerData) {
if (this.workers[workerData.id]) {
this.unregisterWork... | JavaScript | 0 | @@ -170,16 +170,46 @@
= false%0A
+ this.shouldShutdown = false%0A
%7D%0A%0AWorke
@@ -1230,16 +1230,39 @@
sPolling
+ %7C%7C this.shouldShutdown
) %7B%0A
@@ -2219,32 +2219,36 @@
%0A this.
-isPolling = fals
+shouldShutdown = tru
e%0A%7D%0A%0A//
|
e44447153bddf2cfacddac0af533944fd329b883 | enable source map. | webpack.config.js | webpack.config.js | var path = require('path');
var env = process.env.NODE_ENV || 'dev';
module.exports = {
entry: './src/main.js',
output: {
path: './dist',
publicPath: '/dist',
filename: 'bundle.js'
},
devServer: {
inline: true,
port: 3000,
historyApiFallback: true
},
resolve: {
root: path.resolv... | JavaScript | 0 | @@ -279,16 +279,41 @@
ue%0A %7D,%0A
+ devtool: 'source-map',%0A
resolv
|
a35c3e8052efc885284e6ac19433ee2442cfb6e5 | remove unused variables | routes/docker/exec.js | routes/docker/exec.js | var express = require('express'),
handler = require('../common/handler'),
docker = require('../../config').docker;
let router = express.Router();
router
.param('id', (req, res, next, id) => {
req.exec = docker.getExec(id);
next();
})
.get('/:id/json', (req, res) => {
req.exec.inspect(handler.sen... | JavaScript | 0.000014 | @@ -434,36 +434,34 @@
ler.sendTo(res,
-data
+()
=%3E %7B%0A res.
@@ -579,12 +579,10 @@
es,
-data
+()
=%3E
|
c4662893e120cae90c65206a4cac43056269bc8a | Fix the order of array key when sortObjectKeys = true is given | src/object-inspector/ObjectInspector.js | src/object-inspector/ObjectInspector.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import TreeView from '../tree-view/TreeView';
import ObjectRootLabel from './ObjectRootLabel';
import ObjectLabel from './ObjectLabel';
import ThemeProvider from '../styles/ThemeProvider';
const createIterator = (showNonenumerable, sortObj... | JavaScript | 0.999997 | @@ -504,16 +504,58 @@
eturn;%0A%0A
+ const isArray = Array.isArray(data);%0A%0A
// i
@@ -595,35 +595,23 @@
if (!
-Array.
isArray
-(data)
&& data
@@ -1078,19 +1078,96 @@
=== true
-) %7B
+ && !isArray) %7B%0A // Array keys should not be sorted in alphabetical order
%0A
|
abfd69cba9797b46b82c40f64788ce6dbfa0408e | remove public path for prod | webpack.config.js | webpack.config.js | const webpack = require('webpack');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin')
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack... | JavaScript | 0 | @@ -573,30 +573,8 @@
),%0D%0A
- publicPath: '/',%0D%0A
|
fa3c6204dce853e3b2d3653016b976745879965c | Update variable name to reflect change | clients/web/src/views/widgets/UploadWidget.js | clients/web/src/views/widgets/UploadWidget.js | /**
* This widget is used to upload files to a folder. Pass a folder model
* to its constructor as the parent folder that will be uploaded into.
* Events:
* itemComplete: Triggered each time an individual item is finished uploading.
* finished: Triggered when the entire set of items is uploaded.
*/
girder.vie... | JavaScript | 0 | @@ -6372,22 +6372,22 @@
ad(this.
-folder
+parent
, this.f
|
dde0443f3b37c3eda25a02bd4ff56162eb9ba33e | Remove console.log call used for debugging | bin/main.js | bin/main.js | // Steam Multi-user Multi-game hourboost by MetalRuller
// Dont edit below.
const utils = require("../bin/util.js");
const SteamUser = require("steam-user");
const config = require("../cfg/settings.js");
const configChecker = require("../bin/configChecker.js");
const SteamTotp = require("steam-totp");
... | JavaScript | 0.000002 | @@ -1923,43 +1923,8 @@
);%0D%0A
-%09%09%09%09%09%09%09%09console.log(_all.length);%0D%0A
%09%09%09%09
|
97c41cd9710edf4e5bd9b4afcc2ef945450d8581 | remove appiumVersion | test/endtoend/wdio.remote.conf.js | test/endtoend/wdio.remote.conf.js | const base = require('./wdio.base.conf')
const { CompanionService } = require('./utils')
function createCapability (capability) {
return {
'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER,
build: process.env.TRAVIS_BUILD_NUMBER,
extendedDebugging: true,
...capability
}
}
exports.config = Object.... | JavaScript | 0.000003 | @@ -1290,32 +1290,8 @@
tor'
-, appiumVersion: '1.7.1'
%7D%0A
|
44febbe5a4664defe498690f1652ced63d0063bd | update upload | routes/upload-font.js | routes/upload-font.js | 'use strict';
var fs = require('fs');
var path = require('path');
var express = require('express');
var router = express.Router();
var Fontmin = require('fontmin');
var intoStream = require('into-stream');
var rename = require('gulp-rename');
var uuid = require('node-uuid');
var EasyZip = require('easy-zip').EasyZip;
... | JavaScript | 0 | @@ -2011,32 +2011,60 @@
(originalname))%0A
+ .use(Fontmin.glyph())%0A
.use(Fontm
|
7d474e8169f45a6622760a29450436be42489213 | Fix null body issue | client/src/components/Issue.js | client/src/components/Issue.js | import React from 'react';
import Avatar from './Avatar';
import Assignee from './Assignee';
import Labels from './Labels';
import Moment from 'react-moment';
import PropTypes from 'prop-types';
const Issue = ({
issue: {
user: { avatar_url },
html_url,
title,
assignee,
created_at,
updated_at,... | JavaScript | 0.000001 | @@ -381,15 +381,15 @@
ame=
-'
+%22
issue
-'
+%22
%3E%0A
@@ -727,15 +727,15 @@
ame=
-'
+%22
times
-'
+%22
%3E%0A
@@ -753,33 +753,33 @@
v className=
-'
+%22
timeAgo
-'
+%22
%3E%0A
@@ -784,24 +784,30 @@
Created:
+
%0A
@@ -821,33 +821,33 @@
t fromNow parse=
-'
+%22
YYYY-MM-DD... |
b4d77fa1968a8faa79dfeceaee13bd3fecf630aa | Update building config | webpack.config.js | webpack.config.js | const path = require('path');
module.exports = {
entry: path.join(__dirname, 'src'),
output: {
library: 'RsuiteDatepicker',
libraryTarget: 'umd',
path: path.join(__dirname, 'dist'),
filename: 'bundle.js'
},
module: {
loaders: [
{
test:... | JavaScript | 0.000001 | @@ -164,16 +164,46 @@
'umd',%0A
+ umdNamedDefine: true,%0A
@@ -261,14 +261,25 @@
e: '
-bundle
+rsuite-datepicker
.js'
@@ -449,101 +449,8 @@
der'
-,%0A query: %7B%0A presets: %5B'es2015', 'react'%5D%0A %7D
%0A
@@ -588,35 +588,8 @@
-devtool:... |
13361865c78fa6be9828ab4c6bf53169f7bf52fc | made action verbs uppercase. #16 | src/actionTypes.js | src/actionTypes.js | export const BLUR = 'redux-form/blur';
export const CHANGE = 'redux-form/change';
export const INITIALIZE = 'redux-form/initialize';
export const RESET = 'redux-form/reset';
export const TOUCH = 'redux-form/touch';
export const TOUCH_ALL = 'redux-form/touch-all';
export const UNTOUCH = 'redux-form/untouch';
export cons... | JavaScript | 0.999173 | @@ -29,12 +29,12 @@
orm/
-blur
+BLUR
';%0Ae
@@ -70,14 +70,14 @@
orm/
-change
+CHANGE
';%0Ae
@@ -117,18 +117,18 @@
orm/
-initialize
+INITIALIZE
';%0Ae
@@ -163,13 +163,13 @@
orm/
-reset
+RESET
';%0Ae
@@ -200,21 +200,21 @@
ux-form/
-touch
+TOUCH
';%0Aexpor
@@ -245,25 +245,25 @@
ux-form/
-touch-all
+TOUCH_ALL
'... |
92f6d5545818b338a0642e79103e5e284662cb38 | Add failing test | test/fixtures/hard/indentation.js | test/fixtures/hard/indentation.js | import styled, { keyframes } from 'styled-components'
// None of the below should throw indentation errors
const Comp = () => {
const Button = styled.button`
color: blue;
`
return Button
}
const Comp2 = () => {
const InnerComp = () => {
const Button = styled.button`
color: blue;
`
retu... | JavaScript | 0.000138 | @@ -19,16 +19,21 @@
eyframes
+, css
%7D from
@@ -525,8 +525,164 @@
%7D%0A %60%0A%7D%0A
+%0Aconst helper = condition =%3E %7B%0A if (condition) %7B%0A return css%60%0A color: red;%0A%0A &:hover %7B%0A color: blue;%0A %7D%0A %60%0A %7D%0A return null%0A%7D%0A
|
6703cf195a87cb3758015379cf2302d6ebe32366 | Make bin/rnws.js executable | bin/rnws.js | bin/rnws.js | #!/usr/bin/env node
const path = require('path');
const fs = require('fs');
const program = require('commander');
const package = require('../package.json');
const fetch = require('../lib/fetch');
const Server = require('../lib/Server');
/**
* Create a server instance using the provided options.
* @param {Object} ... | JavaScript | 0.000015 | |
8d101319df5fdec771fd87478cf3b8f2773f1549 | Fix duplicated styles generated from emotion (#23809) | docs/pages/_document.js | docs/pages/_document.js | import React from 'react';
import { ServerStyleSheets } from '@material-ui/styles';
import { ServerStyleSheet } from 'styled-components';
import createEmotionServer from '@emotion/server/create-instance';
import Document, { Html, Head, Main, NextScript } from 'next/document';
import { LANGUAGES_SSR } from 'docs/src/mod... | JavaScript | 0 | @@ -6046,13 +6046,16 @@
tion
--css=
+=%7B%60css $
%7Bemo
@@ -6079,16 +6079,18 @@
in(' ')%7D
+%60%7D
%0A
|
3135fb1373abcedb2f001d12a59509151cbad113 | update babel-loder config | webpack.config.js | webpack.config.js | module.exports = webpackConfig => {
webpackConfig.babel.plugins.push('antd');
webpackConfig.module.loaders.unshift(
{
test: /src(\\|\/).+\.jsx?$/,
exclude: /node_modules/,
loader: 'babel',
query: { presets: [ 'es2015', 'react', 'stage-0' ] }
}
);
return webpackConfig;
}; | JavaScript | 0 | @@ -138,27 +138,14 @@
t: /
-src(%5C%5C%7C%5C/).+
%5C.jsx?
-$
/,%0A
|
127a05ae0dffa44e70906e11d1b66be9bb8d6442 | Fix test case mistakes | client/test/changeset_tests.js | client/test/changeset_tests.js | /**
* Copyright 2010 PolicyPad
*
* 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 ... | JavaScript | 0.999995 | @@ -1154,23 +1154,25 @@
: Z:6%3E3=
-3+3$
+5+3=1$r
ba
-r
%0A */%0Ates
@@ -1279,15 +1279,17 @@
6%3E3=
-3+3$
+5+3=1$r
ba
-r
');%0A
@@ -1555,26 +1555,30 @@
Z:7%3E4%7C1=4=3
-+4
+%7C1+1+3
$%5Cnbaz%0A */%0At
@@ -1718,18 +1718,22 @@
%3E4%7C1=4=3
-+4
+%7C1+1+3
$%5Cnbaz')
@@ -1936,24 +1936,32 @@
:7%3E4%7C1=4
-+4$ba
+... |
d8949e04d04bbd01a2bee3c3e7f278c33076fae8 | Remove type annotation from protein input | packages/example-studio/components/ProteinInput/ProteinInput.js | packages/example-studio/components/ProteinInput/ProteinInput.js | import PropTypes from 'prop-types'
import React from 'react'
import Fieldset from 'part:@sanity/components/fieldsets/default'
import {PatchEvent, unset, set, setIfMissing} from 'part:@sanity/form-builder/patch-event'
import {io, Viewer} from 'bio-pv'
import Select from 'part:@sanity/components/selects/default'
import T... | JavaScript | 0 | @@ -3995,16 +3995,8 @@
dbId
-: string
) %7B%0A
|
932c97d216606859ac8b0049c3a615e23681ef21 | Fix dz can use new components | packages/strapi-plugin-content-type-builder/utils/attributes.js | packages/strapi-plugin-content-type-builder/utils/attributes.js | 'use strict';
const _ = require('lodash');
const toUID = (name, plugin) => {
const modelUID = Object.keys(strapi.contentTypes).find(key => {
const ct = strapi.contentTypes[key];
if (ct.modelName === name && ct.plugin === plugin) return true;
});
return modelUID;
};
const fromUID = uid => {
const con... | JavaScript | 0 | @@ -2464,24 +2464,56 @@
%7D;%0A %7D%0A%7D;%0A%0A
+// TODO: move to schema builder%0A
const replac
@@ -3361,38 +3361,29 @@
components,
-attr.component
+value
)) %7B%0A
|
b408e57be9dc9fa642141b62674e508fd39f10ed | use @ syntax for import | agir/events/components/eventPage/EventDescriptionCard.js | agir/events/components/eventPage/EventDescriptionCard.js | import React from "react";
import PropTypes from "prop-types";
import styled from "styled-components";
import { DateTime } from "luxon";
import Button from "@agir/front/genericComponents/Button";
import Collapsible from "@agir/front/genericComponents/Collapsible.js";
import Card from "../../../front/components/generi... | JavaScript | 0 | @@ -277,32 +277,29 @@
Card from %22
-../../..
+@agir
/front/compo
@@ -353,16 +353,13 @@
om %22
-../../..
+@agir
/fro
|
e68462264402c61ab3802657a6dce054e40d9ec0 | Add xls & ppt support | contentscript.js | contentscript.js | // Avoid recursive frame insertion...
var extensionOrigin = 'chrome-extension://' + chrome.runtime.id;
if (!location.ancestorOrigins.contains(extensionOrigin)) {
var links = document.getElementsByTagName('a');
var pdfLinks = [];
Object.keys(links).forEach(function (id) {
var link = links[id];
if (link.hr... | JavaScript | 0 | @@ -155,16 +155,95 @@
gin)) %7B%0A
+ // Supported File Types%0A var fileTypes = %5B'.pdf', '.doc', '.xls', '.ppt'%5D;%0A%0A
var li
@@ -385,46 +385,50 @@
-if (link.href.indexOf('.pdf') %3E -1 %7C%7C
+fileTypes.some(function (ext) %7B%0A if (
link
@@ -441,22 +441,19 @@
indexOf(
-'.doc'
+ext
) %3E -1)... |
c339e575c51ce62e409b33c05a7de4173d13126b | Fix toJSON call | model/base.js | model/base.js | // db.Base extensions. Currently purely about base methods needed for JSON snapshots
'use strict';
var memoize = require('memoizee/plain')
, ensureDb = require('dbjs/valid-dbjs');
module.exports = memoize(function (db) {
ensureDb(db).Base.prototype.__descriptorPrototype__.setProperties({
// Field (label: value... | JavaScript | 0.000648 | @@ -1544,20 +1544,26 @@
.toJSON(
-this
+descriptor
);%0A%09%09%09%09r
|
f7ffc12c320883bb591e8e0a8099ed2e262c6365 | Fix buffer size | bin/tcap.js | bin/tcap.js | #!/usr/bin/env node
'use strict';
var commander = require('commander');
var TChannelTracker = require('../tchannel-tracker.js');
var ansi = require('../ansi.js');
if (require.main === module) {
main();
}
function main(arg) {
commander.version(require('../package.json').version)
.option('-i --interfa... | JavaScript | 0.000009 | @@ -1049,16 +1049,30 @@
erSizeMb
+ * 1024 * 1024
%0A %7D);
|
6a7dc4f4e3e1e0ac0bd3922f022ce08b12ffd535 | Add Chapter 09, exercise 2 | eloquent_js_exercises/chapter09/chapter09_ex02.js | eloquent_js_exercises/chapter09/chapter09_ex02.js | var text = "'I'm the cook,' he said, 'it's my job.'";
console.log(
text.replace(/([a-z])'([a-z])/gi, "$1~~$2")
.replace(/'/g, "\"")
.replace(/~~/g, "'"));
| JavaScript | 0 | @@ -1,7 +1,7 @@
-var
+let
tex
@@ -47,16 +47,36 @@
job.'%22;%0A
+// Change this call.
%0Aconsole
@@ -80,25 +80,16 @@
ole.log(
-%0A
text.rep
@@ -99,93 +99,78 @@
e(/(
-%5Ba-z%5D)'(%5Ba-z%5D
+%5CW%7C%5E)'%7C'(%5CW%7C$
)/g
-i
,
-%22$1~~$2%22)%0A .replace(/'/g, %22%5C%22%22)%0A .replace(/~~/g,... |
4fc97327ea6f5d2750e55ee99e030690ba3f0023 | Move Equalizer project to top of file | data/projects.js | data/projects.js | // When you add a new project, please add it to the top of the array!
export default [
{
name: 'Bornycentre',
description: 'An app to get your Bornycentre built with Cycle.js',
repository: 'https://github.com/teawaterwire/bornycentre',
homepage: 'http://bornycent.re/',
screenshot: 'data/images/bo... | JavaScript | 0 | @@ -81,16 +81,254 @@
fault %5B%0A
+ %7B%0A name: 'Equalizer',%0A description: 'Web audio player with equalizer',%0A repository: 'https://github.com/Bloomca/equalizer',%0A homepage: 'http://bloomca.github.io/equalizer/',%0A screenshot: 'data/images/equalizer.png'%0A %7D,%0A%0A
%7B%0A
@@ -3308,24... |
96258a4d3e3b592d11de3a2edfceb874129be270 | Add correlationId to message options | Response.js | Response.js | 'use strict'
class Response {
constructor(messenger, msg) {
this.messenger = messenger
this.queue = msg.properties.replyTo
this.corr = msg.properties.corr
}
send (msg) {
if(this.queue){
this.messenger.publish(
this.queue,
msg,
{correlationId: this.corr}
)
... | JavaScript | 0.000001 | @@ -271,43 +271,8 @@
sg,%0A
- %7BcorrelationId: this.corr%7D%0A
@@ -323,32 +323,58 @@
d(%7Bstatus: 'ok',
+ correlationId: this.corr,
content: payloa
@@ -430,16 +430,42 @@
s: 'ok',
+ correlationId: this.corr,
content
|
0e3e5a0b7fdbc002cf304ac1026249e56dab342c | Allow fine acceleration on mobile | controller/game.js | controller/game.js | var Player = require('../model/player');
var Integrator = require('../model/integrator');
var Team = require('../model/team');
var Obstacle = require('../model/obstacle');
var Projectile = require('../model/projectile');
var Physics = require('physicsjs');
// Constructor
function Game() {
// Physics
this.bounds = ... | JavaScript | 0.000001 | @@ -4248,18 +4248,58 @@
y).
-normalize(
+clamp(Physics.vector(-1, -1), Physics.vector(1, 1)
).mu
|
5fe1c4b383943b31f0edae8ba40f6dad4d977fcd | Fix empty post message. | controller/room.js | controller/room.js | var Config = require('../config');
var Common = require('./common');
var Rooms = require('../data/rooms');
var rooms = new Rooms();
var addClientToRoom = function (request, roomId, clientId, isLoopback, callback) {
var key = Common.getCacheKeyForRoom(request.headers.host, roomId);
rooms.createIfNotExist(key, fun... | JavaScript | 0.000468 | @@ -6016,12 +6016,15 @@
est.
-body
+payload
;%0A%0A
|
ba30c5cea4baa2ff57061c3146a7ee2f96e01528 | Fix error page. | errors/browser/admin/views/errors-page.js | errors/browser/admin/views/errors-page.js | var ErrorsCollection = require('../collections/errors');
var ErrorView = require('./error');
module.exports = require('ridge/views/page').extend({
events: {
'click button[data-command="removeAll"]': 'removeAll',
'click button[data-command="removeFiltered"]': 'removeFiltered',
'click button[data-command="removeP... | JavaScript | 0 | @@ -478,36 +478,37 @@
iew.fetch(null,
-this
+_view
.state.get('quer
@@ -636,20 +636,21 @@
ors?' +
-this
+_view
.state.g
@@ -701,36 +701,37 @@
iew.fetch(null,
-this
+_view
.state.get('quer
|
cf479bafab4275c456ecbaf6143f0e42003f2ed0 | convert form field FieldValue to lower case string | red/ubicall/plist/nodes/view/zendesk-ticket.js | red/ubicall/plist/nodes/view/zendesk-ticket.js | var plistUtils = require("../utils.js");
var log = require("../../../../log");
// form object element as keys will be mapped to plist element as values
var PlistMapper = {
type: "ScreenType",
name: "ScreenTitle",
help: "FormTitle",
fields: "FormFields"
};
// form field object element as keys will be mapped to... | JavaScript | 0.999997 | @@ -5695,16 +5695,78 @@
%22title%22%5D
+;%0A %7D%0A item%5B%22FieldValue%22%5D = item%5B%22FieldValue%22%5D.toString()
.toLower
@@ -5773,22 +5773,16 @@
Case();%0A
- %7D%0A
%0A
|
c2bd377e1fb3c780bb4bea59038b2cadf8ef5624 | Fix broken link in docs (#1399) | docs/src/pages/index.js | docs/src/pages/index.js | import React from 'react';
import classnames from 'classnames';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import useBaseUrl from '@docusaurus/useBaseUrl';
import styles from './styles.module.css';
const heroImageUrl = '... | JavaScript | 0 | @@ -6614,19 +6614,54 @@
just
- %3Ca href=%22/
+%7B' '%7D%0A %3CLink to=%7BuseBaseUrl('
docs
@@ -6668,17 +6668,20 @@
/example
-%22
+/')%7D
%3Ego to t
@@ -6694,17 +6694,18 @@
ge%3C/
-a%3E to see
+Link%3E%7B' '%7D
%0A
@@ -6719,16 +6719,23 @@
+to see
how you
@@ -6782,16 +6782,8 @@
bo... |
b5d7847f3a817140f24f07c1165269f38e0e24c6 | Update version string to 2.6.0-pre.4.dev | version.js | version.js | if (enyo && enyo.version) {
enyo.version["enyo-cordova"] = "2.6.0-pre.4";
}
| JavaScript | 0 | @@ -65,13 +65,17 @@
.0-pre.4
+.dev
%22;%0A%7D%0A
|
a04cf25a556f0e10a1399a3c37570bc25e2f1d4f | Fix name of the SJ ssid | modules/SJ.js | modules/SJ.js | 'use strict';
// Example response
/*
data({
"version":"1.6",
"ip":"10.101.5.100",
"mac":"00:05:69:4B:74:59",
"online":"0",
"timeleft":"0",
"authenticated":"1",
"userclass":"2",
"expires":"Never",
"timeused":"175",
"data_download_used":"131427344",
"data_upload_used":"745893"... | JavaScript | 0.999988 | @@ -587,12 +587,12 @@
-name
+ssid
: 'S
|
554cf9a8bad27f0b5701ed236290f581587e1531 | add isFeature function | meteor/imports/helpers.js | meteor/imports/helpers.js | /*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) 2014 Mozilla Corporation
*/
import { _ } from 'meteor/underscore';
// helper functions
getSetting=function (... | JavaScript | 0.000124 | @@ -728,8 +728,199 @@
%7D%0A%7D;%0A%0A
+isFeature = function(featureName)%7B%0A if ( features.findOne(%7B'name':featureName%7D) )%7B%0A return features.findOne(%7B'name':featureName%7D).enabled;%0A %7Delse%7B%0A return true;%0A %7D%0A%7D;%0A%0A
|
04c10207973f28827d1914f233511f3f1cc3de2f | Fix bs modal closing when datepicker hide event is triggered | app/admin/formwidgets/datepicker/assets/js/datepicker.js | app/admin/formwidgets/datepicker/assets/js/datepicker.js | /*
* Color Picker plugin
*
* Data attributes:
* - data-control="datePicker" - enables the plugin on an element
*/
+function ($) {
"use strict";
// FIELD DATEPICKER CLASS DEFINITION
// ============================
var DatePicker = function (element, options) {
this.options = options
... | JavaScript | 0 | @@ -1631,32 +1631,383 @@
ePicker, this))%0A
+ // Stops bootstrap modal from closing when datepicker hide event is triggered%0A // https://github.com/uxsolutions/bootstrap-datepicker/issues/50#issuecomment-90855951%0A .on('hide', function(event) %7B%0A eve... |
93db5063c7ec27f2b92de8dc13618862e698014d | Remove debugger | vendor/jasmine-jquery.js | vendor/jasmine-jquery.js | (function() {
jasmine.JQuery = function() {};
jasmine.JQuery.browserTagCaseIndependentHtml = function(html) {
var div = document.createElement('div');
div.innerHTML = html
return div.innerHTML
};
jasmine.JQuery.elementToString = function(element) {
if (element instanceof HTMLElement) {
return element.out... | JavaScript | 0.00001 | @@ -482,23 +482,8 @@
) %7B%0A
- debugger%0A
|
7bc80c5a84e277cef288fe2a5d35b1d1347fc10b | Improve comment of byte alignment computation. | examples/jsm/renderers/webgpu/WebGPUAttributes.js | examples/jsm/renderers/webgpu/WebGPUAttributes.js | class WebGPUAttributes {
constructor( device ) {
this.buffers = new WeakMap();
this.device = device;
}
get( attribute ) {
return this.buffers.get( attribute );
}
remove( attribute ) {
const data = this.buffers.get( attribute );
if ( data ) {
data.buffer.destroy();
this.buffers.delete( at... | JavaScript | 0 | @@ -1162,16 +1162,28 @@
lignment
+, see #20441
%0A%0A%09%09cons
|
ecbbde5d78bccc0fb56b0cacbe0a0c4413a0f0c8 | add functions to set slide-* CSS rules | app/assets/javascripts/app/controllers/FormController.js | app/assets/javascripts/app/controllers/FormController.js | function FormController($window, $filter, FormDataService, WordService, GenreService, BandNameService, ShareBandNameService) {
var ctrl = this;
ctrl.formData = FormDataService.formData;
ctrl.genres = [];
ctrl.bandWords = [];
ctrl.bandName = ShareBandNameService;
ctrl.getGenreNames = function() {
Genre... | JavaScript | 0 | @@ -266,16 +266,33 @@
Service;
+%0A ctrl.slideDir;
%0A%0A ctrl
@@ -2115,24 +2115,166 @@
'; %0A %7D%0A%0A
+ ctrl.slideViewLeft = () =%3E %7B%0A ctrl.slideDir = 'slide-left';%0A %7D%0A%0A ctrl.slideViewRight = () =%3E %7B%0A ctrl.slideDir = 'slide-right';%0A %7D%0A%0A
ctrl.getGe
|
fbb8cdcd2d6957cea85f21431c59aedff3bdaf12 | Return 204 status code for DELETE and PUT requests | controllers/api.js | controllers/api.js | 'use strict';
/**
* GET /api/challenges
* List of challenges.
*/
exports.getChallenges = function get(req, res) {
res.json({ challenges: [] });
};
/**
* POST /api/challenges/
* Create a new challenge.
*/
exports.postChallenge = function post(req, res) {
res.status(201).send("Created new challenge");
}
/**
* ... | JavaScript | 0.000001 | @@ -433,33 +433,33 @@
res.status(20
-1
+4
).send(%22Update c
@@ -1018,33 +1018,33 @@
res.status(20
-1
+4
).send(%22Updated
|
8c3c73f4e3abed7535c513adc5fc607fdde0dd88 | fix demo | example/react-native-iOS/push_activity.js | example/react-native-iOS/push_activity.js | 'use strict';
import React, { Component } from 'react';
import ReactNative from 'react-native';
const {
Text,
View,
TextInput,
TouchableHighlight,
PropTypes,
requireNativeComponent,
NativeModules,
ScrollView,
DeviceEventEmitter,
NativeAppEventEmitter,
StyleSheet,
Alert,
} = ReactNative;
impo... | JavaScript | 0.000001 | @@ -1213,79 +1213,8 @@
ion%0A
- JPushModule.getBadge((badge) =%3E %7BAlert.alert(%22badge%22, badge)%7D)%0A
|
c35381b80da7dfdd6cb984226a7d61b85297b122 | remove console.log | src/components/component-helpers.js | src/components/component-helpers.js | // @flow
export function getSource({ data, isFullscreen }) {
let { source = data.src } = data;
console.log(source)
if (typeof source === 'string') return source;
return isFullscreen ? source.fullscreen : source.regular;
}
export function getThumbnail({ data }) {
const { source } = data;
if (typeof sourc... | JavaScript | 0.000006 | @@ -95,30 +95,8 @@
ta;%0A
- console.log(source)%0A
if
|
f64a66dcc482776b3970ca6645f7e64abc410ffb | change end point name | src/client/services/server-api/index.js | src/client/services/server-api/index.js | const io = require('socket.io-client');
const qs = require('querystring');
const _ = require('lodash');
const socket = io.connect('/');
const defaultFetchOpts = {
method: 'GET', headers: {
'Content-type': 'application/json',
'Accept': 'application/json'
}
};
const ServerAPI = {
getGraphAndLayout(uri, v... | JavaScript | 0.000195 | @@ -930,18 +930,18 @@
ent/
-gene-query
+validation
', %7B
|
aff6e3d5a50548e831c3d692f0b1d49e8f044586 | add meta to persons | src/components/person-page/index.js | src/components/person-page/index.js | import React from 'react';
import st from './style.module.css';
import Link from 'gatsby-link';
import Helmet from 'react-helmet';
import marked from 'marked';
import {defaultHelmetMeta} from '../../layouts/index';
import BackButton from '../back-button';
import TelegramIcon from '-!svg-react-loader?name=Icon!../../../... | JavaScript | 0.000001 | @@ -1504,37 +1504,47 @@
site', content:
-title
+'@spb_frontend'
%7D,%0A %7Bna
@@ -1576,16 +1576,17 @@
ntent: '
+@
spb_fron
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.