repo
stringlengths
8
51
unit
stringlengths
0
34
subject
stringlengths
8
200
granularity
stringclasses
2 values
spec_source
stringclasses
2 values
spec
stringlengths
20
2.13k
source_before
stringlengths
78
58.2k
source_after
stringlengths
123
58.4k
test_file
stringlengths
7
75
fail_to_pass
listlengths
1
36
committed_at
stringdate
2010-06-13 00:00:00
2026-08-17 00:00:00
parent_at
stringdate
2010-06-12 00:00:00
2026-08-17 00:00:00
license
stringclasses
6 values
license_file
stringclasses
8 values
also_in
stringclasses
6 values
commit
stringlengths
40
40
parent
stringlengths
40
40
commit_url
stringlengths
75
118
repo_url
stringlengths
27
70
module
stringlengths
2
75
units_changed
listlengths
1
6
diff_lines
int64
1
25
n_tests
int64
1
36
fingerprint
stringlengths
16
16
id
stringlengths
25
119
language
stringclasses
1 value
validated_at
stringdate
2026-08-17 00:00:00
2026-08-18 00:00:00
validator
stringclasses
1 value
schema_version
int64
1
1
github-community-projects/issue-metrics
write_to_markdown
fix: move action reference outside table
function
docstring
Write the issues with metrics to a markdown file. Args: issues_with_metrics (IssueWithMetrics): A list of GitHub issues with metrics average_time_to_first_response (datetime.timedelta): The average time to first response for the issues. average_time_to_close (datetime.timedelta): The average time t...
def write_to_markdown( issues_with_metrics: Union[List[IssueWithMetrics], None], average_time_to_first_response: Union[timedelta, None], average_time_to_close: Union[timedelta, None], average_time_to_answer: Union[timedelta, None], average_time_in_labels: Union[dict, None], num_issues_opened: Un...
def write_to_markdown( issues_with_metrics: Union[List[IssueWithMetrics], None], average_time_to_first_response: Union[timedelta, None], average_time_to_close: Union[timedelta, None], average_time_to_answer: Union[timedelta, None], average_time_in_labels: Union[dict, None], num_issues_opened: Un...
test_markdown_writer.py
[ "test_markdown_writer.py::TestWriteToMarkdown::test_write_to_markdown" ]
2023-08-01
2023-07-31
MIT
LICENSE
9c97193521376587f501b398c5bde7f297e153a7
8dd9b248ac863297408f31c6ace7b9790ec39b41
https://github.com/github-community-projects/issue-metrics/commit/9c97193521376587f501b398c5bde7f297e153a7
https://github.com/github-community-projects/issue-metrics
markdown_writer
[ "write_to_markdown" ]
2
1
1fb4cb7f89e7bdb3
github-community-projects/issue-metrics@9c9719352#write_to_markdown
python
2026-08-18
goldset/0.1
1
getmoto/py-partiql-parser
Bug: Query DynamoDB item that contains a list
file
commit
Bug: Query DynamoDB item that contains a list
from .case_insensitive_dict import CaseInsensitiveDict from .json_parser import MissingVariable, Variable from typing import Any, Dict, List, Tuple, Union def is_dict(dct): return isinstance(dct, dict) or isinstance(dct, CaseInsensitiveDict) def find_nested_data( select_clause: str, data_source: List[Dict[s...
import re from .case_insensitive_dict import CaseInsensitiveDict from .json_parser import MissingVariable, Variable from typing import Any, Dict, List, Tuple, Union def is_dict(dct): return isinstance(dct, dict) or isinstance(dct, CaseInsensitiveDict) def find_nested_data( select_clause: str, data_source: ...
tests/test_dynamodb_examples.py
[ "tests/test_dynamodb_examples.py::test_search_object_inside_a_list" ]
2023-07-29
2023-07-19
MIT
LICENSE
fbb7da2bcc71082d5265d2a5ed53668e526220fc
7af964e811b115e7209a64f32be67720c0b194d4
https://github.com/getmoto/py-partiql-parser/commit/fbb7da2bcc71082d5265d2a5ed53668e526220fc
https://github.com/getmoto/py-partiql-parser
py_partiql_parser._internal.utils
[ "find_value_in_document" ]
17
1
947910d3d658cd61
getmoto/py-partiql-parser@fbb7da2bc#py_partiql_parser/_internal/utils.py
python
2026-08-18
goldset/0.1
1
astanin/python-tabulate
_format_table
Fix support for separating lines
function
docstring
Produce a plain-text representation of the table.
def _format_table(fmt, headers, headersaligns, rows, colwidths, colaligns, is_multiline, rowaligns): """Produce a plain-text representation of the table.""" lines = [] hidden = fmt.with_header_hide if (headers and fmt.with_header_hide) else [] pad = fmt.padding headerrow = fmt.headerrow padded_...
def _format_table(fmt, headers, headersaligns, rows, colwidths, colaligns, is_multiline, rowaligns): """Produce a plain-text representation of the table.""" lines = [] hidden = fmt.with_header_hide if (headers and fmt.with_header_hide) else [] pad = fmt.padding headerrow = fmt.headerrow padded_...
test/test_output.py
[ "test/test_output.py::test_orgtbl_with_sep_line" ]
2023-07-20
2023-04-30
MIT
LICENSE
b1ed1fda6f62b9069ef7d5871925399159d9dfc9
95ae5eb61ef969749e904c90ab429003238d6212
https://github.com/astanin/python-tabulate/commit/b1ed1fda6f62b9069ef7d5871925399159d9dfc9
https://github.com/astanin/python-tabulate
tabulate.__init__
[ "_format_table" ]
13
1
0cf7ed40f2dc791b
astanin/python-tabulate@b1ed1fda6#_format_table
python
2026-08-18
goldset/0.1
1
dynaconf/dynaconf
Fix: unexpected _bypass_evaluation in BoxList (#966)
file
commit
Fix: unexpected _bypass_evaluation in BoxList (#966)
from __future__ import annotations import copy import glob import importlib import inspect import os import warnings from collections import defaultdict from contextlib import contextmanager from contextlib import suppress from pathlib import Path from typing import Any from typing import Callable from dynaconf impor...
from __future__ import annotations import copy import glob import importlib import inspect import os import warnings from collections import defaultdict from contextlib import contextmanager from contextlib import suppress from pathlib import Path from typing import Any from typing import Callable from dynaconf impor...
tests/test_base.py
[ "tests/test_base.py::test_no_extra_values_in_nested_structure" ]
2023-07-20
2023-07-18
MIT
LICENSE
ae547940187c1e5c27e5dfc005661947fbd162ed
678d29b7383f03934a47e21b1bcdf68946d5c501
https://github.com/dynaconf/dynaconf/commit/ae547940187c1e5c27e5dfc005661947fbd162ed
https://github.com/dynaconf/dynaconf
dynaconf.base
[ "Settings" ]
2
1
50686ab13908d8f9
dynaconf/dynaconf@ae5479401#dynaconf/base.py
python
2026-08-18
goldset/0.1
1
dynaconf/dynaconf
Fix #959 cli get will exit code 1 in case of KeyError. (#960)
file
commit
Fix #959 cli get will exit code 1 in case of KeyError. (#960)
from __future__ import annotations import importlib import json import os import pprint import sys import warnings import webbrowser from contextlib import suppress from pathlib import Path from typing import TYPE_CHECKING from dynaconf import constants from dynaconf import default_settings from dynaconf import LazyS...
from __future__ import annotations import importlib import json import os import pprint import sys import warnings import webbrowser from contextlib import suppress from pathlib import Path from typing import TYPE_CHECKING from dynaconf import constants from dynaconf import default_settings from dynaconf import LazyS...
tests/test_cli.py
[ "tests/test_cli.py::test_negative_get" ]
2023-07-13
2023-07-12
MIT
LICENSE
5ae0176415cfd759d8fd9a8ef5c458cfbeec10d3
1cd1c6fcdf62f99013726c994cd7209d0f2233d6
https://github.com/dynaconf/dynaconf/commit/5ae0176415cfd759d8fd9a8ef5c458cfbeec10d3
https://github.com/dynaconf/dynaconf
dynaconf.cli
[ "_list", "get" ]
8
1
4b7e2f0689c55e48
dynaconf/dynaconf@5ae017641#dynaconf/cli.py
python
2026-08-18
goldset/0.1
1
mherrmann/gitignore_parser
fnmatch_pathname_to_regex
Fix: Directory rule matched similar files
function
docstring
Implements fnmatch style-behavior, as though with FNM_PATHNAME flagged; the path separator will not match shell-style '*' and '.' wildcards.
def fnmatch_pathname_to_regex( pattern, directory_only: bool, negation: bool, anchored: bool = False ): """ Implements fnmatch style-behavior, as though with FNM_PATHNAME flagged; the path separator will not match shell-style '*' and '.' wildcards. """ i, n = 0, len(pattern) seps = [re.esca...
def fnmatch_pathname_to_regex( pattern, directory_only: bool, negation: bool, anchored: bool = False ): """ Implements fnmatch style-behavior, as though with FNM_PATHNAME flagged; the path separator will not match shell-style '*' and '.' wildcards. """ i, n = 0, len(pattern) seps = [re.esca...
tests.py
[ "tests.py::Test::test_ignore_directory" ]
2023-06-30
2023-02-22
MIT
LICENSE
b3b5287e8ccd0b7b39b3f65b7b229b1f8ee226d5
8c927dd25d4848046e3b7c15d011ec88d64fc734
https://github.com/mherrmann/gitignore_parser/commit/b3b5287e8ccd0b7b39b3f65b7b229b1f8ee226d5
https://github.com/mherrmann/gitignore_parser
gitignore_parser
[ "fnmatch_pathname_to_regex" ]
4
1
45d28d057addab97
mherrmann/gitignore_parser@b3b5287e8#fnmatch_pathname_to_regex
python
2026-08-18
goldset/0.1
1
github-community-projects/issue-metrics
write_to_markdown
fix: use general term items instead of issues
function
docstring
Write the issues with metrics to a markdown file. Args: issues_with_metrics (IssueWithMetrics): A list of GitHub issues with metrics average_time_to_first_response (datetime.timedelta): The average time to first response for the issues. average_time_to_close (datetime.timedelta): The average time t...
def write_to_markdown( issues_with_metrics: Union[List[IssueWithMetrics], None], average_time_to_first_response: Union[timedelta, None], average_time_to_close: Union[timedelta, None], average_time_to_answer: Union[timedelta, None], num_issues_opened: Union[int, None], num_issues_closed: Union[in...
def write_to_markdown( issues_with_metrics: Union[List[IssueWithMetrics], None], average_time_to_first_response: Union[timedelta, None], average_time_to_close: Union[timedelta, None], average_time_to_answer: Union[timedelta, None], num_issues_opened: Union[int, None], num_issues_closed: Union[in...
test_markdown_writer.py
[ "test_markdown_writer.py::TestWriteToMarkdown::test_write_to_markdown" ]
2023-06-29
2023-06-28
MIT
LICENSE
744d20e0216c74cdd1df5b774eb72800b09d0def
5961292109e0fec2f7cac506ccc538da9c10b0b8
https://github.com/github-community-projects/issue-metrics/commit/744d20e0216c74cdd1df5b774eb72800b09d0def
https://github.com/github-community-projects/issue-metrics
markdown_writer
[ "write_to_markdown" ]
8
1
8600c162b54d0953
github-community-projects/issue-metrics@744d20e02#write_to_markdown
python
2026-08-18
goldset/0.1
1
erezsh/runtype
Bugfix: Had incorrect behavior when check_types=False (due to Required mechanism)
file
commit
Bugfix: Had incorrect behavior when check_types=False (due to Required mechanism)
""" Enhances Python's built-in dataclass, with type-checking and extra ergonomics. """ import random from copy import copy import dataclasses from typing import Union, Any, Tuple, Callable, TypeVar from abc import ABC, abstractmethod import inspect from .utils import ForwardRef from .common import CHECK_TYPES from .v...
""" Enhances Python's built-in dataclass, with type-checking and extra ergonomics. """ import random from copy import copy import dataclasses from typing import Union, Any, Tuple, Callable, TypeVar from abc import ABC, abstractmethod import inspect from .utils import ForwardRef from .common import CHECK_TYPES from .v...
tests/test_basic.py
[ "tests/test_basic.py::TestDataclass::test_required_keyword2" ]
2023-06-26
2023-06-10
MIT
LICENSE
655a2d01bbd7b379a754144fc7ee1a48960755cc
82a67027ca0e7c5fc8f81dc0452aa3fd3d77657a
https://github.com/erezsh/runtype/commit/655a2d01bbd7b379a754144fc7ee1a48960755cc
https://github.com/erezsh/runtype
runtype.dataclass
[ "_process_class" ]
21
1
079f4054f59f47b3
erezsh/runtype@655a2d01b#runtype/dataclass.py
python
2026-08-18
goldset/0.1
1
PyCQA/pyflakes
Reporter
fix error reporter and testsuite in 3.11.4+ (#775)
function
docstring
Formats the results of pyflakes checks to users.
class Reporter: """ Formats the results of pyflakes checks to users. """ def __init__(self, warningStream, errorStream): """ Construct a L{Reporter}. @param warningStream: A file-like object where warnings will be written to. The stream's C{write} method must accep...
class Reporter: """ Formats the results of pyflakes checks to users. """ def __init__(self, warningStream, errorStream): """ Construct a L{Reporter}. @param warningStream: A file-like object where warnings will be written to. The stream's C{write} method must accep...
pyflakes/test/test_api.py
[ "pyflakes/test/test_api.py::CheckTests::test_misencodedFileUTF16" ]
2023-06-13
2023-04-25
MIT
LICENSE
836631f2f73d45baa4021453d89fc9fd6f52be58
f2671ffe1785754f0e73d148635cbb38e673e169
https://github.com/PyCQA/pyflakes/commit/836631f2f73d45baa4021453d89fc9fd6f52be58
https://github.com/PyCQA/pyflakes
pyflakes.reporter
[ "Reporter" ]
3
1
ba86bc3fc0217138
PyCQA/pyflakes@836631f2f#Reporter
python
2026-08-18
goldset/0.1
1
allo-media/text2num
[de] fix: False positive ordinal detection
file
commit
[de] fix: False positive ordinal detection
# MIT License # Copyright (c) 2018-2019 Groupe Allo-Media # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify...
# MIT License # Copyright (c) 2018-2019 Groupe Allo-Media # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify...
tests/test_text_to_num_de.py
[ "tests/test_text_to_num_de.py::TestTextToNumDE::test_ordinals_false_positives" ]
2023-05-28
2023-05-26
MIT
LICENSE
5c358999717885de3e065d3e17435fa8a72613d5
55fe23ac282b9fa145e1f844e7a36de3abe65177
https://github.com/allo-media/text2num/commit/5c358999717885de3e065d3e17435fa8a72613d5
https://github.com/allo-media/text2num
text_to_num.transforms
[ "_alpha2digit_agg" ]
7
1
2e5848bd9518742a
allo-media/text2num@5c3589997#text_to_num/transforms.py
python
2026-08-18
goldset/0.1
1
fastavro/fastavro
fix namespace handling
file
commit
fix namespace handling
# cython: auto_cpdef=True import hashlib from io import StringIO import math from os import path from copy import deepcopy import re from typing import Tuple, Set, Optional, List, Any from .types import DictSchema, Schema, NamedSchemas from .repository import ( FlatDictRepository, SchemaRepositoryError, Ab...
# cython: auto_cpdef=True import hashlib from io import StringIO import math from os import path from copy import deepcopy import re from typing import Tuple, Set, Optional, List, Any from .types import DictSchema, Schema, NamedSchemas from .repository import ( FlatDictRepository, SchemaRepositoryError, Ab...
tests/test_schema.py
[ "tests/test_schema.py::test_namespace_respected" ]
2023-05-04
2023-04-19
MIT
LICENSE
2bc6f77786fe26ee0c1b91d9fb31c6da572b2210
215105c9118f6d80f54f3fe25e470bea4c534b8e
https://github.com/fastavro/fastavro/commit/2bc6f77786fe26ee0c1b91d9fb31c6da572b2210
https://github.com/fastavro/fastavro
fastavro._schema_py
[ "schema_name" ]
10
1
8cca221e1bbe8834
fastavro/fastavro@2bc6f7778#fastavro/_schema_py.py
python
2026-08-18
goldset/0.1
1
cuu508/cronsim
format_time
Fix digital time formatting (use HH:MM instead H:MM)
function
docstring
Format hours and minutes as a 24-hour time.
def format_time(h: int, m: int) -> str: """Format hours and minutes as a 24-hour time. >>> format_time(0, 0) '00:00' >>> format_time(1, 23) '1:23' """ if h == 0: return f"00:{m:02d}" return f"{h}:{m:02d}"
def format_time(h: int, m: int) -> str: """Format hours and minutes as HH:MM. >>> format_time(0, 0) '00:00' >>> format_time(1, 23) '01:23' """ return f"{h:02d}:{m:02d}"
tests/test_explain.py
[ "tests/test_explain.py::TestHourField::test" ]
2023-04-27
2023-04-27
BSD-3-Clause
LICENSE
81f4e4f970d0dfe42473d66a945f1e019fa90f25
9e18d74df2f5462ba576e18f6f3e9521695e76f3
https://github.com/cuu508/cronsim/commit/81f4e4f970d0dfe42473d66a945f1e019fa90f25
https://github.com/cuu508/cronsim
cronsim.explain
[ "format_time" ]
9
1
6a6f7839985e6168
cuu508/cronsim@81f4e4f97#format_time
python
2026-08-18
goldset/0.1
1
mahmoud/boltons
copy_function
fix: make copy_function work with keyword-only defaults (#336)
function
docstring
Returns a shallow copy of the function, including code object, globals, closure, etc. Args: orig (function): The function to be copied. Must be a function, not just any method or callable. copy_dict (bool): Also copy any attributes set on the function instance. Defaults to `True`.
def copy_function(orig, copy_dict=True): """Returns a shallow copy of the function, including code object, globals, closure, etc. >>> func = lambda: func >>> func() is func True >>> func_copy = copy_function(func) >>> func_copy() is func True >>> func_copy is not func True ...
def copy_function(orig, copy_dict=True): """Returns a shallow copy of the function, including code object, globals, closure, etc. >>> func = lambda: func >>> func() is func True >>> func_copy = copy_function(func) >>> func_copy() is func True >>> func_copy is not func True ...
tests/test_funcutils_fb_py3.py
[ "tests/test_funcutils_fb_py3.py::test_copy_function_kw_defaults_py3" ]
2023-04-21
2023-04-21
BSD-2-Clause
LICENSE
c2b04b4cb16410d7bf9ff781c78dee3ca908dc32
0341ab3d79e6430c0e6a4149df9c92679988a534
https://github.com/mahmoud/boltons/commit/c2b04b4cb16410d7bf9ff781c78dee3ca908dc32
https://github.com/mahmoud/boltons
boltons.funcutils
[ "copy_function" ]
2
1
979394f5df95aaff
mahmoud/boltons@c2b04b4cb#copy_function
python
2026-08-18
goldset/0.1
1
more-itertools/more-itertools
iterate
Issue #707: fix ``iterate()`` to enable ``func`` to raise StopIteration
function
docstring
Return `start`, `func(start)`, `func(func(start))`, ...
def iterate(func, start): """Return ``start``, ``func(start)``, ``func(func(start))``, ... >>> from itertools import islice >>> list(islice(iterate(lambda x: 2*x, 1), 10)) [1, 2, 4, 8, 16, 32, 64, 128, 256, 512] """ while True: yield start start = func(start)
def iterate(func, start): """Return ``start``, ``func(start)``, ``func(func(start))``, ... >>> from itertools import islice >>> list(islice(iterate(lambda x: 2*x, 1), 10)) [1, 2, 4, 8, 16, 32, 64, 128, 256, 512] """ while True: yield start try: start = func(start) ...
tests/test_more.py
[ "tests/test_more.py::IterateTests::test_func_controls_iteration_stop" ]
2023-04-19
2023-04-11
MIT
LICENSE
cd0a3a87d231033db06a3c222fe893025e398a86
7c1b6482a00cb9c1f76061c12be192ed5043e5ea
https://github.com/more-itertools/more-itertools/commit/cd0a3a87d231033db06a3c222fe893025e398a86
https://github.com/more-itertools/more-itertools
more_itertools.more
[ "iterate" ]
5
1
37d9ffc578a058d9
more-itertools/more-itertools@cd0a3a87d#iterate
python
2026-08-17
goldset/0.1
1
testing-cabal/mock
_get_signature_object
gh-102978: Fix mock.patch function signatures for class and staticmethod decorators (#103228)
function
docstring
Given an arbitrary, possibly callable object, try to create a suitable signature object. Return a (reduced func, signature) tuple, or None.
def _get_signature_object(func, as_instance, eat_self): """ Given an arbitrary, possibly callable object, try to create a suitable signature object. Return a (reduced func, signature) tuple, or None. """ if isinstance(func, type) and not as_instance: # If it's a type and should be modell...
def _get_signature_object(func, as_instance, eat_self): """ Given an arbitrary, possibly callable object, try to create a suitable signature object. Return a (reduced func, signature) tuple, or None. """ if isinstance(func, type) and not as_instance: # If it's a type and should be modell...
mock/tests/testhelpers.py
[ "mock/tests/testhelpers.py::SpecSignatureTest::test_autospec_signature_classmethod" ]
2023-04-16
2023-04-16
BSD-2-Clause
LICENSE.txt
079655cd9da2fd5fc22126b422ef3c100a3f96a2
1c7bfeff6575a5fee073bb648126780e00923936
https://github.com/testing-cabal/mock/commit/079655cd9da2fd5fc22126b422ef3c100a3f96a2
https://github.com/testing-cabal/mock
mock.mock
[ "_get_signature_object" ]
6
1
fd28fbed176f0955
testing-cabal/mock@079655cd9#_get_signature_object
python
2026-08-18
goldset/0.1
1
simplejson/simplejson
SJ-PT-23-100: Fix inconsistencies in error messages between C and Python implementations
file
commit
SJ-PT-23-100: Fix inconsistencies in error messages between C and Python implementations
"""Implementation of JSONDecoder """ from __future__ import absolute_import import re import sys import struct from .compat import PY3, unichr from .scanner import make_scanner, JSONDecodeError def _import_c_scanstring(): try: from ._speedups import scanstring return scanstring except ImportErr...
"""Implementation of JSONDecoder """ from __future__ import absolute_import import re import sys import struct from .compat import PY3, unichr from .scanner import make_scanner, JSONDecodeError def _import_c_scanstring(): try: from ._speedups import scanstring return scanstring except ImportErr...
simplejson/tests/test_fail.py
[ "simplejson/tests/test_fail.py::TestFail::test_truncated_input" ]
2023-04-04
2023-04-04
MIT
LICENSE.txt
dbd0aa395f480ef249cff9dc9add54a3035fc9e2
59dac4e82cd6766fc31a9389d573d732580eaab5
https://github.com/simplejson/simplejson/commit/dbd0aa395f480ef249cff9dc9add54a3035fc9e2
https://github.com/simplejson/simplejson
simplejson.decoder
[ "JSONObject", "py_scanstring" ]
5
1
b157ba4fd93198eb
simplejson/simplejson@dbd0aa395#simplejson/decoder.py
python
2026-08-18
goldset/0.1
1
terryyin/lizard
fix: Do not count `void` as a parameter (C/C++)
file
commit
fix: Do not count `void` as a parameter (C/C++)
''' Language parser for C, C++ -like languages. ''' import re import itertools from .code_reader import CodeStateMachine, CodeReader class CCppCommentsMixin(object): # pylint: disable=R0903 @staticmethod def get_comment_from_token(token): if token.startswith("/*") or token.startswith("//"): ...
''' Language parser for C, C++ -like languages. ''' import re import itertools from .code_reader import CodeStateMachine, CodeReader class CCppCommentsMixin(object): # pylint: disable=R0903 @staticmethod def get_comment_from_token(token): if token.startswith("/*") or token.startswith("//"): ...
test/test_languages/testCAndCPP.py
[ "test/test_languages/testCAndCPP.py::Test_c_cpp_lizard::test_function_with_no_param_void" ]
2023-03-17
2023-02-27
MIT
LICENSE.txt
9cff977efe8c202e5f01079cafd25e14c4b5e649
3c4488aed0e5b737486b5ff30b91f2747f904250
https://github.com/terryyin/lizard/commit/9cff977efe8c202e5f01079cafd25e14c4b5e649
https://github.com/terryyin/lizard
lizard_languages.clike
[ "CLikeStates" ]
3
1
87aa5de7a4308814
terryyin/lizard@9cff977ef#lizard_languages/clike.py
python
2026-08-18
goldset/0.1
1
geospace-code/pymap3d
Ellipsoid
Ellipsoid.from_name(unknown) raises KeyError instead of warning
function
docstring
generate reference ellipsoid parameters as everywhere else in pymap3d, distance units are METERS Ellipsoid sources ----------------- maupertuis, plessis, everest1830, everest1830m, everest1967, airy, bessel, clarke1866, clarke1878, clarke1860, helmert, hayford, international1924, krassovsky1940, wgs66, australian, i...
class Ellipsoid: """ generate reference ellipsoid parameters as everywhere else in pymap3d, distance units are METERS Ellipsoid sources ----------------- maupertuis, plessis, everest1830, everest1830m, everest1967, airy, bessel, clarke1866, clarke1878, clarke1860, helmert, hayford, in...
class Ellipsoid: """ generate reference ellipsoid parameters as everywhere else in pymap3d, distance units are METERS Ellipsoid sources ----------------- maupertuis, plessis, everest1830, everest1830m, everest1967, airy, bessel, clarke1866, clarke1878, clarke1860, helmert, hayford, in...
src/pymap3d/tests/test_ellipsoid.py
[ "src/pymap3d/tests/test_ellipsoid.py::test_bad_name" ]
2023-02-26
2023-02-26
BSD-2-Clause
LICENSE
bc695e4bda505f43a8394ae053649e2b8092755d
b11460ee2e8f00f334cbd6462fdba2037a654b47
https://github.com/geospace-code/pymap3d/commit/bc695e4bda505f43a8394ae053649e2b8092755d
https://github.com/geospace-code/pymap3d
pymap3d.ellipsoid
[ "Ellipsoid" ]
4
1
574343102e70782b
geospace-code/pymap3d@bc695e4bd#Ellipsoid
python
2026-08-18
goldset/0.1
1
executablebooks/markdown-it-py
convert_file
🐛 FIX: CLI crash on non-utf8 character (#247)
function
docstring
Parse a Markdown file and dump the output to stdout.
def convert_file(filename: str) -> None: """ Parse a Markdown file and dump the output to stdout. """ try: with open(filename, "r") as fin: rendered = MarkdownIt().render(fin.read()) print(rendered, end="") except OSError: sys.stderr.write(f'Cannot open file "...
def convert_file(filename: str) -> None: """ Parse a Markdown file and dump the output to stdout. """ try: with open(filename, "r", encoding="utf8", errors="ignore") as fin: rendered = MarkdownIt().render(fin.read()) print(rendered, end="") except OSError: sys...
tests/test_cli.py
[ "tests/test_cli.py::test_non_utf8" ]
2023-02-22
2023-02-22
MIT
LICENSE
53ca3e9c2b9e9b295f6abf7f4ad2730a9b70f68c
6491bc2491a07a8072e5d40f27eab6430585c42c
https://github.com/executablebooks/markdown-it-py/commit/53ca3e9c2b9e9b295f6abf7f4ad2730a9b70f68c
https://github.com/executablebooks/markdown-it-py
markdown_it.cli.parse
[ "convert_file" ]
2
1
9f614117d897006c
executablebooks/markdown-it-py@53ca3e9c2#convert_file
python
2026-08-17
goldset/0.1
1
t3rn0/ast-comments
fix: comments order for multiline expr
file
commit
fix: comments order for multiline expr
import ast import sys import tokenize from ast import * # noqa: F401,F403 from typing import Dict, List, Tuple, Union class Comment(ast.AST): value: str _fields = ("value",) _CONTAINER_ATTRS = ["body", "handlers", "orelse", "finalbody"] def parse(source: Union[str, bytes, ast.AST], *args, **kwargs) -> as...
import ast import sys import tokenize from ast import * # noqa: F401,F403 from collections.abc import Iterable from typing import Dict, List, Tuple, Union class Comment(ast.AST): value: str _fields = ("value",) _CONTAINER_ATTRS = ["body", "handlers", "orelse", "finalbody"] def parse(source: Union[str, by...
test_parse.py
[ "test_parse.py::test_comment_to_multiline_expr" ]
2023-02-11
2023-02-05
MIT
LICENSE
bc8242f2b8d72c7dc9fe4ba6e3ca7f990415cc09
ab0c7df5566aca786fad73233dbfc2612f876e77
https://github.com/t3rn0/ast-comments/commit/bc8242f2b8d72c7dc9fe4ba6e3ca7f990415cc09
https://github.com/t3rn0/ast-comments
ast_comments
[ "_enrich", "_get_tree_intervals" ]
5
1
ec1794e43668693e
t3rn0/ast-comments@bc8242f2b#ast_comments.py
python
2026-08-18
goldset/0.1
1
jd/tenacity
fix: remove __iter__ from AsyncRetring (#387)
file
commit
fix: remove __iter__ from AsyncRetring (#387)
# Copyright 2016 Étienne Bersac # Copyright 2016 Julien Danjou # Copyright 2016 Joshua Harlow # Copyright 2013-2014 Ray Holder # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.a...
# Copyright 2016 Étienne Bersac # Copyright 2016 Julien Danjou # Copyright 2016 Joshua Harlow # Copyright 2013-2014 Ray Holder # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.a...
tests/test_asyncio.py
[ "tests/test_asyncio.py::TestContextManager::test_async_retying_iterator" ]
2023-02-06
2023-02-06
Apache-2.0
LICENSE
78c8d4bc8596af1143801076faa922f2f21c1bba
b93e4dca90cbadfc7db10c23253b4010b991b58f
https://github.com/jd/tenacity/commit/78c8d4bc8596af1143801076faa922f2f21c1bba
https://github.com/jd/tenacity
tenacity._asyncio
[ "AsyncRetrying" ]
3
1
1a8f8a3fac1e94ea
jd/tenacity@78c8d4bc8#tenacity/_asyncio.py
python
2026-08-18
goldset/0.1
1
jilljenn/tryalgo
gale_shapley
fix gale shapley
function
docstring
Stable matching by Gale-Shapley :param men: table of size n, men[i] is preference list of women for men i :param women: similar :returns: matching table, from women to men :complexity: :math:`O(n^2)`
def gale_shapley(men, women): """Stable matching by Gale-Shapley :param men: table of size n, men[i] is preference list of women for men i :param women: similar :returns: matching table, from women to men :complexity: :math:`O(n^2)` """ n = len(men) assert n == len(women) current_su...
def gale_shapley(men, women): """Stable matching by Gale-Shapley :param men: table of size n, men[i] is preference list of women for men i :param women: similar :returns: matching table, from women to men :complexity: :math:`O(n^2)` """ n = len(men) assert n == len(women) current_su...
tests/test_tryalgo.py
[ "tests/test_tryalgo.py::TestTryalgo::test_gale_shapley" ]
2023-02-03
2023-01-25
MIT
LICENSE
82ebd603a26763badd6981b4445d62c7e1ce4058
96a81ccb1c204631218dcabfd3526b6c35a6f9a5
https://github.com/jilljenn/tryalgo/commit/82ebd603a26763badd6981b4445d62c7e1ce4058
https://github.com/jilljenn/tryalgo
tryalgo.gale_shapley
[ "gale_shapley" ]
12
1
45bb40e6e6c9033c
jilljenn/tryalgo@82ebd603a#gale_shapley
python
2026-08-18
goldset/0.1
1
jd/tenacity
Fix async loop with retrying code block when result is available (#369)
file
commit
Fix async loop with retrying code block when result is available (#369)
# Copyright 2016 Étienne Bersac # Copyright 2016 Julien Danjou # Copyright 2016 Joshua Harlow # Copyright 2013-2014 Ray Holder # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.a...
# Copyright 2016 Étienne Bersac # Copyright 2016 Julien Danjou # Copyright 2016 Joshua Harlow # Copyright 2013-2014 Ray Holder # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.a...
tests/test_asyncio.py
[ "tests/test_asyncio.py::TestContextManager::test_retry_with_result" ]
2023-01-30
2023-01-30
Apache-2.0
LICENSE
0b1cef0be60b2ab730cacf38d9d456787ad6d6ff
e1323a0e0ff9f7d867d3632c3ebf582f446b0a91
https://github.com/jd/tenacity/commit/0b1cef0be60b2ab730cacf38d9d456787ad6d6ff
https://github.com/jd/tenacity
tenacity._asyncio
[ "AsyncRetrying" ]
4
1
5084af4d65d58138
jd/tenacity@0b1cef0be#tenacity/_asyncio.py
python
2026-08-18
goldset/0.1
1
ricklupton/rmc
DataStream
Fix varint serialisation
function
docstring
Read basic values from a remarkable v6 file stream.
class DataStream: """Read basic values from a remarkable v6 file stream.""" def __init__(self, data: tp.BinaryIO): self.data = data def tell(self) -> int: return self.data.tell() def read_header(self) -> None: """Read the file header. This should be the first call whe...
class DataStream: """Read basic values from a remarkable v6 file stream.""" def __init__(self, data: tp.BinaryIO): self.data = data def tell(self) -> int: return self.data.tell() def read_header(self) -> None: """Read the file header. This should be the first call whe...
tests/test_basic_data_stream.py
[ "tests/test_basic_data_stream.py::test_write_varuint[0-00]" ]
2023-01-12
2023-01-12
MIT
LICENSE
ece14a5ade69f8ef240dd6d7b8600b9f2cdd55c4
0da68ba965eb94e367724d60c073988e21c1e1c7
https://github.com/ricklupton/rmc/commit/ece14a5ade69f8ef240dd6d7b8600b9f2cdd55c4
https://github.com/ricklupton/rmc
rmscene.tagged_block_common
[ "DataStream" ]
10
1
70f577d13c279d97
ricklupton/rmc@ece14a5ad#DataStream
python
2026-08-18
goldset/0.1
1
fabiocaccamo/python-fsutil
make_dirs_for_file
Fix `FileNotFoundError` when calling `make_dirs_for_file` with filename only.
function
docstring
Create the directories needed to ensure that the given path exists. If a directory already exists at the given path an OSError is raised.
def make_dirs_for_file(path): """ Create the directories needed to ensure that the given path exists. If a directory already exists at the given path an OSError is raised. """ path = _get_path(path) if is_file(path): return assert_not_dir(path) dirpath, _ = split_filepath(path) ...
def make_dirs_for_file(path): """ Create the directories needed to ensure that the given path exists. If a directory already exists at the given path an OSError is raised. """ path = _get_path(path) if is_file(path): return assert_not_dir(path) dirpath, _ = split_filepath(path) ...
tests/test.py
[ "tests/test.py::fsutil_test_case::test_make_dirs_for_file_with_filename_only", "tests/test.py::fsutil_test_case::test_write_file_with_filename_only" ]
2023-01-11
2023-01-11
MIT
LICENSE.txt
d47bcbf70607fe59c58d97fac92010cf9818d548
dadf1e6971be1c56a69d1ab2df1940baee123ea8
https://github.com/fabiocaccamo/python-fsutil/commit/d47bcbf70607fe59c58d97fac92010cf9818d548
https://github.com/fabiocaccamo/python-fsutil
fsutil.__init__
[ "make_dirs_for_file" ]
3
2
94403ddf9760ef17
fabiocaccamo/python-fsutil@d47bcbf70#make_dirs_for_file
python
2026-08-18
goldset/0.1
1
Textualize/rich
fix issue splitting segments
file
commit
fix issue splitting segments
from enum import IntEnum from functools import lru_cache from itertools import filterfalse from logging import getLogger from operator import attrgetter from typing import ( TYPE_CHECKING, Dict, Iterable, List, NamedTuple, Optional, Sequence, Tuple, Type, Union, ) from .cells im...
from enum import IntEnum from functools import lru_cache from itertools import filterfalse from logging import getLogger from operator import attrgetter from typing import ( TYPE_CHECKING, Dict, Iterable, List, NamedTuple, Optional, Sequence, Tuple, Type, Union, ) from .cells im...
tests/test_segment.py
[ "tests/test_segment.py::test_split_cells_emoji[a1\\u3042\\uff11\\uff11bcdaef-9-result23]" ]
2023-01-06
2022-12-30
MIT
LICENSE
aa0929298bf85b9357edf8af239d715a18ab5ce8
d14b304aa45bf0759729f4e066606065daa341c8
https://github.com/Textualize/rich/commit/aa0929298bf85b9357edf8af239d715a18ab5ce8
https://github.com/Textualize/rich
rich.segment
[ "Segment" ]
2
1
8449451444075875
Textualize/rich@aa0929298#rich/segment.py
python
2026-08-18
goldset/0.1
1
imageio/imageio-ffmpeg
Fix pix_format parser to capture formats that have commas within strings (#79)
file
commit
Fix pix_format parser to capture formats that have commas within strings (#79)
import re import time import threading from ._utils import logger class LogCatcher(threading.Thread): """Thread to keep reading from stderr so that the buffer does not fill up and stalls the ffmpeg process. On stderr a message is send on every few frames with some meta information. We only keep the l...
import re import time import threading from ._utils import logger class LogCatcher(threading.Thread): """Thread to keep reading from stderr so that the buffer does not fill up and stalls the ffmpeg process. On stderr a message is send on every few frames with some meta information. We only keep the l...
tests/test_parsing.py
[ "tests/test_parsing.py::test_comma_in_pixel_format" ]
2023-01-03
2023-01-03
BSD-2-Clause
LICENSE
b517123b8062bb556022b51c5d300599e5bf5b65
906a95e39ddc4d9383f71344baa8b5c321afc771
https://github.com/imageio/imageio-ffmpeg/commit/b517123b8062bb556022b51c5d300599e5bf5b65
https://github.com/imageio/imageio-ffmpeg
imageio_ffmpeg._parsing
[ "parse_ffmpeg_header" ]
11
1
f73b228e7e9e2ece
imageio/imageio-ffmpeg@b517123b8#imageio_ffmpeg/_parsing.py
python
2026-08-18
goldset/0.1
1
testing-cabal/mock
create_autospec
gh-91803: Mock - fix error when using autospec methods with seal (#92213)
function
docstring
Create a mock object using another object as a spec. Attributes on the mock will use the corresponding attribute on the `spec` object as their spec. Functions or methods being mocked will have their arguments checked to check that they are called with the correct signature. If `spec_set` is True then attempting to se...
def create_autospec(spec, spec_set=False, instance=False, _parent=None, _name=None, *, unsafe=False, **kwargs): """Create a mock object using another object as a spec. Attributes on the mock will use the corresponding attribute on the `spec` object as their spec. Functions or method...
def create_autospec(spec, spec_set=False, instance=False, _parent=None, _name=None, *, unsafe=False, **kwargs): """Create a mock object using another object as a spec. Attributes on the mock will use the corresponding attribute on the `spec` object as their spec. Functions or method...
mock/tests/testsealable.py
[ "mock/tests/testsealable.py::TestSealable::test_seal_with_autospec" ]
2022-12-28
2022-12-28
BSD-2-Clause
LICENSE.txt
4d3f1976a8e761f5f2a8a362bd86f6b6e108a7cf
2b647d6677fee5cd064b0aa2528cab061f6220bd
https://github.com/testing-cabal/mock/commit/4d3f1976a8e761f5f2a8a362bd86f6b6e108a7cf
https://github.com/testing-cabal/mock
mock.mock
[ "create_autospec" ]
1
1
5d64453a9d398a01
testing-cabal/mock@4d3f1976a#create_autospec
python
2026-08-18
goldset/0.1
1
protomaps/pmtiles
python: raise errors in overflow and invalid tile ID cases
file
commit
python: raise errors in overflow and invalid tile ID cases
from enum import Enum import io import gzip class Entry: __slots__ = ("tile_id", "offset", "length", "run_length") def __init__(self, tile_id, offset, length, run_length): self.tile_id = tile_id self.offset = offset self.length = length self.run_length = run_length def __...
from enum import Enum import io import gzip class Entry: __slots__ = ("tile_id", "offset", "length", "run_length") def __init__(self, tile_id, offset, length, run_length): self.tile_id = tile_id self.offset = offset self.length = length self.run_length = run_length def __...
python/test/test_tile.py
[ "python/test/test_tile.py::TestTileId::test_invalid_tiles" ]
2022-12-22
2022-12-22
BSD-3-Clause
LICENSE
78cde0d51f99ae22875011165c9aeea444c64c42
b23c98dd390db79e2243b0a7015d008b2f3f45f9
https://github.com/protomaps/pmtiles/commit/78cde0d51f99ae22875011165c9aeea444c64c42
https://github.com/protomaps/pmtiles
python.pmtiles.tile
[ "tileid_to_zxy", "zxy_to_tileid" ]
9
1
733971194e8dab8d
protomaps/pmtiles@78cde0d51#python/pmtiles/tile.py
python
2026-08-18
goldset/0.1
1
mahmoud/boltons
daterange
Fix infinite daterange issue when start and stop is same (#302)
function
docstring
In the spirit of :func:`range` and :func:`xrange`, the `daterange` generator that yields a sequence of :class:`~datetime.date` objects, starting at *start*, incrementing by *step*, until *stop* is reached. When *inclusive* is True, the final date may be *stop*, **if** *step* falls evenly on it. By default, *step* is o...
def daterange(start, stop, step=1, inclusive=False): """In the spirit of :func:`range` and :func:`xrange`, the `daterange` generator that yields a sequence of :class:`~datetime.date` objects, starting at *start*, incrementing by *step*, until *stop* is reached. When *inclusive* is True, the final d...
def daterange(start, stop, step=1, inclusive=False): """In the spirit of :func:`range` and :func:`xrange`, the `daterange` generator that yields a sequence of :class:`~datetime.date` objects, starting at *start*, incrementing by *step*, until *stop* is reached. When *inclusive* is True, the final d...
tests/test_timeutils.py
[ "tests/test_timeutils.py::test_daterange_with_same_start_stop" ]
2022-12-08
2022-12-08
BSD-2-Clause
LICENSE
93185b224ebd60df01df88d64e574a3f651987c5
6505c6b5565275d484e0e3907a471944441f0c57
https://github.com/mahmoud/boltons/commit/93185b224ebd60df01df88d64e574a3f651987c5
https://github.com/mahmoud/boltons
boltons.timeutils
[ "daterange" ]
2
1
c7fdbf48dfd383ff
mahmoud/boltons@93185b224#daterange
python
2026-08-18
goldset/0.1
1
mahmoud/boltons
daterange
test and fix year step and december handling in date_range, fixes #319
function
docstring
In the spirit of :func:`range` and :func:`xrange`, the `daterange` generator that yields a sequence of :class:`~datetime.date` objects, starting at *start*, incrementing by *step*, until *stop* is reached. When *inclusive* is True, the final date may be *stop*, **if** *step* falls evenly on it. By default, *step* is o...
def daterange(start, stop, step=1, inclusive=False): """In the spirit of :func:`range` and :func:`xrange`, the `daterange` generator that yields a sequence of :class:`~datetime.date` objects, starting at *start*, incrementing by *step*, until *stop* is reached. When *inclusive* is True, the final d...
def daterange(start, stop, step=1, inclusive=False): """In the spirit of :func:`range` and :func:`xrange`, the `daterange` generator that yields a sequence of :class:`~datetime.date` objects, starting at *start*, incrementing by *step*, until *stop* is reached. When *inclusive* is True, the final d...
tests/test_timeutils.py
[ "tests/test_timeutils.py::test_daterange_years_step" ]
2022-12-08
2022-04-29
BSD-2-Clause
LICENSE
8ba3a7fa0d99b73f7f43c1aed82c571b941eecea
6c7fa3e05659fac6515f661153c89d4ad02df168
https://github.com/mahmoud/boltons/commit/8ba3a7fa0d99b73f7f43c1aed82c571b941eecea
https://github.com/mahmoud/boltons
boltons.timeutils
[ "daterange" ]
10
1
eab4eb7a07abf56b
mahmoud/boltons@8ba3a7fa0#daterange
python
2026-08-18
goldset/0.1
1
timofurrer/colorful
Fix correctnes of __str__ to return always a str
file
commit
Fix correctnes of __str__ to return always a str
# -*- coding: utf-8 -*- """ colorful ~~~~~~~~ Terminal string styling done right, in Python. :copyright: (c) 2017 by Timo Furrer <tuxtimo@gmail.com> :license: MIT, see LICENSE for more details. """ import os from . import ansi from . import colors from . import styles from . import terminal #:...
# -*- coding: utf-8 -*- """ colorful ~~~~~~~~ Terminal string styling done right, in Python. :copyright: (c) 2017 by Timo Furrer <tuxtimo@gmail.com> :license: MIT, see LICENSE for more details. """ import os from . import ansi from . import colors from . import styles from . import terminal #:...
tests/test_core.py
[ "tests/test_core.py::test_underling_type_should_be_stored_as_str" ]
2022-12-04
2022-12-04
MIT
LICENSE
676070ef0f3bd37b3f8073ccf4ec01753719435f
662c044fa24f0a1e9b5fbdb98924ddc5a08b4c53
https://github.com/timofurrer/colorful/commit/676070ef0f3bd37b3f8073ccf4ec01753719435f
https://github.com/timofurrer/colorful
colorful.core
[ "ColorfulString" ]
4
1
f1727be39e5ae2ac
timofurrer/colorful@676070ef0#colorful/core.py
python
2026-08-18
goldset/0.1
1
more-itertools/more-itertools
split_after
Fix issue 658 for split_after
function
docstring
Yield lists of items from *iterable*, where each list ends with an item where callable *pred* returns `True`: At most *maxsplit* splits are done. If *maxsplit* is not specified or -1, then there is no limit on the number of splits:
def split_after(iterable, pred, maxsplit=-1): """Yield lists of items from *iterable*, where each list ends with an item where callable *pred* returns ``True``: >>> list(split_after('one1two2', lambda s: s.isdigit())) [['o', 'n', 'e', '1'], ['t', 'w', 'o', '2']] >>> list(split_after(ra...
def split_after(iterable, pred, maxsplit=-1): """Yield lists of items from *iterable*, where each list ends with an item where callable *pred* returns ``True``: >>> list(split_after('one1two2', lambda s: s.isdigit())) [['o', 'n', 'e', '1'], ['t', 'w', 'o', '2']] >>> list(split_after(ra...
tests/test_more.py
[ "tests/test_more.py::SplitAfterTest::test_max_split" ]
2022-11-22
2022-11-09
MIT
LICENSE
9245cd04c043d0d646497934df72549943d5f868
6793bd3e4ed15318746ed2511733f12a9932eb64
https://github.com/more-itertools/more-itertools/commit/9245cd04c043d0d646497934df72549943d5f868
https://github.com/more-itertools/more-itertools
more_itertools.more
[ "split_after" ]
4
1
2d1df6d507bdf5d1
more-itertools/more-itertools@9245cd04c#split_after
python
2026-08-17
goldset/0.1
1
lark-parser/lark
AmbiguousExpander
Fix AmbiguousExpander (Issue #1214)
function
docstring
Deal with the case where we're expanding children ('_rule') into a parent but the children are ambiguous. i.e. (parent->_ambig->_expand_this_rule). In this case, make the parent itself ambiguous with as many copies as their are ambiguous children, and then copy the ambiguous children into the right parents in the right...
class AmbiguousExpander: """Deal with the case where we're expanding children ('_rule') into a parent but the children are ambiguous. i.e. (parent->_ambig->_expand_this_rule). In this case, make the parent itself ambiguous with as many copies as their are ambiguous children, and then copy the ambiguou...
class AmbiguousExpander: """Deal with the case where we're expanding children ('_rule') into a parent but the children are ambiguous. i.e. (parent->_ambig->_expand_this_rule). In this case, make the parent itself ambiguous with as many copies as there are ambiguous children, and then copy the ambiguou...
tests/test_parser.py
[ "tests/test_parser.py::TestFullEarleyDynamic::test_ambiguous_inlined_rule" ]
2022-11-20
2022-11-02
MIT
LICENSE
a2f914e01d215d77481e6ef873eaea6a86fd9f5f
7ef5c98d10638dbeaf038aef8bf86cc278a9f45a
https://github.com/lark-parser/lark/commit/a2f914e01d215d77481e6ef873eaea6a86fd9f5f
https://github.com/lark-parser/lark
lark.parse_tree_builder
[ "AmbiguousExpander" ]
6
1
e09559ce2bc64e76
lark-parser/lark@a2f914e01#AmbiguousExpander
python
2026-08-18
goldset/0.1
1
anikolaienko/py-automapper
Fix mapping of string enum types
file
commit
Fix mapping of string enum types
import inspect from copy import deepcopy from typing import ( Any, Callable, Dict, Generic, Iterable, Optional, Set, Tuple, Type, TypeVar, Union, cast, overload, ) from .exceptions import ( CircularReferenceError, DuplicatedRegistrationError, MappingError...
import inspect from copy import deepcopy from enum import Enum from typing import ( Any, Callable, Dict, Generic, Iterable, Optional, Set, Tuple, Type, TypeVar, Union, cast, overload, ) from .exceptions import ( CircularReferenceError, DuplicatedRegistrationE...
tests/test_automapper_enum.py
[ "tests/test_automapper_enum.py::test_map__enum" ]
2022-11-20
2022-11-13
MIT
LICENSE
e658a3d43b189e83e072a85da104b89f0142a692
01c250840d4cb584582f203f75fabdecbaedfa03
https://github.com/anikolaienko/py-automapper/commit/e658a3d43b189e83e072a85da104b89f0142a692
https://github.com/anikolaienko/py-automapper
automapper.mapper
[ "Mapper" ]
8
1
7738ef352132fb26
anikolaienko/py-automapper@e658a3d43#automapper/mapper.py
python
2026-08-18
goldset/0.1
1
t3rn0/ast-comments
fix: put comments to every statement in line
file
commit
fix: put comments to every statement in line
import ast import tokenize from ast import * # noqa: F401,F403 from typing import List, Protocol, Tuple, Union class stmt(ast.stmt): comments: Tuple[str, ...] class AstNode(Protocol): body: List[stmt] def format_comment(comment_string: str): return comment_string.lstrip("# ") def parse(source: Unio...
import ast import tokenize from ast import * # noqa: F401,F403 from typing import List, Protocol, Tuple, Union class stmt(ast.stmt): comments: Tuple[str, ...] class AstNode(Protocol): body: List[stmt] def format_comment(comment_string: str): return comment_string.lstrip("# ") def parse(source: Unio...
test_ast_commets.py
[ "test_ast_commets.py::test_comment_to_multiple_statements" ]
2022-11-19
2022-11-13
MIT
LICENSE
fcbd83c8375647b01ddb710c23110abcc294438a
bb4d9582d39bf746ac1be18bb995c8a162677eb4
https://github.com/t3rn0/ast-comments/commit/fcbd83c8375647b01ddb710c23110abcc294438a
https://github.com/t3rn0/ast-comments
ast_comments
[ "_enrich" ]
25
1
4a23e3e664ccdc54
t3rn0/ast-comments@fcbd83c83#ast_comments.py
python
2026-08-18
goldset/0.1
1
t3rn0/ast-comments
fix: handle multiple statements in one line
file
commit
fix: handle multiple statements in one line
import ast import tokenize from ast import * # noqa: F401,F403 from typing import List, Protocol, Tuple, Union class stmt(ast.stmt): comments: Tuple[str, ...] class AstNode(Protocol): body: List[stmt] def format_comment(comment_string: str): return comment_string.lstrip("# ") def parse(source: Unio...
import ast import tokenize from ast import * # noqa: F401,F403 from typing import List, Protocol, Tuple, Union class stmt(ast.stmt): comments: Tuple[str, ...] class AstNode(Protocol): body: List[stmt] def format_comment(comment_string: str): return comment_string.lstrip("# ") def parse(source: Unio...
test_ast_commets.py
[ "test_ast_commets.py::test_multiple_statements_in_line" ]
2022-11-13
2022-08-03
MIT
LICENSE
8a50afae79a728f28c7f0c4fe04a8c9824f28ead
ac4dc0019ddadc1744ba456f473fb624e13eccdb
https://github.com/t3rn0/ast-comments/commit/8a50afae79a728f28c7f0c4fe04a8c9824f28ead
https://github.com/t3rn0/ast-comments
ast_comments
[ "_enrich" ]
7
1
cb86cec6d80b5937
t3rn0/ast-comments@8a50afae7#ast_comments.py
python
2026-08-18
goldset/0.1
1
scrapinghub/number-parser
parse
Fix and test cases for issue #76 - white space around separators consumed after numbers (#77)
function
docstring
Converts all the numbers in a sentence written in natural language to their numeric type while keeping the other words unchanged. Returns the transformed string.
def parse(input_string, language=None): """ Converts all the numbers in a sentence written in natural language to their numeric type while keeping the other words unchanged. Returns the transformed string. """ if language is None: language = _valid_tokens_by_language(input_string) lang_...
def parse(input_string, language=None): """ Converts all the numbers in a sentence written in natural language to their numeric type while keeping the other words unchanged. Returns the transformed string. """ if language is None: language = _valid_tokens_by_language(input_string) lang_...
tests/test_language_en.py
[ "tests/test_language_en.py::test_parse_separators_and_spacing[one" ]
2022-11-10
2022-10-31
BSD-3-Clause
LICENSE
034d5ef0550a4a6de0589fcdfceb37bd8d09015d
a61bbdfe205dd22025c7c68155c158c83abc57ee
https://github.com/scrapinghub/number-parser/commit/034d5ef0550a4a6de0589fcdfceb37bd8d09015d
https://github.com/scrapinghub/number-parser
number_parser.parser
[ "parse" ]
8
1
afb7fb836ca4b67a
scrapinghub/number-parser@034d5ef05#parse
python
2026-08-18
goldset/0.1
1
pycqa/flake8
load_config
Raise exception if append-config does not exist
function
docstring
Load the configuration given the user options. - in `isolated` mode, return an empty configuration - if a config file is given in `config` use that, otherwise attempt to discover a configuration using `tox.ini` / `setup.cfg` / `.flake8` - finally, load any `extra` configuration files
def load_config( config: str | None, extra: list[str], *, isolated: bool = False, ) -> tuple[configparser.RawConfigParser, str]: """Load the configuration given the user options. - in ``isolated`` mode, return an empty configuration - if a config file is given in ``config`` use that, otherw...
def load_config( config: str | None, extra: list[str], *, isolated: bool = False, ) -> tuple[configparser.RawConfigParser, str]: """Load the configuration given the user options. - in ``isolated`` mode, return an empty configuration - if a config file is given in ``config`` use that, otherw...
tests/unit/test_options_config.py
[ "tests/unit/test_options_config.py::test_load_config_missing_append_config_raise_exception" ]
2022-11-08
2022-11-07
MIT
LICENSE
314b9f51616cd7d71e2fd8fbf39138ab7a86f075
ad1006e8cb4494b496ae301a19d68d1565d06f8e
https://github.com/pycqa/flake8/commit/314b9f51616cd7d71e2fd8fbf39138ab7a86f075
https://github.com/pycqa/flake8
flake8.options.config
[ "load_config" ]
5
1
5dec7bf131958e25
pycqa/flake8@314b9f516#load_config
python
2026-08-18
goldset/0.1
1
abseil/abseil-py
DEFINE_multi_enum_class
Fix DEFINE_multi_enum_class's additional kwargs (e.g. short_name).
function
docstring
Registers a flag whose value can be a list of enum members. Use the flag on the command line multiple times to place multiple enum values into the list. Args: name: str, the flag name. default: Union[Iterable[Enum], Iterable[Text], Enum, Text, None], the default value of the flag; see `DEFINE_multi`; only dif...
def DEFINE_multi_enum_class( # pylint: disable=invalid-name,redefined-builtin name, default, enum_class, help, flag_values=_flagvalues.FLAGS, module_name=None, case_sensitive=False, required=False, **args): """Registers a flag whose value can be a list of enum members. Use the ...
def DEFINE_multi_enum_class( # pylint: disable=invalid-name,redefined-builtin name, default, enum_class, help, flag_values=_flagvalues.FLAGS, module_name=None, case_sensitive=False, required=False, **args): """Registers a flag whose value can be a list of enum members. Use the ...
absl/flags/tests/flags_test.py
[ "absl/flags/tests/flags_test.py::MultiEnumClassFlagsTest::test_short_name" ]
2022-11-07
2022-10-11
Apache-2.0
LICENSE
be755cb76df0aa7f11bb34c3712d9913a89c45fd
c75edbb71e6942d72d41a57d9cd10c9628d4cb0a
https://github.com/abseil/abseil-py/commit/be755cb76df0aa7f11bb34c3712d9913a89c45fd
https://github.com/abseil/abseil-py
absl.flags._defines
[ "DEFINE_multi_enum_class" ]
10
1
0d4eafb90fcd9987
abseil/abseil-py@be755cb76#DEFINE_multi_enum_class
python
2026-08-18
goldset/0.1
1
jsocol/pystatsd
Timer
Fix timing decorator for async functions
function
docstring
A context manager/decorator for statsd.timing().
class Timer(object): """A context manager/decorator for statsd.timing().""" def __init__(self, client, stat, rate=1): self.client = client self.stat = stat self.rate = rate self.ms = None self._sent = False self._start_time = None def __call__(self, f): ...
class Timer(object): """A context manager/decorator for statsd.timing().""" def __init__(self, client, stat, rate=1): self.client = client self.stat = stat self.rate = rate self.ms = None self._sent = False self._start_time = None def __call__(self, f): ...
statsd/tests.py
[ "statsd/tests.py::test_coroutine_timer_decorator" ]
2022-11-05
2022-11-05
MIT
LICENSE
11c3a197b3715049541412112ff632763290e690
db9424fd4ba9e85e2c36e9cf0a82259cfcc1283c
https://github.com/jsocol/pystatsd/commit/11c3a197b3715049541412112ff632763290e690
https://github.com/jsocol/pystatsd
statsd.client.timer
[ "Timer" ]
11
1
c740b06ad9f9c4e7
jsocol/pystatsd@11c3a197b#Timer
python
2026-08-18
goldset/0.1
1
frostming/findpython
PyenvProvider
fix: prevent find_all exception when a clean pyenv is present (#11)
function
docstring
A provider that finds python installed with pyenv
class PyenvProvider(BaseProvider): """A provider that finds python installed with pyenv""" def __init__(self, root: Path) -> None: self.root = root @classmethod def create(cls: Type[T]) -> T | None: pyenv_root = os.path.expanduser( os.path.expandvars(os.getenv("PYENV_ROOT",...
class PyenvProvider(BaseProvider): """A provider that finds python installed with pyenv""" def __init__(self, root: Path) -> None: self.root = root @classmethod def create(cls: Type[T]) -> T | None: pyenv_root = os.path.expanduser( os.path.expandvars(os.getenv("PYENV_ROOT",...
tests/test_finder.py
[ "tests/test_finder.py::test_find_python_skips_empty_pyenv" ]
2022-10-28
2022-08-09
MIT
LICENSE
2ce66fa6ced4ce526e710ee10e42e6e855b04f7f
6179b9a3df0bbaff5a14bc8363b89a2c12d96c81
https://github.com/frostming/findpython/commit/2ce66fa6ced4ce526e710ee10e42e6e855b04f7f
https://github.com/frostming/findpython
findpython.providers.pyenv
[ "PyenvProvider" ]
14
1
ffb20e8803cc8268
frostming/findpython@2ce66fa6c#PyenvProvider
python
2026-08-18
goldset/0.1
1
didix21/mdutils
MarkDownFile
Modify tests to fix flakiness
function
docstring
MarkDownFile class creates a new file of MarkDown extension. Features available are: - Create a file. - Rewrite a file with new data. - Write at the end of the file.
class MarkDownFile(object): """MarkDownFile class creates a new file of MarkDown extension. Features available are: - Create a file. - Rewrite a file with new data. - Write at the end of the file.""" def __init__(self, name=''): """Creates a markdown file, if name is not em...
class MarkDownFile(object): """MarkDownFile class creates a new file of MarkDown extension. Features available are: - Create a file. - Rewrite a file with new data. - Write at the end of the file.""" def __init__(self, name='', tmp=''): """Creates a markdown file, if name i...
tests/test_fileutils/test_fileutils.py
[ "tests/test_fileutils/test_fileutils.py::TestMarkdownFile::test_append_end" ]
2022-10-27
2022-10-10
MIT
LICENSE.txt
5a701281b906f794b0317c24f828bc79e20f2796
780974b9431d98a3f9927af4d17fd7dba53b0854
https://github.com/didix21/mdutils/commit/5a701281b906f794b0317c24f828bc79e20f2796
https://github.com/didix21/mdutils
mdutils.fileutils.fileutils
[ "MarkDownFile" ]
12
1
11f132e476672aa6
didix21/mdutils@5a701281b#MarkDownFile
python
2026-08-18
goldset/0.1
1
geospace-code/pymap3d
departure
loxodrome_inverse: fix an issue that (circumference / 2 - distance) is returned when lat1 == lon2 and lon1 < lon2
function
docstring
Computes the distance along a specific parallel between two meridians. like Matlab departure() Parameters ---------- lon1, lon2 : float geodetic longitudes (degrees) lat : float geodetic latitude (degrees) ell : Ellipsoid, optional reference ellipsoid deg : bool, optional degrees input/output (Fal...
def departure(lon1, lon2, lat, ell: Ellipsoid = None, deg: bool = True) -> float: """ Computes the distance along a specific parallel between two meridians. like Matlab departure() Parameters ---------- lon1, lon2 : float geodetic longitudes (degrees) lat : float geodetic l...
def departure(lon1, lon2, lat, ell: Ellipsoid = None, deg: bool = True) -> float: """ Computes the distance along a specific parallel between two meridians. like Matlab departure() Parameters ---------- lon1, lon2 : float geodetic longitudes (degrees) lat : float geodetic l...
src/pymap3d/tests/test_rhumb.py
[ "src/pymap3d/tests/test_rhumb.py::test_loxodrome_inverse[0-0-0-1-111319.49-90]" ]
2022-10-25
2022-10-25
BSD-2-Clause
LICENSE
7db6ac36447f1f111eafd9bd9183e9966b7eaf5a
a2e91517fa455ef04d46794f65eba4f76d62493c
https://github.com/geospace-code/pymap3d/commit/7db6ac36447f1f111eafd9bd9183e9966b7eaf5a
https://github.com/geospace-code/pymap3d
pymap3d.lox
[ "departure" ]
2
1
fef8e00eaf24bbf2
geospace-code/pymap3d@7db6ac364#departure
python
2026-08-18
goldset/0.1
1
robsdedude/flake8-picky-parentheses
Fix exception for parentheses in slices Py3.9+
file
commit
Fix exception for parentheses in slices Py3.9+
from __future__ import annotations import ast from dataclasses import dataclass import sys import tokenize import typing as t from ._meta import version from ._util import find_parens_coords if t.TYPE_CHECKING: from ._util import ParensCords AST_FIX_PREFIXES = { "else": "if True:\n pass\n", "elif": "...
from __future__ import annotations import ast from dataclasses import dataclass import sys import tokenize import typing as t from ._meta import version from ._util import find_parens_coords if t.TYPE_CHECKING: from ._util import ParensCords AST_FIX_PREFIXES = { "else": "if True:\n pass\n", "elif": "...
tests/test_redundant_parentheses.py
[ "tests/test_redundant_parentheses.py::test_", "tests/test_redundant_parentheses.py::test_parens_in_slice_2_no_end[explicit-False]", "tests/test_redundant_parentheses.py::test_parens_in_slice_2_no_end[explicit-True]", "tests/test_redundant_parentheses.py::test_parens_in_slice_2_no_end[implicit-False]", "test...
2022-10-25
2022-10-10
Apache-2.0
LICENSE
485998c8a684fddbcc96b765728a82fcf1c52a40
ee7d4ab0fbf0e6c16a2aa4d302a13324ae230ad6
https://github.com/robsdedude/flake8-picky-parentheses/commit/485998c8a684fddbcc96b765728a82fcf1c52a40
https://github.com/robsdedude/flake8-picky-parentheses
flake8_picky_parentheses._redundant_parentheses
[ "PluginRedundantParentheses" ]
13
6
2484bc5292862134
robsdedude/flake8-picky-parentheses@485998c8a#flake8_picky_parentheses/_redundant_parentheses.py
python
2026-08-18
goldset/0.1
1
scastlara/pytest-tagging
TagCounter
fix: re-adding sort of tags
function
docstring
Counter that uses pytest caching module to store the counts
class TagCounter: """Counter that uses pytest caching module to store the counts""" def __init__(self, lock: threading.Lock) -> None: self.lock = lock self._manager = Manager() self.counter = self._manager.dict() def update(self, tags: Iterable[str]) -> None: with self.lock...
class TagCounter: """Counter that uses pytest caching module to store the counts""" def __init__(self, lock: threading.Lock) -> None: self.lock = lock self._manager = Manager() self.counter = self._manager.dict() def update(self, tags: Iterable[str]) -> None: with self.lock...
tests/test_utils.py
[ "tests/test_utils.py::TestTagCounter::test_sorted_items" ]
2022-10-23
2022-10-23
MIT
LICENSE
5f3f795f69bfa39788d447ee5b0f5fa984e773b4
8ec524e1745482863de3509f9065a366cd983001
https://github.com/scastlara/pytest-tagging/commit/5f3f795f69bfa39788d447ee5b0f5fa984e773b4
https://github.com/scastlara/pytest-tagging
pytest_tagging.utils
[ "TagCounter" ]
2
1
9d9cf5c639d5456c
scastlara/pytest-tagging@5f3f795f6#TagCounter
python
2026-08-18
goldset/0.1
1
robsdedude/flake8-picky-parentheses
Python 3.10: fix match/case (#24)
file
commit
Python 3.10: fix match/case (#24)
from __future__ import annotations import ast from dataclasses import dataclass import sys import tokenize import typing as t from ._meta import version from ._util import find_parens_coords if t.TYPE_CHECKING: from ._util import ParensCords AST_FIX_PREFIXES = { "else": "if True:\n pass\n", "elif": "...
from __future__ import annotations import ast from dataclasses import dataclass import sys import tokenize import typing as t from ._meta import version from ._util import find_parens_coords if t.TYPE_CHECKING: from ._util import ParensCords AST_FIX_PREFIXES = { "else": "if True:\n pass\n", "elif": "...
tests/test_redundant_parentheses.py
[ "tests/test_redundant_parentheses.py::test_match_case[(foo", "tests/test_redundant_parentheses.py::test_match_case[(foo)-match_problem_columns1-((a))-case_problem_columns10]", "tests/test_redundant_parentheses.py::test_match_case[(foo)-match_problem_columns1-((a,))-case_problem_columns11]", "tests/test_redund...
2022-10-07
2022-10-07
Apache-2.0
LICENSE
1384f6f9e9f1513910c1da76d268500920016863
d2f530a2a846e8cf454015d75df10c9bf79613bf
https://github.com/robsdedude/flake8-picky-parentheses/commit/1384f6f9e9f1513910c1da76d268500920016863
https://github.com/robsdedude/flake8-picky-parentheses
flake8_picky_parentheses._redundant_parentheses
[ "PluginRedundantParentheses" ]
24
23
73e437afff44109f
robsdedude/flake8-picky-parentheses@1384f6f9e#flake8_picky_parentheses/_redundant_parentheses.py
python
2026-08-18
goldset/0.1
1
construct/construct
Lazy
Bug #938 fixed (thanks Henrique)
function
docstring
Lazyfies a field. This wrapper allows you to do lazy parsing of individual fields inside a normal Struct (without using LazyStruct which may not work in every scenario). It is also used by KaitaiStruct compiler to emit `instances` because those are not processed greedily, and they may refer to other not yet parsed fie...
class Lazy(Subconstruct): r""" Lazyfies a field. This wrapper allows you to do lazy parsing of individual fields inside a normal Struct (without using LazyStruct which may not work in every scenario). It is also used by KaitaiStruct compiler to emit `instances` because those are not processed greedily, and...
class Lazy(Subconstruct): r""" Lazyfies a field. This wrapper allows you to do lazy parsing of individual fields inside a normal Struct (without using LazyStruct which may not work in every scenario). It is also used by KaitaiStruct compiler to emit `instances` because those are not processed greedily, and...
tests/test_core.py
[ "tests/test_core.py::test_lazy_issue_938" ]
2022-09-18
2022-09-18
MIT
LICENSE
188b0c709a2312714d25a72169acae805649f822
3d5d67f50499047dfbe4058ebacc234ec204fad2
https://github.com/construct/construct/commit/188b0c709a2312714d25a72169acae805649f822
https://github.com/construct/construct
construct.core
[ "Lazy" ]
2
1
0cf5230bd6a21ac1
construct/construct@188b0c709#Lazy
python
2026-08-18
goldset/0.1
1
fastavro/fastavro
write_record
fix bug where strict options were not catching extra fields
function
docstring
A record is encoded by encoding the values of its fields in the order that they are declared. In other words, a record is encoded as just the concatenation of the encodings of its fields. Field values are encoded per their schema.
def write_record(encoder, datum, schema, named_schemas, fname, options): """A record is encoded by encoding the values of its fields in the order that they are declared. In other words, a record is encoded as just the concatenation of the encodings of its fields. Field values are encoded per their sche...
def write_record(encoder, datum, schema, named_schemas, fname, options): """A record is encoded by encoding the values of its fields in the order that they are declared. In other words, a record is encoded as just the concatenation of the encodings of its fields. Field values are encoded per their sche...
tests/test_fastavro.py
[ "tests/test_fastavro.py::test_strict_allow_default_bug" ]
2022-09-09
2022-08-29
MIT
LICENSE
f8979588af845099cf5397ac563f708354bbfcdf
073da50afaec729f66caea357538417118ae7619
https://github.com/fastavro/fastavro/commit/f8979588af845099cf5397ac563f708354bbfcdf
https://github.com/fastavro/fastavro
fastavro._write_py
[ "write_record" ]
9
1
ccd8df198d76624a
fastavro/fastavro@f8979588a#write_record
python
2026-08-18
goldset/0.1
1
h2non/filetype.py
get_bytes
fix: restore reader position after retrieving signature bytes
function
docstring
Infers the input type and reads the first 8192 bytes, returning a sliced bytearray. Args: obj: path to readable, file-like object(with read() method), bytes, bytearray or memoryview Returns: First 8192 bytes of the file content as bytearray type. Raises: TypeError: if obj is not a supported type.
def get_bytes(obj): """ Infers the input type and reads the first 8192 bytes, returning a sliced bytearray. Args: obj: path to readable, file-like object(with read() method), bytes, bytearray or memoryview Returns: First 8192 bytes of the file content as bytearray type. Raises...
def get_bytes(obj): """ Infers the input type and reads the first 8192 bytes, returning a sliced bytearray. Args: obj: path to readable, file-like object(with read() method), bytes, bytearray or memoryview Returns: First 8192 bytes of the file content as bytearray type. ...
tests/test_types.py
[ "tests/test_types.py::TestFileType::test_guess_jpeg" ]
2022-08-10
2022-08-07
MIT
LICENSE
bb8fe4cd3b147f4c88ec29bd6662c8995c3dc854
bfc4a380fc8a56c15f133e92bcef69f0003828bc
https://github.com/h2non/filetype.py/commit/bb8fe4cd3b147f4c88ec29bd6662c8995c3dc854
https://github.com/h2non/filetype.py
filetype.utils
[ "get_bytes" ]
10
1
05666724ec698f5a
h2non/filetype.py@bb8fe4cd3#get_bytes
python
2026-08-18
goldset/0.1
1
hgrecco/flexparser
Fix set position and added tests
file
commit
Fix set position and added tests
""" flexparser.flexparser ~~~~~~~~~~~~~~~~~~~~~ Classes and functions to create parsers. The idea is quite simple. You write a class for every type of content (called here ``ParsedStatement``) you need to parse. Each class should have a ``from_string`` constructor. We used extensively the ``ty...
""" flexparser.flexparser ~~~~~~~~~~~~~~~~~~~~~ Classes and functions to create parsers. The idea is quite simple. You write a class for every type of content (called here ``ParsedStatement``) you need to parse. Each class should have a ``from_string`` constructor. We used extensively the ``ty...
flexparser/testsuite/test_iterators.py
[ "flexparser/testsuite/test_iterators.py::test_statement_change_dlm" ]
2022-08-07
2022-08-07
BSD-2-Clause
LICENSE
54b243a9fbcd686421444d2c7f51a546a5651873
2048c406456ff00c011f177f2606e1ab0508b125
https://github.com/hgrecco/flexparser/commit/54b243a9fbcd686421444d2c7f51a546a5651873
https://github.com/hgrecco/flexparser
flexparser.flexparser
[ "Block", "Parser", "StatementIterator" ]
8
1
39d8adf26b49c9ee
hgrecco/flexparser@54b243a9f#flexparser/flexparser.py
python
2026-08-18
goldset/0.1
1
h2non/filetype.py
get_bytes
fix: regression for file-like obj file type detection
function
docstring
Infers the input type and reads the first 8192 bytes, returning a sliced bytearray. Args: obj: path to readable, file, bytes, bytearray or memoryview. Returns: First 8192 bytes of the file content as bytearray type. Raises: TypeError: if obj is not a supported type.
def get_bytes(obj): """ Infers the input type and reads the first 8192 bytes, returning a sliced bytearray. Args: obj: path to readable, file, bytes, bytearray or memoryview. Returns: First 8192 bytes of the file content as bytearray type. Raises: TypeError: if obj is ...
def get_bytes(obj): """ Infers the input type and reads the first 8192 bytes, returning a sliced bytearray. Args: obj: path to readable, file-like object(with read() method), bytes, bytearray or memoryview Returns: First 8192 bytes of the file content as bytearray type. Raises...
tests/test_types.py
[ "tests/test_types.py::TestFileType::test_guess_jpeg" ]
2022-08-05
2022-08-05
MIT
LICENSE
0828418ff3b2f7cefcb9677b49d3a48ca82e2393
3bd71d08120794beea5633e54d6bc5ba36bae2c9
https://github.com/h2non/filetype.py/commit/0828418ff3b2f7cefcb9677b49d3a48ca82e2393
https://github.com/h2non/filetype.py
filetype.utils
[ "get_bytes" ]
5
1
e061640916e6d9a4
h2non/filetype.py@0828418ff#get_bytes
python
2026-08-18
goldset/0.1
1
fastavro/fastavro
fix issue with decoding records within maps
file
commit
fix issue with decoding records within maps
import json from typing import IO, Any, Tuple, List from .parser import Parser from .symbols import ( RecordStart, FieldStart, Boolean, Int, Null, String, Long, Float, Double, Bytes, FieldEnd, RecordEnd, Union, UnionEnd, MapStart, MapEnd, MapKeyMarker...
import json from typing import IO, Any, Tuple, List from .parser import Parser from .symbols import ( RecordStart, FieldStart, Boolean, Int, Null, String, Long, Float, Double, Bytes, FieldEnd, RecordEnd, Union, UnionEnd, MapStart, MapEnd, MapKeyMarker...
tests/test_json.py
[ "tests/test_json.py::test_json_with_map" ]
2022-07-29
2022-07-29
MIT
LICENSE
f50ac0ef7946fc71c4da8d75db121361742fb40e
c52cc9383baf3a38c4296101675029b95400b7b3
https://github.com/fastavro/fastavro/commit/f50ac0ef7946fc71c4da8d75db121361742fb40e
https://github.com/fastavro/fastavro
fastavro.io.json_decoder
[ "AvroJSONDecoder" ]
17
1
f93e04dae24407de
fastavro/fastavro@f50ac0ef7#fastavro/io/json_decoder.py
python
2026-08-18
goldset/0.1
1
sprymix/csscompressor
Fix @supports directives minification (#12)
file
commit
Fix @supports directives minification (#12)
## # Portions Copyright (c) 2013 Sprymix Inc. # Author of python port: Yury Selivanov - http://sprymix.com # # Author: Julien Lecomte - http://www.julienlecomte.net/ # Author: Isaac Schlueter - http://foohack.com/ # Author: Stoyan Stefanov - http://phpied.com/ # Contributor: Dan Beam - http://danbeam.org/ # Contributo...
## # Portions Copyright (c) 2013 Sprymix Inc. # Author of python port: Yury Selivanov - http://sprymix.com # # Author: Julien Lecomte - http://www.julienlecomte.net/ # Author: Isaac Schlueter - http://foohack.com/ # Author: Stoyan Stefanov - http://phpied.com/ # Contributor: Dan Beam - http://danbeam.org/ # Contributo...
csscompressor/tests/test_other.py
[ "csscompressor/tests/test_other.py::Tests::test_supports_directive" ]
2022-07-23
2017-11-26
BSD-3-Clause
LICENSE
49d54c4f430d7d3784a410db48389b01de0e1f8c
0857438db725d5c1d2672f45d9cf3e7dc14646a4
https://github.com/sprymix/csscompressor/commit/49d54c4f430d7d3784a410db48389b01de0e1f8c
https://github.com/sprymix/csscompressor
csscompressor.__init__
[ "_compress" ]
4
1
5b006b028e0f318f
sprymix/csscompressor@49d54c4f4#csscompressor/__init__.py
python
2026-08-18
goldset/0.1
1
horejsek/python-fastjsonschema
Fix false unique items
file
commit
Fix false unique items
import decimal import re from .exceptions import JsonSchemaDefinitionException from .generator import CodeGenerator, enforce_list JSON_TYPE_TO_PYTHON_TYPE = { 'null': 'NoneType', 'boolean': 'bool', 'number': 'int, float', 'integer': 'int', 'string': 'str', 'array': 'list, tuple', 'object'...
import decimal import re from .exceptions import JsonSchemaDefinitionException from .generator import CodeGenerator, enforce_list JSON_TYPE_TO_PYTHON_TYPE = { 'null': 'NoneType', 'boolean': 'bool', 'number': 'int, float', 'integer': 'int', 'string': 'str', 'array': 'list, tuple', 'object'...
tests/test_array.py
[ "tests/test_array.py::test_not_unique_items" ]
2022-07-17
2022-07-17
BSD-3-Clause
LICENSE
347588fa05d0aad5817c9628bf2967797b62bd87
41ff732ae610a3feafed84295e81fb5e84517cec
https://github.com/horejsek/python-fastjsonschema/commit/347588fa05d0aad5817c9628bf2967797b62bd87
https://github.com/horejsek/python-fastjsonschema
fastjsonschema.draft04
[ "CodeGeneratorDraft04" ]
4
1
c0444b8f7e4078c8
horejsek/python-fastjsonschema@347588fa0#fastjsonschema/draft04.py
python
2026-08-18
goldset/0.1
1
google/etils
StrEnum
Fix StrEnum when invalid value
function
docstring
Like `Enum`, but `enum.auto()` assigns `str` rather than `int`. ``python class MyEnum(epy.StrEnum): SOME_ATTR = enum.auto() OTHER_ATTR = enum.auto() assert MyEnum('some_attr') is MyEnum.SOME_ATTR assert MyEnum.SOME_ATTR == 'some_attr' `` `StrEnum` is case insensitive.
class StrEnum(str, enum.Enum): """Like `Enum`, but `enum.auto()` assigns `str` rather than `int`. ```python class MyEnum(epy.StrEnum): SOME_ATTR = enum.auto() OTHER_ATTR = enum.auto() assert MyEnum('some_attr') is MyEnum.SOME_ATTR assert MyEnum.SOME_ATTR == 'some_attr' ``` `StrEnum` is case ins...
class StrEnum(str, enum.Enum): """Like `Enum`, but `enum.auto()` assigns `str` rather than `int`. ```python class MyEnum(epy.StrEnum): SOME_ATTR = enum.auto() OTHER_ATTR = enum.auto() assert MyEnum('some_attr') is MyEnum.SOME_ATTR assert MyEnum.SOME_ATTR == 'some_attr' ``` `StrEnum` is case ins...
etils/epy/py_utils_test.py
[ "etils/epy/py_utils_test.py::test_str_enum" ]
2022-06-16
2022-06-13
Apache-2.0
LICENSE
a72cedc0b8b53d48301f3f1ee70831b43ac090a0
a0b71032095db14acf6b33516bca6d885fe09e35
https://github.com/google/etils/commit/a72cedc0b8b53d48301f3f1ee70831b43ac090a0
https://github.com/google/etils
etils.epy.py_utils
[ "StrEnum" ]
14
1
118c6bd8124a09d1
google/etils@a72cedc0b#StrEnum
python
2026-08-18
goldset/0.1
1
kaste/mockito-python
mock
Fix: support `mock(spec=SomeClass)` usage
function
docstring
Create 'empty' objects ('Mocks'). Will create an empty unconfigured object, that you can pass around. All interactions (method calls) will be recorded and can be verified using :func:`verify` et.al. A plain `mock()` will be not `strict`, and thus all methods regardless of the arguments will return `None`. .. note:: ...
def mock(config_or_spec=None, spec=None, strict=OMITTED): """Create 'empty' objects ('Mocks'). Will create an empty unconfigured object, that you can pass around. All interactions (method calls) will be recorded and can be verified using :func:`verify` et.al. A plain `mock()` will be not `strict`,...
def mock(config_or_spec=None, spec=None, strict=OMITTED): """Create 'empty' objects ('Mocks'). Will create an empty unconfigured object, that you can pass around. All interactions (method calls) will be recorded and can be verified using :func:`verify` et.al. A plain `mock()` will be not `strict`,...
tests/speccing_test.py
[ "tests/speccing_test.py::TestSpeccing::testShouldPassIsInstanceChecks_2" ]
2022-06-14
2022-06-14
MIT
LICENSE
519c9c49ed9cb905b42b0b21444f7116df5b5549
f2a0d3548d7b92ee8b7618579c5da9926fd1c0f0
https://github.com/kaste/mockito-python/commit/519c9c49ed9cb905b42b0b21444f7116df5b5549
https://github.com/kaste/mockito-python
mockito.mocking
[ "mock" ]
5
1
5838631ed190aad6
kaste/mockito-python@519c9c49e#mock
python
2026-08-18
goldset/0.1
1
joke2k/django-environ
Fix `environ.Path.__eq__()` to compare paths correctly
file
commit
Fix `environ.Path.__eq__()` to compare paths correctly
# This file is part of the django-environ. # # Copyright (c) 2021-2022, Serghei Iakovlev <egrep@protonmail.ch> # Copyright (c) 2013-2021, Daniele Faraglia <daniele.faraglia@gmail.com> # # For the full copyright and license information, please view # the LICENSE.txt file that was distributed with this source code. """ ...
# This file is part of the django-environ. # # Copyright (c) 2021-2022, Serghei Iakovlev <egrep@protonmail.ch> # Copyright (c) 2013-2021, Daniele Faraglia <daniele.faraglia@gmail.com> # # For the full copyright and license information, please view # the LICENSE.txt file that was distributed with this source code. """ ...
tests/test_path.py
[ "tests/test_path.py::test_comparison" ]
2022-06-14
2022-06-14
MIT
LICENSE.txt
27a8a87352769f830989808cda8267440df01009
ea308232d474ad1eb7fc6826869baad6b7136b96
https://github.com/joke2k/django-environ/commit/27a8a87352769f830989808cda8267440df01009
https://github.com/joke2k/django-environ
environ.environ
[ "Env", "Path" ]
20
1
2690f44ddd4d41b7
joke2k/django-environ@27a8a8735#environ/environ.py
python
2026-08-18
goldset/0.1
1
benmoran56/esper
set_handler
Fix Bug when adding a function as an event handler.
function
docstring
Register a function to handle the named event type. After registering a function, it will receive all events that are dispatched by the passed name. Only a weak reference is kept to the passed function. If :param name: The name of the event type to handle. :param func: The function or method to register as a handler ...
def set_handler(name: str, func) -> None: """Register a function to handle the named event type. After registering a function, it will receive all events that are dispatched by the passed name. Only a weak reference is kept to the passed function. If :param name: The name of the event type to han...
def set_handler(name: str, func) -> None: """Register a function to handle the named event type. After registering a function, it will receive all events that are dispatched by the passed name. Only a weak reference is kept to the passed function. If :param name: The name of the event type to han...
tests/test_world.py
[ "tests/test_world.py::test_event_dispatch_one_arg" ]
2022-06-10
2022-03-16
MIT
LICENSE
43bc99d3b1a298c9b640b976dbe56b9c1595e00c
dc9a9bf4c081cd6c81144f0617b845a1d4718b25
https://github.com/benmoran56/esper/commit/43bc99d3b1a298c9b640b976dbe56b9c1595e00c
https://github.com/benmoran56/esper
esper.__init__
[ "set_handler" ]
5
1
31854e9476259c10
benmoran56/esper@43bc99d3b#set_handler
python
2026-08-18
goldset/0.1
1
marshallward/f90nml
Case-insensitive del fix
file
commit
Case-insensitive del fix
"""Fortran namelist interface. The ``Namelist`` is a representation of a Fortran namelist and its contents in a Python environment. :copyright: Copyright 2014 Marshall Ward, see AUTHORS for details. :license: Apache License, Version 2.0, see LICENSE for details. """ from __future__ import print_function import copy ...
"""Fortran namelist interface. The ``Namelist`` is a representation of a Fortran namelist and its contents in a Python environment. :copyright: Copyright 2014 Marshall Ward, see AUTHORS for details. :license: Apache License, Version 2.0, see LICENSE for details. """ from __future__ import print_function import copy ...
tests/test_f90nml.py
[ "tests/test_f90nml.py::Test::test_del_item" ]
2022-06-01
2022-05-31
Apache-2.0
LICENSE
0fdcedd12fe0d1aef22845ee7aa28224dc36258a
3e24a974fcb2437eb8b50174ab141d604fcffc98
https://github.com/marshallward/f90nml/commit/0fdcedd12fe0d1aef22845ee7aa28224dc36258a
https://github.com/marshallward/f90nml
f90nml.namelist
[ "Namelist" ]
2
1
5b8b4184fe346973
marshallward/f90nml@0fdcedd12#f90nml/namelist.py
python
2026-08-18
goldset/0.1
1
miguelgrinberg/python-engineio
Gracefully fail to decode empty packets (Fixes #269)
file
commit
Gracefully fail to decode empty packets (Fixes #269)
import base64 from engineio import json as _json (OPEN, CLOSE, PING, PONG, MESSAGE, UPGRADE, NOOP) = (0, 1, 2, 3, 4, 5, 6) packet_names = ['OPEN', 'CLOSE', 'PING', 'PONG', 'MESSAGE', 'UPGRADE', 'NOOP'] binary_types = (bytes, bytearray) class Packet(object): """Engine.IO packet.""" json = _json def __i...
import base64 from engineio import json as _json (OPEN, CLOSE, PING, PONG, MESSAGE, UPGRADE, NOOP) = (0, 1, 2, 3, 4, 5, 6) packet_names = ['OPEN', 'CLOSE', 'PING', 'PONG', 'MESSAGE', 'UPGRADE', 'NOOP'] binary_types = (bytes, bytearray) class Packet(object): """Engine.IO packet.""" json = _json def __i...
tests/common/test_packet.py
[ "tests/common/test_packet.py::TestPacket::test_decode_invalid_empty_text_packet" ]
2022-05-29
2022-05-29
MIT
LICENSE
9c657071f3d42a88fd1615b5edd245a89445ea1b
3345a59b8c5c7917114427ad95548fb19a7b4f54
https://github.com/miguelgrinberg/python-engineio/commit/9c657071f3d42a88fd1615b5edd245a89445ea1b
https://github.com/miguelgrinberg/python-engineio
engineio.packet
[ "Packet" ]
2
1
40835638abff644b
miguelgrinberg/python-engineio@9c657071f#src/engineio/packet.py
python
2026-08-18
goldset/0.1
1
lark-parser/lark
Fix types for tree_templates, better error messages
file
commit
Fix types for tree_templates, better error messages
"""This module defines utilities for matching and translation tree templates. A tree templates is a tree that contains nodes that are template variables. """ from typing import Union, Optional, Mapping, Dict, Tuple, Iterator from lark import Tree, Transformer from lark.exceptions import MissingVariableError TreeOr...
"""This module defines utilities for matching and translation tree templates. A tree templates is a tree that contains nodes that are template variables. """ from typing import Union, Optional, Mapping, Dict, Tuple, Iterator from lark import Tree, Transformer from lark.exceptions import MissingVariableError Branch...
tests/test_tree_templates.py
[ "tests/test_tree_templates.py::TestTreeTemplatesConf::test_template_match__only_tree" ]
2022-05-24
2022-05-24
MIT
LICENSE
242c4a5741efff3beffa8f60fb5da09e42dd07d1
66c22d0019170ad4d6bfb45e881776e0dad32625
https://github.com/lark-parser/lark/commit/242c4a5741efff3beffa8f60fb5da09e42dd07d1
https://github.com/lark-parser/lark
lark.tree_templates
[ "Template", "TemplateConf" ]
20
1
83d9d0d77f91583e
lark-parser/lark@242c4a574#lark/tree_templates.py
python
2026-08-18
goldset/0.1
1
fastavro/fastavro
fix bug where records should match but they were not
file
commit
fix bug where records should match but they were not
# cython: auto_cpdef=True """Python code for reading AVRO files""" # This code is a modified version of the code at # http://svn.apache.org/viewvc/avro/trunk/lang/py/src/avro/ which is under # Apache 2.0 license (http://www.apache.org/licenses/LICENSE-2.0) import bz2 import json import lzma import zlib from datetime...
# cython: auto_cpdef=True """Python code for reading AVRO files""" # This code is a modified version of the code at # http://svn.apache.org/viewvc/avro/trunk/lang/py/src/avro/ which is under # Apache 2.0 license (http://www.apache.org/licenses/LICENSE-2.0) import bz2 import json import lzma import zlib from datetime...
tests/test_fastavro.py
[ "tests/test_fastavro.py::test_name_changes_to_full_record", "tests/test_fastavro.py::test_record_names_must_match" ]
2022-05-21
2022-05-21
MIT
LICENSE
2b980fffb2bb7c4be681e5cbb0d072e9fc208e3c
2406ae34867634b4e4ce003b4bb508e557b06ce3
https://github.com/fastavro/fastavro/commit/2b980fffb2bb7c4be681e5cbb0d072e9fc208e3c
https://github.com/fastavro/fastavro
fastavro._read_py
[ "match_schemas", "read_data" ]
5
2
f8d3fcccbf3465db
fastavro/fastavro@2b980fffb#fastavro/_read_py.py
python
2026-08-18
goldset/0.1
1
David-Wobrock/sqlvalidator
Fix #38 -- Handle nested case expressions
file
commit
Fix #38 -- Handle nested case expressions
from typing import Optional STRING_SPLIT_TOKENS = ("'", '"', "`") WHITESPACE_SPLIT_TOKENS = (" ", "\n") KEPT_SPLIT_TOKENS = ( ",", ";", "(", ")", "[", "]", "+", "-", "*", "/", "=", "<", ">", ".", ) MERGE_TOKENS = ("<>", "<=", ">=", "<<", ">>", "||", "!=") def l...
from typing import Optional STRING_SPLIT_TOKENS = ("'", '"', "`") WHITESPACE_SPLIT_TOKENS = (" ", "\n") KEPT_SPLIT_TOKENS = ( ",", ";", "(", ")", "[", "]", "+", "-", "*", "/", "=", "<", ">", ".", ) MERGE_TOKENS = ("<>", "<=", ">=", "<<", ">>", "||", "!=") def l...
tests/integration/test_formatting.py
[ "tests/integration/test_formatting.py::test_nesting_case_expr" ]
2022-04-15
2022-04-15
MIT
LICENSE
581435475eb8cbedf745abe3e58a4e5ac010d6e5
2827c2a16d0dbfeba6b90fb2e8ee2bdacc6d0286
https://github.com/David-Wobrock/sqlvalidator/commit/581435475eb8cbedf745abe3e58a4e5ac010d6e5
https://github.com/David-Wobrock/sqlvalidator
sqlvalidator.grammar.tokeniser
[ "get_tokens_until_one_of" ]
6
1
45a891374bb0814d
David-Wobrock/sqlvalidator@581435475#sqlvalidator/grammar/tokeniser.py
python
2026-08-18
goldset/0.1
1
terryyin/lizard
Fix error function statistic in some scenario
file
commit
Fix error function statistic in some scenario
''' Language parser for Go lang ''' from .code_reader import CodeStateMachine class GoLikeStates(CodeStateMachine): # pylint: disable=R0903 FUNC_KEYWORD = 'func' def _state_global(self, token): if token == self.FUNC_KEYWORD: self._state = self._function_name self.context.pu...
''' Language parser for Go lang ''' from .code_reader import CodeStateMachine class GoLikeStates(CodeStateMachine): # pylint: disable=R0903 FUNC_KEYWORD = 'func' def _state_global(self, token): if token == self.FUNC_KEYWORD: self._state = self._function_name self.context.pu...
test/test_languages/testGo.py
[ "test/test_languages/testGo.py::Test_parser_for_Go::test_nest_function", "test/test_languages/testGo.py::Test_parser_for_Go::test_one_function_with_return_empty_interface" ]
2022-04-14
2022-04-04
MIT
LICENSE.txt
3d993e1fc55e776674c5b98f4ae8bfc85716ee7b
09a677e732067daaa0cd3a89ffc26885cd86974e
https://github.com/terryyin/lizard/commit/3d993e1fc55e776674c5b98f4ae8bfc85716ee7b
https://github.com/terryyin/lizard
lizard_languages.golike
[ "GoLikeStates" ]
9
2
d0917c3568a099cf
terryyin/lizard@3d993e1fc#lizard_languages/golike.py
python
2026-08-18
goldset/0.1
1
Textualize/rich
escape
fix escaping issue
function
docstring
Escapes text so that it won't be interpreted as markup. Args: markup (str): Content to be inserted in to markup. Returns: str: Markup with square brackets escaped.
def escape( markup: str, _escape: _EscapeSubMethod = re.compile(r"(\\*)(\[[a-z#\/@].*?\])").sub ) -> str: """Escapes text so that it won't be interpreted as markup. Args: markup (str): Content to be inserted in to markup. Returns: str: Markup with square brackets escaped. """ ...
def escape( markup: str, _escape: _EscapeSubMethod = re.compile(r"(\\*)(\[[a-z#/@][^[]*?])").sub, ) -> str: """Escapes text so that it won't be interpreted as markup. Args: markup (str): Content to be inserted in to markup. Returns: str: Markup with square brackets escaped. """...
tests/test_markup.py
[ "tests/test_markup.py::test_escape" ]
2022-04-12
2022-04-06
MIT
LICENSE
193903dff5a2a5fb4f84eb9a9fba0f555f6101de
e3fdf3304341e8930ad913be6c67b40ef0e64457
https://github.com/Textualize/rich/commit/193903dff5a2a5fb4f84eb9a9fba0f555f6101de
https://github.com/Textualize/rich
rich.markup
[ "escape" ]
3
1
1e381f311d67022c
Textualize/rich@193903dff#escape
python
2026-08-17
goldset/0.1
1
protomaps/pmtiles
python writer: fix logical error when a packed leaf directory overflows [#37]
file
commit
python writer: fix logical error when a packed leaf directory overflows [#37]
import itertools import json from contextlib import contextmanager from pmtiles import Entry def entrysort(t): return (t.z,t.x,t.y) # Find best base zoom to avoid extra indirection for as many tiles as we can # precondition: entries is sorted, only tile entries, len(entries) > max_dir_size def find_leaf_level(ent...
import itertools import json from contextlib import contextmanager from pmtiles import Entry def entrysort(t): return (t.z,t.x,t.y) # Find best base zoom to avoid extra indirection for as many tiles as we can # precondition: entries is sorted, only tile entries, len(entries) > max_dir_size def find_leaf_level(ent...
python/test/test_writer.py
[ "python/test/test_writer.py::TestTilePyramid::test_leafdir_overflow" ]
2022-03-20
2022-03-17
BSD-3-Clause
LICENSE
df8256f10b94c20eaf1010e158b7cb41605c091e
a32947688adede92a2d3ad4032dc798730af58f7
https://github.com/protomaps/pmtiles/commit/df8256f10b94c20eaf1010e158b7cb41605c091e
https://github.com/protomaps/pmtiles
python.pmtiles.writer
[ "make_pyramid" ]
3
1
0c5d001e1e2ab9eb
protomaps/pmtiles@df8256f10#python/pmtiles/writer.py
python
2026-08-18
goldset/0.1
1
wbond/oscrypto
Fix a bug with the OpenSSL backend and using AES192/256 and no padding
file
commit
Fix a bug with the OpenSSL backend and using AES192/256 and no padding
# coding: utf-8 from __future__ import unicode_literals, division, absolute_import, print_function import math from .._errors import pretty_message from .._ffi import new, null, is_null, buffer_from_bytes, bytes_from_buffer, deref from ._libcrypto import libcrypto, libcrypto_legacy_support, LibcryptoConst, handle_ope...
# coding: utf-8 from __future__ import unicode_literals, division, absolute_import, print_function import math from .._errors import pretty_message from .._ffi import new, null, is_null, buffer_from_bytes, bytes_from_buffer, deref from ._libcrypto import libcrypto, libcrypto_legacy_support, LibcryptoConst, handle_ope...
tests/test_symmetric.py
[ "tests/test_symmetric.py::SymmetricTests::test_aes_192_cbc_no_padding_encrypt_decrypt" ]
2022-03-18
2022-03-15
MIT
LICENSE
aa161858d0dfb66ca08a595f1793f843f785ee98
ab248e782d73a958e52c6fce33b1cd1e57e6306c
https://github.com/wbond/oscrypto/commit/aa161858d0dfb66ca08a595f1793f843f785ee98
https://github.com/wbond/oscrypto
oscrypto._openssl.symmetric
[ "_decrypt", "_encrypt" ]
22
1
5db0bbbb6985c67a
wbond/oscrypto@aa161858d#oscrypto/_openssl/symmetric.py
python
2026-08-18
goldset/0.1
1
terryyin/lizard
Fix incorrect python function end line when function declared with multiple lines
file
commit
Fix incorrect python function end line when function declared with multiple lines
''' Language parser for Python ''' from .code_reader import CodeReader, CodeStateMachine from .script_language import ScriptLanguageMixIn def count_spaces(token): return len(token.replace('\t', ' ' * 8)) class PythonIndents: # pylint: disable=R0902 def __init__(self, context): self.indents = [0] ...
''' Language parser for Python ''' from .code_reader import CodeReader, CodeStateMachine from .script_language import ScriptLanguageMixIn def count_spaces(token): return len(token.replace('\t', ' ' * 8)) class PythonIndents: # pylint: disable=R0902 def __init__(self, context): self.indents = [0] ...
test/test_languages/testPython.py
[ "test/test_languages/testPython.py::Test_parser_for_Python::test_multi_line_function_def_function_end" ]
2022-03-16
2022-03-08
MIT
LICENSE.txt
a79aa8c951be043bd96428ddd7428deab465ec4e
e6758034a64589f13bdf11dac76f812bc3399518
https://github.com/terryyin/lizard/commit/a79aa8c951be043bd96428ddd7428deab465ec4e
https://github.com/terryyin/lizard
lizard_languages.python
[ "PythonReader" ]
4
1
87d4d566f8dc9b9f
terryyin/lizard@a79aa8c95#lizard_languages/python.py
python
2026-08-18
goldset/0.1
1
hynek/structlog
fix: use a noop with the same signature as the real one for make_filtering_bound_logger (#401)
file
commit
fix: use a noop with the same signature as the real one for make_filtering_bound_logger (#401)
# SPDX-License-Identifier: MIT OR Apache-2.0 # This file is dual licensed under the terms of the Apache License, Version # 2.0, and the MIT License. See the LICENSE file in the root of this # repository for complete details. """ Extracted log level data used by both stdlib and native log level filters. """ import lo...
# SPDX-License-Identifier: MIT OR Apache-2.0 # This file is dual licensed under the terms of the Apache License, Version # 2.0, and the MIT License. See the LICENSE file in the root of this # repository for complete details. """ Extracted log level data used by both stdlib and native log level filters. """ import lo...
tests/test_log_levels.py
[ "tests/test_log_levels.py::TestFilteringLogger::test_filter_bound_below_missing_event_string" ]
2022-03-10
2022-02-11
MIT
LICENSE-MIT
5871e78d48600436289db90282a7a11976f835f6
09f4313ce374af2dad14a506c1a25d808e6f85a9
https://github.com/hynek/structlog/commit/5871e78d48600436289db90282a7a11976f835f6
https://github.com/hynek/structlog
structlog._log_levels
[ "_nop" ]
2
1
2f01eceea9486a99
hynek/structlog@5871e78d4#src/structlog/_log_levels.py
python
2026-08-18
goldset/0.1
1
geographiclib/geographiclib-python
Add planimeter reverse arctic test to catch transit bug and fix.
file
commit
Add planimeter reverse arctic test to catch transit bug and fix.
"""Define the :class:`~geographiclib.polygonarea.PolygonArea` class The constructor initializes a empty polygon. The available methods are * :meth:`~geographiclib.polygonarea.PolygonArea.Clear` reset the polygon * :meth:`~geographiclib.polygonarea.PolygonArea.AddPoint` add a vertex to the polygon * :me...
"""Define the :class:`~geographiclib.polygonarea.PolygonArea` class The constructor initializes a empty polygon. The available methods are * :meth:`~geographiclib.polygonarea.PolygonArea.Clear` reset the polygon * :meth:`~geographiclib.polygonarea.PolygonArea.AddPoint` add a vertex to the polygon * :me...
geographiclib/test/test_geodesic.py
[ "geographiclib/test/test_geodesic.py::PlanimeterTest::test_Planimeter12r" ]
2022-03-08
2022-03-06
MIT
LICENSE
d25401a860ad4ac8fc0044b591f7cabadafad71d
1db690db53ccaebb5c8bbc6c927d0a63ecf0df13
https://github.com/geographiclib/geographiclib-python/commit/d25401a860ad4ac8fc0044b591f7cabadafad71d
https://github.com/geographiclib/geographiclib-python
geographiclib.polygonarea
[ "PolygonArea" ]
14
1
6d5f4d5ddb011dd4
geographiclib/geographiclib-python@d25401a86#geographiclib/polygonarea.py
python
2026-08-18
goldset/0.1
1
gaogaotiantian/objprint
Fix printing unsortable dict (#54)
file
commit
Fix printing unsortable dict (#54)
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/gaogaotiantian/objprint/blob/master/NOTICE.txt import inspect import itertools import json import re from types import FunctionType, MethodType from .color_util import COLOR, set_color from .frame_analyze...
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/gaogaotiantian/objprint/blob/master/NOTICE.txt import inspect import itertools import json import re from types import FunctionType, MethodType from .color_util import COLOR, set_color from .frame_analyze...
tests/test_objprint.py
[ "tests/test_objprint.py::TestObjprint::test_unsortable_dict" ]
2022-03-08
2022-03-06
Apache-2.0
LICENSE
b4808f08c1120ac071f858199e3468687b2d97bd
95e6a62fb145513b915061eb56f797982b70730d
https://github.com/gaogaotiantian/objprint/commit/b4808f08c1120ac071f858199e3468687b2d97bd
https://github.com/gaogaotiantian/objprint
objprint.objprint
[ "ObjPrint" ]
7
1
a56815b95a6e1a3a
gaogaotiantian/objprint@b4808f08c#src/objprint/objprint.py
python
2026-08-18
goldset/0.1
1
MrThearMan/django-settings-holder
SettingsHolder
Raise an error about undefined user settings
function
docstring
Object that allows settings to be accessed with attributes. Any setting with string import paths will be automatically resolved.
class SettingsHolder: """Object that allows settings to be accessed with attributes. Any setting with string import paths will be automatically resolved. """ def __init__( self, user_settings: Optional[Dict[str, Any]] = None, defaults: Optional[Dict[str, Any]] = None, im...
class SettingsHolder: """Object that allows settings to be accessed with attributes. Any setting with string import paths will be automatically resolved. """ def __init__( self, user_settings: Optional[Dict[str, Any]] = None, defaults: Optional[Dict[str, Any]] = None, im...
tests/test_utils.py
[ "tests/test_utils.py::test_settings_holder__using_undefined_setting" ]
2022-03-05
2022-01-22
MIT
LICENSE
3bf55cb8295d4c956e423653a0f60109ad0d79c7
cbffa3f9cfc9a0250d6d91da7b22c9009072b9ef
https://github.com/MrThearMan/django-settings-holder/commit/3bf55cb8295d4c956e423653a0f60109ad0d79c7
https://github.com/MrThearMan/django-settings-holder
settings_holder.holder
[ "SettingsHolder" ]
4
1
8f168e067fb182b2
MrThearMan/django-settings-holder@3bf55cb82#SettingsHolder
python
2026-08-18
goldset/0.1
1
hamcrest/PyHamcrest
Ordered comparison matchers should fail for incomparable types. Fix for #185
file
commit
Ordered comparison matchers should fail for incomparable types. Fix for #185
import operator from typing import Any, Callable from hamcrest.core.base_matcher import BaseMatcher from hamcrest.core.description import Description from hamcrest.core.matcher import Matcher __author__ = "Jon Reid" __copyright__ = "Copyright 2011 hamcrest.org" __license__ = "BSD, see License.txt" class OrderingCom...
import operator from typing import Any, Callable from hamcrest.core.base_matcher import BaseMatcher from hamcrest.core.description import Description from hamcrest.core.matcher import Matcher __author__ = "Jon Reid" __copyright__ = "Copyright 2011 hamcrest.org" __license__ = "BSD, see License.txt" class OrderingCom...
tests/hamcrest_unit_test/collection/issequence_containinginanyorder_test.py
[ "tests/hamcrest_unit_test/collection/issequence_containinginanyorder_test.py::IsConcreteSequenceContainingInAnyOrderTest::testIncomparableTypesInNestedMatcher" ]
2022-03-03
2022-03-03
BSD-3-Clause
LICENSE.txt
78e99b0eb25d5bd81d8f183f50bc91bed2d1fcf5
cbc50957373d3ce921477807ea0a24da44310e33
https://github.com/hamcrest/PyHamcrest/commit/78e99b0eb25d5bd81d8f183f50bc91bed2d1fcf5
https://github.com/hamcrest/PyHamcrest
hamcrest.library.number.ordering_comparison
[ "OrderingComparison" ]
5
1
61b8af65978602ca
hamcrest/PyHamcrest@78e99b0eb#src/hamcrest/library/number/ordering_comparison.py
python
2026-08-18
goldset/0.1
1
Textualize/rich
render
Fix issue with markup escaping
function
docstring
Render console markup in to a Text instance. Args: markup (str): A string containing console markup. emoji (bool, optional): Also render emoji code. Defaults to True. Raises: MarkupError: If there is a syntax error in the markup. Returns: Text: A test instance.
def render( markup: str, style: Union[str, Style] = "", emoji: bool = True, emoji_variant: Optional[EmojiVariant] = None, ) -> Text: """Render console markup in to a Text instance. Args: markup (str): A string containing console markup. emoji (bool, optional): Also render emoji ...
def render( markup: str, style: Union[str, Style] = "", emoji: bool = True, emoji_variant: Optional[EmojiVariant] = None, ) -> Text: """Render console markup in to a Text instance. Args: markup (str): A string containing console markup. emoji (bool, optional): Also render emoji ...
tests/test_markup.py
[ "tests/test_markup.py::test_markup_escape" ]
2022-02-10
2022-02-09
MIT
LICENSE
71325bb5bbb194ae0c09256c3035187354e042c2
ae5865eb799de4c6ed6bdfa29f696d9104219229
https://github.com/Textualize/rich/commit/71325bb5bbb194ae0c09256c3035187354e042c2
https://github.com/Textualize/rich
rich.markup
[ "render" ]
2
1
f71a3138a8ba3986
Textualize/rich@71325bb5b#render
python
2026-08-17
goldset/0.1
1
Flagsmith/flagsmith-engine
sort_and_filter_feature_segments
Fix TypeError when sorting feature segments (#91)
function
docstring
Feature segments in the django data model are associated with a segment and an environment we need to make sure we only get the feature segments for the environment we are serializing. :param feature_segments: queryset of django FeatureSegment model objects :param environment_api_key: the api key of the environment we...
def sort_and_filter_feature_segments( feature_segments: typing.Iterable, environment_api_key: str ) -> typing.List: """ Feature segments in the django data model are associated with a segment and an environment we need to make sure we only get the feature segments for the environment we are serializ...
def sort_and_filter_feature_segments( feature_segments: typing.Iterable, environment_api_key: str ) -> typing.List: """ Feature segments in the django data model are associated with a segment and an environment we need to make sure we only get the feature segments for the environment we are serializ...
tests/unit/django_transform/test_django_transform_filters.py
[ "tests/unit/django_transform/test_django_transform_filters.py::test_sort_and_filter_feature_segments" ]
2022-02-03
2022-02-02
BSD-3-Clause
LICENSE.txt
9f94ff995fb616cdabd58f813af434232bafe6bd
98b01781fd2d7ae9c24463cd31383c7195866bc8
https://github.com/Flagsmith/flagsmith-engine/commit/9f94ff995fb616cdabd58f813af434232bafe6bd
https://github.com/Flagsmith/flagsmith-engine
flag_engine.django_transform.filters
[ "sort_and_filter_feature_segments" ]
4
1
51e49e9675d7e083
Flagsmith/flagsmith-engine@9f94ff995#sort_and_filter_feature_segments
python
2026-08-18
goldset/0.1
1
mciepluc/cocotb-coverage
CoverItem
Fix `CoverItem.detailed_coverage` field generation
function
docstring
Class used to describe coverage groups. `CoverItem` objects are created automatically. This is a base class for all coverage primitives (:class:`CoverPoint`, :class:`CoverCross` or :class:`CoverCheck`). It may be used as a base class for other, user-defined coverage types.
class CoverItem(object): """Class used to describe coverage groups. ``CoverItem`` objects are created automatically. This is a base class for all coverage primitives (:class:`CoverPoint`, :class:`CoverCross` or :class:`CoverCheck`). It may be used as a base class for other, user-defined coverage ty...
class CoverItem(object): """Class used to describe coverage groups. ``CoverItem`` objects are created automatically. This is a base class for all coverage primitives (:class:`CoverPoint`, :class:`CoverCross` or :class:`CoverCheck`). It may be used as a base class for other, user-defined coverage ty...
tests/test_coverage/coverage_test.py
[ "tests/test_coverage/coverage_test.py::test_coveritem_detailed_coverage" ]
2022-01-17
2021-11-07
BSD-2-Clause
LICENSE
f051ff50815891ef8de8011c164c6dcd9bee1626
d3f33f5f331326e5532789b6ee69356f62422cb4
https://github.com/mciepluc/cocotb-coverage/commit/f051ff50815891ef8de8011c164c6dcd9bee1626
https://github.com/mciepluc/cocotb-coverage
cocotb_coverage.coverage
[ "CoverItem" ]
2
1
ef5c1eb15d452660
mciepluc/cocotb-coverage@f051ff508#CoverItem
python
2026-08-18
goldset/0.1
1
NiklasRosenstein/python-nr.util
Arg
fix: fix instantiation of `Safe` and `Unsafe`
function
docstring
Base class for arguments. Cannot be directly constructed.
class Arg(t.Generic[T]): """ Base class for arguments. Cannot be directly constructed. """ def __init__(self, value: T) -> None: if type(self) is not (Safe, Unsafe): raise RuntimeError(f'cannot create object of type {type(self).__name__}') self._value = value def __repr__(self) -> str: return ...
class Arg(t.Generic[T]): """ Base class for arguments. Cannot be directly constructed. """ def __init__(self, value: T) -> None: if type(self) not in (Safe, Unsafe): raise RuntimeError(f'cannot create object of type {type(self).__name__}') self._value = value def __repr__(self) -> str: return ...
src/nr/util/safearg/__test.py
[ "src/nr/util/safearg/__test.py::test_create_safe", "src/nr/util/safearg/__test.py::test_create_unsafe" ]
2022-01-10
2022-01-10
MIT
LICENSE
449d7cbe536224122fad9bd53271fdaebed4601c
734d42e65d40d141851a06366d98c30930825b07
https://github.com/NiklasRosenstein/python-nr.util/commit/449d7cbe536224122fad9bd53271fdaebed4601c
https://github.com/NiklasRosenstein/python-nr.util
nr.util.safearg.__init__
[ "Arg" ]
2
2
1cd191ada04c1198
NiklasRosenstein/python-nr.util@449d7cbe5#Arg
python
2026-08-18
goldset/0.1
1
pypa/auditwheel
dir2zip
fix: files are not compressed with ZIP_DEFLATED (#367)
function
docstring
Make a zip file `zip_fname` with contents of directory `in_dir` The recorded filenames are relative to `in_dir`, so doing a standard zip unpack of the resulting `zip_fname` in an empty directory will result in the original directory contents. Parameters ---------- in_dir : str Directory path containing files to g...
def dir2zip(in_dir: str, zip_fname: str, date_time: Optional[datetime] = None) -> None: """Make a zip file `zip_fname` with contents of directory `in_dir` The recorded filenames are relative to `in_dir`, so doing a standard zip unpack of the resulting `zip_fname` in an empty directory will result in th...
def dir2zip(in_dir: str, zip_fname: str, date_time: Optional[datetime] = None) -> None: """Make a zip file `zip_fname` with contents of directory `in_dir` The recorded filenames are relative to `in_dir`, so doing a standard zip unpack of the resulting `zip_fname` in an empty directory will result in th...
tests/unit/test_tools.py
[ "tests/unit/test_tools.py::test_dir2zip_deflate" ]
2022-01-08
2022-01-03
MIT
LICENSE
4323aeca3bf83b53f830ed760df9d661843f1bd3
68aad23937225a629d70cb4b3e224abd07f16f44
https://github.com/pypa/auditwheel/commit/4323aeca3bf83b53f830ed760df9d661843f1bd3
https://github.com/pypa/auditwheel
auditwheel.tools
[ "dir2zip" ]
14
1
882df5f8f442e6a2
pypa/auditwheel@4323aeca3#dir2zip
python
2026-08-18
goldset/0.1
1
Textualize/rich
escape
fix at escape
function
docstring
Escapes text so that it won't be interpreted as markup. Args: markup (str): Content to be inserted in to markup. Returns: str: Markup with square brackets escaped.
def escape( markup: str, _escape: _EscapeSubMethod = re.compile(r"(\\*)(\[[a-z#\/].*?\])").sub ) -> str: """Escapes text so that it won't be interpreted as markup. Args: markup (str): Content to be inserted in to markup. Returns: str: Markup with square brackets escaped. """ d...
def escape( markup: str, _escape: _EscapeSubMethod = re.compile(r"(\\*)(\[[a-z#\/@].*?\])").sub ) -> str: """Escapes text so that it won't be interpreted as markup. Args: markup (str): Content to be inserted in to markup. Returns: str: Markup with square brackets escaped. """ ...
tests/test_markup.py
[ "tests/test_markup.py::test_escape" ]
2022-01-02
2022-01-02
MIT
LICENSE
4b1293e00dc49513b8678be8d0ba51b50c5e0453
1d5152ef52438f77db1d543beb03e972aa465962
https://github.com/Textualize/rich/commit/4b1293e00dc49513b8678be8d0ba51b50c5e0453
https://github.com/Textualize/rich
rich.markup
[ "escape" ]
2
1
af19d277f0c27ed1
Textualize/rich@4b1293e00#escape
python
2026-08-17
goldset/0.1
1
mar10/nutree
Fix set_data() for clones
file
commit
Fix set_data() for clones
# -*- coding: utf-8 -*- # (c) 2021-2022 Martin Wendt and contributors; see https://github.com/mar10/nutree # Licensed under the MIT license: https://www.opensource.org/licenses/mit-license.php """ Stress-test your web app. """ import re from enum import Enum from typing import TYPE_CHECKING, Any, Dict, Generator, List,...
# -*- coding: utf-8 -*- # (c) 2021-2022 Martin Wendt and contributors; see https://github.com/mar10/nutree # Licensed under the MIT license: https://www.opensource.org/licenses/mit-license.php """ Stress-test your web app. """ import re from enum import Enum from typing import TYPE_CHECKING, Any, Dict, Generator, List,...
tests/test_core.py
[ "tests/test_core.py::TestNavigate::test_data_id" ]
2021-12-31
2021-12-31
MIT
LICENSE.txt
c1a691ae8e4c32fe6be1e77eddbf90bba34b2c65
1240de0a84d63490d3430963ed4b212ee22ad28e
https://github.com/mar10/nutree/commit/c1a691ae8e4c32fe6be1e77eddbf90bba34b2c65
https://github.com/mar10/nutree
nutree.node
[ "Node" ]
8
1
99973bbf36652306
mar10/nutree@c1a691ae8#nutree/node.py
python
2026-08-18
goldset/0.1
1
pycqa/flake8
fix AttributeError when catatstrophic failure is triggered
file
commit
fix AttributeError when catatstrophic failure is triggered
"""Module containing the application logic for Flake8.""" import argparse import configparser import json import logging import sys import time from typing import Dict from typing import List from typing import Optional from typing import Sequence from typing import Set from typing import Tuple from typing import Type ...
"""Module containing the application logic for Flake8.""" import argparse import configparser import json import logging import sys import time from typing import Dict from typing import List from typing import Optional from typing import Sequence from typing import Set from typing import Tuple from typing import Type ...
tests/integration/test_main.py
[ "tests/integration/test_main.py::test_early_keyboard_interrupt_does_not_crash" ]
2021-12-24
2021-12-20
MIT
LICENSE
a7be5e798b06ef24d4c61f57a4ba65437576911e
f7a86ca04b57b8a3bb71549d41ffc560ad5ce482
https://github.com/pycqa/flake8/commit/a7be5e798b06ef24d4c61f57a4ba65437576911e
https://github.com/pycqa/flake8
flake8.main.application
[ "Application" ]
14
1
98301b27700df92e
pycqa/flake8@a7be5e798#src/flake8/main/application.py
python
2026-08-18
goldset/0.1
1
fastavro/fastavro
fix issue with json decoding of complex types within maps
file
commit
fix issue with json decoding of complex types within maps
import json from .parser import Parser from .symbols import ( RecordStart, FieldStart, Boolean, Int, Null, String, Long, Float, Double, Bytes, FieldEnd, RecordEnd, Union, UnionEnd, MapStart, MapEnd, MapKeyMarker, Fixed, ArrayStart, ArrayEn...
import json from .parser import Parser from .symbols import ( RecordStart, FieldStart, Boolean, Int, Null, String, Long, Float, Double, Bytes, FieldEnd, RecordEnd, Union, UnionEnd, MapStart, MapEnd, MapKeyMarker, Fixed, ArrayStart, ArrayEn...
tests/test_json.py
[ "tests/test_json.py::test_map_of_union_of_array_and_map" ]
2021-12-22
2021-12-22
MIT
LICENSE
02feaa1c94ec58860e6b9abb32105e2bf7125bb1
f320e5a1560427e61d404797a170cd9296749c68
https://github.com/fastavro/fastavro/commit/02feaa1c94ec58860e6b9abb32105e2bf7125bb1
https://github.com/fastavro/fastavro
fastavro.io.json_decoder
[ "AvroJSONDecoder" ]
3
1
4ff8a51f86d93853
fastavro/fastavro@02feaa1c9#fastavro/io/json_decoder.py
python
2026-08-18
goldset/0.1
1
David-Wobrock/sqlvalidator
Fix #29 -- Handle strings containing others quotes
file
commit
Fix #29 -- Handle strings containing others quotes
from typing import Optional STRING_SPLIT_TOKENS = ("'", '"', "`") WHITESPACE_SPLIT_TOKENS = (" ", "\n") KEPT_SPLIT_TOKENS = ( ",", ";", "(", ")", "[", "]", "+", "-", "*", "/", "=", "<", ">", ".", ) MERGE_TOKENS = ("<>", "<=", ">=", "<<", ">>", "||", "!=") def l...
from typing import Optional STRING_SPLIT_TOKENS = ("'", '"', "`") WHITESPACE_SPLIT_TOKENS = (" ", "\n") KEPT_SPLIT_TOKENS = ( ",", ";", "(", ")", "[", "]", "+", "-", "*", "/", "=", "<", ">", ".", ) MERGE_TOKENS = ("<>", "<=", ">=", "<<", ">>", "||", "!=") def l...
tests/integration/test_formatting.py
[ "tests/integration/test_formatting.py::test_string_containing_quote" ]
2021-12-22
2021-12-22
MIT
LICENSE
577459789a6967bd50bac53da9a460318db07178
870a71a7201f39080f0892d3a2c631d4b3122f38
https://github.com/David-Wobrock/sqlvalidator/commit/577459789a6967bd50bac53da9a460318db07178
https://github.com/David-Wobrock/sqlvalidator
sqlvalidator.grammar.tokeniser
[ "split_tokens" ]
5
1
a4e0e54c557f1421
David-Wobrock/sqlvalidator@577459789#sqlvalidator/grammar/tokeniser.py
python
2026-08-18
goldset/0.1
1
David-Wobrock/sqlvalidator
Fix #35 -- Handle index based access on function call
file
commit
Fix #35 -- Handle index based access on function call
from typing import Any, Optional, Tuple from sqlvalidator.grammar.sql import ( Alias, AnalyticsClause, ArithmaticOperator, Array, ArrayAggFunctionCall, BitwiseOperation, Boolean, BooleanCondition, Case, CastFunctionCall, ChainedColumns, Column, CombinedQueries, C...
from typing import Any, Optional, Tuple from sqlvalidator.grammar.sql import ( Alias, AnalyticsClause, ArithmaticOperator, Array, ArrayAggFunctionCall, BitwiseOperation, Boolean, BooleanCondition, Case, CastFunctionCall, ChainedColumns, Column, CombinedQueries, C...
tests/integration/test_formatting.py
[ "tests/integration/test_formatting.py::test_function_with_index_access" ]
2021-12-22
2021-12-22
MIT
LICENSE
8fcc1dfc82b98bdfb82aebed2d2daba5a0218544
d7e8b6c460e69b77c0ee097613b93e6444f5c0b6
https://github.com/David-Wobrock/sqlvalidator/commit/8fcc1dfc82b98bdfb82aebed2d2daba5a0218544
https://github.com/David-Wobrock/sqlvalidator
sqlvalidator.grammar.lexer
[ "ExpressionParser" ]
8
1
7dd9122c05e344ac
David-Wobrock/sqlvalidator@8fcc1dfc8#sqlvalidator/grammar/lexer.py
python
2026-08-18
goldset/0.1
1
David-Wobrock/sqlvalidator
Fix #34 -- Handle parsing a function with a single comma string
file
commit
Fix #34 -- Handle parsing a function with a single comma string
from typing import Any, Optional, Tuple from sqlvalidator.grammar.sql import ( Alias, AnalyticsClause, ArithmaticOperator, Array, ArrayAggFunctionCall, BitwiseOperation, Boolean, BooleanCondition, Case, CastFunctionCall, ChainedColumns, Column, CombinedQueries, C...
from typing import Any, Optional, Tuple from sqlvalidator.grammar.sql import ( Alias, AnalyticsClause, ArithmaticOperator, Array, ArrayAggFunctionCall, BitwiseOperation, Boolean, BooleanCondition, Case, CastFunctionCall, ChainedColumns, Column, CombinedQueries, C...
tests/unit/test_lexer.py
[ "tests/unit/test_lexer.py::test_function_with_single_comma_string_param" ]
2021-12-22
2021-11-15
MIT
LICENSE
d7e8b6c460e69b77c0ee097613b93e6444f5c0b6
c8c95c0debdc7aedc10702f88c4a9c21319082c8
https://github.com/David-Wobrock/sqlvalidator/commit/d7e8b6c460e69b77c0ee097613b93e6444f5c0b6
https://github.com/David-Wobrock/sqlvalidator
sqlvalidator.grammar.lexer
[ "ExpressionListParser" ]
4
1
e7a90c50bbbf8905
David-Wobrock/sqlvalidator@d7e8b6c46#sqlvalidator/grammar/lexer.py
python
2026-08-18
goldset/0.1
1
tkem/cachetools
TTLCache
Fix #221: Change exact time of expiration in TTLCache.
function
docstring
LRU Cache implementation with per-item time-to-live (TTL) value.
class TTLCache(Cache): """LRU Cache implementation with per-item time-to-live (TTL) value.""" def __init__(self, maxsize, ttl, timer=time.monotonic, getsizeof=None): Cache.__init__(self, maxsize, getsizeof) self.__root = root = _Link() root.prev = root.next = root self.__links =...
class TTLCache(Cache): """LRU Cache implementation with per-item time-to-live (TTL) value.""" def __init__(self, maxsize, ttl, timer=time.monotonic, getsizeof=None): Cache.__init__(self, maxsize, getsizeof) self.__root = root = _Link() root.prev = root.next = root self.__links =...
tests/test_ttl.py
[ "tests/test_ttl.py::TTLCacheTest::test_ttl" ]
2021-12-18
2021-12-18
MIT
LICENSE
91aa4c63f5716d8717ee2f898a01f40ce26986ae
4d11ef92d57e9d838e9160cb5c023baff099c60a
https://github.com/tkem/cachetools/commit/91aa4c63f5716d8717ee2f898a01f40ce26986ae
https://github.com/tkem/cachetools
cachetools.__init__
[ "TTLCache" ]
12
1
769efe841cd73a9f
tkem/cachetools@91aa4c63f#TTLCache
python
2026-08-17
goldset/0.1
1
joke2k/django-environ
fix unquote vs unquote_plus issue
file
commit
fix unquote vs unquote_plus issue
# This file is part of the django-environ. # # Copyright (c) 2021, Serghei Iakovlev <egrep@protonmail.ch> # Copyright (c) 2013-2021, Daniele Faraglia <daniele.faraglia@gmail.com> # # For the full copyright and license information, please view # the LICENSE.txt file that was distributed with this source code. """ Djang...
# This file is part of the django-environ. # # Copyright (c) 2021, Serghei Iakovlev <egrep@protonmail.ch> # Copyright (c) 2013-2021, Daniele Faraglia <daniele.faraglia@gmail.com> # # For the full copyright and license information, please view # the LICENSE.txt file that was distributed with this source code. """ Djang...
tests/test_utils.py
[ "tests/test_utils.py::test_cast_urlstr[Le-%7BFsIaYnaQw%7Da2B%2F%5BV8bS+-Le-{FsIaYnaQw}a2B/[V8bS+]" ]
2021-12-13
2021-11-21
MIT
LICENSE.txt
41f9e736f4d5ae6f244692234f488d8e4c138215
509cf7737363a56e4464962dbae4ab72b801c7b3
https://github.com/joke2k/django-environ/commit/41f9e736f4d5ae6f244692234f488d8e4c138215
https://github.com/joke2k/django-environ
environ.environ
[ "_cast_urlstr" ]
3
1
1c2eb16c7ecc95df
joke2k/django-environ@41f9e736f#environ/environ.py
python
2026-08-18
goldset/0.1
1
cdrx/faktory_python_worker
Ensure all data is sent and raise an error when connection is reset
file
commit
Ensure all data is sent and raise an error when connection is reset
import hashlib import json import logging import os import os.path import select import socket import ssl from typing import Any, Dict, Iterable, Iterator, List, Optional from urllib.parse import urlparse from .exceptions import ( FaktoryAuthenticationError, FaktoryConnectionResetError, FaktoryHandshakeErr...
import hashlib import json import logging import os import os.path import select import socket import ssl from typing import Any, Dict, Iterable, Iterator, List, Optional from urllib.parse import urlparse from .exceptions import ( FaktoryAuthenticationError, FaktoryConnectionResetError, FaktoryHandshakeErr...
tests/test_proto.py
[ "tests/test_proto.py::TestConnectionReply::test_send_zero_raises_error[None]", "tests/test_proto.py::TestConnectionReply::test_send_zero_raises_error[data2]", "tests/test_proto.py::TestConnectionReply::test_send_zero_raises_error[string", "tests/test_proto.py::TestConnectionReply::test_sends_until_out_of_data...
2021-12-10
2021-03-23
BSD-3-Clause
LICENSE
d1dc6cceae79e70bd5734bc25c8306584009a1c2
f6ca4c65d3cbe5c79fa521b9d01f1d73f909e502
https://github.com/cdrx/faktory_python_worker/commit/d1dc6cceae79e70bd5734bc25c8306584009a1c2
https://github.com/cdrx/faktory_python_worker
faktory._proto
[ "Connection" ]
7
6
0dab870e1b1b7876
cdrx/faktory_python_worker@d1dc6ccea#faktory/_proto.py
python
2026-08-18
goldset/0.1
1
joke2k/django-environ
fix[db_url_config]: added postgres cluster DSN support (ie postgresql://username:password@host1:port1,host2:port2/database)
file
commit
fix[db_url_config]: added postgres cluster DSN support (ie postgresql://username:password@host1:port1,host2:port2/database)
# This file is part of the django-environ. # # Copyright (c) 2021, Serghei Iakovlev <egrep@protonmail.ch> # Copyright (c) 2013-2021, Daniele Faraglia <daniele.faraglia@gmail.com> # # For the full copyright and license information, please view # the LICENSE.txt file that was distributed with this source code. """ Djang...
# This file is part of the django-environ. # # Copyright (c) 2021, Serghei Iakovlev <egrep@protonmail.ch> # Copyright (c) 2013-2021, Daniele Faraglia <daniele.faraglia@gmail.com> # # For the full copyright and license information, please view # the LICENSE.txt file that was distributed with this source code. """ Djang...
tests/test_db.py
[ "tests/test_db.py::test_db_parsing[postgres_cluster]" ]
2021-12-09
2021-11-21
MIT
LICENSE.txt
0ca26c55c551c741fc7e327ab984a7b6bcb58809
509cf7737363a56e4464962dbae4ab72b801c7b3
https://github.com/joke2k/django-environ/commit/0ca26c55c551c741fc7e327ab984a7b6bcb58809
https://github.com/joke2k/django-environ
environ.environ
[ "Env" ]
21
1
9e84dd77fdeb0d78
joke2k/django-environ@0ca26c55c#environ/environ.py
python
2026-08-18
goldset/0.1
1
Knio/pynmea2
dm_to_sd
Fix error message for bad data in LatLonFix
function
docstring
Converts a geographic co-ordinate given in "degrees/minutes" dddmm.mmmm format (eg, "12319.943281" = 123 degrees, 19.943281 minutes) to a signed decimal (python float) format
def dm_to_sd(dm): ''' Converts a geographic co-ordinate given in "degrees/minutes" dddmm.mmmm format (eg, "12319.943281" = 123 degrees, 19.943281 minutes) to a signed decimal (python float) format ''' # '12319.943281' if not dm or dm == '0': return 0. d, m = re.match(r'^(\d+)(\d\...
def dm_to_sd(dm): ''' Converts a geographic co-ordinate given in "degrees/minutes" dddmm.mmmm format (eg, "12319.943281" = 123 degrees, 19.943281 minutes) to a signed decimal (python float) format ''' # '12319.943281' if not dm or dm == '0': return 0. r = re.match(r'^(\d+)(\d\d\....
test/test_utils.py
[ "test/test_utils.py::test_latlon" ]
2021-12-07
2021-05-21
MIT
LICENSE
a0d60b62ab2242af7b3a64c415947eb52a3638a5
8bad8a676d947c66b5f0539385cd6a2a0a7a9d5b
https://github.com/Knio/pynmea2/commit/a0d60b62ab2242af7b3a64c415947eb52a3638a5
https://github.com/Knio/pynmea2
pynmea2.nmea_utils
[ "dm_to_sd" ]
5
1
2751676917d3c1a6
Knio/pynmea2@a0d60b62a#dm_to_sd
python
2026-08-18
goldset/0.1
1
klen/pylama
Fix `RunContext.get_params` for `ignore` and `select` linter params
file
commit
Fix `RunContext.get_params` for `ignore` and `select` linter params
"""Manage resources.""" import ast import os.path as op import re from argparse import Namespace from functools import lru_cache from os import remove from tempfile import NamedTemporaryFile from typing import Dict, List, Set from pylama.errors import Error from pylama.utils import read # Parse modeline MODELINE_RE ...
"""Manage resources.""" import ast import os.path as op import re from argparse import Namespace from functools import lru_cache from os import remove from tempfile import NamedTemporaryFile from typing import Dict, List, Set from pylama.errors import Error from pylama.utils import read # Parse modeline MODELINE_RE ...
tests/test_context.py
[ "tests/test_context.py::test_get_params_doesnt_fail_on_subsequent_invocation" ]
2021-12-07
2021-12-03
MIT
LICENSE
1cb3c0c7840ad4aa6fa0d8092e72ee0ef6c5f04a
ead7fafacf51800af4ffca9af48df0f3d4317e23
https://github.com/klen/pylama/commit/1cb3c0c7840ad4aa6fa0d8092e72ee0ef6c5f04a
https://github.com/klen/pylama
pylama.context
[ "RunContext" ]
2
1
b2328a88175417aa
klen/pylama@1cb3c0c78#pylama/context.py
python
2026-08-18
goldset/0.1
1
wbond/asn1crypto
Fix Clearance type definition
file
commit
Fix Clearance type definition
# coding: utf-8 """ ASN.1 type classes for cryptographic message syntax (CMS). Structures are also compatible with PKCS#7. Exports the following items: - AuthenticatedData() - AuthEnvelopedData() - CompressedData() - ContentInfo() - DigestedData() - EncryptedData() - EnvelopedData() - SignedAndEnvelopedData()...
# coding: utf-8 """ ASN.1 type classes for cryptographic message syntax (CMS). Structures are also compatible with PKCS#7. Exports the following items: - AuthenticatedData() - AuthEnvelopedData() - CompressedData() - ContentInfo() - DigestedData() - EncryptedData() - EnvelopedData() - SignedAndEnvelopedData()...
tests/test_cms.py
[ "tests/test_cms.py::ClearanceTests::test_clearance_decode_bad_tagging" ]
2021-12-05
2021-10-15
MIT
LICENSE
a16a146a19a7543a997cd6edbf33ca7088b5417d
9ae350f212532dfee7f185f6b3eda24753249cf3
https://github.com/wbond/asn1crypto/commit/a16a146a19a7543a997cd6edbf33ca7088b5417d
https://github.com/wbond/asn1crypto
asn1crypto.cms
[ "Clearance" ]
6
1
cbb3f98865790214
wbond/asn1crypto@a16a146a1#asn1crypto/cms.py
python
2026-08-18
goldset/0.1
1
Flagsmith/flagsmith-engine
DecimalEncoder
Fix json decimal encoder (#54)
function
docstring
Convert decimal to int/float because decimals are nothing but int/float(for us) converted to decimal by boto3/dynamodb.
class DecimalEncoder(json.JSONEncoder): """ Convert decimal to int/float because decimals are nothing but int/float(for us) converted to decimal by boto3/dynamodb. """ def default(self, obj): if isinstance(obj, decimal.Decimal): if obj % 1 == 1: return int(obj) ...
class DecimalEncoder(json.JSONEncoder): """ Convert decimal to int/float because decimals are nothing but int/float(for us) converted to decimal by boto3/dynamodb. """ def default(self, obj): if isinstance(obj, decimal.Decimal): if obj % 1 == 0: return int(obj) ...
tests/unit/utils/json/test_encoders.py
[ "tests/unit/utils/json/test_encoders.py::test_decimal_encoder_converts_decimal" ]
2021-12-01
2021-11-30
BSD-3-Clause
LICENSE.txt
43a06d3f4b4d349f734fd8d0ef57d2c29173608d
8710c94f21bf5b264c7024e89109f96cae744e92
https://github.com/Flagsmith/flagsmith-engine/commit/43a06d3f4b4d349f734fd8d0ef57d2c29173608d
https://github.com/Flagsmith/flagsmith-engine
flag_engine.utils.json.encoders
[ "DecimalEncoder" ]
2
1
a900de2ef15933fc
Flagsmith/flagsmith-engine@43a06d3f4#DecimalEncoder
python
2026-08-18
goldset/0.1
1
wbond/asn1crypto
Fix tagging for RoleSyntax and SecurityCategory
file
commit
Fix tagging for RoleSyntax and SecurityCategory
# coding: utf-8 """ ASN.1 type classes for cryptographic message syntax (CMS). Structures are also compatible with PKCS#7. Exports the following items: - AuthenticatedData() - AuthEnvelopedData() - CompressedData() - ContentInfo() - DigestedData() - EncryptedData() - EnvelopedData() - SignedAndEnvelopedData()...
# coding: utf-8 """ ASN.1 type classes for cryptographic message syntax (CMS). Structures are also compatible with PKCS#7. Exports the following items: - AuthenticatedData() - AuthEnvelopedData() - CompressedData() - ContentInfo() - DigestedData() - EncryptedData() - EnvelopedData() - SignedAndEnvelopedData()...
tests/test_cms.py
[ "tests/test_cms.py::CMSTests::test_create_role_syntax" ]
2021-11-21
2021-10-15
MIT
LICENSE
0e602d971fdea1e8b1994745ccde3627eae727cf
9ae350f212532dfee7f185f6b3eda24753249cf3
https://github.com/wbond/asn1crypto/commit/0e602d971fdea1e8b1994745ccde3627eae727cf
https://github.com/wbond/asn1crypto
asn1crypto.cms
[ "RoleSyntax", "SecurityCategory" ]
4
1
77ccbcd71d4421b7
wbond/asn1crypto@0e602d971#asn1crypto/cms.py
python
2026-08-18
goldset/0.1
1
David-Wobrock/sqlvalidator
Fix validating between predicate conditions
file
commit
Fix validating between predicate conditions
from dataclasses import dataclass from typing import Any, List, Optional, Set from sqlvalidator.grammar.tokeniser import lower DEFAULT_LINE_LENGTH = 88 def transform(obj: Any) -> str: if hasattr(obj, "transform"): return obj.transform() return str(obj) @dataclass class _FieldInfo: name: str ...
from dataclasses import dataclass from typing import Any, List, Optional, Set from sqlvalidator.grammar.tokeniser import lower DEFAULT_LINE_LENGTH = 88 def transform(obj: Any) -> str: if hasattr(obj, "transform"): return obj.transform() return str(obj) @dataclass class _FieldInfo: name: str ...
tests/integration/test_validation.py
[ "tests/integration/test_validation.py::test_between_condition_is_valid" ]
2021-11-15
2021-11-15
MIT
LICENSE
a3bf4fcc6f178bb85375f7034a379dd1f4a49afa
362ec80af081a4fe9710832060e8f2f89d545cd2
https://github.com/David-Wobrock/sqlvalidator/commit/a3bf4fcc6f178bb85375f7034a379dd1f4a49afa
https://github.com/David-Wobrock/sqlvalidator
sqlvalidator.grammar.sql
[ "BooleanCondition", "Condition" ]
20
1
73c5e56ffa60f291
David-Wobrock/sqlvalidator@a3bf4fcc6#sqlvalidator/grammar/sql.py
python
2026-08-18
goldset/0.1
1
David-Wobrock/sqlvalidator
Fix handling Any return type as invalid WHERE/HAVING condition
file
commit
Fix handling Any return type as invalid WHERE/HAVING condition
from typing import Any, List, Optional, Set from sqlvalidator.grammar.tokeniser import lower DEFAULT_LINE_LENGTH = 88 def transform(obj: Any) -> str: if hasattr(obj, "transform"): return obj.transform() return str(obj) class SelectStatement: def __init__( self, expressions, ...
from typing import Any, List, Optional, Set from sqlvalidator.grammar.tokeniser import lower DEFAULT_LINE_LENGTH = 88 def transform(obj: Any) -> str: if hasattr(obj, "transform"): return obj.transform() return str(obj) class SelectStatement: def __init__( self, expressions, ...
tests/integration/test_validation.py
[ "tests/integration/test_validation.py::test_subquery_field_is_boolean_and_can_where", "tests/integration/test_validation.py::test_unknown_type_subquery_field_and_allow_where" ]
2021-11-15
2021-11-14
MIT
LICENSE
3e7b2f87b4f9984240b8e338803b15b2f2ddc3f1
00eab4924c698269ac162db216753350c766d2d2
https://github.com/David-Wobrock/sqlvalidator/commit/3e7b2f87b4f9984240b8e338803b15b2f2ddc3f1
https://github.com/David-Wobrock/sqlvalidator
sqlvalidator.grammar.sql
[ "BooleanCondition", "ChainedColumns", "HavingClause", "WhereClause" ]
10
2
f65ca72b9ad58deb
David-Wobrock/sqlvalidator@3e7b2f87b#sqlvalidator/grammar/sql.py
python
2026-08-18
goldset/0.1
1
David-Wobrock/sqlvalidator
Fix Alias.known_fields for aliased subqueries with specific fields
file
commit
Fix Alias.known_fields for aliased subqueries with specific fields
from typing import Any, List, Optional, Set from sqlvalidator.grammar.tokeniser import lower DEFAULT_LINE_LENGTH = 88 def transform(obj: Any) -> str: if hasattr(obj, "transform"): return obj.transform() return str(obj) class SelectStatement: def __init__( self, expressions, ...
from typing import Any, List, Optional, Set from sqlvalidator.grammar.tokeniser import lower DEFAULT_LINE_LENGTH = 88 def transform(obj: Any) -> str: if hasattr(obj, "transform"): return obj.transform() return str(obj) class SelectStatement: def __init__( self, expressions, ...
tests/integration/test_validation.py
[ "tests/integration/test_validation.py::test_specified_field_from_alias_subquery" ]
2021-11-14
2021-11-14
MIT
LICENSE
00eab4924c698269ac162db216753350c766d2d2
67334fc9dcc4b7fb166433e0789e6b06ab36d8ef
https://github.com/David-Wobrock/sqlvalidator/commit/00eab4924c698269ac162db216753350c766d2d2
https://github.com/David-Wobrock/sqlvalidator
sqlvalidator.grammar.sql
[ "Alias" ]
5
1
9cef8029aa365355
David-Wobrock/sqlvalidator@00eab4924#sqlvalidator/grammar/sql.py
python
2026-08-18
goldset/0.1
1
David-Wobrock/sqlvalidator
Don't fail on Windows Function with Order By clause
file
commit
Don't fail on Windows Function with Order By clause
from typing import Any, List, Optional, Set from sqlvalidator.grammar.tokeniser import lower DEFAULT_LINE_LENGTH = 88 def transform(obj: Any) -> str: if hasattr(obj, "transform"): return obj.transform() return str(obj) class SelectStatement: def __init__( self, expressions, ...
from typing import Any, List, Optional, Set from sqlvalidator.grammar.tokeniser import lower DEFAULT_LINE_LENGTH = 88 def transform(obj: Any) -> str: if hasattr(obj, "transform"): return obj.transform() return str(obj) class SelectStatement: def __init__( self, expressions, ...
tests/integration/test_validation.py
[ "tests/integration/test_validation.py::test_partition_by_with_order_by" ]
2021-11-14
2021-11-14
MIT
LICENSE
acb966b77b053940635153d59ad67a381e6aa48f
38b24cb4c4a427a9f666e343faa015499cb3cc2d
https://github.com/David-Wobrock/sqlvalidator/commit/acb966b77b053940635153d59ad67a381e6aa48f
https://github.com/David-Wobrock/sqlvalidator
sqlvalidator.grammar.sql
[ "AnalyticsClause" ]
2
1
e66173aea6934143
David-Wobrock/sqlvalidator@acb966b77#sqlvalidator/grammar/sql.py
python
2026-08-18
goldset/0.1
1
sanic-org/sanic-routing
Fix routing with multiple routes contain 'path' params (#49)
file
commit
Fix routing with multiple routes contain 'path' params (#49)
import ast import sys import typing as t from abc import ABC, abstractmethod from re import Pattern from types import SimpleNamespace from warnings import warn from sanic_routing.group import RouteGroup from .exceptions import ( BadMethod, FinalizationError, InvalidUsage, NoMethod, NotFound, ) fro...
import ast import sys import typing as t from abc import ABC, abstractmethod from re import Pattern from types import SimpleNamespace from warnings import warn from sanic_routing.group import RouteGroup from .exceptions import ( BadMethod, FinalizationError, InvalidUsage, NoMethod, NotFound, ) fro...
tests/test_routing.py
[ "tests/test_routing.py::test_identical_path_routes_with_different_methods_similar_urls[a-random-path]" ]
2021-11-04
2021-07-01
MIT
LICENSE
4df3d82b4bce278cbef8e7a9fe8230b1194a7c5a
0c6c860ef8507f77eba7d039fbc713ab2a7f0e56
https://github.com/sanic-org/sanic-routing/commit/4df3d82b4bce278cbef8e7a9fe8230b1194a7c5a
https://github.com/sanic-org/sanic-routing
sanic_routing.router
[ "BaseRouter" ]
4
1
e21d218202558db5
sanic-org/sanic-routing@4df3d82b4#sanic_routing/router.py
python
2026-08-18
goldset/0.1
1