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 |
|---|---|---|---|---|---|---|---|
a50d73b02bb83c4f2876cf7f082fc81a47a41b82 | Switch to image | dashboard/app/scripts/views/graphwall-view.js | dashboard/app/scripts/views/graphwall-view.js | /*global define*/
define(['jquery', 'underscore', 'backbone', 'templates', 'helpers/graph-utils', 'marionette'], function($, _, Backbone, JST, gutils) {
'use strict';
var GraphwallView = Backbone.Marionette.ItemView.extend({
template: JST['app/scripts/templates/graphwall-view.ejs'],
className:... | JavaScript | 0.000009 | @@ -1848,21 +1848,19 @@
.html('%3C
-embed
+img
src=' +
@@ -1872,16 +1872,8 @@
+ '%3E
-%3C/embed%3E
');%0A
|
23f14812ebedd49490632f2f3cdb805add4cd388 | Add config for cssVarLoaderLiquidPath | slate.config.js | slate.config.js | /* eslint-disable no-undef */
const path = require('path');
const alias = {
jquery: path.resolve('./node_modules/jquery'),
'lodash-es': path.resolve('./node_modules/lodash-es'),
};
module.exports = {
extends: {
dev: {resolve: {alias}},
prod: {resolve: {alias}},
},
};
| JavaScript | 0 | @@ -200,16 +200,129 @@
rts = %7B%0A
+ slateCssVarLoader: %7B%0A cssVarLoaderLiquidPath: %5B'src/snippets/css-variables.liquid'%5D,%0A %7D,%0A slateTools: %7B%0A
extend
@@ -322,24 +322,26 @@
extends: %7B%0A
+
dev: %7Bre
@@ -357,16 +357,18 @@
lias%7D%7D,%0A
+
prod
@@ -389,16 +389,23 @@
lias%... |
312c890bc6077464de63c853c4e73d2a11a954fb | Add dataset namespace | snabbdom-jsx.js | snabbdom-jsx.js | "use strict";
var SVGNS = 'http://www.w3.org/2000/svg';
var modulesNS = ['hook', 'on', 'style', 'class', 'props', 'attrs'];
var slice = Array.prototype.slice;
function isPrimitive(val) {
return typeof val === 'string' ||
typeof val === 'number' ||
typeof val === 'boolean' ||
type... | JavaScript | 0.00012 | @@ -115,16 +115,27 @@
'attrs'
+, 'dataset'
%5D;%0Avar s
|
fbd491890a57aab51c145ce5f118d5020b979193 | add content type to asmx response | lib/federationServerService.js | lib/federationServerService.js | var templates = require('./templates');
var thumbprint = require('thumbprint');
var URL_PATH = '/wsfed/adfs/fs/federationserverservice.asmx';
function getLocation (req) {
var protocol = req.headers['x-iisnode-https'] && req.headers['x-iisnode-https'] == 'ON' ?
'https' :
(req.heade... | JavaScript | 0 | @@ -1510,24 +1510,80 @@
req, res) %7B%0A
+ res.set('Content-Type', 'text/xml; charset=UTF-8');%0A
res.send
|
f4534b2660904f3895774b11c26ba0814112f167 | add test_base.html | gfx/tests/module.js | gfx/tests/module.js | dojo.provide("dojox.gfx.tests.module");
try{
dojo.require("dojox.gfx.tests.matrix");
dojo.require("dojox.gfx.tests.decompose");
doh.registerUrl("GFX: Utils", dojo.moduleUrl("dojox", "gfx/tests/test_utils.html"), 3600000);
}catch(e){
doh.debug(e);
}
| JavaScript | 0.000001 | @@ -219,16 +219,109 @@
00000);%0A
+%09doh.registerUrl(%22GFX: Base%22, dojo.moduleUrl(%22dojox%22, %22gfx/tests/test_base.html%22), 3600000);%0A
%7Dcatch(e
|
09d283ff9d4f003619d16434c657d7a9983279e6 | Fix bug in server image | requestHandlers.js | requestHandlers.js | var fs = require("fs");
var queryString = require("querystring");
function start(response, postData) {
console.log("Request handler 'start' was called.");
fs.readFile("./public/index.html", "utf8", function(error, data) {
response.writeHead(200, {
"Content-Type": "text/html"
});
response.wr... | JavaScript | 0.000001 | @@ -778,16 +778,17 @@
am(%22
+.
/tmp/te
-x
+s
t.pn
|
7e0313a60eef6d67c844af476a6881f512b58347 | move tag creation before git push in release script | scripts/release.js | scripts/release.js | const fs = require("fs");
const path = require("path");
const execa = require("execa");
async function execCommand(...args) {
let res;
try {
res = await execa(...args);
} catch (e) {
console.error(e.all);
process.exit(1);
}
return res.stdout;
}
async function main() {
console.log("Running rel... | JavaScript | 0 | @@ -3673,97 +3673,8 @@
);%0A%0A
- console.log(%60Git push%60);%0A await execCommand(%22git%22, %5B%22push%22%5D);%0A console.log(%22 OK%22);%0A%0A
co
@@ -3808,32 +3808,121 @@
e.log(%60 OK%60);%0A%0A
+ console.log(%60Git push%60);%0A await execCommand(%22git%22, %5B%22push%22%5D);%0A console.log(%22 OK%22)... |
aba97371b5f50d74f5311695dbecf6753d5edb67 | Fix protractor setup | protractor.conf.js | protractor.conf.js | const crew = require('serenity-js/lib/stage_crew');
const path = require('path'),
protractor = require.resolve('protractor'),
node_modules = protractor.substring(0, protractor.lastIndexOf('node_modules') + 12);
exports.config = {
seleniumServerJar: path.resolve(node_modules, 'protractor/node_modules/webd... | JavaScript | 0.000001 | @@ -1,768 +1,764 @@
-const crew = require('serenity-js/lib/stage_crew');%0A%0Aconst path = require('path'),%0A protractor = require.resolve('protractor'),%0A node_modules = protractor.substring(0, protractor.lastIndexOf('node_modules') + 12);%0A%0Aexports.config = %7B%0A%0A seleniumServerJar: path.resolve(node... |
a9f6329ba17dcb1d8d90137ba3d452a11d14a1f3 | Fix absolute value of cartesian (was previously x*x+y*y, but should be Sqrt[x^2+y^2]) | src/14.Expression.polar.js | src/14.Expression.polar.js | Expression.prototype.polar = function() {
var ri = this.realimag();
var two = new Expression.Integer(2);
return Expression.List.ComplexPolar([
ri[0]['^'](two)['+'](ri[1]['^'](two)),
Global.atan2.default(Expression.Vector([ri[1], ri[0]]))
]);
};
Expression.prototype.abs = function() {
console.warn('SLOW?');
va... | JavaScript | 0.000344 | @@ -141,16 +141,36 @@
lar(%5B%0A%09%09
+Global.sqrt.default(
ri%5B0%5D%5B'%5E
@@ -198,16 +198,17 @@
'%5D(two))
+)
,%0A%09%09Glob
@@ -363,31 +363,87 @@
);%0A%09
-return
+var two = new Expression.Integer(2);%0A%09return Global.sqrt.default(
ri%5B0%5D%5B'
-*'%5D(ri%5B0%5D
+%5E'%5D(two
)%5B'+
@@ -456,17 +456,16 @@
... |
1c322cabf0fd49d14b858ff6f176f3755970a2a7 | Fix showing countries count in countries' actions map | app/javascript/app/components/sectors-agriculture/countries-actions/ndcs-map/ndcs-map-selectors.js | app/javascript/app/components/sectors-agriculture/countries-actions/ndcs-map/ndcs-map-selectors.js | import { createSelector } from 'reselect';
import { getColorByIndex, createLegendBuckets } from 'utils/map';
import uniqBy from 'lodash/uniqBy';
import sortBy from 'lodash/sortBy';
import { generateLinkToDataExplorer } from 'utils/data-explorer';
import worldPaths from 'app/data/world-50m-paths';
import { europeSlug, e... | JavaScript | 0.002227 | @@ -170,24 +170,66 @@
sh/sortBy';%0A
+import lowerCase from 'lodash/lowerCase';%0A
import %7B gen
@@ -2002,48 +2002,37 @@
nst
-SECTORAL_ACTION_SPECIFIED_IDS = %5B56, 98%5D
+KEY_WORD_FOR_NO_ACTION = 'no'
;%0A%0A
@@ -2193,16 +2193,25 @@
.filter(
+%0A
countryI
@@ -2228,76 +2228,106 @@
-SECTORAL_ACTIO... |
57372472554341529fb071273e3bcd1c16794d4e | Unify require style | lib/hacks/grid-rows-columns.js | lib/hacks/grid-rows-columns.js | const Declaration = require('../declaration');
const { changeRepeat } = require('./grid-utils');
class GridRowsColumns extends Declaration {
static names = [
'grid-template-rows', 'grid-template-columns',
'grid-rows', 'grid-columns'
];
/**
* Change property name for IE
*/
pr... | JavaScript | 0.999294 | @@ -50,24 +50,13 @@
nst
-%7B changeRepeat %7D
+utils
= r
@@ -825,16 +825,22 @@
value =
+utils.
changeRe
|
17b1d71536609c6deabcf3b13ec9be0ec9fd793f | Fix following_counter plural to include "one" (#14342) | app/javascript/mastodon/components/common_counter.js | app/javascript/mastodon/components/common_counter.js | // @ts-check
import React from 'react';
import { FormattedMessage } from 'react-intl';
/**
* Returns custom renderer for one of the common counter types
*
* @param {"statuses" | "following" | "followers"} counterType
* Type of the counter
* @param {boolean} isBold Whether display number must be displayed in bold
... | JavaScript | 0 | @@ -1273,16 +1273,42 @@
plural,
+ one %7B%7Bcounter%7D Following%7D
other %7B
|
2d0c854827a7f45fe3474a335ff6abb731e5f8b9 | Remove development variable | app/js/controllers/init/create/IdentityController.js | app/js/controllers/init/create/IdentityController.js | "use strict";
var conf = require('js/lib/conf/conf');
module.exports = ($scope, $state, PubkeyGenerator) => {
setTimeout(() => {
$('select').material_select();
}, 500);
$scope.accept = () => {
let modal = $('#modal1');
if (modal.css('display') == 'none') {
$('#modal1').openModal();
}
}... | JavaScript | 0 | @@ -348,36 +348,8 @@
);%0A%0A
- conf.dev_autoconf = true;%0A
if
|
f47d9010181740a4e0f21799e900da9ef80ae0a2 | update lib/middleware/source_files to ES6 | lib/middleware/source_files.js | lib/middleware/source_files.js | var querystring = require('querystring')
var _ = require('lodash')
var common = require('./common')
var logger = require('../logger')
var log = logger.create('middleware:source-files')
// Files is a Set
var findByPath = function (files, path) {
return _.find(Array.from(files), function (file) {
return file.path... | JavaScript | 0.000003 | @@ -1,11 +1,27 @@
-var
+'use strict'%0A%0Aconst
queryst
@@ -54,38 +54,13 @@
g')%0A
-var _ = require('lodash')%0A%0Avar
+const
com
@@ -89,18 +89,18 @@
n')%0A
-var
+%0Aconst
log
-ger
= r
@@ -122,25 +122,8 @@
er')
-%0Avar log = logger
.cre
@@ -158,51 +158,27 @@
')%0A%0A
-// Files is a Set%0Avar findByPath = f... |
f254ed4615c22e4f5c39f63f737011f0c2b972ac | Use changed is-selected class also in the specs | spec/file-list-component-spec.js | spec/file-list-component-spec.js | /** @babel */
import {GitRepositoryAsync} from 'atom'
import etch from 'etch'
import FileList from '../lib/file-list'
import FileListViewModel from '../lib/file-list-view-model'
import FileListComponent from '../lib/file-list-component'
import GitService from '../lib/git-service'
import {createFileDiffsFromPath, build... | JavaScript | 0 | @@ -1433,32 +1433,35 @@
%5D).toHaveClass('
+is-
selected')%0A e
@@ -1492,32 +1492,35 @@
ot.toHaveClass('
+is-
selected')%0A %7D)%0A
@@ -1802,32 +1802,35 @@
)).toHaveClass('
+is-
selected')%0A%0A
@@ -1816,32 +1816,32 @@
('is-selected')%0A
-
%0A atom.comm
@@ -1918,32 +1918,35 @@
)).toHaveClass('
+is... |
061aa798de61969db3adcbb912e9100e71b7bc6b | Class=double | test/turnjs4/samples/quickguide/js/quickguide.js | test/turnjs4/samples/quickguide/js/quickguide.js | /* QuickGuide book */
function updateDepth(book, newPage) {
var page = book.turn('page'),
pages = book.turn('pages'),
depthWidth = 16*Math.min(1, page*2/pages);
newPage = newPage || page;
if (newPage>2)
$('.sj-book .p2 .depth').css({
width: depthWidth,
left: 20 - depthWidth
});
else
$('.sj-book... | JavaScript | 0.999976 | @@ -892,16 +892,40 @@
iv /%3E',%0A
+%09%09%09%7B'class': 'double'%0A//
%09%09%09%7B'cla
@@ -941,16 +941,18 @@
-size',%0A
+//
%09%09%09%09css:
@@ -964,10 +964,10 @@
th:
-92
+46
0, h
|
182a7de71a8d9223692e88592a20cc1e470c3c90 | clean up | public/app/main.js | public/app/main.js | $(function() {
'use strict';
var board;
(function() {
var xx = $(window).width() / 17,
yy = $(window).height() / 15.7;
/* Board Options */
JXG.Options.angle.orthoType = "root";
JXG.Options.angle.radius = 25;
JXG.Options.polygon.fillOpacity = 0.46;
JXG.Opt... | JavaScript | 0.000001 | @@ -938,21 +938,8 @@
pp =
- window.App =
req
@@ -1096,16 +1096,20 @@
/* drag
+ging
decorat
|
693c38670ca64338eee8fde07dea4adb97a8435d | Better terse output | lib/reporters/console-terse.js | lib/reporters/console-terse.js | 'use strict';
var d = require('es5-ext/lib/Object/descriptor')
, deferred = require('deferred')
, Base = require('./console').Reporter
, Reporter;
Reporter = function () { Base.apply(this, arguments); };
Reporter.prototype = Object.create(Base.prototype, {
constructor: d(Reporter),
logFile: d(func... | JavaScript | 0.999745 | @@ -476,17 +476,17 @@
path + '
-(
+:
' + msg.
@@ -497,14 +497,40 @@
+ '
-)
:' +
+msg.character + ':' +%0A%09%09%09%09%09
msg.
|
df1fcf3a930e44764a16b79516b3efe3ddb202c8 | Update hasOwn example for readability (#1988) | live-examples/js-examples/object/object-hasown.js | live-examples/js-examples/object/object-hasown.js | const object1 = {};
object1.prop = 'exists';
if (Object.hasOwn(object1, 'prop')) {
console.log('\'prop\' is own property'); // expected output: 'prop' is own property
}
// Property values can be null or undefined
object1.nullPropertyValue = null;
console.log(Object.hasOwn(object1, 'nullPropertyValue')); // expected ... | JavaScript | 0 | @@ -14,367 +14,29 @@
= %7B
-%7D;%0Aobject1.prop = 'exists';%0Aif (Object.hasOwn(object1, 'prop')) %7B%0A console.log('%5C'prop%5C' is own property'); // expected output: 'prop' is own property%0A%7D%0A// Property values can be null or undefined%0Aobject1.nullPropertyValue = null;%0Aconsole.log(Object.hasOwn(object1,... |
ec01a2e0b5dc430adab9da28dec427dc0c9c218a | remove `autobind` from `IssueDetailView` | lib/views/issue-detail-view.js | lib/views/issue-detail-view.js | import React, {Fragment} from 'react';
import {graphql, createRefetchContainer} from 'react-relay';
import PropTypes from 'prop-types';
import cx from 'classnames';
import IssueTimelineController from '../controllers/issue-timeline-controller';
import Octicon from '../atom/octicon';
import IssueishBadge from '../views... | JavaScript | 0 | @@ -522,45 +522,8 @@
r';%0A
-import %7Bautobind%7D from '../helpers';%0A
impo
@@ -1814,154 +1814,8 @@
%7D%0A%0A
- constructor(props) %7B%0A super(props);%0A autobind(this, 'handleRefreshClick', 'refresh', 'renderIssueBody', 'recordOpenInBrowserEvent');%0A %7D%0A%0A
co
@@ -4956,11 +4956,17 @@
lick
-(e)
+... |
af8db6790ee93762bb0e0f364da38eff3e0ec509 | rename TweetCache to FetchCache | service/twitter.js | service/twitter.js | window.Twitter = (function() {
"use strict";
const CONSUMER_KEY = "vbUQPCkkyFYUiomrSk9Nnysh0";
const CONSUMER_SECRET = "2EEZCi4nDKHK8rc4Y43iBQ3Nl9HSLbmaZeVigip1grhcmL8ajF";
const REFRESH_INTERVAL_MS = 10 * 60 * 1000; // 10 mins
const CACHE_LIFETIME_MS = 5 * 1000; // 5 seconds
function hashKey(source, para... | JavaScript | 0.001444 | @@ -1608,21 +1608,21 @@
class
-Tweet
+Fetch
Cache %7B%0A
@@ -1953,21 +1953,21 @@
//
-Tweet
+Fetch
Cache is
@@ -2360,21 +2360,21 @@
ring =%3E
-Tweet
+Fetch
Cache%0A
@@ -3727,13 +3727,13 @@
new
-Tweet
+Fetch
Cach
|
fd44e1fe4cab1bc8967f14b889151a1e0600a61d | update AnchorButton | src/AnchorButton/AnchorButton.js | src/AnchorButton/AnchorButton.js | /**
* @file AnchorButton component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import BaseButton from '../_BaseButton';
import TipProvider from '../TipProvider';
import Theme from '../Theme';
... | JavaScript | 0 | @@ -1781,32 +1781,110 @@
ropTypes.bool,%0A%0A
+ /**%0A * The title of the button.%0A */%0A title: PropTypes.string,%0A%0A
/**%0A * T
|
26b9c144d9610d94900ed79b8407c6885ce12abd | normalize undefined to null on create, update | lib/waterline/core/typecast.js | lib/waterline/core/typecast.js | /**
* Module dependencies
*/
var types = require('../utils/types');
/**
* Cast Types
*
* Will take values and cast they to the correct type based on the
* type defined in the schema.
*
* Especially handy for converting numbers passed as strings to the
* correct integer type.
*
* Should be run before sendin... | JavaScript | 0 | @@ -1127,24 +1127,109 @@
tion(key) %7B%0A
+%0A // Set undefined to null%0A if(values%5Bkey%5D === undefined) values%5Bkey%5D = null;%0A%0A
if(!self
@@ -1258,16 +1258,17 @@
%5Bkey%5D ==
+=
null %7C%7C
|
1e1c08d7359f0104a60fd6bfaf6d3e93edb98aac | Update http.js - Add support for headers | lib/winston/transports/http.js | lib/winston/transports/http.js | var util = require('util'),
winston = require('../../winston'),
http = require('http'),
https = require('https'),
Stream = require('stream').Stream,
TransportStream = require('winston-transport');
//
// ### function Http (options)
// #### @options {Object} Options for this instance.
// Constructor ... | JavaScript | 0 | @@ -761,16 +761,109 @@
s.agent;
+%0A this.headers = options.headers %7C%7C %7B%7D;%0A this.headers%5B'content-type'%5D = 'application/json';
%0A%0A if (
@@ -4549,46 +4549,20 @@
rs:
-%7B 'Content-Type': 'application/json' %7D
+this.headers
,%0A
|
e459786f841b706036daef757dabc1972db3d4db | fix gulp watch and Quick startup | gulp/development.js | gulp/development.js | 'use strict';
var gulp = require('gulp'),
gulpLoadPlugins = require('gulp-load-plugins'),
through = require('through'),
gutil = require('gulp-util'),
plugins = gulpLoadPlugins(),
coffee = require('gulp-coffee'),
paths = {
js: ['*.js', 'test/**/*.js', '!test/coverage/**', '!bower_components/**', '!packa... | JavaScript | 0 | @@ -238,24 +238,26 @@
js: %5B'
+./
*.js', '
test/**/
@@ -248,20 +248,22 @@
*.js', '
-test
+config
/**/*.js
@@ -270,176 +270,188 @@
', '
-!test/coverage/**', '!bower_components/**', '!packages/**/node_modules/**', '!packages/contrib/**/*.js', '!packages/contrib/**/node_modules/**', '!packages/core/**/*.js
+gulp/... |
be062ae3aa729eb253a17973bf92f00a35b7d961 | Update cypress test expected value given new step value for regional pop | e2e/cypress/integration/tests/actions.spec.js | e2e/cypress/integration/tests/actions.spec.js | /// <reference types="cypress" />
context('Actions', () => {
beforeEach(() => {
cy.visit('http://localhost:8000')
});
it('All + elements are clickable', () => {
cy.get('.step-up').click( { multiple: true } );
// This gets the "first" input from the sidebar. From clicking step up,
// the Regiona... | JavaScript | 0 | @@ -430,22 +430,22 @@
lue', '4
-2
+1
1940
-5
+6
')%0A %7D)%0A
|
9f82d0b6ea6bc977fe6de302a363db5bd444fa77 | Fix watch | gulp/tasks/watch.js | gulp/tasks/watch.js | /**
* Delete specified directories and all files in them.
*
* ---------------------------------------------------------------
*
*/
var clean = require('gulp-clean');
var livereload = require('gulp-livereload');
var notify = require('gulp-notify');
var paths = require('../paths');
module.exports = function (gulp)... | JavaScript | 0.000002 | @@ -279,16 +279,52 @@
paths');
+%0Avar scripts = require('./scripts');
%0A%0Amodule
@@ -353,16 +353,34 @@
ulp) %7B%0A%0A
+ scripts(gulp);%0A%0A
gulp.t
@@ -479,25 +479,13 @@
, %5B'
-copyScriptsToAsse
+scrip
ts'%5D
|
ca9a03601f86d68358f212b8fa775f5dfaabd2de | fix lint task | gulpy/tasks/lint.js | gulpy/tasks/lint.js | var gulp = require('gulp'), // Gulp JS
jshint = require('gulp-jshint'), // JS linter
cache = require('gulp-cached'), // Gulp cache module
jscs = require('gulp-jscs'), // JS-style checker... | JavaScript | 0.999485 | @@ -403,22 +403,23 @@
ify%0A
-notify
+project
Config =
@@ -449,16 +449,50 @@
Config')
+,%0A notifyConfig = projectConfig
.notifyC
|
f1f3f2c73728fede1835d457b0c5e78ac9b30aa4 | Throw if spy doesnt have what to spy on | sinon-spy-react.js | sinon-spy-react.js | var React = require('react');
var ReactDOM = require('react-dom');
var sinon = require('sinon');
function spyOnComponentMethod(reactClass, methodName) {
var classProto = reactClassPrototype(reactClass);
var spy;
var on;
var idx;
if (classProto.__reactAutoBindMap) { // React 0.14.x
spy = clas... | JavaScript | 0 | @@ -292,25 +292,105 @@
React 0.14.x
-%0A
+1%0A if(typeof classProto.__reactAutoBindMap%5BmethodName%5D !== 'undefined' )%7B%0A
spy =
@@ -483,24 +483,120 @@
thodName%5D);%0A
+ %7D else %7B%0A throw new Error('Cannot spy on a function that does not exist');%0A %7D%0A
%7D else i
|
c4a0b092c9edb0355c3e9fdb9214879f7d8ced31 | Update SecretFU.js | skills/SecretFU.js | skills/SecretFU.js | module.exports = function(skill, info, bot, message, db) {
bot.api.users.info({user: message.user}, (error, response) => {
let {name, real_name} = response.user;
var userData = message.text.match(/\<(.*?)\>/g);
console.log('messaage text: ' + message.text);
console.log('userdata' + userData);
if... | JavaScript | 0 | @@ -1956,17 +1956,16 @@
t: 'Some
-
one is t
|
fa1937fa06a5022c8b19ed65a8cb62cfe0312379 | fix bug when filtering for arnes requests | src/actions/foiRequests.js | src/actions/foiRequests.js | import R from 'ramda';
import { ORIGIN, FOI_REQUESTS_PAGE_SIZE, FOI_REQUESTS_PATH } from '../globals';
import { fetchAndDispatch } from '../utils/networking';
import { getCurrentAccessTokenOrRefresh } from '../utils/oauth';
import { mapToFakeStatus } from '../utils';
function foiRequestsErrorAction(error) {
return ... | JavaScript | 0 | @@ -3355,23 +3355,85 @@
const %7B
- filter
+%0A foiRequests: %7B filter %7D,%0A authentication: %7B userId %7D,%0A
%7D = get
@@ -3439,28 +3439,16 @@
tState()
-.foiRequests
;%0A%0A c
@@ -3953,32 +3953,40 @@
s = %7B%7D;%0A if (
+%0A (
filter.user !==
@@ -3994,10 +3994,43 @@
ull
-%7C%7C
... |
137ae294f2fcd61e4c4abcbb87ebcfd6b289c694 | Change for utilForEachGeneratedKey | src/adapters/pulsePoint.js | src/adapters/pulsePoint.js | adapterManagerRegisterAdapter((function() {
var adapterID = 'pulsePoint',
jsLibURL = '//tag.contextweb.com/getjs.static.js',
endPoint = '//bid.contextweb.com/header/tag',
pubID = 0,
constConfigPubID = 'cp',
constConfigAdTagID = 'ct',
adapterConfigMandatoryParams = [constConfigPubID, constConfigKeyGenerati... | JavaScript | 0 | @@ -2101,16 +2101,64 @@
tedKey(%0A
+%09%09%09%09%09adapterID,%0A%09%09%09%09%09slotConfigMandatoryParams,%0A
%09%09%09%09%09act
@@ -2330,296 +2330,8 @@
)%7B%0A%0A
-%09%09%09%09%09%09if(!keyConfig)%7B%0A%09%09%09%09%09%09%09utilLog(adapterID+': '+generatedKey+constCommonMessage08);%0A%09%09%09%09%09%09%09return;%0A%0... |
421c7d1bfe911ffd2478f5b85851f7725137f835 | remove unused import | src/app/models/kibitzer.js | src/app/models/kibitzer.js | import {
append,
drop,
dropLast,
forEach,
forEachObjIndexed,
isNil,
last,
map,
prepend,
reject,
zipObj
} from "ramda"
import { LEFT, RIGHT } from "~/share/constants/direction"
import { BEFORE, PRIMARY, AFTER } from "~/share/constants/role"
import { GAME } from "~/share/constants/actions"
import ... | JavaScript | 0.000001 | @@ -310,46 +310,8 @@
s%22%0A%0A
-import %7B logger %7D from %22~/app/index%22%0A%0A
impo
|
5f5ba1a8bc5e1277469b4a0586f4d9bd97042547 | Use JSON.parse in AssetManager only if the value is a string. Closes #128 | src/asset_manager/index.js | src/asset_manager/index.js | /**
* * [add](#add)
* * [get](#get)
* * [getAll](#getall)
* * [remove](#remove)
* * [store](#store)
* * [load](#load)
* * [onClick](#onClick)
* * [onDblClick](#onDblClick)
*
* Before using this methods you should get first the module from the editor instance, in this way:
*
* ```js
* var assetManager = edi... | JavaScript | 0.000003 | @@ -4673,13 +4673,65 @@
s =
-%5B%5D;%0A%0A
+d%5Bname%5D %7C%7C %5B%5D;%0A%0A if (typeof assets == 'string') %7B%0A
@@ -4735,18 +4735,21 @@
try
+
%7B%0A
+
@@ -4784,17 +4784,20 @@
;%0A
-%7D
+ %7D
catch(er
@@ -4798,17 +4798,26 @@
tch(err)
-%7B
+ %7B%7D%0A
%7D%0A%0A ... |
4e2f0fc2e6d0508f3348b573e9c97ccfba16b005 | Remove empty block | packages/core/admin/public/directives/editable.js | packages/core/admin/public/directives/editable.js | 'use strict';
angular.module('mean.admin').directive('ngEnter', function() {
return function(scope, elm, attrs) {
elm.bind('keypress', function(e) {
if (e.charCode === 13 && !e.ctrlKey) scope.$apply(attrs.ngEnter);
});
};
});
angular.module('mean.admin').directive('ngEditable', fun... | JavaScript | 0.000081 | @@ -1161,71 +1161,8 @@
();%0A
- %7D else %7B%0A // scope.focus();%0A
|
befb39110d9ecbd8d78f64edfda6032dff4f8c80 | Fix regex | generators/app/conf.js | generators/app/conf.js | 'use strict';
const lit = require('fountain-generator').lit;
module.exports = function webpackConf(options) {
const conf = {
module: {
loaders: [
{test: lit`/\.json$/`, loaders: ['json']}
]
}
};
if (options.test === false) {
conf.plugins = [
lit`new webpack.optimize.Occurr... | JavaScript | 0.999981 | @@ -750,17 +750,20 @@
gular(%5C%5C
-%7C
+%5C%5C%7C%5C
%5C/)core(
@@ -764,17 +764,20 @@
)core(%5C%5C
-%7C
+%5C%5C%7C%5C
%5C/)(esm(
@@ -778,17 +778,20 @@
)(esm(%5C%5C
-%7C
+%5C%5C%7C%5C
%5C/)src%7Cs
@@ -796,17 +796,20 @@
%7Csrc)(%5C%5C
-%7C
+%5C%5C%7C%5C
%5C/)linke
|
397bcb33d6252ff2135f037717e09de3f8b09852 | Fix ExtractTextPlugin call to use postcss on build | generators/app/conf.js | generators/app/conf.js | 'use strict';
const lit = require('fountain-generator').lit;
module.exports = function webpackConf(options) {
const conf = {
module: {
loaders: [
{test: lit`/\.json$/`, loaders: ['json']}
]
}
};
if (options.test === false) {
conf.plugins = [
lit`new webpack.optimize.Occurr... | JavaScript | 0 | @@ -3185,20 +3185,17 @@
ns.css%5D%7D
-', '
+!
postcss'
|
8cef6c03de05246549a42b5bfec47d3d549ae190 | Use else instead of else if | generators/app/conf.js | generators/app/conf.js | /* eslint prefer-spread: 0 */
'use strict';
const _ = require('lodash');
function series() {
const array = [];
array.push.apply(array, arguments);
array.type = 'series';
return array;
}
function parallel() {
const array = [];
array.push.apply(array, arguments);
array.type = 'parallel';
return array;
... | JavaScript | 0.000004 | @@ -881,44 +881,8 @@
else
- if (options.modules === 'systemjs')
%7B%0A
@@ -1309,44 +1309,8 @@
else
- if (options.modules === 'systemjs')
%7B%0A
|
1c2c70a30581008abeba0641c1760bebbd390738 | Remove useless files | generators/app/conf.js | generators/app/conf.js | const lit = require('fountain-generator').lit;
module.exports = function karmaConf(props) {
const conf = {
browsers: props.framework === 'angular2' ? ['Chrome'] : ['PhantomJS'],
basePath: '../',
singleRun: props.singleRun,
autoWatch: !props.singleRun,
logLevel: 'INFO',
junitReporter: {outputD... | JavaScript | 0.000002 | @@ -2755,205 +2755,8 @@
%7D;%0A%0A
- if (props.framework === 'angular2') %7B%0A conf.jspm.loadFiles.push(%0A 'jspm_packages/npm/reflect-metadata@0.1.2/Reflect.js',%0A 'node_modules/es6-shim/es6-shim.js'%0A );%0A %7D%0A%0A
|
1c7959e19e060bb55b2ff0d6f085b9e14a150000 | correct auth ui | public/js/authSetup.js | public/js/authSetup.js | function authSetup() {
var authArea = document.getElementById('auth');
$.ajax({
type: 'GET',
url: '/auth',
success: function(res, status, xhr) {
var html='';
if(Array.isArray(res)) {
for(var i=0;i<res.length;i++) {
var apiName = res[i].api;
va... | JavaScript | 0.000049 | @@ -18,17 +18,16 @@
p() %7B%0A
-
var auth
@@ -68,17 +68,16 @@
th');%0A
-
$.ajax(%7B
@@ -78,18 +78,16 @@
ajax(%7B %0A
-
type
@@ -95,18 +95,16 @@
'GET',%0A
-
url:
@@ -118,18 +118,16 @@
', %0A
-
success:
@@ -159,26 +159,24 @@
r) %7B %0A
-
var html='';
@@ -182,18 +182,16 @@
;%0... |
5b1e2893cab3dec2f7fc1721ba1337d9e9ea22fe | Change header on initial render of page | public/src/index.js | public/src/index.js | var LagerApp = React.createClass({
componentWillMount: function() {
window.onhashchange = function() {
this.setState({page: window.location.hash.substring(1)});
}.bind(this);
},
componentDidMount: function() {
window.onhashchange = function() {
var hash = window.location.hash.substring(1... | JavaScript | 0 | @@ -575,24 +575,90 @@
bstring(1);%0A
+ $('header a.pull-right').attr('href', '/' + page + '/new');%0A
%7D%0A re
|
a199d94513526da98071518a120454af49b8fc9f | Increase sw version | public/sw.js | public/sw.js | /* eslint-env serviceworker, browser */
// sw-offline-google-analytics *must* be imported and initialized before
// sw-toolbox, because its 'fetch' event handler needs to run first.
importScripts('/sw-offline-google-analytics/offline-google-analytics-import.js');
goog.offlineGoogleAnalytics.initialize();
// Use sw-to... | JavaScript | 0 | @@ -502,10 +502,10 @@
= '
-19
+20
';%0Ac
|
2c98f44a1f64d279b3d14e28fb2be6c0929998d8 | fix argument of R script | server/modules/DADA2.js | server/modules/DADA2.js | const Rexec = require('child_process').exec;
const fs = require('fs');
const tools = require('../toolbox');
exports.name = 'DADA2';
exports.category = 'Clustering';
exports.multicore = false;
exports.run = function(os,config,callback){
let token = os.token;
let directory = '/app/data/' + token + '/';
let tags =... | JavaScript | 0.000005 | @@ -497,16 +497,94 @@
vs_tab;%0A
+ let fwd = config.params.outputs.fwd;%0A let rev = config.params.outputs.rev;%0A
let pr
@@ -733,16 +733,24 @@
ken,proc
+,fwd,rev
%5D;%0A%0A va
|
e91ea7d8ff5686ba38bc591d3c2f000a88cc1eb6 | Improve code attribute update (work in progress) | collect-web/collect-webapp/frontend/src/components/datamanagement/recordeditor/fields/CodeField.js | collect-web/collect-webapp/frontend/src/components/datamanagement/recordeditor/fields/CodeField.js | import React, { Component, PropTypes } from 'react'
import classnames from 'classnames';
import { Label, Input, FormGroup } from 'reactstrap';
import ServiceFactory from 'services/ServiceFactory'
import AbstractField from './AbstractField'
export default class CodeField extends AbstractField {
constructor(props) ... | JavaScript | 0 | @@ -404,17 +404,56 @@
tems: %5B%5D
+,%0A uncommittedChanges: false
%0A
-
@@ -522,16 +522,101 @@
d(this)%0A
+ this.sendAttributeUpdateCommand = this.sendAttributeUpdateCommand.bind(this)%0A
%7D%0A%0A
@@ -2068,16 +2068,67 @@
t.code)%0A
+ this.setState(%7BuncommittedChanges: fa... |
be68bac665512be847e73b1741f1e1c7a3e5f4e3 | fix makeAppointment | packages/opd-model/schemas/appointments-schema.js | packages/opd-model/schemas/appointments-schema.js | Schema.Appointments = new SimpleSchema({
PatientID: {
type: String,
max: 50,
autoform: {
type: 'hidden'
}
},
DepartmentID: {
type: String,
label: 'แผนก',
max: 50,
autoform: {
options() {
return Model.Departments.find()
.fetch()
.map(dept => {... | JavaScript | 0.000049 | @@ -502,32 +502,66 @@
: 'hidden'%0A %7D
+,%0A optional: true //false later
%0A %7D,%0A AppDate:
@@ -1033,8 +1033,9 @@
tments);
+%0A
|
0178404ae675543ee19f06beefacea544e6a6089 | Update roomList.js | packages/rocketchat-ui-sidenav/client/roomList.js | packages/rocketchat-ui-sidenav/client/roomList.js | /* globals RocketChat */
import _ from 'underscore';
import { UiTextContext } from 'meteor/rocketchat:lib';
Template.roomList.helpers({
rooms() {
/*
modes:
sortby activity/alphabetical
merge channels into one list
show favorites
show unread
*/
if (this.anonymous) {
return RocketChat.mode... | JavaScript | 0.000001 | @@ -2252,16 +2252,34 @@
nst lm =
+ rooms%5Bsub.rid%5D &&
rooms%5Bs
|
67d0180b8b39c37c56eb1a2b51487873349ca9c6 | Set default index selection to a valid one | webui/assets/main.js | webui/assets/main.js | class REPL {
constructor(input, output, button) {
this.input = input
this.output = output
this.button = button
this.history = []
this.history_index = 0
this.history_buffer = ''
this.result_number = 0
}
bind_events() {
const repl = this
... | JavaScript | 0.000001 | @@ -4911,16 +4911,42 @@
ption')%0A
+ opt.value = i+1%0A
@@ -5028,24 +5028,175 @@
)%0A %7D%0A
+ // set the active option to one of the populated options, instead of invalid %22Index%22%0A if(i %3E 0) %7B%0A select.value = 1;%0A %7D%0A
%7D%0A
|
2c08ea3a9349cbe97b8047b045b5b8a2c76066f0 | Add utils.memoize_hasher | public/src/js/utils.js | public/src/js/utils.js | /*
* debugger.io: An interactive web scripting sandbox
*
* utils.js: utility functions
*/
define(['config', 'jquery', 'underscore'],
function(config, $, _) {
'use strict';
var utils = {};
if (!config.prod) { window.utils = utils; }
/**
* Log messages to console only in non-production
*
* @param ... | JavaScript | 0.000003 | @@ -5551,32 +5551,246 @@
fy(val));%0A %7D;%0A%0A
+ /**%0A * Hash function for _.memoize%0A *%0A * @return %7BString%7D joined arguments with hopefully unique separator%0A */%0A utils.memoize_hasher = function() %7B%0A return _.toArray(arguments).join('%3C%3C%3C!%3E%3E%3E');%0A %7D;%0A%0A
/**%0A * A... |
a274a4a16ab9461cbf3cf20029e673f8645554dc | Update admin.js | public/js/admin.js | public/js/admin.js | window.admin = {};
$(document).ready(function() {
$("#admin-feedback").on("tabOpened", function() {
window.api.get("admin/feedback/getList", function(resp) {
$("#admin-feedback-list").text("");
for (var feedbackIndex in resp.feedback) {
var feedbackItem = resp.feedback[feedbackIndex];
var $feedbackLi ... | JavaScript | 0.000001 | @@ -416,17 +416,16 @@
tem.
-desc
+msg
.sub
-S
+s
tr(0
|
ae26b8ccb4335041ae62fb89ccaab7f3cd9e229a | Update comment on hmd.ricaleinline | hmd.ricaleinline.js | hmd.ricaleinline.js | // # hmd.ricaleinline (hmd add-on)
// - written by ricale
// - ricale@hanmail.net or kim.kangseong@gmail.com
hmd.addInlineRules([
[/--([^-\s]{1,2}|-[^-\s]|[^-\s]-|(?:[^\s].+?[^\s]))--/g, '<del>$1</del>'],
[/,,([^,\s]{1,2}|,[^,\s]|[^,\s],|(?:[^\s].+?[^\s])),,/g, '<sub>$1</sub>'],
[/\^\^(... | JavaScript | 0 | @@ -69,46 +69,20 @@
ale@
-hanmail.net or kim.kangseong@gmail.com
+ricalest.net
%0A%0Ahm
|
0b6cf0a1b2fb6c1bea609198f306238adad94b16 | fix queue size and mouseover | public/js/queue.js | public/js/queue.js | //This code is heavily based on code from
//http://mbostock.github.io/d3/talk/20111018/tree.html
d3.queue = function(d3, canvasID, w, h, data) {
var spacing = 140//w / data.length;
var defaultSize = 15;
var chart = d3.select(canvasID).append("svg")
.attr("width", "10000")
.attr("height"... | JavaScript | 0 | @@ -283,17 +283,17 @@
idth%22, %22
-1
+5
0000%22)%0A
@@ -435,24 +435,94 @@
append(%22g%22)%0A
+ .on(%22mouseover%22, mouseover)%0A .on(%22mouseout%22, mouseout)%0A
.att
@@ -1133,24 +1133,58 @@
end(%22text%22)%0A
+ .style(%22display%22, %22none%22)%0A
.tex
@@ -1815,32 +1815,32... |
823b46f88354d0ddedfc886999083a3660bdf23c | check for log file before opening it | logger.js | logger.js | var jf = require('jsonfile');
var file = './log.json';
var filecontents = jf.readFileSync(file);
function readLogs() {
return filecontents;
}
function logMessage(request, response) {
filecontents[request.date] = {
"request": request,
"response" : response
};
}
function storeLogs() {
... | JavaScript | 0 | @@ -1,12 +1,36 @@
+var fs = require('fs');%0A
var jf = req
@@ -74,16 +74,131 @@
json';%0A%0A
+if (!fs.existsSync(file)) %7B%0A jf.writeFile(file, %7B%7D, function (err) %7B%0A console.error(err);%0A %7D);%0A%7D%0A%0A
var file
@@ -230,16 +230,20 @@
c(file);
+
%0A%0Afuncti
|
ba516f37c73195250e559f8c20cce2ed94e32249 | check null timestamp | logger.js | logger.js | var fs = require('fs')
var _ = require('lodash');
var request = require('request');
var cheerio = require('cheerio');
var colors = require('colors');
var config = JSON.parse(fs.readFileSync('config.json'))
var baseUrl = config.dwUrl;
var httpOptions = ***REMOVED***
'auth': ***REMOVED***
'user': config.usern... | JavaScript | 0.000007 | @@ -1947,32 +1947,166 @@
) ***REMOVED***%0A
+ var message = line.match(/%5C%5B(.*?)%5C%5D/);%0A if (message) ***REMOVED***%0A
@@ -2191,39 +2191,23 @@
rs.grey(
-line.match(/%5C%5B(.*?)%5C%5D/)
+message
.toStrin
@@ -2255,32 +2255,78 @@... |
8582116880c79950f41419b63fae20f22e3b48de | Update ProvideActions.js | src/client/actions/ProvideActions.js | src/client/actions/ProvideActions.js | import { dispatch, dispatchAsync } from '../dispatcher/AppDispatcher';
import ProvideConstants from '../constants/ProvideConstants';
import ProvideService from '../services/ProvideService';
export default {
updateSimulator: (newValue) => {
dispatch(ProvideConstants.UPDATE_SIMULATOR, {newValue});
... | JavaScript | 0 | @@ -345,23 +345,29 @@
rofile,
-pageKey
+simulatorInfo
) =%3E %7B%0D%0A
@@ -426,15 +426,21 @@
le,
-pageKey
+simulatorInfo
);%0D%0A
|
6f104a0cfb030952e7bea5ee79a37ff1beef63d7 | I said ONE slice | src/client/scripts/helpers/Player.js | src/client/scripts/helpers/Player.js | import SettingsManager from './SettingsManager';
class Player {
static instance;
// The registered samples
samples = [];
// An array of audio nodes that are currently playing per sample
playing = [];
// Used to create audio sources and as destination for the playing samples
audioContext = new AudioCon... | JavaScript | 0.998437 | @@ -1907,158 +1907,105 @@
-// BUG: Removes two every stop, so messes with simultaneous plays. This is because of Array.prototype.indexOf matching by value instead of reference%0A%0A
+const audioIndex = player.playing%5BsampleIndex%5D.indexOf(audio);%0A%0A if (audioIndex %3E= 0) %7B%0A
@@ -2027,24 +... |
c69ce9216a29006520f6285c6db44e16c3e1e8c8 | Add JS as a valid option | frappe/public/js/frappe/form/controls/code.js | frappe/public/js/frappe/form/controls/code.js | frappe.ui.form.ControlCode = frappe.ui.form.ControlText.extend({
make_input() {
if (this.editor) return;
this.load_lib().then(() => this.make_ace_editor());
},
make_ace_editor() {
const ace_editor_target = $('<div class="ace-editor-target"></div>')
.appendTo(this.input_area);
// styling
ace_editor_tar... | JavaScript | 0.000014 | @@ -807,16 +807,48 @@
cript',%0A
+%09%09%09'JS': 'ace/mode/javascript',%0A
%09%09%09'HTML
|
a3cedfc66230928b0b12cbead736bbcdce145c86 | Add join script | src/es2015/join.js | src/es2015/join.js | // Description:
// 新規参加者用挨拶スクリプト
//
var slackAPI = require('slackbotapi');
var token = process.env.WEB_SLACK_TOKEN;
var slack = new slackAPI({
'token': token,
'logging': true,
'autoReconnect': true
});
module.exports = (robot => {
robot.respond(/join all/i, res => {
res.send('joined all ch... | JavaScript | 0.000001 | @@ -18,21 +18,25 @@
/
-%E6%96%B0%E8%A6%8F%E5%8F%82%E5%8A%A0%E8%80%85%E7%94%A8%E6%8C%A8%E6%8B%B6%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88
+join all channels
%0A//%0A
@@ -167,29 +167,8 @@
en,%0A
- 'logging': true,%0A
@@ -268,48 +268,909 @@
%3E %7B%0A
-%0A res.send('joined all channels')
+ ... |
3b2726dc11fb5a6402dd39a8c6126a22af9a64b1 | fix NPE in LoadRoutePluginComponents | src/LoadRoutePluginComponents.js | src/LoadRoutePluginComponents.js | /* @flow */
import * as Immutable from 'immutable'
import React, {Component, PropTypes} from 'react'
import {LoadPluginComponent, PluginComponents} from 'redux-plugins-immutable-react'
type Props = {
route: {
pluginKey?: string | Symbol,
componentKey?: string | Symbol,
getComponentFromPlugin?: (plugin:... | JavaScript | 0 | @@ -564,17 +564,8 @@
rops
-: %7Broute%7D
%7D =
@@ -578,16 +578,22 @@
if (!
+props.
route) r
@@ -603,20 +603,16 @@
rn null%0A
-
%0A con
@@ -696,16 +696,22 @@
rops%7D =
+props.
route%0A
|
4323441358a9e8caf7869be37506774b9a3eaf30 | Fix index issues when triggering events | src/event/index.js | src/event/index.js | const isFunction = require('../is-function');
module.exports = function Event() {
const listeners = {};
let count = 0;
// Returns an id that can be used to stop listening for the event
this.on = function(eventName, cb) {
if(!eventName || typeof eventName !== 'string') {
throw new Error('Event.on requires a s... | JavaScript | 0.000002 | @@ -1468,16 +1468,69 @@
ngth) %7B%0A
+%09%09%09const incomplete = listeners%5BeventName%5D.slice(0);%0A
%09%09%09const
@@ -1780,91 +1780,121 @@
ise(
-listeners%5BeventName%5D%5B0%5D.cb);%0A%09%09%09for(let i=1; i%3Clisteners%5BeventName%5D
+incomplete.splice(0, 1)%5B0%5D.cb);%0A%09%09%09while(incomplete
.length
-; ... |
faa229db39f854fdec488b9a8422af5b16a8a35b | add myself as contributor | src/Parser/Priest/Holy/CONFIG.js | src/Parser/Priest/Holy/CONFIG.js | import React from 'react';
import { enragednuke } from 'CONTRIBUTORS';
import SPECS from 'common/SPECS';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contributed to this spec recently. People don't have to sign up to be long-time maintainers to be included in this list. If someone ... | JavaScript | 0 | @@ -41,16 +41,24 @@
agednuke
+, niseko
%7D from
@@ -472,16 +472,24 @@
agednuke
+, niseko
%5D,%0A //
|
b4c742f78e581eea18d91b02e549a3b340937fd2 | Add 1 2 Vue sample | .vuepress/config.js | .vuepress/config.js | module.exports = {
title: "Cours",
description: "Cette documentation est réalisée par Valentin Brosseau (pour le BTS SIO - SLAM 5, mais également l'ESEO), vous retrouverez dans l’ensemble des cours (slide) ainsi que les TP.",
plugins: ["@vuepress/last-updated", ["vuepress-plugin-code-copy", true]],
lang: "fr-FR... | JavaScript | 0.000143 | @@ -2142,16 +2142,42 @@
s/sound%22
+, %22cours/demo/vuejs/12vue%22
%5D%0A
|
e0fdf6bef9487dd46e97665c09cb13666630a1ab | Update app.js | 00-workspace/app.js | 00-workspace/app.js | // SET UP THE MAP
var mapProjection = new ol.proj.Projection({
code: 'EPSG:3857',
extent: [-20037508, -20037508, 20037508, 20037508.34]
})
var geoProjection = new ol.proj.Projection({
code: 'EPSG:4326',
extent: [-180, -180, 180, 180]
})
var map = new ol.Map({
layers:[
new ol.layer.Tile({
source: n... | JavaScript | 0.000002 | @@ -824,25 +824,123 @@
%09
-console.log(val);
+if(val.length %3E 2)%7B%0A app.queryAutocomplete(val, function(err, data)%7B%0A console.log(data);%0A %7D)%0A %7D
%0A
|
5287917050c385d2569d6d22a2de0c1882544816 | update constructor and super | src/async-script-loader.js | src/async-script-loader.js | import { Component, createElement } from "react";
import PropTypes from "prop-types";
let SCRIPT_MAP = {};
// A counter used to generate a unique id for each component that uses the function
let idCount = 0;
export default function makeAsyncScript(getScriptURL, options) {
options = options || {};
return function... | JavaScript | 0 | @@ -528,16 +528,30 @@
tructor(
+props, context
) %7B%0A
@@ -560,18 +560,31 @@
super(
+props, context
)
-;
%0A
|
6311da08c1931769f728ee6d9ce3953e66044148 | Add fs.access and refactor cb() further | host/nodeachrome.js | host/nodeachrome.js | #!/Users/admin/.nvm/versions/node/v4.2.4/bin/node
// ^ full path to node must be specified above, edit for your system. may also try:
// #!/usr/local/bin/node
'use strict';
const process = require('process');
const fs = require('fs');
const nativeMessage = require('chrome-native-messaging');
const input = new nativeM... | JavaScript | 0 | @@ -872,167 +872,8 @@
%0A%7D%0A%0A
-function createCallback(push, done) %7B%0A function genericCallback(err, data) %7B%0A push(encodeResult(err, data));%0A done();%0A %7D%0A%0A return genericCallback;%0A%7D%0A%0A
func
@@ -970,16 +970,95 @@
arams;%0A%0A
+ function cb(err, data) %7B%0A push(encodeResult(e... |
4d51bcbb94beca984512c935985a4142d43d0bf5 | Add fetchHarvest and fetchHarvests | src/fetch/fetch.js | src/fetch/fetch.js | export function cancelAllPromise(component) {
return component.cancelablePromises.map( promise => promise.cancel())
}
export const makeCancelable = (promise) => {
let hasCanceled_ = false;
const wrappedPromise = new Promise((resolve, reject) => {
promise.then((val) =>
hasCanceled_ ? reject({isCanceled... | JavaScript | 0.000001 | @@ -2080,24 +2080,734 @@
talogs')%0A%7D%0A%0A
+export function fetchHarvest(component, catalogId, harvestId) %7B%0A if (!catalogId) return Promise.reject(new Error('catalogId is required'))%0A if (!harvestId) return Promise.reject(new Error('harvestId is required'))%0A const fetchPromise = _f(%60https://inspire.dat... |
48565343b7d275de59b9e42a9e10ada5e003c94c | Add text prop to DeleteConfirmButtons for configurable text copy | ui/src/shared/components/DeleteConfirmButtons.js | ui/src/shared/components/DeleteConfirmButtons.js | import React, {PropTypes, Component} from 'react'
import classnames from 'classnames'
import OnClickOutside from 'shared/components/OnClickOutside'
import ConfirmButtons from 'shared/components/ConfirmButtons'
const DeleteButton = ({onClickDelete, buttonSize}) =>
<button
className={classnames('btn btn-danger ta... | JavaScript | 0 | @@ -257,14 +257,20 @@
Size
+, text
%7D) =%3E%0A
-
%3Cb
@@ -422,22 +422,22 @@
%3E%0A
-Delete
+%7Btext%7D
%0A %3C/but
@@ -939,16 +939,22 @@
ttonSize
+, text
%7D = this
@@ -1202,24 +1202,46 @@
eleteButton%0A
+ text=%7Btext%7D%0A
on
@@ -1408,16 +1408,43 @@
pes = %7B%0A
+ text: string.... |
863a244051ecd126b14b01622ecdf5ca4a3f717d | Add Upbit accounts | src/app/utils/BadActorList.js | src/app/utils/BadActorList.js | const list = `
acx
aex.com
allcoin.com
appreciater
bbittrex
bcex
bellyrub
biitrex
biittrex
bit-z
bitex
bitfinex.com
bitfinix
bitflip
bithumb
bithumb.com
bitifinex
bitkrx
bitnaru
bitre
bitreex
bitrex
bitrexx
bitrix
bitrrex
bitrtex
bitrx
bitsane
bitsane.com
bitstamp.net
bitt
bitteex
bitter
bitterex
bitterx
bittex
bitthai... | JavaScript | 0 | @@ -3054,14 +3054,34 @@
%0Aupb
-it.com
+bit%0Aupbit%0Aupbit.com%0Aupbitt
%0Avia
|
26c9afd56888d6ea78bae80fb25730922a9e664f | Remove no longer used field related functions | src/field/index.js | src/field/index.js | import { Map } from 'immutable';
import trim from 'trim';
import * as cc from './country_codes';
export function setField(m, field, value, validator, ...validatorExtraArgs) {
const prevValue = m.getIn(["field", field, "value"]);
const prevShowInvalid = m.getIn(["field", field, "showInvalid"], false);
const valid... | JavaScript | 0 | @@ -1110,403 +1110,8 @@
%0A%7D%0A%0A
-%0A%0A%0A%0Afunction valid(lock, field) %7B%0A return lock.getIn(%5B%22field%22, field, %22valid%22%5D);%0A%7D%0A%0Afunction showInvalid(lock, field) %7B%0A return lock.getIn(%5B%22field%22, field, %22showInvalid%22%5D, false);%0A%7D%0A%0Afunction setShowInvalid(lock, field, val... |
9be898bd2268c348767ca581b73c684e4875de13 | Add copyright | src/fixed-thead.js | src/fixed-thead.js | !function (root, factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define([], factory);
} else if (typeof module === 'object' && module.exports) {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments t... | JavaScript | 0.001145 | @@ -1,8 +1,100 @@
+// Fixed-thead 1.0.0%0A// https://github.com/sunya9/fixed-thead%0A// (c) 2016 sunya9(_X_y_z_)%0A %0A
!functio
|
7d36bd51220fc373d5ef020b7248ff31550f9026 | use the right lengths for pool tables | src/commands/Promocodes/ListPools.js | src/commands/Promocodes/ListPools.js | 'use strict';
const rpad = require('right-pad');
const Command = require('../../models/Command.js');
const { createGroupedArray, createPageCollector } = require('../../CommonFunctions.js');
class ListPools extends Command {
constructor(bot) {
super(bot, 'promocode.pools.managed', 'glyphs list managed', 'List c... | JavaScript | 0.000037 | @@ -1301,20 +1301,18 @@
longest
-Name
+Id
.length,
@@ -1354,34 +1354,36 @@
ol.name, longest
-Id
+Name
.length, ' ')%7D %7C
|
a3009c13e1f3f7e71c3ad753e98a2500b581a4b5 | set conditional to use virtual service url in getLegendUrl | src/common/legend/LegendDirective.js | src/common/legend/LegendDirective.js | (function() {
var module = angular.module('loom_legend_directive', []);
var legendOpen = false;
module.directive('loomLegend',
function($rootScope, mapService, serverService) {
return {
restrict: 'C',
replace: true,
templateUrl: 'legend/partial/legend.tpl.html',
... | JavaScript | 0 | @@ -1616,24 +1616,215 @@
-url = server.url
+if (goog.isDefAndNotNull(server.virtualServiceUrl)) %7B%0A domain = server.virtualServiceUrl;%0A %7D else %7B%0A domain = server.url;%0A %7D%0A url = domain
+ '
|
94d8164a03415a0642c2ec712ea2aa6b4f334f02 | Return SuperAgent's promise | src/gapi-client.js | src/gapi-client.js | import request from 'superagent';
import GapiResources from './gapi-resources';
const path = require ('path');
// TODO: Accept integer resourcesIds for `get`, `patch`, and `del`; right now only string are allowed
// TODO: Errors
// 2. Every request will at least need one resource call
// and one call to... | JavaScript | 0.000021 | @@ -2651,10 +2651,89 @@
s;%0A %7D%0A%0A
+ then (resolve, reject) %7B%0A return this.request.then(resolve, reject);%0A %7D%0A%0A
%7D%0A
|
f0b22b5387944b5f4fd7bac41fb8547f86b2f3a7 | Call polling | src/component/notification-center.js | src/component/notification-center.js | //Dependencies
import React, { Component , PropTypes } from 'react';
import NotificationGroup from './notification-group';
import NotificationAdd from './notification-add';
import NotificationCenterIcon from './notification-center-icon';
import { connect } from 'react-redux';
import { addNotification, readNotification,... | JavaScript | 0 | @@ -472,16 +472,54 @@
tions';%0A
+import polling from '../util/polling';
%0A// Noti
@@ -593,16 +593,521 @@
t %7B%0A
+componentWillMount() %7B%0A //build a polling timeout.%0A const %7BpollingTimer, dispatch%7D = this.props;%0A polling(() =%3E %7B%0A dispatch(fetchNotifications(thi... |
c72028425c0c5a2f2efc8090dda95bfcc5ccc3eb | replace lazy.js with lodash | src/components/BoardSection.react.js | src/components/BoardSection.react.js | var React = require("react"),
Lazy = require("lazy.js"),
Immutable = require("immutable"),
BoardStore = require("../stores/BoardStore"),
SettingsStore = require("../stores/SettingsStore"),
RowSection = require("./RowSection.react");
function getStateFromStores() {
return {data: Immutable.Map({"... | JavaScript | 0.999983 | @@ -27,20 +27,22 @@
%22),%0A
-Lazy
+lodash
= requi
@@ -50,14 +50,13 @@
e(%22l
-azy.js
+odash
%22),%0A
@@ -904,20 +904,27 @@
s =
-Lazy
+lodash.take
(markers
).ta
@@ -923,15 +923,10 @@
kers
-).take(
+,
rowC
@@ -935,23 +935,16 @@
Length)%0A
-
@@ -982,31 +982,24 @@
nction(a) %7B%0A
- ... |
b1b21bcd05c78f133fdec1d55b5b3c9d3d3eca34 | Fix EditPaymentMethods list re-rendering on change | src/components/EditPaymentMethods.js | src/components/EditPaymentMethods.js | import React from 'react';
import PropTypes from 'prop-types';
import { Button } from 'react-bootstrap';
import { defineMessages } from 'react-intl';
import withIntl from '../lib/withIntl';
import EditPaymentMethod from './EditPaymentMethod';
class EditPaymentMethods extends React.Component {
static propTypes = {
... | JavaScript | 0.000001 | @@ -2222,24 +2222,69 @@
this.props;%0A
+ const keyId = paymentMethod.id %7C%7C 'new';%0A
return (
@@ -2343,21 +2343,21 @@
ethod-$%7B
-index
+keyId
%7D%60%7D%3E%0A
|
0de1782cf5f945edb4896848a78d58ed004f6ad2 | add ApolloProvider to test | src/components/Layout/Layout.test.js | src/components/Layout/Layout.test.js | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
/* eslint-env jest */
/* eslint-disable padded-blocks, ... | JavaScript | 0 | @@ -490,16 +490,106 @@
thunk';%0A
+import ApolloClient from 'apollo-client';%0Aimport %7B ApolloProvider %7D from 'react-apollo';%0A%0A
import A
@@ -868,42 +868,342 @@
nst
-wrapper = renderer%0A .create(%0A
+apolloClient = new ApolloClient(%7B%0A networkInterface: %7B%0A async query() %7B%0A ... |
c6dfb3b24307f5a3e368135d7add665e81b5460f | add a field for on_pay_result_verify | routes/fly_flow.js | routes/fly_flow.js | /**
* Created by King Lee on 14-10-14.
*/
var redis_fly_flow_wrapper = require('./nosql/redis_fly_flow_wrapper');
var NodeRSA = require('node-rsa');
var key = new NodeRSA({b: 1024});
var log4js = require('log4js');
var log_json = require('../config/log.json');
log4js.configure(log_json);
var http_logger = lo... | JavaScript | 0.000003 | @@ -928,24 +928,62 @@
ystring'%5D;%0D%0A
+ http_logger.debug(verifystring);%0D%0A
/*%0D%0A
|
d7e21016f5cf93a0c60f0354a16f1f3f9d50ae7e | update example description | routes/services.js | routes/services.js | _ = require("underscore");
request = require('request');
Promise = require('promise');
// example of a service that takes in a url and returns json
function url_service(url){
// $SERVICE_NAME { key: value }
return new Promise( function( resolve, reject ) {
resolve( {
url: url
} );
} );
}
function... | JavaScript | 0.000001 | @@ -81,17 +81,16 @@
ise');%0A%0A
-%0A
// examp
@@ -137,16 +137,30 @@
returns
+a promise for
json%0Afun
@@ -192,9 +192,10 @@
//
-$
+%7B
SERV
@@ -202,16 +202,17 @@
ICE_NAME
+:
%7B key:
@@ -218,16 +218,18 @@
value %7D
+ %7D
%0A retur
|
51b01e432e5e7b79ec5158987f5750f84a84e12d | add random delay to rpc request calls | rpc-service/app.js | rpc-service/app.js | var timers = require('timers'),
http = require('http'),
querystring = require('querystring'),
async = require('async'),
express = require('express');
var services = require('./services'),
servicesParser = require('./services/parser');
var app = express(),
argv = require('minimist')(process.argv.... | JavaScript | 0 | @@ -620,16 +620,185 @@
ndex);%0A%0A
+%0A var randomTimeInSeconds;%0A%0A // wait between 0 - 1.5 records before delivering any results back%0A randomDelayTimeInSeconds = (Math.random() * 1.5).toFixed(2) * 1000;%0A%0A
if (se
@@ -1522,37 +1522,122 @@
ults) %7B%0A
- res.send();
+%0A timers.setTime... |
22ae9389b9a08d92984794794ee990ccf1a1d5ec | change input | solutions/day10.js | solutions/day10.js | 'use strict';
const fs = require('fs');
const input = fs.readFileSync('../input/day10.txt').toString().split(`\n`).map(s => s.trim());
function process (input)
{
let result = '';
const max = input.length;
let previous = input.charAt(0);
let current = null;
let counter = 0;
let count = 1;
... | JavaScript | 0.000199 | @@ -40,20 +40,20 @@
;%0Aconst
-inpu
+star
t = fs.r
@@ -100,39 +100,8 @@
ng()
-.split(%60%5Cn%60).map(s =%3E s.trim())
;%0A%0A%0A
@@ -657,36 +657,29 @@
et string =
-'1113222113'
+start
;%0Afor (let c
@@ -802,20 +802,13 @@
g =
-'1113222113'
+start
;%0Afo
|
f606bb8527752d12cd9489e6953dc77363a91112 | fix postgresql idle connection closed determination | src/adapter/socket/postgresql.js | src/adapter/socket/postgresql.js | 'use strict';
import Base from './base.js';
/**
* postgres socket class
* @return {} []
*/
export default class extends Base {
/**
* init
* @param {Object} config []
* @return {} []
*/
init(config){
super.init(config);
config.port = config.port || 5432;
//config.password = conf... | JavaScript | 0 | @@ -2212,50 +2212,32 @@
+
if(err.
-messag
+cod
e === '
-This socket is closed.
+EPIPE
')%7B%0A
|
ab106fdb04778321305e17cb3ef3e0f438704f52 | Stop using aggressive merging plugin | src/config/getWebpackClientConfig.js | src/config/getWebpackClientConfig.js | const path = require("path");
const webpack = require("webpack");
const WebpackIsomorphicToolsPlugin = require("webpack-isomorphic-tools/plugin");
const getAssetPath = require("../lib/getAssetPath").default;
const buildWebpackEntries = require("../lib/buildWebpackEntries").default;
const detectEnvironmentVariables = r... | JavaScript | 0.000011 | @@ -3951,62 +3951,8 @@
js%60)
-,%0A new webpack.optimize.AggressiveMergingPlugin()
%0A
|
2eaafd87781facf03e50de00f16de374571a05c4 | Fix lambda memory leak | src/deep-core/lib/Runtime/Sandbox.js | src/deep-core/lib/Runtime/Sandbox.js | /**
* Created by AlexanderC on 1/21/16.
*/
'use strict';
import domain from 'domain';
import process from 'process';
export class Sandbox {
/**
* @param {Function} func
*/
constructor(func) {
this._func = func;
this._onFail = Sandbox.ON_FAIL_CB;
}
/**
* @returns {Function}
*/
get fun... | JavaScript | 0.000395 | @@ -477,24 +477,86 @@
try %7B%0A
+ process.removeListener('unhandledRejection', failCb);%0A
exec
|
18cac9ece7d835ac7162e3de658081f5efadea44 | Clean out some cruft. | simpleJsCopy.js | simpleJsCopy.js | /*! simpleJsCopy.js v0.3.1 by ryanpcmcquen */
// Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (a... | JavaScript | 0 | @@ -4051,95 +4051,8 @@
();%0A
- if (iPhoneORiPod %7C%7C iPad) %7B%0A // This is what selects it on iOS:%0A
@@ -4086,34 +4086,32 @@
ctionStart = 0;%0A
-
origin
@@ -4169,173 +4169,8 @@
th;%0A
- %7D else if (oldSafari) %7B%0A originalCopyItem.select();%0A ... |
19844b14929b3299c3721509c037b6c15090842c | change error message | src/app/execution/txExecution.js | src/app/execution/txExecution.js | 'use strict'
module.exports = {
/**
* deploy the given contract
*
* @param {String} data - data to send with the transaction ( return of txFormat.buildData(...) ).
* @param {Object} udap - udapp.
* @param {Function} callback - callback.
*/
createContract: function (data, udapp, cal... | JavaScript | 0.000001 | @@ -2024,60 +2024,8 @@
%60%5Ct
-The constructor should be payable if you send value.
%5Cn%5Ct
@@ -2409,16 +2409,74 @@
state.%5Cn
+Note: The constructor should be payable if you send value.
%60%0A
|
764e5aa9cf298ba54ed34e3dd79e0e1bdc73ed80 | Fix default repeatMode option. | src/draw/handler/Draw.SimpleShape.js | src/draw/handler/Draw.SimpleShape.js | L.SimpleShape = {};
L.Draw.SimpleShape = L.Draw.Feature.extend({
options: {
repeatMode: true
},
initialize: function (map, options) {
L.Draw.Feature.prototype.initialize.call(this, map, options);
},
addHooks: function () {
L.Draw.Feature.prototype.addHooks.call(this);
if (this._map) {
this._map.dragg... | JavaScript | 0 | @@ -85,19 +85,20 @@
atMode:
-tru
+fals
e%0A%09%7D,%0A%0A%09
|
9759a929a8d6330f12a952545af630ddf72cb64c | Remove .shifter.json references | grunt/compress.js | grunt/compress.js | /*
* Copyright (c) 2013, Liferay Inc. All rights reserved.
* Code licensed under the BSD License:
* https://github.com/liferay/alloy-ui/blob/master/LICENSE.md
*
* @author Zeno Rocha <zeno.rocha@liferay.com>
* @author Eduardo Lundgren <eduardo.lundgren@liferay.com>
*/
var TASK = {
name: 'compress',
descr... | JavaScript | 0 | @@ -4708,168 +4708,8 @@
%7D);%0A
- %7D,%0A function(zipCallback) %7B%0A zip.add('.shifter.json', function() %7B%0A zipCallback();%0A %7D);%0A
|
54bdcfb2a8d3c3b53008cd446c56cf2b8f1dd56c | add some basic functions | scripts/jq.privateShare.js | scripts/jq.privateShare.js | /**
* jquery.privateShare
*
* A jquery plugin that renders sharebuttons for facebook, google+ and twitter
* in accordance with the very restrictive german privacy laws - e.G. without loading any 3rd party API
*
* @author Sebastian Antosch
* @email s.antosch@i-san.de
* @copyright 2016 I-SAN.de Webdesign & Hostin... | JavaScript | 0.000829 | @@ -5124,16 +5124,852 @@
ons = %7B%0A
+ /**%0A * Attaches a facebook-sharelink%0A * @param %7BjQuery%5D $this%0A * @param %7BObject%7D options%0A */%0A shareFb: function ($this, options) %7B%0A attachSharelink($this, 'FB', options.url... |
e4c6a4d239f72d5f0ecc976b1bf95c6e4cf24f11 | Support both SICStus Prolog 4.0 and 3.12. | scripts/make_sicstuslgt.js | scripts/make_sicstuslgt.js | // =================================================================
// Logtalk - Object oriented extension to Prolog
// Release 2.28.0
//
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
// =================================================================
if (WScript.Arguments.Unnamed.Length > 0) {
usag... | JavaScript | 0.000826 | @@ -486,16 +486,23 @@
Prolog
+4.0 or
3.12 (ed
@@ -639,16 +639,126 @@
log_path
+4 = WshShell.RegRead(%22HKLM%5C%5CSoftware%5C%5CSICS%5C%5CSICStus4.0_win32%5C%5CSP_PATH%22) + %22%5C%5Cbin%5C%5Cspwin.exe%22;%0Avar prolog_path3
= WshSh
@@ -844,16 +844,34 @@
.exe%22;%0A%0A
+var config_file;%0A%0A
var FSOb
@@ -923,... |
4c35dba9fa124f18cbaaefdaa9860bad0c652b05 | Update LoadData.js | src/js/LoadData.js | src/js/LoadData.js | import axios from 'axios';
export default class LoadData {
async dataRes(){
try {
const res = await axios(`http://localhost:8080/data.json`);
this.data = res.data;
}
catch(err){
console.log(`LoadData error at LoadData: ${err}`);
}
};
}... | JavaScript | 0 | @@ -19,16 +19,47 @@
'axios';
+%0Aimport %7B doms %7D from './base';
%0A%0Aexport
@@ -276,54 +276,501 @@
cons
-ole.log(%60LoadData error at LoadData: $%7B
+t dataError = %60%0A Data isn't loading! %3Cbr /%3E%0A Check data source: the fields should match the template JSON file.%3Cbr /%3E%0A ... |
6d72099d8c96958c371ea7de09f286678c3fc38d | Update gh-pages doc | app/main.js | app/main.js | var Board = require('./board-canvas'),
CycleController = require('./cycle-controller'),
Universe = require('./universe'),
universe = new Universe({
seed: {
type: 'random',
pattern: 'random'
}
}),
board = new Board({
container: '#board',
universe: universe,
cellSize: 4
});
new CycleController({
// board v... | JavaScript | 0 | @@ -277,9 +277,9 @@
ze:
-4
+3
%0A%7D);
|
09367e66d2da764a9dfd101eb978af803d7e5fcc | Handle Squirrel windows startup events | app/main.js | app/main.js | var app = require('app');
var path = require('path');
var BrowserWindow = require('browser-window');
var Menu = require('menu');
var MenuItem = require('menu-item');
var Shell = require('shell');
var ConfigStore = require('configstore');
var mainWindow = null;
const config = new ConfigStore('IRCCloud', {
... | JavaScript | 0 | @@ -232,16 +232,505 @@
ore');%0A%0A
+var handleStartupEvent = function() %7B%0A // Handle Squirrel startup events, called by the Windows installer.%0A // https://github.com/electronjs/windows-installer#handling-squirrel-events%0A if (process.platform !== 'win32') %7B%0A return false;%0A %7D%0A%0A switch (proce... |
f48b348b64b74adfe2c54a4b98deb1bc89965d8c | refine logic | imports/api/ppls.js | imports/api/ppls.js | import { Meteor } from 'meteor/meteor';
import { Mongo } from 'meteor/mongo';
import { Configs } from '/imports/api/configs';
import { defaultPpls } from '/imports/mock/default-ppls';
export const Ppls = new Mongo.Collection('ppls');
Ppls.const = {
DRAW_PPL_COUNT: 350,
LOC_ZHUHAI: '珠海',
LOC_GUANGZHOU: '广州',
... | JavaScript | 0.999999 | @@ -179,17 +179,16 @@
-ppls';%0A
-
%0Aexport
@@ -271,76 +271,11 @@
350
-,%0A LOC_ZHUHAI: '%E7%8F%A0%E6%B5%B7',%0A LOC_GUANGZHOU: '%E5%B9%BF%E5%B7%9E',%0A LOC_XIANGGANG: '%E9%A6%99%E6%B8%AF'
%0A%7D
+;
%0A%0AMe
@@ -508,18 +508,16 @@
tion();%0A
-
%0A Meteo
@@ -780,95 +780,19 @@
'',
-loc: %7B$in: %5BPpls.... |
3b7f710a3793f067821bc9610b7f9edb44c9fb4f | use arrow fn | gulpfile.babel.js | gulpfile.babel.js | import gulp from 'gulp';
import babel from 'babel/register';
import eslint from 'gulp-eslint';
import mocha from 'gulp-mocha';
gulp.task('lint', () => {
return gulp.src(['.src/**/*.js', './test/**/*.js'])
.pipe(eslint())
.pipe(eslint.format());
});
gulp.task('test', function() {
return gulp.src(['test/**/... | JavaScript | 0.000192 | @@ -276,18 +276,13 @@
t',
-function()
+() =%3E
%7B%0A
|
9a4a5571e3dc9d1dad50ee1669ea196ac5d395ce | Remove unused dependency. | gulpfile.babel.js | gulpfile.babel.js | 'use strict'
/**
* Import dependencies
* -----------------------------------------------------------------------------
*/
import autoprefixer from 'autoprefixer'
import babel from 'gulp-babel'
import bs from 'browser-sync'
import changed from 'gulp-changed'
import del from 'del'
import eslint from 'gulp-eslint'
im... | JavaScript | 0 | @@ -630,46 +630,8 @@
ss'%0A
-import sasslint from 'gulp-sass-lint'%0A
impo
|
bd71384cd69d4a88819df16537323b1529a9e9a1 | update help menu | src/keybindings.js | src/keybindings.js | 'use strict'
const config = require('../config/config.js')
const core = require('./core/core.js')
const searchAttribute = require('./core/searchAttribute.js')
const printChat = require('./helpers/printChat.js')
const printChatHTML = require('./helpers/printChatHTML.js')
const save = require('./helpers/save.js')
cons... | JavaScript | 0.000001 | @@ -897,33 +897,16 @@
clear%0A%E2%80%A2
- type 'toggle' to
change
@@ -916,35 +916,45 @@
or theme
-%0A%E2%80%A2 type any
+: toggle%0A%E2%80%A2 search for
attribu
te 'keyw
@@ -949,36 +949,20 @@
ribu
-te '
+res:
keyword
-' to search nodes
%60%0A%0A
@@ -1171,25 +1171,8 @@
ar%0A%E2%80%A2
- type 'toggle' to
... |
fa4ac94273c12a9911c82afdc08afb69f6ec95b1 | add cors for dev and heroku | gulpfile.babel.js | gulpfile.babel.js | 'use strict';
import gulp from 'gulp';
import del from 'del';
import gulpLoadPlugins from 'gulp-load-plugins';
import browserSync from 'browser-sync';
import download from 'gulp-download';
import decompress from 'gulp-decompress';
import historyApiFallback from 'connect-history-api-fallback';
const $ = gulpLoadPlugin... | JavaScript | 0 | @@ -397,24 +397,175 @@
.create();%0A%0A
+const acceptCors = function() %7B%0A return function(req, res, next) %7B%0A res.setHeader('Access-Control-Allow-Origin', '*');%0A return next();%0A %7D;%0A%7D;%0A%0A
/**%0A * Task
@@ -3638,17 +3638,30 @@
llback()
-
+, acceptCors()
%5D,%0A %7D
@@ -4349,16 +4349,3... |
8fdb06c89bed59ce63e9c5a226d39e3c6cb24a38 | Add a new question. | questions.js | questions.js | var questions = [
"Worin besteht das Problem?",
"Wann tritt das Problem auf?",
"Welche Ressourcen habe ich momentan zur Verfügung um das Problem zu lösen?",
"Welche Menschen können mir dabei helfen, das Problem zu lösen?",
"Wann habe ich das letzte Mal intensiv über dieses Problem nachgedacht?",
"Auf welche... | JavaScript | 0.999949 | @@ -1569,11 +1569,70 @@
ymptom?%22
+,%0A %22Kenne ich das Spielfeld gut, in dem ich mich befinde?%22
%0A%5D%0A
|
a9dc7e0dd3df97d1df91fb264ad5b124cb30f530 | add minWidth to Popup, fix calculation _containerWidth | src/layer/Popup.js | src/layer/Popup.js |
L.Popup = L.Class.extend({
includes: L.Mixin.Events,
options: {
maxWidth: 300,
autoPan: true,
closeButton: true,
offset: new L.Point(0, 2),
autoPanPadding: new L.Point(5, 5)
},
initialize: function(options) {
L.Util.setOptions(this, options);
},
onAdd: function(map) {
this._map ... | JavaScript | 0.000002 | @@ -62,24 +62,41 @@
options: %7B%0D%0A
+%09%09minWidth: 50,%0D%0A
%09%09maxWidth:
@@ -2848,32 +2848,25 @@
s._container
-.style.w
+W
idth = (widt
@@ -2921,22 +2921,77 @@
h :
+(
width
-) + 'px';
+ %3C this.options.minWidth ? this.options.minWidth : width ) );%0D%0A
%0D%0A%09%09
@@ -3017,29 +3017,15 @@
le.w
-hit... |
6f457cd0a5df2f7a1f2f3cb48e565c54696300e4 | increase start window size | app/spec.js | app/spec.js | 'use strict';
var app = require('app');
var BrowserWindow = require('browser-window');
var devHelper = require('./vendor/electron_boilerplate/dev_helper');
var windowStateKeeper = require('./vendor/electron_boilerplate/window_state');
var mainWindow;
// Preserver of the window size and position between app launches.... | JavaScript | 0.000001 | @@ -377,18 +377,18 @@
idth: 10
-00
+24
,%0A he
@@ -397,11 +397,11 @@
ht:
-600
+768
%0A%7D);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.