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
8547ddb4480daf2df11402995d56997545f324ea
add indexes to fix getIncognitoProfile() query perf
migrations/20200514164200-add-collective-index-for-incognito-query.js
migrations/20200514164200-add-collective-index-for-incognito-query.js
JavaScript
0
@@ -0,0 +1,422 @@ +'use strict';%0A%0Amodule.exports = %7B%0A up: async (queryInterface, Sequelize) =%3E %7B%0A // Enhance User.prototype.getIncognitoProfile() performance%0A await queryInterface.sequelize.query(%60%0A CREATE INDEX IF NOT EXISTS CreatedByUserId ON %22public%22.%22Collectives%22(%22CreatedBy...
76c63ab614e1027aafd20dba493f33a698f12aae
Fix bugs
src/faiash.js
src/faiash.js
JavaScript
0.000004
@@ -0,0 +1,2889 @@ +var Faiash = (function() %7B%0A /**%0A * Faiash Core%0A *%0A * @author Rakume Hayashi%3Ci@fake.moe%3E%0A */%0A%0A // Define the Faiash%0A var Faiash = function(selector, context) %7B%0A return new Faiash.ise.init(selector, context);%0A %7D;%0A%0A Faiash.ise = Fa...
045dcee1a3e46a693c299e5801813af5c71e3e50
Create data helper
gdbase-build/helpers/data.js
gdbase-build/helpers/data.js
JavaScript
0.000002
@@ -0,0 +1,1492 @@ +//Import dependencies%0Avar path = require('path');%0A%0A//Import config%0Avar Config = require('../../gdbase-config.json');%0A%0A//Function to replace the values%0Afunction ReplaceValues(file, values)%0A%7B%0A%09//Read all the values%0A%09for(var key in values)%0A%09%7B%0A%09%09//Replace the value%...
311170922ae3916172579e4e9fa27ce8531f6c15
Add middleware info to announcement.
lib/service.js
lib/service.js
/** * Module dependencies. */ var zmq = require('zmq'); var path = require('path'); var Asset = require('./asset'); var Router = require('./router'); var extend = require('ampersand-class-extend'); var express = require('express'); var toArray = require('lodash.toarray'); var getFnArgs = require('./helper').getFnArg...
JavaScript
0
@@ -5120,24 +5120,95 @@ etRoutes();%0A + self.announcement.middleware = self.router.getMiddlewares();%0A %7D%0A%0A
f0893dd01f1f704ca45d84c26a4283b062e1ce66
Add the operation to get reports by bounding box
lib/service.js
lib/service.js
module.exports = function(options, callback) { var fs = require('fs'), restify = require('restify'), util = require('util'); var serverOptions = { name: 'queixinhas-API', version: '0.0.1' }; var server = restify.createServer(serverOptions); server.use(restify.acceptParser(server.accept...
JavaScript
0
@@ -1462,32 +1462,427 @@ %0A %7D);%0A %7D);%0A%0A + /**%0A * GET /reports?bbox=left,bottom,right,top%0A */%0A server.get('/reports?:bbox', function(req, res, next) %7B%0A var bbox = req.params.bbox.split(',');%0A bbox = %7B%0A left: Number(bbox%5B0%5D),%0A bottom: Number(bbox%5B1%5D),%0A ...
024881f6bd01cfe29d7a08df187bb61636bbfdc7
handle Tis and N1mi cases correctly. making case sensitive throughout
lib/staging.js
lib/staging.js
const lookup = require('./staging_lookup'); const Lang = require('lodash/lang'); // Computes the prognostic stage of breast cancer given T, N, M. // Uses the 7th staging edition, see: // https://cancerstaging.org/references-tools/quickreferences/Documents/BreastMedium.pdf exports.breastCancerPrognosticStage = (t, n, m...
JavaScript
0.000001
@@ -849,30 +849,16 @@ String() -.toUpperCase() );%0A con @@ -918,30 +918,16 @@ String() -.toUpperCase() );%0A%0A if
bf226ca0754f2a8ad41ad3fb18eb5443f91ec485
Use const
lib/sylkrtc.js
lib/sylkrtc.js
'use strict'; import rtcninja from 'rtcninja'; import { Connection } from './connection'; // Public API function createConnection(options = {}) { if (!rtcninja.hasWebRTC()) { throw new Error('WebRTC support not detected'); } let conn = new Connection(options); conn._initialize(); return...
JavaScript
0.000004
@@ -247,10 +247,12 @@ -le +cons t co
2a5bf5822ed59058d4fb47a9d80d3116341b0bba
Fix download url generation
lib/updater.js
lib/updater.js
'use strict'; var uuid = require('node-uuid') , reader = require('./apkReader'); var HOUR = 3600000; var androidUpdate = {} , expressApp , routePfx , links = []; androidUpdate.updater = function (req, res){ var name = req.body.pkgname , version = req.body.version , last = reader.last(name); if(l...
JavaScript
0
@@ -241,22 +241,22 @@ .pkgname +, %0A -, version @@ -278,14 +278,14 @@ sion +, %0A -, las @@ -305,16 +305,26 @@ st(name) +,%0A key ;%0A if(l @@ -355,16 +355,48 @@ rsion)%7B%0A + key = name + %22-%22 + version;%0A %09if(!l @@ -400,20 +400,19 @@ (!links%5B -name +key %5D)%7B%0A %09%09 @@ ...
6ade4a0db27876015edbda7b77d8131abb63d290
Fix for invalid updates path in some situations, fixes #224
lib/updates.js
lib/updates.js
var _ = require('underscore'), fs = require('fs'), path = require('path'), async = require('async'), semver = require('semver'), keystone = require('../'), mongoose = keystone.mongoose, utils = require('keystone-utils'); var _dashes_ = '------------------------------------------------'; // Update Schema - defi...
JavaScript
0
@@ -816,43 +816,44 @@ s', -path.join(process.cwd(), ' +'updates');%0A%09console.log( updates -') +Path );%0A%09
77e1921ffbcc67c05cf7a978dda00ab34becf7de
Update files
lib/visitor.js
lib/visitor.js
/** * @module visitor * @license MIT * @version 2018/01/23 */ 'use strict'; const fs = require('fs'); const utils = require('./utils'); const gutil = require('@nuintun/gulp-util'); /** * @class Visitor */ class Visitor { /** * @constructor * @param {Object} options */ constructor(options) { th...
JavaScript
0
@@ -1588,21 +1588,20 @@ form = ( -modul +valu e, next) @@ -1598,32 +1598,65 @@ lue, next) =%3E %7B%0A + const module = value%5B1%5D;%0A const pa
03a37ca06a8c78b52369398beecc40dc8d4c2dd4
Add color stripping utility
render.js
render.js
'use strict'; var color = require('ansi-color').set; function pad(c, s, width) { while (s.length < width) s = c + s; return s; } function byte2hex(b) { return pad('0', b.toString(16), 2); } function byte2char(c) { if (c > 0x1f && c < 0x7f) { return String.fromCharCode(c); } else { ...
JavaScript
0
@@ -612,16 +612,282 @@ %7D%0A%7D%0A%0A +// istanbul ignore next%0Afunction stripColor(str) %7B%0A while (true) %7B%0A var i = str.indexOf('%5Cx1b%5B');%0A if (i %3C 0) return str;%0A var j = str.indexOf('m', i);%0A if (j %3C 0) return str;%0A str = str.slice(0, i) + str.slice(j...
b5818a8b07c26a302d9d7ae8f8756de75ed839cd
Fix context undefined
render.js
render.js
const co = require('co') const _ = require('lodash') module.exports = function(nunjucks, opts) { opts = opts || {} opts.ext = opts.ext || '' return co.wrap(function*(ctx, next) { ctx.render = function(view, context) { return new Promise(function(resolve, reject) { _.merge(context, ctx.state) nunj...
JavaScript
0.999999
@@ -300,20 +300,16 @@ .state)%0A -%09%09%09%09 %0A%09%09%09%09nun @@ -337,23 +337,49 @@ ts.ext, -context +_.merge(context %7C%7C %7B%7D, ctx.state) , functi
3995fa359e5bfbc460f83437903c991c7e89cf9b
Fix syntax error
lib/wendell.js
lib/wendell.js
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* * Copyright (c) 2015, Joyent, Inc. */ // XXX - make logs var mod_bunyan = require('bunyan'); var mod_vst...
JavaScript
0.000585
@@ -1155,25 +1155,24 @@ Stream(opts) -, %0A %5D%7D);%0A%0A
5f0a25371e2e0e7c1afdc22dd4551014097c4896
change formatting of report
report.js
report.js
#!/usr/bin/env node var vsprintf = require("sprintf-js").vsprintf, stats = require('stats-lite'), _ = require('underscore'), db = require('./db'), data = {}, contributorTypes; db.select('office', 'contributions.committee_name', 'candidate_name') .count('* as contributions') .sum('amount as...
JavaScript
0.000002
@@ -1315,28 +1315,8 @@ = ' - Office Cand @@ -1336,16 +1336,16 @@ ' +%0A + @@ -1475,14 +1475,8 @@ = ' -%2518s %25-20 @@ -1979,81 +1979,8 @@ = %5B%0A - c.office === prevOffice ? '' : c.office,%0A @@ -2740,16 +2740,16 @@ th - 1%5D%0A - @@...
97fd6b361e22514e46f27736718cc45026ee4fea
Update mailer.js
libs/mailer.js
libs/mailer.js
var nodemailer = require("nodemailer"); // create reusable transport method (opens pool of SMTP connections) var smtpTransport = nodemailer.createTransport({ service: "Gmail", auth: { user: "reporttool.server@gmail.com", pass: "201420152016" } }); // setup e-mail data with unicode symbols ...
JavaScript
0.000001
@@ -421,59 +421,8 @@ o: %22 -siarhei_hladkou@epam.com, aliaksandr_basau@epam.com %22, / @@ -1193,8 +1193,9 @@ %7D);%0A%7D; +%0A
a2a86e7f6cf627d32dd6753510670272896779e1
use scoped package in 13-outdated
problems/13-outdated.js
problems/13-outdated.js
var reg = require('../lib/registry.js') var shop = require('../') var fs = require('fs') var path = require('path') exports.problem = function () { if (!shop.cwd()) return '' // If it hasn't already been done, add a new version of once. var once = require(shop.datadir + '/registry/once/body.json') if (on...
JavaScript
0
@@ -239,20 +239,29 @@ of -once +@linclark/pkg .%0A var once @@ -256,20 +256,19 @@ .%0A var -once +pkg = requi @@ -296,20 +296,29 @@ egistry/ -once +@linclark/pkg /body.js @@ -328,20 +328,19 @@ )%0A if ( -once +pkg %5B'dist-t @@ -363,11 +363,11 @@ '1. -3.0 +0.2 ') %7B @@ -1244,20 +1244,29 @@ verify...
8e225ec748afce2d516656cd37124f0eae50e748
Fix Prolific TCP test.
prolific.tcp/t/tcp.t.js
prolific.tcp/t/tcp.t.js
require('proof')(1, require('cadence')(prove)) function prove (async, assert) { var tcp = require('../prolific.tcp.bin') var path = require('path') var worker = path.join(__dirname, 'worker.js') async(function () { var io = tcp({}, [ '--log', '127.0.0.1:8088', 'node', worker ], {}, async()) ...
JavaScript
0.000001
@@ -103,25 +103,8 @@ ('.. -/prolific.tcp.bin ')%0A
de76f2325f4b191dca885bcbdd096aa8260125a0
Fix typo in about page (#26)
frontend/src/views/About/About.js
frontend/src/views/About/About.js
/* * Copyright (c) 2017, 2018 RockNSM. * * This file is part of RockNSM * (see http://rocknsm.io). * * 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/licens...
JavaScript
0
@@ -1152,11 +1152,8 @@ des -an a fr @@ -1169,17 +1169,16 @@ o the ex -e cellent
f35f90cf04119cf79d57ffff81f58b78a104632a
Update jest.config.js
generators/test/templates/jest.config.js
generators/test/templates/jest.config.js
module.exports = { testPathIgnorePatterns: [ '/node_modules/', '/lib/', '/utils/' ], collectCoverage: true, collectCoverageFrom: [ 'src/**/*.js', '!**/node_modules/**', '!src/bin/*.js' ], coverageDirectory: 'coverage', coverageReporters: [ 'html', 'text' ] };
JavaScript
0.000006
@@ -190,16 +190,37 @@ es/**',%0A + '!**/public/**',%0A '!sr
2df205b2dc3c4dbf73182d976adf0c2a285d61a6
Fix some lint errors.
google-chrome-domain-swap/domain-sets.js
google-chrome-domain-swap/domain-sets.js
/** * A set of domains, with a name. */ var DomainSet = function (name, domains) { this.name = name || ""; this.domains = []; /** * Return a normal form for a domain, allows us to easily search. */ this._normalizeDomain = function (domain) { return domain.toLowerCase().trim(); }; /** * Add a domain to...
JavaScript
0.000009
@@ -78,16 +78,25 @@ ains) %7B%0A +%09var i;%0A%0A %09this.na @@ -948,13 +948,8 @@ for( - var i in @@ -956,21 +956,59 @@ domains + ) %7B%0A%09%09%09if( domains.hasOwnProperty(i) ) %7B%0A +%09 %09%09%09this. @@ -1024,16 +1024,21 @@ ns%5Bi%5D);%0A +%09%09%09%7D%0A %09%09%7D%0A%09%7D%0A%0A
fe2e75ebbf1a178e1c0a7f848dfe956cbd25c3ed
fix typo
src/async/series-reject.js
src/async/series-reject.js
function reject (array, iterator, callback) { var idx = 0 var len = array.length var results = [] function done (err, res) { var i = idx++ if (!res) results.push(array[i]) if (err) return callback(err, results) if (idx < len) return iter.call(this) return callback(err, results) } fun...
JavaScript
0.999991
@@ -345,16 +345,18 @@ ator(arr +ay %5Bidx%5D, i
128909b6063c82117e2b92ce638a8cb537f19a03
add download button
siad/webpages/js/main.js
siad/webpages/js/main.js
function safeSetElem(field, value) { var elem = document.getElementById(field) if (elem != null) { elem.innerHTML = value } } function safeSetValue(field, value) { var elem = document.getElementById(field) if (elem != null) { elem.defaultValue = value } } function updatePage() { var resp = httpGet("/json/s...
JavaScript
0
@@ -588,16 +588,28 @@ rHTML += + '%3Clabel%3E' + stats.R @@ -621,16 +621,111 @@ Files%5Bs%5D + + '%3C/label%3E%3Cbutton onclick=%22downloadFile(%5C'' + stats.RenterFiles%5Bs%5D + '%5C')%22%3EDownload%3C/button%3E' ;%0A%09%09%7D%0A%09%7D @@ -4397,28 +4397,104 @@ %09responseBoxGet(request);%0A%7D%0A +%0Afunction do...
c668dcdfb862550f0752e710eeecce683df502ef
Update config.js
public/config/config.js
public/config/config.js
var appconfig = { database: { host: '192.168.10.249', port: '8086', user: 'root', password: 'root' } };
JavaScript
0
@@ -48,14 +48,11 @@ 168. -10.249 +x.y ',%0A @@ -103,20 +103,24 @@ user: ' -root +username ',%0A @@ -145,12 +145,16 @@ d: ' -root +password '%0A
0ad87b1299ca66ba64607aa6ce52cf704f68081d
update numPosts
src/base/conf/site.conf.js
src/base/conf/site.conf.js
import env from '../shared/Env' const Author = 'Pablo Magaz' const SiteTitle = Author const SiteDescription = `Sitio web de ${ Author }` const BlogTitle = 'El Blog Isomórfico' const BlogDescription = `${ BlogTitle }: JavaScript, JavaScript y más JavaScript.` const KeyWords = 'javascript, react, redux, rxjs, immutable...
JavaScript
0
@@ -420,17 +420,17 @@ osts = 1 -0 +5 %0Aconst b
7f2fcc47a19eb67fc04be935385e07a6d6fcabe2
Send customResolveValue to section
view/_business-process-documents-and-data.js
view/_business-process-documents-and-data.js
// Documents list and user data 'use strict'; var camelToHyphen = require('es5-ext/string/#/camel-to-hyphen') , _ = require('mano').i18n.bind('User Submitted') , generateSections = require('./components/generate-sections') , _d = _; var drawDocumentsPart = function (target, urlPrefix) { retu...
JavaScript
0
@@ -4819,16 +4819,69 @@ xt: this +,%0A%09%09%09%09%09customResolveValue: options.customResolveValue %7D)%0A%09%09)%0A
977508f10bdbd8d9e29854e9cb8557fa2197db21
Update themes.js
themes.js
themes.js
module.exports = { themes: { 1: { id: 1, name: "Jakub", template: "../views/index.html" }, 2: { id: 2, name: "Jano", template: "../views/index2.html" }, 3: { id: 3, name: "Matúš", template: "../views/index3.html" } } };
JavaScript
0
@@ -71,11 +71,10 @@ %22Ja -kub +no %22, t @@ -130,36 +130,36 @@ %7B id: 2, name: %22 -Jano +Igor %22, template: %22..
5fbc745618ed9a9487515af407ac2438160df3c8
add newline to EOF
config/firebase/rules.test.js
config/firebase/rules.test.js
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
JavaScript
0.000005
@@ -7073,16 +7073,17 @@ );%0A %7D);%0A%7D); +%0A
30e18eeb178b085b41fcbc386026c49f7ec62dd4
Add CommentList to CommentBox
public/js/components.js
public/js/components.js
var CommentList = React.createClass({ render function() { return( <div className="commentList"> Hello, world! I am a react js comment list component! </div> ); } }); var CommentBox = React.createClass({ render: function(){ return( <div className="commentBox"> Hello,...
JavaScript
0
@@ -311,61 +311,49 @@ -Hello, world! I am an react-js comment box component! +%3Ch1%3EComments%3C/h1%3E%0A %3CCommentList /%3E %0A
497343ee454497fc7fb3122694efac9db46689ba
fix linting problems
tests/dummy/app/controllers/application.js
tests/dummy/app/controllers/application.js
// BEGIN-SNIPPET marker-cluster.js import Controller from '@ember/controller'; export default class ApplicationController extends Controller { lat = 40.713473; lng = -74.007038; zoom = 18; markers = [ { title: 'TD Bank', description: '258 Broadway, New York, NY 10007, EUA', location: [40...
JavaScript
0.000003
@@ -333,16 +333,17 @@ .007068%5D +, %0A %7D,%0A @@ -454,16 +454,17 @@ .006707%5D +, %0A %7D,%0A @@ -595,22 +595,24 @@ .007386%5D +, %0A %7D +, %0A %5D;%0A%7D%0A
a4f401be4c9d27a9c2636ca79ef36a3e0b6dca42
support equal parallels.
geo/projection/conic-conformal.js
geo/projection/conic-conformal.js
// @import parallel2 function conicConformal(φ0, φ1) { var cosφ0 = Math.cos(φ0), t = function(φ) { return Math.tan(π / 4 + φ / 2); }, n = Math.log(cosφ0 / Math.cos(φ1)) / Math.log(t(φ1) / t(φ0)), F = cosφ0 * Math.pow(t(φ0), n) / n; function forward(λ, φ) { var ρ = Math.abs(Math.abs(φ) - π / ...
JavaScript
0
@@ -145,16 +145,43 @@ n = + %CF%860 === %CF%861 ? Math.sin(%CF%860) : Math.lo
827192d7362c367358536aa41e4923aa1f6f706c
solve problem with las batch too small
public/js/justifydiv.js
public/js/justifydiv.js
angular.module('justifydiv', []).directive('ngJustifyDiv', ['$window', '$timeout', 'linearPartition', function($window, $timeout, linearPartition) { this.containerHeight = 0; this.checkForChanges = function(el) { if ($(el).height() != containerHeight) { this.containerHeight = $(el).height();...
JavaScript
0.000004
@@ -1742,16 +1742,62 @@ s) + 1)%0A + %7C%7C ret.length == 0) %7B%0A @@ -1864,54 +1864,8 @@ 0;%0A - %7C%7C ret.length == 0) %7B%0A
fcab0439f54841e3f8f2ebbb9321b2d6ce69115b
delete log
public/js/repository.js
public/js/repository.js
exports.saveConversation = function(userID,conversationID,input,output) { var Cloudant = require('cloudant'); var username = process.env.cloudant_username; var password = process.env.cloudant_password; // Initialize the library with my account. var cloudant = Cloudant({account:username, password:password});...
JavaScript
0.000003
@@ -906,125 +906,8 @@ %7D%0A -%09%09%09%09 console.log('*****************You have inserted the conversation.*****************');%0A%09%09%09%09 console.log(body);%0A %09%09%09%09 @@ -914,16 +914,16 @@ %7D);%09%09%09%09%0A + %09%09%09%7D%0A%09%09%09 @@ -1009,40 +1009,8 @@ %0A -%09%09%09%09console.log(%22Data...
4942d353ece8d3510c8edc3648a2af91d14e15c0
Add icons to search page
assets/js/theme/search.js
assets/js/theme/search.js
import PageManager from '../page-manager'; import FacetedSearch from './common/faceted-search'; import collapsible from './common/collapsible'; import 'vakata/jstree'; import nod from './common/nod'; export default class Search extends PageManager { constructor() { super(); } formatCategoryTreeFor...
JavaScript
0
@@ -3814,20 +3814,19 @@ icons: -fals +tru e,%0A
87df7fc3c68373598efaa8c31ea1c3b7fd6d0ca2
Update _input-range-slider.js
src/Kunstmaan/AdminBundle/Resources/ui/js/_input-range-slider.js
src/Kunstmaan/AdminBundle/Resources/ui/js/_input-range-slider.js
var kunstmaanbundles = kunstmaanbundles || {}; kunstmaanbundles.rangeslider = (function(window, undefined) { var init, reInit, initRangePercentage; init = reInit = function() { $(".range").find('input').change(function() { var $el = $(this); initRangePercentage($el); ...
JavaScript
0
@@ -412,16 +412,23 @@ $ +el.find ('.range
28f2d9ae7cf9c767f6f556cea798d0ccde261b81
fix keymodal close behaviour
assets/js/ui/key-modal.js
assets/js/ui/key-modal.js
(function (window, Cryptoloji, $, undefined) { var keyModal = null Cryptoloji.UI.KeyModal = function createKeyModal (selector) { if (!keyModal) keyModal = new KeyModal(selector) return keyModal } function KeyModal (selector) { var self = this self.mainSelector = selector console....
JavaScript
0
@@ -932,24 +932,73 @@ Selection()%0A + $('body').removeClass('main_key_modal-open')%0A return s @@ -2311,61 +2311,8 @@ e()%0A - $('body').removeClass('main_key_modal-open')%0A @@ -2932,61 +2932,8 @@ %7D%0A - $('body').removeClass('main_key_modal-open')%0A
a6a417bf391c2f9ea0dba98ed77c551796b12d90
Implement filter()
dom/traverse.js
dom/traverse.js
import "../polyfill/dom"; import {isElement} from "./utils"; /** * Returns whether the given element is - in fact - an HTMLElement and * it matches the optional selector * * @param {Node|HTMLElement} element * @param {?string} selector * @return {boolean} */ function elementMatches (element, selector) { re...
JavaScript
0.000001
@@ -938,24 +938,267 @@ ector);%0A%7D%0A%0A%0A +/**%0A * Filters a list of DOM elements%0A *%0A * @param %7BHTMLElement%5B%5D%7D list%0A * @param %7Bstring%7D selector%0A * @return %7BHTMLElement%5B%5D%7D%0A */%0Aexport function filter (list, selector)%0A%7B%0A return list.filter(%0A (e) =%3E e.matches(select...
874b8b23a9a4b9be2abebd0fdeed4e6323a818f6
update benchmark
benchmark/index.js
benchmark/index.js
var postcss = require('postcss'); var stylis = require('stylis'); var csstree = require('css-tree'); var stylus = require('stylus'); var test = ` .foo:before { content: ".hello {world} ' " } .container { display: flex; padding-bottom: 80px; } .row { flex: 1; } .container > .welcome, .wrap { max-width: 600px; width: ...
JavaScript
0.000001
@@ -1211,16 +1211,24 @@ );%0A%0A// * + denotes without @@ -1250,16 +1250,20 @@ spacing%0A +// %0A // 4ms s
8fd323ee28cb3025a0ac529ae53868d781873d8e
fix rendering results and add package and version to results
public/result-viewer.js
public/result-viewer.js
var ResultViewer = React.createClass({ componentDidMount: function() { }, getInitialState: function() { return { results: [] } }, render: function() { var style = { height: '100%', background: 'rgba(240,240,240,0.15)' ...
JavaScript
0
@@ -390,18 +390,16 @@ index)%7B%0A -%0A%0A @@ -406,545 +406,112 @@ -console.log('perm',result.perm)%0A%0A var perm = result.perm.map(function(p)%7B%0A%0A console.log('p.views',p.views)%0A var views = p.views.map(function(v)%7B%0A%0A%0A var vvs...
bb151119f381b9c78dc7b5c2fa416bda7371a98c
reword to be more meaningful
titles.js
titles.js
/** * Created by Paweł Krawczyk on 02/04/15. * https://ipsec.pl/ */ "use strict"; /** @const */ var /** string */ msg1 = ['Shannon entropy estimate calculated over passphrase words as L*log2(N)', ' where L is number of words in passphrase and N is the size of the dictionary.', ' This reflects the complexity...
JavaScript
0.998776
@@ -1761,148 +1761,130 @@ = %5B' -This is an estimated order of magnitude of time needed to crack',%0A ' this passphrase using dictionary attack at global Bitcoin hash rate. +Hypothetically, if someone could apply current Bitcoin hash power',%0A ' how long would it take to crack this passphrase? '%0A%5D;
5758f45b7954b1ca25ca3c4f95faf86f66c62594
Update videos.js
demo/demoApp/videos.js
demo/demoApp/videos.js
(function () { "use strict"; window.App.videos = [ { title: 'Великий уравнитель', url: 'http://fs.to/get/dl/6jw62sxqdzrlo1ct1x3tvoyjq.0.521872670.2185543202.1432977047/The+Equalizer.2014.BluRay.1080p.mkv', type: 'vod' }, { title: 'Black.Sa...
JavaScript
0
@@ -87,26 +87,13 @@ e: ' -%D0%92%D0%B5%D0%BB%D0%B8%D0%BA%D0%B8%D0%B9 %D1%83%D1%80%D0%B0%D0%B2%D0%BD%D0%B8%D1%82%D0%B5%D0%BB%D1%8C +%D0%9A%D0%B8%D0%B1%D0%B5%D1%80 ',%0A @@ -142,24 +142,24 @@ sxqd -zrlo1ct1x3tvoyjq +yefncm0e0x0ervue .0.5 @@ -187,40 +187,43 @@ 4329 -77047/The+Equalizer.2014 +97668/Blackhat.2015.D.10...
59d8d454c827b774b70f78f1dec3851318dfb906
handle \r\n
toJSON.js
toJSON.js
var es = require('event-stream') var JSONStream = require('JSONStream') process.stdin .pipe(es.split()) .pipe(JSONStream.stringify()) .pipe(process.stdout)
JavaScript
0.000006
@@ -100,16 +100,23 @@ s.split( +/%5Cr?%5Cn/ ))%0A .pi
4137e4727a48d0b7415fd52bbad8d72d25a40c5a
Fix unrelated lint exception
tests/unit/components/sl-translate-test.js
tests/unit/components/sl-translate-test.js
import Ember from 'ember'; import { moduleForComponent, test } from 'ember-qunit'; import sinon from 'sinon'; const translateService = Ember.Object.create({ translateKey( data ) { this.set( 'key', data.key ); this.set( 'pluralKey', data.pluralKey ); this.set( 'pluralCount', data.pluralCount...
JavaScript
0.000409
@@ -4644,20 +4644,21 @@ essfully'%0A );%0A%7D); +%0A
3ba860b8dc9b0d401576b8843775b64203d01b45
version 1.0
jquery.plugin.fingerpointer.js
jquery.plugin.fingerpointer.js
/* * Fingerpointer jQuery plugin * version 0.5 * author: Damien Antipa * http://github.com/dantipa/jquery.fingerpointer */ (function( $ ){ var isTouch = 'ontouchstart' in window; /** * * @param types * @param selector * @param data * @param fn * @param one * @return {*} ...
JavaScript
0.000002
@@ -42,11 +42,11 @@ ion -0.5 +1.0 %0A *
4e2f0f7b4299170a7dcd1c8c217ba94c6a55cd17
update copyright dates from daily grunt work
js/buttons/ResetAllButtonIO.js
js/buttons/ResetAllButtonIO.js
// Copyright 2017-2019, University of Colorado Boulder /** * IO type for RoundMomentaryButton * * @author Sam Reid (PhET Interactive Simulations) * @author Andrew Adare (PhET Interactive Simulations) */ define( require => { 'use strict'; // modules const ObjectIO = require( 'TANDEM/types/ObjectIO' ); con...
JavaScript
0
@@ -10,13 +10,8 @@ ght -2017- 2019
2681a51fd6ccf77ab0e78067d7784b5c9dc7a271
Add a fix for baseURL / suffix that is present in the 1.5.1a1 release on PyPi?
tinymce/templates/tinymce/tiny_mce_gzip.js
tinymce/templates/tinymce/tiny_mce_gzip.js
/** * Based on "TinyMCE Compressor PHP" from MoxieCode. * * http://tinymce.moxiecode.com/ * * Copyright (c) 2008 Jason Davies * Licensed under the terms of the MIT License (see LICENSE.txt) * * Usage: copy this file into the same directory as tiny_mce.js and change * settings.page_name below to match ...
JavaScript
0
@@ -3087,33 +3087,100 @@ ndow -;%0D%0A%0D%0A%09%09// Evaluate script +, t = this;%0D%0A%09%09window.tinyMCEPreInit = %7B%22base%22: t.baseURL,%0D%0A%09%09%09%22suffix%22: t.settings.suffix%7D; %0D%0A%09%09 @@ -3351,12 +3351,14 @@ IE%0D%0A%09%7D%0D%0A +%0D%0A %7D;%0D%0A
ce1c317d13a3b730508bd9694ba5098ec7d3f2b2
Fix gzip compression settings.
server.js
server.js
(function() { 'use strict'; /*jshint node:true*/ var express = require('express'); var compression = require('compression'); var url = require('url'); var request = require('request'); var yargs = require('yargs').options({ 'port' : { 'default' : 8080, 'desc...
JavaScript
0.000001
@@ -1723,412 +1723,144 @@ app. -get('*.b3dm', function(req, res, next) %7B%0A res.header('Content-Encoding', 'gzip');%0A next();%0A %7D);%0A app.get('*.pnts', function(req, res, next) %7B%0A res.header('Content-Encoding', 'gzip');%0A next();%0A %7D);%0A app.get('*.i3dm', functio...
eb4fe789deead3b87d8f71090a220fb1eca29d6e
Set cookie expiration to 1hr, add other options
server.js
server.js
var express = require('express'); var path = require('path'); var logger = require('morgan'); var compression = require('compression'); var methodOverride = require('method-override'); var session = require('express-session'); var flash = require('express-flash'); var bodyParser = require('body-parser'); var expressVal...
JavaScript
0
@@ -1788,24 +1788,171 @@ alized: true +,%0A%0A cookie: %7B%0A // secure: true,%0A // httpOnly: true,%0A // domain: 'example.com',%0A // path: 'foo/bar',%0A maxAge: 3600000 // 1 hour%0A %7D%0A %0A%7D));%0A%0A// Us
f57fd571588c1a850341c94cd222502e75df48b8
generate random encryption keys/secrets
server.js
server.js
(function () { "use strict"; var _ = require('underscore'); // TODO create random secrets for cryptKey and jwtSecret var config = require('./keepass-node-config'); config = _.extend({ databaseDir: __dirname + '/local/', publicResourcesDir: __dirname + '/public/', ...
JavaScript
0.999989
@@ -62,65 +62,160 @@ ');%0A -%0A// TODO create random secrets for cryptKey and jwtSecret + var crypto = require('crypto');%0A%0A var cryptKey = crypto.randomBytes(256).toString('hex');%0A var jwtSecret = crypto.randomBytes(256).toString('hex');%0A %0A v @@ -443,35 +443,16 @@ ey: -'TODO__shhhhhhared- cryptKey ...
150d589d4239752d91615c88de1cf05bbbfd6dc6
Allow toggleShow to be given the final state
log/LogBase.js
log/LogBase.js
// See Purple/license.txt for Google BSD license // Copyright 2011 Google, Inc. johnjbarton@johnjbarton.com define(['lib/Base', 'lib/part', 'log/SparseArray', 'lib/q/q', 'lib/Assembly'], function ( Base, PurplePart, SparseArray, Q, Assembly) { var LogBase = Base.extend(PurplePart.prototype)...
JavaScript
0.000002
@@ -1791,32 +1791,43 @@ Show = function( +targetState ) %7B%0A var show @@ -1858,24 +1858,81 @@ ow;%0A if ( + ((typeof targetState === 'boolean') && !targetState) %7C%7C this.showing
c90b04a2cf3adc4060ada7b81c7cfbb092a93750
Corrige bug Wannabe
server.js
server.js
var express = require('express'); var app = express(); app.set('port', (process.env.PORT || 5000)); app.use(express.static(__dirname + '/public')); // views is directory for all template files app.set('views', __dirname + '/views'); app.set('view engine', 'ejs'); var plans = [ { id: 'droid', title: 'Paco...
JavaScript
0.000001
@@ -570,16 +570,17 @@ m..'%0A %7D +, %0A %7B%0A
352dcca0a1df1f1d780962595bea84f9978c8b11
add missing tsconfig in jest config
jest.config.js
jest.config.js
module.exports = { collectCoverageFrom: ['src/**/*.ts'], testEnvironment: 'node', transform: { '^.+\\.[j|t]s$': 'ts-jest' }, };
JavaScript
0.000005
@@ -52,16 +52,77 @@ *.ts'%5D,%0A + globals: %7B 'ts-jest': %7B tsConfig: 'tsconfig.all.json' %7D %7D,%0A testEn
ddbc7881bbbcf182aca3dd1b3664983d9fe245ab
Fix coverage
jest.config.js
jest.config.js
module.exports = { roots: ["<rootDir>/src"], transform: { "^.+\\.tsx?$": "ts-jest" }, testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$", testPathIgnorePatterns: ["<rootDir>/tests"], moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"] };
JavaScript
0.000005
@@ -261,12 +261,52 @@ %22node%22%5D +,%0A collectCoverageFrom: %5B%22src/**/*.ts%22%5D %0A%7D;%0A
0d63b660ed25ebb9998d6dcd318097e220e99f7b
Add lcov type.
jest.config.js
jest.config.js
module.exports = { transformIgnorePatterns: [ 'node_modules' ], collectCoverage: true, coverageDirectory: './coverage', coverageReporters: [ 'html', 'text-summary' ], collectCoverageFrom: [ '**/index.js', '!**/node_modules/**', '!**/test/**', ...
JavaScript
0
@@ -158,24 +158,40 @@ eporters: %5B%0A + 'lcov',%0A 'htm @@ -216,16 +216,17 @@ summary' +, %0A %5D,%0A
0ec0577f48e16b4b1e8c287950d1c351651fc74c
update gulp release command
_dev/gulpfile.js
_dev/gulpfile.js
var fs = require('fs'); var gulp = require('gulp'); var closure = require('gulp-closurecompiler'); var concat = require('gulp-concat'); var plumber = require('gulp-plumber'); var notify = require('gulp-notify'); var browser = require('browser-sync'); gulp.task('js', function(){ gulp.src('./js/*.js') .pipe...
JavaScript
0
@@ -1810,14 +1810,23 @@ ion -up +& date +Published .');
6554fc09a6ddb62b0bd8f7b4b61a9db2afd7b7ba
Move setting sessionId to after userInfo is set in DB
server.js
server.js
// Copyright (c) 2014 Sandstorm Development Group, Inc. and contributors // Licensed under the MIT License: // // 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, includin...
JavaScript
0
@@ -5723,76 +5723,8 @@ ll,%0A - sessionId: req.headers%5B%22x-sandstorm-session-id%22%5D %7C%7C null,%0A @@ -6485,32 +6485,108 @@ .id;%0A %7D%0A%0A + userInfo.sessionId = req.headers%5B%22x-sandstorm-session-id%22%5D %7C%7C null;%0A future.r
c55fc4b897a8d37bc3ded785fce17bbb9e28a13d
Switch to Heroku's MongoLab add-on DB
server.js
server.js
"use strict"; // Module dependencies var applicationRoot = __dirname; var express = require("express"); // Web framework - HTTP server (JS equivalent to Apache) var bodyParser = require("body-parser"); // Parser for reading request body var path = require("path"); // Utilities for dealing ...
JavaScript
0.000001
@@ -1445,16 +1445,17 @@ ini@ +@ ds0 -63630 +55515 .mon @@ -1468,33 +1468,29 @@ com: -63630/panini-sticker-swap +55515/heroku_flr2shg6 %22);%0A
69e706eaa57311213e6817f029ba6a4e9d1ca0df
add votes count to PUT route
server.js
server.js
var express = require('express'); var bodyParser = require('body-parser'); var mongoose = require('mongoose'); var Restaurant = require('./app/models/restaurant'); var app = express(); app.use(bodyParser.urlencoded({ extended: true })); app.use(bodyParser.json()); var options = { server: { socketOptions: {...
JavaScript
0
@@ -2563,24 +2563,104 @@ eq.body.name + %7C%7C restaurant.name;%0A restaurant.votes = req.body.votes %7C%7C restaurant.votes ;%0A rest
66dbbccaa88bfe63a514de8b41110415cb86f9e1
test git hook
server.js
server.js
'use strict'; const express = require('express'); const app = express(); //const app = require('express')(); //const bodyParser = require('body-parser'); //process for forms //const mongoose = require('mongoose'); const path = require('path'); //const routes = require('./routes/'); //slash as the end indicated you lo...
JavaScript
0.000001
@@ -1177,16 +1177,20 @@ stors!!! +$$$$ '%0A %7D)
f1ecd66c7fab497605b364f8d4540ec07fd39924
add consumo mesa
server.js
server.js
var express = require('express'), api = require('./routes/callsApi'); var app = express(); app.get('/api/findById/:id', api.findById); // TESTE FIND ONE app.get('/', api.findRaiz); app.get('/api/getmesas', api.mesas); // /api/getmesas app.get('/api/getmesa/:idmesa', api.consumomesa); // /api/getmesa/ID_MESA ---...
JavaScript
0.000008
@@ -669,24 +669,28 @@ sumomesa/:id +mesa ', api.addco
07950fafe34fead60bb70de2d6efec6f487ab4b6
Load Virgin Atlantic
assets/scripts/airline.js
assets/scripts/airline.js
function airline_init_pre() { prop.airline = {}; prop.airline.airlines = {}; } /** * An aircrcraft operating agency */ zlsa.atc.Airline = Fiber.extend(function() { return { /** * Create new airline */ init: function (icao, options) { /** ICAO airline designation */ this.icao = "YY...
JavaScript
0.000001
@@ -5005,24 +5005,46 @@ oad(%22DLH%22);%0A + airline_load(%22VIR%22); %0A airline_l
6a1a2e6a30ccefde8e5a6ce67fac70d8fd56a80a
fix json
server.js
server.js
var port = process.env.PORT || 4000, app = require('./app').init(port), utils = require('./utils'), conf = require('./conf'), request = require('request'), pageSize = 20; app.get('/', function(req, res){ request.get({url:'/api/templates',json:true},function(e,r,b){ ...
JavaScript
0.002271
@@ -681,21 +681,33 @@ es.json( +JSON.parse( data) +) ;%0D%0A %7D
fe7d01ae4a3281ab5d905c893b1b2c0bbd31bb0c
move skip tracking into song_log
server.js
server.js
// Sonos Server: // Copyright (C) 2016 David Ulrich (http://github.com/dulrich) // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, version 3 of the License. // // This program is dist...
JavaScript
0.000001
@@ -2843,16 +2843,52 @@ %09s.next( +function() %7B%0A%09%09%09%09%09%09// nothing%0A%09%09%09%09%09%7D );%0A%09%09%09%09%09 @@ -3001,87 +3001,63 @@ : %60 -UPDATE%0A%09%09%09%09%09%09%09song%0A%09%09%09%09%09%09SET songSkips = songSkips + 1%0A%09%09%09%09%09%09WHERE songID = ?id +INSERT INTO song_log (songID, songSk...
51bbf09a99c3600b8eafde97ad20f8962ec05131
Change post interval to 12 hours
server.js
server.js
/* server.js Main method. Log in to facebook, listens to messages, and posts. */ // Set environment variables require('dotenv').config(); //const INFO = require('./info.js'); const parse = require('./parse.js'); const login = require("facebook-chat-api"); const FB = require('fb'); const http = require('http'); con...
JavaScript
0.00022
@@ -2374,17 +2374,18 @@ k every -3 +12 hours.%0A @@ -2432,9 +2432,10 @@ 0 * -8 +12 ;%0Ava
9d97abc28e13a40398746e82c9cd9594cc7f3756
Add SCP
hookHandler.js
hookHandler.js
var config = require('./config'); var gitHandler = require('./gitHandler'); var scpHandler = require('./scpHandler'); var tmp = require('tmp'); var winston = require('winston'); var util = require('util'); /* Check if posted hook data has a commit to Master AND corresponds to a * project in the config file. * If b...
JavaScript
0.000053
@@ -171,16 +171,43 @@ nston'); +%0Avar SCP = require('scp2'); %0A%0Avar ut @@ -1843,28 +1843,16 @@ 'info', -util.format( 'Git clo @@ -1870,29 +1870,483 @@ for - %25s/%25s', owner, slug) +', projNick);%0A%0A scpOptions = %7B%0A host: project.dest.host,%0A username: project.dest.username,%0A ...
26be843e5a46c50c9a74a82a56e52a800432fcda
Fix linting issues removed https support (should be handled by proxy later on) removed references to ssl certs
server.js
server.js
'use strict'; var express = require('express'), fs = require('fs'), http = require('http'), https = require('https'), mongoose = require('mongoose'); var privateKey = fs.readFileSync('./lib/certs/privatekey.pem').toString(); var certificate = fs.readFileSync('./lib/certs/certificate.pem').toString(); ...
JavaScript
0
@@ -165,227 +165,8 @@ );%0A%0A -var privateKey = fs.readFileSync('./lib/certs/privatekey.pem').toString();%0Avar certificate = fs.readFileSync('./lib/certs/certificate.pem').toString();%0Avar credentials = %7B%0A key: privateKey,%0A cert: certificate%0A%7D;%0A%0A var @@ -1957,22 +1957,19 @@ config') -,%0A ...
d144fdbddfb50096b6c8db22f4fe8ffa1d2431bf
change to DB URI env var
server.js
server.js
// setup server var express = require('express'); var http = require('http'); var app = express(); // Express config can be done later // var app = require('./config/express'); var server = http.createServer(app); var port = process.env.PORT || 8080; // setup db var mongoose = require('mongoose'); var database = requ...
JavaScript
0.000002
@@ -290,24 +290,27 @@ mongoose');%0A +// var database @@ -800,20 +800,31 @@ ect( -database.url +process.env.MONGODB_URI );%0A%0A @@ -1953,8 +1953,9 @@ + %22!%22); +%0A
ab545d253128f4a88479cfaffbf29a16e509ff5f
修复正式环境下浏览器刷新导致页面404的bug;
server.js
server.js
const express = require('express'); const path = require('path'); const app = express(); app.use(express.static(path.join(__dirname, 'dist'))); app.listen(8000, () => { console.log('App listening at port 8000'); });
JavaScript
0
@@ -83,24 +83,39 @@ press();%0D%0A%0D%0A +// %E5%8A%A0%E8%BD%BD%E6%8C%87%E5%AE%9A%E7%9B%AE%E5%BD%95%E9%9D%99%E6%80%81%E8%B5%84%E6%BA%90%0D%0A app.use(expr @@ -160,16 +160,198 @@ )));%0D%0A%0D%0A +// %E9%85%8D%E7%BD%AE%E4%BB%BB%E4%BD%95%E8%AF%B7%E6%B1%82%E9%83%BD%E8%BD%AC%E5%88%B0index.html%EF%BC%8C%E8%80%8Cindex.htm...
26b14adade384f0ce76fe95a69be62e86de96f42
Update touch.js
html5/touch.js
html5/touch.js
document.getElementById("id_bussiness_version").innerHTML = "Bussiness version: 2018.11.26.0"; var canvas = document.getElementById("id_canvas"); canvas.addEventListener("touchstart", on_touch_start); function on_touch_start(e) { for (var i = 0; i < e.changedTouches.length; i++){ var context = canvas.getContext("...
JavaScript
0.000001
@@ -84,17 +84,17 @@ 8.11.26. -0 +1 %22;%0A%0Avar @@ -196,16 +196,75 @@ tart);%0A%0A +var canvas_bounding_rect = canvas.getBoundingClientRect();%0A %0Afunctio @@ -440,16 +440,44 @@ i%5D.pageX + - canvas_bounding_rect.left , %0A%09%09%09%09%09 @@ -501,16 +501,43 @@ i%5D.pageY + - canvas_bounding_rect.top ,%0A%09...
defdebb4d79dfbaa392b46947b531361b77327d7
Update server.js
server.js
server.js
var debug = require('debug')('gitup'), config = require('./common/config'), http = require('http'); // integrations webhook = require('gitup-webhook')(config); // twitter = require('./integrations/gitup-twitter')(config); var server = http.createServer(function (req, res) { console.log(req.method + ' ' + req....
JavaScript
0.000002
@@ -138,18 +138,22 @@ ire('git -up +events -webhook
b5bdc58fd2c8a77d3a73a38400c28e3b154dc45c
Refactor controller
server.js
server.js
const express = require('express'); const cors = require('cors'); const morgan = require('morgan'); const { pick } = require('lodash'); require('./lib/communeStore')() .then(db => { const app = express(); app.use(cors()); app.use(morgan('dev')); app.get('/communes', function (req, res) { let ...
JavaScript
0.000001
@@ -134,230 +134,343 @@ );%0A%0A -%0Arequire('./lib/communeStore')()%0A .then(db =%3E %7B%0A const app = express();%0A app.use(cors());%0A app.use(morgan('dev') +function initCommuneFields(req, res, next) %7B%0A if (req.query.fields) %7B%0A req.fields = new Set(req.query.fields.split(','));%0A %7D else ...
e176fa9278557c6d3d3fae6315e0ad0290bee9b3
Update character
output.js
output.js
var fs = require('fs'); var child_process = require('child
JavaScript
0
@@ -47,12 +47,13 @@ quire('child +_
eb5331b6fa97937235a167776681ce3c775d3b95
Update character
output.js
output.js
var fs = require('fs'); var child_process = require('child_process') var max_
JavaScript
0
@@ -70,8 +70,9 @@ var max_ +s
11527110eff0763f5f5675b330fc1f74974e2086
remove white space
server.js
server.js
const express = require('express'); const hbs = require('hbs'); const fs = require('fs'); const port = process.env.PORT || 3000; var app = express(); // creates app // include support for paritals hbs.registerPartials(__dirname + '/views/partials'); app.set('view engine', 'hbs'); // this is how we register middlew...
JavaScript
0.015486
@@ -246,17 +246,16 @@ ials');%0A -%0A app.set(
7687f755008960886897680fb37fb9d3974d63f5
change persistance option
server.js
server.js
#!/usr/bin/env node var minimist = require('minimist') var WebSocketServer = require('ws').Server var freeport = require('freeport') var request = require('request') var websocket = require('websocket-stream') var docker = require('docker-browser-console') var root = require('root') var url = require('url') var send =...
JavaScript
0.000021
@@ -520,36 +520,8 @@ 080%7D -,%0A booleans: %7Bpersist:true%7D %0A%7D)%0A @@ -779,16 +779,22 @@ og(' -- +allow- persist @@ -812,22 +812,29 @@ - (persist +(allow persistance of /ro @@ -1241,16 +1241,25 @@ argv -. +%5B'allow- persist +'%5D &&
6774aa63ceffcd27ebf0bf72eb44efa0f2b38ea0
Make server redirection more precise
server.js
server.js
#!/usr/bin/env node const express = require("express"); const redirectToHTTPS = require("express-http-to-https").redirectToHTTPS; const expressStaticGzip = require("express-static-gzip"); var app = express(); app.use(redirectToHTTPS([/localhost:(\d{4})/], [], 301)); app.use( expressStaticGzip(__dirname, { ena...
JavaScript
0.000003
@@ -231,16 +231,17 @@ HTTPS(%5B/ +%5E localhos @@ -246,15 +246,33 @@ ost: -(%5Cd%7B4%7D) +?%5Cd*$/, /%5E127.0.0.1:?%5Cd*$ /%5D,
c361ac056afc145abc915e19742455d931598267
Revert "fix(express): Fixs express not using X-Forwarded-For"
server.js
server.js
'use strict'; require('dotenv').load(); require('newrelic'); var express = require('express'); var app = express(); var fs = require('fs'); var API = require('./api.js'); var logger = require('morgan'); var session = require('express-session'); var bodyParser = require('body-parser'); var cookieParser = require('co...
JavaScript
0
@@ -650,46 +650,8 @@ %7D)); -%0Aapp.set('trust proxy', '127.0.0.1'); %0A%0Aap
c09e91cff9ebcd7855e7349f69fd2f51a563387c
Return user when created
server.js
server.js
var express = require('express'), http = require('http'), path = require('path'), pg = require('pg'), db = require('./db'), User = require('./models/user'), crypto = require('crypto'), uuid = require('uuid'); var app = express(); app.set('port', process.env.PORT || 3000...
JavaScript
0
@@ -947,16 +947,28 @@ created' +, user: user %7D)%0A%09%09%7D) @@ -1145,37 +1145,8 @@ );%0A%0A -// login with name, password%0A app.
a13849dc21feb13b32f8c73b2bd6154d6b2f4996
support name for single file select
src/util/file/select.js
src/util/file/select.js
/* * ------------------------------------------ * 文件选择接口实现文件 * @version 1.0 * @author genify(caijf@corp.netease.com) * ------------------------------------------ */ var f = function(){ var _ = NEJ.P, _o = NEJ.O, _f = NEJ.F, _e = _('nej.e'), _v = _('nej.v'), ...
JavaScript
0
@@ -1252,16 +1252,73 @@ %E5%85%A8%E6%96%B0%E7%94%9F%E6%88%90%E4%B8%80%E4%B8%AA%0D%0A + * @config %7BString%7D name %E5%8D%95%E4%B8%AA%E6%96%87%E4%BB%B6%E9%80%89%E6%8B%A9%E6%94%AF%E6%8C%81%E6%8C%87%E5%AE%9A%E6%8F%90%E4%BA%A4%E6%97%B6%E6%96%87%E4%BB%B6%E5%90%8D%E7%A7%B0%0D%0A * @ @@ -3265,16 +3265,17 ...
cac7574d3dcb81a63191e482bd17a402ca21a3fe
Update server.js
server.js
server.js
var express = require('express'); var app = express(); var port = process.env.PORT || 8080; var router=express.Router; var users=require('./source/javascript/users_otp.js'); app.route('/about/:otp') .get(function(req,res){ users.getUserWithOTP(req.params.otp).then(function(items) { res.json...
JavaScript
0
@@ -430,16 +430,18 @@ port);%0D%0A +// console.
35b8139f6c10adf19c13db448932429d0ce5061b
Echo all RFC 2616 verbs
server.js
server.js
var app = require('express')(); var port = process.env.PORT || 3300; var concat = require('concat-stream'); app.use(function(req, res, next) { req.pipe(concat(function(data){ req.body = data; next(); })); }); app.use(function(req, res, next) { res.header('Access-Control-Allow-Origin', '*'); res.header(...
JavaScript
0.999999
@@ -415,308 +415,8 @@ );%0A%0A -app.post('*', function (req, res) %7B%0A var fullUrl = req.protocol + '://' + req.get('host') + req.originalUrl;%0A res.set(%7B'Content-Type': 'text/plain'%7D);%0A res.send(%5B%0A fullUrl,%0A 'Headers:',%0A JSON.stringify(req.headers, null, 4),%0A 'Body:',%0A req.body%...
fa7e4bdc8a54552b9410e0ff6828aaaf77220356
Use angular.min
server.js
server.js
/** * Module dependencies. */ var express = require('express'), fs = require('fs'); var app = module.exports = express.createServer(); var assetManager = require('connect-assetmanager'); var io = require('socket.io').listen(app); var lobbyClass = require('./lib/lobby.js'); var siteConfig = require('./siteConfi...
JavaScript
0.000151
@@ -684,16 +684,20 @@ angular. +min. js',%0A
d77887b4e367cffe0addda992732cd9cff531d3b
change get to all
server.js
server.js
var path = require('path'), express = require('express'), session = require('express-session'), nunjucks = require('express-nunjucks'), routes = require(__dirname + '/app/routes.js'), favicon = require('serve-favicon'), app = express(), basicAuth = require('basic-auth'), bodyParser = req...
JavaScript
0
@@ -3876,19 +3876,19 @@ ded%0Aapp. -get +all (/%5C.html @@ -4076,19 +4076,19 @@ sts%0Aapp. -get +all (/%5E%5C/(%5B%5E
554b5d7f10629744c278b9c28a04014dbdd5b060
add login feature
server.js
server.js
//app server js file //declare app var express = require("express"); //required libraries var fs = require('fs'); var passport = require('passport'); var FacebookStrategy = require('passport-facebook').Strategy; var mongoose = require('mongoose'); var Schema = mongoose.Schema; //in app models //var Cat = require('./c...
JavaScript
0.000001
@@ -1582,125 +1582,724 @@ ;%0A -User.create(keep_data);%0A%7D%0A%0AUser.create = function(data)%7B%0A var newUser = new User(%7Bdata: data%7D);%0A newUser.save();%0A%7D; +var existingUser = User.isuser(keep_data.facebook_id);%0A if (!existingUser)%0A User.create(keep_data);%0A else%0A User.login(keep_data....
c0c5695b5a6d1be5024c9bb4419626e62b1dd1e8
Fix indentation.
src/canvas/ProxyContext.js
src/canvas/ProxyContext.js
/* * Paper.js - The Swiss Army Knife of Vector Graphics Scripting. * http://paperjs.org/ * * Copyright (c) 2011 - 2013, Juerg Lehni & Jonathan Puckey * http://lehni.org/ & http://jonathanpuckey.com/ * * Distributed under the MIT license. See LICENSE file for details. * * All rights reserved. */ /** * @name...
JavaScript
0.000007
@@ -2728,24 +2728,25 @@ ion() %7B%0A%09%09%09%09 +%09 return this. @@ -2764,16 +2764,17 @@ %0A%09%09%09%09%7D,%0A +%0A %09%09%09%09set:
f246b9079ad0732643271d52f8451356bbaa329f
Update webpack.config.js
demo/webpack.config.js
demo/webpack.config.js
const OpenBrowserPlugin = require('open-browser-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const path = require('path'); const webpack = require('webpack'); /** * --env.production * --env.port port */ const PAGE_TITLE = "React Planner"; const VENDORS_LIBRARIES = ['immutable', 'reac...
JavaScript
0.000003
@@ -2601,65 +2601,22 @@ l: %60 -http://ec2- 35 --166-135- +.166.135. 246 -.us-west-2.compute.amazonaws.com :$%7Bp
6acb39610dd5451c7faa7eb10201869865dda548
change "PhET Homepage" to "PhET website"
js/PhetMenu.js
js/PhetMenu.js
// Copyright 2002-2013, University of Colorado Boulder /** * The 'PhET' menu. * * @author Sam Reid */ define( function( require ) { 'use strict'; // imports var Node = require( 'SCENERY/nodes/Node' ); var Shape = require( 'KITE/Shape' ); var Path = require( 'SCENERY/nodes/Path' ); var Text = require( ...
JavaScript
0.000144
@@ -2919,15 +2919,14 @@ hET -Homepag +websit e',%0A
25fee1c46f49f8c9cc66e5fbad4026a1db0f1df5
Remove process.env check which broke borwsers (#2257)
debug/src/index.js
debug/src/index.js
import { initDebug } from './debug'; import { initDevTools } from './devtools'; if (process.env.NODE_ENV === 'development') { initDebug(); initDevTools(); }
JavaScript
0
@@ -78,55 +78,8 @@ ';%0A%0A -if (process.env.NODE_ENV === 'development') %7B%0A%09 init @@ -91,9 +91,8 @@ ();%0A -%09 init @@ -107,6 +107,4 @@ ();%0A -%7D%0A
0c4c99c9e73974ae9355f3868530137ab682dbd2
add favicon
server.js
server.js
var populate = (function () { var result = false; process.argv.forEach( function ( val, index, array ) { if ( index === 2 ) { result = val; } }); return result; })(), express = require('express'), people = require('./routes/people')(populate), app = expr...
JavaScript
0.000032
@@ -317,24 +317,54 @@ express();%0A%0A +app.use( express.favicon() );%0A app.use( exp
a35be64d6972ebd5b8060277456517831c34432a
Update test paths for params file
src/apps/companies/middleware/__test__/params.test.js
src/apps/companies/middleware/__test__/params.test.js
const proxyquire = require('proxyquire') const company = require('../../../../unit/data/companies/company-v4.json') const companiesHouseRecord = require('../../../../unit/data/companies/companies-house.json') describe('Companies form middleware', () => { let nextSpy let getDitCompanyStub let getCHCompanyStub l...
JavaScript
0
@@ -63,32 +63,40 @@ re('../../../../ +../test/ unit/data/compan @@ -167,16 +167,24 @@ ./../../ +../test/ unit/dat
92d6c89b0a44228960768cd8d951d8771c810548
Fix line length
js/collections/VerifiedMods.js
js/collections/VerifiedMods.js
import _ from 'underscore'; import { Collection } from 'backbone'; import app from '../app'; import Mod from '../models/VerifiedMod'; import { getCurrentConnection } from '../utils/serverConnect'; export default class extends Collection { constructor(...args) { super(...args); this._data = {}; } model(a...
JavaScript
0.999998
@@ -426,24 +426,90 @@ %0A%0A url() %7B%0A + const usingTor = getCurrentConnection().server.get('useTor');%0A return a @@ -556,51 +556,16 @@ er$%7B -getCurrentConnection().server.get('use +using Tor -') ? '
a7a424233cc11c107497af5a5dd6289a6f5836e9
add method to load n3 to a data graph in side in-browser store
app/static/js/services/graph.js
app/static/js/services/graph.js
(function() { angular .module("graphService", []) .factory("Graph", ["$q", "Message", "TemplateStore", "Progress", Graph]); function Graph($q, Message, TemplateStore, Progress) { var service, _store, SCHEMAS; SCHEMAS = "urn:schema"; service = { getStore: ge...
JavaScript
0
@@ -267,16 +267,43 @@ schema%22; +%0A DATA = %22urn:data%22; %0A%0A @@ -370,16 +370,62 @@ ad: load +Schema,%0A loadResource: loadResource ,%0A @@ -476,16 +476,40 @@ SCHEMAS +,%0A DATA: DATA %0A @@ -715,16 +715,22 @@ ion load +Schema (config, @@ -1917,26 +1917,33 ...
a149a7014262bacb7a910bee524bd76c98bebea9
clear text before playback
js/bdOutput.js
js/bdOutput.js
// The MIT License (MIT) // brain-dump / Copyright (c) 2014 Andrew Linville // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights /...
JavaScript
0.000001
@@ -3332,16 +3332,51 @@ %0A%0A%09%09%09%7D%0A%0A +%09%09%09// clear text%0A%09%09%09$el.text('');%0A%0A %09%09%09// ca
233345f5036c151b65fdaf3fcdb0a3d8148302af
Improve optimist message.
server.js
server.js
#!/usr/bin/env node 'use strict' var http = require('http') , querystring = require('querystring') , mime = require('mime') , fs = require('fs') , url = require('url') , util = require('util') , minimatch = require('minimatch') , httpProxy = require('http-proxy') , path = require('path') , optimist ...
JavaScript
0.000043
@@ -369,44 +369,290 @@ age( -'Serve earhorn over http.%5CnUsage: $0 +%0A 'This server providers a utility to wrap JavaScript%5Cn' + %0A 'with calls to earhorn$.%5Cn%5Cn' +%0A 'Example:%5Cn%5Cn' +%0A ' ./server.js --port 8001 --pattern %22/**/*.js%22%5Cn%5Cn' +%0A ' This would add earhorn$ to every Jav...
a3f7c9237ca6e7fcf354db3e884e81f18dc5c79d
Remove JSCS from linting
app/templates/gulpfile.babel.js
app/templates/gulpfile.babel.js
import gulp from 'gulp'; import loadPlugins from 'gulp-load-plugins'; import del from 'del'; import glob from 'glob'; import path from 'path'; import {Instrumenter} from 'isparta'; import webpack from 'webpack'; import webpackStream from 'webpack-stream'; import source from 'vinyl-source-stream'; import mochaGlob...
JavaScript
0
@@ -1062,92 +1062,8 @@ ())%0A - .pipe($.jscs())%0A .pipe($.jscs.reporter())%0A .pipe($.jscs.reporter('fail'))%0A
84e68f1f2af89f7a36fefa39064b63523c22e9eb
fix favicon
server.js
server.js
/** * */ var events = require('events'); function Server(options) { var me = this; events.EventEmitter.call(me); //Simple webserver var config = { port: 80, documentRoot: __dirname + '/html/' }; Object.keys(options).forEach(function(key) { config[key] = options[key]; }); me._handlers = {}; var ...
JavaScript
0.014927
@@ -807,16 +807,42 @@ xt/html' +,%0A%09%09%09%09%09%09ico:'image/x-icon' %0A%09%09%09%09%09%7D;
51e859cd3d43232411259127a3aab420ea233f96
add prop validation on description
src/views/Items/Item.js
src/views/Items/Item.js
import React, {Component, PropTypes} from 'react'; import classNames from 'classnames'; export default class Item extends Component { static propTypes = { children: PropTypes.node, className: PropTypes.string, description: PropTypes.node, extra: PropTypes.node, heading: PropTypes.node, image:...
JavaScript
0
@@ -231,30 +231,220 @@ iption: -PropTypes.node +(props, propName, componentName) =%3E %7B%0A if (props.children && props.description) %7B%0A return new Error('%60Item%60 should only have one of type %60description%60 or %60children%60, not both.');%0A %7D%0A %7D ,%0A ex
f2ee9c7988a88c580400ad1e15f643305d3e8d89
Change default port
server.js
server.js
'use strict'; /* global __dirname, console */ var express = require('express'), morgan = require('morgan'), fs = require('fs'); var app = express(); function docPath(req, addPath, ending) { return __dirname + '/public/' + addPath + '/' + req.params.doc + '.' + ending; } var contentTypes = { 'xml' : 't...
JavaScript
0.000001
@@ -1708,9 +1708,9 @@ 808 -2 +1 ;%0Ava
bc05beb7fe58355feab6c4afdd46248224590ece
fix json
server.js
server.js
var port = process.env.PORT || 4000, app = require('./app').init(port), utils = require('./utils'), conf = require('./conf'), request = require('request'), pageSize = 20; app.get('/', function(req, res){ request.get({url:'/api/templates',json:true},function(e,r,b){ ...
JavaScript
0.002271
@@ -357,34 +357,32 @@ %0D%0A -// console.log(j);%0D
72771aa5736daefe9c09c006b29e812e30b43277
Fix another typo in comment
src/ui/ExampleNotebookLoader.js
src/ui/ExampleNotebookLoader.js
define(["CanonicalJSON"], function(CanonicalJSON) { "use strict" const exampleNotebookConfigurationFileName = "_exampleNotebookConfiguration.txt" const ExampleNotebookLoader = { it: null, loadFile(fileName) { const fullFileName = "vendor/text!examples/" + fileName ...
JavaScript
0.032765
@@ -185,25 +185,17 @@ der = %7B%0A - %0A + @@ -448,33 +448,25 @@ %0A %7D,%0A - %0A + load @@ -887,17 +887,16 @@ %7D) - %0A @@ -899,25 +899,17 @@ %7D,%0A - %0A + @@ -1150,29 +1150,17 @@ t(%22%5Cn%22)%0A - %0A + ...
190aaf82cb9eb0520b50a92abebd4aa8b8a7e58a
fix https://github.com/GroundMeteor/db/issues/78
ejson.minimax.js
ejson.minimax.js
/* __ ____ _ __ ___ / |/ (_)___ (_) |/ /___ __ __ / /|_/ / / __ \/ / /|_/ / __ `/ |/_/ / / / / / / / / / / / / /_/ /> < /_/ /_/_/_/ /_/_/_/ /_/\__,_/_/|_| Minify and Maxify by RaiX aka Morten N.O. Nørgaard ...
JavaScript
0
@@ -3335,16 +3335,34 @@ ject' && +%0A !(value @@ -3378,16 +3378,47 @@ of Date) + && typeof value !== 'function' ) %7B%0A