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 |
|---|---|---|---|---|---|---|---|
d3610c7b4e69eb271f47ce980d2bd74f767e126b | Update filter-component.js | examples/filter-component.js | examples/filter-component.js | /*
<div id="dashboard">
<div id="filter-users">
<h3>Filter users (<span data-bind="selectedUser"><name></name></span>)</h3>
<input placeholder="Filter users by ... " />
<ul>
<li>Person Name: <span data-bind="name"></span>
</li>
</ul>
</div>
<div id="filter-projects"... | JavaScript | 0.000001 | @@ -1,11 +1,59 @@
/*%0A
+http://jsbin.com/favibehoye/edit?html,js,output%0A
%3Cdiv i
|
598b0a86bb8a15e6bd2ff380d42b7bfb276c1fdb | address series of code climate findings | lib/Stopwatch.js | lib/Stopwatch.js | var now = require("performance-now");
var _ = require('underscore');
const uuid = require('uuid/v4');
var format = require('string-template');
const STATES = {
INIT: 'init',
RUNNING: 'running',
STOPPED: 'stopped',
SPLIT: 'split'
};
function Stopwatch(name, autostart) {
var self = this;
if (_.... | JavaScript | 0.000001 | @@ -728,32 +728,33 @@
(self.state() !=
+=
STATES.STOPPED
@@ -763,32 +763,33 @@
self.state() !=
+=
STATES.INIT) %7B%0A
@@ -1170,32 +1170,33 @@
(self.state() !=
+=
STATES.RUNNING)
@@ -1464,32 +1464,33 @@
(self.state() !=
+=
STATES.SPLIT) %7B
@@ -1957,32 +1957,32 @@
r self = this;%0A%0A
-
if (self.sta
... |
09ca0a9ff87ecc91561b48face160c70663c2e29 | simplify splitTime | lib/Stopwatch.js | lib/Stopwatch.js | const now = require("performance-now");
const isBoolean = require('lodash.isboolean');
const isEmpty = require('lodash.isempty');
const uuid = require('uuid/v4');
const format = require('string-template');
const STATES = {
INIT: 'init',
RUNNING: 'running',
STOPPED: 'stopped',
SPLIT: 'split'
};
functi... | JavaScript | 0.999821 | @@ -2287,21 +2287,14 @@
-const delta =
+return
cal
@@ -2326,34 +2326,16 @@
opTime);
-%0A return delta;
%0A%0A fu
|
75777f95333d52e637cdbde6b73db3e9058c29e9 | add activation methods to mapToolbarWidget | src/map-toolbar-widget.js | src/map-toolbar-widget.js | /*global jQuery*/
jQuery.fn.mapToolbarWidget = function (mapModel) {
'use strict';
var clickMethodNames = ['insertIntermediate', 'scaleUp', 'scaleDown', 'addSubIdea', 'editNode', 'removeSubIdea', 'toggleCollapse', 'addSiblingIdea', 'undo', 'redo',
'copy', 'cut', 'paste', 'resetView', 'openAttachment', 'toggleAddLi... | JavaScript | 0 | @@ -320,16 +320,87 @@
inkMode'
+, 'activateChildren', 'activateNodeAndChildren', 'activateSiblingNodes'
%5D,%0A%09%09cha
@@ -801,41 +801,15 @@
on (
-isAddLinkMode) %7B%0A%09%09%09var button =
+) %7B%0A%09%09%09
elem
|
8644aa1c91092c27c202d92406f79d50faf620fe | Update database.js | BitBlocks/database.js | BitBlocks/database.js | var alldata = scload('serverdb.json');
var getNewAccount = require('./rtwireAPI.js').getNewAccount;
var getNewBtcAddress = require('./rtwireAPI.js').getNewBtcAddress;
var updateBalance = require('./rtwireAPI.js').updateBalance;
//setting database objects if unexistent:
var WelcomeMsg = function(player, btcAddress){
... | JavaScript | 0.000001 | @@ -521,16 +521,50 @@
);%0A%7D%0A%0A%0A%0A
+var playerJoin = function(event)%7B%0A
if(all
|
0bc66fc8e5b7c5452f3f3a5d57bbf0f976609ef0 | Fix bug where search would hang if less than 20 results were returned. | censusreporter/apps/census/static/js/full-text-autocomplete.js | censusreporter/apps/census/static/js/full-text-autocomplete.js | $(function() {
// Initialize autocomplete
$("#search").autocomplete({
// Grab source from ajax call
source: function (request, response) {
$.ajax({
// request.term is the current text in the search box.
url: "http://0.0.0.0:5000" + "/2.1/full-text/sear... | JavaScript | 0 | @@ -987,16 +987,289 @@
%7D);%0A%0A
+ // Limit number of suggestions to 20%0A if (data.results.length %3E 20) %7B%0A var results_limit = 20;%0A %7D else %7B%0A var results_limit = data.results.length;%0A ... |
305db9397db1caae47cab22778462803bb74c9d3 | Trim trailing whitespace in contentscript.js | extension/contentscript.js | extension/contentscript.js | console.log("contentscript.js invoked");
// declare CSS selectors
var classSelector = ".cssClassContainer";
var daySelector = ".cssTtbleColDay";
var subjectSelector = ".cssTtableSspNavContainer"
// build subject code -> subject name dictionary
var subjectMap = {};
console.log("Building subject code->name map");
$(".c... | JavaScript | 0.007283 | @@ -1034,17 +1034,16 @@
false;%0A
-%09
%0A%09// set
@@ -1883,17 +1883,16 @@
order.%0A
-%09
%0A%09var da
@@ -2774,18 +2774,16 @@
1000));%0A
-%09%09
%0A%09%09$(cla
@@ -4608,19 +4608,16 @@
e()+5);%0A
-%09%09%09
%0A%09%09%09cal.
@@ -4694,17 +4694,16 @@
%0A%09%09%7D%0A%09%7D%0A
-%09
%0A%09// dow
|
4ba3848fa2669a4e421da71c258a0d330a618a0a | Remove obsolete `oldTimeHighlight` property | ember/app/components/flight-barogram.js | ember/app/components/flight-barogram.js | import { action, computed } from '@ember/object';
import safeComputed from '../computed/safe-computed';
import BarogramComponent from './base-barogram';
export default BarogramComponent.extend({
flights: null,
time: null,
defaultTime: null,
selection: null,
activeFlights: computed('flights.[]', 'selection... | JavaScript | 0.000001 | @@ -2247,135 +2247,48 @@
on;%0A
- let timeHighlight = this.timeHighlight;%0A%0A if (selection !== this.oldSelection %7C%7C timeHighlight !== this.oldTimeHighlight
+%0A if (selection !== this.oldSelection
) %7B%0A
@@ -2358,57 +2358,8 @@
n);%0A
- this.set('oldTimeHighlight', timeHighlight);%0A
%7D,
|
a60ed7f6e55c01b6a28803c00e5b43c131ddffc7 | Remove pointer-events for area being drawn | js/id/behavior/draw_way.js | js/id/behavior/draw_way.js | iD.behavior.DrawWay = function(context, wayId, index, mode, baseGraph) {
var way = context.entity(wayId),
isArea = way.geometry() === 'area',
finished = false,
annotation = t((way.isDegenerate() ?
'operations.start.annotation.' :
'operations.continue.annotation.') + c... | JavaScript | 0 | @@ -1767,24 +1767,224 @@
t));%0A %7D%0A%0A
+ function lineActives(d) %7B%0A return d.id === segment.id %7C%7C d.id === start.id %7C%7C d.id === end.id;%0A %7D%0A%0A function areaActives(d) %7B%0A return d.id === wayId %7C%7C d.id === end.id;%0A %7D%0A%0A
var draw
@@ -2493,92 +2493,42 ... |
e642c5fb9dbe151bf83283e1ae72116248a2355f | Remove merge text | gobbler/views/dashboard/dashboard.js | gobbler/views/dashboard/dashboard.js | if (Meteor.isClient) {
Template.dashboard.helpers({
giblets: function() {
<<<<<<< HEAD
return Giblets.find().fetch();
=======
return Giblets.find({}, {sort : {createdAt: -1}}).fetch();
>>>>>>> Renders giblets in reverse chronological order
}
});
UI.registerHelper('compareIndexLength', functio... | JavaScript | 0.000258 | @@ -77,66 +77,8 @@
) %7B%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A return Giblets.find().fetch();%0A=======%0A
@@ -142,63 +142,8 @@
();%0A
-%3E%3E%3E%3E%3E%3E%3E Renders giblets in reverse chronological order%0A
|
664523ce10ecb2b0fbfc0490735c96cc2d0dab3a | set postcss-preset-env custom-properties preserve to false | webpack/postcss.config.js | webpack/postcss.config.js | const path = require('path');
module.exports = {
plugins: {
'postcss-import': {
root: path.join(__dirname, '../'),
path: [path.join(__dirname, '../components')]
},
'postcss-mixins': {},
'postcss-each': {},
'postcss-apply': {},
'postcss-nesting': {},
'postcss-preset-env': {
... | JavaScript | 0.001211 | @@ -326,16 +326,109 @@
age: 0,%0A
+ features: %7B%0A 'custom-properties': %7B%0A preserve: false%0A %7D%0A %7D%0A
%7D,%0A
|
1981b194cc579ae3e7561ee37c0b828e5934e4d1 | Fix recomputing of :target [ci skip] | website/gatsby-browser.js | website/gatsby-browser.js | import { navigate } from 'gatsby'
import './src/styles/layout.sass'
import Juniper from './src/components/juniper'
// Workaround to rewrite anchor links
const clientSideRewrites = {
'/usage/linguistic-features/#rule-based-matching': '/usage/rule-based-matching',
}
/* eslint-disable */
import HKGroteskSemiBoldWOF... | JavaScript | 0 | @@ -1847,50 +1847,8 @@
ate%0A
- window.location.hash = ''%0A
|
34dcd532285299d32d6d424b64efc520a39cac51 | Update koddostuMaterialCore.js | js/koddostuMaterialCore.js | js/koddostuMaterialCore.js | /**
* @license koddostuMaterialCore Copyright (c) 2015-2019, Gokhan Mete Erturk.
* Available via the MIT or new BSD license.
* see: http://www.koddostu.com for details
*/
var addMulitListener=function(b,a,d){var c=a.split(" ");Array.prototype.forEach.call(b,function(a,b){Array.prototype.forEach.call(c,function(b,c)... | JavaScript | 0 | @@ -1963,28 +1963,1036 @@
classList.add(%22animate%22)%7D);%0A
+%0Avar addMulitListener=function(b,a,d)%7Bvar c=a.split(%22 %22);Array.prototype.forEach.call(b,function(a,b)%7BArray.prototype.forEach.call(c,function(b,c)%7Ba.addEventListener(b,d,!1)%7D)%7D)%7D;%0AaddMulitListener(document.querySelectorAll(%22%5Bsoripp... |
31e71b1efc164307d42db371824a5714603d81e6 | Remove excess space | lib/apparatus.js | lib/apparatus.js | const chalk = require('chalk');
const composer = require('./updaters/composer');
const crawler = require('./crawler');
const fs = require('fs');
const greeter = require('./greeter');
const shelljs = require('shelljs');
const wp = require('./updaters/wp');
module.exports = () => {
require('dotenv').config();
const... | JavaScript | 0.000002 | @@ -472,20 +472,16 @@
tf-8'));
-
%0A %7D cat
|
30b7a57be1aa0708a992a281f2ff21e4d578e5b1 | use jsdoc name by default, unless it's used for attributes | lib/arguments.js | lib/arguments.js | 'use strict';
/* global require, module */
var doctrine = require('doctrine');
var doctrineSyntax = doctrine.Syntax;
var codeBlock = require('jade-code-block');
var TYPE_MAPPING = {};
TYPE_MAPPING[doctrineSyntax.RecordType] = 'Object';
var NAME_REGEX = /(\s|\[|^)(\w+((-+|\.)\w+)*)($|\s+?|\-|=|\]).*$/;
/**
* Get J... | JavaScript | 0 | @@ -1523,40 +1523,30 @@
var
-name = getJSDocName(
+original =
str
-)
;%0A var
orig
@@ -1537,38 +1537,28 @@
str;%0A var
-original = str
+name
;%0A if(escap
@@ -1561,24 +1561,54 @@
scapeName)%7B%0A
+ name = getJSDocName(str);%0A
str = st
@@ -1761,16 +1761,28 @@
name %7C%7C
+ tag.name %7C%7C
'',... |
3ddab4b125a337c67143dde06e834e3222929b4e | add core implementation | lib/artificer.js | lib/artificer.js | /**
* Module dependencies
*/
var utils = require('./utils'),
markup = require('./markup'),
Handlebars = require('handlebars');
/**
* Build source directory `src` and output to `dest`
*
* @param {String} src
* @param {String} dest
* @param {Object} options
*/
module.exports = function(src, dest, optio... | JavaScript | 0 | @@ -325,40 +325,26 @@
%7B%0A
-options = options %7C%7C %7B%7D;%0A //var
+var s, data,%0A
T =
@@ -417,22 +417,43 @@
'));%0A%0A
-return
+options = options %7C%7C %7B%7D;%0A%0A
recurse
@@ -456,21 +456,17 @@
urse(src
-);%0A%0A
+,
functio
@@ -470,149 +470,530 @@
tion
- recurse(p) %7B%0A var dir = ut... |
bc75cdefb62300ae539f8aadbd86a32aaf022eeb | Switch to grunt.log.error | lib/loader.js | lib/loader.js | var _ = require('lodash');
var path = require('path');
var yaml = require('yamljs');
var fs = require('fs');
var glob = require('glob');
/**
* Get file contents in a predictable way
* @param {string} file - Filename of the file to load
*/
exports.get = function(file) {
// If the file is a type natively recognized... | JavaScript | 0.000008 | @@ -495,27 +495,31 @@
%7B%0A
-console.log
+grunt.log.error
('The fo
@@ -563,18 +563,20 @@
to read
-',
+ ' +
file);%0A
@@ -585,40 +585,50 @@
-console.log();%0A console.log
+grunt.log.writeln();%0A grunt.log.error
(e);
|
5eb8daed2b024fe319fdfd2403e940a3bca2b963 | Remove extra console.log from manage_globalpages JS. | src/scripts/controllers/manage_globalpages.controller.js | src/scripts/controllers/manage_globalpages.controller.js | /**
* Javascript for the setup_pages controller
*/
$(document).ready(function(){
var status = new Status($('#status'), $('#content'));
$(document).ajaxError(function(e, xhr, settings, exception) {
status.addMessage('error','There was an error with your request, please try again.');
});
$(document).a... | JavaScript | 0 | @@ -76,18 +76,16 @@
tion()%7B%0A
-
%0A var s
@@ -293,18 +293,16 @@
;%0A %7D);%0A
-
%0A $(doc
@@ -2966,19 +2966,17 @@
= this;%0A
-
%0A
+
var bu
@@ -3053,17 +3053,16 @@
tion(e)%7B
-
%0A var
@@ -3274,21 +3274,17 @@
= true;%0A
-
%0A
+
var
@@ -3434,13 +3434,9 @@
));%0A
-
%0A
+
... |
d3108c4ee75cfea760b10c831bd6d8f074e3c119 | add request time to log format as ISOString | lib/logger.js | lib/logger.js | var fs=require("fs");
module.exports=function(opt){
opt=opt||{};
opt.path=opt.path||process.env.PWD+"/log/";
opt.logname=opt.logname||new Date().getTime()+".txt";
var lstream = fs.createWriteStream(opt.path+opt.logname,{flags:'a'});
return function(req,res,next){
console.log(req.url);
lstream.wri... | JavaScript | 0 | @@ -234,19 +234,16 @@
s:'a'%7D);
-%0A
%0A%0A retu
@@ -336,16 +336,53 @@
%7B%0A
+date:new Date().toISOString()%0A ,
url:req.
@@ -475,10 +475,11 @@
);%0A %7D;%0A
-
%7D
+;
%0A
|
0996da456bd207ffe486b24e0d3f1a7c846d915d | Move collision resolution into Splat. | entity.js | entity.js | var Splat = (function(splat, window, document) {
function Entity(x, y, width, height) {
this.x = x;
this.y = y;
this.width = width;
this.height = height;
this.vx = 0;
this.vy = 0;
this.lastX = x;
this.lastY = y;
}
Entity.prototype.move = function(elapsedMillis) {
this.lastX = this.x;
this.lastY ... | JavaScript | 0 | @@ -1649,16 +1649,547 @@
ht);%0A%09%7D;
+%0A%09Entity.prototype.resolveCollisionWith = function(other) %7B%0A%09%09var tolerance = 0.01;%0A%09%09if (this.didOverlapHoriz(other) && this.wasAbove(other)) %7B%0A%09%09%09this.y = other.y - this.height - tolerance;%0A%09%09%7D%0A%09%09if (this.didOverlapHoriz(other) && thi... |
d827086cf5ec0123bdc04db853422010d320977e | Set acknowledge cookie inmediatelly when modal hide | app/assets/js/app.js | app/assets/js/app.js | (function($){
$(document).ready(function($) {
$(".chosen-select").chosen({
allow_single_deselect: true
});
/* AEA - Disabled because now is a GET request
$(".switcher").click(function(){
// Disable the events for the parents of the "eye" (li)
$(th... | JavaScript | 0 | @@ -2681,11 +2681,9 @@
'hid
-den
+e
.bs.
|
d703a388b0c878874b3dfb37eda9d5001b377543 | fix headers sent more than once that crashes the staging | deliver/routes/elections/vote.js | deliver/routes/elections/vote.js | var request = require('request');
var qs = require('querystring');
var models = require('../../../models');
function updateUserHasVoted(user_id, callback) {
models.User.findOne({_id: user_id}, function(err, user) {
if (err) {
return callback(err);
}
user.has_voted = true;
... | JavaScript | 0 | @@ -1438,32 +1438,49 @@
ok%22);%0A %7D%0A
+ else%0A
updateUs
@@ -1540,16 +1540,20 @@
+
+
if(err)
@@ -1546,32 +1546,36 @@
if(err) %7B%0A
+
@@ -1598,34 +1598,42 @@
r);%0A
+
+
%7D%0A
+
res.
@@ -1636,32 +1636,36 @@
... |
4473dbdb51d0860c1e6b0cbfffa6cded48f12b98 | Fix volume list. | app/scripts/components/openstack/openstack-volume/openstack-volumes-list.js | app/scripts/components/openstack/openstack-volume/openstack-volumes-list.js | export default function openstackVolumesList() {
return {
restrict: 'E',
templateUrl: 'views/partials/filtered-list.html',
controller: OpenstackVolumesList,
controllerAs: 'ListController'
};
}
// @ngInject
function OpenstackVolumesList(
baseResourceListController,
$stateParams,
$scope,
$tim... | JavaScript | 0.000002 | @@ -576,16 +576,51 @@
Service;
+%0A this.rowFields.push('size');
%0A%0A
@@ -1013,43 +1013,8 @@
.';%0A
- this.rowFields.push('size');%0A
|
b0ea267a72058e44359e65f1d33043c552f758dd | Fix lint error | src/middlewares/socket.js | src/middlewares/socket.js | import { socket as soc } from '../browser/socket';
export const socket = () => (next) => (action) => {
const {
sync,
...nextAction,
} = action;
if (sync) {
soc.emit('action', nextAction);
}
return next(nextAction);
};
| JavaScript | 0.000035 | @@ -144,17 +144,16 @@
xtAction
-,
%0A %7D =
|
335974a90a1ecc6123abf7c3a7bfd64b2f447839 | update cli/spawn; wrap with bluebird | lib/cli/spawn.js | lib/cli/spawn.js | 'use strict'
const Fly = require('../fly')
const utils = require('../utils')
const loadPlugins = require('../plugins').load
/**
* Create a new Fly instance
* @param {String} dir The directory to find a `flyfile.js`
* @return {Fly} The new Fly instance
*/
module.exports = function * (dir) {... | JavaScript | 0 | @@ -9,16 +9,17 @@
ict'
+;
%0A%0Aconst
Fly
@@ -14,19 +14,23 @@
%0A%0Aconst
-Fly
+Promise
= requi
@@ -37,28 +37,30 @@
re('
-../fly
+bluebird
')
+;
%0Aconst
-utils
+find
= r
@@ -75,18 +75,24 @@
../utils
+/find
')
+;
%0Aconst l
@@ -130,16 +130,77 @@
s').load
+%0Aconst Fly = require('../fly');%0Aconst co ... |
7816958d82da0ecd3153f9da2374e376792cb221 | Fix siteConfig.js URL (#4705) | website/pages/en/users.js | website/pages/en/users.js | const React = require('react');
const CompLibrary = require('../../core/CompLibrary.js');
const Container = CompLibrary.Container;
const siteConfig = require(process.cwd() + '/siteConfig.js');
class Users extends React.Component {
render() {
const showcase = siteConfig.users.map(user => {
return (
... | JavaScript | 0.000001 | @@ -879,25 +879,21 @@
com/
-deltice/test-site
+facebook/jest
/edi
|
f27d658ae2f9255e9019afb85bb25bfff361553c | add compress warnings to webpack uglify | grunt/webpack/make-webpack-config.js | grunt/webpack/make-webpack-config.js | var path = require('path');
var _ = require('lodash');
var webpack = require('webpack');
var trPlugin = require('l10n-tr-plugin');
var injectFilenamePath = path.join(process.cwd(), 'grunt/webpack/inject-filename-loader');
var clientHelpersPath = path.join(process.cwd(), 'website-guts/client-helpers');
var CommonsChunkP... | JavaScript | 0.000001 | @@ -2580,18 +2580,16 @@
,%0A
-//
compress
@@ -2604,41 +2604,8 @@
-//conditionals: false,%0A //
warn
@@ -2615,26 +2615,23 @@
s: false
-,
%0A
-//
%7D,%0A
|
e5d4f857e9175997096abe29c6878bc7b2f45e22 | Fix name mistake | Resources/ui/view/instanceManagerView.js | Resources/ui/view/instanceManagerView.js | /**
* Copyright (c) 2014 by Center Open Middleware. All Rights Reserved.
* Titanium Appcelerator 3.3.0GA
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*
*/
"use strict";
var instanceManagerView = function (parentWindow, logo, system... | JavaScript | 0.999998 | @@ -528,25 +528,24 @@
Instance
-s
MainView
;%0A%09%0A%09var
@@ -536,16 +536,38 @@
MainView
+, confInstanceListView
;%0A%09%0A%09var
@@ -1409,33 +1409,32 @@
/%0A%09%09confInstance
-s
MainView = Ti.UI
@@ -1508,17 +1508,16 @@
Instance
-s
MainView
@@ -1518,16 +1518,57 @@
inView);
+%0A%09%09%0A%09%09/* Create Inst... |
f6971241892334b5b4b6e4a86b4716f466070fe0 | Test suite passed; !cmd in PRIVMSG now allowed | lib/commander.js | lib/commander.js | var events = require('events');
var util = require('util');
var Log = require('./protocols/log');
var Command = require('./structures/command');
/**
* @constructor
* @param {NRC} nrc Context to which the commander listens upon. Must be an
* event emitter that emits the 'privmsg' event.
* @param {Object} config Con... | JavaScript | 0 | @@ -1535,74 +1535,8 @@
) %7B%0A
- if (privmsg.isQuery) %7B%0A return privmsg.message;%0A %7D%0A%0A
@@ -1626,24 +1626,90 @@
(1);%0A %7D%0A%0A
+ if (privmsg.isQuery) %7B%0A return privmsg.message;%0A %7D%0A%0A
if (priv
|
d255b7cc6b3278b7991e33cbc8fd5fc0d82e35a9 | add find/replace text string | lib/component.js | lib/component.js | // generate a component folder containing a HTML template, JavaScript file
// and a Sass file. The Sass file is also appended to /client/sass/comps
/*global templateDir */
var fs = require('fs.extra');
var changeCase = require('change-case');
exports.run = function(compName, opts) {
var nameCase, compTemplates, des... | JavaScript | 0 | @@ -1006,24 +1006,191 @@
Error(err);%0A
+ replace(dest+'.html', function(data) %7B%0A var res = data.replace(/compName/g, nameCase.camel);%0A return res.replace(/comp-name/g, nameCase.hyphen);%0A %7D);%0A
console.
@@ -1301,32 +1301,159 @@
unction (err) %7B%0A
+ handleError(err);%0A replace(... |
c071ab3a4c80fc3bc57780eec6505ca829803c70 | enforce use of the "binding.gyp" file | lib/configure.js | lib/configure.js |
module.exports = exports = configure
/**
* Module dependencies.
*/
var fs = require('fs')
, path = require('path')
, glob = require('glob')
, semver = require('semver')
, createHook = require('./util/hook')
, asyncEmit = require('./util/asyncEmit')
, win = process.platform == 'win32'
exports.usage = '... | JavaScript | 0.00001 | @@ -2719,24 +2719,102 @@
true%0A %7D%0A%0A
+ // enforce use of the %22binding.gyp%22 file%0A argv.unshift('binding.gyp')%0A%0A
// execu
|
d3f03ec2579b2e33e6c8b429420accf600d11647 | fix bad require in gulp styles.js | gulpfile.js/tasks/pipeline/styles.js | gulpfile.js/tasks/pipeline/styles.js | 'use strict'
//----------------------------------------------------------
// modules
//----------------------------------------------------------
// npm
const gulp = require('gulp')
const g = require('gulp-load-plugins')()
const P = require('bluebird')
const koutoSwiss = require('kouto-swiss')
const jeet = require('je... | JavaScript | 0.000001 | @@ -441,16 +441,21 @@
conf/loc
+ation
')%0A%0A//--
|
e4fcd10adbb6b3b60d146fe847fe9c2627f8ceca | Task 6-3 Done #18 | scripts/api.js | scripts/api.js | (function () {
// Mock repository
let adverts = [
{
_id: 0,
_acl: {
creator: 0
},
title: "XBoss 1080",
publisher: "Pesho",
datePublished: "2017-06-04",
price: 100
}
];
let users = [
... | JavaScript | 0.999304 | @@ -176,16 +176,57 @@
1080%22,%0A
+%09%09%09description: %22Modded gaming console%22,%0A
@@ -312,16 +312,59 @@
ice: 100
+,%0A image: %22./static/fuze-f1.png%22
%0A
@@ -3807,13 +3807,879 @@
%7D);%0A
+%09%0A%09// Load single advert%0A $.mockjax(function (requestSettings) %7B%0A ... |
10c5ea2b05d0dfcd2e7ff405a8293aa48ee3a27d | Update wme.js | scripts/wme.js | scripts/wme.js |
// JSON example
var candidates = [ {
"name": "Ellie Phanta",
"party": "Republican",
"stances" : [-2,-2]
},
{
"name": "Jack Bass",
"party": "Democrat",
"stances" : [-2,-2]
},
{
"name": "Paul Stanton",
"party": "Libertarian",
"stances" : [2,2]
}
];
Questions = [
{
"Question" : "Should ... | JavaScript | 0 | @@ -2657,16 +2657,19 @@
ndidates
+%5Bi%5D
.stances
|
b45a8731e3d94783d3599c87e76bc0aa298bd535 | Disable repl for deployment. | config/main.js | config/main.js | /**
* Trailpack Configuration
* (app.config.main)
*
* @see http://trailsjs.io/doc/config/main
*/
'use strict'
const path = require('path')
module.exports = {
/**
* Order does *not* matter. Each module is loaded according to its own
* requirements.
*/
packs: [
require('trailpack-core'),
req... | JavaScript | 0 | @@ -301,32 +301,35 @@
pack-core'),%0A
+ //
require('trailp
|
37e981f45d8a8eb51fa07f2995070072c6e156ec | comment some setting; | config/view.js | config/view.js | "use strict";
/**
* Base config nunjucks and static resource
* @type {{resource: {path: string, option: {maxAge: number}}, viewExtension: string, pagination: {number_item: number}, theme: string, functionFolder: string, filterFolder: string, variableFile: string, nunjuckSettings: {autoescape: boolean, throwOnUndefin... | JavaScript | 0 | @@ -635,16 +635,18 @@
t%22,%0A
+//
function
@@ -683,16 +683,18 @@
n',%0A
+//
filterFo
@@ -723,24 +723,26 @@
ilter',%0A
+//
variableFile
|
29a658a4eb488823b2755cbd2a46a0fcb5d4e1af | Clean up, add TODO | app/components/AR.js | app/components/AR.js | import React, { Component, StyleSheet, Dimensions, View } from 'react-native';
import Camera from 'react-native-camera';
import WebViewBridge from 'react-native-webview-bridge';
import THREE_RENDER_MARKER from '../lib/threejs/marker.js';
import HANDLE_ORIENTATION from '../lib/orientation/orientationHandler.js';
import ... | JavaScript | 0 | @@ -2758,461 +2758,62 @@
;%0A
- // this.props.currLoc = %7Blongitude: ###, latitude: ###%7D%0A // this.props.locs = %5B%7B longitude: #, latitude:# %7D, %7B longitude: #, latitude: # %7D%5D%0A %7D%0A%0A%0A calculateLocs( currentLocation, arrayOfPins ) %7B%0A /*%0A currentLocation %7B%0A latitude: Nu... |
586f9abd8e1ed1fc0cd8344de18cca98b78f6ccd | update config.js | app/config.sample.js | app/config.sample.js | /**
* @description
* This module sets all configuration
*
* policyCompassConfig is exposed as a global variable in order to use it in
* the main app.js file. If there's a way to do the same with dependency
* injection, this should be fixed.
*/
// Set to true to use the frontend stand-alone without installing t... | JavaScript | 0.000002 | @@ -476,32 +476,53 @@
_MANAGER_URL': '
+http://localhost:8000
/api/v1/datasetm
@@ -527,38 +527,45 @@
tmanager',%0A '
-METRIC
+VISUALIZATION
S_MANAGER_URL':
@@ -565,30 +565,58 @@
_URL': '
-/api/v1/metric
+http://localhost:8000/api/v1/visualization
smanager
@@ -619,37 +619,29 @@
ager',%0A '
-VISUALIZATION
+... |
56da2a4f207fff654c4123d9ecdef7d8c21b65d8 | Use Util function and addWaitForWithFailureMessage @bug W-2598206@ @rev ronak.shah@ | aura-components/src/test/components/uitest/tooltip_Test/tooltip_TestTest.js | aura-components/src/test/components/uitest/tooltip_Test/tooltip_TestTest.js | /*
* Copyright (C) 2013 salesforce.com, 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 ... | JavaScript | 0 | @@ -2044,37 +2044,8 @@
');%0A
-%09%09%09console.log(tt._tooltip);%0A
%09%09%09$
@@ -2123,32 +2123,50 @@
.test.addWaitFor
+WithFailureMessage
(true, function(
@@ -2171,160 +2171,59 @@
n()%7B
-%0A%09%09%09%09
return
-tt._tooltip.className.match(/visible/) ? true : false;%0A%09%09%09%7D, function() %7B%0A%09%09%09%... |
437d7768e0a2d5fa7a498b35da1b62700c290043 | Add requestDelay to subscribe method | lib/consumers.js | lib/consumers.js | /**
* Copyright 2014 Confluent Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | JavaScript | 0.000001 | @@ -3215,16 +3215,30 @@
on(topic
+, requestDelay
) %7B%0A
@@ -3280,16 +3280,30 @@
s, topic
+, requestDelay
);%0A t
|
390f5ac349e682b33643e40e6f7913e26ad5d4ce | Add support for code blocks. | lib/converter.js | lib/converter.js | /**
* Copyright 2012 Tomaz Muraus
*
* 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 ag... | JavaScript | 0 | @@ -1082,16 +1082,29 @@
s, elem,
+ exampleElem,
tableEl
@@ -3820,17 +3820,342 @@
%7D%0A
-%0A
+ %7D%0A else if (item.type === 'code') %7B%0A exampleElem = subElement(currentParrent, 'example');%0A%0A if (item.label) %7B%0A elem = subElement(exampleElem, 'title');%0A elem.text = it... |
ed3c8d38ff954bdf9cfeb469404febc50ee3ffbc | reorganize javascript | addons/website_event_track/static/src/js/website_event_track.js | addons/website_event_track/static/src/js/website_event_track.js | odoo.define('website_event_track.website_event_track', function (require) {
"use strict";
$(document).ready(function() {
$("#event_track_search").bind('keyup', function(){
var change_text = $(this).val();
$('.event_track').removeClass('invisible');
$("#search_summary").removeClass('invisi... | JavaScript | 0.000003 | @@ -88,82 +88,523 @@
%22;%0A%0A
-$(document).ready(function() %7B%0A%0A $(%22#event_track_search%22).bind('keyup',
+var sAnimations = require('website.content.snippets.animation');%0A%0AsAnimations.registry.websiteEventTrack = sAnimations.Class.extend(%7B%0A selector: '.o_website_event',%0A read_events: %7B%0... |
264d9767a85626739c70ad82f5d9cd4756ba91d9 | Fix restore button | jupyterlmod/static/main.js | jupyterlmod/static/main.js | define(function(require) {
"use strict";
var $ = require('jquery');
var ui = require('jquery-ui');
var dialog = require('base/js/dialog');
var lmod_class = require('./lmod.js');
var utils = require('base/js/utils');
var base_url = utils.get_body_data("baseUrl");
var lmod = new lmod_cla... | JavaScript | 0.000001 | @@ -1290,36 +1290,59 @@
restore-buttons%22
+ data-toggle=%22dropdown%22
%3E',%0A
-
'
@@ -4206,24 +4206,47 @@
ore-menu%22);%0A
+ list.html(%22%22);%0A
data
@@ -4516,24 +4516,43 @@
estore(item)
+.then(refresh_view)
%7D);%0A
@@ -7689,24 +7689,16 @@
%7D);%0A
-
%0A ... |
675d79badf0fdd716d3ab017de467e9ea924b981 | Include solution always if includeSolution checkbox does not exist | app/assets/javascripts/mumuki_laboratory/application/console.js | app/assets/javascripts/mumuki_laboratory/application/console.js | (() => {
function historicalQueries() {
var queries = $('#historical_queries').val();
if (queries) {
return JSON.parse(queries);
} else {
return [];
}
}
function renderPrompt() {
var prompt = $('#prompt').attr('value');
if (prompt && prompt.indexOf('ム') >= 0) {
$('.jquery... | JavaScript | 0 | @@ -2449,45 +2449,29 @@
&&
-$(%22#
+this.
include
-_s
+S
olution
-%22).prop(%22checked%22
+(
))%0A
@@ -4244,24 +4244,223 @@
kie%7D;%0A %7D%0A
+ includeSolution() %7B%0A return !this._includeSolutionCheckbox %7C%7C this._includeSolutionCheckbox.checked;%0A %7D%0A get _includeSolutionCheckbox() %... |
67e6bad27360ba37c9064b40672c39949da99361 | fix bug with user id being an object | app/controllers/users/users.authentication.server.controller.js | app/controllers/users/users.authentication.server.controller.js | 'use strict';
/**
* Module dependencies.
*/
var _ = require('lodash'),
Boom = require('boom'),
Errorhandler = require('../errors.server.controller'),
Mongoose = require('mongoose'),
User = Mongoose.model('User');
/**
* Signup
*/
exports.signup = function (request, reply) {
// For sec... | JavaScript | 0.000001 | @@ -1676,32 +1676,43 @@
r._id = user._id
+.toString()
;%0A%09%09%09authedUser.
|
68a5a2ce778484bf94518ad3e1a2a895c76d25f4 | Change min image size to 200x200 | app/imports/ui/components/form-fields/open-cloudinary-widget.js | app/imports/ui/components/form-fields/open-cloudinary-widget.js | import { Meteor } from 'meteor/meteor';
import { $ } from 'meteor/jquery';
/* global cloudinary */
/**
* Opens the Cloudinary Upload widget and sets the value of the input field with name equal to nameAttribute to the
* resulting URL of the uploaded picture.
* @param nameAttribute The value of the associated input... | JavaScript | 0.000007 | @@ -823,17 +823,17 @@
width: '
-3
+2
00',%0A
@@ -858,9 +858,9 @@
t: '
-3
+2
00',
|
0b264ee2272f692638c196c65b5e2032eb167089 | Fix for virtual | src/javascript/binary/websocket_pages/user/account/payment_agent_transfer/payment_agent_transfer.init.js | src/javascript/binary/websocket_pages/user/account/payment_agent_transfer/payment_agent_transfer.init.js | const onlyNumericOnKeypress = require('../../../../common_functions/event_handler').onlyNumericOnKeypress;
const Client = require('../../../../base/client').Client;
const PaymentAgentTransferData = require('./payment_agent_transfer.data').PaymentAgentTransferData;
const PaymentAgentTransferUI = r... | JavaScript | 0 | @@ -5225,32 +5225,80 @@
s('invisible');%0A
+ $('#pa_transfer_loading').remove();%0A
retu
|
f503c09b875be02c93b41ea46475ba4903c62c2c | Add a title to the navigation playground | packages/react-server-test-pages/pages/navigation/playground.js | packages/react-server-test-pages/pages/navigation/playground.js | import _ from "lodash";
import React from "react";
import {
Link,
RootContainer,
} from "react-server";
import {
GET,
ROWS,
PagePointer,
RowIndex,
RowMS,
ClientRenderIndicator,
} from "./common";
require('./common.css');
require('./playground.css');
const BASE = "/navigation/playground";
const LINK = (page, ... | JavaScript | 0.000015 | @@ -3439,16 +3439,162 @@
t();%0A%09%7D%0A
+%09getTitle() %7B%0A%09%09const %7Bpage%7D = this.getRequest().getQuery();%0A%09%09return typeof page === %22undefined%22%0A%09%09%09?%22Navigation Playground%22%0A%09%09%09:%22Page %22+page%0A%09%7D%0A
%09getElem
|
f68c8cc03230331d695404bc6f5c7ac829d0983c | Fix file path. | lib/drunkdraw.js | lib/drunkdraw.js | "use strict";
var moment = require("moment");
var fs = require("fs");
function drunkdraw(logger, user, message) {
logger.info("DrunkDraw - user: " + user + ", message: " + message);
var args = message.split(" ").slice(1);
if(args.length > 0) {
logger.debug(args);
if(user != "MercWorks"){
return... | JavaScript | 0 | @@ -413,17 +413,12 @@
(%22./
-otherdave
+data
/dru
|
e391ff97cd1d5363ee608813cefc0acf616205fb | tweak query that shows which pages use a particular layout NOTE: still not correct | _dsa_mosaic_WEB_cms/forms/WEB_0F_theme_1L_layout.js | _dsa_mosaic_WEB_cms/forms/WEB_0F_theme_1L_layout.js | /**
* @properties={typeid:35,uuid:"04fde543-69cc-4de9-af47-7f7c22221f40"}
*/
var _license_dsa_mosaic_WEB_cms = 'Module: _dsa_mosaic_WEB_cms \
Copyright (C) 2011 Data Mosaic \
MIT Licensed';
/**
*
* @properties={typeid:24,uuid:"6CC042F4-C204-4D07-9FFC-2D5984DFAE56"}
*/
function REC_delete()
{
/*... | JavaScript | 0 | @@ -1132,24 +1132,151 @@
sy(true)%0A%09%09%0A
+%09%09//TODO: the final part of the query should be b.id_layout (layout lives in version table, but that only returns a few pages)%0A
%09%09var query
@@ -1427,17 +1427,17 @@
AND %5C%0A%09
-b
+a
.id_layo
|
627d5044a7c168dd2cd902d24125b8fc9ca488d9 | add `no-useless-computed-key` rule | lib/es6-rules.js | lib/es6-rules.js | 'use strict';
module.exports = {
/* ECMAScript 6 ======================================================================== */
/* http://eslint.org/docs/rules/#ecmascript-6
/* ===================================================================================== */
'constructor-super': 'error',
'no-th... | JavaScript | 0.000002 | @@ -531,16 +531,56 @@
e-this':
+ 'error',%0A 'no-useless-computed-key':
'error'
|
9bc7cfc00b0a0b96245af835995b39e8493f0a01 | Fix AR list module test | test_frontend/app/views/teacher/modules/assistance_request_list_module_spec.js | test_frontend/app/views/teacher/modules/assistance_request_list_module_spec.js | define((require) => {
describe('requester_module', () => {
beforeEach(() => {
require('app/views/teacher/modules/assistance_request_list_module');
});
define('>RetrieveAssistanceRequests', () => {
it('should be defined', () => {
expect(RetrieveAssist... | JavaScript | 0.000001 | @@ -188,19 +188,21 @@
de
-fin
+scrib
e('%3ERetr
@@ -672,16 +672,58 @@
%7D;
+%0A socket = mock_socket;
%0A%0A
@@ -949,17 +949,20 @@
-s
+getS
electedC
@@ -1198,16 +1198,54 @@
oEqual(%5B
+'Request_RetrieveAssistanceRequests',
%7Bcids: s
@@ -1376,36 +1376,51 @@
e... |
f12a214840cffca97360c767c5e871e8a8dd6b4f | Update app.js | module1-solution/app.js | module1-solution/app.js | (function(){
'use strict';
angular.module('LunchCheck',[])
.controller('LunchCheckController',LunchCheckController);
LunchCheckController.$inject = ['$scope'];
function LunchCheckController($scope){
$scope.checkLunch = function(){
let lunch = $scope.lunch;
if(lunch && lunch !== ""){
let lunchItems = ... | JavaScript | 0.000002 | @@ -920,32 +920,33 @@
enter data first
+!
%22)%7B%0A retu
@@ -1206,16 +1206,17 @@
ta first
+!
%22)%7B%0A
|
0f44245efa5f6442c3720c192e3e5534029a3733 | Add random testing logs. | modules/4ChanService.js | modules/4ChanService.js | var chanAPI = require('./4ChanAPI');
var config = require('../config');
var NodeCache = require("node-cache");
var chanService = {};
var boardsCache = new NodeCache({stdTTL: 120});
chanService.getRandomImage = function(board, callback) {
boardsCache.get(board, function(err, value) {
if (err || value === undefin... | JavaScript | 0 | @@ -3023,116 +3023,271 @@
%7D%0A%0A
+
var r
-andomThread = validThreads%5BMath.floor(Math.random() * validThreads.length)%5D;console.log(randomThread)
+nd1 = Math.random();console.log(rnd1);%0A rnd1 = rnd1 * validPosts.length;console.log(rnd1);%0A rnd1 = Math.floor(rnd1);console.log(rnd1); %0A var thre... |
9ba187422387f8671cb7c7b417e6789a071089df | add cross | pemFioi/shape-paths-1.1.js | pemFioi/shape-paths-1.1.js | function getShapePath(shape,x,y,params) {
// var shape = params.shape;
// var x = params.x;
// var y = params.y;
var radius = params.radius;
var roundedRectangleRadius = params.roundedRectangleRadius;
if(!radius) radius = 15;
if(!roundedRectangleRadius) roundedRectangleRadius = 6;
if(sha... | JavaScript | 0.000001 | @@ -3564,16 +3564,150 @@
ct+%22,Z%22%5D
+,%0A cross: %5B%22M%22, x - radius, y - radius, %22L%22, x + radius, y + radius, %22M%22, x - radius, y + radius, %22L%22, x + radius, y - radius %5D
%0A %7D;%0A
|
33ef91209021f00a6f3ba8dee8fdea08f740f6e3 | remove reload attempts - fairly pointless | htdocs/components/15_ModalContent.js | htdocs/components/15_ModalContent.js | // $Revision$
Ensembl.Panel.ModalContent = Ensembl.Panel.LocalContext.extend({
constructor: function () {
this.base.apply(this, arguments);
Ensembl.EventManager.register('modalFormSubmit', this, this.formSubmit);
},
init: function () {
var panel = this;
this.activeLink = false;
... | JavaScript | 0 | @@ -2492,18 +2492,8 @@
url
-, failures
) %7B%0A
@@ -3104,220 +3104,8 @@
-failures = failures %7C%7C 1;%0A %0A if (e.status !== 500 && failures %3C 3) %7B%0A var panel = this;%0A setTimeout(function () %7B panel.getContent(link, url, ++failures); %7D, 2000);%0A %7D else
... |
733107555018171110bed4861133e2411cc56a5c | Fix #6 | lib/parser.js | lib/parser.js | /**
* @file Parser
*
* @summary This is a wrapper around jsdoc parsing infrastructure that generates doc description
*
* @version ${ pkg.version }
* @author ${ pkg.author.name }
*
* @license ${ pkg.license }.
* @copyright ${ pkg.author.name }
* @name parser.js
* @unknownTag tag
*/
(function(){
'use stric... | JavaScript | 0.000001 | @@ -1098,16 +1098,111 @@
ns.tags;
+%0A global.app = %7B%0A jsdoc: %7B%0A name: require('jsdoc/lib/jsdoc/name')%0A %7D%0A %7D;
%0A%0A if
|
ecd381289ccfd590ab5beeb8a73afb460ca67ee4 | Remove testing output | lib/parser.js | lib/parser.js | 'use strict';
var CHAR = Object.freeze({
EMPTY: '',
NEWLINE: '\n',
QUOTE: '\'',
SEMICOLON: ';',
SPACE: ' ',
TAB: ' '
});
var GRAMMAR = Object.freeze({
COLOR: 'paint',
CREATE_START: 'create',
CREATE_END: 'leave',
NOTE: 'note',
PROGRAM: 'program',
USAGE: 'usage'
});
v... | JavaScript | 0.000012 | @@ -849,31 +849,8 @@
';%0A%0A
- console.log(keys)%0A%0A
|
4846c1242866c72548124171613f7498c8b51ed9 | improve font-style detecting | lib/fontoptim.js | lib/fontoptim.js | /**
* FontOptim main class.
*
* @author Artem Sapegin (http://sapegin.me)
*/
'use strict';
var path = require('path');
var _ = require('lodash');
function FontOptim(fonts, options) {
this.fonts = fonts;
_.extend(this, this.defaults, options);
}
FontOptim.prototype = {
defaults: {
fontFaceTemplate: [
'@f... | JavaScript | 0.000012 | @@ -2250,16 +2250,17 @@
%09return
+(
/italic/
@@ -2275,16 +2275,43 @@
ilename)
+ %7C%7C /it%5C./i.test(filename))
? 'ital
|
fc1e7579ec699e53d053916fdd5d597bcf082945 | 修正parseStyle() 解析不正常结尾时存在缺陷问题 | lib/parser.js | lib/parser.js | /**
* cssfilter
*
* @author 老雷<leizongmin@gmail.com>
*/
/**
* 解析style
*
* @param {String} css
* @param {Function} onAttr 处理属性的函数
* 参数格式: function (sourcePosition, position, name, value, source)
* @return {String}
*/
function parseStyle (css, onAttr) {
if (css[css.length - 1] !== ';') css += ';';
var ... | JavaScript | 0 | @@ -260,16 +260,41 @@
Attr) %7B%0A
+ css = css.trimRight();%0A
if (cs
|
f3be909ac402e4a770010a64b55f7f85fceca447 | Update parser.js | lib/parser.js | lib/parser.js | var through = require('through2')
var bl = require('bl')
function parser (data, opts) {
var toLine = opts.json ? toLineJSON : toLineString
var result = through.obj(opts.tty ? parseTty : parse)
result.payload = bl()
result.headers = bl()
result.currentLength = 0
result.payloadLength = 0
result.readingHe... | JavaScript | 0.000001 | @@ -1772,16 +1772,16 @@
me:
-new
Date
+.now
(),%0A
|
d32474ae6681c54d777d641dbf2d58fcb8897603 | clean up response creation | modules/fetch/cached.js | modules/fetch/cached.js | // @flow
/* globals Request, Response, Headers */
import {AsyncStorage} from 'react-native'
import CachePolicy from 'http-cache-semantics'
import fromPairs from 'lodash/fromPairs'
const ROOT = 'fp'
const debug = false
// Pulls out the important bits from a Request for storage
async function serializeResponse(r: Requ... | JavaScript | 0 | @@ -1584,19 +1584,16 @@
data), %7B
-%0A%09%09
status:
@@ -1599,39 +1599,8 @@
200
-,%0A%09%09headers: new Headers(%7B%7D),%0A%09
%7D)%0A%09
|
9aa8c88f06dc4abf0f39f9903a5674141fbdc2d2 | Replace `eachDecl` with `each` and `decl.type` check (fix #41) | lib/pixrem.js | lib/pixrem.js | 'use strict';
var postcss = require('postcss');
var browserslist = require('browserslist');
var _remgex, _PROPS, _VALUES, _rootvalue, _options;
var calc = require('reduce-css-calc');
// Add pixel fallbacks for rem units to a string of CSS
// - css `String`: the contents of a CSS file.
// - rootvalue `String | Nul... | JavaScript | 0 | @@ -2772,36 +2772,32 @@
;%0A%0A rule.each
-Decl
(function (decl,
@@ -2798,24 +2798,70 @@
(decl, i) %7B%0A
+%0A if (decl.type !== 'decl') %7B return; %7D%0A%0A
var va
|
472c6d887a79340a4a4c681d96240c00f56df1cc | Use the MustafaD's Price Guide | lib/prices.js | lib/prices.js | /* Singleton price table object */
var priceTable = {
/* ID:Lookup Table */
lookup_table: {
'Potion of Attack': 'Attack',
'Potion of Speed': 'Speed',
'Potion of Vitality': 'Vitality',
'Potion of Wisdom': 'Wisdom',
'Potion of Dexterity': 'Dexterity',
'Potion of Life': 'Life',
'Potion of M... | JavaScript | 0 | @@ -521,13 +521,13 @@
de/1
-00708
+39685
',%0A
@@ -1265,16 +1265,55 @@
path='//
+div%5B@class=%5C%22content clearfix%5C%22%5D/table/
tbody/tr
@@ -2175,25 +2175,34 @@
ows) %7B%0A
-
+try %7B%0A %09%09
var name = t
@@ -2234,22 +2234,19 @@
td%5B0%5D);%0A
-
+%09%09%09
var pric
@@ -2283,22 +2283,19 @@
... |
716c0339dedfccfcedc6d156777cb54838bd8247 | Rename and rescope some variables | modules/kartographer.js | modules/kartographer.js | ( function ( $, mw ) {
// Load this script after lib/mapbox-lib.js
var mapServer = mw.config.get( 'wgKartographerMapServer' ),
forceHttps = mapServer[ 4 ] === 's',
config = L.mapbox.config;
config.REQUIRE_ACCESS_TOKEN = false;
config.FORCE_HTTPS = forceHttps;
config.HTTP_URL = forceHttps ? false : mapServer... | JavaScript | 0 | @@ -875,17 +875,20 @@
le, urlF
-m
+orma
t, mapDa
@@ -893,28 +893,8 @@
Data
-, geoJson, dataLayer
;%0A%0A%09
@@ -991,17 +991,20 @@
;%0A%09%09urlF
-m
+orma
t = '/%7Bz
@@ -1164,16 +1164,40 @@
%0A%09%09%09var
+dataLayer, geoJson,%0A%09%09%09%09
$this =
@@ -1433,16 +1433,17 @@
zoom );%0A
+%0A
%09%09%09map.a
@@ -... |
57bc1d8e3241fb71910af4977bb4bfa6d6a20542 | fix #861 test.aria.templates.validation.errortext.ErrorTextTestCase failure in Chrome | test/aria/templates/validation/errortext/ErrorTextTestCase.js | test/aria/templates/validation/errortext/ErrorTextTestCase.js | /*
* Copyright 2012 Amadeus s.a.s.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | JavaScript | 0 | @@ -1554,24 +1554,249 @@
t.focus();%0A%0A
+ this.synEvent.click(input, %7B%0A fn : this.onUserClick,%0A scope : this%0A %7D);%0A %7D,%0A%0A onUserClick : function () %7B%0A var input = this.getInputField(%22ac1%22);%0A%0A
@@ -23... |
e3370057cc968c476338bfa4c0194c9c243463ef | Add more default paths | src/helpers.js | src/helpers.js | 'use strict'
import Path from 'path'
import { spawn, spawnSync } from 'child_process'
const LOCAL_BIN_PATH = '/usr/local/bin'
export const KNOWN_SHELLS = ['zsh', 'bash']
export const CACHE_KEY = '__STEELBRAIN_CONSISTENT_ENV_V1'
export const assign = Object.assign || function (target, source) {
for (const key in sou... | JavaScript | 0 | @@ -91,41 +91,103 @@
nst
-LOCAL_BIN
+DEFAULT
_PATH
+S
=
-'/usr/local/bin'
+%5B'/bin', '/sbin', '/usr/bin', '/usr/sbin', '/usr/local/bin', '/usr/local/sbin'%5D
%0Aexp
@@ -2099,24 +2099,65 @@
%7D%0A %7D%0A %7D%0A
+ for (const entry of DEFAULT_PATHS) %7B%0A
if (path.i
@@ -2163,30 +2163,21 @@
indexOf(
-L... |
272ef81bd8515c4971d06e26d7a94170021bd4d5 | Update connection-reducer.js | webofneeds/won-owner-webapp/src/main/webapp/app/reducers/connection-reducer.js | webofneeds/won-owner-webapp/src/main/webapp/app/reducers/connection-reducer.js | /**
* Created by syim on 20.01.2016.
*/
import { actionTypes } from '../actions/actions';
import { repeatVar } from '../utils';
import Immutable from 'immutable';
import { createReducer } from 'redux-immutablejs'
import { combineReducersStable } from '../redux-utils';
import { buildCreateMessage } from '../won-messag... | JavaScript | 0 | @@ -706,33 +706,39 @@
const
-e
+acceptE
vent = action.pa
@@ -754,33 +754,39 @@
const
-c
+acceptC
onnectionUri = e
@@ -776,33 +776,39 @@
ConnectionUri =
-e
+acceptE
vent.hasReceiver
@@ -833,33 +833,39 @@
rn state.setIn(%5B
-c
+acceptC
onnectionUri, 'h
@@ -969,17 +969,23 @@
const
-e
+de... |
5603e23c1fa4bc84a8aea3c94ff78e46aab2d393 | Handle crash the occurs if prop is only set in defaultProps. | src/helpers.js | src/helpers.js | import kebab from 'lodash/fp/kebabCase';
import capitalize from 'lodash/fp/capitalize';
export function getDefaultValue(prop) {
const value = prop.defaultValue;
const type = prop.type.name;
if (!value) {
switch (type) {
case 'bool':
return false; // Default for boolean is false
default:
... | JavaScript | 0 | @@ -1299,24 +1299,154 @@
ription%7D) %7B%0A
+ if (!prop.type) %7B%0A console.error(%60Found prop '$%7Bname%7D' without type. Has it been removed, but left in 'defaultProps'?%60);%0A %7D%0A
if (exclud
@@ -1510,16 +1510,29 @@
eType &&
+ prop.type &&
exclude
|
6e9ca69d246b3f5d882d73e7a21c5d0c89ae8c75 | Fix typo in demo. | demo/src/App.js | demo/src/App.js | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import Announcer from './dist/Announcer';
class App extends Component {
constructor(props) {
super(props);
this.state = {
announcement: ''
}
this.handleClick = this.handleClick.bind(this);
}
han... | JavaScript | 0.000001 | @@ -396,24 +396,25 @@
a new annou
+n
cement!'%0A
|
f280d35f8d088e54f4d7394cf9d003837b60dcf8 | Update string status | lib/record.js | lib/record.js | var _ = require('lodash'),
Span = require('./span'),
Time = require('./time');
function Record(date, spans) {
var current;
var self = this;
this.date = date;
this.spans = _.map(spans || [], function(span) {
return new Span(span.start, span.stop, span.time);
});
this.start =... | JavaScript | 0.000001 | @@ -1112,20 +1112,63 @@
-console.log(
+var breaks = self.spans.length - 1%0A var parts =
%5B%0A
@@ -1205,16 +1205,17 @@
working
+
',%0A
@@ -1236,16 +1236,22 @@
String()
+ + ' '
,%0A
@@ -1266,16 +1266,88 @@
oday.',%0A
+ '%5Cn',%0A getBreakStatus(breaks),%0A ... |
1a02214039827fa554a20184c76f49e0786b5e72 | stop cron | server/cron.js | server/cron.js | if (Meteor.isServer) {
SyncedCron.config({
// Log job run details to console
log: true,
// Use a custom logger function (defaults to Meteor's logging package)
logger: null,
// Name of collection to use for synchronisation and logging
collectionName: "cronHistory",... | JavaScript | 0.000002 | @@ -3335,16 +3335,19 @@
%0A
+ //
SyncedC
@@ -3358,16 +3358,52 @@
start();
+ // do not start tasks at the moment
%0A %7D%0A%0A
|
067caf849891048dd4bb120b9ebc077413dd0ee1 | Configure hierarchy separator | examples/marko-cli/.storybook/config.js | examples/marko-cli/.storybook/config.js | import { configure } from '@storybook/marko';
function loadStories() {
// put welcome screen at the top of the list so it's the first one displayed
// require('../src/stories/welcome');
// automatically import all story js files that end with *.stories.js
const req = require.context('../src/stories', true, /\... | JavaScript | 0.000001 | @@ -38,16 +38,121 @@
/marko';
+%0Aimport %7B setOptions %7D from '@storybook/addon-options';%0A%0AsetOptions(%7B%0A hierarchyRootSeparator: /%5C%7C/,%0A%7D);
%0A%0Afuncti
|
e1b583e99f15cac3c68c93dc700b32b5ac6a88b5 | Remove unused var | client/app/components/storeDetail/storeDetail.spec.js | client/app/components/storeDetail/storeDetail.spec.js | import StoreDetailModule from "./storeDetail";
import StoreDetailController from "./storeDetail.controller";
import StoreDetailComponent from "./storeDetail.component";
import StoreDetailTemplate from "./storeDetail.html";
const { module } = angular.mock;
describe("StoreDetail", () => {
let $httpBackend, $state, $... | JavaScript | 0.000001 | @@ -314,19 +314,8 @@
tate
-, $injector
;%0A%0A
@@ -496,17 +496,16 @@
inject((
-_
$injecto
@@ -509,45 +509,15 @@
ctor
-_
) =%3E %7B%0A
- $injector = _$injector_;%0A
|
aaa1f47413968ea76951ba9521ebb50a9461222c | add new logic | lib/generator.js | lib/generator.js | #!bin/env node
(function() {
'use strict';
var tempFolder = require('./step-temp-folder'),
copy = require('./step-copy'),
replace = require('./step-replace'),
shell = require('shelljs'),
tempFolderPath,
generatorFiles;
require('colors');
module.exports = genera... | JavaScript | 0 | @@ -370,17 +370,16 @@
eProject
-
(userVal
@@ -432,24 +432,115 @@
lit
-them in modules.
+it on modules..%0A //add path.join for start.. remove comments and create some methods/modules instead
.%0A%0A
@@ -666,17 +666,19 @@
paths%5B0%5D
-+
+ +
'/../../
@@ -951,16 +951,124 @@
.desc);%0A
+ replace('... |
5cff335e2f6d71ea5ec42300f7ee9f57f633ab9c | Add missing semicolon | lib/get-posts.js | lib/get-posts.js | var path = require('path');
var fs = require('fs');
var postMeta = require('./post-meta');
var postContent = require('./post-content');
var mdRegex = /^[0-9]{4}-[0-9]{2}-[0-9]{2}-([^.]+)\.(md|markdown)$/;
module.exports = function getPosts() {
var dir = path.join(this.options.root, 'source/_posts');
var file... | JavaScript | 0.999999 | @@ -751,24 +751,25 @@
%7D
+;
%0A %7D%0A
|
9ca810564bb5f0ba0611c0f900b00697c3d6890c | Update publisher.js | examples/pub-sub/publisher/publisher.js | examples/pub-sub/publisher/publisher.js | var clientId = '39e615c0-f668-11e5-95f5-bc764e102b63';
var clientAuthToken = 'cc61f02d228348de8f705287e6a6d0aa';
var topic = 'listener_topic';
var message = 'Test';
var options = {
enableSsl : false
};
var instaMsg = undefined;
var connect = function(){
instaMsg = instamsg.InstaMsg(clientId,clientAuthToken,connect... | JavaScript | 0.000001 | @@ -192,12 +192,11 @@
l :
-fals
+tru
e%0A%7D;
|
1b77aa7ecddf446637e1bfd14bd92d8d588dcb6d | Add ability to delete a task | app/gui/task_view.js | app/gui/task_view.js | define([
'underscore',
'backbone'
], function(_, Backbone) {
var TaskView = Backbone.View.extend({
tagName: 'li',
className: 'task',
events: {
"dragstart" : "on_dragstart",
"dragover" : "on_dragover",
"drop" : "on_drop"
},
initialize: function() {
this.id = 'id-'... | JavaScript | 0.000061 | @@ -171,16 +171,20 @@
agstart%22
+
: %22on_d
@@ -210,16 +210,20 @@
ragover%22
+
: %22on_
@@ -245,16 +245,20 @@
%22drop%22
+
:
@@ -266,16 +266,50 @@
on_drop%22
+,%0A %22click .delete%22 : %22delete%22
%0A %7D,%0A
@@ -503,28 +503,137 @@
me')
-);%0A return this
+ + this.delete... |
0026422e106262ba50c6ab5c260de10e05fcc5ad | fix code | lib/reveal.js | lib/reveal.js | 'use strict';
module.exports = exports = reveal;
exports.usage = 'Reveals data on the versioned binary';
const fs = require('fs');
const versioning = require('./util/versioning.js');
const napi = require('./util/napi.js');
function unix_paths(key, val) {
return val && val.replace ? val.replace(/\\/g, '/') : val;
... | JavaScript | 0.000071 | @@ -844,18 +844,19 @@
y.call(o
-bj
+pts
,remain)
|
73877ede5945ed1f65c3804b2dd4a38b9754078d | Fix things I hope | lib/router.js | lib/router.js | Router.configure({
layoutTemplate: 'layout',
loadingTemplate: 'loading'
});
Router.map(function(){
this.route('home', {
path: '/',
waitOn: function() {
return Meteor.subscribe('posts', {});
}
});
this.route('logIn', {
path: '/login',
template: 'accessDenied'
})
this.route('me'... | JavaScript | 0.000008 | @@ -984,24 +984,52 @@
unction() %7B%0A
+ if (this.ready()) %7B%0A
if (!!
@@ -1062,32 +1062,34 @@
_id)) %7B%0A
+
this.render();%0A
@@ -1093,16 +1093,18 @@
;%0A
+
%7D else %7B
@@ -1108,24 +1108,26 @@
e %7B%0A
+
+
this.redirec
@@ -1133,24 +1133,34 @@
ct('home');%0A
+ ... |
c87d67f830cc9f64ce33b05ef6af197be08d038a | Fix linter | lib/router.js | lib/router.js | 'use strict';
var express = require('express');
var bodyParser = require('body-parser');
var path = require('path');
var split = require('split');
var message = require('./message');
var Promise = require('bluebird');
var util = require('util');
function createApiRouter (queue) {
var apiRouter = new express.Router(... | JavaScript | 0.000002 | @@ -5595,17 +5595,17 @@
(%0A
-%22
+'
angular.
@@ -5611,16 +5611,17 @@
.module(
+%5C
'fantast
@@ -5622,16 +5622,17 @@
antastiq
+%5C
').const
@@ -5639,23 +5639,25 @@
ant(
+%5C
'config
+%5C
', %25s);
-%22
+'
,%0A
|
926b980f377b211722c64faececb7c0ee69a7969 | split api response validation from header handling | lib/router.js | lib/router.js | /*jshint node:true */
var express = require('express');
var requestp = require('./requestp');
var u = require('underscore');
var JSON3 = require('json3');
var snippets = require('./snippets');
var router = express.Router();
var passThroughHeaders = function(incomingHeaders) {
// remove those that node should gener... | JavaScript | 0 | @@ -1839,19 +1839,100 @@
cessful%0A
-%0A
+ return response;%0A %7D%0A %7D%0A ).then(%0A function(response) %7B%0A
@@ -1988,18 +1988,16 @@
aders);%0A
-
@@ -2027,26 +2027,24 @@
);%0A%0A
-
return %7B%0A
@@ -2040,18 +2040,16 @@
eturn %7B%0A
-
... |
c0379e3c729894f4d011ebf4e03627fb2342f6b5 | Refactor out some of the clusterf*** of nested promises | lib/runner.js | lib/runner.js | const wd = require('wd');
const times = require('./times');
const Promise = require('bluebird');
const page = require('./page');
const request = require('request');
const httpUtils = require('wd/lib/http-utils');
wd.Webdriver.prototype._stream = function (opts) {
var _this = this;
// http options init
var http... | JavaScript | 0.000023 | @@ -1157,16 +1157,213 @@
%7D);%0A%7D;%0A%0A
+function zip (results) %7B%0A return results.reduce((lists, run) =%3E %7B%0A run.forEach((logs, i) =%3E %7B%0A lists%5Bi%5D = lists%5Bi%5D %7C%7C %5B%5D;%0A lists%5Bi%5D.push(logs);%0A %7D);%0A return lists;%0A %7D, %5B%5D);%0A%7D%0A%0A
function
@@ -14... |
273044f03ca5763e32c8d5cd18aa9de8f8c3ef59 | Add missing timestamp | lib/runner.js | lib/runner.js | 'use strict';
module.exports = function (grunt, WebDriver, Promise, AxeBuilder, reporter) {
var options = this.options({
browser: 'firefox',
server: null,
threshold: 0
});
var done = this.async();
var driver = new WebDriver.Builder()
.forBrowser(options.browser)
.build();
var dest = this.data.dest;
va... | JavaScript | 0.999999 | @@ -582,16 +582,142 @@
= url;%0A
+%09%09%09%09%09%09%09// The %22new Date()%22 timestamp is axe-core is, here, a empty object...%0A%09%09%09%09%09%09%09results.timestamp = new Date().getTime();%0A
%09%09%09%09%09%09%09r
|
8f9db812e9f0f408a246659dc0bffc4ae6602229 | Fix exactMatch type in example | examples/search-deals-by-lost-reason.js | examples/search-deals-by-lost-reason.js | /**
* This example shows how to search for deals by the lost reason.
*
* It will display a list of found matches with the title, lost reason and worth.
*
* Usage:
* node search-deals-by-lost-reason.js YOUR_API_TOKEN SEARCH_TERM
*/
if (!process.argv[2]) {
process.stderr.write('Please provide the API token! (e.g... | JavaScript | 0.000018 | @@ -818,13 +818,9 @@
ch:
-false
+0
,%0A%09%09
|
79abaec40187f55c9322ac2fd83b53f5c68779d3 | Provide a Uint8Array to prga | lib/node_modules/@stdlib/crypto/arc4/test/test.prga.js | lib/node_modules/@stdlib/crypto/arc4/test/test.prga.js | 'use strict';
// MODULES //
var tape = require( 'tape' );
var copy = require( '@stdlib/utils/copy' );
var prga = require( './../lib/prga.js' );
// FIXTURES //
var S = require( './fixtures/ksa.json' );
var byte_array = require( './fixtures/prga.json' );
// TESTS //
tape( 'main export is a function', function tes... | JavaScript | 0.999923 | @@ -786,32 +786,48 @@
once:%0A%09f = prga(
+ new Uint8Array(
copy( S ) );%0A%09f
@@ -816,24 +816,26 @@
y( copy( S )
+ )
);%0A%09f();%0A%0A%09
@@ -1271,17 +1271,35 @@
= prga(
-S
+new Uint8Array( S )
);%0A%0A%09ex
@@ -1628,24 +1628,40 @@
;%0A%09f = prga(
+ new Uint8Array(
copy( S ) )
@@ -1654,24 +1654,26 @@
... |
18a7f0b9553be7f0736f1b7d8a5181bd2f258519 | Update server.js | lib/server.js | lib/server.js | var util = require('util');
var events = require('events');
var bson = require('bson');
var express = require('express');
var expressWs = require('express-ws');
var persistify = require('persistify');
var MsgBuilder = require('./msg-builder');
var MsgHandler = require('./msg-handler');
var BSON = bson.BSONPure.BSON;
... | JavaScript | 0.000001 | @@ -1,12 +1,27 @@
+'use strict';%0A%0A
var util = r
@@ -294,16 +294,58 @@
ndler');
+%0Avar Connection = require('./connection');
%0A%0Avar BS
@@ -4251,601 +4251,8 @@
%0A%7D%0A%0A
-function Connection(ws) %7B%0A%09events.EventEmitter.call(this);%0A%0A%09var that = this;%0A%09this.ws = ws;%0A%0A%09ws.on('message', fu... |
e493a9e4ad3cc2bfe44cd481fc17ab942a601713 | fix bundle loading delay | lib/server.js | lib/server.js | var express = require('express')
, domain = require('domain')
, browserify = require('browserify')
, Template = require('./template')
, implode = require('implode')
, fs = require('fs')
, path = require('path')
, utils = require('./utils')
, swac = require('./')
, routing = require('./routing')
var... | JavaScript | 0 | @@ -3658,32 +3658,28 @@
else
-process.nextTick
+setImmediate
(wait)%0A
@@ -5386,24 +5386,20 @@
lse
-process.nextTick
+setImmediate
(wai
|
f52b6c8ff7ab742e263c8853d59cf8813658e118 | add preview selection to objects test | examples/test-studio/schemas/objects.js | examples/test-studio/schemas/objects.js | import {GoPuzzle as icon} from 'react-icons/go'
export const myObject = {
type: 'object',
name: 'myObject',
title: 'My object',
icon,
fields: [
{
name: 'first',
type: 'string',
title: 'First',
},
{
name: 'second',
type: 'string',
title: 'Second',
},
],
}
... | JavaScript | 0 | @@ -2503,24 +2503,119 @@
preview: %7B%0A
+ select: %7B%0A where: 'where',%0A what: 'what',%0A %7D,%0A
|
129e957e053ace92e8bbda973cfced0aae8654cc | Add listRoutesForSubapp to server | lib/server.js | lib/server.js | /*jshint esversion:6, node:true*/
'use strict';
const express = require('express');
const EventEmitter = require('events');
const path = require('path');
/**
* Module dependencies.
*/
const http = require('http');
const Setup = require('./setup');
/**
* Listen on provided port, on all network interfaces.
*/
class... | JavaScript | 0 | @@ -148,16 +148,73 @@
path');%0A
+const listEndpoints = require('express-list-endpoints');%0A
/**%0A * M
@@ -857,16 +857,47 @@
= app;%0A%0A
+ // setup.addRoutes();%0A%0A
@@ -946,35 +946,32 @@
iews();%0A%0A
- //
this.once('serv
@@ -2735,32 +2735,331 @@
%7D);%0A %7D%0A%0A
+ /**%0... |
a0ee3746515616358f122aaf55f0b4e30e4cf12a | fix bug where hints disappear after first key press | src/extensions/default/JavaScriptCodeHints/tern-worker.js | src/extensions/default/JavaScriptCodeHints/tern-worker.js | /*
* Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the ri... | JavaScript | 0 | @@ -3789,24 +3789,26 @@
t);%0A
+//
_log(%22reques
@@ -3986,24 +3986,26 @@
+//
_log(%22comple
@@ -4009,23 +4009,16 @@
pletions
-.length
= %22 + d
|
43cb1180ac9d9a7ffa6af40cc9c6be0b724dbcf0 | upgrade code | default/role.spawnCreeps.js | default/role.spawnCreeps.js | // Consts
var spawn = Game.spawns["Spawn1"];
var smallBody = [WORK, CARRY, MOVE];
var CONST_HARVESTER = "harvester";
var CONST_BUILDER = "builder";
var CONST_UPGRADER = "upgrader";
var CONST_MAX_HARVESTER = 3;
var CONST_MAX_BUILDER = 2;
var CONST_MAX_UPGRADER = 3;
var spawnCreeps = {
/** @param {role} creep **/
... | JavaScript | 0 | @@ -174,30 +174,24 @@
rader%22;%0Avar
-CONST_
MAX_HARVESTE
@@ -198,21 +198,15 @@
R =
-3
+5
;%0Avar
-CONST_
MAX_
@@ -219,21 +219,15 @@
R =
-2
+3
;%0Avar
-CONST_
MAX_
@@ -237,17 +237,17 @@
RADER =
-3
+5
;%0A%0Avar s
@@ -413,16 +413,109 @@
er = %5B%5D;
+%0A var num_harvesters = 0;%0A var num... |
b1d5fe4c99d974b3d0c011983d8f5bfb6756344c | allow users to save recipes to database | client/components/CreateRecipe.js | client/components/CreateRecipe.js | import React, { Component } from 'react';
import { connect } from 'react-redux';
import actions from '../actions/index.js';
export class CreateRecipe extends Component {
constructor(props) {
super(props);
}
// actions.editRecipe can accept an object whose prop name we modify in state
// or just the name of... | JavaScript | 0 | @@ -116,16 +116,90 @@
dex.js';
+%0Aimport %7B createRecipe %7D from '../utils/utils.js';%0Aimport $ from 'jquery';
%0A%0Aexport
@@ -4909,23 +4909,86 @@
-%3Cbutton
+%0A %3Cbutton onClick=%7B() =%3E createRecipe(recipe, console.log)%7D
%3E Submit
@@ -4989,39 +4989,32 @@
Submit %3C/button%3E
- %3C... |
df9b7f7c1aad11c7ad90cf62d4804d65b4318ebc | update minimum size and if size is less than XXX don't show inner circle | client/js/Loader/LoaderCircles.js | client/js/Loader/LoaderCircles.js | "use strict";
define(['css!/css/Loader/LoaderCircles'], function () {
var LoaderCircles,
CIRCLE_O_SHADOW_SIZE = 36,
CIRCLE_BORDER_SIZE = 5,
MIN_SIZE = 30,
MAX_SIZE = 200,
CIRCLE_I_SIZE_DIFF = 20;
LoaderCircles = function (params) {
this._el = params.containerE... | JavaScript | 0 | @@ -173,16 +173,52 @@
N_SIZE =
+ 14,%0A MIN_SIZE_INNER_CIRCLE =
30,%0A
@@ -2618,24 +2618,150 @@
ircleInner);
+%0A if (this._size && this._size %3C MIN_SIZE_INNER_CIRCLE) %7B%0A this._circleInner.remove();%0A %7D
%0A%0A
|
edede8b53d19f628c566edf52d426b81d69af306 | Work around react router bug | client/src/Requests/PanelIssue.js | client/src/Requests/PanelIssue.js | import React from 'react'
import { Panel } from 'react-bootstrap'
import MarkdownBlock from '../shared/MarkdownBlock'
import { getCreator, getContent } from '../shared/requestUtils'
const Issue = props => {
return (
<Panel
header={`${props.issue.title} by ${getCreator(props.issue).name || getCreator(props.... | JavaScript | 0 | @@ -201,16 +201,53 @@
ps =%3E %7B%0A
+ if (!props.issue)%0A return null%0A%0A
return
|
9745e53aeaa4216ee8b8cf52f9b49eaf8edc7318 | Fix spacing of bars in bar chart | client/src/components/BarChart.js | client/src/components/BarChart.js | import React, { Component, PropTypes } from 'react'
var d3 = require('d3')
/*
* Given an object and a property of the type prop1.prop2.prop3,
* return obj[prop1][prop2][prop3]
*/
function getPropValue(obj, prop) {
var getterDetails = [obj]
var objProps = prop.split('.')
for (var i = 0; i < objProps.lengt... | JavaScript | 0 | @@ -1696,16 +1696,21 @@
.range
+Round
(%5B0, wid
@@ -1714,16 +1714,36 @@
width%5D)%0A
+ .padding(0.1)%0A
let
|
eec00a970debc3ad32035c36a04e5d8f90e90d7a | Delete client token on error Closes #764 | lib/jwt/index.js | lib/jwt/index.js | var log = require('debug')('democracyos:jwt');
var config = require('lib/config');
var jwt = require('jwt-simple');
var moment = require('moment');
var utils = require('lib/utils');
var expose = utils.expose;
exports.encodeToken = function encodeToken(user, secret) {
var expires = moment().add(7, 'days').valueOf();
... | JavaScript | 0 | @@ -2029,24 +2029,78 @@
rr, user) %7B%0A
+ if (err %7C%7C !user) res.clearCookie('token');%0A
if
@@ -2391,17 +2391,16 @@
age %7D);%0A
-%0A
|
6365bb8f75432081cfd341a69ee605df3c39960f | Correct title line | lib/memcached.js | lib/memcached.js | // memcacheddatabank.js
//
// implementation of Databank interface using memcached
//
// Copyright 2011,2012 StatusNet 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:... | JavaScript | 0.999538 | @@ -5,24 +5,16 @@
emcached
-databank
.js%0A//%0A/
|
a2a178d5ea1259a96debd9da7c545623f690180e | Handle more falsey cases. | lib/source.js | lib/source.js | var _ = require('underscore');
var carto = require('carto');
var fs = require('fs');
var path = require('path');
var url = require('url');
var mkdirp = require('mkdirp');
var sm = new (require('sphericalmercator'));
var yaml = require('js-yaml');
var tm = require('./tm');
var Bridge = require('tilelive-bridge');
var Ti... | JavaScript | 0.000002 | @@ -4376,24 +4376,55 @@
break;%0A
+ case null:%0A case false:%0A
case und
@@ -5003,32 +5003,63 @@
uri.protocol) %7B%0A
+ case null:%0A case false:%0A
case undefin
|
9fde13f2c6090ff682b95484027826d355e030e0 | Add beforeRouteUpdate merge strategy (#1521) | src/install.js | src/install.js | import View from './components/view'
import Link from './components/link'
export let _Vue
export function install (Vue) {
if (install.installed) return
install.installed = true
_Vue = Vue
const isDef = v => v !== undefined
const registerInstance = (vm, callVal) => {
let i = vm.$options._parentVnode
... | JavaScript | 0 | @@ -1331,16 +1331,43 @@
eLeave =
+ strats.beforeRouteUpdate =
strats.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.