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
andialbrecht/sqlparse
Fix handling of semicolon when grouping assignments (fixes #359).
file
commit
Fix handling of semicolon when grouping assignments (fixes #359).
# -*- 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 from sqlparse import sql from sqlparse import tokens as T from sqlparse.utils import recurse, imt T_NUM...
# -*- 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 from sqlparse import sql from sqlparse import tokens as T from sqlparse.utils import recurse, imt T_NUM...
tests/test_regressions.py
[ "tests/test_regressions.py::test_issue359_index_error_assignments[SELECT" ]
2017-09-24
2017-09-21
BSD-3-Clause
LICENSE
097478e47fbc0423118f82a0a7b458c2e9dbea7b
d7a290c43708b3a743472db34e0519159d8ee134
https://github.com/andialbrecht/sqlparse/commit/097478e47fbc0423118f82a0a7b458c2e9dbea7b
https://github.com/andialbrecht/sqlparse
sqlparse.engine.grouping
[ "group_assignment" ]
2
1
f55912b7c9099d6f
andialbrecht/sqlparse@097478e47#sqlparse/engine/grouping.py
python
2026-08-18
goldset/0.1
1
eerimoq/bincopy
Fix: Merge adjacent segments when fast inserting.
file
commit
Fix: Merge adjacent segments when fast inserting.
"""Mangling of various file formats that conveys binary information (Motorola S-Record, Intel HEX and binary files). """ from __future__ import print_function, division import binascii import string import sys import argparse try: from StringIO import StringIO except ImportError: from io import StringIO _...
"""Mangling of various file formats that conveys binary information (Motorola S-Record, Intel HEX and binary files). """ from __future__ import print_function, division import binascii import string import sys import argparse try: from StringIO import StringIO except ImportError: from io import StringIO _...
tests/test_bincopy.py
[ "tests/test_bincopy.py::BinCopyTest::test_non_sorted_segments" ]
2017-09-18
2017-09-18
MIT
LICENSE
6ff05a3db263305ea9a9add870ecb4022d20fd88
bb6cb605437ed26e7321bbc7bee81d213eb19c8a
https://github.com/eerimoq/bincopy/commit/6ff05a3db263305ea9a9add870ecb4022d20fd88
https://github.com/eerimoq/bincopy
bincopy
[ "BinFile", "_Segment", "_Segments" ]
16
1
90d66113c402a3ee
eerimoq/bincopy@6ff05a3db#bincopy.py
python
2026-08-18
goldset/0.1
1
optimizely/python-sdk
get_numeric_value
Fixed a bug with how the numeric metric getters handle non string and number values. (#77)
function
docstring
A smart getter of the numeric value from the event tags. Args: event_tags: A dictionary of event tags. logger: Optional logger. Returns: A float numeric metric value is returned when the provided numeric metric value is in the following format: - A string (properly formatted, e.g., no commas) ...
def get_numeric_value(event_tags, logger=None): """ A smart getter of the numeric value from the event tags. Args: event_tags: A dictionary of event tags. logger: Optional logger. Returns: A float numeric metric value is returned when the provided numeric metric value is in the followi...
def get_numeric_value(event_tags, logger=None): """ A smart getter of the numeric value from the event tags. Args: event_tags: A dictionary of event tags. logger: Optional logger. Returns: A float numeric metric value is returned when the provided numeric metric value is in the followi...
tests/helpers_tests/test_event_tag_utils.py
[ "tests/helpers_tests/test_event_tag_utils.py::EventTagUtilsTest::test_get_numeric_metric__value_tag" ]
2017-09-14
2017-09-14
Apache-2.0
LICENSE
dcef2eb8c3b1ac3dee1fb664aa4669b0812d90e6
74c3fb44a26bc6415ea167fd3a13d58ec8fb90be
https://github.com/optimizely/python-sdk/commit/dcef2eb8c3b1ac3dee1fb664aa4669b0812d90e6
https://github.com/optimizely/python-sdk
optimizely.helpers.event_tag_utils
[ "get_numeric_value" ]
1
1
fe3ac4fbf0f3bac7
optimizely/python-sdk@dcef2eb8c#get_numeric_value
python
2026-08-18
goldset/0.1
1
alvinwan/TexSoup
read_tex
added fix for special puncutation commands
function
docstring
Read next expression from buffer :param Buffer src: a buffer of tokens
def read_tex(src): r"""Read next expression from buffer :param Buffer src: a buffer of tokens """ c = next(src) if c.startswith('$'): name = '$$' if c.startswith('$$') else '$' return TexEnv(name, [c[len(name):-len(name)]], nobegin=True) if c == '\\': if src.peek().start...
def read_tex(src): r"""Read next expression from buffer :param Buffer src: a buffer of tokens """ c = next(src) if c.startswith('$'): name = '$$' if c.startswith('$$') else '$' return TexEnv(name, [c[len(name):-len(name)]], nobegin=True) if c == '\\': if src.peek().start...
tests/test_parser.py
[ "tests/test_parser.py::test_punctuation_command_structure" ]
2017-09-03
2017-09-03
BSD-2-Clause
LICENSE
5e6f59bdcd0143e3661a2f3debda8cb0686b1745
592160172bfb624bce4ca40d3db06216b9f6c33e
https://github.com/alvinwan/TexSoup/commit/5e6f59bdcd0143e3661a2f3debda8cb0686b1745
https://github.com/alvinwan/TexSoup
TexSoup.reader
[ "read_tex" ]
2
1
28f5428bb9d9e97f
alvinwan/TexSoup@5e6f59bdc#read_tex
python
2026-08-18
goldset/0.1
1
construct/construct
Switch
Switch fixed (bug #357)
function
docstring
A conditional branch. Switch will choose the case to follow based on the return value of keyfunc. If no case is matched, and no default value is given, SwitchError will be raised. .. warning:: You can use Embedded(Switch(...)) but not Switch(Embedded(...)). Sames applies to If and IfThenElse macros. :param keyfunc: a...
class Switch(Construct): r""" A conditional branch. Switch will choose the case to follow based on the return value of keyfunc. If no case is matched, and no default value is given, SwitchError will be raised. .. warning:: You can use Embedded(Switch(...)) but not Switch(Embedded(...)). Sames applies to If...
class Switch(Construct): r""" A conditional branch. Switch will choose the case to follow based on the return value of keyfunc. If no case is matched, and no default value is given, SwitchError will be raised. .. warning:: You can use Embedded(Switch(...)) but not Switch(Embedded(...)). Sames applies to If...
tests/test_all.py
[ "tests/test_all.py::TestCore::test_switch_issue_357" ]
2017-08-29
2017-08-29
MIT
LICENSE
59950198024f8e663da80a9d76b6eab0a8f1dad1
95c7fff4099220fa2563ca79b554b62f6e6c0bde
https://github.com/construct/construct/commit/59950198024f8e663da80a9d76b6eab0a8f1dad1
https://github.com/construct/construct
construct.core
[ "Switch" ]
16
1
1d8d1240e4b1ab5d
construct/construct@599501980#Switch
python
2026-08-18
goldset/0.1
1
terryyin/lizard
CLikeNestingStackStates
fix https://github.com/terryyin/lizard/issues/178
function
docstring
Machinery to track nesting levels of tokens. The main indicators of nesting are braces: '{' and '}'. However, the code is complicated due to braceless structures, which are control-flow structures in C-like languages. Moreover, using braces as nesting level indicators leads to a big caveat; C++ initializer lists, unif...
class CLikeNestingStackStates(CodeStateMachine): """Machinery to track nesting levels of tokens. The main indicators of nesting are braces: '{' and '}'. However, the code is complicated due to braceless structures, which are control-flow structures in C-like languages. Moreover, using braces as nes...
class CLikeNestingStackStates(CodeStateMachine): """Machinery to track nesting levels of tokens. The main indicators of nesting are braces: '{' and '}'. However, the code is complicated due to braceless structures, which are control-flow structures in C-like languages. Moreover, using braces as nes...
test/test_languages/testCAndCPP.py
[ "test/test_languages/testCAndCPP.py::Test_Preprocessing::test_body_with_macro_call_after_if_and_no_semicolon_before_the_closing_br2" ]
2017-08-22
2017-08-21
MIT
LICENSE.txt
7c294306c7e5f22e5333e91b74d97a1c11494edb
fe6cafa6feec1f1d2787ce609da29af51c5c1c2a
https://github.com/terryyin/lizard/commit/7c294306c7e5f22e5333e91b74d97a1c11494edb
https://github.com/terryyin/lizard
lizard_languages.clike
[ "CLikeNestingStackStates" ]
2
1
5f6d8a76d99f2243
terryyin/lizard@7c294306c#CLikeNestingStackStates
python
2026-08-18
goldset/0.1
1
andialbrecht/sqlparse
Fix parsing of UNION ALL after WHERE (fixes #349).
file
commit
Fix parsing of UNION ALL after WHERE (fixes #349).
# -*- 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_grouping.py
[ "tests/test_grouping.py::test_grouping_where_union[select" ]
2017-07-29
2017-05-25
BSD-3-Clause
LICENSE
113897280c612aa839fa9f8bd44bfd720d3729c7
dc788ab5b1af2e2a4a988b31a09d8d6656853f76
https://github.com/andialbrecht/sqlparse/commit/113897280c612aa839fa9f8bd44bfd720d3729c7
https://github.com/andialbrecht/sqlparse
sqlparse.sql
[ "Where" ]
5
1
03e408b8cd7535f0
andialbrecht/sqlparse@113897280#sqlparse/sql.py
python
2026-08-18
goldset/0.1
1
pycqa/flake8
Remediate one wafer thing decision logic bug
file
commit
Remediate one wafer thing decision logic bug
"""Implementation of the StyleGuide used by Flake8.""" import collections import contextlib import enum import functools import linecache import logging from flake8 import defaults from flake8 import statistics from flake8 import utils __all__ = ( 'StyleGuide', ) LOG = logging.getLogger(__name__) try: lru_...
"""Implementation of the StyleGuide used by Flake8.""" import collections import contextlib import enum import functools import linecache import logging from flake8 import defaults from flake8 import statistics from flake8 import utils __all__ = ( 'StyleGuide', ) LOG = logging.getLogger(__name__) try: lru_...
tests/unit/test_decision_engine.py
[ "tests/unit/test_decision_engine.py::test_more_specific_decision_for_logic[select19-ignore19-extend_select19-enabled_extensions19-I101-Decision.Ignored]" ]
2017-07-28
2017-07-27
MIT
LICENSE
a44a09f87a783ddfb15634ed0cf9aba76138f991
0239f15dcce323357f316a66225b0d4d2308de28
https://github.com/pycqa/flake8/commit/a44a09f87a783ddfb15634ed0cf9aba76138f991
https://github.com/pycqa/flake8
flake8.style_guide
[ "DecisionEngine" ]
3
1
ffc568514bde6cf8
pycqa/flake8@a44a09f87#src/flake8/style_guide.py
python
2026-08-18
goldset/0.1
1
da4089/simplefix
Correct error in FIX UTCTimestamp formatting.
file
commit
Correct error in FIX UTCTimestamp formatting.
#! /usr/bin/env python ######################################################################## # SimpleFIX # Copyright (C) 2016-2017, David Arnold. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the S...
#! /usr/bin/env python ######################################################################## # SimpleFIX # Copyright (C) 2016-2017, David Arnold. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the S...
test/test_message.py
[ "test/test_message.py::MessageTests::test_time_datetime" ]
2017-07-19
2017-07-07
MIT
LICENSE
d636818b02378674a9c0e7ba898172be50fbf8e8
3f4a9878d7a13fd77d171727f60c0ea4e356b10b
https://github.com/da4089/simplefix/commit/d636818b02378674a9c0e7ba898172be50fbf8e8
https://github.com/da4089/simplefix
simplefix.message
[ "FixMessage" ]
12
1
1c30a66315cf323a
da4089/simplefix@d636818b0#simplefix/message.py
python
2026-08-18
goldset/0.1
1
pre-commit/pre-commit-hooks
Fix bug with the file-contents-sorter hook when processing file that does not end in a newline
file
commit
Fix bug with the file-contents-sorter hook when processing file that does not end in a newline
""" A very simple pre-commit hook that, when passed one or more filenames as arguments, will sort the lines in those files. An example use case for this: you have a deploy-whitelist.txt file in a repo that contains a list of filenames that is used to specify files to be included in a docker container. This file has on...
""" A very simple pre-commit hook that, when passed one or more filenames as arguments, will sort the lines in those files. An example use case for this: you have a deploy-whitelist.txt file in a repo that contains a list of filenames that is used to specify files to be included in a docker container. This file has on...
tests/file_contents_sorter_test.py
[ "tests/file_contents_sorter_test.py::test_integration[extra\\n\\n\\nwhitespace\\n-0-extra\\n\\n\\nwhitespace\\n]", "tests/file_contents_sorter_test.py::test_integration[newline\\nmissing-1-missing\\nnewline\\n]", "tests/file_contents_sorter_test.py::test_integration[whitespace\\n\\n\\nextra\\n-1-extra\\nwhitesp...
2017-06-25
2017-06-25
MIT
LICENSE
7cfec24f77881fcf01a65d21b3a45da5c773a7cf
50871f83ccf5faf881fa3fbbcfb140432d990af0
https://github.com/pre-commit/pre-commit-hooks/commit/7cfec24f77881fcf01a65d21b3a45da5c773a7cf
https://github.com/pre-commit/pre-commit-hooks
pre_commit_hooks.file_contents_sorter
[ "sort_file_contents" ]
19
3
45b8446b7c9bcdbf
pre-commit/pre-commit-hooks@7cfec24f7#pre_commit_hooks/file_contents_sorter.py
python
2026-08-18
goldset/0.1
1
construct/construct
RawCopy
RawCopy fixed missing context value (bug #358)
function
docstring
Returns a dict containing both parsed subcon, the raw bytes that were consumed by it, starting and ending offset in the stream, and the amount of bytes. Builds either from raw bytes or a value used by subcon. Context does contain a dict with data (if built from raw bytes) or with both (if built from value or parsed). ...
class RawCopy(Subconstruct): r""" Returns a dict containing both parsed subcon, the raw bytes that were consumed by it, starting and ending offset in the stream, and the amount of bytes. Builds either from raw bytes or a value used by subcon. Context does contain a dict with data (if built from raw bytes) ...
class RawCopy(Subconstruct): r""" Returns a dict containing both parsed subcon, the raw bytes that were consumed by it, starting and ending offset in the stream, and the amount of bytes. Builds either from raw bytes or a value used by subcon. Context does contain a dict with data (if built from raw bytes) ...
tests/test_all.py
[ "tests/test_all.py::TestCore::test_rawcopy_issue_358" ]
2017-06-01
2017-05-24
MIT
LICENSE
5bea0d2e3c17a27ef95c9e697685f6e75fbc4914
881cc323275cf12e368b02c63d1187dbc58ac7de
https://github.com/construct/construct/commit/5bea0d2e3c17a27ef95c9e697685f6e75fbc4914
https://github.com/construct/construct
construct.core
[ "RawCopy" ]
3
1
9b2b3c0f84a75afe
construct/construct@5bea0d2e3#RawCopy
python
2026-08-18
goldset/0.1
1
lark-parser/lark
BUGFIX: Fixes a subtle bug in the LALR(1) parser. See the new test for details.
file
commit
BUGFIX: Fixes a subtle bug in the LALR(1) parser. See the new test for details.
"""This module implements a LALR(1) Parser """ # Author: Erez Shinan (2017) # Email : erezshin@gmail.com from ..common import ParseError, UnexpectedToken from .lalr_analysis import LALR_Analyzer, ACTION_SHIFT class Parser(object): def __init__(self, parser_conf): self.analysis = LALR_Analyzer(parser_conf...
"""This module implements a LALR(1) Parser """ # Author: Erez Shinan (2017) # Email : erezshin@gmail.com from ..common import ParseError, UnexpectedToken from .lalr_analysis import LALR_Analyzer, ACTION_SHIFT class Parser(object): def __init__(self, parser_conf): self.analysis = LALR_Analyzer(parser_conf...
tests/test_parser.py
[ "tests/test_parser.py::TestLalrContextual::test_reduce_cycle", "tests/test_parser.py::TestLalrStandard::test_reduce_cycle" ]
2017-05-22
2017-05-06
MIT
LICENSE
64d141e486ef8b783861e2af53482bb786d9bfff
e20b54be2fa9e6594a10bdd9cc8c36a3ffe46bc0
https://github.com/lark-parser/lark/commit/64d141e486ef8b783861e2af53482bb786d9bfff
https://github.com/lark-parser/lark
lark.parsers.lalr_parser
[ "Parser" ]
6
2
3b575f8fce448ac4
lark-parser/lark@64d141e48#lark/parsers/lalr_parser.py
python
2026-08-18
goldset/0.1
1
celery/billiard
fix cpython issue 14881 (#224)
file
commit
fix cpython issue 14881 (#224)
# # Support for the API of the multiprocessing package using threads # # multiprocessing/dummy/__init__.py # # Copyright (c) 2006-2008, R Oudkerk # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: ...
# # Support for the API of the multiprocessing package using threads # # multiprocessing/dummy/__init__.py # # Copyright (c) 2006-2008, R Oudkerk # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: ...
t/unit/test_dummy.py
[ "t/unit/test_dummy.py::test_restart_state::test_raises" ]
2017-05-20
2017-04-18
BSD-3-Clause
LICENSE.txt
7a2c31cdfd45a4792f66692adc649d82c359fa14
da3e54e4b5bee32569c5128c041637174d5808e5
https://github.com/celery/billiard/commit/7a2c31cdfd45a4792f66692adc649d82c359fa14
https://github.com/celery/billiard
billiard.dummy.__init__
[ "DummyProcess" ]
3
1
fe6612144ff989c5
celery/billiard@7a2c31cdf#billiard/dummy/__init__.py
python
2026-08-18
goldset/0.1
1
ForensicArtifacts/artifacts
WindowsRegistryValueSourceType
Fix WinRAR artifacts, add better validation.
function
docstring
Class that implements the Windows Registry value source type.
class WindowsRegistryValueSourceType(SourceType): """Class that implements the Windows Registry value source type.""" TYPE_INDICATOR = definitions.TYPE_INDICATOR_WINDOWS_REGISTRY_VALUE def __init__(self, key_value_pairs=None): """Initializes the source type object. Args: key_value_pairs: optional...
class WindowsRegistryValueSourceType(SourceType): """Class that implements the Windows Registry value source type.""" TYPE_INDICATOR = definitions.TYPE_INDICATOR_WINDOWS_REGISTRY_VALUE def __init__(self, key_value_pairs=None): """Initializes the source type object. Args: key_value_pairs: optional...
artifacts/source_type_test.py
[ "artifacts/source_type_test.py::WindowsRegistryValueSourceTypeTest::testInitialize" ]
2017-05-13
2017-05-13
Apache-2.0
LICENSE
2d25f97f997675da511c1f54bed7a4d9c4a87224
af7d3396817fe18970d53bfe4ada6d81bb1b0402
https://github.com/ForensicArtifacts/artifacts/commit/2d25f97f997675da511c1f54bed7a4d9c4a87224
https://github.com/ForensicArtifacts/artifacts
artifacts.source_type
[ "WindowsRegistryValueSourceType" ]
12
1
acaa7928e0cb7982
ForensicArtifacts/artifacts@2d25f97f9#WindowsRegistryValueSourceType
python
2026-08-18
goldset/0.1
1
avakar/pytoml
Raise error when dump is called with non-finite floats
file
commit
Raise error when dump is called with non-finite floats
from __future__ import unicode_literals import io, datetime, sys if sys.version_info[0] == 3: long = int unicode = str def dumps(obj, sort_keys=False): fout = io.StringIO() dump(obj, fout, sort_keys=sort_keys) return fout.getvalue() _escapes = {'\n': 'n', '\r': 'r', '\\': '\\', '\t': 't', '\b':...
from __future__ import unicode_literals import io, datetime, math, sys if sys.version_info[0] == 3: long = int unicode = str def dumps(obj, sort_keys=False): fout = io.StringIO() dump(obj, fout, sort_keys=sort_keys) return fout.getvalue() _escapes = {'\n': 'n', '\r': 'r', '\\': '\\', '\t': 't',...
test/test_writer.py
[ "test/test_writer.py::test_attempting_to_write_non_number_floats_raises_error[nan]" ]
2017-05-07
2017-05-07
MIT
LICENSE
3cc8cc1969eb000a45b6f551540ca7d70c0975bf
23afb8a9b361b5e0984d4ca8e05585933835614d
https://github.com/avakar/pytoml/commit/3cc8cc1969eb000a45b6f551540ca7d70c0975bf
https://github.com/avakar/pytoml
pytoml.writer
[ "_format_value" ]
7
1
e525cbea4f660686
avakar/pytoml@3cc8cc196#pytoml/writer.py
python
2026-08-18
goldset/0.1
1
jazzband/geojson
is_valid
fix for issue #79
function
docstring
IsValid provides validation for GeoJSON objects All of error messages obtained from the official site http://geojson.org/geojson-spec.html Args: obj(geoJSON object): check validation Returns: dict of two parameters 'valid' and 'message'. In the case if geoJSON object is valid, returns {valid: 'yes', m...
def is_valid(obj): """ IsValid provides validation for GeoJSON objects All of error messages obtained from the official site http://geojson.org/geojson-spec.html Args: obj(geoJSON object): check validation Returns: dict of two parameters 'valid' and 'message...
def is_valid(obj): """ IsValid provides validation for GeoJSON objects All of error messages obtained from the official site http://geojson.org/geojson-spec.html Args: obj(geoJSON object): check validation Returns: dict of two parameters 'valid' and 'message...
tests/test_validation.py
[ "tests/test_validation.py::TestValidationGeometry::test_valid_geometry_with_elevation" ]
2017-04-24
2017-02-11
BSD-3-Clause
LICENSE.rst
c9fedf839a1ceccc9f702c7944e79d9430461b86
8d259b5deb762e2b15f206ff84658771b019bd6b
https://github.com/jazzband/geojson/commit/c9fedf839a1ceccc9f702c7944e79d9430461b86
https://github.com/jazzband/geojson
geojson.validation
[ "is_valid" ]
4
1
fe5ac8371da9c1c9
jazzband/geojson@c9fedf839#is_valid
python
2026-08-18
goldset/0.1
1
jupyter/jupyter-packaging
Fix is_stale for file paths
file
commit
Fix is_stale for file paths
#!/usr/bin/env python # coding: utf-8 # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. import os from os.path import join as pjoin import functools import pipes import sys from setuptools import Command from setuptools.command.build_py import build_py from setuptoo...
#!/usr/bin/env python # coding: utf-8 # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. import os from os.path import join as pjoin import functools import pipes import sys from setuptools import Command from setuptools.command.build_py import build_py from setuptoo...
tests/test_is_stale.py
[ "tests/test_is_stale.py::test_file_vs_dir" ]
2017-04-20
2017-04-19
BSD-3-Clause
LICENSE
4ccb7b7acad0977c97ee1608ec4e45c0d582ab3c
ffea6a0dbfd6d8e77fbcb5c436a0323d92d0e8ed
https://github.com/jupyter/jupyter-packaging/commit/4ccb7b7acad0977c97ee1608ec4e45c0d582ab3c
https://github.com/jupyter/jupyter-packaging
jupyter_packaging.setupbase
[ "compare_recursive_mtime", "is_stale", "recursive_mtime" ]
11
1
22381053e0fae523
jupyter/jupyter-packaging@4ccb7b7ac#jupyter_packaging/setupbase.py
python
2026-08-18
goldset/0.1
1
workhorsy/py-cpuinfo
_get_cpu_info_from_ibm_pa_features
Fixed Bug #68: Broken Qemu guest CPU flag parsing on Ubuntu 17.10 POWER8
function
docstring
Returns the CPU info gathered from lsprop /proc/device-tree/cpus/*/ibm,pa-features Returns {} if lsprop is not found or ibm,pa-features does not have the desired info.
def _get_cpu_info_from_ibm_pa_features(): ''' Returns the CPU info gathered from lsprop /proc/device-tree/cpus/*/ibm,pa-features Returns {} if lsprop is not found or ibm,pa-features does not have the desired info. ''' # Just return {} if there is no lsprop if not DataSource.has_ibm_pa_features(): return {} # ...
def _get_cpu_info_from_ibm_pa_features(): ''' Returns the CPU info gathered from lsprop /proc/device-tree/cpus/*/ibm,pa-features Returns {} if lsprop is not found or ibm,pa-features does not have the desired info. ''' # Just return {} if there is no lsprop if not DataSource.has_ibm_pa_features(): return {} # ...
tests/test_linux_debian_8_7_1_ppc64le.py
[ "tests/test_linux_debian_8_7_1_ppc64le.py::TestLinuxDebian_8_7_1_ppc64le::test_all" ]
2017-04-19
2017-04-19
MIT
LICENSE
ab82d69ac7a25b0ae98f635172d6bcb9e59940bf
d7f2b7eba653192047f662f95be462d543b06244
https://github.com/workhorsy/py-cpuinfo/commit/ab82d69ac7a25b0ae98f635172d6bcb9e59940bf
https://github.com/workhorsy/py-cpuinfo
cpuinfo.cpuinfo
[ "_get_cpu_info_from_ibm_pa_features" ]
12
1
212e7fd77819f5ae
workhorsy/py-cpuinfo@ab82d69ac#_get_cpu_info_from_ibm_pa_features
python
2026-08-18
goldset/0.1
1
workhorsy/py-cpuinfo
_get_cpu_info_from_cpufreq_info
Fixed Bug #41: Broken on Odroid XU3 armhf ARM 32bit
function
docstring
Returns the CPU info gathered from cpufreq-info. Returns {} if cpufreq-info is not found.
def _get_cpu_info_from_cpufreq_info(): ''' Returns the CPU info gathered from cpufreq-info. Returns {} if cpufreq-info is not found. ''' try: scale, hz_brand = 1, '0.0' if not DataSource.has_cpufreq_info(): return {} returncode, output = DataSource.cpufreq_info() if returncode != 0: return {} hz...
def _get_cpu_info_from_cpufreq_info(): ''' Returns the CPU info gathered from cpufreq-info. Returns {} if cpufreq-info is not found. ''' try: scale, hz_brand = 1, '0.0' if not DataSource.has_cpufreq_info(): return {} returncode, output = DataSource.cpufreq_info() if returncode != 0: return {} hz...
tests/test_linux_odroid_xu3_arm_32.py
[ "tests/test_linux_odroid_xu3_arm_32.py::TestLinux_Odroid_XU3_arm_32::test_get_cpu_info_from_cpufreq_info" ]
2017-04-10
2017-04-10
MIT
LICENSE
a925e8567e290177f8c01cc8032beebbc4bf361b
36e639555721c823e903356180fbab893775c770
https://github.com/workhorsy/py-cpuinfo/commit/a925e8567e290177f8c01cc8032beebbc4bf361b
https://github.com/workhorsy/py-cpuinfo
cpuinfo.cpuinfo
[ "_get_cpu_info_from_cpufreq_info" ]
5
1
c7558e58543cf754
workhorsy/py-cpuinfo@a925e8567#_get_cpu_info_from_cpufreq_info
python
2026-08-18
goldset/0.1
1
workhorsy/py-cpuinfo
Fixed Bug #63: Include py-cpuinfo version in output
file
commit
Fixed Bug #63: Include py-cpuinfo version in output
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Copyright (c) 2014-2017, Matthew Brennan Jones <matthew.brennan.jones@gmail.com> # Py-cpuinfo is a Python module to show the cpuinfo of a processor # It uses a MIT style license # It is hosted at: https://github.com/workhorsy/py-cpuinfo # # Permission is hereby granted, ...
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Copyright (c) 2014-2017, Matthew Brennan Jones <matthew.brennan.jones@gmail.com> # Py-cpuinfo is a Python module to show the cpuinfo of a processor # It uses a MIT style license # It is hosted at: https://github.com/workhorsy/py-cpuinfo # # Permission is hereby granted, ...
tests/test_free_bsd_11_x86_64.py
[ "tests/test_free_bsd_11_x86_64.py::TestFreeBSD_11_X86_64::test_returns" ]
2017-04-07
2017-04-07
MIT
LICENSE
f6e2ad38741b39f232b53509170bd47bae5a1931
1edbcb0aac3c777eaaf035bd448258886c2ecf37
https://github.com/workhorsy/py-cpuinfo/commit/f6e2ad38741b39f232b53509170bd47bae5a1931
https://github.com/workhorsy/py-cpuinfo
cpuinfo.cpuinfo
[ "get_cpu_info", "main" ]
3
1
ed302abfd9c53094
workhorsy/py-cpuinfo@f6e2ad387#cpuinfo/cpuinfo.py
python
2026-08-18
goldset/0.1
1
workhorsy/py-cpuinfo
_get_cpu_info_from_sysctl
Fixed Bug #59: Not working on OS X 10.12 Sierra
function
docstring
Returns the CPU info gathered from sysctl. Returns {} if sysctl is not found.
def _get_cpu_info_from_sysctl(): ''' Returns the CPU info gathered from sysctl. Returns {} if sysctl is not found. ''' try: # Just return {} if there is no sysctl if not DataSource.has_sysctl(): return {} # If sysctl fails return {} returncode, output = DataSource.sysctl_machdep_cpu_hw_cpufrequency() ...
def _get_cpu_info_from_sysctl(): ''' Returns the CPU info gathered from sysctl. Returns {} if sysctl is not found. ''' try: # Just return {} if there is no sysctl if not DataSource.has_sysctl(): return {} # If sysctl fails return {} returncode, output = DataSource.sysctl_machdep_cpu_hw_cpufrequency() ...
tests/test_osx_10_12_x86_64.py
[ "tests/test_osx_10_12_x86_64.py::TestOSX_10_12::test_all" ]
2017-04-05
2017-04-05
MIT
LICENSE
8b6e2304385cea7beb236790ed0315a502ac3407
e1cccf2abd2ab7017f2171ac2ae7eacfb3d966fe
https://github.com/workhorsy/py-cpuinfo/commit/8b6e2304385cea7beb236790ed0315a502ac3407
https://github.com/workhorsy/py-cpuinfo
cpuinfo.cpuinfo
[ "_get_cpu_info_from_sysctl" ]
6
1
d2b3672908eaafc6
workhorsy/py-cpuinfo@8b6e23043#_get_cpu_info_from_sysctl
python
2026-08-18
goldset/0.1
1
lark-parser/lark
BUGFIX: Solved an elusive bug in Earley parser, when empty rules repeat in the same column
file
commit
BUGFIX: Solved an elusive bug in Earley parser, when empty rules repeat in the same column
"This module implements an Earley Parser" # 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) # Afterwards the parse tree is reduced...
"This module implements an Earley Parser" # 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) # Afterwards the parse tree is reduced...
tests/test_parser.py
[ "tests/test_parser.py::TestEarley::test_earley_repeating_empty" ]
2017-04-05
2017-03-20
MIT
LICENSE
1685f94ea3d069f1b9645b63d2e827ea2448c1e0
a7f99dd8c6a8472fb4e05c4634b248887d0e39e9
https://github.com/lark-parser/lark/commit/1685f94ea3d069f1b9645b63d2e827ea2448c1e0
https://github.com/lark-parser/lark
lark.parsers.earley
[ "Column" ]
4
1
a706e686fcb5564d
lark-parser/lark@1685f94ea#lark/parsers/earley.py
python
2026-08-18
goldset/0.1
1
construct/construct
Struct
Struct sizeof proper context nesting (bug #266)
function
docstring
A sequence of usually named constructs, similar to structs in C. The elements are parsed and built in the order they are defined. Some fields do not need to be named, since they are built from None anyway. See Const Padding Pass Terminated. .. seealso:: Can be nested easily, and embedded using :func:`~construct.core....
class Struct(Construct): r""" A sequence of usually named constructs, similar to structs in C. The elements are parsed and built in the order they are defined. Some fields do not need to be named, since they are built from None anyway. See Const Padding Pass Terminated. .. seealso:: Can be nested easi...
class Struct(Construct): r""" A sequence of usually named constructs, similar to structs in C. The elements are parsed and built in the order they are defined. Some fields do not need to be named, since they are built from None anyway. See Const Padding Pass Terminated. .. seealso:: Can be nested easi...
tests/test_all.py
[ "tests/test_all.py::TestCore::test_struct_sizeof_context_nesting" ]
2017-04-04
2017-04-04
MIT
LICENSE
647e59590566b073bf5426df3225355bb4575717
3c9410d6825a151b745a6abe80b3a27407883db5
https://github.com/construct/construct/commit/647e59590566b073bf5426df3225355bb4575717
https://github.com/construct/construct
construct.core
[ "Struct" ]
23
1
93c7fce26879099f
construct/construct@647e59590#Struct
python
2026-08-18
goldset/0.1
1
mewwts/addict
Should fix #85, #86 and #88
file
commit
Should fix #85, #86 and #88
import copy class Dict(dict): def __init__(self, *args, **kwargs): object.__setattr__(self, '__parent', kwargs.pop('__parent', None)) object.__setattr__(self, '__key', kwargs.pop('__key', None)) for arg in args: if not arg: continue elif isinstance(a...
import copy class Dict(dict): def __init__(self, *args, **kwargs): object.__setattr__(self, '__parent', kwargs.pop('__parent', None)) object.__setattr__(self, '__key', kwargs.pop('__key', None)) for arg in args: if not arg: continue elif isinstance(a...
test_addict.py
[ "test_addict.py::Tests::test_parent_key_item" ]
2017-03-05
2017-02-25
MIT
LICENSE
67454531bc95ee9e8fc1f8afec4844ffd04723a5
2540b0ed240643b2fc28e0d9045f8248e97c08e9
https://github.com/mewwts/addict/commit/67454531bc95ee9e8fc1f8afec4844ffd04723a5
https://github.com/mewwts/addict
addict.addict
[ "Dict" ]
6
1
35144f471bb81167
mewwts/addict@67454531b#addict/addict.py
python
2026-08-18
goldset/0.1
1
wookayin/gpustat
Fix python3 compatibility
file
commit
Fix python3 compatibility
#!/usr/bin/env python """ the gpustat script :) @author Jongwook Choi @url https://github.com/wookayin/gpustat """ from __future__ import print_function from subprocess import check_output, CalledProcessError from datetime import datetime from collections import OrderedDict, defaultdict try: from cStringIO impor...
#!/usr/bin/env python """ the gpustat script :) @author Jongwook Choi @url https://github.com/wookayin/gpustat """ from __future__ import print_function from subprocess import check_output, CalledProcessError from datetime import datetime from collections import OrderedDict, defaultdict try: from cStringIO impor...
test_gpustat.py
[ "test_gpustat.py::TestGPUStat::test_attributes_and_items" ]
2017-03-04
2017-03-04
MIT
LICENSE
d45fa72979d1cc377a343c0c13d972374b36ce9a
7b11c487f3f7db452cd46502c912792ef36739f4
https://github.com/wookayin/gpustat/commit/d45fa72979d1cc377a343c0c13d972374b36ce9a
https://github.com/wookayin/gpustat
gpustat
[ "GPUStatCollection" ]
12
1
4fe12aaab5afe757
wookayin/gpustat@d45fa7297#gpustat.py
python
2026-08-18
goldset/0.1
1
andialbrecht/sqlparse
Fix parsing of INTO keyword in WHERE clauses (fixes #324).
file
commit
Fix parsing of INTO keyword in WHERE clauses (fixes #324).
# -*- 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_grouping.py
[ "tests/test_grouping.py::test_into_kw_ends_where_clause" ]
2017-03-02
2017-02-13
BSD-3-Clause
LICENSE
59033cc0ea75e160c87a68de6817cad06888cc38
0ea7cf49bd329bba28833a7e33c95b131c71a029
https://github.com/andialbrecht/sqlparse/commit/59033cc0ea75e160c87a68de6817cad06888cc38
https://github.com/andialbrecht/sqlparse
sqlparse.sql
[ "Where" ]
2
1
7ddead42abcc33b8
andialbrecht/sqlparse@59033cc0e#sqlparse/sql.py
python
2026-08-18
goldset/0.1
1
wbond/asn1crypto
_parse
Ensure a ValueError is raised when DER-encoded value does not have necessary header bytes
function
docstring
Parses a byte string into component parts :param encoded_data: A byte string that contains BER-encoded data :param data_len: The integer length of the encoded data :param pointer: The index in the byte string to parse from :param lengths_only: A boolean to cause the call to return a 2-element tuple ...
def _parse(encoded_data, data_len, pointer=0, lengths_only=False): """ Parses a byte string into component parts :param encoded_data: A byte string that contains BER-encoded data :param data_len: The integer length of the encoded data :param pointer: The index in the byte ...
def _parse(encoded_data, data_len, pointer=0, lengths_only=False): """ Parses a byte string into component parts :param encoded_data: A byte string that contains BER-encoded data :param data_len: The integer length of the encoded data :param pointer: The index in the byte ...
tests/test_core.py
[ "tests/test_core.py::CoreTests::test_truncated_1" ]
2017-02-07
2017-02-01
MIT
LICENSE
72e76c16fb4460a26d0f152c6579238b83654d31
d2240365c670d679129df5589e429f0382d16445
https://github.com/wbond/asn1crypto/commit/72e76c16fb4460a26d0f152c6579238b83654d31
https://github.com/wbond/asn1crypto
asn1crypto.parser
[ "_parse" ]
4
1
199ec313ceaa557f
wbond/asn1crypto@72e76c16f#_parse
python
2026-08-18
goldset/0.1
1
rocky/python-spark
Fix bug in dumpGrammar()
file
commit
Fix bug in dumpGrammar()
""" Copyright (c) 2015-2016 Rocky Bernstein Copyright (c) 1998-2002 John Aycock Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights...
""" Copyright (c) 2015-2017 Rocky Bernstein Copyright (c) 1998-2002 John Aycock Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights...
test/test_misc.py
[ "test/test_misc.py::TestMisc::test_basic" ]
2017-01-27
2016-12-08
MIT
LICENSE
93e0124473accdf4f8307c140d8c23ef37b26069
0bf3a5c2505a059064daf5e96b40c89900818822
https://github.com/rocky/python-spark/commit/93e0124473accdf4f8307c140d8c23ef37b26069
https://github.com/rocky/python-spark
spark_parser.spark
[ "GenericParser", "rule2str" ]
22
1
63e3a740adc994ef
rocky/python-spark@93e012447#spark_parser/spark.py
python
2026-08-18
goldset/0.1
1
lmittmann/style
🐛 fixing named parameter bug on python 2.7
file
commit
🐛 fixing named parameter bug on python 2.7
import sys _enabled = sys.stdout.isatty() _styles = { 'bold': 1, 'bg_bold': 100, 'dim': 2, 'italic': 3, 'underline': 4, 'inverse': 7, 'hidden': 8, 'strikethrough': 9, 'black': 30, 'red': 31, 'green': 32, 'yellow': 33, 'blue': 34, 'magenta': 35, 'cyan': 36, ...
import sys _enabled = sys.stdout.isatty() _styles = { 'bold': 1, 'bg_bold': 100, 'dim': 2, 'italic': 3, 'underline': 4, 'inverse': 7, 'hidden': 8, 'strikethrough': 9, 'black': 30, 'red': 31, 'green': 32, 'yellow': 33, 'blue': 34, 'magenta': 35, 'cyan': 36, ...
clr/test/test_style_builder.py
[ "clr/test/test_style_builder.py::StyleBuilderTestCase::test_non_string_seperator" ]
2017-01-26
2017-01-23
MIT
LICENSE
3c57d43e22b8d964fef7aaf157e034796f3aacbb
726c20df86822a522127fffecd07e52f1fcb0819
https://github.com/lmittmann/style/commit/3c57d43e22b8d964fef7aaf157e034796f3aacbb
https://github.com/lmittmann/style
clr.style_builder
[ "StyleBuilder" ]
6
1
5076ccb390056f75
lmittmann/style@3c57d43e2#clr/style_builder.py
python
2026-08-18
goldset/0.1
1
keleshev/schema
fix: Schema can be inherited (#127)
file
commit
fix: Schema can be inherited (#127)
"""schema is a library for validating Python data structures, such as those obtained from config-files, forms, external services or command-line parsing, converted from JSON/YAML (or something else) to Python data-types.""" import re __version__ = '0.6.5' __all__ = ['Schema', 'And', 'Or', 'Regex', 'Optiona...
"""schema is a library for validating Python data structures, such as those obtained from config-files, forms, external services or command-line parsing, converted from JSON/YAML (or something else) to Python data-types.""" import re __version__ = '0.6.5' __all__ = ['Schema', 'And', 'Or', 'Regex', 'Optiona...
test_schema.py
[ "test_schema.py::test_inheritance" ]
2017-01-17
2016-12-15
MIT
LICENSE-MIT
9c6d0826ef6343719ecea58d4c1eba9f519bb1b9
bca292f3b80daf83186098b6cb0cf2f03f822765
https://github.com/keleshev/schema/commit/9c6d0826ef6343719ecea58d4c1eba9f519bb1b9
https://github.com/keleshev/schema
schema
[ "And", "Or", "Schema" ]
11
1
328e707d883e8c30
keleshev/schema@9c6d0826e#schema.py
python
2026-08-18
goldset/0.1
1
python-semver/python-semver
compare
fix version comparisons
function
docstring
Compare two versions :param ver1: version string 1 :param ver2: version string 2 :return: The return value is negative if ver1 < ver2, zero if ver1 == ver2 and strictly positive if ver1 > ver2 :rtype: int
def compare(ver1, ver2): """Compare two versions :param ver1: version string 1 :param ver2: version string 2 :return: The return value is negative if ver1 < ver2, zero if ver1 == ver2 and strictly positive if ver1 > ver2 :rtype: int """ def nat_cmp(a, b): def convert(te...
def compare(ver1, ver2): """Compare two versions :param ver1: version string 1 :param ver2: version string 2 :return: The return value is negative if ver1 < ver2, zero if ver1 == ver2 and strictly positive if ver1 > ver2 :rtype: int """ def nat_cmp(a, b): def convert(te...
tests.py
[ "tests.py::test_should_get_less" ]
2017-01-16
2016-12-19
BSD-3-Clause
LICENSE.txt
e1a633cc445ba63a9fbf23b679994d5fa0554cf7
41a071595cdb400e625f366838b35d61d538ac7e
https://github.com/python-semver/python-semver/commit/e1a633cc445ba63a9fbf23b679994d5fa0554cf7
https://github.com/python-semver/python-semver
semver
[ "compare" ]
20
1
d94d1590c8869620
python-semver/python-semver@e1a633cc4#compare
python
2026-08-17
goldset/0.1
1
bastikr/boolean.py
Fix bug in normalize and write tests.
file
commit
Fix bug in normalize and write tests.
""" Boolean expressions algebra. This module defines a Boolean algebra over the set {TRUE, FALSE} with boolean variables called Symbols and the boolean functions AND, OR, NOT. Some basic logic comparison are supported: Two expressions can be compared for equivalence or containment. Furthermore you can simplify an exp...
""" Boolean expressions algebra. This module defines a Boolean algebra over the set {TRUE, FALSE} with boolean variables called Symbols and the boolean functions AND, OR, NOT. Some basic logic comparison are supported: Two expressions can be compared for equivalence or containment. Furthermore you can simplify an exp...
boolean/test_boolean.py
[ "boolean/test_boolean.py::OtherTestCase::test_normalize" ]
2017-01-10
2016-12-19
BSD-2-Clause
LICENSE.txt
adcc3634f7e1c8e34b0113909d1957b95d7095ae
45f401c657723c486b71314af3cc4cebd639baa7
https://github.com/bastikr/boolean.py/commit/adcc3634f7e1c8e34b0113909d1957b95d7095ae
https://github.com/bastikr/boolean.py
boolean.boolean
[ "BooleanAlgebra" ]
4
1
d6ba114f294892f2
bastikr/boolean.py@adcc3634f#boolean/boolean.py
python
2026-08-18
goldset/0.1
1
amoffat/sh
args
fix args with context to clean up after an exception is thrown
function
docstring
allows us to temporarily override all the special keyword parameters in a with context
def args(*args, **kwargs): """ allows us to temporarily override all the special keyword parameters in a with context """ call_args = Command._call_args old_args = call_args.copy() for key,value in kwargs.items(): key = key.lstrip("_") call_args[key] = value yield call_args...
def args(*args, **kwargs): """ allows us to temporarily override all the special keyword parameters in a with context """ call_args = Command._call_args old_args = call_args.copy() for key,value in kwargs.items(): key = key.lstrip("_") call_args[key] = value try: yield ...
test.py
[ "test.py::FunctionalTests::test_args_context_exception" ]
2016-10-10
2016-10-10
MIT
LICENSE.txt
22427d733285139a7200b9208cae2d107f5ad3bf
c71f537980aa4e12aacec98352979070d0a847eb
https://github.com/amoffat/sh/commit/22427d733285139a7200b9208cae2d107f5ad3bf
https://github.com/amoffat/sh
sh
[ "args" ]
6
1
5c003c6051ccb9e4
amoffat/sh@22427d733#args
python
2026-08-18
goldset/0.1
1
terryyin/lizard
CLikeNestingStackStates
Fix handling of attributes after namespace names
function
docstring
Machinery to track nesting levels of tokens. The main indicators of nesting are braces: '{' and '}'. However, the code is complicated due to braceless structures, which are control-flow structures in C-like languages. Moreover, using braces as nesting level indicators leads to a big caveat; C++ initializer lists, unif...
class CLikeNestingStackStates(CodeStateMachine): """Machinery to track nesting levels of tokens. The main indicators of nesting are braces: '{' and '}'. However, the code is complicated due to braceless structures, which are control-flow structures in C-like languages. Moreover, using braces as nes...
class CLikeNestingStackStates(CodeStateMachine): """Machinery to track nesting levels of tokens. The main indicators of nesting are braces: '{' and '}'. However, the code is complicated due to braceless structures, which are control-flow structures in C-like languages. Moreover, using braces as nes...
test/test_languages/testCAndCPP.py
[ "test/test_languages/testCAndCPP.py::Test_cpp11_Attributes::test_class", "test/test_languages/testCAndCPP.py::Test_cpp11_Attributes::test_namespace" ]
2016-09-28
2016-09-28
MIT
LICENSE.txt
222af4a6393bdccea5de78658045b87074d0dec6
f24703ad131fd90b7d9e2d2dba555ec4604fcc5f
https://github.com/terryyin/lizard/commit/222af4a6393bdccea5de78658045b87074d0dec6
https://github.com/terryyin/lizard
lizard_languages.clike
[ "CLikeNestingStackStates" ]
19
2
910b1dcb2ca8035b
terryyin/lizard@222af4a63#CLikeNestingStackStates
python
2026-08-18
goldset/0.1
1
roskakori/pygount
source_analysis
#4: Fixed ``LookupError`` on broken encoding in magic comment.
function
docstring
Analysis for line counts in source code stored in `source_path`. :param source_path: :param group: name of a logical group the sourc code belongs to, e.g. a package. :param encoding: encoding according to :func:`encoding_for` :param fallback_encoding: fallback encoding according to :func:`encoding_for` :return: a ...
def source_analysis(source_path, group, encoding='automatic', fallback_encoding='cp1252'): """ Analysis for line counts in source code stored in ``source_path``. :param source_path: :param group: name of a logical group the sourc code belongs to, e.g. a package. :param encoding: encoding acco...
def source_analysis(source_path, group, encoding='automatic', fallback_encoding='cp1252'): """ Analysis for line counts in source code stored in ``source_path``. :param source_path: :param group: name of a logical group the sourc code belongs to, e.g. a package. :param encoding: encoding acco...
tests/test_analysis.py
[ "tests/test_analysis.py::AnalysisTest::test_fails_on_unknown_magic_encoding_comment" ]
2016-09-11
2016-09-11
BSD-3-Clause
LICENSE.txt
a0bc17521dff9ce6c9267c36478e5628d2405577
896893b29b404ad396291dc3db3debbc68422b9c
https://github.com/roskakori/pygount/commit/a0bc17521dff9ce6c9267c36478e5628d2405577
https://github.com/roskakori/pygount
pygount.analysis
[ "source_analysis" ]
2
1
d5dfb79afdbdb483
roskakori/pygount@a0bc17521#source_analysis
python
2026-08-18
goldset/0.1
1
construct/construct
Container
Container implemented unequality and wrong type, tests updated.
function
docstring
Generic ordered dictionary that allows both key and attribute access. Containers are dictionaries, translating attribute access into key access, and preserving key order. Also they use call method to add keys, because **kw does not preserve order. Structs parse return containers, becuase their fields have order. Exa...
class Container(dict): r""" Generic ordered dictionary that allows both key and attribute access. Containers are dictionaries, translating attribute access into key access, and preserving key order. Also they use call method to add keys, because **kw does not preserve order. Structs parse return conta...
class Container(dict): r""" Generic ordered dictionary that allows both key and attribute access. Containers are dictionaries, translating attribute access into key access, and preserving key order. Also they use call method to add keys, because **kw does not preserve order. Structs parse return conta...
tests/lib/test_container.py
[ "tests/lib/test_container.py::TestContainer::test_ne_wrong_order" ]
2016-09-06
2016-09-06
MIT
LICENSE
d8917e72d6cdb5de9e206405e692e84b511af2ed
0f7cc064a9292bba4e1445b4f9be3e89185cba65
https://github.com/construct/construct/commit/d8917e72d6cdb5de9e206405e692e84b511af2ed
https://github.com/construct/construct
construct.lib.container
[ "Container" ]
5
1
bdd66dda7ab61c74
construct/construct@d8917e72d#Container
python
2026-08-18
goldset/0.1
1
construct/construct
String
String building from unicode string without encoding raises StringError
function
docstring
A configurable, variable-length string field. When parsing, the byte string is stripped of pad character (as specified) from the direction (as specified) then decoded (as specified). Length is a constant integer or a function of the context. When building, the string is encoded (as specified) then padded (as specified...
class String(Construct): r""" A configurable, variable-length string field. When parsing, the byte string is stripped of pad character (as specified) from the direction (as specified) then decoded (as specified). Length is a constant integer or a function of the context. When building, the string is en...
class String(Construct): r""" A configurable, variable-length string field. When parsing, the byte string is stripped of pad character (as specified) from the direction (as specified) then decoded (as specified). Length is a constant integer or a function of the context. When building, the string is en...
tests/test_strings.py
[ "tests/test_strings.py::TestString::test_build_missing_encoding" ]
2016-09-02
2016-09-02
MIT
LICENSE
b65413e5d1d0aea01fe8ca1a6dec0ca45245da95
0daf8486917420ee158ffc827dd40728426155cd
https://github.com/construct/construct/commit/b65413e5d1d0aea01fe8ca1a6dec0ca45245da95
https://github.com/construct/construct
construct.core
[ "String" ]
5
1
8f506552b62790b5
construct/construct@b65413e5d#String
python
2026-08-18
goldset/0.1
1
eerimoq/bincopy
Raise an exception on bad address range to the exclude function.
file
commit
Raise an exception on bad address range to the exclude function.
"""Mangling of various file formats that conveys binary information (Motorola S-Record, Intel HEX and binary files). """ from __future__ import print_function import binascii import string try: from StringIO import StringIO except ImportError: from io import StringIO __author__ = 'Erik Moqvist' __version__...
"""Mangling of various file formats that conveys binary information (Motorola S-Record, Intel HEX and binary files). """ from __future__ import print_function import binascii import string try: from StringIO import StringIO except ImportError: from io import StringIO __author__ = 'Erik Moqvist' __version__...
tests/test_bincopy.py
[ "tests/test_bincopy.py::BinCopyTest::test_exclude_crop" ]
2016-09-01
2016-08-31
MIT
LICENSE
c8ec5ee19688920b39b87bace27118ac43a64cf7
d8c91500f06b5fe47139b810882357051cca1af5
https://github.com/eerimoq/bincopy/commit/c8ec5ee19688920b39b87bace27118ac43a64cf7
https://github.com/eerimoq/bincopy
bincopy
[ "BinFile" ]
9
1
741f59b20ab9aa70
eerimoq/bincopy@c8ec5ee19#bincopy.py
python
2026-08-18
goldset/0.1
1
dcbaker/jsonstreams
Stream
Stream: Fix write method to write commas.
function
docstring
A JSON stream object. This object is the "root" object for the stream. It handles opening and closing the file, and provides the ability to write into the stream, and to open sub elements. This element can be used as a context manager, which is the recommended way to use it. Arguments: filename -- the name of the fi...
class Stream(object): """A JSON stream object. This object is the "root" object for the stream. It handles opening and closing the file, and provides the ability to write into the stream, and to open sub elements. This element can be used as a context manager, which is the recommended way to u...
class Stream(object): """A JSON stream object. This object is the "root" object for the stream. It handles opening and closing the file, and provides the ability to write into the stream, and to open sub elements. This element can be used as a context manager, which is the recommended way to u...
tests/test_stream.py
[ "tests/test_stream.py::TestStream::test_write_two" ]
2016-08-17
2016-08-17
MIT
LICENSE
cc59669537c26f43c2b79b23f5e1bbd88ab78efb
23f01fc3a44c417c22b6fb7b652d19053298d8de
https://github.com/dcbaker/jsonstreams/commit/cc59669537c26f43c2b79b23f5e1bbd88ab78efb
https://github.com/dcbaker/jsonstreams
jsonstreams.__init__
[ "Stream" ]
4
1
3c32bc836f5e8d32
dcbaker/jsonstreams@cc5966953#Stream
python
2026-08-18
goldset/0.1
1
terryyin/lizard
CLikeNestingStackStates
fix https://github.com/terryyin/lizard/issues/134
function
docstring
Machinery to track nesting levels of tokens. The main indicators of nesting are braces: '{' and '}'. However, the code is complicated due to braceless structures, which are control-flow structures in C-like languages. Moreover, using braces as nesting level indicators leads to a big caveat; C++ initializer lists, unif...
class CLikeNestingStackStates(CodeStateMachine): """Machinery to track nesting levels of tokens. The main indicators of nesting are braces: '{' and '}'. However, the code is complicated due to braceless structures, which are control-flow structures in C-like languages. Moreover, using braces as nes...
class CLikeNestingStackStates(CodeStateMachine): """Machinery to track nesting levels of tokens. The main indicators of nesting are braces: '{' and '}'. However, the code is complicated due to braceless structures, which are control-flow structures in C-like languages. Moreover, using braces as nes...
test/test_languages/testCAndCPP.py
[ "test/test_languages/testCAndCPP.py::Test_c_cpp_lizard::test_struct_in_param" ]
2016-06-24
2016-06-24
MIT
LICENSE.txt
524fc21bdeb547c08bc19471041ca9842533af80
c603f7f2ce8eb76b57c18eb17ab37c5a26c88d86
https://github.com/terryyin/lizard/commit/524fc21bdeb547c08bc19471041ca9842533af80
https://github.com/terryyin/lizard
lizard_languages.clike
[ "CLikeNestingStackStates" ]
2
1
782f93a9845050eb
terryyin/lizard@524fc21bd#CLikeNestingStackStates
python
2026-08-18
goldset/0.1
1
eerimoq/bincopy
Fix: Implement Intel HEX record type 5, execution start address.
file
commit
Fix: Implement Intel HEX record type 5, execution start address.
#!/usr/bin/env python # # Mangling of various file formats that conveys binary # information (Motorola S-Record, Intel HEX and binary files). import binascii import io import string __author__ = 'Erik Moqvist' __version__ = '2.1.3' DEFAULT_WORD_SIZE = 8 class Error(Exception): """Bincopy base exception. "...
#!/usr/bin/env python # # Mangling of various file formats that conveys binary # information (Motorola S-Record, Intel HEX and binary files). import binascii import io import string __author__ = 'Erik Moqvist' __version__ = '2.1.4' DEFAULT_WORD_SIZE = 8 class Error(Exception): """Bincopy base exception. "...
tests/test_bincopy.py
[ "tests/test_bincopy.py::BinCopyTest::test_issue_4_2" ]
2016-06-22
2016-06-02
MIT
LICENSE
f4146f8934b0b2c85eac6017cac069b05e4b381b
fa2a1de0f73da5eb5a1c659b1ba094e92483a77d
https://github.com/eerimoq/bincopy/commit/f4146f8934b0b2c85eac6017cac069b05e4b381b
https://github.com/eerimoq/bincopy
bincopy
[ "File" ]
7
1
c757ec46d60f9473
eerimoq/bincopy@f4146f893#bincopy.py
python
2026-08-18
goldset/0.1
1
andialbrecht/sqlparse
Fix get_token_at_offset behavior at edge
file
commit
Fix get_token_at_offset behavior at edge
# -*- 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: http://www.opensource.org/licenses/bsd-license.php """This module contains classes representing syntactical elements of SQL.""" from __future__ impor...
# -*- 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: http://www.opensource.org/licenses/bsd-license.php """This module contains classes representing syntactical elements of SQL.""" from __future__ impor...
tests/test_parse.py
[ "tests/test_parse.py::test_get_token_at_offset" ]
2016-06-11
2016-06-11
BSD-3-Clause
LICENSE
0c468f5947741c0583330535e62c361f3a6af5ed
ff0ee839987c43c420f1a5d167e3c3c0e873411c
https://github.com/andialbrecht/sqlparse/commit/0c468f5947741c0583330535e62c361f3a6af5ed
https://github.com/andialbrecht/sqlparse
sqlparse.sql
[ "TokenList" ]
2
1
f936903735898d69
andialbrecht/sqlparse@0c468f594#sqlparse/sql.py
python
2026-08-18
goldset/0.1
1
psf/pyperf
fix very verbose output: runs => samples
file
commit
fix very verbose output: runs => samples
from __future__ import print_function import sys __version__ = '0.3' _PY3 = (sys.version_info >= (3,)) def _import_json(): """Import json module on demand.""" global json if json is None: import json return json json = None def _import_subprocess(): """Import subprocess module on deman...
from __future__ import print_function import sys __version__ = '0.3' _PY3 = (sys.version_info >= (3,)) def _import_json(): """Import json module on demand.""" global json if json is None: import json return json json = None def _import_subprocess(): """Import subprocess module on deman...
perf/tests/test_perf_cli.py
[ "perf/tests/test_perf_cli.py::TestPerfCLI::test_results_verbose" ]
2016-06-09
2016-06-09
MIT
COPYING
872da7e335c7d4302c0ef7fa0f6201e54564a816
f46c6db0271d0d0207e219d3ed754ce9f918eaf9
https://github.com/psf/pyperf/commit/872da7e335c7d4302c0ef7fa0f6201e54564a816
https://github.com/psf/pyperf
perf.__init__
[ "_very_verbose_run" ]
2
1
dac468ea4de2c2a7
psf/pyperf@872da7e33#perf/__init__.py
python
2026-08-18
goldset/0.1
1
terryyin/lizard
fix php code without closing ?>
file
commit
fix php code without closing ?>
''' Language parser for JavaScript ''' import re from .code_reader import CodeReader from .clike import CCppCommentsMixin from .js_style_language_states import JavaScriptStyleLanguageStates class PHPReader(CodeReader, CCppCommentsMixin): # pylint: disable=R0903 ext = ['php'] language_names = ['php'] ...
''' Language parser for JavaScript ''' import re from .code_reader import CodeReader from .clike import CCppCommentsMixin from .js_style_language_states import JavaScriptStyleLanguageStates class PHPReader(CodeReader, CCppCommentsMixin): # pylint: disable=R0903 ext = ['php'] language_names = ['php'] ...
test/test_languages/testPHP.py
[ "test/test_languages/testPHP.py::Test_tokenizing_PHP::test_code_block_without_closing" ]
2016-06-08
2016-06-08
MIT
LICENSE.txt
f3ed0658dd80158f34b4a4825a3937b4fec0847c
03fe2f28d0872dc482d2e5242cce8fdd052f4039
https://github.com/terryyin/lizard/commit/f3ed0658dd80158f34b4a4825a3937b4fec0847c
https://github.com/terryyin/lizard
lizard_languages.php
[ "PHPReader" ]
4
1
457faa52ab792a16
terryyin/lizard@f3ed0658d#lizard_languages/php.py
python
2026-08-18
goldset/0.1
1
eerimoq/bincopy
Fix: issue 4: Intel hex bad addresses
file
commit
Fix: issue 4: Intel hex bad addresses
#!/usr/bin/env python # # Mangling of various file formats that conveys binary # information (Motorola S-Record, Intel HEX and binary files). import binascii import io import string __author__ = 'Erik Moqvist' __version__ = '2.1.1' DEFAULT_WORD_SIZE = 8 class Error(Exception): """Bincopy base exception. "...
#!/usr/bin/env python # # Mangling of various file formats that conveys binary # information (Motorola S-Record, Intel HEX and binary files). import binascii import io import string __author__ = 'Erik Moqvist' __version__ = '2.1.2' DEFAULT_WORD_SIZE = 8 class Error(Exception): """Bincopy base exception. "...
tests/test_bincopy.py
[ "tests/test_bincopy.py::BinCopyTest::test_issue_4" ]
2016-06-01
2016-05-01
MIT
LICENSE
c420fb248781f1ed3deb29c510e4e94f397f2a79
e26a28166573c1c99fba648a148657b3d09e728d
https://github.com/eerimoq/bincopy/commit/c420fb248781f1ed3deb29c510e4e94f397f2a79
https://github.com/eerimoq/bincopy
bincopy
[ "File", "_Segments" ]
20
1
95641a7968d696c4
eerimoq/bincopy@c420fb248#bincopy.py
python
2026-08-18
goldset/0.1
1
bastikr/boolean.py
Fix for #45 Do not simplify() by default
file
commit
Fix for #45 Do not simplify() by default
""" Boolean expressions algebra. This module defines a Boolean algebra over the set {TRUE, FALSE} with boolean variables called Symbols and the boolean functions AND, OR, NOT. Some basic logic comparison are supported: Two expressions can be compared for equivalence or containment. Furthermore you can simplify an ex...
""" Boolean expressions algebra. This module defines a Boolean algebra over the set {TRUE, FALSE} with boolean variables called Symbols and the boolean functions AND, OR, NOT. Some basic logic comparison are supported: Two expressions can be compared for equivalence or containment. Furthermore you can simplify an ex...
boolean/test_boolean.py
[ "boolean/test_boolean.py::BooleanAlgebraTestCase::test_creation" ]
2016-05-13
2016-05-13
BSD-2-Clause
LICENSE.txt
5430d5aa71df456275098b32f8814a0942f3001c
82db01eb3e93a3b9939f23913d9d1667b7717298
https://github.com/bastikr/boolean.py/commit/5430d5aa71df456275098b32f8814a0942f3001c
https://github.com/bastikr/boolean.py
boolean.boolean
[ "BooleanAlgebra", "Expression", "Function" ]
8
1
17ce9ab77cec32c1
bastikr/boolean.py@5430d5aa7#boolean/boolean.py
python
2026-08-18
goldset/0.1
1
PyCQA/pyflakes
Fix TypeError when processing relative imports (#61)
file
commit
Fix TypeError when processing relative imports (#61)
""" Main module. Implement the central Checker class. Also, it models the Bindings and Scopes. """ import __future__ import doctest import os import sys PY2 = sys.version_info < (3, 0) PY32 = sys.version_info < (3, 3) # Python 2.5 to 3.2 PY33 = sys.version_info < (3, 4) # Python 2.5 to 3.3 try: sys.pypy_ver...
""" Main module. Implement the central Checker class. Also, it models the Bindings and Scopes. """ import __future__ import doctest import os import sys PY2 = sys.version_info < (3, 0) PY32 = sys.version_info < (3, 3) # Python 2.5 to 3.2 PY33 = sys.version_info < (3, 4) # Python 2.5 to 3.3 try: sys.pypy_ver...
pyflakes/test/test_imports.py
[ "pyflakes/test/test_imports.py::Test::test_importStar_relative", "pyflakes/test/test_imports.py::Test::test_unusedImport_relative", "pyflakes/test/test_imports.py::Test::test_usedImport_relative", "pyflakes/test/test_imports.py::TestImportationObject::test_importfrom_relative", "pyflakes/test/test_imports.p...
2016-05-12
2016-05-06
MIT
LICENSE
d8591997d9718f482f7f1d39f2bf1aa0e4a5ab92
885a8e5395f3eac58a995a49dbe347b8f6648f64
https://github.com/PyCQA/pyflakes/commit/d8591997d9718f482f7f1d39f2bf1aa0e4a5ab92
https://github.com/PyCQA/pyflakes
pyflakes.checker
[ "Checker", "ImportationFrom", "StarImportation" ]
23
5
294770267807fb7b
PyCQA/pyflakes@d8591997d#pyflakes/checker.py
python
2026-08-18
goldset/0.1
1
Bouke/docx-mailmerge
Merge rows should not fail if there is a table which is not available in template
file
commit
Merge rows should not fail if there is a table which is not available in template
from copy import deepcopy import re from xml.etree import ElementTree from xml.etree.ElementTree import Element from zipfile import ZipFile, ZIP_DEFLATED NAMESPACES = { 'w': 'http://schemas.openxmlformats.org/wordprocessingml/2006/main', 'mc': 'http://schemas.openxmlformats.org/markup-compatibility/2006', ...
from copy import deepcopy import re from xml.etree import ElementTree from xml.etree.ElementTree import Element from zipfile import ZipFile, ZIP_DEFLATED NAMESPACES = { 'w': 'http://schemas.openxmlformats.org/wordprocessingml/2006/main', 'mc': 'http://schemas.openxmlformats.org/markup-compatibility/2006', ...
tests/test_merge_table_rows.py
[ "tests/test_merge_table_rows.py::MergeTableRowsTest::test_merge_rows_no_table" ]
2016-04-27
2016-04-05
MIT
LICENSE.txt
b43774874b35568b25fc333a40a9ecd8a10bf3d3
1ae8a2975829c08050da4316dc37eb5927b49d44
https://github.com/Bouke/docx-mailmerge/commit/b43774874b35568b25fc333a40a9ecd8a10bf3d3
https://github.com/Bouke/docx-mailmerge
mailmerge
[ "MailMerge" ]
12
1
485fdae2c7645476
Bouke/docx-mailmerge@b43774874#mailmerge.py
python
2026-08-18
goldset/0.1
1
andialbrecht/sqlparse
Fix #230 (function comparison grouping)
file
commit
Fix #230 (function comparison grouping)
# -*- coding: utf-8 -*- import itertools from sqlparse import sql from sqlparse import tokens as T def _group_left_right(tlist, ttype, value, cls, check_right=lambda t: True, check_left=lambda t: True, include_semicolon=False): [_group_left_right...
# -*- coding: utf-8 -*- import itertools from sqlparse import sql from sqlparse import tokens as T def _group_left_right(tlist, ttype, value, cls, check_right=lambda t: True, check_left=lambda t: True, include_semicolon=False): [_group_left_right...
tests/test_grouping.py
[ "tests/test_grouping.py::test_comparison_with_functions" ]
2016-04-05
2016-04-03
BSD-3-Clause
LICENSE
c63737f9d2ec4b7ac2e2579b2583daff6700f462
ee5799fbb60e9739e42922861cd9f24990fc52dd
https://github.com/andialbrecht/sqlparse/commit/c63737f9d2ec4b7ac2e2579b2583daff6700f462
https://github.com/andialbrecht/sqlparse
sqlparse.engine.grouping
[ "group_comparison" ]
3
1
823f2be261258582
andialbrecht/sqlparse@c63737f9d#sqlparse/engine/grouping.py
python
2026-08-18
goldset/0.1
1
terryyin/lizard
fix the swift 'optional' question mark
file
commit
fix the swift 'optional' question mark
''' Language parser for Apple Swift ''' from .code_reader import CodeReader, CodeStateMachine from .clike import CCppCommentsMixin class SwiftReader(CodeReader, CCppCommentsMixin): # pylint: disable=R0903 ext = ['swift'] language_names = ['swift'] def __init__(self, context): super(SwiftRea...
''' Language parser for Apple Swift ''' from .code_reader import CodeReader, CodeStateMachine from .clike import CCppCommentsMixin class SwiftReader(CodeReader, CCppCommentsMixin): # pylint: disable=R0903 ext = ['swift'] language_names = ['swift'] def __init__(self, context): super(SwiftRea...
test/testSwift.py
[ "test/testSwift.py::Test_parser_for_Swift::test_optional" ]
2016-03-31
2016-03-26
MIT
LICENSE.txt
714fefb65e8b6edd87d385cf10db92d1cc7d078b
2823730ab1cab2e1efc9c9292e3292a8b5b10494
https://github.com/terryyin/lizard/commit/714fefb65e8b6edd87d385cf10db92d1cc7d078b
https://github.com/terryyin/lizard
lizard_languages.swift
[ "SwiftReader" ]
8
1
f132124aff93da72
terryyin/lizard@714fefb65#lizard_languages/swift.py
python
2026-08-18
goldset/0.1
1
wbond/asn1crypto
uri_to_iri
Fix type issue parsing IRI with explicit port on Python 3
function
docstring
Converts an ASCII URI byte string into a unicode IRI :param value: An ASCII-encoded byte string of the URI :return: A unicode string of the IRI
def uri_to_iri(value): """ Converts an ASCII URI byte string into a unicode IRI :param value: An ASCII-encoded byte string of the URI :return: A unicode string of the IRI """ if not isinstance(value, byte_cls): raise TypeError(unwrap( ''' value ...
def uri_to_iri(value): """ Converts an ASCII URI byte string into a unicode IRI :param value: An ASCII-encoded byte string of the URI :return: A unicode string of the IRI """ if not isinstance(value, byte_cls): raise TypeError(unwrap( ''' value ...
tests/test_x509.py
[ "tests/test_x509.py::X509Tests::test_iri_with_port" ]
2016-03-29
2016-03-29
MIT
LICENSE
0ca5d03ac1b867ba07e54ee60c64bc6a8cf9f3eb
db9a86b532b6ffa8a6846d9ef7a56e0afdea0e82
https://github.com/wbond/asn1crypto/commit/0ca5d03ac1b867ba07e54ee60c64bc6a8cf9f3eb
https://github.com/wbond/asn1crypto
asn1crypto._iri
[ "uri_to_iri" ]
4
1
77623520335b5ace
wbond/asn1crypto@0ca5d03ac#uri_to_iri
python
2026-08-18
goldset/0.1
1
takluyver/entrypoints
Fix loading entry points with only module part
file
commit
Fix loading entry points with only module part
"""Discover and load entry points from installed packages.""" import configparser from contextlib import contextmanager import glob from importlib import import_module import io import itertools import os.path as osp import re import sys import warnings import zipfile entry_point_pattern = re.compile(r""" (?P<modulena...
"""Discover and load entry points from installed packages.""" import configparser from contextlib import contextmanager import glob from importlib import import_module import io import itertools import os.path as osp import re import sys import warnings import zipfile entry_point_pattern = re.compile(r""" (?P<modulena...
tests/test_entrypoints.py
[ "tests/test_entrypoints.py::test_load" ]
2016-03-29
2015-05-15
MIT
LICENSE
a904a0d2e42a10e935b8ca347db1350d1bc706f9
e4458d247d72caafd16faf9d1164dd111ffaffef
https://github.com/takluyver/entrypoints/commit/a904a0d2e42a10e935b8ca347db1350d1bc706f9
https://github.com/takluyver/entrypoints
entrypoints
[ "EntryPoint" ]
6
1
505bf7377296196e
takluyver/entrypoints@a904a0d2e#entrypoints.py
python
2026-08-18
goldset/0.1
1
bastikr/boolean.py
Fix bug in remove where an undefined variable was used.
file
commit
Fix bug in remove where an undefined variable was used.
""" Boolean Algebra. This module defines a Boolean Algebra over the set {TRUE, FALSE} with boolean variables and the boolean functions AND, OR, NOT. For extensive documentation look either into the docs directory or view it online, at https://booleanpy.readthedocs.org/en/latest/. Copyright (c) 2009-2010 Sebastian Kra...
""" Boolean Algebra. This module defines a Boolean Algebra over the set {TRUE, FALSE} with boolean variables and the boolean functions AND, OR, NOT. For extensive documentation look either into the docs directory or view it online, at https://booleanpy.readthedocs.org/en/latest/. Copyright (c) 2009-2010 Sebastian Kra...
boolean/test_boolean.py
[ "boolean/test_boolean.py::DualBaseTestCase::test_remove" ]
2016-03-27
2016-03-27
BSD-2-Clause
LICENSE.txt
8834e8a778cd5f5df022c3a791c70229d8d17eee
4fe3c828b6a21dd011df8f66ee2018f9a652a2ba
https://github.com/bastikr/boolean.py/commit/8834e8a778cd5f5df022c3a791c70229d8d17eee
https://github.com/bastikr/boolean.py
boolean.boolean
[ "DualBase" ]
2
1
ad2fb4c2abc463e5
bastikr/boolean.py@8834e8a77#boolean/boolean.py
python
2026-08-18
goldset/0.1
1
terryyin/lizard
fix line counting with cpre
file
commit
fix line counting with cpre
''' This is an extension of lizard, It helps to deal with C code with preprocessors that is hard to parse. It works by always ignoring the code between #else and #end. ''' class LizardExtension(object): # pylint: disable=R0903 ordering_index = 0 def __call__(self, tokens, reader): def preprocess_to...
''' This is an extension of lizard, It helps to deal with C code with preprocessors that is hard to parse. It works by always ignoring the code between #else and #end. ''' class LizardExtension(object): # pylint: disable=R0903 ordering_index = 0 def __call__(self, tokens, reader): def preprocess_to...
test/testCPreprocessorExtension.py
[ "test/testCPreprocessorExtension.py::Test_end_2_end::test_line_counting" ]
2016-02-28
2016-02-28
MIT
LICENSE.txt
e22583990f1569bf08e904c5dc1d83c4bd579310
2a165bdd1cb1b318a15bf6b1bfdce8bcc32d70df
https://github.com/terryyin/lizard/commit/e22583990f1569bf08e904c5dc1d83c4bd579310
https://github.com/terryyin/lizard
lizard_ext.lizardcpre
[ "LizardExtension" ]
9
1
a525242a3d7c9f6e
terryyin/lizard@e22583990#lizard_ext/lizardcpre.py
python
2026-08-18
goldset/0.1
1
rbarrois/python-semanticversion
Fix handling pre-1.0.0 caret versions (Closes #35)
file
commit
Fix handling pre-1.0.0 caret versions (Closes #35)
# -*- coding: utf-8 -*- # Copyright (c) The python-semanticversion project # This code is distributed under the two-clause BSD License. from __future__ import unicode_literals import functools import re from .compat import base_cmp def _to_int(value): try: return int(value), True except ValueError:...
# -*- coding: utf-8 -*- # Copyright (c) The python-semanticversion project # This code is distributed under the two-clause BSD License. from __future__ import unicode_literals import functools import re from .compat import base_cmp def _to_int(value): try: return int(value), True except ValueError:...
tests/test_base.py
[ "tests/test_base.py::SpecItemTestCase::test_matches" ]
2016-02-21
2016-02-21
BSD-2-Clause
LICENSE
d10ab4cb1d1ca8090132f205017dfc90473c91cc
9872b3940e87d1d810560ea4381929554fd8038c
https://github.com/rbarrois/python-semanticversion/commit/d10ab4cb1d1ca8090132f205017dfc90473c91cc
https://github.com/rbarrois/python-semanticversion
semantic_version.base
[ "SpecItem" ]
8
1
86baf6e735df6cae
rbarrois/python-semanticversion@d10ab4cb1#semantic_version/base.py
python
2026-08-18
goldset/0.1
1
pycqa/flake8
Notifier
Fix Notifier.listeners_for
function
docstring
Object that tracks and notifies listener objects.
class Notifier(object): """Object that tracks and notifies listener objects.""" def __init__(self): """Initialize an empty notifier object.""" self.listeners = _trie.Trie() def listeners_for(self, error_code): """Retrieve listeners for an error_code. There may be listeners...
class Notifier(object): """Object that tracks and notifies listener objects.""" def __init__(self): """Initialize an empty notifier object.""" self.listeners = _trie.Trie() def listeners_for(self, error_code): """Retrieve listeners for an error_code. There may be listeners...
tests/unit/test_notifier.py
[ "tests/unit/test_notifier.py::TestNotifier::test_no_listeners_for[W123]" ]
2016-02-20
2016-02-19
MIT
LICENSE
98357e71db4591ecf9e74321608def35125aa40d
58b2ca69e466ed8669d830dc6a95fc32363448d7
https://github.com/pycqa/flake8/commit/98357e71db4591ecf9e74321608def35125aa40d
https://github.com/pycqa/flake8
flake8.plugins.notifier
[ "Notifier" ]
3
1
04db440bc8c7654d
pycqa/flake8@98357e71d#Notifier
python
2026-08-18
goldset/0.1
1
keleshev/schema
add strict flag in Schema class to skip wrong key validation without wildcard
file
commit
add strict flag in Schema class to skip wrong key validation without wildcard
__version__ = '0.4.1-alpha' __all__ = ['Schema', 'And', 'Or', 'Optional', 'SchemaError'] class SchemaError(Exception): """Error during Schema validation.""" def __init__(self, autos, errors): self.autos = autos if type(autos) is list else [autos] self.errors = errors if type(errors) is list ...
__version__ = '0.4.1-alpha' __all__ = ['Schema', 'And', 'Or', 'Optional', 'SchemaError'] class SchemaError(Exception): """Error during Schema validation.""" def __init__(self, autos, errors): self.autos = autos if type(autos) is list else [autos] self.errors = errors if type(errors) is list ...
test_schema.py
[ "test_schema.py::test_no_strict_schema" ]
2016-02-16
2016-02-16
MIT
LICENSE-MIT
db5ba6c15196d164cc71461c9457ffc5702b4599
695b793675eb66c99e0dac91cdbbc27dde27c491
https://github.com/keleshev/schema/commit/db5ba6c15196d164cc71461c9457ffc5702b4599
https://github.com/keleshev/schema
schema
[ "Schema" ]
5
1
555b3ef2700abb2e
keleshev/schema@db5ba6c15#schema.py
python
2026-08-18
goldset/0.1
1
hjson/hjson-py
scanKeyName
fix trailing whitespace in keyname
function
docstring
Scan the string s for a JSON/Hjson key. see scanstring
def scanKeyName(s, end, encoding=None, strict=True): """Scan the string s for a JSON/Hjson key. see scanstring""" ch, end = getNext(s, end) if ch == '"': return scanstring(s, end + 1, encoding, strict) begin = end while 1: ch = s[end:end + 1] if ch == ':': if ...
def scanKeyName(s, end, encoding=None, strict=True): """Scan the string s for a JSON/Hjson key. see scanstring""" ch, end = getNext(s, end) if ch == '"': return scanstring(s, end + 1, encoding, strict) begin = end space = -1 while 1: ch = s[end:end + 1] if ch == '': ...
hjson/tests/test_fail.py
[ "hjson/tests/test_fail.py::TestFail::test_truncated_input" ]
2016-02-04
2015-08-21
MIT
LICENSE.txt
06b136fc6dadbc2b69c1f9a7365e6ddb7f775045
f1e3ed86393eff4bdb1c55521add84e468ae0488
https://github.com/hjson/hjson-py/commit/06b136fc6dadbc2b69c1f9a7365e6ddb7f775045
https://github.com/hjson/hjson-py
hjson.decoder
[ "scanKeyName" ]
18
1
269eff559171c24f
hjson/hjson-py@06b136fc6#scanKeyName
python
2026-08-18
goldset/0.1
1
hannosch/python-gettext
Fix plural form support under Python 3.x, closes #5.
file
commit
Fix plural form support under Python 3.x, closes #5.
#! /usr/bin/env python # -*- coding: iso-8859-1 -*- # Written by Martin v. Loewis <loewis@informatik.hu-berlin.de> # # Changed by Christian 'Tiran' Heimes <tiran@cheimes.de> for the placeless # translation service (PTS) of Zope # # Fixed some bugs and updated to support msgctxt # by Hanno Schlichting <hanno@hannosch.eu...
#! /usr/bin/env python # -*- coding: iso-8859-1 -*- # Written by Martin v. Loewis <loewis@informatik.hu-berlin.de> # # Changed by Christian 'Tiran' Heimes <tiran@cheimes.de> for the placeless # translation service (PTS) of Zope # # Fixed some bugs and updated to support msgctxt # by Hanno Schlichting <hanno@hannosch.eu...
pythongettext/tests/test_compile.py
[ "pythongettext/tests/test_compile.py::TestWriter::test_plural" ]
2016-01-04
2016-01-04
BSD-2-Clause
LICENSE.rst
1b2213c9a7a862c3d800ae502ece3f45bfc2f906
fd7647170f1130ce5e567720544fe819d1976d2f
https://github.com/hannosch/python-gettext/commit/1b2213c9a7a862c3d800ae502ece3f45bfc2f906
https://github.com/hannosch/python-gettext
pythongettext.msgfmt
[ "Msgfmt" ]
4
1
66d4cdee2785f45b
hannosch/python-gettext@1b2213c9a#pythongettext/msgfmt.py
python
2026-08-18
goldset/0.1
1
msiemens/tinydb
Don't add keys to LRU cache if lookup fails (closes #87)
file
commit
Don't add keys to LRU cache if lookup fails (closes #87)
""" Utility functions. """ from contextlib import contextmanager import warnings # Python 2/3 independant dict iteration iteritems = getattr(dict, 'iteritems', dict.items) itervalues = getattr(dict, 'itervalues', dict.values) class LRUCache(dict): """ A simple LRU cache. """ def __init__(self, *ar...
""" Utility functions. """ from contextlib import contextmanager import warnings # Python 2/3 independant dict iteration iteritems = getattr(dict, 'iteritems', dict.items) itervalues = getattr(dict, 'itervalues', dict.values) class LRUCache(dict): """ A simple LRU cache. """ def __init__(self, *ar...
tests/test_utils.py
[ "tests/test_utils.py::test_lru_cache" ]
2016-01-03
2015-12-31
MIT
LICENSE
7af4bf50cc8fe13bd93abbe3992400964ea85149
1f411be06776f8647be7549af94c28ef2d3cdac6
https://github.com/msiemens/tinydb/commit/7af4bf50cc8fe13bd93abbe3992400964ea85149
https://github.com/msiemens/tinydb
tinydb.utils
[ "LRUCache" ]
8
1
9ae6be54afd5b53c
msiemens/tinydb@7af4bf50c#tinydb/utils.py
python
2026-08-18
goldset/0.1
1
pycqa/flake8
Fix logic for Notifier.listeners_for
file
commit
Fix logic for Notifier.listeners_for
from flake8 import _trie class Notifier(object): def __init__(self): """Initialize an empty notifier object.""" self.listeners = _trie.Trie() def listeners_for(self, error_code): """Retrieve listeners for an error_code. The error code does not need to be a specific error code...
from flake8 import _trie class Notifier(object): def __init__(self): """Initialize an empty notifier object.""" self.listeners = _trie.Trie() def listeners_for(self, error_code): """Retrieve listeners for an error_code. There may be listeners registered for E1, E100, E101, E1...
tests/test_notifier.py
[ "tests/test_notifier.py::TestNotifier::test_notify" ]
2015-12-29
2015-12-29
MIT
LICENSE
37b92cd4b47723115f9e27760307b10508808bc6
222be9ac4918d2ea85e9ac3d20832106c10d30a1
https://github.com/pycqa/flake8/commit/37b92cd4b47723115f9e27760307b10508808bc6
https://github.com/pycqa/flake8
flake8.notifier
[ "Notifier" ]
25
1
a1d22963b59951be
pycqa/flake8@37b92cd4b#flake8/notifier.py
python
2026-08-18
goldset/0.1
1
Infinidat/munch
Munch
Fix __contains__ returning True for Munch’s default attributes Includes changes from #6, as I couldn't test without it.
function
docstring
A dictionary that provides attribute-style access. A Munch is a subclass of dict; it supports all the methods a dict does... Including update()... As well as iteration... And "splats". See unmunchify/Munch.toDict, munchify/Munch.fromDict for notes about conversion.
class Munch(dict): """ A dictionary that provides attribute-style access. >>> b = Munch() >>> b.hello = 'world' >>> b.hello 'world' >>> b['hello'] += "!" >>> b.hello 'world!' >>> b.foo = Munch(lol=True) >>> b.foo.lol True >>> b...
class Munch(dict): """ A dictionary that provides attribute-style access. >>> b = Munch() >>> b.hello = 'world' >>> b.hello 'world' >>> b['hello'] += "!" >>> b.hello 'world!' >>> b.foo = Munch(lol=True) >>> b.foo.lol True >>> b...
test_munch.py
[ "test_munch.py::test_reserved_attributes[__class__]" ]
2015-12-01
2015-12-01
MIT
LICENSE.txt
4e030f6a9228f9ce476dfbee5ad66257b75ceced
734460414667af37c8632be84cbb228750c696ef
https://github.com/Infinidat/munch/commit/4e030f6a9228f9ce476dfbee5ad66257b75ceced
https://github.com/Infinidat/munch
munch.__init__
[ "Munch" ]
24
1
950a24f0bc1aaab5
Infinidat/munch@4e030f6a9#Munch
python
2026-08-18
goldset/0.1
1
PyCQA/pyflakes
Fix global removing all UndefinedName
file
commit
Fix global removing all UndefinedName
""" Main module. Implement the central Checker class. Also, it models the Bindings and Scopes. """ import doctest import os import sys PY2 = sys.version_info < (3, 0) PY32 = sys.version_info < (3, 3) # Python 2.5 to 3.2 PY33 = sys.version_info < (3, 4) # Python 2.5 to 3.3 builtin_vars = dir(__import__('__builti...
""" Main module. Implement the central Checker class. Also, it models the Bindings and Scopes. """ import doctest import os import sys PY2 = sys.version_info < (3, 0) PY32 = sys.version_info < (3, 3) # Python 2.5 to 3.2 PY33 = sys.version_info < (3, 4) # Python 2.5 to 3.3 builtin_vars = dir(__import__('__builti...
pyflakes/test/test_undefined_names.py
[ "pyflakes/test/test_undefined_names.py::Test::test_global_reset_name_only" ]
2015-11-12
2015-11-08
MIT
LICENSE
4feb31f04e4748bb131c58502175a1cc3bf5a19a
9a4d45c12e86cbb9effd749bd13ba48927063c23
https://github.com/PyCQA/pyflakes/commit/4feb31f04e4748bb131c58502175a1cc3bf5a19a
https://github.com/PyCQA/pyflakes
pyflakes.checker
[ "Checker" ]
6
1
b52f84d49d1c2b2c
PyCQA/pyflakes@4feb31f04#pyflakes/checker.py
python
2026-08-18
goldset/0.1
1
jmespath/jmespath.py
Raise LexerError on invalid numbers
file
commit
Raise LexerError on invalid numbers
import string import warnings from json import loads from jmespath.exceptions import LexerError, EmptyExpressionError class Lexer(object): START_IDENTIFIER = set(string.ascii_letters + '_') VALID_IDENTIFIER = set(string.ascii_letters + string.digits + '_') START_NUMBER = set(string.digits + '-') VALI...
import string import warnings from json import loads from jmespath.exceptions import LexerError, EmptyExpressionError class Lexer(object): START_IDENTIFIER = set(string.ascii_letters + '_') VALID_IDENTIFIER = set(string.ascii_letters + string.digits + '_') VALID_NUMBER = set(string.digits) WHITESPACE...
tests/test_lexer.py
[ "tests/test_lexer.py::TestRegexLexer::test_unknown_character_with_identifier" ]
2015-10-21
2015-06-09
MIT
LICENSE
cefe47c52c33c684a06ba43a8245ba118ca52408
93024894f4bb373d7760364bb307bee93f763c5f
https://github.com/jmespath/jmespath.py/commit/cefe47c52c33c684a06ba43a8245ba118ca52408
https://github.com/jmespath/jmespath.py
jmespath.lexer
[ "Lexer" ]
25
1
d1e7c3a7895eb1a6
jmespath/jmespath.py@cefe47c52#jmespath/lexer.py
python
2026-08-18
goldset/0.1
1
jazzband/geojson
is_valid
Fix MultiPolygon validation
function
docstring
IsValid provides validation for GeoJSON objects All of error messages obtained from the offical site http://geojson.org/geojson-spec.html Args: obj(geoJSON object): check validation Returns: dict of two paremeters 'valid' and 'message'. In the case if geoJSON object is valid, returns {valid: 'yes', me...
def is_valid(obj): """ IsValid provides validation for GeoJSON objects All of error messages obtained from the offical site http://geojson.org/geojson-spec.html Args: obj(geoJSON object): check validation Returns: dict of two paremeters 'valid' and 'message'...
def is_valid(obj): """ IsValid provides validation for GeoJSON objects All of error messages obtained from the offical site http://geojson.org/geojson-spec.html Args: obj(geoJSON object): check validation Returns: dict of two paremeters 'valid' and 'message'...
tests/test_validation.py
[ "tests/test_validation.py::TestValidationMultiPolygon::test_valid_multipolygon" ]
2015-10-12
2015-08-11
BSD-3-Clause
LICENSE.rst
c788b501ca8616a3c2e21b1953c60166231ff123
cb0d7f9d9a89c6d41ad7457e083aaa6abdf9f966
https://github.com/jazzband/geojson/commit/c788b501ca8616a3c2e21b1953c60166231ff123
https://github.com/jazzband/geojson
geojson.validation
[ "is_valid" ]
3
1
254d678438894154
jazzband/geojson@c788b501c#is_valid
python
2026-08-18
goldset/0.1
1
keleshev/schema
Fix reliance on `__name__` of callables
file
commit
Fix reliance on `__name__` of callables
__version__ = '0.3.1' class SchemaError(Exception): """Error during Schema validation.""" def __init__(self, autos, errors): self.autos = autos if type(autos) is list else [autos] self.errors = errors if type(errors) is list else [errors] Exception.__init__(self, self.code) @pro...
__version__ = '0.3.1' class SchemaError(Exception): """Error during Schema validation.""" def __init__(self, autos, errors): self.autos = autos if type(autos) is list else [autos] self.errors = errors if type(errors) is list else [errors] Exception.__init__(self, self.code) @pro...
test_schema.py
[ "test_schema.py::test_issue_56_cant_rely_on_callables_to_have_name" ]
2015-09-26
2015-09-26
MIT
LICENSE-MIT
c80e72f59c458b4d0c0de84a5f2d1f42258a33f5
29286c1f9cce20cf70f2b15d9247f2ca6ef1d6c9
https://github.com/keleshev/schema/commit/c80e72f59c458b4d0c0de84a5f2d1f42258a33f5
https://github.com/keleshev/schema
schema
[ "Schema", "Use" ]
10
1
1e0b9819a8afabc4
keleshev/schema@c80e72f59#schema.py
python
2026-08-18
goldset/0.1
1
geographiclib/geographiclib-python
* Fix geodesic inversion so that nan + point on equator or pole returns all nans. Update tests to check this. * Fix bug in gedistance.m in handling equatorial lines.
file
commit
* Fix geodesic inversion so that nan + point on equator or pole returns all nans. Update tests to check this. * Fix bug in gedistance.m in handling equatorial lines.
"""geodesic.py: transcription of GeographicLib::Geodesic class.""" # geodesic.py # # This is a rather literal translation of the GeographicLib::Geodesic class to # python. See the documentation for the C++ class for more information at # # http://geographiclib.sourceforge.net/html/annotated.html # # The algorithms ...
"""geodesic.py: transcription of GeographicLib::Geodesic class.""" # geodesic.py # # This is a rather literal translation of the GeographicLib::Geodesic class to # python. See the documentation for the C++ class for more information at # # http://geographiclib.sourceforge.net/html/annotated.html # # The algorithms ...
python/test/test_geodesic.py
[ "python/test/test_geodesic.py::GeodSolveTest::test_GeodSolve55" ]
2015-09-23
2015-09-23
MIT
LICENSE
72d34d4d4313a1564dac6dd3223ee483cf7e0430
4e778cb920c05355908c9f1a7a1f7ff88f218183
https://github.com/geographiclib/geographiclib-python/commit/72d34d4d4313a1564dac6dd3223ee483cf7e0430
https://github.com/geographiclib/geographiclib-python
python.geographiclib.geodesic
[ "Geodesic" ]
5
1
b77134c4d9d05388
geographiclib/geographiclib-python@72d34d4d4#python/geographiclib/geodesic.py
python
2026-08-18
goldset/0.1
1
geographiclib/geographiclib-python
* Create and install geographiclib.js and geographiclib.min.js. * Complete the unit tests for Java and JavaScript packages. * Introduce GeodesicMask.STANDARD into Java package. * Fix bug in normalizat
file
commit
* Create and install geographiclib.js and geographiclib.min.js. * Complete the unit tests for Java and JavaScript packages. * Introduce GeodesicMask.STANDARD into Java package. * Fix bug in normalizat
"""polygonarea.py: transcription of GeographicLib::PolygonArea class.""" # polygonarea.py # # This is a rather literal translation of the GeographicLib::PolygonArea class # to python. See the documentation for the C++ class for more information at # # http://geographiclib.sourceforge.net/html/annotated.html # # The...
"""polygonarea.py: transcription of GeographicLib::PolygonArea class.""" # polygonarea.py # # This is a rather literal translation of the GeographicLib::PolygonArea class # to python. See the documentation for the C++ class for more information at # # http://geographiclib.sourceforge.net/html/annotated.html # # The...
python/test/test_geodesic.py
[ "python/test/test_geodesic.py::PlanimeterTest::test_Planimeter0" ]
2015-09-17
2015-09-16
MIT
LICENSE
28b2419d930e82a91128d834571ed448c0810005
c07596c0c058bd69d367ab601346d3aab8316b58
https://github.com/geographiclib/geographiclib-python/commit/28b2419d930e82a91128d834571ed448c0810005
https://github.com/geographiclib/geographiclib-python
python.geographiclib.polygonarea
[ "PolygonArea" ]
2
1
7d9476e3126c39ee
geographiclib/geographiclib-python@28b2419d9#python/geographiclib/polygonarea.py
python
2026-08-18
goldset/0.1
1
marshallward/f90nml
FIndex
FIndex iteration fix to termination + test case
function
docstring
Column-major multidimensional index iterator
class FIndex(object): """Column-major multidimensional index iterator""" def __init__(self, bounds): self.start = [1 if not b[0] else b[0] for b in bounds] self.end = [b[1] for b in bounds] self.step = [1 if not b[2] else b[2] for b in bounds] self.current = self.start[:] ...
class FIndex(object): """Column-major multidimensional index iterator""" def __init__(self, bounds): self.start = [1 if not b[0] else b[0] for b in bounds] self.end = [b[1] for b in bounds] self.step = [1 if not b[2] else b[2] for b in bounds] self.current = self.start[:] ...
test/test_f90nml.py
[ "test/test_f90nml.py::Test::test_findex_iteration" ]
2015-08-28
2015-08-27
Apache-2.0
LICENSE
54af03d213fd5d981324f40abbefe95afe3f5afa
0134929b8f9ef188fee1a9f785bc2d8f917a0c62
https://github.com/marshallward/f90nml/commit/54af03d213fd5d981324f40abbefe95afe3f5afa
https://github.com/marshallward/f90nml
f90nml.findex
[ "FIndex" ]
6
1
556ab588b17c5c43
marshallward/f90nml@54af03d21#FIndex
python
2026-08-18
goldset/0.1
1
mapbox/mercantile
Fix error in lng/lat truncation.
file
commit
Fix error in lng/lat truncation.
"""Spherical mercator and XYZ tile utilities""" # http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames from collections import namedtuple import math __all__ = ['ul', 'bounds', 'xy', 'tile', 'parent', 'children', 'bounding_tile'] __version__ = '0.8.2' Tile = namedtuple('Tile', ['x', 'y', 'z']) LngLat = namedtup...
"""Spherical mercator and XYZ tile utilities""" # http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames from collections import namedtuple import math __all__ = ['ul', 'bounds', 'xy', 'tile', 'parent', 'children', 'bounding_tile'] __version__ = '0.8.3' Tile = namedtuple('Tile', ['x', 'y', 'z']) LngLat = namedtup...
tests/test_funcs.py
[ "tests/test_funcs.py::test_truncate_lat_over" ]
2015-08-25
2014-12-16
BSD-3-Clause
LICENSE.txt
734ca8eb9438e154f56734461bacfd7d45578d5e
271042de244b3610713f9df4f392af5ae60b02e9
https://github.com/mapbox/mercantile/commit/734ca8eb9438e154f56734461bacfd7d45578d5e
https://github.com/mapbox/mercantile
mercantile.__init__
[ "truncate_lnglat" ]
4
1
382b06a458684649
mapbox/mercantile@734ca8eb9#mercantile/__init__.py
python
2026-08-18
goldset/0.1
1
caesar0301/treelib
fixed the wrong encoding/decoding problem between python 2 and 3 by using the codecs library
file
commit
fixed the wrong encoding/decoding problem between python 2 and 3 by using the codecs library
#!/usr/bin/env python # -*- coding: utf-8 -*- """treelib - Simple to use for you. Python 2/3 Tree Implementation """ from __future__ import print_function from __future__ import unicode_literals import sys import json from copy import deepcopy try: from .node import Node except ImportError: from node import...
#!/usr/bin/env python # -*- coding: utf-8 -*- """treelib - Simple to use for you. Python 2/3 Tree Implementation """ from __future__ import print_function from __future__ import unicode_literals import sys import json import codecs from copy import deepcopy try: from .node import Node except ImportError: fr...
tests/test_treelib.py
[ "tests/test_treelib.py::TreeCase::test_to_dot" ]
2015-07-15
2015-07-14
Apache-2.0
LICENSE
a0dbcf468adea104b98af2cca9e3edeed608e68d
22cf20607610fcb480c26dac9bdc189eef6e72c8
https://github.com/caesar0301/treelib/commit/a0dbcf468adea104b98af2cca9e3edeed608e68d
https://github.com/caesar0301/treelib
treelib.tree
[ "Tree" ]
11
1
cb50add519e2a94c
caesar0301/treelib@a0dbcf468#treelib/tree.py
python
2026-08-18
goldset/0.1
1
oauthlib/oauthlib
Request
#340 - raise AttributeError from common.Request.__getattr__+ add tests
function
docstring
A malleable representation of a signable HTTP request. Body argument may contain any data, but parameters will only be decoded if they are one of: * urlencoded query string * dict * list of 2-tuples Anything else will be treated as raw body data to be passed through unmolested.
class Request(object): """A malleable representation of a signable HTTP request. Body argument may contain any data, but parameters will only be decoded if they are one of: * urlencoded query string * dict * list of 2-tuples Anything else will be treated as raw body data to be passed thr...
class Request(object): """A malleable representation of a signable HTTP request. Body argument may contain any data, but parameters will only be decoded if they are one of: * urlencoded query string * dict * list of 2-tuples Anything else will be treated as raw body data to be passed thr...
tests/test_common.py
[ "tests/test_common.py::RequestTest::test_getattr_raise_attribute_error" ]
2015-05-09
2015-04-19
BSD-3-Clause
LICENSE
539558a02edbadb8d6ef690fb0beb2510a5eeb17
514cad74bde4cd7781b496155058a79507245798
https://github.com/oauthlib/oauthlib/commit/539558a02edbadb8d6ef690fb0beb2510a5eeb17
https://github.com/oauthlib/oauthlib
oauthlib.common
[ "Request" ]
5
1
fd897c622c0dccd2
oauthlib/oauthlib@539558a02#Request
python
2026-08-18
goldset/0.1
1
bear/parsedatetime
re_sources is lacking of "afternoon" which causes bug
file
commit
re_sources is lacking of "afternoon" which causes bug
# -*- coding: utf-8 -*- """ pdt_locales All of the included locale classes shipped with pdt. """ import datetime try: import PyICU as pyicu except: pyicu = None def lcase(x): return x.lower() class pdtLocale_base(object): """ default values for Locales """ locale_keys = [ 'MonthOffsets'...
# -*- coding: utf-8 -*- """ pdt_locales All of the included locale classes shipped with pdt. """ import datetime try: import PyICU as pyicu except: pyicu = None def lcase(x): return x.lower() class pdtLocale_base(object): """ default values for Locales """ locale_keys = [ 'MonthOffsets'...
parsedatetime/tests/TestSimpleDateTimes.py
[ "parsedatetime/tests/TestSimpleDateTimes.py::test::testSpecialTimes" ]
2015-05-07
2015-04-17
Apache-2.0
LICENSE.txt
35569e2f62de47fdea674e06100dac7b24ad23da
9981690036ccce332cb594b0dcd3bdc785d77c38
https://github.com/bear/parsedatetime/commit/35569e2f62de47fdea674e06100dac7b24ad23da
https://github.com/bear/parsedatetime
parsedatetime.pdt_locales
[ "pdtLocale_base" ]
1
1
6cc78ea9baad53e1
bear/parsedatetime@35569e2f6#parsedatetime/pdt_locales.py
python
2026-08-18
goldset/0.1
1
mahmoud/boltons
ParsedException
Fix multiline exception messages
function
docstring
Stores a parsed traceback and exception as would be typically output by :func:`sys.excepthook` or :func:`traceback.print_exception`. .. note: Does not currently store SyntaxError details such as column.
class ParsedException(object): """Stores a parsed traceback and exception as would be typically output by :func:`sys.excepthook` or :func:`traceback.print_exception`. .. note: Does not currently store SyntaxError details such as column. """ def __init__(self, exc_type_name, exc_msg, fr...
class ParsedException(object): """Stores a parsed traceback and exception as would be typically output by :func:`sys.excepthook` or :func:`traceback.print_exception`. .. note: Does not currently store SyntaxError details such as column. """ def __init__(self, exc_type_name, exc_msg, fr...
tests/tbutils_test.py
[ "tests/tbutils_test.py::test_multiline_exception_message" ]
2015-04-20
2015-04-20
BSD-2-Clause
LICENSE
c4a489d853b9130744ce2794be4a1cb79331b4b3
51ddb6c9115260417a4178a7fa8212c5bcbb5e14
https://github.com/mahmoud/boltons/commit/c4a489d853b9130744ce2794be4a1cb79331b4b3
https://github.com/mahmoud/boltons
boltons.tbutils
[ "ParsedException" ]
2
1
de38bc481f8205eb
mahmoud/boltons@c4a489d85#ParsedException
python
2026-08-18
goldset/0.1
1
jmespath/jmespath.py
Fix invalid-type error messages
file
commit
Fix invalid-type error messages
import inspect import math import json import weakref from jmespath import exceptions from jmespath.compat import string_type as STRING_TYPE from jmespath.compat import get_methods # python types -> jmespath types TYPES_MAP = { 'bool': 'boolean', 'list': 'array', 'dict': 'object', 'NoneType': 'null',...
import inspect import math import json import weakref from jmespath import exceptions from jmespath.compat import string_type as STRING_TYPE from jmespath.compat import get_methods # python types -> jmespath types TYPES_MAP = { 'bool': 'boolean', 'list': 'array', 'dict': 'object', 'NoneType': 'null',...
tests/test_functions.py
[ "tests/test_functions.py::TestFunctions::test_type_error_messages" ]
2015-04-08
2015-03-25
MIT
LICENSE
f23b1965bbb94ec66aecad0ab9f631f1072f9471
57263557099df8e8cf83368448936c147aebd3c7
https://github.com/jmespath/jmespath.py/commit/f23b1965bbb94ec66aecad0ab9f631f1072f9471
https://github.com/jmespath/jmespath.py
jmespath.functions
[ "RuntimeFunctions" ]
8
1
cfd49b2675e13ebf
jmespath/jmespath.py@f23b1965b#jmespath/functions.py
python
2026-08-18
goldset/0.1
1
google/yapf
_RetainVerticalSpacing
fix #74, --lines over multiline strings erroneously inserted newlines
function
docstring
Retain all vertical spacing between lines.
def _RetainVerticalSpacing(prev_uwline, cur_uwline): """Retain all vertical spacing between lines.""" if not prev_uwline: return prev_lineno = prev_uwline.last.lineno if cur_uwline.first.is_comment: cur_lineno = cur_uwline.first.lineno - cur_uwline.first.value.count('\n') else: cur_lineno = cur_uw...
def _RetainVerticalSpacing(prev_uwline, cur_uwline): """Retain all vertical spacing between lines.""" if not prev_uwline: return if prev_uwline.last.is_string: prev_lineno = prev_uwline.last.lineno + prev_uwline.last.value.count('\n') else: prev_lineno = prev_uwline.last.lineno if cur_uwline.first...
yapftests/yapf_test.py
[ "yapftests/yapf_test.py::CommandLineTest::testREtainingVerticalWhitespace" ]
2015-04-07
2015-04-07
Apache-2.0
LICENSE
d9b5926bcef47714d30d8312decacdf2d6788097
f85517723a65eef8134ff9ef60d1e68a9f48cf08
https://github.com/google/yapf/commit/d9b5926bcef47714d30d8312decacdf2d6788097
https://github.com/google/yapf
yapf.yapflib.reformatter
[ "_RetainVerticalSpacing" ]
5
1
9dbb004f44189a3e
google/yapf@d9b5926bc#_RetainVerticalSpacing
python
2026-08-18
goldset/0.1
1
ekzhu/datasketch
fix pickling for minhash
file
commit
fix pickling for minhash
''' This module implements MinHash - a probabilistic data structure for computing Jaccard similarity between datasets. The original MinHash paper: http://cs.brown.edu/courses/cs253/papers/nearduplicate.pdf ''' import random, struct # http://en.wikipedia.org/wiki/Mersenne_prime _mersenne_prime = (1 << 61) - 1 _max_ha...
''' This module implements MinHash - a probabilistic data structure for computing Jaccard similarity between datasets. The original MinHash paper: http://cs.brown.edu/courses/cs253/papers/nearduplicate.pdf ''' import random, struct # http://en.wikipedia.org/wiki/Mersenne_prime _mersenne_prime = (1 << 61) - 1 _max_ha...
test/minhash_test.py
[ "test/minhash_test.py::TestMinHash::test_init" ]
2015-04-01
2015-04-01
MIT
LICENSE
50d2e334b8c578f3c66ccd8c14a9a17515e8eca1
dff39ee3f8279b690544274d096f90de444dae34
https://github.com/ekzhu/datasketch/commit/50d2e334b8c578f3c66ccd8c14a9a17515e8eca1
https://github.com/ekzhu/datasketch
datasketch.minhash
[ "MinHash", "_create_permutation" ]
23
1
3f259f0564c4e3cb
ekzhu/datasketch@50d2e334b#datasketch/minhash.py
python
2026-08-18
goldset/0.1
1
google/yapf
_NormalizeCode
Fix verification when there's a comment between decorators.
function
docstring
Make sure that the code snippet is compilable.
def _NormalizeCode(code): """Make sure that the code snippet is compilable.""" code = textwrap.dedent(code.lstrip('\n')).lstrip() if re.match(r'(if|while|for|with|def|class)\b', code): code += '\n pass' elif re.match(r'(elif|else)\b', code): try: try_code = 'if True:\n pass\n' + code + '\n ...
def _NormalizeCode(code): """Make sure that the code snippet is compilable.""" code = textwrap.dedent(code.lstrip('\n')).lstrip() # Split the code to lines and get rid of all leading full-comment lines as # they can mess up the normalization attempt. lines = code.split('\n') for i, line in enumerate(lines)...
yapftests/reformatter_test.py
[ "yapftests/reformatter_test.py::SingleLineReformatterTest::testCommentBetweenDecorators" ]
2015-03-26
2015-03-26
Apache-2.0
LICENSE
3284b3aadf08858c2d0b1de353f079c16590ecee
3756f78ed1128daaeab0e509085efa13c9a860f2
https://github.com/google/yapf/commit/3284b3aadf08858c2d0b1de353f079c16590ecee
https://github.com/google/yapf
yapf.yapflib.verifier
[ "_NormalizeCode" ]
9
1
1ef8143e89a00384
google/yapf@3284b3aad#_NormalizeCode
python
2026-08-18
goldset/0.1
1
trbs/pid
1. setup logger during _setup() since the default handle/stream may get closed 2. fix explicit call to check() and add test for double lazy check.
file
commit
1. setup logger during _setup() since the default handle/stream may get closed 2. fix explicit call to check() and add test for double lazy check.
import os import sys import errno import fcntl import atexit import signal import logging import tempfile __version__ = "1.1.0" DEFAULT_PID_DIR = "/var/run/" logger = logging.getLogger("PidFile") class PidFileError(Exception): pass class PidFileUnreadableError(PidFileError): pass class PidFileAlreadyRu...
import os import sys import errno import fcntl import atexit import signal import logging import tempfile __version__ = "1.1.0" DEFAULT_PID_DIR = "/var/run/" class PidFileError(Exception): pass class PidFileUnreadableError(PidFileError): pass class PidFileAlreadyRunningError(PidFileError): pass c...
tests/test_pid.py
[ "tests/test_pid.py::test_pid_double_lazy_check_already_running" ]
2015-03-26
2015-03-26
Apache-2.0
LICENSE
6e256070c6909edafa69cdd2099123394e29fcca
034bca117d814e064e9d6a0fa16c48781f9b27ba
https://github.com/trbs/pid/commit/6e256070c6909edafa69cdd2099123394e29fcca
https://github.com/trbs/pid
pid.__init__
[ "PidFile" ]
19
1
855e230fb02d58c0
trbs/pid@6e256070c#pid/__init__.py
python
2026-08-18
goldset/0.1
1
mgedmin/objgraph
Fix python3 compatibility, and fix docstrings.
file
commit
Fix python3 compatibility, and fix docstrings.
""" Tools for drawing Python object reference graphs with graphviz. You can find documentation online at http://mg.pov.lt/objgraph/ Copyright (c) 2008-2014 Marius Gedminas <marius@pov.lt> Copyright (c) 2010 Stefano Rivera <stefano@rivera.za.net> Released under the MIT licence. """ # Permission is hereby granted, fre...
""" Tools for drawing Python object reference graphs with graphviz. You can find documentation online at http://mg.pov.lt/objgraph/ Copyright (c) 2008-2014 Marius Gedminas <marius@pov.lt> Copyright (c) 2010 Stefano Rivera <stefano@rivera.za.net> Released under the MIT licence. """ # Permission is hereby granted, fre...
tests.py
[ "tests.py::ShowGraphTest::test_basic_file_output" ]
2015-02-25
2015-02-25
MIT
LICENSE
0ff6d0b3be192c8309a60e5597593519185c4ff4
34a1b76d3c75682c2242da2de1ec6758e05668cf
https://github.com/mgedmin/objgraph/commit/0ff6d0b3be192c8309a60e5597593519185c4ff4
https://github.com/mgedmin/objgraph
objgraph
[ "_get_obj_type" ]
9
1
9107990b9af291c5
mgedmin/objgraph@0ff6d0b3b#objgraph.py
python
2026-08-18
goldset/0.1
1
pytest-dev/apipkg
initpkg
fix typos and auto-obtain version from pkg_ressources
function
docstring
initialize given package from the export definitions.
def initpkg(pkgname, exportdefs, attr=dict(), eager=False): """ initialize given package from the export definitions. """ oldmod = sys.modules.get(pkgname) d = {} f = getattr(oldmod, '__file__', None) if f: f = _py_abspath(f) d['__file__'] = f if hasattr(oldmod, '__version__'): ...
def initpkg(pkgname, exportdefs, attr=dict(), eager=False): """ initialize given package from the export definitions. """ oldmod = sys.modules.get(pkgname) d = {} f = getattr(oldmod, '__file__', None) if f: f = _py_abspath(f) d['__file__'] = f if hasattr(oldmod, '__version__'): ...
test_apipkg.py
[ "test_apipkg.py::test_autoset_version_attribute_from_distribution" ]
2015-02-15
2015-02-15
MIT
LICENSE
a10f27e4690e0322b48661cf22118dd1c998e181
4d840c3b33c1dbc79849879bb969eee1bd6c12b9
https://github.com/pytest-dev/apipkg/commit/a10f27e4690e0322b48661cf22118dd1c998e181
https://github.com/pytest-dev/apipkg
apipkg
[ "initpkg" ]
4
1
47d8fc9447534e16
pytest-dev/apipkg@a10f27e46#initpkg
python
2026-08-18
goldset/0.1
1
msiemens/tinydb
CachingMiddleware
Fix problem with caching and existing data
function
docstring
Add some caching to TinyDB. This Middleware aims to improve the performance of TinyDB by writing only the last DB state every :attr:`WRITE_CACHE_SIZE` time and reading always from cache.
class CachingMiddleware(Middleware): """ Add some caching to TinyDB. This Middleware aims to improve the performance of TinyDB by writing only the last DB state every :attr:`WRITE_CACHE_SIZE` time and reading always from cache. """ #: The number of write operations to cache before writing ...
class CachingMiddleware(Middleware): """ Add some caching to TinyDB. This Middleware aims to improve the performance of TinyDB by writing only the last DB state every :attr:`WRITE_CACHE_SIZE` time and reading always from cache. """ #: The number of write operations to cache before writing ...
tests/test_middlewares.py
[ "tests/test_middlewares.py::test_caching_json_write" ]
2015-02-03
2015-01-09
MIT
LICENSE
45a4d4b314e30702fa1bb3899b99d3b87cde0ecc
ac58fea350578e889e71cf92c6345adf3fcab061
https://github.com/msiemens/tinydb/commit/45a4d4b314e30702fa1bb3899b99d3b87cde0ecc
https://github.com/msiemens/tinydb
tinydb.middlewares
[ "CachingMiddleware" ]
2
1
ffe6651efe6efb54
msiemens/tinydb@45a4d4b31#CachingMiddleware
python
2026-08-18
goldset/0.1
1
Suor/funcy
LabeledContextDecorator
Fix wrong label/stack setting when reentering print_(errors|durations)
function
docstring
A context manager which also works as decorator, passing call signature as its label.
class LabeledContextDecorator(object): """ A context manager which also works as decorator, passing call signature as its label. """ def __init__(self, print_func, label=None): self.print_func = print_func self.label = label def __call__(self, func): @wraps(func) def...
class LabeledContextDecorator(object): """ A context manager which also works as decorator, passing call signature as its label. """ def __init__(self, print_func, label=None): self.print_func = print_func self.label = label def __call__(self, func): @wraps(func) def...
tests/test_debug.py
[ "tests/test_debug.py::test_print_errors" ]
2015-01-29
2015-01-29
BSD-3-Clause
LICENSE
e5e15486f7551b8e263f1834bd65225c65fff387
6b057c4771435e444ea9b78ee3c83e3cbb0df8e8
https://github.com/Suor/funcy/commit/e5e15486f7551b8e263f1834bd65225c65fff387
https://github.com/Suor/funcy
funcy.debug
[ "LabeledContextDecorator" ]
6
1
9002531e833ab6ea
Suor/funcy@e5e15486f#LabeledContextDecorator
python
2026-08-18
goldset/0.1
1
jdongian/python-jamo
j2h
Fixed bug where j2h wasn't the same as jamo_to_hangul.
function
docstring
Arguments may be integers corresponding to the U+11xx codepoints, the actual U+11xx jamo characters, or HCJ. Outputs a one-character Hangul string. This function is defined solely for naming conisistency with jamo_to_hangul.
def j2h(lead, vowel, tail=0): """Arguments may be integers corresponding to the U+11xx codepoints, the actual U+11xx jamo characters, or HCJ. Outputs a one-character Hangul string. This function is defined solely for naming conisistency with jamo_to_hangul. """ return jamo_to_hangul(lead,...
def j2h(lead, vowel, tail=0): """Arguments may be integers corresponding to the U+11xx codepoints, the actual U+11xx jamo characters, or HCJ. Outputs a one-character Hangul string. This function is defined solely for naming conisistency with jamo_to_hangul. """ return jamo_to_hangul(lead,...
tests/test_jamo.py
[ "tests/test_jamo.py::TestJamo::test_j2h" ]
2015-01-11
2015-01-11
Apache-2.0
LICENSE
3632c4b85020996f53db6ad1936c1100b667bd45
bd3aede20f643e952934d927f99964c43e30f0a2
https://github.com/jdongian/python-jamo/commit/3632c4b85020996f53db6ad1936c1100b667bd45
https://github.com/jdongian/python-jamo
jamo.jamo
[ "j2h" ]
2
1
1f57ba770cff07db
jdongian/python-jamo@3632c4b85#j2h
python
2026-08-18
goldset/0.1
1
hjson/hjson-py
scankey
fix quoteless key check & error msg
function
docstring
Scan the string s for a JSON/Hjson key. see scanstring
def scankey(s, end, encoding=None, strict=True): """Scan the string s for a JSON/Hjson key. see scanstring""" ch, end = getNext(s, end) if ch == '"': return scanstring(s, end + 1, encoding, strict) begin = end while 1: ch = s[end:end + 1] if ch == ':': return ...
def scankey(s, end, encoding=None, strict=True): """Scan the string s for a JSON/Hjson key. see scanstring""" ch, end = getNext(s, end) if ch == '"': return scanstring(s, end + 1, encoding, strict) begin = end while 1: ch = s[end:end + 1] if ch == ':': if begi...
hjson/tests/test_fail.py
[ "hjson/tests/test_fail.py::TestFail::test_truncated_input" ]
2015-01-10
2015-01-09
MIT
LICENSE.txt
c5f4848f107ee00ed34ab355dc174581deca13e0
a366d23f9a8be41173b397e65e3613843bcc3f5f
https://github.com/hjson/hjson-py/commit/c5f4848f107ee00ed34ab355dc174581deca13e0
https://github.com/hjson/hjson-py
hjson.decoder
[ "scankey" ]
4
1
b5273e428a723d3a
hjson/hjson-py@c5f4848f1#scankey
python
2026-08-18
goldset/0.1
1
pypa/distlib
Closes #58: Fixed incorrect handling of get_project() return value when locating non-existent distributions.
file
commit
Closes #58: Fixed incorrect handling of get_project() return value when locating non-existent distributions.
# -*- coding: utf-8 -*- # # Copyright (C) 2012-2014 Vinay Sajip. # Licensed to the Python Software Foundation under a contributor agreement. # See LICENSE.txt and CONTRIBUTORS.txt. # import gzip from io import BytesIO import json import logging import os import posixpath import re try: import threading except Impo...
# -*- coding: utf-8 -*- # # Copyright (C) 2012-2014 Vinay Sajip. # Licensed to the Python Software Foundation under a contributor agreement. # See LICENSE.txt and CONTRIBUTORS.txt. # import gzip from io import BytesIO import json import logging import os import posixpath import re try: import threading except Impo...
tests/test_locators.py
[ "tests/test_locators.py::LocatorTestCase::test_nonexistent" ]
2014-12-21
2014-12-17
PSF-2.0
LICENSE.txt
211e81bc1e3013ad34a36eabed34031851449286
75d9d11c291fa5137c0e997637e328afa26ee968
https://github.com/pypa/distlib/commit/211e81bc1e3013ad34a36eabed34031851449286
https://github.com/pypa/distlib
distlib.locators
[ "DistPathLocator", "Locator" ]
7
1
c4ede6c94a9330d3
pypa/distlib@211e81bc1#distlib/locators.py
python
2026-08-18
goldset/0.1
1
python-zk/kazoo
normpath
Creating a sequential znode under / fails (issue #261)
function
docstring
Normalize path, eliminating double slashes, etc.
def normpath(path, trailing=False): """Normalize path, eliminating double slashes, etc.""" comps = path.split('/') new_comps = [] for comp in comps: if comp == '': continue if comp in ('.', '..'): raise ValueError('relative paths not allowed') new_comps.ap...
def normpath(path, trailing=False): """Normalize path, eliminating double slashes, etc.""" comps = path.split('/') new_comps = [] for comp in comps: if comp == '': continue if comp in ('.', '..'): raise ValueError('relative paths not allowed') new_comps.ap...
kazoo/tests/test_paths.py
[ "kazoo/tests/test_paths.py::NormPathTestCase::test_normpath_trailing" ]
2014-12-18
2014-12-16
Apache-2.0
LICENSE
2e9d33cb538847fe8227acedd0a5a012d66886bf
0e7c13ed61c75c630553495820bb8a8e21f8c6dd
https://github.com/python-zk/kazoo/commit/2e9d33cb538847fe8227acedd0a5a012d66886bf
https://github.com/python-zk/kazoo
kazoo.protocol.paths
[ "normpath" ]
2
1
e6281113206ea3a5
python-zk/kazoo@2e9d33cb5#normpath
python
2026-08-18
goldset/0.1
1
mewwts/addict
Dict
Should fix issue #28 with the constructor not working well
function
docstring
Dict is a subclass of dict, which allows you to get AND SET(!!) items in the dict using the attribute syntax! When you previously had to write: my_dict = {'a': {'b': {'c': [1, 2, 3]}}} you can now do the same simply by: my_Dict = Dict() my_Dict.a.b.c = [1, 2, 3] Or for instance, if you'd like to add some additiona...
class Dict(dict): """ Dict is a subclass of dict, which allows you to get AND SET(!!) items in the dict using the attribute syntax! When you previously had to write: my_dict = {'a': {'b': {'c': [1, 2, 3]}}} you can now do the same simply by: my_Dict = Dict() my_Dict.a.b.c = [1, 2, 3]...
class Dict(dict): """ Dict is a subclass of dict, which allows you to get AND SET(!!) items in the dict using the attribute syntax! When you previously had to write: my_dict = {'a': {'b': {'c': [1, 2, 3]}}} you can now do the same simply by: my_Dict = Dict() my_Dict.a.b.c = [1, 2, 3]...
test_addict.py
[ "test_addict.py::Tests::test_init_raises" ]
2014-12-14
2014-12-14
MIT
LICENSE
bc5a78e620ca59274ea3def7f60222dac8da994a
1ae29918391857bac904361ad6cf7b9a9c568632
https://github.com/mewwts/addict/commit/bc5a78e620ca59274ea3def7f60222dac8da994a
https://github.com/mewwts/addict
addict.addict
[ "Dict" ]
14
1
c6ca7d722d4a1820
mewwts/addict@bc5a78e62#Dict
python
2026-08-18
goldset/0.1
1
tikitu/jsmin
Fix for issue #14: handle ECMAScript/Harmony backticks.
file
commit
Fix for issue #14: handle ECMAScript/Harmony backticks.
# This code is original from jsmin by Douglas Crockford, it was translated to # Python by Baruch Even. It was rewritten by Dave St.Germain for speed. # # The MIT License (MIT) # # Copyright (c) 2013 Dave St.Germain # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and...
# This code is original from jsmin by Douglas Crockford, it was translated to # Python by Baruch Even. It was rewritten by Dave St.Germain for speed. # # The MIT License (MIT) # # Copyright (c) 2013 Dave St.Germain # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and...
jsmin/test.py
[ "jsmin/test.py::JsTests::testBackticks" ]
2014-10-27
2014-06-22
MIT
LICENSE.txt
81babc49e0624529e6fc2a7c9816fbe8fbf18691
11e8c3b5ae376e159436b5c475b2be81dc51a211
https://github.com/tikitu/jsmin/commit/81babc49e0624529e6fc2a7c9816fbe8fbf18691
https://github.com/tikitu/jsmin
jsmin.__init__
[ "JavascriptMinify" ]
9
1
9d404d1b52cc3b78
tikitu/jsmin@81babc49e#jsmin/__init__.py
python
2026-08-18
goldset/0.1
1
bear/parsedatetime
Short week day abbreviation fix
file
commit
Short week day abbreviation fix
# -*- coding: utf-8 -*- """ pdt_locales All of the included locale classes shipped with pdt. """ import datetime try: import PyICU as pyicu except: pyicu = None def lcase(x): return x.lower() class pdtLocale_base(object): """ default values for Locales """ locale_keys = [ 'MonthOffsets'...
# -*- coding: utf-8 -*- """ pdt_locales All of the included locale classes shipped with pdt. """ import datetime try: import PyICU as pyicu except: pyicu = None def lcase(x): return x.lower() class pdtLocale_base(object): """ default values for Locales """ locale_keys = [ 'MonthOffsets'...
parsedatetime/tests/TestSimpleDateTimes.py
[ "parsedatetime/tests/TestSimpleDateTimes.py::test::testDaysOfWeek" ]
2014-10-26
2014-10-22
Apache-2.0
LICENSE.txt
7e19ff2ac04037a5613a2b167e0547c9e371b6f0
f0ea09bfbb136bdb71b95ea44116cfc6ba4693c9
https://github.com/bear/parsedatetime/commit/7e19ff2ac04037a5613a2b167e0547c9e371b6f0
https://github.com/bear/parsedatetime
parsedatetime.pdt_locales
[ "pdtLocale_base" ]
2
1
e30c9ed90f190bd5
bear/parsedatetime@7e19ff2ac#parsedatetime/pdt_locales.py
python
2026-08-18
goldset/0.1
1
tkem/cachetools
cachedmethod
Fix #15: Allow @cachedmethod.cache() to return None
function
docstring
Decorator to wrap a class or instance method with a memoizing callable that saves results in a (possibly shared) cache.
def cachedmethod(cache, typed=False): """Decorator to wrap a class or instance method with a memoizing callable that saves results in a (possibly shared) cache. """ makekey = _makekey_typed if typed else _makekey def decorator(method): def wrapper(self, *args, **kwargs): mappin...
def cachedmethod(cache, typed=False): """Decorator to wrap a class or instance method with a memoizing callable that saves results in a (possibly shared) cache. """ makekey = _makekey_typed if typed else _makekey def decorator(method): def wrapper(self, *args, **kwargs): mappin...
tests/test_cachedmethod.py
[ "tests/test_cachedmethod.py::CachedMethodTest::test_decorator" ]
2014-10-23
2014-10-23
MIT
LICENSE
430e338e3a36b59d7d2a7a771a801530cc2217cb
cb95c354cee3ac998a0ccd0e264a5851d8b1d161
https://github.com/tkem/cachetools/commit/430e338e3a36b59d7d2a7a771a801530cc2217cb
https://github.com/tkem/cachetools
cachetools.decorators
[ "cachedmethod" ]
3
1
e2a3c807695fba4a
tkem/cachetools@430e338e3#cachedmethod
python
2026-08-18
goldset/0.1
1
msiemens/tinydb
Fix _last_id after opening old DB (closes #34)
file
commit
Fix _last_id after opening old DB (closes #34)
""" Contains the :class:`database <tinydb.database.TinyDB>` and :class:`tables <tinydb.database.Table>` implementation. """ from tinydb import JSONStorage from tinydb.utils import LRUCache class Element(dict): """ Represents an element stored in the database. This is a transparent proxy for database elem...
""" Contains the :class:`database <tinydb.database.TinyDB>` and :class:`tables <tinydb.database.Table>` implementation. """ from tinydb import JSONStorage from tinydb.utils import LRUCache class Element(dict): """ Represents an element stored in the database. This is a transparent proxy for database elem...
tests/test_tinydb.py
[ "tests/test_tinydb.py::test_lastid_after_open" ]
2014-10-14
2014-10-13
MIT
LICENSE
1e865a8680c7bd9f2a0d38ab80c840227f62c7f8
1a27bc8985cea953c0a32029cba0b2f5b9dd3b9e
https://github.com/msiemens/tinydb/commit/1e865a8680c7bd9f2a0d38ab80c840227f62c7f8
https://github.com/msiemens/tinydb
tinydb.database
[ "Table" ]
8
1
459885ec5e48f7a8
msiemens/tinydb@1e865a868#tinydb/database.py
python
2026-08-18
goldset/0.1
1
tkem/cachetools
TTLCache
Fix #12: No formatting of KeyError arguments.
function
docstring
Cache implementation with per-item time-to-live (TTL) value. This class associates a time-to-live value with each item. Items that expire because they have exceeded their time-to-live will be removed automatically. If no expired items are there to remove, the least recently used items will be discarded first to make...
class TTLCache(LRUCache): """Cache implementation with per-item time-to-live (TTL) value. This class associates a time-to-live value with each item. Items that expire because they have exceeded their time-to-live will be removed automatically. If no expired items are there to remove, the least re...
class TTLCache(LRUCache): """Cache implementation with per-item time-to-live (TTL) value. This class associates a time-to-live value with each item. Items that expire because they have exceeded their time-to-live will be removed automatically. If no expired items are there to remove, the least re...
tests/test_ttlcache.py
[ "tests/test_ttlcache.py::TTLCacheTest::test_ttl_tuple_key" ]
2014-09-25
2014-09-23
MIT
LICENSE
d5ef9cc6f386e3d4e94590b2651eb77aa1bc7658
ba0f849543155f76caf2107e9a8108e56d0604e1
https://github.com/tkem/cachetools/commit/d5ef9cc6f386e3d4e94590b2651eb77aa1bc7658
https://github.com/tkem/cachetools
cachetools.ttlcache
[ "TTLCache" ]
2
1
3a9eafb468266b30
tkem/cachetools@d5ef9cc6f#TTLCache
python
2026-08-18
goldset/0.1
1
msiemens/tinydb
fix bug where LRU cache is not cleared on delete
file
commit
fix bug where LRU cache is not cleared on delete
""" Contains the :class:`database <tinydb.database.TinyDB>` and :class:`tables <tinydb.database.Table>` implementation. """ import warnings from tinydb import JSONStorage, where class Element(dict): """ Represents an element stored in the database. """ def __init__(self, value=None, eid=None, **kwar...
""" Contains the :class:`database <tinydb.database.TinyDB>` and :class:`tables <tinydb.database.Table>` implementation. """ import warnings from tinydb import JSONStorage, where class Element(dict): """ Represents an element stored in the database. """ def __init__(self, value=None, eid=None, **kwar...
tests/test_tables.py
[ "tests/test_tables.py::test_lru_cache" ]
2014-07-26
2014-07-25
MIT
LICENSE
9c7977b25def0fe973eaa15903bd4a11da10fa64
914a7d0d55edd561f169c85afaf6632fdd779f79
https://github.com/msiemens/tinydb/commit/9c7977b25def0fe973eaa15903bd4a11da10fa64
https://github.com/msiemens/tinydb
tinydb.database
[ "Table" ]
1
1
ce9d9e073cc4f334
msiemens/tinydb@9c7977b25#tinydb/database.py
python
2026-08-18
goldset/0.1
1
CleanCut/green
mergeConfig
Fixed a regression that prevented targets, help, config, store_opt, and parser from making it into the args object returned from mergeConfig()
function
docstring
I take in a namespace created by the ArgumentParser in cmdline.main() and merge in options from configuration files. The config items only replace argument items that are set to default value. Returns: I return a new argparse.Namespace, adding members: shouldExit = default False exitCode = default 0 omi...
def mergeConfig(args, testing=False, coverage_testing=False): # pragma: no cover """ I take in a namespace created by the ArgumentParser in cmdline.main() and merge in options from configuration files. The config items only replace argument items that are set to default value. Returns: I return a ...
def mergeConfig(args, testing=False, coverage_testing=False): # pragma: no cover """ I take in a namespace created by the ArgumentParser in cmdline.main() and merge in options from configuration files. The config items only replace argument items that are set to default value. Returns: I return a ...
green/test/test_config.py
[ "green/test/test_config.py::TestMergeConfig::test_targets" ]
2014-07-25
2014-07-25
MIT
LICENSE
1d800f88cbacc994ad6aa0a92ef47613aabd2bff
365b2327d3325256074f1b581181b92eae578419
https://github.com/CleanCut/green/commit/1d800f88cbacc994ad6aa0a92ef47613aabd2bff
https://github.com/CleanCut/green
green.config
[ "mergeConfig" ]
7
1
6561d4af726d54ad
CleanCut/green@1d800f88c#mergeConfig
python
2026-08-18
goldset/0.1
1
nneonneo/fixedint
Add a test and fix for HexFormattingMixin
file
commit
Add a test and fix for HexFormattingMixin
class HexFormattingMixin(object): def __str__(self): width = (self.width + 3) // 4 if n < 0: return '-0x%0*x' % (width, -n) else: return '0x%0*x' % (width, n)
class HexFormattingMixin(object): def __str__(self): n = int(self) width = (self.width + 3) // 4 if n < 0: return '-0x%0*x' % (width, -n) else: return '0x%0*x' % (width, n)
fixedint/test_fixedint.py
[ "fixedint/test_fixedint.py::ClassTests::test_subclassing" ]
2014-06-21
2014-06-21
PSF-2.0
LICENSE
1ff98169436a1f22553ecdb04f5040bbce933a53
ed30ed17017ca54692780534d0cae53a8b63731c
https://github.com/nneonneo/fixedint/commit/1ff98169436a1f22553ecdb04f5040bbce933a53
https://github.com/nneonneo/fixedint
fixedint.util
[ "HexFormattingMixin" ]
1
1
30ff56000258ec4f
nneonneo/fixedint@1ff981694#fixedint/util.py
python
2026-08-18
goldset/0.1
1
Knio/pynmea2
NMEASentence
fix: get attribute error on none field
function
docstring
Base NMEA Sentence Parses and generates NMEA strings Examples:
class NMEASentence(NMEASentenceBase): ''' Base NMEA Sentence Parses and generates NMEA strings Examples: >>> s = NMEASentence.parse("$GPGGA,184353.07,1929.045,S,02410.506,E,1,04,2.6,100.00,M,-33.9,M,,0000*6D") >>> print(s) ''' sentence_re = re.compile(''' # start of string, o...
class NMEASentence(NMEASentenceBase): ''' Base NMEA Sentence Parses and generates NMEA strings Examples: >>> s = NMEASentence.parse("$GPGGA,184353.07,1929.045,S,02410.506,E,1,04,2.6,100.00,M,-33.9,M,,0000*6D") >>> print(s) ''' sentence_re = re.compile(''' # start of string, o...
test/test_pynmea.py
[ "test/test_pynmea.py::test_none_attribute" ]
2014-06-06
2014-05-30
MIT
LICENSE
67090bbbac6eb9be4039a076878df141fb1a4683
a7fda5fc461fa4e4de48c0fa0da4a567e0a40ae8
https://github.com/Knio/pynmea2/commit/67090bbbac6eb9be4039a076878df141fb1a4683
https://github.com/Knio/pynmea2
pynmea2.nmea
[ "NMEASentence" ]
2
1
cb640320c2e1f0d8
Knio/pynmea2@67090bbba#NMEASentence
python
2026-08-18
goldset/0.1
1
pavlov99/json-rpc
Dispatcher
Fix dispatcher add_method.
function
docstring
Method dispatcher. Dictionary like object which holds map method_name to method.
class Dispatcher(collections.MutableMapping): """ Method dispatcher. Dictionary like object which holds map method_name to method. """ def __init__(self, prototype=None): """ Build method dispatcher. :param prototype: Initial method mapping. :type prototype: None or object o...
class Dispatcher(collections.MutableMapping): """ Method dispatcher. Dictionary like object which holds map method_name to method. """ def __init__(self, prototype=None): """ Build method dispatcher. :param prototype: Initial method mapping. :type prototype: None or object o...
jsonrpc/tests/test_dispatcher.py
[ "jsonrpc/tests/test_dispatcher.py::TestDispatcher::test_add_method_keep_function_definitions" ]
2014-05-14
2014-05-08
MIT
LICENSE.txt
2ee80aca8f373aa0d3b6f482d725f7c18524a29a
35f60596db443d509a7f41e40578899f02050471
https://github.com/pavlov99/json-rpc/commit/2ee80aca8f373aa0d3b6f482d725f7c18524a29a
https://github.com/pavlov99/json-rpc
jsonrpc.dispatcher
[ "Dispatcher" ]
2
1
30ae08f4d9d62c80
pavlov99/json-rpc@2ee80aca8#Dispatcher
python
2026-08-18
goldset/0.1
1
caesar0301/treelib
Fix subtree() cannot cooperate with rsearch()
file
commit
Fix subtree() cannot cooperate with rsearch()
#!/usr/bin/env python # -*- coding: utf-8 -*- """treelib - Simple to use for you. Python 2/3 Tree Implementation """ from __future__ import print_function from __future__ import unicode_literals import json from copy import deepcopy try: from .node import Node except: from node import Node __author__ = 'ch...
#!/usr/bin/env python # -*- coding: utf-8 -*- """treelib - Simple to use for you. Python 2/3 Tree Implementation """ from __future__ import print_function from __future__ import unicode_literals import json from copy import deepcopy try: from .node import Node except: from node import Node __author__ = 'ch...
tests/test_treelib.py
[ "tests/test_treelib.py::TreeCase::test_subtree" ]
2014-05-09
2014-05-04
Apache-2.0
LICENSE
d3985face0c0d977ff0668508b0406e5c5aceb3d
43cd88bd00d56a3ca5382d021aa49e50af9ecf5e
https://github.com/caesar0301/treelib/commit/d3985face0c0d977ff0668508b0406e5c5aceb3d
https://github.com/caesar0301/treelib
treelib.tree
[ "Tree" ]
3
1
00233fe1f3028998
caesar0301/treelib@d3985face#treelib/tree.py
python
2026-08-18
goldset/0.1
1
jd/tenacity
Fix AttributeError when explicitly specifying wait type, and add appropriate regression tests. (fixes #4)
file
commit
Fix AttributeError when explicitly specifying wait type, and add appropriate regression tests. (fixes #4)
## Copyright 2013-2014 Ray Holder ## ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at ## ## http://www.apache.org/licenses/LICENSE-2.0 ## ## Unless required by applicable law or agreed to in ...
## Copyright 2013-2014 Ray Holder ## ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at ## ## http://www.apache.org/licenses/LICENSE-2.0 ## ## Unless required by applicable law or agreed to in ...
test_retrying.py
[ "test_retrying.py::TestWaitConditions::test_legacy_explicit_wait_type" ]
2014-05-05
2014-05-05
Apache-2.0
LICENSE
ff817d98fc98b722befb3bbb1a6a53cc3f207a5d
c86e061eaa65b960ce6c56439a05d9f1c9d55717
https://github.com/jd/tenacity/commit/ff817d98fc98b722befb3bbb1a6a53cc3f207a5d
https://github.com/jd/tenacity
retrying
[ "Retrying" ]
2
1
daa0b6f0a247c7e3
jd/tenacity@ff817d98f#retrying.py
python
2026-08-18
goldset/0.1
1