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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dask__dask-1150 | 71e3e413d6e00942de3ff32a3ba378408f2648e9 | 2016-05-10 15:29:30 | 71e3e413d6e00942de3ff32a3ba378408f2648e9 | diff --git a/dask/array/random.py b/dask/array/random.py
index 71050b304..9a1b0b364 100644
--- a/dask/array/random.py
+++ b/dask/array/random.py
@@ -44,8 +44,13 @@ class RandomState(object):
self._numpy_state.seed(seed)
def _wrap(self, func, *args, **kwargs):
+ """ Wrap numpy random function to p... | Multinomial random generator
`dask/array/random.py` is missing a multinomial random generator (there is aplaceholder `# multinomial`).
Will dask have a multinomial random generator at some point? Does it require a significantly different approach than the other generators? | dask/dask | diff --git a/dask/array/tests/test_random.py b/dask/array/tests/test_random.py
index 855b200fd..1112a13ae 100644
--- a/dask/array/tests/test_random.py
+++ b/dask/array/tests/test_random.py
@@ -134,6 +134,7 @@ def test_random_all():
da.random.logistic(size=5, chunks=3).compute()
da.random.lognormal(size=5, chu... | {
"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": 2,
"test_score": 0
},
"num_modified_files": 1
} | 1.9 | {
"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_random.py::test_random_all",
"dask/array/tests/test_random.py::test_multinomial"
] | [] | [
"dask/array/tests/test_random.py::test_RandomState",
"dask/array/tests/test_random.py::test_concurrency",
"dask/array/tests/test_random.py::test_doc_randomstate",
"dask/array/tests/test_random.py::test_serializability",
"dask/array/tests/test_random.py::test_determinisim_through_dask_values",
"dask/array/... | [] | BSD 3-Clause "New" or "Revised" License | 530 | 647 | [
"dask/array/random.py"
] | |
Axelrod-Python__Axelrod-587 | 03dd1a9600965800125eeb8942b6b0a3dfacf29c | 2016-05-11 17:36:01 | 03dd1a9600965800125eeb8942b6b0a3dfacf29c | diff --git a/axelrod/strategies/cycler.py b/axelrod/strategies/cycler.py
index 599e97a5..e3dd9c39 100644
--- a/axelrod/strategies/cycler.py
+++ b/axelrod/strategies/cycler.py
@@ -1,5 +1,6 @@
from axelrod import Actions, Player, init_args
+import copy
class AntiCycler(Player):
"""
@@ -74,18 +75,27 @@ class Cy... | Test classification of strategy class as well as strategy player
@mojones noticed a bug in the classification of Win Stay Lose Shift: see #506.
I fixed it in #511, but really the test I added to #511 should be a test in the player class. I tried that but didn't get a failing test. Needs investigating :) | Axelrod-Python/Axelrod | diff --git a/axelrod/tests/unit/test_gambler.py b/axelrod/tests/unit/test_gambler.py
index 1448103f..c59bb8d3 100755
--- a/axelrod/tests/unit/test_gambler.py
+++ b/axelrod/tests/unit/test_gambler.py
@@ -8,6 +8,8 @@ import random
from .test_player import TestPlayer, TestHeadsUp
from axelrod import random_choice, Actio... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_issue_reference",
"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
},
"num_modified_files": 3
} | 0.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 ... | attrs==25.3.0
-e git+https://github.com/Axelrod-Python/Axelrod.git@03dd1a9600965800125eeb8942b6b0a3dfacf29c#egg=Axelrod
coverage==7.8.0
cycler==0.12.1
exceptiongroup==1.2.2
execnet==2.1.1
hypothesis==6.130.6
iniconfig==2.1.0
kiwisolver==1.4.7
matplotlib==3.3.4
numpy==2.0.2
packaging==24.2
pillow==11.1.0
pluggy==1.5.0
p... | name: Axelrod
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... | [
"axelrod/tests/unit/test_gobymajority.py::TestGoByMajority5::test_initialisation",
"axelrod/tests/unit/test_gobymajority.py::TestGoByMajority10::test_initialisation",
"axelrod/tests/unit/test_gobymajority.py::TestGoByMajority20::test_initialisation",
"axelrod/tests/unit/test_gobymajority.py::TestGoByMajority4... | [] | [
"axelrod/tests/unit/test_gambler.py::TestPlayer::test_clone",
"axelrod/tests/unit/test_gambler.py::TestPlayer::test_initialisation",
"axelrod/tests/unit/test_gambler.py::TestPlayer::test_match_attributes",
"axelrod/tests/unit/test_gambler.py::TestPlayer::test_repr",
"axelrod/tests/unit/test_gambler.py::Test... | [] | MIT License | 534 | 1,367 | [
"axelrod/strategies/cycler.py",
"axelrod/strategies/gobymajority.py",
"axelrod/strategies/meta.py"
] | |
adamtheturtle__todo-28 | 7666d2181cdea24c963f2d99f918fd368fefafef | 2016-05-15 16:08:13 | 7666d2181cdea24c963f2d99f918fd368fefafef | diff --git a/authentication/authentication.py b/authentication/authentication.py
index 7b64ff6..f9b7cee 100644
--- a/authentication/authentication.py
+++ b/authentication/authentication.py
@@ -288,6 +288,26 @@ def create_todo():
return jsonify(create.json()), create.status_code
+
+@app.route('/todos/<id>', met... | Add ability to read a TODO item | adamtheturtle/todo | diff --git a/authentication/tests/test_authentication.py b/authentication/tests/test_authentication.py
index c0da49d..25e8481 100644
--- a/authentication/tests/test_authentication.py
+++ b/authentication/tests/test_authentication.py
@@ -579,3 +579,123 @@ class CreateTodoTests(AuthenticationTests):
"""
... | {
"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": [
"pytest",
"pytest-cov",
"pytest-xdist",
"pytest-mock",
"pytest-asyncio"
],
"pre_install": null,
"p... | alabaster==0.7.13
attrs==22.2.0
Babel==2.11.0
bcrypt==4.0.1
certifi==2021.5.30
coverage==6.2
coveralls==3.3.1
dataclasses==0.8
doc8==0.11.2
docopt==0.6.2
docutils==0.17.1
execnet==1.9.0
flake8==5.0.4
Flask==0.10.1
Flask-Bcrypt==0.7.1
Flask-JsonSchema==0.1.1
Flask-Login==0.3.2
Flask-Negotiate==0.1.0
Flask-SQLAlchemy==2.... | name: todo
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
- libff... | [
"authentication/tests/test_authentication.py::ReadTodoTests::test_incorrect_content_type",
"storage/tests/test_storage.py::GetTodoTests::test_incorrect_content_type"
] | [
"authentication/tests/test_authentication.py::SignupTests::test_existing_user",
"authentication/tests/test_authentication.py::SignupTests::test_missing_email",
"authentication/tests/test_authentication.py::SignupTests::test_missing_password",
"authentication/tests/test_authentication.py::SignupTests::test_pas... | [
"authentication/tests/test_authentication.py::SignupTests::test_incorrect_content_type",
"authentication/tests/test_authentication.py::LoginTests::test_incorrect_content_type",
"authentication/tests/test_authentication.py::LogoutTests::test_incorrect_content_type",
"authentication/tests/test_authentication.py... | [] | null | 536 | 715 | [
"authentication/authentication.py",
"storage/storage.py"
] | |
adamtheturtle__todo-47 | f81fa85e3c06d931963f76f2d0772ce0b9db67b9 | 2016-05-16 22:04:31 | f81fa85e3c06d931963f76f2d0772ce0b9db67b9 | diff --git a/authentication/authentication.py b/authentication/authentication.py
index 445bcc7..6937a58 100644
--- a/authentication/authentication.py
+++ b/authentication/authentication.py
@@ -250,9 +250,10 @@ def signup():
@app.route('/todos', methods=['POST'])
@consumes('application/json')
@jsonschema.validate('to... | Protect the TODO CRUD APIs | adamtheturtle/todo | diff --git a/authentication/tests/test_authentication.py b/authentication/tests/test_authentication.py
index 6f7108a..29fb21c 100644
--- a/authentication/tests/test_authentication.py
+++ b/authentication/tests/test_authentication.py
@@ -30,6 +30,7 @@ from storage.tests.testtools import InMemoryStorageTests
USER_DATA =... | {
"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 .[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": null,
"p... | alabaster==0.7.13
attrs==22.2.0
Babel==2.11.0
bcrypt==4.0.1
certifi==2021.5.30
coverage==6.2
coveralls==3.3.1
dataclasses==0.8
doc8==0.11.2
docopt==0.6.2
docutils==0.18.1
execnet==1.9.0
flake8==3.9.2
Flask==0.10.1
Flask-Bcrypt==0.7.1
Flask-JsonSchema==0.1.1
Flask-Login==0.3.2
Flask-Negotiate==0.1.0
Flask-SQLAlchemy==2.... | name: todo
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
- libff... | [
"authentication/tests/test_authentication.py::ListTodosTests::test_not_logged_in"
] | [
"authentication/tests/test_authentication.py::SignupTests::test_existing_user",
"authentication/tests/test_authentication.py::SignupTests::test_missing_email",
"authentication/tests/test_authentication.py::SignupTests::test_missing_password",
"authentication/tests/test_authentication.py::SignupTests::test_pas... | [
"authentication/tests/test_authentication.py::SignupTests::test_incorrect_content_type",
"authentication/tests/test_authentication.py::LoginTests::test_incorrect_content_type",
"authentication/tests/test_authentication.py::LogoutTests::test_incorrect_content_type",
"authentication/tests/test_authentication.py... | [] | null | 540 | 538 | [
"authentication/authentication.py"
] | |
peterbe__hashin-22 | ce536a0cffac911124b9af4d14ec0ab79e32816a | 2016-05-17 12:43:56 | ce536a0cffac911124b9af4d14ec0ab79e32816a | diff --git a/hashin.py b/hashin.py
index 510e9bf..d2d1fe6 100755
--- a/hashin.py
+++ b/hashin.py
@@ -120,7 +120,6 @@ def run(spec, file, algorithm, python_versions=None, verbose=False):
def amend_requirements_content(requirements, package, new_lines):
-
# if the package wasn't already there, add it to the bot... | Wrong package replaced when target name is found in existing package
For example, an attempt to add hashes for the `selenium` package replaces the `pytest-selenium` package. Another example would be `pytest-django` and `django`.
Before:
```ini
pytest-selenium==1.2.1 \
--hash=sha256:e82f0a265b0e238ac42ac275d79... | peterbe/hashin | diff --git a/tests/test_cli.py b/tests/test_cli.py
index 839c27a..40c9d50 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -188,6 +188,29 @@ autocompeter==1.2.3 \\
)
self.assertEqual(result, previous + new_lines)
+ def test_amend_requirements_content_new_similar_name(self):
+ """... | {
"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
} | 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",
"mock",
"flake8",
"black",
"therapist",
"pytest-cov",
"pytest-xdist",
"pytest-mock... | attrs==25.3.0
black==25.1.0
certifi==2025.1.31
cffi==1.17.1
charset-normalizer==3.4.1
click==8.1.8
colorama==0.4.6
coverage==7.8.0
cryptography==44.0.2
exceptiongroup==1.2.2
execnet==2.1.1
flake8==7.2.0
freezegun==1.5.1
gherkin-official==29.0.0
-e git+https://github.com/peterbe/hashin.git@ce536a0cffac911124b9af4d14ec0a... | name: hashin
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_cli.py::Tests::test_amend_requirements_content_new_similar_name"
] | [
"tests/test_cli.py::Tests::test_run"
] | [
"tests/test_cli.py::Tests::test_amend_requirements_content_replacement_2",
"tests/test_cli.py::Tests::test_get_latest_version_simple",
"tests/test_cli.py::Tests::test_amend_requirements_content_replacement_amonst_others_2",
"tests/test_cli.py::Tests::test_expand_python_version",
"tests/test_cli.py::Tests::t... | [] | MIT License | 544 | 215 | [
"hashin.py"
] | |
sigmavirus24__github3.py-613 | f6948ac9097f61dd44d8666ac1de42edbea666d5 | 2016-05-17 16:50:13 | 05ed0c6a02cffc6ddd0e82ce840c464e1c5fd8c4 | diff --git a/github3/pulls.py b/github3/pulls.py
index 10457b7d..497e01f0 100644
--- a/github3/pulls.py
+++ b/github3/pulls.py
@@ -8,7 +8,6 @@ This module contains all the classes relating to pull requests.
"""
from __future__ import unicode_literals
-from re import match
from json import dumps
from . import mo... | PullRequest.respository return on GitHub Enterprise instance
[`github3.pulls.PullRequest.respository`](https://github.com/sigmavirus24/github3.py/blob/0.9.3/github3/pulls.py#L188-L189) returns `(u'api/v3/repos/user', u'repo')` on GitHub Enterprise instances. I believe the expected return shouls be ``(u'user', u'repo')`... | sigmavirus24/github3.py | diff --git a/tests/cassettes/PullRequest_single.json b/tests/cassettes/PullRequest_single.json
new file mode 100644
index 00000000..47a27b6a
--- /dev/null
+++ b/tests/cassettes/PullRequest_single.json
@@ -0,0 +1,1 @@
+{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-C... | {
"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
} | 1.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>=2.3.5",
"betamax>=0.5.0",
"betamax_matchers>=0.2.0",
"mock==1.0.1"
],
"pre_install": null,
"p... | attrs==22.2.0
betamax==0.8.1
betamax-matchers==0.4.0
certifi==2021.5.30
charset-normalizer==2.0.12
distlib==0.3.9
filelock==3.4.1
-e git+https://github.com/sigmavirus24/github3.py.git@f6948ac9097f61dd44d8666ac1de42edbea666d5#egg=github3.py
idna==3.10
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1... | name: github3.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/integration/test_pulls.py::TestPullRequest::test_repository"
] | [] | [
"tests/integration/test_pulls.py::TestPullRequest::test_close",
"tests/integration/test_pulls.py::TestPullRequest::test_commits",
"tests/integration/test_pulls.py::TestPullRequest::test_create_comment",
"tests/integration/test_pulls.py::TestPullRequest::test_create_review_comment",
"tests/integration/test_p... | [] | BSD 3-Clause "New" or "Revised" License | 545 | 252 | [
"github3/pulls.py"
] | |
networkx__networkx-2136 | 5aefafab2f05b97b150c6bf681c21ba6465c8d10 | 2016-05-19 01:37:02 | 3f4fd85765bf2d88188cfd4c84d0707152e6cd1e | diff --git a/networkx/readwrite/gml.py b/networkx/readwrite/gml.py
index b6ab5e9eb..af8db1d00 100644
--- a/networkx/readwrite/gml.py
+++ b/networkx/readwrite/gml.py
@@ -435,10 +435,6 @@ def parse_gml_lines(lines, label, destringizer):
if label != 'id':
G = nx.relabel_nodes(G, mapping)
- if 'name'... | relabel_nodes adds a graph attribute when copy=True
I would have expected the following to work:
```
import networkx as nx
graph_a = nx.DiGraph()
graph_b = nx.relabel_nodes(graph_a, {}, copy=True)
print "graph_a.graph", graph_a.graph
print "graph_b.graph", graph_b.graph
assert graph_a.graph == graph_b.graph
`... | networkx/networkx | diff --git a/networkx/tests/test_relabel.py b/networkx/tests/test_relabel.py
index 682de98a0..65c29eeab 100644
--- a/networkx/tests/test_relabel.py
+++ b/networkx/tests/test_relabel.py
@@ -150,6 +150,17 @@ class TestRelabel():
mapping={0:'aardvark'}
G=relabel_nodes(G,mapping,copy=False)
+ def tes... | {
"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": 0
},
"num_modified_files": 2
} | help | {
"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@5aefafab2f05b97b150c6bf681c21ba6465c8d10#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/tests/test_relabel.py::TestRelabel::test_relabel_copy_name"
] | [
"networkx/tests/test_relabel.py::test"
] | [
"networkx/tests/test_relabel.py::TestRelabel::test_convert_node_labels_to_integers",
"networkx/tests/test_relabel.py::TestRelabel::test_convert_to_integers2",
"networkx/tests/test_relabel.py::TestRelabel::test_convert_to_integers_raise",
"networkx/tests/test_relabel.py::TestRelabel::test_relabel_nodes_copy",
... | [] | BSD 3-Clause | 549 | 334 | [
"networkx/readwrite/gml.py",
"networkx/relabel.py"
] | |
jubatus__jubatus-python-client-69 | 34f9f83ee2d230672518102e541286425c92c287 | 2016-05-19 05:04:03 | ecbdecb8eb9ee40694ee39c4bf1de7e7fd984ae5 | diff --git a/jubatus/common/client.py b/jubatus/common/client.py
index d599319..9cd91a8 100644
--- a/jubatus/common/client.py
+++ b/jubatus/common/client.py
@@ -54,6 +54,10 @@ class ClientBase(object):
(`unpack_encoding=None`)
"""
def __init__(self, host, port, name, timeout=10):
+ check_types(h... | no type validation for constructor arguments
Currently argument types are validated, but constructor arguments are not.
For example, the following code:
```
c = jubatus.Classifier("localhost", 9199, 0) # it should be ("localhost", 9199, "") to work
c.get_status()
```
raises "TypeMismatch (error 2)" on RPC ca... | jubatus/jubatus-python-client | diff --git a/test/jubatus_test/common/test_client.py b/test/jubatus_test/common/test_client.py
index 0e929f8..065b538 100644
--- a/test/jubatus_test/common/test_client.py
+++ b/test/jubatus_test/common/test_client.py
@@ -67,5 +67,22 @@ class ClientTest(unittest.TestCase):
self.assertEqual("test", c.call("test"... | {
"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": 0,
"test_score": 0
},
"num_modified_files": 1
} | 0.9 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[test]",
"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 --co... | exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
-e git+https://github.com/jubatus/jubatus-python-client.git@34f9f83ee2d230672518102e541286425c92c287#egg=jubatus
msgpack-python==0.5.6
msgpack-rpc-python==0.4.1
packaging @ file:///cr... | name: jubatus-python-client
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=pyhd3e... | [
"test/jubatus_test/common/test_client.py::ClientBaseTest::test_constructor"
] | [] | [
"test/jubatus_test/common/test_client.py::ClientTest::test_remote_error",
"test/jubatus_test/common/test_client.py::ClientTest::test_type_mismatch",
"test/jubatus_test/common/test_client.py::ClientTest::test_unknown_method",
"test/jubatus_test/common/test_client.py::ClientTest::test_wrong_number_of_arguments"... | [] | MIT License | 550 | 248 | [
"jubatus/common/client.py"
] | |
andycasey__ads-64 | 0afd82e0f48ee4debb9047c086488d860415bce7 | 2016-05-28 20:54:36 | c039d67c2b2e9dad936758bc89df1fdd1cbd0aa1 | diff --git a/ads/search.py b/ads/search.py
index c8a0bb4..8f36421 100644
--- a/ads/search.py
+++ b/ads/search.py
@@ -40,21 +40,20 @@ class Article(object):
return self.__unicode__().encode("utf-8")
def __unicode__(self):
- author = self.first_author or "Unknown author"
- if self.author and... | Exception handling in Unicode representation of Articles
In the article method `__unicode__()`, the article properties `first_author`, `bibcode` and `year` are used. This can yield an exception if the fields are not included in the original search query; generally for `first_author` as no getter exists, or if deferred ... | andycasey/ads | diff --git a/ads/tests/test_search.py b/ads/tests/test_search.py
index dc36eda..75d834f 100644
--- a/ads/tests/test_search.py
+++ b/ads/tests/test_search.py
@@ -49,12 +49,13 @@ class TestArticle(unittest.TestCase):
def test_equals(self):
"""
the __eq__ method should compare bibcodes, and raise if... | {
"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": 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": [
"nose",
"coverage",
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
"requirements.txt"
... | -e git+https://github.com/andycasey/ads.git@0afd82e0f48ee4debb9047c086488d860415bce7#egg=ads
certifi==2025.1.31
charset-normalizer==3.4.1
coverage==7.8.0
exceptiongroup==1.2.2
httpretty==0.8.10
idna==3.10
iniconfig==2.1.0
MarkupSafe==3.0.2
mock==5.2.0
nose==1.3.7
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
requests==2.... | 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::TestArticle::test_equals",
"ads/tests/test_search.py::TestArticle::test_print_methods"
] | [
"ads/tests/test_search.py::TestArticle::test_cached_properties",
"ads/tests/test_search.py::TestArticle::test_get_field",
"ads/tests/test_search.py::TestArticle::test_init",
"ads/tests/test_search.py::TestSearchQuery::test_iter",
"ads/tests/test_search.py::TestSearchQuery::test_rows_rewrite",
"ads/tests/t... | [
"ads/tests/test_search.py::TestSearchQuery::test_init",
"ads/tests/test_search.py::TestSolrResponse::test_default_article_fields",
"ads/tests/test_search.py::TestSolrResponse::test_init",
"ads/tests/test_search.py::TestSolrResponse::test_load_http_response",
"ads/tests/test_search.py::Testquery::test_init"
... | [] | MIT License | 561 | 445 | [
"ads/search.py"
] | |
html5lib__html5lib-python-259 | 2d376737a6246ebb38a79600a7fe75abd923cf3e | 2016-05-28 21:05:44 | 563dc298ea43021f9a9306fc7da3734ea5d9d8ec | codecov-io: ## [Current coverage][cc-pull] is **90.83%**
> Merging [#259][cc-pull] into [master][cc-base-branch] will increase coverage by **<.01%**
```diff
@@ master #259 diff @@
==========================================
Files 51 51
Lines 6836 6840 ... | diff --git a/html5lib/treebuilders/etree.py b/html5lib/treebuilders/etree.py
index d394148..4d12bd4 100644
--- a/html5lib/treebuilders/etree.py
+++ b/html5lib/treebuilders/etree.py
@@ -100,6 +100,7 @@ def getETreeBuilder(ElementTreeImplementation, fullTree=False):
node.parent = self
def removeCh... | etree treewalker infinite loop
This goes into an infinite loop:
```python
import html5lib
frag = html5lib.parseFragment("<b><em><foo><foob><fooc><aside></b></em>")
walker = html5lib.getTreeWalker("etree")
print list(walker(frag))
``` | html5lib/html5lib-python | diff --git a/html5lib/tests/test_parser2.py b/html5lib/tests/test_parser2.py
index 0ec5b04..b7a92fd 100644
--- a/html5lib/tests/test_parser2.py
+++ b/html5lib/tests/test_parser2.py
@@ -7,7 +7,7 @@ import io
from . import support # noqa
from html5lib.constants import namespaces
-from html5lib import parse, HTMLPars... | {
"commit_name": "merge_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": 0
},
"num_modified_files": 1
} | 1.08 | {
"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": [
"git submodule update --init --recursive"
],
"python": "3.9",
"re... | chardet==5.2.0
datrie==0.8.2
exceptiongroup==1.2.2
Genshi==0.7.9
-e git+https://github.com/html5lib/html5lib-python.git@2d376737a6246ebb38a79600a7fe75abd923cf3e#egg=html5lib
iniconfig==2.1.0
lxml==5.3.1
mock==5.2.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
six==1.17.0
tomli==2.2.1
webencodings==0.5.1
| name: html5lib-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
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- lib... | [
"html5lib/tests/test_parser2.py::test_no_duplicate_clone"
] | [] | [
"html5lib/tests/test_parser2.py::test_assertDoctypeCloneable",
"html5lib/tests/test_parser2.py::test_line_counter",
"html5lib/tests/test_parser2.py::test_namespace_html_elements_0_dom",
"html5lib/tests/test_parser2.py::test_namespace_html_elements_1_dom",
"html5lib/tests/test_parser2.py::test_namespace_html... | [] | MIT License | 562 | 135 | [
"html5lib/treebuilders/etree.py"
] |
Axelrod-Python__Axelrod-603 | c919c39d58552c2db4a2719c817cfa3a3c301f92 | 2016-05-30 15:36:49 | e5b85453f0288ec9f9ea9eb91ed6042855a7b86c | diff --git a/axelrod/result_set.py b/axelrod/result_set.py
index b2bc1b94..b0a67300 100644
--- a/axelrod/result_set.py
+++ b/axelrod/result_set.py
@@ -1,5 +1,6 @@
from collections import defaultdict
import csv
+import tqdm
from numpy import mean, nanmedian, std
@@ -14,10 +15,25 @@ except ImportError:
from i... | Results set processing shouldn't be in the progress bar | Axelrod-Python/Axelrod | diff --git a/axelrod/tests/unit/test_resultset.py b/axelrod/tests/unit/test_resultset.py
index 2df8666a..c5a084bb 100644
--- a/axelrod/tests/unit/test_resultset.py
+++ b/axelrod/tests/unit/test_resultset.py
@@ -161,7 +161,9 @@ class TestResultSet(unittest.TestCase):
'Defector,Tit For Tat,Alternator\n2.6,1.... | {
"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"... | 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": [
"pytest",
"pytest-cov"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",... | attrs==25.3.0
-e git+https://github.com/Axelrod-Python/Axelrod.git@c919c39d58552c2db4a2719c817cfa3a3c301f92#egg=Axelrod
coverage==7.8.0
cycler==0.12.1
exceptiongroup==1.2.2
hypothesis==6.130.6
iniconfig==2.1.0
kiwisolver==1.4.7
matplotlib==3.3.4
numpy==2.0.2
packaging==24.2
pillow==11.1.0
pluggy==1.5.0
pyparsing==2.1.1... | name: Axelrod
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... | [
"axelrod/tests/unit/test_resultset.py::TestResultSet::test_cooperating_rating",
"axelrod/tests/unit/test_resultset.py::TestResultSet::test_cooperation",
"axelrod/tests/unit/test_resultset.py::TestResultSet::test_eigenjesus_rating",
"axelrod/tests/unit/test_resultset.py::TestResultSet::test_eigenmoses_rating",... | [
"axelrod/tests/unit/test_resultset.py::TestResultSet::test_csv"
] | [] | [] | MIT License | 564 | 2,656 | [
"axelrod/result_set.py",
"axelrod/tournament.py"
] | |
zalando-stups__pierone-cli-37 | 991c05e9c7496b2aac071d85d0a9ca6b8afcf9dd | 2016-05-31 08:47:53 | 560cae1b4fc185c7a8aa3a1a50e0a96b2c7dd8e7 | diff --git a/pierone/cli.py b/pierone/cli.py
index 1af5790..50dba86 100644
--- a/pierone/cli.py
+++ b/pierone/cli.py
@@ -232,7 +232,8 @@ def get_clair_features(url, layer_id, access_token):
return []
else:
r.raise_for_status()
- return r.json()['Layer']['Features']
+
+ return r.json()['Laye... | pierone fails with backtrace when the CVE status is COULDNT_FIGURE_OUT
```
Traceback (most recent call last):
File "/usr/local/bin/pierone", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.4/dist-packages/pierone/cli.py", line 485, in main
cli()
File "/usr/local/lib/python3.4/dist... | zalando-stups/pierone-cli | diff --git a/tests/test_cli.py b/tests/test_cli.py
index 6282253..087d27d 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -221,6 +221,61 @@ def test_cves(monkeypatch, tmpdir):
assert re.match('[^\n]+\n[^\n]+HIGH', result.output), 'Results should be ordered by highest priority'
+def test_no_cves_f... | {
"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.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 ... | certifi==2025.1.31
charset-normalizer==3.4.1
click==8.1.8
clickclick==20.10.2
coverage==7.8.0
dnspython==2.7.0
exceptiongroup==1.2.2
execnet==2.1.1
idna==3.10
iniconfig==2.1.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
pytest-asyncio==0.26.0
pytest-cov==6.0.0
pytest-mock==3.14.0
pytest-xdist==3.6.1
PyYAML==6.0.2
reque... | name: pierone-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
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-... | [
"tests/test_cli.py::test_no_cves_found"
] | [] | [
"tests/test_cli.py::test_version",
"tests/test_cli.py::test_login",
"tests/test_cli.py::test_login_given_url_option",
"tests/test_cli.py::test_scm_source",
"tests/test_cli.py::test_image",
"tests/test_cli.py::test_tags",
"tests/test_cli.py::test_cves",
"tests/test_cli.py::test_latest",
"tests/test_c... | [] | Apache License 2.0 | 565 | 122 | [
"pierone/cli.py"
] | |
tableau__document-api-python-15 | 07aad9550d3d36a4d74c4751832c50fe81882a01 | 2016-06-02 00:21:16 | 07aad9550d3d36a4d74c4751832c50fe81882a01 | diff --git a/tableaudocumentapi/datasource.py b/tableaudocumentapi/datasource.py
index 93ebe55..617004a 100644
--- a/tableaudocumentapi/datasource.py
+++ b/tableaudocumentapi/datasource.py
@@ -72,7 +72,7 @@ class Datasource(object):
"""
# save the file
- self._datasourceTree.write(self._filen... | Tabcmd publish with .twb created via Document API
I can successfully create a .twb file via the Document API, but attempting to publish it to my Tableau Server via Tabcmd results in an unexpected error:
**Bad request
unexpected error occurred opening the packaged workbook.**
Attached is the template workbook cre... | tableau/document-api-python | diff --git a/test.py b/test.py
index fd7d1bd..5606005 100644
--- a/test.py
+++ b/test.py
@@ -17,6 +17,7 @@ TABLEAU_10_WORKBOOK = '''<?xml version='1.0' encoding='utf-8' ?><workbook source
TABLEAU_CONNECTION_XML = ET.fromstring(
'''<connection authentication='sspi' class='sqlserver' dbname='TestV1' odbc-native-pro... | {
"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": 0
},
"num_modified_files": 2
} | 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": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --color=no... | 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
-e git+https://github.com/tabl... | name: document-api-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
- exceptiongroup=1.2.0=py39h06a4308_0
- iniconfig=1.1.1=pyhd3eb1... | [
"test.py::DatasourceModelTests::test_save_has_xml_declaration",
"test.py::WorkbookModelV10Tests::test_save_has_xml_declaration"
] | [] | [
"test.py::HelperMethodTests::test_is_valid_file_with_invalid_inputs",
"test.py::HelperMethodTests::test_is_valid_file_with_valid_inputs",
"test.py::ConnectionParserTests::test_can_extract_federated_connections",
"test.py::ConnectionParserTests::test_can_extract_legacy_connection",
"test.py::ConnectionModelT... | [] | MIT License | 569 | 397 | [
"tableaudocumentapi/datasource.py",
"tableaudocumentapi/workbook.py"
] | |
falconry__falcon-820 | 50b1759ee7f7b54a872c01c85152f8648e350399 | 2016-06-07 21:07:32 | 67d61029847cbf59e4053c8a424df4f9f87ad36f | kgriffs: Looks like we accidentally had some overlap in effort between #729 and #811. I attempted to combine the two into a new PR with a few tweeks to param naming and docstrings. Everyone please take a look and provide feedback. Thanks!
codecov-io: ## [Current coverage][cc-pull] is **100%**
> Merging [#820][cc-pull] ... | diff --git a/falcon/request.py b/falcon/request.py
index 597ac80..7359991 100644
--- a/falcon/request.py
+++ b/falcon/request.py
@@ -284,6 +284,7 @@ class Request(object):
self._params = parse_query_string(
self.query_string,
keep_blank_qs_values=self.options.k... | Add option to opt-out from comma separated value parsing
I'm porting a project to Falcon and I stumbled upon an issue regarding its parsing of CSV values inside URIs. Let's say I have filtering engine that accepts queries such as this:
http://great.dude/api/cars?query=added:yesterday,today+spoilers:red
I obvi... | falconry/falcon | diff --git a/tests/test_options.py b/tests/test_options.py
index b3d9812..a3b8b72 100644
--- a/tests/test_options.py
+++ b/tests/test_options.py
@@ -1,16 +1,32 @@
+import ddt
+
from falcon.request import RequestOptions
import falcon.testing as testing
+@ddt.ddt
class TestRequestOptions(testing.TestBase):
- ... | {
"commit_name": "merge_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": 3
} | 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": [
"nose",
"ddt",
"testtools",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
... | attrs==22.2.0
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
ddt==1.7.2
-e git+https://github.com/falconry/falcon.git@50b1759ee7f7b54a872c01c85152f8648e350399#egg=falcon
fixtures==4.0.1
idna==3.10
importlib-metadata==4.8.3
iniconfig==1.1.1
nose==1.3.7
packaging==21.3
pbr==6.1.1
pluggy==1.0.0
py==1.11.0
pyp... | 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_options.py::TestRequestOptions::test_option_defaults",
"tests/test_options.py::TestRequestOptions::test_options_toggle_3_auto_parse_qs_csv",
"tests/test_query_params.py::_TestQueryParams::test_option_auto_parse_qs_csv_complex_false",
"tests/test_query_params.py::_TestQueryParams::test_option_auto_... | [
"tests/test_utils.py::TestFalconUtils::test_deprecated_decorator"
] | [
"tests/test_options.py::TestRequestOptions::test_incorrect_options",
"tests/test_options.py::TestRequestOptions::test_options_toggle_1_keep_blank_qs_values",
"tests/test_options.py::TestRequestOptions::test_options_toggle_2_auto_parse_form_urlencoded",
"tests/test_query_params.py::_TestQueryParams::test_allow... | [] | Apache License 2.0 | 578 | 1,655 | [
"falcon/request.py",
"falcon/util/misc.py",
"falcon/util/uri.py"
] |
cdent__gabbi-153 | 0a8a3b8faf9a900fd132d9b147f67a851d52f178 | 2016-06-12 20:11:11 | 0a8a3b8faf9a900fd132d9b147f67a851d52f178 | cdent: @jd and @EmilienM, this good for you guys?
EmilienM: :+1: | diff --git a/gabbi/driver.py b/gabbi/driver.py
index 33c0a98..49088fa 100644
--- a/gabbi/driver.py
+++ b/gabbi/driver.py
@@ -39,7 +39,8 @@ from gabbi import utils
def build_tests(path, loader, host=None, port=8001, intercept=None,
test_loader_name=None, fixture_module=None,
- response... | In 'live' testing scenarios argument passing to build_tests is convoluted and SSL may not work
If you want to use `build_tests` to create real TestCases against a live server it's likely you know the URL and that would be most convenient thing to pass instead of having to parse out the host, port and prefix (script_nam... | cdent/gabbi | diff --git a/gabbi/tests/test_driver.py b/gabbi/tests/test_driver.py
index 0b2ce0a..8f6bca0 100644
--- a/gabbi/tests/test_driver.py
+++ b/gabbi/tests/test_driver.py
@@ -70,3 +70,20 @@ class DriverTest(unittest.TestCase):
first_test = suite._tests[0]._tests[0]
full_url = first_test._parse_url(first_tes... | {
"commit_name": "merge_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": 1
},
"num_modified_files": 3
} | 1.21 | {
"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.5",
"reqs_path": [
"requirements.txt"
],
"test_cmd": "pytest --... | attrs==22.2.0
certifi==2021.5.30
colorama==0.4.5
decorator==5.1.1
-e git+https://github.com/cdent/gabbi.git@0a8a3b8faf9a900fd132d9b147f67a851d52f178#egg=gabbi
importlib-metadata==4.8.3
iniconfig==1.1.1
jsonpath-rw==1.4.0
jsonpath-rw-ext==1.2.2
packaging==21.3
pbr==6.1.1
pluggy==1.0.0
ply==3.11
py==1.11.0
pyparsing==3.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_driver.py::DriverTest::test_build_url_target",
"gabbi/tests/test_driver.py::DriverTest::test_build_url_target_forced_ssl",
"gabbi/tests/test_utils.py::UtilsHostInfoFromTarget::test_ipv6_host_localhost",
"gabbi/tests/test_utils.py::UtilsHostInfoFromTarget::test_ipv6_hostport_localhost",
"ga... | [] | [
"gabbi/tests/test_driver.py::DriverTest::test_build_require_ssl",
"gabbi/tests/test_driver.py::DriverTest::test_build_requires_host_or_intercept",
"gabbi/tests/test_driver.py::DriverTest::test_driver_loads_two_tests",
"gabbi/tests/test_driver.py::DriverTest::test_driver_prefix",
"gabbi/tests/test_runner.py:... | [] | Apache License 2.0 | 582 | 1,372 | [
"gabbi/driver.py",
"gabbi/runner.py",
"gabbi/utils.py"
] |
mozilla__bleach-205 | 2235b8fcadc8abef3a2845bb0ce67206982f3489 | 2016-06-14 16:16:47 | edd91a00e1c50cebbc512c7db61897ad3d0ba00a | diff --git a/bleach/__init__.py b/bleach/__init__.py
index 3092cb7..ac163d1 100644
--- a/bleach/__init__.py
+++ b/bleach/__init__.py
@@ -315,7 +315,7 @@ def linkify(text, callbacks=DEFAULT_CALLBACKS, skip_pre=False,
if node.tag == ETREE_TAG('pre') and skip_pre:
linkify_nodes(node, ... | Children of <pre> tags should not be linkified when skip_pre=True (patch attached)
The children of `pre` tags should not be linkified when `skip_pre` is on
```
diff --git a/bleach/__init__.py b/bleach/__init__.py
index 48b6512..4c2dd1b 100644
--- a/bleach/__init__.py
+++ b/bleach/__init__.py
@@ -300,7 +300,7 @... | mozilla/bleach | diff --git a/bleach/tests/test_links.py b/bleach/tests/test_links.py
index 62da8d1..2958f5e 100644
--- a/bleach/tests/test_links.py
+++ b/bleach/tests/test_links.py
@@ -314,6 +314,13 @@ def test_skip_pre():
eq_(nofollowed, linkify(already_linked))
eq_(nofollowed, linkify(already_linked, skip_pre=True))
+ ... | {
"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
} | 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": [
"nose",
"flake8",
"pytest"
],
"pre_install": null,
"python": "3.5",
"reqs_path": [
"requirements.txt... | alabaster==0.7.13
attrs==22.2.0
Babel==2.11.0
-e git+https://github.com/mozilla/bleach.git@2235b8fcadc8abef3a2845bb0ce67206982f3489#egg=bleach
certifi==2021.5.30
cffi==1.15.1
charset-normalizer==2.0.12
colorama==0.4.5
cryptography==40.0.2
distlib==0.3.9
docutils==0.17.1
filelock==3.4.1
flake8==5.0.4
html5lib==0.9999999... | name: bleach
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... | [
"bleach/tests/test_links.py::test_skip_pre"
] | [] | [
"bleach/tests/test_links.py::test_empty",
"bleach/tests/test_links.py::test_simple_link",
"bleach/tests/test_links.py::test_trailing_slash",
"bleach/tests/test_links.py::test_mangle_link",
"bleach/tests/test_links.py::test_mangle_text",
"bleach/tests/test_links.py::test_set_attrs",
"bleach/tests/test_li... | [] | Apache License 2.0 | 584 | 151 | [
"bleach/__init__.py"
] | |
juju-solutions__charms.reactive-73 | 04663e45f3683d4c497f43526d3ac26593ee10a2 | 2016-06-15 01:33:48 | 59b07bd9447d8a4cb027ea2515089216b8d20549 | diff --git a/charms/reactive/bus.py b/charms/reactive/bus.py
index 885e498..853571a 100644
--- a/charms/reactive/bus.py
+++ b/charms/reactive/bus.py
@@ -229,6 +229,7 @@ class Handler(object):
self._action = action
self._args = []
self._predicates = []
+ self._post_callbacks = []
... | only_once help unclear
_From @jacekn on January 27, 2016 17:29_
I was trying to execute certain function only once in my code.
This does not work:
```
@only_once()
def basenode():
print("in basenode")
```
```
TypeError: only_once() missing 1 required positional argument: 'action'
```
I tried like thi... | juju-solutions/charms.reactive | diff --git a/tests/test_decorators.py b/tests/test_decorators.py
index 4691a30..2599b53 100644
--- a/tests/test_decorators.py
+++ b/tests/test_decorators.py
@@ -241,11 +241,28 @@ class TestReactiveDecorators(unittest.TestCase):
calls = []
@reactive.decorators.only_once
- def test(num):
- ... | {
"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": 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": [
"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@04663e45f3683d4c497f43526d3ac26593ee10a2#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_only_once",
"tests/test_decorators.py::TestReactiveDecorators::test_only_once_parens"
] | [] | [
"tests/test_decorators.py::TestReactiveDecorators::test_hook",
"tests/test_decorators.py::TestReactiveDecorators::test_multi",
"tests/test_decorators.py::TestReactiveDecorators::test_not_unless",
"tests/test_decorators.py::TestReactiveDecorators::test_when",
"tests/test_decorators.py::TestReactiveDecorators... | [] | Apache License 2.0 | 587 | 656 | [
"charms/reactive/bus.py",
"charms/reactive/decorators.py"
] | |
cdent__gabbi-157 | 1b9a0be830dac86865bee85c33886d3b2fb4d37b | 2016-06-16 12:05:42 | 1b9a0be830dac86865bee85c33886d3b2fb4d37b | diff --git a/gabbi/driver.py b/gabbi/driver.py
index 9cb88fe..22a48c4 100644
--- a/gabbi/driver.py
+++ b/gabbi/driver.py
@@ -29,8 +29,10 @@ import os
import unittest
from unittest import suite
import uuid
+import warnings
from gabbi import case
+from gabbi import exception
from gabbi import handlers
from gabbi ... | Q: What characters are legal / recommended for test name in YAML?
I suspect plain alphanum + spaces is recommended, but I might sometimes want to do hyphen or parens. So, just being thorough.
Thanks!
| cdent/gabbi | diff --git a/gabbi/tests/gabbits_intercept/json_extensions.yaml b/gabbi/tests/gabbits_intercept/json-extensions.yaml
similarity index 100%
rename from gabbi/tests/gabbits_intercept/json_extensions.yaml
rename to gabbi/tests/gabbits_intercept/json-extensions.yaml
diff --git a/gabbi/tests/gabbits_intercept/last_url.yaml ... | {
"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": 2
},
"num_modified_files"... | 1.22 | {
"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",
"testrepository",
"coverage",
"hacking",
"sphinx",
"pytest"
],
"pre_install": null,
"python... | alabaster==0.7.13
attrs==22.2.0
Babel==2.11.0
certifi==2021.5.30
charset-normalizer==2.0.12
colorama==0.4.5
coverage==6.2
decorator==5.1.1
docutils==0.18.1
extras==1.0.0
fixtures==4.0.1
flake8==3.8.4
-e git+https://github.com/cdent/gabbi.git@1b9a0be830dac86865bee85c33886d3b2fb4d37b#egg=gabbi
hacking==4.1.0
idna==3.10
i... | 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_syntax_warning.py::DriverTest::test_driver_warngs_on_files"
] | [] | [] | [] | Apache License 2.0 | 589 | 474 | [
"gabbi/driver.py",
"gabbi/exception.py"
] | |
ifosch__accloudtant-88 | 79e3cf915208ffd58a63412ffc87bd48f8bfb2dd | 2016-06-24 12:10:46 | 33f90ff0bc1639c9fe793afd837eee80170caf3e | diff --git a/accloudtant/aws/instance.py b/accloudtant/aws/instance.py
index d83c3dc..f360c03 100644
--- a/accloudtant/aws/instance.py
+++ b/accloudtant/aws/instance.py
@@ -28,6 +28,9 @@ class Instance(object):
'best': 0.0,
}
+ def __repr__(self):
+ return "<accloudtant.aws.instance.In... | Iterate over appropriate subsets for performance improvement
When generating reports, the code iterates over all instances, and all reserved instances, to get the links between these, the report should iterate over running instances and active reserved instances, only. | ifosch/accloudtant | diff --git a/tests/aws/conftest.py b/tests/aws/conftest.py
index 0594830..5a97b58 100644
--- a/tests/aws/conftest.py
+++ b/tests/aws/conftest.py
@@ -65,6 +65,14 @@ def ec2_resource():
for instance in self.instances:
yield MockEC2Instance(instance)
+ def filter(self, Filters=None):... | {
"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": 0
},
"num_modified_files": 2
} | 0.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"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path... | -e git+https://github.com/ifosch/accloudtant.git@79e3cf915208ffd58a63412ffc87bd48f8bfb2dd#egg=accloudtant
boto3==1.1.4
botocore==1.2.10
click==4.1
docutils==0.21.2
exceptiongroup==1.2.2
futures==2.2.0
iniconfig==2.1.0
jmespath==0.10.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
python-dateutil==2.9.0.post0
requests==2.... | 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"
] | [] | [] | [] | null | 597 | 457 | [
"accloudtant/aws/instance.py",
"accloudtant/aws/reports.py"
] | |
ifosch__accloudtant-90 | 96ca7fbc89be0344db1af0ec2bc9fdecff6380eb | 2016-06-24 19:51:52 | 33f90ff0bc1639c9fe793afd837eee80170caf3e | diff --git a/accloudtant/aws/instance.py b/accloudtant/aws/instance.py
index f360c03..02ca135 100644
--- a/accloudtant/aws/instance.py
+++ b/accloudtant/aws/instance.py
@@ -94,11 +94,11 @@ class Instance(object):
def match_reserved_instance(self, reserved):
return not (
self.state != 'running'... | Create a Reserved Instance type/class
Reserved instances are currently simple dictionaries. Implementing these as objects might help to use them. | ifosch/accloudtant | diff --git a/tests/aws/test_instance.py b/tests/aws/test_instance.py
index 6f6d73c..fae2e82 100644
--- a/tests/aws/test_instance.py
+++ b/tests/aws/test_instance.py
@@ -16,6 +16,7 @@ import datetime
import pytest
from dateutil.tz import tzutc
import accloudtant.aws.instance
+from accloudtant.aws.reserved_instance im... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_added_files",
"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
},... | 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/ifosch/accloudtant.git@96ca7fbc89be0344db1af0ec2bc9fdecff6380eb#egg=accloudtant
boto3==1.1.4
botocore==1.2.10
click==4.1
docutils==0.21.2
exceptiongroup==1.2.2
futures==2.2.0
iniconfig==2.1.0
jmespath==0.10.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
python-dateutil==2.9.0.post0
requests==2.... | 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_instance.py::test_instance",
"tests/aws/test_instance.py::test_unnamed_instance",
"tests/aws/test_instance.py::test_guess_os",
"tests/aws/test_reserved_instance.py::test_retired_ri",
"tests/aws/test_reserved_instance.py::test_active_ri",
"tests/aws/test_reserved_instance.py::test_ri_link"
... | [] | [] | [] | null | 598 | 1,323 | [
"accloudtant/aws/instance.py",
"accloudtant/aws/reports.py"
] | |
falconry__falcon-839 | 2177a7a44c62f9159125049b232eb3cf668a69cd | 2016-06-30 20:36:53 | 67d61029847cbf59e4053c8a424df4f9f87ad36f | codecov-io: ## [Current coverage][cc-pull] is **100%**
> Merging [#839][cc-pull] into [master][cc-base-branch] will not change coverage
```diff
@@ master #839 diff @@
====================================
Files 29 29
Lines 1790 1803 +13
Methods 0 0 ... | diff --git a/falcon/request.py b/falcon/request.py
index 53edeae..597ac80 100644
--- a/falcon/request.py
+++ b/falcon/request.py
@@ -11,6 +11,7 @@
# limitations under the License.
from datetime import datetime
+import json
try:
# NOTE(kgrifs): In Python 2.6 and 2.7, socket._fileobject is a
@@ -1030,7 +1031,... | Implement get_param_as_dict()
This helper would deserialize JSON into a `dict`. For example:
`thing=%7B%22name%22%3A%20%22value%22%2C%20%22another%22%3A%20%22field%22%2C%20%22some%22%3A%20%22thing%22%7D`
...would be interpreted by req.get_param_as_dict as:
```json
{"name": "value", "another": "field", "some":... | falconry/falcon | diff --git a/tests/test_query_params.py b/tests/test_query_params.py
index bb01847..c588f23 100644
--- a/tests/test_query_params.py
+++ b/tests/test_query_params.py
@@ -1,4 +1,5 @@
from datetime import date
+import json
import ddt
@@ -473,6 +474,39 @@ class _TestQueryParams(testing.TestBase):
self.assert... | {
"commit_name": "merge_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
} | 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": [
"nose",
"ddt",
"testtools",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
... | attrs==22.2.0
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
ddt==1.7.2
-e git+https://github.com/falconry/falcon.git@2177a7a44c62f9159125049b232eb3cf668a69cd#egg=falcon
fixtures==4.0.1
idna==3.10
importlib-metadata==4.8.3
iniconfig==1.1.1
nose==1.3.7
packaging==21.3
pbr==6.1.1
pluggy==1.0.0
py==1.11.0
pyp... | 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_query_params.py::_TestQueryParams::test_get_dict_invalid",
"tests/test_query_params.py::_TestQueryParams::test_get_dict_missing_param",
"tests/test_query_params.py::_TestQueryParams::test_get_dict_store",
"tests/test_query_params.py::_TestQueryParams::test_get_dict_valid",
"tests/test_query_para... | [] | [
"tests/test_query_params.py::_TestQueryParams::test_allowed_names",
"tests/test_query_params.py::_TestQueryParams::test_bad_percentage",
"tests/test_query_params.py::_TestQueryParams::test_blank",
"tests/test_query_params.py::_TestQueryParams::test_boolean",
"tests/test_query_params.py::_TestQueryParams::te... | [] | Apache License 2.0 | 610 | 568 | [
"falcon/request.py"
] |
rthalley__dnspython-188 | 188aa701a6826c607da0624e31a8c4618d0a8017 | 2016-07-03 00:30:41 | 188aa701a6826c607da0624e31a8c4618d0a8017 | bastiak: Yup, I haven't fixed it right
sebix: As binary mode is default for Py2, I think you have to check for non-existance of `t` in mode for py2. `f.mode` is exactly the used parameter, without default values.
bastiak: I'm not sure if use except TypeError is the best practise with handling boolean or textual streams... | diff --git a/dns/zone.py b/dns/zone.py
index 4a73e1e..1b5dca2 100644
--- a/dns/zone.py
+++ b/dns/zone.py
@@ -19,6 +19,7 @@ from __future__ import generators
import sys
import re
+import os
from io import BytesIO
import dns.exception
@@ -498,18 +499,27 @@ class Zone(object):
@type nl: string or None
... | py3: Zone.to_file failed
Hello,
```
#!/usr/local/bin/python3
import dns.zone
from dns.rdatatype import SOA
zone_obj = dns.zone.Zone(dns.name.from_text('test.zone'))
zone_obj.find_rdataset('@', rdtype=SOA, create=True)
zone_obj.to_file(open('/dev/null', 'w'))
Traceback (most recent call last):
File ... | rthalley/dnspython | diff --git a/tests/test_zone.py b/tests/test_zone.py
index 712b590..3d53e93 100644
--- a/tests/test_zone.py
+++ b/tests/test_zone.py
@@ -132,6 +132,59 @@ class ZoneTestCase(unittest.TestCase):
os.unlink(here('example2.out'))
self.failUnless(ok)
+ def testToFileTextualStream(self):
+ ... | {
"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.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": [
"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/rthalley/dnspython.git@188aa701a6826c607da0624e31a8c4618d0a8017#egg=dnspython
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
packaging @ file:///croot/packaging_1734472117206/work
pluggy @ file:///croot/p... | name: dnspython
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_zone.py::ZoneTestCase::testToFileBinaryStream",
"tests/test_zone.py::ZoneTestCase::testToFileTextualStream"
] | [
"tests/test_zone.py::ZoneTestCase::testFromFile1",
"tests/test_zone.py::ZoneTestCase::testFromFile2",
"tests/test_zone.py::ZoneTestCase::testInclude",
"tests/test_zone.py::ZoneTestCase::testToFileBinary",
"tests/test_zone.py::ZoneTestCase::testToFileFilename",
"tests/test_zone.py::ZoneTestCase::testToFile... | [
"tests/test_zone.py::ZoneTestCase::testBadDirective",
"tests/test_zone.py::ZoneTestCase::testDeleteRdataset1",
"tests/test_zone.py::ZoneTestCase::testDeleteRdataset2",
"tests/test_zone.py::ZoneTestCase::testEqual",
"tests/test_zone.py::ZoneTestCase::testFindRRset1",
"tests/test_zone.py::ZoneTestCase::test... | [] | ISC License | 611 | 520 | [
"dns/zone.py"
] |
Azure__WALinuxAgent-308 | 92091140c2a7378c1a01fe8526800af912d93c49 | 2016-07-08 22:37:27 | 92091140c2a7378c1a01fe8526800af912d93c49 | diff --git a/azurelinuxagent/ga/update.py b/azurelinuxagent/ga/update.py
index 635f7e98..1c7d13a9 100644
--- a/azurelinuxagent/ga/update.py
+++ b/azurelinuxagent/ga/update.py
@@ -115,6 +115,7 @@ class UpdateHandler(object):
cmds = shlex.split(agent_cmd)
if cmds[0].lower() == "python":
... | [2.1-selfupdate] launched .egg exits
The launched update (.egg package) discovers an update and exits with exitcode=0. This keeps going on forever
When I run it manually:
```
$ python -u bin/WALinuxAgent-2.1.5.rc3-py2.7.egg -run-exthandlers
2016/07/08 21:53:58.005925 INFO Agent WALinuxAgent-2.1.5.3 is running as... | Azure/WALinuxAgent | diff --git a/tests/ga/test_update.py b/tests/ga/test_update.py
index 3c81437c..cfa537e7 100644
--- a/tests/ga/test_update.py
+++ b/tests/ga/test_update.py
@@ -577,6 +577,7 @@ class TestUpdate(UpdateTestCase):
def _test_ensure_latest_agent(
self,
+ base_version=FlexibleVersion(AGENT_VERSIO... | {
"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
} | 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",
"pyasn1",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.6",
... | 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
nose... | name: WALinuxAgent
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
- impo... | [
"tests/ga/test_update.py::TestUpdate::test_ensure_lastest_agent_purges_old_agents",
"tests/ga/test_update.py::TestUpdate::test_ensure_latest_agent_ignores_old_agents",
"tests/ga/test_update.py::TestUpdate::test_ensure_latest_agent_returns_true_on_first_use",
"tests/ga/test_update.py::TestUpdate::test_ensure_l... | [] | [
"tests/ga/test_update.py::TestGuestAgentError::test_clear",
"tests/ga/test_update.py::TestGuestAgentError::test_creation",
"tests/ga/test_update.py::TestGuestAgentError::test_load_preserves_error_state",
"tests/ga/test_update.py::TestGuestAgentError::test_mark_failure",
"tests/ga/test_update.py::TestGuestAg... | [] | Apache License 2.0 | 616 | 479 | [
"azurelinuxagent/ga/update.py"
] | |
falconry__falcon-843 | 0f64e94a5ab49b58b9efa8462fe8c0369428243d | 2016-07-09 18:14:43 | 67d61029847cbf59e4053c8a424df4f9f87ad36f | codecov-io: ## [Current coverage][cc-pull] is **100%**
> Merging [#843][cc-pull] into [master][cc-base-branch] will not change coverage
```diff
@@ master #843 diff @@
====================================
Files 29 29
Lines 1813 1817 +4
Methods 0 0 ... | diff --git a/falcon/api.py b/falcon/api.py
index 3b5539b..557de77 100644
--- a/falcon/api.py
+++ b/falcon/api.py
@@ -40,17 +40,17 @@ class API(object):
class ExampleComponent(object):
def process_request(self, req, resp):
- \"""Process the request before ro... | Add test for hyphens and other non-arg-friendly chars in URI template field names
Currently we only check up-front in `add_route()` for field names that start with a digit or contain whitespace. This can lead to cryptic errors later on when requests are routed to responders. | falconry/falcon | diff --git a/tests/test_default_router.py b/tests/test_default_router.py
index dec8a8e..9f3c6d5 100644
--- a/tests/test_default_router.py
+++ b/tests/test_default_router.py
@@ -137,13 +137,28 @@ class TestComplexRouting(testing.TestBase):
)
@ddt.data(
- '/repos/{org}/{repo}/compare/{simple-vs-com... | {
"commit_name": "merge_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": 0
},
"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": [
"nose",
"ddt",
"testtools",
"requests",
"pyyaml",
"pytest"
],
"pre_install": [
"apt-get update",
... | attrs==22.2.0
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
ddt==1.7.2
-e git+https://github.com/falconry/falcon.git@0f64e94a5ab49b58b9efa8462fe8c0369428243d#egg=falcon
fixtures==4.0.1
idna==3.10
importlib-metadata==4.8.3
iniconfig==1.1.1
nose==1.3.7
packaging==21.3
pbr==6.1.1
pluggy==1.0.0
py==1.11.0
pyp... | 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::TestComplexRouting::test_invalid_field_name_1____",
"tests/test_default_router.py::TestComplexRouting::test_invalid_field_name_3____kgriffs_",
"tests/test_default_router.py::TestComplexRouting::test_invalid_field_name_6__repos__org___repo__compare___",
"tests/test_default_router... | [] | [
"tests/test_default_router.py::TestRegressionCases::test_recipes",
"tests/test_default_router.py::TestRegressionCases::test_versioned_url",
"tests/test_default_router.py::TestComplexRouting::test_collision_1__teams__collision_",
"tests/test_default_router.py::TestComplexRouting::test_collision_2__emojis_signs... | [] | Apache License 2.0 | 618 | 1,025 | [
"falcon/api.py",
"falcon/routing/compiled.py"
] |
lepture__mistune-105 | 715046fe4b5f3642b24edc7fdd62ba8915228498 | 2016-07-11 21:55:35 | 715046fe4b5f3642b24edc7fdd62ba8915228498 | nsfmc: Hello, i'm not sure what the protocol is for this.
I ran into this bug from a strangely formed embed code i got from gyfcat, but i suspect others could run into it too.
the `test_safe_links` test is currently failing in master, but the test that this adds passes.
Let me know if you have any questions!
... | diff --git a/mistune.py b/mistune.py
index b341cf2..67b0880 100644
--- a/mistune.py
+++ b/mistune.py
@@ -74,7 +74,7 @@ def escape(text, quote=False, smart_amp=True):
def escape_link(url, **kwargs):
"""Remove dangerous URL schemes like javascript: and escape afterwards."""
- lower_url = url.lower()
+ lower... | parsing html can fail to close tag correctly
noticed while debugging an issue in https://github.com/lektor/lektor/issues/241#issuecomment-231819694 i noticed that raw html handling can be broken if there is a space before the closing `>` of the opening tag. i.e.
```
In [38]: mistune.markdown('<iframe src="http://gf... | lepture/mistune | diff --git a/tests/test_extra.py b/tests/test_extra.py
index 7318444..07c1ca3 100644
--- a/tests/test_extra.py
+++ b/tests/test_extra.py
@@ -77,6 +77,12 @@ def test_parse_inline_html():
assert 'href' not in ret
+def test_block_html():
+ ret = mistune.markdown(
+ '<div ></div>', escape=False
+ )
+ ... | {
"commit_name": "merge_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
} | 0.7 | {
"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",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_pa... | exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
-e git+https://github.com/lepture/mistune.git@715046fe4b5f3642b24edc7fdd62ba8915228498#egg=mistune
nose==1.3.7
packaging @ file:///croot/packaging_1734472117206/work
pluggy @ file:///... | name: mistune
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_extra.py::test_safe_links",
"tests/test_extra.py::test_block_html"
] | [] | [
"tests/test_extra.py::test_escape",
"tests/test_extra.py::test_linebreak",
"tests/test_extra.py::test_skip_style",
"tests/test_extra.py::test_use_xhtml",
"tests/test_extra.py::test_parse_inline_html",
"tests/test_extra.py::test_parse_block_html",
"tests/test_extra.py::test_trigger_more_cases",
"tests/... | [] | BSD 3-Clause "New" or "Revised" License | 621 | 449 | [
"mistune.py"
] |
dpkp__kafka-python-756 | 7a350e5fcf33f49094c820ba88b9cee4aeae6e12 | 2016-07-12 15:39:23 | 709ee3b59aff8ab205f0e09c33f4ec8391664228 | diff --git a/kafka/coordinator/base.py b/kafka/coordinator/base.py
index 168115a..25dd000 100644
--- a/kafka/coordinator/base.py
+++ b/kafka/coordinator/base.py
@@ -50,6 +50,7 @@ class BaseCoordinator(object):
'session_timeout_ms': 30000,
'heartbeat_interval_ms': 3000,
'retry_backoff_ms': 100... | Support KafkaConsumer auto-commit with 0.8 brokers
kafka 0.8.2 kafka-python 1.1.1
when enable auto_commit, an AutoCommitTask instance will be created
but when Enable the AutoCommitTask instance?
in the code , only find the function _on_join_complete will enable the AutoCommitTask instance
```
def _on_join_... | dpkp/kafka-python | diff --git a/test/test_coordinator.py b/test/test_coordinator.py
index 15b915d..735d278 100644
--- a/test/test_coordinator.py
+++ b/test/test_coordinator.py
@@ -425,8 +425,7 @@ def test_send_offset_commit_request_fail(patched_coord, offsets):
((0, 9), OffsetCommitRequest[2])])
def test_send_offset_commit_request_... | {
"commit_name": "merge_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": 3
},
"num_modified_files": 2
} | 1.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": [
"pytest",
"pytest-cov",
"pytest-catchlog",
"pytest-sugar",
"pytest-mock",
"mock",
"python-snappy",
"lz4tool... | attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
coverage==6.2
cramjam==2.5.0
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
-e git+https://github.com/dpkp/kafka-python.git@7a350... | 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
- attrs=21.4.0=pyhd3eb1b0_0
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- impo... | [
"test/test_coordinator.py::test_send_offset_commit_request_versions[api_version0-OffsetCommitRequest_v0]",
"test/test_coordinator.py::test_send_offset_fetch_request_versions[api_version0-OffsetFetchRequest_v0]"
] | [] | [
"test/test_coordinator.py::test_init",
"test/test_coordinator.py::test_autocommit_enable_api_version[api_version0]",
"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_aut... | [] | Apache License 2.0 | 623 | 1,025 | [
"kafka/coordinator/base.py",
"kafka/coordinator/consumer.py"
] | |
simphony__simphony-remote-89 | cbbed1d4e4f29aa4ccc3719d52505679abcd25c3 | 2016-07-12 16:43:10 | 61ec23ffe44463cbc41f6fa54b4247963093ed79 | diff --git a/remoteappmanager/application.py b/remoteappmanager/application.py
index 89ba765..b5131db 100644
--- a/remoteappmanager/application.py
+++ b/remoteappmanager/application.py
@@ -125,7 +125,7 @@ class Application(web.Application, LoggingMixin):
"""Initializes the user at the database level."""
... | User.orm_user should be renamed as User.account with an opaque type
The `orm_user` attribute of the singleuser app is an opaque object handled by the database's accounting.
It should be renamed as `account` and be given an opaque type.
| simphony/simphony-remote | diff --git a/tests/test_application.py b/tests/test_application.py
index eee2f8b..c51080d 100644
--- a/tests/test_application.py
+++ b/tests/test_application.py
@@ -44,7 +44,7 @@ class TestApplication(TempMixin, testing.AsyncTestCase):
self.assertIsNotNone(app.container_manager)
self.assertIsNotNone(a... | {
"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.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",
"flake8",
"sphinx",
"coverage"
],
"pre_install": [
"apt-get update",
"apt-get install ... | alabaster==0.7.16
alembic==1.15.2
annotated-types==0.7.0
arrow==1.3.0
async-generator==1.10
attrs==25.3.0
babel==2.17.0
certifi==2025.1.31
certipy==0.2.2
cffi==1.17.1
charset-normalizer==3.4.1
click==8.1.8
coverage==7.8.0
cryptography==44.0.2
docker-py==1.10.6
docker-pycreds==0.4.0
docutils==0.21.2
escapism==1.0.1
exce... | name: simphony-remote
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
- lib... | [
"tests/test_application.py::TestApplicationWithCSV::test_database_initialization"
] | [
"tests/test_application.py::TestApplication::test_initialization"
] | [
"tests/test_application.py::TestApplicationWithCSV::test_initialization"
] | [] | BSD 3-Clause "New" or "Revised" License | 624 | 1,276 | [
"remoteappmanager/application.py",
"remoteappmanager/db/csv_db.py",
"remoteappmanager/db/interfaces.py",
"remoteappmanager/handlers/home_handler.py",
"remoteappmanager/user.py"
] | |
googlemaps__google-maps-services-python-139 | 8013de5d7c1b4867dcafb4449b97c1cebab33127 | 2016-07-13 00:34:27 | 2ccf0b2912019341aa60aeb65fc36ca6d9d02a56 | diff --git a/googlemaps/convert.py b/googlemaps/convert.py
index 1c2264e..6206cfa 100644
--- a/googlemaps/convert.py
+++ b/googlemaps/convert.py
@@ -220,9 +220,17 @@ def components(arg):
:rtype: basestring
"""
+
+ # Components may have multiple values per type, here we
+ # expand them into individual ... | Allow user to append several values for same component filter type
It would be nice to allow several values for same component type.
Use case: You may want to filter sublocalities via locality component type ("locality matches against both locality and sublocality types") and in addition you may restrict result set b... | googlemaps/google-maps-services-python | diff --git a/test/test_convert.py b/test/test_convert.py
index 851eda1..090a95f 100644
--- a/test/test_convert.py
+++ b/test/test_convert.py
@@ -91,6 +91,9 @@ class ConvertTest(unittest.TestCase):
c = {"country": "US", "foo": 1}
self.assertEqual("country:US|foo:1", convert.components(c))
+ c ... | {
"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": 2,
"test_score": 0
},
"num_modified_files": 1
} | 2.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": [
"nose",
"responses==0.3",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
... | certifi==2025.1.31
charset-normalizer==3.4.1
exceptiongroup==1.2.2
-e git+https://github.com/googlemaps/google-maps-services-python.git@8013de5d7c1b4867dcafb4449b97c1cebab33127#egg=googlemaps
idna==3.10
iniconfig==2.1.0
mock==5.2.0
nose==1.3.7
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
requests==2.10.0
responses==0.3.... | name: google-maps-services-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
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678... | [
"test/test_convert.py::ConvertTest::test_components"
] | [] | [
"test/test_convert.py::ConvertTest::test_as_list",
"test/test_convert.py::ConvertTest::test_bounds",
"test/test_convert.py::ConvertTest::test_join_list",
"test/test_convert.py::ConvertTest::test_latlng",
"test/test_convert.py::ConvertTest::test_location_list",
"test/test_convert.py::ConvertTest::test_poly... | [] | Apache License 2.0 | 626 | 250 | [
"googlemaps/convert.py"
] | |
Azure__WALinuxAgent-321 | 9930df6600a061bcc5618b427ffa23cff5943f46 | 2016-07-13 19:17:07 | 9930df6600a061bcc5618b427ffa23cff5943f46 | msftclas: Hi __@brendandixon__, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
<span>You've already signed the contribution license agreement. Thanks!</span>
<p>The agreement was validated by Microsoft and real humans are currently evaluati... | diff --git a/azurelinuxagent/common/version.py b/azurelinuxagent/common/version.py
index 222a7208..357d30ff 100644
--- a/azurelinuxagent/common/version.py
+++ b/azurelinuxagent/common/version.py
@@ -50,7 +50,7 @@ def get_distro():
AGENT_NAME = "WALinuxAgent"
AGENT_LONG_NAME = "Azure Linux Agent"
-AGENT_VERSION = '2... | [2.1.5.rc6] recycles indefinitely when child process crashes
When I use 2.1.5rc6 code (9930df6600a061bcc5618b427ffa23cff5943f46) and pull in update for 2.1.5rc6 , it starts just fine and stops just fine. (so #297 is resolved)
However when I kill the child process with SIGSEGV signal (pid 9215 below)
```
# pstree... | Azure/WALinuxAgent | diff --git a/tests/ga/test_update.py b/tests/ga/test_update.py
index 49006606..74804fb9 100644
--- a/tests/ga/test_update.py
+++ b/tests/ga/test_update.py
@@ -627,7 +627,6 @@ class TestUpdate(UpdateTestCase):
if versions is None or len(versions) <= 0:
versions = [latest_version]
- self.up... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_hyperlinks",
"has_issue_reference",
"has_git_commit_hash",
"has_many_modified_files",
"has_many_hunks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"t... | 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",
"pyasn1",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.6",
... | 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
nose... | name: WALinuxAgent
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
- impo... | [
"tests/ga/test_update.py::TestUpdate::test_ensure_latest_agent_includes_old_agents",
"tests/ga/test_update.py::TestUpdate::test_run_latest_polling_stops_at_failure",
"tests/ga/test_update.py::TestUpdate::test_run_latest_polling_stops_at_success",
"tests/ga/test_update.py::TestUpdate::test_run_latest_polls_and... | [] | [
"tests/ga/test_update.py::TestGuestAgentError::test_clear",
"tests/ga/test_update.py::TestGuestAgentError::test_creation",
"tests/ga/test_update.py::TestGuestAgentError::test_load_preserves_error_state",
"tests/ga/test_update.py::TestGuestAgentError::test_mark_failure",
"tests/ga/test_update.py::TestGuestAg... | [] | Apache License 2.0 | 629 | 1,115 | [
"azurelinuxagent/common/version.py",
"azurelinuxagent/ga/update.py"
] |
ovh__python-ovh-33 | ae2981b26fce2641a9bae5af68a3d5043fdd8b46 | 2016-07-15 09:31:15 | 6d4e840baecd36a568a0bf7049f99fe9fee97db0 | ncrocfer: Yep, it's ok for me :
```python
In [1]: import ovh
In [2]: ovh.Client().get('/hosting/web/ncrocfer.ovh/ovhConfig', historical=False)
Out[2]: [1779827]
```
Thanks :+1:
| diff --git a/ovh/client.py b/ovh/client.py
index fe989cf..82db162 100644
--- a/ovh/client.py
+++ b/ovh/client.py
@@ -289,14 +289,24 @@ class Client(object):
can be prefixed with an underscore. For example, ``from`` argument of
``POST /email/domain/{domain}/redirection`` may be replaced by ``_from``
... | API raises BadParameterError for boolean arguments
Hello,
When an API call requires a boolean argument, we send it as `True` or `False` (valid Python booleans) but the API raises `BadParametersError` because it waits for a string (`'true'` or `'false'`) :
```python
In [1]: import ovh
In [2]: client = ovh.Clie... | ovh/python-ovh | diff --git a/tests/test_client.py b/tests/test_client.py
index ddea110..66b300a 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -185,6 +185,12 @@ class testClient(unittest.TestCase):
self.assertEqual(m_call.return_value, api.get(FAKE_URL+'?query=string', param="test"))
m_call.assert_ca... | {
"commit_name": "merge_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.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"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
"requirements-dev.txt"
],
"test_cmd": "pytes... | certifi==2025.1.31
charset-normalizer==3.4.1
coverage==3.7.1
coveralls==0.4.2
docopt==0.6.2
docutils==0.21.2
exceptiongroup==1.2.2
idna==3.10
iniconfig==2.1.0
Jinja2==3.1.6
MarkupSafe==3.0.2
mock==1.0.1
nose==1.3.3
ordereddict==1.0
-e git+https://github.com/ovh/python-ovh.git@ae2981b26fce2641a9bae5af68a3d5043fdd8b46#eg... | name: python-ovh
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_client.py::testClient::test_get"
] | [
"tests/test_client.py::testClient::test_endpoints",
"tests/test_client.py::testClient::test_init_from_custom_config"
] | [
"tests/test_client.py::testClient::test__canonicalize_kwargs",
"tests/test_client.py::testClient::test_call_no_sign",
"tests/test_client.py::testClient::test_call_signature",
"tests/test_client.py::testClient::test_delete",
"tests/test_client.py::testClient::test_init",
"tests/test_client.py::testClient::... | [] | BSD License | 633 | 251 | [
"ovh/client.py"
] |
cwacek__python-jsonschema-objects-47 | ad1ce37fe82cdfa75a8193566c7c7cdcae07b09c | 2016-07-16 18:15:46 | 03be1567ef25edc27fe36675444bd14da93b0f15 | diff --git a/python_jsonschema_objects/classbuilder.py b/python_jsonschema_objects/classbuilder.py
index c01fdcc..3a5ca41 100644
--- a/python_jsonschema_objects/classbuilder.py
+++ b/python_jsonschema_objects/classbuilder.py
@@ -145,7 +145,7 @@ class ProtocolBase(collections.MutableMapping):
else: # We got no... | Properties with multiple types are not parsed correctly
http://json-schema.org/latest/json-schema-validation.html#anchor79
Example property
"claimed_by": {
"id": "claimed",
"type": ["string", "null"],
"description": "Robots Only. The human agent that has claimed this... | cwacek/python-jsonschema-objects | diff --git a/test/test_regression_17.py b/test/test_regression_17.py
new file mode 100644
index 0000000..c13e942
--- /dev/null
+++ b/test/test_regression_17.py
@@ -0,0 +1,33 @@
+import pytest
+
+import python_jsonschema_objects as pjo
+
+
+@pytest.fixture
+def test_class():
+ schema = {
+ 'title': 'Example',... | {
"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": 1,
"test_score": 2
},
"num_modified_files": 1
} | 0.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 pytest-cov pytest-xdist pytest-mock pytest-asyncio"
],
"pre_install": null,
"python": "3.5",
"reqs_path"... | attrs==22.2.0
certifi==2021.5.30
coverage==6.2
execnet==1.9.0
importlib-metadata==4.8.3
inflection==0.2.0
iniconfig==1.1.1
jsonschema==2.3.0
Markdown==2.4
packaging==21.3
pandocfilters==1.2
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
pytest-asyncio==0.16.0
pytest-cov==4.0.0
pytest-mock==3.6.1
pytest-xdist==... | name: python-jsonschema-objects
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... | [
"test/test_regression_17.py::test_properties_can_have_multiple_types[Hi]",
"test/test_regression_17.py::test_properties_can_have_multiple_types[4]",
"test/test_regression_17.py::test_properties_can_have_multiple_types[None]",
"test/test_regression_17.py::test_multiply_typed_properties_still_validate[2.4]"
] | [] | [] | [] | MIT License | 638 | 549 | [
"python_jsonschema_objects/classbuilder.py"
] | |
dpkp__kafka-python-762 | 3666b66a21776d620f68d2f7ff2fed1bc18b94e5 | 2016-07-16 20:07:03 | 709ee3b59aff8ab205f0e09c33f4ec8391664228 | diff --git a/kafka/client.py b/kafka/client.py
index 891ae03..8a34cc4 100644
--- a/kafka/client.py
+++ b/kafka/client.py
@@ -137,7 +137,7 @@ class SimpleClient(object):
kafka.errors.check_error(resp)
# Otherwise return the BrokerMetadata
- return BrokerMetadata(resp.nodeId, resp.host, resp.po... | KAFKA-3306: MetadataRequest v1
Related to KIP-4 | dpkp/kafka-python | diff --git a/test/test_client.py b/test/test_client.py
index 660af61..79ac8be 100644
--- a/test/test_client.py
+++ b/test/test_client.py
@@ -1,6 +1,7 @@
import socket
from mock import ANY, MagicMock, patch
+from operator import itemgetter
import six
from . import unittest
@@ -117,9 +118,10 @@ class TestSimpleCl... | {
"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"... | 1.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": [
"pytest",
"pytest-cov",
"pytest-catchlog",
"pytest-sugar",
"pytest-mock",
"mock",
"python-snappy",
... | attrs==22.2.0
certifi==2021.5.30
coverage==6.2
cramjam==2.5.0
importlib-metadata==4.8.3
iniconfig==1.1.1
-e git+https://github.com/dpkp/kafka-python.git@3666b66a21776d620f68d2f7ff2fed1bc18b94e5#egg=kafka_python
lz4tools==1.3.1.2
mock==5.2.0
packaging==21.3
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
pytest-... | 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_client.py::TestSimpleClient::test_ensure_topic_exists",
"test/test_client.py::TestSimpleClient::test_get_leader_exceptions_when_noleader",
"test/test_client.py::TestSimpleClient::test_get_leader_for_partitions_reloads_metadata",
"test/test_client.py::TestSimpleClient::test_get_leader_for_unassigned... | [] | [
"test/test_client.py::TestSimpleClient::test_correlation_rollover",
"test/test_client.py::TestSimpleClient::test_init_with_csv",
"test/test_client.py::TestSimpleClient::test_init_with_list",
"test/test_client.py::TestSimpleClient::test_init_with_unicode_csv",
"test/test_client.py::TestSimpleClient::test_sen... | [] | Apache License 2.0 | 639 | 3,643 | [
"kafka/client.py",
"kafka/client_async.py",
"kafka/cluster.py",
"kafka/conn.py",
"kafka/protocol/metadata.py",
"kafka/protocol/types.py",
"kafka/structs.py"
] | |
dpkp__kafka-python-766 | 506d023978e7273bd323c0750e3f77af259d257b | 2016-07-17 06:19:25 | 709ee3b59aff8ab205f0e09c33f4ec8391664228 | diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py
index 9ebfe02..db0022d 100644
--- a/kafka/consumer/group.py
+++ b/kafka/consumer/group.py
@@ -176,6 +176,10 @@ class KafkaConsumer(six.Iterator):
selector (selectors.BaseSelector): Provide a specific selector
implementation to use for ... | KAFKA-3117: handle metadata updates during consumer rebalance | dpkp/kafka-python | diff --git a/test/test_coordinator.py b/test/test_coordinator.py
index 3435292..280fa70 100644
--- a/test/test_coordinator.py
+++ b/test/test_coordinator.py
@@ -85,7 +85,7 @@ def test_pattern_subscription(coordinator, api_version):
coordinator.config['api_version'] = api_version
coordinator._subscription.subs... | {
"commit_name": "merge_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": 2
},
"num_modified_files... | 1.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",
"pytest-cov",
"pytest-catchlog",
"pytest-sugar",
"pytest-mock",
"mock",
"python-snappy",
"lz... | attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
coverage==6.2
cramjam==2.5.0
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
-e git+https://github.com/dpkp/kafka-python.git@506d0... | 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
- attrs=21.4.0=pyhd3eb1b0_0
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- impo... | [
"test/test_coordinator.py::test_pattern_subscription[api_version0]",
"test/test_coordinator.py::test_pattern_subscription[api_version1]",
"test/test_coordinator.py::test_pattern_subscription[api_version2]",
"test/test_coordinator.py::test_pattern_subscription[api_version3]"
] | [] | [
"test/test_coordinator.py::test_init",
"test/test_coordinator.py::test_autocommit_enable_api_version[api_version0]",
"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_aut... | [] | Apache License 2.0 | 641 | 1,546 | [
"kafka/consumer/group.py",
"kafka/coordinator/consumer.py"
] | |
simphony__simphony-remote-117 | 61ec23ffe44463cbc41f6fa54b4247963093ed79 | 2016-07-18 09:48:08 | 61ec23ffe44463cbc41f6fa54b4247963093ed79 | diff --git a/remoteappmanager/restresources/container.py b/remoteappmanager/restresources/container.py
index 864e1fd..3191c6b 100644
--- a/remoteappmanager/restresources/container.py
+++ b/remoteappmanager/restresources/container.py
@@ -202,7 +202,7 @@ class Container(Resource):
server_url = "http://{}:{}{}/".... | remoteapprest app start error due to unfound `base_url`
```
(simremote)kit@kit-virtual-machine:jupyterhub$ remoteapprest app start 629b1d86d69bfb4b400dfee204f5e3a0
[W 160718 10:37:39 container:154] HOME (None) is not available for kit
[I 160718 10:37:39 container_manager:218] Got container image: simphonyproject/sim... | simphony/simphony-remote | diff --git a/tests/restmodel/test_container.py b/tests/restmodel/test_container.py
index f9862e9..ba87141 100644
--- a/tests/restmodel/test_container.py
+++ b/tests/restmodel/test_container.py
@@ -29,7 +29,7 @@ class TestContainer(AsyncHTTPTestCase):
app.file_config = Mock()
app.file_config.network_ti... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 2
},
"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": [
"pytest",
"flake8",
"sphinx",
"coverage"
],
"pre_install": [
"apt-get update",
"apt-get install ... | alabaster==0.7.16
alembic==1.15.2
annotated-types==0.7.0
arrow==1.3.0
async-generator==1.10
attrs==25.3.0
babel==2.17.0
certifi==2025.1.31
certipy==0.2.2
cffi==1.17.1
charset-normalizer==3.4.1
click==8.1.8
coverage==7.8.0
cryptography==44.0.2
docker-py==1.10.6
docker-pycreds==0.4.0
docutils==0.21.2
escapism==1.0.1
exce... | name: simphony-remote
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
- lib... | [
"tests/restmodel/test_container.py::TestContainer::test_create"
] | [] | [
"tests/restmodel/test_container.py::TestContainer::test_delete",
"tests/restmodel/test_container.py::TestContainer::test_items",
"tests/restmodel/test_container.py::TestContainer::test_retrieve"
] | [] | BSD 3-Clause "New" or "Revised" License | 645 | 152 | [
"remoteappmanager/restresources/container.py"
] | |
simphony__simphony-remote-123 | ae2c07cdf3906952600c57b4439d57d7ff4b2cc1 | 2016-07-18 14:47:10 | 34705b9892b4c781d27e0a30e7f29019450e6b1c | diff --git a/remoteappmanager/handlers/home_handler.py b/remoteappmanager/handlers/home_handler.py
index c21824b..7d5ce97 100644
--- a/remoteappmanager/handlers/home_handler.py
+++ b/remoteappmanager/handlers/home_handler.py
@@ -131,8 +131,10 @@ class HomeHandler(BaseHandler):
container_manager = self.applicat... | HomeHandler should not 'finish' in View and Stop but raise
Let view and stop raise and then the HomeHandler.post will handle the logging.
https://github.com/simphony/simphony-remote/blob/98ee374756694ef1855a9d38d78d3561ec6cc54e/remoteappmanager/handlers/home_handler.py#L155
https://github.com/simphony/simphony-re... | simphony/simphony-remote | diff --git a/tests/handlers/test_home_handler.py b/tests/handlers/test_home_handler.py
index 596b8db..7a49d7f 100644
--- a/tests/handlers/test_home_handler.py
+++ b/tests/handlers/test_home_handler.py
@@ -184,3 +184,34 @@ class TestHomeHandler(TempMixin, utils.AsyncHTTPTestCase):
self.assertTrue(self._ap... | {
"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": 2
},
"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",
"flake8",
"sphinx",
"coverage"
],
"pre_install": [
"apt-get update",
"apt-get install ... | alabaster==0.7.16
alembic==1.15.2
annotated-types==0.7.0
arrow==1.3.0
async-generator==1.10
attrs==25.3.0
babel==2.17.0
certifi==2025.1.31
certipy==0.2.2
cffi==1.17.1
charset-normalizer==3.4.1
click==8.1.8
coverage==7.8.0
cryptography==44.0.2
docker-py==1.10.6
docker-pycreds==0.4.0
docutils==0.21.2
escapism==1.0.1
exce... | name: simphony-remote
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
- lib... | [
"tests/handlers/test_home_handler.py::TestHomeHandler::test_container_manager_does_not_return_container"
] | [] | [
"tests/handlers/test_home_handler.py::TestHomeHandler::test_failed_auth",
"tests/handlers/test_home_handler.py::TestHomeHandler::test_home",
"tests/handlers/test_home_handler.py::TestHomeHandler::test_post_failed_auth",
"tests/handlers/test_home_handler.py::TestHomeHandler::test_post_start",
"tests/handlers... | [] | BSD 3-Clause "New" or "Revised" License | 649 | 311 | [
"remoteappmanager/handlers/home_handler.py"
] | |
simphony__simphony-remote-134 | af0203df6cb3232a28b50fa1023baf73e234aa6d | 2016-07-20 16:23:49 | 34705b9892b4c781d27e0a30e7f29019450e6b1c | diff --git a/remoteappmanager/file_config.py b/remoteappmanager/file_config.py
index 2f93478..8966ed8 100644
--- a/remoteappmanager/file_config.py
+++ b/remoteappmanager/file_config.py
@@ -3,7 +3,6 @@ import os
import tornado.options
from docker import tls
from traitlets import HasTraits, Int, Unicode, Bool, Dict
-f... | FileConfig with tls=True or tls_verify=False only, leads to docker TLSParameterError
On Linux, if my file config for the `remoteappmanager_config.py` ONLY contains the following:
```
$ cat remoteappmanager_config.py
tls = True
```
or
```
$ cat remoteappmanager_config.py
tls_verify = True
```
Then startin... | simphony/simphony-remote | diff --git a/tests/test_file_config.py b/tests/test_file_config.py
index 22ce879..484d1b9 100644
--- a/tests/test_file_config.py
+++ b/tests/test_file_config.py
@@ -151,3 +151,15 @@ class TestFileConfig(TempMixin, unittest.TestCase):
config = FileConfig(tls=True)
self.assertNotEqual(config.tls_key, ''... | {
"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": 1,
"test_score": 2
},
"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",
"flake8",
"sphinx",
"coverage"
],
"pre_install": [
"apt-get update",
"apt-get install ... | alabaster==0.7.16
alembic==1.15.2
annotated-types==0.7.0
arrow==1.3.0
async-generator==1.10
attrs==25.3.0
babel==2.17.0
certifi==2025.1.31
certipy==0.2.2
cffi==1.17.1
charset-normalizer==3.4.1
click==8.1.8
coverage==7.8.0
cryptography==44.0.2
docker-py==1.10.6
docker-pycreds==0.4.0
docutils==0.21.2
escapism==1.0.1
exce... | name: simphony-remote
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
- lib... | [
"tests/test_file_config.py::TestFileConfig::test_file_parsing_not_overriding_bug_131"
] | [] | [
"tests/test_file_config.py::TestFileConfig::test_initialization_on_local_docker_machine",
"tests/test_file_config.py::TestFileConfig::test_initialization_on_nonlocal_docker_machine",
"tests/test_file_config.py::TestFileConfig::test_initialization_with_default_accounting",
"tests/test_file_config.py::TestFileC... | [] | BSD 3-Clause "New" or "Revised" License | 653 | 288 | [
"remoteappmanager/file_config.py"
] | |
simphony__simphony-remote-141 | 3ceb572ce98207102f14d1b11491fc2edd85aaac | 2016-07-21 11:17:02 | 34705b9892b4c781d27e0a30e7f29019450e6b1c | diff --git a/remoteappmanager/db/orm.py b/remoteappmanager/db/orm.py
index 7111d0b..f877d5a 100644
--- a/remoteappmanager/db/orm.py
+++ b/remoteappmanager/db/orm.py
@@ -1,5 +1,6 @@
import contextlib
import hashlib
+import os
from sqlalchemy import (
Column, Integer, Boolean, Unicode, ForeignKey, create_engine... | Sqlite database file created if it does not exist
Similar to #113, when `remoteappmanager` is started with its default accounting setting and that the default sqlite database does not exist, an empty file `remoteappmanager.db` would be created.
| simphony/simphony-remote | diff --git a/tests/db/test_interfaces.py b/tests/db/test_interfaces.py
index 02ced52..4ed20d0 100644
--- a/tests/db/test_interfaces.py
+++ b/tests/db/test_interfaces.py
@@ -8,7 +8,7 @@ from collections import namedtuple
from remoteappmanager.db.interfaces import (
ABCApplication, ABCApplicationPolicy, ABCAccoun... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_issue_reference",
"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_file... | 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",
"numpy>=1.16.0",
"pandas>=1.0.0"
],
"pre_install": [
"apt-get update",
"apt-get install -y... | alembic==1.15.2
annotated-types==0.7.0
arrow==1.3.0
async-generator==1.10
attrs==25.3.0
certifi==2025.1.31
certipy==0.2.2
cffi==1.17.1
charset-normalizer==3.4.1
click==8.1.8
cryptography==44.0.2
docker-py==1.10.6
docker-pycreds==0.4.0
escapism==1.0.1
exceptiongroup==1.2.2
fqdn==1.5.1
greenlet==3.1.1
idna==3.10
importli... | name: simphony-remote
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
- lib... | [
"tests/db/test_orm.py::TestOrmAppAccounting::test_no_file_creation_if_sqlite_database_not_exist"
] | [
"tests/db/test_orm.py::TestOrm::test_apps_for_user",
"tests/db/test_orm.py::TestOrmAppAccounting::test_get_apps_for_user",
"tests/db/test_orm.py::TestOrmAppAccounting::test_get_apps_for_user_across_sessions",
"tests/db/test_orm.py::TestOrmAppAccounting::test_get_apps_for_user_mapping_id_rest_compliant"
] | [
"tests/db/test_interfaces.py::TestDatabaseInterface::test_get_apps_for_user",
"tests/db/test_interfaces.py::TestDatabaseInterface::test_get_apps_for_user_mapping_id_rest_compliant",
"tests/db/test_interfaces.py::TestDatabaseInterface::test_get_user_by_name",
"tests/db/test_orm.py::TestOrm::test_database_init_... | [] | BSD 3-Clause "New" or "Revised" License | 655 | 308 | [
"remoteappmanager/db/orm.py"
] | |
falconry__falcon-851 | a9f1813bbd85ae58dd3d81aaea53a6db58032c3b | 2016-07-23 20:26:05 | 67d61029847cbf59e4053c8a424df4f9f87ad36f | codecov-io: ## [Current coverage][cc-pull] is 100% (diff: 100%)
> Merging [#851][cc-pull] into [master][cc-base-branch] will not change coverage
```diff
@@ master #851 diff @@
====================================
Files 29 29
Lines 1848 1846 -2
Methods ... | diff --git a/falcon/http_error.py b/falcon/http_error.py
index 1e9143e..6b7cd1e 100644
--- a/falcon/http_error.py
+++ b/falcon/http_error.py
@@ -40,8 +40,7 @@ class HTTPError(Exception):
returns ``True``, but child classes may override it
in order to return ``False`` when an empty HTTP body is... | Error title should default to HTTP status
When the title is set to `None`, `HTTPError` should default to simply reusing the description passed in with the code in the `status` argument, i.e.:
```py
self.title = status_code[4:]
``` | falconry/falcon | diff --git a/tests/test_httperror.py b/tests/test_httperror.py
index 9cb39b4..14f0eef 100644
--- a/tests/test_httperror.py
+++ b/tests/test_httperror.py
@@ -259,15 +259,15 @@ class TestHTTPError(testing.TestBase):
def test_no_description_json(self):
body = self.simulate_request('/fail', method='PATCH')
... | {
"commit_name": "merge_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": 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": [
"nose",
"ddt",
"testtools",
"requests",
"pyyaml",
"pytest"
],
"pre_install": [
"apt-get update",
... | attrs==22.2.0
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
ddt==1.7.2
-e git+https://github.com/falconry/falcon.git@a9f1813bbd85ae58dd3d81aaea53a6db58032c3b#egg=falcon
fixtures==4.0.1
idna==3.10
importlib-metadata==4.8.3
iniconfig==1.1.1
nose==1.3.7
packaging==21.3
pbr==6.1.1
pluggy==1.0.0
py==1.11.0
pyp... | 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_httperror.py::TestHTTPError::test_404_with_body",
"tests/test_httperror.py::TestHTTPError::test_405_with_body",
"tests/test_httperror.py::TestHTTPError::test_no_description_json",
"tests/test_httperror.py::TestHTTPError::test_no_description_xml",
"tests/test_httperror.py::TestHTTPError::test_tit... | [
"tests/test_httperror.py::TestHTTPError::test_custom_new_error_serializer",
"tests/test_httperror.py::TestHTTPError::test_custom_old_error_serializer"
] | [
"tests/test_httperror.py::TestHTTPError::test_401",
"tests/test_httperror.py::TestHTTPError::test_404_without_body",
"tests/test_httperror.py::TestHTTPError::test_405_without_body",
"tests/test_httperror.py::TestHTTPError::test_405_without_body_with_extra_headers",
"tests/test_httperror.py::TestHTTPError::t... | [] | Apache License 2.0 | 659 | 667 | [
"falcon/http_error.py"
] |
zalando-stups__senza-278 | 5e02aa336c41af3199acab430a9cf97440d2aac3 | 2016-07-26 07:31:01 | 35b73f49b8cb58e7892908413bdf2a61cfe3058e | diff --git a/senza/components/elastic_load_balancer.py b/senza/components/elastic_load_balancer.py
index 6140440..347b515 100644
--- a/senza/components/elastic_load_balancer.py
+++ b/senza/components/elastic_load_balancer.py
@@ -23,34 +23,7 @@ def get_load_balancer_name(stack_name: str, stack_version: str):
return... | Can't Deploy ZMON appliance (without SSL Certificate)
Senza is returning an error, when I'm trying to deploy the ZMON appliance:
```
senza --region=eu-central-1 create zmon-appliance-planetexpress-qa.yaml cd14c1 cd14
Generating Cloud Formation template.. EXCEPTION OCCURRED: An error occurred (ValidationError) whe... | zalando-stups/senza | diff --git a/tests/test_components.py b/tests/test_components.py
index 7112492..4b3330f 100644
--- a/tests/test_components.py
+++ b/tests/test_components.py
@@ -136,6 +136,28 @@ def test_component_load_balancer_idletimeout(monkeypatch):
assert 'HTTPPort' not in result["Resources"]["test_lb"]["Properties"]
+def... | {
"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.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"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",... | boto3==1.37.23
botocore==1.37.23
certifi==2025.1.31
charset-normalizer==3.4.1
click==8.1.8
clickclick==20.10.2
coverage==7.8.0
dnspython==1.15.0
dnspython3==1.15.0
exceptiongroup==1.2.2
idna==3.10
importlib_metadata==8.6.1
iniconfig==2.1.0
jmespath==1.0.1
packaging==24.2
pluggy==1.5.0
pystache==0.6.8
pytest==8.3.5
pyte... | name: senza
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_components.py::test_component_load_balancer_http_only"
] | [
"tests/test_components.py::test_check_docker_image_exists"
] | [
"tests/test_components.py::test_invalid_component",
"tests/test_components.py::test_component_iam_role",
"tests/test_components.py::test_get_merged_policies",
"tests/test_components.py::test_component_load_balancer_healthcheck",
"tests/test_components.py::test_component_load_balancer_idletimeout",
"tests/... | [] | Apache License 2.0 | 661 | 1,048 | [
"senza/components/elastic_load_balancer.py"
] | |
docker__docker-py-1143 | 2d3bda84de39a75e560fc79512143d43e5d61226 | 2016-07-28 01:43:06 | a44d65be370c28abd666a299456b83659dd1a1df | diff --git a/docker/utils/utils.py b/docker/utils/utils.py
index 4d218692..1cfc8acc 100644
--- a/docker/utils/utils.py
+++ b/docker/utils/utils.py
@@ -22,8 +22,8 @@ import tarfile
import tempfile
import warnings
from distutils.version import StrictVersion
-from fnmatch import fnmatch
from datetime import datetime
+... | Support IPv6 addresses in DOCKER_HOST
Raised in https://github.com/docker/compose/issues/2879.
See https://github.com/docker/docker/pull/16950 for the Engine implementation. | docker/docker-py | diff --git a/tests/unit/utils_test.py b/tests/unit/utils_test.py
index 68484fe5..0f7a58c9 100644
--- a/tests/unit/utils_test.py
+++ b/tests/unit/utils_test.py
@@ -404,10 +404,18 @@ class ParseHostTest(base.BaseTestCase):
'https://kokia.jp:2375': 'https://kokia.jp:2375',
'unix:///var/run/docker... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_hyperlinks",
"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
} | 1.9 | {
"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",
"coverage",
"pytest-cov",
"flake8"
],
"pre_install": [],
"python": "3.5",
"reqs_pat... | attrs==22.2.0
certifi==2021.5.30
coverage==6.2
-e git+https://github.com/docker/docker-py.git@2d3bda84de39a75e560fc79512143d43e5d61226#egg=docker_py
flake8==5.0.4
importlib-metadata==4.2.0
iniconfig==1.1.1
mccabe==0.7.0
mock==5.2.0
packaging==21.3
pluggy==1.0.0
py==1.11.0
pycodestyle==2.9.1
pyflakes==2.5.0
pyparsing==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=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- ... | [
"tests/unit/utils_test.py::ParseHostTest::test_parse_host"
] | [] | [
"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 | 668 | 697 | [
"docker/utils/utils.py"
] | |
terryyin__lizard-144 | 1933addc0f0d4febb8b2273048f81556c0062d61 | 2016-08-03 13:54:59 | 1933addc0f0d4febb8b2273048f81556c0062d61 | rakhimov: @terryyin This PR is ready to go. | diff --git a/lizard_languages/clike.py b/lizard_languages/clike.py
index 1134e96..a17fb03 100644
--- a/lizard_languages/clike.py
+++ b/lizard_languages/clike.py
@@ -235,7 +235,7 @@ class CLikeStates(CodeStateMachine):
self.context.add_to_long_function_name(token)
def _state_dec_to_imp(self, token):
- ... | Bug: C++11 ref qualified functions
Lizard misses C++11 ref qualified member functions.
These functions don't appear in the report or the result database.
```cpp
struct A {
void foo() & {};
void foo() const & {};
void foo() && {};
void foo() const && {};
}; | terryyin/lizard | diff --git a/test/testCyclomaticComplexity.py b/test/testCyclomaticComplexity.py
index 346117e..d6efefa 100644
--- a/test/testCyclomaticComplexity.py
+++ b/test/testCyclomaticComplexity.py
@@ -79,3 +79,13 @@ class TestCppCyclomaticComplexity(unittest.TestCase):
""")
self.assertEqual(4, result[0].cyclo... | {
"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
} | 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@1933addc0f0d4febb8b2273048f81556c0062d61#egg=lizard
mccabe==0.7.0
mock==5.2.0
nose==1.3.7
packaging==24.2
platformdirs==4.3.7
pluggy==1.5.0
pycodestyle==2.13.0
pylint==3.3.6
pytest==8.3.5
tomli==... | 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/testCyclomaticComplexity.py::TestCppCyclomaticComplexity::test_ref_qualifiers",
"test/test_languages/testCAndCPP.py::Test_c_cpp_lizard::test_ref_qualifiers"
] | [] | [
"test/testCyclomaticComplexity.py::TestCppCyclomaticComplexity::test_one_function_with_and",
"test/testCyclomaticComplexity.py::TestCppCyclomaticComplexity::test_one_function_with_else_if",
"test/testCyclomaticComplexity.py::TestCppCyclomaticComplexity::test_one_function_with_forever_loop",
"test/testCyclomat... | [] | MIT License | 679 | 165 | [
"lizard_languages/clike.py"
] |
setokinto__slack-shogi-67 | 3f692f2862e7bc2fb9fbbe8d73310c2696653e4d | 2016-08-06 17:40:57 | f5175be50a09220713ceb5547cd04f80f43f84fb | diff --git a/app/kifu.py b/app/kifu.py
new file mode 100644
index 0000000..a0a0c5d
--- /dev/null
+++ b/app/kifu.py
@@ -0,0 +1,13 @@
+
+
+class Kifu:
+
+ def __init__(self):
+ self.kifu = []
+
+ def add(self, from_x, from_y, to_x, to_y, promote):
+ self.kifu.append((from_x, from_y, to_x, to_y... | 待った に対応する
あえて 待った をありにしたい。 | setokinto/slack-shogi | diff --git a/test/modules/shogi_input_test.py b/test/modules/shogi_input_test.py
index 58dca13..272b547 100644
--- a/test/modules/shogi_input_test.py
+++ b/test/modules/shogi_input_test.py
@@ -4,7 +4,6 @@ from app.modules.shogi_input import ShogiInput, UserDifferentException, KomaCann
from app.modules.shogi import Kom... | {
"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.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": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --color=no... | certifi==2025.1.31
charset-normalizer==3.4.1
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
idna==3.10
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
packaging @ file:///croot/packaging_1734472117206/work
pluggy @ file:///croot/pluggy_1733169602837/work
pytest @ file:///croot/... | name: slack-shogi
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
-... | [
"test/modules/shogi_input_test.py::ShogiTest::test_matta",
"test/modules/shogi_input_test.py::ShogiTest::test_matta_for_KomaCannotMoveException",
"test/modules/shogi_input_test.py::ShogiTest::test_matta_for_UserDifferentException"
] | [] | [
"test/modules/shogi_input_test.py::ShogiTest::test_clear_for_non_exists_channnel",
"test/modules/shogi_input_test.py::ShogiTest::test_move_method_should_raise_KomaCannotMoveException",
"test/modules/shogi_input_test.py::ShogiTest::test_move_method_should_raise_UserDifferentException",
"test/modules/shogi_inpu... | [] | MIT License | 685 | 906 | [
"app/modules/shogi_input.py",
"app/shogi.py"
] | |
zalando-stups__senza-301 | 6bd1f85283e4252aa58aa38fd74936dd978dcded | 2016-08-08 12:43:52 | a72ed3ba8f330170d7dc9e923bd18294a03186af | diff --git a/senza/components/auto_scaling_group.py b/senza/components/auto_scaling_group.py
index ebffa4b..17d8974 100644
--- a/senza/components/auto_scaling_group.py
+++ b/senza/components/auto_scaling_group.py
@@ -20,11 +20,9 @@ def component_auto_scaling_group(definition, configuration, args, info, force, a
... | Senza ignores "SpotPrice" property on auto scaling group
```
InstanceType: m4.xlarge
SpotPrice: 0.250
```
According to cloudformation specs this will create an ASG with spot instances. | zalando-stups/senza | diff --git a/tests/test_components.py b/tests/test_components.py
index 7989398..1191bae 100644
--- a/tests/test_components.py
+++ b/tests/test_components.py
@@ -504,6 +504,33 @@ def test_component_auto_scaling_group_configurable_properties():
assert result["Resources"]["FooCPUAlarmHigh"]["Properties"]["EvaluationP... | {
"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",
"pytest-cov"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
"requirements.txt"
],
... | boto3==1.37.23
botocore==1.37.23
certifi==2025.1.31
charset-normalizer==3.4.1
click==8.1.8
clickclick==20.10.2
coverage==7.8.0
dnspython==1.15.0
dnspython3==1.15.0
exceptiongroup==1.2.2
idna==3.10
importlib_metadata==8.6.1
iniconfig==2.1.0
jmespath==1.0.1
packaging==24.2
pluggy==1.5.0
pystache==0.6.8
pytest==8.3.5
pyte... | name: senza
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_components.py::test_component_auto_scaling_group_configurable_properties"
] | [
"tests/test_components.py::test_weighted_dns_load_balancer",
"tests/test_components.py::test_weighted_dns_load_balancer_with_different_domains",
"tests/test_components.py::test_check_docker_image_exists"
] | [
"tests/test_components.py::test_invalid_component",
"tests/test_components.py::test_component_iam_role",
"tests/test_components.py::test_get_merged_policies",
"tests/test_components.py::test_component_load_balancer_healthcheck",
"tests/test_components.py::test_component_load_balancer_idletimeout",
"tests/... | [] | Apache License 2.0 | 689 | 237 | [
"senza/components/auto_scaling_group.py"
] | |
scikit-build__scikit-build-118 | dd9814474b79009b7ac6523b4c14bbedd418f33f | 2016-08-08 21:40:24 | 3484eb1047c9883a33d26838dc207df5526d7e18 | codecov-io: ## [Current coverage](https://codecov.io/gh/scikit-build/scikit-build/pull/118?src=pr) is 64.22% (diff: 54.00%)
> Merging [#118](https://codecov.io/gh/scikit-build/scikit-build/pull/118?src=pr) into [master](https://codecov.io/gh/scikit-build/scikit-build/branch/master?src=pr) will decrease coverage by **2.... | diff --git a/skbuild/cmaker.py b/skbuild/cmaker.py
index cdefc46..02a8e10 100644
--- a/skbuild/cmaker.py
+++ b/skbuild/cmaker.py
@@ -27,7 +27,7 @@ def pop_arg(arg, a, default=None):
"""Pops an arg(ument) from an argument list a and returns the new list
and the value of the argument if present and a default ot... | Improve python setup.py build --help output
- [ ] Document the different build type option
- [ ] Document how to set CMake variables
- [ ] Document how to set the CMake build system generator | scikit-build/scikit-build | diff --git a/tests/test_command_line.py b/tests/test_command_line.py
new file mode 100644
index 0000000..f48b68b
--- /dev/null
+++ b/tests/test_command_line.py
@@ -0,0 +1,51 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+"""test_command_line
+----------------------------------
+
+Tests for various command line f... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_added_files",
"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
},... | 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": [
"pytest",
"pytest-cov",
"flake8",
"tox"
],
"pre_install": [
"apt-get update",
"apt-get install -y bui... | attrs==22.2.0
certifi==2021.5.30
coverage==6.2
distlib==0.3.9
filelock==3.4.1
flake8==5.0.4
importlib-metadata==4.2.0
importlib-resources==5.4.0
iniconfig==1.1.1
mccabe==0.7.0
packaging==21.3
platformdirs==2.4.0
pluggy==1.0.0
py==1.11.0
pycodestyle==2.9.1
pyflakes==2.5.0
pyparsing==3.1.4
pytest==7.0.1
pytest-cov==4.0.0... | name: scikit-build
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/test_command_line.py::test_help",
"tests/test_command_line.py::test_too_many_separators"
] | [
"tests/test_command_line.py::test_no_command"
] | [] | [] | MIT License | 690 | 1,881 | [
"skbuild/cmaker.py",
"skbuild/setuptools_wrap.py"
] |
zalando-stups__senza-304 | 87feda79265966aa5d6a67f3a652e2f0d7961e64 | 2016-08-09 13:36:53 | a72ed3ba8f330170d7dc9e923bd18294a03186af | diff --git a/senza/manaus/route53.py b/senza/manaus/route53.py
index 0075eb0..6aab215 100644
--- a/senza/manaus/route53.py
+++ b/senza/manaus/route53.py
@@ -112,8 +112,9 @@ class Route53HostedZone:
'ResourceRecordSet': record.boto_dict}
change_batch['Changes'].append(change)
- ... | Only call API for Route53 config if there is changes to be made
Only call AWS API when there is actual changes to be made.
Users reporting this exception:
```
raise ParamValidationError(report=report.generate_report())
botocore.exceptions.ParamValidationError: Parameter validation failed:
Invalid length f... | zalando-stups/senza | diff --git a/tests/test_manaus/test_route53.py b/tests/test_manaus/test_route53.py
index 2441ba1..24c5441 100644
--- a/tests/test_manaus/test_route53.py
+++ b/tests/test_manaus/test_route53.py
@@ -209,6 +209,12 @@ def test_hosted_zone_upsert(monkeypatch):
ChangeBatch={'Changes': expected_changes,
... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"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",
"pytest-cov"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
"requirements.txt"
],
... | boto3==1.37.23
botocore==1.37.23
certifi==2025.1.31
charset-normalizer==3.4.1
click==8.1.8
clickclick==20.10.2
coverage==7.8.0
dnspython==1.15.0
dnspython3==1.15.0
exceptiongroup==1.2.2
idna==3.10
importlib_metadata==8.6.1
iniconfig==2.1.0
jmespath==1.0.1
packaging==24.2
pluggy==1.5.0
pystache==0.6.8
pytest==8.3.5
pyte... | name: senza
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_manaus/test_route53.py::test_hosted_zone_upsert"
] | [] | [
"tests/test_manaus/test_route53.py::test_hosted_zone_from_boto_dict",
"tests/test_manaus/test_route53.py::test_record_from_boto_dict",
"tests/test_manaus/test_route53.py::test_route53_hosted_zones",
"tests/test_manaus/test_route53.py::test_route53_hosted_zones_paginated",
"tests/test_manaus/test_route53.py:... | [] | Apache License 2.0 | 692 | 173 | [
"senza/manaus/route53.py"
] | |
zalando-stups__senza-305 | cdd45d357b6767742393d4b2aa9af68715e6dd5e | 2016-08-09 14:56:30 | a72ed3ba8f330170d7dc9e923bd18294a03186af | diff --git a/senza/components/stups_auto_configuration.py b/senza/components/stups_auto_configuration.py
index 5969330..415e380 100644
--- a/senza/components/stups_auto_configuration.py
+++ b/senza/components/stups_auto_configuration.py
@@ -28,12 +28,13 @@ def find_taupage_image(region: str):
def component_stups_auto_... | Support multiple VPCs
Senza's STUPS components currently assume a single VPC per region (Seven Seconds only configures a single VPC). There might be valid reasons to have multiple VPCs (e.g. a special VPC with VPN tunnel to some 3rd party location), so Senza needs to support that, too. | zalando-stups/senza | diff --git a/tests/test_components.py b/tests/test_components.py
index 1191bae..eceb9da 100644
--- a/tests/test_components.py
+++ b/tests/test_components.py
@@ -220,6 +220,42 @@ def test_component_stups_auto_configuration(monkeypatch):
assert {'myregion': {'Subnets': ['sn-3']}} == result['Mappings']['ServerSubnets... | {
"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.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": null,
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path": [
"requ... | boto3==1.37.23
botocore==1.37.23
certifi==2025.1.31
charset-normalizer==3.4.1
click==8.1.8
clickclick==20.10.2
dnspython==1.15.0
dnspython3==1.15.0
exceptiongroup==1.2.2
idna==3.10
importlib_metadata==8.6.1
iniconfig==2.1.0
jmespath==1.0.1
packaging==24.2
pluggy==1.5.0
pystache==0.6.8
pytest==8.3.5
python-dateutil==2.9... | name: senza
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_components.py::test_component_stups_auto_configuration_vpc_id"
] | [
"tests/test_components.py::test_weighted_dns_load_balancer",
"tests/test_components.py::test_weighted_dns_load_balancer_with_different_domains",
"tests/test_components.py::test_check_docker_image_exists"
] | [
"tests/test_components.py::test_invalid_component",
"tests/test_components.py::test_component_iam_role",
"tests/test_components.py::test_get_merged_policies",
"tests/test_components.py::test_component_load_balancer_healthcheck",
"tests/test_components.py::test_component_load_balancer_idletimeout",
"tests/... | [] | Apache License 2.0 | 693 | 283 | [
"senza/components/stups_auto_configuration.py"
] | |
fabiobatalha__chess_master-2 | 041556a8017679512fb37b2fe73ccb226eadf125 | 2016-08-10 04:17:25 | 041556a8017679512fb37b2fe73ccb226eadf125 | diff --git a/chess.py b/chess.py
index 8c57bc4..c9d7287 100644
--- a/chess.py
+++ b/chess.py
@@ -101,6 +101,19 @@ class Bishop(Pieces):
def __str__(self):
return self.NAME
+
+ def threatening_zone(self, max_size):
+ """
+ Get the current position of the piece and produce a list of t... | Implement threatening zone for panws
Implement a method to delivery the threatening zone for panws | fabiobatalha/chess_master | diff --git a/tests/tests.py b/tests/tests.py
index 24ff9a6..acb7e6d 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -89,6 +89,84 @@ class TestsChessMasterPiece(unittest.TestCase):
with self.assertRaises(ValueError):
pawn.set_position((1, 2, 4,))
+
+ def test_pawn_threatening_zone(self):
+... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"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
},
"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": "pytest",
"pip_packages": [
"nose",
"coverage",
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --n... | -e git+https://github.com/fabiobatalha/chess_master.git@041556a8017679512fb37b2fe73ccb226eadf125#egg=chessmaster
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_173447... | name: chess_master
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
... | [
"tests/tests.py::TestsChessMasterPiece::test_pawn_threatening_x_boundary_left",
"tests/tests.py::TestsChessMasterPiece::test_pawn_threatening_x_boundary_right",
"tests/tests.py::TestsChessMasterPiece::test_pawn_threatening_zone",
"tests/tests.py::TestsChessMasterPiece::test_pawn_threatening_zone_y_boundary",
... | [] | [
"tests/tests.py::TestsChessMasterPiece::test_instanciation_piece",
"tests/tests.py::TestsChessMasterPiece::test_instanciation_preset_position",
"tests/tests.py::TestsChessMasterPiece::test_set_invalid_position_1",
"tests/tests.py::TestsChessMasterPiece::test_set_invalid_position_2",
"tests/tests.py::TestsCh... | [] | MIT License | 695 | 675 | [
"chess.py"
] | |
fabiobatalha__chess_master-4 | dabbee5c27437b805262f12e0181aceae7066bcb | 2016-08-10 21:26:01 | dabbee5c27437b805262f12e0181aceae7066bcb | diff --git a/masterchess/chess.py b/masterchess/chess.py
index 63f5aab..35ba524 100644
--- a/masterchess/chess.py
+++ b/masterchess/chess.py
@@ -79,6 +79,74 @@ class Pieces(object):
self.set_position(position or (0, 0))
+ def _se_positions(self, max_size):
+ """
+ Retrieve the south ea... | Implement threatening zone for bishops | fabiobatalha/chess_master | diff --git a/tests/tests.py b/tests/tests.py
index c70e5aa..a6db443 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -1,4 +1,3 @@
-# coding: utf-8
import unittest
from masterchess import chess
@@ -164,6 +163,92 @@ class TestsChessMasterPiece(unittest.TestCase):
sorted(pawn.threatening_zone(8)), sort... | {
"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": 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": "pytest",
"pip_packages": [
"pytest"
],
"pre_install": [],
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --color... | -e git+https://github.com/fabiobatalha/chess_master.git@dabbee5c27437b805262f12e0181aceae7066bcb#egg=chessmaster
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_173447... | name: chess_master
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
... | [
"tests/tests.py::TestsChessMasterPiece::test_bishop_threatening_zone",
"tests/tests.py::TestsChessMasterPiece::test_ne_positions",
"tests/tests.py::TestsChessMasterPiece::test_nw_positions",
"tests/tests.py::TestsChessMasterPiece::test_se_positions",
"tests/tests.py::TestsChessMasterPiece::test_sw_positions... | [] | [
"tests/tests.py::TestsChessMasterPiece::test_instanciation_piece",
"tests/tests.py::TestsChessMasterPiece::test_instanciation_preset_position",
"tests/tests.py::TestsChessMasterPiece::test_pawn_threatening_x_boundary_left",
"tests/tests.py::TestsChessMasterPiece::test_pawn_threatening_x_boundary_right",
"te... | [] | MIT License | 696 | 648 | [
"masterchess/chess.py"
] | |
fabiobatalha__chess_master-6 | 9fe35b2b4029e1eeedeb69b941eba6cb955182a3 | 2016-08-10 21:46:26 | 9fe35b2b4029e1eeedeb69b941eba6cb955182a3 | diff --git a/masterchess/chess.py b/masterchess/chess.py
index 35ba524..91432b1 100644
--- a/masterchess/chess.py
+++ b/masterchess/chess.py
@@ -79,9 +79,73 @@ class Pieces(object):
self.set_position(position or (0, 0))
+ def _w_positions(self, max_size):
+ """
+ Retrieve the west posi... | Implement threatening zone for rooks | fabiobatalha/chess_master | diff --git a/tests/tests.py b/tests/tests.py
index a6db443..e48b78b 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -163,6 +163,64 @@ class TestsChessMasterPiece(unittest.TestCase):
sorted(pawn.threatening_zone(8)), sorted(expected)
)
+ def test_w_positions(self):
+
+ piece = chess... | {
"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": 2
},
"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": "pytest",
"pip_packages": [
"pytest",
"pytest-cov"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header -... | -e git+https://github.com/fabiobatalha/chess_master.git@9fe35b2b4029e1eeedeb69b941eba6cb955182a3#egg=chessmaster
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_173447... | name: chess_master
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
... | [
"tests/tests.py::TestsChessMasterPiece::test_l_positions",
"tests/tests.py::TestsChessMasterPiece::test_n_positions",
"tests/tests.py::TestsChessMasterPiece::test_rook_threatening_zone",
"tests/tests.py::TestsChessMasterPiece::test_s_positions",
"tests/tests.py::TestsChessMasterPiece::test_w_positions"
] | [] | [
"tests/tests.py::TestsChessMasterPiece::test_bishop_threatening_zone",
"tests/tests.py::TestsChessMasterPiece::test_instanciation_piece",
"tests/tests.py::TestsChessMasterPiece::test_instanciation_preset_position",
"tests/tests.py::TestsChessMasterPiece::test_ne_positions",
"tests/tests.py::TestsChessMaster... | [] | MIT License | 697 | 857 | [
"masterchess/chess.py"
] | |
fabiobatalha__chess_master-12 | e1eefa4035d6d6963da2ea543fc4ecb6c919c2fb | 2016-08-11 00:33:22 | e1eefa4035d6d6963da2ea543fc4ecb6c919c2fb | diff --git a/masterchess/chess.py b/masterchess/chess.py
index f2bd2ad..146c8d9 100644
--- a/masterchess/chess.py
+++ b/masterchess/chess.py
@@ -263,13 +263,31 @@ class Kinight(Pieces):
return self.NAME
- def threatening_zone():
+ def threatening_zone(self, max_size):
"""
Get the cu... | Implement threatening zone for kinights | fabiobatalha/chess_master | diff --git a/tests/tests.py b/tests/tests.py
index 71bb655..2837ed0 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -375,6 +375,692 @@ class TestsChessMasterPiece(unittest.TestCase):
sorted(queen.threatening_zone(8)), sorted(expected)
)
+ def test_kinight_threatening_zone(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": 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": "pytest",
"pip_packages": [
"nose",
"coverage",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",... | -e git+https://github.com/fabiobatalha/chess_master.git@e1eefa4035d6d6963da2ea543fc4ecb6c919c2fb#egg=chessmaster
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_173447... | name: chess_master
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
... | [
"tests/tests.py::TestsChessMasterPiece::test_kinight_threatening_zone",
"tests/tests.py::TestsChessMasterPiece::test_kinight_threatening_zone_boundary_0_0",
"tests/tests.py::TestsChessMasterPiece::test_kinight_threatening_zone_boundary_0_1",
"tests/tests.py::TestsChessMasterPiece::test_kinight_threatening_zon... | [] | [
"tests/tests.py::TestsChessMasterPiece::test_bishop_threatening_zone",
"tests/tests.py::TestsChessMasterPiece::test_e_positions",
"tests/tests.py::TestsChessMasterPiece::test_instanciation_piece",
"tests/tests.py::TestsChessMasterPiece::test_instanciation_preset_position",
"tests/tests.py::TestsChessMasterP... | [] | MIT License | 699 | 382 | [
"masterchess/chess.py"
] | |
falconry__falcon-869 | e0f059378b113dcc40e7de7fb16b4f4a104a74f1 | 2016-08-16 01:20:09 | 67d61029847cbf59e4053c8a424df4f9f87ad36f | codecov-io: ## [Current coverage](https://codecov.io/gh/falconry/falcon/pull/869?src=pr) is 100% (diff: 100%)
> Merging [#869](https://codecov.io/gh/falconry/falcon/pull/869?src=pr) into [master](https://codecov.io/gh/falconry/falcon/branch/master?src=pr) will not change coverage
```diff
@@ master #869 d... | diff --git a/falcon/util/uri.py b/falcon/util/uri.py
index fc1acd9..47726da 100644
--- a/falcon/util/uri.py
+++ b/falcon/util/uri.py
@@ -60,6 +60,7 @@ def _create_char_encoder(allowed_chars):
def _create_str_encoder(is_value):
allowed_chars = _UNRESERVED if is_value else _ALL_ALLOWED
+ allowed_chars_plus_per... | resp.location double-encodes urlencoded strings
I've got a URL which contains a url-encoded URL as a parameter, and when setting resp.location, that results in it being double-encoded:
resp.location = "http://something?redirect_uri=http%3A%2F%2Fsite"
This should result in:
Location: http://something?redirect_uri... | falconry/falcon | diff --git a/tests/test_utils.py b/tests/test_utils.py
index 6b5f75d..de32f0a 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -177,6 +177,35 @@ class TestFalconUtils(testtools.TestCase):
'?limit=3&e%C3%A7ho=true')
self.assertEqual(uri.encode(url), expected)
+ def test_ur... | {
"commit_name": "merge_commit",
"failed_lite_validators": [
"has_hyperlinks"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 0,
"test_score": 3
},
"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": [
"nose",
"coverage",
"ddt",
"pyyaml",
"requests",
"testtools",
"pytest"
],
"pre_install": [
"a... | attrs==22.2.0
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
ddt==1.7.2
-e git+https://github.com/falconry/falcon.git@e0f059378b113dcc40e7de7fb16b4f4a104a74f1#egg=falcon
fixtures==4.0.1
idna==3.10
importlib-metadata==4.8.3
iniconfig==1.1.1
nose==1.3.7
packaging==21.3
pbr==6.1.1
pluggy==1.0.0
py==1.11.0
pyp... | 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_utils.py::TestFalconUtils::test_uri_encode_double"
] | [
"tests/test_utils.py::TestFalconUtils::test_deprecated_decorator"
] | [
"tests/test_utils.py::TestFalconUtils::test_dt_to_http",
"tests/test_utils.py::TestFalconUtils::test_get_http_status",
"tests/test_utils.py::TestFalconUtils::test_http_date_to_dt",
"tests/test_utils.py::TestFalconUtils::test_http_now",
"tests/test_utils.py::TestFalconUtils::test_pack_query_params_none",
"... | [] | Apache License 2.0 | 705 | 485 | [
"falcon/util/uri.py"
] |
andir__isc-dhcp-filter-2 | efc868102f47329f7280b87a21b5fd9e9defcd64 | 2016-08-16 14:13:07 | efc868102f47329f7280b87a21b5fd9e9defcd64 | diff --git a/isc_dhcp_filter/__init__.py b/isc_dhcp_filter/__init__.py
index d769b6d..70524c3 100644
--- a/isc_dhcp_filter/__init__.py
+++ b/isc_dhcp_filter/__init__.py
@@ -1,6 +1,6 @@
+from isc_dhcp_leases import IscDhcpLeases
from isc_dhcp_leases import Lease
from isc_dhcp_leases import Lease6
-from isc_dhcp_leases... | Add `.count()` method as shortcut for len(list(leases))
Sometime the only intresting part about the lease db is how many are actually in a given state. Currently you've to write `len(list(leases.active))` to get the count of active leases. `leases.active.count()` and also implementing `__len__` would probably be handy. | andir/isc-dhcp-filter | diff --git a/tests/__init__.py b/tests/__init__.py
index e924baf..426d90b 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -1,11 +1,11 @@
import os
from unittest import TestCase
+from freezegun import freeze_time
from isc_dhcp_leases import Lease
from isc_dhcp_leases.iscdhcpleases import BaseLease
fro... | {
"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.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",
"freezegun"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
... | exceptiongroup==1.2.2
freezegun==1.5.1
iniconfig==2.1.0
-e git+https://github.com/andir/isc-dhcp-filter.git@efc868102f47329f7280b87a21b5fd9e9defcd64#egg=isc_dhcp_filter
isc-dhcp-leases==0.10.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: isc-dhcp-filter
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
- lib... | [
"tests/__init__.py::TestDhcpd6::test_dhcpv6_active",
"tests/__init__.py::TestDhcpd6::test_dhcpv6_active_valid",
"tests/__init__.py::TestDhcpd6::test_filter_combine",
"tests/__init__.py::TestDhcpd6::test_len",
"tests/__init__.py::TestDebian7::test_filter_combine",
"tests/__init__.py::TestDebian7::test_len"... | [] | [
"tests/__init__.py::TestDhcpd6::test_active_filter",
"tests/__init__.py::TestDhcpd6::test_active_valid_current",
"tests/__init__.py::TestDhcpd6::test_current_filter",
"tests/__init__.py::TestDhcpd6::test_dhcpv6_invalid",
"tests/__init__.py::TestDhcpd6::test_filter_func",
"tests/__init__.py::TestDhcpd6::te... | [] | MIT License | 706 | 354 | [
"isc_dhcp_filter/__init__.py"
] | |
grabbles__grabbit-6 | afe361809ca5c040a46caa9f8a9bae017bcc706e | 2016-08-18 05:30:39 | afe361809ca5c040a46caa9f8a9bae017bcc706e | diff --git a/grabbit/core.py b/grabbit/core.py
index 84009db..a2a87be 100644
--- a/grabbit/core.py
+++ b/grabbit/core.py
@@ -197,7 +197,7 @@ class Layout(object):
return_type (str): Type of result to return. Valid values:
'tuple': returns a list of namedtuples containing file name as
... | Redefining File class is confusing
Returning File objects which are something different that python build in [file object](https://docs.python.org/3/glossary.html#term-file-object) | grabbles/grabbit | diff --git a/grabbit/tests/test_core.py b/grabbit/tests/test_core.py
index 0c92377..11da286 100644
--- a/grabbit/tests/test_core.py
+++ b/grabbit/tests/test_core.py
@@ -127,6 +127,8 @@ class TestLayout:
result = layout.get(target='subject', return_type='dir')
assert os.path.exists(result[0])
... | {
"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": 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.5",
"reqs_path": [
"requirements.txt"
],
"test_cmd": "pytest --... | attrs==22.2.0
certifi==2021.5.30
-e git+https://github.com/grabbles/grabbit.git@afe361809ca5c040a46caa9f8a9bae017bcc706e#egg=grabbit
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
six==1.17.0
tomli==1.2.3
typing_extensions==4.1.1
zipp==3.6.0
| name: grabbit
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... | [
"grabbit/tests/test_core.py::TestLayout::test_querying"
] | [] | [
"grabbit/tests/test_core.py::TestFile::test_init",
"grabbit/tests/test_core.py::TestFile::test_matches",
"grabbit/tests/test_core.py::TestFile::test_named_tuple",
"grabbit/tests/test_core.py::TestEntity::test_init",
"grabbit/tests/test_core.py::TestEntity::test_matches",
"grabbit/tests/test_core.py::TestE... | [] | MIT License | 707 | 240 | [
"grabbit/core.py"
] | |
XD-embedded__xd-docker-52 | 00db236f2385d476cd3f32e3fd4bf68fd1dd8a35 | 2016-08-27 14:53:21 | 03179f60c8e6d5fa7d2a2a20ec429da132ff7e8f | diff --git a/xd/docker/client.py b/xd/docker/client.py
index 3d2fe2e..ec42404 100644
--- a/xd/docker/client.py
+++ b/xd/docker/client.py
@@ -484,3 +484,27 @@ class DockerClient(object):
return False
raise e
return True
+
+ def container_wait(self,
+ contai... | client.container_wait()
Client API command to wait for a container to stop. | XD-embedded/xd-docker | diff --git a/tests/unit/client_test.py b/tests/unit/client_test.py
index 5b2eccd..0f1f130 100644
--- a/tests/unit/client_test.py
+++ b/tests/unit/client_test.py
@@ -1245,3 +1245,41 @@ class container_start_tests(ContextClientTestCase):
with pytest.raises(ClientError) as clienterror:
self.client.co... | {
"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
} | 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",
"mock",
"flake8"
],
"pre_install": [
"apt-get update",
"apt-get install -y gc... | attrs==22.2.0
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
flake8==5.0.4
idna==3.10
importlib-metadata==4.2.0
iniconfig==1.1.1
mccabe==0.7.0
mock==5.2.0
packaging==21.3
pluggy==1.0.0
py==1.11.0
pycodestyle==2.9.1
pyflakes==2.5.0
pyparsing==3.1.4
pytest==7.0.1
pytest-cov==4.0.0
requests==2.27.1
requests-u... | name: xd-docker
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/client_test.py::container_wait_tests::test_0",
"tests/unit/client_test.py::container_wait_tests::test_42",
"tests/unit/client_test.py::container_wait_tests::test_container",
"tests/unit/client_test.py::container_wait_tests::test_containername",
"tests/unit/client_test.py::container_wait_tests::t... | [] | [
"tests/unit/client_test.py::init_tests::test_init_foobar",
"tests/unit/client_test.py::init_tests::test_init_http",
"tests/unit/client_test.py::init_tests::test_init_http_unix",
"tests/unit/client_test.py::init_tests::test_init_noargs",
"tests/unit/client_test.py::init_tests::test_init_tcp",
"tests/unit/c... | [] | MIT License | 724 | 250 | [
"xd/docker/client.py"
] | |
enthought__okonomiyaki-229 | ecbef5d20e17783436532cce856d201df280eb09 | 2016-08-27 19:13:21 | ecbef5d20e17783436532cce856d201df280eb09 | diff --git a/okonomiyaki/platforms/abi.py b/okonomiyaki/platforms/abi.py
index a69af1f..a3947aa 100644
--- a/okonomiyaki/platforms/abi.py
+++ b/okonomiyaki/platforms/abi.py
@@ -44,7 +44,7 @@ def _default_cpython_abi(platform, implementation_version):
abi = u"msvc2008"
elif implementation_v... | Update _default_cpython_abi() to support Python 3.6
In okonomiyaki/platforms/abi.py#L47, we do not specify a default platform abi for the upcoming Python 3.6. This is needed to set the cp36 tag as indexable in https://github.com/enthought/brood/issues/1189. Otherwise, the following error is raised:
```
okonomiyaki.... | enthought/okonomiyaki | diff --git a/okonomiyaki/file_formats/tests/test__egg_info.py b/okonomiyaki/file_formats/tests/test__egg_info.py
index c7962dc..af539c9 100644
--- a/okonomiyaki/file_formats/tests/test__egg_info.py
+++ b/okonomiyaki/file_formats/tests/test__egg_info.py
@@ -708,6 +708,35 @@ class TestGuessPlatformAbi(unittest.TestCase):... | {
"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": 0
},
"num_modified_files": 2
} | 0.16 | {
"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": [
"coverage",
"flake8",
"mock",
"testfixtures",
"pytest"
],
"pre_install": [
"apt-get update",
... | attrs==25.3.0
coverage==7.8.0
exceptiongroup==1.2.2
flake8==7.2.0
iniconfig==2.1.0
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
mccabe==0.7.0
mock==5.2.0
-e git+https://github.com/enthought/okonomiyaki.git@ecbef5d20e17783436532cce856d201df280eb09#egg=okonomiyaki
packaging==24.2
pluggy==1.5.0
pycodestyle==2.1... | 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
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-... | [
"okonomiyaki/file_formats/tests/test__egg_info.py::TestGuessPlatformAbi::test_python_36",
"okonomiyaki/platforms/tests/test_abi.py::TestDefaultABI::test_basics"
] | [] | [
"okonomiyaki/file_formats/tests/test__egg_info.py::TestRequirement::test_from_spec_string",
"okonomiyaki/file_formats/tests/test__egg_info.py::TestRequirement::test_from_string",
"okonomiyaki/file_formats/tests/test__egg_info.py::TestRequirement::test_str",
"okonomiyaki/file_formats/tests/test__egg_info.py::T... | [] | BSD License | 726 | 333 | [
"okonomiyaki/platforms/abi.py",
"setup.py"
] | |
XD-embedded__xd-docker-57 | 03179f60c8e6d5fa7d2a2a20ec429da132ff7e8f | 2016-08-28 09:44:51 | 03179f60c8e6d5fa7d2a2a20ec429da132ff7e8f | diff --git a/xd/docker/client.py b/xd/docker/client.py
index a0c7398..fdff2db 100644
--- a/xd/docker/client.py
+++ b/xd/docker/client.py
@@ -17,7 +17,7 @@ from typing import Optional, Union, Sequence, Dict, Tuple, List
from xd.docker.container import Container
from xd.docker.image import Image
from xd.docker.paramet... | client.container_kill()
Client API command to kill a container. | XD-embedded/xd-docker | diff --git a/tests/integration/container_kill_test.py b/tests/integration/container_kill_test.py
new file mode 100644
index 0000000..bb9dfbc
--- /dev/null
+++ b/tests/integration/container_kill_test.py
@@ -0,0 +1,38 @@
+import pytest
+import os
+
+from xd.docker.client import *
+
+
+def test_kill(docker, stdout):
+ ... | {
"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": 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",
"pytest-cov",
"mock",
"flake8"
],
"pre_install": [
"apt-get update",
"apt-get install -y gc... | attrs==22.2.0
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
flake8==5.0.4
idna==3.10
importlib-metadata==4.2.0
iniconfig==1.1.1
mccabe==0.7.0
mock==5.2.0
packaging==21.3
pluggy==1.0.0
py==1.11.0
pycodestyle==2.9.1
pyflakes==2.5.0
pyparsing==3.1.4
pytest==7.0.1
pytest-cov==4.0.0
requests==2.27.1
requests-u... | name: xd-docker
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/client_test.py::container_kill_tests::test_container",
"tests/unit/client_test.py::container_kill_tests::test_containername",
"tests/unit/client_test.py::container_kill_tests::test_no_such_container",
"tests/unit/client_test.py::container_kill_tests::test_normal",
"tests/unit/client_test.py::con... | [
"tests/integration/container_kill_test.py::test_kill",
"tests/integration/container_kill_test.py::test_already_stopped",
"tests/integration/container_kill_test.py::test_not_started",
"tests/integration/container_kill_test.py::test_no_such_container"
] | [
"tests/unit/client_test.py::init_tests::test_init_foobar",
"tests/unit/client_test.py::init_tests::test_init_http",
"tests/unit/client_test.py::init_tests::test_init_http_unix",
"tests/unit/client_test.py::init_tests::test_init_noargs",
"tests/unit/client_test.py::init_tests::test_init_tcp",
"tests/unit/c... | [] | MIT License | 728 | 376 | [
"xd/docker/client.py"
] | |
zalando-stups__senza-332 | 4993fb81ebcc9c8a5c6773af14eaa3cb0e069010 | 2016-08-29 09:53:21 | a72ed3ba8f330170d7dc9e923bd18294a03186af | diff --git a/senza/components/configuration.py b/senza/components/configuration.py
index e83b419..6712f03 100644
--- a/senza/components/configuration.py
+++ b/senza/components/configuration.py
@@ -3,7 +3,7 @@ from senza.utils import ensure_keys, named_value
def format_params(args):
- items = [(key, val) for key... | Shrink "description" field to allowed 1024 chars
This seems to pop up more and more, I see no real reason why senza should not just do
description[:1024]
to fix this for everyone. | zalando-stups/senza | diff --git a/tests/test_components.py b/tests/test_components.py
index fdc377d..652ccfc 100644
--- a/tests/test_components.py
+++ b/tests/test_components.py
@@ -6,6 +6,7 @@ import pytest
import senza.traffic
from senza.cli import AccountArguments
from senza.components import get_component
+from senza.components.conf... | {
"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": 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 pytest-cov pytest-xdist pytest-mock pytest-asyncio"
],
"pre_install": null,
"python": "3.9",
"reqs_path"... | boto3==1.37.23
botocore==1.37.23
certifi==2025.1.31
charset-normalizer==3.4.1
click==8.1.8
clickclick==20.10.2
coverage==7.8.0
dnspython==1.15.0
dnspython3==1.15.0
exceptiongroup==1.2.2
execnet==2.1.1
idna==3.10
importlib_metadata==8.6.1
iniconfig==2.1.0
jmespath==1.0.1
packaging==24.2
pluggy==1.5.0
pystache==0.6.8
pyt... | name: senza
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_components.py::test_max_description_length"
] | [
"tests/test_components.py::test_weighted_dns_load_balancer",
"tests/test_components.py::test_weighted_dns_load_balancer_with_different_domains",
"tests/test_components.py::test_check_docker_image_exists"
] | [
"tests/test_components.py::test_invalid_component",
"tests/test_components.py::test_component_iam_role",
"tests/test_components.py::test_get_merged_policies",
"tests/test_components.py::test_component_load_balancer_healthcheck",
"tests/test_components.py::test_component_load_balancer_idletimeout",
"tests/... | [] | Apache License 2.0 | 729 | 312 | [
"senza/components/configuration.py"
] | |
napjon__krisk-39 | b7489f45df16b6805b2f576d696dabc1a3bc5235 | 2016-09-02 13:48:46 | 19fb69026ff1339649fac5ad82548ccbdc7b8d19 | codecov-io: ## [Current coverage](https://codecov.io/gh/napjon/krisk/pull/39?src=pr) is 91.69% (diff: 0.00%)
> Merging [#39](https://codecov.io/gh/napjon/krisk/pull/39?src=pr) into [0.2-develop](https://codecov.io/gh/napjon/krisk/branch/0.2-develop?src=pr) will decrease coverage by **1.95%**
```diff
@@ 0.2-d... | diff --git a/krisk/plot/__init__.py b/krisk/plot/__init__.py
index 14e24b8..e702c4a 100644
--- a/krisk/plot/__init__.py
+++ b/krisk/plot/__init__.py
@@ -8,7 +8,8 @@ def bar(df,
how='count',
stacked=False,
annotate=None,
- full=False):
+ full=False,
+ trendline=False):
... | Add trendline parameters for bar chart
Add trendline that shows changes for bar chart | napjon/krisk | diff --git a/krisk/tests/data/bar_year_pop_mean_continent_trendline.json b/krisk/tests/data/bar_year_pop_mean_continent_trendline.json
new file mode 100644
index 0000000..89aa040
--- /dev/null
+++ b/krisk/tests/data/bar_year_pop_mean_continent_trendline.json
@@ -0,0 +1,152 @@
+{
+ "legend": {
+ "data": [
+ ... | {
"commit_name": "merge_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": 2
},
"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",
"coverage"
],
"pre_install": null,
"python": "3.5",
"reqs_path": [
"requirements.txt"
],
"test_... | anyio==3.6.2
argon2-cffi==21.3.0
argon2-cffi-bindings==21.2.0
async-generator==1.10
attrs==22.2.0
Babel==2.11.0
backcall==0.2.0
bleach==4.1.0
certifi==2021.5.30
cffi==1.15.1
charset-normalizer==2.0.12
comm==0.1.4
contextvars==2.4
coverage==6.2
dataclasses==0.8
decorator==5.1.1
defusedxml==0.7.1
entrypoints==0.4
idna==3... | name: krisk
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... | [
"krisk/tests/test_plot.py::test_trendline"
] | [] | [
"krisk/tests/test_plot.py::test_bar",
"krisk/tests/test_plot.py::test_line",
"krisk/tests/test_plot.py::test_full_bar_line",
"krisk/tests/test_plot.py::test_hist",
"krisk/tests/test_plot.py::test_scatter"
] | [] | BSD 3-Clause "New" or "Revised" License | 742 | 670 | [
"krisk/plot/__init__.py",
"krisk/plot/bar_line.py"
] |
zhmcclient__python-zhmcclient-56 | 01674398fed64b49ebbf94ac49236cee4a02b3d3 | 2016-09-08 08:00:52 | 5b90883d9934257d21ead1cbc548423b5fb682f8 | coveralls:
[](https://coveralls.io/builds/7794079)
Coverage increased (+0.4%) to 88.352% when pulling **447c885d4954aacf55f533d18e209b331d2edee9 on andy/create-return-object** into **01674398fed64b49ebbf94ac49236cee4a02b3d3 on master**.
| diff --git a/zhmcclient/_adapter.py b/zhmcclient/_adapter.py
index cf76ac0..615ddc9 100644
--- a/zhmcclient/_adapter.py
+++ b/zhmcclient/_adapter.py
@@ -145,7 +145,9 @@ class AdapterManager(BaseManager):
Returns:
- string: The resource URI of the new adapter.
+ Adapter: The resource objec... | Return newly created resources as a resource object not as a URI
In the current design, any `create()` methods return the new resource with their URI string.
This is inconsistent with the strategy of the zhmcclient project to encapsulate resources as Python objects.
**Proposal:**
Return a new Python object for... | zhmcclient/python-zhmcclient | diff --git a/tests/test_adapter.py b/tests/test_adapter.py
index 7a1a4a3..9cfb62b 100644
--- a/tests/test_adapter.py
+++ b/tests/test_adapter.py
@@ -22,7 +22,7 @@ from __future__ import absolute_import
import unittest
import requests_mock
-from zhmcclient import Session, Client
+from zhmcclient import Session, Clie... | {
"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": 6
} | 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": [
"pytest",
"pytest-cov",
"mock",
"requests-mock",
"testfixtures"
],
"pre_install": [
"apt-get upd... | certifi==2025.1.31
charset-normalizer==3.4.1
coverage==7.8.0
decorator==5.2.1
exceptiongroup==1.2.2
idna==3.10
iniconfig==2.1.0
mock==5.2.0
packaging==24.2
pbr==6.1.1
pluggy==1.5.0
pytest==8.3.5
pytest-cov==6.0.0
requests==2.32.3
requests-mock==1.12.1
six==1.17.0
testfixtures==8.3.0
tomli==2.2.1
urllib3==2.3.0
-e git+h... | name: python-zhmcclient
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
- l... | [
"tests/test_adapter.py::AdapterTests::test_create_hipersocket",
"tests/test_hba.py::HbaTests::test_create",
"tests/test_nic.py::NicTests::test_create",
"tests/test_partition.py::PartitionTests::test_create",
"tests/test_virtual_function.py::VirtualFunctionTests::test_create"
] | [] | [
"tests/test_adapter.py::AdapterTests::test_delete",
"tests/test_adapter.py::AdapterTests::test_init",
"tests/test_adapter.py::AdapterTests::test_list_full_ok",
"tests/test_adapter.py::AdapterTests::test_list_short_ok",
"tests/test_adapter.py::AdapterTests::test_update_properties",
"tests/test_hba.py::HbaT... | [] | Apache License 2.0 | 748 | 1,903 | [
"zhmcclient/_adapter.py",
"zhmcclient/_hba.py",
"zhmcclient/_nic.py",
"zhmcclient/_partition.py",
"zhmcclient/_resource.py",
"zhmcclient/_virtual_function.py"
] |
zalando-stups__senza-349 | e0331771ea0cc64d3ba5896f31d954f832a82ba9 | 2016-09-12 07:22:12 | a72ed3ba8f330170d7dc9e923bd18294a03186af | diff --git a/senza/manaus/ec2.py b/senza/manaus/ec2.py
index 9ea2600..6dee960 100644
--- a/senza/manaus/ec2.py
+++ b/senza/manaus/ec2.py
@@ -1,5 +1,5 @@
from collections import OrderedDict
-from typing import Dict, List, Iterator
+from typing import Dict, List, Iterator, Optional
import boto3
@@ -16,9 +16,10 @@ c... | Better error message for "create" and VPC tags
When trying to create a stack with a VPC that has no tags the user gets the following message:
```
senza create deploy-definition.yaml 1 0.1
Generating Cloud Formation template.. EXCEPTION OCCURRED: 'NoneType' object is not iterable
Unknown Error: 'NoneType' object i... | zalando-stups/senza | diff --git a/tests/test_manaus/test_ec2.py b/tests/test_manaus/test_ec2.py
index 36f1588..4dd7ae6 100644
--- a/tests/test_manaus/test_ec2.py
+++ b/tests/test_manaus/test_ec2.py
@@ -37,6 +37,11 @@ def test_get_default_vpc(monkeypatch):
mock_vpc3.is_default = False
mock_vpc3.tags = []
+ mock_vpc4 = MagicMo... | {
"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.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"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path": [
... | boto3==1.37.23
botocore==1.37.23
certifi==2025.1.31
charset-normalizer==3.4.1
click==8.1.8
clickclick==20.10.2
dnspython==1.15.0
dnspython3==1.15.0
exceptiongroup==1.2.2
idna==3.10
importlib_metadata==8.6.1
iniconfig==2.1.0
jmespath==1.0.1
packaging==24.2
pluggy==1.5.0
pystache==0.6.8
pytest==8.3.5
python-dateutil==2.9... | name: senza
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_manaus/test_ec2.py::test_get_default_vpc"
] | [] | [
"tests/test_manaus/test_ec2.py::test_from_boto_vpc",
"tests/test_manaus/test_ec2.py::test_get_all_vpc"
] | [] | Apache License 2.0 | 752 | 246 | [
"senza/manaus/ec2.py"
] | |
zalando-stups__senza-353 | 936b62cd98ad20892c30b8771b5db80a14c19aae | 2016-09-15 08:32:40 | a72ed3ba8f330170d7dc9e923bd18294a03186af | diff --git a/senza/manaus/route53.py b/senza/manaus/route53.py
index 6aab215..38c177e 100644
--- a/senza/manaus/route53.py
+++ b/senza/manaus/route53.py
@@ -349,9 +349,22 @@ class Route53:
if name is not None and not name.endswith('.'):
name += '.'
for zone in cls.get_hosted_zones():
- ... | senza traffic displays 0.0% weight for all stacks
When executing `senza traffic [name]` the results displays a weight of 0.0% for all stacks.
`senza domains` shows the weight correctly. | zalando-stups/senza | diff --git a/tests/test_components.py b/tests/test_components.py
index 651b318..e7207a3 100644
--- a/tests/test_components.py
+++ b/tests/test_components.py
@@ -28,7 +28,8 @@ from senza.components.weighted_dns_elastic_load_balancer import \
from senza.components.weighted_dns_elastic_load_balancer_v2 import \
comp... | {
"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 .",
"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",... | boto3==1.37.23
botocore==1.37.23
certifi==2025.1.31
charset-normalizer==3.4.1
click==8.1.8
clickclick==20.10.2
coverage==7.8.0
dnspython==1.15.0
dnspython3==1.15.0
exceptiongroup==1.2.2
idna==3.10
importlib_metadata==8.6.1
iniconfig==2.1.0
jmespath==1.0.1
packaging==24.2
pluggy==1.5.0
pystache==0.6.8
pytest==8.3.5
pyte... | name: senza
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_manaus/test_route53.py::test_get_records_paginated"
] | [
"tests/test_components.py::test_weighted_dns_load_balancer",
"tests/test_components.py::test_weighted_dns_load_balancer_with_different_domains",
"tests/test_components.py::test_check_docker_image_exists"
] | [
"tests/test_components.py::test_invalid_component",
"tests/test_components.py::test_component_iam_role",
"tests/test_components.py::test_get_merged_policies",
"tests/test_components.py::test_component_load_balancer_healthcheck",
"tests/test_components.py::test_component_load_balancer_idletimeout",
"tests/... | [] | Apache License 2.0 | 755 | 345 | [
"senza/manaus/route53.py"
] | |
DataKind-SG__test-driven-data-cleaning-34 | f21e7b563c1e49803a098586930f2e4682eeb06f | 2016-09-17 10:17:14 | d1e67b345b5982b41560817ef859bd0157852913 | diff --git a/tddc/__main__.py b/tddc/__main__.py
index 0749707..208b1c5 100644
--- a/tddc/__main__.py
+++ b/tddc/__main__.py
@@ -1,6 +1,58 @@
+"""Test driven data cleaning
+Usage:
+ tddc summarize <input_file> [--output=<dir>] [--null=<NA>]
+ tddc build_trello <input_file> [--output=<dir>]
+ tddc build <input_file> ... | run_tddc and __main__ are not both needed
move everything in run_tddc to \_\_main\_\_ | DataKind-SG/test-driven-data-cleaning | diff --git a/tddc/tests/test_run_tddc.py b/tddc/tests/test_main.py
similarity index 83%
rename from tddc/tests/test_run_tddc.py
rename to tddc/tests/test_main.py
index 68ba0d2..a575056 100644
--- a/tddc/tests/test_run_tddc.py
+++ b/tddc/tests/test_main.py
@@ -2,7 +2,7 @@ import pytest
import os
from mock import patch... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_removed_files"
],
"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",
"pytest-cov",
"mock"
],
"pre_install": [],
"python": "3.5",
"reqs_path": [
"requirements.txt"
... | attrs==22.2.0
backports.functools-lru-cache==1.2.1
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
docopt==0.6.2
idna==3.10
importlib-metadata==4.8.3
iniconfig==1.1.1
mock==5.2.0
oauthlib==3.2.2
packaging==21.3
pluggy==1.0.0
py==1.11.0
py-trello==0.6.1
pyparsing==3.1.4
pytest==7.0.1
pytest-cov==4.0.0
python... | name: test-driven-data-cleaning
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... | [
"tddc/tests/test_main.py::test_get_input_root_dir",
"tddc/tests/test_main.py::test_get_output_root_dir",
"tddc/tests/test_main.py::test_cli_summarize",
"tddc/tests/test_main.py::test_cli_build_trello"
] | [] | [] | [] | MIT License | 758 | 1,049 | [
"tddc/__main__.py",
"tddc/run_tddc.py"
] | |
drdoctr__doctr-123 | 45305afb454eb5dda06fd0deafce6ce70a0e5cee | 2016-09-20 19:35:45 | 45305afb454eb5dda06fd0deafce6ce70a0e5cee | diff --git a/doctr/__main__.py b/doctr/__main__.py
index 25889d4c..a50c3236 100644
--- a/doctr/__main__.py
+++ b/doctr/__main__.py
@@ -182,14 +182,15 @@ def configure(args, parser):
login_kwargs = {'auth': None, 'headers': None}
build_repo = input("What repo do you want to build the docs for (org/repona... | Check for travis repo before generating keys.
Otherwise it will just fail and you'll have to regenerate.
It's a small optimisation though, that will mostly affect users that make typos.
Note that github is not case sensitive for usernames, travis is so for example, I regularly get into trouble when I write my userna... | drdoctr/doctr | diff --git a/doctr/tests/test_local.py b/doctr/tests/test_local.py
index ba07bb4b..897cfa27 100644
--- a/doctr/tests/test_local.py
+++ b/doctr/tests/test_local.py
@@ -11,20 +11,33 @@ else:
HEADERS = None
-def test_bad_user():
+def test_github_bad_user():
with raises(RuntimeError):
check_repo_exis... | {
"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": 3,
"test_score": 0
},
"num_modified_files": 2
} | 1.3 | {
"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",
"pyflakes"
],
"pre_install": [],
"python": "3.9",
"reqs_path": [
"requirements/base.txt"
],
... | certifi==2025.1.31
cffi==1.17.1
charset-normalizer==3.4.1
cryptography==44.0.2
-e git+https://github.com/drdoctr/doctr.git@45305afb454eb5dda06fd0deafce6ce70a0e5cee#egg=doctr
exceptiongroup==1.2.2
idna==3.10
iniconfig==2.1.0
packaging==24.2
pluggy==1.5.0
pycparser==2.22
pyflakes==3.3.2
pytest==8.3.5
requests==2.32.3
tom... | name: doctr
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.... | [
"doctr/tests/test_local.py::test_travis_bad_user",
"doctr/tests/test_local.py::test_travis_bad_repo"
] | [
"doctr/tests/test_local.py::test_travis_repo_exists"
] | [
"doctr/tests/test_local.py::test_github_bad_user",
"doctr/tests/test_local.py::test_github_bad_repo",
"doctr/tests/test_local.py::test_github_repo_exists",
"doctr/tests/test_local.py::test_github_invalid_repo"
] | [] | MIT License | 763 | 684 | [
"doctr/__main__.py",
"doctr/local.py"
] | |
scrapy__scrapy-2275 | a19af5b164a23547f0327e1392526c7af67876a5 | 2016-09-21 13:32:49 | a975a50558cd78a1573bee2e957afcb419fd1bd6 | diff --git a/scrapy/http/response/__init__.py b/scrapy/http/response/__init__.py
index 983154001..58ad414f1 100644
--- a/scrapy/http/response/__init__.py
+++ b/scrapy/http/response/__init__.py
@@ -9,6 +9,8 @@ from six.moves.urllib.parse import urljoin
from scrapy.http.headers import Headers
from scrapy.utils.trackref... | Idea: warn users when trying to use TextResponse functionality with plain Response
Currently, if we try to use TextResponse functionality like response.text or css()/xpath() methods with a plain Response (e.g. in case of binary content), we get an AttributeError:
```
>>> response.css
----------------------------------... | scrapy/scrapy | diff --git a/tests/test_http_response.py b/tests/test_http_response.py
index c7f36687a..7624aa4c4 100644
--- a/tests/test_http_response.py
+++ b/tests/test_http_response.py
@@ -7,6 +7,7 @@ from scrapy.http import (Request, Response, TextResponse, HtmlResponse,
XmlResponse, Headers)
from scrap... | {
"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": 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": [
"pytest",
"pytest-cov",
"pytest-xdist",
"pytest-mock",
"pytest-asyncio"
],
"pre_install": [
"apt-get ... | 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_response.py::BaseResponseTest::test_shortcut_attributes"
] | [
"tests/test_http_response.py::TextResponseTest::test_invalid_utf8_encoded_body_with_valid_utf8_BOM",
"tests/test_http_response.py::TextResponseTest::test_selector",
"tests/test_http_response.py::TextResponseTest::test_selector_shortcuts",
"tests/test_http_response.py::TextResponseTest::test_shortcut_attribute... | [
"tests/test_http_response.py::BaseResponseTest::test_copy",
"tests/test_http_response.py::BaseResponseTest::test_copy_inherited_classes",
"tests/test_http_response.py::BaseResponseTest::test_copy_meta",
"tests/test_http_response.py::BaseResponseTest::test_immutable_attributes",
"tests/test_http_response.py:... | [] | BSD 3-Clause "New" or "Revised" License | 764 | 344 | [
"scrapy/http/response/__init__.py"
] | |
simphony__tornado-webapi-17 | 5dd0c146089cc0a348a9798e2021447aa4ee311e | 2016-09-21 13:35:16 | 95ad403cd70109fb94727a119545567593d8203d | diff --git a/tornadowebapi/__init__.py b/tornadowebapi/__init__.py
index 12f7bda..9cf510d 100644
--- a/tornadowebapi/__init__.py
+++ b/tornadowebapi/__init__.py
@@ -1,5 +1,4 @@
-from .handler import ResourceHandler, CollectionHandler
-from .utils import url_path_join, with_end_slash
+from . import registry
MAJOR = 0... | Support multiple registries
The current global registry is convenient for a single application, but it's a global object. This introduces major problems when testing. We need to be able to handle multiple registers, each one providing its own api.
| simphony/tornado-webapi | diff --git a/tornadowebapi/tests/test_registry.py b/tornadowebapi/tests/test_registry.py
index 1dc5433..0b793df 100644
--- a/tornadowebapi/tests/test_registry.py
+++ b/tornadowebapi/tests/test_registry.py
@@ -42,3 +42,11 @@ class TestRegistry(unittest.TestCase):
reg = Registry()
self.assertIsNotNone... | {
"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": 3
},
"num_modified_files"... | 0.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",
"flake8",
"tornado"
],
"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
packaging==24.2
pluggy==1.5.0
pycodestyle==2.13.0
pyflakes==3.3.1
pytest==8.3.5
tomli==2.2.1
tornado==6.4.2
-e git+https://github.com/simphony/tornado-webapi.git@5dd0c146089cc0a348a9798e2021447aa4ee311e#egg=tornadowebapi
| name: tornado-webapi
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
- libg... | [
"tornadowebapi/tests/test_registry.py::TestRegistry::test_api_handlers",
"tornadowebapi/tests/test_webapi.py::TestNonGlobalRegistry::test_non_global_registry"
] | [] | [
"tornadowebapi/tests/test_registry.py::TestRegistry::test_authenticator",
"tornadowebapi/tests/test_registry.py::TestRegistry::test_instantiation",
"tornadowebapi/tests/test_webapi.py::TestREST::test_broken",
"tornadowebapi/tests/test_webapi.py::TestREST::test_create",
"tornadowebapi/tests/test_webapi.py::T... | [] | BSD 3-Clause "New" or "Revised" License | 765 | 900 | [
"tornadowebapi/__init__.py",
"tornadowebapi/handler.py",
"tornadowebapi/registry.py"
] | |
tornadoweb__tornado-1838 | bec14a9152438fbf1b9584dc3da4500137577308 | 2016-09-21 19:50:00 | ecd8968c5135b810cd607b5902dda2cd32122b39 | diff --git a/tornado/ioloop.py b/tornado/ioloop.py
index cadb4116..d6183176 100644
--- a/tornado/ioloop.py
+++ b/tornado/ioloop.py
@@ -616,10 +616,14 @@ class IOLoop(Configurable):
# result, which should just be ignored.
pass
else:
- self.add... | Excessive CPU load when returning empty collection
The following causes my CPU to stay pinned at 100% usage
```python
from tornado.ioloop import IOLoop
from tornado import gen
from threading import Thread
loop = IOLoop.current()
t = Thread(target=loop.start, daemon=True)
t.start()
@gen.coroutine
def f():... | tornadoweb/tornado | diff --git a/tornado/test/ioloop_test.py b/tornado/test/ioloop_test.py
index 8570e73f..1bb8ce08 100644
--- a/tornado/test/ioloop_test.py
+++ b/tornado/test/ioloop_test.py
@@ -9,6 +9,7 @@ import socket
import sys
import threading
import time
+import types
from tornado import gen
from tornado.ioloop import IOLoop,... | {
"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
} | 4.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": [
"sphinx",
"sphinx_rtd_theme",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"... | alabaster==0.7.13
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
Babel==2.11.0
certifi==2021.5.30
charset-normalizer==2.0.12
docutils==0.18.1
idna==3.10
imagesize==1.4.1
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconf... | 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
- attrs=21.4.0=pyhd3eb1b0_0
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- importlib... | [
"tornado/test/ioloop_test.py::TestIOLoop::test_add_callback_return_sequence"
] | [] | [
"tornado/test/ioloop_test.py::TestIOLoop::test_add_callback_from_signal",
"tornado/test/ioloop_test.py::TestIOLoop::test_add_callback_from_signal_other_thread",
"tornado/test/ioloop_test.py::TestIOLoop::test_add_callback_wakeup",
"tornado/test/ioloop_test.py::TestIOLoop::test_add_callback_wakeup_other_thread"... | [] | Apache License 2.0 | 767 | 199 | [
"tornado/ioloop.py"
] | |
treasure-data__td-client-python-21 | 59f47438514f128cadf945f54cf56d5f311c5338 | 2016-09-23 08:10:45 | 59f47438514f128cadf945f54cf56d5f311c5338 | diff --git a/tdclient/client.py b/tdclient/client.py
index 691b225..85c2258 100644
--- a/tdclient/client.py
+++ b/tdclient/client.py
@@ -527,10 +527,7 @@ class Client(object):
[:class:`tdclient.models.Schedule`]
"""
result = self.api.list_schedules()
- def schedule(m):
- nam... | Missing created_time and user_name in list_schedules api
Schedule API returns the following for each scheduled.
But, created_time and user_name are missing
```
$ curl -H "AUTHORIZATION: TD1 XXXXX" "http://api.treasuredata.com/v3/schedule/list"
...
{
"name":"xxx",
"cron":null,
"timezone":"UTC",
"delay":0,
"... | treasure-data/td-client-python | diff --git a/tdclient/test/schedule_api_test.py b/tdclient/test/schedule_api_test.py
index b7f18bb..faca3d1 100644
--- a/tdclient/test/schedule_api_test.py
+++ b/tdclient/test/schedule_api_test.py
@@ -70,13 +70,54 @@ def test_delete_schedule_success():
def test_list_schedules_success():
td = api.API("APIKEY")
-... | {
"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": 2,
"test_score": 3
},
"num_modified_files": 3
} | 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.2",
"reqs_pa... | attrs==22.2.0
certifi==2021.5.30
importlib-metadata==4.8.3
iniconfig==1.1.1
msgpack-python==0.4.8
packaging==21.3
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
python-dateutil==2.4.2
six==1.17.0
-e git+https://github.com/treasure-data/td-client-python.git@59f47438514f128cadf945f54cf56d5f311c5338#egg=td_client... | name: td-client-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... | [
"tdclient/test/schedule_api_test.py::test_list_schedules_success"
] | [] | [
"tdclient/test/schedule_api_test.py::test_create_schedule_success",
"tdclient/test/schedule_api_test.py::test_create_schedule_without_cron_success",
"tdclient/test/schedule_api_test.py::test_delete_schedule_success",
"tdclient/test/schedule_api_test.py::test_list_schedules_failure",
"tdclient/test/schedule_... | [] | Apache License 2.0 | 774 | 1,436 | [
"tdclient/client.py",
"tdclient/schedule_api.py",
"tdclient/schedule_model.py"
] | |
conan-io__conan-508 | 2167f1f59f670b87acb69efd117f79ff506ed99f | 2016-09-27 16:24:01 | 2167f1f59f670b87acb69efd117f79ff506ed99f | diff --git a/conans/client/deps_builder.py b/conans/client/deps_builder.py
index 341d1c41a..83c9c8821 100644
--- a/conans/client/deps_builder.py
+++ b/conans/client/deps_builder.py
@@ -416,7 +416,7 @@ class DepsBuilder(object):
def _create_new_node(self, current_node, dep_graph, requirement, public_deps, name_req)... | Memory error when download very big packages
`conan install node/6.1.0@silkedit/stable -s compiler="Visual Studio" -s compiler.version=14`
Downloader.download method keeps in memory too much data.
```
DEBUG :uploader_downloader.py[74]: <type 'exceptions.MemoryError'> [2016-09-23 15:15:02,983]
DEBUG :uploader_... | conan-io/conan | diff --git a/conans/test/download_test.py b/conans/test/download_test.py
index e1ed5a986..e41c6e29a 100644
--- a/conans/test/download_test.py
+++ b/conans/test/download_test.py
@@ -69,7 +69,7 @@ class DownloadTest(unittest.TestCase):
client2.remote_manager,
... | {
"commit_name": "merge_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": 7
} | 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": [
"nose",
"coverage",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"... | attrs==22.2.0
beautifulsoup4==4.12.3
boto==2.42.0
bottle==0.12.25
certifi==2021.5.30
colorama==0.3.9
-e git+https://github.com/conan-io/conan.git@2167f1f59f670b87acb69efd117f79ff506ed99f#egg=conan
coverage==6.2
fasteners==0.19
importlib-metadata==4.8.3
iniconfig==1.1.1
mock==1.3.0
nose==1.3.7
nose-parameterized==0.5.0
... | name: conan
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... | [
"conans/test/model/order_libs_test.py::ConanRequirementsTest::test_diamond_no_conflict",
"conans/test/model/transitive_reqs_test.py::ConanRequirementsTest::test_basic_transitive_option",
"conans/test/model/transitive_reqs_test.py::ConanRequirementsTest::test_conditional",
"conans/test/model/transitive_reqs_te... | [] | [
"conans/test/model/transitive_reqs_test.py::ConanRequirementsTest::test_basic",
"conans/test/model/transitive_reqs_test.py::ConanRequirementsTest::test_basic_option",
"conans/test/model/transitive_reqs_test.py::CoreSettingsTest::test_basic",
"conans/test/model/transitive_reqs_test.py::CoreSettingsTest::test_c... | [] | MIT License | 781 | 3,621 | [
"conans/client/deps_builder.py",
"conans/client/proxy.py",
"conans/client/remote_manager.py",
"conans/client/rest/auth_manager.py",
"conans/client/rest/rest_client.py",
"conans/client/rest/uploader_downloader.py",
"conans/server/store/file_manager.py"
] | |
zalando-stups__senza-365 | fe537a4234d2dd978ef0ff04fba8e5507dad203d | 2016-09-28 08:02:15 | a72ed3ba8f330170d7dc9e923bd18294a03186af | diff --git a/senza/manaus/cloudformation.py b/senza/manaus/cloudformation.py
index b8529be..a53b2e9 100644
--- a/senza/manaus/cloudformation.py
+++ b/senza/manaus/cloudformation.py
@@ -124,6 +124,11 @@ class CloudFormationStack:
for resource in resources:
resource_type = resource["ResourceType"]
... | Unknown Error: 'PhysicalResourceId'
I got a `senza delete` error:
Unknown Error: 'PhysicalResourceId'.
Please create an issue with the content of /tmp/senza-traceback-8ecz_cyz
****************************************senza-traceback-8ecz_cyz****************************************************
`Traceback (most rece... | zalando-stups/senza | diff --git a/tests/test_manaus/test_cloudformation.py b/tests/test_manaus/test_cloudformation.py
index f700c77..44b868a 100644
--- a/tests/test_manaus/test_cloudformation.py
+++ b/tests/test_manaus/test_cloudformation.py
@@ -99,6 +99,12 @@ def test_cf_resources(monkeypatch):
'PhysicalResourceId': 'myap... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 3,
"test_score": 0
},
"num_modified_files": 1
} | 2.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"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",... | boto3==1.37.23
botocore==1.37.23
certifi==2025.1.31
charset-normalizer==3.4.1
click==8.1.8
clickclick==20.10.2
coverage==7.8.0
dnspython==1.15.0
dnspython3==1.15.0
exceptiongroup==1.2.2
idna==3.10
importlib_metadata==8.6.1
iniconfig==2.1.0
jmespath==1.0.1
packaging==24.2
pluggy==1.5.0
pystache==0.6.8
pytest==8.3.5
pyte... | name: senza
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_manaus/test_cloudformation.py::test_cf_resources"
] | [] | [
"tests/test_manaus/test_cloudformation.py::test_get_by_stack_name",
"tests/test_manaus/test_cloudformation.py::test_get_stacks",
"tests/test_manaus/test_cloudformation.py::test_get_by_stack_name_not_found",
"tests/test_manaus/test_cloudformation.py::test_template",
"tests/test_manaus/test_cloudformation.py:... | [] | Apache License 2.0 | 782 | 187 | [
"senza/manaus/cloudformation.py"
] | |
LibraryOfCongress__bagit-python-72 | 5489148ab1f365fcd518bcbc626a9f84b22640a2 | 2016-09-28 19:10:04 | 7684c797b19602c8ea9f36475a0ac26be8903b75 | diff --git a/bagit.py b/bagit.py
index 18c61da..d97b4b5 100755
--- a/bagit.py
+++ b/bagit.py
@@ -47,6 +47,8 @@ from os.path import abspath, isdir, isfile, join
LOGGER = logging.getLogger(__name__)
+VERSION = '1.5.4'
+
# standard bag-info.txt metadata
STANDARD_BAG_INFO_HEADERS = [
'Source-Organization',
@@ -... | Bag-Software-Agent include version?
It would be nice if the default Bag-Software-Agent had a version in it. Currently it looks like:
bagit.py <http://github.com/libraryofcongress/bagit-python>
But maybe something like this would be better, for discovering bags created with (gasp) a version of bagit.py that ha... | LibraryOfCongress/bagit-python | diff --git a/test.py b/test.py
index 5dc8fbf..285174c 100644
--- a/test.py
+++ b/test.py
@@ -303,7 +303,7 @@ class TestSingleProcessValidation(unittest.TestCase):
info = {'Bagging-Date': '1970-01-01', 'Contact-Email': 'ehs@pobox.com'}
bag = bagit.make_bag(self.tmpdir, checksum=['sha1'], bag_info=info)... | {
"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": 2
} | 1.5 | {
"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.5",
"reqs_path": null,
"tes... | attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
-e git+https://github.com/LibraryOfCongress/bagit-python.git@5489148ab1f365fcd518bcbc626a9f84b22640a2#egg=bagit
certifi==2021.5.30
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci... | name: bagit-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
- attrs=21.4.0=pyhd3eb1b0_0
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- impo... | [
"test.py::TestSingleProcessValidation::test_sha1_tagfile",
"test.py::TestMultiprocessValidation::test_sha1_tagfile",
"test.py::TestBag::test_make_bag"
] | [
"test.py::TestSingleProcessValidation::test_validate_unreadable_file",
"test.py::TestMultiprocessValidation::test_validate_unreadable_file"
] | [
"test.py::TestSingleProcessValidation::test_allow_extraneous_dirs_in_base",
"test.py::TestSingleProcessValidation::test_allow_extraneous_files_in_base",
"test.py::TestSingleProcessValidation::test_bom_in_bagit_txt",
"test.py::TestSingleProcessValidation::test_handle_directory_end_slash_gracefully",
"test.py... | [] | null | 783 | 476 | [
"bagit.py",
"setup.py"
] | |
Azure__azure-data-lake-store-python-83 | 9143406b26b3dc695c325b4fbf563c2093e9982f | 2016-09-29 04:13:44 | 9143406b26b3dc695c325b4fbf563c2093e9982f | diff --git a/adlfs/cli.py b/adlfs/cli.py
index f8d2a1f..320033f 100644
--- a/adlfs/cli.py
+++ b/adlfs/cli.py
@@ -91,13 +91,13 @@ class AzureDataLakeFSCommand(cmd.Cmd, object):
def _parse_ownership(self, ownership):
if ':' in ownership:
- user, group = ownership.split(':')
- if not ... | SetOwner and SetPermission are now supported, need tests
Please add tests and recordings for these two APIs now that they are supported | Azure/azure-data-lake-store-python | diff --git a/tests/recordings/test_cli/test_chgrp.yaml b/tests/recordings/test_cli/test_chgrp.yaml
new file mode 100644
index 0000000..5a4b97d
--- /dev/null
+++ b/tests/recordings/test_cli/test_chgrp.yaml
@@ -0,0 +1,113 @@
+interactions:
+- request:
+ body: '123456'
+ headers:
+ Accept: ['*/*']
+ Accept... | {
"commit_name": "merge_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
} | 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",
"vcrpy"
],
"pre_install": null,
"python": "3.5",
"reqs_path": [
"requirements.txt"
],
"test_cmd... | adal==1.2.7
-e git+https://github.com/Azure/azure-data-lake-store-python.git@9143406b26b3dc695c325b4fbf563c2093e9982f#egg=adlfs
attrs==22.2.0
azure==4.0.0
azure-applicationinsights==0.1.1
azure-batch==4.1.3
azure-common==1.1.28
azure-core==1.24.2
azure-cosmosdb-nspkg==2.0.2
azure-cosmosdb-table==1.0.6
azure-datalake-st... | name: azure-data-lake-store-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... | [
"tests/test_cli.py::test_chown"
] | [
"tests/test_core.py::test_ls_touch",
"tests/test_core.py::test_rm",
"tests/test_core.py::test_bad_open",
"tests/test_core.py::test_info",
"tests/test_core.py::test_exists",
"tests/test_core.py::test_read_delimited_block"
] | [
"tests/test_cli.py::test_cat",
"tests/test_cli.py::test_chgrp",
"tests/test_cli.py::test_chmod",
"tests/test_cli.py::test_df",
"tests/test_cli.py::test_du",
"tests/test_cli.py::test_exists",
"tests/test_cli.py::test_get",
"tests/test_cli.py::test_head",
"tests/test_cli.py::test_head_bytes",
"tests... | [] | MIT License | 784 | 340 | [
"adlfs/cli.py"
] | |
zalando-stups__senza-372 | 56e263195218e3fe052e95221b2d9528c4343264 | 2016-09-30 08:21:15 | a72ed3ba8f330170d7dc9e923bd18294a03186af | diff --git a/senza/aws.py b/senza/aws.py
index 1284ba3..c7f0468 100644
--- a/senza/aws.py
+++ b/senza/aws.py
@@ -55,13 +55,12 @@ def is_status_complete(status: str):
def get_security_group(region: str, sg_name: str):
ec2 = boto3.resource('ec2', region)
try:
- sec_groups = list(ec2.security_groups.filt... | Lookup SecurityGroups by the tag "Name" rather than GroupName
Both AWS API and CloudFormation allow to refer to a security group by its name if the operation runs in EC2 Classic or the default VPC. Unfortunately it uses the `GroupName` attribute that is automatically generated by AWS if the SG is a part of CloudFormati... | zalando-stups/senza | diff --git a/tests/test_aws.py b/tests/test_aws.py
index 4ca762a..8dd5b44 100644
--- a/tests/test_aws.py
+++ b/tests/test_aws.py
@@ -14,6 +14,21 @@ def test_get_security_group(monkeypatch):
assert results == get_security_group('myregion', 'group_inexistant')
+def test_get_security_group_by_tag_name(monkeypatch... | {
"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": 3
},
"num_modified_files": 1
} | 2.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",
"mock"
],
"pre_install": null,
"python": "3.5",
"reqs_path": [
"requirements.txt"... | attrs==22.2.0
boto3==1.23.10
botocore==1.26.10
certifi==2021.5.30
charset-normalizer==2.0.12
click==8.0.4
clickclick==20.10.2
coverage==6.2
dnspython==1.15.0
dnspython3==1.15.0
idna==3.10
importlib-metadata==4.8.3
iniconfig==1.1.1
jmespath==0.10.0
mock==5.2.0
packaging==21.3
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
py... | name: senza
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_aws.py::test_get_security_group_by_tag_name"
] | [] | [
"tests/test_aws.py::test_get_security_group",
"tests/test_aws.py::test_resolve_security_groups",
"tests/test_aws.py::test_create",
"tests/test_aws.py::test_encrypt",
"tests/test_aws.py::test_list_kms_keys",
"tests/test_aws.py::test_get_vpc_attribute",
"tests/test_aws.py::test_get_account_id",
"tests/t... | [] | Apache License 2.0 | 789 | 314 | [
"senza/aws.py"
] | |
abh1nav__gnippy-25 | ce2968934c3d25aabda033a544e3abcc0e80775e | 2016-10-06 11:03:51 | ce2968934c3d25aabda033a544e3abcc0e80775e | diff --git a/gnippy/rules.py b/gnippy/rules.py
index 37877f8..be59fcc 100644
--- a/gnippy/rules.py
+++ b/gnippy/rules.py
@@ -31,7 +31,7 @@ def _check_rules_list(rules_list):
if not isinstance(rules_list, list):
fail()
- expected = ("value", "tag")
+ expected = ("value", "tag", "id")
for r in ... | New rule format breaks delete example
The examples in the README for deleting rules are broken due to the addition of the id field in the rules returned by GNIP.
from gnippy import rules
from gnippy.errors import RuleDeleteFailedException, RulesGetFailedException
try:
rules_list = rules.get_... | abh1nav/gnippy | diff --git a/gnippy/test/test_rules.py b/gnippy/test/test_rules.py
index cfa1ee4..cbb4202 100644
--- a/gnippy/test/test_rules.py
+++ b/gnippy/test/test_rules.py
@@ -42,7 +42,8 @@ def good_get_no_rules(url, auth):
def good_get_one_rule(url, auth):
- return test_utils.GoodResponse(json={"rules":[{"value": "Hello"... | {
"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
} | 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": [
"nose",
"mock",
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": ... | 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
exceptiongroup==1.2.2
filelock==3.18.0
-e git+https://github.com/abh1nav/gnippy.git@ce2968934c3d25aabda033a544e3abcc0e80775e#egg=gnippy
idna==3.10
iniconfig==2.1.0
mock==1.0.1
nose==1.3.0
packaging==24.2
platfor... | name: gnippy
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... | [
"gnippy/test/test_rules.py::RulesTestCase::test_check_many_rules_ok"
] | [] | [
"gnippy/test/test_rules.py::RulesTestCase::test_add_many_rules_no_creds",
"gnippy/test/test_rules.py::RulesTestCase::test_add_many_rules_not_ok",
"gnippy/test/test_rules.py::RulesTestCase::test_add_many_rules_ok",
"gnippy/test/test_rules.py::RulesTestCase::test_add_one_rule_no_creds",
"gnippy/test/test_rule... | [] | Apache License 2.0 | 797 | 353 | [
"gnippy/rules.py"
] | |
kytos__python-openflow-201 | 013e9c24bd4c234f0bf39210686a58af4c586d7d | 2016-10-11 23:39:44 | 013e9c24bd4c234f0bf39210686a58af4c586d7d | diff --git a/pyof/foundation/basic_types.py b/pyof/foundation/basic_types.py
index 297baa2..a3b5461 100644
--- a/pyof/foundation/basic_types.py
+++ b/pyof/foundation/basic_types.py
@@ -130,10 +130,11 @@ class DPID(GenericType):
self._value = ':'.join(bytes)
def pack(self, value=None):
- buffer = ... | Fix tests
I ran bisect assigning zeros to default DPID value and it lead to d207690facd4844557fb7d53aebbd5d2fb66a414 (added a new basic type: dpid). | kytos/python-openflow | diff --git a/tests/v0x01/test_controller2switch/test_features_reply.py b/tests/v0x01/test_controller2switch/test_features_reply.py
index 2728ded..3f56325 100644
--- a/tests/v0x01/test_controller2switch/test_features_reply.py
+++ b/tests/v0x01/test_controller2switch/test_features_reply.py
@@ -1,5 +1,5 @@
"""Echo reques... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_git_commit_hash",
"has_many_modified_files"
],
"has_test_patch": true,
"is_lite": false,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 3,
"test_score": 2
},
"num_modified_f... | 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",
"pytest-cov",
"pytest-xdist",
"pytest-mock",
"pytest-asyncio",
"pylama",
"radon"
],
... | colorama==0.4.6
coverage==7.8.0
exceptiongroup==1.2.2
execnet==2.1.1
iniconfig==2.1.0
mando==0.7.1
mccabe==0.7.0
packaging==24.2
pluggy==1.5.0
pycodestyle==2.13.0
pydocstyle==6.3.0
pyflakes==3.3.2
pylama==8.4.1
pytest==8.3.5
pytest-asyncio==0.26.0
pytest-cov==6.0.0
pytest-mock==3.14.0
pytest-xdist==3.6.1
-e git+https:/... | name: python-openflow
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
- lib... | [
"tests/v0x01/test_controller2switch/test_features_reply.py::TestFeaturesReply::test_pack",
"tests/v0x01/test_controller2switch/test_features_reply.py::TestFeaturesReply::test_unpack"
] | [
"tests/v0x01/test_controller2switch/test_features_reply.py::TestStruct::test_minimum_size",
"tests/v0x01/test_controller2switch/test_features_reply.py::TestStruct::test_pack",
"tests/v0x01/test_controller2switch/test_features_reply.py::TestStruct::test_unpack"
] | [
"tests/v0x01/test_controller2switch/test_features_reply.py::TestFeaturesReply::test_minimum_size"
] | [] | MIT License | 805 | 415 | [
"pyof/foundation/basic_types.py",
"pyof/v0x01/controller2switch/features_reply.py"
] | |
zalando-stups__senza-393 | 5df821c7b09729f59debf89c0ff1e4068340cbc1 | 2016-10-12 12:15:38 | a72ed3ba8f330170d7dc9e923bd18294a03186af | diff --git a/senza/components/elastic_load_balancer.py b/senza/components/elastic_load_balancer.py
index 1a0fdb4..68972bd 100644
--- a/senza/components/elastic_load_balancer.py
+++ b/senza/components/elastic_load_balancer.py
@@ -76,13 +76,11 @@ def get_ssl_cert(subdomain, main_zone, configuration, account_info: Account... | Make property overwriting for senza components less destructive
When using a senza component to build a stack, it would be great if it was possible to overwrite properties in a less destructive way.
### Expected Behavior
We are using the default component `WeightedDnsElasticLoadBalancer`. Now we want to open port ... | zalando-stups/senza | diff --git a/tests/test_components.py b/tests/test_components.py
index dfbf912..a7fe6f0 100644
--- a/tests/test_components.py
+++ b/tests/test_components.py
@@ -198,6 +198,31 @@ def test_component_load_balancer_http_only(monkeypatch):
assert 'Bar' == result["Resources"]["test_lb"]["Properties"]["Listeners"][0]["Fo... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 1
},
"num_modified_files": 1
} | 2.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",
"mock"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"pyt... | boto3==1.37.23
botocore==1.37.23
certifi==2025.1.31
charset-normalizer==3.4.1
click==8.1.8
clickclick==20.10.2
coverage==7.8.0
dnspython==1.15.0
dnspython3==1.15.0
exceptiongroup==1.2.2
idna==3.10
importlib_metadata==8.6.1
iniconfig==2.1.0
jmespath==1.0.1
mock==5.2.0
packaging==24.2
pluggy==1.5.0
pystache==0.6.8
pytest... | name: senza
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_components.py::test_component_load_balancer_listeners_ssl"
] | [
"tests/test_components.py::test_weighted_dns_load_balancer",
"tests/test_components.py::test_weighted_dns_load_balancer_with_different_domains",
"tests/test_components.py::test_check_docker_image_exists"
] | [
"tests/test_components.py::test_invalid_component",
"tests/test_components.py::test_component_iam_role",
"tests/test_components.py::test_get_merged_policies",
"tests/test_components.py::test_component_load_balancer_healthcheck",
"tests/test_components.py::test_component_load_balancer_idletimeout",
"tests/... | [] | Apache License 2.0 | 807 | 490 | [
"senza/components/elastic_load_balancer.py"
] | |
napjon__krisk-58 | 8497da2333a8265b2e19c87dcec3bae20b8d4059 | 2016-10-17 08:32:31 | a676433768a62b61f5861c68c127e40970914764 | diff --git a/krisk/plot/make_chart.py b/krisk/plot/make_chart.py
index 924e015..68e3c41 100644
--- a/krisk/plot/make_chart.py
+++ b/krisk/plot/make_chart.py
@@ -43,6 +43,9 @@ def make_chart(df, **kwargs):
if kwargs.get('y', None):
chart.set_ylabel(kwargs['y'])
+ if kwargs['type'] == 'line':
+ ... | Line Plot should have default trigger axis and axis pointer shadow | napjon/krisk | diff --git a/krisk/tests/test_plot.py b/krisk/tests/test_plot.py
index 50435da..13b78e3 100644
--- a/krisk/tests/test_plot.py
+++ b/krisk/tests/test_plot.py
@@ -92,6 +92,8 @@ def test_line(gapminder):
annotate='all')
opt = read_option_tests('line.json')
assert_barline_data(p, opt)
+ assert p.optio... | {
"commit_name": "merge_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": 2
},
"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": [
"coverage",
"pytest"
],
"pre_install": [
"pip install cython"
],
"python": "3.5",
"reqs_path": [
"requi... | anyio==3.6.2
argon2-cffi==21.3.0
argon2-cffi-bindings==21.2.0
async-generator==1.10
attrs==22.2.0
Babel==2.11.0
backcall==0.2.0
bleach==4.1.0
certifi==2021.5.30
cffi==1.15.1
charset-normalizer==2.0.12
comm==0.1.4
contextvars==2.4
coverage==6.2
Cython==3.0.12
dataclasses==0.8
decorator==5.1.1
defusedxml==0.7.1
entrypoin... | name: krisk
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... | [
"krisk/tests/test_plot.py::test_line"
] | [] | [
"krisk/tests/test_plot.py::test_bar",
"krisk/tests/test_plot.py::test_trendline",
"krisk/tests/test_plot.py::test_smooth_line",
"krisk/tests/test_plot.py::test_full_bar_line",
"krisk/tests/test_plot.py::test_sort_bar_line",
"krisk/tests/test_plot.py::test_hist",
"krisk/tests/test_plot.py::test_density",... | [] | BSD 3-Clause "New" or "Revised" License | 819 | 167 | [
"krisk/plot/make_chart.py"
] | |
unnonouno__jqp-26 | 0977f3585147190adec127722e940783209b6ab6 | 2016-10-19 12:55:42 | 2cb79f866194b90b5236d8146e3cab6ace704ebd | coveralls:
[](https://coveralls.io/builds/8409367)
Coverage increased (+1.4%) to 83.721% when pulling **df0ac543dc33b5ad23fb4dd94e5f512793a1f5f0 on import** into **0977f3585147190adec127722e940783209b6ab6 on master**.
coveralls:
[:
sys.exit(return_code)
-def run(in_io, out_io, cmd):
+def run(in_io, out_io, cmd, imports=[]):
+ environment = {}
+ for mod_na... | Make import option
I need an option to import modules which I use in commands. | unnonouno/jqp | diff --git a/tests/run_test.py b/tests/run_test.py
index 31ceb87..8e64641 100644
--- a/tests/run_test.py
+++ b/tests/run_test.py
@@ -16,6 +16,13 @@ class RunTest(unittest.TestCase):
jqp.run(inputs, outputs, 'j["name"]')
self.assertEqual(outputs.getvalue(), '"Taro"\n')
+ def test_import(self):
+ ... | {
"commit_name": "merge_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
} | 0.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"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.5",... | 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/unnonouno/jqp.git@0977f3585147190adec127722e940783209b6ab6#egg=jqp
packaging==21.3
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
pytest-cov==4.0.0
tomli==1.2.3
typing_extensions==4.1.1
zipp==3.6... | name: jqp
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
- libffi... | [
"tests/run_test.py::RunTest::test_import",
"tests/run_test.py::RunTest::test_import_error"
] | [] | [
"tests/run_test.py::RunTest::test1",
"tests/run_test.py::RunTest::test_dump_error",
"tests/run_test.py::RunTest::test_execution_error",
"tests/run_test.py::RunTest::test_parse_error"
] | [] | MIT License | 822 | 412 | [
"jqp/__init__.py"
] |
gerva__tower-companion-28 | 5c373dd2992d4404e9a0e5fc0c5195f58c7ddb7a | 2016-10-24 08:21:41 | 5c373dd2992d4404e9a0e5fc0c5195f58c7ddb7a | coveralls:
[](https://coveralls.io/builds/8472505)
Coverage remained the same at 100.0% when pulling **ad80837a4268266baeb9cebaa1d793a4d0bc46fb on michaelgaida:TC-26** into **5c373dd2992d4404e9a0e5fc0c5195f58c7ddb7a on gerva:master**.
coveralls:
[![Covera... | diff --git a/lib/api.py b/lib/api.py
index 6d76e18..a131931 100644
--- a/lib/api.py
+++ b/lib/api.py
@@ -8,6 +8,7 @@ import json
import requests
import lib.validate as validate
from lib.adhoc import AdHocError
+from lib.configuration import ConfigError
class APIError(Exception):
@@ -27,7 +28,13 @@ class APIv1(o... | When no configuration file is set, `kick` raises a ConfigError
we should intercept the ConfigError and explain what's wrong with the configuration, instead of just printing the full stack trace | gerva/tower-companion | diff --git a/test/test_api.py b/test/test_api.py
index 50b1a85..31d8d27 100644
--- a/test/test_api.py
+++ b/test/test_api.py
@@ -135,6 +135,25 @@ def test_get_json_error(monkeypatch):
with pytest.raises(APIError):
api._get_json(url='', params={}, data={})
+def test_less_configuration():
+ config = Co... | {
"commit_name": "merge_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": 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",
"coverage",
"prospector"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
... | astroid==2.11.7
attrs==22.2.0
certifi==2021.5.30
click==6.6
coverage==6.2
dill==0.3.4
dodgy==0.2.1
flake8==4.0.1
flake8-polyfill==1.0.2
importlib-metadata==4.2.0
iniconfig==1.1.1
isort==5.10.1
lazy-object-proxy==1.7.1
mccabe==0.6.1
packaging==21.3
pep8-naming==0.10.0
platformdirs==2.4.0
pluggy==1.0.0
prospector==1.7.7
... | name: tower-companion
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_... | [
"test/test_api.py::test_less_configuration"
] | [] | [
"test/test_api.py::test_api",
"test/test_api.py::test_verify_ssl",
"test/test_api.py::test_get",
"test/test_api.py::test_get_error",
"test/test_api.py::test_post",
"test/test_api.py::test_post_error",
"test/test_api.py::test_get_json",
"test/test_api.py::test_get_json_error",
"test/test_api.py::test... | [] | Apache License 2.0 | 829 | 485 | [
"lib/api.py"
] |
scrapy__w3lib-77 | 8e19741b6b004d6248fb70b525255a96a1eb1ee6 | 2016-10-25 06:37:29 | e2c7b62ea59104f628c1c5f35333cb406b4e500e | redapple: Can you add tests for this?
Can you provide example websites showing this issue? | diff --git a/w3lib/html.py b/w3lib/html.py
index a4be054..a31d42b 100644
--- a/w3lib/html.py
+++ b/w3lib/html.py
@@ -311,7 +311,7 @@ def get_base_url(
"""
- utext = to_unicode(text, encoding)
+ utext: str = remove_comments(text, encoding=encoding)
m = _baseurl_re.search(utext)
if m:
re... | It's not a good idead to parse HTML text using regular expressions
In [`w3lib.html`](https://github.com/scrapy/w3lib/blob/master/w3lib/html.py) regular expressions are used to parse HTML texts:
``` python
_ent_re = re.compile(r'&((?P<named>[a-z\d]+)|#(?P<dec>\d+)|#x(?P<hex>[a-f\d]+))(?P<semicolon>;?)', re.IGNORECASE)
... | scrapy/w3lib | diff --git a/tests/test_html.py b/tests/test_html.py
index d4861ba..1e637b0 100644
--- a/tests/test_html.py
+++ b/tests/test_html.py
@@ -372,6 +372,30 @@ class GetBaseUrlTest(unittest.TestCase):
get_base_url(text, baseurl.encode("ascii")), "http://example.org/something"
)
+ def test_base_url_... | {
"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
} | 2.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": [
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --color=no... | 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: w3lib
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_html.py::GetBaseUrlTest::test_base_url_in_comment"
] | [] | [
"tests/test_html.py::RemoveEntitiesTest::test_browser_hack",
"tests/test_html.py::RemoveEntitiesTest::test_encoding",
"tests/test_html.py::RemoveEntitiesTest::test_illegal_entities",
"tests/test_html.py::RemoveEntitiesTest::test_keep_entities",
"tests/test_html.py::RemoveEntitiesTest::test_missing_semicolon... | [] | BSD 3-Clause "New" or "Revised" License | 830 | 125 | [
"w3lib/html.py"
] |
wireservice__agate-637 | 0d2671358cdea94c83bd8f28b5a6718a9326b033 | 2016-10-30 16:11:15 | 97cb37f673af480f74fef546ceefd3ba24aff93b | diff --git a/agate/aggregations/any.py b/agate/aggregations/any.py
index 70fa702..67a9651 100644
--- a/agate/aggregations/any.py
+++ b/agate/aggregations/any.py
@@ -32,7 +32,7 @@ class Any(Aggregation):
column = table.columns[self._column_name]
data = column.values()
- if isinstance(column.da... | agate.All cannot test whether all data is False
If the column data type is boolean, test gets overwritten to search for True values.
| wireservice/agate | diff --git a/tests/test_aggregations.py b/tests/test_aggregations.py
index c3c8fbb..11eefe1 100644
--- a/tests/test_aggregations.py
+++ b/tests/test_aggregations.py
@@ -138,6 +138,7 @@ class TestBooleanAggregation(unittest.TestCase):
table = Table(rows, ['test'], [Boolean()])
Any('test').validate(tabl... | {
"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": 1
},
"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",
"numpy>=1.16.0",
"pandas>=1.0.0"
],
"pre_install": [
"apt-get update",
"apt-get install -y... | -e git+https://github.com/wireservice/agate.git@0d2671358cdea94c83bd8f28b5a6718a9326b033#egg=agate
awesome-slugify==1.6.5
babel==2.17.0
exceptiongroup==1.2.2
iniconfig==2.1.0
isodate==0.7.2
numpy==2.0.2
packaging==24.2
pandas==2.2.3
parsedatetime==2.6
pluggy==1.5.0
pytest==8.3.5
python-dateutil==2.9.0.post0
pytimeparse... | name: agate
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_aggregations.py::TestBooleanAggregation::test_any"
] | [] | [
"tests/test_aggregations.py::TestSimpleAggregation::test_all",
"tests/test_aggregations.py::TestSimpleAggregation::test_any",
"tests/test_aggregations.py::TestSimpleAggregation::test_count",
"tests/test_aggregations.py::TestSimpleAggregation::test_count_column",
"tests/test_aggregations.py::TestSimpleAggreg... | [] | MIT License | 839 | 149 | [
"agate/aggregations/any.py"
] | |
wireservice__agate-638 | 97cb37f673af480f74fef546ceefd3ba24aff93b | 2016-10-30 16:50:31 | 97cb37f673af480f74fef546ceefd3ba24aff93b | diff --git a/agate/aggregations/__init__.py b/agate/aggregations/__init__.py
index e4f40cc..cf82a30 100644
--- a/agate/aggregations/__init__.py
+++ b/agate/aggregations/__init__.py
@@ -21,6 +21,7 @@ from agate.aggregations.all import All # noqa
from agate.aggregations.any import Any # noqa
from agate.aggregations.c... | agate.First aggregation
I end up doing this all the time:
```
def pick_first(c):
return c[0]
agate.Summary('Serial_Num', agate.Text(), pick_first)
``` | wireservice/agate | diff --git a/tests/test_aggregations.py b/tests/test_aggregations.py
index 11eefe1..e0dc625 100644
--- a/tests/test_aggregations.py
+++ b/tests/test_aggregations.py
@@ -67,6 +67,17 @@ class TestSimpleAggregation(unittest.TestCase):
self.assertEqual(All('one', lambda d: d != 5).run(self.table), True)
s... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_short_problem_statement",
"has_added_files",
"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.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"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
"requirements-py3.txt"
],
"test_cmd": "pytes... | -e git+https://github.com/wireservice/agate.git@97cb37f673af480f74fef546ceefd3ba24aff93b#egg=agate
alabaster==0.7.16
awesome-slugify==1.6.5
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
fi... | name: agate
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_aggregations.py::TestSimpleAggregation::test_first"
] | [] | [
"tests/test_aggregations.py::TestSimpleAggregation::test_all",
"tests/test_aggregations.py::TestSimpleAggregation::test_any",
"tests/test_aggregations.py::TestSimpleAggregation::test_count",
"tests/test_aggregations.py::TestSimpleAggregation::test_count_column",
"tests/test_aggregations.py::TestSimpleAggreg... | [] | MIT License | 840 | 610 | [
"agate/aggregations/__init__.py"
] | |
scrapy__scrapy-2393 | 451f1474689a18d6a54630915c42172626624ef7 | 2016-11-10 15:28:51 | d7b26edf6b419e379a7a0a425093f02cac2fcf33 | codecov-io: ## [Current coverage](https://codecov.io/gh/scrapy/scrapy/pull/2393?src=pr) is 83.36% (diff: 100%)
> Merging [#2393](https://codecov.io/gh/scrapy/scrapy/pull/2393?src=pr) into [master](https://codecov.io/gh/scrapy/scrapy/branch/master?src=pr) will decrease coverage by **0.01%**
```diff
@@ maste... | diff --git a/scrapy/downloadermiddlewares/httpcompression.py b/scrapy/downloadermiddlewares/httpcompression.py
index 19d6345e4..eb00d8923 100644
--- a/scrapy/downloadermiddlewares/httpcompression.py
+++ b/scrapy/downloadermiddlewares/httpcompression.py
@@ -38,7 +38,7 @@ class HttpCompressionMiddleware(object):
... | Disabling RedirectMiddleware results in HttpCompressionMiddleware errors
I wanted not to redirect `303` responses, but instead retry them.
From the docs, I thought I could achieve it through two settings:
```
REDIRECT_ENABLED = False
RETRY_HTTP_CODES = [301, 302, 307, 308, 500, 502, 503, 504, 408]
```
It ended up giv... | scrapy/scrapy | diff --git a/tests/test_downloadermiddleware_httpcompression.py b/tests/test_downloadermiddleware_httpcompression.py
index 7924fb3b5..5403e8f52 100644
--- a/tests/test_downloadermiddleware_httpcompression.py
+++ b/tests/test_downloadermiddleware_httpcompression.py
@@ -7,6 +7,7 @@ from scrapy.spiders import Spider
from... | {
"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
} | 1.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": [
"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_downloadermiddleware_httpcompression.py::HttpCompressionTest::test_process_response_no_content_type_header"
] | [] | [
"tests/test_downloadermiddleware_httpcompression.py::HttpCompressionTest::test_multipleencodings",
"tests/test_downloadermiddleware_httpcompression.py::HttpCompressionTest::test_process_request",
"tests/test_downloadermiddleware_httpcompression.py::HttpCompressionTest::test_process_response_encoding_inside_body... | [] | BSD 3-Clause "New" or "Revised" License | 847 | 180 | [
"scrapy/downloadermiddlewares/httpcompression.py"
] |
cdent__gabbi-186 | f27b9aba8590dbdb16749f917cdcf3fffc6218e3 | 2016-11-10 17:05:40 | f27b9aba8590dbdb16749f917cdcf3fffc6218e3 | diff --git a/gabbi/httpclient.py b/gabbi/httpclient.py
index 22869e5..88f873d 100644
--- a/gabbi/httpclient.py
+++ b/gabbi/httpclient.py
@@ -19,6 +19,7 @@ import sys
import urllib3
+from gabbi.handlers import jsonhandler
from gabbi import utils
@@ -138,11 +139,20 @@ class VerboseHttp(Http):
def _print_... | If verbose: True and response content-type is json may as well pretty print the output
It kinda seems like if we know the content-type when being verbose about bodies, we may as well pretty print if it is json. It's not much effort to do so (there's already pretty printing happening in some test failure messages) and i... | cdent/gabbi | diff --git a/gabbi/tests/gabbits_runner/test_verbose.yaml b/gabbi/tests/gabbits_runner/test_verbose.yaml
new file mode 100644
index 0000000..99b0b0f
--- /dev/null
+++ b/gabbi/tests/gabbits_runner/test_verbose.yaml
@@ -0,0 +1,18 @@
+tests:
+
+- name: POST data with verbose true
+ verbose: true
+ POST: /
+ request_hea... | {
"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.27 | {
"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.5",
"reqs_path": [
"requirements.txt",
"test-requirements.... | alabaster==0.7.13
attrs==22.2.0
Babel==2.11.0
certifi==2021.5.30
charset-normalizer==2.0.12
colorama==0.4.5
coverage==6.2
decorator==5.1.1
docutils==0.18.1
extras==1.0.0
fixtures==4.0.1
flake8==3.8.4
-e git+https://github.com/cdent/gabbi.git@f27b9aba8590dbdb16749f917cdcf3fffc6218e3#egg=gabbi
hacking==4.1.0
idna==3.10
i... | 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_runner.py::RunnerTest::test_verbose_output_formatting"
] | [] | [
"gabbi/tests/test_runner.py::RunnerTest::test_custom_response_handler",
"gabbi/tests/test_runner.py::RunnerTest::test_exit_code",
"gabbi/tests/test_runner.py::RunnerTest::test_input_files",
"gabbi/tests/test_runner.py::RunnerTest::test_target_url_parsing",
"gabbi/tests/test_runner.py::RunnerTest::test_targe... | [] | Apache License 2.0 | 848 | 375 | [
"gabbi/httpclient.py"
] | |
sigmavirus24__github3.py-650 | e57cdf6b2f3fb3eec9bf235a1b55f2bd4bd41d85 | 2016-11-14 22:39:05 | 785562d89a01545e1efe54efc8aba5e8a15cdd18 | sigmavirus24: You'll need to rebase this on top of develop once #652 merges.
sigmavirus24: Closing & Reopening apparently will trigger a new merged build on Travis.
itsmemattchung: Thanks for submitting the PR. Instead of modifying the existing test case, test_merge, please add a new test case to cover the new use cas... | diff --git a/github3/pulls.py b/github3/pulls.py
index e1b843cd..2511c004 100644
--- a/github3/pulls.py
+++ b/github3/pulls.py
@@ -311,7 +311,7 @@ class PullRequest(models.GitHubCore):
return self._iter(int(number), url, IssueComment, etag=etag)
@requires_auth
- def merge(self, commit_message='', sha... | Allow `commit_message` default for merging
To do this, `commit_message` must be omitted from the request (not just empty).
https://github.com/sigmavirus24/github3.py/blob/7ebca532da8dcc7f22be9f7f1b13fdea3e4d34c0/github3/pulls.py#L312-L331
https://developer.github.com/v3/repos/merging/
<bountysource-plugin>
... | sigmavirus24/github3.py | diff --git a/tests/unit/test_pulls.py b/tests/unit/test_pulls.py
index a5b7480b..828c1b29 100644
--- a/tests/unit/test_pulls.py
+++ b/tests/unit/test_pulls.py
@@ -95,7 +95,7 @@ class TestPullRequest(helper.UnitHelper):
self.put_called_with(
url_for('merge'),
- data={"squash": False, "... | {
"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
} | 0.9 | {
"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.5",
"reqs_path": [
"dev-requirements.txt"
... | attrs==22.2.0
betamax==0.8.1
betamax-matchers==0.4.0
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
distlib==0.3.9
filelock==3.4.1
-e git+https://github.com/sigmavirus24/github3.py.git@e57cdf6b2f3fb3eec9bf235a1b55f2bd4bd41d85#egg=github3.py
idna==3.10
importlib-metadata==4.8.3
importlib-resources==5.4.0
in... | name: github3.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/test_pulls.py::TestPullRequest::test_merge"
] | [] | [
"tests/unit/test_pulls.py::TestPullRequest::test_close",
"tests/unit/test_pulls.py::TestPullRequest::test_create_comment",
"tests/unit/test_pulls.py::TestPullRequest::test_create_review_comment",
"tests/unit/test_pulls.py::TestPullRequest::test_diff",
"tests/unit/test_pulls.py::TestPullRequest::test_is_merg... | [] | BSD 3-Clause "New" or "Revised" License | 850 | 297 | [
"github3/pulls.py"
] |
F5Networks__f5-common-python-809 | adde820d63f53295a322e093df4438b17c9eeae1 | 2016-11-15 13:55:42 | 83adbc050922c78a30c89c9c39b601a18e798171 | wojtek0806: @pjbreaux or @caphrim007 whenever it finishes testing please merge :) | diff --git a/f5/bigip/resource.py b/f5/bigip/resource.py
index 3bfcfec..018bfe1 100644
--- a/f5/bigip/resource.py
+++ b/f5/bigip/resource.py
@@ -100,6 +100,7 @@ from f5.bigip.mixins import LazyAttributeMixin
from f5.bigip.mixins import ToDictMixin
from f5.sdk_exception import F5SDKError
from f5.sdk_exception import ... | factor other supported parameters and formats into iapp_parser
The iapp_parser util supports the common formats for iapps but does not support all of them, particularly those that are part of the iapp templates that F5 releases on downloads.f5.com | F5Networks/f5-common-python | diff --git a/f5/bigip/test/unit/test_resource.py b/f5/bigip/test/unit/test_resource.py
index ed022d9..3ef0de4 100644
--- a/f5/bigip/test/unit/test_resource.py
+++ b/f5/bigip/test/unit/test_resource.py
@@ -47,6 +47,7 @@ from f5.bigip.tm.ltm.virtual import Policies_s
from f5.bigip.tm.ltm.virtual import Profiles_s
from ... | {
"commit_name": "merge_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": 3
},
"num_modified_files": 1
} | 1.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",
"pytest-xdist",
"pytest-mock",
"pytest-asyncio",
"pytest-bdd",
"pytest-b... | attrs==25.3.0
certifi==2025.1.31
cffi==1.17.1
charset-normalizer==3.4.1
coverage==7.8.0
cryptography==44.0.2
exceptiongroup==1.2.2
execnet==2.1.1
f5-icontrol-rest==1.1.0
-e git+https://github.com/F5Networks/f5-common-python.git@adde820d63f53295a322e093df4438b17c9eeae1#egg=f5_sdk
freezegun==1.5.1
gherkin-official==29.0.... | name: f5-common-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
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- li... | [
"f5/bigip/test/unit/test_resource.py::TestResource_update::test_meta_data_exception_raised"
] | [
"f5/bigip/test/unit/test_resource.py::TestResource_load::test_URICreationCollision",
"f5/bigip/test/unit/test_resource.py::TestResourceCreate::test_reduce_boolean_same_value",
"f5/bigip/test/unit/test_resource.py::TestResourceCreate::test_success",
"f5/bigip/test/unit/test_resource.py::TestResourceCreate::tes... | [
"f5/bigip/test/unit/test_resource.py::TestResource_load::test_requests_params_collision",
"f5/bigip/test/unit/test_resource.py::TestResource_load::test_icontrol_version_set",
"f5/bigip/test/unit/test_resource.py::TestResource_load::test_missing_required_params",
"f5/bigip/test/unit/test_resource.py::TestResou... | [] | Apache License 2.0 | 852 | 338 | [
"f5/bigip/resource.py"
] |
springload__draftjs_exporter-21 | fb287b5d9132aa8f01538aec193eccbc940ccc59 | 2016-11-16 03:08:00 | 8805d4ad5665c56f8835a100b24408a42b72df60 | coveralls:
[](https://coveralls.io/builds/8846225)
Coverage decreased (-0.3%) to 99.731% when pulling **19723bdc1a8e5e85f3a5efc3b35c05f04bcfaa58 on fix/cleanup** into **fb287b5d9132aa8f01538aec193eccbc940ccc59 on master**.
loicteixeira: Regarding the 2 TOD... | diff --git a/draftjs_exporter/constants.py b/draftjs_exporter/constants.py
index 882f5ee..8e6e18a 100644
--- a/draftjs_exporter/constants.py
+++ b/draftjs_exporter/constants.py
@@ -3,10 +3,13 @@ from __future__ import absolute_import, unicode_literals
# http://stackoverflow.com/a/22723724/1798491
class Enum(object)... | Fix code relying on mutable default values
Pointed out by @loicteixeira, this happens a couple of times within the codebase. | springload/draftjs_exporter | diff --git a/tests/test_constants.py b/tests/test_constants.py
index 8d4ad3d..1bf3a41 100644
--- a/tests/test_constants.py
+++ b/tests/test_constants.py
@@ -2,7 +2,21 @@ from __future__ import absolute_import, unicode_literals
import unittest
-from draftjs_exporter.constants import BLOCK_TYPES, ENTITY_TYPES, INLIN... | {
"commit_name": "merge_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": ... | 0.4 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[testing,docs]",
"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": [... | beautifulsoup4==4.13.3
cachetools==5.5.2
chardet==5.2.0
colorama==0.4.6
coverage==7.8.0
distlib==0.3.9
-e git+https://github.com/springload/draftjs_exporter.git@fb287b5d9132aa8f01538aec193eccbc940ccc59#egg=draftjs_exporter
exceptiongroup==1.2.2
execnet==2.1.1
filelock==3.18.0
flake8==7.2.0
html5lib==0.9999999
iniconfig... | name: draftjs_exporter
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_constants.py::EnumConstants::test_enum_raises_an_error_for_invalid_keys"
] | [] | [
"tests/test_constants.py::EnumConstants::test_enum_returns_the_key_if_valid",
"tests/test_constants.py::TestConstants::test_block_types",
"tests/test_constants.py::TestConstants::test_entity_types",
"tests/test_constants.py::TestConstants::test_inline_styles"
] | [] | MIT License | 854 | 3,162 | [
"draftjs_exporter/constants.py",
"draftjs_exporter/dom.py",
"draftjs_exporter/entities.py",
"draftjs_exporter/entity_state.py",
"draftjs_exporter/html.py",
"draftjs_exporter/style_state.py",
"draftjs_exporter/wrapper_state.py"
] |
blue-yonder__tsfresh-66 | 50b3ee7ee663aacf8d6ae28bcb2bfcc00bd3d9a1 | 2016-11-16 22:19:12 | 211a9f9504c710dd7de1189ff8dcf637e1390428 | coveralls:
[](https://coveralls.io/builds/8863140)
Coverage increased (+0.2%) to 93.674% when pulling **bd41d0dab7dffa94cdc7614bb8d311b16c1cc4bf on nils-braun:count-percentage-of-some-value** into **50b3ee7ee663aacf8d6ae28bcb2bfcc00bd3d9a1 on blue-yonder:ma... | diff --git a/tsfresh/feature_extraction/feature_calculators.py b/tsfresh/feature_extraction/feature_calculators.py
index 5882882..d216254 100644
--- a/tsfresh/feature_extraction/feature_calculators.py
+++ b/tsfresh/feature_extraction/feature_calculators.py
@@ -587,6 +587,92 @@ def first_location_of_minimum(x):
ret... | Add feature class: Count/Percentage same value
I had an idea for a class of features.
1. percentage of data points that occur at least second time
2. sum of data points that occur at least second time
3. percentage of observed values that occur at lest second time
... | blue-yonder/tsfresh | diff --git a/tests/feature_extraction/test_feature_calculations.py b/tests/feature_extraction/test_feature_calculations.py
index e33c376..32cb43f 100644
--- a/tests/feature_extraction/test_feature_calculations.py
+++ b/tests/feature_extraction/test_feature_calculations.py
@@ -258,6 +258,34 @@ class FeatureCalculationTe... | {
"commit_name": "merge_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.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>=3.0.2",
"pytest-cov>=2.3.1",
"pytest-xdist>=1.15.0"
],
"pre_install": [
"apt-get update",
"apt-g... | attrs==22.2.0
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==6.2
execnet==1.9.0
future==1.0.0
idna==3.10
importlib-metadata==4.8.3
iniconfig==1.1.1
joblib==1.1.1
numpy==1.19.5
packaging==21.3
pandas==1.1.5
patsy==1.0.1
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
pytest-cov==4.0.0
pytest-xdist==3.0.... | name: tsfresh
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... | [
"tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_ratio_of_doubled_values",
"tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_percentage_of_doubled_datapoints",
"tests/feature_extraction/test_feature_calculations.py::FeatureCalculatio... | [] | [
"tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_count_above_mean",
"tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_autocorrelation",
"tests/feature_extraction/test_feature_calculations.py::FeatureCalculationTestCase::test_count_be... | [] | MIT License | 857 | 1,045 | [
"tsfresh/feature_extraction/feature_calculators.py"
] |
clld__clldutils-20 | cebffac35a42bde46fcd32d2db4a0fd5464968a3 | 2016-11-17 10:27:59 | 54679df634b93870ea9fec722a56b75e72017645 | diff --git a/clldutils/misc.py b/clldutils/misc.py
index 7979814..c97f5b3 100644
--- a/clldutils/misc.py
+++ b/clldutils/misc.py
@@ -9,9 +9,6 @@ from string import ascii_letters
from six import PY3, string_types, text_type, binary_type
-# FIXME: add: badge, Stats
-
-
def nfilter(seq):
"""Replacement for pyth... | context manager to temporarily adapt `sys.path`
For several projects we want to be able to import custom code not within a python package. The most convenient (and portable) way to this seems to be via a context manager, adapting `sys.path` appropriately:
```python
@contextmanager
def with_sys_path(d):
p = d.as... | clld/clldutils | diff --git a/clldutils/tests/test_path.py b/clldutils/tests/test_path.py
index ac10a6d..e208515 100644
--- a/clldutils/tests/test_path.py
+++ b/clldutils/tests/test_path.py
@@ -14,6 +14,21 @@ class Tests(WithTempDir):
fp.write('test')
return path
+ def test_import_module(self):
+ from ... | {
"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
} | 1.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": [
"nose",
"coverage",
"pytest"
],
"pre_install": null,
"python": "3.9",
"reqs_path": [
"requirements.t... | -e git+https://github.com/clld/clldutils.git@cebffac35a42bde46fcd32d2db4a0fd5464968a3#egg=clldutils
configparser==7.2.0
coverage==7.8.0
exceptiongroup==1.2.2
iniconfig==2.1.0
nose==1.3.7
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
python-dateutil==2.9.0.post0
six==1.17.0
tabulate==0.9.0
tomli==2.2.1
| name: clldutils
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... | [
"clldutils/tests/test_path.py::Tests::test_import_module"
] | [] | [
"clldutils/tests/test_path.py::Tests::test_TemporaryDirectory",
"clldutils/tests/test_path.py::Tests::test_as_posix",
"clldutils/tests/test_path.py::Tests::test_copy",
"clldutils/tests/test_path.py::Tests::test_copytree",
"clldutils/tests/test_path.py::Tests::test_git_describe",
"clldutils/tests/test_path... | [] | Apache License 2.0 | 858 | 406 | [
"clldutils/misc.py",
"clldutils/path.py"
] | |
beetbox__beets-2270 | 02bd7946c1f6dd84e0fd28d152f4bca5c09d9e0a | 2016-11-18 00:14:15 | 02bd7946c1f6dd84e0fd28d152f4bca5c09d9e0a | diff --git a/beets/mediafile.py b/beets/mediafile.py
index 87a9d10a6..7d1b07280 100644
--- a/beets/mediafile.py
+++ b/beets/mediafile.py
@@ -920,7 +920,16 @@ class MP3ImageStorageStyle(ListStorageStyle, MP3StorageStyle):
frame.data = image.data
frame.mime = image.mime_type
frame.desc = image.... | MediaFile: use older text encodings in ID3v2.3 mode
I am trying to create an auto-tagging configuration in which my tags are saved in ID3v2.3 (as 2.4 lacks compatibility with some players I use) and I like the cover art to be embedded in each music file. However, the cover art of the output files is not recognised by O... | beetbox/beets | diff --git a/test/test_mediafile_edge.py b/test/test_mediafile_edge.py
index 0be177699..ae758f142 100644
--- a/test/test_mediafile_edge.py
+++ b/test/test_mediafile_edge.py
@@ -19,6 +19,7 @@ from __future__ import division, absolute_import, print_function
import os
import shutil
+import mutagen.id3
from test imp... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 0
},
"num_modified_files": 1
} | 1.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",
"nose",
"nose-show-skipped",
"coverage",
"responses"
],
"pre_install": [
"apt-get upda... | -e git+https://github.com/beetbox/beets.git@02bd7946c1f6dd84e0fd28d152f4bca5c09d9e0a#egg=beets
certifi==2025.1.31
charset-normalizer==3.4.1
coverage==7.8.0
exceptiongroup==1.2.2
idna==3.10
iniconfig==2.1.0
jellyfish==1.1.3
munkres==1.1.4
musicbrainzngs==0.7.1
mutagen==1.47.0
nose==1.3.7
nose-show-skipped==0.1
packaging... | name: beets
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/test_mediafile_edge.py::ID3v23Test::test_image_encoding"
] | [] | [
"test/test_mediafile_edge.py::EdgeTest::test_discc_alternate_field",
"test/test_mediafile_edge.py::EdgeTest::test_emptylist",
"test/test_mediafile_edge.py::EdgeTest::test_old_ape_version_bitrate",
"test/test_mediafile_edge.py::EdgeTest::test_only_magic_bytes_jpeg",
"test/test_mediafile_edge.py::EdgeTest::te... | [] | MIT License | 859 | 227 | [
"beets/mediafile.py"
] | |
dask__dask-1799 | 7aa13ca969fde27ab4b81ed6926ef72f1358f11b | 2016-11-21 13:46:08 | aff7284671c9e3d443cec3a07855cafabeba8fc5 | diff --git a/dask/array/ufunc.py b/dask/array/ufunc.py
index c107a2880..90ac357bb 100644
--- a/dask/array/ufunc.py
+++ b/dask/array/ufunc.py
@@ -17,15 +17,16 @@ def __array_wrap__(numpy_ufunc, x, *args, **kwargs):
def wrap_elemwise(numpy_ufunc, array_wrap=False):
""" Wrap up numpy function into dask.array """
-... | BUG: dask.array.maximum can trigger eager evaluation
The failure case seems to be `maximum(scalar, dask_array)`:
```
In [1]: import dask.array as da
In [2]: x = da.ones((3,), chunks=(3,))
In [3]: da.maximum(0, x)
Out[3]: array([ 1., 1., 1.])
In [4]: da.maximum(x, 0)
Out[4]: dask.array<maximum..., shape=(... | dask/dask | diff --git a/dask/array/tests/test_ufunc.py b/dask/array/tests/test_ufunc.py
index 229c3e8c6..ac85d2cd4 100644
--- a/dask/array/tests/test_ufunc.py
+++ b/dask/array/tests/test_ufunc.py
@@ -75,6 +75,19 @@ def test_ufunc_2args(ufunc):
assert isinstance(dafunc(arr1, arr2), np.ndarray)
assert_eq(dafunc(arr1, arr2... | {
"commit_name": "merge_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
} | 1.14 | {
"env_vars": null,
"env_yml_path": null,
"install": "pip install -e .[complete]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "pytest",
"pip_packages": [
"pytest",
"coverage",
"flake8",
"moto"
],
"pre_install": [
"apt-get update",
"apt-get install -y grap... | aiobotocore==2.1.2
aiohttp==3.8.6
aioitertools==0.11.0
aiosignal==1.2.0
async-timeout==4.0.2
asynctest==0.13.0
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
boto3==1.23.10
botocore==1.23.24
certifi==2021.5.30
cffi==1.15.1
charset-normalizer==2.0.12
click==8.0.4
cloudpickle==2.2.1
coverage==6.2
cryptograp... | 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
- attrs=21.4.0=pyhd3eb1b0_0
- ca-certificates=2025.2.25=h06a4308_0
- certifi=2021.5.30=py36h06a4308_0
- importlib_me... | [
"dask/array/tests/test_ufunc.py::test_ufunc_2args[logaddexp]",
"dask/array/tests/test_ufunc.py::test_ufunc_2args[logaddexp2]",
"dask/array/tests/test_ufunc.py::test_ufunc_2args[arctan2]",
"dask/array/tests/test_ufunc.py::test_ufunc_2args[hypot]",
"dask/array/tests/test_ufunc.py::test_ufunc_2args[copysign]",... | [
"dask/array/tests/test_ufunc.py::test_complex[isreal]",
"dask/array/tests/test_ufunc.py::test_complex[real]",
"dask/array/tests/test_ufunc.py::test_complex[imag]"
] | [
"dask/array/tests/test_ufunc.py::test_ufunc_meta",
"dask/array/tests/test_ufunc.py::test_ufunc[conj]",
"dask/array/tests/test_ufunc.py::test_ufunc[exp]",
"dask/array/tests/test_ufunc.py::test_ufunc[log]",
"dask/array/tests/test_ufunc.py::test_ufunc[log2]",
"dask/array/tests/test_ufunc.py::test_ufunc[log10... | [] | BSD 3-Clause "New" or "Revised" License | 865 | 347 | [
"dask/array/ufunc.py"
] | |
jmcnamara__XlsxWriter-396 | 7a48769abe7e68c0f3729c4f7c951ad5ca9a0bf8 | 2016-11-22 18:13:23 | 46ba2b5453f6df3b1a29eda73d6bd66aed8c7746 | diff --git a/xlsxwriter/worksheet.py b/xlsxwriter/worksheet.py
index 3e63ea53..dbe8e63e 100644
--- a/xlsxwriter/worksheet.py
+++ b/xlsxwriter/worksheet.py
@@ -1880,6 +1880,8 @@ class Worksheet(xmlwriter.XMLwriter):
'min_color': True,
'mid_color': True,
'max_color': True,
+ ... | Feature Request: Add minLength and maxLength to dataBar attributes
Attributes minLength and maxLength determine maximum and minimum histogram length in percentage of cell width. Currently those attributes are not set. Default values are 10 and 90 percent. It would be useful to have possibility of setting them manually.... | jmcnamara/XlsxWriter | diff --git a/xlsxwriter/test/worksheet/test_cond_format21.py b/xlsxwriter/test/worksheet/test_cond_format21.py
new file mode 100644
index 00000000..4428b18e
--- /dev/null
+++ b/xlsxwriter/test/worksheet/test_cond_format21.py
@@ -0,0 +1,141 @@
+############################################################################... | {
"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.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.5",
"reqs_path": null,
"test_cmd": "pytest --no-header -rA --tb=line --color=no... | 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: XlsxWriter
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... | [
"xlsxwriter/test/worksheet/test_cond_format21.py::TestAssembleWorksheet::test_assemble_xml_file"
] | [] | [] | [] | BSD 2-Clause "Simplified" License | 868 | 291 | [
"xlsxwriter/worksheet.py"
] | |
Azure__azure-cli-1423 | c56c791d01985f1209d30849b55922d1adac85b5 | 2016-11-23 01:05:31 | 1576ec67f5029db062579da230902a559acbb9fe | mention-bot: @brendandburns, thanks for your PR! By analyzing the history of the files in this pull request, we identified @yugangw-msft, @tjprescott and @derekbekoe to be potential reviewers.
tjprescott: @brendandburns this issue applies more generally to the CLI. See issue #1419. I think it can fixed more generally b... | diff --git a/src/azure-cli-core/azure/cli/core/application.py b/src/azure-cli-core/azure/cli/core/application.py
index 0bc115f74..caab463a1 100644
--- a/src/azure-cli-core/azure/cli/core/application.py
+++ b/src/azure-cli-core/azure/cli/core/application.py
@@ -6,6 +6,7 @@
from collections import defaultdict
import sy... | CLI inconsistency -- to specify a parameters file, one must not use equal sign
If you use an equal sign between --parameters and the actual file path, you end up with the following:
```
az resource group deployment create --resource-group=jmsdcosrg --template-file=./output/azuredeploy.json --parameters="@./output/a... | Azure/azure-cli | diff --git a/src/azure-cli-core/azure/cli/core/tests/test_application.py b/src/azure-cli-core/azure/cli/core/tests/test_application.py
index aef479668..252fd558a 100644
--- a/src/azure-cli-core/azure/cli/core/tests/test_application.py
+++ b/src/azure-cli-core/azure/cli/core/tests/test_application.py
@@ -5,10 +5,14 @@
... | {
"commit_name": "merge_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": 0
},
"num_modified_files": 2
} | 0.1 | {
"env_vars": null,
"env_yml_path": null,
"install": "python scripts/dev_setup.py",
"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 libssl-dev libffi-dev"
],
"... | adal==0.4.3
applicationinsights==0.10.0
argcomplete==1.3.0
astroid==1.4.9
attrs==22.2.0
-e git+https://github.com/Azure/azure-cli.git@c56c791d01985f1209d30849b55922d1adac85b5#egg=azure_cli&subdirectory=src/azure-cli
-e git+https://github.com/Azure/azure-cli.git@c56c791d01985f1209d30849b55922d1adac85b5#egg=azure_cli_acr... | name: azure-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
- certifi=2021.5.30=py36h06a4308_0
- ld_impl_linux-64=2.40=h12ee557_0
- ... | [
"src/azure-cli-core/azure/cli/core/tests/test_application.py::TestApplication::test_expand_file_prefixed_files"
] | [] | [
"src/azure-cli-core/azure/cli/core/tests/test_application.py::TestApplication::test_application_register_and_call_handlers",
"src/azure-cli-core/azure/cli/core/tests/test_application.py::TestApplication::test_list_value_parameter"
] | [] | MIT License | 869 | 730 | [
"src/azure-cli-core/azure/cli/core/application.py",
"src/command_modules/azure-cli-appservice/azure/cli/command_modules/appservice/_params.py"
] |
cdent__gabbi-191 | 07dc4913eb980dd4a4a6130abfd708a39235d7f2 | 2016-11-27 14:39:00 | 07dc4913eb980dd4a4a6130abfd708a39235d7f2 | diff --git a/gabbi/runner.py b/gabbi/runner.py
index ac98dea..9f45351 100644
--- a/gabbi/runner.py
+++ b/gabbi/runner.py
@@ -14,6 +14,7 @@
import argparse
from importlib import import_module
+import os
import sys
import unittest
@@ -84,8 +85,9 @@ def run():
else:
for input_file in input_files:
... | Data <@filename isn't relative to the YAML file
The [docs say](https://gabbi.readthedocs.io/en/latest/format.html#data):
> If the value is a string that begins with <@ then the rest of the string is treated as the name of a file to be loaded from the same directory as the YAML file.
But I haven't found it works ... | cdent/gabbi | diff --git a/gabbi/tests/gabbits_runner/subdir/sample.json b/gabbi/tests/gabbits_runner/subdir/sample.json
new file mode 100644
index 0000000..ddbce20
--- /dev/null
+++ b/gabbi/tests/gabbits_runner/subdir/sample.json
@@ -0,0 +1,1 @@
+{"items": {"house": "blue"}}
diff --git a/gabbi/tests/gabbits_runner/test_data.yaml b/... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"has_hyperlinks",
"has_media",
"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
} | 1.28 | {
"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",
"testrepository",
"coverage",
"hacking",
"sphinx"
],
"pre_install": null,
"python... | alabaster==0.7.13
attrs==22.2.0
Babel==2.11.0
certifi==2021.5.30
charset-normalizer==2.0.12
colorama==0.4.5
coverage==6.2
decorator==5.1.1
docutils==0.18.1
extras==1.0.0
fixtures==4.0.1
flake8==3.8.4
-e git+https://github.com/cdent/gabbi.git@07dc4913eb980dd4a4a6130abfd708a39235d7f2#egg=gabbi
hacking==4.1.0
idna==3.10
i... | 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_runner.py::RunnerTest::test_data_dir_good"
] | [] | [
"gabbi/tests/test_runner.py::RunnerTest::test_custom_response_handler",
"gabbi/tests/test_runner.py::RunnerTest::test_exit_code",
"gabbi/tests/test_runner.py::RunnerTest::test_input_files",
"gabbi/tests/test_runner.py::RunnerTest::test_target_url_parsing",
"gabbi/tests/test_runner.py::RunnerTest::test_targe... | [] | Apache License 2.0 | 875 | 392 | [
"gabbi/runner.py"
] | |
dask__zict-13 | 4621b4c40456b3dd00eab9ce8e9d3742b080833c | 2016-11-28 13:35:08 | 4621b4c40456b3dd00eab9ce8e9d3742b080833c | diff --git a/zict/file.py b/zict/file.py
index c561471..0b45752 100644
--- a/zict/file.py
+++ b/zict/file.py
@@ -3,9 +3,9 @@ from __future__ import absolute_import, division, print_function
import errno
import os
try:
- from urllib.parse import quote
+ from urllib.parse import quote, unquote
except ImportErro... | File.__contains__ is slow
It is convenient in Dask to frequently check if a key is present in the `.data` dictionary. Unfortunately this is slow, due to calls to both `os.path.exists` and `_safe_key`. | dask/zict | diff --git a/zict/tests/test_file.py b/zict/tests/test_file.py
index d88d90b..62fe887 100644
--- a/zict/tests/test_file.py
+++ b/zict/tests/test_file.py
@@ -90,6 +90,19 @@ def test_arbitrary_chars(fn):
z[key]
z[key] = b'foo'
assert z[key] == b'foo'
+ assert list(z) == [key]
+ ... | {
"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": 1
},
"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": null,
"python": "3.9",
"reqs_path": [
"requirements.txt"
],
"test_cmd": "pytest --... | exceptiongroup==1.2.2
HeapDict==1.0.1
iniconfig==2.1.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
tomli==2.2.1
-e git+https://github.com/dask/zict.git@4621b4c40456b3dd00eab9ce8e9d3742b080833c#egg=zict
| name: zict
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... | [
"zict/tests/test_file.py::test_arbitrary_chars"
] | [] | [
"zict/tests/test_file.py::test_mapping",
"zict/tests/test_file.py::test_implementation",
"zict/tests/test_file.py::test_str",
"zict/tests/test_file.py::test_setitem_typeerror",
"zict/tests/test_file.py::test_contextmanager",
"zict/tests/test_file.py::test_delitem",
"zict/tests/test_file.py::test_missing... | [] | BSD 3-Clause "New" or "Revised" License | 879 | 773 | [
"zict/file.py"
] | |
bear__python-twitter-416 | ae88240b902d857ba099dfd17f820e640c67557d | 2016-11-28 14:30:54 | c28e9fb02680f30c9c56019f6836c2b47fa1d73a | diff --git a/twitter/__init__.py b/twitter/__init__.py
index 87bb718..0534776 100644
--- a/twitter/__init__.py
+++ b/twitter/__init__.py
@@ -23,7 +23,7 @@ __author__ = 'The Python-Twitter Developers'
__email__ = 'python-twitter@googlegroups.com'
__copyright__ = 'Copyright (c) 2007-2016 The Python-Twit... | calc_expected_status_length does not work
calc_expected_status_length is broken in two ways right now.
1. URL_REGEXP only recognizes URLs at the start of a string, which is correct for is_url, but for calc_expected_status_length, all URLs should be detected, not just URLs at the start of the tweet. There should be ... | bear/python-twitter | diff --git a/tests/test_twitter_utils.py b/tests/test_twitter_utils.py
index 3ca619f..b021e34 100644
--- a/tests/test_twitter_utils.py
+++ b/tests/test_twitter_utils.py
@@ -5,6 +5,7 @@ import unittest
import twitter
from twitter.twitter_utils import (
+ calc_expected_status_length,
parse_media_file
)
@@ ... | {
"commit_name": "head_commit",
"failed_lite_validators": [
"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": 0
},
"num_modified_files": 2
} | 3.2 | {
"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.9",
"reqs_path": [
"requirements.txt",
"... | build==1.2.2.post1
cachetools==5.5.2
certifi==2025.1.31
chardet==5.2.0
charset-normalizer==3.4.1
check-manifest==0.50
codecov==2.1.13
colorama==0.4.6
coverage==7.8.0
coveralls==4.0.1
distlib==0.3.9
docopt==0.6.2
exceptiongroup==1.2.2
filelock==3.18.0
future==1.0.0
idna==3.10
importlib_metadata==8.6.1
iniconfig==2.1.0
m... | name: python-twitter
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
- libg... | [
"tests/test_twitter_utils.py::ApiTest::test_calc_expected_status_length_with_url",
"tests/test_twitter_utils.py::ApiTest::test_calc_expected_status_length_with_url_and_extra_spaces"
] | [] | [
"tests/test_twitter_utils.py::ApiTest::test_calc_expected_status_length",
"tests/test_twitter_utils.py::ApiTest::test_parse_media_file_fileobj",
"tests/test_twitter_utils.py::ApiTest::test_parse_media_file_http",
"tests/test_twitter_utils.py::ApiTest::test_parse_media_file_local_file",
"tests/test_twitter_u... | [] | Apache License 2.0 | 880 | 435 | [
"twitter/__init__.py",
"twitter/twitter_utils.py"
] | |
tableau__server-client-python-109 | e853d7c79f54f232c9f1da07f6c085db399e598a | 2016-12-02 04:38:26 | e853d7c79f54f232c9f1da07f6c085db399e598a | diff --git a/tableauserverclient/models/user_item.py b/tableauserverclient/models/user_item.py
index 1e4f54a..2df6764 100644
--- a/tableauserverclient/models/user_item.py
+++ b/tableauserverclient/models/user_item.py
@@ -119,7 +119,7 @@ class UserItem(object):
@classmethod
def from_response(cls, resp):
- ... | Pager with users throws TypeError
I am trying to extract the list of users using the Pager:
`print(*TSC.Pager(tableau.users))`
I get the following error:
` File "metalab_users.py", line 74, in <module>
print(*tableau_users)
File "C:\Program Files\Python35\lib\site-packages\tableauserverclient\server\pag... | tableau/server-client-python | diff --git a/test/test_user.py b/test/test_user.py
index 556cd62..fa83443 100644
--- a/test/test_user.py
+++ b/test/test_user.py
@@ -54,7 +54,7 @@ class UserTests(unittest.TestCase):
all_users, pagination_item = self.server.users.get()
self.assertEqual(0, pagination_item.total_available)
- ... | {
"commit_name": "merge_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
} | 0.2 | {
"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-subtests",
"requests-mock"
],
"pre_install": [],
"python": "3.9",
"... | attrs==25.3.0
certifi==2025.1.31
charset-normalizer==3.4.1
coverage==7.8.0
exceptiongroup==1.2.2
idna==3.10
iniconfig==2.1.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
pytest-cov==6.0.0
pytest-subtests==0.14.1
requests==2.11.1
requests-mock==1.12.1
-e git+https://github.com/tableau/server-client-python.git@e853d7c79f5... | name: server-client-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
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
... | [
"test/test_user.py::UserTests::test_get_empty"
] | [] | [
"test/test_user.py::UserTests::test_add",
"test/test_user.py::UserTests::test_get",
"test/test_user.py::UserTests::test_get_before_signin",
"test/test_user.py::UserTests::test_get_by_id",
"test/test_user.py::UserTests::test_get_by_id_missing_id",
"test/test_user.py::UserTests::test_populate_workbooks",
... | [] | MIT License | 883 | 243 | [
"tableauserverclient/models/user_item.py"
] | |
pre-commit__pre-commit-449 | 0e2c3c1ff9b2f870ca00f2cc45c515101b6f96fe | 2016-12-04 21:31:45 | 8837cfa7ffcc419216d4e01392cee0f1ceee9c88 | diff --git a/pre_commit/languages/pcre.py b/pre_commit/languages/pcre.py
index faba1da..314ea09 100644
--- a/pre_commit/languages/pcre.py
+++ b/pre_commit/languages/pcre.py
@@ -1,11 +1,12 @@
from __future__ import unicode_literals
-from sys import platform
+import sys
from pre_commit.xargs import xargs
ENVIR... | PCRE passes even if ggrep is not installed on OS X
I was scratching my head because some hooks were passing even though they should clearly have failed.
When running `run --all-files` with the `--verbose` flag, I noticed why this was happening:
````
[do_not_commit] Block if "DO NOT COMMIT" is found................. | pre-commit/pre-commit | diff --git a/tests/repository_test.py b/tests/repository_test.py
index 79400ae..f61ee88 100644
--- a/tests/repository_test.py
+++ b/tests/repository_test.py
@@ -12,11 +12,13 @@ import pkg_resources
import pytest
from pre_commit import five
+from pre_commit import parse_shebang
from pre_commit.clientlib.validate_co... | {
"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": 4
} | 0.9 | {
"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... | aspy.yaml==1.3.0
attrs==25.3.0
cached-property==2.0.1
coverage==7.8.0
distlib==0.3.9
exceptiongroup==1.2.2
filelock==3.18.0
flake8==7.2.0
iniconfig==2.1.0
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
mccabe==0.7.0
mock==5.2.0
nodeenv==1.9.1
packaging==24.2
platformdirs==4.3.7
pluggy==1.5.0
-e git+https://git... | 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
- ld_impl_linux-64=2.40=h12ee557_0
- libffi=3.4.4=h6a678d5_1
- libgcc-n... | [
"tests/util_test.py::test_cmd_output_exe_not_found",
"tests/xargs_test.py::test_xargs_negate_command_not_found"
] | [
"tests/repository_test.py::test_python_hook",
"tests/repository_test.py::test_python_hook_args_with_spaces",
"tests/repository_test.py::test_python_hook_weird_setup_cfg",
"tests/repository_test.py::test_switch_language_versions_doesnt_clobber",
"tests/repository_test.py::test_versioned_python_hook",
"test... | [
"tests/repository_test.py::test_repo_url",
"tests/repository_test.py::test_sha",
"tests/repository_test.py::test_local_repository",
"tests/util_test.py::test_memoized_by_cwd_returns_same_twice_in_a_row",
"tests/util_test.py::test_memoized_by_cwd_returns_different_for_different_args",
"tests/util_test.py::... | [] | MIT License | 887 | 913 | [
"pre_commit/languages/pcre.py",
"pre_commit/parse_shebang.py",
"pre_commit/util.py",
"pre_commit/xargs.py"
] | |
joblib__joblib-444 | aab21b654e853616b31c6e50255b2dcf47af5818 | 2016-12-07 09:55:10 | 4650f03703b853c50672dabb64bef170b55a12f7 | lesteve: For the record, an excerpt of the output from the snippet in #420 (on this PR):
```
---------------------------------------------------------------------------
Sub-process traceback:
---------------------------------------------------------------------------
ZeroDivisionError ... | diff --git a/joblib/format_stack.py b/joblib/format_stack.py
index 3f3d106..4be93c1 100644
--- a/joblib/format_stack.py
+++ b/joblib/format_stack.py
@@ -135,15 +135,10 @@ def _fixed_getframes(etb, context=1, tb_offset=0):
aux = traceback.extract_tb(etb)
assert len(records) == len(aux)
for i, (file, lnum,... | Wrong line pointed to in subprocess traceback
test.py
```py
from test_module import exception_on_even
from joblib import Parallel, delayed
if __name__ == '__main__':
Parallel(n_jobs=2)(delayed(exception_on_even)(x) for x in [1, 2, 3])
```
test_module.py
```py
def exception_on_even(x):
if x % 2 =... | joblib/joblib | diff --git a/joblib/test/test_format_stack.py b/joblib/test/test_format_stack.py
index 32fc8f5..baa8076 100644
--- a/joblib/test/test_format_stack.py
+++ b/joblib/test/test_format_stack.py
@@ -6,6 +6,8 @@ Unit tests for the stack formatting utilities
# Copyright (c) 2010 Gael Varoquaux
# License: BSD Style, 3 clauses... | {
"commit_name": "merge_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.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": [
"numpy>=1.6.1",
"pytest",
"pytest-cov"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"pytho... | coverage==7.8.0
exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
-e git+https://github.com/joblib/joblib.git@aab21b654e853616b31c6e50255b2dcf47af5818#egg=joblib
numpy==2.0.2
packaging @ file:///croot/packaging_1734472117206/work
plu... | 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
- exceptiongroup=1.2.0=py39h06a4308_0
- iniconfig=1.1.1=pyhd3eb1b0_0
- ld_i... | [
"joblib/test/test_format_stack.py::test_format_records_file_with_less_lines_than_context"
] | [] | [
"joblib/test/test_format_stack.py::test_safe_repr",
"joblib/test/test_format_stack.py::test_format_records",
"joblib/test/test_format_stack.py::test_format_exc_with_compiled_code"
] | [] | BSD 3-Clause "New" or "Revised" License | 891 | 531 | [
"joblib/format_stack.py"
] |
repoze__repoze.sendmail-38 | af9b7db732bf7ee0edb956c05b5c7b7818e31d64 | 2016-12-07 17:28:30 | af9b7db732bf7ee0edb956c05b5c7b7818e31d64 | mmerickel: I'll try in the next half hour here to see if I can reproduce the old error and then upgrade to see if this patch fixes it. Thanks. | diff --git a/repoze/sendmail/delivery.py b/repoze/sendmail/delivery.py
index 59115d7..28b7cf4 100644
--- a/repoze/sendmail/delivery.py
+++ b/repoze/sendmail/delivery.py
@@ -102,6 +102,7 @@ class MailDataManager(object):
if self.transaction is None:
raise ValueError("Not in a transaction")
... | MailDataManager breaks the transaction manager upon abort
I have some code sending emails and for legitimate reasons the email is rejected by the remote server. I want to log the exception but instead I see the `ValueError('TPC in progress')` a couple times in the output, squashing the error.
It's actually causing the... | repoze/repoze.sendmail | diff --git a/repoze/sendmail/tests/test_delivery.py b/repoze/sendmail/tests/test_delivery.py
index 9776943..fe5ef6f 100644
--- a/repoze/sendmail/tests/test_delivery.py
+++ b/repoze/sendmail/tests/test_delivery.py
@@ -79,6 +79,7 @@ class TestMailDataManager(unittest.TestCase):
mdm.join_transaction(txn)
... | {
"commit_name": "head_commit",
"failed_lite_validators": [],
"has_test_patch": true,
"is_lite": true,
"llm_score": {
"difficulty_score": 1,
"issue_text_score": 2,
"test_score": 0
},
"num_modified_files": 1
} | 4.2 | {
"env_vars": null,
"env_yml_path": [],
"install": "pip install -e .[testing]",
"log_parser": "parse_log_pytest",
"no_use_env": null,
"packages": "setuptools zope.interface>=3.6.0 transaction",
"pip_packages": [
"pytest"
],
"pre_install": [],
"python": "3.5",
"reqs_path": [],
"test_cmd": "py... | attrs==22.2.0
certifi==2021.5.30
coverage==6.2
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
-e git+https://github.com/repoze/repoze.sendmail.git@af9b7db732bf7ee0edb956c05b5c7b7818e31d64#egg=repoze.sendmail
tomli==1.2.3
transaction==3.0.1
... | name: repoze.sendmail
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_... | [
"repoze/sendmail/tests/test_delivery.py::TestMailDataManager::test_tpc_abort_begun_ok",
"repoze/sendmail/tests/test_delivery.py::TestMailDataManager::test_tpc_abort_voted_ok",
"repoze/sendmail/tests/test_delivery.py::TestMailDataManager::test_tpc_finish_ok"
] | [] | [
"repoze/sendmail/tests/test_delivery.py::TestMailDataManager::test__finish_w_transaction",
"repoze/sendmail/tests/test_delivery.py::TestMailDataManager::test__finish_wo_transaction",
"repoze/sendmail/tests/test_delivery.py::TestMailDataManager::test_abort_w_TPC",
"repoze/sendmail/tests/test_delivery.py::TestM... | [] | null | 893 | 134 | [
"repoze/sendmail/delivery.py"
] |
praekeltfoundation__pydexec-8 | ee5bed66d25dea943735cd5d5c05947d7623fecf | 2016-12-12 14:42:13 | ee5bed66d25dea943735cd5d5c05947d7623fecf | diff --git a/pydexec/command.py b/pydexec/command.py
index b2ba787..85478c7 100644
--- a/pydexec/command.py
+++ b/pydexec/command.py
@@ -12,6 +12,7 @@ class Command(object):
self._args = []
self._user = None
self._env = dict(os.environ)
+ self._workdir = os.getcwd()
def args(sel... | Change working directory | praekeltfoundation/pydexec | diff --git a/pydexec/tests/test_command.py b/pydexec/tests/test_command.py
index 31b4f15..e72decc 100644
--- a/pydexec/tests/test_command.py
+++ b/pydexec/tests/test_command.py
@@ -1,12 +1,14 @@
# -*- coding: utf-8 -*-
+import multiprocessing
import os
-from multiprocessing import Process
+import sys
+import tracebac... | {
"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": 3
},
"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": [
"pytest"
],
"pre_install": [
"apt-get update",
"apt-get install -y gcc"
],
"python": "3.9",
"reqs_path... | coverage==7.8.0
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
-e git+https://github.com/praekeltfoundation/pydexec.git@ee5bed66d25dea943735cd5d5c05947d7623fecf#egg=pydexec
pyflakes==3.3.1
pytest==8.3.5
pytest-cov==6.0.0
pytest-cover==3.0.0
pytest-co... | name: pydexec
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... | [
"pydexec/tests/test_command.py::TestCommand::test_workdir_changes_directory[run_cmd]",
"pydexec/tests/test_command.py::TestCommand::test_workdir_set_at_command_creation[run_cmd]",
"pydexec/tests/test_command.py::TestCommand::test_workdir_does_not_exist_exec[run_cmd]",
"pydexec/tests/test_command.py::TestComma... | [] | [
"pydexec/tests/test_command.py::TestCommand::test_stdout[run_cmd]",
"pydexec/tests/test_command.py::TestCommand::test_stderr[run_cmd]",
"pydexec/tests/test_command.py::TestCommand::test_output_unicode[run_cmd]",
"pydexec/tests/test_command.py::TestCommand::test_error[run_cmd]",
"pydexec/tests/test_command.p... | [
"pydexec/tests/test_command.py::TestCommand::test_switch_user[exec_cmd]",
"pydexec/tests/test_command.py::TestCommand::test_switch_user_preserves_environment[exec_cmd]"
] | BSD 3-Clause "New" or "Revised" License | 899 | 507 | [
"pydexec/command.py"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.