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 |
|---|---|---|---|---|---|---|---|
28cda95346a1f5c8071feb9ed50b8255c6120c51 | Allow some kind of downloading to work on Safari | src/lib/download-blob.js | src/lib/download-blob.js | export default (filename, blob) => {
const downloadLink = document.createElement('a');
document.body.appendChild(downloadLink);
// Use special ms version if available to get it working on Edge.
if (navigator.msSaveOrOpenBlob) {
navigator.msSaveOrOpenBlob(blob, filename);
return;
}
... | JavaScript | 0 | @@ -313,16 +313,73 @@
%0A %7D%0A%0A
+ if ('download' in HTMLAnchorElement.prototype) %7B%0A
cons
@@ -420,16 +420,20 @@
(blob);%0A
+
down
@@ -453,24 +453,28 @@
= url;%0A
+
+
downloadLink
@@ -495,16 +495,20 @@
lename;%0A
+
down
@@ -534,24 +534,28 @@
b.type;%0A
+
+
... |
3a611c403fe103a3f234c0d355e86a382492ca47 | Fix localeManager crashing on README | src/lib/localeManager.js | src/lib/localeManager.js | /*
* Clara - locale manager
*
* Contributed by Capuccino and Ovyerus
*/
const fs = require('fs');
const localeDir = `${__baseDir}/res/locales`;
/**
* Object for managing locales and translating strings
* @prop {String} fallbackLocale The locale to fallback if it can't translate the string for some reason.
* @p... | JavaScript | 0.000008 | @@ -1002,32 +1002,97 @@
e of locales) %7B%0A
+ if (!locale.endsWith('.json')) continue;%0A
|
0ed0461f0837231977d0c56253b83d2683de16cd | Fix program layout shift | ReactApp/src/Cards/Program/ProgramComponents.js | ReactApp/src/Cards/Program/ProgramComponents.js | import React, { Component } from 'react';
import {blue100, red100, cyan500, teal400, amber800, pink500, purple500} from 'material-ui/styles/colors';
import {CardText} from 'material-ui/Card';
import RaisedButton from 'material-ui/RaisedButton';
const programTableStyle = {
// border: '1px solid black',
borderColla... | JavaScript | 0 | @@ -584,16 +584,17 @@
top: '
+-
20px',%0A
|
ddd8eda064809a55f9c88cd4790061f0adf30a4f | Fix dest path | slush/tasks/staticOptimize/files/tools/tasks/optimizeStatic.js | slush/tasks/staticOptimize/files/tools/tasks/optimizeStatic.js | const gulp = require('gulp');
const imagemin = require('gulp-imagemin');
const pngquant = require('imagemin-pngquant');
/**
* Optimizes images.
*
* @task optimizeStatic
*/
gulp.task('optimizeStatic', (done) => {
return gulp.
src(env.DIR_SRC + '/assets/media/images/**/*')
.pipe(imagemin({
... | JavaScript | 0.000055 | @@ -476,19 +476,28 @@
+ '/
-dist
+assets/media
/images
+/
'));
|
8ce7c18cd8163d36afde3f574cf4296e19190cd2 | fix bugs at inventory movement validator | src/inventory/inventory-movement-validator.js | src/inventory/inventory-movement-validator.js | require("should");
module.exports = function (data) {
data.should.not.equal(null);
data.should.instanceOf(Object);
data.should.have.property('referenceNo');
data.referenceNo.should.be.String();
data.should.have.property('referenceType');
data.referenceType.should.be.String();
data.should.... | JavaScript | 0 | @@ -1153,24 +1153,32 @@
data.after
+Quantity
.should.inst
|
2a677fd0532d1633d4a4d4f6328d1656febbf6bb | Drop Markdown text box | orion/ui/helpers/misc.js | orion/ui/helpers/misc.js | import React from "react";
import {Div} from "./div";
import classNames from "classnames/bind";
// Loading Icon
export const LoadingDiv = (props) => {
let text = props.text || "Loading ...";
return (
<div centerText><span className="l-spinner"></span>
<div>{text}</div>
</div>
)
};
ex... | JavaScript | 0.000001 | @@ -1312,159 +1312,8 @@
%3E;%0A%0A
-%0A/// Paragraphs ///%0A%0A// Markdown paragraph%0Aexport const MarkDown = (props) =%3E (%0A %3Cdiv dangerouslySetInnerHTML=%7B%7B__html: props.children%7D %7D%3E%3C/div%3E%0A);%0A%0A%0A
/**%0A
|
46922a5f2aff8a470cd417fdd8684154ac290563 | Deploy defaults. | webpack/webpack.config.js | webpack/webpack.config.js | const path = require("path");
const VueLoaderPlugin = require("vue-loader/lib/plugin");
module.exports = (websomServer) => {
let gatherViews = () => {
let files = [];
for (let [i, mod] of websomServer.module.modules.entries()) {
let resources = websomServer.resource.compile(mod.name, mod.root, mod.baseConfig.... | JavaScript | 0 | @@ -112,22 +112,80 @@
omServer
-) =%3E %7B
+, deployBundle) =%3E %7B%0A%09deployBundle = deployBundle %7C%7C %22default%22;%0A
%0A%09let ga
@@ -1792,32 +1792,62 @@
les: gatherViews
+,%0A%09%09%09%09%09%09%09%09bundle: deployBundle
%0A%09%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09
@@ -2501,32 +2501,62 @@
les: gather... |
3818bd28aec81317ca88c2944fc984dda4cbf8e6 | Add sourcemaps to examples build | website/build-examples.js | website/build-examples.js | /**
* build-examples.js
* --------
* Searches for each example's `js/app.es6` file.
* Creates a new watchify instance for each `app.es6`.
* Changes to Uppy's source will trigger rebundling.
*
* Run as:
*
* build-examples.js # to build all examples one-off
* build-examples.js watch # to k... | JavaScript | 0 | @@ -2132,24 +2132,43 @@
eCache: %7B%7D,%0A
+ debug: true,%0A
plugin
|
3206327a9e465437be5205be45906fa49136107d | Set 500ms | static/main.js | static/main.js | var app = angular.module('jesuis', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider
.when('/init', {
templateUrl: 'partials/init.html',
controller: 'InitController'
})
.when('/event', {
templateUrl: 'partials/event.html',
controlle... | JavaScript | 0.000002 | @@ -2078,24 +2078,28 @@
.%22); %7D%0A %7D
+,500
);%0A %7D%5D)%0A;%0A%0A
|
f18874c549a360415ecd765103b31c3c75d55cd4 | Add singleton pattern test | test/new-tests.js | test/new-tests.js | 'use strict';
// 2017-06-23 | It's been almost 18 months since I first wrote Dolza and its test suite. I think my JavaScript skills
// have come a long way since then. I'm going to rewrite some of the original test suite to make sure that Dolza
// functions as it should. I may update its functionality, too, if that se... | JavaScript | 0.000007 | @@ -5173,32 +5173,297 @@
;%0A %7D );%0A%0A
+ it( 'implements the singleton pattern for each key', function() %7B%0A const db1 = dolza.get( 'db' );%0A const db2 = dolza.get( 'db' );%0A expect( db1 === db2 ).to.be.true();%0A expect( db1 ).to.equal( db2 );%0A ... |
d80eb4f8a1f54431cd5d4bb3db531c09ce3584a7 | add missing return; remove console.log | src/redux/actions.js | src/redux/actions.js | 'use strict';
import crypto from 'crypto';
import db from './db';
export function setGreeting(greeting) {
return {
type: 'SET_GREETING',
greeting
};
};
export function togglePeopleModal() {
return {
type: 'TOGGLE_PEOPLE_MODAL'
};
};
export function fetchPeople() {
return db.allDocs({
inclu... | JavaScript | 0.000004 | @@ -594,16 +594,23 @@
e() %7B%0A
+return
db.allDo
@@ -925,47 +925,8 @@
) %7B%0A
- console.log('upsertPerson: ', name);%0A
re
|
0302e794af7206a63d63e6ae94b7c443e35baf2a | Update set currency header | src/javascript/app/pages/user/set_currency.js | src/javascript/app/pages/user/set_currency.js | const BinaryPjax = require('../../base/binary_pjax');
const Client = require('../../base/client');
const Header = require('../../base/header');
const BinarySocket = require('../../base/socket');
const getCurrencyName = require('../../common/currency').getCurrencyName;
const isCryptocurren... | JavaScript | 0 | @@ -5053,32 +5053,178 @@
tVisibility(0);%0A
+ $('#hide_new_account').setVisibility(0);%0A $('#show_new_account').setVisibility(1);%0A
|
89897d26bccf637d85e494ae4d664c24343ea2f4 | Change position of all the food | games/hungrydog.js | games/hungrydog.js | var puppy = {
x: 550,
y: 490,
alive: true,
won: false,
canMove: true,
};
var bone1 = {
x: 750,
y: 200,
alive: true,
};
var bone2 = {
x: 1100,
y: 400,
alive: true,
};
var bacon = {
x: 1150,
y: 190,
alive: true,
};
document.getElementById("up").onclick = function() {move(38);};
document.ge... | JavaScript | 0.000106 | @@ -1641,30 +1641,27 @@
%7D%0A %7D%0A
-status
+eat
(bone1, bone
@@ -1671,22 +1671,19 @@
1);%0A
-status
+eat
(bone2,
@@ -1701,14 +1701,11 @@
-status
+eat
(bac
|
a711d88878394e54c67087646586f8c2f71bdf70 | Switch order to allow for modal updates in callback | src/google-places-autocomplete.js | src/google-places-autocomplete.js | /*
* angular-google-places-autocomplete
*
* Copyright (c) 2014 "kuhnza" David Kuhn
* Licensed under the MIT license.
* https://github.com/kuhnza/angular-google-places-autocomplete/blob/master/LICENSE
*/
'use strict';
angular.module('google.places', [])
/**
* DI wrapper around global google places library.
... | JavaScript | 0 | @@ -1877,24 +1877,78 @@
nction () %7B%0A
+%09%09%09%09%09%09ngModelController.$setViewValue(element.val());%0A
%09%09%09%09%09%09onPlac
@@ -2010,62 +2010,8 @@
%7D);%0A
-%09%09%09%09%09%09ngModelController.$setViewValue(element.val());%0A
%09%09%09%09
|
9bdd62ac1cb35c7ee3fdca293ead74dbcaa1403b | disable focus-on-click for homepage action buttons | agir/front/components/app/ActionButtons/ActionButton.js | agir/front/components/app/ActionButtons/ActionButton.js | import PropTypes from "prop-types";
import React from "react";
import styled from "styled-components";
import Link from "@agir/front/app/Link";
import { Hide } from "@agir/front/genericComponents/grid";
import { RawFeatherIcon } from "@agir/front/genericComponents/FeatherIcon";
const StyledButton = styled(Link)`
di... | JavaScript | 0.000001 | @@ -1781,24 +1781,70 @@
undefined%7D%0A
+ onMouseDown=%7B(e) =%3E e.preventDefault()%7D%0A
classN
|
b71602d2ec812a144452f800b684acdd96c0f439 | Update ui-grid-header-cell.js | src/js/core/directives/ui-grid-header-cell.js | src/js/core/directives/ui-grid-header-cell.js | (function(){
'use strict';
angular.module('ui.grid').directive('uiGridHeaderCell', ['$log', '$timeout', '$window', '$document', 'gridUtil', 'uiGridConstants', function ($log, $timeout, $window, $document, gridUtil, uiGridConstants) {
// Do stuff after mouse has been down this many ms on the header cell
var... | JavaScript | 0 | @@ -5081,16 +5081,21 @@
ridCtrl.
+grid.
refresh(
|
0d3babb2b755a7e07936e830891031db7fc79d34 | Use reserved identifiers for domain and email | test/provision.js | test/provision.js | const assert = require('assert');
const jwcrypto = require('jwcrypto');
const request = require('request');
const sideshow = require('../server');
const mockid = require('./lib/mockid');
const BASE_URL = 'http://localhost:3033';
const TEST_EMAIL = 'test.does.not.exist.for.sure@gmail.com';
/* globals describe, befor... | JavaScript | 0 | @@ -249,36 +249,17 @@
= '
-test.does.not.exist.for.sure
+hikingfan
@gma
@@ -407,30 +407,30 @@
'http://
-does.not.exist
+openid.example
',%0A r
@@ -786,19 +786,17 @@
ion() %7B%0A
-
%0A
+
it('
@@ -1123,22 +1123,22 @@
p://
-does.not.exist
+openid.example
');%0A
@@ -2219,18 +2219,16 @@
%7D);%0A
-
... |
8095a72bbc30af252080843bcd4c99d4321ad760 | Convert extended Form to native class, providing compatibility with ember-bootstrap 5.1+ | addon/components/bs-form.js | addon/components/bs-form.js | import { notEmpty } from '@ember/object/computed';
import { assert } from '@ember/debug';
import RSVP from 'rsvp';
import BsForm from 'ember-bootstrap/components/bs-form';
export default BsForm.extend({
'__ember-bootstrap_subclass': true,
hasValidator: notEmpty('model.validate'),
validate(model) {
let m = ... | JavaScript | 0 | @@ -1,55 +1,4 @@
-import %7B notEmpty %7D from '@ember/object/computed';%0A
impo
@@ -36,33 +36,8 @@
g';%0A
-import RSVP from 'rsvp';%0A
impo
@@ -109,22 +109,67 @@
ult
-BsForm.extend(
+class BsFormWithChangesetValidationsSupport extends BsForm
%7B%0A
@@ -200,19 +200,24 @@
ass'
-:
+ =
true
-,
+;
%0A%0A
+ge... |
36117b40bed9406f0c61cdf232ac866cd0c5a40d | fix custom attributes inputs for new Topic | lib/admin/admin-topics-form/attrs/component.js | lib/admin/admin-topics-form/attrs/component.js | import React, { Component } from 'react'
export default ({ forum, topic }) => {
return (
<div className='attrs'>
{forum.topicsAttrs.map((attr) => {
const Form = forms[attr.kind]
const val = topic.attrs && topic.attrs[attr.name]
return <Form key={attr.name} {...attr} value={val} />
... | JavaScript | 0 | @@ -172,16 +172,21 @@
nst Form
+Input
= forms
@@ -209,19 +209,37 @@
-cons
+le
t val
- =
+%0A%0A if (topic &&
top
@@ -249,16 +249,73 @@
attrs &&
+ topic.attrs.hasOwnProperty(attr.name)) %7B%0A val =
topic.a
@@ -330,16 +330,27 @@
r.name%5D%0A
+ %7D%0A%0A
@@ -361,16 +361,21... |
085fc01e6029b0dea9b709ba3d6b95aa0f5c20f6 | update ember-cli-sass dependency to 4.0.1 | blueprints/ember-cli-foundation-sass/index.js | blueprints/ember-cli-foundation-sass/index.js | var fs = require('fs');
var path = require('path');
module.exports = {
normalizeEntityName: function() {
},
beforeInstall: function(options) {
return this.addBowerPackageToProject('foundation', '~5.5.0');
},
afterInstall: function(options) {
//copying over the foundation.scss and _se... | JavaScript | 0.000023 | @@ -958,11 +958,11 @@
t: '
-3.3
+4.0
.1'%7D
|
469c484f744434a7a1e143aad35c06459cd07f1d | Move notifyReady() call even though it probably doesn't matter. It will now get called before resolving in case that does any painting / layout updating. | src/lifecycle/created.js | src/lifecycle/created.js | import data from '../util/data';
import emit from '../api/emit';
import events from './events';
import patchAttributeMethods from './patch-attribute-methods';
import property from './property';
import propertiesCreated from './properties-created';
import propertiesReady from './properties-ready';
import prototype from ... | JavaScript | 0 | @@ -2078,48 +2078,48 @@
-resolve(this, opts);%0A notifyReady(thi
+notifyReady(this);%0A resolve(this, opt
s);%0A
|
5acc197b26f5d75ef2596d4a49712ec309245674 | Assign the right variable | addon/components/data-table.js | addon/components/data-table.js | import Ember from 'ember';
import Table from 'ember-light-table';
import EmberDataTableMixin from 'ember-data-table-light/mixins/ember-data-table';
import TablePaginationMixin from 'ember-data-table-light/mixins/table-pagination';
import TableSortingMixin from 'ember-data-table-light/mixins/table-sorting';
import DataT... | JavaScript | 0.999998 | @@ -6837,16 +6837,20 @@
('search
+Text
', searc
|
51ab85fa27ae2a2a337aac6ceecf533dfd5a225a | Change the logic of checking piped files from boolean to sinon spy. | test/publisher.js | test/publisher.js | var es = require('event-stream');
var gulp = require('gulp');
var mox = require('./mock-knox');
describe('publisher', function () {
var publisher,
gulpS3,
mockedStream;
// replace all the required module with either mocked module or
// the exact same module so that istanbul would not include them in... | JavaScript | 0 | @@ -3231,34 +3231,41 @@
%0A%09%09%09var
-passedData = false
+dataHandler = sinon.spy()
;%0D%0A%09%09%09gu
@@ -3343,77 +3343,19 @@
a',
-function (data) %7B%09%0D%0A%09%09%09%09%09%0D%0A%09%09%09%09%09passedData = true;%0D%0A%09%09%09%09%09%09%09%09%09%09%0D%0A%09%09%09%09%7D
+dataHandler
)%0D%0A%09
@@ -3404,31 +34... |
cf52f314eed6afbb9901f6cfa40f245ca2964d55 | Return the super result | addon/utils/reopen-route.js | addon/utils/reopen-route.js | import Ember from 'ember';
import arraySwap from 'ember-redirect/utils/array-swap';
export default function(routeName, options, instance) {
var routeContainerKey = `route:${routeName}`;
var routeObject = instance.container.lookup(routeContainerKey);
if (!routeObject) {
routeObject = Ember.Route.extend... | JavaScript | 0.999992 | @@ -2124,24 +2124,31 @@
%7D%0A%0A
+return
this._super.
|
f9604c0b2093c08894faae2fc3bf628760d3ef44 | use Array.from | src/client/updaters/tag.js | src/client/updaters/tag.js | // borrow the slice method
const toArray = Function.prototype.call.bind(Array.prototype.slice)
/**
* Updates meta tags inside <head> and <body> on the client. Borrowed from `react-helmet`:
* https://github.com/nfl/react-helmet/blob/004d448f8de5f823d10f838b02317521180f34da/src/Helmet.js#L195-L245
*
* @param {('met... | JavaScript | 0.000032 | @@ -1,100 +1,4 @@
-// borrow the slice method%0Aconst toArray = Function.prototype.call.bind(Array.prototype.slice)%0A%0A
/**%0A
@@ -579,23 +579,26 @@
dTags =
-to
Array
+.from
(headTag
@@ -667,15 +667,18 @@
s =
-to
Array
+.from
(bod
|
54dcc32f568f18cfa6d089009414b8c5a4ae3d11 | Remove unecessary parenthesis | lib/queryBuilder/operations/InsertOperation.js | lib/queryBuilder/operations/InsertOperation.js | 'use strict';
const { QueryBuilderOperation } = require('./QueryBuilderOperation');
const { StaticHookArguments } = require('../StaticHookArguments');
const { after, mapAfterAllReturn } = require('../../utils/promiseUtils');
const { isPostgres, isSqlite, isMySql, isMsSql } = require('../../utils/knexUtils');
const { i... | JavaScript | 0.999999 | @@ -937,17 +937,16 @@
%3E 1 &&
-(
!isPostg
@@ -993,17 +993,16 @@
knex()))
-)
%7B%0A
|
51a6250bebf1200e2b38d21c5655333540543bb8 | add more size styles to icons | addon/components/paper-icon.js | addon/components/paper-icon.js | /**
* @module ember-paper
*/
import Ember from 'ember';
import layout from '../templates/components/paper-icon';
import ColorMixin from 'ember-paper/mixins/color-mixin';
const { Component, computed, String: Str } = Ember;
/**
* @class PaperIcon
* @extends Ember.Component
* @uses ColorMixin
*/
let PaperIconCompo... | JavaScript | 0 | @@ -1183,17 +1183,86 @@
px;
-font-size
+min-height: $%7Bsize%7Dpx; min-width: $%7Bsize%7Dpx; font-size: $%7Bsize%7Dpx; line-height
: $%7B
|
dbd2879eda90a6b750b8d28de65c9b6f7957aefb | use tokenAssert | lib/rules/require-spaces-in-call-expression.js | lib/rules/require-spaces-in-call-expression.js | /**
* Requires space before `()` in call expressions.
*
* Type: `Boolean`
*
* Values: `true`
*
* #### Example
*
* ```js
* "requireSpacesInCallExpression": true
* ```
*
* ##### Valid
*
* ```js
* var x = foobar ();
* ```
*
* ##### Invalid
*
* ```js
* var x = foobar();
* ```
*/
var assert = requir... | JavaScript | 0 | @@ -876,259 +876,77 @@
var
-nodeBeforeRoundBrace = node;%0A if (node.callee) %7B%0A nodeBeforeRoundBrace = node.callee;%0A %7D%0A%0A var roundBraceToken = file.getTokenByRangeStart(nodeBeforeRoundBrace.range%5B0%5D);%0A do %7B%0A
+lastCalleeTok... |
00f592335860e21ede6df3bab11df3e7522b5cb3 | Replace null values with empty strings | src/js/cilantro/ui/charts/dist.js | src/js/cilantro/ui/charts/dist.js | /* global define */
define([
'jquery',
'underscore',
'../base',
'./core',
'./utils'
], function($, _, base, charts, utils) {
var ChartLoading = base.LoadView.extend({
message: 'Chart loading...'
});
var FieldChart = charts.Chart.extend({
template: 'charts/chart',
... | JavaScript | 0 | @@ -2924,16 +2924,223 @@
expects
+.%0A // Since highcharts has odd behavior when encountering nul%60%0A // we replace null values with empty strings to make the%0A // highcharts behavior more predictable.
%0A
@@ -3387,16 +3387,43 @@
em.value
+ === null ? '' : item... |
cf087c401e6fce81c8b5538cac3efc09acaa0348 | Replace accidental beans access with direct access of internal property. | src/color/GradientColor.js | src/color/GradientColor.js | /*
* Paper.js
*
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
* based on Scriptographer.org and designed to be largely API compatible.
* http://paperjs.org/
* http://scriptographer.org/
*
* Distributed under the MIT license. See LICENSE file for details.
*
* Copyright (c) 2011, Juerg ... | JavaScript | 0 | @@ -1874,24 +1874,25 @@
,%0A%09%09%09%09%09this.
+_
destination.
@@ -1899,16 +1899,17 @@
x, this.
+_
destinat
|
11e13948867f777544fefecf94a466e231a9565b | update gesture conditional | src/platform.js | src/platform.js | require('enyo');
var utils = require('./utils');
/**
* Determines OS versions of platforms that need special treatment. Can have one of the following
* properties:
*
* * android
* * androidChrome (Chrome on Android, standard starting in 4.1)
* * androidFirefox
* * ie
* * edge
* * ios
* * webos
* * windowsPhone
* * bl... | JavaScript | 0.000001 | @@ -1266,45 +1266,9 @@
&&
-window.navigator.msMaxTouchPoints &&
+(
wind
@@ -1304,80 +1304,11 @@
%3E 1
-)
%7C%7C
- ('onmsgesturestart' in window && window.navigator.maxTouchPoints &&
win
@@ -1341,16 +1341,17 @@
ts %3E 1))
+)
%0A%0A%09/**%0A%09
|
2a8be28cdaf3f3deaa9868c191b864573a93ab1a | Refactor because <Score/> is now a pure function | test/scoreTest.js | test/scoreTest.js | require('./testdom')('<html><body></body></html>');
import { assert } from 'chai';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Score from '../src/components/score.jsx';
describe('<Score />', function () {
let strength;
let dexterity;
beforeEach(function () {
strength =... | JavaScript | 0 | @@ -318,65 +318,14 @@
h =
-TestUtils.renderIntoDocument( React.createElement(
Score
-,
+(
%7B sc
@@ -333,24 +333,16 @@
re: 18 %7D
-, null)
);%0A d
@@ -356,65 +356,14 @@
y =
-TestUtils.renderIntoDocument( React.createElement(
Score
-,
+(
%7B sc
@@ -374,16 +374,8 @@
8 %7D
-, null)
);%0A
@@ -450,110 +... |
e969e005d03edba9fd74cc50d00e081a97499fef | fix trialsPerBlock bug | src/js/extensions/iat/sequence.js | src/js/extensions/iat/sequence.js | define(['./properties'],function(properties){
/**
* Takes a sequence array and pushes in a block according to the settings in blockObj:
* {
* block: 1,
* part: 1,
* twoRows: false,
* trials: 20
* }
*/
var addBlock = function addBlock(sequenceArr, blockObj){
// push instructions
sequenceArr.... | JavaScript | 0 | @@ -1058,16 +1058,46 @@
%09return
+properties.trialsPerBlock && (
typeof p
@@ -1139,16 +1139,17 @@
'number'
+)
? prope
|
8dde0b388a9aff3101c22d3314199b8fa2221643 | rename layoutNotifications to LayoutNotifications | features/layouts/js/pl-layout-notifications.js | features/layouts/js/pl-layout-notifications.js | (function() {
'use strict';
window.Ractive.controller('pl-layout-notifications', function(component, data, el, config, done) {
data.title = typeof data['text-title'] == 'undefined' ? 'notifications' : data['text-title'];
data.nonotification = typeof data['text-nonotification'] == 'undefined' ? 'No new not... | JavaScript | 0.000023 | @@ -637,25 +637,25 @@
%7D,%0A
-l
+L
ayoutNotific
@@ -947,17 +947,17 @@
eFunc =
-l
+L
ayoutNot
@@ -2022,33 +2022,33 @@
toggle) %7B%0A
-l
+L
ayoutNotificatio
@@ -2108,17 +2108,17 @@
(event,
-l
+L
ayoutNot
@@ -2183,33 +2183,33 @@
ignout) %7B%0A
-l
+L
ayoutNotificatio
@@ -2354,33 +2354,33 @... |
195a1bdd969101ac14373101ac28e2c3caadb383 | see test fail with message: AssertionError: expected true to be false | server/02-palindrome/palindrome.spec.js | server/02-palindrome/palindrome.spec.js | describe('the palindrome canary spec', () => {
it('shows the infrastructure works', () => {
true.should.be.true();
});
let isPalindrome = () => true;
describe('palindrome should be', () => {
it('true for mom', () => {
isPalindrome('mom').should.be.true();
});
it('false for dude');
i... | JavaScript | 0.999845 | @@ -305,18 +305,80 @@
or dude'
-);
+, () =%3E %7B%0A isPalindrome('dude').should.be.false();%0A %7D);%0A
%0A it(
|
f15096b4280e62b03b113fc71bf1312cddb97f38 | add missong string | src/js/services/onGoingProcess.js | src/js/services/onGoingProcess.js | 'use strict';
angular.module('copayApp.services').factory('ongoingProcess', function($log, $timeout, lodash, $ionicLoading, gettextCatalog, platformInfo) {
var root = {};
var isCordova = platformInfo.isCordova;
var ongoingProcess = {};
var processNames = {
'openingWallet': 'Updating Wallet...',
'upda... | JavaScript | 0.999999 | @@ -998,18 +998,18 @@
validati
-o
n
+g
Wallet':
|
283e018334737c5586525f1209e8d23d3a5d985b | update tests | test/sort.spec.js | test/sort.spec.js | import sort from '../src/sort';
import chai from 'chai';
const expect = chai.expect;
const numberArray = [20, 3, 4, 10, -3, 1, 0, 5];
const stringArray = ['Blue', 'Humpback', 'Beluga'];
describe('immutable-sort', () => {
it('original array should stay untouched', () => {
const resultArray = sort(numberArray, (... | JavaScript | 0.000001 | @@ -928,238 +928,8 @@
%7D);
-%0A%0A it('sorts string array (with compareFunction) (descending)', () =%3E %7B%0A const resultArray = sort(stringArray, (a, b) =%3E a.toLowerCase() %3C b.toLowerCase());%0A expect(resultArray).to.eql(%5B'Humpback', 'Blue', 'Beluga'%5D);%0A %7D);
%0A%7D);
|
798f2a49d0ffc3594d90d8c4f43b35f40f33f157 | Upgrade YUI to 3.15.0 | config/yui.js | config/yui.js | 'use strict';
var isProduction = process.env.NODE_ENV === 'production';
exports.version = '3.15.0-rc-1';
exports.config = {
combine: isProduction,
filter : isProduction ? 'min' : 'raw',
root : exports.version + '/',
groups: {
'app': {
combine : isProduction,
comboB... | JavaScript | 0.000001 | @@ -96,13 +96,8 @@
15.0
--rc-1
';%0A%0A
|
b030156cf3a94ca93c560a2e4b3fa317080ca7cb | Remove spinner before render | app/assets/javascripts/stories/views/StoriesListView.js | app/assets/javascripts/stories/views/StoriesListView.js | /**
* The StoriesKeep view.
*/
define([
'jquery',
'backbone',
'underscore',
'handlebars',
'simplePagination',
'text!stories/templates/storiesList.handlebars',
], function($,Backbone,underscore,Handlebars,simplePagination, storiesTPL) {
'use strict';
var StoriesListView = Backbone.View.extend({
... | JavaScript | 0 | @@ -2672,127 +2672,76 @@
his.
-render();%0A %7D.bind(this),%0A %0A error: function (e) %7B%0A alert(' Service request failure: ' + e
+$storiesSpinner.toggleClass('-start', false);%0A this.render(
);%0A
@@ -2761,16 +2761,24 @@
(this),%0A
+
%0A
@@ -2782,16 +2782,... |
d1f435ba5e0bcfe9c376abae7ab7bf3e2afe8b16 | Add missing js reference | test/test-main.js | test/test-main.js | var allTestFiles = [];
var TEST_REGEXP = /(spec|test)\.js$/i;
Object.keys(window.__karma__.files).forEach(function(file) {
if (TEST_REGEXP.test(file)) {
allTestFiles.push(file);
}
});
require.config({
// Karma serves files under /base, which is the basePath from your config file
paths: {
... | JavaScript | 0.000002 | @@ -336,16 +336,52 @@
slugify'
+,%0A 'calculator': 'calculator'
%0A %7D,%0A
|
0a405b82e358e187fa284d5f50b50a5a6d957e31 | Update location.js | routes/location.js | routes/location.js | var _connection;
exports.connect = function(req, res, next) {
try {
var config = require('../app.config.json');
var mysql = require('mysql');
_connection = mysql.createConnection({
host: config.db.host,
user: config.db.username,
password: config.db.password,
port: config.db.port
... | JavaScript | 0.000001 | @@ -669,20 +669,35 @@
ion/json
+; charset=utf-8
');%0A
-
res.se
@@ -801,96 +801,8 @@
);%0A%0A
- q = q.replace('%C3%A5', '?');%0A q = q.replace('%C3%A4', '?');%0A q = q.replace('%C3%B6', '?');%0A%0A
@@ -883,36 +883,16 @@
, '');%0A%0A
- console.log(q);%0A
q =
@@ -918,28 +918,12 @@
q);%0A
+... |
f4396a1bd8d1ceb7105d1589e33d1cff8590c202 | Fix call button click handler | src/components/CallArea.js | src/components/CallArea.js | import React from 'react';
import PropTypes from 'prop-types';
import Paper from 'material-ui/Paper';
import styled from 'styled-components';
import { trim } from 'lodash';
import { PhoneNumberUtil } from 'google-libphonenumber';
import { withState, compose, pure, withPropsOnChange, withHandlers, getContext } from 'rec... | JavaScript | 0.000002 | @@ -3772,24 +3772,232 @@
%7D%0A %7D,%0A
+ onStartButtonClick: (%7B sipStart, callStatus, phoneNumberIsValid, phoneNumber %7D) =%3E () =%3E %7B%0A if (callStatus === CALL_STATUS_IDLE && phoneNumberIsValid) %7B%0A sipStart(phoneNumber);%0A %7D%0A %7D,%0A
onStopBu
|
3d7d29aa854ac8358b0abba039b518817486a9bc | fix calltoaction json | src/messaging-manager.js | src/messaging-manager.js | 'use strict';
const graphApi = require('./graph-api');
const POKEMON = require('../db/pokemon');
function receivedMessage(event) {
const senderId = event.sender.id;
const recipientId = event.recipient.id;
const timeOfMessage = event.timestamp;
const message = event.message;
console.log('Received message for use... | JavaScript | 0.000003 | @@ -2362,39 +2362,41 @@
re('../messages/
-introdu
+call-to-a
ction.json')%0A%09%7D;
|
28a79e50317415e751f290f60007aa0ae3b0548b | Bump kMaxLength to 512x1024 | src/main/javascript/nodyn/bindings/smalloc.js | src/main/javascript/nodyn/bindings/smalloc.js | /*
* Copyright 2014 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | JavaScript | 0.000004 | @@ -686,32 +686,33 @@
loc(obj, len);%0A%7D
+;
%0A%0Amodule.exports
@@ -795,24 +795,25 @@
obj, len);%0A%7D
+;
%0A%0Amodule.exp
@@ -932,16 +932,17 @@
end);%0A%7D
+;
%0A%0Amodule
@@ -967,11 +967,11 @@
h =
+5
12
-8
* 1
|
cbad95003d20cabe55df11d88491087403be23fa | Update tests to use playerHasCandidate from previous refactor of game.js | test/test.game.js | test/test.game.js | var assert = require('assert');
var m = require('mori');
var game = require('./../game.js');
describe('getInitialState', function(){
it('should return a mori hashMap', function(){
assert(m.isMap(game.getInitialState()));
});
it('should have a deck with 81 cards and a toDeal with 81 shuffled intege... | JavaScript | 0 | @@ -2506,30 +2506,923 @@
rHas
-Set', function() %7B%0A
+Candidate', function() %7B%0A var state;%0A beforeEach(function() %7B%0A state = game.addPlayer('Leia', game.addPlayer('Luke', game.getInitialState()));%0A %7D);%0A%0A it('should return true if player has 3 claimed cards', function() %7B%0A ... |
de501e5fc4df8f92d7be5d8d39f309335e95faab | Remove surplus global navigation logic | src/middleware/locals.js | src/middleware/locals.js | const path = require('path')
const logger = require('../../config/logger')
const config = require('../../config')
let webpackManifest = {}
try {
webpackManifest = require(`${config.buildDir}/manifest.json`)
} catch (err) {
logger.error('Manifest file is not found. Ensure assets are built.')
}
const globalNavItem... | JavaScript | 0 | @@ -1089,103 +1089,56 @@
th)%0A
+%0A
-let isActive%0A%0A if (url === '/') %7B%0A isActive = req.path === '/'%0A %7D else %7B
+return Object.assign(item, %7B%0A url,
%0A
@@ -1150,18 +1150,17 @@
isActive
- =
+:
req.pat
@@ -1180,82 +1180,8 @@
url)
-%0A %7D%0A%0A return Ob... |
5480b68c35ca3c912f98951532541b71232a91ec | add validator | src/middlewares/index.js | src/middlewares/index.js | import morgan from 'morgan'
import compression from 'compression'
import bodyParser from 'body-parser'
import cookieParser from 'cookie-parser'
import session from 'express-session'
import Redis from 'ioredis'
import connectRedis from 'connect-redis'
import flash from 'express-flash'
import cors from 'cors'
import helm... | JavaScript | 0.000025 | @@ -407,16 +407,65 @@
ssport'%0A
+import expressValidator from 'express-validator'%0A
import %7B
@@ -1034,16 +1034,38 @@
onfig),%0A
+ expressValidator(),%0A
cors()
|
6e14e628a32fbe8c7274cdb931ec12006566a91b | Update newegg.user.js | rtx/newegg.user.js | rtx/newegg.user.js | // ==UserScript==
// @name Newegg RTX Checker
// @namespace github.com/denniskupec
// @match https://www.newegg.com/p/pl?d=rtx+30*
// @grant GM_notification
// @grant GM_xmlhttpRequest
// @grant GM_openInTab
// @version 1
// @author Dennis Kupec
// @run-at document-end
// ... | JavaScript | 0.000001 | @@ -826,17 +826,16 @@
return
-;
%0A
@@ -833,32 +833,35 @@
n%0A %7D%0A
+%0A
%0A
@@ -850,24 +850,72 @@
+item_id = item_id.href.match(/(N%5BA-Z0-9%5D%7B14%7D)/)%0A
%0A
|
ec83c14b87458225bc247c7c4ad459a3cdd76aa1 | Update GatewayDriver.js | src/lib/settings/GatewayDriver.js | src/lib/settings/GatewayDriver.js | const SettingResolver = require('../parsers/SettingResolver');
const Gateway = require('./Gateway');
const util = require('../util/util');
/**
* <warning>GatewayDriver is a singleton, use {@link KlasaClient#gateways} instead.</warning>
* Gateway's driver to make new instances of it, with the purpose to handle differ... | JavaScript | 0 | @@ -496,234 +496,8 @@
use%0A
-%09 * @property %7Bboolean%7D %5Bdownload=true%5D Whether the Gateway should download all entries or not%0A%09 * @property %7Bboolean%7D %5BwaitForDownload=true%5D Whether this Gateway should wait for all the data from the gateway to be downloaded%0A
%09 */
|
7364d58eaac55fde71e73e1b546da96eb8307a91 | fix mbaas js | src/modules/api_mbaas.js | src/modules/api_mbaas.js | var console =require("console");
var cloud = require("./waitForCloud");
var fhparams = require("./fhparams");
var ajax = require("./ajax");
var JSON = require("JSON");
var handleError = require("./handleError");
var consts = require("./constants");
module.exports = function(opts, success, fail){
console.log("mbaas ... | JavaScript | 0.000008 | @@ -1102,8 +1102,9 @@
%0A %7D);%0A%7D
+
|
e4a2f5aa80e37c3a19df3314199d8ec407088a64 | refactor getTranslation to use axios | src/config/localeConfig.js | src/config/localeConfig.js | import { URLNames, PropertyNames, VariableNames } from 'data/enum/configNames';
import configManagerInstance from './configManagerInstance';
const languages = configManagerInstance.getProperty(PropertyNames.AVAILABLE_LOCALES).map((locale) => {
if (typeof locale === 'string') {
return {
code: locale,
urlPrefix... | JavaScript | 0.000001 | @@ -1,12 +1,39 @@
+import axios from 'axios';%0A
import %7B URL
@@ -605,13 +605,17 @@
urn
-fetch
+axios.get
(con
@@ -692,74 +692,8 @@
, %7B%0A
-%09%09%09method: 'get',%0A%09%09%09credentials: 'same-origin',%0A%09%09%09mode: 'cors',%0A
%09%09%09h
@@ -779,14 +779,12 @@
nse.
-json()
+data
)%0A%09%09
|
b76a4d1e9f84594bb95285aff73351bb0feadcc2 | Fix v2 create_credit_card_mutation test | src/schema/v2/me/__tests__/create_credit_card_mutation.test.js | src/schema/v2/me/__tests__/create_credit_card_mutation.test.js | /* eslint-disable promise/always-return */
import { runAuthenticatedQuery } from "schema/v2/test/utils"
describe("Credit card mutation", () => {
const creditCard = {
id: "foo-foo",
_id: "123",
name: "Foo User",
last_digits: "1234",
expiration_month: 3,
expiration_year: 2018,
}
const oldQ... | JavaScript | 0.000058 | @@ -313,220 +313,9 @@
nst
-oldQuery = %60%0A mutation %7B%0A createCreditCard(input: %7Btoken: %22123abc%22%7D) %7B%0A credit_card %7B%0A name%0A last_digits%0A expiration_month%0A expiration_year%0A %7D%0A %7D%0A %7D%0A %60%0A%0A const newQ
+q
uery
@@ -497,33 +497,41 ... |
b464a347fc0f97b602f061625f8b1c316cb0ec2a | Make sure all spawned processes are killed after testing | test-app/tests/cucumber/features/step_definitions/cli-steps.js | test-app/tests/cucumber/features/step_definitions/cli-steps.js | (function () {
// TODO: Replace process.env.PWD with getAppPath for Windows support
'use strict';
module.exports = function () {
var fs = require('fs-extra'),
_ = require('underscore'),
path = require('path'),
spawn = require('child_process').spawn,
DDPClient = require('ddp... | JavaScript | 0 | @@ -432,16 +432,121 @@
eteor;%0A%0A
+ process.on('exit', function () %7B%0A if (meteor) %7B%0A meteor.kill('SIGINT');%0A %7D%0A %7D);%0A%0A
cons
@@ -2258,32 +2258,142 @@
n (callback) %7B%0A%0A
+ if (meteor) %7B%0A // Skip if meteor is already started%0A callback();%0A ... |
607b6c78e2f3b18d1028c1f4742f9c2c6e79c03e | update addThumbnail example | test/thumbnail.js | test/thumbnail.js | 'use strict'
const spaceBro = require('spacebro-client')
const config = require('standard-settings').getSettings().service.spacebro
spaceBro.connect(config.host, config.port, {
clientName: config.client,
channelName: config.channel,
verbose: false,
sendBack: false
})
console.log('Connecting to spacebro on ' + ... | JavaScript | 0 | @@ -12,24 +12,34 @@
'%0Aconst
-s
+%7B S
pace
-B
+b
ro
+Client %7D
= requi
@@ -66,22 +66,24 @@
)%0Aconst
-config
+settings
= requi
@@ -119,16 +119,26 @@
ttings()
+%0A%0Asettings
.service
@@ -150,262 +150,140 @@
ebro
-%0A%0AspaceBro.connect(config.host, config.port, %7B%0A
+.
client
-Name: config.client,%... |
872150b34854dd744dd3b888005cb288f2be78b0 | get username not name | problems/requesting_you_pull_please/verify.js | problems/requesting_you_pull_please/verify.js | #!/usr/bin/env node
var request = require('request')
var spawn = require('child_process').spawn
var concat = require('concat-stream')
// var url = "http://localhost:5563/pr?username="
var url = 'http://reporobot.jlord.us/pr?username='
var user = spawn('git', ['config', 'user.name'])
user.stdout.pipe(concat(onUser))
... | JavaScript | 0.999997 | @@ -271,16 +271,20 @@
, 'user.
+user
name'%5D)%0A
|
c0dbb8635c6a64299e7858256e8f17fa9075851d | make linter happy about rename | docs/lint.js | docs/lint.js | #!/usr/bin/env node
var fs = require("fs")
var path = require("path")
//lint rules
function lint(file, data) {
ensureCodeIsHighlightable(file, data)
ensureCodeIsSyntaticallyValid(file, data)
ensureCodeIsRunnable(file, data)
ensureCommentStyle(file, data)
}
function ensureCodeIsHighlightable(file, data) {
var co... | JavaScript | 0.000001 | @@ -4468,17 +4468,18 @@
ch(/
-migration
+change-log
%7Cnod
|
107a3431559080cd06f08ddf2ef67c31b9cedc1e | Disable autocomplete on New Player Name input | app/scripts/components/dashboard.js | app/scripts/components/dashboard.js | import m from 'mithril';
import ClipboardJS from 'clipboard';
import classNames from '../classnames.js';
// The area of the game UI consisting of game UI controls and status messages
class DashboardComponent {
oninit({ attrs: { game, session } }) {
this.game = game;
this.session = session;
}
// Prepare... | JavaScript | 0.000001 | @@ -5683,16 +5683,34 @@
pe=text%5D
+%5Bautocomplete=off%5D
#new-pla
|
510504fab99c4030937f0f0faa87272b90903db1 | fix logic to extract move | app/scripts/controllers/notation.js | app/scripts/controllers/notation.js | 'use strict';
/**
* @ngdoc function
* @name chessmateApp.controller:NotationCtrl
* @description
* # NotationCtrl
* Controller of the chessmateApp
*/
angular.module('chessmateApp')
.controller('NotationCtrl', function ($scope, $rootScope) {
$scope.buildGame = function (notation) {
var game = {
... | JavaScript | 0.000005 | @@ -2788,16 +2788,23 @@
exOf(' '
+,dotPos
));%0A
|
665bf7b7a890ed3dce72294489f0bbbccfef96f0 | fix missing service qualifications | app/scripts/services/cockpit.api.js | app/scripts/services/cockpit.api.js | 'use strict';
/**
* @ngdoc service
* @name blimpCockpitApp.cockpit.api
* @description
* # cockpit.api
* Service in the blimpCockpitApp.
*/
angular.module('blimpCockpitApp')
.factory('cockpitApi', ['$resource', '$http', '$q', '$rootScope', '$state',
function ($resource, $http, $q, $rootScope, $state) {
... | JavaScript | 0.999996 | @@ -616,32 +616,40 @@
%7B%0A
+service.
current_user = d
@@ -653,16 +653,16 @@
= data;%0A
-
@@ -1102,16 +1102,59 @@
= null;%0A
+ service.current_user = null;%0A
@@ -1510,16 +1510,24 @@
resolve(
+service.
current_
@@ -1714,32 +1714,32 @@
atus, header) %7B%0A
-
... |
9d981f6743c878dfde8fd35bb9fba6cc9e0dc090 | Revert "workaround to make homeui work regardless of MQTT message order" | app/scripts/services/mqttService.js | app/scripts/services/mqttService.js | 'use strict';
var mqttServiceModule = angular.module('homeuiApp.mqttServiceModule', ['ngResource']);
mqttServiceModule.factory('mqttClient', function($window) {
var globalPrefix = '';
var service = {};
var client = {};
if($window.localStorage['prefix'] === 'true') globalPrefix = '/client/' + $window.localStor... | JavaScript | 0 | @@ -152,20 +152,32 @@
($window
+, $rootScope
) %7B%0A
-
var gl
@@ -232,16 +232,41 @@
t = %7B%7D;%0A
+ var connected = false;%0A
if($wi
@@ -1295,12 +1295,8 @@
%0A
- //~
cli
@@ -1347,298 +1347,48 @@
c
-lient.subscribe(globalPrefix + %22/config/default_dashboard/#%22);%0A client.subscribe(globalPref... |
9362cf7a4c253a8f54270229794989b9c44c5a3c | fix cms (#791) | app/services/data/get-cms-export.js | app/services/data/get-cms-export.js | const knex = require('../../../knex').web
module.exports = function (id, type) {
const selectList = [
'contactregionname',
'contactlduname',
'contactteamname',
'contactdate',
'omcontactdate',
'contactname',
'contactgradecode',
'omregionname',
'omlduname',
'omteamname',
'co... | JavaScript | 0 | @@ -852,20 +852,20 @@
ult.case
-RefN
+refn
o) %7B%0A
@@ -880,20 +880,20 @@
ult.case
-RefN
+refn
o = resu
@@ -901,16 +901,16 @@
t.om
-CaseRefN
+caserefn
o%0A
@@ -932,33 +932,33 @@
(!result.contact
-D
+d
escription) %7B%0A
@@ -973,25 +973,25 @@
sult.contact
-D
+d
escription =
@@ -1000,24 +1000,24 @@
esu... |
ed59595d56fe19cc6197a7efb153a4f0272b6dae | Add PatternFly styling to Area charts (transferred from ManageIQ/manageiq@d76cefe145992ce7ba4746580fa9283b2dfa06ed) | app/assets/javascripts/miq_c3_config.js | app/assets/javascripts/miq_c3_config.js | /**
* C3 chart configuration for ManageIQ.
*
* To be replaced with `c3ChartDefaults` once available through PatternFly:
*
* https://github.com/patternfly/patternfly/blob/master/dist/js/patternfly.js
*/
(function (ManageIQ) {
var pfColors = [$.pfPaletteColors.blue, $.pfPaletteColors.red, $.pfPaletteColors.gr... | JavaScript | 0 | @@ -3488,39 +3488,30 @@
efaultsDeep(
-%7B
%0A
- data:
%7B%0A
@@ -3513,283 +3513,153 @@
- type: 'area'%0A %7D,%0A area: %7B%0A label: %7B%0A format: percentLabelFormat%0A %7D,%0A expand: false%0A %7D%0A %7D,%0A c3mixins.xAxis... |
781c7951b19a9f5464c87737eee99969222d2b41 | Replace hardcoded coordinates with randomly generated values | app/props/ball.js | app/props/ball.js | import Prop from 'props/prop';
import canvas from 'canvas';
import collision from 'lib/collision';
import events from 'lib/events';
// Maybe make these coords an array so we can easily multiply without lodash _.mapValues for speed.
const coords = {
northEast: {
x: 1,
y: -1,
},
southEast: {
x: 1,
... | JavaScript | 0.001053 | @@ -131,293 +131,8 @@
';%0A%0A
-// Maybe make these coords an array so we can easily multiply without lodash _.mapValues for speed.%0Aconst coords = %7B%0A northEast: %7B%0A x: 1,%0A y: -1,%0A %7D,%0A southEast: %7B%0A x: 1,%0A y: 1,%0A %7D,%0A southWest: %7B%0A x: -1,%0A y: 1,%0A %7D,%0A nort... |
e7bb0b51a0fdaebb89dea3e20f33ebb0a9a261b2 | update tests since actions now return an object instead of a string | server/spec/multi/game/actionFnsSpec.js | server/spec/multi/game/actionFnsSpec.js | describe('actionFns', function() {
var actionFns = require('../../../multi/game/actionFns');
var Board = require('../../../multi/game/board');
var game, board, player1, player2;
beforeEach(function() {
player1 = {
_id: 1,
name: 'Philly',
team: 1
};
player2 = {
_id: 2,
name: 'Sue Grafton',
... | JavaScript | 0.000001 | @@ -1240,32 +1240,36 @@
%0A%09%09expect(result
+.err
).toContain('not
@@ -1627,24 +1627,28 @@
xpect(result
+.err
).toContain(
@@ -2576,19 +2576,28 @@
sult).to
-Be(
+Equal(%7Berr:
'target
@@ -2611,16 +2611,17 @@
allowed'
+%7D
);%0A%09%7D);%0A
|
84ecef6678b80802bb63f9695d43c2bc1c643f8b | fix registry error log: there is no log.critical | src/registry.js | src/registry.js | /**
* Patterns registry - Central registry and scan logic for patterns
*
* Copyright 2012-2013 Simplon B.V.
* Copyright 2012-2013 Florian Friesdorf
* Copyright 2013 Marko Durkovic
* Copyright 2013 Rok Garbas
*/
/*
* changes to previous patterns.register/scan mechanism
* - if you want initialised class, do it ... | JavaScript | 0.998571 | @@ -2469,16 +2469,13 @@
log.
-critical
+error
(%22Tr
|
c87bb58a86d26fd3ba852db6bf4063c14eeee937 | Make emojis searchable | app/views/main.js | app/views/main.js | var clipboard = require("nativescript-clipboard");
var observableModule = require("data/observable");
var observableArrayModule = require("data/observable-array");
var emojiSet = require('emojione/emoji_strategy.json');
var emojiArray = [];
for (var key in emojiSet) {
emojiArray.push({
value: String.fromCodePoint(... | JavaScript | 0.999989 | @@ -17,17 +17,17 @@
require(
-%22
+'
nativesc
@@ -40,17 +40,17 @@
lipboard
-%22
+'
);%0Avar o
@@ -67,33 +67,33 @@
odule = require(
-%22
+'
data/observable%22
@@ -91,17 +91,17 @@
servable
-%22
+'
);%0Avar o
@@ -131,17 +131,17 @@
require(
-%22
+'
data/obs
@@ -157,9 +157,45 @@
rray
-%22
+');%0Avar view = requir... |
f87853e78c42571f2979801a7c204cfc818bf80c | Update menu unit test with better example objects. | frameworks/desktop/tests/panes/menu/methods.js | frameworks/desktop/tests/panes/menu/methods.js | // ==========================================================================
// Project: SproutCore - JavaScript Application Framework
// Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
// portions copyright @2009 Apple Inc.
// License: Licened under MIT license (see license.js)
// ========... | JavaScript | 0 | @@ -449,562 +449,912 @@
var
-menu;%0Avar m
+items = %5B%0A %7B title: 'M
enu
+
Item
-Target;%0Avar menuItemTargetName = %22The Target%22;%0Avar m
+', keyEquivalent: 'ctrl_shift_n' %7D,%0A %7B title: 'Checked M
enu
+
Item
-CheckboxKey = %22isCheckbox%22;%0A%0Amodule('SC.MenuPane#
+', isChecked: YES, keyEquival... |
91d0ea010a5a52b28d18726422da4f7cab8ee9c3 | Update frappe/public/js/frappe/form/controls/table.js | frappe/public/js/frappe/form/controls/table.js | frappe/public/js/frappe/form/controls/table.js | import Grid from '../grid';
frappe.ui.form.ControlTable = frappe.ui.form.Control.extend({
make: function() {
this._super();
// add title if prev field is not column / section heading or html
this.grid = new Grid({
frm: this.frm,
df: this.df,
perm: this.perm || (this.frm && this.frm.perm) || this.df.pe... | JavaScript | 0 | @@ -1476,17 +1476,17 @@
int(__('
-f
+F
or perfo
@@ -1517,16 +1517,21 @@
00 rows
+were
processe
@@ -1531,17 +1531,17 @@
rocessed
-!
+.
'));%0A%09%09%09
|
d3dc4817e1b6dcf032b8c00a7a08dcd71057c84d | Implement FizzBuzz | fizzbuzz/src/fizzbuzz.js | fizzbuzz/src/fizzbuzz.js | JavaScript | 0.000005 | @@ -0,0 +1,111 @@
+'use strict'%0A%0Amodule.exports = %7B%0A%09fizzBuzz: function(num) %7B%0A%09%09if(num%2515 === 0) %7B%0A%09%09%09return 'FizzBuzz';%0A%09%09%7D%0A%09%7D%0A%7D
| |
9f484db399b360938c5889b5a6cd0e1129db8115 | Remove Unused Variable | app/components/ui/files/registration-modal/component.js | app/components/ui/files/registration-modal/component.js | import Ember from 'ember';
import layout from './template';
import RSVP from 'rsvp';
import EventStream from 'npm:sse.js';
import config from '../../../../config/environment';
export default Ember.Component.extend({
layout,
authRequest: Ember.inject.service(),
userAuth: Ember.inject.service(),
interna... | JavaScript | 0 | @@ -469,29 +469,8 @@
(),%0A
- dev: config.dev,%0A
|
69630531d493568c9dff5a4e2992b044796094d5 | Remove unused code. I accidentially left an unused variable in the component. | app/components/ui/files/registration-modal/component.js | app/components/ui/files/registration-modal/component.js | import Ember from 'ember';
import layout from './template';
import RSVP from 'rsvp';
import EventStream from 'npm:sse.js';
import config from '../../../../config/environment';
export default Ember.Component.extend({
layout,
authRequest: Ember.inject.service(),
userAuth: Ember.inject.service(),
interna... | JavaScript | 0 | @@ -1044,75 +1044,8 @@
v2',
-%0A // Flag that controls the grey background%0A showGrey: false,
%0A%0A
|
8b5bac293533589ed8d905e646c929511a826e9f | Allow borders in cloudinary-url | src/core/cloudinary-url.js | src/core/cloudinary-url.js | // http://res.cloudinary.com/demo/image/upload/f_auto,q_auto,w_250,h_250,c_fit/sample.jpg
const defaultState = 'f_auto,q_auto,fl_lossy';
export default (url, { mode, maxWidth, maxHeight, width, height, cropX, cropY, quality, blur, retina } = {}, crop) => {
if (!mode) mode = 'fill';
if (retina && width) width *= 2;... | JavaScript | 0 | @@ -180,16 +180,24 @@
xHeight,
+ border,
width,
@@ -1330,24 +1330,148 @@
',q_75';%0A %7D
+%0A if (border) %7B%0A Object.keys(border).map((key) =%3E %7B%0A part = %60bo_$%7Bborder%5Bkey%5D%7Dpx_solid_$%7Bkey%7D/$%7Bpart%7D%60;%0A %7D);%0A %7D
%0A%0A return u
|
71dd3cbb35dffac4edcb662369f433fa693a0125 | Order props and methods on lambda context, add comment regarding prototype | src/createLambdaContext.js | src/createLambdaContext.js | const { randomId } = require('./utils');
// https://docs.aws.amazon.com/lambda/latest/dg/limits.html
// default function timeout in seconds
const DEFAULT_TIMEOUT = 900; // 15 min
/*
Mimicks the lambda context object
http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-context.html
*/
module.exports = fun... | JavaScript | 0 | @@ -360,17 +360,16 @@
, cb) %7B%0A
-%0A
const
@@ -543,20 +543,32 @@
/
-* M
+/ doc-deprecated m
ethods
- */
%0A
@@ -652,24 +652,119 @@
null, true),
+%0A%0A // methods%0A // NOTE: the AWS context methods are OWN FUNCTIONS (NOT on the prototype!)
%0A getRema
@@ -830,11 +830,11 @@
/
-* P
+/ p
... |
958e57e5869199781ef8dfe33b51052d38ed1b1b | add comment in reference section | app/src/containers/ReferenceSection/ReferenceSection.js | app/src/containers/ReferenceSection/ReferenceSection.js | import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { Reference, Slider, Divider } from 'components';
import './ReferenceSection.scss';
const ReferenceSection = ({
references
}) => (
<section className="reference-section">
<h1 className="section-header">References</h1>
<... | JavaScript | 0 | @@ -166,16 +166,44 @@
scss';%0A%0A
+// TODO: move to components%0A
const Re
|
0a946224a61fe5394f24997028cb9b4f654bf9c8 | Remove unused code to make Toolbar functional | app/routes/events/components/Toolbar.js | app/routes/events/components/Toolbar.js | // @flow
import { Component } from 'react';
import { Link, NavLink } from 'react-router-dom';
import Modal from 'app/components/Modal';
import Time from 'app/components/Time';
import EventEditor from './EventEditor';
import styles from './Toolbar.css';
import type { ActionGrant } from 'app/models';
import cx from 'cla... | JavaScript | 0.000001 | @@ -7,43 +7,8 @@
ow%0A%0A
-import %7B Component %7D from 'react';%0A
impo
@@ -64,121 +64,38 @@
ort
-Modal from 'app/components/Modal';%0Aimport Time from 'app/components/Time';%0Aimport EventEditor from './EventEditor
+Time from 'app/components/Time
';%0Ai
@@ -257,209 +257,54 @@
%7D;%0A%0A
-type State = %7B%0A e... |
216584c33080610dda2e2ba58a1c2cddd4df6a93 | load history new every time | app/scripts/history/historyDirective.js | app/scripts/history/historyDirective.js | 'use strict';
angular.module('CollaborativeMap')
.directive('history', ['$http', 'MapHandler',
function($http, MapHandler) {
function startCompare(objA, objB) {
var results = document.getElementById('results');
results.innerHTML = '';
compareTree(objA, objB, 'Feature', results);
... | JavaScript | 0 | @@ -3742,26 +3742,263 @@
ion
-loadHistory(fid) %7B
+init() %7B%0A $scope.documentRevision = %5B%5D;%0A $scope.hideDocumentRevisionView = false;%0A $scope.hideDiffView = true;%0A %7D%0A%0A function loadHistory(fid) %7B%0A init();%0A console.log(%... |
bf66f03495af5289338c0ec90956dad126ec8614 | update formula, simplify logic | app/scripts/infuse/dimInfuse.factory.js | app/scripts/infuse/dimInfuse.factory.js | (function() {
'use strict';
angular.module('dimApp')
.factory('infuseService', infuseService);
infuseService.$inject = [];
function infuseService() {
var _data = {
source: null,
targets: [],
infused: 0,
view: [],
infusable: [],
// huge props to /u/Apswny
// ... | JavaScript | 0.000515 | @@ -307,885 +307,195 @@
swny
-%0A // https://www.reddit.com/r/destinythegame/comments/3n6pox/python_infusion_calculator%0A getThreshold: function(target, source) %7B%0A if(source.tier === 'Exotic') %7B%0A // upgrade exotic with an exotic, threshold = 5%0A // else we're upgrading exot... |
2b04347f93b2a731bc61f4910c8204b28285b60f | Add headers in the api request to update consigna | app/scripts/services/content-service.js | app/scripts/services/content-service.js | (function () {
'use strict';
angular
.module('moi.services')
.factory('ContentService', ContentService);
function ContentService($http,
$state,
ENV,
PopupService,
$q,
$auth) {
... | JavaScript | 0 | @@ -3722,24 +3722,131 @@
ramsData) %7B%0A
+ var authHeaders = $auth.retrieveData('auth_headers');%0A authHeaders%5B'Content-Type'%5D = undefined;%0A
return
@@ -3846,32 +3846,32 @@
return $http(%7B%0A
-
method:
@@ -3970,16 +3970,46 @@
ramsData
+,%0A headers: authHeaders
%0A %7... |
331d58d33c2ec62c1589307a73ed598eb68e6aa4 | add typeProperty and propsProperty to _FactoryMixin | src/dijit/_FactoryMixin.js | src/dijit/_FactoryMixin.js | define([
'dojo/_base/declare',
'dojo/dom-construct'
], function(declare, domConstruct) {
return declare(null, {
scaffoldClass: 'dcomponent',
factory: null,
_renderItem: function(item) {
if(!item.properties) {
item.properties = {};
}
item = this._mountOnChange... | JavaScript | 0 | @@ -151,24 +151,93 @@
nent',%0A %0A
+ typeProperty: 'type',%0A %0A propsProperty: 'properties',%0A %0A
factory:
@@ -300,46 +300,64 @@
item
-.properties) %7B%0A item.properties
+%5Bthis.propsProperty%5D) %7B%0A item%5Bthis.propsProperty%5D
= %7B
@@ -664,28 +664,66 @@
y.create
-Elem... |
8caf1258287ed8cf4cd97353c25698d81b13f127 | Fix download url | app/scripts/services/opensensemapapi.js | app/scripts/services/opensensemapapi.js | (function () {
'use strict';
angular
.module('app.services')
.factory('OpenSenseMapAPI', OpenSenseMapAPI);
OpenSenseMapAPI.$inject = ['$http', '$q', '$window', '$httpParamSerializer'];
function OpenSenseMapAPI ($http, $q, $window, $httpParamSerializer) {
var service = {
getUrl: getUrl,
... | JavaScript | 0 | @@ -1163,34 +1163,24 @@
var url =
-encodeURI(
getUrl() + '
@@ -1192,33 +1192,33 @@
s/data?' + query
-)
+;
%0A $window.o
@@ -1351,18 +1351,8 @@
l =
-encodeURI(
getU
@@ -1392,17 +1392,17 @@
+ query
-)
+;
%0A $
|
0b65fe817a99177bd77d00cfd3ff04a56af1b007 | Use the new octocat library to list releases | src/releases.js | src/releases.js | 'use strict';
const github = require('../lib/github.js');
const releaseList = repo => {
return new Promise(resolve => {
github.repos.getReleases({
owner: 'ilios',
repo
}).then(response => {
const names = response.data.map(obj => obj.name);
resolve(names);
}).catch(err => {
c... | JavaScript | 0 | @@ -75,21 +75,36 @@
st =
+ async (owner,
repo
+)
=%3E %7B%0A
retu
@@ -103,149 +103,130 @@
%7B%0A
-return new Promise(resolve =%3E %7B%0A github.repos.getReleases(%7B%0A owner: 'ilios',%0A repo%0A %7D).then(
+try %7B%0A return await github.paginate(%0A 'GET /repos/:owner/:repo/releases... |
2e12649d780d9e66eef40e48046f4a71c1b749c6 | test default param | arrow-function.js | arrow-function.js | // Use with traceur: traceur simple-generators.js --experimental
"use strict";
function Klass() {
this.value = 2;
this.test = (p, q) => p * q * this.value;
}
var klass = new Klass();
console.log(klass.test(3, 5)); | JavaScript | 0.000001 | @@ -136,16 +136,20 @@
= (p, q
+ = 6
) =%3E p *
@@ -222,10 +222,7 @@
st(3
-, 5
));
|
b0a1887334f51775f1a637e7c2e5598f217029fd | add tags page to public site | troposphere/static/js/public_site/routers/ApplicationRouter.js | troposphere/static/js/public_site/routers/ApplicationRouter.js | define(function (require) {
'use strict';
var Marionette = require('marionette'),
Root = require('components/Root.react'),
React = require('react'),
context = require('context'),
ApplicationLis... | JavaScript | 0 | @@ -598,32 +598,127 @@
tsPage.react'),%0A
+ ImageTagsPage = require('components/applications/ImageTagsPage.react'),%0A
Backbone
@@ -890,32 +890,72 @@
wApplications',%0A
+ 'images/tags': 'showImageTags',%0A
'images/
@@ -1210,17 +1210,73 @@
var
-app = Roo
+Component = Re... |
6e45e676e04c9ed943a851adf88e349a49593447 | Remove unnecessary apply() for style listener function | draft-svg.js | draft-svg.js | (function() {
draft.View.mixin({
svg(width, height) {
this._svgMaxWidth = width || this._svgMaxWidth || this.width();
this._svgMaxHeight = height || this._svgMaxHeight || this.height();
if (this._svg === undefined) {
const NS = 'http://www.w3.org/2000/svg';
// const XMLNS = 'htt... | JavaScript | 0.000001 | @@ -1885,35 +1885,9 @@
ener
-.apply(%7Btarget: element%7D, %5B
+(
prop
@@ -1891,17 +1891,16 @@
rop, val
-%5D
);%0A
|
25fdae0c3337ad818a0c2cb1ac1b951734c54a3f | apply ui.FindUser on issue list | public/javascripts/service/hive.issue.List.js | public/javascripts/service/hive.issue.List.js | /**
* @(#)hive.issue.List.js 2013.03.13
*
* Copyright NHN Corporation.
* Released under the MIT license
*
* http://hive.dev.naver.com/license
*/
(function(ns){
var oNS = $hive.createNamespace(ns);
oNS.container[oNS.name] = function(htOptions){
var htVar = {};
var htElement = {};
/**
* initiali... | JavaScript | 0 | @@ -664,16 +664,89 @@
s %7C%7C 1;%0A
+%09%09%09htVar.oTypeahead = new hive.ui.FindUser(%22input%5Bname=authorLoginId%5D%22);%0A
%09%09%7D%0A%09%09%0A%09
|
f931f287c449695b2261c61ea97da5d82193559f | increase d3 groups color scale | src/settings.js | src/settings.js | import 'd3'
import fillUpNestedObjects from './utils/fill_up_nested_objects'
const SETTINGS = {
chart: {
height: '400px',
width: '100%',
showDistX: false,
showDistY: false,
useVoronoi: true,
duration: 350,
color: d3.scale.category10().range(),
xAxis: {
tickFormat: '.02f'
... | JavaScript | 0.000004 | @@ -257,17 +257,17 @@
category
-1
+2
0().rang
|
242d8c9bdc8af245056a36735b3fdbe1b7592427 | Delete accidentally commited key | src/settings.js | src/settings.js | // Copyright (c) 2016 Alejandro Blanco <alejandro.b.e@gmail.com>
// MIT License
const settings = {
token: '287339343:AAEBqMm5I3XN80TY2lp4ACF6L9rp39XR6Jo',
maxResults: 10, // 50 is the maximum allowed by Telegram
bggClient: {
timeout: 10000, // timeout of 10s (5s is the default)
// see ... | JavaScript | 0 | @@ -108,55 +108,42 @@
en:
-'287339343:AAEBqMm5I3XN80TY2lp4ACF6L9rp39XR6Jo'
+process.env.BGG_TELEGRAM_BOT_TOKEN
,%0A%0A
|
7ec5cab1c605250a0b57f683ef2b57d0d9885320 | comment out test for now | redef/catalinker/module-test/workflow_test.js | redef/catalinker/module-test/workflow_test.js | /*global require, it, describe, before, after, document, Promise*/
"use strict";
var chai = require("chai"),
expect = chai.expect,
sinon = require("sinon"),
axios = require("axios"),
fs = require("fs");
describe("Catalinker", function () {
describe("/Workflow", function () {
require('./testdom')('<html... | JavaScript | 0 | @@ -206,16 +206,19 @@
%22fs%22);%0A%0A
+/*%0A
describe
@@ -4707,12 +4707,14 @@
;%0A %7D);%0A%7D);%0A
+*/
|
4993bfc08ff27224503d714496a2e57d541985fc | Fix missing `id` lens, failure to set `lens` property in AsyncUpdate constructor | src/sunshine.js | src/sunshine.js | /* @flow */
import Kefir from 'kefir'
import { id, get, set } from 'safety-lens/lens'
import type { Emitter, Property, Stream } from 'kefir'
import type { Lens_ } from 'safety-lens/lens'
export type Reducer_<State, Event> = (s: State, e: Event) => ?EventResult<State>
export type Reducer<State, Event> = [Class<Event>... | JavaScript | 0.000001 | @@ -40,20 +40,16 @@
import %7B
- id,
get, se
@@ -2801,16 +2801,20 @@
%3CA,B%3E) %7B
+%0A
this.up
@@ -2828,16 +2828,39 @@
updater
+%0A this.lens = lens%0A
%7D%0A%7D%0A%0A%0A/
@@ -5456,16 +5456,53 @@
op () %7B%7D
+%0Afunction id%3CT%3E(x: T): T %7B return x %7D
%0A%0Aexport
|
8a73a24e7659f26ee92a569441d4b9c2e98e8835 | clean code | cron/heat_map.js | cron/heat_map.js | const async = require( 'async' );
// --------------------------------------------------------------------------------------
var exp = {}
// --------------------------------------------------------------------------------------
// perform heat map data counting
// --------------------------------------------------------... | JavaScript | 0.000008 | @@ -2373,17 +2373,16 @@
ask
-mac_count
+heat map
fin
@@ -2455,18 +2455,16 @@
%7D);%0A%7D;%0A
-%0A%0A
// -----
@@ -3392,77 +3392,8 @@
);%0A%0A
- // debug%0A //realms = %5B 'cvut.cz', 'fit.cvut.cz', 'cuni.cz' %5D;%0A
|
e079169d8f19a6eb2b06e22a2c1f57e1877fcf6e | fix broken export in ui | src/ui/index.js | src/ui/index.js | import * as facets from "./facets";
import * as overlay from "./overlay";
import * as results from "./results";
import * as searchInput from "./searchInput";
export { facets, overlay, results, searchInput };
| JavaScript | 0 | @@ -121,38 +121,24 @@
as
-searchInput from %22./searchInpu
+text from %22./tex
t%22;%0A
@@ -176,18 +176,11 @@
ts,
-searchInpu
+tex
t %7D;
|
490ef35deaf8ec6c29afca890d6182b824d24dda | create ui.removeNavigationButtons() | src/utils/ui.js | src/utils/ui.js | /**
* ui module provide ui functions
* @module utils/ui
*/
'use strict';
/**
* Append "previous page" and "next page" navigation buttons
* @function appendNavigationButtons
* @static
* @param {Paginator} paginator The instancied paginator binded to the matched editor.
* @returns void
*/
exports.appendNavigat... | JavaScript | 0 | @@ -2998,16 +2998,162 @@
;%0A%7D;%0A%0A
+/**%0A * Remove navigation buttons%0A * @function%0A * @static%0A */%0Aexports.removeNavigationButtons = function()%7B%0A $('#paginator-navbar').remove();%0A%7D;%0A%0A
exports.
|
1c824703229059fe580727244fbf070df4ad6aa0 | fix condition | src/validate.js | src/validate.js | const supportedMethods = ['GET', 'POST', 'PUT', 'DELETE']
const validTypes = [null, '', 'arraybuffer', 'blob', 'document', 'text', 'json']
/**
* Validate HTTP method
* @param {String} method – HTTP method
* @return {String} error
*/
function validateMethod (method) {
if (!method) {
return `HTTP method is not... | JavaScript | 0.000001 | @@ -472,18 +472,17 @@
Case())
-%3E=
+%3C
0) %7B%0A
@@ -1519,10 +1519,9 @@
pe)
-%3E=
+%3C
0)%0A
|
3efe7e4d3661f5c0c44138444ec01c5b67f2cf23 | Add createActivity function for a form | src/App.js | src/App.js | import React, { Component } from 'react';
import moment from 'moment';
import './css/styles.css';
import sampleActivities from './sampleActivities';
class App extends Component {
constructor(props) {
super(props);
this.loadSampleActivities = this.loadSampleActivities.bind(this);
}
state = {
acti... | JavaScript | 0.000001 | @@ -1284,16 +1284,204 @@
%7D)%0A %7D%0A%0A
+ createActivity(e) %7B%0A e.preventDefault();%0A const activity = %7B%0A description: this.description.value,%0A %7D%0A%0A this.addActivity(activity);%0A this.activityForm.reset();%0A %7D%0A%0A
getCur
|
818448baebf2c8ddb7dddf38136af7f036042bcb | Add en locale data and detect language using various methods | src/App.js | src/App.js | import React from 'react';
import {compose, branch, renderComponent} from 'recompose';
import {BrowserRouter, withRouter} from 'react-router-dom';
import {IntlProvider} from 'react-intl';
import Prepare from './pages/Prepare';
import Countdown from './pages/Countdown';
import './App.css';
const Screen = compose(
... | JavaScript | 0 | @@ -161,16 +161,31 @@
Provider
+, addLocaleData
%7D from '
@@ -302,16 +302,131 @@
.css';%0A%0A
+import messages from './i18n/messages.json';%0A%0Aimport en from 'react-intl/locale-data/en';%0AaddLocaleData(%5B...en%5D);%0A%0A
%0Aconst S
@@ -625,16 +625,18 @@
nguage =
+%0A
(naviga
@@ -664,76 +664,236 @@
uage
-)... |
1c8589692d28d600eb47cb9e6180138cf24754bb | remove unused require option | src/App.js | src/App.js |
var createClass = require('./functions/createClass');
var ServiceContainer = require('./ServiceContainer');
var Service = require('./Service');
var HashStateHandler = require('./HashStateHandler');
var PageView = require('./PageView');
var FrontController = require('./FrontController');
var Dispatcher = require('./Dis... | JavaScript | 0.000011 | @@ -673,17 +673,8 @@
ent,
- require,
mid
@@ -809,45 +809,8 @@
ll;%0A
-%09%09require = options.require %7C%7C null;%0A
%09%09va
|
f7e979d635f97bc823909234161c8640fb9ee312 | create react components from arrays of data I | src/App.js | src/App.js | import React from 'react';
import ReactDOM from 'react-dom';
class App extends React.Component {
constructor(){
super();
this.state = {increasing: false}
}
update(){
ReactDOM.render(
<App val={this.props.val + 1}/>,
document.getElementById('root'))
}
componentWillReceiveProps(nextPr... | JavaScript | 0 | @@ -144,435 +144,216 @@
= %7Bi
-ncreasing: false%7D%0A %7D%0A%0A update()%7B%0A ReactDOM.render(%0A %3CApp val=%7Bthis.props.val + 1%7D/%3E,%0A document.getElementById('root'))%0A %7D%0A%0A componentWillReceiveProps(nextProps)%7B%0A this.setState(%7Bincreasing: nextProps.val %3E this.props.val%7D)%... |
ec6fe614156746929aea3fd2d6e1311581798f68 | Add --version option | src/Cli.js | src/Cli.js | 'use strict';
const EventEmitter = require('events');
const Getopt = require('node-getopt');
const CliError = require('./CliError');
const Options = require('./Options');
const Runner = require('./Runner');
class Cli extends EventEmitter
{
constructor(argv, stdin, stdout, stderr)
{
super();
this.argv = argv;
... | JavaScript | 0.000002 | @@ -864,17 +864,65 @@
liable'%5D
+,%0A%09%09%09%5B'', 'version', 'show version information'%5D
%0A
-
%09%09%5D);%0A%0A%09
@@ -1023,24 +1023,73 @@
'%0A%09%09%09+ '%5Cn'%0A
+%09%09%09+ 'Version: ' + this.versionString() + '%5Cn%5Cn'%0A
%09%09%09+ 'See fu
@@ -1306,24 +1306,24 @@
ons.help) %7B%0A
-
%09%09%09this.thr... |
4f2a31f86eb45d7db4a58bed31756eda6f4ef03f | Update s3tiles.js | s3tiles.js | s3tiles.js | var aws = require('aws-sdk')
, util = require('util')
, fs = require('fs')
, path = require('path')
, url = require('url')
, qs = require('querystring')
, s3
;
var options = {
credentials: path.resolve(process.env.AWS_CREDENTIALS_FILE || './aws-credentials.json'),
region: process.env.AWS_REGION || 'u... | JavaScript | 0 | @@ -917,111 +917,8 @@
1%5D;%0A
- %7D else %7B%0A console.log('warning: no content-type specified, defaulting to %25s.', this.contentType);%0A
%7D%0A
|
bd41bd594cb9646c5090c54de0bbb144ac3e46b5 | fix input type in examples | src/ng/filter/limitTo.js | src/ng/filter/limitTo.js | 'use strict';
/**
* @ngdoc filter
* @name limitTo
* @kind function
*
* @description
* Creates a new array or string containing only a specified number of elements. The elements
* are taken from either the beginning or the end of the source array, string or number, as specified by
* the value and sign (positive... | JavaScript | 0 | @@ -1584,39 +1584,47 @@
o: %3Cinput type=%22
-integer
+number%22 step=%221
%22 ng-model=%22numL
@@ -1731,39 +1731,47 @@
o: %3Cinput type=%22
-integer
+number%22 step=%221
%22 ng-model=%22lett
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.