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
4,400
swe_smith::train::22726
swe_smith
train
22,726
graphql-python__graphene.82903263.combine_module__m7kvptyg
swesmith/graphql-python__graphene.82903263
graphql-python/graphene
python
null
# Incorrect type definitions in IterableConnectionField and SimpleGlobalIDType After upgrading to the latest version, our GraphQL queries that use relay connections are failing. The issue appears to be related to incorrect type definitions in the relay connection implementation. ## Issue Description We're experienci...
diff --git a/graphene/relay/connection.py b/graphene/relay/connection.py index cc7d2da..3bdf90c 100644 --- a/graphene/relay/connection.py +++ b/graphene/relay/connection.py @@ -139,10 +139,10 @@ def connection_adapter(cls, edges, pageInfo): class IterableConnectionField(Field): def __init__(self, type_, *args, ...
["examples/starwars_relay/tests/test_connections.py::test_correct_fetch_first_ship_rebels", "examples/starwars_relay/tests/test_objectidentification.py::test_str_schema", "graphene/relay/tests/test_connection.py::test_connectionfield", "graphene/relay/tests/test_connection.py::test_connectionfield_custom_args", "graphe...
["examples/starwars/tests/test_query.py::test_hero_name_query", "examples/starwars/tests/test_query.py::test_hero_name_and_friends_query", "examples/starwars/tests/test_query.py::test_nested_query", "examples/starwars/tests/test_query.py::test_fetch_luke_query", "examples/starwars/tests/test_query.py::test_fetch_some_i...
jyangballin/swesmith.x86_64.graphql-python_1776_graphene.82903263
true
null
2
14
26
2,148
0
0.6
1
0.75
1
0.404667
81.489
4,401
swe_smith::train::28061
swe_smith
train
28,061
jsvine__pdfplumber.02ff4313.lm_rewrite__opilcf85
swesmith/jsvine__pdfplumber.02ff4313
jsvine/pdfplumber
python
null
### Issue: `cluster_objects` Function Fails with TypeError #### Description The `cluster_objects` function seems to be encountering a `TypeError` when attempting to cluster objects based on a specified attribute or key. This issue arises when the function is used with non-numeric data types, such as strings or dictio...
diff --git a/pdfplumber/utils/clustering.py b/pdfplumber/utils/clustering.py index b65b4d5..c1c7cdf 100644 --- a/pdfplumber/utils/clustering.py +++ b/pdfplumber/utils/clustering.py @@ -6,25 +6,38 @@ from typing import Any, Callable, Dict, Iterable, List, Tuple, TypeVar, Union from .._typing import T_num, T_obj -de...
["tests/test_utils.py::Test::test_cluster_objects"]
["tests/test_basics.py::Test::test_annots", "tests/test_basics.py::Test::test_annots_cropped", "tests/test_basics.py::Test::test_annots_rotated", "tests/test_basics.py::Test::test_bad_fileobj", "tests/test_basics.py::Test::test_colors", "tests/test_basics.py::Test::test_crop_and_filter", "tests/test_basics.py::Test::te...
jyangballin/swesmith.x86_64.jsvine_1776_pdfplumber.02ff4313
true
null
1
49
1
1,446
0
0.6
1
0.75
1
0.404333
81.488
4,402
swe_smith::train::1917
swe_smith
train
1,917
agronholm__typeguard.b6a7e438.func_pm_remove_cond__ougx00zf
swesmith/agronholm__typeguard.b6a7e438
agronholm/typeguard
python
null
Type annotation transformation broken for subscripted types When using type annotations with subscripts (like `list[SomeType]`, `Union[Type1, Type2]`, etc.), the type checking instrumentation is not being applied correctly. The transformer appears to be skipping the processing of subscripted type annotations entirely....
diff --git a/src/typeguard/_transformer.py b/src/typeguard/_transformer.py index 25696a5..c45ff91 100644 --- a/src/typeguard/_transformer.py +++ b/src/typeguard/_transformer.py @@ -404,61 +404,7 @@ class AnnotationTransformer(NodeTransformer): if self._memo.is_ignored_name(node.value): return None...
["tests/test_instrumentation.py::TestGuardedType::test_subscript_nested[typechecked]", "tests/test_instrumentation.py::TestGuardedType::test_subscript_nested[importhook]", "tests/test_transformer.py::test_any_in_union", "tests/test_transformer.py::TestTypecheckingImport::test_collection_parameter", "tests/test_transfor...
["tests/mypy/test_type_annotations.py::test_positive", "tests/mypy/test_type_annotations.py::test_negative", "tests/test_checkers.py::TestAnyStr::test_valid[str]", "tests/test_checkers.py::TestAnyStr::test_valid[bytes]", "tests/test_checkers.py::TestAnyStr::test_bad_type", "tests/test_checkers.py::TestBytesLike::test_v...
jyangballin/swesmith.x86_64.agronholm_1776_typeguard.b6a7e438
true
null
1
54
8
1,346
0
0.6
1
0.75
1
0.404333
81.488
4,403
swe_bench::test::1509
swe_bench
test
1,509
scikit-learn__scikit-learn-10577
scikit-learn/scikit-learn
scikit-learn/scikit-learn
python
b90661d6a46aa3619d3eec94d5281f5888add501
Allow n_samples to be a tuple in make_blobs I'd like make_blobs to accept lists or tuples for n_samples to generate imbalanced classes. Could be used here for example: http://scikit-learn.org/dev/auto_examples/svm/plot_separating_hyperplane_unbalanced.html#sphx-glr-auto-examples-svm-plot-separating-hyperplane-unbalanc...
@amueller You mean something like `make_blobs(n_samples=[50,30,20])` for example? I am working on this.
diff --git a/examples/svm/plot_separating_hyperplane_unbalanced.py b/examples/svm/plot_separating_hyperplane_unbalanced.py --- a/examples/svm/plot_separating_hyperplane_unbalanced.py +++ b/examples/svm/plot_separating_hyperplane_unbalanced.py @@ -29,14 +29,17 @@ import numpy as np import matplotlib.pyplot as plt fro...
diff --git a/sklearn/datasets/tests/test_samples_generator.py b/sklearn/datasets/tests/test_samples_generator.py --- a/sklearn/datasets/tests/test_samples_generator.py +++ b/sklearn/datasets/tests/test_samples_generator.py @@ -4,6 +4,7 @@ from functools import partial import numpy as np +import pytest import scipy...
["sklearn/datasets/tests/test_samples_generator.py::test_make_blobs_n_samples_list", "sklearn/datasets/tests/test_samples_generator.py::test_make_blobs_n_samples_list_with_centers", "sklearn/datasets/tests/test_samples_generator.py::test_make_blobs_n_samples_centers_none[n_samples0]", "sklearn/datasets/tests/test_sampl...
["sklearn/datasets/tests/test_samples_generator.py::test_make_classification", "sklearn/datasets/tests/test_samples_generator.py::test_make_classification_informative_features", "sklearn/datasets/tests/test_samples_generator.py::test_make_multilabel_classification_return_sequences", "sklearn/datasets/tests/test_samples...
null
true
2018-02-02T17:19:08Z
2
95
6
325
0
0.8
1
0.55
1
0.370833
81.4875
4,404
swe_smith::train::39608
swe_smith
train
39,608
pallets__jinja.ada0a9a6.lm_rewrite__mmg5ui75
swesmith/pallets__jinja.ada0a9a6
pallets/jinja
python
null
### Issue: Undefined Template Handling in `select_template` #### Description When attempting to use the `select_template` method with an `Undefined` object, the expected behavior is to raise an `UndefinedError` or include the undefined message in the error list. However, the current implementation does not handle thi...
diff --git a/src/jinja2/environment.py b/src/jinja2/environment.py index 0b303d5..aec20a6 100644 --- a/src/jinja2/environment.py +++ b/src/jinja2/environment.py @@ -1015,12 +1015,9 @@ class Environment: return self._load_template(name, globals) @internalcode - def select_template( - self, - ...
["tests/test_api.py::TestExtendedAPI::test_get_template_undefined"]
["tests/test_api.py::TestExtendedAPI::test_item_and_attribute", "tests/test_api.py::TestExtendedAPI::test_finalize", "tests/test_api.py::TestExtendedAPI::test_finalize_constant_expression", "tests/test_api.py::TestExtendedAPI::test_no_finalize_template_data", "tests/test_api.py::TestExtendedAPI::test_context_finalize",...
jyangballin/swesmith.x86_64.pallets_1776_jinja.ada0a9a6
true
null
1
40
1
1,624
0
0.6
1
0.75
1
0.404
81.487
4,405
swe_bench::test::1116
swe_bench
test
1,116
matplotlib__matplotlib-26278
matplotlib/matplotlib
matplotlib/matplotlib
python
02d2e137251ebcbd698b6f1ff8c455a1e52082af
Cleaning up kwargs in ContourSet This is a continuation of a mailing list thread where we talked about how to clip a plot inside a polygon. It is a very useful application for people who are visualizing data on maps since often times we want to plot everything inside one region (country, state or province). http://mat...
@bassdx: The python contour code has been due a refactor for some time; in fact I seem to have half-heartedly promised to do that about a year ago! (see https://github.com/matplotlib/matplotlib/issues/367). The idea is to separate out the calculation/storage of the polygons from all the graphical stuff like colours, e...
diff --git a/lib/matplotlib/contour.py b/lib/matplotlib/contour.py --- a/lib/matplotlib/contour.py +++ b/lib/matplotlib/contour.py @@ -751,7 +751,7 @@ def __init__(self, ax, *args, hatches=(None,), alpha=None, origin=None, extent=None, cmap=None, colors=None, norm=None, vmin=None, vm...
diff --git a/lib/matplotlib/tests/test_contour.py b/lib/matplotlib/tests/test_contour.py --- a/lib/matplotlib/tests/test_contour.py +++ b/lib/matplotlib/tests/test_contour.py @@ -9,6 +9,7 @@ import matplotlib as mpl from matplotlib import pyplot as plt, rc_context, ticker from matplotlib.colors import LogNorm, same_...
["lib/matplotlib/tests/test_contour.py::test_contour_clip_path"]
["lib/matplotlib/tests/test_contour.py::test_contour_shape_1d_valid", "lib/matplotlib/tests/test_contour.py::test_contour_shape_2d_valid", "lib/matplotlib/tests/test_contour.py::test_contour_shape_error[args0-Length", "lib/matplotlib/tests/test_contour.py::test_contour_shape_error[args1-Length", "lib/matplotlib/tests/t...
null
true
2023-07-09T10:54:03Z
1
8
1
2,060
0
0.8
1
0.55
1
0.37
81.485
4,406
swe_smith::train::42828
swe_smith
train
42,828
python-jsonschema__jsonschema.93e0caa5.lm_rewrite__fy1ume75
swesmith/python-jsonschema__jsonschema.93e0caa5
python-jsonschema/jsonschema
python
null
### Issue with `contains` Keyword Validation #### What happened? I encountered an issue with the `contains` keyword validation in the JSON Schema implementation. When using `minContains` and `maxContains` constraints, the validation does not behave as expected. #### Steps to Reproduce Here's a minimal example to il...
diff --git a/jsonschema/_keywords.py b/jsonschema/_keywords.py index f30f954..1f8a6cb 100644 --- a/jsonschema/_keywords.py +++ b/jsonschema/_keywords.py @@ -88,41 +88,42 @@ def const(validator, const, instance, schema): def contains(validator, contains, instance, schema): + """TODO: Implement this function""" ...
["jsonschema/tests/test_jsonschema_test_suite.py::TestDraft201909::test_minContains_minContains_0_with_maxContains_too_many", "jsonschema/tests/test_jsonschema_test_suite.py::TestDraft202012::test_minContains_minContains_0_with_maxContains_too_many", "jsonschema/tests/test_validators.py::TestValidationErrorMessages::te...
["jsonschema/tests/test_cli.py::TestCLI::test_custom_error_format", "jsonschema/tests/test_cli.py::TestCLI::test_custom_error_format_applies_to_schema_errors", "jsonschema/tests/test_cli.py::TestCLI::test_instance_does_not_exist", "jsonschema/tests/test_cli.py::TestCLI::test_instance_does_not_exist_pretty_output", "jso...
jyangballin/swesmith.x86_64.python-jsonschema_1776_jsonschema.93e0caa5
true
null
1
57
10
1,277
0
0.6
1
0.75
1
0.402833
81.4835
4,407
swe_smith::train::34670
swe_smith
train
34,670
mozillazg__python-pinyin.e42dede5.combine_module__uytkuvff
swesmith/mozillazg__python-pinyin.e42dede5
mozillazg/python-pinyin
python
null
# Wade-Giles style conversion broken and symbol-to-number conversion issues ### Description I've been working with the pypinyin library and noticed some serious issues with the Wade-Giles style conversion and the symbol-to-number conversion functionality. When trying to convert Chinese characters to Wade-Giles romani...
diff --git a/pypinyin/style/_utils.py b/pypinyin/style/_utils.py index 7156f27..b45383d 100644 --- a/pypinyin/style/_utils.py +++ b/pypinyin/style/_utils.py @@ -66,14 +66,12 @@ def get_finals(pinyin, strict): def replace_symbol_to_number(pinyin): """把声调替换为数字""" def _replace(match): - symbol = match.gr...
["tests/test_cmd.py::test_toneconvert_nme[args0-output0]", "tests/test_cmd.py::test_toneconvert_nme[args2-output2]", "tests/test_cmd.py::test_toneconvert_nme[args3-output3]", "tests/test_pinyin.py::test_m4", "tests/test_pinyin.py::test_m_e[\\u5463-Style.TONE2-expect1]", "tests/test_pinyin.py::test_m_e[\\u5463-Style.BOP...
["pypinyin/core.py::pypinyin.core.lazy_pinyin", "pypinyin/core.py::pypinyin.core.pinyin", "pypinyin/core.py::pypinyin.core.slug", "pypinyin/style/_tone_convert.py::pypinyin.style._tone_convert.to_finals", "pypinyin/style/_tone_convert.py::pypinyin.style._tone_convert.to_finals_tone", "pypinyin/style/_tone_convert.py::p...
jyangballin/swesmith.x86_64.mozillazg_1776_python-pinyin.e42dede5
true
null
2
25
19
1,917
0
0.6
1
0.75
1
0.402833
81.4835
4,408
swe_smith::train::31327
swe_smith
train
31,327
scrapy__scrapy.35212ec5.pr_5691
swesmith/scrapy__scrapy.35212ec5
scrapy/scrapy
python
null
Warning: Unable to determine whether or not callable is a generator with a return value [unable to parse decorated class methods] ### Description If you have a decorated spider method, `scrapy.utils.misc` [throws a warning](https://github.com/scrapy/scrapy/blob/master/scrapy/utils/misc.py#L240-L264) saying that it can...
diff --git a/scrapy/utils/misc.py b/scrapy/utils/misc.py index d319e79..de0d9e1 100644 --- a/scrapy/utils/misc.py +++ b/scrapy/utils/misc.py @@ -257,18 +257,7 @@ def is_generator_with_return_value(callable: Callable[..., Any]) -> bool: ) if inspect.isgeneratorfunction(callable): - func = callable...
["tests/test_utils_misc/test_return_with_argument_inside_generator.py::TestUtilsMisc::test_partial"]
["tests/test_utils_misc/test_return_with_argument_inside_generator.py::TestUtilsMisc::test_generators_return_something", "tests/test_utils_misc/test_return_with_argument_inside_generator.py::TestUtilsMisc::test_generators_return_none", "tests/test_utils_misc/test_return_with_argument_inside_generator.py::TestUtilsMisc:...
jyangballin/swesmith.x86_64.scrapy_1776_scrapy.35212ec5
true
null
1
15
1
2,116
0
0.6
1
0.75
1
0.402667
81.483
4,409
swe_smith::train::129
swe_smith
train
129
oauthlib__oauthlib.1fd52536.combine_file__r97sd6ry
swesmith/oauthlib__oauthlib.1fd52536
oauthlib/oauthlib
python
null
# OAuth2 client token handling is broken in multiple ways I've discovered several issues with the OAuth2 client implementation that cause it to fail when trying to use tokens: 1. When adding a bearer token, the secure transport check is inverted - it's failing on HTTPS URLs instead of HTTP URLs 2. Token type validati...
diff --git a/oauthlib/oauth2/rfc6749/clients/base.py b/oauthlib/oauth2/rfc6749/clients/base.py index a8de78b..c9c0b97 100644 --- a/oauthlib/oauth2/rfc6749/clients/base.py +++ b/oauthlib/oauth2/rfc6749/clients/base.py @@ -158,6 +158,8 @@ class Client: def prepare_request_body(self, *args, **kwargs): """A...
["tests/oauth2/rfc6749/clients/test_base.py::ClientTest::test_add_bearer_token", "tests/oauth2/rfc6749/clients/test_base.py::ClientTest::test_add_mac_token", "tests/oauth2/rfc6749/clients/test_base.py::ClientTest::test_prepare_refresh_token_request", "tests/oauth2/rfc6749/clients/test_base.py::ClientTest::test_prepare_...
["tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_check_request_token", "tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_check_verifier", "tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_valid_request", "tests/oauth...
jyangballin/swesmith.x86_64.oauthlib_1776_oauthlib.1fd52536
true
null
1
22
4
1,975
0
0.6
1
0.75
1
0.4025
81.4825
4,410
swe_smith::train::5758
swe_smith
train
5,758
luozhouyang__python-string-similarity.115acaac.combine_file__jzax0e58
swesmith/luozhouyang__python-string-similarity.115acaac
luozhouyang/python-string-similarity
python
null
# Incorrect shingle calculation in ShingleBased class breaks string similarity metrics ## Description I found a bug in the latest version of strsimpy. Several string similarity metrics that rely on the ShingleBased class are producing incorrect results or failing with errors. The issue appears to be in the `ShingleB...
diff --git a/strsimpy/shingle_based.py b/strsimpy/shingle_based.py index de3ddb8..c10e4a0 100644 --- a/strsimpy/shingle_based.py +++ b/strsimpy/shingle_based.py @@ -26,7 +26,7 @@ _SPACE_PATTERN = re.compile("\\s+") class ShingleBased: def __init__(self, k=3): - self.k = k + self.k = k + 1 d...
["strsimpy/cosine_test.py::TestCosine::test_cosine", "strsimpy/overlap_coefficient_test.py::TestOverlapCoefficient::test_overlap_coefficient_halfsimilar_return1", "strsimpy/overlap_coefficient_test.py::TestOverlapCoefficient::test_overlap_coefficient_onestringissubset_return1", "strsimpy/overlap_coefficient_test.py::Te...
["strsimpy/damerau_test.py::TestDamerau::test_damerau", "strsimpy/jaccard_test.py::TestJaccard::test_jaccard", "strsimpy/jaro_winkler_test.py::TestJaroWinkler::test_jarowinkler", "strsimpy/levenshtein_test.py::TestLevenshtein::test_levenshtein", "strsimpy/longest_common_subsequence_test.py::LongestCommonSubsequenceTest...
jyangballin/swesmith.x86_64.luozhouyang_1776_python-string-similarity.115acaac
true
null
1
10
6
2,214
0
0.6
1
0.75
1
0.402333
81.482
4,411
swe_smith::train::24510
swe_smith
train
24,510
sunpy__sunpy.f8edfd5c.combine_module__iirkoe9j
swesmith/sunpy__sunpy.f8edfd5c
sunpy/sunpy
python
null
# Cache and Storage Issues in Data Manager I've encountered some issues with the data manager's cache and storage functionality. There seem to be two separate problems: ## Issue 1: Cache redownload and caching behavior is incorrect When trying to use the cache functionality, I'm seeing unexpected behavior with file ...
diff --git a/sunpy/data/data_manager/cache.py b/sunpy/data/data_manager/cache.py index 642532a..05e4de3 100644 --- a/sunpy/data/data_manager/cache.py +++ b/sunpy/data/data_manager/cache.py @@ -74,12 +74,12 @@ class Cache: break if details: if redownload or self._has_expired(detail...
["sunpy/data/data_manager/tests/test_cache.py::test_cache_caching", "sunpy/data/data_manager/tests/test_cache.py::test_cache_redownload", "sunpy/data/data_manager/tests/test_storage.py::test_invalid_key"]
["sunpy/data/data_manager/tests/test_cache.py::test_cache_basic", "sunpy/data/data_manager/tests/test_cache.py::test_get_by_url", "sunpy/data/data_manager/tests/test_cache.py::test_get_by_url_fail", "sunpy/data/data_manager/tests/test_cache.py::test_get_by_hash", "sunpy/data/data_manager/tests/test_cache.py::test_get_b...
jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c
true
null
2
10
3
2,214
0
0.6
1
0.75
1
0.402333
81.482
4,412
swe_smith::train::31320
swe_smith
train
31,320
scrapy__scrapy.35212ec5.lm_rewrite__wvrim94h
swesmith/scrapy__scrapy.35212ec5
scrapy/scrapy
python
null
### Issue: ContractsManager Request Creation Fails #### Description It seems there's an issue with the `ContractsManager` class when creating requests from spider methods. The problem arises when contracts are applied, leading to unexpected behavior in request creation. This is causing several functionalities to brea...
diff --git a/scrapy/contracts/__init__.py b/scrapy/contracts/__init__.py index bdb68c4..dd292a1 100644 --- a/scrapy/contracts/__init__.py +++ b/scrapy/contracts/__init__.py @@ -135,40 +135,40 @@ class ContractsManager: return requests def from_method(self, method: Callable, results: TestResult) -> Reque...
["tests/test_contracts.py::ContractsManagerTest::test_cb_kwargs", "tests/test_contracts.py::ContractsManagerTest::test_contracts", "tests/test_contracts.py::ContractsManagerTest::test_custom_contracts", "tests/test_contracts.py::ContractsManagerTest::test_errback", "tests/test_contracts.py::ContractsManagerTest::test_f...
["tests/test_contracts.py::ContractsManagerTest::test_inherited_contracts"]
jyangballin/swesmith.x86_64.scrapy_1776_scrapy.35212ec5
true
null
1
56
13
1,294
0
0.6
1
0.75
1
0.402333
81.482
4,413
swe_smith::train::44521
swe_smith
train
44,521
pydata__patsy.a5d16484.lm_rewrite__j0a4f2gn
swesmith/pydata__patsy.a5d16484
pydata/patsy
python
null
### Issue: Formula Evaluation and Term Order Discrepancies #### Description It seems that recent changes have introduced some unexpected behavior in formula evaluation and term ordering. Specifically, when evaluating certain formulas, the expected results are not being produced, leading to assertion errors. This issu...
diff --git a/patsy/desc.py b/patsy/desc.py index 210350d..fccdff2 100644 --- a/patsy/desc.py +++ b/patsy/desc.py @@ -255,25 +255,26 @@ def _eval_any_tilde(evaluator, tree): def _eval_binary_plus(evaluator, tree): left_expr = evaluator.eval(tree.args[0]) - if tree.args[1].type == "ZERO": - return Inter...
["patsy/desc.py::test_eval_formula", "patsy/test_build.py::test_DesignInfo_subset", "patsy/test_highlevel.py::test_data_types", "patsy/test_highlevel.py::test_categorical", "patsy/test_highlevel.py::test_builtins", "patsy/test_highlevel.py::test_term_order"]
["patsy/build.py::test__max_allowed_dim", "patsy/build.py::test__eval_factor_numerical", "patsy/build.py::test__eval_factor_categorical", "patsy/build.py::test__column_combinations", "patsy/build.py::test__subterm_column_names_iter_and__build_subterm", "patsy/build.py::test__factors_memorize", "patsy/build.py::test__ex...
jyangballin/swesmith.x86_64.pydata_1776_patsy.a5d16484
true
null
1
37
6
1,672
0
0.6
1
0.75
1
0.402
81.481
4,414
swe_smith::train::25158
swe_smith
train
25,158
pylint-dev__astroid.b114f6b5.combine_module__8wdvwk6u
swesmith/pylint-dev__astroid.b114f6b5
pylint-dev/astroid
python
null
Module import and property inference broken after recent changes #### Description After some recent changes, several core functionalities are broken including module imports from zip files and property inference. The issues seem to be related to incorrect logic in namespace detection and property model handling. ###...
diff --git a/astroid/interpreter/_import/spec.py b/astroid/interpreter/_import/spec.py index e0c54d4..0cdee2e 100644 --- a/astroid/interpreter/_import/spec.py +++ b/astroid/interpreter/_import/spec.py @@ -328,20 +328,20 @@ _SPEC_FINDERS = ( def _is_setuptools_namespace(location: pathlib.Path) -> bool: try: ...
["tests/test_inference.py::test_property_inference", "tests/test_manager.py::AstroidManagerTest::test_ast_from_module_name_egg", "tests/test_manager.py::AstroidManagerTest::test_ast_from_module_name_pyz", "tests/test_manager.py::AstroidManagerTest::test_ast_from_module_name_zip", "tests/test_manager.py::AstroidManagerT...
["tests/brain/numpy/test_core_einsumfunc.py::test_numpy_function_calls_inferred_as_ndarray", "tests/brain/numpy/test_core_einsumfunc.py::test_function_parameters", "tests/brain/numpy/test_core_fromnumeric.py::BrainNumpyCoreFromNumericTest::test_numpy_function_calls_inferred_as_ndarray", "tests/brain/numpy/test_core_fun...
jyangballin/swesmith.x86_64.pylint-dev_1776_astroid.b114f6b5
true
null
2
18
10
2,051
0
0.6
1
0.75
1
0.401833
81.4805
4,415
swe_smith::train::47613
swe_smith
train
47,613
sqlfluff__sqlfluff.50a1c4b6.combine_module__hf24t4u9
swesmith/sqlfluff__sqlfluff.50a1c4b6
sqlfluff/sqlfluff
python
null
LintedDir initialization broken with incorrect default values #### Description When creating a `LintedDir` instance, the initialization sets incorrect default values for various statistics and counters, causing assertion errors and unexpected behavior throughout the linting process. #### Steps/Code to Reproduce ```...
diff --git a/src/sqlfluff/core/linter/discovery.py b/src/sqlfluff/core/linter/discovery.py index eb68e44..ed5a4aa 100644 --- a/src/sqlfluff/core/linter/discovery.py +++ b/src/sqlfluff/core/linter/discovery.py @@ -153,7 +153,7 @@ def _process_exact_path( """ # Does it have a relevant extension? If not, just re...
["test/core/linter/discovery_test.py::test__linter__path_from_paths__file", "test/core/linter/discovery_test.py::test__linter__path_from_paths__explicit_ignore", "test/core/linter/discovery_test.py::test__linter__path_from_paths__specific_bad_ext", "test/core/linter/linter_test.py::test__linter__skip_large_bytes[0-Fals...
["test/core/linter/discovery_test.py::test__linter__path_from_paths__dir", "test/core/linter/discovery_test.py::test__linter__path_from_paths__default", "test/core/linter/discovery_test.py::test__linter__path_from_paths__exts", "test/core/linter/discovery_test.py::test__linter__path_from_paths__not_exist", "test/core/l...
jyangballin/swesmith.x86_64.sqlfluff_1776_sqlfluff.50a1c4b6
true
null
2
47
28
1,471
0
0.6
1
0.75
1
0.401833
81.4805
4,416
swe_smith::train::1285
swe_smith
train
1,285
Cog-Creators__Red-DiscordBot.33e0eac7.combine_module__4138xlqs
swesmith/Cog-Creators__Red-DiscordBot.33e0eac7
cog-creators/red-discordbot
python
null
# Bug: Downloader cog fails to initialize repositories properly ## Description I've found an issue with the downloader cog where it fails to properly initialize repositories. The problem appears to be in the JSON handling code. ## Steps to reproduce: 1. Create a repository object: ```python from redbot.cogs.downloa...
diff --git a/redbot/cogs/downloader/info_schemas.py b/redbot/cogs/downloader/info_schemas.py index 8033d13..85f908d 100644 --- a/redbot/cogs/downloader/info_schemas.py +++ b/redbot/cogs/downloader/info_schemas.py @@ -28,27 +28,27 @@ def ensure_tuple_of_str( ) -> Tuple[str, ...]: default: Tuple[str, ...] = () ...
["tests/cogs/downloader/test_downloader.py::test_existing_git_repo", "tests/cogs/downloader/test_downloader.py::test_add_repo", "tests/cogs/downloader/test_downloader.py::test_remove_repo"]
["tests/cogs/test_alias.py::test_is_valid_alias_name", "tests/cogs/test_alias.py::test_empty_guild_aliases", "tests/cogs/test_alias.py::test_empty_global_aliases", "tests/cogs/test_alias.py::test_add_guild_alias", "tests/cogs/test_alias.py::test_translate_alias_message", "tests/cogs/test_alias.py::test_delete_guild_ali...
jyangballin/swesmith.x86_64.cog-creators_1776_red-discordbot.33e0eac7
true
null
2
36
3
1,690
0
0.6
1
0.75
1
0.401667
81.48
4,417
swe_smith::train::18023
swe_smith
train
18,023
pyasn1__pyasn1.0f07d724.lm_rewrite__0sof8x9a
swesmith/pyasn1__pyasn1.0f07d724
pyasn1/pyasn1
python
null
It seems like there's an issue with setting components in sequences after the recent changes. When trying to set a component by position or by name, unexpected errors are being raised. Here's a simple reproduction: ```python from pyasn1.type import univ, namedtype # Create a sequence with a defaulted named type s = u...
diff --git a/pyasn1/type/univ.py b/pyasn1/type/univ.py index 9aff5e6..2c2cf4a 100644 --- a/pyasn1/type/univ.py +++ b/pyasn1/type/univ.py @@ -2253,22 +2253,51 @@ class SequenceAndSetBase(base.ConstructedAsn1Type): raise IndexError(exc) def __setitem__(self, idx, value): - if isinstance(idx...
["tests/codec/ber/test_encoder.py::SequenceEncoderWithUntaggedOpenTypesTestCase::testEncodeOpenTypeChoiceOne", "tests/codec/ber/test_encoder.py::SequenceEncoderWithUntaggedOpenTypesTestCase::testEncodeOpenTypeChoiceTwo", "tests/codec/ber/test_encoder.py::SequenceEncoderWithUntaggedOpenTypesTestCase::testEncodeOpenTypeI...
["tests/codec/ber/test_decoder.py::LargeTagDecoderTestCase::testLargeTag", "tests/codec/ber/test_decoder.py::LargeTagDecoderTestCase::testLongTag", "tests/codec/ber/test_decoder.py::LargeTagDecoderTestCase::testTagsEquivalence", "tests/codec/ber/test_decoder.py::DecoderCacheTestCase::testCache", "tests/codec/ber/test_d...
jyangballin/swesmith.x86_64.pyasn1_1776_pyasn1.0f07d724
true
null
1
61
95
1,190
0
0.6
1
0.75
1
0.401667
81.48
4,418
swe_smith::train::31451
swe_smith
train
31,451
benoitc__gunicorn.bacbf8aa.combine_module__sej2azuz
swesmith/benoitc__gunicorn.bacbf8aa
benoitc/gunicorn
python
null
Configuration loading broken after recent changes #### Description After some recent changes, gunicorn configuration loading is completely broken. The application fails to start with various AttributeError exceptions when trying to access configuration attributes. #### Steps/Code to Reproduce ```python from gunicor...
diff --git a/gunicorn/app/base.py b/gunicorn/app/base.py index 9bf7a4f..696744b 100644 --- a/gunicorn/app/base.py +++ b/gunicorn/app/base.py @@ -31,12 +31,10 @@ class BaseApplication: Loads the configuration """ try: - self.load_default_config() self.load_config() - ...
["tests/test_arbiter.py::test_env_vars_available_during_preload", "tests/test_config.py::test_cmd_line", "tests/test_config.py::test_cmd_line_invalid_setting", "tests/test_config.py::test_app_config", "tests/test_config.py::test_load_config", "tests/test_config.py::test_load_config_explicit_file", "tests/test_config.py...
["tests/test_arbiter.py::test_arbiter_stop_closes_listeners", "tests/test_arbiter.py::test_arbiter_stop_child_does_not_unlink_listeners", "tests/test_arbiter.py::test_arbiter_stop_parent_does_not_unlink_listeners", "tests/test_arbiter.py::test_arbiter_stop_does_not_unlink_systemd_listeners", "tests/test_arbiter.py::tes...
jyangballin/swesmith.x86_64.benoitc_1776_gunicorn.bacbf8aa
true
null
2
63
30
1,148
0
0.6
1
0.75
1
0.401333
81.479
4,419
swe_smith::train::38604
swe_smith
train
38,604
erikrose__parsimonious.0d3f5f93.combine_file__tu7ut4eu
swesmith/erikrose__parsimonious.0d3f5f93
erikrose/parsimonious
python
null
# [Bug]: Node representation and formatting issues in parsimonious ## Description I've encountered several issues with the Node class in parsimonious that affect how nodes are displayed and represented. The issues appear to be in the `prettily()`, `__str__()`, and `__repr__()` methods of the Node class. ## Steps to ...
diff --git a/parsimonious/nodes.py b/parsimonious/nodes.py index 7839097..68a4f3d 100644 --- a/parsimonious/nodes.py +++ b/parsimonious/nodes.py @@ -71,18 +71,16 @@ class Node(object): :arg error: The node to highlight because an error occurred there """ - # TODO: If a Node appears multiple t...
["parsimonious/tests/test_grammar.py::GrammarTests::test_parens", "parsimonious/tests/test_nodes.py::SimpleTests::test_repr", "parsimonious/tests/test_nodes.py::SimpleTests::test_str"]
["parsimonious/tests/test_benchmarks.py::TestBenchmarks::test_call_vs_inline", "parsimonious/tests/test_benchmarks.py::TestBenchmarks::test_lists_vs_dicts", "parsimonious/tests/test_benchmarks.py::TestBenchmarks::test_startswith_vs_regex", "parsimonious/tests/test_expressions.py::LengthTests::test_not", "parsimonious/t...
jyangballin/swesmith.x86_64.erikrose_1776_parsimonious.0d3f5f93
true
null
1
18
3
2,048
0
0.6
1
0.75
1
0.401333
81.479
4,420
swe_smith::train::1052
swe_smith
train
1,052
jd__tenacity.0d40e76f.combine_file__mged6jg2
swesmith/jd__tenacity.0d40e76f
jd/tenacity
python
null
# Multiple issues with wait strategies in tenacity I've encountered several issues with the wait strategies in tenacity that are causing unexpected behavior in my application. ## Issue 1: `__radd__` implementation in `wait_base` is broken When trying to use the built-in `sum()` function with multiple wait strategies...
diff --git a/tenacity/wait.py b/tenacity/wait.py index dc3c850..0e02f2f 100644 --- a/tenacity/wait.py +++ b/tenacity/wait.py @@ -34,12 +34,10 @@ class wait_base(abc.ABC): def __add__(self, other: "wait_base") -> "wait_combine": return wait_combine(self, other) - def __radd__(self, other: "wait_base")...
["tests/test_tenacity.py::TestWaitConditions::test_wait_arbitrary_sum", "tests/test_tenacity.py::TestWaitConditions::test_wait_chain", "tests/test_tenacity.py::TestWaitConditions::test_wait_chain_multiple_invocations", "tests/test_tenacity.py::TestWaitConditions::test_wait_exponential_jitter"]
["tests/test_after.py::TestAfterLogFormat::test_01_default", "tests/test_after.py::TestAfterLogFormat::test_02_custom_sec_format", "tests/test_asyncio.py::TestAsyncio::test_attempt_number_is_correct_for_interleaved_coroutines", "tests/test_asyncio.py::TestAsyncio::test_iscoroutinefunction", "tests/test_asyncio.py::Test...
jyangballin/swesmith.x86_64.jd_1776_tenacity.0d40e76f
true
null
1
24
4
1,926
0
0.6
1
0.75
1
0.401
81.478
4,421
swe_smith::train::45022
swe_smith
train
45,022
mahmoud__glom.fb3c4e76.func_pm_remove_cond__mzc6ip0u
swesmith/mahmoud__glom.fb3c4e76
mahmoud/glom
python
null
Match functionality completely broken - always returns target without validation #### Description The `Match` specifier is not performing any validation and always returns the target unchanged, regardless of whether the target matches the specification or not. #### Steps/Code to Reproduce ```python from glom import...
diff --git a/glom/matching.py b/glom/matching.py index 798ac40..f498410 100644 --- a/glom/matching.py +++ b/glom/matching.py @@ -712,55 +712,8 @@ def _handle_dict(target, spec, scope): def _glom_match(target, spec, scope): - if isinstance(spec, type): - if not isinstance(target, spec): - raise...
["glom/test/test_error.py::test_branching_stack", "glom/test/test_error.py::test_midway_branch", "glom/test/test_error.py::test_all_public_errors", "glom/test/test_match.py::test_basic", "glom/test/test_match.py::test_defaults", "glom/test/test_match.py::test_match_default", "glom/test/test_match.py::test_sets", "glom/...
["glom/test/test_basic.py::test_initial_integration", "glom/test/test_basic.py::test_list_item_lift_and_access", "glom/test/test_basic.py::test_coalesce", "glom/test/test_basic.py::test_skip", "glom/test/test_basic.py::test_stop", "glom/test/test_basic.py::test_top_level_default", "glom/test/test_basic.py::test_val", "...
jyangballin/swesmith.x86_64.mahmoud_1776_glom.fb3c4e76
true
null
1
47
14
1,465
0
0.6
1
0.75
1
0.400833
81.4775
4,422
swe_smith::train::19547
swe_smith
train
19,547
seperman__deepdiff.ed252022.lm_rewrite__mw5wpjok
swesmith/seperman__deepdiff.ed252022
seperman/deepdiff
python
null
### Issue: Delta Handling of Invalid Indexes #### Description I've encountered an issue with the `Delta` class when attempting to apply a delta that includes an invalid index for list operations. Specifically, when trying to add items to a list using a delta with an index that exceeds the list's current length, the o...
diff --git a/deepdiff/delta.py b/deepdiff/delta.py index 8bafc9a..a6b5049 100644 --- a/deepdiff/delta.py +++ b/deepdiff/delta.py @@ -438,31 +438,43 @@ class Delta: def _do_item_added(self, items, sort=True, insert=False): + """ + Handle adding items to various data structures. + + Para...
["tests/test_delta.py::TestBasicsOfDelta::test_list_difference_add_delta_when_index_not_valid", "tests/test_delta.py::TestDeltaCompareFunc::test_delta_force1"]
["tests/test_anyset.py::TestAnySet::test_anyset_init1", "tests/test_anyset.py::TestAnySet::test_anyset_init2", "tests/test_anyset.py::TestAnySet::test_anyset_init3_add", "tests/test_anyset.py::TestAnySet::test_anyset_pop1", "tests/test_anyset.py::TestAnySet::test_iter_anyset", "tests/test_cache.py::TestCache::test_cach...
jyangballin/swesmith.x86_64.seperman_1776_deepdiff.ed252022
true
null
1
46
2
1,482
0
0.6
1
0.75
1
0.400333
81.476
4,423
swe_smith::train::10135
swe_smith
train
10,135
paramiko__paramiko.23f92003.combine_file__ivjtnsw1
swesmith/paramiko__paramiko.23f92003
paramiko/paramiko
python
null
SFTP file operations failing with AttributeError: 'int' object has no attribute 'close' #### Description When trying to perform basic SFTP file operations like opening, reading, or writing files, operations are failing with `AttributeError: 'int' object has no attribute 'close'`. This affects all file operations incl...
diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py index 066cd83..1b5d740 100644 --- a/paramiko/sftp_client.py +++ b/paramiko/sftp_client.py @@ -358,20 +358,18 @@ class SFTPClient(BaseSFTP, ClosingContextManager): filename = self._adjust_cwd(filename) self._log(DEBUG, "open({!r}, {!r})".fo...
["tests/test_sftp.py::TestSFTP::test_file", "tests/test_sftp.py::TestSFTP::test_close", "tests/test_sftp.py::TestSFTP::test_sftp_can_be_used_as_context_manager", "tests/test_sftp.py::TestSFTP::test_write", "tests/test_sftp.py::TestSFTP::test_sftp_file_can_be_used_as_context_manager", "tests/test_sftp.py::TestSFTP::test...
["tests/agent.py::AgentKey_::str_is_repr", "tests/agent.py::AgentKey_::init::needs_at_least_two_arguments", "tests/agent.py::AgentKey_::init::sets_attributes_and_parses_blob", "tests/agent.py::AgentKey_::init::comment_optional", "tests/agent.py::AgentKey_::init::sets_inner_key_when_known_type[rsa]", "tests/agent.py::Ag...
jyangballin/swesmith.x86_64.paramiko_1776_paramiko.23f92003
true
null
1
49
45
1,420
0
0.6
1
0.75
1
0.4
81.475
4,424
swe_smith::train::1170
swe_smith
train
1,170
jd__tenacity.0d40e76f.lm_rewrite__17y1km6x
swesmith/jd__tenacity.0d40e76f
jd/tenacity
python
null
# retry_if_exception_message accepts both message and match parameters simultaneously ## Description The `retry_if_exception_message` class in tenacity now accepts both `message` and `match` parameters simultaneously, which is a change in behavior. Previously, providing both parameters would raise a TypeError, but no...
diff --git a/tenacity/retry.py b/tenacity/retry.py index 9211631..c401173 100644 --- a/tenacity/retry.py +++ b/tenacity/retry.py @@ -204,38 +204,27 @@ class retry_if_not_result(retry_base): class retry_if_exception_message(retry_if_exception): """Retries if an exception message equals or matches.""" - def __...
["tests/test_tenacity.py::TestRetryConditions::test_retry_if_exception_message_negative_too_many_inputs"]
["tests/test_after.py::TestAfterLogFormat::test_01_default", "tests/test_after.py::TestAfterLogFormat::test_02_custom_sec_format", "tests/test_asyncio.py::TestAsyncio::test_attempt_number_is_correct_for_interleaved_coroutines", "tests/test_asyncio.py::TestAsyncio::test_iscoroutinefunction", "tests/test_asyncio.py::Test...
jyangballin/swesmith.x86_64.jd_1776_tenacity.0d40e76f
true
null
1
49
1
1,420
0
0.6
1
0.75
1
0.4
81.475
4,425
swe_smith::train::3263
swe_smith
train
3,263
Suor__funcy.207a7810.lm_rewrite__w8q8t5nt
swesmith/Suor__funcy.207a7810
suor/funcy
python
null
# arggetter() doesn't properly handle argument retrieval in certain cases ## Description In the current implementation of `arggetter()` in `funcy/decorators.py`, there's an issue with how arguments are retrieved from function calls. The function doesn't properly check for arguments in the correct order, which causes ...
diff --git a/funcy/decorators.py b/funcy/decorators.py index e001629..5b60c56 100644 --- a/funcy/decorators.py +++ b/funcy/decorators.py @@ -139,23 +139,44 @@ def arggetter(func, _cache={}): defaults.update(original.__kwdefaults__) def get_arg(name, args, kwargs): - if name not in allnames: - ...
["tests/test_decorators.py::test_decorator_access_args"]
["tests/test_calc.py::test_memoize", "tests/test_calc.py::test_memoize_args_kwargs", "tests/test_calc.py::test_memoize_skip", "tests/test_calc.py::test_memoize_memory", "tests/test_calc.py::test_memoize_key_func", "tests/test_calc.py::test_make_lookuper", "tests/test_calc.py::test_make_lookuper_nested", "tests/test_cal...
jyangballin/swesmith.x86_64.suor_1776_funcy.207a7810
true
null
1
49
1
1,419
0
0.6
1
0.75
1
0.399833
81.4745
4,426
swe_smith::train::27982
swe_smith
train
27,982
jsvine__pdfplumber.02ff4313.func_pm_remove_cond__kiw0exns
swesmith/jsvine__pdfplumber.02ff4313
jsvine/pdfplumber
python
null
Table extraction fails with NameError when using explicit line strategies #### Description When trying to extract tables using explicit line strategies, the code throws a `NameError` for undefined variables `v_base` and `h_base`. This affects both vertical and horizontal line processing in table extraction. #### Ste...
diff --git a/pdfplumber/table.py b/pdfplumber/table.py index 0ba4445..300960a 100644 --- a/pdfplumber/table.py +++ b/pdfplumber/table.py @@ -604,13 +604,6 @@ class TableFinder(object): strategy = getattr(settings, orientation + "_strategy") if strategy == "explicit": lines = g...
["tests/test_basics.py::Test::test_outside_bbox", "tests/test_ca_warn_report.py::Test::test_parse", "tests/test_dedupe_chars.py::Test::test_extract_table", "tests/test_display.py::Test::test_debug_tablefinder", "tests/test_issues.py::Test::test_issue_1181", "tests/test_issues.py::Test::test_issue_140", "tests/test_issu...
["tests/test_basics.py::Test::test_annots", "tests/test_basics.py::Test::test_annots_cropped", "tests/test_basics.py::Test::test_annots_rotated", "tests/test_basics.py::Test::test_bad_fileobj", "tests/test_basics.py::Test::test_colors", "tests/test_basics.py::Test::test_crop_and_filter", "tests/test_basics.py::Test::te...
jyangballin/swesmith.x86_64.jsvine_1776_pdfplumber.02ff4313
true
null
1
61
21
1,178
0
0.6
1
0.75
1
0.399667
81.474
4,427
swe_smith::train::46676
swe_smith
train
46,676
python-trio__trio.cfbbe2c1.combine_file__tqll3csz
swesmith/python-trio__trio.cfbbe2c1
python-trio/trio
python
null
ThreadCache initialization breaks with None assignment #### Description The ThreadCache class fails to initialize properly due to incorrect type assignment in the constructor. When trying to use thread-related functionality, operations fail with AttributeError because the `_idle_workers` attribute is set to `None` in...
diff --git a/src/trio/_core/_thread_cache.py b/src/trio/_core/_thread_cache.py index 189d5a5..4bd67f5 100644 --- a/src/trio/_core/_thread_cache.py +++ b/src/trio/_core/_thread_cache.py @@ -30,10 +30,8 @@ def get_os_thread_name_func() -> Callable[[int | None, str], None] | None: ident: int | None, name...
["src/trio/_core/_tests/test_guest_mode.py::test_host_can_directly_wake_trio_task", "src/trio/_core/_tests/test_guest_mode.py::test_host_altering_deadlines_wakes_trio_up", "src/trio/_core/_tests/test_guest_mode.py::test_guest_mode_sniffio_integration", "src/trio/_core/_tests/test_guest_mode.py::test_host_wakeup_doesnt_...
["src/trio/_core/_tests/test_asyncgen.py::test_asyncgen_basics", "src/trio/_core/_tests/test_asyncgen.py::test_asyncgen_throws_during_finalization", "src/trio/_core/_tests/test_asyncgen.py::test_firstiter_after_closing", "src/trio/_core/_tests/test_asyncgen.py::test_interdependent_asyncgen_cleanup_order", "src/trio/_co...
jyangballin/swesmith.x86_64.python-trio_1776_trio.cfbbe2c1
true
null
1
71
141
977
0
0.6
1
0.75
1
0.3995
81.4735
4,428
swe_smith::train::45603
swe_smith
train
45,603
conan-io__conan.86f29e13.combine_module__611m6szc
swesmith/conan-io__conan.86f29e13
conan-io/conan
python
null
# Profile serialization broken after recent changes ## Problem I've encountered an issue with the profile serialization in Conan. When trying to serialize a profile, I'm getting an AttributeError. Here's a simple example that reproduces the issue: ```python profile = Profile() profile.options.loads('zlib*:aoption=1...
diff --git a/conan/internal/model/conf.py b/conan/internal/model/conf.py index 335d7c0..c4b45d4 100644 --- a/conan/internal/model/conf.py +++ b/conan/internal/model/conf.py @@ -240,14 +240,7 @@ class _ConfValue(object): v_type = self._value_type o_type = other._value_type if v_type is list an...
["test/unittests/model/profile_test.py::test_profile_serialize"]
["test/unittests/model/profile_test.py::ProfileTest::test_apply", "test/unittests/model/profile_test.py::ProfileTest::test_package_settings_update", "test/unittests/model/profile_test.py::ProfileTest::test_profile_dump_order", "test/unittests/model/profile_test.py::ProfileTest::test_profile_settings_update", "test/unit...
jyangballin/swesmith.x86_64.conan-io_1776_conan.86f29e13
true
null
2
46
1
1,477
0
0.6
1
0.75
1
0.3995
81.4735
4,429
swe_smith::train::28076
swe_smith
train
28,076
jsvine__pdfplumber.02ff4313.lm_rewrite__xs7wbow1
swesmith/jsvine__pdfplumber.02ff4313
jsvine/pdfplumber
python
null
### Issue: extract_text() does not handle empty character lists correctly #### Description The `extract_text()` function in `pdfplumber.utils.text` is expected to return an empty string when provided with an empty list of character objects. However, it currently raises a `ValueError` instead of returning an empty stri...
diff --git a/pdfplumber/utils/text.py b/pdfplumber/utils/text.py index 8edafa1..79b5afc 100644 --- a/pdfplumber/utils/text.py +++ b/pdfplumber/utils/text.py @@ -720,53 +720,27 @@ def chars_to_textmap(chars: T_obj_list, **kwargs: Any) -> TextMap: return textmap -def extract_text( - chars: T_obj_list, - li...
["tests/test_utils.py::Test::test_extract_text_blank"]
["tests/test_basics.py::Test::test_annots", "tests/test_basics.py::Test::test_annots_cropped", "tests/test_basics.py::Test::test_annots_rotated", "tests/test_basics.py::Test::test_bad_fileobj", "tests/test_basics.py::Test::test_colors", "tests/test_basics.py::Test::test_crop_and_filter", "tests/test_basics.py::Test::te...
jyangballin/swesmith.x86_64.jsvine_1776_pdfplumber.02ff4313
true
null
1
68
1
1,037
0
0.6
1
0.75
1
0.3995
81.4735
4,430
swe_smith::train::26584
swe_smith
train
26,584
pylint-dev__astroid.b114f6b5.lm_rewrite__hyc7mjva
swesmith/pylint-dev__astroid.b114f6b5
pylint-dev/astroid
python
null
MRO Resolution Error with Generic and Multiple Inheritance Description I've encountered an issue with the method resolution order (MRO) when using generic types and multiple inheritance. The problem arises when trying to determine the MRO for classes that inherit from both generic and non-generic base classes. Consi...
diff --git a/astroid/nodes/scoped_nodes/scoped_nodes.py b/astroid/nodes/scoped_nodes/scoped_nodes.py index 99ed796..59642f6 100644 --- a/astroid/nodes/scoped_nodes/scoped_nodes.py +++ b/astroid/nodes/scoped_nodes/scoped_nodes.py @@ -2801,39 +2801,45 @@ class ClassDef( return self._all_slots def _inferre...
["tests/brain/test_brain.py::CollectionsBrain::test_collections_object_not_subscriptable", "tests/brain/test_brain.py::CollectionsBrain::test_collections_object_subscriptable", "tests/brain/test_brain.py::CollectionsBrain::test_collections_object_subscriptable_2", "tests/brain/test_brain.py::CollectionsBrain::test_coll...
["tests/brain/numpy/test_core_einsumfunc.py::test_numpy_function_calls_inferred_as_ndarray", "tests/brain/numpy/test_core_einsumfunc.py::test_function_parameters", "tests/brain/numpy/test_core_fromnumeric.py::BrainNumpyCoreFromNumericTest::test_numpy_function_calls_inferred_as_ndarray", "tests/brain/numpy/test_core_fun...
jyangballin/swesmith.x86_64.pylint-dev_1776_astroid.b114f6b5
true
null
1
62
24
1,156
0
0.6
1
0.75
1
0.399333
81.473
4,431
swe_smith::train::22240
swe_smith
train
22,240
tweepy__tweepy.91a41c6e.combine_file__diejs62i
swesmith/tweepy__tweepy.91a41c6e
tweepy/tweepy
python
null
### Bug Report: Cursor Initialization Fails #### What happened? After applying the recent changes, the `Cursor` class in the Tweepy library is not initializing properly, leading to a `TypeError`. This issue arises when attempting to use cursor-based pagination methods, which are now failing to execute as expected. #...
diff --git a/tweepy/cursor.py b/tweepy/cursor.py index 1db73e1..e11f147 100644 --- a/tweepy/cursor.py +++ b/tweepy/cursor.py @@ -22,23 +22,6 @@ class Cursor: Keyword arguments to pass to ``method`` """ - def __init__(self, method, *args, **kwargs): - if hasattr(method, 'pagination_mode'): - ...
["tests/test_cursors.py::TweepyCursorTests::testcursorcursoritems", "tests/test_cursors.py::TweepyCursorTests::testcursorcursorpages", "tests/test_cursors.py::TweepyCursorTests::testcursornext", "tests/test_cursors.py::TweepyCursorTests::testcursorsetstartcursor", "tests/test_cursors.py::TweepyCursorTests::testidcursor...
["tests/test_api.py::TweepyAPITests::test_indicate_direct_message_typing", "tests/test_api.py::TweepyAPITests::testaddremovelistmember", "tests/test_api.py::TweepyAPITests::testaddremovelistmembers", "tests/test_api.py::TweepyAPITests::testcachedifferentqueryparameters", "tests/test_api.py::TweepyAPITests::testcachedre...
jyangballin/swesmith.x86_64.tweepy_1776_tweepy.91a41c6e
true
null
1
47
6
1,454
0
0.6
1
0.75
1
0.399
81.472
4,432
swe_smith::train::39087
swe_smith
train
39,087
pallets__jinja.ada0a9a6.func_basic__k1myjr5b
swesmith/pallets__jinja.ada0a9a6
pallets/jinja
python
null
groupby filter breaks with AttributeError when case_sensitive=False #### Description The groupby filter is throwing an AttributeError when used with case_sensitive=False (which is the default). The error occurs because the code is trying to call `.upper()` on the result of the attribute getter, but the attribute valu...
diff --git a/src/jinja2/filters.py b/src/jinja2/filters.py index 1420877..37fe878 100644 --- a/src/jinja2/filters.py +++ b/src/jinja2/filters.py @@ -1193,67 +1193,10 @@ def sync_do_groupby( default: t.Optional[t.Any] = None, case_sensitive: bool = False, ) -> "t.List[_GroupTuple]": - """Group a sequence o...
["tests/test_filters.py::TestFilter::test_groupby", "tests/test_filters.py::TestFilter::test_groupby_tuple_index", "tests/test_filters.py::TestFilter::test_groupby_multidot", "tests/test_filters.py::TestFilter::test_groupby_default"]
["tests/test_api.py::TestExtendedAPI::test_item_and_attribute", "tests/test_api.py::TestExtendedAPI::test_finalize", "tests/test_api.py::TestExtendedAPI::test_finalize_constant_expression", "tests/test_api.py::TestExtendedAPI::test_no_finalize_template_data", "tests/test_api.py::TestExtendedAPI::test_context_finalize",...
jyangballin/swesmith.x86_64.pallets_1776_jinja.ada0a9a6
true
null
1
64
4
1,113
0
0.6
1
0.75
1
0.398833
81.4715
4,433
swe_smith::train::10692
swe_smith
train
10,692
paramiko__paramiko.23f92003.func_pm_class_rm_funcs__f2579kug
swesmith/paramiko__paramiko.23f92003
paramiko/paramiko
python
null
GSS-API key exchange fails with AttributeError on parse_next method #### Description When using GSS-API key exchange, the connection fails with an AttributeError because the `parse_next` method is missing from the `KexGSSGroup1` class. #### Steps/Code to Reproduce ```python import paramiko # Set up SSH client with...
diff --git a/paramiko/kex_gss.py b/paramiko/kex_gss.py index 2a5f29e..0ed1057 100644 --- a/paramiko/kex_gss.py +++ b/paramiko/kex_gss.py @@ -120,26 +120,6 @@ class KexGSSGroup1: MSG_KEXGSS_ERROR, ) - def parse_next(self, ptype, m): - """ - Parse the next packet. - - :para...
["tests/test_transport.py::TransportTest::test_reverse_port_forwarding"]
["tests/agent.py::AgentKey_::str_is_repr", "tests/agent.py::AgentKey_::init::needs_at_least_two_arguments", "tests/agent.py::AgentKey_::init::sets_attributes_and_parses_blob", "tests/agent.py::AgentKey_::init::comment_optional", "tests/agent.py::AgentKey_::init::sets_inner_key_when_known_type[rsa]", "tests/agent.py::Ag...
jyangballin/swesmith.x86_64.paramiko_1776_paramiko.23f92003
true
null
1
66
1
1,073
0
0.6
1
0.75
1
0.398833
81.4715
4,434
swe_smith::train::34476
swe_smith
train
34,476
iterative__dvc.1d6ea681.pr_9123
swesmith/iterative__dvc.1d6ea681
iterative/dvc
python
null
# Stage cache fails when using local.fs instead of legacy.fs ## Description I'm encountering an issue with the stage cache functionality. When trying to run a stage that should be cached, I'm getting an AttributeError. ## How to reproduce: 1. Create a simple DVC pipeline with a stage that has outputs ```python # Cr...
diff --git a/dvc/daemon.py b/dvc/daemon.py index 432cc2c..e3cf592 100644 --- a/dvc/daemon.py +++ b/dvc/daemon.py @@ -20,31 +20,30 @@ from dvc.utils.collections import ensure_list logger = logger.getChild(__name__) - -def _suppress_resource_warning(popen: subprocess.Popen) -> None: - """Sets the returncode to av...
["tests/unit/stage/test_cache.py::test_stage_cache", "tests/unit/stage/test_cache.py::test_stage_cache_params", "tests/unit/stage/test_cache.py::test_stage_cache_wdir", "tests/unit/stage/test_cache.py::test_shared_stage_cache"]
["tests/unit/fs/test_dvc.py::test_exists", "tests/unit/fs/test_dvc.py::test_open", "tests/unit/fs/test_dvc.py::test_open_dirty_hash", "tests/unit/fs/test_dvc.py::test_open_dirty_no_hash", "tests/unit/fs/test_dvc.py::test_open_in_history", "tests/unit/fs/test_dvc.py::test_isdir_isfile", "tests/unit/fs/test_dvc.py::test_...
jyangballin/swesmith.x86_64.iterative_1776_dvc.1d6ea681
true
null
2
49
4
1,412
0
0.6
1
0.75
1
0.398667
81.471
4,435
swe_smith::train::21158
swe_smith
train
21,158
tobymao__sqlglot.036601ba.lm_rewrite__q6vhmeq5
swesmith/tobymao__sqlglot.036601ba
tobymao/sqlglot
python
null
# JSON extraction with path segments fails for complex paths When using JSON extraction functions with complex paths, the extraction fails. This happens specifically when trying to extract nested JSON elements with array indices and multiple path segments. ## Reproduction Here's a simple example that demonstrates th...
diff --git a/sqlglot/dialects/dialect.py b/sqlglot/dialects/dialect.py index 019833f..a88205e 100644 --- a/sqlglot/dialects/dialect.py +++ b/sqlglot/dialects/dialect.py @@ -1640,36 +1640,38 @@ def merge_without_target_sql(self: Generator, expression: exp.Merge) -> str: return self.merge_sql(expression) -def bu...
["tests/dialects/test_dialect.py::TestDialect::test_json"]
["tests/dialects/test_dialect.py::TestDialect::test_alias", "tests/dialects/test_dialect.py::TestDialect::test_array", "tests/dialects/test_dialect.py::TestDialect::test_array_any", "tests/dialects/test_dialect.py::TestDialect::test_cast", "tests/dialects/test_dialect.py::TestDialect::test_cast_to_user_defined_type", "...
jyangballin/swesmith.x86_64.tobymao_1776_sqlglot.036601ba
true
null
1
56
1
1,272
0
0.6
1
0.75
1
0.398667
81.471
4,436
swe_smith::train::10124
swe_smith
train
10,124
paramiko__paramiko.23f92003.combine_file__hopfyy2u
swesmith/paramiko__paramiko.23f92003
paramiko/paramiko
python
null
KexGex _generate_x method uses undefined variables #### Description The `_generate_x` method in `KexGex` class has variables being used before they are defined, causing `UnboundLocalError` during key exchange operations. #### Steps/Code to Reproduce ```python import paramiko from paramiko.kex_gex import KexGex from...
diff --git a/paramiko/kex_gex.py b/paramiko/kex_gex.py index baa0803..acb19d0 100644 --- a/paramiko/kex_gex.py +++ b/paramiko/kex_gex.py @@ -106,23 +106,22 @@ class KexGex: # ...internals... def _generate_x(self): - # generate an "x" (1 < x < (p-1)/2). - q = (self.p - 1) // 2 - qnorm = ...
["tests/test_kex.py::KexTest::test_gex_client", "tests/test_kex.py::KexTest::test_gex_old_client", "tests/test_kex.py::KexTest::test_gex_server", "tests/test_kex.py::KexTest::test_gex_server_with_old_client", "tests/test_kex.py::KexTest::test_gex_sha256_client", "tests/test_kex.py::KexTest::test_gex_sha256_old_client",...
["tests/agent.py::AgentKey_::str_is_repr", "tests/agent.py::AgentKey_::init::needs_at_least_two_arguments", "tests/agent.py::AgentKey_::init::sets_attributes_and_parses_blob", "tests/agent.py::AgentKey_::init::comment_optional", "tests/agent.py::AgentKey_::init::sets_inner_key_when_known_type[rsa]", "tests/agent.py::Ag...
jyangballin/swesmith.x86_64.paramiko_1776_paramiko.23f92003
true
null
1
60
8
1,191
0
0.6
1
0.75
1
0.3985
81.4705
4,437
swe_smith::train::10200
swe_smith
train
10,200
paramiko__paramiko.23f92003.combine_file__ush54ctd
swesmith/paramiko__paramiko.23f92003
paramiko/paramiko
python
null
SSH key exchange fails with incorrect parameter ordering and validation #### Description When performing SSH key exchange using the Diffie-Hellman Group Exchange (GEX) method, connections are failing due to incorrect parameter handling and validation logic. The issue affects both client and server modes across differ...
diff --git a/paramiko/kex_gex.py b/paramiko/kex_gex.py index baa0803..dae1265 100644 --- a/paramiko/kex_gex.py +++ b/paramiko/kex_gex.py @@ -62,9 +62,9 @@ class KexGex: self.q = None self.g = None self.x = None - self.e = None + self.e = "" self.f = None - self.o...
["tests/test_kex.py::KexTest::test_gex_client", "tests/test_kex.py::KexTest::test_gex_old_client", "tests/test_kex.py::KexTest::test_gex_server", "tests/test_kex.py::KexTest::test_gex_sha256_client", "tests/test_kex.py::KexTest::test_gex_sha256_old_client", "tests/test_kex.py::KexTest::test_gex_sha256_server"]
["tests/agent.py::AgentKey_::str_is_repr", "tests/agent.py::AgentKey_::init::needs_at_least_two_arguments", "tests/agent.py::AgentKey_::init::sets_attributes_and_parses_blob", "tests/agent.py::AgentKey_::init::comment_optional", "tests/agent.py::AgentKey_::init::sets_inner_key_when_known_type[rsa]", "tests/agent.py::Ag...
jyangballin/swesmith.x86_64.paramiko_1776_paramiko.23f92003
true
null
1
50
6
1,389
0
0.6
1
0.75
1
0.398167
81.4695
4,438
swe_smith::train::46698
swe_smith
train
46,698
python-trio__trio.cfbbe2c1.combine_file__yoi51089
swesmith/python-trio__trio.cfbbe2c1
python-trio/trio
python
null
AsyncIOWrapper breaks when accessing async methods due to incorrect async_wraps usage #### Description The `AsyncIOWrapper` class fails when trying to access async methods like `read`, `write`, etc. The wrapper generation is broken and causes `TypeError` when attempting to use these methods. #### Steps/Code to Repro...
diff --git a/src/trio/_file_io.py b/src/trio/_file_io.py index 5a612ff..78dca7c 100644 --- a/src/trio/_file_io.py +++ b/src/trio/_file_io.py @@ -237,25 +237,27 @@ class AsyncIOWrapper(AsyncResource, Generic[FileT_co]): if not TYPE_CHECKING: def __getattr__(self, name: str) -> object: + """Ret...
["src/trio/_tests/test_file_io.py::test_wrap_invalid", "src/trio/_tests/test_file_io.py::test_wrap_non_iobase", "src/trio/_tests/test_file_io.py::test_async_methods_generated_once", "src/trio/_tests/test_file_io.py::test_async_methods_signature", "src/trio/_tests/test_file_io.py::test_async_methods_wrap", "src/trio/_te...
["src/trio/_core/_tests/test_asyncgen.py::test_asyncgen_basics", "src/trio/_core/_tests/test_asyncgen.py::test_asyncgen_throws_during_finalization", "src/trio/_core/_tests/test_asyncgen.py::test_firstiter_after_closing", "src/trio/_core/_tests/test_asyncgen.py::test_interdependent_asyncgen_cleanup_order", "src/trio/_co...
jyangballin/swesmith.x86_64.python-trio_1776_trio.cfbbe2c1
true
null
1
48
8
1,429
0
0.6
1
0.75
1
0.398167
81.4695
4,439
swe_bench::test::1319
swe_bench
test
1,319
pylint-dev__pylint-4398
pylint-dev/pylint
pylint-dev/pylint
python
43133c56d47bbc60e51a7f40433116b826eb18b7
Add --fail-on option to always return error code if specific issues (or issue types) are found We're using pylint in CI with two primary goals: 1. Ensure there are no error-category issues - this can be achieved by looking at the exit code 2. Ensure the overall linting score doesn't deteriorate too much - this can be ...
@das-intensity thanks for this suggestion. @hippo91 so I'm quite interested in getting this done (ideally the second option, `--fail-on`), and happy to do the dev myself. I just don't want to get a PR in for this, only to be **then** told it doesn't fit the design of pylint/etc. Do you have any suggestion on how to pro...
diff --git a/pylint/lint/pylinter.py b/pylint/lint/pylinter.py --- a/pylint/lint/pylinter.py +++ b/pylint/lint/pylinter.py @@ -264,6 +264,17 @@ def make_options(): "help": "Specify a score threshold to be exceeded before program exits with error.", }, ), + (...
diff --git a/tests/test_self.py b/tests/test_self.py --- a/tests/test_self.py +++ b/tests/test_self.py @@ -741,6 +741,69 @@ def test_fail_under(self): code=22, ) + @pytest.mark.parametrize( + "fu_score,fo_msgs,fname,out", + [ + # Essentially same test cases as --fail-...
["tests/test_self.py::TestRunTC::test_fail_on[-10-missing-function-docstring-fail_under_plus7_5.py-16]", "tests/test_self.py::TestRunTC::test_fail_on[6-missing-function-docstring-fail_under_plus7_5.py-16]", "tests/test_self.py::TestRunTC::test_fail_on[7.5-missing-function-docstring-fail_under_plus7_5.py-16]", "tests/te...
["tests/test_self.py::TestRunTC::test_pkginfo", "tests/test_self.py::TestRunTC::test_all", "tests/test_self.py::TestRunTC::test_no_ext_file", "tests/test_self.py::TestRunTC::test_w0704_ignored", "tests/test_self.py::TestRunTC::test_exit_zero", "tests/test_self.py::TestRunTC::test_generate_config_option", "tests/test_se...
null
true
2021-04-24T23:33:42Z
2
56
24
1,068
0
0.8
1
0.55
1
0.364667
81.469
4,440
swe_smith::train::10286
swe_smith
train
10,286
paramiko__paramiko.23f92003.func_basic__3rkemr8m
swesmith/paramiko__paramiko.23f92003
paramiko/paramiko
python
null
Password authentication fails with reversed password #### Description Password authentication is not working correctly. When attempting to authenticate with a password, the authentication fails even with correct credentials. #### Steps/Code to Reproduce ```python import paramiko # Create SSH client client = parami...
diff --git a/paramiko/transport.py b/paramiko/transport.py index f0fcb97..0a904e5 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -1574,90 +1574,33 @@ class Transport(threading.Thread, ClosingContextManager): self.auth_handler.auth_none(username, my_event) return self.auth_handler.wa...
["tests/auth.py::AuthHandler_::bad_auth_type", "tests/auth.py::AuthHandler_::bad_password", "tests/auth.py::AuthHandler_::multipart_auth", "tests/auth.py::AuthHandler_::interactive_fallback", "tests/test_client.py::SSHClientTest::test_auth_trickledown", "tests/test_client.py::SSHClientTest::test_auto_add_policy", "test...
["tests/agent.py::AgentKey_::str_is_repr", "tests/agent.py::AgentKey_::init::needs_at_least_two_arguments", "tests/agent.py::AgentKey_::init::sets_attributes_and_parses_blob", "tests/agent.py::AgentKey_::init::comment_optional", "tests/agent.py::AgentKey_::init::sets_inner_key_when_known_type[rsa]", "tests/agent.py::Ag...
jyangballin/swesmith.x86_64.paramiko_1776_paramiko.23f92003
true
null
1
71
50
968
0
0.6
1
0.75
1
0.398
81.469
4,441
swe_smith::train::11009
swe_smith
train
11,009
rsalmei__alive-progress.35853799.combine_module__0gw3h2wg
swesmith/rsalmei__alive-progress.35853799
rsalmei/alive-progress
python
null
Progress bars broken after recent changes I'm getting errors when trying to use progress bars. It seems like something got broken in the recent updates. Here's a simple reproduction: ```python from alive_progress import alive_bar with alive_bar(100) as bar: for i in range(100): bar() ``` This used to w...
diff --git a/alive_progress/animations/bars.py b/alive_progress/animations/bars.py index e2e5359..996d9b1 100644 --- a/alive_progress/animations/bars.py +++ b/alive_progress/animations/bars.py @@ -72,15 +72,6 @@ def bar_factory(chars=None, *, tip=None, background=None, borders=None, errors=N border = overf...
["tests/animations/test_bars.py::test_bar_tip_background[--0.5-False-|0123456789|]", "tests/animations/test_bars.py::test_bar_tip_background[=--0.5-False-|0123456789|]", "tests/animations/test_bars.py::test_bar_tip_background[_-=--0.5-False-|0123456789|]", "tests/animations/test_bars.py::test_bar_tip_background[-0.0-Fa...
["tests/animations/test_bars.py::test_bar_error[params0]", "tests/animations/test_bars.py::test_bar_error[params1]", "tests/animations/test_spinners.py::test_frame_spinner[a\\nb-expected0]", "tests/animations/test_spinners.py::test_frame_spinner[abc-expected1]", "tests/animations/test_spinners.py::test_frame_spinner[fr...
jyangballin/swesmith.x86_64.rsalmei_1776_alive-progress.35853799
true
null
2
84
182
703
0
0.6
1
0.75
1
0.397167
81.4665
4,442
swe_smith::train::28343
swe_smith
train
28,343
encode__starlette.db5063c2.combine_file__kxav95wm
swesmith/encode__starlette.db5063c2
encode/starlette
python
null
# Decorator methods in Starlette application return incorrect values and have incorrect parameter order ### Describe the bug I've found issues with the decorator methods in the Starlette application class. The decorators are not returning the decorated function but instead returning `self` (the application instance)....
diff --git a/starlette/applications.py b/starlette/applications.py index 0a717bb..446d382 100644 --- a/starlette/applications.py +++ b/starlette/applications.py @@ -170,10 +170,10 @@ class Starlette: ) def decorator(func: typing.Callable) -> typing.Callable: # type: ignore[type-arg] - se...
["tests/test_applications.py::test_decorator_deprecations"]
["tests/middleware/test_base.py::test_custom_middleware[asyncio]", "tests/middleware/test_base.py::test_state_data_across_multiple_middlewares[asyncio]", "tests/middleware/test_base.py::test_app_middleware_argument[asyncio]", "tests/middleware/test_base.py::test_fully_evaluated_response[asyncio]", "tests/middleware/tes...
jyangballin/swesmith.x86_64.encode_1776_starlette.db5063c2
true
null
1
10
1
2,183
0
0.6
1
0.75
1
0.397167
81.4665
4,443
swe_smith::train::45570
swe_smith
train
45,570
conan-io__conan.86f29e13.combine_file__4owxm3xu
swesmith/conan-io__conan.86f29e13
conan-io/conan
python
null
### Bug: Android NDK Path Configuration Issue It seems there's an issue with the Android NDK path configuration in the `GnuToolchain` class. When attempting to cross-compile for Android, the toolchain does not correctly handle the NDK path, leading to unexpected behavior. ### Expected Behavior The toolchain should c...
diff --git a/conan/tools/gnu/gnutoolchain.py b/conan/tools/gnu/gnutoolchain.py index 1b22240..dba6f33 100644 --- a/conan/tools/gnu/gnutoolchain.py +++ b/conan/tools/gnu/gnutoolchain.py @@ -37,17 +37,13 @@ class GnuToolchain: raise_on_universal_arch(conanfile) self._conanfile = conanfile self....
["test/unittests/tools/gnu/test_gnutoolchain.py::test_get_gnu_triplet_for_cross_building", "test/unittests/tools/gnu/test_gnutoolchain.py::test_get_toolchain_cppstd", "test/unittests/tools/gnu/test_gnutoolchain.py::test_msvc_runtime[static-Debug-MTd]", "test/unittests/tools/gnu/test_gnutoolchain.py::test_msvc_runtime[s...
["test/unittests/tools/gnu/test_gnutoolchain.py::test_get_gnu_triplet_for_cross_building_raise_error"]
jyangballin/swesmith.x86_64.conan-io_1776_conan.86f29e13
true
null
1
37
13
1,641
0
0.6
1
0.75
1
0.396833
81.4655
4,444
swe_smith::train::18527
swe_smith
train
18,527
HIPS__autograd.ac044f0d.lm_rewrite__cy12xl6n
swesmith/HIPS__autograd.ac044f0d
hips/autograd
python
null
### Issue: `value_and_grad` Functionality Regression #### Description After updating the `value_and_grad` function, it seems to have introduced a regression that affects its ability to handle certain types of input. Specifically, the function now raises a `TypeError` when attempting to unpack the results, which was n...
diff --git a/autograd/differential_operators.py b/autograd/differential_operators.py index 21c35ee..77b9309 100644 --- a/autograd/differential_operators.py +++ b/autograd/differential_operators.py @@ -164,15 +164,24 @@ def make_ggnvp(f, g=lambda x: 1.0 / 2 * np.sum(x**2, axis=-1), f_argnum=0): def value_and_grad(fun, ...
["tests/test_binary_ops.py::test_comparison_values", "tests/test_wrappers.py::test_return_both", "tests/test_wrappers.py::test_value_and_grad", "tests/test_wrappers.py::test_value_and_multigrad"]
["tests/test_core.py::test_sub", "tests/test_direct.py::test_grad", "tests/test_fft.py::test_rfftn_odd_not_implemented", "tests/test_core.py::test_div", "tests/test_direct.py::test_deriv", "tests/test_linalg.py::test_norm_axis[shape0-2]", "tests/test_linalg.py::test_inv_3d", "tests/test_core.py::test_mul", "tests/test_...
jyangballin/swesmith.x86_64.hips_1776_autograd.ac044f0d
true
null
1
27
4
1,841
0
0.6
1
0.75
1
0.396833
81.4655
4,445
swe_smith::train::26632
swe_smith
train
26,632
pylint-dev__astroid.b114f6b5.lm_rewrite__yl1w79yz
swesmith/pylint-dev__astroid.b114f6b5
pylint-dev/astroid
python
null
Slice with Zero Step Raises Unexpected Error Description It seems that when attempting to use a slice with a step of zero, an unexpected error is raised. This behavior is not consistent with typical Python slicing, where a zero step should raise a ValueError. Instead, the current implementation appears to handle this...
diff --git a/astroid/nodes/node_classes.py b/astroid/nodes/node_classes.py index fde3239..fea008b 100644 --- a/astroid/nodes/node_classes.py +++ b/astroid/nodes/node_classes.py @@ -239,38 +239,54 @@ def _infer_slice(node, context: InferenceContext | None = None): ) -def _container_getitem(instance, elts, index...
["tests/test_inference.py::test_slice_zero_step_does_not_raise_ValueError"]
["tests/brain/numpy/test_core_einsumfunc.py::test_numpy_function_calls_inferred_as_ndarray", "tests/brain/numpy/test_core_einsumfunc.py::test_function_parameters", "tests/brain/numpy/test_core_fromnumeric.py::BrainNumpyCoreFromNumericTest::test_numpy_function_calls_inferred_as_ndarray", "tests/brain/numpy/test_core_fun...
jyangballin/swesmith.x86_64.pylint-dev_1776_astroid.b114f6b5
true
null
1
72
1
941
0
0.6
1
0.75
1
0.396833
81.4655
4,446
swe_smith::train::5104
swe_smith
train
5,104
agronholm__exceptiongroup.0b4f4937.combine_module__l5god4ul
swesmith/agronholm__exceptiongroup.0b4f4937
agronholm/exceptiongroup
python
null
# ExceptionGroup.subgroup() method is broken and returns incorrect results ## Description The `subgroup()` method in `BaseExceptionGroup` is not working correctly. When trying to filter exceptions using this method, it returns incorrect results or None when it should return a valid exception group. ## Steps to repro...
diff --git a/src/exceptiongroup/_exceptions.py b/src/exceptiongroup/_exceptions.py index a4a7ace..386e103 100644 --- a/src/exceptiongroup/_exceptions.py +++ b/src/exceptiongroup/_exceptions.py @@ -110,13 +110,15 @@ class BaseExceptionGroup(BaseException, Generic[_BaseExceptionT_co]): @property def message(s...
["tests/test_catch.py::test_catch_handler_raises", "tests/test_exceptions.py::ExceptionGroupFields::test_basics_ExceptionGroup_fields", "tests/test_exceptions.py::ExceptionGroupSubgroupTests::test_basics_subgroup_by_predicate__match", "tests/test_exceptions.py::ExceptionGroupSubgroupTests::test_basics_subgroup_by_predi...
["tests/test_catch.py::test_bad_arg", "tests/test_catch.py::test_bad_handler", "tests/test_catch.py::test_catch_exceptiongroup[naked_basegroup]", "tests/test_catch.py::test_catch_exceptiongroup[naked_group]", "tests/test_catch.py::test_catch_exceptiongroup[iterable_basegroup]", "tests/test_catch.py::test_catch_exceptio...
jyangballin/swesmith.x86_64.agronholm_1776_exceptiongroup.0b4f4937
true
null
2
32
40
1,740
0
0.6
1
0.75
1
0.396667
81.465
4,447
swe_smith::train::47237
swe_smith
train
47,237
python-trio__trio.cfbbe2c1.lm_rewrite__0kru2rjr
swesmith/python-trio__trio.cfbbe2c1
python-trio/trio
python
null
### Issue with `repark` Method in `ParkingLot` Class I've encountered an issue with the `repark` method in the `ParkingLot` class. When attempting to move tasks from one parking lot to another, the method does not behave as expected under certain conditions. ### Describe the Bug The `repark` method is supposed to tr...
diff --git a/src/trio/_core/_parking_lot.py b/src/trio/_core/_parking_lot.py index af6ff61..e333c35 100644 --- a/src/trio/_core/_parking_lot.py +++ b/src/trio/_core/_parking_lot.py @@ -223,12 +223,8 @@ class ParkingLot: return self.unpark(count=len(self)) @_core.enable_ki_protection - def repark( - ...
["src/trio/_core/_tests/test_parking_lot.py::test_parking_lot_repark"]
["src/trio/_core/_tests/test_asyncgen.py::test_asyncgen_basics", "src/trio/_core/_tests/test_asyncgen.py::test_asyncgen_throws_during_finalization", "src/trio/_core/_tests/test_asyncgen.py::test_firstiter_after_closing", "src/trio/_core/_tests/test_asyncgen.py::test_interdependent_asyncgen_cleanup_order", "src/trio/_co...
jyangballin/swesmith.x86_64.python-trio_1776_trio.cfbbe2c1
true
null
1
37
1
1,640
0
0.6
1
0.75
1
0.396667
81.465
4,448
swe_smith::train::48984
swe_smith
train
48,984
facebookresearch__hydra.0f03eb60.lm_rewrite__fd507nww
swesmith/facebookresearch__hydra.0f03eb60
facebookresearch/hydra
python
null
### Issue with `tag` Function Handling of Sweep Arguments The recent changes to the `tag` function in `grammar_functions.py` have introduced an issue with how sweep arguments are handled. The function is expected to tag a sweep with a list of string tags, but it seems to be failing under certain conditions. #### Step...
diff --git a/hydra/_internal/grammar/grammar_functions.py b/hydra/_internal/grammar/grammar_functions.py index 879b06b..19e80be 100644 --- a/hydra/_internal/grammar/grammar_functions.py +++ b/hydra/_internal/grammar/grammar_functions.py @@ -250,33 +250,47 @@ def interval(start: Union[int, float], end: Union[int, float]...
["tests/test_overrides_parser.py::test_override[choice:tags-change]", "tests/test_overrides_parser.py::test_override[choice:tags-add]", "tests/test_overrides_parser.py::test_override[choice:tags-force_add]", "tests/test_overrides_parser.py::test_override[choice:tags-del]", "tests/test_overrides_parser.py::test_override...
["build_helpers/test_helpers.py::test_find[none]", "build_helpers/test_helpers.py::test_find[all]", "build_helpers/test_helpers.py::test_find[filter_a]", "build_helpers/test_helpers.py::test_find[include_a]", "build_helpers/test_helpers.py::test_find[include_a,exclude_file1]", "build_helpers/test_helpers.py::test_find[...
jyangballin/swesmith.x86_64.facebookresearch_1776_hydra.0f03eb60
true
null
1
58
18
1,214
0
0.6
1
0.75
1
0.395667
81.462
4,449
swe_bench::dev::199
swe_bench
dev
199
sqlfluff__sqlfluff-3411
sqlfluff/sqlfluff
sqlfluff/sqlfluff
python
e60272a859e37e335088ae79a7ad59ea771545a1
Update warning for parsing errors found on the ansi dialect ### Search before asking - [X] I searched the [issues](https://github.com/sqlfluff/sqlfluff/issues) and found no similar issues. ### Description In the past specifying a dialect was **optional**. If unspecified, the dialect defaulted to `ansi`. Because of t...
Pending feedback from the admins, I'm happy to submit a pull request on this one. Been thinking about it, and I think we should show the message for all dialects. Some people might be using an incorrect dialect if their dialect is not supported.
diff --git a/src/sqlfluff/cli/commands.py b/src/sqlfluff/cli/commands.py --- a/src/sqlfluff/cli/commands.py +++ b/src/sqlfluff/cli/commands.py @@ -1079,8 +1079,10 @@ def _print_out_violations_and_timing( output_stream.write("==== parsing violations ====") # pragma: no cover for v in parsed_string...
diff --git a/test/cli/commands_test.py b/test/cli/commands_test.py --- a/test/cli/commands_test.py +++ b/test/cli/commands_test.py @@ -100,6 +100,53 @@ def test__cli__command_dialect(): ) +def test__cli__command_parse_error_dialect_explicit_warning(): + """Check parsing error raises the right warning.""" + ...
["test/cli/commands_test.py::test__cli__command_parse_error_dialect_explicit_warning", "test/cli/commands_test.py::test__cli__command_parse_error_dialect_implicit_warning"]
["test/cli/commands_test.py::test__cli__command_directed", "test/cli/commands_test.py::test__cli__command_dialect", "test/cli/commands_test.py::test__cli__command_dialect_legacy", "test/cli/commands_test.py::test__cli__command_extra_config_fail", "test/cli/commands_test.py::test__cli__command_lint_stdin[command0]", "te...
null
true
2022-05-30T18:41:48Z
3
20
2
1,772
0
0.8
1
0.55
1
0.362
81.461
4,450
swe_smith::train::24441
swe_smith
train
24,441
sunpy__sunpy.f8edfd5c.lm_rewrite__xuevyv1i
swesmith/sunpy__sunpy.f8edfd5c
sunpy/sunpy
python
null
### Issue with Resample Function in SunPy Hello SunPy team, I've encountered an issue with the `resample` function in the `sunpy.image.resample` module. After updating to the latest version, I noticed that the function is not behaving as expected when using certain interpolation methods. ### Description When attemp...
diff --git a/sunpy/image/resample.py b/sunpy/image/resample.py index c7b72f5..4d0474e 100644 --- a/sunpy/image/resample.py +++ b/sunpy/image/resample.py @@ -49,31 +49,27 @@ def resample(orig, dimensions, method='linear', center=False, minusone=False): ---------- https://scipy-cookbook.readthedocs.io/items/Reb...
["sunpy/image/tests/test_resample.py::test_resample_nearest", "sunpy/image/tests/test_resample.py::test_resample_linear"]
["sunpy/image/tests/test_resample.py::test_resample_spline", "sunpy/image/tests/test_resample.py::test_reshape"]
jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c
true
null
1
36
2
1,652
0
0.6
1
0.75
1
0.395333
81.461
4,451
swe_smith::train::6850
swe_smith
train
6,850
joke2k__faker.8b401a7d.lm_rewrite__dgf8ak24
swesmith/joke2k__faker.8b401a7d
joke2k/faker
python
null
# Argument groups in template parsing no longer raise AttributeError ## Description I noticed that when using template parsing with unknown argument groups, the behavior has changed. Previously, when using an unknown argument group in a template, an AttributeError would be raised with a message indicating the unknown...
diff --git a/faker/generator.py b/faker/generator.py index 5eda964..df5f8c9 100644 --- a/faker/generator.py +++ b/faker/generator.py @@ -175,17 +175,23 @@ class Generator: return _re_token.sub(self.__format_token, text) def __format_token(self, matches): - formatter, argument_group = list(matches...
["tests/test_generator.py::TestGenerator::test_parse_with_unknown_arguments_group"]
["tests/providers/__init__.py::TestBaseProvider::test_locale", "tests/providers/__init__.py::TestBaseProvider::test_language_code", "tests/providers/__init__.py::TestBaseProvider::test_random_digit", "tests/providers/__init__.py::TestBaseProvider::test_random_digit_not_null", "tests/providers/__init__.py::TestBaseProvi...
jyangballin/swesmith.x86_64.joke2k_1776_faker.8b401a7d
true
null
1
34
1
1,691
0
0.6
1
0.75
1
0.395167
81.4605
4,452
swe_smith::train::1711
swe_smith
train
1,711
agronholm__typeguard.b6a7e438.combine_module__i2krl5ot
swesmith/agronholm__typeguard.b6a7e438
agronholm/typeguard
python
null
@typechecked decorator not working on class methods and properties #### Description The `@typechecked` decorator appears to have stopped working when applied to classes. Methods, static methods, class methods, and properties within decorated classes are no longer being type-checked, allowing invalid types to pass thr...
diff --git a/src/typeguard/_decorators.py b/src/typeguard/_decorators.py index a6c20cb..bace6fb 100644 --- a/src/typeguard/_decorators.py +++ b/src/typeguard/_decorators.py @@ -187,26 +187,7 @@ def typechecked( if isclass(target): for key, attr in target.__dict__.items(): - if is_method_of(at...
["tests/test_checkers.py::TestLiteral::test_literal_union", "tests/test_checkers.py::TestMapping::test_bad_key_type", "tests/test_checkers.py::TestMapping::test_bad_value_type", "tests/test_checkers.py::TestMapping::test_bad_key_type_full_check", "tests/test_checkers.py::TestMapping::test_bad_value_type_full_check", "t...
["tests/mypy/test_type_annotations.py::test_positive", "tests/mypy/test_type_annotations.py::test_negative", "tests/test_checkers.py::TestAnyStr::test_valid[str]", "tests/test_checkers.py::TestAnyStr::test_valid[bytes]", "tests/test_checkers.py::TestAnyStr::test_bad_type", "tests/test_checkers.py::TestBytesLike::test_v...
jyangballin/swesmith.x86_64.agronholm_1776_typeguard.b6a7e438
true
null
2
56
92
1,250
0
0.6
1
0.75
1
0.395
81.46
4,453
r2e_gym::train::4353
r2e_gym
train
4,353
numpy__3d5d12f186c7fe375d0b21f72b28a3bc87d25cc0
numpy
numpy/numpy
python
3d5d12f186c7fe375d0b21f72b28a3bc87d25cc0
**Analysis:** - **Key Parts:** - **Commit Message:** "MAINT: Remove newline before dtype in repr of arrays." - **Test Results:** Previously, five tests related to array representations failed because the `dtype` was printed on a new line. After the commit, these tests pass, indicating that `dtype` is now included ...
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py --- a/numpy/core/arrayprint.py +++ b/numpy/core/arrayprint.py @@ -180,7 +180,7 @@ position of floats and different behavior for 0d arrays. If set to `False`, disables legacy mode. Unrecognized strings will be ignored with a warn...
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 @@ -7,6 +7,7 @@ from numpy.testing import ( run_module_suite, assert_, assert_equal, assert_raises, assert_warns ) +import textwrap class ...
null
null
namanjain12/numpy_final:3d5d12f186c7fe375d0b21f72b28a3bc87d25cc0
true
null
1
37
null
2,339
0
0.75
1
0.6375
1
0.513167
81.45825
4,454
swe_smith::train::3527
swe_smith
train
3,527
pygments__pygments.27649ebb.combine_file__ux2hnz4z
swesmith/pygments__pygments.27649ebb
pygments/pygments
python
null
Shell session lexer produces incorrect token positions after recent changes #### Description The shell session lexer is generating incorrect token positions and failing to properly handle backslash continuations. When processing shell session code with prompts and continuations, the lexer is reversing line content an...
diff --git a/pygments/lexers/shell.py b/pygments/lexers/shell.py index 8f074c9..14b8263 100644 --- a/pygments/lexers/shell.py +++ b/pygments/lexers/shell.py @@ -173,7 +173,7 @@ class ShellSessionBaseLexer(Lexer): if venv_match: venv = venv_match.group(1) venv_whitespace = ...
["tests/test_basic_api.py::test_random_input[MSDOSSessionLexer]", "tests/test_basic_api.py::test_random_input[BatchLexer]", "tests/test_basic_api.py::test_lexer_options[BatchLexer]", "tests/examplefiles/console/example.sh-session::", "tests/snippets/console/test_newline_in_ls_no_ps2.txt::", "tests/snippets/console/test...
["tests/test_rtf_formatter.py::test_hl_linenostart_lines_highlighted", "tests/test_rtf_formatter.py::test_rtf_footer", "tests/test_rtf_formatter.py::test_rtf_header", "tests/test_rtf_formatter.py::test_lineno_color_style_specify_hex", "tests/test_rtf_formatter.py::test_linenos_newline_characters", "tests/test_rtf_forma...
jyangballin/swesmith.x86_64.pygments_1776_pygments.27649ebb
true
null
1
45
15
1,465
0
0.6
1
0.75
1
0.394167
81.4575
4,455
swe_smith::train::24446
swe_smith
train
24,446
sunpy__sunpy.f8edfd5c.combine_file__33t1txvz
swesmith/sunpy__sunpy.f8edfd5c
sunpy/sunpy
python
null
# Multiple utility functions broken in sunpy.util ## Description Several utility functions in the `sunpy.util` module are broken and causing errors: 1. The `unique` function raises an `UnboundLocalError` about accessing the `items` variable 2. The `expand_list_generator` function doesn't properly flatten iterables 3...
diff --git a/sunpy/util/util.py b/sunpy/util/util.py index d469453..59d6150 100644 --- a/sunpy/util/util.py +++ b/sunpy/util/util.py @@ -32,7 +32,6 @@ def unique(itr, key=None): `set`: A `set` of each unique element. """ - items = set() if key is None: for elem in itr: i...
["sunpy/util/tests/test_util.py::test_unique", "sunpy/util/tests/test_util.py::test_unique_key", "sunpy/util/tests/test_util.py::test_expand_list_generator[input_data1-expected_output1]", "sunpy/util/tests/test_util.py::test_expand_list_generator[input_data2-expected_output2]", "sunpy/util/tests/test_util.py::test_expa...
["sunpy/util/tests/test_util.py::test_replacement_filename", "sunpy/util/tests/test_util.py::test_replacement_filename_path_not_exists", "sunpy/util/tests/test_util.py::test_expand_list", "sunpy/util/tests/test_util.py::test_expand_list_generator[input_data0-expected_output0]", "sunpy/util/tests/test_util.py::test_expa...
jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c
true
null
1
46
6
1,443
0
0.6
1
0.75
1
0.393833
81.4565
4,456
swe_smith::train::42832
swe_smith
train
42,832
python-jsonschema__jsonschema.93e0caa5.lm_rewrite__k1000g7s
swesmith/python-jsonschema__jsonschema.93e0caa5
python-jsonschema/jsonschema
python
null
### Inconsistent Error Formatting in Pretty Output #### Description When using the pretty output format, error messages for invalid instances are not displayed as expected. The issue arises when multiple errors are present for a single instance or across multiple instances. The output does not consistently format the...
diff --git a/jsonschema/exceptions.py b/jsonschema/exceptions.py index 3dcd296..017ef3c 100644 --- a/jsonschema/exceptions.py +++ b/jsonschema/exceptions.py @@ -93,35 +93,25 @@ class _Error(Exception): def __repr__(self) -> str: return f"<{self.__class__.__name__}: {self.message!r}>" - def __str__(se...
["jsonschema/tests/test_cli.py::TestCLI::test_invalid_instance_multiple_errors_pretty_output", "jsonschema/tests/test_cli.py::TestCLI::test_invalid_instance_pretty_output", "jsonschema/tests/test_cli.py::TestCLI::test_multiple_invalid_instances_pretty_output", "jsonschema/tests/test_exceptions.py::TestErrorInitReprStr:...
["jsonschema/tests/test_cli.py::TestCLI::test_custom_error_format", "jsonschema/tests/test_cli.py::TestCLI::test_custom_error_format_applies_to_schema_errors", "jsonschema/tests/test_cli.py::TestCLI::test_instance_does_not_exist", "jsonschema/tests/test_cli.py::TestCLI::test_instance_does_not_exist_pretty_output", "jso...
jyangballin/swesmith.x86_64.python-jsonschema_1776_jsonschema.93e0caa5
true
null
1
46
9
1,443
0
0.6
1
0.75
1
0.393833
81.4565
4,457
swe_smith::train::34480
swe_smith
train
34,480
iterative__dvc.1d6ea681.pr_9181
swesmith/iterative__dvc.1d6ea681
iterative/dvc
python
null
# Initialization of RepoDependency objects causing issues with subrepos ## Description I've encountered an issue with the initialization of `RepoDependency` objects that's causing problems when working with subrepos. The issue appears to be related to the order of initialization in the `RepoDependency` class. When t...
diff --git a/dvc/dependency/repo.py b/dvc/dependency/repo.py index c49efca..ef193fc 100644 --- a/dvc/dependency/repo.py +++ b/dvc/dependency/repo.py @@ -34,6 +34,8 @@ class RepoDependency(Dependency): def __init__(self, def_repo: dict[str, Any], stage: "Stage", *args, **kwargs): self.def_repo = def_repo...
["tests/unit/repo/test_open_repo.py::test_hook_is_called", "tests/unit/repo/test_open_repo.py::test_subrepo_is_constructed_properly[False]", "tests/unit/repo/test_open_repo.py::test_subrepo_is_constructed_properly[True]"]
["tests/func/test_repo.py::test_open_bare", "tests/func/test_repo.py::test_destroy", "tests/unit/dependency/test_dependency.py::test_save_missing", "tests/unit/dependency/test_params.py::test_loads_params", "tests/unit/dependency/test_params.py::test_loads_params_without_any_specific_targets", "tests/unit/dependency/te...
jyangballin/swesmith.x86_64.iterative_1776_dvc.1d6ea681
true
null
2
32
3
1,723
0
0.6
1
0.75
1
0.393833
81.4565
4,458
r2e_gym::train::4188
r2e_gym
train
4,188
numpy__59fec4619403762a5d785ad83fcbde5a230416fc
numpy
numpy/numpy
python
59fec4619403762a5d785ad83fcbde5a230416fc
**Title:** Incorrect Handling of Explicit `einsum_path` in `numpy.einsum_path` **Description:** When providing an explicit `einsum_path` to `numpy.einsum_path`, the function does not correctly process the specified path, leading to unexpected contraction sequences. Additionally, invalid `einsum_path` inputs do not tri...
diff --git a/numpy/core/einsumfunc.py b/numpy/core/einsumfunc.py --- a/numpy/core/einsumfunc.py +++ b/numpy/core/einsumfunc.py @@ -821,6 +821,7 @@ if path_type is None: path_type = False + explicit_einsum_path = False memory_limit = None # No optimization or a named path algorithm @@ -829...
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 @@ -1089,6 +1089,32 @@ opt = np.einsum(*path_test, optimize=exp_path) assert_almost_equal(noopt, opt) + def test_path_type_input_internal_trac...
null
null
namanjain12/numpy_final:59fec4619403762a5d785ad83fcbde5a230416fc
true
null
1
20
null
2,675
0
0.75
1
0.6375
1
0.5125
81.45625
4,459
swe_smith::train::21820
swe_smith
train
21,820
life4__textdistance.c3aca916.combine_file__xd4omdiw
swesmith/life4__textdistance.c3aca916
life4/textdistance
python
null
Editex algorithm broken after recent changes #### Description The Editex phonetic distance algorithm is completely broken and throws AttributeError when trying to calculate distances between strings. This affects both the edit-based and phonetic versions of the algorithm. #### Steps/Code to Reproduce ```python impo...
diff --git a/textdistance/algorithms/phonetic.py b/textdistance/algorithms/phonetic.py index 53cbc0d..986babc 100644 --- a/textdistance/algorithms/phonetic.py +++ b/textdistance/algorithms/phonetic.py @@ -30,8 +30,8 @@ class MRA(_BaseSimilarity): """ def maximum(self, *sequences: str) -> int: - seque...
["tests/test_common.py::test_normalization_range[alg17]", "tests/test_common.py::test_normalization_range[alg23]", "tests/test_common.py::test_normalization_by_one[alg23]", "tests/test_common.py::test_normalization_same[alg17]", "tests/test_common.py::test_normalization_same[alg23]", "tests/test_common.py::test_normali...
["tests/test_common.py::test_normalization_range[alg0]", "tests/test_common.py::test_normalization_range[alg1]", "tests/test_common.py::test_normalization_range[alg2]", "tests/test_common.py::test_normalization_range[alg3]", "tests/test_common.py::test_normalization_range[alg4]", "tests/test_common.py::test_normalizati...
jyangballin/swesmith.x86_64.life4_1776_textdistance.c3aca916
true
null
1
55
50
1,262
0
0.6
1
0.75
1
0.393667
81.456
4,460
swe_smith::train::47369
swe_smith
train
47,369
sqlfluff__sqlfluff.50a1c4b6.combine_file__961acwjw
swesmith/sqlfluff__sqlfluff.50a1c4b6
sqlfluff/sqlfluff
python
null
ParseContext.from_config method broken due to variable reference before assignment #### Description The `ParseContext.from_config` method is failing with an `UnboundLocalError` because the `indentation_config` variable is being used before it's assigned. The method tries to process the indentation config in a try-exc...
diff --git a/src/sqlfluff/core/parser/context.py b/src/sqlfluff/core/parser/context.py index 7edf331..349c5ca 100644 --- a/src/sqlfluff/core/parser/context.py +++ b/src/sqlfluff/core/parser/context.py @@ -117,15 +117,6 @@ class ParseContext: @classmethod def from_config(cls, config: "FluffConfig") -> "Parse...
["test/core/parser/grammar/grammar_anyof_test.py::test__parser__grammar_oneof[True]", "test/core/parser/grammar/grammar_anyof_test.py::test__parser__grammar_oneof[False]", "test/core/parser/grammar/grammar_anyof_test.py::test__parser__grammar_oneof_templated", "test/core/parser/grammar/grammar_anyof_test.py::test__pars...
["test/core/parser/grammar/grammar_anyof_test.py::test__parser__grammar__oneof__copy", "test/core/parser/grammar/grammar_anyof_test.py::test__parser__grammar_anyof_modes[ParseMode.STRICT-options1-terminators1-input_slice1-kwargs1-output_tuple1]", "test/core/parser/grammar/grammar_anyof_test.py::test__parser__grammar_an...
jyangballin/swesmith.x86_64.sqlfluff_1776_sqlfluff.50a1c4b6
true
null
1
55
55
1,261
0
0.6
1
0.75
1
0.3935
81.4555
4,461
swe_smith::train::17292
swe_smith
train
17,292
kennethreitz__records.5941ab27.lm_rewrite__9giocolr
swesmith/kennethreitz__records.5941ab27
kennethreitz/records
python
null
# RecordCollection slicing doesn't work properly I found an issue with slicing in RecordCollection. When trying to use slices with RecordCollection objects, it fails with a NameError. Here's a simple reproduction: ```python from records import RecordCollection # Create a RecordCollection with some data data = [{"id...
diff --git a/records.py b/records.py index b5b6766..5d302f2 100644 --- a/records.py +++ b/records.py @@ -146,24 +146,54 @@ class RecordCollection(object): raise StopIteration("RecordCollection contains no more rows.") def __getitem__(self, key): + """Support for indexing and slicing the Recor...
["tests/test_records.py::TestRecordCollection::test_slice_iter"]
["tests/test_105.py::test_issue105[sqlite_memory]", "tests/test_69.py::test_issue69[sqlite_memory]", "tests/test_records.py::TestRecordCollection::test_iter", "tests/test_records.py::TestRecordCollection::test_next", "tests/test_records.py::TestRecordCollection::test_iter_and_next", "tests/test_records.py::TestRecordCo...
jyangballin/swesmith.x86_64.kennethreitz_1776_records.5941ab27
true
null
1
62
1
1,121
0
0.6
1
0.75
1
0.3935
81.4555
4,462
swe_smith::train::31694
swe_smith
train
31,694
benoitc__gunicorn.bacbf8aa.lm_rewrite__l4tg5kfz
swesmith/benoitc__gunicorn.bacbf8aa
benoitc/gunicorn
python
null
Invalid HTTP Response Header Handling ### Describe the bug It seems there's an issue with processing certain HTTP response headers. When headers are passed to the `process_headers` function, it raises a `TypeError` unexpectedly. This behavior is inconsistent with the expected handling of headers, which should allow f...
diff --git a/gunicorn/http/wsgi.py b/gunicorn/http/wsgi.py index 419ac50..239417b 100644 --- a/gunicorn/http/wsgi.py +++ b/gunicorn/http/wsgi.py @@ -252,37 +252,40 @@ class Response: return self.write def process_headers(self, headers): + """ + Process the headers that are set by the appli...
["tests/test_http.py::test_http_invalid_response_header"]
["tests/test_arbiter.py::test_arbiter_stop_closes_listeners", "tests/test_arbiter.py::test_arbiter_stop_child_does_not_unlink_listeners", "tests/test_arbiter.py::test_arbiter_stop_parent_does_not_unlink_listeners", "tests/test_arbiter.py::test_arbiter_stop_does_not_unlink_systemd_listeners", "tests/test_arbiter.py::tes...
jyangballin/swesmith.x86_64.benoitc_1776_gunicorn.bacbf8aa
true
null
1
61
1
1,140
0
0.6
1
0.75
1
0.393333
81.455
4,463
swe_smith::train::47293
swe_smith
train
47,293
python-trio__trio.cfbbe2c1.lm_rewrite__onpj40se
swesmith/python-trio__trio.cfbbe2c1
python-trio/trio
python
null
# REPL doesn't properly handle coroutines and exceptions I've found an issue with the Trio REPL's handling of coroutines and exceptions. When using the interactive console, it doesn't properly execute coroutines or handle exceptions as expected. ## Reproduction Here's a simple example that demonstrates the issue: `...
diff --git a/src/trio/_repl.py b/src/trio/_repl.py index f9efcc0..d08311c 100644 --- a/src/trio/_repl.py +++ b/src/trio/_repl.py @@ -27,33 +27,36 @@ class TrioInteractiveConsole(InteractiveConsole): self.compile.compiler.flags |= ast.PyCF_ALLOW_TOP_LEVEL_AWAIT def runcode(self, code: types.CodeType) -> ...
["src/trio/_tests/test_repl.py::test_basic_interaction", "src/trio/_tests/test_repl.py::test_KI_interrupts", "src/trio/_tests/test_repl.py::test_base_exception_captured", "src/trio/_tests/test_repl.py::test_base_exception_capture_from_coroutine"]
["src/trio/_core/_tests/test_asyncgen.py::test_asyncgen_basics", "src/trio/_core/_tests/test_asyncgen.py::test_asyncgen_throws_during_finalization", "src/trio/_core/_tests/test_asyncgen.py::test_firstiter_after_closing", "src/trio/_core/_tests/test_asyncgen.py::test_interdependent_asyncgen_cleanup_order", "src/trio/_co...
jyangballin/swesmith.x86_64.python-trio_1776_trio.cfbbe2c1
true
null
1
55
4
1,259
0
0.6
1
0.75
1
0.393167
81.4545
4,464
swe_smith::train::35728
swe_smith
train
35,728
stanfordnlp__dspy.651a4c71.func_pm_remove_assign__w1dgmuhy
swesmith/stanfordnlp__dspy.651a4c71
stanfordnlp/dspy
python
null
# [Bug]: Python Interpreter fails with undefined variables and missing error handling ## Bug description The Python Interpreter module is failing to execute code properly due to several issues: 1. The `variables` parameter is not being initialized properly 2. The `input_data` variable is being used before it's defin...
diff --git a/dspy/primitives/python_interpreter.py b/dspy/primitives/python_interpreter.py index 7cb63bf..ed92b7c 100644 --- a/dspy/primitives/python_interpreter.py +++ b/dspy/primitives/python_interpreter.py @@ -84,12 +84,8 @@ class PythonInterpreter: code: str, variables: Optional[Dict[str, Any]] = ...
["tests/signatures/test_adapter_image.py::test_pdf_url_support", "tests/signatures/test_adapter_image.py::test_different_mime_types", "tests/signatures/test_adapter_image.py::test_mime_type_from_response_headers", "tests/signatures/test_adapter_image.py::test_pdf_from_file"]
["tests/adapters/test_chat_adapter.py::test_chat_adapter_sync_call", "tests/adapters/test_chat_adapter.py::test_chat_adapter_async_call", "tests/adapters/test_json_adapter.py::test_json_adapter_with_structured_outputs_does_not_mutate_original_signature", "tests/adapters/test_json_adapter.py::test_json_adapter_sync_call...
jyangballin/swesmith.x86_64.stanfordnlp_1776_dspy.651a4c71
true
null
1
12
4
2,118
0
0.6
1
0.75
1
0.393
81.454
4,465
swe_smith::train::902
swe_smith
train
902
oauthlib__oauthlib.1fd52536.lm_rewrite__qs5qapuw
swesmith/oauthlib__oauthlib.1fd52536
oauthlib/oauthlib
python
null
# [Bug]: Claims parameter validation is broken in OpenID Connect ### Bug summary When using a malformed claims parameter in an OpenID Connect request, the library no longer raises an appropriate error. Instead, it silently converts the malformed claims to an empty dictionary. ### Code for reproduction ```python fro...
diff --git a/oauthlib/openid/connect/core/grant_types/base.py b/oauthlib/openid/connect/core/grant_types/base.py index 29d583e..b511136 100644 --- a/oauthlib/openid/connect/core/grant_types/base.py +++ b/oauthlib/openid/connect/core/grant_types/base.py @@ -34,17 +34,23 @@ class GrantTypeBase: return self.proxy...
["tests/openid/connect/core/endpoints/test_claims_handling.py::TestClaimsHandling::test_invalid_claims"]
["tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_check_request_token", "tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_check_verifier", "tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_valid_request", "tests/oauth...
jyangballin/swesmith.x86_64.oauthlib_1776_oauthlib.1fd52536
true
null
1
24
1
1,876
0
0.6
1
0.75
1
0.392667
81.453
4,466
swe_smith::train::28431
swe_smith
train
28,431
encode__starlette.db5063c2.combine_module__hqposzja
swesmith/encode__starlette.db5063c2
encode/starlette
python
null
# HTTP 204 and 304 responses return content when they shouldn't When using the ExceptionMiddleware with HTTP status codes 204 (No Content) or 304 (Not Modified), the middleware incorrectly returns a response with content, which violates the HTTP specification. ## Description According to the HTTP specification, resp...
diff --git a/starlette/middleware/errors.py b/starlette/middleware/errors.py index 76ad776..c432849 100644 --- a/starlette/middleware/errors.py +++ b/starlette/middleware/errors.py @@ -187,16 +187,15 @@ class ServerErrorMiddleware: raise exc def format_line(self, index: int, line: str, frame_lineno:...
["tests/middleware/test_errors.py::test_debug_html[asyncio]", "tests/middleware/test_errors.py::test_debug_html[trio]", "tests/test_exceptions.py::test_not_modified[asyncio]", "tests/test_exceptions.py::test_not_modified[trio]"]
["tests/middleware/test_base.py::test_custom_middleware[asyncio]", "tests/middleware/test_base.py::test_state_data_across_multiple_middlewares[asyncio]", "tests/middleware/test_base.py::test_app_middleware_argument[asyncio]", "tests/middleware/test_base.py::test_fully_evaluated_response[asyncio]", "tests/middleware/tes...
jyangballin/swesmith.x86_64.encode_1776_starlette.db5063c2
true
null
2
20
4
1,956
0
0.6
1
0.75
1
0.392667
81.453
4,467
swe_bench::test::1274
swe_bench
test
1,274
pydata__xarray-5682
pydata/xarray
pydata/xarray
python
2705c63e0c03a21d2bbce3a337fac60dd6f6da59
Complex LaTeX expressions in `long_name`s aren't rendered correctly when plotting **What happened**: When I try to give a variable a `long_name` that's a complex latex expression and then plot that variable the expression doesn't get rendered by latex **What you expected to happen**: I expected the name to get rend...
Note that for simple latex expressions xarray appears to work fine. For example `name = r"$\mathrm{mean}(\epsilon_k)$"` works in both figures in the example above. I agree this is annoying but there is no good solution AFAIK. We use textwrap here: https://github.com/pydata/xarray/blob/8b95da8e21a9d31de9f79cb0506720...
diff --git a/xarray/plot/utils.py b/xarray/plot/utils.py --- a/xarray/plot/utils.py +++ b/xarray/plot/utils.py @@ -490,7 +490,13 @@ def _get_units_from_attrs(da): else: units = _get_units_from_attrs(da) - return "\n".join(textwrap.wrap(name + extra + units, 30)) + # Treat `name` differently if it'...
diff --git a/xarray/tests/test_plot.py b/xarray/tests/test_plot.py --- a/xarray/tests/test_plot.py +++ b/xarray/tests/test_plot.py @@ -2950,3 +2950,10 @@ def test_datarray_scatter(x, y, z, hue, markersize, row, col, add_legend, add_co add_legend=add_legend, add_colorbar=add_colorbar, ...
["xarray/tests/test_plot.py::test_latex_name_isnt_split"]
["xarray/tests/test_plot.py::TestPlot::test_accessor", "xarray/tests/test_plot.py::TestPlot::test_label_from_attrs", "xarray/tests/test_plot.py::TestPlot::test1d", "xarray/tests/test_plot.py::TestPlot::test_1d_bool", "xarray/tests/test_plot.py::TestPlot::test_1d_x_y_kw", "xarray/tests/test_plot.py::TestPlot::test_multi...
null
true
2021-08-07T14:18:16Z
1
8
1
1,995
0
0.8
1
0.55
1
0.359167
81.4525
4,468
swe_smith::train::29758
swe_smith
train
29,758
getnikola__nikola.0f4c230e.combine_file__yw7bzwyp
swesmith/getnikola__nikola.0f4c230e
getnikola/nikola
python
null
Nikola build command fails with AttributeError after recent changes #### Description After some recent changes to the main module, running `nikola build` or other commands results in an AttributeError. The task loading mechanism seems to be broken. #### Steps/Code to Reproduce ```bash # In any Nikola site directory...
diff --git a/nikola/__main__.py b/nikola/__main__.py index 7ff5ce2..7c621fb 100644 --- a/nikola/__main__.py +++ b/nikola/__main__.py @@ -79,13 +79,6 @@ def main(args=None): conf_filename = 'conf.py' conf_filename_changed = False - for index, arg in enumerate(args): - if arg[:7] == '--conf=': - ...
["tests/integration/test_archive_full.py::test_avoid_double_slash_in_rss", "tests/integration/test_archive_full.py::test_index_in_sitemap", "tests/integration/test_archive_full.py::test_full_archive[overall]", "tests/integration/test_archive_full.py::test_full_archive[year]", "tests/integration/test_archive_full.py::te...
["tests/integration/test_archive_full.py::test_check_files", "tests/integration/test_archive_full.py::test_check_links", "tests/integration/test_archive_per_day.py::test_check_files", "tests/integration/test_archive_per_day.py::test_check_links", "tests/integration/test_archive_per_month.py::test_check_files", "tests/i...
jyangballin/swesmith.x86_64.getnikola_1776_nikola.0f4c230e
true
null
1
73
107
895
0
0.6
1
0.75
1
0.3925
81.4525
4,469
swe_smith::train::38481
swe_smith
train
38,481
amueller__word_cloud.ec24191c.func_basic__qx261w5g
swesmith/amueller__word_cloud.ec24191c
amueller/word_cloud
python
null
# ImageColorGenerator fails with "cannot reshape array of size X into shape (3)" error ## Description I've been trying to use the `ImageColorGenerator` to color my word cloud based on an image, but I'm getting a strange error. When I try to recolor my word cloud with an image that's smaller than the canvas, I get a `...
diff --git a/wordcloud/color_from_image.py b/wordcloud/color_from_image.py index 4bce014..a7df076 100644 --- a/wordcloud/color_from_image.py +++ b/wordcloud/color_from_image.py @@ -33,26 +33,21 @@ class ImageColorGenerator(object): def __call__(self, word, font_size, font_path, position, orientation, **kwargs): ...
["test/test_wordcloud.py::test_recolor_too_small", "test/test_wordcloud.py::test_recolor_too_small_set_default", "test/test_wordcloud.py::test_coloring_black_works"]
["test/test_wordcloud.py::test_collocations", "test/test_wordcloud.py::test_collocation_stopwords", "test/test_wordcloud.py::test_collocation_stopwords_uppercase", "test/test_wordcloud.py::test_plurals_numbers", "test/test_wordcloud.py::test_multiple_s", "test/test_wordcloud.py::test_empty_text", "test/test_wordcloud.p...
jyangballin/swesmith.x86_64.amueller_1776_word_cloud.ec24191c
true
null
1
21
3
1,934
0
0.6
1
0.75
1
0.392333
81.452
4,470
swe_smith::train::42703
swe_smith
train
42,703
python-jsonschema__jsonschema.93e0caa5.func_pm_ctrl_shuffle__7liw8or9
swesmith/python-jsonschema__jsonschema.93e0caa5
python-jsonschema/jsonschema
python
null
CLI validation fails with UnboundLocalError when processing schema #### Description The jsonschema CLI tool crashes with an `UnboundLocalError` when trying to validate instances against a schema. The error occurs because variables are being used before they are defined in the code flow. #### Steps/Code to Reproduce ...
diff --git a/jsonschema/cli.py b/jsonschema/cli.py index cf6298e..0c625b0 100644 --- a/jsonschema/cli.py +++ b/jsonschema/cli.py @@ -242,24 +242,6 @@ def run(arguments, stdout=sys.stdout, stderr=sys.stderr, stdin=sys.stdin): # no stderr=stderr, ) - try: - schema = outputter.load(arguments["sc...
["jsonschema/tests/test_cli.py::TestCLI::test_custom_error_format", "jsonschema/tests/test_cli.py::TestCLI::test_custom_error_format_applies_to_schema_errors", "jsonschema/tests/test_cli.py::TestCLI::test_instance_does_not_exist", "jsonschema/tests/test_cli.py::TestCLI::test_instance_does_not_exist_pretty_output", "jso...
["jsonschema/tests/test_cli.py::TestParser::test_find_validator_by_fully_qualified_object_name", "jsonschema/tests/test_cli.py::TestParser::test_find_validator_in_jsonschema", "jsonschema/tests/test_cli.py::TestParser::test_unknown_output", "jsonschema/tests/test_cli.py::TestParser::test_useless_error_format", "jsonsch...
jyangballin/swesmith.x86_64.python-jsonschema_1776_jsonschema.93e0caa5
true
null
1
40
43
1,553
0
0.6
1
0.75
1
0.392167
81.4515
4,471
swe_smith::train::52348
swe_smith
train
52,348
pydicom__pydicom.7d361b3d.func_pm_class_rm_funcs__cod7z299
swesmith/pydicom__pydicom.7d361b3d
pydicom/pydicom
python
null
TM class constructor broken after removing __new__ method #### Description The TM class is no longer working properly. When trying to create TM objects from strings or other time objects, it's throwing TypeError exceptions instead of creating valid TM instances. #### Steps/Code to Reproduce ```python import pydicom...
diff --git a/src/pydicom/valuerep.py b/src/pydicom/valuerep.py index c81f96d..66d65b1 100644 --- a/src/pydicom/valuerep.py +++ b/src/pydicom/valuerep.py @@ -830,76 +830,6 @@ class TM(_DateTimeBase, datetime.time): r"(\.(?P<ms>([0-9]{1,6})?))?)?)?$" ) - def __new__( # type: ignore[misc] - cls:...
["tests/test_filewriter.py::TestScratchWriteDateTime::test_multivalue_DA", "tests/test_valuerep.py::TestTM::test_pickling", "tests/test_valuerep.py::TestTM::test_pickling_tm_from_time", "tests/test_valuerep.py::TestTM::test_str_and_repr", "tests/test_valuerep.py::TestTM::test_new_empty_str", "tests/test_valuerep.py::Te...
["tests/pixels/test_common.py::TestRunnerBase::test_init", "tests/pixels/test_common.py::TestRunnerBase::test_del_option", "tests/pixels/test_common.py::TestRunnerBase::test_option_properties", "tests/pixels/test_common.py::TestRunnerBase::test_planar_configuration", "tests/pixels/test_common.py::TestRunnerBase::test_s...
jyangballin/swesmith.x86_64.pydicom_1776_pydicom.7d361b3d
true
null
1
70
10
951
0
0.6
1
0.75
1
0.391833
81.4505
4,472
swe_smith::train::26597
swe_smith
train
26,597
pylint-dev__astroid.b114f6b5.lm_rewrite__lkvvgs6u
swesmith/pylint-dev__astroid.b114f6b5
pylint-dev/astroid
python
null
### Issue with Property Inference #### Describe the Bug It seems that there is an issue with the inference of properties. When attempting to infer properties, a `TypeError` is raised unexpectedly. This behavior is not consistent with the expected functionality, where properties should be inferred without errors. ###...
diff --git a/astroid/brain/brain_builtin_inference.py b/astroid/brain/brain_builtin_inference.py index a56b152..74b1250 100644 --- a/astroid/brain/brain_builtin_inference.py +++ b/astroid/brain/brain_builtin_inference.py @@ -620,45 +620,38 @@ def infer_callable(node, context: InferenceContext | None = None): retur...
["tests/brain/test_builtin.py::BuiltinsTest::test_infer_property", "tests/test_inference.py::test_property_callable_inference", "tests/test_regrtest.py::test_regression_missing_callcontext"]
["tests/brain/numpy/test_core_einsumfunc.py::test_numpy_function_calls_inferred_as_ndarray", "tests/brain/numpy/test_core_einsumfunc.py::test_function_parameters", "tests/brain/numpy/test_core_fromnumeric.py::BrainNumpyCoreFromNumericTest::test_numpy_function_calls_inferred_as_ndarray", "tests/brain/numpy/test_core_fun...
jyangballin/swesmith.x86_64.pylint-dev_1776_astroid.b114f6b5
true
null
1
55
3
1,250
0
0.6
1
0.75
1
0.391667
81.45
4,473
swe_smith::train::52404
swe_smith
train
52,404
pydicom__pydicom.7d361b3d.func_pm_ctrl_shuffle__41me2ngv
swesmith/pydicom__pydicom.7d361b3d
pydicom/pydicom
python
null
FileSet.add() method broken due to variable reference errors #### Description The `FileSet.add()` method is currently broken and raises `UnboundLocalError` when trying to add instances to a file set. The method appears to have variable reference issues where variables are being used before they are defined. #### Ste...
diff --git a/src/pydicom/fileset.py b/src/pydicom/fileset.py index 75976eb..35257fd 100644 --- a/src/pydicom/fileset.py +++ b/src/pydicom/fileset.py @@ -1002,6 +1002,19 @@ class FileSet: self.UID = generate_uid() def add(self, ds_or_path: DSPathType) -> FileInstance: + ds.save_as(instance.pat...
["tests/test_fileset.py::TestRecordNode::test_add", "tests/test_fileset.py::TestRecordNode::test_key", "tests/test_fileset.py::TestRecordNode::test_key_raises", "tests/test_fileset.py::TestRecordNode::test_file_id_singleton", "tests/test_fileset.py::TestRecordNode::test_file_id_missing", "tests/test_fileset.py::TestFil...
["tests/pixels/test_common.py::TestRunnerBase::test_init", "tests/pixels/test_common.py::TestRunnerBase::test_del_option", "tests/pixels/test_common.py::TestRunnerBase::test_option_properties", "tests/pixels/test_common.py::TestRunnerBase::test_planar_configuration", "tests/pixels/test_common.py::TestRunnerBase::test_s...
jyangballin/swesmith.x86_64.pydicom_1776_pydicom.7d361b3d
true
null
1
59
50
1,169
0
0.6
1
0.75
1
0.3915
81.4495
4,474
swe_smith::train::24476
swe_smith
train
24,476
sunpy__sunpy.f8edfd5c.combine_module__798wwceh
swesmith/sunpy__sunpy.f8edfd5c
sunpy/sunpy
python
null
WCS property returns UnboundLocalError when accessing map attributes #### Description When trying to access various map properties or methods that depend on the WCS, an `UnboundLocalError` is raised for the variable `w2`. This affects basic map functionality including coordinate transformations, plotting, and metadat...
diff --git a/sunpy/map/mapbase.py b/sunpy/map/mapbase.py index bdcac77..2d59675 100644 --- a/sunpy/map/mapbase.py +++ b/sunpy/map/mapbase.py @@ -619,6 +619,28 @@ class GenericMap(NDData): @property @cached_property_based_on('_meta_hash') def wcs(self): + + # Set observer coordinate information exc...
["sunpy/map/tests/test_mapbase.py::test_wcs", "sunpy/map/tests/test_mapbase.py::test_wcs_pv", "sunpy/map/tests/test_mapbase.py::test_wcs_cache", "sunpy/map/tests/test_mapbase.py::test_header_immutability", "sunpy/map/tests/test_mapbase.py::test_coordinate_frame", "sunpy/map/tests/test_mapbase.py::test_observer_hgln_crl...
["sunpy/map/tests/test_mapbase.py::test_notes_combined", "sunpy/map/tests/test_mapbase.py::test_notes_combined_no_references", "sunpy/map/tests/test_mapbase.py::test_notes_combined_no_existing_notes", "sunpy/map/tests/test_mapbase.py::test_notes_combined_no_notes_no_references", "sunpy/map/tests/test_mapbase.py::test_f...
jyangballin/swesmith.x86_64.sunpy_1776_sunpy.f8edfd5c
true
null
2
56
73
1,229
0
0.6
1
0.75
1
0.3915
81.4495
4,475
swe_smith::train::6904
swe_smith
train
6,904
joke2k__faker.8b401a7d.lm_rewrite__y01j1c7z
swesmith/joke2k__faker.8b401a7d
joke2k/faker
python
null
Hue Range Handling in RandomColor Class is Inconsistent Description (last modified by CodeLover123) It seems there's an issue with how the `RandomColor` class handles hue ranges, particularly when dealing with certain inputs. When providing a tuple with inverted values, such as `[75, 45]`, the function doesn't handl...
diff --git a/faker/providers/color/color.py b/faker/providers/color/color.py index 756942b..39872bf 100644 --- a/faker/providers/color/color.py +++ b/faker/providers/color/color.py @@ -301,29 +301,21 @@ class RandomColor: return color_input[0], color_input[1] - def get_hue_range(self, color_input: Optio...
["tests/providers/test_color.py::TestRandomColor::test_hue_integer", "tests/providers/test_color.py::TestRandomColor::test_hue_float", "tests/providers/test_color.py::TestRandomColor::test_hue_tuple_beyond_limits", "tests/providers/test_color.py::TestRandomColor::test_hue_tuple_inverted_values", "tests/providers/test_c...
["tests/providers/__init__.py::TestBaseProvider::test_locale", "tests/providers/__init__.py::TestBaseProvider::test_language_code", "tests/providers/__init__.py::TestBaseProvider::test_random_digit", "tests/providers/__init__.py::TestBaseProvider::test_random_digit_not_null", "tests/providers/__init__.py::TestBaseProvi...
jyangballin/swesmith.x86_64.joke2k_1776_faker.8b401a7d
true
null
1
32
6
1,709
0
0.6
1
0.75
1
0.3915
81.4495
4,476
swe_smith::train::28028
swe_smith
train
28,028
jsvine__pdfplumber.02ff4313.lm_rewrite__677zl144
swesmith/jsvine__pdfplumber.02ff4313
jsvine/pdfplumber
python
null
### Issue: Missing Object Types in JSON Output #### Description After updating the `to_dict` method in `pdfplumber/page.py`, it seems that certain object types are not being included in the JSON output as expected. Specifically, when converting a PDF page to JSON, the `rects` and `chars` object types are missing from...
diff --git a/pdfplumber/page.py b/pdfplumber/page.py index 71330d8..495b22e 100644 --- a/pdfplumber/page.py +++ b/pdfplumber/page.py @@ -641,25 +641,35 @@ class Page(Container): force_mediabox=force_mediabox, ) - def to_dict(self, object_types: Optional[List[str]] = None) -> Dict[str, Any]: -...
["tests/test_convert.py::Test::test_additional_attr_types", "tests/test_convert.py::Test::test_cli_json", "tests/test_convert.py::Test::test_json", "tests/test_convert.py::Test::test_json_all_types", "tests/test_convert.py::Test::test_json_attr_filter", "tests/test_convert.py::Test::test_page_to_dict", "tests/test_conv...
["tests/test_basics.py::Test::test_annots", "tests/test_basics.py::Test::test_annots_cropped", "tests/test_basics.py::Test::test_annots_rotated", "tests/test_basics.py::Test::test_bad_fileobj", "tests/test_basics.py::Test::test_colors", "tests/test_basics.py::Test::test_crop_and_filter", "tests/test_basics.py::Test::te...
jyangballin/swesmith.x86_64.jsvine_1776_pdfplumber.02ff4313
true
null
1
40
7
1,547
0
0.6
1
0.75
1
0.391167
81.4485
4,477
swe_smith::train::19581
swe_smith
train
19,581
seperman__deepdiff.ed252022.lm_rewrite__y7g8imn5
swesmith/seperman__deepdiff.ed252022
seperman/deepdiff
python
null
Unexpected Behavior in DeepSearch Dictionary Handling It seems there's an issue with how `DeepSearch` is handling dictionary searches. When searching for integers or custom objects within dictionaries, the function throws a `TypeError`. This behavior is unexpected and differs from previous versions where such searches...
diff --git a/deepdiff/search.py b/deepdiff/search.py index ae86ce0..3777caa 100644 --- a/deepdiff/search.py +++ b/deepdiff/search.py @@ -190,53 +190,49 @@ class DeepSearch(dict): return skip - def __search_dict(self, - obj, - item, - parent,...
["tests/test_search.py::TestDeepSearch::test_int_in_dictionary", "tests/test_search.py::TestDeepSearch::test_custom_object_in_dictionary_verbose", "tests/test_search.py::TestDeepSearch::test_skip_dictionary_path", "tests/test_search.py::TestDeepSearch::test_keep_searching_after_obj_match", "tests/test_search.py::TestDe...
["tests/test_anyset.py::TestAnySet::test_anyset_init1", "tests/test_anyset.py::TestAnySet::test_anyset_init2", "tests/test_anyset.py::TestAnySet::test_anyset_init3_add", "tests/test_anyset.py::TestAnySet::test_anyset_pop1", "tests/test_anyset.py::TestAnySet::test_iter_anyset", "tests/test_cache.py::TestCache::test_cach...
jyangballin/swesmith.x86_64.seperman_1776_deepdiff.ed252022
true
null
1
74
8
866
0
0.6
1
0.75
1
0.391
81.448
4,478
swe_smith::train::39657
swe_smith
train
39,657
tornadoweb__tornado.d5ac65c1.combine_file__sak2ytzf
swesmith/tornadoweb__tornado.d5ac65c1
tornadoweb/tornado
python
null
# Internationalization (i18n) broken in Tornado I'm trying to use Tornado's internationalization features but I'm running into several issues. The locale functionality seems to be broken. ## Problem When trying to load translations or use locale-specific formatting, I'm getting errors. Specifically: 1. The `load_tr...
diff --git a/tornado/locale.py b/tornado/locale.py index abd8668..6a37301 100644 --- a/tornado/locale.py +++ b/tornado/locale.py @@ -136,13 +136,12 @@ def load_translations(directory: str, encoding: Optional[str] = None) -> None: os.path.join(directory, path), ) continue - ...
["test_friendly_number (tornado.test.locale_test.EnglishTest)", "test_csv (tornado.test.locale_test.TranslationLoaderTest)", "test_csv_bom (tornado.test.locale_test.TranslationLoaderTest)", "test_gettext (tornado.test.locale_test.TranslationLoaderTest)", "test_accept_language (tornado.test.web_test.AcceptLanguageTest)"...
["Doctest: tornado.httputil.HTTPHeaders", "Doctest: tornado.httputil.HTTPHeaders.parse", "Doctest: tornado.httputil.HTTPHeaders.parse_line", "Doctest: tornado.httputil._encode_header", "Doctest: tornado.httputil._get_content_range", "Doctest: tornado.httputil._normalize_header", "Doctest: tornado.httputil._parse_header...
jyangballin/swesmith.x86_64.tornadoweb_1776_tornado.d5ac65c1
true
null
1
32
5
1,706
0
0.6
1
0.75
1
0.391
81.448
4,479
swe_smith::train::1041
swe_smith
train
1,041
jd__tenacity.0d40e76f.combine_file__8pa1fxvj
swesmith/jd__tenacity.0d40e76f
jd/tenacity
python
null
# Retry logic in tenacity is completely broken I was trying to use tenacity for retrying some operations in my code, but I noticed that the retry logic is completely broken in the latest version. ## Description The retry logic in tenacity seems to be inverted in several places. For example: 1. `retry_never` is actu...
diff --git a/tenacity/retry.py b/tenacity/retry.py index 9211631..883615a 100644 --- a/tenacity/retry.py +++ b/tenacity/retry.py @@ -49,7 +49,7 @@ class _retry_never(retry_base): """Retry strategy that never rejects any result.""" def __call__(self, retry_state: "RetryCallState") -> bool: - return Fa...
["tests/test_tenacity.py::TestWaitConditions::test_wait_retry_state_attributes", "tests/test_tenacity.py::TestRetryConditions::test_retry_all", "tests/test_tenacity.py::TestRetryConditions::test_retry_and", "tests/test_tenacity.py::TestRetryConditions::test_retry_any", "tests/test_tenacity.py::TestRetryConditions::test...
["tests/test_after.py::TestAfterLogFormat::test_01_default", "tests/test_after.py::TestAfterLogFormat::test_02_custom_sec_format", "tests/test_asyncio.py::TestAsyncio::test_attempt_number_is_correct_for_interleaved_coroutines", "tests/test_asyncio.py::TestAsyncio::test_iscoroutinefunction", "tests/test_asyncio.py::Test...
jyangballin/swesmith.x86_64.jd_1776_tenacity.0d40e76f
true
null
1
16
9
2,023
0
0.6
1
0.75
1
0.3905
81.4465
4,480
swe_smith::train::10159
swe_smith
train
10,159
paramiko__paramiko.23f92003.combine_file__oisr9igt
swesmith/paramiko__paramiko.23f92003
paramiko/paramiko
python
null
SSH key exchange fails with incorrect message ordering and parameter handling #### Description When performing SSH key exchange using the Diffie-Hellman Group Exchange (GEX) method, connections are failing due to incorrect message construction and parameter handling. The issue affects both client and server modes acr...
diff --git a/paramiko/kex_gex.py b/paramiko/kex_gex.py index baa0803..4ba8e85 100644 --- a/paramiko/kex_gex.py +++ b/paramiko/kex_gex.py @@ -62,9 +62,9 @@ class KexGex: self.q = None self.g = None self.x = None - self.e = None + self.e = "" self.f = None - self.o...
["tests/test_kex.py::KexTest::test_gex_client", "tests/test_kex.py::KexTest::test_gex_old_client", "tests/test_kex.py::KexTest::test_gex_server", "tests/test_kex.py::KexTest::test_gex_server_with_old_client", "tests/test_kex.py::KexTest::test_gex_sha256_client", "tests/test_kex.py::KexTest::test_gex_sha256_old_client",...
["tests/agent.py::AgentKey_::str_is_repr", "tests/agent.py::AgentKey_::init::needs_at_least_two_arguments", "tests/agent.py::AgentKey_::init::sets_attributes_and_parses_blob", "tests/agent.py::AgentKey_::init::comment_optional", "tests/agent.py::AgentKey_::init::sets_inner_key_when_known_type[rsa]", "tests/agent.py::Ag...
jyangballin/swesmith.x86_64.paramiko_1776_paramiko.23f92003
true
null
1
47
8
1,402
0
0.6
1
0.75
1
0.390333
81.446
4,481
swe_bench::test::1482
swe_bench
test
1,482
pytest-dev__pytest-9359
pytest-dev/pytest
pytest-dev/pytest
python
e2ee3144ed6e241dea8d96215fcdca18b3892551
Error message prints extra code line when using assert in python3.9 - [x] a detailed description of the bug or problem you are having - [x] output of `pip list` from the virtual environment you are using - [x] pytest and operating system versions - [ ] minimal example if possible ### Description I have a test like thi...
diff --git a/src/_pytest/_code/source.py b/src/_pytest/_code/source.py --- a/src/_pytest/_code/source.py +++ b/src/_pytest/_code/source.py @@ -149,6 +149,11 @@ def get_statement_startend2(lineno: int, node: ast.AST) -> Tuple[int, Optional[i values: List[int] = [] for x in ast.walk(node): if isinstanc...
diff --git a/testing/code/test_source.py b/testing/code/test_source.py --- a/testing/code/test_source.py +++ b/testing/code/test_source.py @@ -618,6 +618,19 @@ def something(): assert str(source) == "def func(): raise ValueError(42)" +def test_decorator() -> None: + s = """\ +def foo(f): + pass + +@foo +...
["testing/code/test_source.py::test_decorator"]
["testing/code/test_source.py::test_source_str_function", "testing/code/test_source.py::test_source_from_function", "testing/code/test_source.py::test_source_from_method", "testing/code/test_source.py::test_source_from_lines", "testing/code/test_source.py::test_source_from_inner_function", "testing/code/test_source.py:...
null
true
2021-12-01T14:31:38Z
1
5
1
3,182
0
0.8
1
0.77
0.8
0.516667
81.445
4,482
swe_bench::test::1028
swe_bench
test
1,028
matplotlib__matplotlib-23964
matplotlib/matplotlib
matplotlib/matplotlib
python
269c0b94b4fcf8b1135011c1556eac29dc09de15
[Bug]: Text label with empty line causes a "TypeError: cannot unpack non-iterable NoneType object" in PostScript backend ### Bug summary When saving a figure with the PostScript backend, a > TypeError: cannot unpack non-iterable NoneType object happens if the figure contains a multi-line text label with an empty line...
diff --git a/lib/matplotlib/backends/backend_ps.py b/lib/matplotlib/backends/backend_ps.py --- a/lib/matplotlib/backends/backend_ps.py +++ b/lib/matplotlib/backends/backend_ps.py @@ -665,8 +665,9 @@ def draw_text(self, gc, x, y, s, prop, angle, ismath=False, mtext=None): curr_stream[1].append( ...
diff --git a/lib/matplotlib/tests/test_backend_ps.py b/lib/matplotlib/tests/test_backend_ps.py --- a/lib/matplotlib/tests/test_backend_ps.py +++ b/lib/matplotlib/tests/test_backend_ps.py @@ -256,6 +256,15 @@ def test_linedash(): assert buf.tell() > 0 +def test_empty_line(): + # Smoke-test for gh#23954 + ...
["lib/matplotlib/tests/test_backend_ps.py::test_empty_line"]
["lib/matplotlib/tests/test_backend_ps.py::test_savefig_to_stringio[ps-portrait]", "lib/matplotlib/tests/test_backend_ps.py::test_savefig_to_stringio[ps-landscape]", "lib/matplotlib/tests/test_backend_ps.py::test_savefig_to_stringio[ps", "lib/matplotlib/tests/test_backend_ps.py::test_savefig_to_stringio[eps-portrait]",...
null
true
2022-09-20T13:49:19Z
1
5
1
4,248
0
0.8
1
0.77
0.8
0.516667
81.445
4,483
swe_smith::train::9860
swe_smith
train
9,860
keleshev__schema.24a30457.lm_rewrite__aj7k3pzh
swesmith/keleshev__schema.24a30457
keleshev/schema
python
null
# JSON Schema references broken when generating schema with use_refs=True ## Description When generating a JSON schema with `use_refs=True`, the schema references are not working correctly. The issue appears to be in the reference generation mechanism. ## Steps to reproduce ```python from schema import Schema # Cr...
diff --git a/schema/__init__.py b/schema/__init__.py index 31bd71b..95bf2eb 100644 --- a/schema/__init__.py +++ b/schema/__init__.py @@ -598,18 +598,34 @@ class Schema(object): If already seen, give an id to the already seen dict and return a reference to the previous part of the schem...
["test_schema.py::test_json_schema_refs", "test_schema.py::test_json_schema_refs_no_missing"]
["test_schema.py::test_schema", "test_schema.py::test_validate_file", "test_schema.py::test_and", "test_schema.py::test_or", "test_schema.py::test_or_only_one", "test_schema.py::test_test", "test_schema.py::test_regex", "test_schema.py::test_validate_list", "test_schema.py::test_list_tuple_set_frozenset", "test_schema....
jyangballin/swesmith.x86_64.keleshev_1776_schema.24a30457
true
null
1
38
2
1,577
0
0.6
1
0.75
1
0.3895
81.4435
4,484
swe_smith::train::22621
swe_smith
train
22,621
graphql-python__graphene.82903263.combine_file__tqxzd94z
swesmith/graphql-python__graphene.82903263
graphql-python/graphene
python
null
# Enum comparison and hashing behavior is broken ## Description I've discovered a serious issue with the Enum implementation in Graphene. The comparison and hashing behavior of Enum values is not working correctly, which breaks several important use cases. ## Expected behavior Enum values should be comparable to th...
diff --git a/graphene/types/enum.py b/graphene/types/enum.py index bc61cd4..9521e82 100644 --- a/graphene/types/enum.py +++ b/graphene/types/enum.py @@ -8,12 +8,12 @@ from .unmountedtype import UnmountedType def eq_enum(self, other): if isinstance(other, self.__class__): - return self is other - retur...
["examples/starwars/tests/test_query.py::test_check_type_of_luke", "graphene/tests/issues/test_881.py::test_enums_pickling", "graphene/types/tests/test_enum.py::test_enum_can_be_compared", "graphene/types/tests/test_enum.py::test_enum_skip_meta_from_members", "graphene/types/tests/test_type_map.py::test_enum"]
["examples/starwars/tests/test_query.py::test_hero_name_query", "examples/starwars/tests/test_query.py::test_hero_name_and_friends_query", "examples/starwars/tests/test_query.py::test_nested_query", "examples/starwars/tests/test_query.py::test_fetch_luke_query", "examples/starwars/tests/test_query.py::test_fetch_some_i...
jyangballin/swesmith.x86_64.graphql-python_1776_graphene.82903263
true
null
1
16
5
2,016
0
0.6
1
0.75
1
0.389333
81.443
4,485
swe_smith::train::39593
swe_smith
train
39,593
pallets__jinja.ada0a9a6.lm_rewrite__ffkd8o8c
swesmith/pallets__jinja.ada0a9a6
pallets/jinja
python
null
### Bug Report: TypeError in String Formatting and Joining **Describe the Bug** After the recent changes, there seems to be an issue with string formatting and joining operations in templates. Specifically, when using the `format` and `join` methods with certain inputs, a `TypeError` is raised. This is affecting the r...
diff --git a/src/jinja2/compiler.py b/src/jinja2/compiler.py index 91720c5..45e78de 100644 --- a/src/jinja2/compiler.py +++ b/src/jinja2/compiler.py @@ -42,21 +42,28 @@ operators = { } -def optimizeconst(f: F) -> F: - def new_func( - self: "CodeGenerator", node: nodes.Expr, frame: "Frame", **kwargs: t.An...
["tests/test_async_filters.py::test_join_string_list[<lambda>0]", "tests/test_async_filters.py::test_join_string_list[<lambda>1]", "tests/test_filters.py::TestFilter::test_sort2", "tests/test_lexnparse.py::TestSyntax::test_subscript", "tests/test_security.py::TestStringFormat::test_safe_format_safety", "tests/test_secu...
["tests/test_api.py::TestExtendedAPI::test_item_and_attribute", "tests/test_api.py::TestExtendedAPI::test_finalize", "tests/test_api.py::TestExtendedAPI::test_finalize_constant_expression", "tests/test_api.py::TestExtendedAPI::test_no_finalize_template_data", "tests/test_api.py::TestExtendedAPI::test_context_finalize",...
jyangballin/swesmith.x86_64.pallets_1776_jinja.ada0a9a6
true
null
1
37
9
1,596
0
0.6
1
0.75
1
0.389333
81.443
4,486
swe_smith::train::3323
swe_smith
train
3,323
pygments__pygments.27649ebb.combine_file__7n7rzpjy
swesmith/pygments__pygments.27649ebb
pygments/pygments
python
null
OutputLexer and RawTokenLexer broken in special.py I found a bug in the OutputLexer and RawTokenLexer classes. When trying to use these lexers, they produce incorrect output and cause errors. For the OutputLexer, it's reversing the text and yielding the wrong position: ```python from pygments import highlight from p...
diff --git a/pygments/lexers/special.py b/pygments/lexers/special.py index b8680b7..9e79922 100644 --- a/pygments/lexers/special.py +++ b/pygments/lexers/special.py @@ -49,7 +49,7 @@ class OutputLexer(Lexer): _example = "output/output" def get_tokens_unprocessed(self, text): - yield 0, Generic.Output...
["tests/test_basic_api.py::test_lexer_options[OutputLexer]", "tests/test_basic_api.py::test_random_input[RawTokenLexer]", "tests/test_basic_api.py::test_random_input[OutputLexer]", "tests/examplefiles/output/output::", "tests/test_raw_token.py::test_raw_token", "tests/test_raw_token.py::test_invalid_raw_token"]
["tests/test_rtf_formatter.py::test_hl_linenostart_lines_highlighted", "tests/test_rtf_formatter.py::test_rtf_footer", "tests/test_rtf_formatter.py::test_rtf_header", "tests/test_rtf_formatter.py::test_lineno_color_style_specify_hex", "tests/test_rtf_formatter.py::test_linenos_newline_characters", "tests/test_rtf_forma...
jyangballin/swesmith.x86_64.pygments_1776_pygments.27649ebb
true
null
1
42
6
1,496
0
0.6
1
0.75
1
0.389333
81.443
4,487
r2e_gym::train::4483
r2e_gym
train
4,483
numpy__c4f1dec9ff47134840109fa719719a73a9ca79be
numpy
numpy/numpy
python
c4f1dec9ff47134840109fa719719a73a9ca79be
**Title:** `np.ma.where` Raises ValueError with Broadcastable Arrays and Structured Data Types **Description:** `np.ma.where` is encountering issues when handling broadcastable arrays with mismatched shapes and when dealing with structured data types. Instead of processing these inputs correctly, it raises a `ValueEr...
diff --git a/numpy/ma/core.py b/numpy/ma/core.py --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -6989,44 +6989,42 @@ [6.0 -- 8.0]] """ + + # handle the single-argument case missing = (x is _NoValue, y is _NoValue).count(True) - if missing == 1: raise ValueError("Must provide both 'x...
diff --git a/numpy/ma/tests/test_core.py b/numpy/ma/tests/test_core.py --- a/numpy/ma/tests/test_core.py +++ b/numpy/ma/tests/test_core.py @@ -3942,6 +3942,38 @@ control = np.find_common_type([np.int32, np.float32], []) assert_equal(test, control) + def test_where_broadcast(self): + # Issu...
null
null
namanjain12/numpy_final:c4f1dec9ff47134840109fa719719a73a9ca79be
true
null
1
66
null
1,728
0
0.75
1
0.6375
1
0.508
81.44275
4,488
swe_smith::train::33337
swe_smith
train
33,337
pallets__click.fde47b4b.combine_file__l86pd7bi
swesmith/pallets__click.fde47b4b
pallets/click
python
null
Progress bar not displaying correctly in terminal #### Description The progress bar functionality appears to be broken - it's not showing up properly in the terminal and the output behavior seems inverted. When running commands with progress bars, they either don't appear at all or show unexpected behavior. #### Ste...
diff --git a/src/click/_termui_impl.py b/src/click/_termui_impl.py index a6c7e6b..ad4973e 100644 --- a/src/click/_termui_impl.py +++ b/src/click/_termui_impl.py @@ -238,20 +238,18 @@ class ProgressBar(t.Generic[V]): return if not self._is_atty: - # Only output the label once if the ou...
["tests/test_termui.py::test_progressbar_strip_regression", "tests/test_termui.py::test_progressbar_no_tty", "tests/test_termui.py::test_progressbar_update", "tests/test_termui.py::test_progressbar_item_show_func", "tests/test_termui.py::test_progressbar_update_with_item_show_func", "tests/test_utils.py::test_echo_via_...
["tests/test_arguments.py::test_nargs_star", "tests/test_arguments.py::test_argument_unbounded_nargs_cant_have_default", "tests/test_arguments.py::test_nargs_tup", "tests/test_arguments.py::test_nargs_tup_composite[opts0]", "tests/test_arguments.py::test_nargs_tup_composite[opts1]", "tests/test_arguments.py::test_nargs...
jyangballin/swesmith.x86_64.pallets_1776_click.fde47b4b
true
null
1
53
15
1,275
0
0.6
1
0.75
1
0.389167
81.4425
4,489
swe_smith::train::47
swe_smith
train
47
oauthlib__oauthlib.1fd52536.combine_file__9la56fhh
swesmith/oauthlib__oauthlib.1fd52536
oauthlib/oauthlib
python
null
UserInfo endpoint returns wrong HTTP status code and raises incorrect exception #### Description The UserInfo endpoint is returning HTTP status code 201 instead of 200 for successful responses, and raising `InvalidClientError` instead of `ServerError` when the "sub" claim is missing from user claims. #### Steps/Code...
diff --git a/oauthlib/openid/connect/core/endpoints/userinfo.py b/oauthlib/openid/connect/core/endpoints/userinfo.py index 7aa2bbe..b748add 100644 --- a/oauthlib/openid/connect/core/endpoints/userinfo.py +++ b/oauthlib/openid/connect/core/endpoints/userinfo.py @@ -21,8 +21,8 @@ class UserInfoEndpoint(BaseEndpoint): ...
["tests/openid/connect/core/endpoints/test_userinfo_endpoint.py::UserInfoEndpointTest::test_userinfo_json_response", "tests/openid/connect/core/endpoints/test_userinfo_endpoint.py::UserInfoEndpointTest::test_userinfo_jwt_response", "tests/openid/connect/core/endpoints/test_userinfo_endpoint.py::UserInfoEndpointTest::te...
["tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_check_request_token", "tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_check_verifier", "tests/oauth1/rfc5849/endpoints/test_access_token.py::AccessTokenEndpointTest::test_valid_request", "tests/oauth...
jyangballin/swesmith.x86_64.oauthlib_1776_oauthlib.1fd52536
true
null
1
40
6
1,535
0
0.6
1
0.75
1
0.389167
81.4425
4,490
swe_smith::train::5206
swe_smith
train
5,206
agronholm__exceptiongroup.0b4f4937.pr_112
swesmith/agronholm__exceptiongroup.0b4f4937
agronholm/exceptiongroup
python
null
# Notes not copied when using split_by_type or subgroup_by_type on ExceptionGroup ## Description I found an issue with ExceptionGroup where notes added to an exception group are not properly copied when using `split_by_type` or `subgroup_by_type` methods. ## To Reproduce Here's a simple example that demonstrates th...
diff --git a/src/exceptiongroup/_exceptions.py b/src/exceptiongroup/_exceptions.py index a4a7ace..a20f046 100644 --- a/src/exceptiongroup/_exceptions.py +++ b/src/exceptiongroup/_exceptions.py @@ -42,17 +42,6 @@ def get_condition_filter( raise TypeError("expected a function, exception type or tuple of exception ty...
["tests/test_exceptions.py::ExceptionGroupFields::test_derive_doesn_copy_notes", "tests/test_exceptions.py::NestedExceptionGroupSubclassSplitTest::test_split_ExceptionGroup_subclass_derive_and_new_overrides"]
["tests/test_catch.py::test_bad_arg", "tests/test_catch.py::test_bad_handler", "tests/test_catch.py::test_catch_exceptiongroup[naked_basegroup]", "tests/test_catch.py::test_catch_exceptiongroup[naked_group]", "tests/test_catch.py::test_catch_exceptiongroup[iterable_basegroup]", "tests/test_catch.py::test_catch_exceptio...
jyangballin/swesmith.x86_64.agronholm_1776_exceptiongroup.0b4f4937
true
null
1
35
2
1,633
0
0.6
1
0.75
1
0.388833
81.4415
4,491
swe_smith::train::7136
swe_smith
train
7,136
cantools__cantools.0c6a7871.combine_module__7j4t7ms4
swesmith/cantools__cantools.0c6a7871
cantools/cantools
python
null
CDD file parsing produces invalid bitstruct format strings When loading CDD files, the diagnostics database generates invalid bitstruct format strings that cause encoding/decoding to fail with "bad format" errors. #### Steps to Reproduce ```python import cantools # This will fail with bitstruct.Error: bad format 'p...
diff --git a/src/cantools/database/diagnostics/data.py b/src/cantools/database/diagnostics/data.py index 3c97eec..441d39f 100644 --- a/src/cantools/database/diagnostics/data.py +++ b/src/cantools/database/diagnostics/data.py @@ -22,33 +22,23 @@ class Data: maximum: Optional[float] = None, ...
["tests/test_diagnostics_database.py::CanToolsDiagnosticsDatabaseTest::test_be_cdd_add", "tests/test_diagnostics_database.py::CanToolsDiagnosticsDatabaseTest::test_be_example_cdd", "tests/test_diagnostics_database.py::CanToolsDiagnosticsDatabaseTest::test_be_example_cdd_repr", "tests/test_diagnostics_database.py::CanTo...
["tests/test_autosar.py::CanToolsAutosarTest::test_autosar3_e2e_profile2", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_e2e", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_e2e_profile5", "tests/test_autosar.py::CanToolsAutosarTest::test_autosar4_secoc", "tests/test_command_line.py::CanToolsCo...
jyangballin/swesmith.x86_64.cantools_1776_cantools.0c6a7871
true
null
2
66
6
1,012
0
0.6
1
0.75
1
0.388667
81.441
4,492
swe_smith::train::45490
swe_smith
train
45,490
dask__dask.5f61e423.pr_11773
swesmith/dask__dask.5f61e423
dask/dask
python
null
### NameError: 'bisect' is not defined in Dask DataFrame Repartitioning #### Description It seems there's an issue with the recent changes in the Dask DataFrame module, specifically related to the repartitioning functionality. The error `NameError: name 'bisect' is not defined` is being raised during operations that ...
diff --git a/dask/dataframe/indexing.py b/dask/dataframe/indexing.py index 8a23b1a..c208127 100644 --- a/dask/dataframe/indexing.py +++ b/dask/dataframe/indexing.py @@ -7,7 +7,6 @@ from datetime import datetime import numpy as np import pandas as pd -from dask.dataframe import methods from dask.dataframe._compat i...
["dask/dataframe/io/tests/test_io.py::test_from_pandas_npartitions_duplicates[index0]", "dask/dataframe/io/tests/test_io.py::test_from_pandas_npartitions_duplicates[index1]", "dask/dataframe/io/tests/test_io.py::test_from_pandas_npartitions_duplicates[index2]", "dask/dataframe/io/tests/test_io.py::test_sorted_division_...
["dask/dataframe/dask_expr/io/tests/test_io.py::test_simplify[<lambda>-<lambda>0]", "dask/dataframe/dask_expr/io/tests/test_io.py::test_simplify[<lambda>-<lambda>1]", "dask/dataframe/dask_expr/io/tests/test_io.py::test_simplify[<lambda>-<lambda>2]", "dask/dataframe/dask_expr/io/tests/test_io.py::test_simplify[<lambda>-...
jyangballin/swesmith.x86_64.dask_1776_dask.5f61e423
true
null
2
30
88
1,731
0
0.6
1
0.75
1
0.3885
81.4405
4,493
swe_smith::train::6808
swe_smith
train
6,808
joke2k__faker.8b401a7d.func_pm_remove_cond__euzy0tia
swesmith/joke2k__faker.8b401a7d
joke2k/faker
python
null
pyfloat method broken after recent changes I'm having issues with the `pyfloat` method from the python provider. It seems like some recent changes broke several behaviors: 1. When using `positive=True`, the method can still return 0.0 which shouldn't happen 2. The method doesn't respect min/max value constraints prop...
diff --git a/faker/providers/python/__init__.py b/faker/providers/python/__init__.py index 28b4356..3e9306d 100644 --- a/faker/providers/python/__init__.py +++ b/faker/providers/python/__init__.py @@ -152,11 +152,6 @@ class Provider(BaseProvider): raise ValueError("A float number cannot have less than 0 di...
["tests/providers/test_python.py::test_pyfloat_right_and_left_digits_positive[0123-1-1]", "tests/providers/test_python.py::test_pyfloat_right_or_left_digit_overflow", "tests/providers/test_python.py::TestPyfloat::test_max_and_min_value_negative_with_decimals", "tests/providers/test_python.py::TestPyfloat::test_max_valu...
["tests/providers/__init__.py::TestBaseProvider::test_locale", "tests/providers/__init__.py::TestBaseProvider::test_language_code", "tests/providers/__init__.py::TestBaseProvider::test_random_digit", "tests/providers/__init__.py::TestBaseProvider::test_random_digit_not_null", "tests/providers/__init__.py::TestBaseProvi...
jyangballin/swesmith.x86_64.joke2k_1776_faker.8b401a7d
true
null
1
51
8
1,310
0
0.6
1
0.75
1
0.388333
81.44
4,494
swe_smith::train::36028
swe_smith
train
36,028
stanfordnlp__dspy.651a4c71.pr_2032
swesmith/stanfordnlp__dspy.651a4c71
stanfordnlp/dspy
python
null
# JSONAdapter fails when using structured outputs with certain models ## Description I've encountered an issue with the `JSONAdapter` when using structured outputs with certain models. The adapter is not properly handling the case when a model supports the `response_format` parameter. ## To reproduce: Create a simp...
diff --git a/dspy/adapters/json_adapter.py b/dspy/adapters/json_adapter.py index 14c5230..d7d5fa4 100644 --- a/dspy/adapters/json_adapter.py +++ b/dspy/adapters/json_adapter.py @@ -45,10 +45,21 @@ class JSONAdapter(ChatAdapter): inputs: dict[str, Any], ) -> list[dict[str, Any]]: provider = lm.mod...
["tests/predict/test_predict.py::test_call_predict_with_chat_history[json]", "tests/predict/test_predict.py::test_field_constraints[json]"]
["tests/adapters/test_chat_adapter.py::test_chat_adapter_sync_call", "tests/adapters/test_chat_adapter.py::test_chat_adapter_async_call", "tests/adapters/test_json_adapter.py::test_json_adapter_with_structured_outputs_does_not_mutate_original_signature", "tests/adapters/test_json_adapter.py::test_json_adapter_sync_call...
jyangballin/swesmith.x86_64.stanfordnlp_1776_dspy.651a4c71
true
null
2
23
2
1,866
0
0.6
1
0.75
1
0.387667
81.438
4,495
swe_smith::train::2885
swe_smith
train
2,885
pudo__dataset.5c2dc8d3.lm_rewrite__kfvgfr32
swesmith/pudo__dataset.5c2dc8d3
pudo/dataset
python
null
# Filtering with dictionaries and lists no longer works I'm trying to use the filtering capabilities of dataset, but it seems like filtering with dictionaries and lists is broken in the latest version. ## Reproduction code ```python import dataset # Create a simple database and table db = dataset.connect('sqlite://...
diff --git a/dataset/table.py b/dataset/table.py index 732964c..c83a30d 100644 --- a/dataset/table.py +++ b/dataset/table.py @@ -421,20 +421,43 @@ class Table(object): return false() def _args_to_clause(self, args, clauses=()): - clauses = list(clauses) + """Convert a set of arguments into...
["test/test_dataset.py::TableTestCase::test_distinct", "test/test_dataset.py::TableTestCase::test_find_dsl"]
["test/test_dataset.py::DatabaseTestCase::test_contains", "test/test_dataset.py::DatabaseTestCase::test_create_table", "test/test_dataset.py::DatabaseTestCase::test_create_table_custom_id1", "test/test_dataset.py::DatabaseTestCase::test_create_table_custom_id2", "test/test_dataset.py::DatabaseTestCase::test_create_tabl...
jyangballin/swesmith.x86_64.pudo_1776_dataset.5c2dc8d3
true
null
1
45
2
1,426
0
0.6
1
0.75
1
0.387667
81.438
4,496
swe_smith::train::20151
swe_smith
train
20,151
kurtmckee__feedparser.cad965a3.lm_rewrite__av9fbunk
swesmith/kurtmckee__feedparser.cad965a3
kurtmckee/feedparser
python
null
KeyError when parsing certain GeoRSS feeds ### What happened? When attempting to parse certain GeoRSS feeds, a `KeyError` is raised. This seems to occur when the feed contains specific types of geometries. The error message indicates that the 'type' key is missing from the parsed result. ### Steps to Reproduce Here...
diff --git a/feedparser/namespaces/georss.py b/feedparser/namespaces/georss.py index 5e9e958..29aa12b 100644 --- a/feedparser/namespaces/georss.py +++ b/feedparser/namespaces/georss.py @@ -168,13 +168,39 @@ class Namespace: def _parse_poslist(value, geom_type, swap=True, dims=2): - if geom_type == "linestring":...
["tests/test_well_formed.py::test_strict_parser[info1160]", "tests/test_well_formed.py::test_loose_parser[info1169]", "tests/test_well_formed.py::test_strict_parser[info1166]", "tests/test_well_formed.py::test_loose_parser[info1166]", "tests/test_well_formed.py::test_loose_parser[info1160]", "tests/test_well_formed.py:...
["tests/test_temporary_behavior.py::test_issue_328_fallback_behavior", "tests/test_make_safe_absolute_uri.py::test_catch_value_error[http://bad]test/]", "tests/test_feedparser_dict.py::test_single_mapping_target_2", "tests/test_feedparser_dict.py::test_license", "tests/test_feedparser_dict.py::test_category", "tests/te...
jyangballin/swesmith.x86_64.kurtmckee_1776_feedparser.cad965a3
true
null
1
40
6
1,526
0
0.6
1
0.75
1
0.387667
81.438
4,497
swe_smith::train::2902
swe_smith
train
2,902
seatgeek__thefuzz.8a05a3ee.combine_file__x1rot2xe
swesmith/seatgeek__thefuzz.8a05a3ee
seatgeek/thefuzz
python
null
# String processing and query handling issues in thefuzz ## Description I've encountered some issues with string processing and query handling in thefuzz library. The problems appear to be related to how the processor functions are applied and how empty strings are handled. ## Issues 1. When using a processor with ...
diff --git a/thefuzz/process.py b/thefuzz/process.py index bdfe900..29f353f 100644 --- a/thefuzz/process.py +++ b/thefuzz/process.py @@ -24,16 +24,16 @@ def _get_processor(processor, scorer): fuzz.UWRatio, fuzz.UQRatio): return processor - force_ascii = scorer not in [fuzz.UWRatio, ...
["test_thefuzz.py::ProcessTest::testIssue57", "test_thefuzz.py::ProcessTest::testWithProcessor", "test_thefuzz_pytest.py::test_process_warning"]
["test_thefuzz.py::StringProcessingTest::test_dont_condense_whitespace", "test_thefuzz.py::StringProcessingTest::test_replace_non_letters_non_numbers_with_whitespace", "test_thefuzz.py::UtilsTest::test_ascii_only", "test_thefuzz.py::UtilsTest::test_fullProcess", "test_thefuzz.py::UtilsTest::test_fullProcessForceAscii",...
jyangballin/swesmith.x86_64.seatgeek_1776_thefuzz.8a05a3ee
true
null
1
12
3
2,086
0
0.6
1
0.75
1
0.387667
81.438
4,498
swe_smith::train::28462
swe_smith
train
28,462
encode__starlette.db5063c2.combine_module__yt7i0djm
swesmith/encode__starlette.db5063c2
encode/starlette
python
null
Authentication middleware returns wrong status code on error #### Description When authentication fails, the middleware is returning a 200 status code instead of the expected 400 status code for invalid credentials. #### Steps/Code to Reproduce ```python from starlette.applications import Starlette from starlette.a...
diff --git a/starlette/middleware/authentication.py b/starlette/middleware/authentication.py index 8555ee0..5e85407 100644 --- a/starlette/middleware/authentication.py +++ b/starlette/middleware/authentication.py @@ -49,4 +49,4 @@ class AuthenticationMiddleware: @staticmethod def default_on_error(conn: HTTP...
["tests/middleware/test_errors.py::test_debug_html[asyncio]", "tests/middleware/test_errors.py::test_debug_html[trio]", "tests/middleware/test_gzip.py::test_gzip_responses[asyncio]", "tests/middleware/test_gzip.py::test_gzip_ignored_for_small_responses[asyncio]", "tests/middleware/test_gzip.py::test_gzip_streaming_resp...
["tests/middleware/test_base.py::test_custom_middleware[asyncio]", "tests/middleware/test_base.py::test_state_data_across_multiple_middlewares[asyncio]", "tests/middleware/test_base.py::test_app_middleware_argument[asyncio]", "tests/middleware/test_base.py::test_fully_evaluated_response[asyncio]", "tests/middleware/tes...
jyangballin/swesmith.x86_64.encode_1776_starlette.db5063c2
true
null
3
20
12
1,925
0
0.6
1
0.75
1
0.3875
81.4375
4,499
swe_smith::train::47268
swe_smith
train
47,268
python-trio__trio.cfbbe2c1.lm_rewrite__ddleozj2
swesmith/python-trio__trio.cfbbe2c1
python-trio/trio
python
null
### Issue: `coroutine_or_error` Function Misidentifies Async Objects #### Description The `coroutine_or_error` function seems to incorrectly identify certain async objects as being from non-Trio libraries, leading to unexpected `TypeError` exceptions. This behavior is observed when using objects that resemble asyncio,...
diff --git a/src/trio/_util.py b/src/trio/_util.py index 994a465..efa0bdd 100644 --- a/src/trio/_util.py +++ b/src/trio/_util.py @@ -59,19 +59,38 @@ def coroutine_or_error( async_fn: Callable[[Unpack[PosArgsT]], Awaitable[RetT]], *args: Unpack[PosArgsT], ) -> collections.abc.Coroutine[object, NoReturn, RetT]...
["src/trio/_tests/test_util.py::test_coroutine_or_error"]
["src/trio/_core/_tests/test_asyncgen.py::test_asyncgen_basics", "src/trio/_core/_tests/test_asyncgen.py::test_asyncgen_throws_during_finalization", "src/trio/_core/_tests/test_asyncgen.py::test_firstiter_after_closing", "src/trio/_core/_tests/test_asyncgen.py::test_interdependent_asyncgen_cleanup_order", "src/trio/_co...
jyangballin/swesmith.x86_64.python-trio_1776_trio.cfbbe2c1
true
null
1
41
1
1,505
0
0.6
1
0.75
1
0.3875
81.4375