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
f296e40d6fc4399c3b898799b4e008d4d04aceba
diff --git a/packages/netlify-cms-locales/src/nb_no/index.js b/packages/netlify-cms-locales/src/nb_no/index.js index <HASH>..<HASH> 100644 --- a/packages/netlify-cms-locales/src/nb_no/index.js +++ b/packages/netlify-cms-locales/src/nb_no/index.js @@ -107,7 +107,7 @@ const nb_no = { deleteUnpublishedChanges: 'Slett upubliserte endringer', deleteUnpublishedEntry: 'Slett upublisert innlegg', deletePublishedEntry: 'Slett publisert innlegg', - deleteEntry: 'Sletter innlegg', + deleteEntry: 'Slett innlegg', saving: 'Lagrer...', save: 'Lagre', deleting: 'Sletter...',
fix(locales-nb_no): fix spelling in deleteEntry (#<I>) The translation of `editorToolbar.deleteEntry` was using the wrong inflection, making it sound like it was already deleting the entry. This PR changes the translation from "deleting" to "delete".
netlify_netlify-cms
train
js
5845f98d7988021b9cbfa9fcada02a85550b3c0c
diff --git a/webpack.config.js b/webpack.config.js index <HASH>..<HASH> 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -22,9 +22,6 @@ function configure(filename, opts = {}) { fallback: { buffer: require.resolve('buffer/'), }, - alias: { - 'js-yaml': false, - }, }, plugins: [ ...opts.target === 'node'
chore: disable outdated removal of swagger-client's dependency
aeternity_aepp-sdk-js
train
js
0be50612f9f79841438f1c151d787708c5521039
diff --git a/logspout/logspout.go b/logspout/logspout.go index <HASH>..<HASH> 100644 --- a/logspout/logspout.go +++ b/logspout/logspout.go @@ -240,6 +240,7 @@ func main() { for { // NOTE(bacongobbler): sleep for a bit before doing the discovery loop again time.Sleep(10 * time.Second) + router.Remove("etcd") router.Add(getEtcdRoute(etcd)) } }()
fix(logspout): remove old route
deis_deis
train
go
fa32f34db9b662839bcccf99766aef790ca0dfbb
diff --git a/docs/referenceConf.js b/docs/referenceConf.js index <HASH>..<HASH> 100644 --- a/docs/referenceConf.js +++ b/docs/referenceConf.js @@ -181,7 +181,7 @@ exports.config = { // --------------------------------------------------------------------------- // // A base URL for your application under test. Calls to protractor.get() - // with relative paths will be prepended with this. + // with relative paths will be resolved against this URL (via url.resolve) baseUrl: 'http://localhost:9876', // CSS Selector for the element housing the angular app - this defaults to
chore(docs): correct docs for config.baseUrl
angular_protractor
train
js
e4e0dfb6c66fd2c0dbbba240b1cfe8c12dcb93c2
diff --git a/test/e2e/functional_test.go b/test/e2e/functional_test.go index <HASH>..<HASH> 100644 --- a/test/e2e/functional_test.go +++ b/test/e2e/functional_test.go @@ -91,8 +91,6 @@ spec: } func (s *FunctionalSuite) TestContinueOnFailDag() { - // https://github.com/argoproj/argo/issues/2624 - s.T().SkipNow() s.Given(). Workflow(` apiVersion: argoproj.io/v1alpha1 @@ -149,7 +147,7 @@ spec: WaitForWorkflow(30 * time.Second). Then(). ExpectWorkflow(func(t *testing.T, _ *metav1.ObjectMeta, status *wfv1.WorkflowStatus) { - assert.Equal(t, wfv1.NodeFailed, status.Phase) + assert.Equal(t, wfv1.NodeSucceeded, status.Phase) assert.Len(t, status.Nodes, 6) bStatus := status.Nodes.FindByDisplayName("B")
test: fix TestContinueOnFailDag (#<I>)
argoproj_argo
train
go
2f10304269479bbe9ebcc4eb54251cfea8de4ca1
diff --git a/test/select.spec.js b/test/select.spec.js index <HASH>..<HASH> 100644 --- a/test/select.spec.js +++ b/test/select.spec.js @@ -740,6 +740,28 @@ describe('ui-select tests', function () { el2.remove(); }); + it('should close an opened select clicking outside with stopPropagation()', function () { + var el1 = createUiSelect(); + var el2 = $('<div></div>'); + el1.appendTo(document.body); + el2.appendTo(document.body); + + el2.on('click', function (e) { + e.stopPropagation() + }); + + expect(isDropdownOpened(el1)).toEqual(false); + clickMatch(el1); + expect(isDropdownOpened(el1)).toEqual(true); + + // Using a native dom click() to make sure the test fails when it should. + el2[0].click(); + + expect(isDropdownOpened(el1)).toEqual(false); + el1.remove(); + el2.remove(); + }); + it('should bind model correctly (with object as source)', function () { var el = compileTemplate( '<ui-select ng-model="selection.selected"> \
test: testing if dropdown closes even when propagation of event stops
angular-ui_ui-select
train
js
e56bd7063273c5d082861efe00e5c9ea7a3e2a6a
diff --git a/jest.config.js b/jest.config.js index <HASH>..<HASH> 100644 --- a/jest.config.js +++ b/jest.config.js @@ -10,6 +10,7 @@ module.exports = { collectCoverage: true, coverageDirectory: '.nyc_output', coverageReporters: ['json'], + coveragePathIgnorePatterns: ['<rootDir>/test/'], transform: { '^.+\\.(ts)?$': 'ts-jest', },
test: remove test folder from code coverage result (#<I>)
webpack_webpack-cli
train
js
8a8e61f9eaed5e99403e1f87fce8d89ec62b0296
diff --git a/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/internal/MessagesModule.java b/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/internal/MessagesModule.java index <HASH>..<HASH> 100644 --- a/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/internal/MessagesModule.java +++ b/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/internal/MessagesModule.java @@ -382,11 +382,11 @@ public class MessagesModule extends AbsModule implements BusSubscriber { } public void saveDraft(Peer peer, String draft) { - preferences().putString("draft_" + peer.getUnuqueId(), draft); + context().getSettingsModule().setStringValue("drafts_" + peer.getUnuqueId(), draft); } public String loadDraft(Peer peer) { - String res = preferences().getString("draft_" + peer.getUnuqueId()); + String res = context().getSettingsModule().getStringValue("drafts_" + peer.getUnuqueId(), null); if (res == null) { return ""; } else {
feat(core): Enabling draft syncing
actorapp_actor-platform
train
java
a58d8a719d378456493e5583066e77656c4a3b29
diff --git a/src/Illuminate/Foundation/Console/Kernel.php b/src/Illuminate/Foundation/Console/Kernel.php index <HASH>..<HASH> 100644 --- a/src/Illuminate/Foundation/Console/Kernel.php +++ b/src/Illuminate/Foundation/Console/Kernel.php @@ -38,7 +38,7 @@ class Kernel implements KernelContract /** * The Artisan application instance. * - * @var \Illuminate\Console\Application + * @var \Illuminate\Console\Application|null */ protected $artisan;
chore: update artisan docblock to be nullable (#<I>) Since the `artisan` property doesn't have a default and isn't set in the constructor, technically it is nullable. That is why we use the `getArtisan` getter instead.
laravel_framework
train
php
f85a1862d0b9947d44c525d3b5d583c754b33e1c
diff --git a/controller/templates/gconf.py b/controller/templates/gconf.py index <HASH>..<HASH> 100644 --- a/controller/templates/gconf.py +++ b/controller/templates/gconf.py @@ -1,6 +1,8 @@ bind = '0.0.0.0' try: workers = int({{ if exists "/deis/controller/workers" }}{{ getv "/deis/controller/workers" }}{{ else }}"not set"{{end}}) + if workers < 1: + raise ValueError() except (NameError, ValueError): import multiprocessing try:
fix(controller): prevent < 1 gunicorn workers
deis_deis
train
py
4ab844c5076d3ea7b7881198b4412090fe70c4b4
diff --git a/tests/test_html.py b/tests/test_html.py index <HASH>..<HASH> 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -4,6 +4,8 @@ """Tests of HTML reporting for django_coverage_plugin.""" +import glob + from .plugin_test import DjangoPluginTestCase @@ -16,6 +18,7 @@ class HtmlTest(DjangoPluginTestCase): self.run_django_coverage() self.cov.html_report() - with open("htmlcov/templates_test_simple_html.html") as fhtml: + html_file = glob.glob("htmlcov/*_test_simple_html.html")[0] + with open(html_file) as fhtml: html = fhtml.read() self.assertIn('<span class="txt">Simple &#169; 2015</span>', html)
test: be flexible about how HTML files are named Coverage.py <I> changed the way the HTML files are named. Now it could be either: - old: htmlcov/templates_test_simple_html.html - new: htmlcov/d_9ed9d<I>a<I>a1_test_simple_html.html
nedbat_django_coverage_plugin
train
py
62ada2a2d09c9e1ed059013a21eb22dd2847b849
diff --git a/lib/core/sdam/server.js b/lib/core/sdam/server.js index <HASH>..<HASH> 100644 --- a/lib/core/sdam/server.js +++ b/lib/core/sdam/server.js @@ -166,6 +166,7 @@ class Server extends EventEmitter { relayEvents(this.s.pool, this, ['commandStarted', 'commandSucceeded', 'commandFailed']); stateTransition(this, STATE_CONNECTING); + this.s.pool.connect(connectEventHandler(this)); } @@ -465,10 +466,14 @@ function executeWriteOperation(args, options, callback) { function connectEventHandler(server) { return function(err, conn) { + if (server.s.state === STATE_CLOSING || server.s.state === STATE_CLOSED) { + return; + } + if (err) { server.emit('error', new MongoNetworkError(err)); - stateTransition(this, STATE_CLOSED); + stateTransition(server, STATE_CLOSED); server.emit('close'); return; }
fix(server): don't emit error in connect if closing/closed
mongodb_node-mongodb-native
train
js
4539fec87f9910e4fd7a7804843830a7b55e3818
diff --git a/Resources/public/js/select2.js b/Resources/public/js/select2.js index <HASH>..<HASH> 100644 --- a/Resources/public/js/select2.js +++ b/Resources/public/js/select2.js @@ -16,7 +16,7 @@ var whatwedo_select2 = { ph = ph !== '' ? ph : whatwedo_select2.empty; elem.select2({ language: 'de', - width: 'resolve', + width: '100%', placeholder: ph, allowClear: true }); @@ -28,7 +28,7 @@ var whatwedo_select2 = { var url = elem.closest('form').data('ajax-url'); elem.select2({ language: 'de', - width: 'resolve', + width: '100%', allowClear: false, ajax: { url: url,
fix(select2): switch resolve to <I>%
whatwedo_TableBundle
train
js
c138b04c5e07660a2cc38f284c9cc8160e384dd1
diff --git a/pkg/services/alerting/extractor.go b/pkg/services/alerting/extractor.go index <HASH>..<HASH> 100644 --- a/pkg/services/alerting/extractor.go +++ b/pkg/services/alerting/extractor.go @@ -3,6 +3,8 @@ package alerting import ( "errors" + "fmt" + "github.com/grafana/grafana/pkg/bus" "github.com/grafana/grafana/pkg/components/simplejson" "github.com/grafana/grafana/pkg/log" @@ -104,8 +106,8 @@ func (e *DashAlertExtractor) GetAlerts() ([]*m.Alert, error) { panelQuery := findPanelQueryByRefId(panel, queryRefId) if panelQuery == nil { - e.log.Error("Query not found", "panel", alert.PanelId, "queryRefId", queryRefId) - return nil, ValidationError{Reason: "Alert refers to query that cannot be found"} + reason := fmt.Sprintf("Alert on PanelId: %v refers to query(%s) that cannot be found", alert.PanelId, queryRefId) + return nil, ValidationError{Reason: reason} } dsName := ""
feat(alerting): avoid double logging
grafana_grafana
train
go
d8c624405148a7d8cdb370be3acf6c8beb80a926
diff --git a/spec/features/components/expander_spec.rb b/spec/features/components/expander_spec.rb index <HASH>..<HASH> 100644 --- a/spec/features/components/expander_spec.rb +++ b/spec/features/components/expander_spec.rb @@ -1,7 +1,7 @@ require_relative '../spec_helper' feature 'React Expander', js: true do - pending 'using the component' do + scenario 'using the component' do visit '/react_components_expander.html' within_example_containing('Toggle Content') do diff --git a/spec/features/components/modal_spec.rb b/spec/features/components/modal_spec.rb index <HASH>..<HASH> 100644 --- a/spec/features/components/modal_spec.rb +++ b/spec/features/components/modal_spec.rb @@ -1,7 +1,7 @@ require_relative '../spec_helper' feature 'React Modal', js: true do - pending 'using the component' do + scenario 'using the component' do visit '/react_components_modals.html' expect(page).not_to have_css('.modal') expect(page).not_to have_css('.modal-backdrop')
chore(ci): reenable no longer failing tests
pivotal-cf_pivotal-ui
train
rb,rb
12e770685cca7db3eff0bd3b1f230a36ebc5a66d
diff --git a/test/module.test.js b/test/module.test.js index <HASH>..<HASH> 100644 --- a/test/module.test.js +++ b/test/module.test.js @@ -1,4 +1,3 @@ - jest.setTimeout(60000) const { Nuxt, Builder } = require('nuxt-edge')
test: remove space (#<I>)
nuxt-community_redirect-module
train
js
65ba4590e78dceb058494e0426c37e39a88b331f
diff --git a/venom/common/converters.py b/venom/common/converters.py index <HASH>..<HASH> 100644 --- a/venom/common/converters.py +++ b/venom/common/converters.py @@ -11,7 +11,7 @@ V = TypeVar('V') T = TypeVar('T') -class _ValueConverter(Generic[V, T], Converter): +class _ValueConverter(Converter[V, T]): def convert(self, message: V) -> T: return message.value
chore: change _ValueConverter Generic[V, T] to Converter[V, T]
biosustain_venom
train
py
153c64be7cc55d3d4596d51e0d385f1647e287cc
diff --git a/src/parser/functionsParser.js b/src/parser/functionsParser.js index <HASH>..<HASH> 100644 --- a/src/parser/functionsParser.js +++ b/src/parser/functionsParser.js @@ -51,12 +51,13 @@ const year = (query, fnKey, odataOperator, value) => { case 'eq': query.where(key).gte(start).lt(end); break; - case 'ne': + case 'ne': { const condition = [{}, {}]; condition[0][key] = { $lt: start }; condition[1][key] = { $gte: end }; query.or(condition); break; + } case 'gt': query.where(key).gte(end); break;
refactor(core): make eslint happy.
TossShinHwa_node-odata
train
js
4848727f34d3b9e0ce3aa005ccb476053a77d28b
diff --git a/test/func/delete.spec.js b/test/func/delete.spec.js index <HASH>..<HASH> 100644 --- a/test/func/delete.spec.js +++ b/test/func/delete.spec.js @@ -8,7 +8,7 @@ const tmpDir = './test/_tmp' describe('Functional: delete()', function () { it('should return an error on 7z error', function (done) { - const archive = '/i/hope/this/is/not/where/yout/7zip/bin/is' + const archive = '/i/hope/this/is/not/where/your/archive/is' const source = `${mockDir}/dev/null` const seven = del(archive, source) seven.on('error', function (err) {
test: Fix typo for more descriptive test
quentinrossetti_node-7z
train
js
fb0669cf41e3d2f2c40f2963cd791697ef9772f8
diff --git a/lib/Repository.js b/lib/Repository.js index <HASH>..<HASH> 100644 --- a/lib/Repository.js +++ b/lib/Repository.js @@ -762,7 +762,7 @@ class Repository extends Requestable { /** * Get information about a release * @see https://developer.github.com/v3/repos/releases/#get-a-single-release - * @param {strign} id - the id of the release + * @param {string} id - the id of the release * @param {Requestable.callback} cb - will receive the release information * @return {Promise} - the promise for the http request */
chore: updated callbacks to be Requestable.callback closes #<I>
github-tools_github
train
js
7cd4ae89a30cb6f88e13197929cb7dac342a2dd3
diff --git a/src/Components/Http/Installer.php b/src/Components/Http/Installer.php index <HASH>..<HASH> 100644 --- a/src/Components/Http/Installer.php +++ b/src/Components/Http/Installer.php @@ -35,7 +35,7 @@ final class Installer extends AbstractInstaller */ public function install(): void { - $this->require('guzzlehttp/guzzle "^6.5.5"'); + $this->require('guzzlehttp/guzzle "^7.4"'); $this->require('illuminate/http "^8.0"'); } } diff --git a/tests/Components/HttpComponentTest.php b/tests/Components/HttpComponentTest.php index <HASH>..<HASH> 100644 --- a/tests/Components/HttpComponentTest.php +++ b/tests/Components/HttpComponentTest.php @@ -12,7 +12,7 @@ it('installs the required packages', function () { $composerMock->expects($this->exactly(2)) ->method('require') ->withConsecutive( - [$this->equalTo('guzzlehttp/guzzle "^6.5.5"')], + [$this->equalTo('guzzlehttp/guzzle "^7.4"')], [$this->equalTo('illuminate/http "^8.0"')] );
chore: require more recent Guzzle version (#<I>)
laravel-zero_framework
train
php,php
b435e1de9269bc4f4c434127715d891a372ba4b5
diff --git a/src/image/__tests__/save.js b/src/image/__tests__/save.js index <HASH>..<HASH> 100644 --- a/src/image/__tests__/save.js +++ b/src/image/__tests__/save.js @@ -1,4 +1,5 @@ import {Image, load, getHash, refreshTmpDir, tmpDir, getSquare} from 'test/common'; +import canvas from 'canvas'; describe('save to disk', function () { @@ -17,7 +18,9 @@ describe('save to disk', function () { }); }); - it('load then save (jpg)', function () { + // JPEG support is not always present + const _it = canvas.jpegVersion ? it : it.skip; + _it('load then save (jpg)', function () { return load('format/rgba32.png').then(function (img) { return img.save(tmpDir + '/img1.jpg', {format: 'jpeg'}); });
test: don't test jpeg save if canvas is not compiled with jpeg support
image-js_image-js
train
js
c4c60d19526e8ff90cf48109f15a0917cdd38046
diff --git a/commitlint.config.js b/commitlint.config.js index <HASH>..<HASH> 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -10,6 +10,7 @@ module.exports = { 'always', [ '', + 'API', 'AWS ALB', 'AWS Alexa', 'AWS API Gateway',
chore: Configure `API` commit scope
serverless_serverless
train
js
68a909ae8f17177ef5a64e0042f9252de056b815
diff --git a/test/test_ping.rb b/test/test_ping.rb index <HASH>..<HASH> 100644 --- a/test/test_ping.rb +++ b/test/test_ping.rb @@ -71,10 +71,12 @@ module CronForGithub @ping.decide_cron_ref('any', :ping).start_with?('heads/any/') end end - test 'call reserved ref' do + test 'call reserved ref not raise' do assert_nothing_raised do @ping.decide_cron_ref('tags', :ping) end + end + test 'call reserved ref use itself' do assert do @ping.decide_cron_ref('tags', :ping).start_with?('heads/tags/') end
chore(ping): fix test case
packsaddle_ruby-cron_for_github
train
rb
c9e3cb94ceb82a4d828c3b95667103f401eb7cf3
diff --git a/components/app/index.js b/components/app/index.js index <HASH>..<HASH> 100644 --- a/components/app/index.js +++ b/components/app/index.js @@ -41,7 +41,9 @@ export default class App extends Intact { page.$app = this; // for debug - globalThis.__page = page; + if (typeof window !== undefined) { + window.__page = page; + } const done = () => { if (this._current === Page) {
fix: detect window instead of using globalThis
ksc-fe_kpc
train
js
01a42138b7d2ea6583753557cdffca07993f44e9
diff --git a/wdio.conf.js b/wdio.conf.js index <HASH>..<HASH> 100644 --- a/wdio.conf.js +++ b/wdio.conf.js @@ -74,7 +74,7 @@ exports.config = { // Define all options that are relevant for the WebdriverIO instance here sync: true, // Level of logging verbosity: trace | debug | info | warn | error | silent - // logLevel: 'silent', + logLevel: 'silent', // // Set specific log levels per logger // loggers: @@ -85,10 +85,10 @@ exports.config = { // - wdio-sumologic-reporter // - wdio-cli, wdio-config, wdio-sync, wdio-utils // Level of logging verbosity: trace | debug | info | warn | error | silent - logLevels: { - webdriver: 'error', - 'wdio-local-runner': 'error', - }, + //logLevels: { + // webdriver: 'error', + // 'wdio-local-runner': 'error', + //}, // // Enables colors for log output. coloredLogs: true,
chore: set webdriver logLevel to silent
90milesbridge_react-rainbow
train
js
50fe0b16a3d79a481029bbe72e6235e9e5b6f3c4
diff --git a/lib/rules/rules.js b/lib/rules/rules.js index <HASH>..<HASH> 100644 --- a/lib/rules/rules.js +++ b/lib/rules/rules.js @@ -109,6 +109,7 @@ function isRegUrl(url, isCheck) { if (hasEndSymbol) { url = url.slice(0, -1); } + ignoreCase = ignoreCase === 1; } if (!hasStartSymbol || !REG_URL_RE.test(url)) { return false;
refactor: regUrl pattern
avwo_whistle
train
js
59a277dc67d78177722999b94d4ce17b8188d1ec
diff --git a/actor-apps/app-web/src/app/components/dialog/messages/Text.react.js b/actor-apps/app-web/src/app/components/dialog/messages/Text.react.js index <HASH>..<HASH> 100644 --- a/actor-apps/app-web/src/app/components/dialog/messages/Text.react.js +++ b/actor-apps/app-web/src/app/components/dialog/messages/Text.react.js @@ -23,7 +23,6 @@ const emojiRegexp = new RegExp('(' + emojiVariants.join('|') + ')', 'gi'); const processText = function (text) { const markedText = ActorClient.renderMarkdown(text); - console.warn('[MARKED]', markedText); // need hack with replace because of https://github.com/Ranks/emojify.js/issues/127 const noPTag = markedText.replace(/<p>/g, '<p> ');
fix(web): removed noisy debug
actorapp_actor-platform
train
js
6dd38317a83177e9fb761939cd487e297d257647
diff --git a/squad/ci/admin.py b/squad/ci/admin.py index <HASH>..<HASH> 100644 --- a/squad/ci/admin.py +++ b/squad/ci/admin.py @@ -56,7 +56,7 @@ class TestJobFailureFilter(admin.SimpleListFilter): class TestJobAdmin(admin.ModelAdmin): list_display = ('backend', 'target', 'submitted', 'fetched', 'success', 'last_fetch_attempt', 'job_id_link',) list_filter = ('backend', 'target', 'submitted', 'fetched', TestJobFailureFilter) - readonly_fields = ('testrun', 'target_build',) + readonly_fields = ('testrun', 'target_build', 'parent_job') actions = [submit_job, fetch_job] def job_id_link(self, test_job):
ci: make parent_job read-only in admin This allows to view/edit TestJob objects in admin. There are too many TestJob objects to allow for r-w on this field
Linaro_squad
train
py
1aee8eadc3ae3b5ccaddb4b46642d58f5fb59df2
diff --git a/algolia/search/responses_search.go b/algolia/search/responses_search.go index <HASH>..<HASH> 100644 --- a/algolia/search/responses_search.go +++ b/algolia/search/responses_search.go @@ -34,7 +34,7 @@ type QueryRes struct { ServerUsed string `json:"serverUsed"` TimeoutCounts bool `json:"timeoutCounts"` TimeoutHits bool `json:"timeoutHits"` - UserData map[string]interface{} `json:"userData"` + UserData []interface{} `json:"userData"` ABTestVariantID int `json:"abTestVariantID"` }
fix(response): userData is an array not a map
algolia_algoliasearch-client-go
train
go
fe9230f849f4670dd017b8375046937b1d295d81
diff --git a/lib/config/definitions.js b/lib/config/definitions.js index <HASH>..<HASH> 100644 --- a/lib/config/definitions.js +++ b/lib/config/definitions.js @@ -818,6 +818,7 @@ const options = [ schedule: [], masterIssueApproval: false, rangeStrategy: 'update-lockfile', + branchTopic: '{{{manager}}}-{{{depName}}}-vulnerability', commitMessageSuffix: '[SECURITY]', }, cli: false,
fix(github): special branch name for vulnerability alerts
renovatebot_renovate
train
js
4d376084f4d340b4af7c5a5fe7f2f015d8554f2f
diff --git a/tests/integration/test_store.py b/tests/integration/test_store.py index <HASH>..<HASH> 100644 --- a/tests/integration/test_store.py +++ b/tests/integration/test_store.py @@ -141,7 +141,7 @@ def test_static_config(mini_sentry, relay): relay_options = {"relay": {"mode": "static"}} relay = relay(mini_sentry, options=relay_options, prepare=configure_static_project) mini_sentry.project_configs[42] = project_config - sleep(1) # There is no upstream auth, so just wait for relay to initialize + relay.wait_relay_healthcheck() relay.send_event(42) event = mini_sentry.captured_events.get(timeout=1).get_event()
fix: Add missing test (#<I>)
getsentry_semaphore
train
py
c7588d693b05edd90778b3c34e6fa5f7905d40c9
diff --git a/lib/features/Linting.js b/lib/features/Linting.js index <HASH>..<HASH> 100644 --- a/lib/features/Linting.js +++ b/lib/features/Linting.js @@ -23,6 +23,14 @@ var OFFSET_TOP = -5, var LOW_PRIORITY = 500; +var noopResolver = { + resolveRule: function() { + return null; + } +}; + +var emptyConfig = { }; + export default function Linting( config, bpmnjs, canvas, @@ -35,9 +43,15 @@ export default function Linting( } if (!this._config || !this._resolver) { - throw new Error( - 'must provide bpmnlint={ config, resolver } via <linting> configuration' + + console.warn( + '[bpmn-js-bpmnlint] You did not configure any lint rules to use. ' + + 'Ensure you bundle and include your rules via the `linting.bpmnlint` option. ' + + 'See https://github.com/bpmn-io/bpmn-js-bpmnlint#configure-lint-rules' ); + + this._config = emptyConfig; + this._resolver = noopResolver; } this._bpmnjs = bpmnjs;
chore(Linting): log warning on missing bpmnlint configuration
bpmn-io_bpmn-js-bpmnlint
train
js
3b4eb0e6e6e2ce6de43ceb2ace37539c24704d95
diff --git a/src/Cli.php b/src/Cli.php index <HASH>..<HASH> 100644 --- a/src/Cli.php +++ b/src/Cli.php @@ -16,6 +16,7 @@ class Cli // @codeCoverageIgnoreStart if (!class_exists($class)) { fwrite(STDERR, "[Warning] commands config: Class {$class} not found for {$name}" . PHP_EOL); + continue; } // @codeCoverageIgnoreEnd $app->add(new $class($name, $di));
fix(cli): tolerate bad class definition in commands config [ci skip]
phwoolcon_phwoolcon
train
php
c56a4621c1e2cbff39a17312ec7d97c305301153
diff --git a/packages/workflow/scripts/start.js b/packages/workflow/scripts/start.js index <HASH>..<HASH> 100644 --- a/packages/workflow/scripts/start.js +++ b/packages/workflow/scripts/start.js @@ -151,9 +151,15 @@ function web() { const defaults = { client: { - logging: settings.infrastructureLogLevel() + logging: settings.infrastructureLogLevel(), + overlay: { + errors: false, + warnings: false + } }, + port: settings.port(), + historyApiFallback: settings.historyFallback(), // Enable gzip compression of generated files. @@ -161,8 +167,6 @@ function web() { hot: settings.enableHotLoader(), - // TODO: port and/or host defaults - static: { directory: settings.output(),
refactor(workflow): disables dev server overlay on startup, defaults port
Availity_availity-workflow
train
js
bad8ddae3d37921e640bcafaf9fa09609ca73e8f
diff --git a/packages/webiny-api-security/src/plugins/authentication/authenticate.js b/packages/webiny-api-security/src/plugins/authentication/authenticate.js index <HASH>..<HASH> 100644 --- a/packages/webiny-api-security/src/plugins/authentication/authenticate.js +++ b/packages/webiny-api-security/src/plugins/authentication/authenticate.js @@ -3,7 +3,9 @@ import { JwtToken } from "./jwtToken"; export default async (context: Object) => { const { config, event } = context; - let token = (event.headers.Authorization || "").replace(/[b|B]earer\s/, ""); + const { headers } = event; + const authorization = headers["Authorization"] || headers["authorization"] || ""; + let token = authorization.replace(/[b|B]earer\s/, ""); let user = null; if (token !== "" && event.httpMethod === "POST") { const jwt = new JwtToken({ secret: config.security.token.secret });
fix: handle both sentence and lower case for authorization header.
Webiny_webiny-js
train
js
3a5c3dd908844b59a6bab3834d12bafe720008cc
diff --git a/lib/config/definitions.js b/lib/config/definitions.js index <HASH>..<HASH> 100644 --- a/lib/config/definitions.js +++ b/lib/config/definitions.js @@ -305,6 +305,7 @@ const options = [ description: 'Dependencies to ignore', type: 'list', stage: 'depType', + mergeable: true, }, { name: 'packageRules',
fix: make ignoreDeps mergeable
renovatebot_renovate
train
js
11e81e2543796d5440e3d6c6444bfa5a4ffdaa11
diff --git a/src/Authenticator/AuthenticatorCollection.php b/src/Authenticator/AuthenticatorCollection.php index <HASH>..<HASH> 100644 --- a/src/Authenticator/AuthenticatorCollection.php +++ b/src/Authenticator/AuthenticatorCollection.php @@ -70,7 +70,11 @@ class AuthenticatorCollection extends AbstractCollection */ protected function _resolveClassName($class) { - return (string)App::className($class, 'Authenticator', 'Authenticator') ?: null; + $className = App::className($class, 'Authenticator', 'Authenticator') ?: null; + if (is_bool($class)) { + $className = null; + } + return $className; } /**
fix: Check if classname is bool before returning it
cakephp_authentication
train
php
f3b6b426dc6a84bfa3cd20ba81e0dc4599873b79
diff --git a/index.js b/index.js index <HASH>..<HASH> 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,9 @@ var retry = require('async').retry; var resize = require('im-resize'); var metadata = require('im-metadata'); -var Upload = module.exports = function(bucketName, opts) { +var Upload, Image; + +Upload = module.exports = function(bucketName, opts) { this.opts = opts || {}; if (!bucketName) { @@ -82,7 +84,7 @@ Upload.prototype.upload = function(src, opts, cb) { image.start(cb); }; -var Image = module.exports.Image = function(src, opts, upload) { +Image = module.exports.Image = function(src, opts, upload) { this.src = src; this.opts = opts; this.upload = upload;
fix(jshint): used before it was defined error
Turistforeningen_node-s3-uploader
train
js
dc11cbc54ef2e7acf336ba613cf3cee4fe22c934
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,3 @@ -// eslint-disable-next-line import/no-unresolved import fs from "fs"; import core from "./core.js";
chore: removes superfluous eslint comment
sverweij_upem
train
js
10d3da5766a1bf063ccc73f6a33e0b29658d74bc
diff --git a/packages/cli/commands/wcp/hooks.js b/packages/cli/commands/wcp/hooks.js index <HASH>..<HASH> 100644 --- a/packages/cli/commands/wcp/hooks.js +++ b/packages/cli/commands/wcp/hooks.js @@ -8,12 +8,12 @@ module.exports = () => [ type: "hook-before-deploy", name: "hook-before-deploy-environment-get-environment", async hook(args, context) { - if (process.env.WCP_PROJECT_ENVIRONMENT) { + // If the project isn't activated, do nothing. + if (!context.project.config.id) { return; } - // If the project isn't activated, do nothing. - if (!context.project.config.id) { + if (process.env.WCP_PROJECT_ENVIRONMENT) { return; }
fix: project must be activated in order for WCP interaction to happen
Webiny_webiny-js
train
js
7508cc8a7448f63c4d2a005bb928408a31460a6c
diff --git a/niworkflows/func/util.py b/niworkflows/func/util.py index <HASH>..<HASH> 100644 --- a/niworkflows/func/util.py +++ b/niworkflows/func/util.py @@ -252,7 +252,7 @@ def init_enhance_and_skullstrip_bold_wf( # Run N4 normally, force num_threads=1 for stability (images are small, no need for >1) n4_correct = pe.Node(ants.N4BiasFieldCorrection( - dimension=3, copy_header=True, bspline_fitting_distance=200), + dimension=3, copy_header=True, bspline_fitting_distance=200), shrink_factor=2, name='n4_correct', n_procs=1) # Create a generous BET mask out of the bias-corrected EPI
fix: set ``shrink_factor=2`` when running N4 on BOLD images
poldracklab_niworkflows
train
py
a492f290d39ab40adb24a5f494b402dd08a7f10a
diff --git a/dev-utils/integration-test.js b/dev-utils/integration-test.js index <HASH>..<HASH> 100644 --- a/dev-utils/integration-test.js +++ b/dev-utils/integration-test.js @@ -28,7 +28,7 @@ const puppeteer = require('puppeteer') async function runIntegrationTest(pageUrl) { const browser = await puppeteer.launch({ headless: true, - ignoreHTTPSErrors: process.env.ELASTIC_APM_VERIFY_SERVER_CERT == 'true', + ignoreHTTPSErrors: process.env.ELASTIC_APM_VERIFY_SERVER_CERT == 'false', args: ['--no-sandbox', '--disable-setuid-sandbox'] }) const result = {}
fix: ignoreHTTPSErrors check condition is inverted (#<I>)
elastic_apm-agent-rum-js
train
js
abcb17bf1d1d822f77f9843ff00b587ca8b9c84e
diff --git a/lib/read.js b/lib/read.js index <HASH>..<HASH> 100644 --- a/lib/read.js +++ b/lib/read.js @@ -683,14 +683,8 @@ Reader.prototype.fromXML = function(xml, options, done) { error: err }); - console.warn('could not parse node'); - console.warn(err); - return true; } else { - console.error('could not parse document'); - console.error(err); - throw error(message); } } @@ -879,4 +873,4 @@ Reader.prototype.fromXML = function(xml, options, done) { Reader.prototype.handler = function(name) { return new RootElementHandler(this.model, name); -}; \ No newline at end of file +};
chore(reader): don't console.log Closes #<I>
bpmn-io_moddle-xml
train
js
05e69e6663e71a22e60e94b7e545565e7bb513d1
diff --git a/src/lib/addons/addon.js b/src/lib/addons/addon.js index <HASH>..<HASH> 100644 --- a/src/lib/addons/addon.js +++ b/src/lib/addons/addon.js @@ -28,16 +28,36 @@ class Addon { async fetchRetry(url, options = {}, retries = 1, backoff = 300) { const retryCodes = [408, 500, 502, 503, 504, 522, 524]; - const res = await fetch(url, options); - if (res.ok) { + try { + const res = await fetch(url, options); + if (res.ok) { + return res; + } + if (retries > 0 && retryCodes.includes(res.status)) { + setTimeout(() => { + return this.fetchRetry( + url, + options, + retries - 1, + backoff * 2, + ); + }, backoff); + } return res; + } catch (error) { + this.logger.warn(error); + if (retries > 0) { + setTimeout(() => { + return this.fetchRetry( + url, + options, + retries - 1, + backoff * 2, + ); + }, backoff); + } + return { status: 500 }; } - if (retries > 0 && retryCodes.includes(res.status)) { - setTimeout(() => { - return this.fetchRetry(url, options, retries - 1, backoff * 2); - }, backoff); - } - return res; } }
fix: not crash if addon http post throws (#<I>) added try/catch logic around fetchRetry function so that we do not crash if addon fetch call throws
Unleash_unleash
train
js
fc600e58697481e794e4f43e356d7cc1ecbf456f
diff --git a/src/index.js b/src/index.js index <HASH>..<HASH> 100644 --- a/src/index.js +++ b/src/index.js @@ -116,7 +116,7 @@ let encodeKey = k => encode(k).replace('%24', '$'); * @param traditional Boolean Use the old URI template standard (RFC6570) * @return Array with serialized parameter(s) */ -function buildParam(key: string, value: any, traditional: boolean): Array<string> { +function buildParam(key: string, value: any, traditional?: boolean): Array<string> { let result = []; if (value === null || value === undefined) { return result; @@ -147,7 +147,7 @@ function buildParam(key: string, value: any, traditional: boolean): Array<string * @param traditional Boolean Use the old URI template standard (RFC6570) * @returns The generated query string, excluding leading '?'. */ -export function buildQueryString(params: Object, traditional: Boolean): string { +export function buildQueryString(params: Object, traditional?: Boolean): string { let pairs = []; let keys = Object.keys(params || {}).sort(); for (let i = 0, len = keys.length; i < len; i++) {
fix(index): ensure new traditional param is marked as optional
aurelia_path
train
js
84340d957940f364dac323d0e806ddccae5a7b80
diff --git a/src/runner.js b/src/runner.js index <HASH>..<HASH> 100644 --- a/src/runner.js +++ b/src/runner.js @@ -251,14 +251,16 @@ async function runTests() { const files = [] for (let i = 0; i < tests.length; i++) { const file = tests[i].file - if (file.group.only) { - if (!focused) { - files.length = 0 + if (file.group.tests.length) { + if (file.group.only) { + if (!focused) { + files.length = 0 + } + files.push(file) + focused = true + } else if (!focused) { + files.push(file) } - files.push(file) - focused = true - } else if (!focused) { - files.push(file) } }
fix: avoid printing file header for files with no tests
aleclarson_testpass
train
js
427267c3db5c29f8f9b5049596c1d50febe63981
diff --git a/lib/worker.js b/lib/worker.js index <HASH>..<HASH> 100644 --- a/lib/worker.js +++ b/lib/worker.js @@ -55,6 +55,7 @@ class Worker { url: options.url, host: options.host, port: options.port, + password: options.password, poolSize: this.concurrency + 2, labels: options.labels || [], });
fix(worker): pass down password to client
jbielick_faktory_worker_node
train
js
3e43d064205fdd406be5f89c5fced43fa4ebd960
diff --git a/source/rafcon/core/execution/execution_engine.py b/source/rafcon/core/execution/execution_engine.py index <HASH>..<HASH> 100644 --- a/source/rafcon/core/execution/execution_engine.py +++ b/source/rafcon/core/execution/execution_engine.py @@ -109,6 +109,9 @@ class ExecutionEngine(Observable): else: # do not start another state machine before the old one did not finish its execution while self.state_machine_running: + logger.warn("An old state machine is still running! Make sure that it terminates," + " before you can start another state machine!") + return time.sleep(1.0) logger.debug("Start execution engine ...") if state_machine_id is not None:
fix(execution_engine): resolves #<I>
DLR-RM_RAFCON
train
py
2d7b9072d97c011a94ddcf0eca2bf00c9fa6a884
diff --git a/jobs/create-initial-branch.js b/jobs/create-initial-branch.js index <HASH>..<HASH> 100644 --- a/jobs/create-initial-branch.js +++ b/jobs/create-initial-branch.js @@ -209,7 +209,7 @@ module.exports = async function ({ repositoryId }) { statsd.increment('initial_branch') return { - delay: 15 * 60 * 1000, + delay: 30 * 60 * 1000, data: { name: 'initial-timeout-pr', repositoryId,
fix(create-version-branch): wait <I> min until timeout
greenkeeperio_greenkeeper
train
js
395f0ced2430cc15c3eaa0239b086441414f9048
diff --git a/packages/xod-func-tools/src/index.js b/packages/xod-func-tools/src/index.js index <HASH>..<HASH> 100644 --- a/packages/xod-func-tools/src/index.js +++ b/packages/xod-func-tools/src/index.js @@ -77,6 +77,19 @@ export const eitherToPromise = foldEither( Promise.resolve.bind(Promise) ); +export const sanctuaryDefEitherToRamdaFantasyEither = sdEither => ( + sdEither.isLeft + ? Either.Left(sdEither.value) + : Either.Right(sdEither.value) +); + +export const validateSanctuaryType = R.uncurryN(2, SanctuaryType => + R.compose( + sanctuaryDefEitherToRamdaFantasyEither, + SanctuaryType.validate.bind(SanctuaryType) + ) +); + /** * Unwraps Either monad and returns it’s value if it is Right and throws an Error * if it is Left. @@ -216,6 +229,9 @@ export default Object.assign( explode, explodeMaybe, foldEither, + eitherToPromise, + sanctuaryDefEitherToRamdaFantasyEither, + validateSanctuaryType, hasNo, omitNilValues, omitEmptyValues,
feat(xod-func-tools): ‘validateSanctuaryType’ util that is easy to compose and returns a proper Either
xodio_xod
train
js
8d9488315d27b215d31f0c36a24bb2445031541d
diff --git a/lib/generate.js b/lib/generate.js index <HASH>..<HASH> 100644 --- a/lib/generate.js +++ b/lib/generate.js @@ -63,6 +63,7 @@ function init (apis, cb) { var data = { data: api, config: config, + project: confProject, _: _, $$: Object.assign({}, helper, { relative: function (targetFile) { @@ -85,8 +86,19 @@ function init (apis, cb) { } } +function helper (data, source) { + var helperPath = path.resolve(templatePath, '../helper/metalsmith.js') + var helper = fs.existsSync(helperPath) ? require(helperPath) : function () {} + + return function (files, metalsmith, done) { + files = helper(data, files, source) || files + done() + } +} + function build (data, source, dest, cb, ignore) { var metalsmith = Metalsmith(templatePath) + .use(helper(data, source)) .use(renderTemplateFiles(data)) .clean(false) .source(source)
feat: support add a plugin function to metalsmith
easy-mock_easy-mock-cli
train
js
f655de987b95126a65c08de0fa512093524840d1
diff --git a/karma.conf.js b/karma.conf.js index <HASH>..<HASH> 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -70,6 +70,7 @@ module.exports = function (config) { webpack: { plugins: [defaultsPlugin], devtool: 'inline-source-map', + performance: { hints: false }, module: { rules: [ {
chore: don't show perf warnings for test scripts
rollbar_rollbar.js
train
js
8dfd1f03e9798f8134e7a7007315f17189708d55
diff --git a/cmd/iam-etcd-store.go b/cmd/iam-etcd-store.go index <HASH>..<HASH> 100644 --- a/cmd/iam-etcd-store.go +++ b/cmd/iam-etcd-store.go @@ -70,7 +70,11 @@ type IAMEtcdStore struct { } func newIAMEtcdStore(client *etcd.Client, usersSysType UsersSysType) *IAMEtcdStore { - return &IAMEtcdStore{client: client, usersSysType: usersSysType} + return &IAMEtcdStore{ + iamCache: newIamCache(), + client: client, + usersSysType: usersSysType, + } } func (ies *IAMEtcdStore) rlock() *iamCache {
fix: IAM initialization crash with etcd store (#<I>)
minio_minio
train
go
7544c9750159a220bae434041f2572870d2085ba
diff --git a/packages/cozy-client/src/index.js b/packages/cozy-client/src/index.js index <HASH>..<HASH> 100644 --- a/packages/cozy-client/src/index.js +++ b/packages/cozy-client/src/index.js @@ -36,3 +36,5 @@ import * as models from './models' export { models } export { default as fetchPolicies } from './policies' + +export * from './mock' diff --git a/packages/cozy-client/src/node.js b/packages/cozy-client/src/node.js index <HASH>..<HASH> 100644 --- a/packages/cozy-client/src/node.js +++ b/packages/cozy-client/src/node.js @@ -24,3 +24,5 @@ export { default as Registry } from './registry' import * as manifest from './manifest' export { manifest } + +export * from './mock'
feat: Export createMockClient in both entry points We can now `import { createMockClient } from 'cozy-client'` instead of `import { createMockClient } from 'cozy-client/dist/mock'`
cozy_cozy-client
train
js,js
02dd7c17521c470966510bc2318216ecb4922f9c
diff --git a/plugins/inputs/snmp/snmp_test.go b/plugins/inputs/snmp/snmp_test.go index <HASH>..<HASH> 100644 --- a/plugins/inputs/snmp/snmp_test.go +++ b/plugins/inputs/snmp/snmp_test.go @@ -514,9 +514,8 @@ func TestGetSNMPConnection_caching(t *testing.T) { } func TestGosnmpWrapper_walk_retry(t *testing.T) { - if testing.Short() { - t.Skip("Skipping test due to random failures.") - } + t.Skip("Skipping test due to random failures.") + srvr, err := net.ListenUDP("udp4", &net.UDPAddr{}) require.NoError(t, err) defer srvr.Close()
test: actually skip flaky snmp test (#<I>) This test had a short skip added to it four years ago and a comment that the test has random failures. While working on the integration tests, which run all tests this test started showing up in the errors. While the two asserts at the end could possibly be updated, it is worth having someone look deeper into understanding why this change is required. In order to get integration tests running, this skips this test always.
influxdata_telegraf
train
go
5a0d729991c8eef5dd50a5f66ac4c378c3891722
diff --git a/gridsome/app/utils/caniuse.js b/gridsome/app/utils/caniuse.js index <HASH>..<HASH> 100644 --- a/gridsome/app/utils/caniuse.js +++ b/gridsome/app/utils/caniuse.js @@ -1,8 +1,5 @@ const IntersectionObserver = ( - 'document' in global && - 'IntersectionObserver' in global && - 'IntersectionObserverEntry' in global && - 'intersectionRatio' in global.IntersectionObserverEntry.prototype + typeof global.IntersectionObserver !== 'undefined' ) const prefetch = (
fix(app): simplify IntersectionObserver check (#<I>)
gridsome_gridsome
train
js
ea3d0e4331c813d8c85608ce50533ac58f42fd18
diff --git a/packages/pagination/src/PaginationControls.js b/packages/pagination/src/PaginationControls.js index <HASH>..<HASH> 100644 --- a/packages/pagination/src/PaginationControls.js +++ b/packages/pagination/src/PaginationControls.js @@ -74,9 +74,8 @@ const PaginationControls = ({ } let breakView; - let index; let pageNumber; - for (index = 0; index < pageCount; index++) { + for (let index = 0; index < pageCount; index++) { pageNumber = index + 1; if ( pageNumber <= marginPages ||
refactor(pagination): moved temp var into body of for loop
Availity_availity-react
train
js
eacf1e05d57ec1507b5da51fafd6cd2baf0c331d
diff --git a/karma.conf.js b/karma.conf.js index <HASH>..<HASH> 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -85,7 +85,7 @@ module.exports = function (config) { browsers: Object.keys(browserstackBrowsers), timeout: 300000, retryLimit: 3, - reporters: ['dots'], + reporters: ['dots', 'BrowserStack'], autoWatch: false, concurrency: 5,
fix(browserstack): use BrowserStack reporter used 'fix' cz type instead of 'chore' so a patch version gets released
skatejs_build
train
js
c5557b387250ebaaee31b0175e8dff22c2985b6b
diff --git a/cmd/tiller/tiller.go b/cmd/tiller/tiller.go index <HASH>..<HASH> 100644 --- a/cmd/tiller/tiller.go +++ b/cmd/tiller/tiller.go @@ -69,9 +69,9 @@ var rootCommand = &cobra.Command{ func main() { pf := rootCommand.PersistentFlags() - pf.StringVarP(&grpcAddr, "listen", "l", ":44134", "The address:port to listen on") - pf.StringVar(&store, "storage", storageConfigMap, "The storage driver to use. One of 'configmap' or 'memory'") - pf.BoolVar(&enableTracing, "trace", false, "Enable rpc tracing") + pf.StringVarP(&grpcAddr, "listen", "l", ":44134", "address:port to listen on") + pf.StringVar(&store, "storage", storageConfigMap, "storage driver to use. One of 'configmap' or 'memory'") + pf.BoolVar(&enableTracing, "trace", false, "enable rpc tracing") rootCommand.Execute() }
fix(tiller): make text punctuation consistent with helm help Closes #<I>
helm_helm
train
go
c6b60621f6e31d4b0924946b65726e40b4fce556
diff --git a/src/foremast/runner.py b/src/foremast/runner.py index <HASH>..<HASH> 100755 --- a/src/foremast/runner.py +++ b/src/foremast/runner.py @@ -95,10 +95,12 @@ class ForemastRunner(object): 'base': None, } + pipeline_type = self.configs['pipeline']['type'] + if not onetime: - if self.configs['pipeline']['type'] == 'ec2': + if pipeline_type == 'ec2': spinnakerpipeline = pipeline.SpinnakerPipeline(**kwargs) - elif self.configs['pipeline']['type'] == 'lambda': + elif pipeline_type == 'lambda': spinnakerpipeline = pipeline.SpinnakerPipelineLambda(**kwargs) else: raise NotImplementedError("Pipeline type is not implemented.")
refactor: Save Pipeline type See also: #<I>
foremast_foremast
train
py
c5fcb3fde8873e8754f306845fa574e6af99cb95
diff --git a/spec/features/components/expander_spec.rb b/spec/features/components/expander_spec.rb index <HASH>..<HASH> 100644 --- a/spec/features/components/expander_spec.rb +++ b/spec/features/components/expander_spec.rb @@ -1,7 +1,7 @@ require_relative '../spec_helper' feature 'React Expander', js: true do - scenario 'using the component' do + pending 'using the component' do visit '/react_components_expander.html' within_example_containing('Toggle Content') do diff --git a/spec/features/components/modal_spec.rb b/spec/features/components/modal_spec.rb index <HASH>..<HASH> 100644 --- a/spec/features/components/modal_spec.rb +++ b/spec/features/components/modal_spec.rb @@ -1,7 +1,7 @@ require_relative '../spec_helper' feature 'React Modal', js: true do - scenario 'using the component' do + pending 'using the component' do visit '/react_components_modals.html' expect(page).not_to have_css('.modal') expect(page).not_to have_css('.modal-backdrop')
chore(tests): pend tests failing on ci for no reason
pivotal-cf_pivotal-ui
train
rb,rb
0a039d0260063fc9bb4967dfb2cbc880e93ea1bd
diff --git a/util.go b/util.go index <HASH>..<HASH> 100644 --- a/util.go +++ b/util.go @@ -28,7 +28,7 @@ func peerToPeerInfo(p *pb.CircuitRelay_Peer) (pstore.PeerInfo, error) { addrs := make([]ma.Multiaddr, len(p.Addrs)) for i := 0; i < len(addrs); i++ { a, err := ma.NewMultiaddrBytes(p.Addrs[i]) - if err != nil { + if err == nil { addrs[i] = a } }
fix: != to ==
libp2p_go-libp2p-circuit
train
go
19052624d061f1229d61f3e305f98e3776ac4541
diff --git a/lib/quasar-config.js b/lib/quasar-config.js index <HASH>..<HASH> 100644 --- a/lib/quasar-config.js +++ b/lib/quasar-config.js @@ -625,18 +625,14 @@ class QuasarConfig { cfg.build.APP_URL = `file://" + __dirname + "/index.html` } - const vueRouterBase = this.ctx.prod && cfg.build.vueRouterMode === 'history' - ? cfg.build.publicPath - : '/' - cfg.build.env = merge(cfg.build.env || {}, { VUE_ROUTER_MODE: `"${cfg.build.vueRouterMode}"`, - VUE_ROUTER_BASE: `"${vueRouterBase}"`, + VUE_ROUTER_BASE: `"${cfg.build.publicPath}"`, APP_URL: `"${cfg.build.APP_URL}"` }) if (this.ctx.mode.pwa) { - cfg.build.env.SERVICE_WORKER_FILE = `"${vueRouterBase}service-worker.js"` + cfg.build.env.SERVICE_WORKER_FILE = `"${cfg.build.publicPath}service-worker.js"` } cfg.build.env = {
fix(PWA): service-worker.js path for production
quasarframework_quasar-cli
train
js
67d779f3862caa14aa1ac00a771cde7527ed5f0d
diff --git a/src/Socialite/EveOnline/Provider.php b/src/Socialite/EveOnline/Provider.php index <HASH>..<HASH> 100644 --- a/src/Socialite/EveOnline/Provider.php +++ b/src/Socialite/EveOnline/Provider.php @@ -170,7 +170,7 @@ class Provider extends AbstractProvider ->header('typ', new TypeChecker(['JWT'], true)) ->claim('scp', new ScpChecker($scopes)) ->claim('sub', new SubEveCharacterChecker()) - ->claim('azp', new AzpChecker(config('eveapi.config.eseye_client_id'))) + ->claim('azp', new AzpChecker(config('esi.eseye_client_id'))) ->claim('name', new NameChecker()) ->claim('owner', new OwnerChecker()) ->keyset($jwk_sets)
refactor: use published esi config
eveseat_services
train
php
b312a2ca397d2e09517f01157f8b7c4a7fa30b23
diff --git a/memote/suite/collect.py b/memote/suite/collect.py index <HASH>..<HASH> 100644 --- a/memote/suite/collect.py +++ b/memote/suite/collect.py @@ -72,6 +72,7 @@ class ResultCollectionPlugin(object): self._skip = frozenset() if skip is None else frozenset(skip) def pytest_generate_tests(self, metafunc): + """Parametrize marked functions at runtime.""" if metafunc.definition.get_closest_marker("biomass"): metafunc.parametrize("reaction_id", [ rxn.id for rxn in find_biomass_reaction(self._model)])
style: add docstring to plugin's method
opencobra_memote
train
py
6e3105380abd58e59c0e6e3d78fee74523092169
diff --git a/src/logs/logs.js b/src/logs/logs.js index <HASH>..<HASH> 100644 --- a/src/logs/logs.js +++ b/src/logs/logs.js @@ -12,7 +12,8 @@ module.exports = function logs(name, callback) { function describeLogStreams(callback) { cloud.describeLogStreams({ logGroupName: name, - descending: true + descending: true, + orderBy: 'LastEventTime' }, callback) },
fix: order logs by last event
architect_architect
train
js
23124fb1e44d1567c1ed69be25fb7b304ae06518
diff --git a/packages/uikit-workshop/webpack.config.js b/packages/uikit-workshop/webpack.config.js index <HASH>..<HASH> 100755 --- a/packages/uikit-workshop/webpack.config.js +++ b/packages/uikit-workshop/webpack.config.js @@ -85,6 +85,9 @@ module.exports = async function() { 'js/patternlab-viewer': './src/scripts/patternlab-viewer.js', 'css/pattern-lab': './src/sass/pattern-lab.scss', }, + performance: { + hints: false, + }, resolve: { extensions: ['.js', '.jsx'], alias: { @@ -256,6 +259,7 @@ module.exports = async function() { ], { allowExternal: true, + verbose: false, // perform clean just before files are emitted to the output dir beforeEmit: true,
chore: reduce verbosity of Webpack output
bolt-design-system_bolt
train
js
a3043a485af940bcd4114fdb405b16dac2c96bbd
diff --git a/intranet/apps/printing/views.py b/intranet/apps/printing/views.py index <HASH>..<HASH> 100644 --- a/intranet/apps/printing/views.py +++ b/intranet/apps/printing/views.py @@ -316,7 +316,7 @@ def print_view(request): else: messages.success( request, - "Your file was submitted to the printer." + "Your file was submitted to the printer. " "If the printers are experiencing trouble, please contact the " "Student Systems Administrators by filling out the feedback " "form.",
fix(printing): add space
tjcsl_ion
train
py
f4d5fbe0b040498993c83e6d5b7605a87f9b2141
diff --git a/src/apis/destroy.js b/src/apis/destroy.js index <HASH>..<HASH> 100644 --- a/src/apis/destroy.js +++ b/src/apis/destroy.js @@ -28,7 +28,7 @@ SmoothScrollbar.prototype.destroy = function() { // reset scroll position setStyle(container, { - overflow: 'auto' + overflow: '' }); container.scrollTop = container.scrollLeft = 0;
fix: fallback to defined overflow type on destroy
idiotWu_smooth-scrollbar
train
js
fdca2172e103b315d0e69b97cf7ec369d9f8c1c7
diff --git a/packages/uikit-workshop/src/scripts/components/pl-viewport/pl-viewport.js b/packages/uikit-workshop/src/scripts/components/pl-viewport/pl-viewport.js index <HASH>..<HASH> 100755 --- a/packages/uikit-workshop/src/scripts/components/pl-viewport/pl-viewport.js +++ b/packages/uikit-workshop/src/scripts/components/pl-viewport/pl-viewport.js @@ -392,7 +392,7 @@ class IFrame extends BaseComponent { store.getState().app.viewportPx && store.getState().app.viewportPx <= this.clientWidth ? store.getState().app.viewportPx + 'px;' - : this.clientWidth + 'px;'; + : '100%'; return ( <div class="pl-c-viewport pl-js-viewport">
feat: make PL viewport width <I>% by default when JS is disabled
bolt-design-system_bolt
train
js
6c9dcf63479d452c5fdc11cb803b3b7c2e82a60a
diff --git a/renku/service/views/decorators.py b/renku/service/views/decorators.py index <HASH>..<HASH> 100644 --- a/renku/service/views/decorators.py +++ b/renku/service/views/decorators.py @@ -16,6 +16,7 @@ # See the License for the specific language governing permissions and # limitations under the License. """Renku service view decorators.""" +import os import re from functools import wraps @@ -25,7 +26,7 @@ from git import GitCommandError, GitError from jwt import ExpiredSignatureError, ImmatureSignatureError, InvalidIssuedAtError from marshmallow import ValidationError from redis import RedisError -from sentry_sdk import capture_exception +from sentry_sdk import capture_exception, set_context from werkzeug.exceptions import HTTPException from renku.core.errors import ( @@ -95,6 +96,11 @@ def handle_redis_except(f): try: return f(*args, **kwargs) except (RedisError, OSError) as e: + try: + set_context("pwd", os.readlink(f"/proc/{os.getpid()}/cwd")) + except (Exception, BaseException): + pass + capture_exception(e) return jsonify(error={"code": REDIS_EXCEPTION_ERROR_CODE, "reason": e.messages})
chore: add cwd to sentry context on redis exceptions (#<I>)
SwissDataScienceCenter_renku-python
train
py
f3fe8b3af90a08e75105c07493b2ad4f3828b97a
diff --git a/packages/@vue/cli-plugin-typescript/lib/tslint.js b/packages/@vue/cli-plugin-typescript/lib/tslint.js index <HASH>..<HASH> 100644 --- a/packages/@vue/cli-plugin-typescript/lib/tslint.js +++ b/packages/@vue/cli-plugin-typescript/lib/tslint.js @@ -49,7 +49,7 @@ module.exports = function lint (args = {}, api, silent) { before: content.slice(0, script.start), after: content.slice(script.end) }) - return script.content + return script } } @@ -61,8 +61,9 @@ module.exports = function lint (args = {}, api, silent) { const getSourceFile = program.getSourceFile program.getSourceFile = function (file, languageVersion, onError) { if (isVueFile(file)) { - const script = parseTSFromVueFile(file) || '' - return ts.createSourceFile(file, script, languageVersion, true) + const { content, lang = 'js' } = parseTSFromVueFile(file) || { content: '', lang: 'js' } + const contentLang = ts.ScriptKind[lang.toUpperCase()]; + return ts.createSourceFile(file, content, languageVersion, true, contentLang) } else { return getSourceFile.call(this, file, languageVersion, onError) }
fix: fix linting of tsx script in .vue file (#<I>)
vuejs_vue-cli
train
js
a8a127b02e81b1bbd2a919edbc7952724b2e8682
diff --git a/interfaces/js/pre-worker-module.js b/interfaces/js/pre-worker-module.js index <HASH>..<HASH> 100644 --- a/interfaces/js/pre-worker-module.js +++ b/interfaces/js/pre-worker-module.js @@ -33,8 +33,23 @@ var Module = { let json = readFile(`${outName}.json`); // -o json let json_states = readFile(`${outName}_states.json`); // -o json (for state networks) - if (json) json = JSON.parse(json); - if (json_states) json_states = JSON.parse(json_states); + if (json) { + try { + json = JSON.parse(json); + } catch (err) { + postMessage({ type: "error", content: err.message }); + json = undefined; + } + } + + if (json_states) { + try { + json_states = JSON.parse(json_states); + } catch (err) { + postMessage({ type: "error", content: err.message }); + json = undefined; + } + } const content = { clu: readFile(`${outName}.clu`), // -o clu
fix(js): Handle json parse exceptions in worker
mapequation_infomap
train
js
7deb9c3af92449e3a014f34c7167366b952b2687
diff --git a/src/widgets/search-box/search-box.js b/src/widgets/search-box/search-box.js index <HASH>..<HASH> 100644 --- a/src/widgets/search-box/search-box.js +++ b/src/widgets/search-box/search-box.js @@ -238,6 +238,19 @@ function searchBox({ input.value = fullState.query || ''; }); + // When the page is coming from BFCache + // (https://developer.mozilla.org/en-US/docs/Working_with_BFCache) + // then we force the input value to be the current query + // Otherwise, this happens: + // - <input> autocomplete = off (default) + // - search $query + // - navigate away + // - use back button + // - input query is empty (because <input> autocomplete = off) + window.addEventListener('pageshow', () => { + input.value = helper.state.query; + }); + if (autofocus === true || autofocus === 'auto' && helper.state.query === '') { input.focus(); input.setSelectionRange(helper.state.query.length, helper.state.query.length);
fix(searchBox): handle BFCache browsers (#<I>) When the page is coming from BFCache (<URL>) then we force the input value to be the current query. Otherwise, this happens: - `<input>` autocomplete = off (default) - search $query - navigate away - use back button - input query is empty (because `<input>` autocomplete = off) Firefox and Safari are using BFCache for instant back button
algolia_instantsearch.js
train
js
57eb7afe4731bf59c8409e6af5f1c07364d67d68
diff --git a/test_constructible.py b/test_constructible.py index <HASH>..<HASH> 100644 --- a/test_constructible.py +++ b/test_constructible.py @@ -314,7 +314,7 @@ class TestHash(TestCase): from constructible import Constructible from fractions import Fraction as F - for x in [0,1,-1,0.25,3.14,0.1,F(0,1),F(1,2),F(-1,1)]: + for x in [0,1,-1,F(0.25),F(3.14),F(0.1),F(0,1),F(1,2),F(-1,1)]: with self.subTest(x=x): y = Constructible(x) self.assertEqual(x,y, 'precondition for this test')
fix: Constructible is not comparable with float
leovt_constructible
train
py
6fefacaf7b4bc28d5fff6673e6b77f7fbfe1ac78
diff --git a/piazza_api/network.py b/piazza_api/network.py index <HASH>..<HASH> 100644 --- a/piazza_api/network.py +++ b/piazza_api/network.py @@ -114,7 +114,7 @@ class Network(object): :type post: dict|str|int :param post: Either the post dict returned by another API method, or - the cid` field of that post. + the `cid` field of that post. :type subject: str :param content: The content of the followup. :type anonymous: bool diff --git a/piazza_api/rpc.py b/piazza_api/rpc.py index <HASH>..<HASH> 100644 --- a/piazza_api/rpc.py +++ b/piazza_api/rpc.py @@ -106,7 +106,6 @@ class PiazzaRPC(object): """ r = self.request( method="content.create", - # blank. data=params ) return self._handle_error(r, "Could not create object {}.".format(
docs(dev): Fix comments for create_followup.
hfaran_piazza-api
train
py,py
1cfad08a4b0af5b88754d5325a279a5f5a0f2697
diff --git a/lib/parse.js b/lib/parse.js index <HASH>..<HASH> 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -41,7 +41,7 @@ function toRequestOptions (options) { .concat(options.mediaType.previews) .map(preview => { const format = options.mediaType.format ? `.${options.mediaType.format}` : '+json' - return `application/vnd.${preview}-preview${format}` + return `application/vnd.github.${preview}-preview${format}` }) .join(',') }
fix: previews with `.github` prefix in accept header
octokit_endpoint.js
train
js
ba1c78a590662cf91a7300fdb297ff0a7e37eb56
diff --git a/packages/core/elements/replace-with-children/index.js b/packages/core/elements/replace-with-children/index.js index <HASH>..<HASH> 100644 --- a/packages/core/elements/replace-with-children/index.js +++ b/packages/core/elements/replace-with-children/index.js @@ -2,14 +2,10 @@ import { define } from '@bolt/core/utils'; import { withLitHtml, html } from '@bolt/core/renderers/renderer-lit-html'; @define -class ReplaceWithChildren extends withLitHtml() { +class ReplaceWithChildren extends HTMLElement { static is = 'replace-with-children'; - connecting() { - this.replaceElementWithChildren(); - } - - replaceElementWithChildren() { + connectedCallback() { const parentElement = this.parentElement; if (!parentElement) { @@ -20,7 +16,10 @@ class ReplaceWithChildren extends withLitHtml() { // Originally was this.replaceWith(...this.childNodes) but IE11 doesn't like that while (this.firstChild) { - parentElement.appendChild(this.firstChild); + // double-check to confirm the parent element still exists + if (parentElement) { + parentElement.appendChild(this.firstChild); + } } if (parentElement) { parentElement.removeChild(this);
refactor: simplify replace-with-children element to not require any extra libraries given the single-purpose functionality + reduce the risk of other libraries colliding with the auto-removal functionality
bolt-design-system_bolt
train
js
0a574ecc2fa776402646206a0714458e311c4e3f
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,8 +13,11 @@ with open('revision/__init__.py', 'rb') as f: ).group(1))) setup( - name="revision", + name='revision', version=version, + author='COLORFUL BOARD Inc.', + url='https://github.com/COLORFULBOARD/revision', + license='MIT', packages=find_packages(), install_requires=[ 'click==6.7', @@ -29,11 +32,12 @@ setup( classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', + 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.6', - 'Programming Language :: Python :: 2.7' + 'Programming Language :: Python :: 2.7', + 'Topic :: Software Development :: Libraries :: Python Modules' ], entry_points={'console_scripts': [ 'revision=revision.cli:main'
chore(package): add a more detailed info for setup.py
COLORFULBOARD_revision
train
py
b51ab711d5ada64a665cd74518063bf9cefb3b4b
diff --git a/packages/mangojuice-core/src/classes/Process.js b/packages/mangojuice-core/src/classes/Process.js index <HASH>..<HASH> 100644 --- a/packages/mangojuice-core/src/classes/Process.js +++ b/packages/mangojuice-core/src/classes/Process.js @@ -75,6 +75,7 @@ function prepareConfig(proc) { let config = { children: EMPTY_OBJECT, childrenKeys: EMPTY_ARRAY, meta: {} }; config = (logic.config && logic.config(...configArgs)) || {}; config.meta = config.meta || {}; + logic.meta = config.meta; proc.config = config; if (logic.children) { @@ -242,17 +243,15 @@ function bindShared(proc, sharedModel) { /** * Associate instance of the Process with given model by setting - * hidden `__proc` field in the model. Also set model, shared model - * and meta in the logic instance. + * hidden `__proc` field in the model. Also set model and shared model, * @param {Process} proc * @param {Object} model */ function bindModel(proc, model) { - const { logic, config: { meta }, sharedModel } = proc; + const { logic, sharedModel } = proc; proc.model = model; logic.model = model; logic.shared = sharedModel; - logic.meta = meta; Object.defineProperty(model, '__proc', { value: proc,
fix(core): set meta in logic before call children
mangojuicejs_mangojuice
train
js
779a83e402c63c9009e71cf1a21cf918e6c8c3d7
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -32,6 +32,7 @@ setup( "leveldb>=0.194", ] }, + setup_requires=['setuptools-markdown'], license='MIT', zip_safe=False, keywords='ethereum blockchain evm',
docs: readme to rst for pypi
ethereum_py-evm
train
py
9bd9cc031ea2eb00f6a9c8420c81df96064d6c09
diff --git a/src/Luxury/Foundation/Kernelize.php b/src/Luxury/Foundation/Kernelize.php index <HASH>..<HASH> 100644 --- a/src/Luxury/Foundation/Kernelize.php +++ b/src/Luxury/Foundation/Kernelize.php @@ -28,7 +28,7 @@ trait Kernelize /* @var \Luxury\Providers\Provider $prv */ $prv = new $provider(); - $prv->registering($this->getDI()); + $prv->registering(); } }
fix(kernel): Provider->registering does not wait the Dependency Injection
phalcon-nucleon_framework
train
php
6c70c9a29573e3fd54c14b7fa1365834b9d61d1a
diff --git a/lib/datasource/gitlab/index.js b/lib/datasource/gitlab/index.js index <HASH>..<HASH> 100644 --- a/lib/datasource/gitlab/index.js +++ b/lib/datasource/gitlab/index.js @@ -99,7 +99,7 @@ async function getPkgReleases({ registryUrls, lookupName: repo, lookupType }) { await renovateCache.set( cacheNamespace, getCacheKey(depHost, repo, lookupType), - versions, + dependency, cacheMinutes ); return dependency;
fix: Cache the right thing in gitlab datasource (#<I>)
renovatebot_renovate
train
js
cc3ba7ec1bf05e47fa92e108d3aacbced07a2ffa
diff --git a/src/tasks/config.prepare.js b/src/tasks/config.prepare.js index <HASH>..<HASH> 100644 --- a/src/tasks/config.prepare.js +++ b/src/tasks/config.prepare.js @@ -155,7 +155,7 @@ var prepareTasksConfig = { prepare_app: { options: { out: config.build.prepare.outdir + '/less/app', - paths: ['<%= preprocess.prepare_app_sass.options.out %>', config.vendor.base] + paths: ['<%= preprocess.prepare_app_less.options.out %>', config.vendor.base] }, files: [ {
fix(less): fix less import path (broken after introducing preprocess)
w11k_fabs
train
js
1c91d82ae70750e08ce77f35c17c872c06b7d01b
diff --git a/library/actor-common/src/main/java/im/actor/model/network/connection/ManagedConnection.java b/library/actor-common/src/main/java/im/actor/model/network/connection/ManagedConnection.java index <HASH>..<HASH> 100644 --- a/library/actor-common/src/main/java/im/actor/model/network/connection/ManagedConnection.java +++ b/library/actor-common/src/main/java/im/actor/model/network/connection/ManagedConnection.java @@ -21,9 +21,9 @@ import im.actor.model.util.CRC32; public class ManagedConnection implements Connection { - public static final int CONNECTION_TIMEOUT = 5 * 1000; - private static final int HANDSHAKE_TIMEOUT = 5 * 1000; - private static final int RESPONSE_TIMEOUT = 5 * 1000; + public static final int CONNECTION_TIMEOUT = 15 * 1000; + private static final int HANDSHAKE_TIMEOUT = 15 * 1000; + private static final int RESPONSE_TIMEOUT = 15 * 1000; private static final int PING_TIMEOUT = 5 * 60 * 1000; private static final int HEADER_PROTO = 0;
feat(common): Increase connection timeouts
actorapp_actor-platform
train
java
5434babb96f6270603bda2023badbce1ef06ea9f
diff --git a/lib/add-channel.js b/lib/add-channel.js index <HASH>..<HASH> 100644 --- a/lib/add-channel.js +++ b/lib/add-channel.js @@ -42,4 +42,6 @@ module.exports = async ({npmPublish}, pkg, context) => { npmPublish === false ? 'npmPublish' : "package.json's private property" } is ${npmPublish !== false}` ); + + return false; }; diff --git a/test/integration.test.js b/test/integration.test.js index <HASH>..<HASH> 100644 --- a/test/integration.test.js +++ b/test/integration.test.js @@ -634,7 +634,7 @@ test('Skip adding the package to a channel ("npmPublish" is false)', async t => } ); - t.falsy(result); + t.false(result); await t.throws(execa('npm', ['view', pkg.name, 'version'], {cwd, env})); }); @@ -662,7 +662,7 @@ test('Skip adding the package to a channel ("package.private" is true)', async t } ); - t.falsy(result); + t.false(result); await t.throws(execa('npm', ['view', pkg.name, 'version'], {cwd, env})); });
fix: return `false` in `addChannel` if package is not published on npm
semantic-release_npm
train
js,js
9ebd29cd706bcf0be0787d424deb653eb71c571d
diff --git a/packages/vuetifyjs.com/lang/en/components/TextFields.js b/packages/vuetifyjs.com/lang/en/components/TextFields.js index <HASH>..<HASH> 100644 --- a/packages/vuetifyjs.com/lang/en/components/TextFields.js +++ b/packages/vuetifyjs.com/lang/en/components/TextFields.js @@ -85,8 +85,10 @@ export default { counter: 'Creates counter for input length. If no Number is specified, it defaults to 25. Does not apply any validation.', fullWidth: 'Desginates input type as full-width', multiLine: 'Turns into textarea', + noResize: 'Remove resize handle, only applies to **multi-line** and **textarea** props', prefix: 'Displays prefix text', rows: 'Number of rows in textarea', + rowHeight: 'Designate a custom _row-height_. Used for determining input height when using **multi-line** or **textarea** props', suffix: 'Displays suffix text', textarea: 'Textarea text-field with alternate style', toggleKeys: 'Array of key codes that will toggle the input (if it supports toggling)',
feat(text-fields): updated language
vuetifyjs_vuetify
train
js
b1ffc32c1f36a1734f0a12573454d98d29a7b8c8
diff --git a/tests/Router/RouterTest.php b/tests/Router/RouterTest.php index <HASH>..<HASH> 100644 --- a/tests/Router/RouterTest.php +++ b/tests/Router/RouterTest.php @@ -456,7 +456,7 @@ class RouterTest extends TestCase $result = $router->dispatch($request); } - public function testOptionsForCorsWillBackToHomeIndex(): void + public function testOptionsForCorsWillBackCorsResponse(): void { $pathInfo = '/:tests'; $params = []; @@ -472,7 +472,7 @@ class RouterTest extends TestCase $this->assertInstanceof(IResponse::class, $result); - $this->assertSame('hello my home', $result->getContent()); + $this->assertSame('cors', $result->getContent()); } public function testColonInController(): void
fix(tests): fix the tests of Router
hunzhiwange_framework
train
php
83de625b7cd880d4d43ce4ce7f632a3dc6054e9b
diff --git a/modules/CardStack.js b/modules/CardStack.js index <HASH>..<HASH> 100755 --- a/modules/CardStack.js +++ b/modules/CardStack.js @@ -107,14 +107,22 @@ class CardStack extends Component<void, Props, State> { if ( nextRoute && currentCard && ( // Basic pathname - (currentCard.pattern !== nextRoute.key) || + (currentRoute.key !== nextRoute.key) || // Pathname with query params // Ex: with same pattern article/:id, // pathname article/2 !== article/3 (matchPattern(currentRoute.key, location, true) && - matchPattern(nextRoute.key, location, true) && - entries[index - 1] && entries[index].pathname !== entries[index - 1].pathname) - )) { + matchPattern(nextRoute.key, location, true) && ( + ((action === 'PUSH' || action === 'REPLACE') && + entries[index - 1] && + matchPattern(nextRoute.key, entries[index - 1], true) && + entries[index].pathname !== entries[index - 1].pathname) || + (action === 'POP' && + entries[index + 1] && + matchPattern(nextRoute.key, entries[index + 1], true) && + entries[index].pathname !== entries[index + 1].pathname) + ))) + ) { const key = `${nextRoute.key}@@${Date.now()}` switch (action) { case 'PUSH': {
fix(CardStack): fix query params support
winoteam_react-router-navigation
train
js
0c5a84a65ebb9c3274b037ece3b7e6596c8e428d
diff --git a/webpack/test.js b/webpack/test.js index <HASH>..<HASH> 100644 --- a/webpack/test.js +++ b/webpack/test.js @@ -17,6 +17,10 @@ const config = merge.smart(baseConfig, { test: /targets\/.*\.js$/, loader: 'babel?presets[]=es2015', }, + { + test: /node_modules\/espruino\/.*\.js$/, + loader: 'null', + }, ], }, });
fix(tests): ignore espruino imports in tests
xodio_xod
train
js
2692b09f530e8669672a955cd5dd860ccd8f8387
diff --git a/mapillary_tools/gpmf.py b/mapillary_tools/gpmf.py index <HASH>..<HASH> 100644 --- a/mapillary_tools/gpmf.py +++ b/mapillary_tools/gpmf.py @@ -100,7 +100,7 @@ def parse_bin(path: str) -> list: if b"00" == binascii.hexlify(desc[:1]): continue - val_size: int = struct.unpack(">b", desc[:1])[0] + val_size: int = struct.unpack(">b", desc[1:2])[0] num_values: int = struct.unpack(">h", desc[2:4])[0] length = val_size * num_values
fix: unpack bytes at wrong location
mapillary_mapillary_tools
train
py
3e0c58ee7ac5a34f61c95e8fd977e8155df50d4c
diff --git a/demos/live/01-write-file.js b/demos/live/01-write-file.js index <HASH>..<HASH> 100644 --- a/demos/live/01-write-file.js +++ b/demos/live/01-write-file.js @@ -24,7 +24,7 @@ const logger = ({ action }) => { // Make the fileRenderer responsible for certain actions agent.addRenderer(fileRenderer) -agent.addRenderer(logger) +agent.addFilter(logger) const action = writeLine("Jake Weary")
docs: Live Demo <I> Explain that filters run before renderers
deanius_antares
train
js
0a27c52e82e1e81c2f063952d6644342f7a0f0fe
diff --git a/werobot/client.py b/werobot/client.py index <HASH>..<HASH> 100644 --- a/werobot/client.py +++ b/werobot/client.py @@ -818,7 +818,12 @@ class Client(object): ) def send_video_message( - self, user_id, media_id, title=None, description=None, kf_account=None + self, + user_id, + media_id, + title=None, + description=None, + kf_account=None ): """ 发送视频消息。 @@ -958,7 +963,13 @@ class Client(object): ) def send_miniprogrampage_message( - self, user_id, title, appid, pagepath, thumb_media_id, kf_account=None + self, + user_id, + title, + appid, + pagepath, + thumb_media_id, + kf_account=None ): """ 发送小程序卡片(要求小程序与公众号已关联)
chore: reformat with yapf <I>
offu_WeRoBot
train
py
c1c30e97c94f909856a7c023410fa582b70727a2
diff --git a/lib/launch-local.js b/lib/launch-local.js index <HASH>..<HASH> 100644 --- a/lib/launch-local.js +++ b/lib/launch-local.js @@ -27,7 +27,7 @@ class Launcher { // NOTE: Local launcher works only in "distribute" mode; there's // no "multiply" this.count = this.opts.count || Math.max(1, os.cpus().length - 1); - + debug('Worker thread count:', this.count); this.workers = {}; this.workerMessageBuffer = [];
chore: debug print number of threads
artilleryio_artillery
train
js
2b358cd7d5226cfa92fd7ee564f807ad82e16711
diff --git a/questionary/prompts/common.py b/questionary/prompts/common.py index <HASH>..<HASH> 100644 --- a/questionary/prompts/common.py +++ b/questionary/prompts/common.py @@ -226,7 +226,7 @@ class InquirerControl(FormattedTextControl): if isinstance(choice.title, list): tokens.extend(choice.title) - elif index == self.pointed_at and not self.use_pointer: + elif index == self.pointed_at: tokens.append(("class:highlighted", "{}{}".format(shortcut, choice.title)))
feat(prompts): enable the coexistence of pointer and highlighted text ISSUES CLOSED: #<I>
tmbo_questionary
train
py
e57e40302fb65a7786892ed00acce07d78887b8b
diff --git a/algoliasearch/types_key.go b/algoliasearch/types_key.go index <HASH>..<HASH> 100644 --- a/algoliasearch/types_key.go +++ b/algoliasearch/types_key.go @@ -7,7 +7,7 @@ type Key struct { Indexes []string `json:"indexes,omitempty"` MaxHitsPerQuery int `json:"maxHitsPerQuery,omitempty"` MaxQueriesPerIPPerHour int `json:"maxQueriesPerIPPerHour,omitempty"` - QueryParamaters string `json:"queryParameters,omitempty"` + QueryParameters string `json:"queryParameters,omitempty"` Referers []string `json:"referers,omitempty"` Validity int `json:"validity,omitempty"` Value string `json:"value,omitempty"`
fix(key): Add QueryParameters in Key struct to fix typo
algolia_algoliasearch-client-go
train
go
03910df967a1ae7bcb2fa3aadd58255e0bcbf327
diff --git a/src/jquery.draggable.js b/src/jquery.draggable.js index <HASH>..<HASH> 100644 --- a/src/jquery.draggable.js +++ b/src/jquery.draggable.js @@ -18,7 +18,8 @@ handle: null, container_width: 0, // 0 == auto move_element: true, - helper: false // or 'clone' + helper: false, // or 'clone' + remove_helper: true // drag: function(e) {}, // start : function(e, ui) {}, // stop : function(e) {} @@ -346,7 +347,7 @@ this.options.stop.call(this.$player, e, data); } - if (this.helper) { + if (this.helper && this.options.remove_helper) { this.$helper.remove(); }
feat(draggable): option to not remove helper on drag stop
ducksboard_gridster.js
train
js
a0612335101c7ce2a07d95da4b79f0d4a2b1a6a0
diff --git a/packages/discord.js/src/util/APITypes.js b/packages/discord.js/src/util/APITypes.js index <HASH>..<HASH> 100644 --- a/packages/discord.js/src/util/APITypes.js +++ b/packages/discord.js/src/util/APITypes.js @@ -304,11 +304,6 @@ */ /** - * @external ChannelType - * @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/ChannelType} - */ - -/** * @external PermissionFlagsBits * @see {@link https://discord-api-types.dev/api/discord-api-types-payloads/common#PermissionFlagsBits} */
docs(APITypes): Remove duplicate type definition (#<I>)
discordjs_discord.js
train
js
bba14284ecbfc2d2aeef3b3aed4063bfe7e103c2
diff --git a/source/library/utilities/get-patterns.js b/source/library/utilities/get-patterns.js index <HASH>..<HASH> 100644 --- a/source/library/utilities/get-patterns.js +++ b/source/library/utilities/get-patterns.js @@ -108,7 +108,7 @@ async function getPatterns(options, cache) { const misplacedKeys = omit(environment, Object.keys(config)); const misplacedKeyNames = Object.keys(misplacedKeys); - if (misplacedKeys) { + if (misplacedKeys.length > 0) { log.warn(`${chalk.yellow('[⚠ Deprecation ⚠ ]')} Found unexpected keys ${misplacedKeyNames} in environment ${environmentConfig.name}.environment. Placing keys other than ${Object.keys(config)} in ${environmentConfig.name}.environment is deprecated, move the keys to ${environmentConfig.name}.environment.transforms`); }
fix(server): print env deprecations only when offending keys are found closes sinnerschrader/patternplate#<I>
patternplate-archive_patternplate-server
train
js