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 |
|---|---|---|---|---|---|---|---|
2d706d73eecf1b403d1ebe8199fb307e670fa510 | check if directory exists before trying to delete it | src/tasks/clean.js | src/tasks/clean.js | import { checkRequiredParams } from '../helpers';
import { Task } from './task';
import del from 'del';
class CleanTask {
constructor(opts = {}) {
this.name = 'clean';
Task.checkRequiredParams(this.name, opts, ['paths']);
if ( !Array.isArray(opts.paths) ) {
opts.paths = [ opt... | JavaScript | 0 | @@ -75,16 +75,37 @@
task';%0A%0A
+import fs from 'fs';%0A
import d
@@ -425,33 +425,117 @@
-return del(opts.paths, cb
+if ( fs.existsSync(opts.paths) ) %7B%0A return del(opts.paths, cb);%0A %7D%0A%0A cb(
);%0A
|
bf7b2ceeddd9e9e52b62503db4a574abd00c182b | fix tokenizer_test | lib/ace/tokenizer_test.js | lib/ace/tokenizer_test.js | /* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of sou... | JavaScript | 0.000003 | @@ -2087,22 +2087,24 @@
ource, %22
+%5E
(a)(b)
+$
%22);%0A
@@ -2190,18 +2190,20 @@
ource, %22
+%5E
xc
+$
%22);%0A
@@ -2295,12 +2295,14 @@
e, %22
+%5E
(xc)
+$
%22);%0A
@@ -2393,32 +2393,33 @@
ual(re.source, %22
+%5E
(?=r)%5B(?=)%5D%22);%0A
@@ -2413,16 +2413,17 @@
r)%5B(?=)%5D
+$
%22);%0A
@@ -25... |
50f348d399395f5e28bbe0aef16e8325c28728c7 | Throw a ReferenceError on animations.select(unregisterName) | lib/animations-manager.js | lib/animations-manager.js | 'use strict'
module.exports = function (animations) {
let index = 0
let running = false
const api = {
set index (i) {
console.log(animations[i].name)
index = i
},
next: () => { api.index = ++index % animations.length },
previous: () => { api.index = index > 0 ? index - 1 : animation... | JavaScript | 0 | @@ -513,13 +513,19 @@
-b
re
-ak
+turn true
%0A
@@ -534,24 +534,87 @@
%7D%0A %7D
+%0A%0A throw ReferenceError(%60Cannot find animation '$%7Bname%7D'%60)
%0A %7D,%0A%0A
|
d3e09f62aa0b1d5acedf16a66d6d15fdd4c48f1a | Add `useYarn` flag if necessary | blueprints/addon/files/addon-config/ember-try.js | blueprints/addon/files/addon-config/ember-try.js | /* eslint-env node */
module.exports = {
scenarios: [
{
name: 'ember-lts-2.8',
bower: {
dependencies: {
'ember': 'components/ember#lts-2-8'
},
resolutions: {
'ember': 'lts-2-8'
}
},
npm: {
devDependencies: {
'ember-sourc... | JavaScript | 0 | @@ -36,16 +36,57 @@
s = %7B%0A
+%3C%25 if (yarn) %7B %25%3EuseYarn: true,%0A %3C%25 %7D %25%3E
scenario
|
65828b12028cd0382c4d49b7f28cfa731881cc5f | update compute-of tests for jest@24 | modules/gob-examine-student/source/__tests__/compute-of.test.js | modules/gob-examine-student/source/__tests__/compute-of.test.js | import {computeOf} from '../compute-chunk'
describe('computeOf', () => {
it('computes a list of boolean-equivalent expressions against a desired count', () => {
const expr = {
$type: 'of',
$count: {$operator: '$gte', $num: 2},
$of: [
{
$type: 'course',
$course: {department: ['CSCI'], number: ... | JavaScript | 0 | @@ -1633,24 +1633,25 @@
%0A%09%09%7D)%0A%09%7D)%0A%0A%09
+x
it('stores t
@@ -1700,20 +1700,31 @@
ression'
+, () =%3E %7B%7D
)%0A%0A%09
+x
it('hand
@@ -1748,35 +1748,46 @@
ean expressions'
+, () =%3E %7B%7D
)%0A%09
+x
it('handles coun
@@ -1802,35 +1802,46 @@
rse expressions'
+, () =%3E %7B%7D
)%0A%09
+x
it('h... |
de57eb079969ce99d8d08d5116d383f7c8090a53 | fix directive template path bug | multiselect.js | multiselect.js | 'use strict';
/**
* @ngdoc directive
* @name multiselectApp.directive:multiSelect
* @description
* # Angular Multi Select directive
*/
angular.module('shalotelli-angular-multiselect', [])
.directive('multiSelect', function () {
return {
templateUrl: 'views/directives/multi-select.html',
restrict... | JavaScript | 0 | @@ -261,17 +261,204 @@
ateUrl:
-'
+function (element, attrs) %7B%0A if (attrs.templatePath !== undefined) %7B%0A return attrs.templatePath;%0A %7D%0A%0A return 'bower_components/shalotelli-angular-multiselect/
views/di
@@ -484,17 +484,33 @@
ct.html'
-,
+;%0A %7D,%0A
%0A ... |
6b32b88ca6b48ca152c9e9ba68ca24d2f550abd4 | Save theme change to localstorage | src/theme/index.js | src/theme/index.js | import React, { Component } from 'react';
import { View } from 'react-native';
import defaultTheme from './default';
import blackTheme from './black';
const _themes = Symbol('themes');
const _current = Symbol('current');
class Theme {
constructor() {
this[_themes] = {};
this[_themes]['default'] = defaultThe... | JavaScript | 0 | @@ -48,16 +48,30 @@
t %7B View
+, AsyncStorage
%7D from
@@ -929,16 +929,334 @@
(this);%0A
+ this.load = this.load.bind(this);%0A %0A this.load();%0A %7D%0A%0A async load() %7B%0A try %7B%0A const value = await AsyncStorage.getItem('@Reader_X:theme');%0A if (value !== null)%7B%0A this... |
a82f456dcfd89d84e6b393660b900571974637ab | Add NullPiece#promote, NullPiece#unpromote | frontend/src/shogi/pieces/nullPiece.js | frontend/src/shogi/pieces/nullPiece.js | import Piece from '../piece';
import * as CONST from '../constants/pieceTypes';
export default class NullPiece extends Piece {
constructor({ type, x, y, movable = false, isPlaced = false }) {
super({ type, x, y, movable, isPlaced });
this.type = CONST.USI_NULL_TYPE;
return this;
}
}
| JavaScript | 0 | @@ -293,10 +293,85 @@
is;%0A %7D%0A
+%0A promote() %7B%0A return this;%0A %7D%0A%0A unpromote() %7B%0A return this;%0A %7D%0A%0A
%7D%0A
|
8122bb2785191be88327a5f871413a76d0aeb2a8 | remove obsolete function | client/components/puzzleBuilder/wordEntryPage.js | client/components/puzzleBuilder/wordEntryPage.js | import React, { Component, PropTypes } from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as gridActions from '../../actions/gridActions';
import * as wordActions from '../../actions/wordActions';
import Grid from '../grid'
import Word from '../word'
import BuilderNav ... | JavaScript | 0.999374 | @@ -674,62 +674,8 @@
s);%0A
- this.goToNextStep = this.goToNextStep.bind(this);%0A
%7D%0A
@@ -1240,85 +1240,8 @@
%7D%0A%0A
- goToNextStep() %7B%0A // save clues here%0A this.props.goToNextStep()%0A %7D%0A%0A
co
|
7b6a598df695e55f956172016ff02326688fa214 | handle negative numbers in duration | static/js/utils/duration.js | static/js/utils/duration.js | define(['app'], function(app) {
function round(value) {
return parseInt(value * 100, 10) / 100;
}
return function duration(value) {
var result;
if (value > 7200000) {
result = Math.round(value / 3600000) + ' hr';
} else if (value > 120000) {
result = Math.round(value / 60000) + ' min... | JavaScript | 0.0091 | @@ -153,16 +153,96 @@
esult;%0A%0A
+ neg = value %3C 0 ? true : false;%0A if (neg) %7B%0A value = -value;%0A %7D%0A%0A
if (
@@ -612,24 +612,75 @@
ms';%0A %7D%0A%0A
+ if (neg) %7B%0A result = '-' + result;%0A %7D%0A%0A
return r
|
646b8dc86db27a8f79dbac89b824d846a15c1917 | remove unneccessary license header. This closes #125 | nifi-registry-web-ui/src/main/webapp/systemjs-angular-loader.js | nifi-registry-web-ui/src/main/webapp/systemjs-angular-loader.js | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | JavaScript | 0 | @@ -1,807 +1,4 @@
-/*%0A * Licensed to the Apache Software Foundation (ASF) under one or more%0A * contributor license agreements. See the NOTICE file distributed with%0A * this work for additional information regarding copyright ownership.%0A * The ASF licenses this file to You under the Apache License, Version 2.0%0... |
08013075867527e6cb63d652a7f84baf246f2123 | Fix edit workshops | client/templates/admin/workshops/editWorkshop.js | client/templates/admin/workshops/editWorkshop.js | Template.editWorkshop.onRendered(function() {
$('#workshopDateStart').datetimepicker({
format: 'yyyy-mm-dd hh:ii',
weekStart: 1,
autoclose: true,
language: 'fr',
minuteStep: 15
});
$('#workshopEndDate').datetimepicker({
format: 'yyyy-mm-dd hh:ii',
weekStart: 1,
autoclose: true,
language: 'fr',
mi... | JavaScript | 0 | @@ -542,45 +542,9 @@
;%0A%09%7D
-%0A%7D);%0A%0ATemplate.editWorkshop.helpers(%7B
+,
%0A%09un
|
bba1331acb9d6217bb515915e59abb6862c6bf47 | Trim email address before submitting to API. | src/site_source/_assets/js/pages/signup.js | src/site_source/_assets/js/pages/signup.js | (function (window, document, $) {
var app = window.devsite;
app.pages.signup = function () {
var $btn = $('.notify-btn');
$btn.on('click', function() {
$btn.addClass('disabled');
$.post('/api/developer-plus/coming-soon', {
email: $('input[name="email"]').val()
}, function(data, s... | JavaScript | 0 | @@ -287,16 +287,23 @@
').val()
+.trim()
%0A %7D
|
06022a6c24262a266de15aa9f22a56d620034bcf | Fix wrong selector | url/Slug.js | url/Slug.js |
export default class Slug
{
/**
* Constructs a new instance
*
* @param {Array.<Array.<*>>} transforms
* @param {?RegExp} sanitize
*/
constructor (transforms = [], sanitize = null)
{
/**
* @private
* @type {Array.<Array.<RegExp, string>>}
*/
... | JavaScript | 0.000852 | @@ -1043,16 +1043,21 @@
typeof
+from.
flags ==
@@ -1085,16 +1085,21 @@
?
+from.
flags%0A
|
54f42a2cded9e3bac812e741b6c850a5e58d9a03 | Use toContain matcher instead of indexOf check | __tests__/getOptions.test.js | __tests__/getOptions.test.js | const fs = require('fs');
const path = require('path');
const getOptions = require('../utils/getOptions.js');
jest.mock('fs', () => {
return Object.assign(
{},
require.requireActual('fs'),
{
existsSync: jest.fn().mockReturnValue(true)
}
)
});
// Mock return of require('/package.json')
// Vi... | JavaScript | 0 | @@ -1132,104 +1132,77 @@
tput
-.indexOf(rootDir) !== 0).toBe(true);%0A expect(newOutput.indexOf('%3CrootDir%3E') === -1).toBe(true
+).toContain(rootDir);%0A expect(newOutput).not.toContain('%3CrootDir%3E'
);%0A
|
5494bd9d31ec3a98fe7ac3878159d39f4a54667e | Update dropdown-list.js | components/blocks/dropdown-list/dropdown-list.js | components/blocks/dropdown-list/dropdown-list.js | 'use-strict'
const dropdownItem = document.querySelectorAll('.dropdown-list__item--parent > .dropdown-list__link'),
dropdownInnerItem = document.querySelectorAll('.dropdown-list__inner-item--parent > .dropdown-list__inner-link'),
alliTemLabel = 'All products';
function setListHeight(item) {
retur... | JavaScript | 0.000002 | @@ -256,16 +256,18 @@
abel
+
= 'All p
@@ -1926,16 +1926,27 @@
Link = %60
+%0A
%3Ca href=
@@ -2002,16 +2002,20 @@
+
$%7BalliTe
@@ -2034,12 +2034,23 @@
+
%3C/a%3E
+%0A
%60,%0A
@@ -2334,39 +2334,32 @@
entListener(
-%0A
'click',
%0A (e) =
@@ -2338,38 +2338... |
08856fe42ea3ee9d25a6a24a6247217622406e7d | Move `logIndex` updates into `printLog()` | src/tests/frontend/travis/remote_runner.js | src/tests/frontend/travis/remote_runner.js | 'use strict';
// As of v14, Node.js does not exit when there is an unhandled Promise rejection. Convert an
// unhandled rejection into an uncaught exception, which does cause Node.js to exit.
process.on('unhandledRejection', (err) => { throw err; });
const async = require('async');
const wd = require('wd');
const co... | JavaScript | 0 | @@ -2135,24 +2135,16 @@
rintLog(
-logIndex
);%0A%0A
@@ -3706,63 +3706,9 @@
Log(
-logIndex);%0A logIndex = knownConsoleText.length
+)
;%0A
@@ -3883,75 +3883,8 @@
em.%0A
- *%0A * @param %7Bnumber%7D index offset from where to start%0A
@@ -3911,21 +3911,16 @@
tLog = (
-index
) =%3E ... |
c863dd32752b674efb7d9c45a5d1da79ae96221b | Fix req stream race condition due to middleware | lib/cb.middleware/main.js | lib/cb.middleware/main.js | // Requires
var _ = require('underscore');
var express = require('express');
function setup(options, imports, register) {
// Import
var app = imports.server.app;
var workspace = imports.workspace;
// Apply middlewares
app.use(express.cookieParser());
app.use(express.cookieSession({
k... | JavaScript | 0.000001 | @@ -474,32 +474,86 @@
q, res, next) %7B%0A
+ // Pause request stream%0A req.pause();%0A%0A
var uid
@@ -1070,32 +1070,135 @@
q, res, next) %7B%0A
+ // Resume request now%0A // So our handlers can use it as a stream%0A req.resume();%0A%0A
if(_.con
|
7210030532a88b4ba794d1623cbd42c550ff9aaf | Fix for Meteor 1.3 / 1.4 (#184) | lib/client/fast_render.js | lib/client/fast_render.js | FastRender = {};
FastRender.enabled = typeof __fast_render_config != 'undefined';
FastRender._dataReceived = false;
FastRender._revertedBackToOriginal = false;
FastRender._blockDDP = Meteor._localStorage.getItem('__frblockddp') != undefined;
if(FastRender._blockDDP) {
console.log("FastRender is blocking DDP messages.... | JavaScript | 0 | @@ -931,240 +931,182 @@
e);%0A
- if (conn._bufferedWrites) %7B%0A // New with meteor/meteor#5680%0A // If the livedata connection supports buffered writes,%0A // we don't need check if we're in delay before injecting.%0A conn._livedata_data(message);%0A %7D else %7B
+%0A// Removed check for conn._buffere... |
957398fe6c6fc602186a3f2dfe0caf4396faa290 | remove single and multi line comments for js & css | lib/core/helpers/parse.js | lib/core/helpers/parse.js | var unique = require('lodash').uniq
, path = require('path')
, fs = require('fs')
, inlineSource = require('inline-source')
, RE_REQUIRE = /require\(['|"](.*?)['|"]\)/g
, RE_IMPORT = /@import\s['|"](.*?)['|"];?/g
// HTML templates include/extend
, RE_INCLUDE = /(?:{>|include|{% extends|{% include)\s?['|"]?(.*?)... | JavaScript | 0 | @@ -332,25 +332,50 @@
%5D/g%0A
+%09// Line starting with '//'%0A
%09, RE_
-JS_
COMMENT_
LINE
@@ -366,29 +366,35 @@
RE_COMMENT_
+SINGLE_
LINE
-S
= /%5E%5Cs*(?:%5C
@@ -410,26 +410,56 @@
/gm%0A
+%09// Multi line block '/** ... */'%0A
%09, RE_
-CSS_
COMMENT_
LINE
@@ -450,24 +450,30 @@
RE_COMMENT_
+MULTI_
LI... |
92ad11314b02f73995c6cdb3fe9f5126403ee971 | add markdown link | content/pages/home/_snippets/compatible/index.js | content/pages/home/_snippets/compatible/index.js | var marked = require("marked");
mojo.application.paperclip.modifier("markdown", function (v) {
return marked(v || "");
});
var MarkedView = mojo.views.Base.extend({
paper: require("./template.pc")
});
module.exports = function (element) {
var view = new MarkedView({
content: "Hello *world*, I'm **M... | JavaScript | 0 | @@ -316,16 +316,17 @@
m **
+%5B
Markdown
**!%22
@@ -321,16 +321,69 @@
Markdown
+%5D(http://daringfireball.net/projects/markdown/syntax)
**!%22%0A
|
278c9b3d238a156ca78267bf72981b7a2fb4568e | concatenate relative paths only | validate.js | validate.js | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
'use strict';
var glob = require('glob'),
path = require('path'),
async = require('async'),
SpecValidator = require('./lib/specValidator'),
RefParser = require('... | JavaScript | 0.000009 | @@ -3977,16 +3977,134 @@
alPath =
+ '';%0A if (doc.startsWith('http')) %7B%0A individualPath = doc;%0A %7D else %7B%0A individualPath =
basePat
@@ -4108,24 +4108,34 @@
Path + doc;%0A
+ %7D%0A
retu
|
1a09b9a1c05d1382273cba9f00c05c07139f8b8b | Update ref detail with websocket data if possible | client/src/js/references/reducer.js | client/src/js/references/reducer.js | import { concat } from "lodash-es";
import {
ADD_REFERENCE_GROUP,
ADD_REFERENCE_USER,
CHECK_REMOTE_UPDATES,
EDIT_REFERENCE,
EDIT_REFERENCE_GROUP,
EDIT_REFERENCE_USER,
FIND_REFERENCES,
GET_REFERENCE,
REMOVE_REFERENCE_GROUP,
REMOVE_REFERENCE_USER,
UPDATE_REMOTE_REFERENCE,
U... | JavaScript | 0 | @@ -1006,30 +1006,39 @@
-return
+const updated =
update(stat
@@ -1048,32 +1048,228 @@
action, %22name%22);
+%0A%0A if (state.detail && state.detail.id === action.data.id) %7B%0A return %7B ...state, detail: %7B ...state.detail, ...action.data %7D %7D;%0A %7D%0A%0A ... |
cc02313e39864214d90e31064709dbc262100e19 | remove famous-stylesheets dependency | lib/famous-application.js | lib/famous-application.js | 'use strict';
require('famous-stylesheets');
var Core = Famous.Core;
var Components = Famous.Components;
var DOMRenderables = Famous.DOMRenderables;
var Renderers = Famous.Renderers;
var Engine = Famous.Engine;
var FamousThread = Core.Famous;
var Context = Core.Context;
var Node = Core.Node;
var Compositor = Rendere... | JavaScript | 0.000008 | @@ -12,40 +12,8 @@
';%0A%0A
-require('famous-stylesheets');%0A%0A
var
|
4130aa3d232673ab3fa84cb02d524447198323bc | update browserslist rule | lib/get-webpack-config.js | lib/get-webpack-config.js | /**
* 输出webpack配置
* @param options
* @returns {*}
*/
"use strict";
const fs = require('fs');
const path = require('path');
const glob = require('glob');
const webpack = require('webpack');
const chalk = require('chalk');
const merge = require('merge');
function fileExists(path) {
return fs.existsSync(path);
... | JavaScript | 0 | @@ -2011,32 +2011,292 @@
break;%0A %7D%0A%0A
+ if (!webpackConfig.browserslist) %7B%0A webpackConfig.browserslist = %5B%0A 'Chrome %3E= 45', 'last 2 Firefox versions',%0A 'ie %3E= 8', 'Edge %3E= 12',%0A 'iOS %3E= 8', 'Android %3E= 4', 'last 2 ChromeAndroid versions'%0A ... |
1dc0f0e25ff8bf6b8d3f6f32d46a984abf6bade2 | fix gz image-heading-block | packages/cms-gz/blocks/index.es6 | packages/cms-gz/blocks/index.es6 | import { fade } from 'olymp-fela';
import * as Blocks from 'olymp-pages/blocks';
import * as PanelBlocks from './panel';
import * as OrgBlocks from './org';
import * as ArticleBlocks from './article';
import GZKMapsBlock from './maps';
import GZKMagazinBlock from './magazin';
import GZKNewsBlock from './news';
import G... | JavaScript | 0.000003 | @@ -1126,24 +1126,44 @@
v %3E div': %7B%0A
+ marginY: 0,%0A
widt
|
94d6bc70ca2d056aa7e25b83be587a7d4ccfb595 | fix empty string bug | api/controllers/NewsController.js | api/controllers/NewsController.js | /**
* NNewsController
*
* @description :: Server-side logic for managing nnews
* @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers
*/
var request = require('request');
var counter = 0;
var slack_config = sails.config.slack;
module.exports = {
newsRequest: function(req, res) {
if ... | JavaScript | 0.000258 | @@ -835,16 +835,34 @@
eSource)
+ %7C%7C !req.body.text
)%7B%0A%09%09%09%09a
@@ -891,18 +891,16 @@
'%0A%09%09%09%7D%0A%0A
-%0A%0A
%09%09%09// fi
|
f9985b837e2288cbd4b3a8e61beaff6774a747cc | sort #12 | framework/tools/Object.js | framework/tools/Object.js | /**
The MIT License (MIT)
Copyright (c) 2014 MyChannel-Apps.de
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, mod... | JavaScript | 0.999999 | @@ -2738,24 +2738,56 @@
in keys) %7B%0A
+%09%09%09%09if(keys%5Bk%5D != undefined) %7B%0A%09
%09%09%09%09newObj%5Bk
@@ -2819,24 +2819,35 @@
%5Bk%5D.index%5D;%0A
+%09%09%09%09%7D%0A%09%09%09%09%0A
%09%09%09%09delete t
|
59d35d55d290b7682fb7f720f36fdde55ad00eb8 | Disable verb formatting. | verbfile.js | verbfile.js | /**
* Based on: https://github.com/verbose/verb-default/blob/master/index.js.
*/
'use strict';
var verb = require('verb');
var gutil = require('gulp-util');
verb.task('default', function() {
verb.src(['.verb*.md', 'docs/_verb/**/*.md'])
.on('error', gutil.log)
.pipe(verb.dest('./'));
});
// var helperBo... | JavaScript | 0 | @@ -154,16 +154,53 @@
til');%0A%0A
+verb.disable('dest:format plugin');%0A%0A
verb.tas
|
aa29f3c94e9621565a9c6c44a1b1d2251cda2f76 | Rename isGuest to isAnonymous. | accounts-anonymous-server.js | accounts-anonymous-server.js | Accounts.registerLoginHandler("anonymous", function (options) {
if (! options || ! options.anonymous || Meteor.userId())
return undefined;
var newUserId = Accounts.insertUserDoc(options, {});
return {
userId: newUserId
};
});
AccountsAnonymous._onAbandonedHook = new Hook({
bindEnviro... | JavaScript | 0.000006 | @@ -604,21 +604,25 @@
if (is
-Guest
+Anonymous
(attempt
@@ -789,30 +789,28 @@
);%0A%0A
-var isGuest = function
+function isAnonymous
(use
@@ -834,14 +834,16 @@
is a
- guest
+nonymous
if
@@ -972,11 +972,10 @@
esume);%0A
+
%7D
-;
%0A
|
72b62b600f75f4e143289aacb84e493be0be16ba | Remove unused CSS class as dropdownCssClass | backend/app/assets/javascripts/spree/backend/checkouts/edit.js | backend/app/assets/javascripts/spree/backend/checkouts/edit.js | //= require_self
$(document).ready(function() {
var customerTemplate = HandlebarsTemplates['orders/customer_details/autocomplete'];
var formatCustomerResult = function(customer) {
return customerTemplate({
customer: customer,
bill_address: customer.bill_address,
ship_address: customer.ship_ad... | JavaScript | 0.000001 | @@ -1044,51 +1044,8 @@
%7D,%0A
- dropdownCssClass: 'customer_search',%0A
|
1aa8ba80a6419ae303e756e70555bb13f57f7ecd | Fix status bar tile not re-displayed on rebuild | lib/autocomplete-paths.js | lib/autocomplete-paths.js | 'use babel'
/* global atom */
import Config from './config'
import PathsProvider from './paths-provider'
import { CompositeDisposable } from 'atom'
export default {
config: Config,
subscriptions: null,
activate: function () {
this.subscriptions = new CompositeDisposable()
this.subscriptions.add(atom.co... | JavaScript | 0 | @@ -1742,16 +1742,47 @@
stroy()%0A
+ this._statusBarTile = null%0A
%7D,%0A%0A
|
0521a36cd345a957c2f22b1abbbc2c1cb9079217 | fix plurals | app/assets/javascripts/results.js | app/assets/javascripts/results.js | function generateShiftPlan(totalWidth, cmPerTrip, loadTime, travelTime, unloadTime) {
var shiftPlan = [],
numTrips = totalWidth / cmPerTrip,
fullTrips = Math.floor(numTrips),
lastTripFullness = numTrips - fullTrips;
for (var i = 0; i < fullTrips; i++) {
shiftPlan.push(
... | JavaScript | 0.999621 | @@ -1108,17 +1108,68 @@
+ ' hour
-s
+';%0A if (hours %3E 1) output += 's';%0A output += '
';%0A
@@ -1213,16 +1213,51 @@
' minute
+';%0A if (minutes %3E 1) output += '
s';%0A
@@ -1793,16 +1793,87 @@
th / 4)
+%3E 1 ? (shiftPlan.length / 4) + ' round trips' : (shiftPlan.length / 4)
+ ' roun
@@ -1... |
b3af87d2f5f051e17dccd68a6cb296e2af58aaf8 | Update reviews.js | app/assets/javascripts/reviews.js | app/assets/javascripts/reviews.js | //reviews/index.html.erb for 'Load Reviews' link on Show Page
$(function() {
$("a.load_reviews").on("click", function(e) {
e.preventDefault();
//Send AJAX HIGH-LEVEL get request
$.get(this.href).success(function(json) {
var $ol = $("div.reviews ol")
$ol.html(" ")
json.forEach(function(review) {
... | JavaScript | 0.000001 | @@ -1928,32 +1928,55 @@
rantName%22).text(
+%22Review Saved For: %22 +
review%5B%22restaura
@@ -2012,32 +2012,47 @@
viewBody%22).text(
+%22Comments: %22 +
review%5B%22content%22
@@ -2081,32 +2081,47 @@
Cuisines%22).text(
+%22Cuisines: %22 +
review%5B%22cuisines
@@ -2119,17 +2119,24 @@
%22cuisine
-s
+%22%5D%5B... |
a9c3e32673ac4634f3c1867d96a5e037dcd6b2ff | Rename polyline, it was too technical | addon/utils/drawing-modes.js | addon/utils/drawing-modes.js | export default {
pan: {
id: 'pan',
name: 'Pan',
title: 'Pan Tool'
},
text: {
id: 'text',
name: 'Text',
title: 'Text Label Tool',
options: {
text: 'Text here'
}
},
marker: {
id: 'marker',
dataId: 'Point',
name: 'Marker',
title: 'Marker Tool'
},
polyline... | JavaScript | 0.000002 | @@ -374,20 +374,16 @@
name: '
-Poly
Line',%0A
|
8377b701c4ece415de6d6284ddcf5b8b57d91e55 | Add 'forever' as an option to RequestClient request method. (#315) | lib/base/RequestClient.js | lib/base/RequestClient.js | 'use strict';
var _ = require('lodash');
var http = require('request');
var Q = require('q');
var Response = require('../http/response');
var Request = require('../http/request');
var RequestClient = function() {};
/**
* Make http request
* @param {object} opts - The options argument
* @param {string} opts.method... | JavaScript | 0 | @@ -820,16 +820,90 @@
directs%0A
+ * @param %7Bboolean%7D %5Bopts.forever%5D - Set to true to use the forever-agent%0A
*/%0ARequ
@@ -1539,16 +1539,49 @@
forever:
+ opts.forever === false ? false :
true,%0A
|
85c098164b9098648e63d6631aebefd5aa1a7deb | Update samples/msal-node-extensions/index.js | samples/msal-node-extensions/index.js | samples/msal-node-extensions/index.js | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
const express = require("express");
const msal = require('@azure/msal-node');
const extensions = require("@azure/msal-node-extensions");
const { promises: fs } = require("fs");
const process = require("process");
con... | JavaScript | 0 | @@ -2922,16 +2922,17 @@
Machine)
+;
%0A %7D%0A%0A
|
10859cb609ec964b8c8cd5ffb3dd5c91c8b7d995 | fix hook names for top-level *Each hooks | lib/build-test-actions.js | lib/build-test-actions.js | var _ = require('lodash')
module.exports = function (testModules, helper) {
var stats = {suiteCount: 0, fileCounts: {}}
return [
actionForHook(helper.beforeAll, 'global beforeAll', null, helper.file),
_.map(testModules, function (exampleGroup) {
return actionsForExampleGroup(exampleGroup, [], helper,... | JavaScript | 0 | @@ -1459,24 +1459,25 @@
beforeEach,
+(
ancestor.nam
@@ -1473,24 +1473,37 @@
ncestor.name
+ %7C%7C 'module')
+ ' beforeE
@@ -1761,16 +1761,17 @@
erEach,
+(
ancestor
@@ -1775,16 +1775,29 @@
tor.name
+ %7C%7C 'module')
+ ' aft
|
1828c5634e4027a14b0d2172841f4664e467b193 | Fix minor problem in FABContainer variable name | desktop/reactified/client/src/FAB/FABContainer.js | desktop/reactified/client/src/FAB/FABContainer.js | import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as actionCreators from './actionCreators';
import FAB from './FAB';
const mapDispatchToProps = dispatch => bindActionCreators(actionCreators, dispatch);
const DashboardContainer = connect(null, mapDispatchToProps)(FAB);
exp... | JavaScript | 0.000053 | @@ -248,25 +248,19 @@
%0A%0Aconst
-Dashboard
+FAB
Containe
@@ -323,17 +323,11 @@
ult
-Dashboard
+FAB
Cont
|
3b19b9370082870437389b27f5a7d6739d727e2c | fix comment | lib/commands/waitUntil.js | lib/commands/waitUntil.js | /**
*
* This wait command is your universal weapon if you want to wait on
* something. It expects a condition and waits until that condition
* is fulfilled with an truthy value. A condition can be either a promise
* or a command that returns a promise.
*
* A common example is to wait until a certain element cont... | JavaScript | 0 | @@ -2727,18 +2727,23 @@
re that
-ms
+timeout
and int
|
6f58f6213ca5b61dbfe39eafbd6f8040d3dd1903 | Fix issue where it could only be shown once. (Woops, wrong boolean switch.) | src/ui/dialogue.js | src/ui/dialogue.js | var Dialogue = {
running: false,
pages: null,
currentPage: null,
currentPageIdx: 0,
currentTickerIdx: 0,
typeDelay: 0,
fastMode: false,
prepare: function(data) {
this.pages = data;
this.currentPage = data[0];
this.currentPageIdx = 0;
this.currentTickerIdx... | JavaScript | 0.000001 | @@ -756,35 +756,36 @@
this.running =
-tru
+fals
e;%0A %7D,%0A%0A u
|
ddc46e8776f5ccdc14851ecffadb1f1bab50a8c9 | Fix CS #18 | lib/driver/methods/url.js | lib/driver/methods/url.js | /**
* The MIT License (MIT)
*
* Copyright (c) 2015 Arnaud Dezandee
*
* Authors:
* Arnaud Dezandee <dezandee.arnaud@gmail.com>
*/
/**
* Navigate to the requested URL and/or return the browser current URL
* @param {String} sUrl
* @param {Function} callback
*/
var URL = require('url');
module.exports = fu... | JavaScript | 0 | @@ -134,16 +134,44 @@
m%3E%0A */%0A%0A
+var nUrl = require('url');%0A%0A
/**%0A * N
@@ -299,35 +299,8 @@
*/%0A
-var URL = require('url');%0A%0A
modu
@@ -520,19 +520,20 @@
ck(err,
-URL
+nUrl
.parse(r
|
03e92b187d86ca1d01b92a491ac55315eabd96d3 | Use simple export format in computed module | addon/computed.js | addon/computed.js | import Em from 'ember';
var computed = Em.computed;
var get = Em.get;
var set = Em.set;
var isBlank = Em.isBlank;
export function defaultValue (watchKey, defaultValue) {
return computed(watchKey, {
set: function (setKey, value) {
try {
set(this, watchKey, value);
}
catch (e) {
// swallow
}
re... | JavaScript | 0 | @@ -893,49 +893,18 @@
alue
-: defaultValue,%0A%09join: join,%0A%09makeArray:
+,%0A%09join,%0A%09
make
|
427844be9177be6108363c793c745b483739d226 | Fix typo bug in sap b1 http POST to sap | main/app/server/methods/sapB1integration.js | main/app/server/methods/sapB1integration.js | import _ from 'underscore';
import { HTTP } from 'meteor/http'
/**
* SAP B1 Integration Methods
*/
Meteor.methods({
'sapB1integration/testConnectionToWindowsService': (sapServerIpAddress) => {
if (!this.userId && Core.hasPayrollAccess(this.userId)) {
throw new Meteor.Error(401, "Unauthorized... | JavaScript | 0.000005 | @@ -1092,19 +1092,16 @@
%0A
- //
HTTP.ca
@@ -1173,14 +1173,8 @@
ta%7D,
- () =%3E
(er
@@ -1185,16 +1185,19 @@
result)
+ =%3E
%7B%0A
@@ -1194,27 +1194,24 @@
=%3E %7B%0A
- //
if (!er
@@ -1229,18 +1229,16 @@
-//
con
@@ -1233,17 +1233,16 @@
-
console.
@@ -129... |
cf9cc63840966198c2d178ea9d3edac8f0def658 | Add additional ESLint rules | .eslintrc.js | .eslintrc.js | module.exports = {
extends: 'eslint:recommended',
env: {
browser: true,
},
parserOptions: {
sourceType: 'module',
},
globals: {
ArrayBuffer: false,
DataView: false,
Float32Array: false,
Float64Array: false,
Int16Array: false,
Int32Array: false,
Int8Array: false,
Uint1... | JavaScript | 0 | @@ -417,24 +417,73 @@
%0A rules: %7B%0A
+ 'array-bracket-spacing': %5B'error', 'never'%5D,%0A
'comma-d
@@ -517,24 +517,51 @@
ultiline'%5D,%0A
+ indent: %5B'error', 2%5D,%0A
'no-mult
|
af97590ffa1f5db8861b12d233859b30bfc72b1e | Update eslintrc | .eslintrc.js | .eslintrc.js | module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module'
},
env: {
browser: true
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue... | JavaScript | 0.000043 | @@ -97,16 +97,36 @@
'module'
+,%0A ecmaVersion: 8
%0A %7D,%0A
|
b929dbfe1fc5c677b957960ef8ddea31e731df1d | Add new eslint rule to guard against using the Function and Object type | .eslintrc.js | .eslintrc.js | // @flow
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
parser: 'babel-eslint',
plugins: ['babel', 'react', 'flowtype', 'import', 'prettier'],
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:flowtype/recommended',
'prettier',
'prettier/f... | JavaScript | 0 | @@ -3130,32 +3130,398 @@
ions': 'error',%0A
+ // The Object type and Function type aren't particularly useful, and usually hide%0A // type errors. It also blocks a migration to TypeScript. Disable this rule if%0A // using the Object or Function as generic type bounds.%0A 'flowtype/no-weak-types': %5B%0A ... |
1a2d50dba7481eadf56ac559bc90d0bfc364e90d | Update .eslintrc.js | .eslintrc.js | .eslintrc.js | module.exports = {
"parser": "babel-eslint",
"extends": ["standard", "plugin:react/recommended"],
"rules": { "comma-dangle": [2, "always-multiline"] },
"plugins": [ "react" ],
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
},
},
"globals": {
"newrelic": true,
"__nr_require": true,... | JavaScript | 0 | @@ -251,16 +251,86 @@
%7D,%0A %7D,%0A
+ %22settings%22: %7B%0A %22react%22: %7B%0A %22version%22: %22detect%22,%0A %7D,%0A %7D,%0A
%22globa
|
79666fec198c31ff01a17edf9b262b5a1fb95598 | Reformat eslintrc file | .eslintrc.js | .eslintrc.js | module.exports = {
'extends': ['standard', 'plugin:ava/recommended'],
'parserOptions': {
'ecmaVersion': 2017,
'sourceType': 'module',
'ecmaFeatures': {
'impliedStrict': true
}
},
'env': {
'node': false,
'node-globals/env': true
},
'plugins': ['ava', 'import', 'node-globals', 'r... | JavaScript | 0.000001 | @@ -18,17 +18,15 @@
%7B%0A
-'
extends
-'
: %5B'
@@ -65,17 +65,16 @@
ed'%5D,%0A
-'
parserOp
@@ -78,25 +78,24 @@
rOptions
-'
: %7B%0A
'ecmaVer
@@ -82,25 +82,24 @@
ions: %7B%0A
-'
ecmaVersion'
@@ -97,17 +97,16 @@
aVersion
-'
: 2017,%0A
@@ -109,17 +109,16 @@
17,%0A
-'
sourceTy
@@ -119,17 +119,... |
0044a3570254ac6fb4eb68b9db6e61496fc891f9 | Remove custom eslint configs for ember rules | .eslintrc.js | .eslintrc.js | 'use strict';
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
legacyDecorators: true
}
},
plugins: [
'ember'
],
extends: [
'eslint:recommended',
'plugin:ember/recommended'
],
env: {
... | JavaScript | 0 | @@ -444,450 +444,8 @@
%5D %7D%5D
-,%0A %22ember/no-observers%22: %22warn%22,%0A %22ember/no-jquery%22: %22error%22,%0A %22ember/no-string-prototype-extensions%22: %22warn%22,%0A %22ember/no-controller-access-in-routes%22: %22warn%22,%0A %22ember/no-classic-classes%22: %22warn%22,%0A %22ember/no-compu... |
a89b22e960745dfc76dff7becfabb04281bfe11d | Add jest to eslint env | .eslintrc.js | .eslintrc.js | module.exports = {
extends: "airbnb",
globals: {
Urls: true
},
env: {
browser: true
},
rules: {
"react/jsx-filename-extension": [
1,
{
extensions: [
".js",
".jsx"
]
}
]
},
settings: {
"import/resolver": {
webpack: {
... | JavaScript | 0.999789 | @@ -87,16 +87,32 @@
browser:
+ true,%0A jest:
true%0A
|
885de56db3bf5843e4887f75cc8f5795799a7092 | Use allowThen option to promise/catch-or-return rule | .eslintrc.js | .eslintrc.js | module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
},
env: {
browser: true,
node: true,
},
extends: [
'plugin:vue/essential',
'plugin:vue/strongly-recommended',
'plugin:promise/recommended',
'standard',
],
plugins: [
'vue',
'promise',
],
rules... | JavaScript | 0 | @@ -1036,16 +1036,81 @@
rror'%5D,%0A
+ 'promise/catch-or-return': %5B'error', %7B 'allowThen': true %7D%5D,%0A
%7D,%0A o
|
b4d1e7be6e221987f00a1aeece361381cc43a5d8 | Enable 'no-trailing-spaces' | .eslintrc.js | .eslintrc.js | /**
* @license MIT License
*
* Copyright (c) 2015 Tetsuharu OHZEKI <saneyuki.snyk@gmail.com>
* Copyright (c) 2015 Yusuke Suzuki <utatane.tea@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
... | JavaScript | 0.000002 | @@ -3772,24 +3772,23 @@
'no-
-unneeded-ternary
+trailing-spaces
': 2
@@ -3816,32 +3816,66 @@
ore-dangle': 0,%0A
+ 'no-unneeded-ternary': 2,%0A
'operato
|
c1445f1abe70afd84c4a004fe1d063eda245c90f | Remove comment about 90 character line length limit | .eslintrc.js | .eslintrc.js | // For reference: https://github.com/airbnb/javascript
module.exports = {
settings: {
'import/core-modules': ['electron'],
},
extends: ['airbnb-base', 'prettier'],
plugins: ['mocha', 'more'],
rules: {
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'al... | JavaScript | 0 | @@ -1245,91 +1245,8 @@
f',%0A
- // 90 characters allows three+ side-by-side screens on a standard-size monitor%0A
|
78aa22a8cf7f4e52e878bd0324d9b4b2b0da6b40 | add log | test/businessTier/flow/mapChartFlowSpec.js | test/businessTier/flow/mapChartFlowSpec.js | /*jshint node: true, -W106 */
'use strict';
/*
* Name : mapChartFlowSpec.js
* Module : UnitTest
* Location : /test/businessTier/flow
*
* History :
*
* Version Date Programmer Description
* =========================================================
* 0.0.1 2015-05-29 Filippo Rampado Initial c... | JavaScript | 0.000002 | @@ -1750,32 +1750,64 @@
ace: 'flow1'%7D);%0A
+ console.dir(flow1);%0A
cons
|
31183d2697d75a1a2aab4e81fb90c053377cfda8 | Fix loading from local store | src/utils/media.js | src/utils/media.js | import { Api, Crypto } from '@/utils'
// IndexedDB
const indexedDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB
|| window.OIndexedDB || window.msIndexedDB
const DBTransaction = window.IDBTransaction || window.webkitIDBTransaction
|| window.OIDBTransaction || window.msIDBTransaction... | JavaScript | 0.000001 | @@ -338,16 +338,34 @@
= 1.0;%0A%0A
+// DB name consts%0A
const db
@@ -2679,16 +2679,17 @@
ore(
-%22images%22
+storeName
).ge
|
9dad6929a380be04b9f28985ff7e56fcc08c0aa1 | fix unit test | test/data-util/master/storage-data-util.js | test/data-util/master/storage-data-util.js | "use strict";
var _getSert = require("../getsert");
var generateCode = require("../../../src/utils/code-generator");
var unit = require("./unit-data-util");
class StorageDataUtil {
getSert(input) {
var ManagerType = require("../../../src/managers/master/storage-manager");
return _getSert(input, Man... | JavaScript | 0.000001 | @@ -1204,35 +1204,36 @@
return
-this.getNew
+unit.getTest
Data()%0A
@@ -1354,17 +1354,86 @@
st 01%22;%0A
+ data.unitId=data._id;%0A data.unit=data;
%0A
-
@@ -1591,35 +1591,36 @@
return
-this.getNew
+unit.getTest
Data()%0A
@@ -1709,16 +1709,18 @@
dangJ... |
e1f6fb99669d0eecc9c0113fb43f23bf88fbb9c1 | add common prop type `dataAccessor` | src/utils/props.js | src/utils/props.js | import { PropTypes } from 'react';
import identity from 'lodash/identity';
import includes from 'lodash/includes';
import intersection from 'lodash/intersection';
import noop from 'lodash/noop';
import reduce from 'lodash/reduce';
export const CommonPropTypes = {
className: PropTypes.oneOfType([
PropTypes.string... | JavaScript | 0 | @@ -695,16 +695,102 @@
,%0A %5D),%0A
+ dataAccessor: PropTypes.oneOfType(%5B%0A PropTypes.string,%0A PropTypes.func,%0A %5D),%0A
%7D;%0A%0Aexpo
|
bfb8180ff092fde7086c6c80a5851fb9664840ab | Fix types for `@flow strict-local`. | src/utils/sound.js | src/utils/sound.js | /* @flow */
import Sound from 'react-native-sound';
import { logErrorRemotely } from '../utils/logging';
if (Sound && Sound.setCategory) {
Sound.setCategory('Ambient', true);
}
const messageSound = new Sound('zulip.mp3', Sound.MAIN_BUNDLE, (error: Object) => {
if (error) {
logErrorRemotely(error, 'Failed to l... | JavaScript | 0 | @@ -2,16 +2,29 @@
* @flow
+strict-local
*/%0Aimpor
@@ -262,14 +262,13 @@
or:
-Object
+Error
) =%3E
|
8bb4374adfe34abaa11081e1ca3214d44eb8de1f | Move various util modules to util/ | lib/util/web-rdflib.js | lib/util/web-rdflib.js | 'use strict'
/**
* Provides a wrapper for rdflib's web operations (`rdf.Fetcher` based)
* @module web-rdflib
*/
var rdf = require('./rdf-parser').rdflib
/**
* @class rdflibWebClient
* @static
*/
var rdflibWebClient = {
/**
* Retrieves a resource via HTTP, parses it, and returns the result.
* @method getP... | JavaScript | 0 | @@ -129,16 +129,21 @@
uire('./
+util/
rdf-pars
|
1c4d6d44a99f4162874ada240b0b269f5dc887a2 | switch to a Class (#4459) | lib/utils/FileCache.js | lib/utils/FileCache.js | 'use strict';
const debug = require('debug')('stylelint:file-cache');
const fileEntryCache = require('file-entry-cache');
const getCacheFile = require('./getCacheFile');
const path = require('path');
const DEFAULT_CACHE_LOCATION = './.stylelintcache';
const DEFAULT_HASH = '';
/**
* @param {string} [cacheLocation]
... | JavaScript | 0 | @@ -366,24 +366,21 @@
tor%0A */%0A
-function
+class
FileCac
@@ -385,40 +385,96 @@
ache
-(cacheLocation, hashOfConfig
+ %7B%0A%09constructor(cacheLocation = DEFAULT_CACHE_LOCATION, hashOfConfig = DEFAULT_HASH
) %7B%0A
+%09
%09con
@@ -501,19 +501,16 @@
resolve(
-%0A%09%09
getCache
@@ -531,34 +531,8 @@
tion
- %7C... |
2805c70c1ff37f38580c0a2dda2fe48f2afd6196 | change express-layout to use multi view dir compatible version | lib/ingredients/client.js | lib/ingredients/client.js | var utils = require('../utils');
var path = require('path');
var fs = require('fs');
var async = require('async');
module.exports = {
name : 'client',
options :[],
run : function(options,pkg,destinationPath,appName,done){
console.log('running client generator.');
// make sure there's an express app that ... | JavaScript | 0 | @@ -3229,16 +3229,36 @@
s-layout
+#views_array_support
',%0A
|
9cc5a32d7849d41fff56c9e8282c73dc164872a7 | Streamline PluginAudio.processMessage | lib/janus/plugin/audio.js | lib/janus/plugin/audio.js | var util = require('util');
var Promise = require('bluebird');
var PluginStreaming = require('./streaming');
var Stream = require('../../stream');
var Channel = require('../../channel');
var serviceLocator = require('../../service-locator');
function PluginAudio(id, type, session) {
PluginAudio.super_.apply(this, ar... | JavaScript | 0 | @@ -613,25 +613,24 @@
sage
- && 'create' ===
+) %7B%0A switch (
mess
@@ -647,32 +647,57 @@
%5D%5B'request'%5D) %7B%0A
+ case 'create':%0A
return this.
@@ -721,209 +721,91 @@
;%0A
-%7D%0A%0A if ('message' === janusMessage && 'join' === message%5B'body'%5D%5B'request'%5D) %7B%0A return this.on... |
f31b6170336f5f26bde5d6b7ff10c185d03a6daa | Make bullets longer | lib/javascripts/bullet.js | lib/javascripts/bullet.js | function Bullet(plane) {
this.x = plane.x + plane.width/2
if (plane.type === "player"){
this.y = plane.y - 3
} else if (plane.type === "computer"){
this.y = plane.y + 3
}
this.width = 2;
this.height = 2;
this.type = plane.type
this.border = [];
};
Bullet.prototype.makeBorder = function(){... | JavaScript | 0.999693 | @@ -18,18 +18,16 @@
lane) %7B%0A
-
this.x
@@ -53,18 +53,16 @@
width/2%0A
-
if (pl
@@ -81,25 +81,28 @@
%22player%22)%7B%0A
-%09
+
this.y = pla
@@ -110,16 +110,18 @@
e.y - 3%0A
+
%7D else i
@@ -151,17 +151,20 @@
uter%22)%7B%0A
-%09
+
this.y =
@@ -182,14 +182,10 @@
3%0A
- %7D%0A
+%7D%0A
... |
6093b2a111da616b0f9b9c0ec290225ba46cb0c6 | add test for search terms with + | spec/javascripts/boards/utils/query_data_spec.js | spec/javascripts/boards/utils/query_data_spec.js | import queryData from '~/boards/utils/query_data';
describe('queryData', () => {
it('parses path for label with trailing +', () => {
const path = 'label_name[]=label%2B';
expect(
queryData(path, {}),
).toEqual({
label_name: ['label+'],
});
});
it('parses path for milestone with trail... | JavaScript | 0 | @@ -337,44 +337,177 @@
-const path = 'milestone_title=A%252B';
+expect(%0A queryData('milestone_title=A%252B', %7B%7D),%0A ).toEqual(%7B%0A milestone_title: 'A+',%0A %7D);%0A %7D);%0A%0A it('parses path for search terms with spaces', () =%3E %7B
%0A
@@ -523,36 +523,50 @@
queryData(
-p... |
a373b9b0c6925e46d4a2d281ab1851ec4747a0d2 | Create test when click to close alert browser unsupported. | spec/javascripts/browser-unsupported-bar_spec.js | spec/javascripts/browser-unsupported-bar_spec.js | describe("Alert unsupported browser: ", function(){
beforeEach(function(){
loadFixtures('browser-unsupported-bar_fixture.html');
});
describe("When userAgent is MSIE", function(){
it("should add .ls-browser-unsupported class on <html>", function(){
$.cookie = function (arg) {
return false;
... | JavaScript | 0 | @@ -759,12 +759,972 @@
%0A %7D);%0A%0A
+ describe(%22When click to close%22, function() %7B%0A it(%22should remove .ls-browser-unsupported class on %3Chtml%3E%22, function() %7B%0A $('body').prepend('%3Cdiv class=%22ls-alert-warning ls-alert-blocker ls-dismissable%22%3E%3Cspan class=%22ls-dismiss%22 data-ls-... |
b045153884d55da5fe6d1b1c7d4f34ee68ce1716 | Tweak validation messages | lib/xflow-validator.js | lib/xflow-validator.js | import RSVP from 'rsvp';
import tv4 from 'tv4';
import FlowUtil from './util/flow';
import LangUtil from './util/lang';
import Flox from './flox';
import FlowV1Schema from '../data/schemas/xflow-schema';
const exists = LangUtil.exists;
const mergeDict = LangUtil.mergeDict;
const isArray = LangUtil... | JavaScript | 0 | @@ -978,23 +978,25 @@
%60Edge
+%5B
$%7Bedge%7D
+%5D
has no
@@ -3182,16 +3182,17 @@
ability
+'
$%7Bnode.n
@@ -3199,16 +3199,17 @@
odetype%7D
+'
%60,%0A
|
a4d37b2cf8fa23d003239e48e7b4129e329ce6c3 | Fix url + datetime query bug in crawler | getPlannedWork/crawler.js | getPlannedWork/crawler.js | const moment = require('moment');
const scraper = require('./scraper');
const DateRange = require('./DateRange');
const { baseURL, routes, imgMap } = require('./constants.js');
function buildLink({ route, datetime }) {
const date = moment(datetime);
return `${baseURL}?tag=${route}&date=${date.format('MM/DD/YYYY')... | JavaScript | 0.000091 | @@ -378,24 +378,225 @@
datetime) %7B%0A
+ // reject past dates; mta only responds to present / future date queries%0A if (moment(datetime).isBefore(Date.now(), 'day')) %7B%0A throw new Error('advisoriesByDate invoked with invalid date');%0A %7D%0A%0A
const page
@@ -1508,21 +1508,19 @@
teRange.
-start
+end
)... |
d90d7ab9efeccb1a58df1baf161788cdd1908c51 | Add ghetto server counter. Adds m2x data stream to lat/:lat/long/:ing for metric tracking. | routes/checkPoints.js | routes/checkPoints.js | 'use strict';
const express = require('express');
const router = express.Router();
const M2X = require('m2x');
const vincenty = require('node-vincenty');
const m2x = new M2X(process.env.M2X_KEY);
const deviceID = ( process.env.M2X_DEVICE_ID ) ? process.env.M2X_DEVICE_ID : '8b492694122cc040401c2d4f9a6a3b56';
const ma... | JavaScript | 0 | @@ -509,18 +509,32 @@
),%0A %7D;%0A
-
+let counter = 0;
%0A// NOTE
@@ -2486,32 +2486,47 @@
req.params.lon;
+%0A counter++;
%0A%0A vincenty.d
@@ -2767,18 +2767,107 @@
'GOTTEM!
-')
+ It took a total of ' + counter + ' total attempts since last found.');%0A counter = 0
;%0A
@@ -3287,16 +3287,4... |
369f1b28c041b69802fa908d3fae3c8e056fbb3b | update route with example payload for PUT /masterlocation | routes/checkPoints.js | routes/checkPoints.js | 'use strict';
const express = require('express');
const router = express.Router();
const M2X = require('m2x');
const vincenty = require('node-vincenty');
const m2x = new M2X(process.env.M2X_KEY);
const streamName = 'check-points';
const deviceID = ( process.env.M2X_DEVICE_ID ) ? process.env.M2X_DEVICE_ID : '8b4926941... | JavaScript | 0 | @@ -557,192 +557,8 @@
= 0;
-%0A// NOTE: TIMES SUPERMARKET%0A// const testPoint = %7B%0A// name: 'Test Point',%0A// lat: 21.286615,%0A// lon: -157.807592,%0A// active: false,%0A// createdAt: Date.now(),%0A// %7D
%0A%0Aro
@@ -2106,16 +2106,263 @@
// %7D)%0A%0A
+ // EXAMPLE JSON PAYLOAD: TIMES S... |
358c9bbab837bef29d2b4d5eb0a008cbf0fc83a1 | Add utils docstrings | lib/modularinput/utils.js | lib/modularinput/utils.js |
// Copyright 2014 Splunk, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"): you may
// not use this file except in compliance with the License. You may obtain
// a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | JavaScript | 0.000003 | @@ -797,16 +797,68 @@
on%60.%0A *%0A
+ * This is a helper function for %60parseXMLData%60.%0A *%0A
* The X
@@ -891,16 +891,16 @@
e this:%0A
-
* %0A *
@@ -1728,35 +1728,28 @@
ect%7D an
-e
+%60E
lement
-t
ree
-.element
+%60
object
@@ -1820,27 +1820,20 @@
an
-e
+%60E
lement
-t
ree
-.element
+%60
obj
... |
ad348c61c16c0a8ce401857a314c23168612f0b1 | return focus to editor on close | lib/projects-list-view.js | lib/projects-list-view.js | 'use babel';
import {SelectListView, $$} from 'atom-space-pen-views';
import _ from 'underscore-plus';
import Projects from './projects';
import Project from './project';
import fs from 'fs';
export default class ProjectsListView extends SelectListView {
initialize() {
super.initialize();
this.addClass('pro... | JavaScript | 0 | @@ -2431,32 +2431,80 @@
destroy');%0A %7D
+%0A%0A atom.workspace.getActivePane().activate();
%0A %7D%0A%0A cancelle
|
280fd93f7a32062569293dda1a2c5907b70224ac | Remove a flow warning | lib/providers-registry.js | lib/providers-registry.js | /* @flow */
import type { TextEditor } from 'atom'
import { processDeclarations, processProvider } from './process'
import { shouldTriggerProvider } from './helpers'
import type { Provider, Declaration } from './types'
export default class ProvidersRegistry {
providers: Set<Provider>;
constructor() {
this.pr... | JavaScript | 0 | @@ -994,42 +994,8 @@
')%0A%0A
- // $FlowIgnore: Flow is weird%0A
|
21e0dec60cb43dfec82b9f5fce1df4b04e08b55d | remove extra blank line | lib/resources/security.js | lib/resources/security.js | /**
* @name Security
* @description This module exposes functions
* related to security procedures.
*
* @module security
**/
import NodeRSA from 'node-rsa'
import Promise from 'bluebird'
import qs from 'qs'
import {
toString,
replace,
pipe,
} from 'ramda'
import {
verifySignature,
calculate... | JavaScript | 0.000281 | @@ -3060,17 +3060,16 @@
ected)%0A%0A
-%0A
export d
|
53a289e86b09b49df5d461405c021e221a851a48 | remove log | new-lamassu-admin/src/components/Tooltip.js | new-lamassu-admin/src/components/Tooltip.js | import { makeStyles, ClickAwayListener } from '@material-ui/core'
import React, { useState, memo } from 'react'
import Popper from 'src/components/Popper'
import { ReactComponent as HelpIcon } from 'src/styling/icons/action/help/zodiac.svg'
const useStyles = makeStyles({
transparentButton: {
border: 'none',
... | JavaScript | 0.000023 | @@ -683,31 +683,8 @@
%3E %7B%0A
- console.log(event)%0A
|
be5bd7ed3cf88f768caf09933a38c0b686b012ff | clean functional code | javascripts/infopopup.js | javascripts/infopopup.js | define(function(require) {
var $ = require("jquery");
var Q = require("q");
var templates = require("3-loadtemplates");
console.log("infopopup.js loaded");
return {
popup: function(e){
console.log("function fired" );
var deferred = Q.defer();
var movieRef = new Firebase('https://faceontoast.fireba... | JavaScript | 0.00002 | @@ -118,139 +118,39 @@
);%0A%0A
-%0Aconsole.log(%22infopopup.js loaded%22);%0A%0A%09return %7B%0A%09%09popup: function(e)%7B%0A%09%09console.log(%22function fired%22 );%0A%09%09var deferred = Q.defer();
+%09return %7B%0A%09%09popup: function(e)%7B
%0A
@@ -284,17 +284,16 @@
t) %7B%0A%09%09
-
var data
@@ -326,61... |
5522b4bff0b3adac0e1477126fbbed6c2f7d82c5 | improve loading | src/withGraphQL.js | src/withGraphQL.js | /* eslint-disable react/prop-types */
import {graphql} from 'react-apollo'
import React from 'react'
import Loading from './Loading'
import ErrorComponent from './Error'
import getVariables from './getVariables'
import sleep from './sleep'
import debounce from 'lodash/debounce'
import NetworkError from './NetworkError'... | JavaScript | 0 | @@ -1478,32 +1478,84 @@
tworkError () %7B%0A
+ if (options.loading) return options.loading%0A
if (opti
@@ -1622,60 +1622,8 @@
ent%0A
- if (options.loading) return options.loading%0A
|
95d01a37288d4b09fe3ac213aa9e79d6d1a09a0f | add hasStarted function to World instances | src/world/index.js | src/world/index.js | 'use strict';
var validator = require('./../validator');
var schema = require('./schema');
function World(strategy, constraints, blocks) {
var started = false;
// TODO: assert strategy
// TODO. assert constraints
blocks = validator.assert(blocks, schema.blocks, 'World.blocks');
function start() ... | JavaScript | 0 | @@ -1039,40 +1039,133 @@
-// public%0A this.start = start
+function hasStarted() %7B%0A return started;%0A %7D%0A%0A // public%0A this.start = start;%0A this.hasStarted = hasStarted
;%0A
|
3e50a90a2f7f6c21bea4f0ff4a42d086c1e1d6f0 | improve v-show to support <transition> | platform/nativescript/runtime/directives/show.js | platform/nativescript/runtime/directives/show.js | function show(el, show) {
el.setAttribute('visibility', show ? 'visible' : 'collapsed')
}
export default {
inserted(el, { value }) {
show(el, value)
},
update(el, { value }) {
show(el, value)
}
}
| JavaScript | 0 | @@ -1,212 +1,1625 @@
-function show(el, show) %7B%0A el.setAttribute('visibility', show ? 'visible' : 'collapsed')%0A%7D%0A%0Aexport default %7B%0A inserted(el, %7B value %7D)
+import %7B enter, leave %7D from '../modules/transition'%0A%0A// recursively search for possible transition defined inside the component root... |
e22f9fd0897774e2f9e467f079b5528e9400a46c | Use relative path | lib/ui/instrumentpanel.js | lib/ui/instrumentpanel.js | var Bacon = require('baconjs');
var BaconModel = require('bacon.model');
var widgetModulesByType = {};
var widgetModulesByPath = {};
var browser = require('./util/browser');
//Have to use explicit require's for browserify
[
require('./widgets/compass'),
require('./widgets/windmeter'),
require('./widgets/digi... | JavaScript | 0.000002 | @@ -4092,25 +4092,8 @@
ax(%22
-/instrumentpanel/
layo
|
58590fba55ff404f9d4f3ab863c5fbb3604470c5 | Remove the trace class from name bubble | lib/ui/message-element.js | lib/ui/message-element.js | 'use babel'
const NewLine = /\r?\n/
export class Message extends HTMLElement {
initialize(message, includeLink = true) {
this.message = message
this.includeLink = includeLink
return this
}
updateVisibility(scope) {
let status = true
if (scope === 'Line')
status = this.message.currentLi... | JavaScript | 0 | @@ -3349,14 +3349,8 @@
ight
- trace
%60%0A
|
d941060fb15d01f8fb77194d78095d939578a294 | document promiseUtils | lib/utils/promiseUtils.js | lib/utils/promiseUtils.js | 'use strict';
const Promise = require('bluebird');
function isPromise(obj) {
return obj && typeof obj === 'object' && typeof obj.then === 'function';
}
function after(obj, func) {
if (isPromise(obj)) {
return obj.then(func);
} else {
return func(obj);
}
}
function afterReturn(obj, returnValue) {
i... | JavaScript | 0 | @@ -154,126 +154,396 @@
%0A%7D%0A%0A
-function after(obj, func) %7B%0A if (isPromise(obj)) %7B%0A return obj.then(func);%0A %7D else %7B%0A return func(obj);%0A %7D%0A%7D%0A
+// Call %60func%60 after %60obj%60 has been resolved. Call %60func%60 synchronously if%0A// %60obj%60 is not a promise for performance ... |
3febb06663fd83238d48608cde0613bcf418698e | Allow ScatterGraph points to have radius of zero | lib/views/ScatterGraph.js | lib/views/ScatterGraph.js | import Graph from '../views/Graph';
class ScatterGraph extends Graph {
constructor(options) {
super(options);
var config = this.config.ScatterGraph;
this.radius = options.radius || config.radius;
this.color = options.color;
this.showErrorBars = options.showErrorBars;
... | JavaScript | 0.000013 | @@ -182,24 +182,25 @@
is.radius =
+(
options.radi
@@ -202,18 +202,43 @@
.radius
-%7C%7C
+!= null) ? options.radius :
config.
|
2508d1d1ac61393d019d5a2feb5f3b82628a32a8 | Update to match lager_json_formatter output | lib/winston-mixlib-log.js | lib/winston-mixlib-log.js | /*
* winston-mixlib-log.js: Transport for outputting in the Mixlib Log format
*
* (C) 2012 Josh Toft
* MIT LICENSE
*
*/
var util = require('util'),
cycle = require('cycle'),
winston = require('winston'),
common = require('winston/lib/winston/common'),
config = require('winston/lib/winston/config'... | JavaScript | 0.000006 | @@ -1753,18 +1753,16 @@
%7D%0A %7D;%0A
-
%0A var d
@@ -3379,82 +3379,65 @@
-output.m = options.meta.m %7C%7C options.message;%0A if (timestamp)%7B%0A
+if (timestamp)%7B%0A output.t = timestampFN();%0A %7D%0A
@@ -3447,38 +3447,52 @@
put.
-time
+m
=
-ti
+options.
me
-s
... |
515a12114a3ade7c7c18ffbbe9c663895fc82b5b | Fix json contentType | packages/webmiddle-service-virtual-to-json/src/VirtualToJson.js | packages/webmiddle-service-virtual-to-json/src/VirtualToJson.js | import WebMiddle, { PropTypes } from 'webmiddle';
import values from 'lodash.values';
async function processVirtual(virtual, webmiddle) {
const targetAttributes = {};
Object.keys(virtual.attributes).forEach((attributeName, i) => {
targetAttributes[`@attribute#${i}`] = virtual.attributes[attributeName];
});
... | JavaScript | 0.998501 | @@ -2418,12 +2418,19 @@
e: '
-text
+application
/jso
|
116bfac640211694554f501b9f979246a5b997f5 | add soundcloud embeds | pkg/interface/link/src/js/components/lib/link-detail-preview.js | pkg/interface/link/src/js/components/lib/link-detail-preview.js | import React, { Component } from 'react';
import { Route, Link } from "react-router-dom";
import { makeRoutePath, cite } from "../../lib/util";
import moment from "moment";
export class LinkPreview extends Component {
constructor(props) {
super(props);
this.state = {
timeSinceLinkPost: this.getTimeSinc... | JavaScript | 0 | @@ -320,24 +320,41 @@
ceLinkPost()
+,%0A embed: %22%22
%0A %7D;%0A %7D%0A
@@ -1980,32 +1980,219 @@
e // id%0A );%0A%0A
+ let soundcloudRegex = new RegExp('' +%0A /(https?:%5C/%5C/(?:www.)?soundcloud.com%5C/%5B%5Cw-%5D+%5C/?(?:sets%5C/)?%5B%5Cw-%5D+)/.source%0A );%0A%0A let isSoundcloud = so... |
f714168c29bf0686b86d7a54802aa2d841790ffd | Remove () from mathjax setting | resource/js/util/PostProcessor/Mathjax.js | resource/js/util/PostProcessor/Mathjax.js |
export default class Mathjax {
constructor(crowi) {
this.crowi = crowi;
this.defaultUrl = '//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?skipStartupTypeset=true';
this.mathJaxConfigured = false;
const config = crowi.getConfig();
if (config.env.MATHJAX) {
this.mathJaxConfigur... | JavaScript | 0.000001 | @@ -774,23 +774,8 @@
'$'%5D
-, %5B%22%5C%5C(%22,%22%5C%5C)%22%5D
%5D,%0A
@@ -812,23 +812,8 @@
$$'%5D
-, %5B%22%5C%5C%5B%22,%22%5C%5C%5D%22%5D
%5D,%0A
|
9e1a3f1c3cfd49d17540c911119d2c54eb1c5420 | Remove unused code | web/src/js/components/Background/BackgroundCustomImagePickerComponent.js | web/src/js/components/Background/BackgroundCustomImagePickerComponent.js | import React from 'react'
import PropTypes from 'prop-types'
import Subheader from 'material-ui/Subheader'
import TextField from 'material-ui/TextField'
import RaisedButton from 'material-ui/RaisedButton'
import {
cardHeaderSubtitleStyle
} from 'theme/default'
import brokenImage from 'assets/nopicture.jpg'
class Ba... | JavaScript | 0.000006 | @@ -670,22 +670,55 @@
%0A%0A
-// TODO: could
+onChange (event, newValue) %7B%0A // May want to
val
@@ -762,118 +762,33 @@
sage
-.
%0A
-isValid (value) %7B%0A return true%0A %7D%0A%0A onChange (event, newValue) %7B%0A if (this.isValid(newValue)) %7B%0A
+ // if it's invalid.%0A
@@ -805,26 +80... |
e6b4fe78eb421f29e37ce175b8266e409cb2e322 | debug integration test:#6 | tests/integration/test.js | tests/integration/test.js | /* jshint esnext: true, evil: true, sub: true */
/**
* Code inspired in https://github.com/twitter/typeahead.js/blob/master/test/integration/test.js
*/
var wd = require('yiewd'),
colors = require('colors'),
expect = require('chai').expect,
f = require('util').format,
env = process.env;
var browser = ... | JavaScript | 0 | @@ -1605,51 +1605,8 @@
) %7B%0A
- console.log('teste2:' + data);%0A
@@ -1928,74 +1928,65 @@
tByC
-lassName('typeahead');%0A inputid = input.getAttribute('i
+ssSelector('div.container input:last-child');//('typeahea
d');
@@ -2495,24 +2495,38 @@
ry(%22
-#' + inputid + '
+div.container inpu... |
27d93793ef67bca3d390aeddae350f922f747cc9 | fix popup lyric using ref instead of closest | imports/components/PopUpLyric.js | imports/components/PopUpLyric.js | /* © 2017 NauStud.io
* @author Eric
*/
import React, { Component } from 'react';
import { Container } from 'flux/utils';
import { closePopUp } from '../events/AppActions';
import AppStore from '../events/AppStore';
class PopUpLyric extends Component {
static getStores() {
return [AppStore];
}
static calculate... | JavaScript | 0.000001 | @@ -768,198 +768,119 @@
%7B%0A%09%09
-const $popupLyric = $(e.target);%0A%09%09if ($popupLyric.closest('
+if (e.target === this
.popup
--l
+L
yric
-__wrap').length) %7B%0A%09%09%09e.preventDefault();%0A%09%09%09e.stopPropagation
+) %7B%0A%09%09%09closePopUp
();%0A
-%0A
%09%09
-%09return false;%0A%09%09%7D%0A%09%09... |
136031bea455b66afecf8704f1a64c5d3d4960e9 | Remove jQuery import from new design | app/javascript/packs/application.js | app/javascript/packs/application.js | import '../shared/polyfills';
import Turbolinks from 'turbolinks';
import Rails from 'rails-ujs';
import ActiveStorage from '../shared/activestorage/ujs';
import Chartkick from 'chartkick';
import Highcharts from 'highcharts';
import jQuery from 'jquery';
import '../shared/sentry';
import '../shared/rails-ujs-fix';
im... | JavaScript | 0 | @@ -223,37 +223,8 @@
ts';
-%0Aimport jQuery from 'jquery';
%0A%0Aim
@@ -1254,127 +1254,8 @@
);%0A%0A
-// Disable jQuery-driven animations during tests%0Aif (process.env%5B'RAILS_ENV'%5D === 'test') %7B%0A jQuery.fx.off = true;%0A%7D%0A%0A
// E
|
873b97589a94fbb9b9e56ac6bd7022e7c3c16384 | Add condition to sort only statuses in twitterFriendFeeds | app/js/directives/signin-twitter.js | app/js/directives/signin-twitter.js | 'use strict';
/* global angular, $ */
var directivesModule = require('./_index.js');
directivesModule.directive('signinTwitter', ['$timeout', '$rootScope', 'HelloService', 'AppSettings', function($timeout, $rootScope, HelloService, AppSettings) {
return {
scope: {
hello: '=',
twitterSession: '=',
},
te... | JavaScript | 0.000001 | @@ -1375,24 +1375,59 @@
tion(a,b) %7B%0A
+%09%09%09%09%09%09if (b.status && a.status) %7B%0A%09
%09%09%09%09%09%09return
@@ -1489,16 +1489,25 @@
ted_at);
+%09%0A%09%09%09%09%09%09%7D
%0A%09%09%09%09%09%7D)
@@ -1606,70 +1606,8 @@
ed;%0A
-%09%09%09%09%09%09window.debugging = $rootScope.root.twitterFriends.data;%0A
... |
cb3ee6a393bce9a98d579190587bc6319add2c32 | update note based on Shawn's feedback | app/components/DeviceTimeModal.js | app/components/DeviceTimeModal.js | /*
* == BSD2 LICENSE ==
* Copyright (c) 2014-2016, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program is ... | JavaScript | 0 | @@ -3849,40 +3849,40 @@
ne%7D.
- Click here to %3Cbr/%3E%0A
+%0A %3Ca href=''%3EClick to
lea
@@ -3914,24 +3914,28 @@
device time.
+%3C/a%3E
%0A
|
6a86a824698e9b6ad1d9f28aee85dc0c03dc602b | Fix unnecessary return statements | app/controllers/authentication.js | app/controllers/authentication.js | const User = require('../models/user');
const authentication = require('../lib/authentication');
/**
* Pre-req: User is authenticated and model data is attached to req.user
* Generate a JWT for the user.
* @param {Express.Request} req - the request
* @param {Express.Response} res - the response
*/
function r... | JavaScript | 0.999999 | @@ -450,31 +450,24 @@
red.');%0A
-return
res.status(5
@@ -466,28 +466,28 @@
status(500).
-json
+send
(%7B%0A err
@@ -639,53 +639,8 @@
%7D;%0A
- return new Promise((accept, reject) =%3E %7B%0A
au
@@ -694,26 +694,24 @@
n) =%3E %7B%0A
-
if (err) %7B%0A
@@ -719,52 +719,115 @@
- reject(... |
0be832ae1883a07a5d76bb39ba3dc027596b7964 | Remove consumer hosted view before initializing payment menu | static/js/fluff.js | static/js/fluff.js | payex.hostedView.consumer({
container: 'checkout',
culture: 'nb-NO',
onConsumerIdentified: function(consumerIdentifiedEvent) {
var request = new XMLHttpRequest();
request.addEventListener('load', function() {
response = JSON.parse(this.responseText);
var script = doc... | JavaScript | 0 | @@ -104,16 +104,17 @@
function
+
(consume
@@ -129,24 +129,24 @@
iedEvent) %7B%0A
-
var
@@ -218,32 +218,33 @@
'load', function
+
() %7B%0A
@@ -410,24 +410,16 @@
n.href);
-
%0A
@@ -447,21 +447,170 @@
function
+
() %7B%0A
+ var iframe = document.getElementsByT... |
b0371039d2d571ae4957c480f03a82f66afcbe16 | make `act` context simpler | lib/listeners/add-message-context.js | lib/listeners/add-message-context.js | 'use strict';
module.exports = function exported() {
return function addMessageContext(ws, user, message /* , done */) {
var api = this;
var write = _write.bind(null, ws);
var error = _error.bind(null, ws);
var context = {
req: {
user: user
},
res: {
write: write,
error: error
}
};
... | JavaScript | 0.000183 | @@ -175,45 +175,8 @@
s);%0A
-%09%09var error = _error.bind(null, ws);%0A
%09%09va
@@ -189,16 +189,16 @@
ext = %7B%0A
+
%09%09%09req:
@@ -250,26 +250,8 @@
rite
-,%0A%09%09%09%09error: error
%0A%09%09%09
@@ -388,131 +388,15 @@
end(
-JSON.stringify(%7Bdata: message%7D), options);%0A%7D%0A%0Afunction _error(ws, err... |
556fa5ef730c7d17ba7450e837a3a949d553d328 | Fix broken dc rename | static/ui/js/dc.js | static/ui/js/dc.js | function getFormData(data) {
var formData = {};
for (var i = 0; i < data.length; i++) {
var key = data[i]["name"];
var value = data[i]["value"];
formData[key] = value;
}
return formData;
}
function submitDC(form) {
var data = $(form).serializeArray();
var formData = getFormData(data);
$.ajax({
... | JavaScript | 0.000006 | @@ -2029,16 +2029,21 @@
for=%22dc
+_name
%22%3ENew DC
@@ -2136,16 +2136,21 @@
name=%22dc
+_name
%22%3E%0A
|
4a3ed9ca47d142f258e225a19281d00cb76ad88d | move out new date from loop (#105) | lib/metrics/heapSpacesSizeAndUsed.js | lib/metrics/heapSpacesSizeAndUsed.js | 'use strict';
var Gauge = require('../gauge');
var v8;
try {
v8 = require('v8');
} catch (e) {
// node version is too old
// probably we can use v8-heap-space-statistics for >=node-4.0.0 and <node-6.0.0
}
var METRICS = [
'total',
'used',
'available'
];
var NODEJS_HEAP_SIZE = {};
METRICS.forEach(function(me... | JavaScript | 0.000001 | @@ -876,16 +876,40 @@
%7B%7D%0A%09%09%7D;
+%0A%09%09var now = Date.now();
%0A%0A%09%09v8.g
@@ -974,33 +974,8 @@
) %7B%0A
-%09%09%09var now = Date.now();%0A
%09%09%09v
|
37ec22f139699f9bc054e43a8b486476b85c1289 | FIX Linter errors | lib/middlewares/responseGenerator.js | lib/middlewares/responseGenerator.js | /*
* Copyright 2014 Telefonica Investigación y Desarrollo, S.A.U
*
* This file is part of iotagent-thinking-things
*
* iotagent-thinking-things is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, eit... | JavaScript | 0 | @@ -2568,155 +2568,8 @@
) %7B%0A
- var confAttribute = req.configurationValues%5BparsedBody.id%5D.name,%0A confName = confAttribute.substr(confAttribute.lastIndexOf('_') + 1);%0A%0A
|
9e1b1ae856b8d9970281a2666adcff5a15a08dbc | add IndigoInchi.loadMolecule | indigo_inchi.js | indigo_inchi.js | /****************************************************************************
* Copyright (C) 2015-2016 EPAM Systems
*
* This file is part of Indigo-Node binding.
*
* This file may be distributed and/or modified under the terms of the
* GNU General Public License version 3 as published by the Free Software
* F... | JavaScript | 0.999798 | @@ -1973,16 +1973,311 @@
1);%0A%7D;%0A%0A
+/*%0A * %0A * %0A * @method loadMolecule%0A * @param %7Bstring%7D %0A * @return %7Bobject%7D a new indigo object%0A */%0AIndigoInchi.prototype.loadMolecule = function (inchi) %7B%0A%09this.indigo._setSessionId();%0A%09return new IndigoObject(this.indigo, this.indigo._checkRes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.