task_id
large_stringlengths
6
69
source_dataset
large_stringclasses
3 values
source_model
large_stringclasses
4 values
task_prompt
large_stringclasses
61 values
gt_solution
large_stringclasses
61 values
buggy_code
large_stringlengths
1.08k
48.9k
gt_diff
large_stringlengths
146
1.21k
bug_count
int64
1
3
bug_type
large_stringclasses
5 values
bug_subtype
large_stringclasses
30 values
gt_length
float64
35
1.22k
⌀
editable_lines
float64
23
926
⌀
deletable_lines
float64
12
667
⌀
frozen_lines
float64
0
7
⌀
is_buggy
bool
1 class
repo
large_stringclasses
6 values
image_name
large_stringclasses
6 values
target_file
large_stringclasses
32 values
msiemens__tinydb.10644a0e.tinydb__utils_6
swebench
claude-opus-4.7
File: tinydb/utils.py Utility functions.
""" Utility functions. """ from collections import OrderedDict, abc from typing import List, Iterator, TypeVar, Generic, Union, Optional, Type, \ TYPE_CHECKING K = TypeVar('K') V = TypeVar('V') D = TypeVar('D') T = TypeVar('T') __all__ = ('LRUCache', 'freeze', 'with_typehint') def with_typehint(baseclass: Type...
""" Utility functions. """ from collections import OrderedDict, abc from typing import List, Iterator, TypeVar, Generic, Union, Optional, Type, \ TYPE_CHECKING K = TypeVar('K') V = TypeVar('V') D = TypeVar('D') T = TypeVar('T') __all__ = ('LRUCache', 'freeze', 'with_typehint') def with_typehint(baseclass: Type...
{"110": {"type": "Modify", "original": " if self.capacity is not None and self.length >= self.capacity:", "modified": " if self.capacity is not None and self.length > self.capacity:"}, "111": {"type": "Modify", "original": " self.cache.popitem(last=True)", "modified": " ...
2
null
null
159
83
60
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/utils.py
msiemens__tinydb.10644a0e.tinydb__utils_8
swebench
claude-opus-4.7
File: tinydb/utils.py Utility functions.
""" Utility functions. """ from collections import OrderedDict, abc from typing import List, Iterator, TypeVar, Generic, Union, Optional, Type, \ TYPE_CHECKING K = TypeVar('K') V = TypeVar('V') D = TypeVar('D') T = TypeVar('T') __all__ = ('LRUCache', 'freeze', 'with_typehint') def with_typehint(baseclass: Type...
""" Utility functions. """ from collections import OrderedDict, abc from typing import List, Iterator, TypeVar, Generic, Union, Optional, Type, \ TYPE_CHECKING K = TypeVar('K') V = TypeVar('V') D = TypeVar('D') T = TypeVar('T') __all__ = ('LRUCache', 'freeze', 'with_typehint') def with_typehint(baseclass: Type...
{"81": {"type": "Modify", "original": " value = self.cache.get(key)", "modified": " value = self.get(key)"}, "82": {"type": "Modify", "original": " if not value:", "modified": " if value is None:"}, "110": {"type": "Modify", "original": " if self.capacity is not None and self.leng...
2
null
null
159
83
60
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/utils.py
msiemens__tinydb.10644a0e.tinydb__utils_9
swebench
claude-opus-4.7
File: tinydb/utils.py Utility functions.
""" Utility functions. """ from collections import OrderedDict, abc from typing import List, Iterator, TypeVar, Generic, Union, Optional, Type, \ TYPE_CHECKING K = TypeVar('K') V = TypeVar('V') D = TypeVar('D') T = TypeVar('T') __all__ = ('LRUCache', 'freeze', 'with_typehint') def with_typehint(baseclass: Type...
""" Utility functions. """ from collections import OrderedDict, abc from typing import List, Iterator, TypeVar, Generic, Union, Optional, Type, \ TYPE_CHECKING K = TypeVar('K') V = TypeVar('V') D = TypeVar('D') T = TypeVar('T') __all__ = ('LRUCache', 'freeze', 'with_typehint') def with_typehint(baseclass: Type...
{"81": {"type": "Modify", "original": " value = self.cache.get(key)", "modified": " value = self.get(key)"}, "82": {"type": "Modify", "original": " if not value:", "modified": " if value is None:"}, "150": {"type": "Modify", "original": " return FrozenDict((k, v) for k, v in obj.items...
2
null
null
159
83
60
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/utils.py
msiemens__tinydb.10644a0e.tinydb__utils_10
swebench
claude-opus-4.7
File: tinydb/utils.py Utility functions.
""" Utility functions. """ from collections import OrderedDict, abc from typing import List, Iterator, TypeVar, Generic, Union, Optional, Type, \ TYPE_CHECKING K = TypeVar('K') V = TypeVar('V') D = TypeVar('D') T = TypeVar('T') __all__ = ('LRUCache', 'freeze', 'with_typehint') def with_typehint(baseclass: Type...
""" Utility functions. """ from collections import OrderedDict, abc from typing import List, Iterator, TypeVar, Generic, Union, Optional, Type, \ TYPE_CHECKING K = TypeVar('K') V = TypeVar('V') D = TypeVar('D') T = TypeVar('T') __all__ = ('LRUCache', 'freeze', 'with_typehint') def with_typehint(baseclass: Type...
{"110": {"type": "Modify", "original": " if self.capacity is not None and self.length >= self.capacity:", "modified": " if self.capacity is not None and self.length > self.capacity:"}, "111": {"type": "Modify", "original": " self.cache.popitem(last=True)", "modified": " ...
2
null
null
159
83
60
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/utils.py
msiemens__tinydb.10644a0e.tinydb__utils_11
swebench
claude-opus-4.7
File: tinydb/utils.py Utility functions.
""" Utility functions. """ from collections import OrderedDict, abc from typing import List, Iterator, TypeVar, Generic, Union, Optional, Type, \ TYPE_CHECKING K = TypeVar('K') V = TypeVar('V') D = TypeVar('D') T = TypeVar('T') __all__ = ('LRUCache', 'freeze', 'with_typehint') def with_typehint(baseclass: Type...
""" Utility functions. """ from collections import OrderedDict, abc from typing import List, Iterator, TypeVar, Generic, Union, Optional, Type, \ TYPE_CHECKING K = TypeVar('K') V = TypeVar('V') D = TypeVar('D') T = TypeVar('T') __all__ = ('LRUCache', 'freeze', 'with_typehint') def with_typehint(baseclass: Type...
{"81": {"type": "Modify", "original": " value = self.cache.get(key)", "modified": " value = self.get(key)"}, "82": {"type": "Modify", "original": " if not value:", "modified": " if value is None:"}, "153": {"type": "Modify", "original": " return tuple(obj)", "modified": " retur...
2
null
null
159
83
60
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/utils.py
msiemens__tinydb.10644a0e.tinydb__utils_12
swebench
claude-opus-4.7
File: tinydb/utils.py Utility functions.
""" Utility functions. """ from collections import OrderedDict, abc from typing import List, Iterator, TypeVar, Generic, Union, Optional, Type, \ TYPE_CHECKING K = TypeVar('K') V = TypeVar('V') D = TypeVar('D') T = TypeVar('T') __all__ = ('LRUCache', 'freeze', 'with_typehint') def with_typehint(baseclass: Type...
""" Utility functions. """ from collections import OrderedDict, abc from typing import List, Iterator, TypeVar, Generic, Union, Optional, Type, \ TYPE_CHECKING K = TypeVar('K') V = TypeVar('V') D = TypeVar('D') T = TypeVar('T') __all__ = ('LRUCache', 'freeze', 'with_typehint') def with_typehint(baseclass: Type...
{"81": {"type": "Modify", "original": " value = self.cache.get(key)", "modified": " value = self.get(key)"}, "82": {"type": "Modify", "original": " if not value:", "modified": " if value is None:"}, "110": {"type": "Modify", "original": " if self.capacity is not None and self.leng...
3
null
null
159
83
60
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/utils.py
msiemens__tinydb.10644a0e.tinydb__utils_13
swebench
claude-opus-4.7
File: tinydb/utils.py Utility functions.
""" Utility functions. """ from collections import OrderedDict, abc from typing import List, Iterator, TypeVar, Generic, Union, Optional, Type, \ TYPE_CHECKING K = TypeVar('K') V = TypeVar('V') D = TypeVar('D') T = TypeVar('T') __all__ = ('LRUCache', 'freeze', 'with_typehint') def with_typehint(baseclass: Type...
""" Utility functions. """ from collections import OrderedDict, abc from typing import List, Iterator, TypeVar, Generic, Union, Optional, Type, \ TYPE_CHECKING K = TypeVar('K') V = TypeVar('V') D = TypeVar('D') T = TypeVar('T') __all__ = ('LRUCache', 'freeze', 'with_typehint') def with_typehint(baseclass: Type...
{"81": {"type": "Modify", "original": " value = self.cache.get(key)", "modified": " value = self.get(key)"}, "82": {"type": "Modify", "original": " if not value:", "modified": " if value is None:"}, "110": {"type": "Modify", "original": " if self.capacity is not None and self.leng...
3
null
null
159
83
60
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/utils.py
msiemens__tinydb.10644a0e.tinydb__utils_14
swebench
claude-opus-4.7
File: tinydb/utils.py Utility functions.
""" Utility functions. """ from collections import OrderedDict, abc from typing import List, Iterator, TypeVar, Generic, Union, Optional, Type, \ TYPE_CHECKING K = TypeVar('K') V = TypeVar('V') D = TypeVar('D') T = TypeVar('T') __all__ = ('LRUCache', 'freeze', 'with_typehint') def with_typehint(baseclass: Type...
""" Utility functions. """ from collections import OrderedDict, abc from typing import List, Iterator, TypeVar, Generic, Union, Optional, Type, \ TYPE_CHECKING K = TypeVar('K') V = TypeVar('V') D = TypeVar('D') T = TypeVar('T') __all__ = ('LRUCache', 'freeze', 'with_typehint') def with_typehint(baseclass: Type...
{"81": {"type": "Modify", "original": " value = self.cache.get(key)", "modified": " value = self.get(key)"}, "82": {"type": "Modify", "original": " if not value:", "modified": " if value is None:"}, "110": {"type": "Modify", "original": " if self.capacity is not None and self.leng...
3
null
null
159
83
60
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/utils.py
msiemens__tinydb.10644a0e.tinydb__queries_1
swebench
claude-opus-4.7
File: tinydb/queries.py Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\w+$ ) Queries are executed by using the ``__call__``: >>> ...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
{"252": {"type": "Modify", "original": " lambda value: value == freeze(rhs),", "modified": " lambda value: value == rhs,"}, "253": {"type": "Modify", "original": " ('==', self._path, rhs)", "modified": " ('==', self._path, freeze(rhs))"}}
1
Assignment
Others
520
327
219
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/queries.py
msiemens__tinydb.10644a0e.tinydb__queries_3
swebench
claude-opus-4.7
File: tinydb/queries.py Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\w+$ ) Queries are executed by using the ``__call__``: >>> ...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
{"477": {"type": "Modify", "original": " if key in value and value[key] == document[key]:", "modified": " if key not in value or value[key] != document[key]:"}, "478": {"type": "Modify", "original": " return True", "modified": " return False"}}
1
Build/Package/Merge
Others
520
327
219
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/queries.py
msiemens__tinydb.10644a0e.tinydb__queries_5
swebench
claude-opus-4.7
File: tinydb/queries.py Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\w+$ ) Queries are executed by using the ``__call__``: >>> ...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
{"109": {"type": "Modify", "original": " if self.is_cacheable() or other.is_cacheable():", "modified": " if self.is_cacheable() and other.is_cacheable():"}, "110": {"type": "Modify", "original": " hashval = ('and', (self._hash, other._hash))", "modified": " hashval = ('and', frozense...
1
Build/Package/Merge
Invalid API call
520
327
219
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/queries.py
msiemens__tinydb.10644a0e.tinydb__queries_7
swebench
claude-opus-4.7
File: tinydb/queries.py Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\w+$ ) Queries are executed by using the ``__call__``: >>> ...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
{"317": {"type": "Modify", "original": " lambda value: value <= rhs,", "modified": " lambda value: value >= rhs,"}, "318": {"type": "Modify", "original": " ('<=', self._path, rhs)", "modified": " ('>=', self._path, rhs)"}}
1
Build/Package/Merge
Others (copy-paste / merge error — __ge__ body accidentally uses __le__'s operator and hashval)
520
327
219
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/queries.py
msiemens__tinydb.10644a0e.tinydb__queries_8
swebench
claude-opus-4.7
File: tinydb/queries.py Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\w+$ ) Queries are executed by using the ``__call__``: >>> ...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
{"278": {"type": "Modify", "original": " lambda value: value <= rhs,", "modified": " lambda value: value < rhs,"}, "279": {"type": "Modify", "original": " ('<=', self._path, rhs)", "modified": " ('<', self._path, rhs)"}}
1
Algorithm
Function Argument Misunderstanding
520
327
219
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/queries.py
msiemens__tinydb.10644a0e.tinydb__queries_9
swebench
claude-opus-4.7
File: tinydb/queries.py Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\w+$ ) Queries are executed by using the ``__call__``: >>> ...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
{"252": {"type": "Modify", "original": " lambda value: value == freeze(rhs),", "modified": " lambda value: value == rhs,"}, "253": {"type": "Modify", "original": " ('==', self._path, rhs)", "modified": " ('==', self._path, freeze(rhs))"}, "317": {"type": "Modify", "original":...
2
null
null
520
327
219
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/queries.py
msiemens__tinydb.10644a0e.tinydb__queries_13
swebench
claude-opus-4.7
File: tinydb/queries.py Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\w+$ ) Queries are executed by using the ``__call__``: >>> ...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
{"316": {"type": "Modify", "original": " return QueryInstance(", "modified": " return self._generate_test("}, "317": {"type": "Modify", "original": " lambda value: value > rhs,", "modified": " lambda value: value >= rhs,"}, "477": {"type": "Modify", "original": " if ke...
2
null
null
520
327
219
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/queries.py
msiemens__tinydb.10644a0e.tinydb__queries_14
swebench
claude-opus-4.7
File: tinydb/queries.py Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\w+$ ) Queries are executed by using the ``__call__``: >>> ...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
{"317": {"type": "Modify", "original": " lambda value: value <= rhs,", "modified": " lambda value: value >= rhs,"}, "318": {"type": "Modify", "original": " ('<=', self._path, rhs)", "modified": " ('>=', self._path, rhs)"}, "477": {"type": "Modify", "original": " ...
2
null
null
520
327
219
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/queries.py
msiemens__tinydb.10644a0e.tinydb__queries_15
swebench
claude-opus-4.7
File: tinydb/queries.py Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\w+$ ) Queries are executed by using the ``__call__``: >>> ...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
{"228": {"type": "Modify", "original": " if not isinstance(part, str):", "modified": " if isinstance(part, str):"}, "229": {"type": "Modify", "original": " value = part(value)", "modified": " value = value[part]"}, "317": {"type": "Modi...
2
null
null
520
327
219
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/queries.py
msiemens__tinydb.10644a0e.tinydb__queries_16
swebench
claude-opus-4.7
File: tinydb/queries.py Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\w+$ ) Queries are executed by using the ``__call__``: >>> ...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
{"278": {"type": "Modify", "original": " lambda value: value <= rhs,", "modified": " lambda value: value < rhs,"}, "279": {"type": "Modify", "original": " ('<=', self._path, rhs)", "modified": " ('<', self._path, rhs)"}, "477": {"type": "Modify", "original": " ...
2
null
null
520
327
219
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/queries.py
msiemens__tinydb.10644a0e.tinydb__queries_18
swebench
claude-opus-4.7
File: tinydb/queries.py Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\w+$ ) Queries are executed by using the ``__call__``: >>> ...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
{"109": {"type": "Modify", "original": " if self.is_cacheable() or other.is_cacheable():", "modified": " if self.is_cacheable() and other.is_cacheable():"}, "110": {"type": "Modify", "original": " hashval = ('and', (self._hash, other._hash))", "modified": " hashval = ('and', frozense...
3
null
null
520
327
219
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/queries.py
msiemens__tinydb.10644a0e.tinydb__queries_20
swebench
claude-opus-4.7
File: tinydb/queries.py Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\w+$ ) Queries are executed by using the ``__call__``: >>> ...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
{"112": {"type": "Modify", "original": " hashval = ('or', frozenset([self._hash, other._hash]))", "modified": " hashval = None"}, "113": {"type": "Modify", "original": " return QueryInstance(lambda value: self(value) or other(value), hashval)", "modified": " return QueryInstance(lamb...
3
null
null
520
327
219
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/queries.py
msiemens__tinydb.10644a0e.tinydb__queries_23
swebench
claude-opus-4.7
File: tinydb/queries.py Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\w+$ ) Queries are executed by using the ``__call__``: >>> ...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
{"228": {"type": "Modify", "original": " if not isinstance(part, str):", "modified": " if isinstance(part, str):"}, "229": {"type": "Modify", "original": " value = part(value)", "modified": " value = value[part]"}, "252": {"type": "Modi...
3
null
null
520
327
219
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/queries.py
msiemens__tinydb.10644a0e.tinydb__queries_24
swebench
claude-opus-4.7
File: tinydb/queries.py Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\w+$ ) Queries are executed by using the ``__call__``: >>> ...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
{"112": {"type": "Modify", "original": " hashval = ('or', frozenset([self._hash, other._hash]))", "modified": " hashval = None"}, "113": {"type": "Modify", "original": " return QueryInstance(lambda value: self(value) or other(value), hashval)", "modified": " return QueryInstance(lamb...
3
null
null
520
327
219
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/queries.py
msiemens__tinydb.10644a0e.tinydb__queries_25
swebench
claude-opus-4.7
File: tinydb/queries.py Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\w+$ ) Queries are executed by using the ``__call__``: >>> ...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
""" Contains the querying interface. Starting with :class:`~tinydb.queries.Query` you can construct complex queries: >>> ((where('f1') == 5) & (where('f2') != 2)) | where('s').matches(r'^\\w+$') (('f1' == 5) and ('f2' != 2)) or ('s' ~= ^\\w+$ ) Queries are executed by using the ``__call__``: >>> q = where('val') ==...
{"112": {"type": "Modify", "original": " hashval = ('or', frozenset([self._hash, other._hash]))", "modified": " hashval = None"}, "113": {"type": "Modify", "original": " return QueryInstance(lambda value: self(value) or other(value), hashval)", "modified": " return QueryInstance(lamb...
3
null
null
520
327
219
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/queries.py
msiemens__tinydb.10644a0e.tinydb__middlewares_4
swebench
claude-opus-4.7
File: tinydb/middlewares.py Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations.
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
{"93": {"type": "Modify", "original": " self.cache = {'_default': {}}", "modified": " self.cache = None"}, "94": {"type": "Modify", "original": " self._cache_modified_count = 1", "modified": " self._cache_modified_count = 0"}}
1
Build/Package/Merge
Others
127
76
57
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/middlewares.py
msiemens__tinydb.10644a0e.tinydb__middlewares_5
swebench
claude-opus-4.7
File: tinydb/middlewares.py Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations.
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
{"117": {"type": "Modify", "original": " if self._cache_modified_count >= self.WRITE_CACHE_SIZE:", "modified": " if self._cache_modified_count > 0:"}, "118": {"type": "Modify", "original": " self.cache = self.storage.read()", "modified": " # Force-flush the cache by writing the data ...
1
Algorithm
Other Logical Errors
127
76
57
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/middlewares.py
msiemens__tinydb.10644a0e.tinydb__middlewares_3
swebench
claude-opus-4.7
File: tinydb/middlewares.py Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations.
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
{"110": {"type": "Modify", "original": " if self._cache_modified_count > self.WRITE_CACHE_SIZE:", "modified": " if self._cache_modified_count >= self.WRITE_CACHE_SIZE:"}, "111": {"type": "Modify", "original": " self._cache_modified_count = 0", "modified": " self.flush()"}}
1
Timing/Serialization
Others
127
76
57
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/middlewares.py
msiemens__tinydb.10644a0e.tinydb__middlewares_7
swebench
claude-opus-4.7
File: tinydb/middlewares.py Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations.
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
{"126": {"type": "Modify", "original": " self.storage.sync()", "modified": " # Let the storage clean up too"}, "127": {"type": "Modify", "original": " self.storage.shutdown()", "modified": " self.storage.close()"}}
1
Build/Package/Merge
Invalid API call
127
76
57
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/middlewares.py
msiemens__tinydb.10644a0e.tinydb__middlewares_8
swebench
claude-opus-4.7
File: tinydb/middlewares.py Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations.
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
{"119": {"type": "Modify", "original": " data = self.storage.read()", "modified": " self.storage.write(self.cache)"}, "120": {"type": "Modify", "original": " self.storage.write(data)", "modified": " self._cache_modified_count = 0"}}
1
Algorithm
Other Logical Errors
127
76
57
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/middlewares.py
msiemens__tinydb.10644a0e.tinydb__middlewares_6
swebench
claude-opus-4.7
File: tinydb/middlewares.py Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations.
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
{"117": {"type": "Modify", "original": " if self._cache_modified_count >= self.WRITE_CACHE_SIZE:", "modified": " if self._cache_modified_count > 0:"}, "120": {"type": "Modify", "original": " self.cache = None", "modified": " self._cache_modified_count = 0"}}
2
null
null
127
76
57
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/middlewares.py
msiemens__tinydb.10644a0e.tinydb__middlewares_10
swebench
claude-opus-4.7
File: tinydb/middlewares.py Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations.
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
{"119": {"type": "Modify", "original": " data = self.storage.read()", "modified": " self.storage.write(self.cache)"}, "120": {"type": "Modify", "original": " self.storage.write(data)", "modified": " self._cache_modified_count = 0"}, "126": {"type": "Modify", "original": " ...
2
null
null
127
76
57
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/middlewares.py
msiemens__tinydb.10644a0e.tinydb__middlewares_11
swebench
claude-opus-4.7
File: tinydb/middlewares.py Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations.
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
{"110": {"type": "Modify", "original": " if self._cache_modified_count > self.WRITE_CACHE_SIZE:", "modified": " if self._cache_modified_count >= self.WRITE_CACHE_SIZE:"}, "111": {"type": "Modify", "original": " self._cache_modified_count = 0", "modified": " self.flush()"}, "117": {"t...
2
null
null
127
76
57
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/middlewares.py
msiemens__tinydb.10644a0e.tinydb__middlewares_12
swebench
claude-opus-4.7
File: tinydb/middlewares.py Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations.
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
{"93": {"type": "Modify", "original": " self.cache = {'_default': {}}", "modified": " self.cache = None"}, "94": {"type": "Modify", "original": " self._cache_modified_count = 1", "modified": " self._cache_modified_count = 0"}, "110": {"type": "Modify", "original": " if self._cache_mod...
2
null
null
127
76
57
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/middlewares.py
msiemens__tinydb.10644a0e.tinydb__middlewares_14
swebench
claude-opus-4.7
File: tinydb/middlewares.py Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations.
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
{"93": {"type": "Modify", "original": " self.cache = {'_default': {}}", "modified": " self.cache = None"}, "94": {"type": "Modify", "original": " self._cache_modified_count = 1", "modified": " self._cache_modified_count = 0"}, "97": {"type": "Modify", "original": " if self.cache is no...
2
null
null
127
76
57
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/middlewares.py
msiemens__tinydb.10644a0e.tinydb__middlewares_15
swebench
claude-opus-4.7
File: tinydb/middlewares.py Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations.
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
{"93": {"type": "Modify", "original": " self.cache = {'_default': {}}", "modified": " self.cache = None"}, "94": {"type": "Modify", "original": " self._cache_modified_count = 1", "modified": " self._cache_modified_count = 0"}, "110": {"type": "Modify", "original": " if self._cache_mod...
3
null
null
127
76
57
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/middlewares.py
msiemens__tinydb.10644a0e.tinydb__middlewares_16
swebench
claude-opus-4.7
File: tinydb/middlewares.py Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations.
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
{"93": {"type": "Modify", "original": " self.cache = {'_default': {}}", "modified": " self.cache = None"}, "94": {"type": "Modify", "original": " self._cache_modified_count = 1", "modified": " self._cache_modified_count = 0"}, "110": {"type": "Modify", "original": " if self._cache_mod...
3
null
null
127
76
57
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/middlewares.py
msiemens__tinydb.10644a0e.tinydb__middlewares_21
swebench
claude-opus-4.7
File: tinydb/middlewares.py Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations.
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
{"93": {"type": "Modify", "original": " self.cache = {'_default': {}}", "modified": " self.cache = None"}, "94": {"type": "Modify", "original": " self._cache_modified_count = 1", "modified": " self._cache_modified_count = 0"}, "110": {"type": "Modify", "original": " if self._cache_mod...
3
null
null
127
76
57
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/middlewares.py
msiemens__tinydb.10644a0e.tinydb__middlewares_22
swebench
claude-opus-4.7
File: tinydb/middlewares.py Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations.
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
{"97": {"type": "Modify", "original": " if self.cache is not None:", "modified": " if self.cache is None:"}, "98": {"type": "Modify", "original": " self.storage.write(self.cache)", "modified": " # Empty cache: read from the storage"}, "110": {"type": "Modify", "original": " if...
3
null
null
127
76
57
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/middlewares.py
msiemens__tinydb.10644a0e.tinydb__middlewares_23
swebench
claude-opus-4.7
File: tinydb/middlewares.py Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations.
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
""" Contains the :class:`base class <tinydb.middlewares.Middleware>` for middlewares and implementations. """ from typing import Optional from tinydb import Storage class Middleware: """ The base class for all Middlewares. Middlewares hook into the read/write process of TinyDB allowing you to extend...
{"97": {"type": "Modify", "original": " if self.cache is not None:", "modified": " if self.cache is None:"}, "98": {"type": "Modify", "original": " self.storage.write(self.cache)", "modified": " # Empty cache: read from the storage"}, "119": {"type": "Modify", "original": " ...
3
null
null
127
76
57
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/middlewares.py
msiemens__tinydb.10644a0e.tinydb__database_1
swebench
claude-opus-4.7
File: tinydb/database.py This module contains the main component of TinyDB: the database.
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
{"154": {"type": "Modify", "original": " tables = set(self.storage.read())", "modified": " # To get a set of table names, we thus construct a set of this main"}, "155": {"type": "Modify", "original": " return tables - {self.default_table_name}", "modified": " # dict which returns a set of th...
1
Algorithm
Other Logical Errors
274
152
111
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/database.py
msiemens__tinydb.10644a0e.tinydb__database_2
swebench
claude-opus-4.7
File: tinydb/database.py This module contains the main component of TinyDB: the database.
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
{"127": {"type": "Modify", "original": " if name not in self._tables:", "modified": " if name in self._tables:"}, "128": {"type": "Modify", "original": " return self.table_class(self.storage, name, **kwargs)", "modified": " return self._tables[name]"}}
1
Timing/Serialization
Shared Resource Caching Failure
274
152
111
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/database.py
msiemens__tinydb.10644a0e.tinydb__database_3
swebench
claude-opus-4.7
File: tinydb/database.py This module contains the main component of TinyDB: the database.
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
{"185": {"type": "Modify", "original": " if name not in self._tables:", "modified": " if name in self._tables:"}, "186": {"type": "Modify", "original": " return", "modified": " del self._tables[name]"}}
1
Checking
Membership Logic Flaws
274
152
111
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/database.py
msiemens__tinydb.10644a0e.tinydb__database_5
swebench
claude-opus-4.7
File: tinydb/database.py This module contains the main component of TinyDB: the database.
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
{"195": {"type": "Modify", "original": " if name in data:", "modified": " if name not in data:"}, "196": {"type": "Modify", "original": " del data[name]", "modified": " return"}}
1
Timing/Serialization
Others
274
152
111
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/database.py
msiemens__tinydb.10644a0e.tinydb__database_6
swebench
claude-opus-4.7
File: tinydb/database.py This module contains the main component of TinyDB: the database.
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
{"127": {"type": "Modify", "original": " if name not in self._tables:", "modified": " if name in self._tables:"}, "128": {"type": "Modify", "original": " self._tables[name] = self.table_class(self.storage, name, **kwargs)", "modified": " return self._tables[name]"}}
1
Algorithm
Other Logical Errors
274
152
111
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/database.py
msiemens__tinydb.10644a0e.tinydb__database_7
swebench
claude-opus-4.7
File: tinydb/database.py This module contains the main component of TinyDB: the database.
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
{"154": {"type": "Modify", "original": " tables = set(self.storage.read())", "modified": " # To get a set of table names, we thus construct a set of this main"}, "155": {"type": "Modify", "original": " return tables - {self.default_table_name}", "modified": " # dict which returns a set of th...
2
null
null
274
152
111
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/database.py
msiemens__tinydb.10644a0e.tinydb__database_8
swebench
claude-opus-4.7
File: tinydb/database.py This module contains the main component of TinyDB: the database.
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
{"127": {"type": "Modify", "original": " if name not in self._tables:", "modified": " if name in self._tables:"}, "128": {"type": "Modify", "original": " self._tables[name] = self.table_class(self.storage, name, **kwargs)", "modified": " return self._tables[name]"}, "195": {"type": "...
2
null
null
274
152
111
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/database.py
msiemens__tinydb.10644a0e.tinydb__database_10
swebench
claude-opus-4.7
File: tinydb/database.py This module contains the main component of TinyDB: the database.
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
{"106": {"type": "Modify", "original": " for table in self._tables.values()]),", "modified": " for table in self.tables()]),"}, "107": {"type": "Modify", "original": " ][:1]", "modified": " ]"}, "185": {"type": "Modify", "original": " if name not in self._tables:", "...
2
null
null
274
152
111
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/database.py
msiemens__tinydb.10644a0e.tinydb__database_12
swebench
claude-opus-4.7
File: tinydb/database.py This module contains the main component of TinyDB: the database.
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
{"127": {"type": "Modify", "original": " if name not in self._tables:", "modified": " if name in self._tables:"}, "128": {"type": "Modify", "original": " return self.table_class(self.storage, name, **kwargs)", "modified": " return self._tables[name]"}, "154": {"type": "Modify", "orig...
2
null
null
274
152
111
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/database.py
msiemens__tinydb.10644a0e.tinydb__database_13
swebench
claude-opus-4.7
File: tinydb/database.py This module contains the main component of TinyDB: the database.
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
{"185": {"type": "Modify", "original": " if name not in self._tables:", "modified": " if name in self._tables:"}, "186": {"type": "Modify", "original": " return", "modified": " del self._tables[name]"}, "195": {"type": "Modify", "original": " if name in data:", "modified": " ...
2
null
null
274
152
111
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/database.py
msiemens__tinydb.10644a0e.tinydb__database_14
swebench
claude-opus-4.7
File: tinydb/database.py This module contains the main component of TinyDB: the database.
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
{"154": {"type": "Modify", "original": " tables = set(self.storage.read())", "modified": " # To get a set of table names, we thus construct a set of this main"}, "155": {"type": "Modify", "original": " return tables - {self.default_table_name}", "modified": " # dict which returns a set of th...
3
null
null
274
152
111
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/database.py
msiemens__tinydb.10644a0e.tinydb__database_16
swebench
claude-opus-4.7
File: tinydb/database.py This module contains the main component of TinyDB: the database.
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
{"106": {"type": "Modify", "original": " for table in self._tables.values()]),", "modified": " for table in self.tables()]),"}, "107": {"type": "Modify", "original": " ][:1]", "modified": " ]"}, "154": {"type": "Modify", "original": " tables = set(self.storage.read()...
3
null
null
274
152
111
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/database.py
msiemens__tinydb.10644a0e.tinydb__database_17
swebench
claude-opus-4.7
File: tinydb/database.py This module contains the main component of TinyDB: the database.
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
{"106": {"type": "Modify", "original": " for table in self._tables.values()]),", "modified": " for table in self.tables()]),"}, "107": {"type": "Modify", "original": " ][:1]", "modified": " ]"}, "127": {"type": "Modify", "original": " if name not in self._tables:", "...
3
null
null
274
152
111
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/database.py
msiemens__tinydb.10644a0e.tinydb__database_18
swebench
claude-opus-4.7
File: tinydb/database.py This module contains the main component of TinyDB: the database.
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
{"106": {"type": "Modify", "original": " for table in self._tables.values()]),", "modified": " for table in self.tables()]),"}, "107": {"type": "Modify", "original": " ][:1]", "modified": " ]"}, "185": {"type": "Modify", "original": " if name not in self._tables:", "...
3
null
null
274
152
111
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/database.py
msiemens__tinydb.10644a0e.tinydb__database_21
swebench
claude-opus-4.7
File: tinydb/database.py This module contains the main component of TinyDB: the database.
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
""" This module contains the main component of TinyDB: the database. """ from typing import Dict, Iterator, Set, Type from . import JSONStorage from .storages import Storage from .table import Table, Document from .utils import with_typehint # The table's base class. This is used to add type hinting from the Table # ...
{"106": {"type": "Modify", "original": " for table in self._tables.values()]),", "modified": " for table in self.tables()]),"}, "107": {"type": "Modify", "original": " ][:1]", "modified": " ]"}, "127": {"type": "Modify", "original": " if name not in self._tables:", "...
3
null
null
274
152
111
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/database.py
msiemens__tinydb.10644a0e.tinydb__table_3
swebench
claude-opus-4.7
File: tinydb/table.py This module implements tables, the central place for accessing and manipulating data in TinyDB.
""" This module implements tables, the central place for accessing and manipulating data in TinyDB. """ from typing import ( Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Union, cast, Tuple ) from .queries import QueryLike from .storages import Storage from .util...
""" This module implements tables, the central place for accessing and manipulating data in TinyDB. """ from typing import ( Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Union, cast, Tuple ) from .queries import QueryLike from .storages import Storage from .util...
{"496": {"type": "Modify", "original": " for cond, fields in updates:", "modified": " for fields, cond in updates:"}, "497": {"type": "Modify", "original": " _cond = cast(QueryLike, fields)", "modified": " _cond = cast(QueryLike, cond)"}}
1
Algorithm
Other Logical Errors
773
521
341
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/table.py
msiemens__tinydb.10644a0e.tinydb__table_4
swebench
claude-opus-4.7
File: tinydb/table.py This module implements tables, the central place for accessing and manipulating data in TinyDB.
""" This module implements tables, the central place for accessing and manipulating data in TinyDB. """ from typing import ( Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Union, cast, Tuple ) from .queries import QueryLike from .storages import Storage from .util...
""" This module implements tables, the central place for accessing and manipulating data in TinyDB. """ from typing import ( Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Union, cast, Tuple ) from .queries import QueryLike from .storages import Storage from .util...
{"210": {"type": "Add", "original": "", "modified": " table[doc_id] = dict(document)"}, "210 ": {"type": "Add", "original": "", "modified": " continue"}}
1
Timing/Serialization
Others
773
521
341
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/table.py
msiemens__tinydb.10644a0e.tinydb__table_1
swebench
claude-opus-4.7
File: tinydb/table.py This module implements tables, the central place for accessing and manipulating data in TinyDB.
""" This module implements tables, the central place for accessing and manipulating data in TinyDB. """ from typing import ( Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Union, cast, Tuple ) from .queries import QueryLike from .storages import Storage from .util...
""" This module implements tables, the central place for accessing and manipulating data in TinyDB. """ from typing import ( Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Union, cast, Tuple ) from .queries import QueryLike from .storages import Storage from .util...
{"475": {"type": "Modify", "original": " if not callable(fields):", "modified": " if callable(fields):"}, "478": {"type": "Modify", "original": " table[doc_id].update(fields)", "modified": " fields(table[doc_id])"}}
2
null
null
773
521
341
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/table.py
msiemens__tinydb.10644a0e.tinydb__table_2
swebench
claude-opus-4.7
File: tinydb/table.py This module implements tables, the central place for accessing and manipulating data in TinyDB.
""" This module implements tables, the central place for accessing and manipulating data in TinyDB. """ from typing import ( Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Union, cast, Tuple ) from .queries import QueryLike from .storages import Storage from .util...
""" This module implements tables, the central place for accessing and manipulating data in TinyDB. """ from typing import ( Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Union, cast, Tuple ) from .queries import QueryLike from .storages import Storage from .util...
{"529": {"type": "Modify", "original": " doc_ids: Optional[List[int]] = None", "modified": " doc_ids: Optional[List[int]] = [document.doc_id]"}, "531": {"type": "Modify", "original": " doc_ids = [document.doc_id]", "modified": " doc_ids = None"}}
2
null
null
773
521
341
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/table.py
msiemens__tinydb.10644a0e.tinydb__table_5
swebench
claude-opus-4.7
File: tinydb/table.py This module implements tables, the central place for accessing and manipulating data in TinyDB.
""" This module implements tables, the central place for accessing and manipulating data in TinyDB. """ from typing import ( Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Union, cast, Tuple ) from .queries import QueryLike from .storages import Storage from .util...
""" This module implements tables, the central place for accessing and manipulating data in TinyDB. """ from typing import ( Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Union, cast, Tuple ) from .queries import QueryLike from .storages import Storage from .util...
{"210": {"type": "Add", "original": "", "modified": " table[doc_id] = dict(document)"}, "210 ": {"type": "Add", "original": "", "modified": " continue"}, "333": {"type": "Modify", "original": " for doc, doc_id_ in self._read_table().items():", "modified": " fo...
2
null
null
773
521
341
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/table.py
msiemens__tinydb.10644a0e.tinydb__table_6
swebench
claude-opus-4.7
File: tinydb/table.py This module implements tables, the central place for accessing and manipulating data in TinyDB.
""" This module implements tables, the central place for accessing and manipulating data in TinyDB. """ from typing import ( Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Union, cast, Tuple ) from .queries import QueryLike from .storages import Storage from .util...
""" This module implements tables, the central place for accessing and manipulating data in TinyDB. """ from typing import ( Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Union, cast, Tuple ) from .queries import QueryLike from .storages import Storage from .util...
{"210": {"type": "Add", "original": "", "modified": " table[doc_id] = dict(document)"}, "210 ": {"type": "Add", "original": "", "modified": " continue"}, "494": {"type": "Modify", "original": " for cond, fields in updates:", "modified": " for fields, c...
2
null
null
773
521
341
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/table.py
msiemens__tinydb.10644a0e.tinydb__table_7
swebench
claude-opus-4.7
File: tinydb/table.py This module implements tables, the central place for accessing and manipulating data in TinyDB.
""" This module implements tables, the central place for accessing and manipulating data in TinyDB. """ from typing import ( Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Union, cast, Tuple ) from .queries import QueryLike from .storages import Storage from .util...
""" This module implements tables, the central place for accessing and manipulating data in TinyDB. """ from typing import ( Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Union, cast, Tuple ) from .queries import QueryLike from .storages import Storage from .util...
{"335": {"type": "Modify", "original": " for doc, doc_id_ in self._read_table().items():", "modified": " for doc_id_, doc in self._read_table().items():"}, "336": {"type": "Modify", "original": " if cond(doc_id_):", "modified": " if cond(doc):"}, "496": {"type": "Modi...
2
null
null
773
521
341
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/table.py
msiemens__tinydb.10644a0e.tinydb__table_8
swebench
claude-opus-4.7
File: tinydb/table.py This module implements tables, the central place for accessing and manipulating data in TinyDB.
""" This module implements tables, the central place for accessing and manipulating data in TinyDB. """ from typing import ( Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Union, cast, Tuple ) from .queries import QueryLike from .storages import Storage from .util...
""" This module implements tables, the central place for accessing and manipulating data in TinyDB. """ from typing import ( Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Union, cast, Tuple ) from .queries import QueryLike from .storages import Storage from .util...
{"210": {"type": "Add", "original": "", "modified": " table[doc_id] = dict(document)"}, "210 ": {"type": "Add", "original": "", "modified": " continue"}, "333": {"type": "Modify", "original": " for doc, doc_id_ in self._read_table().items():", "modified": " fo...
3
null
null
773
521
341
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/table.py
msiemens__tinydb.10644a0e.tinydb__storages_3
swebench
claude-opus-4.7
File: tinydb/storages.py Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations.
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
{"112": {"type": "Modify", "original": " if all([character in self._mode for character in ('+', 'w', 'a')]): # any of the writing modes", "modified": " if any([character in self._mode for character in ('+', 'w', 'a')]): # any of the writing modes"}, "113": {"type": "Modify", "original": " tou...
1
Algorithm
Function Algorithm Misunderstanding
177
105
80
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/storages.py
msiemens__tinydb.10644a0e.tinydb__storages_1
swebench
claude-opus-4.7
File: tinydb/storages.py Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations.
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
{"104": {"type": "Modify", "original": " if access_mode in ('r', 'rb', 'r+', 'rb+'):", "modified": " if access_mode not in ('r', 'rb', 'r+', 'rb+'):"}, "105": {"type": "Modify", "original": " raise ValueError(", "modified": " warnings.warn("}}
1
Checking
Membership Logic Flaws
177
105
80
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/storages.py
msiemens__tinydb.10644a0e.tinydb__storages_2
swebench
claude-opus-4.7
File: tinydb/storages.py Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations.
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
{"112": {"type": "Modify", "original": " if any([character in self._mode for character in ('w', 'a')]): # any of the writing modes", "modified": " if any([character in self._mode for character in ('+', 'w', 'a')]): # any of the writing modes"}, "113": {"type": "Modify", "original": " open(pat...
1
Algorithm
Function Algorithm Misunderstanding
177
105
80
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/storages.py
msiemens__tinydb.10644a0e.tinydb__storages_5
swebench
claude-opus-4.7
File: tinydb/storages.py Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations.
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
{"23": {"type": "Modify", "original": " if not create_dirs:", "modified": " if create_dirs:"}, "24": {"type": "Modify", "original": " base_dir = os.path.basename(path)", "modified": " base_dir = os.path.dirname(path)"}}
1
Algorithm
Function Algorithm Misunderstanding
177
105
80
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/storages.py
msiemens__tinydb.10644a0e.tinydb__storages_6
swebench
claude-opus-4.7
File: tinydb/storages.py Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations.
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
{"101": {"type": "Modify", "original": " self._mode = kwargs", "modified": " self._mode = access_mode"}, "102": {"type": "Modify", "original": " self.kwargs = access_mode", "modified": " self.kwargs = kwargs"}}
1
Algorithm
Other Logical Errors
177
105
80
0
true
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/storages.py
msiemens__tinydb.10644a0e.tinydb__storages_7
swebench
claude-opus-4.7
File: tinydb/storages.py Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations.
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
{"23": {"type": "Modify", "original": " if not create_dirs:", "modified": " if create_dirs:"}, "24": {"type": "Modify", "original": " base_dir = os.path.basename(path)", "modified": " base_dir = os.path.dirname(path)"}, "124": {"type": "Add", "original": "", "modified": " self._handle.seek(0,...
2
null
null
177
105
80
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/storages.py
msiemens__tinydb.10644a0e.tinydb__storages_8
swebench
claude-opus-4.7
File: tinydb/storages.py Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations.
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
{"104": {"type": "Modify", "original": " if access_mode in ('r', 'rb', 'r+', 'rb+'):", "modified": " if access_mode not in ('r', 'rb', 'r+', 'rb+'):"}, "105": {"type": "Modify", "original": " raise ValueError(", "modified": " warnings.warn("}, "124": {"type": "Add", "original": "", "...
2
null
null
177
105
80
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/storages.py
msiemens__tinydb.10644a0e.tinydb__storages_10
swebench
claude-opus-4.7
File: tinydb/storages.py Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations.
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
{"23": {"type": "Modify", "original": " if not create_dirs:", "modified": " if create_dirs:"}, "24": {"type": "Modify", "original": " base_dir = os.path.basename(path)", "modified": " base_dir = os.path.dirname(path)"}, "104": {"type": "Modify", "original": " if access_mode in ('r', 'rb', 'r+...
2
null
null
177
105
80
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/storages.py
msiemens__tinydb.10644a0e.tinydb__storages_11
swebench
claude-opus-4.7
File: tinydb/storages.py Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations.
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
{"101": {"type": "Modify", "original": " self._mode = kwargs", "modified": " self._mode = access_mode"}, "102": {"type": "Modify", "original": " self.kwargs = access_mode", "modified": " self.kwargs = kwargs"}, "112": {"type": "Modify", "original": " if all([character in self._mode fo...
2
null
null
177
105
80
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/storages.py
msiemens__tinydb.10644a0e.tinydb__storages_12
swebench
claude-opus-4.7
File: tinydb/storages.py Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations.
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
{"23": {"type": "Modify", "original": " if not create_dirs:", "modified": " if create_dirs:"}, "24": {"type": "Modify", "original": " base_dir = os.path.basename(path)", "modified": " base_dir = os.path.dirname(path)"}, "101": {"type": "Modify", "original": " self._mode = kwargs", "modified":...
2
null
null
177
105
80
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/storages.py
msiemens__tinydb.10644a0e.tinydb__storages_14
swebench
claude-opus-4.7
File: tinydb/storages.py Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations.
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
{"101": {"type": "Modify", "original": " self._mode = kwargs", "modified": " self._mode = access_mode"}, "102": {"type": "Modify", "original": " self.kwargs = access_mode", "modified": " self.kwargs = kwargs"}, "112": {"type": "Modify", "original": " if any([character in self._mode fo...
3
null
null
177
105
80
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/storages.py
msiemens__tinydb.10644a0e.tinydb__storages_15
swebench
claude-opus-4.7
File: tinydb/storages.py Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations.
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
{"23": {"type": "Modify", "original": " if not create_dirs:", "modified": " if create_dirs:"}, "24": {"type": "Modify", "original": " base_dir = os.path.basename(path)", "modified": " base_dir = os.path.dirname(path)"}, "112": {"type": "Modify", "original": " if any([character in self._mode f...
3
null
null
177
105
80
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/storages.py
msiemens__tinydb.10644a0e.tinydb__storages_16
swebench
claude-opus-4.7
File: tinydb/storages.py Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations.
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
{"23": {"type": "Modify", "original": " if not create_dirs:", "modified": " if create_dirs:"}, "24": {"type": "Modify", "original": " base_dir = os.path.basename(path)", "modified": " base_dir = os.path.dirname(path)"}, "104": {"type": "Modify", "original": " if access_mode in ('r', 'rb', 'r+...
3
null
null
177
105
80
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/storages.py
msiemens__tinydb.10644a0e.tinydb__storages_17
swebench
claude-opus-4.7
File: tinydb/storages.py Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations.
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
{"23": {"type": "Modify", "original": " if not create_dirs:", "modified": " if create_dirs:"}, "24": {"type": "Modify", "original": " base_dir = os.path.basename(path)", "modified": " base_dir = os.path.dirname(path)"}, "104": {"type": "Modify", "original": " if access_mode in ('r', 'rb', 'r+...
3
null
null
177
105
80
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/storages.py
msiemens__tinydb.10644a0e.tinydb__storages_19
swebench
claude-opus-4.7
File: tinydb/storages.py Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations.
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
{"104": {"type": "Modify", "original": " if access_mode in ('r', 'rb', 'r+', 'rb+'):", "modified": " if access_mode not in ('r', 'rb', 'r+', 'rb+'):"}, "105": {"type": "Modify", "original": " raise ValueError(", "modified": " warnings.warn("}, "112": {"type": "Modify", "original": " ...
3
null
null
177
105
80
0
null
msiemens__tinydb.10644a0e
swebench/swesmith.x86_64.msiemens_1776_tinydb.10644a0e
tinydb/storages.py
pallets__click.fde47b4b.src__click__shell_completion_0
swebench
claude-opus-4.7
Fix bugs in src/click/shell_completion.py
from __future__ import annotations import collections.abc as cabc import os import re import typing as t from gettext import gettext as _ from .core import Argument from .core import Command from .core import Context from .core import Group from .core import Option from .core import Parameter from .core import Parame...
from __future__ import annotations import collections.abc as cabc import os import re import typing as t from gettext import gettext as _ from .core import Argument from .core import Command from .core import Context from .core import Group from .core import Option from .core import Parameter from .core import Parame...
{"225": {"type": "Modify", "original": " self.cli = ctx_args", "modified": " self.cli = cli"}, "226": {"type": "Modify", "original": " self.ctx_args = cli", "modified": " self.ctx_args = ctx_args"}}
1
Checking
Others
637
423
299
0
true
pallets__click.fde47b4b
swebench/swesmith.x86_64.pallets_1776_click.fde47b4b
src/click/shell_completion.py
pallets__click.fde47b4b.src__click__formatting_3
swebench
claude-opus-4.7
Fix bugs in src/click/formatting.py
from __future__ import annotations import collections.abc as cabc from contextlib import contextmanager from gettext import gettext as _ from ._compat import term_len from .parser import _split_opt # Can force a width. This is used by the test system FORCED_WIDTH: int | None = None def measure_table(rows: cabc.It...
from __future__ import annotations import collections.abc as cabc from contextlib import contextmanager from gettext import gettext as _ from ._compat import term_len from .parser import _split_opt # Can force a width. This is used by the test system FORCED_WIDTH: int | None = None def measure_table(rows: cabc.It...
{"168": {"type": "Modify", "original": " initial_indent=indent,", "modified": " initial_indent=usage_prefix,"}, "169": {"type": "Modify", "original": " subsequent_indent=usage_prefix,", "modified": " subsequent_indent=indent,"}}
1
Timing/Serialization
Others
301
212
148
0
true
pallets__click.fde47b4b
swebench/swesmith.x86_64.pallets_1776_click.fde47b4b
src/click/formatting.py
pallets__click.fde47b4b.src__click__types_2
swebench
claude-opus-4.7
Fix bugs in src/click/types.py
from __future__ import annotations import collections.abc as cabc import os import stat import sys import typing as t from datetime import datetime from gettext import gettext as _ from gettext import ngettext from ._compat import _get_argv_encoding from ._compat import open_stream from .exceptions import BadParamete...
from __future__ import annotations import collections.abc as cabc import os import stat import sys import typing as t from datetime import datetime from gettext import gettext as _ from gettext import ngettext from ._compat import _get_argv_encoding from ._compat import open_stream from .exceptions import BadParamete...
{"450": {"type": "Modify", "original": " self.min_open = max_open", "modified": " self.min_open = min_open"}, "451": {"type": "Modify", "original": " self.max_open = min_open", "modified": " self.max_open = max_open"}}
1
Checking
Others
1,109
709
467
0
true
pallets__click.fde47b4b
swebench/swesmith.x86_64.pallets_1776_click.fde47b4b
src/click/types.py
pallets__click.fde47b4b.src__click___compat_1
swebench
claude-opus-4.7
Fix bugs in src/click/_compat.py
from __future__ import annotations import codecs import collections.abc as cabc import io import os import re import sys import typing as t from types import TracebackType from weakref import WeakKeyDictionary CYGWIN = sys.platform.startswith("cygwin") WIN = sys.platform.startswith("win") auto_wrap_for_ansi: t.Callab...
from __future__ import annotations import codecs import collections.abc as cabc import io import os import re import sys import typing as t from types import TracebackType from weakref import WeakKeyDictionary CYGWIN = sys.platform.startswith("cygwin") WIN = sys.platform.startswith("win") auto_wrap_for_ansi: t.Callab...
{"277": {"type": "Add", "original": "", "modified": " encoding,"}, "278": {"type": "Delete", "original": " encoding,", "modified": ""}}
1
Algorithm
Function Argument Misunderstanding
622
383
219
0
true
pallets__click.fde47b4b
swebench/swesmith.x86_64.pallets_1776_click.fde47b4b
src/click/_compat.py
pallets__click.fde47b4b.src__click__testing_2
swebench
claude-opus-4.7
Fix bugs in src/click/testing.py
from __future__ import annotations import collections.abc as cabc import contextlib import io import os import shlex import shutil import sys import tempfile import typing as t from types import TracebackType from . import _compat from . import formatting from . import termui from . import utils from ._compat import ...
from __future__ import annotations import collections.abc as cabc import contextlib import io import os import shlex import shutil import sys import tempfile import typing as t from types import TracebackType from . import _compat from . import formatting from . import termui from . import utils from ._compat import ...
{"506": {"type": "Modify", "original": " stdout_bytes=stderr,", "modified": " stdout_bytes=stdout,"}, "507": {"type": "Modify", "original": " stderr_bytes=stdout,", "modified": " stderr_bytes=stderr,"}}
1
Checking
Variable Shadowing / Swapped Assignments
544
346
266
0
true
pallets__click.fde47b4b
swebench/swesmith.x86_64.pallets_1776_click.fde47b4b
src/click/testing.py
scrapy__scrapy.35212ec5.scrapy__crawler_0
swebench
claude-opus-4.7
Fix bugs in scrapy/crawler.py
from __future__ import annotations import contextlib import logging import pprint import signal from typing import TYPE_CHECKING, Any, TypeVar, cast from twisted.internet.defer import ( Deferred, DeferredList, inlineCallbacks, maybeDeferred, ) from zope.interface.verify import verifyClass from scrapy...
from __future__ import annotations import contextlib import logging import pprint import signal from typing import TYPE_CHECKING, Any, TypeVar, cast from twisted.internet.defer import ( Deferred, DeferredList, inlineCallbacks, maybeDeferred, ) from zope.interface.verify import verifyClass from scrapy...
{"429": {"type": "Add", "original": "", "modified": " configure_logging(self.settings, install_root_handler)"}, "430": {"type": "Modify", "original": " configure_logging(self.settings, install_root_handler)", "modified": " self._initialized_reactor: bool = False"}, "431": {"type": "Delete", "origin...
1
Algorithm
Other Logical Errors
512
309
234
0
true
scrapy__scrapy.35212ec5
swebench/swesmith.x86_64.scrapy_1776_scrapy.35212ec5
scrapy/crawler.py
scrapy__scrapy.35212ec5.scrapy__exporters_0
swebench
claude-opus-4.7
File: scrapy/exporters.py Item Exporters are used to export/serialize items into different formats.
""" Item Exporters are used to export/serialize items into different formats. """ from __future__ import annotations import csv import marshal import pickle import pprint from collections.abc import Callable, Iterable, Mapping from io import BytesIO, TextIOWrapper from typing import TYPE_CHECKING, Any from xml.sax.sa...
""" Item Exporters are used to export/serialize items into different formats. """ from __future__ import annotations import csv import marshal import pickle import pprint from collections.abc import Callable, Iterable, Mapping from io import BytesIO, TextIOWrapper from typing import TYPE_CHECKING, Any from xml.sax.sa...
{"232": {"type": "Modify", "original": " if self.encoding:", "modified": " if not self.encoding:"}, "234": {"type": "Modify", "original": " self.include_headers_line = not include_headers_line", "modified": " self.include_headers_line = include_headers_line"}}
2
null
null
373
227
136
0
null
scrapy__scrapy.35212ec5
swebench/swesmith.x86_64.scrapy_1776_scrapy.35212ec5
scrapy/exporters.py
scrapy__scrapy.35212ec5.scrapy__exporters_1
swebench
claude-opus-4.7
File: scrapy/exporters.py Item Exporters are used to export/serialize items into different formats.
""" Item Exporters are used to export/serialize items into different formats. """ from __future__ import annotations import csv import marshal import pickle import pprint from collections.abc import Callable, Iterable, Mapping from io import BytesIO, TextIOWrapper from typing import TYPE_CHECKING, Any from xml.sax.sa...
""" Item Exporters are used to export/serialize items into different formats. """ from __future__ import annotations import csv import marshal import pickle import pprint from collections.abc import Callable, Iterable, Mapping from io import BytesIO, TextIOWrapper from typing import TYPE_CHECKING, Any from xml.sax.sa...
{"360": {"type": "Modify", "original": " return dict(self._serialize_value(value))", "modified": " return dict(self._serialize_item(value))"}, "362": {"type": "Modify", "original": " return [self._serialize_item(v) for v in value]", "modified": " return [self._serialize_value...
2
null
null
373
227
136
0
null
scrapy__scrapy.35212ec5
swebench/swesmith.x86_64.scrapy_1776_scrapy.35212ec5
scrapy/exporters.py