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 |
|---|---|---|---|---|---|---|---|
ae013ec01874f9c7095801082b68dfee7d55dc88 | Fix "Unknown property: autoClear" message | www/local-notification-util.js | www/local-notification-util.js | /*
* Copyright (c) 2013-2015 by appPlant UG. All rights reserved.
*
* @APPPLANT_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apache License
* Version 2.0 (the 'License'). You may not use this file except in
* complia... | JavaScript | 0.000004 | @@ -2363,24 +2363,76 @@
, 'json');%0A%0A
+ if (defaults.hasOwnProperty('autoClear')) %7B%0A
options.
@@ -2496,16 +2496,22 @@
ancel');
+%0A %7D
%0A%0A if
|
c3ee12c91801ce56caf8ecfd0c37224ef1719ce5 | Change awaitingresponse.js to be the opposite of the original and show emails the user has not responded to, add some comments | awaitingresponse.js | awaitingresponse.js | /*
* This script goes through your Gmail Inbox and finds recent emails where you
* were the last respondent. It applies a nice label to them, so you can
* see them in Priority Inbox or do something else.
*
* To remove and ignore an email thread, just remove the unrespondedLabel and
* apply the ignoreLabel.
*
* ... | JavaScript | 0 | @@ -65,16 +65,31 @@
emails
+sent%0A * to you
where yo
@@ -93,16 +93,16 @@
you
-%0A * were
+ are not
the
@@ -118,16 +118,69 @@
pondent.
+ These may be emails that%0A * are awaiting your reply.
It appl
@@ -189,13 +189,8 @@
s a
-nice
labe
@@ -214,60 +214,36 @@
can
-%0A * see them in Priority Inbox or do ... |
bd3db9510636400fd9de6ba5b88d14b2625f10ba | update webpack loader config | app/templates/_webpack.config.js | app/templates/_webpack.config.js | var webpack = require('webpack');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
context: __dirname+'/scripts/pages',
entry: require('./app-entry'),
output: {
path: __dirname + '/build',
publicPath: '/build',
filename: '[name].js',
sourceMapFilename: '[file].map... | JavaScript | 0.000001 | @@ -843,20 +843,16 @@
t: /
-(
%5C.
+(
scss
-)%7C(%5C.
+%7C
sass
@@ -964,60 +964,41 @@
t: /
-(
%5C.
+(
woff
-)%7C(%5C.ttf)%7C(%5C.eot)%7C(%5C.svg)%7C(%5C.png)%7C(%5C.jpg)%7C(%5C.
+%7Cttf%7Ceot%7Csvg%7Cpng%7Cjpg%7Cjpeg%7C
gif)
|
d8e3df79bca39e091c61a5600b673b3230001ef5 | remove extra space | Contents/Sketch/colors.js | Contents/Sketch/colors.js | var applyColors = function (newColors, docData) {
var app = NSApplication.sharedApplication();
var appController = app.delegate();
var colors = [];
for(var i=0; i<newColors.length; i++) {
var color = MSColor.colorWithSVGString("#" + newColors[i].Rgb);
color.alpha = newColors[i] .Opacity;
colors.push... | JavaScript | 0.002319 | @@ -287,17 +287,16 @@
olors%5Bi%5D
-
.Opacity
|
c70b2dbc4dea4ab13763279281064af2e7030e86 | fix jshint | app/src/routes/api/v1/umdLossGainRouter.js | app/src/routes/api/v1/umdLossGainRouter.js | 'use strict';
var Router = require('koa-router');
var logger = require('logger');
var CartoDBService = require('services/cartoDBService');
var GEEService = require('services/geeService');
var NotFound = require('errors/notFound');
var UMDIFLSerializer = require('serializers/umdIflSerializer');
var UMDSerializer = re... | JavaScript | 0.000002 | @@ -1392,50 +1392,8 @@
d);%0A
- logger.debug('Data final', data),%0A
|
283cedfd8187496f2c4aeb0d2c55f002442af00d | Connect to www not beta (which no longer exists) | public/js/app.controller.js | public/js/app.controller.js | "use strict";
var BaobabControllers; //globals
BaobabControllers
.controller('AppCtrl', ['$scope', '$me', '$inbox', '$auth', '$location', '$cookieStore', '$sce', function($scope, $me, $inbox, $auth, $location, $cookieStore, $sce) {
var self = this;
window.AppCtrl = this;
this.inboxAuthURL = $sce.trustAsResource... | JavaScript | 0 | @@ -330,12 +330,11 @@
s://
-beta
+www
.inb
|
f3e0421b46cb02556c449f234f56eb618c3a3caa | Handle clicks to open links in a new tab correctly | public/js/routing/router.js | public/js/routing/router.js | /**
* Copyright 2015-2016, Google, Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | JavaScript | 0 | @@ -2092,24 +2092,140 @@
ck', e =%3E %7B%0A
+ if (e.button !== 0 %7C%7C e.ctrlKey %7C%7C e.metaKey %7C%7C e.shiftKey %7C%7C e.altKey) %7B%0A return true;%0A %7D%0A%0A
// L
|
a695dd2c4c5a8d4e6fadb5ca4bae725350b5bae6 | Update collider() test helper | test/collider.js | test/collider.js | // matter.js
//
'use strict';
var fs = require('fs');
var os = require('os');
var path = require('path');
var spawnSync = require('child_process').spawnSync;
var expect = require('chai').expect;
var mkdirp = require('mkdirp');
var rimraf = require('rimraf');
var uuid = require('node-uuid');
var TempDir = {
tmpLoc... | JavaScript | 0 | @@ -828,24 +828,28 @@
nction (
+args
) %7B%0A
var args
@@ -844,56 +844,25 @@
-var
args =
-Array.prototype.slice.call(arguments)
+args %7C%7C %5B%5D
;%0A
|
d53812f545ca183de482cd30eb04073fff0df4e4 | fix logging only on dev | back/app.js | back/app.js | /**
* Fondi
* Open courses platform.
*
* @author Theodore Keloglou
* @file Main application boot file.
*/
var path = require('path');
var express = require('express');
// var favicon = require('serve-favicon');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var session = r... | JavaScript | 0 | @@ -208,24 +208,56 @@
-favicon');%0A
+var logger = require('morgan');%0A
var cookiePa
@@ -1148,18 +1148,62 @@
co')));%0A
-//
+if (process.env.NDOE_ENV !== 'production') %7B%0A
app.use
@@ -1222,17 +1222,10 @@
'));
- // FIXME
+%0A%7D
%0A%0Aap
|
cb041cdd996f4bf11960988396b9269c2d250a36 | Increase limit when getting Content Types | example/mirror-content-model.js | example/mirror-content-model.js | #!/usr/bin/env node
'use strict';
var argv = require('optimist')
.usage('$0 access_token src_space_id dest_space_id')
.demand(3)
.argv;
var Promise = require('bluebird');
var contentful = require('../index');
var accessToken = argv._[0];
var srcSpaceId = argv._[1];
var destSpaceId = argv._[2];
var client = con... | JavaScript | 0 | @@ -843,16 +843,29 @@
ntTypes(
+%7Blimit: 1000%7D
).map(fu
|
d494ef1c15e7ee587cfd73002a77dcd400700ff6 | remove log | pkg/interface/src/views/landscape/components/Home/Post/PostItem/PostItem.js | pkg/interface/src/views/landscape/components/Home/Post/PostItem/PostItem.js | import React from 'react';
import { Box, Col, Row, Text } from '@tlon/indigo-react';
import { PostHeader } from './PostHeader';
import { PostContent } from './PostContent';
import { PostFooter } from './PostFooter';
import { PostInput } from '../PostInput';
import { Mention } from "~/views/components/MentionText";
impo... | JavaScript | 0.000003 | @@ -889,32 +889,8 @@
ops;
-%0A console.log(index);
%0A%0A
|
a26a301387889683e4796458a7723ec9d4ffc0c4 | Fix display of poi title in the gadget arround me. | app/Resources/packages/Gadget-keosu-around-me/core.js | app/Resources/packages/Gadget-keosu-around-me/core.js | /************************************************************************
Keosu is an open source CMS for mobile app
Copyright (C) 2013 Vincent Le Borgne
This program 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 F... | JavaScript | 0 | @@ -3209,30 +3209,32 @@
title =
-decodedContent
+$('%3Cdiv/%3E').html
(data.da
@@ -3245,16 +3245,23 @@
%5D.title)
+.text()
;%0A%09%09%09%09%09%09
|
e476ecc6b9d002b158276dd06f10bb0bc8acc8d0 | Fix bug related to loader and empty list | app/assets/javascripts/components/members_list.es6.js | app/assets/javascripts/components/members_list.es6.js | // Require React
React = require('react/addons');
var $ = require('jquery-browserify');
var Loader = require('react-loader');
// import material UI
import mui from 'material-ui';
let List = mui.List;
let Colors = mui.Styles.Colors;
let ThemeManager = mui.Styles.ThemeManager;
let LightRawTheme = mui.Styles.LightRawThem... | JavaScript | 0 | @@ -1996,58 +1996,8 @@
%7D;%0A%0A
- console.log(this.state.members.length === 0);%0A
@@ -2005,16 +2005,16 @@
eturn (%0A
+
%3Cd
@@ -2231,33 +2231,100 @@
%3C/div%3E%0A
-%7B
+%3CLoader loaded=%7Bthis.state.loaded%7D%3E%0A %7Bthis.state.loaded &&
this.state.membe
@@ -2331,32 +2331,34 ... |
a5aa20278cc4ac08e9aead2ed6228af67607cf45 | Remove unneeded class | app/assets/javascripts/controllers/user_controller.js | app/assets/javascripts/controllers/user_controller.js | HB.UserController = Ember.ObjectController.extend(HB.HasCurrentUser, {
coverUpload: Ember.Object.create(),
coverUrl: Ember.computed.any('coverUpload.croppedImage', 'model.coverImageUrl'),
coverImageStyle: function () {
return "background-image: url(" + this.get('coverUrl') + ")";
}.property('coverUrl'),
... | JavaScript | 0.000007 | @@ -315,184 +315,8 @@
),%0A%0A
- coverImageOverlayStyle: function () %7B%0A return %22background-image: url(%22 + this.get('coverUrl') + %22); mask: url(#blur-fade); filter: url(#blur)%22;%0A %7D.property('coverUrl'),%0A%0A
sh
|
ccf590512b46e7456e27c80d5041533b590241f2 | Add basic tooltip functionality to scatter plot | app/assets/javascripts/d3/scatter-plot/scatterPlot.js | app/assets/javascripts/d3/scatter-plot/scatterPlot.js | function drawApprovalScatterPlot() {
var plot = d3.select("#approval-scatter");
var WIDTH = 1000;
var HEIGHT = 600;
var MARGINS = {
top: 40,
right: 40,
bottom: 60,
left: 80
};
// KMEANS_DATA is defined in kmeans_training_results.js
var data = KMEANS_DATA;
var xScale = d3.scale.linear()... | JavaScript | 0 | @@ -4577,10 +4577,736 @@
%7D);%0A
+%0A plotPoints.on(%22mousemove%22, function(d) %7B%0A d3.selectAll(%22.scatter-plot-tooltip%22).remove();%0A var toolTipX = d3.mouse(this)%5B0%5D + 10;%0A var toolTipY = d3.mouse(this)%5B1%5D - 5;%0A var toolTip = d3.select(this.parentElement)%0A .append(%... |
46493a5fe31ae3c139dcee00370d8a423235b1ec | fix in breaking float after activating an accordion and displaying a scrollbar | media/js/Layout.js | media/js/Layout.js | var Sidebar = new Class({
Implements: [Options, Class.Occlude],
options: {
DOM: ''
},
initialize: function (options) {
this.setOptions(options);
if ($(this.options.DOM)) {
this.element = $(this.options.DOM);
this.resize();
Layout.addEvents({
'resize': this.resize.bind(this)
});
window.addE... | JavaScript | 0 | @@ -679,17 +679,21 @@
ctive');
+%09%09%09%09
%0A
-
%09%09%09%7D);%0A%09
@@ -913,39 +913,49 @@
;%0A%09%09
-window.addEvents(%7B%0A%09%09%09'resize':
+this.sidebar.accordion.addEvent('active',
fun
@@ -965,33 +965,81 @@
on()
-
%7B%0A%09%09%09
-%09this.resize();
+var self = this%0A%09%09%09return (function() %7Bse... |
3d5ea6aacb33eda0e972fda2b3f6f349d2176e32 | Handle errors in reduce. | accumulator.js | accumulator.js | /* vim:set ts=2 sw=2 sts=2 expandtab */
/*jshint asi: true undef: true es5: true node: true browser: true devel: true
forin: true latedef: false globalstrict: true */
'use strict';
var Name = require('name')
var Method = require('method')
var Box = require('./box')
var core = require('./core'),
accumulat... | JavaScript | 0.000002 | @@ -1170,16 +1170,22 @@
value) %7B
+%0A
next(en
@@ -1195,16 +1195,62 @@
, value)
+%0A %7D, function(e) %7B%0A next(error(e))%0A
%7D)%0A %7D)
|
65583a0fcc733ee2b5c50180362cf9d1b4f4cd85 | add array.from | webpack.config.production.js | webpack.config.production.js | /* eslint-disable no-var */
var webpack = require('webpack');
var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
entry: ['./src/index'],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: '/static/'
},
resolve... | JavaScript | 0.000027 | @@ -1097,16 +1097,63 @@
/assign'
+,%0A 'Array.from': 'core-js/fn/array/from'
%0A %7D)%0A
|
d791be4e0801f85c2d0efb613fa882a550d63b6f | fix linter | webpack.config.production.js | webpack.config.production.js | 'use strict';
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const autoprefixer = require('autoprefixer');
const banner = require('./dev/banner');
const VERSION = require('./package.json').version;
function getConfig(options) {
const optimize = options.opti... | JavaScript | 0.000002 | @@ -249,18 +249,16 @@
rsion;%0A%0A
-%0A%0A
function
|
a04a5e0daa2d4dec99846c5d8cc6427b7e6ed4c3 | fix eslint errors for xod-client-chrome (add chrome to globals) | xod-client-chrome/.eslintrc.js | xod-client-chrome/.eslintrc.js | module.exports = {
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
plugins: [
'react',
'import',
],
extends: [
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/react',
'plugin:reac... | JavaScript | 0 | @@ -347,12 +347,48 @@
b',%0A %5D,
+%0A%0A globals: %7B%0A chrome: true,%0A %7D
%0A%7D;%0A
|
9885fce1e3f535bef3ce3b2747f91222adfbb717 | Fix comment path slashes | rollup-examples.config.js | rollup-examples.config.js | var path = require( 'path' );
var fs = require( 'fs' );
// Creates a rollup config object for the given file to
// be converted to umd
function createOutput( file ) {
var inputPath = path.resolve( file );
var outputPath = inputPath.replace( /[\\\/]examples[\\\/]jsm[\\\/]/, '/examples/js/' );
// Every import is ma... | JavaScript | 0.000247 | @@ -1001,32 +1001,34 @@
( '.', inputPath
+ )
.replace( /%5C%5C/,
@@ -1029,17 +1029,16 @@
/%5C%5C/
+g
, '/' )
- )
%7D'%5C
|
fe08585eb629c4a4e1bd6ba803bcc03d26d14000 | Remove logging | portal/js/router.js | portal/js/router.js | App.Router.map(function () {
this.resource('projects', {path: '/'}, function() {
this.resource('user-welcome');
this.resource('project', {path: '/:project_id'}, function() {
this.resource('investigation', {path: '/:investigation_id'}, function() {
this.resource('chart', {path: '/:chart_id'});
... | JavaScript | 0.000001 | @@ -776,44 +776,8 @@
) %7B%0A
- console.log(%22transitioning%22);%0A
|
3e59c8a5c5de047056055cabef4454914159ffd5 | Fix relative url for zeroclipboard swf | app/scripts/timetable_builder/views/UrlSharingView.js | app/scripts/timetable_builder/views/UrlSharingView.js | define(['backbone.marionette', 'zeroclipboard', 'hbs!../templates/url_sharing'],
function(Marionette, ZeroClipboard, template) {
'use strict';
return Marionette.ItemView.extend({
template: template,
initialize: function() {
ZeroClipboard.config({
swfPath: 'bower_components/ZeroClipboard/di... | JavaScript | 0.000004 | @@ -280,16 +280,17 @@
fPath: '
+/
bower_co
|
8a22e35e413efa8296b33845e723e349ea5e00ff | Add Glimmer 2 support Glimmer 2 changes the default second argument of the helper to an EmptyObject which: - doesn't provide `toString` - doesn't allow extending (See https://github.com/emberjs/ember.js/issues/14189) | addon/utils.js | addon/utils.js | import { currency } from "./settings";
/**
* Extends an object with a defaults object, similar to underscore's _.defaults
*
* Used for abstracting parameter handling from API methods
*/
function defaults(object, defs) {
var key;
object = object || {};
defs = defs || {};
// Iterate over object non-prototype ... | JavaScript | 0.000001 | @@ -32,16 +32,87 @@
tings%22;%0A
+import Ember from 'ember';%0A%0Avar assign = Ember.assign %7C%7C Ember.merge;%0A%0A
/**%0A * E
@@ -314,20 +314,26 @@
t =
-object %7C%7C %7B%7D
+assign(%7B%7D, object)
;%0A
@@ -832,24 +832,247 @@
e : val;%0A%7D%0A%0A
+/**%0A * Returns the toString representation of an object eve... |
43304385b518ae24cbd62d3d67b8ff2da27dae44 | test new range | CNN/tester/GSheets_tester.js | CNN/tester/GSheets_tester.js | export { tester };
import * as GSheets from "../util/GSheets.js";
import * as ValueMax from "../util/ValueMax.js";
/*
class TestCase {
constructor( spreadsheetId, range, apiKey ) {
this.source = source;
this.skipLineCount = skipLineCount;
this.result = result;
this.suspendByteCount = suspendByteCoun... | JavaScript | 0 | @@ -1002,17 +1002,231 @@
progress
-2
+11 = progressParent.child_add(%0A ValueMax.Percentage.Aggregate.Pool.get_or_create_by() );%0A%0A let progress2 = progressParent.child_add(%0A ValueMax.Percentage.Aggregate.Pool.get_or_create_by() );%0A%0A let progress21
= progr
@@ -2039,16 +2039,495 @@
);%0A %7D%0A%0A
... |
ddeda7c103112048b05756f09dde4faa07701d53 | Fix URLs with special characters | packages/example-forum/lib/server/posts/out.js | packages/example-forum/lib/server/posts/out.js | import { runCallbacksAsync } from 'meteor/vulcan:core';
import escapeStringRegexp from 'escape-string-regexp';
import { Picker } from 'meteor/meteorhacks:picker';
import { Posts } from '../../modules/posts/index.js';
Picker.route('/out', ({ query}, req, res, next) => {
if(query.url){ // for some reason, query.url do... | JavaScript | 0.999799 | @@ -598,24 +598,27 @@
n case%0A
+ //
const decod
@@ -629,27 +629,8 @@
l =
-decodeURIComponent(
quer
@@ -634,17 +634,16 @@
uery.url
-)
;%0A%0A
@@ -704,24 +704,23 @@
gRegexp(
-decodedU
+query.u
rl)%7D%7D, %7B
|
2cb4aeb78fad04a4c87c517d5f039a16578cbab6 | use default for transition and allow to hide control buttons | addon/index.js | addon/index.js | import Ember from 'ember';
import WidgetModel from 'ember-eureka/widget-model';
export default WidgetModel.extend({
/** if false, display the save button
*/
isEmbedded: false,
model: Ember.computed.alias('routeModel'),
fieldNames: Ember.computed.alias('config.fields'),
/** display only the ... | JavaScript | 0 | @@ -177,21 +177,64 @@
bedded:
-false
+Ember.computed.bool('config.hideControlButtons')
,%0A mo
@@ -1178,32 +1178,43 @@
ePath = this.get
+WithDefault
('config.actions
@@ -1224,32 +1224,70 @@
ve.transitionTo'
+, model.get('meta.modelIndexViewPath')
);%0A m
@@ -1758,24 +1758,296 @@
sitionTo');%0A
+ ... |
b1b5c14aa21577913972a5ae1f47e6ab468774b5 | Update index.js | admin/index.js | admin/index.js |
var fs = require('fs-extra'),
marked = require('marked'),
path = require('path'),
ImportUbb = {
admin: {
menu: function(custom_header) {
custom_header.plugins.push({
"route": '/plugins/import-ubb',
"icon": 'icon-edit',
"name": 'ImportUbb'
});
return custom_header;
},
route: f... | JavaScript | 0.000002 | @@ -82,19 +82,133 @@
'),%0A
-%0A%09ImportUbb
+%09pkg = fs.readJsonSync(path.join(__dirname + '../package.json')),%0A nbbId = pkg.name.replace(/nodebb-plugin-/, ''),%0A%09Plugin
= %7B
@@ -307,35 +307,33 @@
: '/plugins/
-import-ubb'
+' + nbbId
,%0A%09%09%09%09%09%22icon
@@ -365,19 +365,13 @@
e%22:
-'ImportUbb'
... |
16e450fc95b0f2279e60ec71551e723f5a3d95c2 | store the selected layout in the URL | webapps/client/scripts/navigation/directives/cam-layout-switcher.js | webapps/client/scripts/navigation/directives/cam-layout-switcher.js | define([
'angular',
'text!./cam-layout-switcher.html'
], function(
angular,
template
) {
'use strict';
var $bdy = angular.element('body');
var layouts = [
{
label: 'task',
css: 'layout-focus-task'
},
{
label: 'list',
css: 'layout-focus-list'
},
{
label: ... | JavaScript | 0 | @@ -188,44 +188,16 @@
l: '
-task',%0A css: 'layout-focus-task
+standard
'%0A
@@ -282,32 +282,60 @@
label: '
-s
ta
-ndard
+sk',%0A css: 'layout-focus-task
'%0A %7D%0A %5D;
@@ -445,25 +445,88 @@
return %5B
-function(
+%0A '$location',%0A 'search',%0A function(%0A $location,%0A searc... |
e3558b9df3639427a3f0177c23bcc4e8a55ab752 | implement a small part of fstat() | runtime/js/modules/_fs.js | runtime/js/modules/_fs.js | // Copyright (c) 2015 Tzvetan Mikov.
// Licensed under the Apache License v2.0. See LICENSE in the project
// root for complete license information.
var _jsc = require("./_jsc");
exports.FSInitialize = function FSInitialize (stats) {
console.error("process.binding.fs.FSInitialize() is not implemented");
};
export... | JavaScript | 0.000277 | @@ -173,16 +173,55 @@
jsc%22);%0A%0A
+__asmh__(%7B%7D,%22#include %3Csys/stat.h%3E%22);%0A%0A
exports.
@@ -879,24 +879,25 @@
ented%22);%0A%7D;%0A
+%0A
exports.fsta
@@ -918,83 +918,426 @@
stat
+
(fd)
-
+%0A
%7B%0A
-console.error(%22process.binding.fs.fstat() is not implemented
+var size;%0A if (__asm__(%... |
38986fd2554f9f075736dfdc0b13de06a00597f5 | Fix flatten two dimensional array | src/Symbologies/Code39.js | src/Symbologies/Code39.js | // @flow
import type { Barcode } from "../Core/Barcode"
import type { DiscreteSymbologySymbol } from "../Core/Characters"
import { NARROW_BAR, NARROW_SPACE, WIDE_BAR, WIDE_SPACE } from "../Core/Characters"
// See https://en.wikipedia.org/wiki/Code_39
export const Mapping: { [key: string]: DiscreteSymbologySymbol[] } =... | JavaScript | 0.999986 | @@ -3245,16 +3245,18 @@
Symbol%5B%5D
+%5B%5D
= text%0A
@@ -3380,23 +3380,21 @@
%0A%09const
-flatten
+encod
edInclud
@@ -3433,16 +3433,18 @@
Symbol%5B%5D
+%5B%5D
= encod
@@ -3531,22 +3531,91 @@
)%0A%0A%09
-return flatten
+const flattened: DiscreteSymbologySymbol%5B%5D = Array.prototype.concat.apply(%5B%5D, enc... |
b8f9682fd532151fe421647caaf5a0d7c59d89dc | create user before system_user | controller/register.js | controller/register.js | "use strict";
/* eslint camelcase: 0 */
var clientData = require("../components").clientData;
var crypto = require("crypto");
var commons = require("./commons");
var config = require("../components").config;
var pusher = require("commons/pusher")(config.pusher);
var errors = require("./errors");
function sendVerifyE... | JavaScript | 0.000009 | @@ -1647,198 +1647,15 @@
e: %22
-system_
user%22,%0A
- salt,%0A password_hash: passwordHash%0A %7D)%0A .then(systemUser =%3E%0A clientData.createObject(%7B%0A object_type: %22user%22,%0A
@@ -1666,28 +1666,24 @@
name: %7B%0A
-
... |
4bb386d04af10f788d86aae1e587821029d01c82 | add missing semicolon | controllers/catalog.js | controllers/catalog.js | var _ = require("lodash");
var Catalog = require("../models/catalog");
/**
* 保存知乎日报列表至数据库。如果已存在,则更新。
* @param {Object} p_catalog 知乎日报列表。
* @param {Function(err, doc)} [p_callback]
*/
exports.saveCatalog = function (p_catalog, p_callback)
{
if (_.isEmpty(p_catalog) || !_.isObject(p_catalog))
{
... | JavaScript | 0.999999 | @@ -437,16 +437,17 @@
ject.%22))
+;
%0D%0A
|
7908c7c2abc1da4a2ad3c6589204e63b29d4490c | fix status | controllers/default.js | controllers/default.js | var Mailgun = require('mailgun-js');
var models = require('../models');
//Your api key, from Mailgun’s Control Panel
var apiKey = process.env.MAILGUN_KEY;
//Your domain, from the Mailgun Control Panel
var domain = process.env.MAILGUN_DOMAIN;
var limit = 5;
module.exports = function(req, res) {
// find customer
... | JavaScript | 0.000001 | @@ -1501,19 +1501,19 @@
) ?
-true : fals
+false : tru
e;%0A
|
55dc9dfe22fe67c7a3e0204b7515f263580f1aaf | Update gulpfile.js | test/gulpfile.js | test/gulpfile.js | /***************************** EXTERNAL IMPORTS ******************************/
var gulp = require('gulp');
var fs = require('fs');
var path = require('path');
var rimraf = require('rimraf');
var babel = require('gulp-babel');
var gutil = require('gulp-util');
var Mocha = ... | JavaScript | 0.000001 | @@ -2506,46 +2506,28 @@
-%7D%0A
- // Finish up
+process.exit(0);
%0A
@@ -2539,39 +2539,33 @@
-done();
+%7D
%0A
|
a2a7e2922f02ba661c765fd08bc0820472622c7b | Remove redundant code in script_config.js | Server/static/js/script_config.js | Server/static/js/script_config.js | var loadData;
$.getJSON("/api/config", function(data) {
loadData = data;
for (var key in data.config) {
if (key === "alerts") {
for (var keycode in data.config[key]) {
var sel = "#" + keycode + "";
$(sel).val(data.config[key][keycode]);
}
} else if (key === "arduino") {
fo... | JavaScript | 0.001021 | @@ -106,38 +106,8 @@
) %7B%0A
- if (key === %22alerts%22) %7B%0A
@@ -138,34 +138,32 @@
.config%5Bkey%5D) %7B%0A
-
var sel =
@@ -180,34 +180,32 @@
ode + %22%22;%0A
-
$(sel).val(data.
@@ -231,537 +231,8 @@
%5D);%0A
- %7D%0A %7D else if (key === %22arduino%22) %7B%0A for (var... |
ccea2d9d33686dafdb210eb5c02f31c41314b9bb | clarify git checkout - tip | episodes/2015-12-30/index.js | episodes/2015-12-30/index.js | /* eslint max-len:0 */
export default {
title: `Functional and Immutable Design Patterns in JavaScript`,
guests: [
{
name: 'Dan Abramov',
twitter: 'dan_abramov',
imgSrc: '/resources/panelists/dan_abramov.png',
picks: [
`[A General Theory of Reactivity](https://github.com/kriskow... | JavaScript | 0.000004 | @@ -3112,16 +3112,70 @@
%60
+When running git checkout, using '-' as the argument (
git chec
@@ -3180,16 +3180,17 @@
eckout -
+)
takes y
|
1809efd0c6b2181e4e7e32d3c192ec83c2d2eb73 | Fix hidden property | controllers/regions.js | controllers/regions.js | 'use strict';
var mongoose = require('mongoose'),
Promise = require('bluebird'),
restifyErrors = require('restify-errors'),
rHandler = require('../lib/util/response-handlers'),
CommonController = require('./common');
class RegionsController extends CommonController {
constructor() {
super(... | JavaScript | 0.000001 | @@ -1904,17 +1904,19 @@
this.hid
-e
+den
) %7B%0A
|
32dc3e221e364daf0e1638747857590aad1fc302 | bump darn version in about -.- | sample/src/about/about.js | sample/src/about/about.js | export class About {
actors = [
{
'name': 'Bryan Cranston',
'episodes': 62,
'description': 'Bryan Cranston played the role of Walter in Breaking Bad. He is also known for playing Hal in Malcom in the Middle.',
'image': 'bryan-cranston.jpg'
}, {
'name': 'Aaron Paul',
'episod... | JavaScript | 0 | @@ -928,11 +928,11 @@
'0.2
-0.6
+1.0
';%0A
|
b93498d6269e44357e3f56b4f29e1a49a39bca1c | increase version | sample/src/about/about.js | sample/src/about/about.js | export class About {
actors = [
{
'name': 'Bryan Cranston',
'episodes': 62,
'description': 'Bryan Cranston played the role of Walter in Breaking Bad. He is also known for playing Hal in Malcom in the Middle.',
'image': 'bryan-cranston.jpg'
}, {
'name': 'Aaron Paul',
'episod... | JavaScript | 0.000004 | @@ -929,9 +929,9 @@
0.6.
-1
+2
';%0A
|
08dd7bb6d7afefe443a0919ef636ae633722f14e | Modify typo | walk-in-interview/src/main/webapp/account/log-in/applicant/script.js | walk-in-interview/src/main/webapp/account/log-in/applicant/script.js | /**
* This file is specific to log-in/applicant/index.html.
* It renders the fields on the page dynamically.
*/
// TODO(issue/21): get the language from the browser
const CurrentLocale = 'en';
/**
* Import statements are static so its parameters cannot be dynamic.
* TODO(issue/22): figure out how to use dynamic ... | JavaScript | 0.00155 | @@ -825,16 +825,17 @@
Into
-Business
+Applicant
Acco
|
9abe6ef083eb82fe8ae139480c75b02893c7f767 | Add an example of a compound conditional statement with && | examples/composit_statements.js | examples/composit_statements.js | import Local
import Global
"Global.x:" <input data=Global.x dataType="number" style={ display:'block' }/>
"Global.y:" <input data=Global.y dataType="number" style={ display:'block' }/>
let five = 5,
two = 2,
greeting = "hello ",
name = "world"
<table>
<tr>
<th>"Global.x + Global.y"</th>
Global.x + Global.y
... | JavaScript | 0.999918 | @@ -19,16 +19,29 @@
t Global
+%0Aimport Mouse
%0A%0A%22Globa
@@ -1124,12 +1124,86 @@
ve %3E 200%22%0A%7D%0A
+%0Aif (Mouse.x %3E 100 && Mouse.y %3E 100) %7B%0A%09%22Mouse.x %3E 100 && Mouse.y %3E 100%22%0A%7D
|
118cf4edec9a96ee3cf7927070f3145fe9ce9897 | Modify encoding for URL fragment so Firefox doesn't decode it automatically | zephyr/static/js/hashchange.js | zephyr/static/js/hashchange.js | var hashchange = (function () {
var exports = {};
var expected_hash = false;
exports.changehash = function (newhash) {
expected_hash = newhash;
// Some browsers reset scrollTop when changing the hash to "",
// so we save and restore it.
// http://stackoverflow.com/questions/4715073/window-location-ha... | JavaScript | 0 | @@ -73,16 +73,398 @@
false;%0A%0A
+// Some browsers zealously URI-decode the contents of%0A// window.location.hash. So we hide our URI-encoding%0A// by replacing %25 with . (like MediaWiki).%0A%0Afunction encodeHashComponent(str) %7B%0A return encodeURIComponent(str)%0A .replace(/%5C./g, '%252E')%0A ... |
c7f555cf5e830238acf9c8b9bd9bdc652ce93595 | remove pageable mixin | imports/pages/music/index.js | imports/pages/music/index.js | import { Component, PropTypes } from "react";
import ReactMixin from "react-mixin";
import { connect } from "react-redux";
import { graphql } from "react-apollo";
import gql from "graphql-tag";
import ApollosPullToRefresh from "../../components/pullToRefresh";
import { FeedItemSkeleton } from "../../components/loading... | JavaScript | 0 | @@ -436,61 +436,8 @@
r%22;%0A
-import Pageable from %22../../mixins/mixins.Pageable%22;%0A
impo
@@ -1701,39 +1701,8 @@
l()%0A
-@ReactMixin.decorate(Pageable)%0A
@Rea
|
7c623274ce8292518c07b7e59e1dd55ba6b44ddc | Remove .highlightClass | angular/app.js | angular/app.js | var app = angular.module('testApp', ['ngMaterial']);
// Config
app.config(function ($mdThemingProvider) {
$mdThemingProvider.theme('default')
.primaryPalette('green')
.accentPalette('purple');
console.info('Successfully initialized!');
});
app.controller('MainController', function ($scope, $mdSi... | JavaScript | 0.000002 | @@ -1979,106 +1979,8 @@
ue)%0A
- .highlightClass('md-accent')// Accent is used by default, this just demonstrates the usage.%0A
@@ -1991,32 +1991,32 @@
osition(pinTo);%0A
+
%0A $mdToast.sh
@@ -2119,32 +2119,76 @@
licked Undo.');%0A
+ console.log('Successfully undone');%0A
%7D%0A %7D);... |
c0116c40aef744d06edfba7a5525f5e1957cb2ff | update shell reference extensions | packages/remark-lint-no-shell-dollars/index.js | packages/remark-lint-no-shell-dollars/index.js | /**
* @author Titus Wormer
* @copyright 2015 Titus Wormer
* @license MIT
* @module no-shell-dollars
* @fileoverview
* Warn when shell code is prefixed by `$` (dollar sign) characters.
*
* Ignores indented code blocks and fenced code blocks without language flag.
*
* @example {"name": "valid.md"}
*
* `... | JavaScript | 0.000019 | @@ -1250,15 +1250,15 @@
lob/
-5bf8cf5
+001ca52
/lib
@@ -1286,10 +1286,10 @@
ml#L
-30
+47
02%3E%0A
|
6ba6527ef705b120b8095f2ffe55fb2de73219bb | fix jsdoc tag, no functional change | lib/OpenLayers/Filter/FeatureId.js | lib/OpenLayers/Filter/FeatureId.js | /* Copyright (c) 2006-2011 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the Clear BSD license.
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/Filter.js
*/
/**
* Class: OpenLayers.... | JavaScript | 0.000002 | @@ -646,27 +646,19 @@
st.
-To be passed
%0A *
+
To
|
318ee5df7dcf95d925e76124344ca613f01cb6f6 | Move timestamp updating to an exported function for testing purposes | zephyr/static/js/timerender.js | zephyr/static/js/timerender.js | var timerender = (function () {
var exports = {};
// If this is 5, then times from up to 5 days before the current
// day will be formatted as weekday names:
//
// 1/10 1/11 1/12
// Sun Mon Tue Wed Thu 1/18 1/19
// ^ today
var MAX_AGE_FOR_WEEKDAY = 5;
var next_timerender_... | JavaScript | 0 | @@ -3498,20 +3498,124 @@
%7D;%0A%0A
-setInterval(
+// This isn't expected to be called externally except manually for%0A// testing purposes.%0Aexports.update_timestamps =
func
@@ -4860,16 +4860,56 @@
today;%0A%7D
+;%0A%0AsetInterval(exports.update_timestamps
, 60 * 1
|
eedbdb6ddcd8b0d9b48a1cf3fd04f80a6dae0fbb | Fix caret position after image update | wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabImage.js | wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabImage.js | $.Redactor.prototype.WoltLabImage = function() {
"use strict";
return {
init: function() {
var button = this.button.add('woltlabImage', '');
this.button.addCallback(button, this.WoltLabImage.add);
// add support for image source when editing
var mpShowEdit = this.image.showEdit;
this.image.show... | JavaScript | 0 | @@ -2425,17 +2425,26 @@
mpUpdate
-(
+.call(this
);%0A%09%09%09%09%0A
@@ -2569,16 +2569,50 @@
itle');%0A
+%09%09%09%09%0A%09%09%09%09this.caret.after(image);%0A
%09%09%09%7D).bi
|
3041dbb5a06a57b5e1e197dae1652dd5cc6748b4 | Fix applyDefaults objects mutation | core/services/build.js | core/services/build.js | 'use strict';
const { eachSeries } = require('async');
const { get, assignWith, cloneDeep, isNil } = require('lodash');
module.exports = (callCIDriver, localConfig) => {
return (branch, jobs, deployConfig, cb) => {
const ciJobsConfig = deployConfig.ciJobs;
const ciServicesConfig = deployConfig.ciServices;... | JavaScript | 0 | @@ -1715,24 +1715,23 @@
oneDeep(
-original
+default
Obj);%0A
@@ -1754,21 +1754,22 @@
ith(
-default
+final
Obj,
-f
+orig
inal
|
a4d572343628113192da7104412b30ffeee0eceb | Set default values | src/angular-punchchart.js | src/angular-punchchart.js | (function () {
'use strict';
var module = angular.module('pygmalios.punchchart', []);
module.directive('punchChart', ['$window', function($window) {
var getMaxValue = function(data) {
var max = 1;
data.forEach(function(xValues){
xValues.forEach(function(value){
if (max... | JavaScript | 0.000005 | @@ -202,17 +202,17 @@
r max =
-1
+0
;%0A
@@ -1592,32 +1592,90 @@
= function() %7B%0A
+ scope.chartData = scope.chartData %7C%7C %5B%5D;%0A%0A
@@ -1849,17 +1849,17 @@
ength :
-1
+0
;%0A%0A
@@ -2213,16 +2213,17 @@
actor =
+(
maxValue
@@ -2235,16 +2235,22 @@
X_RADIUS... |
20e893379ea14283bb9c1fa058b358f3e8981cbc | fix babel-jest config? | scripts/utils/babelTransform.js | scripts/utils/babelTransform.js | const babelJest = require('babel-jest');
const config = require('../../config/webpack.defaults.js');
module.exports = babelJest.createTransformer({
passPerPreset: true,
presets: [
'babel-preset-react',
'babel-preset-env',
'babel-preset-stage-0',
],
plugins: [
'babel-plugin-transform-runtime',
... | JavaScript | 0 | @@ -259,16 +259,37 @@
-0',%0A %5D
+.map(require.resolve)
,%0A plug
@@ -336,14 +336,35 @@
me',%0A %5D
+.map(require.resolve)
,%0A%7D);%0A
|
b8fe9f8e9124c73a0cad9932c368b89d591905e8 | Update flow.js | examples/listen_to_this/flow.js | examples/listen_to_this/flow.js | const datafire = require('datafire');
const flow = module.exports = new datafire.Flow("Create a Spotify playlist from r/listenToThis", "Create a new playlist every day using suggestions from Reddit");
const spotify = datafire.Integration.new('spotify').as('default');
const reddit = datafire.Integration.new('reddit');
... | JavaScript | 0.000001 | @@ -331,21 +331,26 @@
'spotify
+_user
', %7B%0A
-
do: sp
@@ -535,24 +535,22 @@
w.step('
-spotify1
+tracks
', %7B%0A d
@@ -844,24 +844,28 @@
w.step('
-spotify2
+add_playlist
', %7B%0A d
@@ -965,32 +965,37 @@
id: data.spotify
+_user
.id,%0A body:
@@ -1110,16 +1110,18 @@
ep('
-spotify3
+add_tracks
', %... |
3240bad466fb157ad539fb9a2ef8868cd04f0c28 | Fix layouts to use leaf counts if no value field is provided. (#1863) | packages/vega-hierarchy/src/HierarchyLayout.js | packages/vega-hierarchy/src/HierarchyLayout.js | import {Transform} from 'vega-dataflow';
import {error, inherits, one} from 'vega-util';
/**
* Abstract class for tree layout.
* @constructor
* @param {object} params - The parameters for this operator.
*/
export default function HierarchyLayout(params) {
Transform.call(this, null, params);
}
var prototype = in... | JavaScript | 0 | @@ -694,16 +694,35 @@
.field);
+ else root.count();
%0A if (_
|
0182ca7d4668f62ef2d3f52a2a1096a919a9e870 | Add viewNodeMetadataURL helper. | src/api/user/urlHelper.js | src/api/user/urlHelper.js | import "user";
import "../node/urlHelper";
import "../../config/config";
import "../../util/util";
sn.api.user.registerUrlHelperFunction = sn_api_user_registerUrlHelperFunction;
var sn_api_user_urlHelperFunctions;
function sn_api_user_baseURL(urlHelper) {
return (urlHelper.hostURL()
+(sn.config && sn.config.sola... | JavaScript | 0 | @@ -5350,12 +5350,388 @@
turn url;%0A%7D%0A
+%0Asn_api_node_registerUrlHelperFunction('viewNodeMetadataURL', sn_api_user_viewNodeMetadataURL);%0A%0A/**%0A * Generate a URL for viewing the configured node's metadata.%0A *%0A * The configured %3Ccode%3EnodeId%3C/code%3E property will be used.%0A *%0A * @returns %7BStrin... |
e3448b42aceb1874c86bb2a973a9d82622fe9373 | add two reported phishing url's | src/app/utils/Phishing.js | src/app/utils/Phishing.js | const domains = [
'steewit.com',
'śteemit.com',
'ŝteemit.com',
'şteemit.com',
'šteemit.com',
'sţeemit.com',
'sťeemit.com',
'șteemit.com',
'sleemit.com',
'aba.ae',
'autobidbot.cf',
'autobidbot.ga',
'autobidbot.gq',
'autobotsteem.cf',
'autobotsteem.ga',
'aut... | JavaScript | 0.000007 | @@ -1692,16 +1692,67 @@
up.ml',%0A
+ 'steemboostup.icu',%0A 'proservices.website',%0A
%5D;%0A%0A/**%0A
|
1425017a46d83a7263cf110d04ce4723930e7d7b | Exit with code 1 when got errored tasks | bin/gulp.js | bin/gulp.js | #!/usr/bin/env node
var path = require('path');
var argv = require('optimist').argv;
var completion = require('../lib/completion');
if (argv.completion) { return completion(argv.completion); }
var resolve = require('resolve');
var findup = require('findup-sync');
var gutil = require('gulp-util');
var prettyTime = r... | JavaScript | 0 | @@ -2712,16 +2712,158 @@
tion()%7B%0A
+ if (typeof tasks%5Btasks.length%5D !== 'function') %7B%0A tasks.push(function(err) %7B%0A if (err) %7B process.exit(1); %7D%0A %7D);%0A %7D%0A
loca
|
fd9f3661afd4f8d2d0fedf8aff390d87c5d9af33 | add variable discovery functions | bin/unit.js | bin/unit.js | var make = exports.make = function(obj) {
var stream = '';
var cmd;
var i;
for(i in obj) {
cmd = obj[i].command.split(' ')[0];
if(exports[cmd] && cmd !== 'make') {
stream += exports[cmd](obj[i], function(children) {
var s = '';
var j;
if(children !== null) {
for(j in children) {
s +=... | JavaScript | 0.000001 | @@ -1,12 +1,44 @@
+var _ = require('underscore');%0A%0A
var make = e
@@ -489,17 +489,20 @@
exports.
-v
+getV
ariables
@@ -524,29 +524,8 @@
) %7B%0A
-%09var s = '';%0A%09var i;%0A
%09var
@@ -548,10 +548,8 @@
%5C%7D/g
-im
;%0A%09v
@@ -556,18 +556,30 @@
ar match
-es
+, matches = %5B%5D
;%0A%0A%09whil
@@ -586,18 +... |
423b21f12c735d70f976ad656080a65571f5c3a2 | fix create user bug introduced during flow refactor | lib/admin/components/CreateUser.js | lib/admin/components/CreateUser.js | // @flow
import Icon from '@conveyal/woonerf/components/icon'
import React, {Component} from 'react'
import {Button, Modal, FormControl, ControlLabel, FormGroup} from 'react-bootstrap'
import UserSettings from './UserSettings'
import UserPermissions from '../../common/user/UserPermissions'
import {getComponentMessage... | JavaScript | 0.000002 | @@ -788,16 +788,91 @@
lean%0A%7D%0A%0A
+const DEFAULT_STATE = %7B%0A email: '',%0A password: '',%0A showModal: false%0A%7D%0A%0A
export d
@@ -943,85 +943,73 @@
e =
-%7B%0A email: '',%0A password: '',%0A showModal: false%0A %7D%0A%0A save = (e: any
+DEFAULT_STATE%0A%0A save = (e: SyntheticInputEvent%3... |
0417757de95778f230fc548c427b70b56989c723 | add '.' in name strategy regex | lib/helpers/findElementStrategy.js | lib/helpers/findElementStrategy.js | import { ProtocolError } from '../utils/ErrorHandler'
const DEFAULT_SELECTOR = 'css selector'
let findStrategy = function (...args) {
let value = args[0]
let relative = (args.length > 1 ? args[1] : false)
let xpathPrefix = relative ? './' : '//'
/**
* set default selector
*/
let using =... | JavaScript | 0.999999 | @@ -2366,32 +2366,33 @@
')(%5Ba-zA-z0-9%5C-_
+.
%5D+)(%22%7C')%5C%5D$/) %3E
@@ -2477,16 +2477,17 @@
-z0-9%5C-_
+.
%5D+)(%22%7C'
|
efc4bb39c0a8e4ac92d11aa5b9b5ebf25318376c | test for argument of function in matching | test/registers/match.spec.js | test/registers/match.spec.js | 'use strict';
const {check} = require('../util');
const bee = require('../../src/index');
describe('[match register]', () => {
it('multi type match', function () {
let ori = {
foo: 1,
bar: 2,
1: 3
};
let beeOptions = {
[bee.match(/foo/, 1, '... | JavaScript | 0.000001 | @@ -83,16 +83,50 @@
index');
+%0Aconst assert = require('assert');
%0A%0Adescri
@@ -554,32 +554,396 @@
%7D);%0A %7D);%0A%0A
+ it('match and function', function () %7B%0A let ori = %7B%0A foo: 1%0A %7D;%0A%0A let beeOptions = %7B%0A %5Bbee.match('foo')%5D: (value, k... |
743bc142aa4c8cd11f16ebda2a1b153114af4b92 | Add tests for proposition display. | test/unit/PropositionTest.js | test/unit/PropositionTest.js |
define(
[
'chai',
'sinon',
'fixtures',
'argumenta/widgets/Proposition',
'argumenta/widgets/Base'
],
function(chai, undefined, fixtures, Proposition, Base) {
var assert = chai.assert;
describe('Proposition', function() {
it('should be a function', function() {
assert.i... | JavaScript | 0 | @@ -1083,24 +1083,1528 @@
%7D);
+%0A%0A it('should display the proposition index', function() %7B%0A var data = fixtures.validPropositionData();%0A var proposition = new Proposition(data);%0A var $span = proposition.element.find('span.index');%0A ... |
01970fa6f0b53de83adc1039ede365ce192a7b3f | Update test/unit/util_task-queue.js | test/unit/util_task-queue.js | test/unit/util_task-queue.js | const test = require('tap').test;
const TaskQueue = require('../../src/util/task-queue');
const testCompare = require('../fixtures/test-compare');
test('constructor', t => {
// Max tokens = 1000, refill 1000 tokens per second (1 per millisecond), and start with 0 tokens
const bukkit = new TaskQueue(1000, 100... | JavaScript | 0 | @@ -21,20 +21,20 @@
('tap').
-test
+skip
;%0A%0Aconst
|
d5f5d4a55d625ec64fc0fcda19d18d149b1c5186 | Fix tooltip issue | lib/shared/addon/mixins/tooltip.js | lib/shared/addon/mixins/tooltip.js | import { scheduleOnce } from '@ember/runloop';
import { get, set, observer } from '@ember/object';
import { on } from '@ember/object/evented';
import $ from 'jquery';
import { inject as service } from '@ember/service';
import Mixin from '@ember/object/mixin';
import ThrottledResize from 'shared/mixins/throttled-resize'... | JavaScript | 0.00008 | @@ -2642,42 +2642,8 @@
t');
-%0A let self = this;
%0A%0A
@@ -4085,176 +4085,8 @@
) %7B%0A
- let centerOfDot = self.get('tooltipService.tooltipOpts.originalNode').offset().left + (eventNodeWidth / 2);%0A let widthOfEvent = eventNodeWidth;%0A
@@ -4116,16 +4116,16 @@
= ... |
a5f08b90fc7f72a8e82b452f667452be76bbafc9 | Fix flash messages | libcrowds_analyst/static/notify.js | libcrowds_analyst/static/notify.js | function notify(msg){
let html = $(`<div class="alert alert-${category} fade">
<a class="close" data-dismiss="alert" href="#">×</a>${msg}
</div>`);
$('#alert-messages').append(html);
window.setTimeout(function () {
html.addClass("in");
}, 300);
} | JavaScript | 0.000043 | @@ -12,16 +12,26 @@
tify(msg
+, category
)%7B%0A l
|
148af6c6fef05fe25f3f3c26ae9b9c5a7d7a1125 | Fix error when no configurations for creating a new one | views/dialog.js | views/dialog.js | define([
"text!templates/dialog.html",
"less!stylesheets/dialog.less"
], function(templateFile) {
var DialogView = codebox.require("views/dialogs/base");
var dialogs = codebox.require("utils/dialogs");
var loading = codebox.require("utils/loading");
var _ = codebox.require... | JavaScript | 0.000006 | @@ -1913,32 +1913,33 @@
%0A if(
+!
conf_name.length
@@ -1927,37 +1927,24 @@
f(!conf_name
-.length === 0
) %7B%0A
@@ -4519,32 +4519,33 @@
%0A if(
+!
conf_name.length
@@ -4533,37 +4533,24 @@
f(!conf_name
-.length === 0
) %7B%0A
|
8604c68f9ec423e02dd082e1417c8cac90e84d88 | remove npm check on modified | tooling/modified-packages.js | tooling/modified-packages.js | /*!
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
*/
const _ = require('lodash');
const yargs = require('yargs');
const {listDependents} = require('./lib/dependencies');
const {last} = require('./lib/version');
const {diff} = require('./lib/git');
const fileToPackage = (d) => {
if (d.startsWith... | JavaScript | 0.000001 | @@ -1044,16 +1044,21 @@
ts, npm%7D
+ = %7B%7D
) =%3E %7B%0A
@@ -1670,77 +1670,31 @@
true
-, npm: !!process.env.CI%7D) :%0A await updated(%7Bnpm: !!process.env.CI%7D
+%7D) :%0A await updated(
);%0A%0A
|
274d5c0ae9191798b36dc6a298dcda62656d5d76 | Test IE6 | tools/browser_test_runner.js | tools/browser_test_runner.js | var path = require("path");
var build = require("./build.js");
var Promise = require("bluebird");
var fs = Promise.promisifyAll(require("fs"));
var baseDir = path.join(__dirname, "..", "test", "browser");
var browsers = [
["Windows XP", "internet explorer", "7"],
["Windows XP", "internet explorer", "8"],
["... | JavaScript | 0 | @@ -215,16 +215,62 @@
ers = %5B%0A
+ %5B%22Windows XP%22, %22internet explorer%22, %226%22%5D,%0A
%5B%22Wi
|
b06d6d98630ec8a61b075e1b0037ede27d0d1881 | resolve merge conflicts | Components/Widgets/Button.js | Components/Widgets/Button.js | /* @flow */
'use strict';
import React, { Text, View, TouchableOpacity } from 'react-native';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import button from '../Styles/button';
import _ from 'lodash';
import computeProps from '../../Utils/computeProps';
import Icon from 'react-native-vector-icons/Io... | JavaScript | 0.000001 | @@ -3602,21 +3602,8 @@
%3E%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A
@@ -3683,147 +3683,8 @@
xt%3E%0A
-=======%0A %3CText style=%7Bthis.getTextStyle()%7D%3E%7Bthis.props.children%7D%3C/Text%3E%0A%3E%3E%3E%3E%3E%3E%3E 1d9203dff8b3adf7b8ddc62749f10db5cdf07eed%0A
|
9b691c527aa5c96fd0a4cd0d40750a89310cce32 | update symbol species test | misc/scratchpad.js | misc/scratchpad.js | let sym = Symbol;
let spec = sym.species;
class A extends Array {
static [spec] = Array;
}
let typeA = A.from([1, 2, 3]);
let typeAArray = A.from([1, 2, 3]) // return type: A
.map((x) => x + 1); // return type: Array
console.log(typeA, typeAArray);
class B extends Array {
static [Symbol.species] = Array;
}
l... | JavaScript | 0 | @@ -73,24 +73,41 @@
tic
+get
%5Bspec%5D
- =
+() %7B%0A return
Array;%0A
%7D%0A%0Al
@@ -94,32 +94,36 @@
return Array;%0A
+ %7D%0A
%7D%0A%0Alet typeA = A
@@ -255,16 +255,61 @@
og(typeA
+ instanceof A, typeA, typeAArray instanceof A
, typeAA
@@ -349,16 +349,20 @@
static
+get
%5BSymbol.
@@ -373,18 +37... |
54488995aba55221af97e1c3c46b39f6d09141aa | Remove /api prefix from routes. | processes/server.js | processes/server.js | var gateway = require(__dirname + '/../');
process.env.DATABASE_URL = gateway.config.get('DATABASE_URL');
var express = require('express');
var fs = require('fs');
var https = require('https');
var sequelize = require(__dirname+'/../node_modules/ripple-gateway-data-sequelize/lib/sequelize.js');
var restful = require('... | JavaScript | 0 | @@ -1233,36 +1233,32 @@
;%0A%7D%0A%0Aapp.post('/
-api/
v1/users/registe
@@ -1294,28 +1294,24 @@
%0Aapp.post('/
-api/
v1/users/log
@@ -1340,36 +1340,32 @@
ser);%0Aapp.get('/
-api/
v1/users/:id/ext
@@ -1423,36 +1423,32 @@
nts);%0Aapp.get('/
-api/
v1/users/:id/ext
@@ -1514,36 +1514,32 @@
ons);%0Aapp.get('/
-api/
... |
d986a18c567f27c329d7d15d34579081287c7183 | Fix comments, add reject example | scratchpad.js | scratchpad.js | // Plugins are just a class
class IssuesPlugin {
// plugins can be initialized with state that is available in any of the methods
constructor(state) {
this.state = state;
}
// All defined methods become available in the api.
// each method takes a `context` argument that has access to the context it was ... | JavaScript | 0 | @@ -528,16 +528,24 @@
message,
+ %7Bstate:
this.st
@@ -556,16 +556,17 @@
context
+%7D
);%0A
@@ -725,16 +725,27 @@
(%22close%22
+, %7Bcontext%7D
);%0A
@@ -781,24 +781,113 @@
%0A %7D);%0A %7D
+%0A%0A fail(context) %7B%0A return Promise.reject(%22Rejecting a promise stops the chain%22);%0A %7D
... |
27a56fd3e660b51c6fc47594baf079a3474a1d77 | Fix jsdoc comment | HelloWorld/lib/myPanel.js | HelloWorld/lib/myPanel.js | /* See license.txt for terms of usage */
"use strict";
const self = require("sdk/self");
const { Cu, Ci } = require("chrome");
const { Panel } = require("dev/panel.js");
const { Class } = require("sdk/core/heritage");
const { Tool } = require("dev/toolbox");
/**
* This object represents a new {@Toolbox} panel
*/
... | JavaScript | 0.000001 | @@ -351,12 +351,10 @@
nds
-Base
+My
Pane
|
e06ff48e3f45f8ce5800984504189aa1dfa6542e | Fix title/subtitle for people activity graph. | dashboard/js/graphs.js | dashboard/js/graphs.js | function makeLink(url, text) {
var link = $('<a />', {
href: url,
text: text,
});
return $('<div />').append(link).html();
}
function makeList(container, options) {
$.getJSON(API_BASE + options.endpoint)
.done(function (json) {
$container = $(container);
... | JavaScript | 0 | @@ -6423,32 +6423,42 @@
title: %22
-Activity
+Most active people
%22,%0A
@@ -6471,37 +6471,36 @@
subtitle: %22
-Total monthly
+By number of
events%22,%0A
|
b2f2a8a384dab64d13e775f9491559b81ee59e08 | Add sass dependency to buildfiles in gulpfile | MSPSpain.Web/Content/gulpfile.js | MSPSpain.Web/Content/gulpfile.js | var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
var files = {
build: 'build/**/*.*',
buildJS: 'build/code.js',
buildCSS: 'build/styles.css',
css: 'css/**/*.css',
filePaths: ['css/**/*.css', 'ts/Services/*.js', 'ts/Models/*.js', 'ts/Interfaces/*.js', 'ts/Controllers/*.js', 'ts/App.js'],
... | JavaScript | 0.000001 | @@ -1639,16 +1639,26 @@
dFiles',
+ %5B'sass'%5D,
functio
@@ -1654,24 +1654,25 @@
'%5D, function
+
() %7B%0A%09// Sav
|
6c59b221d967743460038c28592392420bcc51e5 | fix complete callback | example/sprites/js/sprite.js | example/sprites/js/sprite.js |
function Sprite(sprite_data)
{
var position,
halfWidth,
halfHeight,
properties = {
x: sprite_data.x,
y: sprite_data.y,
facing: sprite_data.facing,
start: 0,
sprite_data: sprite_data,
object: null
};
var animation_class = null;
var moving = false;
var manager = null;
this.setManager ... | JavaScript | 0.000001 | @@ -2801,16 +2801,20 @@
'%0A%09%09%7D, %7B
+%0A%09%09%09
duration
@@ -2834,17 +2834,20 @@
uration,
-
+%0A%09%09%09
queue: t
@@ -2853,33 +2853,93 @@
true
-%7D, 'swing', function() %7B%0A
+,%0A%09%09%09easing: 'swing',%0A%09%09%09step: function() %7B%0A%0A%09%09%09%7D,%0A%09%09%09complete: function(now, fx) %7B%0A%... |
294fd5d7e068597387deb11346d813f7b687d08e | clarify to use response.set() | 06-content-negotiation/index.js | 06-content-negotiation/index.js |
var koa = require('koa');
/**
* This is a promisified version of zlib's gzip function,
* allowing you to simply `yield` it without "thunkifying" it.
*
* this.response.body = yield gzip('something');
*/
var gzip = require('mz/zlib').gzip;
var app = module.exports = koa();
app.use(function* () {
})
| JavaScript | 0.000002 | @@ -151,16 +151,104 @@
t.%0A *%0A *
+ app.use(function* (next) %7B%0A * this.response.set('Content-Encoding', 'gzip');%0A *
this.
@@ -288,16 +288,24 @@
hing');%0A
+ * %7D)%0A
*/%0Avar
|
02e513159c99eb1de29fcc8c00d6ef476572e993 | fix a bug | models/dc_model.js | models/dc_model.js | var mongodb = require('./mongodb');
var Schema = mongodb.mongoose.Schema;
var DCSchema = new Schema({
no: String,
r1: Number,
r2: Number,
r3: Number,
r4: Number,
r5: Number,
r6: Number,
b1: Number,
date: Date
});
var DCModel = mongodb.mongoose.model('dc', DCSchema);
var DCDAO = function () { };
DCDAO.prototyp... | JavaScript | 0.000016 | @@ -592,86 +592,8 @@
e %7B%0A
-%09%09DCModel.find(query, '', opts, callback).limit(limitnum).sort(%7B 'no': -1 %7D);%0A
%09%7D%0A%7D
|
779e529feaab70c57f361892ff2591c86f316c10 | comment (support _method (PUT in forms etc)) | server/app.js | server/app.js | /**
* Point d'entrée du programme
*/
if (typeof define !== 'function') {
var define = (require('amdefine'))(module);
}
define([
'express.io',
'./config/boot'
], function (express, boot) {
var app = express().http().io();
// settings
// define a custom res.message() method
// which stores... | JavaScript | 0 | @@ -1037,24 +1037,27 @@
rms etc)%0A
+ //
app.use(exp
|
1574986ee853e0e589be8ef57860aa2d8caaf44a | fix a bug | server/app.js | server/app.js | const path = require("path");
const helmet = require("helmet");
const express = require("express");
const favicon = require("serve-favicon");
const bodyParser = require("body-parser");
const compression = require("compression");
const isDevMode = app.get("env") !== "production";
const viewsPath = path.resolve(__dirna... | JavaScript | 0.000016 | @@ -228,59 +228,8 @@
);%0A%0A
-const isDevMode = app.get(%22env%22) !== %22production%22;%0A
cons
@@ -542,16 +542,67 @@
press();
+%0Aconst isDevMode = app.get(%22env%22) !== %22production%22;
%0A%0A// vie
|
763033d7f91bae894150c6d060ea43bb40f8d332 | Update commain.js | yangfan01/scripts/commain.js | yangfan01/scripts/commain.js | var button=$("button:eq(0)"),p=$("p");button.click(function(a){$("div").addClass("divHide");time=totalTime;goldCaught=0;unactivation();activation();main();timeInterval=setInterval(tick,1E3)});function tick(){time--;0>=time&&(clearInterval(timeInterval),cancelAnimationFrame(mainFrame),$("div").removeClass(),goldCaught>m... | JavaScript | 0.000001 | @@ -717,16 +717,23 @@
ge.src=%22
+images/
cat.png%22
@@ -827,16 +827,23 @@
ge.src=%22
+images/
gold.png
|
8eb58ae508824bcae517f30d75bc1d87664860fc | Update reverseTransaction, #8423 | arches/app/media/js/views/components/plugins/etl-manager.js | arches/app/media/js/views/components/plugins/etl-manager.js | define([
'jquery',
'knockout',
'arches',
], function($, ko, arches) {
return ko.components.register('etl-manager', {
viewModel: function(params) {
const self = this;
this.loading = params.loading;
this.alert = params.alert;
this.loading(true);
... | JavaScript | 0 | @@ -32,16 +32,33 @@
ckout',%0A
+ 'js-cookie',%0A
'arc
@@ -81,16 +81,25 @@
n($, ko,
+ Cookies,
arches)
@@ -2872,42 +2872,47 @@
-'Content-Type': 'application/jso
+%22X-CSRFToken%22: Cookies.get('csrftoke
n'
+)
%0A
|
3797a36cc083a0a4566d54e999ac80b6ebdc4278 | Create algorithm to calculate text color by background colour | src/Oro/Bundle/CalendarBundle/Resources/public/js/calendar/color-manager.js | src/Oro/Bundle/CalendarBundle/Resources/public/js/calendar/color-manager.js | /*jslint nomen:true*/
/*global define*/
define(['underscore'], function (_) {
'use strict';
/**
* @export orocalendar/js/calendar/color-manager
* @class orocalendar.calendar.colorManager
*/
var ColorManager = {
/**
* A list of text/background colors are used to determine ... | JavaScript | 0 | @@ -272,13 +272,8 @@
of
-text/
back
@@ -1117,24 +1117,32 @@
+ this.getCo
+ntrastCo
lor(backgrou
@@ -1971,16 +1971,24 @@
is.getCo
+ntrastCo
lor(obj.
@@ -3490,16 +3490,17 @@
function
+
(dec) %7B%0A
@@ -3593,16 +3593,17 @@
ength ==
+=
1 ? '0'
@@ -3621,32 +3621,33 @@
x;%0A %7D
+;
%0A r... |
c88adb0c96b694bf240595f2ceb13469f5e223f7 | Bump commit. | assets/js/components/surveys/CurrentSurvey.stories.js | assets/js/components/surveys/CurrentSurvey.stories.js | /**
* CurrentSurvey Component Stories.
*
* Site Kit by Google, Copyright 2021 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/LICEN... | JavaScript | 0 | @@ -1372,24 +1372,25 @@
registry );%0A
+%0A
%09%09%09%09registry
|
1e9b2a8aaa001a0a1abb06bc924d41eea8e48e12 | Fix broken tests. | assets/js/googlesitekit/datastore/site/errors.test.js | assets/js/googlesitekit/datastore/site/errors.test.js | /**
* `core/site` data store: Errors tests.
*
* Site Kit by Google, Copyright 2021 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/... | JavaScript | 0.000004 | @@ -1277,16 +1277,37 @@
or param
+ to be a plain object
', () =%3E
@@ -1468,12 +1468,22 @@
t( '
-adds
+should set the
err
@@ -1619,35 +1619,47 @@
tState()
- ).toMatchObject( %7B
+.internalServerError ).toEqual(
interna
@@ -1666,26 +1666,24 @@
lServerError
- %7D
);%0A%09%09%09%7D );%0A
@@ -1750,24 +1750,46 @@... |
5665684a5e15cce31299783f95b232c07f0ac927 | Tweak chroma.js sed args to work on the build system (#53) | examples/chroma.js/config.js | examples/chroma.js/config.js | export default {
cloneUrl: 'https://github.com/gka/chroma.js.git',
forkUrl: 'git@github.com:decaffeinate-examples/chroma.js.git',
useDefaultConfig: true,
extraDependencies: [
'grunt-cli',
],
expectConversionSuccess: true,
expectTestSuccess: true,
testCommand: `
set -e
find src -name '*.js' |... | JavaScript | 0 | @@ -330,11 +330,8 @@
d -i
- ''
-e
|
355f8d3f6b289a6f2774fbb32b1997be6f2e27ef | Update tester16.js | test/tester16.js | test/tester16.js | "use strict";
const request = require("request-promise-native");
const http = require("http");
const pino = require("pino")();
const Pool = require("pg-pool");
const parseString = require("xml2js").parseString;
const debug = require("debug")("tester16");
const moment = require("moment");
const pool = new Pool({
ma... | JavaScript | 0.000001 | @@ -1391,16 +1391,56 @@
%7D%0A%0A
+ return new Promise((resolve, reject) =%3E
parseSt
@@ -1517,41 +1517,109 @@
-//debug(%22hier%22,err,result
+if (err) %7B%0A //reject(err);%0A resolve();%0A %7D else %7B%0A resolve(
);%0A
+
-%7D
+ %7D%0A %7D)
);%0A
|
ba4a9b34329268a60d73e049779f9f2180c06ae6 | Fix masonry. | assets/themes/sangria/js/main.js | assets/themes/sangria/js/main.js | $(document).ready(function() {
// instagram feed
var feed = new Instafeed({
clientId: 'babb8453913c4c7f87f210172eed1166',
accessToken: '4044782518.babb845.cdfe6f09843d4f0f885c2882b9c161d5',
get: 'user',
userId: '4044782518',
limit: 7,
resolution: 'thumbnail',
template: '<di... | JavaScript | 0.000001 | @@ -686,12 +686,12 @@
$('.
-main
+ruby
-con
@@ -699,13 +699,12 @@
ent-
-inner
+wrap
').m
|
d5ec31123e8824902550c60200c798cc0a9fecbe | Document lastActivityResultParser middleware. | lib/junction/middleware/lastActivityResultParser.js | lib/junction/middleware/lastActivityResultParser.js | module.exports = function lastActivityResultParser(options) {
options = options || {};
return function lastActivityResultParser(stanza, next) {
if (!stanza.is('iq')) { return next(); }
if (stanza.type != 'result') { return next(); }
var query = stanza.getChild('query', 'jabber:iq:last');
if (!que... | JavaScript | 0 | @@ -1,92 +1,596 @@
-module.exports = function lastActivityResultParser(options) %7B%0A options = options %7C%7C %7B%7D;
+/**%0A * Parse information about the last activity associated with an XMPP entity.%0A *%0A * This middleware parses last activity information contained within IQ-result%0A * stanzas. %60stanza.last... |
cd002bfa5a5283f5f16744ee4e2b87219e342d97 | fix panels | app/assets/javascripts/scripts/plugins/panel/element/panel.element.js | app/assets/javascripts/scripts/plugins/panel/element/panel.element.js | /**
* Created with JetBrains RubyMine.
* User: teamco
* Date: 5/9/13
* Time: 11:48 AM
*/
/**
* @constant PluginElement
* @type {module.PluginElement}
*/
const PluginElement = require('../../plugin.element.js');
/**
* Define Panel Element
* @class PanelElement
* @extends PluginElement
*/
module.exports = c... | JavaScript | 0.000001 | @@ -2052,17 +2052,17 @@
*/%0A
-g
+s
etLongHe
@@ -2061,31 +2061,24 @@
etLongHeader
-Wrapper
() %7B%0A%0A co
@@ -2425,17 +2425,17 @@
*/%0A
-g
+s
etShortH
@@ -2443,15 +2443,8 @@
ader
-Wrapper
() %7B
|
2ff1def4549d14c9cb2d93db5857767978eecb35 | Change run radius to 0.2 miles for physical test | client/app/services/services.js | client/app/services/services.js | angular.module('bolt.services', [])
.factory('Geo', function () {
var mainMap;
var currentLocMarker;
var destinationMarker;
var directionsService = new google.maps.DirectionsService();
var directionsRenderer = new google.maps.DirectionsRenderer();
var route;
var makeInitialMap = function($scope) {
... | JavaScript | 0 | @@ -659,17 +659,19 @@
LngObj,
-1
+0.2
);%0A
|
6d319f9f31a6e62b48dd9c40c7565039317a9098 | update the fetch code script | scripts/fetch-question.js | scripts/fetch-question.js | const { writeFileSync, closeSync, openSync, existsSync } = require('fs');
const { resolve } = require('path');
const { get } = require('request');
const { load } = require('cheerio');
const { prompt } = require('inquirer');
const { info } = require('better-console');
const { clearConsole, traverseNode, unicodeToChar, ... | JavaScript | 0.000001 | @@ -2267,24 +2267,434 @@
)%0A %7D);%0A%7D;%0A%0A
+const getInfosFromPagedata = $ =%3E %7B%0A eval($('script').toArray().find(elem =%3E %7B%0A return elem.children.length && elem.children%5B0%5D.data.includes('pageData');%0A %7D).children%5B0%5D.data);%0A%0A return %7B%0A slug: pageData.questionTitleSlug,%0A ... |
d10344f39364a4db39b221aeb1532b71cb7aefc4 | replace d3 sort / each | client/route-card-view/index.js | client/route-card-view/index.js | var analytics = require('analytics');
var d3 = require('d3');
var convert = require('convert');
var Feedback = require('feedback-modal');
var mouseenter = require('mouseenter');
var mouseleave = require('mouseleave');
var Calculator = require('route-cost-calculator');
var RouteDirections = require('route-directions-tab... | JavaScript | 0.000082 | @@ -1783,16 +1783,13 @@
nt%22)
-%5B0%5D.sort
+.each
(fun
@@ -1843,17 +1843,20 @@
.select(
-a
+this
).attr(%22
@@ -1898,17 +1898,20 @@
.select(
-a
+this
).node()
@@ -1934,17 +1934,20 @@
ndChild(
-a
+this
);%0A
|
273127f22166c690d97bfb1d0ee3396117857116 | Add missing semi-colons. | website/app/application/core/projects/dataedit/reviews/review-controller.js | website/app/application/core/projects/dataedit/reviews/review-controller.js | Application.Controllers.controller('projectsDataEditCreateReview',
["$scope", "mcapi", "User", "$stateParams", "alertService", "pubsub", "$state","dateGenerate", "$filter",
function ($scope, mcapi, User, $stateParams, alertService, pubsub, $state, dateGenerate, $filter) {
$scope.addReview = func... | JavaScript | 0.003646 | @@ -369,17 +369,18 @@
ges: %5B%5D%7D
+;
%0A
-
@@ -1158,24 +1158,25 @@
': data.id%7D)
+;
%0A
@@ -1411,16 +1411,17 @@
iew.id%7D)
+;
%0A
@@ -1418,32 +1418,33 @@
);%0A %7D
+;
%0A $sc
@@ -1772,32 +1772,33 @@
%7D%0A %7D
+;
%0A $sc
@@ -2240,16 ... |
3d1ba11cbb1b728dd4b7b71d32a2d723cfd22b83 | rename getComponent argument location to nextState | chapter-10/react_router_chunked/src/Routes.js | chapter-10/react_router_chunked/src/Routes.js | import React from 'react';
import {Router, Route, IndexRoute, browserHistory} from 'react-router';
import {Provider} from 'react-redux';
import {syncHistoryWithStore} from 'react-router-redux';
import App from './pages/App.js';
//import Home from './pages/Home.js';
//import About from './pages/About.js';
//import Not... | JavaScript | 0.000001 | @@ -539,32 +539,33 @@
HomePage = (
-location
+nextState
, callback)
@@ -702,32 +702,33 @@
boutPage = (
-location
+nextState
, callback)
@@ -878,16 +878,17 @@
= (
-location
+nextState
, ca
|
c76e2d59f47d3f4a7e96dc3ef6f4fd506d865463 | hyphenate shouldnt lowercase | tests/helpers.js | tests/helpers.js | import test from 'tape'
import * as helpers from '../app/utils/helpers'
test('capitalise', t => {
const exp = 'Hello World, How Are You?'
const act = helpers.capitalise('hello world, how are you?')
t.equal(exp, act, 'Capitalise should capitalise')
t.end()
})
test('hyphenate', t => {
const exp = 'the-name-o... | JavaScript | 0.99859 | @@ -303,17 +303,17 @@
exp = '
-t
+T
he-name-
@@ -318,17 +318,17 @@
e-of-my-
-c
+C
omponent
|
295f4eea3578daf7b921946aae1919224eb7ce36 | comment un-necessary stmts | tests/inf_cli.js | tests/inf_cli.js | /* informix cli using nodejs-db-informix */
var readline = require('readline'),
rl = readline.createInterface(process.stdin, process.stdout);
/*
* Connection configurations
*/
// var settings = JSON.parse(require('fs').readFileSync('./tests/db_conf.json','utf8'));
var settings = {
"host": ""
, "user"... | JavaScript | 0.000001 | @@ -1968,24 +1968,35 @@
*/%0A%0A
+ /*%0A
var
@@ -2886,24 +2886,35 @@
.execute();
+%0A */
%0A%0A /*
|
7be9bf2a5a181b859f02c72e2c72bbc4b819b4ec | remove unused helper namespace | browserDetection.js | browserDetection.js | var rb = rb || {};
(function(ns){
var sUndetectedName = "undetected";
function getBrowserName(sUserAgent){
var retVal = sUndetectedName,
aBrowserNames = [
{detectedName:'Firefox' , contain:'Firefox\/' , notContain:'Seamonkey\/'},
{detectedName:'Seamonkey' , contain:'Seamonke... | JavaScript | 0.000001 | @@ -4201,31 +4201,8 @@
gent
-,%0A%09%09%09helper%09%09%09%09: %7B%0A%09%09%09%7D
%0A%09%09%7D
|
ffac78c1eb3eb123b7ddb1574ac51fbd708293c6 | Improve validation around instance names. Fixes #35. | modules/filters.js | modules/filters.js | var utils = require('./utils');
exports.findMatchingInstances = function (name, args) {
args.instances = utils.findMatchingInstances(name);
if (args.instances.length === 0) {
utils.dieWithList('No instances found matching "' + name + '".');
return false;
}
};
exports.findFirstMatchingInstance = functio... | JavaScript | 0 | @@ -1186,63 +1186,438 @@
ers%5B
-args.cluster%5D && clusters%5Bargs.cluster%5D.instances%5Bname%5D
+name%5D) %7B%0A utils.die('%22' + name + '%22 is already in use as a cluster name.');%0A return false;%0A %7D else if (name === 'all') %7B%0A utils.die('%22all%22 is a special keyword that cannot be used for i... |
3c958f1b9c2328b7fda36c11ef76afd98202cabd | Remove login button when already authenticated | client/src/components/NavBar.js | client/src/components/NavBar.js | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link, withRouter } from 'react-router-dom';
import { format } from 'date-fns';
import {
Toolbar,
ToolbarGroup,
ToolbarTitle
} from 'material-ui/Toolbar';
import FlatButton from 'material-ui/FlatButton';
import { white... | JavaScript | 0 | @@ -2186,16 +2186,36 @@
ogin' &&
+ !isAuthenticated &&
%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.