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 |
|---|---|---|---|---|---|---|---|
ff0e3ffa5ec552bb704107286d55d26e7b7d060e | Increase font size. | server/image-handler.js | server/image-handler.js | var _ = require('lodash');
var gm = require('gm');
gm = gm.subClass({ imageMagick: true });
var log = require('./logger').log;
exports.getFirstFrameOfGif = function(imageBuffer, callback) {
gm(imageBuffer, 'image.gif[0]')
.toBuffer('PNG', function(err, buffer) {
if (err) {
log.error("Could not ext... | JavaScript | 0 | @@ -928,32 +928,33 @@
dth/fontSize)*1.
+7
5);%0A console.
@@ -1313,24 +1313,25 @@
fontSize)*1.
+7
5);%0A%0A
@@ -1525,16 +1525,17 @@
Size)*1.
+7
5);%0A
|
4d8019cc48591c42b059a586de45afec8ff293cc | fix user-badge links | lib/header/user-badge/component.js | lib/header/user-badge/component.js | import React, { Component } from 'react'
import { Link } from 'react-router'
import bus from 'bus'
import t from 't-component'
import config from 'lib/config'
import userConnector from 'lib/site/connectors/user'
export class UserBadge extends Component {
static links = [
config.frequentlyAskedQuestions
? {... | JavaScript | 0.000001 | @@ -2290,16 +2290,19 @@
ap((link
+, i
) =%3E (%0A
@@ -2315,17 +2315,50 @@
%3Cli
-%3E
+ key=%7B%60link-$%7Bi%7D%60%7D%3E%0A
%3CLink to
@@ -2389,16 +2389,29 @@
%7D%3C/Link%3E
+%0A
%3C/li%3E%0A
|
e396807e558bf337b540b2130a1d55ee0289e9da | Fix broken behavior when 'claimArticle' is used without notification | app/assets/javascripts/actions/assignment_actions.js | app/assets/javascripts/actions/assignment_actions.js | import API from '../utils/api.js';
import * as types from '../constants';
import logErrorMessage from '../utils/log_error_message';
import request from '../utils/request';
import { addNotification } from './notification_actions.js';
const fetchAssignmentsPromise = (courseSlug) => {
return request(`/courses/${cours... | JavaScript | 0.000148 | @@ -2121,32 +2121,59 @@
nment) %7B%0A
+ if (successNotification) %7B
dispatch(addNot
@@ -2204,16 +2204,18 @@
ation));
+ %7D
%0A
|
de534245c53424cebb18f437e2cf59ab8a0cc600 | Fix failing test | spec/spec.fourth-wall.js | spec/spec.fourth-wall.js | function setupMoment(date, anObject) {
spyOn(anObject, "moment");
anObject.moment.plan = function () {
var realMoment = anObject.moment.originalValue;
// set "now" to a fixed date to enable static expectations
if (!arguments.length) {
return realMoment(date);
}
return realMoment.apply(null... | JavaScript | 0.000209 | @@ -6367,16 +6367,17 @@
o 10:01%0A
+%0A
@@ -6406,21 +6406,95 @@
time).to
-Equal
+BeGreaterThan(expected - 120);%0A expect(result.elapsed_time).toBeLessThan
(expecte
@@ -6494,16 +6494,22 @@
expected
+ + 120
);%0A
|
ced547d4bac3d52282483f843a510c7c5bfa6a76 | make final test | des_sample.js | des_sample.js | var assert = require('assert');
var crypto = require('crypto');
| JavaScript | 0.00016 | @@ -53,12 +53,1310 @@
('crypto');%0A
+%0Afunction test_des(param) %7B%0A var key = new Buffer(param.key);%0A var iv = new Buffer(param.iv ? param.iv : 0)%0A var plaintext = param.plaintext%0A var alg = param.alg%0A var autoPad = param.autoPad%0A%0A //encrypt%0A var cipher = crypto.createCipheriv(a... |
b14b5d08a804641aedb2225f99f8040fe8b01f0c | Fix request | lib/index.js | lib/index.js | var config = require('config');
var SparkPost = require('sparkpost');
var client = new SparkPost(config.Email.SparkPostKey);
/***
* Send an email via SparkPost
* @param message The message object you want to send. Has .html and .text properties
* @param options Send options.
* @param callback
* @constructor
*/
e... | JavaScript | 0.000001 | @@ -1892,33 +1892,16 @@
(request
-.transmissionBody
, functi
|
0587664760886f8ab3237c64bfb4fdb5768034ee | Make end-transaction warnings more obvious when debugging | lib/instrumentation/transaction.js | lib/instrumentation/transaction.js | 'use strict'
var uuid = require('node-uuid')
var debug = require('debug')('opbeat')
var Trace = require('./trace')
module.exports = Transaction
function Transaction (agent, name, type, result) {
Object.defineProperty(this, 'name', {
configurable: true,
enumerable: true,
get: function () {
return ... | JavaScript | 0.000012 | @@ -1834,16 +1834,25 @@
debug('
+WARNING:
no curre
@@ -2012,16 +2012,25 @@
debug('
+WARNING:
transact
|
75384d50a7872c38cf7b2c8b3d271b9df80c9211 | Improve search and mentions suggestions | app/assets/javascripts/app/views/search_base_view.js | app/assets/javascripts/app/views/search_base_view.js | app.views.SearchBase = app.views.Base.extend({
initialize: function(options) {
this.ignoreDiasporaIds = [];
this.typeaheadInput = options.typeaheadInput;
this.setupBloodhound(options);
if(options.customSearch) { this.setupCustomSearch(); }
this.setupTypeahead();
// TODO: Remove this as soon as... | JavaScript | 0 | @@ -774,50 +774,78 @@
-var nameTokens = this.bloodhoundTokenizer(
+// hashtags%0A if(typeof datum.handle === %22undefined%22) %7B return %5B
datu
@@ -850,18 +850,20 @@
tum.name
-);
+%5D; %7D
%0A
@@ -867,67 +867,68 @@
-var handleTokens = datum.handle ? this.bloodhoundTokenizer(
+// people%0A... |
547d756fe6fad2f9cef7d41c757f8ddc0c017e19 | Clean up from loging/new tab | app/scripts/controllers/dashboard/dashboard.js | app/scripts/controllers/dashboard/dashboard.js | (function() {
'use strict';
angular.module('sslv2App')
.controller('DashboardCtrl', DashboardCtrl);
DashboardCtrl.$inject = ['$state', '$cookies'];
function DashboardCtrl($state, $cookies) {
// console.log($cookies);
// console.log($cookies.getObject(sessionStorage.getItem('id')));
// console... | JavaScript | 0 | @@ -203,148 +203,8 @@
) %7B%0A
- // console.log($cookies);%0A // console.log($cookies.getObject(sessionStorage.getItem('id')));%0A // console.log($cookies.get('id'));%0A
@@ -408,10 +408,8 @@
-//
$coo
|
97d59a87efe6548d840a482a2a494760d4e740b5 | add remove method to typeahead | grails-app/assets/javascripts/imms.form.pack.js | grails-app/assets/javascripts/imms.form.pack.js | // bootstrap 3.1.1
// + datetimepicker 3.0.0 https://github.com/Eonasdan/bootstrap-datetimepicker http://eonasdan.github.io/bootstrap-datetimepicker
// + typeahead https://github.com/bassjobsen/Bootstrap-3-Typeahead
//
//
//= require imms.datatable.pack
//= require imms.datepicker.pack
//= require_self
(function($, Ba... | JavaScript | 0 | @@ -2451,32 +2451,259 @@
%7D);%0A
+ %7D,%0A remove: function() %7B%0A if(this.$el.data('typeahead')) %7B%0A this.$el.data('typeahead').destroy();%0A %7D%0A return Backbone.View.prototype.remove.apply(this, arguments);%0A
%7D%0A %7D)
... |
7236996be64bc98f8cdc58c3b854519fa1c2e3f5 | Fix test config. | spec/util/config-mock.js | spec/util/config-mock.js | var validator = require("../../lib/config/validator");
module.exports = {
databaseUri: "nedb://spec-db",
homeServerUrl: "https://some.home.server.goeshere",
homeServerDomain: "some.home.server",
homeServerToken: "foobar",
botLocalpart: "monkeybot",
appServiceToken: "it's a secret",
appServi... | JavaScript | 0 | @@ -882,17 +882,44 @@
h
-s
+omeserver: %7B%0A url
: module
@@ -954,11 +954,13 @@
-hsD
+ d
omai
@@ -993,18 +993,54 @@
erDomain
-,
%0A
+ %7D,%0A appservice: %7B%0A
@@ -1086,18 +1086,23 @@
-as
+ url
: module
@@ -1123,18 +1123,48 @@
rviceUrl
-,
%0A... |
e5bb36b8ee9718b5b6b765ca3fdbfda7431eb61b | test is now es6 | app/templates/test/test.js | app/templates/test/test.js | 'use strict'
var test = require('tape')
, <%= repoName %> = require('../')
test('<%= repoName %>#get', function getTest(t){
t.plan(2)
t.doesNotThrow(
<%= repoName %>.get
, 'does not throw'
)
t.ok(
'I was too lazy to write any tests. Shame on me.'
, 'must have at least one test'
)
})
| JavaScript | 0 | @@ -1,81 +1,69 @@
-'use strict'%0A%0Avar test = require('tape')%0A , %3C%25= repoName %25%3E = require('../')
+import test from 'tape'%0Aimport %3C%25= repoName %25%3E from '../index.js'
%0A%0Ate
@@ -92,27 +92,15 @@
t',
-function getTest(t)
+(t) =%3E
%7B%0A
|
444c56ed67d4bf98c5d81a48334468999d7fe69c | Fix Webpack Middleware in Browsersync | app/templates/src/gulpfile/tasks/browsersync.js | app/templates/src/gulpfile/tasks/browsersync.js | /**
* Browser Sync
* @description Refresh the Browser after File Change.
*/
import kc from '../../config.json'
import gulp from 'gulp'
import browserSync from 'browser-sync'
import webpack from 'webpack'
import webpackDevMiddleware from 'webpack-dev-middleware'
import webpackHotMiddleware from 'webpack-hot-middlewa... | JavaScript | 0.000001 | @@ -651,218 +651,8 @@
true
-,%0A middleware: %5B%0A webpackDevMiddleware(bundler, %7B%0A publicPath: webpackSettings.output.publicPath,%0A stats: %7B colors: true %7D%0A %7D),%0A webpackHotMiddleware(bundler)%0A %5D
%0A
@@ -869,16 +869,226 @@
bsProxy,
+%0A mid... |
ae65c7453c43c3fc4b5156ada42b4d6ae7781649 | fix bug | src/admin/directives/nd-navigation.directive.js | src/admin/directives/nd-navigation.directive.js | /**
* ndNavigation Directives
*/
angular.module('directives').directive('ndNavigation', ['$templateCache', '$rootScope', '$state', '$timeout', '$http', '$filter', 'account',
function ($templateCache, $rootScope, $state, $timeout, $http, $filter, account) {
return {
restrict: 'E',
template: $templateCa... | JavaScript | 0.000001 | @@ -654,24 +654,59 @@
deShow () %7B%0A
+ $timeout(function () %7B%0A
$(
@@ -741,32 +741,34 @@
) %7B%0A
+
+
var self = $(thi
@@ -764,32 +764,34 @@
elf = $(this);%0A%0A
+
if (
@@ -831,24 +831,26 @@
active')) %7B%0A
+
@@ -905,32 +905,34 @@
');%0A ... |
2531721001c9803831522312de485c876d03d830 | fix typo in migratorInterface | lib/interface/migratorInterface.js | lib/interface/migratorInterface.js |
function MigratorInterface() {
}
MigratorInterface.prototype = {
checkDBMS: function() {
arguments[arugments.length - 1]('not implemented');
},
createDatabase: function() {
arguments[arugments.length - 1]('not implemented');
},
switchDatabase: function() {
arguments[arugments.length - 1]... | JavaScript | 0.000007 | @@ -97,34 +97,34 @@
arguments%5Bar
-u
g
+u
ments.length - 1
@@ -192,34 +192,34 @@
arguments%5Bar
-u
g
+u
ments.length - 1
@@ -286,34 +286,34 @@
arguments%5Bar
-u
g
+u
ments.length - 1
@@ -378,34 +378,34 @@
arguments%5Bar
-u
g
+u
ments.length - 1
@@ -472,34 +472,34 @@
arguments%5Bar
-u
... |
5b17408af31ef24321331cc4dfef0a348558eb48 | Fix example for edit-form | tests/dummy/app/controllers/components-examples/flexberry-objectlistview/on-edit-form/suggestion.js | tests/dummy/app/controllers/components-examples/flexberry-objectlistview/on-edit-form/suggestion.js | import Ember from 'ember';
import BaseEditFormController from 'ember-flexberry/controllers/edit-form';
import EditFormControllerOperationsIndicationMixin from 'ember-flexberry/mixins/edit-form-controller-operations-indication';
import { Query } from 'ember-flexberry-data';
export default BaseEditFormController.extend... | JavaScript | 0.998397 | @@ -2867,253 +2867,8 @@
%7D,%0A%0A
- customFolvContentObserver: Ember.observer('model', 'model.type', 'perPage', 'page', 'sorting', 'filter', 'filters', function() %7B%0A let _this = this;%0A%0A Ember.run(function() %7B%0A Ember.run.once(_this, 'getCustomContent');%0A %7D);%0A %7D),%0A%0A
ob
@@ -339... |
32a4c17868122e5106903f47c39d77256090f4b9 | purge local functions in sellingReduced() and shiftedIntoDirichletDomain() | src/geometry/lattices.js | src/geometry/lattices.js | import { floatMatrices } from '../arithmetic/types';
const ops = floatMatrices;
const eps = Math.pow(2, -50);
const trim = x => Math.abs(x) < eps ? 0 : x;
const lift = op => (...args) => args.reduce((a, b) => op(a, b));
const sum = lift(ops.plus);
const gaussReduced = (u, v, dot = ops.times) => {
const vs = [u... | JavaScript | 0 | @@ -835,39 +835,52 @@
)%5D;%0A
-%0A
-const _sellingStep = () =%3E %7B
+let changed;%0A%0A do %7B%0A changed = false;%0A
%0A
@@ -1130,22 +1130,25 @@
i%5D);%0A%09
-return
+changed =
true;%0A%09
@@ -1166,28 +1166,24 @@
%7D%0A %7D
-;%0A%0A
while (
_selling
@@ -1178,29 +1178,17 @@
le (
-_sellingS... |
1a9ed008420563c396ce3bf6cbb5699e64516d20 | improve coverage for Image (#4673) | src/js/components/Image/__tests__/Image-test.js | src/js/components/Image/__tests__/Image-test.js | import React from 'react';
import renderer from 'react-test-renderer';
import 'jest-styled-components';
import 'jest-axe/extend-expect';
import 'regenerator-runtime/runtime';
import { cleanup, render } from '@testing-library/react';
import { axe } from 'jest-axe';
import { Grommet } from '../../Grommet';
import { Imag... | JavaScript | 0 | @@ -177,16 +177,21 @@
import %7B
+ act,
cleanup
@@ -191,16 +191,27 @@
cleanup,
+ fireEvent,
render
@@ -2196,28 +2196,330 @@
ree).toMatchSnapshot();%0A%7D);%0A
+%0Atest('Image onError', () =%3E %7B%0A const onError = jest.fn();%0A const %7B getByAltText %7D = render(%0A %3CGrommet%3E%0A %3CImage alt=%2... |
41966ae3b6495e75b820280d92c8e7626a4d5cdc | remove log, spell correctly | guide/buildpages.js | guide/buildpages.js | var Handlebars = require('handlebars')
var fs = require('fs')
var glob = require('glob')
var layout = fs.readFileSync(__dirname + '/layout.hbs').toString()
var thefiles = []
var lang = process.argv[2]
// I can probably use glob better to avoid
// finding the right files within the files
var rawFiles = __dirname + (la... | JavaScript | 0.000003 | @@ -411,16 +411,17 @@
? '/chal
+l
enges-'
@@ -2563,64 +2563,8 @@
ce)%0A
- // console.log(data)%0A // console.log(template(data))%0A
re
|
a20ee920da212df682267ccfd24ead81d6037e33 | Add GTM environments support (#114) | addon/metrics-adapters/google-tag-manager.js | addon/metrics-adapters/google-tag-manager.js | import Ember from 'ember';
import canUseDOM from '../utils/can-use-dom';
import objectTransforms from '../utils/object-transforms';
import BaseAdapter from './base';
const {
assert,
get,
set,
$,
getWithDefault,
String: { capitalize }
} = Ember;
const assign = Ember.assign || Ember.merge;
const {
compact
... | JavaScript | 0 | @@ -525,16 +525,27 @@
nst %7B id
+, envParams
%7D = con
@@ -593,16 +593,17 @@
(config,
+
'dataLay
@@ -620,16 +620,77 @@
Layer');
+%0A const envParamsString = envParams ? %60&$%7BenvParams%7D%60: '';
%0A%0A as
@@ -847,40 +847,8 @@
) %7B%0A
- /* jshint ignore:start */%0A
@@ -865,31 +865,58 @@
n... |
de03e40d7da979937fc0ad991e82349abadcbb35 | fix formatting | src/components/rows/presentation/Subtotal.js | src/components/rows/presentation/Subtotal.js | import React from 'react'
import { TableRow, TableRowColumn } from 'material-ui/Table'
const Subtotal = ({style, salary, kiwisaver, depreciation, phoneContribution}) => {
const sum = +salary + +kiwisaver + +depreciation + +phoneContribution
return (
<TableRow>
<TableRowColumn>
<h3>Subtotal</h3>
... | JavaScript | 0.001459 | @@ -180,17 +180,16 @@
t sum =
-+
salary +
@@ -189,17 +189,16 @@
alary +
-+
kiwisave
@@ -201,17 +201,16 @@
saver +
-+
deprecia
@@ -216,17 +216,16 @@
ation +
-+
phoneCon
|
15c1ddfe1896850e2f8af6a024c9966eec965cbe | update script | kptalks.js | kptalks.js | var img_source = 'http://unlimited.kptaipei.tw/images/kp.png',
api_source = 'http://api.kptaipei.tw/v1/category/40?accessToken=kp53f568e77303e9.28212837',
kp_height = 450, // 圖片高度
kp_width = Math.ceil(kp_height*30/29),
kp_left_distance = '-130px', // 滑入後的 left
kp_slide_speed = 100, // 滑入... | JavaScript | 0.000001 | @@ -3490,20 +3490,14 @@
) %3E
-(
page_h
-*0.8)
) %7B%0A
|
1b1b08c3d88984b3c8cef3fc40afb3425b0df5a6 | Add the simplest of simple `alert` error handling | editorsnotes_app/js/views/save_item_mixin.js | editorsnotes_app/js/views/save_item_mixin.js | "use strict";
var saveRow = require('../templates/save_row.html')();
module.exports = {
events: {
'click .save-item': '_handleSave'
},
render: function () {
this.$el.append(saveRow)
},
toggleLoaders: function (state) {
this.$('.save-item').prop('disabled', state);
this.$('.loader').toggle(st... | JavaScript | 0.007722 | @@ -451,16 +451,102 @@
%7D%0A %7D,%0A
+ handleError: function (errorObj) %7B%0A alert(window.JSON.stringify(errorObj));%0A %7D,%0A
defaul
@@ -791,16 +791,121 @@
, '/');%0A
+ %7D)%0A .fail(function (jqXHR, textStatus, error) %7B%0A that.handleError(jqXHR.responseJSON);%0A
%7D)
|
2b6c5419aa7befeb0a425ec54746864b8bba75a1 | Fix scan time ordering for tests | custom/uth/_design/views/uth_lookup/map.js | custom/uth/_design/views/uth_lookup/map.js | function(doc) {
if (doc.type === "child" && doc.scan_status !== 'scan_complete' && doc.domain === "uth-rhd") {
emit([doc.domain, 'VH014466XK', doc.exam_number, doc.date], doc._id);
}
}
| JavaScript | 0.000001 | @@ -173,11 +173,16 @@
doc.
-dat
+scan_tim
e%5D,
|
a32cb24145cfaac60363f6fa6d7826609a410c6d | Add a gulp task to build only styles (css + type) | gulpfile.js | gulpfile.js | 'use strict';
// Dependencies
var gulp = require('gulp');
var del = require('del');
var gutil = require('gulp-util');
var zip = require('gulp-zip');
var sass = require('gulp-sass');
var minifyCss = require('gulp-minify-css');
var browserify = require('browserify');
var babelify = require('babelify');
var source = requ... | JavaScript | 0 | @@ -2099,32 +2099,167 @@
st('./'));%0A%7D);%0A%0A
+gulp.task('styles-only', function(callback) %7B%0A return runSequence(%0A %5B'build:css', 'typography'%5D,%0A 'zip',%0A callback%0A );%0A%7D);%0A%0A
gulp.task('defau
|
eca0e66e2363d1dd65ec15e906b41cac0bba47ac | Remove use of dynamic require to facilitate bundling (#960) | lib/index.js | lib/index.js | 'use strict';
const Sharp = require('./constructor');
[
'input',
'resize',
'composite',
'operation',
'colour',
'channel',
'output',
'utility'
].forEach(function (decorator) {
require('./' + decorator)(Sharp);
});
module.exports = Sharp;
| JavaScript | 0 | @@ -52,171 +52,229 @@
');%0A
-%5B%0A 'input',%0A 'resize',%0A 'composite',%0A 'operation',%0A 'colour',%0A 'channel',%0A 'output',%0A 'utility'%0A%5D.forEach(function (decorator) %7B%0A require('./' + decorator
+require('./input')(Sharp);%0Arequire('./resize')(Sharp);%0Arequire('./composite')(Sharp);%0Arequir... |
fb2600cd9e383a6cd82332bbf28f25915a65e9f7 | fix prefs | src/gnome-shell/prefs.js | src/gnome-shell/prefs.js | /*
* This file is part of GPaste.
*
* Copyright (c) 2010-2022, Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
*/
imports.gi.versions.GPasteGtk = '4';
const ExtensionUtils = imports.misc.extensionUtils;
const { GPasteGtk } = imports.gi;
/** */
function init() {
ExtensionUtils.initTranslations();
}
/**
*... | JavaScript | 0 | @@ -410,17 +410,17 @@
asteGtk.
-p
+P
referenc
@@ -425,10 +425,9 @@
nces
-_w
+W
idge
|
bb7a3a1d6b415d48fa71dd223677113d9466a27c | update to dont refind for new notifications if last check returns 403 | files/public/we.notification.js | files/public/we.notification.js | /**
* Notifications client side lib
*/
(function (we) {
we.notification = {
count: 0,
countDisplay: null,
link: null,
init: function() {
this.countDisplay = $('.main-menu-link-notification-count');
this.link = $('.main-menu-notification-link');
// only start if both elements is found
if (th... | JavaScript | 0 | @@ -120,16 +120,75 @@
k: null,
+%0A notificationsCountCheckDelay: 60000,// check every 1 min
%0A%0A init
@@ -444,67 +444,9 @@
%7D,%0A%0A
- notificationsCountCheckDelay: 60000,// check every 1 min
%0A
+
la
@@ -807,14 +807,43 @@
ion
+onSuccessGetNewNotifications
(data)
+
%7B%0A
@@ -1010,37 +1010,187 @@
... |
356af3ffe0943858a9b828ba25fc21374c66aba9 | check version | lib/check-version.js | lib/check-version.js | var axios = require('axios')
var semver = require('semver')
var chalk = require('chalk')
var packageConfig = require('../package.json')
module.exports = function (done) {
axios
.get('https://registry.npmjs.org/easy-mock-cli', {
timeout: 1000
})
.then((res) => {
if (res.status === 200) {
... | JavaScript | 0 | @@ -247,9 +247,9 @@
ut:
-1
+3
000%0A
@@ -732,22 +732,26 @@
- done()%0A %7D
+%7D)%0A .catch(done
)%0A%7D%0A
|
788a746ea3a906c1d65e99b536e12307e1868ef3 | Fix log level bug. | graphql/utils/logger.js | graphql/utils/logger.js |
import config from '../config'
const logLevels = {}
logLevels.LOG = 'log'
logLevels.DEBUG = 'debug'
logLevels.INFO = 'info'
logLevels.WARN = 'warn'
logLevels.ERROR = 'error'
logLevels.FATAL = 'fatal'
const logLevelsOrder = [
logLevels.DEBUG,
logLevels.LOG,
logLevels.INFO,
logLevels.WARN,
logLevels.ERROR,
... | JavaScript | 0 | @@ -336,104 +336,8 @@
%0A%5D%0A%0A
-const LOG_LEVEL = (%0A logLevels%5Bconfig.LOG_LEVEL%5D%0A ? logLevels%5Bconfig.LOG_LEVEL%5D%0A : 'debug'%0A)%0A
%0A//
@@ -1224,16 +1224,23 @@
gLevel,
+config.
LOG_LEVE
|
3e49354944cac9e5f4b87fa35f21659f7bea99f9 | Fix typos | dist/notification.js | dist/notification.js | /*
* This file is part of the Browser Notification package.
*
* (c) Dimgba Kalu <dkdimgba@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
// notification body in an array
var articles = [
["ProJaro is recruiting","http... | JavaScript | 0.999999 | @@ -727,33 +727,33 @@
d description. Y
-O
+o
u can as well ad
@@ -929,32 +929,33 @@
et the url of te
+c
h article%0A%09var u
@@ -1638,17 +1638,17 @@
ption. Y
-O
+o
u can as
@@ -2103,26 +2103,26 @@
ation is ava
-l
i
+l
able on your
@@ -2323,13 +2323,13 @@
is
-vaali
+avail
able
@@ -2513,18 +2513,18 @@
tion ... |
f88cde3eafc2e14ea0277366dbd15e5f85644497 | Add docs | lib/index.js | lib/index.js | var fs = require('fs');
function Chidori(jsonFile) {
this.jsonFile = jsonFile;
this.object = {};
if (fs.existsSync(this.jsonFile)) {
this.object = JSON.parse(fs.readFileSync(this.jsonFile, 'utf8'));
} else {
fs.writeFileSync(this.jsonFile, JSON.stringify(this.object));
}
return Database.bind(th... | JavaScript | 0.000001 | @@ -18,16 +18,85 @@
'fs');%0A%0A
+/**%0A * Create a Chidori Database.%0A *%0A * @param %7BString%7D jsonFile%0A */%0A
function
@@ -382,32 +382,128 @@
.bind(this);%0A%7D%0A%0A
+/**%0A * Query for the collection and create methods for it.%0A *%0A * @param %7BString%7D collection%0A */%0A
function Databas
@@ -595,16 +... |
fcbc38f1fba208d7de8dd9a67e220949dbacf14c | Remove done TODO. | dispatcher.js | dispatcher.js | var cadence = require('cadence')
var dispatch = require('dispatch')
var interrupt = require('interrupt').createInterrupter('bigeasy.inlet')
var Operation = require('operation')
var Reactor = require('reactor')
var slice = [].slice
function Dispatcher (options) {
options.object || (options = { object: options })
... | JavaScript | 0 | @@ -940,40 +940,8 @@
%0A%7D%0A%0A
-// TODO Create %60inlet.wrapped%60.%0A
Disp
|
57da5124dbc8b58684b66f6a5498e3715da8aded | Remove ErrorComponent. | assets/js/components/dashboard/dashboard-app.js | assets/js/components/dashboard/dashboard-app.js | /**
* DashboardApp component.
*
* Site Kit by Google, Copyright 2019 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 | @@ -1212,83 +1212,8 @@
er';
-%0Aimport ErrorComponent from 'GoogleComponents/ErrorHandler/ErrorComponent';
%0A%0Acl
@@ -1294,31 +1294,8 @@
er%3E%0A
-%09%09%09%09%3CErrorComponent /%3E%0A
%09%09%09%09
|
dad1e9db33029661441c191fabd8efa447aced4f | Remove comments | c/series_switch.js | c/series_switch.js | /**
* Series switch box.
* @constructor
*/
function series_switch(options){
this.on = false;
this.dom_obj = {};
this.series_box = {};
this.series = [];
this.cur_idx = 0;
this.callback = function(){};
this.parent = {};
if (options && options.hasOwnProperty('parent'))... | JavaScript | 0 | @@ -610,168 +610,13 @@
j);%0A
- //var series_switch_title = create_block_element('series_switch_title', this.dom_obj);%0A //series_switch_title.innerHTML = word%5B'player_series_uc'%5D;%0A
%0A
+
@@ -773,32 +773,33 @@
this.hide();%0A%7D
+;
%0A%0Aseries_switch.
@@ -912,12 +912,8 @@
-var
cur_... |
3b8989f75b270b6e1ad596e3a8c7be8786301c85 | save image from api.meetup.com | src/graphql/mutations.js | src/graphql/mutations.js | import { graphql, compose } from 'react-apollo';
import gql from 'graphql-tag';
import { pick, isArray } from 'lodash';
const createOrderQuery = gql`
mutation createOrder($order: OrderInputType!) {
createOrder(order: $order) {
id,
createdAt,
createdByUser {
id,
},
fromCollec... | JavaScript | 0 | @@ -2901,32 +2901,49 @@
'name',%0A
+ 'image',%0A
'descrip
|
7ee32efb70c904ca040eb56d52ad5bcc031e043a | add path for get subscribe list | notification_server/server.js | notification_server/server.js | const express = require('express')
const bodyParser = require('body-parser')
const mongoose = require('mongoose')
const webpush = require('web-push')
const cors = require('cors')
const config = require('config')
mongoose.connect(config.get('DB_URL'))
const Schema = mongoose.Schema
const subSchema = Schema({
userId: ... | JavaScript | 0 | @@ -841,16 +841,146 @@
g')%0A%7D)%0A%0A
+app.get('/subscribe', (req, res) =%3E %7B%0A Subscribe.find(%7B%7D)%0A .then(data =%3E res.send(data))%0A .catch(error =%3E res.send(error))%0A%7D)%0A%0A
app.post
|
f6bb6f7c21ba84fe8bb0978351508397d40b5c90 | Translate "User's Documents" heading above search | public/javascripts/model/accounts.js | public/javascripts/model/accounts.js | // Account Model
dc.model.Account = Backbone.Model.extend({
DISABLED : 0,
ADMINISTRATOR : 1,
CONTRIBUTOR : 2,
REVIEWER : 3,
FREELANCER : 4,
ROLE_NAMES : ['disabled', 'administrator', 'contributor', 'reviewer', 'freelancer'], // NB: Indexed by role number.
... | JavaScript | 0.999996 | @@ -3059,17 +3059,26 @@
()) + '
-D
+' + _.t('d
ocuments
@@ -3078,16 +3078,17 @@
cuments'
+)
;%0A %7D,%0A%0A
|
995d021adcf0d19e4c934e2363c15c1c98e24123 | add brackets to separate logic | src/javascript/binary/common_functions/currency.js | src/javascript/binary/common_functions/currency.js | const jpClient = require('./country_base').jpClient;
const getLanguage = require('../base/language').get;
const getPropertyValue = require('../base/utility').getPropertyValue;
let currencies_config = '';
const formatMoney = (currency_value, amount, exclude_currency) => {
const is_crypto = isCryptocur... | JavaScript | 0.000002 | @@ -2057,16 +2057,17 @@
s'%5D) %7C%7C
+(
isCrypto
@@ -2111,16 +2111,17 @@
? 0 : 2)
+)
%0A);%0A%0A//
|
71b5b53c81b668485813c1b7feb4230557de13ef | Use int instead of string for parseInt radix. | content_scripts/dom.js | content_scripts/dom.js | window.DOM = {
isSubmittable: function(element) {
if (!element) {
return false;
}
if (element.localName !== 'input')
return false;
if (element.hasAttribute('submit'))
return true;
while (element = element.parentElement) {
if (element.localName === 'form')
return tr... | JavaScript | 0 | @@ -3649,20 +3649,18 @@
.width,
-'
10
-'
) === 0
@@ -3705,12 +3705,10 @@
ht,
-'
10
-'
) ==
|
75dd9fc2b760387da6125c61120948a7be14a6e0 | Fix js action_save in ra.remote-form | app/assets/javascripts/rails_admin/ra.remote-form.js | app/assets/javascripts/rails_admin/ra.remote-form.js | /*
* RailsAdmin remote form @VERSION
*
* License
*
* http://www.railsadmin.org
*
* Depends:
* jquery.ui.core.js
* jquery.ui.widget.js
* jquery.ui.dialog.js
*/
(function($) {
$.widget("ra.remoteForm", {
_create: function() {
var widget = this
var dom_widget = widget.element;
va... | JavaScript | 0.000003 | @@ -3262,32 +3262,33 @@
.click(function(
+e
)%7B%0A // Pa
|
ddd9fcb7574938cc839294eebfd70c4fa6086738 | Check devices.length >= 1. | blink1/color-picker.js | blink1/color-picker.js | (function() {
var ui = {
r: null,
g: null,
b: null
};
var connection = -1;
function initializeWindow() {
for (var k in ui) {
var id = k.replace(/([A-Z])/, '-$1').toLowerCase();
var element = document.getElementById(id);
if (!element) {
throw "Missing UI element: " + k... | JavaScript | 0 | @@ -1052,16 +1052,108 @@
%0A %7D%0A%0A
+ if (devices.length %3C 1) %7B%0A console.warn(%22No devices found.%22);%0A return;%0A %7D%0A%0A
chro
|
bf79c49cf8da1adabccd552a9595462e139b3f55 | Normalise weights by mean weight and keep better half | example/drummer/local_modules/mcbsp/index.js | example/drummer/local_modules/mcbsp/index.js | // Multi-channel binary predictor
//
const lib = require('./lib');
const binaryEntropy = require('./binaryEntropy');
const way = require('senseway');
exports.past = (hist, t, size) => {
// Multi-channel past
return way.before(hist, t, size)
};
exports.future = (hist, t, size) => {
// Multi-channel future
retu... | JavaScript | 0.000001 | @@ -1632,19 +1632,19 @@
st);%0A%0A
-var
+let
weights
@@ -1743,14 +1743,169 @@
sim
- * sim
+;%0A %7D);%0A%0A const weightMean = lib.arrayMean(weights);%0A%0A // Pick weights above mean weight.%0A weights = weights.map(w =%3E %7B%0A return Math.max(0, w - weightMean)
;%0A
|
79dd015d323bedfbddddfcb280b01bdc99b28c75 | Remove unused code. | gulp/tasks/watch.js | gulp/tasks/watch.js | var gulp = require('gulp');
var path = require('path');
var util = require('gulp-util');
var del = require('del');
var Glob = require('../glob.js');
// https://github.com/gulpjs/gulp/blob/master/docs/API.md#eventtype
var WatchEventType = {
Added: 'added',
Changed: 'changed',
Deleted: 'deleted'
};
//... | JavaScript | 0 | @@ -814,13 +814,8 @@
Path
- = ''
;%0D%0A%0D
|
aaa42ea552f9443fa8aacbf58defb3de2b52de2b | fix sample middleware order | webtasks.js | webtasks.js | /*jslint node: true */
'use strict';
var express = require('express'),
webtask = require('./lib/webtask'),
app = module.exports = express();
webtask.init(app);
/* istanbul ignore next */
if (!module.parent) {
app.webtask('/', app.page('sample2'));
app.webtask('/module/header', app.module('header'));
... | JavaScript | 0.000001 | @@ -217,51 +217,8 @@
) %7B%0A
- app.webtask('/', app.page('sample2'));%0A
@@ -324,24 +324,67 @@
Product'));%0A
+ app.webtask('/', app.page('sample2'));%0A
app.list
|
5ec4001c3073e464e8c143aa040d7db7b48ba3e2 | Create accurate gameStats array full of objects | server/serverHelpers.js | server/serverHelpers.js | var knex = require('knex')({
client: 'sqlite3',
connection: {
filename: './database.sqlite3'
}
});
exports.createGamesForTourney = function(tourneyId, playersInTourneyList) {
// games array will be returned by this function
var games = [];
// while there is more than one player in the tourneyPlayersLi... | JavaScript | 0.000001 | @@ -1078,150 +1078,168 @@
) %7B%0A
+%0A
//
-Output:%0A//
+if (tourneyId)
%7B%0A
+
//
-playerId:%0A// gp:%0A// won:%0A// loss:%0A// draw:%0A// gd%0A// %7D%0A%0A// Input:%0A// Games and players%0A%0A// Created Players Array
+knex('games')%0A // .where('tournament_id', tourneyId)%0A // .then(fun... |
cdbd66c0b6ed2739f5543e88a03ca17558d91a3d | Fix loading of single files | penelope.js | penelope.js | #!/usr/bin/env node
/*! csstool v0.0.0 - MIT license */
'use strict';
/**
* Module dependencies
*/
var _ = require('underscore'),
Penelope = require('./lib/Penelope'),
CliController = require('./lib/CliController'),
metrics = require('./metrics/All'),
formatters = require('./lib/Formatters'),
... | JavaScript | 0.000001 | @@ -2705,16 +2705,17 @@
dexOf('.
+s
css') !=
|
ff42975541efddd2d80e74e1428d5693c2569947 | fix yo yui3:handlebars | handlebars/index.js | handlebars/index.js | 'use strict';
var util = require('util');
var yeoman = require('yeoman-generator');
var fs = require("fs");
var Handlebars = require('yui/handlebars').Handlebars;
var path = require("path");
var HandlebarsGenerator = module.exports = function HandlebarsGenerator(args, options, config) {
yeoman.generators.Base.app... | JavaScript | 0.000117 | @@ -972,25 +972,24 @@
(matches) %7B%0A
-%0A
@@ -1146,16 +1146,38 @@
+ %22'%5D =
+Y.Handlebars.template(
%22 + Hand
@@ -1214,16 +1214,17 @@
Raw) + %22
+)
;%5Cn%22%0A
|
ef08e970848ec9746c8e76e73140dc3280757734 | Switch to using 'localhost' for API endpoint when making requests for combined feed | src/handlers/collator.js | src/handlers/collator.js | import goodGuyHttp from 'good-guy-http';
const goodGuy = goodGuyHttp({
// defaultCaching: {
// timeToLive: 300000,
// },
// headers: {
// 'User-Agent': 'Department of Commerce Intranet - request',
// },
// proxy: process.env.HTTP_PROXY,
timeout: 15000,
});
exports.combinedNews = async function col... | JavaScript | 0 | @@ -347,116 +347,8 @@
) %7B%0A
- // console.dir(request);%0A // console.dir(request.connection.server.info);%0A // console.dir(server.info);%0A
co
@@ -412,41 +412,8 @@
ol;%0A
- // console.log(endpointProto);%0A
co
@@ -476,37 +476,8 @@
//
- console.log(endpointPort);%0A
con
@@ -536,34 +536,8 @@
//
-... |
60641e726a545943fd1079fd69ce37ca762ae689 | Rename parameter graph to pie | cabdriver.js | cabdriver.js | #!/usr/bin/env node
var Program = require('commander');
var SemanticDate = require('semantic-date');
var Moment = require('moment-timezone');
var Async = require('async');
var Pad = require('pad');
var _ = require('underscore');
var auth = require('./lib/auth');
var slack_auth = require('./lib/slack_auth');
var calen... | JavaScript | 0.001286 | @@ -3087,13 +3087,17 @@
og('
-Graph
+Pie chart
: %25s
@@ -3103,29 +3103,27 @@
s', Program.
-graph
+pie
);%0A conso
@@ -3911,13 +3911,11 @@
ram.
-graph
+pie
);%0A
|
57f587ca457c86d9452146aeeda2d3b820a0811a | append slash in regular restangular api | onedegree/static/admin/app.js | onedegree/static/admin/app.js | define([
'angular'
, './namespace'
// add necessary app as you wish
, '../common/namespace'
, './tag/namespace'
// , './account/namespace'
// , './contact/namespace'
// , './search/namespace'
// , './group/namespace'
// , './common/namespace'
// , './quanquan/namespace'
// woul... | JavaScript | 0.000002 | @@ -2947,32 +2947,29 @@
%09
-//
.set
-BaseUrl(baseApiUrl
+RequestSuffix('/'
)%0A
@@ -3459,14 +3459,8 @@
r%5D =
- '@' +
par
@@ -3475,48 +3475,8 @@
er%5D;
-%09// fulltext search MySql supported only
%0A
@@ -5124,120 +5124,34 @@
%09
-console.log('response, interceptor');%0A %09return data;%0... |
4876620028a134fb32c9c06e3616f36a27f31571 | Remove get receipt override for given providers | src/wallets/web3-provider/providers/given-provider.js | src/wallets/web3-provider/providers/given-provider.js | import { Manager as Web3RequestManager } from 'web3-core-requestmanager';
import MiddleWare from '../middleware';
import {
ethSendTransaction,
ethSign,
ethSignTransaction,
ethGetTransactionCount,
ethGetTransactionReceipt
} from '../methods';
class GivenProvider {
constructor(host, options, store, eventHub) ... | JavaScript | 0.000001 | @@ -199,36 +199,8 @@
ount
-,%0A ethGetTransactionReceipt
%0A%7D f
@@ -1011,56 +1011,8 @@
t);%0A
- middleware.use(ethGetTransactionReceipt);%0A
|
c50a8f81b4f612e73a02866dfe1c9b4ef1f99d6b | Add ability to remove progressbar | src/lib/sherlockphotography/ss-event-log-widget.js | src/lib/sherlockphotography/ss-event-log-widget.js | YUI.add('ss-event-log-widget', function(Y, NAME) {
var EventLogEntry = Y.Base.create(
'ss-event-log-entry',
Y.Base,
[],
{
_progressBar: null,
_logTypeToClassname: function(type) {
var classname;
switch (type) {
case 'error':
case 'warning':
classname = type;
break;... | JavaScript | 0.000001 | @@ -839,24 +839,129 @@
ed);%0A%09%09%09%09%09%7D%0A
+%09%09%09%09%7D else if (this._progressBar) %7B%0A%09%09%09%09%09this._progressBar.destroy(true);%0A%09%09%09%09%09this._progressBar = null;%0A
%09%09%09%09%7D%0A%09%09%09%7D,%0A
@@ -1829,24 +1829,29 @@
essage: %7B%7D,%0A
+%09%09%09%09%0A
%09%09%09%09progress
|
265a51b0e4608ea9451421fe4caf1f00b5d95f0a | Fix bad hard coding of tile sizes | webtiles.js | webtiles.js | // url: url to JSON in format { tiles : [[1,2,3],[3,2,1]] }
// where tiles[x][y] = $number, such that there is a valid ".wt-$number" css class
// [0][0] is lower left
// all columns tiles[$i] should be equal length
// grid: id of the div to populate with tiles
function webtiles_load($, grid, url)... | JavaScript | 0.000013 | @@ -1295,26 +1295,42 @@
min-width:
-32
+%22 + tile_width + %22
px;%5Cn%22);%0A
@@ -1354,18 +1354,34 @@
width:
-32
+%22 + tile_width + %22
px;%5Cn%22);
@@ -1402,34 +1402,50 @@
ppend(%22 height:
-32
+%22 + tile_width + %22
px;%5Cn%22);%0A out
@@ -1563,18 +1563,35 @@
height:
-32
+%22 + tile_height + %22... |
5806b51eb352690bc8a4869899c7a4809720042b | Mark raven-shim as an ES module | vendor/raven-shim.js | vendor/raven-shim.js | define('raven', [], function() {
"use strict";
var Raven = window.Raven.noConflict();
return { 'default': Raven };
});
| JavaScript | 0.000001 | @@ -10,16 +10,25 @@
aven', %5B
+'exports'
%5D, funct
@@ -31,16 +31,23 @@
unction(
+exports
) %7B%0A %22u
@@ -65,77 +65,123 @@
%0A%0A
-var Raven = window.Raven.noConflict();%0A%0A return %7B 'default': Raven %7D
+Object.defineProperty(exports, %22__esModule%22, %7B%0A value: true%0A %7D);%0A%0A exports.def... |
84d083fb329cd22be922e6c89251862f2c10c82b | normalize branch protection response (`restrictions.apps_url`) | lib/normalize/branch-protection.js | lib/normalize/branch-protection.js | module.exports = branchProtection
const get = require('lodash/get')
const normalizeTeam = require('./team')
const normalizeUser = require('./user')
const setIfExists = require('../set-if-exists')
const temporaryRepository = require('../temporary-repository')
// https://developer.github.com/v3/repos/branches/#respons... | JavaScript | 0 | @@ -1652,16 +1652,118 @@
, '$1'))
+%0A setIfExists(response, 'restrictions.apps_url', url =%3E url.replace(temporaryRepository.regex, '$1'))
%0A%0A // n
|
5b500a625b802673526926453b1f8040cb97d237 | Add more debug logging to findfeed | src/handlers/findFeed.js | src/handlers/findFeed.js | const cheerio = require('cheerio')
const normalizeUrl = require('normalize-url')
const { parseFromString, parseFromQuery } = require('./feed')
const request = require('../request')
const normalizeOptions = { removeTrailingSlash: false }
module.exports = async function findFeed({ url }) {
const normalizedUrl = nor... | JavaScript | 0 | @@ -479,24 +479,173 @@
h (error) %7B%0A
+ if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test') %7B%0A console.log(error) // eslint-disable-line no-console%0A %7D%0A
return %5B
@@ -777,24 +777,36 @@
Type)%0A ) %7B%0A
+ try %7B%0A
const %7B
@@ -850,24 +850,26 @@
ten... |
7db66f75c10c4a49bab7242b013eca06a8da4562 | change conditional to count participants | app/assets/javascripts/channels/gameView.js | app/assets/javascripts/channels/gameView.js |
function renderGamePage(gameState) {
var team1 = gameState.teams[0];
var team2 = gameState.teams[1];
var userdata = $("#live[data-userid]").data()
var user_id = !!userdata ? userdata.userid : null;
var isCluegiver = (user_id === gameState.cluegiver.id);
var isCreator = (user_id === gameState.creator.id);
... | JavaScript | 0 | @@ -1682,25 +1682,24 @@
%7D else if(
-!
gameState.re
@@ -1696,21 +1696,32 @@
meState.
-ready
+participants %3C 4
) %7B%0A
|
6bc8e870109854f915e8a553281a863562522537 | add error handler with hacker news api | server/src/resolvers.js | server/src/resolvers.js | const axios = require('axios')
// constants ======
const HACKER_NEWS_TOP_STORIES_URI =
'https://hacker-news.firebaseio.com/v0/topstories.json'
const HACKER_NEWS_ITEM_URI = 'https://hacker-news.firebaseio.com/v0/item/'
// handlers =======
const user = (rootValue, _, { user }) => {
if (user) return user
return nu... | JavaScript | 0 | @@ -215,16 +215,340 @@
item/'%0A%0A
+// helpers ========%0Aconst fetchData = async url =%3E %7B%0A let res%0A try %7B%0A res = await axios.get(url)%0A %7D catch (error) %7B%0A if (error.code === 'ETIMEDOUT') %7B%0A try %7B%0A res = await axios.get(url)%0A %7D catch (error) %7B%0A throw... |
534176bab84ae668dd9b394464c09f7e5ca091bf | update tests according to #16 | packages/svg-baker-runtime/test/utils.test.js | packages/svg-baker-runtime/test/utils.test.js | /* eslint-disable max-len */
import {
parse,
stringify,
wrapInSvgString,
updateUrls,
selectAttributes,
objectToAttrsString,
dispatchCustomEvent,
getUrlWithoutFragment,
moveGradientsOutsideSymbol
} from '../src/utils';
function wrapInSvgAndParse(content) {
return parse(wrapInSvgString(content));
}
... | JavaScript | 0.000001 | @@ -5046,35 +5046,33 @@
ll=%22url(inbox/33
-%2528
+(
popup:compose%2529
@@ -5064,27 +5064,37 @@
opup:compose
-%2529
+)?q=123%257B%257D
#id)%22 style=
@@ -5103,35 +5103,33 @@
ill:url(inbox/33
-%2528
+(
popup:compose%2529
@@ -5125,19 +5125,29 @@
:compose
-%2529
+)?q=123%257B%257D
#id);%22%3E%3C
@@ -5181,11 +5181,... |
206843b91961f72aeab0c52ba3174953f0573269 | Allows spaces between commands | dist/index.js | dist/index.js | 'use strict';
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProp... | JavaScript | 0.892042 | @@ -2378,24 +2378,108 @@
2, '');%0A%7D;%0A%0A
+var removeSpaces = function removeSpaces(s) %7B%0A return s.replace(/%5Cs+/g, '');%0A%7D;%0A%0A
var GCodePar
@@ -3487,22 +3487,16 @@
s(line))
- %7C%7C ''
;%0A
@@ -3671,20 +3671,34 @@
list =
+removeSpaces(
line
+)
.match(/
@@ -3708,18 +3708,22 @@
-zA-Z%5D... |
c3616218aabb1055d0e7da592c3840724a097b51 | Add Array `findIndex` support | app/assets/javascripts/commons/polyfills.js | app/assets/javascripts/commons/polyfills.js | // ECMAScript polyfills
import 'core-js/fn/array/find';
import 'core-js/fn/array/from';
import 'core-js/fn/array/includes';
import 'core-js/fn/object/assign';
import 'core-js/fn/promise';
import 'core-js/fn/string/code-point-at';
import 'core-js/fn/string/from-code-point';
import 'core-js/fn/symbol';
// Browser polyfi... | JavaScript | 0 | @@ -49,16 +49,54 @@
/find';%0A
+import 'core-js/fn/array/find-index';%0A
import '
|
054f3574bb0c1b51791fa03804aa5729a7f642f2 | Fix iphone xr rendering issue | scripts/apply_fixes.js | scripts/apply_fixes.js | /*
Usage:
npm run-script apply-fixes
*/
const fs = require('fs')
// Fix an issue with Android default text color
const TEXT_FIX_PATH = './node_modules/react-native/Libraries/Text/Text.js'
const TEXT_ERR = 'if \\(this.context.isInAParentText\\)'
const TEXT_FIX = 'newProps = {...newProps, style: [{color: \'black\'}, t... | JavaScript | 0.000001 | @@ -373,16 +373,552 @@
Text)'%0A%0A
+// Set correct safe area for iPhone XR%0Aconst XR_FIX_PATH = './node_modules/react-native-safe-area-view/index.js'%0Aconst XR_FIX_REPL1 = 'const X_HEIGHT = 812;'%0Aconst XR_FIX_REPL1_FIX = 'const X_HEIGHT = 812;const XSMAX_WIDTH = 414;const XSMAX_HEIGHT = 896;'%0Aconst XR_FIX_REPL2... |
40dbe9a97b628b494d1c23a4df0b78160c13222e | Update __name__.js helper blueprint to remove unnecessary semicolon. | blueprints/helper/files/app/helpers/__name__.js | blueprints/helper/files/app/helpers/__name__.js | import Ember from 'ember';
export function <%= camelizedModuleName %>(input) {
return input;
};
export default Ember.Handlebars.makeBoundHelper(<%= camelizedModuleName %>);
| JavaScript | 0.000001 | @@ -90,17 +90,16 @@
input;%0A%7D
-;
%0A%0Aexport
|
3856d65b4143ee1d64f2a08527fcfa200378804b | Change packaging name | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var electronPackager = require('electron-packager');
var appVersion = require('./package.json').version;
var platform = process.platform;
var packagePaths = undefined;
var defaultOptions = {
'dir': '.',
'arch': 'x64',
'name': 'frontend-builder',
'platform': platform,
'version': '0.36.1... | JavaScript | 0.000002 | @@ -78,26 +78,30 @@
');%0Avar
-appVersion
+projectPackage
= requi
@@ -124,16 +124,8 @@
on')
-.version
;%0A%0Av
@@ -251,26 +251,27 @@
e':
-'frontend-builder'
+projectPackage.name
,%0A%09'
@@ -404,12 +404,24 @@
n':
-appV
+projectPackage.v
ersi
|
f21b87cb7155d72880c6b464c8425bbe6ba3195b | Update strategy.js | lib/passport-vkontakte/strategy.js | lib/passport-vkontakte/strategy.js | /**
* Module dependencies.
*/
var parse = require('./profile').parse
, util = require('util')
, url = require('url')
, OAuth2Strategy = require('passport-oauth2')
, InternalOAuthError = require('passport-oauth2').InternalOAuthError
, VkontakteAuthorizationError = require('./errors/vkontakteauthorizationerro... | JavaScript | 0.000001 | @@ -2281,17 +2281,18 @@
n %7C%7C '5.
-0
+64
';%0A thi
|
5168662c04347d705e55a94d9e0ee48d72e9b2e2 | Reset modal btns on show | frontend/js/profile-updating.js | frontend/js/profile-updating.js | var toastr = require('toastr');
require('../libraries/jquery.cropit.js');
// profile modifications
$('.js-profile-add-adult').on('click touchstart', function () {
$.ajax({
'type': 'GET',
'url': '/add/adults',
'cache': false
}).then(function (data) {
$('.js-profile-adult-conta... | JavaScript | 0 | @@ -4344,21 +4344,219 @@
-info').remove();%0A%7D)
+;%0A%0A$('#avataredit').on('show.bs.modal', function (event) %7B%0A console.log(%22123%22);%0A $(%22#avataredit .modal-footer button%22).removeClass(%22hidden%22);%0A $(%22#avataredit #avatar_loading_msg%22).hide();%0A%7D);
%0A
|
e5c8a47cbb39dddb0855c1ddfa505f083fff0c78 | fix monaco editor config to ensure service workers are not loaded from cross-domain origins | app/assets/javascripts/ide/monaco_loader.js | app/assets/javascripts/ide/monaco_loader.js | import monacoContext from 'monaco-editor/dev/vs/loader';
monacoContext.require.config({
paths: {
vs: `${__webpack_public_path__}monaco-editor/vs`, // eslint-disable-line camelcase
},
});
// eslint-disable-next-line no-underscore-dangle
window.__monaco_context__ = monacoContext;
export default monacoContext.re... | JavaScript | 0 | @@ -190,16 +190,343 @@
%7D,%0A%7D);%0A%0A
+// ignore CDN config and use local assets path for service worker which cannot be cross-domain%0Aconst relativeRootPath = (gon && gon.relative_url_root) %7C%7C '';%0Aconst monacoPath = %60$%7BrelativeRootPath%7D/assets/webpack/monaco-editor/vs%60;%0Awindow.MonacoEnvironment =... |
c119c1bd45d1f8eb0d2925bfcbff71e0841f065e | fix database name in createUser (#2998) | mongosrc.js | mongosrc.js | use
dashboarddb
db.createUser(
{
user: "dashboarduser",
pwd: "1qazxSw2",
roles: [
{role: "readWrite", db: "dashboard"}
]
})
db.dummmyCollection.insert({x: 1});
| JavaScript | 0 | @@ -149,16 +149,18 @@
ashboard
+db
%22%7D%0A
|
d47c22db1669fc487f56ae626f9aeb9afdf3d759 | Add space to title variable in Javascript | scripts/ariaCurrent.js | scripts/ariaCurrent.js | function setAriaCurrent() {
var title = document.title;
if title== "Comunidad hispanohablante de NVDA" {
var id = "inicio"
}
document.getElementById(id).removeAttribute("accesskey");
document.getElementById(id).setAttribute("aria-current", "page");
}
setAriaCurrent();
| JavaScript | 0.000011 | @@ -96,16 +96,17 @@
de NVDA
+
%22 %7B%0A%09%09va
|
6f85de4ff92f28859957276d2fa392a418af4429 | Replace mnemonic require with a relative one | packages/truffle-core/lib/commands/develop.js | packages/truffle-core/lib/commands/develop.js | const emoji = require("node-emoji");
const mnemonicInfo = require("truffle-core/lib/mnemonics/mnemonic");
const command = {
command: "develop",
description: "Open a console with a local development blockchain",
builder: {
log: {
type: "boolean",
default: false
}
},
help: {
usage: "tru... | JavaScript | 0.999798 | @@ -64,24 +64,10 @@
re(%22
-truffle-core/lib
+..
/mne
|
12157b5c2f8354986dc2bfbdd3e527fef97e1677 | change :checked to prop | app/geobox/web/static/js/widgets/thematicalvector.js | app/geobox/web/static/js/widgets/thematicalvector.js | var thematicalVectorLabels = {
'legend': OpenLayers.i18n('Legend'),
'settings': OpenLayers.i18n('Settings'),
'active': OpenLayers.i18n('Active'),
'list': OpenLayers.i18n('List')
}
gbi.widgets = gbi.widgets || {};
gbi.widgets.ThematicalVector = function(editor, options) {
var self = this;
var d... | JavaScript | 0 | @@ -2925,13 +2925,14 @@
is).
-is
+prop
('
-:
chec
|
a5404c02c68d55f1fc55d243b198d10be47c9f1a | revert back to the old hotline | bot/modules/hotline.js | bot/modules/hotline.js | var bot = require('../bot');
const m2e = require('./../lib/message2embed');
let messageDB = { data: [] };
bot.on('message', message => {
if (message.author.bot == true) return; // prevent loop
let attach = '';
if (message.attachments.size > 0)
{ attach = message.attachments.first().url; }
if (messag... | JavaScript | 0.000001 | @@ -26,55 +26,8 @@
');%0A
-const m2e = require('./../lib/message2embed');%0A
let
@@ -216,16 +216,23 @@
attach =
+ '%5Cn' +
message
@@ -368,46 +368,87 @@
send
-(attach, %7B embed: m2e(message, true) %7D
+Message(%22**%22 + message.author.username + %22:** %22 + message.cleanContent + attach
)%0A
@@ -681,46 +68... |
a867e051e3eae976f59ccd86b98894304a5ba900 | check instance cache before loading the composition | lib/client/engine.js | lib/client/engine.js | var Flow = require('./flow');
var Instance = require('./instance');
// client flag
engine.client = true;
// extend engine with flow emitter
engine = Flow(engine);
// listen to core engine events
engine.mind('C', {call: '@/C'}).mind('M', {call: '@/M'});
// data handlers
engine.handlers = {
transform: require('.... | JavaScript | 0 | @@ -486,24 +486,153 @@
() %7B%7D;%0A %0A
+ // check instance chache%0A if (engine.instances%5Bname%5D) %7B%0A return callback(null, engine.instances%5Bname%5D);%0A %7D%0A %0A
// get c
|
91ff16f9e795e5e2b3a5f0b53b88fa5bd5adba80 | update AdditionalInputInfo component to fix propTypes error | storybook-utilities/components/AdditionalInputInfo.js | storybook-utilities/components/AdditionalInputInfo.js | import React from 'react';
import PropTypes from 'prop-types';
import SprkList from '../../react/src/base/lists/SprkList';
import SprkListItem from '../../react/src/base/lists/SprkListItem';
import { getStorybookInstance } from '../getStorybookInstance';
const AdditionalInputInfo = (props) => {
const {
additiona... | JavaScript | 0 | @@ -4277,17 +4277,17 @@
putInfo.
-P
+p
ropTypes
|
ec10606a7e7012ed7f55df397a6f7910c6f2c096 | change user agent regex to also catch iPad webapp mode | pics2pdf.js | pics2pdf.js | /* ========================================================================
* pics2pdf.js v1.0.5
* https://flesser.github.io/pics2pdf
* ========================================================================
* Copyright 2015 Florian Eßer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you ... | JavaScript | 0 | @@ -6846,14 +6846,29 @@
).)*
+((
safari
+)%7C(mobile%5C/))
/i.t
|
994ade980953520e4026bffd6c2172f40550e655 | Add slight right margin to lists on mobile view | frontend/src/Lists/ListsView.js | frontend/src/Lists/ListsView.js | import React, { Component } from "react";
import { Row } from "../SharedComponents.js";
import Loading from "../loading.js";
import List from "./List.js";
import CreateList from "./CreateList.js";
import Notes from "./Notes.js";
class ListsView extends Component {
render() {
const { user, lists, loading } = t... | JavaScript | 0 | @@ -1125,16 +1125,131 @@
1000ms;
+%0A%0A @media (min-width: 900px) %7B%0A margin-right: 0em;%0A %7D%0A @media (max-width: 900px) %7B%0A margin-right: 1em;%0A %7D
%0A%60;%0A%0Acon
|
8097973aba0aecc2073893842c37dc41d044fc36 | remove warnings | server/user-provider.js | server/user-provider.js | /* Copyright 2015 and Scott Weinstein and Krzysztof Daniel.
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 agre... | JavaScript | 0.000002 | @@ -2213,32 +2213,33 @@
ext();%0A %7D
+;
%0A app.use
@@ -2419,9 +2419,10 @@
vider;%0A%7D
+;
%0A
|
8392cf175c3dd01933afc975064191e9bd27af9d | add tempdata.keep function | cms/node/mvcTempData.js | cms/node/mvcTempData.js | /*
* mvcTempData
* author: ronglin
* create date: 2014.7.1
*/
'use strict';
var utils = require('./utilities');
var fmKey = function(key) { return utils.trim(key).toLowerCase(); };
var CONST_SessionStateKey = '__ControllerTempData';
var sessionProvider = {
loadTempData: function(httpContext) {
var sessi... | JavaScript | 0.000002 | @@ -1609,24 +1609,368 @@
%7D%0A %7D,%0A%0A
+ keep: function(key) %7B%0A if (key === undefined) %7B%0A for (var k in this.oldData) %7B%0A this.keep(k);%0A %7D%0A %7D else %7B%0A key = fmKey(key);%0A if (key in this.oldData && !(key in this... |
a82bbe685040ee6dc913104de9ae90f35e660826 | Remove props param to get current mobilization selector | app/modules/widgets/containers/settings-container.js | app/modules/widgets/containers/settings-container.js | import React, { PropTypes } from 'react'
import { connect } from 'react-redux'
// Global module dependencies
import { SettingsPageLayout } from '../../../components/Layout'
// Parent module dependencies
import * as MobilizationSelectors from '../../mobilizations/selectors'
// Current module dependencies
import * as ... | JavaScript | 0 | @@ -802,31 +802,24 @@
urrent(state
-, props
),%0A widget:
|
c40386ee3a25fdce7809232cfca51d4d2565988c | update js for personal message toggler to match html change | assets/javascripts/personal_message_toggler.js | assets/javascripts/personal_message_toggler.js | $(document).ready(function() {
$switcherFieldGroup = $("#request_personal_switch");
$formSubmitButton = $("#request_form input[type='submit']")[0];
personalRequestClass = "personal_request_switcher_focused";
if ($switcherFieldGroup.length) {
// If an error is showing or the subject has been filled then
... | JavaScript | 0 | @@ -455,15 +455,8 @@
est_
-header_
subj
|
0eb4fef9f1dd4c1336e80bd54eb7547d16d6ab57 | Fix 404 for empty send method | packages/strapi/lib/configuration/hooks/core/responses/policy.js | packages/strapi/lib/configuration/hooks/core/responses/policy.js | 'use strict';
/**
* Module dependencies
*/
// Public node modules.
const _ = require('lodash');
const Boom = require('boom');
const delegate = require('delegates');
// Local utilities.
const responses = require('./responses/index');
// Custom function to avoid ctx.body repeat
const createResponses = ctx => {
re... | JavaScript | 0.000002 | @@ -1236,46 +1236,231 @@
if (
-!ctx.body) %7B%0A ctx.notFound();%0A %7D%0A%0A
+_.isUndefined(ctx.body) && _.isUndefined(ctx.status)) %7B%0A return ctx.notFound();%0A %7D%0A%0A if (_.isObject(ctx.body)) %7B%0A if (ctx.body.isBoom && ctx.body.data) %7B%0A ctx.body.output.payload.data = ctx.body.data;%0A... |
55604f0669ff8692695163d041e9eb64309263e0 | Initialise component state in init() instead of constructor | js/forum/src/components/AutocompleteDropdown.js | js/forum/src/components/AutocompleteDropdown.js | import Component from 'flarum/Component';
export default class AutocompleteDropdown extends Component {
constructor(...args) {
super(...args);
this.active = false;
this.index = 0;
this.keyWasJustPressed = false;
}
view() {
return (
<ul className="Dropdown-menu MentionsDropdown">
... | JavaScript | 0.000001 | @@ -104,51 +104,16 @@
%7B%0A
-constructor(...args) %7B%0A super(...args);%0A
+init() %7B
%0A
|
91ccc288b6967ed0f35784f0b73f9615c7ec55cf | Update gulp file | gulpfile.js | gulpfile.js | (function () {
'use strict';
var gulp = require('gulp'),
connect = require('gulp-connect'),
open = require('gulp-open'),
del = require('del'),
shell = require('gulp-shell'),
autoprefixer = require('gulp-autoprefixer'),
sass = require('gulp-sass'),
minifyCss = require('gulp-... | JavaScript | 0.000001 | @@ -1578,32 +1578,35 @@
dest));%0A %7D);%0A%0A
+ //
gulp.task('depl
@@ -1635,16 +1635,19 @@
task(%5B%0A
+ //
'rsyn
@@ -1681,16 +1681,148 @@
e.com',%0A
+ // 'echo world'%0A // %5D));%0A%0A gulp.task('deploy', %5B'build'%5D, shell.task(%5B%0A 'rsync -rvz dist/ arvixe:public_html/evgenii.com',%0A
... |
a1afdf70d9ce6f2e04f5f87fe56ffe425411462d | fix comments in credentials.js | browser/credentials.js | browser/credentials.js | /*
The values here are used as credentials. This file is present in the
marklogic/marklogic-samplestack repository, but credentials are not supplied,
and changes to the file are ignored.
As such, you may enter and save your own credentials, or you can set
environment variables to read them dynamically. If a non-null v... | JavaScript | 0.000004 | @@ -577,32 +577,39 @@
r sauce username
+%0A //
or set 'ML_SS_S
@@ -636,24 +636,8 @@
ble%0A
- user: null,%0A
@@ -675,16 +675,32 @@
account'
+%0A user: null,
%0A%0A //
@@ -724,24 +724,35 @@
r sauce
-username
+access token%0A //
or set
@@ -788,30 +788,8 @@
ble%0A
- accessToken: null%0A
... |
9ed7aedfa92553782f7ea472d3e913835a85841a | Fix typo. | app/scripts/components/issues/issue-comments-list.js | app/scripts/components/issues/issue-comments-list.js | import template from './issue-comments-list.html';
export const issueCommentsList = {
template,
bindings: {
issue: '<'
},
controller: class IssueCommentsListController {
constructor(issueCommentsService, usersService, $rootScope) {
this.issueCommentsService = issueCommentsService;
this.user... | JavaScript | 0.001604 | @@ -634,20 +634,22 @@
this.un
-bind
+listen
();%0A
|
28011c60e13daa4347139380c2650482b3b58926 | remove test function | algorithms/mutations.js | algorithms/mutations.js | /* Return true if the string in the first element of the array contains
all of the letters of the string in the second element of the array. */
function mutation(arr) {
var baseLine = arr[0].toLowerCase();
var checkString = arr[1].toLowerCase();
for(var i = 0; i < checkString.length; i++) {
if(baseLine.ind... | JavaScript | 0.000424 | @@ -395,45 +395,4 @@
;%0A%7D%0A
-%0Aconsole.log(mutation(%5B%22hello%22, %22hey%22%5D));
|
aeafd5141c0fbd29162e7be9c68da45526312e80 | Remove TODO. | src/ExpandableSection.js | src/ExpandableSection.js | import './ExpandablePanel.js';
import './SeamlessButton.js';
import { merge } from './updates.js';
import * as symbols from './symbols.js'
import * as template from './template.js';
import OpenCloseMixin from './OpenCloseMixin.js';
import ReactiveElement from './ReactiveElement.js';
const Base =
OpenCloseMixin(
... | JavaScript | 0 | @@ -876,72 +876,8 @@
n;%0A%0A
- // TODO: Default header content pulls text from aria-label.%0A
|
94de9accfba4db8c37869f0514a800b04c1a6694 | Enable test | test/function/export-from-no-local-binding/_config.js | test/function/export-from-no-local-binding/_config.js | var assert = require( 'assert' );
module.exports = {
description: 'export from does not create a local binding',
error: function ( err ) {
assert.ok( false, 'TODO: assertion is skipped because it is not used... we need to implement something like /*rollup: include */')
},
skip: true
};
// test copied from htt... | JavaScript | 0.000001 | @@ -1,39 +1,4 @@
-var assert = require( 'assert' );%0A%0A
modu
@@ -75,187 +75,8 @@
ing'
-,%0A%0A%09error: function ( err ) %7B%0A%09%09assert.ok( false, 'TODO: assertion is skipped because it is not used... we need to implement something like /*rollup: include */')%0A%09%7D,%0A%0A%09skip: true
%0A%7D;%0A
|
fcc8157dcfbc56cff3d760ef0fb0820a4696eb3a | Replace placeholder countries with real service call | src/main/webapp/scripts/services/CountryService.js | src/main/webapp/scripts/services/CountryService.js | 'use strict';
mldsApp.factory('CountryService', ['$http', '$log', '$q', function($http, $log, $q){
return {
getCountries: function() {
return $q.when([
{
isoCode2: 'DK',
isoCode3: 'DNK',
commonName: 'Denmark'
},
{
isoCode2: 'FR',
isoCode3: 'FRA',
commonName: ... | JavaScript | 0.001584 | @@ -98,635 +98,601 @@
)%7B%0A%09
-%09return %7B%0A%09%09%09getCountries: function() %7B%0A%09%09%09%09return $q.when(%5B%0A%09%09%09%09%09%7B
+%0A%09%09var countriesListQ = $http.get('/app/rest/countries')%0A%09%09%09.then(function(d)%7Breturn d.data;%7D);%0A%09%09var service = %7B%7D;
%0A%09%09
+%0A
%09%09
-%09%09i... |
ca6bdf333fd0ac85a850e0fba08fd39a03de3362 | Improve gulpfile | gulpfile.js | gulpfile.js | /*vim: fileencoding=utf8 tw=100 expandtab ts=4 sw=4 */
/*jslint indent: 4, maxlen: 100, node: true */
/*global require*/
(function () {
'use strict';
var concat = require('gulp-concat'),
babel = require('gulp-babel'),
gulp = require('gulp'),
plumber = require('gulp-plumber'),
u... | JavaScript | 0.000005 | @@ -100,27 +100,8 @@
*/%0A%0A
-/*global require*/%0A
(fun
@@ -394,16 +394,65 @@
'glob'),
+%0A sourcemaps = require('gulp-sourcemaps'),
%0A%0A
@@ -1697,32 +1697,54 @@
return gulp.src(
+%5B'dev/sst_icons.css',
'dev/shareSelect
@@ -1751,24 +1751,25 @@
edText.less'
+%5D
)%0A
@@ -2125,32 +212... |
357decdd53a91f4f050f425d95de3c9f00932aed | Revert "Edit index for new sag icons" | lib/tag-images/index.js | lib/tag-images/index.js | /**
* Export images dictionary
*/
module.exports = {
'culture':{
name:'culture',
url: '/lib/tag-images/images/culture.svg'
},
'economy': {
name: 'economy',
url: '/lib/tag-images/images/economy.svg'
},
'education': {
name: 'education',
url: '/lib/tag-images/images/education.svg'
... | JavaScript | 0 | @@ -49,16 +49,784 @@
rts = %7B%0A
+ 'arts': %7B%0A name: 'arts',%0A url: '/lib/tag-images/images/arts.svg'%0A %7D,%0A 'scale': %7B%0A name: 'scale',%0A url: '/lib/tag-images/images/scale.svg'%0A %7D,%0A 'police': %7B%0A name: 'police',%0A url: '/lib/tag-images/images/police.svg'%0A %7D,%0A 'si... |
a5cb55ddce162109791e731d0c486731ce9bf20a | Move disabled selector to child and AlertMessage out | troposphere/static/js/components/modals/instance/launch/components/Image.react.js | troposphere/static/js/components/modals/instance/launch/components/Image.react.js | import React from 'react';
import Backbone from 'backbone';
import stores from 'stores';
import moment from 'moment';
import Tags from 'components/common/tags/ViewTags.react';
import Gravatar from 'components/common/Gravatar.react';
export default React.createClass({
displayName: "Image",
getInitialState: fun... | JavaScript | 0 | @@ -1690,17 +1690,16 @@
%0A );%0A
-%0A
let
@@ -1718,139 +1718,1437 @@
s =
-!this.state.active ? %22disabled%22 : %22%22;%0A%0A return (%0A %3Cli className=%7B%60media card $%7BinactiveClass%7D%60%7D onClick=%7Bthis.handleClick
+%22%22;%0A let alertMessage = () =%3E null;%0A%0A if (!this.stat... |
15f31929f23e163924f1e217e064eeac23de5276 | improve the report location for report-message-format | lib/rules/report-message-format.js | lib/rules/report-message-format.js | /**
* @fileoverview enforce a consistent format for rule report messages
* @author Teddy Katz
*/
'use strict';
const utils = require('../utils');
// ------------------------------------------------------------------------------
// Rule Definition
// ----------------------------------------------------------------... | JavaScript | 0.000003 | @@ -1997,16 +1997,25 @@
node
+: message
,%0A
|
08f79d50e7aa5358ca9de89fe0cbc3a5b9fe0e20 | change menu width on smaller screens | src/container/footer.js | src/container/footer.js | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { deleteCity } from '../actions/index';
import Modal from 'react-modal';
import MaterialIcon from 'material-icons-react';
import { saveState } from '../manageLocalStorage';
import Option ... | JavaScript | 0 | @@ -2292,16 +2292,42 @@
_content
+ col-12 col-sm-12 col-md-3
%22%3E%0A
|
5b310f8b449b1cb9098e94b4ca0bd0140d4fc4bf | fix content is null | wsy-dice.js | wsy-dice.js | (function(Plugin) {
'use strict';
var winston = require('winston'),
seedrandom = require('seedrandom');
var constant = require('./plugin/constants.js');
var parser = require('./plugin/parser.js');
var tempInfo = {};
function RandomStr() {
var rng = seedrandom();
var $c... | JavaScript | 0.999945 | @@ -3933,32 +3933,57 @@
nt !== undefined
+ && data.content !== null
) %7B%0A
|
f56b0fcf1d4d735dae025c3285d0c093f383338d | Disable reset password link for now | src/components/Dialogs/LoginDialog/LoginForm.js | src/components/Dialogs/LoginDialog/LoginForm.js | import * as React from 'react';
import { translate } from 'react-i18next';
import EmailIcon from 'material-ui/svg-icons/communication/email';
import PasswordIcon from 'material-ui/svg-icons/action/lock';
import Loader from '../../Loader';
import Form from '../../Form';
import FormGroup from '../../Form/Group';
import T... | JavaScript | 0 | @@ -2229,32 +2229,44 @@
%3C/FormGroup%3E%0A%0A
+ %7B/*%0A
%3CFormGro
@@ -2413,24 +2413,36 @@
/FormGroup%3E%0A
+ */%7D%0A
%3C/Form
|
6c0c6bc5c49c3cc1518e1d18ba1f0ebdcda86231 | remove OTP (#4055) | packages/xo-server/src/recover-account-cli.js | packages/xo-server/src/recover-account-cli.js | import appConf from 'app-conf'
import pw from 'pw'
import Xo from './xo'
import { generateToken } from './utils'
const recoverAccount = async ([name]) => {
if (name === undefined || name === '--help' || name === '-h') {
return `
xo-server-recover-account <user name or email>
If the user does not exist, it ... | JavaScript | 0 | @@ -363,16 +363,43 @@
password
+, remove any configured OTP
and res
@@ -904,16 +904,22 @@
er.id, %7B
+%0A
passwor
@@ -912,32 +912,38 @@
%0A password,
+%0A
permission: 'ad
@@ -938,32 +938,71 @@
mission: 'admin'
+,%0A preferences: %7B otp: null %7D,%0A
%7D)%0A console.
|
9e01d44ef5b4f160f69f981359b1af494814a338 | Fix bug that was blocking JSON support, closes #4 | lib/config-plugin.js | lib/config-plugin.js | var _ = require("lodash")
var path = require("path")
// Load configuration file
function loadFile(dir, filename) {
if (filename == null) return {}
filename = path.join(dir, filename)
try {
return require(filename)
} catch(e) {
return {}
}
}
module.exports = Config
function Config(options) {
this.o... | JavaScript | 0 | @@ -836,37 +836,8 @@
ect%0A
- var options = this.options%0A
va
@@ -898,16 +898,24 @@
ation',
+function
(compila
@@ -923,11 +923,8 @@
ion)
- =%3E
%7B%0A
@@ -1207,15 +1207,9 @@
%7D%0A
-
%0A
+
@@ -1245,38 +1245,68 @@
//
-No actual source is needed her
+This path is not actually used but must... |
83730a2766eca7b8807f194453204cb63485eab3 | use glob instead of loader | lib/tasks/base/files.js | lib/tasks/base/files.js | 'use strict';
var path = require('path');
var utils = require('../../utils');
module.exports = function(app, base) {
base.create('files', {
renameKey: function (key) {
return path.basename(key);
}
});
var glob = base.get('argv.files');
if (glob) {
glob = glob.split(',');
} else {
glob... | JavaScript | 0.000002 | @@ -8,16 +8,40 @@
rict';%0A%0A
+var fs = require('fs');%0A
var path
@@ -376,88 +376,227 @@
%0A%0A
-return function(cb) %7B%0A base.files(glob, %7Bdot: true, ignore: %5B'.DS_Store'%5D
+var opts = %7Bdot: true, realpath: true, ignore: %5B'**/.DS_Store', '**/.git'%5D%7D;%0A%0A return function(cb) %7B%0A utils.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.