Dataset Viewer
Auto-converted to Parquet Duplicate
repo
stringlengths
10
39
pull_number
int64
74
29.2k
url
stringlengths
37
68
instance_id
stringlengths
14
45
issue_numbers
stringclasses
26 values
base_commit
stringlengths
40
40
patch
stringlengths
525
15.9k
test_patch
stringlengths
606
17.8k
created_at
timestamp[s]date
2015-03-20 20:39:55
2025-01-02 13:53:18
readmes
stringclasses
2 values
files
stringlengths
365
430k
non_py_patch
stringlengths
0
7.21k
new_components
stringlengths
142
6.63k
version
stringclasses
37 values
FAIL_TO_PASS
stringlengths
13
15.6k
PASS_TO_PASS
stringlengths
2
65k
environment_setup_commit
stringlengths
40
40
problem_statement
stringlengths
367
40.7k
EleutherAI/lm-evaluation-harness
1,566
https://github.com/EleutherAI/lm-evaluation-harness/pull/1566
EleutherAI__lm-evaluation-harness-1566
[]
49695e8d94c3ab011b7ae8814d809de30b1b1182
diff --git a/lm_eval/__main__.py b/lm_eval/__main__.py index 489c1662d41..18c243d431d 100644 --- a/lm_eval/__main__.py +++ b/lm_eval/__main__.py @@ -53,13 +53,30 @@ def parse_value(item): return items -def parse_eval_args() -> argparse.Namespace: +def check_argument_types(parser: argparse.ArgumentParser): + ...
diff --git a/tests/test_cli.py b/tests/test_cli.py new file mode 100644 index 00000000000..feaa7340d6a --- /dev/null +++ b/tests/test_cli.py @@ -0,0 +1,43 @@ +import argparse + +import pytest + +import lm_eval.__main__ + + +def test_cli_parse_error(): + """ + Assert error raised if cli args argument doesn't have ...
2024-03-12T17:35:39
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"lm_eval/__main__.py": "import argparse\nimport json\nimport logging\nimport os\nimport re\nimport sys\nfrom functools import partial\nfrom pathlib import Path\nfrom typing import Union\n\nimport numpy as np\n\nfrom lm_eval import evaluator, utils\nfrom lm_eval.evaluator import request_caching_arg_to_dict\nfrom lm_eva...
{"lm_eval/__main__.py": [{"type": "function", "name": "check_argument_types", "lines": [56, 67], "signature": "def check_argument_types(parser: argparse.ArgumentParser):", "doc": "Check to make sure all CLI args are typed, raises error if not"}, {"type": "function", "name": "setup_parser", "lines": [70, 232], "signatur...
null
["tests/test_cli.py::test_cli_parse_error", "tests/test_cli.py::test_cli_parse_no_error"]
[]
decc533d02222f3b866d9a89263277fe0cc2fcb2
{"first_commit_time": 1710264318.0, "pr_title": "Proposed approach for testing CLI arg parsing", "pr_body": "See discussion here: https://github.com/EleutherAI/lm-evaluation-harness/issues/1518\r\n\r\nHere's an approach to start testing CLI argument parsing:\r\n\r\n1. Separate out setting up the argument parser in `par...
Project-MONAI/MONAI
465
https://github.com/Project-MONAI/MONAI/pull/465
Project-MONAI__MONAI-465
["461"]
718d11abb2310ab74321256032a264488a7883b4
diff --git a/docs/source/data.rst b/docs/source/data.rst index 73a6a698bc..d998605bf8 100644 --- a/docs/source/data.rst +++ b/docs/source/data.rst @@ -87,3 +87,7 @@ Utilities .. automodule:: monai.data.utils :members: + +Decathalon DataLoader +~~~~~~~~~~~~~~~~~~~~~ +.. autofunction:: monai.data.load_decathalon_da...
diff --git a/tests/test_load_decathalon_datalist.py b/tests/test_load_decathalon_datalist.py new file mode 100644 index 0000000000..4afe151482 --- /dev/null +++ b/tests/test_load_decathalon_datalist.py @@ -0,0 +1,104 @@ +# Copyright 2020 MONAI Consortium +# Licensed under the Apache License, Version 2.0 (the "License")...
2020-06-01T14:18:19
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"docs/source/data.rst": ":github_url: https://github.com/Project-MONAI/MONAI\n\n.. _data:\n\nData\n====\n\nGeneric Interfaces\n------------------\n.. currentmodule:: monai.data\n\n`Dataset`\n~~~~~~~~~\n.. autoclass:: Dataset\n :members:\n :special-members: __getitem__\n\n`PersistentDataset`\n~~~~~~~~~~~~~~~~~~~\n.. ...
diff --git a/docs/source/data.rst b/docs/source/data.rst index 73a6a698bc..d998605bf8 100644 --- a/docs/source/data.rst +++ b/docs/source/data.rst @@ -87,3 +87,7 @@ Utilities .. automodule:: monai.data.utils :members: + +Decathalon DataLoader +~~~~~~~~~~~~~~~~~~~~~ +.. autofunction:: monai.data.load_decathalon_da...
{"monai/data/decathalon_dataloader.py": [{"type": "function", "name": "_compute_path", "lines": [16, 25], "signature": "def _compute_path(base_dir, element):", "doc": ""}, {"type": "function", "name": "_append_paths", "lines": [28, 37], "signature": "def _append_paths(base_dir, is_segmentation, items):", "doc": ""}, {"...
null
["tests/test_load_decathalon_datalist.py::TestLoadDecathalonDatalist::test_cls_values", "tests/test_load_decathalon_datalist.py::TestLoadDecathalonDatalist::test_seg_no_basedir", "tests/test_load_decathalon_datalist.py::TestLoadDecathalonDatalist::test_seg_no_labels", "tests/test_load_decathalon_datalist.py::TestLoadDe...
[]
e73257caa79309dcce1e93abf1632f4bfd75b11f
{"first_commit_time": 1591001255.0, "pr_title": "461 add support to load decathalon datalist", "pr_body": "Fixes #461 .\r\n\r\n### Description\r\nAs Decathalon challenge dataset is very rich and very popular in medical domain, many researchers and students use Decathalon dataset to learn medical DL skills, and we also ...
PyThaiNLP/pythainlp
1,054
https://github.com/PyThaiNLP/pythainlp/pull/1054
PyThaiNLP__pythainlp-1054
[]
2252dee57bd7be9503242fa734bf0abc48c5ddf1
diff --git a/docs/api/lm.rst b/docs/api/lm.rst index 471282fd3..063aecb2d 100644 --- a/docs/api/lm.rst +++ b/docs/api/lm.rst @@ -6,4 +6,5 @@ pythainlp.lm Modules ------- +.. autofunction:: calculate_ngram_counts .. autofunction:: remove_repeated_ngrams \ No newline at end of file diff --git a/pythainlp/lm/__init__...
diff --git a/tests/core/test_lm.py b/tests/core/test_lm.py index 5d25cc124..9da213d31 100644 --- a/tests/core/test_lm.py +++ b/tests/core/test_lm.py @@ -5,10 +5,23 @@ import unittest -from pythainlp.lm import remove_repeated_ngrams +from pythainlp.lm import calculate_ngram_counts, remove_repeated_ngrams class...
2025-01-02T13:53:18
{"README.md": "<p align=\"center\">\n <a href=\"https://gmago-leway.github.io/fea-bench.github.io/\">\n <img src=\"assets/FEA-Bench-full.png\" style=\"height: 10em\" alt=\"fea-bench\" />\n </a>\n</p>\n\n<p align=\"center\">\n <em>A benchmark that aims to evaluate the capability of implementing new features in the...
{"docs/api/lm.rst": ".. currentmodule:: pythainlp.lm\n\npythainlp.lm\n============\n\nModules\n-------\n\n.. autofunction:: remove_repeated_ngrams", "pythainlp/lm/__init__.py": "# -*- coding: utf-8 -*-\n# SPDX-FileCopyrightText: 2016-2025 PyThaiNLP Project\n# SPDX-FileType: SOURCE\n# SPDX-License-Identifier: Apache-2.0...
diff --git a/docs/api/lm.rst b/docs/api/lm.rst index 471282fd3..063aecb2d 100644 --- a/docs/api/lm.rst +++ b/docs/api/lm.rst @@ -6,4 +6,5 @@ pythainlp.lm Modules ------- +.. autofunction:: calculate_ngram_counts .. autofunction:: remove_repeated_ngrams \ No newline at end of file
{"pythainlp/lm/text_util.py": [{"type": "function", "name": "calculate_ngram_counts", "lines": [10, 32], "signature": "def calculate_ngram_counts( list_words: List[str], n_min: int = 2, n_max: int = 4) -> Dict[Tuple[str], int]:", "doc": "Calculates the counts of n-grams in the list words for the specified range.\n\n:pa...
null
["tests/core/test_lm.py::LMTestCase::test_calculate_ngram_counts", "tests/core/test_lm.py::LMTestCase::test_remove_repeated_ngrams"]
[]
2252dee57bd7be9503242fa734bf0abc48c5ddf1
{"first_commit_time": 1735825940.0, "pr_title": "Add pythainlp.lm.calculate_ngram_counts", "pr_body": "Calculates the counts of n-grams in the list words for the specified range.\r\n\r\n```\r\n>>> from pythainlp.lm import calculate_ngram_counts\r\n>>> a=[\"1\",\"2\",\"3\",\"4\"]\r\n>>> calculate_ngram_counts(a)\r\n{('1...
RDFLib/rdflib
1,968
https://github.com/RDFLib/rdflib/pull/1968
RDFLib__rdflib-1968
[]
131d9e66e8515aa81d776969d42f58c72bc68f86
"diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex a43d51694..27c9fc414 100644\n--- a/CHANGELOG.md\n++(...TRUNCATED)
"diff --git a/test/test_tools/test_chunk_serializer.py b/test/test_tools/test_chunk_serializer.py\nn(...TRUNCATED)
2022-05-22T12:06:12
"{\"README.md\": \"<p align=\\\"center\\\">\\n <a href=\\\"https://gmago-leway.github.io/fea-bench.(...TRUNCATED)
"{\"CHANGELOG.md\": \"# 2022-10-16 RELEASE MAJOR.MINOR.PATCH\\n\\n## User facing changes\\n\\nThis s(...TRUNCATED)
"diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex a43d51694..27c9fc414 100644\n--- a/CHANGELOG.md\n++(...TRUNCATED)
"{\"rdflib/tools/chunk_serializer.py\": [{\"type\": \"function\", \"name\": \"serialize_in_chunks\",(...TRUNCATED)
null
"[\"test/test_tools/test_chunk_serializer.py::test_chunk_by_triples\", \"test/test_tools/test_chunk_(...TRUNCATED)
[]
0c11debb5178157baeac27b735e49a757916d2a6
"{\"first_commit_time\": 1653220003.0, \"pr_title\": \"add chunk serializer & tests\", \"pr_body\": (...TRUNCATED)
RDFLib/rdflib
968
https://github.com/RDFLib/rdflib/pull/968
RDFLib__rdflib-968
[]
0e5efef78702575e4abff4d8076eac4e2bd9d5f0
"diff --git a/rdflib/graph.py b/rdflib/graph.py\nindex 4a27e6de7..f68300cb1 100644\n--- a/rdflib/gra(...TRUNCATED)
"diff --git a/test/test_graph_cbd.py b/test/test_graph_cbd.py\nnew file mode 100644\nindex 000000000(...TRUNCATED)
2020-03-13T11:56:00
"{\"README.md\": \"<p align=\\\"center\\\">\\n <a href=\\\"https://gmago-leway.github.io/fea-bench.(...TRUNCATED)
"{\"rdflib/graph.py\": \"from __future__ import absolute_import\\nfrom __future__ import division\\n(...TRUNCATED)
"{\"rdflib/graph.py\": [{\"type\": \"function\", \"name\": \"Graph.cbd\", \"lines\": [1272, 1319], \(...TRUNCATED)
null
"[\"test/test_graph_cbd.py::CbdTestCase::testCbd\", \"test/test_graph_cbd.py::CbdTestCase::testCbdRe(...TRUNCATED)
[]
0c11debb5178157baeac27b735e49a757916d2a6
"{\"first_commit_time\": 1584098175.0, \"pr_title\": \"Concise Bounded Description\", \"pr_body\": \(...TRUNCATED)
Textualize/rich
1,706
https://github.com/Textualize/rich/pull/1706
Textualize__rich-1706
[]
008854c40772f647dfcb873bc3489e8a1c02d598
"diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 77dd5a0a9b..2b1dc69d04 100644\n--- a/CHANGELOG.md\n(...TRUNCATED)
"diff --git a/tests/test_text.py b/tests/test_text.py\nindex 3727d1602c..6eecb9ee73 100644\n--- a/te(...TRUNCATED)
2021-11-17T21:21:55
"{\"README.md\": \"<p align=\\\"center\\\">\\n <a href=\\\"https://gmago-leway.github.io/fea-bench.(...TRUNCATED)
"{\"CHANGELOG.md\": \"# Changelog\\n\\nAll notable changes to this project will be documented in thi(...TRUNCATED)
"diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 77dd5a0a9b..2b1dc69d04 100644\n--- a/CHANGELOG.md\n(...TRUNCATED)
"{\"rich/text.py\": [{\"type\": \"function\", \"name\": \"Text.from_ansi\", \"lines\": [246, 277], \(...TRUNCATED)
null
["tests/test_text.py::test_from_ansi"]
"[\"tests/test_text.py::test_span\", \"tests/test_text.py::test_span_split\", \"tests/test_text.py::(...TRUNCATED)
b0661de34bab35af9b4b1d3ba8e28b186b225e84
"{\"first_commit_time\": 1636564203.0, \"pr_title\": \"Add a Text.from_ansi helper method\", \"pr_bo(...TRUNCATED)
Textualize/rich
1,894
https://github.com/Textualize/rich/pull/1894
Textualize__rich-1894
[]
633faab16dc3a8c01a6562648cc2186c19a476e3
"diff --git a/rich/progress.py b/rich/progress.py\nindex 1f670db438..fe35b6c175 100644\n--- a/rich/p(...TRUNCATED)
"diff --git a/tests/test_progress.py b/tests/test_progress.py\nindex 2020f91ffb..20b9d32ed4 100644\n(...TRUNCATED)
2022-01-31T14:32:01
"{\"README.md\": \"<p align=\\\"center\\\">\\n <a href=\\\"https://gmago-leway.github.io/fea-bench.(...TRUNCATED)
"{\"rich/progress.py\": \"from abc import ABC, abstractmethod\\nfrom collections import deque\\nfrom(...TRUNCATED)
"{\"rich/progress.py\": [{\"type\": \"function\", \"name\": \"Progress.get_default_columns\", \"line(...TRUNCATED)
null
["tests/test_progress.py::test_using_default_columns"]
"[\"tests/test_progress.py::test_bar_columns\", \"tests/test_progress.py::test_text_column\", \"test(...TRUNCATED)
b0661de34bab35af9b4b1d3ba8e28b186b225e84
"{\"first_commit_time\": 1643639341.0, \"pr_title\": \"Add default_columns classmethod to Progress c(...TRUNCATED)
Textualize/rich
376
https://github.com/Textualize/rich/pull/376
Textualize__rich-376
[]
a83ee864e67d97be926894c7b5d3cf470194d6c1
"diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex f813ffeb0a..132fafbbc2 100644\n--- a/CHANGELOG.md\n(...TRUNCATED)
"diff --git a/tests/test_console.py b/tests/test_console.py\nindex eca300095a..8dbe06933a 100644\n--(...TRUNCATED)
2020-10-11T16:35:48
"{\"README.md\": \"<p align=\\\"center\\\">\\n <a href=\\\"https://gmago-leway.github.io/fea-bench.(...TRUNCATED)
"{\"CHANGELOG.md\": \"# Changelog\\n\\nAll notable changes to this project will be documented in thi(...TRUNCATED)
"diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex f813ffeb0a..132fafbbc2 100644\n--- a/CHANGELOG.md\n(...TRUNCATED)
"{\"rich/console.py\": [{\"type\": \"function\", \"name\": \"Console.out\", \"lines\": [1015, 1043],(...TRUNCATED)
null
["tests/test_console.py::test_out"]
"[\"tests/test_console.py::test_dumb_terminal\", \"tests/test_console.py::test_16color_terminal\", \(...TRUNCATED)
b0661de34bab35af9b4b1d3ba8e28b186b225e84
"{\"first_commit_time\": 1602433996.0, \"pr_title\": \"console out\", \"pr_body\": \"Adds a Console.(...TRUNCATED)
Textualize/rich
901
https://github.com/Textualize/rich/pull/901
Textualize__rich-901
[]
a9c0f917aed8d0bba232b7584742962f03a9a293
"diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex d8378b729a..acb53b1308 100644\n--- a/CHANGELOG.md\n(...TRUNCATED)
"diff --git a/tests/test_console.py b/tests/test_console.py\nindex b82c765911..82bc5b48d4 100644\n--(...TRUNCATED)
2021-01-09T16:12:28
"{\"README.md\": \"<p align=\\\"center\\\">\\n <a href=\\\"https://gmago-leway.github.io/fea-bench.(...TRUNCATED)
"{\"CHANGELOG.md\": \"# Changelog\\n\\nAll notable changes to this project will be documented in thi(...TRUNCATED)
"diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex d8378b729a..acb53b1308 100644\n--- a/CHANGELOG.md\n(...TRUNCATED)
"{\"rich/segment.py\": [{\"type\": \"function\", \"name\": \"Segment.remove_color\", \"lines\": [344(...TRUNCATED)
null
"[\"tests/test_console.py::test_no_color\", \"tests/test_segment.py::test_remove_color\", \"tests/te(...TRUNCATED)
"[\"tests/test_console.py::test_dumb_terminal\", \"tests/test_console.py::test_soft_wrap\", \"tests/(...TRUNCATED)
b0661de34bab35af9b4b1d3ba8e28b186b225e84
"{\"first_commit_time\": 1610208516.0, \"pr_title\": \"No color\", \"pr_body\": \"Fixes https://gith(...TRUNCATED)
Textualize/textual
1,517
https://github.com/Textualize/textual/pull/1517
Textualize__textual-1517
[]
779b10a0e8b8581fab512eb684a06eb90381705d
"diff --git a/src/textual/app.py b/src/textual/app.py\nindex b207bbd025..89da6aaf60 100644\n--- a/sr(...TRUNCATED)
"diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py\nnew file mode 100644\nindex 000(...TRUNCATED)
2023-01-07T14:10:40
"{\"README.md\": \"<p align=\\\"center\\\">\\n <a href=\\\"https://gmago-leway.github.io/fea-bench.(...TRUNCATED)
"{\"src/textual/app.py\": \"from __future__ import annotations\\n\\nimport asyncio\\nimport inspect\(...TRUNCATED)
"{\"src/textual/app.py\": [{\"type\": \"function\", \"name\": \"App.call_from_thread\", \"lines\": [(...TRUNCATED)
null
"[\"tests/test_concurrency.py::test_call_from_thread_app_not_running\", \"tests/test_concurrency.py:(...TRUNCATED)
[]
86e93536b991014e0ea4bf993068202b446bb698
"{\"first_commit_time\": 1673100292.0, \"pr_title\": \"Call from thread method\", \"pr_body\": \"Thi(...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
6