Dataset Viewer
Auto-converted to Parquet Duplicate
instance_id
stringlengths
14
45
pull_number
int64
74
29.2k
repo
stringlengths
10
39
version
stringclasses
37 values
base_commit
stringlengths
40
40
environment_setup_commit
stringlengths
40
40
created_at
stringdate
2015-03-20 20:39:55
2025-01-02 13:53:18
added_files
listlengths
0
2
modified_files
listlengths
0
3
patch
stringlengths
525
15.9k
test_patch
stringlengths
606
17.8k
non_py_patch
stringlengths
0
7.21k
new_components
listlengths
1
3
FAIL_TO_PASS
listlengths
1
202
PASS_TO_PASS
listlengths
0
910
pull_request_text
stringlengths
76
22.3k
issue_text
stringclasses
26 values
context_type
stringclasses
1 value
problem_statement
stringlengths
754
23k
hints_text
stringclasses
1 value
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...
Project-MONAI__MONAI-465
465
Project-MONAI/MONAI
null
718d11abb2310ab74321256032a264488a7883b4
e73257caa79309dcce1e93abf1632f4bfd75b11f
2020-06-01T14:18:19Z
[ "monai/data/decathalon_dataloader.py" ]
[ "monai/data/__init__.py" ]
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")...
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...
[ { "components": [ { "doc": "", "lines": [ 16, 25 ], "name": "_compute_path", "signature": "def _compute_path(base_dir, element):", "type": "function" }, { "doc": "", "lines": [ 28, 37 ...
[ "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::T...
[]
<request> 461 add support to load decathalon datalist Fixes #461 . ### Description As 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 have notebooks and examples based on Decathalon dataset. S...
Here is the discussion in the issues of the pull request. <issues> Add utility function to load dataset from JSON file **Is your feature request related to a problem? Please describe.** Most of public datasets has a separate file to store `datalist`, let's add a JSON parser first based on the Decathalon dataset format...
oracle
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> 461 add support to load decathalon datalist Fixes #461 . ### Description As Decathalon challenge dataset is very rich and very popular in medical domain, many researchers and students use Decathalon dataset...
PyThaiNLP__pythainlp-1054
1,054
PyThaiNLP/pythainlp
null
2252dee57bd7be9503242fa734bf0abc48c5ddf1
2252dee57bd7be9503242fa734bf0abc48c5ddf1
2025-01-02T13:53:18Z
[]
[ "pythainlp/lm/__init__.py", "pythainlp/lm/text_util.py" ]
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...
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
[ { "components": [ { "doc": "Calculates the counts of n-grams in the list words for the specified range.\n\n:param List[str] list_words: List of string\n:param int n_min: The minimum n-gram size (default: 2).\n:param int n_max: The maximum n-gram size (default: 4).\n\n:return: A dictionary where ke...
[ "tests/core/test_lm.py::LMTestCase::test_calculate_ngram_counts", "tests/core/test_lm.py::LMTestCase::test_remove_repeated_ngrams" ]
[]
<request> Add pythainlp.lm.calculate_ngram_counts Calculates the counts of n-grams in the list words for the specified range. ``` >>> from pythainlp.lm import calculate_ngram_counts >>> a=["1","2","3","4"] >>> calculate_ngram_counts(a) {('1', '2'): 1, ('2', '3'): 1, ('3', '4'): 1, ('1', '2', '3'): 1, ('2', '3', ...
oracle
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> Add pythainlp.lm.calculate_ngram_counts Calculates the counts of n-grams in the list words for the specified range. ``` >>> from pythainlp.lm import calculate_ngram_counts >>> a=["1","2","3","4"] >>> calc...
RDFLib__rdflib-1968
1,968
RDFLib/rdflib
null
131d9e66e8515aa81d776969d42f58c72bc68f86
0c11debb5178157baeac27b735e49a757916d2a6
2022-05-22T12:06:12Z
[ "rdflib/tools/chunk_serializer.py" ]
[ "rdflib/plugins/serializers/nt.py" ]
diff --git a/CHANGELOG.md b/CHANGELOG.md index a43d51694..27c9fc414 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,23 @@ CHANGE BARRIER is intended to reduce the potential for merge conflicts and will be removed for release. --> + +<!-- --> +<!-- --> +<!-- CHANGE BARRIER: START --> +<!-- --> +<!-- --> + ...
diff --git a/test/test_tools/test_chunk_serializer.py b/test/test_tools/test_chunk_serializer.py new file mode 100644 index 000000000..4f582b192 --- /dev/null +++ b/test/test_tools/test_chunk_serializer.py @@ -0,0 +1,173 @@ +from __future__ import annotations + +import logging +import os +from contextlib import ExitSta...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a43d51694..27c9fc414 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,23 @@ CHANGE BARRIER is intended to reduce the potential for merge conflicts and will be removed for release. --> + +<!-- --> +<!-- --> +<!-- CHANGE BARRIER: START --> +<!-- --> +<!-- --> + ...
[ { "components": [ { "doc": "Serializes a given Graph into a series of n-triples with a given length.\n\n:param g:\n The graph to serialize.\n\n:param max_file_size_kb:\n Maximum size per NT file in kB (1,000 bytes)\n Equivalent to ~6,000 triples, depending on Literal sizes.\n\n:param max_...
[ "test/test_tools/test_chunk_serializer.py::test_chunk_by_triples", "test/test_tools/test_chunk_serializer.py::test_chunk_by_size", "test/test_tools/test_chunk_serializer.py::test_chuking[test_graph_path0-max_triples0-max_file_size_kb0-False-True-1]", "test/test_tools/test_chunk_serializer.py::test_chuking[tes...
[]
<request> add chunk serializer & tests # Summary of changes This file provides a single function `serialize_in_chunks()` which can serialize a Graph into a number of NT files with a maximum number of triples or maximum file size. There is an option to preserve any prefixes declared for the original graph in the...
oracle
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> add chunk serializer & tests # Summary of changes This file provides a single function `serialize_in_chunks()` which can serialize a Graph into a number of NT files with a maximum number of triples or maxi...
RDFLib__rdflib-968
968
RDFLib/rdflib
null
0e5efef78702575e4abff4d8076eac4e2bd9d5f0
0c11debb5178157baeac27b735e49a757916d2a6
2020-03-13T11:56:00Z
[]
[ "rdflib/graph.py" ]
diff --git a/rdflib/graph.py b/rdflib/graph.py index 4a27e6de7..f68300cb1 100644 --- a/rdflib/graph.py +++ b/rdflib/graph.py @@ -1269,6 +1269,55 @@ def do_de_skolemize2(t): return retval + def cbd(self, resource): + """Retrieves the Concise Bounded Description of a Resource from a Graph + + ...
diff --git a/test/test_graph_cbd.py b/test/test_graph_cbd.py new file mode 100644 index 000000000..aedc9dd07 --- /dev/null +++ b/test/test_graph_cbd.py @@ -0,0 +1,124 @@ +import unittest +from rdflib import Graph, Namespace + + +class CbdTestCase(unittest.TestCase): + """Tests the Graph class' cbd() function""" + + ...
[ { "components": [ { "doc": "Retrieves the Concise Bounded Description of a Resource from a Graph\n\nConcise Bounded Description (CBD) is defined in [1] as:\n\nGiven a particular node (the starting node) in a particular RDF graph (the source graph), a subgraph of that\nparticular graph, taken to co...
[ "test/test_graph_cbd.py::CbdTestCase::testCbd", "test/test_graph_cbd.py::CbdTestCase::testCbdReified" ]
[]
<request> Concise Bounded Description This PR implements a Graph() function cbd() for 'Concise Bounded Description'. It extracts a subgraph from a source graph as per the rules in the W3C member submission [1]. This PR includes documentation for the method, tests and I want it mostly to be an example of a well-prese...
oracle
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> Concise Bounded Description This PR implements a Graph() function cbd() for 'Concise Bounded Description'. It extracts a subgraph from a source graph as per the rules in the W3C member submission [1]. This P...
Textualize__rich-1706
1,706
Textualize/rich
null
008854c40772f647dfcb873bc3489e8a1c02d598
b0661de34bab35af9b4b1d3ba8e28b186b225e84
2021-11-17T21:21:55Z
[]
[ "rich/text.py" ]
diff --git a/CHANGELOG.md b/CHANGELOG.md index 77dd5a0a9..2b1dc69d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Allowed `__rich__` to work recursively - Allowed Text classes to work with sep in print https://github....
diff --git a/tests/test_text.py b/tests/test_text.py index 3727d1602..6eecb9ee7 100644 --- a/tests/test_text.py +++ b/tests/test_text.py @@ -95,6 +95,15 @@ def test_from_markup(): assert text._spans == [Span(7, 13, "bold")] +def test_from_ansi(): + text = Text.from_ansi("Hello, \033[1mWorld!\033[0m") + t...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 77dd5a0a9..2b1dc69d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Allowed `__rich__` to work recursively - Allowed Text classes to work with sep in print https://github....
[ { "components": [ { "doc": "Create a Text object from pre-formatted ANSI.\n\nArgs:\n text (str): A string containing ANSI color codes.\n style (Union[str, Style], optional): Base style for text. Defaults to \"\".\n justify (str, optional): Justify method: \"left\", \"center\", \"full\", \...
[ "tests/test_text.py::test_from_ansi" ]
[ "tests/test_text.py::test_span", "tests/test_text.py::test_span_split", "tests/test_text.py::test_span_move", "tests/test_text.py::test_span_right_crop", "tests/test_text.py::test_len", "tests/test_text.py::test_cell_len", "tests/test_text.py::test_bool", "tests/test_text.py::test_str", "tests/test_...
<request> Add a Text.from_ansi helper method Add a simple little helper to run `AnsiDecoder.decode_line` over "pre-cooked" inputs. Fixes issue: #1670 ## Type of changes - [x] Bug fix - [x] New feature - [x] Documentation / docstrings - [x] Tests ## Checklist - [x] I've run the latest [black](https://g...
oracle
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> Add a Text.from_ansi helper method Add a simple little helper to run `AnsiDecoder.decode_line` over "pre-cooked" inputs. Fixes issue: #1670 ## Type of changes - [x] Bug fix - [x] New feature - [x] Do...
Textualize__rich-1894
1,894
Textualize/rich
null
633faab16dc3a8c01a6562648cc2186c19a476e3
b0661de34bab35af9b4b1d3ba8e28b186b225e84
2022-01-31T14:32:01Z
[]
[ "rich/progress.py" ]
diff --git a/rich/progress.py b/rich/progress.py index 1f670db43..fe35b6c17 100644 --- a/rich/progress.py +++ b/rich/progress.py @@ -588,12 +588,7 @@ def __init__( refresh_per_second is None or refresh_per_second > 0 ), "refresh_per_second must be > 0" self._lock = RLock() - self.c...
diff --git a/tests/test_progress.py b/tests/test_progress.py index 2020f91ff..20b9d32ed 100644 --- a/tests/test_progress.py +++ b/tests/test_progress.py @@ -334,6 +334,32 @@ def test_columns() -> None: assert result == expected +def test_using_default_columns() -> None: + # can only check types, as the inst...
[ { "components": [ { "doc": "Get the default columns used for a new Progress instance:\n - a text column for the description (TextColumn)\n - the bar itself (BarColumn)\n - a text column showing completion percentage (TextColumn)\n - an estimated-time-remaining column (TimeRemainingColumn)\...
[ "tests/test_progress.py::test_using_default_columns" ]
[ "tests/test_progress.py::test_bar_columns", "tests/test_progress.py::test_text_column", "tests/test_progress.py::test_time_elapsed_column", "tests/test_progress.py::test_time_remaining_column", "tests/test_progress.py::test_renderable_column", "tests/test_progress.py::test_spinner_column", "tests/test_p...
<request> Add default_columns classmethod to Progress class ## Type of changes - [ ] Bug fix - [x] New feature - [ ] Documentation / docstrings - [ ] Tests - [ ] Other ## Checklist - [x] I've run the latest [black](https://github.com/psf/black) with default args on new code. - [ ] I've updated CHANGELOG.m...
oracle
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> Add default_columns classmethod to Progress class ## Type of changes - [ ] Bug fix - [x] New feature - [ ] Documentation / docstrings - [ ] Tests - [ ] Other ## Checklist - [x] I've run the latest ...
Textualize__rich-376
376
Textualize/rich
null
a83ee864e67d97be926894c7b5d3cf470194d6c1
b0661de34bab35af9b4b1d3ba8e28b186b225e84
2020-10-11T16:35:48Z
[]
[ "rich/console.py" ]
diff --git a/CHANGELOG.md b/CHANGELOG.md index f813ffeb0..132fafbbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Addded box.SQUARE_DOUBLE_HEAD - Added highlighting of EUI-48 and EUI-64 (MAC addresses) - Added Console...
diff --git a/tests/test_console.py b/tests/test_console.py index eca300095..8dbe06933 100644 --- a/tests/test_console.py +++ b/tests/test_console.py @@ -370,3 +370,10 @@ def mock_pager(content: str) -> None: console.print("[bold link https:/example.org]Hello World") assert pager_content == "Hello World\...
diff --git a/CHANGELOG.md b/CHANGELOG.md index f813ffeb0..132fafbbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Addded box.SQUARE_DOUBLE_HEAD - Added highlighting of EUI-48 and EUI-64 (MAC addresses) - Added Console...
[ { "components": [ { "doc": "Output to the terminal. This is a low-level way of writing to the terminal which unlike\n:meth:`~rich.console.Console.print` doesn't pretty print, wrap text, nor markup, but will highlighting\nand apply basic style.\n\nArgs:\n sep (str, optional): String to write bet...
[ "tests/test_console.py::test_out" ]
[ "tests/test_console.py::test_dumb_terminal", "tests/test_console.py::test_16color_terminal", "tests/test_console.py::test_truecolor_terminal", "tests/test_console.py::test_console_options_update", "tests/test_console.py::test_init", "tests/test_console.py::test_size", "tests/test_console.py::test_repr",...
<request> console out Adds a Console.out method which is like a low-level print does simple styling only. ## Type of changes - [ ] Bug fix - [x] New feature - [x] Documentation / docstrings - [ ] Tests - [ ] Other ## Checklist - [x] I've run the latest [black](https://github.com/psf/black) with default ...
oracle
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> console out Adds a Console.out method which is like a low-level print does simple styling only. ## Type of changes - [ ] Bug fix - [x] New feature - [x] Documentation / docstrings - [ ] Tests - [ ] Ot...
Textualize__rich-901
901
Textualize/rich
null
a9c0f917aed8d0bba232b7584742962f03a9a293
b0661de34bab35af9b4b1d3ba8e28b186b225e84
2021-01-09T16:12:28Z
[]
[ "rich/console.py", "rich/segment.py", "rich/style.py" ]
diff --git a/CHANGELOG.md b/CHANGELOG.md index d8378b729..acb53b130 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Added rich.tree +- Added no_color argument to Console ## [9.6.2] - 2021-01-07 diff --gi...
diff --git a/tests/test_console.py b/tests/test_console.py index b82c76591..82bc5b48d 100644 --- a/tests/test_console.py +++ b/tests/test_console.py @@ -467,3 +467,14 @@ def test_console_style() -> None: expected = "\x1b[31mfoo\x1b[0m\n" result = console.file.getvalue() assert result == expected + + +def...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d8378b729..acb53b130 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Added rich.tree +- Added no_color argument to Console ## [9.6.2] - 2021-01-07
[ { "components": [ { "doc": "Remove all color from an iterable of segments.\n\nArgs:\n segments (Iterable[Segment]): An iterable segments.\n\nYields:\n Segment: Segments with colorless style.", "lines": [ 344, 363 ], "name": "Segment.remove_color", ...
[ "tests/test_console.py::test_no_color", "tests/test_segment.py::test_remove_color", "tests/test_style.py::test_without_color" ]
[ "tests/test_console.py::test_dumb_terminal", "tests/test_console.py::test_soft_wrap", "tests/test_console.py::test_16color_terminal", "tests/test_console.py::test_truecolor_terminal", "tests/test_console.py::test_console_options_update", "tests/test_console.py::test_init", "tests/test_console.py::test_s...
<request> No color Fixes https://github.com/willmcgugan/rich/issues/882 Adds a no_color mode which strips color before render. ## Type of changes - [ ] Bug fix - [ ] New feature - [ ] Documentation / docstrings - [ ] Tests - [ ] Other ## Checklist - [ ] I've run the latest [black](https://github.com/...
oracle
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> No color Fixes https://github.com/willmcgugan/rich/issues/882 Adds a no_color mode which strips color before render. ## Type of changes - [ ] Bug fix - [ ] New feature - [ ] Documentation / docstring...
Textualize__textual-1517
1,517
Textualize/textual
null
779b10a0e8b8581fab512eb684a06eb90381705d
86e93536b991014e0ea4bf993068202b446bb698
2023-01-07T14:10:40Z
[]
[ "src/textual/app.py" ]
diff --git a/src/textual/app.py b/src/textual/app.py index b207bbd025..89da6aaf60 100644 --- a/src/textual/app.py +++ b/src/textual/app.py @@ -1,6 +1,8 @@ from __future__ import annotations import asyncio +from concurrent.futures import Future +from functools import partial import inspect import io import os @@ ...
diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py new file mode 100644 index 0000000000..c73418f2f2 --- /dev/null +++ b/tests/test_concurrency.py @@ -0,0 +1,53 @@ +import pytest + +from threading import Thread +from textual.app import App, ComposeResult +from textual.widgets import TextLog + + +def tes...
[ { "components": [ { "doc": "Run a callback from another thread.\n\nLike asyncio apps in general, Textual apps are not thread-safe. If you call methods\nor set attributes on Textual objects from a thread, you may get unpredictable results.\n\nThis method will ensure that your code is ran within the...
[ "tests/test_concurrency.py::test_call_from_thread_app_not_running", "tests/test_concurrency.py::test_call_from_thread" ]
[]
<request> Call from thread method This is a step towards having an answer to devs who want to integrate a third-party API with Textual. The `call_from_thread` takes a callback that will be called in the app's loop from a thread. It will block until the callback returns. If integrating with a threaded API (many are u...
oracle
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> Call from thread method This is a step towards having an answer to devs who want to integrate a third-party API with Textual. The `call_from_thread` takes a callback that will be called in the app's loop fro...
astronomer__astronomer-cosmos-758
758
astronomer/astronomer-cosmos
null
9fcee8e785ea3bcb0d19e8d36f3f5b94bedafc98
c5edba07d2265d5185eaba149a639e8a0740e498
2023-12-11T01:54:27Z
[]
[ "cosmos/profiles/athena/access_key.py" ]
diff --git a/cosmos/profiles/athena/access_key.py b/cosmos/profiles/athena/access_key.py index a8f71c2b7..02de2be24 100644 --- a/cosmos/profiles/athena/access_key.py +++ b/cosmos/profiles/athena/access_key.py @@ -3,20 +3,33 @@ from typing import Any +from cosmos.exceptions import CosmosValueError + from ..base im...
diff --git a/tests/profiles/athena/test_athena_access_key.py b/tests/profiles/athena/test_athena_access_key.py index 22c8efa2c..c224a9d4b 100644 --- a/tests/profiles/athena/test_athena_access_key.py +++ b/tests/profiles/athena/test_athena_access_key.py @@ -1,20 +1,49 @@ "Tests for the Athena profile." import json -...
diff --git a/pyproject.toml b/pyproject.toml index c08de4ade..9d367c075 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,6 +57,7 @@ dbt-all = [ ] dbt-athena = [ "dbt-athena-community", + "apache-airflow-providers-amazon>=8.0.0", ] dbt-bigquery = [ "dbt-bigquery", @@ -110,7 +111,6 @@ tests = [ ...
[ { "components": [ { "doc": "Overwrites the env_vars for athena, Returns a dictionary of environment variables that should be set based on the self.temporary_credentials.", "lines": [ 75, 89 ], "name": "AthenaAccessKeyProfileMapping.env_vars", "si...
[ "tests/profiles/athena/test_athena_access_key.py::test_athena_connection_claiming", "tests/profiles/athena/test_athena_access_key.py::test_athena_profile_args", "tests/profiles/athena/test_athena_access_key.py::test_athena_profile_args_overrides", "tests/profiles/athena/test_athena_access_key.py::test_athena_...
[ "tests/profiles/athena/test_athena_access_key.py::test_athena_profile_mapping_selected" ]
<request> Athena - Get temporary credentials from the conn_id ## Description <!-- Add a brief but complete description of the change. --> Passes the `conn_id` to the `AwsGenericHook` and uses `get_credentials()`, which handles the creation of a session, credentials, freezing of credentials & also masking. [Se...
oracle
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> Athena - Get temporary credentials from the conn_id ## Description <!-- Add a brief but complete description of the change. --> Passes the `conn_id` to the `AwsGenericHook` and uses `get_credentials()`, w...
astropy__astropy-13094
13,094
astropy/astropy
5.0
583464d40b32313da6b864d2f260c06d1a0e67e6
7cbba866a8c5749b90a5cb4f9877ddfad2d36037
2022-04-10T18:52:18Z
[]
[ "astropy/wcs/wcs.py" ]
diff --git a/astropy/wcs/wcs.py b/astropy/wcs/wcs.py index 6d508279375d..3903ad49cc1c 100644 --- a/astropy/wcs/wcs.py +++ b/astropy/wcs/wcs.py @@ -3226,6 +3226,21 @@ def has_spectral(self): except InconsistentAxisTypesError: return False + @property + def temporal(self): + """ + ...
diff --git a/astropy/wcs/tests/test_wcs.py b/astropy/wcs/tests/test_wcs.py index f51b50906e80..9aca3b34b1de 100644 --- a/astropy/wcs/tests/test_wcs.py +++ b/astropy/wcs/tests/test_wcs.py @@ -1534,10 +1534,24 @@ def test_pixlist_wcs_colsel(): _WCSLIB_VER < Version('7.8'), reason="TIME axis extraction only work...
diff --git a/docs/changes/wcs/13094.feature.rst b/docs/changes/wcs/13094.feature.rst new file mode 100644 index 000000000000..e6b718e0a4e0 --- /dev/null +++ b/docs/changes/wcs/13094.feature.rst @@ -0,0 +1,2 @@ +Add ``temporal`` properties for convenient access of/selection of/testing for +the ``TIME`` axis introduced i...
[ { "components": [ { "doc": "A copy of the current WCS with only the time axes included", "lines": [ 3230, 3234 ], "name": "WCS.temporal", "signature": "def temporal(self):", "type": "function" }, { "doc": "", "...
[ "astropy/wcs/tests/test_wcs.py::test_temporal" ]
[ "astropy/wcs/tests/test_wcs.py::test_fixes", "astropy/wcs/tests/test_wcs.py::test_outside_sky", "astropy/wcs/tests/test_wcs.py::test_pix2world", "astropy/wcs/tests/test_wcs.py::test_load_fits_path", "astropy/wcs/tests/test_wcs.py::test_dict_init", "astropy/wcs/tests/test_wcs.py::test_extra_kwarg", "astr...
<request> Add wcs temporal properties ### Description This PR add "temporal" properties to access 'TIME' axis in the WCS. This is the second part of the original PR - https://github.com/astropy/astropy/pull/13062 ### Checklist for package maintainer(s) This checklist is meant to remind the package maintainer(s) ...
oracle
This is a feature request which requires a new feature to add in the code repository. <<NEW FEATURE REQUEST>> Add wcs temporal properties ### Description This PR add "temporal" properties to access 'TIME' axis in the WCS. This is the second part of the original PR - https://github.com/astropy/astropy/pull/13062 ###...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4