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
kayak/pypika
Fix is_aggregate property for Case fields.
file
commit
Fix is_aggregate property for Case fields.
import inspect import re from datetime import date from enum import Enum from typing import ( Iterable, Union, Iterator, Type, List, Optional, Set, TYPE_CHECKING, TypeVar, Any, Sequence, ) from pypika.enums import ( Arithmetic, Boolean, Dialects, Equality, ...
import inspect import re from datetime import date from enum import Enum from typing import ( Iterable, Union, Iterator, Type, List, Optional, Set, TYPE_CHECKING, TypeVar, Any, Sequence, ) from pypika.enums import ( Arithmetic, Boolean, Dialects, Equality, ...
pypika/tests/test_aggregate.py
[ "pypika/tests/test_aggregate.py::IsAggregateTests::test__agg_case_criterion_is_aggregate" ]
2020-06-16
2020-05-26
Apache-2.0
LICENSE.txt
e805d9e05c2217b29e6b565e1d0833901fde7800
cb28b93e9c1159e490c3559e8467c7cfebb0ec5a
https://github.com/kayak/pypika/commit/e805d9e05c2217b29e6b565e1d0833901fde7800
https://github.com/kayak/pypika
pypika.terms
[ "Case" ]
4
1
014a3cc88bb5c44a
kayak/pypika@e805d9e05#pypika/terms.py
python
2026-08-18
goldset/0.1
1
meadsteve/lagom
CachingReflector
fix bug that meant forward refs weren't handled correctly
function
docstring
Takes a function and returns an object representing the function's type signature. Results are cached so subsequent calls do not need to call the reflection API.
class CachingReflector: """ Takes a function and returns an object representing the function's type signature. Results are cached so subsequent calls do not need to call the reflection API. """ _reflection_cache: Dict[Callable, FunctionSpec] def __init__(self): self._reflection...
class CachingReflector: """ Takes a function and returns an object representing the function's type signature. Results are cached so subsequent calls do not need to call the reflection API. """ _reflection_cache: Dict[Callable, FunctionSpec] def __init__(self): self._reflection...
tests/test_objects.py
[ "tests/test_objects.py::test_forward_refs_are_fine" ]
2020-06-13
2020-06-13
MIT
LICENSE
05a73109b4fe7b80c8cf2eee552a78f7535a56cc
5edd1e1f254bf68a4a0ce149a0fbffa964087906
https://github.com/meadsteve/lagom/commit/05a73109b4fe7b80c8cf2eee552a78f7535a56cc
https://github.com/meadsteve/lagom
lagom.util.reflection
[ "CachingReflector" ]
7
1
b7a01779352c22ea
meadsteve/lagom@05a73109b#CachingReflector
python
2026-08-18
goldset/0.1
1
meadsteve/lagom
Fix bug where typed self caused loading issues
file
commit
Fix bug where typed self caused loading issues
import functools from copy import copy from typing import Dict, Type, Any, TypeVar, Callable, Set, List, Optional from .interfaces import SpecialDepDefinition, ReadableContainer, TypeResolver from .exceptions import ( UnresolvableType, DuplicateDefinition, InvalidDependencyDefinition, ) from .definitions i...
import functools from copy import copy from typing import Dict, Type, Any, TypeVar, Callable, Set, List, Optional from .interfaces import SpecialDepDefinition, ReadableContainer, TypeResolver from .exceptions import ( UnresolvableType, DuplicateDefinition, InvalidDependencyDefinition, ) from .definitions i...
tests/test_objects.py
[ "tests/test_objects.py::test_explicitly_typing_self_doesnt_cause_problems" ]
2020-06-13
2020-06-13
MIT
LICENSE
d50fabea6f69863800b59fe730bd408432587851
0bf84398d8c34c2453326a5026b022be54ae807a
https://github.com/meadsteve/lagom/commit/d50fabea6f69863800b59fe730bd408432587851
https://github.com/meadsteve/lagom
lagom.container
[ "Container" ]
8
1
f57d380b477f7d41
meadsteve/lagom@d50fabea6#lagom/container.py
python
2026-08-18
goldset/0.1
1
David-Wobrock/sqlvalidator
Fix some newline problems
file
commit
Fix some newline problems
def get_tokens_until_closing_parenthesis(tokens): argument_tokens = [] next_token = next(tokens, None) count_parenthesis = 0 while next_token is not None and not (next_token == ")" and count_parenthesis == 0): argument_tokens.append(next_token) if next_token == "(": count_par...
def get_tokens_until_closing_parenthesis(tokens): argument_tokens = [] next_token = next(tokens, None) count_parenthesis = 0 while next_token is not None and not (next_token == ")" and count_parenthesis == 0): argument_tokens.append(next_token) if next_token == "(": count_par...
tests/integration/test_file_formatting.py
[ "tests/integration/test_file_formatting.py::test_format_file_multiline_sql" ]
2020-05-29
2020-05-29
MIT
LICENSE
5547463504e34cf9f3315539d965a5871eaf9671
e48827a3682ce9c82c75f967df207939c8c8ce31
https://github.com/David-Wobrock/sqlvalidator/commit/5547463504e34cf9f3315539d965a5871eaf9671
https://github.com/David-Wobrock/sqlvalidator
sqlvalidator.grammar.tokeniser
[ "to_tokens" ]
25
1
c53da84f3bc20211
David-Wobrock/sqlvalidator@554746350#sqlvalidator/grammar/tokeniser.py
python
2026-08-18
goldset/0.1
1
cool-RR/PySnooper
OutputCapturer
Fix bug in OutputCapturer
function
docstring
Context manager for catching all system output generated during suite. Example: with OutputCapturer() as output_capturer: print('woo!') assert output_capturer.output == 'woo! ' The boolean arguments `stdout` and `stderr` determine, respectively, whether the standard-output an...
class OutputCapturer(object): ''' Context manager for catching all system output generated during suite. Example: with OutputCapturer() as output_capturer: print('woo!') assert output_capturer.output == 'woo!\n' The boolean arguments `stdout` and `stderr` determine, respe...
class OutputCapturer(object): ''' Context manager for catching all system output generated during suite. Example: with OutputCapturer() as output_capturer: print('woo!') assert output_capturer.output == 'woo!\n' The boolean arguments `stdout` and `stderr` determine, respe...
tests/test_mini_toolbox.py
[ "tests/test_mini_toolbox.py::test_output_capturer_doesnt_swallow_exceptions" ]
2020-05-05
2020-04-21
MIT
LICENSE
a602866ce10d0f45f56d20fc70107faff75965e2
679a77e3363348c9a79e7a311ec149863c8027ef
https://github.com/cool-RR/PySnooper/commit/a602866ce10d0f45f56d20fc70107faff75965e2
https://github.com/cool-RR/PySnooper
tests.mini_toolbox.__init__
[ "OutputCapturer" ]
1
1
d631568655f3764c
cool-RR/PySnooper@a602866ce#OutputCapturer
python
2026-08-17
goldset/0.1
1
kayak/pypika
Fix columns with empty args
file
commit
Fix columns with empty args
from copy import copy from functools import reduce from typing import ( Optional, Any, Union, Type, Sequence, List, Tuple as TypedTuple, ) from pypika.enums import JoinType, UnionType, Dialects from pypika.terms import ( ArithmeticExpression, EmptyCriterion, Field, Function,...
from copy import copy from functools import reduce from typing import ( Optional, Any, Union, Type, Sequence, List, Tuple as TypedTuple, ) from pypika.enums import JoinType, UnionType, Dialects from pypika.terms import ( ArithmeticExpression, EmptyCriterion, Field, Function,...
pypika/tests/test_inserts.py
[ "pypika/tests/test_inserts.py::InsertIntoTests::test_insert_empty_columns" ]
2020-05-05
2020-04-30
Apache-2.0
LICENSE.txt
4c177e8177d24203cf3670351dfdbd4d874a6540
a8348a2c9f55dab9907b667c412611f4777dc1c4
https://github.com/kayak/pypika/commit/4c177e8177d24203cf3670351dfdbd4d874a6540
https://github.com/kayak/pypika
pypika.queries
[ "QueryBuilder" ]
2
1
d02e019a87bbb703
kayak/pypika@4c177e817#pypika/queries.py
python
2026-08-18
goldset/0.1
1
kayak/pypika
Fix SQL with join with Extract function
file
commit
Fix SQL with join with Extract function
""" Package for SQL functions wrappers """ from pypika.enums import SqlTypes from pypika.terms import ( AggregateFunction, Function, Star, ) from pypika.utils import builder __author__ = "Timothy Heys" __email__ = "theys@kayak.com" class DistinctOptionFunction(AggregateFunction): def __init__(self, n...
""" Package for SQL functions wrappers """ from pypika.enums import SqlTypes from pypika.terms import ( AggregateFunction, Function, Star, ) from pypika.utils import builder __author__ = "Timothy Heys" __email__ = "theys@kayak.com" class DistinctOptionFunction(AggregateFunction): def __init__(self, n...
pypika/tests/test_functions.py
[ "pypika/tests/test_functions.py::DateFunctionsTests::test_extract_join" ]
2020-05-04
2020-04-30
Apache-2.0
LICENSE.txt
11733069c38dd1a82dfd5e6b6bf2faa9e69327a3
a8348a2c9f55dab9907b667c412611f4777dc1c4
https://github.com/kayak/pypika/commit/11733069c38dd1a82dfd5e6b6bf2faa9e69327a3
https://github.com/kayak/pypika
pypika.functions
[ "Extract" ]
2
1
6fa117f2be1b00aa
kayak/pypika@11733069c#pypika/functions.py
python
2026-08-18
goldset/0.1
1
careless25/text2digits
Fix handling of time formats, add tests (from PR #27)
file
commit
Fix handling of time formats, add tests (from PR #27)
import enum import re from decimal import Decimal class WordType(enum.Enum): OTHER = 0 LITERAL_INT = 1 LITERAL_FLOAT = 2 UNITS = 3 TEENS = 4 TENS = 5 SCALES = 6 CONJUNCTION = 7 REPLACED = 8 class Token(object): # Static init code (only executed once and not for each token ins...
import enum import re from decimal import Decimal class WordType(enum.Enum): OTHER = 0 LITERAL_INT = 1 LITERAL_FLOAT = 2 UNITS = 3 TEENS = 4 TENS = 5 SCALES = 6 CONJUNCTION = 7 REPLACED = 8 class Token(object): # Static init code (only executed once and not for each token ins...
tests/test_number_conversion.py
[ "tests/test_number_conversion.py::test_time_formats[at" ]
2020-04-29
2020-04-27
MIT
LICENSE
0ddb34121fc177645c383b3996a306daee64cf8b
ceba3d954fc923cf7b14906194e232a42eb53636
https://github.com/careless25/text2digits/commit/0ddb34121fc177645c383b3996a306daee64cf8b
https://github.com/careless25/text2digits
text2digits.tokens_basic
[ "Token" ]
4
1
d25e0f42f33a8d25
careless25/text2digits@0ddb34121#text2digits/tokens_basic.py
python
2026-08-18
goldset/0.1
1
amoffat/sh
fg_validator
fixes regression where `_fg` validator fails if `_fg=False`. closes #520
function
docstring
fg is not valid with basically every other option
def fg_validator(passed_kwargs, merged_kwargs): """ fg is not valid with basically every other option """ invalid = [] msg = """\ _fg is invalid with nearly every other option, see warning and workaround here: https://amoffat.github.io/sh/sections/special_arguments.html#fg""" whitelist = set(("env...
def fg_validator(passed_kwargs, merged_kwargs): """ fg is not valid with basically every other option """ invalid = [] msg = """\ _fg is invalid with nearly every other option, see warning and workaround here: https://amoffat.github.io/sh/sections/special_arguments.html#fg""" whitelist = set(("env...
test.py
[ "test.py::FunctionalTests::test_fg_false" ]
2020-04-28
2020-04-27
MIT
LICENSE.txt
e2cb0202ee55930b45ffaa82330f9d9f32b050e4
c62b0335a66059fca9598019643f58a58e3c3e4d
https://github.com/amoffat/sh/commit/e2cb0202ee55930b45ffaa82330f9d9f32b050e4
https://github.com/amoffat/sh
sh
[ "fg_validator" ]
2
1
88b3552c36cd0b67
amoffat/sh@e2cb0202e#fg_validator
python
2026-08-18
goldset/0.1
1
kayak/pypika
Fix tuple table replacement
file
commit
Fix tuple table replacement
import inspect import re from datetime import date from enum import Enum from typing import ( Iterable, Union, Iterator, Type, List, Optional, Set, TYPE_CHECKING, TypeVar, Any, Sequence, ) from pypika.enums import ( Arithmetic, Boolean, Dialects, Equality, ...
import inspect import re from datetime import date from enum import Enum from typing import ( Iterable, Union, Iterator, Type, List, Optional, Set, TYPE_CHECKING, TypeVar, Any, Sequence, ) from pypika.enums import ( Arithmetic, Boolean, Dialects, Equality, ...
pypika/tests/test_query.py
[ "pypika/tests/test_query.py::QueryTablesTests::test_replace_tuple_table" ]
2020-04-24
2020-04-21
Apache-2.0
LICENSE.txt
ceb470f447e217e99eb6788e3556a392c2412457
baef001dd2362661311b6e2f949d2be4de5c23c8
https://github.com/kayak/pypika/commit/ceb470f447e217e99eb6788e3556a392c2412457
https://github.com/kayak/pypika
pypika.terms
[ "Tuple" ]
4
1
cf26f60110093830
kayak/pypika@ceb470f44#pypika/terms.py
python
2026-08-18
goldset/0.1
1
uiri/toml
Raise an exception if EOF is reached and a string is unterminated
file
commit
Raise an exception if EOF is reached and a string is unterminated
import datetime import io from os import linesep import re import sys from toml.tz import TomlTz if sys.version_info < (3,): _range = xrange # noqa: F821 else: unicode = str _range = range basestring = str unichr = chr def _detect_pathlib_path(p): if (3, 4) <= sys.version_info: impo...
import datetime import io from os import linesep import re import sys from toml.tz import TomlTz if sys.version_info < (3,): _range = xrange # noqa: F821 else: unicode = str _range = range basestring = str unichr = chr def _detect_pathlib_path(p): if (3, 4) <= sys.version_info: impo...
tests/test_api.py
[ "tests/test_api.py::test_unterminated_string_eof[opt" ]
2020-04-22
2020-01-03
MIT
LICENSE
543091066156d3f89158444043d708ca790cf917
f4f0b84fd84265b296312153628cd9dbd5961664
https://github.com/uiri/toml/commit/543091066156d3f89158444043d708ca790cf917
https://github.com/uiri/toml
toml.decoder
[ "loads" ]
3
1
6b715c5f7815fbd6
uiri/toml@543091066#toml/decoder.py
python
2026-08-18
goldset/0.1
1
alessandromaggio/pythonping
fix: Create explicit error for dns issue #28
file
commit
fix: Create explicit error for dns issue #28
import socket import select import time class Socket: DONT_FRAGMENT = (socket.SOL_IP, 10, 1) # Option value for raw socket def __init__(self, destination, protocol, source=None, options=(), buffer_size=2048): """Creates a network socket to exchange messages :param destination: Dest...
import socket import select import time class Socket: DONT_FRAGMENT = (socket.SOL_IP, 10, 1) # Option value for raw socket def __init__(self, destination, protocol, source=None, options=(), buffer_size=2048): """Creates a network socket to exchange messages :param destination: Dest...
test/test_network.py
[ "test/test_network.py::UtilsTestCase::test_raise_explicative_error_on_name_resolution_failure" ]
2020-04-03
2020-04-03
MIT
LICENSE
918572d54396ae21484bce444a939f9e0d079438
5418955b0bd82d7e5adbe4b68b56e8578acd41da
https://github.com/alessandromaggio/pythonping/commit/918572d54396ae21484bce444a939f9e0d079438
https://github.com/alessandromaggio/pythonping
pythonping.network
[ "Socket" ]
5
1
86db74ec8473c676
alessandromaggio/pythonping@918572d54#pythonping/network.py
python
2026-08-18
goldset/0.1
1
kayak/pypika
fix nested function as
file
commit
fix nested function as
import inspect import re from datetime import date from enum import Enum from typing import ( Iterable, Union, ) from pypika.enums import ( Arithmetic, Boolean, Dialects, Equality, JSONOperators, Matching, ) from pypika.utils import ( CaseException, FunctionException, builde...
import inspect import re from datetime import date from enum import Enum from typing import ( Iterable, Union, ) from pypika.enums import ( Arithmetic, Boolean, Dialects, Equality, JSONOperators, Matching, ) from pypika.utils import ( CaseException, FunctionException, builde...
pypika/tests/test_selects.py
[ "pypika/tests/test_selects.py::AliasTests::test_function_using_as_nested" ]
2020-04-01
2020-03-31
Apache-2.0
LICENSE.txt
0e8029ac739f5d57a9580575caaa3d79a6b2bb58
cce2435b101870d6b82b2c80bd8a4d96bc6aaf93
https://github.com/kayak/pypika/commit/0e8029ac739f5d57a9580575caaa3d79a6b2bb58
https://github.com/kayak/pypika
pypika.terms
[ "Function" ]
2
1
e52ce3b93deb4376
kayak/pypika@0e8029ac7#pypika/terms.py
python
2026-08-18
goldset/0.1
1
more-itertools/more-itertools
spy
Fix spy to make returned iterable immutable
function
docstring
Return a 2-tuple with a list containing the first *n* elements of *iterable*, and an iterator with the same items as *iterable*. This allows you to "look ahead" at the items in the iterable without advancing it. There is one item in the list by default: You may use unpacking to retrieve items instead of lists: The n...
def spy(iterable, n=1): """Return a 2-tuple with a list containing the first *n* elements of *iterable*, and an iterator with the same items as *iterable*. This allows you to "look ahead" at the items in the iterable without advancing it. There is one item in the list by default: >>> itera...
def spy(iterable, n=1): """Return a 2-tuple with a list containing the first *n* elements of *iterable*, and an iterator with the same items as *iterable*. This allows you to "look ahead" at the items in the iterable without advancing it. There is one item in the list by default: >>> itera...
tests/test_more.py
[ "tests/test_more.py::SpyTests::test_immutable" ]
2020-03-29
2020-03-29
MIT
LICENSE
62411c1618493f94b16901746c34e72ad415061e
c0465331cbc0d882cd7dce5c0bd19aaf46dfb968
https://github.com/more-itertools/more-itertools/commit/62411c1618493f94b16901746c34e72ad415061e
https://github.com/more-itertools/more-itertools
more_itertools.more
[ "spy" ]
2
1
c5b8f23c1638de5f
more-itertools/more-itertools@62411c161#spy
python
2026-08-17
goldset/0.1
1
andialbrecht/sqlparse
[fix] Adding TypedLiteral to comparison
file
commit
[fix] Adding TypedLiteral to comparison
# -*- coding: utf-8 -*- # # Copyright (C) 2009-2018 the sqlparse authors and contributors # <see AUTHORS file> # # This module is part of python-sqlparse and is released under # the BSD License: https://opensource.org/licenses/BSD-3-Clause from sqlparse import sql from sqlparse import tokens as T from sqlparse.utils i...
# -*- coding: utf-8 -*- # # Copyright (C) 2009-2018 the sqlparse authors and contributors # <see AUTHORS file> # # This module is part of python-sqlparse and is released under # the BSD License: https://opensource.org/licenses/BSD-3-Clause from sqlparse import sql from sqlparse import tokens as T from sqlparse.utils i...
tests/test_grouping.py
[ "tests/test_grouping.py::test_comparison_with_typed_literal" ]
2020-03-29
2020-02-29
BSD-3-Clause
LICENSE
28a2acdd9b307c95d2111f1f831b1a5afc634691
6e39e02e3898b77415c558a822079a1f885524d5
https://github.com/andialbrecht/sqlparse/commit/28a2acdd9b307c95d2111f1f831b1a5afc634691
https://github.com/andialbrecht/sqlparse
sqlparse.engine.grouping
[ "group_comparison" ]
2
1
b4bff3a8f22b9bae
andialbrecht/sqlparse@28a2acdd9#sqlparse/engine/grouping.py
python
2026-08-18
goldset/0.1
1
mahmoud/boltons
NetstringSocket
Fix NetstringSocket to correctly use arguments to .read_ns() method.
function
docstring
Reads and writes using the netstring protocol. More info: https://en.wikipedia.org/wiki/Netstring Even more info: http://cr.yp.to/proto/netstrings.txt
class NetstringSocket(object): """ Reads and writes using the netstring protocol. More info: https://en.wikipedia.org/wiki/Netstring Even more info: http://cr.yp.to/proto/netstrings.txt """ def __init__(self, sock, timeout=DEFAULT_TIMEOUT, maxsize=DEFAULT_MAXSIZE): self.bsock = Buffered...
class NetstringSocket(object): """ Reads and writes using the netstring protocol. More info: https://en.wikipedia.org/wiki/Netstring Even more info: http://cr.yp.to/proto/netstrings.txt """ def __init__(self, sock, timeout=DEFAULT_TIMEOUT, maxsize=DEFAULT_MAXSIZE): self.bsock = Buffered...
tests/test_socketutils.py
[ "tests/test_socketutils.py::test_socketutils_netstring_timeout" ]
2020-03-28
2020-03-23
BSD-2-Clause
LICENSE
0a20b37cc94784197a7353130cc61b5becfb12c7
81e44a2319ce0bef0de44f1059762b97879cb35d
https://github.com/mahmoud/boltons/commit/0a20b37cc94784197a7353130cc61b5becfb12c7
https://github.com/mahmoud/boltons
boltons.socketutils
[ "NetstringSocket" ]
19
1
5eeb36aac33ef446
mahmoud/boltons@0a20b37cc#NetstringSocket
python
2026-08-18
goldset/0.1
1
PydPiper/pylightxl
scrape
fixed a bug preventing worksheets with vertically merged cells from loading properly and added a new test.
function
docstring
Takes a file-handle of xl/worksheets/sheet#.xml and returns a dict of cell data :param open-filehandle file: xl/worksheets/sheet#.xml file-handle :param dict sharedString: shared string dict lookup table from xl/sharedStrings.xml for string only cell values :return: yields a dict of cell data {cellAddress: cellVal}
def scrape(f, sharedString): """ Takes a file-handle of xl/worksheets/sheet#.xml and returns a dict of cell data :param open-filehandle file: xl/worksheets/sheet#.xml file-handle :param dict sharedString: shared string dict lookup table from xl/sharedStrings.xml for string only cell values :return:...
def scrape(f, sharedString): """ Takes a file-handle of xl/worksheets/sheet#.xml and returns a dict of cell data :param open-filehandle file: xl/worksheets/sheet#.xml file-handle :param dict sharedString: shared string dict lookup table from xl/sharedStrings.xml for string only cell values :return:...
test/test_readxl.py
[ "test/test_readxl.py::test_readxl_integration::test_ws_merged_cells" ]
2020-03-14
2020-03-02
MIT
LICENSE
52dd15a6a80e31478c2ff80c46d5b7ff13302321
db2a266d4ca9da1710956f351c9f035434b2d4f6
https://github.com/PydPiper/pylightxl/commit/52dd15a6a80e31478c2ff80c46d5b7ff13302321
https://github.com/PydPiper/pylightxl
pylightxl.readxl
[ "scrape" ]
3
1
2512575dab75751c
PydPiper/pylightxl@52dd15a6a#scrape
python
2026-08-18
goldset/0.1
1
advice-animal/imperfect
Fix (and test) set_value on multiline strings
file
commit
Fix (and test) set_value on multiline strings
from dataclasses import dataclass, field from typing import Any, List class ParseError(Exception): pass @dataclass class ConfigFile: sections: List["ConfigSection"] = field(default_factory=list) # The naming of these comes from configobj initial_comment: str = "" final_comment: str = "" def...
from dataclasses import dataclass, field from typing import Any, List class ParseError(Exception): pass @dataclass class ConfigFile: sections: List["ConfigSection"] = field(default_factory=list) # The naming of these comes from configobj initial_comment: str = "" final_comment: str = "" def...
imperfect/tests/editing.py
[ "imperfect/tests/editing.py::EditingTest::test_multiline_value" ]
2020-03-08
2020-02-25
MIT
LICENSE
2c9d6c88dab45cea8f7555f304d6c1b88fcc1fa1
ba55d4836ee4fe4cdbb40952da5c643b81895775
https://github.com/advice-animal/imperfect/commit/2c9d6c88dab45cea8f7555f304d6c1b88fcc1fa1
https://github.com/advice-animal/imperfect
imperfect.types
[ "ConfigSection" ]
20
1
e2ba8ac2ab587c36
advice-animal/imperfect@2c9d6c88d#imperfect/types.py
python
2026-08-18
goldset/0.1
1
pganssle/zoneinfo
Fix support for numeric and julian offsets
file
commit
Fix support for numeric and julian offsets
import bisect import calendar import collections import importlib.resources import os import re import struct import sys import weakref from datetime import datetime, timedelta, timezone, tzinfo EPOCH = datetime(1970, 1, 1) EPOCHORDINAL = datetime(1970, 1, 1).toordinal() # It is relatively expensive to construct new ...
import bisect import calendar import collections import importlib.resources import os import re import struct import sys import weakref from datetime import datetime, timedelta, timezone, tzinfo EPOCH = datetime(1970, 1, 1) EPOCHORDINAL = datetime(1970, 1, 1).toordinal() # It is relatively expensive to construct new ...
tests/test_zoneinfo.py
[ "tests/test_zoneinfo.py::TZStrTest::test_tzstr_from_utc" ]
2020-03-03
2020-03-03
Apache-2.0
LICENSE
e49b2bc3adbee41710a33fcdc056979fc6fa3278
153e18fba2ff23ab4ca492724622d10be01c5f38
https://github.com/pganssle/zoneinfo/commit/e49b2bc3adbee41710a33fcdc056979fc6fa3278
https://github.com/pganssle/zoneinfo
zoneinfo._zoneinfo
[ "_DayOffset" ]
5
1
9b94431c4cee8d7c
pganssle/zoneinfo@e49b2bc3a#src/zoneinfo/_zoneinfo.py
python
2026-08-18
goldset/0.1
1
ramonhagenaars/typish
Fix for instance checking with Iterable.
file
commit
Fix for instance checking with Iterable.
""" PRIVATE MODULE: do not import (from) it directly. This module contains the implementation of all functions of typish. """ import inspect import sys import types import typing from collections import deque, defaultdict from collections.abc import Set from functools import lru_cache from inspect import getmro from t...
""" PRIVATE MODULE: do not import (from) it directly. This module contains the implementation of all functions of typish. """ import inspect import sys import types import typing from collections import deque, defaultdict from collections.abc import Set from functools import lru_cache from inspect import getmro from t...
tests/test_instance_of.py
[ "tests/test_instance_of.py::TestInstanceOf::test_instance_of_iterable" ]
2020-02-29
2019-11-23
MIT
LICENSE
99e63555af30050323883dc66cb8ffe43c082168
d682379e4221e6e3ff555840019f1a6069f5c98e
https://github.com/ramonhagenaars/typish/commit/99e63555af30050323883dc66cb8ffe43c082168
https://github.com/ramonhagenaars/typish
typish._functions
[ "_subclass_of_generic" ]
10
1
54b4b430a6cc985a
ramonhagenaars/typish@99e63555a#typish/_functions.py
python
2026-08-18
goldset/0.1
1
pganssle/zoneinfo
Fix support for quoted DST strings
file
commit
Fix support for quoted DST strings
import bisect import calendar import collections import importlib.resources import os import re import struct import sys import weakref from datetime import datetime, timedelta, timezone, tzinfo EPOCH = datetime(1970, 1, 1) EPOCHORDINAL = datetime(1970, 1, 1).toordinal() # It is relatively expensive to construct new ...
import bisect import calendar import collections import importlib.resources import os import re import struct import sys import weakref from datetime import datetime, timedelta, timezone, tzinfo EPOCH = datetime(1970, 1, 1) EPOCHORDINAL = datetime(1970, 1, 1).toordinal() # It is relatively expensive to construct new ...
tests/test_zoneinfo.py
[ "tests/test_zoneinfo.py::TZStrTest::test_m_spec_localized" ]
2020-02-28
2020-02-25
Apache-2.0
LICENSE
d3906203a4322fd7d802581c393c91cef908a7fd
8753f75d7541060cc57ffe0be56b3a49bb4b01f3
https://github.com/pganssle/zoneinfo/commit/d3906203a4322fd7d802581c393c91cef908a7fd
https://github.com/pganssle/zoneinfo
zoneinfo._zoneinfo
[ "_parse_tz_str" ]
2
1
bbbd383a0f9cb706
pganssle/zoneinfo@d3906203a#src/zoneinfo/_zoneinfo.py
python
2026-08-18
goldset/0.1
1
mina86/pygtrie
_NoChildren
Fix iteration when sorting is enabled
function
docstring
Collection representing lack of any children. Also acts as an empty iterable and an empty iterator. This isn’t the cleanest designs but it makes various things more concise and avoids object allocations in a few places. Don’t create objects of this type directly; instead use _EMPTY singleton.
class _NoChildren(object): """Collection representing lack of any children. Also acts as an empty iterable and an empty iterator. This isn’t the cleanest designs but it makes various things more concise and avoids object allocations in a few places. Don’t create objects of this type directly; ins...
class _NoChildren(object): """Collection representing lack of any children. Also acts as an empty iterable and an empty iterator. This isn’t the cleanest designs but it makes various things more concise and avoids object allocations in a few places. Don’t create objects of this type directly; ins...
test.py
[ "test.py::TraverseTest::test_traverse_Sorted" ]
2020-02-26
2020-01-22
Apache-2.0
LICENSE
6168938d6c2dcc4066f6db9514689c71faae7f33
2b3ed50183bc30250095cfc5a8fb030c71190f58
https://github.com/mina86/pygtrie/commit/6168938d6c2dcc4066f6db9514689c71faae7f33
https://github.com/mina86/pygtrie
pygtrie
[ "_NoChildren" ]
2
1
eb070d4ce78c3cd0
mina86/pygtrie@6168938d6#_NoChildren
python
2026-08-18
goldset/0.1
1
testing-cabal/mock
_patch_dict
Fix `mock.patch.dict` to be stopped with `mock.patch.stopall` (#17606)
function
docstring
Patch a dictionary, or dictionary like object, and restore the dictionary to its original state after the test. `in_dict` can be a dictionary or a mapping like container. If it is a mapping then it must at least support getting, setting and deleting items plus iterating over keys. `in_dict` can also be a string speci...
class _patch_dict(object): """ Patch a dictionary, or dictionary like object, and restore the dictionary to its original state after the test. `in_dict` can be a dictionary or a mapping like container. If it is a mapping then it must at least support getting, setting and deleting items plus ite...
class _patch_dict(object): """ Patch a dictionary, or dictionary like object, and restore the dictionary to its original state after the test. `in_dict` can be a dictionary or a mapping like container. If it is a mapping then it must at least support getting, setting and deleting items plus ite...
mock/tests/testpatch.py
[ "mock/tests/testpatch.py::PatchTest::test_patch_and_patch_dict_stopall" ]
2020-01-29
2020-01-29
BSD-2-Clause
LICENSE.txt
11df596649d109d3d36f3a5062bd32f42493808a
aa5f6e9e2df8a77b2f81714018043efc392ae676
https://github.com/testing-cabal/mock/commit/11df596649d109d3d36f3a5062bd32f42493808a
https://github.com/testing-cabal/mock
mock.mock
[ "_patch_dict" ]
19
1
ace9c5643d93e761
testing-cabal/mock@11df59664#_patch_dict
python
2026-08-18
goldset/0.1
1
testing-cabal/mock
_patch_object
bpo-38669: patch.object now raises a helpful error (GH17034)
function
docstring
patch the named member (`attribute`) on an object (`target`) with a mock object. `patch.object` can be used as a decorator, class decorator or a context manager. Arguments `new`, `spec`, `create`, `spec_set`, `autospec` and `new_callable` have the same meaning as for `patch`. Like `patch`, `patch.object` takes arbitra...
def _patch_object( target, attribute, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callable=None, **kwargs ): """ patch the named member (`attribute`) on an object (`target`) with a mock object. `patch.object` can be used as a decorator, class deco...
def _patch_object( target, attribute, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callable=None, **kwargs ): """ patch the named member (`attribute`) on an object (`target`) with a mock object. `patch.object` can be used as a decorator, class deco...
mock/tests/testpatch.py
[ "mock/tests/testpatch.py::PatchTest::test_patchobject_with_string_as_target" ]
2020-01-29
2020-01-29
BSD-2-Clause
LICENSE.txt
c000fff5bdc49c620ea6bc9160214858b64f611e
a6768e64120cd6c963035044e9d70fb85f2dabc0
https://github.com/testing-cabal/mock/commit/c000fff5bdc49c620ea6bc9160214858b64f611e
https://github.com/testing-cabal/mock
mock.mock
[ "_patch_object" ]
4
1
e8da7c498902bdad
testing-cabal/mock@c000fff5b#_patch_object
python
2026-08-18
goldset/0.1
1
caesar0301/treelib
fix root removal in remove_subtree
file
commit
fix root removal in remove_subtree
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2011 # Brett Alistair Kromkamp - brettkromkamp@gmail.com # Copyright (C) 2012-2017 # Xiaming Chen - chenxm35@gmail.com # and other contributors. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2011 # Brett Alistair Kromkamp - brettkromkamp@gmail.com # Copyright (C) 2012-2017 # Xiaming Chen - chenxm35@gmail.com # and other contributors. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this...
tests/test_tree.py
[ "tests/test_tree.py::TreeCase::test_remove_subtree_whole_tree" ]
2020-01-13
2019-12-18
Apache-2.0
LICENSE
dc9e90aeb56e4d9592bd19936b194afac4ced600
ad9985e70adb2ae49db3838dcf080d0e16c91dd3
https://github.com/caesar0301/treelib/commit/dc9e90aeb56e4d9592bd19936b194afac4ced600
https://github.com/caesar0301/treelib
treelib.tree
[ "Tree" ]
14
1
96c1d7ff00bf71be
caesar0301/treelib@dc9e90aeb#treelib/tree.py
python
2026-08-18
goldset/0.1
1
pyvisa/pyvisa
filter2
rname: fix conversion for VXI attribute
function
docstring
Filter a list of resources according to a query expression. It accepts the optional part of the expression. .. warning: This function is experimental and unsafe as it uses eval, It also might require to open the resource. :param resources: iterable of resources. :param query: query expression. :param ope...
def filter2(resources, query, open_resource): """Filter a list of resources according to a query expression. It accepts the optional part of the expression. .. warning: This function is experimental and unsafe as it uses eval, It also might require to open the resource. :param resourc...
def filter2(resources, query, open_resource): """Filter a list of resources according to a query expression. It accepts the optional part of the expression. .. warning: This function is experimental and unsafe as it uses eval, It also might require to open the resource. :param resourc...
pyvisa/testsuite/test_rname.py
[ "pyvisa/testsuite/test_rname.py::TestFilters::test_filter2_optional_clause_no_connection" ]
2020-01-08
2020-01-08
MIT
LICENSE
1da80f7cdd4d135425f32cc792dd891c357b67de
1e93d89e8ab65d8f15de0a36d30e4615ed3284ec
https://github.com/pyvisa/pyvisa/commit/1da80f7cdd4d135425f32cc792dd891c357b67de
https://github.com/pyvisa/pyvisa
pyvisa.rname
[ "filter2" ]
2
1
406b638c4d8b2bf5
pyvisa/pyvisa@1da80f7cd#filter2
python
2026-08-18
goldset/0.1
1
hamcrest/PyHamcrest
No newline in raises() with pattern mismatch desc.
file
commit
No newline in raises() with pattern mismatch desc.
import re import sys from typing import Any, Callable, Mapping, Optional, Tuple, cast from weakref import ref from hamcrest.core.base_matcher import BaseMatcher from hamcrest.core.description import Description from hamcrest.core.matcher import Matcher __author__ = "Per Fagrell" __copyright__ = "Copyright 2013 hamcre...
import re import sys from typing import Any, Callable, Mapping, Optional, Tuple, cast from weakref import ref from hamcrest.core.base_matcher import BaseMatcher from hamcrest.core.description import Description from hamcrest.core.matcher import Matcher __author__ = "Per Fagrell" __copyright__ = "Copyright 2013 hamcre...
tests/hamcrest_unit_test/core/raises_test.py
[ "tests/hamcrest_unit_test/core/raises_test.py::RaisesTest::testDoesNotMatchExceptionIfRegularExpressionDoesNotMatch" ]
2020-01-07
2020-01-02
BSD-3-Clause
LICENSE.txt
1380aedaf6985e6bbebdc58683cdd42081317b97
eb746246a13c4abd6141c6ab45724ec1c4a2efbe
https://github.com/hamcrest/PyHamcrest/commit/1380aedaf6985e6bbebdc58683cdd42081317b97
https://github.com/hamcrest/PyHamcrest
hamcrest.core.core.raises
[ "Raises" ]
13
1
ba2a3e685b117cd7
hamcrest/PyHamcrest@1380aedaf#src/hamcrest/core/core/raises.py
python
2026-08-18
goldset/0.1
1
timofurrer/colorful
fix setup(colormode=NO_COLORS)
file
commit
fix setup(colormode=NO_COLORS)
# -*- 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. """ from __future__ import print_function from __future__ import unicode_literals import os import sy...
# -*- 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. """ from __future__ import print_function from __future__ import unicode_literals import os import sy...
tests/test_core.py
[ "tests/test_core.py::test_colorful_obj_setup_with_no_colors" ]
2020-01-05
2019-09-21
MIT
LICENSE
8b8623413a3714633769b65e117ce69e696e13ac
4d3dfab5e8ec757a5d2b8466fd0ec7ede5978cb4
https://github.com/timofurrer/colorful/commit/8b8623413a3714633769b65e117ce69e696e13ac
https://github.com/timofurrer/colorful
colorful.core
[ "Colorful" ]
2
1
81213149db93346a
timofurrer/colorful@8b8623413#colorful/core.py
python
2026-08-18
goldset/0.1
1
heuer/segno
make_vcard_data
Fixed bug in vCard implementation, added more test cases, updated CHANGES
function
docstring
Creates a string encoding the contact information as vCard 3.0. Only a subset of available `vCard 3.0 properties <https://tools.ietf.org/html/rfc2426>` is supported. :param str name: The name. If it contains a semicolon, , the first part is treated as lastname and the second part is treated as forename. :para...
def make_vcard_data(name, displayname, email=None, phone=None, fax=None, videophone=None, memo=None, nickname=None, birthday=None, url=None, pobox=None, street=None, city=None, region=None, zipcode=None, country=None, org=None, lat=None, lng=None, ...
def make_vcard_data(name, displayname, email=None, phone=None, fax=None, videophone=None, memo=None, nickname=None, birthday=None, url=None, pobox=None, street=None, city=None, region=None, zipcode=None, country=None, org=None, lat=None, lng=None, ...
tests/test_helpers.py
[ "tests/test_helpers.py::test_vcard_data_source_url" ]
2020-01-02
2020-01-02
BSD-3-Clause
LICENSE
676772e7a7b1e1ec82269e62ffae325dc24fa642
349d34d742c988f90c208f968a298525214d23f0
https://github.com/heuer/segno/commit/676772e7a7b1e1ec82269e62ffae325dc24fa642
https://github.com/heuer/segno
segno.helpers
[ "make_vcard_data" ]
10
1
222d6a3d3df46aae
heuer/segno@676772e7a#make_vcard_data
python
2026-08-18
goldset/0.1
1
heuer/segno
make_vcard_data
Fixed bug in birthday representation of the vCard implementation
function
docstring
Creates a string encoding the contact information as vCard 3.0. Only a subset of available `vCard 3.0 properties <https://tools.ietf.org/html/rfc2426>` is supported. :param str name: The name. If it contains a semicolon, , the first part is treated as lastname and the second part is treated as forename. :para...
def make_vcard_data(name, displayname, email=None, phone=None, fax=None, videophone=None, memo=None, nickname=None, birthday=None, url=None, pobox=None, street=None, city=None, region=None, zipcode=None, country=None, org=None, lat=None, lng=None, ...
def make_vcard_data(name, displayname, email=None, phone=None, fax=None, videophone=None, memo=None, nickname=None, birthday=None, url=None, pobox=None, street=None, city=None, region=None, zipcode=None, country=None, org=None, lat=None, lng=None, ...
tests/test_helpers.py
[ "tests/test_helpers.py::test_vcard_data_valid_bday" ]
2019-12-21
2019-12-21
BSD-3-Clause
LICENSE
da59519bc1fe7aabc4fda3d32d512efac775369b
f843e2090bf9587cda317398ec2c978c70c6eda4
https://github.com/heuer/segno/commit/da59519bc1fe7aabc4fda3d32d512efac775369b
https://github.com/heuer/segno
segno.helpers
[ "make_vcard_data" ]
2
1
1f4d72f065d478d0
heuer/segno@da59519bc#make_vcard_data
python
2026-08-18
goldset/0.1
1
caesar0301/treelib
fix removal of root node
file
commit
fix removal of root node
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2011 # Brett Alistair Kromkamp - brettkromkamp@gmail.com # Copyright (C) 2012-2017 # Xiaming Chen - chenxm35@gmail.com # and other contributors. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2011 # Brett Alistair Kromkamp - brettkromkamp@gmail.com # Copyright (C) 2012-2017 # Xiaming Chen - chenxm35@gmail.com # and other contributors. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this...
tests/test_tree.py
[ "tests/test_tree.py::TreeCase::test_root_removal" ]
2019-12-18
2019-12-15
Apache-2.0
LICENSE
a4dedfd4d71030ab8306a7f8cb4eccf865c7cfcb
7cb27820c2db43628ee80f7851b43ffeb15f92ef
https://github.com/caesar0301/treelib/commit/a4dedfd4d71030ab8306a7f8cb4eccf865c7cfcb
https://github.com/caesar0301/treelib
treelib.tree
[ "Tree" ]
5
1
d8f6d0f656d3abbf
caesar0301/treelib@a4dedfd4d#treelib/tree.py
python
2026-08-18
goldset/0.1
1
Melevir/cognitive_complexity
FIX #6: correctly process ternary operator
file
commit
FIX #6: correctly process ternary operator
import ast from cognitive_complexity.common_types import AnyFuncdef from cognitive_complexity.utils.ast import has_recursive_calls, process_child_nodes def get_cognitive_complexity(funcdef: AnyFuncdef) -> int: complexity = 0 for node in funcdef.body: complexity += get_cognitive_complexity_for_node(no...
import ast from cognitive_complexity.common_types import AnyFuncdef from cognitive_complexity.utils.ast import has_recursive_calls, process_child_nodes def get_cognitive_complexity(funcdef: AnyFuncdef) -> int: complexity = 0 for node in funcdef.body: complexity += get_cognitive_complexity_for_node(no...
cognitive_complexity/tests/test_cognitive_complexity.py
[ "cognitive_complexity/tests/test_cognitive_complexity.py::test_ternary_operator" ]
2019-11-06
2019-11-06
MIT
LICENSE
760c9edb940c43f4c33c95ad299d27e12c5adede
59587af24d00123b47d080ee4011f1aa7d83ae48
https://github.com/Melevir/cognitive_complexity/commit/760c9edb940c43f4c33c95ad299d27e12c5adede
https://github.com/Melevir/cognitive_complexity
cognitive_complexity.api
[ "get_cognitive_complexity_for_node" ]
1
1
2984a04d0e94d18b
Melevir/cognitive_complexity@760c9edb9#cognitive_complexity/api.py
python
2026-08-18
goldset/0.1
1
Melevir/cognitive_complexity
FIX #3: correctly process nested functions and lambdas
file
commit
FIX #3: correctly process nested functions and lambdas
import ast from cognitive_complexity.common_types import AnyFuncdef from cognitive_complexity.utils.ast import has_recursive_calls, process_child_nodes def get_cognitive_complexity(funcdef: AnyFuncdef) -> int: complexity = 0 for node in funcdef.body: complexity += get_cognitive_complexity_for_node(no...
import ast from cognitive_complexity.common_types import AnyFuncdef from cognitive_complexity.utils.ast import has_recursive_calls, process_child_nodes def get_cognitive_complexity(funcdef: AnyFuncdef) -> int: complexity = 0 for node in funcdef.body: complexity += get_cognitive_complexity_for_node(no...
cognitive_complexity/tests/test_cognitive_complexity.py
[ "cognitive_complexity/tests/test_cognitive_complexity.py::test_nested_functions" ]
2019-11-06
2019-11-06
MIT
LICENSE
59587af24d00123b47d080ee4011f1aa7d83ae48
85f0a1ab0a06a903f1b00dbddc2d3c1b3d185a84
https://github.com/Melevir/cognitive_complexity/commit/59587af24d00123b47d080ee4011f1aa7d83ae48
https://github.com/Melevir/cognitive_complexity
cognitive_complexity.api
[ "get_cognitive_complexity_for_node" ]
9
1
20ac4d5f907ce866
Melevir/cognitive_complexity@59587af24#cognitive_complexity/api.py
python
2026-08-18
goldset/0.1
1
Melevir/cognitive_complexity
FIX #2: add penalty for break/continue
file
commit
FIX #2: add penalty for break/continue
import ast from cognitive_complexity.common_types import AnyFuncdef from cognitive_complexity.utils.ast import has_recursive_calls, process_child_nodes def get_cognitive_complexity(funcdef: AnyFuncdef) -> int: complexity = 0 for node in funcdef.body: complexity += get_cognitive_complexity_for_node(no...
import ast from cognitive_complexity.common_types import AnyFuncdef from cognitive_complexity.utils.ast import has_recursive_calls, process_child_nodes def get_cognitive_complexity(funcdef: AnyFuncdef) -> int: complexity = 0 for node in funcdef.body: complexity += get_cognitive_complexity_for_node(no...
cognitive_complexity/tests/test_cognitive_complexity.py
[ "cognitive_complexity/tests/test_cognitive_complexity.py::test_break_and_continue" ]
2019-11-06
2019-11-06
MIT
LICENSE
85f0a1ab0a06a903f1b00dbddc2d3c1b3d185a84
3b87123adc9cc2f8ab6d8c4b7dcc08bab9c51b2d
https://github.com/Melevir/cognitive_complexity/commit/85f0a1ab0a06a903f1b00dbddc2d3c1b3d185a84
https://github.com/Melevir/cognitive_complexity
cognitive_complexity.api
[ "get_cognitive_complexity_for_node" ]
2
1
ebba4abb1fa7bb5d
Melevir/cognitive_complexity@85f0a1ab0#cognitive_complexity/api.py
python
2026-08-18
goldset/0.1
1
kayak/pypika
BUG: fix JoinUsing get_sql
file
commit
BUG: fix JoinUsing get_sql
from copy import copy from functools import reduce from pypika.enums import ( JoinType, UnionType, ) from pypika.terms import ( ArithmeticExpression, EmptyCriterion, Field, Function, Index, Rollup, Star, Term, Tuple, ValueWrapper, ) from pypika.utils import ( JoinExc...
from copy import copy from functools import reduce from pypika.enums import ( JoinType, UnionType, ) from pypika.terms import ( ArithmeticExpression, EmptyCriterion, Field, Function, Index, Rollup, Star, Term, Tuple, ValueWrapper, ) from pypika.utils import ( JoinExc...
pypika/tests/test_joins.py
[ "pypika/tests/test_joins.py::SelectQueryJoinTests::test_join_using_with_quote_char" ]
2019-10-29
2019-10-25
Apache-2.0
LICENSE.txt
e436d90c78f1e55c1cfc555e776a8aa3b6107026
3f3bebd96f219a020553d1bd71ff07d283846e2f
https://github.com/kayak/pypika/commit/e436d90c78f1e55c1cfc555e776a8aa3b6107026
https://github.com/kayak/pypika
pypika.queries
[ "JoinUsing" ]
2
1
7222148fb1b78c4a
kayak/pypika@e436d90c7#pypika/queries.py
python
2026-08-18
goldset/0.1
1
pre-commit/pre-commit-hooks
fix-whitespace: Added test for custom charsets
file
commit
fix-whitespace: Added test for custom charsets
from __future__ import print_function import argparse import os import sys from typing import Optional from typing import Sequence def _fix_file(filename, is_markdown, chars_to_strip): # type: (str, bool, Optional[bytes]) -> bool with open(filename, mode='rb') as file_processed: lines = file_processe...
from __future__ import print_function import argparse import os import sys from typing import Optional from typing import Sequence def _fix_file(filename, is_markdown, chars_to_strip): # type: (str, bool, Optional[bytes]) -> bool with open(filename, mode='rb') as file_processed: lines = file_processe...
tests/trailing_whitespace_fixer_test.py
[ "tests/trailing_whitespace_fixer_test.py::test_custom_charset_change", "tests/trailing_whitespace_fixer_test.py::test_custom_charset_no_change" ]
2019-10-25
2019-10-25
MIT
LICENSE
a2f836a23b095c19744fb5a73a3584cffa90bf8d
08663c91f2362aa70fe0b5e9dc389823a46c66bf
https://github.com/pre-commit/pre-commit-hooks/commit/a2f836a23b095c19744fb5a73a3584cffa90bf8d
https://github.com/pre-commit/pre-commit-hooks
pre_commit_hooks.trailing_whitespace_fixer
[ "_process_line" ]
6
2
51c015beb443d6df
pre-commit/pre-commit-hooks@a2f836a23#pre_commit_hooks/trailing_whitespace_fixer.py
python
2026-08-18
goldset/0.1
1
horejsek/python-fastjsonschema
Fix of uniqueItems when used with other than array type
file
commit
Fix of uniqueItems when used with other than array type
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', 'object': 'dict', } DOLLAR_FI...
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', 'object': 'dict', } DOLLAR_FI...
tests/test_array.py
[ "tests/test_array.py::test_min_and_unique_items" ]
2019-09-26
2019-09-25
BSD-3-Clause
LICENSE
3252d066a124bc18f214e7fb660634a5f58f20be
4c8e5fc37f576fd66e78be6e34c83a3dc8ef0b99
https://github.com/horejsek/python-fastjsonschema/commit/3252d066a124bc18f214e7fb660634a5f58f20be
https://github.com/horejsek/python-fastjsonschema
fastjsonschema.draft04
[ "CodeGeneratorDraft04" ]
8
1
47447faeb8d9fd4e
horejsek/python-fastjsonschema@3252d066a#fastjsonschema/draft04.py
python
2026-08-18
goldset/0.1
1
wbond/asn1crypto
_dump_header
Fix encoding of tag values over 30
function
docstring
Constructs the header bytes for an ASN.1 object :param class_: An integer ASN.1 class value: 0 (universal), 1 (application), 2 (context), 3 (private) :param method: An integer ASN.1 method value: 0 (primitive), 1 (constructed) :param tag: An integer ASN.1 tag value :param contents: A byte string...
def _dump_header(class_, method, tag, contents): """ Constructs the header bytes for an ASN.1 object :param class_: An integer ASN.1 class value: 0 (universal), 1 (application), 2 (context), 3 (private) :param method: An integer ASN.1 method value: 0 (primitive), 1 (constructed...
def _dump_header(class_, method, tag, contents): """ Constructs the header bytes for an ASN.1 object :param class_: An integer ASN.1 class value: 0 (universal), 1 (application), 2 (context), 3 (private) :param method: An integer ASN.1 method value: 0 (primitive), 1 (constructed...
tests/test_core.py
[ "tests/test_core.py::CoreTests::test_large_tag_encode" ]
2019-09-23
2019-09-23
MIT
LICENSE
e2d7e4c8fcbe175831b4b8c66f8a96efd3cbe69c
2199e11bcb179f679f9880a6aa2047da880efae2
https://github.com/wbond/asn1crypto/commit/e2d7e4c8fcbe175831b4b8c66f8a96efd3cbe69c
https://github.com/wbond/asn1crypto
asn1crypto.parser
[ "_dump_header" ]
8
1
400833237d839dd2
wbond/asn1crypto@e2d7e4c8f#_dump_header
python
2026-08-18
goldset/0.1
1
geographiclib/geographiclib-python
Implement fix to AddEdge/transitdirect bug in Java, JS, + Python libraries + add test case. (Already done for C++ + C; not necessary for MATLAB + Fortran.)
file
commit
Implement fix to AddEdge/transitdirect bug in Java, JS, + Python libraries + add test case. (Already done for C++ + C; not necessary for MATLAB + Fortran.)
"""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...
python/geographiclib/test/test_geodesic.py
[ "python/geographiclib/test/test_geodesic.py::PlanimeterTest::test_Planimeter29" ]
2019-09-10
2019-09-09
MIT
LICENSE
6b13b5bff4be130c2d41e5a2bf50e9ac90121f58
73b8bd879f92f33f158e855ee27490e83920b24b
https://github.com/geographiclib/geographiclib-python/commit/6b13b5bff4be130c2d41e5a2bf50e9ac90121f58
https://github.com/geographiclib/geographiclib-python
python.geographiclib.polygonarea
[ "PolygonArea" ]
6
1
f96bf8706cc3169d
geographiclib/geographiclib-python@6b13b5bff#python/geographiclib/polygonarea.py
python
2026-08-18
goldset/0.1
1
altdesktop/python-dbus-next
fix variant validator
file
commit
fix variant validator
from .validators import is_object_path_valid from .errors import InvalidSignatureError, SignatureBodyMismatchError from typing import Any, List, Union class SignatureType: """A class that represents a single complete type within a signature. This class is not meant to be constructed directly. Use the :class...
from .validators import is_object_path_valid from .errors import InvalidSignatureError, SignatureBodyMismatchError from typing import Any, List, Union class SignatureType: """A class that represents a single complete type within a signature. This class is not meant to be constructed directly. Use the :class...
test/test_signature.py
[ "test/test_signature.py::test_invalid_variants" ]
2019-08-26
2019-08-26
MIT
LICENSE
d724fc26fdf171ca57b7464a6957d32ebe0aafae
4bcf72ad94f01624a2412c2e99267dfc4b5ca92f
https://github.com/altdesktop/python-dbus-next/commit/d724fc26fdf171ca57b7464a6957d32ebe0aafae
https://github.com/altdesktop/python-dbus-next
dbus_next.signature
[ "SignatureType" ]
1
1
4012fa5f23b36014
altdesktop/python-dbus-next@d724fc26f#dbus_next/signature.py
python
2026-08-18
goldset/0.1
1
kayak/pypika
Fix orderby replace table function
file
commit
Fix orderby replace table function
from copy import copy from functools import reduce from pypika.enums import ( JoinType, UnionType, ) from pypika.terms import ( ArithmeticExpression, EmptyCriterion, Field, Function, Rollup, Star, Term, Tuple, ValueWrapper, ) from pypika.utils import ( JoinException, ...
from copy import copy from functools import reduce from pypika.enums import ( JoinType, UnionType, ) from pypika.terms import ( ArithmeticExpression, EmptyCriterion, Field, Function, Rollup, Star, Term, Tuple, ValueWrapper, ) from pypika.utils import ( JoinException, ...
pypika/tests/test_query.py
[ "pypika/tests/test_query.py::QueryTablesTests::test_replace_orderby_table" ]
2019-08-16
2019-08-15
Apache-2.0
LICENSE.txt
f1fc31960bbe692181687f55e501945727e4ae4b
c6681d7f2b29c45307af0beb0d19a3d46ea6ae0a
https://github.com/kayak/pypika/commit/f1fc31960bbe692181687f55e501945727e4ae4b
https://github.com/kayak/pypika
pypika.queries
[ "QueryBuilder" ]
3
1
c08e96a40c89e812
kayak/pypika@f1fc31960#pypika/queries.py
python
2026-08-18
goldset/0.1
1
omnilib/aiomultiprocess
Pool
fix bug for function returns None
function
docstring
Execute coroutines on a pool of child processes.
class Pool: """Execute coroutines on a pool of child processes.""" def __init__( self, processes: int = None, initializer: Callable[..., None] = None, initargs: Sequence[Any] = (), maxtasksperchild: int = MAX_TASKS_PER_CHILD, childconcurrency: int = CHILD_CONCURR...
class Pool: """Execute coroutines on a pool of child processes.""" def __init__( self, processes: int = None, initializer: Callable[..., None] = None, initargs: Sequence[Any] = (), maxtasksperchild: int = MAX_TASKS_PER_CHILD, childconcurrency: int = CHILD_CONCURR...
aiomultiprocess/tests/core.py
[ "aiomultiprocess/tests/core.py::CoreTest::test_none" ]
2019-08-02
2019-07-31
MIT
LICENSE
da4b4d8b288e736ea0a8a41f2f4fa35dc0e5feb1
e0ae1153f6ad48f59af39ea866d89e27cd09bebf
https://github.com/omnilib/aiomultiprocess/commit/da4b4d8b288e736ea0a8a41f2f4fa35dc0e5feb1
https://github.com/omnilib/aiomultiprocess
aiomultiprocess.core
[ "Pool" ]
2
1
fc0fdf4fa85b54cf
omnilib/aiomultiprocess@da4b4d8b2#Pool
python
2026-08-18
goldset/0.1
1
wbond/oscrypto
_encrypt
Fix aes_cbc_no_padding_encrypt() with OpenSSL, add tests
function
docstring
Encrypts plaintext :param cipher: A unicode string of "aes128", "aes192", "aes256", "des", "tripledes_2key", "tripledes_3key", "rc2", "rc4" :param key: The encryption key - a byte string 5-32 bytes long :param data: The plaintext - a byte string :param iv: The initialization vector - a byte stri...
def _encrypt(cipher, key, data, iv, padding): """ Encrypts plaintext :param cipher: A unicode string of "aes128", "aes192", "aes256", "des", "tripledes_2key", "tripledes_3key", "rc2", "rc4" :param key: The encryption key - a byte string 5-32 bytes long :param data: ...
def _encrypt(cipher, key, data, iv, padding): """ Encrypts plaintext :param cipher: A unicode string of "aes128", "aes192", "aes256", "des", "tripledes_2key", "tripledes_3key", "rc2", "rc4" :param key: The encryption key - a byte string 5-32 bytes long :param data: ...
tests/test_symmetric.py
[ "tests/test_symmetric.py::SymmetricTests::test_aes_cbc_no_padding_encrypt_decrypt" ]
2019-07-23
2019-07-19
MIT
LICENSE
67d0017957ef024e18cbe5522e365771ed1b0e94
63abadd04116eaf43db83fccdde64edb591c9c8f
https://github.com/wbond/oscrypto/commit/67d0017957ef024e18cbe5522e365771ed1b0e94
https://github.com/wbond/oscrypto
oscrypto._openssl.symmetric
[ "_encrypt" ]
20
1
f3ba63724ae04710
wbond/oscrypto@67d001795#_encrypt
python
2026-08-18
goldset/0.1
1
mina86/pygtrie
PrefixSet
Fix prefixes not pruning long keys in PrefixSet.__init__
function
docstring
A set of prefixes. :class:`pygtrie.PrefixSet` works similar to a normal set except it is said to contain a key if the key or it's prefix is stored in the set. For instance, if "foo" is added to the set, the set contains "foo" as well as "foobar". The set supports addition of elements but does *not* support removal o...
class PrefixSet(_abc.MutableSet): """A set of prefixes. :class:`pygtrie.PrefixSet` works similar to a normal set except it is said to contain a key if the key or it's prefix is stored in the set. For instance, if "foo" is added to the set, the set contains "foo" as well as "foobar". The set s...
class PrefixSet(_abc.MutableSet): """A set of prefixes. :class:`pygtrie.PrefixSet` works similar to a normal set except it is said to contain a key if the key or it's prefix is stored in the set. For instance, if "foo" is added to the set, the set contains "foo" as well as "foobar". The set s...
test.py
[ "test.py::TrieTestCase::test_prefix_set_init_prunes_branch" ]
2019-07-17
2019-05-29
Apache-2.0
LICENSE
15c095593099659fcc50021fd5bff7a4aac32dea
2404a55e094f159fbcece634f206e09aa04ca461
https://github.com/mina86/pygtrie/commit/15c095593099659fcc50021fd5bff7a4aac32dea
https://github.com/mina86/pygtrie
pygtrie
[ "PrefixSet" ]
6
1
3d0a3e04d98d5ce8
mina86/pygtrie@15c095593#PrefixSet
python
2026-08-18
goldset/0.1
1
ramonhagenaars/jsons
Solved bug reported in Issue#64.
file
commit
Solved bug reported in Issue#64.
from typing import Optional, Type from jsons._common_impl import get_class_name, StateHolder, T from jsons._dump_impl import dump, dumps, dumpb from jsons._lizers_impl import set_serializer, set_deserializer from jsons._load_impl import load, loads, loadb class JsonSerializable(StateHolder): """ This class of...
from typing import Optional, Type from jsons._common_impl import get_class_name, StateHolder, T from jsons._dump_impl import dump, dumps, dumpb from jsons._lizers_impl import set_serializer, set_deserializer from jsons._load_impl import load, loads, loadb class JsonSerializable(StateHolder): """ This class of...
tests/test_jsonserializable.py
[ "tests/test_jsonserializable.py::TestJsonSerializable::test_with_load" ]
2019-07-13
2019-07-13
MIT
LICENSE
27b1968e0add4d57fab32f673e1b6aa0d11b45fa
1452a681b97f3cdecc5a79fd35b6ee7b58269c2e
https://github.com/ramonhagenaars/jsons/commit/27b1968e0add4d57fab32f673e1b6aa0d11b45fa
https://github.com/ramonhagenaars/jsons
jsons.classes.json_serializable
[ "JsonSerializable" ]
5
1
d82802ea718d8e4b
ramonhagenaars/jsons@27b1968e0#jsons/classes/json_serializable.py
python
2026-08-18
goldset/0.1
1
jongracecox/anybadge
Fix int and float value detection (#26)
file
commit
Fix int and float value detection (#26)
#!/usr/bin/python """ anybadge A Python module for generating badges for your projects, with a focus on simplicity and flexibility. """ import os import re # Package information version = __version__ = "0.0.0" __version_info__ = tuple(re.split('[.-]', __version__)) __title__ = "anybadge" __summary__ = "A simple, fle...
#!/usr/bin/python """ anybadge A Python module for generating badges for your projects, with a focus on simplicity and flexibility. """ import os import re # Package information version = __version__ = "0.0.0" __version_info__ = tuple(re.split('[.-]', __version__)) __title__ = "anybadge" __summary__ = "A simple, fle...
tests/test_anybadge.py
[ "tests/test_anybadge.py::TestAnybadge::test_integer_value_is_handled_as_integer" ]
2019-07-12
2019-07-12
MIT
LICENSE
aebea0934038bde4c62f04de1db7d583cf98fc79
6465c451c4af18cbb732f0e051dcb9734febdb5d
https://github.com/jongracecox/anybadge/commit/aebea0934038bde4c62f04de1db7d583cf98fc79
https://github.com/jongracecox/anybadge
anybadge
[ "Badge" ]
9
1
9cd4adca9625ae43
jongracecox/anybadge@aebea0934#anybadge.py
python
2026-08-18
goldset/0.1
1
trbs/pid
fix atexit registration is never done #24
file
commit
fix atexit registration is never done #24
import os import sys import errno import fcntl import atexit import signal import logging import tempfile __version__ = "2.2.3" DEFAULT_PID_DIR = "/var/run/" PID_CHECK_EMPTY = "PID_CHECK_EMPTY" PID_CHECK_NOFILE = "PID_CHECK_NOFILE" PID_CHECK_SAMEPID = "PID_CHECK_SAMEPID" PID_CHECK_NOTRUNNING = "PID_CHECK_NOTRUNNING"...
import os import sys import errno import fcntl import atexit import signal import logging import tempfile __version__ = "2.2.3" DEFAULT_PID_DIR = "/var/run/" PID_CHECK_EMPTY = "PID_CHECK_EMPTY" PID_CHECK_NOFILE = "PID_CHECK_NOFILE" PID_CHECK_SAMEPID = "PID_CHECK_SAMEPID" PID_CHECK_NOTRUNNING = "PID_CHECK_NOTRUNNING"...
tests/test_pid.py
[ "tests/test_pid.py::test_register_atexit_true" ]
2019-07-04
2019-03-05
Apache-2.0
LICENSE
4a313cea519dde9fbe5382953f44f3b74998acaa
62e5f4a289ede9e55887e5279ca50a5063034dcd
https://github.com/trbs/pid/commit/4a313cea519dde9fbe5382953f44f3b74998acaa
https://github.com/trbs/pid
pid.__init__
[ "PidFile" ]
16
1
021bc100f68b3982
trbs/pid@4a313cea5#pid/__init__.py
python
2026-08-18
goldset/0.1
1
ilevkivskyi/com2ann
process_func_def
Quick fix for comment on a separate line (#24)
function
docstring
Perform translation for an (async) function definition. This supports two main ways of adding type comments for argument: def one( arg, # type: Type ): def another(arg): # type: (Type) -> AnotherType
def process_func_def(func_type: FunctionData, data: FileData, wrap_sig: int) -> None: """Perform translation for an (async) function definition. This supports two main ways of adding type comments for argument: def one( arg, # type: Type ): ... def another(arg...
def process_func_def(func_type: FunctionData, data: FileData, wrap_sig: int) -> None: """Perform translation for an (async) function definition. This supports two main ways of adding type comments for argument: def one( arg, # type: Type ): ... def another(arg...
src/test_com2ann.py
[ "src/test_com2ann.py::FunctionTestCase::test_next_line_comment" ]
2019-06-12
2019-06-12
MIT
LICENSE
01210de757cae67fca5f05e66ace809376275553
176c43e00cf36cdeec0b428c18e4bd8801b2a60d
https://github.com/ilevkivskyi/com2ann/commit/01210de757cae67fca5f05e66ace809376275553
https://github.com/ilevkivskyi/com2ann
com2ann
[ "process_func_def" ]
8
1
c5a54d874551fa35
ilevkivskyi/com2ann@01210de75#process_func_def
python
2026-08-18
goldset/0.1
1
mina86/pygtrie
Fix StringTrie.copy ignoring separator and improve PrefixSet.copy
file
commit
Fix StringTrie.copy ignoring separator and improve PrefixSet.copy
# -*- coding: utf-8 -*- """Implementation of a trie data structure. `Trie data structure <http://en.wikipedia.org/wiki/Trie>`_, also known as radix or prefix tree, is a tree associating keys to values where all the descendants of a node have a common prefix (associated with that node). The trie module contains :class...
# -*- coding: utf-8 -*- """Implementation of a trie data structure. `Trie data structure <http://en.wikipedia.org/wiki/Trie>`_, also known as radix or prefix tree, is a tree associating keys to values where all the descendants of a node have a common prefix (associated with that node). The trie module contains :class...
test.py
[ "test.py::StringTrieTestCase::test_basics_CopyOfTrie" ]
2019-05-27
2019-05-27
Apache-2.0
LICENSE
e2963795049135e94cd0e3cbff045c0721e75344
fdb6991dd4ae8a15ba9fbc0266ea0dfdb8a6d75a
https://github.com/mina86/pygtrie/commit/e2963795049135e94cd0e3cbff045c0721e75344
https://github.com/mina86/pygtrie
pygtrie
[ "PrefixSet", "StringTrie" ]
13
1
b5e4b707b43e65b4
mina86/pygtrie@e29637950#pygtrie.py
python
2026-08-18
goldset/0.1
1
tkem/cachetools
_HashedTuple
Fix #130: Fix pickling/unpickling of cache keys.
function
docstring
A tuple that ensures that hash() will be called no more than once per element, since cache decorators will hash the key multiple times on a cache miss. See also _HashedSeq in the standard library functools implementation.
class _HashedTuple(tuple): __hashvalue = None def __hash__(self, hash=tuple.__hash__): hashvalue = self.__hashvalue if hashvalue is None: self.__hashvalue = hashvalue = hash(self) return hashvalue def __add__(self, other, add=tuple.__add__): return _HashedTuple...
class _HashedTuple(tuple): """A tuple that ensures that hash() will be called no more than once per element, since cache decorators will hash the key multiple times on a cache miss. See also _HashedSeq in the standard library functools implementation. """ __hashvalue = None def __hash__(...
tests/test_keys.py
[ "tests/test_keys.py::CacheKeysTest::test_pickle" ]
2019-05-20
2019-05-20
MIT
LICENSE
462e867950883c8ffbcfff715efd767b20c6c749
3e5fe022716b0263488ef8146e18e162b2bcbe96
https://github.com/tkem/cachetools/commit/462e867950883c8ffbcfff715efd767b20c6c749
https://github.com/tkem/cachetools
cachetools.keys
[ "_HashedTuple" ]
9
1
a7927020c3ccc952
tkem/cachetools@462e86795#_HashedTuple
python
2026-08-17
goldset/0.1
1
pre-commit/pre-commit-hooks
Handle crlf endings in fix-encoding-pragma
file
commit
Handle crlf endings in fix-encoding-pragma
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import argparse import collections from typing import IO from typing import Optional from typing import Sequence from typing import Union DEFAULT_PRAGMA = b'# -*- coding: utf-8 -*-\n' def has_coding(...
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import argparse import collections from typing import IO from typing import Optional from typing import Sequence from typing import Union DEFAULT_PRAGMA = b'# -*- coding: utf-8 -*-' def has_coding(li...
tests/fix_encoding_pragma_test.py
[ "tests/fix_encoding_pragma_test.py::test_crfl_adds", "tests/fix_encoding_pragma_test.py::test_crlf_ok" ]
2019-05-15
2019-05-08
MIT
LICENSE
79a1b2676ef9a6c82944cb1fe3aa0c428fc69880
45fc394c19e208123b8e9ec3f584c7ae3adef8c4
https://github.com/pre-commit/pre-commit-hooks/commit/79a1b2676ef9a6c82944cb1fe3aa0c428fc69880
https://github.com/pre-commit/pre-commit-hooks
pre_commit_hooks.fix_encoding_pragma
[ "ExpectedContents", "_get_expected_contents", "_normalize_pragma", "fix_encoding_pragma", "has_coding", "main" ]
24
2
23781025350f30a8
pre-commit/pre-commit-hooks@79a1b2676#pre_commit_hooks/fix_encoding_pragma.py
python
2026-08-18
goldset/0.1
1
berkerpeksag/astor
MetaFlatten
Fix TypeError when accessing TreeWalk().__dict__ (#137)
function
docstring
This metaclass is used to flatten classes to remove class hierarchy. This makes it easier to manipulate classes (find attributes in a single dict, etc.)
class MetaFlatten(type): """This metaclass is used to flatten classes to remove class hierarchy. This makes it easier to manipulate classes (find attributes in a single dict, etc.) """ def __new__(clstype, name, bases, clsdict): newbases = (object,) newdict = {} for bas...
class MetaFlatten(type): """This metaclass is used to flatten classes to remove class hierarchy. This makes it easier to manipulate classes (find attributes in a single dict, etc.) """ def __new__(clstype, name, bases, clsdict): newbases = (object,) newdict = {} for bas...
tests/test_misc.py
[ "tests/test_misc.py::TreeWalkTestCase::test_auto_generated_attributes" ]
2019-05-12
2019-05-12
BSD-3-Clause
LICENSE
c5d5b3cdeb8b2bcc43d4228e5bcc64eac883b9d9
70b5924ea6dda8200c09fb9ba5959e14198bfd7d
https://github.com/berkerpeksag/astor/commit/c5d5b3cdeb8b2bcc43d4228e5bcc64eac883b9d9
https://github.com/berkerpeksag/astor
astor.tree_walk
[ "MetaFlatten" ]
3
1
ce7fc3e00907bc8c
berkerpeksag/astor@c5d5b3cde#MetaFlatten
python
2026-08-18
goldset/0.1
1
workhorsy/py-cpuinfo
Fixed issue with CPUID tests having wrong mock Hz.
file
commit
Fixed issue with CPUID tests having wrong mock Hz.
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Copyright (c) 2014-2019, Matthew Brennan Jones <matthew.brennan.jones@gmail.com> # Py-cpuinfo gets CPU info with pure Python 2 & 3 # It uses the MIT License # It is hosted at: https://github.com/workhorsy/py-cpuinfo # # Permission is hereby granted, free of charge, to an...
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Copyright (c) 2014-2019, Matthew Brennan Jones <matthew.brennan.jones@gmail.com> # Py-cpuinfo gets CPU info with pure Python 2 & 3 # It uses the MIT License # It is hosted at: https://github.com/workhorsy/py-cpuinfo # # Permission is hereby granted, free of charge, to an...
tests/test_windows_10_x86_64.py
[ "tests/test_windows_10_x86_64.py::TestWindows_10_X86_64::test_all" ]
2019-05-09
2019-05-07
MIT
LICENSE
c5a4a392679ec6b4ec9a02ce984fd249ac693de3
89b7dfd1c2b81bd81acefdc09d5dca203998821c
https://github.com/workhorsy/py-cpuinfo/commit/c5a4a392679ec6b4ec9a02ce984fd249ac693de3
https://github.com/workhorsy/py-cpuinfo
tests.helpers
[ "monkey_patch_cpuid" ]
6
1
d90150ed807e368a
workhorsy/py-cpuinfo@c5a4a3926#tests/helpers.py
python
2026-08-18
goldset/0.1
1
python-constraint/python-constraint
[Fix #50] Fix support for using a Domain subclass (#51)
file
commit
[Fix #50] Fix support for using a Domain subclass (#51)
#!/usr/bin/python # # Copyright (c) 2005-2014 - Gustavo Niemeyer <gustavo@niemeyer.net> # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the abov...
#!/usr/bin/python # # Copyright (c) 2005-2014 - Gustavo Niemeyer <gustavo@niemeyer.net> # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the abov...
tests/test_problem.py
[ "tests/test_problem.py::test_addVariable_support_domain_subclasses" ]
2019-04-10
2019-03-01
BSD-2-Clause
LICENSE
e23fe9852cddddf1c3e258e03f2175df24b4c702
ce0a6815ae645ca0cc7beaefea149e069a603643
https://github.com/python-constraint/python-constraint/commit/e23fe9852cddddf1c3e258e03f2175df24b4c702
https://github.com/python-constraint/python-constraint
constraint.__init__
[ "Problem" ]
6
1
f5610260fb85a680
python-constraint/python-constraint@e23fe9852#constraint/__init__.py
python
2026-08-18
goldset/0.1
1
eigenein/protobuf
RepeatedField
Fix repeated byte string field being read as a packed field
function
docstring
Handles repeated and packed repeated field. See also: https://developers.google.com/protocol-buffers/docs/encoding#optional
class RepeatedField(Field, ABC): """ Handles repeated and packed repeated field. See also: https://developers.google.com/protocol-buffers/docs/encoding#optional """ def validate(self, value: Any): for item in value: self.serializer.validate(item) def load(self, wire_type: W...
class RepeatedField(Field, ABC): """ Handles repeated and packed repeated field. See also: https://developers.google.com/protocol-buffers/docs/encoding#optional """ def validate(self, value: Any): for item in value: self.serializer.validate(item) def load(self, wire_type: W...
tests/test_fields.py
[ "tests/test_fields.py::test_unpacked_repeated_field_load[serializer1-value1-\\x04None]" ]
2019-03-26
2019-03-26
MIT
LICENSE
98a69bf41888aca8cfb9c57a4ad2b502f7d381b6
bdcfa78b8fc5cab10ecfb4e65e89493ccae2eabd
https://github.com/eigenein/protobuf/commit/98a69bf41888aca8cfb9c57a4ad2b502f7d381b6
https://github.com/eigenein/protobuf
pure_protobuf.fields
[ "RepeatedField" ]
8
1
ce7d4ed0aae356ab
eigenein/protobuf@98a69bf41#RepeatedField
python
2026-08-18
goldset/0.1
1
ramonhagenaars/jsons
default_namedtuple_deserializer
Fixed bug with loading empty tuple.
function
docstring
Deserialize a (JSON) list into a named tuple by deserializing all items of that list. :param obj: the tuple that needs deserializing. :param cls: the NamedTuple. :param kwargs: any keyword arguments. :return: a deserialized named tuple (i.e. an instance of a class).
def default_namedtuple_deserializer(obj: list, cls: type, **kwargs) -> object: """ Deserialize a (JSON) list into a named tuple by deserializing all items of that list. :param obj: the tuple that needs deserializing. :param cls: the NamedTuple. :param kwargs: any keyword arguments. :return: ...
def default_namedtuple_deserializer(obj: list, cls: type, **kwargs) -> object: """ Deserialize a (JSON) list into a named tuple by deserializing all items of that list. :param obj: the tuple that needs deserializing. :param cls: the NamedTuple. :param kwargs: any keyword arguments. :return: ...
tests/test_tuple.py
[ "tests/test_tuple.py::TestTuple::test_load_namedtuple_with_empty" ]
2019-03-15
2019-03-14
MIT
LICENSE
f56035a06d011ea63e144aa5758dba729f70020c
f5552720826916676a1339812b3301e5e8ab1213
https://github.com/ramonhagenaars/jsons/commit/f56035a06d011ea63e144aa5758dba729f70020c
https://github.com/ramonhagenaars/jsons
jsons.deserializers.default_tuple
[ "default_namedtuple_deserializer" ]
5
1
2e5268b52aef86f0
ramonhagenaars/jsons@f56035a06#default_namedtuple_deserializer
python
2026-08-18
goldset/0.1
1
berkerpeksag/astor
Fix code generation with escaped braces in f-strings (#125)
file
commit
Fix code generation with escaped braces in f-strings (#125)
# -*- coding: utf-8 -*- """ Part of the astor library for Python AST manipulation. License: 3-clause BSD Copyright (c) 2008 Armin Ronacher Copyright (c) 2012-2017 Patrick Maupin Copyright (c) 2013-2017 Berker Peksag This module converts an AST into Python source code. Before being version-controlled as part of...
# -*- coding: utf-8 -*- """ Part of the astor library for Python AST manipulation. License: 3-clause BSD Copyright (c) 2008 Armin Ronacher Copyright (c) 2012-2017 Patrick Maupin Copyright (c) 2013-2017 Berker Peksag This module converts an AST into Python source code. Before being version-controlled as part of...
tests/test_code_gen.py
[ "tests/test_code_gen.py::CodegenTestCase::test_fstring_escaped_braces" ]
2019-03-14
2019-03-14
BSD-3-Clause
LICENSE
a3c9e284b46abf558c51d0af7a997609333bc7a2
8aa5437f160290b09001fd831bce71919909f746
https://github.com/berkerpeksag/astor/commit/a3c9e284b46abf558c51d0af7a997609333bc7a2
https://github.com/berkerpeksag/astor
astor.code_gen
[ "SourceGenerator" ]
3
1
9d64ec8f4e9556ab
berkerpeksag/astor@a3c9e284b#astor/code_gen.py
python
2026-08-18
goldset/0.1
1
lark-parser/lark
Transformer
Fixed Discard, broken in 0.6.6 (Issue #337)
function
docstring
Visits the tree recursively, starting with the leaves and finally the root (bottom-up) Calls its methods (provided by user via inheritance) according to tree.data The returned value replaces the old one in the structure. Can be used to implement map or reduce.
class Transformer: """Visits the tree recursively, starting with the leaves and finally the root (bottom-up) Calls its methods (provided by user via inheritance) according to tree.data The returned value replaces the old one in the structure. Can be used to implement map or reduce. """ def _c...
class Transformer: """Visits the tree recursively, starting with the leaves and finally the root (bottom-up) Calls its methods (provided by user via inheritance) according to tree.data The returned value replaces the old one in the structure. Can be used to implement map or reduce. """ def _c...
tests/test_trees.py
[ "tests/test_trees.py::TestTrees::test_discard" ]
2019-03-09
2019-03-09
MIT
LICENSE
2b3fabd01cec3f6803ec7d255bf0436476c2b812
e16bb35576cfbcd0c4c2ae0c1c5d03370697a0da
https://github.com/lark-parser/lark/commit/2b3fabd01cec3f6803ec7d255bf0436476c2b812
https://github.com/lark-parser/lark
lark.visitors
[ "Transformer" ]
2
1
54e7291b97aca9ba
lark-parser/lark@2b3fabd01#Transformer
python
2026-08-18
goldset/0.1
1
lark-parser/lark
Fix literal range escape assertion
file
commit
Fix literal range escape assertion
"Parses and creates Grammar objects" import os.path import sys from ast import literal_eval from copy import copy, deepcopy from .utils import bfs from .lexer import Token, TerminalDef, PatternStr, PatternRE from .parse_tree_builder import ParseTreeBuilder from .parser_frontends import LALR_TraditionalLexer from .co...
"Parses and creates Grammar objects" import os.path import sys from ast import literal_eval from copy import copy, deepcopy from .utils import bfs from .lexer import Token, TerminalDef, PatternStr, PatternRE from .parse_tree_builder import ParseTreeBuilder from .parser_frontends import LALR_TraditionalLexer from .co...
tests/test_parser.py
[ "tests/test_parser.py::TestCykStandard::test_hex_literal_range_escape", "tests/test_parser.py::TestCykStandard::test_unicode_literal_range_escape", "tests/test_parser.py::TestEarleyDynamic::test_hex_literal_range_escape", "tests/test_parser.py::TestEarleyDynamic::test_unicode_literal_range_escape", "tests/t...
2019-02-23
2019-02-15
MIT
LICENSE
d5c9006f01b3fa2fa0bb05b403b9ee641c3535da
ed46efbd10b5daf154378a67f0beffbb9849bf3d
https://github.com/lark-parser/lark/commit/d5c9006f01b3fa2fa0bb05b403b9ee641c3535da
https://github.com/lark-parser/lark
lark.load_grammar
[ "PrepareLiterals" ]
2
12
28dc66634643bf02
lark-parser/lark@d5c9006f0#lark/load_grammar.py
python
2026-08-18
goldset/0.1
1
pavlov99/ajsonrpc
FIX: notification detection
file
commit
FIX: notification detection
from typing import Union, Optional, Any, Iterable, Mapping from abc import ABCMeta, abstractmethod import json class JSONSerializable(metaclass=ABCMeta): """Common functionality for json serializable objects.""" serialize = staticmethod(json.dumps) deserialize = staticmethod(json.loads) @abstractme...
from typing import Union, Optional, Any, Iterable, Mapping from abc import ABCMeta, abstractmethod import json class JSONSerializable(metaclass=ABCMeta): """Common functionality for json serializable objects.""" serialize = staticmethod(json.dumps) deserialize = staticmethod(json.loads) @abstractme...
ajsonrpc/tests/test_core.py
[ "ajsonrpc/tests/test_core.py::TestJSONRPC20Request::test_default_not_notification" ]
2019-02-19
2019-02-12
MIT
LICENSE.txt
c9a3e90e5818db1471b94a4b840b00460c2e5bbe
bf73bce02d38fcd2a391fa34044c6537897c22c1
https://github.com/pavlov99/ajsonrpc/commit/c9a3e90e5818db1471b94a4b840b00460c2e5bbe
https://github.com/pavlov99/ajsonrpc
ajsonrpc.core
[ "JSONRPC20Request" ]
4
1
755282caec1bc43a
pavlov99/ajsonrpc@c9a3e90e5#ajsonrpc/core.py
python
2026-08-18
goldset/0.1
1
rubik/radon
fix(visitor): do not undercount a class' complexity
file
commit
fix(visitor): do not undercount a class' complexity
'''This module contains the ComplexityVisitor class which is where all the analysis concerning Cyclomatic Complexity is done. There is also the class HalsteadVisitor, that counts Halstead metrics.''' import ast import operator import collections # Helper functions to use in combination with map() GET_COMPLEXITY = op...
'''This module contains the ComplexityVisitor class which is where all the analysis concerning Cyclomatic Complexity is done. There is also the class HalsteadVisitor, that counts Halstead metrics.''' import ast import operator import collections # Helper functions to use in combination with map() GET_COMPLEXITY = op...
radon/tests/test_complexity_visitor.py
[ "radon/tests/test_complexity_visitor.py::test_visitor_classes[\\n" ]
2019-01-26
2019-01-26
MIT
LICENSE
1981e2e872fab2cc17c69337d1ca2925c1add42b
4c95e0ac386351adcaab62eee55bffeaf60e1371
https://github.com/rubik/radon/commit/1981e2e872fab2cc17c69337d1ca2925c1add42b
https://github.com/rubik/radon
radon.visitors
[ "ComplexityVisitor" ]
3
1
99ea59353fb05bcc
rubik/radon@1981e2e87#radon/visitors.py
python
2026-08-18
goldset/0.1
1
rubik/radon
fix(visitor): do not count with and async with statements towards CC
file
commit
fix(visitor): do not count with and async with statements towards CC
'''This module contains the ComplexityVisitor class which is where all the analysis concerning Cyclomatic Complexity is done. There is also the class HalsteadVisitor, that counts Halstead metrics.''' import ast import operator import collections # Helper functions to use in combination with map() GET_COMPLEXITY = op...
'''This module contains the ComplexityVisitor class which is where all the analysis concerning Cyclomatic Complexity is done. There is also the class HalsteadVisitor, that counts Halstead metrics.''' import ast import operator import collections # Helper functions to use in combination with map() GET_COMPLEXITY = op...
radon/tests/test_complexity_visitor.py
[ "radon/tests/test_complexity_visitor.py::test_visitor_simple[\\n" ]
2019-01-26
2019-01-26
MIT
LICENSE
29a671d4fc034ccdc64710e383c4fdc3638b0cf1
fc30c7297dbd4790ba047a5639cb008555fba04f
https://github.com/rubik/radon/commit/29a671d4fc034ccdc64710e383c4fdc3638b0cf1
https://github.com/rubik/radon
radon.visitors
[ "ComplexityVisitor" ]
2
1
c43e24beac427284
rubik/radon@29a671d4f#radon/visitors.py
python
2026-08-18
goldset/0.1
1
PyCQA/pyflakes
ExportBinding
Fix regression with `__all__ = [not, strings]`
function
docstring
A binding created by an C{__all__} assignment. If the names in the list can be determined statically, they will be treated as names for export and additional checking applied to them. The only recognized C{__all__} assignment via list concatenation is in the following format: __all__ = ['a'] + ['b'] + ['c'] Nam...
class ExportBinding(Binding): """ A binding created by an C{__all__} assignment. If the names in the list can be determined statically, they will be treated as names for export and additional checking applied to them. The only recognized C{__all__} assignment via list concatenation is in the f...
class ExportBinding(Binding): """ A binding created by an C{__all__} assignment. If the names in the list can be determined statically, they will be treated as names for export and additional checking applied to them. The only recognized C{__all__} assignment via list concatenation is in the f...
pyflakes/test/test_imports.py
[ "pyflakes/test/test_imports.py::TestSpecialAll::test_all_mixed_attributes_and_strings" ]
2019-01-23
2019-01-21
MIT
LICENSE
65fdfad26e5213a8245797da3e1368daa63e2067
14f28ba0279e3547c09b06870f90f01167da08ec
https://github.com/PyCQA/pyflakes/commit/65fdfad26e5213a8245797da3e1368daa63e2067
https://github.com/PyCQA/pyflakes
pyflakes.checker
[ "ExportBinding" ]
12
1
e1f174152acb6560
PyCQA/pyflakes@65fdfad26#ExportBinding
python
2026-08-18
goldset/0.1
1
fastavro/fastavro
validate_string
Union UUID fix (#310)
function
docstring
Check that the data value is string type, uses six for Python version compatibility. Parameters ---------- datum: Any Data being validated kwargs: Any Unused kwargs
def validate_string(datum, **kwargs): """ Check that the data value is string type, uses six for Python version compatibility. Parameters ---------- datum: Any Data being validated kwargs: Any Unused kwargs """ return is_str(datum)
def validate_string(datum, **kwargs): """ Check that the data value is string or UUID type, uses six for Python version compatibility. Parameters ---------- datum: Any Data being validated kwargs: Any Unused kwargs """ return is_str(datum) or isinstance(datum, UUID)
tests/test_complex.py
[ "tests/test_complex.py::test_complex_schema" ]
2019-01-22
2019-01-21
MIT
LICENSE
9ae09affe0cb11a2889463e0f9e232e7b2de350f
fc9661a2d078f279069cd0a43a3c847d4f212025
https://github.com/fastavro/fastavro/commit/9ae09affe0cb11a2889463e0f9e232e7b2de350f
https://github.com/fastavro/fastavro
fastavro._validation_py
[ "validate_string" ]
4
1
3fdc94d4cf99e5f4
fastavro/fastavro@9ae09affe#validate_string
python
2026-08-18
goldset/0.1
1
uiri/toml
Fix loading values when a line has " }" after a boolean
file
commit
Fix loading values when a line has " }" after a boolean
import datetime import io from os import linesep import re import sys from toml.tz import TomlTz if sys.version_info < (3,): _range = xrange # noqa: F821 else: unicode = str _range = range basestring = str unichr = chr def _detect_pathlib_path(p): if (3, 4) <= sys.version_info: impo...
import datetime import io from os import linesep import re import sys from toml.tz import TomlTz if sys.version_info < (3,): _range = xrange # noqa: F821 else: unicode = str _range = range basestring = str unichr = chr def _detect_pathlib_path(p): if (3, 4) <= sys.version_info: impo...
tests/test_api.py
[ "tests/test_api.py::test_bug_black637" ]
2019-01-04
2019-01-03
MIT
LICENSE
1f14df1fa3ad759190c4b85dfa36ff6086a9d340
f83c9cdc8f420cb784ea6af8ad524c7bf86d4f18
https://github.com/uiri/toml/commit/1f14df1fa3ad759190c4b85dfa36ff6086a9d340
https://github.com/uiri/toml
toml.decoder
[ "TomlDecoder" ]
3
1
faa18b20dca211ef
uiri/toml@1f14df1fa#toml/decoder.py
python
2026-08-18
goldset/0.1
1
andialbrecht/sqlparse
Fix issue with strip_comments causing a syntax error (fixes #425)
file
commit
Fix issue with strip_comments causing a syntax error (fixes #425)
# -*- coding: utf-8 -*- # # Copyright (C) 2009-2018 the sqlparse authors and contributors # <see AUTHORS file> # # This module is part of python-sqlparse and is released under # the BSD License: https://opensource.org/licenses/BSD-3-Clause from sqlparse import sql, tokens as T from sqlparse.utils import split_unquoted...
# -*- coding: utf-8 -*- # # Copyright (C) 2009-2018 the sqlparse authors and contributors # <see AUTHORS file> # # This module is part of python-sqlparse and is released under # the BSD License: https://opensource.org/licenses/BSD-3-Clause from sqlparse import sql, tokens as T from sqlparse.utils import split_unquoted...
tests/test_format.py
[ "tests/test_format.py::TestFormat::test_strip_comments_single" ]
2018-11-21
2018-08-28
BSD-3-Clause
LICENSE
6c7b89cc8ddbe3159befb4616b70384bf491a29e
488505f6c448e7eb0e4a1915bdc5b6130d44a68a
https://github.com/andialbrecht/sqlparse/commit/6c7b89cc8ddbe3159befb4616b70384bf491a29e
https://github.com/andialbrecht/sqlparse
sqlparse.filters.others
[ "StripCommentsFilter" ]
7
1
8776fb0f856e2d6a
andialbrecht/sqlparse@6c7b89cc8#sqlparse/filters/others.py
python
2026-08-18
goldset/0.1
1
erdewit/nest_asyncio
Fix unitialized _nesting_level on new event-loop instances.
file
commit
Fix unitialized _nesting_level on new event-loop instances.
import sys import asyncio import heapq def apply(loop=None): """ Patch asyncio to make its event loop reentrent. """ loop = loop or asyncio.get_event_loop() if hasattr(loop, '_run_until_complete_orig'): # already patched return _patch_asyncio() _patch_loop(loop) _patch_...
import sys import asyncio import heapq def apply(loop=None): """ Patch asyncio to make its event loop reentrent. """ loop = loop or asyncio.get_event_loop() if hasattr(loop, '_run_until_complete_orig'): # already patched return _patch_asyncio() _patch_loop(loop) _patch_...
tests/nest_test.py
[ "tests/nest_test.py::NestTest::test_ensure_future_with_run_until_complete" ]
2018-11-19
2018-10-21
BSD-2-Clause
LICENSE
Chaoses-Ib/nest-asyncio2
ec105bca40e9fab441d3333d791ed6e693a677d4
fd06ced3e27fef1237136a2c2d32e82f2e0c3331
https://github.com/erdewit/nest_asyncio/commit/ec105bca40e9fab441d3333d791ed6e693a677d4
https://github.com/erdewit/nest_asyncio
nest_asyncio
[ "_patch_loop" ]
2
1
7e7aed0f80f6b843
erdewit/nest_asyncio@ec105bca4#nest_asyncio.py
python
2026-08-18
goldset/0.1
1
tkem/cachetools
cachedmethod
Fix #107: Remove 'self' from @cachedmethod key arguments.
function
docstring
Decorator to wrap a class or instance method with a memoizing callable that saves results in a cache.
def cachedmethod(cache, key=keys.hashkey, lock=None): """Decorator to wrap a class or instance method with a memoizing callable that saves results in a cache. """ def decorator(method): if lock is None: def wrapper(self, *args, **kwargs): c = cache(self) ...
def cachedmethod(cache, key=keys.hashkey, lock=None): """Decorator to wrap a class or instance method with a memoizing callable that saves results in a cache. """ def decorator(method): if lock is None: def wrapper(self, *args, **kwargs): c = cache(self) ...
tests/test_method.py
[ "tests/test_method.py::CachedMethodTest::test_dict" ]
2018-10-27
2018-10-27
MIT
LICENSE
4dbbef9b09dc6adc427acfbc7ab74a8f466e9c1e
fb0e9cdb3ee219ffda7b979961bc1cf67d7bb1df
https://github.com/tkem/cachetools/commit/4dbbef9b09dc6adc427acfbc7ab74a8f466e9c1e
https://github.com/tkem/cachetools
cachetools.__init__
[ "cachedmethod" ]
4
1
37daffb8a14fa689
tkem/cachetools@4dbbef9b0#cachedmethod
python
2026-08-18
goldset/0.1
1
mahmoud/boltons
daterange
Fix bug in implementation of `timeutils.daterange`
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_infinite" ]
2018-10-11
2018-10-11
BSD-2-Clause
LICENSE
139d5dcd3255eddb822aa2d876ce3120c34d81c7
d931428f0ad6b316e4e1978f18b080f0a0c340c0
https://github.com/mahmoud/boltons/commit/139d5dcd3255eddb822aa2d876ce3120c34d81c7
https://github.com/mahmoud/boltons
boltons.timeutils
[ "daterange" ]
2
1
f6a035c2a6d8ab8d
mahmoud/boltons@139d5dcd3#daterange
python
2026-08-18
goldset/0.1
1
pri22296/beautifultable
fix #28: correct widths for wide columns
file
commit
fix #28: correct widths for wide columns
"""This module provides BeautifulTable class intended for printing Tabular data to terminals. Example ------- >>> from beautifultable import BeautifulTable >>> table = BeautifulTable() >>> table.column_headers = ['1st column', '2nd column'] >>> for i in range(5): ... table.append_row([i, i*i]) ... >>> print(table) ...
"""This module provides BeautifulTable class intended for printing Tabular data to terminals. Example ------- >>> from beautifultable import BeautifulTable >>> table = BeautifulTable() >>> table.column_headers = ['1st column', '2nd column'] >>> for i in range(5): ... table.append_row([i, i*i]) ... >>> print(table) ...
test.py
[ "test.py::TableOperationsTestCase::test_table_auto_width" ]
2018-10-07
2018-09-05
MIT
LICENSE.txt
7794a61df2e4b3091ce7d0372324b51e47b9f42b
d3e55f597be47dbfb245768d23a0176c1b059f1e
https://github.com/pri22296/beautifultable/commit/7794a61df2e4b3091ce7d0372324b51e47b9f42b
https://github.com/pri22296/beautifultable
beautifultable.beautifultable
[ "BeautifulTable" ]
3
1
59246c6cf753ed71
pri22296/beautifultable@7794a61df#beautifultable/beautifultable.py
python
2026-08-18
goldset/0.1
1
uiri/toml
Fix #196: bug for datetime without tz info
file
commit
Fix #196: bug for datetime without tz info
import datetime import io from os import linesep import re import sys from toml.tz import TomlTz if sys.version_info < (3,): _range = xrange # noqa: F821 else: unicode = str _range = range basestring = str unichr = chr def _detect_pathlib_path(p): if (3, 4) <= sys.version_info: impo...
import datetime import io from os import linesep import re import sys from toml.tz import TomlTz if sys.version_info < (3,): _range = xrange # noqa: F821 else: unicode = str _range = range basestring = str unichr = chr def _detect_pathlib_path(p): if (3, 4) <= sys.version_info: impo...
tests/test_api.py
[ "tests/test_api.py::test_bug_196" ]
2018-09-15
2018-09-12
MIT
LICENSE
349ab7054edd462f6a90d90dc2aa0639229c69a3
1ef2eadd317172c9d3d51c30c7e424a99ce47a05
https://github.com/uiri/toml/commit/349ab7054edd462f6a90d90dc2aa0639229c69a3
https://github.com/uiri/toml
toml.decoder
[ "_load_date" ]
6
1
b55a5ed2f2d1f850
uiri/toml@349ab7054#toml/decoder.py
python
2026-08-18
goldset/0.1
1
pavdmyt/yaspin
Raise ValueError when trying to register handler for SIGKILL
file
commit
Raise ValueError when trying to register handler for SIGKILL
# -*- coding: utf-8 -*- """ yaspin.yaspin ~~~~~~~~~~~~~ A lightweight terminal spinner. """ from __future__ import absolute_import import functools import itertools import signal import sys import threading import time from .base_spinner import default_spinner from .compat import PY2, basestring, builtin_str, byte...
# -*- coding: utf-8 -*- """ yaspin.yaspin ~~~~~~~~~~~~~ A lightweight terminal spinner. """ from __future__ import absolute_import import functools import itertools import signal import sys import threading import time from .base_spinner import default_spinner from .compat import PY2, basestring, builtin_str, byte...
tests/test_signals.py
[ "tests/test_signals.py::test_raise_exception_for_sigkill" ]
2018-09-03
2018-08-31
MIT
LICENSE
c4a41321f4a0db7dcf9f12e53228d912806e8f5c
b3e02167965ad570bd42c65496293528c90bc803
https://github.com/pavdmyt/yaspin/commit/c4a41321f4a0db7dcf9f12e53228d912806e8f5c
https://github.com/pavdmyt/yaspin
yaspin.core
[ "Yaspin" ]
8
1
4bf636bafec70f06
pavdmyt/yaspin@c4a41321f#yaspin/core.py
python
2026-08-18
goldset/0.1
1
vhf/confusable_homoglyphs
is_confusable
Fix #11: work as expected when char not found in datafiles
function
docstring
Checks if `string` contains characters which might be confusable with characters from `preferred_aliases`. If `greedy=False`, it will only return the first confusable character found without looking at the rest of the string, `greedy=True` returns all of them. `preferred_aliases=[]` can take an array of unicode block...
def is_confusable(string, greedy=False, preferred_aliases=[]): """Checks if ``string`` contains characters which might be confusable with characters from ``preferred_aliases``. If ``greedy=False``, it will only return the first confusable character found without looking at the rest of the string, ``gre...
def is_confusable(string, greedy=False, preferred_aliases=[]): """Checks if ``string`` contains characters which might be confusable with characters from ``preferred_aliases``. If ``greedy=False``, it will only return the first confusable character found without looking at the rest of the string, ``gre...
tests/test_confusables.py
[ "tests/test_confusables.py::TestConfusables::test_char_not_found" ]
2018-08-31
2018-05-15
MIT
LICENSE
785aee669e3090fd25ed30aad63a5ef548060a53
0fcfb2b773e5431586c2621048af95dd5f8e7090
https://github.com/vhf/confusable_homoglyphs/commit/785aee669e3090fd25ed30aad63a5ef548060a53
https://github.com/vhf/confusable_homoglyphs
confusable_homoglyphs.confusables
[ "is_confusable" ]
4
1
e67c42879a9f9dd7
vhf/confusable_homoglyphs@785aee669#is_confusable
python
2026-08-18
goldset/0.1
1
mina86/pygtrie
PrefixSet
Fix PrefixSet.copy method
function
docstring
A set of prefixes. :class:`pygtrie.PrefixSet` works similar to a normal set except it is said to contain a key if the key or it's prefix is stored in the set. For instance, if "foo" is added to the set, the set contains "foo" as well as "foobar". The set supports addition of elements but does *not* support removal o...
class PrefixSet(_abc.MutableSet): """A set of prefixes. :class:`pygtrie.PrefixSet` works similar to a normal set except it is said to contain a key if the key or it's prefix is stored in the set. For instance, if "foo" is added to the set, the set contains "foo" as well as "foobar". The set s...
class PrefixSet(_abc.MutableSet): """A set of prefixes. :class:`pygtrie.PrefixSet` works similar to a normal set except it is said to contain a key if the key or it's prefix is stored in the set. For instance, if "foo" is added to the set, the set contains "foo" as well as "foobar". The set s...
test.py
[ "test.py::CharTrieTestCase::test_prefix_set" ]
2018-08-10
2018-08-07
Apache-2.0
LICENSE
344a414dd858707c4e54fa84a1cdec77a1482a7d
905f8c7da2bfe66e3fc32ece95ba84c5b8d3817e
https://github.com/mina86/pygtrie/commit/344a414dd858707c4e54fa84a1cdec77a1482a7d
https://github.com/mina86/pygtrie
pygtrie
[ "PrefixSet" ]
2
1
a601732584b24c9a
mina86/pygtrie@344a414dd#PrefixSet
python
2026-08-18
goldset/0.1
1
ivankorobkov/python-inject
autoparams
Use inspect module for getting type annotations; fix problem with injecting type for return type argument
function
docstring
Return a decorator that will inject args into a function using type annotations, Python >= 3.5 only. For example:: @inject.autoparams() def refresh_cache(cache: RedisCache, db: DbInterface): pass There is an option to specify which arguments we want to inject without attempts of injecting everything:...
def autoparams(*selected_args): """Return a decorator that will inject args into a function using type annotations, Python >= 3.5 only. For example:: @inject.autoparams() def refresh_cache(cache: RedisCache, db: DbInterface): pass There is an option to specify which arguments ...
def autoparams(*selected_args): """Return a decorator that will inject args into a function using type annotations, Python >= 3.5 only. For example:: @inject.autoparams() def refresh_cache(cache: RedisCache, db: DbInterface): pass There is an option to specify which arguments ...
src/test_inject/test_autoparams.py
[ "src/test_inject/test_autoparams.py::TestInjectAutoparams::test_autoparams_omits_return_type" ]
2018-08-01
2018-07-27
Apache-2.0
LICENSE
7ab8fb26c10c67c40ec8d704e599ddafc70245c6
a353d7fe9874de27b2500923f955dd27777cd28e
https://github.com/ivankorobkov/python-inject/commit/7ab8fb26c10c67c40ec8d704e599ddafc70245c6
https://github.com/ivankorobkov/python-inject
inject
[ "autoparams" ]
14
1
7a3ebeafb2f39d46
ivankorobkov/python-inject@7ab8fb26c#autoparams
python
2026-08-18
goldset/0.1
1
pglass/py-openapi-schema-to-json-schema
Fix duplicate references within a schema
file
commit
Fix duplicate references within a schema
import copy class InvalidTypeError(ValueError): def __init__(self, msg): super(InvalidTypeError, self).__init__(msg) def convert(schema, options=None): notSupported = [ 'nullable', 'discriminator', 'readOnly', 'writeOnly', 'xml', 'externalDocs', 'example', 'deprecated', ...
import json class InvalidTypeError(ValueError): def __init__(self, msg): super(InvalidTypeError, self).__init__(msg) def convert(schema, options=None): notSupported = [ 'nullable', 'discriminator', 'readOnly', 'writeOnly', 'xml', 'externalDocs', 'example', 'deprecated', ...
tests/to_jsonschema/test_clone_schema.py
[ "tests/to_jsonschema/test_clone_schema.py::test_clone_schema_with_duplicate_references" ]
2018-07-06
2018-06-23
MIT
LICENSE
6bf3224523e6c5ad466d8e45218637bb1d497196
8a0aba50db69c8c1e541685822379cf4e18e8c92
https://github.com/pglass/py-openapi-schema-to-json-schema/commit/6bf3224523e6c5ad466d8e45218637bb1d497196
https://github.com/pglass/py-openapi-schema-to-json-schema
openapi_schema_to_json_schema.to_jsonschema
[ "convert" ]
4
1
05888b8adced0528
pglass/py-openapi-schema-to-json-schema@6bf322452#openapi_schema_to_json_schema/to_jsonschema.py
python
2026-08-18
goldset/0.1
1
pyconll/pyconll
_dict_empty_map_helper
Added test for misc parsing and fixed bug.
function
docstring
A helper to consolidate logic between singleton and non-singleton mapping. Args: values: The value to parse. empty: The empty representation for this value in CoNLL-U format. delim: The delimiter between components of the value. av_separator: The separator between attribute and value in each component. v_delimiter: Th...
def _dict_empty_map_helper(values, empty, delim, av_separator, v_delimiter, singleton): """ A helper to consolidate logic between singleton and non-singleton mapping. Args: values: The value to parse. empty: The empty representation for this value in CoNLL-U format. d...
def _dict_empty_map_helper(values, empty, delim, av_separator, v_delimiter, singleton): """ A helper to consolidate logic between singleton and non-singleton mapping. Args: values: The value to parse. empty: The empty representation for this value in CoNLL-U format. d...
tests/unit/test_token.py
[ "tests/unit/test_token.py::test_misc_parsing" ]
2018-07-05
2018-07-05
MIT
LICENSE
1f7b6824b0e5a44d6d578b406686c068d484bbcb
cb334e8b9dade962e76f6996c43e147e99785088
https://github.com/pyconll/pyconll/commit/1f7b6824b0e5a44d6d578b406686c068d484bbcb
https://github.com/pyconll/pyconll
pyconll.unit.token
[ "_dict_empty_map_helper" ]
2
1
4e34d546532aee7e
pyconll/pyconll@1f7b6824b#_dict_empty_map_helper
python
2026-08-18
goldset/0.1
1
fastavro/fastavro
read_record
fix issue with aliases when there is a new field in the new schema
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. Schema Resolution: * the ordering of fields may be different: fields are matched by na...
def read_record(fo, writer_schema, reader_schema=None): """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. Schema R...
def read_record(fo, writer_schema, reader_schema=None): """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. Schema R...
tests/test_aliases.py
[ "tests/test_aliases.py::test_aliases_with_default_value_and_field_added" ]
2018-06-26
2018-06-21
MIT
LICENSE
b7959d715022aba03bb705d03cf42677758df32e
b4ff235ba60642b766c00c7e50db83c0d686b45e
https://github.com/fastavro/fastavro/commit/b7959d715022aba03bb705d03cf42677758df32e
https://github.com/fastavro/fastavro
fastavro._read_py
[ "read_record" ]
4
1
d9ec9e43f40cb2bd
fastavro/fastavro@b7959d715#read_record
python
2026-08-18
goldset/0.1
1
bbugyi200/funky
_get_argparser
Fix: command-line arguments with leading dashes not interpretted
function
docstring
Get command-line arguments. Returns: argparse.ArgumentParser object.
def _get_argparser(): """Get command-line arguments. Returns: argparse.ArgumentParser object. """ parser = argparse.ArgumentParser(prog='localalias', description=localalias.__doc__) parser.add_argument('-d', '--debug', action='store_true', help="Enable debug mode.") parser.add_argument(...
def _get_argparser(): """Get command-line arguments. Returns: argparse.ArgumentParser object. """ parser = argparse.ArgumentParser(prog='localalias', description=localalias.__doc__) parser.add_argument('-d', '--debug', action='store_true', help="Enable debug mode.") parser.add_argument(...
tests/test_app.py
[ "tests/test_app.py::test_main[argv3-Execute]" ]
2018-06-10
2018-06-09
MIT
LICENSE
a0108f834808ec7741e119228caa658d47c37890
cc90d0f2feffa9b4dad6f105b6d38e62a94ba7aa
https://github.com/bbugyi200/funky/commit/a0108f834808ec7741e119228caa658d47c37890
https://github.com/bbugyi200/funky
localalias.app
[ "_get_argparser" ]
2
1
7688aea727563af6
bbugyi200/funky@a0108f834#_get_argparser
python
2026-08-18
goldset/0.1
1
python-constraint/python-constraint
fix: scenario with a constraint without variables in python 3.
file
commit
fix: scenario with a constraint without variables in python 3.
#!/usr/bin/python # # Copyright (c) 2005-2014 - Gustavo Niemeyer <gustavo@niemeyer.net> # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the abov...
#!/usr/bin/python # # Copyright (c) 2005-2014 - Gustavo Niemeyer <gustavo@niemeyer.net> # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the abov...
tests/test_constraint.py
[ "tests/test_constraint.py::test_constraint_without_variables" ]
2018-06-04
2018-05-30
BSD-2-Clause
LICENSE
58cd10e121904d4777db7534d74cd40fecf5dc63
3c0b5acf8bc9fb7d11603a709c0222021c09474b
https://github.com/python-constraint/python-constraint/commit/58cd10e121904d4777db7534d74cd40fecf5dc63
https://github.com/python-constraint/python-constraint
constraint.__init__
[ "Problem" ]
2
1
d4293216b506b556
python-constraint/python-constraint@58cd10e12#constraint/__init__.py
python
2026-08-18
goldset/0.1
1
justinmayer/smartypants.py
convert_quotes
Fix double closing quotes after an HTML block
function
docstring
Convert quotes in *text* into HTML curly quote entities. &#8220;Isn&#8217;t this fun?&#8221;
def convert_quotes(text): """ Convert quotes in *text* into HTML curly quote entities. >>> print(convert_quotes('"Isn\\'t this fun?"')) &#8220;Isn&#8217;t this fun?&#8221; """ punct_class = r"""[!"#\$\%'()*+,-.\/:;<=>?\@\[\\\]\^_`{|}~]""" # Special case if the very first character is a qu...
def convert_quotes(text): """ Convert quotes in *text* into HTML curly quote entities. >>> print(convert_quotes('"Isn\\'t this fun?"')) &#8220;Isn&#8217;t this fun?&#8221; """ punct_class = r"""[!"#\$\%'()*+,-.\/:;<=>?\@\[\\\]\^_`{|}~]""" # Special case if the very first character is a qu...
tests/test.py
[ "tests/test.py::SmartyPantsTestCase::test_quotes_and_html" ]
2018-05-19
2017-12-24
BSD-2-Clause
COPYING
e0404a13694004cd9a5f78ee02003e30194294df
c46d26c559d706b6e0aa423190ab2d6edf1fdfcd
https://github.com/justinmayer/smartypants.py/commit/e0404a13694004cd9a5f78ee02003e30194294df
https://github.com/justinmayer/smartypants.py
smartypants
[ "convert_quotes" ]
7
1
894dc9f54b806038
justinmayer/smartypants.py@e0404a136#convert_quotes
python
2026-08-18
goldset/0.1
1
berkerpeksag/astor
Fix trailing newlines in f-strings (#103)
file
commit
Fix trailing newlines in f-strings (#103)
# -*- coding: utf-8 -*- """ Part of the astor library for Python AST manipulation. License: 3-clause BSD Copyright (c) 2008 Armin Ronacher Copyright (c) 2012-2017 Patrick Maupin Copyright (c) 2013-2017 Berker Peksag This module converts an AST into Python source code. Before being version-controlled as part of...
# -*- coding: utf-8 -*- """ Part of the astor library for Python AST manipulation. License: 3-clause BSD Copyright (c) 2008 Armin Ronacher Copyright (c) 2012-2017 Patrick Maupin Copyright (c) 2013-2017 Berker Peksag This module converts an AST into Python source code. Before being version-controlled as part of...
tests/test_code_gen.py
[ "tests/test_code_gen.py::CodegenTestCase::test_fstring_trailing_newline" ]
2018-05-07
2018-04-06
BSD-3-Clause
LICENSE
3c4efdb936cb98892d1915d8d4463b5ba772b935
b47718fa095e456c064d3d222f296fccfe36266b
https://github.com/berkerpeksag/astor/commit/3c4efdb936cb98892d1915d8d4463b5ba772b935
https://github.com/berkerpeksag/astor
astor.code_gen
[ "SourceGenerator" ]
3
1
b187e8093b5d1c76
berkerpeksag/astor@3c4efdb93#astor/code_gen.py
python
2026-08-18
goldset/0.1
1
construct/construct
Fix issue #709: Hex() might not always work.
file
commit
Fix issue #709: Hex() might not always work.
from construct.lib.py3compat import * import re globalPrintFullStrings = False globalPrintFalseFlags = False globalPrintPrivateEntries = False def setGlobalPrintFullStrings(enabled=False): r""" When enabled, Container __str__ produces full content of bytes and unicode strings, otherwise and by default, it p...
from construct.lib.py3compat import * import re globalPrintFullStrings = False globalPrintFalseFlags = False globalPrintPrivateEntries = False def setGlobalPrintFullStrings(enabled=False): r""" When enabled, Container __str__ produces full content of bytes and unicode strings, otherwise and by default, it p...
tests/test_core.py
[ "tests/test_core.py::test_hex_issue_709" ]
2018-05-05
2018-04-09
MIT
LICENSE
32137b4defe636b53176f1d69cab2d0249547afb
c30c74aff532b068d3449b5f18ab7fd104a54fa4
https://github.com/construct/construct/commit/32137b4defe636b53176f1d69cab2d0249547afb
https://github.com/construct/construct
construct.lib.containers
[ "Container" ]
2
1
42f32ca6e605e345
construct/construct@32137b4de#construct/lib/containers.py
python
2026-08-18
goldset/0.1
1
lark-parser/lark
Fixed bug in Earley prioritization
file
commit
Fixed bug in Earley prioritization
from ..utils import compare from functools import cmp_to_key from ..tree import Tree, Visitor_NoRecurse # Standard ambiguity resolver (uses comparison) # # Author: Erez Sh def _compare_rules(rule1, rule2): c = -compare( len(rule1.expansion), len(rule2.expansion)) if rule1.origin.startswith('__'): # XXX ha...
from ..utils import compare from functools import cmp_to_key from ..tree import Tree, Visitor_NoRecurse # Standard ambiguity resolver (uses comparison) # # Author: Erez Sh def _compare_rules(rule1, rule2): return -compare( len(rule1.expansion), len(rule2.expansion)) def _sum_priority(tree): p = 0 for ...
tests/test_parser.py
[ "tests/test_parser.py::TestFullEarleyDynamic::test_term_ambig_resolve", "tests/test_parser.py::TestFullEarleyScanless::test_term_ambig_resolve" ]
2018-04-05
2018-04-05
MIT
LICENSE
4f2330fc9b75869fcb5d887bcfca349af8e5ca20
25c3c51b1c6c096b6e4bcfe63d543fece572b72d
https://github.com/lark-parser/lark/commit/4f2330fc9b75869fcb5d887bcfca349af8e5ca20
https://github.com/lark-parser/lark
lark.parsers.resolve_ambig
[ "_compare_rules" ]
6
2
cf7d1650b700e7e6
lark-parser/lark@4f2330fc9#lark/parsers/resolve_ambig.py
python
2026-08-18
goldset/0.1
1
construct/construct
VarInt
VarInt fixed, bug #705 returning modified non-original value from build
function
docstring
VarInt encoded integer. Each 7 bits of the number are encoded in one byte of the stream, where leftmost bit (MSB) is unset when byte is terminal. Scheme is defined at Google site related to `Protocol Buffers <https://developers.google.com/protocol-buffers/docs/encoding>`_. Can only encode non-negative numbers. Parses...
class VarInt(Construct): r""" VarInt encoded integer. Each 7 bits of the number are encoded in one byte of the stream, where leftmost bit (MSB) is unset when byte is terminal. Scheme is defined at Google site related to `Protocol Buffers <https://developers.google.com/protocol-buffers/docs/encoding>`_. Can...
class VarInt(Construct): r""" VarInt encoded integer. Each 7 bits of the number are encoded in one byte of the stream, where leftmost bit (MSB) is unset when byte is terminal. Scheme is defined at Google site related to `Protocol Buffers <https://developers.google.com/protocol-buffers/docs/encoding>`_. Can...
tests/test_core.py
[ "tests/test_core.py::test_varint_issue_705" ]
2018-04-02
2018-03-31
MIT
LICENSE
bc911f6854368fb4ea20a2381c7f3d0c81df4752
4546be4ab42ebbb02aff263300cd34f21740f13d
https://github.com/construct/construct/commit/bc911f6854368fb4ea20a2381c7f3d0c81df4752
https://github.com/construct/construct
construct.core
[ "VarInt" ]
9
1
58b0dfae92acddf3
construct/construct@bc911f685#VarInt
python
2026-08-18
goldset/0.1
1
andialbrecht/sqlparse
Fix issue with get_real_name returning incorrect name
file
commit
Fix issue with get_real_name returning incorrect name
# -*- coding: utf-8 -*- # # Copyright (C) 2016 Andi Albrecht, albrecht.andi@gmail.com # # This module is part of python-sqlparse and is released under # the BSD License: https://opensource.org/licenses/BSD-3-Clause """This module contains classes representing syntactical elements of SQL.""" from __future__ import prin...
# -*- coding: utf-8 -*- # # Copyright (C) 2016 Andi Albrecht, albrecht.andi@gmail.com # # This module is part of python-sqlparse and is released under # the BSD License: https://opensource.org/licenses/BSD-3-Clause """This module contains classes representing syntactical elements of SQL.""" from __future__ import prin...
tests/test_parse.py
[ "tests/test_parse.py::test_get_real_name" ]
2018-03-21
2018-03-21
BSD-3-Clause
LICENSE
e07e09540d056f2fad0f18acfb8196b42c2ace66
19b9e6756c796752565950d89598ef8b46ca786d
https://github.com/andialbrecht/sqlparse/commit/e07e09540d056f2fad0f18acfb8196b42c2ace66
https://github.com/andialbrecht/sqlparse
sqlparse.sql
[ "TokenList" ]
7
1
ef53131f3090b9ef
andialbrecht/sqlparse@e07e09540#sqlparse/sql.py
python
2026-08-18
goldset/0.1
1
heuer/segno
CLI raises no exception with a traceback anymore but writes the error msg to std.error and returns an error code.
file
commit
CLI raises no exception with a traceback anymore but writes the error msg to std.error and returns an error code.
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2016 - 2018 -- Lars Heuer - Semagia <http://www.semagia.com/>. # All rights reserved. # # License: BSD License # """\ Command line script to generate QR Codes with Segno. "QR Code" and "Micro QR Code" are registered trademarks of DENSO WAVE INCORPORATED. ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2016 - 2018 -- Lars Heuer - Semagia <http://www.semagia.com/>. # All rights reserved. # # License: BSD License # """\ Command line script to generate QR Codes with Segno. "QR Code" and "Micro QR Code" are registered trademarks of DENSO WAVE INCORPORATED. ...
tests/test_cli.py
[ "tests/test_cli.py::test_error_code" ]
2018-03-18
2018-02-25
BSD-3-Clause
LICENSE
01bd15d312aa7da2fa546d2ab47c198c52ffbf5a
79307d85681bcccff1102cd2f3a1ae1b2364b29d
https://github.com/heuer/segno/commit/01bd15d312aa7da2fa546d2ab47c198c52ffbf5a
https://github.com/heuer/segno
segno.cli
[ "main" ]
8
1
ecaf07999dd091de
heuer/segno@01bd15d31#segno/cli.py
python
2026-08-18
goldset/0.1
1
construct/construct
TransformData
TransformData fixed, returns buildret (bug #676)
function
docstring
Parses a field on transfored data (or transforms data after building). Parsing reads a specified amount, processes data using a bytes-to-bytes decoding function, then parses subcon using those data. Building does build subcon into separate bytes, then processes using encoding encoding, then writes those data into main...
class TransformData(Subconstruct): r""" Parses a field on transfored data (or transforms data after building). Parsing reads a specified amount, processes data using a bytes-to-bytes decoding function, then parses subcon using those data. Building does build subcon into separate bytes, then processes using...
class TransformData(Subconstruct): r""" Parses a field on transfored data (or transforms data after building). Parsing reads a specified amount, processes data using a bytes-to-bytes decoding function, then parses subcon using those data. Building does build subcon into separate bytes, then processes using...
tests/test_core.py
[ "tests/test_core.py::test_transformdata_issue_676" ]
2018-03-03
2018-03-03
MIT
LICENSE
b0edc94ed1fbc7461b82bd224db6bd8ed2060976
cd31d6422a338fbc93d918a9578d51b29e7f3f63
https://github.com/construct/construct/commit/b0edc94ed1fbc7461b82bd224db6bd8ed2060976
https://github.com/construct/construct
construct.core
[ "TransformData" ]
2
1
70c155c0f83c946e
construct/construct@b0edc94ed#TransformData
python
2026-08-18
goldset/0.1
1
uiri/toml
Fix #148 and add test for it
file
commit
Fix #148 and add test for it
import datetime import re import sys from toml.decoder import InlineTableDict if sys.version_info >= (3,): unicode = str def dump(o, f): """Writes out dict as toml to a file Args: o: Object to dump into toml f: File descriptor where the toml should be stored Returns: String...
import datetime import re import sys from toml.decoder import InlineTableDict if sys.version_info >= (3,): unicode = str def dump(o, f): """Writes out dict as toml to a file Args: o: Object to dump into toml f: File descriptor where the toml should be stored Returns: String...
tests/test_api.py
[ "tests/test_api.py::test_bug_148" ]
2018-02-01
2018-01-28
MIT
LICENSE
b1f30f473136e366d4f1d08942332c9ff40754bc
a2a7b92d1da95144648c295abef6380b5f489618
https://github.com/uiri/toml/commit/b1f30f473136e366d4f1d08942332c9ff40754bc
https://github.com/uiri/toml
toml.encoder
[ "_dump_str" ]
19
1
f9abc1716103f289
uiri/toml@b1f30f473#toml/encoder.py
python
2026-08-18
goldset/0.1
1
simplistix/sybil
Document
Better feedback when parsing goes wrong.
function
docstring
This is Sybil's representation of a documentation source file. It will be instantiated by Sybil and provided to each parser in turn.
class Document(object): """ This is Sybil's representation of a documentation source file. It will be instantiated by Sybil and provided to each parser in turn. """ def __init__(self, text, path): #: This is the text of the documentation source file. self.text = text #: This...
class Document(object): """ This is Sybil's representation of a documentation source file. It will be instantiated by Sybil and provided to each parser in turn. """ def __init__(self, text, path): #: This is the text of the documentation source file. self.text = text #: This...
tests/test_sybil.py
[ "tests/test_sybil.py::TestDocument::test_add_after_end", "tests/test_sybil.py::TestDocument::test_add_before_start" ]
2018-01-25
2017-11-30
MIT
LICENSE.txt
a671b3c58e68a74e4539c94f46f6d94b7ea8c670
e66ae11bd033d24af714aea5d79d9a6e4b3bf7ab
https://github.com/simplistix/sybil/commit/a671b3c58e68a74e4539c94f46f6d94b7ea8c670
https://github.com/simplistix/sybil
sybil.document
[ "Document" ]
21
2
c5f1900aa5af02cc
simplistix/sybil@a671b3c58#Document
python
2026-08-18
goldset/0.1
1
wbond/asn1crypto
Fix type checking in pem.armor()
file
commit
Fix type checking in pem.armor()
# coding: utf-8 """ Encoding DER to PEM and decoding PEM to DER. Exports the following items: - armor() - detect() - unarmor() """ from __future__ import unicode_literals, division, absolute_import, print_function import base64 import re import sys from ._errors import unwrap from ._types import type_name, str...
# coding: utf-8 """ Encoding DER to PEM and decoding PEM to DER. Exports the following items: - armor() - detect() - unarmor() """ from __future__ import unicode_literals, division, absolute_import, print_function import base64 import re import sys from ._errors import unwrap from ._types import type_name as _...
tests/test_pem.py
[ "tests/test_pem.py::PEMTests::test_armor_wrong_type" ]
2017-11-28
2017-11-22
MIT
LICENSE
b7256ed36f786a79ce93c72a5c6bcbe2826c8832
7f587d56f2b5c4815bfed835cfc10abd9c49cdb2
https://github.com/wbond/asn1crypto/commit/b7256ed36f786a79ce93c72a5c6bcbe2826c8832
https://github.com/wbond/asn1crypto
asn1crypto.pem
[ "armor", "detect" ]
8
1
5778095368b2c436
wbond/asn1crypto@b7256ed36#asn1crypto/pem.py
python
2026-08-18
goldset/0.1
1
lark-parser/lark
%ignore bug fixed in xearley (thanks to issue #44)
file
commit
%ignore bug fixed in xearley (thanks to issue #44)
"This module implements an experimental Earley Parser with a dynamic lexer" # The parser uses a parse-forest to keep track of derivations and ambiguations. # When the parse ends successfully, a disambiguation stage resolves all ambiguity # (right now ambiguity resolution is not developed beyond the needs of lark) # Af...
"This module implements an experimental Earley Parser with a dynamic lexer" # The parser uses a parse-forest to keep track of derivations and ambiguations. # When the parse ends successfully, a disambiguation stage resolves all ambiguity # (right now ambiguity resolution is not developed beyond the needs of lark) # Af...
tests/test_parser.py
[ "tests/test_parser.py::TestEarleyDynamic::test_ignore" ]
2017-11-19
2017-11-17
MIT
LICENSE
6f85ca42947118d9f19644ae1f42eae25f716077
34449651bf24e1dd130d9986dde930582e176749
https://github.com/lark-parser/lark/commit/6f85ca42947118d9f19644ae1f42eae25f716077
https://github.com/lark-parser/lark
lark.parsers.xearley
[ "Parser" ]
8
1
2a154dd8fc87db4a
lark-parser/lark@6f85ca429#lark/parsers/xearley.py
python
2026-08-18
goldset/0.1
1
assertpy/assertpy
fixes #70 - raises() assertion supports any callable
file
commit
fixes #70 - raises() assertion supports any callable
# Copyright (c) 2015-2017, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
# Copyright (c) 2015-2017, Activision Publishing, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of ...
tests/test_expected_exception.py
[ "tests/test_expected_exception.py::test_expected_exception_method" ]
2017-11-16
2017-11-09
BSD-3-Clause
LICENSE
6ce4d79f612b82d05183d5301544cd5b0cf001ce
b02493f6c35a7130b34a26251425494d933e20aa
https://github.com/assertpy/assertpy/commit/6ce4d79f612b82d05183d5301544cd5b0cf001ce
https://github.com/assertpy/assertpy
assertpy.assertpy
[ "AssertionBuilder" ]
6
1
e6cf57162bde325b
assertpy/assertpy@6ce4d79f6#assertpy/assertpy.py
python
2026-08-18
goldset/0.1
1
mahmoud/boltons
SpooledIOBase
Fix line-by-line file iteration in ioutils modules
function
docstring
The SpooledTempoaryFile class doesn't support a number of attributes and methods that a StringIO instance does. This brings the api as close to compatible as possible with StringIO so that it may be used as a near drop-in replacement to save memory. Another issue with SpooledTemporaryFile is that the spooled file is a...
class SpooledIOBase(object): """ The SpooledTempoaryFile class doesn't support a number of attributes and methods that a StringIO instance does. This brings the api as close to compatible as possible with StringIO so that it may be used as a near drop-in replacement to save memory. Another issu...
class SpooledIOBase(object): """ The SpooledTempoaryFile class doesn't support a number of attributes and methods that a StringIO instance does. This brings the api as close to compatible as possible with StringIO so that it may be used as a near drop-in replacement to save memory. Another issu...
tests/test_ioutils.py
[ "tests/test_ioutils.py::TestSpooledBytesIO::test_iter" ]
2017-11-10
2017-10-11
BSD-2-Clause
LICENSE
55a2791b77a991bd130af9f1a2298019b318bd4a
115cded54814ee5ff0b32d9bf976fd554b0a74dd
https://github.com/mahmoud/boltons/commit/55a2791b77a991bd130af9f1a2298019b318bd4a
https://github.com/mahmoud/boltons
boltons.ioutils
[ "SpooledIOBase" ]
16
1
1520c477b3bb28b6
mahmoud/boltons@55a2791b7#SpooledIOBase
python
2026-08-18
goldset/0.1
1
fastavro/fastavro
validate
fix logicalType nullable date
function
docstring
Determine if a python datum is an instance of a schema.
def validate(datum, schema): """Determine if a python datum is an instance of a schema.""" record_type = extract_record_type(schema) if record_type == 'null': return datum is None if record_type == 'boolean': return isinstance(datum, bool) if record_type == 'string': retur...
def validate(datum, schema): """Determine if a python datum is an instance of a schema.""" record_type = extract_record_type(schema) if record_type == 'null': return datum is None if record_type == 'boolean': return isinstance(datum, bool) if record_type == 'string': retur...
tests/test_logical_types.py
[ "tests/test_logical_types.py::test_not_null_date" ]
2017-10-31
2017-09-17
MIT
LICENSE
0db133e4e96a592a1d3582b2c43acbeb0254324a
e752a9559368ea2d12d17f33263a2c80e8c9409f
https://github.com/fastavro/fastavro/commit/0db133e4e96a592a1d3582b2c43acbeb0254324a
https://github.com/fastavro/fastavro
fastavro.writer
[ "validate" ]
4
1
de3b107df8d80e69
fastavro/fastavro@0db133e4e#validate
python
2026-08-18
goldset/0.1
1
python-hyper/hyperlink
Don't fail when child gets no segments.
file
commit
Don't fail when child gets no segments.
# -*- coding: utf-8 -*- u"""Hyperlink provides Pythonic URL parsing, construction, and rendering. Usage is straightforward:: >>> from hyperlink import URL >>> url = URL.from_text(u'http://github.com/mahmoud/hyperlink?utm_source=docs') >>> url.host u'github.com' >>> secure_url = url.replace(scheme=u'htt...
# -*- coding: utf-8 -*- u"""Hyperlink provides Pythonic URL parsing, construction, and rendering. Usage is straightforward:: >>> from hyperlink import URL >>> url = URL.from_text(u'http://github.com/mahmoud/hyperlink?utm_source=docs') >>> url.host u'github.com' >>> secure_url = url.replace(scheme=u'htt...
hyperlink/test/test_url.py
[ "hyperlink/test/test_url.py::TestURL::test_emptyChild" ]
2017-10-26
2017-08-29
MIT
LICENSE
c6c2a9db8995e62be70a36338e86fb5e1a614bb4
12e22d9bf2f1037fa2bf4c617d5094cf01ff5ca8
https://github.com/python-hyper/hyperlink/commit/c6c2a9db8995e62be70a36338e86fb5e1a614bb4
https://github.com/python-hyper/hyperlink
hyperlink._url
[ "URL" ]
3
1
8a306d1a795d29ed
python-hyper/hyperlink@c6c2a9db8#hyperlink/_url.py
python
2026-08-18
goldset/0.1
1
foutaise/texttable
len
fix bug in wide chars handling
function
docstring
Redefining len here so it will be able to work with non-ASCII characters
def len(iterable): """Redefining len here so it will be able to work with non-ASCII characters """ if isinstance(iterable, bytes_type) or isinstance(iterable, unicode_type): unicode_data = obj2unicode(iterable) if hasattr(unicodedata, 'east_asian_width'): w = unicodedata.east_asi...
def len(iterable): """Redefining len here so it will be able to work with non-ASCII characters """ if isinstance(iterable, bytes_type) or isinstance(iterable, unicode_type): unicode_data = obj2unicode(iterable) if hasattr(unicodedata, 'east_asian_width'): w = unicodedata.east_asi...
tests.py
[ "tests.py::test_combining_char2" ]
2017-10-14
2017-09-11
MIT
LICENSE
47e0ad62f756aea2cd67a0e8988f3e6a1f658991
54d7362a7d977a52a8c21222d43c7d5518666a32
https://github.com/foutaise/texttable/commit/47e0ad62f756aea2cd67a0e8988f3e6a1f658991
https://github.com/foutaise/texttable
texttable
[ "len" ]
2
1
a5687bd700f575db
foutaise/texttable@47e0ad62f#len
python
2026-08-18
goldset/0.1
1
construct/construct
FIX: Left-shift operator (#406)
file
commit
FIX: Left-shift operator (#406)
import operator if not hasattr(operator, "div"): operator.div = operator.truediv opnames = { operator.add : "+", operator.sub : "-", operator.mul : "*", operator.div : "/", operator.floordiv : "//", operator.mod : "%", operator.pow : "**", operator.xor : "^", operator.lshift : ...
import operator if not hasattr(operator, "div"): operator.div = operator.truediv opnames = { operator.add : "+", operator.sub : "-", operator.mul : "*", operator.div : "/", operator.floordiv : "//", operator.mod : "%", operator.pow : "**", operator.xor : "^", operator.lshift : ...
tests/test_all.py
[ "tests/test_all.py::TestCore::test_lshift" ]
2017-10-08
2017-10-08
MIT
LICENSE
02ec101c1edb4df01eb8b9af053091e83f442775
a8c4e8be1bb7950423bbfc53c9eaf300081a9526
https://github.com/construct/construct/commit/02ec101c1edb4df01eb8b9af053091e83f442775
https://github.com/construct/construct
construct.expr
[ "ExprMixin" ]
4
1
8e304bbe2cabb0b1
construct/construct@02ec101c1#construct/expr.py
python
2026-08-18
goldset/0.1
1
edwardgeorge/virtualenv-clone
Fix fixup_pth_file with files written in UNICODE rather than UTF-8.
file
commit
Fix fixup_pth_file with files written in UNICODE rather than UTF-8.
#!/usr/bin/env python from __future__ import with_statement import logging import optparse import os import os.path import re import shutil import subprocess import sys import itertools version_info = (0, 2, 6) __version__ = '.'.join(map(str, version_info)) logger = logging.getLogger() if sys.version_info < (2, 6)...
#!/usr/bin/env python from __future__ import with_statement import logging import optparse import os import os.path import re import shutil import subprocess import sys import itertools version_info = (0, 2, 6) __version__ = '.'.join(map(str, version_info)) logger = logging.getLogger() if sys.version_info < (2, 6...
tests/test_fixup_scripts.py
[ "tests/test_fixup_scripts.py::TestFixupScripts::test_fixup_pth_file" ]
2017-10-06
2017-10-06
MIT
LICENSE
b318cbb3828b465293759464d8c164d467e2893f
b9f4dd518297d4a9e0a64ceb0e5aa7a376162b3c
https://github.com/edwardgeorge/virtualenv-clone/commit/b318cbb3828b465293759464d8c164d467e2893f
https://github.com/edwardgeorge/virtualenv-clone
clonevirtualenv
[ "fixup_pth_file" ]
17
1
bd44ead29f227287
edwardgeorge/virtualenv-clone@b318cbb38#clonevirtualenv.py
python
2026-08-18
goldset/0.1
1
pre-commit/pre-commit-hooks
Fix mixed-line-endings --fix=... when whole file is a different ending
file
commit
Fix mixed-line-endings --fix=... when whole file is a different ending
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import argparse import collections CRLF = b'\r\n' LF = b'\n' CR = b'\r' # Prefer LF to CRLF to CR, but detect CRLF before LF ALL_ENDINGS = (CR, CRLF, LF) FIX_TO_LINE_ENDING = {'cr': CR, 'crlf': CRLF, ...
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import argparse import collections CRLF = b'\r\n' LF = b'\n' CR = b'\r' # Prefer LF to CRLF to CR, but detect CRLF before LF ALL_ENDINGS = (CR, CRLF, LF) FIX_TO_LINE_ENDING = {'cr': CR, 'crlf': CRLF, ...
tests/mixed_line_ending_test.py
[ "tests/mixed_line_ending_test.py::test_fix_lf_all_crlf" ]
2017-09-27
2017-09-19
MIT
LICENSE
76047f6eefd4dd2794a24904b9d154fe85fec412
efdceb4e40cda10780f4646ec944f55b5786190d
https://github.com/pre-commit/pre-commit-hooks/commit/76047f6eefd4dd2794a24904b9d154fe85fec412
https://github.com/pre-commit/pre-commit-hooks
pre_commit_hooks.mixed_line_ending
[ "fix_filename" ]
3
1
ca3eba62b9424e2a
pre-commit/pre-commit-hooks@76047f6ee#pre_commit_hooks/mixed_line_ending.py
python
2026-08-18
goldset/0.1
1