instance_id stringlengths 13 45 | pull_number int64 7 30.1k | repo stringclasses 83
values | version stringclasses 68
values | base_commit stringlengths 40 40 | environment_setup_commit stringclasses 167
values | created_at stringdate 2013-05-16 18:15:55 2025-01-08 15:12:50 | added_files listlengths 0 19 | modified_files listlengths 0 42 | patch stringlengths 347 35.2k | test_patch stringlengths 432 113k | non_py_patch stringlengths 0 18.4k | new_components listlengths 1 40 | FAIL_TO_PASS listlengths 1 2.53k | PASS_TO_PASS listlengths 0 1.7k | pull_request_text stringlengths 59 46.3k | issue_text stringlengths 0 57.4k | context_type stringclasses 1
value | problem_statement stringlengths 658 52.6k | hints_text stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Aider-AI__aider-207 | 207 | Aider-AI/aider | null | 43047c38358d7453c5778d4415475f152e4c562e | 43047c38358d7453c5778d4415475f152e4c562e | 2023-08-18T17:17:40Z | [] | [
"aider/coders/base_coder.py",
"aider/coders/editblock_coder.py",
"aider/coders/editblock_func_coder.py",
"aider/coders/single_wholefile_func_coder.py",
"aider/coders/wholefile_coder.py",
"aider/coders/wholefile_func_coder.py",
"aider/commands.py",
"aider/main.py",
"aider/repo.py"
] | diff --git a/HISTORY.md b/HISTORY.md
index b033f264ac7..8f8750dc81e 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -2,6 +2,7 @@
### main branch
+- [Only git commit dirty files that GPT tries to edit](https://aider.chat/docs/faq.html#how-does-aider-use-git)
- Send chat history as prompt/context for Whisper voice tran... | diff --git a/tests/test_coder.py b/tests/test_coder.py
index 1c2eaa8b290..3faf42bc7a8 100644
--- a/tests/test_coder.py
+++ b/tests/test_coder.py
@@ -22,79 +22,84 @@ def setUp(self):
def tearDown(self):
self.patcher.stop()
- def test_new_file_commit_message(self):
+ def test_allowed_to_edit(self):
... | diff --git a/HISTORY.md b/HISTORY.md
index b033f264ac7..8f8750dc81e 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -2,6 +2,7 @@
### main branch
+- [Only git commit dirty files that GPT tries to edit](https://aider.chat/docs/faq.html#how-does-aider-use-git)
- Send chat history as prompt/context for Whisper voice tran... | [
{
"components": [
{
"doc": "",
"lines": [
710,
724
],
"name": "Coder.check_for_dirty_commit",
"signature": "def check_for_dirty_commit(self, path):",
"type": "function"
},
{
"doc": "",
"lines": [
770,... | [
"tests/test_coder.py::TestCoder::test_allowed_to_edit",
"tests/test_coder.py::TestCoder::test_allowed_to_edit_dirty",
"tests/test_coder.py::TestCoder::test_allowed_to_edit_no",
"tests/test_coder.py::TestCoder::test_gpt_edit_to_dirty_file",
"tests/test_coder.py::TestCoder::test_only_commit_gpt_edited_file",
... | [
"tests/test_coder.py::TestCoder::test_check_for_ambiguous_filename_mentions_of_longer_paths",
"tests/test_coder.py::TestCoder::test_check_for_file_mentions",
"tests/test_coder.py::TestCoder::test_check_for_filename_mentions_of_longer_paths",
"tests/test_coder.py::TestCoder::test_check_for_subdir_mention",
"... | <request>
Only commit dirty files if GPT tries to edit them #200
Discussed in #200
If GPT tries to edit a dirty file, aider will just commit the dirty changes (with a nice message) before applying and committing GPT's edits.
You now never get interrupted and asked about pending dirty changes. Aider just commits... | oracle | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
Only commit dirty files if GPT tries to edit them #200
Discussed in #200
If GPT tries to edit a dirty file, aider will just commit the dirty changes (with a nice message) before applying and committing GPT... | ||
Cog-Creators__Red-DiscordBot-5843 | 5,843 | Cog-Creators/Red-DiscordBot | null | aa51fd9ad1463484039f1578ae71210a516000b8 | aa51fd9ad1463484039f1578ae71210a516000b8 | 2022-09-04T18:54:29Z | [] | [
"redbot/core/dev_commands.py"
] | diff --git a/.github/labeler.yml b/.github/labeler.yml
index aa1a8b41cc9..b81b57e4db9 100644
--- a/.github/labeler.yml
+++ b/.github/labeler.yml
@@ -41,6 +41,8 @@
- redbot/core/dev_commands.py
# Docs
- docs/cog_guides/dev.rst
+ # Tests
+ - tests/core/test_dev_commands.py
"Category: Cogs - Downloader":
# ... | diff --git a/tests/core/test_dev_commands.py b/tests/core/test_dev_commands.py
new file mode 100644
index 00000000000..508c7e56984
--- /dev/null
+++ b/tests/core/test_dev_commands.py
@@ -0,0 +1,391 @@
+import sys
+import textwrap
+from unittest.mock import MagicMock
+
+import pytest
+
+from redbot.core import commands
... | diff --git a/.github/labeler.yml b/.github/labeler.yml
index aa1a8b41cc9..b81b57e4db9 100644
--- a/.github/labeler.yml
+++ b/.github/labeler.yml
@@ -41,6 +41,8 @@
- redbot/core/dev_commands.py
# Docs
- docs/cog_guides/dev.rst
+ # Tests
+ - tests/core/test_dev_commands.py
"Category: Cogs - Downloader":
# ... | [
{
"components": [
{
"doc": "Pagify the given message for output to the user.",
"lines": [
48,
50
],
"name": "get_pages",
"signature": "def get_pages(msg: str) -> Iterator[str]:",
"type": "function"
},
{
"doc": "Hides t... | [
"tests/core/test_dev_commands.py::test_cleanup_code[x",
"tests/core/test_dev_commands.py::test_cleanup_code[`x",
"tests/core/test_dev_commands.py::test_cleanup_code[``x",
"tests/core/test_dev_commands.py::test_cleanup_code[```x",
"tests/core/test_dev_commands.py::test_cleanup_code["
] | [] | <request>
Show source code in tracebacks sent by Dev cog commands
### Description of the changes
Fixes an incredibly annoying thing with Dev cog's commands - the tracebacks returned by it do not include the source lines!
:",
"type": "class"
},
{
"doc": "",
"line... | [
"tests/test_logger.py::test_main",
"tests/test_logger.py::test_make_output[stdout]",
"tests/test_logger.py::test_make_output[log]",
"tests/test_logger.py::test_make_output[json]",
"tests/test_logger.py::test_make_output[csv]",
"tests/test_logger.py::test_make_output_fail",
"tests/test_logger.py::test_ex... | [] | <request>
Add support to log videos via tensorboard
## Description
I've introduced a new Video type which simply consists of the frames and the requested frames per second of the video. This type can then be checked against in the logger's format-writer classes and treated accordingly. Currently only the `TensorBoardO... | Here is the discussion in the issues of the pull request.
<issues>
[feature request] Support Tensorboard video logging (convenience)
When investigating RL algorithms I've found it quite useful to report videos of a trajectory to Tensorboard, to directly relate it to other performance measures and look at the agent at d... | oracle | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
Add support to log videos via tensorboard
## Description
I've introduced a new Video type which simply consists of the frames and the requested frames per second of the video. This type can then be checked aga... | |
DLR-RM__stable-baselines3-277 | 277 | DLR-RM/stable-baselines3 | null | 06498e8be71b9c8aee38226176dbd28443afbb4f | 512eea923afad6f6da4bb53d72b6ea4c6d856e59 | 2020-12-28T16:54:04Z | [] | [
"stable_baselines3/common/logger.py"
] | diff --git a/docs/guide/tensorboard.rst b/docs/guide/tensorboard.rst
index cf5c4cf21..788ccc158 100644
--- a/docs/guide/tensorboard.rst
+++ b/docs/guide/tensorboard.rst
@@ -81,6 +81,78 @@ Here is a simple example on how to log both additional tensor or arbitrary scala
model.learn(50000, callback=TensorboardCallb... | diff --git a/tests/test_logger.py b/tests/test_logger.py
index 98f832d8f..c1cce8559 100644
--- a/tests/test_logger.py
+++ b/tests/test_logger.py
@@ -3,11 +3,14 @@
import numpy as np
import pytest
import torch as th
+from matplotlib import pyplot as plt
from pandas.errors import EmptyDataError
from stable_baselin... | diff --git a/docs/guide/tensorboard.rst b/docs/guide/tensorboard.rst
index cf5c4cf21..788ccc158 100644
--- a/docs/guide/tensorboard.rst
+++ b/docs/guide/tensorboard.rst
@@ -81,6 +81,78 @@ Here is a simple example on how to log both additional tensor or arbitrary scala
model.learn(50000, callback=TensorboardCallb... | [
{
"components": [
{
"doc": "Figure data class storing a matplotlib figure and whether to close the figure after logging it\n\n:param figure: figure to log\n:param close: if true, close the figure after logging it",
"lines": [
40,
50
],
"name": "Figure",
... | [
"tests/test_logger.py::test_main",
"tests/test_logger.py::test_make_output[stdout]",
"tests/test_logger.py::test_make_output[log]",
"tests/test_logger.py::test_make_output[json]",
"tests/test_logger.py::test_make_output[csv]",
"tests/test_logger.py::test_make_output_fail",
"tests/test_logger.py::test_ex... | [] | <request>
Add image and figure to tensorboard logger
## Description
Addition of Image and Figure as wrappers for images and maplotlib's figures respectively. These wrappers can be logged (only Tensorboard's implementation actually does anything with them, others raise Exceptions).
## Motivation and Context
I neede... | Here is the discussion in the issues of the pull request.
<issues>
[Feature Request] Add image to tensorboard
### 🚀 Feature
Add image logging support for logging to TensorBoard.
### Motivation
There is currently a way to log video into tensorBoard. Nevertheless, many environments need to log images, not video... | oracle | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
Add image and figure to tensorboard logger
## Description
Addition of Image and Figure as wrappers for images and maplotlib's figures respectively. These wrappers can be logged (only Tensorboard's implementati... | |
EleutherAI__lm-evaluation-harness-1566 | 1,566 | EleutherAI/lm-evaluation-harness | null | 49695e8d94c3ab011b7ae8814d809de30b1b1182 | decc533d02222f3b866d9a89263277fe0cc2fcb2 | 2024-03-12T17:35:39Z | [] | [
"lm_eval/__main__.py"
] | diff --git a/lm_eval/__main__.py b/lm_eval/__main__.py
index 489c1662d4..18c243d431 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 0000000000..feaa7340d6
--- /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 ty... | [
{
"components": [
{
"doc": "Check to make sure all CLI args are typed, raises error if not",
"lines": [
56,
67
],
"name": "check_argument_types",
"signature": "def check_argument_types(parser: argparse.ArgumentParser):",
"type": "function... | [
"tests/test_cli.py::test_cli_parse_error",
"tests/test_cli.py::test_cli_parse_no_error"
] | [] | <request>
Proposed approach for testing CLI arg parsing
See discussion here: https://github.com/EleutherAI/lm-evaluation-harness/issues/1518
Here's an approach to start testing CLI argument parsing:
1. Separate out setting up the argument parser in `parse_eval_args` into a separate method, `setup_parser` that get... | oracle | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
Proposed approach for testing CLI arg parsing
See discussion here: https://github.com/EleutherAI/lm-evaluation-harness/issues/1518
Here's an approach to start testing CLI argument parsing:
1. Separate out... | |||
EleutherAI__lm-evaluation-harness-2288 | 2,288 | EleutherAI/lm-evaluation-harness | null | decc533d02222f3b866d9a89263277fe0cc2fcb2 | decc533d02222f3b866d9a89263277fe0cc2fcb2 | 2024-09-10T11:06:39Z | [] | [
"lm_eval/tasks/__init__.py"
] | diff --git a/lm_eval/tasks/__init__.py b/lm_eval/tasks/__init__.py
index 7eeec8bbc6..6669a35b9b 100644
--- a/lm_eval/tasks/__init__.py
+++ b/lm_eval/tasks/__init__.py
@@ -40,7 +40,11 @@ def __init__(
[x for x in self._all_tasks if self._task_index[x]["type"] == "group"]
)
self._all_subtas... | diff --git a/tests/test_task_manager.py b/tests/test_task_manager.py
new file mode 100644
index 0000000000..1b10d3291a
--- /dev/null
+++ b/tests/test_task_manager.py
@@ -0,0 +1,73 @@
+import tempfile
+from pathlib import Path
+
+import pytest
+
+from lm_eval.tasks import TaskManager
+
+
+@pytest.fixture(scope="module")... | [
{
"components": [
{
"doc": "",
"lines": [
444,
478
],
"name": "TaskManager._get_task_and_group._populate_tags_and_groups",
"signature": "def _populate_tags_and_groups(config, task, tasks_and_groups, print_info):",
"type": "function"
... | [
"tests/test_task_manager.py::test_python_task_inclusion"
] | [] | <request>
Treat tags in python tasks the same as yaml tasks
Following https://github.com/EleutherAI/lm-evaluation-harness/issues/2268 , I would like python tasks (ie, tasks defined by a `class: !function my.class` directive, to be treated the same as yaml tasks in terms of tags management.
## Rationale
While I un... | Here is the discussion in the issues of the pull request.
<issues>
Tasks of type `python_task` are not listed in `lm-eval --tasks list`
## Problem Description
When calling `TaskManager._initialize_tasks` I noticed that tasks which are managed by their own python class enter the `_task_index` with `type="python_task"`:... | oracle | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
Treat tags in python tasks the same as yaml tasks
Following https://github.com/EleutherAI/lm-evaluation-harness/issues/2268 , I would like python tasks (ie, tasks defined by a `class: !function my.class` direct... | ||
Project-MONAI__MONAI-1138 | 1,138 | Project-MONAI/MONAI | null | 614659093c891ef479695aec16ca048b8fe69e6b | e73257caa79309dcce1e93abf1632f4bfd75b11f | 2020-10-25T19:21:52Z | [
"monai/data/thread_buffer.py"
] | [
"monai/data/__init__.py",
"monai/utils/decorators.py",
"monai/utils/misc.py"
] | diff --git a/docs/source/data.rst b/docs/source/data.rst
index c79ed15e75..c45f9a4a73 100644
--- a/docs/source/data.rst
+++ b/docs/source/data.rst
@@ -130,3 +130,8 @@ Decathlon Datalist
DataLoader
~~~~~~~~~~
.. autofunction:: monai.data.DataLoader
+
+
+ThreadBuffer
+~~~~~~~~~~~~
+.. autofunction:: monai.data.ThreadB... | diff --git a/tests/test_thread_buffer.py b/tests/test_thread_buffer.py
new file mode 100644
index 0000000000..2688f1ae40
--- /dev/null
+++ b/tests/test_thread_buffer.py
@@ -0,0 +1,57 @@
+import time
+import unittest
+
+from monai.data import DataLoader, Dataset, ThreadBuffer
+from monai.transforms import Compose, Simul... | diff --git a/docs/source/data.rst b/docs/source/data.rst
index c79ed15e75..c45f9a4a73 100644
--- a/docs/source/data.rst
+++ b/docs/source/data.rst
@@ -130,3 +130,8 @@ Decathlon Datalist
DataLoader
~~~~~~~~~~
.. autofunction:: monai.data.DataLoader
+
+
+ThreadBuffer
+~~~~~~~~~~~~
+.. autofunction:: monai.data.ThreadB... | [
{
"components": [
{
"doc": "Iterates over values from self.src in a separate thread but yielding them in the current thread. This allows values\nto be queued up asynchronously. The internal thread will continue running so long as the source has values or until\nthe stop() method is called.\n\nOne ... | [
"tests/test_thread_buffer.py::TestDataLoader::test_time",
"tests/test_thread_buffer.py::TestDataLoader::test_values"
] | [] | <request>
Threadbuffer
### Description
Adds `ThreadBuffer` for generating batches in a separate thread from the main thread. This allows a batch to be generated while the GPU is busy with training, allowing some overlap of execution which should speed up the training process. A example notebook to come in the tutorial... | oracle | This is a feature request which requires a new feature to add in the code repository.
<<NEW FEATURE REQUEST>>
Threadbuffer
### Description
Adds `ThreadBuffer` for generating batches in a separate thread from the main thread. This allows a batch to be generated while the GPU is busy with training, allowing some overlap... | ||
Project-MONAI__MONAI-127 | 127 | Project-MONAI/MONAI | null | 5ae87f8e5056f23cb3e86394f4094bf5f61aa32f | e73257caa79309dcce1e93abf1632f4bfd75b11f | 2020-02-28T14:16:03Z | [] | ["monai/networks/blocks/convolutions.py","monai/networks/layers/factories.py","monai/networks/nets/d(...TRUNCATED) | "diff --git a/docs/source/highlights.md b/docs/source/highlights.md\nindex f7895bf65d..113fc1a1c5 10(...TRUNCATED) | "diff --git a/tests/test_unet.py b/tests/test_unet.py\nindex 5b8e85f915..be661a4dbb 100644\n--- a/te(...TRUNCATED) | "diff --git a/docs/source/highlights.md b/docs/source/highlights.md\nindex f7895bf65d..113fc1a1c5 10(...TRUNCATED) | [{"components":[{"doc":"Factory object for creating layers, this uses given factory functions to act(...TRUNCATED) | ["tests/test_unet.py::TestUNET::test_shape_0","tests/test_unet.py::TestUNET::test_shape_1","tests/te(...TRUNCATED) | [] | "<request>\n81 layer factory\nFixes #81.\r\n\r\n### Description\r\n\r\nAdds a new layer factory mech(...TRUNCATED) | "Here is the discussion in the issues of the pull request.\n<issues>\nCreate layer factory mechanism(...TRUNCATED) | oracle | "This is a feature request which requires a new feature to add in the code repository.\n<<NEW FEATUR(...TRUNCATED) | |
Project-MONAI__MONAI-1546 | 1,546 | Project-MONAI/MONAI | null | 2021f244a0d2e56806f7835ebf0ecff2ef496ca5 | e73257caa79309dcce1e93abf1632f4bfd75b11f | 2021-02-04T12:45:14Z | [] | [
"monai/transforms/__init__.py",
"monai/transforms/utility/dictionary.py"
] | "diff --git a/docs/source/transforms.rst b/docs/source/transforms.rst\nindex 90d960a6b9..228b73b6c2 (...TRUNCATED) | "diff --git a/tests/test_rand_lambdad.py b/tests/test_rand_lambdad.py\nnew file mode 100644\nindex 0(...TRUNCATED) | "diff --git a/docs/source/transforms.rst b/docs/source/transforms.rst\nindex 90d960a6b9..228b73b6c2 (...TRUNCATED) | [{"components":[{"doc":"Randomizable version :py:class:`monai.transforms.Lambdad`, the input `func` (...TRUNCATED) | [
"tests/test_rand_lambdad.py::TestRandLambdad::test_rand_lambdad_identity"
] | [] | "<request>\n1542 Add RandLambdad transform\nFixes #1542 .\r\n\r\n### Description\r\nThis PR added `R(...TRUNCATED) | "Here is the discussion in the issues of the pull request.\n<issues>\nlambda transform should be opt(...TRUNCATED) | oracle | "This is a feature request which requires a new feature to add in the code repository.\n<<NEW FEATUR(...TRUNCATED) | |
Project-MONAI__MONAI-1670 | 1,670 | Project-MONAI/MONAI | null | 39fd45544673f06a5752980c08f0680e723a50f4 | e73257caa79309dcce1e93abf1632f4bfd75b11f | 2021-03-01T13:07:24Z | [] | ["monai/transforms/__init__.py","monai/transforms/spatial/array.py","monai/transforms/spatial/dictio(...TRUNCATED) | "diff --git a/docs/source/transforms.rst b/docs/source/transforms.rst\nindex a144c8c138..00d8cb9053 (...TRUNCATED) | "diff --git a/tests/test_rand_axis_flip.py b/tests/test_rand_axis_flip.py\nnew file mode 100644\nind(...TRUNCATED) | "diff --git a/docs/source/transforms.rst b/docs/source/transforms.rst\nindex a144c8c138..00d8cb9053 (...TRUNCATED) | [{"components":[{"doc":"Randomly select a spatial axis and flip along it.\nSee numpy.flip for additi(...TRUNCATED) | ["tests/test_rand_axis_flip.py::TestRandAxisFlip::test_correct_results","tests/test_rand_axis_flipd.(...TRUNCATED) | [] | "<request>\n1668 Add RandAxisFlip transforms\nFixes #1668 .\r\n\r\n### Description\r\nThis PR added (...TRUNCATED) | "Here is the discussion in the issues of the pull request.\n<issues>\nNeed to implement RandAxisFlip(...TRUNCATED) | oracle | "This is a feature request which requires a new feature to add in the code repository.\n<<NEW FEATUR(...TRUNCATED) |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 5