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,500 | swe_bench_promax::test::102 | swe_bench_promax | test | 102 | confident-ai__deepeval-c_ce72651 | confident-ai/deepeval | confident-ai/deepeval | python | 372bf48c7780a48a046917db1ac2080ffe202aec | When integrating Amazon Bedrock into evaluation workflows, users encountered significant configuration friction and runtime inconsistencies compared to other supported LLM providers. The Bedrock model's constructor accepted a parameter named `model_id` for the model identifier and used `input_token_cost`/`output_token_... | diff --git a/deepeval/config/settings.py b/deepeval/config/settings.py
--- a/deepeval/config/settings.py
+++ b/deepeval/config/settings.py
@@ -27,6 +27,7 @@
field_validator,
model_validator,
SecretStr,
+ PositiveFloat,
)
from pydantic_settings import BaseSettings, SettingsConfigDict
from typing imp... | diff --git a/tests/test_core/test_models/test_amazon_bedrock_param_translation.py b/tests/test_core/test_models/test_amazon_bedrock_param_translation.py
--- a/tests/test_core/test_models/test_amazon_bedrock_param_translation.py
+++ b/tests/test_core/test_models/test_amazon_bedrock_param_translation.py
@@ -64,7 +64,7 @@... | null | null | key4127/refactor-dockerhub:confident-ai__deepeval-c_ce72651 | true | 1765810006 | 12 | 238 | null | 5,343 | 0 | 0.9 | 1 | 0.62 | 0.45 | 1 | 72.2075 | ||
2,501 | swe_bench_promax::test::55 | swe_bench_promax | test | 55 | nasa__fprime-4041 | nasa/fprime | nasa/fprime | cpp | 1ee55a0c909485d1b42374fe347e529287f8a0ab | The FileManager component currently supports essential file operations such as creating directories, moving files, removing files, and executing shell commands. However, it lacks the ability to inspect the contents of a directory programmatically. Operators and automated workflows frequently need to verify file presenc... | diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt
--- a/.github/actions/spelling/expect.txt
+++ b/.github/actions/spelling/expect.txt
@@ -18,6 +18,7 @@ arduino
ARef
argcomplete
ARGN
+binaryfile
ARINC
arpa
ASize
@@ -192,6 +193,7 @@ ECLIPSEHELP
EHAs
eip
Elts
+emptydir
endcon... | diff --git a/Svc/FileManager/test/ut/FileManagerMain.cpp b/Svc/FileManager/test/ut/FileManagerMain.cpp
--- a/Svc/FileManager/test/ut/FileManagerMain.cpp
+++ b/Svc/FileManager/test/ut/FileManagerMain.cpp
@@ -79,6 +79,21 @@ TEST(Test, fileSizeFail) {
tester.fileSizeFail();
}
+TEST(Test, listDirectorySucceed) {
+ ... | null | null | key4127/refactor-dockerhub:nasa__fprime-4041 | true | 1757454367 | 10 | 337 | null | 4,965 | 0 | 0.9 | 1 | 0.62 | 0.45 | 1 | 72.2075 | ||
2,502 | swe_bench_promax::test::89 | swe_bench_promax | test | 89 | hibernate__hibernate-orm-c_5687749 | hibernate/hibernate-orm | hibernate/hibernate-orm | java | 05b8d0dbe92fc8e70d32d55a41f7af82f9882130 | Hibernate's entity graph implementation has several gaps relative to the JPA 3.2 specification that prevent developers from constructing specification-compliant fetch graphs for complex domain models involving collections, inheritance hierarchies, and polymorphic associations.
First, the internal SPI method used to re... | diff --git a/hibernate-core/src/main/java/org/hibernate/graph/Graph.java b/hibernate-core/src/main/java/org/hibernate/graph/Graph.java
--- a/hibernate-core/src/main/java/org/hibernate/graph/Graph.java
+++ b/hibernate-core/src/main/java/org/hibernate/graph/Graph.java
@@ -7,9 +7,9 @@
import java.util.List;
import jak... | diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/entitygraph/parser/EntityGraphParserTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/entitygraph/parser/EntityGraphParserTest.java
--- a/hibernate-core/src/test/java/org/hibernate/orm/test/entitygraph/parser/EntityGraphParserTest.java
+++ b... | null | null | key4127/refactor-dockerhub:hibernate__hibernate-orm-c_5687749 | true | 1735826833 | 7 | 311 | null | 3,258 | 0 | 0.9 | 1 | 0.62 | 0.45 | 1 | 72.2075 | ||
2,503 | swe_bench_promax::test::100 | swe_bench_promax | test | 100 | confident-ai__deepeval-2345 | confident-ai/deepeval | confident-ai/deepeval | python | bda5e60ea13547f37d17c4dfe4e953e5f74f6ccb | The deepeval library supports multiple AI provider integrations—including Ollama, Anthropic, and Google Gemini—as optional extensions to its core evaluation functionality. These integrations rely on external SDK packages that users may not have installed if they only intend to use a subset of supported providers. Howev... | diff --git a/deepeval/models/embedding_models/ollama_embedding_model.py b/deepeval/models/embedding_models/ollama_embedding_model.py
--- a/deepeval/models/embedding_models/ollama_embedding_model.py
+++ b/deepeval/models/embedding_models/ollama_embedding_model.py
@@ -1,7 +1,7 @@
-from ollama import Client, AsyncClient
... | diff --git a/tests/test_core/stubs.py b/tests/test_core/stubs.py
--- a/tests/test_core/stubs.py
+++ b/tests/test_core/stubs.py
@@ -1,6 +1,7 @@
import io
import time
import asyncio
+from unittest.mock import MagicMock
from types import SimpleNamespace
from typing import Callable, List, Optional, Protocol, runtime_c... | null | null | key4127/refactor-dockerhub:confident-ai__deepeval-2345 | true | 1764691217 | 7 | 167 | null | 5,103 | 0 | 0.9 | 1 | 0.62 | 0.45 | 1 | 72.2075 | ||
2,504 | swe_gym::train::918 | swe_gym | train | 918 | dask__dask-6626 | dask/dask | dask/dask | python | 56cd4597630feb1b01501c16d52aa862dd257a83 | Index(['a', 'b'], dtype='object') instead of Index([], dtype='object') with set_index when empty categories in dataframe
I ran into categories errors; it seems that a, b categories are created into the Dask Dataframes.
It's done when using the set_index on a Dask Dataframe with empty categories columns.
It does not hap... | > Is there a reason for this ?
Nope, looks like a bug. Can you investigate a bit more in `set_index` to see what goes wrong? Most like we're inappropriately converting `UNKNOWN_CATEGORIES` to "known" categories with the data from `meta_nonempty`
```python
In [29]: dd.from_pandas(df,2 )._meta_nonempty
Out[29]... | diff --git a/dask/dataframe/utils.py b/dask/dataframe/utils.py
--- a/dask/dataframe/utils.py
+++ b/dask/dataframe/utils.py
@@ -555,7 +555,7 @@ def _nonempty_series(s, idx=None):
cats = s.cat.categories
else:
data = _nonempty_index(s.cat.categories)
- cats = None
+ ... | diff --git a/dask/dataframe/tests/test_utils_dataframe.py b/dask/dataframe/tests/test_utils_dataframe.py
--- a/dask/dataframe/tests/test_utils_dataframe.py
+++ b/dask/dataframe/tests/test_utils_dataframe.py
@@ -133,8 +133,9 @@ def test_meta_nonempty():
"H": pd.Timedelta("1 hours"),
"I": np.voi... | ["dask/dataframe/tests/test_utils_dataframe.py::test_meta_nonempty"] | ["dask/dataframe/tests/test_utils_dataframe.py::test_is_dataframe_like[False]", "dask/dataframe/tests/test_utils_dataframe.py::test_meta_nonempty_scalar", "dask/dataframe/tests/test_utils_dataframe.py::test_meta_duplicated", "dask/dataframe/tests/test_utils_dataframe.py::test_apply_and_enforce_message", "dask/dataframe... | null | true | 2020-09-11T15:37:50Z | 1 | 2 | 1 | 1,629 | 0 | 0.85 | 1 | 0.7 | 0.4 | 0.278167 | 72.1845 | |
2,505 | swe_gym::train::1125 | swe_gym | train | 1,125 | pydantic__pydantic-6288 | pydantic/pydantic | pydantic/pydantic | python | 82effa30ec3e2e952113cf7304e84423b5262b58 | Recursive model definitions with discriminated unions fail at import time
### Initial Checks
- [X] I confirm that I'm using Pydantic V2 installed directly from the `main` branch, or equivalent
### Description
This issue appears when defining a recursive type containing a discriminated union. If you remove the discri... | This is definitely a bug, thank you for reporting it! | diff --git a/pydantic/_internal/_core_utils.py b/pydantic/_internal/_core_utils.py
--- a/pydantic/_internal/_core_utils.py
+++ b/pydantic/_internal/_core_utils.py
@@ -100,51 +100,25 @@ def get_type_ref(type_: type[Any], args_override: tuple[type[Any], ...] | None =
return type_ref
+def get_ref(s: core_schema.C... | diff --git a/tests/test_discriminated_union.py b/tests/test_discriminated_union.py
--- a/tests/test_discriminated_union.py
+++ b/tests/test_discriminated_union.py
@@ -936,60 +936,54 @@ def test_lax_or_strict_definitions() -> None:
discriminated_schema = apply_discriminator(core_schema.union_schema([cat, dog]), 'ki... | ["tests/test_discriminated_union.py::test_lax_or_strict_definitions"] | ["tests/test_discriminated_union.py::test_discriminated_annotated_union", "tests/test_discriminated_union.py::test_unions_of_optionals", "tests/test_discriminated_union.py::test_single_item_union_error", "tests/test_discriminated_union.py::test_generic", "tests/test_discriminated_union.py::test_missing_discriminator_fi... | null | true | 2023-06-28T15:42:55Z | 7 | 141 | 1 | 6,959 | 0.02381 | 0.85 | 1 | 0.5 | 0.6 | 0.97 | 72.17 | |
2,506 | swe_bench_verified::test::18 | swe_bench_verified | test | 18 | astropy__astropy-7606 | astropy/astropy | astropy/astropy | python | 3cedd79e6c121910220f8e6df77c54a0b344ea94 | Unit equality comparison with None raises TypeError for UnrecognizedUnit
```
In [12]: x = u.Unit('asdf', parse_strict='silent')
In [13]: x == None # Should be False
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<... | `x is None` works fine. Is there a reason why `==` is needed here?
`x is None` would indeed be preferred, but `==` should never fail, so this is still a bug. | diff --git a/astropy/units/core.py b/astropy/units/core.py
--- a/astropy/units/core.py
+++ b/astropy/units/core.py
@@ -728,7 +728,7 @@ def __eq__(self, other):
try:
other = Unit(other, parse_strict='silent')
except (ValueError, UnitsError, TypeError):
- return False
+ ... | diff --git a/astropy/units/tests/test_units.py b/astropy/units/tests/test_units.py
--- a/astropy/units/tests/test_units.py
+++ b/astropy/units/tests/test_units.py
@@ -185,6 +185,13 @@ def test_unknown_unit3():
assert unit != unit3
assert not unit.is_equivalent(unit3)
+ # Also test basic (in)equalities.
+... | ["astropy/units/tests/test_units.py::test_unknown_unit3"] | ["astropy/units/tests/test_units.py::test_getting_started", "astropy/units/tests/test_units.py::test_initialisation", "astropy/units/tests/test_units.py::test_invalid_power", "astropy/units/tests/test_units.py::test_invalid_compare", "astropy/units/tests/test_units.py::test_convert", "astropy/units/tests/test_units.py:... | null | true | 2018-06-29T16:27:46Z | 1 | 10 | 1 | 1,023 | 0.333333 | 1 | 1 | 0.85 | 1 | 0.203833 | 72.167333 | |
2,507 | swe_gym::train::751 | swe_gym | train | 751 | iterative__dvc-6810 | iterative/dvc | iterative/dvc | python | 259d59052750537e7c9a0b20adb2aa2ef4f90108 | `exp show --show-json`: broken for non TTY
# Bug Report
## Description
`dvc exp show --show-json` is failing whenever run via a `child_process` in the VS Code extension (non-TTY).
### Reproduce
1. open dvc repository
2. output from `exp show --show-json` in terminal:
:
File "/Users/mattseddon/PP/vscode-dvc/demo/.env/lib/python3.9/site-packages/dvc/main.py",... | diff --git a/dvc/ui/__init__.py b/dvc/ui/__init__.py
--- a/dvc/ui/__init__.py
+++ b/dvc/ui/__init__.py
@@ -98,7 +98,7 @@ def write_json(
text.overflow = None
return self.write(text, styled=True)
- return self.write(json.dumps(data))
+ return self.write(json.dumps(data, default=... | diff --git a/tests/unit/ui/test_console.py b/tests/unit/ui/test_console.py
--- a/tests/unit/ui/test_console.py
+++ b/tests/unit/ui/test_console.py
@@ -1,3 +1,4 @@
+import datetime
import textwrap
import pytest
@@ -27,7 +28,8 @@ def test_write(capsys: CaptureFixture[str]):
textwrap.dedent(
... | ["tests/unit/ui/test_console.py::test_write_json[False-{\"hello\":"] | ["tests/unit/ui/test_console.py::test_capsys_works", "tests/unit/ui/test_console.py::test_write", "tests/unit/ui/test_console.py::test_write_json[True-{\\n"] | null | true | 2021-10-14T21:08:55Z | 1 | 2 | 1 | 1,512 | 0 | 0.85 | 1 | 0.7 | 0.4 | 0.258667 | 72.126 | |
2,508 | swe_gym::train::713 | swe_gym | train | 713 | iterative__dvc-3576 | iterative/dvc | iterative/dvc | python | a338fad036bd9ac8bdd79ecec964f8c5558609c4 | metrics diff with missing old value
If metrics file(s) has only no old version (it was just created):
```
$ dvc metrics diff HEAD^
WARNING: Metrics file 'metrics/eval.json' does not exist at the reference 'HEAD^'.
WARNING: Metrics file 'metrics/train.json' does not exist at the reference 'HEAD^'.
ERROR: unexpected erro... | > Make sure only the table is presented in STDOUT. All other messages (like "No changes.") should be in STDERR.
Not sure why it should be like that. Table as well as `No changes.` are for the user, not really meant to be parsable. For parsing we have `--show-json`. I don't think we do that anywhere else in the dvc.
... | diff --git a/dvc/command/metrics.py b/dvc/command/metrics.py
--- a/dvc/command/metrics.py
+++ b/dvc/command/metrics.py
@@ -109,7 +109,7 @@ def _show_diff(diff):
from texttable import Texttable
if not diff:
- return "No changes."
+ return ""
table = Texttable()
| diff --git a/tests/unit/command/test_metrics.py b/tests/unit/command/test_metrics.py
--- a/tests/unit/command/test_metrics.py
+++ b/tests/unit/command/test_metrics.py
@@ -64,7 +64,7 @@ def test_metrics_diff_no_diff():
def test_metrics_diff_no_changes():
- assert _show_diff({}) == "No changes."
+ assert _show... | ["tests/unit/command/test_metrics.py::test_metrics_diff_no_changes"] | ["tests/unit/command/test_metrics.py::test_metrics_show_json_diff", "tests/unit/command/test_metrics.py::test_metrics_show_raw_diff", "tests/unit/command/test_metrics.py::test_metrics_diff_no_diff", "tests/unit/command/test_metrics.py::test_metrics_diff_new_metric", "tests/unit/command/test_metrics.py::test_metrics_dif... | null | true | 2020-04-02T01:00:02Z | 1 | 2 | 1 | 1,251 | 0 | 0.85 | 1 | 0.7 | 0.4 | 0.215167 | 71.9955 | |
2,509 | swe_gym::train::485 | swe_gym | train | 485 | python__mypy-15395 | python/mypy | python/mypy | python | f54c3096b7d328dc59dd85af3a8ba28739dcfed0 | Abstract Properties & `Overloaded method has both abstract and non-abstract variants`
# Expected Behaviour
- Ability to type check abstract property `getters` and `setters`
- The intention is to have an interface-like design using properties
# Actual Behaviour & Repro Case
## Python Code
```python
from abc import abst... | It seems that version 0.750 still have this bug. Do you have any ideas how to solve it?
~~`py-evm` uses [this workaround](https://github.com/ethereum/py-evm/pull/1885/commits/0d79bb6c56f4835ef9242cbad18a51ef86e77011) for now.~~
Here's a link that works to the py-evm workaround:
https://github.com/ethereum/py-evm/blo... | diff --git a/mypy/semanal.py b/mypy/semanal.py
--- a/mypy/semanal.py
+++ b/mypy/semanal.py
@@ -1337,6 +1337,8 @@ def analyze_property_with_multi_part_definition(self, defn: OverloadedFuncDef) -
first_item.var.is_settable_property = True
# Get abstractness from t... | diff --git a/test-data/unit/check-abstract.test b/test-data/unit/check-abstract.test
--- a/test-data/unit/check-abstract.test
+++ b/test-data/unit/check-abstract.test
@@ -735,7 +735,44 @@ class A(metaclass=ABCMeta):
def x(self) -> int: pass
@x.setter
def x(self, x: int) -> None: pass
-[out]
+
+[case test... | ["mypy/test/testcheck.py::TypeCheckSuite::check-abstract.test::testReadWriteDeleteAbstractProperty"] | ["mypy/test/testcheck.py::TypeCheckSuite::check-abstract.test::testImplementReadWriteAbstractPropertyViaProperty", "mypy/test/testcheck.py::TypeCheckSuite::check-abstract.test::testInstantiateClassWithReadOnlyAbstractProperty"] | null | true | 2023-06-08T20:16:28Z | 1 | 2 | 1 | 1,251 | 0 | 0.85 | 1 | 0.7 | 0.4 | 0.215167 | 71.9955 | |
2,510 | swe_gym::train::468 | swe_gym | train | 468 | python__mypy-11236 | python/mypy | python/mypy | python | 209a7193feb4bbfa38d09232b0a5a916e9d2e605 | Cannot infer return type if using Union[Tuple[Literal[]]...]
* Are you reporting a bug, or opening a feature request? **Bug**
* Please insert below the code you are checking with mypy,
or a mock-up repro if the source is private. We would appreciate
if you try to simplify your case to a minimal repro.
```python
fro... | I can reproduce the issue. Apparently the literal type context is sometimes lost.
Some observations:
* If I replace all `Tuple[...]` types with `List[...]`, the issue persists.
* If I drop `Tuple[...]` and use `Union[str, Literal[1]]`, there is no issue.
* If I drop the union type context and use `Tuple[Literal[1... | diff --git a/mypy/subtypes.py b/mypy/subtypes.py
--- a/mypy/subtypes.py
+++ b/mypy/subtypes.py
@@ -287,6 +287,8 @@ def visit_instance(self, left: Instance) -> bool:
return True
if isinstance(item, Instance):
return is_named_instance(item, 'builtins.object')
+ ... | diff --git a/test-data/unit/check-literal.test b/test-data/unit/check-literal.test
--- a/test-data/unit/check-literal.test
+++ b/test-data/unit/check-literal.test
@@ -2687,11 +2687,8 @@ def force2(x: Tuple[Literal[1], Literal[2]]) -> None: pass
reveal_type(a) # N: Revealed type is "Literal[1]?"
reveal_type(b... | ["mypy/test/testcheck.py::TypeCheckSuite::testLiteralAndInstanceSubtyping"] | [] | null | true | 2021-09-30T22:04:58Z | 1 | 2 | 1 | 1,227 | 0 | 0.85 | 1 | 0.7 | 0.4 | 0.211167 | 71.9835 | |
2,511 | swe_gym::train::930 | swe_gym | train | 930 | dask__dask-8597 | dask/dask | dask/dask | python | c1c88f066672c0b216fc24862a2b36a0a9fb4e22 | Indexing 0-D dask array handling raises exceptions
**What happened**:
The following code raises an exception:
```
>>> import numpy
>>> import dask.array
>>> dask.array.from_array(numpy.zeros((3, 0)))[[0]]
---------------------------------------------------------------------------
OverflowError ... | Thanks for including the minimal reproducer! It looks like the raise is coming from a divide by zero in the array slicing logic, I'll dig a bit more.
Full traceback for reference
```ipython
In [19]: x = da.from_array(np.zeros((3, 0)))
In [20]: x[[0]]
/Users/ddavis/.pyenv/versions/3.10.2/envs/dask-awkward/lib... | diff --git a/dask/array/slicing.py b/dask/array/slicing.py
--- a/dask/array/slicing.py
+++ b/dask/array/slicing.py
@@ -641,7 +641,7 @@ def take(outname, inname, chunks, index, itemsize, axis=0):
other_chunks = [chunks[i] for i in range(len(chunks)) if i != axis]
other_numel = np.prod([sum(x) for x in other_ch... | diff --git a/dask/array/tests/test_slicing.py b/dask/array/tests/test_slicing.py
--- a/dask/array/tests/test_slicing.py
+++ b/dask/array/tests/test_slicing.py
@@ -1065,3 +1065,9 @@ def test_slice_array_3d_with_bool_numpy_array():
actual = array[mask].compute()
expected = np.arange(13, 24)
assert_eq(actua... | ["dask/array/tests/test_slicing.py::test_slice_array_null_dimension"] | ["dask/array/tests/test_slicing.py::test_slicing_with_Nones[index1-shape0]", "dask/array/tests/test_slicing.py::test_negative_n_slicing", "dask/array/tests/test_slicing.py::test_gh4043[True-True-True]", "dask/array/tests/test_slicing.py::test_take_sorted", "dask/array/tests/test_slicing.py::test_index_with_int_dask_arr... | null | true | 2022-01-20T17:38:21Z | 1 | 2 | 1 | 1,144 | 0 | 0.85 | 1 | 0.7 | 0.4 | 0.197333 | 71.942 | |
2,512 | swe_gym::train::742 | swe_gym | train | 742 | iterative__dvc-5785 | iterative/dvc | iterative/dvc | python | 02d9684c339e80f7f50a0a278720273b97d91598 | Document or change default behaviour of `dvc exp run --run-all`
## Issue description
The documentation of `dvc exp run --run-all` does not to match the actual behaviour, since experiments seem to be run in parallel by default, unless explicitly set to sequential execution using `dvc exp run --run-all --jobs 1`
### Af... | Just a note that this is a DVC bug, not a docs issue. The default value for `jobs` is set to 1 in `repo.experiments.run()` but actually being overridden (to `None`) in the CLI command. | diff --git a/dvc/command/experiments.py b/dvc/command/experiments.py
--- a/dvc/command/experiments.py
+++ b/dvc/command/experiments.py
@@ -1213,6 +1213,7 @@ def _add_run_common(parser):
"-j",
"--jobs",
type=int,
+ default=1,
help="Run the specified number of experiments at a t... | diff --git a/tests/unit/command/test_experiments.py b/tests/unit/command/test_experiments.py
--- a/tests/unit/command/test_experiments.py
+++ b/tests/unit/command/test_experiments.py
@@ -93,7 +93,7 @@ def test_experiments_run(dvc, scm, mocker):
"name": None,
"queue": False,
"run_all": False,
... | ["tests/unit/command/test_experiments.py::test_experiments_run"] | ["tests/unit/command/test_experiments.py::test_experiments_list", "tests/unit/command/test_experiments.py::test_experiments_show", "tests/unit/command/test_experiments.py::test_experiments_diff", "tests/unit/command/test_experiments.py::test_experiments_branch", "tests/unit/command/test_experiments.py::test_experiments... | null | true | 2021-04-08T08:06:43Z | 1 | 1 | 1 | 1,155 | 0 | 0.85 | 1 | 0.7 | 0.4 | 0.195833 | 71.9375 | |
2,513 | swe_bench_promax::test::15 | swe_bench_promax | test | 15 | deskflow__deskflow-c_f456aab | deskflow/deskflow | deskflow/deskflow | cpp | de3b9d8e2e588e32163366ccf12a4dd39a3ed58e | During customized builds of the application—such as forks, rebranded distributions, or projects configured with a non-default CMake project name—the server component consistently fails to initialize. Specifically, when the application attempts to launch the core server process, it terminates abruptly with a fatal runti... | diff --git a/src/lib/common/Settings.cpp b/src/lib/common/Settings.cpp
--- a/src/lib/common/Settings.cpp
+++ b/src/lib/common/Settings.cpp
@@ -92,6 +92,9 @@ QVariant Settings::defaultValue(const QString &key)
if (key == Client::Binary)
return kClientBinName;
+ if (key == Server::Binary)
+ return kServerBi... | diff --git a/src/test/shared/gui/mocks/AppConfigMock.h b/src/test/shared/gui/mocks/AppConfigMock.h
--- a/src/test/shared/gui/mocks/AppConfigMock.h
+++ b/src/test/shared/gui/mocks/AppConfigMock.h
@@ -39,7 +39,6 @@ class AppConfigMock : public deskflow::gui::IAppConfig
MOCK_METHOD(const QString &, screenName, (), (con... | null | null | key4127/refactor-dockerhub:deskflow__deskflow-c_f456aab | true | 1741874305 | 7 | 28 | null | 1,723 | 0 | 0.9 | 1 | 0.55 | 0.6 | 0.3805 | 71.9165 | ||
2,514 | swe_gym::train::822 | swe_gym | train | 822 | iterative__dvc-8962 | iterative/dvc | iterative/dvc | python | ea6e01d0e06a1de9b4ff06d74e16ec8fcf1c3cb9 | cloud versioning: status command
`dvc status` or `dvc data status` should work with cloud-versioned remotes.
Edit: The scope for this ticket is limited to `version_aware` remotes. | I'd rather have it in `dvc data status`, but there's not any support for cloud status in that command yet, so it depends on how much effort this would be
For the record: looking at it closer, `dvc data status` is closer to the spirit, but `dvc status` is already a trainwreck and it is easy to shove another cloud-relate... | diff --git a/dvc/commands/data.py b/dvc/commands/data.py
--- a/dvc/commands/data.py
+++ b/dvc/commands/data.py
@@ -21,12 +21,14 @@
class CmdDataStatus(CmdBase):
COLORS = {
+ "not_in_remote": "red",
"not_in_cache": "red",
"committed": "green",
"uncommitted": "yellow",
"... | diff --git a/tests/func/test_data_status.py b/tests/func/test_data_status.py
--- a/tests/func/test_data_status.py
+++ b/tests/func/test_data_status.py
@@ -13,6 +13,7 @@
"uncommitted": {},
"git": {},
"not_in_cache": [],
+ "not_in_remote": [],
"unchanged": [],
"untracked": [],
}
@@ -81,6 +82,... | ["tests/func/test_data_status.py::test_noscm_repo", "tests/func/test_data_status.py::test_skip_uncached_pipeline_outputs", "tests/unit/command/test_data_status.py::test_cli"] | ["tests/unit/command/test_data_status.py::test_show_status[True-args2]", "tests/unit/command/test_data_status.py::test_show_status[True-args0]", "tests/unit/command/test_data_status.py::test_show_status[False-args0]", "tests/unit/command/test_data_status.py::test_json[args0-to_omit0]", "tests/func/test_data_status.py::... | null | true | 2023-02-06T03:21:22Z | 2 | 47 | 3 | 180 | 0 | 0.85 | 1 | 0.2 | 1 | 0.186667 | 71.91 | |
2,515 | swe_bench_pro::test::8 | swe_bench_pro | test | 8 | instance_NodeBB__NodeBB-2657804c1fb6b84dc76ad3b18ecf061aaab5f29f-vf2cf3cbd463b7ad942381f1c6d077626485a1e9e | NodeBB/NodeBB | nodebb/nodebb | javascript | 3ecbb624d892b9fce078304cf89c0fe94f8ab3be | "## Title:
Pinned topic ordering can behave inconsistently
## Description
Currently, changing the order of pinned topics in a category can apply inconsistently depending on user permissions and whether the selected topic is actually pinned." | ## Requirements
"- Reordering pinned topics uses a single target topic identifier `tid` and a numeric target position `order` (a non-negative integer). The socket endpoint `topics.orderPinnedTopics` must accept ONLY a single plain object payload of the shape `{ tid, order }`; any other payload — including `null`, non-o... | diff --git a/public/src/client/category/tools.js b/public/src/client/category/tools.js
index 0a10cec5be17..5087a0fe2e08 100644
--- a/public/src/client/category/tools.js
+++ b/public/src/client/category/tools.js
@@ -275,11 +275,7 @@ define('forum/category/tools', [
if (!ajaxify.data.topics || !ajaxify.data.template.c... | diff --git a/test/topics.js b/test/topics.js
index 10a808f53..84689b656 100644
--- a/test/topics.js
+++ b/test/topics.js
@@ -878,15 +878,22 @@ describe('Topic\'s', () => {
});
});
+ it('should error with an array payload', (done) => {
+ socketTopics.orderPinnedTopics({ uid: adminUid }, [{ tid: tid1, order: ... | ["test/topics.js | Topic's order pinned topics should error with unprivileged user", "test/topics.js | Topic's order pinned topics should not do anything if topics are not pinned", "test/topics.js | Topic's order pinned topics should order pinned topics", "test/topics.js | Topic's order pinned topics should error with ... | ["test/topics.js | Topic's should check if user is moderator", "test/topics.js | Topic's .post should fail to create topic with invalid data", "test/topics.js | Topic's .post should create a new topic with proper parameters", "test/topics.js | Topic's .post should get post count", "test/topics.js | Topic's .post should... | ghcr.io/scaleapi/swe-bench_pro-v2:instance_NodeBB__NodeBB-2657804c1fb6b84dc76ad3b18ecf061aaab5f29f-vf2cf3cbd463b7ad942381f1c6d077626485a1e9e | true | null | 3 | 53 | 4 | 242 | 0 | 0.95 | 1 | 0.2 | 1 | 0.217 | 71.901 | |
2,516 | swe_bench_pro::test::537 | swe_bench_pro | test | 537 | instance_protonmail__webclients-8142704f447df6e108d53cab25451c8a94976b92 | protonmail/webclients | protonmail/webclients | javascript | b63f2ef3157bdfb8b3ff46d9097f9e65b00a4c3a | ## Title:
Centralize calendar constants in a dedicated module without changing behavior
#### Description:
Calendar-related constants and enums (types, visibility states, limits, view settings, subscription states) are scattered across interface definition files and other modules. This fragmentation makes maintenance... | ## Requirements
- Provide a single authoritative module for calendar categorical values at packages/shared/lib/calendar/constants.ts that exposes calendar categories (CALENDAR_TYPE, CALENDAR_TYPE_EXTENDED, EXTENDED_CALENDAR_TYPE), visibility states (CALENDAR_DISPLAY), view settings (SETTINGS_VIEW, VIEWS), operational f... | diff --git a/applications/calendar/src/app/containers/calendar/CalendarSidebar.tsx b/applications/calendar/src/app/containers/calendar/CalendarSidebar.tsx
index 7d724c3ec6e..0b231b34d3a 100644
--- a/applications/calendar/src/app/containers/calendar/CalendarSidebar.tsx
+++ b/applications/calendar/src/app/containers/cale... | diff --git a/applications/mail/src/app/components/message/extras/ExtraEvents.test.tsx b/applications/mail/src/app/components/message/extras/ExtraEvents.test.tsx
index 29171db44f6..c1d04e5da12 100644
--- a/applications/mail/src/app/components/message/extras/ExtraEvents.test.tsx
+++ b/applications/mail/src/app/components... | ["containers/calendar/settings/PersonalCalendarsSection.test.tsx | displays the calendar limit warning when the limit is reached", "src/app/components/message/extras/ExtraEvents.test.tsx | should display the expected fields for the \"new invitation\" happy case", "src/app/components/message/extras/ExtraEvents.test.tsx ... | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_protonmail__webclients-8142704f447df6e108d53cab25451c8a94976b92 | true | null | 13 | 93 | 13 | 1,798 | 0 | 0.95 | 1 | 0.7 | 0.35 | 0.609667 | 71.8915 | |
2,517 | swe_gym::train::1120 | swe_gym | train | 1,120 | pydantic__pydantic-9193 | pydantic/pydantic | pydantic/pydantic | python | 8aeac1a4c61b084ebecf61b38bb8d3e80884dc33 | v2.7.0b1 throws error when using OpenAI SDK
### Initial Checks
- [X] I confirm that I'm using Pydantic V2
### Description
Trying to generate a simple chat completion (as in below code example) throws:
```shell
AttributeError: type object 'Generic' has no attribute '__annotations__'
```
I've confirmed that this doe... | Great catch, thank you. We'll look into it.
@willbakst,
Could you please provide the full traceback? Thanks!
Also, could you share the full output of `pip freeze`? We're having trouble reproducing this, wondering if there's a chance it's related to other dependency versions (in particular, the version of the openai ... | 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
@@ -536,7 +536,7 @@ def _model_schema(self, cls: type[BaseModel]) -> core_schema.CoreSchema:
assert cls.__mro__[0] is cl... | diff --git a/tests/test_generics.py b/tests/test_generics.py
--- a/tests/test_generics.py
+++ b/tests/test_generics.py
@@ -2886,3 +2886,11 @@ class FooGeneric(TypedDict, Generic[T]):
ta_foo_generic = TypeAdapter(FooGeneric[str])
assert ta_foo_generic.validate_python({'type': 'tomato'}) == {'type': 'tomato'}
... | ["tests/test_generics.py::test_generic_with_allow_extra"] | ["tests/test_generics.py::test_generic_recursive_models_with_a_concrete_parameter", "tests/test_generics.py::test_double_typevar_substitution", "tests/test_generics.py::test_non_generic_field", "tests/test_generics.py::test_partial_specification_with_inner_typevar", "tests/test_generics.py::test_partial_specification_i... | null | true | 2024-04-09T14:07:12Z | 1 | 2 | 1 | 1,028 | 0 | 0.85 | 1 | 0.7 | 0.4 | 0.178 | 71.884 | |
2,518 | swe_gym::train::1908 | swe_gym | train | 1,908 | facebookresearch__hydra-616 | facebookresearch/hydra | facebookresearch/hydra | python | 5fb1c7cd28c8267e0ae1de690be5270da1108dc0 | Add option to not create .hydra in output directory
In some cases users are not interested in the generation of config.yaml, hydra.yaml etc.
add an option to opt out. | I have my applications in docker containers and don't need that either, also I have to say that the whole output directory feature surprised me (especially changing my working directory), since I was only expecting it to do configuration things. So I'd vote to actually make it opt in. :-)
Hi Jonas,
The working directo... | diff --git a/hydra/_internal/config_loader_impl.py b/hydra/_internal/config_loader_impl.py
--- a/hydra/_internal/config_loader_impl.py
+++ b/hydra/_internal/config_loader_impl.py
@@ -61,7 +61,8 @@ def is_package_rename(self) -> bool:
return self.pkg1 is not None and self.pkg2 is not None
def is_delete(s... | diff --git a/tests/test_config_loader.py b/tests/test_config_loader.py
--- a/tests/test_config_loader.py
+++ b/tests/test_config_loader.py
@@ -391,6 +391,20 @@ def test_load_config_file_with_schema_validation(
expected.append(LoadTrace("db/mysql", path, "main", "this_test"))
assert config_loader.get_l... | ["tests/test_hydra.py::test_hydra_output_dir[tests/test_apps/app_with_cfg/my_app.py-None-overrides2-expected_files2]", "tests/test_config_loader.py::TestConfigLoader::test_assign_null[pkg]", "tests/test_config_loader.py::test_delete_by_assigning_null_is_deprecated", "tests/test_config_loader.py::TestConfigLoader::test_... | ["tests/test_config_loader.py::TestConfigLoader::test_load_with_missing_default[pkg]", "tests/test_config_loader.py::test_complex_defaults[overrides0-expected0]", "tests/test_config_loader.py::TestConfigLoader::test_load_history[pkg]", "tests/test_config_loader.py::TestConfigLoader::test_load_yml_file[pkg]", "tests/tes... | null | true | 2020-05-28T18:25:22Z | 3 | 42 | 6 | 166 | 0 | 0.85 | 1 | 0.2 | 1 | 0.167667 | 71.853 | |
2,519 | swe_bench_verified::test::289 | swe_bench_verified | test | 289 | pallets__flask-5014 | pallets/flask | pallets/flask | python | 7ee9ceb71e868944a46e1ff00b506772a53a4f1d | Require a non-empty name for Blueprints
Things do not work correctly if a Blueprint is given an empty name (e.g. #4944).
It would be helpful if a `ValueError` was raised when trying to do that. | diff --git a/src/flask/blueprints.py b/src/flask/blueprints.py
--- a/src/flask/blueprints.py
+++ b/src/flask/blueprints.py
@@ -190,6 +190,9 @@ def __init__(
root_path=root_path,
)
+ if not name:
+ raise ValueError("'name' may not be empty.")
+
if "." in name:
... | diff --git a/tests/test_blueprints.py b/tests/test_blueprints.py
--- a/tests/test_blueprints.py
+++ b/tests/test_blueprints.py
@@ -256,6 +256,11 @@ def test_dotted_name_not_allowed(app, client):
flask.Blueprint("app.ui", __name__)
+def test_empty_name_not_allowed(app, client):
+ with pytest.raises(Value... | ["tests/test_blueprints.py::test_empty_name_not_allowed"] | ["tests/test_blueprints.py::test_blueprint_specific_error_handling", "tests/test_blueprints.py::test_blueprint_specific_user_error_handling", "tests/test_blueprints.py::test_blueprint_app_error_handling", "tests/test_blueprints.py::test_blueprint_prefix_slash[-/-/]", "tests/test_blueprints.py::test_blueprint_prefix_sla... | null | true | 2023-03-04T18:36:21Z | 1 | 3 | 1 | 193 | 0 | 1 | 1 | 0.35 | 0.8 | 0.042167 | 71.8515 | ||
2,520 | swe_gym::train::1878 | swe_gym | train | 1,878 | facebookresearch__hydra-893 | facebookresearch/hydra | facebookresearch/hydra | python | 8ae0cca21129319953e0dd22ad342bea56cac0b4 | [Bug] Cannot add a value to hydra.job.set_env from the command line.
# 🐛 Bug
## Description
I cannot add a append a config value for the hydra configuration (hydra installed from source)
## To reproduce
**Minimal Code/Config snippet to reproduce**
```
python main.py +hydra.job.env_set.WANDB_NOTES="X"
```
**Stack t... | Thanks for reporting. for now set it in your config. | diff --git a/hydra/_internal/config_loader_impl.py b/hydra/_internal/config_loader_impl.py
--- a/hydra/_internal/config_loader_impl.py
+++ b/hydra/_internal/config_loader_impl.py
@@ -265,7 +265,6 @@ def _load_configuration(
)
raise ConfigCompositionException(msg) from e
- OmegaConf.se... | diff --git a/hydra/test_utils/test_utils.py b/hydra/test_utils/test_utils.py
--- a/hydra/test_utils/test_utils.py
+++ b/hydra/test_utils/test_utils.py
@@ -15,7 +15,7 @@
from subprocess import PIPE, Popen, check_output
from typing import Any, Dict, Iterator, List, Optional, Union
-from omegaconf import DictConfig, O... | ["tests/test_hydra.py::test_hydra_env_set_with_override"] | ["tests/test_hydra.py::test_hydra_main_rerun[None-tests.test_apps.hydra_main_rerun.my_app]", "tests/test_hydra.py::test_interpolating_dir_hydra_to_app[tests/test_apps/interpolating_dir_hydra_to_app/my_app.py-None]", "tests/test_hydra.py::test_app_with_config_file__no_overrides[tests/test_apps/app_with_cfg/my_app.py-Non... | null | true | 2020-08-20T01:05:16Z | 1 | 1 | 1 | 849 | 0 | 0.85 | 1 | 0.7 | 0.4 | 0.144833 | 71.7845 | |
2,521 | swe_gym::train::950 | swe_gym | train | 950 | dask__dask-6893 | dask/dask | dask/dask | python | 2bfc965f5721c44cc453bb9f06d057b134964725 | Indexing an array created from `np.object` returns wrong dtype.
**What happened**:
When indexing a dask Array that was constructed from a numpy array of the `object` dtype, the returned dask array has a `Int64` dtype.
**What you expected to happen**:
I expected the array dtype to stay the same.
**Minimal Complete Ve... | Thanks for raising this issue! I can reproduce. I'll open a PR shortly with a fix. | diff --git a/dask/array/utils.py b/dask/array/utils.py
--- a/dask/array/utils.py
+++ b/dask/array/utils.py
@@ -58,6 +58,8 @@ def meta_from_array(x, ndim=None, dtype=None):
if x is None:
x = np.ndarray
+ elif dtype is None and hasattr(x, "dtype"):
+ dtype = x.dtype
if isinstance(x, type)... | 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
@@ -1584,6 +1584,12 @@ def test_slicing_flexible_type():
assert_eq(a[:, 0], b[:, 0])
+def test_slicing_with_object_dtype():
+ # https://g... | ["dask/array/tests/test_array_core.py::test_slicing_with_object_dtype"] | ["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_to_dask_dataframe", "dask/array/tests/test_array_core.py::test_astype", "dask/array/tests/test_array_core.py::test_meta[dtype1]", "dask/array/tests/tes... | null | true | 2020-11-25T17:28:29Z | 1 | 2 | 1 | 829 | 0 | 0.85 | 1 | 0.7 | 0.4 | 0.144833 | 71.7845 | |
2,522 | swe_gym::train::781 | swe_gym | train | 781 | iterative__dvc-9212 | iterative/dvc | iterative/dvc | python | 8399bf612a849efa2bc800eef61a6d5c19269893 | Nested Interpolation / Expansions
It would be really nice to have the possibility to nest string interpolations / variables expansions, ex. interpolating in `dvc.yaml` a field of `params.yaml` that is itself an interpolation of another field...
For example:
In `params.yaml`
```yaml
paths:
data:
root: path/to/d... | +1
@m-gris You are using the hydra integration, right? Does it not solve your use case, or you just want to simplify by not needing hydra?
@dberenbaum
Yes I do use the hydra integration indeed, but, afaik, it does not allow to do what I'm trying to do, i.e reduce hardcoding to the bare minimum by composing expanded ... | diff --git a/dvc/utils/hydra.py b/dvc/utils/hydra.py
--- a/dvc/utils/hydra.py
+++ b/dvc/utils/hydra.py
@@ -36,6 +36,8 @@ def compose_and_dump(
with initialize_config_dir(config_dir, version_base=None):
cfg = compose(config_name=config_name, overrides=overrides)
+ OmegaConf.resolve(cfg)
+
suffix ... | diff --git a/tests/func/utils/test_hydra.py b/tests/func/utils/test_hydra.py
--- a/tests/func/utils/test_hydra.py
+++ b/tests/func/utils/test_hydra.py
@@ -178,7 +178,7 @@ def test_compose_and_dump(tmp_dir, suffix, overrides, expected):
def test_compose_and_dump_yaml_handles_string(tmp_dir):
- """Regression test... | ["tests/func/utils/test_hydra.py::test_compose_and_dump_resolves_interpolation"] | ["tests/func/utils/test_hydra.py::test_apply_overrides[overrides4-expected4-toml]", "tests/func/utils/test_hydra.py::test_hydra_sweeps[overrides6-expected6]", "tests/func/utils/test_hydra.py::test_apply_overrides[overrides6-expected6-yaml]", "tests/func/utils/test_hydra.py::test_apply_overrides[overrides10-expected10-t... | null | true | 2023-03-20T13:01:21Z | 1 | 2 | 1 | 684 | 0 | 0.85 | 1 | 0.7 | 0.4 | 0.120667 | 71.712 | |
2,523 | swe_gym::train::1905 | swe_gym | train | 1,905 | facebookresearch__hydra-609 | facebookresearch/hydra | facebookresearch/hydra | python | a6fb710c924b545d12b20f46682b067c1d90249f | [Feature Request] Allow @hydra.main() to take a config object and pass it through
# 🚀 Feature Request
Allow @hydra.main() to take a config and pass it through | Will look into it.
Hi, is this feature the only way to run test of a decorated hydra function?
I have something like this with `run` decorated by `hydra.main`:
```
def test_main():
experimental.initialize("../cfg/")
cfg = experimental.compose("../cfg/config.yaml")
run(cfg)
```
but it is ... | diff --git a/hydra/main.py b/hydra/main.py
--- a/hydra/main.py
+++ b/hydra/main.py
@@ -1,6 +1,8 @@
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import functools
-from typing import Callable, Optional
+from typing import Any, Callable, Optional
+
+from omegaconf import DictConfig
from ._in... | diff --git a/tests/test_apps/app_with_cfg_groups/my_app.py b/tests/test_apps/app_with_cfg_groups/my_app.py
--- a/tests/test_apps/app_with_cfg_groups/my_app.py
+++ b/tests/test_apps/app_with_cfg_groups/my_app.py
@@ -1,12 +1,14 @@
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
+from typing import... | ["tests/test_compose.py::test_hydra_main_passthrough"] | ["tests/test_compose.py::TestComposeCloudInfraExample::test_compose[config.yaml-overrides5-expected5-../hydra/test_utils/configs/cloud_infra_example]", "tests/test_compose.py::TestCompose::test_strict_failure_global_strict[compose.yaml-overrides3-expected3-../hydra/test_utils/configs]", "tests/test_compose.py::TestComp... | null | true | 2020-05-26T20:04:06Z | 1 | 28 | 1 | 159 | 0 | 0.85 | 1 | 0.2 | 1 | 0.119833 | 71.7095 | |
2,524 | swe_gym::train::397 | swe_gym | train | 397 | python__mypy-17293 | python/mypy | python/mypy | python | 66b48cbe97bf9c7660525766afe6d7089a984769 | Descriptors that have different behavior on instance and class don't work with `no-strict-optional`
**Bug Report**
Descriptors that detect whether the property is being invoked on an instance or the class itself don't work correctly with `no-strict-optional`, and instead act like they are being invoked on a union of a... | `mypy_primer -p test.py --bisect --debug --old 'v1.9.0' --new 'v1.10.0'` bisects this to #16604 | diff --git a/mypy/checkmember.py b/mypy/checkmember.py
--- a/mypy/checkmember.py
+++ b/mypy/checkmember.py
@@ -654,7 +654,7 @@ def analyze_descriptor_access(descriptor_type: Type, mx: MemberContext) -> Type:
analyze_descriptor_access(
descriptor_type, mx.copy_modified(original_type... | diff --git a/test-data/unit/check-unions.test b/test-data/unit/check-unions.test
--- a/test-data/unit/check-unions.test
+++ b/test-data/unit/check-unions.test
@@ -1258,3 +1258,34 @@ reveal_type(mix) # N: Revealed type is "Union[Type[__main__.A], Type[__main__.B
reveal_type(mix.field_1) # N: Revealed type is "builtin... | ["mypy/test/testcheck.py::TypeCheckSuite::check-unions.test::testDescriptorAccessForUnionOfTypesWithNoStrictOptional"] | [] | null | true | 2024-05-25T07:03:38Z | 1 | 2 | 1 | 660 | 0 | 0.85 | 1 | 0.7 | 0.4 | 0.116667 | 71.7 | |
2,525 | swe_bench_promax::test::133 | swe_bench_promax | test | 133 | astral-sh__ruff-20926 | astral-sh/ruff | astral-sh/ruff | rust | 96b60c11d9efbfbf97faa5394fc3f7cb0a5c40c5 | The semantic error test suite within the linter module has become increasingly cumbersome to maintain as coverage has expanded. All test scenarios are currently embedded directly as multi-line string literals inside the `test_semantic_errors` function in `crates/ruff_linter/src/linter.rs`, resulting in a single test fu... | diff --git a/crates/ruff_linter/src/linter.rs b/crates/ruff_linter/src/linter.rs
--- a/crates/ruff_linter/src/linter.rs
+++ b/crates/ruff_linter/src/linter.rs
@@ -919,17 +919,6 @@ mod tests {
Ok(())
}
- /// Wrapper around `test_contents_syntax_errors` for testing a snippet of code instead of a
- /... | diff --git a/crates/ruff_linter/resources/test/fixtures/semantic_errors/async_comprehension_outside_async_function.py b/crates/ruff_linter/resources/test/fixtures/semantic_errors/async_comprehension_outside_async_function.py
new file mode 100644
--- /dev/null
+++ b/crates/ruff_linter/resources/test/fixtures/semantic_er... | null | null | key4127/refactor-dockerhub:astral-sh__ruff-20926 | true | 1761599891 | 1 | 282 | null | 6,038 | 0 | 0.9 | 1 | 0.35 | 0.75 | 1 | 71.6375 | ||
2,526 | swe_gym::train::783 | swe_gym | train | 783 | iterative__dvc-4334 | iterative/dvc | iterative/dvc | python | 35dd1fda9cfb4b645ae431f4621f2d1853d4fb7c | Config to enable/disable updater
It'd be great if we could disable the updater feature via `dvc config`. It's rather noisy due to the frequent release cycle of DVC. | @mdscruggs I think it's dangerous to disable it completely. We can find some middle ground here. What do you think if we introduce a notion of critical updates? For example, we know that there is a critical patch that fixes a certain version. We can detect the version running and notify only of versions match. I would ... | diff --git a/dvc/config.py b/dvc/config.py
--- a/dvc/config.py
+++ b/dvc/config.py
@@ -138,6 +138,7 @@ class RelPath(str):
Optional("hardlink_lock", default=False): Bool,
Optional("no_scm", default=False): Bool,
Optional("experiments", default=False): Bool,
+ Optional("check_update", d... | diff --git a/tests/unit/test_updater.py b/tests/unit/test_updater.py
--- a/tests/unit/test_updater.py
+++ b/tests/unit/test_updater.py
@@ -44,6 +44,28 @@ def test_fetch(mock_get, updater):
assert info["version"] == __version__
+@pytest.mark.parametrize(
+ "core, result",
+ [
+ ({}, True),
+ ... | ["tests/unit/test_updater.py::test_is_enabled[core2-False]", "tests/unit/test_updater.py::test_check_update_respect_config[False]", "tests/unit/test_updater.py::test_is_enabled[core1-True]", "tests/unit/test_updater.py::test_is_enabled[core0-True]", "tests/unit/test_updater.py::test_check_update_respect_config[True]"] | ["tests/unit/test_updater.py::test_fetch", "tests/unit/test_updater.py::test_check_updates[uptodate]", "tests/unit/test_updater.py::test_check_updates[ahead]", "tests/unit/test_updater.py::test_check", "tests/unit/test_updater.py::test_check_fetches_on_invalid_data_format", "tests/unit/test_updater.py::test_check_updat... | null | true | 2020-08-04T14:52:58Z | 2 | 18 | 5 | 164 | 0 | 0.85 | 1 | 0.2 | 1 | 0.087333 | 71.612 | |
2,527 | swe_gym::train::715 | swe_gym | train | 715 | iterative__dvc-1980 | iterative/dvc | iterative/dvc | python | 45f94e36b25e8f43a4a70edd8a779286273ec70f | Can't `dvc install` if there is another hook in place
`Error: failed to install dvc hooks - git hook '.git/hooks/pre-commit' already exists.` | Discussed this on ods: we could probably just append a command to what is already in the hook.
@efiop , we would also need to check if they have already added the hook to prevent having the same command twice (i.e. `dvc checkout; dvc checkout`) | diff --git a/dvc/scm/git/__init__.py b/dvc/scm/git/__init__.py
--- a/dvc/scm/git/__init__.py
+++ b/dvc/scm/git/__init__.py
@@ -207,12 +207,20 @@ def list_tags(self):
return [t.name for t in self.git.tags]
def _install_hook(self, name, cmd):
+ command = "dvc {}".format(cmd)
+
hook = os.pa... | diff --git a/tests/func/test_install.py b/tests/func/test_install.py
--- a/tests/func/test_install.py
+++ b/tests/func/test_install.py
@@ -15,21 +15,44 @@ class TestInstall(object):
def _hook(self, name):
return os.path.join(".git", "hooks", name)
- @pytest.fixture(autouse=True)
- def setUp(self, ... | ["tests/func/test_install.py::TestInstall::test_should_append_hooks_if_file_already_exists", "tests/func/test_install.py::TestInstall::test_should_be_idempotent"] | ["tests/func/test_install.py::TestInstall::test_should_create_hooks", "tests/func/test_install.py::TestInstall::test_should_pre_push_hook_push", "tests/func/test_install.py::TestInstall::test_should_post_checkout_hook_checkout"] | null | true | 2019-05-10T23:25:16Z | 1 | 16 | 2 | 141 | 0 | 0.85 | 1 | 0.2 | 1 | 0.076833 | 71.5805 | |
2,528 | swe_gym::train::719 | swe_gym | train | 719 | iterative__dvc-5161 | iterative/dvc | iterative/dvc | python | 11382cc891c2c83e9f890d142adeeb22ce331243 | Implement the --show-md flag for dvc metrics show
Currently I can do `dvc metrics diff --show-md` to get a markdown formatted table of metric diffs, but this isn't implemented for `dvc metrics show`. It would be great if it was! | Should be trivial after https://github.com/iterative/dvc/pull/4706 | diff --git a/dvc/command/metrics.py b/dvc/command/metrics.py
--- a/dvc/command/metrics.py
+++ b/dvc/command/metrics.py
@@ -13,6 +13,7 @@
def _show_metrics(
metrics,
+ markdown=False,
all_branches=False,
all_tags=False,
all_commits=False,
@@ -65,7 +66,7 @@ def _round(val):
if missing:
... | diff --git a/tests/unit/command/test_metrics.py b/tests/unit/command/test_metrics.py
--- a/tests/unit/command/test_metrics.py
+++ b/tests/unit/command/test_metrics.py
@@ -19,6 +19,7 @@ def test_metrics_diff(dvc, mocker):
"-R",
"--all",
"--show-json",
+ "--show-md",
... | ["tests/unit/command/test_metrics.py::test_metrics_show_md"] | ["tests/unit/command/test_metrics.py::test_metrics_show_raw_diff", "tests/unit/command/test_metrics.py::test_metrics_diff_markdown_empty", "tests/unit/command/test_metrics.py::test_metrics_diff_no_changes", "tests/unit/command/test_metrics.py::test_metrics_show", "tests/unit/command/test_metrics.py::test_metrics_show_w... | null | true | 2020-12-25T19:37:55Z | 1 | 10 | 1 | 228 | 0 | 0.85 | 1 | 0.2 | 1 | 0.071333 | 71.564 | |
2,529 | swe_gym::train::899 | swe_gym | train | 899 | iterative__dvc-4622 | iterative/dvc | iterative/dvc | python | a664059eff27632a34e58ca8ca08be8bfa117f7e | Support `dvc import --file`
Currently, `--file` is supported on `dvc add` and `dvc import-url`, but not on `dvc import`. This functionality would be useful for keeping `.dvc` files in a special place. | Hi @pokey ! Would you be willing to contribute a small PR for that? It is pretty trivial:
1) add `--file` to https://github.com/iterative/dvc/blob/master/dvc/command/imp.py#L66
2) pass self.args.file in https://github.com/iterative/dvc/blob/master/dvc/command/imp.py#L18
3) pass `fname=fname` to imp_url in https://... | diff --git a/dvc/command/imp.py b/dvc/command/imp.py
--- a/dvc/command/imp.py
+++ b/dvc/command/imp.py
@@ -15,6 +15,7 @@ def run(self):
self.args.url,
self.args.path,
out=self.args.out,
+ fname=self.args.file,
rev=self.args.rev,
... | diff --git a/tests/unit/command/test_imp.py b/tests/unit/command/test_imp.py
--- a/tests/unit/command/test_imp.py
+++ b/tests/unit/command/test_imp.py
@@ -4,7 +4,17 @@
def test_import(mocker):
cli_args = parse_args(
- ["import", "repo_url", "src", "--out", "out", "--rev", "version"]
+ [
+ ... | ["tests/unit/command/test_imp.py::test_import"] | [] | null | true | 2020-09-25T17:16:49Z | 2 | 10 | 1 | 201 | 0 | 0.85 | 1 | 0.2 | 1 | 0.066833 | 71.5505 | |
2,530 | swe_gym::train::779 | swe_gym | train | 779 | iterative__dvc-2164 | iterative/dvc | iterative/dvc | python | 074ea612f612608c5fc66d9c558a2bce2cbee3f9 | destroy: don't remove data files by default in the workspace
Will have to add some option to destroy data files as well. | @efiop , `destroy` should work as `rm -rf .dvc`?
I was thinking about adding the `--all` option that will work as `rm -rf .dvc *.dvc Dvcfile`.
Is that the expected behavior?
Currently `destroy` removes both .dvc/ directory and *.dvc files with their outputs. Starting from 1.0, it should leave outputs intact(in sy... | diff --git a/dvc/repo/destroy.py b/dvc/repo/destroy.py
--- a/dvc/repo/destroy.py
+++ b/dvc/repo/destroy.py
@@ -3,6 +3,6 @@
def destroy(self):
for stage in self.stages():
- stage.remove()
+ stage.remove(remove_outs=False)
shutil.rmtree(self.dvc_dir)
diff --git a/dvc/stage.py b/dvc/stage.py
-... | diff --git a/tests/func/test_destroy.py b/tests/func/test_destroy.py
--- a/tests/func/test_destroy.py
+++ b/tests/func/test_destroy.py
@@ -1,21 +1,28 @@
import os
-from dvc.main import main
+from dvc.system import System
-from tests.func.test_repro import TestRepro
+def test_destroy(repo_dir, dvc_repo):
+ # N... | ["tests/func/test_destroy.py::test_destroy"] | [] | null | true | 2019-06-21T10:14:17Z | 2 | 9 | 1 | 120 | 0 | 0.85 | 1 | 0.2 | 1 | 0.05 | 71.5 | |
2,531 | swe_gym::train::634 | swe_gym | train | 634 | conan-io__conan-15109 | conan-io/conan | conan-io/conan | python | 4614b3abbff15627b3fabdd98bee419721f423ce | [bug] conan 2.0.14 regression on core.sources:download_urls
### Environment details
* Operating System+version: ubuntu-22.04
* Compiler+version: gcc11
* Conan version: 2.0.14
* Python version: 3.11.2
### Steps to reproduce
There is a regression from 2.0.13 -> 2.0.14.
We make use of the
`core.sources:download_urls` ... | Hi @jonboan thanks a lot for your report. We've identified the issue and will fix it asap. For now to unblock you until we release the fix, this only reproduces when the `core.sources:download_cache` conf is not set, so you might try setting it to something that works for you (It's usually set to `<CONAN_HOME>/sources`... | diff --git a/conans/client/downloaders/caching_file_downloader.py b/conans/client/downloaders/caching_file_downloader.py
--- a/conans/client/downloaders/caching_file_downloader.py
+++ b/conans/client/downloaders/caching_file_downloader.py
@@ -49,7 +49,7 @@ def _caching_download(self, urls, file_path,
something... | diff --git a/conans/test/integration/cache/backup_sources_test.py b/conans/test/integration/cache/backup_sources_test.py
--- a/conans/test/integration/cache/backup_sources_test.py
+++ b/conans/test/integration/cache/backup_sources_test.py
@@ -185,6 +185,16 @@ def source(self):
assert f"Sources for {self.file_s... | ["conans/test/integration/cache/backup_sources_test.py::TestDownloadCacheBackupSources::test_upload_sources_backup"] | ["conans/test/integration/cache/backup_sources_test.py::TestDownloadCacheBackupSources::test_list_urls_miss", "conans/test/integration/cache/backup_sources_test.py::TestDownloadCacheBackupSources::test_ok_when_origin_authorization_error", "conans/test/integration/cache/backup_sources_test.py::TestDownloadCacheBackupSou... | null | true | 2023-11-15T16:46:07Z | 1 | 2 | 1 | 8,662 | 0 | 0.85 | 1 | 0.65 | 0.4 | 0.506667 | 71.445 | |
2,532 | swe_gym::train::755 | swe_gym | train | 755 | iterative__dvc-9838 | iterative/dvc | iterative/dvc | python | a051b8b60f5ca7268ff1b1f7e8454f703a5539c6 | repro: External outputs with persist: true and cache: false raise AssertionError
# Bug Report
repro: External outputs with `persist: true` and `cache: false` raise AssertionError
## Description
When setting `persist: true` and `cache: false` to an external output (e.g. `webhdfs://user@example.com/file.txt`), `dvc re... | cc'ing @efiop, do we expect this to work?
Cached external outputs are not supported since 3.0, we should give a better error here.
@efiop, it is in the case of `cache: false` here though.
Ah, right. Then probably missing `out.use_cache` check somewhere up the stack. | diff --git a/dvc/output.py b/dvc/output.py
--- a/dvc/output.py
+++ b/dvc/output.py
@@ -1090,7 +1090,7 @@ def get_files_number(self, filter_info=None):
return len(obj) if obj else 0
def unprotect(self):
- if self.exists:
+ if self.exists and self.use_cache:
self.cache.unprotect... | diff --git a/tests/func/repro/test_repro.py b/tests/func/repro/test_repro.py
--- a/tests/func/repro/test_repro.py
+++ b/tests/func/repro/test_repro.py
@@ -1366,3 +1366,27 @@ def test_repro_ignore_errors(mocker, tmp_dir, dvc, copy_script):
[bar_call, stage1_call, foo_call, stage2_call],
[foo_call, bar_... | ["tests/func/repro/test_repro.py::test_repro_external_outputs[True]"] | ["tests/func/repro/test_repro.py::test_repro_list_of_commands_in_order[True]", "tests/func/repro/test_repro.py::test_repro_pipelines_cli", "tests/func/repro/test_repro.py::test_repro_shell", "tests/func/repro/test_repro.py::test_repro_force_downstream_do_not_force_independent_stages", "tests/func/repro/test_repro.py::t... | null | true | 2023-08-11T13:38:25Z | 1 | 2 | 1 | 6,882 | 0 | 0.85 | 1 | 0.65 | 0.4 | 0.506667 | 71.445 | |
2,533 | swe_bench_verified::test::461 | swe_bench_verified | test | 461 | sympy__sympy-17630 | sympy/sympy | sympy/sympy | python | 58e78209c8577b9890e957b624466e5beed7eb08 | Exception when multiplying BlockMatrix containing ZeroMatrix blocks
When a block matrix with zero blocks is defined
```
>>> from sympy import *
>>> a = MatrixSymbol("a", 2, 2)
>>> z = ZeroMatrix(2, 2)
>>> b = BlockMatrix([[a, z], [z, z]])
```
then block-multiplying it once seems to work fine:
```
>>> block_collapse(... | diff --git a/sympy/matrices/expressions/matexpr.py b/sympy/matrices/expressions/matexpr.py
--- a/sympy/matrices/expressions/matexpr.py
+++ b/sympy/matrices/expressions/matexpr.py
@@ -627,6 +627,8 @@ def _postprocessor(expr):
# manipulate them like non-commutative scalars.
return cls._f... | diff --git a/sympy/matrices/expressions/tests/test_blockmatrix.py b/sympy/matrices/expressions/tests/test_blockmatrix.py
--- a/sympy/matrices/expressions/tests/test_blockmatrix.py
+++ b/sympy/matrices/expressions/tests/test_blockmatrix.py
@@ -3,7 +3,7 @@
BlockMatrix, bc_dist, bc_matadd, bc_transpose, bc_inverse,
... | ["test_issue_17624", "test_zero_matrix_add"] | ["test_bc_matmul", "test_bc_matadd", "test_bc_transpose", "test_bc_dist_diag", "test_block_plus_ident", "test_BlockMatrix", "test_block_collapse_explicit_matrices", "test_BlockMatrix_trace", "test_BlockMatrix_Determinant", "test_squareBlockMatrix", "test_BlockDiagMatrix", "test_blockcut", "test_reblock_2x2", "test_debl... | null | true | 2019-09-18T22:56:31Z | 1 | 2 | 2 | 3,361 | 0 | 1 | 1 | 0.62 | 0.4 | 0.506667 | 71.44 | ||
2,534 | swe_gym::train::2339 | swe_gym | train | 2,339 | modin-project__modin-7205 | modin-project/modin | modin-project/modin | python | e9dbcc127913db77473a83936e8b6bb94ef84f0d | Use custom resources for Ray to schedule a task on a concrete node
It would be helpful to provide an ability to specify custom resources for Ray to be able to schedule a task on a concrete node. E.g., one can provide a related config to use it when scheduling a remote task.
**How it could work**
```python
import modin... | diff --git a/modin/config/__init__.py b/modin/config/__init__.py
--- a/modin/config/__init__.py
+++ b/modin/config/__init__.py
@@ -47,8 +47,10 @@
ProgressBar,
RangePartitioning,
RangePartitioningGroupby,
+ RayInitCustomResources,
RayRedisAddress,
RayRedisPassword,
+ RayTaskCustomResources... | diff --git a/modin/tests/config/test_envvars.py b/modin/tests/config/test_envvars.py
--- a/modin/tests/config/test_envvars.py
+++ b/modin/tests/config/test_envvars.py
@@ -19,6 +19,7 @@
from packaging import version
import modin.config as cfg
+import modin.pandas as pd
from modin.config.envvars import _check_vars
... | ["modin/tests/config/test_envvars.py::test_ray_cluster_resources"] | ["modin/tests/config/test_envvars.py::test_custom_default[str]", "modin/tests/config/test_envvars.py::test_context_manager_update_config[modify_config0]", "modin/tests/config/test_envvars.py::test_doc_module", "modin/tests/config/test_envvars.py::test_custom_help[ExactStr]", "modin/tests/config/test_envvars.py::test_cu... | null | true | 2024-04-19T15:59:35Z | 8 | 98 | 1 | 874 | 0 | 0.85 | 1 | 0.55 | 0.6 | 0.472333 | 71.242 | ||
2,535 | swe_bench_promax::test::123 | swe_bench_promax | test | 123 | verl-project__verl-4185 | verl-project/verl | verl-project/verl | python | 37ec0138d3a30bb69b416d43ef20227f5f5accef | During reinforcement learning training workflows that utilize rollout tracing with backends like Weave or MLflow, the system currently captures trace data for every single sample processed by each agent loop worker. For algorithms such as GRPO that generate multiple rollouts per sample, all associated rollouts are trac... | diff --git a/docs/advance/rollout_trace.rst b/docs/advance/rollout_trace.rst
--- a/docs/advance/rollout_trace.rst
+++ b/docs/advance/rollout_trace.rst
@@ -16,6 +16,27 @@ Trace Parameter Configuration
- ``actor_rollout_ref.rollout.trace.backend=mlflow|weave`` # the trace backend type
- ``actor_rollout_ref.rollout.tr... | diff --git a/tests/utils/test_rollout_trace_on_cpu.py b/tests/utils/test_rollout_trace_on_cpu.py
--- a/tests/utils/test_rollout_trace_on_cpu.py
+++ b/tests/utils/test_rollout_trace_on_cpu.py
@@ -128,6 +128,82 @@ async def test_rollout_trace_with_dummy_backend(mock_weave_client):
mock_weave_client.create_call.asser... | null | null | key4127/refactor-dockerhub:verl-project__verl-4185 | true | 1763524813 | 7 | 111 | null | 3,662 | 0 | 0.9 | 1 | 0.47 | 0.6 | 0.87 | 71.105 | ||
2,536 | swe_bench_verified::test::91 | swe_bench_verified | test | 91 | django__django-12965 | django/django | django/django | python | 437196da9a386bd4cc62b0ce3f2de4aba468613d | Model.objects.all().delete() subquery usage performance regression
Description
Lock tests are failing with Django-MySQL on Django 3.1: https://github.com/adamchainz/django-mysql/pull/660 .
The tests run Model.objects.all().delete().
Django 3.0 generates this SQL:
DELETE FROM `testapp_alphabet`
Django 3.1 generates th... | It looks like this was added in #23576 / PR #11931
It should be possible to prevent the query when dealing with a single alias. It looks like this is a regression on other backends as well. | diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py
--- a/django/db/models/sql/compiler.py
+++ b/django/db/models/sql/compiler.py
@@ -1407,6 +1407,8 @@ def execute_sql(self, returning_fields=None):
class SQLDeleteCompiler(SQLCompiler):
@cached_property
def single_alias(self):
+ ... | diff --git a/tests/delete/tests.py b/tests/delete/tests.py
--- a/tests/delete/tests.py
+++ b/tests/delete/tests.py
@@ -605,6 +605,12 @@ def receiver(instance, **kwargs):
class FastDeleteTests(TestCase):
+ def test_fast_delete_all(self):
+ with self.assertNumQueries(1) as ctx:
+ User.objects.al... | ["test_fast_delete_all (delete.tests.FastDeleteTests)"] | ["test_fast_delete_combined_relationships (delete.tests.FastDeleteTests)", "test_fast_delete_empty_no_update_can_self_select (delete.tests.FastDeleteTests)", "test_fast_delete_fk (delete.tests.FastDeleteTests)", "test_fast_delete_inheritance (delete.tests.FastDeleteTests)", "test_fast_delete_instance_set_pk_none (delet... | null | true | 2020-05-24T13:20:03Z | 1 | 2 | 1 | 2,273 | 0 | 1 | 1 | 0.55 | 0.4 | 0.3855 | 71.0815 | |
2,537 | swe_bench_promax::test::49 | swe_bench_promax | test | 49 | deskflow__deskflow-c_5fa70d0 | deskflow/deskflow | deskflow/deskflow | cpp | d01c07cab8f0d46c71a77424ef6378c7469a8901 | The application supports two operational modes for launching its core process: a background service mode (primarily on Windows) and a desktop mode for direct user interaction. Currently, this process mode configuration resides exclusively within the AppConfig subsystem, initialized to a platform-dependent default at ru... | diff --git a/src/lib/common/Settings.cpp b/src/lib/common/Settings.cpp
--- a/src/lib/common/Settings.cpp
+++ b/src/lib/common/Settings.cpp
@@ -112,6 +112,9 @@ QVariant Settings::defaultValue(const QString &key)
if (key == Core::Port)
return 24800;
+ if (key == Core::ProcessMode)
+ return defaultProcessMod... | diff --git a/src/test/shared/gui/mocks/AppConfigMock.h b/src/test/shared/gui/mocks/AppConfigMock.h
--- a/src/test/shared/gui/mocks/AppConfigMock.h
+++ b/src/test/shared/gui/mocks/AppConfigMock.h
@@ -14,7 +14,6 @@
class AppConfigMock : public deskflow::gui::IAppConfig
{
- using ProcessMode = deskflow::gui::ProcessM... | null | null | key4127/refactor-dockerhub:deskflow__deskflow-c_5fa70d0 | true | 1741874305 | 7 | 101 | null | 4,066 | 0 | 0.9 | 1 | 0.47 | 0.6 | 0.836667 | 71.005 | ||
2,538 | swe_bench_verified::test::472 | swe_bench_verified | test | 472 | sympy__sympy-19783 | sympy/sympy | sympy/sympy | python | 586a43201d0357e92e8c93548d69a9f42bf548f4 | Dagger() * IdentityOperator() is not simplified
As discussed on the mailing list the following does not work.
```
from sympy.physics.quantum.dagger import Dagger
from sympy.physics.quantum.operator import Operator
from sympy.physics.quantum import IdentityOperator
A = Operators('A')
Identity = IdentityOperator()
A * Id... | diff --git a/sympy/physics/quantum/dagger.py b/sympy/physics/quantum/dagger.py
--- a/sympy/physics/quantum/dagger.py
+++ b/sympy/physics/quantum/dagger.py
@@ -1,8 +1,6 @@
"""Hermitian conjugation."""
-from __future__ import print_function, division
-
-from sympy.core import Expr
+from sympy.core import Expr, Mul
fr... | diff --git a/sympy/physics/quantum/tests/test_dagger.py b/sympy/physics/quantum/tests/test_dagger.py
--- a/sympy/physics/quantum/tests/test_dagger.py
+++ b/sympy/physics/quantum/tests/test_dagger.py
@@ -1,8 +1,9 @@
-from sympy import I, Matrix, symbols, conjugate, Expr, Integer
+from sympy import I, Matrix, symbols, co... | ["test_dagger_mul", "test_identity"] | ["test_scalars", "test_matrix", "test_eval_adjoint", "test_operator", "test_operator_inv", "test_hermitian", "test_unitary", "test_outer_product", "test_operator_dagger"] | null | true | 2020-07-16T09:40:38Z | 2 | 13 | 2 | 408 | 0.2 | 1 | 1 | 0.55 | 1 | 0.111333 | 71.0045 | ||
2,539 | swe_bench_verified::test::272 | swe_bench_verified | test | 272 | matplotlib__matplotlib-24637 | matplotlib/matplotlib | matplotlib/matplotlib | python | a9ba9d5d3fe9d5ac15fbdb06127f97d381148dd0 | AnnotationBbox gid not passed to renderer
Hi,
I'm creating matplotlib figures that contain images using AnnotationBbox (following the examples here https://matplotlib.org/stable/gallery/text_labels_and_annotations/demo_annotation_box.html) and my aim is to set the artist gid associated with each image so I can access ... | Seems reasonable. AnnotationBBox has a few artists in it, so I don't think it will get a unique ID? But certainly they could get ids...
Thanks for the reply. Yes, I wondered if I'd need to set different ids for the artists in AnnotationBBox or if I could have one id for the annotation as a whole. Either would be use... | diff --git a/lib/matplotlib/offsetbox.py b/lib/matplotlib/offsetbox.py
--- a/lib/matplotlib/offsetbox.py
+++ b/lib/matplotlib/offsetbox.py
@@ -1446,6 +1446,7 @@ def draw(self, renderer):
self._renderer = renderer
if not self.get_visible() or not self._check_xy(renderer):
return
+ ... | diff --git a/lib/matplotlib/tests/test_backend_svg.py b/lib/matplotlib/tests/test_backend_svg.py
--- a/lib/matplotlib/tests/test_backend_svg.py
+++ b/lib/matplotlib/tests/test_backend_svg.py
@@ -15,6 +15,7 @@
from matplotlib.testing.decorators import check_figures_equal, image_comparison
from matplotlib.testing._mark... | ["lib/matplotlib/tests/test_backend_svg.py::test_annotationbbox_gid"] | ["lib/matplotlib/tests/test_backend_svg.py::test_visibility", "lib/matplotlib/tests/test_backend_svg.py::test_noscale[png]", "lib/matplotlib/tests/test_backend_svg.py::test_noscale[pdf]", "lib/matplotlib/tests/test_backend_svg.py::test_text_urls", "lib/matplotlib/tests/test_backend_svg.py::test_rasterized[png]", "lib/m... | null | true | 2022-12-06T03:42:05Z | 1 | 2 | 1 | 1,916 | 0 | 1 | 1 | 0.55 | 0.4 | 0.326 | 70.903 | |
2,540 | swe_bench_pro::test::291 | swe_bench_pro | test | 291 | instance_future-architect__vuls-d18e7a751d07260d75ce3ba0cd67c4a6aebfd967 | future-architect/vuls | future-architect/vuls | go | 8d5ea98e50cf616847f4e5a2df300395d1f719e9 | ## Missing Support for Trivy JSON Parsing in Vuls
**Current Behavior:**
Vuls lacks native integration with the Trivy vulnerability scanner output. When security teams run Trivy scans and generate vulnerability reports in JSON format, there is no built-in mechanism within Vuls to consume this data. Users must either ma... | ## Requirements
- Introduce an exported `Parse` function in a new Go package that takes the raw Trivy report bytes and a caller-supplied `*models.ScanResult`, unmarshals the bytes as a Trivy `Results` list, populates the scan result, and returns it; if the JSON cannot be unmarshalled it returns a nil result and the err... | diff --git a/.gitignore b/.gitignore
index 3aec86b5f6..a7e0d979a4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,4 +15,4 @@ results/
!setup/docker/*
.DS_Store
dist/
-.idea
\ No newline at end of file
+.idea
diff --git a/GNUmakefile b/GNUmakefile
index b00f541196..12da3108aa 100644
--- a/GNUmakefile
+++ b/GNUmakefil... | diff --git a/contrib/trivy/parser/parser_test.go b/contrib/trivy/parser/parser_test.go
new file mode 100644
index 0000000..3343a50
--- /dev/null
+++ b/contrib/trivy/parser/parser_test.go
@@ -0,0 +1,5843 @@
+package parser
+
+import (
+ "testing"
+
+ "github.com/aquasecurity/trivy/pkg/types"
+ "github.com/d4l3k/messaged... | ["TestParse"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_future-architect__vuls-d18e7a751d07260d75ce3ba0cd67c4a6aebfd967 | true | null | 11 | 449 | 1 | 2,376 | 0 | 0.95 | 1 | 0.7 | 0.27 | 0.896 | 70.8505 | |
2,541 | swe_bench_promax::test::137 | swe_bench_promax | test | 137 | qdrant__qdrant-c_83bb3a3 | qdrant/qdrant | qdrant/qdrant | rust | a926a28d78a4d0b7706a16f67bb54be30eb0cf20 | During performance benchmarking of quantized vector scoring operations in the quantization module, an architectural inconsistency became apparent in how scoring methods interacted with vector data. The architecture-specific scoring functions—`score_point_avx`, `score_point_sse`, `score_point_neon`, and `score_point_sim... | diff --git a/lib/quantization/benches/encode.rs b/lib/quantization/benches/encode.rs
--- a/lib/quantization/benches/encode.rs
+++ b/lib/quantization/benches/encode.rs
@@ -46,7 +46,8 @@ fn encode_dot_bench(c: &mut Criterion) {
b.iter(|| {
let mut _s = 0.0;
for i in 0..vectors_count as ... | diff --git a/lib/quantization/tests/integration/test_avx2.rs b/lib/quantization/tests/integration/test_avx2.rs
--- a/lib/quantization/tests/integration/test_avx2.rs
+++ b/lib/quantization/tests/integration/test_avx2.rs
@@ -45,7 +45,8 @@ mod tests {
let query_u8 = encoded.encode_query(&query);
for (i... | null | null | key4127/refactor-dockerhub:qdrant__qdrant-c_83bb3a3 | true | 1764236973 | 2 | 166 | null | 4,298 | 0 | 0.9 | 1 | 0.32 | 0.75 | 1 | 70.7825 | ||
2,542 | swe_gym::train::623 | swe_gym | train | 623 | conan-io__conan-9758 | conan-io/conan | conan-io/conan | python | 9c34ea7568ec8b7eb36a3fbc0fd2ec8a30716830 | [feature] Update the content of the Markdown generator
The content that the Markdown generator is creating is very outdated. It should show how to use the new generators (`CMakeToolchain`, `CMakeDeps`, `MSBuildToolchain`, etc). There is a proposal [here](https://docs.google.com/document/d/1PbUUXVHB73Ht3YrmBxndboKMrw-_E... | diff --git a/conans/client/generators/markdown.py b/conans/client/generators/markdown.py
--- a/conans/client/generators/markdown.py
+++ b/conans/client/generators/markdown.py
@@ -1,14 +1,23 @@
+import datetime
import os
import textwrap
from jinja2 import DictLoader
from jinja2 import Environment
-from conans.mode... | diff --git a/conans/test/integration/generators/markdown_test.py b/conans/test/integration/generators/markdown_test.py
--- a/conans/test/integration/generators/markdown_test.py
+++ b/conans/test/integration/generators/markdown_test.py
@@ -2,20 +2,18 @@
import unittest
from conans.test.utils.tools import TestClient
... | ["conans/test/integration/generators/markdown_test.py::MarkDownGeneratorTest::test_with_build_modules", "conans/test/integration/generators/markdown_test.py::MarkDownGeneratorTest::test_with_components", "conans/test/integration/generators/markdown_test.py::MarkDownGeneratorTest::test_cmake_find_filename", "conans/test... | ["conans/test/integration/generators/markdown_test.py::MarkDownGeneratorTest::test_no_components"] | null | true | 2021-10-07T12:08:45Z | 1 | 323 | 5 | 337 | 0 | 0.85 | 1 | 0.4 | 0.75 | 0.556167 | 70.781 | ||
2,543 | swe_bench_pro::test::182 | swe_bench_pro | test | 182 | instance_flipt-io__flipt-2ca5dfb3513e4e786d2b037075617cccc286d5c3 | flipt-io/flipt | flipt-io/flipt | go | 168f61194a4cd0f515a589511183bb1bd4f87507 | ## Title
Support multiple metrics exporters (Prometheus, OpenTelemetry)
### Description:
Flipt currently exposes application metrics only through the Prometheus exporter provided by the OTel library. This creates a limitation for organizations that require flexibility to use other exporters with the OpenTelemetry stac... | ## Requirements
- The top-level configuration must expose a `metrics` section that deserializes from YAML into a dedicated metrics configuration structure.
- The metrics configuration must support a boolean `enabled` key that enables or disables metrics export, deserializing correctly from YAML.
- The metrics configu... | diff --git a/config/flipt.schema.cue b/config/flipt.schema.cue
index 041a8153c2..a07a819f90 100644
--- a/config/flipt.schema.cue
+++ b/config/flipt.schema.cue
@@ -21,6 +21,7 @@ import "strings"
log?: #log
meta?: #meta
server?: #server
+ metrics?: #metrics
tracing?: #tr... | diff --git a/internal/config/config_test.go b/internal/config/config_test.go
index 3ca3fc9307..d2c680eb36 100644
--- a/internal/config/config_test.go
+++ b/internal/config/config_test.go
@@ -323,6 +323,27 @@ func TestLoad(t *testing.T) {
return cfg
},
},
+ {
+ name: "metrics disabled",
+ path: "./testd... | ["TestLoad", "TestGetxporter"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_flipt-io__flipt-2ca5dfb3513e4e786d2b037075617cccc286d5c3 | true | null | 9 | 272 | 2 | 2,216 | 0 | 0.95 | 1 | 0.55 | 0.45 | 0.869333 | 70.7705 | |
2,544 | swe_bench_verified::test::158 | swe_bench_verified | test | 158 | django__django-14534 | django/django | django/django | python | 910ecd1b8df7678f45c3d507dde6bcb1faafa243 | BoundWidget.id_for_label ignores id set by ChoiceWidget.options
Description
If you look at the implementation of BoundField.subwidgets
class BoundField:
...
def subwidgets(self):
id_ = self.field.widget.attrs.get('id') or self.auto_id
attrs = {'id': id_} if id_ else {}
attrs = self.build_widget_attrs(attrs)
... | Hey Jacob — Sounds right: I didn't look in-depth but, if you can put your example in a test case it will be clear enough in the PR. Thanks.
Thanks Carlton, I will create a pull request asap.
Here is a pull request fixing this bug: https://github.com/django/django/pull/14533 (closed without merging)
Here is the new pul... | diff --git a/django/forms/boundfield.py b/django/forms/boundfield.py
--- a/django/forms/boundfield.py
+++ b/django/forms/boundfield.py
@@ -277,7 +277,7 @@ def template_name(self):
@property
def id_for_label(self):
- return 'id_%s_%s' % (self.data['name'], self.data['index'])
+ return self.data... | diff --git a/tests/forms_tests/tests/test_forms.py b/tests/forms_tests/tests/test_forms.py
--- a/tests/forms_tests/tests/test_forms.py
+++ b/tests/forms_tests/tests/test_forms.py
@@ -720,7 +720,7 @@ class BeatleForm(Form):
fields = list(BeatleForm(auto_id=False)['name'])
self.assertEqual(len(fields), ... | ["If auto_id is provided when initializing the form, the generated ID in", "test_iterable_boundfield_select (forms_tests.tests.test_forms.FormsTestCase)"] | ["test_attribute_class (forms_tests.tests.test_forms.RendererTests)", "test_attribute_instance (forms_tests.tests.test_forms.RendererTests)", "test_attribute_override (forms_tests.tests.test_forms.RendererTests)", "test_default (forms_tests.tests.test_forms.RendererTests)", "test_kwarg_class (forms_tests.tests.test_for... | null | true | 2021-06-17T15:37:34Z | 1 | 2 | 2 | 1,638 | 0 | 1 | 1 | 0.55 | 0.4 | 0.279667 | 70.764 | |
2,545 | swe_bench_pro::test::444 | swe_bench_pro | test | 444 | instance_internetarchive__openlibrary-d109cc7e6e161170391f98f9a6fa1d02534c18e4-ve8c8d62a2b60610a3c4631f5f23ed866bada9818 | internetarchive/openlibrary | internetarchive/openlibrary | python | daf93507208f2206f8950e3bb5fffac7caf80520 | ## Title: Construct list `Seed` objects from JSON seed representations and align the seed-reference type name
## Description:
In Open Library, a list is made up of "seeds". A seed can be a subject string (for example `"subject/Politics and government"`) or a reference to a `Thing` such as a work, edition, or author. T... | ## Requirements
- The `TypedDict` that describes a JSON reference to a `Thing` by its key must be named `ThingReferenceDict` (replacing the former `SeedDict` name) and must remain importable from the list model module, exposing a single `key` field holding the thing's key.
- The `Seed` class must provide a static meth... | diff --git a/openlibrary/core/lists/model.py b/openlibrary/core/lists/model.py
index 55310da1445..92d2ff5d4dd 100644
--- a/openlibrary/core/lists/model.py
+++ b/openlibrary/core/lists/model.py
@@ -1,5 +1,6 @@
"""Helper functions used by the List model.
"""
+from collections.abc import Iterable
from functools import ... | diff --git a/openlibrary/tests/core/test_lists_model.py b/openlibrary/tests/core/test_lists_model.py
index 85d07f49a..9ad2b52f6 100644
--- a/openlibrary/tests/core/test_lists_model.py
+++ b/openlibrary/tests/core/test_lists_model.py
@@ -1,21 +1,31 @@
-import web
+from typing import cast
-from openlibrary.core.lists.m... | ["openlibrary/tests/core/test_lists_model.py::test_from_json_with_subject_string", "openlibrary/tests/core/test_lists_model.py::test_seed_with_nonstring", "openlibrary/tests/core/test_lists_model.py::test_seed_with_string"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_internetarchive__openlibrary-d109cc7e6e161170391f98f9a6fa1d02534c18e4-ve8c8d62a2b60610a3c4631f5f23ed866bada9818 | true | null | 10 | 629 | 3 | 2,173 | 0 | 0.95 | 1 | 0.7 | 0.27 | 0.862167 | 70.749 | |
2,546 | swe_gym::train::732 | swe_gym | train | 732 | iterative__dvc-1603 | iterative/dvc | iterative/dvc | python | def24131fe0384326a72abd855a49fa574f7332f | state: add entry without manual checksum recalculation
Currently when `dvc add` runs, it doesn't add state entry describing a linked file, leaving it for the next operation to manually recompute. Need to add state entry right after we've created links. | diff --git a/dvc/remote/local.py b/dvc/remote/local.py
--- a/dvc/remote/local.py
+++ b/dvc/remote/local.py
@@ -385,6 +385,12 @@ def _save_file(self, path_info):
self.link(cache, path)
self.state.update_link(path)
+ # we need to update path and cache, since in case of reflink,
+ # or co... | diff --git a/tests/test_add.py b/tests/test_add.py
--- a/tests/test_add.py
+++ b/tests/test_add.py
@@ -1,12 +1,17 @@
from __future__ import unicode_literals
import os
+
+import dvc
import yaml
import time
import shutil
import filecmp
+from mock import patch
+
from dvc.main import main
+from dvc.state import ... | ["tests/test_add.py::TestShouldUpdateStateEntryForFileAfterAdd::test"] | ["tests/test_add.py::TestAddDirectoryWithForwardSlash::test", "tests/test_add.py::TestAddModifiedDir::test", "tests/test_add.py::TestAddDirectory::test", "tests/test_add.py::TestDoubleAddUnchanged::test_dir", "tests/test_add.py::TestAddDirWithExistingCache::test", "tests/test_add.py::TestAddExternalLocalFile::test", "t... | null | true | 2019-02-10T22:16:53Z | 2 | 197 | 1 | 252 | 0 | 0.85 | 1 | 0.4 | 0.75 | 0.542 | 70.7385 | ||
2,547 | swe_gym::train::655 | swe_gym | train | 655 | conan-io__conan-14795 | conan-io/conan | conan-io/conan | python | 8f9d42daa184c1c30d57e8765b872668585b8926 | [bug] Session is not reused in ConanRequester
### What is your suggestion?
Hi! :-)
In `ConanRequester:__init__()` a `requests.Session` is created to reuse the connection later (https://github.com/conan-io/conan/blob/develop2/conans/client/rest/conan_requester.py#L80).
Unfortunately in `_call_method` always a new requ... | diff --git a/conans/client/rest/conan_requester.py b/conans/client/rest/conan_requester.py
--- a/conans/client/rest/conan_requester.py
+++ b/conans/client/rest/conan_requester.py
@@ -81,6 +81,8 @@ def __init__(self, config, cache_folder=None):
adapter = HTTPAdapter(max_retries=self._get_retries(config))
... | diff --git a/conans/test/integration/configuration/requester_test.py b/conans/test/integration/configuration/requester_test.py
--- a/conans/test/integration/configuration/requester_test.py
+++ b/conans/test/integration/configuration/requester_test.py
@@ -22,25 +22,19 @@ def get(self, _, **kwargs):
class ConanReque... | ["conans/test/integration/configuration/requester_test.py::ConanRequesterCacertPathTests::test_cache_config", "conans/test/integration/configuration/requester_test.py::ConanRequesterCacertPathTests::test_default_verify", "conans/test/integration/configuration/requester_test.py::ConanRequesterCacertPathTests::test_defau... | [] | null | true | 2023-09-21T11:19:54Z | 1 | 4 | 4 | 704 | 0 | 0.85 | 1 | 0.4 | 0.8 | 0.130667 | 70.692 | ||
2,548 | swe_gym::train::532 | swe_gym | train | 532 | python__mypy-11680 | python/mypy | python/mypy | python | 01e6aba30c787c664ac88d849b45f7d303316951 | INTERNAL ERROR with `NoReturn` in a boolean operation
```py
from typing import NoReturn
a: NoReturn
a or 1
```
```
>mypy -V
mypy 0.920+dev.01e6aba30c787c664ac88d849b45f7d303316951
```
<details>
<summary>traceback</summary>
```
>mypy --show-traceback test.py
test.py:4: error: INTERNAL ERROR -- Please try using mypy ... | Interesting. Something should probably return `UninhabitedType`.
Yeah, looks like even:
```
from typing import NoReturn
def f() -> NoReturn: ...
if f():
pass
else:
pass
```
breaks the "guarantee" of https://github.com/python/mypy/blob/4e34fecfe59d83aa3b9e04cbde1834aff7a47e5d/mypy/checker.py#L4382 | diff --git a/mypy/checker.py b/mypy/checker.py
--- a/mypy/checker.py
+++ b/mypy/checker.py
@@ -4379,7 +4379,8 @@ def find_isinstance_check(self, node: Expression
If either of the values in the tuple is None, then that particular
branch can never occur.
- Guaranteed to not return None, None. (... | diff --git a/test-data/unit/check-unreachable-code.test b/test-data/unit/check-unreachable-code.test
--- a/test-data/unit/check-unreachable-code.test
+++ b/test-data/unit/check-unreachable-code.test
@@ -1416,3 +1416,15 @@ x = 1 # E: Statement is unreachable
raise Exception
x = 1 # E: Statement is unreachable
[buil... | ["mypy/test/testcheck.py::TypeCheckSuite::check-unreachable-code.test::testUnreachableNoReturnBinaryOps"] | [] | null | true | 2021-12-08T08:15:13Z | 2 | 10 | 1 | 3,080 | 0.25 | 0.85 | 1 | 0.62 | 1 | 0.533333 | 70.689 | |
2,549 | swe_bench_pro::test::316 | swe_bench_pro | test | 316 | instance_gravitational__teleport-1316e6728a3ee2fc124e2ea0cc6a02044c87a144-v626ec2a48416b10a88641359a169d99e935ff037 | gravitational/teleport | gravitational/teleport | go | 2f51af0e04d6022b1d6475c5637980f64b113658 | # Improve event storage and time-based search efficiency.
## Description:
Currently, event records in the system do not have a dedicated date attribute, making it difficult to perform queries over specific days or ranges. Searching across multiple days requires manual computation of timestamps, and the existing indexi... | ## Requirements
- Implement constants in `lib/events/dynamoevents/dynamoevents.go` for event date handling so that `iso8601DateFormat` (value "2006-01-02") and `keyDate` (value "CreatedAtDate") are defined and used consistently for event date formatting and as a key in DynamoDB.
- Ensure every audit event stores the `... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 57eef81e7b5b2..21d2f47503aaf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog
+## 6.2
+
+This release of teleport contains minor features and bugfixes.
+
+* Changed DynamoDB events backend indexing strategy. [#6583](https://github.com/gravitatio... | diff --git a/lib/events/dynamoevents/dynamoevents_test.go b/lib/events/dynamoevents/dynamoevents_test.go
index 802865bdb..dbf6ffd75 100644
--- a/lib/events/dynamoevents/dynamoevents_test.go
+++ b/lib/events/dynamoevents/dynamoevents_test.go
@@ -20,18 +20,27 @@ package dynamoevents
import (
"context"
"fmt"
+ "net/h... | ["TestDateRangeGenerator", "TestRFD24IndexExists", "TestRFD24EmitStoresDate", "TestRFD24EmitAndSearchAcrossMonth", "TestRFD24MigrateMakesLegacySearchable"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_gravitational__teleport-1316e6728a3ee2fc124e2ea0cc6a02044c87a144-v626ec2a48416b10a88641359a169d99e935ff037 | true | null | 3 | 544 | 5 | 1,945 | 0 | 0.95 | 1 | 0.55 | 0.45 | 0.824167 | 70.635 | |
2,550 | swe_gym::train::1877 | swe_gym | train | 1,877 | facebookresearch__hydra-2332 | facebookresearch/hydra | facebookresearch/hydra | python | 57287ec4dae6cea15f3254e8c453ec7972140483 | [Bug] Link to upgrade guide documentation site still crashes
# 🐛 Bug
## Description
In hydra-core==1.2.0, basic_launcher produces the following warning:
`Hydra versions will no longer change working directory at job runtime by default.`, but the provided website link doesn't work.
**Stack trace/error message**
```
@h... | diff --git a/hydra/_internal/config_loader_impl.py b/hydra/_internal/config_loader_impl.py
--- a/hydra/_internal/config_loader_impl.py
+++ b/hydra/_internal/config_loader_impl.py
@@ -419,7 +419,7 @@ def _load_single_config(
if schema is not None:
try:
- url = "https://... | diff --git a/tests/defaults_list/test_defaults_list.py b/tests/defaults_list/test_defaults_list.py
--- a/tests/defaults_list/test_defaults_list.py
+++ b/tests/defaults_list/test_defaults_list.py
@@ -910,7 +910,7 @@ def test_include_nested_group_name_(
expected: List[ResultDefault],
warning_file: str,
) -> No... | ["tests/defaults_list/test_defaults_tree.py::test_deprecated_package_header_keywords[deprecated_headers/group_foo]", "tests/defaults_list/test_defaults_tree.py::test_deprecated_package_header_keywords[deprecated_headers/name]", "tests/defaults_list/test_defaults_tree.py::test_legacy_override_hydra_version_base_1_1[lega... | ["tests/test_config_loader.py::TestConfigLoader::test_load_with_missing_default[pkg]", "tests/test_overrides_parser.py::test_sort[sort(range(1,", "tests/test_config_loader.py::test_complex_defaults[overrides0-expected0]", "tests/test_overrides_parser.py::test_primitive_quoted_string[interpolation_with_quoted_string]", ... | null | true | 2022-08-09T10:23:51Z | 11 | 30 | 19 | 983 | 0 | 0.85 | 1 | 0.55 | 0.6 | 0.263833 | 70.6165 | ||
2,551 | swe_gym::train::572 | swe_gym | train | 572 | python__mypy-11396 | python/mypy | python/mypy | python | fb31409b392c5533b25173705d62ed385ee39cfb | Support more output formats
**Feature**
Mypy should support JSON output to stdout. Pyright has this already via `--outputjson` so it might be a decent idea to copy [their schema](https://github.com/microsoft/pyright/blob/main/docs/command-line.md#json-output) as much as possible.
**Pitch**
Programmatic access to the... | Turns out there is a standard for this sort of thing: [Static Analysis Results Interchange Format (SARIF)](https://sarifweb.azurewebsites.net/)
It seems preferable to adapt SARIF instead of another tool-specific format.
That looks like one of those extremely long specifications that supports everything but is so c... | diff --git a/mypy/build.py b/mypy/build.py
--- a/mypy/build.py
+++ b/mypy/build.py
@@ -44,6 +44,7 @@
import mypy.semanal_main
from mypy.checker import TypeChecker
+from mypy.error_formatter import OUTPUT_CHOICES, ErrorFormatter
from mypy.errors import CompileError, ErrorInfo, Errors, report_internal_error
from my... | diff --git a/mypy/test/testoutput.py b/mypy/test/testoutput.py
new file mode 100644
--- /dev/null
+++ b/mypy/test/testoutput.py
@@ -0,0 +1,58 @@
+"""Test cases for `--output=json`.
+
+These cannot be run by the usual unit test runner because of the backslashes in
+the output, which get normalized to forward slashes by ... | ["mypy/test/testoutput.py::OutputJSONsuite::outputjson.test::testOutputJsonWithHint", "mypy/test/testoutput.py::OutputJSONsuite::outputjson.test::testOutputJsonSimple", "mypy/test/testoutput.py::OutputJSONsuite::outputjson.test::testOutputJsonNoIssues"] | [] | null | true | 2021-10-27T19:21:26Z | 6 | 153 | 3 | 1,329 | 0 | 0.85 | 1 | 0.4 | 0.6375 | 0.7215 | 70.605125 | |
2,552 | swe_gym::train::687 | swe_gym | train | 687 | iterative__dvc-1712 | iterative/dvc | iterative/dvc | python | 5c39c6b8bd01f543a27abe1d3091640d4e844bf8 | UNIQUE constraint failed: state.inode
**Please provide information about your setup**
DVC version(i.e. `dvc --version`), Platform and method of installation (pip, homebrew, pkg Mac, exe (Windows), DEB(Linux), RPM(Linux))
Version is ```0.30.1+3c659b``` although I've also tried ```0.30.1```. Installed with pip3 on pytho... | @gregfriedland hi, do you have an existing DVC stage file `test.dvc` (when `dvc run` fails)? do you mind sharing it with us, please?
also, could you run please `ls -la ./train/`?
~I'm just wondering why is it trying to insert a checksum for the cache dir itself `Path /tmp/dvc_cache inode 519743`.~
I think the bug itsel... | diff --git a/dvc/state.py b/dvc/state.py
--- a/dvc/state.py
+++ b/dvc/state.py
@@ -408,7 +408,7 @@ def _insert_new_state_record(
def get_state_record_for_inode(self, inode):
cmd = "SELECT mtime, size, md5, timestamp from {} " "WHERE inode={}"
- cmd = cmd.format(self.STATE_TABLE, inode)
+ c... | diff --git a/tests/test_state.py b/tests/test_state.py
--- a/tests/test_state.py
+++ b/tests/test_state.py
@@ -1,10 +1,12 @@
import os
+import mock
from dvc.utils.compat import str
from dvc.state import State
from dvc.utils import file_md5
from dvc.main import main
+from dvc.utils.fs import get_inode
from t... | ["tests/test_state.py::TestGetStateRecordForInode::test_transforms_inode"] | ["tests/test_state.py::TestStateOverflow::test", "tests/test_state.py::TestState::test_update"] | null | true | 2019-03-12T02:13:55Z | 1 | 2 | 1 | 4,837 | 0 | 0.85 | 1 | 0.62 | 0.4 | 0.506667 | 70.59 | |
2,553 | swe_gym::train::910 | swe_gym | train | 910 | dask__dask-9653 | dask/dask | dask/dask | python | c189ac5920013e0b8f59c2afb2fd7f0c85693452 | padding datetime arrays with missing values
**Describe the issue**:
Trying to pad with `NaT` (the `nan`-equivalent for datetime dtypes) results in a `TypeError`:
```pytb
TypeError: `pad_value` must be composed of integral typed values.
```
This is the case for `np.datetime64("NaT")`, `np.array("NaT", dtype="datetime64... | actually, this might be a (partial) duplicate of #4841? That does not mention numpy scalars, though.
Thanks for the report @keewis. Agree that it might be related to #4841. I also notice that this fails with any datetime value, not just missing ones.
I get the same error with:
```python
np.pad(a, (1, 1), mode="c... | diff --git a/dask/array/creation.py b/dask/array/creation.py
--- a/dask/array/creation.py
+++ b/dask/array/creation.py
@@ -905,7 +905,7 @@ def tile(A, reps):
def expand_pad_value(array, pad_value):
- if isinstance(pad_value, Number):
+ if isinstance(pad_value, Number) or getattr(pad_value, "ndim", None) == 0... | diff --git a/dask/array/tests/test_creation.py b/dask/array/tests/test_creation.py
--- a/dask/array/tests/test_creation.py
+++ b/dask/array/tests/test_creation.py
@@ -755,6 +755,7 @@ def test_pad_0_width(shape, chunks, pad_width, mode, kwargs):
[
((10,), (3,), 1, "constant", {}),
((10,), (3,), 2,... | ["dask/array/tests/test_creation.py::test_pad_constant_values[np_a6-pad_value6]", "dask/array/tests/test_creation.py::test_pad_constant_values[np_a9-pad_value9]", "dask/array/tests/test_creation.py::test_pad_constant_values[np_a8-pad_value8]", "dask/array/tests/test_creation.py::test_pad[shape2-chunks2-2-constant-kwarg... | ["dask/array/tests/test_creation.py::test_arr_like[i4-C-my-name-shape0-chunks0-list-asarray-empty-numpy]", "dask/array/tests/test_creation.py::test_arr_like_shape[i4-shape1-chunks1-out_shape1-full_like-kwargs3]", "dask/array/tests/test_creation.py::test_tile_chunks[1-shape0-chunks0]", "dask/array/tests/test_creation.py... | null | true | 2022-11-14T10:47:05Z | 1 | 2 | 9 | 3,483 | 0 | 0.85 | 1 | 0.62 | 0.4 | 0.506667 | 70.59 | |
2,554 | swe_gym::train::806 | swe_gym | train | 806 | iterative__dvc-4066 | iterative/dvc | iterative/dvc | python | 51a8c782aeac0b758adef9a161ae97b17503cb01 | .dvcignore - new lines throw error, expected str instance, NoneType found.
```
DVC version: 1.0.0b2
Python version: 3.7.6
Platform: Ubuntu 18.04.4 LTS
Package: dvc_1.0.0b2_amd64.deb
Filesystem: ceph-fuse
```
- **Issue:** After installing DVC v1.0.0b2, all DVC commands fail with the following error:
` ERROR: unexpected ... | Can be reproduced in master with
```py
def test_ignore_blank_line(tmp_dir, dvc, monkeypatch):
tmp_dir.gen({"dir": {"ignored": "text", "other": "text2"}})
tmp_dir.gen(DvcIgnore.DVCIGNORE_FILE, "dir/ignored\n\nfoo")
assert _files_set("dir", dvc.tree) == {"dir/other"}
monkeypatch.chdir("dir")
... | diff --git a/dvc/ignore.py b/dvc/ignore.py
--- a/dvc/ignore.py
+++ b/dvc/ignore.py
@@ -39,6 +39,7 @@ def __init__(self, ignore_file_path, tree):
for ignore, group in groupby(
regex_pattern_list, lambda x: x[1]
)
+ if ignore is not None
]... | diff --git a/tests/func/test_ignore.py b/tests/func/test_ignore.py
--- a/tests/func/test_ignore.py
+++ b/tests/func/test_ignore.py
@@ -166,3 +166,10 @@ def test_ignore_subrepo(tmp_dir, scm, dvc):
for _ in subrepo.brancher(all_commits=True):
assert subrepo.tree.exists(subrepo_dir / "foo")
+
+
+def test_i... | ["tests/func/test_ignore.py::test_ignore_blank_line"] | ["tests/func/test_ignore.py::test_ignore_on_branch", "tests/func/test_ignore.py::test_rename_file", "tests/func/test_ignore.py::test_ignore", "tests/func/test_ignore.py::test_ignore_subrepo", "tests/func/test_ignore.py::test_rename_ignored_file", "tests/func/test_ignore.py::test_remove_file", "tests/func/test_ignore.py... | null | true | 2020-06-18T05:01:01Z | 1 | 1 | 1 | 3,351 | 0 | 0.85 | 1 | 0.62 | 0.4 | 0.503333 | 70.58 | |
2,555 | swe_bench_promax::test::48 | swe_bench_promax | test | 48 | deskflow__deskflow-c_2cb3677 | deskflow/deskflow | deskflow/deskflow | cpp | b0fe79d52780c425e234ba5ac733b601afb50ee7 | The language synchronization feature, which ensures the client device maintains the same keyboard language layout as the server during deskflow sessions, currently relies on an indirect and fragmented configuration pathway that introduces maintainability risks and potential inconsistencies. Specifically, the core proce... | diff --git a/src/lib/deskflow/ArgParser.cpp b/src/lib/deskflow/ArgParser.cpp
--- a/src/lib/deskflow/ArgParser.cpp
+++ b/src/lib/deskflow/ArgParser.cpp
@@ -36,8 +36,6 @@ bool ArgParser::parseClientArgs(deskflow::ClientArgs &args, int argc, const char
continue;
} else if (isArg(i, argc, argv, nullptr, "--camp... | diff --git a/src/unittests/deskflow/ArgParserTests.cpp b/src/unittests/deskflow/ArgParserTests.cpp
--- a/src/unittests/deskflow/ArgParserTests.cpp
+++ b/src/unittests/deskflow/ArgParserTests.cpp
@@ -170,18 +170,6 @@ void ArgParserTests::clientArgs()
QVERIFY(args.m_shouldExitOk);
}
-void ArgParserTests::client_set... | null | null | key4127/refactor-dockerhub:deskflow__deskflow-c_2cb3677 | true | 1759228794 | 8 | 54 | null | 3,473 | 0 | 0.9 | 1 | 0.47 | 0.6 | 0.68 | 70.535 | ||
2,556 | swe_bench_verified::test::75 | swe_bench_verified | test | 75 | django__django-12209 | django/django | django/django | python | 5a68f024987e6d16c2626a31bf653a2edddea579 | Change in behaviour when saving a model instance with an explcit pk value if the pk field has a default
Description
(last modified by Reupen Shah)
Consider the following model:
from uuid import uuid4
from django.db import models
class Sample(models.Model):
id = models.UUIDField(primary_key=True, default=uuid4)
na... | It looks like the logic in _save_table should not force an insert if an explicit pk value is provided. The logic should likely take pk_set into account if ( not pk_set and self._state.adding and self._meta.pk.default and self._meta.pk.default is not NOT_PROVIDED ): force_insert = True I'm surprised this was not caught... | diff --git a/django/db/models/base.py b/django/db/models/base.py
--- a/django/db/models/base.py
+++ b/django/db/models/base.py
@@ -849,6 +849,7 @@ def _save_table(self, raw=False, cls=None, force_insert=False,
updated = False
# Skip an UPDATE when adding an instance and primary key has a default.
... | diff --git a/tests/serializers/models/data.py b/tests/serializers/models/data.py
--- a/tests/serializers/models/data.py
+++ b/tests/serializers/models/data.py
@@ -4,6 +4,8 @@
NULL values, where allowed.
The basic idea is to have a model for each Django data type.
"""
+import uuid
+
from django.contrib.contenttypes.... | ["partial(func, *args, **keywords) - new function with partial application"] | [] | null | true | 2019-12-12T04:11:05Z | 1 | 1 | 1 | 1,195 | 0 | 1 | 1 | 0.55 | 0.4 | 0.2025 | 70.5325 | |
2,557 | swe_gym::train::737 | swe_gym | train | 737 | iterative__dvc-7103 | iterative/dvc | iterative/dvc | python | 9803db6a64cd61352804c41accdd1a404971af13 | exp init: change stage name to `train`
@dberenbaum, with `--dl`, I don't think `dl` as a default stage name makes sense. Maybe we should go with `train` then?
_Originally posted by @skshetry in https://github.com/iterative/dvc/issues/6446#issuecomment-986792458_ | diff --git a/dvc/command/experiments.py b/dvc/command/experiments.py
--- a/dvc/command/experiments.py
+++ b/dvc/command/experiments.py
@@ -851,7 +851,7 @@ def run(self):
force=self.args.force,
)
- name = self.args.name or self.args.type
+ name = self.args.name or "train"
... | diff --git a/tests/func/experiments/test_init.py b/tests/func/experiments/test_init.py
--- a/tests/func/experiments/test_init.py
+++ b/tests/func/experiments/test_init.py
@@ -30,10 +30,10 @@ def test_init_simple(tmp_dir, scm, dvc, capsys):
assert main(["exp", "init", script]) == 0
out, err = capsys.readouterr... | ["tests/func/experiments/test_init.py::test_init_interactive_live[non-interactive]", "tests/func/experiments/test_init.py::test_init_with_type_default_and_live_provided[True-inp1]", "tests/func/experiments/test_init.py::test_when_stage_already_exists_with_same_name[False]", "tests/func/experiments/test_init.py::test_in... | ["tests/unit/command/test_experiments.py::test_experiments_init_type_invalid_choice", "tests/unit/command/test_experiments.py::test_experiments_remove[False-False-True]", "tests/func/experiments/test_init.py::test_with_a_custom_name", "tests/unit/command/test_experiments.py::test_experiments_init_extra_args[extra_args1... | null | true | 2021-12-06T21:18:12Z | 2 | 4 | 22 | 263 | 0 | 0.85 | 1 | 0.4 | 0.8 | 0.057167 | 70.4715 | ||
2,558 | swe_bench_promax::test::14 | swe_bench_promax | test | 14 | deskflow__deskflow-c_bee0f84 | deskflow/deskflow | deskflow/deskflow | cpp | 2721de220a9eb22ea7f74311c70c15bf751f9a46 | When generating a new TLS certificate through Deskflow's security configuration interface, users occasionally encounter silent failures or explicit errors during certificate creation, particularly after a fresh installation, configuration reset, or when the TLS settings dialog has never been explicitly configured. Inve... | diff --git a/src/apps/deskflow-gui/dialogs/SettingsDialog.cpp b/src/apps/deskflow-gui/dialogs/SettingsDialog.cpp
--- a/src/apps/deskflow-gui/dialogs/SettingsDialog.cpp
+++ b/src/apps/deskflow-gui/dialogs/SettingsDialog.cpp
@@ -153,7 +153,7 @@ void SettingsDialog::accept()
Settings::setValue(Settings::Gui::AutoUpdate... | diff --git a/src/test/shared/gui/mocks/AppConfigMock.h b/src/test/shared/gui/mocks/AppConfigMock.h
--- a/src/test/shared/gui/mocks/AppConfigMock.h
+++ b/src/test/shared/gui/mocks/AppConfigMock.h
@@ -34,7 +34,6 @@ class AppConfigMock : public deskflow::gui::IAppConfig
MOCK_METHOD(deskflow::gui::IConfigScopes &, sco... | null | null | key4127/refactor-dockerhub:deskflow__deskflow-c_bee0f84 | true | 1741874305 | 7 | 45 | null | 3,347 | 0 | 0.9 | 1 | 0.47 | 0.6 | 0.65 | 70.445 | ||
2,559 | swe_gym::train::2413 | swe_gym | train | 2,413 | modin-project__modin-6575 | modin-project/modin | modin-project/modin | python | 5febff397d9b731570ecf187631ae12732eefb5a | Perform simple expressions row-wise directly using pandas qc API
Implement logic allowing to switch to row-wise `.query()` implementation if expression is simple enough (#6499) | diff --git a/modin/core/storage_formats/base/query_compiler.py b/modin/core/storage_formats/base/query_compiler.py
--- a/modin/core/storage_formats/base/query_compiler.py
+++ b/modin/core/storage_formats/base/query_compiler.py
@@ -2271,6 +2271,25 @@ def nsmallest(self, n=5, columns=None, keep="first"):
... | 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
@@ -1310,3 +1310,33 @@ def test_skip_set_columns():
# of equality comparison, in... | ["modin/test/storage_formats/pandas/test_internals.py::test_query_dispatching"] | ["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::test_reorder_labels_cache[two_unbalanced_partitions-size_grow-no_reordering]", "modin/test/storage_formats/pandas/test_internals... | null | true | 2023-09-18T13:02:51Z | 3 | 98 | 1 | 176 | 0 | 0.85 | 1 | 0.2 | 1 | 0.356 | 70.418 | ||
2,560 | swe_bench_pro::test::270 | swe_bench_pro | test | 270 | instance_future-architect__vuls-78b52d6a7f480bd610b692de9bf0c86f57332f23 | future-architect/vuls | future-architect/vuls | go | 048e204b330494643a3b6859a68c31b4b2126f59 | ## Title
CVE confidence ranking does not account for Fortinet advisories as a detection source
## Description
When the scanner determines how confident it is that a detected CVE actually applies to a target, it derives a single "max confidence" value from the detection signals attached to each CVE record. Today that l... | ## Requirements
- The dependency `github.com/vulsio/go-cve-dictionary` must be upgraded (via `go.mod`/`go.sum`) to a build that exposes Fortinet advisory data on each CVE record, including a `Fortinets` collection on the `CveDetail` type, a `HasFortinet()` helper that reports whether any Fortinet entries are present, a... | diff --git a/detector/cve_client.go b/detector/cve_client.go
index d333077f65..fb06df600d 100644
--- a/detector/cve_client.go
+++ b/detector/cve_client.go
@@ -163,15 +163,15 @@ func (client goCveDictClient) detectCveByCpeURI(cpeURI string, useJVN bool) (cve
return cves, nil
}
- nvdCves := []cvemodels.CveDetail{}... | diff --git a/detector/detector_test.go b/detector/detector_test.go
index 8901c90..d9f6b65 100644
--- a/detector/detector_test.go
+++ b/detector/detector_test.go
@@ -69,6 +69,50 @@ func Test_getMaxConfidence(t *testing.T) {
},
wantMax: models.NvdVendorProductMatch,
},
+ {
+ name: "FortinetExactVersionMatch... | ["Test_getMaxConfidence", "Test_getMaxConfidence/JvnVendorProductMatch", "Test_getMaxConfidence/NvdExactVersionMatch", "Test_getMaxConfidence/NvdRoughVersionMatch", "Test_getMaxConfidence/NvdVendorProductMatch", "Test_getMaxConfidence/FortinetExactVersionMatch", "Test_getMaxConfidence/FortinetRoughVersionMatch", "Test_... | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_future-architect__vuls-78b52d6a7f480bd610b692de9bf0c86f57332f23 | true | null | 8 | 270 | 10 | 1,495 | 0 | 0.95 | 1 | 0.55 | 0.45 | 0.749167 | 70.41 | |
2,561 | swe_gym::train::842 | swe_gym | train | 842 | iterative__dvc-2190 | iterative/dvc | iterative/dvc | python | 60ba9399da23555af9e82318f4769496d8b5a861 | dvc run: -f with invalid stage name still runs the command (should not)
```console
$ dvc version
DVC version: 0.41.3
Python version: 3.7.3
Platform: Darwin-18.6.0-x86_64-i386-64bit
```
---
```console
$ echo foo > foo.txt
$ dvc run -d foo.txt \
-f copy \
-o bar.txt \
cp foo.txt bar.txt
Adding '.dvc/repos' to '.dv... | diff --git a/dvc/stage.py b/dvc/stage.py
--- a/dvc/stage.py
+++ b/dvc/stage.py
@@ -480,6 +480,8 @@ def create(
if not fname:
fname = Stage._stage_fname(stage.outs, add=add)
+ stage._check_dvc_filename(fname)
+
wdir = os.path.abspath(wdir)
if cwd is not None:
| diff --git a/tests/func/test_run.py b/tests/func/test_run.py
--- a/tests/func/test_run.py
+++ b/tests/func/test_run.py
@@ -97,16 +97,6 @@ def test(self):
class TestRunBadStageFilename(TestDvc):
def test(self):
- with self.assertRaises(StageFileBadNameError):
- self.dvc.run(
- cm... | ["tests/func/test_run.py::test_bad_stage_fname"] | ["tests/func/test_run.py::TestRunBadWdir::test", "tests/func/test_run.py::TestNewRunShouldRemoveOutsOnNoPersist::test", "tests/func/test_run.py::TestRunNoExec::test", "tests/func/test_run.py::TestRunBadWdir::test_same_prefix", "tests/func/test_run.py::TestRunDeterministicChangedOut::test", "tests/func/test_run.py::Test... | null | true | 2019-06-25T12:22:02Z | 1 | 2 | 1 | 2,061 | 0 | 0.85 | 1 | 0.7 | 0.4 | 0.350167 | 70.4005 | ||
2,562 | swe_bench_pro::test::154 | swe_bench_pro | test | 154 | instance_element-hq__element-web-aeabf3b18896ac1eb7ae9757e66ce886120f8309-vnan | element-hq/element-web | element-hq/element-web | javascript | c9d9c421bc7e3f2a9d5d5ed05679cb3e8e06a388 | ## Title: Duplicated message-preview logic with inconsistent type prefixes and styling.
#### Description.
Message-preview generation and formatting is duplicated across components (for example inside the pinned message banner), each with its own component-specific i18n keys and styles. This duplication increases inco... | ## Requirements
- Introduce a new `EventPreview` component in the new file `src/components/views/rooms/EventPreview.tsx` that renders a message preview for a given event, with an optional localized message-type prefix.
- `EventPreview` must accept a `MatrixEvent` instance via the `mxEvent` prop and render a styled sum... | diff --git a/res/css/_components.pcss b/res/css/_components.pcss
index f52cdbdbdd3..12239fac2df 100644
--- a/res/css/_components.pcss
+++ b/res/css/_components.pcss
@@ -282,6 +282,7 @@
@import "./views/rooms/_EmojiButton.pcss";
@import "./views/rooms/_EntityTile.pcss";
@import "./views/rooms/_EventBubbleTile.pcss";
... | diff --git a/test/test-utils/threads.ts b/test/test-utils/threads.ts
index 1b9e7f0a18..d2459653e5 100644
--- a/test/test-utils/threads.ts
+++ b/test/test-utils/threads.ts
@@ -84,7 +84,7 @@ export const makeThreadEvents = ({
rootEvent.setUnsigned({
"m.relations": {
[RelationType.Thread]: {
- ... | ["test/unit-tests/components/views/rooms/PinnedMessageBanner-test.tsx | <PinnedMessageBanner /> | should render a single pinned event", "test/unit-tests/components/views/rooms/PinnedMessageBanner-test.tsx | <PinnedMessageBanner /> | should display the last message when the pinned event array changed", "test/unit-tests/... | ["test/unit-tests/utils/FixedRollingArray-test.ts | FixedRollingArray | should seed the array with the given value", "test/unit-tests/utils/FixedRollingArray-test.ts | FixedRollingArray | should insert at the correct end", "test/unit-tests/utils/FixedRollingArray-test.ts | FixedRollingArray | should roll over", "test/u... | ghcr.io/scaleapi/swe-bench_pro-v2:instance_element-hq__element-web-aeabf3b18896ac1eb7ae9757e66ce886120f8309-vnan | true | null | 8 | 312 | 8 | 1,467 | 0 | 0.95 | 1 | 0.55 | 0.45 | 0.7445 | 70.396 | |
2,563 | swe_bench_pro::test::302 | swe_bench_pro | test | 302 | instance_future-architect__vuls-ef2be3d6ea4c0a13674aaab08b182eca4e2b9a17-v264a82e2f4818e30f5a25e4da53b27ba119f62b5 | future-architect/vuls | future-architect/vuls | go | 827f2cb8d86509c4455b2df2fe79b9d59533d3b0 | # Title Red Hat OVAL Matcher Drops Per-Package Fix State and Mishandles Modular Variants
## Description
When evaluating OVAL definitions against installed packages on Red Hat-family distributions (Red Hat, CentOS, Alma, Rocky), the per-package matcher does not preserve the per-package resolution metadata that OVAL adv... | ## Requirements
- When evaluating an installed package against an OVAL definition, the per-package matcher must, in addition to deciding whether the package is affected and whether it is not-yet-fixed, determine the per-package resolution state and return it as a result value positioned immediately before the existing ... | diff --git a/go.mod b/go.mod
index 56c7726896..a6312e1270 100644
--- a/go.mod
+++ b/go.mod
@@ -50,10 +50,10 @@ require (
github.com/vulsio/go-kev v0.1.4-0.20240318121733-b3386e67d3fb
github.com/vulsio/go-msfdb v0.2.4-0.20240318121704-8bfc812656dc
github.com/vulsio/gost v0.4.6-0.20240501065222-d47d2e716bfa
- githu... | diff --git a/gost/gost_test.go b/gost/gost_test.go
index b25c983..b20b33d 100644
--- a/gost/gost_test.go
+++ b/gost/gost_test.go
@@ -4,129 +4,77 @@
package gost
import (
- "reflect"
+ "fmt"
"testing"
- "github.com/future-architect/vuls/models"
- gostmodels "github.com/vulsio/gost/models"
+ "github.com/future-ar... | ["TestPackNamesOfUpdate", "TestUpsert", "TestDefpacksToPackStatuses", "TestIsOvalDefAffected", "TestNewGostClient", "Test_convertToDistroAdvisory"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_future-architect__vuls-ef2be3d6ea4c0a13674aaab08b182eca4e2b9a17-v264a82e2f4818e30f5a25e4da53b27ba119f62b5 | true | null | 6 | 339 | 6 | 1,088 | 0 | 0.95 | 1 | 0.4 | 0.6375 | 0.681333 | 70.384625 | |
2,564 | swe_bench_pro::test::161 | swe_bench_pro | test | 161 | instance_element-hq__element-web-d06cf09bf0b3d4a0fbe6bd32e4115caea2083168-vnan | element-hq/element-web | element-hq/element-web | javascript | 2f8e98242c6de16cbfb6ebb6bc29cfe404b343cb | ## Title:
Legacy ReactDOM.render usage for pills and tooltips prevents adoption of modern React root APIs
## Description:
The pill and tooltip utilities still rely on `ReactDOM.render` and `ReactDOM.unmountComponentAtNode` to mount isolated React subtrees into arbitrary DOM nodes outside the main app hierarchy. Each... | ## Requirements
- A reusable `ReactRootManager` class must be defined and exported from a file named exactly `src/utils/react.tsx`, so it can be imported through the existing module path used by the pill and tooltip utilities.
- The `ReactRootManager` class must be constructible with no arguments and must internally t... | diff --git a/src/components/views/elements/PersistedElement.tsx b/src/components/views/elements/PersistedElement.tsx
index 2c87c8e7c60..3feb8561453 100644
--- a/src/components/views/elements/PersistedElement.tsx
+++ b/src/components/views/elements/PersistedElement.tsx
@@ -6,7 +6,7 @@ Please see LICENSE files in the rep... | diff --git a/test/test-utils/utilities.ts b/test/test-utils/utilities.ts
index 4278b73f74d..29b25fda218 100644
--- a/test/test-utils/utilities.ts
+++ b/test/test-utils/utilities.ts
@@ -7,6 +7,7 @@ Please see LICENSE files in the repository root for full details.
*/
import EventEmitter from "events";
+import { act }... | ["test/unit-tests/utils/tooltipify-test.tsx | tooltipify | does nothing for empty element", "test/unit-tests/utils/tooltipify-test.tsx | tooltipify | wraps single anchor", "test/unit-tests/utils/tooltipify-test.tsx | tooltipify | ignores node", "test/unit-tests/utils/tooltipify-test.tsx | tooltipify | does not re-wrap ... | ["test/unit-tests/utils/UrlUtils-test.ts | abbreviateUrl | should return empty string if passed falsey", "test/unit-tests/utils/UrlUtils-test.ts | abbreviateUrl | should abbreviate to host if empty pathname", "test/unit-tests/utils/UrlUtils-test.ts | abbreviateUrl | should not abbreviate if has path parts", "test/unit-... | ghcr.io/scaleapi/swe-bench_pro-v2:instance_element-hq__element-web-d06cf09bf0b3d4a0fbe6bd32e4115caea2083168-vnan | true | null | 7 | 209 | 8 | 1,431 | 0 | 0.95 | 1 | 0.55 | 0.45 | 0.7385 | 70.378 | |
2,565 | swe_bench_pro::test::258 | swe_bench_pro | test | 258 | instance_future-architect__vuls-3c1489e588dacea455ccf4c352a3b1006902e2d4 | future-architect/vuls | future-architect/vuls | go | e4f1e03f6234bbe88564bdfc2d23f120db3c67a6 | ## Title: Severity-only CVEs are scored as CVSS2 and are never counted as critical
### Description
Vulnerability sources report a CVE either with a numeric CVSS score or with a severity label alone, such as `HIGH` or `CRITICAL`. When an OVAL or advisory source reports only a CVSS3 severity label, that CVE contributes... | ## Requirements
- The method that returns a vulnerability's CVSS2 scores, `Cvss2Scores`, must take no arguments, and the operating-system family it previously received must no longer take part in selecting sources.
- The CVSS2 score list must enumerate its sources in the order Red Hat API, Red Hat, NVD, JVN.
- The CVSS... | diff --git a/models/scanresults.go b/models/scanresults.go
index 5b9bb78f5a..286d1ab4a0 100644
--- a/models/scanresults.go
+++ b/models/scanresults.go
@@ -128,13 +128,7 @@ type Kernel struct {
// FilterByCvssOver is filter function.
func (r ScanResult) FilterByCvssOver(over float64) ScanResult {
filtered := r.Scann... | diff --git a/models/scanresults_test.go b/models/scanresults_test.go
index 8f825d157f..64966283a6 100644
--- a/models/scanresults_test.go
+++ b/models/scanresults_test.go
@@ -18,6 +18,7 @@ func TestFilterByCvssOver(t *testing.T) {
in in
out ScanResult
}{
+ //0
{
in: in{
over: 7.0,
@@ -98,7 +99,7 @... | ["TestFilterByCvssOver", "TestFilterIgnoreCveIDs", "TestFilterIgnoreCveIDsContainer", "TestFilterUnfixed", "TestFilterIgnorePkgs", "TestFilterIgnorePkgsContainer", "TestIsDisplayUpdatableNum", "TestSummaries", "TestCountGroupBySeverity", "TestToSortedSlice", "TestCvss2Scores", "TestMaxCvss2Scores", "TestCvss3Scores", "... | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_future-architect__vuls-3c1489e588dacea455ccf4c352a3b1006902e2d4 | true | null | 6 | 267 | 22 | 1,067 | 0 | 0.95 | 1 | 0.4 | 0.6375 | 0.677833 | 70.374125 | |
2,566 | swe_bench_pro::test::225 | swe_bench_pro | test | 225 | instance_flipt-io__flipt-c1728053367c753688f114ec26e703c8fdeda125 | flipt-io/flipt | flipt-io/flipt | go | 775da4fe5fcbc163ab01fd9a809fdbddd9a87ebd | # Title:
Add CUE-based validation of Flipt feature configuration YAML.
## Description:
Flipt feature configurations are expressed as YAML files (for example `features.yaml`), but there is currently no mechanism to check those files against the schema and constraints Flipt expects. As a result, invalid configurations... | ## Requirements
- The `cue` package (located at directory `internal/cue`) must embed a CUE schema definition file named `flipt.cue` into the compiled binary (for example via a package-level `//go:embed flipt.cue` byte variable) so the schema is available to the validation routine at runtime.
- The embedded schema must... | diff --git a/cmd/flipt/main.go b/cmd/flipt/main.go
index 82fbe4f356..64d715d785 100644
--- a/cmd/flipt/main.go
+++ b/cmd/flipt/main.go
@@ -141,6 +141,7 @@ func main() {
rootCmd.AddCommand(migrateCmd)
rootCmd.AddCommand(newExportCommand())
rootCmd.AddCommand(newImportCommand())
+ rootCmd.AddCommand(newValidateComm... | diff --git a/internal/cue/validate_test.go b/internal/cue/validate_test.go
new file mode 100644
index 0000000000..2111fc4fe6
--- /dev/null
+++ b/internal/cue/validate_test.go
@@ -0,0 +1,29 @@
+package cue
+
+import (
+ "os"
+ "testing"
+
+ "cuelang.org/go/cue/cuecontext"
+ "github.com/stretchr/testify/require"
+)
+
+fu... | ["TestValidate_Success", "TestValidate_Failure"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_flipt-io__flipt-c1728053367c753688f114ec26e703c8fdeda125 | true | null | 8 | 366 | 2 | 1,413 | 0 | 0.95 | 1 | 0.55 | 0.45 | 0.7355 | 70.369 | |
2,567 | swe_bench_promax::test::162 | swe_bench_promax | test | 162 | angular__angular-c_bc9a067 | angular/angular | angular/angular | typescript | c2987d8402b7b03333b0081a7f97750cdf612e99 | During active development of Angular's experimental selectorless component feature, the compiler encounters a critical failure when processing templates that contain the new syntax. Specifically, when the template ingestion pipeline in `ingest.ts` encounters a `t.Component` node — the AST representation associated with... | diff --git a/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_component_linker_1.ts b/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_component_linker_1.ts
--- a/packages/compiler-cli/linker/src/file_linker/partial_linkers/partial_component_linker_1.ts
+++ b/packages/compiler-cl... | diff --git a/packages/compiler-cli/src/ngtsc/annotations/component/test/component_spec.ts b/packages/compiler-cli/src/ngtsc/annotations/component/test/component_spec.ts
--- a/packages/compiler-cli/src/ngtsc/annotations/component/test/component_spec.ts
+++ b/packages/compiler-cli/src/ngtsc/annotations/component/test/com... | null | null | key4127/refactor-dockerhub:angular__angular-c_bc9a067 | true | 1745524959 | 10 | 37 | null | 3,229 | 0 | 0.9 | 1 | 0.47 | 0.6 | 0.623333 | 70.365 | ||
2,568 | swe_bench_pro::test::352 | swe_bench_pro | test | 352 | instance_gravitational__teleport-ad41b3c15414b28a6cec8c25424a19bfa7abd0e9-vee9b09fb20c43af7e520f57e9239bbcf46b7113d | gravitational/teleport | gravitational/teleport | go | cdae4e3ee28eedb6b58c1989676c6523ba6dadcc | # Title: Resource listing tables cannot give one column the terminal width the other columns leave unused
## Description
The ASCII table formatter builds every table from column widths that are fixed by the widest cell in each column, with no reference to how wide the terminal actually is. Resource listings render a ... | ## Requirements
- When a table is built from a column order, a set of rows and the name of a column designated for truncation, every column other than the designated one must be limited to a maximum width computed in proportion to the terminal width, and the designated column must take the width the other columns leave... | diff --git a/api/types/app.go b/api/types/app.go
index f9b4a276ef780..4b4547020e904 100644
--- a/api/types/app.go
+++ b/api/types/app.go
@@ -65,6 +65,8 @@ type Application interface {
GetAWSAccountID() string
// Copy returns a copy of this app resource.
Copy() *AppV3
+ // GetTeleportVersion returns the version of... | diff --git a/lib/asciitable/table_test.go b/lib/asciitable/table_test.go
index 96c7f0ddf95c4..ee482af693ab4 100644
--- a/lib/asciitable/table_test.go
+++ b/lib/asciitable/table_test.go
@@ -80,3 +80,55 @@ func TestTruncatedTable(t *testing.T) {
require.Equal(t, truncatedTable, table.AsBuffer().String())
}
+
+func T... | ["TestMakeTableWithTruncatedColumn/column2", "TestMakeTableWithTruncatedColumn/column3", "TestMakeTableWithTruncatedColumn/no_column_match", "TestMakeTableWithTruncatedColumn", "TestTruncatedTable", "TestFullTable", "TestHeadlessTable"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_gravitational__teleport-ad41b3c15414b28a6cec8c25424a19bfa7abd0e9-vee9b09fb20c43af7e520f57e9239bbcf46b7113d | true | null | 4 | 154 | 7 | 1,036 | 0 | 0.95 | 1 | 0.4 | 0.6375 | 0.672667 | 70.358625 | |
2,569 | swe_bench_pro::test::272 | swe_bench_pro | test | 272 | instance_future-architect__vuls-7eb77f5b5127c847481bcf600b4dca2b7a85cf3e | future-architect/vuls | future-architect/vuls | go | e1152352999e04f347aaaee64b5b4e361631e7ac | ###Title: Add port scan configuration with scan-technique interpretation.
##Body:
The configuration layer needs a structured way to describe how a host's ports should be scanned, so that more advanced scanning options can later be driven from `config.toml`. This update introduces a per-server port scan configuration t... | ## Requirements
- A `PortScanConf` configuration type must be defined that holds the port scan settings a user supplies, including a scanner binary path, a privilege flag, a list of scan techniques given as string codes, and a source port.
- A `ScanTechnique` enumeration must be defined that names the supported techni... | diff --git a/Dockerfile b/Dockerfile
index e8f6fc292d..944f88472e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -11,9 +11,9 @@ COPY . $GOPATH/src/$REPOSITORY
RUN cd $GOPATH/src/$REPOSITORY && make install
-FROM alpine:3.11
+FROM alpine:3.13
-MAINTAINER hikachan sadayuki-matsuno
+LABEL maintainer hikachan sadayuki-... | diff --git a/config/portscan_test.go b/config/portscan_test.go
new file mode 100644
index 0000000..aadae10
--- /dev/null
+++ b/config/portscan_test.go
@@ -0,0 +1,99 @@
+package config
+
+import (
+ "reflect"
+ "testing"
+)
+
+func TestPortScanConf_getScanTechniques(t *testing.T) {
+ tests := []struct {
+ name st... | ["TestPortScanConf_getScanTechniques", "TestPortScanConf_getScanTechniques/nil", "TestPortScanConf_getScanTechniques/single", "TestPortScanConf_getScanTechniques/multiple", "TestPortScanConf_getScanTechniques/unknown", "TestPortScanConf_IsZero", "TestPortScanConf_IsZero/not_zero", "TestPortScanConf_IsZero/zero", "TestP... | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_future-architect__vuls-7eb77f5b5127c847481bcf600b4dca2b7a85cf3e | true | null | 8 | 438 | 14 | 1,346 | 0 | 0.95 | 1 | 0.7 | 0.27 | 0.724333 | 70.3355 | |
2,570 | swe_bench_pro::test::74 | swe_bench_pro | test | 74 | instance_ansible__ansible-8127abbc298cabf04aaa89a478fc5e5e3432a6fc-v30a923fb5c164d6cd18280c02422f75e611e8fb2 | ansible/ansible | ansible/ansible | python | 3684b4824d367f866d038c5373f975503580d49e | # Isolate worker processes by detaching inherited standard I/O to prevent unintended terminal interaction.
## Description.
Worker processes were previously inheriting standard input, output, and error file descriptors from the parent process. This could cause unintended behavior such as direct terminal access, unexpec... | ## Requirements
- The `WorkerProcess` constructor in `lib/ansible/executor/worker.py` must use keyword-only arguments (every parameter after `self` must be keyword-only), and every one of those parameters must carry a type annotation, to enforce structured initialization of its dependencies. In addition to its existing... | diff --git a/changelogs/fragments/no-inherit-stdio.yml b/changelogs/fragments/no-inherit-stdio.yml
new file mode 100644
index 00000000000000..761abe6ea0cdbb
--- /dev/null
+++ b/changelogs/fragments/no-inherit-stdio.yml
@@ -0,0 +1,6 @@
+major_changes:
+- Task Execution / Forks - Forks no longer inherit stdio from the pa... | diff --git a/test/sanity/ignore.txt b/test/sanity/ignore.txt
index b8bac0a1e4..f25396b079 100644
--- a/test/sanity/ignore.txt
+++ b/test/sanity/ignore.txt
@@ -152,7 +152,6 @@ lib/ansible/modules/user.py pylint:used-before-assignment
lib/ansible/plugins/action/copy.py pylint:undefined-variable
test/integration/targets... | ["test/units/executor/test_task_executor.py::TestTaskExecutor::test_task_executor_execute", "test/units/executor/test_task_executor.py::TestTaskExecutor::test_task_executor_get_action_handler", "test/units/executor/test_task_executor.py::TestTaskExecutor::test_task_executor_get_handler_normal", "test/units/executor/tes... | ["test/units/executor/test_task_executor.py::TestTaskExecutor::test_recursive_remove_omit", "test/units/plugins/action/test_raw.py::TestCopyResultExclude::test_raw_check_mode_is_True", "test/units/plugins/action/test_raw.py::TestCopyResultExclude::test_raw_executable_is_not_empty_string", "test/units/plugins/action/tes... | ghcr.io/scaleapi/swe-bench_pro-v2:instance_ansible__ansible-8127abbc298cabf04aaa89a478fc5e5e3432a6fc-v30a923fb5c164d6cd18280c02422f75e611e8fb2 | true | null | 7 | 241 | 15 | 1,312 | 0 | 0.95 | 1 | 0.55 | 0.45 | 0.718667 | 70.3185 | |
2,571 | swe_bench_verified::test::293 | swe_bench_verified | test | 293 | psf__requests-1921 | psf/requests | psf/requests | python | 3c88e520da24ae6f736929a750876e7654accc3d | Removing a default header of a session
[The docs](http://docs.python-requests.org/en/latest/user/advanced/#session-objects) say that you can prevent sending a session header by setting the headers value to None in the method's arguments. You would expect (as [discussed on IRC](https://botbot.me/freenode/python-requests... | We _could_ do this, but I'm actually increasingly believing that the default headers dict is the right call here.
> We could do this, but I'm actually increasingly believing that the default headers dict is the right call here.
I'm not sure what you're talking about.
@sigmavirus24 Sorry, I had the context for this ... | diff --git a/requests/sessions.py b/requests/sessions.py
--- a/requests/sessions.py
+++ b/requests/sessions.py
@@ -59,6 +59,8 @@ def merge_setting(request_setting, session_setting, dict_class=OrderedDict):
if v is None:
del merged_setting[k]
+ merged_setting = dict((k, v) for (k, v) in merged... | diff --git a/test_requests.py b/test_requests.py
--- a/test_requests.py
+++ b/test_requests.py
@@ -211,6 +211,14 @@ def test_requests_in_history_are_not_overridden(self):
req_urls = [r.request.url for r in resp.history]
assert urls == req_urls
+ def test_headers_on_session_with_None_are_not_sent(... | ["test_requests.py::RequestsTestCase::test_DIGESTAUTH_WRONG_HTTP_401_GET", "test_requests.py::RequestsTestCase::test_POSTBIN_GET_POST_FILES", "test_requests.py::RequestsTestCase::test_basicauth_with_netrc", "test_requests.py::RequestsTestCase::test_cookie_persists_via_api", "test_requests.py::RequestsTestCase::test_hea... | ["test_requests.py::RequestsTestCase::test_DIGESTAUTH_QUOTES_QOP_VALUE", "test_requests.py::RequestsTestCase::test_DIGEST_AUTH_RETURNS_COOKIE", "test_requests.py::RequestsTestCase::test_DIGEST_STREAM", "test_requests.py::RequestsTestCase::test_HTTP_200_OK_GET_WITH_MIXED_PARAMS", "test_requests.py::RequestsTestCase::tes... | null | true | 2014-02-14T22:15:56Z | 1 | 2 | 6 | 706 | 0 | 1 | 1 | 0.55 | 0.4 | 0.124333 | 70.298 | |
2,572 | swe_bench_verified::test::463 | swe_bench_verified | test | 463 | sympy__sympy-18189 | sympy/sympy | sympy/sympy | python | 1923822ddf8265199dbd9ef9ce09641d3fd042b9 | diophantine: incomplete results depending on syms order with permute=True
```
In [10]: diophantine(n**4 + m**4 - 2**4 - 3**4, syms=(m,n), permute=True)
Out[10]: {(-3, -2), (-3, 2), (-2, -3), (-2, 3), (2, -3), (2, 3), (3, -2), (3, 2)}
In [11]: diophantine(n**4 + m**4 - 2**4 - 3**4, syms=(n,m), permute=True)
Out[11]: {(... | ```diff
diff --git a/sympy/solvers/diophantine.py b/sympy/solvers/diophantine.py
index 6092e35..b43f5c1 100644
--- a/sympy/solvers/diophantine.py
+++ b/sympy/solvers/diophantine.py
@@ -182,7 +182,7 @@ def diophantine(eq, param=symbols("t", integer=True), syms=None,
if syms != var:
d... | diff --git a/sympy/solvers/diophantine.py b/sympy/solvers/diophantine.py
--- a/sympy/solvers/diophantine.py
+++ b/sympy/solvers/diophantine.py
@@ -182,7 +182,7 @@ def diophantine(eq, param=symbols("t", integer=True), syms=None,
if syms != var:
dict_sym_index = dict(zip(syms, range(len(syms... | diff --git a/sympy/solvers/tests/test_diophantine.py b/sympy/solvers/tests/test_diophantine.py
--- a/sympy/solvers/tests/test_diophantine.py
+++ b/sympy/solvers/tests/test_diophantine.py
@@ -547,6 +547,13 @@ def test_diophantine():
assert diophantine(x**2 + y**2 +3*x- 5, permute=True) == \
set([(-1, 1), (... | ["test_diophantine"] | ["test_input_format", "test_univariate", "test_classify_diop", "test_linear", "test_quadratic_simple_hyperbolic_case", "test_quadratic_elliptical_case", "test_quadratic_parabolic_case", "test_quadratic_perfect_square", "test_quadratic_non_perfect_square", "test_issue_9106", "test_issue_18138", "test_DN", "test_bf_pell"... | null | true | 2019-12-31T15:45:24Z | 1 | 2 | 1 | 662 | 0 | 1 | 1 | 0.55 | 0.4 | 0.117 | 70.276 | |
2,573 | swe_bench_verified::test::468 | swe_bench_verified | test | 468 | sympy__sympy-19040 | sympy/sympy | sympy/sympy | python | b9179e80d2daa1bb6cba1ffe35ca9e6612e115c9 | Factor with extension=True drops a factor of y-1
I guess this related (or a duplicate of?) #5786
This is from stackoverflow:
https://stackoverflow.com/questions/60682765/python-sympy-factoring-polynomial-over-complex-numbers
```julia
In [9]: z = expand((x-1)*(y-1))
In [10]: z
Out[10]: x⋅y - x - y + 1
In [11]: factor... | That happens cause of a typo in
https://github.com/sympy/sympy/blob/b9179e80d2daa1bb6cba1ffe35ca9e6612e115c9/sympy/polys/factortools.py#L1150
it was fixed by@skirpichev sometime last year 😄 ... I'll put a pr through
:white_check_mark:
Hi, I am the [SymPy bot](https://github.com/sympy/sympy-bot) (v158). I'm here t... | diff --git a/sympy/polys/factortools.py b/sympy/polys/factortools.py
--- a/sympy/polys/factortools.py
+++ b/sympy/polys/factortools.py
@@ -1147,7 +1147,7 @@ def dmp_ext_factor(f, u, K):
return lc, []
f, F = dmp_sqf_part(f, u, K), f
- s, g, r = dmp_sqf_norm(f, u, K)
+ s, g, r = dmp_sqf_norm(F, u, K... | diff --git a/sympy/polys/tests/test_polytools.py b/sympy/polys/tests/test_polytools.py
--- a/sympy/polys/tests/test_polytools.py
+++ b/sympy/polys/tests/test_polytools.py
@@ -58,7 +58,7 @@
from sympy.core.basic import _aresame
from sympy.core.compatibility import iterable
from sympy.core.mul import _keep_coeff
-from... | ["test_issue_5786"] | ["test_Poly_mixed_operations", "test_Poly_from_dict", "test_Poly_from_list", "test_Poly_from_poly", "test_Poly_from_expr", "test_Poly__new__", "test_Poly__args", "test_Poly__gens", "test_Poly_zero", "test_Poly_one", "test_Poly__unify", "test_Poly_free_symbols", "test_PurePoly_free_symbols", "test_Poly__eq__", "test_Pur... | null | true | 2020-03-31T19:53:54Z | 1 | 2 | 1 | 657 | 0 | 1 | 1 | 0.55 | 0.4 | 0.116167 | 70.2735 | |
2,574 | swe_bench_pro::test::402 | swe_bench_pro | test | 402 | instance_internetarchive__openlibrary-4b7ea2977be2747496ba792a678940baa985f7ea-v0f5aece3601a5b4419f7ccec1dbda2071be28ee4 | internetarchive/openlibrary | internetarchive/openlibrary | python | 86d9b8a203cab5bc446614f3cbffd77b4751084a | # Author Import System Cannot Utilize External Identifiers for Matching
## Description
The current Open Library import system only supports basic author name and date matching, missing the opportunity to leverage external identifiers (VIAF, Goodreads, Amazon, LibriVox, etc.) that could significantly improve author ma... | ## Requirements
- The author import system should accept Open Library keys and external identifier dictionaries (remote_ids) containing known identifiers like VIAF, Goodreads, Amazon, and LibriVox for improved matching.
- The author matching process should follow a priority-based approach: first match on a provided Op... | diff --git a/openlibrary/catalog/add_book/__init__.py b/openlibrary/catalog/add_book/__init__.py
index 7d2b27a2a52..35ac34c0458 100644
--- a/openlibrary/catalog/add_book/__init__.py
+++ b/openlibrary/catalog/add_book/__init__.py
@@ -74,6 +74,7 @@
"????",
"01-01-1900",
]
+SUSPECT_DATE_EXEMPT_SOURCES: Final = ... | diff --git a/openlibrary/catalog/add_book/tests/test_load_book.py b/openlibrary/catalog/add_book/tests/test_load_book.py
index 4b971f0f333..3f88fd807e3 100644
--- a/openlibrary/catalog/add_book/tests/test_load_book.py
+++ b/openlibrary/catalog/add_book/tests/test_load_book.py
@@ -8,7 +8,7 @@
remove_author_honorifi... | ["openlibrary/catalog/add_book/tests/test_load_book.py::test_import_author_name_natural_order[author0]", "openlibrary/catalog/add_book/tests/test_load_book.py::test_import_author_name_natural_order[author1]", "openlibrary/catalog/add_book/tests/test_load_book.py::test_import_author_name_natural_order[author2]", "openli... | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_internetarchive__openlibrary-4b7ea2977be2747496ba792a678940baa985f7ea-v0f5aece3601a5b4419f7ccec1dbda2071be28ee4 | true | null | 8 | 276 | 24 | 1,200 | 0 | 0.95 | 1 | 0.55 | 0.45 | 0.7 | 70.2625 | |
2,575 | swe_bench_pro::test::469 | swe_bench_pro | test | 469 | instance_navidrome__navidrome-31799662706fedddf5bcc1a76b50409d1f91d327 | navidrome/navidrome | navidrome/navidrome | go | 537e2fc033b71a4a69190b74f755ebc352bb4196 | **Title:** Bearer tokens from the custom authorization header are not parsed correctly
**Description:**
The authentication system does not properly handle Bearer tokens supplied via the custom authorization header. Instead of parsing the header, it copies the entire authorization header value verbatim into the standa... | ## Requirements
- The system must extract Bearer tokens from the custom authorization header using a function `tokenFromHeader(r *http.Request) string` that reads the value of `consts.UIAuthorizationHeader`, performs a case-insensitive check to determine whether the value begins with the word ""Bearer"", and returns th... | diff --git a/cmd/root.go b/cmd/root.go
index 3a1757be9b4..1efa456b363 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -11,13 +11,11 @@ import (
"github.com/go-chi/chi/v5/middleware"
"github.com/navidrome/navidrome/conf"
"github.com/navidrome/navidrome/consts"
- "github.com/navidrome/navidrome/core/metrics"
"githu... | diff --git a/server/auth_test.go b/server/auth_test.go
index 864fb743..6c4cd8a4 100644
--- a/server/auth_test.go
+++ b/server/auth_test.go
@@ -13,6 +13,7 @@ import (
"github.com/navidrome/navidrome/model/request"
+ "github.com/go-chi/jwtauth/v5"
"github.com/google/uuid"
"github.com/navidrome/navidrome/conf"... | ["TestServer"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_navidrome__navidrome-31799662706fedddf5bcc1a76b50409d1f91d327 | true | null | 9 | 163 | 1 | 1,198 | 0 | 0.95 | 1 | 0.55 | 0.45 | 0.699667 | 70.2615 | |
2,576 | swe_bench_pro::test::229 | swe_bench_pro | test | 229 | instance_flipt-io__flipt-c8d71ad7ea98d97546f01cce4ccb451dbcf37d3b | flipt-io/flipt | flipt-io/flipt | go | 29d3f9db40c83434d0e3cc082af8baec64c391a9 | ## Title: Rules that reference an unknown variant or segment are not reported when a feature configuration file is validated
### Description
When a feature configuration file is validated, a rule that references a variant or a segment the file does not define is not reported, so validation accepts the file and returns... | ## Requirements
- The `Validate` function in the `internal/cue` package must accept a file name and file contents as inputs and return a single `error` value instead of a `(Result, error)` pair.
- The previous return shape must not remain reachable: the `Result` type must be removed, and no overload, wrapper, or compa... | diff --git a/cmd/flipt/validate.go b/cmd/flipt/validate.go
index e6d28152f0..99f82aeb97 100644
--- a/cmd/flipt/validate.go
+++ b/cmd/flipt/validate.go
@@ -2,12 +2,13 @@ package main
import (
"encoding/json"
- "errors"
"fmt"
"os"
"github.com/spf13/cobra"
"go.flipt.io/flipt/internal/cue"
+ "go.flipt.io/fli... | diff --git a/internal/cue/validate_fuzz_test.go b/internal/cue/validate_fuzz_test.go
index 183e55b4eb..19ca872fad 100644
--- a/internal/cue/validate_fuzz_test.go
+++ b/internal/cue/validate_fuzz_test.go
@@ -23,7 +23,7 @@ func FuzzValidate(f *testing.F) {
t.Skip()
}
- if _, err := validator.Validate("foo", in)... | ["TestValidate_V1_Success", "TestValidate_Latest_Success", "TestValidate_Latest_Segments_V2", "TestValidate_Failure", "FuzzValidate", "TestFS_Invalid_VariantFlag_Segment", "TestFS_Invalid_VariantFlag_Distribution", "TestFS_Invalid_BooleanFlag_Segment"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_flipt-io__flipt-c8d71ad7ea98d97546f01cce4ccb451dbcf37d3b | true | null | 6 | 310 | 8 | 832 | 0 | 0.95 | 1 | 0.4 | 0.6375 | 0.638667 | 70.256625 | |
2,577 | swe_gym::train::710 | swe_gym | train | 710 | iterative__dvc-8904 | iterative/dvc | iterative/dvc | python | d1c5fcc1b840ca42ab30f62342dbddf32eed1e15 | dvc.yaml: `foreach` dictionary does not accept numbers as keys
# Bug Report
## Description
`foreach` in a stage has multiple options to pass arguments to iterate on. The third example in
https://dvc.org/doc/user-guide/project-structure/dvcyaml-files#foreach-stages uses dictionarys. However, if you replace `uk` and `u... | diff --git a/dvc/parsing/__init__.py b/dvc/parsing/__init__.py
--- a/dvc/parsing/__init__.py
+++ b/dvc/parsing/__init__.py
@@ -392,7 +392,7 @@ def normalized_iterable(self):
"""Convert sequence to Mapping with keys normalized."""
iterable = self.resolved_iterable
if isinstance(iterable, Mappi... | diff --git a/tests/func/parsing/test_foreach.py b/tests/func/parsing/test_foreach.py
--- a/tests/func/parsing/test_foreach.py
+++ b/tests/func/parsing/test_foreach.py
@@ -44,6 +44,23 @@ def test_with_dict_data(tmp_dir, dvc):
assert not resolver.tracked_vars["build@model2"]
+def test_with_dict_with_non_str_keys... | ["tests/func/parsing/test_foreach.py::test_with_dict_with_non_str_keys"] | ["tests/func/parsing/test_foreach.py::test_params_file_tracked_for_composite_list", "tests/func/parsing/test_foreach.py::test_foreach_data_is_only_resolved_once", "tests/func/parsing/test_foreach.py::test_foreach_interpolated_simple_list", "tests/func/parsing/test_foreach.py::test_foreach_with_imported_vars[test_params... | null | true | 2023-01-28T18:42:13Z | 1 | 2 | 1 | 1,771 | 0 | 0.85 | 1 | 0.7 | 0.4 | 0.301833 | 70.2555 | ||
2,578 | swe_bench_verified::test::199 | swe_bench_verified | test | 199 | django__django-15569 | django/django | django/django | python | 884b4c27f506b3c29d58509fc83a35c30ea10d94 | RegisterLookupMixin._unregister_lookup() should clear the lookup cache.
Description
(last modified by Himanshu Balasamanta)
In current source code, in the _unregister_lookup method, https://github.com/django/django/blame/main/django/db/models/query_utils.py#L212, the cache is not cleared, which should be done, as ... | Hi Himanshu. This may be right, yes — I need to have a sit-down and play with it. Main question: Are you able to put together an example case where the wrong result arrises? I was looking at PR #6906 which added the cache clearing. Also noting the For use in tests only... in the _unregister_lookup docstring. So this w... | diff --git a/django/db/models/query_utils.py b/django/db/models/query_utils.py
--- a/django/db/models/query_utils.py
+++ b/django/db/models/query_utils.py
@@ -217,6 +217,7 @@ def _unregister_lookup(cls, lookup, lookup_name=None):
if lookup_name is None:
lookup_name = lookup.lookup_name
de... | diff --git a/tests/custom_lookups/tests.py b/tests/custom_lookups/tests.py
--- a/tests/custom_lookups/tests.py
+++ b/tests/custom_lookups/tests.py
@@ -323,6 +323,8 @@ def test_lookups_caching(self):
with register_lookup(models.ForeignObject, Exactly):
# getting the lookups again should re-cache
... | ["test_get_transforms (model_fields.test_jsonfield.TestMethods)", "test_lookups_caching (custom_lookups.tests.LookupTests)"] | ["test_formfield (model_fields.test_jsonfield.TestFormField)", "test_formfield_custom_encoder_decoder (model_fields.test_jsonfield.TestFormField)", "test_subquery_usage (custom_lookups.tests.SubqueryTransformTests)", "test_call_order (custom_lookups.tests.LookupTransformCallOrderTests)", "test_overridden_get_lookup (cu... | null | true | 2022-04-08T06:55:17Z | 1 | 1 | 2 | 635 | 0 | 1 | 1 | 0.55 | 0.4 | 0.109167 | 70.2525 | |
2,579 | swe_gym::train::736 | swe_gym | train | 736 | iterative__dvc-9246 | iterative/dvc | iterative/dvc | python | 24e10e0278c1bbfeb37d4414b48c84fbded1165f | cloud versioning: imports
* [x] For chained `import-url` imports I think it will not work right now unless the file has been pushed to a DVC remote, but when we get to refactoring regular cached objects to use dvc-data index for push/pull (so everything is unified to use the dvc-data index) this kind of chaining (from... | Discussed a use case for this with @mnrozhkov. They have two repos:
1. Data registry: They have a cloud-versioned data registry generated by extracting frames from videos. It must be cloud-versioned because an external annotations tool needs to be able to access the data.
2. Annotation and training pipeline: Then the... | diff --git a/dvc/dependency/repo.py b/dvc/dependency/repo.py
--- a/dvc/dependency/repo.py
+++ b/dvc/dependency/repo.py
@@ -1,25 +1,14 @@
-import errno
-import os
-from collections import defaultdict
-from copy import copy
-from typing import TYPE_CHECKING, Dict, Optional, Set, Tuple, Union
+from typing import TYPE_CHEC... | diff --git a/tests/func/test_data_cloud.py b/tests/func/test_data_cloud.py
--- a/tests/func/test_data_cloud.py
+++ b/tests/func/test_data_cloud.py
@@ -226,12 +226,13 @@ def test_pull_git_imports(tmp_dir, dvc, scm, erepo):
assert dvc.pull()["fetched"] == 0
- for item in ["foo", "new_dir", dvc.cache.local.pat... | ["tests/func/test_import.py::test_import_subrepos[files1-True]", "tests/func/test_import.py::test_import_complete_repo", "tests/func/test_import.py::test_import_subrepos[files1-False]", "tests/func/test_import.py::test_import_with_jobs", "tests/func/test_import.py::test_parameterized_repo[paths0]", "tests/func/test_imp... | ["tests/func/test_data_cloud.py::test_pull_allow_missing", "tests/func/test_import.py::test_import_with_no_exec", "tests/func/test_data_cloud.py::test_target_remote", "tests/func/test_data_cloud.py::test_push_stats[fs0-2", "tests/func/test_data_cloud.py::test_hash_recalculation", "tests/func/test_data_cloud.py::test_wa... | null | true | 2023-03-27T16:26:14Z | 6 | 235 | 28 | 620 | 0 | 0.85 | 1 | 0.4 | 0.6375 | 0.603333 | 70.250625 | |
2,580 | swe_bench_pro::test::344 | swe_bench_pro | test | 344 | instance_gravitational__teleport-78b0d8c72637df1129fb6ff84fc49ef4b5ab1288 | gravitational/teleport | gravitational/teleport | go | 19c5768873a50f1f84f0906add418c29c68f4bc2 | # Title Duplicate backend loads occur when cached data is unavailable
## Description
When Teleport cannot serve data from its primary cache layer, concurrent requests for the same data may trigger duplicate backend loads. This increases backend pressure and slows responses.
Teleport needs a short-lived fallback cachi... | ## Requirements
- Introduce a short-lived fallback cache as an unexported type within the `cache` package, constructible through a constructor `newFnCache(ttl time.Duration)` that takes a time-to-live duration.
- The fallback cache must expose a `Get(ctx, key, loadfn)` operation where `loadfn` has signature `func() (i... | diff --git a/api/types/audit.go b/api/types/audit.go
index 6d459a08ac87e..eb5e6421c9d9d 100644
--- a/api/types/audit.go
+++ b/api/types/audit.go
@@ -19,6 +19,7 @@ package types
import (
"time"
+ "github.com/gogo/protobuf/proto"
"github.com/gravitational/trace"
)
@@ -67,6 +68,8 @@ type ClusterAuditConfig inter... | diff --git a/lib/cache/fncache_test.go b/lib/cache/fncache_test.go
new file mode 100644
index 0000000000000..ffc74ea04862a
--- /dev/null
+++ b/lib/cache/fncache_test.go
@@ -0,0 +1,160 @@
+/*
+Copyright 2021 Gravitational, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file... | ["TestFnCacheSanity", "TestFnCacheCancellation"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_gravitational__teleport-78b0d8c72637df1129fb6ff84fc49ef4b5ab1288 | true | null | 6 | 366 | 2 | 811 | 0 | 0.95 | 1 | 0.4 | 0.6375 | 0.635167 | 70.246125 | |
2,581 | swe_bench_pro::test::276 | swe_bench_pro | test | 276 | instance_future-architect__vuls-878c25bf5a9c9fd88ac32eb843f5636834d5712d | future-architect/vuls | future-architect/vuls | go | e4728e388120b311c4ed469e4f942e0347a2689b | # Title
CVE contents from Trivy are not separated by source
## Description
In the current implementation of trivy-to-vuls, all CVE information from Trivy scan results is grouped under a single `trivy` key in `cveContents`. This makes it impossible to distinguish between severity and CVSS values based on their originat... | ## Requirements
- The `Convert` function of the `contrib/trivy/pkg` package must create separate `CveContent` entries for each source found in Trivy scan results, stored under keys formatted as `trivy:<source>`, where `<source>` is the source name exactly as it appears in the vulnerability's `VendorSeverity` or `CVSS` ... | diff --git a/contrib/trivy/pkg/converter.go b/contrib/trivy/pkg/converter.go
index 33ad98d1cb..d58e6f7e6d 100644
--- a/contrib/trivy/pkg/converter.go
+++ b/contrib/trivy/pkg/converter.go
@@ -5,6 +5,7 @@ import (
"sort"
"time"
+ trivydbTypes "github.com/aquasecurity/trivy-db/pkg/types"
ftypes "github.com/aquasec... | diff --git a/contrib/trivy/parser/v2/parser_test.go b/contrib/trivy/parser/v2/parser_test.go
index 07cfe9c4e6..8ca8a92cd3 100644
--- a/contrib/trivy/parser/v2/parser_test.go
+++ b/contrib/trivy/parser/v2/parser_test.go
@@ -198,6 +198,10 @@ var redisTrivy = []byte(`
"CweIDs": [
"CWE-347"
... | ["TestParse"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_future-architect__vuls-878c25bf5a9c9fd88ac32eb843f5636834d5712d | true | null | 5 | 269 | 1 | 807 | 0 | 0.95 | 1 | 0.4 | 0.6375 | 0.6345 | 70.244125 | |
2,582 | swe_bench_pro::test::188 | swe_bench_pro | test | 188 | instance_flipt-io__flipt-406f9396ad65696d58865b3a6283109cd4eaf40e | flipt-io/flipt | flipt-io/flipt | go | 0c6e9b3f3cd2a42b577a7d84710b6e2470754739 | ## Title: Flipt cannot be configured to serve over HTTPS
## Description
Flipt has no way to configure HTTPS. There is no configuration to select the protocol as `http` or `https`, supply certificate files, or validate that required TLS credentials exist.
## Actual Behavior
- There are no configuration options for `ht... | ## Requirements
- The function `configure(path string) (*config, error)` must load configuration from the YAML file at `path`, apply environment variable overrides that use the `FLIPT` prefix with `.` replaced by `_`, overlay the loaded values on top of `defaultConfig()`, invoke `(*config).validate()` before returning,... | diff --git a/.gitignore b/.gitignore
index 0e21ffb69d..8989c41c2b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,7 +16,8 @@ _test
*.prof
*.spelling
*.test
-bazel-*
+*.pem
+!**/**/testdata/**/*.pem
bin
coverage.txt
dist
@@ -24,6 +25,5 @@ node_modules
site
tmp
-flipt
# ignore autogenerated swagger.json in fav... | diff --git a/cmd/flipt/config_test.go b/cmd/flipt/config_test.go
new file mode 100644
index 0000000..d81f459
--- /dev/null
+++ b/cmd/flipt/config_test.go
@@ -0,0 +1,313 @@
+package main
+
+import (
+ "io/ioutil"
+ "os"
+ "path/filepath"
+ "testing"
+
+ "github.com/stretchr/testify/assert"
+ "github.com/stretchr/testify... | ["TestConfigure", "TestConfigureEnvOverride", "TestConfigureCallsValidate", "TestValidate", "TestSchemeString"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_flipt-io__flipt-406f9396ad65696d58865b3a6283109cd4eaf40e | true | null | 10 | 457 | 5 | 1,153 | 0 | 0.95 | 1 | 0.7 | 0.27 | 0.692167 | 70.239 | |
2,583 | swe_bench_verified::test::426 | swe_bench_verified | test | 426 | sympy__sympy-12096 | sympy/sympy | sympy/sympy | python | d7c3045115693e887bcd03599b7ca4650ac5f2cb | evalf does not call _imp_ recursively
Example from https://stackoverflow.com/questions/41818842/why-cant-i-evaluate-a-composition-of-implemented-functions-in-sympy-at-a-point:
```
>>> from sympy.utilities.lambdify import implemented_function
>>> f = implemented_function('f', lambda x: x ** 2)
>>> g = implemented_funct... | If this issue is still open then I would like to work on it
@mohit3011 it looks like https://github.com/sympy/sympy/issues/12096 fixes this.
@asmeurer But I see that it has failed in the Travis test
The Travis failure is an unrelated failure, which has been fixed in master. Once @parsoyaarihant pushes up a fix to... | diff --git a/sympy/core/function.py b/sympy/core/function.py
--- a/sympy/core/function.py
+++ b/sympy/core/function.py
@@ -507,7 +507,7 @@ def _eval_evalf(self, prec):
func = getattr(mpmath, fname)
except (AttributeError, KeyError):
try:
- return Float(self._imp_(*self.... | diff --git a/sympy/utilities/tests/test_lambdify.py b/sympy/utilities/tests/test_lambdify.py
--- a/sympy/utilities/tests/test_lambdify.py
+++ b/sympy/utilities/tests/test_lambdify.py
@@ -751,6 +751,9 @@ def test_issue_2790():
assert lambdify((x, (y, (w, z))), w + x + y + z)(1, (2, (3, 4))) == 10
assert lambdi... | ["test_issue_12092"] | ["test_no_args", "test_single_arg", "test_list_args", "test_str_args", "test_own_namespace", "test_own_module", "test_bad_args", "test_atoms", "test_sympy_lambda", "test_math_lambda", "test_mpmath_lambda", "test_number_precision", "test_mpmath_precision", "test_math_transl", "test_mpmath_transl", "test_exponentiation",... | null | true | 2017-01-25T13:40:24Z | 1 | 2 | 1 | 582 | 0 | 1 | 1 | 0.55 | 0.4 | 0.103667 | 70.236 | |
2,584 | swe_bench_pro::test::293 | swe_bench_pro | test | 293 | instance_future-architect__vuls-dc496468b9e9fb73371f9606cdcdb0f8e12e70ca | future-architect/vuls | future-architect/vuls | go | 54dae08f54aade659d1733e9bc1b2674e7526f29 | # Title: Reorganize syslog configuration into a dedicated configuration component.
## Description
Syslog configuration currently lives inside the general configuration module. Validation logic and related types are not isolated, which makes evolution harder and causes build failures when the expected public type is m... | ## Requirements
- Must expose a `Conf` public struct for syslog configuration with the required fields (`Protocol`, `Port`, `Severity`, `Facility`, `Tag`, `Verbose`, `Enabled`) so it is available from the `config/syslog` package.
- Must provide a public method `Validate()` on the syslog configuration struct that can b... | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000000..761f403612
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,29 @@
+name: Build
+
+on:
+ pull_request:
+
+jobs:
+ build:
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-lat... | diff --git a/config/config_test.go b/config/config_test.go
index 4f11864f08..284a802d7c 100644
--- a/config/config_test.go
+++ b/config/config_test.go
@@ -6,65 +6,6 @@ import (
. "github.com/future-architect/vuls/constant"
)
-func TestSyslogConfValidate(t *testing.T) {
- var tests = []struct {
- conf ... | ["TestSyslogConfValidate"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_future-architect__vuls-dc496468b9e9fb73371f9606cdcdb0f8e12e70ca | true | null | 7 | 435 | 1 | 1,145 | 0 | 0.95 | 1 | 0.7 | 0.27 | 0.690833 | 70.235 | |
2,585 | swe_bench_pro::test::104 | swe_bench_pro | test | 104 | instance_ansible__ansible-d72025be751c894673ba85caa063d835a0ad3a8c-v390e508d27db7a51eece36bb6d9698b63a5b638a | ansible/ansible | ansible/ansible | python | ea164fdde79a3e624c28f90c74f57f06360d2333 | # Title: `nxos_interfaces` does not handle enabled/shutdown correctly with device defaults
## Description
The `nxos_interfaces` module does not manage the enabled parameter in a way that matches the default shutdown state on NX-OS devices. The module can send shutdown or no shutdown commands when the interface is alre... | ## Requirements
- The `nxos_interfaces` resource module must manage interface configuration on NX-OS devices, supporting `merged`, `replaced`, `overridden`, and `deleted` states.
- The module must not define a default value for `enabled` in the argument spec or module documentation.
- When `enabled` is omitted from t... | diff --git a/lib/ansible/module_utils/network/nxos/argspec/interfaces/interfaces.py b/lib/ansible/module_utils/network/nxos/argspec/interfaces/interfaces.py
index fc8349fd08a250..1d9b7d0ead8d0a 100644
--- a/lib/ansible/module_utils/network/nxos/argspec/interfaces/interfaces.py
+++ b/lib/ansible/module_utils/network/nxo... | diff --git a/test/integration/targets/nxos_interfaces/tasks/main.yaml b/test/integration/targets/nxos_interfaces/tasks/main.yaml
index 415c99d8b12e51..afdb973e96f850 100644
--- a/test/integration/targets/nxos_interfaces/tasks/main.yaml
+++ b/test/integration/targets/nxos_interfaces/tasks/main.yaml
@@ -1,2 +1,9 @@
---
... | ["test/units/modules/network/nxos/test_nxos_interfaces.py::TestNxosInterfacesModule::test_1", "test/units/modules/network/nxos/test_nxos_interfaces.py::TestNxosInterfacesModule::test_2", "test/units/modules/network/nxos/test_nxos_interfaces.py::TestNxosInterfacesModule::test_3", "test/units/modules/network/nxos/test_nx... | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_ansible__ansible-d72025be751c894673ba85caa063d835a0ad3a8c-v390e508d27db7a51eece36bb6d9698b63a5b638a | true | null | 5 | 294 | 5 | 768 | 0 | 0.95 | 1 | 0.4 | 0.6375 | 0.628 | 70.224625 | |
2,586 | swe_bench_pro::test::140 | swe_bench_pro | test | 140 | instance_element-hq__element-web-66d0b318bc6fee0d17b54c1781d6ab5d5d323135-vnan | element-hq/element-web | element-hq/element-web | javascript | 04bc8fb71c4a1ee1eb1f0c4a1de1641d353e9f2c | **Title:** Add `seekbar` support for voice broadcast playback.
**Description.**
Voice broadcast playback currently lacks a `seekbar`, preventing users from navigating to a specific point in the recording. Playback can only be started or stopped from the beginning, which limits usability. Introducing a `seekbar` would... | ## Requirements
- Render the existing `SeekBar` component (imported from `components/views/audio_messages/SeekBar`) as a direct child of the playback body's time row (the `mx_VoiceBroadcastBody_timerow` container), placed immediately before the `Clock` element so both siblings share the timer row layout.
- Update the ... | diff --git a/res/css/voice-broadcast/molecules/_VoiceBroadcastBody.pcss b/res/css/voice-broadcast/molecules/_VoiceBroadcastBody.pcss
index c3992006385..ad7f879b5c3 100644
--- a/res/css/voice-broadcast/molecules/_VoiceBroadcastBody.pcss
+++ b/res/css/voice-broadcast/molecules/_VoiceBroadcastBody.pcss
@@ -41,6 +41,7 @@ l... | diff --git a/test/voice-broadcast/components/molecules/VoiceBroadcastPlaybackBody-test.tsx b/test/voice-broadcast/components/molecules/VoiceBroadcastPlaybackBody-test.tsx
index 3b30f461f7..f83e804a01 100644
--- a/test/voice-broadcast/components/molecules/VoiceBroadcastPlaybackBody-test.tsx
+++ b/test/voice-broadcast/co... | ["test/voice-broadcast/utils/VoiceBroadcastChunkEvents-test.ts | when adding events that all have a sequence | getLengthTo(first event) should return 0", "test/voice-broadcast/utils/VoiceBroadcastChunkEvents-test.ts | when adding events that all have a sequence | getLengthTo(some event) should return the time excl. tha... | ["test/components/views/settings/devices/DeviceExpandDetailsButton-test.tsx | <DeviceExpandDetailsButton /> | renders when not expanded", "test/components/views/settings/devices/DeviceExpandDetailsButton-test.tsx | <DeviceExpandDetailsButton /> | renders when expanded", "test/components/views/settings/devices/DeviceExp... | ghcr.io/scaleapi/swe-bench_pro-v2:instance_element-hq__element-web-66d0b318bc6fee0d17b54c1781d6ab5d5d323135-vnan | true | null | 6 | 259 | 24 | 760 | 0 | 0.95 | 1 | 0.4 | 0.6375 | 0.626667 | 70.220625 | |
2,587 | swe_bench_pro::test::641 | swe_bench_pro | test | 641 | instance_tutao__tutanota-f3ffe17af6e8ab007e8d461355057ad237846d9d-vbc0d9ba8f0071fbe982809910959a6ff8884dbbf | tutao/tutanota | tutao/tutanota | typescript | 376d4f298af944bda3e3207ab03de0fcbfc13b2f | # Entropy Management Logic Scattered Across Multiple Classes Creates Coupling Issues
## Description
The current entropy collection and management system suffers from poor separation of concerns, with entropy-related logic scattered across WorkerImpl, LoginFacade, and EntropyCollector classes. The EntropyCollector is ... | ## Requirements
- The system should introduce an `EntropyFacade` on the worker side that centralizes entropy management operations behind a single, well-defined interface, so that entropy accumulation and server-side storage live in one place instead of being scattered across the worker implementation, the login flow, ... | diff --git a/src/api/main/EntropyCollector.ts b/src/api/main/EntropyCollector.ts
index 90ac2c1408eb..2101f688527b 100644
--- a/src/api/main/EntropyCollector.ts
+++ b/src/api/main/EntropyCollector.ts
@@ -1,7 +1,7 @@
/// <reference lib="dom" /> // fixes MouseEvent conflict with react
-import type { WorkerClient } from "... | diff --git a/test/tests/Suite.ts b/test/tests/Suite.ts
index 34cbb91b8..f1bc6955e 100644
--- a/test/tests/Suite.ts
+++ b/test/tests/Suite.ts
@@ -36,6 +36,7 @@ import "./api/common/utils/EntityUtilsTest.js"
import "./api/worker/rest/CborDateEncoderTest.js"
import "./api/worker/facades/BlobFacadeTest.js"
import "./api... | ["test/tests/api/main/EntropyCollectorTest.js | test suite", "test/tests/api/worker/facades/EntropyFacadeTest.js | test suite", "test/tests/api/worker/facades/LoginFacadeTest.js | test suite"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_tutao__tutanota-f3ffe17af6e8ab007e8d461355057ad237846d9d-vbc0d9ba8f0071fbe982809910959a6ff8884dbbf | true | null | 9 | 263 | 3 | 1,093 | 0 | 0.95 | 1 | 0.55 | 0.45 | 0.682167 | 70.209 | |
2,588 | swe_bench_verified::test::414 | swe_bench_verified | test | 414 | sphinx-doc__sphinx-9258 | sphinx-doc/sphinx | sphinx-doc/sphinx | python | 06107f838c28ab6ca6bfc2cc208e15997fcb2146 | [RFE] Support union types specification using | (vertical bar/pipe)
Please add a support for specifying multiple types acceptable for a parameter/attribute/variable.
Use case:
Imagine that there is a function that accepts both `bytes` and `str`. The docstring would look like:
``` restructuredtext
def foo(text):
""... | From [the docs](http://www.sphinx-doc.org/en/stable/domains.html#info-field-lists):
> Multiple types in a type field will be linked automatically if separated by the word “or”:
So this feature is already available using this syntax:
```python
def foo(foo):
"""
Bla blu
:type foo: str or int or N... | diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py
--- a/sphinx/domains/python.py
+++ b/sphinx/domains/python.py
@@ -304,7 +304,7 @@ def make_xref(self, rolename: str, domain: str, target: str,
def make_xrefs(self, rolename: str, domain: str, target: str,
innernode: Type[TextlikeN... | diff --git a/tests/test_domain_py.py b/tests/test_domain_py.py
--- a/tests/test_domain_py.py
+++ b/tests/test_domain_py.py
@@ -1009,6 +1009,40 @@ def test_info_field_list(app):
**{"py:module": "example", "py:class": "Class"})
+def test_info_field_list_piped_type(app):
+ text = (".. py:module:: e... | ["tests/test_domain_py.py::test_info_field_list_piped_type"] | ["tests/test_domain_py.py::test_function_signatures", "tests/test_domain_py.py::test_domain_py_xrefs", "tests/test_domain_py.py::test_domain_py_xrefs_abbreviations", "tests/test_domain_py.py::test_domain_py_objects", "tests/test_domain_py.py::test_resolve_xref_for_properties", "tests/test_domain_py.py::test_domain_py_f... | null | true | 2021-05-21T16:56:41Z | 1 | 2 | 1 | 514 | 0 | 1 | 1 | 0.55 | 0.4 | 0.092333 | 70.202 | |
2,589 | swe_bench_pro::test::523 | swe_bench_pro | test | 523 | instance_protonmail__webclients-3a6790f480309130b5d6332dce6c9d5ccca13ee3 | protonmail/webclients | protonmail/webclients | javascript | e131cde781c398b38f649501cae5f03cf77e75bd | # Improve accuracy of cached children count in `useLinksListing`
## Problem Description
It is necessary to provide a reliable way to obtain the number of child links associated with a specific parent link from the cache in the `useLinksListing` module. Accurate retrieval of this count is important for features and co... | ## Requirements
- The `getCachedChildrenCount` method in `useLinksListing` must return the exact number of child links stored in the cache for the specified parent link.
- The returned count from `getCachedChildrenCount` should match the number of child links loaded and cached during the fetch operation for a given pa... | diff --git a/applications/drive/src/app/components/layout/search/SearchField.scss b/applications/drive/src/app/components/layout/search/SearchField.scss
index abf0694fdc5..5182d800f12 100644
--- a/applications/drive/src/app/components/layout/search/SearchField.scss
+++ b/applications/drive/src/app/components/layout/sea... | diff --git a/applications/drive/src/app/store/links/useLinksListing.test.tsx b/applications/drive/src/app/store/links/useLinksListing.test.tsx
index f1a6cc46b86..e236349505a 100644
--- a/applications/drive/src/app/store/links/useLinksListing.test.tsx
+++ b/applications/drive/src/app/store/links/useLinksListing.test.tsx... | ["src/app/store/links/useLinksListing.test.tsx | can count link's children"] | ["src/app/store/links/useLinksListing.test.tsx | fetches children all pages with the same sorting", "src/app/store/links/useLinksListing.test.tsx | fetches from the beginning when sorting changes", "src/app/store/links/useLinksListing.test.tsx | skips fetch if all was fetched", "src/app/store/links/useLinksListing.test... | ghcr.io/scaleapi/swe-bench_pro-v2:instance_protonmail__webclients-3a6790f480309130b5d6332dce6c9d5ccca13ee3 | true | null | 10 | 207 | 1 | 1,077 | 0 | 0.95 | 1 | 0.55 | 0.45 | 0.6795 | 70.201 | |
2,590 | swe_bench_pro::test::411 | swe_bench_pro | test | 411 | instance_internetarchive__openlibrary-630221ab686c64e75a2ce253c893c033e4814b2e-v93c53c13d5f9b383ebb411ee7750b49dcd1a34c6 | internetarchive/openlibrary | internetarchive/openlibrary | python | 247986f00311d9ee34009b0bb02d0d3bd7497ebd | # Title: Backend support for "Best Book Awards" is missing (API endpoints and read-prerequisite validation)
## Description
Open Library has no server-side support for "Best Book Awards". There is no public JSON endpoint that lets an authenticated patron nominate a work for an award, update or remove that nomination, o... | ## Requirements
- A public API endpoint must handle `POST /works/OL{work_id}W/awards.json`, where `{work_id}` is the numeric work id taken from the URL path.
- When the request does not come from an authenticated patron, the award endpoint must respond with a JSON object whose `errors` value contains the message `"Aut... | diff --git a/openlibrary/accounts/model.py b/openlibrary/accounts/model.py
index 167b0f27bc3..73d8c006530 100644
--- a/openlibrary/accounts/model.py
+++ b/openlibrary/accounts/model.py
@@ -19,6 +19,7 @@
from infogami.infobase.client import ClientException
from infogami.utils.view import public, render_template
from ... | diff --git a/openlibrary/plugins/openlibrary/tests/test_bestbookapi.py b/openlibrary/plugins/openlibrary/tests/test_bestbookapi.py
new file mode 100644
index 000000000..606ad1582
--- /dev/null
+++ b/openlibrary/plugins/openlibrary/tests/test_bestbookapi.py
@@ -0,0 +1,277 @@
+import json
+from unittest.mock import patch... | ["openlibrary/plugins/openlibrary/tests/test_bestbookapi.py::test_bestbook_add_award", "openlibrary/plugins/openlibrary/tests/test_bestbookapi.py::test_bestbook_award_removal", "openlibrary/plugins/openlibrary/tests/test_bestbookapi.py::test_bestbook_award_limit", "openlibrary/plugins/openlibrary/tests/test_bestbookapi... | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_internetarchive__openlibrary-630221ab686c64e75a2ce253c893c033e4814b2e-v93c53c13d5f9b383ebb411ee7750b49dcd1a34c6 | true | null | 6 | 328 | 9 | 715 | 0 | 0.95 | 1 | 0.4 | 0.6375 | 0.619167 | 70.198125 | |
2,591 | swe_bench_pro::test::335 | swe_bench_pro | test | 335 | instance_gravitational__teleport-59d39dee5a8a66e5b8a18a9085a199d369b1fba8-v626ec2a48416b10a88641359a169d99e935ff037 | gravitational/teleport | gravitational/teleport | go | 79f7d4b1e761a6133a8d844dda14274ac39362e1 | # Title: Automatically obtain the root CA certificate for cloud-hosted database instances when not explicitly provided
## Description
Cloud SQL databases cannot be used without manually downloading the instance root CA certificate. The database configuration check rejects a Cloud SQL database that has a project ID and... | ## Requirements
- When the configuration check runs on a Cloud SQL database that has both a GCP project ID and an instance ID but no CA certificate, the check must accept the database as valid.
- The database server `Config` must expose an exported field named `CADownloader` whose type is the `CADownloader` interface.... | diff --git a/lib/service/cfg.go b/lib/service/cfg.go
index 38abe943bd765..ca99d15f08016 100644
--- a/lib/service/cfg.go
+++ b/lib/service/cfg.go
@@ -673,12 +673,6 @@ func (d *Database) Check() error {
return trace.BadParameter("missing Cloud SQL instance ID for database %q", d.Name)
case d.GCP.ProjectID == "" && d... | diff --git a/lib/service/cfg_test.go b/lib/service/cfg_test.go
index 7ed172de2..62d7c71d5 100644
--- a/lib/service/cfg_test.go
+++ b/lib/service/cfg_test.go
@@ -270,7 +270,7 @@ func TestCheckDatabase(t *testing.T) {
outErr: true,
},
{
- desc: "GCP root cert missing",
+ desc: "GCP Cloud SQL no root cert",
... | ["TestInitCACert", "TestInitCACert/shouldn't_download_self-hosted_CA", "TestInitCACert/should_download_RDS_CA_when_it's_not_set", "TestInitCACert/shouldn't_download_RDS_CA_when_it's_set", "TestInitCACert/should_download_Redshift_CA_when_it's_not_set", "TestInitCACert/should_download_Cloud_SQL_CA_when_it's_not_set", "Te... | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_gravitational__teleport-59d39dee5a8a66e5b8a18a9085a199d369b1fba8-v626ec2a48416b10a88641359a169d99e935ff037 | true | null | 4 | 375 | 11 | 711 | 0 | 0.95 | 1 | 0.4 | 0.6375 | 0.6185 | 70.196125 | |
2,592 | swe_bench_pro::test::230 | swe_bench_pro | test | 230 | instance_flipt-io__flipt-cd18e54a0371fa222304742c6312e9ac37ea86c1 | flipt-io/flipt | flipt-io/flipt | go | 9e469bf851c6519616c2b220f946138b71fab047 | # Title
Default Flipt configuration does not validate against the CUE schema
## Description
The canonical default Flipt configuration can fall out of sync with the CUE schema used for configuration validation. When the default configuration is decoded and checked against the CUE configuration schema, mismatches around... | ## Requirements
- The default Flipt configuration must be available through a function `DefaultConfig()` in the config package that takes no arguments and returns a `*Config`, and it must return the same canonical default values used by the configuration loading path.
- The configuration decode hook chain must be reus... | diff --git a/config/flipt.schema.cue b/config/flipt.schema.cue
index f0da6d312c..5f7fd4069f 100644
--- a/config/flipt.schema.cue
+++ b/config/flipt.schema.cue
@@ -9,10 +9,12 @@ import "strings"
// Flipt application.
@jsonschema(schema="http://json-schema.org/draft/2019-09/schema#")
version?: "1.0" | *"1.0"... | diff --git a/config/schema_test.go b/config/schema_test.go
new file mode 100644
index 00000000..4b8c7371
--- /dev/null
+++ b/config/schema_test.go
@@ -0,0 +1,138 @@
+package config
+
+import (
+ "os"
+ "testing"
+ "time"
+
+ "cuelang.org/go/cue"
+ "cuelang.org/go/cue/cuecontext"
+ "cuelang.org/go/cue/errors"
+ "github.... | ["Test_CUE", "Test_CUE_CORSString", "Test_CUE_StorageGitBasicAuth", "Test_CUE_StorageGitTokenAuth", "Test_CUE_StorageLocal", "Test_CUE_DBProtocol", "TestJSONSchema", "TestScheme", "TestCacheBackend", "TestTracingExporter", "TestDatabaseProtocol", "TestLogEncoding", "TestLoad", "TestServeHTTP", "Test_mustBindEnv"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_flipt-io__flipt-cd18e54a0371fa222304742c6312e9ac37ea86c1 | true | null | 6 | 239 | 15 | 689 | 0 | 0.95 | 1 | 0.4 | 0.6375 | 0.614833 | 70.185125 | |
2,593 | swe_bench_pro::test::216 | swe_bench_pro | test | 216 | instance_flipt-io__flipt-b2393f07d893024ab1e47ea2081e0289e1f9d56f | flipt-io/flipt | flipt-io/flipt | go | 19fe7a3e92fc128acc75d0c5ececdc6d9a4e64e5 | # Title:
Lack of Warning or Prevention When Deleting a Segment Currently in Use by Feature Flags
## Current Behavior:
The system currently allows a user to delete a segment without any checks to see if that segment is actively being used in one or more flag rules or rollouts. The deletion operation succeeds, but thi... | ## Requirements
- Each SQL storage backend implementation (PostgreSQL, MySQL, CockroachDB, SQLite/LibSQL) should provide a new public operation named `DeleteSegment` that takes a context and a `DeleteSegmentRequest` as parameters.
- The `DeleteSegment` method should successfully delete the segment without error when t... | diff --git a/config/migrations/cockroachdb/13_segment_foreign_keys.up.sql b/config/migrations/cockroachdb/13_segment_foreign_keys.up.sql
new file mode 100644
index 0000000000..f632ce2c42
--- /dev/null
+++ b/config/migrations/cockroachdb/13_segment_foreign_keys.up.sql
@@ -0,0 +1,6 @@
+ALTER TABLE rule_segments DROP CONS... | diff --git a/internal/storage/sql/segment_test.go b/internal/storage/sql/segment_test.go
index 3a9b9955ff..14e10f2fee 100644
--- a/internal/storage/sql/segment_test.go
+++ b/internal/storage/sql/segment_test.go
@@ -570,6 +570,7 @@ func (s *DBTestSuite) TestUpdateSegment() {
assert.NotZero(t, updated.CreatedAt)
asse... | ["TestDBTestSuite"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_flipt-io__flipt-b2393f07d893024ab1e47ea2081e0289e1f9d56f | true | null | 9 | 152 | 1 | 1,021 | 0 | 0.95 | 1 | 0.55 | 0.45 | 0.670167 | 70.173 | |
2,594 | swe_gym::train::992 | swe_gym | train | 992 | dask__dask-8930 | dask/dask | dask/dask | python | bfc76afdcdc43c575a10ffefda94aaba424fe347 | `argmin` errors on 0-dimensional input
**What happened**: `argmin` gives an error when NumPy doesn't on the same input.
**What you expected to happen**: Behaviour the same as NumPy.
**Minimal Complete Verifiable Example**:
```python
>>> import numpy as np
>>> x = np.array(1)
>>> np.argmin(x)
0
>>> import dask.array... | diff --git a/dask/array/reductions.py b/dask/array/reductions.py
--- a/dask/array/reductions.py
+++ b/dask/array/reductions.py
@@ -1031,13 +1031,14 @@ def arg_chunk(func, argfunc, x, axis, offset_info):
arg_axis = None if len(axis) == x.ndim or x.ndim == 1 else axis[0]
vals = func(x, axis=arg_axis, keepdims=T... | diff --git a/dask/array/tests/test_reductions.py b/dask/array/tests/test_reductions.py
--- a/dask/array/tests/test_reductions.py
+++ b/dask/array/tests/test_reductions.py
@@ -248,6 +248,10 @@ def test_arg_reductions(dfunc, func):
assert_eq(dfunc(a2, 0), func(x2, 0))
assert_eq(dfunc(a2, 0, split_every=2), func... | ["dask/array/tests/test_reductions.py::test_arg_reductions[nanmax-nanargmax]", "dask/array/tests/test_reductions.py::test_arg_reductions[max-argmax]", "dask/array/tests/test_reductions.py::test_arg_reductions[min-argmin]", "dask/array/tests/test_reductions.py::test_arg_reductions[nanmin-nanargmin]"] | ["dask/array/tests/test_reductions.py::test_chunk_structure_independence[axes11-4-chunks0]", "dask/array/tests/test_reductions.py::test_array_cumreduction_axis[blelloch-None-True-nancumsum]", "dask/array/tests/test_reductions.py::test_array_reduction_out[argmax]", "dask/array/tests/test_reductions.py::test_chunk_struct... | null | true | 2022-04-14T11:01:52Z | 1 | 15 | 4 | 2,084 | 0.25 | 0.85 | 1 | 0.7 | 1 | 0.397333 | 70.162 | ||
2,595 | swe_gym::train::750 | swe_gym | train | 750 | iterative__dvc-5839 | iterative/dvc | iterative/dvc | python | daf07451f8e8f3e76a791c696b0ea175e8ed3ac1 | metrics show: --precision argument has no effect
# Bug Report
## Description
The --precision argument has no effect on `dvc metrics show` command. The displayed metrics are always round to 5 decimals.
### Reproduce
Add some metrics (scientific notation, not sure if it's related):
```yaml
mae: 1.4832495253358502e-05... | diff --git a/dvc/command/metrics.py b/dvc/command/metrics.py
--- a/dvc/command/metrics.py
+++ b/dvc/command/metrics.py
@@ -95,6 +95,7 @@ def run(self):
self.args.all_branches,
self.args.all_tags,
self.args.all_commits,
+ self.args.precisi... | diff --git a/tests/unit/command/test_metrics.py b/tests/unit/command/test_metrics.py
--- a/tests/unit/command/test_metrics.py
+++ b/tests/unit/command/test_metrics.py
@@ -111,16 +111,23 @@ def test_metrics_show(dvc, mocker):
"--all-commits",
"target1",
"target2",
+ "--p... | ["tests/unit/command/test_metrics.py::test_metrics_show"] | ["tests/unit/command/test_metrics.py::test_metrics_show_raw_diff", "tests/unit/command/test_metrics.py::test_metrics_diff_markdown_empty", "tests/unit/command/test_metrics.py::test_metrics_diff_no_changes", "tests/unit/command/test_metrics.py::test_metrics_show_with_no_revision", "tests/unit/command/test_metrics.py::te... | null | true | 2021-04-17T12:10:06Z | 1 | 1 | 1 | 1,589 | 0 | 0.85 | 1 | 0.7 | 0.4 | 0.268167 | 70.1545 | ||
2,596 | swe_gym::train::764 | swe_gym | train | 764 | iterative__dvc-4976 | iterative/dvc | iterative/dvc | python | 6d745eb4f0fc4578e3abea25a9becaf2c9da1612 | make dvc repro STAGE running all parametrized stages
```yaml
stages:
build:
foreach:
- 15
- 25
- 35
do:
cmd: echo ${item}
```
```console
jc@mathai3:~/Downloads/dvc_test$ dvc repro build@15
Running callback stage 'build@15' with command:
echo 15
15
Use `dvc push` to send your updates ... | Hi, @johnnychen94. Glad to see an issue for the parameterization (and, seeing someone using it :smile:). I am working on this feature and will be implemented around the pre-release (which might be backwards-incompatible). | diff --git a/dvc/command/repro.py b/dvc/command/repro.py
--- a/dvc/command/repro.py
+++ b/dvc/command/repro.py
@@ -63,6 +63,7 @@ def _repro_kwargs(self):
"recursive": self.args.recursive,
"force_downstream": self.args.force_downstream,
"pull": self.args.pull,
+ "glob": ... | diff --git a/tests/func/test_dvcfile.py b/tests/func/test_dvcfile.py
--- a/tests/func/test_dvcfile.py
+++ b/tests/func/test_dvcfile.py
@@ -355,7 +355,7 @@ def test_dvcfile_dump_preserves_comments(tmp_dir, dvc):
- foo"""
)
tmp_dir.gen("dvc.yaml", text)
- stage = dvc.get_stage(name="generate-foo... | ["tests/unit/command/test_repro.py::test_default_arguments", "tests/unit/command/test_repro.py::test_downstream"] | ["tests/func/test_dvcfile.py::test_run_load_one_for_multistage_non_existing", "tests/func/test_repo.py::test_collect_with_not_existing_dvcfile[not_existing/dvc.yaml:stage_name]", "tests/func/test_repo.py::test_collect_with_not_existing_dvcfile[not_existing.dvc]", "tests/func/test_repo.py::test_collect_with_not_existing... | null | true | 2020-11-26T13:36:23Z | 8 | 336 | 2 | 752 | 0 | 0.85 | 1 | 0.55 | 0.45 | 0.625333 | 70.1385 | |
2,597 | swe_bench_pro::test::98 | swe_bench_pro | test | 98 | instance_ansible__ansible-d2f80991180337e2be23d6883064a67dcbaeb662-vba6da65a0f3baefda7a058ebbd0a8dcafb8512f5 | ansible/ansible | ansible/ansible | python | f9a450551de47ac2b9d1d7e66a103cbf8f05c37f | # Title: Collection build does not support MANIFEST.in style directives
## Description
Building an Ansible collection selects its files only through the `build_ignore` patterns of `galaxy.yml`. A `manifest` block with MANIFEST.in style `directives` is not honored: user directives are not combined with the default incl... | ## Requirements
- `_build_files_manifest` must accept a fifth positional parameter, after `b_collection_path`, `namespace`, `name` and `ignore_patterns`, that holds the manifest configuration as a dict.
- When the manifest configuration is an empty dict, `_build_files_manifest` must select files exactly as it does wit... | diff --git a/changelogs/fragments/collection-build-manifest.yml b/changelogs/fragments/collection-build-manifest.yml
new file mode 100644
index 00000000000000..bc8a372de8c4d1
--- /dev/null
+++ b/changelogs/fragments/collection-build-manifest.yml
@@ -0,0 +1,3 @@
+minor_changes:
+- collections - ``ansible-galaxy collecti... | diff --git a/test/integration/targets/ansible-galaxy-collection-cli/aliases b/test/integration/targets/ansible-galaxy-collection-cli/aliases
new file mode 100644
index 0000000000..498fedd558
--- /dev/null
+++ b/test/integration/targets/ansible-galaxy-collection-cli/aliases
@@ -0,0 +1,2 @@
+shippable/posix/group4
+conte... | ["test/units/galaxy/test_collection.py::test_build_copy_symlink_target_inside_collection", "test/units/galaxy/test_collection.py::test_build_ignore_files_and_folders", "test/units/galaxy/test_collection.py::test_build_ignore_older_release_in_root", "test/units/galaxy/test_collection.py::test_build_ignore_patterns", "te... | ["test/units/galaxy/test_collection.py::test_bool_type_server_config_options[config0-server0]", "test/units/galaxy/test_collection.py::test_bool_type_server_config_options[config1-server1]", "test/units/galaxy/test_collection.py::test_build_collection_no_galaxy_yaml", "test/units/galaxy/test_collection.py::test_build_e... | ghcr.io/scaleapi/swe-bench_pro-v2:instance_ansible__ansible-d2f80991180337e2be23d6883064a67dcbaeb662-vba6da65a0f3baefda7a058ebbd0a8dcafb8512f5 | true | null | 4 | 310 | 15 | 575 | 0 | 0.95 | 1 | 0.4 | 0.6375 | 0.595833 | 70.128125 | |
2,598 | swe_gym::train::549 | swe_gym | train | 549 | python__mypy-10430 | python/mypy | python/mypy | python | 204c7dada412b0ca4ce22315d2acae640adb128f | Crash from module level __getattr__ in incremental mode
It's possible to get crashes like this when using module-level `__getattr__` in incremental mode:
```
/Users/jukka/src/mypy/mypy/build.py:179: in build
result = _build(
/Users/jukka/src/mypy/mypy/build.py:253: in _build
graph = dispatch(sources, manager, ... | diff --git a/mypy/nodes.py b/mypy/nodes.py
--- a/mypy/nodes.py
+++ b/mypy/nodes.py
@@ -797,7 +797,7 @@ def deserialize(cls, data: JsonDict) -> 'Decorator':
'is_self', 'is_initialized_in_class', 'is_staticmethod',
'is_classmethod', 'is_property', 'is_settable_property', 'is_suppressed_import',
'is_classva... | diff --git a/test-data/unit/check-incremental.test b/test-data/unit/check-incremental.test
--- a/test-data/unit/check-incremental.test
+++ b/test-data/unit/check-incremental.test
@@ -4239,6 +4239,34 @@ tmp/c.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#mi
tmp/c.py:1: error: Cannot find imple... | ["mypy/test/testcheck.py::TypeCheckSuite::testModuleGetattrIncrementalSerializeVarFlag"] | ["mypy/test/testcheck.py::TypeCheckSuite::testAddedMissingStubsIgnorePackageFrom", "mypy/test/testcheck.py::TypeCheckSuite::testAddedMissingStubsPackagePartial", "mypy/test/testcheck.py::TypeCheckSuite::testAddedMissingStubs", "mypy/test/testcheck.py::TypeCheckSuite::testAddedMissingStubsPackage", "mypy/test/testcheck.... | null | true | 2021-05-06T11:15:11Z | 1 | 2 | 1 | 1,515 | 0 | 0.85 | 1 | 0.7 | 0.4 | 0.259167 | 70.1275 | ||
2,599 | swe_gym::train::712 | swe_gym | train | 712 | iterative__dvc-10218 | iterative/dvc | iterative/dvc | python | fe008d974848b2241195d9e37afd1a6f2e323c59 | dvc import-url --to-remote: no entry added to .gitignore
# Bug Report
## Description
When I run `dvc import-url` with the `--to-remote` option, a .dvc file is create and the data is written to remote storage, as expected, but no entry is created in .gitignore. When I then run `dvc pull`, a local copy of the data is c... | diff --git a/dvc/repo/imp_url.py b/dvc/repo/imp_url.py
--- a/dvc/repo/imp_url.py
+++ b/dvc/repo/imp_url.py
@@ -77,6 +77,7 @@ def imp_url( # noqa: PLR0913
elif to_remote:
remote_odb = self.cloud.get_remote_odb(remote, "import-url")
stage.outs[0].transfer(url, odb=remote_odb, jobs=jobs)
+ s... | diff --git a/tests/func/test_import_url.py b/tests/func/test_import_url.py
--- a/tests/func/test_import_url.py
+++ b/tests/func/test_import_url.py
@@ -10,6 +10,7 @@
from dvc.exceptions import InvalidArgumentError
from dvc.stage import Stage
from dvc.testing.workspace_tests import TestImport as _TestImport
+from test... | ["tests/func/test_import_url.py::test_import_url_to_remote_absolute"] | ["tests/func/test_import_url.py::test_should_remove_outs_before_import", "tests/func/test_import_url.py::test_import_stage_accompanies_target", "tests/func/test_import_url.py::test_import_url_with_no_exec", "tests/func/test_import_url.py::test_default_output", "tests/func/test_import_url.py::test_import_url_to_dir[dir]... | null | true | 2024-01-03T12:32:20Z | 1 | 1 | 1 | 1,520 | 0 | 0.85 | 1 | 0.7 | 0.4 | 0.256667 | 70.12 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.