hash
stringlengths
40
40
diff
stringlengths
172
2.63k
message
stringlengths
12
593
project
stringlengths
7
65
split
stringclasses
1 value
diff_languages
stringclasses
54 values
ef12125190d4728d03abfd94be57fc14fc43a073
diff --git a/src/index.js b/src/index.js index <HASH>..<HASH> 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,6 @@ -import 'babel-polyfill'; +if (!window._babelPolyfill) { + require('babel-polyfill'); +} import API from './functions/api'; import webhook from './functions/webhook'; import poll from './functions/poll';
fix(babel): don't require babel-polyfill if it's already required
mdibaiee_node-telegram-api
train
js
18273c394d0e3533b6fbb60136471919531fffa4
diff --git a/core/vendor/microevent.js b/core/vendor/microevent.js index <HASH>..<HASH> 100644 --- a/core/vendor/microevent.js +++ b/core/vendor/microevent.js @@ -29,7 +29,16 @@ MicroEvent.prototype = { off : function(event, fct){ this._events = this._events || {}; if( event in this._events === false ) return; - this._events[event].splice(this._events[event].indexOf(fct), 1); + + this._events[event] = this._events[event] + .filter(function(_fct) { + if (fct) { + return fct !== _fct; + } + else { + return false; + } + }); }, emit : function(event /* , args... */){ this._events = this._events || {};
fix(microevent): fix "off" function.
OnsenUI_OnsenUI
train
js
363578b99159e35717cc46ba9f5877a6ebdd75e0
diff --git a/stellar_sdk/client/requests_client.py b/stellar_sdk/client/requests_client.py index <HASH>..<HASH> 100644 --- a/stellar_sdk/client/requests_client.py +++ b/stellar_sdk/client/requests_client.py @@ -67,7 +67,7 @@ class RequestsClient(BaseSyncClient): backoff_factor=self.backoff_factor, redirect=0, status_forcelist=self.status_forcelist, - method_whitelist=frozenset(["GET", "POST"]), + allowed_methods=frozenset(["GET", "POST"]), raise_on_status=False, ) # init transport adapter
refactor: update the parameters used in Retry. (#<I>)
StellarCN_py-stellar-base
train
py
a2c1b53e1367ff1d4f0a6a612e8cd1e0b2349c76
diff --git a/src/index.js b/src/index.js index <HASH>..<HASH> 100644 --- a/src/index.js +++ b/src/index.js @@ -223,9 +223,10 @@ const mini = (tree, {mini}) => { const sortAttr = (tree, {rules: {sortAttr}}) => { tree.map(node => { - if (node.attrs && Object.keys(node.attrs).length > 1 && sortAttr) { - var key = Object.keys(node.attrs) - .sort(function (key1, key2) { + if (sortAttr && node.attrs) { + var keys = Object.keys(node.attrs); + if (keys.length > 1) { + keys.sort(function (key1, key2) { if (key1 < key2) { return -1; } @@ -237,13 +238,14 @@ const sortAttr = (tree, {rules: {sortAttr}}) => { return 0; }); - const newAttrsObject = {}; + const newAttrsObject = {}; - key.forEach(k => { - newAttrsObject[k] = node.attrs[k]; - }); + keys.forEach(k => { + newAttrsObject[k] = node.attrs[k]; + }); - node.attrs = newAttrsObject; + node.attrs = newAttrsObject; + } } return node;
refactor: refactore checks for sortAttrs
Scrum_posthtml-beautify
train
js
c0eef9781f709b82afe667995996dbae0c21b966
diff --git a/src/SortableContainer/index.js b/src/SortableContainer/index.js index <HASH>..<HASH> 100644 --- a/src/SortableContainer/index.js +++ b/src/SortableContainer/index.js @@ -105,7 +105,10 @@ export default function sortableContainer( ]), getContainer: PropTypes.func, getHelperDimensions: PropTypes.func, - helperContainer: PropTypes.instanceOf(HTMLElement), + helperContainer: + typeof HTMLElement === 'undefined' + ? PropTypes.any + : PropTypes.instanceOf(HTMLElement), }; static childContextTypes = {
fix: helperContainer PropType definition broke server-side rendering (#<I>)
clauderic_react-sortable-hoc
train
js
8471767c8cc6573ce70172d0c00dc54591bc821f
diff --git a/src/MorphTransition.js b/src/MorphTransition.js index <HASH>..<HASH> 100644 --- a/src/MorphTransition.js +++ b/src/MorphTransition.js @@ -18,7 +18,7 @@ class MorphTransition extends React.Component { this.reset = true; } - componentWillMount() { + componentDidMount() { this.update(1); }
fix(MorphTransition): switch to use componentDidMount
gorangajic_react-svg-morph
train
js
b121f7346ed5c0a1551cb5e01688984bc056a3ff
diff --git a/packages/sketch/src/tools/symbols.js b/packages/sketch/src/tools/symbols.js index <HASH>..<HASH> 100644 --- a/packages/sketch/src/tools/symbols.js +++ b/packages/sketch/src/tools/symbols.js @@ -28,7 +28,12 @@ export function syncSymbol({ symbols, name, config }) { } Object.keys(config).forEach((key) => { - symbol[key] = config[key]; + if (key === 'frame') { + // prefer x and y positioning of existing artboard #8569 + symbol[key] = symbol[key] ?? config[key]; + } else { + symbol[key] = config[key]; + } }); return symbol;
fix(sketch): avoid repositioning preexisting icon artboards (#<I>)
carbon-design-system_carbon-components
train
js
148a0eebc692c96498d3e825838bb59e2f1f0758
diff --git a/lib/getPackageJson.js b/lib/getPackageJson.js index <HASH>..<HASH> 100644 --- a/lib/getPackageJson.js +++ b/lib/getPackageJson.js @@ -24,6 +24,9 @@ module.exports = async function(name) { } } + if ((config.npmTokenEnvVar !== null) && (config.npmTokenEnvVar !== undefined) && (config[config.npmTokenEnvVar] !== undefined)) { + console.warn(`the environment variable '${config.npmTokenEnvVar}' containing the token used by npm to access the private repository should not be a configuration parameter (this is a severe security problem!)`) + } const npmToken = process.env[config.npmTokenEnvVar] || '' if (npmToken.trim().length > 0) { options['headers'] = { 'Authorization': `Bearer ${npmToken}` }
feat: add warning, if npm token is used as a config option
ironSource_license-report
train
js
839d9d6c15db795ffd97b96a24f83c54a5bffda3
diff --git a/scheduler/coreos.py b/scheduler/coreos.py index <HASH>..<HASH> 100644 --- a/scheduler/coreos.py +++ b/scheduler/coreos.py @@ -112,7 +112,7 @@ class FleetClient(object): status = None for _ in range(60): status = subprocess.check_output( - "fleetctl.sh list-units | grep {name}-announce.service | awk '{{print $4}}'".format(**locals()), + "fleetctl.sh list-units | grep {name}-announce.service | awk '{{print $5}}'".format(**locals()), shell=True, env=env).strip('\n') if status == 'running': break
fix(controller): watch fifth column for state fleetctl <I> introduced a fifth column, so we need to update the location of the state column.
deis_controller-sdk-go
train
py
49eeb9aab399cb92b097c3a6c213c9c8dcf0c0df
diff --git a/js/helper.js b/js/helper.js index <HASH>..<HASH> 100644 --- a/js/helper.js +++ b/js/helper.js @@ -161,9 +161,11 @@ function execute(args, live, silent, configFile, config = {}) { } return new Promise((resolve, reject) => { if (live === true) { + const output = silent ? 'ignore' : 'inherit' const pid = childProcess.spawn(getPath(), args, { env, - stdio: ['inherit', silent ? 'pipe' : 'inherit', 'inherit'], + // stdin, stdout, stderr + stdio: ['ignore', output, output], }); pid.on('exit', () => { resolve();
fix: Redirect outputs to /dev/null instead of filling up pipe buffers (#<I>)
getsentry_sentry-cli
train
js
fa7561e42ba5b9f747ac9b7b04b0f584254c229b
diff --git a/intranet/apps/announcements/notifications.py b/intranet/apps/announcements/notifications.py index <HASH>..<HASH> 100644 --- a/intranet/apps/announcements/notifications.py +++ b/intranet/apps/announcements/notifications.py @@ -133,7 +133,7 @@ def announcement_posted_email(request, obj, send_all=False): for u in users: if is_public or send_groups.intersection(u.groups.all()).exists(): # Either it has no groups (public) or user is a member of a send group - em = u.emails.first() if u.emails.exists() else u.tj_email + em = u.notification_email if em: emails.append(em) users_send.append(u)
refactor(announcements): use user's property, notification_email Fixes #<I>
tjcsl_ion
train
py
7f3976893f77b166aa55df04116928a15d2dc83a
diff --git a/lib/subcommand/release/release.js b/lib/subcommand/release/release.js index <HASH>..<HASH> 100644 --- a/lib/subcommand/release/release.js +++ b/lib/subcommand/release/release.js @@ -41,7 +41,7 @@ function performRelease (workingDir, packageName, increment) { shell.exec('git push origin master', { silent: true }) shell.cd(workingDir) logSeparator() - return packageName + return fixDefault(workingDir, packageName) } else { console.log('Publishing has been unsucceful\n ', err) logSeparator()
fix(northbrook): fix changelog generation
northbrookjs_northbrook
train
js
c544bab75349e239950d9aa8c05ddb5518ddebc8
diff --git a/lib/object.js b/lib/object.js index <HASH>..<HASH> 100644 --- a/lib/object.js +++ b/lib/object.js @@ -9,7 +9,7 @@ const path = require('path'); const mime = require('mime'); const callback = require('./common/callback'); const signHelper = require('./common/signUtils'); - +const { Transform } = require('stream'); const proto = exports; @@ -122,7 +122,12 @@ proto.putStream = async function putStream(name, stream, options) { const params = this._objectRequestParams(method, name, options); callback.encodeCallback(params, options); params.mime = options.mime; - params.stream = stream; + const transform = new Transform(); + transform._transform = function _transform(chunk, encoding, done) { + this.push(chunk); + done(); + }; + params.stream = stream.pipe(transform); params.successStatuses = [200]; const result = await this.request(params);
fix(node): putStream use third lib stream will signature error (#<I>)
ali-sdk_ali-oss
train
js
4212cac8e86ca6ddfe9a30d90b46b5e2828367a2
diff --git a/lib/ha-websocket.js b/lib/ha-websocket.js index <HASH>..<HASH> 100644 --- a/lib/ha-websocket.js +++ b/lib/ha-websocket.js @@ -277,6 +277,9 @@ class HaWebsocket extends EventEmitter { event_type: eventType, entity_id: entityId, event: msg.data, + origin: msg.origin, + time_fired: msg.time_fired, + context: msg.context, }; if (
feat: Add extra data to the events:all output Add origin, time_fired, and context to the events:all output Closes #<I>
zachowj_node-red-contrib-home-assistant-websocket
train
js
b123b618171fd7f2d10134bcb7e8f9f28ff5a033
diff --git a/benchmark/middleware/start.js b/benchmark/middleware/start.js index <HASH>..<HASH> 100644 --- a/benchmark/middleware/start.js +++ b/benchmark/middleware/start.js @@ -1,6 +1,6 @@ 'use strict'; -const EggApplication = require('../../test/fixtures/egg'); +const EggApplication = require('../../test/fixtures/egg').Application; const app = new EggApplication({ baseDir: __dirname,
chore: resolve EggApplication is not a Class (#<I>)
eggjs_egg-core
train
js
3674b8e57cbd0b912356318e8ea4e3db2058eaec
diff --git a/src/core/components/block.js b/src/core/components/block.js index <HASH>..<HASH> 100644 --- a/src/core/components/block.js +++ b/src/core/components/block.js @@ -19,6 +19,12 @@ module.exports = function block (self) { block = new Block(block) } + if (typeof cid === 'function') { + // legacy (without CID) + callback = cid + cid = new CID(block.key('sha2-256')) + } + self._blockService.put({ block: block, cid: cid @@ -47,8 +53,10 @@ module.exports = function block (self) { } function cleanCid (cid) { - if (typeof cid === 'string') { - return new CID(cid) + if (cid.constructor.name === 'CID') { + return cid } - return cid + + // CID constructor knows how to do the cleaning :) + return new CID(cid) }
fix: don't break backwards compatibility on the Block API
ipfs_js-ipfs
train
js
26559259db0dd51b73deaea95cd336ad7891f2a0
diff --git a/karma.conf.saucelabs.js b/karma.conf.saucelabs.js index <HASH>..<HASH> 100644 --- a/karma.conf.saucelabs.js +++ b/karma.conf.saucelabs.js @@ -29,8 +29,9 @@ var browsers = { module.exports = function (config) { karmaBaseConf.plugins.push(require('karma-sauce-launcher')) karmaBaseConf.reporters.push('saucelabs') - karmaBaseConf.logLevel = config.INFO + karmaBaseConf.logLevel = config.LOG_DEBUG karmaBaseConf.customLaunchers = browsers + karmaBaseConf.captureTimeout = 120000 karmaBaseConf.browsers = Object.keys(browsers) karmaBaseConf.sauceLabs = { // Should be false for running on travis, as travis already starts its own
chore(tests): Increase saucelabs timeout
contentful_contentful.js
train
js
1b2bdad2c9ec7e6d16f8f64ed382806345d079a7
diff --git a/webpack.config.js b/webpack.config.js index <HASH>..<HASH> 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -61,9 +61,10 @@ const cssLoader = { { loader: resolveLoader('css'), options: { - modules: true, - importLoaders: 1, - localIdentName: '[local]_[hash:3]' + modules: { + localIdentName: '[local]_[hash:3]' + }, + importLoaders: 1 } }, {
chore: update css-loader's options to meet changed API
JetBrains_ring-ui
train
js
c741ee91c379934d6e219a368065ec6717887c2d
diff --git a/.toys/owlbot.rb b/.toys/owlbot.rb index <HASH>..<HASH> 100644 --- a/.toys/owlbot.rb +++ b/.toys/owlbot.rb @@ -96,7 +96,7 @@ end def pull_images return unless pull exec ["docker", "pull", "#{OWLBOT_CLI_IMAGE}:#{owlbot_cli_tag}"] - exec ["docker", "pull", "#{POSTPROCESSOR_IMAGE}:#{owlbot_cli_tag}"] + exec ["docker", "pull", "#{POSTPROCESSOR_IMAGE}:#{postprocessor_tag}"] end def collect_sources gems @@ -161,7 +161,7 @@ def process_gems gems commit_message: message do FileUtils.mkdir_p STAGING_DIR_NAME FileUtils.mv File.join(temp_staging_dir, name), File.join(STAGING_DIR_NAME, name) - docker_run "#{POSTPROCESSOR_IMAGE}:#{owlbot_cli_tag}", "--gem", name + docker_run "#{POSTPROCESSOR_IMAGE}:#{postprocessor_tag}", "--gem", name end puts "Results for #{name} (#{index}/#{gems.size})..." results[name] = output_result name, result, :bold
chore: Owlbot script uses the correct custom postprocessor tag
googleapis_google-cloud-ruby
train
rb
4d93ca67eaade93b4fad93b84ace0beef7e283a0
diff --git a/ui/ember-cli-build.js b/ui/ember-cli-build.js index <HASH>..<HASH> 100644 --- a/ui/ember-cli-build.js +++ b/ui/ember-cli-build.js @@ -31,9 +31,6 @@ module.exports = function (defaults) { }, hinting: isTest, tests: isTest, - sourcemaps: { - enabled: false, - }, }); // Use `app.import` to add additional libraries to the generated
fix: remove sourceMaps false in ember-cli-build There was previously a bug with sourceMaps that slowed down the build. This issue has been resolved by Ember and now we can expect the default behavior of sourceMaps being enabled in dev and disabled in prod.
hashicorp_nomad
train
js
75f9e1d6dc4efb4350e655fdefe292410f49193a
diff --git a/lib/localstorage-core.js b/lib/localstorage-core.js index <HASH>..<HASH> 100644 --- a/lib/localstorage-core.js +++ b/lib/localstorage-core.js @@ -46,7 +46,12 @@ function LocalStorageCore(dbname) { // designed to be bullet-proof. self._scheduleWrite = debounce(function () { var json = JSON.stringify(self._db.store); - fs.writeFile(filename, json, 'utf-8'); + fs.writeFile(filename, json, 'utf-8', function (error) { + if (error) { + console.log('ERROR: ' + filename + ' could not be written'); + console.log(error); + } + }); }, 1000); }
fix: does not crash when folder removed before debounced write
nolanlawson_fsdown
train
js
7936aa772704e0b376f95a9b66e5f5763a104710
diff --git a/gridsome/lib/app/loadConfig.js b/gridsome/lib/app/loadConfig.js index <HASH>..<HASH> 100644 --- a/gridsome/lib/app/loadConfig.js +++ b/gridsome/lib/app/loadConfig.js @@ -52,8 +52,8 @@ module.exports = (context, options = {}, pkg = {}) => { const assetsDir = localConfig.assetsDir || 'assets' config.pkg = options.pkg || resolvePkg(context) - config.host = args.host || options.host || 'localhost' - config.port = parseInt(args.port || options.port, 10) || 8080 + config.host = args.host || localConfig.host || 'localhost' + config.port = parseInt(args.port || localConfig.port, 10) || 8080 config.plugins = normalizePlugins(context, plugins) config.chainWebpack = localConfig.chainWebpack config.transformers = resolveTransformers(config.pkg, localConfig)
fix(config): use host and port from project config
gridsome_gridsome
train
js
ab3e46fbc7107a1fdc2ec85d14f42708fd71d3aa
diff --git a/src/__tests__/composeWithMongoose-test.js b/src/__tests__/composeWithMongoose-test.js index <HASH>..<HASH> 100644 --- a/src/__tests__/composeWithMongoose-test.js +++ b/src/__tests__/composeWithMongoose-test.js @@ -129,7 +129,7 @@ describe('composeWithMongoose ->', () => { describe('createResolvers()', () => { it('should not be called if opts.resolvers === false', () => { const tc = composeWithMongoose(UserModel, { resolvers: false }); - expect(tc.getResolvers().keys()).is.empty; + expect(Array.from(tc.getResolvers().keys())).is.empty; }); it('should be called if opts.resolvers not exists or has value', () => {
test(composeWithMongoose): Fix broken test for Node.js <I>
graphql-compose_graphql-compose-mongoose
train
js
e587bb213d685754e5b499b4222e2be2c748990d
diff --git a/packages/tests/e2e/cli/instance.test-e2e.js b/packages/tests/e2e/cli/instance.test-e2e.js index <HASH>..<HASH> 100644 --- a/packages/tests/e2e/cli/instance.test-e2e.js +++ b/packages/tests/e2e/cli/instance.test-e2e.js @@ -16,8 +16,8 @@ describe('CLI Instance', function () { const testInstance = uniqueInstance() testNixt() - .before(() => createInstance(testInstance)) - .after(() => deleteInstance(testInstance)) + .before(async () => await createInstance(testInstance)) + .after(async () => await deleteInstance(testInstance)) .run(`${cliLocation} instance create ${testInstance}`) .stdout(/Instance already exist!/) .code(1) @@ -28,7 +28,7 @@ describe('CLI Instance', function () { const testInstance = uniqueInstance() testNixt() - .after(() => deleteInstance(testInstance)) + .after(async () => await deleteInstance(testInstance)) .run(`${cliLocation} instance create ${testInstance}`) .stdout(/has been created/) .code(0)
fix(tests): wait to for instance creation
Syncano_syncano-node
train
js
6d71609da875453ff9792f636b88c5c2e7e7f385
diff --git a/addon/components/lt-body.js b/addon/components/lt-body.js index <HASH>..<HASH> 100644 --- a/addon/components/lt-body.js +++ b/addon/components/lt-body.js @@ -487,6 +487,7 @@ export default Component.extend({ }, firstVisibleChanged(item, index /* , key */) { + this.sendAction('firstVisibleChanged', ...arguments); const estimateScrollOffset = index * this.get('sharedOptions.estimatedRowHeight'); this.sendAction('onScroll', estimateScrollOffset, null); },
fix(occlusion): wire up lastVisibleChanged
offirgolan_ember-light-table
train
js
3bdf759538a0fd9680052695d31d1b9ba1ddf212
diff --git a/src/store.js b/src/store.js index <HASH>..<HASH> 100644 --- a/src/store.js +++ b/src/store.js @@ -198,23 +198,6 @@ export class Store { return this._helper.lastResults.processingTimeMS; } - // todo: change to goToFirstPage() - goTofirstPage() { - this.page = 0; - } - - goToPreviousPage() { - this._helper.previousPage(); - } - - goToNextPage() { - this._helper.nextPage(); - } - - goToLastPage() { - this.page = this.nbPages - 1; - } - addFacet(attribute, type = FACET_AND) { assertValidFacetType(type);
refactor(store): remove pagination utility methods those methods do not belong to the store BREAKING CHANGE: pagination utility methods have been removed. This includes `goToFirstPage`, `goToPreviousPage`, `goToNextPage` and `goToLastPage`. Closes #<I>
algolia_vue-instantsearch
train
js
1efb35a5196b2970aee0407cdafee7b3be639793
diff --git a/test/tests/unit/replset/retryable_writes_tests.js b/test/tests/unit/replset/retryable_writes_tests.js index <HASH>..<HASH> 100644 --- a/test/tests/unit/replset/retryable_writes_tests.js +++ b/test/tests/unit/replset/retryable_writes_tests.js @@ -7,7 +7,7 @@ var expect = require('chai').expect, ServerSessionPool = require('../../../../lib/sessions').ServerSessionPool; const test = new ReplSetFixture(); -describe('Sessions (ReplSet)', function() { +describe('Retryable Writes (ReplSet)', function() { afterEach(() => mock.cleanup()); beforeEach(() => test.setup({ ismaster: mock.DEFAULT_ISMASTER_36 }));
test(retryable-writes): rename incorrectly named test NODE-<I>
mongodb-js_mongodb-core
train
js
898f52751f2f1a29436f4e6e4d0e784aadc64626
diff --git a/src/base/events.js b/src/base/events.js index <HASH>..<HASH> 100644 --- a/src/base/events.js +++ b/src/base/events.js @@ -604,7 +604,20 @@ Events.CORE_RESIZE = 'core:resize' * screen orientation (ie: 'landscape' or 'portrait') */ Events.CORE_SCREEN_ORIENTATION_CHANGED = 'core:screen:orientation:changed' - +/** + * Fired when occurs mouse move event on core element + * + * @event CORE_MOUSE_MOVE + * @param {Object} event a DOM event + */ +Events.CORE_MOUSE_MOVE = 'core:mousemove' +/** + * Fired when occurs mouse leave event on core element + * + * @event CORE_MOUSE_LEAVE + * @param {Object} event a DOM event + */ +Events.CORE_MOUSE_LEAVE = 'core:mouseleave' // Container Events /**
feat(events): create CORE_MOUSE_MOVE/CORE_MOUSE_LEAVE events
clappr_clappr
train
js
b5a4005a7e20cb0fa22773c2bc4031086925d15d
diff --git a/keys.js b/keys.js index <HASH>..<HASH> 100644 --- a/keys.js +++ b/keys.js @@ -26,8 +26,8 @@ function AnvilConnectKeys (directory) { // encryption key pair file paths this.enc = { - pub: path.join(this.directory, 'sig.rsa.pub.pem'), - prv: path.join(this.directory, 'sig.rsa.prv.pem') + pub: path.join(this.directory, 'enc.rsa.pub.pem'), + prv: path.join(this.directory, 'enc.rsa.prv.pem') } // setup token
fix: Use correct file names for encryption keypairs
anvilresearch_connect-keys
train
js
f708709cffc17b34a3c72629494c8cf1af7ca992
diff --git a/tests/column_test.py b/tests/column_test.py index <HASH>..<HASH> 100644 --- a/tests/column_test.py +++ b/tests/column_test.py @@ -64,3 +64,12 @@ def test_plain_strings(): assert len(df[1:3]) == 2 assert df[1:3].x.tolist() == x[1:3].tolist() + +def test_dtype_object_with_arrays(): + x = np.arange(10) + y = np.arange(11) ** 2 + z = np.array([x, y]) + assert z.dtype == np.object + df = vaex.from_arrays(z=z) + assert df.z.tolist()[0].tolist() == x.tolist() + assert df.z.tolist()[1].tolist() == y.tolist()
test: dtype object with numpy arrays Was missing from #<I>
vaexio_vaex
train
py
667656361f6b54e95185873ca650edd9fc8d4314
diff --git a/test/Editor.js b/test/Editor.js index <HASH>..<HASH> 100644 --- a/test/Editor.js +++ b/test/Editor.js @@ -1,6 +1,7 @@ /*global require, global*/ var fs = require('fs'); +var path = require('path'); var Pane = require('../lib/ui/Pane'); @@ -14,7 +15,7 @@ module.exports = function (t) { sst.test("should open a file with perms 000 correctly", function (ssst) { ssst.plan(1); - var perms000File = '/Users/dan/stuff/slap/test/fixtures/perms-000'; + var perms000File = path.resolve(__dirname, 'fixtures/perms-000'); // can't be checked in with 000 perms var originalPerms = (fs.statSync(perms000File).mode.toString(8).match(/[0-7]{3}$/) || [])[0] || '644';
fix(test): fixes hardcoded fixture path
slap-editor_slap
train
js
489ca73e436c54408b8769437d5fd51bb336d6f4
diff --git a/test/integration/react-streaming-and-server-components/test/index.test.js b/test/integration/react-streaming-and-server-components/test/index.test.js index <HASH>..<HASH> 100644 --- a/test/integration/react-streaming-and-server-components/test/index.test.js +++ b/test/integration/react-streaming-and-server-components/test/index.test.js @@ -162,7 +162,8 @@ describe('concurrentFeatures - dev', () => { await killApp(context.server) }) - it('should support React.lazy and dynamic imports', async () => { + // TODO: re-enabled test when update webpack with chunkLoading support + it.skip('should support React.lazy and dynamic imports', async () => { const html = await renderViaHTTP(context.appPort, '/dynamic-imports') expect(html).toContain('loading...')
test: skip flaky dynamic import tests (#<I>)
zeit_next.js
train
js
c0723e9abb9a906a410589dc1a139e5c0b9f998b
diff --git a/tests/Log/NullLoggerTest.php b/tests/Log/NullLoggerTest.php index <HASH>..<HASH> 100644 --- a/tests/Log/NullLoggerTest.php +++ b/tests/Log/NullLoggerTest.php @@ -52,7 +52,7 @@ class NullLoggerTest extends PHPUnit_Framework_TestCase $this->assertNull($this->logger->warning('foo')); } - public function testNullLoggerIgnoresErro() + public function testNullLoggerIgnoresError() { $this->assertNull($this->logger->error('foo'));
chore(typo): fix a typo in test method
eveseat_eseye
train
php
c2277fa2fce1b11124b19f529c33efb0bb35d220
diff --git a/plugins/inputs/intel_pmu/intel_pmu_test.go b/plugins/inputs/intel_pmu/intel_pmu_test.go index <HASH>..<HASH> 100644 --- a/plugins/inputs/intel_pmu/intel_pmu_test.go +++ b/plugins/inputs/intel_pmu/intel_pmu_test.go @@ -386,7 +386,7 @@ func TestEstimateCoresFd(t *testing.T) { {parsedEvents: makeEvents(2, 1), parsedCores: makeIDs(20)}, }, 715}, {"1024 events", []*CoreEventEntity{{parsedEvents: makeEvents(1024, 1), parsedCores: makeIDs(12)}}, 12288}, - {"big number", []*CoreEventEntity{{parsedEvents: makeEvents(1048576, 1), parsedCores: makeIDs(1024)}}, 1073741824}, + {"big number", []*CoreEventEntity{{parsedEvents: makeEvents(1024, 1), parsedCores: makeIDs(1048576)}}, 1073741824}, } for _, test := range tests {
chore: fix slow running intel-pmu test (#<I>)
influxdata_telegraf
train
go
8c508bde66d2838743917c6b07346d7fe8149afb
diff --git a/packages/nitro-app/app/core/routeLoader.js b/packages/nitro-app/app/core/routeLoader.js index <HASH>..<HASH> 100644 --- a/packages/nitro-app/app/core/routeLoader.js +++ b/packages/nitro-app/app/core/routeLoader.js @@ -8,7 +8,7 @@ const viewDataPath = `${config.get('nitro.basePath')}project/viewData/`; const routers = []; function readRoutes(routes) { - fs.readdirSync(routes).forEach((el) => { + fs.readdirSync(routes).sort().forEach((el) => { if (path.extname(el) === '.js') { routers.push(require(routes + path.basename(el, '.js'))); }
fix(app): unified route sorting across systems
namics_generator-nitro
train
js
17bdc936fc50ac6ee2b3b9682cae21b448ee1b3f
diff --git a/new_website/docusaurus.config.js b/new_website/docusaurus.config.js index <HASH>..<HASH> 100644 --- a/new_website/docusaurus.config.js +++ b/new_website/docusaurus.config.js @@ -13,6 +13,7 @@ module.exports = { "users": [], "repoUrl": "https://github.com/MultinetInteractive/EduAdmin-WordPress" }, + "trailingSlash": true, "onBrokenLinks": "log", "onBrokenMarkdownLinks": "log", "presets": [
ci(Website): Update config for website with trailing slash, to fix warnings for GitHub Pages
MultinetInteractive_EduAdmin-WordPress
train
js
98ca5defc8cc9e4edc933a3f089eee397db9ef8f
diff --git a/spec/lib/webdriver/backend_spec.rb b/spec/lib/webdriver/backend_spec.rb index <HASH>..<HASH> 100644 --- a/spec/lib/webdriver/backend_spec.rb +++ b/spec/lib/webdriver/backend_spec.rb @@ -22,7 +22,7 @@ describe 'Pincers::Webdriver::Backend' do it_should_properly_enter_data_in_example it_should_properly_handle_frames_in_example it_should_properly_handle_dynamic_markup - it_should_perform_raw_requests + it_should_perform_raw_requests(false) describe 'close' do it "should properly close the driver connection" do diff --git a/spec/macros/perform_raw_requests.rb b/spec/macros/perform_raw_requests.rb index <HASH>..<HASH> 100644 --- a/spec/macros/perform_raw_requests.rb +++ b/spec/macros/perform_raw_requests.rb @@ -1,5 +1,5 @@ module Macros - def it_should_perform_raw_requests + def it_should_perform_raw_requests(_merge_support=true) describe 'download' do it "should retrieve the resouce pointed by the element" do @@ -27,7 +27,7 @@ module Macros }.not_to raise_error end - it "should update the original context content and cookies" do + it "should update the original context content and cookies", skip: !_merge_support do pincers.goto("http://localhost:#{SERVER_PORT}/index.html") pincers.as_http_client do |client|
chore(specs): adds exception to skip http_client merge test for webdriver backend
platanus_pincers
train
rb,rb
eb118f844534fe9fd0a06e8041bcfcbc5f1e5e1d
diff --git a/qa/integration-tests-engine/src/test/java/org/camunda/bpm/integrationtest/deployment/callbacks/TestPostDeployFailure_OTHERS.java b/qa/integration-tests-engine/src/test/java/org/camunda/bpm/integrationtest/deployment/callbacks/TestPostDeployFailure_OTHERS.java index <HASH>..<HASH> 100644 --- a/qa/integration-tests-engine/src/test/java/org/camunda/bpm/integrationtest/deployment/callbacks/TestPostDeployFailure_OTHERS.java +++ b/qa/integration-tests-engine/src/test/java/org/camunda/bpm/integrationtest/deployment/callbacks/TestPostDeployFailure_OTHERS.java @@ -19,6 +19,7 @@ import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.container.test.api.OperateOnDeployment; import org.jboss.arquillian.junit.Arquillian; import org.jboss.shrinkwrap.api.spec.WebArchive; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; @@ -27,6 +28,7 @@ import org.junit.runner.RunWith; * */ @RunWith(Arquillian.class) +@Ignore public class TestPostDeployFailure_OTHERS extends AbstractFoxPlatformIntegrationTest { @Deployment(name="fail")
chore(qa): ignore integration test until fixed related to #CAM-<I>
camunda_camunda-bpm-platform
train
java
4b3d57c06d78ef4254d18a1bc85580c0b1d9718e
diff --git a/storage/engine.go b/storage/engine.go index <HASH>..<HASH> 100644 --- a/storage/engine.go +++ b/storage/engine.go @@ -315,6 +315,9 @@ func (e *Engine) runRetentionEnforcer() { func (e *Engine) Close() error { e.mu.RLock() if e.closing == nil { + e.mu.RUnlock() + // Unusual if an engine is closed more than once, so note it. + e.logger.Info("Close() called on already-closed engine") return nil // Already closed }
fix(storage): add missing RUnlock in Engine.Close I don't see anywhere obvious that an engine would be closed twice, but if it was, the RLock would have been held permanently, such that a Lock could not be taken later. Running go test ./storage/... did not trigger a double-close.
influxdata_influxdb
train
go
30748e8ad8b58d8c095d5050bec1ceb72893b511
diff --git a/test/environments.js b/test/environments.js index <HASH>..<HASH> 100644 --- a/test/environments.js +++ b/test/environments.js @@ -2,9 +2,11 @@ var f = require('util').format; var path = require('path'); -var ServerManager = require('mongodb-topology-manager').Server, - ReplSetManager = require('mongodb-topology-manager').ReplSet, - ShardingManager = require('mongodb-topology-manager').Sharded; + +var topologyManagers = require('mongodb-test-runner').topologyManagers, + ServerManager = topologyManagers.Server, + ReplSetManager = topologyManagers.ReplSet, + ShardingManager = topologyManagers.Sharded; var replicaSetEnvironment = function() { return {
refactor(environments): use topology managers from test runner
mongodb-js_mongodb-core
train
js
3f0bc064123ec90946418ae24e6e668f5246d981
diff --git a/src/index.js b/src/index.js index <HASH>..<HASH> 100644 --- a/src/index.js +++ b/src/index.js @@ -41,10 +41,17 @@ export const sessionStore = { }, logout({commit, state}) { const httpLib = state.httpLib || this.$axios - if (httpLib) httpLib.post(`${state.baseUrl}/logout`) - else console.error('No http client found to send logout action. You should pass Vue.http or Vue.axios as init param.') - commit('setAny', {user: null}) - if (state.logoutRedirectUrl) window.location.href = state.logoutRedirectUrl + if (!httpLib) { + console.error('No http client found to send logout action. You should pass Vue.http or Vue.axios as init param.') + return + } + return httpLib.post(`${state.baseUrl}/logout`).then(() => { + if (state.logoutRedirectUrl) { + window.location.href = state.logoutRedirectUrl + return + } + commit('setAny', {user: null}) + }) }, switchOrganization({state, commit, dispatch}, organizationId) { if (organizationId) cookies.set(`${state.cookieName}_org`, organizationId)
fix: wait for effective logout before redirecting
koumoul-dev_sd-vue
train
js
3aa16adeff6d4ffe087ddf5d08f3168892972494
diff --git a/fritzconnection/core/soaper.py b/fritzconnection/core/soaper.py index <HASH>..<HASH> 100644 --- a/fritzconnection/core/soaper.py +++ b/fritzconnection/core/soaper.py @@ -168,7 +168,7 @@ class Soaper: <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">{body} </s:Envelope> - """) + """).replace('/"xmlns:', '/" xmlns:') body_template = re.sub(r'\s +', '', """ <s:Body>
fix: make soap envelope xml standard conform.
kbr_fritzconnection
train
py
5138ab2016c9b86117f0a885ef9b719201fce612
diff --git a/src/helpers.php b/src/helpers.php index <HASH>..<HASH> 100755 --- a/src/helpers.php +++ b/src/helpers.php @@ -176,25 +176,6 @@ if (!function_exists('fill_template_with_field_data')) { } } -if (!function_exists('fill_template_with_field_data')) { - /** - * fill template with field data. - * - * @param array $variables - * @param array $fieldVariables - * @param string $template - * @param \InfyOm\Generator\Common\GeneratorField $field - * - * @return string - */ - function fill_template_with_field_data($variables, $fieldVariables, $template, $field) - { - $template = fill_template($variables, $template); - - return fill_field_template($fieldVariables, $template, $field); - } -} - if (!function_exists('model_name_from_table_name')) { /** * generates model name from table name.
fix(helpers): #<I> removed duplicate function (#<I>)
InfyOmLabs_laravel-generator
train
php
2c7f4ee22297dbe1cb950b4213b3cfe23c2aef9a
diff --git a/src/components/Tile/Tile.js b/src/components/Tile/Tile.js index <HASH>..<HASH> 100644 --- a/src/components/Tile/Tile.js +++ b/src/components/Tile/Tile.js @@ -24,6 +24,8 @@ export class Tile extends Component { } export class ClickableTile extends Component { + state = {}; + static propTypes = { /** * The child nodes. @@ -79,8 +81,8 @@ export class ClickableTile extends Component { }; static getDerivedStateFromProps({ clicked }, state) { - const { prevClicked } = state || {}; - return state && prevClicked === clicked + const { prevClicked } = state; + return prevClicked === clicked ? null : { clicked, @@ -211,8 +213,8 @@ export class SelectableTile extends Component { }; static getDerivedStateFromProps({ selected }, state) { - const { prevSelected } = state || {}; - return state && prevSelected === selected + const { prevSelected } = state; + return prevSelected === selected ? null : { selected,
fix(ClickableTile): add initial state to prevent warnings (#<I>) * fix(ClickableTile): add initial state to prevent warnings * fix(ClickableTile): remove undefined state handling
carbon-design-system_carbon-components-react
train
js
15407e4c66ce22558baa7dfef8c3255f2916fda0
diff --git a/example/bullmq.js b/example/bullmq.js index <HASH>..<HASH> 100644 --- a/example/bullmq.js +++ b/example/bullmq.js @@ -13,11 +13,13 @@ async function main() { await server.open(); const queue = new Queue('name_of_my_queue', { - redis: { - port: REDIS_SERVER_PORT, - }, + connection: { port: REDIS_SERVER_PORT }, }); + // adding delayed jobs + const delayedJob = await queue.add('delayed', {}, { delay: 60 * 1000 }); + delayedJob.log('Log message'); + Arena( { BullMQ: Queue,
chore(bullmq): adding delayedJob in example
bee-queue_arena
train
js
df6bb125213e8b9f945a0833ce7e9a2f6355f1bc
diff --git a/src/Modules/Endpoint.php b/src/Modules/Endpoint.php index <HASH>..<HASH> 100644 --- a/src/Modules/Endpoint.php +++ b/src/Modules/Endpoint.php @@ -273,7 +273,7 @@ class Endpoint extends Abstract_Module { // fetch the calculated hashes. if ( ! $wp_filesystem->is_readable( $path . '/' . self::HASH_FILE ) ) { - return new WP_Error( 'themeisle_sdk_hash_not_found', sprintf( '%s not found', self::HASH_FILE ) ); + return new \WP_Error( 'themeisle_sdk_hash_not_found', sprintf( '%s not found', self::HASH_FILE ) ); } $hashes = json_decode( $wp_filesystem->get_contents( $path . '/' . self::HASH_FILE ), true );
fix: undefined class on diff module which should check the class on global namespace
Codeinwp_themeisle-sdk
train
php
eaf5f42fdde73b9c0c6cb0e80c704116c9273e44
diff --git a/server/index.js b/server/index.js index <HASH>..<HASH> 100644 --- a/server/index.js +++ b/server/index.js @@ -16,6 +16,7 @@ onExit(() => { // Connect to watchman. let starting = watcher.start() +starting.catch(onError) // Start the API server. slush({
fix: catch watcher.start() errors before the server is ready
aleclarson_wch
train
js
4760c1a4c638d2a1d3991dd619306a2622e7e6ea
diff --git a/src/ToastContainer.js b/src/ToastContainer.js index <HASH>..<HASH> 100644 --- a/src/ToastContainer.js +++ b/src/ToastContainer.js @@ -58,14 +58,7 @@ module.exports = React.createClass({ }, render () { - var {props, state} = this; - return this.transferPropsTo( - <div aria-live="polite" role="alert"> - {state.toasts.map((toast) => { - return props.toastMessageClass(toast); - })} - </div> - ); + return this._render(this.props, this.state); }, _notify (type, message, title, optionsOverride) { @@ -117,5 +110,13 @@ module.exports = React.createClass({ })); return true; }, false); + }, + + _render (props, state) { + return <div {...props} aria-live="polite" role="alert"> + {state.toasts.map((toast) => { + return props.toastMessageClass(toast); + })} + </div>; } });
chore(ToastContainer): remove transferPropsTo usage with spread operator
tomchentw_react-toastr
train
js
ad3bc82937fc214bf9412bcb9fafcd9e2689339e
diff --git a/static/lib/composer/formatting.js b/static/lib/composer/formatting.js index <HASH>..<HASH> 100644 --- a/static/lib/composer/formatting.js +++ b/static/lib/composer/formatting.js @@ -61,7 +61,7 @@ define('composer/formatting', ['composer/controls', 'composer/preview', 'compose } }); - screenfull.request(postContainer.get(0)); + screenfull.toggle(postContainer.get(0)); } };
feat: toggle fullscreen on "zen"-button click
NodeBB_nodebb-plugin-composer-default
train
js
ea98461de50b06051c2c1eb30cbf819dc52322a6
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -319,7 +319,7 @@ texinfo_documents = [ # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = { 'https://docs.python.org/': None, - 'flask': ('http://flask.pocoo.org/docs/0.11', None), + 'flask': ('http://flask.pocoo.org/docs/0.12', None), } # Autodoc configuraton.
docs: point intersphinx to Flask <I> * (closes #<I>).
inveniosoftware_invenio-oauth2server
train
py
4d7cb30cadc0a0d5a03d1b2a95782d6d1c06e195
diff --git a/packages/node_modules/@webex/webex-core/src/lib/services/interceptors/server-error.js b/packages/node_modules/@webex/webex-core/src/lib/services/interceptors/server-error.js index <HASH>..<HASH> 100644 --- a/packages/node_modules/@webex/webex-core/src/lib/services/interceptors/server-error.js +++ b/packages/node_modules/@webex/webex-core/src/lib/services/interceptors/server-error.js @@ -33,7 +33,7 @@ export default class ServerErrorInterceptor extends Interceptor { tags: {action: 'failed', error: reason.message, url: options.uri} }); - return this.webex.internal.device.markUrlFailedAndGetNew(options.uri) + return Promise.resolve(this.webex.internal.services.markFailedUrl(options.uri)) .then(() => Promise.reject(reason)); } }
fix(webex-core): change host failover to services Change the host failover method from device#markUrlFailedAndGetNew() to service#markFailedUrl().
webex_spark-js-sdk
train
js
ec36fa29090be333f6d8466205bcbbeb8f0c5633
diff --git a/packages/website/src/pages/index.js b/packages/website/src/pages/index.js index <HASH>..<HASH> 100644 --- a/packages/website/src/pages/index.js +++ b/packages/website/src/pages/index.js @@ -47,6 +47,7 @@ const IndexPage = ({ data }) => { src={LogoUrl} width={560} height={110} + alt="SimpleBar logo" /> </div> </div> @@ -113,13 +114,13 @@ const IndexPage = ({ data }) => { }} > <li> - <img src={TwitchUrl} /> + <img src={TwitchUrl} alt="Twitch" /> </li> <li> - <img src={StorybookUrl} /> + <img src={StorybookUrl} alt="Storybook" /> </li> <li> - <img src={ZulipUrl} /> + <img src={ZulipUrl} alt="Zulip" /> </li> </List> </Layout>
chore(website): fix missing alt texts
Grsmto_simplebar
train
js
75409d8d5800c25d744d4d02e2b7d14b23d0af91
diff --git a/packages/image/src/styledComponents/Image.js b/packages/image/src/styledComponents/Image.js index <HASH>..<HASH> 100644 --- a/packages/image/src/styledComponents/Image.js +++ b/packages/image/src/styledComponents/Image.js @@ -21,6 +21,8 @@ const StyledImage = styled.div` background-origin: border-box; background-repeat: no-repeat; box-sizing: border-box; + min-width: ${size}px; + min-height: ${size}px; width: ${size}px; height: ${size}px; overflow: hidden;
fix(image): fix div dimensions on Image component affects: @crave/farmblocks-image ISSUES CLOSED: #<I>
CraveFood_farmblocks
train
js
abfacc432300941d57488842e41c06d885637e6c
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -42,7 +42,7 @@ setup( "twine>=3,<4", "requests>=2.25,<3", "wheel", - "python-gitlab>=1.10,<2", + "python-gitlab>=1.10,<3", "tomlkit>=0.7.0,<1.0.0", "dotty-dict>=1.3.0,<2", ],
fix: Upgrade python-gitlab range Keeping both 1.x and 2.x since only change that is breaking is dropping python <I> support. I hope that leaving the lower limit will make it still work with python <I>. Fixes #<I>
relekang_python-semantic-release
train
py
945a01e41fd1538f9019c65d6d5de0af31211879
diff --git a/packages/@vue/cli-plugin-eslint/__tests__/eslintGenerator.spec.js b/packages/@vue/cli-plugin-eslint/__tests__/eslintGenerator.spec.js index <HASH>..<HASH> 100644 --- a/packages/@vue/cli-plugin-eslint/__tests__/eslintGenerator.spec.js +++ b/packages/@vue/cli-plugin-eslint/__tests__/eslintGenerator.spec.js @@ -1,3 +1,5 @@ +jest.setTimeout(35000) + const generateWithPlugin = require('@vue/cli-test-utils/generateWithPlugin') const create = require('@vue/cli-test-utils/createTestProject')
test: bump jest timeout, since @vue/eslint-config-* are now externalized
vuejs_vue-cli
train
js
651609546d4051b0cf82ad3bf1473c5356d3a595
diff --git a/test/router.js b/test/router.js index <HASH>..<HASH> 100644 --- a/test/router.js +++ b/test/router.js @@ -101,6 +101,15 @@ tape('trie', function (t) { r('/tobi/baz') }) + t.test('.emit() should parse encoded params', function (t) { + t.plan(1) + const r = wayfarer() + r.on('/:channel', function (param) { + t.equal(param.channel, '#choo', 'param matched') + }) + r('/%23choo') + }) + t.test('.emit() should throw if no matches are found', function (t) { t.plan(1) const r1 = wayfarer() diff --git a/trie.js b/trie.js index <HASH>..<HASH> 100644 --- a/trie.js +++ b/trie.js @@ -65,7 +65,7 @@ Trie.prototype.match = function (route) { return search(index + 1, trie.nodes[route]) } else if (trie.name) { // match named routes - params[trie.name] = route + params[trie.name] = decodeURIComponent(route) return search(index + 1, trie.nodes['$$']) } else { // no matches found
fix(params): decode params (#<I>)
choojs_wayfarer
train
js,js
ba4ba0267e6f9f6ce6fed09c5d89965eee5c9f92
diff --git a/superset/migrations/versions/2022-06-19_16-17_f3afaf1f11f0_add_unique_name_desc_rls.py b/superset/migrations/versions/2022-06-19_16-17_f3afaf1f11f0_add_unique_name_desc_rls.py index <HASH>..<HASH> 100644 --- a/superset/migrations/versions/2022-06-19_16-17_f3afaf1f11f0_add_unique_name_desc_rls.py +++ b/superset/migrations/versions/2022-06-19_16-17_f3afaf1f11f0_add_unique_name_desc_rls.py @@ -72,8 +72,7 @@ def upgrade(): def downgrade(): - # ### commands auto generated by Alembic - please adjust! ### - op.drop_constraint("uq_rls_name", "row_level_security_filters", type_="unique") - op.drop_column("row_level_security_filters", "description") - op.drop_column("row_level_security_filters", "name") - # ### end Alembic commands ### + with op.batch_alter_table("row_level_security_filters") as batch_op: + batch_op.drop_constraint("uq_rls_name", type_="unique") + batch_op.drop_column("description") + batch_op.drop_column("name")
fix: RLS new db migration downgrade fails on SQLite (#<I>)
apache_incubator-superset
train
py
d9434a5ac96a34ea74266d1116b464d6e1f608cf
diff --git a/pipreqs/pipreqs.py b/pipreqs/pipreqs.py index <HASH>..<HASH> 100755 --- a/pipreqs/pipreqs.py +++ b/pipreqs/pipreqs.py @@ -57,7 +57,7 @@ def get_all_imports(path, encoding=None): for file_name in files: with open_func(os.path.join(root, file_name), "r", encoding=encoding) as f: contents = re.sub(re.compile("'''.+?'''", re.DOTALL), '', f.read()) - contents = re.sub(re.compile('""".+"""', re.DOTALL), "", contents) + contents = re.sub(re.compile('""".+?"""', re.DOTALL), "", contents) lines = contents.split("\n") lines = filter( filter_line, map(lambda l: l.partition("#")[0].strip(), lines))
fix(pipreqs): correct regex for docstring
bndr_pipreqs
train
py
aaa25373f330845b2a9fef373d46414dcaa98d4e
diff --git a/cloudinit/systemd.go b/cloudinit/systemd.go index <HASH>..<HASH> 100644 --- a/cloudinit/systemd.go +++ b/cloudinit/systemd.go @@ -115,7 +115,9 @@ func RestartUnitByName(name string) error { return err } - _, err = conn.RestartUnit(name, "replace") + output, err = conn.RestartUnit(name, "replace") + log.Printf("Restart completed with '%s'", output) + return err }
chore(log): Add more logging
coreos_coreos-cloudinit
train
go
9d6719935b07f80c9182b1624b25d2b3f30dda3a
diff --git a/test/test_simplendf.py b/test/test_simplendf.py index <HASH>..<HASH> 100644 --- a/test/test_simplendf.py +++ b/test/test_simplendf.py @@ -13,7 +13,8 @@ class TestSimpleNDF(unittest.TestCase): def tearDown(self): ndf.end() - os.remove( self.testndf ) + if os.path.isfile(self.testndf): + os.remove( self.testndf ) def test_simpleread(self): indf = ndf.open(os.path.join('data','ndf_test.sdf'))
test: ensure SimpleNDF doesn't try and remove a file that isn't there
sfgraves_starlink-pyhds
train
py
6824ac49ee36ee00f29aa97fe9001f6b5696cbe2
diff --git a/e2e/jest.config.js b/e2e/jest.config.js index <HASH>..<HASH> 100644 --- a/e2e/jest.config.js +++ b/e2e/jest.config.js @@ -3,7 +3,7 @@ module.exports = { transform: { '\\.ts$': '<rootDir>/dist/index.js', }, - testMatch: ['<rootDir>/e2e/__tests__/**/?(*.)+(spec|test).ts?(x)'], + testMatch: ['<rootDir>/e2e/__tests__/**/*.test.ts'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'], testEnvironment: 'node', snapshotSerializers: [
fix: test path for windows (attempt 1)
kulshekhar_ts-jest
train
js
1dbed8517c92b679d0af60f64f727f3cb13cc32a
diff --git a/tests/utils/create-live-test-site.js b/tests/utils/create-live-test-site.js index <HASH>..<HASH> 100644 --- a/tests/utils/create-live-test-site.js +++ b/tests/utils/create-live-test-site.js @@ -1,3 +1,7 @@ +const { + env: { NETLIFY_TEST_ACCOUNT_SLUG }, +} = require('process') + const stripAnsi = require('strip-ansi') const callCli = require('./call-cli') @@ -23,7 +27,9 @@ const createLiveTestSite = async function (siteName) { if (!Array.isArray(accounts) || accounts.length <= 0) { throw new Error(`Can't find suitable account to create a site`) } - const [account] = accounts + const account = NETLIFY_TEST_ACCOUNT_SLUG + ? accounts.find(({ slug }) => slug === NETLIFY_TEST_ACCOUNT_SLUG) + : accounts[0] const accountSlug = account.slug console.log(`Using account ${accountSlug} to create site: ${siteName}`) const cliResponse = await callCli(['sites:create', '--name', siteName, '--account-slug', accountSlug])
test: allow configuring test account slug (#<I>)
netlify_cli
train
js
e6e706a543080247f26aaa4504788d8f10a19beb
diff --git a/raiden/raiden_service.py b/raiden/raiden_service.py index <HASH>..<HASH> 100644 --- a/raiden/raiden_service.py +++ b/raiden/raiden_service.py @@ -230,11 +230,19 @@ class RaidenAPI(object): manager = self.raiden.get_manager_by_asset_address(asset_address_bin) channel = manager.get_channel_by_partner_address(partner_address_bin) + first_transfer = None + if channel.received_transfers: + first_transfer = channel.received_transfers[-1] + + second_transfer = None + if channel.sent_transfers: + second_transfer = channel.sent_transfers[-1] + netting_channel = channel.external_state.netting_channel netting_channel.close( self.raiden.address, - channel.received_transfers[-1], - channel.sent_transfers[-1], + first_transfer, + second_transfer, )
fix: maybe just one party has sent a transfer
raiden-network_raiden
train
py
ed67b638fc2254f7b33e112f944b489067ead4c5
diff --git a/src/Leevel/Database/Database.php b/src/Leevel/Database/Database.php index <HASH>..<HASH> 100644 --- a/src/Leevel/Database/Database.php +++ b/src/Leevel/Database/Database.php @@ -32,7 +32,7 @@ use PDOStatement; use Throwable; /** - * 数据库抽象层 + * 数据库抽象层. * * @method static \Leevel\Database\Condition databaseCondition() 查询对象. * @method static \Leevel\Database\IDatabase databaseConnect() 返回数据库连接对象.
refactor(database): code poem
hunzhiwange_framework
train
php
ad84b25e8e20469d7432347a6d308373616531ec
diff --git a/lib/stripe/resources/account.rb b/lib/stripe/resources/account.rb index <HASH>..<HASH> 100644 --- a/lib/stripe/resources/account.rb +++ b/lib/stripe/resources/account.rb @@ -12,6 +12,7 @@ module Stripe OBJECT_NAME = "account" + custom_method :persons, http_verb: :get custom_method :reject, http_verb: :post nested_resource_class_methods :capability, @@ -20,6 +21,15 @@ module Stripe nested_resource_class_methods :person, operations: %i[create retrieve update delete list] + def persons(params = {}, opts = {}) + request_stripe_object( + method: :get, + path: resource_url + "/persons", + params: params, + opts: opts + ) + end + def reject(params = {}, opts = {}) request_stripe_object( method: :post, @@ -60,11 +70,6 @@ module Stripe super(id, opts) end - def persons(params = {}, opts = {}) - resp, opts = execute_resource_request(:get, resource_url + "/persons", params, opts) - Util.convert_to_stripe_object(resp.data, opts) - end - # We are not adding a helper for capabilities here as the Account object # already has a capabilities property which is a hash and not the sub-list # of capabilities.
chore: Stop special implementation of Account.persons method. (#<I>)
stripe_stripe-ruby
train
rb
104758e2014acc2a839e90f86aece7f96185bb47
diff --git a/packages/node_modules/@webex/plugin-meetings/src/meeting/util.js b/packages/node_modules/@webex/plugin-meetings/src/meeting/util.js index <HASH>..<HASH> 100644 --- a/packages/node_modules/@webex/plugin-meetings/src/meeting/util.js +++ b/packages/node_modules/@webex/plugin-meetings/src/meeting/util.js @@ -442,8 +442,8 @@ MeetingUtil.stopRecording = (request, locusUrl, locusInfo) => { }; MeetingUtil.canUserRaiseHand = (displayHints) => displayHints.includes(DISPLAY_HINTS.RAISE_HAND); -MeetingUtil.canUserLowerAllHands = (displayHints) => displayHints.includes(DISPLAY_HINTS.LOWER_ALL_HANDS); +MeetingUtil.canUserLowerAllHands = (displayHints) => displayHints.includes(DISPLAY_HINTS.LOWER_ALL_HANDS); MeetingUtil.lockMeeting = (actions, request, locusUrl) => { if (actions && actions.canLock) {
feat(raisehand): removed extra line
webex_spark-js-sdk
train
js
e322e733e6c9217991bfddd108ad2290dc064c63
diff --git a/js/src/figure.js b/js/src/figure.js index <HASH>..<HASH> 100644 --- a/js/src/figure.js +++ b/js/src/figure.js @@ -849,6 +849,7 @@ var FigureView = widgets.DOMWidgetView.extend( { var size = this.renderer.getSize(); if (this.camera.parent === null ) this.camera.updateMatrixWorld(); this.camera_stereo.eyeSep = this.model.get('eye_separation')/100; + this.camera.focus = this.camera.cameraP.focus this.camera_stereo.update(this.camera) // left eye
fix: stereo rendering didn't work any more since the combined camera
maartenbreddels_ipyvolume
train
js
246669c92e0c2aa4dfedf2e8655efacd21db3adc
diff --git a/packages/webpack/lib/plugins/log.js b/packages/webpack/lib/plugins/log.js index <HASH>..<HASH> 100644 --- a/packages/webpack/lib/plugins/log.js +++ b/packages/webpack/lib/plugins/log.js @@ -60,7 +60,7 @@ exports.LoggerPlugin = class LoggerPlugin { } const { hints, maxAssetSize } = this.performance; const { hash, startTime, endTime } = stats; - const isRebuild = this.lastHashes[name]; + const isRebuild = Boolean(this.lastHashes[name]); const duration = prettyMS(endTime - startTime); const { assets } = stats.toJson(statsToJsonOptions); const shouldEmitAssetSizeFeedback =
refactor(webpack): cast optional property as boolean
untool_untool
train
js
61a9973b13912640c9c6fe9caa035c1827f1186d
diff --git a/proselint/checks/uncomparables/misc.py b/proselint/checks/uncomparables/misc.py index <HASH>..<HASH> 100644 --- a/proselint/checks/uncomparables/misc.py +++ b/proselint/checks/uncomparables/misc.py @@ -114,7 +114,7 @@ def check(text): ("more", "possible") # FIXME ] - all = [i[0] + r"\s" + i[1] + r"[\W$]" for i in itertools.product( + all = [fr"(^|\W){i[0]}\s{i[1]}[\W$]" for i in itertools.product( comparators, uncomparables) if i not in exceptions] occ = re.finditer("|".join(all), text.lower())
fix: reduce false positives in uncomparables
amperser_proselint
train
py
eae2084697a9f875f4d554b6654a79cdc39883b2
diff --git a/src/tests/app.component.spec.js b/src/tests/app.component.spec.js index <HASH>..<HASH> 100644 --- a/src/tests/app.component.spec.js +++ b/src/tests/app.component.spec.js @@ -5,6 +5,6 @@ describe('Splash page', function() { }); it('should redirect to the worklist.', function() { - expect(browser.getCurrentUrl()).toMatch(".*?/work-item/list"); + expect(browser.getCurrentUrl()).toMatch("http://localhost:8088/"); }); });
fix(tests): Change redirect URL for test
fabric8-ui_fabric8-planner
train
js
6a875aaeaf0dce77503a2c283791b209f18c3b69
diff --git a/core/src/main/java/com/orientechnologies/orient/core/index/OCompositeIndexDefinition.java b/core/src/main/java/com/orientechnologies/orient/core/index/OCompositeIndexDefinition.java index <HASH>..<HASH> 100755 --- a/core/src/main/java/com/orientechnologies/orient/core/index/OCompositeIndexDefinition.java +++ b/core/src/main/java/com/orientechnologies/orient/core/index/OCompositeIndexDefinition.java @@ -386,7 +386,7 @@ public class OCompositeIndexDefinition extends OAbstractIndexDefinition { /** {@inheritDoc} */ public String toCreateIndexDDL(final String indexName, final String indexType, String engine) { final StringBuilder ddl = new StringBuilder("create index "); - ddl.append(indexName).append(" on ").append(className).append(" ( "); + ddl.append('`').append(indexName).append('`').append(" on ").append(className).append(" ( "); final Iterator<String> fieldIterator = getFieldsToIndex().iterator(); if (fieldIterator.hasNext()) {
fix: minor correction in composite index creation query
orientechnologies_orientdb
train
java
9c324e305dd894fae2524524893cd7543c0c9b42
diff --git a/src/Common/Service/Database.php b/src/Common/Service/Database.php index <HASH>..<HASH> 100644 --- a/src/Common/Service/Database.php +++ b/src/Common/Service/Database.php @@ -121,7 +121,7 @@ class Database } if ($this->bIsTesting) { - $this->trans_begin(); + $this->oDb->trans_begin(); } } @@ -133,7 +133,7 @@ class Database public function __destruct() { if ($this->bIsTesting) { - $this->trans_rollback(); + $this->oDb->trans_rollback(); } }
refactor: querying the DB driver directly
nails_common
train
php
718616c3cd1fa8a0a0a71f92df3238a1fd611dc8
diff --git a/optlang/gurobi_interface.py b/optlang/gurobi_interface.py index <HASH>..<HASH> 100644 --- a/optlang/gurobi_interface.py +++ b/optlang/gurobi_interface.py @@ -569,6 +569,8 @@ class Model(interface.Model): super(Model, self).update(callback=self.problem.update) def _optimize(self): + if self.status != interface.OPTIMAL: + self.problem.reset() self.problem.update() self.problem.optimize() status = _GUROBI_STATUS_TO_STATUS[self.problem.getAttr("Status")]
fix: reset solution before optimizing if non-optimal This is due to a bug where gurobi can get stuck
biosustain_optlang
train
py
1d749f43ab61a6b46592da59f219c37fb5e8a666
diff --git a/src/DataCollector/GuzzleHttpDataCollector.php b/src/DataCollector/GuzzleHttpDataCollector.php index <HASH>..<HASH> 100644 --- a/src/DataCollector/GuzzleHttpDataCollector.php +++ b/src/DataCollector/GuzzleHttpDataCollector.php @@ -13,9 +13,7 @@ use Symfony\Component\HttpKernel\DataCollector\DataCollector; */ class GuzzleHttpDataCollector extends DataCollector { - /** - * @var GuzzleHttpClient[] - */ + /** @var GuzzleHttpClient[] */ private $clients = []; public function __construct()
fix(cs): cs fix
M6Web_GuzzleHttpBundle
train
php
860eddfbc52ff829c9b01decf8141080010a7577
diff --git a/source/rafcon/gui/models/modification_history.py b/source/rafcon/gui/models/modification_history.py index <HASH>..<HASH> 100644 --- a/source/rafcon/gui/models/modification_history.py +++ b/source/rafcon/gui/models/modification_history.py @@ -422,7 +422,7 @@ class ModificationsHistoryModel(ModelMT): overview['signal'][-1]['change'] in ['append_to_last_change'] or \ overview['signal'][-1]['origin'] in ['group_states', 'ungroup_state', 'substitute_state']: # update last actions after_state_image -> meta-data - self.active_action.after_storage = self.active_action.get_state_image() + self.active_action.after_state_image = self.active_action.get_state_image() self.update_internal_tmp_storage() else: if isinstance(overview['model'][-1], AbstractStateModel):
fix(modification_history): store state image in correct variable Relict from refactoring
DLR-RM_RAFCON
train
py
75bea13d73a4f3634b0b902bfec64cb49024bd29
diff --git a/profiler.js b/profiler.js index <HASH>..<HASH> 100644 --- a/profiler.js +++ b/profiler.js @@ -44,6 +44,7 @@ profile = function (isResolved) { ++data[line].count; return true; } + return false; }) ) { if (!data.unknown) { @@ -78,8 +79,8 @@ exports.profileEnd = function () { log += lpad.call(data.count) + " " + name + "\n"; }, null, - function (a, b) { - return this[b].count - this[a].count; + function (data1, data2) { + return this[data2].count - this[data1].count; } ); } @@ -92,8 +93,8 @@ exports.profileEnd = function () { log += lpad.call(data.count) + " " + name + "\n"; }, null, - function (a, b) { - return this[b].count - this[a].count; + function (data1, data2) { + return this[data2].count - this[data1].count; } ); }
refactor: lint
medikoo_deferred
train
js
ce834ee969abd35de0573e9a73f9e9049715d738
diff --git a/src/ExampleBundle/Controller/OrderController.php b/src/ExampleBundle/Controller/OrderController.php index <HASH>..<HASH> 100644 --- a/src/ExampleBundle/Controller/OrderController.php +++ b/src/ExampleBundle/Controller/OrderController.php @@ -83,8 +83,6 @@ class OrderController extends AbstractController { $order = $this->manager->getOrderForUser($request->getLocale(), $orderId, $user, $session->getId()); -// dump($this->container->get('commercetools.custom_types')); - if (!$order instanceof Order) { $this->addFlash('error', sprintf('Cannot find order: %s', $orderId)); return $this->render('@Example/index.html.twig');
fix(custom-types): remove commented code
commercetools_commercetools-php-symfony
train
php
7af9f711b9619dc8ace9f7e5ef9c4904991a820f
diff --git a/deis/__init__.py b/deis/__init__.py index <HASH>..<HASH> 100644 --- a/deis/__init__.py +++ b/deis/__init__.py @@ -6,4 +6,4 @@ the api, provider, cm, and web Django apps. from __future__ import absolute_import -__version__ = '1.1.0' +__version__ = '1.2.0-dev'
chore(release): update version in master to <I>-dev
deis_controller-sdk-go
train
py
742eb3341354a4fd04975ee458b04f79c75c690b
diff --git a/index.js b/index.js index <HASH>..<HASH> 100755 --- a/index.js +++ b/index.js @@ -50,3 +50,7 @@ module.exports.parseCookie = function(respHeader) { return cookie; }; + +// for analyzation +require("stream-http"); +require("https-browserify");
feat: for analyzation
XadillaX_spidex
train
js
e27bb378e05c5533c9dbe4d652578b9ccdcf2705
diff --git a/examples/basic/docgen.config.js b/examples/basic/docgen.config.js index <HASH>..<HASH> 100644 --- a/examples/basic/docgen.config.js +++ b/examples/basic/docgen.config.js @@ -1,5 +1,5 @@ module.exports = { componentsRoot: 'src/components', - components: '**/*.vue', - outDir: 'docs/components' + components: '**/[A-Z]*.vue', + outDir: '../../docs/components' }
docs: example of how to generate vuepress docs
vue-styleguidist_vue-styleguidist
train
js
b20701e361c6044b1d32f113f7123186d4ef2205
diff --git a/lib/resource-enrichers/health-check-enricher.js b/lib/resource-enrichers/health-check-enricher.js index <HASH>..<HASH> 100644 --- a/lib/resource-enrichers/health-check-enricher.js +++ b/lib/resource-enrichers/health-check-enricher.js @@ -21,6 +21,7 @@ // Enricher for adding a Health Check, based on the kube-probe module, to the Deployment Config const _ = require('lodash'); +const logger = require('../common-log')(); const DEFAULT_PROBE = { readinessProbe: { @@ -52,6 +53,11 @@ async function addHealthCheckInfo (config, resourceList) { // If not, then just return the resource return resource; } + + // DEPRECATE THIS ENRICHER + // The kube-probe module is being deprecated, so this should also be deprecated then removed + logger.warning('The Health Check enricher is Deprecated and will be removed in the next major version'); + // If so, then add the stuff const updatedDefault = _.merge( {},
fix: add deprecation for the health check enricher (#<I>)
nodeshift_nodeshift
train
js
7de54981d529f430cc0766906df20fa2dc7c9fe0
diff --git a/src/Client.php b/src/Client.php index <HASH>..<HASH> 100644 --- a/src/Client.php +++ b/src/Client.php @@ -290,7 +290,7 @@ class Client $this->timeDataCollector->stopMeasure('getData'); } if (200 != $code) { - throw new RuntimeException('HTTP Status code: '.$code); + throw new RuntimeException('HTTP Status code: '.$code.'message: '.$json); } $data = @json_decode($json, true); curl_close($ch);
fix: debuging account picture issue #<I>
linkorb_userbase-client-php
train
php
7fcdaef1c92c65d981ac2ebc1077d8da0c3ca285
diff --git a/packages/netlify-cms-ui-default/src/Dropdown.js b/packages/netlify-cms-ui-default/src/Dropdown.js index <HASH>..<HASH> 100644 --- a/packages/netlify-cms-ui-default/src/Dropdown.js +++ b/packages/netlify-cms-ui-default/src/Dropdown.js @@ -38,7 +38,7 @@ const DropdownList = styled.ul` top: 0; left: 0; min-width: 100%; - z-index: ${zIndex.zIndex2}; + z-index: ${zIndex.zIndex299}; ${props => css` width: ${props.width};
fix: increase DropdownList z-index (#<I>)
netlify_netlify-cms
train
js
fa4d1ea8398cd729ad5cbaaff88e4b8805393945
diff --git a/cluster.go b/cluster.go index <HASH>..<HASH> 100644 --- a/cluster.go +++ b/cluster.go @@ -1605,6 +1605,7 @@ func (c *ClusterClient) cmdsInfo(ctx context.Context) (map[string]*CommandInfo, func (c *ClusterClient) cmdInfo(name string) *CommandInfo { cmdsInfo, err := c.cmdsInfoCache.Get(c.ctx) if err != nil { + internal.Logger.Printf(context.TODO(), "getting command info: %s", err) return nil }
fix: log errors from cmdsInfoCache Since the error gets swallowed in cmdInfo(), it's important to log it so it's possible for the user to see what the error was.
go-redis_redis
train
go
a00eb6f316090e3d64b75304eb97938a18d53df0
diff --git a/npm/vue/.releaserc.js b/npm/vue/.releaserc.js index <HASH>..<HASH> 100644 --- a/npm/vue/.releaserc.js +++ b/npm/vue/.releaserc.js @@ -1,7 +1,7 @@ module.exports = { ...require('../../.releaserc.base'), branches: [ - { name: 'next/npm/vue2' }, + { name: 'npm/vue/v2' }, { name: 'master', channel: 'next', prerelease: 'beta' }, ], }
ci: use npm/vue/v2 as the name of the vue2 branch
cypress-io_cypress
train
js
a1a4596f8912f4b8120bf4cff09599091cefad5d
diff --git a/src/endpoints/account-members.js b/src/endpoints/account-members.js index <HASH>..<HASH> 100644 --- a/src/endpoints/account-members.js +++ b/src/endpoints/account-members.js @@ -7,7 +7,7 @@ class AccountMembersEndpoint extends BaseExtend { this.endpoint = 'account-members' } - Get({ accountMemberId, token = null }) { + Get(accountMemberId, token = null) { return this.request.send( `${this.endpoint}/${accountMemberId}`, 'GET',
fix: account members endpoint (#<I>)
moltin_js-sdk
train
js
87eaab6faf3289781b952b5d4dd9c681a2648644
diff --git a/plugins.js b/plugins.js index <HASH>..<HASH> 100644 --- a/plugins.js +++ b/plugins.js @@ -17,8 +17,9 @@ const load = function(includes, excludes) { var resolverPackage = require(path.resolve(__dirname, 'package')); // map include and exclude names to regex patterns for paths + const pathSeps = '[/\\\\]'; var pluginToRegex = function(name) { - var pattern = path.sep + '(plugins' + path.sep + '|' + resolverPackage.name + '-)' + name + path.sep; + var pattern = pathSeps + '(plugins' + pathSeps + '|' + resolverPackage.name + '-)' + name + pathSeps; return new RegExp(pattern); };
fix(plugins): use character class for path separators path.sep is not a valid regex when on win<I> (single "\") resolves #<I>
ngageoint_opensphere-build-resolver
train
js
3e9b58008dac0ba62081c17907dba68e798f71c1
diff --git a/packages/hoc-input/src/formInput.test.js b/packages/hoc-input/src/formInput.test.js index <HASH>..<HASH> 100644 --- a/packages/hoc-input/src/formInput.test.js +++ b/packages/hoc-input/src/formInput.test.js @@ -173,4 +173,14 @@ describe("formInput", function() { component.find(".clear i").simulate("mousedown", event); expect(event.preventDefault).toHaveBeenCalledTimes(1); }); + + test("click on the dropdown icon should remove input's focus", () => { + const value = "tomato"; + const component = mount(<EnhancedInput role="combobox" value={value} />); + const event = { preventDefault: jest.fn() }; + + component.find("div.input").simulate("mousedown", event); + component.find("i").simulate("mousedown", event); + expect(event.preventDefault).toHaveBeenCalledTimes(0); + }); });
test(formInput): cover test of preventing blur of clear icon affects: @crave/farmblocks-hoc-input
CraveFood_farmblocks
train
js
27d37f4911a665aa2a863def9c8f5f9cdb42501d
diff --git a/src/memote/__init__.py b/src/memote/__init__.py index <HASH>..<HASH> 100644 --- a/src/memote/__init__.py +++ b/src/memote/__init__.py @@ -22,8 +22,6 @@ The memote Python package is a community-driven effort towards a standardized genome-scale metabolic model test suite. """ -import sys -import logging from __future__ import absolute_import from memote.utils import show_versions @@ -32,6 +30,9 @@ from memote.suite.results import * from memote.suite.reporting import * from memote.jinja2_extension import * +import sys +import logging + __author__ = "Moritz E. Beber" __email__ = "morbeb@biosustain.dtu.dk" __version__ = "0.9.12"
fix: respect import order from __future__
opencobra_memote
train
py
4a25339b5348776fe676a6075c95e4835943decd
diff --git a/packages/webpack/lib/configs/node.js b/packages/webpack/lib/configs/node.js index <HASH>..<HASH> 100644 --- a/packages/webpack/lib/configs/node.js +++ b/packages/webpack/lib/configs/node.js @@ -133,8 +133,8 @@ module.exports = function getConfig(config, name) { ], performance: { hints: false, - maxEntrypointSize: 5242880, - maxAssetSize: 5242880, + maxEntrypointSize: 52428800, + maxAssetSize: 52428800, }, devtool: 'inline-source-map', watchOptions: { aggregateTimeout: 300, ignored: /node_modules/ }, diff --git a/packages/webpack/lib/plugins/log.js b/packages/webpack/lib/plugins/log.js index <HASH>..<HASH> 100644 --- a/packages/webpack/lib/plugins/log.js +++ b/packages/webpack/lib/plugins/log.js @@ -74,7 +74,7 @@ exports.LoggerPlugin = class LoggerPlugin { const assetsOverSizeLimit = assets.some( ({ isOverSizeLimit }) => isOverSizeLimit ); - if (assetsOverSizeLimit) { + if (assetsOverSizeLimit && !isRebuild) { this.logger.warn('Some assets exceed the recommended size limit!'); this.logger.hint( 'Please consider using import() or the importComponent() function to lazy load some parts of the application.'
fix(webpack): suppress node build size warnings
untool_untool
train
js,js
ba010f4df4772bd1e04d93ce7557021f97eff847
diff --git a/engine/src/main/java/org/camunda/bpm/dmn/engine/delegate/DmnDecisionEvaluationEvent.java b/engine/src/main/java/org/camunda/bpm/dmn/engine/delegate/DmnDecisionEvaluationEvent.java index <HASH>..<HASH> 100644 --- a/engine/src/main/java/org/camunda/bpm/dmn/engine/delegate/DmnDecisionEvaluationEvent.java +++ b/engine/src/main/java/org/camunda/bpm/dmn/engine/delegate/DmnDecisionEvaluationEvent.java @@ -26,7 +26,7 @@ public interface DmnDecisionEvaluationEvent { DmnDecisionTableEvaluationEvent getDecisionResult(); /** - * @return the list of required decisions + * @return the collection of required decision results */ Collection<DmnDecisionTableEvaluationEvent> getRequiredDecisionResults();
chore(dmn-engine): Adjusted java docs for required decision results related to #CAM-<I>
camunda_camunda-engine-dmn
train
java
334abd429472a90f91a116b8c1524f92bc8cbbb6
diff --git a/test/create.js b/test/create.js index <HASH>..<HASH> 100644 --- a/test/create.js +++ b/test/create.js @@ -9,6 +9,8 @@ var sandbox = require('./helpers/sandbox.js'); var spawnCliInSandbox = require('./helpers/runner.js').spawnCliInSandbox; describe('create cli', function() { + this.timeout(5000); + beforeEach(sandbox.reset); it('sets "main" entry in package.json', function (done) {
test: increase timeouts, npm install is slow
strongloop_strongloop
train
js
e393854853493192e0305580c525db30a41a57c1
diff --git a/src/Drivers/Cache/Manager.php b/src/Drivers/Cache/Manager.php index <HASH>..<HASH> 100644 --- a/src/Drivers/Cache/Manager.php +++ b/src/Drivers/Cache/Manager.php @@ -43,7 +43,12 @@ class Manager implements ManagerContract public function forget(GrantableOwner $owner): void { - $this->roles->forget($owner); - $this->permissions->forget($owner); + if ($owner instanceof RolesOwner) { + $this->roles->forget($owner); + } + + if ($owner instanceof PermissionsOwner) { + $this->permissions->forget($owner); + } } }
refactor(Manager): check the type of owner
eneav_laravel-authorization
train
php
5744c5ecd2025d2bda7983f6e225ade1dff0f00c
diff --git a/index.js b/index.js index <HASH>..<HASH> 100644 --- a/index.js +++ b/index.js @@ -185,7 +185,9 @@ async function run(context, plugins) { await plugins.success({...context, releases}); - logger.success(`Published release ${nextRelease.version}`); + logger.success( + `Published release ${nextRelease.version} on ${nextRelease.channel ? nextRelease.channel : 'default'} channel` + ); if (options.dryRun) { logger.log(`Release note for version ${nextRelease.version}:`);
fix: add `channel` to publish success log
semantic-release_semantic-release
train
js
e99d4ae510e4767d557febce24de0968feb4a30c
diff --git a/core/src/ons/internal/swiper.js b/core/src/ons/internal/swiper.js index <HASH>..<HASH> 100644 --- a/core/src/ons/internal/swiper.js +++ b/core/src/ons/internal/swiper.js @@ -279,7 +279,7 @@ export default class SwipeReveal { } const opt = options.animation === 'none' ? {} : options.animationOptions; - this.scrollHook && this.scrollHook((scroll / this.targetSize).toFixed(2), opt); + this.scrollHook && this.scrollHook((scroll / this.targetSize).toFixed(2), options.animationOptions || {}); return new Promise(resolve => animit(this.target).queue({ transform: this._getTransform(scroll) }, opt).play(resolve)); }
fix(swiper): Pass correct options to scrollHook.
OnsenUI_OnsenUI
train
js
07ba14555c505301fe1855367763830c41ac2ef3
diff --git a/clients/java/client/src/main/java/org/camunda/bpm/client/ExternalTaskClientBuilder.java b/clients/java/client/src/main/java/org/camunda/bpm/client/ExternalTaskClientBuilder.java index <HASH>..<HASH> 100644 --- a/clients/java/client/src/main/java/org/camunda/bpm/client/ExternalTaskClientBuilder.java +++ b/clients/java/client/src/main/java/org/camunda/bpm/client/ExternalTaskClientBuilder.java @@ -52,7 +52,7 @@ public interface ExternalTaskClientBuilder { ExternalTaskClientBuilder addInterceptor(ClientRequestInterceptor interceptor); /** - * Specifies the amount of maximum tasks which are supposed to be fetched within one request + * Specifies the maximum amount of tasks that can be fetched within one request. * This information is optional. * * @param maxTasks which are supposed to be fetched within one request
chore(client): update javadoc of maxTasks method Related to CAM-<I>
camunda_camunda-bpm-platform
train
java
e10b5421824b766c08a529b2d656cac5c2e63c1f
diff --git a/src/utils/index.js b/src/utils/index.js index <HASH>..<HASH> 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -9,11 +9,18 @@ export function extractScenes( const children = scenes.key === 'root' ? scenes.props.children : scenes - return children.map((child) => ({ - ...child, - ...child.props, - key: child.key, - })) + if (Array.isArray(children)) { + return children.map((child) => ({ + ...child, + ...child.props, + key: child.key, + })) + } + return [{ + ...children, + ...children.props, + key: children.key, + }] } export function normalizePath(path: string): string {
feat(Router): allow children as single object
winoteam_react-router-navigation
train
js
df5d01b94fef43e6ca8d2fab5219f90811700405
diff --git a/lib/core/utils/uuid.js b/lib/core/utils/uuid.js index <HASH>..<HASH> 100644 --- a/lib/core/utils/uuid.js +++ b/lib/core/utils/uuid.js @@ -24,10 +24,10 @@ if (!_rng && _crypto && _crypto.getRandomValues) { } try { - if (!_rng && require) { - const nodeCrypto = require('crypto'); - _rng = () => nodeCrypto.randomBytes(16); - } + if (!_rng) { + const nodeCrypto = require('crypto'); + _rng = () => nodeCrypto.randomBytes(16); + } } catch (e) { /* do nothing */ }
fix(utils): fix warning thrown by Webpack (#<I>) Fixes a warning thrown by Webpack for using "require" without importing anything. Warning reads "require function is used in a way in which dependencies cannot be statically extracted" Closes issue #<I>
dequelabs_axe-core
train
js
19c54d90dcf7467fb3c9c1f006c7529a9ad10f2d
diff --git a/bin/App.js b/bin/App.js index <HASH>..<HASH> 100644 --- a/bin/App.js +++ b/bin/App.js @@ -221,9 +221,13 @@ class GoogleActionsAIApp { resolve('UPDATE_SUCCESS'); }) .catch((err) => { - // TODO: If errorType is `errorType: 'too_many_requests'` - // add a better description debugApi(chalk.bold.magenta('Error updating api.ai:'), err, 'red'); + + /* istanbul ignore next */ + if (err.status && err.status.errorType === 'too_many_requests') { + debugApi('It appears you are trying to perform too many API.ai data insertion requests. Consider updating your intents/entities in chunks or wait a moment to try again.', 'red'); + } + this.ready = true; resolve('UPDATE_FAIL'); });
docs(api): Adjust message that displays when too many requests
ImAdamTM_actions-ai-app
train
js
6f7db69fb4bba54dac6a8dd48ac22acfc25a06c6
diff --git a/src/marshmallow/fields.py b/src/marshmallow/fields.py index <HASH>..<HASH> 100644 --- a/src/marshmallow/fields.py +++ b/src/marshmallow/fields.py @@ -1801,7 +1801,7 @@ class IPv6(IP): class IPInterface(Field): """A IPInterface field. - IP interface is the non-stict form of the IPNetwork type where arbitrary host + IP interface is the non-strict form of the IPNetwork type where arbitrary host addresses are always accepted. IPAddress and mask e.g. '192.168.0.2/24' or '192.168.0.2/255.255.255.0'
docs: fix simple typo, stict -> strict There is a small typo in src/marshmallow/fields.py. Should read `strict` rather than `stict`.
marshmallow-code_marshmallow
train
py