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
1a651fd12e02c470985149a2b0590af4d7049fb8
Use const #23
tests/unit/components/report/children.js
tests/unit/components/report/children.js
import Report from '../../../../ui/components/report.jsx'; import fixture from '../../../fixtures/components/report/data.js'; import suitesParser from './setup.js'; import {render, stubMethod, getChildProps} from '../../helpers.js'; describe('Report', function() { describe('Children', function() { let { su...
JavaScript
0.000001
@@ -299,18 +299,20 @@ ) %7B%0A -le +cons t %7B%0A
452ad2dc7aea3cf739777e53444561081592e7c7
Fix TypeError when switching tabs + minor cleanup (Task #356)
app/assets/javascripts/pusher.js
app/assets/javascripts/pusher.js
function pusherStart() { // Pusher global vars var pusher = new Pusher($("meta[name='pusher-key']").attr("content")); var listUrl = $(".list").data("url"); var channel = pusher.subscribe($(".list").data("pusher-channel")); // Pusher logger Pusher.log = function(message) { if (window.console && window.c...
JavaScript
0
@@ -42,16 +42,41 @@ al vars%0A + var list = $(%22.list%22);%0A var pu @@ -156,26 +156,20 @@ stUrl = -$(%22. list -%22) .data(%22u @@ -180,17 +180,21 @@ ;%0A var -c +listC hannel = @@ -198,35 +198,12 @@ l = -pusher.subscribe($(%22. list -%22) .dat @@ -225,158 +225,116 @@ el%22) -) ;%0A%0A -// Pusher...
b49b4c23636c8264794085b33ffcc702a3d46620
Remove extraneous directory creation in examples environment.
bids-validator/tests/env/load-examples.js
bids-validator/tests/env/load-examples.js
const fs = require('fs') const { promisify } = require('util') const request = require('sync-request') const AdmZip = require('adm-zip') const lockfile = require('lockfile') const lockPromise = promisify(lockfile.lock) const test_version = '1.2.0' const examples_lock = 'bids-validator/tests/data/examples.lockfile' //...
JavaScript
0
@@ -846,117 +846,8 @@ )%0A - if (!fs.existsSync('bids-validator/tests/data')) %7B%0A fs.mkdirSync('bids-validator/tests/data')%0A %7D%0A
3709ab2532cb084ce19e55acbe55b0261a682a3e
Update game.js
scripts/game.js
scripts/game.js
var game = { resources: {}, tick: function () { for ( var res in game.resources ) { game.resources[res].update(); } } }; game.tick.bind( game ); game.interval = window.setInterval( game.tick, 100 ); game.buttons = document.getElementById( 'buttons' ); game.labels = document.getEl...
JavaScript
0.000001
@@ -1131,16 +1131,19 @@ value ) +;// + %22.%22 +
600c13c52621e08f1444d230970258d8439a6970
Remove internal import from react-native
elements/Image.js
elements/Image.js
import React from "react"; import PropTypes from "prop-types"; import { Image, requireNativeComponent } from "react-native"; import ImageSourcePropType from "react-native/Libraries/Image/ImageSourcePropType"; import { ImageAttributes } from "../lib/attributes"; import { numberProp, touchableProps, responderProps } from...
JavaScript
0.000013
@@ -122,92 +122,8 @@ e%22;%0A -import ImageSourcePropType from %22react-native/Libraries/Image/ImageSourcePropType%22;%0A impo @@ -715,43 +715,8 @@ ed,%0A - href: ImageSourcePropType,%0A
f3b70e97c4d72e773d6880506de28afec94882e0
Fix testing component model
bin/ComponentModel/ComponentModel.test.js
bin/ComponentModel/ComponentModel.test.js
import React from 'react'; import ComponentModel from '../../../src/js/components/ui/ComponentModel/ComponentModel.js'; import styles from '../../../src/js/components/ui/ComponentModel/ComponentModel.scss'; import { shallow, configure } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; configure({ adapter:...
JavaScript
0
@@ -571,17 +571,17 @@ expect( -C +c omponent
95182d5e71d0a140f148feb681cd6ed34620ea86
normalize react and react/addons requires
webpack.make.js
webpack.make.js
var fs = require('fs'), path = require('path'), mkdirp = require('mkdirp'), webpack = require('webpack'), ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = function buildWebpackConfig (options) { options = options || {}; var ENV = options.ENV || process.env.NODE_ENV || 'developm...
JavaScript
0
@@ -3242,16 +3242,228 @@ .css')); +%0A%0A // Ensures requires for %60react%60 and %60react/addons%60 normalize to the same requirement%0A config.plugins.push(new webpack.NormalModuleReplacementPlugin(/%5Ereact(%5C/addons)?$/, require.resolve('react/addons'))) %0A %7D%0A i
4c85e1a8b9dd752dc0b291b22f4799ee73530b3b
Build v0.0.1
compound-subject.min.js
compound-subject.min.js
/*! compound-subject 2014-08-01 */ !function(){"use strict";var a=function(a){var b={},c="and",d=!1,e=",";return b.endWith=function(a){return"string"!=typeof a?b:(c=a,b)},b.delimitAll=function(){var a=arguments[0];return d="boolean"==typeof a?a:!0,b},b.delimitWith=function(a){return"string"!=typeof a?b:(e=a,b)},b.make=...
JavaScript
0.000011
@@ -364,16 +364,39 @@ %22;return +%22undefined%22==typeof a%7C%7C !a insta @@ -498,16 +498,36 @@ %7D,b%7D;if( +%22undefined%22!=typeof module)m @@ -550,17 +550,36 @@ else%7Bif( -! +%22undefined%22==typeof window)t
075081db587fee9580b92a7ee554128c7e7df63f
improve build plugin ordering
webpack.make.js
webpack.make.js
var fs = require('fs'), path = require('path'), mkdirp = require('mkdirp'), webpack = require('webpack'), ExtractTextPlugin = require('extract-text-webpack-plugin') module.exports = function buildWebpackConfig (options) { options = options || {} var ENV = options.ENV || process.env.NODE_ENV || 'developmen...
JavaScript
0
@@ -3194,25 +3194,18 @@ me%5D. -css?%5Bcontent +%5B hash%5D +.css '),%0A @@ -3226,24 +3226,15 @@ ack. -optimize.UglifyJ +NoError sPlu @@ -3293,39 +3293,48 @@ new webpack. -NoError +optimize.UglifyJ sPlugin()%0A )%0A
488aba6cf6a3241dfcb27232803065867351ab5f
Remove ngRoute
public/config.js
public/config.js
'use strict'; // Init the application configuration module for AngularJS application var ApplicationConfiguration = (function() { // Init module configuration options var applicationModuleName = 'peopleMa'; var applicationModuleVendorDependencies = ['ngResource', 'ngCookies', 'ngAnimate', 'ngTouch', 'ngSanitize'...
JavaScript
0.000001
@@ -318,19 +318,8 @@ ze', - 'ngRoute', 'ui
e24a5c61295a31a794430793efe9a38511f4c167
Use Babili (and source maps in prod)
webpack/base.js
webpack/base.js
const webpack = require('webpack') const { join } = require('path') const { TsConfigPathsPlugin } = require('awesome-typescript-loader') const { NODE_ENV } = process.env const isDev = NODE_ENV === 'development' module.exports = { output: { path: join(__dirname, '..', 'dist') }, // Enable sourcemaps for debuggin...
JavaScript
0
@@ -129,16 +129,70 @@ loader') +%0Aconst BabiliPlugin = require('babili-webpack-plugin') %0A%0Aconst @@ -400,16 +400,8 @@ ool: - isDev ? 'so @@ -413,17 +413,8 @@ map' - : 'none' ,%0A%0A%09 @@ -1115,16 +1115,54 @@ gins: %5B%0A +%09%09!isDev ? new BabiliPlugin() : null,%0A %09%09new we
f34ee624dce4a9618f5958928461accc72ecf3cf
Use property filter inside of tableContent property.
app/components/expenses-table.js
app/components/expenses-table.js
import Ember from 'ember'; import $ from 'jquery'; import moment from 'npm:moment'; export default Ember.Component.extend({ userSettings: Ember.inject.service('user-settings'), sortAscending: false, searchQuery: '', tableViewSettings: 'all', init () { this._super(); this.set('currency', this.get('us...
JavaScript
0
@@ -242,12 +242,39 @@ s: ' -all' +today',%0A sortByProperty: false ,%0A%0A @@ -759,40 +759,100 @@ %0A%0A -sortValues (property) %7B%0A if ( +applyPropertyFilter (data, property) %7B%0A if (property) %7B%0A this.set('sortAscending', ! this @@ -877,107 +877,89 @@ g')) - %7B +; %0A -const dataSo...
c5812928e86f5e00773eba6ba52f5df76475740c
use user-data api, cleanup
verify/repository.js
verify/repository.js
var exec = require('child_process').exec var fs = require('fs') var helper = require('../verify/helpers.js') var userData = require('../data.json') var addtoList = helper.addtoList var markChallengeCompleted = helper.markChallengeCompleted var writeData = helper.writeData var currentChallenge = 'repository' module....
JavaScript
0
@@ -134,17 +134,24 @@ '../ +lib/user- data.js -on ')%0A%0A @@ -246,41 +246,110 @@ ted%0A -var writeData = helper.writeData%0A +%0A// do I want to do this as a var? un-needed, also can't browser view%0A// pass in the challenge string? %0Avar @@ -524,17 +524,17 @@ dtoList( -%22 +' Path is @@ -548,17 +548,17 @@ i...
7d05b5cc814488bb82f58a901b7cf0c5c54477d4
Remove jsx from nodemon watching b/c it's idiotic to restart the server on every change
gulp/config.js
gulp/config.js
var dest = "./build"; var src = './src'; var port = 3000; module.exports = { nodemon: { script: './server.js', ext: 'js,jsx', ignore: ['build/*', 'node_modules/*'], env: { 'NODE_ENV': 'development', 'DEBUG': 'Server', 'PORT': port } },...
JavaScript
0
@@ -137,12 +137,8 @@ 'js -,jsx ',%0A
5bc7d2472cdae5fd3a6f2b73de926d9d33bb86aa
fix path to contributors.json
gulp/tasks/build-contributors.js
gulp/tasks/build-contributors.js
(function () { 'use strict'; var colors = require('colors'); var child_process = require('child_process'); /** * Note 'githubcontrib' may require a application-scoped access token: GITHUB_API_TOKEN */ exports.task = function () { var taskPath = __dirname; var appPath = `${taskPath}/.....
JavaScript
0.000004
@@ -303,26 +303,8 @@ = %60 -$%7BtaskPath%7D/../../ dist
4b707d9da54fb68888a5494fcd9d6d64036446c1
Update for new Moment.js API
scripts/time.js
scripts/time.js
/* * Clock plugin using Moment.js (http://momentjs.com/) to * format the time and date. * * The only exposed property, 'format', determines the * format (see Moment.js documentation) to display time and date. * * Requires 'jquery' and 'moment' to be available through RequireJS. */ define(['jquery', 'moment'], f...
JavaScript
0
@@ -803,19 +803,21 @@ moment.l -ang +ocale Data(lan @@ -836,19 +836,21 @@ moment.l -ang +ocale (lang);%0A @@ -876,19 +876,21 @@ moment.l -ang +ocale (navigat
2ec172a7fda8eab985e79bf83e53864f7fb2eeb0
Handle error objects better (#6053)
app/core/Tracker2/BaseTracker.js
app/core/Tracker2/BaseTracker.js
export const TRACKER_LOGGING_ENABLED_QUERY_PARAM = 'tracker_logging'; export const DEFAULT_USER_TRAITS_TO_REPORT = [ 'email', 'anonymous', 'dateCreated', 'hourOfCode', 'name', 'referrer', 'testGroupNumber', 'testGroupNumberUS', 'gender', 'lastLevel', 'siteref', 'ageRange', 'schoolName', 'coursePrepaidID', 'role', ...
JavaScript
0
@@ -61,18 +61,17 @@ logging' -; %0A + %0Aexport @@ -405,17 +405,16 @@ = 12000 -; %0A%0Aexport @@ -648,17 +648,16 @@ turn obj -; %0A %7D, %7B%7D @@ -1756,9 +1756,8 @@ EOUT -; %0A %7D @@ -3117,16 +3117,26 @@ reject( +new Error( 'Tracker @@ -3150,16 +3150,17 @@ imeout') +) , this.t @@ -4754,24 +4754,25 @...
7a49bcacbb557caca510ea8a044e4a57a62a8733
Add additional property to pass to weatherCard.
lib/components/App.js
lib/components/App.js
import React, {Component} from 'react'; import $ from 'jquery'; import CurrentWeatherCard from './CurrentWeatherCard'; export default class App extends Component { constructor(){ super() this.state = { location:'', responseData: null, currentData: null, forecastData: null, hourl...
JavaScript
0
@@ -1267,23 +1267,61 @@ herCard -weather +currentData=%7Bthis.state.currentData%7D forecast Data=%7Bth @@ -1329,23 +1329,24 @@ s.state. -weather +forecast Data%7D/%3E%0A
53426146036a2711f2984e8a85e37cbcb1d1fa25
Fix the build
app/frontend/app/models/group.js
app/frontend/app/models/group.js
import DS from 'ember-data'; import ModelTruncatedDetails from '../mixins/model-truncated-details'; export default DS.Model.extend(ModelTruncatedDetails, { name: DS.attr('string'), bio: DS.attr('string'), about: DS.attr('string'), aboutFormatted: DS.attr('string'), coverImageUrl: DS.attr('string'), avatarU...
JavaScript
0.000254
@@ -1,12 +1,39 @@ +import Ember from 'ember';%0A import DS fr
ce262962f600d4d5f4ac061527167a9e4f7617d0
Fix loopback model transformation
lib/contentful/dao.js
lib/contentful/dao.js
const debug = require('debug')('loopback:connector:contentful'); const _ = require('lodash'); const mixinMeta = require('./meta'); const queryHelper = require('./query'); module.exports = Connector => class MixinDAO extends mixinMeta(Connector) { create(model, data, options, cb) { if (!this.contentful.spac...
JavaScript
0.000001
@@ -3877,17 +3877,16 @@ ? %7B%7D : -( this.get @@ -3930,15 +3930,8 @@ ions - %7C%7C %7B%7D) ;%0A%0A @@ -4004,20 +4004,21 @@ let f = -null +field ;%0A @@ -4095,60 +4095,32 @@ lse -%7B%0A f = field;%0A if +if (_.has (rels -%5Bkey%5D +, key) ) %7B%0A - @@ -4164,26 +4164,24 @@...
c6833e323731f284785db1e7645603c74f2f4ef0
Fix jslint issues.
extension/content_script.js
extension/content_script.js
/*global chrome*/ "use strict"; function receiveMessage(event) { switch (event.data.text) { case "flooScreenDoWeHaveAnExtension": window.postMessage({name: "flooScreenHasExtension"}, "*"); break; case "flooScreenShare": chrome.runtime.sendMessage({action: "getScreen"}, function (id) { ...
JavaScript
0
@@ -88,18 +88,16 @@ text) %7B%0A - case %22 @@ -128,18 +128,16 @@ nsion%22:%0A - wind @@ -195,27 +195,23 @@ %22);%0A - break;%0A - case %22 @@ -232,18 +232,16 @@ e%22:%0A - chrome.r @@ -298,18 +298,16 @@ (id) %7B%0A - wi @@ -380,16 +380,12 @@ - %7D);%0A -
ef842f5be520054a12eb9037994f53ddcc185166
Fix key listener to allow holding down of modifier keys. Allow native keydown actions.
app/keys.js
app/keys.js
'use strict'; const defaultKeyMap = (function() { const keys = { 'Enter': {type: 'INSERT_NEW_LINE'}, 'Tab': {type: 'INSERT', text: ' '}, // TODO: Change this to reflect preferences/mode etc. 'Backspace': {type: 'DELETE_BACK_CHAR'}, 'Control-k': {type: 'KILL_LINE'}, ...
JavaScript
0
@@ -81,24 +81,27 @@ nter': + %7Btype: 'INSE @@ -129,16 +129,19 @@ 'Tab': + @@ -246,16 +246,19 @@ kspace': + %7Btype: @@ -299,16 +299,19 @@ trol-k': + %7Btype: @@ -345,16 +345,19 @@ owLeft': + %7Btype: @@ -398,16 +398,19 @@ trol-b': + %7Btype: @@ -452,16 +452,19 @@ ...
01eaea7fe1d2a284988d3ef0d0d7abc7b7b75e5a
Add missing scenes
app/main.js
app/main.js
import React, { Component } from 'react'; import { View, StatusBar, Image, Alert, BackAndroid, Keyboard, StyleSheet, } from 'react-native'; import { Scene, Router } from 'react-native-router-flux'; import { connect } from 'react-redux'; import AppSettings from './AppSettings'; import css from './styles/css'; im...
JavaScript
0.001415
@@ -1444,16 +1444,237 @@ ilView'; +%0Aimport ShuttleRoutesListView from './views/shuttle/ShuttleRoutesListView';%0Aimport ShuttleStopsListView from './views/shuttle/ShuttleStopsListView';%0Aimport ShuttleSavedListView from './views/shuttle/ShuttleSavedListView'; %0A%0Aconst @@ -3887,24 +3887,322 @@ ViewAll%7D /%3E%...
40b9521f4e05eed0bf03accf868f5a4e844e3b9f
Remove line break in includes params
app/routes/owner/repositories.js
app/routes/owner/repositories.js
import Ember from 'ember'; import TravisRoute from 'travis/routes/basic'; import config from 'travis/config/environment'; export default TravisRoute.extend({ needsAuth: false, titleToken(model) { var name = model.name || model.login; return name; }, model(params, transition) { var options; op...
JavaScript
0
@@ -459,16 +459,48 @@ %0A %7D%0A%0A + // eslint-disable-next-line%0A let @@ -565,23 +565,16 @@ _branch, -%0A build.co
a28922f5fe103d30fd79d663fe729555374c4157
make filter by urgency work too
app/scripts/controllers/inbox.js
app/scripts/controllers/inbox.js
angular.module('zentodone').controller('InboxCtrl', function ($scope, $rootScope, $filter, $location, tasks, Task, lists) { var debug = new window.$debug('mushin:task'); var search = $location.search(); debug('controllers/inbox.js: search params ' + JSON.stringify(search)); $scope.saveListActive = false; ...
JavaScript
0
@@ -4608,32 +4608,42 @@ return false;%0A + %7D%0A %7D%0A%0A r @@ -4655,30 +4655,24 @@ true;%0A %7D -%0A %7D %0A%0A $scope
37b88ee2a4a582434e1203d32c7082e417af9649
Fix app.configure
heat_tracer.js
heat_tracer.js
var http = require('http'); var libdtrace = require('libdtrace'); var io = require('socket.io'); var express = require('express'); /* create our express server and prepare to serve javascript files in ./public */ var app = express.createServer(); app.configure(function(){ app.use(express.staticProvider(__dirname + '...
JavaScript
0.000197
@@ -295,16 +295,8 @@ atic -Provider (__d
1bb76ea4133b7d374833f517957e0b4257c3d0e4
Set height for player.
app/sidebar/components/Player.js
app/sidebar/components/Player.js
import React, { Component } from 'react'; import Controls from './Controls.js'; export default class Player extends Component { constructor(props) { super(props); }; render() { return ( <div> <Controls /> </div> ) } };
JavaScript
0
@@ -178,24 +178,72 @@ render() %7B%0A + var style = %7B%0A 'height' : '50%25'%0A %7D%0A%0A return ( @@ -253,16 +253,30 @@ %3Cdiv + style=%7Bstyle%7D %3E%0A
f6992a1d5cdf7632bf5f5d62ab1aaf265bd9f2fe
Create flash message on failed login
app/sign-in/sign-in.directive.js
app/sign-in/sign-in.directive.js
{ angular .module('meganote.signIn') .directive('signIn', [ '$state', 'UsersService', ($state, UsersService) => { class SignInController { submit() { UsersService.login(this.user) .then( (data) => { $state.go('n...
JavaScript
0
@@ -80,16 +80,31 @@ state',%0A + 'Flash',%0A 'U @@ -132,16 +132,23 @@ ($state, + Flash, UsersSe @@ -280,39 +280,18 @@ hen( -%0A ( data -) =%3E %7B%0A - @@ -348,18 +348,16 @@ ined%7D);%0A - @@ -363,17 +363,17 @@ %7D -, +) %0A @@ -383,17 +383,18 @@ ...
dea6ff9273819596af0f55459590befb16d0ad5b
add projects page to router
troposphere/static/js/AppRoutes.react.js
troposphere/static/js/AppRoutes.react.js
define(function (require) { "use strict"; var React = require('react'), Router = require('react-router'), Route = Router.Route, Redirect = Router.Redirect, DefaultRoute = Router.DefaultRoute; var Master = require('./components/Master.react'), MasterTest = require('./components/Mast...
JavaScript
0
@@ -327,16 +327,96 @@ .react') +,%0A ProjectListPage = require('./components/projects/ProjectListPage.react') ;%0A%0A //%3C @@ -1217,34 +1217,39 @@ s%22 handler=%7B -MasterTest +ProjectListPage %7D/%3E%0A %3CR
9f26e7e0aafb6137cc8b621e2daecce41b769d9f
improve network sync percentage algorithmn
app/stores/NetworkStatusStore.js
app/stores/NetworkStatusStore.js
// @flow import { observable, action, computed} from 'mobx'; import Store from './lib/Store'; export default class NetworkStatusStore extends Store { @observable isConnected = false; @observable hasBeenConnected = false; @observable localDifficulty = 0; @observable networkDifficulty = 0; @observable isSynce...
JavaScript
0.000001
@@ -375,16 +375,55 @@ true;%0A%0A + _localDifficultyStartedWith = null;%0A%0A constr @@ -435,24 +435,24 @@ (...args) %7B%0A - super(.. @@ -806,31 +806,113 @@ %3E 0 -) %7B%0A return ( + && this._localDifficultyStartedWith != null) %7B%0A const relativeLocal = this.localDifficulty - this. +_ lo...
563e5e3d572b6b4dd40bc2c70ae97ce80418a87a
add details to redirects file (#15020)
website/redirects.js
website/redirects.js
module.exports = [ // Rename and re-arrange Autoscaling Internals section { source: '/nomad/tools/autoscaling/internals/:path*', destination: '/nomad/tools/autoscaling/concepts/:path*', permanent: true, }, { source: '/nomad/tools/autoscaling/concepts/checks', destination: '/nomad/tools/autos...
JavaScript
0
@@ -1,22 +1,913 @@ -module.exports = %5B +/**%0A * Define your custom redirects within this file.%0A *%0A * Vercel's redirect documentation:%0A * https://nextjs.org/docs/api-reference/next.config.js/redirects%0A *%0A * Relative paths with fragments (#) are not supported.%0A * For destinations with fragments, use an abs...
7252227ac66b79c3e394b7cf262ae1fae9cf652b
Remove externs in externs/closure-compiler.js
externs/closure-compiler.js
externs/closure-compiler.js
/** * @fileoverview Definitions for externs that are either missing or incorrect * in the current release version of the closure compiler we use. * * The entries must be removed once they are available/correct in the * version we use. * * @externs */ /** @type {number} */ Touch.prototype.force; /** @type {nu...
JavaScript
0.000002
@@ -256,511 +256,4 @@ */%0A -%0A/** @type %7Bnumber%7D */%0ATouch.prototype.force;%0A%0A%0A/** @type %7Bnumber%7D */%0ATouch.prototype.radiusX;%0A%0A%0A/** @type %7Bnumber%7D */%0ATouch.prototype.radiusY;%0A%0A%0A/** @type %7Bnumber%7D */%0ATouch.prototype.webkitForce;%0A%0A%0A/** @type %7Bnumber%7D */%0ATouch.protot...
61ee4e97610105b08ab640a2197059d31eed3a2b
make trace uid an `anim:true` attr + improve description
src/plots/attributes.js
src/plots/attributes.js
/** * Copyright 2012-2019, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var fxAttrs = require('../components/fx/attributes'); module.exports = { type: { valType: 'enumerat...
JavaScript
0.000023
@@ -2105,16 +2105,239 @@ : 'plot' +,%0A anim: true,%0A description: %5B%0A 'Assign an id to this trace,',%0A 'Use this to provide object constancy between traces during animations',%0A 'and transitions.'%0A %5D.join(' ') %0A %7D,%0A
10062e50bada3d2343c2af334c832817b1b9e67a
fix soundset
src/plugins/soundset.js
src/plugins/soundset.js
/* * SoundSet.js * 2014/11/28 * @auther minimo * This Program is MIT license. * */ phina.extension = phina.extension || {}; //サウンド管理 phina.define("phina.extension.SoundSet", { _member: { elements: null, bgm: null, bgmIsPlay: false, volumeBGM: 0.5, volumeSE: 0.5,...
JavaScript
0.000018
@@ -3814,16 +3814,8 @@ dia. -clone(). play
880b08cb402e0cdac54abc48089cf168285ca611
We need an entity name
blueprints/ember-cli-latex-maths/index.js
blueprints/ember-cli-latex-maths/index.js
module.exports = { //description: '', // locals: function(options) { // // Return custom template variables here. // return { // foo: options.entity.options.foo // }; // } // afterInstall: function(options) { // // Perform extra work here. // } afterInstall: function() { return t...
JavaScript
0.999999
@@ -32,16 +32,100 @@ ion: '', +%0A normalizeEntityName: function() %7B%7D, // no-op since we're just adding dependencies %0A%0A // l
3690b733a4fd306633422bdcdb3638a3327492c4
use { ammount cents } for convention
schema/sale/index.js
schema/sale/index.js
import { map } from 'lodash'; import { exclude } from '../../lib/helpers'; import moment from 'moment'; import gravity from '../../lib/loaders/gravity'; import cached from '../fields/cached'; import date from '../fields/date'; import Artwork from '../artwork'; import SaleArtwork from '../sale_artwork'; import Profile f...
JavaScript
0.000032
@@ -367,16 +367,58 @@ index';%0A +import %7B amount %7D from '../fields/money';%0A import %7B @@ -5678,58 +5678,186 @@ -min_amount_cents: %7B%0A type: GraphQLInt +amount: amount((%7B min_amount_cents %7D) =%3E min_amount_cents),%0A cents: %7B%0A type: GraphQLInt,%0A ...
8283ad382b47acf8d59d4c3b1d51c10062432ea5
Fix spacing issue on shuttle card
app/views/shuttle/ShuttleCard.js
app/views/shuttle/ShuttleCard.js
import React from 'react'; import { View, ActivityIndicator, StyleSheet, Text, TouchableHighlight } from 'react-native'; import { Actions } from 'react-native-router-flux'; import ShuttleOverview from './ShuttleOverview'; import ScrollCard from '../card/ScrollCard'; import ShuttleOverviewList from './ShuttleOverv...
JavaScript
0
@@ -2813,32 +2813,19 @@ ding -Top: 8, paddingBottom: 4 +Vertical: 8 , bo
878d5444eb19f68596b7125734b984e34bd49f40
Fix require paths
windows/test/main.js
windows/test/main.js
// Copyright © 2014 Intel Corporation. All rights reserved. // Use of this source code is governed by an Apache v2 // license that can be found in the LICENSE-APACHE-V2 file. var ShellJS = require("shelljs"); var Application = require("../src/Application"); var Util = require("../test-util/Util.js"); var _packa...
JavaScript
0.000001
@@ -235,24 +235,27 @@ require(%22../ +../ src/Applicat @@ -284,16 +284,19 @@ ire(%22../ +../ test-uti @@ -718,32 +718,35 @@ p = require(%22../ +../ src/Main%22);%0A @@ -1044,16 +1044,19 @@ ire(%22../ +../ src/Main
87d85de49ad9b8b0fe1097c7cdbafb4ff3bd9ba4
Update repository name
VeevaThumb.js
VeevaThumb.js
/** * VeevaThumb * https://github.com/dzervoudakes/VeevaThumb * * Auto-exports thumbnails for "Veeva" eDetailing presentations * * Copyright (c) 2014, 2016 Dan Zervoudakes * Released under the MIT license * https://github.com/dzervoudakes/VeevaThumb/blob/master/LICENSE */ (function() { // Collect open ...
JavaScript
0.000001
@@ -42,30 +42,30 @@ zervoudakes/ -V +v eeva -T +t humb%0A * %0A * @@ -242,22 +242,22 @@ oudakes/ -V +v eeva -T +t humb/blo
fa9f21dd65b6a278d04a68192b98593e68c63eb7
Call scroll handler on element mount, with an additional check in scroll handler for links without mounted elements yet
modules/mixins/Helpers.js
modules/mixins/Helpers.js
"use strict"; var React = require('react'); var ReactDOM = require('react-dom'); var animateScroll = require('./animate-scroll'); var scrollSpy = require('./scroll-spy'); var scroller = require('./scroller'); var __deferredScrollDestination = ''; var __deferredScrollOffset = 0; var Helpers = { Scroll: { prop...
JavaScript
0
@@ -1497,16 +1497,17 @@ if(! + element) @@ -1560,24 +1560,84 @@ %7D%0A%0A + if (! element) %7B%0A return;%0A %7D%0A%0A va @@ -3048,32 +3048,65 @@ %7D);%0A %7D%0A + scrollSpy.scrollHandler();%0A %7D,%0A compo
11c8351adf4a0e52cc7a866681aaf3584f1e26d5
Add range visualization to RuleGraph
ui/src/kapacitor/components/RuleGraph.js
ui/src/kapacitor/components/RuleGraph.js
import React, {PropTypes} from 'react'; import selectStatement from 'src/chronograf/utils/influxql/select'; import AutoRefresh from 'shared/components/AutoRefresh'; import LineGraph from 'shared/components/LineGraph'; const RefreshingLineGraph = AutoRefresh(LineGraph); export const RuleGraph = React.createClass({ pr...
JavaScript
0
@@ -2468,16 +2468,269 @@ %7D +%0A%0A case 'out of range':%0A case 'within range': %7B%0A const %7BrangeValue, value%7D = rule.values;%0A highlightStart = Math.min(+value, +rangeValue);%0A highlightEnd = Math.max(+value, +rangeValue);%0A break;%0A %7D %0A...
f232675cc98722e0d16698fa3b424c61a9b34bdd
create a favicon if it does not already exist
www/common/notify.js
www/common/notify.js
(function () { var Module = {}; var isSupported = Module.isSupported = function () { return typeof(window.Notification) === 'function'; }; var hasPermission = Module.hasPermission = function () { return Notification.permission === 'granted'; }; var getPermission = Module.getPe...
JavaScript
0.000001
@@ -1343,32 +1343,728 @@ %7D%0A %7D;%0A%0A + var DEFAULT_MAIN = '/customize/main-favicon.png';%0A var DEFAULT_ALT = '/customize/alt-favicon.png';%0A%0A var createFavicon = function () %7B%0A console.log(%22creating favicon%22);%0A var fav = document.createElement('link');%0A var ...
64a2940a0d80a200610b9e97da58cf08040a3734
fix webkit archiving (#4642)
browser_patches/webkit/concat_protocol.js
browser_patches/webkit/concat_protocol.js
const fs = require('fs'); const path = require('path'); const protocolDir = path.join(__dirname, './checkout/Source/JavaScriptCore/inspector/protocol'); const files = fs.readdirSync(protocolDir).filter(f => f.endsWith('.json')).map(f => path.join(protocolDir, f)); const json = files.map(file => JSON.parse(fs.readFileSy...
JavaScript
0
@@ -59,54 +59,135 @@ nst -protocolDir = path.join(__dirname, './checkout +checkoutPath = process.env.WK_CHECKOUT_PATH %7C%7C path.join(__dirname, 'checkout');%0Aconst protocolDir = path.join(checkoutPath, '. /Sou
eb8881f4d7b54bce41f37f297ecc5e238934bded
set X-Interface header to identify requests from the HAL Browser
vendor/hal-browser/js/hal/http/client.js
vendor/hal-browser/js/hal/http/client.js
HAL.Http.Client = function(opts) { this.vent = opts.vent; $.ajaxSetup({ headers: { 'Accept': 'application/hal+json, application/json, */*; q=0.01' } }); }; HAL.Http.Client.prototype.get = function(url) { var self = this; this.vent.trigger('location-change', { url: url }); var jqxhr = $.ajax({ url: url, ...
JavaScript
0
@@ -143,16 +143,46 @@ q=0.01' +, 'X-Interface': 'HAL Browser' %7D %7D);%0A%7D
4e9d54a9bf75adb79e5e5b8ef3869546a87a05ae
fix busview wrapping issues (#576)
views/transportation/bus/bus-stop-row.js
views/transportation/bus/bus-stop-row.js
// @flow import React from 'react' import {Platform, StyleSheet, Text} from 'react-native' import {Row, Column} from '../../components/layout' import {ListRow, Detail, Title} from '../../components/list' import type {FancyBusTimeListType} from './types' import type moment from 'moment' import * as c from '../../compone...
JavaScript
0
@@ -1385,16 +1385,25 @@ %3CColumn + flex=%7B1%7D style=%7B @@ -1427,16 +1427,16 @@ dding%7D%3E%0A - @@ -1720,24 +1720,34 @@ %3CDetail + lines=%7B1%7D %3E%0A @@ -1998,22 +1998,16 @@ %3CText -%0A style=%7B @@ -2052,37 +2052,8 @@ ail%7D -%0A numberOfLines=%7B1%7D%0A %3...
1ecc460686221a87e89806cc4614d968d71b18e3
Fix a backup and restore issue from the settings
www/settings/main.js
www/settings/main.js
// Load #1, load as little as possible because we are in a race to get the loading screen up. define([ '/bower_components/nthen/index.js', '/api/config', '/common/dom-ready.js', '/common/requireconfig.js', '/common/sframe-common-outer.js' ], function (nThen, ApiConfig, DomReady, RequireConfig, SFCom...
JavaScript
0
@@ -1822,77 +1822,107 @@ -if (d === %22full%22) %7B%0A // We want shared folders too +Cryptpad.getUserObject(function (obj) %7B%0A if (obj.error) %7B return void cb(obj); %7D %0A @@ -1938,126 +1938,90 @@ -%7D%0A - Cryptpad.getUserObject(function (ob...
bdb4f2630e80b3567923f47a041f2523613479ba
Clear black
game/assets/scripts/main.js
game/assets/scripts/main.js
JavaScript
0.000008
@@ -0,0 +1,202 @@ +var resolution;%0A%0Afunction update(dt)%0A%7B%0A%7D%0A%0Afunction render()%0A%7B%0A // Cache latest resolution each frame%0A resolution = Renderer.getResolution();%0A%0A // Clear black%0A Renderer.clear(Color.BLACK);%0A%7D%0A
1611ff6263e6e146867a54fcaa5d8603d77d2156
Update index.ios.js
autoHeightWebView/index.ios.js
autoHeightWebView/index.ios.js
'use strict'; import React, { PureComponent } from 'react'; import { Animated, StyleSheet, ViewPropTypes, WebView } from 'react-native'; import PropTypes from 'prop-types'; import { isEqual, setState, getWidth, isSizeChanged, handleSizeUpdated, domMutationObserveScript, getCurrentSize } from './common...
JavaScript
0.000001
@@ -5157,24 +5157,67 @@ tateChange%7D%0A + allowsInlineMediaPlayback=%7Btrue%7D%0A /%3E%0A
72ce6406eb17f1c77721b2a1bf715f41d4228220
modify active channel logic when rejoining channels after reconnection
src/redux/chat/index.js
src/redux/chat/index.js
import Config from '~/core/config'; import Event from '~/helpers/Event'; import Error from '~/helpers/Error'; import { toggleSideBar } from '~/redux/navigation'; import { nth, omit, tail, without } from 'lodash'; const INITIALIZE_CHAT = 'INITIALIZE_CHAT'; const RESET_CHAT = 'RESET_CHAT'; const JOIN_CHANNEL = 'JOIN_CH...
JavaScript
0
@@ -1110,32 +1110,72 @@ activeChannel: + (action.rejoin) ? state.activeChannel : action.channel, @@ -4860,24 +4860,44 @@ vents : %5B%5D,%0A + rejoin,%0A %7D)
056953f2c1cbb9506edf0dcdbc4bfcc30fe0d93c
Fix cropping of canvas for float sized elements
src/renderers/Canvas.js
src/renderers/Canvas.js
_html2canvas.Renderer.Canvas = function(options) { options = options || {}; var doc = document, safeImages = [], testCanvas = document.createElement("canvas"), testctx = testCanvas.getContext("2d"), canvas = options.canvas || doc.createElement('canvas'); function createShape(ctx, args) { ctx.beginPa...
JavaScript
0
@@ -3679,16 +3679,26 @@ width = +Math.ceil( bounds.w @@ -3697,24 +3697,25 @@ bounds.width +) ;%0A ne @@ -3731,16 +3731,26 @@ eight = +Math.ceil( bounds.h @@ -3754,16 +3754,17 @@ s.height +) ;%0A
4caab5d11b93f3d2d1fe721325c5b70425895a28
Rename selectors
q.js
q.js
function q(path, matcher) { path = (typeof path === 'string') ? path.split("/").filter(nonEmpty) : path; matcher = matcher || valueDefined; var selectors = asSelectors(path, matcher); var defaultValue = undefined; function selectFrom(item) { if (typeof item === 'undefined') { ...
JavaScript
0.000001
@@ -1137,29 +1137,27 @@ rs.push( -fieldSelector +selectField (spec.fi @@ -1253,32 +1253,40 @@ rs.push( -anyIndexSelector +selectFirstMatchingIndex (remaini @@ -1407,36 +1407,27 @@ rs.push( -numericIndexSelector +selectIndex (spec.in @@ -1927,21 +1927,19 @@ ion -fieldSelector +selectField (fie @@ -2035,28 +2035...
65d4d05d9516c70f0e78813d49a97c3b1cb4674e
build with scale param
ngGoogleStaticMaps.min.js
ngGoogleStaticMaps.min.js
!function(){function e(){var e,t;this.useApiKey=function(e){t=e},this.forceProtocol=function(t){return angular.isString(t)?(e=t?t.replace(/:$/,"")+":":t,this):e},this.$get=[function(){return{getProtocol:function(){return e||""},getApiKey:function(){return t||""}}}]}function t(e){function t(t,r,i){var o=r[0];if(!i.mapWi...
JavaScript
0
@@ -24,17 +24,17 @@ )%7Bvar e, -t +r ;this.us @@ -53,17 +53,17 @@ tion(e)%7B -t +r =e%7D,this @@ -86,17 +86,17 @@ unction( -t +r )%7Breturn @@ -117,17 +117,17 @@ ing( -t +r )?(e= -t?t +r?r .rep @@ -144,17 +144,17 @@ %22%22)+%22:%22: -t +r ,this):e @@ -249,17 +249,17 @@ %7Breturn -t +r %7C%7C%22%22%7D%7D%7...
c0bb6aa6a4a138551756c7d6d51ef5652ba41157
Attach the knownLength value to the body stream
node_modules/form-data.js
node_modules/form-data.js
'use strict' var path = require('path') var mime = require('mime-types') function generate (options) { var parts = [] Object.keys(options.multipart).forEach(function (key) { var part = options.multipart[key] parts.push({ 'content-disposition': 'form-data; name="' + key + '"' + getContentDi...
JavaScript
0.000052
@@ -67,16 +67,51 @@ types')%0A + , isstream = require('isstream')%0A %0A%0Afuncti @@ -248,16 +248,179 @@ rt%5Bkey%5D%0A +%0A var body = part.value %7C%7C part%0A if (isstream(body) && part.options && part.options.knownLength) %7B%0A body._knownLength = part.options.knownLength%0A %7D%0A%0A part @...
b32b0ebecb992900ece16c112a7c96af6c9c3041
Remove logs
tcms/media/js/ckeditor_config.js
tcms/media/js/ckeditor_config.js
CKEDITOR.editorConfig = function(config) { console.log("ACA"); config.toolbar_tCMS = [ ['Source'], ['Cut','Copy','Paste','PasteText','PasteFromWord'], ['Undo','Redo','-','Find','Replace','-','Link','Unlink','Anchor'], ['Outdent','Indent','Blockquote','CreateDiv'], ['JustifyLeft','JustifyCenter','...
JavaScript
0.000001
@@ -42,33 +42,8 @@ %7B%0D%0A - console.log(%22ACA%22);%0D%0A %09con @@ -437,34 +437,8 @@ %5D;%0D%0A - console.log(%22ACA2%22);%0D%0A %7D;%0D%0A
a83fa3539c31885b76f2102c4359dfa985000626
fix mongoose versioning
db.js
db.js
const mongoose = require('mongoose'); exports.mongoose = mongoose; // -------------------------------------------------------------------------------------- var logs_schema = mongoose.Schema({ timestamp : Date, realm : String, viscountry : String, visinst : String, csi : String, pn : String, result : Stri...
JavaScript
0.000002
@@ -2664,16 +2664,39 @@ Number%0A +%7D,%0A%7B versionKey: false %7D);%0A// -
bcc51bb45735eeb273de40d969d82ec0e8636e81
Fix ga.js hostname control
ga.js
ga.js
// Analytics for Vaadin Components (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-an...
JavaScript
0.005199
@@ -423,16 +423,30 @@ %7B%0A if( +/vaadin/.test( window.l @@ -465,31 +465,9 @@ name - === 'vaadin.github.io' +) ) %7B%0A
de891b326b79969085dedaf2463fb7abbd96cb64
remove ioctl pledge
pp.js
pp.js
#!/usr/bin/env node // Quick example of a pledged node app. // usage: // $ echo '{"a":1,"b":3}' | ./pp.js var data = '', pledge = require('node-pledge'); pledge.init('stdio ioctl rpath wpath tty'); process.stdin.setEncoding('utf8'); process.stdin.on('readable', function() { var chunk = process.stdin.read(); ...
JavaScript
0
@@ -172,14 +172,8 @@ dio -ioctl rpat
3c71172f801581f92d08c192dc7cf250c98d6317
test to see if the fetch event handler function is breaking resitration
sw.js
sw.js
this.addEventListener('install', function(event) { event.waitUntil( caches.create('v1').then(function(cache) { return cache.add( '/sw-test/', '/sw-test/index.html', '/sw-test/style.css', '/sw-test/app.js', '/sw-test/image-list.js', '/sw-test/star-wars-logo.jpg...
JavaScript
0.000004
@@ -1075,19 +1075,16 @@ // )%7D;%0A%0A -// this.add @@ -1124,19 +1124,16 @@ vent) %7B%0A -// event. @@ -1145,19 +1145,16 @@ ndWith(%0A -// cach @@ -1196,25 +1196,22 @@ ion() %7B%0A -// - return e @@ -1251,26 +1251,24 @@ onse) %7B%0A -// caches. @@ -1255,25 +1255,24 @@ ) %7B%0A ...
67ea5c184f39e934f21c008dee29b3e53389e34a
remove bogus pointer zeroing code
mark_sweep.js
mark_sweep.js
Allocation = function(start, length) { this.start = start; this.length = length; this.marked = false; }; MarkSweep = function(heapSize, heapSegmentSize) { this.heapSize = heapSize || 262138; this.heap = new Int32Array(this.heapSize); this.heapSegmentSize = heapSegmentSize || 262138; this.he...
JavaScript
0.000001
@@ -1838,17 +1838,17 @@ if (a -= +! == undef @@ -1859,46 +1859,8 @@ ) %7B%0A -%09%09this.heap%5Bstart%5D = 0;%0A%09 %7D else %7B%0A %09%09a.
a318287bc9449499cfea594bc328f85a4e63c6c8
修复如果用户首次未点授权登录后面在个人页点"重新授权登录"始终无效的问题
pages/my/index.js
pages/my/index.js
const app = getApp() const CONFIG = require('../../config.js') const WXAPI = require('../../wxapi/main') Page({ data: { balance:0.00, freeze:0, score:0, score_sign_continuous:0 }, onLoad() { }, onShow() { let that = this; let userInfo = wx.getStorageSync('userInfo') if (!userInf...
JavaScript
0
@@ -2294,16 +2294,49 @@ tion()%7B%0A + app.navigateToLogin = false;%0A app.
5cc77cfae7fcc95b5bbddc24ebb81a1539d357b5
improve footer style
App.js
App.js
import React, { Component } from 'react'; import { Text, View, StyleSheet, Image } from 'react-native'; import Config from 'react-native-config'; import ForecastView from './jsx/ForecastView'; export default class App extends Component { render() { let apiBaseUrl = Config.INTENSITY_API_BASE_URL let a...
JavaScript
0.000001
@@ -790,20 +790,27 @@ t%7D%3EData -from +provided by the Nat @@ -819,16 +819,59 @@ nal Grid +. Visit carbonintensity.org.uk for details. %3C/Text%3E%0A @@ -1254,18 +1254,17 @@ height: -10 +8 0,%0A f @@ -1458,44 +1458,42 @@ -padd +marg in -g Left: -2 +1 0,%0A -padd +marg in -g Right: -2 +1 ...
406559e54a1c62ba09b7f088be3db1d6dcec244c
Fix body template runtime for Meteor 0.8.3 Closes #50
plugin/handler.js
plugin/handler.js
var sourceHandler = function (compileStep) { // XXX Code copied from // packages/templating/plugin/compile-template.js:6 if (! compileStep.arch.match(/^browser(\.|$)/)) return; // Parse and compile the content var content = compileStep.read().toString('utf8'); var parser = new Parser(content, compile...
JavaScript
0
@@ -704,87 +704,154 @@ %22%5Cn -UI.body.contentParts.push(UI.Component.extend(%7B%22;%0A jsContent += %22render: %22 +Template.__body__.__contentParts.push(Blaze.View(%22;%0A jsContent += %22'body_content_'+Template.__body__.__contentParts.length, %22;%0A jsContent + += Spa @@ -924,17 +924,16 @@ ent += ...
3a0bf28b364b896b8e38ab3930f4d3e8d310b2c3
remove debug shit
plugins/lastfm.js
plugins/lastfm.js
var request = require('request'); var nowplaying = function(user, apikey, bot, event){ console.log('http://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&user=' + user + '&api_key=' + apikey + '&format=json'); request('http://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&user=' + user + '&api_key=' + ...
JavaScript
0.000029
@@ -84,139 +84,8 @@ t)%7B%0A -console.log('http://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&user=' + user + '&api_key=' + apikey + '&format=json');%0A %09req
f0b14b14741ad6ddc7ee81c4fff27889a602b451
add required semicolons
app.js
app.js
const express = require('express'); const path = require('path'); const logger = require('morgan'); const cookieParser = require('cookie-parser'); const bodyParser = require('body-parser'); const compression = require('compression'); const session = require('express-session'); const csurf = require('csurf'); const tok...
JavaScript
0.999999
@@ -1889,16 +1889,17 @@ CE'%5D %7D)) +; %0A%7D else @@ -1917,16 +1917,17 @@ csurf()) +; %0A%7D%0A%0Aapp.
bb7145c65351378e34107395f9e178fd32654d99
build fix
app.js
app.js
/** * Module dependencies. */ var express = require('express') , routes = require('./routes') , user = require('./routes/user') , jquery = require('./routes/jquery') , http = require('http') , https = require('https') , fs = require('fs') , path = require('path'); var environment = proc...
JavaScript
0.000001
@@ -865,18 +865,16 @@ ;%0D%0A %7D -); %0D%0A%7D);%0D%0Aa
b3140168312827dc7ae10ec165a7586e9602db8e
add command
app.js
app.js
var dotenv = require('dotenv'); dotenv.load(); var express = require('express'); var app = express(); var server = require('http').createServer(app); app.use(express.static(__dirname + '/tmp')); var bodyParser = require('body-parser'); app.use(bodyParser.urlencoded({ extended: true })); var fs = require('fs'); var re...
JavaScript
0.000292
@@ -778,16 +778,67 @@ res) %7B%0A + if(req.body.Body.substring(0, 3) === 'play') %7B%0A functi @@ -846,16 +846,21 @@ n search +Music (query, @@ -861,24 +861,26 @@ uery, cb) %7B%0A + request%0A @@ -1295,24 +1295,38 @@ cb(null);%0A + %7D%0A %7D%0A @@ -1346,21 +1346,21 @@ %7...
dfa0a2a8561e97776977e52e2e303c88fccae1a3
Update lint
app.js
app.js
'use strict'; /** * Module dependencies. */ var express = require('express'); //var routes = require('./routes'); //var soundCloud = require('./routes/soundCloud.js'); //var api = require('./routes/api.js'); var http = require('http'); //var path = require('path'); //var MongoStore = require('connect-mongo')(expres...
JavaScript
0.000001
@@ -800,19 +800,16 @@ error(er -ror ) %7B%0A co @@ -844,12 +844,10 @@ + er -ror ) +; %0A%7D); @@ -943,16 +943,17 @@ ected.') +; %0A%7D);%0A%0A//
27dcad547599bf80af010d7090419f33c2af076c
add routes
app.js
app.js
var path = require('path'); var express = require('express'); var config = require('./config').config; var app = express(); var routes = require('./routes'); var userproxy = require('./proxy/userproxy'); /** * configuration in all env **/ app.configure(function(){ var viewsRoot = path.join(__dirname, 'views'); ...
JavaScript
0.000006
@@ -698,17 +698,16 @@ %0A%7D);%0A// - set rout @@ -709,18 +709,16 @@ routes%0A -// routes(a
62afdb86823cff2c0e15df0724ed37f9cb177d03
Fix PORT
app.js
app.js
const restify = require("restify"); const builder = require("botbuilder"); const api = require("./consumer"); // Create chat connector for communicating with the Bot Framework Service console.log(process.env); const connector = new builder.ChatConnector({ appId: process.env.MICROSOFT_APP_ID, appPassword: proces...
JavaScript
0.000354
@@ -4615,12 +4615,12 @@ env. -port +PORT %7C%7C
8f655ed45c21b25766878c583d495286fbfaf584
add debug
app.js
app.js
var express = require('express'), path = require('path'), config = require('./config'), async = require('async'), gpio = require('pi-gpio'), app = express(); app.set('port', process.env.PORT || 3001); app.use('/', express.static(__dirname + '/public')); function delayPinWrite(pin, value, callback) { setTimeout...
JavaScript
0.000001
@@ -435,16 +435,43 @@ res) %7B%0A +%09console.log('Ping/Pong');%0A %09res.jso
6fd786c529910398c28e7edb9e002b47030341c4
change rule before grow
app.js
app.js
/** * @Author: Paul Joannon * @Date: 2016-04-15T23:45:19+02:00 * @Email: hello@pauljoannon.com * @Last modified by: Paul Joannon * @Last modified time: 2016-04-19T22:32:53+02:00 */ 'use strict'; const express = require('express'); const logger = require('./src/logger'); let app = express(); let roomManager =...
JavaScript
0
@@ -163,19 +163,19 @@ -04- -19T22:32:53 +20T00:43:00 +02: @@ -2329,32 +2329,64 @@ if ( +(room.size%5B0%5D * room.size%5B1%5D) - room.members.cou @@ -2405,44 +2405,12 @@ ue) -%3E= (room.size%5B0%5D * room.size%5B1%5D) / 2 +%3C= 3 ) %7B%0A
d597481e63afb4c7540af7f9cf9e39b547496cc3
fix negative milliseconds for update
app.js
app.js
var express = require('express'); var exphbs = require('express-handlebars'); var app = express(); var redis = require('redis').createClient(); var moment = require('moment'); const path = require('path'); app.engine('hbs', exphbs({defaultLayout: 'index', extname: '.hbs', layoutsDir: 'views/'})); app.set('view engin...
JavaScript
0.000182
@@ -988,25 +988,25 @@ on(n -ow.diff(next_time +ext_time.diff(now )).a
19eecaa18d9749cfa6d2958b6c58296ec59e2491
resolve #2
app.js
app.js
var express = require('express'), app = express(), server = require('http').createServer(app), io = require('socket.io').listen(server), colors = require('colors'), mongoose = require('mongoose'), connectCounter = "0"; server.listen(3000); app.use(express.static(__dirname + '/public')); app.ge...
JavaScript
0.000085
@@ -2718,16 +2718,17 @@ ionState + = %22activ @@ -2727,24 +2727,24 @@ = %22active%22;%0A - cons @@ -3000,16 +3000,17 @@ in -1 +2 minute +s %22, t @@ -3202,46 +3202,8 @@ ();%0A - motionState = %22none%22;%0A @@ -3230,25 +3230,24 @@ , 1200000);%0A -%0A %7D);%0A%0A @@ -343...
6b43d505fd0e0de14a754eabaabe32088b76d585
no favicon
app.js
app.js
var express = require('express'); var http = require('http'); var path = require('path'); var favicon = require('static-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var session = require('express-session'); var RedisStore = require('con...
JavaScript
0.999928
@@ -87,49 +87,8 @@ ');%0A -var favicon = require('static-favicon');%0A var
8d4c465319a91928abbcccf870029315f2ab7eb9
Make it clearer which app has started in logging
app.js
app.js
'use strict'; var express = require( 'express' ); var app = express(); var bodyParser = require( 'body-parser' ); var config = require( './config/config.json' ); for ( var item in config ) { app.set( item, config[ item ] ); } app.use( bodyParser.json() ); app.use( bodyParser.urlencoded( { extended: true } ) ...
JavaScript
0.005752
@@ -411,19 +411,34 @@ e.log( ' -app +enketo-transformer running
be91527e0af231b948bc08ee308c5e4055b9f107
improve message :sparkles:
app.js
app.js
var restify = require('restify'); var builder = require('botbuilder'); var cheerio = require('cheerio'); var request = require('request'); var PDFParser = require('pdf2json'); var textract = require('textract'); //========================================================= // Bot Setup //===============================...
JavaScript
0.000001
@@ -1908,16 +1908,27 @@ dumb bot + :innocent: . So far
4df44bce5ac4487ae7af3d69e1a50a7d1cacac51
rename 'svgIcons' option to 'icons'
protoss-config.js
protoss-config.js
module.exports = { templates: { src: './src/**/*.jade', filterFunc: false, inhBaseDir: './src/', dest: './build/', data: {}, prettify: true, hashes: { enabled: true, build_dir: './', src_path: './' }, w3c: { src: './build/*.html' } }, styles: { ...
JavaScript
0.000047
@@ -1615,12 +1615,9 @@ %0A%0A -svgI +i cons
18dfd7d3090e9c28183f8eab126207d19e5258cb
change credentials
app.js
app.js
// BASE SETUP // ============================================================================= var path = require('http'); var path = require('https'); var path = require('path'); var bodyParser = require('body-parser'); var express = require('express'); var request = require('request'); var app ...
JavaScript
0.000001
@@ -654,43 +654,47 @@ = ' -https://ibm-watson-ml.myb +%3Cfrom your service instance on B luemix -.net +%3E ';%0Av @@ -720,136 +720,47 @@ = ' -bIVJmunsNzKFvCIypDtdch8Vc7cCIf0+b+3zkFFuu280aR4dSem3Pwi6xXuKe0eiHxGxQ3pIogjgEOjN0TGDTcL0h32gVzPkwMbmHXNpi+FQYUqQmv73SQJrb1WXWeZv +%3Cfrom your service instance on Bluemix%3...
fde9be1018cdf6e5c8105b52632505c80369fe78
Change dev port
app.js
app.js
/** * Module dependencies. */ var express = require('express'); var routes = require('./routes'); var user = require('./routes/user'); var http = require('http'); var path = require('path'); require('colors'); var app = express(); // all environments app.set('port', process.env.PORT || 8080); app.set('views', pat...
JavaScript
0.000001
@@ -288,17 +288,17 @@ RT %7C%7C 80 -8 +0 0);%0Aapp.
c83523cb6e7630a6fa429a00f51c059e0986ca8b
add WEB_CONCURRENCY
app.js
app.js
const cluster = require('cluster'); if (cluster.isMaster) { let workerCount = +(process.env.WORKERS || require('os').cpus().length); while (workerCount--) { cluster.fork(); } cluster.on('exit', deadWorker => { let worker = cluster.fork(); console.log(`Worker ${deadWorker.process.pid} replaced by...
JavaScript
0.999664
@@ -94,45 +94,27 @@ nv.W -ORKERS %7C%7C require('os').cpus().length +EB_CONCURRENCY %7C%7C 1 );%0A%0A
dd8e15c0f1f81b2ea6fcb54f66c2e8060918ef12
check that door openings happen during the same 'door opening session', even when the order is correct and quiet period has passed.
app.js
app.js
var spawn = require('child_process').spawn; var https = require('https'); var Bacon = require('baconjs'); var _ = require('lodash'); var HOUMIO_SITEKEY = process.env.HOUMIO_SITEKEY; var HOUMIO_SCENEID = process.env.HOUMIO_SCENEID; var OUTER_DOOR_BLE_UUID = process.env.OUTER_DOOR_BLE_UUID; var INNER_DOOR_BLE_UUID = pro...
JavaScript
0
@@ -1225,24 +1225,179 @@ ow()%0A%09%7D;%0A%7D%0A%0A +function isWithinSameDoorOpeningSession(previous, current, quietPeriodMs) %7B%0A%09return current.timestamp - previous.timestamp %3C REQUIRED_QUIET_PERIODS_MS;%0A%7D%0A%0A function isD @@ -1535,74 +1535,72 @@ && -current.timestamp - previous.timestamp %3C REQUIR...
14df8e1af0f0789dc63b1d37ce90d1e63359ee4d
add proxy support
app.js
app.js
const _ = require('lodash') const express = require('express') const path = require('path') const favicon = require('serve-favicon') const logger = require('morgan') const cookieParser = require('cookie-parser') const bodyParser = require('body-parser') const pr...
JavaScript
0
@@ -698,16 +698,60 @@ ress()%0A%0A +// %E4%BB%A3%E7%90%86%E8%AE%BE%E7%BD%AE%0Aapp.set('trust proxy', 'loopback')%0A%0A // %E8%A7%86%E5%9B%BE%E5%AD%98%E6%94%BE%E4%BD%8D
1a1b71aa9f4db2c349400a19927e95b1b46400b2
fix syntax errors
app.js
app.js
'use strict'; var userName = prompt('Greetings! What is your name?'); console.log(userName + ' started the guessing game!'); alert('Welcome ' + userName + ', glad you\'re here!'); var answer1 = prompt('Do I listen to Avenged Sevenfold?').toLowerCase(); if (answer1 === 'yes' || answer1 === 'y') { console.log(userNam...
JavaScript
0.000009
@@ -585,16 +585,18 @@ === 'y') + %7B %0A conso
0cc27c29d2a9ed3de77611f6a5e456fcdaf57b7f
support incluse web h5 client
app.js
app.js
var express = require('express'), bodyParser = require('body-parser'), app = express(), port = 3000; var routes = require('./lib/routes'); app.use('/api/', routes.getRouter()); //obsługa JSON z POST app.use(bodyParser.urlencoded({extended: true})); app.use(bodyParser.json()); var db = require.main.require...
JavaScript
0
@@ -89,16 +89,82 @@ ress(),%0A + ejs = require('ejs'),%0A favicon = require('serve-favicon'),%0A port @@ -172,16 +172,16 @@ = 3000;%0A - var rout @@ -215,46 +215,9 @@ );%0A%0A -app.use('/api/', routes.getRouter()); %0A + %0A//o @@ -368,16 +368,355 @@ db=db;%0A%0A +app.use('/api/', routes.getRouter());...
f4ad5a07e2b25ac2b803e0bab54fbdfe4d3ba6ac
Use the API method available to get a human readbale UA string
app.js
app.js
var express = require('express'); app = express(), polyfills = require('./index'), useragent = require('useragent'), uglify = require('uglify-js'), AliasResolver = require('./aliases'); var aliasResolver = new AliasResolver([ function(polyfill) { var aliases = polyfills.aliases[polyfill.name]; ...
JavaScript
0
@@ -802,93 +802,8 @@ q);%0A -%09var readableUAString = ua.family + ' ' + ua.major +'.' + ua.minor + '.' + ua.patch;%0A %09var @@ -988,24 +988,20 @@ ' + -readableUAString +ua.toAgent() %0A%09%5D;
8533a1856e59bc3334d0b9f4c35415d87bbffc55
use cluster
app.js
app.js
/** * Module dependencies. */ var express = require('express'); var routes = require('./routes'); var img = require('./routes/image'); var upload = require('./routes/upload'); var http = require('http'); var path = require('path'); var config = require("./config"); exports.apppath = __dirname; var fs=require('fs'...
JavaScript
0.000002
@@ -1,9 +1,8 @@ -%0A /**%0A * M @@ -267,45 +267,17 @@ );%0A%0A -exports.apppath = __dirname;%0A%0A var fs -= + = requ @@ -299,17 +299,19 @@ errorLog -= + = fs.creat @@ -343,15 +343,17 @@ log, + %7Bflags: + 'a'%7D @@ -431,17 +431,19 @@ ('%5B' -+ + + new Date +'%5D' @@ -442,13 +442,17 @@ Date -+'%5D'+ +...
f6f6c9701fadd84cf7a04a6e34a8d84b115be469
Add decay to distance, add device info to /
app.js
app.js
// ---- // -- Setup // ---- var express = require('express'); var noble = require('noble'); var SpotifyWebApi = require('spotify-web-api-node'); var config = require('./config'); var app = express(); var spotifyApi = new SpotifyWebApi(config.spotify); var assocs = config.assocs; var current = config.default; // ---...
JavaScript
0
@@ -1181,23 +1181,406 @@ %7B%0A -res.send('home' +spotifyApi.getMyDevices().then(function(data) %7B%0A var response = '%3Ctable%3E%3Cthead%3E%3Cth%3EName%3C/th%3E%3Cth%3EType%3C/th%3E%3Cth%3EID%3C/th%3E%3C/thead%3E';%0A for (var i = 0; i %3C data.body.devices.length; i++) %7B%0A response += '%3Ctr%3E%3Ctd...
a6933ce8a013d52dd8dfbbc7fc239a2c2960e625
Remove whitespace
app.js
app.js
'use strict' const express = require('express'); const fs = require('fs'); const bodyParser = require('body-parser'); const mongoose = require('mongoose'); const logger = require('./utilities/logger'); const httpLog = require('morgan') const path = require('p...
JavaScript
0.999999
@@ -19,29 +19,24 @@ express - = require('e @@ -58,29 +58,24 @@ fs - = require('f @@ -96,21 +96,16 @@ yParser - = requir @@ -139,21 +139,16 @@ goose - = requir @@ -175,29 +175,24 @@ logger - = require('. @@ -225,29 +225,24 @@ httpLog - = require('m ...
0de1ee173c28509b4bfae5c98311391cb747afd6
Double next is bad
app.js
app.js
/* PlanHub https://planhub.me Licensed under the MIT License. */ var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var session = require('express-...
JavaScript
0.999997
@@ -2956,24 +2956,26 @@ e%22)), 1);%0A%09%09 +// next();%0A%09%7D e
712a93a0465151e3af78d88a04c247786081035a
Use config-d host & port
app.js
app.js
var express = require('express'); var session = require('cookie-session') var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var config = require('./config/config.js'); var app = expres...
JavaScript
0
@@ -1722,32 +1722,19 @@ t', -process.env.PORT %7C%7C 3000 +config.port );%0A%0A @@ -1773,16 +1773,29 @@ 'port'), + config.host, functio
09d6583e0db577a9875f9199f82db518e8b00a4c
Change app.js
app.js
app.js
"use strict"; // Load configuration and initialize server var anyfetchProvider = require('anyfetch-provider'); var serverConfig = require('./lib/'); var server = anyfetchProvider.createServer(serverConfig.connectFunctions, serverConfig.updateAccount, serverConfig.workers, serverConfig.config); // Expose the server m...
JavaScript
0.000003
@@ -222,56 +222,67 @@ ns, -serverConfig.updateAccount, serverConfig.workers +__dirname + '/lib/workers.js', __dirname + '/lib/update.js' , se
21d5e584f1e8f9c975efdcb34fda205a1572fe0a
add keys, comments, passport, routes // databaseurl
app.js
app.js
var express = require('express'), app = express(), mongoose = require('mongoose'), bodyParser = require('body-parser'), methodOverride = require('method-override'), flash = require('connect-flash') var url = process.env.DATABASEURL || 'http://localhost/keys-to-teach' mongoose.connect(url); app.se...
JavaScript
0
@@ -133,160 +133,515 @@ -methodOverride = require('method-override'),%0A flash = require('connect-flash')%0A%0Avar url = process.env.DATABASEURL %7C%7C 'http://localhost/keys-to-teach' +passport = require('passport'),%0A LocalStrategy = require('passport-local'),%0A methodOverride = require('method-overr...
5566698c36fe521eface725eeb0cf8dd705c5aa7
Refactor readdir/readdfile
app.js
app.js
// Globals for now.. var userPrompt = 'guest@title:/$ '; var path = '/'; function getChar(event) { return String.fromCharCode(event.keyCode || event.charCode); } function newline(element, text) { var p = document.createElement('p'); p.innerText = text; element.appendChild(p); } function readfile(file, callba...
JavaScript
0
@@ -543,589 +543,8 @@ %0A%7D%0A%0A -function readdir(directory, callback) %7B%0A fetch(directory, %7Bmethod: 'get'%7D).then(function(response) %7B%0A if (response.status === 200) %7B%0A return response.text();%0A %7D else %7B%0A return '';%0A %7D%0A %7D, function(resp) %7B console.log('failed'); %...
1ac76d45e70cd623a80c0b73666bb8d78c07c1cf
use PORT env variable with 1234 as a fallback
app.js
app.js
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var MongoClient = require('mongodb').MongoClient; var handlebars = require('express-handlebars'); va...
JavaScript
0
@@ -3304,16 +3304,36 @@ p_port = + process.env.PORT %7C%7C 1234;%0A%0A
332d93bf9d43e68c0b3f08590b2d52087a8eba6b
fix misled log
app.js
app.js
'use strict'; // Include dependencies var log = require('npmlog'); var express = require('express'); var http = require('http'); var config = require('./config/environment'); var mongoose = require('mongoose'); // connect to mongo mongoose.connect('mongodb://localhost/test'); // create app object var app = express()...
JavaScript
0.000001
@@ -594,12 +594,10 @@ ) %7B%0A - +%09%09 log. @@ -613,78 +613,8 @@ ress -', 'Listening on port %25s', app.get('port'));%0A%09%09// console.log('Express ser
4e21e761ad2609c101ff94444e0a03d7668e1539
Remove flash messages view helper
app.js
app.js
/** * Module dependencies. */ var express = require('express'); var flash = require('express-flash'); var less = require('less-middleware'); var path = require('path'); var mongoose = require('mongoose'); var passport = require('passport'); var expressValidator = require('express-validator'); /** * Load controlle...
JavaScript
0
@@ -1629,99 +1629,8 @@ ));%0A -app.use(function(req, res, next) %7B%0A res.locals.flash = req.flash.bind(req);%0A next();%0A%7D);%0A app.
dcc6bce02285e71e5ebe27b1eafb00b237a67c49
Use deprecated parameter for now.
app.js
app.js
var express = require('express'); var path = require('path'); var fs = require('fs'); var favicon = require('static-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var mongoose = require('mongoose'); var session = require('express-session'...
JavaScript
0
@@ -891,17 +891,16 @@ ration%0A%0A -%0A // view @@ -1317,37 +1317,14 @@ ore( -require('redis-url').connect( +%7Burl: conf @@ -1341,17 +1341,17 @@ redisUri -) +%7D )%0A%7D));%0A%0A
9033f2ea01b12e3337aa0817f9be4706cf6b162c
Move var declaration to top of function
app.js
app.js
var config = require('./config'), httpServer, express = require('express'), partials = require('express-partials'), authManager = require('./lib/authentication'), passport = authManager.passport, socketAuthenticator = require('./lib/socket-auth'), refresh = require('./lib/refresh.js'), p...
JavaScript
0
@@ -2378,16 +2378,255 @@ cket) %7B%0A + var unauthenticated_timeout = config.unauthenticated_timeout !== undefined ?%0A config.unauthenticated_timeout : 10 * 1000;%0A%0A var autoDisconnect = setTimeout(function() %7B%0A socket.disconnect();%0A %7D, unauthenticated_timeout);%0A%0A socke @@ -3119,247...
85f0c5030398578e207eaba93e64614e0b1cc306
drop too many connexions
app.js
app.js
var Twit = require('twit'); var express = require('express'); var http = require('http'); var ws = require('ws'); var app = express(); var S = { PORT: 80, IP: "195.154.48.49" }; var version = Math.round(Math.random()*65535).toString(16); console.log("Version:", version); var T = new Twit({ consumer_key:...
JavaScript
0.000001
@@ -606,16 +606,31 @@ = %5B%5D;%0A%0A +var ips = %7B%7D;%0A%0A var stre @@ -2268,16 +2268,308 @@ ddress;%0A +%0A if (ip) %7B%0A if (ips%5Bip%5D) %7B%0A ips%5Bip%5D++;%0A if (ips%5Bip%5D %3E 20) %7B%0A var id = clients.indexOf(client);%0A clients.splice(id, 1);%0A client.close();%0...
5d826f26642d2f8127d959e88da5f146abfa5c59
Add test console.log
app.js
app.js
var http = require('http'); var https = require('https'); var path = require('path'); var fs = require('fs'); var gitHubWebhookHandler = require('github-webhook-handler'); var settings = {}; settings.hooks = [{name: '/gitHubPuller', localPath: '/var/www/gitHubPuller'}]; for (var i = 0; i < settings.hooks.length; i++)...
JavaScript
0.000002
@@ -744,16 +744,48 @@ j;%0A + console.log(localPath);%0A @@ -820,24 +820,62 @@ gth; j++) %7B%0A + console.log(modified%5Bj%5D);%0A