instance_id stringlengths 12 57 | base_commit stringlengths 40 40 | created_at stringdate 2015-01-06 14:05:07 2025-04-29 17:56:51 | environment_setup_commit stringlengths 40 40 | hints_text stringlengths 0 158k | patch stringlengths 261 20.8k | problem_statement stringlengths 11 52.5k | repo stringlengths 7 53 | test_patch stringlengths 280 206k | meta dict | version stringclasses 463
values | install_config dict | requirements stringlengths 93 34k ⌀ | environment stringlengths 772 20k ⌀ | FAIL_TO_PASS listlengths 1 856 | FAIL_TO_FAIL listlengths 0 536 | PASS_TO_PASS listlengths 0 7.87k | PASS_TO_FAIL listlengths 0 92 | license_name stringclasses 35
values | __index_level_0__ int64 11 21.4k | num_tokens_patch int64 103 4.99k | before_filepaths listlengths 0 14 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
jpadilla__pyjwt-71 | 0afba10cf16834e154a59280de089c30de3d9a61 | 2015-01-06 14:05:07 | 2d0e8272dbd1372289bff1b8e8eba446bed4befa | jpadilla: @mark-adams ready to move this forward. One thing I'd like to do before merging this in would be to write some comment blocks for the algorithms. | diff --git a/jwt/__init__.py b/jwt/__init__.py
index 3a70913..b9a9986 100644
--- a/jwt/__init__.py
+++ b/jwt/__init__.py
@@ -5,16 +5,15 @@ Minimum implementation based on this spec:
http://self-issued.info/docs/draft-jones-json-web-token-01.html
"""
-import base64
import binascii
-import hashlib
-import hmac
-from... | Move algorithm-specific logic to be class-based to allow for better extensibility
In #42, we discussed changing to more of a registry model for registration of algorithms. This issue is suggesting that we move to that sort of a model. | jpadilla/pyjwt | diff --git a/tests/test_jwt.py b/tests/test_jwt.py
index a57ab31..bd9ca06 100644
--- a/tests/test_jwt.py
+++ b/tests/test_jwt.py
@@ -45,6 +45,10 @@ class TestJWT(unittest.TestCase):
self.payload = {'iss': 'jeff', 'exp': utc_timestamp() + 15,
'claim': 'insanity'}
+ def test_registe... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_added_files",
"has_many_modified_files",
"has_many_hunks",
"has_pytest_match_arg"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score":... | 0.4 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"cryptography",
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header... | cffi==1.17.1
cryptography==44.0.2
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
packaging @ file:///croot/packaging_1734472117206/work
pluggy @ file:///croot/pluggy_1733169602837/work
pycparser==2.22
-e git+https://github.com/jpa... | name: pyjwt
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- exceptiongroup=1.2.0=py39h06a4308_0
- iniconfig=1.1.1=pyhd3eb1b0_0
- ld_im... | [
"tests/test_jwt.py::TestJWT::test_register_algorithm_rejects_non_algorithm_obj"
] | [
"tests/test_jwt.py::TestJWT::test_decodes_valid_es384_jwt",
"tests/test_jwt.py::TestJWT::test_decodes_valid_rs384_jwt",
"tests/test_jwt.py::TestJWT::test_ecdsa_related_algorithms",
"tests/test_jwt.py::TestJWT::test_encode_decode_with_ecdsa_sha256",
"tests/test_jwt.py::TestJWT::test_encode_decode_with_ecdsa_... | [
"tests/test_jwt.py::TestJWT::test_allow_skip_verification",
"tests/test_jwt.py::TestJWT::test_bad_secret",
"tests/test_jwt.py::TestJWT::test_bytes_secret",
"tests/test_jwt.py::TestJWT::test_check_audience",
"tests/test_jwt.py::TestJWT::test_check_audience_in_array",
"tests/test_jwt.py::TestJWT::test_check... | [] | MIT License | 11 | 4,219 | [
"jwt/__init__.py",
"setup.py"
] |
msiemens__tinydb-46 | 65c302427777434c3c01bf36eb83ab86e6323a5e | 2015-01-07 00:39:47 | 65c302427777434c3c01bf36eb83ab86e6323a5e | diff --git a/tinydb/database.py b/tinydb/database.py
index 31a7483..cdaad19 100644
--- a/tinydb/database.py
+++ b/tinydb/database.py
@@ -199,7 +199,7 @@ class Table(object):
old_ids = self._read().keys()
if old_ids:
- self._last_id = max(int(i, 10) for i in old_ids)
+ self._las... | Can not handle data by integer eid
The id of the element will change to a unicode string after JSON serialization/deserialization. This causes no way to get the element by integer eid.
```python
Python 2.7.6 (default, Sep 9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "he... | msiemens/tinydb | diff --git a/tests/test_tinydb.py b/tests/test_tinydb.py
index 6f4e435..35b6fc1 100644
--- a/tests/test_tinydb.py
+++ b/tests/test_tinydb.py
@@ -337,3 +337,34 @@ def test_unicode_json(tmpdir):
assert _db.contains(where('value') == unic_str1)
assert _db.contains(where('value') == byte_str2)
as... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 0
},
"num_modified_files": 1
} | 2.2 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.4",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --col... | attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
pack... | name: tinydb
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- attrs=21.4.0=pyhd3eb1b0_0
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- importlib-... | [
"tests/test_tinydb.py::test_eids_json"
] | [] | [
"tests/test_tinydb.py::test_purge[db0]",
"tests/test_tinydb.py::test_purge[db1]",
"tests/test_tinydb.py::test_all[db0]",
"tests/test_tinydb.py::test_all[db1]",
"tests/test_tinydb.py::test_insert[db0]",
"tests/test_tinydb.py::test_insert[db1]",
"tests/test_tinydb.py::test_insert_ids[db0]",
"tests/test_... | [] | MIT License | 12 | 250 | [
"tinydb/database.py"
] | |
pozytywnie__webapp-health-monitor-12 | 64bb87f0c5c8ec9863b7daf1fdd3f7ff6532738f | 2015-01-12 12:24:43 | 64bb87f0c5c8ec9863b7daf1fdd3f7ff6532738f | diff --git a/webapp_health_monitor/verificators/base.py b/webapp_health_monitor/verificators/base.py
index 0f4b6af..668536a 100644
--- a/webapp_health_monitor/verificators/base.py
+++ b/webapp_health_monitor/verificators/base.py
@@ -4,8 +4,8 @@ from webapp_health_monitor import errors
class Verificator(object):
v... | Use standard python logging method
Simplify logging by using only build-in logging. Remove forwarding of custom logger class. | pozytywnie/webapp-health-monitor | diff --git a/tests/test_verificators.py b/tests/test_verificators.py
index 84190b2..69c0a96 100644
--- a/tests/test_verificators.py
+++ b/tests/test_verificators.py
@@ -14,55 +14,39 @@ from webapp_health_monitor.verificators.system import (
class RangeVerificatorTest(TestCase):
def test_lack_of_value_extractor_... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_pytest_match_arg"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 2
},
"num_modified_files": 1
} | unknown | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",... | certifi==2025.1.31
charset-normalizer==3.4.1
coverage==7.8.0
coveralls==4.0.1
docopt==0.6.2
exceptiongroup==1.2.2
idna==3.10
iniconfig==2.1.0
mock==1.0.1
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
pytest-cov==6.0.0
requests==2.32.3
tomli==2.2.1
urllib3==2.3.0
-e git+https://github.com/pozytywnie/webapp-health-monitor.... | name: webapp-health-monitor
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
... | [
"tests/test_verificators.py::RangeVerificatorTest::test_bad_bounds_raises_bad_configuration",
"tests/test_verificators.py::RangeVerificatorTest::test_get_value",
"tests/test_verificators.py::RangeVerificatorTest::test_lack_of_bounds_raises_bad_configuration",
"tests/test_verificators.py::RangeVerificatorTest:... | [] | [] | [] | MIT License | 20 | 220 | [
"webapp_health_monitor/verificators/base.py"
] | |
ipython__ipython-7469 | 296f56bf70643d1d19ae0c1ab2a9d86b326d5559 | 2015-01-15 00:40:54 | 148242288b1aeecf899f0d1fb086d13f37024c53 | diff --git a/IPython/utils/io.py b/IPython/utils/io.py
index df1e39e60..3d236eb4d 100644
--- a/IPython/utils/io.py
+++ b/IPython/utils/io.py
@@ -267,17 +267,18 @@ def atomic_writing(path, text=True, encoding='utf-8', **kwargs):
path = os.path.join(os.path.dirname(path), os.readlink(path))
dirname, basen... | atomic write umask
Reported on gitter.im/ipython/ipython by @bigzachattack
Sadly no one was on the chat at that time, too busy with a big bearded men
dressed in red trying to smuggle things in our houses through the cheminee.
```
I noticed today working in master, that any new notebook I create or copy has p... | ipython/ipython | diff --git a/IPython/utils/tests/test_io.py b/IPython/utils/tests/test_io.py
index 023c9641b..aa00a882b 100644
--- a/IPython/utils/tests/test_io.py
+++ b/IPython/utils/tests/test_io.py
@@ -1,16 +1,9 @@
# encoding: utf-8
"""Tests for io.py"""
-#------------------------------------------------------------------------... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 2
},
"num_modified_files": 1
} | 2.3 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[all]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"mock",
"sphinx",
"pandoc",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
... | alabaster==0.7.13
attrs @ file:///croot/attrs_1668696182826/work
Babel==2.14.0
certifi @ file:///croot/certifi_1671487769961/work/certifi
charset-normalizer==3.4.1
docutils==0.19
flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core
idna==3.10
imagesize==1.4.1
importlib-metadata @ file:/... | name: ipython
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- attrs=22.1.0=py37h06a4308_0
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2022.12.7=py37h06a4308_0
- flit-co... | [
"IPython/utils/tests/test_io.py::test_atomic_writing_umask"
] | [] | [
"IPython/utils/tests/test_io.py::test_tee_simple",
"IPython/utils/tests/test_io.py::TeeTestCase::test",
"IPython/utils/tests/test_io.py::test_io_init",
"IPython/utils/tests/test_io.py::test_capture_output",
"IPython/utils/tests/test_io.py::test_UnicodeStdStream",
"IPython/utils/tests/test_io.py::test_Unic... | [] | BSD 3-Clause "New" or "Revised" License | 22 | 348 | [
"IPython/utils/io.py"
] | |
martinblech__xmltodict-81 | a3a95592b875cc3d2472a431a197c9c1a5d8a788 | 2015-01-18 14:47:10 | b80fc18b7dbf278bf460f514fb4ead693c60d6f7 | diff --git a/xmltodict.py b/xmltodict.py
index 4fdbb16..b0ba601 100755
--- a/xmltodict.py
+++ b/xmltodict.py
@@ -318,7 +318,8 @@ def unparse(input_dict, output=None, encoding='utf-8', full_document=True,
can be customized with the `newl` and `indent` parameters.
"""
- ((key, value),) = input_dict.items()... | Parameter to Disable Multiple Root Check
I'm trying to convert a dict to an xml snippet, but this xml snippet is just supposed to be part of a later full document, so it may or may not have one root element. Unfortunately a ValueError is thrown if there is more than one possible root element - it would be great if ther... | martinblech/xmltodict | diff --git a/tests/test_dicttoxml.py b/tests/test_dicttoxml.py
index e449316..4b1d4b8 100644
--- a/tests/test_dicttoxml.py
+++ b/tests/test_dicttoxml.py
@@ -49,10 +49,21 @@ class DictToXMLTestCase(unittest.TestCase):
self.assertEqual(obj, parse(unparse(obj)))
self.assertEqual(unparse(obj), unparse(par... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_pytest_match_arg"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 2
},
"num_modified_files": 1
} | 0.9 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"nose",
"coverage",
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --n... | coverage==7.8.0
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
nose==1.3.7
packaging @ file:///croot/packaging_1734472117206/work
pluggy @ file:///croot/pluggy_1733169602837/work
pytest @ file:///croot/pytest_1738938843180/work
to... | name: xmltodict
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- exceptiongroup=1.2.0=py39h06a4308_0
- iniconfig=1.1.1=pyhd3eb1b0_0
- l... | [
"tests/test_dicttoxml.py::DictToXMLTestCase::test_multiple_roots_nofulldoc",
"tests/test_dicttoxml.py::DictToXMLTestCase::test_no_root_nofulldoc"
] | [] | [
"tests/test_dicttoxml.py::DictToXMLTestCase::test_attr_order_roundtrip",
"tests/test_dicttoxml.py::DictToXMLTestCase::test_attrib",
"tests/test_dicttoxml.py::DictToXMLTestCase::test_attrib_and_cdata",
"tests/test_dicttoxml.py::DictToXMLTestCase::test_cdata",
"tests/test_dicttoxml.py::DictToXMLTestCase::test... | [] | MIT License | 30 | 267 | [
"xmltodict.py"
] | |
jacebrowning__dropthebeat-25 | 3f0891ee65703490136f44851c06b8356992a05c | 2015-01-19 02:00:09 | 3f0891ee65703490136f44851c06b8356992a05c | diff --git a/dtb/gui.py b/dtb/gui.py
index f96defc..7651d52 100755
--- a/dtb/gui.py
+++ b/dtb/gui.py
@@ -193,13 +193,19 @@ class Application(ttk.Frame): # pragma: no cover - manual test, pylint: disable
def do_ignore(self):
"""Ignore selected songs."""
for index in (int(s) for s in self.listbox_... | Strange Behavior when download path does not exist
If my download path does not exist on my machine I end up with a file named whatever is the directory was supposed to be. e.g.
Download path: `~/jkloo/downloads/fake`
The directory `fake` does not exist. The result is a file (`testfile.jpg`) downloads as `fake` i... | jacebrowning/dropthebeat | diff --git a/dtb/test/test_song.py b/dtb/test/test_song.py
index c80778a..250dfa8 100644
--- a/dtb/test/test_song.py
+++ b/dtb/test/test_song.py
@@ -100,10 +100,22 @@ class TestSong(unittest.TestCase): # pylint: disable=R0904
mock_remove.assert_called_once_with(self.broken.path)
@patch('os.remove', Moc... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_media",
"has_many_modified_files",
"has_many_hunks",
"has_pytest_match_arg"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 1
},
"num_modif... | 0.0 | {
"env_vars": null,
"env_yml_path": null,
"install": "python setup.py install",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"nose",
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
"requirements.txt"
],
"te... | DropTheBeat==0.1.dev0
exceptiongroup==1.2.2
iniconfig==2.1.0
nose==1.3.7
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
PyYAML==3.13
tomli==2.2.1
| name: dropthebeat
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-... | [
"dtb/test/test_song.py::TestSong::test_download_error_uncaught"
] | [] | [
"dtb/test/test_song.py::TestSong::test_download_broken",
"dtb/test/test_song.py::TestSong::test_download_error_caught",
"dtb/test/test_song.py::TestSong::test_download_invalid_dest",
"dtb/test/test_song.py::TestSong::test_download_link",
"dtb/test/test_song.py::TestSong::test_download_song",
"dtb/test/tes... | [] | The MIT License (MIT) | 31 | 726 | [
"dtb/gui.py",
"dtb/song.py"
] | |
pre-commit__pre-commit-hooks-39 | 9f107a03276857c668fe3e090752d3d22a4195e5 | 2015-02-27 02:24:38 | f82fb149af2c1b552b50e3e38e38ed3a44d4cda1 | diff --git a/pre_commit_hooks/autopep8_wrapper.py b/pre_commit_hooks/autopep8_wrapper.py
index a79a120..f6f55fb 100644
--- a/pre_commit_hooks/autopep8_wrapper.py
+++ b/pre_commit_hooks/autopep8_wrapper.py
@@ -10,7 +10,7 @@ import autopep8
def main(argv=None):
argv = argv if argv is not None else sys.argv[1:]
- ... | Autopep8 doesn't respect pep8 section in setup.cfg
Since https://github.com/hhatto/autopep8/pull/167 autopep8 has started reading the ```pep8``` section from ```tox.ini``` or ```setup.cfg``` of a project. However, the autopep8 hook ignores this as it calls ```autopep8.parse_args()``` and ```autopep8.fix_code()``` witho... | pre-commit/pre-commit-hooks | diff --git a/tests/autopep8_wrapper_test.py b/tests/autopep8_wrapper_test.py
index f32e8a0..9a395c9 100644
--- a/tests/autopep8_wrapper_test.py
+++ b/tests/autopep8_wrapper_test.py
@@ -2,7 +2,7 @@ from __future__ import absolute_import
from __future__ import unicode_literals
import io
-import os.path
+import os
... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_hyperlinks",
"has_many_modified_files"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 3
},
"num_modified_files": 2
} | 0.4 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"flake8",
"pylint"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"pytho... | astroid==3.3.9
autopep8==2.3.2
dill==0.3.9
exceptiongroup==1.2.2
flake8==7.2.0
iniconfig==2.1.0
isort==6.0.1
mccabe==0.7.0
packaging==24.2
platformdirs==4.3.7
pluggy==1.5.0
plumbum==1.9.0
-e git+https://github.com/pre-commit/pre-commit-hooks.git@9f107a03276857c668fe3e090752d3d22a4195e5#egg=pre_commit_hooks
pycodestyle=... | name: pre-commit-hooks
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- li... | [
"tests/autopep8_wrapper_test.py::test_respects_config_file"
] | [] | [
"tests/autopep8_wrapper_test.py::test_main_failing[print(1"
] | [] | MIT License | 46 | 267 | [
"pre_commit_hooks/autopep8_wrapper.py",
"setup.py"
] | |
tornadoweb__tornado-1373 | cf2a54794ff5067d6d815013d6570ee10f74d5e5 | 2015-03-09 04:21:31 | cf2a54794ff5067d6d815013d6570ee10f74d5e5 | diff --git a/tornado/httpserver.py b/tornado/httpserver.py
index 226f966a..13a6e92f 100644
--- a/tornado/httpserver.py
+++ b/tornado/httpserver.py
@@ -37,11 +37,9 @@ from tornado import httputil
from tornado import iostream
from tornado import netutil
from tornado.tcpserver import TCPServer
-from tornado.util import... | redirect requests starting with '//' to '/' leading to wrong place
Tornado uses `urljoin` to join `self.request.uri` and the destination but when `self.request.uri` starts with '//' it generates locations still start with '//' because this behaviour of `urljoin`:
```
>>> from urllib.parse import urljoin ... | tornadoweb/tornado | diff --git a/tornado/test/httpserver_test.py b/tornado/test/httpserver_test.py
index c1ba831c..62ef6ca3 100644
--- a/tornado/test/httpserver_test.py
+++ b/tornado/test/httpserver_test.py
@@ -162,22 +162,19 @@ class BadSSLOptionsTest(unittest.TestCase):
application = Application()
module_dir = os.path.... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_many_modified_files",
"has_many_hunks",
"has_pytest_match_arg"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 2
},
"num_modified_files": 4
} | 4.1 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.6",
"reqs_path": [
... | attrs==22.2.0
autopep8==1.1
certifi==14.5.14
coverage==3.7.1
docutils==0.12
flake8==2.3.0
importlib-metadata==4.8.3
iniconfig==1.1.1
Jinja2==2.7.3
MarkupSafe==0.23
mccabe==0.3
packaging==21.3
pep8==1.6.0
pkginfo==1.2.1
pluggy==1.0.0
py==1.11.0
pycurl==7.19.5.1
pyflakes==0.8.1
Pygments==2.0.2
pyparsing==3.1.4
pytest==7.... | name: tornado
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.3=he6710b0_2
- libgcc-ng=11.... | [
"tornado/test/web_test.py::WSGISafeWebTest::test_web_redirect_double_slash"
] | [
"tornado/test/httpserver_test.py::HTTPServerRawTest::test_malformed_first_line",
"tornado/test/httpserver_test.py::HTTPServerRawTest::test_malformed_headers",
"tornado/test/httpserver_test.py::UnixSocketTest::test_unix_socket_bad_request",
"tornado/test/httpserver_test.py::MaxHeaderSizeTest::test_large_header... | [
"tornado/test/httpserver_test.py::SSLv23Test::test_large_post",
"tornado/test/httpserver_test.py::SSLv23Test::test_non_ssl_request",
"tornado/test/httpserver_test.py::SSLv23Test::test_ssl",
"tornado/test/httpserver_test.py::SSLv3Test::test_large_post",
"tornado/test/httpserver_test.py::SSLv3Test::test_non_s... | [] | Apache License 2.0 | 56 | 1,757 | [
"tornado/httpserver.py",
"tornado/simple_httpclient.py",
"tornado/util.py",
"tornado/web.py"
] | |
caesar0301__treelib-40 | 65635f48781f4426be9f55f1555d0c08454157bc | 2015-03-10 07:23:19 | bbd7bc557ab87dd0ebc449495f6041825be4a7c8 | diff --git a/treelib/tree.py b/treelib/tree.py
index 9bcf610..634566c 100644
--- a/treelib/tree.py
+++ b/treelib/tree.py
@@ -556,16 +556,16 @@ class Tree(object):
if not self.contains(nid):
raise NodeIDAbsentError("Node '%s' is not in the tree" % nid)
- label = ('{0}'.format(self[nid].tag... | AttributeError: 'str' object has no attribute 'decode'
python3.4, OSX 10.10
```python
>>> from treelib import Tree, Node
>>> tree = Tree()
>>> tree.create_node("Harry", "harry")
>>> tree.create_node("Jane", "jane", parent="harry")
>>> tree.show()
Traceback (most recent call last):
File "<stdin>", line 1, ... | caesar0301/treelib | diff --git a/tests/test_treelib.py b/tests/test_treelib.py
index 952f851..a061c8a 100644
--- a/tests/test_treelib.py
+++ b/tests/test_treelib.py
@@ -1,4 +1,10 @@
#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+try:
+ from StringIO import StringIO as BytesIO
+except ImportErr... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 2
},
"num_modified_files": 1
} | 1.3 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"nose",
"coverage",
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-hea... | coverage==7.8.0
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
nose==1.3.7
packaging @ file:///croot/packaging_1734472117206/work
pluggy @ file:///croot/pluggy_1733169602837/work
pytest @ file:///croot/pytest_1738938843180/work
to... | name: treelib
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- exceptiongroup=1.2.0=py39h06a4308_0
- iniconfig=1.1.1=pyhd3eb1b0_0
- ld_... | [
"tests/test_treelib.py::TreeCase::test_print_backend"
] | [] | [
"tests/test_treelib.py::NodeCase::test_data",
"tests/test_treelib.py::NodeCase::test_initialization",
"tests/test_treelib.py::NodeCase::test_set_bpointer",
"tests/test_treelib.py::NodeCase::test_set_fpointer",
"tests/test_treelib.py::NodeCase::test_set_identifier",
"tests/test_treelib.py::NodeCase::test_s... | [] | Apache License 2.0 | 58 | 282 | [
"treelib/tree.py"
] | |
enthought__okonomiyaki-34 | d32923ad74059883e31aaed8c12d3cd5e0288acd | 2015-03-17 21:13:01 | d32923ad74059883e31aaed8c12d3cd5e0288acd | diff --git a/okonomiyaki/platforms/epd_platform.py b/okonomiyaki/platforms/epd_platform.py
index 441712a..d32d37a 100644
--- a/okonomiyaki/platforms/epd_platform.py
+++ b/okonomiyaki/platforms/epd_platform.py
@@ -172,20 +172,16 @@ def _guess_architecture():
"""
Returns the architecture of the running python.
... | Fix platform guessing on 64 bits processes on 32 bits kernel
See #31 | enthought/okonomiyaki | diff --git a/okonomiyaki/platforms/tests/common.py b/okonomiyaki/platforms/tests/common.py
index b7ff851..8eb942b 100644
--- a/okonomiyaki/platforms/tests/common.py
+++ b/okonomiyaki/platforms/tests/common.py
@@ -63,14 +63,12 @@ mock_osx_10_7 = MultiPatcher([
# Architecture mocking
mock_machine = lambda machine: Patc... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_many_modified_files"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 3
},
"num_modified_files": 2
} | 0.4 | {
"env_vars": null,
"env_yml_path": [],
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [],
"python": "3.7",
"reqs_path": [
"dev_requirements.txt"
],
"test_cmd": "pyte... | certifi @ file:///croot/certifi_1671487769961/work/certifi
coverage==7.2.7
docutils==0.20.1
enum34==1.1.10
exceptiongroup==1.2.2
flake8==5.0.4
haas==0.9.0
importlib-metadata==4.2.0
iniconfig==2.0.0
mccabe==0.7.0
mock==5.2.0
-e git+https://github.com/enthought/okonomiyaki.git@d32923ad74059883e31aaed8c12d3cd5e0288acd#egg... | name: okonomiyaki
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2022.12.7=py37h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
... | [
"okonomiyaki/platforms/tests/test_epd_platform.py::TestEPDPlatformApplies::test_all",
"okonomiyaki/platforms/tests/test_epd_platform.py::TestEPDPlatformApplies::test_current_linux",
"okonomiyaki/platforms/tests/test_epd_platform.py::TestEPDPlatformApplies::test_current_windows",
"okonomiyaki/platforms/tests/t... | [] | [
"okonomiyaki/platforms/tests/test_epd_platform.py::TestEPDPlatform::test_epd_platform_from_string",
"okonomiyaki/platforms/tests/test_epd_platform.py::TestEPDPlatform::test_guessed_epd_platform",
"okonomiyaki/platforms/tests/test_epd_platform.py::TestEPDPlatform::test_short_names_consistency",
"okonomiyaki/pl... | [] | BSD License | 68 | 806 | [
"okonomiyaki/platforms/epd_platform.py",
"okonomiyaki/platforms/platform.py"
] | |
ministryofjustice__salt-shaker-21 | f7ab3acca99aa24b58d6d14f747c1d7b1daeac2c | 2015-03-20 14:58:51 | a7349bcd65608b0b2f18aadf3c181009b2d78398 | diff --git a/shaker/helpers.py b/shaker/helpers.py
index a04e149..8aa577f 100644
--- a/shaker/helpers.py
+++ b/shaker/helpers.py
@@ -2,6 +2,7 @@ import logging
import json
import requests
import os
+import re
def get_valid_github_token(online_validation_enabled = False):
"""
@@ -97,3 +98,69 @@ def validate_g... | Duplicates in metadata.yml
We don't throw an error if some idiot (me) puts duplicate lines in metadata.yml | ministryofjustice/salt-shaker | diff --git a/tests/test_metadata_handling.py b/tests/test_metadata_handling.py
new file mode 100644
index 0000000..7723861
--- /dev/null
+++ b/tests/test_metadata_handling.py
@@ -0,0 +1,67 @@
+import unittest
+import yaml
+from shaker import helpers
+from nose.tools import raises
+
+class TestMetadataHandling(unittest.... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_many_modified_files"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 2
},
"num_modified_files": 2
} | 0.1 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"nose",
"responses",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y libgit2-dev libss... | certifi==2025.1.31
cffi==1.17.1
charset-normalizer==3.4.1
exceptiongroup==1.2.2
idna==3.10
iniconfig==2.1.0
nose==1.3.7
packaging==24.2
pluggy==1.5.0
pycparser==2.22
pygit2==1.15.1
pytest==8.3.5
PyYAML==6.0.2
requests==2.32.3
responses==0.25.7
-e git+https://github.com/ministryofjustice/salt-shaker.git@f7ab3acca99aa24b... | name: salt-shaker
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-... | [
"tests/test_metadata_handling.py::TestMetadataHandling::test_resolve_metadata_duplicates",
"tests/test_metadata_handling.py::TestMetadataHandling::test_resolve_metadata_duplicates_bad_metadata_object",
"tests/test_metadata_handling.py::TestMetadataHandling::test_resolve_metadata_duplicates_metadata_missing_inde... | [] | [] | [] | null | 69 | 866 | [
"shaker/helpers.py",
"shaker/resolve_deps.py"
] | |
ipython__ipython-8111 | 2af39462d92d3834d5780a87f44d5e6cee7ecb81 | 2015-03-21 23:44:47 | ff02638008de8c90ca5f177e559efa048a2557a0 | diff --git a/IPython/config/application.py b/IPython/config/application.py
index ef97162b3..264d3793a 100644
--- a/IPython/config/application.py
+++ b/IPython/config/application.py
@@ -159,7 +159,7 @@ def _log_level_changed(self, name, old, new):
help="The date format used by logging formatters for %(asctime)s... | `_log_format_changed()` missing 3 required positional arguments
In `IPython.config.application`, the `_log_datefmt_changed` handler calls `_log_format_changed` but does not pass it the required arguments. My guess would be that this is the correct implementation:
```
def _log_datefmt_changed(self, name, old, new):
... | ipython/ipython | diff --git a/IPython/config/tests/test_application.py b/IPython/config/tests/test_application.py
index a03d548c2..5da6a1306 100644
--- a/IPython/config/tests/test_application.py
+++ b/IPython/config/tests/test_application.py
@@ -80,6 +80,7 @@ def test_log(self):
# trigger reconstruction of the log formatter
... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 2
},
"num_modified_files": 1
} | 3.0 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[test]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"pytest-xdist",
"pytest-mock",
"pytest-asyncio"
],
"pre_install": [
"ap... | attrs==22.2.0
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
execnet==1.9.0
idna==3.10
importlib-metadata==4.8.3
iniconfig==1.1.1
-e git+https://github.com/ipython/ipython.git@2af39462d92d3834d5780a87f44d5e6cee7ecb81#egg=ipython
nose==1.3.7
packaging==21.3
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==... | name: ipython
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- li... | [
"IPython/config/tests/test_application.py::TestApplication::test_log"
] | [] | [
"IPython/config/tests/test_application.py::TestApplication::test_aliases",
"IPython/config/tests/test_application.py::TestApplication::test_basic",
"IPython/config/tests/test_application.py::TestApplication::test_config",
"IPython/config/tests/test_application.py::TestApplication::test_config_propagation",
... | [] | BSD 3-Clause "New" or "Revised" License | 71 | 176 | [
"IPython/config/application.py"
] | |
CleanCut__green-40 | 9450d48e8099b15e87ddbd12243fb61db29fe4ba | 2015-03-25 15:20:15 | 9450d48e8099b15e87ddbd12243fb61db29fe4ba | diff --git a/green/loader.py b/green/loader.py
index f93d26c..50e5e91 100644
--- a/green/loader.py
+++ b/green/loader.py
@@ -121,11 +121,21 @@ def findDottedModuleAndParentDir(file_path):
return (dotted_module, parent_dir)
+def isNoseDisabledCase(test_case_class, attrname):
+ test_func = getattr(test_case_c... | Make green work with nose_parameterized
Green doesn't work with `nose_parameterized` since it executes tests that `nose_parameterized` [marks](https://github.com/wolever/nose-parameterized/blob/master/nose_parameterized/parameterized.py#L232) as disabled using the nose-specific [`__test__`](https://github.com/nose-devs... | CleanCut/green | diff --git a/green/test/test_loader.py b/green/test/test_loader.py
index 09f0b76..397844f 100644
--- a/green/test/test_loader.py
+++ b/green/test/test_loader.py
@@ -264,6 +264,17 @@ class TestLoadFromTestCase(unittest.TestCase):
set(['test_method1', 'test_method2']))
+ def test_nose_dis... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_hyperlinks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 0
},
"num_modified_files": 1
} | 1.7 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.4",
"reqs_path": [
"requirements.txt"
],
"test_cmd": "pytest --... | attrs==22.2.0
certifi==2021.5.30
-e git+https://github.com/CleanCut/green.git@9450d48e8099b15e87ddbd12243fb61db29fe4ba#egg=green
importlib-metadata==4.8.3
iniconfig==1.1.1
packaging==21.3
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
python-termstyle==0.1.10
tomli==1.2.3
typing_extensions==4.1.1
zipp==3.6.0
| name: green
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libf... | [
"green/test/test_loader.py::TestLoadFromTestCase::test_nose_disabled_attribute"
] | [
"green/test/test_loader.py::TestCompletions::test_completionPartial",
"green/test/test_loader.py::TestCompletions::test_completionPartialShort",
"green/test/test_loader.py::TestLoadTargets::test_emptyDirAbsolute",
"green/test/test_loader.py::TestLoadTargets::test_emptyDirRelative",
"green/test/test_loader.p... | [
"green/test/test_loader.py::TestToProtoTestList::test_moduleImportFailure",
"green/test/test_loader.py::TestToProtoTestList::test_moduleImportFailureIgnored",
"green/test/test_loader.py::TestCompletions::test_completionBad",
"green/test/test_loader.py::TestCompletions::test_completionDot",
"green/test/test_... | [] | MIT License | 74 | 270 | [
"green/loader.py"
] | |
eadhost__eadator-2 | 9ca6058a79729250f0c4399ac54e48d1543017c3 | 2015-03-26 06:44:18 | 9ca6058a79729250f0c4399ac54e48d1543017c3 | diff --git a/eadator/eadator.py b/eadator/eadator.py
index d1734ea..6a0c32e 100755
--- a/eadator/eadator.py
+++ b/eadator/eadator.py
@@ -16,14 +16,20 @@ def main(argv=None):
type=argparse.FileType('r'))
parser.add_argument('--dtd', required=False, )
parser.add_argument('--xsd', requir... | Add the number of errors
Hello,
Could you add the number of errors at the end of the list of errors?
It could be useful for verify if a modification adds or deletes an error.
Thanks. | eadhost/eadator | diff --git a/tests/test_eadator.py b/tests/test_eadator.py
index a90571d..68d55d9 100755
--- a/tests/test_eadator.py
+++ b/tests/test_eadator.py
@@ -17,17 +17,32 @@ class TestEadator(unittest.TestCase):
type=argparse.FileType('r'))
parser.add_argument('--dtd', default="%s/ents/ead.... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_pytest_match_arg"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 1
},
"num_modified_files": 1
} | 0.3 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y libxml2-dev libxslt-dev"
],
"python": "3.9",
"reqs_path"... | -e git+https://github.com/eadhost/eadator.git@9ca6058a79729250f0c4399ac54e48d1543017c3#egg=eadator
exceptiongroup==1.2.2
iniconfig==2.1.0
lxml==5.3.1
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
tomli==2.2.1
| name: eadator
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=1... | [
"tests/test_eadator.py::TestEadator::test_eadator"
] | [] | [] | [] | BSD License | 75 | 362 | [
"eadator/eadator.py"
] | |
mkdocs__mkdocs-395 | 88bb485ee4bd863f1cbfed6a786ef995cc844929 | 2015-04-02 19:29:19 | bfc393ce2dd31d0fea2be3a5b0fec20ed361bfe0 | diff --git a/mkdocs/nav.py b/mkdocs/nav.py
index c8257e12..932399b4 100644
--- a/mkdocs/nav.py
+++ b/mkdocs/nav.py
@@ -209,14 +209,17 @@ def _generate_site_navigation(pages_config, url_context, use_directory_urls=True
)
raise exceptions.ConfigurationError(msg)
+ # If both the title an... | Title is used as a section if file is in subdirectory
Assuming I have a file at `research/stats.md` and a config line:
```
pages:
- ["research/stats.md", "Stats about Our Collection"]
```
I would assume that it would generate a top-level nav item titled "Stats about Our Collection".
In reality, it generate... | mkdocs/mkdocs | diff --git a/mkdocs/tests/nav_tests.py b/mkdocs/tests/nav_tests.py
index 7013a66e..b6876f35 100644
--- a/mkdocs/tests/nav_tests.py
+++ b/mkdocs/tests/nav_tests.py
@@ -63,6 +63,39 @@ class SiteNavigationTests(unittest.TestCase):
self.assertEqual(len(site_navigation.nav_items), 3)
self.assertEqual(len(s... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 0
},
"num_modified_files": 1
} | 0.11 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"nose",
"mock",
"pytest"
],
"pre_install": [
"pip install tox"
],
"python": "3.4",
"reqs_path": [
"... | attrs==22.2.0
certifi==2021.5.30
distlib==0.3.9
filelock==3.4.1
ghp-import==2.1.0
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
Jinja2==3.0.3
Markdown==2.4.1
MarkupSafe==2.0.1
-e git+https://github.com/mkdocs/mkdocs.git@88bb485ee4bd863f1cbfed6a786ef995cc844929#egg=mkdocs
mock==5.2.0
nose==1.3.7
... | name: mkdocs
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- lib... | [
"mkdocs/tests/nav_tests.py::SiteNavigationTests::test_nested_ungrouped"
] | [] | [
"mkdocs/tests/nav_tests.py::SiteNavigationTests::test_base_url",
"mkdocs/tests/nav_tests.py::SiteNavigationTests::test_empty_toc_item",
"mkdocs/tests/nav_tests.py::SiteNavigationTests::test_generate_site_navigation",
"mkdocs/tests/nav_tests.py::SiteNavigationTests::test_generate_site_navigation_windows",
"m... | [] | BSD 2-Clause "Simplified" License | 80 | 265 | [
"mkdocs/nav.py"
] | |
mkdocs__mkdocs-402 | 74e60382b84b3af9969b30cc2cd9a98894d113f5 | 2015-04-03 08:53:55 | bfc393ce2dd31d0fea2be3a5b0fec20ed361bfe0 | diff --git a/mkdocs/compat.py b/mkdocs/compat.py
index 49bd396a..518a4937 100644
--- a/mkdocs/compat.py
+++ b/mkdocs/compat.py
@@ -13,6 +13,7 @@ if PY2:
httpserver = httpserver
import SocketServer
socketserver = SocketServer
+ from HTMLParser import HTMLParser
import itertools
zip = iterto... | Not all headers are automatically linked
I have an API reference site for a project that's hosted on ReadTheDocs using mkdocs as the documentation engine. Headers that contain things like `<code>` blocks aren't linked, while all others seem to be.
I can reproduce this locally with a plain mkdocs install using the RT... | mkdocs/mkdocs | diff --git a/mkdocs/tests/toc_tests.py b/mkdocs/tests/toc_tests.py
index 03ab9cd0..b0bdea11 100644
--- a/mkdocs/tests/toc_tests.py
+++ b/mkdocs/tests/toc_tests.py
@@ -29,6 +29,20 @@ class TableOfContentsTests(unittest.TestCase):
toc = self.markdown_to_toc(md)
self.assertEqual(str(toc).strip(), expecte... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_hyperlinks",
"has_many_modified_files",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 0
},
"num_modified_files": 2
} | 0.11 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov"
],
"pre_install": null,
"python": "3.7",
"reqs_path": [
"requirements.txt"
],
... | certifi @ file:///croot/certifi_1671487769961/work/certifi
coverage==7.2.7
exceptiongroup==1.2.2
ghp-import==2.1.0
importlib-metadata==6.7.0
iniconfig==2.0.0
Jinja2==3.1.6
Markdown==2.4.1
MarkupSafe==2.1.5
-e git+https://github.com/mkdocs/mkdocs.git@74e60382b84b3af9969b30cc2cd9a98894d113f5#egg=mkdocs
packaging==24.0
pl... | name: mkdocs
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2022.12.7=py37h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- lib... | [
"mkdocs/tests/toc_tests.py::TableOfContentsTests::test_indented_toc_html"
] | [] | [
"mkdocs/tests/toc_tests.py::TableOfContentsTests::test_flat_h2_toc",
"mkdocs/tests/toc_tests.py::TableOfContentsTests::test_flat_toc",
"mkdocs/tests/toc_tests.py::TableOfContentsTests::test_indented_toc",
"mkdocs/tests/toc_tests.py::TableOfContentsTests::test_mixed_toc"
] | [] | BSD 2-Clause "Simplified" License | 81 | 646 | [
"mkdocs/compat.py",
"mkdocs/toc.py"
] | |
mkdocs__mkdocs-443 | 74d3191e419b7cb79fe66f700119ead3365f70d0 | 2015-04-09 12:25:57 | bfc393ce2dd31d0fea2be3a5b0fec20ed361bfe0 | diff --git a/mkdocs/main.py b/mkdocs/main.py
index d73f9091..8b9a9412 100755
--- a/mkdocs/main.py
+++ b/mkdocs/main.py
@@ -55,7 +55,7 @@ def main(cmd, args, options=None):
build(config, clean_site_dir=clean_site_dir)
gh_deploy(config)
elif cmd == 'new':
- new(args, options)
+ new(ar... | `mkdocs new` broken under python2
current master, python 2.7.9 virtualenv
only top directory and mkdocs.yml created, no docs dir or index.md
```
(karasu)[lashni@orphan src]$ mkdocs new karasu
Creating project directory: karasu
Writing config file: karasu/mkdocs.yml
Traceback (most recent call last):
File "/h... | mkdocs/mkdocs | diff --git a/mkdocs/tests/new_tests.py b/mkdocs/tests/new_tests.py
new file mode 100644
index 00000000..e54fcb58
--- /dev/null
+++ b/mkdocs/tests/new_tests.py
@@ -0,0 +1,28 @@
+#!/usr/bin/env python
+# coding: utf-8
+
+import tempfile
+import unittest
+import os
+
+from mkdocs import new
+
+
+class NewTests(unittest.Te... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_many_modified_files"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 2
},
"num_modified_files": 2
} | 0.11 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"pytest-xdist",
"pytest-mock",
"pytest-asyncio"
],
"pre_install": [
"apt... | coverage==7.8.0
exceptiongroup==1.2.2
execnet==2.1.1
ghp-import==2.1.0
importlib_metadata==8.6.1
iniconfig==2.1.0
Jinja2==3.1.6
Markdown==3.7
MarkupSafe==3.0.2
-e git+https://github.com/mkdocs/mkdocs.git@74d3191e419b7cb79fe66f700119ead3365f70d0#egg=mkdocs
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
pytest-asyncio==0.26... | name: mkdocs
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=11... | [
"mkdocs/tests/new_tests.py::NewTests::test_new"
] | [] | [] | [] | BSD 2-Clause "Simplified" License | 86 | 422 | [
"mkdocs/main.py",
"mkdocs/new.py"
] | |
Pylons__webob-192 | 643ac0afc561165575a999d7458daa2bc5b0a2c1 | 2015-04-11 16:22:54 | 9b79f5f913fb1f07c68102a2279ed757a2a9abf6 | diff --git a/webob/request.py b/webob/request.py
index 01c170f..8269ac5 100644
--- a/webob/request.py
+++ b/webob/request.py
@@ -785,8 +785,10 @@ class BaseRequest(object):
return NoVars('Not an HTML form submission (Content-Type: %s)'
% content_type)
self._check_charset... | Accessing request.POST modifyed body
I have a request which is POSTing JSON data, but some clients do not send along a `Content-Type` header. When this happens accessing `request.POST` will mangle the request body. Here is an example:
```python
(Pdb) p request.content_type
''
(Pdb) p request.body
'{"password": "... | Pylons/webob | diff --git a/tests/test_request.py b/tests/test_request.py
index ebe5daf..f325bb9 100644
--- a/tests/test_request.py
+++ b/tests/test_request.py
@@ -512,6 +512,21 @@ class TestRequestCommon(unittest.TestCase):
result = req.POST
self.assertEqual(result['var1'], 'value1')
+ def test_POST_json_no_co... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 3
},
"num_modified_files": 1
} | 1.4 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.4",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --col... | attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
pack... | name: webob
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- attrs=21.4.0=pyhd3eb1b0_0
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- importlib-m... | [
"tests/test_request.py::TestRequestCommon::test_POST_json_no_content_type"
] | [] | [
"tests/test_request.py::TestRequestCommon::test_GET_reflects_query_string",
"tests/test_request.py::TestRequestCommon::test_GET_updates_query_string",
"tests/test_request.py::TestRequestCommon::test_POST_existing_cache_hit",
"tests/test_request.py::TestRequestCommon::test_POST_missing_content_type",
"tests/... | [] | null | 90 | 285 | [
"webob/request.py"
] | |
softlayer__softlayer-python-523 | 200787d4c3bf37bc4e701caf6a52e24dd07d18a3 | 2015-04-14 01:39:04 | 200787d4c3bf37bc4e701caf6a52e24dd07d18a3 | diff --git a/SoftLayer/CLI/call_api.py b/SoftLayer/CLI/call_api.py
index 4d89cf74..e24e185d 100644
--- a/SoftLayer/CLI/call_api.py
+++ b/SoftLayer/CLI/call_api.py
@@ -9,21 +9,24 @@
@click.command('call', short_help="Call arbitrary API endpoints.")
@click.argument('service')
@click.argument('method')
+@click.argument... | enableSnapshots method not working
Hi,
I'm trying to enable HOURLY/DAILY/WEEKLY snapshots using slcli as follows:
slcli call-api Network_Storage enableSnapshots --id=XXXXXX --retentionCount=3 --scheduleType=HOURLY --minute=59
Error: no such option: --retentionCount
According to the WSDL all these parameters a... | softlayer/softlayer-python | diff --git a/SoftLayer/tests/CLI/modules/call_api_tests.py b/SoftLayer/tests/CLI/modules/call_api_tests.py
index b14cd9f1..2555b8e8 100644
--- a/SoftLayer/tests/CLI/modules/call_api_tests.py
+++ b/SoftLayer/tests/CLI/modules/call_api_tests.py
@@ -119,6 +119,17 @@ def test_list_table(self):
:......:......:.......:........ | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 2
},
"num_modified_files": 1
} | 3.3 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.6",
"reqs_path... | alabaster==0.7.13
attrs==22.2.0
Babel==2.11.0
certifi==2021.5.30
charset-normalizer==2.0.12
click==8.0.4
coverage==6.2
distlib==0.3.9
docutils==0.18.1
filelock==3.4.1
fixtures==4.0.1
idna==3.10
imagesize==1.4.1
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
Jinja2==3.0.3
MarkupSafe==2.0.1
mock==5... | name: softlayer-python
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557... | [
"SoftLayer/tests/CLI/modules/call_api_tests.py::CallCliTests::test_parameters"
] | [] | [
"SoftLayer/tests/CLI/modules/call_api_tests.py::CallCliTests::test_list",
"SoftLayer/tests/CLI/modules/call_api_tests.py::CallCliTests::test_list_table",
"SoftLayer/tests/CLI/modules/call_api_tests.py::CallCliTests::test_object",
"SoftLayer/tests/CLI/modules/call_api_tests.py::CallCliTests::test_object_nested... | [] | MIT License | 91 | 423 | [
"SoftLayer/CLI/call_api.py"
] | |
softlayer__softlayer-python-524 | 200787d4c3bf37bc4e701caf6a52e24dd07d18a3 | 2015-04-14 18:26:39 | 200787d4c3bf37bc4e701caf6a52e24dd07d18a3 | diff --git a/SoftLayer/CLI/server/detail.py b/SoftLayer/CLI/server/detail.py
index 61eeb43e..943b694b 100644
--- a/SoftLayer/CLI/server/detail.py
+++ b/SoftLayer/CLI/server/detail.py
@@ -35,7 +35,7 @@ def cli(env, identifier, passwords, price):
result = utils.NestedDict(result)
table.add_row(['id', result['... | problem with hourly bare metal servers immediate cancelation in CLI and manager
slcli server cancel --immediate <server id> does not produce an error, but cancels server on its monthly anniversary. The cause of the problem is "old" logic in cancel_hardware method of harware.py. In SL API 4.0 harware.py place_order now ... | softlayer/softlayer-python | diff --git a/SoftLayer/tests/managers/hardware_tests.py b/SoftLayer/tests/managers/hardware_tests.py
index 283598c9..79aa5025 100644
--- a/SoftLayer/tests/managers/hardware_tests.py
+++ b/SoftLayer/tests/managers/hardware_tests.py
@@ -243,57 +243,53 @@ def test_place_order(self, create_dict):
self.assert_calle... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_issue_reference",
"has_many_modified_files",
"has_pytest_match_arg"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 2
},
"num_modified_files": ... | 3.3 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.6",
"reqs_path... | alabaster==0.7.13
attrs==22.2.0
Babel==2.11.0
certifi==2021.5.30
charset-normalizer==2.0.12
click==8.0.4
coverage==6.2
distlib==0.3.9
docutils==0.18.1
filelock==3.4.1
fixtures==4.0.1
idna==3.10
imagesize==1.4.1
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
Jinja2==3.0.3
MarkupSafe==2.0.1
mock==5... | name: softlayer-python
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557... | [
"SoftLayer/tests/managers/hardware_tests.py::HardwareTests::test_cancel_hardware",
"SoftLayer/tests/managers/hardware_tests.py::HardwareTests::test_cancel_hardware_no_billing_item",
"SoftLayer/tests/managers/hardware_tests.py::HardwareTests::test_cancel_hardware_with_reason_and_comment",
"SoftLayer/tests/mana... | [] | [
"SoftLayer/tests/managers/hardware_tests.py::HardwareTests::test_change_port_speed_private",
"SoftLayer/tests/managers/hardware_tests.py::HardwareTests::test_change_port_speed_public",
"SoftLayer/tests/managers/hardware_tests.py::HardwareTests::test_edit",
"SoftLayer/tests/managers/hardware_tests.py::Hardware... | [] | MIT License | 94 | 797 | [
"SoftLayer/CLI/server/detail.py",
"SoftLayer/managers/hardware.py"
] | |
falconry__falcon-505 | 9dc3d87259b8fc50abc638a42b20e1eaa04d0cbc | 2015-04-15 12:55:19 | 6608a5f10aead236ae5345488813de805b85b064 | diff --git a/falcon/request.py b/falcon/request.py
index 0663c21..be8aabf 100644
--- a/falcon/request.py
+++ b/falcon/request.py
@@ -343,6 +343,9 @@ class Request(object):
value = self.env['HTTP_RANGE']
if value.startswith('bytes='):
value = value[6:]
+ else:
+ ... | Make "bytes" prefix in Range header value required
Currently, range header values without a "bytes" prefix are allowed. Change the code to always require a "bytes" prefix. | falconry/falcon | diff --git a/tests/test_req_vars.py b/tests/test_req_vars.py
index 904d622..5ee1809 100644
--- a/tests/test_req_vars.py
+++ b/tests/test_req_vars.py
@@ -368,15 +368,15 @@ class TestReqVars(testing.TestBase):
self.assertEqual(preferred_type, None)
def test_range(self):
- headers = {'Range': '10-'}... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_pytest_match_arg"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 0
},
"num_modified_files": 1
} | 0.2 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"nose",
"coverage",
"ddt",
"pyyaml",
"requests",
"six",
"testtools",
"pytest"
],
"pre_install... | certifi==2025.1.31
charset-normalizer==3.4.1
coverage==7.8.0
ddt==1.7.2
exceptiongroup==1.2.2
-e git+https://github.com/falconry/falcon.git@9dc3d87259b8fc50abc638a42b20e1eaa04d0cbc#egg=falcon
idna==3.10
iniconfig==2.1.0
nose==1.3.7
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
python-mimeparse==2.0.0
PyYAML==6.0.2
reques... | name: falcon
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=11... | [
"tests/test_req_vars.py::TestReqVars::test_range_invalid"
] | [
"tests/test_req_vars.py::TestReqVars::test_client_accepts"
] | [
"tests/test_req_vars.py::TestReqVars::test_attribute_headers",
"tests/test_req_vars.py::TestReqVars::test_bogus_content_length_nan",
"tests/test_req_vars.py::TestReqVars::test_bogus_content_length_neg",
"tests/test_req_vars.py::TestReqVars::test_client_accepts_bogus",
"tests/test_req_vars.py::TestReqVars::t... | [] | Apache License 2.0 | 97 | 130 | [
"falcon/request.py"
] | |
Pylons__webob-197 | 9b79f5f913fb1f07c68102a2279ed757a2a9abf6 | 2015-04-23 02:49:34 | 9b79f5f913fb1f07c68102a2279ed757a2a9abf6 | diff --git a/webob/response.py b/webob/response.py
index a164938..9579b7e 100644
--- a/webob/response.py
+++ b/webob/response.py
@@ -116,16 +116,13 @@ class Response(object):
if 'charset' in kw:
charset = kw.pop('charset')
elif self.default_charset:
- if (content_type
- ... | JSON content shouldn't need a UTF-8 on the content-type
Fix this issue: https://github.com/Pylons/pyramid/issues/1611#issuecomment-93073442 | Pylons/webob | diff --git a/tests/test_response.py b/tests/test_response.py
index d9c1cd3..6425a22 100644
--- a/tests/test_response.py
+++ b/tests/test_response.py
@@ -104,6 +104,7 @@ def test_set_response_status_code_generic_reason():
assert res.status_code == 299
assert res.status == '299 Success'
+
def test_content_ty... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_hyperlinks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 2
},
"num_modified_files": 1
} | 1.4 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"nose",
"coverage",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "... | coverage==7.8.0
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
nose==1.3.7
packaging @ file:///croot/packaging_1734472117206/work
pluggy @ file:///croot/pluggy_1733169602837/work
pytest @ file:///croot/pytest_1738938843180/work
to... | name: webob
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- exceptiongroup=1.2.0=py39h06a4308_0
- iniconfig=1.1.1=pyhd3eb1b0_0
- ld_im... | [
"tests/test_response.py::test_init_no_charset_when_json"
] | [] | [
"tests/test_response.py::test_response",
"tests/test_response.py::test_set_response_status_binary",
"tests/test_response.py::test_set_response_status_str_no_reason",
"tests/test_response.py::test_set_response_status_str_generic_reason",
"tests/test_response.py::test_set_response_status_code",
"tests/test_... | [] | null | 103 | 432 | [
"webob/response.py"
] | |
softlayer__softlayer-python-531 | 05ca114d4cf35597182051d5acb4db74fc333cfc | 2015-04-23 15:10:47 | 1195b2020ef6efc40462d59eb079f26e5f39a6d8 | diff --git a/SoftLayer/CLI/config/setup.py b/SoftLayer/CLI/config/setup.py
index 30ba070a..f9b37d55 100644
--- a/SoftLayer/CLI/config/setup.py
+++ b/SoftLayer/CLI/config/setup.py
@@ -13,14 +13,12 @@
import click
-def get_api_key(client, username, secret, endpoint_url=None):
+def get_api_key(client, username, secre... | [Bug] slcli config setup doesnt accept default value when one is already present
When you already have a `.softlayer` configured, and you `slcli config setup`, it loads previous values from `.softlayer` and shows them to you, but pressing enter at the prompt doesnt keep the previous value and move on to the next settin... | softlayer/softlayer-python | diff --git a/SoftLayer/tests/CLI/environment_tests.py b/SoftLayer/tests/CLI/environment_tests.py
index e1ebf0e2..b3826df8 100644
--- a/SoftLayer/tests/CLI/environment_tests.py
+++ b/SoftLayer/tests/CLI/environment_tests.py
@@ -43,13 +43,13 @@ def test_get_command(self):
@mock.patch('click.prompt')
def test_in... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_many_modified_files",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 2
},
"num_modified_files": 5
} | 4.0 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.6",
"reqs_path... | alabaster==0.7.13
attrs==22.2.0
Babel==2.11.0
certifi==2021.5.30
charset-normalizer==2.0.12
click==8.0.4
coverage==6.2
distlib==0.3.9
docutils==0.18.1
filelock==3.4.1
fixtures==4.0.1
idna==3.10
imagesize==1.4.1
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
Jinja2==3.0.3
MarkupSafe==2.0.1
mock==5... | name: softlayer-python
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557... | [
"SoftLayer/tests/CLI/environment_tests.py::EnvironmentTests::test_getpass",
"SoftLayer/tests/CLI/environment_tests.py::EnvironmentTests::test_input",
"SoftLayer/tests/CLI/helper_tests.py::PromptTests::test_confirmation",
"SoftLayer/tests/CLI/helper_tests.py::PromptTests::test_do_or_die"
] | [] | [
"SoftLayer/tests/CLI/environment_tests.py::EnvironmentTests::test_get_command",
"SoftLayer/tests/CLI/environment_tests.py::EnvironmentTests::test_get_command_invalid",
"SoftLayer/tests/CLI/environment_tests.py::EnvironmentTests::test_list_commands",
"SoftLayer/tests/CLI/environment_tests.py::EnvironmentTests:... | [] | MIT License | 105 | 2,261 | [
"SoftLayer/CLI/config/setup.py",
"SoftLayer/CLI/core.py",
"SoftLayer/CLI/environment.py",
"SoftLayer/CLI/formatting.py",
"SoftLayer/config.py"
] | |
mne-tools__mne-python-2018 | 0bf2f433842c26436fc8f1ee168dfa49b07c45c3 | 2015-04-24 12:26:56 | edceb8f38349d6dc0cade1c9f8384cc0707ce3e8 | diff --git a/mne/report.py b/mne/report.py
index a8e0d21a6..892aab074 100644
--- a/mne/report.py
+++ b/mne/report.py
@@ -554,7 +554,12 @@ image_template = Template(u"""
{{if comment is not None}}
<br><br>
<div style="text-align:center;">
- {{comment}}
+ <style>
+ ... | BUG: Adding more than one figure to Report is broken
If a call to `add_figs_to_section` is made with a list of figures, only the first one is added.
In this example, only the first figure appears on the report.
```Python
import numpy as np
import matplotlib.pyplot as plt
from mne.report import Report
r = Re... | mne-tools/mne-python | diff --git a/mne/tests/test_report.py b/mne/tests/test_report.py
index 500f408b4..dd0d02ffe 100644
--- a/mne/tests/test_report.py
+++ b/mne/tests/test_report.py
@@ -212,4 +212,21 @@ def test_add_htmls_to_section():
assert_equal(html, html_compare)
+def test_validate_input():
+ report = Report()
+ items =... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 3
},
"num_modified_files": 1
} | 0.8 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"numpy>=1.16.0",
"pandas>=1.0.0",
"scikit-learn",
"h5py",
"pysurfer",
"nose",
"nose-timer",
... | apptools==5.2.1
certifi @ file:///croot/certifi_1671487769961/work/certifi
configobj==5.0.9
cycler==0.11.0
envisage==7.0.3
exceptiongroup==1.2.2
fonttools==4.38.0
h5py==3.8.0
importlib-metadata==6.7.0
importlib-resources==5.12.0
iniconfig==2.0.0
joblib==1.3.2
kiwisolver==1.4.5
matplotlib==3.5.3
mayavi==4.8.1
-e git+htt... | name: mne-python
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2022.12.7=py37h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
-... | [
"mne/tests/test_report.py::test_validate_input"
] | [] | [] | [] | BSD 3-Clause "New" or "Revised" License | 106 | 361 | [
"mne/report.py"
] | |
google__yapf-131 | 5e7c8aadfe6ed7d892e858b305ef2ca60c65bfcc | 2015-04-27 19:32:21 | 5e7c8aadfe6ed7d892e858b305ef2ca60c65bfcc | coveralls:
[](https://coveralls.io/builds/2434186)
Coverage decreased (-0.2%) to 91.89% when pulling **53c06d00461e35cfd3ae9a27cecc7dcc9d0912f0 on sbc100:handle_errors** into **8c7840c8b835568116219e9d960764198add4927 on google:master**.
| diff --git a/yapf/__init__.py b/yapf/__init__.py
index 7634c5c..7ffdfee 100644
--- a/yapf/__init__.py
+++ b/yapf/__init__.py
@@ -32,6 +32,7 @@ import logging
import os
import sys
+from yapf.yapflib import errors
from yapf.yapflib import file_resources
from yapf.yapflib import py3compat
from yapf.yapflib import s... | yapf crashes with misggin style (e.g. --style=foo)
I've got a fix for this that I will send a PR for.
This is the crash:
```
PYTHONPATH=$PWD/yapf python -m yapf --style=foo -i -r .
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, ... | google/yapf | diff --git a/yapftests/main_test.py b/yapftests/main_test.py
index 314dcba..e216d67 100644
--- a/yapftests/main_test.py
+++ b/yapftests/main_test.py
@@ -57,10 +57,23 @@ def patched_input(code):
yapf.py3compat.raw_input = raw_input
+class RunMainTest(unittest.TestCase):
+
+ def testShouldHandleYapfError(self):... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_added_files",
"has_many_modified_files",
"has_many_hunks",
"has_pytest_match_arg"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 2
},
"num... | 0.1 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --col... | exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
packaging @ file:///croot/packaging_1734472117206/work
pluggy @ file:///croot/pluggy_1733169602837/work
pytest @ file:///croot/pytest_1738938843180/work
tomli @ file:///opt/conda/cond... | name: yapf
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- exceptiongroup=1.2.0=py39h06a4308_0
- iniconfig=1.1.1=pyhd3eb1b0_0
- ld_imp... | [
"yapftests/main_test.py::RunMainTest::testShouldHandleYapfError",
"yapftests/main_test.py::MainTest::testNoPythonFilesMatched"
] | [] | [
"yapftests/main_test.py::MainTest::testEchoBadInput",
"yapftests/main_test.py::MainTest::testEchoInput",
"yapftests/main_test.py::MainTest::testEchoInputWithStyle",
"yapftests/main_test.py::MainTest::testHelp",
"yapftests/main_test.py::MainTest::testVersion"
] | [] | Apache License 2.0 | 112 | 1,076 | [
"yapf/__init__.py",
"yapf/yapflib/__init__.py",
"yapf/yapflib/style.py"
] |
typesafehub__conductr-cli-50 | 171c9dc9c17827b586d3002ba49186e5653f37bf | 2015-05-01 08:35:41 | e5561a7e43d92a0c19e7b6e31a36448455a17fba | diff --git a/conductr_cli/bundle_utils.py b/conductr_cli/bundle_utils.py
index cf11423..c7b72e2 100644
--- a/conductr_cli/bundle_utils.py
+++ b/conductr_cli/bundle_utils.py
@@ -7,5 +7,5 @@ def short_id(bundle_id):
def conf(bundle_path):
bundle_zip = ZipFile(bundle_path)
- bundleConf = [bundle_zip.read(name) ... | conduct load should support urls
We should extend the `load` sub command so that it can download a remote resource for the purposes of then uploading it to ConductR. Accepting a URL therefore allows us to pull down bundles and their respective configurations from remote locations. | typesafehub/conductr-cli | diff --git a/conductr_cli/test/cli_test_case.py b/conductr_cli/test/cli_test_case.py
index f57eaad..5f44a83 100644
--- a/conductr_cli/test/cli_test_case.py
+++ b/conductr_cli/test/cli_test_case.py
@@ -10,7 +10,7 @@ class CliTestCase():
@property
def default_connection_error(self):
- return strip_marg... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_many_modified_files",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 2
},
"num_modified_files": 10
} | 0.13 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path": null,
"tes... | argcomplete==3.6.1
certifi==2025.1.31
charset-normalizer==3.4.1
-e git+https://github.com/typesafehub/conductr-cli.git@171c9dc9c17827b586d3002ba49186e5653f37bf#egg=conductr_cli
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
idna==3.10
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/... | name: conductr-cli
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- exceptiongroup=1.2.0=py39h06a4308_0
- iniconfig=1.1.1=pyhd3eb1b0_0
... | [
"conductr_cli/test/test_conduct_load.py::TestConductLoadCommand::test_failure",
"conductr_cli/test/test_conduct_load.py::TestConductLoadCommand::test_failure_invalid_address",
"conductr_cli/test/test_conduct_load.py::TestConductLoadCommand::test_failure_no_bundle",
"conductr_cli/test/test_conduct_load.py::Tes... | [] | [
"conductr_cli/test/test_conduct_load.py::TestConductLoadCommand::test_failure_no_disk_space",
"conductr_cli/test/test_conduct_load.py::TestConductLoadCommand::test_failure_no_memory",
"conductr_cli/test/test_conduct_load.py::TestConductLoadCommand::test_failure_no_nr_of_cpus",
"conductr_cli/test/test_conduct_... | [] | Apache License 2.0 | 117 | 3,259 | [
"conductr_cli/bundle_utils.py",
"conductr_cli/conduct.py",
"conductr_cli/conduct_info.py",
"conductr_cli/conduct_load.py",
"conductr_cli/conduct_logging.py",
"conductr_cli/conduct_run.py",
"conductr_cli/conduct_services.py",
"conductr_cli/conduct_stop.py",
"conductr_cli/conduct_unload.py",
"conduc... | |
falconry__falcon-538 | 0af00afd67d92dbf9c6a721d0a1d1218408c1eb7 | 2015-05-01 23:38:20 | b78ffaac7c412d3b3d6cd3c70dd05024d79d2cce | diff --git a/falcon/routing/compiled.py b/falcon/routing/compiled.py
index 1a2f903..79a7bac 100644
--- a/falcon/routing/compiled.py
+++ b/falcon/routing/compiled.py
@@ -29,74 +29,6 @@ class CompiledRouter(object):
tree for each look-up, it generates inlined, bespoke Python code to
perform the search, then com... | URI template conflicts after router update
I have been abusing the route order a bit, and would like to know if there is a way to do this with the new router, or if this is actually a bug.
```python
application = falcon.API()
application.add_route('/action1', Action1Handler())
application.add_route('/action2', Ac... | falconry/falcon | diff --git a/tests/test_default_router.py b/tests/test_default_router.py
index cb14489..8e3b518 100644
--- a/tests/test_default_router.py
+++ b/tests/test_default_router.py
@@ -7,6 +7,9 @@ class ResourceWithId(object):
def __init__(self, resource_id):
self.resource_id = resource_id
+ def __repr__(sel... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_many_hunks",
"has_pytest_match_arg"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 2
},
"num_modified_files": 1
} | 0.3 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"nose",
"coverage",
"ddt",
"pyyaml",
"requests",
"testtools",
"pytest"
],
"pre_install": [
"apt-get upd... | attrs @ file:///croot/attrs_1668696182826/work
certifi @ file:///croot/certifi_1671487769961/work/certifi
charset-normalizer==3.4.1
coverage==7.2.7
ddt==1.7.2
-e git+https://github.com/falconry/falcon.git@0af00afd67d92dbf9c6a721d0a1d1218408c1eb7#egg=falcon
flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762... | name: falcon
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- attrs=22.1.0=py37h06a4308_0
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2022.12.7=py37h06a4308_0
- flit-cor... | [
"tests/test_default_router.py::TestStandaloneRouter::test_collision_1__teams__collision_",
"tests/test_default_router.py::TestStandaloneRouter::test_collision_2__repos__org___repo__compare__simple_collision_",
"tests/test_default_router.py::TestStandaloneRouter::test_collision_3__emojis_signs__id_too_",
"test... | [] | [] | [] | Apache License 2.0 | 118 | 1,298 | [
"falcon/routing/compiled.py"
] | |
mkdocs__mkdocs-497 | aa7dd95813f49ad187111af387fa3f427720184b | 2015-05-05 05:36:38 | 463c5b647e9ce5992b519708a0b9c4cba891d65c | diff --git a/mkdocs/build.py b/mkdocs/build.py
index 86617977..1bc2c318 100644
--- a/mkdocs/build.py
+++ b/mkdocs/build.py
@@ -10,9 +10,8 @@ from jinja2.exceptions import TemplateNotFound
from six.moves.urllib.parse import urljoin
import jinja2
import json
-import markdown
-from mkdocs import nav, search, toc, uti... | If no title is provided in the mkdocs.yml use the title in the markdown file
As per the title, this came up in #308 but it's something I've wanted for a while.
| mkdocs/mkdocs | diff --git a/mkdocs/tests/nav_tests.py b/mkdocs/tests/nav_tests.py
index cdd2bf9f..90fc4469 100644
--- a/mkdocs/tests/nav_tests.py
+++ b/mkdocs/tests/nav_tests.py
@@ -348,3 +348,16 @@ class SiteNavigationTests(unittest.TestCase):
for page, expected_ancestor in zip(site_navigation.pages, ancestors):
... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_many_modified_files",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 0
},
"num_modified_files"... | 0.12 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"mock"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
... | click==8.1.8
exceptiongroup==1.2.2
ghp-import==2.1.0
importlib_metadata==8.6.1
iniconfig==2.1.0
Jinja2==3.1.6
livereload==2.7.1
Markdown==3.7
MarkupSafe==3.0.2
-e git+https://github.com/mkdocs/mkdocs.git@aa7dd95813f49ad187111af387fa3f427720184b#egg=mkdocs
mock==5.2.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
python-d... | name: mkdocs
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=11... | [
"mkdocs/tests/nav_tests.py::SiteNavigationTests::test_file_to_tile"
] | [] | [
"mkdocs/tests/nav_tests.py::SiteNavigationTests::test_ancestors",
"mkdocs/tests/nav_tests.py::SiteNavigationTests::test_base_url",
"mkdocs/tests/nav_tests.py::SiteNavigationTests::test_empty_toc_item",
"mkdocs/tests/nav_tests.py::SiteNavigationTests::test_generate_site_navigation",
"mkdocs/tests/nav_tests.p... | [] | BSD 2-Clause "Simplified" License | 124 | 1,420 | [
"mkdocs/build.py",
"mkdocs/nav.py",
"mkdocs/utils.py"
] | |
peterbe__premailer-124 | f211f3f1bcfc87dc0318f056d319bb5575f62a72 | 2015-05-08 16:42:16 | f211f3f1bcfc87dc0318f056d319bb5575f62a72 | graingert: Use
`if urlparse.urlparse(base_url).scheme:`
peterbe: @graingert done.
peterbe: @graingert I force-pushed a new commit message. Just for you :)
graingert: Bling
peterbe: So, @graingert you approve?
What do you think @ewjoachim ?
ewjoachim: Nothing to add, I'm ok. | diff --git a/premailer/premailer.py b/premailer/premailer.py
index b53fc23..2d3a221 100644
--- a/premailer/premailer.py
+++ b/premailer/premailer.py
@@ -17,7 +17,7 @@ if sys.version_info >= (3,): # pragma: no cover
# As in, Python 3
from io import StringIO
from urllib.request import urlopen
- from ur... | Replacement of urls beginning with //
When using a link whose href starts with "//", Premailer should just add http or https depending on the base url it uses. Currently, it replaces it with the full host, so ``//another.host/`` becomes ``http://my.base.host/another.host/`` | peterbe/premailer | diff --git a/premailer/tests/test_premailer.py b/premailer/tests/test_premailer.py
index ba63f85..4390a4e 100644
--- a/premailer/tests/test_premailer.py
+++ b/premailer/tests/test_premailer.py
@@ -478,7 +478,6 @@ class Tests(unittest.TestCase):
</head>
<body>
<img src="/images/foo.jpg">
- ... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_hyperlinks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 2
},
"num_modified_files": 1
} | unknown | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "lxml cssselect cssutils nose mock",
"pip_packages": [
"nose",
"mock",
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test... | cssselect @ file:///croot/cssselect_1707339882883/work
cssutils @ file:///home/conda/feedstock_root/build_artifacts/cssutils_1734884840740/work
exceptiongroup==1.2.2
iniconfig==2.1.0
lxml @ file:///croot/lxml_1737039601731/work
mock @ file:///tmp/build/80754af9/mock_1607622725907/work
nose @ file:///opt/conda/conda-bld... | name: premailer
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- cssselect=1.2.0=py39h06a4308_0
- cssutils=2.11.0=pyhd8ed1ab_1
- icu=73... | [
"premailer/tests/test_premailer.py::Tests::test_base_url_with_path",
"premailer/tests/test_premailer.py::Tests::test_links_without_protocol"
] | [] | [
"premailer/tests/test_premailer.py::Tests::test_apple_newsletter_example",
"premailer/tests/test_premailer.py::Tests::test_base_url_fixer",
"premailer/tests/test_premailer.py::Tests::test_basic_html",
"premailer/tests/test_premailer.py::Tests::test_basic_html_shortcut_function",
"premailer/tests/test_premai... | [] | BSD 3-Clause "New" or "Revised" License | 129 | 467 | [
"premailer/premailer.py"
] |
typesafehub__conductr-cli-57 | 357be15356b14f09069cf542e8a4765edd6a0d0a | 2015-05-13 17:22:23 | 357be15356b14f09069cf542e8a4765edd6a0d0a | diff --git a/conductr_cli/conduct_load.py b/conductr_cli/conduct_load.py
index 38bc3d8..982965d 100644
--- a/conductr_cli/conduct_load.py
+++ b/conductr_cli/conduct_load.py
@@ -19,11 +19,14 @@ def load(args):
"""`conduct load` command"""
print('Retrieving bundle...')
- bundle_file, bundle_headers = urlre... | Unable to load bundle from https
ConductR RC1, CLI 0.15
Loading a bundle via https hangs. The cli must be terminated.
```bash
> conduct load https://github.com/typesafehub/project-doc/releases/download/1.0/project-doc-1.0-SNAPSHOT-e78ed07d4a895e14595a21aef1bf616b1b0e4d886f3265bc7b152acf93d259b5.zip
Retrieving ... | typesafehub/conductr-cli | diff --git a/conductr_cli/test/test_conduct_load.py b/conductr_cli/test/test_conduct_load.py
index b5503cb..93ee6f7 100644
--- a/conductr_cli/test/test_conduct_load.py
+++ b/conductr_cli/test/test_conduct_load.py
@@ -2,6 +2,7 @@ from unittest import TestCase
from conductr_cli.test.cli_test_case import CliTestCase, cre... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_hyperlinks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 3
},
"num_modified_files": 1
} | 0.15 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"nose",
"flake8",
"pep8-naming",
"git+https://github.com/zheller/flake8-quotes#aef86c4f8388e790332757e5921047ad53160a75",
... | argcomplete==3.6.1
certifi==2025.1.31
charset-normalizer==3.4.1
-e git+https://github.com/typesafehub/conductr-cli.git@357be15356b14f09069cf542e8a4765edd6a0d0a#egg=conductr_cli
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
flake8==7.2.0
flake8-quotes @ git+https://github.com/zheller/flake8-quotes@e75... | name: conductr-cli
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- exceptiongroup=1.2.0=py39h06a4308_0
- iniconfig=1.1.1=pyhd3eb1b0_0
... | [
"conductr_cli/test/test_conduct_load.py::TestConductLoadCommand::test_failure",
"conductr_cli/test/test_conduct_load.py::TestConductLoadCommand::test_failure_invalid_address",
"conductr_cli/test/test_conduct_load.py::TestConductLoadCommand::test_success",
"conductr_cli/test/test_conduct_load.py::TestConductLo... | [] | [
"conductr_cli/test/test_conduct_load.py::TestConductLoadCommand::test_failure_no_bundle",
"conductr_cli/test/test_conduct_load.py::TestConductLoadCommand::test_failure_no_configuration",
"conductr_cli/test/test_conduct_load.py::TestConductLoadCommand::test_failure_no_disk_space",
"conductr_cli/test/test_condu... | [] | Apache License 2.0 | 135 | 546 | [
"conductr_cli/conduct_load.py"
] | |
pysmt__pysmt-114 | 4fd83af49e7784a874f57620809404d530929366 | 2015-05-17 17:12:04 | 689cc79ff2731837903b14daa266afc99b4feb21 | diff --git a/pysmt/simplifier.py b/pysmt/simplifier.py
index 418bc0d..3303577 100644
--- a/pysmt/simplifier.py
+++ b/pysmt/simplifier.py
@@ -445,7 +445,7 @@ class Simplifier(walkers.DagWalker):
res = args[0].bv_unsigned_value() // args[1].bv_unsigned_value()
res = res % 2**formula.bv_w... | IdentityDagWalker lacks BV support | pysmt/pysmt | diff --git a/pysmt/test/test_walkers.py b/pysmt/test/test_walkers.py
index 22a96c7..6defb39 100644
--- a/pysmt/test/test_walkers.py
+++ b/pysmt/test/test_walkers.py
@@ -25,6 +25,7 @@ from pysmt.typing import INT, BOOL, REAL, FunctionType
from pysmt.walkers import TreeWalker, DagWalker, IdentityDagWalker
from pysmt.te... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_many_modified_files",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 3,
"test_score": 0
},
"num_modified_files"... | 0.3 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"nose",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
... | exceptiongroup==1.2.2
iniconfig==2.1.0
nose==1.3.7
packaging==24.2
pluggy==1.5.0
-e git+https://github.com/pysmt/pysmt.git@4fd83af49e7784a874f57620809404d530929366#egg=PySMT
pytest==8.3.5
six==1.17.0
tomli==2.2.1
| name: pysmt
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=11.... | [
"pysmt/test/test_walkers.py::TestWalkers::test_identity_dag_walker"
] | [] | [
"pysmt/test/test_walkers.py::TestWalkers::test_identity_walker_simple",
"pysmt/test/test_walkers.py::TestWalkers::test_iterative_get_free_variables",
"pysmt/test/test_walkers.py::TestWalkers::test_subst",
"pysmt/test/test_walkers.py::TestWalkers::test_substituter_conditions",
"pysmt/test/test_walkers.py::Te... | [] | Apache License 2.0 | 142 | 2,449 | [
"pysmt/simplifier.py",
"pysmt/walkers/identitydag.py"
] | |
pre-commit__pre-commit-231 | 9515ca06378d74f1e4f8013db2b5230c1f15edaa | 2015-05-18 19:48:14 | 9515ca06378d74f1e4f8013db2b5230c1f15edaa | asottile: @Lucas-C look correct?
coveralls:
[](https://coveralls.io/builds/2591860)
Coverage decreased (-0.04%) to 99.96% when pulling **b140f92cd7e20368b27d19ea01227402e71c294a on no_defaults_in_config_227** into **9515ca06378d74f1e4f8013db2b5230c1f15edaa ... | diff --git a/pre_commit/clientlib/validate_config.py b/pre_commit/clientlib/validate_config.py
index bdd0e2c..e4a90a6 100644
--- a/pre_commit/clientlib/validate_config.py
+++ b/pre_commit/clientlib/validate_config.py
@@ -33,7 +33,7 @@ CONFIG_JSON_SCHEMA = {
'properties': {
... | Bug: base manifest value for 'exclude' is always ignored
I stumbled upon this bug while working on #226: the culprit is [`Repository.hooks`](https://github.com/pre-commit/pre-commit/blob/master/pre_commit/repository.py#L48).
A quick fix for this would be to simply remove the default value from `pre_commit/clientlib/... | pre-commit/pre-commit | diff --git a/tests/clientlib/validate_config_test.py b/tests/clientlib/validate_config_test.py
index c507f28..b474f1b 100644
--- a/tests/clientlib/validate_config_test.py
+++ b/tests/clientlib/validate_config_test.py
@@ -174,3 +174,23 @@ def test_config_with_local_hooks_definition_passes(config_obj):
jsonschema.va... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_many_modified_files",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 0
},
"num_modified_files": 2
} | 0.4 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.5",
"reqs_path... | aspy.yaml==1.3.0
astroid==1.3.2
attrs==22.2.0
cached-property==1.5.2
certifi==2021.5.30
coverage==6.2
distlib==0.3.9
filelock==3.4.1
flake8==5.0.4
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
jsonschema==3.2.0
logilab-common==1.9.7
mccabe==0.7.0
mock==5.2.0
mypy-extensions==1.0.0
nodeenv==1.6.0... | name: pre-commit
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
-... | [
"tests/clientlib/validate_config_test.py::test_does_not_contain_defaults",
"tests/clientlib/validate_manifest_test.py::test_additional_manifest_failing[obj5]"
] | [
"tests/clientlib/validate_config_test.py::test_run[input0-0]",
"tests/clientlib/validate_config_test.py::test_run[input1-0]",
"tests/clientlib/validate_manifest_test.py::test_run[input0-0]",
"tests/clientlib/validate_manifest_test.py::test_run[input1-0]",
"tests/manifest_test.py::test_manifest_contents",
... | [
"tests/clientlib/validate_config_test.py::test_run[input2-1]",
"tests/clientlib/validate_config_test.py::test_run[input3-1]",
"tests/clientlib/validate_config_test.py::test_run[input4-1]",
"tests/clientlib/validate_config_test.py::test_is_valid_according_to_schema[config_obj0-False]",
"tests/clientlib/valid... | [] | MIT License | 143 | 565 | [
"pre_commit/clientlib/validate_config.py",
"pre_commit/clientlib/validate_manifest.py"
] |
pre-commit__pre-commit-235 | b4bc5e47423635e187d50d8730584d2c8ff06772 | 2015-05-24 03:03:11 | 5791d84236d82f8aa8609c3ff1c69a991d8c6607 | diff --git a/pre_commit/commands/install_uninstall.py b/pre_commit/commands/install_uninstall.py
index c84d29b..47c9484 100644
--- a/pre_commit/commands/install_uninstall.py
+++ b/pre_commit/commands/install_uninstall.py
@@ -48,6 +48,9 @@ def install(runner, overwrite=False, hooks=False, hook_type='pre-commit'):
h... | Some versions of git don't create .git/hooks directory
Noticed here: https://github.com/victorlin/bugbuzz-python/pull/1#issuecomment-104971132 | pre-commit/pre-commit | diff --git a/tests/commands/install_uninstall_test.py b/tests/commands/install_uninstall_test.py
index 9e1806e..ca82c06 100644
--- a/tests/commands/install_uninstall_test.py
+++ b/tests/commands/install_uninstall_test.py
@@ -5,6 +5,7 @@ import io
import os
import os.path
import re
+import shutil
import subprocess
... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_hyperlinks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 2
},
"num_modified_files": 1
} | 0.5 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.5",
"reqs_path... | aspy.yaml==1.3.0
astroid==1.3.2
attrs==22.2.0
cached-property==1.5.2
certifi==2021.5.30
coverage==6.2
distlib==0.3.9
filelock==3.4.1
flake8==5.0.4
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
jsonschema==3.2.0
logilab-common==1.9.7
mccabe==0.7.0
mock==5.2.0
mypy-extensions==1.0.0
nodeenv==1.6.0... | name: pre-commit
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
-... | [
"tests/commands/install_uninstall_test.py::test_install_hooks_directory_not_present"
] | [
"tests/commands/install_uninstall_test.py::test_install_pre_commit_and_run",
"tests/commands/install_uninstall_test.py::test_install_idempotent",
"tests/commands/install_uninstall_test.py::test_environment_not_sourced",
"tests/commands/install_uninstall_test.py::test_failing_hooks_returns_nonzero",
"tests/c... | [
"tests/commands/install_uninstall_test.py::test_is_not_our_pre_commit",
"tests/commands/install_uninstall_test.py::test_is_our_pre_commit",
"tests/commands/install_uninstall_test.py::test_is_not_previous_pre_commit",
"tests/commands/install_uninstall_test.py::test_is_also_not_previous_pre_commit",
"tests/co... | [] | MIT License | 148 | 176 | [
"pre_commit/commands/install_uninstall.py"
] | |
nose-devs__nose2-245 | bf9945309d5118ad4723619452c486593964d1b8 | 2015-05-27 19:59:26 | bbf5897eb1aa224100e86ba594042e4399fd2f5f | landscape-bot: [](https://landscape.io/diff/163690)
Repository health decreased by 0.00% when pulling **[28cda3a](https://github.com/dlax/nose2/commit/28cda3abf4d51b58fd686b0b6c0ff5c46c38f51b) on dlax:generator-exception** into **[bf99453](https:... | diff --git a/nose2/loader.py b/nose2/loader.py
index 2778280..394899f 100644
--- a/nose2/loader.py
+++ b/nose2/loader.py
@@ -7,6 +7,8 @@
import logging
import traceback
+import six
+
from nose2 import events
from nose2.compat import unittest
@@ -114,7 +116,11 @@ class PluggableTestLoader(object):
def _ma... | Loader errors throw away tracebacks and exception detail
For instance if a generator test throws an AttributeError, the details of the attribute error are lost and the user only sees "AttributeError" -- not very helpful. | nose-devs/nose2 | diff --git a/nose2/tests/unit/test_loader.py b/nose2/tests/unit/test_loader.py
index 24114e5..8dc152c 100644
--- a/nose2/tests/unit/test_loader.py
+++ b/nose2/tests/unit/test_loader.py
@@ -8,6 +8,21 @@ class TestPluggableTestLoader(TestCase):
self.session = session.Session()
self.loader = loader.Plugg... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_pytest_match_arg"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 2
},
"num_modified_files": 1
} | 0.5 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"nose2",
"pytest"
],
"pre_install": [],
"python": "3.7",
"reqs_path": [
"requirements.txt"
],
"test_cmd":... | certifi @ file:///croot/certifi_1671487769961/work/certifi
cov-core==1.15.0
coverage==7.2.7
exceptiongroup==1.2.2
importlib-metadata==6.7.0
iniconfig==2.0.0
-e git+https://github.com/nose-devs/nose2.git@bf9945309d5118ad4723619452c486593964d1b8#egg=nose2
packaging==24.0
pluggy==1.2.0
pytest==7.4.4
six==1.17.0
tomli==2.0... | name: nose2
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2022.12.7=py37h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libf... | [
"nose2/tests/unit/test_loader.py::TestPluggableTestLoader::test_failed_load_tests_exc_info"
] | [] | [
"nose2/tests/unit/test_loader.py::TestPluggableTestLoader::test_failed_load_tests_exception",
"nose2/tests/unit/test_loader.py::TestPluggableTestLoader::test_load_from_module_calls_hook",
"nose2/tests/unit/test_loader.py::TestPluggableTestLoader::test_load_from_name_calls_hook",
"nose2/tests/unit/test_loader.... | [] | BSD | 152 | 215 | [
"nose2/loader.py"
] |
eve-val__evelink-212 | db9e7bfeef9478a047f4f7db4f88324e185e4873 | 2015-06-01 04:28:15 | 4061903e92787ce22eddb75b3776c407fb70837b | diff --git a/evelink/char.py b/evelink/char.py
index 609d76d..0514dc6 100644
--- a/evelink/char.py
+++ b/evelink/char.py
@@ -137,7 +137,7 @@ class Char(object):
"""Get a list of PI routing entries for a character's planet."""
return api.APIResult(parse_planetary_routes(api_result.result), api_result.t... | kills() uses KillLog rather than KillMails
KillLog is a long cache endpoint, so you can only query it once.
KillMails isn't a long cache, so you can query it as often as you want. | eve-val/evelink | diff --git a/tests/test_char.py b/tests/test_char.py
index ca37666..64e3631 100644
--- a/tests/test_char.py
+++ b/tests/test_char.py
@@ -291,6 +291,23 @@ class CharTestCase(APITestCase):
self.assertEqual(current, 12345)
self.assertEqual(expires, 67890)
+ self.assertEqual(result, mock.sentinel... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_many_modified_files",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 2
},
"num_modified_files"... | 0.6 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"mock",
"nose",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": ... | certifi==2025.1.31
charset-normalizer==3.4.1
-e git+https://github.com/eve-val/evelink.git@db9e7bfeef9478a047f4f7db4f88324e185e4873#egg=EVELink
exceptiongroup==1.2.2
idna==3.10
iniconfig==2.1.0
mock==1.0b1
nose==1.1.2
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
requests==2.32.3
six==1.17.0
tomli==2.2.1
urllib3==2.3.0
| name: evelink
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=1... | [
"tests/test_char.py::CharTestCase::test_kill_log",
"tests/test_char.py::CharTestCase::test_kills",
"tests/test_char.py::CharTestCase::test_kills_paged",
"tests/test_corp.py::CorpTestCase::test_kill_log",
"tests/test_corp.py::CorpTestCase::test_kills"
] | [] | [
"tests/test_char.py::CharTestCase::test_assets",
"tests/test_char.py::CharTestCase::test_blueprints",
"tests/test_char.py::CharTestCase::test_calendar_attendees",
"tests/test_char.py::CharTestCase::test_calendar_events",
"tests/test_char.py::CharTestCase::test_character_sheet",
"tests/test_char.py::CharTe... | [] | MIT License | 155 | 749 | [
"evelink/char.py",
"evelink/corp.py"
] | |
pre-commit__pre-commit-239 | 1c46446427ab0dfa6293221426b855420533ef8d | 2015-06-02 19:44:23 | 5791d84236d82f8aa8609c3ff1c69a991d8c6607 | coveralls:
[](https://coveralls.io/builds/2711896)
Coverage decreased (-0.03%) to 99.97% when pulling **971060d4b9756a9d102e5bb3ee4d04027d35011c on Lucas-C:master** into **1c46446427ab0dfa6293221426b855420533ef8d on pre-commit:master**.
asottile: ++ thanks... | diff --git a/pre_commit/commands/autoupdate.py b/pre_commit/commands/autoupdate.py
index 1a24b09..9e1e79f 100644
--- a/pre_commit/commands/autoupdate.py
+++ b/pre_commit/commands/autoupdate.py
@@ -8,6 +8,7 @@ from aspy.yaml import ordered_load
import pre_commit.constants as C
from pre_commit.clientlib.validate_conf... | pre-commit autoupdate fails on `local` hooks repos
```
$ pre-commit autoupdate
Updating git@github.com:pre-commit/pre-commit-hooks...updating 9ce45609a92f648c87b42207410386fd69a5d1e5 -> cf550fcab3f12015f8676b8278b30e1a5bc10e70.
Updating git@github.com:pre-commit/pre-commit...updating 4352d45451296934bc17494073b82bca... | pre-commit/pre-commit | diff --git a/testing/fixtures.py b/testing/fixtures.py
index 1c0184a..820a72b 100644
--- a/testing/fixtures.py
+++ b/testing/fixtures.py
@@ -35,6 +35,19 @@ def make_repo(tmpdir_factory, repo_source):
return path
+def config_with_local_hooks():
+ return OrderedDict((
+ ('repo', 'local'),
+ ('ho... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_git_commit_hash",
"has_many_modified_files"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 3
},
"num_modified_files": 2
} | 0.5 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.5",
"reqs_path... | aspy.yaml==1.3.0
astroid==1.3.2
attrs==22.2.0
cached-property==1.5.2
certifi==2021.5.30
coverage==6.2
distlib==0.3.9
filelock==3.4.1
flake8==5.0.4
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
jsonschema==3.2.0
logilab-common==1.9.7
mccabe==0.7.0
mock==5.2.0
mypy-extensions==1.0.0
nodeenv==1.6.0... | name: pre-commit
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
-... | [
"tests/commands/autoupdate_test.py::test_autoupdate_local_hooks"
] | [
"tests/commands/autoupdate_test.py::test_up_to_date_repo",
"tests/commands/autoupdate_test.py::test_autoupdate_up_to_date_repo",
"tests/commands/autoupdate_test.py::test_out_of_date_repo",
"tests/commands/autoupdate_test.py::test_autoupdate_out_of_date_repo",
"tests/commands/autoupdate_test.py::test_hook_di... | [
"tests/repository_test.py::test_repo_url",
"tests/repository_test.py::test_sha",
"tests/repository_test.py::test_local_repository"
] | [] | MIT License | 156 | 379 | [
"pre_commit/commands/autoupdate.py",
"pre_commit/repository.py"
] |
pydoit__doit-58 | dcefd2159bca7fa80e236fc3fec91688a39ba7c4 | 2015-06-07 18:22:26 | e551006a0a5a93a197d413b663bd455061e3f74d | diff --git a/doit/cmd_run.py b/doit/cmd_run.py
index 8a3693a..50e34b9 100644
--- a/doit/cmd_run.py
+++ b/doit/cmd_run.py
@@ -116,6 +116,18 @@ opt_pdb = {
}
+# use ".*" as default regex for delayed tasks without explicitly specified regex
+opt_auto_delayed_regex = {
+ 'name': 'auto_delayed_regex',
+ 'shor... | specify target of a DelayedTask on command line
Since not all tasks are created before execution starts, it is required some special handling for target names of targets that have not been created yet.
See discussion on https://github.com/getnikola/nikola/issues/1562#issuecomment-70836094
General idea is that if ... | pydoit/doit | diff --git a/tests/test_control.py b/tests/test_control.py
index 4237acb..734b449 100644
--- a/tests/test_control.py
+++ b/tests/test_control.py
@@ -111,6 +111,43 @@ class TestTaskControlCmdOptions(object):
assert control.tasks['taskY:foo'].loader.basename == 'taskY'
assert control.tasks['taskY:foo'].... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_hyperlinks",
"has_many_modified_files",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 2
},
"num_modified_files": 5
} | 0.28 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[test]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "numpy>=1.10 pytest",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y libgeos-dev"
],
"python": "3.7",
... | attrs @ file:///croot/attrs_1668696182826/work
certifi @ file:///croot/certifi_1671487769961/work/certifi
-e git+https://github.com/pydoit/doit.git@dcefd2159bca7fa80e236fc3fec91688a39ba7c4#egg=doit
flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core
importlib-metadata @ file:///tmp/bui... | name: doit
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- attrs=22.1.0=py37h06a4308_0
- blas=1.0=openblas
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2022.12.7=py37h06... | [
"tests/test_control.py::TestTaskControlCmdOptions::test_filter_delayed_regex_single",
"tests/test_control.py::TestTaskControlCmdOptions::test_filter_delayed_regex_multiple",
"tests/test_control.py::TestTaskControlCmdOptions::test_filter_delayed_regex_auto"
] | [] | [
"tests/test_control.py::TestTaskControlInit::test_addTask",
"tests/test_control.py::TestTaskControlInit::test_targetDependency",
"tests/test_control.py::TestTaskControlInit::test_addTaskSameName",
"tests/test_control.py::TestTaskControlInit::test_addInvalidTask",
"tests/test_control.py::TestTaskControlInit:... | [] | MIT License | 160 | 1,838 | [
"doit/cmd_run.py",
"doit/control.py",
"doit/loader.py",
"doit/reporter.py",
"doit/task.py"
] | |
scieloorg__xylose-77 | 35ee660d381ec682445b2014aadc4b1fa96e414a | 2015-06-12 18:46:22 | c0be8f42edd0a64900280c871c76b856c2a191f7 | diff --git a/setup.py b/setup.py
index 0193a00..bb78b72 100755
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ except ImportError:
setup(
name="xylose",
- version='0.10b',
+ version='0.11b',
description="A SciELO library to abstract a JSON data structure that is a product of the ISIS2JSON conversion us... | Ajustar identificação de licença
A identificação de licença coleta atualmente apenas o tipo da licença, ex:
by, by-nc.....
É importante também considerar a versão ex:
by/3.0
by/4.0
by-nc/3.0 | scieloorg/xylose | diff --git a/tests/test_document.py b/tests/test_document.py
index 745859f..db84c57 100644
--- a/tests/test_document.py
+++ b/tests/test_document.py
@@ -351,13 +351,13 @@ class JournalTests(unittest.TestCase):
journal = Journal(self.fulldoc['title'])
- self.assertEqual(journal.permissions['id'], 'by... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_many_modified_files",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 0
},
"num_modified_files"... | 0.10 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "",
"pip_packages": [
"nose",
"coverage",
"mocker",
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest ... | coverage==7.8.0
exceptiongroup==1.2.2
iniconfig==2.1.0
mocker==1.1.1
nose==1.3.7
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
tomli==2.2.1
-e git+https://github.com/scieloorg/xylose.git@35ee660d381ec682445b2014aadc4b1fa96e414a#egg=xylose
| name: xylose
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=11... | [
"tests/test_document.py::JournalTests::test_permission_id",
"tests/test_document.py::JournalTests::test_permission_t1"
] | [] | [
"tests/test_document.py::ToolsTests::test_get_language_iso639_1_defined",
"tests/test_document.py::ToolsTests::test_get_language_iso639_1_undefined",
"tests/test_document.py::ToolsTests::test_get_language_iso639_2_defined",
"tests/test_document.py::ToolsTests::test_get_language_iso639_2_undefined",
"tests/t... | [] | BSD 2-Clause "Simplified" License | 166 | 492 | [
"setup.py",
"xylose/scielodocument.py"
] | |
praw-dev__praw-426 | eb91d191eb09d94df144589ba6561f387a3a2922 | 2015-06-15 14:08:27 | eb91d191eb09d94df144589ba6561f387a3a2922 | diff --git a/praw/objects.py b/praw/objects.py
index df96fbf1..f4014f10 100755
--- a/praw/objects.py
+++ b/praw/objects.py
@@ -75,7 +75,7 @@ class RedditContentObject(object):
def __getattr__(self, attr):
"""Return the value of the `attr` attribute."""
- if not self.has_fetched:
+ if attr ... | Can't unpickle Comment objects (maximum recursion depth exceeded)
Here's the stack trace:
```pytb
>>> import pickle
>>> import praw
>>> r = praw.Reddit('test')
>>> comment = r.get_info(thing_id='t1_cs6woop')
>>> pickled = pickle.dumps(comment)
>>> pickle.loads(pickled)
Traceback (most recent call last):
Fi... | praw-dev/praw | diff --git a/tests/cassettes/test_unpickle_comment.json b/tests/cassettes/test_unpickle_comment.json
new file mode 100644
index 00000000..ce5e4d79
--- /dev/null
+++ b/tests/cassettes/test_unpickle_comment.json
@@ -0,0 +1,1 @@
+{"recorded_with": "betamax/0.4.2", "http_interactions": [{"recorded_at": "2015-06-15T13:50:36... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 0
},
"num_modified_files": 1
} | 2.1 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"flake8",
"betamax",
"betamax-matchers",
"mock",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-g... | betamax==0.9.0
betamax-matchers==0.4.0
certifi==2025.1.31
charset-normalizer==3.4.1
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
flake8==7.2.0
idna==3.10
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
mccabe==0.7.0
mock==5.2.0
packaging @ file:///croot/packaging_173447211720... | name: praw
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- exceptiongroup=1.2.0=py39h06a4308_0
- iniconfig=1.1.1=pyhd3eb1b0_0
- ld_imp... | [
"tests/test_comments.py::CommentTest::test_unpickle_comment"
] | [] | [
"tests/test_comments.py::CommentTest::test_add_comment",
"tests/test_comments.py::CommentTest::test_add_reply",
"tests/test_comments.py::CommentTest::test_edit",
"tests/test_comments.py::CommentTest::test_front_page_comment_replies_are_none",
"tests/test_comments.py::CommentTest::test_get_comments_permalink... | [] | BSD 2-Clause "Simplified" License | 168 | 163 | [
"praw/objects.py"
] | |
mkdocs__mkdocs-668 | 98814de505c9d8f1849292372eff1c5ae492261c | 2015-06-27 22:50:14 | 3dfd95deae8379473714b346e61c1d63e957bb98 | landscape-bot: [](https://landscape.io/diff/187394)
Code quality remained the same when pulling **[a5ab2e1](https://github.com/d0ugal/mkdocs/commit/a5ab2e12e22a199617fcffd129d4762bfc6b712b) on d0ugal:symlink** into **[98814de](https://github.com/... | diff --git a/mkdocs/config/config_options.py b/mkdocs/config/config_options.py
index 38a61442..28ee62c8 100644
--- a/mkdocs/config/config_options.py
+++ b/mkdocs/config/config_options.py
@@ -332,6 +332,13 @@ class Extras(OptionallyRequired):
dirs.sort()
for filename in sorted(filenames):
... | Ignore broken symlinks in mkdocs serve.
What I am experiencing:
* When I am editing `index.md` in Emacs, Emacs creates files like:
```
➜ docs git:(master) ✗ ls -al .#*
lrwxrwxrwx 1 paulproteus paulproteus 36 Jun 17 17:24 .#index.md -> paulproteus@charkha.27783:1434311808
```
* These files are Emacs' way ... | mkdocs/mkdocs | diff --git a/mkdocs/tests/config/config_options_tests.py b/mkdocs/tests/config/config_options_tests.py
index b1e7bff7..d16f675b 100644
--- a/mkdocs/tests/config/config_options_tests.py
+++ b/mkdocs/tests/config/config_options_tests.py
@@ -1,6 +1,7 @@
from __future__ import unicode_literals
import os
+import tempfil... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_hyperlinks",
"has_pytest_match_arg"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 2
},
"num_modified_files": 1
} | 0.14 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path": [
... | click==8.1.8
exceptiongroup==1.2.2
ghp-import==2.1.0
importlib_metadata==8.6.1
iniconfig==2.1.0
Jinja2==3.1.6
livereload==2.7.1
Markdown==3.7
MarkupSafe==3.0.2
mergedeep==1.3.4
-e git+https://github.com/mkdocs/mkdocs.git@98814de505c9d8f1849292372eff1c5ae492261c#egg=mkdocs
mkdocs-bootstrap==0.2.0
mkdocs-bootswatch==0.5.... | name: mkdocs
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=11... | [
"mkdocs/tests/config/config_options_tests.py::ExtrasTest::test_talk"
] | [] | [
"mkdocs/tests/config/config_options_tests.py::OptionallyRequiredTest::test_default",
"mkdocs/tests/config/config_options_tests.py::OptionallyRequiredTest::test_empty",
"mkdocs/tests/config/config_options_tests.py::OptionallyRequiredTest::test_replace_default",
"mkdocs/tests/config/config_options_tests.py::Opt... | [] | BSD 2-Clause "Simplified" License | 176 | 203 | [
"mkdocs/config/config_options.py"
] |
praw-dev__praw-441 | c64e3f71841e8f0c996d42eb5dc9a91fc0c25dcb | 2015-07-02 19:21:13 | c64e3f71841e8f0c996d42eb5dc9a91fc0c25dcb | diff --git a/praw/objects.py b/praw/objects.py
index 4640a73a..505438ae 100755
--- a/praw/objects.py
+++ b/praw/objects.py
@@ -81,10 +81,26 @@ class RedditContentObject(object):
raise AttributeError('\'%s\' has no attribute \'%s\'' % (type(self),
... | Pickling Comment objects is slow
Test case:
```python
import pickle, praw
r = praw.Reddit('test')
comment = r.get_info(thing_id='t1_aaaa')
pickle.dumps(comment)
```
Looking at Wireshark, it seems to be caused by an HTTP request.
Good news: implementing `def __getstate__(self): return self.__dict__` in `pr... | praw-dev/praw | diff --git a/tests/cassettes/test_pickling_v0.json b/tests/cassettes/test_pickling_v0.json
new file mode 100644
index 00000000..784fdddf
--- /dev/null
+++ b/tests/cassettes/test_pickling_v0.json
@@ -0,0 +1,1 @@
+{"recorded_with": "betamax/0.4.2", "http_interactions": [{"response": {"body": {"base64_string": "H4sIAAAAAA... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_hyperlinks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 1
},
"num_modified_files": 1
} | 3.0 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"betamax>=0.4.2",
"betamax-matchers>=0.2.0",
"flake8",
"mock>=1.0.0",
"pytest",
"pytest-cov",
"pytest-xdist",
... | betamax==0.9.0
betamax-matchers==0.4.0
certifi==2025.1.31
charset-normalizer==3.4.1
coverage==7.8.0
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
execnet==2.1.1
flake8==7.2.0
idna==3.10
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
mccabe==0.7.0
mock==5.2.0
packaging @ file:... | name: praw
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- exceptiongroup=1.2.0=py39h06a4308_0
- iniconfig=1.1.1=pyhd3eb1b0_0
- ld_imp... | [
"tests/test_comments.py::CommentTest::test_pickling_v0",
"tests/test_comments.py::CommentTest::test_pickling_v1",
"tests/test_comments.py::CommentTest::test_pickling_v2"
] | [] | [
"tests/test_comments.py::CommentTest::test_add_comment",
"tests/test_comments.py::CommentTest::test_add_reply",
"tests/test_comments.py::CommentTest::test_edit",
"tests/test_comments.py::CommentTest::test_front_page_comment_replies_are_none",
"tests/test_comments.py::CommentTest::test_get_comments_permalink... | [] | BSD 2-Clause "Simplified" License | 180 | 278 | [
"praw/objects.py"
] | |
mattboyer__git-guilt-34 | 58f92d3e37a115596a890ad3e2fe674636c682ee | 2015-07-02 20:15:01 | 58f92d3e37a115596a890ad3e2fe674636c682ee | diff --git a/git_guilt/guilt.py b/git_guilt/guilt.py
index 23a748a..3b400c5 100644
--- a/git_guilt/guilt.py
+++ b/git_guilt/guilt.py
@@ -78,13 +78,14 @@ class GitRunner(object):
raise GitError("Malformed Git version")
raw_version = self.run_git(GitRunner._version_args)
- if not (raw_v... | Git version detection fails on MacOS
Here's what a friendly user had to report:
> my MACBOOK running latest 10.10.3 comes preinstalled with
```
Laurences-MacBook-Pro:security Laurence$ git version
git version 2.3.2 (Apple Git-55)
```
The parsing code that consumes the output of `git version` should be made mo... | mattboyer/git-guilt | diff --git a/test/test_guilt.py b/test/test_guilt.py
index 1433e33..3abda65 100644
--- a/test/test_guilt.py
+++ b/test/test_guilt.py
@@ -306,6 +306,27 @@ class GitRunnerTestCase(TestCase):
)
mock_process.reset_mock()
+ @patch('git_guilt.guilt.subprocess.Popen')
+ def test_mac_version(self, moc... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 0
},
"num_modified_files": 1
} | 0.30 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "... | alabaster==0.7.13
astroid==2.11.7
attrs==22.2.0
Babel==2.11.0
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
coveralls==3.3.1
dill==0.3.4
docopt==0.6.2
docutils==0.18.1
-e git+https://github.com/mattboyer/git-guilt.git@58f92d3e37a115596a890ad3e2fe674636c682ee#egg=git_guilt
idna==3.10
imagesize==1.4.1
impor... | name: git-guilt
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- ... | [
"test/test_guilt.py::GitRunnerTestCase::test_mac_version"
] | [] | [
"test/test_guilt.py::DeltaTestCase::test_comparison",
"test/test_guilt.py::DeltaTestCase::test_eq",
"test/test_guilt.py::DeltaTestCase::test_repr",
"test/test_guilt.py::BinaryDeltaTestCase::test_comparison",
"test/test_guilt.py::BinaryDeltaTestCase::test_eq",
"test/test_guilt.py::BinaryDeltaTestCase::test... | [] | null | 181 | 283 | [
"git_guilt/guilt.py"
] | |
marshmallow-code__marshmallow-234 | 4e922445601219dc6bfe014d36b3c61d9528e2ad | 2015-07-07 10:29:53 | b8ad05b5342914e857c442d75e8abe9ea8f867fb | diff --git a/marshmallow/schema.py b/marshmallow/schema.py
index 4de0a123..7fe1289f 100644
--- a/marshmallow/schema.py
+++ b/marshmallow/schema.py
@@ -699,8 +699,8 @@ class BaseSchema(base.SchemaABC):
"""
if obj and many:
try: # Homogeneous collection
- obj_prototype = obj... | fields.Nested does not support sets
Currently `fields.Nested` assumes that the value of the field is a list - https://github.com/marshmallow-code/marshmallow/blob/dev/marshmallow/schema.py#L702 - and fails for `set` during serialization | marshmallow-code/marshmallow | diff --git a/tests/test_schema.py b/tests/test_schema.py
index 29dada19..5d0dbbdf 100644
--- a/tests/test_schema.py
+++ b/tests/test_schema.py
@@ -3,6 +3,7 @@
import json
import random
+from collections import namedtuple
import pytest
@@ -687,6 +688,21 @@ def test_nested_only_and_exclude():
assert 'bar' n... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 0
},
"num_modified_files": 1
} | 2.0 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
"dev-requirements.txt",
"docs/requireme... | alabaster @ git+https://github.com/sloria/alabaster.git@667b1b676c6bf7226db057f098ec826d84d3ae40
babel==2.17.0
cachetools==5.5.2
certifi==2025.1.31
chardet==5.2.0
charset-normalizer==3.4.1
colorama==0.4.6
distlib==0.3.9
docutils==0.20.1
exceptiongroup==1.2.2
filelock==3.18.0
flake8==2.4.0
idna==3.10
imagesize==1.4.1
im... | name: marshmallow
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-... | [
"tests/test_schema.py::test_nested_with_sets"
] | [] | [
"tests/test_schema.py::test_serializing_basic_object[UserSchema]",
"tests/test_schema.py::test_serializing_basic_object[UserMetaSchema]",
"tests/test_schema.py::test_serializer_dump",
"tests/test_schema.py::test_dump_returns_dict_of_errors",
"tests/test_schema.py::test_dump_with_strict_mode_raises_error[Use... | [] | MIT License | 189 | 163 | [
"marshmallow/schema.py"
] | |
cdent__gabbi-56 | f2a32ad31bc205580834f009f05586a533f390f7 | 2015-07-16 05:25:12 | 081a75f5f0ddfdc31c4bab62db2f084a50c9ee99 | diff --git a/gabbi/handlers.py b/gabbi/handlers.py
index f754d94..d39a987 100644
--- a/gabbi/handlers.py
+++ b/gabbi/handlers.py
@@ -120,6 +120,8 @@ class HeadersResponseHandler(ResponseHandler):
test_key_value = {}
def action(self, test, header, value):
+ header = header.lower() # case-insensitive ... | case-insensitive headers
As far as I can tell, gabbi enforces lowercase headers:
```yaml
response_headers:
content-type: text/html; charset=utf-8
```
```
... ✓ front page returns HTML
```
vs.
```yaml
response_headers:
Content-Type: text/html; charset=utf-8
```
```
... E front page return... | cdent/gabbi | diff --git a/gabbi/tests/test_handlers.py b/gabbi/tests/test_handlers.py
index b18e8ec..b647e80 100644
--- a/gabbi/tests/test_handlers.py
+++ b/gabbi/tests/test_handlers.py
@@ -94,10 +94,16 @@ class HandlersTest(unittest.TestCase):
def test_response_headers(self):
handler = handlers.HeadersResponseHandl... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 0
},
"num_modified_files": 1
} | 1.1 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"tox",
"pytest"
],
"pre_install": [
"pip install tox"
],
"python": "3.4",
"reqs_path": [
"requirements.... | attrs==22.2.0
certifi==2021.5.30
decorator==5.1.1
distlib==0.3.9
filelock==3.4.1
fixtures==4.0.1
-e git+https://github.com/cdent/gabbi.git@f2a32ad31bc205580834f009f05586a533f390f7#egg=gabbi
httplib2==0.22.0
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
jsonpath-rw==1.4.0
packaging==21.3
pbr==6.1... | name: gabbi
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libf... | [
"gabbi/tests/test_handlers.py::HandlersTest::test_response_headers"
] | [] | [
"gabbi/tests/test_handlers.py::HandlersTest::test_response_headers_fail_data",
"gabbi/tests/test_handlers.py::HandlersTest::test_response_headers_fail_header",
"gabbi/tests/test_handlers.py::HandlersTest::test_response_headers_regex",
"gabbi/tests/test_handlers.py::HandlersTest::test_response_json_paths",
"... | [] | Apache License 2.0 | 194 | 134 | [
"gabbi/handlers.py"
] | |
tailhook__injections-6 | 680d3403f0086e0a94d69604bba0bfcbd9596014 | 2015-07-16 17:37:03 | 680d3403f0086e0a94d69604bba0bfcbd9596014 | diff --git a/injections/__init__.py b/injections/__init__.py
index 47bdc0d..dce8a9e 100644
--- a/injections/__init__.py
+++ b/injections/__init__.py
@@ -1,6 +1,7 @@
from .core import (
Container,
Dependency,
+ MissingDependencyError,
has,
depends,
propagate,
@@ -11,6 +12,7 @@ from .core imp... | Use custom exception for injecting container into object with unknown dependencies
I have a class
```
@has
class A:
redis = depends(Redis)
loop = depends(AbstractLoop)
```
When I try to initialize it from container with missing dependencies I have a `KeyError`.
```
inj = Container()
inj['redis'] = c... | tailhook/injections | diff --git a/injections/test_core.py b/injections/test_core.py
index 2e9aabe..06006cd 100644
--- a/injections/test_core.py
+++ b/injections/test_core.py
@@ -126,3 +126,21 @@ class TestCore(TestCase):
c['name'] = 1
with self.assertRaises(TypeError):
c.inject(self.Consumer())
+
+ def tes... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_many_modified_files",
"has_many_hunks",
"has_pytest_match_arg"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 3
},
"num_modified_files": 3
} | 0.2 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"nose",
"pytest"
],
"pre_install": null,
"python": "3.4",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=lin... | attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
-e git+https://github.com/tailhook/injections.git@680d3403f0086e0a94d69604bba0bfcb... | name: injections
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- attrs=21.4.0=pyhd3eb1b0_0
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- import... | [
"injections/test_core.py::TestCore::test_missing_dependency"
] | [] | [
"injections/test_core.py::TestCore::test_clone",
"injections/test_core.py::TestCore::test_cyclic",
"injections/test_core.py::TestCore::test_interconnect",
"injections/test_core.py::TestCore::test_larger_cycle",
"injections/test_core.py::TestCore::test_ok",
"injections/test_core.py::TestCore::test_wrong_ty... | [] | MIT License | 196 | 483 | [
"injections/__init__.py",
"injections/core.py",
"setup.py"
] | |
softlayer__softlayer-python-602 | 1195b2020ef6efc40462d59eb079f26e5f39a6d8 | 2015-08-10 15:51:18 | 1195b2020ef6efc40462d59eb079f26e5f39a6d8 | diff --git a/SoftLayer/CLI/server/detail.py b/SoftLayer/CLI/server/detail.py
index 1b9d588e..9fc76c5d 100644
--- a/SoftLayer/CLI/server/detail.py
+++ b/SoftLayer/CLI/server/detail.py
@@ -62,14 +62,11 @@ def cli(env, identifier, passwords, price):
table.add_row(
['created', result['provisionDate'] or forma... | got an unexpected keyword argument 'tags'
Hi there
I came across an error when creating VS and providing tags either in the form of -g or --tag
C:\Python34\Scripts>slcli vs create --test --hostname OS --domain vm.local --cpu 1 --memory 1024 --os WIN_LATEST_64 --datacenter lon02 --tag 1234
An unexpected error has... | softlayer/softlayer-python | diff --git a/SoftLayer/tests/managers/vs_tests.py b/SoftLayer/tests/managers/vs_tests.py
index 3a179b46..9bdb3459 100644
--- a/SoftLayer/tests/managers/vs_tests.py
+++ b/SoftLayer/tests/managers/vs_tests.py
@@ -141,7 +141,7 @@ def test_reload_instance(self):
def test_create_verify(self, create_dict):
crea... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_many_modified_files"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 2
},
"num_modified_files": 3
} | 4.0 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.6",
"reqs_path... | alabaster==0.7.13
attrs==22.2.0
Babel==2.11.0
certifi==2021.5.30
charset-normalizer==2.0.12
click==8.0.4
coverage==6.2
distlib==0.3.9
docutils==0.18.1
filelock==3.4.1
fixtures==4.0.1
idna==3.10
imagesize==1.4.1
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
Jinja2==3.0.3
MarkupSafe==2.0.1
mock==5... | name: softlayer-python
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557... | [
"SoftLayer/tests/managers/vs_tests.py::VSTests::test_create_verify"
] | [] | [
"SoftLayer/tests/managers/vs_tests.py::VSTests::test_cancel_instance",
"SoftLayer/tests/managers/vs_tests.py::VSTests::test_capture_additional_disks",
"SoftLayer/tests/managers/vs_tests.py::VSTests::test_captures",
"SoftLayer/tests/managers/vs_tests.py::VSTests::test_change_port_speed_private",
"SoftLayer/t... | [] | MIT License | 209 | 698 | [
"SoftLayer/CLI/server/detail.py",
"SoftLayer/CLI/virt/detail.py",
"SoftLayer/managers/vs.py"
] | |
tobgu__pyrsistent-57 | d35ea98728473bd070ff1e6ac5304e4e12ea816c | 2015-09-14 21:17:17 | 87706acb8297805b56bcc2c0f89ffa73eb1de0d1 | diff --git a/pyrsistent/_field_common.py b/pyrsistent/_field_common.py
index 6934978..04231c0 100644
--- a/pyrsistent/_field_common.py
+++ b/pyrsistent/_field_common.py
@@ -2,7 +2,8 @@ from collections import Iterable
import six
from pyrsistent._checked_types import (
CheckedType, CheckedPSet, CheckedPMap, Check... | p*_field prevents pickle from working on a PClass
I would never use pickle in production, but as I was trying to write some strawman example storage code for an example app, I discovered that while I could pickle basic PClasses, I can't pickle any that use pmap_field or pvector_field (and probably others that have simi... | tobgu/pyrsistent | diff --git a/tests/class_test.py b/tests/class_test.py
index f7254b4..0caddba 100644
--- a/tests/class_test.py
+++ b/tests/class_test.py
@@ -2,7 +2,9 @@ from collections import Hashable
import math
import pickle
import pytest
-from pyrsistent import field, InvariantException, PClass, optional, CheckedPVector
+from p... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 1
},
"num_modified_files": 1
} | 0.11 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",... | alabaster==0.7.16
attrs==25.3.0
babel==2.17.0
cachetools==5.5.2
certifi==2025.1.31
chardet==5.2.0
charset-normalizer==3.4.1
colorama==0.4.6
coverage==7.8.0
distlib==0.3.9
docutils==0.21.2
exceptiongroup==1.2.2
filelock==3.18.0
hypothesis==6.130.5
idna==3.10
imagesize==1.4.1
importlib_metadata==8.6.1
iniconfig==2.1.0
Ji... | name: pyrsistent
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-n... | [
"tests/class_test.py::test_supports_pickling_with_typed_container_fields",
"tests/record_test.py::test_supports_pickling_with_typed_container_fields"
] | [] | [
"tests/class_test.py::test_evolve_pclass_instance",
"tests/class_test.py::test_direct_assignment_not_possible",
"tests/class_test.py::test_direct_delete_not_possible",
"tests/class_test.py::test_cannot_construct_with_undeclared_fields",
"tests/class_test.py::test_cannot_construct_with_wrong_type",
"tests/... | [] | MIT License | 238 | 1,348 | [
"pyrsistent/_field_common.py"
] | |
docker__docker-py-770 | 02f330d8dc3da47215bed47b44fac73941ea6920 | 2015-09-15 21:47:09 | f479720d517a7db7f886916190b3032d29d18f10 | shin-: #764 needs to be merged for the tests to pass. | diff --git a/docker/utils/utils.py b/docker/utils/utils.py
index 46b35160..36edf8de 100644
--- a/docker/utils/utils.py
+++ b/docker/utils/utils.py
@@ -457,7 +457,8 @@ def create_host_config(
restart_policy=None, cap_add=None, cap_drop=None, devices=None,
extra_hosts=None, read_only=None, pid_mode=None, ipc_mo... | Add support for --cpu-quota & --cpu-period run flags
Any chance we could add support for the above run flags?
https://docs.docker.com/reference/commandline/run/ | docker/docker-py | diff --git a/tests/utils_test.py b/tests/utils_test.py
index b67ac4ec..45929f73 100644
--- a/tests/utils_test.py
+++ b/tests/utils_test.py
@@ -25,6 +25,159 @@ TEST_CERT_DIR = os.path.join(
)
+class HostConfigTest(base.BaseTestCase):
+ def test_create_host_config_no_options(self):
+ config = create_host_c... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_hyperlinks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 2
},
"num_modified_files": 1
} | 1.4 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"flake8"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"... | -e git+https://github.com/docker/docker-py.git@02f330d8dc3da47215bed47b44fac73941ea6920#egg=docker_py
exceptiongroup==1.2.2
flake8==7.2.0
iniconfig==2.1.0
mccabe==0.7.0
packaging==24.2
pluggy==1.5.0
pycodestyle==2.13.0
pyflakes==3.3.2
pytest==8.3.5
requests==2.5.3
six==1.17.0
tomli==2.2.1
websocket_client==0.32.0
| name: docker-py
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng... | [
"tests/utils_test.py::HostConfigTest::test_create_host_config_with_cpu_period",
"tests/utils_test.py::HostConfigTest::test_create_host_config_with_cpu_quota"
] | [] | [
"tests/utils_test.py::HostConfigTest::test_create_host_config_invalid_cpu_cfs_types",
"tests/utils_test.py::HostConfigTest::test_create_host_config_no_options",
"tests/utils_test.py::HostConfigTest::test_create_host_config_no_options_newer_api_version",
"tests/utils_test.py::UlimitTest::test_create_host_confi... | [] | Apache License 2.0 | 239 | 527 | [
"docker/utils/utils.py"
] |
docker__docker-py-787 | 5e331a55a8e8e10354693172dce1aa63f58ebe97 | 2015-09-23 21:07:40 | f479720d517a7db7f886916190b3032d29d18f10 | shin-: @aanand Thanks, didn't know about `six.u`. PTAL?
aanand: Cool. Perhaps the first test should be rewritten so it tests byte string input on all Python versions:
```python
def test_convert_volume_bindings_binary_input(self):
expected = [six.u('/mnt/지연:/unicode/박:rw')]
data = {
... | diff --git a/docker/utils/utils.py b/docker/utils/utils.py
index 36edf8de..1fce1377 100644
--- a/docker/utils/utils.py
+++ b/docker/utils/utils.py
@@ -242,6 +242,9 @@ def convert_volume_binds(binds):
result = []
for k, v in binds.items():
+ if isinstance(k, six.binary_type):
+ k = k.decode... | Create container bind volume with Unicode folder name
If bind volume folder name is Unicode, for example Japanese, It will raise exception:
Host volume and container volume both should handle Unicode.
```
File "/home/vagrant/.local/share/virtualenvs/qnap/local/lib/python2.7/site-packages/docker/utils/utils.py", ... | docker/docker-py | diff --git a/tests/utils_test.py b/tests/utils_test.py
index 45929f73..8ac1dcb9 100644
--- a/tests/utils_test.py
+++ b/tests/utils_test.py
@@ -1,15 +1,20 @@
+# -*- coding: utf-8 -*-
+
import os
import os.path
import shutil
import tempfile
+import pytest
+import six
+
from docker.client import Client
from docker... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 0
},
"num_modified_files": 1
} | 1.4 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest pytest-cov",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"pyt... | certifi @ file:///croot/certifi_1671487769961/work/certifi
coverage==7.2.7
-e git+https://github.com/docker/docker-py.git@5e331a55a8e8e10354693172dce1aa63f58ebe97#egg=docker_py
exceptiongroup==1.2.2
importlib-metadata==6.7.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.2.0
pytest==7.4.4
pytest-cov==4.1.0
requests==2.5.3
... | name: docker-py
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2022.12.7=py37h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- ... | [
"tests/utils_test.py::UtilsTest::test_convert_volume_binds_unicode_bytes_input"
] | [] | [
"tests/utils_test.py::HostConfigTest::test_create_host_config_invalid_cpu_cfs_types",
"tests/utils_test.py::HostConfigTest::test_create_host_config_no_options",
"tests/utils_test.py::HostConfigTest::test_create_host_config_no_options_newer_api_version",
"tests/utils_test.py::HostConfigTest::test_create_host_c... | [] | Apache License 2.0 | 246 | 386 | [
"docker/utils/utils.py"
] |
keleshev__schema-85 | 29286c1f9cce20cf70f2b15d9247f2ca6ef1d6c9 | 2015-09-26 00:20:07 | eb7670f0f4615195393dc5350d49fa9a33304137 | codecov-io: ## [Current coverage][1] is `98.07%`
> Merging **#85** into **master** will increase coverage by **+0.05%** as of [`ea3e9e6`][3]
```diff
@@ master #85 diff @@
======================================
Files 1 1
Stmts 152 156 +4
Branches ... | diff --git a/schema.py b/schema.py
index 1ecf845..d24744d 100644
--- a/schema.py
+++ b/schema.py
@@ -70,7 +70,7 @@ class Use(object):
except SchemaError as x:
raise SchemaError([None] + x.autos, [self._error] + x.errors)
except BaseException as x:
- f = self._callable.__name__
... | doesn't work with operator.methodcaller
from operator import methodcaller
from schema import Schema
f = methodcaller('endswith', '.csv')
assert f('test.csv')
Schema(f).validate('test.csv')
AttributeError: 'operator.methodcaller' object has no attribute '__name__'
We can't assume th... | keleshev/schema | diff --git a/test_schema.py b/test_schema.py
index ad49343..967dec0 100644
--- a/test_schema.py
+++ b/test_schema.py
@@ -1,5 +1,6 @@
from __future__ import with_statement
from collections import defaultdict, namedtuple
+from operator import methodcaller
import os
from pytest import raises
@@ -383,8 +384,18 @@ def... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 0
},
"num_modified_files": 1
} | 0.3 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-hea... | coverage==7.8.0
exceptiongroup==1.2.2
iniconfig==2.1.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
pytest-cov==6.0.0
-e git+https://github.com/keleshev/schema.git@29286c1f9cce20cf70f2b15d9247f2ca6ef1d6c9#egg=schema
tomli==2.2.1
| name: schema
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=11... | [
"test_schema.py::test_issue_56_cant_rely_on_callables_to_have_name"
] | [] | [
"test_schema.py::test_schema",
"test_schema.py::test_validate_file",
"test_schema.py::test_and",
"test_schema.py::test_or",
"test_schema.py::test_validate_list",
"test_schema.py::test_list_tuple_set_frozenset",
"test_schema.py::test_strictly",
"test_schema.py::test_dict",
"test_schema.py::test_dict_... | [] | MIT License | 250 | 308 | [
"schema.py"
] |
pypa__twine-134 | b34f042da78aed22b6e512df61b495638b06ba03 | 2015-09-27 21:52:01 | f487b7da9c42e4932bc33bf10d70cdc59fd16fd5 | diff --git a/twine/commands/upload.py b/twine/commands/upload.py
index 032cc21..2bd4a52 100644
--- a/twine/commands/upload.py
+++ b/twine/commands/upload.py
@@ -67,11 +67,13 @@ def upload(dists, repository, sign, identity, username, password, comment,
if not sign and identity:
raise ValueError("sign must ... | "twine upload" usually fails to upload .asc files
On the most recent Foolscap release, I signed the sdist tarballs as usual, and tried to use twine to upload everything:
```
% python setup.py sdist --formats=zip,gztar bdist_wheel
% ls dist
foolscap-0.9.1-py2-none-any.whl foolscap-0.9.1.tar.gz foolscap-0.9.1.zi... | pypa/twine | diff --git a/tests/test_package.py b/tests/test_package.py
index fcc827a..d28eec1 100644
--- a/tests/test_package.py
+++ b/tests/test_package.py
@@ -55,3 +55,18 @@ def test_sign_file_with_identity(monkeypatch):
pass
args = ('gpg', '--detach-sign', '--local-user', 'identity', '-a', filename)
assert re... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_hyperlinks",
"has_many_modified_files",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 3
},
"num_modified_files": 2
} | 1.6 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest",
"coverage",
"pretend",
"flake8"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
... | certifi==2025.1.31
charset-normalizer==3.4.1
coverage==7.8.0
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
flake8==7.2.0
idna==3.10
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
mccabe==0.7.0
packaging @ file:///croot/packaging_1734472117206/work
pkginfo==1.12.1.2
pluggy @ f... | name: twine
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- exceptiongroup=1.2.0=py39h06a4308_0
- iniconfig=1.1.1=pyhd3eb1b0_0
- ld_im... | [
"tests/test_package.py::test_package_signed_name_is_correct"
] | [] | [
"tests/test_package.py::test_sign_file",
"tests/test_package.py::test_sign_file_with_identity",
"tests/test_upload.py::test_ensure_wheel_files_uploaded_first",
"tests/test_upload.py::test_ensure_if_no_wheel_files",
"tests/test_upload.py::test_find_dists_expands_globs",
"tests/test_upload.py::test_find_dis... | [] | Apache License 2.0 | 253 | 834 | [
"twine/commands/upload.py",
"twine/package.py"
] | |
docker__docker-py-806 | f479720d517a7db7f886916190b3032d29d18f10 | 2015-10-09 19:03:05 | f479720d517a7db7f886916190b3032d29d18f10 | dnephin: some CI failures, otherwise looks good | diff --git a/docker/auth/auth.py b/docker/auth/auth.py
index 366bc67e..1ee9f812 100644
--- a/docker/auth/auth.py
+++ b/docker/auth/auth.py
@@ -102,7 +102,7 @@ def decode_auth(auth):
def encode_header(auth):
auth_json = json.dumps(auth).encode('ascii')
- return base64.b64encode(auth_json)
+ return base64.u... | Auth fails with long passwords
See https://github.com/docker/docker/issues/16840
docker-py is encoding `X-Registry-Auth` with regular base64 and not the url safe version of base64 that jwt tokens use. | docker/docker-py | diff --git a/tests/utils_test.py b/tests/utils_test.py
index b1adde26..04183f9f 100644
--- a/tests/utils_test.py
+++ b/tests/utils_test.py
@@ -19,7 +19,9 @@ from docker.utils import (
exclude_paths, convert_volume_binds, decode_json_header
)
from docker.utils.ports import build_port_bindings, split_port
-from do... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_hyperlinks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 2
},
"num_modified_files": 1
} | 1.4 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest pytest-cov",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"pyt... | certifi @ file:///croot/certifi_1671487769961/work/certifi
coverage==7.2.7
-e git+https://github.com/docker/docker-py.git@f479720d517a7db7f886916190b3032d29d18f10#egg=docker_py
exceptiongroup==1.2.2
importlib-metadata==6.7.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.2.0
pytest==7.4.4
pytest-cov==4.1.0
requests==2.5.3
... | name: docker-py
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2022.12.7=py37h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- ... | [
"tests/utils_test.py::UtilsTest::test_803_urlsafe_encode"
] | [] | [
"tests/utils_test.py::HostConfigTest::test_create_host_config_invalid_cpu_cfs_types",
"tests/utils_test.py::HostConfigTest::test_create_host_config_no_options",
"tests/utils_test.py::HostConfigTest::test_create_host_config_no_options_newer_api_version",
"tests/utils_test.py::HostConfigTest::test_create_host_c... | [] | Apache License 2.0 | 264 | 124 | [
"docker/auth/auth.py"
] |
pystorm__pystorm-14 | 111356b63c7a44261fb4d0c827745e793ca8717e | 2015-10-27 16:46:13 | eaa0bf28f57e43950379dfaabac7174ad5db4740 | diff --git a/pystorm/component.py b/pystorm/component.py
index 23d82e8..80c5abf 100644
--- a/pystorm/component.py
+++ b/pystorm/component.py
@@ -3,14 +3,17 @@ from __future__ import absolute_import, print_function, unicode_literals
import logging
import os
+import re
import signal
import sys
-from collections imp... | Have Tuple.values be a namedtuple so fields can be accessed by name
_From @dan-blanchard on April 15, 2015 13:57_
This was brought up as part of our discussion of the rejected #120. What we want to do is:
- [x] Submit a PR to Storm that serializes [`TopologyContext.componentToStreamToFields`](https://github.co... | pystorm/pystorm | diff --git a/test/pystorm/test_bolt.py b/test/pystorm/test_bolt.py
index f9586c3..80cf5c8 100644
--- a/test/pystorm/test_bolt.py
+++ b/test/pystorm/test_bolt.py
@@ -34,7 +34,7 @@ class BoltTests(unittest.TestCase):
tup_json = "{}\nend\n".format(json.dumps(self.tup_dict)).encode('utf-8')
self.tup = Tup... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_hyperlinks",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 0
},
"num_modified_files": 1
} | 1.0 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[all]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"mock"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.5",
... | attrs==22.2.0
certifi==2021.5.30
importlib-metadata==4.8.3
iniconfig==1.1.1
mock==5.2.0
msgpack-python==0.5.6
packaging==21.3
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
-e git+https://github.com/pystorm/pystorm.git@111356b63c7a44261fb4d0c827745e793ca8717e#egg=pystorm
pytest==7.0.1
simplejson==3.20.1
six==1.17.0
tomli==1... | name: pystorm
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- li... | [
"test/pystorm/test_bolt.py::BoltTests::test_auto_ack_on",
"test/pystorm/test_bolt.py::BoltTests::test_run",
"test/pystorm/test_bolt.py::BatchingBoltTests::test_auto_ack_off",
"test/pystorm/test_bolt.py::BatchingBoltTests::test_auto_ack_on",
"test/pystorm/test_bolt.py::BatchingBoltTests::test_auto_fail_on",
... | [] | [
"test/pystorm/test_bolt.py::BoltTests::test_ack_id",
"test/pystorm/test_bolt.py::BoltTests::test_ack_tuple",
"test/pystorm/test_bolt.py::BoltTests::test_auto_ack_off",
"test/pystorm/test_bolt.py::BoltTests::test_auto_anchor_off",
"test/pystorm/test_bolt.py::BoltTests::test_auto_anchor_on",
"test/pystorm/t... | [] | Apache License 2.0 | 276 | 821 | [
"pystorm/component.py"
] | |
scrapy__scrapy-1563 | dd9f777ba725d7a7dbb192302cc52a120005ad64 | 2015-10-29 06:21:42 | 6aa85aee2a274393307ac3e777180fcbdbdc9848 | diff --git a/scrapy/http/request/form.py b/scrapy/http/request/form.py
index a12a2fd07..4a9bd732e 100644
--- a/scrapy/http/request/form.py
+++ b/scrapy/http/request/form.py
@@ -11,6 +11,7 @@ from parsel.selector import create_root_node
import six
from scrapy.http.request import Request
from scrapy.utils.python impor... | [Bug] Incorrectly picked URL in `scrapy.http.FormRequest.from_response` when there is a `<base>` tag
## Issue Description
Incorrectly picked URL in `scrapy.http.FormRequest.from_response` when there is a `<base>` tag.
## How to Reproduce the Issue & Version Used
```
[pengyu@GLaDOS tmp]$ python2
Python 2.7.10... | scrapy/scrapy | diff --git a/tests/test_http_request.py b/tests/test_http_request.py
index ff0941961..60fd855dd 100644
--- a/tests/test_http_request.py
+++ b/tests/test_http_request.py
@@ -801,6 +801,25 @@ class FormRequestTest(RequestTest):
self.assertEqual(fs[b'test2'], [b'val2'])
self.assertEqual(fs[b'button1'], [... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_hyperlinks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 0
},
"num_modified_files": 1
} | 1.0 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest pytest-cov pytest-xdist pytest-mock pytest-asyncio"
],
"pre_install": [
"apt-get update",
"apt-get instal... | attrs==25.3.0
Automat==24.8.1
cffi==1.17.1
constantly==23.10.4
coverage==7.8.0
cryptography==44.0.2
cssselect==1.3.0
exceptiongroup==1.2.2
execnet==2.1.1
hyperlink==21.0.0
idna==3.10
incremental==24.7.2
iniconfig==2.1.0
jmespath==1.0.1
lxml==5.3.1
packaging==24.2
parsel==1.10.0
pluggy==1.5.0
pyasn1==0.6.1
pyasn1_module... | name: scrapy
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=11... | [
"tests/test_http_request.py::FormRequestTest::test_html_base_form_action"
] | [
"tests/test_http_request.py::FormRequestTest::test_from_response_button_notype",
"tests/test_http_request.py::FormRequestTest::test_from_response_button_novalue",
"tests/test_http_request.py::FormRequestTest::test_from_response_button_submit",
"tests/test_http_request.py::FormRequestTest::test_from_response_c... | [
"tests/test_http_request.py::RequestTest::test_ajax_url",
"tests/test_http_request.py::RequestTest::test_body",
"tests/test_http_request.py::RequestTest::test_copy",
"tests/test_http_request.py::RequestTest::test_copy_inherited_classes",
"tests/test_http_request.py::RequestTest::test_eq",
"tests/test_http... | [] | BSD 3-Clause "New" or "Revised" License | 279 | 309 | [
"scrapy/http/request/form.py"
] | |
docker__docker-py-832 | 47ab89ec2bd3bddf1221b856ffbaff333edeabb4 | 2015-10-29 15:17:54 | 1ca2bc58f0cf2e2cdda2734395bd3e7ad9b178bf | diff --git a/docker/auth/auth.py b/docker/auth/auth.py
index 2ed894ee..416dd7c4 100644
--- a/docker/auth/auth.py
+++ b/docker/auth/auth.py
@@ -96,7 +96,7 @@ def decode_auth(auth):
auth = auth.encode('ascii')
s = base64.b64decode(auth)
login, pwd = s.split(b':', 1)
- return login.decode('ascii'), p... | decode_auth function does not handle utf-8 logins or password
HI
I have found that the function **decode_auth** (line 96, [file](https://github.com/docker/docker-py/blob/master/docker/auth/auth.py)) fails when decoding UTF-8 passwords from the .dockercfg file, and **load_config** returning an empty config.
I have... | docker/docker-py | diff --git a/tests/unit/auth_test.py b/tests/unit/auth_test.py
index 9f4d439b..67830381 100644
--- a/tests/unit/auth_test.py
+++ b/tests/unit/auth_test.py
@@ -316,3 +316,33 @@ class LoadConfigTest(base.Cleanup, base.BaseTestCase):
self.assertEqual(cfg['password'], 'izayoi')
self.assertEqual(cf... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 0
},
"num_modified_files": 1
} | 1.5 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"pytest-xdist",
"pytest-mock"
],
"pre_install": [
"apt-get update",
"apt-get ... | certifi @ file:///croot/certifi_1671487769961/work/certifi
coverage==7.2.7
-e git+https://github.com/docker/docker-py.git@47ab89ec2bd3bddf1221b856ffbaff333edeabb4#egg=docker_py
exceptiongroup==1.2.2
execnet==2.0.2
importlib-metadata==6.7.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.2.0
pytest==7.4.4
pytest-cov==4.1.0
p... | name: docker-py
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2022.12.7=py37h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- ... | [
"tests/unit/auth_test.py::LoadConfigTest::test_load_config_custom_config_env_utf8"
] | [] | [
"tests/unit/auth_test.py::RegressionTest::test_803_urlsafe_encode",
"tests/unit/auth_test.py::ResolveAuthTest::test_resolve_authconfig_default_explicit_none",
"tests/unit/auth_test.py::ResolveAuthTest::test_resolve_authconfig_default_registry",
"tests/unit/auth_test.py::ResolveAuthTest::test_resolve_authconfi... | [] | Apache License 2.0 | 281 | 136 | [
"docker/auth/auth.py"
] | |
jonathanj__eliottree-40 | 4dae7890294edb4d845b00a8bb310bc08c555352 | 2015-10-30 07:46:22 | 26748c5e640b6d25d71eefad95920c41dab0f8db | diff --git a/eliottree/_cli.py b/eliottree/_cli.py
index 6b0d24e..c333d8c 100644
--- a/eliottree/_cli.py
+++ b/eliottree/_cli.py
@@ -2,36 +2,20 @@ import argparse
import codecs
import json
import sys
-from datetime import datetime
from itertools import chain
from six import PY3
from six.moves import map
-from t... | Human-readable values should only be formatted when rendered instead of modifying the tree data
The problem with modifying the tree data is that it makes it very difficult to write queries against it if eliot-tree is changing it in undisclosed ways to suit it's renderer. | jonathanj/eliottree | diff --git a/eliottree/test/test_render.py b/eliottree/test/test_render.py
index 81d3128..81dea43 100644
--- a/eliottree/test/test_render.py
+++ b/eliottree/test/test_render.py
@@ -15,14 +15,14 @@ class FormatValueTests(TestCase):
"""
Tests for ``eliottree.render._format_value``.
"""
- def test_dateti... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_many_modified_files",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 3
},
"num_modified_files": 3
} | 15.3 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": null,
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path": null,
"te... | -e git+https://github.com/jonathanj/eliottree.git@4dae7890294edb4d845b00a8bb310bc08c555352#egg=eliot_tree
exceptiongroup==1.2.2
iniconfig==2.1.0
jmespath==1.0.1
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
six==1.17.0
testtools==2.7.2
tomli==2.2.1
toolz==1.0.0
| name: eliottree
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng... | [
"eliottree/test/test_render.py::FormatValueTests::test_datetime_human_readable",
"eliottree/test/test_render.py::FormatValueTests::test_timestamp_hint",
"eliottree/test/test_render.py::RenderTaskNodesTests::test_tasks_human_readable"
] | [] | [
"eliottree/test/test_render.py::FormatValueTests::test_other",
"eliottree/test/test_render.py::FormatValueTests::test_str",
"eliottree/test/test_render.py::FormatValueTests::test_unicode",
"eliottree/test/test_render.py::RenderTaskNodesTests::test_dict_data",
"eliottree/test/test_render.py::RenderTaskNodesT... | [] | MIT License | 282 | 1,897 | [
"eliottree/_cli.py",
"eliottree/render.py",
"setup.py"
] | |
sprymix__csscompressor-4 | 153ab1bb6cd925dc73a314af74db874a3314010f | 2015-11-01 06:16:44 | bec3e582cb5ab7182a0ca08ba381e491b94ed10c | diff --git a/csscompressor/__init__.py b/csscompressor/__init__.py
index 1b41119..1233cd3 100644
--- a/csscompressor/__init__.py
+++ b/csscompressor/__init__.py
@@ -56,9 +56,12 @@ _space_after_re = re.compile(r'([!{}:;>+\(\[,])\s+')
_semi_re = re.compile(r';+}')
_zero_fmt_spec_re = re.compile(r'''(\s|:|\(|,)(?:0?\.... | Omitting the unit on a time value is invalid
Input: `csscompressor.compress("transition: background-color 1s linear 0ms;")`
Expected output: `'transition:background-color 1s linear 0ms;'`
Actual output: `'transition:background-color 1s linear 0;'`
According to the [MDN page on \<time>](https://developer.mozilla.or... | sprymix/csscompressor | diff --git a/csscompressor/tests/test_yui.py b/csscompressor/tests/test_yui.py
index a0d6715..5d56d24 100644
--- a/csscompressor/tests/test_yui.py
+++ b/csscompressor/tests/test_yui.py
@@ -1458,7 +1458,7 @@ serve! */"""
"""
- output = """a{margin:0;_padding-top:0;background-position:0 0;padding:0;tr... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_hyperlinks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 0
},
"num_modified_files": 1
} | 0.9 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --color=no... | -e git+https://github.com/sprymix/csscompressor.git@153ab1bb6cd925dc73a314af74db874a3314010f#egg=csscompressor
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
packaging @ file:///croot/packaging_1734472117206/work
pluggy @ file:///... | name: csscompressor
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- exceptiongroup=1.2.0=py39h06a4308_0
- iniconfig=1.1.1=pyhd3eb1b0_0
... | [
"csscompressor/tests/test_yui.py::TestYUI::test_yui_zeros"
] | [] | [
"csscompressor/tests/test_yui.py::TestYUI::test_yui_background_position",
"csscompressor/tests/test_yui.py::TestYUI::test_yui_border_none",
"csscompressor/tests/test_yui.py::TestYUI::test_yui_box_model_hack",
"csscompressor/tests/test_yui.py::TestYUI::test_yui_bug2527974",
"csscompressor/tests/test_yui.py::... | [] | BSD | 284 | 473 | [
"csscompressor/__init__.py"
] | |
falconry__falcon-651 | a8154de497b3ec5d6e5579026e74e9073e353819 | 2015-11-13 11:56:13 | b78ffaac7c412d3b3d6cd3c70dd05024d79d2cce | kgriffs: I think this makes sense. It is a breaking change, but one that should be easy for developers to accommodate. A couple testing suggestions inline. | diff --git a/falcon/api.py b/falcon/api.py
index cdc2c66..1a6b944 100644
--- a/falcon/api.py
+++ b/falcon/api.py
@@ -178,7 +178,8 @@ class API(object):
# e.g. a 404.
responder, params, resource = self._get_responder(req)
- self._call_rsrc_mw(middleware_stack, req, resp... | Pass params to process_resource
This is needed for feature parity with global *before* hooks. We can use a shim to avoid breaking existing middleware. | falconry/falcon | diff --git a/tests/test_httpstatus.py b/tests/test_httpstatus.py
index 3569e6b..f525be1 100644
--- a/tests/test_httpstatus.py
+++ b/tests/test_httpstatus.py
@@ -166,7 +166,7 @@ class TestHTTPStatusWithGlobalHooks(testing.TestBase):
def test_raise_status_in_process_resource(self):
""" Make sure we can rais... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 0
},
"num_modified_files": 1
} | 0.3 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"nose",
"coverage",
"ddt",
"pyyaml",
"requests",
"testtools",
"pytest"
],
"pre_install": [
"apt-get upd... | attrs @ file:///croot/attrs_1668696182826/work
certifi @ file:///croot/certifi_1671487769961/work/certifi
charset-normalizer==3.4.1
coverage==7.2.7
ddt==1.7.2
-e git+https://github.com/falconry/falcon.git@a8154de497b3ec5d6e5579026e74e9073e353819#egg=falcon
flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762... | name: falcon
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- attrs=22.1.0=py37h06a4308_0
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2022.12.7=py37h06a4308_0
- flit-cor... | [
"tests/test_httpstatus.py::TestHTTPStatusWithGlobalHooks::test_raise_status_in_process_resource",
"tests/test_middlewares.py::TestRequestTimeMiddleware::test_log_get_request",
"tests/test_middlewares.py::TestSeveralMiddlewares::test_generate_trans_id_and_time_with_request",
"tests/test_middlewares.py::TestSev... | [] | [
"tests/test_httpstatus.py::TestHTTPStatus::test_raise_status_empty_body",
"tests/test_httpstatus.py::TestHTTPStatus::test_raise_status_in_before_hook",
"tests/test_httpstatus.py::TestHTTPStatus::test_raise_status_in_responder",
"tests/test_httpstatus.py::TestHTTPStatus::test_raise_status_runs_after_hooks",
... | [] | Apache License 2.0 | 298 | 326 | [
"falcon/api.py"
] |
joblib__joblib-277 | 484405ccea3cbcbd95e3cf241f15bf3eeb1aa8b6 | 2015-11-23 15:25:34 | 40341615cc2600675ce7457d9128fb030f6f89fa | diff --git a/joblib/hashing.py b/joblib/hashing.py
index f8a9ee6..93bc5e3 100644
--- a/joblib/hashing.py
+++ b/joblib/hashing.py
@@ -59,7 +59,8 @@ class Hasher(Pickler):
try:
self.dump(obj)
except pickle.PicklingError as e:
- warnings.warn('PicklingError while hashing %r: %r' %... | Surprising behaviour when one of the cached function arguments is not picklable
As reported by @arthurmensch. When one of the arguments is not picklable, the cached function result will only depend on the hash of all the arguments before the non picklable one.
A simple snippet to show the problem:
```python
import... | joblib/joblib | diff --git a/joblib/test/test_hashing.py b/joblib/test/test_hashing.py
index f0ce0eb..88407d0 100644
--- a/joblib/test/test_hashing.py
+++ b/joblib/test/test_hashing.py
@@ -23,6 +23,7 @@ from nose.tools import assert_equal
from joblib.hashing import hash, PY3
from joblib.func_inspect import filter_args
from joblib.m... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 2
},
"num_modified_files": 1
} | 0.9 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "",
"pip_packages": [
"nose",
"coverage",
"numpy>=1.6.1",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"p... | attrs==22.2.0
certifi==2021.5.30
coverage==6.2
importlib-metadata==4.8.3
iniconfig==1.1.1
-e git+https://github.com/joblib/joblib.git@484405ccea3cbcbd95e3cf241f15bf3eeb1aa8b6#egg=joblib
nose==1.3.7
numpy==1.19.5
packaging==21.3
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
tomli==1.2.3
typing_extensions==4.1.... | name: joblib
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- lib... | [
"joblib/test/test_hashing.py::test_hashing_pickling_error"
] | [] | [
"joblib/test/test_hashing.py::test_memory_setup_func",
"joblib/test/test_hashing.py::test_memory_teardown_func",
"joblib/test/test_hashing.py::test_hash_methods",
"joblib/test/test_hashing.py::test_numpy_datetime_array",
"joblib/test/test_hashing.py::test_hash_numpy_noncontiguous",
"joblib/test/test_hashi... | [] | BSD 3-Clause "New" or "Revised" License | 310 | 161 | [
"joblib/hashing.py"
] | |
getlogbook__logbook-176 | f4d4d9309d0a0ce097cfa52f0f3dad6280d7f2e3 | 2015-11-26 23:39:36 | bb0f4fbeec318a140780b1ac8781599474cf2666 | diff --git a/logbook/compat.py b/logbook/compat.py
index c3896db..b65ac00 100644
--- a/logbook/compat.py
+++ b/logbook/compat.py
@@ -9,12 +9,13 @@
:copyright: (c) 2010 by Armin Ronacher, Georg Brandl.
:license: BSD, see LICENSE for more details.
"""
-import sys
+import collections
import logging
+import sys... | Exception in LoggingCompatRecord for mapping keys
Example:
```
logger = logging.getLogger("test")
logger.setLevel("DEBUG")
logger.addHandler(RedirectLoggingHandler())
with logbook.StderrHandler():
logger.debug("test map %(name)s", {"name": "mapname"})
# raise exception in LoggingCompatRecord:
... | getlogbook/logbook | diff --git a/tests/test_logging_compat.py b/tests/test_logging_compat.py
index 48dfebe..31fdd40 100644
--- a/tests/test_logging_compat.py
+++ b/tests/test_logging_compat.py
@@ -36,8 +36,11 @@ def test_basic_compat(request, set_root_logger_level):
logger.warn('This is from the old %s', 'system')
... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 1
},
"num_modified_files": 1
} | 0.12 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[all]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path": null,
... | async-timeout==5.0.1
Cython==3.0.12
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
execnet==2.1.1
greenlet==3.1.1
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
Jinja2==3.1.6
-e git+https://github.com/getlogbook/logbook.git@f4d4d9309d0a0ce097cfa52f0f3dad6280d7f2e3#egg=Logbook
... | name: logbook
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- exceptiongroup=1.2.0=py39h06a4308_0
- iniconfig=1.1.1=pyhd3eb1b0_0
- ld_... | [
"tests/test_logging_compat.py::test_basic_compat[True]",
"tests/test_logging_compat.py::test_basic_compat[False]"
] | [] | [
"tests/test_logging_compat.py::test_redirect_logbook",
"tests/test_logging_compat.py::test_warning_redirections"
] | [] | BSD License | 315 | 452 | [
"logbook/compat.py"
] | |
juju-solutions__charms.benchmark-3 | df2acf8736cce39d905990fd5008d6afa57863c3 | 2015-12-01 12:31:43 | df2acf8736cce39d905990fd5008d6afa57863c3 | tvansteenburgh: Unrelated to your change, but I don't think the `in_relation_hook()` guard on __init__.py:133 is correct. Benchmark.start() is usually called in an action, not a relation, and we want the action_uuid to be set on the relation regardless of when Benchmark.start() is called. | diff --git a/charms/benchmark/__init__.py b/charms/benchmark/__init__.py
index 9a5458e..f0c15c5 100644
--- a/charms/benchmark/__init__.py
+++ b/charms/benchmark/__init__.py
@@ -130,14 +130,14 @@ class Benchmark(object):
charm_dir = os.environ.get('CHARM_DIR')
action_uuid = os.environ.get('JUJU_ACTION_... | Action UUID needs to be set explicitly to the collect-profile-data script | juju-solutions/charms.benchmark | diff --git a/tests/test_charms-benchmark.py b/tests/test_charms-benchmark.py
index 3b78034..8528993 100644
--- a/tests/test_charms-benchmark.py
+++ b/tests/test_charms-benchmark.py
@@ -146,7 +146,7 @@ class TestBenchmark(TestCase):
COLLECT_PROFILE_DATA = '/usr/local/bin/collect-profile-data'
exists.... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 3,
"test_score": 1
},
"num_modified_files": 1
} | unknown | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"nose",
"coverage",
"testtools",
"pep8",
"mock",
"cherrypy",
"pyyaml",
"six",
"pytest"
... | autocommand==2.2.2
backports.tarfile==1.2.0
charmhelpers==1.2.1
-e git+https://github.com/juju-solutions/charms.benchmark.git@df2acf8736cce39d905990fd5008d6afa57863c3#egg=charms.benchmark
cheroot==10.0.1
CherryPy==18.10.0
coverage==7.8.0
exceptiongroup==1.2.2
iniconfig==2.1.0
jaraco.collections==5.1.0
jaraco.context==6... | name: charms.benchmark
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- li... | [
"tests/test_charms-benchmark.py::TestBenchmark::test_benchmark_start"
] | [] | [
"tests/test_charms-benchmark.py::TestBenchmark::test_benchmark_finish",
"tests/test_charms-benchmark.py::TestBenchmark::test_benchmark_finish_oserror",
"tests/test_charms-benchmark.py::TestBenchmark::test_benchmark_init",
"tests/test_charms-benchmark.py::TestBenchmark::test_benchmark_meta",
"tests/test_char... | [] | null | 318 | 227 | [
"charms/benchmark/__init__.py"
] |
pre-commit__pre-commit-310 | 6b005cff0d5d4f579be5dbb97102c4fee3b4e39f | 2015-12-01 16:34:13 | c1c3f3b571adcd0cf5a8cea7d9d80574c2572c02 | diff --git a/pre_commit/error_handler.py b/pre_commit/error_handler.py
index c8d2bfc..60038f4 100644
--- a/pre_commit/error_handler.py
+++ b/pre_commit/error_handler.py
@@ -7,7 +7,9 @@ import io
import os.path
import traceback
+from pre_commit import five
from pre_commit.errors import FatalError
+from pre_commit.o... | Non-ascii prints in error handler without tty cause stacktrace
```
23:00:13 style runtests: commands[0] | pre-commit run --all-files
23:00:13 [INFO] Installing environment for git@git.yelpcorp.com:mirrors/pre-commit/mirrors-jshint.
23:00:13 [INFO] Once installed this environment will be reused.
23:00:13 [INFO] This... | pre-commit/pre-commit | diff --git a/tests/error_handler_test.py b/tests/error_handler_test.py
index 161b88f..d8f966a 100644
--- a/tests/error_handler_test.py
+++ b/tests/error_handler_test.py
@@ -1,15 +1,18 @@
+# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
import io
import os.pat... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 2
},
"num_modified_files": 1
} | 0.6 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.5",
"reqs_path... | aspy.yaml==1.3.0
astroid==1.3.2
attrs==22.2.0
cached-property==1.5.2
certifi==2021.5.30
coverage==6.2
distlib==0.3.9
filelock==3.4.1
flake8==5.0.4
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
jsonschema==3.2.0
logilab-common==1.9.7
mccabe==0.7.0
mock==5.2.0
mypy-extensions==1.0.0
nodeenv==1.6.0... | name: pre-commit
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
-... | [
"tests/error_handler_test.py::test_log_and_exit"
] | [] | [
"tests/error_handler_test.py::test_error_handler_no_exception",
"tests/error_handler_test.py::test_error_handler_fatal_error",
"tests/error_handler_test.py::test_error_handler_uncaught_error",
"tests/error_handler_test.py::test_error_handler_non_ascii_exception",
"tests/error_handler_test.py::test_error_han... | [] | MIT License | 319 | 378 | [
"pre_commit/error_handler.py"
] | |
projectmesa__mesa-178 | 57a0beb5947fc16b7b665f297504907e300b043c | 2015-12-04 04:39:32 | 6db9efde7c659b9338fc8cf551f066cdba7031c3 | diff --git a/mesa/space.py b/mesa/space.py
index 5e3a9544..77fe8174 100644
--- a/mesa/space.py
+++ b/mesa/space.py
@@ -24,6 +24,20 @@ X = 0
Y = 1
+def accept_tuple_argument(wrapped_function):
+ '''
+ Decorator to allow grid methods that take a list of (x, y) position tuples
+ to also handle a single posit... | baby patch/tweak: allow cell methods to take single cell
Cf. discussion in #176 -- taking on the small "(TODO: someone should probably fix that...)" from the tutorial re: grid's `get_cell_list_contents` requiring a list of cells even if it's just being passed a single cell. It's a very easy fix, I'm on the case. :-) | projectmesa/mesa | diff --git a/tests/test_grid.py b/tests/test_grid.py
index b558f4d9..c09f0496 100644
--- a/tests/test_grid.py
+++ b/tests/test_grid.py
@@ -53,6 +53,43 @@ class TestBaseGrid(unittest.TestCase):
x, y = agent.pos
assert self.grid[y][x] == agent
+ def test_cell_agent_reporting(self):
+ ... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_issue_reference",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 3
},
"num_modified_files": 1
} | 0.6 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"flake8"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],... | coverage==7.8.0
exceptiongroup==1.2.2
flake8==7.2.0
iniconfig==2.1.0
mccabe==0.7.0
-e git+https://github.com/projectmesa/mesa.git@57a0beb5947fc16b7b665f297504907e300b043c#egg=Mesa
numpy==2.0.2
packaging==24.2
pandas==2.2.3
pluggy==1.5.0
pycodestyle==2.13.0
pyflakes==3.3.1
pytest==8.3.5
pytest-cov==6.0.0
python-dateutil... | name: mesa
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=11.2... | [
"tests/test_grid.py::TestBaseGrid::test_listfree_cell_agent_reporting",
"tests/test_grid.py::TestBaseGrid::test_listfree_iter_cell_agent_reporting",
"tests/test_grid.py::TestBaseGridTorus::test_listfree_cell_agent_reporting",
"tests/test_grid.py::TestBaseGridTorus::test_listfree_iter_cell_agent_reporting"
] | [] | [
"tests/test_grid.py::TestBaseGrid::test_agent_positions",
"tests/test_grid.py::TestBaseGrid::test_cell_agent_reporting",
"tests/test_grid.py::TestBaseGrid::test_coord_iter",
"tests/test_grid.py::TestBaseGrid::test_iter_cell_agent_reporting",
"tests/test_grid.py::TestBaseGrid::test_neighbors",
"tests/test_... | [] | Apache License 2.0 | 321 | 581 | [
"mesa/space.py"
] | |
andycasey__ads-36 | 5bd62ef2bf924116374455e222ea9ac8dc416b3a | 2015-12-04 17:01:02 | c039d67c2b2e9dad936758bc89df1fdd1cbd0aa1 | diff --git a/ads/search.py b/ads/search.py
index eb64e70..fed6c0c 100644
--- a/ads/search.py
+++ b/ads/search.py
@@ -275,7 +275,7 @@ class SearchQuery(BaseQuery):
"title", "reference", "citation"]
def __init__(self, query_dict=None, q=None, fq=None, fl=DEFAULT_FIELDS,
- sor... | Number of returned results doesn't correspond to 'rows' key value in SearchQuery
Example code:
````
In [5]: papers = ads.SearchQuery(q="supernova", sort="citation_count", rows=10)
In [6]: print(len(list(papers)))
40
````
Not massively important, but a bit surprising anyway. Any explanation? Thanks! | andycasey/ads | diff --git a/ads/tests/test_search.py b/ads/tests/test_search.py
index 346d957..331a9f5 100644
--- a/ads/tests/test_search.py
+++ b/ads/tests/test_search.py
@@ -131,18 +131,24 @@ class TestSearchQuery(unittest.TestCase):
self.assertEqual(len(sq.articles), 1)
self.assertEqual(sq._query['start']... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_pytest_match_arg"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 0
},
"num_modified_files": 1
} | 0.1 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path": [
... | -e git+https://github.com/andycasey/ads.git@5bd62ef2bf924116374455e222ea9ac8dc416b3a#egg=ads
certifi==2025.1.31
charset-normalizer==3.4.1
exceptiongroup==1.2.2
httpretty==1.1.4
idna==3.10
iniconfig==2.1.0
MarkupSafe==3.0.2
mock==5.2.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
requests==2.32.3
six==1.17.0
tomli==2.2.1... | name: ads
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=11.2.... | [
"ads/tests/test_search.py::TestSearchQuery::test_iter"
] | [] | [
"ads/tests/test_search.py::TestArticle::test_cached_properties",
"ads/tests/test_search.py::TestArticle::test_equals",
"ads/tests/test_search.py::TestArticle::test_get_field",
"ads/tests/test_search.py::TestArticle::test_init",
"ads/tests/test_search.py::TestArticle::test_print_methods",
"ads/tests/test_s... | [] | MIT License | 323 | 385 | [
"ads/search.py"
] | |
joblib__joblib-283 | c60d263fcc71ba9f4532010b732cde42e437039b | 2015-12-10 15:14:21 | 40341615cc2600675ce7457d9128fb030f6f89fa | lesteve: > inspect.getfullargspec is marked as deprecated since 3.5, why not directly use a compatibility function called signature and use the one from python >= 3.4.
Yeah I am aware of that but I wanted to do the smallest change to make joblib.Memory support functions with signature or keyword-only arguments. scik... | diff --git a/joblib/func_inspect.py b/joblib/func_inspect.py
index cc5cbf6..3eee40b 100644
--- a/joblib/func_inspect.py
+++ b/joblib/func_inspect.py
@@ -11,11 +11,15 @@ import inspect
import warnings
import re
import os
-
+import sys
from ._compat import _basestring
from .logger import pformat
from ._memory_helpe... | Replace deprecated usage of inspect.getargspec
inspect.getargspec has been deprecated since 3.0 (in favor of inspect.getfullargspec until 3.2 and in favor of inspect.signature since 3.3) and will be removed in 3.6. It also creates visible DeprecationWarning in 3.5.
| joblib/joblib | diff --git a/joblib/test/test_func_inspect.py b/joblib/test/test_func_inspect.py
index 15c6b43..62920e9 100644
--- a/joblib/test/test_func_inspect.py
+++ b/joblib/test/test_func_inspect.py
@@ -11,12 +11,15 @@ import shutil
import nose
import tempfile
import functools
+import sys
from joblib.func_inspect import fi... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 2
},
"num_modified_files": 1
} | 0.9 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"nose",
"coverage",
"pytest"
],
"pre_install": null,
"python": "3.5",
"reqs_path": null,
"test_cmd": "pytest --no-hea... | attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
coverage==6.2
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
-e git+https://github.com/joblib/joblib.git@c60d263fcc71ba9f4532010b... | name: joblib
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- attrs=21.4.0=pyhd3eb1b0_0
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- importlib-... | [
"joblib/test/test_func_inspect.py::test_filter_args_python_3",
"joblib/test/test_memory.py::test_memory_func_with_kwonly_args",
"joblib/test/test_memory.py::test_memory_func_with_signature"
] | [] | [
"joblib/test/test_func_inspect.py::test_filter_args_method",
"joblib/test/test_func_inspect.py::test_filter_kwargs",
"joblib/test/test_func_inspect.py::test_filter_args_2",
"joblib/test/test_func_inspect.py::test_func_inspect_errors",
"joblib/test/test_func_inspect.py::test_bound_methods",
"joblib/test/te... | [] | BSD 3-Clause "New" or "Revised" License | 328 | 1,681 | [
"joblib/func_inspect.py"
] |
Shopify__shopify_python_api-129 | 28c00a110c23edc5287d6e8f90f0e36f0eb5d1b3 | 2015-12-11 18:31:45 | c29e0ecbed9de67dd923f980a3ac053922dab75e | diff --git a/shopify/resources/__init__.py b/shopify/resources/__init__.py
index 2de7499..adacc08 100644
--- a/shopify/resources/__init__.py
+++ b/shopify/resources/__init__.py
@@ -46,5 +46,6 @@ from .policy import Policy
from .smart_collection import SmartCollection
from .gift_card import GiftCard
from .discount im... | Add support for the new Shipping Zone resource.
As per https://ecommerce.shopify.com/c/api-announcements/t/shipping-zones-api-and-changes-to-the-countries-api-307687. | Shopify/shopify_python_api | diff --git a/test/fixtures/shipping_zones.json b/test/fixtures/shipping_zones.json
new file mode 100644
index 0000000..f07b8ff
--- /dev/null
+++ b/test/fixtures/shipping_zones.json
@@ -0,0 +1,114 @@
+{
+ "shipping_zones": [
+ {
+ "id": 1,
+ "name": "Some zone",
+ "countries": [
+ {
+ ... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_hyperlinks",
"has_added_files"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 1
},
"num_modified_files": 1
} | 2.1 | {
"env_vars": null,
"env_yml_path": [],
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [],
"python": "3.9",
"reqs_path": [
"requirements/base.txt"
],
"test_cmd": "pytest -... | exceptiongroup==1.2.2
iniconfig==2.1.0
packaging==24.2
pluggy==1.5.0
pyactiveresource==2.2.2
pytest==8.3.5
PyYAML==6.0.2
-e git+https://github.com/Shopify/shopify_python_api.git@28c00a110c23edc5287d6e8f90f0e36f0eb5d1b3#egg=ShopifyAPI
six==1.17.0
tomli==2.2.1
| name: shopify_python_api
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- ... | [
"test/shipping_zone_test.py::ShippingZoneTest::test_get_shipping_zones"
] | [] | [] | [] | MIT License | 332 | 213 | [
"shopify/resources/__init__.py"
] | |
jupyter-incubator__sparkmagic-73 | d9662c5c5b089976810dfe863437d86ae72ccf82 | 2015-12-18 01:53:03 | d9662c5c5b089976810dfe863437d86ae72ccf82 | diff --git a/remotespark/RemoteSparkMagics.py b/remotespark/RemoteSparkMagics.py
index 361b91b..5271de0 100644
--- a/remotespark/RemoteSparkMagics.py
+++ b/remotespark/RemoteSparkMagics.py
@@ -55,30 +55,40 @@ class RemoteSparkMagics(Magics):
Constants.context_name_sql,
... | Rename --endpoint param to magics to --session
Make -e be -s | jupyter-incubator/sparkmagic | diff --git a/tests/test_clientmanager.py b/tests/test_clientmanager.py
index 3376082..b1ef425 100644
--- a/tests/test_clientmanager.py
+++ b/tests/test_clientmanager.py
@@ -18,13 +18,13 @@ def test_deserialize_on_creation():
serializer.deserialize_state.return_value = [("py", None), ("sc", None)]
manager = Cl... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_many_modified_files",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 2
},
"num_modified_files"... | unknown | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"mkdir ~/.sparkmagic",
"cp remotespark/default_config.json ~/.sparkmagic/config.json... | anyio==4.9.0
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
arrow==1.3.0
async-lru==2.0.5
attrs==25.3.0
babel==2.17.0
beautifulsoup4==4.13.3
bleach==6.2.0
certifi==2025.1.31
cffi==1.17.1
charset-normalizer==3.4.1
comm==0.2.2
decorator==5.2.1
defusedxml==0.7.1
exceptiongroup==1.2.2
fastjsonschema==2.21.1
fqdn==1.5.1
h... | name: sparkmagic
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-n... | [
"tests/test_clientmanager.py::test_deserialize_on_creation",
"tests/test_clientmanager.py::test_client_names_returned"
] | [
"tests/test_remotesparkmagics.py::test_info_command_parses",
"tests/test_remotesparkmagics.py::test_add_sessions_command_parses",
"tests/test_remotesparkmagics.py::test_delete_sessions_command_parses",
"tests/test_remotesparkmagics.py::test_cleanup_command_parses",
"tests/test_remotesparkmagics.py::test_bad... | [
"tests/test_clientmanager.py::test_get_client_throws_when_client_not_exists",
"tests/test_clientmanager.py::test_serialize_periodically",
"tests/test_clientmanager.py::test_get_client",
"tests/test_clientmanager.py::test_delete_client",
"tests/test_clientmanager.py::test_delete_client_throws_when_client_not... | [] | Modified BSD License | 340 | 3,432 | [
"remotespark/RemoteSparkMagics.py",
"remotespark/livyclientlib/clientmanager.py",
"remotespark/livyclientlib/livyclient.py",
"remotespark/livyclientlib/livyclientfactory.py",
"remotespark/livyclientlib/pandaslivyclientbase.py",
"remotespark/livyclientlib/pandaspysparklivyclient.py",
"remotespark/livycli... | |
joke2k__faker-314 | 9f338881f582807fd9d1339b6148b039f8141bb3 | 2015-12-18 19:49:49 | 883576c2d718ad7f604415e02a898f1f917d5b86 | diff --git a/faker/providers/misc/__init__.py b/faker/providers/misc/__init__.py
index 32531a60..9b318691 100644
--- a/faker/providers/misc/__init__.py
+++ b/faker/providers/misc/__init__.py
@@ -88,13 +88,33 @@ class Provider(BaseProvider):
@param lower_case: Boolean. Whether to use lower letters
@ret... | Param switches on faker.password() don't guarantee valid password
The format switches on `faker.password()` (`special_chars, digits, upper_case, lower_case`) don't always return passwords matching those rules.
This is problematic as when using generated passwords in unit tests, where passwords must conform to validi... | joke2k/faker | diff --git a/faker/tests/__init__.py b/faker/tests/__init__.py
index 4eeaa3c7..6502a448 100644
--- a/faker/tests/__init__.py
+++ b/faker/tests/__init__.py
@@ -9,6 +9,7 @@ import json
import os
import time
import unittest
+import string
import sys
try:
@@ -458,6 +459,22 @@ class FactoryTestCase(unittest.TestCase)... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_pytest_match_arg"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 0
},
"num_modified_files": 1
} | 0.5 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
"faker/tests/requirements.txt"
],
"test_cmd"... | dnspython==2.7.0
email_validator==2.2.0
exceptiongroup==1.2.2
-e git+https://github.com/joke2k/faker.git@9f338881f582807fd9d1339b6148b039f8141bb3#egg=fake_factory
idna==3.10
iniconfig==2.1.0
mock==1.0.1
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
python-dateutil==2.9.0.post0
six==1.17.0
tomli==2.2.1
UkPostcodeParser==1... | name: faker
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=11.... | [
"faker/tests/__init__.py::FactoryTestCase::test_password"
] | [] | [
"faker/tests/__init__.py::ShimsTestCase::test_counter",
"faker/tests/__init__.py::UtilsTestCase::test_add_dicts",
"faker/tests/__init__.py::UtilsTestCase::test_choice_distribution",
"faker/tests/__init__.py::UtilsTestCase::test_find_available_locales",
"faker/tests/__init__.py::UtilsTestCase::test_find_avai... | [] | MIT License | 341 | 426 | [
"faker/providers/misc/__init__.py"
] | |
mogproject__color-ssh-11 | 9adb19916b0205fd6a88beddcd8669114edc449c | 2015-12-23 11:42:42 | 8ef23299ceb4e19e5d33562edb0066686eead51d | diff --git a/src/color_ssh/__init__.py b/src/color_ssh/__init__.py
index b794fd4..df9144c 100644
--- a/src/color_ssh/__init__.py
+++ b/src/color_ssh/__init__.py
@@ -1,1 +1,1 @@
-__version__ = '0.1.0'
+__version__ = '0.1.1'
diff --git a/src/color_ssh/color_cat.py b/src/color_ssh/color_cat.py
index a9d1412..036ced8 10064... | Kill all processes when interrupted by keyboard | mogproject/color-ssh | diff --git a/tests/color_ssh/util/__init__.py b/tests/color_ssh/util/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/tests/color_ssh/util/test_util.py b/tests/color_ssh/util/test_util.py
new file mode 100644
index 0000000..50082dc
--- /dev/null
+++ b/tests/color_ssh/util/test_util.py
@@ -0,0 +1,13 ... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_many_modified_files",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 3,
"test_score": 3
},
"num_modified_files"... | 0.1 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pep8",
"coverage",
"six",
"mog-commons"
],
"pre_install": [
"apt-get update",
"apt-get... | attrs==22.2.0
certifi==2021.5.30
-e git+https://github.com/mogproject/color-ssh.git@9adb19916b0205fd6a88beddcd8669114edc449c#egg=color_ssh
coverage==6.2
importlib-metadata==4.8.3
iniconfig==1.1.1
Jinja2==3.0.3
MarkupSafe==2.0.1
mog-commons==0.2.3
packaging==21.3
pep8==1.7.1
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pyt... | name: color-ssh
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- ... | [
"tests/color_ssh/util/test_util.py::TestUtil::test_exception_handler"
] | [] | [] | [] | null | 351 | 1,327 | [
"src/color_ssh/__init__.py",
"src/color_ssh/color_cat.py",
"src/color_ssh/color_ssh.py",
"src/color_ssh/util/util.py"
] | |
mogproject__color-ssh-12 | b39783565319ee50b34988c29193f02a90122e2c | 2015-12-26 06:06:56 | 8ef23299ceb4e19e5d33562edb0066686eead51d | diff --git a/src/color_ssh/__init__.py b/src/color_ssh/__init__.py
index df9144c..10939f0 100644
--- a/src/color_ssh/__init__.py
+++ b/src/color_ssh/__init__.py
@@ -1,1 +1,1 @@
-__version__ = '0.1.1'
+__version__ = '0.1.2'
diff --git a/src/color_ssh/color_ssh.py b/src/color_ssh/color_ssh.py
index 1d2e798..e575962 10064... | Support port option in host list and host string | mogproject/color-ssh | diff --git a/tests/color_ssh/test_color_ssh.py b/tests/color_ssh/test_color_ssh.py
index 67684f8..e2fc45a 100644
--- a/tests/color_ssh/test_color_ssh.py
+++ b/tests/color_ssh/test_color_ssh.py
@@ -62,14 +62,15 @@ class TestSetting(TestCase):
('server-4', ['ssh', 'server-4', 'pwd']),
('server-5... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_many_modified_files",
"has_many_hunks",
"has_pytest_match_arg"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 3,
"test_score": 3... | 0.1 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"six",
"mog-commons>=0.2.2"
],
"pre_install": null,
"python": "3.9",
"reqs_path":... | -e git+https://github.com/mogproject/color-ssh.git@b39783565319ee50b34988c29193f02a90122e2c#egg=color_ssh
coverage==7.8.0
exceptiongroup==1.2.2
iniconfig==2.1.0
Jinja2==3.1.6
MarkupSafe==3.0.2
mog-commons==0.2.3
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
pytest-cov==6.0.0
six==1.17.0
tomli==2.2.1
| name: color-ssh
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng... | [
"tests/color_ssh/test_color_ssh.py::TestSetting::test_parse_args",
"tests/color_ssh/test_color_ssh.py::TestSetting::test_parse_host_error"
] | [] | [
"tests/color_ssh/test_color_ssh.py::TestSetting::test_parse_args_error",
"tests/color_ssh/test_color_ssh.py::TestMain::test_main_load_error",
"tests/color_ssh/test_color_ssh.py::TestMain::test_main_multi_proc",
"tests/color_ssh/test_color_ssh.py::TestMain::test_main_single_proc",
"tests/color_ssh/test_color... | [] | null | 352 | 766 | [
"src/color_ssh/__init__.py",
"src/color_ssh/color_ssh.py"
] | |
ntoll__uflash-9 | 28bc481b67d67cc20aacc1191c87ac1e4c59bb34 | 2016-01-04 21:42:12 | 28bc481b67d67cc20aacc1191c87ac1e4c59bb34 | ntoll: I'll try to get this reviewed and merged this evening.
funkyHat: I've pushed another branch which fixes the test coverage (although one of the new tests is a bit of a beast...)
Also removed `uflash help` as mentioned above: https://github.com/funkyHat/uflash/tree/unhexlify-plus
ntoll: Can you merge the new bran... | diff --git a/uflash.py b/uflash.py
index 61fe83d..f5cd8a6 100644
--- a/uflash.py
+++ b/uflash.py
@@ -3,6 +3,7 @@
This module contains functions for turning a Python script into a .hex file
and flashing it onto a BBC micro:bit.
"""
+import argparse
import sys
import os
import struct
@@ -19,8 +20,6 @@ _SCRIPT_ADDR ... | Add ability to extract Python code from a .hex file.
Because sometimes, you don't save the source file... ;-) | ntoll/uflash | diff --git a/tests/test_uflash.py b/tests/test_uflash.py
index 5434084..eb0c87c 100644
--- a/tests/test_uflash.py
+++ b/tests/test_uflash.py
@@ -39,6 +39,15 @@ def test_hexlify():
assert len(lines) == 5
+def test_unhexlify():
+ """
+ Ensure that we can get the script back out using unhexlify
+ """
+ ... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 3,
"test_score": 0
},
"num_modified_files": 1
} | unknown | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
"requirements.txt"
],
"test_cmd": "pytest --... | alabaster==0.7.16
babel==2.17.0
certifi==2025.1.31
charset-normalizer==3.4.1
coverage==7.8.0
docutils==0.21.2
exceptiongroup==1.2.2
idna==3.10
imagesize==1.4.1
importlib_metadata==8.6.1
iniconfig==2.1.0
Jinja2==3.1.6
MarkupSafe==3.0.2
packaging==24.2
pep8==1.7.1
pluggy==1.5.0
pyflakes==3.3.1
Pygments==2.19.1
pytest==8.... | name: uflash
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=11... | [
"tests/test_uflash.py::test_unhexlify",
"tests/test_uflash.py::test_extract",
"tests/test_uflash.py::test_extract_not_valid_hex",
"tests/test_uflash.py::test_extract_no_python",
"tests/test_uflash.py::test_extract_command",
"tests/test_uflash.py::test_extract_paths",
"tests/test_uflash.py::test_extract_... | [] | [
"tests/test_uflash.py::test_get_version",
"tests/test_uflash.py::test_hexlify",
"tests/test_uflash.py::test_hexlify_empty_script",
"tests/test_uflash.py::test_embed_hex",
"tests/test_uflash.py::test_embed_no_python",
"tests/test_uflash.py::test_embed_no_runtime",
"tests/test_uflash.py::test_find_microbi... | [] | MIT License | 368 | 1,292 | [
"uflash.py"
] |
m-lab__bigsanity-17 | 7bb4df0ddb204026af693e91f33e13a039f66a3d | 2016-01-11 18:53:45 | 7bb4df0ddb204026af693e91f33e13a039f66a3d | diff --git a/bigsanity/query_construct.py b/bigsanity/query_construct.py
index 58e1b2d..cead3cd 100644
--- a/bigsanity/query_construct.py
+++ b/bigsanity/query_construct.py
@@ -102,6 +102,26 @@ def _project_has_intermediate_snapshots(project):
project == constants.PROJECT_ID_NPAD)
+def _project_to_time... | paris_traceroute uses log_time
paris_traceroute data uses `log_time` rather than `web100_log_entry.log_time` since Paris Traceroute is not web100 based. We need to adjust the query construction to address this. | m-lab/bigsanity | diff --git a/tests/test_query_construct.py b/tests/test_query_construct.py
index 22441d3..a64f523 100644
--- a/tests/test_query_construct.py
+++ b/tests/test_query_construct.py
@@ -284,8 +284,8 @@ class TableEquivalenceQueryGeneratorTest(unittest.TestCase):
plx.google:m_lab.2015_01.all
WHE... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 2
},
"num_modified_files": 1
} | unknown | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -r requirements.txt && pip install -r test-requirements.txt",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov"
],
"pre_install": null,
"python": "3.... | coverage==7.8.0
exceptiongroup==1.2.2
iniconfig==2.1.0
mock==5.2.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
pytest-cov==6.0.0
python-dateutil==2.9.0.post0
six==1.17.0
tomli==2.2.1
| name: bigsanity
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng... | [
"tests/test_query_construct.py::TableEquivalenceQueryGeneratorTest::test_correct_query_generation_for_paris_traceroute"
] | [] | [
"tests/test_query_construct.py::TableEquivalenceQueryGeneratorTest::test_correct_query_generation_for_ndt_across_months",
"tests/test_query_construct.py::TableEquivalenceQueryGeneratorTest::test_correct_query_generation_for_ndt_full_month",
"tests/test_query_construct.py::TableEquivalenceQueryGeneratorTest::tes... | [] | Apache License 2.0 | 373 | 599 | [
"bigsanity/query_construct.py"
] | |
Pylons__webob-230 | 9400c049d05c8ba350daf119aa16ded24ece31f6 | 2016-01-12 17:50:01 | 9400c049d05c8ba350daf119aa16ded24ece31f6 | diff --git a/webob/exc.py b/webob/exc.py
index 57a81b5..044c00a 100644
--- a/webob/exc.py
+++ b/webob/exc.py
@@ -165,10 +165,12 @@ References:
"""
+import json
from string import Template
import re
import sys
+from webob.acceptparse import Accept
from webob.compat import (
class_types,
text_,
@@ -2... | Allow for JSON Exception Bodies
I'm currently working on several projects that provide a JSON API using WebOb. Currently, however, whenever we use a `webob.exc` exception to return an error to the user (e.g., `webob.exc.HTTPBadRequest`) the body of that message is always in a content-type other than what they're expect... | Pylons/webob | diff --git a/tests/test_exc.py b/tests/test_exc.py
index dcb1fed..8204783 100644
--- a/tests/test_exc.py
+++ b/tests/test_exc.py
@@ -1,3 +1,5 @@
+import json
+
from webob.request import Request
from webob.dec import wsgify
from webob import exc as webob_exc
@@ -119,6 +121,57 @@ def test_WSGIHTTPException_html_body_w... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 1
},
"num_modified_files": 1
} | 1.5 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[testing]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line -... | coverage==7.8.0
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
nose==1.3.7
packaging @ file:///croot/packaging_1734472117206/work
pluggy @ file:///croot/pluggy_1733169602837/work
pytest @ file:///croot/pytest_1738938843180/work
to... | name: webob
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- exceptiongroup=1.2.0=py39h06a4308_0
- iniconfig=1.1.1=pyhd3eb1b0_0
- ld_im... | [
"tests/test_exc.py::test_WSGIHTTPException_json_body_no_comment",
"tests/test_exc.py::test_WSGIHTTPException_respects_application_json",
"tests/test_exc.py::test_WSGIHTTPException_allows_custom_json_formatter"
] | [] | [
"tests/test_exc.py::test_noescape_null",
"tests/test_exc.py::test_noescape_not_basestring",
"tests/test_exc.py::test_noescape_unicode",
"tests/test_exc.py::test_strip_tags_empty",
"tests/test_exc.py::test_strip_tags_newline_to_space",
"tests/test_exc.py::test_strip_tags_zaps_carriage_return",
"tests/tes... | [] | null | 376 | 596 | [
"webob/exc.py"
] | |
wong2__pick-3 | 38bab1f33ff03936906435d5458765493e4c2c1c | 2016-01-20 08:40:03 | 38bab1f33ff03936906435d5458765493e4c2c1c | diff --git a/example/scroll.py b/example/scroll.py
new file mode 100644
index 0000000..6f34b22
--- /dev/null
+++ b/example/scroll.py
@@ -0,0 +1,10 @@
+#-*-coding:utf-8-*-
+
+from __future__ import print_function
+
+from pick import pick
+
+title = 'Select:'
+options = ['foo.bar%s.baz' % x for x in range(1, 71)]
+option... | Long lists issue
I have an issue with `pick` while passing a long list, here is an example you can try it:
```python
from pick import pick
title = 'Select: '
options = ['foo.bar1.baz', 'foo.bar2.baz', 'foo.bar3.baz', 'foo.bar4.baz', 'foo.bar5.baz', 'foo.bar6.baz', 'foo.bar7.baz','foo.bar8.baz', 'foo.bar9.baz', ... | wong2/pick | diff --git a/tests/test_pick.py b/tests/test_pick.py
index f5b7dd4..21eecc4 100644
--- a/tests/test_pick.py
+++ b/tests/test_pick.py
@@ -1,12 +1,12 @@
#-*-coding:utf-8-*-
import unittest
-from pick import pick, Picker
+from pick import Picker
class TestPick(unittest.TestCase):
- def test_pick(self):
+ ... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_added_files"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 3
},
"num_modified_files": 1
} | unknown | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"nose",
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=lin... | exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
nose==1.3.7
packaging @ file:///croot/packaging_1734472117206/work
-e git+https://github.com/wong2/pick.git@38bab1f33ff03936906435d5458765493e4c2c1c#egg=pick
pluggy @ file:///croot/pl... | name: pick
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- exceptiongroup=1.2.0=py39h06a4308_0
- iniconfig=1.1.1=pyhd3eb1b0_0
- ld_imp... | [
"tests/test_pick.py::TestPick::test_get_lines",
"tests/test_pick.py::TestPick::test_no_title"
] | [] | [
"tests/test_pick.py::TestPick::test_default_index",
"tests/test_pick.py::TestPick::test_move_up_down"
] | [] | MIT License | 390 | 976 | [
"pick/__init__.py"
] | |
joke2k__faker-325 | 326e22d5752e0a28baee59c57ed0f49935de9059 | 2016-01-22 19:57:09 | 883576c2d718ad7f604415e02a898f1f917d5b86 | diff --git a/faker/providers/lorem/__init__.py b/faker/providers/lorem/__init__.py
index 5f07712d..dea4dd36 100644
--- a/faker/providers/lorem/__init__.py
+++ b/faker/providers/lorem/__init__.py
@@ -8,7 +8,8 @@ class Provider(BaseProvider):
@classmethod
def word(cls):
"""
- :example 'Lorem'
+ ... | Add ability to generate lorem characters without punctuation
Sometimes I want to generate a string of characters of a specific length without any punctuation or capitalization but the lorem provider currently does not allow for this. | joke2k/faker | diff --git a/faker/tests/__init__.py b/faker/tests/__init__.py
index 8c20e3d5..802bee4c 100644
--- a/faker/tests/__init__.py
+++ b/faker/tests/__init__.py
@@ -499,6 +499,20 @@ class FactoryTestCase(unittest.TestCase):
sentence = provider.sentence(0)
self.assertEqual(sentence, '')
+ def test_rando... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_many_modified_files"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 3
},
"num_modified_files": 2
} | 0.5 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path... | exceptiongroup==1.2.2
-e git+https://github.com/joke2k/faker.git@326e22d5752e0a28baee59c57ed0f49935de9059#egg=fake_factory
iniconfig==2.1.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
python-dateutil==2.9.0.post0
six==1.17.0
tomli==2.2.1
| name: faker
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=11.... | [
"faker/tests/__init__.py::FactoryTestCase::test_random_pystr_characters"
] | [] | [
"faker/tests/__init__.py::ShimsTestCase::test_counter",
"faker/tests/__init__.py::UtilsTestCase::test_add_dicts",
"faker/tests/__init__.py::UtilsTestCase::test_choice_distribution",
"faker/tests/__init__.py::UtilsTestCase::test_find_available_locales",
"faker/tests/__init__.py::UtilsTestCase::test_find_avai... | [] | MIT License | 393 | 287 | [
"faker/providers/lorem/__init__.py",
"faker/providers/python/__init__.py"
] | |
docker__docker-py-911 | 446e6d08dd569194a27bb354a184b7d94ecf5e48 | 2016-01-29 00:27:19 | 4c34be5d4ab8a5a017950712e9c96b56d78d1c58 | diff --git a/docker/client.py b/docker/client.py
index fb186cc7..7d1f7c46 100644
--- a/docker/client.py
+++ b/docker/client.py
@@ -45,17 +45,17 @@ class Client(
timeout=constants.DEFAULT_TIMEOUT_SECONDS, tls=False):
super(Client, self).__init__()
- if tls and (not base_url or not bas... | Problem when using the DOCKER_HOST variable in combination with docker-compose and https://
Hi,
I'm trying to use docker & docker-compose with the DOCKER_HOST env-variable to control a remote docker-host.
at first I configured the variables on the docker client machine as follows:
export DOCKER_CERT_PATH=/... | docker/docker-py | diff --git a/tests/unit/utils_test.py b/tests/unit/utils_test.py
index 83d2a98d..63ea10e7 100644
--- a/tests/unit/utils_test.py
+++ b/tests/unit/utils_test.py
@@ -360,6 +360,11 @@ class ParseHostTest(base.BaseTestCase):
assert parse_host(val, 'win32') == tcp_port
+ def test_parse_host_tls(self):
+ ... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_hyperlinks",
"has_many_modified_files"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 2
},
"num_modified_files": 2
} | 1.7 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path... | -e git+https://github.com/docker/docker-py.git@446e6d08dd569194a27bb354a184b7d94ecf5e48#egg=docker_py
exceptiongroup==1.2.2
iniconfig==2.1.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
requests==2.5.3
six==1.17.0
tomli==2.2.1
websocket_client==0.32.0
| name: docker-py
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng... | [
"tests/unit/utils_test.py::ParseHostTest::test_parse_host_tls"
] | [] | [
"tests/unit/utils_test.py::HostConfigTest::test_create_endpoint_config_with_aliases",
"tests/unit/utils_test.py::HostConfigTest::test_create_host_config_invalid_cpu_cfs_types",
"tests/unit/utils_test.py::HostConfigTest::test_create_host_config_no_options",
"tests/unit/utils_test.py::HostConfigTest::test_creat... | [] | Apache License 2.0 | 401 | 492 | [
"docker/client.py",
"docker/utils/utils.py"
] | |
networkx__networkx-1963 | ec6dfae2aaebbbbf0a4620002ab795efa6430c25 | 2016-01-29 18:00:19 | ec6dfae2aaebbbbf0a4620002ab795efa6430c25 | diff --git a/networkx/algorithms/core.py b/networkx/algorithms/core.py
index 2091bb97f..c98c7d77c 100644
--- a/networkx/algorithms/core.py
+++ b/networkx/algorithms/core.py
@@ -4,30 +4,41 @@
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
+#
+# Authors: Dan Schult (dschult@colgate.edu)... | k-core algorithm produces incorrect output for DiGraph
As per title, calling `nx.k_core(G, k = x)` does not return the x-core of a graph, if `G` is a `DiGraph`.
See attached file.
[6954_2011.txt](https://github.com/networkx/networkx/files/105086/6954_2011.txt)
To reproduce, run:
```python
import netw... | networkx/networkx | diff --git a/networkx/algorithms/tests/test_core.py b/networkx/algorithms/tests/test_core.py
index 48399aeed..7119159c8 100644
--- a/networkx/algorithms/tests/test_core.py
+++ b/networkx/algorithms/tests/test_core.py
@@ -2,8 +2,8 @@
from nose.tools import *
import networkx as nx
-class TestCore:
+class TestCore:
... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 0
},
"num_modified_files": 1
} | 1.112 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"nose",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y libgdal-dev graphviz"
],
"pyth... | attrs==22.2.0
certifi==2021.5.30
decorator==5.1.1
importlib-metadata==4.8.3
iniconfig==1.1.1
-e git+https://github.com/networkx/networkx.git@ec6dfae2aaebbbbf0a4620002ab795efa6430c25#egg=networkx
nose==1.3.7
packaging==21.3
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
tomli==1.2.3
typing_extensions==4.1.1
zip... | name: networkx
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- l... | [
"networkx/algorithms/tests/test_core.py::TestCore::test_directed_find_cores"
] | [
"networkx/algorithms/tests/test_core.py::TestCore::test_find_cores",
"networkx/algorithms/tests/test_core.py::TestCore::test_core_number",
"networkx/algorithms/tests/test_core.py::TestCore::test_find_cores2",
"networkx/algorithms/tests/test_core.py::TestCore::test_main_core",
"networkx/algorithms/tests/test... | [
"networkx/algorithms/tests/test_core.py::TestCore::test_trivial"
] | [] | BSD 3-Clause | 403 | 2,654 | [
"networkx/algorithms/core.py"
] | |
ifosch__accloudtant-52 | 71d752b9244ff84978a83413be84035a92d5c077 | 2016-01-30 11:16:12 | 71d752b9244ff84978a83413be84035a92d5c077 | diff --git a/accloudtant/aws/reports.py b/accloudtant/aws/reports.py
index 26af2d1..905018e 100644
--- a/accloudtant/aws/reports.py
+++ b/accloudtant/aws/reports.py
@@ -16,10 +16,13 @@ class Reports(object):
def find_reserved_instance(self):
for instance in self.instances:
- instance.current ... | Add price information to EC2 instances information
<!---
@huboard:{"order":6.0732421875,"milestone_order":0.09375,"custom_state":""}
-->
| ifosch/accloudtant | diff --git a/tests/aws/report_expected.txt b/tests/aws/report_expected.txt
index 928efa2..f2bbb8b 100644
--- a/tests/aws/report_expected.txt
+++ b/tests/aws/report_expected.txt
@@ -1,9 +1,9 @@
-Id Name Type AZ OS State Launch time Reserved
----------- -... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 3,
"test_score": 2
},
"num_modified_files": 1
} | unknown | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path": [
... | -e git+https://github.com/ifosch/accloudtant.git@71d752b9244ff84978a83413be84035a92d5c077#egg=accloudtant
boto3==1.37.23
botocore==1.37.23
certifi==2025.1.31
charset-normalizer==3.4.1
click==8.1.8
exceptiongroup==1.2.2
idna==3.10
iniconfig==2.1.0
jmespath==1.0.1
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
python-dateut... | name: accloudtant
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-... | [
"tests/aws/test_reports.py::test_reports"
] | [] | [
"tests/aws/test_instance.py::test_instance",
"tests/aws/test_instance.py::test_guess_os",
"tests/aws/test_instance.py::test_match_reserved_instance",
"tests/aws/test_prices.py::test_process_ec2",
"tests/aws/test_prices.py::test_process_model",
"tests/aws/test_prices.py::test_process_generic",
"tests/aws... | [] | null | 405 | 406 | [
"accloudtant/aws/reports.py"
] | |
guykisel__inline-plz-28 | 59cb7f9721ca3390fa31c48583e786e3728e8f1a | 2016-01-31 22:54:38 | 59cb7f9721ca3390fa31c48583e786e3728e8f1a | diff --git a/inlineplz/linters/__init__.py b/inlineplz/linters/__init__.py
index f4b0a73..420508e 100644
--- a/inlineplz/linters/__init__.py
+++ b/inlineplz/linters/__init__.py
@@ -13,7 +13,7 @@ from inlineplz import parsers
LINTERS = {
'prospector': {
'install': ['pip', 'install', 'prospector'],
- ... | refactor prospector parser to use json formatter | guykisel/inline-plz | diff --git a/tests/parsers/test_prospector.py b/tests/parsers/test_prospector.py
index f673b81..fbba037 100644
--- a/tests/parsers/test_prospector.py
+++ b/tests/parsers/test_prospector.py
@@ -17,14 +17,12 @@ prospector_path = os.path.join(
def test_prospector():
with open(prospector_path) as inputfile:
... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_many_modified_files"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 2
},
"num_modified_files": 2
} | unknown | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"numpy>=1.16.0",
"pandas>=1.0.0",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y... | certifi==2025.1.31
cffi==1.17.1
charset-normalizer==3.4.1
cryptography==44.0.2
exceptiongroup==1.2.2
github3.py==4.0.1
idna==3.10
iniconfig==2.1.0
-e git+https://github.com/guykisel/inline-plz.git@59cb7f9721ca3390fa31c48583e786e3728e8f1a#egg=inlineplz
numpy==2.0.2
packaging==24.2
pandas==2.2.3
pluggy==1.5.0
pycparser==... | name: inline-plz
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-n... | [
"tests/parsers/test_prospector.py::test_prospector"
] | [] | [] | [] | ISC License | 407 | 679 | [
"inlineplz/linters/__init__.py",
"inlineplz/parsers/prospector.py"
] | |
JonathonReinhart__scuba-42 | 9aa705d7d0419f1930ae034e2210d69f66f5bf2a | 2016-02-01 13:01:13 | 9aa705d7d0419f1930ae034e2210d69f66f5bf2a | diff --git a/scuba/__main__.py b/scuba/__main__.py
index 57f8671..4a54fae 100755
--- a/scuba/__main__.py
+++ b/scuba/__main__.py
@@ -217,7 +217,7 @@ def main(argv=None):
if g_verbose or scuba_args.dry_run:
appmsg('Docker command line:')
- print(format_cmdline(run_args))
+ print('$ ' + form... | utils.format_cmdline misses last line
It appears that utils.format_cmdline fails to yield the last accumulated line.
This also means that a better test could be written, which splits the result back out, and compares it to the list of input arguments. | JonathonReinhart/scuba | diff --git a/tests/test_utils.py b/tests/test_utils.py
new file mode 100644
index 0000000..ff9ad97
--- /dev/null
+++ b/tests/test_utils.py
@@ -0,0 +1,49 @@
+from __future__ import print_function
+
+from nose.tools import *
+from unittest import TestCase
+
+import logging
+import shlex
+from itertools import chain
+
+fr... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_many_modified_files"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 1
},
"num_modified_files": 2
} | 1.4 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"nose",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.5",
"re... | attrs==22.2.0
certifi==2021.5.30
coverage==3.7.1
importlib-metadata==4.8.3
iniconfig==1.1.1
nose==1.3.7
packaging==21.3
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
PyYAML==6.0.1
-e git+https://github.com/JonathonReinhart/scuba.git@9aa705d7d0419f1930ae034e2210d69f66f5bf2a#egg=SCUBA
tomli==1.2.3
typing_extens... | name: scuba
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libf... | [
"tests/test_utils.py::TestUtils::test_basic"
] | [] | [] | [] | MIT License | 409 | 483 | [
"scuba/__main__.py",
"scuba/utils.py"
] | |
scieloorg__xylose-88 | 09b42b365b375904f5d7102277e3f4e4a3d59e7f | 2016-02-12 14:15:41 | 09b42b365b375904f5d7102277e3f4e4a3d59e7f | diff --git a/setup.py b/setup.py
index 7516cbd..d1e1950 100755
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ except ImportError:
setup(
name="xylose",
- version='0.42',
+ version='0.43',
description="A SciELO library to abstract a JSON data structure that is a product of the ISIS2JSON conversion usin... | Incluir metodo para recuperar subtitulo do periódico v110
Incluir metodo para recuperar subtitulo do periódico v110 (subtitle)
Incluir metodo para recuperar titulo do periódico concatenado com subtitulo do periódico v110 (full_title) | scieloorg/xylose | diff --git a/tests/test_document.py b/tests/test_document.py
index 6ade9eb..7405ad9 100644
--- a/tests/test_document.py
+++ b/tests/test_document.py
@@ -623,11 +623,47 @@ class JournalTests(unittest.TestCase):
def test_journal_title_nlm(self):
self.fulldoc['title']['v421'] = [{u'_': u'Acta Limnologica B... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_many_modified_files",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 3,
"test_score": 0
},
"num_modified_files"... | 0.42 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc pandoc"
],
"pyt... | coverage==7.8.0
exceptiongroup==1.2.2
iniconfig==2.1.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
pytest-cov==6.0.0
tomli==2.2.1
-e git+https://github.com/scieloorg/xylose.git@09b42b365b375904f5d7102277e3f4e4a3d59e7f#egg=xylose
| name: xylose
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=11... | [
"tests/test_document.py::JournalTests::test_journal_fulltitle",
"tests/test_document.py::JournalTests::test_journal_fulltitle_without_subtitle",
"tests/test_document.py::JournalTests::test_journal_fulltitle_without_title",
"tests/test_document.py::JournalTests::test_journal_subtitle",
"tests/test_document.p... | [] | [
"tests/test_document.py::ToolsTests::test_get_date_wrong_day",
"tests/test_document.py::ToolsTests::test_get_date_wrong_day_month",
"tests/test_document.py::ToolsTests::test_get_date_wrong_day_month_not_int",
"tests/test_document.py::ToolsTests::test_get_date_wrong_day_not_int",
"tests/test_document.py::Too... | [] | BSD 2-Clause "Simplified" License | 426 | 1,301 | [
"setup.py",
"xylose/scielodocument.py"
] | |
harlowja__fasteners-23 | 8b63aafd5a9cde3e506810b5df52174d016edd2d | 2016-02-15 22:24:40 | 8b63aafd5a9cde3e506810b5df52174d016edd2d | diff --git a/fasteners/process_lock.py b/fasteners/process_lock.py
index b5b7405..72e4f4d 100644
--- a/fasteners/process_lock.py
+++ b/fasteners/process_lock.py
@@ -214,30 +214,44 @@ class _InterProcessLock(object):
return os.path.exists(self.path)
def trylock(self):
- raise NotImplementedError()... | Process Lock tests assume POSIX
The `test_process_lock` module assumes we're on a POSIX system.
It *looks* like it can be fixed pretty easily, but I really don't know much about the details of locking on various platforms.
Here we import `fcntl`: https://github.com/harlowja/fasteners/blob/master/fasteners/tests/t... | harlowja/fasteners | diff --git a/fasteners/tests/test_process_lock.py b/fasteners/tests/test_process_lock.py
index 9e96589..d31632d 100644
--- a/fasteners/tests/test_process_lock.py
+++ b/fasteners/tests/test_process_lock.py
@@ -15,12 +15,12 @@
# License for the specific language governing permissions and limitations
# under the L... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 1
},
"num_modified_files": 1
} | 0.14 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"nose",
"testtools",
"pytest"
],
"pre_install": null,
"python": "3.5",
"reqs_path": null,
"test_cmd": "pytest --no-he... | attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
-e git+https://github.com/harlowja/fasteners.git@8b63aafd5a9cde3e506810b5df52174d016edd2d#egg=fasteners
fixtures==4.0.1
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/re... | name: fasteners
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- attrs=21.4.0=pyhd3eb1b0_0
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- importl... | [
"fasteners/tests/test_process_lock.py::ProcessLockTest::test_lock_externally",
"fasteners/tests/test_process_lock.py::ProcessLockTest::test_lock_externally_lock_dir_not_exist"
] | [] | [
"fasteners/tests/test_process_lock.py::ProcessLockTest::test_bad_acquire",
"fasteners/tests/test_process_lock.py::ProcessLockTest::test_bad_release",
"fasteners/tests/test_process_lock.py::ProcessLockTest::test_interprocess_lock",
"fasteners/tests/test_process_lock.py::ProcessLockTest::test_lock_acquire_relea... | [] | Apache License 2.0 | 434 | 483 | [
"fasteners/process_lock.py"
] | |
nose-devs__nose2-268 | bbf5897eb1aa224100e86ba594042e4399fd2f5f | 2016-02-16 09:53:50 | bbf5897eb1aa224100e86ba594042e4399fd2f5f | little-dude: It's still failing when using the `uses` decorator. Added a test for this. | diff --git a/nose2/suite.py b/nose2/suite.py
index b52e0cb..f107489 100644
--- a/nose2/suite.py
+++ b/nose2/suite.py
@@ -22,6 +22,7 @@ class LayerSuite(unittest.BaseTestSuite):
self.wasSetup = False
def run(self, result):
+ self.handle_previous_test_teardown(result)
if not self._safeMeth... | such and normal test cases: mixed up call order of it.has_setup and setUpClass
As it is a little bit complicated to explain, I have created a working example as a gist: https://gist.github.com/jrast/109f70f9b4c52bab4252
I have several "normal" UnitTestCases and a few such tests. The problem is that the setUpClass ca... | nose-devs/nose2 | diff --git a/nose2/tests/functional/support/scenario/layers_and_non_layers/__init__.py b/nose2/tests/functional/support/scenario/layers_and_non_layers/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/nose2/tests/functional/support/scenario/layers_and_non_layers/common.py b/nose2/tests/functional/sup... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_hyperlinks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 0
},
"num_modified_files": 1
} | 0.5 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"nose2",
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
"requirements.txt"
],
"test_cmd... | cov-core==1.15.0
coverage==7.8.0
exceptiongroup==1.2.2
iniconfig==2.1.0
-e git+https://github.com/nose-devs/nose2.git@bbf5897eb1aa224100e86ba594042e4399fd2f5f#egg=nose2
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
six==1.17.0
tomli==2.2.1
| name: nose2
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=11.... | [
"nose2/tests/functional/test_layers_plugin.py::TestLayers::test_layers_and_non_layers"
] | [
"nose2/tests/functional/support/scenario/layers_and_non_layers/test_layers.py::LayerTest1::test",
"nose2/tests/functional/support/scenario/layers_and_non_layers/test_layers.py::LayerTest2::test",
"nose2/tests/functional/support/scenario/layers_and_non_layers/test_layers.py::LayerTest3::test",
"nose2/tests/fun... | [
"nose2/tests/functional/support/scenario/layers_and_non_layers/common.py::NormalTest::test",
"nose2/tests/functional/support/scenario/layers_and_non_layers/common.py::NormalTestTwo::test",
"nose2/tests/functional/support/scenario/layers_and_non_layers/test_layers.py::NormalTest::test",
"nose2/tests/functional... | [] | BSD | 435 | 294 | [
"nose2/suite.py"
] |
typesafehub__conductr-cli-111 | 76f795642d4d2220be0eddf75bcf8e933a7b6821 | 2016-02-23 01:04:09 | 76f795642d4d2220be0eddf75bcf8e933a7b6821 | diff --git a/conductr_cli/resolvers/bintray_resolver.py b/conductr_cli/resolvers/bintray_resolver.py
index 8f892b1..cfb0ce9 100644
--- a/conductr_cli/resolvers/bintray_resolver.py
+++ b/conductr_cli/resolvers/bintray_resolver.py
@@ -10,6 +10,7 @@ import requests
BINTRAY_API_BASE_URL = 'https://api.bintray.com'
BINT... | Unable to access non-default org and repo with bintray resolver
Note how the URL duplicates the org and file name, even when you don't specify an org.
`conduct load typesafe/internal-bundle/typesafe-website`
```
Retrieving https://dl.bintray.com/typesafe/internal-bundle/typesafe/typesafe-website/v1-075dbb07a... | typesafehub/conductr-cli | diff --git a/conductr_cli/resolvers/test/test_bintray_resolver.py b/conductr_cli/resolvers/test/test_bintray_resolver.py
index cf68b72..2c8a77b 100644
--- a/conductr_cli/resolvers/test/test_bintray_resolver.py
+++ b/conductr_cli/resolvers/test/test_bintray_resolver.py
@@ -32,7 +32,8 @@ class TestResolveBundle(TestCase)... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_hyperlinks",
"has_many_modified_files",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 2
},
"num_modified_files": 2
} | 0.24 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest",
"flake8"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path"... | argcomplete==3.6.1
arrow==1.3.0
certifi==2025.1.31
charset-normalizer==3.4.1
-e git+https://github.com/typesafehub/conductr-cli.git@76f795642d4d2220be0eddf75bcf8e933a7b6821#egg=conductr_cli
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
flake8==7.2.0
idna==3.10
iniconfig @ file:///home/linux1/recipes/... | name: conductr-cli
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- exceptiongroup=1.2.0=py39h06a4308_0
- iniconfig=1.1.1=pyhd3eb1b0_0
... | [
"conductr_cli/resolvers/test/test_bintray_resolver.py::TestResolveBundle::test_bintray_version_found"
] | [] | [
"conductr_cli/resolvers/test/test_bintray_resolver.py::TestResolveBundle::test_bintray_version_not_found",
"conductr_cli/resolvers/test/test_bintray_resolver.py::TestResolveBundle::test_failure_http_error",
"conductr_cli/resolvers/test/test_bintray_resolver.py::TestResolveBundle::test_failure_malformed_bundle_u... | [] | Apache License 2.0 | 448 | 753 | [
"conductr_cli/resolvers/bintray_resolver.py",
"conductr_cli/resolvers/uri_resolver.py"
] | |
scieloorg__xylose-96 | df12890d7e4d8d986f33844513b9d4f68a148fda | 2016-02-25 18:06:10 | df12890d7e4d8d986f33844513b9d4f68a148fda | fabiobatalha: Puesdes escribir un testcase para eso.
swarzesherz: Actualizado con testcase
fabiobatalha: Desculpe não ter comentado antes.
Acho que seria legal também incluir no retorno do Xylose a version ISO do país, quando existir e for válida.
swarzesherz: Actualizado, agregue affdict['country_iso_3166'] = a... | diff --git a/xylose/scielodocument.py b/xylose/scielodocument.py
index 0b42e3e..c71e5b2 100644
--- a/xylose/scielodocument.py
+++ b/xylose/scielodocument.py
@@ -1309,6 +1309,7 @@ class Article(object):
continue
normalized[aff['index']]['normalized'] = True
normaliz... | Asignación incorrecta de country en afiliaciones no normalizadas (v70)
En versiones de PC-Programs anteriores a: https://github.com/scieloorg/PC-Programs/commit/5e494a031cabb9d718970a6201f3ee6c9847b942 se realizaba la asignación del campo ```p```de la siguiente forma:
```
a['p'] = item.country if item.i_country is No... | scieloorg/xylose | diff --git a/tests/test_document.py b/tests/test_document.py
index 758d7b8..6e6b1d6 100644
--- a/tests/test_document.py
+++ b/tests/test_document.py
@@ -1751,6 +1751,13 @@ class ArticleTests(unittest.TestCase):
u"p": u"US",
u"s": u"São Paulo",
u"_": u"University of Flo... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_hyperlinks",
"has_media"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 0
},
"num_modified_files": 1
} | 1.0 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"nose",
"coverage",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "... | coverage==7.8.0
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
nose==1.3.7
packaging @ file:///croot/packaging_1734472117206/work
pluggy @ file:///croot/pluggy_1733169602837/work
pytest @ file:///croot/pytest_1738938843180/work
to... | name: xylose
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- exceptiongroup=1.2.0=py39h06a4308_0
- iniconfig=1.1.1=pyhd3eb1b0_0
- ld_i... | [
"tests/test_document.py::ArticleTests::test_affiliation_with_country_iso_3166",
"tests/test_document.py::ArticleTests::test_mixed_affiliations_1"
] | [] | [
"tests/test_document.py::ToolsTests::test_get_date_wrong_day",
"tests/test_document.py::ToolsTests::test_get_date_wrong_day_month",
"tests/test_document.py::ToolsTests::test_get_date_wrong_day_month_not_int",
"tests/test_document.py::ToolsTests::test_get_date_wrong_day_not_int",
"tests/test_document.py::Too... | [] | BSD 2-Clause "Simplified" License | 452 | 472 | [
"xylose/scielodocument.py"
] |
scieloorg__xylose-108 | 9d72bccf95503133b6fe7ef55ec88f9cf9b50a71 | 2016-02-29 21:07:48 | 743d8ca8a32b6e6e82b1ed0fc97f7d240c85cba5 | diff --git a/xylose/scielodocument.py b/xylose/scielodocument.py
index 8f9703d..8676c4a 100644
--- a/xylose/scielodocument.py
+++ b/xylose/scielodocument.py
@@ -866,6 +866,24 @@ class Journal(object):
return missions
+ @property
+ def publisher_country(self):
+ """
+ This method retriev... | Adicionar o campo ``publisher_country`` a classe Journal
Para que possamos cadastrar o publisher_country no processamento inicial do Site, precisamos que esse atributo esteja no Xylose. | scieloorg/xylose | diff --git a/tests/test_document.py b/tests/test_document.py
index 282c34f..30996d5 100644
--- a/tests/test_document.py
+++ b/tests/test_document.py
@@ -1085,6 +1085,26 @@ class JournalTests(unittest.TestCase):
self.assertIsNone(journal.mission)
+ def test_journal_publisher_country(self):
+ journ... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 0
},
"num_modified_files": 1
} | 1.1 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"pytest-mock"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"... | coverage==7.8.0
exceptiongroup==1.2.2
iniconfig==2.1.0
mocker==1.1.1
nose==1.0.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
pytest-cov==6.0.0
pytest-mock==3.14.0
tomli==2.2.1
-e git+https://github.com/scieloorg/xylose.git@9d72bccf95503133b6fe7ef55ec88f9cf9b50a71#egg=xylose
| name: xylose
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=11... | [
"tests/test_document.py::JournalTests::test_journal_publisher_country",
"tests/test_document.py::JournalTests::test_journal_publisher_country_not_findable_code",
"tests/test_document.py::JournalTests::test_journal_publisher_country_without_country"
] | [] | [
"tests/test_document.py::ToolsTests::test_get_date_wrong_day",
"tests/test_document.py::ToolsTests::test_get_date_wrong_day_month",
"tests/test_document.py::ToolsTests::test_get_date_wrong_day_month_not_int",
"tests/test_document.py::ToolsTests::test_get_date_wrong_day_not_int",
"tests/test_document.py::Too... | [] | BSD 2-Clause "Simplified" License | 455 | 248 | [
"xylose/scielodocument.py"
] | |
DataDog__datadogpy-118 | c8bc9d6cce1caebea0be16366f2cd0c3efb47571 | 2016-03-01 18:46:54 | ef81785f880925467b9eeccf5ebd5b226a05d32f | yannmh: @JohnLZeller can you take a pass on it ?
JohnLZeller: :+1: looks good once conflicts are resolved. | diff --git a/datadog/dogstatsd/base.py b/datadog/dogstatsd/base.py
index 7e0e11d..2f7725c 100644
--- a/datadog/dogstatsd/base.py
+++ b/datadog/dogstatsd/base.py
@@ -22,7 +22,7 @@ log = logging.getLogger('dogstatsd')
class DogStatsd(object):
OK, WARNING, CRITICAL, UNKNOWN = (0, 1, 2, 3)
- def __init__(self, h... | Prefix support
Please, add prefix support like Java and C#:
https://github.com/DataDog/dogstatsd-csharp-client/blob/master/src/StatsdClient/StatsdConfig.cs#L8
https://github.com/indeedeng/java-dogstatsd-client/blob/master/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java#L120 | DataDog/datadogpy | diff --git a/tests/unit/dogstatsd/test_statsd.py b/tests/unit/dogstatsd/test_statsd.py
index dacf09d..8473b87 100644
--- a/tests/unit/dogstatsd/test_statsd.py
+++ b/tests/unit/dogstatsd/test_statsd.py
@@ -149,6 +149,14 @@ class TestDogStatsd(object):
u'_sc|my_check.name|{0}|d:{1}|h:i-abcd1234|#key1:val1,ke... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_hyperlinks",
"has_many_modified_files",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 3,
"test_score": 2
},
... | 0.10 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"nose",
"six",
"mock",
"pytest"
],
"pre_install": null,
"python": "3.4",
"reqs_path": null,
"test_cmd": "pytest -... | attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
charset-normalizer==2.0.12
-e git+https://github.com/DataDog/datadogpy.git@c8bc9d6cce1caebea0be16366f2cd0c3efb47571#egg=datadog
decorator==5.1.1
idna==3.10
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/wor... | name: datadogpy
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- attrs=21.4.0=pyhd3eb1b0_0
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- importl... | [
"tests/unit/threadstats/test_threadstats.py::TestUnitThreadStats::test_metric_namespace"
] | [
"tests/unit/dogstatsd/test_statsd.py::TestDogStatsd::test_set",
"tests/unit/dogstatsd/test_statsd.py::TestDogStatsd::test_gauge",
"tests/unit/dogstatsd/test_statsd.py::TestDogStatsd::test_counter",
"tests/unit/dogstatsd/test_statsd.py::TestDogStatsd::test_histogram",
"tests/unit/dogstatsd/test_statsd.py::Te... | [
"tests/unit/dogstatsd/test_statsd.py::TestDogStatsd::test_initialization",
"tests/unit/dogstatsd/test_statsd.py::TestDogStatsd::test_context_manager",
"tests/unit/dogstatsd/test_statsd.py::TestDogStatsd::test_batched_buffer_autoflush",
"tests/unit/dogstatsd/test_statsd.py::TestDogStatsd::test_module_level_ins... | [] | BSD-3-Clause | 457 | 1,266 | [
"datadog/dogstatsd/base.py",
"datadog/threadstats/base.py"
] |
falconry__falcon-723 | ac03888ad750598175fa1591ef11ec8ae31b0dc0 | 2016-03-03 01:33:46 | b78ffaac7c412d3b3d6cd3c70dd05024d79d2cce | kgriffs: Routing tree from the test: https://github.com/falconry/falcon/pull/723
jmvrbanac: Interesting. Seems to look good to me.
kgriffs: Sorry, I had the wrong link for the routing tree. Updated.
jmvrbanac: Outside of of @fxfitz's suggestion, :+1: | diff --git a/falcon/routing/compiled.py b/falcon/routing/compiled.py
index 5f8f951..9177edb 100644
--- a/falcon/routing/compiled.py
+++ b/falcon/routing/compiled.py
@@ -95,7 +95,7 @@ class CompiledRouter(object):
else:
return None, None, None
- def _compile_tree(self, nodes, indent=1, level=0... | Path segment in one route's URI template masks the field expression in another route
The following test demonstrates the issue. The assertion fails since the resulting status code is 404, rather than 200. "/v2.0/thing" should route to `/{version}/thing` instead of `/v2.0`.
```py
def test_string_vs_var(self):
s... | falconry/falcon | diff --git a/tests/test_default_router.py b/tests/test_default_router.py
index 9dc5ecd..84af78f 100644
--- a/tests/test_default_router.py
+++ b/tests/test_default_router.py
@@ -1,5 +1,6 @@
import ddt
+from falcon.routing import DefaultRouter
import falcon.testing as testing
@@ -14,66 +15,115 @@ class ResourceWi... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 0
},
"num_modified_files": 1
} | 0.3 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"nose",
"tox",
"coveralls",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y g... | attrs==22.2.0
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
coveralls==3.3.1
ddt==1.7.2
distlib==0.3.9
docopt==0.6.2
-e git+https://github.com/falconry/falcon.git@ac03888ad750598175fa1591ef11ec8ae31b0dc0#egg=falcon
filelock==3.4.1
fixtures==4.0.1
idna==3.10
importlib-metadata==4.8.3
importlib-resources==5... | name: falcon
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- lib... | [
"tests/test_default_router.py::TestRegressionCases::test_recipes",
"tests/test_default_router.py::TestRegressionCases::test_versioned_url",
"tests/test_default_router.py::TestComplexRouting::test_literal_vs_variable_02____teams_default_members___7_",
"tests/test_default_router.py::TestComplexRouting::test_lit... | [] | [
"tests/test_default_router.py::TestComplexRouting::test_collision_1__teams__collision_",
"tests/test_default_router.py::TestComplexRouting::test_collision_2__emojis_signs__id_too_",
"tests/test_default_router.py::TestComplexRouting::test_collision_3__repos__org___repo__compare__complex___vs_____complex2___colli... | [] | Apache License 2.0 | 458 | 593 | [
"falcon/routing/compiled.py"
] |
dask__dask-1028 | 6dc9229362f2d3b1dfa466a8a63831c3c832b4be | 2016-03-03 21:56:25 | 6dc9229362f2d3b1dfa466a8a63831c3c832b4be | diff --git a/dask/array/reductions.py b/dask/array/reductions.py
index a29003285..c0b12cd08 100644
--- a/dask/array/reductions.py
+++ b/dask/array/reductions.py
@@ -466,6 +466,13 @@ def arg_agg(func, argfunc, data, axis=None, **kwargs):
return _arg_combine(data, axis, argfunc, keepdims=False)[0]
+def nanarg_ag... | da.nanargmax fails when it encounters an all-NaN slice in a chunk
Follow up on #776
```
In [1]: import numpy as np
In [2]: import dask.array as da
In [3]: x = np.array([[1.0, np.nan], [np.nan, 2.0]])
In [4]: da.nanmax(da.from_array(x, chunks=1), axis=1).compute()
/Users/shoyer/miniconda/envs/dask-dev/lib/... | dask/dask | diff --git a/dask/array/tests/test_reductions.py b/dask/array/tests/test_reductions.py
index 7b734416f..2b1a08437 100644
--- a/dask/array/tests/test_reductions.py
+++ b/dask/array/tests/test_reductions.py
@@ -162,6 +162,26 @@ def test_arg_reductions(dfunc, func):
assert eq(dfunc(a2, 0, split_every=2), func(x2, 0))... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 2
},
"num_modified_files": 1
} | 1.8 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[complete]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "numpy>=1.16.0 pandas>=1.0.0 cloudpickle partd distributed s3fs toolz psutil pytables bokeh bcolz scipy h5py ipython",
"pip_packages": [
"pytest"
],
... | aiobotocore @ file:///opt/conda/conda-bld/aiobotocore_1643638228694/work
aiohttp @ file:///tmp/build/80754af9/aiohttp_1632748060317/work
aioitertools @ file:///tmp/build/80754af9/aioitertools_1607109665762/work
async-timeout==3.0.1
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
backcall @ file:///home/kti... | name: dask
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- aiobotocore=2.1.0=pyhd3eb1b0_0
- aiohttp=3.7.4.post0=py36h7f8727e_2
- aioitertools=0.7.1=pyhd3eb1b0_0
- async-time... | [
"dask/array/tests/test_reductions.py::test_arg_reductions[_nanargmin-nanargmin]",
"dask/array/tests/test_reductions.py::test_arg_reductions[_nanargmax-nanargmax]",
"dask/array/tests/test_reductions.py::test_nanarg_reductions[_nanargmin-nanargmin]",
"dask/array/tests/test_reductions.py::test_nanarg_reductions[... | [
"dask/array/tests/test_reductions.py::test_reductions_2D[f4]",
"dask/array/tests/test_reductions.py::test_reductions_2D[i4]"
] | [
"dask/array/tests/test_reductions.py::test_reductions_1D[f4]",
"dask/array/tests/test_reductions.py::test_reductions_1D[i4]",
"dask/array/tests/test_reductions.py::test_arg_reductions[argmin-argmin]",
"dask/array/tests/test_reductions.py::test_arg_reductions[argmax-argmax]",
"dask/array/tests/test_reduction... | [] | BSD 3-Clause "New" or "Revised" License | 461 | 684 | [
"dask/array/reductions.py"
] | |
MITLibraries__slingshot-11 | 755a842371e63a1c70fde8568523b9b5db0d304e | 2016-03-07 17:04:21 | 755a842371e63a1c70fde8568523b9b5db0d304e | diff --git a/slingshot/cli.py b/slingshot/cli.py
index 55efcf6..047d98e 100644
--- a/slingshot/cli.py
+++ b/slingshot/cli.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
+from datetime import datetime
import os
import shutil
@@ -58,4 +59,8 @@ def run(layers, store, url, namespace... | Add logging | MITLibraries/slingshot | diff --git a/tests/test_cli.py b/tests/test_cli.py
index 1aff724..61eca94 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -59,3 +59,21 @@ def test_run_uses_authentication(runner, layers_dir):
'--username', 'foo', '--password', 'bar'])
assert m.request_history[0].headers['Aut... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 3,
"test_score": 1
},
"num_modified_files": 1
} | unknown | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"mock",
"requests_mock"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"... | bagit==1.5.4
certifi==2025.1.31
charset-normalizer==3.4.1
click==6.3
exceptiongroup==1.2.2
idna==3.10
iniconfig==2.1.0
mock==5.2.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
requests==2.32.3
requests-mock==1.12.1
-e git+https://github.com/MITLibraries/slingshot.git@755a842371e63a1c70fde8568523b9b5db0d304e#egg=slingsho... | name: slingshot
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng... | [
"tests/test_cli.py::test_run_logs_uploaded_layers_to_stdout",
"tests/test_cli.py::test_run_logs_failed_layers_to_stdout"
] | [] | [
"tests/test_cli.py::test_run_submits_bags",
"tests/test_cli.py::test_run_leaves_bag_on_success",
"tests/test_cli.py::test_run_removes_bag_on_failure",
"tests/test_cli.py::test_run_uses_supplied_namespace",
"tests/test_cli.py::test_run_uses_authentication"
] | [] | Apache License 2.0 | 464 | 203 | [
"slingshot/cli.py"
] | |
BrandonLMorris__auacm-cli-11 | 5c13a4843e281aa1470d2bd28fe39c07f4e39e92 | 2016-03-11 15:15:59 | 5c13a4843e281aa1470d2bd28fe39c07f4e39e92 | diff --git a/src/auacm/competition.py b/src/auacm/competition.py
index f2d9561..794f8a4 100644
--- a/src/auacm/competition.py
+++ b/src/auacm/competition.py
@@ -1,6 +1,6 @@
"""Subcommands related to competitions"""
-import auacm, requests, textwrap
+import auacm, requests, textwrap, argparse
from datetime import da... | List recent and ongoing competitions
A `comp[etition]` command that will simply list (chronologically) the recent and ongoing competitions. | BrandonLMorris/auacm-cli | diff --git a/tests/competition_tests.py b/tests/competition_tests.py
index 7f7c381..b89e62e 100644
--- a/tests/competition_tests.py
+++ b/tests/competition_tests.py
@@ -21,16 +21,38 @@ class CompetitionTests(unittest.TestCase):
self.assertTrue('past fake mock' in result.lower())
@patch('requests.get')
-... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_many_modified_files",
"has_many_hunks",
"has_pytest_match_arg"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 3... | 0.2 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requests",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path": null,
"t... | -e git+https://github.com/BrandonLMorris/auacm-cli.git@5c13a4843e281aa1470d2bd28fe39c07f4e39e92#egg=auacm
Brotli @ file:///croot/brotli-split_1736182456865/work
certifi @ file:///croot/certifi_1738623731865/work/certifi
charset-normalizer @ file:///croot/charset-normalizer_1721748349566/work
exceptiongroup==1.2.2
idna ... | name: auacm-cli
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- brotli-python=1.0.9=py39h6a678d5_9
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2025.1.31=py39h06a4308_0
... | [
"tests/competition_tests.py::CompetitionTests::testGetOneCompetitionBadName",
"tests/competition_tests.py::CompetitionTests::testGetOneCompetitionByName"
] | [] | [
"tests/competition_tests.py::CompetitionTests::testGetAllCompetitons",
"tests/competition_tests.py::CompetitionTests::testGetOneCompetitionBad",
"tests/competition_tests.py::CompetitionTests::testGetOneCompetitionById"
] | [] | MIT License | 471 | 1,044 | [
"src/auacm/competition.py",
"src/auacm/main.py"
] | |
docker__docker-py-988 | fa7068cb7cf2ae1efcc2b3b99f24f4c7aa29e989 | 2016-03-11 20:04:00 | 4c34be5d4ab8a5a017950712e9c96b56d78d1c58 | diff --git a/docker/utils/utils.py b/docker/utils/utils.py
index bc26ce82..d4393d58 100644
--- a/docker/utils/utils.py
+++ b/docker/utils/utils.py
@@ -460,16 +460,16 @@ def kwargs_from_env(ssl_version=None, assert_hostname=None):
tls_verify = os.environ.get('DOCKER_TLS_VERIFY')
if tls_verify == '':
t... | Certificate error in docker ci for test-docker-py
https://jenkins.dockerproject.org/job/Docker-PRs/24848/console for detail.
in docker-py, when checkout to the commit of 387db11009f4b4f64a4f2c6fd64d3eeb01828585,the error appears,if I remove the commit ,we will not have the error.
```
==============================... | docker/docker-py | diff --git a/tests/unit/utils_test.py b/tests/unit/utils_test.py
index 87796d11..65b7cf8a 100644
--- a/tests/unit/utils_test.py
+++ b/tests/unit/utils_test.py
@@ -228,19 +228,7 @@ class KwargsFromEnvTest(base.BaseTestCase):
DOCKER_TLS_VERIFY='')
os.environ.pop('DOCKER_CERT_PATH', Non... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_hyperlinks",
"has_git_commit_hash"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 0
},
"num_modified_files": 1
} | 1.7 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.7",
"reqs_path": [
... | certifi @ file:///croot/certifi_1671487769961/work/certifi
-e git+https://github.com/docker/docker-py.git@fa7068cb7cf2ae1efcc2b3b99f24f4c7aa29e989#egg=docker_py
exceptiongroup==1.2.2
importlib-metadata==6.7.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.2.0
pytest==7.4.4
requests==2.5.3
six==1.17.0
tomli==2.0.1
typing_ex... | name: docker-py
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2022.12.7=py37h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- ... | [
"tests/unit/utils_test.py::KwargsFromEnvTest::test_kwargs_from_env_tls_verify_false_no_cert"
] | [
"tests/unit/utils_test.py::SSLAdapterTest::test_only_uses_tls"
] | [
"tests/unit/utils_test.py::HostConfigTest::test_create_endpoint_config_with_aliases",
"tests/unit/utils_test.py::HostConfigTest::test_create_host_config_invalid_cpu_cfs_types",
"tests/unit/utils_test.py::HostConfigTest::test_create_host_config_no_options",
"tests/unit/utils_test.py::HostConfigTest::test_creat... | [] | Apache License 2.0 | 472 | 224 | [
"docker/utils/utils.py"
] | |
dpkp__kafka-python-611 | d81963a919fa8161c94b5bef5e6de0697b91c4a6 | 2016-03-23 17:29:58 | 810f08b7996a15e65cdd8af6c1a7167c28f94646 | coveralls:
[](https://coveralls.io/builds/5522917)
Changes Unknown when pulling **bb2548705a3be822be9e17ea6eb824061fc9fb8f on sock_send_bytes** into ** on master**.
coveralls:
[](https://coveral... | diff --git a/kafka/conn.py b/kafka/conn.py
index 2b82b6d..ffc839e 100644
--- a/kafka/conn.py
+++ b/kafka/conn.py
@@ -188,10 +188,12 @@ class BrokerConnection(object):
# and send bytes asynchronously. For now, just block
# sending each request payload
self._sock.setblocking(True)
-... | kafka.common.ConnectionError on big messages + gevent
i'm getting kafka.common.ConnectionError trying to send big message. Code below
```python
from gevent.monkey import patch_all; patch_all()
from kafka import KafkaProducer
producer = KafkaProducer(bootstrap_servers=xxxxxxxx,
buffer_m... | dpkp/kafka-python | diff --git a/test/test_conn.py b/test/test_conn.py
index d394f74..5432ebd 100644
--- a/test/test_conn.py
+++ b/test/test_conn.py
@@ -2,12 +2,15 @@
from __future__ import absolute_import
from errno import EALREADY, EINPROGRESS, EISCONN, ECONNRESET
-import socket
import time
import pytest
from kafka.conn impor... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_many_modified_files"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 2
},
"num_modified_files": 2
} | 1.0 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"pytest-catchlog",
"pytest-pylint",
"pytest-sugar",
"pytest-mock",
"mock",
... | astroid==2.11.7
attrs==22.2.0
certifi==2021.5.30
coverage==6.2
cramjam==2.5.0
dill==0.3.4
importlib-metadata==4.8.3
iniconfig==1.1.1
isort==5.10.1
-e git+https://github.com/dpkp/kafka-python.git@d81963a919fa8161c94b5bef5e6de0697b91c4a6#egg=kafka_python
lazy-object-proxy==1.7.1
lz4tools==1.3.1.2
mccabe==0.7.0
mock==5.2.... | name: kafka-python
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
... | [
"test/test_conn.py::test_send_disconnected",
"test/test_conn.py::test_send_connecting",
"test/test_conn.py::test_send_max_ifr",
"test/test_conn.py::test_send_no_response",
"test/test_conn.py::test_send_response",
"test/test_conn.py::test_send_error"
] | [] | [
"test/test_conn.py::test_connect[states0]",
"test/test_conn.py::test_connect[states1]",
"test/test_conn.py::test_connect[states2]",
"test/test_conn.py::test_connect[states3]",
"test/test_conn.py::test_connect[states4]",
"test/test_conn.py::test_connect_timeout",
"test/test_conn.py::test_blacked_out",
... | [] | Apache License 2.0 | 485 | 386 | [
"kafka/conn.py",
"kafka/future.py"
] |
dpkp__kafka-python-620 | b96f4ccf070109a022deb98b569e61d23e4e75b9 | 2016-04-03 16:29:40 | 810f08b7996a15e65cdd8af6c1a7167c28f94646 | diff --git a/kafka/coordinator/consumer.py b/kafka/coordinator/consumer.py
index a5e3067..b2ef1ea 100644
--- a/kafka/coordinator/consumer.py
+++ b/kafka/coordinator/consumer.py
@@ -91,8 +91,10 @@ class ConsumerCoordinator(BaseCoordinator):
log.warning('Broker version (%s) does not support offset'
... | Consumer exception on close when group id is None
Following the conversation in #601, setting the `group_id` to `None` in a Consumer causes an exception to be raised when the consumer is closed.
```
>>> from kafka import KafkaConsumer
>>> k = KafkaConsumer('example', bootstrap_servers=['server'], group_id=None)
>... | dpkp/kafka-python | diff --git a/test/test_coordinator.py b/test/test_coordinator.py
index 847cbc1..44db808 100644
--- a/test/test_coordinator.py
+++ b/test/test_coordinator.py
@@ -52,12 +52,16 @@ def test_init(conn):
@pytest.mark.parametrize("api_version", [(0, 8, 0), (0, 8, 1), (0, 8, 2), (0, 9)])
def test_autocommit_enable_api_vers... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_issue_reference"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 0
},
"num_modified_files": 1
} | 1.0 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"pytest-catchlog",
"pytest-pylint",
"pytest-sugar",
"pytest-mock",
"mock",
... | astroid==2.11.7
attrs==22.2.0
certifi==2021.5.30
coverage==6.2
cramjam==2.5.0
dill==0.3.4
importlib-metadata==4.8.3
iniconfig==1.1.1
isort==5.10.1
-e git+https://github.com/dpkp/kafka-python.git@b96f4ccf070109a022deb98b569e61d23e4e75b9#egg=kafka_python
lazy-object-proxy==1.7.1
lz4tools==1.3.1.2
mccabe==0.7.0
mock==5.2.... | name: kafka-python
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
... | [
"test/test_coordinator.py::test_autocommit_enable_api_version[api_version0]",
"test/test_coordinator.py::test_maybe_auto_commit_offsets_sync[api_version7-None-True-None-False-False-True-False]"
] | [
"test/test_coordinator.py::test_handle_offset_commit_response[response10-InvalidTopicError-False-False]"
] | [
"test/test_coordinator.py::test_init",
"test/test_coordinator.py::test_autocommit_enable_api_version[api_version1]",
"test/test_coordinator.py::test_autocommit_enable_api_version[api_version2]",
"test/test_coordinator.py::test_autocommit_enable_api_version[api_version3]",
"test/test_coordinator.py::test_pro... | [] | Apache License 2.0 | 491 | 737 | [
"kafka/coordinator/consumer.py"
] | |
docker__docker-py-1022 | e743254b42080e6d199fc10f4812a42ecb8d536f | 2016-04-05 19:54:10 | 299ffadb95c90eb7134b9cee2648fb683912c303 | dnephin: LGTM when build is green. Not sure why they all failed, maybe just a jenkins issue? | diff --git a/docker/auth/auth.py b/docker/auth/auth.py
index eedb7944..d23e6f3c 100644
--- a/docker/auth/auth.py
+++ b/docker/auth/auth.py
@@ -117,7 +117,7 @@ def parse_auth(entries, raise_on_error=False):
conf = {}
for registry, entry in six.iteritems(entries):
- if not (isinstance(entry, dict) and ... | Empty auth dictionary should be valid
docker/compose#3265 | docker/docker-py | diff --git a/tests/unit/auth_test.py b/tests/unit/auth_test.py
index 921aae00..4ea40477 100644
--- a/tests/unit/auth_test.py
+++ b/tests/unit/auth_test.py
@@ -459,6 +459,5 @@ class LoadConfigTest(base.Cleanup, base.BaseTestCase):
with open(dockercfg_path, 'w') as f:
json.dump(config, f)
- ... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_pytest_match_arg"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 3,
"test_score": 2
},
"num_modified_files": 1
} | 1.8 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.4",
"reqs_path": [
... | attrs==22.2.0
certifi==2021.5.30
-e git+https://github.com/docker/docker-py.git@e743254b42080e6d199fc10f4812a42ecb8d536f#egg=docker_py
importlib-metadata==4.8.3
iniconfig==1.1.1
packaging==21.3
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
requests==2.5.3
six==1.17.0
tomli==1.2.3
typing_extensions==4.1.1
webs... | name: docker-py
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- ... | [
"tests/unit/auth_test.py::LoadConfigTest::test_load_config_invalid_auth_dict"
] | [] | [
"tests/unit/auth_test.py::RegressionTest::test_803_urlsafe_encode",
"tests/unit/auth_test.py::ResolveRepositoryNameTest::test_explicit_hub_index_library_image",
"tests/unit/auth_test.py::ResolveRepositoryNameTest::test_explicit_legacy_hub_index_library_image",
"tests/unit/auth_test.py::ResolveRepositoryNameTe... | [] | Apache License 2.0 | 493 | 414 | [
"docker/auth/auth.py"
] |
juju-solutions__charms.reactive-65 | 3540030b9b142787f3f7fd16a14ed33d18b4d7a1 | 2016-04-12 16:08:23 | 59b07bd9447d8a4cb027ea2515089216b8d20549 | diff --git a/charms/reactive/bus.py b/charms/reactive/bus.py
index 9676244..885e498 100644
--- a/charms/reactive/bus.py
+++ b/charms/reactive/bus.py
@@ -267,7 +267,10 @@ class Handler(object):
"""
Lazily evaluate the args.
"""
- return list(chain.from_iterable(self._args))
+ if ... | Handler args are dropped if called more than once per hook
Because the args are implemented as generators, any time the list is evaluated after the first it ends up being empty, leading to an "missing arg" error:
```
2016-04-12 15:15:51 INFO namenode-cluster-relation-joined Traceback (most recent call last):
2016-... | juju-solutions/charms.reactive | diff --git a/tests/test_decorators.py b/tests/test_decorators.py
index 836753a..fdbb512 100644
--- a/tests/test_decorators.py
+++ b/tests/test_decorators.py
@@ -103,6 +103,11 @@ class TestReactiveDecorators(unittest.TestCase):
action.assert_called_once_with('rel')
self.assertEqual(reactive.bus.Handler... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 1
},
"num_modified_files": 1
} | 0.4 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"coverage",
"mock",
"nose",
"flake8",
"ipython",
"ipdb",
"pytest"
],
"pre_install": null,
"pyth... | attrs==22.2.0
backcall==0.2.0
certifi==2021.5.30
charmhelpers==1.2.1
-e git+https://github.com/juju-solutions/charms.reactive.git@3540030b9b142787f3f7fd16a14ed33d18b4d7a1#egg=charms.reactive
coverage==6.2
decorator==5.1.1
flake8==5.0.4
importlib-metadata==4.2.0
importlib-resources==5.4.0
iniconfig==1.1.1
ipdb==0.13.13
... | name: charms.reactive
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_... | [
"tests/test_decorators.py::TestReactiveDecorators::test_when_all"
] | [] | [
"tests/test_decorators.py::TestReactiveDecorators::test_multi",
"tests/test_decorators.py::TestReactiveDecorators::test_not_unless",
"tests/test_decorators.py::TestReactiveDecorators::test_only_once",
"tests/test_decorators.py::TestReactiveDecorators::test_when",
"tests/test_decorators.py::TestReactiveDecor... | [
"tests/test_decorators.py::TestReactiveDecorators::test_hook"
] | Apache License 2.0 | 501 | 170 | [
"charms/reactive/bus.py"
] | |
guykisel__inline-plz-129 | a7c89d5b65df2486ccf78f43fcffdc18dff76bd7 | 2016-04-15 01:05:40 | a7c89d5b65df2486ccf78f43fcffdc18dff76bd7 | raphaelcastaneda: Hmm...
https://travis-ci.org/guykisel/inline-plz/jobs/123219118#L726
` File "/home/travis/build/guykisel/inline-plz/inlineplz/linters/__init__.py", line 364, in lint
linter_messages = config.get('parser')().parse(output)
File "/home/travis/build/guykisel/inline-plz/inlineplz/parsers/rflin... | diff --git a/inlineplz/linters/__init__.py b/inlineplz/linters/__init__.py
index 16cce9f..5cafd13 100644
--- a/inlineplz/linters/__init__.py
+++ b/inlineplz/linters/__init__.py
@@ -175,13 +175,13 @@ LINTERS = {
'rflint': {
'install': [['pip', 'install', 'robotframework-lint']],
'help': ['rflint',... | rflint is running against all file types
```
Message:
Path: node_modules/stylint/node_modules/yargs/node_modules/cliui/node_modules/wordwrap/test/idleness.txt
Line number: 19
Content: set([u'rflint: Line is too long (exceeds 250 characters) (LineTooLong)'])
```
fyi @raphaelcastaneda | guykisel/inline-plz | diff --git a/tests/parsers/test_rflint.py b/tests/parsers/test_rflint.py
index fcee628..7d164ea 100644
--- a/tests/parsers/test_rflint.py
+++ b/tests/parsers/test_rflint.py
@@ -17,7 +17,14 @@ rflint_path = os.path.join(
def test_rflint():
with codecs.open(rflint_path, encoding='utf-8', errors='replace') as inpu... | {
"commit_name": "merge_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_many_modified_files"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 2
},
"num_modified_files": 2
} | 0.12 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path... | certifi==2025.1.31
cffi==1.17.1
charset-normalizer==3.4.1
cryptography==44.0.2
exceptiongroup==1.2.2
github3.py==4.0.1
idna==3.10
iniconfig==2.1.0
-e git+https://github.com/guykisel/inline-plz.git@a7c89d5b65df2486ccf78f43fcffdc18dff76bd7#egg=inlineplz
packaging==24.2
pluggy==1.5.0
pycparser==2.22
PyJWT==2.10.1
pytest==... | name: inline-plz
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-n... | [
"tests/parsers/test_rflint.py::test_rflint"
] | [] | [] | [] | ISC License | 503 | 560 | [
"inlineplz/linters/__init__.py",
"inlineplz/parsers/rflint.py"
] |
pysmt__pysmt-243 | 2abfb4538fa93379f9b2671bce30f27967dedbcf | 2016-04-15 16:24:27 | 2abfb4538fa93379f9b2671bce30f27967dedbcf | diff --git a/pysmt/formula.py b/pysmt/formula.py
index 0a4dcd3..4fdcbfe 100644
--- a/pysmt/formula.py
+++ b/pysmt/formula.py
@@ -477,7 +477,7 @@ class FormulaManager(object):
A -> !(B \/ C)
B -> !(C)
"""
- args = list(*args)
+ args = self._polymorph_args_to_tuple(args)
... | issue in processing arguments for ExactlyOne()
Hi,
I noticed that instantiating shortcuts.ExactlyOne() throws e.g.
TypeError: list() takes at most 1 argument (3 given)
at formula.py, line 480. I believe args shouldn't be unpacked in the list constructor.
Martin | pysmt/pysmt | diff --git a/pysmt/test/test_formula.py b/pysmt/test/test_formula.py
index 0ddbec4..924328a 100644
--- a/pysmt/test/test_formula.py
+++ b/pysmt/test/test_formula.py
@@ -494,6 +494,16 @@ class TestFormulaManager(TestCase):
self.assertEqual(c, self.mgr.Bool(False),
"ExactlyOne should no... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 0
},
"num_modified_files": 1
} | 0.4 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest",
"pytest-cov",
"nose",
"nose-cov"
],
"pre_install": [
"apt-get update",
"apt-get instal... | cov-core==1.15.0
coverage==7.8.0
exceptiongroup==1.2.2
iniconfig==2.1.0
nose==1.3.7
nose-cov==1.6
packaging==24.2
pluggy==1.5.0
-e git+https://github.com/pysmt/pysmt.git@2abfb4538fa93379f9b2671bce30f27967dedbcf#egg=PySMT
pytest==8.3.5
pytest-cov==6.0.0
six==1.17.0
tomli==2.2.1
| name: pysmt
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=11.... | [
"pysmt/test/test_formula.py::TestFormulaManager::test_exactly_one",
"pysmt/test/test_regressions.py::TestRegressions::test_exactly_one_unpacking"
] | [
"pysmt/test/test_regressions.py::TestRegressions::test_parse_define_fun",
"pysmt/test/test_regressions.py::TestRegressions::test_parse_define_fun_bind"
] | [
"pysmt/test/test_formula.py::TestFormulaManager::test_0arity_function",
"pysmt/test/test_formula.py::TestFormulaManager::test_all_different",
"pysmt/test/test_formula.py::TestFormulaManager::test_and_node",
"pysmt/test/test_formula.py::TestFormulaManager::test_at_most_one",
"pysmt/test/test_formula.py::Test... | [] | Apache License 2.0 | 504 | 132 | [
"pysmt/formula.py"
] | |
Shopify__shopify_python_api-136 | a78109e725cf9e400f955062399767f36f3a1f44 | 2016-04-18 03:46:33 | c29e0ecbed9de67dd923f980a3ac053922dab75e | diff --git a/shopify/mixins.py b/shopify/mixins.py
index 9d3c179..c7806a0 100644
--- a/shopify/mixins.py
+++ b/shopify/mixins.py
@@ -11,8 +11,15 @@ class Countable(object):
class Metafields(object):
- def metafields(self):
- return shopify.resources.Metafield.find(resource=self.__class__.plural, resource... | metafields() method should be able to take options parameters for limit and page
```
import shopify
product = shopify.Product.find(5972485446)
metafields = product.metafields()
print(len(metafields))
> 50
metafields = product.metafields(limit=250)
> TypeError: metafields() got an unexpected keyword argument 'lim... | Shopify/shopify_python_api | diff --git a/test/fixtures/metafields_count.json b/test/fixtures/metafields_count.json
new file mode 100644
index 0000000..a113c32
--- /dev/null
+++ b/test/fixtures/metafields_count.json
@@ -0,0 +1,1 @@
+{"count":2}
diff --git a/test/product_test.py b/test/product_test.py
index c48962a..dcc9ae7 100644
--- a/test/produc... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 1,
"test_score": 2
},
"num_modified_files": 1
} | 2.1 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"mock>=1.0.1",
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA -... | exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
mock==5.2.0
packaging @ file:///croot/packaging_1734472117206/work
pluggy @ file:///croot/pluggy_1733169602837/work
pyactiveresource==2.2.2
pytest @ file:///croot/pytest_1738938843180... | name: shopify_python_api
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- exceptiongroup=1.2.0=py39h06a4308_0
- iniconfig=1.1.1=pyhd3eb1b... | [
"test/product_test.py::ProductTest::test_get_metafields_for_product_count",
"test/product_test.py::ProductTest::test_get_metafields_for_product_count_with_params",
"test/product_test.py::ProductTest::test_get_metafields_for_product_with_params"
] | [] | [
"test/product_test.py::ProductTest::test_add_metafields_to_product",
"test/product_test.py::ProductTest::test_add_variant_to_product",
"test/product_test.py::ProductTest::test_get_metafields_for_product",
"test/product_test.py::ProductTest::test_update_loaded_variant"
] | [] | MIT License | 507 | 231 | [
"shopify/mixins.py"
] | |
terryyin__lizard-120 | bdcc784bd22d8e48db22884dfeb42647ffb67fbf | 2016-05-08 06:41:31 | bdcc784bd22d8e48db22884dfeb42647ffb67fbf | rakhimov: Hi @terryyin,
do not yet merge this PR.
I sense there are bugs in implementation of C++ ``current_nesting_level``.
The initial code works with Python,
for which the nesting level metric is producing what is expected.
However, the C++ ``current_nesting_level`` doesn't seem to be fully conformant.
Your ... | diff --git a/lizard.py b/lizard.py
index 4d21e8a..cac8020 100755
--- a/lizard.py
+++ b/lizard.py
@@ -316,7 +316,7 @@ class NestingStack(object):
self.pending_function = None
self.nesting_stack.append(Namespace(token))
- def start_new_funciton_nesting(self, function):
+ def start_new_function_n... | Detection of Deeply Nested Control Structures
This metric may not apply to the whole function,
but the maximum 'nestedness' (nesting for-loops, if-statements, etc.)
may be an interesting metric to detect code smell.
It closely relates to indentation.
Got this from the Linux kernel coding style:
>The answer to t... | terryyin/lizard | diff --git a/test/testNestedStructures.py b/test/testNestedStructures.py
old mode 100755
new mode 100644
index 7eee514..1a2d826
--- a/test/testNestedStructures.py
+++ b/test/testNestedStructures.py
@@ -1,5 +1,7 @@
import unittest
-from .testHelpers import get_cpp_function_list_with_extnesion
+
+from .testHelpers impor... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_many_modified_files",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 2
},
"num_modified_files": 2
} | unknown | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[dev]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "requirements.txt",
"pip_packages": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path... | astroid==3.3.9
dill==0.3.9
exceptiongroup==1.2.2
iniconfig==2.1.0
isort==6.0.1
-e git+https://github.com/terryyin/lizard.git@bdcc784bd22d8e48db22884dfeb42647ffb67fbf#egg=lizard
mccabe==0.7.0
mock==5.2.0
nose==1.3.7
packaging==24.2
pep8==1.7.1
platformdirs==4.3.7
pluggy==1.5.0
pylint==3.3.6
pytest==8.3.5
tomli==2.2.1
to... | name: lizard
channels:
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- conda-forge
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=5.1=1_gnu
- ca-certificates=2025.2.25=h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-ng=11... | [
"test/testNestedStructures.py::TestPythonNestedStructures::test_equal_metric_structures",
"test/testNestedStructures.py::TestPythonNestedStructures::test_nested_functions",
"test/testNestedStructures.py::TestPythonNestedStructures::test_nested_if_structures",
"test/testNestedStructures.py::TestPythonNestedStr... | [] | [
"test/testNestedStructures.py::TestCppNestedStructures::test_and_condition_in_if_structure",
"test/testNestedStructures.py::TestCppNestedStructures::test_do",
"test/testNestedStructures.py::TestCppNestedStructures::test_forever_loop",
"test/testNestedStructures.py::TestCppNestedStructures::test_if_structure",... | [
"test/testNestedStructures.py::TestCppNestedStructures::test_else_if",
"test/testNestedStructures.py::TestCppNestedStructures::test_equal_metric_structures",
"test/testNestedStructures.py::TestCppNestedStructures::test_gotcha_if_else"
] | MIT License | 525 | 2,001 | [
"lizard.py",
"lizard_ext/lizardns.py"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.