selection_rank
int64
0
10k
uid
stringlengths
17
29
source
stringclasses
7 values
split
stringclasses
3 values
row_idx
int64
0
58.9k
instance_id
stringlengths
14
120
repo
stringclasses
246 values
repo_canon
stringclasses
232 values
language
stringclasses
8 values
base_commit
stringlengths
40
40
⌀
problem_statement
stringlengths
84
23.6k
extra_context
stringclasses
626 values
hints
stringlengths
0
59.3k
patch
stringlengths
252
175k
test_patch
stringlengths
0
358k
f2p
stringlengths
10
155k
⌀
p2p
stringlengths
2
1.75M
⌀
env_image
stringlengths
41
154
⌀
env_available
bool
1 class
created_at
stringlengths
10
20
⌀
n_src_files
int64
1
15
src_lines
int64
1
1.48k
n_f2p
float64
1
1.87k
⌀
ps_chars
int64
84
23.6k
leak_ratio
float64
0
0.6
s_prior
float64
0.6
1
s_verif
float64
0.75
1
s_ps
float64
0.04
1
s_patch
float64
0.07
1
s_tiebreak
float64
0.02
1
score
float64
47.9
98.6
2,000
swe_gym::train::257
swe_gym
train
257
getmoto__moto-5516
getmoto/moto
getmoto/moto
python
0509362737e8f638e81ae412aad74454cfdbe5b5
Cancel spot fleet request without terminate incorrectly removes the fleet entirely https://github.com/spulec/moto/blob/c301f8822c71a402d14b380865aa45b07e880ebd/moto/ec2/models.py#L6549 I'm working with localstack on moto and trying to simulate a flow of: - create spot fleet with X instances - cancel the fleet without...
Hi @cheshirex, thanks for raising this. It does look like our implementation of this feature is a bit... spotty. Marking it as a bug to implement this flag properly.
diff --git a/moto/ec2/models/spot_requests.py b/moto/ec2/models/spot_requests.py --- a/moto/ec2/models/spot_requests.py +++ b/moto/ec2/models/spot_requests.py @@ -466,8 +466,10 @@ def cancel_spot_fleet_requests(self, spot_fleet_request_ids, terminate_instances if terminate_instances: spot_...
diff --git a/tests/test_ec2/test_spot_fleet.py b/tests/test_ec2/test_spot_fleet.py --- a/tests/test_ec2/test_spot_fleet.py +++ b/tests/test_ec2/test_spot_fleet.py @@ -118,8 +118,7 @@ def test_create_spot_fleet_with_lowest_price(): launch_spec["UserData"].should.equal("some user data") launch_spec["WeightedCap...
["tests/test_ec2/test_spot_fleet.py::test_cancel_spot_fleet_request__but_dont_terminate_instances"]
["tests/test_ec2/test_spot_fleet.py::test_modify_spot_fleet_request_up", "tests/test_ec2/test_spot_fleet.py::test_create_spot_fleet_with_lowest_price", "tests/test_ec2/test_spot_fleet.py::test_modify_spot_fleet_request_down", "tests/test_ec2/test_spot_fleet.py::test_modify_spot_fleet_request_down_no_terminate_after_cus...
null
true
2022-10-02 19:24:02
2
6
1
946
0
0.85
1
0.4
1
0.177667
77.583
2,001
swe_bench_pro::test::21
swe_bench_pro
test
21
instance_NodeBB__NodeBB-84dfda59e6a0e8a77240f939a7cb8757e6eaf945-v2c59007b1005cd5cd14cbb523ca5229db1fd2dd8
NodeBB/NodeBB
nodebb/nodebb
javascript
aad0c5fd5138a31dfd766d2e6808a35b7dfb4a74
## Title: Uploaded files remain on disk after their post is purged ### Description Currently when a post is purged, its referenced uploads are left behind on disk as orphaned content that stays inaccessible to users yet keeps consuming storage indefinitely since nothing removes the items that are no longer associated ...
## Requirements - When a post is purged, its associated uploads should be removed from disk so orphaned content no longer lingers and keeps consuming storage. - Administrators should be able to enable a `preserveOrphanedUploads` setting so that uploads stay on disk even after the post that referenced them is purged. ...
diff --git a/public/language/en-GB/admin/settings/uploads.json b/public/language/en-GB/admin/settings/uploads.json index ba9d012d87db..af99a3ae77f6 100644 --- a/public/language/en-GB/admin/settings/uploads.json +++ b/public/language/en-GB/admin/settings/uploads.json @@ -2,6 +2,7 @@ "posts": "Posts", "private": "Mak...
diff --git a/test/posts/uploads.js b/test/posts/uploads.js index 689ae8524..2eadc4d3d 100644 --- a/test/posts/uploads.js +++ b/test/posts/uploads.js @@ -3,6 +3,7 @@ const assert = require('assert'); const fs = require('fs'); const path = require('path'); +const os = require('os'); const nconf = require('nconf'); ...
["test/posts/uploads.js | upload methods Deletion from disk on purge should purge the images from disk if the post is purged", "test/posts/uploads.js | upload methods .deleteFromDisk() should work if you pass in a string path", "test/posts/uploads.js | upload methods .deleteFromDisk() should throw an error if a non-str...
["test/posts/uploads.js | upload methods .sync() should properly add new images to the post's zset", "test/posts/uploads.js | upload methods .sync() should remove an image if it is edited out of the post", "test/posts/uploads.js | upload methods .list() should display the uploaded files for a specific post", "test/post...
ghcr.io/scaleapi/swe-bench_pro-v2:instance_NodeBB__NodeBB-84dfda59e6a0e8a77240f939a7cb8757e6eaf945-v2c59007b1005cd5cd14cbb523ca5229db1fd2dd8
true
null
3
43
6
398
0
0.95
1
0.4
1
0.209667
77.579
2,002
swe_bench_pro::test::544
swe_bench_pro
test
544
instance_protonmail__webclients-b530a3db50cb33e5064464addbcbef1465856ce6
protonmail/webclients
protonmail/webclients
javascript
32394eda944448efcd48d2487c2878cd402e612c
## Title: Refactor Logic for Checking if a User Can Mark Items in the Onboarding Checklist ### Description The business logic that determines whether a user can check an item in the onboarding checklist is implemented directly inside the `GetStartedChecklistProvider` component. Mixing the provider's UI responsibilitie...
## Requirements - A hook named `useCanCheckItem` must be available as the default export of its own module, and it must take no arguments and return an object whose `canMarkItemsAsDone` property is a boolean. - `useCanCheckItem` must compute `canMarkItemsAsDone` from the current user, the current user settings and the...
diff --git a/applications/mail/src/app/containers/onboardingChecklist/hooks/useCanCheckItem.ts b/applications/mail/src/app/containers/onboardingChecklist/hooks/useCanCheckItem.ts new file mode 100644 index 00000000000..358d48d65ad --- /dev/null +++ b/applications/mail/src/app/containers/onboardingChecklist/hooks/useCan...
diff --git a/applications/mail/src/app/containers/onboardingChecklist/hooks/useCanCheckItem.test.ts b/applications/mail/src/app/containers/onboardingChecklist/hooks/useCanCheckItem.test.ts new file mode 100644 index 00000000000..0e447865e1b --- /dev/null +++ b/applications/mail/src/app/containers/onboardingChecklist/ho...
["src/app/containers/onboardingChecklist/hooks/useCanCheckItem.test.ts | get-started checklist should return true if user is free", "src/app/containers/onboardingChecklist/hooks/useCanCheckItem.test.ts | get-started checklist should return true if free user with get-started checklist", "src/app/containers/onboardingChe...
[]
ghcr.io/scaleapi/swe-bench_pro-v2:instance_protonmail__webclients-b530a3db50cb33e5064464addbcbef1465856ce6
true
null
2
30
9
653
0
0.95
1
0.4
1
0.208833
77.5765
2,003
swe_gym::train::707
swe_gym
train
707
iterative__dvc-5818
iterative/dvc
iterative/dvc
python
31439754377d829da6babffcc720dd696554d8ab
exp show: only shows one row while `exp run` is running. # Bug Report ## Description When running `exp show` between checkpoints of `exp run` (between checkpoints while the repo isn't locked), the table only shows a `workspace` and a single row (I assume the one currently being run) In my case, this is the normal ta...
This is a side effect of how workspace experiment runs work. As a part of the various git operations that happen during an experiment run, `HEAD` gets moved around. At this particular point in time it will be a detached HEAD pointing to the current "checkpoint" commit. By default, `dvc exp show` only shows experimen...
diff --git a/dvc/repo/diff.py b/dvc/repo/diff.py --- a/dvc/repo/diff.py +++ b/dvc/repo/diff.py @@ -7,6 +7,7 @@ from dvc.objects.stage import get_file_hash from dvc.objects.stage import stage as ostage from dvc.repo import locked +from dvc.repo.experiments.utils import fix_exp_head logger = logging.getLogger(__nam...
diff --git a/tests/func/experiments/test_experiments.py b/tests/func/experiments/test_experiments.py --- a/tests/func/experiments/test_experiments.py +++ b/tests/func/experiments/test_experiments.py @@ -611,3 +611,16 @@ def test_checkout_targets_deps(tmp_dir, scm, dvc, exp_stage): assert (tmp_dir / "foo").exists()...
["tests/func/experiments/test_experiments.py::test_fix_exp_head[^]", "tests/func/experiments/test_experiments.py::test_fix_exp_head[]", "tests/func/experiments/test_experiments.py::test_fix_exp_head[~1]"]
["tests/unit/repo/plots/test_diff.py::test_revisions[arg_revisions1-True-expected_revisions1]", "tests/func/experiments/test_experiments.py::test_no_scm", "tests/unit/repo/plots/test_diff.py::test_revisions[arg_revisions2-False-expected_revisions2]", "tests/unit/repo/plots/test_diff.py::test_revisions_experiment[arg_re...
null
true
2021-04-15T08:29:26Z
8
57
3
1,788
0
0.85
1
0.7
0.6
0.488
77.564
2,004
swe_bench_pro::test::283
swe_bench_pro
test
283
instance_future-architect__vuls-abd80417728b16c6502067914d27989ee575f0ee
future-architect/vuls
future-architect/vuls
go
847c6438e7604bf45a6a4efda0925f41b4f14d7f
** Title: Incorrect Package Lookup When Multiple Architectures/Versions Installed** **Description:** When multiple versions or architectures of the same package are installed on Red Hat-based systems, the current implementation may fail to find the correct package and emits warnings like “Failed to find the package: ...
## Requirements - The `redhatBase` type must provide a method `parseRpmQfLine` with the signature `(line string) (*models.Package, bool, error)` that interprets a single line of `rpm -qf` output. The three return values represent the parsed package, an "ignored" flag, and an error, respectively. - When the line ends w...
diff --git a/scan/base.go b/scan/base.go index 4d170fc3f6..17fbb275f8 100644 --- a/scan/base.go +++ b/scan/base.go @@ -920,3 +920,85 @@ func (l *base) parseLsOf(stdout string) map[string][]string { } return portPids } + +func (l *base) pkgPs(getOwnerPkgs func([]string) ([]string, error)) error { + stdout, err := l...
diff --git a/scan/redhatbase_test.go b/scan/redhatbase_test.go index cc9bf26334..8d2e1fa333 100644 --- a/scan/redhatbase_test.go +++ b/scan/redhatbase_test.go @@ -163,11 +163,6 @@ func TestParseInstalledPackagesLine(t *testing.T) { }, false, }, - { - "error: file /run/log/journal/346a500b7fb944199748954ba...
["Test_redhatBase_parseRpmQfLine", "Test_redhatBase_parseRpmQfLine/permission_denied_will_be_ignored", "Test_redhatBase_parseRpmQfLine/is_not_owned_by_any_package", "Test_redhatBase_parseRpmQfLine/No_such_file_or_directory_will_be_ignored", "Test_redhatBase_parseRpmQfLine/valid_line", "Test_redhatBase_parseRpmQfLine/er...
[]
ghcr.io/scaleapi/swe-bench_pro-v2:instance_future-architect__vuls-abd80417728b16c6502067914d27989ee575f0ee
true
null
3
348
6
1,541
0
0.95
1
0.55
0.75
0.756833
77.558
2,005
swe_bench_pro::test::286
swe_bench_pro
test
286
instance_future-architect__vuls-be7b9114cc9545e68fb0ee7bc63d7ec53d1a00ad
future-architect/vuls
future-architect/vuls
go
bf14b5f61f7a65cb64cf762c71885a413a9fcb66
# Title: Scan results miss Package URL (PURL) information in library output ## Description Trivy scan results for filesystems and container images include a Package URL (PURL) for each package under `Identifier.PURL`. When these results are converted into Vuls scan output, that PURL is not carried into the `models.Lib...
## Requirements - A `models.Library` must carry its package URL in a field named `PURL` whose type is `string`, holding the package URL in its string form. - When a Trivy JSON result is converted into a Vuls scan result, every `models.Library` entry built from a package that reports an `Identifier.PURL` must have `PUR...
diff --git a/contrib/trivy/pkg/converter.go b/contrib/trivy/pkg/converter.go index 3b5218357e..33ad98d1cb 100644 --- a/contrib/trivy/pkg/converter.go +++ b/contrib/trivy/pkg/converter.go @@ -149,6 +149,7 @@ func Convert(results types.Results) (result *models.ScanResult, err error) { libScanner.Libs = append(libSca...
diff --git a/contrib/trivy/parser/v2/parser_test.go b/contrib/trivy/parser/v2/parser_test.go index 63f945eb88..612cb0f9d7 100644 --- a/contrib/trivy/parser/v2/parser_test.go +++ b/contrib/trivy/parser/v2/parser_test.go @@ -136,6 +136,9 @@ var redisTrivy = []byte(` "Packages": [ { "Name": "add...
["TestParse", "TestParseError", "TestLibraryScanners_Find", "TestLibraryScanners_Find/single_file", "TestLibraryScanners_Find/multi_file", "TestLibraryScanners_Find/miss"]
[]
ghcr.io/scaleapi/swe-bench_pro-v2:instance_future-architect__vuls-be7b9114cc9545e68fb0ee7bc63d7ec53d1a00ad
true
null
3
34
6
525
0
0.95
1
0.4
1
0.200833
77.5525
2,006
swe_gym::train::993
swe_gym
train
993
dask__dask-6939
dask/dask
dask/dask
python
9973a24f1a662a026228282d264cd3cb7e732543
Adding ravel_multi_index and unravel_index Would be nice to have Dask implementations of [ravel_multi_index]( https://docs.scipy.org/doc/numpy/reference/generated/numpy.ravel_multi_index.html ) and [unravel_index]( https://docs.scipy.org/doc/numpy/reference/generated/numpy.unravel_index.html ). These are particularly n...
Adding `unravel_index` in PR ( https://github.com/dask/dask/pull/3958 ) 👍 to `ravel_multi_index`
diff --git a/dask/array/__init__.py b/dask/array/__init__.py --- a/dask/array/__init__.py +++ b/dask/array/__init__.py @@ -56,6 +56,7 @@ flatnonzero, nonzero, unravel_index, + ravel_multi_index, around, isin, isnull, diff --git a/dask/array/routines.py b/dask...
diff --git a/dask/array/tests/test_routines.py b/dask/array/tests/test_routines.py --- a/dask/array/tests/test_routines.py +++ b/dask/array/tests/test_routines.py @@ -1503,6 +1503,28 @@ def test_unravel_index(): assert_eq(darr.vindex[d_indices], arr[indices]) +@pytest.mark.parametrize( + "arr, chunks, k...
["dask/array/tests/test_routines.py::test_ravel_multi_index[arr0-chunks0-kwargs0]", "dask/array/tests/test_routines.py::test_ravel_multi_index[arr1-chunks1-kwargs1]", "dask/array/tests/test_routines.py::test_ravel_multi_index[arr5-chunks5-kwargs5]", "dask/array/tests/test_routines.py::test_ravel_multi_index[arr3-chunks...
["dask/array/tests/test_routines.py::test_shape[shape1]", "dask/array/tests/test_routines.py::test_apply_over_axes[shape0-axes0-sum1-<lambda>]", "dask/array/tests/test_routines.py::test_matmul[x_shape21-y_shape21]", "dask/array/tests/test_routines.py::test_ptp[shape0-None]", "dask/array/tests/test_routines.py::test_atl...
null
true
2020-12-05T09:55:00Z
2
28
6
428
0
0.85
1
0.4
1
0.164667
77.544
2,007
swe_gym::train::939
swe_gym
train
939
dask__dask-10342
dask/dask
dask/dask
python
853a6b0db11c17c6b36a54057fbd9b240b747919
Allow users to disable repartitioning in `DataFrame.set_index` `DataFrame.set_index` triggers expensive computations both to figure out new divisions and to repartition the dataframe according to them. Given how expensive such an (approximate) distributed sort is, users should have the chance to disable this behavior w...
I would call the keyword `sort=False` personally. Repartition doesn't seem right to me. That operation usually implies that we maintain the current order, but shift around the boundaries. The bigger difference here, I think, is that we're no longer sorting the dataset. So to be clear: ```python df = df.set_in...
diff --git a/dask/dataframe/core.py b/dask/dataframe/core.py --- a/dask/dataframe/core.py +++ b/dask/dataframe/core.py @@ -5073,21 +5073,23 @@ def set_index( npartitions: int | Literal["auto"] | None = None, divisions: Sequence | None = None, inplace: bool = False, + sort: bool = True,...
diff --git a/dask/dataframe/tests/test_shuffle.py b/dask/dataframe/tests/test_shuffle.py --- a/dask/dataframe/tests/test_shuffle.py +++ b/dask/dataframe/tests/test_shuffle.py @@ -304,6 +304,34 @@ def test_set_index_3(shuffle_method): assert ddf2.npartitions == ddf.npartitions +@pytest.mark.parametrize("drop", ...
["dask/dataframe/tests/test_shuffle.py::test_set_index_no_sort[True-False]", "dask/dataframe/tests/test_shuffle.py::test_set_index_no_sort[False-True]", "dask/dataframe/tests/test_shuffle.py::test_set_index_no_sort[True-True]", "dask/dataframe/tests/test_shuffle.py::test_set_index_no_sort[False-False]"]
["dask/dataframe/tests/test_shuffle.py::test_shuffle_from_one_partition_to_one_other[tasks]", "dask/dataframe/tests/test_shuffle.py::test_set_index_on_empty[str]", "dask/dataframe/tests/test_shuffle.py::test_dataframe_shuffle_on_arg[disk-None-id-True]", "dask/dataframe/tests/test_shuffle.py::test_sort_values_with_nulls...
null
true
2023-06-12T09:30:30Z
2
23
4
515
0
0.85
1
0.4
1
0.1625
77.5375
2,008
swe_bench_pro::test::564
swe_bench_pro
test
564
instance_protonmail__webclients-fc9d535e9beb3ae30a52a7146398cadfd6e30606
protonmail/webclients
protonmail/webclients
javascript
ebed8ea9f69216d3ce996dd88457046c0a033caf
## Title: Reordering Sent should also reposition All Sent together #### Description: When the Sent folder is moved in the sidebar, its linked counterpart All Sent must also move together. The sequence of folders should remain consistent and the order values must be recalculated so that both folders appear in the cor...
## Requirements - Maintain a linked positioning relationship between MAILBOX_LABEL_IDS.SENT and MAILBOX_LABEL_IDS.ALL_SENT so they are treated as an adjacent group in the sidebar ordering. - Ensure that when MAILBOX_LABEL_IDS.SENT is repositioned relative to MAILBOX_LABEL_IDS.INBOX with the intent of placing it after ...
diff --git a/applications/mail/src/app/PrivateApp.tsx b/applications/mail/src/app/PrivateApp.tsx index 7f8c3a3b9f0..896f65e49ab 100644 --- a/applications/mail/src/app/PrivateApp.tsx +++ b/applications/mail/src/app/PrivateApp.tsx @@ -50,7 +50,7 @@ const PrivateApp = ({ onLogout, locales }: Props) => { }} ...
diff --git a/applications/mail/src/app/hooks/useMoveSystemFolders.helpers.test.ts b/applications/mail/src/app/hooks/useMoveSystemFolders.helpers.test.ts index 3daf9d626eb..d85ca470765 100644 --- a/applications/mail/src/app/hooks/useMoveSystemFolders.helpers.test.ts +++ b/applications/mail/src/app/hooks/useMoveSystemFol...
["src/app/hooks/useMoveSystemFolders.helpers.test.ts | should move linked label such as sent, all sent"]
["src/app/hooks/useMoveSystemFolders.helpers.test.ts | Should not move when dragged", "src/app/hooks/useMoveSystemFolders.helpers.test.ts | Should not move when dropped", "src/app/hooks/useMoveSystemFolders.helpers.test.ts | Should allow drop", "src/app/hooks/useMoveSystemFolders.helpers.test.ts | Should move withing m...
ghcr.io/scaleapi/swe-bench_pro-v2:instance_protonmail__webclients-fc9d535e9beb3ae30a52a7146398cadfd6e30606
true
null
7
102
1
1,012
0
0.95
1
0.7
0.6
0.508667
77.526
2,009
swe_bench_pro::test::577
swe_bench_pro
test
577
instance_qutebrowser__qutebrowser-305e7c96d5e2fdb3b248b27dfb21042fb2b7e0b8-v2ef375ac784985212b1805e1d0431dc8f1b3c171
qutebrowser/qutebrowser
qutebrowser/qutebrowser
python
1aec789f4d010dfebae3cceac2c71ebeafe81e08
# Title `:tab-focus` offers no completion for the tabs of the current window ## Description The `:tab-focus` command switches to a tab by index or by one of the keywords `last`, `stack-next` and `stack-prev`. The command has no completion, so in a window with many tabs there is no list of the valid targets and no indi...
## Requirements - `miscmodels.tab_focus(info)` must return a completion model for selecting valid `:tab-focus` targets, including open tabs from the current window and the special keywords `last`, `stack-next`, and `stack-prev`. - Tab completion entries returned by `miscmodels.tab_focus(info)` must include only tabs f...
diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc index 4dff740ffbd..7dd8bb7cfa5 100644 --- a/doc/changelog.asciidoc +++ b/doc/changelog.asciidoc @@ -46,6 +46,7 @@ Changed - Tests are now included in release tarballs. Note that only running them with the exact dependencies listed in `misc/requirements...
diff --git a/tests/unit/completion/test_models.py b/tests/unit/completion/test_models.py index f2f3bb47bb7..7b46241b209 100644 --- a/tests/unit/completion/test_models.py +++ b/tests/unit/completion/test_models.py @@ -832,6 +832,41 @@ def test_other_buffer_completion_id0(qtmodeltester, fake_web_tab, }) +def tes...
["tests/unit/completion/test_models.py::test_tab_focus_completion"]
["tests/unit/completion/test_models.py::test_command_completion", "tests/unit/completion/test_models.py::test_help_completion", "tests/unit/completion/test_models.py::test_open_categories", "tests/unit/completion/test_models.py::test_open_categories_remove_all", "tests/unit/completion/test_models.py::test_open_categori...
ghcr.io/scaleapi/swe-bench_pro-v2:instance_qutebrowser__qutebrowser-305e7c96d5e2fdb3b248b27dfb21042fb2b7e0b8-v2ef375ac784985212b1805e1d0431dc8f1b3c171
true
null
3
28
1
582
0
0.95
1
0.4
1
0.190333
77.521
2,010
swe_bench_pro::test::390
swe_bench_pro
test
390
instance_internetarchive__openlibrary-2fe532a33635aab7a9bfea5d977f6a72b280a30c-v0f5aece3601a5b4419f7ccec1dbda2071be28ee4
internetarchive/openlibrary
internetarchive/openlibrary
python
4315bbe27c111e85712899901fde689d0eac18bd
## Title: Amazon imports do not retain the language of a book ### Description Importing a book from Amazon by ISBN produces a catalog record with no language recorded, even when the Amazon listing clearly displays one. The serialization step of the Amazon adapter reads the title, contributors, page count and binding o...
## Requirements - When a product is serialized by the `AmazonAPI` adapter, the language names that product reports must be retained under a `languages` key, exactly as reported and with no repeated values. - When a reported language entry carries the type `Original Language`, that entry must be left out of the `languag...
diff --git a/openlibrary/core/vendors.py b/openlibrary/core/vendors.py index da5748e1473..559f2af4951 100644 --- a/openlibrary/core/vendors.py +++ b/openlibrary/core/vendors.py @@ -21,7 +21,7 @@ from openlibrary.catalog.add_book import load from openlibrary.core import cache from openlibrary.core import helpers as h...
diff --git a/openlibrary/tests/core/sample_amazon_record.py b/openlibrary/tests/core/sample_amazon_record.py new file mode 100644 index 000000000..1a20aaedf --- /dev/null +++ b/openlibrary/tests/core/sample_amazon_record.py @@ -0,0 +1,157 @@ +import json + +import web + +from openlibrary.core.vendors import AmazonAPI +...
["openlibrary/tests/core/test_vendors.py::test_clean_amazon_metadata_for_load_ISBN", "openlibrary/tests/core/test_vendors.py::test_clean_amazon_metadata_for_load_translator", "openlibrary/tests/core/test_vendors.py::test_clean_amazon_metadata_for_load_subtitle", "openlibrary/tests/core/test_vendors.py::test_serialize_s...
["openlibrary/tests/core/test_vendors.py::test_clean_amazon_metadata_for_load_non_ISBN", "openlibrary/tests/core/test_vendors.py::test_betterworldbooks_fmt", "openlibrary/tests/core/test_vendors.py::test_get_amazon_metadata", "openlibrary/tests/core/test_vendors.py::test_clean_amazon_metadata_does_not_load_DVDS_product...
ghcr.io/scaleapi/swe-bench_pro-v2:instance_internetarchive__openlibrary-2fe532a33635aab7a9bfea5d977f6a72b280a30c-v0f5aece3601a5b4419f7ccec1dbda2071be28ee4
true
null
2
28
4
566
0
0.95
1
0.4
1
0.187667
77.513
2,011
swe_bench_pro::test::29
swe_bench_pro
test
29
instance_NodeBB__NodeBB-bad15643013ca15affe408b75eba9e47cc604bb2-vd59a5728dfc977f44533186ace531248c2917516
NodeBB/NodeBB
nodebb/nodebb
javascript
be86d8efc7fb019e707754b8b64dd6cf3517e8c7
# Title Support array input in meta.userOrGroupExists ## Description `meta.userOrGroupExists` resolves one user or group slug per call. Callers that need to know about several slugs at once have no way to ask for them together: an array is not recognized as a collection of slugs, so the call either fails or reports an...
## Requirements - When `meta.userOrGroupExists` receives a single slug, it must keep resolving to a bare boolean that reports whether that slug identifies an existing user or an existing group. - When `meta.userOrGroupExists` receives an array of slugs, it must resolve to an array of booleans that has one entry per su...
diff --git a/src/meta/index.js b/src/meta/index.js index 487c53df6053..54836ef174f2 100644 --- a/src/meta/index.js +++ b/src/meta/index.js @@ -24,20 +24,26 @@ Meta.templates = require('./templates'); Meta.blacklist = require('./blacklist'); Meta.languages = require('./languages'); +const user = require('../user'); ...
diff --git a/test/user.js b/test/user.js index 668ec4ec8b45..6ac7de44a991 100644 --- a/test/user.js +++ b/test/user.js @@ -1492,28 +1492,18 @@ describe('User', () => { }); }); - it('should return true if user/group exists', (done) => { - meta.userOrGroupExists('registered-users', (err, exists) => { - ass...
["test/user.js | User socket methods should return true/false if user/group exists or not"]
["test/user.js | User should get admins and mods", "test/user.js | User should allow user to login even if password is weak", "test/user.js | User .create(), when created should be created properly", "test/user.js | User .create(), when created should have a valid email, if using an email", "test/user.js | User .create...
ghcr.io/scaleapi/swe-bench_pro-v2:instance_NodeBB__NodeBB-bad15643013ca15affe408b75eba9e47cc604bb2-vd59a5728dfc977f44533186ace531248c2917516
true
null
2
28
1
551
0
0.95
1
0.4
1
0.185167
77.5055
2,012
swe_bench_pro::test::27
swe_bench_pro
test
27
instance_NodeBB__NodeBB-b1f9ad5534bb3a44dab5364f659876a4b7fe34c1-vnan
NodeBB/NodeBB
nodebb/nodebb
javascript
6ecc791db9bfbb2a22e113e4630071da87ce3c1e
# Improve Database Sorted Set Count Performance ## Description The current implementation of the function for summing sorted set card counts (`sortedSetsCardSum`) did not support efficient counting with score ranges (`min` and `max`). This could lead to inaccurate counts or inefficient queries when querying the data...
## Requirements - The `sortedSetsCardSum` function in each database adapter (`src/database/mongo/sorted.js`, `src/database/postgres/sorted.js`, `src/database/redis/sorted.js`) must accept two optional parameters, `min` and `max`, which specify the inclusive lower and upper bounds for the scores of the elements to be co...
diff --git a/public/openapi/read/topic/topic_id.yaml b/public/openapi/read/topic/topic_id.yaml index 20ef21a03151..366ff32675da 100644 --- a/public/openapi/read/topic/topic_id.yaml +++ b/public/openapi/read/topic/topic_id.yaml @@ -382,6 +382,8 @@ get: type: number downvote:disabl...
diff --git a/test/database/sorted.js b/test/database/sorted.js index 36d4534a91d9..33d3e4c4b5f0 100644 --- a/test/database/sorted.js +++ b/test/database/sorted.js @@ -1,29 +1,17 @@ 'use strict'; - -const async = require('async'); const assert = require('assert'); const db = require('../mocks/databasemock'); des...
["test/database/sorted.js | Test database | Sorted Set methods | sortedSetsCardSum() | should work with min/max"]
["test/database.js | Test database | should work", "test/database.js | Test database | info | should return info about database", "test/database.js | Test database | info | should not error and return info if client is falsy", "test/database.js | Test database | checkCompatibility | should not throw", "test/database.js...
ghcr.io/scaleapi/swe-bench_pro-v2:instance_NodeBB__NodeBB-b1f9ad5534bb3a44dab5364f659876a4b7fe34c1-vnan
true
null
7
106
1
884
0
0.95
1
0.7
0.6
0.500667
77.502
2,013
swe_bench_pro::test::41
swe_bench_pro
test
41
instance_ansible__ansible-11c1777d56664b1acb56b387a1ad6aeadef1391d-v0f01c69f1e2528b935359cfe578530722bca2c59
ansible/ansible
ansible/ansible
python
e1daaae42af1a4e465edbdad4bb3c6dd7e7110d5
## Title Parse locally reachable IPv4 and IPv6 routes on Linux ## Description `LinuxNetwork` does not provide a helper for retrieving locally reachable addresses and prefixes from the Linux local routing tables. A helper is needed to query the IPv4 and IPv6 local route tables and return their `local` entries separate...
## Requirements - `LinuxNetwork` must provide a `get_locally_reachable_ips(ip_path)` method that returns a dictionary with `ipv4` and `ipv6` keys, each containing a list of locally reachable addresses and prefixes. - The method must call `self.module.run_command` with `[ip_path, '-4', 'route', 'show', 'table', 'local'...
diff --git a/lib/ansible/module_utils/facts/network/linux.py b/lib/ansible/module_utils/facts/network/linux.py index b7ae97656bae5b..16b2f7be944e82 100644 --- a/lib/ansible/module_utils/facts/network/linux.py +++ b/lib/ansible/module_utils/facts/network/linux.py @@ -59,8 +59,46 @@ def populate(self, collected_facts=Non...
diff --git a/test/units/module_utils/facts/network/test_locally_reachable_ips.py b/test/units/module_utils/facts/network/test_locally_reachable_ips.py new file mode 100644 index 00000000000000..7eac790f16f30c --- /dev/null +++ b/test/units/module_utils/facts/network/test_locally_reachable_ips.py @@ -0,0 +1,93 @@ +# Thi...
["test/units/module_utils/facts/network/test_locally_reachable_ips.py::TestLocalRoutesLinux::test"]
[]
ghcr.io/scaleapi/swe-bench_pro-v2:instance_ansible__ansible-11c1777d56664b1acb56b387a1ad6aeadef1391d-v0f01c69f1e2528b935359cfe578530722bca2c59
true
null
1
38
1
340
0
0.95
1
0.4
1
0.183333
77.5
2,014
swe_gym::train::2216
swe_gym
train
2,216
Project-MONAI__MONAI-7749
Project-MONAI/MONAI
project-monai/monai
python
d83fa5660e87d99f9ddcfcfb4695cbdf53a3884c
Include option to set inplace=True for resnet A lot of models within the MONAI framework such as ResNet use inplace operations, such as `ReLU(inplace=True)` or somthing like `x += MPL(x)`, which is not allowed in distributed mode. It would be great to have a an option to set inplace operations to false to allow distrib...
I can take this one.
diff --git a/monai/networks/nets/resnet.py b/monai/networks/nets/resnet.py --- a/monai/networks/nets/resnet.py +++ b/monai/networks/nets/resnet.py @@ -23,7 +23,7 @@ from monai.networks.blocks.encoder import BaseEncoder from monai.networks.layers.factories import Conv, Norm, Pool -from monai.networks.layers.utils im...
diff --git a/tests/test_resnet.py b/tests/test_resnet.py --- a/tests/test_resnet.py +++ b/tests/test_resnet.py @@ -107,6 +107,7 @@ "num_classes": 3, "conv1_t_size": [3], "conv1_t_stride": 1, + "act": ("relu", {"inplace": False}), }, (1, 2, 32), (1, 3), @@ -185,13 +186,29...
["tests/test_resnet.py::TestResNet::test_resnet_shape_18", "tests/test_resnet.py::TestResNet::test_resnet_shape_16", "tests/test_resnet.py::TestResNet::test_resnet_shape_15", "tests/test_resnet.py::TestResNet::test_resnet_shape_20", "tests/test_resnet.py::TestResNet::test_resnet_shape_19", "tests/test_resnet.py::TestRe...
["tests/test_resnet.py::TestResNet::test_resnet_shape_32", "tests/test_resnet.py::TestResNet::test_resnet_shape_29", "tests/test_resnet.py::TestResNet::test_resnet_shape_35", "tests/test_resnet.py::TestResNet::test_resnet_shape_33", "tests/test_resnet.py::TestResNet::test_resnet_shape_38", "tests/test_resnet.py::TestRe...
null
true
2024-05-08T19:05:48Z
1
28
8
333
0
0.85
1
0.4
1
0.148833
77.4965
2,015
swe_gym::train::29
swe_gym
train
29
getmoto__moto-4915
getmoto/moto
getmoto/moto
python
a460adc9405e87b2df6708f02a8586ada6b7c7e2
Invalid instance ID error behaves differently from AWS https://github.com/spulec/moto/blob/ea81377cd0ce669dbb01d2141ef6f7e92c9b757d/moto/ec2/exceptions.py#L238 When I terminate more than one non-existent ID in AWS, I get the error: An error occurred (InvalidInstanceID.NotFound) when calling the TerminateInstances oper...
Thanks for raising this @cheshirex :+1: Hi @cheshirex, what version of Moto are you using? Against the latest version, I am seeing the correct error message: `The instance ID '['instance-1', 'i-34f0548abfb5d2a97', 'instance-2']' does not exist` (Where `i-34f0548abfb5d2a97` is an existing instance ID) (Sorry, I mi...
diff --git a/moto/ec2/exceptions.py b/moto/ec2/exceptions.py --- a/moto/ec2/exceptions.py +++ b/moto/ec2/exceptions.py @@ -233,10 +233,13 @@ def __init__(self, route_table_id, cidr): class InvalidInstanceIdError(EC2ClientError): def __init__(self, instance_id): - super().__init__( - "InvalidIn...
diff --git a/tests/test_ec2/test_instances.py b/tests/test_ec2/test_instances.py --- a/tests/test_ec2/test_instances.py +++ b/tests/test_ec2/test_instances.py @@ -2049,6 +2049,43 @@ def test_instance_termination_protection(): instance["State"]["Name"].should.equal("terminated") +@mock_ec2 +def test_terminate_u...
["tests/test_ec2/test_instances.py::test_terminate_unknown_instances"]
["tests/test_ec2/test_instances.py::test_modify_instance_attribute_security_groups_boto3", "tests/test_ec2/test_instances.py::test_run_instance_with_security_group_id_boto3", "tests/test_ec2/test_instances.py::test_get_instances_filtering_by_state_boto3", "tests/test_ec2/test_instances.py::test_modify_delete_on_termina...
null
true
2022-03-07 21:37:24
2
16
1
572
0
0.85
1
0.4
1
0.148667
77.496
2,016
swe_bench_pro::test::395
swe_bench_pro
test
395
instance_internetarchive__openlibrary-3c48b4bb782189e0858e6c3fc7956046cf3e1cfb-v2d9a6c849c60ed19fd0858ce9e40b7cc8e097e59
internetarchive/openlibrary
internetarchive/openlibrary
python
d38cb5a4162aa2942cdb5037dd679f37687b9d4f
# Title: MARC import misses languages when a record has more than one ## Description When Open Library imports MARC catalog records, the parsed edition does not always include every language from the source record. If a book has text in more than one language, the languages field often keeps only one language and leav...
## Requirements - When field `041` is present in a MARC record, every language code present in its `$a` subfields must appear in the edition's `languages` field. - A single `$a` subfield in field `041` may hold either one 3-character MARC language code or several 3-character codes concatenated with no separator (an ob...
diff --git a/openlibrary/catalog/marc/parse.py b/openlibrary/catalog/marc/parse.py index f68c275c4f6..edfcdd396d7 100644 --- a/openlibrary/catalog/marc/parse.py +++ b/openlibrary/catalog/marc/parse.py @@ -31,7 +31,8 @@ class SeeAlsoAsTitle(MarcException): pass -want = ( +# FIXME: This is SUPER hard to find whe...
diff --git a/openlibrary/catalog/marc/tests/test_parse_multilingual.py b/openlibrary/catalog/marc/tests/test_parse_multilingual.py new file mode 100644 index 000000000..9016221cd --- /dev/null +++ b/openlibrary/catalog/marc/tests/test_parse_multilingual.py @@ -0,0 +1,40 @@ +import os + +from lxml import etree + +from o...
["openlibrary/catalog/marc/tests/test_parse_multilingual.py::TestParseMultilingual::test_binary_equalsign_title_multilingual", "openlibrary/catalog/marc/tests/test_parse_multilingual.py::TestParseMultilingual::test_binary_zweibchersatir_multilingual", "openlibrary/catalog/marc/tests/test_parse_multilingual.py::TestPars...
["openlibrary/catalog/marc/tests/test_parse.py::TestParseMARCXML::test_xml[39002054008678.yale.edu]", "openlibrary/catalog/marc/tests/test_parse.py::TestParseMARCXML::test_xml[flatlandromanceo00abbouoft]", "openlibrary/catalog/marc/tests/test_parse.py::TestParseMARCXML::test_xml[nybc200247]", "openlibrary/catalog/marc/...
ghcr.io/scaleapi/swe-bench_pro-v2:instance_internetarchive__openlibrary-3c48b4bb782189e0858e6c3fc7956046cf3e1cfb-v2d9a6c849c60ed19fd0858ce9e40b7cc8e097e59
true
null
1
27
3
548
0
0.95
1
0.4
1
0.181333
77.494
2,017
swe_gym::train::683
swe_gym
train
683
iterative__dvc-6799
iterative/dvc
iterative/dvc
python
259d59052750537e7c9a0b20adb2aa2ef4f90108
exp show: --show-md for experiment tables We want to be able to display tables of our experiments in markdown documents similar to how we can do it with dvc params and metrics. Our use case is that we are conducting hyperparameter tuning jobs in CML, and would like to easily format a table of the results in PR comment...
Good idea, @mattlbeck! I'm curious if you see benefits beyond ease of use for doing this over inserting the output directly as a code block like: ```` echo '```' >> report.md dvc exp show >> report.md echo '```' >> report.md ```` @dberenbaum Honestly hadn't thought of placing inside of a code block. Presumabl...
diff --git a/dvc/command/experiments.py b/dvc/command/experiments.py --- a/dvc/command/experiments.py +++ b/dvc/command/experiments.py @@ -382,7 +382,12 @@ def baseline_styler(typ): def show_experiments( - all_experiments, pager=True, no_timestamp=False, csv=False, **kwargs + all_experiments, + pager=True...
diff --git a/tests/unit/command/test_compat_flag.py b/tests/unit/command/test_compat_flag.py --- a/tests/unit/command/test_compat_flag.py +++ b/tests/unit/command/test_compat_flag.py @@ -20,6 +20,7 @@ def _id_gen(val) -> str: (["experiments", "diff", "--show-md"], "markdown"), (["experiments", "show",...
["tests/unit/command/test_compat_flag.py::test_backward_compat_flags[experiments-show-markdown]", "tests/unit/command/test_experiments.py::test_show_experiments_md"]
["tests/unit/command/test_experiments.py::test_experiments_remove[False-False-True]", "tests/unit/command/test_experiments.py::test_experiments_gc", "tests/unit/command/test_compat_flag.py::test_backward_compat_flags[metrics-diff-markdown]", "tests/unit/command/test_experiments.py::test_show_experiments_csv", "tests/un...
null
true
2021-10-13T12:25:53Z
1
17
2
543
0
0.85
1
0.4
1
0.147167
77.4915
2,018
swe_gym::train::1092
swe_gym
train
1,092
pydantic__pydantic-9214
pydantic/pydantic
pydantic/pydantic
python
7af856a1098406aea84bcadfd0f3de6b7901526c
RootModel.model_json_schema() ignores Field description ### Initial Checks - [X] I confirm that I'm using Pydantic V2 ### Description I have implemented a `LiteralModal` to get a JSON schema for a literal type. But when generating the schema, it is ignoring the description that was passed to the field. A workaround...
If you don't want to repeat the doc string, you could probably work around this issue by simply doing: ```python class LiteralModel(pydantic.RootModel): root: int = pydantic.Field(description="abc") LiteralModel.__doc__ = LiteralModel.model_fields["root"].description ``` You may have to do an additional `...
diff --git a/pydantic/_internal/_generate_schema.py b/pydantic/_internal/_generate_schema.py --- a/pydantic/_internal/_generate_schema.py +++ b/pydantic/_internal/_generate_schema.py @@ -215,6 +215,7 @@ def modify_model_json_schema( JsonSchemaValue: The updated JSON schema. """ from ..main import Bas...
diff --git a/tests/test_root_model.py b/tests/test_root_model.py --- a/tests/test_root_model.py +++ b/tests/test_root_model.py @@ -657,3 +657,25 @@ def test_model_construction_with_invalid_generic_specification() -> None: class GenericRootModel(RootModel, Generic[T_]): root: Union[T_, int] + + +...
["tests/test_root_model.py::test_model_with_field_description"]
["tests/test_root_model.py::test_json_schema_extra_on_model", "tests/test_root_model.py::test_root_model_specialized[list[int]]", "tests/test_root_model.py::test_root_model_base_model_equality", "tests/test_root_model.py::test_construct", "tests/test_root_model.py::test_assignment", "tests/test_root_model.py::test_mixe...
null
true
2024-04-11T16:34:39Z
1
3
1
1,764
0
0.85
1
0.55
0.8
0.304
77.487
2,019
swe_bench_verified::test::409
swe_bench_verified
test
409
sphinx-doc__sphinx-8621
sphinx-doc/sphinx
sphinx-doc/sphinx
python
21698c14461d27933864d73e6fba568a154e83b3
kbd role produces incorrect HTML when compound-key separators (-, + or ^) are used as keystrokes **Describe the bug** The `:kbd:` role produces incorrect HTML when: 1) defining standalone keystrokes that use any of the compound-key separators (`-`, `+` and `^`) 2) defining compound keystrokes where one or more keystr...
diff --git a/sphinx/builders/html/transforms.py b/sphinx/builders/html/transforms.py --- a/sphinx/builders/html/transforms.py +++ b/sphinx/builders/html/transforms.py @@ -37,7 +37,7 @@ class KeyboardTransform(SphinxPostTransform): """ default_priority = 400 builders = ('html',) - pattern = re.compile(...
diff --git a/tests/test_markup.py b/tests/test_markup.py --- a/tests/test_markup.py +++ b/tests/test_markup.py @@ -251,6 +251,17 @@ def get(name): '</kbd></p>'), '\\sphinxkeyboard{\\sphinxupquote{Control+X}}', ), + ( + # kbd role + 'verify', + ':kbd:`Alt+^`', + ('<...
["tests/test_markup.py::test_inline[verify-:kbd:`Alt+^`-<p><kbd", "tests/test_markup.py::test_inline[verify-:kbd:`-`-<p><kbd"]
["tests/test_markup.py::test_inline[verify-:rfc:`2324`-<p><span", "tests/test_markup.py::test_inline[verify-:rfc:`2324#id1`-<p><span", "tests/test_markup.py::test_inline[verify_re-``code", "tests/test_markup.py::test_inline[verify-:menuselection:`a", "tests/test_markup.py::test_inline[verify-:menuselection:`&Foo", "tes...
null
true
2020-12-30T12:13:09Z
1
2
2
1,979
0
1
1
0.85
0.4
0.3365
77.4845
2,020
swe_gym::train::686
swe_gym
train
686
iterative__dvc-4785
iterative/dvc
iterative/dvc
python
7da3de451f1580d0c48d7f0a82b1f96ea0e91157
http: do not ignore HTTP statuses when working with HTTP(S) remotes On master. Exists check now simply says yes if request is successful. So If we get 403 Forbidden or 401 Auth Required these are ignored, which looks the same as absent files to dvc. The simplest fix would be using `res.raise_for_status()` in `.exists(...
BTW, we already do something like that in `utils.http.iter_url()`. Smth like: ```python def exists(self, path_info): res = self.request("HEAD", path_info.url) if res.status_code == 404: return False res.raise_for_status() return True ``` Does this still need to be...
diff --git a/dvc/tree/http.py b/dvc/tree/http.py --- a/dvc/tree/http.py +++ b/dvc/tree/http.py @@ -141,7 +141,12 @@ def _head(self, url): return response def exists(self, path_info, use_dvcignore=True): - return bool(self._head(path_info.url)) + res = self._head(path_info.url) + if ...
diff --git a/tests/unit/remote/test_http.py b/tests/unit/remote/test_http.py --- a/tests/unit/remote/test_http.py +++ b/tests/unit/remote/test_http.py @@ -125,3 +125,31 @@ def test_http_method(dvc): assert tree._auth_method() == auth assert tree.method == "PUT" assert isinstance(tree._auth_method(), HTTP...
["tests/unit/remote/test_http.py::test_exists"]
["tests/unit/remote/test_http.py::test_download_fails_on_error_code", "tests/unit/remote/test_http.py::test_ssl_verify_disable", "tests/unit/remote/test_http.py::test_ssl_verify_is_enabled_by_default", "tests/unit/remote/test_http.py::test_basic_auth_method", "tests/unit/remote/test_http.py::test_http_method", "tests/u...
null
true
2020-10-25T13:36:02Z
1
7
1
719
0
0.85
1
0.4
1
0.143167
77.4795
2,021
swe_bench_pro::test::610
swe_bench_pro
test
610
instance_qutebrowser__qutebrowser-9b71c1ea67a9e7eb70dd83214d881c2031db6541-v363c8a7e5ccdf6968fc7ab84a2053ac78036691d
qutebrowser/qutebrowser
qutebrowser/qutebrowser
python
b84ef9b299ec1639ddf79ab900b670a96d71d9f2
# Title: Blank page and Network service crashed with some locales on `QtWebEngine 5.15.3` ## Description With `QtWebEngine 5.15.3` and some locales, `qutebrowser` fails to display content correctly. In affected scenarios, `qutebrowser` logs `Network service crashed, restarting service.` and only shows a blank page. #...
## Requirements - `_get_locale_pak_path` must be defined in `qutebrowser/config/qtargs.py` and accept two parameters: `locales_path` of type `pathlib.Path` representing the directory where locale files are stored, and `locale_name` of type `str` representing the locale identifier. - `_get_locale_pak_path` must return ...
diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc index d57698df7c1..8bbaef0b192 100644 --- a/doc/changelog.asciidoc +++ b/doc/changelog.asciidoc @@ -97,6 +97,12 @@ Fixed accidentally treated that as "@run-at document-idle". However, other GreaseMonkey implementations default to "@run-at document-end" ...
diff --git a/tests/unit/config/test_qtargs_locale_workaround.py b/tests/unit/config/test_qtargs_locale_workaround.py new file mode 100644 index 00000000000..97711819832 --- /dev/null +++ b/tests/unit/config/test_qtargs_locale_workaround.py @@ -0,0 +1,446 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: +# Copyrig...
["tests/unit/config/test_qtargs_locale_workaround.py::test_lang_workaround_all_locales[POSIX.UTF-8-en-US]", "tests/unit/config/test_qtargs_locale_workaround.py::test_lang_workaround_all_locales[aa_DJ.UTF-8-en-US]", "tests/unit/config/test_qtargs_locale_workaround.py::test_lang_workaround_all_locales[aa_ER.UTF-8-en-US]"...
["tests/unit/config/test_qtargs_locale_workaround.py::test_lang_workaround_all_locales[pt_XX.UTF-8-pt-PT]"]
ghcr.io/scaleapi/swe-bench_pro-v2:instance_qutebrowser__qutebrowser-9b71c1ea67a9e7eb70dd83214d881c2031db6541-v363c8a7e5ccdf6968fc7ab84a2053ac78036691d
true
null
4
102
364
917
0
0.95
0.75
0.7
0.85
0.492833
77.4785
2,022
swe_gym::train::645
swe_gym
train
645
conan-io__conan-13623
conan-io/conan
conan-io/conan
python
20705e711aafafbbd918c2a8a87275fe09054cd0
[feature] Add bindirs to pkgconfig generator ### What is your suggestion? pkg-config generator is useful to use conan dependencies in meson build system, especially on Windows. However, meson has no way of knowing where the DLL files are located, since the linkage is done on the import libraries. Providing a `bindir`...
Maybe @RubenRBS can help a bit with this one. The important things to investigate are: - Is there any possible side effect of adding the ``bindir``? - What if it adds executable paths to the host context that will affect the build context, like the typical ``protobuf`` example with protobuf both in host and build ...
diff --git a/conan/tools/gnu/pkgconfigdeps.py b/conan/tools/gnu/pkgconfigdeps.py --- a/conan/tools/gnu/pkgconfigdeps.py +++ b/conan/tools/gnu/pkgconfigdeps.py @@ -97,7 +97,7 @@ class _PCContentGenerator: template = textwrap.dedent("""\ {%- macro get_libs(libdirs, cpp_info, gnudeps_flags) -%} {%- ...
diff --git a/conans/test/functional/toolchains/gnu/test_pkgconfigdeps.py b/conans/test/functional/toolchains/gnu/test_pkgconfigdeps.py --- a/conans/test/functional/toolchains/gnu/test_pkgconfigdeps.py +++ b/conans/test/functional/toolchains/gnu/test_pkgconfigdeps.py @@ -1,4 +1,5 @@ import platform +import sys import ...
["conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_multiple_include", "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_pkg_config_dirs", "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_with_editable_layout", "conans/test/integration/toolchains/gnu/test_pkgconfigd...
["conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_pkg_with_public_deps_and_component_requires_2", "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_tool_requires", "conans/test/integration/toolchains/gnu/test_pkgconfigdeps.py::test_pkgconfigdeps_with_test_requires", "conans/test/int...
null
true
2023-04-05T10:25:57Z
1
15
6
553
0
0.85
1
0.4
1
0.142167
77.4765
2,023
swe_gym::train::2040
swe_gym
train
2,040
Project-MONAI__MONAI-2305
Project-MONAI/MONAI
project-monai/monai
python
be87f318286e2d5d32189c2c4ee21e127f907579
additional events in the deepgrow interaction engine **Is your feature request related to a problem? Please describe.** This is a feature request for adding extra engine events within the click simulation loops during the deepgrow model training: https://github.com/Project-MONAI/MONAI/blob/abad8416153e67aac04417bbd9398...
Please refer to the existing `SupervisedTrainer`: https://github.com/Project-MONAI/MONAI/blob/master/monai/engines/trainer.py#L164 Thanks. Thanks @wyli . @Nic-Ma in the current SupervisedTrainer implementation can I access the simulated positive and negative points for a single image? Hi @diazandr3s , I mean ...
diff --git a/monai/apps/deepgrow/interaction.py b/monai/apps/deepgrow/interaction.py --- a/monai/apps/deepgrow/interaction.py +++ b/monai/apps/deepgrow/interaction.py @@ -13,14 +13,14 @@ import torch from monai.engines import SupervisedEvaluator, SupervisedTrainer -from monai.engines.workflow import Events +from mo...
diff --git a/tests/test_deepgrow_interaction.py b/tests/test_deepgrow_interaction.py --- a/tests/test_deepgrow_interaction.py +++ b/tests/test_deepgrow_interaction.py @@ -16,9 +16,17 @@ from monai.apps.deepgrow.interaction import Interaction from monai.data import Dataset from monai.engines import SupervisedTrainer ...
["tests/test_deepgrow_interaction.py::TestInteractions::test_val_interaction", "tests/test_deepgrow_interaction.py::TestInteractions::test_train_interaction"]
[]
null
true
2021-06-03T22:03:17Z
2
17
2
508
0
0.85
1
0.4
1
0.141333
77.474
2,024
swe_gym::train::247
swe_gym
train
247
getmoto__moto-6439
getmoto/moto
getmoto/moto
python
7e2cd923200fc0942158772dd212b9746c7f8fd7
S3: `put_bucket_lifecyle` with multiple Transitions Hi, Moto implements the `put_bucket_lifecycle` API that should expect an array of [AWS S3 Rule](https://docs.aws.amazon.com/AmazonS3/latest/API/API_Rule.html) objects as input. From what I understand from looking at the code, moto implementation instead of parsing a `...
Hi @ccatterina! We do already support `put_bucket_lifecycle_configuration`, as all our tests use that method: https://github.com/getmoto/moto/blob/master/tests/test_s3/test_s3_lifecycle.py I'm assuming that `boto3` automatically translates `put_bucket_lifecycle`, so that the incoming request for both methods look th...
diff --git a/moto/s3/models.py b/moto/s3/models.py --- a/moto/s3/models.py +++ b/moto/s3/models.py @@ -637,6 +637,47 @@ def to_config_dict(self) -> List[Dict[str, Any]]: return data +class LifecycleTransition(BaseModel): + def __init__( + self, + date: Optional[str] = None, + days: ...
diff --git a/tests/test_s3/test_s3_config.py b/tests/test_s3/test_s3_config.py --- a/tests/test_s3/test_s3_config.py +++ b/tests/test_s3/test_s3_config.py @@ -12,7 +12,6 @@ @mock_s3 def test_s3_public_access_block_to_config_dict(): - # With 1 bucket in us-west-2: s3_config_query_backend.create_bucket("buc...
["tests/test_s3/test_s3_lifecycle.py::test_lifecycle_with_multiple_transitions", "tests/test_s3/test_s3_config.py::test_s3_lifecycle_config_dict", "tests/test_s3/test_s3_lifecycle.py::test_lifecycle_with_multiple_nvt"]
["tests/test_s3/test_s3_config.py::test_s3_acl_to_config_dict", "tests/test_s3/test_s3_config.py::test_s3_config_dict", "tests/test_s3/test_s3_lifecycle.py::test_lifecycle_with_aimu", "tests/test_s3/test_s3_lifecycle.py::test_lifecycle_with_eodm", "tests/test_s3/test_s3_lifecycle.py::test_lifecycle_with_nve", "tests/te...
null
true
2023-06-24 08:56:14
2
168
3
1,170
0
0.85
1
0.55
0.75
0.695
77.4725
2,025
swe_gym::train::964
swe_gym
train
964
dask__dask-10972
dask/dask
dask/dask
python
9c20facdfb5f20e28f0e9259147283f8a7982728
test_encoding_gh601[utf-16] doesn't always fail **What happened**: `test_encoding_gh601[utf-16]` is marked as a strict xfail. However, when building dask, it will sometimes pass. This seems to be correlated with running on s390x, a big-endian machine. Is the problem then just that something is missing a byteswap? **...
It looks like @TomAugspurger started looking into what was going on in #5787, so that is probably to path forward. Particularly this bit: > I think somewhere in the blocksize splitting, we've split in the middle of a two byte character sequence. Indeed, I think the fact that we have an odd number of bytes. Are yo...
diff --git a/dask/dataframe/io/csv.py b/dask/dataframe/io/csv.py --- a/dask/dataframe/io/csv.py +++ b/dask/dataframe/io/csv.py @@ -484,6 +484,15 @@ def read_pandas( kwargs["lineterminator"] = lineterminator else: lineterminator = "\n" + if "encoding" in kwargs: + b_lineterminator = line...
diff --git a/dask/dataframe/io/tests/test_csv.py b/dask/dataframe/io/tests/test_csv.py --- a/dask/dataframe/io/tests/test_csv.py +++ b/dask/dataframe/io/tests/test_csv.py @@ -1155,17 +1155,8 @@ def test_read_csv_with_datetime_index_partitions_n(): assert_eq(df, ddf) -xfail_pandas_100 = pytest.mark.xfail(re...
["dask/dataframe/io/tests/test_csv.py::test_encoding_gh601[utf-16-le]", "dask/dataframe/io/tests/test_csv.py::test_encoding_gh601[utf-16]"]
["dask/dataframe/io/tests/test_csv.py::test_to_csv_warns_using_scheduler_argument", "dask/dataframe/io/tests/test_csv.py::test_read_csv_include_path_column[read_table-files1]", "dask/dataframe/io/tests/test_csv.py::test_pandas_read_text_with_header[read_table-files1]", "dask/dataframe/io/tests/test_csv.py::test_none_us...
null
true
2024-03-01T10:57:38Z
1
10
2
641
0
0.85
1
0.4
1
0.140167
77.4705
2,026
swe_bench_promax::test::132
swe_bench_promax
test
132
astral-sh__ruff-20646
astral-sh/ruff
astral-sh/ruff
rust
130a794c2b894d8ffc96e49c2d48bdddd11c99a6
When implementing protocol members via unannotated assignments, the type checker occasionally fails to provide actionable diagnostic suggestions for overly specific inferred types. Specifically, if a protocol member's implementation yields a union of literal types—such as a method returning multiple integer literals (`...
diff --git a/crates/ty_python_semantic/src/types.rs b/crates/ty_python_semantic/src/types.rs --- a/crates/ty_python_semantic/src/types.rs +++ b/crates/ty_python_semantic/src/types.rs @@ -1166,21 +1166,26 @@ impl<'db> Type<'db> { } } - /// If this type is a literal, promote it to a type that this lite...
diff --git a/crates/ty_python_semantic/resources/mdtest/protocols.md b/crates/ty_python_semantic/resources/mdtest/protocols.md --- a/crates/ty_python_semantic/resources/mdtest/protocols.md +++ b/crates/ty_python_semantic/resources/mdtest/protocols.md @@ -893,8 +893,10 @@ class LotsOfBindings(Protocol): match objec...
null
null
key4127/refactor-dockerhub:astral-sh__ruff-20646
true
1759234956
3
46
null
2,004
0
0.9
1
0.4
1
0.487333
77.462
2,027
swe_bench_pro::test::40
swe_bench_pro
test
40
instance_ansible__ansible-106909db8b730480615f4a33de0eb5b710944e78-v0f01c69f1e2528b935359cfe578530722bca2c59
ansible/ansible
ansible/ansible
python
3fffddc18305f4d910774b57bc90e14456e7a15b
## Title: No option to control multipart encoding type in URI module ### Description When using the URI module with form-multipart, the multipart body payload is always encoded as base64 without any option to change this encoding. Some platforms don't correctly handle base64-encoded multipart data. When uploading to O...
## Requirements - The `prepare_multipart` function must support a `multipart_encoding` key in each file's mapping value that specifies the encoding type for that file. - When a file's mapping value does not include `multipart_encoding`, `prepare_multipart` must encode that file using `'base64'`. - The implementation ...
diff --git a/changelogs/fragments/feature-uri-add-option-multipart-encoding.yml b/changelogs/fragments/feature-uri-add-option-multipart-encoding.yml new file mode 100644 index 00000000000000..be53360b950e0d --- /dev/null +++ b/changelogs/fragments/feature-uri-add-option-multipart-encoding.yml @@ -0,0 +1,2 @@ +minor_cha...
diff --git a/test/integration/targets/uri/tasks/main.yml b/test/integration/targets/uri/tasks/main.yml index b156f82cb9..232684936b 100644 --- a/test/integration/targets/uri/tasks/main.yml +++ b/test/integration/targets/uri/tasks/main.yml @@ -435,6 +435,9 @@ content: text based file content filename: ...
["test/units/module_utils/urls/test_prepare_multipart.py::test_unknown_wrong_multipart_encoding", "test/units/module_utils/urls/test_prepare_multipart.py::test_prepare_multipart_7or8bit_encoding", "test/units/module_utils/urls/test_prepare_multipart.py::test_prepare_multipart_default_base64_encoding", "test/units/modul...
["test/units/module_utils/urls/test_prepare_multipart.py::test_prepare_multipart", "test/units/module_utils/urls/test_prepare_multipart.py::test_wrong_type", "test/units/module_utils/urls/test_prepare_multipart.py::test_empty", "test/units/module_utils/urls/test_prepare_multipart.py::test_unknown_mime", "test/units/mod...
ghcr.io/scaleapi/swe-bench_pro-v2:instance_ansible__ansible-106909db8b730480615f4a33de0eb5b710944e78-v0f01c69f1e2528b935359cfe578530722bca2c59
true
null
3
26
4
470
0
0.95
1
0.4
1
0.165
77.445
2,028
swe_gym::train::367
swe_gym
train
367
python__mypy-9454
python/mypy
python/mypy
python
2736edbbcc6273557d3e4acd5c7797dec1f7a59a
Support __path__ in packages The name `__path__` is defined in packages but mypy doesn't recognize it. It seems that every `__init__.py[i]` file should have an implicit `__path__` attribute with type `List[str]`. (I encountered some code that uses `__path__` -- I didn't know about it until today.) See also: https://do...
As a workaround for others (given to me by the experts) you can ignore this issue until it's fixed as such: ``` __path__.append(...) # type: ignore # mypy issue #1422 ``` Shouldn't be too hard to fix? If it helps a minimal reproducible example can be found below (I wrote one before discovering this issue), A pa...
diff --git a/mypy/nodes.py b/mypy/nodes.py --- a/mypy/nodes.py +++ b/mypy/nodes.py @@ -99,10 +99,11 @@ def get_column(self) -> int: implicit_module_attrs: Final = { - "__name__": "__builtins__.str", - "__doc__": None, # depends on Python version, see semanal.py - "__file__": "__builtins__.str", - "__p...
diff --git a/test-data/unit/check-incomplete-fixture.test b/test-data/unit/check-incomplete-fixture.test --- a/test-data/unit/check-incomplete-fixture.test +++ b/test-data/unit/check-incomplete-fixture.test @@ -12,14 +12,6 @@ import m m.x # E: "object" has no attribute "x" [file m.py] -[case testListMissingFromStub...
["mypy/test/testcheck.py::TypeCheckSuite::testPackagePath"]
["mypy/test/testcheck.py::TypeCheckSuite::testDictMissingFromStubs", "mypy/test/testcheck.py::TypeCheckSuite::testReExportAllInStub"]
null
true
2020-09-18T05:33:58Z
2
20
1
390
0
0.85
1
0.4
1
0.131667
77.445
2,029
swe_gym::train::833
swe_gym
train
833
iterative__dvc-3490
iterative/dvc
iterative/dvc
python
205a6058879485f077524c5d808cb01d9fa8a3c4
Optimize stage collection for large repos I posted this issue #2666 yesterday which was closed but the patch did not solve my underlying issue. The DAG is constructed using the stages from the `repo.collect_stages()` method. This method is what is very slow for me with a large repo. So I would like to ask again if you ...
@danfischetti Could you please post a cProfile log from your specific use case so we can see more clearly what is slowing you down? :slightly_smiling_face: @danfischetti Also, did the change from yesterday make any difference for you? I just updated to 0.65.0 and I don't see any difference. ``` In [7]: cProfile.ru...
diff --git a/dvc/repo/__init__.py b/dvc/repo/__init__.py --- a/dvc/repo/__init__.py +++ b/dvc/repo/__init__.py @@ -174,7 +174,20 @@ def _ignore(self): def check_modified_graph(self, new_stages): """Generate graph including the new stage to check for errors""" - self._collect_graph(self.stages + n...
diff --git a/tests/unit/repo/test_repo.py b/tests/unit/repo/test_repo.py --- a/tests/unit/repo/test_repo.py +++ b/tests/unit/repo/test_repo.py @@ -82,3 +82,30 @@ def test_collect_optimization(tmp_dir, dvc, mocker): # Should read stage directly instead of collecting the whole graph dvc.collect(stage.path) ...
["tests/unit/repo/test_repo.py::test_skip_graph_checks"]
["tests/unit/repo/test_repo.py::test_is_dvc_internal", "tests/unit/repo/test_repo.py::test_locked"]
null
true
2020-03-17T06:41:17Z
1
15
1
464
0
0.85
1
0.4
1
0.127333
77.432
2,030
swe_gym::train::2065
swe_gym
train
2,065
Project-MONAI__MONAI-6775
Project-MONAI/MONAI
project-monai/monai
python
3b56e7f17640665695ba413a023b67268c2b5bb4
Bug of GeneralizedDiceLoss **Describe the bug** Code: numer = 2.0 * (intersection * w) + self.smooth_nr denom = (denominator * w) + self.smooth_dr f: torch.Tensor = 1.0 - (numer / denom) If self.batch is True, the shape of intersection, denominator and w are [C]. In the code, both the intersection and denominator are ...
thanks for reporting, I think those are class-wise weighting, the shape [C] makes sense, or do I misunderstand the idea here? > thanks for reporting, I think those are class-wise weighting, the shape [C] makes sense, or do I misunderstand the idea here? yes, the shape [c] makes sense. But I think w doesn't work, bac...
diff --git a/monai/losses/dice.py b/monai/losses/dice.py --- a/monai/losses/dice.py +++ b/monai/losses/dice.py @@ -268,6 +268,7 @@ def __init__( smooth_dr: a small constant added to the denominator to avoid nan. batch: whether to sum the intersection and union areas over the batch dimension be...
diff --git a/tests/test_generalized_dice_loss.py b/tests/test_generalized_dice_loss.py --- a/tests/test_generalized_dice_loss.py +++ b/tests/test_generalized_dice_loss.py @@ -48,7 +48,7 @@ "input": torch.tensor([[[-1.0, 0.0, 1.0], [1.0, 0.0, -1.0]], [[0.0, 0.0, 0.0], [0.0, 0.0, 0.0]]]), "targe...
["tests/test_generalized_dice_loss.py::TestGeneralizedDiceLoss::test_shape_04", "tests/test_generalized_dice_loss.py::TestGeneralizedDiceLoss::test_shape_05", "tests/test_generalized_dice_loss.py::TestGeneralizedDiceLoss::test_shape_06", "tests/test_generalized_dice_loss.py::TestGeneralizedDiceLoss::test_shape_11", "te...
["tests/test_generalized_dice_loss.py::TestGeneralizedDiceLoss::test_batch", "tests/test_generalized_dice_loss.py::TestGeneralizedDiceLoss::test_differentiability", "tests/test_generalized_dice_loss.py::TestGeneralizedDiceLoss::test_input_warnings", "tests/test_generalized_dice_loss.py::TestGeneralizedDiceLoss::test_sh...
null
true
2023-07-25T22:05:51Z
1
6
6
637
0
0.85
1
0.4
1
0.126167
77.4285
2,031
swe_gym::train::372
swe_gym
train
372
python__mypy-14739
python/mypy
python/mypy
python
ac8a5a76d4944890b14da427b75d93c329c68003
__spec__ incorrectly flagged as not existing in the global/module namespace If you have code in a module that wants to access a module's `__spec__` attribute through the global namespace, mypy claims that `error: Name '__spec__' is not defined`. E.g. `@unittest.skipIf(__spec__ is None, '__spec__ is None')`. This same i...
It's probably just missing __spec__ in the typeshed stub for ModuleType in types.pyi. I think this is similar to https://github.com/python/mypy/issues/1422, should be not hard to fix, but this requires an addition to ``implicit_module_attrs`` in ``nodes.py`` depending on Python version (IIUC they are not present in ...
diff --git a/mypy/nodes.py b/mypy/nodes.py --- a/mypy/nodes.py +++ b/mypy/nodes.py @@ -117,6 +117,7 @@ def set_line( "__file__": "__builtins__.str", "__package__": "__builtins__.str", "__annotations__": None, # dict[str, Any] bounded in add_implicit_module_attrs() + "__spec__": None, # importlib.mac...
diff --git a/test-data/unit/check-basic.test b/test-data/unit/check-basic.test --- a/test-data/unit/check-basic.test +++ b/test-data/unit/check-basic.test @@ -219,6 +219,14 @@ reveal_type(__doc__) # N: Revealed type is "builtins.str" reveal_type(__file__) # N: Revealed type is "builtins.str" reveal_t...
["mypy/test/testpythoneval.py::PythonEvaluationSuite::pythoneval.test::testModuleAttributes"]
["mypy/test/testfinegrained.py::FineGrainedSuite::fine-grained-inspect.test::testInspectModuleDef", "mypy/test/testfinegrainedcache.py::FineGrainedCacheSuite::fine-grained-inspect.test::testInspectModuleDef_cached", "mypy/test/testpythoneval.py::PythonEvaluationSuite::pythoneval.test::testSpecialAttributes"]
null
true
2023-02-20T01:02:21Z
2
19
1
370
0
0.85
1
0.4
1
0.125
77.425
2,032
swe_gym::train::231
swe_gym
train
231
getmoto__moto-5406
getmoto/moto
getmoto/moto
python
87683a786f0d3a0280c92ea01fecce8a3dd4b0fd
DynamoDB table Creates only in us-east-1 When trying to create a dynamodb table in us-east-2, the table is created in us-east-1. With us-east-2 set in the client, the arn is returned as 'arn:aws:dynamodb:us-east-1:123456789012:table/test_table'. import pytest import boto3 from moto import mock_dynamodb import os @py...
Thanks for raising this @jluevan13 - looks like the `us-east-1`-region is hardcoded for some reason. Marking it as a bug. https://github.com/spulec/moto/blob/ecc0da7e8782b59d75de668b95c4b498a5ef8597/moto/dynamodb/models/__init__.py#L569
diff --git a/moto/dynamodb/models/__init__.py b/moto/dynamodb/models/__init__.py --- a/moto/dynamodb/models/__init__.py +++ b/moto/dynamodb/models/__init__.py @@ -412,6 +412,7 @@ def __init__( ): self.name = table_name self.account_id = account_id + self.region_name = region self....
diff --git a/tests/test_dynamodb/test_dynamodb_table_without_range_key.py b/tests/test_dynamodb/test_dynamodb_table_without_range_key.py --- a/tests/test_dynamodb/test_dynamodb_table_without_range_key.py +++ b/tests/test_dynamodb/test_dynamodb_table_without_range_key.py @@ -10,8 +10,8 @@ @mock_dynamodb -def test_c...
["tests/test_dynamodb/test_dynamodb_table_without_range_key.py::test_create_table"]
["tests/test_dynamodb/test_dynamodb_table_without_range_key.py::test_update_item_conditions_pass", "tests/test_dynamodb/test_dynamodb_table_without_range_key.py::test_update_item_conditions_fail_because_expect_not_exists_by_compare_to_null", "tests/test_dynamodb/test_dynamodb_table_without_range_key.py::test_get_item_w...
null
true
2022-08-18 21:22:36
1
3
1
1,639
0
0.85
1
0.55
0.8
0.283167
77.4245
2,033
swe_gym::train::904
swe_gym
train
904
dask__dask-6960
dask/dask
dask/dask
python
76ea3379ee0a5881ee4fa0b98a5743c38112485b
Add default compression="infer" option to read_csv As discussed in [cudf#6850](https://github.com/rapidsai/cudf/issues/6850), `dask.dataframe`'s `read_csv` API does not match that of pandas when it comes to compression. The default setting in pandas is `compression="infer"`, while dask uses `compression=None`. @dask/...
I can think of no good reason for the difference. Note that decompression could happen within fsspec *or* pandas, but both should amount to the same thing.
diff --git a/dask/dataframe/io/csv.py b/dask/dataframe/io/csv.py --- a/dask/dataframe/io/csv.py +++ b/dask/dataframe/io/csv.py @@ -30,6 +30,8 @@ import fsspec.implementations.local from fsspec.compression import compr +from fsspec.core import get_fs_token_paths +from fsspec.utils import infer_compression class...
diff --git a/dask/dataframe/io/tests/test_csv.py b/dask/dataframe/io/tests/test_csv.py --- a/dask/dataframe/io/tests/test_csv.py +++ b/dask/dataframe/io/tests/test_csv.py @@ -28,8 +28,8 @@ from dask.utils import filetexts, filetext, tmpfile, tmpdir from fsspec.compression import compr - -fmt_bs = [(fmt, None) for f...
["dask/dataframe/io/tests/test_csv.py::test_read_csv_compression[zip-None]", "dask/dataframe/io/tests/test_csv.py::test_read_csv_compression[bz2-None]", "dask/dataframe/io/tests/test_csv.py::test_read_csv_compression[bz2-10]", "dask/dataframe/io/tests/test_csv.py::test_read_csv_compression[xz-10]", "dask/dataframe/io/t...
["dask/dataframe/io/tests/test_csv.py::test_to_csv_warns_using_scheduler_argument", "dask/dataframe/io/tests/test_csv.py::test_read_csv_include_path_column[read_table-files1]", "dask/dataframe/io/tests/test_csv.py::test_pandas_read_text_with_header[read_table-files1]", "dask/dataframe/io/tests/test_csv.py::test_none_us...
null
true
2020-12-11T22:06:25Z
1
15
8
424
0
0.85
1
0.4
1
0.120667
77.412
2,034
swe_bench_pro::test::122
swe_bench_pro
test
122
instance_element-hq__element-web-18c03daa865d3c5b10e52b669cd50be34c67b2e5-vnan
element-hq/element-web
element-hq/element-web
javascript
212233cb0b9127c95966492175a730d5b954690f
# Title: URLs with several underscores are truncated by markdown processing ## Description When a message contains a plain URL in which one underscore opens an emphasized span and a later underscore closes it, and further underscores sit between those two, the markdown processing loses part of the URL. The rendered me...
## Requirements - When `Markdown` renders a message to HTML and a plain URL in that message contains an underscore that opens an emphasized span, a later underscore that closes it, and one or more single or doubled underscores between them, the output must contain the complete URL exactly as typed, keeping every charac...
diff --git a/src/Markdown.ts b/src/Markdown.ts index a4cf1681aff..eb36942e95c 100644 --- a/src/Markdown.ts +++ b/src/Markdown.ts @@ -99,6 +99,26 @@ const formattingChangesByNodeType = { 'strong': '__', }; +/** + * Returns the literal of a node an all child nodes. + */ +const innerNodeLiteral = (node: commonmark...
diff --git a/test/Markdown-test.ts b/test/Markdown-test.ts index c1b4b31a298..ca33190d4bc 100644 --- a/test/Markdown-test.ts +++ b/test/Markdown-test.ts @@ -124,10 +124,22 @@ describe("Markdown parser test", () => { const testString = [ 'http://domain.xyz/foo/bar-_stuff-like-this_-in-it.jp...
["test/Markdown-test.ts | fixing HTML links | tests that links with markdown empasis in them are getting properly HTML formatted", "test/Markdown-test.ts | fixing HTML links | tests that links with autolinks are not touched at all and are still properly formatted", "test/Markdown-test.ts | fixing HTML links | expects t...
["test/utils/FixedRollingArray-test.ts | FixedRollingArray | should seed the array with the given value", "test/utils/FixedRollingArray-test.ts | FixedRollingArray | should insert at the correct end", "test/utils/FixedRollingArray-test.ts | FixedRollingArray | should roll over", "test/UserActivity-test.ts | UserActivit...
ghcr.io/scaleapi/swe-bench_pro-v2:instance_element-hq__element-web-18c03daa865d3c5b10e52b669cd50be34c67b2e5-vnan
true
null
1
22
7
480
0
0.95
1
0.4
1
0.153333
77.41
2,035
swe_gym::train::733
swe_gym
train
733
iterative__dvc-3524
iterative/dvc
iterative/dvc
python
1455e9551ec2b6e142a45360ad1270a772cb1ca4
Failure when using S3 remote cache Trying to run the command `dvc run -d s3://mybucket/data.txt -o s3://mybucket/data_copy.txt aws s3 cp s3://mybucket/data.txt s3://mybucket/data_copy.txt` Using AWS S3 remote cache. It fails with the error message `ERROR: unexpected error - Parameter validation failed: Invalid lengt...
@helger Could you also show us your `$ dvc version` output, please? > @helger Could you also show us your `$ dvc version` output, please? ``` dvc version DVC version: 0.90.2 Python version: 3.7.4 Platform: Linux-4.4.0-1104-aws-x86_64-with-debian-stretch-sid Binary: False Package: pip Supported remotes: azure...
diff --git a/dvc/remote/gs.py b/dvc/remote/gs.py --- a/dvc/remote/gs.py +++ b/dvc/remote/gs.py @@ -143,6 +143,9 @@ def walk_files(self, path_info): yield path_info.replace(fname) def makedirs(self, path_info): + if not path_info.path: + return + self.gs.bucket(path_info.bu...
diff --git a/tests/func/test_s3.py b/tests/func/test_s3.py --- a/tests/func/test_s3.py +++ b/tests/func/test_s3.py @@ -2,6 +2,7 @@ import boto3 import moto.s3.models as s3model +import pytest from moto import mock_s3 from dvc.remote.s3 import RemoteS3 @@ -45,6 +46,30 @@ def test_copy_singlepart_preserve_etag():...
["tests/func/test_s3.py::test_link_created_on_non_nested_path[base_info0]", "tests/unit/remote/test_remote.py::test_makedirs_not_create_for_top_level_path[RemoteGS]", "tests/unit/remote/test_remote.py::test_makedirs_not_create_for_top_level_path[RemoteS3]", "tests/func/test_s3.py::test_makedirs_doesnot_try_on_top_level...
["tests/unit/remote/test_remote.py::test_remote_without_checksum_jobs_default", "tests/func/test_s3.py::test_copy_singlepart_preserve_etag", "tests/func/test_s3.py::test_copy_multipart_preserve_etag", "tests/func/test_s3.py::test_link_created_on_non_nested_path[base_info1]", "tests/unit/remote/test_remote.py::test_remo...
null
true
2020-03-24T13:00:40Z
2
6
4
589
0
0.85
1
0.4
1
0.118167
77.4045
2,036
swe_bench_pro::test::568
swe_bench_pro
test
568
instance_qutebrowser__qutebrowser-0b621cb0ce2b54d3f93d8d41d8ff4257888a87e5-v2ef375ac784985212b1805e1d0431dc8f1b3c171
qutebrowser/qutebrowser
qutebrowser/qutebrowser
python
df2b817aa418ea7a83c5cbe523aab58ef26a2b20
## Title: Process startup error message omits the command that was run ### Description When a process fails to start, the error message identifies the process only by its generic label and omits the command that was actually run. A user who sees the message cannot tell which command failed, cannot tell what kind of f...
## Requirements - When a process that was started without detaching fails to start, the error message shown to the user must begin with the process name capitalized, followed by a space, followed by the command in single quotes, followed by `failed to start:` and the underlying error detail. For example, when the comma...
diff --git a/qutebrowser/misc/guiprocess.py b/qutebrowser/misc/guiprocess.py index 79c84c34650..4aa3df55d1e 100644 --- a/qutebrowser/misc/guiprocess.py +++ b/qutebrowser/misc/guiprocess.py @@ -84,8 +84,27 @@ def _on_error(self, error): if error == QProcess.Crashed and not utils.is_windows: # Alrea...
diff --git a/tests/end2end/features/spawn.feature b/tests/end2end/features/spawn.feature index 11b34443987..1c360893c7e 100644 --- a/tests/end2end/features/spawn.feature +++ b/tests/end2end/features/spawn.feature @@ -8,7 +8,7 @@ Feature: :spawn Scenario: Running :spawn with command that does not exist W...
["tests/unit/misc/test_guiprocess.py::test_error"]
["tests/unit/misc/test_guiprocess.py::test_start", "tests/unit/misc/test_guiprocess.py::test_start_verbose", "tests/unit/misc/test_guiprocess.py::test_start_output_message[True-True]", "tests/unit/misc/test_guiprocess.py::test_start_output_message[True-False]", "tests/unit/misc/test_guiprocess.py::test_start_output_mes...
ghcr.io/scaleapi/swe-bench_pro-v2:instance_qutebrowser__qutebrowser-0b621cb0ce2b54d3f93d8d41d8ff4257888a87e5-v2ef375ac784985212b1805e1d0431dc8f1b3c171
true
null
1
23
1
427
0
0.95
1
0.4
1
0.147833
77.3935
2,037
swe_gym::train::220
swe_gym
train
220
getmoto__moto-6022
getmoto/moto
getmoto/moto
python
26904fdb366fd3fb7be7fbf3946dc07966b26e58
add default policy document to create_vpc_endpoint When I don't specify a policy document to create_vpc_endpoint function, moto does not create a default full access policy to the endpoint like AWS does: > PolicyDocument (string) -- (Interface and gateway endpoints) A policy to attach to the endpoint that controls acce...
Hi @sergargar! I'm not too familiar with this area, so apologies if this is an obvious question: Does AWS create an actual IAM policy for you, using either the provided `policy_document`-value or the default? That is currently not supported in Moto either - from what I can see, we only persist the `policy-document`-va...
diff --git a/moto/ec2/models/vpcs.py b/moto/ec2/models/vpcs.py --- a/moto/ec2/models/vpcs.py +++ b/moto/ec2/models/vpcs.py @@ -40,6 +40,14 @@ class VPCEndPoint(TaggedEC2Resource, CloudFormationModel): + + DEFAULT_POLICY = { + "Version": "2008-10-17", + "Statement ": [ + {"Effect": "Allo...
diff --git a/tests/test_ec2/test_vpcs.py b/tests/test_ec2/test_vpcs.py --- a/tests/test_ec2/test_vpcs.py +++ b/tests/test_ec2/test_vpcs.py @@ -2,7 +2,7 @@ from botocore.exceptions import ClientError import boto3 - +import json import sure # noqa # pylint: disable=unused-import import random @@ -1006,6 +1006,36...
["tests/test_ec2/test_vpcs.py::test_create_vpc_endpoint__policy"]
["tests/test_ec2/test_vpcs.py::test_creating_a_vpc_in_empty_region_does_not_make_this_vpc_the_default", "tests/test_ec2/test_vpcs.py::test_create_vpc_with_invalid_cidr_block_parameter", "tests/test_ec2/test_vpcs.py::test_vpc_dedicated_tenancy", "tests/test_ec2/test_vpcs.py::test_vpc_state_available_filter", "tests/test...
null
true
2023-03-06 22:24:02
1
10
1
482
0
0.85
1
0.4
1
0.113667
77.391
2,038
swe_gym::train::600
swe_gym
train
600
conan-io__conan-13788
conan-io/conan
conan-io/conan
python
c1b3978914dd09e4c07fc8d1e688d5636fda6e79
Multiple versions of same build_requires package in lockfile? Hello, we are facing the issue that we are generatng a lockfile and in this lockfile we have seen that the same build_requires package is listed twice (with different versions). After analysing this we have found out that one version is provided by the pro...
Hi @MTomBosch In Conan 1.X, the lockfile is a graph, and it represents the nodes of the graph. Is the ``build_require`` listed as a dependency for the same node in the graph, or it just appears twice in the graph, but used by different packages? We have one direct dependency coming from the recipe of a package and ...
diff --git a/conans/model/graph_lock.py b/conans/model/graph_lock.py --- a/conans/model/graph_lock.py +++ b/conans/model/graph_lock.py @@ -3,7 +3,7 @@ from collections import OrderedDict from conans import DEFAULT_REVISION_V1 -from conans.client.graph.graph import RECIPE_VIRTUAL, RECIPE_CONSUMER +from conans.client...
diff --git a/conans/test/integration/graph_lock/graph_lock_build_requires_test.py b/conans/test/integration/graph_lock/graph_lock_build_requires_test.py --- a/conans/test/integration/graph_lock/graph_lock_build_requires_test.py +++ b/conans/test/integration/graph_lock/graph_lock_build_requires_test.py @@ -2,6 +2,8 @@ ...
["conans/test/integration/graph_lock/graph_lock_build_requires_test.py::test_duplicated_build_host_require[True]"]
["conans/test/integration/graph_lock/graph_lock_build_requires_test.py::GraphLockBuildRequireTestCase::test_multiple_matching_build_require", "conans/test/integration/graph_lock/graph_lock_build_requires_test.py::GraphLockBuildRequireTestCase::test_build_require_not_removed", "conans/test/integration/graph_lock/graph_l...
null
true
2023-04-28T11:48:11Z
1
7
1
535
0
0.85
1
0.4
1
0.1125
77.3875
2,039
swe_bench_pro::test::635
swe_bench_pro
test
635
instance_qutebrowser__qutebrowser-fea33d607fde83cf505b228238cf365936437a63-v9f8e9d96c85c85a605e382f1510bd08563afc566
qutebrowser/qutebrowser
qutebrowser/qutebrowser
python
54c0c493b3e560f478c3898627c582cab11fbc2b
# Title: Version gate for suffix workaround ignores runtime Qt ## Description When qutebrowser decides whether the extra suffixes workaround applies, its Qt version comparison reflects the version qutebrowser was built against, not the Qt libraries actually running at launch. The upstream fix lives in qtbase, so the d...
## Requirements - `extra_suffixes_workaround` must evaluate the lower version bound by calling `version_check("6.2.3", compiled=False)`. - `extra_suffixes_workaround` must evaluate the upper version bound by calling `version_check("6.7.0", compiled=False)`. - The MIME suffix workaround must activate only when both ...
diff --git a/qutebrowser/browser/webengine/webview.py b/qutebrowser/browser/webengine/webview.py index a04d2b813fc..3c63c59e43e 100644 --- a/qutebrowser/browser/webengine/webview.py +++ b/qutebrowser/browser/webengine/webview.py @@ -139,7 +139,10 @@ def extra_suffixes_workaround(upstream_mimetypes): WORKAROUND: fo...
diff --git a/tests/unit/browser/webengine/test_webview.py b/tests/unit/browser/webengine/test_webview.py index 7eeec315816..f14a896b69b 100644 --- a/tests/unit/browser/webengine/test_webview.py +++ b/tests/unit/browser/webengine/test_webview.py @@ -81,7 +81,8 @@ def guess(mime): monkeypatch.setattr(mimetypes, "gue...
["tests/unit/browser/webengine/test_webview.py::test_suffixes_workaround_extras_returned[before0-extra0]", "tests/unit/browser/webengine/test_webview.py::test_suffixes_workaround_extras_returned[before1-extra1]", "tests/unit/browser/webengine/test_webview.py::test_suffixes_workaround_extras_returned[before2-extra2]", "...
["tests/unit/browser/webengine/test_webview.py::test_camel_to_snake[naming0-NavigationTypeLinkClicked-link_clicked]", "tests/unit/browser/webengine/test_webview.py::test_camel_to_snake[naming1-NavigationTypeTyped-typed]", "tests/unit/browser/webengine/test_webview.py::test_camel_to_snake[naming2-NavigationTypeBackForwa...
ghcr.io/scaleapi/swe-bench_pro-v2:instance_qutebrowser__qutebrowser-fea33d607fde83cf505b228238cf365936437a63-v9f8e9d96c85c85a605e382f1510bd08563afc566
true
null
2
22
14
429
0
0.95
1
0.4
1
0.144833
77.3845
2,040
swe_gym::train::682
swe_gym
train
682
iterative__dvc-4613
iterative/dvc
iterative/dvc
python
c94ab359b6a447cab5afd44051a0f929c38b8820
have `dvc cache dir` print the current cache dir when no cmd flags are used > https://discordapp.com/channels/485586884165107732/565699007037571084/577605813271658519 Currently `dvc cache dir` by itself throws an error and display's the command help. It would be useful to, instead, print the location of the currently ...
@jorgeorpinel How about adding a new command like "dvc cache current" to return the current cache dir? @cwallaceh hi! why don't we just reuse the existing subcommand - `dvc cache dir`? Do you have any concerns/see any potential problems in that solution? @shcheklein not really, just an idea of how it could be clearer, ...
diff --git a/dvc/command/cache.py b/dvc/command/cache.py --- a/dvc/command/cache.py +++ b/dvc/command/cache.py @@ -1,12 +1,18 @@ import argparse +import logging from dvc.command import completion from dvc.command.base import append_doc_link, fix_subparsers from dvc.command.config import CmdConfig +logger = logg...
diff --git a/tests/func/test_cache.py b/tests/func/test_cache.py --- a/tests/func/test_cache.py +++ b/tests/func/test_cache.py @@ -154,7 +154,7 @@ def test(self): class TestCmdCacheDir(TestDvc): def test(self): ret = main(["cache", "dir"]) - self.assertEqual(ret, 254) + self.assertEqual(ret...
["tests/func/test_cache.py::TestCmdCacheDir::test"]
["tests/func/test_cache.py::TestCmdCacheDir::test_abs_path", "tests/func/test_cache.py::TestCacheLoadBadDirCache::test", "tests/func/test_cache.py::TestCache::test_all", "tests/func/test_cache.py::TestExternalCacheDir::test_remote_references", "tests/func/test_cache.py::test_default_cache_type", "tests/func/test_cache....
null
true
2020-09-24T09:35:24Z
1
10
1
466
0
0.85
1
0.4
1
0.111
77.383
2,041
swe_gym::train::451
swe_gym
train
451
python__mypy-10712
python/mypy
python/mypy
python
68b3b27c2fc47cc01f16d98e7e7d944ad5c0c6be
@overload cannot be used with conditional "if TYPE_CHECKING" **Bug Report** The handling of `@overload` decorators happens in (code) blocks only, which makes it not find the implementation when using: ```python from typing import overload from typing import TYPE_CHECKING from typing import Union class K: if TYPE_...
I'm curious, why would you like an `if TYPE_CHECKING` block shielding overloads? They are ignored by the runtime anyways. > I'm curious, why would you like an `if TYPE_CHECKING` block shielding overloads? They are ignored by the runtime anyways. While it's just a dummy decorator I'd like to keep typing separate from...
diff --git a/mypy/fastparse.py b/mypy/fastparse.py --- a/mypy/fastparse.py +++ b/mypy/fastparse.py @@ -44,7 +44,7 @@ from mypy import message_registry, errorcodes as codes from mypy.errors import Errors from mypy.options import Options -from mypy.reachability import mark_block_unreachable +from mypy.reachability imp...
diff --git a/test-data/unit/check-overloading.test b/test-data/unit/check-overloading.test --- a/test-data/unit/check-overloading.test +++ b/test-data/unit/check-overloading.test @@ -5421,3 +5421,884 @@ def f_f(arg: str) -> None: ... @Bad2() # E: "Bad2" not callable def f_f(arg): ... [builtins fixtures/dict.pyi] + ...
["mypy/test/testcheck.py::TypeCheckSuite::check-overloading.test::testOverloadIfSysVersion", "mypy/test/testcheck.py::TypeCheckSuite::check-overloading.test::testOverloadIfSkipUnknownExecution", "mypy/test/testcheck.py::TypeCheckSuite::check-overloading.test::testOverloadIfMerging", "mypy/test/testcheck.py::TypeCheckSu...
["mypy/test/testcheck.py::TypeCheckSuite::check-overloading.test::testOverloadIfNotMerging", "mypy/test/testcheck.py::TypeCheckSuite::check-overloading.test::testOverloadIfOldStyle", "mypy/test/testcheck.py::TypeCheckSuite::check-overloading.test::testOverloadIfNotMergingDifferentNames", "mypy/test/testcheck.py::TypeCh...
null
true
2021-06-25T10:55:25Z
1
199
9
971
0
0.85
1
0.55
0.75
0.661833
77.373
2,042
swe_gym::train::498
swe_gym
train
498
python__mypy-15219
python/mypy
python/mypy
python
905c2cbcc233727cbf42d9f3ac78849318482af2
Cannot create generic type aliases with TypeVarTuple The support for `TypeVarTuple` is still experimental, so maybe this kind of error is expected, but I thought I could report it anyway. **To Reproduce** The following example is [directly from the PEP](https://peps.python.org/pep-0646/#aliases): ```python from typi...
diff --git a/mypy/checkexpr.py b/mypy/checkexpr.py --- a/mypy/checkexpr.py +++ b/mypy/checkexpr.py @@ -151,11 +151,13 @@ UninhabitedType, UnionType, UnpackType, + flatten_nested_tuples, flatten_nested_unions, get_proper_type, get_proper_types, has_recursive_types, is_named_ins...
diff --git a/test-data/unit/check-typevar-tuple.test b/test-data/unit/check-typevar-tuple.test --- a/test-data/unit/check-typevar-tuple.test +++ b/test-data/unit/check-typevar-tuple.test @@ -570,3 +570,237 @@ call(A().func3, 0, 1, 2) call(A().func3) [builtins fixtures/tuple.pyi] + +[case testVariadicAliasBasicTuple...
["mypy/test/testcheck.py::TypeCheckSuite::check-typevar-tuple.test::testVariadicAliasMultipleUnpacks", "mypy/test/testcheck.py::TypeCheckSuite::check-typevar-tuple.test::testVariadicAliasRecursiveUnpack", "mypy/test/testcheck.py::TypeCheckSuite::check-typevar-tuple.test::testVariadicAliasUnpackFixedTupleTarget", "mypy/...
[]
null
true
2023-05-10T23:01:50Z
11
334
15
2,103
0
0.85
1
0.85
0.45
0.8505
77.364
2,043
swe_gym::train::360
swe_gym
train
360
python__mypy-10683
python/mypy
python/mypy
python
2ebdbca3b5afbfa1113f01b583522f4afcc4b3e3
Fix typeguards crash when assigning guarded value in if statement ### Description Fixes https://github.com/python/mypy/issues/10665 This PR implements joining type guard types (which can happen when leaving an if statement). (it continues along the lines of https://github.com/python/mypy/pull/10496) ## Test Plan Ad...
Alright, so I'm somewhat confused on how to approach this. `TypeGuardType` seems to be used for *both* type guard functions (?) *and* type guarded variables. This makes sense since type guarded variables are a little special, but at the same time is massively confusing. See for example: https://github.com/python/myp...
diff --git a/mypy/binder.py b/mypy/binder.py --- a/mypy/binder.py +++ b/mypy/binder.py @@ -5,7 +5,7 @@ from typing_extensions import DefaultDict from mypy.types import ( - Type, AnyType, PartialType, UnionType, TypeOfAny, NoneType, get_proper_type + Type, AnyType, PartialType, UnionType, TypeOfAny, NoneType, ...
diff --git a/test-data/unit/check-typeguard.test b/test-data/unit/check-typeguard.test --- a/test-data/unit/check-typeguard.test +++ b/test-data/unit/check-typeguard.test @@ -82,6 +82,7 @@ def is_str_list(a: List[object]) -> TypeGuard[List[str]]: pass def main(a: List[object]): if is_str_list(a): reveal_...
["mypy/test/testcheck.py::TypeCheckSuite::testAssignToTypeGuardedVariable1", "mypy/test/testcheck.py::TypeCheckSuite::testAssignToTypeGuardedVariable2"]
["mypy/test/testcheck.py::TypeCheckSuite::testAssignToTypeGuardedVariable3", "mypy/test/testcheck.py::TypeCheckSuite::testTypeGuardUnionOut", "mypy/test/testcheck.py::TypeCheckSuite::testTypeGuardUnionIn"]
null
true
2021-06-21T14:22:54Z
1
6
2
497
0
0.85
1
0.4
1
0.102833
77.3585
2,044
swe_gym::train::504
swe_gym
train
504
python__mypy-10775
python/mypy
python/mypy
python
53836bd0407293031f93ad065bc373af2fe1bde2
Support PEP 604 syntax for runtime use cases This is a follow up to #9610. Most of PEP 604 support is available, however we're missing support for `isinstance(x, int | str)` (and more generally, runtime uses of `__or__` on types). This will require a typeshed change, but I'm filing here so that we make sure it works. ...
Should also make sure to test base classes: `class C(A[int | None]): ...` and aliases `X = int | str`
diff --git a/mypy/checker.py b/mypy/checker.py --- a/mypy/checker.py +++ b/mypy/checker.py @@ -5363,6 +5363,12 @@ def flatten_types(t: Type) -> List[Type]: def get_isinstance_type(expr: Expression, type_map: Dict[Expression, Type]) -> Optional[List[TypeRange]]: + if isinstance(expr, OpExp...
diff --git a/test-data/unit/check-union-or-syntax.test b/test-data/unit/check-union-or-syntax.test --- a/test-data/unit/check-union-or-syntax.test +++ b/test-data/unit/check-union-or-syntax.test @@ -169,3 +169,30 @@ y: B class C(list[int | None]): pass [builtins fixtures/list.pyi] + +[case testUnionOrSyntaxInIsi...
["mypy/test/testcheck.py::TypeCheckSuite::testUnionOrSyntaxInIsinstanceNotSupported"]
[]
null
true
2021-07-06T17:46:06Z
1
6
1
496
0
0.85
1
0.4
1
0.102667
77.358
2,045
swe_bench_pro::test::128
swe_bench_pro
test
128
instance_element-hq__element-web-44b98896a79ede48f5ad7ff22619a39d5f6ff03c-vnan
element-hq/element-web
element-hq/element-web
javascript
19f9f9856451a8e4cce6d313d19ca8aed4b5d6b4
## Title: Integration settings appear in the wrong location and toggle does not work properly ### Description: Integration settings for managing bots and widgets are located under the wrong tab in user settings. When turning off integrations using the toggle switch, the preference does not save correctly. The toggle s...
## Requirements - The Integration Manager section must render exclusively under the Security user settings area and must not render under the General user settings area. - When the widgets feature `UIFeature.Widgets` is enabled, the Integration Manager section must be present in the Security user settings area. - Whe...
diff --git a/src/components/views/settings/SetIntegrationManager.tsx b/src/components/views/settings/SetIntegrationManager.tsx index 374508d9c66..fe55efd90fb 100644 --- a/src/components/views/settings/SetIntegrationManager.tsx +++ b/src/components/views/settings/SetIntegrationManager.tsx @@ -25,6 +25,7 @@ import { Sett...
diff --git a/playwright/e2e/settings/general-user-settings-tab.spec.ts b/playwright/e2e/settings/general-user-settings-tab.spec.ts index 050cd76d00..0ba85e890b 100644 --- a/playwright/e2e/settings/general-user-settings-tab.spec.ts +++ b/playwright/e2e/settings/general-user-settings-tab.spec.ts @@ -13,17 +13,16 @@ WITHO...
["test/components/views/settings/SetIntegrationManager-test.tsx | SetIntegrationManager | should not render manage integrations section when widgets feature is disabled", "test/components/views/settings/SetIntegrationManager-test.tsx | SetIntegrationManager | should render manage integrations sections", "test/component...
["test/utils/sets-test.ts | setHasDiff | should flag true on A length > B length", "test/utils/sets-test.ts | setHasDiff | should flag true on A length < B length", "test/utils/sets-test.ts | setHasDiff | should flag true on element differences", "test/utils/sets-test.ts | setHasDiff | should flag false if same but ord...
ghcr.io/scaleapi/swe-bench_pro-v2:instance_element-hq__element-web-44b98896a79ede48f5ad7ff22619a39d5f6ff03c-vnan
true
null
3
17
4
471
0
0.95
1
0.4
1
0.135167
77.3555
2,046
swe_bench_pro::test::28
swe_bench_pro
test
28
instance_NodeBB__NodeBB-b398321a5eb913666f903a794219833926881a8f-vd59a5728dfc977f44533186ace531248c2917516
NodeBB/NodeBB
nodebb/nodebb
javascript
47910d708d8d6c18fdc3e57a0933b6d2a1d881bd
# Title: Add Privileged Chat Functionality ## Exact steps to cause this issue 1. Log in as a regular user who does not have the global `chat:privileged` permission. 2. Attempt to start a direct chat with an administrator or moderator, or invite a privileged user to a chat room. 3. Observe that the attempt is blocke...
## Requirements - Introduce a new global privilege chat:privileged to regulate initiating chats with privileged targets. - Integrate chat:privileged into existing permission checks across messaging and chat flows, using privileges.global.can with arrays and evaluating results via .includes(true) in middleware and mess...
diff --git a/public/language/en-GB/admin/manage/privileges.json b/public/language/en-GB/admin/manage/privileges.json index 643fda9c177a..240cff6aa5b1 100644 --- a/public/language/en-GB/admin/manage/privileges.json +++ b/public/language/en-GB/admin/manage/privileges.json @@ -8,6 +8,7 @@ "edit-privileges": "Edit Privil...
diff --git a/test/categories.js b/test/categories.js index 9df4535729..7ce3fd41c4 100644 --- a/test/categories.js +++ b/test/categories.js @@ -704,6 +704,7 @@ describe('Categories', () => { mute: false, invite: false, chat: false, + 'chat:privileged': false, 'search:content': false, 's...
["test/categories.js | Categories privileges should load global group privileges", "test/categories.js | Categories privileges should load global user privileges", "test/i18n.js | source language file structure should only contain lowercase or numeric language keys separated by either dashes or periods chat-with-privil...
["test/categories.js | Categories .getCategoryTopics should return a list of topics", "test/categories.js | Categories .getCategoryTopics should return a list of topics by a specific user", "test/categories.js | Categories Categories.getRecentTopicReplies should not throw", "test/categories.js | Categories Categories.m...
ghcr.io/scaleapi/swe-bench_pro-v2:instance_NodeBB__NodeBB-b398321a5eb913666f903a794219833926881a8f-vd59a5728dfc977f44533186ace531248c2917516
true
null
11
76
8
1,190
0
0.95
1
0.7
0.6
0.451667
77.355
2,047
swe_gym::train::610
swe_gym
train
610
conan-io__conan-12762
conan-io/conan
conan-io/conan
python
14a3fb325cc4ee74a7e6d32d3595cfa1bae28088
[feature] Allow specifying an install component for the CMake helper One is capable of passing `--component` to CMake's `--install` command, however the same functionality is missing from the CMake helper's `install()` method: https://docs.conan.io/en/latest/reference/build_helpers/cmake.html#install Since Conan does ...
> Since Conan does not package CMake configs generated by recipes, in many cases the recipe can just define the runtime component and there won't be a need to rmdir additional files. Just to clarify, this is a policy to ConanCenter, because it is important that recipes there work for any build system, not only CMake...
diff --git a/conan/tools/cmake/cmake.py b/conan/tools/cmake/cmake.py --- a/conan/tools/cmake/cmake.py +++ b/conan/tools/cmake/cmake.py @@ -132,7 +132,7 @@ def _build(self, build_type=None, target=None, cli_args=None, build_tool_args=No def build(self, build_type=None, target=None, cli_args=None, build_tool_args=No...
diff --git a/conans/test/unittests/tools/cmake/test_cmake_install.py b/conans/test/unittests/tools/cmake/test_cmake_install.py new file mode 100644 --- /dev/null +++ b/conans/test/unittests/tools/cmake/test_cmake_install.py @@ -0,0 +1,39 @@ +import platform +import pytest + +from conan.tools.cmake import CMake +from co...
["conans/test/unittests/tools/cmake/test_cmake_install.py::test_run_install_component"]
[]
null
true
2022-12-21T20:23:14Z
1
4
1
1,477
0
0.85
1
0.55
0.8
0.2595
77.3535
2,048
swe_bench_pro::test::45
swe_bench_pro
test
45
instance_ansible__ansible-189fcb37f973f0b1d52b555728208eeb9a6fce83-v906c969b551b346ef54a2c0b41e04f632b7b73c2
ansible/ansible
ansible/ansible
python
bc6cd138740bd927b5c52c3b9c18c7812179835e
## Title: Infoblox DHCP fixed address entries cannot be managed from Ansible ### Description Ansible reaches a range of Infoblox NIOS object types, but a DHCP fixed address, the entry that ties one IP address to the MAC address of a particular client inside a network and a network view, is not one of them. There is no...
## Requirements - A new module named `nios_fixed_address` must be added to manage Infoblox DHCP Fixed Address entries. The module must import successfully without errors when loaded. - The new module must expose, at module scope, a `WapiModule` symbol provided by the existing Infoblox NIOS API layer (`lib/ansible/modu...
diff --git a/lib/ansible/module_utils/net_tools/nios/api.py b/lib/ansible/module_utils/net_tools/nios/api.py index 64392942da32b6..072b7944706e9f 100644 --- a/lib/ansible/module_utils/net_tools/nios/api.py +++ b/lib/ansible/module_utils/net_tools/nios/api.py @@ -55,6 +55,8 @@ NIOS_NAPTR_RECORD = 'record:naptr' NIOS_T...
diff --git a/test/units/modules/net_tools/nios/test_nios_fixed_address.py b/test/units/modules/net_tools/nios/test_nios_fixed_address.py new file mode 100644 index 0000000000..2f96878705 --- /dev/null +++ b/test/units/modules/net_tools/nios/test_nios_fixed_address.py @@ -0,0 +1,307 @@ +# This file is part of Ansible +#...
["test/units/modules/net_tools/nios/test_nios_fixed_address.py::TestNiosFixedAddressModule::test_api_fixed_address_constants", "test/units/modules/net_tools/nios/test_nios_fixed_address.py::TestNiosFixedAddressModule::test_get_object_ref_mac_filter_for_ipv4_fixed_address", "test/units/modules/net_tools/nios/test_nios_f...
[]
ghcr.io/scaleapi/swe-bench_pro-v2:instance_ansible__ansible-189fcb37f973f0b1d52b555728208eeb9a6fce83-v906c969b551b346ef54a2c0b41e04f632b7b73c2
true
null
2
266
13
1,107
0
0.95
1
0.55
0.75
0.6845
77.341
2,049
swe_gym::train::667
swe_gym
train
667
conan-io__conan-15514
conan-io/conan
conan-io/conan
python
5a8cc86a31540a6da94cee2b8ea60e1d2dea67c0
[feature] Print git commands when print_run_commands = True It would be nice to have `git` commands from the `tools.Git` helper be printed out if the `print_run_commands` variable is set to `True`. Could even be a new configuration option if desired - [X] I've read the [CONTRIBUTING guide](https://github.com/conan-io...
Hi! Yes, probably it makes sense for commands using `Git` or `SVN` helpers, as we do for other helpers like `CMake`. Nevertheless I feel like it should output only the commands that are explicit in the recipes, but not other usages that Conan is doing in the internals (those commands could be using a git library in...
diff --git a/conan/tools/scm/git.py b/conan/tools/scm/git.py --- a/conan/tools/scm/git.py +++ b/conan/tools/scm/git.py @@ -1,6 +1,7 @@ import fnmatch import os +from conan.api.output import Color from conan.tools.files import chdir, update_conandata from conan.errors import ConanException from conans.model.conf ...
diff --git a/conans/test/functional/tools/scm/test_git.py b/conans/test/functional/tools/scm/test_git.py --- a/conans/test/functional/tools/scm/test_git.py +++ b/conans/test/functional/tools/scm/test_git.py @@ -275,7 +275,10 @@ def test_clone_checkout(self): c = TestClient() c.save({"conanfile.py": ...
["conans/test/functional/tools/scm/test_git.py::TestGitBasicClone::test_clone_checkout"]
["conans/test/functional/tools/scm/test_git.py::TestGitBasicSCMFlow::test_branch_flow[True]", "conans/test/functional/tools/scm/test_git.py::TestGitBasicSCMFlow::test_full_scm[True]", "conans/test/functional/tools/scm/test_git.py::test_capture_git_tag", "conans/test/functional/tools/scm/test_git.py::TestGitCloneWithArg...
null
true
2024-01-24T09:58:11Z
1
10
1
365
0
0.85
1
0.4
1
0.094167
77.3325
2,050
swe_gym::train::845
swe_gym
train
845
iterative__dvc-4086
iterative/dvc
iterative/dvc
python
5cb775308df6de07ac70cc25894f271f552e740a
run: hide --file and --single-stage ## Report Per https://github.com/iterative/dvc.org/pull/1420#discussion_r442644095: --file is still in the help output of `dvc run -h`, mentions DVC-file (a concept we are removing), and makes no sense without --single-stage (which is hidden). Please hide both for now. ### Please ...
@jorgeorpinel --single-stage is already hidden. `--file` will likely be used in the future, but could hide it for now. Will send an update.
diff --git a/dvc/command/run.py b/dvc/command/run.py --- a/dvc/command/run.py +++ b/dvc/command/run.py @@ -159,9 +159,7 @@ def add_parser(subparsers, parent_parser): metavar="<path>", ) run_parser.add_argument( - "--file", - help="Specify name of the DVC-file this command will generate....
diff --git a/tests/unit/repo/__init__.py b/tests/unit/repo/__init__.py new file mode 100644 diff --git a/tests/unit/repo/test_run.py b/tests/unit/repo/test_run.py new file mode 100644 --- /dev/null +++ b/tests/unit/repo/test_run.py @@ -0,0 +1,12 @@ +import pytest + +from dvc.exceptions import InvalidArgumentError + + +...
["tests/unit/repo/test_run.py::test_file"]
[]
null
true
2020-06-22T23:28:49Z
2
10
1
365
0
0.85
1
0.4
1
0.094167
77.3325
2,051
swe_gym::train::2159
swe_gym
train
2,159
Project-MONAI__MONAI-3824
Project-MONAI/MONAI
project-monai/monai
python
c3db337644d9525610d9fab3cfd30f963438dc6a
Implementation of average surface distance differs from scientific literature **Describe the bug** We discovered that the definition of the average (symmetric) surface distance (ASD) differs between the [deepmind implementation](https://github.com/deepmind/surface-distance/blob/master/surface_distance/metrics.py#L293),...
thanks for the detailed bug report, your implementation is also consistent with http://insightsoftwareconsortium.github.io/SimpleITK-Notebooks/Python_html/34_Segmentation_Evaluation.html would you like to create a pull request to release your implementation in MONAI? thanks for the detailed bug report, your implementat...
diff --git a/monai/metrics/surface_distance.py b/monai/metrics/surface_distance.py --- a/monai/metrics/surface_distance.py +++ b/monai/metrics/surface_distance.py @@ -16,7 +16,7 @@ import torch from monai.metrics.utils import do_metric_reduction, get_mask_edges, get_surface_distance, ignore_background -from monai.u...
diff --git a/tests/test_surface_distance.py b/tests/test_surface_distance.py --- a/tests/test_surface_distance.py +++ b/tests/test_surface_distance.py @@ -61,14 +61,14 @@ def create_spherical_seg_3d( create_spherical_seg_3d(radius=33, centre=(19, 33, 22)), create_spherical_seg_3d(radius=33, ce...
["tests/test_surface_distance.py::TestAllSurfaceMetrics::test_value_5", "tests/test_surface_distance.py::TestAllSurfaceMetrics::test_value_3", "tests/test_surface_distance.py::TestAllSurfaceMetrics::test_value_2", "tests/test_surface_distance.py::TestAllSurfaceMetrics::test_value_4"]
["tests/test_surface_distance.py::TestAllSurfaceMetrics::test_value_6", "tests/test_surface_distance.py::TestAllSurfaceMetrics::test_value_7", "tests/test_surface_distance.py::TestAllSurfaceMetrics::test_nans_0", "tests/test_surface_distance.py::TestAllSurfaceMetrics::test_value_1", "tests/test_surface_distance.py::Tes...
null
true
2022-02-20T19:25:39Z
1
20
4
11,791
0
0.85
1
0.35
1
0.566667
77.325
2,052
swe_gym::train::926
swe_gym
train
926
dask__dask-6818
dask/dask
dask/dask
python
554ca8877d36d30732712698f3135e13edd6654a
blocksize and persist has impact on result **What happened**: When running `read_csv` in combination with `persist` and `blocksize`, results change on re-evaluation. I am using a 10 worker dask-cluster with version 2.29.0 (I skip the cluster setup part of the script). ```python import dask.dataframe as dd from distrib...
Yikes. I can reproduce on dask/distributed master although I get a different final number. I suspect that there might be some issue with tasks having the same name even if the blocksize is different.
diff --git a/dask/dataframe/io/csv.py b/dask/dataframe/io/csv.py --- a/dask/dataframe/io/csv.py +++ b/dask/dataframe/io/csv.py @@ -318,6 +318,7 @@ def text_blocks_to_pandas( enforce=False, specified_dtypes=None, path=None, + blocksize=None, ): """Convert blocks of bytes to a dask.dataframe @@ ...
diff --git a/dask/dataframe/io/tests/test_csv.py b/dask/dataframe/io/tests/test_csv.py --- a/dask/dataframe/io/tests/test_csv.py +++ b/dask/dataframe/io/tests/test_csv.py @@ -28,6 +28,7 @@ from dask.utils import filetexts, filetext, tmpfile, tmpdir from fsspec.compression import compr + fmt_bs = [(fmt, None) for f...
["dask/dataframe/io/tests/test_csv.py::test_read_csv_has_different_names_based_on_blocksize"]
["dask/dataframe/io/tests/test_csv.py::test_to_csv_warns_using_scheduler_argument", "dask/dataframe/io/tests/test_csv.py::test_read_csv_include_path_column[read_table-files1]", "dask/dataframe/io/tests/test_csv.py::test_pandas_read_text_with_header[read_table-files1]", "dask/dataframe/io/tests/test_csv.py::test_none_us...
null
true
2020-11-09T15:31:33Z
1
4
1
1,417
0
0.85
1
0.55
0.8
0.2495
77.3235
2,053
swe_gym::train::849
swe_gym
train
849
iterative__dvc-4124
iterative/dvc
iterative/dvc
python
35e0dd920614f9f1194c82f61eeaa829f6593fb6
Newlines after dvc metrics diff I am working on printing `dvc metrics diff --show-md` into a markdown document, i.e.... `dvc metrics diff --show-md >> doc.md` and if I don't manually follow this command with a newline: `echo >> doc.md` Then everything that follows in `doc.md` gets inserted into the table. Is there ...
@andronovhopf Indeed, md table is not complete without the trailing newline, which is a bit non-intuitive when compared to regular cli workflow (at least for me), but it totally makes sense to make this right. Looks like right now only cml is using this feature, so not too worried about breaking something for someone e...
diff --git a/dvc/utils/diff.py b/dvc/utils/diff.py --- a/dvc/utils/diff.py +++ b/dvc/utils/diff.py @@ -91,7 +91,7 @@ def table(header, rows, markdown=False): if not rows and not markdown: return "" - return tabulate( + ret = tabulate( rows, header, tablefmt="github" if m...
diff --git a/tests/unit/command/test_diff.py b/tests/unit/command/test_diff.py --- a/tests/unit/command/test_diff.py +++ b/tests/unit/command/test_diff.py @@ -114,7 +114,7 @@ def info(): def test_show_md_empty(): - assert _show_md({}) == ("| Status | Path |\n" "|----------|--------|") + assert _show_md({...
["tests/unit/command/test_diff.py::test_show_md_empty", "tests/unit/command/test_diff.py::test_show_md", "tests/unit/command/test_metrics.py::test_metrics_diff_markdown_empty", "tests/unit/command/test_params.py::test_params_diff_markdown_empty", "tests/unit/command/test_metrics.py::test_metrics_diff_markdown", "tests/...
["tests/unit/command/test_params.py::test_params_diff_sorted", "tests/unit/command/test_params.py::test_params_diff", "tests/unit/command/test_metrics.py::test_metrics_show_raw_diff", "tests/unit/command/test_diff.py::test_no_changes", "tests/unit/command/test_metrics.py::test_metrics_diff_no_changes", "tests/unit/comm...
null
true
2020-06-26T19:08:52Z
1
8
6
381
0
0.85
1
0.4
1
0.090167
77.3205
2,054
swe_bench_pro::test::318
swe_bench_pro
test
318
instance_gravitational__teleport-1b08e7d0dbe68fe530a0f08ad408ec198b7c53fc-vee9b09fb20c43af7e520f57e9239bbcf46b7113d
gravitational/teleport
gravitational/teleport
go
5157a38cadfcaca25a94a6cf380828cbe6e47fe7
## Title: X11 forwarding fails on macOS with XQuartz ### Description When attempting to use X11 forwarding on macOS with XQuartz, remote applications fail to launch due to display-related errors. The application on the remote node cannot open the display.
## Requirements - `unixSocket()` must resolve the path `<x11SockDir>/X<display_number>` as the unix socket address when `HostName` is `"unix"` or empty. - When `HostName` begins with `/`, `unixSocket()` must check whether the path `<HostName>:<display_number>` exists on the filesystem and if it does, must return it as...
diff --git a/lib/sshutils/x11/display.go b/lib/sshutils/x11/display.go index 2fd6f66554bd2..6e0b2a152274c 100644 --- a/lib/sshutils/x11/display.go +++ b/lib/sshutils/x11/display.go @@ -118,12 +118,29 @@ func (d *Display) Listen() (XServerListener, error) { // xserverUnixSocket returns the display's associated unix s...
diff --git a/lib/sshutils/x11/display_test.go b/lib/sshutils/x11/display_test.go index d28edb551d64a..0d4bdc0b1d575 100644 --- a/lib/sshutils/x11/display_test.go +++ b/lib/sshutils/x11/display_test.go @@ -22,139 +22,89 @@ import ( "github.com/stretchr/testify/require" ) -func TestParseDisplay(t *testing.T) { +func...
["TestDisplay/unix_socket_full_path", "TestDisplay"]
["TestDisplay/unix_socket", "TestDisplay/unix_socket#01", "TestDisplay/unix_socket#02", "TestDisplay/unix_socket_with_screen_number", "TestDisplay/localhost", "TestDisplay/some_ip_address", "TestDisplay/invalid_ip_address", "TestDisplay/empty", "TestDisplay/no_display_number", "TestDisplay/negative_display_number", "Te...
ghcr.io/scaleapi/swe-bench_pro-v2:instance_gravitational__teleport-1b08e7d0dbe68fe530a0f08ad408ec198b7c53fc-vee9b09fb20c43af7e520f57e9239bbcf46b7113d
true
null
1
24
2
256
0
0.95
1
0.4
1
0.122667
77.318
2,055
swe_bench_promax::test::16
swe_bench_promax
test
16
restic__restic-5550
restic/restic
restic/restic
go
718b97f37f7f1c5949384309c417a2179f5aa1d8
The `Checker` type in the `internal/checker` (backed by `internal/repository/checker.go`) currently exposes pack-reading functionality through two separate methods: `ReadData`, which reads all packs unconditionally, and `ReadPacks`, which accepts a pre-selected map of packs. The caller (the `check` command) is responsi...
diff --git a/cmd/restic/cmd_check.go b/cmd/restic/cmd_check.go --- a/cmd/restic/cmd_check.go +++ b/cmd/restic/cmd_check.go @@ -230,6 +230,11 @@ func runCheck(ctx context.Context, opts CheckOptions, gopts GlobalOptions, args printer = newJSONErrorPrinter(term) } + readDataFilter, err := buildPacksFilter(opts, pri...
diff --git a/internal/checker/checker_test.go b/internal/checker/checker_test.go --- a/internal/checker/checker_test.go +++ b/internal/checker/checker_test.go @@ -60,7 +60,9 @@ func checkData(chkr *checker.Checker) []error { return collectErrors( context.TODO(), func(ctx context.Context, errCh chan<- error) { -...
null
null
key4127/refactor-dockerhub:restic__restic-5550
true
1760284260
2
160
null
2,938
0
0.9
1
0.55
0.75
0.989667
77.3065
2,056
swe_bench_pro::test::300
swe_bench_pro
test
300
instance_future-architect__vuls-e6c0da61324a0c04026ffd1c031436ee2be9503a
future-architect/vuls
future-architect/vuls
go
98cbe6ed837ce5983ddcb138f5c1577b9b7cf2bf
# Alpine Linux vulnerability detection incorrectly handles source vs binary packages ## Description The current Alpine Linux package scanner doesn't properly differentiate between binary and source packages during vulnerability detection. This leads to missed vulnerabilities because the OVAL detection logic doesn't co...
## Requirements - The OVAL vulnerability detection logic should correctly identify when Alpine packages are source packages and assess vulnerabilities accordingly. - When parsing `apk list` output, the Alpine scanner should extract both binary package details and their associated source package names. - Package index...
diff --git a/oval/util.go b/oval/util.go index b289c98e59..367f514273 100644 --- a/oval/util.go +++ b/oval/util.go @@ -389,6 +389,10 @@ func isOvalDefAffected(def ovalmodels.Definition, req request, family, release s } } + if family == constant.Alpine && !req.isSrcPack { + return false, false, "", "", nil + } +...
diff --git a/oval/util_test.go b/oval/util_test.go index 439e72dc60..c7c814fc3e 100644 --- a/oval/util_test.go +++ b/oval/util_test.go @@ -2446,6 +2446,48 @@ func TestIsOvalDefAffected(t *testing.T) { affected: true, fixedIn: "0:4.4.140-96.97.TDC.2", }, + { + in: in{ + family: constant.Alpine, + r...
["TestIsOvalDefAffected", "Test_alpine_parseApkInstalledList", "Test_alpine_parseApkInstalledList/happy", "Test_alpine_parseApkIndex", "Test_alpine_parseApkIndex/happy", "Test_alpine_parseApkUpgradableList", "Test_alpine_parseApkUpgradableList/happy"]
[]
ghcr.io/scaleapi/swe-bench_pro-v2:instance_future-architect__vuls-e6c0da61324a0c04026ffd1c031436ee2be9503a
true
null
3
191
7
1,035
0
0.95
1
0.55
0.75
0.6725
77.305
2,057
swe_gym::train::804
swe_gym
train
804
iterative__dvc-9511
iterative/dvc
iterative/dvc
python
6d783b8d97fa29387d064d7340bbc610afaf6938
`exp run --pull`: keep going even if pull fails See the conversation in https://github.com/iterative/dvc/pull/9434#issuecomment-1544466916. If `dvc exp run --pull` fails to pull anything from the cache or run-cache, the command will fail immediately. Instead, it should only show a warning and try to do as much as poss...
Moving this back to p1. It makes using `--pull` with any demo project or any project that uses an http filesystem impossible because the run cache is unsupported for http. Even `dvc repro --pull --no-run-cache` fails. I am guessing the answer might be "there is no longer a reason" but why is run cache not supported ...
diff --git a/dvc/repo/reproduce.py b/dvc/repo/reproduce.py --- a/dvc/repo/reproduce.py +++ b/dvc/repo/reproduce.py @@ -4,6 +4,7 @@ from dvc.exceptions import DvcException, ReproductionError from dvc.repo.scm_context import scm_context +from dvc.stage.cache import RunCacheNotSupported from dvc.stage.exceptions impo...
diff --git a/tests/func/test_repro_multistage.py b/tests/func/test_repro_multistage.py --- a/tests/func/test_repro_multistage.py +++ b/tests/func/test_repro_multistage.py @@ -9,6 +9,7 @@ from dvc.dvcfile import LOCK_FILE, PROJECT_FILE from dvc.exceptions import CyclicGraphError, ReproductionError from dvc.stage impo...
["tests/func/test_repro_multistage.py::test_repro_pulls_continue_without_run_cache", "tests/func/test_repro_multistage.py::test_repro_skip_pull_if_no_run_cache_is_passed"]
["tests/func/test_repro_multistage.py::test_repro_when_new_out_overlaps_others_stage_outs", "tests/func/test_repro_multistage.py::test_repro_frozen", "tests/func/test_repro_multistage.py::test_repro_list_of_commands_in_order[True]", "tests/func/test_repro_multistage.py::test_repro_list_of_commands_raise_and_stops_after...
null
true
2023-05-25T14:36:12Z
1
8
2
325
0
0.85
1
0.4
1
0.080833
77.2925
2,058
swe_bench_pro::test::397
swe_bench_pro
test
397
instance_internetarchive__openlibrary-3f7db6bbbcc7c418b3db72d157c6aed1d45b2ccf-v430f20c722405e462d9ef44dee7d34c41e76fe7a
internetarchive/openlibrary
internetarchive/openlibrary
python
c46e5170e93bbfac133dd1e2e1e3b56882f2519f
### Title Add ISBNdb line parsing and non-book format detection for Open Library imports ### Description Open Library lacks the basic building blocks needed to consume ISBNdb records as a source of bibliographic metadata. There is no module that can turn a raw ISBNdb data-dump line into a usable Python record, and t...
## Requirements - A new module `scripts/providers/isbndb.py` must be added providing ISBNdb line-parsing and non-book-detection helpers for Open Library. - The `get_line` function must accept a single raw line from an ISBNdb data dump (`bytes`), where each line is one JSON record, and return that line decoded as JSON ...
diff --git a/openlibrary/core/imports.py b/openlibrary/core/imports.py index 25383ef2b7e..37afa042496 100644 --- a/openlibrary/core/imports.py +++ b/openlibrary/core/imports.py @@ -64,6 +64,7 @@ def normalize_items(self, items): 'batch_id': self.id, # Partner bots set ia_id to eg "part...
diff --git a/scripts/tests/test_isbndb.py b/scripts/tests/test_isbndb.py new file mode 100644 index 000000000..d72d2f0ab --- /dev/null +++ b/scripts/tests/test_isbndb.py @@ -0,0 +1,100 @@ +from pathlib import Path +import pytest + + +from ..providers.isbndb import get_line, NONBOOK, is_nonbook + +# Sample lines from th...
["scripts/tests/test_isbndb.py::test_isbndb_to_ol_item", "scripts/tests/test_isbndb.py::test_is_nonbook[DVD-True]", "scripts/tests/test_isbndb.py::test_is_nonbook[dvd-True]", "scripts/tests/test_isbndb.py::test_is_nonbook[audio-True]", "scripts/tests/test_isbndb.py::test_is_nonbook[cassette-True]", "scripts/tests/test_...
[]
ghcr.io/scaleapi/swe-bench_pro-v2:instance_internetarchive__openlibrary-3f7db6bbbcc7c418b3db72d157c6aed1d45b2ccf-v430f20c722405e462d9ef44dee7d34c41e76fe7a
true
null
2
208
8
997
0
0.95
1
0.55
0.75
0.666167
77.286
2,059
swe_bench_pro::test::78
swe_bench_pro
test
78
instance_ansible__ansible-942424e10b2095a173dbd78e7128f52f7995849b-v30a923fb5c164d6cd18280c02422f75e611e8fb2
ansible/ansible
ansible/ansible
python
dd44449b6ec454a46426a020608fe3763287101f
# WinRM connection hang on stdin write failure preventing command output retrieval ### Summary The WinRM connection plugin presents a critical problem where it can hang indefinitely when attempting to get command output after a stdin write failure. This occurs because when stdin write fails, the system continues tryi...
## Requirements - The implementation must create a `_winrm_get_raw_command_output` method that obtains raw WinRM command output by parsing the WSMan response XML directly with ElementTree, returning the decoded stdout bytes, stderr bytes, return code, and a flag indicating whether the command has completed. - The impl...
diff --git a/changelogs/fragments/winrm-timeout.yml b/changelogs/fragments/winrm-timeout.yml new file mode 100644 index 00000000000000..1e96c4a7e94d44 --- /dev/null +++ b/changelogs/fragments/winrm-timeout.yml @@ -0,0 +1,2 @@ +bugfixes: +- winrm - does not hang when attempting to get process output when stdin write fai...
diff --git a/test/units/plugins/connection/test_winrm.py b/test/units/plugins/connection/test_winrm.py index fa5357cb79811c..c08cdd9d7eb3c5 100644 --- a/test/units/plugins/connection/test_winrm.py +++ b/test/units/plugins/connection/test_winrm.py @@ -469,7 +469,7 @@ def test_exec_command_get_output_timeout(self, monkey...
["test/units/plugins/connection/test_winrm.py::TestWinRMKerbAuth::test_exec_command_get_output_timeout"]
["test/units/plugins/connection/test_winrm.py::TestWinRMKerbAuth::test_kinit_success_pexpect[options1-expected1]", "test/units/plugins/connection/test_winrm.py::TestWinRMKerbAuth::test_kinit_error_pexpect", "test/units/plugins/connection/test_winrm.py::TestConnectionWinRM::test_set_options[options6-direct6-expected6-Tr...
ghcr.io/scaleapi/swe-bench_pro-v2:instance_ansible__ansible-942424e10b2095a173dbd78e7128f52f7995849b-v30a923fb5c164d6cd18280c02422f75e611e8fb2
true
null
2
163
1
996
0
0.95
1
0.55
0.75
0.666
77.2855
2,060
swe_bench_promax::test::82
swe_bench_promax
test
82
bazelbuild__bazel-c_63f32ce
bazelbuild/bazel
bazelbuild/bazel
java
263c3a7a09213acc8ec68c45a5fe75fcf77b8ce4
Bazel's repository downloader relies on URL rewriting configurations to redirect artifact downloads—commonly used for internal mirrors, security policies, or compliance workflows. These rules are typically defined in external configuration files and supplied via the `--downloader_config` command-line flag. Currently, ...
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/BazelRepositoryModule.java b/src/main/java/com/google/devtools/build/lib/bazel/BazelRepositoryModule.java --- a/src/main/java/com/google/devtools/build/lib/bazel/BazelRepositoryModule.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/BazelReposit...
diff --git a/src/test/java/com/google/devtools/build/lib/bazel/repository/downloader/UrlRewriterTest.java b/src/test/java/com/google/devtools/build/lib/bazel/repository/downloader/UrlRewriterTest.java --- a/src/test/java/com/google/devtools/build/lib/bazel/repository/downloader/UrlRewriterTest.java +++ b/src/test/java/...
null
null
key4127/refactor-dockerhub:bazelbuild__bazel-c_63f32ce
true
1765273202
4
134
null
3,150
0
0.9
1
0.47
0.85
0.946667
77.2725
2,061
swe_gym::train::670
swe_gym
train
670
conan-io__conan-15422
conan-io/conan
conan-io/conan
python
f08b9924712cf0c2f27b93cbb5206d56d0d824d8
[feature] set jobs parameter in CMakePreset buildPresets to get parallel builds when invoking cmake after conan install ### What is your suggestion? the generated CMakePresets.json does not contain the "jobs" parameter, making it default to 1 (at least sometimes). when manually set to a higher number, the cmake build ...
Hi @Hailios Thanks for your suggestion. I think this could make sense, might be doable, I'll check with the team.
diff --git a/conan/tools/cmake/presets.py b/conan/tools/cmake/presets.py --- a/conan/tools/cmake/presets.py +++ b/conan/tools/cmake/presets.py @@ -6,6 +6,7 @@ from conan.tools.cmake.layout import get_build_folder_custom_vars from conan.tools.cmake.toolchain.blocks import GenericSystemBlock from conan.tools.cmake.uti...
diff --git a/conans/test/integration/toolchains/cmake/test_cmaketoolchain.py b/conans/test/integration/toolchains/cmake/test_cmaketoolchain.py --- a/conans/test/integration/toolchains/cmake/test_cmaketoolchain.py +++ b/conans/test/integration/toolchains/cmake/test_cmaketoolchain.py @@ -1214,3 +1214,11 @@ def test_avoid...
["conans/test/integration/toolchains/cmake/test_cmaketoolchain.py::test_presets_njobs"]
["conans/test/integration/toolchains/cmake/test_cmaketoolchain.py::test_extra_flags", "conans/test/integration/toolchains/cmake/test_cmaketoolchain.py::test_cross_build_user_toolchain_confs", "conans/test/integration/toolchains/cmake/test_cmaketoolchain.py::test_cross_build", "conans/test/integration/toolchains/cmake/t...
null
true
2024-01-09T13:09:29Z
1
3
1
1,333
0
0.85
1
0.55
0.8
0.232167
77.2715
2,062
swe_bench_promax::test::47
swe_bench_promax
test
47
deskflow__deskflow-8413
deskflow/deskflow
deskflow/deskflow
cpp
632be4b240c62574d8b75602ebf8842b828326b5
The KeyMap class serves as a foundational component within the deskflow module, responsible for managing keyboard mapping logic and synthesizing keystroke behavior. During routine maintenance and test infrastructure evaluation, an architectural concern was identified in its header implementation. Specifically, the KeyM...
diff --git a/src/lib/deskflow/KeyMap.h b/src/lib/deskflow/KeyMap.h --- a/src/lib/deskflow/KeyMap.h +++ b/src/lib/deskflow/KeyMap.h @@ -14,10 +14,6 @@ #include <set> #include <vector> -#ifdef TEST_ENV -#include "gtest/gtest_prod.h" -#endif - namespace deskflow { //! Key map @@ -27,6 +23,9 @@ This class provides ...
diff --git a/src/unittests/deskflow/CMakeLists.txt b/src/unittests/deskflow/CMakeLists.txt --- a/src/unittests/deskflow/CMakeLists.txt +++ b/src/unittests/deskflow/CMakeLists.txt @@ -45,6 +45,13 @@ create_test( WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/src/lib/deskflow" ) +create_test( + NAME KeyMapTests + DEPENDS...
null
null
key4127/refactor-dockerhub:deskflow__deskflow-8413
true
1746714404
1
17
null
2,200
0
0.9
1
0.4
1
0.423333
77.27
2,063
swe_gym::train::2117
swe_gym
train
2,117
Project-MONAI__MONAI-4272
Project-MONAI/MONAI
project-monai/monai
python
0c243b937e94a628c6a1c612e278962bd2e1ebf4
Constructor `mode` argument ignored in SpatialResample There is a `mode` argument in `SpatialResample.__call__` method and in `SpatialResample` constructor. It has default values in both `__call__` method and in constructor, which causes constructor value is always ignored.
Hi @karwojan , Thanks for your interest here. If the `mode` arg of `__call__` is `None`, it will use the mode from `self.mode`. Thanks. I think the default value in `__call__` could be improved to None https://github.com/Project-MONAI/MONAI/blob/1dfeb7430c37524c0dab02427a5489c329f77b66/monai/transforms/spatial...
diff --git a/monai/transforms/spatial/array.py b/monai/transforms/spatial/array.py --- a/monai/transforms/spatial/array.py +++ b/monai/transforms/spatial/array.py @@ -137,8 +137,8 @@ def __call__( src_affine: Optional[NdarrayOrTensor] = None, dst_affine: Optional[NdarrayOrTensor] = None, spat...
diff --git a/tests/test_resample_to_match.py b/tests/test_resample_to_match.py --- a/tests/test_resample_to_match.py +++ b/tests/test_resample_to_match.py @@ -44,6 +44,8 @@ def test_correct(self, reader, writer): loader = Compose([LoadImaged(("im1", "im2"), reader=reader), EnsureChannelFirstd(("im1", "im2"...
["tests/test_resample_to_match.py::TestResampleToMatch::test_correct_1", "tests/test_resample_to_match.py::TestResampleToMatch::test_correct_0", "tests/test_spatial_resample.py::TestSpatialResample::test_ill_affine"]
["tests/test_spatial_resample.py::TestSpatialResample::test_flips_134", "tests/test_spatial_resample.py::TestSpatialResample::test_flips_093", "tests/test_spatial_resample.py::TestSpatialResample::test_flips_041", "tests/test_spatial_resample.py::TestSpatialResample::test_flips_149", "tests/test_spatial_resample.py::Te...
null
true
2022-05-13T17:59:25Z
1
8
3
274
0
0.85
1
0.4
1
0.072333
77.267
2,064
swe_gym::train::2272
swe_gym
train
2,272
Project-MONAI__MONAI-6055
Project-MONAI/MONAI
project-monai/monai
python
68074f07e4c04657f975cff2269ebe937f50e619
GridPatch transform support for max num_patches while filtering **Is your feature request related to a problem? Please describe.** GridPatch is very useful to tile on the fly for a fixed number of patches. One usually uses an estimate of the average of number of tiles per slide. For slide with fewer tissue patches tha...
Hi @kenza-bouzid, Thank you very much for reporting this. you are right, it either gives specific number of patches or filter patches, and this is by design. I see your point about having max_num_patches while filtering the background. I will set it as a feature request and will evaluate it if we can prioritize its im...
diff --git a/monai/transforms/spatial/array.py b/monai/transforms/spatial/array.py --- a/monai/transforms/spatial/array.py +++ b/monai/transforms/spatial/array.py @@ -68,7 +68,7 @@ optional_import, ) from monai.utils.deprecate_utils import deprecated_arg -from monai.utils.enums import GridPatchSort, PytorchPadMo...
diff --git a/tests/test_grid_patch.py b/tests/test_grid_patch.py --- a/tests/test_grid_patch.py +++ b/tests/test_grid_patch.py @@ -38,25 +38,32 @@ TEST_CASE_9 = [{"patch_size": (2, 2), "num_patches": 4, "sort_fn": "min"}, A, [A11, A12, A21, A22]] TEST_CASE_10 = [{"patch_size": (2, 2), "overlap": 0.5, "num_patches": 3...
["tests/test_grid_patch.py::TestGridPatch::test_grid_patch_49", "tests/test_grid_patchd.py::TestGridPatchd::test_grid_patchd_15", "tests/test_grid_patchd.py::TestGridPatchd::test_grid_patchd_49", "tests/test_grid_patch.py::TestGridPatch::test_grid_patch_15", "tests/test_grid_patch.py::TestGridPatch::test_grid_patch_32"...
["tests/test_grid_patchd.py::TestGridPatchd::test_grid_patchd_26", "tests/test_grid_patch.py::TestGridPatch::test_grid_patch_06", "tests/test_grid_patchd.py::TestGridPatchd::test_grid_patchd_03", "tests/test_grid_patchd.py::TestGridPatchd::test_grid_patchd_42", "tests/test_grid_patch.py::TestGridPatch::test_grid_patch_...
null
true
2023-02-23T16:19:59Z
2
163
6
1,846
0.01087
0.85
1
0.55
0.75
0.807667
77.252117
2,065
swe_bench_pro::test::136
swe_bench_pro
test
136
instance_element-hq__element-web-582a1b093fc0b77538052f45cbb9c7295f991b51-vnan
element-hq/element-web
element-hq/element-web
javascript
ec6bb880682286216458d73560aa91746d4f099b
## Title Limit decryption failure tracking to visible events ## Description The decryption failure tracking system currently observes all events with decryption errors, regardless of their visibility in the UI. This results in unnecessary tracking of events that users may never see, which can skew analytics, degrade pe...
## Requirements - `DecryptionFailureTracker` must be constructable with two arguments: a tracking function `fn(count, trackedErrCode)` invoked when failures are reported, and an error-code mapping function `errorCodeMapFn(errcode)` that returns the aggregated error code to report. Construction must throw if either argu...
diff --git a/src/DecryptionFailureTracker.ts b/src/DecryptionFailureTracker.ts index 5db75fe0f37..1ee985dfc79 100644 --- a/src/DecryptionFailureTracker.ts +++ b/src/DecryptionFailureTracker.ts @@ -16,6 +16,11 @@ limitations under the License. import { MatrixError } from "matrix-js-sdk/src/http-api"; import { Matrix...
diff --git a/test/DecryptionFailureTracker-test.js b/test/DecryptionFailureTracker-test.js index f8369672de1..f4f42d14d7e 100644 --- a/test/DecryptionFailureTracker-test.js +++ b/test/DecryptionFailureTracker-test.js @@ -16,13 +16,13 @@ limitations under the License. import { MatrixEvent } from 'matrix-js-sdk'; -i...
["test/DecryptionFailureTracker-test.js | DecryptionFailureTracker | tracks a failed decryption for a visible event", "test/DecryptionFailureTracker-test.js | DecryptionFailureTracker | tracks a failed decryption for an event that becomes visible later", "test/DecryptionFailureTracker-test.js | DecryptionFailureTracker...
[]
ghcr.io/scaleapi/swe-bench_pro-v2:instance_element-hq__element-web-582a1b093fc0b77538052f45cbb9c7295f991b51-vnan
true
null
3
163
10
929
0
0.95
1
0.55
0.75
0.654833
77.252
2,066
swe_bench_pro::test::371
swe_bench_pro
test
371
instance_gravitational__teleport-eda668c30d9d3b56d9c69197b120b01013611186
gravitational/teleport
gravitational/teleport
go
4f6f52f86d65f506d1884a9f56bcd919a8744734
# Title: kubectl exec and port-forward requests use the right dialer ## Description Kubernetes proxy connections that need to dial into a cluster including kubectl exec and port-forward—must establish sessions through the correct path depending on how the target cluster is reached. When direct local credentials exist...
## Requirements - `kubeClusterEndpoint` must represent a Kubernetes service endpoint with `addr` and `serverID` fields. - `clusterSession` must store candidate endpoints in `kubeClusterEndpoints` and the active connection address in `kubeAddress`. - When `teleportCluster.isRemote` is true, `newClusterSession` must su...
diff --git a/lib/kube/proxy/forwarder.go b/lib/kube/proxy/forwarder.go index 60887bf0301e0..509d8c4021462 100644 --- a/lib/kube/proxy/forwarder.go +++ b/lib/kube/proxy/forwarder.go @@ -32,6 +32,7 @@ import ( "time" "github.com/gravitational/teleport" + "github.com/gravitational/teleport/api/constants" apidefaul...
diff --git a/lib/kube/proxy/forwarder_test.go b/lib/kube/proxy/forwarder_test.go index 4bbc6931c6e14..82333e0d9d633 100644 --- a/lib/kube/proxy/forwarder_test.go +++ b/lib/kube/proxy/forwarder_test.go @@ -591,252 +591,177 @@ func (s ForwarderSuite) TestSetupImpersonationHeaders(c *check.C) { } } -func TestNewClust...
["TestGetKubeCreds", "TestGetKubeCreds/kubernetes_service,_no_kube_creds", "TestGetKubeCreds/proxy_service,_no_kube_creds", "TestGetKubeCreds/legacy_proxy_service,_no_kube_creds", "TestGetKubeCreds/kubernetes_service,_with_kube_creds", "TestGetKubeCreds/proxy_service,_with_kube_creds", "TestGetKubeCreds/legacy_proxy_se...
[]
ghcr.io/scaleapi/swe-bench_pro-v2:instance_gravitational__teleport-eda668c30d9d3b56d9c69197b120b01013611186
true
null
1
187
28
908
0
0.95
1
0.55
0.75
0.651333
77.2415
2,067
swe_bench_pro::test::250
swe_bench_pro
test
250
instance_future-architect__vuls-01441351c3407abfc21c48a38e28828e1b504e0c
future-architect/vuls
future-architect/vuls
go
4a28722e4aa14f1d125ae789b9966c658d60c0ed
# SNMP2CPE fails to emit correct CPEs for Fortinet – FortiSwitch-108E case ## Description: When converting SNMP responses for Fortinet gear, the tool recognizes FortiGate but not other lines, producing incomplete CPE output or an incorrect OS product. In particular, when the physical name includes a product prefix (e....
## Requirements - When the manufacturer is “Fortinet” and EntPhysicalTables[1] exists, if EntPhysicalName starts with a Fortinet product‑line prefix applicable to the case (e.g. FS_ for FortiSwitch), the converter must handle it as a specific Fortinet device. - Upon detecting a valid prefix, extract the model from the...
diff --git a/contrib/snmp2cpe/pkg/cpe/cpe.go b/contrib/snmp2cpe/pkg/cpe/cpe.go index 0454162300..8c8f5448d8 100644 --- a/contrib/snmp2cpe/pkg/cpe/cpe.go +++ b/contrib/snmp2cpe/pkg/cpe/cpe.go @@ -86,17 +86,288 @@ func Convert(result snmp.Result) []string { } case "Fortinet": if t, ok := result.EntPhysicalTables[...
diff --git a/contrib/snmp2cpe/pkg/cpe/cpe_test.go b/contrib/snmp2cpe/pkg/cpe/cpe_test.go index 01d061c60a..139f5b9f45 100644 --- a/contrib/snmp2cpe/pkg/cpe/cpe_test.go +++ b/contrib/snmp2cpe/pkg/cpe/cpe_test.go @@ -188,6 +188,17 @@ func TestConvert(t *testing.T) { }, want: []string{"cpe:2.3:h:fortinet:fortigate...
["TestConvert", "TestConvert/FortiSwitch-108E"]
["TestConvert/Cisco_NX-OS_Version_7.1(4)N1(1)", "TestConvert/Cisco_IOS_Version_15.1(4)M3", "TestConvert/Cisco_IOS_Version_15.1(4)M4", "TestConvert/Cisco_IOS_Vresion_15.5(3)M_on_Cisco_892J-K9-V02", "TestConvert/Cisco_IOS_Version_15.4(3)M5_on_Cisco_C892FSP-K9-V02", "TestConvert/Cisco_IOS_Version_12.2(17d)SXB11", "TestCon...
ghcr.io/scaleapi/swe-bench_pro-v2:instance_future-architect__vuls-01441351c3407abfc21c48a38e28828e1b504e0c
true
null
1
277
2
888
0
0.95
1
0.55
0.75
0.648
77.2315
2,068
swe_gym::train::708
swe_gym
train
708
iterative__dvc-1684
iterative/dvc
iterative/dvc
python
610cfa984cbd88056cc3fb13996954a40b7cbcf7
dvc repro --force is ignored when stage does not change Hi guys, an unchanged stage does not reproduce even when using `dvc repro --force` ```bash echo "Hello" > foo.txt dvc run -d foo.txt -o bar.txt 'echo foo.txt > bar.txt; date > bar.txt' # [##############################] 100% bar.txt # Running command: # echo fo...
Hi @prihoda ! Great catch! This happens because of https://github.com/iterative/dvc/blob/0.29.0/dvc/stage.py#L660 and https://github.com/iterative/dvc/blob/0.29.0/dvc/stage.py#L644 in `dvc import` case, which do not care about `--force` or `--ignore-build-cache` options. @mroutis Could you please take a look? :sligh...
diff --git a/dvc/remote/azure.py b/dvc/remote/azure.py --- a/dvc/remote/azure.py +++ b/dvc/remote/azure.py @@ -10,7 +10,7 @@ BlockBlobService = None import dvc.logger as logger -from dvc.utils import tmp_fname +from dvc.utils import tmp_fname, move from dvc.utils.compat import urlparse, makedirs from dvc.prog...
diff --git a/tests/test_repro.py b/tests/test_repro.py --- a/tests/test_repro.py +++ b/tests/test_repro.py @@ -21,6 +21,7 @@ from dvc.remote.local import RemoteLOCAL from dvc.stage import Stage, StageFileDoesNotExistError from dvc.system import System +from dvc.output.base import OutputBase from dvc.exceptions impo...
["tests/test_repro.py::TestReproAlreadyCached::test_force_with_dependencies", "tests/test_repro.py::TestReproAlreadyCached::test_force_import"]
["tests/test_repro.py::TestReproExternalLOCAL::test", "tests/test_repro.py::TestReproDepUnderDir::test", "tests/test_repro.py::TestNonExistingOutput::test", "tests/test_repro.py::TestReproCyclicGraph::test", "tests/test_repro.py::TestCmdRepro::test", "tests/test_repro.py::TestReproNoCommit::test", "tests/test_repro.py:...
null
true
2019-03-05T03:49:32Z
8
36
2
1,536
0
0.85
1
0.7
0.6
0.376
77.228
2,069
swe_gym::train::2383
swe_gym
train
2,383
modin-project__modin-7142
modin-project/modin
modin-project/modin
python
3bf5d8ff4311a3f7d68c721fbae422dd0849f13e
Add an ability to modify config variables using context manager The idea is to make the config variables easier to switch: ```python import modin.config as cfg with cfg.RangePartitioning(True): df.groupby(...) # use range-partitioning # do not use range partitioning df.groupby(...) ```
diff --git a/modin/config/__init__.py b/modin/config/__init__.py --- a/modin/config/__init__.py +++ b/modin/config/__init__.py @@ -56,12 +56,13 @@ TestReadFromSqlServer, TrackFileLeaks, ) -from modin.config.pubsub import Parameter, ValueSource +from modin.config.pubsub import Parameter, ValueSource, context ...
diff --git a/modin/config/test/test_envvars.py b/modin/config/test/test_envvars.py --- a/modin/config/test/test_envvars.py +++ b/modin/config/test/test_envvars.py @@ -298,3 +298,61 @@ def get_values(): finally: deprecated_var.put(old_depr_val) new_var.put(old_new_var) + + +@pytest.mark.parametriz...
["modin/config/test/test_envvars.py::test_context_manager_update_config[modify_config0]"]
["modin/config/test/test_envvars.py::test_deprecated_bool_vars_equals[False-ExperimentalNumPyAPI-ModinNumpy]", "modin/config/test/test_envvars.py::test_hdk_envvar", "modin/config/test/test_envvars.py::test_custom_help[str]", "modin/config/test/test_envvars.py::test_deprecated_bool_vars_warnings[ExperimentalGroupbyImpl-...
null
true
2024-04-02T14:28:29Z
2
52
1
292
0.05
0.85
1
0.55
1
0.222
77.214625
2,070
swe_gym::train::2375
swe_gym
train
2,375
modin-project__modin-6763
modin-project/modin
modin-project/modin
python
794ac6fa9a41cf378b8e92ea438b222fef61b3b3
Support carrying dtypes in an index cache The main goal is to preserve dtype for the 'a' column in the following case. Currently, we're losing dtypes at the 'groupby' stage, where we are supposed to pass the 'by' dtypes to a lazy `ModinIndex`, however, it doesn't support such behaviour. ```python import modin.pandas as...
diff --git a/modin/core/dataframe/algebra/groupby.py b/modin/core/dataframe/algebra/groupby.py --- a/modin/core/dataframe/algebra/groupby.py +++ b/modin/core/dataframe/algebra/groupby.py @@ -15,6 +15,7 @@ import pandas +from modin.core.dataframe.pandas.metadata import ModinIndex from modin.error_message import Er...
diff --git a/modin/test/storage_formats/pandas/test_internals.py b/modin/test/storage_formats/pandas/test_internals.py --- a/modin/test/storage_formats/pandas/test_internals.py +++ b/modin/test/storage_formats/pandas/test_internals.py @@ -2319,3 +2319,50 @@ def test_preserve_dtypes_reset_index(self, drop, has_materiali...
["modin/test/storage_formats/pandas/test_internals.py::TestZeroComputationDtypes::test_groupby_index_dtype"]
["modin/test/storage_formats/pandas/test_internals.py::test_reorder_labels_cache[unbalanced_partitioning-no_reordering-projection_only]", "modin/test/storage_formats/pandas/test_internals.py::TestZeroComputationDtypes::test_preserve_dtypes_setitem[3.5-value_dtype0-unknown]", "modin/test/storage_formats/pandas/test_inte...
null
true
2023-11-21T14:56:15Z
4
112
1
642
0
0.85
1
0.55
0.85
0.480333
77.2035
2,071
swe_bench_promax::test::29
swe_bench_promax
test
29
aviggiano__redis-roaring-117
aviggiano/redis-roaring
aviggiano/redis-roaring
c
2cebda0092455c238ed003c0e51b5534ab775daf
When using the `bitmap64_range_int_array` function (exposed via the R64.RANGEINTARRAY command) to extract a specific contiguous segment of set bits from a 64-bit roaring bitmap, the function consistently returns incorrect results. Rather than receiving the exact sequence of integers corresponding to the requested offse...
diff --git a/.editorconfig b/.editorconfig new file mode 100644 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,60 @@ +[*] +indent_size=2 +cpp_indent_braces=false +cpp_indent_multi_line_relative_to=innermost_parenthesis +cpp_indent_within_parentheses=indent +cpp_indent_preserve_within_parentheses=false +cpp_indent_case_la...
diff --git a/tests/test-utils.h b/tests/test-utils.h new file mode 100644 --- /dev/null +++ b/tests/test-utils.h @@ -0,0 +1,444 @@ +#ifndef TEST_UTILS_H +#define TEST_UTILS_H + +#include <stdio.h> +#include <stdlib.h> +#include <stdint.h> +#include <string.h> +#include <assert.h> +#include <stdarg.h> +#include <time.h>...
null
null
key4127/refactor-dockerhub:aviggiano__redis-roaring-117
true
1756294437
6
127
null
3,175
0
0.9
1
0.47
0.85
0.923333
77.2025
2,072
swe_gym::train::1000
swe_gym
train
1,000
dask__dask-8895
dask/dask
dask/dask
python
1b1a96b4ddf31d0879e718be463a731af7f1d086
`da.from_array` doesn't work as expected for scalar masked numpy array inputs Hello, I've noticed some unexpected behaviour when passing scalar masked numpy arrays to `da.from_array`, e.g. `x = da.from_array(np.ma.array(9, mask=True))`. When `x` is computed, we don't get the same numpy array input back, rather we get ...
@davidhassell Thank you for opening this! @jcrist @jsignell what do you think about the proposed solution? That seems like a very good solution @davidhassell! Please feel free to open a PR :)
diff --git a/dask/array/core.py b/dask/array/core.py --- a/dask/array/core.py +++ b/dask/array/core.py @@ -3303,7 +3303,7 @@ def from_array( if lock is True: lock = SerializableLock() - is_ndarray = type(x) is np.ndarray + is_ndarray = type(x) in (np.ndarray, np.ma.core.MaskedArray) is_single...
diff --git a/dask/array/tests/test_array_core.py b/dask/array/tests/test_array_core.py --- a/dask/array/tests/test_array_core.py +++ b/dask/array/tests/test_array_core.py @@ -2572,13 +2572,23 @@ def test_from_array_tasks_always_call_getter(x, chunks, inline_array): assert_eq(x, dx) -def test_from_array_ndarray...
["dask/array/tests/test_array_core.py::test_from_array_ndarray_onechunk[x1]", "dask/array/tests/test_array_core.py::test_from_array_ndarray_onechunk[x2]", "dask/array/tests/test_array_core.py::test_from_array_ndarray_onechunk[x3]", "dask/array/tests/test_array_core.py::test_from_array_ndarray_onechunk[x5]", "dask/array...
["dask/array/tests/test_array_core.py::test_normalize_chunks_nan", "dask/array/tests/test_array_core.py::test_stack_scalars", "dask/array/tests/test_array_core.py::test_astype", "dask/array/tests/test_array_core.py::test_meta[dtype1]", "dask/array/tests/test_array_core.py::test_vindex_basic", "dask/array/tests/test_arr...
null
true
2022-04-07T13:17:36Z
2
9
5
3,924
0.2
0.85
1
0.77
1
0.53
77.2017
2,073
swe_bench_pro::test::464
swe_bench_pro
test
464
instance_navidrome__navidrome-23bebe4e06124becf1000e88472ae71a6ca7de4c
navidrome/navidrome
navidrome/navidrome
go
8808eadddaa517ab58ce33a70d08f37b0ffdef0e
# **Title: `getOpenSubsonicExtensions` Endpoint Requires Authentication Despite Intended Public Access** ## Current Behavior The `getOpenSubsonicExtensions` endpoint is currently part of the protected route group in the Subsonic API. As a result, it requires user authentication to access, even though the data it retur...
## Requirements - Ensure that the `getOpenSubsonicExtensions` endpoint is registered outside of the authentication middleware in the `server/subsonic/api.go` router, so it can be accessed without login credentials. - Ensure that `getOpenSubsonicExtensions` continues to support the `?f=json` query parameter and respond...
diff --git a/server/subsonic/api.go b/server/subsonic/api.go index 405646b6237..dfa9450860f 100644 --- a/server/subsonic/api.go +++ b/server/subsonic/api.go @@ -68,141 +68,146 @@ func New(ds model.DataStore, artwork artwork.Artwork, streamer core.MediaStreame func (api *Router) routes() http.Handler { r := chi.New...
diff --git a/server/subsonic/opensubsonic_test.go b/server/subsonic/opensubsonic_test.go new file mode 100644 index 00000000000..d92ea4c6710 --- /dev/null +++ b/server/subsonic/opensubsonic_test.go @@ -0,0 +1,44 @@ +package subsonic_test + +import ( + "encoding/json" + "net/http" + "net/http/httptest" + + "github.com/n...
["TestSubsonicApi"]
[]
ghcr.io/scaleapi/swe-bench_pro-v2:instance_navidrome__navidrome-23bebe4e06124becf1000e88472ae71a6ca7de4c
true
null
1
257
1
807
0
0.95
1
0.55
0.75
0.6345
77.191
2,074
swe_bench_pro::test::118
swe_bench_pro
test
118
instance_ansible__ansible-f8ef34672b961a95ec7282643679492862c688ec-vba6da65a0f3baefda7a058ebbd0a8dcafb8512f5
ansible/ansible
ansible/ansible
python
e889b1063f60f6b99f5d031f7e903f7be5f58900
## Title: Expose and preserve the originating YAML object (`.obj`) on Ansible errors so location-aware messages can be rendered when loading tasks. ### Description When a parse error occurs while loading a task (for example, a malformed key=value task definition), the user often sees a failure that lacks actionable ...
## Requirements - The originating YAML object passed to an `AnsibleError` (and its subclasses, e.g. `AnsibleParserError`) must be stored on a publicly accessible attribute named `obj` (not a private `_obj`), and must be readable and assignable after construction. All internal code that previously read or wrote `_obj` m...
diff --git a/changelogs/fragments/72276-provide-better-vault-error.yml b/changelogs/fragments/72276-provide-better-vault-error.yml new file mode 100644 index 00000000000000..427d87701e4712 --- /dev/null +++ b/changelogs/fragments/72276-provide-better-vault-error.yml @@ -0,0 +1,3 @@ +minor_changes: +- vault - Provide be...
diff --git a/test/units/config/test_manager.py b/test/units/config/test_manager.py index 15c9c1fb50..91f7ad7115 100644 --- a/test/units/config/test_manager.py +++ b/test/units/config/test_manager.py @@ -134,7 +134,7 @@ class TestConfigManager: def test_entry_as_vault_var(self): class MockVault: - ...
["test/units/playbook/test_task.py::TestTask::test_load_task_kv_form_error_36848", "test/units/config/test_manager.py::TestConfigManager::test_vault_encrypted_unicode_forwards_obj_to_vault_decrypt", "test/units/config/test_manager.py::TestConfigManager::test_vault_lib_decrypt_forwards_obj_to_raised_error"]
["test/units/playbook/test_task.py::TestTask::test_construct_task_with_role", "test/units/playbook/test_task.py::TestTask::test_delegate_to_parses", "test/units/playbook/test_task.py::TestTask::test_local_action_conflicts_with_delegate", "test/units/playbook/test_task.py::TestTask::test_can_load_module_complex_form", "...
ghcr.io/scaleapi/swe-bench_pro-v2:instance_ansible__ansible-f8ef34672b961a95ec7282643679492862c688ec-vba6da65a0f3baefda7a058ebbd0a8dcafb8512f5
true
null
7
52
3
1,337
0
0.95
1
0.7
0.6
0.396167
77.1885
2,075
swe_gym::train::509
swe_gym
train
509
python__mypy-12222
python/mypy
python/mypy
python
feca706d5f2540003ae8b24009d56dac7c067eba
Improve the "Argument must be a mapping" error message **Feature** This could also be classified as a bug report, but it's also a feature request. Consider code like this: ```py from typing import Any, Optional def test(**kwargs): ... kwargs: Optional[Any] test(**kwargs) ``` Now, this is obviously wrong on pur...
Yes, we should improve this. PR welcome! @JelleZijlstra I would like to work on this issue. I am a beginner but really interested in open source. Go for it! I haven't looked at the code for this error, but here's what I would do: - Find the place where the `must be a mapping` error is raised. Start by grepping fo...
diff --git a/mypy/messages.py b/mypy/messages.py --- a/mypy/messages.py +++ b/mypy/messages.py @@ -954,11 +954,8 @@ def invalid_keyword_var_arg(self, typ: Type, is_mapping: bool, context: Context) if isinstance(typ, Instance) and is_mapping: self.fail('Keywords must be strings', context) ...
diff --git a/test-data/unit/check-kwargs.test b/test-data/unit/check-kwargs.test --- a/test-data/unit/check-kwargs.test +++ b/test-data/unit/check-kwargs.test @@ -350,12 +350,15 @@ class A: pass [builtins fixtures/dict.pyi] [case testInvalidTypeForKeywordVarArg] -from typing import Dict +# flags: --strict-optional ...
["mypy/test/testcheck.py::TypeCheckSuite::check-kwargs.test::testInvalidTypeForKeywordVarArg"]
["mypy/test/testcheck.py::TypeCheckSuite::check-kwargs.test::testPassingKeywordVarArgsToNonVarArgsFunction"]
null
true
2022-02-20T17:34:05Z
1
5
1
1,099
0
0.85
1
0.55
0.8
0.199833
77.1745
2,076
swe_gym::train::1016
swe_gym
train
1,016
dask__dask-10695
dask/dask
dask/dask
python
51f90b62bee920bdd84e9c210fcddbea6c7c43a0
Add a `.__wrapped__` (or similar) attribute for `@dask.delayed`-decorated functions It would be nice if the `@dask.delayed`-decorated function had an attribute that could be called to return the undecorated function. Drawing inspiration from the widely used [`functools.wraps()`](https://docs.python.org/3/library/functo...
I'm not opposed On Fri, Dec 8, 2023 at 5:52 PM Andrew S. Rosen ***@***.***> wrote: > It would be nice if the @dask.delayed-decorated function had an attribute > that could be called to return the undecorated function. Drawing > inspiration from the widely used functools.wraps() > <https://docs.python.org/3/li...
diff --git a/dask/delayed.py b/dask/delayed.py --- a/dask/delayed.py +++ b/dask/delayed.py @@ -716,6 +716,10 @@ def __name__(self): def __doc__(self): return self._obj.__doc__ + @property + def __wrapped__(self): + return self._obj + class DelayedAttr(Delayed): __slots__ = ("_obj", ...
diff --git a/dask/tests/test_delayed.py b/dask/tests/test_delayed.py --- a/dask/tests/test_delayed.py +++ b/dask/tests/test_delayed.py @@ -855,3 +855,4 @@ def add(x, y): assert add.__name__ == "add" assert add.__doc__ == "This is a docstring" + assert add.__wrapped__(1, 2) == 3
["dask/tests/test_delayed.py::test_delayed_function_attributes_forwarded"]
["dask/tests/test_delayed.py::test_delayed_with_dataclass_with_custom_init", "dask/tests/test_delayed.py::test_finalize_name", "dask/tests/test_delayed.py::test_literates", "dask/tests/test_delayed.py::test_keys_from_array", "dask/tests/test_delayed.py::test_attributes", "dask/tests/test_delayed.py::test_delayed_decora...
null
true
2023-12-12T16:09:06Z
1
4
1
1,108
0
0.85
1
0.55
0.8
0.198
77.169
2,077
swe_bench_pro::test::217
swe_bench_pro
test
217
instance_flipt-io__flipt-b2cd6a6dd73ca91b519015fd5924fde8d17f3f06
flipt-io/flipt
flipt-io/flipt
go
d52e03fd5781eabad08e9a5b33c9283b8ffdb1ce
# Title: Refactor telemetry reporter lifecycle ## Description The telemetry reporter in Flipt needs a refactor. It should be created from the application configuration, an analytics key, and Flipt instance information, building its analytics client internally from the key. Reporting should use the state file under the...
## Requirements - The configuration must expose `Meta.StateDirectory` for the state directory path and `Meta.TelemetryEnabled` to turn telemetry on or off. - `NewReporter` must take a `config.Config`, a `*zap.Logger`, an analytics key as a `string`, and an `info.Flipt`, in that order, and return `(*Reporter, error)`. ...
diff --git a/cmd/flipt/main.go b/cmd/flipt/main.go index b3984d3410..99e2fa74a4 100644 --- a/cmd/flipt/main.go +++ b/cmd/flipt/main.go @@ -7,8 +7,6 @@ import ( "errors" "fmt" "io/fs" - "io/ioutil" - "log" "net" "net/http" "os" @@ -68,7 +66,6 @@ import ( "google.golang.org/grpc/credentials/insecure" "goo...
diff --git a/internal/telemetry/telemetry_test.go b/internal/telemetry/telemetry_test.go index 63e2058..97cf6d8 100644 --- a/internal/telemetry/telemetry_test.go +++ b/internal/telemetry/telemetry_test.go @@ -51,20 +51,20 @@ func (m *mockFile) Truncate(_ int64) error { func TestNewReporter(t *testing.T) { var ( - ...
["TestNewReporter", "TestShutdown", "TestPing", "TestPing_Existing", "TestPing_Disabled", "TestPing_SpecifyStateDir", "TestReporterHasNoLegacyMethods"]
[]
ghcr.io/scaleapi/swe-bench_pro-v2:instance_flipt-io__flipt-b2cd6a6dd73ca91b519015fd5924fde8d17f3f06
true
null
3
164
7
726
0
0.95
1
0.55
0.75
0.621
77.1505
2,078
swe_gym::train::118
swe_gym
train
118
getmoto__moto-6410
getmoto/moto
getmoto/moto
python
1dfbeed5a72a4bd57361e44441d0d06af6a2e58a
server: Overwriting a binary object in S3 causes `/moto-api/data.json` to fail - **Moto version:** 759f26c6d (git cloned) - **Python version:** 3.11.4 - **OS:** macOS 13.4 After storing a binary file in S3 on the server and overwriting it, the server's dashboard fails to load due to an unhandled exception while fetchi...
diff --git a/moto/moto_api/_internal/responses.py b/moto/moto_api/_internal/responses.py --- a/moto/moto_api/_internal/responses.py +++ b/moto/moto_api/_internal/responses.py @@ -68,7 +68,7 @@ def model_data( if not attr.startswith("_"): try: ...
diff --git a/tests/test_core/test_moto_api.py b/tests/test_core/test_moto_api.py --- a/tests/test_core/test_moto_api.py +++ b/tests/test_core/test_moto_api.py @@ -14,6 +14,7 @@ if settings.TEST_SERVER_MODE else "http://motoapi.amazonaws.com" ) +data_url = f"{base_url}/moto-api/data.json" @mock_sqs @@ -3...
["tests/test_core/test_moto_api.py::test_overwriting_s3_object_still_returns_data"]
["tests/test_core/test_moto_api.py::test_model_data_is_emptied_as_necessary", "tests/test_core/test_moto_api.py::test_reset_api", "tests/test_core/test_moto_api.py::test_creation_error__data_api_still_returns_thing", "tests/test_core/test_moto_api.py::test_data_api", "tests/test_core/test_moto_api.py::TestModelDataRese...
null
true
2023-06-14 20:58:23
1
2
1
5,004
0
0.85
1
0.92
0.4
0.506667
77.14
2,079
swe_gym::train::1963
swe_gym
train
1,963
Project-MONAI__MONAI-7548
Project-MONAI/MONAI
project-monai/monai
python
95f69dea3d2ff9fb3d0695d922213aefaf5f0c39
Perceptual loss with medicalnet_resnet50_23datasets errors due to a typo. **Describe the bug** When trying to use `network_type=medicalnet_resnet50_23datasets`, I got the following error: ``` ValueError: Unrecognised criterion entered for Adversarial Loss. Must be one in: alex, vgg, squeeze, radimagenet_resnet50, medic...
diff --git a/monai/losses/perceptual.py b/monai/losses/perceptual.py --- a/monai/losses/perceptual.py +++ b/monai/losses/perceptual.py @@ -29,7 +29,7 @@ class PercetualNetworkType(StrEnum): squeeze = "squeeze" radimagenet_resnet50 = "radimagenet_resnet50" medicalnet_resnet10_23datasets = "medicalnet_resn...
diff --git a/tests/test_perceptual_loss.py b/tests/test_perceptual_loss.py --- a/tests/test_perceptual_loss.py +++ b/tests/test_perceptual_loss.py @@ -40,6 +40,11 @@ (2, 1, 64, 64, 64), (2, 1, 64, 64, 64), ], + [ + {"spatial_dims": 3, "network_type": "medicalnet_resnet50_23datasets", "i...
["tests/test_perceptual_loss.py::TestPerceptualLoss::test_shape_6", "tests/test_perceptual_loss.py::TestPerceptualLoss::test_identical_input_6"]
["tests/test_perceptual_loss.py::TestPerceptualLoss::test_identical_input_1", "tests/test_perceptual_loss.py::TestPerceptualLoss::test_medicalnet_on_2d_data", "tests/test_perceptual_loss.py::TestPerceptualLoss::test_shape_2", "tests/test_perceptual_loss.py::TestPerceptualLoss::test_shape_4", "tests/test_perceptual_loss...
null
true
2024-03-14T20:53:33Z
1
2
2
3,768
0
0.85
1
0.92
0.4
0.506667
77.14
2,080
swe_gym::train::1930
swe_gym
train
1,930
facebookresearch__hydra-1661
facebookresearch/hydra
facebookresearch/hydra
python
76f1d799720a0209313afc2faac270d50a415165
Double printed config Hey everybody, I have the problem that each log message is printed out twice. Once with the module name and once with HYDRA (see example output): ``` [2021-06-08 08:14:54,738][HYDRA] config initialized [2021-06-08 08:14:54,738][soundmap.util.config][INFO] - config initialized [2021-06-08 08:14:5...
1. Are you attempting to configure the logging directly in your application? 2. Can you produce a minimal runable example reproducing this? 1. No I'm not touching the logger library except for getting the logger object. 2. See below ``` import hydra import logging from omegaconf import DictConfig logger = ...
diff --git a/hydra/conf/__init__.py b/hydra/conf/__init__.py --- a/hydra/conf/__init__.py +++ b/hydra/conf/__init__.py @@ -125,9 +125,9 @@ class HydraConf: # Multi-run output configuration sweep: SweepDir = SweepDir() # Logging configuration for Hydra - hydra_logging: Any = MISSING + hydra_logging:...
diff --git a/tests/test_compose.py b/tests/test_compose.py --- a/tests/test_compose.py +++ b/tests/test_compose.py @@ -615,3 +615,32 @@ def test_initialize_without_config_path(tmpdir: Path) -> None: with warns(expected_warning=UserWarning, match=re.escape(expected)): with initialize(): pass +...
["tests/test_compose.py::test_error_assigning_null_to_logging_config[hydra.job_logging=null]", "tests/test_compose.py::test_error_assigning_null_to_logging_config[hydra.hydra_logging=null]"]
["tests/test_compose.py::TestAdd::test_force_add", "tests/test_compose.py::TestComposeInits::test_initialize_config_dir_ctx_with_relative_dir[None-overrides1-expected1]", "tests/test_compose.py::test_initialize_config_module_ctx", "tests/test_compose.py::TestConfigSearchPathOverride::test_searchpath_in_primary_config[w...
null
true
2021-06-09T17:42:07Z
1
4
2
1,032
0
0.85
1
0.55
0.8
0.185333
77.131
2,081
swe_bench_pro::test::421
swe_bench_pro
test
421
instance_internetarchive__openlibrary-7edd1ef09d91fe0b435707633c5cc9af41dedddf-v76304ecdb3a5954fcf13feb710e8c40fcf24b73c
internetarchive/openlibrary
internetarchive/openlibrary
python
1d2cbffd8cbda42d71d50a045a8d2b9ebfe1f781
# Title Autocomplete query handling is duplicated and inconsistently formatted ## Description The work, author, and subject autocomplete endpoints independently construct Solr queries, apply filters, handle embedded Open Library identifiers, and format response documents. This duplicated behavior makes autocomplete re...
## Requirements - The reusable autocomplete page must accept a search query and result limit and return the resulting autocomplete documents as JSON. - For a text search, the base autocomplete behavior must send Solr the exact escaped query `title:"{q}"^2 OR title:({q}*) OR name:"{q}"^2 OR name:({q}*)`. - Base autoco...
diff --git a/openlibrary/plugins/worksearch/autocomplete.py b/openlibrary/plugins/worksearch/autocomplete.py index 85c1ddac100..907d55f76fd 100644 --- a/openlibrary/plugins/worksearch/autocomplete.py +++ b/openlibrary/plugins/worksearch/autocomplete.py @@ -5,9 +5,13 @@ from infogami.utils import delegate from infog...
diff --git a/openlibrary/plugins/worksearch/tests/test_autocomplete.py b/openlibrary/plugins/worksearch/tests/test_autocomplete.py new file mode 100644 index 00000000000..ce0078b85a8 --- /dev/null +++ b/openlibrary/plugins/worksearch/tests/test_autocomplete.py @@ -0,0 +1,104 @@ +import json +from unittest.mock import p...
["openlibrary/plugins/worksearch/tests/test_autocomplete.py::test_autocomplete", "openlibrary/plugins/worksearch/tests/test_autocomplete.py::test_works_autocomplete"]
[]
ghcr.io/scaleapi/swe-bench_pro-v2:instance_internetarchive__openlibrary-7edd1ef09d91fe0b435707633c5cc9af41dedddf-v76304ecdb3a5954fcf13feb710e8c40fcf24b73c
true
null
2
212
2
678
0
0.95
1
0.55
0.75
0.613
77.1265
2,082
swe_bench_verified::test::403
swe_bench_verified
test
403
sphinx-doc__sphinx-8459
sphinx-doc/sphinx
sphinx-doc/sphinx
python
68aa4fb29e7dfe521749e1e14f750d7afabb3481
autodoc_type_aliases doesn't work when autodoc_typehints is set to "description" **Describe the bug** autodoc_type_aliases doesn't work when autodoc_typehints is set to "description". **To Reproduce** types.py ```python from __future__ import annotations from typing import Any, Dict JSONObject = Dict[str, Any] def...
diff --git a/sphinx/ext/autodoc/typehints.py b/sphinx/ext/autodoc/typehints.py --- a/sphinx/ext/autodoc/typehints.py +++ b/sphinx/ext/autodoc/typehints.py @@ -27,7 +27,7 @@ def record_typehints(app: Sphinx, objtype: str, name: str, obj: Any, if callable(obj): annotations = app.env.temp_data.setdef...
diff --git a/tests/test_ext_autodoc_configs.py b/tests/test_ext_autodoc_configs.py --- a/tests/test_ext_autodoc_configs.py +++ b/tests/test_ext_autodoc_configs.py @@ -777,6 +777,28 @@ def test_autodoc_type_aliases(app): ] +@pytest.mark.skipif(sys.version_info < (3, 7), reason='python 3.7+ is required.') +@pyte...
["tests/test_ext_autodoc_configs.py::test_autodoc_typehints_description_and_type_aliases"]
["tests/test_ext_autodoc_configs.py::test_autoclass_content_class", "tests/test_ext_autodoc_configs.py::test_autoclass_content_init", "tests/test_ext_autodoc_configs.py::test_autoclass_content_both", "tests/test_ext_autodoc_configs.py::test_autodoc_inherit_docstrings", "tests/test_ext_autodoc_configs.py::test_autodoc_d...
null
true
2020-11-20T16:44:10Z
1
2
1
1,256
0
1
1
0.85
0.4
0.216
77.123
2,083
swe_bench_promax::test::87
swe_bench_promax
test
87
bazelbuild__bazel-c_db9c87f
bazelbuild/bazel
bazelbuild/bazel
java
700db56ed782afb11ff25b65ba4651a8bc4a3e6a
During C++ compilation in Bazel, the `CcCompilationHelper` class manages the aggregation of source files, headers, and related artifacts. Several methods—such as `addPublicHeaders`, `addPrivateHeaders`, `addSources`, and `addModuleInterfaceSources`—accept input sequences intended to represent files participating in the...
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcCompilationHelper.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CcCompilationHelper.java --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcCompilationHelper.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/Cc...
diff --git a/src/test/java/com/google/devtools/build/lib/rules/cpp/BUILD b/src/test/java/com/google/devtools/build/lib/rules/cpp/BUILD --- a/src/test/java/com/google/devtools/build/lib/rules/cpp/BUILD +++ b/src/test/java/com/google/devtools/build/lib/rules/cpp/BUILD @@ -221,6 +221,7 @@ java_test( "//src/main/j...
null
null
key4127/refactor-dockerhub:bazelbuild__bazel-c_db9c87f
true
1739443928
2
275
null
2,516
0
0.9
1
0.55
0.75
0.919333
77.0955
2,084
swe_gym::train::1037
swe_gym
train
1,037
dask__dask-10521
dask/dask
dask/dask
python
da256320ef0167992f7183c3a275d092f5727f62
Incorrect behavior of override_with argument in dask.config.get I think #10499 may have introduced an accidental change in the behavior of dask.config.get (I think https://github.com/dask/dask-kubernetes/issues/816 is referring to the same thing, albeit somewhat cryptically 🙂): ``` # Previous behavior, 2023.9.1 and ea...
Thanks for surfacing @bnaul -- @crusaderky mentioned offline he'll look at this issue
diff --git a/dask/config.py b/dask/config.py --- a/dask/config.py +++ b/dask/config.py @@ -526,7 +526,7 @@ def get( key: str, default: Any = no_default, config: dict = config, - override_with: Any = no_default, + override_with: Any = None, ) -> Any: """ Get elements from global config @@...
diff --git a/dask/tests/test_config.py b/dask/tests/test_config.py --- a/dask/tests/test_config.py +++ b/dask/tests/test_config.py @@ -642,8 +642,9 @@ def test_deprecations_on_yaml(tmp_path, key): def test_get_override_with(): with dask.config.set({"foo": "bar"}): - # If override_with is omitted, get the...
["dask/tests/test_config.py::test_get_override_with"]
["dask/tests/test_config.py::test_deprecations_on_yaml[fuse-ave-width]", "dask/tests/test_config.py::test_update_defaults", "dask/tests/test_config.py::test_schema", "dask/tests/test_config.py::test_collect_yaml_paths", "dask/tests/test_config.py::test_get_set_canonical_name", "dask/tests/test_config.py::test_set_hard_...
null
true
2023-09-19T16:56:23Z
1
4
1
932
0
0.85
1
0.55
0.8
0.168667
77.081
2,085
swe_gym::train::675
swe_gym
train
675
iterative__dvc-6893
iterative/dvc
iterative/dvc
python
28f57933db4873b2f6fcb466e479754aa016de2f
Machine: use table for machine list and status outputs Current, machine list output follows the `dvc config -l`. Which is not suitable in showing multiple machines. Considering use table to replace it. ``` $ dvc machine list new.cloud=aws myaws.cloud=aws myaws.spot_price=100.00000 myaws.instance_hdd_size=10 myaws.insta...
diff --git a/dvc/command/machine.py b/dvc/command/machine.py --- a/dvc/command/machine.py +++ b/dvc/command/machine.py @@ -2,8 +2,10 @@ from dvc.command.base import CmdBase, append_doc_link, fix_subparsers from dvc.command.config import CmdConfig +from dvc.compare import TabularData from dvc.config import ConfigEr...
diff --git a/tests/func/experiments/test_show.py b/tests/func/experiments/test_show.py --- a/tests/func/experiments/test_show.py +++ b/tests/func/experiments/test_show.py @@ -13,6 +13,7 @@ from dvc.utils.fs import makedirs from dvc.utils.serialize import YAMLFileCorruptedError from tests.func.test_repro_multistage i...
["tests/unit/test_tabular_data.py::test_dropna[cols-any-data2-expected2]", "tests/unit/test_tabular_data.py::test_dropna[rows-any-data0-expected0]", "tests/func/machine/test_machine_config.py::test_machine_list", "tests/unit/test_tabular_data.py::test_dropna[rows-all-data1-expected1]", "tests/func/machine/test_machine_...
["tests/unit/command/test_machine.py::test_ssh", "tests/func/machine/test_machine_config.py::test_machine_rename_exist", "tests/unit/command/test_machine.py::test_help_message[add-True]", "tests/unit/command/test_machine.py::test_help_message[destroy-False]", "tests/unit/test_tabular_data.py::test_drop_duplicates_inval...
null
true
2021-10-31T14:19:23Z
4
114
7
357
0
0.85
1
0.55
0.85
0.4395
77.081
2,086
swe_bench_promax::test::85
swe_bench_promax
test
85
bazelbuild__bazel-c_c24f247
bazelbuild/bazel
bazelbuild/bazel
java
11f8f6642db67b3c393426a63ca502e3f72a5e57
In Bazel's build infrastructure, the `ExtraAction` class enables rules to define supplementary actions that shadow primary build actions—commonly used for generating auxiliary outputs like coverage metadata or diagnostics. These objects routinely undergo serialization when transmitted across distributed execution bound...
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/extra/ExtraAction.java b/src/main/java/com/google/devtools/build/lib/analysis/extra/ExtraAction.java --- a/src/main/java/com/google/devtools/build/lib/analysis/extra/ExtraAction.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/extra/ExtraA...
diff --git a/src/test/java/com/google/devtools/build/lib/actions/util/ActionsTestUtil.java b/src/test/java/com/google/devtools/build/lib/actions/util/ActionsTestUtil.java --- a/src/test/java/com/google/devtools/build/lib/actions/util/ActionsTestUtil.java +++ b/src/test/java/com/google/devtools/build/lib/actions/util/Ac...
null
null
key4127/refactor-dockerhub:bazelbuild__bazel-c_c24f247
true
1742309339
1
41
null
1,333
0
0.9
1
0.4
1
0.358833
77.0765
2,087
swe_gym::train::570
swe_gym
train
570
python__mypy-15700
python/mypy
python/mypy
python
b6b6624655826985f75dfd970e2c29f7690ce323
Mypy errors out with attrs, generics and inheritance **Bug Report** When checking python code that uses `attrs` dataclasses, `Generic` classes and inheritance, mypy fails to infer the actual type of a TypeVar. Swapping `attrs` for std dataclasses removes the error. Simplifying inheritance chain also removes the err...
Thanks for the version range. `git bisect` points to 20b0b9b460cd11a4755f70ae08823fa6a8f5fbd4 (merged in #12590) as to where it starts (@JukkaL for insights). FWIW, replacing `attr.frozen` with `attrs.mutable` or `attrs.define` also "fixes" it 😕
diff --git a/mypy/plugins/attrs.py b/mypy/plugins/attrs.py --- a/mypy/plugins/attrs.py +++ b/mypy/plugins/attrs.py @@ -803,7 +803,7 @@ def _make_frozen(ctx: mypy.plugin.ClassDefContext, attributes: list[Attribute]) else: # This variable belongs to a super class so create new Var so we ...
diff --git a/test-data/unit/check-plugin-attrs.test b/test-data/unit/check-plugin-attrs.test --- a/test-data/unit/check-plugin-attrs.test +++ b/test-data/unit/check-plugin-attrs.test @@ -2250,3 +2250,27 @@ c = attrs.assoc(c, name=42) # E: Argument "name" to "assoc" of "C" has incompat [builtins fixtures/plugin_attr...
["mypy/test/testcheck.py::TypeCheckSuite::check-plugin-attrs.test::testFrozenInheritFromGeneric"]
[]
null
true
2023-07-18T05:28:52Z
1
2
1
2,857
0
0.85
1
0.85
0.4
0.482833
77.0735
2,088
swe_gym::train::761
swe_gym
train
761
iterative__dvc-6525
iterative/dvc
iterative/dvc
python
f9bb38b96fa7dd9a6be3c1ade5a6bfd8ce6248c6
http: migrate to fsspec `http` is an important remote, and we should migrate it to fsspec. There is already a built-in http filesystem inside `fsspec`, but it seem to lack a couple of features we depend. So there should be some benchmarkings to determine whether we should create a sync, `requests` backed `httpfs` or ju...
It seems like with some changes (see https://github.com/intake/filesystem_spec/pull/731) passes all the functional tests against HTTP. I am now moving to the phase of running benchmarks, but some early microbenchmarks indicate that as is aiohttp is not as performant as requests when it comes to the threaded code. Still...
diff --git a/dvc/fs/fsspec_wrapper.py b/dvc/fs/fsspec_wrapper.py --- a/dvc/fs/fsspec_wrapper.py +++ b/dvc/fs/fsspec_wrapper.py @@ -233,6 +233,27 @@ def find(self, path_info, detail=False, prefix=None): yield from self._strip_buckets(files, detail=detail) +# pylint: disable=arguments-differ +class NoDirecto...
diff --git a/tests/func/test_fs.py b/tests/func/test_fs.py --- a/tests/func/test_fs.py +++ b/tests/func/test_fs.py @@ -260,7 +260,6 @@ def test_fs_getsize(dvc, cloud): pytest.lazy_fixture("gs"), pytest.lazy_fixture("gdrive"), pytest.lazy_fixture("hdfs"), - pytest.lazy_fixture("http"), ...
["tests/unit/remote/test_http.py::test_download_fails_on_error_code", "tests/unit/remote/test_http.py::test_ssl_verify_disable", "tests/unit/remote/test_http.py::test_ssl_verify_custom_cert", "tests/unit/remote/test_http.py::test_basic_auth_method", "tests/unit/remote/test_http.py::test_http_method", "tests/unit/remote...
["tests/func/test_fs.py::test_fs_getsize[http]", "tests/func/test_fs.py::TestLocalFileSystem::test_open", "tests/func/test_fs.py::test_fs_find[webdav]", "tests/func/test_fs.py::TestLocalFileSystem::test_exists", "tests/func/test_fs.py::TestWalkInNoSCM::test_subdir", "tests/func/test_fs.py::TestLocalFileSystem::test_isf...
null
true
2021-09-02T11:04:43Z
3
281
7
360
0
0.85
1
0.55
0.75
0.56
77.0675
2,089
swe_bench_pro::test::638
swe_bench_pro
test
638
instance_tutao__tutanota-51818218c6ae33de00cbea3a4d30daac8c34142e-vc4e41fd0029957297843cb9dec4a25c7c756f029
tutao/tutanota
tutao/tutanota
typescript
dac77208814de95c4018bcf13137324153cc9a3a
# Title: Opening a downloaded attachment from the desktop client fails ## Description Opening an attachment from the desktop application ends in an error instead of handing the file to the system, so attachments cannot be opened directly any more. Downloading an attachment on its own still works. When a download does ...
## Requirements - `DesktopNetworkClient` must no longer expose an `executeRequest` method, and the native download must be issued through its `request` method, which returns an `http.ClientRequest`-like object whose event registration, finalization and abort operations the caller drives directly. - References to `exec...
diff --git a/src/desktop/DesktopDownloadManager.ts b/src/desktop/DesktopDownloadManager.ts index a2064c321057..22745d561622 100644 --- a/src/desktop/DesktopDownloadManager.ts +++ b/src/desktop/DesktopDownloadManager.ts @@ -1,27 +1,28 @@ import type {Session} from "electron" -import type {DesktopConfig} from "./config/...
diff --git a/test/client/desktop/DesktopDownloadManagerTest.ts b/test/client/desktop/DesktopDownloadManagerTest.ts index f1427fb86..5827951df 100644 --- a/test/client/desktop/DesktopDownloadManagerTest.ts +++ b/test/client/desktop/DesktopDownloadManagerTest.ts @@ -1,12 +1,9 @@ import o from "ospec" -import n, {Mocked}...
["test/client/desktop/DesktopDownloadManagerTest.ts::DesktopDownloadManagerTest::downloadNative, no error", "test/client/desktop/DesktopDownloadManagerTest.ts::DesktopDownloadManagerTest::downloadNative, error gets cleaned up", "test/client/desktop/DesktopDownloadManagerTest.ts::DesktopDownloadManagerTest::open", "test...
[]
ghcr.io/scaleapi/swe-bench_pro-v2:instance_tutao__tutanota-51818218c6ae33de00cbea3a4d30daac8c34142e-vc4e41fd0029957297843cb9dec4a25c7c756f029
true
null
2
219
4
555
0
0.95
1
0.55
0.75
0.5925
77.065
2,090
swe_bench_verified::test::402
swe_bench_verified
test
402
sphinx-doc__sphinx-8269
sphinx-doc/sphinx
sphinx-doc/sphinx
python
1e2ccd8f0eca0870cf6f8fce6934e2da8eba9b72
Linkcheck should report HTTP errors instead of Anchor not found **Describe the bug** The `linkcheck` command always reports that it was unable to find the anchor when [`linkcheck_anchors`](https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-linkcheck_workers) is `True`, even when the server replied wi...
diff --git a/sphinx/builders/linkcheck.py b/sphinx/builders/linkcheck.py --- a/sphinx/builders/linkcheck.py +++ b/sphinx/builders/linkcheck.py @@ -166,6 +166,7 @@ def check_uri() -> Tuple[str, str, int]: # Read the whole document and see if #anchor exists response = requests.ge...
diff --git a/tests/roots/test-linkcheck-localserver/conf.py b/tests/roots/test-linkcheck-localserver/conf.py new file mode 100644 --- /dev/null +++ b/tests/roots/test-linkcheck-localserver/conf.py @@ -0,0 +1,2 @@ +exclude_patterns = ['_build'] +linkcheck_anchors = True diff --git a/tests/roots/test-linkcheck-localserve...
["tests/test_build_linkcheck.py::test_raises_for_invalid_status"]
["tests/test_build_linkcheck.py::test_defaults", "tests/test_build_linkcheck.py::test_defaults_json", "tests/test_build_linkcheck.py::test_anchors_ignored", "tests/test_build_linkcheck.py::test_auth", "tests/test_build_linkcheck.py::test_linkcheck_request_headers"]
null
true
2020-10-03T11:08:37Z
1
1
1
1,157
0
1
1
0.85
0.4
0.196167
77.0635
2,091
swe_bench_promax::test::62
swe_bench_promax
test
62
cli__cli-c_6d14840
cli/cli
cli/cli
go
04cce6b35eeef38a722c78000a54ea60fac7c4e5
The GitHub CLI commands `gh issue list` and `gh pr list` currently construct search queries and browser URLs using a fixed, legacy search syntax that does not account for whether the target GitHub instance supports advanced issue search capabilities. As GitHub rolls out enhanced search infrastructure—including new qual...
diff --git a/pkg/cmd/issue/list/http.go b/pkg/cmd/issue/list/http.go --- a/pkg/cmd/issue/list/http.go +++ b/pkg/cmd/issue/list/http.go @@ -4,6 +4,7 @@ import ( "fmt" "github.com/cli/cli/v2/api" + fd "github.com/cli/cli/v2/internal/featuredetection" "github.com/cli/cli/v2/internal/ghrepo" prShared "github.com/...
diff --git a/pkg/cmd/issue/list/list_test.go b/pkg/cmd/issue/list/list_test.go --- a/pkg/cmd/issue/list/list_test.go +++ b/pkg/cmd/issue/list/list_test.go @@ -11,6 +11,7 @@ import ( "github.com/cli/cli/v2/api" "github.com/cli/cli/v2/internal/browser" "github.com/cli/cli/v2/internal/config" + fd "github.com/cli/cl...
null
null
key4127/refactor-dockerhub:cli__cli-c_6d14840
true
1756661364
5
110
null
4,617
0
0.9
1
0.47
0.85
0.866667
77.0325
2,092
swe_gym::train::283
swe_gym
train
283
getmoto__moto-4990
getmoto/moto
getmoto/moto
python
758920da5021fa479f6b90e3489deb930478e35d
elbv2 describe_tags return ResourceArn empty instead of the correct one ## Reporting Bugs I am using the latest version of moto for elbv2. After create_load_balancer with moto, which return resource 'LoadBalancerArn': 'arn:aws:elasticloadbalancing:us-east-1:123456789012:loadbalancer/app/loadbalancer/50dc6c495c0c9188' ...
Thanks for letting us know @linhmeobeo - will raise a PR to fix this shortly
diff --git a/moto/elbv2/responses.py b/moto/elbv2/responses.py --- a/moto/elbv2/responses.py +++ b/moto/elbv2/responses.py @@ -635,9 +635,9 @@ def remove_listener_certificates(self): DESCRIBE_TAGS_TEMPLATE = """<DescribeTagsResponse xmlns="http://elasticloadbalancing.amazonaws.com/doc/2015-12-01/"> <DescribeTagsRes...
diff --git a/tests/test_elbv2/test_elbv2.py b/tests/test_elbv2/test_elbv2.py --- a/tests/test_elbv2/test_elbv2.py +++ b/tests/test_elbv2/test_elbv2.py @@ -30,10 +30,12 @@ def test_create_load_balancer(): ) lb.get("CreatedTime").tzinfo.should_not.be.none lb.get("State").get("Code").should.equal("provision...
["tests/test_elbv2/test_elbv2.py::test_create_load_balancer"]
["tests/test_elbv2/test_elbv2.py::test_modify_load_balancer_attributes_routing_http2_enabled", "tests/test_elbv2/test_elbv2.py::test_set_security_groups", "tests/test_elbv2/test_elbv2.py::test_modify_listener_http_to_https", "tests/test_elbv2/test_elbv2.py::test_describe_unknown_listener_certificate", "tests/test_elbv2...
null
true
2022-03-30 20:43:07
1
4
1
795
0
0.85
1
0.55
0.8
0.145833
77.0125
2,093
swe_bench_verified::test::76
swe_bench_verified
test
76
django__django-12262
django/django
django/django
python
69331bb851c34f05bc77e9fc24020fe6908b9cd5
Custom template tags raise TemplateSyntaxError when keyword-only arguments with defaults are provided. Description (last modified by P-Seebauer) When creating simple tags without variable keyword args, but an keyword argument with a default value. It's not possible to supply any other variable. @register.simple_tag...
diff --git a/django/template/library.py b/django/template/library.py --- a/django/template/library.py +++ b/django/template/library.py @@ -261,7 +261,7 @@ def parse_bits(parser, bits, params, varargs, varkw, defaults, if kwarg: # The kwarg was successfully extracted param, value = kwa...
diff --git a/tests/template_tests/templatetags/inclusion.py b/tests/template_tests/templatetags/inclusion.py --- a/tests/template_tests/templatetags/inclusion.py +++ b/tests/template_tests/templatetags/inclusion.py @@ -136,6 +136,15 @@ def inclusion_one_default(one, two='hi'): inclusion_one_default.anything = "Expecte...
["test_inclusion_tag_errors (template_tests.test_custom.InclusionTagTests)", "test_inclusion_tags (template_tests.test_custom.InclusionTagTests)", "test_simple_tag_errors (template_tests.test_custom.SimpleTagTests)", "test_simple_tags (template_tests.test_custom.SimpleTagTests)"]
["test_decorated_filter (template_tests.test_custom.CustomFilterTests)", "test_filter (template_tests.test_custom.CustomFilterTests)", "test_15070_use_l10n (template_tests.test_custom.InclusionTagTests)", "test_include_tag_missing_context (template_tests.test_custom.InclusionTagTests)", "test_inclusion_tag_registration...
null
true
2019-12-30T13:13:59Z
1
2
4
1,025
0
1
1
0.85
0.4
0.1775
77.0075
2,094
swe_gym::train::31
swe_gym
train
31
getmoto__moto-6376
getmoto/moto
getmoto/moto
python
d20da03225d563849e7b1457a30692ddd86ab911
CORS rules not being applied to PUT responses Hello! I'm the author of [this issue](https://github.com/getmoto/moto/issues/4220) which was solved on [this PR](https://github.com/getmoto/moto/pull/4497). So first off I'd like to thank you for looking into it. Some time has passed but only now we've been able to update ...
diff --git a/moto/s3/responses.py b/moto/s3/responses.py --- a/moto/s3/responses.py +++ b/moto/s3/responses.py @@ -353,7 +353,9 @@ def _bucket_response_head( return 404, {}, "" return 200, {"x-amz-bucket-region": bucket.region_name}, "" - def _set_cors_headers(self, headers: Dict[str, str], b...
diff --git a/tests/test_s3/test_server.py b/tests/test_s3/test_server.py --- a/tests/test_s3/test_server.py +++ b/tests/test_s3/test_server.py @@ -254,10 +254,11 @@ def test_s3_server_post_cors_exposed_header(): """ test_client = authenticated_client() + valid_origin = "https://example.org" prefligh...
["tests/test_s3/test_server.py::test_s3_server_post_cors_exposed_header"]
["tests/test_s3/test_server.py::test_s3_server_post_without_content_length", "tests/test_s3/test_server.py::test_s3_server_bucket_create[bar+baz]", "tests/test_s3/test_server.py::test_s3_server_post_to_bucket", "tests/test_s3/test_server.py::test_s3_server_get", "tests/test_s3/test_server.py::test_s3_server_bucket_crea...
null
true
2023-06-07 19:46:14
1
57
1
2,774
0
0.85
1
0.4
1
0.652333
77.007
2,095
swe_gym::train::1927
swe_gym
train
1,927
facebookresearch__hydra-876
facebookresearch/hydra
facebookresearch/hydra
python
600974f32f096474495d39ed376bbb3a99ddf99a
Add support for specifying an additional config dir in the command line This is useful for standalone apps that want to come with their own configs but also allow users to add additional configs that can be used with the composition. ``` ├── my_app.py ├── conf │   ├── config.yaml │   └── dataset │   └── imagenet.ya...
diff --git a/hydra/_internal/utils.py b/hydra/_internal/utils.py --- a/hydra/_internal/utils.py +++ b/hydra/_internal/utils.py @@ -26,13 +26,9 @@ from omegaconf.errors import OmegaConfBaseException from hydra._internal.config_search_path_impl import ConfigSearchPathImpl -from hydra.core.config_search_path import Co...
diff --git a/tests/test_apps/user-config-dir/conf/config.yaml b/tests/test_apps/user-config-dir/conf/config.yaml new file mode 100644 --- /dev/null +++ b/tests/test_apps/user-config-dir/conf/config.yaml @@ -0,0 +1,2 @@ +defaults: + - dataset: ??? diff --git a/tests/test_apps/user-config-dir/conf/dataset/imagenet.yaml ...
["tests/test_compose.py::test_initialize_with_config_path"]
["tests/test_compose.py::TestComposeInits::test_initialize_config_dir_ctx_with_relative_dir[None-overrides1-expected1]", "tests/test_compose.py::test_initialize_config_module_ctx", "tests/test_compose.py::TestComposeInits::test_initialize_ctx[None-overrides0-expected0]", "tests/test_compose.py::test_jobname_override_in...
null
true
2020-08-13T19:38:30Z
4
64
1
1,206
0
0.85
1
0.55
0.85
0.414333
77.0055
2,096
swe_gym::train::711
swe_gym
train
711
iterative__dvc-4623
iterative/dvc
iterative/dvc
python
a664059eff27632a34e58ca8ca08be8bfa117f7e
[Remote SSH] Add a parameter allow_agent Hello, For some reason, when I use `dvc pull` or `dvc push` with an SSH remote, sometimes I get an error like this: ``` ERROR: unexpected error - No existing session ``` This is only on one specific machine that I use. On other machines, I don't have this problem. To fix it, ...
@gcoter Sounds good! Let's do that! Unfortunately, we don't have the capacity for this right now as well :slightly_frowning_face: So it might have to wait until someone has time for it. @gcoter Btw, i think you can already do that using your ssh config: ``` Host example.com ForwardAgent no ``` Hi @efiop, than...
diff --git a/dvc/config.py b/dvc/config.py --- a/dvc/config.py +++ b/dvc/config.py @@ -190,6 +190,7 @@ class RelPath(str): "keyfile": str, "timeout": Coerce(int), "gss_auth": Bool, + "allow_agent": Bool, **REMOTE_COMM...
diff --git a/tests/unit/remote/ssh/test_ssh.py b/tests/unit/remote/ssh/test_ssh.py --- a/tests/unit/remote/ssh/test_ssh.py +++ b/tests/unit/remote/ssh/test_ssh.py @@ -183,6 +183,31 @@ def test_ssh_gss_auth(mock_file, mock_exists, dvc, config, expected_gss_auth): assert tree.gss_auth == expected_gss_auth +@pyte...
["tests/unit/remote/ssh/test_ssh.py::test_ssh_allow_agent[config3-False]", "tests/unit/remote/ssh/test_ssh.py::test_ssh_allow_agent[config0-True]", "tests/unit/remote/ssh/test_ssh.py::test_ssh_allow_agent[config2-True]", "tests/unit/remote/ssh/test_ssh.py::test_ssh_allow_agent[config1-True]"]
["tests/unit/remote/ssh/test_ssh.py::test_ssh_user[config5-root]", "tests/unit/remote/ssh/test_ssh.py::test_ssh_keyfile[config3-None]", "tests/unit/remote/ssh/test_ssh.py::test_ssh_gss_auth[config1-False]", "tests/unit/remote/ssh/test_ssh.py::test_ssh_host_override_from_config[config1-not_in_ssh_config.com]", "tests/un...
null
true
2020-09-26T19:34:19Z
2
3
4
791
0
0.85
1
0.55
0.8
0.141833
77.0005
2,097
swe_gym::train::112
swe_gym
train
112
getmoto__moto-6885
getmoto/moto
getmoto/moto
python
197e8710afcd311cf3845811dccdea7535711feb
EC2 run instances placement host id is not supported? I'm checking to make sure that the system is suitable for my use case (version `4.2.5`). My case is to run aws equivalent: ``` aws ec2 run-instances --image-id ami-0e373a2446example --instance-type m5.large --placement HostId=h-0b1b80b286example --subnet-id subnet-...
Hi @romanilchyshynb, that attribute is indeed not supported at the moment. > Also, Is it hard to add it? That depends - what is your usecase? If you just want the attribute to show up in the `run_instances`/`describe_instances`-response, that should be easy. Thanks for quick response! I'll try to persist placeme...
diff --git a/moto/ec2/models/instances.py b/moto/ec2/models/instances.py --- a/moto/ec2/models/instances.py +++ b/moto/ec2/models/instances.py @@ -111,6 +111,7 @@ def __init__( self.instance_type: str = kwargs.get("instance_type", "m1.small") self.region_name = kwargs.get("region_name", "us-east-1") ...
diff --git a/tests/test_ec2/test_instances.py b/tests/test_ec2/test_instances.py --- a/tests/test_ec2/test_instances.py +++ b/tests/test_ec2/test_instances.py @@ -1326,6 +1326,23 @@ def test_run_instance_with_specified_private_ipv4(): assert instance["PrivateIpAddress"] == "192.168.42.5" +@mock_ec2 +def test_r...
["tests/test_ec2/test_instances.py::test_run_instance_with_placement"]
["tests/test_ec2/test_instances.py::test_run_instance_with_block_device_mappings_missing_ebs", "tests/test_ec2/test_instances.py::test_get_instances_filtering_by_tag", "tests/test_ec2/test_instances.py::test_run_instance_and_associate_public_ip", "tests/test_ec2/test_instances.py::test_modify_instance_attribute_securit...
null
true
2023-10-04 19:00:23
2
4
1
709
0
0.85
1
0.55
0.8
0.1315
76.9695
2,098
swe_gym::train::2177
swe_gym
train
2,177
Project-MONAI__MONAI-4662
Project-MONAI/MONAI
project-monai/monai
python
cbe16eb326830ef31479fd34ae1e44d27fc2d64d
BUG in `RandCropBoxByPosNegLabeld` ``` from monai.apps.detection.transforms.dictionary import RandCropBoxByPosNegLabeld import torch tt = RandCropBoxByPosNegLabeld(image_keys=["image"], box_keys="box", label_keys="label", spat...
thanks for reporting, currently negative values in the size will be interpreted as a data-dependent value cc @Can-Zhao https://github.com/Project-MONAI/MONAI/blob/40717509198909b444d9566052602b7db0cfd0cb/monai/transforms/croppad/array.py#L210-L212
diff --git a/monai/apps/detection/transforms/dictionary.py b/monai/apps/detection/transforms/dictionary.py --- a/monai/apps/detection/transforms/dictionary.py +++ b/monai/apps/detection/transforms/dictionary.py @@ -43,7 +43,7 @@ from monai.transforms.transform import MapTransform, Randomizable, RandomizableTransform ...
diff --git a/tests/test_box_transform.py b/tests/test_box_transform.py --- a/tests/test_box_transform.py +++ b/tests/test_box_transform.py @@ -16,7 +16,12 @@ from parameterized import parameterized from monai.apps.detection.transforms.box_ops import convert_mask_to_box -from monai.apps.detection.transforms.dictiona...
["tests/test_box_transform.py::TestBoxTransform::test_crop_shape"]
["tests/test_box_transform.py::TestBoxTransform::test_value_2d_mask_4", "tests/test_box_transform.py::TestBoxTransform::test_value_3d_mask", "tests/test_box_transform.py::TestBoxTransform::test_value_3d_1", "tests/test_box_transform.py::TestBoxTransform::test_value_2d_2", "tests/test_box_transform.py::TestBoxTransform:...
null
true
2022-07-09T14:18:58Z
1
5
1
671
0
0.85
1
0.55
0.8
0.1285
76.9605
2,099
swe_gym::train::2106
swe_gym
train
2,106
Project-MONAI__MONAI-4297
Project-MONAI/MONAI
project-monai/monai
python
fdec959cc2fbe9f09ed8d95a26bf24a206de8113
`iter_patch_slices` Patch Order Similar to convolutions, the way usually sliding window is implemented is going over the slow dimension first and then go down the other indices (sweeping row by row), like this: ```python A = [[ a, a, b, b], [ a, a, b, b], [ c, c, d, d], [ c, c, d, d]] L = [[[a,a],[a,a]]...
@wyli @Nic-Ma @ericspod, do you have any input here? good question, looks like there is an inconsistency: ```py import numpy as np from monai.data import dense_patch_slices, iter_patch_slices A = [['a', 'a', 'b', 'b'], ['a', 'a', 'b', 'b'], ['c', 'c', 'd', 'd'], ['c', 'c', 'd', 'd']] print('dense_patch_slices'...
diff --git a/monai/data/utils.py b/monai/data/utils.py --- a/monai/data/utils.py +++ b/monai/data/utils.py @@ -145,8 +145,8 @@ def iter_patch_slices( ranges = tuple(starmap(range, zip(start_pos, dims, patch_size_))) # choose patches by applying product to the ranges - for position in product(*ranges[::-1...
diff --git a/tests/test_grid_dataset.py b/tests/test_grid_dataset.py --- a/tests/test_grid_dataset.py +++ b/tests/test_grid_dataset.py @@ -60,20 +60,20 @@ def test_loading_array(self): np.testing.assert_equal(tuple(item[0].shape), (2, 1, 2, 2)) np.testing.assert_allclose( item[0], - ...
["tests/test_grid_dataset.py::TestGridPatchDataset::test_loading_dict", "tests/test_grid_dataset.py::TestGridPatchDataset::test_loading_array"]
["tests/test_grid_dataset.py::TestGridPatchDataset::test_shape"]
null
true
2022-05-19T14:15:38Z
1
4
2
632
0
0.85
1
0.55
0.8
0.118667
76.931