instance_id stringlengths 10 57 | text stringlengths 1.86k 8.73M | repo stringlengths 7 53 | base_commit stringlengths 40 40 | problem_statement stringlengths 23 37.7k | hints_text stringclasses 300
values | created_at stringdate 2015-10-21 22:58:11 2024-04-30 21:59:25 | patch stringlengths 278 37.8k | test_patch stringlengths 212 2.22M | version stringclasses 1
value | FAIL_TO_PASS sequencelengths 1 4.94k | PASS_TO_PASS sequencelengths 0 7.82k | environment_setup_commit stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
barrust__pyspellchecker-87 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
English spellchecking
Hello Team!
I am new to the Project and I have a question.
I use python 3.7 and run into problem with this test program:
``` python
from spellchecker import SpellChecker
spell = Spe... | barrust/pyspellchecker | aa9668243fef58ff62c505a727b4a7284b81f42a | English spellchecking
Hello Team!
I am new to the Project and I have a question.
I use python 3.7 and run into problem with this test program:
``` python
from spellchecker import SpellChecker
spell = SpellChecker()
split_words = spell.split_words
spell_unknown = spell.unknown
words ... | 2021-02-22 20:09:34+00:00 | <patch>
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e4a891d..7aa5b30 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,10 +1,9 @@
# pyspellchecker
-## Future Release
-* Updated automated `scripts/build_dictionary.py` script to support adding missing words
-
-## Version 0.6.0
+## Version 0.6.0 (future version)
*... | diff --git a/tests/spellchecker_test.py b/tests/spellchecker_test.py
index 165371a..b403117 100644
--- a/tests/spellchecker_test.py
+++ b/tests/spellchecker_test.py
@@ -191,7 +191,6 @@ class TestSpellChecker(unittest.TestCase):
cnt += 1
self.assertEqual(cnt, 0)
-
def test_remove_by_thre... | 0.0 | [
"tests/spellchecker_test.py::TestSpellChecker::test_split_words"
] | [
"tests/spellchecker_test.py::TestSpellChecker::test_add_word",
"tests/spellchecker_test.py::TestSpellChecker::test_adding_unicode",
"tests/spellchecker_test.py::TestSpellChecker::test_bytes_input",
"tests/spellchecker_test.py::TestSpellChecker::test_candidates",
"tests/spellchecker_test.py::TestSpellChecker... | aa9668243fef58ff62c505a727b4a7284b81f42a | |
fatiando__verde-237 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
Create a convexhull masking function
**Description of the desired feature**
A good way to mask grid points that are too far from data is to only show the ones that fall inside the data convex hull. This is w... | fatiando/verde | 072e9df774fb63b0362bd6c95b3e45b7a1dc240c | Create a convexhull masking function
**Description of the desired feature**
A good way to mask grid points that are too far from data is to only show the ones that fall inside the data convex hull. This is what many scipy and matplotlib interpolations do. It would be great to have a `convexhull_mask` function that h... | 2020-03-11 16:45:40+00:00 | <patch>
diff --git a/doc/api/index.rst b/doc/api/index.rst
index 71a1b9c..bcc49d8 100644
--- a/doc/api/index.rst
+++ b/doc/api/index.rst
@@ -63,6 +63,15 @@ Coordinate Manipulation
rolling_window
expanding_window
+Masking
+-------
+
+.. autosummary::
+ :toctree: generated/
+
+ distance_mask
+ convexh... | diff --git a/verde/tests/test_mask.py b/verde/tests/test_mask.py
index cfb80ed..5a7bd25 100644
--- a/verde/tests/test_mask.py
+++ b/verde/tests/test_mask.py
@@ -6,10 +6,50 @@ import numpy.testing as npt
import xarray as xr
import pytest
-from ..mask import distance_mask
+from ..mask import distance_mask, convexhull... | 0.0 | [
"verde/tests/test_mask.py::test_convexhull_mask",
"verde/tests/test_mask.py::test_convexhull_mask_projection",
"verde/tests/test_mask.py::test_distance_mask",
"verde/tests/test_mask.py::test_distance_mask_projection",
"verde/tests/test_mask.py::test_distance_mask_grid",
"verde/tests/test_mask.py::test_dis... | [] | 072e9df774fb63b0362bd6c95b3e45b7a1dc240c | |
pydantic__pydantic-4012 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
Model signatures contain reserved words.
### Checks
* [x] I added a descriptive title to this issue
* [x] I have searched (google, github) for similar issues and couldn't find anything
* [x] I have read an... | pydantic/pydantic | 8997cc5961139dd2695761a33c06a66adbf1430a | Model signatures contain reserved words.
### Checks
* [x] I added a descriptive title to this issue
* [x] I have searched (google, github) for similar issues and couldn't find anything
* [x] I have read and followed [the docs](https://pydantic-docs.helpmanual.io/) and still think this is a bug
# Bug
When cre... | 2022-04-25 16:42:47+00:00 | <patch>
diff --git a/pydantic/utils.py b/pydantic/utils.py
--- a/pydantic/utils.py
+++ b/pydantic/utils.py
@@ -1,3 +1,4 @@
+import keyword
import warnings
import weakref
from collections import OrderedDict, defaultdict, deque
@@ -56,6 +57,7 @@
'lenient_isinstance',
'lenient_issubclass',
'in_ipython',
... | diff --git a/tests/test_model_signature.py b/tests/test_model_signature.py
--- a/tests/test_model_signature.py
+++ b/tests/test_model_signature.py
@@ -84,6 +84,16 @@ class Config:
assert _equals(str(signature(Foo)), '(*, foo: str) -> None')
+def test_does_not_use_reserved_word():
+ class Foo(BaseModel):
+ ... | 0.0 | [
"tests/test_model_signature.py::test_does_not_use_reserved_word"
] | [
"tests/test_model_signature.py::test_model_signature",
"tests/test_model_signature.py::test_custom_init_signature",
"tests/test_model_signature.py::test_custom_init_signature_with_no_var_kw",
"tests/test_model_signature.py::test_invalid_identifiers_signature",
"tests/test_model_signature.py::test_use_field_... | 8997cc5961139dd2695761a33c06a66adbf1430a | |
django-money__django-money-594 | You will be provided with a partial code base and an issue statement explaining a problem to resolve.
<issue>
Money should not override `__rsub__` method
As [reported](https://github.com/py-moneyed/py-moneyed/issues/144) in pymoneyed the following test case fails:
```python
from moneyed import Money as PyMoney
fro... | django-money/django-money | bb222ed619f72a0112aef8c0fd9a4823b1e6e388 | Money should not override `__rsub__` method
As [reported](https://github.com/py-moneyed/py-moneyed/issues/144) in pymoneyed the following test case fails:
```python
from moneyed import Money as PyMoney
from djmoney.money import Money
def test_sub_negative():
total = PyMoney(0, "EUR")
bills = (Money(... | 2021-01-10 12:54:57+00:00 | <patch>
diff --git a/djmoney/money.py b/djmoney/money.py
index 70bea0b..b744c66 100644
--- a/djmoney/money.py
+++ b/djmoney/money.py
@@ -106,7 +106,6 @@ class Money(DefaultMoney):
# we overwrite the 'targets' so the wrong synonyms are called
# Example: we overwrite __add__; __radd__ calls __add__ on DefaultMo... | diff --git a/tests/test_money.py b/tests/test_money.py
index 65199c4..bb7ea79 100644
--- a/tests/test_money.py
+++ b/tests/test_money.py
@@ -2,7 +2,7 @@ from django.utils.translation import override
import pytest
-from djmoney.money import Money, get_current_locale
+from djmoney.money import DefaultMoney, Money, g... | 0.0 | [
"tests/test_money.py::test_sub_negative"
] | [
"tests/test_money.py::test_repr",
"tests/test_money.py::test_html_safe",
"tests/test_money.py::test_html_unsafe",
"tests/test_money.py::test_default_mul",
"tests/test_money.py::test_default_truediv",
"tests/test_money.py::test_reverse_truediv_fails",
"tests/test_money.py::test_get_current_locale[pl-PL_P... | bb222ed619f72a0112aef8c0fd9a4823b1e6e388 | |
mkdocs__mkdocs-2290 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | mkdocs/mkdocs | d6bfb1bc6f63d122556865aeee4ded17c536cb03 | "Config.validate keeps 'mdx_configs' values across different instances\n```python\r\nimport mkdocs.c(...TRUNCATED) | 2021-01-19 23:04:35+00:00 | "<patch>\ndiff --git a/mkdocs/config/config_options.py b/mkdocs/config/config_options.py\nindex 5e65(...TRUNCATED) | "diff --git a/mkdocs/tests/config/config_tests.py b/mkdocs/tests/config/config_tests.py\nindex fe24f(...TRUNCATED) | 0.0 | [
"mkdocs/tests/config/config_tests.py::ConfigTests::test_multiple_markdown_config_instances"
] | ["mkdocs/tests/config/config_tests.py::ConfigTests::test_config_option","mkdocs/tests/config/config_(...TRUNCATED) | d6bfb1bc6f63d122556865aeee4ded17c536cb03 | |
python-visualization__branca-90 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | python-visualization/branca | a872bef69cfef4ab40380686b637c99dee6a8187 | "Expose legend_scaler's max_labels in ColorMap\nHi,\r\n\r\nI see that `legend_scaler` has an option (...TRUNCATED) | 2021-04-11 12:05:08+00:00 | "<patch>\ndiff --git a/branca/colormap.py b/branca/colormap.py\nindex 1544537..8db9583 100644\n--- a(...TRUNCATED) | "diff --git a/tests/test_colormap.py b/tests/test_colormap.py\nindex 51cfbb3..4b9483b 100644\n--- a/(...TRUNCATED) | 0.0 | ["tests/test_colormap.py::test_max_labels_linear[10-expected0]","tests/test_colormap.py::test_max_la(...TRUNCATED) | ["tests/test_colormap.py::test_simple_step","tests/test_colormap.py::test_simple_linear","tests/test(...TRUNCATED) | a872bef69cfef4ab40380686b637c99dee6a8187 | |
cunla__fakeredis-py-223 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | cunla/fakeredis-py | 96c6c1f6633bee883d460931c30179d7558785be | "All aio.FakeRedis instances share the same server\n**Describe the bug**\r\n\r\nIf I create two clie(...TRUNCATED) | 2023-08-07 15:03:21+00:00 | "<patch>\ndiff --git a/docs/about/changelog.md b/docs/about/changelog.md\nindex 7c3b508..d3af774 100(...TRUNCATED) | "diff --git a/test/test_redis_asyncio.py b/test/test_redis_asyncio.py\nindex d983d2b..df69904 100644(...TRUNCATED) | 0.0 | [
"test/test_redis_asyncio.py::TestInitArgs::test_connection_different_server"
] | ["test/test_redis_asyncio.py::TestInitArgs::test_singleton","test/test_redis_asyncio.py::TestInitArg(...TRUNCATED) | 96c6c1f6633bee883d460931c30179d7558785be | |
kdunee__pyembeddedfhir-19 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | kdunee/pyembeddedfhir | e397c352453b9b910e807037826ff3c03ca3c413 | Resolve outstanding TODOs related to error handling | 2021-11-09 20:26:40+00:00 | "<patch>\ndiff --git a/HISTORY.rst b/HISTORY.rst\nindex 6220350..3518afd 100755\n--- a/HISTORY.rst\n(...TRUNCATED) | "diff --git a/tests/unit/test_fhir_runner.py b/tests/unit/test_fhir_runner.py\nnew file mode 100644\(...TRUNCATED) | 0.0 | ["tests/unit/test_fhir_runner.py::TestNetworkRemoval::test_network_removal_when_failure","tests/unit(...TRUNCATED) | ["tests/unit/test_fhir_runner.py::TestNetworkRemoval::test_when_success","tests/unit/test_fhir_runne(...TRUNCATED) | e397c352453b9b910e807037826ff3c03ca3c413 | |
pydantic__pydantic-2228 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | pydantic/pydantic | 78934db63169bf6bc661b2c63f61f996bea5deff | "Impl. of BaseModel with method crashes when Cythonized\n# Bug\r\n\r\nOutput of `python -c \"import (...TRUNCATED) | 2020-12-30 18:17:42+00:00 | "<patch>\ndiff --git a/pydantic/main.py b/pydantic/main.py\n--- a/pydantic/main.py\n+++ b/pydantic/m(...TRUNCATED) | "diff --git a/tests/test_edge_cases.py b/tests/test_edge_cases.py\n--- a/tests/test_edge_cases.py\n+(...TRUNCATED) | 0.0 | [
"tests/test_edge_cases.py::test_cython_function_untouched"
] | ["tests/test_edge_cases.py::test_str_bytes","tests/test_edge_cases.py::test_str_bytes_none","tests/t(...TRUNCATED) | 78934db63169bf6bc661b2c63f61f996bea5deff | |
facebookresearch__hydra-625 | "You will be provided with a partial code base and an issue statement explaining a problem to resolv(...TRUNCATED) | facebookresearch/hydra | 9544b25a1b40710310a3732a52e373b5ee11c242 | "Fix error message of adding config value without +\n1. Fix defaults override case to match:\r\n```\(...TRUNCATED) | 2020-05-29 18:30:52+00:00 | "<patch>\ndiff --git a/hydra/_internal/config_loader_impl.py b/hydra/_internal/config_loader_impl.py(...TRUNCATED) | "diff --git a/tests/test_config_loader.py b/tests/test_config_loader.py\nindex c92d0cd17f..f6e9ef8f7(...TRUNCATED) | 0.0 | ["tests/test_config_loader.py::test_apply_overrides_to_defaults[adding_without_plus]","tests/test_co(...TRUNCATED) | ["tests/test_config_loader.py::TestConfigLoader::test_load_configuration[file]","tests/test_config_l(...TRUNCATED) | 9544b25a1b40710310a3732a52e373b5ee11c242 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 8