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
2b1eecbfaf50cc92a10410bf8605dfbd867d33d3
Change color of NME block #105
stories/babylonjs/Basic/snippetMaterial.stories.js
stories/babylonjs/Basic/snippetMaterial.stories.js
import React, { useState, useCallback, useEffect } from 'react' import { Vector3, NodeMaterial } from '@babylonjs/core'; import '@babylonjs/core/Rendering/edgesRenderer' // You this need for side-effects import { Engine, Scene, useScene } from '../../../dist/react-babylonjs' import '../../style.css'; export default { ...
JavaScript
0.000002
@@ -87,16 +87,24 @@ Material +, Color3 %7D from @@ -393,16 +393,30 @@ Id, name +, surfaceColor %7D) =%3E %7B%0A @@ -737,237 +737,876 @@ -parseMaterial();%0A %7D, %5BparseMaterial%5D);%0A%0A return material === null ? null : (%0A %3CnodeMaterial name=%7Bname%7D fromInstance=%7Bmaterial%7D /%3E%0A );%0A...
694817589bafa6847b462ae0604faa26467101e5
Remove functional tests again.
public/test/test.js
public/test/test.js
import 'bitcentive/models/test'; import 'bitcentive/test/functional'; import 'bitcentive/components/os-projects/os-projects_test'; import 'bitcentive/components/contribution-month/contribution-month_test'; import 'bitcentive/components/contributors/contributors_test'; import 'bitcentive/components/contributions/contri...
JavaScript
0
@@ -18,32 +18,35 @@ e/models/test';%0A +// import 'bitcenti
c2fb5f5d8eb499789fd101322f34f577ec627c05
Update app.js
js/app.js
js/app.js
'use strict'; angular.module('myApp', []) .controller('ConversionController', ['$scope','$http', function($scope, $http){ $scope.rates= {}; $http.get("https://api.fixer.io/latest?base=ZAR") .then(function(response){ $scope.rates = response.data.rates; $scope.toType= $scope.ra...
JavaScript
0.000002
@@ -160,11 +160,13 @@ ttp. -get +jsonp (%22ht
be5fc30de302a503283c8217c4456a124b63a57e
fix lint errors
src/component-tester.js
src/component-tester.js
import {View} from 'aurelia-templating'; import {Aurelia} from 'aurelia-framework'; export const StageComponent = { withResources(resources): ComponentTester { return new ComponentTester().withResources(resources); } }; export class ComponentTester { bind: (bindingContext: any) => void; attached: () => vo...
JavaScript
0.000003
@@ -1321,24 +1321,16 @@ %7D%0A - %0A @@ -2038,18 +2038,16 @@ %7B%0A - throw ne @@ -2055,18 +2055,16 @@ Error(%0A - @@ -2135,18 +2135,16 @@ eate()'%0A - ); @@ -2146,24 +2146,25 @@ );%0A %7D%0A +%0A this._ro @@ -2178,24 +2178,24 @@ detached();%0A - ...
8f871668d1e3b3d716699c845db1a1252490278c
remove semantic override attempt
js/app.js
js/app.js
// Override Semantic-UI emSize global @emSize : 18px !important; // When DOM elements are ready, excluding images $(document).ready(function () { // Check if URL references specific category if (window.location.hash && window.location.hash.indexOf('#') > -1) { openCategory(window.location.hash.substring(1));...
JavaScript
0.000023
@@ -1,72 +1,4 @@ -// Override Semantic-UI emSize global%0A@emSize : 18px !important;%0A%0A // W
c32e30dee85363ef4bb484e8dfb588f1566ad1c0
Use strict comparison when looking for "yes" RSVPs
public_html/main.js
public_html/main.js
/* * Meetup prize-drawing-winner picker JavaScript file. * */ /** * @callback parseAttendeesCallback * @param {Object[]} attendees */ /** * Query the Meetup API and get a list of attendees, * given an API key. * * @param {int} eventid The Meetup Event ID to be used for gathering a list. * @param {parseAtten...
JavaScript
0.000044
@@ -1622,16 +1622,17 @@ ponse == += %22yes%22)
5e1d7c58a8b12e9ef03a8c638bef3bf07acacddc
Add close functionality for alert box
app/assets/javascripts/main.js
app/assets/javascripts/main.js
/* Application functionality */ var main = (function () { "use strict"; var main = {}; // initalize the application main.init = function() { busyManager.init(); busyManager.hide(); // temp - immediately hide infoScreenManager.init(); // initialize help/info screen (in utility bar) } //===================...
JavaScript
0
@@ -287,16 +287,39 @@ ty bar)%0A +%09%09alertManager.init();%0A %09%7D%0A%0A%09//= @@ -3461,16 +3461,646 @@ %09%7D)();%0A%0A +%0A%09//=================================================================================%0A%09// manages closing of alert box%0A%09var alertManager = (function()%7B%0A%09%09var alertManager ...
ed955d3e137393734e058214a9d33f6d83d05450
Add comment in app.js
js/app.js
js/app.js
// This module initializes the clock app and controls the UI, i.e. the buttons // and their event handlers. As currently written, this module requires jQuery. // Note: Because index.html loads jQuery from the Google CDN, the app will "break" // if it's run offline. const app = function($) { function init() { $(...
JavaScript
0
@@ -5692,14 +5692,15 @@ // -silent +invisib ly t @@ -5778,14 +5778,27 @@ (%22%3C%22 +, %22%3C%3C%22, %22%3E%22, or %22%3E +%3E %22) i
541bc868cac01c9ab2028938883c43b0a0db7ad6
use regex to check HEX input
js/app.js
js/app.js
'use strict' /* Feature 1: Build a color matrix based on 4 colors and 2 steps */ window.onload = function(){ init(); document.control.rows.addEventListener('change', updateStep, false); } // A: Color Interpolation Between 2 Color Inputs and 1 Step Input // 1: // As I type HEX color value in the input box...
JavaScript
0.000001
@@ -983,69 +983,91 @@ var -checkInput = this.value.length == 3 %7C%7C this.value.length == 6 +regex = /%5E%5Ba-f%5Cd%5D%7B6%7D%5Cb%7C%5E%5Ba-f%5Cd%5D%7B3%7D%5Cb/i,%0A checkInput = regex.exec(this.value) ? t @@ -1079,16 +1079,17 @@ false;%0A +%0A if (
fe1d87217704162b963276fc075fd8a4901356d7
remove localhost for production
server.js
server.js
var fs = require('fs'); var express = require('express'); var app = express(); var RSS = require('rss'); // Public directory for all static assets app.use(express.static('public')); // Set views and jsx for view engine app.set('views', __dirname + '/views'); app.set('view engine', 'jsx'); app.engine('jsx', require('e...
JavaScript
0.000001
@@ -1395,21 +1395,8 @@ 080, - 'localhost', fun
99fca661e3dcbfa2da69abe31eb05acd93d45d96
Update img.js
js/img.js
js/img.js
(function() { "use strict"; var states = { MAIN: 0, VIEW: 1 }; var sequenceTypes = { ALPHABETICAL: 0, NUMERIC: 1 }; var casings = { LOWERCASE: 0, UPPERCASE: 1, MIXED: 2 }; var state = null; var baseUrl = null; var sequences = []; function byId(input) { ret...
JavaScript
0.000001
@@ -2935,16 +2935,57 @@ Check);%0A + document.body.classList.add(%22view%22);%0A doSe
74c2863dc4c30df32a316b24d58480c0d93910d1
Change default map zoom
js/map.js
js/map.js
var Map = {}; Map.map = null; Map.markers = []; $(document).on('pageshow', '#map', function() { Map.initMap(); }); Map.initMap = function() { $('#map-canvas').css('height', 500); Map.map = Map.createMap('map-canvas', 34.87728, 135.576798); // kutc utils.getCurrentLocation().done(function(location) { ...
JavaScript
0
@@ -1225,17 +1225,18 @@ %0A%09zoom: -8 +12 %0A %7D;%0A
7663045374bf0ecac32457dbfb37799cbc5ea94f
Update ota.js
js/ota.js
js/ota.js
function y_ipad(){ var ua = navigator.userAgent.toLowerCase(); if(ua.match(/iPad/i)=="ipad" || ua.match(/iphone/i)=="iphone" || ua.match(/android/i)=="android") { //移动端处理 } } function hidebox() { $('.txtbox').hide(500); } function posttxt() { if($('#text').val()=="") { return; } else { $.post("http://happybirth...
JavaScript
0
@@ -326,17 +326,16 @@ iulu.ml/ -/ js/post.
125efd6b3bc550b59be41e96b533358566eef8b4
test if statement
server.js
server.js
'use strict' const express = require('express') const Slapp = require('slapp') const ConvoStore = require('slapp-convo-beepboop') const Context = require('slapp-context-beepboop') // use `PORT` env var on Beep Boop - default to 3000 locally var port = process.env.PORT || 3000 var slapp = Slapp({ // Beep Boop sets ...
JavaScript
1
@@ -1222,19 +1222,16 @@ ) =%3E %7B%0A - // if (msg @@ -1268,19 +1268,16 @@ art') %0A%09 -// return;%0A
32045fc87bc2d3c68d32d8d334fb182e9fad8c4a
Update custom_funct.js
leaflet/JS-CSS/custom_funct.js
leaflet/JS-CSS/custom_funct.js
function leaflet_alert() { alert("By clicking OK the user takes full responsibility of using this map and absolves the map developper of any responsibility."); keyPress (e); } function leaflet_confirm() { var txt; var r = confirm("By clicking OK the user takes full responsibility of using this map and abso...
JavaScript
0.000001
@@ -161,26 +161,8 @@ %22);%0A - keyPress (e);%0A %7D%0A%0Af
683f1149c222083c7a96d34f7f3f7d857f98add4
Improve production log format string
server.js
server.js
var express = require('express'); var _ = require('lodash'); var bodyParser = require('body-parser'); var cors = require('cors'); var pg = require('pg'); var morgan = require('morgan'); var onFinished = require('on-finished'); var communesHelper = require('./helpers/communes'); var aoc = require('./controllers/aoc'); v...
JavaScript
0.00072
@@ -588,23 +588,19 @@ ));%0A -app.use(morgan( +%0Avar env = proc @@ -615,16 +615,26 @@ NODE_ENV +;%0A%0Aif (env === 'pr @@ -646,29 +646,203 @@ ion' - ? 'short' : +) %7B%0A app.use(morgan(':date%5Bclf%5D :req%5Bx-real-ip%5D :method :url HTTP/:http-version :status :res%5Bcontent-length%5D - :response-time ms')...
3f24a4960a973e38f60bb917b74a1b6b6d3af8bd
Return hot wallet address in settings API call.
server.js
server.js
var express = require('express') var requireAll = require('./lib/require-all') var authorization = require('express-authorization') var passport = require('passport') var utils = require("./lib/utils") var BasicStrategy = require("passport-http").BasicStrategy var User = require("./app/models/user") var ExternalTransac...
JavaScript
0
@@ -365,16 +365,76 @@ ction%22)%0A +var RippleAddress = require('./app/models/ripple_address');%0A var Exte @@ -488,16 +488,16 @@ count%22)%0A - var sys @@ -1190,16 +1190,191 @@ e(app)%0A%0A +app.get('/api/v1/users/:id/ripple_addresses', ctrls%5B'ripple_addresses'%5D.userIndex);%0Aapp.get('/api/v1/users/:id/rippl...
aedc487c1a5826f745c2f9484bf29568778766a6
allow for wildcard routes at root
server.js
server.js
const fastify = require("fastify"); const Next = require("next"); const { PORT = 3000, HOST = "0.0.0.0" } = process.env; const dev = process.env.NODE_ENV !== "production"; // const ssrCache = new LRUCache({ maxAge: 0 }); // never expires // const getCacheKey = req => `${req.url}`; const getRoute = value => { return...
JavaScript
0
@@ -1599,24 +1599,38 @@ );%0A %7D%0A%0A + try %7B%0A fastif @@ -1657,32 +1657,34 @@ eq, reply) =%3E %7B%0A + await ha @@ -1709,32 +1709,34 @@ y.res);%0A + reply.sent = tru @@ -1736,35 +1736,117 @@ t = true;%0A + + %7D); +%0A %7D catch (err) %7B%0A // all...
f0ee98a62d1e96515ff8d79c00e9e5d0104ef89e
Add "yea boi" to opt in strings
server.js
server.js
'use strict' const express = require('express') const Slapp = require('slapp') const ConvoStore = require('slapp-convo-beepboop') const Context = require('slapp-context-beepboop') const redis = require("redis"); const client = redis.createClient({ url: 'redis://jordanlapointe:42d168c1768236f5665321416a4a2ee3@50.30.3...
JavaScript
0.000196
@@ -1302,16 +1302,24 @@ %7Cye%7Cyeah +%7Cyea boi )$',%5B'am
fc382b2d774efe32177febc8ad7d9cd78152f3c9
exit status 1 if tests fail
web/javascript/gulpfile.js
web/javascript/gulpfile.js
var browserify = require('browserify'); var gulp = require('gulp'); var gutil = require('gulp-util'); var source = require("vinyl-source-stream"); var reactify = require('reactify'); var watchify = require('watchify'); var uglify = require('gulp-uglify'); var buffer = require('vinyl-buffer'); var concat = require('gulp...
JavaScript
0
@@ -1675,48 +1675,37 @@ r', -function()%7B%0A process.exit(1);%0A %7D +process.exit.bind(process, 1) )%0A @@ -1826,16 +1826,64 @@ tomjs()) +%0A .on('error', process.exit.bind(process, 1)) ;%0A%7D);%0A%0Ag
921b72106d7bf91c478afcd4d2e9b2419c6e0cda
support changes
server.js
server.js
var express = require('express'); var path = require('path'); var url = require('url'); var app = express(); var server = app.listen(process.env.PORT || 3000, function () { console.log('Listening on port %d', server.address().port); }); var timeValue = 0; setInterval(function () { timeValue = Math.floor(Date.now(...
JavaScript
0
@@ -489,16 +489,90 @@ etag);%0A +%0A%09var allowHeaders = %5B'If-None-Match', 'Wait'%5D;%0A%09var exposeHeaders = %5B%5D;%0A%0A %09if(!req @@ -593,16 +593,18 @@ _header) + %7B %0A%09%09res.s @@ -630,15 +630,569 @@ ', ' -' + 10) +10');%0A%09%09exposeHeaders.push('X-Poll-Interval');%0A%09%7D%0A%0A%09var links = %5B...
f48155420e94e07f15269712f6d03df0202c60c3
Fix for "space after each comma"
dialog-polyfill.js
dialog-polyfill.js
var dialogPolyfill = {} dialogPolyfill.reposition = function(element) { var scrollTop = document.body.scrollTop || document.documentElement.scrollTop; var topValue = scrollTop + (window.innerHeight - element.offsetHeight) / 2; element.style.top = topValue + 'px'; element.dialogPolyfillInfo.isTopOverridden = tr...
JavaScript
0.000052
@@ -3363,13 +3363,15 @@ se', + true, + true
7a12d50af7e3cdeae211581d5c24d2c81f5f123f
comment out template rendering
server.js
server.js
//Copyright 2013-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. //Licensed under the Apache License, Version 2.0 (the "License"). //You may not use this file except in compliance with the License. //A copy of the License is located at // // http://aws.amazon.com/apache2.0/ // //or in the "license" f...
JavaScript
0
@@ -1611,16 +1611,18 @@ ata);%0A%09%09 +// res.rend @@ -1643,16 +1643,33 @@ data);%0A +%09%09res.send(data)%0A %09%7D);%0A%7D);
77b476e9a8021d7ecd3e7e7b58f6117a2c625313
fix name clash
reader.js
reader.js
function pair(car, cdr) { this.car = car; this.cdr = cdr; } function cons(car,cdr) { return new pair(car,cdr); } var symbol_table = new Object(null); function Symbol(str) { this.string = str; } function intern(string) { var sym = new Symbol(string); symbol_table[string] = sym; return sym; } func...
JavaScript
0.000015
@@ -507,37 +507,8 @@ %7D%0A%0A -// todo: functional streams?%0A func @@ -2443,47 +2443,8 @@ %0A%7D%0A%0A -// todo: don't automatically read next%0A func @@ -2449,24 +2449,30 @@ nction read_ +after_ whitespace(i @@ -2569,33 +2569,29 @@ on read_ -until_end_of_line +after_comment (input_s @@ -2650,130 +2650,8 @@ ...
7ce8a2c11a220d1d82d6b8c6a8f95ed6d273ee29
bump ??? distribution dist/snuggsi.min.es.js
dist/snuggsi.min.es.js
dist/snuggsi.min.es.js
window.HTMLElement=function(e){const t=function(){};return t.prototype=e.prototype,t.prototype.constructor=e,t}(HTMLElement),!window.customElements&&(window.customElements={}),new class{constructor({define:e,get:t,whenDefined:n}=customElements){window.customElements.define=this._define(void 0).bind(this)}_define(e=(e=>...
JavaScript
0.000007
@@ -2538,16 +2538,17 @@ ent=(e=%3E +! (n=!1)&&
ebf32cc9c53baf0dd772fb35e0e69ec31326388c
use params vs body
server.js
server.js
var restify = require('restify'); function createServer (opts) { var server = restify.createServer(opts); var ACC = { '2': 'pub' , '1': 'sub' }; function setup (req, res, next) { req.grant = { username: req.body.username , password: req.body.password , topic: req.body.topic , ac...
JavaScript
0
@@ -187,24 +187,98 @@ es, next) %7B%0A + console.log('BODY', req.body);%0A console.log('PARAMS', req.params);%0A req.gran @@ -303,20 +303,22 @@ me: req. -body +params .usernam @@ -339,20 +339,22 @@ rd: req. -body +params .passwor @@ -372,20 +372,22 @@ ic: req. -body +params .topic%0A @@ -396,28 +396,...
6066550cbb7d47551d861b4d053db3c5b8a5ce38
use clone instead of extending another object, bit clearer
src/config/appConfig.js
src/config/appConfig.js
'use strict'; const _ = require('underscore'); const path = require('path-extra'); const packageJson = require('../../package.json'); let appName = packageJson.name.toLowerCase(); const defaultSettings = { version: packageJson.version, name: packageJson.name, website: 'http://mongotron.io/', repository: pac...
JavaScript
0
@@ -796,35 +796,30 @@ _.extend(_. -extend(%7B%7D, +clone( defaultSetti @@ -878,35 +878,30 @@ _.extend(_. -extend(%7B%7D, +clone( defaultSetti @@ -955,35 +955,30 @@ _.extend(_. -extend(%7B%7D, +clone( defaultSetti @@ -1033,19 +1033,14 @@ d(_. -extend(%7B%7D, +clone( defa @@ -1158,13 +1158,8 @@ ions --tes...
b108b0286b23c68c663991442099c15af4eed207
Change port to 8080 to match with clevercloud requirement
server.js
server.js
require('zone.js/dist/zone-node'); require('reflect-metadata'); const express = require('express'); const fs = require('fs'); const { platformServer, renderModuleFactory } = require('@angular/platform-server'); const { ngExpressEngine } = require('@nguniversal/express-engine'); // Import module map for lazy loading co...
JavaScript
0
@@ -656,17 +656,17 @@ ort = 80 -0 +8 0;%0Aconst
9a301fad6c56deb7e7873f5c9695447fa4f87e71
Change constants for testing with travis
src/config/constants.js
src/config/constants.js
require('dotenv').config(); const devConfig = { JWT_SECRET: process.env.JWT_SECRET_DEV, MONGO_URL: process.env.MONGO_URL_DEV, }; const testConfig = { JWT_SECRET: process.env.JWT_SECRET_TEST, MONGO_URL: process.env.MONGO_URL_TEST, }; const prodConfig = { JWT_SECRET: process.env.JWT_SECRET_PROD, MONGO_URL:...
JavaScript
0
@@ -167,76 +167,121 @@ ET: -process.env.JWT_SECRET_TEST,%0A MONGO_URL: process.env.MONGO_URL_TEST +'ewtijwebgiuweg9w98u9283982t!!u1h28h1t1h89u9h@$$',%0A MONGO_URL: 'mongodb://localhost/nodejs-api-boilerplate-test' ,%0A%7D;
9dd1e3c3e2a317ef8870a9fb8d5da7e8ed9c6c80
Use fetch URL as state key for REST data (FOLIO-234)
stripes-connect/restResource.js
stripes-connect/restResource.js
import fetch from 'isomorphic-fetch'; import crud from 'redux-crud'; // TODO: pass in config externally, perhaps returning curried functions import { system } from 'stripes-loader!'; import uuid from 'node-uuid'; const okapiurl = system.okapi.url; export default class restResource { constructor(defaults) { if...
JavaScript
0
@@ -1314,24 +1314,46 @@ return -resource +this.fetchURL(resource, query) ;%0A %7D%0A%0A @@ -5195,16 +5195,222 @@ %7D%0A %7D %0A%0A + fetchURL(resource, query = %7B%7D) %7B%0A const options = Object.assign(%7B%7D, this.defaults, query);%0A let url = %5Bokapiurl, resource%5D.join('/');%0A if (options.pa...
098a39ada78bae73a79da48dc66841f324889c2b
Update string
structures/currency/Currency.js
structures/currency/Currency.js
const Redis = require('../Redis'); const UserProfile = require('../../models/UserProfile'); const redis = new Redis(); const UPDATE_DURATION = 30 * 60 * 1000; redis.db.hgetAsync('money', 'bank').then(async balance => { if (!balance) await redis.db.hsetAsync('money', 'bank', 5000); }); class Currency { static _cha...
JavaScript
0.000007
@@ -2169,17 +2169,16 @@ eturn '%F0%9F%A7%80 -s ';%0A%09%7D%0A%0A%09
4994387c32bb4979554d65f75b62f3ee24bf71bd
Allow <domain>/profile as baseUrl
server.js
server.js
#!/usr/bin/env node "use strict"; require("amd-loader"); try { require("heapdump"); } catch(e) {} var path = require("path"); var architect = require("architect"); var optimist = require("optimist"); var async = require("async"); if (process.version.match(/^v0/) && parseFloat(process.version.substr(3)) < 10) { ...
JavaScript
0.000001
@@ -5913,17 +5913,17 @@ omain(ur -i +l , domain @@ -5934,66 +5934,93 @@ -var parsed = url.parse(uri);%0A return url.format(parsed +return url.replace(/%5B%5E./%5D+%5C.%5B%5E./%5D+$/, domain).replace(/%5B%5E./%5D+%5C.%5B%5E.%5D+%5C//, domain + %22/%22 );%0A%7D -%0A
0a74d2f5d101794f51a9e1387c5724986c843060
fix alignment of error field
src/tools/web/client/src/components/TreeItem/index.js
src/tools/web/client/src/components/TreeItem/index.js
/** * @file * * @brief interactive tree view item to edit configurations of instances * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ import React, { Component } from 'react' import TextField from 'material-ui/TextField' import IconButton from 'material-ui/IconButton' import ActionD...
JavaScript
0.000001
@@ -6201,32 +6201,44 @@ nItems: 'center' +, height: 48 %7D%7D%3E%0A
514c244bbdcccd345292c8506c7556cf5531143f
fix server settings
server.js
server.js
/** * densan-core * server.js */ var express = require("express"), flash = require("connect-flash"), hogan = require("hogan-express"), passport = require("passport"), http = require("http"), path = require("path"); // express server settings var app = express(); app.configure(function () { ap...
JavaScript
0.000001
@@ -281,16 +281,153 @@ ress();%0A +%0Aapp.configure(%22development%22, %22maintenance-dev%22, function () %7B%0A app.use(express.logger(%22dev%22));%0A app.use(express.errorHandler());%0A%7D);%0A%0A app.conf @@ -1858,144 +1858,8 @@ );%0A%0A -app.configure(%22development%22, %22maintenance-dev%22, function () %7B%0...
5abe33f5d84e8b7357f50744a7ce7d4420745dd8
reset carousel in the case that it is reinstantiated twice
js/bootstrap-carousel.js
js/bootstrap-carousel.js
/* ========================================================== * bootstrap-carousel.js v2.2.3 * http://twitter.github.com/bootstrap/javascript.html#carousel * ========================================================== * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License")...
JavaScript
0
@@ -5098,16 +5098,24 @@ l) data. +pause(). cycle()%0A
72f2e2d6064f8a5481a5d5e081fc78c521cfa539
Update figure.js
src/figure/figure.js
src/figure/figure.js
"use strict"; var DocumentNode = require("../node/node"); var Figure = function(node, document) { DocumentNode.call(this, node, document); }; Figure.type = { "id": "figure", "parent": "content", "properties": { "image": "blob_reference", "image_url": "string", "label": "string", "caption": "p...
JavaScript
0.000001
@@ -233,21 +233,11 @@ %22: %22 -blob_referenc +fil e%22,%0A @@ -397,29 +397,47 @@ ure -is a figure is figure +holding an image, a label and a caption .%22%0A @@ -521,20 +521,11 @@ %22: %22 -BlobReferenc +Fil e id @@ -544,20 +544,20 @@ e image -blob +data %22,%0A %22 @@ -772,57 +772,29 @@ %0A %22 -url%22...
fb8ec229938d446b2c8dfb300b68ed2e8eab34de
Move `if (HAS_NATIVE_PROXY) {}` into `runInDebug`.
vendor/ember-factory-for-polyfill/index.js
vendor/ember-factory-for-polyfill/index.js
/* globals Ember, Proxy, define */ (function() { 'use strict'; var HAS_NATIVE_PROXY = typeof Proxy === 'function'; function factoryFor(fullName) { var factory = this._lookupFactory(fullName); if (!factory) { return; } var FactoryManager = { class: factory, create: function() ...
JavaScript
0.000001
@@ -402,64 +402,64 @@ -if (HAS_NATIVE_PROXY) %7B%0A Ember.runInDebug(function( +Ember.runInDebug(function() %7B%0A if (HAS_NATIVE_PROXY ) %7B%0A @@ -1465,16 +1465,16 @@ %7D -); %0A %7D +); %0A%0A
cc9246b1420bfbcc4136c23dd9112a70ed566134
Remove debug logging
js/foam/build/I18nApp.js
js/foam/build/I18nApp.js
/** * @license * Copyright 2015 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
JavaScript
0
@@ -5861,42 +5861,8 @@ ) %7B%0A - console.log(self.dataId);%0A @@ -5936,104 +5936,8 @@ s';%0A - console.log(filePath);%0A console.log(self.targetPath + self.path.sep + filePath);%0A
c60767099fc27a7ef9589b7ccd756f4fd3903c27
Update ApplicationController.js
ngapp/app/controller/ApplicationController.js
ngapp/app/controller/ApplicationController.js
function ApplicationController($scope, $http, $location,$timeOut, $rootScope, $localStorage, $sessionStorage){ // $scope = this; $scope.pageLoading = false; /* $scope.callBackpageLoading=function(){ $pageLoading(function(){$scope.pageLoading = true;}, 400); } $scope.callBackpageLoading(); */ $scope.isAct...
JavaScript
0.000001
@@ -3923,16 +3923,84 @@ lider:%7B%0A +%09 %09button:%7B%0A visible: true%0A %7D,%0A %09 %09an @@ -4042,18 +4042,16 @@ tion()%7B%0A -%09%09 %09%09%09conso @@ -4164,16 +4164,109 @@ imated;%0A +%09 %09%09$scope.application.slider.button.visible = !$scope.application.slider.b...
8045c5af69684635ae54085c9bc6c9cafdd15fa1
Include title in flickr output
src/features/flickr-set.js
src/features/flickr-set.js
/* @flow */ import type Site from '../site'; import request from 'request-promise'; import { skipMeta, skipDirectories } from '../transforms/skip-items'; const FLICKR_API_BASE_URL = 'https://api.flickr.com/services/rest/'; const FLICKR_BASE_PARAMETERS = '?format=json&nojsoncallback=1'; const FLICKR_SET_META_KEY = '...
JavaScript
0.000614
@@ -1720,16 +1720,33 @@ : string +, title : string %7D%5B%5D%3E %7B%0A @@ -1934,16 +1934,40 @@ : p.id,%0A + title: p.title,%0A @@ -2103,24 +2103,44 @@ pageUrl : + string,%0A title : string%0A%7D;%0A%0A
9088fc18dd73872e3a2cc83a678bf1a98809b829
Rename process to prompt.
app/http/ceremony/authorize.js
app/http/ceremony/authorize.js
exports = module.exports = function(resume, process, finish) { return { resume: resume, process: process, exit: finish }; }; exports['@implements'] = 'http://i.bixbyjs.org/http/ceremony/Prompt'; exports['@name'] = 'oauth2/authorize'; exports['@require'] = [ './authorize/resume', './authorize/pro...
JavaScript
0
@@ -97,20 +97,19 @@ %0A pro -cess +mpt : proces
8668f51e3c87a9331ac737872276e4e0467a3597
Remove comma...
djangopeople/djangopeople/static/djangopeople/js/maps.js
djangopeople/djangopeople/static/djangopeople/js/maps.js
STATIC_URL = $('body').data('static-url'); var ShrinkMapControl = L.Control.extend({ options: { position: 'bottomleft' }, onAdd: function (map) { // create the control container with a particular class name var container = L.DomUtil.create('div', 'shrinkControl'); container...
JavaScript
0.000052
@@ -660,17 +660,16 @@ ble.png' -, %0A %7D%0A%7D
3d56ad02a8f80408283209c07bceaa179689a89b
Add quotes around commit message
interactive.js
interactive.js
var chalk = require('chalk'); var execSync = require('child_process').execSync; var ansi = require('ansi-escapes'); var Interactive = function() { this.prompt = 'Enter a file glob: '; this.input = ''; this.getGitFiles = true; this.getCommitMessage = false; this.inputColor = 'red'; }; var proto = Interactive.prot...
JavaScript
0
@@ -881,16 +881,35 @@ ssage: ' + + chalk.green('%22') ;%0A%09%09this @@ -950,16 +950,17 @@ green';%0A +%0A %09%09this.r @@ -1844,16 +1844,79 @@ .input); +%0A%09if (this.getCommitMessage) %7B%0A%09%09string += chalk.green('%22');%0A%09%7D %0A%0A%09proce @@ -1997,16 +1997,95 @@ string); +%0A%0A%09if (this.getCommi...
7a002589b251d1f2f8a18d7d16b532f4fa966ff7
Update RSA forms link
app/js/constants/cerfaForms.js
app/js/constants/cerfaForms.js
'use strict'; /* jshint multistr: true */ angular.module('ddsApp').constant('cerfaForms', { cmu_c: { description: 'Le dossier doit être envoyé à la caisse d’assurance maladie dont vous dépendez.\ Il peut être envoyé par courrier ou être déposé directement à votre caisse d’assurance maladie.\ ...
JavaScript
0
@@ -2450,35 +2450,98 @@ url: ' +https://www.formulaires.modernisation.gouv.fr/gf/cerfa_15481.do ',%0A - @@ -2631,32 +2631,95 @@ url: ' +https://www.formulaires.modernisation.gouv.fr/gf/cerfa_15482.do ',%0A @@ -2817,24 +2817,24 @@ moins_25: %7B%0A - @...
5e6168f50a555d56ba37f969105502e44e7e4c95
Make Flow shut up about possible null ref for missing Android header
EduChainApp/js/common/Header.js
EduChainApp/js/common/Header.js
/** * * @flow */ 'use strict'; import React, {Component} from 'react' import { View, Text, StyleSheet, Image, TouchableOpacity, Platform } from 'react-native' import Colors from './Colors' import Icon from 'react-native-vector-icons/Ionicons' export type Layout = 'default' // Use...
JavaScript
0
@@ -686,16 +686,17 @@ %0A style +? : any;%0A @@ -704,16 +704,17 @@ children +? : any;%0A%7D @@ -3645,16 +3645,29 @@ Header = + HeaderIOS // Platfor
666ecdb4f9dad13fed329b188b0de98cbab3f3d8
Set graphics parent for programmatically created shapes.
src/flash/display/Shape.js
src/flash/display/Shape.js
/* -*- Mode: js; js-indent-level: 2; indent-tabs-mode: nil; tab-width: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* * Copyright 2013 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Lic...
JavaScript
0
@@ -1206,16 +1206,55 @@ hics();%0A + this._graphics._parent = this;%0A %7D%0A
68755ccf491e3bfdca9f836354e9afb10d1ea4c4
fix demo style
examples/demo.js
examples/demo.js
/* eslint-disable */ function getGeoJSON () { return new Promise ((resolve, reject) => { fetch('../resources/china.json').then(resp => resp.json().then(china => resolve(china)) ) }) } function getData () { return new Promise ((resolve, reject) => { fetch('../resources/china-population.json').th...
JavaScript
0.000001
@@ -15,10 +15,48 @@ ble -*/ +no-undef */%0A/* eslint-disable no-new */%0A %0Afun @@ -89,33 +89,32 @@ turn new Promise - ((resolve, rejec @@ -275,17 +275,16 @@ Promise - ((resolv @@ -418,17 +418,16 @@ )%0A %7D)%0A%7D - %0A%0Aconst @@ -581,17 +581,16 @@ ta =%3E %7B%0A -%0A cons @@ -916,16 +916,15 @@ ...
08e0bfc8bf8cbc662a98234791ddba4d2d958aaf
Fix grid sizing issues on large monitors
src/components/GridContainer/src/ColDefFactory.js
src/components/GridContainer/src/ColDefFactory.js
export default class ColDefFactory { createColDefs() { const leftAlignStyle = { 'text-align': 'left' }; const centerAlignStyle = { 'text-align': 'center' } const makeAlignStyle = { 'border-left': '1px solid #808080', 'text-alig...
JavaScript
0
@@ -503,32 +503,73 @@ sSorting: true,%0A + suppressSizeToFit: true,%0A @@ -786,32 +786,73 @@ sSorting: true,%0A + suppressSizeToFit: true,%0A @@ -1067,32 +1067,73 @@ sSorting: true,%0A + suppressSizeToFit: true,%0A @@ ...
7d0c5508daab2e350c4adfe58cb64321170ad0e1
Rollback breaks for non-string property values
src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/rollback/rollback.controller.js
src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/rollback/rollback.controller.js
(function () { "use strict"; function RollbackController($scope, contentResource, localizationService, assetsService, dateHelper, userService) { var vm = this; vm.rollback = rollback; vm.changeLanguage = changeLanguage; vm.changeVersion = changeVersion; vm.subm...
JavaScript
0
@@ -4920,24 +4920,29 @@ operty.value + + %22%22 : %22%22;%0A @@ -5013,16 +5013,21 @@ ty.value + + %22%22 : %22%22;%0A%0A
7a286e33c1ea1eeb72903af368d46bce2ec887e4
Add temporary signup callback to test styles
screens/EventDetailScreen.js
screens/EventDetailScreen.js
import React, {Component} from "react"; import { View, Text } from "react-native"; import PageFrame from "../components/PageFrame"; import EventDetailView from "../components/EventDetailView"; export default class EventDetailScreen extends Component { render() { // Placeholder empty function to suppress war...
JavaScript
0
@@ -257,109 +257,221 @@ %7B%0A -render() %7B%0A // Placeholder empty function to suppress warnings %0A var emptyFunc = function +constructor() %7B%0A super();%0A this.state = %7BsignedUp: false%7D;%0A this.toggleSignup = this.toggleSignup.bind(this);%0A %7D%0A%0A toggleSignup() %7B%0A this.setSta...
ca280c1e0a791826482a11f887da61e797d67b8f
Use Windows named pipe
server.js
server.js
var url = require('url') var fs = require('fs'); var express = require('express'); var _ = require('lodash'); var superagent = require('superagent'); var net = require('net'); var http = require('http'); var https = require('https'); var WS = require('ws'); var WebSocketServer = WS.Server; var indexData; var app = ex...
JavaScript
0.000003
@@ -1888,18 +1888,20 @@ r_host;%0A -%09%09 + opti @@ -1928,23 +1928,127 @@ rt;%0A -%09 %7D%0A%09 + %7D else if (process.platform === 'win32') %7B%0A options.socketPath = '%5C%5C%5C%5C.%5C%5Cpipe%5C%5Cdocker_engine';%0A %7D else %7B%0A %09%09 @@ -2043,18 +2043,20 @@ else %7B%0A -%09%09 +...
d67e0457a50ece1a3aae55029ff7c01994f54ed1
Make TouchableHighlight have visual effect.
Libraries/Touchable/TouchableHighlight.web.js
Libraries/Touchable/TouchableHighlight.web.js
/** * Copyright (c) 2015-present, Alibaba Group Holding Limited. * All rights reserved. * * Copyright (c) 2015, Facebook, Inc. All rights reserved. * * @providesModule ReactTouchableHighlight */ 'use strict'; import React from 'react'; import View from 'ReactView'; import TimerMixin from 'react-timer-mixin'; i...
JavaScript
0
@@ -888,19 +888,16 @@ ayRef';%0A -// var INAC @@ -917,19 +917,16 @@ OPS = %7B%0A -// style: @@ -968,19 +968,16 @@ 0%7D%7D).x,%0A -// %7D;%0Avar I @@ -4122,27 +4122,24 @@ // %7D%0A%0A - // this.refs%5BU @@ -4202,19 +4202,16 @@ ps);%0A - // this.re @@ -4459,27 +4459,24 @@ EF%5D) %7B%0A - /...
d0d74f270412575d7cc1337eaa7c682385996392
Fix missing return
server.js
server.js
var http = require ('http'); // For serving a basic web page. var mongoose = require ("mongoose"); // The reason for this demo. var querystring = require('querystring'); // The http server will listen to an appropriate port, or default to // port 5000. var port = process.env.PORT || 5000; var slack_...
JavaScript
0.999996
@@ -2350,32 +2350,116 @@ %7B%0A +%0A%0A //TODO : prevent an exchange to be catched here if the message contains hi %0A if ( @@ -3048,16 +3048,17 @@ tinatair +e n%5C'exis @@ -3216,32 +3216,54 @@ esponseBody) );%0A + return;%0A %7D%0A%0A @@ -3594,32 +3594,32...
eec3a8fc91d462db18674659a04b92325a034616
lowercase email
server.js
server.js
'use strict'; /* * Zenodotus * * An application to track books in the Hacker School library. * Named for the first librarian of the Library of Alexandria. * * (c) 2013 Eric Weinstein * * See LICENSE for copying */ /* Modules */ var express = require('express') , http = require('http') , routes = req...
JavaScript
0.999989
@@ -1276,16 +1276,30 @@ dy.email +.toLowerCase() ;%0A %0A /
0b6bd3829e4ed8d83468bdc5ec79dbd7d84874f5
disable Linux check for dev
server.js
server.js
// PiMonitor.js var http = require("http"), // needed for express server https = require("https"), // we want to be secure express = require('express'), // we need to route the users around efficiently passport = require('passport'), // used for authentication cookie...
JavaScript
0
@@ -350,19 +350,16 @@ arser'), - %0A ses @@ -534,17 +534,16 @@ e(%22fs%22), - %0A os @@ -572,20 +572,16 @@ (%22os%22),%0A - %0A col @@ -682,20 +682,16 @@ ).argv,%0A - %0A con @@ -753,20 +753,16 @@ ig file%0A - %0A por @@ -876,20 +876,16 @@ ).exec,%0A - %0A PiD @@ -1223...
afbf721054d74678cd507b448f8939163fe82e8b
resolve all style violations
server.js
server.js
// This will be our application entry. We'll setup our server here. import app from './server/config/app'; require('dotenv').config(); const port = process.env.PORT || 5000; app.listen(port, (err) => { if (err) { console.log(err); } else { console.log(`App running at http://localhost:${port}`); } });
JavaScript
0.000031
@@ -311,8 +311,9 @@ %0A %7D%0A%7D); +%0A
48c1a7ceb5b3f4df1d289e153054410d3914fcd4
Remove console log
app/plugins/swarfarm-logger.js
app/plugins/swarfarm-logger.js
const request = require('request'); const SWARFARM_URL = 'https://swarfarm.com'; module.exports = { defaultConfig: { enabled: true, profileSync: false, apiKey: '' }, defaultConfigDetails: { profileSync: { label: 'Automatically upload profile to SWARFARM' }, apiKey: { label: 'SWARFARM API key...
JavaScript
0.000002
@@ -6163,37 +6163,8 @@ est%0A - console.log(body);%0A
6cd596993648c5f6c7d38292646e31d4fda1d991
Sort countries by ASC
app/redux-modules/countries.js
app/redux-modules/countries.js
import Config from 'react-native-config'; import I18n from 'locales'; // Actions const GET_COUNTRIES = 'countries/GET_COUNTRIES'; // Reducer const initialState = { data: null }; export default function reducer(state = initialState, action) { switch (action.type) { case GET_COUNTRIES: return Object.assi...
JavaScript
0.999999
@@ -622,16 +622,34 @@ ountries + ORDER BY name ASC %60;%0A%0A re
567442a8ac2abdd317830d81d9f26fb29425269a
Use HTTPS as default.
src/geocoders/nominatim.js
src/geocoders/nominatim.js
var L = require('leaflet'), Util = require('../util'); module.exports = { class: L.Class.extend({ options: { serviceUrl: '//nominatim.openstreetmap.org/', geocodingQueryParams: {}, reverseQueryParams: {}, htmlTemplate: function(r) { var a = r.address, parts = []; if (a.road || a.building) ...
JavaScript
0
@@ -123,16 +123,22 @@ ceUrl: ' +https: //nomina
f86f229533dc409bae560b32bcae35ed87844922
Add connect flash middleware setup
server.js
server.js
var express = require('express'); var logger = require('morgan'); var bodyParser = require('body-parser'); var session = require('express-session'); // compatible stores at https://github.com/expressjs/session#compatible-session-stores var exphbs = require('express-handlebars'); var cookieParser = require('cookie-pars...
JavaScript
0
@@ -766,16 +766,252 @@ =======%0A +%0A// setup connect flash so we can sent messages%0Aapp.use(cookieParser('secretString'));%0Aapp.use(session(%7B%0A secret: %22@lHJr+JrSwv1W&J904@W%25nmWf++K99pRBvk&wBaNAs4JTid1Ji%22,%0A resave: false,%0A saveUninitialized: true%0A%7D));%0Aapp.use(flash());%0A%0A // Make
58e391fab268db45efc82cc3caae7e3feff59da2
Fix LinesMode after removing LabeledMode class
src/gfx/modes/LinesMode.js
src/gfx/modes/LinesMode.js
import Mode from './Mode'; function getRenderParams() { return { lineWidth: this.opts.lineWidth, }; } class LinesMode extends Mode { static id = 'LN'; constructor(opts) { super(opts); const groups = this.depGroups; for (let i = 0, n = groups.length; i < n; ++i) { groups[i] = [groups[i],...
JavaScript
0
@@ -196,16 +196,108 @@ (opts);%0A + this.depGroups = this.depGroups.slice(0); // clone depGroups to prevent prototype edits%0A cons
a8140559c54db0ecd8a96a939ea30cb71e9cf75d
add sppaces
src/3d.js
src/3d.js
import projections from './projections.js'; import {points} from './primitiveTypes/points.js'; import {lines} from './primitiveTypes/lines.js'; export default function() { var ortho = projections.ortho, persp = projections.persp, projection = ortho, origin = [0, 0], scale = 1, distance ...
JavaScript
0.999874
@@ -182,19 +182,26 @@ r ortho -%09%09%09 + = projec @@ -217,19 +217,32 @@ ho,%0A -%09%09persp %09%09%09 + persp = pr @@ -258,18 +258,24 @@ .persp,%0A -%09%09 + projecti
745068e0f921b021ae94c4993fa3135e0cd21062
Add missing Swedish translations
src/SV.js
src/SV.js
export default { editor: { mathEditor: 'Matematikeditor', title: 'Formeleditorns utvecklingsversion', description: ` <ul> <li>Under knappen “Lägg till formel” hittar du de vanligaste beteckningarna som används i matematik, fysik och kemi. Dessutom kan du använda specialtecken för att skriva...
JavaScript
0.999999
@@ -903,33 +903,138 @@ %3Cth%3E -St%C3%A4ng formeln%3C/th%3E%3Ctd%3EEsc +Exponent%3C/th%3E%3Ctd%3E%5E%3C/td%3E%3C/tr%3E%0A%3Ctr%3E%3Cth%3ESt%C3%A4ng formeln%3C/th%3E%3Ctd%3EEsc%3C/td%3E%3C/tr%3E%0A%3Ctr%3E%3Cth%3EL%C3%A4gg till en formel p%C3%A5 f%C3%B6ljande rad%3C/th%3E%3Ctd%3EEnter %3C/td
a87bb55677b9028774d732a474ba25b8a2c9fc6e
Fix CORS
server.js
server.js
const express = require('express'); const cors = require('cors'); const bodyParser = require('body-parser'); require('dotenv').config(); const R = require('ramda'); // TODO: Remove next line after configuring unit tests const webstatConvertor = require('./modules/webstat-convertor.js'); const gameManagement = require('...
JavaScript
0.999969
@@ -410,16 +410,21 @@ st-stat' +, 'g' ), new R @@ -440,16 +440,21 @@ calhost' +, 'g' )%5D;%0A%0Acon
7af2e4e1208e28b69345e1a95a392a100b87d305
Add notes to lib.js.
src/foam/core/lib.js
src/foam/core/lib.js
/** * @license * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
JavaScript
0
@@ -2565,16 +2565,211 @@ essage.%0A + *%0A * However just defining as console.assert.bind(console); gives better stack%0A * traces which start on the calling line so are easier to breakpoint,%0A * so maybe this isn't worth doing anymore?%0A */%0Afoam
f8853e152db962e8dda0cb54435dd4bc6150d649
update syntax: on-click to @click
src/graph/legend/legend.js
src/graph/legend/legend.js
import {setPackages} from '../../packages/packages.js'; export default Vue.extend({ props: { modules: Array, date: Date }, template: ` <div class="legend"> <table class="modules"> <thead class="date"> <th>{{date | formatDate 'dddd'}}</th> <th>{{date | formatDate 'MMM...
JavaScript
0.000004
@@ -525,11 +525,9 @@ -on- +@ clic
803b29ff9f2257957539cd77d5f78e6a5ea876dc
add support for legacy pages
server.js
server.js
'use strict'; var fs = require('fs'); var http = require('http'); var express = require('express'); var httpProxy = require('http-proxy'); // Create server & proxy var app = express(); var server = http.createServer(app); var proxy = httpProxy.createProxyServer({}); app.configure(function() { app.use(expre...
JavaScript
0
@@ -741,164 +741,241 @@ );%0A -app.all('/*', function(req, res) %7B proxy.web(req, res, %7B target: 'http://us1.lb.infra.cbd.int', secure: false %7D ); %7D );%0A%0A// Configure template fil +%0A// Configure template%0A%0Aapp.get('/reports/test', sendTemplate);%0Aapp.get('/reports/test1', sendTemplate);%0Aapp.get('/re...
07103b67b356b17bf53164cb0136f67746235834
Replace if else statement for ouput with a turnary statement
server.js
server.js
/** * @description a string as a parameter, passed through the url, is checked to see whether that string contains either a * unix timestamp or a natural language date (example: January 1, 2016). * @returns the Unix timestamp and the natural language form of the date or null **/ var express = require('express')...
JavaScript
0.999992
@@ -634,20 +634,19 @@ query%0A -var + , output = @@ -655,18 +655,20 @@ %7D%0A -var + , time;%0A + %0A if @@ -802,16 +802,17 @@ e(query) +; %0A %7D e @@ -834,16 +834,17 @@ e = null +; %0A %7D%0A @@ -872,39 +872,8 @@ amp%0A - console.log(Number(query))%0A @@ -913,16 +913,17 @@ 000) +...
a5e6b42697b4e633549e5fba76215ee293aff698
Improve matchers.
specs/matchers/arrays.js
specs/matchers/arrays.js
'use strict'; (function() { var n_util = require('util'); var arrayMatchers = { toBeIn: function(util, equalityTesters) { return { compare: function(actual, expected) { expected = expected || []; var result = { pass: util.contains(expected, actual, equalityTesters) }; result.message = result.pass =...
JavaScript
0
@@ -533,32 +533,72 @@ ion(actual, -size +length ) %7B%0A +%09%09%09%09var actualLength = actual.length;%0A %09%09%09%09var resu @@ -608,34 +608,33 @@ = %7B pass: actual -.l +L ength === size %7D @@ -623,28 +623,30 @@ lLength === -size +length %7D;%0A%09%09%09%09resu @@ -665,34 +665,29 @@ 'Expecting -' + ac...
c9d92ac37a0af44a74e4985d78af19dee573900c
comment db
server.js
server.js
var express = require("express"); var app = express(); var mongoose = require('mongoose'); var bodyparser = require('body-parser'); // Body parser middleware app.use(bodyparser.urlencoded({ extended: true })); app.use(bodyparser.json()); // var db = mongoose.connect('mongodb://localhost:27001/medicineAPI'); //var db ...
JavaScript
0
@@ -571,24 +571,26 @@ tes=true');%0A +// var db = mon
9285bc98b0969cd8005a6c6dffc923a10fe93b5a
change record loader to lazy loading
opal/static/js/opal/services/record_loader.js
opal/static/js/opal/services/record_loader.js
angular.module('opal.services') .factory('recordLoader', function($q, $http, $rootScope, $window, $log){ "use strict"; var load = function(){ var deferred = $q.defer(); var url = '/api/v0.1/record/'; $http({ cache: true, url: url, method: 'GET'}).then(function(response){ var fields = resp...
JavaScript
0.000001
@@ -541,33 +541,8 @@ %7D;%0A%0A - var promise = load();%0A%0A re @@ -548,22 +548,16 @@ eturn %7B%0A - load @@ -562,252 +562,12 @@ ad: -function()%7B return promise; %7D,%0A then: function(fn)%7B%0A // TODO: 0.9.0%0A $log.warn(%22This API is being deprecated and will be removed in 0.9.0. ...
ce9b3561f2fa297ac5adb349ead44530facd386d
use custom-defined internal separator
bin/lib/locale-compare.js
bin/lib/locale-compare.js
// ----------------------------------------------------------------------------- // Helper Methods for build-locales node script. // ----------------------------------------------------------------------------- var crypto = require('crypto'); var fs = require('fs'); var path = require('path'); var po2icu = require('po...
JavaScript
0.000015
@@ -3140,16 +3140,27 @@ 5WithIds +, separator ) %7B%0A @@ -3418,24 +3418,59 @@ tions = %7B%7D;%0A + separator = separator %7C%7C ':';%0A%0A try %7B%0A @@ -4198,19 +4198,25 @@ d.split( -'-' +separator ); // %5Bv @@ -5169,32 +5169,43 @@ n (viewName, ids +, separator ) %7B%0A var idsT @@ -5211,24 +...
25df711c92f1098e6f4d33132c5f33e1c6720cdf
change port
server.js
server.js
// server.js require('pmx').init(); var http = require('http'); var pmx = require('pmx'); // set up ====================================================================== // get all the tools we need var express = require('express'); var app = express(); var port = process.env.PORT || 8080; var mongoose = require('mong...
JavaScript
0.000001
@@ -283,12 +283,12 @@ %7C%7C -8080 +1234 ;%0Ava
eaad5cb29dd1700598030608ad336d879fcf2b77
Fix the “dpt” command's output format
r2io/agent/index.js
r2io/agent/index.js
'use strict'; const mjolner = require('mjolner'); const pointerSize = Process.pointerSize; const commandHandlers = { 'env': dumpEnv, 'i': dumpInfo, 'il': dumpModules, 'dpt': dumpThreads, 'dm': dumpMemory, 'dr': dumpRegisters, }; function dumpEnv(args) { const kv = args.join(''); const eq = kv.indexO...
JavaScript
0.998409
@@ -1409,24 +1409,70 @@ hreadsSync() +%0A .map(thread =%3E thread.id)%0A .join('%5Cn') ;%0A%7D%0A%0Afunctio
285156c99782820800b95bd100d8cc1a06c7b981
Add tests for putJSON and postJSON
website/static/js/tests/osfHelpers.test.js
website/static/js/tests/osfHelpers.test.js
/*global describe, it, expect, example, beforeEach, mocha, sinon*/ 'use strict'; var assert = require('chai').assert; var $ = require('jquery'); var $osf = require('../osfHelpers.js'); describe('growl', function() { it('calls $.growl with correct arguments', function() { var spy = new sinon.spy($, 'growl...
JavaScript
0
@@ -44,16 +44,27 @@ oreEach, + afterEach, mocha, @@ -541,12 +541,1216 @@ %7D);%0A%7D);%0A +%0Adescribe('ajax helpers', function() %7B%0A var spy;%0A beforeEach(function() %7B%0A spy = new sinon.spy($, 'ajax');%0A %7D);%0A afterEach(function() %7B spy.restore(); %7D);%0A%0A describe('postJ...
c46369c2038b8de842e7f5b471de56e471976a82
Update FFA.js
src/gamemodes/FFA.js
src/gamemodes/FFA.js
var Mode = require('./Mode'); function FFA() { Mode.apply(this, Array.prototype.slice.call(arguments)); this.ID = 0; this.name = "Free For All"; this.specByLeaderboard = true; } module.exports = FFA; FFA.prototype = new Mode(); // Gamemode Specific Functions FFA.prototype.leaderboard...
JavaScript
0
@@ -1525,17 +1525,19 @@ istance -%3E +=== 0) %7B%0D%0A @@ -1661,29 +1661,32 @@ -%7D %0D%0A%0D%0A + @@ -1713,32 +1713,36 @@ ss%0D%0A + gameServer.remov @@ -1762,24 +1762,29 @@ + + // Inherit%0D%0A @@ -1783,16 +1783,21 @@ nherit%0D%0A + ...
ee38f11006f69dd03298b736ae79b8ea6444e42b
Add custom header for AJAX requests
src/helpers/api/apiAjax.js
src/helpers/api/apiAjax.js
import config from '../../config'; function formatUrl(path) { const adjustedPath = path[0] !== '/' ? '/' + path : path; const apiPath = `/api/${config.apiVersion}${adjustedPath}`; return apiPath; } class ApiAjax { constructor() { ['get', 'post', 'put', 'patch', 'del'].forEach((method) => this[metho...
JavaScript
0
@@ -331,16 +331,24 @@ , %7B data +, header %7D = %7B%7D) @@ -1080,32 +1080,148 @@ ication/json');%0A + if (Object.keys(header %7C%7C %7B%7D).length) %7B%0A req.setRequestHeader(header.key, header.value);%0A %7D%0A req.send
248336902d8ce8b9c094eec51d4bc97f65207a26
Allow node 12.14, since it seems to be somehow tied to electron release.
src-electron/util/env.js
src-electron/util/env.js
/** * * Copyright (c) 2020 Silicon Labs * * 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 a...
JavaScript
0
@@ -4366,16 +4366,21 @@ sion = %5B +%0A 'v12.18. @@ -4378,24 +4378,28 @@ 'v12.18.x', +%0A 'v12.17.x', @@ -4398,16 +4398,20 @@ 2.17.x', +%0A 'v12.16 @@ -4413,16 +4413,52 @@ 12.16.x' +,%0A 'v12.15.x',%0A 'v12.14.x',%0A %5D%0A var
9fb1ca3ec5f130dd96fe539c3b929fa322c4b4ec
allow for nested module resolution
build/webpack.config.js
build/webpack.config.js
const webpack = require('webpack') const { resolve, join } = require('path') const projectRoot = resolve(__dirname, '../') const HtmlWebpackPlugin = require('html-webpack-plugin') const VueLoaderPlugin = require('vue-loader/lib/plugin') const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlug...
JavaScript
0
@@ -2387,24 +2387,16 @@ ,%0A -resolve( 'node_mo @@ -2401,17 +2401,16 @@ modules' -) ,%0A %5D,
4c31671117dca06bfeb92aef1c00d234e3d744e3
Fix default email templates to not have 'http://' in subject line.
packages/accounts-password/email_templates.js
packages/accounts-password/email_templates.js
Meteor.accounts.emailTemplates = { from: "Meteor Accounts <no-reply@meteor.com>", resetPassword: { subject: function(user) { return "How to reset your password on " + Meteor.absoluteUrl(); }, text: function(user, url) { var greeting = (user.profile && user.profile.name) ? ("Hell...
JavaScript
0
@@ -76,16 +76,97 @@ r.com%3E%22, +%0A siteName: Meteor.absoluteUrl().replace(/%5Ehttps?:%5C/%5C//, '').replace(/%5C/$/, ''), %0A%0A rese @@ -260,36 +260,55 @@ %22 + Meteor.a -bsoluteUrl() +ccounts.emailTemplates.siteName ;%0A %7D,%0A @@ -761,36 +761,55 @@ %22 + Meteor.a -bsoluteUrl() +ccounts.emailTemplate...
ac82b28da5805c154258a679e32feca8166cffc8
add working code
HTTPJSONAPI-Server.js
HTTPJSONAPI-Server.js
var http = require('http'); var url = require('url'); var server = http.createServer(function (req, res) { var parsedUrl = url.parse(req.url, true); console.log(parsedUrl); console.log(parsedUrl.pathName); if (parsedUrl.pathName == '/api/parsetime') { res.writeHead(200, { 'Content-Type': 'application/json' }); ...
JavaScript
0.000107
@@ -56,396 +56,447 @@ var -server = http.createServer(function (req, res +routes = %7B%0A%09%22/api/parsetime%22: function(parsedUrl ) %7B%0A +%09 %09var -parsedUrl = url.parse(req.url, true);%0A%09console.log(parsedUrl);%0A%09console.log(parsedUrl.pathName);%0A%09if (parsedUrl.pathName == '/api/parsetime') %7B%0A...
a8ceb835898572649a37c536c8cf877bc3019ab9
Update map.js
exploring/map.js
exploring/map.js
'use strict'; var w = window.innerWidth; var h = window.innerHeight; //var mapUrl = 'https://gist.githubusercontent.com/thepeted/60242378d8c825281ea695c572ab4d51/raw/00685152c5cb34093aabc22b2c06e3df052cc981/world110m.json'; //var dataUrl = 'https://raw.githubusercontent.com/FreeCodeCamp/ProjectReferenceData/master/me...
JavaScript
0.000001
@@ -66,16 +66,17 @@ ght;%0A%0A// + var mapU @@ -222,16 +222,17 @@ son';%0A// + var data @@ -618,16 +618,17 @@ %0A%7D);%0A%0A// + define t @@ -744,16 +744,17 @@ 0%5D);%0A%0A// + load top @@ -1099,16 +1099,17 @@ ));%0A%0A%09// + define a @@ -1446,16 +1446,17 @@ ) %7B%0A%09%09// + remove r @@ -1580,53 +1...
b13b91908b092ba92acef396b80c9f5504d1b8c5
allow proposedShows to render
routes/proposedShows.js
routes/proposedShows.js
var express = require('express'); var bodyParser = require('body-parser'); var app = express(); app.use(bodyParser.urlencoded({ extended: false })); var router = express.Router(); var db = require('../database/db'); var passwords = require('../passwords.json'); router.get('/', function(req, res) { db.insertTimeslot...
JavaScript
0
@@ -333,10 +333,8 @@ );%0A%09 -/* db.g @@ -465,10 +465,8 @@ %09%7D); -*/ %0A%7D);
ef9bf335e2e6a163ea676505e1b69fd449f28b36
Add test for comfort setpoint
test/ProgrammeShould.js
test/ProgrammeShould.js
'use strict' const chai = require('chai') const Programme = require('../Programme') const expect = chai.expect // we are using the "expect" style of Chai const ProgrammeFileLoader = require('./../ProgrammeFileLoader') describe('Programme', function () { let programme beforeEach(function (done) { Prog...
JavaScript
0
@@ -77,16 +77,26 @@ gramme') +.Programme %0Aconst e @@ -162,288 +162,44 @@ hai%0A -const ProgrammeFileLoader = require('./../ProgrammeFileLoader')%0A%0Adescribe('Programme', function () %7B%0A let programme%0A%0A beforeEach(function (done) %7B%0A ProgrammeFileLoader.loadProgramme('.', function (it) %7B%...
720492932f584dc8bf91905eef943abdec071182
update Client.js tests
packages/bower-registry-client/test/Client.js
packages/bower-registry-client/test/Client.js
var RegistryClient = require('../Client'), expect = require('chai').expect; describe('RegistryClient', function () { beforeEach(function () { this.client = new RegistryClient(); }); describe('Constructor', function () { describe('instantiating a client', function () { it...
JavaScript
0.000001
@@ -162,37 +162,246 @@ his. -client = new RegistryClient() +uri = 'https://bower.herokuapp.com';%0A this.timeoutVal = 5000;%0A this.client = new RegistryClient();%0A this.conf = %7B%0A search: %5Bthis.uri%5D,%0A register: this.uri,%0A publish: this.uri%0A %7...
7874ea9b1a6399ef89f2a9c4548d5f1de826f254
Allow rotation centers with zeros
src/import/load-costume.js
src/import/load-costume.js
const StringUtil = require('../util/string-util'); const log = require('../util/log'); /** * Initialize a costume from an asset asynchronously. * Do not call this unless there is a renderer attached. * @param {!object} costume - the Scratch costume object. * @property {int} skinId - the ID of the costume's render ...
JavaScript
0.000001
@@ -1418,65 +1418,324 @@ -if (costume.rotationCenterX && costume.rotationCenterY && +// Use provided rotation center and resolution if they are defined. Bitmap resolution%0A // should only ever be 1 or 2.%0A if (typeof costume.rotationCenterX === 'number' && !isNaN(costume.rotationCenterX) &&%0A ...
e98df1a8bcea9f0839103af21a615f975d5cce8e
modify main.js remove ctx param from cloud draw function
HotAirBalloon/main.js
HotAirBalloon/main.js
(function () { // ============ SET PHYSICS RULES ============ let physics = PhysicsSettings(); // =========================================== let canvas = document.getElementById("balloon-canvas"), ctx = canvas.getContext("2d"); let cloudsCanvas = document.getElementById("clouds-canvas"...
JavaScript
0
@@ -2365,25 +2365,16 @@ d.clear( -cloudsCtx );%0A @@ -2462,25 +2462,16 @@ ud.draw( -cloudsCtx );%0A
2c1660b8485f76fe97a42ffad3ced62d3672f919
refactor browser check
lib/client/strategies/index.js
lib/client/strategies/index.js
/** * @name Strategies * @description This module is responsible for the * authentication method strategies. * @module strategies * @private */ import { and, both, has, cond, T, isNil, } from 'ramda' import encryption from './encryption' import login from './login' import api from './ap...
JavaScript
0.000003
@@ -317,24 +317,21 @@ ./api'%0A%0A -function +const isBrows @@ -348,19 +348,17 @@ ent -() %7B%0A i += typeo f -( glob @@ -364,16 +364,17 @@ bal === +' undefine @@ -378,49 +378,9 @@ ined -) %7B%0A return true%0A %7D%0A%0A return false%0A%7D +' %0A%0Afu @@ -1552,16 +1552,82 @@ ions) %7B%0A + if (isNi...
84e7e38cc5aebb1f4b2aa5cb97b16d7fb4f0f085
update default params
src/input/defaultParams.js
src/input/defaultParams.js
export default { accuracy: 0.7, blur: 40, fill: true, stroke: true, strokeWidth: 0.5, lineJoin: 'miter', vertexCount: 700 };
JavaScript
0.000001
@@ -34,17 +34,16 @@ %09blur: 4 -0 ,%0A%09fill: @@ -120,11 +120,27 @@ unt: 700 +,%0A%09threshold: 50 %0A%7D;
0d0c17d669983fb14f67de1af551d434b698f4ca
Remove global stream memoization to fix more tests
packages/ember-htmlbars/lib/hooks/get-root.js
packages/ember-htmlbars/lib/hooks/get-root.js
/** @module ember @submodule ember-htmlbars */ import Ember from "ember-metal/core"; import { isGlobal } from "ember-metal/path_cache"; import SimpleStream from "ember-metal/streams/simple-stream"; export default function getRoot(scope, key) { if (key === 'this') { return [scope.self]; } else if (isGlobal(key...
JavaScript
0
@@ -879,33 +879,8 @@ %0A%7D%0A%0A -var globalStreams = %7B%7D;%0A%0A func @@ -1001,239 +1001,183 @@ %0A%0A -var globalStream = globalStreams%5Bname%5D;%0A%0A if (globalStream === undefined) %7B%0A var global = Ember.lookup%5Bname%5D;%0A globalStream = new SimpleStream(global, name);%0A globalStreams%5Bna...
ee2fe0fb4e88e298af18635ca2db3fe578097e8b
Allow Button to work on react-native-web (#1433)
src/buttons/Button.js
src/buttons/Button.js
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { StyleSheet, View, Text, TouchableNativeFeedback, TouchableOpacity, ActivityIndicator, Platform, } from 'react-native'; import colors from '../config/colors'; import renderNode from '../helpers/renderNode'; import Icon ...
JavaScript
0.000007
@@ -4410,19 +4410,23 @@ OS === ' -ios +android ' ? Touc @@ -4434,41 +4434,41 @@ able -Opacity : TouchableNativeFeedback +NativeFeedback : TouchableOpacity ,%0A
69d7b3f7bc2318424bc2271b2a1ad4c68819c58b
Update test for max-heap
test/_utils/max-heap.js
test/_utils/max-heap.js
const MaxHeap = require('../../src/_utils/max-heap'); const assert = require('assert'); describe('max-heap', function () { describe('#pop()', function () { it('should return 7,6,3,2,1 when inserting 2,3,1,7,6', function () { const maxHeap = new MaxHeap(); maxHeap.insert(2); ...
JavaScript
0
@@ -183,14 +183,19 @@ urn +3 then 7,6, -3, 2,1 @@ -214,17 +214,26 @@ ng 2,3,1 -, + and then 7,6', fu @@ -376,24 +376,68 @@ .insert(1);%0A + assert.equal(maxHeap.pop(), 3);%0A @@ -526,24 +526,24 @@ .pop(), 7);%0A + @@ -578,52 +578,8 @@ 6);%0A - assert.equal(m...
02bb3dec4c0007ae0733aa33419b87ea0a2a1288
Change branchtitle reducer to have default key holding default values.
src/client/scripts/reducers/branchTitles_reducer.js
src/client/scripts/reducers/branchTitles_reducer.js
const intialState = [ { name: 'hotels', query: 'hotel' }, { name: 'points of interest', query: 'point of interest' }, { name: 'museums', query: 'museum' }, { name: 'nightlife', query: 'night club' }, { name: 'restaurants', query: 'restaurant' }, ]; const branchTitles = (state = intialState, action) => { sw...
JavaScript
0
@@ -12,16 +12,27 @@ lState = + %7B default: %5B%0A %7B n @@ -261,16 +261,18 @@ nt' %7D,%0A%5D + %7D ;%0A%0Aconst
dd168d70dbd2c3c77740c7565aeeff8e67c69f73
Add child-src CSP as fallback directive for browsers that don't support worker-src
server.js
server.js
const http = require('http'); const https = require('https'); const fs = require('fs'); const path = require('path'); const express = require('express'); const helmet = require('helmet'); const bodyParser = require('body-parser'); const crypto = require('crypto'); const config = require('./config.server.js'); const b...
JavaScript
0
@@ -1344,24 +1344,59 @@ , 'blob:'%5D,%0A + childSrc: %5B%22'self'%22, 'blob:'%5D,%0A connectS
1951a87d4025876075c618e3f9e4aa5005ae202b
Remove maxWidth and height as breaks maximise on latest runtime
src/config-service.js
src/config-service.js
(function() { const RESIZE_NO_LIMIT = 50000, BITFLUX_STOCK_AMOUNT = 1200, BITFLUX_INITIAL_PROPORTION = 16 * 7 / BITFLUX_STOCK_AMOUNT, // ~4 months CLOSED_SIDEBAR_WIDTH = 50, SIDETAB_TOP_HEIGHT = 50, TEAROUT_WINDOW_OFFSET = [CLOSED_SIDEBAR_WIDTH, SIDETAB_TOP_HEIGHT], ...
JavaScript
0
@@ -2065,95 +2065,8 @@ 10,%0A - maxWidth: RESIZE_NO_LIMIT,%0A maxHeight: RESIZE_NO_LIMIT,%0A
85ccf96922a5a64556353b9b43a053fc564ac2b9
fix missing _debug-section-download.scss
update/index.js
update/index.js
'use strict'; var yeoman = require('yeoman-generator'); var chalk = require('chalk'); var yosay = require('yosay'); var htmlWiring = require('html-wiring'); module.exports = yeoman.generators.Base.extend({ constructor: function () { yeoman.generators.Base.apply(this, arguments); }, init: function () { }, ...
JavaScript
0.001506
@@ -2528,32 +2528,148 @@ spinner.scss');%0A + this.copy('../../app/templates/app/scss/_debug-section-download.scss','./scss/_debug-section-download.scss');%0A this.copy(
316346379547ec731e82ef3f63114e144706404f
Handle redirects in router.
router.js
router.js
var defaultRoutes = { "*page": "page", }; module.exports = Backbone.Router.extend({ initialize: function(options) { options = options || {}; var router = this; if(_.isString(options.root)) { this.root = options.root.split('/').filter(function(val) { return !!val; }); } this.app = options.app; ...
JavaScript
0
@@ -649,16 +649,23 @@ path = +'/' + ( this.roo @@ -695,16 +695,27 @@ r) : arr +).join('/') ;%0A%0A%09%09$.g @@ -725,28 +725,12 @@ SON( -'/' + path.join('/') +path )%0A%09%09 @@ -756,108 +756,8 @@ ) %7B%0A -%09%09%09if(xhr.status === 303) %7B%0A%09%09%09%09return app.router.navigate(xhr.responseJSON.url, true);...
ba648739ca93cf7afe2c9df91bbd7b8f33ebbc83
work on ceylon/ceylon-js#450
runtime-js/callables.js
runtime-js/callables.js
function $JsCallable(callable,parms,targs) { if (callable.getT$all === undefined) { callable.getT$all=Callable.getT$all; } var set_meta = callable.$crtmm$ === undefined; if (set_meta) { callable.$crtmm$={ps:[],mod:$CCMM$,d:['$','Callable']}; if (parms !== undefined) { ...
JavaScript
0
@@ -764,16 +764,22 @@ able(o,f +,targs ) %7B%0A if @@ -904,16 +904,17 @@ length== += 1 && is$ @@ -992,19 +992,452 @@ ;%0A -var +//If f has only 1 param and it's not sequenced, get its type%0A var a1t=mm && mm.ps && mm.ps.length===1 && mm.ps%5B0%5D.seq===undefined ? mm.ps%5B0%5D.$t : undefined;%0A ...
888c0d22cb3cf057fc75f4f9fb877e5e4170d4eb
add windows to old-version-tabs.js
install/old-version-tabs.js
install/old-version-tabs.js
import React from 'react'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import Box from '@material-ui/core/Box'; import CodeBlock from '@src/co...
JavaScript
0
@@ -453,16 +453,80 @@ ne.svg'; +%0Aimport WindowsIcon from '@src/assets/icons/windows.inline.svg'; %0A%0Afuncti @@ -1963,32 +1963,158 @@ m: 'none' %7D%7D /%3E%0A + %3CTab icon=%7B%3CWindowsIcon /%3E%7D label=%22Windows%22 %7B...a11yProps(1)%7D style=%7B%7B minWidth: %2210%25%22, textTransform: 'none' %7D%7D...
430ecde27e749a093c52872b0f93b62fd499bace
Add completion listeners earlier so we don't miss sync calls
packages/chiffchaff-concat/src/index.js
packages/chiffchaff-concat/src/index.js
'use strict' import MultiTask from 'chiffchaff-multi' import PipeTask from 'chiffchaff-pipe' import defaults from 'defaults' import EventRegistry from 'event-registry' const toTaskIterator = (sources, destination) => (function * () { for (const source of sources) { yield new PipeTask(source, destination, {end: ...
JavaScript
0
@@ -829,171 +829,22 @@ -this._tasks = toTaskIterator(this._sources, this._destination)%0A return super._start()%0A .then(() =%3E this._awaitFinish())%0A %7D%0A%0A _awaitFinish () %7B%0A return +const ending = new @@ -1027,17 +1027,129 @@ ct)%0A - +%7D)%0A this._tasks = toTaskIterator(this....