{"commit":"0a29b3ed1e9e25e5298bf59f71ef5d6a555f36cf","old_file":"lib\/index.js","new_file":"lib\/index.js","old_contents":"import semver from 'semver';\n\nconst {major, minor, patch} = semver.parse(atom.appVersion);\nconst atomVersion = `${major}.${minor}.${patch}`;\nconst requiredVersion = '>=1.13.0';\n\nif (atom.inDevMode() || atom.inSpecMode() || semver.satisfies(atomVersion, requiredVersion)) {\n module.exports = startPackage();\n} else {\n module.exports = versionMismatch();\n}\n\nfunction versionMismatch() {\n return {\n activate: () => {\n atom.notifications.addWarning('Incompatible Atom Version', {\n description: `The GitHub packages requires Atom ${requiredVersion}. You are running ${atomVersion}.`,\n dismissable: true,\n });\n },\n };\n}\n\nfunction startPackage() {\n const GithubPackage = require('.\/github-package').default;\n\n return new GithubPackage(\n atom.workspace, atom.project, atom.commands, atom.notifications,\n );\n}\n","new_contents":"const semver = require('semver');\n\nconst {major, minor, patch} = semver.parse(atom.appVersion);\nconst atomVersion = `${major}.${minor}.${patch}`;\nconst requiredVersion = '>=1.13.0';\n\nif (atom.inDevMode() || atom.inSpecMode() || semver.satisfies(atomVersion, requiredVersion)) {\n module.exports = startPackage();\n} else {\n module.exports = versionMismatch();\n}\n\nfunction versionMismatch() {\n return {\n activate: () => {\n atom.notifications.addWarning('Incompatible Atom Version', {\n description: 'The GitHub packages requires Atom ' + requiredVersion +\n '. You are running ' + atomVersion + '. Please check for updates and try again.',\n dismissable: true,\n });\n },\n };\n}\n\nfunction startPackage() {\n const GithubPackage = require('.\/github-package').default;\n\n return new GithubPackage(\n atom.workspace, atom.project, atom.commands, atom.notifications,\n );\n}\n","subject":"Fix an atom version check oopsie","message":"Fix an atom version check oopsie\n","lang":"JavaScript","license":"mit","repos":"atom\/github,atom\/github,atom\/github"} {"commit":"4d5d063ee2bb294c92ff370530487e4556d94172","old_file":"lib\/index.js","new_file":"lib\/index.js","old_contents":"#! \/usr\/bin\/env node\n\"use strict\";\n\nvar argv = require(\"optimist\").argv;\nvar pjson = require(\"..\/package.json\");\nvar defaultConfig = require(\".\/default-config\");\nvar cliUtils = require(\".\/cli\").utils;\nvar cliInfo = require(\".\/cli-info\").info;\n\n\/**\n * Handle Command-line usage\n *\/\nif (require.main === module) {\n if (argv.version || argv.v) {\n return cliInfo.getVersion(pjson);\n }\n if (argv._[0] === \"init\") {\n return cliInfo.makeConfig();\n }\n var config = cliUtils.getConfig(defaultConfig, argv),\n filesArg = cliUtils.getFilesArg(argv, config),\n files = cliUtils.getFiles(filesArg);\n if (config.exclude) {\n files = cliUtils.mergeFiles(files, config.exclude);\n }\n cliUtils._start(files, config, pjson.version);\n}\n\n\/**\n * @param {String|Array} [files]\n * @param {Object} [userConfig]\n *\/\nmodule.exports.init = function (files, userConfig) {\n var config = defaultConfig;\n if (userConfig) {\n config = cliUtils.mergeConfigObjects(defaultConfig, userConfig || {});\n if (files && userConfig.exclude) {\n files = cliUtils.mergeFiles(files, userConfig.exclude);\n }\n }\n return cliUtils._start(files, config, pjson.version);\n};\n","new_contents":"#! \/usr\/bin\/env node\n\"use strict\";\n\nvar argv = require(\"optimist\").argv;\nvar pjson = require(\"..\/package.json\");\nvar defaultConfig = require(\".\/default-config\");\nvar cliUtils = require(\".\/cli\").utils;\nvar cliInfo = require(\".\/cli-info\").info;\n\n\/**\n * Handle Command-line usage\n *\/\nif (require.main === module) {\n if (argv.version || argv.v) {\n return cliInfo.getVersion(pjson);\n }\n if (argv._[0] === \"init\") {\n return cliInfo.makeConfig();\n }\n var config = cliUtils.getConfig(defaultConfig, argv),\n filesArg = cliUtils.getFilesArg(argv, config),\n files = cliUtils.getFiles(filesArg);\n if (config.exclude) {\n files = cliUtils.mergeFiles(files, config.exclude);\n }\n cliUtils._start(files, config, pjson.version);\n}\n\n\/**\n * Return init method for external use\n * @param {String|Array} [files]\n * @param {Object} [userConfig]\n *\/\nmodule.exports.init = function (files, userConfig) {\n var config = defaultConfig;\n if (userConfig) {\n config = cliUtils.mergeConfigObjects(defaultConfig, userConfig || {});\n if (files && userConfig.exclude) {\n files = cliUtils.mergeFiles(files, userConfig.exclude);\n }\n }\n return cliUtils._start(files, config, pjson.version);\n};\n","subject":"Use read stream to ensure file is greater than 0 bytes","message":"Use read stream to ensure file is greater than 0 bytes\n","lang":"JavaScript","license":"apache-2.0","repos":"portned\/browser-sync,schmod\/browser-sync,guiquanz\/browser-sync,BrowserSync\/browser-sync,pmq20\/browser-sync,zhelezko\/browser-sync,harmoney-nikr\/browser-sync,Teino1978-Corp\/Teino1978-Corp-browser-sync,naoyak\/browser-sync,beni55\/browser-sync,pepelsbey\/browser-sync,Plou\/browser-sync,mcanthony\/browser-sync,nitinsurana\/browser-sync,Plou\/browser-sync,BrowserSync\/browser-sync,d-g-h\/browser-sync,harmoney-nikr\/browser-sync,zhelezko\/browser-sync,BrowserSync\/browser-sync,markcatley\/browser-sync,beni55\/browser-sync,schmod\/browser-sync,Iced-Tea\/browser-sync,felixdae\/browser-sync,EdwonLim\/browser-sync,naoyak\/browser-sync,EdwonLim\/browser-sync,portned\/browser-sync,mcanthony\/browser-sync,syarul\/browser-sync,d-g-h\/browser-sync,nothiphop\/browser-sync,shelsonjava\/browser-sync,chengky\/browser-sync,felixdae\/browser-sync,syarul\/browser-sync,pmq20\/browser-sync,guiquanz\/browser-sync,nitinsurana\/browser-sync,stevemao\/browser-sync,Teino1978-Corp\/Teino1978-Corp-browser-sync,michaelgilley\/browser-sync,nothiphop\/browser-sync,stevemao\/browser-sync,Iced-Tea\/browser-sync,BrowserSync\/browser-sync,shelsonjava\/browser-sync,michaelgilley\/browser-sync,chengky\/browser-sync,mnquintana\/browser-sync,lookfirst\/browser-sync,pepelsbey\/browser-sync,cnbin\/browser-sync"} {"commit":"071a85e818476a81a4158cd01416775306b3fb87","old_file":"lib\/index.js","new_file":"lib\/index.js","old_contents":"var Mehdown;\n\nif (typeof exports === 'object' && typeof require === 'function') {\n Mehdown = exports;\n}\nelse {\n Mehdown = {};\n}\n\nMehdown.usernameRegExp = \/(^|[^@\\w])@(\\w{1,15})\\b\/g;\n\nMehdown.parse = function(text) {\n\t\/\/ Hashtags\n\ttext = text.replace(\/(^|[^#\\w])#([a-z0-9_-]+)\\b\/gi, '$1' + Mehdown.hashtag('$2'));\n\n\t\/\/ Usernames\n\ttext = text.replace(Mehdown.usernameRegExp, '$1' + Mehdown.username('$2'));\n\n\treturn text;\n};\n\nMehdown.hashtag = function(hashtag) {\n\treturn '#' + hashtag + '<\/a>';\n}\n\nMehdown.username = function(username) {\n\t\/\/return '@' + username + '<\/span><\/a>';\n\treturn '@' + username + '<\/a>';\n}","new_contents":"var Mehdown;\n\nif (typeof exports === 'object' && typeof require === 'function') {\n Mehdown = exports;\n}\nelse {\n Mehdown = {};\n}\n\nMehdown.usernameRegExp = \/(^|[^@\\w])@(\\w{1,15})\\b\/g;\n\nMehdown.parse = function(text) {\n \/\/ Replace newlines with
tags\n text = text.replace(\/\\n\/g, '
\\n');\n\n \/\/ Hashtags\n text = text.replace(\/(^|[^#\\w])#([a-z0-9_-]+)\\b\/gi, '$1' + Mehdown.hashtag('$2'));\n\n \/\/ Usernames\n text = text.replace(Mehdown.usernameRegExp, '$1' + Mehdown.username('$2'));\n\n return text;\n};\n\nMehdown.hashtag = function(hashtag) {\n return '
#' + hashtag + '<\/a>';\n}\n\nMehdown.username = function(username) {\n \/\/return '@' + username + '<\/span><\/a>';\n return '@' + username + '<\/a>';\n}","subject":"Replace newlines with
tags","message":"Replace newlines with
tags\n","lang":"JavaScript","license":"apache-2.0","repos":"trisk\/mehdown,mediocre\/mehdown"} {"commit":"7d9b3080ce19da5a615b047297ab88481ab5e299","old_file":"lib\/index.js","new_file":"lib\/index.js","old_contents":"\/*jshint browser:true, node:true*\/\n\n'use strict';\n\n\/**\n * @preserve Create and manage a DOM event delegator.\n *\n * @version 0.3.0\n * @codingstandard ftlabs-jsv2\n * @copyright The Financial Times Limited [All Rights Reserved]\n * @license MIT License (see LICENSE.txt)\n *\/\nvar Delegate = require('.\/delegate');\n\nmodule.exports = function(root) {\n return new Delegate(root);\n};\n\nmodule.exports.Delegate = Delegate;\n","new_contents":"\/*jshint browser:true, node:true*\/\n\n'use strict';\n\n\/**\n * @preserve Create and manage a DOM event delegator.\n *\n * @codingstandard ftlabs-jsv2\n * @copyright The Financial Times Limited [All Rights Reserved]\n * @license MIT License (see LICENSE.txt)\n *\/\nvar Delegate = require('.\/delegate');\n\nmodule.exports = function(root) {\n return new Delegate(root);\n};\n\nmodule.exports.Delegate = Delegate;\n","subject":"Remove version out of date version number","message":"Remove version out of date version number","lang":"JavaScript","license":"mit","repos":"ftlabs\/ftdomdelegate"} {"commit":"dc138eb7a59126a51cb54f1a3e94839672c1f35d","old_file":"lib\/index.js","new_file":"lib\/index.js","old_contents":"var email = new (require('.\/emailer'))(),\n backdrop = new (require('.\/integrations\/backdrop'))(),\n stagecraft = new (require('.\/integrations\/stagecraft'))(),\n message = new (require('.\/message'))(),\n Q = require('q'),\n queue = [];\n\n\/\/ Query backdrop for out of date datasets\nbackdrop.getDataSets().then(function (data) {\n \/\/ console.log('datasets', data);\n \/\/ Got some datasets, now find emails for them\n data.data_sets.forEach( function (dataSet) {\n\n \/\/ Set email message\n dataSet.message = message.dataSetReminder(dataSet);\n\n \/\/ Queue up email query for this dataset\n queue.push(stagecraft.queryEmail(dataSet));\n });\n\n \/\/ When all the email queries are finished, send some notifications\n return Q.all(queue).then( function (dataSets) {\n console.log(dataSets);\n \/\/ email.send({\n \/\/ to: config.notificationsEmail,\n \/\/ subject: 'Datasets out of date',\n \/\/ text: 'There are ' + data.message + '\\n\\n' + JSON.stringify(data.data_sets)\n \/\/ });\n });\n}).fail(function (err) {\n throw err;\n}).done();\n\n\n\n\n","new_contents":"var email = new (require('.\/emailer'))(),\n backdrop = new (require('.\/integrations\/backdrop'))(),\n stagecraft = new (require('.\/integrations\/stagecraft'))(),\n message = new (require('.\/message'))(),\n Q = require('q'),\n queue = [];\n\n\/\/ Query backdrop for out of date datasets\nbackdrop.getDataSets().then(function (data) {\n \/\/ console.log('datasets', data);\n \/\/ Got some datasets, now find emails for them\n data.data_sets.forEach( function (dataSet) {\n\n \/\/ Set email message\n dataSet.message = message.dataSetReminder(dataSet);\n\n \/\/ Queue up email query for this dataset\n queue.push(stagecraft.queryEmail(dataSet));\n });\n\n \/\/ When all the email queries are finished, send some notifications\n return Q.all(queue).then( function (dataSets) {\n console.log(dataSets);\n dataSets.forEach( function (dataSet) {\n email.send({\n to: dataSet.emails.toString(),\n subject: 'Datasets out of date',\n text: dataSet.message\n });\n });\n });\n}).fail(function (err) {\n throw err;\n}).done();\n\n\n\n\n","subject":"Send emails once we have them","message":"Send emails once we have them\n","lang":"JavaScript","license":"mit","repos":"alphagov\/performanceplatform-notifier,alphagov\/performanceplatform-notifier,gds-attic\/performanceplatform-notifier,gds-attic\/performanceplatform-notifier"} {"commit":"7c28f176c0a645e2b647b16473a2c184dc015097","old_file":"lib\/login.js","new_file":"lib\/login.js","old_contents":"\/\/ Apply login on current session and change session id for security reasons.\n\n\n'use strict';\n\n\nvar rnd = require('nodeca.core\/lib\/rnd');\n\n\nmodule.exports = function login(env, userId) {\n env.session.user_id = userId;\n env.origin.req.sid = rnd(); \/\/ Generate cryptostrong random hex string.\n};\n","new_contents":"\/\/ Apply login on current session and change session id for security reasons.\n\n\n'use strict';\n\n\nvar rnd = require('nodeca.core\/lib\/rnd');\n\n\nmodule.exports = function login(env, userId) {\n env.session.user_id = userId;\n env.session_id = rnd(); \/\/ Generate cryptostrong random hex string.\n};\n","subject":"Use `env.session_id` instead of deprecated `req.sid`.","message":"Use `env.session_id` instead of deprecated `req.sid`.\n","lang":"JavaScript","license":"mit","repos":"nodeca\/nodeca.users"} {"commit":"a843eaf48f3353b5316f48b11061d29941168d47","old_file":"app\/tick-trade\/TickTradePane.js","new_file":"app\/tick-trade\/TickTradePane.js","old_contents":"import React from 'react';\nimport { connect } from 'react-redux';\n\n@connect(state => ({ tickTrade: state.tickTrade }))\nexport default class TickTradePane extends React.Component {\n\n\trender() {\n\t\treturn (\n\t\t\t
\n\t\t\t<\/div>\n\t\t);\n\t}\n}\n","new_contents":"import React from 'react';\nimport { connect } from 'react-redux';\n\n@connect(state => ({ tickTrade: state.tickTrade }))\nexport default class TickTradePane extends React.Component {\n\n\trender() {\n\t\treturn (\n\t\t\t
\n \t\t\t
\n\t\t\t\t\t