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 |
|---|---|---|---|---|---|---|---|
c6dd7bd0631549886e95cbb2aaaed3bf6ebb088a | Add waves. | src/optionspage/options.js | src/optionspage/options.js | console.log( "==== simpread options page load ====" )
import '../assets/css/options.css';
import Tabs from 'tabs';
const tabsitem = [{
name: "共通",
value: "common",
icon : "",
active : true,
},{
name: "聚焦模式",
value: "focus",
icon : "",
},{... | JavaScript | 0.000024 | @@ -101,16 +101,22 @@
rt Tabs
+
from 'ta
@@ -120,16 +120,49 @@
'tabs';%0D
+%0Aimport * as waves from 'waves';%0D
%0A%0D%0Aconst
@@ -743,24 +743,103 @@
%60 )%0D%0A%7D);%0D%0A%0D%0A
+/**%0D%0A * Waves render%0D%0A */%0D%0Awaves.Render(%7B root: %22main%22, name: %22sr-tabs%22 %7D);%0D%0A%0D%0A
/**%0D%0A * Ta... |
69155f2b2c9f387480521493b44969ebc4e0cc35 | test udaru resources configured in env | test/udaru.env.test.js | test/udaru.env.test.js | 'use strict'
const expect = require('code').expect
const Lab = require('lab')
const lab = exports.lab = Lab.script()
const exec = require('child_process').exec
lab.experiment('test config env variable', () => {
lab.test('set env and check config uses it', (done) => {
const testPass = 'test_pw'
const option... | JavaScript | 0 | @@ -689,16 +689,659 @@
tPass)%0A%0A
+ done()%0A %7D)%0A %7D)%0A%0A lab.test('set resources in env and check Udaru uses it', (done) =%3E %7B%0A const testTemplate = '/%7B%7B namespace %7D%7D/organization1/%5BorganizationId%5D'%0A const options = %7B%0A env: Object.assign(%7B%7D, process.env, %7B UD... |
79c4c2c54d44dc3e4c3f5fde086f756914ae5927 | Fix threadpool uses of assert | src/core/threading/pool.js | src/core/threading/pool.js | /*jshint white: false, strict: false, plusplus: false, onevar: false,
nomen: false */
/*global define: false, console: false, window: false, setTimeout: false,
assert: false */
define( function( require ) {
var lang = require( 'lang' );
var Proxy = require( './proxy');
var Pool = function( options ) {... | JavaScript | 0 | @@ -562,32 +562,37 @@
) %7B%0A
+lang.
assert( _threads
@@ -1229,16 +1229,21 @@
+lang.
assert(
|
b8014eaafedb07e300faf3e8a556ba9a76f4b0ca | fix alt='' | src/components/Sections/SectionMarkdown.js | src/components/Sections/SectionMarkdown.js | /* eslint-disable react/prop-types */
import './SectionMarkdown.less';
import '../../../assets/styles/railscasts.css';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { mdReact } from 'react-markdown-demisto';
import Highlight from 'react-highlight';
import isString from 'lodash/isS... | JavaScript | 0.000126 | @@ -2975,16 +2975,23 @@
= (%3Cimg
+ alt=%22%22
%7B...pro
@@ -3002,31 +3002,8 @@
/%3E);
- // eslint-disable-line
%0A
|
84bccee5443fc99233a0cf3a4fe8008e8f98c146 | add test function to simply run | test-string-match/test.js | test-string-match/test.js | (function () {
sm = require('./string-match/string-match.js');
}).call(this); | JavaScript | 0 | @@ -24,16 +24,17 @@
quire('.
+.
/string-
@@ -57,16 +57,261 @@
ch.js');
+%0A%0A%09//init vars%0A%09var compareString = 'AP Khumalo Ext 1, 2 (Katlehong)',%0A%09%09%09toString = 'A P Khumalo',%0A%09%09%09options = %5B%5D;%0A%0A%09(function () %7B%0A%09%09var percentage = sm.stringMatch(compareString, toString, options)... |
b9f90ce4f9913794cfc560da1db46190e6ca1d9e | Update createapp.js | examples/App/createapp.js | examples/App/createapp.js | /**
* This demonstrates how to create a Qlik Sense application.
* Define a data loading script.
* Load some data into the application
*
* This sample assumes a Desktop installation but the logic is the same
* for a Qlik Sense Server installation.
*/
const qsocks = require('qsocks');
const applicationName = 'My... | JavaScript | 0.000001 | @@ -884,16 +884,19 @@
nario we
+'ll
just au
@@ -2031,8 +2031,9 @@
ne!')%0A%7D)
+%0A
|
58113d2823e6b9d1bdfbcc29425d30994191f1ef | Fix dispatched on eventedit | app/routes/events/EventEditRoute.js | app/routes/events/EventEditRoute.js | import { compose, bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { formValueSelector } from 'redux-form';
import {
fetchEvent,
editEvent,
deleteEvent,
setCoverPhoto
} from 'app/actions/EventActions';
import { uploadFile } from 'app/actions/FileActions';
import EventEditor from ... | JavaScript | 0 | @@ -77,32 +77,76 @@
'react-redux';%0A
+import %7B dispatched %7D from 'react-prepare';%0A
import %7B formVal
@@ -555,61 +555,8 @@
ts';
-%0Aimport fetchOnUpdate from 'app/utils/fetchOnUpdate';
%0A%0Aco
@@ -1902,205 +1902,221 @@
%7D;%0A%0A
-const loadData = (%7B eventId %7D, props) =%3E %7B%0A props.fetchEvent(eve... |
040e15495dc5802754f44a26e86ec52f9c0ab1aa | Update migration script | migrations/2_deploy_contracts.js | migrations/2_deploy_contracts.js | // var usingOraclize = artifacts.require("./usingOraclize.sol");
var ComputationService = artifacts.require("./ComputationService.sol");
module.exports = function(deployer) {
//deployer.deploy(usingOraclize);
//deployer.link(ConvertLib, MetaCoin);
var contracts = [];
for (i = 0; i < 2; i++) {
contracts.pus... | JavaScript | 0.000001 | @@ -58,16 +58,112 @@
.sol%22);%0A
+var Arbiter = artifacts.require(%22./Arbiter.sol%22);%0Avar Judge = artifacts.require(%22./Judge.sol%22);%0A
var Comp
@@ -363,16 +363,154 @@
ts = %5B%5D;
+%0A%0A // deploy one Arbiter%0A contracts.push(Arbiter);%0A%0A // deploy one Judge%0A contracts.push(Judge);%0A%0A // depl... |
ef4267eaa59a262e25ecff2c7782d79f694a63f0 | Fix markdown paragraph and hardbreak (#46) | src/components/Sections/SectionMarkdown.js | src/components/Sections/SectionMarkdown.js | /* eslint-disable react/prop-types */
import './SectionMarkdown.less';
import '../../../assets/styles/railscasts.css';
import React, { PropTypes } from 'react';
import { mdReact } from 'react-markdown-js';
import Highlight from 'react-highlight';
// plugins for react markdown component
import abbr from 'markdown-it-a... | JavaScript | 0.998295 | @@ -758,83 +758,8 @@
) %7B%0A
- case 'p':%0A res = (%3Cdiv %7B...props%7D%3E%7Bchildren%7D%3C/div%3E);%0A break;%0A
@@ -2968,14 +2968,8 @@
%3Cbr
-/%3E%3Cbr
/%3E%3C/
|
1c612042d80a75d7d90a93fde6d109186952df56 | remove debug | app/routes/wh/content/type/index.js | app/routes/wh/content/type/index.js | import getItemModelName from 'appkit/utils/model';
export default Ember.Route.extend({
recordLimit: 50,
beforeModel: function (transition) {
var contentType = this.modelFor('wh.content.type');
if (contentType.get('oneOff')) {
this.transitionTo('wh.content.type.edit', contentType.get('id'));
}
... | JavaScript | 0.000002 | @@ -876,63 +876,8 @@
);%0A%0A
- window.console.log(this.get('contentType.name'));%0A%0A
|
8244ca84d30b363c59badb5af6db8cd8a00aef56 | replace context.router by history singleton in Dialog | actor-sdk/sdk-web/src/components/Dialog.react.js | actor-sdk/sdk-web/src/components/Dialog.react.js | /*
* Copyright (C) 2015-2016 Actor LLC. <https://actor.im>
*/
import { isFunction } from 'lodash';
import React, { Component, PropTypes } from 'react';
import { Container } from 'flux/utils';
import PeerUtils from '../utils/PeerUtils';
import DefaultMessages from './dialog/MessagesSection.react';
import DialogFoo... | JavaScript | 0.000001 | @@ -229,24 +229,64 @@
/PeerUtils';
+%0Aimport history from '../utils/history';
%0A%0Aimport Def
@@ -890,49 +890,8 @@
= %7B%0A
- router: PropTypes.object.isRequired,%0A
@@ -1811,27 +1811,15 @@
-t
his
-.context.router
+tory
.rep
|
dc52596af92ac96f63b84b45c63d4c86ffb6565f | Create a new draft from approved Tos | src/components/Tos/Header/ActionButtons.js | src/components/Tos/Header/ActionButtons.js | import React, { PropTypes } from 'react';
import IsAllowed from 'components/IsAllowed/IsAllowed';
import ActionButton from './ActionButton';
import {
EDIT,
REVIEW,
APPROVE,
DRAFT,
SENT_FOR_REVIEW,
WAITING_FOR_APPROVAL,
APPROVED
} from '../../../../config/constants';
const ActionButtons = ({ cancelEdit,... | JavaScript | 0 | @@ -2359,33 +2359,17 @@
on=%7B
-() =%3E console.log('test')
+saveDraft
%7D%0A
|
32d37793a1adcd41cc09bcea7d52614ec5d7d9d3 | add listener for fetching assets in sw | src/client/sw.js | src/client/sw.js | importScripts('workbox-sw.prod.v2.1.2.js');
const workbox = new WorkboxSW({
skipWaiting: true,
clientsClaim: true,
});
self.addEventListener('push', function (evt) {
const title = 'Welcome to Web Starter Kit';
const options = {
body: evt.data.text(),
};
evt.waitUntil(self.registration.showNotification... | JavaScript | 0 | @@ -337,16 +337,116 @@
);%0A%7D);%0A%0A
+self.addEventListener('fetch', function (evt) %7B%0A console.log('Fetching: ' + evt.request.url);%0A%7D);%0A%0A
// Do no
|
3ce3636a6edab6a81e29ba4e85c8138fdd0aa5ee | Remove autobind in Decoration | lib/atom/decoration.js | lib/atom/decoration.js | import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import {Disposable} from 'event-kit';
import cx from 'classnames';
import {createItem, autobind, extractProps} from '../helpers';
import {RefHolderPropType} from '../prop-types';
import {TextEditorContext} from './atom-tex... | JavaScript | 0 | @@ -181,18 +181,8 @@
tem,
- autobind,
ext
@@ -1336,47 +1336,8 @@
);%0A%0A
- autobind(this, 'observeParents');%0A%0A
@@ -2807,18 +2807,24 @@
eParents
-()
+ = () =%3E
%7B%0A t
|
c6cdf2a596c58dd61868b3d7556dd5887b466f21 | Remove monumenten from search results | modules/search-results/search-config.constant.js | modules/search-results/search-config.constant.js | (function () {
'use strict';
angular
.module('dpSearchResults')
.constant('SEARCH_CONFIG', {
QUERY_ENDPOINTS: [
{
// The slug variable is used to indentify this category in list.component.js
slug: 'openbareruimte',
... | JavaScript | 0 | @@ -2393,209 +2393,8 @@
h/'%0A
- %7D, %7B%0A slug: 'monument',%0A label_singular: 'Monument',%0A label_plural: 'Monumenten',%0A uri: 'monumenten/search/'%0A
|
8a7061a6edcbf14d0cc3db3bea7ea9d9e30e301a | Fix problem with dropping Q on enc that only supports O (for example) | app/scripts/directives/fielddrop.js | app/scripts/directives/fielddrop.js | 'use strict';
angular.module('vleApp')
.directive('fieldDrop', function (Dataset) {
return {
templateUrl: 'templates/fielddrop.html',
restrict: 'E',
scope: {
fieldDef: '=',
types: '='
},
controller: function ($scope) {
$scope.removeField = function() {
... | JavaScript | 0.000001 | @@ -454,72 +454,274 @@
-$scope.fieldDef.type = Dataset.stats%5B$scope.fieldDef.name%5D.type;
+var fieldType = Dataset.stats%5B$scope.fieldDef.name%5D.type;%0A if (_.contains($scope.types, fieldType)) %7B%0A $scope.fieldDef.type = fieldType;%0A %7D else if (!$scope.fieldDef.type) %7B%0... |
172819b2a5fdfa05d5a480de34db988f65a73bad | allow selection of State | app/scripts/services/dataservice.js | app/scripts/services/dataservice.js | 'use strict';
/**
* @ngdoc service
* @name midjaApp.dataService
* @description
* # dataService
* Factory in the midjaApp.
*/
angular.module('midjaApp')
.factory('dataService', function ($http, cartoDbApiKey, cartodb, $q, labelService) {
return {
getTables: getTables,
getTable... | JavaScript | 0 | @@ -4124,32 +4124,213 @@
ame) + '%25%5C';';%0A%0A
+ var stateSql = 'SELECT DISTINCT state_code, state_name FROM iloc_merged_dataset ' +%0A 'WHERE state_name ILIKE %5C'' + mysqlRealEscapeString(name) + '%25%5C';';%0A%0A
var
@@ -4442,16 +4442,51 @@
iAreSql)
+,%0A d... |
d1dd37e4f070f17a3d8027ed48a5984782e6a4ad | Revert "don't block view load on lbs, tasks and security groups" | app/scripts/services/oortService.js | app/scripts/services/oortService.js | 'use strict';
require('../app');
var angular = require('angular');
angular.module('deckApp')
.factory('oortService', function (searchService, settings, $q, Restangular, _, $timeout, clusterService, loadBalancerService, pond, securityGroupService, scheduler, taskTracker, $exceptionHandler, scheduledCache) {
var... | JavaScript | 0 | @@ -1099,83 +1099,8 @@
ask%0A
- if (application.tasks && application.tasks.length %3E 0) %7B%0A
@@ -1181,34 +1181,32 @@
-
application.task
@@ -1208,18 +1208,16 @@
.tasks,%0A
-
@@ -1267,31 +1267,11 @@
-
));
-%0A %7D
%0A%0A
@@ -3781,32 +... |
07890ec6080316bea0cc5c80a8e4ef74384f3a00 | Change tableCache.get for tableCache.peek #244 | app/services/cached-query-tables.js | app/services/cached-query-tables.js | var QueryTables = require('cartodb-query-tables');
var generateMD5 = require('../utils/md5');
function CachedQueryTables(tableCache) {
this.tableCache = tableCache;
}
module.exports = CachedQueryTables;
CachedQueryTables.prototype.getAffectedTablesFromQuery = function(pg, sql, skipCache, callback) {
var sel... | JavaScript | 0 | @@ -460,19 +460,20 @@
leCache.
-get
+peek
(cacheKe
|
42845f3a42720a733d4711ce68847cf03e7ee985 | fix ci | test/decorate_msg_test.js | test/decorate_msg_test.js | /**
* Test case for decorateMsg.
* Runs with mocha.
*/
"use strict";
const decorateMsg = require("../lib/msg/decorate_msg.js");
const assert = require("assert");
describe("decorate", () => {
it("Decorate msg", done => {
if (process.env.CI) {
return;
}
assert.ok(decorateMsg("foo", "green"));
... | JavaScript | 0.000003 | @@ -238,32 +238,45 @@
ocess.env.CI) %7B%0A
+ done()%0A
return;%0A
@@ -458,24 +458,37 @@
s.env.CI) %7B%0A
+ done()%0A
return
|
af063f6668b70b2386e002415c3e8dafbdd70e8b | test :: add test to encode & decode a pid | test/encode.decode.pid.js | test/encode.decode.pid.js | var fs = require('fs')
, concat = require('concat-stream')
, encoder = require('../lib/encoder')
, decoder = require('../lib/decoder')
, EiPid = require('../lib/pid')
, ei = require('../lib/const')
, test = require('tap').test
;
test('encode/decode/pid', function(t) {
'use strict';
var... | JavaScript | 0.000001 | @@ -350,18 +350,18 @@
id('nono
-st
+de
@nohost'
|
fcf7df30b62455dbb31535824a0f052cda3a11f1 | Update ViewController.js | archetype/api/controllers/hapi/ViewController.js | archetype/api/controllers/hapi/ViewController.js | module.exports = {
helloWorld (request, reply) {
reply('Hello Trails.js !');
},
catchAll(request, reply) {
reply('<h1>This is the wrong trail</h1>');
}
}
| JavaScript | 0 | @@ -93,16 +93,17 @@
catchAll
+
(request
@@ -119,9 +119,10 @@
%7B%0A
-%09
+
repl
|
7e49d37a982bea6d0e323c1f7655a54d5956311a | remove dependency on $window | src/ng/urlUtils.js | src/ng/urlUtils.js | 'use strict';
function $$UrlUtilsProvider() {
this.$get = ['$window', '$document', function($window, $document) {
var urlParsingNode = $document[0].createElement("a"),
originUrl = resolve($window.location.href, true);
/**
* @description
* Normalizes and optionally parses a URL.
*
... | JavaScript | 0 | @@ -59,19 +59,8 @@
= %5B
-'$window',
'$do
@@ -81,17 +81,8 @@
ion(
-$window,
$doc
@@ -148,16 +148,408 @@
t(%22a%22),%0A
+ // NOTE: The usage of window instead of $window here is deliberate. When the browser%0A // resolves a URL for XHR, it doesn't know about any mocked $window. $$urlUtils%0A ... |
7286a396a6fa5f187512b72134b03877c6bc8dae | Fix `isValidHex` error (#2124) (#2128) | packages/@sanity/color-input/src/ColorPickerFields.js | packages/@sanity/color-input/src/ColorPickerFields.js | /* eslint-disable no-param-reassign, complexity, react/prop-types */
import React from 'react'
import color from 'react-color/lib/helpers/color'
import {EditableInput} from 'react-color/lib/components/common'
import styles from './ColorPickerFields.css'
const inputStyles = {
input: {
width: '80%',
padding: ... | JavaScript | 0.000001 | @@ -96,16 +96,21 @@
%0Aimport
+* as
color fr
@@ -742,25 +742,19 @@
data.hex
-) %7B%0A
+ &&
color.i
@@ -776,20 +776,18 @@
hex)
- &&
+) %7B
%0A
-
onCh
@@ -788,26 +788,24 @@
onChange(%0A
-
%7B%0A
@@ -812,18 +812,16 @@
-
hex: dat
@@ -829,34 +829,32 @@
.hex,%0A
... |
db0573e09d4950942f10f4061b9f2ab79f394565 | add the check for the module's existence | src/nga11yfocus.js | src/nga11yfocus.js | angular
.module('ngA11y', [])
.directive('a11yfocus', function ($timeout) {
function hidden(elem) {
return !elem.offsetWidth || !elem.offsetHeight
}
return {
restrict: 'A',
link: function (scope, element) {
$timeout(function () {
if (!document.activeElement ||
(document.activeEl... | JavaScript | 0 | @@ -1,13 +1,110 @@
+(function() %7B%0A%09var module;%0A%09try %7B%0A%09%09module = angular.module('ngA11y');%0A%09%7D catch (err) %7B%0A%09%09module =
angular
-%0A%09
.mod
@@ -120,18 +120,29 @@
1y', %5B%5D)
+;
%0A%09
+%7D%0A%0A%09module
.directi
@@ -182,16 +182,17 @@
t) %7B%0A%09%09%09
+%09
function
@@ -203,24 ... |
9ef0c95e341b400dc61cab9c0dc1d5058b8fa0d2 | Allow to define layouts through globalSettings | app/js/arethusa.core/globalSettings.js | app/js/arethusa.core/globalSettings.js | "use strict";
angular.module('arethusa.core').service('globalSettings', [
'configurator',
'plugins',
'$injector',
function(configurator, plugins, $injector) {
var self = this;
self.settings = {};
self.colorizers = { disabled: true };
var confKeys = [
"alwaysDeselect",
"colorizer... | JavaScript | 0 | @@ -1039,24 +1039,88 @@
-setting');%0A
+ self.defineSetting('layout', 'custom', 'layout-setting');%0A
%7D%0A%0A t
@@ -2277,16 +2277,227 @@
ate();%0A%0A
+ this.layouts = %7B%0A 'Sidepanel' : 'templates/main_with_sidepanel.html',%0A 'Grid' : 'templates/main_grid.html'%0A %7D;%0A%0A this.... |
9bd602bed621c05ed67cff7ae2e48c850d613328 | Fix typo as className instead of cassName | app/js/components/source/ParcelCard.js | app/js/components/source/ParcelCard.js | import React from 'react';
import Moment from 'react-moment';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { Dropdown, DropdownMenu, DropdownItem, Progress, Modal, ModalHeader, ModalBody, ModalFooter, Button } from 'reactstrap';
import {... | JavaScript | 0.000623 | @@ -4143,16 +4143,17 @@
%3Ctd c
+l
assName=
|
aea9f22332f616d8ea3d3795548554614e9d1f42 | Drop XXX | packages/antwar/src/core/paths/parse-section-pages.js | packages/antwar/src/core/paths/parse-section-pages.js | const _path = require('path');
const _ = require('lodash');
const parseLayout = require('./parse-layout');
const parseSectionName = require('./parse-section-name');
const parseUrl = require('./parse-url');
module.exports = function parseSectionPages(sectionName, section, modules) {
const ret = _.map(
modules.key... | JavaScript | 0.001506 | @@ -991,36 +991,8 @@
on,%0A
- // XXX: avoid trim?%0A
|
aa863c8c9c4a6b3df3f1719f508ebd66dd37cccd | Use keyword emit instead of fire | src/commander.js | src/commander.js | 'use strict';
const R = require('rethinkdb');
const Colors = require('colors/safe');
const Commander = function (config) {
this.conn = null;
this.observers = {};
this.store = {};
};
Commander.prototype.close = function () {
return this.conn.close();
};
Commander.prototype.connect = function (confi... | JavaScript | 0.000001 | @@ -393,20 +393,20 @@
this.
-fire
+emit
('connec
@@ -409,17 +409,16 @@
nnect',
-%5B
'Connect
@@ -440,17 +440,16 @@
status()
-%5D
);%0A %7D
@@ -467,36 +467,36 @@
%7B%0A%0A this.
-fire
+emit
('error', %5Berr.m
@@ -485,25 +485,24 @@
it('error',
-%5B
err.message%5D
@@ -500,17 +500,16 @@
.message
-... |
aa6d09b779c8c3a32ceac4c756573b1cfa52982d | Disable message buffering in spice | app/modules/cloudApp/spiceConnector.js | app/modules/cloudApp/spiceConnector.js | /*
Copyright (c) 2016 eyeOS
This file is part of Open365.
Open365 is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later ver... | JavaScript | 0.000001 | @@ -5162,24 +5162,60 @@
en': false,%0A
+%09%09%09'disableMessageBuffering': true,%0A
%09%09%09'checkAct
|
ccf7a8b1c5b5ae30db4d3a2b58ab55e7aafa6319 | use uglify preamble option | build/build.js | build/build.js | const fs = require('fs')
const path = require('path')
const zlib = require('zlib')
const uglify = require('uglify-js')
const rollup = require('rollup')
const configs = require('./configs')
if (!fs.existsSync('dist')) {
fs.mkdirSync('dist')
}
build(Object.keys(configs).map(key => configs[key]))
function build (buil... | JavaScript | 0.000009 | @@ -770,54 +770,8 @@
ed =
- (output.banner ? output.banner + '%5Cn' : '') +
ugl
@@ -809,16 +809,53 @@
tput: %7B%0A
+ preamble: output.banner,%0A
|
9184e15121cfccc74266aa23be1f631156e436ec | Add null type test | test/fields_definition.js | test/fields_definition.js | Tinytest.add('Fields - Definition', function(test) {
var FieldA = Astro.Class({
name: 'FieldA',
fields: ['nullA']
});
test.isNull(FieldA.getField('nullA').type,
'The type of the "nullA" field should be null'
);
FieldA.addField('nullB');
test.isNull(FieldA.getField('nullB').type,
'The type o... | JavaScript | 0.000002 | @@ -122,37 +122,36 @@
'%5D%0A %7D);%0A test.
-isNul
+equa
l(FieldA.getFiel
@@ -161,24 +161,37 @@
nullA').type
+.name, 'Null'
,%0A 'The t
@@ -217,36 +217,38 @@
field should be
-n
+%22N
ull
+%22
'%0A );%0A%0A FieldA
@@ -278,13 +278,12 @@
est.
-isNul
+equa
l(Fi
@@ -309,16 +309,29 @@
B').type
+.name, 'Nul... |
06219cf1155accf7974a8492aa511eba91a297c5 | Fix typo | test/functional/search.js | test/functional/search.js | /* eslint-env node, mocha */
/* global $pg_database */
import knexCleaner from 'knex-cleaner'
import { getSingleton } from '../../app/app'
import { DummyPublisher } from '../../app/pubsub'
import { PubSub } from '../../app/models'
import * as funcTestHelper from './functional_test_helper'
describe('SearchController',... | JavaScript | 0.999999 | @@ -510,22 +510,22 @@
cribe('#
-create
+search
()', ()
|
d343947522c1dec68e1282292639565b0c7954e5 | Limit random values to 1.000 | src/datasource/plugins/randomDatasource.js | src/datasource/plugins/randomDatasource.js | import {assert} from 'chai'
export const TYPE_INFO = {
type: "random",
name: "Random",
settings: [
{
id: "maxValues",
name: "Max Values",
description: "Maximum number of values stored",
type: "number"
},
{
id: "min",
... | JavaScript | 0.999999 | @@ -1296,16 +1296,24 @@
xValues)
+ %7C%7C 1000
;%0A
|
86f2d5ccc2a06786e1466e02656bd5e6a0122aaf | fix auth-flow example in phantomjs | examples/auth-flow/app.js | examples/auth-flow/app.js | import Vue from 'vue/dist/vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
import auth from './auth'
import App from './components/App.vue'
import About from './components/About.vue'
import Dashboard from './components/Dashboard.vue'
import Login from './components/Login.vue'
function requireAuth (route, r... | JavaScript | 0.000016 | @@ -851,21 +851,23 @@
Vue(
-Object.assign
+Vue.util.extend
(%7B r
|
49df9e25fb9eb19a251c0c696ffa0dd9dc469ef4 | Allow other query params to be used when testing. | tests/runner.js | tests/runner.js | if (window.location.search === "?test") {
document.write(
'<div id="qunit"></div>' +
'<div id="qunit-fixture"></div>' +
'<div id="ember-testing-container">' +
' <div id="ember-testing"></div>' +
'</div>' +
'<link rel="stylesheet" href="tests/runner.css">' +
'<link rel="stylesheet" href="t... | JavaScript | 0 | @@ -23,20 +23,32 @@
arch
- === %22?test%22
+.indexOf(%22?test%22) !== -1
) %7B%0A
@@ -470,8 +470,9 @@
%3E'%0A )%0A%7D
+%0A
|
8afc962df138c05f77a19799810aa9fcb90b622f | Support generate api inside of other api | packages/strapi-generate-api/json/routes.json.js | packages/strapi-generate-api/json/routes.json.js | 'use strict';
/**
* Module dependencies
*/
// Node.js core.
const fs = require('fs');
// Public node modules.
const _ = require('lodash');
/**
* Expose main routes of the generated API
*/
module.exports = scope => {
function generateRoutes() {
const routes = {
routes: [
{
method: ... | JavaScript | 0 | @@ -1510,33 +1510,36 @@
if (
-!_.isEmpty(scope.parentId
+fs.existsSync(scope.rootPath
)) %7B
|
534ccdcc0eb9f3bbc90e0707975455fc7e2e0e40 | rewrite node builtins to the browserify versions | babel-plugin-transform-resolve-bare-specifiers.js | babel-plugin-transform-resolve-bare-specifiers.js | /**
* @license
* Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors ma... | JavaScript | 0 | @@ -1633,32 +1633,948 @@
n;%0A %7D%0A%0A
+ const newSpecifier = specifier ===%0A 'console' ? 'console-browserify' :%0A 'constants' ? 'constants-browserify' :%0A 'crypto' ? 'crypto-browserify' :%0A ... |
efb9bf5356a39d76df556da1fb7d7e613e5371e6 | disable broken example | examples/car-detection.js | examples/car-detection.js | var cv = require('../lib/opencv');
cv.readImage("./files/car1.jpg", function(err, im){
if (err) throw err;
if (im.width() < 1 || im.height() < 1) throw new Error('Image has no size');
im.detectObject("../data/hogcascade_cars_sideview.xml", {}, function(err, cars){
if (err) throw err;
for (var i=0; i < ... | JavaScript | 0.000001 | @@ -1,12 +1,72 @@
+/* For some reason the cascade file is broken on linux :(%0A%0A%0A
var cv = req
@@ -580,12 +580,15 @@
;%0A %7D);%0A%7D);%0A
+*/%0A
|
4637f4bdb724005d7f03cf40f975f5b2526fc822 | fix l10n index injection | lib/build/l10n/pack.js | lib/build/l10n/pack.js |
var at = require('../../ast').js;
var tmplAt = require('../../ast').tmpl;
module.exports = function(flow){
function packKey(key){
return l10nIndex.keys.hasOwnProperty(key)
? '#' + l10nIndex.keys[key].toString(36)
: '';
}
function packBind(name){
if (name.substr(0, 5) == 'l10n:')... | JavaScript | 0 | @@ -3118,17 +3118,34 @@
-at
+Array.prototype.push
.app
-end
+ly
(flo
@@ -3161,16 +3161,25 @@
dule.ast
+%5B1%5D%5B0%5D%5B3%5D
, at.par
@@ -3924,16 +3924,102 @@
+ ')()')
+%5B1%5D);%0D%0A %7D%0D%0A else%0D%0A %7B%0D%0A fconsole.log('%5BWARN%5D basis.l10n module not found'
);%0D%0A
|
1354531a94aad7537ac4fdfad1bd6ef0ed67b647 | Use another port number because this port is already bound by another test somewhere. | test/http-timeout-test.js | test/http-timeout-test.js | /**
* Modules dependencies
*/
var mocha = require('mocha'),
assert = require('chai').assert,
libPath = process.env['SCRAPINODE_COV'] ? '../lib-cov' : '../lib',
scrapinode = require( libPath + '/scrapinode'),
ScrapinodeError = require(libPath + '/error/scrapinode-error'),
express = require('express'),
filed = r... | JavaScript | 0 | @@ -516,17 +516,17 @@
isten(30
-4
+8
0);%0A%0A//
@@ -988,17 +988,17 @@
lhost:30
-4
+8
0/',%0A%09%09%09
|
6e253c1898f3f4222eda3502ce442f77a1ae2e7e | improve coverage | tests/server.js | tests/server.js |
"use strict";
// deps
const path = require("path");
const spawn = require("child_process").spawn;
const http = require("http");
const fs = require("fs");
const assert = require("assert");
// consts
const MAIN_FILE = path.join(__dirname, "..", "lib", "main.js");
const MAX_TIMEOUT_REQUEST = 3000;
const PORT... | JavaScript | 0 | @@ -577,25 +577,8 @@
%7B%0A%0A
-%09%09%09if (child) %7B%0A%09
%09%09%09c
@@ -597,17 +597,16 @@
ause();%0A
-%09
%09%09%09child
@@ -613,21 +613,16 @@
.kill();
-%0A%09%09%09%7D
%0A%0A%09%09%09ret
@@ -705,36 +705,40 @@
%09return
-new
Promise
-((
+.
resolve
+().then((
) =%3E %7B%0A%0A
@@ -884,19 +884,34 @@
%0A... |
5ef9edc4ffd14561ebec1adcc2d975bd8e573a77 | Test Unit: add done() | test/include/find.test.js | test/include/find.test.js | /* jshint camelcase: false */
/* jshint expr: true */
var chai = require('chai')
, expect = chai.expect
, Support = require(__dirname + '/../support')
, DataTypes = require(__dirname + "/../../lib/data-types")
, datetime = require('chai-datetime')
chai.use(datetime)
chai.config.includeStack = true
... | JavaScript | 0 | @@ -1485,16 +1485,35 @@
to.be.ok
+;%0A done();
%0A
|
daf90e2e9acc73a15b96a8bd372c195dfb15f35e | Fix history. | src/owl.history.js | src/owl.history.js | (function(window, owl) {
var _options,
_defaultOptions = {
baseUrl: '/'
},
_defaultRouter = null,
_listener,
_routers = {},
_resolves = {},
_events = {},
_started = false;
owl.history = {
init: function(options) {
_... | JavaScript | 0.000002 | @@ -1630,23 +1630,20 @@
outers).
-forEach
+some
(functio
|
62b6f9db1f9d4e485878739b2b301b3c55dc4f97 | append apiPrefix to the ContextProvider.contextPath() | admin-ui/app/scripts/services/contextProvider.js | admin-ui/app/scripts/services/contextProvider.js | 'use strict';
var upsServices = angular.module('upsConsole');
upsServices.factory('ContextProvider', function($location) {
return {
/**
* getter for the root context of the application
* (the URL where application can be accessed)
*/
contextPath: function() {
var href = $location.absUrl... | JavaScript | 0.000007 | @@ -105,16 +105,17 @@
unction(
+
$locatio
@@ -115,16 +115,28 @@
location
+, apiPrefix
) %7B%0A re
@@ -431,16 +431,28 @@
urn href
+ + apiPrefix
;%0A %7D%0A
|
509c3494502edb132d86fb2a3c828455da565c2a | Set unfold link yellow so that user notices that it has been pressed | src/robot/webcontent/log.js | src/robot/webcontent/log.js | function openSuite(suiteId) {
openElement(suiteId, ['keyword', 'suite', 'test']);
}
function openTest(testId) {
openElement(testId, ['keyword']);
}
function openKeyword(kwId) {
openElement(kwId, ['keyword', 'message']);
}
function addElements(elems, templateName, target){
for (var i in elems) {
... | JavaScript | 0 | @@ -419,24 +419,88 @@
renNames) %7B%0A
+ $('#'+elementId+'_unfoldlink').css(%22background%22, %22yellow%22);%0A
var chil
@@ -888,24 +888,87 @@
k').hide();%0A
+ $('#'+elementId+'_unfoldlink').css(%22background%22, %22white%22);%0A
%7D%0A%0Afunction
|
d368ae2ac92d693f7d69d6f9afc1701ded7cca5a | Add preload config tests | test/karma/ReactPlayer.js | test/karma/ReactPlayer.js | import React from 'react'
import { render, unmountComponentAtNode } from 'react-dom'
import ReactPlayer from '../../src/ReactPlayer'
const { describe, it, expect, beforeEach, afterEach } = window
const TEST_URLS = [
{
name: 'YouTube',
url: 'https://www.youtube.com/watch?v=M7lc1UVf-VE',
error: 'https://... | JavaScript | 0 | @@ -3302,12 +3302,566 @@
%7D)%0A %7D
+%0A%0A it('renders with preload config', done =%3E %7B%0A const ref = p =%3E %7B%0A if (!p) return%0A expect(p.wrapper).to.be.a('HTMLDivElement')%0A expect(p.wrapper.childNodes).to.have.length(3)%0A for (let div of p.wrapper.childNodes) %7B%0A exp... |
b3edc34779fa8483963429babe663ee0b2222489 | Fix in maybe example | examples/maybe_example.js | examples/maybe_example.js | var Funky = require("./../dist/funky.min");
var Student = require("./student");
var getGrades = function (student) {
return Funky.read(Funky.prop("grades"), student);
};
function calculateAverage(arr) {
var sum = 0;
arr.forEach(function (e) {
sum += e;
});
return sum / arr.length;
}
funct... | JavaScript | 0.000025 | @@ -169,24 +169,19 @@
t);%0A%7D;%0A%0A
-function
+var
calcula
@@ -189,16 +189,28 @@
eAverage
+ = function
(arr) %7B%0A
@@ -665,22 +665,101 @@
ded
-out of the box
+automatically for wrapped values,%22);%0A console.log(%22there is no need to use 'if' statements
.%5Cn%22
|
2eb856b6c9b6d8c2f2d09d6b3d806462b4ad89a7 | Update client.js | API/Examples/Clients/JavaScript/client.js | API/Examples/Clients/JavaScript/client.js | // This example is based on jQuery $ajax method.
$(document).ready(function() {
var url = "http://iclikval.riken.jp/api/annotation";
var token = "xxxxxxxxxxxxxxxxxxxxxxx"; // Replace with your access token
$.ajax(url, {
type : 'GET',
dataType : 'json',
beforeSend : functio... | JavaScript | 0.000001 | @@ -97,16 +97,20 @@
%22http://
+api.
iclikval
@@ -123,12 +123,8 @@
.jp/
-api/
anno
|
3b8fe6bcd7d699589ee4d8b2e5f1f7fa46f0e6d3 | Update about.js | src/pages/about.js | src/pages/about.js | import React from "react"
import { Link } from "gatsby"
import styled from 'styled-components';
import Layout from "../components/layout"
import Image from "../components/image"
import SEO from "../components/seo"
const Wrapper = styled.div`
margin-top: 16px;
margin-bottom: 128px;
`;
const Section = styled.div`... | JavaScript | 0 | @@ -739,16 +739,142 @@
ngdom. %0A
+ I currently work at Learnerbly where I work with a group of engineers building cloud based serverless applications.%0A
|
fea8988976a6d794a77cb1ec646716d072bf2e29 | Fix index | lib/node_modules/@stdlib/assert/is-function-array/benchmark/benchmark.js | lib/node_modules/@stdlib/assert/is-function-array/benchmark/benchmark.js | 'use strict';
// MODULES //
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
var noop = require( '@stdlib/utils/noop' );
var pkg = require( './../package.json' ).name;
var isFunctionArray = require( './../... | JavaScript | 0.000011 | @@ -941,16 +941,13 @@
%09x%5B
-x.
len
-gth
+-1
%5D =
|
0c96d044560cb448dfe9172da6e8cf116a210831 | Remove import of unused Button | assets/src/components/template-inserter/index.js | assets/src/components/template-inserter/index.js | /**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { Dropdown, IconButton, Button } from '@wordpress/components';
import { Component } from '@wordpress/element';
import { withSelect, withDispatch } from '@wordpress/data';
import { createBlock } from '@wordpress/blocks';
import { compose } fr... | JavaScript | 0 | @@ -98,16 +98,8 @@
tton
-, Button
%7D f
|
a0e80a8bbff6909da92dbcc901e4413f3dfad677 | support specifying listen ports | test/lib/alloc-cluster.js | test/lib/alloc-cluster.js | // Copyright (c) 2015 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... | JavaScript | 0 | @@ -1954,16 +1954,71 @@
opts));%0A
+ var port = opts.listen && opts.listen%5Bi%5D %7C%7C 0;%0A
@@ -2029,17 +2029,20 @@
.listen(
-0
+port
, host);
|
52c992be077330458f186d4f821dab6317be024d | Fix build issue | build/mazes.js | build/mazes.js | /**
* A sane mod operator
*/
'use strict';
var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) ... | JavaScript | 0 | @@ -3598,19 +3598,21 @@
ap.fill(
+o
x,
+o
y); // f
@@ -3619,29 +3619,77 @@
ill
-in the selected space
+the space that bridges the selected space to the one it branched from
%0A%09%09%09
@@ -3696,29 +3696,27 @@
bitmap.fill(
-o
x,
-o
y); // and t
@@ -3718,59 +3718,34 @@
and
-the one that bridges it to the on... |
c9db96d41995bbf542cd7ac0ed2bc7b0b20cf7c0 | Update action name to be more accurate. | assets/src/edit-story/app/story/storyProvider.js | assets/src/edit-story/app/story/storyProvider.js | /**
* External dependencies
*/
import PropTypes from 'prop-types';
/**
* WordPress dependencies
*/
import { useState } from '@wordpress/element';
/**
* Internal dependencies
*/
import Context from './context';
import useLoadStory from './effects/useLoadStory';
import useCurrentPage from './effects/useCurrentPa... | JavaScript | 0 | @@ -707,24 +707,31 @@
rt useDelete
+Current
Page from '.
@@ -744,24 +744,31 @@
ns/useDelete
+Current
Page';%0Aimpor
@@ -2514,24 +2514,31 @@
const delete
+Current
Page = useDe
@@ -2537,24 +2537,31 @@
= useDelete
+Current
Page( %7B curr
@@ -3794,16 +3794,23 @@
%09%09delete
+Current
Page,%0A%09%09
|
8073976830a2bca1983efb7cb5e9eef9b8927bfa | remove extraneous content | src/pages/index.js | src/pages/index.js | import React from "react"
import Layout from "../components/Layout"
import aboutStyle from "./About.module.scss"
import Img from "gatsby-image"
import { graphql } from "gatsby"
export const query = graphql`
query {
file(relativePath: { eq: "images/about.png" }) {
childImageSharp {
# Specify the ima... | JavaScript | 0.999999 | @@ -952,559 +952,8 @@
%3Cdiv
- className=%7BaboutStyle.texto%7D%3E%0A %3Cdiv className=%7BaboutStyle.iconos%7D%3E%0A %3Ci className=%22fas fa-map-marker-alt fa-sm%22%3E%3C/i%3E%0A New York, New York%0A %3C/div%3E%0A %3Cdiv className=%7BaboutStyle.iconos... |
f95994370191b015a43267867a036e008102e5d9 | Fix is_callable test (#391) | src/php/var/is_callable.js | src/php/var/is_callable.js | module.exports = function is_callable (mixedVar, syntaxOnly, callableName) { // eslint-disable-line camelcase
// discuss at: http://locutus.io/php/is_callable/
// original by: Brett Zamir (http://brett-zamir.me)
// input by: François
// improved by: Brett Zamir (http://brett-zamir.me)
// improved by: Knig... | JavaScript | 0 | @@ -321,16 +321,78 @@
htYoshi%0A
+ // improved by: Waldo Malqui Silva (https://fayr.us/waldo/)%0A
//
@@ -1784,19 +1784,20 @@
urns 5:
-tru
+fals
e%0A%0A var
@@ -2197,21 +2197,80 @@
%7D%0A%0A
+ // eslint-disable-next-line no-useless-escape%0A
if (/
+(
%5Eclass
+%7C%5C(this%5C,)
/.te
|
e37bf84176370b4b7b2c5356a3508d3caa8e205f | Improve timer | autoform/index.js | autoform/index.js | var readline = require('readline');
var wizard = require('../autoform/_wizard');
var form = require('../autoform/_form');
var fill = require('../autoform/_fill');
var ry = new RegExp(/^(?:y|yes)$/);
var cfg = require('../config.json');
var rl = readline.createInterface({
input: process.stdin,
output: process.stdou... | JavaScript | 0.000077 | @@ -427,22 +427,19 @@
log(
-'%5Cn%5B00:00:01%5D
+getTime(),'
You
@@ -499,24 +499,87 @@
autoform) %7B%0A
+ console.log(getTime(),'Running autogenerated forms.');%0A
gene
@@ -644,22 +644,20 @@
ion(
-'%5Cn%5B00:00:02%5D
+getTime(), '
Do y
@@ -847,20 +847,20 @@
log(
-'%5B00:00:00%5D
+getTime(), '
... |
9490fc90b41497c645a4e5beed3b6bfccca8b901 | Fix unused variables in App.test.js (#105) | react-native-scripts/template/App.test.js | react-native-scripts/template/App.test.js | import React from 'react';
import ReactNative from 'react-native';
import App from './App';
import renderer from 'react-test-renderer';
it('renders without crashing', () => {
const rendered = renderer.create(<App />).toJSON();
});
| JavaScript | 0.000001 | @@ -24,48 +24,8 @@
t';%0A
-import ReactNative from 'react-native';%0A
impo
@@ -184,12 +184,45 @@
JSON();%0A
+ expect(rendered).toBeTruthy();%0A
%7D);%0A
|
0fdb4fce22fb4337d629cadc3b48737442193e4e | Update fichasRemeCtrls.js | public/app/controllers/fichasRemeCtrls.js | public/app/controllers/fichasRemeCtrls.js | app.controller('fichasCtrl', function($scope, $rootScope, $route, $location, $timeout, $document, SweetAlert, $mdDialog, Fichas){
// Inicializar variables utilizadas en todo el codigo y que provienen de la sesion del usuario
$rootScope.currentRoute='Tus Fichas';
$scope.fichas = [];
Fichas.all($rootScope.user.id).th... | JavaScript | 0 | @@ -1889,24 +1889,198 @@
function()%7B%0A
+%09%09%09%09%09var materiales = %22%22;%0A%09%09%09%09%09$scope.ficha.materiales.forEach(function(material) %7B%0A%09%09%09%09%09%09materiales += material +'%3Cbr%3E';%0A%09%09%09%09%09%7D);%0A%09%09%09%09%09$scope.ficha.materiales = materiales;%0A
%09%09%09%09%09console
|
b130457bba0b4fe0a00c8c42b6014d3987ef6404 | update panel store | src/panel/store.js | src/panel/store.js | import {createStore, applyMiddleware} from 'redux';
import thunkMiddleware from 'redux-thunk';
import reducers from './reducers';
function createStoreWithMiddleware(initialState) {
return applyMiddleware(thunkMiddleware)(createStore)(reducers, initialState);
}
export default createStoreWithMiddleware;
| JavaScript | 0 | @@ -190,41 +190,8 @@
urn
-applyMiddleware(thunkMiddleware)(
crea
@@ -201,10 +201,18 @@
tore
-)
(
+%0A
redu
@@ -216,16 +216,24 @@
educers,
+%0A
initial
@@ -237,16 +237,63 @@
ialState
+,%0A applyMiddleware(thunkMiddleware)%0A
);%0A%7D%0A%0Aex
|
d848622ebf84ad4e174cfd553f3f9c53b263c9f9 | Fix linter script to run all tags (#3400) | test/linter.js | test/linter.js | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License in the project root for license information.
'use strict';
var
execSync = require('child_process').execSync,
utils = require('./util/utils'),
fs = require('fs'),
literate = require('@microsoft.azure/lite... | JavaScript | 0 | @@ -2891,16 +2891,43 @@
cmd%7D%60);%0A
+ var errorsFound = false;%0A
try %7B%0A
@@ -3062,19 +3062,41 @@
-throw new E
+errorsFound = true;%0A console.e
rror
@@ -3141,16 +3141,38 @@
);%0A %7D%0A%0A
+ return errorsFound;%0A
%7D%0A%0Adescr
@@ -3743,32 +3743,67 @@
Config(config);%0A
+%0A let error... |
b3136aed5d33d1eda51d3e74286a7bee7d90a92e | Resolve the temporary file callback to handle the case when it returns synchronously | node-microserver/module.js | node-microserver/module.js | // Imports
var express = require("express");
var _ = require("underscore");
var os = require("os");
var assert = require("assert");
var Promise = require("bluebird");
var path = require("path");
var fs = require("fs");
// I don't like mangling the "fs" namespace.
var openAsync = Promise.promisify(fs.open, fs);
var clo... | JavaScript | 0 | @@ -3016,16 +3016,32 @@
return
+Promise.resolve(
cb(fdAnd
@@ -3070,16 +3070,17 @@
Path%5B1%5D)
+)
;%0A %7D)
|
6886f3d4c2ff8c1a725c1e3e6aacde9ea4e4f2b7 | update checks per CR | react/src/components/toggle/SprkToggle.js | react/src/components/toggle/SprkToggle.js | import React, { Component } from 'react';
import AnimateHeight from 'react-animate-height';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import uniqueId from 'lodash/uniqueId';
import SprkIcon from '../icons/SprkIcon';
import 'focus-visible';
class SprkToggle extends Component {
construct... | JavaScript | 0 | @@ -421,156 +421,49 @@
Open
- %7D = this.props;%0A let %7B isOpen %7D = this.props;%0A if (isDefaultOpen !== undefined && isOpen === undefined) %7B%0A isOpen = isDefaultOpen;%0A %7D
+, isOpen = isDefaultOpen %7D = this.props;%0A
%0A
@@ -985,16 +985,24 @@
ggerText
+ = title
,%0A
@@ -1038,32 +1... |
196f49c4c0431866d83c9798a7f4387505fbb31a | Add placeholders to detail screen | src/screens/DetailScreen.js | src/screens/DetailScreen.js | /* @flow */
import React from 'react';
import { ScrollView, Dimensions, Platform } from 'react-native'
import { StackNavigator } from 'react-navigation'
import ProgressiveImage from '../components/ProgressiveImage'
import Icon from '../components/Icon'
import { COLOUR_HEADER_BG, COLOUR_HEADER_TEXT } from '../config/co... | JavaScript | 0 | @@ -41,16 +41,42 @@
import %7B
+ Text, Button, StyleSheet,
ScrollV
@@ -100,16 +100,25 @@
Platform
+, Linking
%7D from
@@ -278,24 +278,64 @@
nents/Icon'%0A
+import Price from '../components/Price'%0A
import %7B COL
@@ -367,16 +367,30 @@
DER_TEXT
+, COLOUR_WHITE
%7D from
@@ -1147,16 +1147,55 @@
').width
+%0... |
6fe9358d50bf76f46707b0fdf34ba5ce8d9e33b6 | Rearranged ordering of support-me to be alphabetical | config/index.js | config/index.js | // Load in dependencies
var Settings = require('shallow-settings');
// Define our settings
module.exports = new Settings({
common: {
inDevelopment: true,
inProduction: false,
'app.locals': {
config: {
author: 'Todd Wolfson',
title: 'Todd Wolfson - Javascript Developer',
url:... | JavaScript | 0.997947 | @@ -460,14 +460,121 @@
-gittip
+bitcoin: '1LVT8UpsgyKhGzN3TZxSKqqqd466NtZ99p',%0A dogecoin: 'DGJQbYtSH8jau967XKUR7cpZ7jJEe9SPSQ',%0A flattr
: 't
@@ -574,25 +574,24 @@
ttr: 'twolfs
-o
n',%0A fl
@@ -580,38 +580,38 @@
twolfsn',%0A
-flattr
+gittip
: 'twolfsn',%0A
@@ -595,32 +595,33 @@
g... |
c389b7ab06a800bc6c4c5c825e9af0414e6e3fa8 | remove console.log from js | app/assets/javascripts/sitewide/counter_badge.js | app/assets/javascripts/sitewide/counter_badge.js | var CounterBadge = (function() {
'use strict';
function updateCounterBadge(count, linkedId, type) {
var badge =
$('.' + type +
'-badge-indicator[data-linked-id="' +
linkedId + '"]').first();
console.log(count)
if (badge.length) {
badge.html(count);
if (count > 0) {
... | JavaScript | 0.000003 | @@ -219,31 +219,8 @@
();%0A
- console.log(count)%0A
|
017c6d4efc3419717eb971bf60c7809e532e1eab | Add support for attributes on create task and include create and save task | addon/services/actions-service.js | addon/services/actions-service.js | import Ember from 'ember';
import { task } from 'ember-concurrency';
const { get, String: { capitalize, camelize } } = Ember;
export default Ember.Service.extend({
resource: '',
beforeSend(){},
afterSend(){},
send(store, model, action, ...options){
const task = get(this, `${action}Task`);
const ca... | JavaScript | 0 | @@ -1267,32 +1267,47 @@
(store, callback
+, _model, attrs
)%7B%0A const mod
@@ -1350,32 +1350,45 @@
his, 'resource')
+, attrs %7C%7C %7B%7D
);%0A return %7B
@@ -1635,16 +1635,232 @@
%0A %7D),%0A%0A
+ createAndSaveTask: task(function * (store, callback, _model, attrs)%7B%0A const model = yield store.cre... |
770c75d597d07d2b99e5d874d1d606c9af0b2f7c | send id in formData | node_modules/omni/index.js | node_modules/omni/index.js | var asyncMap = require('slide').asyncMap
var through = require('through2') // fix this thing up!
var utils = require('utils')
var domify = require('domify')
module.exports = function Actions (C) {
var omnibox
var status
var menu
var search
var omni = {
_ : null,
live : false,
next : function () ... | JavaScript | 0 | @@ -2324,16 +2324,50 @@
ault()%0A%0A
+ // set db with uploaded file%0A%0A
var
@@ -3677,24 +3677,58 @@
on (data) %7B%0A
+ formData.append('id', id)%0A
form
|
4837cb366d4b602abfafb6f21cfb214b22a82bec | Fix linter warning | test/models/GitHubTest.js | test/models/GitHubTest.js | const assert = require('assert')
const GitHub = require('../../src/models/GitHub')
const fetchMock = require('fetch-mock')
const Config = require('../../src/config.json')
const fixtures = require('../fixtures')
describe('GitHub', () => {
describe('getNotifications', () => {
const date = new Date()
const not... | JavaScript | 0.000001 | @@ -1723,98 +1723,129 @@
nst
-url = %60$%7BConfig.githubApiUrl%7D/search/issues?q=cats%2520updated%253A%253E2014-06-11T16%253A48%253A20Z
+query = 'cats%2520updated%253A%253E2014-06-11T16%253A48%253A20Z'%0A const url = %60$%7BConfig.githubApiUrl%7D/search/issues?q=$%7Bquery%7D
&per
|
efe893c6dd60c0ac2f35d2d3a728e1c4952d7db7 | Update -> options passed to category-sync. | lib/commands/import.js | lib/commands/import.js | import _debug from 'debug'
import fs from 'fs'
import ___ from 'highland'
import transform from 'stream-transform'
import JSONStream from 'JSONStream'
import StockImport from 'sphere-stock-import'
import { ProductImport, PriceImport } from 'sphere-product-import'
import { Streaming } from 'sphere-category-sync'
import ... | JavaScript | 0 | @@ -2102,36 +2102,8 @@
, %7B%0A
- clientConfig: %7B%0A
@@ -2129,34 +2129,32 @@
ns.credentials,%0A
-
'user_
@@ -2175,20 +2175,8 @@
ent%0A
- %7D%0A
|
ff12a7022897ca12cb2a829571cd027121a992df | fix bug with youtube videos | app/assets/javascripts/transit/contexts/video.js | app/assets/javascripts/transit/contexts/video.js | //= require jqtools/flashembed
$(function(){
var flashvars = {
image: '',
movie: '',
autoplay: 'false',
loop: 'false',
autohide: 'false',
fullscreen: 'true',
color_text: "0xffffff",
color_seekbar: "0x108194",
color_loadingbar: "0xe4f2f6",
color_seekbarbg: "0x108194",
co... | JavaScript | 0 | @@ -800,46 +800,74 @@
ce')
-;%0A%09%09if(self.hasClass('youtube_player')
+, type = self.data('video-type');%0A%09%09if( type && type == 'youtube'
)%7B%0A%09
@@ -934,16 +934,10 @@
com/
-watch?v=
+v/
%22 +
|
07105bfd877cd56d4ab0b1a669199f877c8c9174 | Resolve app paths from realpath of CWD, fix #637 (#648) | config/paths.js | config/paths.js | // @remove-on-eject-begin
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same ... | JavaScript | 0 | @@ -380,16 +380,311 @@
'path');
+%0Avar fs = require('fs');%0A%0A// Make sure any symlinks in the project folder are resolved:%0A// https://github.com/facebookincubator/create-react-app/issues/637%0Avar appDirectory = fs.realpathSync(process.cwd());%0Afunction resolveApp(relativePath) %7B%0A return path.resolve(appDi... |
4d11067c6bd63ecabca9939e2cdba8d8717115d9 | Update puck event naming | resources/assets/js/utilities/Puck.js | resources/assets/js/utilities/Puck.js | import { Engine } from '@dosomething/puck-client';
import { flattenDeep } from 'lodash';
import $ from 'jquery';
function init() {
const puck = new Engine({
source: 'northstar',
puckUrl: window.ENV.PUCK_URL,
getUser: () => window.NORTHSTAR_ID,
});
$(document).ready(() => {
$('.facebook-login').o... | JavaScript | 0 | @@ -359,24 +359,40 @@
nt('
-clicked
+northstar_clicked_login_
facebook
aut
@@ -391,13 +391,8 @@
book
- auth
')%0A
@@ -472,24 +472,36 @@
nt('
-clicked
+northstar_submitted_
register
-sub
@@ -496,23 +496,16 @@
register
--submit
')%0A )
@@ -578,28 +578,33 @@
nt('
-clicked
+northstar_submitted_
login
--... |
1f1494263f5efd07da9056741bdbd8d95fbe4861 | remove parseFloat conversion from barrier as backend is fixed | src/javascript/binary/pages/trade/price.js | src/javascript/binary/pages/trade/price.js | /*
* Price object handles all the functions we need to display prices
*
* We create Price proposal that we need to send to server to get price,
* longcode and all other information that we need to get the price for
* current contract
*
*
* Usage:
*
* `socket.send(Price.createProposal())` to send price proposa... | JavaScript | 0 | @@ -2720,27 +2720,16 @@
ier'%5D =
-parseFloat(
barrier.
@@ -2725,33 +2725,32 @@
= barrier.value
-)
;%0A %7D%0A%0A
@@ -2854,27 +2854,16 @@
ier'%5D =
-parseFloat(
highBarr
@@ -2863,33 +2863,32 @@
ighBarrier.value
-)
;%0A %7D%0A%0A
@@ -2990,27 +2990,16 @@
er2'%5D =
-parseFloat(
lowBarri
@... |
b7f5c80b7d7eaf3f7243e0175338bbb6fb491b8d | clean up accounts.js | imports/startup/server/accounts/accounts.js | imports/startup/server/accounts/accounts.js | import { Meteor } from 'meteor/meteor';
import { _ } from 'meteor/underscore';
import { Accounts } from 'meteor/accounts-base';
import { convertToSlug } from '/lib/utils';
import { deburr, toLower, camelCase } from 'lodash';
function generateAvailableUsername(newUsername) {
let i = 0;
while (Meteor.call('verifyUs... | JavaScript | 0.000001 | @@ -2152,19 +2152,17 @@
,%0A %7D);%0A
-
%0A
+
if (us
@@ -2685,19 +2685,21 @@
er) %7B%0A
-var
+const
publicA
@@ -2740,11 +2740,13 @@
;%0A
-var
+const
ano
@@ -2887,19 +2887,17 @@
er))));%0A
-
%0A
+
return
@@ -3611,19 +3611,17 @@
: user;%0A
-
%0A
+
if (us
@@ -3707,18 +3707,20 @@
nly%0A ... |
1cabb70f00bcde35ae3641361a562dfba1a65113 | add int32 to serializer cont | src/serialize/Serializer.js | src/serialize/Serializer.js | "use strict";
const Utils = require('./../Utils');
class Serializer {
constructor(){
this.registeredClasses = {};
this.customTypes = {};
}
/**
* Adds a custom primitive to the serializer instance.
* This will enable you to use it in an object's netScheme
* @param customTyp... | JavaScript | 0.000001 | @@ -2783,32 +2783,157 @@
lue);%0A %7D%0A
+ else if (netSchemProp.type == Serializer.TYPES.INT32)%7B%0A dataView.setInt32(bufferOffset, value);%0A %7D%0A
else if
|
a2637eae1061c11ec247b7b2b3b7c6030a995dcc | check if data is an object, if so stringily it before displaying | app/components/Settings/Preview/Preview.react.js | app/components/Settings/Preview/Preview.react.js | import React, {Component, PropTypes} from 'react';
import * as styles from './Preview.css';
export default class Preview extends Component {
constructor(props) {
super(props);
this.renderTable = this.renderTable.bind(this);
this.testClass = this.testClass.bind(this);
}
testClass() ... | JavaScript | 0.000028 | @@ -481,32 +481,90 @@
/th%3E%0A );%0A
+ const isObject = (arg) =%3E typeof arg === 'object';
%0A const r
@@ -588,16 +588,33 @@
=%3E %3Ctd%3E%7B
+isObject(cell) ?
JSON.str
@@ -621,24 +621,31 @@
ingify(cell)
+ : cell
%7D%3C/td%3E;%0A
|
0d5ef40d24e64a1800b1013a32cbc5ad37f0bb68 | fix arc series transition by only setting initial value on enter | src/features/arc-series.js | src/features/arc-series.js | (function() {
'use strict';
/*
* Arc series is a collection of arcs suitable for those needed by pie and donut charts.
* Many of the accessors of this feature proxy directly to D3's arc object:
* https://github.com/mbostock/d3/wiki/SVG-Shapes#arc
*
*##### Accessors
*
* `centroid` - proxied acce... | JavaScript | 0 | @@ -2863,17 +2863,70 @@
('path')
-;
+%0A .each(function(d) %7B this._current = d; %7D);%0A
%0A
@@ -3288,82 +3288,8 @@
arc)
-%0A .each(function(d) %7B%0A this._current = d;%0A %7D)
;%0A%0A
|
6d5fdc152a9f5de8fcf927b52202be5dc75856e4 | change JzCU.js | www/JzCU.js | www/JzCU.js | /**
* Continuous Update Tools
* Created by Sam on 9/8/15.
*/
var exec = require('cordova/exec'),
cordova = require('cordova');
module.exports = {
checkUpdate:function(successCallback, errorCallback,args){
if(args == null || args == undefined){
args = {};
}
args.update... | JavaScript | 0.000002 | @@ -1,294 +1,484 @@
-/**%0A * Continuous Update Tools%0A * Created by Sam on 9/8/15.%0A */%0Avar exec = require('cordova/exec'),%0A cordova = require('cordova');%0A%0Amodule.exports = %7B%0A%0A checkUpdate:function(successCallback, errorCallback,args)%7B%0A if(args == null %7C%7C args == undefined)%7B%0... |
a57afccd146021fc226c6d089d52cecb96868e33 | Fix regexp for math plugin | app/plugins/math.js | app/plugins/math.js | /* eslint no-eval: 0 */
const MATH_REGEXP = /^[-+/*\d\s\( )]+$/;
/**
* Plugin to show result of math calculation
* @param {String} term
*/
const mathPlugin = (term, callback) => {
const match = term.match(MATH_REGEXP);
if (match) {
try {
const result = eval(term);
callback({
title: `= ... | JavaScript | 0 | @@ -49,16 +49,19 @@
-+/*%5Cd%5Cs
+,%5C.
%5C( )%5D+$/
@@ -278,16 +278,34 @@
val(term
+.replace(',', '.')
);%0A
|
6d6e04bd22574f67bc5e5ac0c0a74809fb2abd51 | Fix server readfile length error. | src/server/publish/index.js | src/server/publish/index.js | /**
* @author Disciple_D
* @homepage https://github.com/discipled/
* @since 05/03/2017
*/
import path from 'path';
import Koa from 'koa';
import Router from 'koa-router';
import bodyParser from 'co-body';
import webPush from 'web-push';
import { readFile, writeFile } from '../common/DataService';
import { gcmAPIK... | JavaScript | 0 | @@ -811,17 +811,17 @@
async me
-e
+s
sage =%3E
@@ -891,16 +891,35 @@
String()
+.replace(/%5Cs/g, '')
);%0A%09retu
@@ -923,17 +923,17 @@
eturn me
-e
+s
sage.tok
@@ -1009,23 +1009,37 @@
ON_FILE,
+ %7B encoding:
'utf8'
+ %7D
)%0A%09.then
@@ -1256,23 +1256,37 @@
ptions),
+ %7B encoding:
'utf8'
+ %7D
);%0A%0A... |
400ee5bc81e63527cc2ac84a3dd0d515de25579e | fix exponentiation | src/filters/byte-format.js | src/filters/byte-format.js | import { module } from 'angular';
export default module('app.filters.byte-format', [])
.filter('byteFormat', () => (bytes, precision) => {
let myPrecision = precision;
const units = ['bytes', 'kB', 'MB', 'GB', 'TB', 'PB'];
const number = Math.floor(Math.log(bytes) / Math.log(1024));
if (isN... | JavaScript | 0.999903 | @@ -469,16 +469,75 @@
on = 1;%0A
+ // eslint-disable-next-line no-restricted-properties%0A
re
@@ -557,16 +557,23 @@
s /
+(Math.pow
(1024
- **
+,
Mat
@@ -589,16 +589,17 @@
umber)))
+)
.toFixed
|
6583d30e26d752c5ddccb1e350e075f59b7ba75d | fix javascript | apps/bookmarks/js/bookmarksearch.js | apps/bookmarks/js/bookmarksearch.js | /**
* Copyright (c) 2012 David Iwanowitsch <david at unclouded dot de>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*/
$(document).ready(function(){
OC.search.customResults.Bookm.=function(row,item){
var a=row.find('a');
a.attr('target','... | JavaScript | 0.001076 | @@ -247,16 +247,21 @@
ults
-.
+%5B'
Bookm.
-=
+'%5D =
func
|
342086e4186bf1338752f844b51d28559f9d5c12 | Fix export, tweak warning. | src/core/html.js | src/core/html.js | /**
* A helper for creating a DocumentFragment in JavaScript.
*
* @module html
*/
import { fragmentFrom as html } from "./htmlLiterals.js";
export default html;
/* eslint-disable no-console */
console.warn(
`The html helper has been moved to htmlLiterals.js. Please update your imports.`
);
| JavaScript | 0 | @@ -106,16 +106,8 @@
rom
-as html
%7D fr
@@ -146,16 +146,29 @@
default
+fragmentFrom.
html;%0A%0A/
@@ -239,13 +239,8 @@
has
-been
move
@@ -259,16 +259,57 @@
erals.js
+, and is now called %5C%60templateFrom.html%5C%60
. Please
|
6db84166973fffef71e6ea0ef6dec3d89979e9b1 | test updateGoal method | test/server/goals.test.js | test/server/goals.test.js | import { resetDatabase } from 'meteor/xolvio:cleaner';
import { Goals } from '/imports/api/goals/goals.js';
import faker from 'faker';
import { Accounts } from 'meteor/accounts-base';
import { Random } from 'meteor/random';
import { Factory } from 'meteor/dburles:factory';
import { insertGoal } from '/imports/api/goals... | JavaScript | 0.000001 | @@ -400,16 +400,83 @@
ove.js';
+%0Aimport %7B updateGoal %7D from '/imports/api/goals/methods/update.js';
%0A%0Aconst
@@ -1788,32 +1788,1048 @@
;%0A %7D);%0A %7D);%0A
+ describe('updateGoal', function() %7B%0A it('should be update goal', function() %7B%0A Factory.create('goals', %7B%0A title: fa... |
63f9967571a26678f1d6be1114ece3aa18b72551 | fix delete key pair | src/data/IdentityAccess/actions.js | src/data/IdentityAccess/actions.js | import { fetchWrapper, fetchOAuthURL, updatePopup } from '../actions';
import { credential_path, credential_oauth_path } from '../../localconf';
import moment from 'moment';
export const loginCloudMiddleware = () => {
// Fetch projects, if unauthorized, login
return (dispatch, getState) => {
return dispatch(fe... | JavaScript | 0.000048 | @@ -2258,24 +2258,8 @@
th +
- 'access_key/' +
acc
|
490253b88bf12ad417507416c4a32cabde53df98 | Check for user when loading /list | public/js/render/saved-history-preview.js | public/js/render/saved-history-preview.js | ;(function () {
var $body = $('body'),
loaded = false,
$history; // set in hookUserHistory()
$document.on('history:open', function () {
if ($history && jsbin.panels.getVisible().length === 0) {
$history.appendTo('body');
}
}).on('history:close', function () {
if ($history === null) ... | JavaScript | 0 | @@ -421,24 +421,74 @@
d) return;%0A%0A
+ if (!jsbin.user %7C%7C !jsbin.user.name) return;%0A%0A
if ($('h
|
ffdce5e9ec58e35b5cc7b504f4a74c60667c6784 | add flake8 release notes (#2688) | lib/datasource/pypi.js | lib/datasource/pypi.js | const got = require('got');
const url = require('url');
const is = require('@sindresorhus/is');
const { isVersion, sortVersions } = require('../versioning')('pep440');
module.exports = {
getPkgReleases,
};
function normalizeName(input) {
return input.toLowerCase().replace(/(-|\.)/g, '_');
}
// This is a manual l... | JavaScript | 0 | @@ -700,16 +700,88 @@
otes/',%0A
+ flake8: 'http://flake8.pycqa.org/en/latest/release-notes/index.html',%0A
%7D;%0A%0Aasyn
|
eeda506b6a256a92309ad8d99e672e1a58090328 | fix typo | src/functional/traverse.js | src/functional/traverse.js |
define([
'./curry',
'./flip',
'./each',
'./isFunction',
'./isTraversable'
], function (curry, flip, each, isFunction, isTraversable) {
'use strict';
/**
* Traverse on object
*
* @param {Function} obj
* @param {Function} func
* @param {Function} isNested
*/
... | JavaScript | 0.999991 | @@ -685,26 +685,26 @@
var shou
-d
l
+d
Traverse = i
@@ -806,26 +806,26 @@
sLeaf: !shou
-d
l
+d
Traverse%0A
@@ -904,26 +904,26 @@
rue === shou
-d
l
+d
Traverse) %7B%0A
@@ -1029,26 +1029,26 @@
ersable(shou
-d
l
+d
Traverse)) %7B
@@ -1264,10 +1264,10 @@
shou
-d
l
+d
Trav
|
88ed11d0eec3358ba7cbef27fb196753e3f3753d | fix lint error, re #4772 | arches/app/media/js/views/search.js | arches/app/media/js/views/search.js | define([
'jquery',
'underscore',
'knockout',
'knockout-mapping',
'arches',
'viewmodels/alert',
'search-components',
'views/base-manager',
'views/components/simple-switch'
], function($, _, ko, koMapping, arches, AlertViewModel, SearchComponents, BaseManagerView) {
// a method to ... | JavaScript | 0 | @@ -2720,32 +2720,33 @@
%7D%0A %7D
+;
%0A this.is
|
0290f2096c5439b02ae540db466bcff06ab2193e | Add logging, endpoint to create a service | src/routes/applications.js | src/routes/applications.js | /**
* @package admiral
* @author Andrew Munsell <andrew@wizardapps.net>
* @copyright 2015 WizardApps
*/
var Promise = require('bluebird');
exports = module.exports = function(app, config, Applications, Services) {
/**
* Get the applications
*/
app.get('/v1/applications', function(req, res) {
... | JavaScript | 0 | @@ -186,16 +186,21 @@
config,
+ Log,
Applica
@@ -214,24 +214,24 @@
Services) %7B%0A
-
/**%0A
@@ -956,32 +956,166 @@
function(err) %7B%0A
+ Log.error('There was a problem retrieving the applications.', %7B%0A context: err%0A %7D);%0A%0A
@@... |
eb7a833d2d5c740b599fb3b1b84539eb1f31c2c9 | Update querystring.js | src/querystring.js | src/querystring.js | /* eslint no-continue: 0 */
const parse = (qs = '') => {
if (qs[0] === '?') {
qs = qs.slice(1);
}
const query = {};
const arr = qs.split('&');
for (let i = 0; i < arr.length; ++i) {
if (!arr) {
continue;
}
const [key, value] = arr[i].split('=');
if... | JavaScript | 0.000002 | @@ -54,65 +54,8 @@
%3E %7B%0A
- if (qs%5B0%5D === '?') %7B%0A qs = qs.slice(1);%0A %7D%0A
|
63b8d6d1034c89768aaf14ee0e72da7f7d35b2cb | Remove debug code | src/runtime/expressions.js | src/runtime/expressions.js | var proto = require('std/proto'),
extend = require('std/extend'),
map = require('std/map')
/* Atomic expressions
********************/
var atomicBase = {
asString:function() { return this.content ? this.content.toString() : '' },
inspect:function() { return '<Text ' + this.content + '>'},
atomic:true,
evaluate:... | JavaScript | 0.000299 | @@ -3266,43 +3266,8 @@
t) %7B
- if (!content.evaluate) %7B asdasd %7D;
thi
|
9d89e27e6ce68ffce0c8329901950918664d59b4 | improve variable documentation | src/discovery.js | src/discovery.js | // https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#account-discovery
module.exports = function discovery(iterator, gapLimit, queryCb, done) {
var gap = 0
var n = 0
;(function cycle() {
for (var j = 0; j < gapLimit; ++j) {
iterator.next()
n++
}
var addresses = iterator.add... | JavaScript | 0.000001 | @@ -170,17 +170,23 @@
0%0A var
-n
+checked
= 0%0A%0A
@@ -276,17 +276,23 @@
%0A%0A
-n
+checked
++%0A %7D
@@ -618,17 +618,23 @@
used =
-n
+checked
- gap%0A%0A
@@ -670,17 +670,23 @@
, used,
-n
+checked
)%0A
|
d93aeb09ba769652eec5a7a6e422289289af23a0 | Restructure file | src/diskdrive.js | src/diskdrive.js | var exec = require('child_process').exec;
module.exports = {
// id is an OPTIONAL argument.
eject: function(id) {
// are we running on mac?
if (process.platform === 'darwin') {
// setup optional argument, on mac, will default to 1
id = (typeof id === 'undefined') ? 1 : id;
exec('drutil tray eject ' + i... | JavaScript | 0.000001 | @@ -36,16 +36,27 @@
.exec;%0A%0A
+var self =
module.e
@@ -65,52 +65,23 @@
orts
- = %7B%0A%09// id is an OPTIONAL argument.%0A%09
+;%0A%0Aself.
eject
-:
+ =
fun
@@ -92,17 +92,16 @@
n(id) %7B%0A
-%09
%09// are
@@ -119,17 +119,16 @@
on mac?%0A
-%09
%09if (pro
@@ -153,25 +153,24 @@
'darwin') %7B%0A
-%09
%09%0... |
ca0e67c12bb6fabb3a436695fcd71bde5f6e528e | Remove Callout that will never be seen | src/screens/LoginScreen.js | src/screens/LoginScreen.js | import React, {Component} from 'react';
import {connect} from 'react-redux'
import PasswordLogin from "../components/PasswordLogin";
import OAuthLogin, {handleOAuthCallback} from "../components/OAuthLogin";
import Callout from "../components/Callout";
import {login} from "../actions/sessionActions";
import {Redirect, w... | JavaScript | 0 | @@ -1380,263 +1380,24 @@
rn %3C
-section%3E%0A %3CCallout modifier=%22primary%22%0A title=%7Bintl.formatMessage(messages.login.already_logged_in.title)%7D%0A desc=%7Bintl.formatMessage(messages.login.already_logged_in.desc)%7D/%3E%0A %3CRedirect to=%22/%22/%3E%0A %3C/... |
31218bbc1dc21acdc0ed801bed0c945c63d241a9 | Fix vfs-child/parent error handling | node_modules/vfs-child/parent.js | node_modules/vfs-child/parent.js | var Consumer = require('vfs-socket/consumer').Consumer;
var inherits = require('util').inherits;
var spawn = require('child_process').spawn;
exports.Parent = Parent;
function Parent(fsOptions) {
Consumer.call(this);
var options = {};
if (fsOptions.hasOwnProperty("gid")) {
options.gid = fsOptions.g... | JavaScript | 0 | @@ -824,32 +824,50 @@
ect(callback) %7B%0A
+ try %7B%0A
child =
@@ -894,25 +894,117 @@
gs, options)
-;
+.on(%22error%22, tryNext);%0A %7D%0A catch (e) %7B%0A return tryNext(e);%0A %7D
%0A chi
@@ -1156,44 +1156,8 @@
t);%0A
- child.on(%22error%22, try... |
fb86f8334207619d42aa3801abf0960163720671 | add some sample data to the share sheet | src/screens/share-sheet.js | src/screens/share-sheet.js | import React, {PropTypes} from 'react'
import omit from 'lodash/object/omit'
import history from '../history'
import Button from '../components/button'
import Icon from '../components/icon'
import Toolbar from '../components/toolbar'
import Modal from '../components/modal'
function closeModal(location) {
const query... | JavaScript | 0 | @@ -267,16 +267,54 @@
s/modal'
+%0Aimport List from '../components/list'
%0A%0Afuncti
@@ -855,21 +855,149 @@
%09%09Share
-Modal
+%22%7Bstudent.name%7D%22 via:%0A%09%09%09%3CList type='bullet'%3E%0A%09%09%09%09%3Cli%3EGoogle Drive%3C/li%3E%0A%09%09%09%09%3Cli%3EEmail File%3C/li%3E%0A%09%09%09%09%3Cli%3EDownload File... |
1df848c9402585f829f14dc4c9ce6abbfa5f21f4 | Fix menu conflict with share | src/scripts/menu-toggle.js | src/scripts/menu-toggle.js | $(document).ready(function() {
$('.toggle').click(function(event) {
event.stopPropagation();
event.preventDefault();
$('.menu-wrapper').toggleClass('visible');
});
$(document).click(function() {
$('.menu-wrapper').removeClass('visible');
});
}); | JavaScript | 0 | @@ -29,16 +29,28 @@
%7B%0A $('
+.menu-title
.toggle'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.