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 |
|---|---|---|---|---|---|---|---|
8e696dff255f711aba552214f8530a7a85da320b | increase timeout/check presence of node to be observed | src/index.js | src/index.js | require('./index.css');
const inject = require('./inject');
const changeContributionsColor = require('./change-color');
// invoke inject function
inject();
// invoke changeColor function
changeContributionsColor();
// attach click handler to navs
attachNavClickHandler();
function navClickHandler() {
/**
* lo... | JavaScript | 0 | @@ -1154,10 +1154,10 @@
%7D,
-16
+20
00);
@@ -1614,16 +1614,45 @@
%0A %7D;%0A
+ if (pjaxLoaderBar) %7B%0A
obse
@@ -1680,32 +1680,63 @@
erBar, config);%0A
+ %7D%0A if (yearsList) %7B%0A
observer.obs
@@ -1756,24 +1756,53 @@
t, config);%0A
+ %7D%0A if (orgsNav) %7B%0A
ob... |
79289f26cb7a6caed8f6780522286c8200d33f8a | refactor Math.Distance | src/index.js | src/index.js | 'use strict';
// Root packages
exports.ArrayUtils = exports.AU = require('ml-array-utils');
exports.BitArray = require('ml-bit-array');
exports.Matrix = require('ml-matrix');
var Math = exports.Math = {};
Math.Distance = require('ml-distance');
Math.SG = require('ml-savitzky-golay');
var Stat = exports.Stat = {};... | JavaScript | 0 | @@ -206,14 +206,13 @@
%7D;%0A%0A
-Math.D
+var d
ista
@@ -239,16 +239,89 @@
stance')
+%0AMath.Distance = distance.distance;%0AMath.Similarity = distance.similarity
;%0AMath.S
|
c86acb2f742ad515b489bde0f077cb26431e8cb4 | Throw an Error class in createRouteInstance | src/index.js | src/index.js | /**
* Marionette Routing
*
* Copyright © 2015-2016 Luiz Américo Pereira Câmara. 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.
*/
import _ from 'underscore'
import Radio from 'backbone.radio'
import Marionett... | JavaScript | 0 | @@ -3675,16 +3675,26 @@
throw
+new Error(
'Unable
@@ -3759,16 +3759,17 @@
defined'
+)
%0A %7D%0A%7D%0A%0A
|
9b39aceb4ea156ba7ba86cd1ac44c2427cd55c15 | Add mount to export list on index | src/index.js | src/index.js | import server from "./server"
import resource from "./resource"
import config from "./config"
import * as util_ from "./util"
export let Resource = resource.Resource
export let configure = config.configure
export let run = server.run
export let util = util_
export default {
Resource,
configure,
run,
util
}
| JavaScript | 0 | @@ -160,16 +160,50 @@
esource%0A
+export let mount = resource.mount%0A
export l
@@ -316,16 +316,25 @@
source,%0A
+ mount,%0A
config
|
f24c6cdedaccf78423bbf4cc307a55661fe8801f | Revert "Go back to using ES6 classes for React component" | src/index.js | src/index.js | import React from 'react';
import withSideEffect from 'react-side-effect';
import {default as _} from 'lodash';
import {default as immutable} from 'seamless-immutable';
class DocumentModifier extends React.Component {
static propTypes = {
children: React.PropTypes.object,
properties: React.PropTypes.object.isRequ... | JavaScript | 0 | @@ -168,12 +168,12 @@
;%0A%0Ac
-lass
+onst
Doc
@@ -190,42 +190,66 @@
ier
-extends React.Component %7B%0A%09static
+= React.createClass(%7B%0A%09displayName: 'DocumentModifier',%0A%0A%09
prop
@@ -253,18 +253,17 @@
ropTypes
- =
+:
%7B%0A%09%09chi
@@ -344,20 +344,37 @@
ired,%0A%09%7D
-;
+,
%0A%0A%09
+render: f... |
a88d536016c32fa11c1822b186fad8896e808644 | implement emiter receiver | src/index.js | src/index.js | import React, {Component} from 'react'
export class Emitter extends Component {
constructor(props) {
super(props)
}
render() {
return null
}
}
export class Receiver extends Component {
constructor(props) {
super(props)
}
render() {
return (
<div>
{null}
</div>
)... | JavaScript | 0.000002 | @@ -36,24 +36,1199 @@
ct'%0A%0Aexport
+function createEmitterReceiver() %7B%0A let emitterIdentifier = 0, receiverIdentifier = 0%0A const emittersChildren = %7B%7D, receivers = %7B%7D%0A%0A function sanitizeChildren(children) %7B%0A if (children === undefined %7C%7C%C2%A0children === null) %7B%0A return %5... |
f8cc83825319153b6e23c5d8f9d07a077878e48f | Fix fatal error when set env.DOKATA_TEMPLATE_DIR | src/index.js | src/index.js | import {EventEmitter} from 'events';
import path from 'path';
import debugModule from 'debug';
import ejs from 'ejs';
import fs from 'fs-extra';
import walk from 'walk';
const debug = debugModule('dokata');
const CONFIG_FILE_NAME = 'dokata.json';
const TEMPLATE_DIR_NAME = 'template';
/**
* Project Generator
*/
cl... | JavaScript | 0.000002 | @@ -432,61 +432,8 @@
ath%0A
- * @param %7Bstring%7D outputDir output directory path%0A
*
@@ -459,19 +459,8 @@
eDir
-, outputDir
) %7B%0A
@@ -504,40 +504,8 @@
ir;%0A
- this.outputDir = outputDir;%0A
@@ -3280,29 +3280,8 @@
ame)
-, path.basename(name)
);%0A
@@ -3430,21 +3430,8 @@
tor(
-config.name, ... |
727d5a4eda681d2e794823779d262d15a5f6175f | Use the non-deprecated jQuery.expr.pseudos by default | src/index.js | src/index.js | import $ from 'jquery'
import window from 'window'
/**
* @author Mudit Ameta
* @license https://github.com/zeusdeux/isInViewport/blob/master/license.md MIT
*/
// expose isInViewport as a custom pseudo-selector
$.extend($.expr[':'], {
// if $.expr.createPseudo is available, use it
'in-viewport': $.expr.createP... | JavaScript | 0 | @@ -218,16 +218,34 @@
.extend(
+$.expr.pseudos %7C%7C
$.expr%5B'
|
2c302b30a0ef43e2fb47a57836b04eefe5a39eed | Allow partitionAssigners to be configured | src/index.js | src/index.js | const { createLogger, LEVELS: { INFO } } = require('./loggers')
const LoggerConsole = require('./loggers/console')
const Cluster = require('./cluster')
const createProducer = require('./producer')
const createConsumer = require('./consumer')
const { assign } = Object
module.exports = class Client {
constructor({
... | JavaScript | 0 | @@ -1037,39 +1037,33 @@
groupId,%0A
-createP
+p
artitionAssigner
@@ -1054,32 +1054,33 @@
artitionAssigner
+s
,%0A sessionT
@@ -1396,39 +1396,33 @@
groupId,%0A
-createP
+p
artitionAssigner
@@ -1421,16 +1421,17 @@
Assigner
+s
,%0A
|
598b0321db5a5d21235833fc7683ef0b77444df8 | revert index.js changes | src/index.js | src/index.js | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Router, useRouterHistory } from 'react-router';
import { createHashHistory } from 'history';
import configureStore from './store/configureStore';
import routes from './routes';
const history = useRouterHistory... | JavaScript | 0.000001 | @@ -464,26 +464,17 @@
istory=%7B
-useRouterH
+h
istory%7D
|
35e208f3dff6655a3fb44d219dffcc13f33b3365 | update function name | src/index.js | src/index.js | export default function sameStateWarning() {
return ({getState}) => (next) => (action) => {
const prevState = getState();
const result = next(action);
const nextState = getState();
if (prevState === nextState) {
console.error(`action with type ${action.type} did not modify the data in any reducer.` +
`Y... | JavaScript | 0.000008 | @@ -21,24 +21,28 @@
ion
-sameStateWarning
+reduxUnhandledAction
() %7B
|
dab953e9893f47dec7618b705150acdb6be78558 | Add storage adapter param to loadBot | src/index.js | src/index.js | 'use strict'
// TODO logger conflicts with coffeeClass, re-instate when CS depreciated
// const logger = require('./logger')
const User = require('./user')
const Brain = require('./brain')
const Robot = require('./robot')
const Adapter = require('./adapter')
const Response = require('./response')
const Listener = req... | JavaScript | 0 | @@ -759,32 +759,48 @@
ot (adapterName,
+ storageAdapter,
enableHttpd, bo
@@ -876,16 +876,32 @@
terName,
+ storageAdapter,
enableH
|
d937e033240f5bc217f2efbb804a25096981ccc3 | Kill entire child process tree after timeout | src/index.js | src/index.js | var exec = require('child_process').exec;
var fs = require('fs');
var path = require('path');
var SOLVER_DIR = path.join(__dirname, '../', './lib');
var SOLUTION_SEPARATOR = '----------';
var SOLVE_COMMAND = './solve --num-solutions 1 --solution-separator ' + SOLUTION_SEPARATOR + ' ';
var DEFAULT_TIMEOUT_IN_MILLIS = 3... | JavaScript | 0 | @@ -1,16 +1,17 @@
var
-exec
+spawn
= requi
@@ -30,20 +30,21 @@
ocess').
-exec
+spawn
;%0Avar fs
@@ -212,17 +212,46 @@
'./solve
-
+';%0Avar SOLVE_COMMAND_ARGS = %5B'
--num-so
@@ -261,11 +261,15 @@
ions
- 1
+', 1, '
--so
@@ -284,20 +284,18 @@
eparator
- ' +
+',
SOLUTIO
@@ -309,14 +309,9 @@
ATOR
- + ' '
+%... |
b8d4d3f2bbad4140d72303ebf85f244fc191af69 | Make the test pass | src/index.js | src/index.js | // @flow
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import logger from 'redux-logger';
import type { FloorplanConfig } from './types';
import Floorplan from './containers/Floorplan';
import reducers from ... | JavaScript | 0.676487 | @@ -547,16 +547,112 @@
config;
+%0A%0A if (!config.div)%0A throw new Error(%22'div' field missing in Floorplan configuration.%22);
%0A %7D%0A%0A
|
4996b8655202d023bd32fda4f7f02ae48f325232 | support knex 0.95 version | src/index.js | src/index.js | // @flow
import type Knex from 'knex'
import chalk from 'chalk'
export type KnexTinyLoggerOptions = {
logger?: (message?: any, ...optionalParams: any[]) => void,
bindings?: boolean,
}
type KnexTinyLogger$StartTime = [number, number]
type KnexTinyLogger$Query = {
sql: string,
bindings: any,
startTime: Knex... | JavaScript | 0 | @@ -338,16 +338,201 @@
ime,%0A%7D%0A%0A
+type KnexTinyLogger$KnexFormatQuery = (sql: string, bindings: any) =%3E string%0Atype Knex$QueryExecutionerFormat = (sql: string, bindings: any, timeZone?: string, client: Knex) =%3E string%0A%0A
const CO
@@ -2172,32 +2172,38 @@
ueryPrinter(knex
+: Knex
, %7B logger, with
@@... |
40f7dfb663b1b180349e875d7355ee1f47737e45 | Default promise types | src/index.js | src/index.js | import isPromise from './isPromise';
export default function promiseMiddleware() {
return next => action => {
if (!isPromise(action.payload)) {
return next(action);
}
const { types, meta } = action;
const { promise, data } = action.payload;
const [ PENDING, FULFILLED, REJECTED ] = types;
... | JavaScript | 0.999553 | @@ -35,53 +35,178 @@
';%0A%0A
-export default function promiseMiddleware() %7B
+const defaultTypes = %5B'PENDING', 'FULFILLED', 'REJECTED'%5D%0A%0Aexport default function promiseMiddleware(config) %7B%0A const promiseTypes = config.promiseTypes %7C%7C defaultTypes;
%0A r
@@ -319,17 +319,25 @@
t %7B type
-s
+, payl... |
340aa4814caaa414926f2f2a90a195824f66ac74 | Fix exit code on failure | src/index.js | src/index.js | var Watai = require('./Watai'),
/** Path to the directory containing option-callable scripts.
*@type {String}
*@see #preProcessArguments
*@private
*/
OPTIONS_HANDLERS_DIR = './plugins/';
showHelpAndExit = require(OPTIONS_HANDLERS_DIR + 'help'),
logger = require('winston');
/*
* Here is the main CLI entry p... | JavaScript | 0.000122 | @@ -2,19 +2,17 @@
ar Watai
-%09%09%09
+
= requir
@@ -184,17 +184,17 @@
lugins/'
-;
+,
%0A%09showHe
@@ -587,17 +587,22 @@
%7D%0A%0A%0Avar
-p
+suiteP
ath%09= ar
@@ -615,16 +615,17 @@
%0A%09suite%09
+%09
= new Wa
@@ -640,17 +640,22 @@
eLoader(
-p
+suiteP
ath);%0A%0As
@@ -697,24 +697,25 @@
unction() %7B%0A
+%0... |
486f67fb3bb3d9a0cbec0c22b5230d612879daca | remove thenable so it's not assumed to be a Promise | src/index.js | src/index.js | import isPlainObject from "is-plain-object";
import {forEach,isEqual,assign,set,get,unset} from "lodash";
function validateName(name, type) {
if (typeof name !== "string" || name === "") {
throw new Error(`Expecting non-empty string for ${type} name.`);
}
}
function normalizeValue(value) {
if (value != null) {
... | JavaScript | 0.000001 | @@ -3260,136 +3260,8 @@
%09%7D%0A%0A
-%09then(resolve, reject) %7B%0A%09%09return this.save().then(resolve, reject);%0A%09%7D%0A%0A%09catch(reject) %7B%0A%09%09return this.then(null, reject);%0A%09%7D%0A%0A
%09toJ
|
ed459eef9e9fceb16491c9d344a6f45158cc2af3 | Optimize import | src/index.js | src/index.js | import uri from 'url';
import crypto from 'crypto';
import OAuth2Strategy from 'passport-oauth2';
import { InternalOAuthError } from 'passport-oauth2';
/**
* `FacebookTokenStrategy` constructor.
*
* The Facebook authentication strategy authenticates requests by delegating to
* Facebook using the OAuth 2.0 protocol... | JavaScript | 0.000006 | @@ -70,39 +70,9 @@
tegy
- from 'passport-oauth2';%0Aimport
+,
%7B I
|
ba36192f5fe8d648c2aa7bdc43533cfb5c3bdca3 | Update index.js | src/index.js | src/index.js | import React, { Children } from 'react'
import PropTypes from 'prop-types'
import { Broadcast, Subscriber } from 'react-broadcast'
export function withBreadcrumbs(BreadcrumbsComponent) {
const Breadcrumbs = (props, context) => {
return (
<Subscriber channel="breadcrumbs">
{ breadcrumbs =>
... | JavaScript | 0.000002 | @@ -2630,24 +2630,64 @@
erences ) %7B%0A
+ this.remove(this.props.to, true);%0A
this.i
|
3dc6c0269a8aa84508b130c0f6254c6592ca3d76 | Remove need to spread config object | src/index.js | src/index.js | import 'pixi';
import 'p2';
import 'phaser';
import { STATES } from 'constants';
import Boot from 'states/boot';
import Play from 'states/play';
import End from 'states/end';
import Title from 'states/title';
const settings = {
width: 960,
height: 960 / 8 * 5, // Original CGA used 320 x 200, so aspect ratio is 8... | JavaScript | 0.000005 | @@ -211,24 +211,22 @@
%0A%0Aconst
-settings
+config
= %7B%0A w
@@ -453,46 +453,8 @@
%7D;%0A%0A
-const args = Object.values(settings);%0A
cons
@@ -482,15 +482,14 @@
ame(
-...args
+config
);%0A%0A
|
0c14cac4ee941cf5cbb4f833c47fe37ed3341764 | update DraggableGridExamples: add tip | examples/containers/app/modules/draggable/DraggableGridExamples.js | examples/containers/app/modules/draggable/DraggableGridExamples.js | import React, {Component} from 'react';
import {DragDropContext} from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import Paper from 'dist/Paper';
import DraggableGrid from 'dist/DraggableGrid';
import Widget from 'dist/Widget';
import WidgetHeader from 'dist/WidgetHeader';
import PropTypeDescTabl... | JavaScript | 0 | @@ -708,32 +708,61 @@
text:
+ 'Facebook',%0A tip:
'Facebook'%0A
|
934c3fa88441b8a7ff3648038b29f40ab80dec1c | test 19 | complete/2-5.js | complete/2-5.js | var name = "A";
var obj = {
name: "B",
getName: function() {
return function() {
return this.name;
};
}
};
console.log(obj.getName()()); //A, 不是B | JavaScript | 0 | @@ -1,68 +1,19 @@
var
-name = %22A%22;%0Avar obj = %7B%0A name: %22B%22,%0A getName:
+g;%0A
function
() %7B
@@ -1,31 +1,37 @@
var g;%0Afunction
+ outer
() %7B%0A ret
@@ -23,26 +23,32 @@
) %7B%0A
- return
+var a = 100;%0A
functio
@@ -48,16 +48,22 @@
function
+ inner
() %7B%0A
@@ -71... |
e02eac4f6a1ec2f7d9b0736dccbf860c996b577f | add more detailed test | test/config-lookup/dotfiles/dotfiles-lookup.test.js | test/config-lookup/dotfiles/dotfiles-lookup.test.js | 'use strict';
const { run } = require('../../utils/test-utils');
describe('config lookup test : dotfolder', () => {
it('should find a webpack configuration in a dotfolder', () => {
const { stdout, stderr } = run(__dirname, [], false);
expect(stderr).not.toBeUndefined();
expect(stdout).not.t... | JavaScript | 0.000001 | @@ -7,24 +7,25 @@
trict';%0A
+%0A
const %7B
run %7D =
@@ -16,19 +16,105 @@
const %7B
-run
+stat %7D = require('fs');%0Aconst %7B resolve %7D = require('path');%0A%0Aconst %7B run, extractSummary
%7D = req
@@ -250,34 +250,36 @@
n a dotfolder',
-()
+done
=%3E %7B%0A co
@@ -413,24 +413,447 @@
Undefine... |
f16c2bd5453107480cb5844dee4fe40c87a79c93 | Fix lint errors | lib/node_modules/@stdlib/utils/curry/lib/curry.js | lib/node_modules/@stdlib/utils/curry/lib/curry.js | 'use strict';
// MODULES //
var isFunction = require( '@stdlib/utils/is-function' );
var isPositiveInteger = require( '@stdlib/utils/is-positive-integer' ).isPrimitive;
// MAIN //
/**
* Transforms a function into a sequence of functions each accepting a single argument.
*
* @param {Function} fcn - function to curr... | JavaScript | 0.000396 | @@ -550,16 +550,53 @@
integer%0A
+* @returns %7BFunction%7D curry function%0A
*%0A* @exa
@@ -1344,16 +1344,33 @@
gs = %5B%5D;
+%0A%09return curried;
%0A%0A%09/**%0A%09
@@ -1521,23 +1521,16 @@
lt%0A%09*/%0A%09
-return
function
@@ -1691,11 +1691,10 @@
ed;%0A
+
%09%7D
-;
//
|
64bb4c7f460ad990064f2835963d3a3b35eaee45 | update test | tests/unit/components/bundle-select-option-test.js | tests/unit/components/bundle-select-option-test.js | import { module, test } from 'qunit';
// import Ember from 'ember';
import { setupTest } from 'ember-qunit';
import sinon from 'sinon';
import BundleObject from '../../helpers/bundle-object';
module('Unit | Component | bundle select option', function(hooks) {
setupTest(hooks);
// test('didReceiveAttrs', function(... | JavaScript | 0.000001 | @@ -1102,19 +1102,20 @@
test('
-did
+will
DestroyE
@@ -1423,19 +1423,20 @@
mponent.
-did
+will
DestroyE
|
86a70e1ba15144ec6b0884f0b7b629ce0834ae46 | reproducing broken child record | tests/unit/model/projections/changed-attrs-test.js | tests/unit/model/projections/changed-attrs-test.js | import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import DefaultSchema from 'ember-m3/services/m3-schema';
module('unit/model/projections/changed-attrs', function(hooks) {
setupTest(hooks);
hooks.beforeEach(function() {
this.store = this.owner.lookup('service:store');
this.ow... | JavaScript | 0.99901 | @@ -2451,13 +2451,1871 @@
);%0A %7D);
+%0A%0A test('REGRESSION = nested models can report their own changed attributes', function(assert) %7B%0A this.store.push(%7B%0A data: %5B%0A %7B%0A id: 'urn:book:1',%0A type: 'com.bookstore.Book',%0A attributes: %7B%0A dummy... |
f4ec83656b92338579cc37d9ebcb9c33590380e6 | Update identification.js | mainRPi/sockets/serverSocket/emits/identification.js | mainRPi/sockets/serverSocket/emits/identification.js | var fs=require('fs');
var async=require('../../../async');
var constants= require('../../../constants.js');
var envVariables=require('../../../envVariables.js');
var Reading=require('../../../server/models/reading.js');
module.exports=function(socket){
socket.emit('identification', {mainRPiID: constants.MAIN_ID}, fu... | JavaScript | 0.000001 | @@ -43,16 +43,19 @@
./../../
+../
async');
@@ -88,16 +88,19 @@
./../../
+../
constant
@@ -142,16 +142,19 @@
./../../
+../
envVaria
@@ -194,16 +194,19 @@
./../../
+../
server/m
@@ -893,26 +893,16 @@
uire('./
-functions/
connecte
@@ -950,18 +950,8 @@
('./
-functions/
flus
|
882ad71c868fddd2244a5aa6f63f4fe7aca634ef | Fix CMD+R shortcut again. 15bf58d #203 #152 | src/app/components/ApplicationComponent.js | src/app/components/ApplicationComponent.js | define([
"Ember",
"nwjs/nwGui",
"nwjs/nwWindow",
"utils/platform",
"gui/selectable",
"gui/smoothscroll"
], function(
Ember,
nwGui,
nwWindow,
platform,
guiSelectable,
guiSmoothscroll
) {
var get = Ember.get;
var alias = Ember.computed.alias;
var reTheme = /^theme-/;
return Ember.Component.extend({
me... | JavaScript | 0 | @@ -1581,16 +1581,17 @@
lse );%0A%0A
+%0A
%09%09%09// Fi
@@ -1780,43 +1780,225 @@
%0A%09%09%09
-if ( platform.isDarwin ) %7B%0A%09%09%09%09var
+var shortcut;%0A%0A%09%09%09function unregisterHotkey() %7B%0A%09%09%09%09if ( !shortcut ) %7B return; %7D%0A%09%09%09%09nwGui.App.unregisterGlobalHotKey( shortcut );%0A%09... |
c4f6d2d408128bc8e6ab7d1b231a2e91f6c7f598 | Fix style violations. | local_modules/webapp/webpack/workaround-plugin.js | local_modules/webapp/webpack/workaround-plugin.js | const WebpackOnBuildPlugin = require('on-build-webpack')
const replace = require('replace')
const path = require('path')
const fs = require('fs')
// Workaround for https://github.com/ethereum/web3.js/issues/555:
module.exports = new WebpackOnBuildPlugin(function (stats) {
const bundle = path.resolve(__dirname, '..... | JavaScript | 0 | @@ -267,18 +267,16 @@
tats) %7B%0A
-
const
@@ -335,18 +335,16 @@
le.js')%0A
-
if (fs
@@ -366,26 +366,24 @@
dle)) %7B%0A
-
-
replace(%7B%0A
@@ -380,18 +380,16 @@
place(%7B%0A
-
re
@@ -409,18 +409,16 @@
,%0A
-
-
replacem
@@ -427,18 +427,16 @@
t: ' ',%0A
-
pa
@@ -451,18... |
886fb2aef960cc673fb171373943fe09557f54c3 | fix case where delete out of current list | web/src/reducers/todoReducer.js | web/src/reducers/todoReducer.js | import * as actionTypes from '../constants/actionTypes';
const initialError = {
status: false,
message: '',
};
const initialState = {
todoLists: {}, // object of todo lists w/ key being the list name
currentTodoList: {}, // current/selected todo list w/ name and todos keys
isCreatingTodoList: false, // is i... | JavaScript | 0.000014 | @@ -738,20 +738,18 @@
tion;%0A
-cons
+le
t todoLi
@@ -780,20 +780,18 @@
ts %7D;%0A
-cons
+le
t curren
@@ -1582,16 +1582,101 @@
ad.id%5D;%0A
+ if (payload.id === currentTodoList.id) %7B%0A currentTodoList = %7B%7D;%0A %7D%0A
re
@@ -1711,32 +1711,57 @@
todoLists,%0A
+ current... |
bdd630c5f7faf551b21b71eed6874a8bf1553093 | fix `scaffold.js` | tests/scaffold.js | tests/scaffold.js | 'use strict'
const projectDir = process.env.SEMAPHORE_PROJECT_DIR
const templateName = process.argv[2]
const suppose = require('suppose')
const template = require('./builds.json')[templateName]
const YELLOW = '\x1b[33m'
const END = '\x1b[0m'
process.chdir(process.cwd() + '/builds')
generate(templateName, template)... | JavaScript | 0 | @@ -630,48 +630,8 @@
1%5D)%0A
- .when(/version/g).respond(build%5B2%5D)%0A
@@ -662,17 +662,17 @@
d(build%5B
-3
+2
%5D)%0A .
@@ -701,17 +701,17 @@
d(build%5B
-4
+3
%5D)%0A .
@@ -744,9 +744,9 @@
ild%5B
-5
+4
%5D)%0A
@@ -781,9 +781,9 @@
ild%5B
-6
+5
%5D)%0A
@@ -824,9 +824,9 @@
ild%5B
-7
+6
%5D)... |
d5c3f8c89ef5758afea732e744ebbb62d51abd76 | correct jslint gulp task name in copy | gulp/tasks/dev/copy.js | gulp/tasks/dev/copy.js | var gulp = require('gulp');
var runSequence = require('run-sequence');
var config = require('../../config').copy.dev;
gulp.task('copy:dev',function(callback) {
runSequence(['copy:dev:localjs','copy:dev:templates'],callback);
})
gulp.task('copy:dev:localjs',['jslint:dev'],function(){
return gulp.src(config.local... | JavaScript | 0.000015 | @@ -264,20 +264,16 @@
%5B'jslint
-:dev
'%5D,funct
|
8c815f320d138b3c30752863d7276b60a3b07c83 | copy version file to piskel website | bin/copy-to-piskel-website.js | bin/copy-to-piskel-website.js | const rmdir = require('rmdir');
const path = require('path');
const fs = require('fs');
const fse = require('fs-extra');
const PISKEL_PATH = path.resolve(__dirname, '..');
const PISKELAPP_PATH = path.resolve(__dirname, '../../piskel-website');
// Callbacks sorted by call sequence.
function onCopy(err) {
if (err) {
... | JavaScript | 0 | @@ -239,16 +239,57 @@
ite');%0A%0A
+var pjson = require('../package.json');%0A%0A
// Callb
@@ -1565,16 +1565,321 @@
ed...');
+%0A%0A fs.writeFile(path.resolve(PISKELAPP_PATH, %22static/editor/VERSION%22), pjson.version, onVersionFileCreated);%0A%7D%0A%0Afunction onVersionFileCreated(err) %7B%0A if (err) %7B%0A ... |
e67f3c2f9820af852967d4bb4d4eda7da449bf38 | Fix deprecated create forms | webapp/scripts/submit-turtle.js | webapp/scripts/submit-turtle.js | // submit-turtle.js
/*
Copyright (c) 2014 3 Round Stones Inc., Some Rights Reserved
Licensed under the Apache License, Version 2.0, http://www.apache.org/licenses/LICENSE-2.0
*/
(function($){
var calli = window.calli || (window.calli={});
calli.submitTurtle = function(event, local) {
event.preventDefault()... | JavaScript | 0.000002 | @@ -2001,21 +2001,11 @@
ion(
-folder, local
+two
)%7B%0A
@@ -2028,42 +2028,97 @@
f (!
-folder %7C%7C !local) return undefined
+two %7C%7C !two.length) return undefined;%0A var folder = two%5B0%5D, local = two%5B1%5D
;%0A
|
0c33bc770456f777d4cfd220e43a4d0bbc9b1320 | Support YouTube width and height to be specified | client/app/scripts/youtube.js | client/app/scripts/youtube.js | /* Youtube Extension
^http://www.youtube.com/watch?v=0mmx68VmTEo ->
<iframe src=\"//www.youtube.com/embed/0mmx68VmTEo?rel=0\"\nframeborder=\"0\" allowfullscreen></iframe>
*/
(function() {
var youtube = function(converter) {
return [
{
type: 'lang',
regex: '\\^\\^([\\S]+)',
... | JavaScript | 0 | @@ -364,29 +364,198 @@
var
- m,
video
-_id, youtube
+Id = null;%0A var width = 640;%0A var height = 390;%0A%0A var youtubeWH = /%5E%5C%5B(%5Cd+)x(%5Cd+)%5C%5D.*((youtube%5C/)%7C(v%5C/)%7C(%5C/u%5C/%5Cw%5C/)%7C(embed%5C/)%7C(watch%5C?))%5C??v?=?(%5B%5E#%5C&%5C?%5D*).*/
;%0A
@@ -562,24 +... |
9c6c50b2e53f30f973f80efe30cb1d32f4544613 | Update app.js | client/js/app.js | client/js/app.js | // angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'starter.services' is found in services.js
// 'starter.controllers' is fou... | JavaScript | 0.000002 | @@ -2239,16 +2239,17 @@
url: %22
+/
one%22,%0A
|
4d9ff60aba9fdbc8cbb63b832f73b7c027f1b116 | remove annoying validation from test js | test/uploader-demo-jquery.js | test/uploader-demo-jquery.js | (function() {
$(function() {
var errorHandler;
errorHandler = function(event, id, fileName, reason, xhr) {
return qq.log("id: " + id + ", fileName: " + fileName + ", reason: " + reason);
};
if (qq.supportedFeatures.ajaxUploading) {
$('#azure-example').fineUpl... | JavaScript | 0.000003 | @@ -4381,102 +4381,8 @@
%7D%0A
- %7D,%0A validation: %7B%0A itemLimit: 3%0A
|
1b4cdd31b88702710df5eb824e4f8e42ad545a8d | Improve support for non-square images. Avoid screenshot as source image. #6477 | src/app/components/source/SourcePicture.js | src/app/components/source/SourcePicture.js | import React, { Component } from 'react';
import config from 'config';
import Relay from 'react-relay';
import styled from 'styled-components';
import UpdateSourceMutation from '../../relay/UpdateSourceMutation';
import UpdateAccountMutation from '../../relay/UpdateAccountMutation';
import {
avatarSizeLarge,
avatar... | JavaScript | 0.000001 | @@ -389,39 +389,8 @@
us,%0A
- borderWidthSmall,%0A black02,%0A
%7D fr
@@ -450,59 +450,55 @@
led.
-img
+div
%60%0A
-border: $%7BborderWidthSmall%7D solid $%7Bblack02%7D
+flex-shrink: 0;%0A align-self: flex-start
;%0A
@@ -585,31 +585,259 @@
0%25'%7D;%0A
-flex-shrink: 0;
+background-repeat: no-repeat;%0A b... |
a8c76d764288791a461801d51bc2839ef3ba0188 | Add route to 404 page | client/router.js | client/router.js | import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/views/Index'
import Group from '@/views/Group'
Vue.use(Router)
export default new Router({
routes: [
{
path: '/',
name: 'index',
component: Index,
},
{
path: '/group/:groupId',
name: 'group',
c... | JavaScript | 0.000001 | @@ -114,16 +114,56 @@
s/Group'
+%0Aimport NotFound from '@/views/NotFound'
%0A%0AVue.us
@@ -526,16 +526,99 @@
%0A %7D,%0A
+ %7B%0A path: '/*',%0A name: 'not-found',%0A component: NotFound,%0A %7D,%0A
%5D,%0A%7D)%0A
|
23f004dfd0646f1a7f7941642abc287d4eb32285 | switch to using boxed value | client/hippo/models/tenant.js | client/hippo/models/tenant.js | import { observable } from 'mobx';
import {
BaseModel, identifiedBy, field, identifier, computed,
} from './base';
import Config from '../config';
const CACHE = observable({
Tenant: undefined,
});
@identifiedBy('hippo/tenant')
export default class Tenant extends BaseModel {
@computed static get current() ... | JavaScript | 0.000001 | @@ -145,16 +145,17 @@
nfig';%0A%0A
+%0A
const CA
@@ -157,16 +157,17 @@
st CACHE
+D
= obser
@@ -175,35 +175,13 @@
able
-(%7B%0A Tenant: undefined,%0A%7D
+.box(
);%0A%0A
@@ -307,20 +307,49 @@
-if (!CACHE.T
+let tenant = CACHED.get();%0A if (!t
enan
@@ -361,31 +361,25 @@
-CACHE.T
+t
... |
3b2141f376b37db61ce0a0072d28f6c931b6923f | Update routes.js | client/routes.js | client/routes.js | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import HomePage from './components/homePage';
import App from './components/App';
import Dashboard from './components/dashboard/dashboard';
import requireAuth from './utils/requireAuth';
import requireAuthForHome from './utils/requireAuthForHo... | JavaScript | 0.000002 | @@ -146,17 +146,17 @@
ponents/
-A
+a
pp';%0Aimp
|
807665a8da615a8b78223cc859c3c2d43f50b0e9 | add parse feedback payload | client/js/middleware/qbank.js | client/js/middleware/qbank.js | import api from "../libs/api";
import Network from "../constants/network";
import { Constants as JwtConstants } from "../actions/jwt";
import { Constants as AssessmentConstants } from "../actions/assessment";
import { C... | JavaScript | 0.000001 | @@ -654,16 +654,17 @@
;%0Aimport
+
%7B parse
|
970dc9fa259adee2cc133f2886accbb24fee0d1e | Update teststate.js to be a fly camera in Zant | client/js/states/teststate.js | client/js/states/teststate.js | 'use strict';
function TestState() {
this.DM = new DataManager();
}
TestState.prototype.prepare = function(callback) {
this.DM.register('canim_intro', Animation, '3DDATA/TITLEIROSE/CAMERA01_INTRO01.ZMO');
this.DM.register('canim_inselect', Animation, '3DDATA/TITLEIROSE/CAMERA01_INSELECT01.ZMO');
this.DM.regis... | JavaScript | 0 | @@ -1651,17 +1651,17 @@
.setMap(
-0
+2
, functi
@@ -1727,24 +1727,26 @@
ootObj);%0A%0A
+//
this.playCam
@@ -1767,16 +1767,459 @@
tro');%0A%0A
+ var container = document.createElement( 'div' );%0A document.body.appendChild( container );%0A%0A var controls = new THREE.FlyControls(camera, renderer.domElement);%0... |
b517c33fe637fee5e23456c247a5ffd490555d79 | Fix bundles | client/src/systemjs.config.js | client/src/systemjs.config.js | /**
* System configuration for Angular samples
* Adjust as necessary for your application needs.
*/
(function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': 'node_modules/'
},
// map tells the System loader where to look for things
map: {
// our app is within ... | JavaScript | 0.000002 | @@ -362,22 +362,23 @@
//
-client
+angular
bundles
@@ -407,22 +407,23 @@
: 'npm:@
-client
+angular
/core/bu
@@ -469,30 +469,31 @@
mon': 'npm:@
-client
+angular
/common/bund
@@ -545,22 +545,23 @@
: 'npm:@
-client
+angular
/compile
@@ -621,38 +621,39 @@
browser': 'npm:@
-client
+angular
/platform-browse
@... |
6fb1b7fe5884a70d058cbc6693abf9161d732d92 | Clear search input upon cancel | client/views/common/search.js | client/views/common/search.js | var searching = new ReactiveVar(false);
var searchDeps = new Deps.Dependency();
function stopSearching () {
// $('#js-search-input').val('').blur();
searching.set(false);
}
function isSearching () {
return searching.get();
}
Template.searchInput.helpers({
indexes: ['topics', 'users'],
searching: isSearchin... | JavaScript | 0 | @@ -108,18 +108,12 @@
%7B%0A
-// $('#js-
+$('.
sear
|
730786c3fbe3a4a20aa5b3baafd4d182468fd419 | return '<empty>' for empty selectors | client/values.js | client/values.js |
var $arrayToString= function( value, options ) {
return '[ ' + value.$array.map(function(v) { return valueToString(v, options); } ).join(', ') + ' ]';
};
var $rangeToString= function( value, options ) {
return 'From: ' + valueToString(value.$range.from, options)
+ ' To: ' + valueToString(value.$rang... | JavaScript | 0.999176 | @@ -1748,16 +1748,23 @@
return '
+%3Cempty%3E
';%0A%0A
|
90ad6b8bf2cc730683c1b0b34935660ba2d1f38f | Fix toolbar back to dashboard for builds | src/components/common/header/AppToolbar.js | src/components/common/header/AppToolbar.js | import PropTypes from 'prop-types';
import React from 'react';
import { Grid, Row, Col } from 'react-flexbox-grid/lib';
import { FormattedMessage, injectIntl } from 'react-intl';
import messages from '../../../resources/messages';
import UserMenuContainer from './UserMenuContainer';
export const TOPICS_URL = 'https://... | JavaScript | 0 | @@ -394,32 +394,98 @@
diacloud.org/';%0A
+export const DASHBOARD_URL = 'https://dashboard.mediacloud.org/';%0A
export const SOU
@@ -1199,32 +1199,65 @@
%3C/li%3E%0A
+ %7B%0A /*%0A
%3Cl
@@ -1532,32 +1532,369 @@
%3C/li%3E%0A
+ */%0A ... |
4d3852528a14f006f745692410820c1bbcd044cd | bool is tinyint(1) | clients/mysql.js | clients/mysql.js |
var mysql = require('mysql');
var _ = require('underscore');
var util = require('util');
var genericPool = require('generic-pool');
var init, debug, pool, connection, connectionSettings;
// Initializes the mysql module with an options hash,
// containing the connection settings, as well as the
// pool config settin... | JavaScript | 0.998906 | @@ -6265,16 +6265,19 @@
'tinyint
+(1)
';%0A %7D,%0A
|
d3eec2e485fe36025a5e018fee54de4945aeb78f | fix loading | src/containers/layout/appbar/menu/index.js | src/containers/layout/appbar/menu/index.js | import { IconButton, Menu, MenuItem, Popover } from 'material-ui';
import { HardwareKeyboardArrowDown } from 'material-ui/svg-icons';
import { Component } from 'react';
import React from 'react';
import { compose, withApollo, graphql } from 'react-apollo';
import { connect } from 'react-redux';
import { withRouter } fr... | JavaScript | 0.000001 | @@ -2616,23 +2616,19 @@
return %3C
-Loading
+div
/%3E;%0A%0A
|
117ff00d489f9d48434db5c43ebd09f9837bae40 | Increase Nightwatch timeout for services page to load | tests/functional/services.js | tests/functional/services.js | module.exports = {
selectors: {
'filterTable': '#filtered-list table',
'textFilter': '#filter',
'kpi': '.service-kpis'
},
beforeEach: function (client) {
client
.url('http://localhost:3057/performance/services')
.waitForElementVisible('body.js-enabled.ready.loaded', 20000);
},
'S... | JavaScript | 0 | @@ -299,9 +299,9 @@
d',
-2
+3
0000
|
3142422e02766d334ac2ba08882479a6976a2c9f | Tweak deleted message | docs/demo.js | docs/demo.js | // Delete :+1: comments
const singleEmoji = /^\W*(:[\w-\+]+:|[\uE000-\uF8FF]|\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDDFF])\W*$/g;
on('issue_comment.created')
.filter(event => event.payload.comment.body.match(singleEmoji))
.deleteComment();
function isDeleted(event) {
return event.payload.action === 'deleted' &&
... | JavaScript | 0 | @@ -515,63 +515,8 @@
t(%60%0A
-Hi @%7B%7B sender.login %7D%7D. Please do not delete comments.%0A
Dele
@@ -532,16 +532,17 @@
nt from
+@
%7B%7B comme
@@ -589,12 +589,12 @@
t %7D%7D
- was
+%0A---
%0A%7B%7B
|
954c8b5c675f54f445f077051b9c6925c8dd0746 | Add a missing .catch() clause to handle() | src/handlers/DynamicRegistrationRequest.js | src/handlers/DynamicRegistrationRequest.js | 'use strict'
/**
* Dependencies
* @ignore
*/
const {JWT} = require('jose')
const crypto = require('webcrypto')
const BaseRequest = require('./BaseRequest')
const Client = require('../Client')
/**
* DynamicRegistrationRequest
*/
class DynamicRegistrationRequest extends BaseRequest {
/**
* Request Handler
... | JavaScript | 0 | @@ -669,16 +669,58 @@
espond)%0A
+ .catch(request.error.bind(request))%0A
%7D%0A%0A /
@@ -938,24 +938,97 @@
-throw new Error(
+return request.badRequest(%7B%0A error: 'invalid_request',%0A error_description:
'Mis
@@ -1058,16 +1058,25 @@
st body'
+,%0A %7D
)%0A %7D%0A
|
cdf7e961703fdd978e5dccea116ae2659d7cf62f | Change Greedy and A* search so that when nodes have the same f() value, the rightmost node will be expanded first. | src/js/models/algorithms/InformedSearch.js | src/js/models/algorithms/InformedSearch.js | InformedSearch = Backbone.Model.extend({
initialize: function(attributes, options) {
this.closedCount = 0;
// Callback functions
this.isGoalState = options.isGoalState;
this.onDiscover = options.onDiscover;
this.heuristicFunction = options.heuristicFunction;
... | JavaScript | 0 | @@ -307,24 +307,65 @@
unction;%0D%0A%0D%0A
+ this.numStatesDiscovered = 1;%0D%0A%0D%0A
// F
@@ -592,24 +592,169 @@
return 1;%0D%0A
+ %7D else if (a.order %3C b.order) %7B%0D%0A return -1;%0D%0A %7D else if (a.order %3E b.order) %7B%0D%0A return 1;%0... |
f13c9605a266d7604aeeaa588f1bb796adf31bce | add 'right' prop to SidebarLayout | src/layouts/SidebarLayout/SidebarLayout.js | src/layouts/SidebarLayout/SidebarLayout.js | import PropTypes from 'prop-types';
import styled from 'styled-components';
import get from 'extensions/themeGet';
const SidebarLayout = styled.div.withConfig({ displayName: 'SidebarLayout' })`
display: flex;
flex-direction: row;
align-items: stretch;
margin: 0;
padding: 0;
& > *:first-child {
flex: 3... | JavaScript | 0.000001 | @@ -288,16 +288,58 @@
& %3E *:
+$%7Bprops =%3E (props.right ? 'last-child' : '
first-ch
@@ -333,32 +333,35 @@
' : 'first-child
+')%7D
%7B%0A flex: 3;%0A
@@ -373,16 +373,59 @@
& %3E *:
+$%7Bprops =%3E (props.right ? 'first-child' : '
last-chi
@@ -426,16 +426,19 @@
st-child
+')%7D
%7B%0A f
@@ -501,20 ... |
a2d2ccddaf13ed126c274271cc7f355d6fb286b9 | Update path fonts gulp task | tasks/build.js | tasks/build.js | // imports
var gulp = require('gulp');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var uglify = require('gulp-uglify');
var buffer = require('vinyl-buffer');
// build src
gulp.task('browserify', function(cb){
return browserify('./src/app.js', {
debug: ... | JavaScript | 0.000001 | @@ -786,25 +786,11 @@
nic-
-framework/release
+npm
/fon
@@ -1110,28 +1110,29 @@
st('./www/'));%0A cb();%0A%7D);
+%0A
|
d7e20ee37eefc3b1f2bfd7b04b7bba2d8e77d27f | remove bogus error handler | tasks/stage.js | tasks/stage.js | const prompt = require('prompt'),
simpleGit = require('simple-git'),
fse = require('fs-extra'),
path = require('path'),
AdmZip = require('adm-zip'),
glob = require('glob'),
_template = require('lodash/template');
const CDN_ROOT = '../cdn.knightlab.com', // maybe parameterize later
PROJECT_N... | JavaScript | 0.000001 | @@ -1994,39 +1994,32 @@
eSync(latest_dir
-, onErr
);%0A f
|
7cc9c0382a2720a923ef49a92b5a62239866f214 | Update tests.js | tasks/tests.js | tasks/tests.js | 'use strict';
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
gulp.task('tests:node', function () {
var jasmine = require('gulp-jasmine');
return gulp.src('dist/tests/node/runtime/*.js').pipe(jasmine());
}); | JavaScript | 0.000001 | @@ -227,11 +227,51 @@
ine(
+%7B%0A includeStackTrace: true%0A %7D
));%0A%7D);
+%0A
|
04ea811baa042bc263e4652d954b12880408e369 | Add test for `assert.isBoolean`. | test/assert.js | test/assert.js |
/*!
* Module dependencies.
*
* Chai is automatically included in the browser.
*/
if (!chai) {
var chai = require('..');
}
var assert = chai.assert;
function err(fn, msg) {
try {
fn();
chai.fail('expected an error');
} catch (err) {
assert.equal(msg, err.message);
}
}
suite('assert', functio... | JavaScript | 0 | @@ -4337,46 +4337,8 @@
) %7B%0A
- console.log(1 instanceof Number);%0A
@@ -4353,24 +4353,24 @@
sNumber(1);%0A
+
assert.i
@@ -4438,24 +4438,24 @@
umber('1');%0A
-
%7D, %22expe
@@ -4488,13 +4488,204 @@
);%0A %7D);
+%0A%0A test('isBoolean', function() %7B%0A assert.isBoolean(true);%0A assert... |
994f79b1dcba28893ede568cdddcf687a7d32857 | Add tests (#12) | test/basics.js | test/basics.js | import path from 'path';
import del from 'del';
import pify from 'pify';
import executable from 'executable';
import exists from 'exists-file';
import test from 'ava';
import arduino from '../index';
const fixture = path.join.bind(path, 'fixtures');
test.serial('arduino should fail to download versions not available'... | JavaScript | 0 | @@ -1985,24 +1985,215 @@
imm');%0A%7D);%0A%0A
+test.serial('should unload without load', async t =%3E %7B%0A const arduinoObj = arduino(%7Bpath: 'tmp', tag: 'unload'%7D);%0A const err = await pify(arduinoObj.unload)();%0A t.is(err, undefined);%0A%7D);%0A%0A
test.after('
|
3951c76f75ed965d46c3da8aad97d337a8d793ca | update jsdoc license/samples-README (#188) | .jsdoc.js | .jsdoc.js | /*!
* Copyright 2018 Google LLC. All Rights Reserved.
*
* 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 appli... | JavaScript | 0 | @@ -1,10 +1,6 @@
/
-*!%0A *
+/
Cop
@@ -5,25 +5,25 @@
opyright 201
-8
+9
Google LLC.
@@ -25,36 +25,14 @@
LLC
-. All Rights Reserved.%0A *%0A *
+%0A//%0A//
Lic
@@ -92,18 +92,18 @@
ense%22);%0A
- *
+//
you may
@@ -160,18 +160,18 @@
icense.%0A
- *
+//
You may
@@ -207,23 +207,23 @@
at%0A
- *%0A *
+//%0A// ... |
89aad68338440194b33406879e183575272453fc | fix issue with titles used in thumbnail macros // fixes #33 | assets/javascripts/lightbox.js | assets/javascripts/lightbox.js | $(document).ready(function() {
// modify thumbnail links in wiki content -> add filename to url to support fancybox preview
$("div.wiki a.thumbnail").attr('href', function(i, v){
return v.replace(/\/attachments\/(\d+)/g,'/attachments/download/$1') + '/' + $(this).attr('title').replace(/(.*\.[^.]*)\s\(.*\... | JavaScript | 0 | @@ -79,32 +79,48 @@
-%3E add filename
+from ./img/@alt
to url to suppor
@@ -292,19 +292,33 @@
is).
+children('img').
attr('
-title
+alt
').r
@@ -334,22 +334,35 @@
.*%5C.
-%5B%5E.%5D*)
+(png%7Cjp(e)?g%7Cgif))(
%5Cs%5C(.*%5C)
/g,'
@@ -357,16 +357,18 @@
%5Cs%5C(.*%5C)
+)?
/g,'$1')
|
d73a977943e75bfd84dc90772aaa4c22b991d146 | Remove flow fix me | applications/desktop/src/notebook/epics/index.js | applications/desktop/src/notebook/epics/index.js | /* @flow strict */
import { catchError, startWith } from "rxjs/operators";
import { saveEpic, saveAsEpic } from "./saving";
import {
fetchContentEpic,
newNotebookEpic,
launchKernelWhenNotebookSetEpic
} from "./loading";
import type { ActionsObservable, Epic } from "redux-observable";
import {
launchKernelEpi... | JavaScript | 0 | @@ -475,16 +475,63 @@
t/core%22;
+%0Aimport type %7B AppState %7D from %22@nteract/core%22;
%0A%0Aimport
@@ -949,28 +949,46 @@
(epic: Epic%3C
-*, *
+AppState, redux$Action
, *%3E) =%3E (..
@@ -985,16 +985,19 @@
*%3E) =%3E (
+%0A
...args:
@@ -1002,14 +1002,13 @@
s: *
+%0A
) =%3E
-%0A
epi
@@ -1080,20 +1080,3... |
74bc21f9efae5def2af0e1a6f0c8ef3ca2f4419e | Add to dropdown plugin oterClick option | source/modules/dropdown/dropdown.js | source/modules/dropdown/dropdown.js | // dropdown
(function() {
'use strict';
/**
* Plugin name
* @type {String}
*/
var pluginName = 'dropdown';
/**
* Plugin default options
* @type {Object}
*/
var defaults = {
class: {
base: 'dropdown',
open: 'dropdown_open',
disabled: 'dropdown_disabled'
}
};
/**
* Keyboard key codes
... | JavaScript | 0 | @@ -185,16 +185,36 @@
lts = %7B%0A
+%09%09outerClick: true,%0A
%09%09class:
@@ -3173,32 +3173,59 @@
event) %7B%0A%09%09%09if (
+this.options.outerClick &&
this.isOpen()) %7B
|
6ecc2c787bdb875a1c571639678170b553330e7d | refactor fs method | build/authors.js | build/authors.js | const fs = require('fs')
const exec = require('child_process').exec
const fileName = 'AUTHORS.md'
const exclude = ['.local', 'ti10mylove@163.com', 'Yibang Yang', '立', 'jumore.com'].join('|')
const reg = new RegExp('(' + exclude + ')')
exec('git log --reverse --format="- %aN <%aE>"', {async: true}, (code, stdout, stde... | JavaScript | 0.000009 | @@ -340,54 +340,20 @@
rr)
-%7B%0A console.log(stderr)%0A return false%0A %7D
+throw stderr
%0A%0A
@@ -461,18 +461,20 @@
val)%0A%0A
-le
+cons
t fileCo
@@ -600,16 +600,12 @@
fs.
-readFile
+open
(fil
@@ -614,19 +614,23 @@
ame,
+ 'wx',
(err,
+f
d
-ata
) =%3E
@@ -647,101 +647,46 @@
(err
- && err.er... |
494266901b0cdcc9956dda721a4ca19d3b4ced53 | add jsdoc-region-tag plugin (#282) | .jsdoc.js | .jsdoc.js | /*!
* Copyright 2018 Google LLC. All Rights Reserved.
*
* 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 appli... | JavaScript | 0 | @@ -863,16 +863,40 @@
arkdown'
+,%0A 'jsdoc-region-tag'
%0A %5D,%0A
|
343b6fdeb2b358d5f5feb01b3c4e12932a25a13a | Update foundation.dynamicRouting.js | js/angular/services/foundation.dynamicRouting.js | js/angular/services/foundation.dynamicRouting.js | (function() {
'use strict';
angular.module('foundation.dynamicRouting', ['ui.router'])
.provider('$FoundationState', FoundationState)
.controller('DefaultController', DefaultController)
.config(DynamicRoutingConfig)
.run(DynamicRoutingRun)
;
FoundationState.$inject = ['$stateProvider'];
fun... | JavaScript | 0 | @@ -1416,32 +1416,102 @@
%7D,%0A %7D;%0A
+ %0A angular.extend(state.data, page.data);%0A
%0A $stat
@@ -1833,24 +1833,94 @@
%7D;%0A
+ %0A angular.extend(state.data, page.data);%0A
%0A a
|
0f28d9ee0aaaf19cc61d71ed1f5e4927dcc7dcf0 | Add DELETE /api/flags(?id=:ids) endpoint | api/index.js | api/index.js | var path = require('path');
var express = require('express');
var Sequelize = require('sequelize');
var bodyParser = require('body-parser');
var auth = require('http-auth');
var app = express();
app.use(bodyParser.json());
var basic = auth.basic({
realm: 'Flags',
file: __dirname + '/.htpasswd',
});
var sequelize... | JavaScript | 0.000034 | @@ -1610,32 +1610,300 @@
ws);%0A %7D);%0A%7D);%0A%0A
+app.delete('/flags', auth.connect(basic), function (req, res) %7B%0A var query = req.query;%0A var params = %7B%7D;%0A%0A if (query.id) %7B%0A params.id = query.id.split(',');%0A %7D%0A%0A Flag.destroy(%7B%0A where: params,%0A %7D).then(function () %7B... |
53778bcedd32f1be1da7871772e5ca9628968f72 | refactor template | webpack.hjs.js | webpack.hjs.js | const webpack = require('webpack')
const getConfig = require('hjs-webpack')
const isDev = (process.env.NODE_ENV || 'development') === 'development'
const isProd = !isDev && process.env.NODE_ENV === 'production'
const PRO_PUBLIC_PATH = ''
const DEV_PUBLIC_PATH = ''
const PUBLIC_PATH = isProd ? PRO_PUBLIC_PATH : DEV_PU... | JavaScript | 0.000004 | @@ -690,19 +690,180 @@
%3C
-link href=%22
+meta http-equiv=%22X-UA-Compatible%22 content=%22IE=edge%22%3E%0A %3Cmeta name=%22viewport%22 content=%22width=device-width, initial-scale=1%22%3E%0A %3Clink href=%22$%7BPUBLIC_PATH%7D
$%7Bco
@@ -894,26 +894,8 @@
eet%22
- type=%22text/css%22 /
%3E%... |
15eb6dec8048638cd3883483690136604a44243d | Add init and shutdown functions to EsendexPlugin | bin/plugins/esendex/plugin.js | bin/plugins/esendex/plugin.js | // @ts-check
var voluble_plugin_base = require('../plugin_base.js')
var manifest = require('./manifest.json')
var Q = require('Q')
var esendex = require('esendex')({
username: manifest.esendex_username,
password: manifest.esendex_password
}) // Add authentication info here
var EsendexPlugin = {
name: manifest.... | JavaScript | 0 | @@ -162,122 +162,8 @@
ex')
-(%7B%0A username: manifest.esendex_username,%0A password: manifest.esendex_password%0A%7D) // Add authentication info here
%0A%0Ava
@@ -377,24 +377,247 @@
countref%0A%7D%0A%0A
+EsendexPlugin.init = function () %7B%0A try %7B%0A var esendex = esendex(%7B%0A username: manifest.es... |
9f54b3dad18fcc957fcc872a315cd1735e5073c9 | Remove old code | colorInverter.js | colorInverter.js | function invertHex(hexnum){
if(hexnum.length != 6) {
alert("Hex color must be six hex numbers in length.");
return false;
}
hexnum = hexnum.toUpperCase();
var splitnum = hexnum.split("");
var resultnum = "";
var simplenum = "FEDCBA9876".split("");
var complexnum = new Array();
complexnum.A = ... | JavaScript | 0.968948 | @@ -1,874 +1,4 @@
-function invertHex(hexnum)%7B%0A if(hexnum.length != 6) %7B%0A alert(%22Hex color must be six hex numbers in length.%22);%0A return false;%0A %7D%0A %0A hexnum = hexnum.toUpperCase();%0A var splitnum = hexnum.split(%22%22);%0A var resultnum = %22%22;%0A var simplenum = %22FEDCBA9876%22.s... |
f9d1707f8535be038335de503ae684c293260cb3 | add time to calendar event title | source/views/calendar/event-list.js | source/views/calendar/event-list.js | // @flow
import * as React from 'react'
import {StyleSheet, SectionList} from 'react-native'
import * as c from '../components/colors'
import toPairs from 'lodash/toPairs'
import {trackCalendarEventOpen} from '../../analytics'
import type {TopLevelViewPropsType} from '../types'
import type {EventType, PoweredBy} from ... | JavaScript | 0.000756 | @@ -588,16 +588,57 @@
n-event'
+%0Aimport %7BgetTimes%7D from './calendar-util'
%0A%0Aconst
@@ -1538,16 +1538,19 @@
entOpen(
+%60$%7B
event.ti
@@ -1552,16 +1552,53 @@
nt.title
+%7D ($%7Bevent.startTime.toISOString()%7D)%60
)%0A%09%09this
|
661756b02ac16594a2996da2809643e10fcfc748 | Set error expected by the DAV client for a failed move | apps/files_versions/tests/js/versionmodelSpec.js | apps/files_versions/tests/js/versionmodelSpec.js | /*
* Copyright (c) 2015
*
* This file is licensed under the Affero General Public License version 3
* or later.
*
* See the COPYING-README file.
*
*/
describe('OCA.Versions.VersionModel', function() {
var VersionModel = OCA.Versions.VersionModel;
var model;
var uid = OC.currentUser = 'user';
beforeEach(fun... | JavaScript | 0.000002 | @@ -2378,42 +2378,400 @@
%0A%09%09%09
-fakeServer.requests%5B0%5D.respond(404
+var responseErrorHeaders = %7B%0A%09%09%09%09%22Content-Type%22: %22application/xml%22%0A%09%09%09%7D;%0A%09%09%09var responseErrorBody =%0A%09%09%09%09'%3Cd:error xmlns:d=%22DAV:%22 xmlns:s=%22http://sabredav.org/ns%22%3E' +%0A%09%09%09%09... |
80761ef4cd15a0aa7e2b7e90400c26b0f09f937c | Update webpack.mix.js | webpack.mix.js | webpack.mix.js | const mix = require('laravel-mix');
const glob = require('glob-all');
require('laravel-mix-purgecss');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent ... | JavaScript | 0.000002 | @@ -743,16 +743,67 @@
%0A %7D)%0A
+ .options(%7B%0A processCssUrls: false%0A %7D)%0A
.vers
|
35731afa10ffe42e98c9ac5deb76930d03df0c7d | Add a source name to the temporary files used for generation of PDF/SVG/PNG maps. | tilepin-export.js | tilepin-export.js | /** Map export in various formats (PNG, JPG, SVG, PDF...) */
var Path = require('path')
var FS = require('fs');
var Commons = require('./tilepin-commons');
var P = Commons.P;
var _ = require('underscore');
var mercator = new (require('sphericalmercator'));
var mapnik = require('mapnik');
var TileMillProjectLoader = re... | JavaScript | 0 | @@ -1482,38 +1482,100 @@
-console.log('SIZE: ', size
+var source = params.source %7C%7C '';%0A source = source.replace(/%5B%5C%5C%5C/%5C-&%5D/gim, '_'
);%0A
-%0A
@@ -1611,16 +1611,31 @@
'map-' +
+ source + '-' +
zoom //
@@ -1689,32 +1689,33 @@
'%5D.' + format;%0A
+%0A
var
|
84e581a050941a8f34c0999ba547ae2647b7cf27 | Add ability to set text and focus the input control | SearchBar.js | SearchBar.js | import React, { PropTypes } from 'react';
import {
TextInput,
StyleSheet,
View,
TouchableOpacity,
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import dismissKeyboard from 'react-native/Libraries/Utilities/dismissKeyboard';
const styles = StyleSheet.create({
searchBar: {
f... | JavaScript | 0.000001 | @@ -2400,16 +2400,144 @@
()%0A %7D%0A%0A
+ setText(text, focus) %7B%0A this._textInput.setNativeProps(%7B text: text %7D);%0A if (focus) %7B%0A this._onFocus();%0A %7D%0A %7D%0A%0A
render
|
0634e4d86c6719399e30fa0ea31b5fc1c2546a9f | make xsslint handle import statements | script/xsslint.js | script/xsslint.js | const XSSLint = require("xsslint");
const Linter = require("xsslint/linter");
const globby = require("gglobby");
const fs = require("fs");
const CoffeeScript = require("coffee-script");
const glob = require("glob");
XSSLint.configure({
"xssable.receiver.whitelist": ["formData"],
... | JavaScript | 0 | @@ -243,16 +243,57 @@
%22glob%22);
+%0Aconst babylon = require(%22babylon%22);
%0A%0AXSSLin
@@ -3480,28 +3480,49 @@
let
-pathOrOptions = file
+source = fs.readFileSync(file).toString()
;%0A
@@ -3544,32 +3544,16 @@
rm)
-pathOrOptions = %7B
source
-:
+ =
tra
@@ -3563,42 +3563,136 @@
orm(
-fs.readFileSyn... |
1dbbf518e689b39a89e90f168c9b3b7900625ce9 | 修改webpack配置,解决部分资源无法加载的问题 | config/index.js | config/index.js | // see http://vuejs-templates.github.io/webpack for documentation.
var path = require('path')
module.exports = {
build: {
env: require('./prod.env'),
index: path.resolve(__dirname, '../dist/index.html'),
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
assetsPublicPat... | JavaScript | 0 | @@ -309,32 +309,33 @@
etsPublicPath: '
+.
/',%0A producti
@@ -1066,16 +1066,17 @@
cPath: '
+.
/',%0A
|
a3d442be8b37c222ea70bac76779b202ba760d3b | Update assets/js/modules/analytics/util/account.test.js | assets/js/modules/analytics/util/account.test.js | assets/js/modules/analytics/util/account.test.js | /**
* Account helper tests.
*
* Site Kit by Google, Copyright 2020 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
... | JavaScript | 0 | @@ -1181,45 +1181,52 @@
the
-domain name when siteURL is not empty
+siteURL without the scheme or trailing slash
', (
|
a64347e2b44a70945b73ea4c9d2fc6eb2fd0966a | Use template strings in drop. :hammer: :cat: | commands/drop.js | commands/drop.js | 'use strict';
const l10nFile = __dirname + '/../l10n/commands/drop.yml';
const l10n = require('../src/l10n')(l10nFile);
const CommandUtil = require('../src/command_util').CommandUtil;
const util = require('util');
exports.command = (rooms, items, players, npcs, Commands) => {
return (args, player, isDead) => {
c... | JavaScript | 0.000002 | @@ -780,33 +780,33 @@
urn player.warn(
-'
+%60
You are wearing
@@ -797,36 +797,34 @@
You are wearing
-' +
+$%7B
item.getShortDes
@@ -818,36 +818,33 @@
m.getShortDesc()
- + '
+%7D
right now, and
@@ -850,33 +850,33 @@
cannot drop it.
-'
+%60
);%0A %7D%0A %7D
@@ -1264,25 +1264,25 @@
player.warn(
-'
... |
072df2e70a082352650129918828d17b2808457b | Clean up deploy script | scripts/deploy.js | scripts/deploy.js | /* Deploy the client to play.cardshifter.com
*
* How to use:
* 1. Build the project and make sure that everything is in order.
* 2. Set up environment variables (see below).
* 3. Run `npm run deploy`.
* 4. Profit!
*
* Environment variables used:
* - DEPLOY_FTP_USERNAME: Username used to log in through FTP... | JavaScript | 0.000001 | @@ -1688,12 +1688,16 @@
og(%22
-Body
+Response
:%5Cn%22
@@ -1871,21 +1871,14 @@
-var promise =
+return
new
@@ -2425,29 +2425,8 @@
%7D);
-%0A%0A return promise;
%0A%7D%0A%0A
|
947ef24dfb269c5f594aa950fbaa01ebe7ac633b | fix amd loader | src/model.js | src/model.js | /**
* BaseModel - Library
* automatic getter and setter function base on registered propery
* @version v1.0.0
* @link https://github.com/sidigdoyo/BaseModel
* @license MIT
* @author Sidigdoyo Pribadi <sidigdoyo@gmail.com>
*/
(function( root, factory ) {
"use strict";
if(typeof define === "function" && define.... | JavaScript | 0.000001 | @@ -374,19 +374,19 @@
ine(
-%5B%22b
+ 'B
aseModel
%22%5D,
@@ -385,42 +385,14 @@
odel
-%22%5D, function(baseModel)%7B%0A%09%09%09return
+', %5B%5D,
(ro
@@ -414,16 +414,21 @@
factory(
+root.
baseMode
@@ -430,21 +430,17 @@
eModel))
-;%0A%09%09%7D
+
);%0A%09%7D%0A%09e
@@ -665,16 +665,33 @@
odel) %7B%0A
+%09%22... |
28fd904ed3d6698f57cd6322e3260893d92394a3 | Update eval.js | commands/eval.js | commands/eval.js | const Discord = require('discord.js');
const config = require("./config.json");
exports.run = async (bot, message) => {
var embed = new Discord.RichEmbed()
.setTitle("Restricted")
.setColor("#f45f42")
.addField("You are restricted from this command", "Its for the bot owner only!")
const randomColor = "#0... | JavaScript | 0.000001 | @@ -1217,21 +1217,8 @@
ed),
- %7Bcode:%22xl%22%7D,
fal
|
1f4949ef7d6e9b7cd9a063eb1d2bc1fa04e085fe | fix deploy | scripts/deploy.js | scripts/deploy.js | var ghPages = require('gh-pages');
ghPages.publish(path.join(process.cwd(), '_site'), {
depth: 1,
logger: function (message) {
console.log(message);
}
}, function (err) {
if (err) {
throw err;
}
console.log('Site has been published to http://ant.design');
});
| JavaScript | 0.000002 | @@ -28,16 +28,44 @@
ages');%0A
+var path = require('path');%0A
ghPages.
|
39c75d208583f53e4798f6b5b4a1384c48538728 | remove sunset message | commands/fork.js | commands/fork.js | 'use strict';
let co = require('co');
let Apps = require('../lib/apps');
let Addons = require('../lib/addons');
let Postgres = require('../lib/postgres');
let cli = require('heroku-cli-util');
let stopping;
let fromAppName;
let toAppName;
let deleteAppOnFailure;
function wait(ms) {
retur... | JavaScript | 0.001479 | @@ -2552,157 +2552,8 @@
) %7B%0A
- cli.warn('heroku fork is deprecated and will be sunset 2017-12-01');%0A cli.warn('see https://github.com/heroku/heroku-fork for more information');%0A
fr
|
d7d4326c03ed6075a5fb9a129b8b27fababdfbf2 | Fix redis AUTH | config/redis.js | config/redis.js | 'use strict';
const config = {
connection: {
host: process.env.BLINK_REDIS_HOST || 'localhost',
port: process.env.BLINK_REDIS_PORT || '6379',
options: {
user: process.env.BLINK_REDIS_USER || 'redis',
password: process.env.BLINK_REDIS_PASSWORD || '',
},
},
settings: {
retrySet: pro... | JavaScript | 0.999704 | @@ -150,25 +150,8 @@
9',%0A
- options: %7B%0A
@@ -201,18 +201,16 @@
s',%0A
-
password
@@ -255,15 +255,8 @@
'',%0A
- %7D,%0A
%7D,
|
2bba45b4c6b48697dfffbb1dd9db893452877153 | Add comment to undefined sender | atmessager/lib/vaildMessage.js | atmessager/lib/vaildMessage.js | var logger = require('log4js').getLogger('vaildMessage');
var nconf = require('nconf');
nconf.file('bots', __dirname + '/../config/bots.json')
.file('receviers', __dirname + '/../config/receivers.json')
.file('senders', __dirname + '/../config/senders.json');
function vaildMessage(receiver,message,botname,s... | JavaScript | 0.000001 | @@ -555,16 +555,64 @@
%7D;%0A %7D%0A%0A
+ //If sender not found, return error code 380%0A%0A
if(nco
@@ -963,16 +963,92 @@
1%7D;%0A %7D%0A
+%0A //If there are not any error, return null error%0A%0A return %7Berror:null%7D;%0A%0A
%7D%0A%0Amodul
|
2e200249be292ccc1dcf9d0c9b89abfdca8a51fb | Test error case for middleware | src/middleware/createApiMiddleware.test.js | src/middleware/createApiMiddleware.test.js | import configureStore from 'redux-mock-store';
import createApiMiddleware from './createApiMiddleware';
import * as apiActions from '../modules/api';
import { serialize } from '../serializers';
const apiMiddleware = createApiMiddleware('http://example.com');
const middlewares = [apiMiddleware];
const mockStore = confi... | JavaScript | 0.000001 | @@ -923,42 +923,43 @@
%3E %7B
-fetchMock.get('http://example.com/
+action = apiActions.read(%7B _type: '
arti
@@ -967,76 +967,123 @@
les'
-, %7B
+
%7D) %7D);%0A
+%0A
-beforeEach(() =%3E %7B action = apiActions.read(%7B _type: '
+describe('and the response is OK', () =%3E %7B%0A beforeEach(() =%3E %7B f... |
f4abc4fa65c846ba4ac08ec723dc923a47a3bbe2 | copy newly added files | app/index.js | app/index.js | 'use strict';
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');
var WixappGenerator = module.exports = function WixappGenerator(args, options, config) {
yeoman.generators.Base.apply(this, arguments);
this.on('end', function () {
this.installDependencies({ skipI... | JavaScript | 0 | @@ -648,24 +648,85 @@
p/styles');%0A
+ this.mkdir('app/views');%0A this.mkdir('app/translations');%0A
this.mkdir
@@ -1332,10 +1332,100 @@
x.js');%0A
+ this.copy('app/views/settings.html');%0A this.copy('app/translations/settings_en.json');%0A
%7D;
|
e12276420b541fb1dc2293003590eaded599000f | Update models | src/mongo.js | src/mongo.js |
var mongoose = require('mongoose');
// polyfill of catch
// https://github.com/aheckmann/mpromise/pull/14
require('mongoose/node_modules/mpromise').prototype.catch = function (onReject) {
return this.then(undefined, onReject);
};
mongoose.connect(process.env.MONGO_URI);
/**
* Saves the model and returns a prom... | JavaScript | 0 | @@ -756,51 +756,56 @@
-interupted: Boolean,%0A finished: Boolean,
+status: String, // started, finished, interupted
%0A
@@ -859,24 +859,72 @@
ntId: String
+,%0A privacy: String // friend, public, private
%0A%7D);%0A%0Avar Ac
@@ -1008,26 +1008,116 @@
-facebookId: String
+givenName: String,%0A ... |
6267ce673bf73e98581ac55eaf76297d5eeeb543 | fix to number | src/modules/dex/services/CandlesService.js | src/modules/dex/services/CandlesService.js | /* eslint-disable no-console */
(function () {
'use strict';
const { config } = require('data-service');
const { flatten, pipe, prop, map } = require('ramda');
const POLL_DELAY = 400;
/**
* @param {app.utils} utils
* @param {TimeLine} timeLine
* @param {SymbolInfoService} symbolInfo... | JavaScript | 0.999992 | @@ -1960,22 +1960,22 @@
.high.to
-String
+Number
(),%0A
@@ -2012,22 +2012,22 @@
e.low.to
-String
+Number
(),%0A
@@ -2064,30 +2064,30 @@
dle.close.to
-String
+Number
(),%0A
@@ -2122,22 +2122,22 @@
.open.to
-String
+Number
(),%0A
@@ -2172,38 +2172,38 @@
candle.volume.to
-String
+Number
(),%0... |
9c750f3f6d19c0d9dc015767b1c13812ca17179f | Update EditIdeaDialog style | desktop/reactified/client/src/Idea/EditIdeaDialog.js | desktop/reactified/client/src/Idea/EditIdeaDialog.js | import React, { Component } from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import TextField from 'material-ui/TextField';
class EditIdeaDialog extends Component {
constructor(props) {
super(props);
this.state = { idea: this.props.idea };
}
handleI... | JavaScript | 0 | @@ -174,16 +174,80 @@
ield';%0A%0A
+import %7B yellow800, grey50 %7D from 'material-ui/styles/colors';%0A%0A
class Ed
@@ -924,16 +924,284 @@
%0A %5D;%0A
+ const dialogTitleStyle = %7B%0A backgroundColor: yellow800,%0A color: grey50,%0A %7D;%0A const textFieldStyles = %7B%0A underlineFocusS... |
12533b5e85ea3897327601056d50dba8e95a9829 | create initial git commit after installation finished (#152) | app/index.js | app/index.js | const camelCase = require('lodash.camelcase');
const chalk = require('chalk');
const Generator = require('yeoman-generator');
const hasbin = require('hasbin');
const kebabCase = require('lodash.kebabcase');
module.exports = class extends Generator {
prompting() {
this.log();
return this.prompt([
{
... | JavaScript | 0 | @@ -2975,24 +2975,179 @@
%7D%0A end() %7B%0A
+ this.spawnCommandSync('git', %5B'add', '--all'%5D);%0A this.spawnCommandSync('git', %5B%0A 'commit',%0A '-qam feat(package): initial commit',%0A %5D);%0A
this.log
|
8cd29b6292b40c71d6a3d50702d1b8812ab9056f | add log | src/os/os.js | src/os/os.js | const express = require('express');
const app = express();
const http = require('http').Server(app);
const io = require('socket.io')(http);
const fs = require('fs-extra');
const path = require('path');
const Agenda = require('agenda');
const util = require('util');
const os = require('os');
const dotenv = require('dote... | JavaScript | 0.000002 | @@ -1703,24 +1703,91 @@
ask.time) %7B%0A
+ logger.info('agenda.schedule', task.timme, 'ai-do', task);%0A
agen
|
465aef4beb7d1e11abc229d0e44ceecb26f6f985 | Remove unused import | app/index.js | app/index.js | import 'styles/style.scss';
import Api from './api';
import Points from './points';
import GeologicIntervals from 'json!json/geologic_intervals';
import topojsons from './geojson';
import worlds from './geojson';
import map from 'file!json/map';
import d3 from 'd3';
import controls from './controls';
import _ from 'lod... | JavaScript | 0.000001 | @@ -143,43 +143,8 @@
s';%0A
-import topojsons from './geojson';%0A
impo
|
cddfa946921083ebe873d7db01d175ea1970b508 | fix inclusion of optional files | app/index.js | app/index.js | 'use strict';
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');
var chalk = require('chalk');
var yosay = require('yosay');
var prompts = require('./prompts');
var GulpAngularGenerator = yeoman.generators.Base.extend({
init: function () {
this.pkg = require('../p... | JavaScript | 0.000006 | @@ -3920,24 +3920,30 @@
isArray(
+files%5B
optional
%5Btype%5D))
@@ -3930,24 +3930,25 @@
les%5Boptional
+%5D
%5Btype%5D)) %7B%0A
@@ -3955,16 +3955,28 @@
+ selection =
selecti
@@ -3985,24 +3985,30 @@
.concat(
+files%5B
optional
%5Btype%5D);
@@ -3999,16 +3999,17 @@
optional
+%5D
%5Btype%5D);
|
8f54068ed7f0ae1838da720af285e56281cfce1c | Make gitConfig parameter distinct from 'props' used in other methods. | app/index.js | app/index.js | 'use strict';
var path = require('path');
var sh = require('shelljs');
var yeoman = require('yeoman-generator');
var yosay = require('yosay');
// var chalk = require('chalk');
var YuiGenerator = yeoman.generators.Base.extend({
init: function () {
this.pkg = require('../package.json');
this.on('en... | JavaScript | 0 | @@ -965,20 +965,21 @@
nction (
-prop
+query
) %7B%0A
@@ -1014,20 +1014,21 @@
+ ':' +
-prop
+query
,%0A
@@ -1211,20 +1211,21 @@
get ' +
-prop
+query
, %7B sile
|
475451b9dd32a5b07188fcbb4ae96459c9c93f01 | Update for error codes | app/index.js | app/index.js | /*
* Amazon SQS to MongoDB
* Copyright (c) 2014 Fatih Cetinkaya (http://github.com/cmfatih/asqs-mdb) - All rights reserved.
* For the full copyright and license information, please view the LICENSE.txt file.
*/
// Init reqs
/* jslint node: true */
'use strict';
var mUtilex = require('utilex'),
mAWS =... | JavaScript | 0 | @@ -2745,22 +2745,24 @@
ode%22: %22a
-ws
sqs-
+mdb-
001%22,%0A
@@ -3171,22 +3171,24 @@
ode%22: %22a
-ws
sqs-
+mdb-
002%22,%0A
@@ -3653,22 +3653,24 @@
ode%22: %22a
-ws
sqs-
+mdb-
003%22,%0A
@@ -3955,22 +3955,24 @@
ode%22: %22a
-ws
sqs-
+mdb-
004%22,%0A
@@ -4272,22 +4272,24 @@
ode%22: %22a
-ws
sqs-
... |
ff5422a4171edd094dcfc6624663129fb37934de | Use createCipheriv instead of deprecated createCipher. | packages/@uppy/companion/src/server/helpers/utils.js | packages/@uppy/companion/src/server/helpers/utils.js | const request = require('request')
const crypto = require('crypto')
/**
*
* @param {string} value
* @param {string[]} criteria
* @returns {boolean}
*/
exports.hasMatch = (value, criteria) => {
return criteria.some((i) => {
return value === i || (new RegExp(i)).test(value)
})
}
/**
*
* @param {object} d... | JavaScript | 0 | @@ -2035,54 +2035,655 @@
*%0A *
-%0A * @param %7B*%7D input%0A * @param %7Bstring%7D secret
+ Ensure that a user-provided %60secret%60 is 32 bytes long (the length required%0A * for an AES256 key) by hashing it with SHA256.%0A *%0A * @param %7Bstring%7CBuffer%7D secret%0A */%0Afunction createSecret (secret) %7B%0A co... |
701f19a1e977ded504c985682ef99a823e5566b1 | Fix record bug | app/tuner.js | app/tuner.js | const Tuner = function() {
this.middleA = 440
this.semitone = 69
this.bufferSize = 4096
this.noteStrings = [
'C',
'C♯',
'D',
'D♯',
'E',
'F',
'F♯',
'G',
'G♯',
'A',
'A♯',
'B'
]
this.initGetUserMedia()
}
Tuner.prototype.initGetUserMedia = function() {
window.... | JavaScript | 0.000001 | @@ -1614,425 +1614,35 @@
ype.
-init = function() %7B%0A this.audioContext = new window.AudioContext()%0A this.analyser = this.audioContext.createAnalyser()%0A this.scriptProcessor = this.audioContext.createScriptProcessor(%0A this.bufferSize,%0A 1,%0A 1%0A )%0A%0A const self = this%0A%0A Aubio().then(fu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.