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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3,600 | r2e_gym::train::2253 | r2e_gym | train | 2,253 | sympy__12f0e09c52dccbbf6e1c53e4a956169bf94e35fc | sympy | sympy/sympy | python | 12f0e09c52dccbbf6e1c53e4a956169bf94e35fc | Title: Quaternion.to_rotation_matrix raises TypeError when using the "homogeneous" parameter
Description:
When attempting to obtain a homogeneous rotation matrix from a quaternion, the method raises an error. For example, using the following code:
```
# Example code to reproduce the issue
q = Quaternion(w, x, y, z)
#... | diff --git a/sympy/algebras/quaternion.py b/sympy/algebras/quaternion.py
--- a/sympy/algebras/quaternion.py
+++ b/sympy/algebras/quaternion.py
@@ -1101,7 +1101,7 @@
return t
- def to_rotation_matrix(self, v=None):
+ def to_rotation_matrix(self, v=None, homogeneous=True):
"""Returns the equiv... | diff --git a/sympy/algebras/tests/test_quaternion.py b/sympy/algebras/tests/test_quaternion.py
--- a/sympy/algebras/tests/test_quaternion.py
+++ b/sympy/algebras/tests/test_quaternion.py
@@ -252,6 +252,13 @@
[0, 0, 0, 1]])
+def test_rotation_matrix_homogeneous():
+ q = Quatern... | null | null | namanjain12/sympy_final:12f0e09c52dccbbf6e1c53e4a956169bf94e35fc | true | null | 1 | 21 | null | 1,229 | 0 | 0.75 | 1 | 0.75 | 1 | 0.274833 | 83.9495 | ||
3,601 | r2e_gym::train::128 | r2e_gym | train | 128 | orange3__b838a6d8ab37622e96e0d6e506b3a3f7fb5cb38a | orange3 | biolab/orange3 | python | b838a6d8ab37622e96e0d6e506b3a3f7fb5cb38a | **Title:** Density plots fail when color data contains missing values
**Description:**
When generating density plots of projections, the presence of missing values (NaNs) in the color data causes the plotting function to fail. Specifically, the function filters out the missing color values but does not apply the same ... | diff --git a/Orange/widgets/visualize/owscatterplotgraph.py b/Orange/widgets/visualize/owscatterplotgraph.py
--- a/Orange/widgets/visualize/owscatterplotgraph.py
+++ b/Orange/widgets/visualize/owscatterplotgraph.py
@@ -1144,16 +1144,22 @@
self.plot_widget.removeItem(self.density_img)
self.dens... | diff --git a/Orange/widgets/visualize/tests/test_owscatterplotbase.py b/Orange/widgets/visualize/tests/test_owscatterplotbase.py
--- a/Orange/widgets/visualize/tests/test_owscatterplotbase.py
+++ b/Orange/widgets/visualize/tests/test_owscatterplotbase.py
@@ -866,6 +866,41 @@
self.assertIsNone(graph.density... | null | null | namanjain12/orange3_final:b838a6d8ab37622e96e0d6e506b3a3f7fb5cb38a | true | null | 1 | 10 | null | 1,437 | 0 | 0.75 | 1 | 0.75 | 1 | 0.272833 | 83.9435 | ||
3,602 | swe_bench::test::1477 | swe_bench | test | 1,477 | pytest-dev__pytest-9064 | pytest-dev/pytest | pytest-dev/pytest | python | 014fa61e0db9f9ebdedf57e1ab8f30df30c7c469 | `--stepwise-skip` has no effect without `--stepwise`
- [x] a detailed description of the bug or problem you are having
The flag `--stepwise` will "exit on test failure and continue from last failing test".
The flag `--stepwise-skip` is supposed to "ignore the first failing test but stop on the next failing test".
Howe... | Agreed, thanks for catching and reporting it. 👍
Thanks, i'll fix this up (I was in and around that plugin a while ago) | diff --git a/src/_pytest/stepwise.py b/src/_pytest/stepwise.py
--- a/src/_pytest/stepwise.py
+++ b/src/_pytest/stepwise.py
@@ -31,13 +31,16 @@ def pytest_addoption(parser: Parser) -> None:
action="store_true",
default=False,
dest="stepwise_skip",
- help="ignore the first failing test b... | diff --git a/testing/test_stepwise.py b/testing/test_stepwise.py
--- a/testing/test_stepwise.py
+++ b/testing/test_stepwise.py
@@ -248,3 +248,33 @@ def test_d(): pass
"* 2 passed, 1 deselected, 1 xfailed in *",
]
)
+
+
+def test_stepwise_skip_is_independent(pytester: Pytester) -> None:
+ p... | ["testing/test_stepwise.py::test_stepwise_skip_is_independent", "testing/test_stepwise.py::test_sw_skip_help"] | ["testing/test_stepwise.py::test_run_without_stepwise", "testing/test_stepwise.py::test_stepwise_output_summary", "testing/test_stepwise.py::test_fail_and_continue_with_stepwise", "testing/test_stepwise.py::test_run_with_skip_option[--stepwise-skip]", "testing/test_stepwise.py::test_run_with_skip_option[--sw-skip]", "t... | null | true | 2021-08-30T17:54:14Z | 1 | 7 | 2 | 3,897 | 0 | 0.8 | 1 | 0.62 | 1 | 0.523333 | 83.94 | |
3,603 | swe_bench::dev::101 | swe_bench | dev | 101 | pydicom__pydicom-1608 | pydicom/pydicom | pydicom/pydicom | python | 37dd49e2754a10db22e7cde2ac18aa8afc1f3af6 | Unable to assign single element list to PN field
I am getting `AttributeError` while trying to assign a list of single element to a `PN` field.
It's converting `val` to a 2D array [here](https://github.com/pydicom/pydicom/blob/master/pydicom/filewriter.py#L328) when `VM` is 1.
**Code**
```
>>> from pydicom import dcmr... | Not sure if this is a bug, but at least it is unexpected behavior. Shall be easy to fix. | diff --git a/pydicom/dataelem.py b/pydicom/dataelem.py
--- a/pydicom/dataelem.py
+++ b/pydicom/dataelem.py
@@ -512,9 +512,10 @@ def _convert_value(self, val: Any) -> Any:
val.append
except AttributeError: # not a list
return self._convert(val)
- else:
- return Multi... | diff --git a/pydicom/tests/test_json.py b/pydicom/tests/test_json.py
--- a/pydicom/tests/test_json.py
+++ b/pydicom/tests/test_json.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright 2008-2019 pydicom authors. See LICENSE file for details.
import json
+from unittest import mock
import pytest
@@ -271,13 +272... | ["pydicom/tests/test_valuerep.py::test_set_value[AE-str-vm00-vmN0-Receiver]", "pydicom/tests/test_valuerep.py::test_set_value[AS-str-vm01-vmN1-PatientAge]", "pydicom/tests/test_valuerep.py::test_set_value[AT-int-vm02-vmN2-OffendingElement]", "pydicom/tests/test_valuerep.py::test_set_value[CS-str-vm03-vmN3-QualityContro... | ["pydicom/tests/test_json.py::TestPersonName::test_json_pn_from_file", "pydicom/tests/test_json.py::TestPersonName::test_pn_components_to_json", "pydicom/tests/test_json.py::TestPersonName::test_pn_components_from_json", "pydicom/tests/test_json.py::TestPersonName::test_empty_value", "pydicom/tests/test_json.py::TestPe... | null | true | 2022-02-24T19:31:55Z | 1 | 7 | 37 | 3,611 | 0 | 0.8 | 1 | 0.62 | 1 | 0.523333 | 83.94 | |
3,604 | r2e_gym::train::2021 | r2e_gym | train | 2,021 | sympy__1e0c8ff1eb5298bbd754a2df0ad82e7e7f2383d4 | sympy | sympy/sympy | python | 1e0c8ff1eb5298bbd754a2df0ad82e7e7f2383d4 | Title: TypeError when using multiple=True in factorint and factorrat
Description:
When using the new "multiple" flag with the factorization functions, an unexpected TypeError is raised. For example, calling factorint or factorrat with the keyword multiple=True leads to an error indicating that the function received an... | diff --git a/sympy/ntheory/factor_.py b/sympy/ntheory/factor_.py
--- a/sympy/ntheory/factor_.py
+++ b/sympy/ntheory/factor_.py
@@ -803,7 +803,7 @@
def factorint(n, limit=None, use_trial=True, use_rho=True, use_pm1=True,
- verbose=False, visual=None):
+ verbose=False, visual=None, multiple... | diff --git a/sympy/ntheory/tests/test_factor_.py b/sympy/ntheory/tests/test_factor_.py
--- a/sympy/ntheory/tests/test_factor_.py
+++ b/sympy/ntheory/tests/test_factor_.py
@@ -154,6 +154,20 @@
assert factorint(5951757) == {3: 1, 7: 1, 29: 2, 337: 1}
assert factorint(64015937) == {7993: 1, 8009: 1}
assert ... | null | null | namanjain12/sympy_final:1e0c8ff1eb5298bbd754a2df0ad82e7e7f2383d4 | true | null | 1 | 22 | null | 1,180 | 0 | 0.75 | 1 | 0.75 | 1 | 0.27 | 83.935 | ||
3,605 | r2e_gym::train::980 | r2e_gym | train | 980 | sympy__31893ac67479a65e142bda7746f1a0f2f42344d7 | sympy | sympy/sympy | python | 31893ac67479a65e142bda7746f1a0f2f42344d7 | Title: RecursionError when evaluating limit of sqrt(x)*cos(x - x**2)/(x+1) as x→∞
Description:
When evaluating the limit of the expression sqrt(x)*cos(x - x**2)/(x+1) as x approaches infinity, the function instead triggers a recursion error. A simplified example reproducing the issue is:
```
from sympy import symbols... | diff --git a/sympy/series/limits.py b/sympy/series/limits.py
--- a/sympy/series/limits.py
+++ b/sympy/series/limits.py
@@ -97,6 +97,21 @@
r.append(l)
if r:
rv = e.func(*r)
+ from sympy.calculus.util import AccumBounds
+ if rv is S.NaN and e.is_Mul and any(isi... | diff --git a/sympy/series/tests/test_limits.py b/sympy/series/tests/test_limits.py
--- a/sympy/series/tests/test_limits.py
+++ b/sympy/series/tests/test_limits.py
@@ -532,3 +532,6 @@
def test_issue_14411():
assert limit(3*sec(4*pi*x - x/3), x, 3*pi/(24*pi - 2)) == -oo
+
+def test_issue_14574():
+ assert limi... | null | null | namanjain12/sympy_final:31893ac67479a65e142bda7746f1a0f2f42344d7 | true | null | 1 | 15 | null | 1,314 | 0 | 0.75 | 1 | 0.75 | 1 | 0.269 | 83.932 | ||
3,606 | r2e_gym::train::1190 | r2e_gym | train | 1,190 | sympy__e5b359aa2b79988672cf75b1c8cc9bcc4ed32fad | sympy | sympy/sympy | python | e5b359aa2b79988672cf75b1c8cc9bcc4ed32fad | Title: IndexError in curl when operating on a zero vector
Description:
When passing a zero vector to differential operators, such as the curl function, the function raises an IndexError. Specifically, the error occurs when trying to extract the coordinate system from the expression, which leads to an empty list and a ... | diff --git a/sympy/vector/operators.py b/sympy/vector/operators.py
--- a/sympy/vector/operators.py
+++ b/sympy/vector/operators.py
@@ -3,6 +3,7 @@
from sympy.vector.coordsysrect import CoordSysCartesian
from sympy.vector.vector import Vector
from sympy.utilities.exceptions import SymPyDeprecationWarning
+from sympy ... | diff --git a/sympy/vector/tests/test_field_functions.py b/sympy/vector/tests/test_field_functions.py
--- a/sympy/vector/tests/test_field_functions.py
+++ b/sympy/vector/tests/test_field_functions.py
@@ -25,7 +25,7 @@
(-Derivative(0, C.x) + Derivative(0, C.z))*C.j +
(Derivative(0, C.x) - Deriva... | null | null | namanjain12/sympy_final:e5b359aa2b79988672cf75b1c8cc9bcc4ed32fad | true | null | 1 | 26 | null | 1,093 | 0 | 0.75 | 1 | 0.75 | 1 | 0.268833 | 83.9315 | ||
3,607 | r2e_gym::train::6022 | r2e_gym | train | 6,022 | tornado__5896bbec44387b91c8b6fe7bda673a250d829e7d | tornado | tornadoweb/tornado | python | 5896bbec44387b91c8b6fe7bda673a250d829e7d | **Title:** Connection Timeout Not Enforced During DNS Resolution Causes Requests to Hang
**Description:**
When attempting to establish a connection, the connection timeout is not enforced during the DNS resolution phase. This allows requests to hang indefinitely if DNS resolution is slow or fails to respond.
**Examp... | diff --git a/tornado/simple_httpclient.py b/tornado/simple_httpclient.py
--- a/tornado/simple_httpclient.py
+++ b/tornado/simple_httpclient.py
@@ -190,15 +190,18 @@
# so restrict to ipv4 by default.
af = socket.AF_INET
+ timeout = min(self.request.connect_timeout, self.req... | diff --git a/tornado/test/simple_httpclient_test.py b/tornado/test/simple_httpclient_test.py
--- a/tornado/test/simple_httpclient_test.py
+++ b/tornado/test/simple_httpclient_test.py
@@ -14,6 +14,7 @@
from tornado.httputil import HTTPHeaders
from tornado.ioloop import IOLoop
from tornado.log import gen_log
+from tor... | null | null | namanjain12/tornado_final:5896bbec44387b91c8b6fe7bda673a250d829e7d | true | null | 1 | 15 | null | 1,311 | 0 | 0.75 | 1 | 0.75 | 1 | 0.2685 | 83.9305 | ||
3,608 | swe_bench::test::2262 | swe_bench | test | 2,262 | sympy__sympy-22840 | sympy/sympy | sympy/sympy | python | d822fcba181155b85ff2b29fe525adbafb22b448 | cse() has strange behaviour for MatrixSymbol indexing
Example:
```python
import sympy as sp
from pprint import pprint
def sub_in_matrixsymbols(exp, matrices):
for matrix in matrices:
for i in range(matrix.shape[0]):
for j in range(matrix.shape[1]):
name = "%s_%d_%d" % (matrix.na... | Can you create a very simple example using MatrixSymbol and the expected output that you'd like to see?
I think one would expect the output to be similar to the following (except for the expression returned by CSE being a matrix where the individual elements are terms as defined by matrix multiplication, that is, uncha... | diff --git a/sympy/simplify/cse_main.py b/sympy/simplify/cse_main.py
--- a/sympy/simplify/cse_main.py
+++ b/sympy/simplify/cse_main.py
@@ -567,6 +567,7 @@ def tree_cse(exprs, symbols, opt_subs=None, order='canonical', ignore=()):
Substitutions containing any Symbol from ``ignore`` will be ignored.
"""
... | diff --git a/sympy/simplify/tests/test_cse.py b/sympy/simplify/tests/test_cse.py
--- a/sympy/simplify/tests/test_cse.py
+++ b/sympy/simplify/tests/test_cse.py
@@ -347,6 +347,10 @@ def test_cse_MatrixSymbol():
B = MatrixSymbol("B", n, n)
assert cse(B) == ([], [B])
+ assert cse(A[0] * A[0]) == ([], [A[0]*A... | ["test_cse_MatrixSymbol", "test_multidim_c_argument_cse"] | ["test_numbered_symbols", "test_preprocess_for_cse", "test_postprocess_for_cse", "test_cse_single", "test_cse_single2", "test_cse_not_possible", "test_nested_substitution", "test_subtraction_opt", "test_multiple_expressions", "test_bypass_non_commutatives", "test_issue_4498", "test_issue_4020", "test_issue_4203", "test... | null | true | 2022-01-11T17:34:54Z | 1 | 6 | 2 | 3,489 | 0 | 0.8 | 1 | 0.62 | 1 | 0.52 | 83.93 | |
3,609 | r2e_gym::train::2784 | r2e_gym | train | 2,784 | sympy__9af61577a0b7183373792a1c5587aed18a81fcec | sympy | sympy/sympy | python | 9af61577a0b7183373792a1c5587aed18a81fcec | Title: Matrix multiplication with list inputs does not raise error as expected
Description:
When multiplying a Matrix with a plain Python list, the operation should not be interpreted as a valid scalar multiplication. Instead, both expressions (Matrix * list and list * Matrix) are expected to raise a TypeError with a ... | diff --git a/sympy/matrices/common.py b/sympy/matrices/common.py
--- a/sympy/matrices/common.py
+++ b/sympy/matrices/common.py
@@ -2018,10 +2018,12 @@
if getattr(other, 'is_MatrixLike', False):
return MatrixArithmetic._eval_matrix_mul(self, other)
- try:
- return self._eval_sca... | diff --git a/sympy/matrices/tests/test_commonmatrix.py b/sympy/matrices/tests/test_commonmatrix.py
--- a/sympy/matrices/tests/test_commonmatrix.py
+++ b/sympy/matrices/tests/test_commonmatrix.py
@@ -1340,3 +1340,9 @@
x, y = symbols('x y')
m = CalculusOnlyMatrix(2, 1, [1/x, y])
assert m.limit(x, 5) == Mat... | null | null | namanjain12/sympy_final:9af61577a0b7183373792a1c5587aed18a81fcec | true | null | 1 | 20 | null | 1,200 | 0 | 0.75 | 1 | 0.75 | 1 | 0.266667 | 83.925 | ||
3,610 | r2e_gym::train::1654 | r2e_gym | train | 1,654 | sympy__2576967b1d61814cd17d5a24763865c2cf66acba | sympy | sympy/sympy | python | 2576967b1d61814cd17d5a24763865c2cf66acba | Title: Using the “fraction” Flag in factor() Triggers an OptionError
Description:
When passing the “fraction” option to the factor() function, it currently triggers an error indicating that “fraction” is not a valid option. For instance, consider the following simplified example:
```
from sympy import factor, exp, sy... | diff --git a/sympy/polys/polytools.py b/sympy/polys/polytools.py
--- a/sympy/polys/polytools.py
+++ b/sympy/polys/polytools.py
@@ -5961,7 +5961,7 @@
if isinstance(expr, Expr) and not expr.is_Relational:
if hasattr(expr,'_eval_factor'):
return expr._eval_factor()
- coeff, factors = _sym... | 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
@@ -2476,6 +2476,11 @@
assert factor(eq, x, deep=True) == (x + 3)*(x + 4)*(y**2 + 11*y + 30)
assert factor(eq, y, deep=True) == (y + 5)*(y ... | null | null | namanjain12/sympy_final:2576967b1d61814cd17d5a24763865c2cf66acba | true | null | 2 | 18 | null | 1,215 | 0 | 0.75 | 1 | 0.75 | 1 | 0.2625 | 83.9125 | ||
3,611 | r2e_gym::train::201 | r2e_gym | train | 201 | orange3__1a9c4b531e63bbdf5777895ed406c5441453dd69 | orange3 | biolab/orange3 | python | 1a9c4b531e63bbdf5777895ed406c5441453dd69 | **Title:** Jaccard distance computation raises ZeroDivisionError for instances with no active features
**Description:**
When calculating the Jaccard distance between instances that have no active features (i.e., all feature values are zero), the computation results in a division by zero error.
**Example:**
```python
... | diff --git a/Orange/distance/distance.py b/Orange/distance/distance.py
--- a/Orange/distance/distance.py
+++ b/Orange/distance/distance.py
@@ -442,8 +442,11 @@
for i in range(n):
xi_ind = set(x1[i].indices)
for j in range(i if symmetric else m):
- jacc = 1 - len(xi_ind.... | diff --git a/Orange/distance/tests/test_distance.py b/Orange/distance/tests/test_distance.py
--- a/Orange/distance/tests/test_distance.py
+++ b/Orange/distance/tests/test_distance.py
@@ -892,6 +892,20 @@
[0.4, 1, 5/12],
[0.25, 5/12, 1]]))
+ def test_zero_instan... | null | null | namanjain12/orange3_final:1a9c4b531e63bbdf5777895ed406c5441453dd69 | true | null | 1 | 7 | null | 1,417 | 0 | 0.75 | 1 | 0.75 | 1 | 0.2595 | 83.9035 | ||
3,612 | r2e_gym::train::904 | r2e_gym | train | 904 | sympy__3cde059135fbbe0cf95a555c0bbfbcefe7994bcf | sympy | sympy/sympy | python | 3cde059135fbbe0cf95a555c0bbfbcefe7994bcf | Title: Incorrect Detection of Linearly Dependent Vectors in Orthogonalization
Description:
When using the orthogonalization routine with vectors that are symbolically dependent, the function fails to detect the dependency and does not raise an error as expected. For instance, if vectors are proportional (with one bein... | diff --git a/sympy/vector/functions.py b/sympy/vector/functions.py
--- a/sympy/vector/functions.py
+++ b/sympy/vector/functions.py
@@ -2,7 +2,7 @@
from sympy.vector.dyadic import Dyadic
from sympy.vector.vector import Vector, BaseVector
from sympy.vector.scalar import BaseScalar
-from sympy import sympify, diff, int... | diff --git a/sympy/vector/tests/test_functions.py b/sympy/vector/tests/test_functions.py
--- a/sympy/vector/tests/test_functions.py
+++ b/sympy/vector/tests/test_functions.py
@@ -162,14 +162,18 @@
def test_orthogonalize():
C = CoordSysCartesian('C')
+ a, b = symbols('a b', integer=True);
i, j, k = C.bas... | null | null | namanjain12/sympy_final:3cde059135fbbe0cf95a555c0bbfbcefe7994bcf | true | null | 1 | 8 | null | 1,395 | 0 | 0.75 | 1 | 0.75 | 1 | 0.259167 | 83.9025 | ||
3,613 | r2e_gym::train::2384 | r2e_gym | train | 2,384 | sympy__0d68194b3362546ca70a60e2663928960a05d615 | sympy | sympy/sympy | python | 0d68194b3362546ca70a60e2663928960a05d615 | Title: _atomic() Fails with Unexpected Keyword Argument 'recursive'
Description:
When invoking the _atomic() function with the recursive flag enabled, the call fails unexpectedly. The function is expected to expand and return nested atomic elements when recursive=True is passed, but instead it raises an error.
Below ... | diff --git a/sympy/core/basic.py b/sympy/core/basic.py
--- a/sympy/core/basic.py
+++ b/sympy/core/basic.py
@@ -1807,11 +1807,11 @@
return True
-def _atomic(e):
+def _atomic(e, recursive=False):
"""Return atom-like quantities as far as substitution is
concerned: Derivatives, Functions and Symbols.... | diff --git a/sympy/core/tests/test_basic.py b/sympy/core/tests/test_basic.py
--- a/sympy/core/tests/test_basic.py
+++ b/sympy/core/tests/test_basic.py
@@ -4,9 +4,11 @@
import collections
import sys
-from sympy.core.basic import Basic, Atom, preorder_traversal, as_Basic
+from sympy.core.basic import (Basic, Atom, pr... | null | null | namanjain12/sympy_final:0d68194b3362546ca70a60e2663928960a05d615 | true | null | 1 | 18 | null | 1,194 | 0 | 0.75 | 1 | 0.75 | 1 | 0.259 | 83.902 | ||
3,614 | r2e_gym::train::2282 | r2e_gym | train | 2,282 | sympy__ece2acc05bc925590b7ceef26c1c999a28d17115 | sympy | sympy/sympy | python | ece2acc05bc925590b7ceef26c1c999a28d17115 | Title: Relative tempdir causes module import failure in autowrap
Description:
When providing a relative path for the temporary directory with the autowrap function (using the dummy backend), the module import fails. For example, supplying "./tmp" as the temporary directory does not resolve correctly and the generated ... | diff --git a/sympy/utilities/autowrap.py b/sympy/utilities/autowrap.py
--- a/sympy/utilities/autowrap.py
+++ b/sympy/utilities/autowrap.py
@@ -134,8 +134,10 @@
self.include_empty)
def wrap_code(self, routine, helpers=[]):
-
- workdir = self.filepath or tempfile.mkdtemp("_sympy_compile")
+ ... | diff --git a/sympy/utilities/tests/test_autowrap.py b/sympy/utilities/tests/test_autowrap.py
--- a/sympy/utilities/tests/test_autowrap.py
+++ b/sympy/utilities/tests/test_autowrap.py
@@ -237,6 +237,18 @@
assert os.access(tmp, os.F_OK)
finally:
shutil.rmtree(tmp)
+
+
+def test_autowrap_store_files... | null | null | namanjain12/sympy_final:ece2acc05bc925590b7ceef26c1c999a28d17115 | true | null | 1 | 6 | null | 1,433 | 0 | 0.75 | 1 | 0.75 | 1 | 0.258833 | 83.9015 | ||
3,615 | swe_bench::test::1987 | swe_bench | test | 1,987 | sympy__sympy-13678 | sympy/sympy | sympy/sympy | python | 53fc684467088cdf0acccb6ad770cbde97e32268 | is_real returns False instead of None for many trigonometric and hyperbolic functions
All the following assertions fail at the moment. I'm going to submit a pull request.
```py
assert sinh(Symbol('z', real=False)).is_real is None
assert cosh(Symbol('z', real=False)).is_real is None
assert tanh(Symbol('z', real=False)).... | diff --git a/sympy/functions/elementary/hyperbolic.py b/sympy/functions/elementary/hyperbolic.py
--- a/sympy/functions/elementary/hyperbolic.py
+++ b/sympy/functions/elementary/hyperbolic.py
@@ -228,7 +228,16 @@ def _eval_as_leading_term(self, x):
return self.func(arg)
def _eval_is_real(self):
- ... | diff --git a/sympy/functions/elementary/tests/test_hyperbolic.py b/sympy/functions/elementary/tests/test_hyperbolic.py
--- a/sympy/functions/elementary/tests/test_hyperbolic.py
+++ b/sympy/functions/elementary/tests/test_hyperbolic.py
@@ -937,3 +937,28 @@ def test_cosh_expansion():
assert cosh(2*x).expand(trig=Tru... | ["test_real_assumptions"] | ["test_sinh", "test_cosh", "test_tanh", "test_coth", "test_csch", "test_sech", "test_asinh", "test_asinh_rewrite", "test_acosh", "test_acosh_rewrite", "test_asech", "test_asech_series", "test_asech_rewrite", "test_acsch", "test_acsch_infinities", "test_acsch_rewrite", "test_atanh", "test_atanh_rewrite", "test_acoth", "... | null | true | 2017-12-05T23:21:31Z | 2 | 78 | 1 | 939 | 0 | 0.8 | 1 | 0.7 | 1 | 0.4165 | 83.8995 | ||
3,616 | r2e_gym::train::1755 | r2e_gym | train | 1,755 | sympy__457a3edda08dfb68c77c4982cee86cdc62c42dad | sympy | sympy/sympy | python | 457a3edda08dfb68c77c4982cee86cdc62c42dad | Title: Incorrect handling for negative inputs in harmonic function evaluation
Description:
When providing negative inputs to the harmonic function, the result should be NaN. However, the evaluation for negative values—especially for floating point inputs—triggers an error instead of returning NaN.
For example, runnin... | diff --git a/sympy/functions/combinatorial/numbers.py b/sympy/functions/combinatorial/numbers.py
--- a/sympy/functions/combinatorial/numbers.py
+++ b/sympy/functions/combinatorial/numbers.py
@@ -882,8 +882,10 @@
return S.Infinity
elif is_gt(m, S.One):
return zeta(m)
- ... | diff --git a/sympy/functions/combinatorial/tests/test_comb_numbers.py b/sympy/functions/combinatorial/tests/test_comb_numbers.py
--- a/sympy/functions/combinatorial/tests/test_comb_numbers.py
+++ b/sympy/functions/combinatorial/tests/test_comb_numbers.py
@@ -223,6 +223,8 @@
assert harmonic(oo, 1 + ip) is zeta(1 + ... | null | null | namanjain12/sympy_final:457a3edda08dfb68c77c4982cee86cdc62c42dad | true | null | 1 | 8 | null | 1,388 | 0 | 0.75 | 1 | 0.75 | 1 | 0.258 | 83.899 | ||
3,617 | r2e_gym::train::1421 | r2e_gym | train | 1,421 | sympy__a1623cf27443cf6a70c084dc6f546a3d0d0c7354 | sympy | sympy/sympy | python | a1623cf27443cf6a70c084dc6f546a3d0d0c7354 | Title: DiscreteUniform does not flag repeated values in input
Description:
When constructing a DiscreteUniform distribution using a list with repeated arguments, the input is not properly validated. For example, passing repeated symbols leads to an incorrect calculation of the probability mass function instead of bein... | diff --git a/sympy/stats/frv_types.py b/sympy/stats/frv_types.py
--- a/sympy/stats/frv_types.py
+++ b/sympy/stats/frv_types.py
@@ -90,9 +90,17 @@
return rv(name, FiniteDistributionHandmade, density)
class DiscreteUniformDistribution(SingleFiniteDistribution):
+
+ @staticmethod
+ def check(*args):
+ ... | diff --git a/sympy/stats/tests/test_finite_rv.py b/sympy/stats/tests/test_finite_rv.py
--- a/sympy/stats/tests/test_finite_rv.py
+++ b/sympy/stats/tests/test_finite_rv.py
@@ -46,12 +46,7 @@
assert characteristic_function(X)(t) == exp(I*a*t)/3 + exp(I*b*t)/3 + exp(I*c*t)/3
assert moment_generating_function(X)(... | null | null | namanjain12/sympy_final:a1623cf27443cf6a70c084dc6f546a3d0d0c7354 | true | null | 1 | 10 | null | 1,348 | 0 | 0.75 | 1 | 0.75 | 1 | 0.258 | 83.899 | ||
3,618 | r2e_gym::train::6554 | r2e_gym | train | 6,554 | pillow__877d97e85844dde637c693623a489a01f925f8e8 | pillow | python-pillow/pillow | python | 877d97e85844dde637c693623a489a01f925f8e8 | **Title:** Incorrect File Length in ICNS Header Causes Assertion Failure on Save
**Description:**
When saving an ICNS file, the file header incorrectly calculates the total file length. This causes a mismatch between the expected and actual file size, leading to an assertion failure during validation.
**Buggy Code Ex... | diff --git a/src/PIL/IcnsImagePlugin.py b/src/PIL/IcnsImagePlugin.py
--- a/src/PIL/IcnsImagePlugin.py
+++ b/src/PIL/IcnsImagePlugin.py
@@ -337,23 +337,28 @@
entries = []
for type, size in sizes.items():
stream = size_streams[size]
- entries.append({"type": type, "size": len(stream), "stream": ... | diff --git a/Tests/test_file_icns.py b/Tests/test_file_icns.py
--- a/Tests/test_file_icns.py
+++ b/Tests/test_file_icns.py
@@ -1,8 +1,9 @@
import io
+import os
import pytest
-from PIL import IcnsImagePlugin, Image, features
+from PIL import IcnsImagePlugin, Image, _binary, features
from .helper import assert_i... | null | null | namanjain12/pillow_final:877d97e85844dde637c693623a489a01f925f8e8 | true | null | 1 | 13 | null | 1,287 | 0 | 0.75 | 1 | 0.75 | 1 | 0.257833 | 83.8985 | ||
3,619 | r2e_gym::train::1838 | r2e_gym | train | 1,838 | sympy__f8abc13448bbc6976c1807519ca6d03bcaf5801c | sympy | sympy/sympy | python | f8abc13448bbc6976c1807519ca6d03bcaf5801c | Title: Infinite Recursion in Equation Solver When Handling Unit Expressions
Description:
When attempting to solve equations that involve unit expressions, the real equation solver enters an infinite recursion. For example, using an expression with a unit (e.g. cm) yields a RecursionError instead of returning the corre... | diff --git a/sympy/solvers/solveset.py b/sympy/solvers/solveset.py
--- a/sympy/solvers/solveset.py
+++ b/sympy/solvers/solveset.py
@@ -469,19 +469,14 @@
return S.Reals
elif not f.has(symbol):
return EmptySet()
- elif f.is_Mul:
- if all([_is_finite_with_finite_vars(m) for m in f.args]):
... | diff --git a/sympy/solvers/tests/test_solveset.py b/sympy/solvers/tests/test_solveset.py
--- a/sympy/solvers/tests/test_solveset.py
+++ b/sympy/solvers/tests/test_solveset.py
@@ -554,7 +554,6 @@
FiniteSet(-1, Rational(1, 3))
assert solveset_real(Abs(x - 7) - 8, x) == FiniteSet(-S(1), S(15))
- assert ... | null | null | namanjain12/sympy_final:f8abc13448bbc6976c1807519ca6d03bcaf5801c | true | null | 1 | 21 | null | 1,117 | 0 | 0.75 | 1 | 0.75 | 1 | 0.256167 | 83.8935 | ||
3,620 | r2e_gym::train::969 | r2e_gym | train | 969 | sympy__1558c00f8dff83278406b99f6c3d3cc3ca2ca0de | sympy | sympy/sympy | python | 1558c00f8dff83278406b99f6c3d3cc3ca2ca0de | Title: LUdecomposition rankcheck Fails to Detect Singular Matrix
Description:
When performing LU decomposition on a singular matrix with the rankcheck option enabled, no error is raised even though the last row of the LU matrix is zero. In theory, a matrix like the one in the example below should trigger an error beca... | diff --git a/sympy/matrices/matrices.py b/sympy/matrices/matrices.py
--- a/sympy/matrices/matrices.py
+++ b/sympy/matrices/matrices.py
@@ -3583,6 +3583,15 @@
# elimination is complete.
return lu, row_swaps
+ if rankcheck:
+ if iszerofunc(
+ lu[Min(lu.rows... | diff --git a/sympy/matrices/tests/test_matrices.py b/sympy/matrices/tests/test_matrices.py
--- a/sympy/matrices/tests/test_matrices.py
+++ b/sympy/matrices/tests/test_matrices.py
@@ -622,6 +622,13 @@
P, L, Dee, U = M.LUdecompositionFF()
assert P*M == L*Dee.inv()*U
+ # issue 15794
+ M = Matrix(
+ ... | null | null | namanjain12/sympy_final:1558c00f8dff83278406b99f6c3d3cc3ca2ca0de | true | null | 1 | 9 | null | 1,354 | 0 | 0.75 | 1 | 0.75 | 1 | 0.255667 | 83.892 | ||
3,621 | r2e_gym::train::1469 | r2e_gym | train | 1,469 | sympy__a7f46d0aa22299fed0f5924abbeee196a91c4365 | sympy | sympy/sympy | python | a7f46d0aa22299fed0f5924abbeee196a91c4365 | Title: count_ops and simplify crash on MatrixElement expressions due to string attribute error
Description:
When using count_ops or simplify on MatrixElement expressions, the functions unexpectedly encounter a string value in the operation tree. For example, evaluating count_ops on a MatrixElement (e.g., M[0, 0]) rais... | diff --git a/sympy/core/function.py b/sympy/core/function.py
--- a/sympy/core/function.py
+++ b/sympy/core/function.py
@@ -2287,6 +2287,10 @@
ADD = Symbol('ADD')
while args:
a = args.pop()
+
+ if isinstance(a, str):
+ continue
+
if a.is_Rational:
... | diff --git a/sympy/core/tests/test_count_ops.py b/sympy/core/tests/test_count_ops.py
--- a/sympy/core/tests/test_count_ops.py
+++ b/sympy/core/tests/test_count_ops.py
@@ -1,5 +1,6 @@
from sympy import symbols, sin, exp, cos, Derivative, Integral, Basic, \
- count_ops, S, And, I, pi, Eq, Or, Not, Xor ,Nand ,Nor, Imp... | null | null | namanjain12/sympy_final:a7f46d0aa22299fed0f5924abbeee196a91c4365 | true | null | 2 | 9 | null | 1,351 | 0 | 0.75 | 1 | 0.75 | 1 | 0.255167 | 83.8905 | ||
3,622 | r2e_gym::train::5712 | r2e_gym | train | 5,712 | scrapy__7874bb9f13cc4ec797925adc99bf58742071ed6c | scrapy | scrapy/scrapy | python | 7874bb9f13cc4ec797925adc99bf58742071ed6c | **Title:** TypeError Raised When Hashing Request Fields with String Data in Python 3
**Description:**
When generating a fingerprint for a request, using string values for certain request fields causes a `TypeError`. The hashing function expects bytes, but it receives strings instead, leading to the failure.
**Example... | diff --git a/scrapy/utils/request.py b/scrapy/utils/request.py
--- a/scrapy/utils/request.py
+++ b/scrapy/utils/request.py
@@ -10,6 +10,7 @@
from twisted.internet.defer import Deferred
from w3lib.http import basic_auth_header
+from scrapy.utils.python import to_bytes, to_native_str
from scrapy.utils.url import c... | diff --git a/tests/py3-ignores.txt b/tests/py3-ignores.txt
--- a/tests/py3-ignores.txt
+++ b/tests/py3-ignores.txt
@@ -49,7 +49,6 @@
tests/test_utils_iterators.py
tests/test_utils_log.py
tests/test_utils_reqser.py
-tests/test_utils_request.py
tests/test_utils_response.py
tests/test_utils_signal.py
tests/test_util... | null | null | namanjain12/scrapy_final:7874bb9f13cc4ec797925adc99bf58742071ed6c | true | null | 1 | 20 | null | 1,129 | 0 | 0.75 | 1 | 0.75 | 1 | 0.254833 | 83.8895 | ||
3,623 | r2e_gym::train::4118 | r2e_gym | train | 4,118 | numpy__05f422827b3317ad3774cbd1859edbf6bc196f75 | numpy | numpy/numpy | python | 05f422827b3317ad3774cbd1859edbf6bc196f75 | **Title:** Calling `np.isposinf` Without `out` Raises NameError
**Description:**
When using the `np.isposinf` function without providing the `out` parameter, it raises a `NameError` instead of returning the expected boolean array. This issue occurs because the function attempts to reference a variable `y` that is not ... | diff --git a/numpy/lib/ufunclike.py b/numpy/lib/ufunclike.py
--- a/numpy/lib/ufunclike.py
+++ b/numpy/lib/ufunclike.py
@@ -71,14 +71,15 @@
array([ 2., 2., -2., -2.])
"""
- x = nx.asanyarray(x)
- y1 = nx.floor(x)
- y2 = nx.ceil(x)
- if out is None:
- out = nx.asanyarray(y1)
- out[...] ... | diff --git a/numpy/lib/tests/test_ufunclike.py b/numpy/lib/tests/test_ufunclike.py
--- a/numpy/lib/tests/test_ufunclike.py
+++ b/numpy/lib/tests/test_ufunclike.py
@@ -1,5 +1,6 @@
from __future__ import division, absolute_import, print_function
+import numpy as np
import numpy.core as nx
import numpy.lib.ufunclike ... | null | null | namanjain12/numpy_final:05f422827b3317ad3774cbd1859edbf6bc196f75 | true | null | 1 | 29 | null | 932 | 0 | 0.75 | 1 | 0.75 | 1 | 0.252 | 83.881 | ||
3,624 | r2e_gym::train::2786 | r2e_gym | train | 2,786 | sympy__5f1f77edc59ad87fe666352707396712efc7cdf2 | sympy | sympy/sympy | python | 5f1f77edc59ad87fe666352707396712efc7cdf2 | Title: Integration raises PolynomialError with Fractional Denominators in is_deriv_k
Description:
When integrating expressions that introduce fractional denominators, the underlying handling of logarithmic parts in is_deriv_k fails. For example, using an integrand that includes terms like 1/(1-(x*y)**2) causes the rou... | diff --git a/sympy/integrals/prde.py b/sympy/integrals/prde.py
--- a/sympy/integrals/prde.py
+++ b/sympy/integrals/prde.py
@@ -665,12 +665,17 @@
result = Add(*[Mul(i, j) for i, j in ans])
argterms = [DE.T[i] for i in DE.E_K] + DE.L_args
l = []
+ ld = []
for... | diff --git a/sympy/integrals/tests/test_prde.py b/sympy/integrals/tests/test_prde.py
--- a/sympy/integrals/tests/test_prde.py
+++ b/sympy/integrals/tests/test_prde.py
@@ -212,3 +212,11 @@
assert parametric_log_deriv_heu(Poly(5*t**2 + t - 6, t), Poly(2*x*t**2, t),
Poly(-1, t), Poly(x*t**2, t), DE) == \
... | null | null | namanjain12/sympy_final:5f1f77edc59ad87fe666352707396712efc7cdf2 | true | null | 1 | 7 | null | 1,364 | 0 | 0.75 | 1 | 0.75 | 1 | 0.250667 | 83.877 | ||
3,625 | r2e_gym::train::5979 | r2e_gym | train | 5,979 | tornado__6453ce8f2e553d5a1f393975daa89bc5a21e70f6 | tornado | tornadoweb/tornado | python | 6453ce8f2e553d5a1f393975daa89bc5a21e70f6 | **Title:** Initialization Fails with Unexpected Keyword Argument When Using Multiple Configurable Bases
**Description:**
When configuring classes with multiple configurable bases, initializing an instance with specific keyword arguments results in a `TypeError`. This occurs because the initialization process does not ... | diff --git a/tornado/util.py b/tornado/util.py
--- a/tornado/util.py
+++ b/tornado/util.py
@@ -286,6 +286,9 @@
else:
impl = cls
init_kwargs.update(kwargs)
+ if impl.configurable_base() is not base:
+ # The impl class is itself configurable, so recurse.
+ retur... | diff --git a/tornado/test/util_test.py b/tornado/test/util_test.py
--- a/tornado/test/util_test.py
+++ b/tornado/test/util_test.py
@@ -58,12 +58,35 @@
self.pos_arg = pos_arg
+class TestConfig3(TestConfigurable):
+ # TestConfig3 is a configuration option that is itself configurable.
+ @classmethod
+ ... | null | null | namanjain12/tornado_final:6453ce8f2e553d5a1f393975daa89bc5a21e70f6 | true | null | 1 | 8 | null | 1,337 | 0 | 0.75 | 1 | 0.75 | 1 | 0.2495 | 83.8735 | ||
3,626 | r2e_gym::train::1440 | r2e_gym | train | 1,440 | sympy__69a7e0ff20b35219b0b86588f1e49e31fbd0d15e | sympy | sympy/sympy | python | 69a7e0ff20b35219b0b86588f1e49e31fbd0d15e | Title: prde_no_cancel_b_large References Undefined Variable "t" Causing NameError
Description:
In certain cases, when processing polynomials with non-trivial derivation extensions, the prde_no_cancel_b_large function references an undefined variable "t", leading to a NameError. For example, when using an extension wit... | diff --git a/sympy/integrals/prde.py b/sympy/integrals/prde.py
--- a/sympy/integrals/prde.py
+++ b/sympy/integrals/prde.py
@@ -294,9 +294,9 @@
Given a derivation D on k[t], n in ZZ, and b, q1, ..., qm in k[t] with
b != 0 and either D == d/dt or deg(b) > max(0, deg(D) - 1), returns
- h1, ..., hr in k[r] a... | diff --git a/sympy/integrals/tests/test_prde.py b/sympy/integrals/tests/test_prde.py
--- a/sympy/integrals/tests/test_prde.py
+++ b/sympy/integrals/tests/test_prde.py
@@ -105,6 +105,10 @@
assert prde_no_cancel_b_large(Poly(1, x), [Poly(x**3, x), Poly(1, x)], 3, DE) == \
([Poly(x**3 - 3*x**2 + 6*x - 6, x),... | null | null | namanjain12/sympy_final:69a7e0ff20b35219b0b86588f1e49e31fbd0d15e | true | null | 1 | 6 | null | 1,376 | 0 | 0.75 | 1 | 0.75 | 1 | 0.249333 | 83.873 | ||
3,627 | swe_bench::dev::9 | swe_bench | dev | 9 | pvlib__pvlib-python-1026 | pvlib/pvlib-python | pvlib/pvlib-python | python | 27872b83b0932cc419116f79e442963cced935bb | make read_crn accomodate bad files
A couple of issues with our `read_crn` function.
First, the character sequence '\x00\x00\x00\x00\x00\x00' occasionally shows up and trips up pandas. This can be fixed by adding `na_values=['\x00\x00\x00\x00\x00\x00']` to the reader.
Second, we try to set the `CRX_VN` column to dtype... | diff --git a/pvlib/iotools/crn.py b/pvlib/iotools/crn.py
--- a/pvlib/iotools/crn.py
+++ b/pvlib/iotools/crn.py
@@ -33,7 +33,7 @@
# specify dtypes for potentially problematic values
DTYPES = [
- 'int64', 'int64', 'int64', 'int64', 'int64', 'int64', 'float64', 'float64',
+ 'int64', 'int64', 'int64', 'int64', 'i... | diff --git a/pvlib/tests/iotools/test_crn.py b/pvlib/tests/iotools/test_crn.py
--- a/pvlib/tests/iotools/test_crn.py
+++ b/pvlib/tests/iotools/test_crn.py
@@ -8,18 +8,39 @@
@pytest.fixture
-def testfile():
- return DATA_DIR / 'CRNS0101-05-2019-AZ_Tucson_11_W.txt'
-
-
-def test_read_crn(testfile):
- columns =... | ["pvlib/tests/iotools/test_crn.py::test_read_crn"] | [] | null | true | 2020-08-21T16:27:41Z | 1 | 22 | 1 | 2,002 | 0 | 0.8 | 1 | 0.7 | 1 | 0.407 | 83.871 | ||
3,628 | r2e_gym::train::4676 | r2e_gym | train | 4,676 | numpy__46d2e8356760e7549d0c80da9fe232177924183c | numpy | numpy/numpy | python | 46d2e8356760e7549d0c80da9fe232177924183c | **Title:** `histogram` does not validate for finite range parameters, allowing NaN or Infinity
**Description:**
When using the `histogram` function, providing non-finite values (such as `NaN` or `Infinity`) in the `range` parameter does not trigger an error. This can lead to unexpected behavior or incorrect histogram ... | diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -336,8 +336,12 @@
if (range is not None):
mn, mx = range
if (mn > mx):
- raise AttributeError(
+ raise ValueError(
'max ... | diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py
--- a/numpy/lib/tests/test_function_base.py
+++ b/numpy/lib/tests/test_function_base.py
@@ -1267,6 +1267,13 @@
assert_array_equal(a, np.array([0]))
assert_array_equal(b, np.array([0, 1]))
+ def test_finite_... | null | null | namanjain12/numpy_final:46d2e8356760e7549d0c80da9fe232177924183c | true | null | 1 | 13 | null | 1,232 | 0 | 0.75 | 1 | 0.75 | 1 | 0.248667 | 83.871 | ||
3,629 | r2e_gym::train::2723 | r2e_gym | train | 2,723 | sympy__2fe7a1d24e9808603a3fdb1cf20b1c3b1a35b3ff | sympy | sympy/sympy | python | 2fe7a1d24e9808603a3fdb1cf20b1c3b1a35b3ff | Title: linsolve Raises ValueError When Using Dummy Symbols to Represent Variables
Description:
When using Dummy symbols as the variables in a linear system, linsolve unexpectedly raises a ValueError. Consider the following example:
```
from sympy import Dummy, Matrix, FiniteSet, linsolve
# Define a linear system usi... | diff --git a/sympy/solvers/solveset.py b/sympy/solvers/solveset.py
--- a/sympy/solvers/solveset.py
+++ b/sympy/solvers/solveset.py
@@ -1140,7 +1140,12 @@
if hasattr(symbols[0], '__iter__'):
symbols = symbols[0]
- if not type(symbols[0]) == Symbol:
+ try:
+ sym = symbols[0].is_Symbol
+ ex... | diff --git a/sympy/solvers/tests/test_solveset.py b/sympy/solvers/tests/test_solveset.py
--- a/sympy/solvers/tests/test_solveset.py
+++ b/sympy/solvers/tests/test_solveset.py
@@ -846,17 +846,17 @@
# Test for different input forms
M = Matrix([[1, 2, 1, 1, 7], [1, 2, 2, -1, 12], [2, 4, 0, 6, 4]])
- system ... | null | null | namanjain12/sympy_final:2fe7a1d24e9808603a3fdb1cf20b1c3b1a35b3ff | true | null | 1 | 7 | null | 1,346 | 0 | 0.75 | 1 | 0.75 | 1 | 0.247667 | 83.868 | ||
3,630 | r2e_gym::train::4988 | r2e_gym | train | 4,988 | datalad__bf2198fd52eb1dd230f85c4b82c0ec8f081909b1 | datalad | datalad/datalad | python | bf2198fd52eb1dd230f85c4b82c0ec8f081909b1 | **Title:** Unable to Set Configuration Options with Underscores or Uppercase Letters via Environment Variables
**Description:**
When attempting to set configuration options using environment variables, options that include underscores or uppercase letters are not being recognized correctly. Specifically, environment v... | diff --git a/datalad/config.py b/datalad/config.py
--- a/datalad/config.py
+++ b/datalad/config.py
@@ -11,6 +11,7 @@
from collections import namedtuple
+import json
import threading
from fasteners import InterProcessLock
from functools import lru_cache
@@ -121,11 +122,19 @@
def _update_from_env(store):
+ ... | diff --git a/datalad/interface/tests/test_run_procedure.py b/datalad/interface/tests/test_run_procedure.py
--- a/datalad/interface/tests/test_run_procedure.py
+++ b/datalad/interface/tests/test_run_procedure.py
@@ -14,6 +14,7 @@
import os.path as op
import sys
+from unittest.mock import patch
from datalad.cmd im... | null | null | namanjain12/datalad_final:bf2198fd52eb1dd230f85c4b82c0ec8f081909b1 | true | null | 2 | 21 | null | 1,057 | 0 | 0.75 | 1 | 0.75 | 1 | 0.246167 | 83.8635 | ||
3,631 | r2e_gym::train::4146 | r2e_gym | train | 4,146 | numpy__9a90abf995d0d8d9e96992a083dc55a41a93254f | numpy | numpy/numpy | python | 9a90abf995d0d8d9e96992a083dc55a41a93254f | **Title:** `ediff1d` Fails to Preserve Subclass Types, Causing ValueError with `np.matrix`
**Description:**
When using the `ediff1d` function with a subclass of `ndarray`, such as `np.matrix`, the function does not maintain the subclass type. This results in a `ValueError` during execution.
**Example:**
```python
imp... | diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py
--- a/numpy/lib/arraysetops.py
+++ b/numpy/lib/arraysetops.py
@@ -85,28 +85,27 @@
if to_begin is None and to_end is None:
return ary[1:] - ary[:-1]
- # get the length of the diff'd values
- l = len(ary) - 1
- if l < 0:
- # ... | diff --git a/numpy/lib/tests/test_arraysetops.py b/numpy/lib/tests/test_arraysetops.py
--- a/numpy/lib/tests/test_arraysetops.py
+++ b/numpy/lib/tests/test_arraysetops.py
@@ -175,6 +175,8 @@
assert_array_equal([1,7,8], ediff1d(two_elem, to_end=[7,8]))
assert_array_equal([7,1], ediff1d(two_elem, to_beg... | null | null | namanjain12/numpy_final:9a90abf995d0d8d9e96992a083dc55a41a93254f | true | null | 1 | 25 | null | 970 | 0 | 0.75 | 1 | 0.75 | 1 | 0.245 | 83.86 | ||
3,632 | r2e_gym::train::5050 | r2e_gym | train | 5,050 | datalad__916ad5273829a0f213d7fd3f098e05477360154d | datalad | datalad/datalad | python | 916ad5273829a0f213d7fd3f098e05477360154d | **Title:** `run_procedure` Raises TypeError Due to Multiple `path` Arguments
**Description:**
After recent changes, invoking `run_procedure` with certain parameters results in a `TypeError` because multiple `path` arguments are being passed unintentionally.
**Reproduction Steps:**
```python
res = run_procedure('unk... | diff --git a/datalad/interface/run_procedure.py b/datalad/interface/run_procedure.py
--- a/datalad/interface/run_procedure.py
+++ b/datalad/interface/run_procedure.py
@@ -264,8 +264,9 @@
for m, cmd_tmpl, cmd_help in _get_procedure_implementation('*', ds=ds):
if m in reported:
... | diff --git a/datalad/interface/tests/test_run_procedure.py b/datalad/interface/tests/test_run_procedure.py
--- a/datalad/interface/tests/test_run_procedure.py
+++ b/datalad/interface/tests/test_run_procedure.py
@@ -34,6 +34,9 @@
def test_invalid_call():
# needs spec or discover
assert_raises(InsufficientArgu... | null | null | namanjain12/datalad_final:916ad5273829a0f213d7fd3f098e05477360154d | true | null | 1 | 30 | null | 864 | 0 | 0.75 | 1 | 0.75 | 1 | 0.244 | 83.857 | ||
3,633 | swe_bench::test::1711 | swe_bench | test | 1,711 | scikit-learn__scikit-learn-26634 | scikit-learn/scikit-learn | scikit-learn/scikit-learn | python | 9cbcc1f205e8be4dad1f383239e98381abb28bd0 | NMF fit transform without updating H should not require the user to input "n_components"
The `_fit_transform` function of the `_nmf` module has the option to set `update_H=False`, where the H matrix is left constant. the private method `_fit_transform` is called by the exposed `non_negative_factorization` function.
In ... | Hi @yotamcons, the ``fit_transform`` method of NMF does not expose the option ``update_H``. It's the private method ``_fit_transform`` that does expose it, but it's there for internal purpose, so it's advised not to call it directly. I f you really want to use it, you need to set n_components appropriately.
Sorry for t... | diff --git a/sklearn/decomposition/_nmf.py b/sklearn/decomposition/_nmf.py
--- a/sklearn/decomposition/_nmf.py
+++ b/sklearn/decomposition/_nmf.py
@@ -27,6 +27,7 @@
from ..exceptions import ConvergenceWarning
from ..utils import check_array, check_random_state, gen_batches, metadata_routing
from ..utils._param_valid... | diff --git a/sklearn/decomposition/tests/test_nmf.py b/sklearn/decomposition/tests/test_nmf.py
--- a/sklearn/decomposition/tests/test_nmf.py
+++ b/sklearn/decomposition/tests/test_nmf.py
@@ -45,9 +45,11 @@ def test_initialize_nn_output():
assert not ((W < 0).any() or (H < 0).any())
+# TODO(1.6): remove the... | ["sklearn/decomposition/tests/test_nmf.py::test_nmf_n_components_auto[NMF]", "sklearn/decomposition/tests/test_nmf.py::test_nmf_n_components_auto[MiniBatchNMF]", "sklearn/decomposition/tests/test_nmf.py::test_nmf_non_negative_factorization_n_components_auto", "sklearn/decomposition/tests/test_nmf.py::test_nmf_n_compone... | ["sklearn/decomposition/tests/test_nmf.py::test_convergence_warning[NMF-solver0]", "sklearn/decomposition/tests/test_nmf.py::test_convergence_warning[NMF-solver1]", "sklearn/decomposition/tests/test_nmf.py::test_convergence_warning[MiniBatchNMF-solver2]", "sklearn/decomposition/tests/test_nmf.py::test_initialize_nn_out... | null | true | 2023-06-20T14:01:24Z | 1 | 89 | 7 | 766 | 0.035714 | 0.8 | 1 | 0.7 | 1 | 0.424333 | 83.85675 | |
3,634 | swe_bench::test::1740 | swe_bench | test | 1,740 | sphinx-doc__sphinx-10481 | sphinx-doc/sphinx | sphinx-doc/sphinx | python | 004012b6df0fcec67312373f8d89327f5b09a7e6 | If a project defines "language = None" in conf.py, treat it like "en"
Hello, I started working on integrating Sphinx 5 to Fedora to ensure distribution packages work smoothly when the final is out.
I ran across is a side effect of the change inspired by #10062.
If a project has already "language = None" defined in thei... | diff --git a/sphinx/config.py b/sphinx/config.py
--- a/sphinx/config.py
+++ b/sphinx/config.py
@@ -163,6 +163,17 @@ def read(cls, confdir: str, overrides: Dict = None, tags: Tags = None) -> "Confi
raise ConfigError(__("config directory doesn't contain a conf.py file (%s)") %
... | diff --git a/tests/test_config.py b/tests/test_config.py
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -381,3 +381,49 @@ def test_nitpick_ignore_regex_fullmatch(app, status, warning):
assert len(warning) == len(nitpick_warnings)
for actual, expected in zip(warning, nitpick_warnings):
asser... | ["tests/test_config.py::test_conf_py_language_none", "tests/test_config.py::test_conf_py_language_none_warning"] | ["tests/test_config.py::test_core_config", "tests/test_config.py::test_config_not_found", "tests/test_config.py::test_extension_values", "tests/test_config.py::test_overrides", "tests/test_config.py::test_overrides_boolean", "tests/test_config.py::test_errors_warnings", "tests/test_config.py::test_errors_if_setup_is_no... | null | true | 2022-05-27T22:54:01Z | 1 | 11 | 2 | 2,182 | 0 | 0.8 | 1 | 0.7 | 1 | 0.400333 | 83.851 | ||
3,635 | r2e_gym::train::4400 | r2e_gym | train | 4,400 | numpy__e847a56a548b586a88084e8ec0dabfe8ae1f0e57 | numpy | numpy/numpy | python | e847a56a548b586a88084e8ec0dabfe8ae1f0e57 | **Title:** `numpy.savetxt` Raises `IndexError` for 0D or >2D Arrays Instead of `ValueError`
**Description:**
When using `numpy.savetxt` to save arrays with dimensions 0 or greater than 2, the function raises an unexpected `IndexError`. According to the documentation, `savetxt` is intended to handle 1D or 2D arrays. Ho... | diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py
--- a/numpy/lib/npyio.py
+++ b/numpy/lib/npyio.py
@@ -1071,7 +1071,7 @@
If the filename ends in ``.gz``, the file is automatically saved in
compressed gzip format. `loadtxt` understands gzipped files
transparently.
- X : array_like
+ ... | diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py
--- a/numpy/lib/tests/test_io.py
+++ b/numpy/lib/tests/test_io.py
@@ -329,6 +329,12 @@
lines = c.readlines()
assert_equal(lines, [b'1\n', b'2\n', b'3\n', b'4\n'])
+ def test_0D_3D(self):
+ c = BytesIO()
+ assert_ra... | null | null | namanjain12/numpy_final:e847a56a548b586a88084e8ec0dabfe8ae1f0e57 | true | null | 1 | 7 | null | 1,306 | 0 | 0.75 | 1 | 0.75 | 1 | 0.241 | 83.848 | ||
3,636 | r2e_gym::train::5459 | r2e_gym | train | 5,459 | aiohttp__10217d0a2e4eb97b0050fabe3f0aeae6d43c2071 | aiohttp | aio-libs/aiohttp | python | 10217d0a2e4eb97b0050fabe3f0aeae6d43c2071 | **Title:** Unable to Read Buffered Items from DataQueue After Setting an Exception
**Description:**
When an exception is set on the `DataQueue`, attempts to read previously enqueued items result in the exception being raised immediately. This behavior prevents access to any items that were buffered before the exceptio... | diff --git a/aiohttp/parsers.py b/aiohttp/parsers.py
--- a/aiohttp/parsers.py
+++ b/aiohttp/parsers.py
@@ -324,12 +324,12 @@
@asyncio.coroutine
def read(self):
- if self._exception is not None:
- raise self._exception
-
self._stream.resume_stream()
try:
if no... | diff --git a/tests/test_parsers.py b/tests/test_parsers.py
--- a/tests/test_parsers.py
+++ b/tests/test_parsers.py
@@ -428,11 +428,32 @@
def test_read_exception(self):
buffer = parsers.DataQueue(self.stream, loop=self.loop)
- buffer.feed_data(object())
buffer.set_exception(ValueError())
... | null | null | namanjain12/aiohttp_final:10217d0a2e4eb97b0050fabe3f0aeae6d43c2071 | true | null | 1 | 11 | null | 1,224 | 0 | 0.75 | 1 | 0.75 | 1 | 0.240667 | 83.847 | ||
3,637 | r2e_gym::train::453 | r2e_gym | train | 453 | orange3__1d3c7286c7fd343156e73d84609d72b95bc304f6 | orange3 | biolab/orange3 | python | 1d3c7286c7fd343156e73d84609d72b95bc304f6 | **Title:** Annotated Data Missing When Using Column Distances in Hierarchical Clustering
**Description:**
When performing hierarchical clustering using column distances, the widget fails to produce the annotated data. This results in an `AttributeError` when attempting to access the domain attributes of the annotated ... | diff --git a/Orange/widgets/unsupervised/owhierarchicalclustering.py b/Orange/widgets/unsupervised/owhierarchicalclustering.py
--- a/Orange/widgets/unsupervised/owhierarchicalclustering.py
+++ b/Orange/widgets/unsupervised/owhierarchicalclustering.py
@@ -610,16 +610,29 @@
selected_data.domain = Domain(... | diff --git a/Orange/widgets/unsupervised/tests/test_owhierarchicalclustering.py b/Orange/widgets/unsupervised/tests/test_owhierarchicalclustering.py
--- a/Orange/widgets/unsupervised/tests/test_owhierarchicalclustering.py
+++ b/Orange/widgets/unsupervised/tests/test_owhierarchicalclustering.py
@@ -26,6 +26,8 @@
... | null | null | namanjain12/orange3_final:1d3c7286c7fd343156e73d84609d72b95bc304f6 | true | null | 1 | 19 | null | 1,060 | 0 | 0.75 | 1 | 0.75 | 1 | 0.24 | 83.845 | ||
3,638 | r2e_gym::train::4938 | r2e_gym | train | 4,938 | datalad__ccb4177a7870de4059e2246e7ce5d572848332ff | datalad | datalad/datalad | python | ccb4177a7870de4059e2246e7ce5d572848332ff | **Title:** `extract` Function Raises TypeError Due to Missing Required Arguments
**Description:**
After updating the `extract` function to include default values for its parameters, some parts of the codebase still call `extract` without providing the necessary keyword arguments. This results in `TypeError` exceptions... | diff --git a/datalad/plugin/addurls.py b/datalad/plugin/addurls.py
--- a/datalad/plugin/addurls.py
+++ b/datalad/plugin/addurls.py
@@ -18,6 +18,8 @@
from six import string_types
from six.moves.urllib.parse import urlparse
+
+from datalad.utils import assure_list
lgr = logging.getLogger("datalad.plugin.addurls")
... | diff --git a/datalad/plugin/tests/test_addurls.py b/datalad/plugin/tests/test_addurls.py
--- a/datalad/plugin/tests/test_addurls.py
+++ b/datalad/plugin/tests/test_addurls.py
@@ -187,9 +187,8 @@
def test_extract():
info, subpaths = addurls.extract(
json_stream(ST_DATA["rows"]), "json",
- "{name}_{... | null | null | namanjain12/datalad_final:ccb4177a7870de4059e2246e7ce5d572848332ff | true | null | 1 | 11 | null | 1,218 | 0 | 0.75 | 1 | 0.75 | 1 | 0.239667 | 83.844 | ||
3,639 | r2e_gym::train::4942 | r2e_gym | train | 4,942 | datalad__1b5e56bd4e1507298f72780e3c27dced3fe1f06d | datalad | datalad/datalad | python | 1b5e56bd4e1507298f72780e3c27dced3fe1f06d | **Title:** `single_or_plural` Function Raises TypeError When Using `include_count` Parameter
**Description:**
The `single_or_plural` helper function is intended to return either the singular or plural form of a word based on a numerical value. However, when attempting to include the count in the returned string by usi... | diff --git a/datalad/dochelpers.py b/datalad/dochelpers.py
--- a/datalad/dochelpers.py
+++ b/datalad/dochelpers.py
@@ -63,15 +63,17 @@
return text + '\n' + markup * len(text)
-def single_or_plural(single, plural, n):
+def single_or_plural(single, plural, n, include_count=False):
"""Little helper to spit o... | diff --git a/datalad/tests/test_dochelpers.py b/datalad/tests/test_dochelpers.py
--- a/datalad/tests/test_dochelpers.py
+++ b/datalad/tests/test_dochelpers.py
@@ -18,10 +18,12 @@
from .utils import assert_equal, assert_true, assert_raises
from .utils import assert_re_in
+
def test_basic():
assert_equal(single... | null | null | namanjain12/datalad_final:1b5e56bd4e1507298f72780e3c27dced3fe1f06d | true | null | 1 | 8 | null | 1,269 | 0 | 0.75 | 1 | 0.75 | 1 | 0.238167 | 83.8395 | ||
3,640 | r2e_gym::train::5499 | r2e_gym | train | 5,499 | aiohttp__9ff938eea3eb91165cfe45c0bf2432f56896d3e5 | aiohttp | aio-libs/aiohttp | python | 9ff938eea3eb91165cfe45c0bf2432f56896d3e5 | **Title:** `.json()` and `.text()` Methods Can Be Called Outside of Response Context Without Raising Errors
**Description:**
When using `aiohttp` to make HTTP requests, calling the `.json()` or `.text()` methods on a `ClientResponse` object outside of the response context does not raise any errors. This behavior allow... | diff --git a/CHANGES/9254.breaking.rst b/CHANGES/9254.breaking.rst
--- a/CHANGES/9254.breaking.rst
+++ b/CHANGES/9254.breaking.rst
@@ -0,0 +1,2 @@
+Stopped allowing use of ``ClientResponse.text()``/``ClientResponse.json()`` after leaving ``async with`` context.
+This now matches the behaviour of ``ClientResponse.read()... | diff --git a/tests/test_client_functional.py b/tests/test_client_functional.py
--- a/tests/test_client_functional.py
+++ b/tests/test_client_functional.py
@@ -3689,6 +3689,42 @@
await resp.read()
+async def test_json_from_closed_response(aiohttp_client: AiohttpClient) -> None:
+ async def handler(reques... | null | null | namanjain12/aiohttp_final:9ff938eea3eb91165cfe45c0bf2432f56896d3e5 | true | null | 2 | 8 | null | 1,263 | 0 | 0.75 | 1 | 0.75 | 1 | 0.237167 | 83.8365 | ||
3,641 | r2e_gym::train::4714 | r2e_gym | train | 4,714 | numpy__6171296a661065de0d40c7be4c12666fcfaafd2b | numpy | numpy/numpy | python | 6171296a661065de0d40c7be4c12666fcfaafd2b | **Title:** `ediff1d` Does Not Raise TypeError for Incompatible `to_begin` or `to_end` Types
**Description:**
When using `numpy.ediff1d`, providing `to_begin` or `to_end` with values that have an incompatible data type compared to the input array does not raise an error. This oversight can lead to unexpected behavior o... | diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py
--- a/numpy/lib/arraysetops.py
+++ b/numpy/lib/arraysetops.py
@@ -82,6 +82,11 @@
# force a 1d array
ary = np.asanyarray(ary).ravel()
+ # we have unit tests enforcing
+ # propagation of the dtype of input
+ # ary to returned result
+ ... | diff --git a/numpy/lib/tests/test_arraysetops.py b/numpy/lib/tests/test_arraysetops.py
--- a/numpy/lib/tests/test_arraysetops.py
+++ b/numpy/lib/tests/test_arraysetops.py
@@ -6,10 +6,13 @@
import numpy as np
import sys
-from numpy.testing import assert_array_equal, assert_equal, assert_raises
+from numpy.testing im... | null | null | namanjain12/numpy_final:6171296a661065de0d40c7be4c12666fcfaafd2b | true | null | 1 | 19 | null | 1,034 | 0 | 0.75 | 1 | 0.75 | 1 | 0.235667 | 83.832 | ||
3,642 | swe_bench::test::950 | swe_bench | test | 950 | matplotlib__matplotlib-13983 | matplotlib/matplotlib | matplotlib/matplotlib | python | 76db50151a65927c19c83a8c3c195c87dbcc0556 | Remove()ing a shared axes prevents the remaining axes from using unit-provided formatters
Consider
```
from pylab import *
from datetime import date
fig, axs = plt.subplots(1, 2, sharex=True)
axs[1].remove()
axs[0].plot([date(2000, 1, 1), date(2000, 2, 1)], [0, 1])
plt.show()
```
One gets
:
"""
if not isinstance(formatter, mticker.Formatter):
raise TypeError("formatter argument should be instanc... | diff --git a/lib/matplotlib/tests/test_figure.py b/lib/matplotlib/tests/test_figure.py
--- a/lib/matplotlib/tests/test_figure.py
+++ b/lib/matplotlib/tests/test_figure.py
@@ -1,10 +1,11 @@
+from datetime import datetime
from pathlib import Path
import platform
from matplotlib import rcParams
from matplotlib.testi... | ["lib/matplotlib/tests/test_figure.py::test_axes_removal"] | ["lib/matplotlib/tests/test_figure.py::test_figure_label", "lib/matplotlib/tests/test_figure.py::test_fignum_exists", "lib/matplotlib/tests/test_figure.py::test_clf_keyword", "lib/matplotlib/tests/test_figure.py::test_gca", "lib/matplotlib/tests/test_figure.py::test_add_subplot_invalid", "lib/matplotlib/tests/test_figu... | null | true | 2019-04-18T10:55:40Z | 2 | 24 | 1 | 1,866 | 0 | 0.8 | 1 | 0.7 | 1 | 0.391 | 83.823 | ||
3,643 | swe_bench::test::1456 | swe_bench | test | 1,456 | pytest-dev__pytest-7939 | pytest-dev/pytest | pytest-dev/pytest | python | 65e6e39b76c236999fc53823892c26367a85a8f8 | [Feature] Allow a --sw-skip shorthand cli arg like --sw itself permits
The stepwise plugin exposes a shorthand option for the stepwise itself, however it requires a longer arg only for skip, I think these should be consistent and should offer shorthand versions for both.
```python
def pytest_addoption(parser: Parser) ... | diff --git a/src/_pytest/stepwise.py b/src/_pytest/stepwise.py
--- a/src/_pytest/stepwise.py
+++ b/src/_pytest/stepwise.py
@@ -1,5 +1,6 @@
from typing import List
from typing import Optional
+from typing import TYPE_CHECKING
import pytest
from _pytest import nodes
@@ -8,6 +9,11 @@
from _pytest.main import Sessio... | diff --git a/testing/test_stepwise.py b/testing/test_stepwise.py
--- a/testing/test_stepwise.py
+++ b/testing/test_stepwise.py
@@ -93,6 +93,23 @@ def test_run_without_stepwise(stepwise_testdir):
result.stdout.fnmatch_lines(["*test_success_after_fail PASSED*"])
+def test_stepwise_output_summary(testdir):
+ t... | ["testing/test_stepwise.py::test_run_with_skip_option[--sw-skip]"] | ["testing/test_stepwise.py::test_run_without_stepwise", "testing/test_stepwise.py::test_stepwise_output_summary", "testing/test_stepwise.py::test_fail_and_continue_with_stepwise", "testing/test_stepwise.py::test_run_with_skip_option[--stepwise-skip]", "testing/test_stepwise.py::test_fail_on_errors", "testing/test_stepw... | null | true | 2020-10-25T11:04:34Z | 1 | 77 | 1 | 796 | 0 | 0.8 | 1 | 0.7 | 1 | 0.389333 | 83.818 | ||
3,644 | r2e_gym::train::5324 | r2e_gym | train | 5,324 | aiohttp__b8548c7d4784cec1caaf67534c409069808a253c | aiohttp | aio-libs/aiohttp | python | b8548c7d4784cec1caaf67534c409069808a253c | **Title:** Handshake with Unsupported Protocols Raises Exception Instead of Logging Warning
**Description:**
When attempting a WebSocket handshake with client protocols that do not overlap with the server-supported protocols, the system raises an `HttpBadRequest` exception instead of logging a warning and gracefully h... | diff --git a/aiohttp/log.py b/aiohttp/log.py
--- a/aiohttp/log.py
+++ b/aiohttp/log.py
@@ -5,3 +5,4 @@
client_log = logging.getLogger('aiohttp.client')
internal_log = logging.getLogger('aiohttp.internal')
server_log = logging.getLogger('aiohttp.server')
+websocket_log = logging.getLogger('aiohttp.websocket')
diff --... | diff --git a/tests/test_websocket.py b/tests/test_websocket.py
--- a/tests/test_websocket.py
+++ b/tests/test_websocket.py
@@ -471,12 +471,21 @@
self.assertEqual(protocol, best_proto)
- def test_handshake_protocol_unsupported(self):
+ @unittest.mock.patch('aiohttp.websocket.websocket_log.warning')
+ ... | null | null | namanjain12/aiohttp_final:b8548c7d4784cec1caaf67534c409069808a253c | true | null | 2 | 8 | null | 1,215 | 0 | 0.75 | 1 | 0.75 | 1 | 0.229167 | 83.8125 | ||
3,645 | r2e_gym::train::6561 | r2e_gym | train | 6,561 | pillow__39d866b17d99206c11d931e12c108825df68f47b | pillow | python-pillow/pillow | python | 39d866b17d99206c11d931e12c108825df68f47b | **Title:** Missing 'duration' Information Causes KeyError When Loading Animated WebP Images
**Description:**
When saving and then loading an animated WebP image, the `info` dictionary does not include the `'duration'` key. This omission leads to a `KeyError` when attempting to access the duration of the animation fram... | diff --git a/src/PIL/WebPImagePlugin.py b/src/PIL/WebPImagePlugin.py
--- a/src/PIL/WebPImagePlugin.py
+++ b/src/PIL/WebPImagePlugin.py
@@ -74,6 +74,9 @@
self.info["background"] = (bg_r, bg_g, bg_b, bg_a)
self.n_frames = frame_count
self.is_animated = self.n_frames > 1
+ ret = self._dec... | diff --git a/Tests/test_file_webp.py b/Tests/test_file_webp.py
--- a/Tests/test_file_webp.py
+++ b/Tests/test_file_webp.py
@@ -233,5 +233,4 @@
im.save(out_webp, save_all=True)
with Image.open(out_webp) as reloaded:
- reloaded.load()
assert reloaded.info["duration"] == 100... | null | null | namanjain12/pillow_final:39d866b17d99206c11d931e12c108825df68f47b | true | null | 1 | 10 | null | 1,174 | 0 | 0.75 | 1 | 0.75 | 1 | 0.229 | 83.812 | ||
3,646 | r2e_gym::train::4300 | r2e_gym | train | 4,300 | numpy__6462068ee40344ebe9a60b3ddcad0e9590d5a260 | numpy | numpy/numpy | python | 6462068ee40344ebe9a60b3ddcad0e9590d5a260 | **Title:** `np.sort` and `np.partition` Fail on `np.matrix` with `axis=None`
**Description:**
When using `np.sort` or `np.partition` on a `np.matrix` with `axis=None`, the functions do not behave as expected. Specifically, sorting a matrix does not reorder the elements correctly, and partitioning raises an error due t... | diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py
--- a/numpy/core/fromnumeric.py
+++ b/numpy/core/fromnumeric.py
@@ -657,8 +657,9 @@
"""
if axis is None:
+ # flatten returns (1, N) for np.matrix, so always use the last axis
a = asanyarray(a).flatten()
- axis = 0
+ ... | diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py
--- a/numpy/core/tests/test_multiarray.py
+++ b/numpy/core/tests/test_multiarray.py
@@ -1741,6 +1741,13 @@
assert_equal(r['col2'], [1, 3, 255, 258])
assert_equal(r, np.array([('a', 1), ('c', 3), ('b', 255), ('d', 25... | null | null | namanjain12/numpy_final:6462068ee40344ebe9a60b3ddcad0e9590d5a260 | true | null | 1 | 6 | null | 1,232 | 0 | 0.75 | 1 | 0.75 | 1 | 0.225333 | 83.801 | ||
3,647 | r2e_gym::train::63 | r2e_gym | train | 63 | orange3__55d77e04ff6567f96576fc433d52e00c64027a65 | orange3 | biolab/orange3 | python | 55d77e04ff6567f96576fc433d52e00c64027a65 | **Title:** Error Unlocking Copied Sparse Arrays After `Table.copy()`
**Description:**
When creating a copy of a `Table` object that contains sparse arrays, attempting to unlock the copied table results in a `ValueError`. This prevents modifying the sparse arrays in the copied table independently of the original.
**Bu... | diff --git a/Orange/data/table.py b/Orange/data/table.py
--- a/Orange/data/table.py
+++ b/Orange/data/table.py
@@ -1465,9 +1465,10 @@
"""
def is_view(x):
- # Sparse matrices don't have views like numpy arrays. Since indexing on
- # them creates copies in constructor we can skip... | diff --git a/Orange/tests/test_table.py b/Orange/tests/test_table.py
--- a/Orange/tests/test_table.py
+++ b/Orange/tests/test_table.py
@@ -495,9 +495,13 @@
self.assertNotEqual(id(t.metas), id(copy.metas))
# ensure that copied sparse arrays do not share data
+ # and that both are unlockable
... | null | null | namanjain12/orange3_final:55d77e04ff6567f96576fc433d52e00c64027a65 | true | null | 1 | 7 | null | 1,203 | 0 | 0.75 | 1 | 0.75 | 1 | 0.223833 | 83.7965 | ||
3,648 | r2e_gym::train::5269 | r2e_gym | train | 5,269 | aiohttp__fbc1d774246dfb603c677457fd68e7b5c002513d | aiohttp | aio-libs/aiohttp | python | fbc1d774246dfb603c677457fd68e7b5c002513d | **Title:** Route Name Validation Rejects Dashes as Separators
**Description:**
When registering a route with a name that includes dashes, the system raises a `ValueError`, even though dashes should be valid separators. The current validation only permits dots and colons, which restricts the flexibility of route naming... | diff --git a/HISTORY.rst b/HISTORY.rst
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -1,3 +1,9 @@
+0.18.4 (13-11-2015)
+-------------------
+
+- Relax rule for router names again by adding dash to allowed
+ characters: they may contain identifiers, dashes, dots and columns
+
0.18.3 (25-10-2015)
-------------------
diff -... | diff --git a/tests/test_urldispatch.py b/tests/test_urldispatch.py
--- a/tests/test_urldispatch.py
+++ b/tests/test_urldispatch.py
@@ -83,7 +83,7 @@
route = PlainRoute('GET', handler, 'return', '/handler/to/path')
self.assertRaises(ValueError, self.router.register_route, route)
- route = Plai... | null | null | namanjain12/aiohttp_final:fbc1d774246dfb603c677457fd68e7b5c002513d | true | null | 2 | 14 | null | 1,048 | 0 | 0.75 | 1 | 0.75 | 1 | 0.221333 | 83.789 | ||
3,649 | r2e_gym::train::4512 | r2e_gym | train | 4,512 | numpy__96684909b41c240a5ad8039393720d8bd9fc5ece | numpy | numpy/numpy | python | 96684909b41c240a5ad8039393720d8bd9fc5ece | **Title:** Incorrect Representation Causes Errors with 0D Subclassed Object Arrays
**Description:**
When subclassing `numpy.ndarray` to create 0-dimensional object arrays, attempting to convert the array to a string or representation results in errors. This issue prevents proper visualization and debugging of such arr... | diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py
--- a/numpy/core/arrayprint.py
+++ b/numpy/core/arrayprint.py
@@ -471,14 +471,15 @@
# The formatter __init__s in _get_format_function cannot deal with
# subclasses yet, and we also need to avoid recursion issues in
# _formatArray with subcl... | diff --git a/numpy/core/tests/test_arrayprint.py b/numpy/core/tests/test_arrayprint.py
--- a/numpy/core/tests/test_arrayprint.py
+++ b/numpy/core/tests/test_arrayprint.py
@@ -5,7 +5,7 @@
import numpy as np
from numpy.testing import (
- run_module_suite, assert_, assert_equal, assert_raises, assert_warns
+ r... | null | null | namanjain12/numpy_final:96684909b41c240a5ad8039393720d8bd9fc5ece | true | null | 1 | 7 | null | 1,173 | 0 | 0.75 | 1 | 0.75 | 1 | 0.218833 | 83.7815 | ||
3,650 | swe_bench::test::1692 | swe_bench | test | 1,692 | scikit-learn__scikit-learn-25638 | scikit-learn/scikit-learn | scikit-learn/scikit-learn | python | 6adb209acd63825affc884abcd85381f148fb1b0 | Support nullable pandas dtypes in `unique_labels`
### Describe the workflow you want to enable
I would like to be able to pass the nullable pandas dtypes ("Int64", "Float64", "boolean") into sklearn's `unique_labels` function. Because the dtypes become `object` dtype when converted to numpy arrays we get `ValueError: ... | diff --git a/sklearn/utils/multiclass.py b/sklearn/utils/multiclass.py
--- a/sklearn/utils/multiclass.py
+++ b/sklearn/utils/multiclass.py
@@ -155,14 +155,25 @@ def is_multilabel(y):
if hasattr(y, "__array__") or isinstance(y, Sequence) or is_array_api:
# DeprecationWarning will be replaced by ValueError,... | diff --git a/sklearn/metrics/tests/test_classification.py b/sklearn/metrics/tests/test_classification.py
--- a/sklearn/metrics/tests/test_classification.py
+++ b/sklearn/metrics/tests/test_classification.py
@@ -1079,6 +1079,24 @@ def test_confusion_matrix_dtype():
assert cm[1, 1] == -2
+@pytest.mark.parametriz... | ["sklearn/metrics/tests/test_classification.py::test_confusion_matrix_pandas_nullable[Int64]", "sklearn/metrics/tests/test_classification.py::test_confusion_matrix_pandas_nullable[Float64]", "sklearn/metrics/tests/test_classification.py::test_confusion_matrix_pandas_nullable[boolean]", "sklearn/preprocessing/tests/test... | ["sklearn/metrics/tests/test_classification.py::test_classification_report_dictionary_output", "sklearn/metrics/tests/test_classification.py::test_classification_report_output_dict_empty_input", "sklearn/metrics/tests/test_classification.py::test_classification_report_zero_division_warning[warn]", "sklearn/metrics/test... | null | true | 2023-02-17T22:17:50Z | 1 | 35 | 10 | 1,561 | 0 | 0.8 | 1 | 0.7 | 1 | 0.376833 | 83.7805 | ||
3,651 | r2e_gym::train::5568 | r2e_gym | train | 5,568 | scrapy__e667ca76820a53ac3abf34604fc284761f936bb9 | scrapy | scrapy/scrapy | python | e667ca76820a53ac3abf34604fc284761f936bb9 | **Title:** Fail to Serialize Requests with Private Callback Methods Due to Name Mangling
**Description:**
When serializing a request that uses a private callback method, the process fails because the method name is mangled and cannot be found. This leads to a `ValueError`, preventing the request from being properly s... | diff --git a/scrapy/utils/reqser.py b/scrapy/utils/reqser.py
--- a/scrapy/utils/reqser.py
+++ b/scrapy/utils/reqser.py
@@ -75,7 +75,11 @@
pass
else:
if func_self is obj:
- return six.get_method_function(func).__name__
+ name = six.get_method_function(func... | diff --git a/tests/test_utils_reqser.py b/tests/test_utils_reqser.py
--- a/tests/test_utils_reqser.py
+++ b/tests/test_utils_reqser.py
@@ -68,6 +68,12 @@
errback=self.spider.handle_error)
self._assert_serializes_ok(r, spider=self.spider)
+ def test_private_callback_serialization(self)... | null | null | namanjain12/scrapy_final:e667ca76820a53ac3abf34604fc284761f936bb9 | true | null | 1 | 6 | null | 1,180 | 0 | 0.75 | 1 | 0.75 | 1 | 0.216667 | 83.775 | ||
3,652 | swe_bench::test::958 | swe_bench | test | 958 | matplotlib__matplotlib-19553 | matplotlib/matplotlib | matplotlib/matplotlib | python | ca275dca26d746fb1ce59a16e8c0f7db42d6813a | make `Normalize` objects notifiy scalar-mappables on changes
Currently just changing the limit of a normalizer will not invalidate the caches in `AxesImage` so the figure will not update to reflect the changed limits. The reason you would want to do this is that by sharing a `Normalize` instance between multiple scala... |
This is because the colorbar is listening to the "changed" event on `images[0].callbacksSM`, but that event is triggered when the image is directly manipulated (`im.set_clim`, etc.), but here they are not because it's the underlying *norm object* which is shared (and hence the "update" callback never fires because the... | diff --git a/lib/matplotlib/cm.py b/lib/matplotlib/cm.py
--- a/lib/matplotlib/cm.py
+++ b/lib/matplotlib/cm.py
@@ -337,7 +337,7 @@ def __init__(self, norm=None, cmap=None):
The colormap used to map normalized data values to RGBA colors.
"""
self._A = None
- self.norm = None # So t... | diff --git a/lib/matplotlib/tests/test_colors.py b/lib/matplotlib/tests/test_colors.py
--- a/lib/matplotlib/tests/test_colors.py
+++ b/lib/matplotlib/tests/test_colors.py
@@ -1,5 +1,6 @@
import copy
import itertools
+import unittest.mock
from io import BytesIO
import numpy as np
@@ -17,7 +18,7 @@
import matplotl... | ["lib/matplotlib/tests/test_colors.py::test_norm_callback", "lib/matplotlib/tests/test_colors.py::test_scalarmappable_norm_update"] | ["lib/matplotlib/tests/test_colors.py::test_create_lookup_table[5-result0]", "lib/matplotlib/tests/test_colors.py::test_create_lookup_table[2-result1]", "lib/matplotlib/tests/test_colors.py::test_create_lookup_table[1-result2]", "lib/matplotlib/tests/test_colors.py::test_resample", "lib/matplotlib/tests/test_colors.py:... | null | true | 2021-02-21T18:02:30Z | 5 | 130 | 2 | 2,761 | 0 | 0.8 | 1 | 0.7 | 0.85 | 0.8935 | 83.768 | |
3,653 | r2e_gym::train::6040 | r2e_gym | train | 6,040 | pillow__f6dd2905601790da0f0959990a80a116e370acfe | pillow | python-pillow/pillow | python | f6dd2905601790da0f0959990a80a116e370acfe | **Title:** `registered_extensions` Function Missing from PIL.Image Module
**Description:**
Attempting to access registered file extensions using the `Image.registered_extensions()` method results in an AttributeError. This prevents users from retrieving the dictionary of all registered file extensions associated with ... | diff --git a/PIL/Image.py b/PIL/Image.py
--- a/PIL/Image.py
+++ b/PIL/Image.py
@@ -2512,6 +2512,16 @@
EXTENSION[extension.lower()] = id.upper()
+def registered_extensions():
+ """
+ Returns a dictionary containing all file extensions belonging
+ to registered plugins
+ """
+ if not bool(EXTENSIO... | diff --git a/Tests/test_image.py b/Tests/test_image.py
--- a/Tests/test_image.py
+++ b/Tests/test_image.py
@@ -196,6 +196,35 @@
img_colors = sorted(img.getcolors())
self.assertEqual(img_colors, expected_colors)
+ def test_registered_extensions_uninitialized(self):
+ # Arrange
+ Imag... | null | null | namanjain12/pillow_final:f6dd2905601790da0f0959990a80a116e370acfe | true | null | 1 | 10 | null | 1,080 | 0 | 0.75 | 1 | 0.75 | 1 | 0.213333 | 83.765 | ||
3,654 | r2e_gym::train::151 | r2e_gym | train | 151 | orange3__50f6a758f1c66b8f4a18806714e3c2f4cefcab3e | orange3 | biolab/orange3 | python | 50f6a758f1c66b8f4a18806714e3c2f4cefcab3e | **Title:** Error Occurs When Loading Variable Definitions with Unused Variables
**Description:**
When loading variable definitions that include unused variables, the application fails to handle the warnings properly. This results in a `TypeError` because the warning message is not correctly generated or handled.
**Ex... | diff --git a/Orange/widgets/data/owcolor.py b/Orange/widgets/data/owcolor.py
--- a/Orange/widgets/data/owcolor.py
+++ b/Orange/widgets/data/owcolor.py
@@ -690,6 +690,7 @@
# First, construct all descriptions; assign later, after we know
# there won't be exceptions due to invalid file format
+ ... | diff --git a/Orange/widgets/data/tests/test_owcolor.py b/Orange/widgets/data/tests/test_owcolor.py
--- a/Orange/widgets/data/tests/test_owcolor.py
+++ b/Orange/widgets/data/tests/test_owcolor.py
@@ -793,6 +793,32 @@
msg_box.reset_mock()
self.widget._parse_var_defs.assert_called_with(js... | null | null | namanjain12/orange3_final:50f6a758f1c66b8f4a18806714e3c2f4cefcab3e | true | null | 1 | 16 | null | 951 | 0 | 0.75 | 1 | 0.75 | 1 | 0.211833 | 83.7605 | ||
3,655 | swe_bench::test::1790 | swe_bench | test | 1,790 | sphinx-doc__sphinx-7854 | sphinx-doc/sphinx | sphinx-doc/sphinx | python | 66e55a02d125e7b65b211a7cf9b48506195e3bf4 | Support for parameterized GNU style attributes on C++ code.
Hi folks.
My C++ codebase uses GNU attributes for code like
`__attribute__ ((optimize(3))) void readMatrix(void)`
Unfortunately, it looks like Sphinx doesn't support them.
```
Exception occurred:
File "/usr/local/lib/python3.7/site-packages/sphinx/domain... | diff --git a/sphinx/domains/c.py b/sphinx/domains/c.py
--- a/sphinx/domains/c.py
+++ b/sphinx/domains/c.py
@@ -28,7 +28,8 @@
from sphinx.roles import SphinxRole, XRefRole
from sphinx.util import logging
from sphinx.util.cfamily import (
- NoOldIdError, ASTBaseBase, verify_description_mode, StringifyTransform,
+ ... | diff --git a/tests/test_domain_c.py b/tests/test_domain_c.py
--- a/tests/test_domain_c.py
+++ b/tests/test_domain_c.py
@@ -469,6 +469,8 @@ def test_attributes():
check('member', '__attribute__(()) int f', {1: 'f'})
check('member', '__attribute__((a)) int f', {1: 'f'})
check('member', '__attribute__((a, b... | ["tests/test_domain_c.py::test_attributes", "tests/test_domain_cpp.py::test_attributes"] | ["tests/test_domain_c.py::test_expressions", "tests/test_domain_c.py::test_type_definitions", "tests/test_domain_c.py::test_macro_definitions", "tests/test_domain_c.py::test_member_definitions", "tests/test_domain_c.py::test_function_definitions", "tests/test_domain_c.py::test_nested_name", "tests/test_domain_c.py::tes... | null | true | 2020-06-20T08:02:58Z | 3 | 31 | 2 | 1,594 | 0 | 0.8 | 1 | 0.7 | 1 | 0.369 | 83.757 | ||
3,656 | r2e_gym::train::375 | r2e_gym | train | 375 | orange3__1aefa02412ca540b97749886a88c051382822c31 | orange3 | biolab/orange3 | python | 1aefa02412ca540b97749886a88c051382822c31 | **Title:** AttributeError When Reconstructing Domain with Custom ComputeValue
**Description:**
When using a custom `ComputeValue` function to reconstruct the domain for a logistic regression classifier, an `AttributeError` is raised because the `ComputeValue` object does not have a `variable` attribute.
**Buggy Code ... | diff --git a/Orange/widgets/visualize/ownomogram.py b/Orange/widgets/visualize/ownomogram.py
--- a/Orange/widgets/visualize/ownomogram.py
+++ b/Orange/widgets/visualize/ownomogram.py
@@ -18,7 +18,8 @@
from AnyQt.QtCore import Qt, QRectF, QSize, QPropertyAnimation, QObject, \
pyqtProperty
-from Orange.data impor... | diff --git a/Orange/widgets/visualize/tests/test_ownomogram.py b/Orange/widgets/visualize/tests/test_ownomogram.py
--- a/Orange/widgets/visualize/tests/test_ownomogram.py
+++ b/Orange/widgets/visualize/tests/test_ownomogram.py
@@ -339,6 +339,19 @@
self.assertEqual(target_cb.currentIndex(), 2)
self.ass... | null | null | namanjain12/orange3_final:1aefa02412ca540b97749886a88c051382822c31 | true | null | 1 | 8 | null | 1,086 | 0 | 0.75 | 1 | 0.75 | 1 | 0.207667 | 83.748 | ||
3,657 | r2e_gym::train::5782 | r2e_gym | train | 5,782 | tornado__7bdbd0b2aba3ccbc46792ff9da38203027941246 | tornado | tornadoweb/tornado | python | 7bdbd0b2aba3ccbc46792ff9da38203027941246 | **Title:** `IOLoop.run_sync` Does Not Raise `BadYieldError` for Synchronous Functions Returning Non-None
**Description:**
When using `IOLoop.run_sync` with a synchronous function that returns a non-`None` value, the expected `BadYieldError` is not raised. This allows synchronous functions that should be yieldable to e... | diff --git a/tornado/ioloop.py b/tornado/ioloop.py
--- a/tornado/ioloop.py
+++ b/tornado/ioloop.py
@@ -400,10 +400,12 @@
def run_sync(self, func, timeout=None):
"""Starts the `IOLoop`, runs the given function, and stops the loop.
- If the function returns a `.Future`, the `IOLoop` will run
- ... | diff --git a/tornado/test/ioloop_test.py b/tornado/test/ioloop_test.py
--- a/tornado/test/ioloop_test.py
+++ b/tornado/test/ioloop_test.py
@@ -16,7 +16,7 @@
from tornado.platform.select import _Select
from tornado.stack_context import ExceptionStackContext, StackContext, wrap, NullContext
from tornado.testing import... | null | null | namanjain12/tornado_final:7bdbd0b2aba3ccbc46792ff9da38203027941246 | true | null | 1 | 16 | null | 925 | 0 | 0.75 | 1 | 0.75 | 1 | 0.2075 | 83.7475 | ||
3,658 | r2e_gym::train::5741 | r2e_gym | train | 5,741 | scrapy__b7553d921afe356ec858bb1d2e5b1702df05ea24 | scrapy | scrapy/scrapy | python | b7553d921afe356ec858bb1d2e5b1702df05ea24 | **Title:** `canonicalize_url` Raises UnicodeError on URLs with Invalid Netlocs
**Description:**
When attempting to canonicalize URLs that have invalid network locations, such as missing DNS labels or excessively long labels, the `canonicalize_url` function fails with a `UnicodeError`.
**Example:**
```python
url = "ht... | diff --git a/scrapy/utils/url.py b/scrapy/utils/url.py
--- a/scrapy/utils/url.py
+++ b/scrapy/utils/url.py
@@ -41,9 +41,16 @@
def _safe_ParseResult(parts, encoding='utf8', path_encoding='utf8'):
+ # IDNA encoding can fail for too long labels (>63 characters)
+ # or missing labels (e.g. http://.example.com)
+... | diff --git a/tests/test_utils_url.py b/tests/test_utils_url.py
--- a/tests/test_utils_url.py
+++ b/tests/test_utils_url.py
@@ -264,6 +264,20 @@
# without encoding, already canonicalized URL is canonicalized identically
self.assertEqual(canonicalize_url(canonicalized), canonicalized)
+
+ d... | null | null | namanjain12/scrapy_final:b7553d921afe356ec858bb1d2e5b1702df05ea24 | true | null | 1 | 9 | null | 1,050 | 0 | 0.75 | 1 | 0.75 | 1 | 0.205 | 83.74 | ||
3,659 | swe_bench::test::1818 | swe_bench | test | 1,818 | sphinx-doc__sphinx-8278 | sphinx-doc/sphinx | sphinx-doc/sphinx | python | a8abb9995f71b9bc02b6f83592751c779ae0f75a | Sphinx changes number system from hexadecimal to decimal for function default arguments
**Describe the bug**
When documenting a function, which requires a default argument specified in hexadecimal:
```
.. function:: lcd.print(msg, x, y, color=0xffffff, transparent=False)
```
Sphinx 3.2.1 will render HTML documentatio... | diff --git a/sphinx/pycode/ast.py b/sphinx/pycode/ast.py
--- a/sphinx/pycode/ast.py
+++ b/sphinx/pycode/ast.py
@@ -58,17 +58,19 @@ def parse(code: str, mode: str = 'exec') -> "ast.AST":
return ast.parse(code, mode=mode)
-def unparse(node: Optional[ast.AST]) -> Optional[str]:
+def unparse(node: Optional[ast... | 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
@@ -386,6 +386,19 @@ def test_pyfunction_signature_full_py38(app):
[desc_parameter, desc_sig_operator, "/"])])
+@pytest.mark.skipif(sys.version_info < (3,... | ["tests/test_domain_py.py::test_pyfunction_with_number_literals", "tests/test_pycode_ast.py::test_unparse[a", "tests/test_pycode_ast.py::test_unparse[os.path-os.path]", "tests/test_pycode_ast.py::test_unparse[1", "tests/test_pycode_ast.py::test_unparse[b'bytes'-b'bytes']", "tests/test_pycode_ast.py::test_unparse[object... | ["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_objects", "tests/test_domain_py.py::test_resolve_xref_for_properties", "tests/test_domain_py.py::test_domain_py_find_obj", "tests/test_domain_py.py::test_get_full_qualified_nam... | null | true | 2020-10-04T01:41:40Z | 2 | 36 | 23 | 1,450 | 0 | 0.8 | 1 | 0.7 | 1 | 0.361667 | 83.735 | ||
3,660 | swe_bench::dev::65 | swe_bench | dev | 65 | pvlib__pvlib-python-1854 | pvlib/pvlib-python | pvlib/pvlib-python | python | 27a3a07ebc84b11014d3753e4923902adf9a38c0 | PVSystem with single Array generates an error
**Is your feature request related to a problem? Please describe.**
When a PVSystem has a single Array, you can't assign just the Array instance when constructing the PVSystem.
```
mount = pvlib.pvsystem.FixedMount(surface_tilt=35, surface_azimuth=180)
array = pvlib.pvsyst... | diff --git a/pvlib/pvsystem.py b/pvlib/pvsystem.py
--- a/pvlib/pvsystem.py
+++ b/pvlib/pvsystem.py
@@ -101,10 +101,11 @@ class PVSystem:
Parameters
----------
- arrays : iterable of Array, optional
- List of arrays that are part of the system. If not specified
- a single array is created fr... | diff --git a/pvlib/tests/test_pvsystem.py b/pvlib/tests/test_pvsystem.py
--- a/pvlib/tests/test_pvsystem.py
+++ b/pvlib/tests/test_pvsystem.py
@@ -1887,8 +1887,6 @@ def test_PVSystem_multiple_array_creation():
assert pv_system.arrays[0].module_parameters == {}
assert pv_system.arrays[1].module_parameters == {... | ["pvlib/tests/test_pvsystem.py::test_PVSystem_single_array"] | ["pvlib/tests/test_pvsystem.py::test_PVSystem_get_iam[ashrae-model_params0]", "pvlib/tests/test_pvsystem.py::test_PVSystem_get_iam[physical-model_params1]", "pvlib/tests/test_pvsystem.py::test_PVSystem_get_iam[martin_ruiz-model_params2]", "pvlib/tests/test_pvsystem.py::test_PVSystem_multi_array_get_iam", "pvlib/tests/t... | null | true | 2023-09-13T17:25:47Z | 1 | 11 | 1 | 1,924 | 0 | 0.8 | 1 | 0.7 | 1 | 0.357333 | 83.722 | ||
3,661 | r2e_gym::train::4041 | r2e_gym | train | 4,041 | coveragepy__3823cc6d41956d0b8cfb55d6151673017a825c49 | coveragepy | nedbat/coveragepy | python | 3823cc6d41956d0b8cfb55d6151673017a825c49 | **Title:** coverage.py Does Not Raise Error for `[tool.coverage]` in `pyproject.toml` Without TOML Support
**Description:**
When using a `pyproject.toml` file to configure coverage.py with a `[tool.coverage]` section, the tool does not raise an error if TOML support is not installed. This leads to coverage.py silently... | diff --git a/CHANGES.rst b/CHANGES.rst
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -20,9 +20,18 @@
Unreleased
----------
+- Fix: if Python doesn't provide tomllib, then TOML configuration files can
+ only be read if coverage.py is installed with the ``[toml]`` extra.
+ Coverage.py will raise an error if toml support i... | diff --git a/tests/test_config.py b/tests/test_config.py
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -739,6 +739,19 @@
with pytest.raises(ConfigError, match=msg):
coverage.Coverage()
+ @pytest.mark.skipif(sys.version_info >= (3, 11), reason="Python 3.11 has toml in stdlib... | null | null | namanjain12/coveragepy_final:3823cc6d41956d0b8cfb55d6151673017a825c49 | true | null | 2 | 11 | null | 961 | 0 | 0.75 | 1 | 0.75 | 1 | 0.196833 | 83.7155 | ||
3,662 | r2e_gym::train::4084 | r2e_gym | train | 4,084 | coveragepy__562e7593673d7e33e76d1eb7b22c3f0ad6fa3dfd | coveragepy | nedbat/coveragepy | python | 562e7593673d7e33e76d1eb7b22c3f0ad6fa3dfd | **Title:** Unclear Error Message When Combining Branch Coverage Data with Statement Data
**Description:**
When attempting to combine branch coverage data with statement data, the error message returned is vague and does not clearly indicate the nature of the issue. This makes it difficult for developers to understand ... | diff --git a/CHANGES.rst b/CHANGES.rst
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -23,7 +23,12 @@
Unreleased
----------
-Nothing yet.
+- If you attempt to combine statement coverage data with branch coverage data,
+ coverage.py used to fail with the message "Can't combine arc data with line
+ data" or its reverse, "C... | diff --git a/tests/test_data.py b/tests/test_data.py
--- a/tests/test_data.py
+++ b/tests/test_data.py
@@ -405,10 +405,12 @@
covdata2 = DebugCoverageData(suffix='2')
covdata2.add_arcs(ARCS_3)
- with pytest.raises(DataError, match="Can't combine arc data with line data"):
+ msg = "Can't... | null | null | namanjain12/coveragepy_final:562e7593673d7e33e76d1eb7b22c3f0ad6fa3dfd | true | null | 2 | 11 | null | 959 | 0 | 0.75 | 1 | 0.75 | 1 | 0.1965 | 83.7145 | ||
3,663 | swe_bench::test::1662 | swe_bench | test | 1,662 | scikit-learn__scikit-learn-15084 | scikit-learn/scikit-learn | scikit-learn/scikit-learn | python | 5e4b2757d61563889672e395d9e92d9372d357f6 | VotingClassifier and roc_auc TypeError: Cannot cast array data from dtype('float64') to dtype('int64') according to the rule 'safe' and
#### Description
VotingClassifier
TypeError: Cannot cast array data from dtype('float64') to dtype('int64') according to the rule 'safe'
#### Steps/Code to Reproduce
```python
from sk... | `Ridge` and `LinearRegression` are not classifiers, which makes them incompatible with `VotingClassifier`.
> Ridge and LinearRegression are not classifiers, which makes them incompatible with VotingClassifier.
+1 though maybe we should return a better error message.
Shall we check the base estimators with `sklearn.b... | diff --git a/sklearn/ensemble/_stacking.py b/sklearn/ensemble/_stacking.py
--- a/sklearn/ensemble/_stacking.py
+++ b/sklearn/ensemble/_stacking.py
@@ -15,6 +15,7 @@
from ..base import MetaEstimatorMixin
from .base import _parallel_fit_estimator
+from .base import _BaseHeterogeneousEnsemble
from ..linear_model im... | diff --git a/sklearn/ensemble/tests/test_voting.py b/sklearn/ensemble/tests/test_voting.py
--- a/sklearn/ensemble/tests/test_voting.py
+++ b/sklearn/ensemble/tests/test_voting.py
@@ -37,9 +37,9 @@
def test_estimator_init():
eclf = VotingClassifier(estimators=[])
- msg = ('Invalid `estimators` attribute, `est... | ["sklearn/ensemble/tests/test_voting.py::test_estimator_init", "sklearn/ensemble/tests/test_voting.py::test_set_estimator_none[None]", "sklearn/ensemble/tests/test_voting.py::test_set_estimator_none[drop]"] | ["sklearn/ensemble/tests/test_voting.py::test_predictproba_hardvoting", "sklearn/ensemble/tests/test_voting.py::test_notfitted", "sklearn/ensemble/tests/test_voting.py::test_majority_label_iris", "sklearn/ensemble/tests/test_voting.py::test_tie_situation", "sklearn/ensemble/tests/test_voting.py::test_weights_iris", "sk... | null | true | 2019-09-24T17:25:41Z | 3 | 252 | 3 | 3,117 | 0 | 0.8 | 1 | 0.77 | 0.75 | 1 | 83.7075 | |
3,664 | r2e_gym::train::456 | r2e_gym | train | 456 | orange3__8aa72f416cf85bddbd52d3a0d9b0fea8fcfc71aa | orange3 | biolab/orange3 | python | 8aa72f416cf85bddbd52d3a0d9b0fea8fcfc71aa | **Title:** SOM Widget Raises AttributeError with Single Row of Data
**Description:**
When using the SOM (Self-Organizing Map) widget with a dataset that contains only one row of complete data (no missing values), the widget crashes unexpectedly. This occurs because the widget attempts to display an error message for i... | diff --git a/Orange/widgets/unsupervised/owsom.py b/Orange/widgets/unsupervised/owsom.py
--- a/Orange/widgets/unsupervised/owsom.py
+++ b/Orange/widgets/unsupervised/owsom.py
@@ -220,7 +220,7 @@
class Error(OWWidget.Error):
no_numeric_variables = Msg("Data contains no numeric columns.")
- no_defi... | diff --git a/Orange/widgets/unsupervised/tests/test_owsom.py b/Orange/widgets/unsupervised/tests/test_owsom.py
--- a/Orange/widgets/unsupervised/tests/test_owsom.py
+++ b/Orange/widgets/unsupervised/tests/test_owsom.py
@@ -86,7 +86,7 @@
self.iris.X[i, i % 4] = np.nan
self.send_signal(widget.... | null | null | namanjain12/orange3_final:8aa72f416cf85bddbd52d3a0d9b0fea8fcfc71aa | true | null | 1 | 6 | null | 1,042 | 0 | 0.75 | 1 | 0.75 | 1 | 0.193667 | 83.706 | ||
3,665 | r2e_gym::train::6038 | r2e_gym | train | 6,038 | pillow__fef3ceb2c02ef241a508ee020fe2617e10e33e42 | pillow | python-pillow/pillow | python | fef3ceb2c02ef241a508ee020fe2617e10e33e42 | **Title:** SGIImagePlugin Fails to Raise Error for Unsupported Compression
**Description:**
When attempting to open SGI image files that use unsupported compression or have unsupported image modes, the `PIL.SgiImagePlugin` does not raise an appropriate error. This results in the image failing to load correctly without... | diff --git a/PIL/SgiImagePlugin.py b/PIL/SgiImagePlugin.py
--- a/PIL/SgiImagePlugin.py
+++ b/PIL/SgiImagePlugin.py
@@ -45,7 +45,7 @@
# HEAD
s = self.fp.read(512)
if i16(s) != 474:
- raise SyntaxError("not an SGI image file")
+ raise ValueError("Not an SGI image file")
... | diff --git a/Tests/test_file_sgi.py b/Tests/test_file_sgi.py
--- a/Tests/test_file_sgi.py
+++ b/Tests/test_file_sgi.py
@@ -5,44 +5,32 @@
class TestFileSgi(PillowTestCase):
- def sanity(self, filename, expected_mode, expected_size=(128, 128)):
- # Act
- im = Image.open(filename)
-
- # Assert... | null | null | namanjain12/pillow_final:fef3ceb2c02ef241a508ee020fe2617e10e33e42 | true | null | 1 | 10 | null | 920 | 0 | 0.75 | 1 | 0.75 | 1 | 0.186667 | 83.685 | ||
3,666 | r2e_gym::train::4021 | r2e_gym | train | 4,021 | coveragepy__aefe08b437d1ce9c4e0bbdd7dba69e7316ede313 | coveragepy | nedbat/coveragepy | python | aefe08b437d1ce9c4e0bbdd7dba69e7316ede313 | **Title:** Coverage Fails to Report Unexecuted Files, Raising "No Data to Report" Error
**Description:**
When using Coverage.py with specified source directories, if no code within those sources is executed, generating the coverage report fails instead of indicating that the files have 0% coverage.
**Example:**
```py... | diff --git a/CHANGES.rst b/CHANGES.rst
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -35,6 +35,9 @@
unwanted warnings ("Already imported a file that will be measured") and a
reduction in coverage totals (`issue 909`_). This is now fixed.
+- If no data was collected, an exception about "No data to report" could happen... | diff --git a/tests/test_api.py b/tests/test_api.py
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -295,6 +295,21 @@
with self.assertRaisesRegex(CoverageException, "No data to report."):
cov.report()
+ def test_completely_zero_reporting(self):
+ # https://github.com/nedbat/coveragep... | null | null | namanjain12/coveragepy_final:aefe08b437d1ce9c4e0bbdd7dba69e7316ede313 | true | null | 2 | 6 | null | 990 | 0 | 0.75 | 1 | 0.75 | 1 | 0.185 | 83.68 | ||
3,667 | r2e_gym::train::5364 | r2e_gym | train | 5,364 | aiohttp__1e7faf857c9c68400848ba43a894479681736b0c | aiohttp | aio-libs/aiohttp | python | 1e7faf857c9c68400848ba43a894479681736b0c | **Title:** Chunked encoding enabled for HTTP/1.0 requests does not raise an error
**Description:**
When using aiohttp's `StreamResponse` with chunked encoding enabled on an HTTP/1.0 request, no error is raised. Since chunked encoding is not supported in HTTP/1.0, the response should prevent this configuration to maint... | diff --git a/aiohttp/web_reqrep.py b/aiohttp/web_reqrep.py
--- a/aiohttp/web_reqrep.py
+++ b/aiohttp/web_reqrep.py
@@ -24,7 +24,7 @@
CIMultiDict,
MultiDictProxy,
MultiDict)
-from .protocol import Response as ResponseImpl, HttpVersion10
+from .pr... | diff --git a/tests/test_web_response.py b/tests/test_web_response.py
--- a/tests/test_web_response.py
+++ b/tests/test_web_response.py
@@ -18,8 +18,9 @@
def tearDown(self):
self.loop.close()
- def make_request(self, method, path, headers=CIMultiDict()):
- message = RawRequestMessage(method, pa... | null | null | namanjain12/aiohttp_final:1e7faf857c9c68400848ba43a894479681736b0c | true | null | 1 | 6 | null | 952 | 0 | 0.75 | 1 | 0.75 | 1 | 0.178667 | 83.661 | ||
3,668 | r2e_gym::train::5028 | r2e_gym | train | 5,028 | datalad__1175e9f864a4155cd147e9ea9268cb10e5fff4c9 | datalad | datalad/datalad | python | 1175e9f864a4155cd147e9ea9268cb10e5fff4c9 | **Title:** Uninformative TypeError Raised When Message Rendering Fails
**Description:**
When attempting to render a message with insufficient arguments, a generic `TypeError` is raised. This makes it difficult to understand the context and reason behind the failure, hindering effective debugging.
**Example Code:**
``... | diff --git a/datalad/interface/utils.py b/datalad/interface/utils.py
--- a/datalad/interface/utils.py
+++ b/datalad/interface/utils.py
@@ -583,7 +583,13 @@
msg, res['action'], res['path'])
if msgargs:
# support string expansion of logging to avoid runtime cost
- ... | diff --git a/datalad/interface/tests/test_utils.py b/datalad/interface/tests/test_utils.py
--- a/datalad/interface/tests/test_utils.py
+++ b/datalad/interface/tests/test_utils.py
@@ -50,6 +50,7 @@
eval_results,
handle_dirty_dataset,
)
+from ..results import get_status_dict
from datalad.interface.base import... | null | null | namanjain12/datalad_final:1175e9f864a4155cd147e9ea9268cb10e5fff4c9 | true | null | 1 | 8 | null | 908 | 0 | 0.75 | 1 | 0.75 | 1 | 0.178 | 83.659 | ||
3,669 | r2e_gym::train::384 | r2e_gym | train | 384 | orange3__fb238eb93c537ec9adaec28674ffda5be7d8df8a | orange3 | biolab/orange3 | python | fb238eb93c537ec9adaec28674ffda5be7d8df8a | **Title:** Handling Empty Distance Matrices Causes Runtime Errors
**Description:**
When an empty distance matrix is provided to the Distance Matrix widget, the application raises a runtime error instead of handling the empty input gracefully. This prevents the widget from functioning correctly when no data is availabl... | diff --git a/Orange/widgets/unsupervised/owdistancematrix.py b/Orange/widgets/unsupervised/owdistancematrix.py
--- a/Orange/widgets/unsupervised/owdistancematrix.py
+++ b/Orange/widgets/unsupervised/owdistancematrix.py
@@ -72,6 +72,9 @@
distances = Output("Distances", DistMatrix, dynamic=False)
table ... | diff --git a/Orange/widgets/unsupervised/tests/test_owdistancematrix.py b/Orange/widgets/unsupervised/tests/test_owdistancematrix.py
--- a/Orange/widgets/unsupervised/tests/test_owdistancematrix.py
+++ b/Orange/widgets/unsupervised/tests/test_owdistancematrix.py
@@ -243,6 +243,13 @@
self.assertEqual(widget._ge... | null | null | namanjain12/orange3_final:fb238eb93c537ec9adaec28674ffda5be7d8df8a | true | null | 2 | 10 | null | 868 | 0 | 0.75 | 1 | 0.75 | 1 | 0.178 | 83.659 | ||
3,670 | r2e_gym::train::5302 | r2e_gym | train | 5,302 | aiohttp__51ea69d4c863b9a184293371b24e8d3e6651eb25 | aiohttp | aio-libs/aiohttp | python | 51ea69d4c863b9a184293371b24e8d3e6651eb25 | **Title:** Reified Properties Are Mutable; Assigning Does Not Raise AttributeError
**Description:**
Attempting to assign a new value to a property decorated with `@reify` does not raise an error, allowing the property to be modified. This behavior is unexpected because reified properties are intended to be read-only.
... | diff --git a/aiohttp/helpers.py b/aiohttp/helpers.py
--- a/aiohttp/helpers.py
+++ b/aiohttp/helpers.py
@@ -290,6 +290,9 @@
return '-'
+_marker = object()
+
+
class reify:
"""Use as a class method decorator. It operates almost exactly like
the Python ``@property`` decorator, but it puts the ... | diff --git a/tests/test_helpers.py b/tests/test_helpers.py
--- a/tests/test_helpers.py
+++ b/tests/test_helpers.py
@@ -104,6 +104,17 @@
self.assertIsInstance(A.prop, helpers.reify)
self.assertEqual('Docstring.', A.prop.__doc__)
+ def test_reify_assignment(self):
+ class A:
+ @he... | null | null | namanjain12/aiohttp_final:51ea69d4c863b9a184293371b24e8d3e6651eb25 | true | null | 1 | 16 | null | 747 | 0 | 0.75 | 1 | 0.75 | 1 | 0.177833 | 83.6585 | ||
3,671 | r2e_gym::train::4468 | r2e_gym | train | 4,468 | numpy__5e8301c2b36097dd8be5a12e0bb4369a1df4fabb | numpy | numpy/numpy | python | 5e8301c2b36097dd8be5a12e0bb4369a1df4fabb | **Title:** `numpy.einsum` Raises ValueError When Optimizing with Singleton Dimensions
**Description:**
When using `numpy.einsum` with the `optimize=True` parameter, providing operands that include singleton dimensions results in a `ValueError`. This issue occurs even though broadcasting should allow singleton dimensio... | diff --git a/numpy/core/einsumfunc.py b/numpy/core/einsumfunc.py
--- a/numpy/core/einsumfunc.py
+++ b/numpy/core/einsumfunc.py
@@ -706,10 +706,12 @@
for cnum, char in enumerate(term):
dim = sh[cnum]
if char in dimension_dict.keys():
- if dimension_dict[char] != dim:
- ... | diff --git a/numpy/core/tests/test_einsum.py b/numpy/core/tests/test_einsum.py
--- a/numpy/core/tests/test_einsum.py
+++ b/numpy/core/tests/test_einsum.py
@@ -480,6 +480,14 @@
q = np.arange(4).reshape(2, 2) + 3
r = np.arange(4).reshape(2, 2) + 7
assert_equal(np.einsum('z,mz,zm->', p, q, r), 2... | null | null | namanjain12/numpy_final:5e8301c2b36097dd8be5a12e0bb4369a1df4fabb | true | null | 1 | 10 | null | 865 | 0 | 0.75 | 1 | 0.75 | 1 | 0.1775 | 83.6575 | ||
3,672 | r2e_gym::train::4708 | r2e_gym | train | 4,708 | numpy__67aa4e738bf4298f1ccf0411f8df6116861adab1 | numpy | numpy/numpy | python | 67aa4e738bf4298f1ccf0411f8df6116861adab1 | **Crash When Repr'ing 0-Dimensional Timedelta Array**
**Description**
When attempting to obtain the string representation of a 0-dimensional `timedelta64` array, a `TypeError` is raised. This occurs because the function tries to call `len()` on an unsized object during the formatting process.
**Example Code**
```pyth... | diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py
--- a/numpy/core/arrayprint.py
+++ b/numpy/core/arrayprint.py
@@ -39,7 +39,7 @@
import numpy as np
from . import numerictypes as _nt
-from .umath import absolute, not_equal, isnan, isinf, isfinite
+from .umath import absolute, not_equal, isnan, isinf,... | diff --git a/numpy/core/tests/test_arrayprint.py b/numpy/core/tests/test_arrayprint.py
--- a/numpy/core/tests/test_arrayprint.py
+++ b/numpy/core/tests/test_arrayprint.py
@@ -180,6 +180,15 @@
('NaT',) ('NaT',) ('NaT',)]""")
)
+ # and again, with timedeltas
+ A = np.full(10, 123456... | null | null | namanjain12/numpy_final:67aa4e738bf4298f1ccf0411f8df6116861adab1 | true | null | 1 | 18 | null | 697 | 0 | 0.75 | 1 | 0.75 | 1 | 0.176167 | 83.6535 | ||
3,673 | r2e_gym::train::5959 | r2e_gym | train | 5,959 | tornado__c971a7da2c5924286eb5f94aa8b3d23bffe3b154 | tornado | tornadoweb/tornado | python | c971a7da2c5924286eb5f94aa8b3d23bffe3b154 | **Title:** Reversing URLs with Unescapable Patterns Raises ValueError
**Description:**
When attempting to reverse a URL pattern that includes unescapable regex fragments, a `ValueError` is raised instead of handling the situation gracefully. This prevents the URL from being reversed as expected.
**Example:**
```pytho... | diff --git a/tornado/web.py b/tornado/web.py
--- a/tornado/web.py
+++ b/tornado/web.py
@@ -3059,14 +3059,16 @@
try:
unescaped_fragment = re_unescape(fragment)
except ValueError as exc:
- raise ValueError(exc.args[0] + '; invalid url: %r' % patter... | diff --git a/tornado/test/web_test.py b/tornado/test/web_test.py
--- a/tornado/test/web_test.py
+++ b/tornado/test/web_test.py
@@ -2811,3 +2811,26 @@
class URLSpecReverseTest(unittest.TestCase):
def test_reverse(self):
self.assertEqual('/favicon.ico', url(r'/favicon\.ico', None).reverse())
+ self.... | null | null | namanjain12/tornado_final:c971a7da2c5924286eb5f94aa8b3d23bffe3b154 | true | null | 1 | 8 | null | 884 | 0 | 0.75 | 1 | 0.75 | 1 | 0.174 | 83.647 | ||
3,674 | r2e_gym::train::4085 | r2e_gym | train | 4,085 | coveragepy__364282ea7db7e9515299fe8f9cc5ad9523ea1820 | coveragepy | nedbat/coveragepy | python | 364282ea7db7e9515299fe8f9cc5ad9523ea1820 | **Title:** Parser Fails to Handle TokenError When Parsing Malformed Python Code
**Description:**
When parsing certain malformed Python code, the parser does not catch `TokenError`, leading to unhandled exceptions. For example, parsing a string with a leading newline and an incomplete multi-line string causes the parse... | diff --git a/coverage/parser.py b/coverage/parser.py
--- a/coverage/parser.py
+++ b/coverage/parser.py
@@ -263,10 +263,14 @@
try:
self._ast_root = ast.parse(self.text)
self._raw_parse()
- except (IndentationError, SyntaxError) as err:
+ except (tokenize.TokenError, Inden... | diff --git a/tests/test_parser.py b/tests/test_parser.py
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -128,6 +128,14 @@
pytest.param("0 spaces\n 2\n 1", id="bad_indent"),
pytest.param("'''", id="string_eof"),
pytest.param("$hello", id="dollar"),
+ # on 3.10 this passes ast... | null | null | namanjain12/coveragepy_final:364282ea7db7e9515299fe8f9cc5ad9523ea1820 | true | null | 1 | 8 | null | 872 | 0 | 0.75 | 1 | 0.75 | 1 | 0.172 | 83.641 | ||
3,675 | swe_bench::test::1104 | swe_bench | test | 1,104 | matplotlib__matplotlib-26024 | matplotlib/matplotlib | matplotlib/matplotlib | python | bfaa6eb677b9c56cafb6a99d6897c9d0cd9d4210 | [ENH]: Missing mathematical operations
### Problem
Just browsed the available mathematical operators and compared with the ones defined.
(One can probably do a similar thing with other groups of symbols.)
### Proposed solution
The following are missing (as in not defined in `tex2uni` in `_mathtext_data.py`, in hex)... | diff --git a/lib/matplotlib/_mathtext_data.py b/lib/matplotlib/_mathtext_data.py
--- a/lib/matplotlib/_mathtext_data.py
+++ b/lib/matplotlib/_mathtext_data.py
@@ -1008,8 +1008,6 @@
'leftparen' : 40,
'rightparen' : 41,
'bigoplus' : 10753,
- 'leftangle' ... | diff --git a/lib/matplotlib/tests/test_mathtext.py b/lib/matplotlib/tests/test_mathtext.py
--- a/lib/matplotlib/tests/test_mathtext.py
+++ b/lib/matplotlib/tests/test_mathtext.py
@@ -510,3 +510,31 @@ def test_mathtext_cmr10_minus_sign():
ax.plot(range(-1, 1), range(-1, 1))
# draw to make sure we have no warni... | ["lib/matplotlib/tests/test_mathtext.py::test_mathtext_operators"] | ["lib/matplotlib/tests/test_mathtext.py::test_mathtext_rendering[png-mathtext-cm-0]", "lib/matplotlib/tests/test_mathtext.py::test_mathtext_rendering[png-mathtext-cm-1]", "lib/matplotlib/tests/test_mathtext.py::test_mathtext_rendering[png-mathtext-cm-2]", "lib/matplotlib/tests/test_mathtext.py::test_mathtext_rendering[... | null | true | 2023-06-01T04:01:41Z | 1 | 52 | 1 | 920 | 0 | 0.8 | 1 | 0.7 | 1 | 0.326667 | 83.63 | ||
3,676 | swe_bench::dev::160 | swe_bench | dev | 160 | pyvista__pyvista-3710 | pyvista/pyvista | pyvista/pyvista | python | 846f1834f7428acff9395ef4b8a3bd39b42c99e6 | circle creates creates one zero length edge
### Describe the bug, what's wrong, and what you expected.
I expected that:
> circle = pv.Circle(radius, resolution=n)
1. would create a circle with n points and edge.
It does yay :-)
3. That each edge of the would have similar length.
It does _not_ :-(
The problems seems... | diff --git a/pyvista/utilities/geometric_objects.py b/pyvista/utilities/geometric_objects.py
--- a/pyvista/utilities/geometric_objects.py
+++ b/pyvista/utilities/geometric_objects.py
@@ -1282,15 +1282,22 @@ def Circle(radius=0.5, resolution=100):
pyvista.PolyData
Circle mesh.
+ Notes
+ -----
+ ... | diff --git a/tests/test_geometric_objects.py b/tests/test_geometric_objects.py
--- a/tests/test_geometric_objects.py
+++ b/tests/test_geometric_objects.py
@@ -275,6 +275,11 @@ def test_circle():
assert mesh.n_cells
diameter = np.max(mesh.points[:, 0]) - np.min(mesh.points[:, 0])
assert np.isclose(diamete... | ["tests/test_geometric_objects.py::test_circle"] | ["tests/test_geometric_objects.py::test_cylinder", "tests/test_geometric_objects.py::test_cylinder_structured", "tests/test_geometric_objects.py::test_arrow[None]", "tests/test_geometric_objects.py::test_arrow[2.0]", "tests/test_geometric_objects.py::test_arrow[4]", "tests/test_geometric_objects.py::test_arrow[auto]", ... | null | true | 2022-12-12T14:53:20Z | 1 | 9 | 1 | 1,776 | 0 | 0.8 | 1 | 0.7 | 1 | 0.326 | 83.628 | ||
3,677 | r2e_gym::train::5254 | r2e_gym | train | 5,254 | pyramid__cbf686706bcc8e471977185a6b27678b924f4dc2 | pyramid | pylons/pyramid | python | cbf686706bcc8e471977185a6b27678b924f4dc2 | **Incorrect Argument Order in `add_view_deriver` Causes ModuleNotFoundError**
**Description**
When adding a view deriver, providing the `name` argument before the `deriver` leads to a `ModuleNotFoundError` because the system attempts to resolve the `name` as a module.
**Buggy Code Example:**
```python
self.config.add... | diff --git a/pyramid/config/views.py b/pyramid/config/views.py
--- a/pyramid/config/views.py
+++ b/pyramid/config/views.py
@@ -1091,11 +1091,15 @@
self.add_view_predicate(name, factory)
@action_method
- def add_view_deriver(self, name, deriver, under=None, over=None):
+ def add_view_deriver(se... | diff --git a/pyramid/tests/test_config/test_derivations.py b/pyramid/tests/test_config/test_derivations.py
--- a/pyramid/tests/test_config/test_derivations.py
+++ b/pyramid/tests/test_config/test_derivations.py
@@ -1102,9 +1102,9 @@
def test_right_order_user_sorted(self):
from pyramid.interfaces import IV... | null | null | namanjain12/pyramid_final:cbf686706bcc8e471977185a6b27678b924f4dc2 | true | null | 1 | 14 | null | 722 | 0 | 0.75 | 1 | 0.75 | 1 | 0.167 | 83.626 | ||
3,678 | r2e_gym::train::5445 | r2e_gym | train | 5,445 | aiohttp__cd0a95758ec809099edc755c3fbff8b5f6a390a3 | aiohttp | aio-libs/aiohttp | python | cd0a95758ec809099edc755c3fbff8b5f6a390a3 | **Title:** `StreamResponse` Missing `started` Property Causes AttributeError
**Description:**
When attempting to check if a `StreamResponse` has started, accessing the `started` property results in an `AttributeError`. This prevents developers from reliably determining the state of the response.
**Example:**
```pytho... | diff --git a/CHANGES.txt b/CHANGES.txt
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,5 +1,11 @@
CHANGES
=======
+
+0.13.1 (Unreleased)
+--------------------
+
+- Add `aiohttp.web.StreamResponse.started` property #213
+
0.13.0 (12-29-2014)
-------------------
diff --git a/aiohttp/web.py b/aiohttp/web.py
--- a/aiohttp/... | diff --git a/tests/test_web_response.py b/tests/test_web_response.py
--- a/tests/test_web_response.py
+++ b/tests/test_web_response.py
@@ -425,3 +425,12 @@
self.assertEqual("текст", resp.text)
self.assertEqual("текст".encode('koi8-r'), resp.body)
self.assertEqual("koi8-r", resp.charset)
+
+ ... | null | null | namanjain12/aiohttp_final:cd0a95758ec809099edc755c3fbff8b5f6a390a3 | true | null | 3 | 15 | null | 701 | 0 | 0.75 | 1 | 0.75 | 1 | 0.166833 | 83.6255 | ||
3,679 | r2e_gym::train::5449 | r2e_gym | train | 5,449 | aiohttp__9c50c9aae77cbba107fec00f67d056ac588e9fab | aiohttp | aio-libs/aiohttp | python | 9c50c9aae77cbba107fec00f67d056ac588e9fab | **Title:** Adding Route Without Leading Slash Does Not Raise ValueError
**Description:**
When adding a route with a path that does not start with a slash (`/`), the system currently allows it without raising any errors. This behavior is unexpected because all route paths should begin with a slash to ensure consistent ... | diff --git a/aiohttp/web_urldispatcher.py b/aiohttp/web_urldispatcher.py
--- a/aiohttp/web_urldispatcher.py
+++ b/aiohttp/web_urldispatcher.py
@@ -357,6 +357,8 @@
*, name=None, expect_handler=None):
assert callable(handler), handler
+ if not path.startswith('/'):
+ raise ... | diff --git a/tests/test_urldispatch.py b/tests/test_urldispatch.py
--- a/tests/test_urldispatch.py
+++ b/tests/test_urldispatch.py
@@ -545,3 +545,8 @@
})
self.loop.run_until_complete(go())
+
+ def test_add_route_not_started_with_slash(self):
+ with self.assertRaises(ValueError):
+ ... | null | null | namanjain12/aiohttp_final:9c50c9aae77cbba107fec00f67d056ac588e9fab | true | null | 2 | 8 | null | 760 | 0 | 0.75 | 1 | 0.75 | 1 | 0.153333 | 83.585 | ||
3,680 | swe_bench::dev::122 | swe_bench | dev | 122 | pydicom__pydicom-955 | pydicom/pydicom | pydicom/pydicom | python | fdd4fc8098920b1cda6127bdc05ff1e542b519fb | LUT Descriptor values don't follow standard
**Describe the bug**
(0028,3002) [LUT Descriptor](http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.11.html#sect_C.11.1.1) has VM = 3, with value as `[number of entries in LUT, first stored pixel value mapped, LUT entry bit depth]`. The VR for the element... | diff --git a/pydicom/dataelem.py b/pydicom/dataelem.py
--- a/pydicom/dataelem.py
+++ b/pydicom/dataelem.py
@@ -686,6 +686,13 @@ def __repr__(self):
RawDataElement.is_raw = True
+# The first and third values of the following elements are always US
+# even if the VR is SS (PS3.3 C.7.6.3.1.5, C.11.1, C.11.2).
+# (0... | diff --git a/pydicom/tests/test_filereader.py b/pydicom/tests/test_filereader.py
--- a/pydicom/tests/test_filereader.py
+++ b/pydicom/tests/test_filereader.py
@@ -7,6 +7,7 @@
from io import BytesIO
import os
import shutil
+from struct import unpack
import sys
import tempfile
@@ -631,6 +632,27 @@ def test_dcmread... | ["pydicom/tests/test_filereader.py::TestReader::test_lut_descriptor"] | ["pydicom/tests/test_filereader.py::TestReader::test_empty_numbers_tag", "pydicom/tests/test_filereader.py::TestReader::test_UTF8_filename", "pydicom/tests/test_filereader.py::TestReader::test_RTPlan", "pydicom/tests/test_filereader.py::TestReader::test_RTDose", "pydicom/tests/test_filereader.py::TestReader::test_CT", ... | null | true | 2019-09-28T01:51:58Z | 2 | 18 | 1 | 1,503 | 0 | 0.8 | 1 | 0.7 | 1 | 0.3105 | 83.5815 | ||
3,681 | swe_bench::test::1399 | swe_bench | test | 1,399 | pytest-dev__pytest-5254 | pytest-dev/pytest | pytest-dev/pytest | python | 654d8da9f7ffd7a88e02ae2081ffcb2ca2e765b3 | `pytest.mark.parametrize` does not correctly hide fixtures of the same name (it misses its dependencies)
From https://github.com/smarie/python-pytest-cases/issues/36
This works:
```python
@pytest.fixture(params=['a', 'b'])
def arg(request):
return request.param
@pytest.mark.parametrize("arg", [1])
def test_refer... | diff --git a/src/_pytest/fixtures.py b/src/_pytest/fixtures.py
--- a/src/_pytest/fixtures.py
+++ b/src/_pytest/fixtures.py
@@ -1129,18 +1129,40 @@ def __init__(self, session):
self._nodeid_and_autousenames = [("", self.config.getini("usefixtures"))]
session.config.pluginmanager.register(self, "funcman... | diff --git a/testing/python/fixtures.py b/testing/python/fixtures.py
--- a/testing/python/fixtures.py
+++ b/testing/python/fixtures.py
@@ -3950,3 +3950,46 @@ def fix():
with pytest.raises(pytest.fail.Exception):
assert fix() == 1
+
+
+def test_fixture_param_shadowing(testdir):
+ """Parametrized argum... | ["testing/python/fixtures.py::test_fixture_param_shadowing"] | ["testing/python/fixtures.py::test_getfuncargnames", "testing/python/fixtures.py::TestFillFixtures::test_fillfuncargs_exposed", "testing/python/fixtures.py::TestShowFixtures::test_fixture_disallow_twice", "testing/python/fixtures.py::test_call_fixture_function_error", "testing/python/fixtures.py::TestFillFixtures::test... | null | true | 2019-05-12T23:50:35Z | 2 | 40 | 1 | 1,018 | 0 | 0.8 | 1 | 0.7 | 1 | 0.303 | 83.559 | ||
3,682 | swe_bench::test::964 | swe_bench | test | 964 | matplotlib__matplotlib-20518 | matplotlib/matplotlib | matplotlib/matplotlib | python | 1d129737743d7a1c000367c363cbb890183450bc | Sketch params ignored when using PGF backend
### Bug report
**Bug summary**
Calls to `set_sketch_params()` are ignored by the PGF backend and do not have any influence in the resulting pgf or pdf file.
**Code for reproduction**
```python
#!/usr/bin/env python3
import matplotlib as mpl
import matplotlib.pyplot as plt... | diff --git a/lib/matplotlib/artist.py b/lib/matplotlib/artist.py
--- a/lib/matplotlib/artist.py
+++ b/lib/matplotlib/artist.py
@@ -690,6 +690,9 @@ def set_sketch_params(self, scale=None, length=None, randomness=None):
The scale factor by which the length is shrunken or
expanded (default 16.0)
... | diff --git a/lib/matplotlib/tests/test_backend_pgf.py b/lib/matplotlib/tests/test_backend_pgf.py
--- a/lib/matplotlib/tests/test_backend_pgf.py
+++ b/lib/matplotlib/tests/test_backend_pgf.py
@@ -337,3 +337,30 @@ def test_minus_signs_with_tex(fig_test, fig_ref, texsystem):
mpl.rcParams["pgf.texsystem"] = texsystem
... | ["lib/matplotlib/tests/test_backend_pgf.py::test_sketch_params"] | ["lib/matplotlib/tests/test_backend_pgf.py::test_common_texification[quad_sum:", "lib/matplotlib/tests/test_backend_pgf.py::test_common_texification[no", "lib/matplotlib/tests/test_backend_pgf.py::test_common_texification[with_underscores-with\\\\_underscores]", "lib/matplotlib/tests/test_backend_pgf.py::test_common_te... | null | true | 2021-06-25T09:59:27Z | 2 | 27 | 1 | 1,226 | 0 | 0.8 | 1 | 0.7 | 1 | 0.294333 | 83.533 | ||
3,683 | r2e_gym::train::5733 | r2e_gym | train | 5,733 | scrapy__65c7c05060fd2d1fc161d4904243d5e0b31e202b | scrapy | scrapy/scrapy | python | 65c7c05060fd2d1fc161d4904243d5e0b31e202b | **Title:** `response_status_message` Raises TypeError for Non-Standard HTTP Status Codes
**Description:**
When handling non-standard HTTP status codes, the `response_status_message` function raises a `TypeError` instead of returning a descriptive message.
**Buggy Code Example:**
```python
status = 573
message = resp... | diff --git a/scrapy/utils/response.py b/scrapy/utils/response.py
--- a/scrapy/utils/response.py
+++ b/scrapy/utils/response.py
@@ -47,14 +47,8 @@
def response_status_message(status):
"""Return status code plus status text descriptive message
-
- >>> response_status_message(200)
- '200 OK'
-
- >>> respo... | diff --git a/tests/test_utils_response.py b/tests/test_utils_response.py
--- a/tests/test_utils_response.py
+++ b/tests/test_utils_response.py
@@ -5,7 +5,7 @@
from scrapy.http import Response, TextResponse, HtmlResponse
from scrapy.utils.python import to_bytes
from scrapy.utils.response import (response_httprepr, op... | null | null | namanjain12/scrapy_final:65c7c05060fd2d1fc161d4904243d5e0b31e202b | true | null | 1 | 8 | null | 633 | 0 | 0.75 | 1 | 0.75 | 1 | 0.132167 | 83.5215 | ||
3,684 | swe_bench::dev::166 | swe_bench | dev | 166 | pyvista__pyvista-4315 | pyvista/pyvista | pyvista/pyvista | python | db6ee8dd4a747b8864caae36c5d05883976a3ae5 | Rectilinear grid does not allow Sequences as inputs
### Describe the bug, what's wrong, and what you expected.
Rectilinear grid gives an error when `Sequence`s are passed in, but `ndarray` are ok.
### Steps to reproduce the bug.
This doesn't work
```python
import pyvista as pv
pv.RectilinearGrid([0, 1], [0, 1], [0, ... | diff --git a/pyvista/core/grid.py b/pyvista/core/grid.py
--- a/pyvista/core/grid.py
+++ b/pyvista/core/grid.py
@@ -135,23 +135,30 @@ def __init__(self, *args, check_duplicates=False, deep=False, **kwargs):
self.shallow_copy(args[0])
elif isinstance(args[0], (str, pathlib.Path)):
... | diff --git a/tests/test_grid.py b/tests/test_grid.py
--- a/tests/test_grid.py
+++ b/tests/test_grid.py
@@ -735,6 +735,21 @@ def test_create_rectilinear_grid_from_specs():
assert grid.n_cells == 9 * 3 * 19
assert grid.n_points == 10 * 4 * 20
assert grid.bounds == (-10.0, 8.0, -10.0, 5.0, -10.0, 9.0)
+
+ ... | ["tests/test_grid.py::test_create_rectilinear_grid_from_specs"] | ["tests/test_grid.py::test_volume", "tests/test_grid.py::test_init_from_polydata", "tests/test_grid.py::test_init_from_structured", "tests/test_grid.py::test_init_from_unstructured", "tests/test_grid.py::test_init_from_numpy_arrays", "tests/test_grid.py::test_init_bad_input", "tests/test_grid.py::test_init_from_arrays[... | null | true | 2023-04-21T13:47:31Z | 1 | 21 | 1 | 1,300 | 0 | 0.8 | 1 | 0.7 | 1 | 0.286667 | 83.51 | ||
3,685 | swe_bench::test::1734 | swe_bench | test | 1,734 | sphinx-doc__sphinx-10427 | sphinx-doc/sphinx | sphinx-doc/sphinx | python | f58771c093a1d5c692eecd6fdeddf60959b174bd | `autodoc_preserve_defaults` doesn't work on class methods
### Describe the bug
Default values for class methods are rendered as their `__repr__`, even with `autodoc_preserve_defaults = True` in conf.py.
### How to Reproduce
Extract the [attached example](https://github.com/sphinx-doc/sphinx/files/8620112/classmethod... | diff --git a/sphinx/ext/autodoc/preserve_defaults.py b/sphinx/ext/autodoc/preserve_defaults.py
--- a/sphinx/ext/autodoc/preserve_defaults.py
+++ b/sphinx/ext/autodoc/preserve_defaults.py
@@ -7,6 +7,7 @@
import ast
import inspect
import sys
+from inspect import Parameter
from typing import Any, Dict, List, Optional
... | diff --git a/tests/roots/test-ext-autodoc/target/preserve_defaults.py b/tests/roots/test-ext-autodoc/target/preserve_defaults.py
--- a/tests/roots/test-ext-autodoc/target/preserve_defaults.py
+++ b/tests/roots/test-ext-autodoc/target/preserve_defaults.py
@@ -22,3 +22,9 @@ def meth(self, name: str = CONSTANT, sentinel: ... | ["tests/test_ext_autodoc_preserve_defaults.py::test_preserve_defaults"] | [] | null | true | 2022-05-07T10:54:05Z | 1 | 13 | 1 | 1,376 | 0 | 0.8 | 1 | 0.7 | 1 | 0.272667 | 83.468 | ||
3,686 | swe_bench::test::1113 | swe_bench | test | 1,113 | matplotlib__matplotlib-26223 | matplotlib/matplotlib | matplotlib/matplotlib | python | 9ced0c0347d270886f162746e071b2b8b60d7a67 | [Bug]: pcolormesh writing to input mask
### Bug summary
When `pcolormesh` receives a masked array, it seems to be writing back to the mask. Since numpy 1.24 this now causes `pcolormesh` to fail if the mask is read-only.
### Code for reproduction
```python
import matplotlib.pyplot as plt
import numpy as np
data = n... | Hi @rcomer, could I try to work on this issue?
@Rylie-W we don't assign issues, so feel free to go for it 😄 Make sure to ping if you have questions. | diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py
--- a/lib/matplotlib/axes/_axes.py
+++ b/lib/matplotlib/axes/_axes.py
@@ -5764,7 +5764,7 @@ def _pcolorargs(self, funcname, *args, shading='auto', **kwargs):
else:
X, Y = np.meshgrid(np.arange(ncols + 1), np.arange(nr... | diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py
--- a/lib/matplotlib/tests/test_axes.py
+++ b/lib/matplotlib/tests/test_axes.py
@@ -1479,6 +1479,23 @@ def test_pcolorargs():
ax.pcolormesh(X, Y, Z, shading='auto')
+def test_pcolorargs_with_read_only():
+ x = np.arange(6... | ["lib/matplotlib/tests/test_axes.py::test_pcolorargs_with_read_only"] | ["lib/matplotlib/tests/test_axes.py::test_invisible_axes[png]", "lib/matplotlib/tests/test_axes.py::test_get_labels", "lib/matplotlib/tests/test_axes.py::test_repr", "lib/matplotlib/tests/test_axes.py::test_label_loc_vertical[png]", "lib/matplotlib/tests/test_axes.py::test_label_loc_vertical[pdf]", "lib/matplotlib/test... | null | true | 2023-06-30T13:53:44Z | 1 | 4 | 1 | 3,075 | 0 | 0.8 | 1 | 0.77 | 0.8 | 0.513333 | 83.435 | |
3,687 | swe_bench::test::1241 | swe_bench | test | 1,241 | pydata__xarray-4423 | pydata/xarray | pydata/xarray | python | 5296ed18272a856d478fbbb3d3253205508d1c2d | da.sum(min_count=1) errors for integer data
**What happened**:
`da.sum(min_count=1)` returns a `TypeError` if `da` has an integer dtype. Of course min_count is not necessary for integer data as it cannot contain `NaN`.
**What you expected to happen**:
`min_count` should be ignored
**Minimal Complete Verifiable Examp... | The same happens for `skipna=True`:
```python
xr.DataArray([1.]).sum(skipna=False, min_count=1)
```
I think `sum` is defined here:
https://github.com/pydata/xarray/blob/6c1203afbbeb25251705a3bf19c7a7bbe5c0bbf4/xarray/core/duck_array_ops.py#L346
but I am not sure how to best get rid of the unnecessary keyword ... | diff --git a/xarray/core/duck_array_ops.py b/xarray/core/duck_array_ops.py
--- a/xarray/core/duck_array_ops.py
+++ b/xarray/core/duck_array_ops.py
@@ -325,6 +325,8 @@ def f(values, axis=None, skipna=None, **kwargs):
nanname = "nan" + name
func = getattr(nanops, nanname)
else:
+ ... | diff --git a/xarray/tests/test_duck_array_ops.py b/xarray/tests/test_duck_array_ops.py
--- a/xarray/tests/test_duck_array_ops.py
+++ b/xarray/tests/test_duck_array_ops.py
@@ -580,15 +580,17 @@ def test_dask_gradient(axis, edge_order):
@pytest.mark.parametrize("dask", [False, True])
@pytest.mark.parametrize("func", ["... | ["xarray/tests/test_duck_array_ops.py::test_min_count[False-True-None-sum-False-float-1]", "xarray/tests/test_duck_array_ops.py::test_min_count[False-True-None-sum-False-float-2]", "xarray/tests/test_duck_array_ops.py::test_min_count[False-True-None-sum-False-int-1]", "xarray/tests/test_duck_array_ops.py::test_min_coun... | ["xarray/tests/test_duck_array_ops.py::TestOps::test_first", "xarray/tests/test_duck_array_ops.py::TestOps::test_last", "xarray/tests/test_duck_array_ops.py::TestOps::test_count", "xarray/tests/test_duck_array_ops.py::TestOps::test_where_type_promotion", "xarray/tests/test_duck_array_ops.py::TestOps::test_stack_type_pr... | null | true | 2020-09-14T14:04:49Z | 1 | 4 | 64 | 3,266 | 0 | 0.8 | 1 | 0.77 | 0.8 | 0.513333 | 83.435 | |
3,688 | swe_bench::test::1907 | swe_bench | test | 1,907 | sphinx-doc__sphinx-9999 | sphinx-doc/sphinx | sphinx-doc/sphinx | python | 4e8bca2f2ffd6e3f1a4de4403de9e4600497fc61 | Latex: terms are not separated by a newline
### Describe the bug
I use simple indentations for terms and their explanation:
Example:
```rst
Listing:
:samp:`{file}.cc` :samp:`{file}.cp` :samp:`{file}.cxx` :samp:`{file}.cpp` :samp:`{file}.CPP` :samp:`{file}.c++` :samp:`{file}.C`
C++ source code that must be preproce... | I don't think this is not a bug. It's not promised a term and description of the definition list are displayed as line-folded.
But I agree it's better to fold them as HTML does.
Great, thanks for the suggested pull request!
@marxin It may take some time before a solution is found because the natural #9988 approach b... | diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py
--- a/sphinx/writers/latex.py
+++ b/sphinx/writers/latex.py
@@ -1092,8 +1092,8 @@ def visit_term(self, node: Element) -> None:
ctx = r'\phantomsection'
for node_id in node['ids']:
ctx += self.hypertarget(node_id, a... | diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py
--- a/tests/test_build_latex.py
+++ b/tests/test_build_latex.py
@@ -834,18 +834,18 @@ def test_latex_show_urls_is_inline(app, status, warning):
'Footnote inside footnote\n%\n\\end{footnotetext}\\ignorespaces') in result
assert ('\\sphi... | ["tests/test_build_latex.py::test_latex_show_urls_is_inline", "tests/test_build_latex.py::test_latex_show_urls_is_footnote", "tests/test_build_latex.py::test_latex_show_urls_is_no", "tests/test_build_latex.py::test_latex_show_urls_footnote_and_substitutions", "tests/test_build_latex.py::test_latex_glossary"] | ["tests/test_build_latex.py::test_writer", "tests/test_build_latex.py::test_latex_warnings", "tests/test_build_latex.py::test_latex_basic", "tests/test_build_latex.py::test_latex_basic_manual", "tests/test_build_latex.py::test_latex_basic_howto", "tests/test_build_latex.py::test_latex_basic_manual_ja", "tests/test_buil... | null | true | 2021-12-20T18:28:24Z | 1 | 4 | 5 | 5,902 | 0 | 0.8 | 1 | 0.77 | 0.8 | 0.513333 | 83.435 | |
3,689 | swe_bench::test::1240 | swe_bench | test | 1,240 | pydata__xarray-4419 | pydata/xarray | pydata/xarray | python | 2ed6d57fa5e14e87e83c8194e619538f6edcd90a | concat changes variable order
#### Code Sample, a copy-pastable example if possible
A "Minimal, Complete and Verifiable Example" will make it much easier for maintainers to help you:
http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports
- Case 1: Creation of Dataset without Coordinates
```python
data = n... | Xref: [Gitter Chat](https://gitter.im/pydata/xarray?at=5c88ef25d3b35423cbb02afc)
This has also implications for the output using `.to_netcdf()`. If we read a netcdf dataset (same structure as above) with `xr.open_dataset` and then do the above `xr.concat` and save the resulting dataset with `.to_netcdf` then the dimens... | diff --git a/xarray/core/concat.py b/xarray/core/concat.py
--- a/xarray/core/concat.py
+++ b/xarray/core/concat.py
@@ -463,6 +463,9 @@ def ensure_common_dims(vars):
combined = concat_vars(vars, dim, positions)
assert isinstance(combined, Variable)
result_vars[k] = combined
+ ... | diff --git a/xarray/tests/test_concat.py b/xarray/tests/test_concat.py
--- a/xarray/tests/test_concat.py
+++ b/xarray/tests/test_concat.py
@@ -558,3 +558,36 @@ def test_concat_merge_single_non_dim_coord():
for coords in ["different", "all"]:
with raises_regex(ValueError, "'y' not present in all datasets")... | ["xarray/tests/test_concat.py::test_concat_preserve_coordinate_order"] | ["xarray/tests/test_concat.py::test_concat_compat", "xarray/tests/test_concat.py::TestConcatDataset::test_concat_simple[dim1-different]", "xarray/tests/test_concat.py::TestConcatDataset::test_concat_simple[dim1-minimal]", "xarray/tests/test_concat.py::TestConcatDataset::test_concat_simple[dim2-different]", "xarray/test... | null | true | 2020-09-14T07:13:33Z | 1 | 3 | 1 | 4,949 | 0 | 0.8 | 1 | 0.77 | 0.8 | 0.51 | 83.425 | |
3,690 | swe_bench::test::1424 | swe_bench | test | 1,424 | pytest-dev__pytest-6368 | pytest-dev/pytest | pytest-dev/pytest | python | 197c99634551401d7e39be04fdae53350c9cf198 | Module re-write doesn't work with non dist-info based installations
More context behind this issue is available at: https://github.com/pytest-dev/pytest-mock/issues/167
TL;DR:
The function `_iter_rewritable_modules` doesn't detect modules that can be rewritten, if they are installed by a method which doesn't adopt th... | Copying the output from https://github.com/pytest-dev/pytest-mock/issues/167#issuecomment-548662953:
Output from dist-info:
```
file: pytest_mock-1.11.3.dev2+g1c5e8e9.d20191031.dist-info/INSTALLER; module_or_pkg_name: []
file: pytest_mock-1.11.3.dev2+g1c5e8e9.d20191031.dist-info/LICENSE; module_or_pkg_name: []
... | diff --git a/src/_pytest/config/__init__.py b/src/_pytest/config/__init__.py
--- a/src/_pytest/config/__init__.py
+++ b/src/_pytest/config/__init__.py
@@ -622,16 +622,68 @@ def __repr__(self):
def _iter_rewritable_modules(package_files):
+ """
+ Given an iterable of file names in a source distribution, retur... | diff --git a/testing/test_config.py b/testing/test_config.py
--- a/testing/test_config.py
+++ b/testing/test_config.py
@@ -431,15 +431,21 @@ def test_confcutdir_check_isdir(self, testdir):
@pytest.mark.parametrize(
"names, expected",
[
+ # dist-info based distributions root are files a... | ["testing/test_config.py::TestConfigAPI::test_iter_rewritable_modules[names1-expected1]", "testing/test_config.py::TestConfigAPI::test_iter_rewritable_modules[names5-expected5]", "testing/test_config.py::TestConfigAPI::test_iter_rewritable_modules[names6-expected6]", "testing/test_config.py::TestConfigAPI::test_iter_re... | ["testing/test_config.py::TestParseIni::test_getcfg_empty_path", "testing/test_config.py::TestConfigAPI::test_iter_rewritable_modules[names0-expected0]", "testing/test_config.py::TestConfigAPI::test_iter_rewritable_modules[names2-expected2]", "testing/test_config.py::TestConfigAPI::test_iter_rewritable_modules[names3-e... | null | true | 2019-12-25T11:47:59Z | 1 | 54 | 5 | 1,038 | 0.04 | 0.8 | 1 | 0.7 | 1 | 0.353 | 83.3948 | |
3,691 | swe_bench::test::1263 | swe_bench | test | 1,263 | pydata__xarray-5033 | pydata/xarray | pydata/xarray | python | f94de6b4504482ab206f93ec800608f2e1f47b19 | Simplify adding custom backends
**Is your feature request related to a problem? Please describe.**
I've been working on opening custom hdf formats in xarray, reading up on the apiv2 it is currently only possible to declare a new external plugin in setup.py but that doesn't seem easy or intuitive to me.
**Describe the... | diff --git a/xarray/backends/api.py b/xarray/backends/api.py
--- a/xarray/backends/api.py
+++ b/xarray/backends/api.py
@@ -375,10 +375,11 @@ def open_dataset(
scipy.io.netcdf (only netCDF3 supported). Byte-strings or file-like
objects are opened by scipy.io.netcdf (netCDF3) or h5py (netCDF4/HDF).
... | diff --git a/xarray/tests/test_backends_api.py b/xarray/tests/test_backends_api.py
--- a/xarray/tests/test_backends_api.py
+++ b/xarray/tests/test_backends_api.py
@@ -1,6 +1,9 @@
+import numpy as np
+
+import xarray as xr
from xarray.backends.api import _get_default_engine
-from . import requires_netCDF4, requires_s... | ["xarray/tests/test_backends_api.py::test_custom_engine"] | ["xarray/tests/test_backends_api.py::test__get_default_engine"] | null | true | 2021-03-13T22:12:39Z | 2 | 31 | 1 | 801 | 0 | 0.8 | 1 | 0.7 | 1 | 0.236833 | 83.3605 | ||
3,692 | swe_bench::test::1883 | swe_bench | test | 1,883 | sphinx-doc__sphinx-9386 | sphinx-doc/sphinx | sphinx-doc/sphinx | python | 805fd98e00229b419106063e5fd1566ca4bd938f | Autodoc still using typehint types in properties
**Describe the bug**
Despite `autodoc_typehints` being set to `none`, properties have type hints rendered in the output.
**To Reproduce**
Steps to reproduce the behavior. Download the zip below and go to `docs` then run `make html`
**Expected behavior**
No type hints i... | diff --git a/sphinx/ext/autodoc/__init__.py b/sphinx/ext/autodoc/__init__.py
--- a/sphinx/ext/autodoc/__init__.py
+++ b/sphinx/ext/autodoc/__init__.py
@@ -1982,11 +1982,13 @@ def add_directive_header(self, sig: str) -> None:
self.add_line(' :annotation: %s' % self.options.annotation,
... | diff --git a/tests/roots/test-ext-autodoc/target/typehints.py b/tests/roots/test-ext-autodoc/target/typehints.py
--- a/tests/roots/test-ext-autodoc/target/typehints.py
+++ b/tests/roots/test-ext-autodoc/target/typehints.py
@@ -1,5 +1,8 @@
from typing import Any, Tuple, Union
+CONST1: int
+CONST2: int = 1
+
def in... | ["tests/test_ext_autodoc_configs.py::test_autodoc_typehints_none"] | ["tests/test_ext_autodoc_configs.py::test_autoclass_content_class", "tests/test_ext_autodoc_configs.py::test_autoclass_content_init", "tests/test_ext_autodoc_configs.py::test_autodoc_class_signature_mixed", "tests/test_ext_autodoc_configs.py::test_autodoc_class_signature_separated_init", "tests/test_ext_autodoc_configs... | null | true | 2021-06-29T12:49:25Z | 1 | 26 | 1 | 894 | 0 | 0.8 | 1 | 0.7 | 1 | 0.235667 | 83.357 | ||
3,693 | swe_bench::test::1610 | swe_bench | test | 1,610 | scikit-learn__scikit-learn-13618 | scikit-learn/scikit-learn | scikit-learn/scikit-learn | python | 13981bdce97ab2dd49b6b8707f3f27b5c148b9c0 | Allow setting of initial hyperparameters of BayesianRidge
#### Description
I propose to be able to set initial values of the hyperparameters (alpha, lambda) in BayesianRidge().fit.
I tried to fit a sinusoidal curve with polynomials by Bayesian ridge regression, but the default initial values did not work well (lef... | Please submit a pull request rather than posting code so that we can see
the differences more clearly and comment on them. If you are not
comfortable doing that, please let us know.
Thank you jnothman
I try it. | diff --git a/examples/linear_model/plot_bayesian_ridge_curvefit.py b/examples/linear_model/plot_bayesian_ridge_curvefit.py
new file mode 100755
--- /dev/null
+++ b/examples/linear_model/plot_bayesian_ridge_curvefit.py
@@ -0,0 +1,86 @@
+"""
+============================================
+Curve Fitting with Bayesian Ridge... | diff --git a/sklearn/linear_model/tests/test_bayes.py b/sklearn/linear_model/tests/test_bayes.py
--- a/sklearn/linear_model/tests/test_bayes.py
+++ b/sklearn/linear_model/tests/test_bayes.py
@@ -125,6 +125,19 @@ def test_toy_bayesian_ridge_object():
assert_array_almost_equal(clf.predict(test), [1, 3, 4], 2)
+d... | ["sklearn/linear_model/tests/test_bayes.py::test_bayesian_initial_params"] | ["sklearn/linear_model/tests/test_bayes.py::test_n_iter", "sklearn/linear_model/tests/test_bayes.py::test_bayesian_ridge_scores", "sklearn/linear_model/tests/test_bayes.py::test_bayesian_ridge_score_values", "sklearn/linear_model/tests/test_bayes.py::test_bayesian_ridge_parameter", "sklearn/linear_model/tests/test_baye... | null | true | 2019-04-11T11:04:24Z | 2 | 121 | 1 | 7,573 | 0.045455 | 0.8 | 1 | 0.65 | 1 | 0.903333 | 83.350568 | |
3,694 | swe_bench::test::1860 | swe_bench | test | 1,860 | sphinx-doc__sphinx-9015 | sphinx-doc/sphinx | sphinx-doc/sphinx | python | 9f62b9cccbd69d250ff84a3cfb346725476f83a8 | Property gets linked instead of external type in class with inline type annotations
**Describe the bug**
The project is using autodoc with inline Python type annotations. Given the following class (snipped to the relevant parts):
```py
from types import TracebackType
class ExceptionInfo(Generic[E]):
@classmethod... | Unfortunately, the real name of `types.TracebackType` is `traceback`.
```
$ python
Python 3.9.1 (default, Dec 18 2020, 00:18:40)
[Clang 11.0.3 (clang-1103.0.32.59)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from types import TracebackType
>>> TracebackType
<class 'tr... | diff --git a/sphinx/util/typing.py b/sphinx/util/typing.py
--- a/sphinx/util/typing.py
+++ b/sphinx/util/typing.py
@@ -11,6 +11,7 @@
import sys
import typing
from struct import Struct
+from types import TracebackType
from typing import Any, Callable, Dict, Generator, List, Optional, Tuple, TypeVar, Union
from do... | diff --git a/tests/test_util_typing.py b/tests/test_util_typing.py
--- a/tests/test_util_typing.py
+++ b/tests/test_util_typing.py
@@ -11,6 +11,7 @@
import sys
from numbers import Integral
from struct import Struct
+from types import TracebackType
from typing import (Any, Callable, Dict, Generator, List, NewType, O... | ["tests/test_util_typing.py::test_restify", "tests/test_util_typing.py::test_stringify"] | ["tests/test_util_typing.py::test_restify_type_hints_containers", "tests/test_util_typing.py::test_restify_type_hints_Callable", "tests/test_util_typing.py::test_restify_type_hints_Union", "tests/test_util_typing.py::test_restify_type_hints_typevars", "tests/test_util_typing.py::test_restify_type_hints_custom_class", "... | null | true | 2021-03-17T14:38:22Z | 1 | 18 | 2 | 1,955 | 0.111111 | 0.8 | 1 | 0.85 | 1 | 0.385833 | 83.321667 | |
3,695 | swe_bench::test::1560 | swe_bench | test | 1,560 | scikit-learn__scikit-learn-12733 | scikit-learn/scikit-learn | scikit-learn/scikit-learn | python | cd8fe168fbc2c5cfe1cb11a1cfbd7a1b7aec0acc | train_test_split excepting negative integers and floats
The following minimal example doesn't fail:
```python
from sklearn.model_selection import train_test_split
l = list(range(100))
train_test_split(l, test_size=-2)
train_test_split(l, test_size=-2.)
```
Is it a bug or indented feature? According to the docs neithe... | diff --git a/sklearn/model_selection/_split.py b/sklearn/model_selection/_split.py
--- a/sklearn/model_selection/_split.py
+++ b/sklearn/model_selection/_split.py
@@ -1794,23 +1794,25 @@ def _validate_shuffle_split_init(test_size, train_size):
if test_size is not None:
if np.asarray(test_size).dtype.kin... | diff --git a/sklearn/model_selection/tests/test_split.py b/sklearn/model_selection/tests/test_split.py
--- a/sklearn/model_selection/tests/test_split.py
+++ b/sklearn/model_selection/tests/test_split.py
@@ -1006,27 +1006,60 @@ def test_repeated_stratified_kfold_determinstic_split():
def test_train_test_split_error... | ["sklearn/model_selection/tests/test_split.py::test_train_test_split_errors", "sklearn/model_selection/tests/test_split.py::test_train_test_split_invalid_sizes1[1.2-0.8]", "sklearn/model_selection/tests/test_split.py::test_train_test_split_invalid_sizes1[1.0-0.8]", "sklearn/model_selection/tests/test_split.py::test_tra... | ["sklearn/model_selection/tests/test_split.py::test_cross_validator_with_default_params", "sklearn/model_selection/tests/test_split.py::test_2d_y", "sklearn/model_selection/tests/test_split.py::test_kfold_valueerrors", "sklearn/model_selection/tests/test_split.py::test_kfold_indices", "sklearn/model_selection/tests/tes... | null | true | 2018-12-06T20:40:48Z | 1 | 40 | 15 | 528 | 0 | 0.8 | 1 | 0.7 | 1 | 0.221333 | 83.314 | ||
3,696 | swe_bench::test::1733 | swe_bench | test | 1,733 | sphinx-doc__sphinx-10360 | sphinx-doc/sphinx | sphinx-doc/sphinx | python | d951e55bc3419dbda809ed0aca17addeed8e9e30 | enum value with attribute misparsed
### Describe the bug
In C/C++, `enum` values can have an attribute like `__attribute__((__deprecated__))`, but these do not get properly parsed.
### How to Reproduce
Here is an example where this occurred. This enum has a deprecated value `JXL_TYPE_BOOLEAN`. The macro `JXL_DEPRECA... | diff --git a/sphinx/domains/c.py b/sphinx/domains/c.py
--- a/sphinx/domains/c.py
+++ b/sphinx/domains/c.py
@@ -21,8 +21,8 @@
from sphinx.transforms import SphinxTransform
from sphinx.transforms.post_transforms import ReferencesResolver
from sphinx.util import logging
-from sphinx.util.cfamily import (ASTAttribute, A... | diff --git a/tests/test_domain_c.py b/tests/test_domain_c.py
--- a/tests/test_domain_c.py
+++ b/tests/test_domain_c.py
@@ -573,13 +573,17 @@ def test_domain_c_ast_attributes():
output='__attribute__(()) static inline void f()')
check('function', '[[attr1]] [[attr2]] void f()', {1: 'f'})
# position:... | ["tests/test_domain_c.py::test_domain_c_ast_attributes", "tests/test_domain_cpp.py::test_domain_cpp_ast_attributes"] | ["tests/test_domain_c.py::test_domain_c_ast_expressions", "tests/test_domain_c.py::test_domain_c_ast_fundamental_types", "tests/test_domain_c.py::test_domain_c_ast_type_definitions", "tests/test_domain_c.py::test_domain_c_ast_macro_definitions", "tests/test_domain_c.py::test_domain_c_ast_member_definitions", "tests/tes... | null | true | 2022-04-17T15:30:43Z | 3 | 240 | 2 | 1,632 | 0 | 0.8 | 1 | 0.85 | 0.75 | 0.772 | 83.3035 | ||
3,697 | swe_bench::test::1738 | swe_bench | test | 1,738 | sphinx-doc__sphinx-10457 | sphinx-doc/sphinx | sphinx-doc/sphinx | python | 34d6d3bc8d24b5213d0978e6c4d839340aaafbcd | sphinx.domain.python.filter_meta_fields fails to remove more than one meta-field from a field_list
### Describe the bug
If a field list contains more then one "meta"-field, the generated documentation shows all but the first meta-field.
It is a classical coding bug: the function sphinx.domain.python.filter_meta_fields... | diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py
--- a/sphinx/domains/python.py
+++ b/sphinx/domains/python.py
@@ -1068,11 +1068,11 @@ def filter_meta_fields(app: Sphinx, domain: str, objtype: str, content: Element)
for node in content:
if isinstance(node, nodes.field_list):
f... | 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
@@ -999,7 +999,9 @@ def test_info_field_list(app):
text = (".. py:module:: example\n"
".. py:class:: Class\n"
"\n"
+ " :meta blah: this meta-field must n... | ["tests/test_domain_py.py::test_info_field_list"] | ["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 | 2022-05-16T14:08:08Z | 1 | 4 | 1 | 2,137 | 0 | 0.8 | 1 | 0.85 | 0.8 | 0.3695 | 83.2835 | ||
3,698 | swe_bench::test::82 | swe_bench | test | 82 | astropy__astropy-7746 | astropy/astropy | astropy/astropy | python | d5bd3f68bb6d5ce3a61bdce9883ee750d1afade5 | Issue when passing empty lists/arrays to WCS transformations
The following should not fail but instead should return empty lists/arrays:
```
In [1]: from astropy.wcs import WCS
In [2]: wcs = WCS('2MASS_h.fits')
In [3]: wcs.wcs_pix2world([], [], 0)
---------------------------------------------------------------------... | diff --git a/astropy/wcs/wcs.py b/astropy/wcs/wcs.py
--- a/astropy/wcs/wcs.py
+++ b/astropy/wcs/wcs.py
@@ -1212,6 +1212,9 @@ def _array_converter(self, func, sky, *args, ra_dec_order=False):
"""
def _return_list_of_arrays(axes, origin):
+ if any([x.size == 0 for x in axes]):
+ ... | diff --git a/astropy/wcs/tests/test_wcs.py b/astropy/wcs/tests/test_wcs.py
--- a/astropy/wcs/tests/test_wcs.py
+++ b/astropy/wcs/tests/test_wcs.py
@@ -1093,3 +1093,21 @@ def test_keyedsip():
assert isinstance( w.sip, wcs.Sip )
assert w.sip.crpix[0] == 2048
assert w.sip.crpix[1] == 1026
+
+
+def test_zero... | ["astropy/wcs/tests/test_wcs.py::test_zero_size_input"] | ["astropy/wcs/tests/test_wcs.py::TestMaps::test_consistency", "astropy/wcs/tests/test_wcs.py::TestMaps::test_maps", "astropy/wcs/tests/test_wcs.py::TestSpectra::test_consistency", "astropy/wcs/tests/test_wcs.py::TestSpectra::test_spectra", "astropy/wcs/tests/test_wcs.py::test_fixes", "astropy/wcs/tests/test_wcs.py::tes... | null | true | 2018-08-20T14:07:20Z | 1 | 5 | 1 | 2,007 | 0 | 0.8 | 1 | 0.85 | 0.8 | 0.351167 | 83.2285 | ||
3,699 | swe_bench::dev::212 | swe_bench | dev | 212 | sqlfluff__sqlfluff-4753 | sqlfluff/sqlfluff | sqlfluff/sqlfluff | python | 24178a589c279220c6605324c446122d15ebc3fb | layout.end-of-file is the only rule in kebab case
### Search before asking
- [X] I searched the [issues](https://github.com/sqlfluff/sqlfluff/issues) and found no similar issues.
### What Happened
Our rules are all in `snake_case`, except for `layout.end-of-file`
### Expected Behaviour
All rules should be in snake... | diff --git a/docs/generate-rule-docs.py b/docs/generate-rule-docs.py
--- a/docs/generate-rule-docs.py
+++ b/docs/generate-rule-docs.py
@@ -41,8 +41,9 @@
# Set the bundle name to the ref.
_bundle_name = f":ref:`bundle_{bundle}`"
for idx, rule in enumerate(rule_bundles[bundle]):
- al... | diff --git a/test/api/simple_test.py b/test/api/simple_test.py
--- a/test/api/simple_test.py
+++ b/test/api/simple_test.py
@@ -95,7 +95,7 @@
"line_no": 1,
"line_pos": 41,
"description": "Files must end with a single trailing newline.",
- "name": "layout.end-of-file",
+ "name": "... | ["test/api/simple_test.py::test__api__lint_string"] | ["test/api/simple_test.py::test__api__lint_string_without_violations", "test/api/simple_test.py::test__api__lint_string_specific", "test/api/simple_test.py::test__api__lint_string_specific_single", "test/api/simple_test.py::test__api__lint_string_specific_exclude", "test/api/simple_test.py::test__api__lint_string_speci... | null | true | 2023-04-14T12:49:53Z | 2 | 20 | 1 | 699 | 0 | 0.8 | 1 | 0.7 | 1 | 0.183167 | 83.1995 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.