instance_id
stringlengths
10
57
base_commit
stringlengths
40
40
created_at
stringdate
2014-04-30 14:58:36
2025-04-30 20:14:11
environment_setup_commit
stringlengths
40
40
hints_text
stringlengths
0
273k
patch
stringlengths
251
7.06M
problem_statement
stringlengths
11
52.5k
repo
stringlengths
7
53
test_patch
stringlengths
231
997k
meta
dict
version
stringclasses
864 values
install_config
dict
requirements
stringlengths
93
34.2k
environment
stringlengths
760
20.5k
FAIL_TO_PASS
listlengths
1
9.39k
FAIL_TO_FAIL
listlengths
0
2.69k
PASS_TO_PASS
listlengths
0
7.87k
PASS_TO_FAIL
listlengths
0
192
license_name
stringclasses
56 values
docker_image
stringlengths
42
89
image_name
stringlengths
42
89
AVEgame__AVE-96
8aad627bf790ca8e452426d7fba5d74ecb75f0a3
2020-07-03 19:42:28
f7eb0efebe81657e15d91310c132658859195ff6
diff --git a/.gitignore b/.gitignore index cd234b2..3e2b7e2 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ build dist +gamelist.json diff --git a/ave/__main__.py b/ave/__main__.py index 5d8e0ad..971ab74 100644 --- a/ave/__main__.py +++ b/ave/__main__.py @@ -1,10 +1,33 @@ """Functions to run AVE.""" +im...
Create a built in games manifest We should have a JSON manifest of all built in games constructed before each release. This manifest could then be read to determine the default games on the menu. A similar strategy could be used for games hosted online. Each time a game is uploaded, it is added to the online manifes...
AVEgame/AVE
diff --git a/test/test_games.py b/test/test_games.py index d00a9a5..4eb5cfe 100755 --- a/test/test_games.py +++ b/test/test_games.py @@ -23,7 +23,7 @@ def test_version_checking(filename): except exceptions.AVEVersionError: pass - ave = AVE(start_screen=False) + ave = AVE() ave.load_games("tes...
{ "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": 2, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 7 }
1.3
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path": [ ...
-e git+https://github.com/AVEgame/AVE.git@8aad627bf790ca8e452426d7fba5d74ecb75f0a3#egg=avegame exceptiongroup==1.2.2 iniconfig==2.1.0 packaging==24.2 pluggy==1.5.0 pytest==8.3.5 tomli==2.2.1
name: AVE 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....
[ "test/test_games.py::test_version_checking[/AVE/test/../test/games/hidden_test.ave]", "test/test_games.py::test_first_room[/AVE/test/../games/test.ave]", "test/test_games.py::test_first_room[/AVE/test/../games/tea.ave]", "test/test_games.py::test_first_room[/AVE/test/../games/make.ave]", "test/test_games.py...
[ "test/test_games.py::test_game_library", "test/test_games.py::test_load_game_from_library" ]
[ "test/test_games.py::test_all_rooms_acessible[/AVE/test/../games/test.ave]", "test/test_games.py::test_all_rooms_acessible[/AVE/test/../games/tea.ave]", "test/test_games.py::test_all_rooms_acessible[/AVE/test/../games/make.ave]", "test/test_games.py::test_all_rooms_acessible[/AVE/test/../games/Moscow.ave]", ...
[]
MIT License
null
null
Aarhus-Psychiatry-Research__timeseriesflattener-106
c1a3947a2e1993aa336075856021d009f8a11ad8
2023-01-30 14:50:36
c1a3947a2e1993aa336075856021d009f8a11ad8
diff --git a/src/timeseriesflattener/feature_spec_objects.py b/src/timeseriesflattener/feature_spec_objects.py index 5315137..5f2682f 100644 --- a/src/timeseriesflattener/feature_spec_objects.py +++ b/src/timeseriesflattener/feature_spec_objects.py @@ -23,7 +23,7 @@ log = logging.getLogger(__name__) @cache def load_d...
loader_kwargs in feature_spec_object classes loader_kwargs not specified as argument in all spec classes
Aarhus-Psychiatry-Research/timeseriesflattener
diff --git a/tests/test_timeseriesflattener/test_feature_spec_objects.py b/tests/test_timeseriesflattener/test_feature_spec_objects.py index 13b79f9..909e6ef 100644 --- a/tests/test_timeseriesflattener/test_feature_spec_objects.py +++ b/tests/test_timeseriesflattener/test_feature_spec_objects.py @@ -19,6 +19,7 @@ from ...
{ "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": 2, "issue_text_score": 1, "test_score": 2 }, "num_modified_files": 1 }
0.22
{ "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": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path": null, ...
anyio==3.7.1 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 attrs==25.3.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 catalogue==2.0.10 category-encoders==2.5.0 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 click==8.1.8 cloudpickle==3.1.1 coloredlogs==15.0.1 comm==0.2.2 commonmark==0.9.1 contourp...
name: timeseriesflattener 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...
[ "tests/test_timeseriesflattener/test_feature_spec_objects.py::test_predictorgroupspec_combinations_loader_kwargs" ]
[]
[ "tests/test_timeseriesflattener/test_feature_spec_objects.py::test_anyspec_init", "tests/test_timeseriesflattener/test_feature_spec_objects.py::test_loader_kwargs", "tests/test_timeseriesflattener/test_feature_spec_objects.py::test_invalid_multiple_data_args", "tests/test_timeseriesflattener/test_feature_spec...
[]
MIT License
null
null
Aarhus-Psychiatry-Research__timeseriesflattener-186
bb6a7fffb2a520272fcb5d7129957ce22484ff77
2023-04-19 20:33:34
bb6a7fffb2a520272fcb5d7129957ce22484ff77
diff --git a/.github/workflows/static_type_checks.yml b/.github/workflows/static_type_checks.yml index abf1bb5..620427d 100644 --- a/.github/workflows/static_type_checks.yml +++ b/.github/workflows/static_type_checks.yml @@ -32,7 +32,7 @@ jobs: uses: actions/setup-python@v4 id: setup_python w...
fix: change type hints in specs to allow for floats in interval_days Currenty, float inputs to interval_days args in predictor and outcome specs are coerced into integers. Thus, it is not possible to generate predictors/outcomes with non-integer lookbehind/ahead windows. - [ ] Add test
Aarhus-Psychiatry-Research/timeseriesflattener
diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index 9567555..abe4801 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -10,32 +10,26 @@ runs: using: "composite" steps: ### Setup prerequisites - - name: Cache venv + - name: Cache tox ...
{ "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": 0, "issue_text_score": 0, "test_score": 2 }, "num_modified_files": 4 }
0.23
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pygraphviz", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path": null, ...
appdirs==1.4.4 catalogue==2.0.10 certifi==2025.1.31 charset-normalizer==3.4.1 click==8.1.8 coloredlogs==15.0.1 dill==0.3.6 docker-pycreds==0.4.0 exceptiongroup==1.2.2 filelock==3.18.0 frozendict==2.3.10 fsspec==2025.3.2 gitdb==4.0.12 GitPython==3.1.44 greenlet==3.1.1 huggingface-hub==0.30.1 humanfriendly==10.0 idna==3....
name: timeseriesflattener 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 - atk-1.0=2.36.0=ha1a6a79_0 - boost-cpp=1.82.0=hdb19cb5_2 - bzip2=1.0.8=h5eee18b_6 - c-ares=1.19.1=h5...
[ "tests/test_timeseriesflattener/test_feature_spec_objects.py::test_lookbehind_days_handles_floats" ]
[]
[ "tests/test_timeseriesflattener/test_feature_spec_objects.py::test_anyspec_init", "tests/test_timeseriesflattener/test_feature_spec_objects.py::test_loader_kwargs", "tests/test_timeseriesflattener/test_feature_spec_objects.py::test_invalid_multiple_data_args", "tests/test_timeseriesflattener/test_feature_spec...
[]
MIT License
swerebench/sweb.eval.x86_64.aarhus-psychiatry-research_1776_timeseriesflattener-186
swerebench/sweb.eval.x86_64.aarhus-psychiatry-research_1776_timeseriesflattener-186
Aarhus-Psychiatry-Research__timeseriesflattener-26
4750a7a1d0a143a093a9eaf31d57052ccfb08427
2022-11-30 10:33:14
1e1ad30d9bd2d3bd2cd5779e713a287562425ac4
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 39d1132..f698334 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,4 +1,3 @@ -- [ ] I have battle-tested on Overtaci (RMAPPS1279) - [ ] I have assigned ranges (e.g. `>=0.1, <0.2`) to all new ...
re-add tokens for GitHub actions re-add tokens for GitHub actions. E.g. tokens for pytest, autopush to pypi and autoaccept dependabot.
Aarhus-Psychiatry-Research/timeseriesflattener
diff --git a/src/timeseriesflattener/utils_for_testing.py b/src/timeseriesflattener/utils_for_testing.py index 8a5063e..bb6d2ad 100644 --- a/src/timeseriesflattener/utils_for_testing.py +++ b/src/timeseriesflattener/utils_for_testing.py @@ -10,22 +10,21 @@ import pytest from pandas import DataFrame from pandas.testin...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_added_files", "has_removed_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2...
0.10
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=...
anyio==3.7.1 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 attrs==25.3.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 catalogue==2.0.10 category-encoders==2.6.4 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 click==8.1.8 cloudpickle==3.1.1 comm==0.2.2 contourpy==1.3.0 cycler==0.12.1 dask==2022.11....
name: timeseriesflattener channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 -...
[ "tests/test_check_raw_df/test_check_raw_df.py::test_raw_df_has_rows", "tests/test_check_raw_df/test_check_raw_df.py::test_raw_df_has_required_cols", "tests/test_check_raw_df/test_check_raw_df.py::test_raw_df_has_datetime_formatting", "tests/test_check_raw_df/test_check_raw_df.py::test_raw_df_has_expected_val_...
[]
[]
[]
MIT License
null
null
Aarhus-Psychiatry-Research__timeseriesflattener-33
0b6895a23bd620615b06e442d0887bc73f345540
2022-12-01 11:46:57
4fc9f344794be0310bb1e344a0e6c3ed98b57745
diff --git a/src/timeseriesflattener/__init__.py b/src/timeseriesflattener/__init__.py index c4eae1f..1516176 100644 --- a/src/timeseriesflattener/__init__.py +++ b/src/timeseriesflattener/__init__.py @@ -1,2 +1,2 @@ """Init timeseriesflattener.""" -from .flattened_dataset import FlattenedDataset +from .flattened_data...
Refactor: Main class TSFLattener, add df_getter method
Aarhus-Psychiatry-Research/timeseriesflattener
diff --git a/src/timeseriesflattener/testing/utils_for_testing.py b/src/timeseriesflattener/testing/utils_for_testing.py index d9fa75f..13d28bc 100644 --- a/src/timeseriesflattener/testing/utils_for_testing.py +++ b/src/timeseriesflattener/testing/utils_for_testing.py @@ -10,7 +10,7 @@ import pytest from pandas import...
{ "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": 2, "issue_text_score": 3, "test_score": 2 }, "num_modified_files"...
0.12
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --col...
anyio==3.7.1 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 attrs==25.3.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 catalogue==2.0.10 category-encoders==2.6.4 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 click==8.1.8 cloudpickle==3.1.1 comm==0.2.2 contourpy==1.3.0 cycler==0.12.1 dask==2022.11....
name: timeseriesflattener 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...
[ "tests/test_timeseriesflattener/test_add_values.py::test_predictor_after_prediction_time", "tests/test_timeseriesflattener/test_add_values.py::test_predictor_before_prediction", "tests/test_timeseriesflattener/test_add_values.py::test_multiple_citizens_predictor", "tests/test_timeseriesflattener/test_add_valu...
[]
[]
[]
MIT License
null
null
Aarhus-Psychiatry-Research__timeseriesflattener-337
0f21608e4c3743545c6aadb844493c47e895fc20
2024-01-18 10:44:13
0f21608e4c3743545c6aadb844493c47e895fc20
diff --git a/docs/tutorials/01_basic.ipynb b/docs/tutorials/01_basic.ipynb index 9bdd35d..a354fae 100644 --- a/docs/tutorials/01_basic.ipynb +++ b/docs/tutorials/01_basic.ipynb @@ -52,6 +52,15 @@ "execution_count": 1, "metadata": {}, "outputs": [ + { + "name": "stderr", + "output_type": "stream",...
feat: add option to specify time range in predictions Creating features in bins of e.g. 0-7, 7-30, 30-90, 90-365, 365-... days from prediction time instead of always going from 0-n as we do now, could potentially keep more temporal information and create better predictors.
Aarhus-Psychiatry-Research/timeseriesflattener
diff --git a/src/timeseriesflattener/tests/test_timeseriesflattener/test_feature_spec_objects.py b/src/timeseriesflattener/tests/test_timeseriesflattener/test_feature_spec_objects.py index 5decc27..4d0f4b3 100644 --- a/src/timeseriesflattener/tests/test_timeseriesflattener/test_feature_spec_objects.py +++ b/src/timeser...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 2 }, "num_modified_files": 5 }
1.8
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pygraphviz", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path": null, ...
annotated-types==0.7.0 catalogue==2.0.10 coloredlogs==15.0.1 exceptiongroup==1.2.2 frozendict==2.4.6 humanfriendly==10.0 iniconfig==2.1.0 joblib==1.4.2 numpy==1.26.4 packaging==24.2 pandas==2.1.3 pluggy==1.5.0 protobuf==4.24.4 pyarrow==19.0.1 pydantic==2.11.1 pydantic_core==2.33.0 pygraphviz @ file:///croot/pygraphviz_...
name: timeseriesflattener 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 - atk-1.0=2.36.0=ha1a6a79_0 - boost-cpp=1.82.0=hdb19cb5_2 - bzip2=1.0.8=h5eee18b_6 - c-ares=1.19.1=h5...
[ "src/timeseriesflattener/tests/test_timeseriesflattener/test_feature_spec_objects.py::test_create_combinations_outcome_specs", "src/timeseriesflattener/tests/test_timeseriesflattener/test_feature_spec_objects.py::test_invalid_lookbehind", "src/timeseriesflattener/tests/test_timeseriesflattener/test_flattened_da...
[]
[ "src/timeseriesflattener/tests/test_timeseriesflattener/test_feature_spec_objects.py::test_skip_all_if_no_need_to_process", "src/timeseriesflattener/tests/test_timeseriesflattener/test_feature_spec_objects.py::test_skip_one_if_no_need_to_process", "src/timeseriesflattener/tests/test_timeseriesflattener/test_fea...
[]
MIT License
null
null
Aarhus-Psychiatry-Research__timeseriesflattener-35
4fc9f344794be0310bb1e344a0e6c3ed98b57745
2022-12-01 14:43:57
4fc9f344794be0310bb1e344a0e6c3ed98b57745
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7b3ce38..af1c9de 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,12 +18,6 @@ repos: hooks: - id: ssort - - repo: https://github.com/myint/docformatter - rev: v1.5.0 - hooks: - - id: docformatter - ...
Refactor: Split out cache functionality to abstractclass
Aarhus-Psychiatry-Research/timeseriesflattener
diff --git a/src/timeseriesflattener/testing/utils_for_testing.py b/src/timeseriesflattener/testing/utils_for_testing.py index 13d28bc..0f9e2ef 100644 --- a/src/timeseriesflattener/testing/utils_for_testing.py +++ b/src/timeseriesflattener/testing/utils_for_testing.py @@ -11,7 +11,7 @@ from pandas import DataFrame fro...
{ "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": 3, "issue_text_score": 3, "test_score": 0 },...
0.12
{ "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-xdist", "pytest-mock", "pytest-asyncio" ], "pre_install": null, "python": "3...
anyio==3.7.1 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 attrs==25.3.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 catalogue==2.0.10 category-encoders==2.6.4 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 click==8.1.8 cloudpickle==3.1.1 comm==0.2.2 contourpy==1.3.0 coverage==7.8.0 cycler==0.12....
name: timeseriesflattener 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...
[ "tests/test_feature_cache/test_cache_to_disk.py::test_write_and_check_feature", "tests/test_feature_cache/test_cache_to_disk.py::test_read_feature", "tests/test_timeseriesflattener/test_flattened_dataset_generation.py::test_cache_hitting[predictor_specs0]", "tests/test_timeseriesflattener/test_flattened_datas...
[]
[]
[]
MIT License
null
null
Aarhus-Psychiatry-Research__timeseriesflattener-48
35831b493805d0c33ad447d8a8d8f868e77f8d68
2022-12-07 10:47:57
35831b493805d0c33ad447d8a8d8f868e77f8d68
diff --git a/src/timeseriesflattener/feature_spec_objects.py b/src/timeseriesflattener/feature_spec_objects.py index c010b0a..c4a3e81 100644 --- a/src/timeseriesflattener/feature_spec_objects.py +++ b/src/timeseriesflattener/feature_spec_objects.py @@ -135,8 +135,17 @@ class AnySpec(BaseModel): def __init__(self, ...
feat: drop if insufficient lookbehind or lookahead Based on min in values_df? Should be based on max in values_df. 1. Refactor to collect all specs before adding 2. Have one shared mechanism of adding specs, and allow it to take a list or a single spec at a time 3. Get the latest required date for sufficient lookbehi...
Aarhus-Psychiatry-Research/timeseriesflattener
diff --git a/src/timeseriesflattener/testing/utils_for_testing.py b/src/timeseriesflattener/testing/utils_for_testing.py index 5cb773c..0970c9d 100644 --- a/src/timeseriesflattener/testing/utils_for_testing.py +++ b/src/timeseriesflattener/testing/utils_for_testing.py @@ -88,10 +88,11 @@ def assert_flattened_data_as_ex...
{ "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": 3, "issue_text_score": 0, "test_score": 1 }, "num_modified_files": 4 }
0.15
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --col...
anyio==3.7.1 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 attrs==25.3.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 catalogue==2.0.10 category-encoders==2.6.4 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 click==8.1.8 cloudpickle==3.1.1 coloredlogs==15.0.1 comm==0.2.2 commonmark==0.9.1 contourp...
name: timeseriesflattener 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...
[ "tests/test_timeseriesflattener/test_add_values.py::test_predictor_after_prediction_time", "tests/test_timeseriesflattener/test_add_values.py::test_predictor_before_prediction", "tests/test_timeseriesflattener/test_add_values.py::test_multiple_citizens_predictor", "tests/test_timeseriesflattener/test_add_valu...
[]
[ "tests/test_feature_cache/test_cache_to_disk.py::test_write_and_check_feature", "tests/test_feature_cache/test_cache_to_disk.py::test_read_feature", "tests/test_timeseriesflattener/test_errors.py::test_duplicate_prediction_times" ]
[]
MIT License
null
null
Aarhus-Psychiatry-Research__timeseriesflattener-54
ef219b6b829c1f29dabbe13b503fca12adaaeaad
2022-12-08 10:31:55
ef219b6b829c1f29dabbe13b503fca12adaaeaad
diff --git a/src/timeseriesflattener/feature_spec_objects.py b/src/timeseriesflattener/feature_spec_objects.py index 0ae0db2..e739fa9 100644 --- a/src/timeseriesflattener/feature_spec_objects.py +++ b/src/timeseriesflattener/feature_spec_objects.py @@ -12,7 +12,7 @@ from pydantic import BaseModel as PydanticBaseModel ...
feat: take multiple features as long format
Aarhus-Psychiatry-Research/timeseriesflattener
diff --git a/src/timeseriesflattener/testing/utils_for_testing.py b/src/timeseriesflattener/testing/utils_for_testing.py index 0970c9d..0b08985 100644 --- a/src/timeseriesflattener/testing/utils_for_testing.py +++ b/src/timeseriesflattener/testing/utils_for_testing.py @@ -15,6 +15,7 @@ from timeseriesflattener.feature_...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 3, "issue_text_score": 2, "test_score": 3...
0.17
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --col...
anyio==3.7.1 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 attrs==25.3.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 catalogue==2.0.10 category-encoders==2.6.4 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 click==8.1.8 cloudpickle==3.1.1 coloredlogs==15.0.1 comm==0.2.2 commonmark==0.9.1 contourp...
name: timeseriesflattener 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...
[ "tests/test_timeseriesflattener/test_feature_spec_objects.py::test_anyspec_init", "tests/test_timeseriesflattener/test_feature_spec_objects.py::test_loader_kwargs", "tests/test_timeseriesflattener/test_feature_spec_objects.py::test_invalid_multiple_data_args", "tests/test_timeseriesflattener/test_feature_spec...
[]
[]
[]
MIT License
null
null
Aarhus-Psychiatry-Research__timeseriesflattener-59
505b6c86f16299ce5643c4eb2e12f0a444a4394b
2022-12-08 13:50:42
734c38b5e8fda8c5643ad389c00a734aeab82900
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d9d748..5ba85d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,13 +2,6 @@ <!--next-version-placeholder--> -## v0.19.0 (2022-12-08) -### Feature -* More informative errors ([`3141487`](https://github.com/Aarhus-Psychiatry-Research/timeseriesflattener/commit/314148...
refactor: remove mentions of dw_ek_borger (waiting for no open PRs, very likely to cause conflicts) 1. Rename all occurences of "dw_ek_borger" to "entity_id" 2. Remove it as a default in Timeseriesflattener
Aarhus-Psychiatry-Research/timeseriesflattener
diff --git a/src/timeseriesflattener/testing/load_synth_data.py b/src/timeseriesflattener/testing/load_synth_data.py index 2e75797..4e0f7b0 100644 --- a/src/timeseriesflattener/testing/load_synth_data.py +++ b/src/timeseriesflattener/testing/load_synth_data.py @@ -88,7 +88,7 @@ def load_synth_outcome( """ # G...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": -1, "issue_text_score": 0, "test_score": ...
0.19
{ "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", "flake8", "docformatter", "mypy", "pytest-xdist", "p...
anyio==3.7.1 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 astroid==3.3.9 attrs==25.3.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 catalogue==2.0.10 category-encoders==2.6.4 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 click==8.1.8 cloudpickle==3.1.1 coloredlogs==15.0.1 comm==0.2.2 commonmark=...
name: timeseriesflattener channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 -...
[ "tests/test_timeseriesflattener/test_flattened_dataset/test_add_values.py::test_predictor_after_prediction_time", "tests/test_timeseriesflattener/test_flattened_dataset/test_add_values.py::test_predictor_before_prediction", "tests/test_timeseriesflattener/test_flattened_dataset/test_add_values.py::test_multiple...
[]
[ "tests/test_feature_cache/test_cache_to_disk.py::test_write_and_check_feature", "tests/test_feature_cache/test_cache_to_disk.py::test_read_feature", "tests/test_timeseriesflattener/test_flattened_dataset/test_add_values.py::test_incident_outcome_removing_prediction_times", "tests/test_timeseriesflattener/test...
[]
MIT License
null
null
Aarhus-Psychiatry-Research__timeseriesflattener-62
734c38b5e8fda8c5643ad389c00a734aeab82900
2022-12-08 14:52:59
734c38b5e8fda8c5643ad389c00a734aeab82900
diff --git a/src/timeseriesflattener/feature_spec_objects.py b/src/timeseriesflattener/feature_spec_objects.py index b498393..a1726bf 100644 --- a/src/timeseriesflattener/feature_spec_objects.py +++ b/src/timeseriesflattener/feature_spec_objects.py @@ -232,9 +232,6 @@ class TemporalSpec(AnySpec): id_col_name: str ...
fix: remove hardcoded timestamp names
Aarhus-Psychiatry-Research/timeseriesflattener
diff --git a/tests/test_timeseriesflattener/test_flattened_dataset/test_flattened_dataset.py b/tests/test_timeseriesflattener/test_flattened_dataset/test_flattened_dataset.py index 7eea49e..c4d36b0 100644 --- a/tests/test_timeseriesflattener/test_flattened_dataset/test_flattened_dataset.py +++ b/tests/test_timeseriesfl...
{ "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": 2, "issue_text_score": 3, "test_score": 2 }, "num_modified_files"...
0.19
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --col...
anyio==3.7.1 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 attrs==25.3.0 backcall==0.2.0 beautifulsoup4==4.13.3 bleach==6.2.0 catalogue==2.0.10 category-encoders==2.6.4 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 click==8.1.8 cloudpickle==3.1.1 coloredlogs==15.0.1 comm==0.2.2 commonmark==0.9.1 contourp...
name: timeseriesflattener 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...
[ "tests/test_timeseriesflattener/test_flattened_dataset/test_flattened_dataset.py::test_drop_pred_time_if_insufficient_look_distance" ]
[]
[ "tests/test_timeseriesflattener/test_flattened_dataset/test_flattened_dataset.py::test_add_spec", "tests/test_timeseriesflattener/test_flattened_dataset/test_flattened_dataset.py::test_compute_specs" ]
[]
MIT License
null
null
AbhinavOmprakash__py-htminify-8
cd30ff52a48f28233d17709f4f36f14c206532ff
2021-05-22 14:29:33
cd30ff52a48f28233d17709f4f36f14c206532ff
diff --git a/README.rst b/README.rst index e22cf54..b8994d7 100644 --- a/README.rst +++ b/README.rst @@ -7,7 +7,7 @@ ________ * Using a web framework, like django, flask, and pyramid? We got you covered. * Or you're feeling adventurous and you're building your own wsgi app? We got you covered there too. This will w...
code blocks don't render properly ![image](https://user-images.githubusercontent.com/55880260/119223206-ba587a00-bb15-11eb-96e9-7bb4ad89c524.png)
AbhinavOmprakash/py-htminify
diff --git a/tests/test_htminify.py b/tests/test_htminify.py index bd1d65e..cf0befc 100644 --- a/tests/test_htminify.py +++ b/tests/test_htminify.py @@ -67,7 +67,7 @@ def test_newlines_between_html_tags_with_text_is_stripped(): html = """<p>Some random text - Some more random text </p>""" + Some ...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_media", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 3, "tes...
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": null, "python": "3.9", "reqs_path": [ "requirements/base.txt" ], "test_cmd": ...
exceptiongroup==1.2.2 -e git+https://github.com/AbhinavOmprakash/py-htminify.git@cd30ff52a48f28233d17709f4f36f14c206532ff#egg=htminify iniconfig==2.1.0 packaging==24.2 pluggy==1.5.0 pytest==8.3.5 tomli==2.2.1
name: py-htminify 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_htminify.py::test_nested_code_blocks_are_protected", "tests/test_htminify.py::test_regex_is_not_case_sensitive", "tests/test_htminify.py::test_javascript_inside_script_tags_is_minified" ]
[]
[ "tests/test_htminify.py::test_the_space_between_html_tags_is_stripped", "tests/test_htminify.py::test_newlines_between_html_tags_is_stripped", "tests/test_htminify.py::test_all_comments_are_stripped", "tests/test_htminify.py::test_extra_newline_inside_html_tags_is_stripped", "tests/test_htminify.py::test_ex...
[]
BSD 3-Clause "New" or "Revised" License
null
null
Abjad__abjad-ext-nauert-24
520f389f06e21ee0a094016b4f1e2b0cb58263c1
2021-03-15 03:29:50
84da6811a8c7e5fc75b0eaeffeccafc2bd59cbfc
diff --git a/abjadext/nauert/gracehandlers.py b/abjadext/nauert/gracehandlers.py index 8813e0f..a2dbdd3 100644 --- a/abjadext/nauert/gracehandlers.py +++ b/abjadext/nauert/gracehandlers.py @@ -199,8 +199,8 @@ class ConcatenatingGraceHandler(GraceHandler): .. container:: example - When ``replace_rest_wi...
Check gracehandlers behaviors There seem to be some odd behaviors in handling grace notes. The first odd behavior results in a "grace rest" attaching to a pitched note, as shown below: ``` import abjad from abjadext import nauert quantizer = nauert.Quantizer() durations = [1000, 1, 999] pitches = [0, None, 0...
Abjad/abjad-ext-nauert
diff --git a/tests/test_ConcatenatingGraceHandler___call__.py b/tests/test_ConcatenatingGraceHandler___call__.py index 75fa793..11424af 100644 --- a/tests/test_ConcatenatingGraceHandler___call__.py +++ b/tests/test_ConcatenatingGraceHandler___call__.py @@ -58,7 +58,9 @@ def test_ConcatenatingGraceHandler___call___02():...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 1 }
3.3
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path...
abjad==3.3 -e git+https://github.com/Abjad/abjad-ext-nauert.git@520f389f06e21ee0a094016b4f1e2b0cb58263c1#egg=abjad_ext_nauert alabaster==0.7.16 babel==2.17.0 black==25.1.0 certifi==2025.1.31 charset-normalizer==3.4.1 click==8.1.8 coverage==7.8.0 docutils==0.21.2 exceptiongroup==1.2.2 flake8==7.2.0 idna==3.10 imagesize=...
name: abjad-ext-nauert 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_ConcatenatingGraceHandler___init__.py::test_ConcatenatingGraceHandler___init___02", "tests/test_ConcatenatingGraceHandler___init__.py::test_ConcatenatingGraceHandler___init___03" ]
[]
[ "tests/test_ConcatenatingGraceHandler___call__.py::test_ConcatenatingGraceHandler___call___01", "tests/test_ConcatenatingGraceHandler___call__.py::test_ConcatenatingGraceHandler___call___02", "tests/test_ConcatenatingGraceHandler___call__.py::test_ConcatenatingGraceHandler___call___03", "tests/test_Concatenat...
[]
MIT License
swerebench/sweb.eval.x86_64.abjad_1776_abjad-ext-nauert-24
swerebench/sweb.eval.x86_64.abjad_1776_abjad-ext-nauert-24
ActivisionGameScience__assertpy-55
ed43bee91eadd55f6cc9004e6f3862a97e0d2190
2016-07-30 23:24:36
ed43bee91eadd55f6cc9004e6f3862a97e0d2190
diff --git a/README.md b/README.md index 91b1eb5..99edf06 100644 --- a/README.md +++ b/README.md @@ -282,7 +282,7 @@ Fluent assertions against the value of a given key can be done by prepending `ha ```py fred = {'first_name': 'Fred', 'last_name': 'Smith', 'shoe_size': 12} - + assert_that(fred).has_first_name('Fre...
correct implementation of soft assertions Hi! This is not a bug report, but more like a discussion kick-starter regarding soft assertions. And if we happen to agree on a different implementation, I'll be more than happy to create a PR. What I suggest is soft assertions to be implemented as in other languages lib...
ActivisionGameScience/assertpy
diff --git a/tests/test_readme.py b/tests/test_readme.py index 2ad4554..2179166 100644 --- a/tests/test_readme.py +++ b/tests/test_readme.py @@ -29,7 +29,7 @@ import sys import os import datetime -from assertpy import assert_that, assert_soft, contents_of, fail +from assertpy import assert_that, assert_warn, content...
{ "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": 3, "issue_text_score": 1, "test_score": 1 }, "num_modified_files": 3 }
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", "pytest-cov" ], "pre_install": null, "python": "3.5", "reqs_path": null, "test_cmd": "pytest --no-header -rA --...
-e git+https://github.com/ActivisionGameScience/assertpy.git@ed43bee91eadd55f6cc9004e6f3862a97e0d2190#egg=assertpy attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work certifi==2021.5.30 coverage==6.2 importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work iniconfig @ file:///home/...
name: assertpy 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 - importli...
[ "tests/test_readme.py::TestReadme::test_something", "tests/test_readme.py::TestReadme::test_strings", "tests/test_readme.py::TestReadme::test_ints", "tests/test_readme.py::TestReadme::test_floats", "tests/test_readme.py::TestReadme::test_lists", "tests/test_readme.py::TestReadme::test_tuples", "tests/te...
[]
[]
[]
BSD 3-Clause "New" or "Revised" License
null
null
Adyen__adyen-python-api-library-276
72bd79756c6fe5de567e7ca0e61b27d304d7e8c0
2023-11-17 12:47:32
72bd79756c6fe5de567e7ca0e61b27d304d7e8c0
diff --git a/Adyen/__init__.py b/Adyen/__init__.py index 712155e..3e9a8a8 100644 --- a/Adyen/__init__.py +++ b/Adyen/__init__.py @@ -1,5 +1,3 @@ -#!/bin/python - from __future__ import absolute_import, division, unicode_literals from . import util diff --git a/Adyen/client.py b/Adyen/client.py index cd45b98..2e40e9...
`TerminalsTerminalLevelApi.reassign_terminal` throws JSONDecodeError **Describe the bug** All calls to `TerminalsTerminalLevelApi.reassign_terminal` throw a JSONDecodeError **To Reproduce** ```python from Adyen import AdyenClient from Adyen.services.management import TerminalsTerminalLevelApi API_KEY = ...
Adyen/adyen-python-api-library
diff --git a/test/ConfigurationTest.py b/test/BalancePlatformTest.py similarity index 87% rename from test/ConfigurationTest.py rename to test/BalancePlatformTest.py index 3bbb9f0..fe29b68 100644 --- a/test/ConfigurationTest.py +++ b/test/BalancePlatformTest.py @@ -1,5 +1,6 @@ -import Adyen import unittest + +import A...
{ "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": 0, "test_score": 1 }, "num_modified_files": 3 }
10.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.6", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --color=no...
-e git+https://github.com/Adyen/adyen-python-api-library.git@72bd79756c6fe5de567e7ca0e61b27d304d7e8c0#egg=Adyen 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...
name: adyen-python-api-library 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=py36h06a430...
[ "test/BalancePlatformTest.py::TestBalancePlatform::test_update_network_token", "test/ManagementTest.py::TestManagement::test_reassign_terminal" ]
[]
[ "test/BalancePlatformTest.py::TestBalancePlatform::test_creating_account_holder", "test/BalancePlatformTest.py::TestBalancePlatform::test_creating_balance_account", "test/BalancePlatformTest.py::TestBalancePlatform::test_creating_payment_instrument", "test/BalancePlatformTest.py::TestBalancePlatform::test_cre...
[]
MIT License
null
null
AgentOps-AI__AgentStack-77
c2725af63fefa393169f30be0689f2b4f3f0e4b3
2024-12-02 18:51:11
c2725af63fefa393169f30be0689f2b4f3f0e4b3
diff --git a/agentstack/cli/__init__.py b/agentstack/cli/__init__.py index 3c35ec3..afd42af 100644 --- a/agentstack/cli/__init__.py +++ b/agentstack/cli/__init__.py @@ -1,1 +1,1 @@ -from .cli import init_project_builder, list_tools +from .cli import init_project_builder, list_tools, configure_default_model diff --git a...
Dynamically load model providers In the agent wizard section of the CLI, it asks to enter the model and provider for the agent to use. Any provider/model that works in LiteLLM should be accepted. Import or create a list of all acceptable providers and associated models. In the AgentWizard, ask the user to sele...
AgentOps-AI/AgentStack
diff --git a/tests/test_generation_files.py b/tests/test_generation_files.py index 8f8549e..e2d80d7 100644 --- a/tests/test_generation_files.py +++ b/tests/test_generation_files.py @@ -14,6 +14,7 @@ class GenerationFilesTest(unittest.TestCase): assert config.framework == "crewai" assert config.tools =...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 2 }, "num_modified_files": 5 }
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.10", "reqs_pat...
-e git+https://github.com/AgentOps-AI/AgentStack.git@c2725af63fefa393169f30be0689f2b4f3f0e4b3#egg=agentstack annotated-types==0.7.0 arrow==1.3.0 art==6.4 astor==0.8.1 binaryornot==0.4.4 blessed==1.20.0 certifi==2025.1.31 chardet==5.2.0 charset-normalizer==3.4.1 click==8.1.8 cookiecutter==2.6.0 editor==1.6.6 exceptiongr...
name: AgentStack 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 - bzip2=1.0.8=h5eee18b_6 - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3....
[ "tests/test_generation_files.py::GenerationFilesTest::test_read_config", "tests/test_generation_files.py::GenerationFilesTest::test_write_config" ]
[]
[ "tests/test_generation_files.py::GenerationFilesTest::test_get_framework", "tests/test_generation_files.py::GenerationFilesTest::test_get_telemetry_opt_out", "tests/test_generation_files.py::GenerationFilesTest::test_read_env", "tests/test_generation_files.py::GenerationFilesTest::test_read_missing_config", ...
[]
MIT License
null
null
Agizin__Algorithm-Visualization-13
f0641b860b384bf2760819b4f1bd5548261718c3
2017-12-26 15:26:58
f0641b860b384bf2760819b4f1bd5548261718c3
diff --git a/algviz/interface/__init__.py b/algviz/interface/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/algviz/interface/high_level.py b/algviz/interface/high_level.py new file mode 100644 index 0000000..41d78f6 --- /dev/null +++ b/algviz/interface/high_level.py @@ -0,0 +1,19 @@ +import sys + ...
APIs to print JSON from Python This is the "API" part of #4 .
Agizin/Algorithm-Visualization
diff --git a/algviz/interface/test_high_level.py b/algviz/interface/test_high_level.py new file mode 100644 index 0000000..4da7401 --- /dev/null +++ b/algviz/interface/test_high_level.py @@ -0,0 +1,30 @@ +#!/usr/bin/env python3 + +import unittest +from unittest import mock + +from . import visitors +from .testutil impo...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_issue_reference", "has_added_files", "has_many_modified_files", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 3, "issue_text_sc...
unknown
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pygraphviz", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path": null, ...
-e git+https://github.com/Agizin/Algorithm-Visualization.git@f0641b860b384bf2760819b4f1bd5548261718c3#egg=algviz exceptiongroup==1.2.2 iniconfig==2.1.0 packaging==24.2 pluggy==1.5.0 pygraphviz @ file:///croot/pygraphviz_1671045577740/work pytest==8.3.5 tomli==2.2.1
name: Algorithm-Visualization 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 - atk-1.0=2.36.0=ha1a6a79_0 - boost-cpp=1.82.0=hdb19cb5_2 - bzip2=1.0.8=h5eee18b_6 - c-ares=1.19....
[ "algviz/interface/test_high_level.py::HighLevelTestCase::test_functional_show_interface", "algviz/interface/test_output.py::OutputManagerTestCase::test_basic_usage", "algviz/interface/test_output.py::OutputManagerTestCase::test_error_for_adding_value_with_no_key_in_mapping", "algviz/interface/test_output.py::...
[]
[]
[]
null
null
null
Agizin__Algorithm-Visualization-28
2dd360e7692621c71abec0afa34c0b9a3136f609
2018-03-30 15:55:51
2dd360e7692621c71abec0afa34c0b9a3136f609
diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c1489e4..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: python -python: - - "3.5" - - "3.6" - -# command to install dependencies -install: - - pip install pipenv - - pipenv install - -# command to run tests and lint -...
Visitor for Trees in Python Depends on #13
Agizin/Algorithm-Visualization
diff --git a/algviz/interface/test_visitors.py b/algviz/interface/test_visitors.py index 164c96f..0c31d9b 100644 --- a/algviz/interface/test_visitors.py +++ b/algviz/interface/test_visitors.py @@ -20,7 +20,7 @@ class VisitorTestCaseMixin(TempFileMixin): text = self.read_tempfile() return text, json_ob...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_removed_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 3, "test_score": 2 ...
unknown
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pygraphviz", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path": null, ...
-e git+https://github.com/Agizin/Algorithm-Visualization.git@2dd360e7692621c71abec0afa34c0b9a3136f609#egg=algviz exceptiongroup==1.2.2 iniconfig==2.1.0 packaging==24.2 pluggy==1.5.0 pygraphviz @ file:///croot/pygraphviz_1671045577740/work pytest==8.3.5 tomli==2.2.1
name: Algorithm-Visualization 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 - atk-1.0=2.36.0=ha1a6a79_0 - boost-cpp=1.82.0=hdb19cb5_2 - bzip2=1.0.8=h5eee18b_6 - c-ares=1.19....
[ "algviz/interface/test_visitors.py::WidgetVisitorTestCase::test_metadata", "algviz/interface/test_visitors.py::WidgetVisitorTestCase::test_varnames", "algviz/interface/test_visitors.py::WidgetVisitorTestCase::test_widget_export_and_import", "algviz/interface/test_visitors.py::ArrayVisitorTestCase::test_array_...
[]
[]
[]
null
null
null
Agizin__Algorithm-Visualization-9
c846f54fae8bf5981bde0df534781ac3db0dcc78
2017-12-11 16:15:03
c846f54fae8bf5981bde0df534781ac3db0dcc78
diff --git a/algviz/parser/json_objects.py b/algviz/parser/json_objects.py index 10619ee..cd36f94 100644 --- a/algviz/parser/json_objects.py +++ b/algviz/parser/json_objects.py @@ -191,6 +191,11 @@ def decode_json(text): snapshots.append(decode_snapshot(*raw_snapshot)) return snapshots +def decode_snaps...
Toy tool to make pictures of graphs Please implement a tool to parse JSON descriptions of graphs (using the `parsers.json_objects` module) and produce pictures of graphs directly with pygraphviz. It's about time we had some fun.
Agizin/Algorithm-Visualization
diff --git a/algviz/parser/test_structures.py b/algviz/parser/test_structures.py index 581f220..303f843 100644 --- a/algviz/parser/test_structures.py +++ b/algviz/parser/test_structures.py @@ -12,5 +12,25 @@ class DataStructuresTestCase(unittest.TestCase): self.assertFalse(structures.Null) self.assert...
{ "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": 0, "issue_text_score":...
unknown
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line ...
-e git+https://github.com/Agizin/Algorithm-Visualization.git@c846f54fae8bf5981bde0df534781ac3db0dcc78#egg=algviz exceptiongroup==1.2.2 iniconfig==2.1.0 packaging==24.2 pluggy==1.5.0 pytest==8.3.5 tomli==2.2.1
name: Algorithm-Visualization 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...
[ "algviz/parser/test_structures.py::ObjectTableTestCase::test_getuid_convenience_method" ]
[]
[ "algviz/parser/test_structures.py::DataStructuresTestCase::test_Null", "algviz/parser/test_structures.py::ObjectTableTestCase::test_keys_must_be_object_table_references", "algviz/parser/test_structures.py::ObjectTableTestCase::test_null_always_in_table" ]
[]
null
null
null
Akkudoktor-EOS__EOS-459
d912561bfbe5c1c97505f89225c3f9650b00c3c7
2025-02-15 21:11:38
d912561bfbe5c1c97505f89225c3f9650b00c3c7
diff --git a/src/akkudoktoreos/utils/visualize.py b/src/akkudoktoreos/utils/visualize.py index fc684c9..51ccc63 100644 --- a/src/akkudoktoreos/utils/visualize.py +++ b/src/akkudoktoreos/utils/visualize.py @@ -454,7 +454,9 @@ def prepare_visualize( [ np.full( len(parameters.ems.ges...
[BUG]: Exception in visualize ### Describe the issue: optimize results in exception. ### Reproduceable code example: ```python # report.create_line_chart_date( ...
Akkudoktor-EOS/EOS
diff --git a/tests/testdata/optimize_input_1.json b/tests/testdata/optimize_input_1.json index 88000e6..f5cde44 100644 --- a/tests/testdata/optimize_input_1.json +++ b/tests/testdata/optimize_input_1.json @@ -1,7 +1,14 @@ { "ems": { "preis_euro_pro_wh_akku": 0.0001, - "einspeiseverguetung_euro_pro...
{ "commit_name": "merge_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 2, "issue_text_score": 0, "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.12", "reqs_path": [ "requirements.txt", "requirements-dev.txt" ...
-e git+https://github.com/Akkudoktor-EOS/EOS.git@d912561bfbe5c1c97505f89225c3f9650b00c3c7#egg=akkudoktor_eos alabaster==1.0.0 annotated-types==0.7.0 anyio==4.9.0 apsw==3.49.1.0 apswutils==0.0.2 babel==2.17.0 beautifulsoup4==4.13.3 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normalizer==3.4.1 click==8.1.8 contou...
name: EOS 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 - bzip2=1.0.8=h5eee18b_6 - ca-certificates=2025.2.25=h06a4308_0 - expat=2.6.4=h6a678d5_0 - ld_impl_linux-64=2.40=h12e...
[ "tests/test_class_optimize.py::test_optimize[optimize_input_1.json-optimize_result_1.json-3]" ]
[]
[ "tests/test_battery.py::test_initial_state_of_charge", "tests/test_battery.py::test_battery_discharge_below_min_soc", "tests/test_battery.py::test_battery_charge_above_max_soc", "tests/test_battery.py::test_battery_charge_when_full", "tests/test_battery.py::test_battery_discharge_when_empty", "tests/test_...
[]
Apache License 2.0
null
null
Akkudoktor-EOS__EOS-491
61c5efc74f6480f8e3518a702d8252cc0cc32e26
2025-03-24 13:51:38
61c5efc74f6480f8e3518a702d8252cc0cc32e26
diff --git a/docs/_generated/openapi.md b/docs/_generated/openapi.md index dff19f3..76f2c9c 100644 --- a/docs/_generated/openapi.md +++ b/docs/_generated/openapi.md @@ -430,7 +430,13 @@ Returns: **Request Body**: - `application/json`: { - "description": "The value to assign to the specified configuration path.", +...
[BUG]: Negativ values in load_mean_adjusted ### Describe the issue: I get incorrect values from the load prediction (load_mean_adjusted) I put these values to /v1/measurement/data [payload_load_measurement.json](https://github.com/user-attachments/files/18563754/payload_load_measurement.json) Then I verfiied that th...
Akkudoktor-EOS/EOS
diff --git a/tests/test_elecpriceimport.py b/tests/test_elecpriceimport.py index a2a09fd..420f15e 100644 --- a/tests/test_elecpriceimport.py +++ b/tests/test_elecpriceimport.py @@ -59,8 +59,8 @@ def test_invalid_provider(provider, config_eos): }, } } - config_eos.merge_settings_from_dict(s...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_git_commit_hash", "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": 0, "iss...
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": null, "python": "3.11", "reqs_path": [ "requirements.txt", "requirements-dev....
-e git+https://github.com/Akkudoktor-EOS/EOS.git@61c5efc74f6480f8e3518a702d8252cc0cc32e26#egg=akkudoktor_eos alabaster==1.0.0 annotated-types==0.7.0 anyio==4.9.0 apsw==3.49.1.0 apswutils==0.0.2 babel==2.17.0 beautifulsoup4==4.13.3 bokeh==3.7.0 cachebox==4.4.2 certifi==2025.1.31 cffi==1.17.1 cfgv==3.4.0 charset-normaliz...
name: EOS 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 - bzip2=1.0.8=h5eee18b_6 - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a...
[ "tests/test_elecpriceimport.py::test_invalid_provider", "tests/test_pvforecastimport.py::test_invalid_provider", "tests/test_weatherclearoutside.py::test_invalid_provider", "tests/test_weatherimport.py::test_invalid_provider" ]
[]
[ "tests/test_elecpriceimport.py::test_singleton_instance", "tests/test_elecpriceimport.py::test_import[2024-11-10", "tests/test_elecpriceimport.py::test_import[2024-08-10", "tests/test_elecpriceimport.py::test_import[2024-03-31", "tests/test_elecpriceimport.py::test_import[2024-10-27", "tests/test_pvforeca...
[]
Apache License 2.0
null
null
Alexei-Kornienko__schematics_to_swagger-7
3ddc537a8ed7682e9bb709ebd749b99d7ef09473
2019-11-20 22:11:16
3ddc537a8ed7682e9bb709ebd749b99d7ef09473
diff --git a/schematics_to_swagger/__init__.py b/schematics_to_swagger/__init__.py index d108f3f..d203de0 100644 --- a/schematics_to_swagger/__init__.py +++ b/schematics_to_swagger/__init__.py @@ -54,17 +54,24 @@ def _map_schematics_type(t): def model_to_definition(model): - fields = model.fields.items() + p...
Hide private model fields in swagger doc
Alexei-Kornienko/schematics_to_swagger
diff --git a/tests/models.py b/tests/models.py index 5392711..7cd4582 100644 --- a/tests/models.py +++ b/tests/models.py @@ -16,3 +16,10 @@ class WeatherStats(Model): last_report = types.ModelType(WeatherReport) prev_reports = types.ListType(types.ModelType(WeatherReport)) date_list = types.ListType(type...
{ "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 }
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>=3.6", "pytest-cov", "codecov", "flake8" ], "pre_install": null, "python": "3.6", "reqs_path...
attrs==22.2.0 certifi==2021.5.30 charset-normalizer==2.0.12 codecov==2.1.13 coverage==6.2 flake8==5.0.4 idna==3.10 importlib-metadata==4.2.0 iniconfig==1.1.1 mccabe==0.7.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 schema...
name: schematics_to_swagger 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=h12...
[ "tests/test_model.py::test_read_models_from_module", "tests/test_model.py::test_private_fields" ]
[]
[ "tests/test_model.py::test_model_to_definition", "tests/test_model.py::test_compound_type" ]
[]
MIT License
swerebench/sweb.eval.x86_64.alexei-kornienko_1776_schematics_to_swagger-7
swerebench/sweb.eval.x86_64.alexei-kornienko_1776_schematics_to_swagger-7
AlexisBRENON__ewmh_m2m-15
c70bb48fd102fc526112f4cfb7c33ae157d83037
2020-01-23 13:30:38
16956314432b94dc35e261946e8f920c8b00a7f7
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 49e0dde..e6b449e 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -19,7 +19,7 @@ jobs: - name: Set up pip run: | python -m pip install --upgrade pip - pip install --upgrade s...
No sibling screen found - Error Thanks for the great script! Unfortunately this is what I get: $ move-to-monitor -v -v DEBUG:ewmh_m2m.__main__:Detected screens: {Geometry(2960, 0, 1920, 1200), Geometry(0, 176, 1280, 1024), Geometry(1280, 150, 1680, 1050)} DEBUG:ewmh_m2m.__main__:Containing screen: Geom...
AlexisBRENON/ewmh_m2m
diff --git a/tests/test_geometry.py b/tests/test_geometry.py new file mode 100644 index 0000000..3b058b6 --- /dev/null +++ b/tests/test_geometry.py @@ -0,0 +1,49 @@ +from ewmh_m2m.geometry import Geometry + + +class TestGeometry: + + def test_horizontally_not_overlap(self): + g1 = Geometry(0, 0, 1, 1) + ...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_media", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 3, "test_score": 1 }, "num_modified_f...
1.1
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "...
cffi==1.17.1 coverage==7.8.0 -e git+https://github.com/AlexisBRENON/ewmh_m2m.git@c70bb48fd102fc526112f4cfb7c33ae157d83037#egg=ewmh_m2m exceptiongroup==1.2.2 iniconfig==2.1.0 packaging==24.2 pluggy==1.5.0 pycparser==2.22 pytest==8.3.5 pytest-cov==6.0.0 six==1.17.0 tomli==2.2.1 xcffib==0.8.1 xpybutil==0.0.6
name: ewmh_m2m channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=...
[ "tests/test_geometry.py::TestGeometry::test_horizontally_not_overlap", "tests/test_geometry.py::TestGeometry::test_horizontally_overlap", "tests/test_geometry.py::TestGeometry::test_vertically_not_overlap", "tests/test_geometry.py::TestGeometry::test_vertically_overlap", "tests/test_geometry.py::TestGeometr...
[]
[ "tests/test_screen.py::TestScreen::test_siblings_single_screen", "tests/test_screen.py::TestScreen::test_siblings_horizontal", "tests/test_screen.py::TestScreen::test_siblings_vertical", "tests/test_screen.py::TestScreen::test_siblings", "tests/test_screen.py::TestScreen::test_sibling_nominal", "tests/tes...
[]
MIT License
null
null
Algebra8__pyopenapi3-80
2237b16747c446adc2b67a080040f222c0493653
2021-04-02 02:27:20
2237b16747c446adc2b67a080040f222c0493653
diff --git a/.gitignore b/.gitignore index 8b5025d..45bfdbc 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ __pycache__/ pyopenapi3.egg-info/ dist/ build/ +.vscode/ diff --git a/src/pyopenapi3/builders.py b/src/pyopenapi3/builders.py index 2fce8e4..c393181 100644 --- a/src/pyopenapi3/builders.py +++ b/src/p...
Make parse_name_and_type_from_fmt_str return reference to components `pyopenapi3.utils.parse_name_and_type_from_fmt_str` should be able to accept the following format: `{name:Component}`. Currently, it will only consider data types: ``` # In parse_name_and_type_from_fmt_str yield arg_name, getattr(pyopenapi3.da...
Algebra8/pyopenapi3
diff --git a/tests/examples/component.py b/tests/examples/component.py index d05ee3e..e74bea9 100644 --- a/tests/examples/component.py +++ b/tests/examples/component.py @@ -105,7 +105,7 @@ object_lvl_test = { "Pet": { "required": [ "name", - "animal_type" + "animal_type", ], ...
{ "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": 2, "issue_text_score": 1, "test_score": 3 }, "num_modified_files": 3 }
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": [], "python": "3.9", "reqs_path": [ "requirements.txt" ], "test_cmd": "pytest...
anyio==4.9.0 asgiref==3.8.1 attrs==25.3.0 certifi==2025.1.31 charset-normalizer==3.4.1 connexion==3.2.0 dnspython==2.7.0 email-validator==1.1.2 exceptiongroup==1.2.2 h11==0.14.0 httpcore==1.0.7 httpx==0.28.1 idna==3.10 inflection==0.5.1 iniconfig==2.1.0 Jinja2==3.1.6 jsonschema==4.23.0 jsonschema-specifications==2024.1...
name: pyopenapi3 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_builders.py::test_path_with_path_parameter", "tests/test_builders.py::test_path_parameter_in_field__fail" ]
[ "tests/test_builders.py::test_component_with_object_level_fields" ]
[ "tests/test_builders.py::test_info_object_success", "tests/test_builders.py::test_default_server", "tests/test_builders.py::test_one_server_object_success", "tests/test_builders.py::test_multiple_servers_success", "tests/test_builders.py::test_server_with_vars_success", "tests/test_builders.py::test_path_...
[]
MIT License
swerebench/sweb.eval.x86_64.algebra8_1776_pyopenapi3-80
swerebench/sweb.eval.x86_64.algebra8_1776_pyopenapi3-80
Algebra8__pyopenapi3-83
2ef34c3213eb292703e0e5e6f2185b1e4725bbde
2021-04-04 01:12:58
2ef34c3213eb292703e0e5e6f2185b1e4725bbde
diff --git a/src/pyopenapi3/schemas.py b/src/pyopenapi3/schemas.py index 141822f..daa78f6 100644 --- a/src/pyopenapi3/schemas.py +++ b/src/pyopenapi3/schemas.py @@ -164,7 +164,9 @@ class DTSchema(SchemaObject): class ObjectsDTSchema(DTSchema): type: str = Field('object', const=True) - properties: Dict[str, U...
Allow Free-Form Objects Consider the following example: ``` definitions: Pet: type: object properties: tags: type: object description: Custom tags ``` According to [Open API 3 specs on data types](https://swagger.io/docs/specification/data-models/data-types/#object), "a fre...
Algebra8/pyopenapi3
diff --git a/tests/test_schemas.py b/tests/test_schemas.py new file mode 100644 index 0000000..19c5977 --- /dev/null +++ b/tests/test_schemas.py @@ -0,0 +1,7 @@ +from pyopenapi3.schemas import ObjectsDTSchema + + +def test_free_form_object(): + o = ObjectsDTSchema() + + assert o.dict() == {"type": "object"}
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 0, "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==6.2.2", "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": [ "requirements.txt" ]...
anyio==4.9.0 asgiref==3.8.1 attrs==25.3.0 certifi==2025.1.31 charset-normalizer==3.4.1 connexion==3.2.0 dnspython==2.7.0 email-validator==1.1.2 exceptiongroup==1.2.2 h11==0.14.0 httpcore==1.0.7 httpx==0.28.1 idna==3.10 inflection==0.5.1 iniconfig==2.1.0 Jinja2==3.1.6 jsonschema==4.23.0 jsonschema-specifications==2024.1...
name: pyopenapi3 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_schemas.py::test_free_form_object" ]
[]
[]
[]
MIT License
swerebench/sweb.eval.x86_64.algebra8_1776_pyopenapi3-83
swerebench/sweb.eval.x86_64.algebra8_1776_pyopenapi3-83
Algebra8__pyopenapi3-91
1637ca6ab3186f73baaf37b09594f59a745f63bb
2021-04-05 00:49:37
1637ca6ab3186f73baaf37b09594f59a745f63bb
diff --git a/src/pyopenapi3/builders.py b/src/pyopenapi3/builders.py index 164f041..a4b1663 100644 --- a/src/pyopenapi3/builders.py +++ b/src/pyopenapi3/builders.py @@ -5,7 +5,7 @@ import re import yaml -from pyopenapi3.data_types import Component +from pyopenapi3.data_types import Component, Parameters, Schemas ...
Unresolvable pointer due to wrong reference Consider the following example: ``` @component.parameter class PetId: name = "pet_id" description = "Pet's Unique Identifier" in_field = "path" schema = create_schema(String, pattern="^[a-zA-Z0-9-]+$") required = True @open_bldr.path cl...
Algebra8/pyopenapi3
diff --git a/tests/examples/component.py b/tests/examples/component.py index e74bea9..50552e2 100644 --- a/tests/examples/component.py +++ b/tests/examples/component.py @@ -126,3 +126,27 @@ object_lvl_test = { } } } + +param_reference_comp = { + "schemas": { + "Pet": { + "type": "object", + "prop...
{ "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": 2, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 3 }
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": null, "python": "3.9", "reqs_path": [ "requirements.txt" ], "test_cmd": "pyte...
anyio==4.9.0 asgiref==3.8.1 attrs==25.3.0 certifi==2025.1.31 charset-normalizer==3.4.1 connexion==3.2.0 dnspython==2.7.0 email-validator==1.1.2 exceptiongroup==1.2.2 h11==0.14.0 httpcore==1.0.7 httpx==0.28.1 idna==3.10 inflection==0.5.1 iniconfig==2.1.0 Jinja2==3.1.6 jsonschema==4.23.0 jsonschema-specifications==2024.1...
name: pyopenapi3 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_builders.py::test_path_with_path_parameter", "tests/test_builders.py::test_component_parameter_references" ]
[]
[ "tests/test_builders.py::test_info_object_success", "tests/test_builders.py::test_default_server", "tests/test_builders.py::test_one_server_object_success", "tests/test_builders.py::test_multiple_servers_success", "tests/test_builders.py::test_server_with_vars_success", "tests/test_builders.py::test_path_...
[]
MIT License
swerebench/sweb.eval.x86_64.algebra8_1776_pyopenapi3-91
swerebench/sweb.eval.x86_64.algebra8_1776_pyopenapi3-91
Algebra8__pyopenapi3-92
2f282f7f121550c845f77b16076b2bdf9b0b379f
2021-04-05 02:01:17
2f282f7f121550c845f77b16076b2bdf9b0b379f
diff --git a/examples/connexion_example/ex.py b/examples/connexion_example/app.py similarity index 62% rename from examples/connexion_example/ex.py rename to examples/connexion_example/app.py index 18e2a3e..42b4eb3 100644 --- a/examples/connexion_example/ex.py +++ b/examples/connexion_example/app.py @@ -1,8 +1,24 @@ -f...
Add connexion structure to /examples directory Include everything that is required to make a simple connexion example work around #62, such as `app.py`.
Algebra8/pyopenapi3
diff --git a/tests/examples/component.py b/tests/examples/component.py index 50552e2..dc80eea 100644 --- a/tests/examples/component.py +++ b/tests/examples/component.py @@ -150,3 +150,18 @@ param_reference_comp = { } } } + +param_component = { + "parameters": { + "PetID": { + "name": "pet_id", + ...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "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": 1, "test_score": 0 ...
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": null, "python": "3.9", "reqs_path": [ "requirements.txt" ], "test_cmd": "pyte...
anyio==4.9.0 asgiref==3.8.1 attrs==25.3.0 certifi==2025.1.31 charset-normalizer==3.4.1 connexion==3.2.0 dnspython==2.7.0 email-validator==1.1.2 exceptiongroup==1.2.2 h11==0.14.0 httpcore==1.0.7 httpx==0.28.1 idna==3.10 inflection==0.5.1 iniconfig==2.1.0 Jinja2==3.1.6 jsonschema==4.23.0 jsonschema-specifications==2024.1...
name: pyopenapi3 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_builders.py::test_path_with_path_parameter" ]
[]
[ "tests/test_builders.py::test_info_object_success", "tests/test_builders.py::test_default_server", "tests/test_builders.py::test_one_server_object_success", "tests/test_builders.py::test_multiple_servers_success", "tests/test_builders.py::test_server_with_vars_success", "tests/test_builders.py::test_path_...
[]
MIT License
swerebench/sweb.eval.x86_64.algebra8_1776_pyopenapi3-92
swerebench/sweb.eval.x86_64.algebra8_1776_pyopenapi3-92
All-Hands-AI__OpenHands-3925
f7ebc1cf1f1f4ae306d1e630ac57b618d0d85810
2024-09-18 08:06:45
8a93da51be8059f6ee963900f4289ad5e462bd75
diff --git a/openhands/__init__.py b/openhands/__init__.py index e69de29b..5ef39809 100644 --- a/openhands/__init__.py +++ b/openhands/__init__.py @@ -0,0 +1,28 @@ +def get_version(): + try: + from importlib.metadata import PackageNotFoundError, version + + try: + return version('openhands-a...
[Feature]: Make it possible to reduce Gemini safety settings **What problem or use case are you trying to solve?** Gemini has some very high safety settings by default, which cause it to refuse to generate code sometimes. **Describe the UX of the solution you'd like** It would be good to either: 1. reduce the...
All-Hands-AI/OpenHands
diff --git a/tests/unit/test_llm.py b/tests/unit/test_llm.py index ad46695b..a08c6a84 100644 --- a/tests/unit/test_llm.py +++ b/tests/unit/test_llm.py @@ -9,12 +9,12 @@ from openhands.llm.llm import LLM @pytest.fixture def default_config(): - return LLMConfig(model='gpt-3.5-turbo', api_key='test_key') + retur...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 2 }, "num_modi...
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": null, "python": "3.11", "reqs_path": [ "requirements/base.txt" ], "test_cmd":...
aenum==3.1.15 aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiolimiter==1.2.1 aiosignal==1.3.2 annotated-types==0.7.0 anthropic==0.49.0 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 attrs==25.3.0 bashlex==0.18 beartype==0.12.0 beautifulsoup4==4.13.3 blinker==1.9.0 boto3==1.37.23 botocore==1.37.23 browsergym=...
name: OpenHands 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 - bzip2=1.0.8=h5eee18b_6 - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4...
[ "tests/unit/test_llm.py::test_llm_init_without_model_info" ]
[]
[ "tests/unit/test_llm.py::test_llm_init_with_default_config", "tests/unit/test_llm.py::test_llm_init_with_model_info", "tests/unit/test_llm.py::test_llm_init_with_custom_config", "tests/unit/test_llm.py::test_llm_init_with_metrics", "tests/unit/test_llm.py::test_llm_reset", "tests/unit/test_llm.py::test_ll...
[]
MIT License
null
null
All-Hands-AI__OpenHands-4154
c8a933590ac9bd55aa333940bacd4e323eff34bc
2024-10-01 21:08:33
8a93da51be8059f6ee963900f4289ad5e462bd75
tobitege: in the docker script: ``` RUN mkdir -p /openhands/micromamba && curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj -C /openhands/micromamba ``` I think the `tar` is creating a different folder structure `below` micromamba? Maybe this works? ``` RUN curl -Ls https://micro.mam...
diff --git a/.github/workflows/ghcr-build.yml b/.github/workflows/ghcr-build.yml index 34824777..82c30d98 100644 --- a/.github/workflows/ghcr-build.yml +++ b/.github/workflows/ghcr-build.yml @@ -293,7 +293,7 @@ jobs: SANDBOX_RUNTIME_CONTAINER_IMAGE=$image_name \ TEST_IN_CI=true \ RUN_AS...
[Bug]: Runtime failed to build due to Mamba Error ### Is there an existing issue for the same bug? - [X] I have checked the troubleshooting document at https://docs.all-hands.dev/modules/usage/troubleshooting - [X] I have checked the existing issues. ### Describe the bug ``` Traceback (most recent call last): Fi...
All-Hands-AI/OpenHands
diff --git a/.github/workflows/dummy-agent-test.yml b/.github/workflows/dummy-agent-test.yml index 517af6fe..795391e5 100644 --- a/.github/workflows/dummy-agent-test.yml +++ b/.github/workflows/dummy-agent-test.yml @@ -45,7 +45,7 @@ jobs: - name: Run tests run: | set -e - poetry run ...
{ "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": 2, "issue_text_score": 1, "test_score": 2 }, "num_modified_files": 7 }
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": null, "python": "3.11", "reqs_path": [ "requirements/base.txt" ], "test_cmd":...
aenum==3.1.15 aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiolimiter==1.2.1 aiosignal==1.3.2 annotated-types==0.7.0 anthropic==0.49.0 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 attrs==25.3.0 bashlex==0.18 beartype==0.12.0 beautifulsoup4==4.13.3 blinker==1.9.0 boto3==1.37.23 botocore==1.37.23 browsergym=...
name: OpenHands 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 - bzip2=1.0.8=h5eee18b_6 - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4...
[ "tests/unit/test_runtime_build.py::test_generate_dockerfile_scratch" ]
[ "tests/runtime/test_browsing.py::test_simple_browse[EventStreamRuntime-True]", "tests/runtime/test_browsing.py::test_browsergym_eval_env[EventStreamRuntime]", "tests/unit/test_runtime_build.py::test_put_source_code_to_dir", "tests/unit/test_runtime_build.py::test_docker_build_folder", "tests/unit/test_runti...
[ "tests/unit/test_runtime_build.py::test_generate_dockerfile_skip_init", "tests/unit/test_runtime_build.py::test_get_runtime_image_repo_and_tag_eventstream" ]
[]
MIT License
null
null
All-Hands-AI__openhands-aci-17
b551afd07cc9d84ee0322c3334dae3bcd3ee00ea
2024-12-03 07:52:50
f9774a3ca86d2ec2430de5dbaef2cf657d48b826
ryanhoangt: Looks good, the resolve rate is the same as baseline. ``` 14:46:18 - openhands:INFO: eval_infer.py:418 - # resolved: 6 / 10. (60.00%) 14:46:18 - openhands:INFO: eval_infer.py:418 - # failed_apply_patch: 0 / 10. (0.00%) 14:46:18 - openhands:INFO: eval_infer.py:418 - # error_eval: 0 / 10. (0.00%) 14:46...
diff --git a/openhands_aci/editor/editor.py b/openhands_aci/editor/editor.py index 0cbb0a1..e98354b 100644 --- a/openhands_aci/editor/editor.py +++ b/openhands_aci/editor/editor.py @@ -110,12 +110,17 @@ class OHEditor: f'No replacement was performed, old_str `{old_str}` did not appear verbatim in {path...
[Bug]: Editing Error "No replacement was performed" is not informative enough Cross post from https://github.com/All-Hands-AI/OpenHands/issues/5365
All-Hands-AI/openhands-aci
diff --git a/tests/integration/test_oh_editor.py b/tests/integration/test_oh_editor.py index 39b493e..6cdb6d7 100644 --- a/tests/integration/test_oh_editor.py +++ b/tests/integration/test_oh_editor.py @@ -149,6 +149,28 @@ def test_str_replace_error_multiple_occurrences(editor): command='str_replace', path=...
{ "commit_name": "merge_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": 3, "test_score": 2 }, "num_modified_files": 1 }
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": null, "python": "3.12", "reqs_path": [ "requirements/base.txt" ], "test_cmd":...
aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 annotated-types==0.7.0 anyio==4.9.0 attrs==25.3.0 certifi==2025.1.31 charset-normalizer==3.4.1 click==8.1.8 diskcache==5.6.3 distro==1.9.0 filelock==3.18.0 flake8==7.2.0 frozenlist==1.5.0 fsspec==2025.3.1 gitdb==4.0.12 GitPython==3.1.44 grep-ast==0.3.3 h11==0.14...
name: openhands-aci 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 - bzip2=1.0.8=h5eee18b_6 - ca-certificates=2025.2.25=h06a4308_0 - expat=2.6.4=h6a678d5_0 - ld_impl_linux-64...
[ "tests/integration/test_oh_editor.py::test_str_replace_error_multiple_multiline_occurrences" ]
[]
[ "tests/integration/test_oh_editor.py::test_view_file", "tests/integration/test_oh_editor.py::test_view_directory", "tests/integration/test_oh_editor.py::test_create_file", "tests/integration/test_oh_editor.py::test_str_replace_no_linting", "tests/integration/test_oh_editor.py::test_str_replace_multi_line_no...
[]
MIT License
null
null
All-Hands-AI__openhands-aci-55
f9774a3ca86d2ec2430de5dbaef2cf657d48b826
2025-01-23 17:47:31
f9774a3ca86d2ec2430de5dbaef2cf657d48b826
xingyaoww: @ryanhoangt Can we evaluate 100 instance of SWE-Bench Verified before and after this change? ryanhoangt: Sure, let me give it a try! ryanhoangt: I think it looks good: | `main` | `this PR` | | ------- | --------- | | 08:38:34 - openhands:INFO: eval_infer.py:443 - # resolved: 42 / 100. (42.00%)<br>08:38:...
diff --git a/.github/workflows/openhands-resolver.yml b/.github/workflows/openhands-resolver.yml new file mode 100644 index 0000000..8ebb451 --- /dev/null +++ b/.github/workflows/openhands-resolver.yml @@ -0,0 +1,32 @@ +name: Resolve Issue with OpenHands + +on: + issues: + types: [labeled] + pull_request: + typ...
Add file/folder info in `view` command Relevant to https://github.com/All-Hands-AI/OpenHands/issues/5506 ![image](https://github.com/user-attachments/assets/041ea5ad-af89-4b72-9786-32a40a95afc1) > Very weird.. after merging this into one of my branch and running a full SWE-Bench verified (compared to our prev 53% run...
All-Hands-AI/openhands-aci
diff --git a/tests/integration/test_oh_editor.py b/tests/integration/test_oh_editor.py index 309da8a..a905a83 100644 --- a/tests/integration/test_oh_editor.py +++ b/tests/integration/test_oh_editor.py @@ -44,14 +44,14 @@ def test_view_file(editor): def test_view_directory(editor): editor, test_file = editor - ...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 3 }, "num_modified_files": 2 }
0.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": null, "python": "3.12", "reqs_path": [ "requirements/base.txt" ], "test_cmd":...
aiohappyeyeballs==2.6.1 aiohttp==3.11.16 aiosignal==1.3.2 annotated-types==0.7.0 anyio==4.9.0 attrs==25.3.0 certifi==2025.1.31 charset-normalizer==3.4.1 click==8.1.8 diskcache==5.6.3 distro==1.9.0 filelock==3.18.0 flake8==7.2.0 frozenlist==1.5.0 fsspec==2025.3.2 gitdb==4.0.12 GitPython==3.1.44 grep-ast==0.3.3 h11==0.14...
name: openhands-aci 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 - bzip2=1.0.8=h5eee18b_6 - ca-certificates=2025.2.25=h06a4308_0 - expat=2.6.4=h6a678d5_0 - ld_impl_linux-64...
[ "tests/integration/test_oh_editor.py::test_view_directory" ]
[]
[ "tests/integration/test_oh_editor.py::test_view_file", "tests/integration/test_oh_editor.py::test_create_file", "tests/integration/test_oh_editor.py::test_create_with_empty_string", "tests/integration/test_oh_editor.py::test_create_with_none_file_text", "tests/integration/test_oh_editor.py::test_str_replace...
[]
MIT License
swerebench/sweb.eval.x86_64.all-hands-ai_1776_openhands-aci-55
swerebench/sweb.eval.x86_64.all-hands-ai_1776_openhands-aci-55
All-Hands-AI__openhands-resolver-107
2d68cabf4ea855bbaf9957b3a84e7ab9805a69e6
2024-09-28 03:45:58
2d68cabf4ea855bbaf9957b3a84e7ab9805a69e6
diff --git a/openhands_resolver/__init__.py b/openhands_resolver/__init__.py index e69de29..485f44a 100644 --- a/openhands_resolver/__init__.py +++ b/openhands_resolver/__init__.py @@ -0,0 +1,1 @@ +__version__ = "0.1.1" diff --git a/pyproject.toml b/pyproject.toml index c5c197d..22e8b5a 100644 --- a/pyproject.toml +++ ...
chore: bump version to 0.1.1 Everywhere necessary in the repo, the version number should be bumped from 0.1.0 to 0.1.1
All-Hands-AI/openhands-resolver
diff --git a/tests/test_version.py b/tests/test_version.py new file mode 100644 index 0000000..aea8325 --- /dev/null +++ b/tests/test_version.py @@ -0,0 +1,19 @@ +import toml +import os + +def test_version(): + # Get the directory of the current file + current_dir = os.path.dirname(os.path.abspath(__file__)) + ...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_added_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 2, "test_score": 2 }, "num_modified_files": 1 }
unknown
{ "env_vars": null, "env_yml_path": null, "install": "poetry install --with test --with dev", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "poetry", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.11", "reqs_path": null, "test_cmd": "pytest --no-header -r...
aenum==3.1.15 aiohappyeyeballs==2.4.0 aiohttp==3.10.5 aiolimiter==1.1.0 aiosignal==1.3.1 annotated-types==0.7.0 anthropic==0.34.2 anyio==4.4.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 attrs==24.2.0 bashlex==0.18 beartype==0.12.0 beautifulsoup4==4.12.3 black==24.8.0 blinker==1.8.2 boto3==1.35.20 botocore==1.35.2...
name: openhands-resolver 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 - blas=1.0=openblas - brotli-python=1.0.9=py311h6a678d5_9 - bzip2=1.0.8=h5eee18b_6 - ca-certificates=2...
[ "tests/test_version.py::test_version" ]
[]
[]
[]
MIT License
null
null
All-Hands-AI__openhands-resolver-123
84ccb9b29d786c3cb16f100b31ee456ddc622fd0
2024-09-28 13:50:45
64772c21bb49ab9518d12573bd7a6e2b8651e80a
diff --git a/openhands_resolver/send_pull_request.py b/openhands_resolver/send_pull_request.py index dd227b7..3d06d3e 100644 --- a/openhands_resolver/send_pull_request.py +++ b/openhands_resolver/send_pull_request.py @@ -139,6 +139,11 @@ def make_commit(repo_dir: str, issue: GithubIssue) -> None: raise Runtime...
Better handling of when a branch already exists Currently, in `github_resolver/send_pull_request.py`, when pushing to github for a particular issue, the branch name is fixed here: https://github.com/All-Hands-AI/openhands-resolver/blob/44aa2907d70852b7f98786c673304cc18b76d43e/openhands_resolver/send_pull_request.py#L1...
All-Hands-AI/openhands-resolver
diff --git a/tests/test_send_pull_request.py b/tests/test_send_pull_request.py index b67edd5..fb2f393 100644 --- a/tests/test_send_pull_request.py +++ b/tests/test_send_pull_request.py @@ -213,7 +213,10 @@ def test_send_pull_request( repo_path = os.path.join(mock_output_dir, "repo") # Mock API responses - ...
{ "commit_name": "merge_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.1
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.11", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --co...
aenum==3.1.15 aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiolimiter==1.2.1 aiosignal==1.3.2 annotated-types==0.7.0 anthropic==0.49.0 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 attrs==25.3.0 bashlex==0.18 beartype==0.12.0 beautifulsoup4==4.13.3 blinker==1.9.0 boto3==1.37.23 botocore==1.37.23 browsergym=...
name: openhands-resolver 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 - bzip2=1.0.8=h5eee18b_6 - ca-certificates=2025.2.25=h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld_im...
[ "tests/test_send_pull_request.py::test_send_pull_request[branch]", "tests/test_send_pull_request.py::test_send_pull_request[draft]", "tests/test_send_pull_request.py::test_send_pull_request[ready]", "tests/test_send_pull_request.py::test_send_pull_request_branch_naming" ]
[]
[ "tests/test_send_pull_request.py::test_load_single_resolver_output", "tests/test_send_pull_request.py::test_apply_patch", "tests/test_send_pull_request.py::test_apply_patch_preserves_line_endings", "tests/test_send_pull_request.py::test_apply_patch_create_new_file", "tests/test_send_pull_request.py::test_ap...
[]
MIT License
swerebench/sweb.eval.x86_64.all-hands-ai_1776_openhands-resolver-123
swerebench/sweb.eval.x86_64.all-hands-ai_1776_openhands-resolver-123
All-Hands-AI__openhands-resolver-124
6a547e11e71659cd97f776157e68b21277b25359
2024-09-28 13:51:05
64772c21bb49ab9518d12573bd7a6e2b8651e80a
diff --git a/openhands_resolver/send_pull_request.py b/openhands_resolver/send_pull_request.py index 1b58e14..dd227b7 100644 --- a/openhands_resolver/send_pull_request.py +++ b/openhands_resolver/send_pull_request.py @@ -285,7 +285,7 @@ def process_all_successful_issues( ) -if __name__ == "__main__": +...
Add end-to-end tests for `send_pull_request.py` Currently, there are no tests to make sure that argument parsing, etc. are working properly in `openhands_resolver/send_pull_request.py`. In order to fix this, we can do the following: 1. Move the entirety of the content after `if __name__ == "__main__":` to a new `ma...
All-Hands-AI/openhands-resolver
diff --git a/tests/test_send_pull_request.py b/tests/test_send_pull_request.py index 681cacb..b67edd5 100644 --- a/tests/test_send_pull_request.py +++ b/tests/test_send_pull_request.py @@ -519,3 +519,59 @@ def test_process_all_successful_issues( ) # Add more assertions as needed to verify the behavior of th...
{ "commit_name": "merge_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 3 }, "num_modified_files": 1 }
0.1
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest pytest-cov pytest-xdist pytest-mock pytest-asyncio", "pytest" ], "pre_install": null, "python": "3.11", "reqs_...
aenum==3.1.15 aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiolimiter==1.2.1 aiosignal==1.3.2 annotated-types==0.7.0 anthropic==0.49.0 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 attrs==25.3.0 bashlex==0.18 beartype==0.12.0 beautifulsoup4==4.13.3 blinker==1.9.0 boto3==1.37.23 botocore==1.37.23 browsergym=...
name: openhands-resolver 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 - bzip2=1.0.8=h5eee18b_6 - ca-certificates=2025.2.25=h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld_im...
[ "tests/test_send_pull_request.py::test_main" ]
[]
[ "tests/test_send_pull_request.py::test_load_single_resolver_output", "tests/test_send_pull_request.py::test_apply_patch", "tests/test_send_pull_request.py::test_apply_patch_preserves_line_endings", "tests/test_send_pull_request.py::test_apply_patch_create_new_file", "tests/test_send_pull_request.py::test_ap...
[]
MIT License
null
null
All-Hands-AI__openhands-resolver-137
63dd2c9c905a375db53785c0a69e56951a279189
2024-09-30 20:44:17
64772c21bb49ab9518d12573bd7a6e2b8651e80a
diff --git a/openhands_resolver/__init__.py b/openhands_resolver/__init__.py index 1276d02..0a8da88 100644 --- a/openhands_resolver/__init__.py +++ b/openhands_resolver/__init__.py @@ -1,1 +1,1 @@ -__version__ = "0.1.5" +__version__ = "0.1.6" diff --git a/openhands_resolver/send_pull_request.py b/openhands_resolver/sen...
"Unterminated quoted string" On a run of the github action, the following error was encountered: ```bash Run if [ "true" == "true" ]; then Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/opt/hostedtoolcache/Pyth...
All-Hands-AI/openhands-resolver
diff --git a/tests/test_send_pull_request.py b/tests/test_send_pull_request.py index fb2f393..4853db3 100644 --- a/tests/test_send_pull_request.py +++ b/tests/test_send_pull_request.py @@ -1,6 +1,8 @@ import os +import shlex import tempfile import pytest +import subprocess from unittest.mock import patch, MagicMock...
{ "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": 0, "test_score": 0 }, "num_modified_files": 3 }
0.1
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.11", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --co...
aenum==3.1.15 aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiolimiter==1.2.1 aiosignal==1.3.2 annotated-types==0.7.0 anthropic==0.49.0 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 attrs==25.3.0 bashlex==0.18 beartype==0.12.0 beautifulsoup4==4.13.3 blinker==1.9.0 boto3==1.37.23 botocore==1.37.23 browsergym=...
name: openhands-resolver 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 - bzip2=1.0.8=h5eee18b_6 - ca-certificates=2025.2.25=h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld_im...
[ "tests/test_send_pull_request.py::test_process_single_issue_unsuccessful", "tests/test_send_pull_request.py::test_make_commit_escapes_issue_title" ]
[]
[ "tests/test_send_pull_request.py::test_load_single_resolver_output", "tests/test_send_pull_request.py::test_apply_patch", "tests/test_send_pull_request.py::test_apply_patch_preserves_line_endings", "tests/test_send_pull_request.py::test_apply_patch_create_new_file", "tests/test_send_pull_request.py::test_ap...
[]
MIT License
swerebench/sweb.eval.x86_64.all-hands-ai_1776_openhands-resolver-137
swerebench/sweb.eval.x86_64.all-hands-ai_1776_openhands-resolver-137
Altran-PT-GDC__Robot-Framework-Mainframe-3270-Library-93
2b1b7717383044d4112e699e8cff5c456a4c9c49
2023-03-26 09:58:35
2b1b7717383044d4112e699e8cff5c456a4c9c49
diff --git a/Mainframe3270/x3270.py b/Mainframe3270/x3270.py index 9b84413..b39724c 100644 --- a/Mainframe3270/x3270.py +++ b/Mainframe3270/x3270.py @@ -1,5 +1,6 @@ import os import re +import shlex import socket import time from datetime import timedelta @@ -64,12 +65,13 @@ class x3270(object): `extra_ar...
Enable shell-like syntax for `extra_args` from file With the current implementation of `x3270._process_args` arguments from a file are split by whitespaces, e.g. ```txt # argfile.txt -charset french ``` becomes ["-charset", "french"]. There are, however, resources that allow whitespace between the arguments, ...
Altran-PT-GDC/Robot-Framework-Mainframe-3270-Library
diff --git a/utest/x3270/resources/argfile_oneline.txt b/utest/x3270/resources/argfile_oneline.txt index 8796b02..fc32d32 100644 --- a/utest/x3270/resources/argfile_oneline.txt +++ b/utest/x3270/resources/argfile_oneline.txt @@ -1,1 +1,1 @@ --charset german +-charset german -xrm "*acceptHostname: myhost.com" -xrm '*bla...
{ "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 }
3.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", "pytest-cov", "pytest-xdist", "pytest-mock", "pytest-asyncio" ], "pre_install": [ "apt-get update", ...
backports.tarfile==1.2.0 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 coverage==7.8.0 cryptography==44.0.2 docutils==0.21.2 exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work execnet==2.1.1 id==1.5.0 idna==3.10 importlib_metadata==8.6.1 iniconfig @ file:///home/linux1/recipes/ci/iniconfig_161...
name: Robot-Framework-Mainframe-3270-Library 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 - inico...
[ "utest/x3270/test_connection.py::test_open_connection_with_extra_args_oneline", "utest/x3270/test_connection.py::test_open_connection_none_windows_extra_args_oneline" ]
[ "utest/x3270/test_connection.py::test_open_connection", "utest/x3270/test_connection.py::test_open_connection_with_lu", "utest/x3270/test_connection.py::test_open_connection_with_port", "utest/x3270/test_connection.py::test_open_connection_with_port_from_argument_and_from_extra_args" ]
[ "utest/x3270/test_connection.py::test_open_connection_existing_emulator", "utest/x3270/test_connection.py::test_open_connection_with_extra_args_multiline", "utest/x3270/test_connection.py::test_open_connection_with_extra_args_multiline_comments", "utest/x3270/test_connection.py::test_close_connection", "ute...
[]
MIT License
null
null
AmiiThinks__driving_gridworld-13
fbc47c68cfade4e7d95ba59a3990dfef196389a6
2018-06-12 21:08:06
fbc47c68cfade4e7d95ba59a3990dfef196389a6
diff --git a/driving_gridworld/road.py b/driving_gridworld/road.py index cb519ef..559362f 100644 --- a/driving_gridworld/road.py +++ b/driving_gridworld/road.py @@ -142,13 +142,12 @@ def combinations(iterable, r, collection=tuple): class Road(object): - def __init__(self, num_rows, car, obstacles, speed_limit):...
Enforce a hard limit on the speed limit in `Road` to the number of rows + 1 If the speed limit is larger than this, then the physical plausibility of the similar breaks, because the number of possible obstacle encounters across a fixed distance can depend on the car's speed and the range of its headlights (the number o...
AmiiThinks/driving_gridworld
diff --git a/test/road_test.py b/test/road_test.py index ae22a47..d8aeb36 100644 --- a/test/road_test.py +++ b/test/road_test.py @@ -9,9 +9,8 @@ import pytest def test_transition_probs_without_obstacles_are_always_1(): num_rows = 4 obstacles = [] - speed_limit = 1 car_inst = Car(0, 0, 1) - road_te...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 1 }
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" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "...
coverage==7.8.0 -e git+https://github.com/AmiiThinks/driving_gridworld.git@fbc47c68cfade4e7d95ba59a3990dfef196389a6#egg=driving_gridworld exceptiongroup==1.2.2 fire==0.7.0 future==0.15.2 iniconfig==2.1.0 numpy==2.0.2 packaging==24.2 pluggy==1.5.0 pycolab==1.2 pytest==8.3.5 pytest-cov==6.0.0 six==1.17.0 termcolor==3.0.0...
name: driving_gridworld 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...
[ "test/road_test.py::test_transition_probs_without_obstacles_are_always_1", "test/road_test.py::test_no_obstacles_revealed_is_the_only_valid_set_of_revealed_obstacles_when_all_obstacles_already_on_road[obst0]", "test/road_test.py::test_no_obstacles_revealed_is_the_only_valid_set_of_revealed_obstacles_when_all_ob...
[]
[]
[]
MIT License
null
null
AnalogJ__lexicon-264
59a1372a2ba31204f77a8383d0880ba62e0e6607
2018-07-12 11:45:27
59a1372a2ba31204f77a8383d0880ba62e0e6607
diff --git a/lexicon/__main__.py b/lexicon/__main__.py index d674809e..ad243f18 100644 --- a/lexicon/__main__.py +++ b/lexicon/__main__.py @@ -7,6 +7,7 @@ import importlib import logging import os import sys +import json import pkg_resources @@ -19,16 +20,19 @@ logger = logging.getLogger(__name__) def BasePr...
[CLI] Pretty output for list method Is there any plans to have pretty outputs (table or at least formatted) for the ```list``` operation on the CLI? Right now, the CLI assumes a verbosity of DEBUG level, and outputs the Python representation of the result (managed by the provider). If --log_level=ERROR is used, no o...
AnalogJ/lexicon
diff --git a/tests/test_client.py b/tests/test_client.py index 68f5b1f7..d41fc1e7 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -1,6 +1,7 @@ import lexicon.client import pytest import os + def test_Client_init(): options = { 'provider_name':'base', diff --git a/tests/test_output.py b...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 3 }, "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": [ "pytest", "pytest-cov", "python-coveralls" ], "pre_install": [ "apt-get update", "apt-get install -y...
certifi @ file:///croot/certifi_1671487769961/work/certifi charset-normalizer==3.4.1 coverage==7.2.7 -e git+https://github.com/AnalogJ/lexicon.git@59a1372a2ba31204f77a8383d0880ba62e0e6607#egg=dns_lexicon exceptiongroup==1.2.2 filelock==3.12.2 future==1.0.0 idna==3.10 importlib-metadata==6.7.0 iniconfig==2.0.0 packaging...
name: lexicon channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - li...
[ "tests/test_output.py::test_output_function_outputs_json_as_table", "tests/test_output.py::test_output_function_outputs_json_as_table_with_no_header", "tests/test_output.py::test_output_function_outputs_json_as_json_string", "tests/test_output.py::test_output_function_output_nothing_when_quiet", "tests/test...
[]
[ "tests/test_client.py::test_Client_init", "tests/test_client.py::test_Client_init_when_domain_includes_subdomain_should_strip", "tests/test_client.py::test_Client_init_with_delegated_domain_name", "tests/test_client.py::test_Client_init_with_delegated_domain_fqdn", "tests/test_client.py::test_Client_init_wi...
[]
MIT License
null
null
AnalogJ__lexicon-336
27106bded0bfa8d44ffe3f449ca2e4871588be0f
2018-12-27 22:27:28
27106bded0bfa8d44ffe3f449ca2e4871588be0f
diff --git a/lexicon/cli.py b/lexicon/cli.py index dbef1ae2..0b5425ce 100644 --- a/lexicon/cli.py +++ b/lexicon/cli.py @@ -14,12 +14,10 @@ from lexicon.parser import generate_cli_main_parser logger = logging.getLogger(__name__) # pylint: disable=C0103 -def generate_table_result(lexicon_logger, output=None, withou...
Memset provider: TypeError: string indices must be integers Hi, When using the Memset provider with the default table formatting I get this error: ```bash $ lexicon memset create example.com TXT --name _acme-challenge.example.com --content BLAH --ttl 300 Traceback (most recent call last): File "/usr/local/bi...
AnalogJ/lexicon
diff --git a/tests/test_output.py b/tests/test_output.py index f95ffbd5..f5673110 100644 --- a/tests/test_output.py +++ b/tests/test_output.py @@ -1,12 +1,9 @@ +""" Ensure that stdout corresponds to the given reference output """ from __future__ import absolute_import -import importlib import json import logging -im...
{ "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": 3 }, "num_modified_files": 1 }
3.0
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.7", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --color=no...
attrs @ file:///croot/attrs_1668696182826/work certifi @ file:///croot/certifi_1671487769961/work/certifi cffi==1.15.1 charset-normalizer==3.4.1 cryptography==44.0.2 -e git+https://github.com/AnalogJ/lexicon.git@27106bded0bfa8d44ffe3f449ca2e4871588be0f#egg=dns_lexicon filelock==3.12.2 flit_core @ file:///opt/conda/cond...
name: lexicon channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=22.1.0=py37h06a4308_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - flit-co...
[ "tests/test_output.py::test_output_function_outputs_json_as_table", "tests/test_output.py::test_output_function_outputs_json_as_table_with_no_header", "tests/test_output.py::test_output_function_outputs_json_as_json_string", "tests/test_output.py::test_output_function_output_nothing_when_quiet", "tests/test...
[]
[]
[]
MIT License
null
null
AngryMaciek__angry-moran-simulator-24
a065091015628bd568f9168b3abf3d8c84167be7
2021-04-01 18:07:33
a065091015628bd568f9168b3abf3d8c84167be7
codecov-io: # [Codecov](https://codecov.io/gh/AngryMaciek/angry-moran-simulator/pull/24?src=pr&el=h1) Report > Merging [#24](https://codecov.io/gh/AngryMaciek/angry-moran-simulator/pull/24?src=pr&el=desc) (e294e6b) into [master](https://codecov.io/gh/AngryMaciek/angry-moran-simulator/commit/a065091015628bd568f9168b3abf...
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fbc60d7..db7d90e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -51,7 +51,7 @@ jobs: run: | flake8 --max-line-length=88 --ignore F401 moranpycess/__init__.py flake8 --max-line-length=88...
Python modularisation double-check the modularisation setup in the `init`.
AngryMaciek/angry-moran-simulator
diff --git a/tests/unit/MoranProcess.py b/tests/unit/MoranProcess.py index 4f55bb8..7c8acd1 100644 --- a/tests/unit/MoranProcess.py +++ b/tests/unit/MoranProcess.py @@ -290,20 +290,12 @@ def test_plots(self): random.seed(0) simulation = mp.simulate(generations=25000) # test the plotting: - ...
{ "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": 2, "issue_text_score": 3, "test_score": 0 }, "num_modified_files...
unknown
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.7", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --color=no...
attrs @ file:///croot/attrs_1668696182826/work certifi @ file:///croot/certifi_1671487769961/work/certifi cycler==0.11.0 flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core fonttools==4.38.0 importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1648562407465/work iniconfig...
name: angry-moran-simulator channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=22.1.0=py37h06a4308_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308...
[ "tests/unit/MoranProcess.py::TestClass::test_plots", "tests/unit/MoranProcess2D.py::TestClass::test_plots2D", "tests/unit/MoranProcess3D.py::TestClass::test_plots3D" ]
[]
[ "tests/unit/MoranProcess.py::TestClass::test_classMoranProcessInit", "tests/unit/MoranProcess.py::TestClass::test_classMoranProcess_roulette_wheel_selection_Birth", "tests/unit/MoranProcess.py::TestClass::test_classMoranProcess_roulette_wheel_selection_Death", "tests/unit/MoranProcess.py::TestClass::test_clas...
[]
MIT License
null
null
AngryMaciek__angry-moran-simulator-25
3f82c988f0bb53365081ef437914c0286b200b49
2021-04-02 00:11:14
3f82c988f0bb53365081ef437914c0286b200b49
codecov-io: # [Codecov](https://codecov.io/gh/AngryMaciek/angry-moran-simulator/pull/25?src=pr&el=h1) Report > Merging [#25](https://codecov.io/gh/AngryMaciek/angry-moran-simulator/pull/25?src=pr&el=desc) (0c291ae) into [master](https://codecov.io/gh/AngryMaciek/angry-moran-simulator/commit/3f82c988f0bb53365081ef437914...
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index db7d90e..b0d5816 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -40,6 +40,7 @@ jobs: black --check moranpycess/MoranProcess.py black --check moranpycess/MoranProcess2D.py black --chec...
Custom exceptions * add exceptions file with custom exceptsions as in the `mlem` project
AngryMaciek/angry-moran-simulator
diff --git a/tests/unit/MoranProcess.py b/tests/unit/MoranProcess.py index 7c8acd1..a987f5a 100644 --- a/tests/unit/MoranProcess.py +++ b/tests/unit/MoranProcess.py @@ -213,7 +213,7 @@ def test_classMoranProcessWrongInit(self): label_list = ["A", "B", "C"] BirthPayoffMatrix = np.array([[10, 20], [30, ...
{ "commit_name": "merge_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": 2, "issue_text_score"...
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.7", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --color=no...
attrs @ file:///croot/attrs_1668696182826/work certifi @ file:///croot/certifi_1671487769961/work/certifi cycler==0.11.0 flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core fonttools==4.38.0 importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1648562407465/work iniconfig...
name: angry-moran-simulator channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=22.1.0=py37h06a4308_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308...
[ "tests/unit/MoranProcess.py::TestClass::test_classMoranProcessWrongInit", "tests/unit/MoranProcess2D.py::TestClass::test_classMoranProcess2DWrongInit", "tests/unit/MoranProcess3D.py::TestClass::test_classMoranProcess3DWrongInit" ]
[]
[ "tests/unit/MoranProcess.py::TestClass::test_classMoranProcessInit", "tests/unit/MoranProcess.py::TestClass::test_classMoranProcess_roulette_wheel_selection_Birth", "tests/unit/MoranProcess.py::TestClass::test_classMoranProcess_roulette_wheel_selection_Death", "tests/unit/MoranProcess.py::TestClass::test_clas...
[]
MIT License
null
null
AnthonyBloomer__daftlistings-129
0ba374b12e65df2df771fea158aa8e9a390180b2
2021-04-10 23:39:15
0ba374b12e65df2df771fea158aa8e9a390180b2
diff --git a/README.md b/README.md index 9eba33d..5f28518 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ listings = daft.search() for listing in listings: print(listing.title) - print(listing.abbreviated_price) + print(listing.price) print(listing.daft_link) # ... ``` @@ -60,7 +60,7 @...
Incorrect results for listings grouped in the same development When we find grouped listings in a search, the price is returned as "from x" where x is the lowest price in the development. Similarly in such cases the number of bedrooms we get back contains all those in the development e.g. "1, 2, 3 & 4 bed", and the num...
AnthonyBloomer/daftlistings
diff --git a/tests/test_daft_search.py b/tests/test_daft_search.py index 12877bb..9fd991e 100644 --- a/tests/test_daft_search.py +++ b/tests/test_daft_search.py @@ -146,8 +146,8 @@ class DaftTest(unittest.TestCase): self.assertEqual(listing.id, 1443907) self.assertEqual(listing.title, "Capital Dock Re...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_hyperlinks", "has_media", "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": 0 }, "num_modified_fi...
unknown
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": [ "requirements.txt" ], "test_cmd": "pytest --...
beautifulsoup4==4.13.3 branca==0.4.2 certifi==2020.12.5 chardet==4.0.0 -e git+https://github.com/AnthonyBloomer/daftlistings.git@0ba374b12e65df2df771fea158aa8e9a390180b2#egg=daftlistings enum34==1.1.10 exceptiongroup==1.2.2 folium==0.12.1 html2text==2024.2.26 idna==2.10 iniconfig==2.1.0 Jinja2==2.11.3 MarkupSafe==1.1.1...
name: daftlistings 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_daft_search.py::DaftTest::test_listing" ]
[ "tests/test_daft_search.py::DaftTest::test_any_to_rent", "tests/test_daft_search.py::DaftTest::test_apartments_to_rent", "tests/test_daft_search.py::DaftTest::test_distance", "tests/test_daft_search.py::DaftTest::test_new_homes", "tests/test_daft_search.py::DaftTest::test_studios_to_rent" ]
[ "tests/test_daft_search.py::DaftTest::test_search_basic", "tests/test_daft_search.py::DaftTest::test_search_properties_for_rent", "tests/test_daft_search.py::DaftTest::test_search_properties_for_sale" ]
[]
MIT License
null
null
ApptuitAI__apptuit-py-10
65d256693243562917c4dfd0e8a753781b153b36
2018-10-31 06:42:07
65d256693243562917c4dfd0e8a753781b153b36
diff --git a/apptuit/apptuit_client.py b/apptuit/apptuit_client.py index afa6792..2049aa9 100644 --- a/apptuit/apptuit_client.py +++ b/apptuit/apptuit_client.py @@ -286,6 +286,23 @@ class DataPoint(object): raise ValueError("Tag value %s contains an invalid character, allowed characters are a-z, A-Z, 0...
DataPoint should validate parameters Right now DataPoint does not validate if the "value" parameter is int/long or float. Eventual API call fails if the value is a string (even representation of int/float). DataPoint should perform client side validation of all input parameters (metricname, tags, values) without wa...
ApptuitAI/apptuit-py
diff --git a/tests/test_send.py b/tests/test_send.py index f0d9b49..f8ee9a5 100644 --- a/tests/test_send.py +++ b/tests/test_send.py @@ -5,7 +5,7 @@ try: except ImportError: from mock import Mock, patch -from nose.tools import assert_raises, ok_, raises +from nose.tools import assert_raises, ok_, assert_is_not_...
{ "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.2
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "nose", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y lintian" ], "python": "3.6", ...
-e git+https://github.com/ApptuitAI/apptuit-py.git@65d256693243562917c4dfd0e8a753781b153b36#egg=apptuit attrs==22.2.0 certifi==2021.5.30 charset-normalizer==2.0.12 idna==3.10 importlib-metadata==4.8.3 iniconfig==1.1.1 nose==1.3.7 numpy==1.19.5 packaging==21.3 pandas==1.1.5 pluggy==1.0.0 py==1.11.0 pyparsing==3.1.4 pyte...
name: apptuit-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/test_send.py::test_invalid_datapoint_value", "tests/test_send.py::test_nonstring_invalid_datapoint_value" ]
[]
[ "tests/test_send.py::test_send_positive", "tests/test_send.py::test_send_server_error", "tests/test_send.py::test_invalid_chars_in_tag_keys", "tests/test_send.py::test_invalid_chars_in_tag_values", "tests/test_send.py::test_tags_not_dict", "tests/test_send.py::test_invalid_metric_name", "tests/test_send...
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.apptuitai_1776_apptuit-py-10
swerebench/sweb.eval.x86_64.apptuitai_1776_apptuit-py-10
ApptuitAI__apptuit-py-21
2b12a363e0db4a39fc2fa786e064429df26884be
2018-12-12 05:45:49
2b12a363e0db4a39fc2fa786e064429df26884be
diff --git a/apptuit/pyformance/apptuit_reporter.py b/apptuit/pyformance/apptuit_reporter.py index a8e2a65..1f6896e 100644 --- a/apptuit/pyformance/apptuit_reporter.py +++ b/apptuit/pyformance/apptuit_reporter.py @@ -10,13 +10,13 @@ class ApptuitReporter(Reporter): def __init__(self, registry=None, reporting_inter...
Global tags should not over-ride tags from the datapoint If the same tag key-value pair is on the datapoint and in global tags of the reporter, current implementation prefers the global tag: https://github.com/ApptuitAI/apptuit-py/blob/9872766e4838fced1a580f4da3b44acf5fd3ea81/apptuit/pyformance/apptuit_reporter.py#L62...
ApptuitAI/apptuit-py
diff --git a/tests/test_pyformance_reporter.py b/tests/test_pyformance_reporter.py index aaa6d1c..65d5537 100644 --- a/tests/test_pyformance_reporter.py +++ b/tests/test_pyformance_reporter.py @@ -3,7 +3,7 @@ """ import random import time -from nose.tools import assert_raises, assert_equals, assert_greater_equal +fr...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 1 }
0.3
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "nose", "pytest" ], "pre_install": null, "python": "3.6", "reqs_path": [ "requirements.txt" ], "test_cmd"...
-e git+https://github.com/ApptuitAI/apptuit-py.git@2b12a363e0db4a39fc2fa786e064429df26884be#egg=apptuit attrs==22.2.0 certifi==2021.5.30 charset-normalizer==2.0.12 idna==3.10 importlib-metadata==4.8.3 iniconfig==1.1.1 nose==1.3.7 numpy==1.19.5 packaging==21.3 pandas==1.1.5 pluggy==1.0.0 py==1.11.0 pyformance==0.4 pypar...
name: apptuit-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/test_pyformance_reporter.py::test_globaltags_override", "tests/test_pyformance_reporter.py::test_none_prefix" ]
[]
[ "tests/test_pyformance_reporter.py::test_send_negative", "tests/test_pyformance_reporter.py::test_reporter_thread_active", "tests/test_pyformance_reporter.py::test_invalid_metric_name", "tests/test_pyformance_reporter.py::test_invalid_tag", "tests/test_pyformance_reporter.py::test_invalid_registry", "test...
[]
Apache License 2.0
swerebench/sweb.eval.x86_64.apptuitai_1776_apptuit-py-21
swerebench/sweb.eval.x86_64.apptuitai_1776_apptuit-py-21
Arelle__Arelle-1107
aa0c3a3b471580e01a54cf37967a8dad04f7f92d
2024-03-04 20:59:09
aa0c3a3b471580e01a54cf37967a8dad04f7f92d
aviary-wf: ## Security Insights No security relevant content was detected by automated scans. ## Action Items * Review PR for [security impact](https://wiki.atl.workiva.net/display/SECURITY/Development+Security+Review+Guidelines); comment "security review required" if needed or unsure * Verify [`aviary.yaml`](https://...
diff --git a/arelle/ValidateXbrlCalcs.py b/arelle/ValidateXbrlCalcs.py index 068bcc36..519a150d 100644 --- a/arelle/ValidateXbrlCalcs.py +++ b/arelle/ValidateXbrlCalcs.py @@ -16,9 +16,11 @@ from arelle.XmlValidateConst import UNVALIDATED, VALID if TYPE_CHECKING: from _decimal import Decimal from arelle.Model...
Update insignificantDigits to handle large numbers ### What should we change and why? Hi, Hope all is well! We ran into a numeric fact value that was too large for ValidateXbrlCalcs.py (388163667900000000000000000). This caused an exception (please see below) in Arelle. This number was proforma and not actual. I r...
Arelle/Arelle
diff --git a/tests/unit_tests/arelle/test_validatexbrlcalcs.py b/tests/unit_tests/arelle/test_validatexbrlcalcs.py index 7e8c9ea5..28b81b7c 100644 --- a/tests/unit_tests/arelle/test_validatexbrlcalcs.py +++ b/tests/unit_tests/arelle/test_validatexbrlcalcs.py @@ -5,162 +5,88 @@ from _decimal import Decimal, InvalidOpera...
{ "commit_name": "head_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 2 }, "num_modified_files": 1 }
2.23
{ "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 pytest-cov pytest-xdist pytest-mock pytest-asyncio", "pytest" ], "pre_install": [ "apt-get update", ...
aniso8601==9.0.1 -e git+https://github.com/Arelle/Arelle.git@aa0c3a3b471580e01a54cf37967a8dad04f7f92d#egg=arelle_release asn1crypto==1.5.1 autocommand==2.2.2 backports.tarfile==1.2.0 certifi==2024.2.2 cheroot==10.0.0 CherryPy==18.9.0 coverage==7.8.0 cx-Oracle==8.3.0 et_xmlfile==2.0.0 exceptiongroup==1.2.2 execnet==2.1....
name: Arelle 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/unit_tests/arelle/test_validatexbrlcalcs.py::test_insignificantDigits[1234--1-result1]", "tests/unit_tests/arelle/test_validatexbrlcalcs.py::test_insignificantDigits[1234-1-None]", "tests/unit_tests/arelle/test_validatexbrlcalcs.py::test_insignificantDigits[-1234--1-result5]", "tests/unit_tests/arelle/...
[]
[ "tests/unit_tests/arelle/test_validatexbrlcalcs.py::test_insignificantDigits[1234--5-result0]", "tests/unit_tests/arelle/test_validatexbrlcalcs.py::test_insignificantDigits[1234-0-None]", "tests/unit_tests/arelle/test_validatexbrlcalcs.py::test_insignificantDigits[-1234--5-result4]", "tests/unit_tests/arelle/...
[]
Apache License 2.0
null
null
Arelle__Arelle-393
63ebccd38bdc54db1143c56f367159e0a6251109
2022-10-04 02:36:01
63ebccd38bdc54db1143c56f367159e0a6251109
diff --git a/arelle/ModelObject.py b/arelle/ModelObject.py index 302f7b25..a527ac48 100644 --- a/arelle/ModelObject.py +++ b/arelle/ModelObject.py @@ -10,7 +10,6 @@ from typing import TYPE_CHECKING, Any, Generator, Optional, cast from lxml import etree from arelle import Locale from arelle.ModelValue import qname, q...
arelle.XbrlConst circular import ### What happened? A circular import was detected while attempting to consume the latest version of Arelle in another service: `arelle.XbrlConst` -> `arelle.ModelValue` -> `arelle.ModelObject` -> `arelle.XmlUtil` -> `arelle.XbrlConst` ``` Traceback (most recent call last): File...
Arelle/Arelle
diff --git a/tests/unit_tests/arelle/test_import.py b/tests/unit_tests/arelle/test_import.py new file mode 100644 index 00000000..4ca4918c --- /dev/null +++ b/tests/unit_tests/arelle/test_import.py @@ -0,0 +1,47 @@ +import glob +import os.path +import subprocess +import sys + +import pytest + +KNOWN_FAILURES = frozense...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_git_commit_hash", "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": 1 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[Crypto,DB,EFM,ObjectMaker,WebServer]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": [ "requiremen...
aniso8601==9.0.1 -e git+https://github.com/Arelle/Arelle.git@63ebccd38bdc54db1143c56f367159e0a6251109#egg=arelle_release asn1crypto==1.5.1 autocommand==2.2.2 backports.tarfile==1.2.0 cheroot==8.6.0 CherryPy==18.8.0 convertdate==2.4.0 cycler==0.12.1 et_xmlfile==2.0.0 exceptiongroup==1.2.2 fonttools==4.56.0 graphviz==0.2...
name: Arelle 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/unit_tests/arelle/test_import.py::test[ModelObject.py]", "tests/unit_tests/arelle/test_import.py::test[XhtmlValidate.py]", "tests/unit_tests/arelle/test_import.py::test[XbrlConst.py]", "tests/unit_tests/arelle/test_import.py::test[ViewWinProperties.py]", "tests/unit_tests/arelle/test_import.py::test[...
[]
[ "tests/unit_tests/arelle/test_import.py::test[_version.py]", "tests/unit_tests/arelle/test_import.py::test[typing.py]", "tests/unit_tests/arelle/test_import.py::test[XmlValidateSchema.py]", "tests/unit_tests/arelle/test_import.py::test[XmlValidateParticles.py]", "tests/unit_tests/arelle/test_import.py::test...
[]
Apache License 2.0
null
null
ArkEcosystem__python-crypto-116
1bd016f76b41eba9711be748c1caf20d8042f590
2021-02-16 01:39:53
1bd016f76b41eba9711be748c1caf20d8042f590
diff --git a/crypto/transactions/builder/htlc_lock.py b/crypto/transactions/builder/htlc_lock.py index baa361d..0ee2c7a 100644 --- a/crypto/transactions/builder/htlc_lock.py +++ b/crypto/transactions/builder/htlc_lock.py @@ -6,11 +6,12 @@ class HtlcLock(BaseTransactionBuilder): transaction_type = TRANSACTION_HTL...
feat: add amount to HTLC Lock constructor A HTLC lock transaction requires an amount, but the current constructor does not allow for passing an amount.
ArkEcosystem/python-crypto
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 030dfd9..dc62fc3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.5, 3.6, 3.7] + python-version: [3.5, 3.6, 3...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "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_v2", "no_use_env": null, "packages": "requirements.txt", "pip_packages": null, "pre_install": null, "python": "3.6", "reqs_path": null, "test_cmd": "pytest -v -s" }
-e git+https://github.com/ArkEcosystem/python-crypto.git@1bd016f76b41eba9711be748c1caf20d8042f590#egg=arkecosystem_crypto asn1crypto==1.5.1 attrs==22.2.0 base58==2.1.1 binary-helpers==0.0.4 certifi==2021.5.30 cffi==1.15.1 coincurve==16.0.0 coverage==6.2 flake8==5.0.4 flake8-import-order==0.18.2 flake8-print==4.0.1 flak...
name: python-crypto 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/transactions/builder/test_htlc_lock.py::test_htlc_lock_transation_amount_not_int", "tests/transactions/builder/test_htlc_lock.py::test_htlc_lock_transation_amount_zero", "tests/transactions/builder/test_htlc_lock.py::test_htlc_lock_transation_amount_negative", "tests/transactions/builder/test_htlc_lock...
[]
[]
[]
MIT License
swerebench/sweb.eval.x86_64.arkecosystem_1776_python-crypto-116
swerebench/sweb.eval.x86_64.arkecosystem_1776_python-crypto-116
AspenWeb__pando.py-586
0e0bc40453df28bae014461822fa25daf8263ff8
2018-06-21 14:03:21
0e0bc40453df28bae014461822fa25daf8263ff8
diff --git a/pando/state_chain.py b/pando/state_chain.py index 9fb57a43..f7e60513 100644 --- a/pando/state_chain.py +++ b/pando/state_chain.py @@ -27,7 +27,7 @@ import traceback from aspen import resources from aspen.exceptions import NotFound, Redirect, UnindexedDirectory -from aspen.http.resource import Negotiati...
Requests for static files should return a 405 if method is unsafe Reticketing from <https://github.com/AspenWeb/aspen.py/issues/50>. Any request for a static file with a method other than `GET` or `HEAD` should be rejected with a 405.
AspenWeb/pando.py
diff --git a/tests/test_website_flow.py b/tests/test_website_flow.py index 0916e3c5..1d5d9966 100644 --- a/tests/test_website_flow.py +++ b/tests/test_website_flow.py @@ -46,3 +46,30 @@ def test_early_failures_dont_break_everything(harness): assert harness.client.GET("/", raise_immediately=False).code == 400 ...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 1 }
0.44
{ "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", "pyflakes" ], "pre_install": null, "python": "3.6", "reqs_path": [ "requirements.txt" ], "...
algorithm==1.2.0 aspen==1.0rc3 attrs==22.2.0 certifi==2021.5.30 dependency-injection==1.2.0 filesystem-tree==1.1.2 first==2.0.2 importlib-metadata==4.8.3 iniconfig==1.1.1 packaging==21.3 -e git+https://github.com/AspenWeb/pando.py.git@0e0bc40453df28bae014461822fa25daf8263ff8#egg=pando pluggy==1.0.0 py==1.11.0 pyflakes=...
name: pando.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 - l...
[ "tests/test_website_flow.py::test_static_resource_HEAD", "tests/test_website_flow.py::test_static_resource_PUT", "tests/test_website_flow.py::test_static_resource_unknown_method" ]
[]
[ "tests/test_website_flow.py::test_website_can_respond", "tests/test_website_flow.py::test_website_can_respond_with_negotiation", "tests/test_website_flow.py::test_404_comes_out_404", "tests/test_website_flow.py::test_user_can_influence_request_context_via_algorithm_state", "tests/test_website_flow.py::test_...
[]
MIT license
swerebench/sweb.eval.x86_64.aspenweb_1776_pando.py-586
swerebench/sweb.eval.x86_64.aspenweb_1776_pando.py-586
AspenWeb__pando.py-589
9882bbd583f24c91a18addd2261e686ca96cf3e1
2019-01-29 12:12:18
9882bbd583f24c91a18addd2261e686ca96cf3e1
diff --git a/pando/http/request.py b/pando/http/request.py index 40e9e1b2..423ec875 100644 --- a/pando/http/request.py +++ b/pando/http/request.py @@ -31,6 +31,7 @@ from __future__ import unicode_literals import re import string import sys +import traceback from six import PY2 @@ -39,7 +40,7 @@ from aspen.http....
Handling of non-ASCII URLs is still broken I tried to fix the `make_franken_uri()` function in #585, but it still doesn't handle all cases properly.
AspenWeb/pando.py
diff --git a/pando/testing/client.py b/pando/testing/client.py index d0e51df6..8e64f76c 100644 --- a/pando/testing/client.py +++ b/pando/testing/client.py @@ -164,7 +164,7 @@ class Client(object): return out - def build_wsgi_environ(self, method, path, body, content_type, cookies=None, **kw): + def b...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 3 }, "num_modified_files"...
0.45
{ "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", "pyflakes" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3....
algorithm==1.2.0 aspen==1.0rc3 attrs==22.2.0 certifi==2021.5.30 dependency-injection==1.2.0 filesystem-tree==1.1.2 first==2.0.2 importlib-metadata==4.8.3 iniconfig==1.1.1 packaging==21.3 -e git+https://github.com/AspenWeb/pando.py.git@9882bbd583f24c91a18addd2261e686ca96cf3e1#egg=pando pluggy==1.0.0 py==1.11.0 pyflakes=...
name: pando.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 - l...
[ "tests/test_request.py::test_from_wsgi_tolerates_non_ascii_environ", "tests/test_request.py::test_from_wsgi_tolerates_unicode_environ", "tests/test_website_flow.py::test_raise_200_for_OPTIONS" ]
[]
[ "tests/test_request.py::test_raw_is_raw", "tests/test_request.py::test_blank_by_default", "tests/test_request.py::test_request_line_version_defaults_to_HTTP_1_1", "tests/test_request.py::test_allow_default_method_is_GET", "tests/test_request.py::test_allow_allows_allowed", "tests/test_request.py::test_all...
[]
MIT license
null
null
AthenaEPI__dmipy-47
cf885b2ffc03dcfb56ce733cd8aea8a901646f5b
2019-05-01 21:21:10
04fb836b910c3e41c627d126d5d658d84b575ebe
diff --git a/dmipy/core/modeling_framework.py b/dmipy/core/modeling_framework.py index e596555..0346c1d 100644 --- a/dmipy/core/modeling_framework.py +++ b/dmipy/core/modeling_framework.py @@ -923,6 +923,45 @@ class MultiCompartmentModelProperties: kernel = np.hstack(kernel) return kernel + d...
Ability to easily set parameter optimization ranges General function to set ranges without having to separately set internal scales and ranges. Input should be in SI units and internally the range is divided by the max of the ranges and the scale is the max of the input ranges.
AthenaEPI/dmipy
diff --git a/dmipy/core/tests/test_raises_multicompartment_input.py b/dmipy/core/tests/test_raises_multicompartment_input.py index 3400c89..910fed6 100644 --- a/dmipy/core/tests/test_raises_multicompartment_input.py +++ b/dmipy/core/tests/test_raises_multicompartment_input.py @@ -77,3 +77,18 @@ def test_fitting_without...
{ "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": 0, "test_score": -1 }, "num_modified_files": 2 }
0.1
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov", "pytest-xdist", "pytest-mock", "pytest-asyncio" ], "pre_install": [ "apt-get ...
boto==2.49.0 clarabel==0.10.0 contourpy==1.3.0 coverage==7.8.0 cvxpy==1.6.4 cycler==0.12.1 deepdiff==8.4.2 dipy==1.10.0 -e git+https://github.com/AthenaEPI/dmipy.git@cf885b2ffc03dcfb56ce733cd8aea8a901646f5b#egg=dmipy exceptiongroup==1.2.2 execnet==2.1.1 fonttools==4.56.0 graphviz==0.20.3 h5py==3.13.0 importlib_resource...
name: dmipy 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....
[ "dmipy/core/tests/test_raises_multicompartment_input.py::test_set_parameter_optimization_bounds_raises" ]
[ "dmipy/core/tests/test_raises_multicompartment_input.py::test_raise_mix_with_tortuosity_in_mcsmtmodel", "dmipy/core/tests/test_raises_multicompartment_input.py::test_raise_mix_with_tortuosity_in_mcmodel" ]
[ "dmipy/core/tests/test_raises_multicompartment_input.py::test_raise_combination_NRM_and_others", "dmipy/core/tests/test_raises_multicompartment_input.py::test_raise_NRMmodel_in_spherical_mean", "dmipy/core/tests/test_raises_multicompartment_input.py::test_set_fixed_parameter_raises", "dmipy/core/tests/test_ra...
[]
MIT License
null
null
Aunsiels__pyformlang-13
6594ec8fa2efe9dbbc487285b483f146c1c92ee8
2021-08-16 11:45:07
6594ec8fa2efe9dbbc487285b483f146c1c92ee8
diff --git a/pyformlang/rsa/recursive_automaton.py b/pyformlang/rsa/recursive_automaton.py index 747472d..e534cb0 100644 --- a/pyformlang/rsa/recursive_automaton.py +++ b/pyformlang/rsa/recursive_automaton.py @@ -12,30 +12,6 @@ from pyformlang.cfg import CFG, Epsilon from pyformlang.rsa.box import Box -def remove_...
pyformlang.regular_expression.regex_objects.MisformedRegexError: Wrong parenthesis regex Regex Hi, @Aunsiels! Thank you for the awesome library! :clap: Unfortunately, while using your library, I got the error :bug: mentioned in the title. :disappointed: ### Environment * OS: Ubuntu 20.04 * Python: 3.8.10...
Aunsiels/pyformlang
diff --git a/pyformlang/rsa/tests/test_rsa.py b/pyformlang/rsa/tests/test_rsa.py index 308c38c..c80f4a2 100644 --- a/pyformlang/rsa/tests/test_rsa.py +++ b/pyformlang/rsa/tests/test_rsa.py @@ -63,16 +63,16 @@ class TestRSA(unittest.TestCase): self.assertEqual(new_box.dfa, rsa_1.get_box(Symbol("S")).dfa) ...
{ "commit_name": "head_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 0, "issue_text_score": 2, "test_score": 3 }, "num_modified_files": 1 }
unknown
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": null, "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path": [ "requireme...
alabaster==0.7.16 astroid==3.3.9 babel==2.17.0 backports.tarfile==1.2.0 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 coverage==7.8.0 cryptography==44.0.2 dill==0.3.9 docutils==0.21.2 exceptiongroup==1.2.2 gprof2dot==2024.6.6 id==1.5.0 idna==3.10 imagesize==1.4.1 importlib_metadata==8.6.1 iniconfig==2.1.0 i...
name: pyformlang 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...
[ "pyformlang/rsa/tests/test_rsa.py::TestRSA::test_from_text" ]
[]
[ "pyformlang/rsa/tests/test_rsa.py::TestRSA::test_add_box", "pyformlang/rsa/tests/test_rsa.py::TestRSA::test_creation", "pyformlang/rsa/tests/test_rsa.py::TestRSA::test_from_regex", "pyformlang/rsa/tests/test_rsa.py::TestRSA::test_is_equivalent_to" ]
[]
MIT License
null
null
AureumChaos__LEAP-144
b304c0b6c843804e7777c4cfbd1299efed152ae1
2021-06-15 21:02:02
affa97010d9092abe53c39208b1b9a4833b604b4
diff --git a/leap_ec/ops.py b/leap_ec/ops.py index 892ff40..e58a4d4 100644 --- a/leap_ec/ops.py +++ b/leap_ec/ops.py @@ -503,6 +503,69 @@ def n_ary_crossover(next_individual: Iterator, yield child2 +############################## +# Function proportional_selection +############################## +@curr...
Add fitness proportional selection Implement fitness proportional selection as: `select_prob(x,t) = fitness(x,t) / population_fitness(t)` where population fitness is the sum of each `fitness(x,t)` in the population. To avoid negative fitness we need to shift the each fitness by the minimum of the population: ...
AureumChaos/LEAP
diff --git a/tests/test_selection.py b/tests/test_selection.py index 56539ff..a658b48 100644 --- a/tests/test_selection.py +++ b/tests/test_selection.py @@ -13,6 +13,127 @@ from leap_ec.data import test_population from leap_ec.real_rep.problems import SpheroidProblem +############################## +# Tests for fi...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 2 }, "num_modified_files": 1 }
0.6
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov", "pytest-xdist", "pytest-mock", "pytest-asyncio" ], "pre_install": [ "apt...
alabaster==0.7.16 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 attrs==25.3.0 babel==2.17.0 beautifulsoup4==4.13.3 bleach==6.2.0 bokeh==3.4.3 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 click==8.1.8 cloudpickle==3.1.1 comm==0.2.2 contourpy==1....
name: LEAP channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=11.2...
[ "tests/test_selection.py::test_proportional_selection1", "tests/test_selection.py::test_proportional_selection2", "tests/test_selection.py::test_proportional_selection_offset", "tests/test_selection.py::test_proportional_selection_pop_min", "tests/test_selection.py::test_proportional_selection_custom_key" ]
[]
[ "tests/test_selection.py::test_naive_cyclic_selection", "tests/test_selection.py::test_cyclic_selection", "tests/test_selection.py::test_truncation_selection", "tests/test_selection.py::test_truncation_parents_selection", "tests/test_selection.py::test_truncation_selection_with_nan1", "tests/test_selectio...
[]
Academic Free License v3.0
null
null
AureumChaos__LEAP-147
c2ebbe880231337abb0b5fb94cb1c341faf72e34
2021-06-17 16:25:54
affa97010d9092abe53c39208b1b9a4833b604b4
diff --git a/leap_ec/ops.py b/leap_ec/ops.py index e58a4d4..e4f4767 100644 --- a/leap_ec/ops.py +++ b/leap_ec/ops.py @@ -543,29 +543,122 @@ def proportional_selection(population: List, offset=0, exponent: int = 1, >>> pop = Individual.evaluate_population(pop) >>> selected = proportional_selection(pop)...
Add stochastic universal sampling (SUS) Implement as: ```python3 @curry @listiter_op def sus_selection(population: List, n=None, shuffle=True, key=lambda x: x.fitness) -> Iterator ``` This will take a `population` of individuals and randomly find `n` evenly spaced points from which to sample the `population`....
AureumChaos/LEAP
diff --git a/tests/test_selection.py b/tests/test_selection.py index a658b48..c6bb843 100644 --- a/tests/test_selection.py +++ b/tests/test_selection.py @@ -14,11 +14,175 @@ from leap_ec.real_rep.problems import SpheroidProblem ############################## -# Tests for fitness_proportional_selection() +# Tests f...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_hyperlinks", "has_media" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 1 }, "num_modified_files": 1 }
0.6
{ "env_vars": null, "env_yml_path": [], "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov", "flake8" ], "pre_install": [], "python": "3.9", "reqs_path": [ "requirements.txt" ...
alabaster==0.7.16 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 attrs==25.3.0 babel==2.17.0 beautifulsoup4==4.13.3 bleach==6.2.0 bokeh==3.4.3 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 click==8.1.8 cloudpickle==3.1.1 comm==0.2.2 contourpy==1....
name: LEAP channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=11.2...
[ "tests/test_selection.py::test_sus_selection1", "tests/test_selection.py::test_sus_selection_shuffle", "tests/test_selection.py::test_sus_selection_offset", "tests/test_selection.py::test_sus_selection_pop_min", "tests/test_selection.py::test_sus_selection_custom_key", "tests/test_selection.py::test_sus_s...
[]
[ "tests/test_selection.py::test_proportional_selection1", "tests/test_selection.py::test_proportional_selection2", "tests/test_selection.py::test_proportional_selection_offset", "tests/test_selection.py::test_proportional_selection_pop_min", "tests/test_selection.py::test_proportional_selection_custom_key", ...
[]
Academic Free License v3.0
null
null
AureumChaos__LEAP-167
0616d364d5deabf34f140fa06b0436043a10c8bc
2021-08-11 18:54:07
cda51cff1009aecec01e0d04af421824c7603e90
diff --git a/leap_ec/executable_rep/rules.py b/leap_ec/executable_rep/rules.py index 1157078..87aa9da 100644 --- a/leap_ec/executable_rep/rules.py +++ b/leap_ec/executable_rep/rules.py @@ -244,7 +244,8 @@ class PittRulesDecoder(Decoder): return segment - return create_segmented_sequence(...
AttributesCSVProbe converts genome to a string Trying to get individual genome data over a generational EA and the genomes are strings. They should be whatever object the genome is: `list`, `numpy.array`, etc. This is only an issue when using the `do_dataframe=True` option otherwise the data is written to a file stream...
AureumChaos/LEAP
diff --git a/tests/segmented_rep/test_initializers.py b/tests/segmented_rep/test_initializers.py index a90f749..5293570 100644 --- a/tests/segmented_rep/test_initializers.py +++ b/tests/segmented_rep/test_initializers.py @@ -19,13 +19,16 @@ def gen_sequence(): def test_segmented_initializer_fixed_length(): """ cr...
{ "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": 0, "issue_text_score": 2, "test_score": 2 }, "num_modified_files": 4 }
0.7
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov", "pytest-mock", "pytest-asyncio" ], "pre_install": [ "apt-get update", "apt-ge...
alabaster==0.7.16 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 attrs==25.3.0 babel==2.17.0 beautifulsoup4==4.13.3 bleach==6.2.0 bokeh==3.4.3 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 click==8.1.8 cloudpickle==3.1.1 comm==0.2.2 contourpy==1....
name: LEAP channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=11.2...
[ "tests/segmented_rep/test_initializers.py::test_segmented_initializer_fixed_length", "tests/segmented_rep/test_initializers.py::test_segmented_initializer_variable_length" ]
[]
[]
[]
Academic Free License v3.0
null
null
AureumChaos__LEAP-217
f9141525a291b0f7220d0aef48c5bcd96f5d77c7
2022-08-24 17:25:07
cda51cff1009aecec01e0d04af421824c7603e90
diff --git a/leap_ec/executable_rep/rules.py b/leap_ec/executable_rep/rules.py index 87aa9da..1157078 100644 --- a/leap_ec/executable_rep/rules.py +++ b/leap_ec/executable_rep/rules.py @@ -244,8 +244,7 @@ class PittRulesDecoder(Decoder): return segment - rule_set = create_segmented_seque...
`genome_mutate_binomial()` needs to change from returning a function to accepted a genome and an `expected_num_mutations` argument. There is an unwritten standard (which needs to be written) for mutation "helper" functions that they accept an `expected_num_mutations` argument. Another expectation is that calling that ...
AureumChaos/LEAP
diff --git a/tests/segmented_rep/test_initializers.py b/tests/segmented_rep/test_initializers.py index 5293570..a90f749 100644 --- a/tests/segmented_rep/test_initializers.py +++ b/tests/segmented_rep/test_initializers.py @@ -19,16 +19,13 @@ def gen_sequence(): def test_segmented_initializer_fixed_length(): """ cr...
{ "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": 0, "test_score": 1 }, "num_modified_files": 5 }
0.7
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov" ], "pre_install": null, "python": "3.9", "reqs_path": [ "requirements.txt" ], ...
alabaster==0.7.16 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 attrs==25.3.0 babel==2.17.0 beautifulsoup4==4.13.3 bleach==6.2.0 bokeh==3.4.3 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 click==8.1.8 cloudpickle==3.1.1 comm==0.2.2 contourpy==1....
name: LEAP channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=11.2...
[ "tests/segmented_rep/test_initializers.py::test_segmented_initializer_fixed_length", "tests/segmented_rep/test_initializers.py::test_segmented_initializer_variable_length", "tests/segmented_rep/test_ops.py::test_apply_mutation_binomial_int" ]
[]
[ "tests/segmented_rep/test_ops.py::test_apply_mutation", "tests/segmented_rep/test_ops.py::test_apply_mutation_uniform_int", "tests/segmented_rep/test_ops.py::test_segmented_remove", "tests/segmented_rep/test_ops.py::test_segmented_add", "tests/segmented_rep/test_ops.py::test_segmented_copy", "tests/segmen...
[]
Academic Free License v3.0
null
null
AureumChaos__LEAP-272
3bb8d291cc6d72c6cdd33cc4533be95cdae35dc1
2023-05-25 19:26:36
2145ab2fd94f5ffdf0153c22696d56fab642c98a
diff --git a/examples/distributed/multiobjective_async_distributed.ipynb b/examples/distributed/multiobjective_async_distributed.ipynb new file mode 100644 index 0000000..20f3996 --- /dev/null +++ b/examples/distributed/multiobjective_async_distributed.ipynb @@ -0,0 +1,645 @@ +{ + "cells": [ + { + "cell_type": "code...
Crowding distance goes to NaN when one objective is flat If all individuals in a rank are equal on an objective, the distance goes to NaN. This is because the scale normalization in the divisor is zero, leading to a divide by zero error. The original paper doesn't describe a solution, but my intuition is to treat it as...
AureumChaos/LEAP
diff --git a/tests/multiobjective/test_async.py b/tests/multiobjective/test_async.py new file mode 100644 index 0000000..fccd0cf --- /dev/null +++ b/tests/multiobjective/test_async.py @@ -0,0 +1,57 @@ +from leap_ec.multiobjective.asynchronous import enlu_inds_rank +from leap_ec.multiobjective.ops import fast_nondominat...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 3 }, "num_modified_files": 2 }
0.8
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov" ], "pre_install": null, "python": "3.9", "reqs_path": [ "requirements.txt" ], "tes...
alabaster==0.7.16 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 attrs==25.3.0 babel==2.17.0 beautifulsoup4==4.13.3 bleach==6.2.0 bokeh==3.4.3 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 click==8.1.8 cloudpickle==3.1.1 comm==0.2.2 contourpy==1....
name: LEAP channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=11.2...
[ "tests/multiobjective/test_async.py::test_inds_rank1", "tests/multiobjective/test_async.py::test_inds_rank2", "tests/multiobjective/test_ops.py::test_sort_by_2nd_objective", "tests/multiobjective/test_ops.py::test_fast_nondominated_sort", "tests/multiobjective/test_ops.py::test_rank_ordinal_sort" ]
[ "tests/multiobjective/test_ops.py::test_crowding_distance_calc", "tests/multiobjective/test_ops.py::test_sorting_criteria" ]
[]
[]
Academic Free License v3.0
null
null
AureumChaos__LEAP-322
2145ab2fd94f5ffdf0153c22696d56fab642c98a
2024-02-22 19:03:19
2145ab2fd94f5ffdf0153c22696d56fab642c98a
diff --git a/.readthedocs.yaml b/.readthedocs.yaml index e875bbf..5549377 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -22,6 +22,7 @@ python: install: - requirements: docs/requirements.txt + build: os: ubuntu-22.04 tools: diff --git a/examples/simple/simple_ga.py b/examples/simple/simple_g...
Boolean representation outputs boolean values instead of binary strings. LEAP binary representation uses a numpy binary vector. (See, binary_rep.initializers.random_bernoulli_vector()). The string representation returns a vector of booleans instead of the expected binary string. E.g., n = np.random.rand(*shape) < ...
AureumChaos/LEAP
diff --git a/tests/distributed/test_evaluate.py b/tests/distributed/test_evaluate.py index 5f25845..cbc71b4 100644 --- a/tests/distributed/test_evaluate.py +++ b/tests/distributed/test_evaluate.py @@ -3,7 +3,7 @@ """ import numpy as np import pytest -from distributed import Client, LocalCluster +from distributed imp...
{ "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": 2, "issue_text_score": 0, "test_score": 3 }, "num_modified_files": 5 }
0.8
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov", "pytest-mock", "pytest-asyncio" ], "pre_install": [ "apt-get update", "apt-ge...
alabaster==0.7.16 antlr4-python3-runtime==4.9.3 anyio==4.9.0 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 arrow==1.3.0 asttokens==3.0.0 async-lru==2.0.5 attrs==25.3.0 babel==2.17.0 beautifulsoup4==4.13.3 bleach==6.2.0 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 click==8.0.4 cloudpickle==3.1.1 comm==0....
name: LEAP channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc-ng=11.2...
[ "tests/distributed/test_evaluate.py::test_good_eval", "tests/distributed/test_evaluate.py::test_broken_individual_eval" ]
[]
[]
[]
Academic Free License v3.0
null
null
Axelrod-Python__Axelrod-1275
c669a93c131148d295c14b4cac55a03b20c28af2
2019-12-01 07:25:20
c669a93c131148d295c14b4cac55a03b20c28af2
diff --git a/axelrod/strategies/__init__.py b/axelrod/strategies/__init__.py index 5398922b..72fb7822 100644 --- a/axelrod/strategies/__init__.py +++ b/axelrod/strategies/__init__.py @@ -63,6 +63,23 @@ all_strategies += [ # Distinguished strategy collections in addition to # `all_strategies` from _strategies.py demo...
Possible Implementation errors for first tournament strategies @id428 has written a detailed pdf (attached to this issue) [First Tournament Strategies.pdf](https://github.com/Axelrod-Python/Axelrod/files/3841326/First.Tournament.Strategies.pdf) with their cross examination of the strategies which is attached to the ...
Axelrod-Python/Axelrod
diff --git a/axelrod/tests/strategies/test_axelrod_first.py b/axelrod/tests/strategies/test_axelrod_first.py index 46dfac4a..9198141c 100644 --- a/axelrod/tests/strategies/test_axelrod_first.py +++ b/axelrod/tests/strategies/test_axelrod_first.py @@ -7,10 +7,10 @@ from .test_player import TestPlayer, test_four_vector ...
{ "commit_name": "head_commit", "failed_lite_validators": [ "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": 2, "test_score": -1 }, "num_modified_files": 12 }
4.7
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.7", "reqs_path": [ "requirements.txt" ], "test_cmd": "pytest --...
-e git+https://github.com/Axelrod-Python/Axelrod.git@c669a93c131148d295c14b4cac55a03b20c28af2#egg=Axelrod certifi @ file:///croot/certifi_1671487769961/work/certifi cloudpickle==2.2.1 cycler==0.11.0 dask==2022.2.0 exceptiongroup==1.2.2 fonttools==4.38.0 fsspec==2023.1.0 hypothesis==3.2.0 importlib-metadata==6.7.0 inico...
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 - certifi=2022.12.7=py37h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - li...
[ "axelrod/tests/strategies/test_axelrod_first.py::TestPlayer::test_clone", "axelrod/tests/strategies/test_axelrod_first.py::TestPlayer::test_equality_of_clone", "axelrod/tests/strategies/test_axelrod_first.py::TestPlayer::test_equality_of_pickle_clone", "axelrod/tests/strategies/test_axelrod_first.py::TestPlay...
[]
[]
[]
MIT License
null
null
Axelrod-Python__Axelrod-1418
784cdd361bc40119b828e97801d0bb58db3a5669
2023-05-03 11:18:09
d2184c66a44c2f49a88d356545c72e12f6d9d7bd
marcharper: Is the size of the action set the right thing to key on? Did you consider having tighter agreement between the player's outputs actions and the expectations of the Game rather than just mathematical compatibility? I.e. IPD_actions = {C, D} (where C, D come from the IPD Game), then we could programmatical...
diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 00000000..f334b70c --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,13 @@ +version: 2 + +build: + os: ubuntu-22.04 + tools: + python: "3.11" + +sphinx: + configuration: docs/conf.py + +python: + install: + - requirements: docs/requ...
Game classification Following up from #1413, to ensure strategies and algorithms are being used with compatible games there should be a method of classifying and organising games. Some ideas: - a 'games' directory in the package, which contains a sort of 'mini-package' for a specific game. For example, the import p...
Axelrod-Python/Axelrod
diff --git a/axelrod/tests/strategies/test_player.py b/axelrod/tests/strategies/test_player.py index de23ffa9..aed2b1e0 100644 --- a/axelrod/tests/strategies/test_player.py +++ b/axelrod/tests/strategies/test_player.py @@ -347,6 +347,42 @@ class TestPlayerClass(unittest.TestCase): TypeError, ParameterisedT...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "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": 2, "issue_text_score": 0, "tes...
4.13
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": [ "requirements/requirements.txt", "requi...
attrs==25.3.0 -e git+https://github.com/Axelrod-Python/Axelrod.git@784cdd361bc40119b828e97801d0bb58db3a5669#egg=Axelrod click==8.1.8 cloudpickle==3.1.1 contourpy==1.3.0 cycler==0.12.1 dask==2024.8.0 exceptiongroup==1.2.2 fonttools==4.56.0 fsspec==2025.3.1 hypothesis==5.19.3 importlib_metadata==8.6.1 importlib_resources...
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/strategies/test_player.py::TestPlayerClass::test_assumption_checking", "axelrod/tests/strategies/test_player.py::TestPlayerClass::test_assumptions_satisfy", "axelrod/tests/unit/test_match.py::TestMatch::test_game_size_checking" ]
[]
[ "axelrod/tests/strategies/test_player.py::TestPlayerClass::test_clone", "axelrod/tests/strategies/test_player.py::TestPlayerClass::test_equality", "axelrod/tests/strategies/test_player.py::TestPlayerClass::test_equality_for_cycle", "axelrod/tests/strategies/test_player.py::TestPlayerClass::test_equality_for_g...
[]
MIT License
null
null
Axelrod-Python__Axelrod-1458
d2184c66a44c2f49a88d356545c72e12f6d9d7bd
2024-11-30 01:22:02
d2184c66a44c2f49a88d356545c72e12f6d9d7bd
drvinceknight: Thanks for this, it looks like the failure is due to a health check done by hypothesis: ``` =================================== FAILURES =================================== _______________________ TestAsymmetricGame.test_equality _______________________ self = <axelrod.tests.unit.test_gam...
diff --git a/axelrod/history.py b/axelrod/history.py index 12114399..0e914da7 100644 --- a/axelrod/history.py +++ b/axelrod/history.py @@ -117,8 +117,8 @@ class LimitedHistory(History): memory_depth, int: length of history to retain """ - super().__init__(plays=plays, coplays=copla...
LimitedHistory should override extend. [LimitedHistory](https://github.com/Axelrod-Python/Axelrod/blob/dev/axelrod/history.py#L107) inherits extend from [base class](https://github.com/Axelrod-Python/Axelrod/blob/dev/axelrod/history.py#L50). However expected behavior is that LimitedHistory only keeps the last `memory_...
Axelrod-Python/Axelrod
diff --git a/axelrod/tests/unit/test_game.py b/axelrod/tests/unit/test_game.py index 083431e2..e124c9e1 100644 --- a/axelrod/tests/unit/test_game.py +++ b/axelrod/tests/unit/test_game.py @@ -1,7 +1,7 @@ import unittest import numpy as np -from hypothesis import given, settings +from hypothesis import HealthCheck, g...
{ "commit_name": "merge_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 0, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 1 }
4.13
{ "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": [ "hypothesis", "pytest-cov", "pytest-randomly", "pytest-sugar", "pytest" ], "pre_install": [ "apt...
attrs==25.3.0 -e git+https://github.com/Axelrod-Python/Axelrod.git@d2184c66a44c2f49a88d356545c72e12f6d9d7bd#egg=Axelrod click==8.1.8 cloudpickle==3.1.1 contourpy==1.3.0 coverage==7.8.0 cycler==0.12.1 dask==2024.8.0 dask-expr==1.1.10 docutils==0.21.2 exceptiongroup==1.2.2 fonttools==4.56.0 fsspec==2025.3.1 hypothesis==6...
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_history.py::TestLimitedHistory::test_extend" ]
[]
[ "axelrod/tests/unit/test_history.py::TestHistory::test_counts", "axelrod/tests/unit/test_history.py::TestHistory::test_compare", "axelrod/tests/unit/test_history.py::TestHistory::test_flip_plays", "axelrod/tests/unit/test_history.py::TestHistory::test_init", "axelrod/tests/unit/test_history.py::TestHistory:...
[]
MIT License
null
null
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
null
null
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
null
null
Axelrod-Python__Axelrod-638
89651f45910f4b41a79c58358d9f5beca4197fc1
2016-06-19 20:45:17
89651f45910f4b41a79c58358d9f5beca4197fc1
diff --git a/axelrod/strategies/finite_state_machines.py b/axelrod/strategies/finite_state_machines.py index defc4770..1c231d43 100644 --- a/axelrod/strategies/finite_state_machines.py +++ b/axelrod/strategies/finite_state_machines.py @@ -54,6 +54,7 @@ class FSMPlayer(Player): initial_state = 1 ...
Finite state machine players don't reset properly ``` >>> import axelrod as axl >>> tft = axl.TitForTat() >>> predator = axl.Predator() >>> predator.fsm.state 1 >>> m = axl.Match((tft, predator), 2) >>> m.play() [('C', 'C'), ('C', 'D')] >>> predator.fsm.state 2 >>> predator.reset() >>> predator.fsm.state ...
Axelrod-Python/Axelrod
diff --git a/axelrod/tests/integration/test_matches.py b/axelrod/tests/integration/test_matches.py new file mode 100644 index 00000000..b6241145 --- /dev/null +++ b/axelrod/tests/integration/test_matches.py @@ -0,0 +1,25 @@ +"""Tests for some expected match behaviours""" +import unittest +import axelrod + +from hypothe...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_issue_reference" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 0, "test_score": 0 }, "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" ], "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@89651f45910f4b41a79c58358d9f5beca4197fc1#egg=Axelrod coverage==7.8.0 cycler==0.12.1 exceptiongroup==1.2.2 hypothesis==6.130.5 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/integration/test_matches.py::TestMatchOutcomes::test_outcome_repeats", "axelrod/tests/unit/test_finite_state_machines.py::TestFSMPlayer::test_reset_initial_state", "axelrod/tests/unit/test_finite_state_machines.py::TestFortress3::test_reset_initial_state", "axelrod/tests/unit/test_finite_state_...
[]
[ "axelrod/tests/unit/test_finite_state_machines.py::TestPlayer::test_clone", "axelrod/tests/unit/test_finite_state_machines.py::TestPlayer::test_initialisation", "axelrod/tests/unit/test_finite_state_machines.py::TestPlayer::test_match_attributes", "axelrod/tests/unit/test_finite_state_machines.py::TestPlayer:...
[]
MIT License
null
null
Axelrod-Python__Axelrod-671
46ad8990affd6b9a792c84af4cc0987670cd515a
2016-07-22 14:11:42
06a2887f51a79bfacb95aff4481c69e72c1a1366
diff --git a/axelrod/result_set.py b/axelrod/result_set.py index 6ec59ae6..0a8b4fb2 100644 --- a/axelrod/result_set.py +++ b/axelrod/result_set.py @@ -464,28 +464,8 @@ class ResultSet(object): Where pij is the mean difference of the scores per turn between player i and j in repetition m. ...
Error in payoff_diffs_means? I think there's a bug for self interactions for the payoff_diffs_means (this only affects stochastic strategies): ``` >>> import axelrod as axl >>> from numpy import mean >>> axl.seed(0) >>> players = [s() for s in axl.demo_strategies] >>> tournament = axl.Tournament(players, repeti...
Axelrod-Python/Axelrod
diff --git a/axelrod/tests/unit/test_resultset.py b/axelrod/tests/unit/test_resultset.py index 5a81687b..dccd3e8f 100644 --- a/axelrod/tests/unit/test_resultset.py +++ b/axelrod/tests/unit/test_resultset.py @@ -364,6 +364,14 @@ class TestResultSet(unittest.TestCase): for j, rate in enumerate(rs.eigenmoses_rati...
{ "commit_name": "head_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 0, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 1 }
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": [ "pytest", "numpy>=1.16.0", "pandas>=1.0.0" ], "pre_install": [ "apt-get update", "apt-get install -y...
attrs==25.3.0 -e git+https://github.com/Axelrod-Python/Axelrod.git@46ad8990affd6b9a792c84af4cc0987670cd515a#egg=Axelrod cycler==0.12.1 exceptiongroup==1.2.2 hypothesis==6.130.5 iniconfig==2.1.0 kiwisolver==1.4.7 matplotlib==3.3.4 numpy==2.0.2 packaging==24.2 pandas==2.2.3 pillow==11.1.0 pluggy==1.5.0 pyparsing==2.1.1 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_resultset.py::TestResultSet::test_self_interaction_for_random_strategies", "axelrod/tests/unit/test_resultset.py::TestResultSetSpatialStructure::test_self_interaction_for_random_strategies", "axelrod/tests/unit/test_resultset.py::TestResultSetSpatialStructureTwo::test_self_interaction_f...
[]
[ "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",...
[]
MIT License
null
null
Axelrod-Python__Axelrod-699
10762a191c6f16a0ca385752bd48c867c7043fe7
2016-08-26 12:33:19
10762a191c6f16a0ca385752bd48c867c7043fe7
diff --git a/axelrod/strategies/__init__.py b/axelrod/strategies/__init__.py index c86195be..83169217 100644 --- a/axelrod/strategies/__init__.py +++ b/axelrod/strategies/__init__.py @@ -1,5 +1,6 @@ from ..player import is_basic, obey_axelrod from ._strategies import * +from ._filters import passes_filterset # `fr...
Strategy Filtering by Dictionary Within the api, there are a set of functions to filter strategies from their classifier entries using a dictionary. (This is because parameters within a url are passed as dictionary). For example, the url https://axelrod-api.herokuapp.com/strategies/?stochastic=false&inspects_source=...
Axelrod-Python/Axelrod
diff --git a/axelrod/tests/integration/test_filtering.py b/axelrod/tests/integration/test_filtering.py new file mode 100644 index 00000000..8bfc2873 --- /dev/null +++ b/axelrod/tests/integration/test_filtering.py @@ -0,0 +1,86 @@ +import unittest +from hypothesis import given, example +from hypothesis.strategies import...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 0, "test_score": 3 }, "num_modif...
1.7
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path...
attrs==25.3.0 -e git+https://github.com/Axelrod-Python/Axelrod.git@10762a191c6f16a0ca385752bd48c867c7043fe7#egg=Axelrod cycler==0.12.1 exceptiongroup==1.2.2 hypothesis==6.130.5 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 pytest==8.3.5 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/integration/test_filtering.py::TestFiltersAgainstComprehensions::test_boolean_filtering", "axelrod/tests/integration/test_filtering.py::TestFiltersAgainstComprehensions::test_makes_use_of_filtering", "axelrod/tests/integration/test_filtering.py::TestFiltersAgainstComprehensions::test_memory_depth...
[]
[]
[]
MIT License
null
null
AzureAD__azure-activedirectory-library-for-python-227
b65cdce996c3e275bf82f1563638150c7ac97034
2020-04-25 12:10:31
f1bc11d5b6e0ace54d7f5ed6972a098547638df2
diff --git a/adal/authentication_parameters.py b/adal/authentication_parameters.py index fa891a0..a5f97e8 100644 --- a/adal/authentication_parameters.py +++ b/adal/authentication_parameters.py @@ -53,7 +53,7 @@ class AuthenticationParameters(object): # The 401 challenge is a standard defined in RFC6750, which is based...
Replace "login.windows.net" with "login.microsoftonline.com" in the authority host list In here: https://github.com/AzureAD/azure-activedirectory-library-for-python/blob/2a1c7ffabda0d79548533434db0cc9bbae6eefcf/adal/constants.py#L211 ADAL is still defaulting to "login.windows.net". MSAL has removed this endpoint ...
AzureAD/azure-activedirectory-library-for-python
diff --git a/tests/config_sample.py b/tests/config_sample.py index 99e946a..622a64b 100644 --- a/tests/config_sample.py +++ b/tests/config_sample.py @@ -42,7 +42,7 @@ ACQUIRE_TOKEN_WITH_USERNAME_PASSWORD = { "password" : "None", "tenant" : "XXXXXXXX.onmicrosoft.com", - "authorityHostUrl" : "https://login...
{ "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": 0, "issue_text_score": 2, "test_score": 1 }, "num_modified_files": 4 }
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" ], "pre_install": null, "python": "3.6", "reqs_path": [ "requirements.txt" ], "test_cmd": "pytest --...
-e git+https://github.com/AzureAD/azure-activedirectory-library-for-python.git@b65cdce996c3e275bf82f1563638150c7ac97034#egg=adal asn1crypto==1.5.1 astroid==1.4.9 attrs==22.2.0 certifi==2021.5.30 cffi==1.15.1 chardet==3.0.4 colorama==0.4.5 cryptography==2.3.1 httpretty==0.8.14 idna==2.7 importlib-metadata==4.8.3 iniconf...
name: azure-activedirectory-library-for-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_imp...
[ "tests/test_authority.py::TestAuthority::test_http_error", "tests/test_authority.py::TestAuthority::test_success_dynamic_instance_discovery", "tests/test_authority.py::TestAuthority::test_url_extra_slashes", "tests/test_authority.py::TestAuthority::test_validation_error", "tests/test_authority.py::TestAutho...
[]
[ "tests/test_api_version.py::TestAuthenticationContextApiVersionBehavior::test_api_version_default_value", "tests/test_api_version.py::TestAuthenticationContextApiVersionBehavior::test_explicitly_turn_off_api_version", "tests/test_api_version.py::TestOAuth2ClientApiVersionBehavior::test_api_version_is_not_set", ...
[]
MIT License
swerebench/sweb.eval.x86_64.azuread_1776_azure-activedirectory-library-for-python-227
swerebench/sweb.eval.x86_64.azuread_1776_azure-activedirectory-library-for-python-227
AzureAD__azure-activedirectory-library-for-python-87
006b8b7749ede41c2f28530134b151a957ab5689
2017-05-23 18:47:18
901db2c4bcd2f607db576ceeefeeba20a2047ec3
diff --git a/README.md b/README.md index a6f8d42..a60795f 100644 --- a/README.md +++ b/README.md @@ -8,19 +8,16 @@ The ADAL for python library makes it easy for python applications to authenticat To support 'service principal' with certificate, ADAL depends on the 'cryptography' package. For smooth installation, som...
Issue while trying to obtain a token using client credentials once the token has expired I am able to obtain a valid access token by issuing the following command ``` >>> token = context.acquire_token_with_client_credentials(RESOURCE, client_id, client_secret) ``` However, when I issue the same command after the ...
AzureAD/azure-activedirectory-library-for-python
diff --git a/tests/test_cache_driver.py b/tests/test_cache_driver.py new file mode 100644 index 0000000..b3c4e07 --- /dev/null +++ b/tests/test_cache_driver.py @@ -0,0 +1,58 @@ +#------------------------------------------------------------------------------ +# +# Copyright (c) Microsoft Corporation. +# All rights reser...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 2 }, "num_modified_files": 2 }
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", "mock", "responses", "requests-mock" ], "pre_install": [ "apt-get update", "apt-get in...
-e git+https://github.com/AzureAD/azure-activedirectory-library-for-python.git@006b8b7749ede41c2f28530134b151a957ab5689#egg=adal certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 cryptography==44.0.2 exceptiongroup==1.2.2 idna==3.10 iniconfig==2.1.0 mock==5.2.0 packaging==24.2 pluggy==1.5.0 pycparser==2.22 PyJW...
name: azure-activedirectory-library-for-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...
[ "tests/test_cache_driver.py::TestCacheDriver::test_rt_less_item_wont_cause_exception" ]
[]
[]
[]
MIT License
null
null
AzureAD__microsoft-authentication-library-for-python-104
45507939078915f70dfe35b5ad58bf0f2fba41ef
2019-10-04 23:35:06
45507939078915f70dfe35b5ad58bf0f2fba41ef
diff --git a/msal/authority.py b/msal/authority.py index 2e3a818..56b3d4c 100644 --- a/msal/authority.py +++ b/msal/authority.py @@ -1,4 +1,7 @@ -import re +try: + from urllib.parse import urlparse +except ImportError: # Fall back to Python 2 + from urlparse import urlparse import logging import requests @@ ...
Support Azure AD B2C Support [Azure AD B2C](https://azure.microsoft.com/en-us/services/active-directory-b2c/)
AzureAD/microsoft-authentication-library-for-python
diff --git a/tests/test_authority.py b/tests/test_authority.py index d7fc5ca..340b493 100644 --- a/tests/test_authority.py +++ b/tests/test_authority.py @@ -1,8 +1,11 @@ +import os + from msal.authority import * from msal.exceptions import MsalServiceError from tests import unittest +@unittest.skipIf(os.getenv("...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 3, "issue_text_score": 3, "test_score": 2 }, "...
0.7
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "mock", "responses", "requests-mock" ], "pre_install": [ "apt-get update", "apt-get in...
certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 cryptography==44.0.2 exceptiongroup==1.2.2 idna==3.10 iniconfig==2.1.0 mock==5.2.0 -e git+https://github.com/AzureAD/microsoft-authentication-library-for-python.git@45507939078915f70dfe35b5ad58bf0f2fba41ef#egg=msal packaging==24.2 pluggy==1.5.0 pycparser==2.22 P...
name: microsoft-authentication-library-for-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 - lib...
[ "tests/test_authority.py::TestAuthority::test_unknown_host_wont_pass_instance_discovery", "tests/test_authority.py::TestAuthorityInternalHelperUserRealmDiscovery::test_memorize" ]
[ "tests/test_authority.py::TestAuthority::test_wellknown_host_and_tenant" ]
[ "tests/test_authority.py::TestAuthority::test_invalid_host_skipping_validation_meets_connection_error_down_the_road", "tests/test_authority.py::TestAuthorityInternalHelperCanonicalize::test_canonicalize_rejects_non_https", "tests/test_authority.py::TestAuthorityInternalHelperCanonicalize::test_canonicalize_reje...
[]
MIT License
null
null
AzureAD__microsoft-authentication-library-for-python-186
c235d4e9dea9e4954cf0699bd46bb57ddce959be
2020-04-23 18:54:16
c235d4e9dea9e4954cf0699bd46bb57ddce959be
diff --git a/msal/application.py b/msal/application.py index a17d359..66d9b43 100644 --- a/msal/application.py +++ b/msal/application.py @@ -633,8 +633,9 @@ class ClientApplication(object): **kwargs) if at and "error" not in at: return at + last_resp = None ...
Refresh token errors are discarded `acquire_token_silent_with_error` appears to be intended to return the last error response received from AAD, and the documentation implies it does so, but there are cases in which it does not. For example, if AAD rejects a refresh token, its error response is discarded (`at` is th...
AzureAD/microsoft-authentication-library-for-python
diff --git a/tests/test_application.py b/tests/test_application.py index 39becd5..65b36b3 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -176,6 +176,19 @@ class TestClientApplicationAcquireTokenSilentFociBehaviors(unittest.TestCase): # Will not test scenario of app leaving family. Per ...
{ "commit_name": "merge_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 1 }
1.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" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path...
certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 cryptography==44.0.2 exceptiongroup==1.2.2 idna==3.10 iniconfig==2.1.0 -e git+https://github.com/AzureAD/microsoft-authentication-library-for-python.git@c235d4e9dea9e4954cf0699bd46bb57ddce959be#egg=msal packaging==24.2 pluggy==1.5.0 pycparser==2.22 PyJWT==1.7.1 ...
name: microsoft-authentication-library-for-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 - lib...
[ "tests/test_application.py::TestClientApplicationAcquireTokenSilentFociBehaviors::test_preexisting_family_app_will_attempt_frt_and_return_error" ]
[]
[ "tests/test_application.py::TokenCacheTestCase::testAddByAad", "tests/test_application.py::TokenCacheTestCase::testAddByAdfs", "tests/test_application.py::TokenCacheTestCase::test_key_id_is_also_recorded", "tests/test_application.py::TestHelperExtractCerts::test_extract_a_tag_enclosed_cert", "tests/test_app...
[]
MIT License
swerebench/sweb.eval.x86_64.azuread_1776_microsoft-authentication-library-for-python-186
swerebench/sweb.eval.x86_64.azuread_1776_microsoft-authentication-library-for-python-186
AzureAD__microsoft-authentication-library-for-python-205
97c7114a25043de600599843e3251dc46e46ef43
2020-06-09 20:18:16
97c7114a25043de600599843e3251dc46e46ef43
abhidnya13: Tested the public api and added a few more changes abhidnya13: @rayluo summarized our offline conversation in the comment to give a context on the changes made!
diff --git a/msal/application.py b/msal/application.py index 096ee24..85cd609 100644 --- a/msal/application.py +++ b/msal/application.py @@ -198,8 +198,9 @@ class ClientApplication(object): authority or "https://login.microsoftonline.com/common/", self.http_client, validate_authority=v...
ClientApplication initializer sends HTTP requests Constructing `ClientApplication` entails at least one HTTP request, for tenant discovery. This adds all the costs and failure modes associated with the network to constructing the class. In my own code I therefore defer constructing (subclasses of) `ClientApplication` u...
AzureAD/microsoft-authentication-library-for-python
diff --git a/tests/test_application.py b/tests/test_application.py index 65b36b3..57095bb 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -104,6 +104,7 @@ class TestClientApplicationAcquireTokenSilentFociBehaviors(unittest.TestCase): self.authority_url = "https://login.microsoftonline...
{ "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": 2, "issue_text_score": 0, "test_score": 1 }, "num_modified_files": 4 }
1.3
{ "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": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path": null, ...
certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 cryptography==44.0.2 exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work idna==3.10 iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work -e git+https://github.com/AzureAD/microsoft-authentication-library-for-python.git@97c7114a250...
name: microsoft-authentication-library-for-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 - ...
[ "tests/test_application.py::TestClientApplicationAcquireTokenSilentFociBehaviors::test_family_app_remove_account", "tests/test_application.py::TestClientApplicationAcquireTokenSilentFociBehaviors::test_known_orphan_app_will_skip_frt_and_only_use_its_own_rt", "tests/test_application.py::TestClientApplicationAcqu...
[ "tests/test_authority.py::TestAuthority::test_wellknown_host_and_tenant" ]
[ "tests/test_application.py::TokenCacheTestCase::testAddByAad", "tests/test_application.py::TokenCacheTestCase::testAddByAdfs", "tests/test_application.py::TokenCacheTestCase::test_key_id_is_also_recorded", "tests/test_application.py::TestHelperExtractCerts::test_extract_a_tag_enclosed_cert", "tests/test_app...
[]
MIT License
null
null
AzureAD__microsoft-authentication-library-for-python-236
283bdd8c40037f752a69c9bb93a3067126dd53e9
2020-07-25 00:11:01
0ae4e9fa958e06b8f91b0a5bbae8427bdfad26ea
diff --git a/msal/application.py b/msal/application.py index 0d38a1a..f5c8d01 100644 --- a/msal/application.py +++ b/msal/application.py @@ -21,7 +21,7 @@ from .token_cache import TokenCache # The __init__.py will import this. Not the other way around. -__version__ = "1.4.2" +__version__ = "1.4.1" logger = logg...
MSAL python 1.4.2 is no longer able to read from other MSAL caches **Describe the bug** MSAL.NET maintains cache consistency tests between libraries. It looks like MSAL.py 1.4.2 update brakes the tests which ensure MSAL .py is able to read the token cache produced by .NET and Java. After downgrading to MSAL py 1.4...
AzureAD/microsoft-authentication-library-for-python
diff --git a/tests/test_application.py b/tests/test_application.py index 65b36b3..1716470 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -240,21 +240,30 @@ class TestClientApplicationForAuthorityMigration(unittest.TestCase): uid=uid, utid=utid, access_token=s...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 0, "test_score": 2 }, "num_...
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", "mock", "responses", "requests-mock" ], "pre_install": [ "apt-get update", "apt-get in...
certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 cryptography==44.0.2 exceptiongroup==1.2.2 idna==3.10 iniconfig==2.1.0 mock==5.2.0 -e git+https://github.com/AzureAD/microsoft-authentication-library-for-python.git@283bdd8c40037f752a69c9bb93a3067126dd53e9#egg=msal packaging==24.2 pluggy==1.5.0 pycparser==2.22 P...
name: microsoft-authentication-library-for-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 - lib...
[ "tests/test_application.py::TestClientApplicationForAuthorityMigration::test_acquire_token_silent_should_find_rt_under_different_alias" ]
[]
[ "tests/test_application.py::TokenCacheTestCase::testAddByAad", "tests/test_application.py::TokenCacheTestCase::testAddByAdfs", "tests/test_application.py::TokenCacheTestCase::test_key_id_is_also_recorded", "tests/test_application.py::TestHelperExtractCerts::test_extract_a_tag_enclosed_cert", "tests/test_app...
[]
MIT License
null
null
AzureAD__microsoft-authentication-library-for-python-280
dfbbc66730a1f14cf8c27cb3562ecf9bd611a1a9
2020-11-25 20:00:55
dfbbc66730a1f14cf8c27cb3562ecf9bd611a1a9
diff --git a/msal/token_cache.py b/msal/token_cache.py index b7ebbb9..34eff37 100644 --- a/msal/token_cache.py +++ b/msal/token_cache.py @@ -234,8 +234,9 @@ class TokenCache(object): with self._lock: if new_key_value_pairs: # Update with them entries = self._cache.setdefault(cred...
[Bug] Token cache incompatibility with MSAL.python **Which Version of MSAL are you using ?** 4.21 Details in this PowerShell issue: https://github.com/Azure/azure-powershell/issues/13467 ## Repro Start with PWSH, then use Az CLI, the go back to PWSH. For example: 0. Use Windows (probably the same on Mac ...
AzureAD/microsoft-authentication-library-for-python
diff --git a/tests/test_token_cache.py b/tests/test_token_cache.py index 1666bba..c846883 100644 --- a/tests/test_token_cache.py +++ b/tests/test_token_cache.py @@ -222,6 +222,24 @@ class TokenCacheTestCase(unittest.TestCase): {}).get("key_id") self.assertEqual(my_key_id, cached_key_id, "AT should...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 1 }, "num_modified_files": 1 }
1.6
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.6", "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 cffi==1.15.1 charset-normalizer==2.0.12 cryptography==3.4.8 idna==3.10 importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work more-iterto...
name: microsoft-authentication-library-for-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=20...
[ "tests/test_token_cache.py::TokenCacheTestCase::test_old_rt_data_with_wrong_key_should_still_be_salvaged_into_new_rt", "tests/test_token_cache.py::SerializableTokenCacheTestCase::test_old_rt_data_with_wrong_key_should_still_be_salvaged_into_new_rt" ]
[]
[ "tests/test_token_cache.py::TokenCacheTestCase::testAddByAad", "tests/test_token_cache.py::TokenCacheTestCase::testAddByAdfs", "tests/test_token_cache.py::TokenCacheTestCase::test_key_id_is_also_recorded", "tests/test_token_cache.py::SerializableTokenCacheTestCase::testAddByAad", "tests/test_token_cache.py:...
[]
MIT License
swerebench/sweb.eval.x86_64.azuread_1776_microsoft-authentication-library-for-python-280
swerebench/sweb.eval.x86_64.azuread_1776_microsoft-authentication-library-for-python-280
AzureAD__microsoft-authentication-library-for-python-312
34e0b820c2e7324fbdf2c5d6042beb5817a03075
2021-02-18 01:44:30
78e9ccfab7c16154ba38c0de78c495ba2ee58849
diff --git a/msal/application.py b/msal/application.py index a1f5003..72bbecf 100644 --- a/msal/application.py +++ b/msal/application.py @@ -822,6 +822,7 @@ class ClientApplication(object): force_refresh=False, # type: Optional[boolean] claims_challenge=None, **kwargs): + ...
[Feature Request] refresh_in Refresh_In (token response) support. This feature allows the service to control when MSAL should attempt to refresh the access token (ahead of its expiration) [API Review](https://identitydivision.visualstudio.com/DevEx/_git/AuthLibrariesApiReview?path=%2FRefreshAtExpirationPercentage...
AzureAD/microsoft-authentication-library-for-python
diff --git a/tests/test_application.py b/tests/test_application.py index 8d48a0a..3c3b464 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -319,3 +319,83 @@ class TestApplicationForClientCapabilities(unittest.TestCase): def test_both_claims_and_capabilities_none(self): self.asse...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 2 }, "num_modified_files"...
1.9
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --color=no...
certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 cryptography==3.4.8 exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work idna==3.10 iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work -e git+https://github.com/AzureAD/microsoft-authentication-library-for-python.git@34e0b820c2e7...
name: microsoft-authentication-library-for-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 - ...
[ "tests/test_application.py::TokenCacheTestCase::test_refresh_in_should_be_recorded_as_refresh_on", "tests/test_application.py::TestApplicationForRefreshInBehaviors::test_aging_token_and_available_aad_should_return_new_token", "tests/test_token_cache.py::TokenCacheTestCase::test_refresh_in_should_be_recorded_as_...
[]
[ "tests/test_application.py::TokenCacheTestCase::testAddByAad", "tests/test_application.py::TokenCacheTestCase::testAddByAdfs", "tests/test_application.py::TokenCacheTestCase::test_key_id_is_also_recorded", "tests/test_application.py::TokenCacheTestCase::test_old_rt_data_with_wrong_key_should_still_be_salvaged...
[]
MIT License
null
null
AzureAD__microsoft-authentication-library-for-python-315
78e9ccfab7c16154ba38c0de78c495ba2ee58849
2021-03-02 09:31:28
78e9ccfab7c16154ba38c0de78c495ba2ee58849
diff --git a/msal/application.py b/msal/application.py index 9fcad59..8a3fcae 100644 --- a/msal/application.py +++ b/msal/application.py @@ -918,11 +918,17 @@ class ClientApplication(object): client = self._build_client(self.client_credential, authority) response = None # A distinguishable value to...
MSAL shouldn't remove Refresh Token upon receiving invalid_grant **Describe the bug** MSAL shouldn't remove Refresh Token upon receiving `invalid_grant`. **To Reproduce** When 1. ARM (`https://management.azure.com/.default`) doesn't require MFA 2. VM SSH (`https://pas.windows.net/CheckMyAccess/Linux/.default`...
AzureAD/microsoft-authentication-library-for-python
diff --git a/tests/test_application.py b/tests/test_application.py index 3c3b464..28e598b 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -73,8 +73,7 @@ class TestClientApplicationAcquireTokenSilentErrorBehaviors(unittest.TestCase): self.client_id, authority=self.authority_url, to...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_hyperlinks", "has_media", "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_fi...
1.9
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --color=no...
certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 cryptography==3.4.8 exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work idna==3.10 iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work -e git+https://github.com/AzureAD/microsoft-authentication-library-for-python.git@78e9ccfab7c1...
name: microsoft-authentication-library-for-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 - ...
[ "tests/test_application.py::TokenCacheTestCase::testAddByAad", "tests/test_application.py::TokenCacheTestCase::testAddByAdfs", "tests/test_token_cache.py::TokenCacheTestCase::testAddByAad", "tests/test_token_cache.py::TokenCacheTestCase::testAddByAdfs", "tests/test_token_cache.py::SerializableTokenCacheTest...
[]
[ "tests/test_application.py::TokenCacheTestCase::test_key_id_is_also_recorded", "tests/test_application.py::TokenCacheTestCase::test_old_rt_data_with_wrong_key_should_still_be_salvaged_into_new_rt", "tests/test_application.py::TokenCacheTestCase::test_refresh_in_should_be_recorded_as_refresh_on", "tests/test_a...
[]
MIT License
swerebench/sweb.eval.x86_64.azuread_1776_microsoft-authentication-library-for-python-315
swerebench/sweb.eval.x86_64.azuread_1776_microsoft-authentication-library-for-python-315
AzureAD__microsoft-authentication-library-for-python-379
ef8987795c1981135df4bd91f40ed7cc5f6852b5
2021-07-08 17:34:29
c687d5b0a198c11c2ff99fd0ca9feaf73a7376f0
diff --git a/msal/application.py b/msal/application.py index 4f68fc2..d6fb131 100644 --- a/msal/application.py +++ b/msal/application.py @@ -21,6 +21,7 @@ from .wstrust_response import * from .token_cache import TokenCache import msal.telemetry from .region import _detect_region +from .throttled_http_client import T...
Instance metadata caching This issue is inspired by an improvement made in MSAL .Net 4.1: * documented in [its release blog post here](https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/msal-net-4.1#getaccounts-and-acquiretokensilent-are-now-less-network-chatty), * its original issue [this on...
AzureAD/microsoft-authentication-library-for-python
diff --git a/tests/test_individual_cache.py b/tests/test_individual_cache.py new file mode 100644 index 0000000..38bd572 --- /dev/null +++ b/tests/test_individual_cache.py @@ -0,0 +1,93 @@ +from time import sleep +from random import random +import unittest +from msal.individual_cache import _ExpiringMapping as Expiring...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "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 }
1.13
{ "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": [ ...
certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 cryptography==3.4.8 exceptiongroup==1.2.2 idna==3.10 iniconfig==2.1.0 -e git+https://github.com/AzureAD/microsoft-authentication-library-for-python.git@ef8987795c1981135df4bd91f40ed7cc5f6852b5#egg=msal packaging==24.2 pluggy==1.5.0 pycparser==2.22 PyJWT==2.10.1 ...
name: microsoft-authentication-library-for-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 - lib...
[ "tests/test_individual_cache.py::TestExpiringMapping::test_get_should_purge", "tests/test_individual_cache.py::TestExpiringMapping::test_iter_should_purge", "tests/test_individual_cache.py::TestExpiringMapping::test_len_should_purge", "tests/test_individual_cache.py::TestExpiringMapping::test_old_item_can_be_...
[]
[]
[]
MIT License
null
null
AzureAD__microsoft-authentication-library-for-python-395
b446a5e86377168b2fa342ed0738a9f7a95eb612
2021-08-15 06:46:16
2b056ba5e344fc625f7d15cf220612e004465ad4
diff --git a/msal/application.py b/msal/application.py index c7a3471..d7c4c14 100644 --- a/msal/application.py +++ b/msal/application.py @@ -14,6 +14,7 @@ import os import requests from .oauth2cli import Client, JwtAssertionCreator +from .oauth2cli.oidc import decode_part from .authority import Authority from .me...
MSAL libraries provide routing information to CCS Internal workitem [here](https://identitydivision.visualstudio.com/Engineering/_workitems/edit/1333551?src=WorkItemMention&src-action=artifact_link).
AzureAD/microsoft-authentication-library-for-python
diff --git a/tests/test_ccs.py b/tests/test_ccs.py new file mode 100644 index 0000000..8b80177 --- /dev/null +++ b/tests/test_ccs.py @@ -0,0 +1,73 @@ +import unittest +try: + from unittest.mock import patch, ANY +except: + from mock import patch, ANY + +from tests.http_client import MinimalResponse +from tests.te...
{ "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": 2, "issue_text_score": 3, "test_score": 1 }, "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": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path": [ ...
certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 cryptography==3.4.8 exceptiongroup==1.2.2 idna==3.10 iniconfig==2.1.0 -e git+https://github.com/AzureAD/microsoft-authentication-library-for-python.git@b446a5e86377168b2fa342ed0738a9f7a95eb612#egg=msal packaging==24.2 pluggy==1.5.0 pycparser==2.22 PyJWT==2.10.1 ...
name: microsoft-authentication-library-for-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 - lib...
[ "tests/test_ccs.py::TestCcsRoutingInfoTestCase::test_acquire_token_by_auth_code_flow", "tests/test_ccs.py::TestCcsRoutingInfoTestCase::test_acquire_token_by_username_password", "tests/test_ccs.py::TestCcsRoutingInfoTestCase::test_acquire_token_silent" ]
[ "tests/test_e2e.py::SshCertTestCase::test_ssh_cert_for_user" ]
[]
[]
MIT License
null
null
AzureAD__microsoft-authentication-library-for-python-41
f76f3c37c6bf7747971947d300f0a50d3ec701f7
2019-05-10 22:10:23
f76f3c37c6bf7747971947d300f0a50d3ec701f7
diff --git a/msal/application.py b/msal/application.py index 391cd1a..038badb 100644 --- a/msal/application.py +++ b/msal/application.py @@ -280,6 +280,49 @@ class ClientApplication(object): return [alias for alias in group if alias != instance] return [] + def remove_account(self, accoun...
token cache: support logout The goal is to remove all tokens belong to a user name. In ADAL, with flat array, it is easy to do it through filtering by user_id; but now with the new universal token cache scheme, it is hard for client applications to do it.
AzureAD/microsoft-authentication-library-for-python
diff --git a/tests/test_application.py b/tests/test_application.py index 6346774..75d5d27 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -174,11 +174,14 @@ class TestClientApplicationAcquireTokenSilentFociBehaviors(unittest.TestCase): self.account = {"home_account_id": "{}.{}".format...
{ "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": 2, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 2 }
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" ], "pre_install": null, "python": "3.7", "reqs_path": [ "requirements.txt" ], "test_cmd": "pyte...
certifi @ file:///croot/certifi_1671487769961/work/certifi cffi==1.15.1 charset-normalizer==3.4.1 cryptography==44.0.2 exceptiongroup==1.2.2 idna==3.10 importlib-metadata==6.7.0 iniconfig==2.0.0 -e git+https://github.com/AzureAD/microsoft-authentication-library-for-python.git@f76f3c37c6bf7747971947d300f0a50d3ec701f7#eg...
name: microsoft-authentication-library-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - ld_...
[ "tests/test_application.py::TestClientApplicationAcquireTokenSilentFociBehaviors::test_family_app_remove_account" ]
[]
[ "tests/test_application.py::TokenCacheTestCase::testAdd", "tests/test_application.py::TestClientApplicationAcquireTokenSilentFociBehaviors::test_known_orphan_app_will_skip_frt_and_only_use_its_own_rt", "tests/test_application.py::TestClientApplicationAcquireTokenSilentFociBehaviors::test_unknown_family_app_will...
[]
MIT License
null
null
AzureAD__microsoft-authentication-library-for-python-433
23e5341acf2118686fd95c11e81d7ffbbde9f367
2021-11-02 19:48:19
66a1c5a935e59c66281ccf73a3931681eeedee23
diff --git a/msal/application.py b/msal/application.py index 05b77fc..04ad5fd 100644 --- a/msal/application.py +++ b/msal/application.py @@ -231,8 +231,23 @@ class ClientApplication(object): :param str authority: A URL that identifies a token authority. It should be of the format - ht...
Add public convenience string constants for endpoints of each cloud (sovereign and public) **Context** Customers have had difficulty finding the right documentation pages: https://docs.microsoft.com/en-us/azure/azure-government/documentation-government-developer-guide#endpoint-mapping https://docs.microsoft.com/en-u...
AzureAD/microsoft-authentication-library-for-python
diff --git a/tests/http_client.py b/tests/http_client.py index a5587b7..5adbbde 100644 --- a/tests/http_client.py +++ b/tests/http_client.py @@ -20,6 +20,9 @@ class MinimalHttpClient: return MinimalResponse(requests_resp=self.session.get( url, params=params, headers=headers, timeout=self.timeout))...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 0 }, ...
1.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": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path...
certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 cryptography==37.0.4 exceptiongroup==1.2.2 idna==3.10 iniconfig==2.1.0 -e git+https://github.com/AzureAD/microsoft-authentication-library-for-python.git@23e5341acf2118686fd95c11e81d7ffbbde9f367#egg=msal packaging==24.2 pluggy==1.5.0 pycparser==2.22 PyJWT==2.10.1...
name: microsoft-authentication-library-for-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 - lib...
[ "tests/test_authority.py::TestAuthority::test_wellknown_host_and_tenant_using_new_authority_builder" ]
[ "tests/test_authority.py::TestAuthority::test_wellknown_host_and_tenant" ]
[ "tests/test_authority.py::TestAuthority::test_invalid_host_skipping_validation_can_be_turned_off", "tests/test_authority.py::TestAuthority::test_unknown_host_wont_pass_instance_discovery", "tests/test_authority.py::TestAuthorityInternalHelperCanonicalize::test_canonicalize_rejects_non_https", "tests/test_auth...
[]
MIT License
null
null
AzureAD__microsoft-authentication-library-for-python-530
48954fcbc16272566cbedbaf48ffbae4acf7d5db
2023-01-27 20:20:23
48954fcbc16272566cbedbaf48ffbae4acf7d5db
diff --git a/msal/application.py b/msal/application.py index 7e3ec16..62ba4b5 100644 --- a/msal/application.py +++ b/msal/application.py @@ -588,18 +588,9 @@ class ClientApplication(object): raise ValueError( "API does not accept {} value as user-provided scopes".format( ...
Cannot put client id into scopes, therefore cannot get access_token for Azure B2C According to [Azure B2C documentation](https://learn.microsoft.com/en-us/azure/active-directory-b2c/access-tokens#openid-connect-scopes), to get an access_token, client id must be added to scopes, i.e. `scopes=['openid', 'offline_access',...
AzureAD/microsoft-authentication-library-for-python
diff --git a/tests/test_application.py b/tests/test_application.py index 804ccb8..b62f41d 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -625,3 +625,18 @@ class TestClientCredentialGrant(unittest.TestCase): self._test_certain_authority_should_emit_warnning( authority="ht...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 0, "test_score": 1 }, "num_modified_files": 1 }
1.20
{ "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": [ ...
certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 cryptography==40.0.2 exceptiongroup==1.2.2 idna==3.10 iniconfig==2.1.0 -e git+https://github.com/AzureAD/microsoft-authentication-library-for-python.git@48954fcbc16272566cbedbaf48ffbae4acf7d5db#egg=msal packaging==24.2 pluggy==1.5.0 pycparser==2.22 PyJWT==2.10.1...
name: microsoft-authentication-library-for-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 - lib...
[ "tests/test_application.py::TestScopeDecoration::test_client_id_should_be_a_valid_scope" ]
[ "tests/test_e2e.py::SshCertTestCase::test_ssh_cert_for_user_should_work_with_any_account" ]
[ "tests/test_application.py::TestHelperExtractCerts::test_extract_a_tag_enclosed_cert", "tests/test_application.py::TestHelperExtractCerts::test_extract_a_tag_less_public_cert", "tests/test_application.py::TestHelperExtractCerts::test_extract_multiple_tag_enclosed_certs", "tests/test_application.py::TestBytesC...
[]
MIT License
swerebench/sweb.eval.x86_64.azuread_1776_microsoft-authentication-library-for-python-530
swerebench/sweb.eval.x86_64.azuread_1776_microsoft-authentication-library-for-python-530
AzureAD__microsoft-authentication-library-for-python-62
4c5245836452bc9331b1a992ebe70ecdf9afd737
2019-06-17 21:00:55
0672c72d85920c8ff63b35500999d813603ff3ed
diff --git a/msal/authority.py b/msal/authority.py index 689ea8c..51289d2 100644 --- a/msal/authority.py +++ b/msal/authority.py @@ -1,10 +1,12 @@ import re +import logging import requests from .exceptions import MsalServiceError +logger = logging.getLogger(__name__) WORLD_WIDE = 'login.microsoftonline.com'...
support: sovereign cloud [This line](https://github.com/AzureAD/microsoft-authentication-library-for-python/blob/dev/msal/authority.py#L41) by hard coding to public azure blocks authentication in sovereign clouds. Please fix it soon //CC @marstr @rayluo
AzureAD/microsoft-authentication-library-for-python
diff --git a/tests/test_authority.py b/tests/test_authority.py index 4171455..d7fc5ca 100644 --- a/tests/test_authority.py +++ b/tests/test_authority.py @@ -4,24 +4,16 @@ from tests import unittest class TestAuthority(unittest.TestCase): - COMMON_AUTH_ENDPOINT = \ - 'https://login.microsoftonline.com/com...
{ "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": 0, "issue_text_score": 2, "test_score": 2 }, "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": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.6", "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 cffi==1.15.1 charset-normalizer==2.0.12 cryptography==40.0.2 idna==3.10 importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work more-itert...
name: microsoft-authentication-library-for-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=20...
[ "tests/test_authority.py::TestAuthority::test_invalid_host_skipping_validation_meets_connection_error_down_the_road" ]
[ "tests/test_authority.py::TestAuthority::test_wellknown_host_and_tenant" ]
[ "tests/test_authority.py::TestAuthority::test_unknown_host_wont_pass_instance_discovery", "tests/test_authority.py::TestAuthorityInternalHelperCanonicalize::test_canonicalize_rejects_non_https", "tests/test_authority.py::TestAuthorityInternalHelperCanonicalize::test_canonicalize_rejects_tenantless", "tests/te...
[]
MIT License
null
null
AzureAD__microsoft-authentication-library-for-python-723
57dce47ae3495e546a0913c961c149734566da3a
2024-07-16 19:50:55
57dce47ae3495e546a0913c961c149734566da3a
diff --git a/msal/application.py b/msal/application.py index ba10cd3..8f30eb1 100644 --- a/msal/application.py +++ b/msal/application.py @@ -104,11 +104,14 @@ def _clean_up(result): "msalruntime_telemetry": result.get("_msalruntime_telemetry"), "msal_python_telemetry": result.get("_msa...
[Feature Request] Expose `refresh_on` when retrieving token from cache ### MSAL client type Public, Confidential ### Problem Statement Similar to https://github.com/AzureAD/microsoft-authentication-library-for-java/issues/822, in our Azure SDKs for Python, one of the primary pipeline policies our SDK clients use is ...
AzureAD/microsoft-authentication-library-for-python
diff --git a/tests/test_application.py b/tests/test_application.py index cebc722..71dc16e 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -1,6 +1,7 @@ # Note: Since Aug 2019 we move all e2e tests into test_e2e.py, # so this test_application file contains only unit tests without dependency. ...
{ "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": 2, "issue_text_score": 1, "test_score": 2 }, "num_modified_files": 2 }
1.29
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": [ "requirements.txt" ], "test_cmd": "pyte...
certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 cryptography==44.0.2 exceptiongroup==1.2.2 idna==3.10 iniconfig==2.1.0 -e git+https://github.com/AzureAD/microsoft-authentication-library-for-python.git@57dce47ae3495e546a0913c961c149734566da3a#egg=msal packaging==24.2 perf-baseline==0.1.0 pluggy==1.5.0 py-cpuin...
name: microsoft-authentication-library-for-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 - lib...
[ "tests/test_application.py::TestApplicationForRefreshInBehaviors::test_aging_token_and_available_aad_should_return_new_token", "tests/test_application.py::TestApplicationForRefreshInBehaviors::test_aging_token_and_unavailable_aad_should_return_old_token", "tests/test_application.py::TestApplicationForRefreshInB...
[]
[ "tests/test_application.py::TestHelperExtractCerts::test_extract_a_tag_enclosed_cert", "tests/test_application.py::TestHelperExtractCerts::test_extract_a_tag_less_public_cert", "tests/test_application.py::TestHelperExtractCerts::test_extract_multiple_tag_enclosed_certs", "tests/test_application.py::TestBytesC...
[]
MIT License
swerebench/sweb.eval.x86_64.azuread_1776_microsoft-authentication-library-for-python-723
swerebench/sweb.eval.x86_64.azuread_1776_microsoft-authentication-library-for-python-723
AzureAD__microsoft-authentication-library-for-python-730
fe8f7583a539f9a5c232df31c916368bc12057f7
2024-08-07 21:16:14
ca0877e953200cb9c3e68b572143442349bd1927
diff --git a/msal/application.py b/msal/application.py index b3c07a4..75ca6c8 100644 --- a/msal/application.py +++ b/msal/application.py @@ -411,9 +411,11 @@ class ClientApplication(object): (STS) what this client is capable for, so STS can decide to turn on certain features. For ...
[Engineering task] Implement Claims API to Bypass Cache When Claims are Present in MSAL with Managed Identity ### MSAL client type Confidential ### Problem Statement **Task type** Development **Description** Currently, MSAL with Managed Identity does not expose any API claims API. With CAE (Continuous Acc...
AzureAD/microsoft-authentication-library-for-python
diff --git a/tests/test_mi.py b/tests/test_mi.py index f3182c7..2041419 100644 --- a/tests/test_mi.py +++ b/tests/test_mi.py @@ -82,20 +82,17 @@ class ClientTestCase(unittest.TestCase): self.assertTrue( is_subdict_of(expected_result, result), # We will test refresh_on later "Should o...
{ "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": 2, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 2 }
1.30
{ "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", "docs/requirements.txt" ...
alabaster==0.7.16 babel==2.17.0 beautifulsoup4==4.13.3 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 cryptography==44.0.2 docutils==0.21.2 exceptiongroup==1.2.2 furo==2024.8.6 idna==3.10 imagesize==1.4.1 importlib_metadata==8.6.1 iniconfig==2.1.0 Jinja2==3.1.6 MarkupSafe==3.0.2 -e git+https://github.com/Azu...
name: microsoft-authentication-library-for-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 - lib...
[ "tests/test_mi.py::VmTestCase::test_happy_path", "tests/test_mi.py::AppServiceTestCase::test_happy_path", "tests/test_mi.py::MachineLearningTestCase::test_happy_path", "tests/test_mi.py::ServiceFabricTestCase::test_happy_path", "tests/test_mi.py::ServiceFabricTestCase::test_unified_api_service_should_ignore...
[]
[ "tests/test_mi.py::ManagedIdentityTestCase::test_helper_class_should_be_interchangable_with_dict_which_could_be_loaded_from_file_or_env_var", "tests/test_mi.py::VmTestCase::test_vm_error_should_be_returned_as_is", "tests/test_mi.py::AppServiceTestCase::test_app_service_error_should_be_normalized", "tests/test...
[]
MIT License
swerebench/sweb.eval.x86_64.azuread_1776_microsoft-authentication-library-for-python-730
swerebench/sweb.eval.x86_64.azuread_1776_microsoft-authentication-library-for-python-730
AzureAD__microsoft-authentication-library-for-python-77
f4a0ba0b05d32d50bed3c2c8dbc188c7a4e5039f
2019-07-15 20:03:44
f4a0ba0b05d32d50bed3c2c8dbc188c7a4e5039f
diff --git a/msal/authority.py b/msal/authority.py index 51289d2..75dc69f 100644 --- a/msal/authority.py +++ b/msal/authority.py @@ -38,13 +38,20 @@ class Authority(object): self.proxies = proxies self.timeout = timeout canonicalized, self.instance, tenant = canonicalize(authority_url) - ...
ADFS 2019 Compatability * See the task scope in [this MSAL .Net PR](https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/pull/834). It seems touch almost every flow: Device Code, Username Password, Interactive flow (i.e. auth code flow), and Confidential Client. * This doc [OAuth2 in ADFS](https://do...
AzureAD/microsoft-authentication-library-for-python
diff --git a/tests/test_token_cache.py b/tests/test_token_cache.py index fecee70..85f4457 100644 --- a/tests/test_token_cache.py +++ b/tests/test_token_cache.py @@ -16,30 +16,29 @@ class TokenCacheTestCase(unittest.TestCase): @staticmethod def build_id_token( iss="issuer", sub="subject", aud="my_...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 3 }, "num_modified_files": 2 }
0.5
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.6", "reqs_path": [ "requirements.txt" ], "test_cmd": "pytest --...
attrs==22.2.0 certifi==2021.5.30 cffi==1.15.1 charset-normalizer==2.0.12 cryptography==40.0.2 idna==3.10 importlib-metadata==4.8.3 iniconfig==1.1.1 -e git+https://github.com/AzureAD/microsoft-authentication-library-for-python.git@f4a0ba0b05d32d50bed3c2c8dbc188c7a4e5039f#egg=msal packaging==21.3 pluggy==1.0.0 py==1.11.0...
name: microsoft-authentication-library-for-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_...
[ "tests/test_token_cache.py::TokenCacheTestCase::testAddByAdfs", "tests/test_token_cache.py::SerializableTokenCacheTestCase::testAddByAdfs" ]
[]
[ "tests/test_token_cache.py::TokenCacheTestCase::testAddByAad", "tests/test_token_cache.py::SerializableTokenCacheTestCase::testAddByAad", "tests/test_token_cache.py::SerializableTokenCacheTestCase::test_has_state_changed" ]
[]
MIT License
swerebench/sweb.eval.x86_64.azuread_1776_microsoft-authentication-library-for-python-77
swerebench/sweb.eval.x86_64.azuread_1776_microsoft-authentication-library-for-python-77
AzureAD__microsoft-authentication-library-for-python-795
fb3e21cf501587dccb71676a3d06f9ea24476102
2025-03-07 03:01:56
fb3e21cf501587dccb71676a3d06f9ea24476102
diff --git a/msal/managed_identity.py b/msal/managed_identity.py index ec032ca..6f85571 100644 --- a/msal/managed_identity.py +++ b/msal/managed_identity.py @@ -448,7 +448,9 @@ def _obtain_token_on_azure_vm(http_client, managed_identity, resource): } _adjust_param(params, managed_identity) resp = htt...
[Bug] Msal does not honor environment variable `AZURE_POD_IDENTITY_AUTHORITY_HOST` in IMDS We used to honor environment variable `AZURE_POD_IDENTITY_AUTHORITY_HOST` in IMDS https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/azure/identity/_credentials/imds.py#L36 Seems like MSAL chang...
AzureAD/microsoft-authentication-library-for-python
diff --git a/tests/test_mi.py b/tests/test_mi.py index c5a99ae..a7c2cb6 100644 --- a/tests/test_mi.py +++ b/tests/test_mi.py @@ -121,13 +121,29 @@ class ClientTestCase(unittest.TestCase): class VmTestCase(ClientTestCase): - def test_happy_path(self): + def _test_happy_path(self) -> callable: expires...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 1 }
1.31
{ "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-benchmark" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "pyth...
certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 cryptography==44.0.2 exceptiongroup==1.2.2 idna==3.10 iniconfig==2.1.0 -e git+https://github.com/AzureAD/microsoft-authentication-library-for-python.git@fb3e21cf501587dccb71676a3d06f9ea24476102#egg=msal packaging==24.2 perf-baseline==0.1.0 pluggy==1.5.0 py-cpuin...
name: microsoft-authentication-library-for-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 - lib...
[ "tests/test_mi.py::VmTestCase::test_happy_path_of_pod_identity" ]
[]
[ "tests/test_mi.py::ManagedIdentityTestCase::test_helper_class_should_be_interchangable_with_dict_which_could_be_loaded_from_file_or_env_var", "tests/test_mi.py::ClientTestCase::test_error_out_on_invalid_input", "tests/test_mi.py::VmTestCase::test_error_out_on_invalid_input", "tests/test_mi.py::VmTestCase::tes...
[]
MIT License
swerebench/sweb.eval.x86_64.azuread_1776_microsoft-authentication-library-for-python-795
swerebench/sweb.eval.x86_64.azuread_1776_microsoft-authentication-library-for-python-795
Azure__WALinuxAgent-1039
53a429b06b67031d30351b45e798ec204484b8ef
2018-02-12 05:42:23
6e9b985c1d7d564253a1c344bab01b45093103cd
diff --git a/azurelinuxagent/common/event.py b/azurelinuxagent/common/event.py index 84a439f5..7fc084d9 100644 --- a/azurelinuxagent/common/event.py +++ b/azurelinuxagent/common/event.py @@ -254,7 +254,11 @@ __event_logger__ = EventLogger() def elapsed_milliseconds(utc_start): - d = datetime.utcnow() - utc_star...
The ProcessGoalState Duration is Too Large The Duration telemetry value exceeds the size of an Int64, which does not make sense. This has been seen in at least two different agent versions (2.1.3 and 2.2.21).
Azure/WALinuxAgent
diff --git a/tests/common/test_event.py b/tests/common/test_event.py index 01bcd7b9..4d9afeff 100644 --- a/tests/common/test_event.py +++ b/tests/common/test_event.py @@ -17,14 +17,10 @@ from __future__ import print_function -from datetime import datetime - -import azurelinuxagent.common.event as event -import azu...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 1 }
2.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", "pyasn1" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.7", "reqs_path"...
attrs @ file:///croot/attrs_1668696182826/work certifi @ file:///croot/certifi_1671487769961/work/certifi flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1648562407465/work iniconfig @ file:///home/linux1/recipes/ci...
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=22.1.0=py37h06a4308_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - fl...
[ "tests/common/test_event.py::TestEvent::test_elapsed_milliseconds" ]
[]
[ "tests/common/test_event.py::TestEvent::test_event_status_defaults_to_success", "tests/common/test_event.py::TestEvent::test_event_status_event_marked", "tests/common/test_event.py::TestEvent::test_event_status_preserves_state", "tests/common/test_event.py::TestEvent::test_event_status_records_status", "tes...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-1043
b526b7ada84dfbf21bed8a3e7092ec23447fe14e
2018-02-12 21:11:33
6e9b985c1d7d564253a1c344bab01b45093103cd
diff --git a/azurelinuxagent/common/utils/restutil.py b/azurelinuxagent/common/utils/restutil.py index c521f63a..807be29c 100644 --- a/azurelinuxagent/common/utils/restutil.py +++ b/azurelinuxagent/common/utils/restutil.py @@ -28,7 +28,8 @@ import azurelinuxagent.common.utils.textutil as textutil from azurelinuxagen...
Ensure the Monitor Thead does not Die The monitoring thread is not (ironically) not monitored. There have been cases where VMs stop sending telemetry data, which is the responsibility of the monitoring thread. The working theory is the thread died, and was not automatically restarted.
Azure/WALinuxAgent
diff --git a/tests/ga/test_monitor.py b/tests/ga/test_monitor.py index c646cef9..51f12a0d 100644 --- a/tests/ga/test_monitor.py +++ b/tests/ga/test_monitor.py @@ -18,6 +18,7 @@ from tests.tools import * from azurelinuxagent.ga.monitor import * + class TestMonitor(AgentTestCase): def test_parse_xml_event(self)...
{ "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": 2, "issue_text_score": 3, "test_score": 3 }, "num_modified_files": 4 }
2.2
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "nose", "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::MonitorThreadTest::test_check_if_env_thread_is_alive", "tests/ga/test_update.py::MonitorThreadTest::test_check_if_monitor_thread_is_alive", "tests/ga/test_update.py::MonitorThreadTest::test_restart_env_thread", "tests/ga/test_update.py::MonitorThreadTest::test_restart_env_thread_if_n...
[]
[ "tests/ga/test_monitor.py::TestMonitor::test_add_sysinfo", "tests/ga/test_monitor.py::TestMonitor::test_parse_xml_event", "tests/ga/test_update.py::TestGuestAgentError::test_clear", "tests/ga/test_update.py::TestGuestAgentError::test_creation", "tests/ga/test_update.py::TestGuestAgentError::test_mark_failur...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-1105
fb7d6c51dac236538a8c9eb8e752159d5e3f54b8
2018-04-06 15:03:47
6e9b985c1d7d564253a1c344bab01b45093103cd
diff --git a/azurelinuxagent/pa/provision/cloudinit.py b/azurelinuxagent/pa/provision/cloudinit.py index 60d42fd2..de07ea93 100644 --- a/azurelinuxagent/pa/provision/cloudinit.py +++ b/azurelinuxagent/pa/provision/cloudinit.py @@ -64,7 +64,7 @@ class CloudInitProvisionHandler(ProvisionHandler): logger.info...
Track Boot Time in Provision Event To better understand and break down the provision process please include the boot time in the provision event, or emit a boot event with an appropriate duration.
Azure/WALinuxAgent
diff --git a/tests/pa/test_provision.py b/tests/pa/test_provision.py index 1004547b..52098f2f 100644 --- a/tests/pa/test_provision.py +++ b/tests/pa/test_provision.py @@ -146,8 +146,12 @@ class TestProvision(AgentTestCase): ph.run() - call1 = call("Provisioning succeeded", duration=ANY, is_success=T...
{ "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": 2, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 2 }
2.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", "pyasn1" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.7", "reqs_path"...
attrs @ file:///croot/attrs_1668696182826/work certifi @ file:///croot/certifi_1671487769961/work/certifi distro==1.9.0 flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1648562407465/work iniconfig @ file:///home/lin...
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=22.1.0=py37h06a4308_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - fl...
[ "tests/pa/test_provision.py::TestProvision::test_provision_telemetry_success" ]
[]
[ "tests/pa/test_provision.py::TestProvision::test_customdata", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_is_provisioned", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_not_deprovisioned", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_not_provisioned", ...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-1120
dc6db7594f3c0ee24e69fb63b3ad05a7ac3c035d
2018-04-19 04:27:01
6e9b985c1d7d564253a1c344bab01b45093103cd
diff --git a/azurelinuxagent/common/protocol/wire.py b/azurelinuxagent/common/protocol/wire.py index 67a55203..5df35a98 100644 --- a/azurelinuxagent/common/protocol/wire.py +++ b/azurelinuxagent/common/protocol/wire.py @@ -1129,8 +1129,7 @@ class WireClient(object): host = self.get_host_plugi...
Exception retrieving artifacts profile: TypeError: decoding str is not supported I am tracking a annoying issue in the BVTs with the following signature. ```text Exception retrieving artifacts profile: TypeError: decoding str is not supported ``` I increased debugging, and found this call stack. ```text 201...
Azure/WALinuxAgent
diff --git a/tests/protocol/test_wire.py b/tests/protocol/test_wire.py index 34b82862..ffe72edf 100644 --- a/tests/protocol/test_wire.py +++ b/tests/protocol/test_wire.py @@ -342,7 +342,7 @@ class TestWireProtocol(AgentTestCase): wire_protocol_client.ext_conf.artifacts_profile_blob = testurl goal_stat...
{ "commit_name": "head_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 1 }
2.2
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "", "pip_packages": [ "pyasn1", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.4", "reqs_path": null...
attrs==22.2.0 certifi==2021.5.30 importlib-metadata==4.8.3 iniconfig==1.1.1 packaging==21.3 pluggy==1.0.0 py==1.11.0 pyasn1==0.5.1 pyparsing==3.1.4 pytest==7.0.1 tomli==1.2.3 typing_extensions==4.1.1 -e git+https://github.com/Azure/WALinuxAgent.git@dc6db7594f3c0ee24e69fb63b3ad05a7ac3c035d#egg=WALinuxAgent zipp==3.6.0
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 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 ...
[ "tests/protocol/test_wire.py::TestWireProtocol::test_get_in_vm_artifacts_profile_host_ga_plugin" ]
[ "tests/protocol/test_wire.py::TestWireProtocol::test_getters", "tests/protocol/test_wire.py::TestWireProtocol::test_getters_ext_no_public", "tests/protocol/test_wire.py::TestWireProtocol::test_getters_ext_no_settings", "tests/protocol/test_wire.py::TestWireProtocol::test_getters_no_ext", "tests/protocol/tes...
[ "tests/protocol/test_wire.py::TestWireProtocol::test_call_storage_kwargs", "tests/protocol/test_wire.py::TestWireProtocol::test_download_ext_handler_pkg_fallback", "tests/protocol/test_wire.py::TestWireProtocol::test_fetch_manifest_fallback", "tests/protocol/test_wire.py::TestWireProtocol::test_get_host_ga_pl...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-1127
d1f9e05b9eaa63997108ebf3de261bf9dca7a25d
2018-04-20 21:42:00
6e9b985c1d7d564253a1c344bab01b45093103cd
diff --git a/azurelinuxagent/ga/exthandlers.py b/azurelinuxagent/ga/exthandlers.py index 91285cf9..024c7f55 100644 --- a/azurelinuxagent/ga/exthandlers.py +++ b/azurelinuxagent/ga/exthandlers.py @@ -56,6 +56,7 @@ from azurelinuxagent.common.version import AGENT_NAME, CURRENT_VERSION # HandlerEnvironment.json schema ve...
Extension install failures timeout The Windows GA reports a status which allows a fast failure, however the Linux GA just reports 'Not ready' which essentially waits for a CRP timeout. We should investigate if there is a substatus we are missing to allow a fast failure.
Azure/WALinuxAgent
diff --git a/tests/ga/test_exthandlers.py b/tests/ga/test_exthandlers.py new file mode 100644 index 00000000..248750b1 --- /dev/null +++ b/tests/ga/test_exthandlers.py @@ -0,0 +1,74 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License. +import json + +from azurelinuxagent...
{ "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 }
2.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": [ "pyasn1", "nose", "nose-cov", "pytest" ], "pre_install": null, "python": "3.4", "reqs_path": null, "test_cmd": "p...
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work certifi==2021.5.30 cov-core==1.15.0 coverage==6.2 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-it...
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_exthandlers.py::TestExtHandlers::test_parse_extension_status01" ]
[]
[ "tests/ga/test_exthandlers.py::TestExtHandlers::test_parse_extension_status00" ]
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-1148
423dc18485e4c8d506bd07f77f7612b17bda27eb
2018-05-03 23:30:54
6e9b985c1d7d564253a1c344bab01b45093103cd
boumenot: I opened #1161 to address the telemetry issue. There is some sort of circular dependency issue that manifest on CI, but not locally. I will debug it later, and add the necessary event.
diff --git a/azurelinuxagent/common/protocol/wire.py b/azurelinuxagent/common/protocol/wire.py index 841f9b72..265b1f6f 100644 --- a/azurelinuxagent/common/protocol/wire.py +++ b/azurelinuxagent/common/protocol/wire.py @@ -600,6 +600,12 @@ class WireClient(object): random.shuffle(version_uris_shuffled) ...
ExtensionsConfig May Not Contain a failoverLocation Attribute The agent expects ExtensionsConfig to have a location and failoverLocation for each plugin. This has been proven to not be true for all regions. I consider this to be a bug upstream, but the agent should be robust enough to handle this case.
Azure/WALinuxAgent
diff --git a/tests/utils/test_rest_util.py b/tests/utils/test_rest_util.py index adeb8141..a864884a 100644 --- a/tests/utils/test_rest_util.py +++ b/tests/utils/test_rest_util.py @@ -195,7 +195,7 @@ class TestHttpOperations(AgentTestCase): ]) HTTPSConnection.assert_not_called() mock_conn.requ...
{ "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": 1 }, "num_modified_files": 2 }
2.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-xdist", "pytest-mock", "pytest-asyncio", "distro" ], "pre_install": [ "apt-...
coverage==7.8.0 distro==1.9.0 exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work execnet==2.1.1 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_1738...
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 - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 ...
[ "tests/utils/test_rest_util.py::TestHttpOperations::test_http_request_direct", "tests/utils/test_rest_util.py::TestHttpOperations::test_http_request_direct_secure", "tests/utils/test_rest_util.py::TestHttpOperations::test_http_request_proxy", "tests/utils/test_rest_util.py::TestHttpOperations::test_http_reque...
[]
[ "tests/utils/test_rest_util.py::TestIOErrorCounter::test_get_and_reset", "tests/utils/test_rest_util.py::TestIOErrorCounter::test_increment_hostplugin", "tests/utils/test_rest_util.py::TestIOErrorCounter::test_increment_other", "tests/utils/test_rest_util.py::TestIOErrorCounter::test_increment_protocol", "t...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-1183
ad18ce33f467f5eeb4ac4afadb7f46d6c7444307
2018-05-21 20:12:58
6e9b985c1d7d564253a1c344bab01b45093103cd
diff --git a/azurelinuxagent/common/protocol/imds.py b/azurelinuxagent/common/protocol/imds.py index 1748bd91..c0deb358 100644 --- a/azurelinuxagent/common/protocol/imds.py +++ b/azurelinuxagent/common/protocol/imds.py @@ -17,6 +17,10 @@ def get_imds_client(): class ComputeInfo(DataContract): + @property + d...
Telemetry Should Include Additional IMDS Metadata The latest version of IMDS includes the following fields that should be considered for inclusion: 1. zone 1. vmScaleSetName https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service#instance-metadata-data-categories
Azure/WALinuxAgent
diff --git a/tests/protocol/test_imds.py b/tests/protocol/test_imds.py index 3f8ac2ed..d0f65292 100644 --- a/tests/protocol/test_imds.py +++ b/tests/protocol/test_imds.py @@ -72,7 +72,9 @@ class TestImds(AgentTestCase): "tags": "Key1:Value1;Key2:Value2", "vmId": "f62f23fb-69e2-4df0-a20b-cb5c201a3e7a",...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 1 }
2.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": [ "pyasn1", "pytest" ], "pre_install": null, "python": "3.4", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=l...
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: 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/protocol/test_imds.py::TestImds::test_deserialize_ComputeInfo" ]
[]
[ "tests/protocol/test_imds.py::TestImds::test_get", "tests/protocol/test_imds.py::TestImds::test_get_bad_request", "tests/protocol/test_imds.py::TestImds::test_get_empty_response" ]
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-1273
066d711c4dd3f5a166a19da1910ee92b35cd3cbb
2018-07-25 01:14:02
6e9b985c1d7d564253a1c344bab01b45093103cd
boumenot: Sync'ed offline. LGTM.
diff --git a/azurelinuxagent/common/utils/processutil.py b/azurelinuxagent/common/utils/processutil.py index fe9dd4a5..9c0eb24b 100644 --- a/azurelinuxagent/common/utils/processutil.py +++ b/azurelinuxagent/common/utils/processutil.py @@ -16,7 +16,7 @@ # # Requires Python 2.6+ and Openssl 1.0+ # - +import multiproce...
Agent Prematurely Terminates Long Running Extensions A user opened an issue against [Azure/custom-script-extension-linux #139](https://github.com/Azure/custom-script-extension-linux/issues/139) about the extension prematurely timing out. I have verified this issue against 2.2.29. ```sh az vm extension set -g my-re...
Azure/WALinuxAgent
diff --git a/tests/ga/test_update.py b/tests/ga/test_update.py index a3aa7ae9..af5dcbba 100644 --- a/tests/ga/test_update.py +++ b/tests/ga/test_update.py @@ -1000,8 +1000,8 @@ class TestUpdate(UpdateTestCase): self.assertTrue(2 < len(self.update_handler.agents)) # Purge every other agent - k...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_issue_reference", "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, ...
2.2
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "nose", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.4", "reqs_path": ...
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_purge_agents", "tests/utils/test_process_util.py::TestProcessUtils::test_process_behaved_forked", "tests/utils/test_process_util.py::TestProcessUtils::test_process_timeout_forked" ]
[]
[ "tests/ga/test_update.py::TestGuestAgentError::test_clear", "tests/ga/test_update.py::TestGuestAgentError::test_creation", "tests/ga/test_update.py::TestGuestAgentError::test_mark_failure", "tests/ga/test_update.py::TestGuestAgentError::test_mark_failure_permanent", "tests/ga/test_update.py::TestGuestAgentE...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-1302
dd3daa66040258a22b994d8f139a0d9c9bab3e6a
2018-08-17 22:06:40
6e9b985c1d7d564253a1c344bab01b45093103cd
boumenot: LGTM.
diff --git a/azurelinuxagent/common/errorstate.py b/azurelinuxagent/common/errorstate.py index 38aaa1f9..052db075 100644 --- a/azurelinuxagent/common/errorstate.py +++ b/azurelinuxagent/common/errorstate.py @@ -31,3 +31,15 @@ class ErrorState(object): return True return False + + @property + ...
Waagent deprovision should not be messing with the cloudinit directories Deleting and changing the files under /var/lib/cloud upon deprovision fundamentally breaks how per-once and per-instance works. You also lose the ability to track instances created from the original image. At the minimum, there should be a flag...
Azure/WALinuxAgent
diff --git a/tests/common/test_errorstate.py b/tests/common/test_errorstate.py index 7513fe59..a0a7761d 100644 --- a/tests/common/test_errorstate.py +++ b/tests/common/test_errorstate.py @@ -12,6 +12,7 @@ class TestErrorState(unittest.TestCase): test_subject = ErrorState(timedelta(seconds=10000)) self...
{ "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": 0, "issue_text_score": 1, "test_score": 3 }, "num_modified_files": 4 }
2.2
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "", "pip_packages": [ "distro", "pytest", "pytest-cov", "pytest-xdist", "pytest-mock", "pytest-asyncio" ], "pre_install": [ "apt-get up...
coverage==7.8.0 distro==1.9.0 exceptiongroup==1.2.2 execnet==2.1.1 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 tomli==2.2.1 typing_extensions==4.13.0 -e git+https://github.com/Azure/WALinuxAgent.git@dd3daa66040258a22b994d8...
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 - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc...
[ "tests/common/test_errorstate.py::TestErrorState::test_errorstate00", "tests/common/test_errorstate.py::TestErrorState::test_errorstate01", "tests/common/test_errorstate.py::TestErrorState::test_errorstate02", "tests/common/test_errorstate.py::TestErrorState::test_errorstate03", "tests/common/test_errorstat...
[]
[ "tests/common/test_errorstate.py::TestErrorState::test_errorstate04", "tests/ga/test_monitor.py::TestMonitor::test_add_sysinfo", "tests/ga/test_monitor.py::TestMonitor::test_heartbeat_creates_signal", "tests/ga/test_monitor.py::TestMonitor::test_heartbeat_timings_no_updates_within_window", "tests/ga/test_mo...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-1304
dd3daa66040258a22b994d8f139a0d9c9bab3e6a
2018-08-18 00:09:55
6e9b985c1d7d564253a1c344bab01b45093103cd
diff --git a/azurelinuxagent/common/errorstate.py b/azurelinuxagent/common/errorstate.py index 38aaa1f9..052db075 100644 --- a/azurelinuxagent/common/errorstate.py +++ b/azurelinuxagent/common/errorstate.py @@ -31,3 +31,15 @@ class ErrorState(object): return True return False + + @property + ...
InitializeHostPlugin This event is useful, but we should also have an extended version, like we do for ReportStatus. There is a good location for this in the [monitor thread](https://github.com/Azure/WALinuxAgent/blob/master/azurelinuxagent/ga/monitor.py#L335)
Azure/WALinuxAgent
diff --git a/tests/common/test_errorstate.py b/tests/common/test_errorstate.py index 7513fe59..a0a7761d 100644 --- a/tests/common/test_errorstate.py +++ b/tests/common/test_errorstate.py @@ -12,6 +12,7 @@ class TestErrorState(unittest.TestCase): test_subject = ErrorState(timedelta(seconds=10000)) self...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 3 }, "num_modified_files": 3 }
2.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": [ "pyasn1", "pytest" ], "pre_install": null, "python": "3.4", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=l...
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: 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/common/test_errorstate.py::TestErrorState::test_errorstate00", "tests/common/test_errorstate.py::TestErrorState::test_errorstate01", "tests/common/test_errorstate.py::TestErrorState::test_errorstate02", "tests/common/test_errorstate.py::TestErrorState::test_errorstate03", "tests/common/test_errorstat...
[]
[ "tests/common/test_errorstate.py::TestErrorState::test_errorstate04", "tests/ga/test_monitor.py::TestMonitor::test_add_sysinfo", "tests/ga/test_monitor.py::TestMonitor::test_heartbeat_creates_signal", "tests/ga/test_monitor.py::TestMonitor::test_heartbeat_timings_no_updates_within_window", "tests/ga/test_mo...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-1317
ae2aec6fc31a4742c139d93cfc5e571e7afc741b
2018-08-23 18:52:01
6e9b985c1d7d564253a1c344bab01b45093103cd
diff --git a/azurelinuxagent/ga/monitor.py b/azurelinuxagent/ga/monitor.py index c1215806..d6b66921 100644 --- a/azurelinuxagent/ga/monitor.py +++ b/azurelinuxagent/ga/monitor.py @@ -406,7 +406,11 @@ class MonitorHandler(object): CGroupsTelemetry.track_cgroup(CGroups.for_extension("")) CGroups...
CGroups error in Ubuntu 14.04 ``` 2018/07/31 11:41:06.400633 ERROR ExtHandler monitor: Exception tracking wrapper and agent: 'Hierarchy memory is not mounted' [Traceback (most recent call last): File "bin/WALinuxAgent-2.2.30-py2.7.egg/azurelinuxagent/ga/monitor.py", line 397, in init_cgroups CGroupsTelemetry.t...
Azure/WALinuxAgent
diff --git a/tests/pa/test_provision.py b/tests/pa/test_provision.py index 0335bc9c..27f75266 100644 --- a/tests/pa/test_provision.py +++ b/tests/pa/test_provision.py @@ -268,8 +268,8 @@ class TestProvision(AgentTestCase): fileutil.write_file(ovfenv_file, ovfenv_data) ph.run() - ph.report_eve...
{ "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": 2, "test_score": 3 }, "num_modified_files": 3 }
2.2
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "nose", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.4", "reqs_path": ...
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/pa/test_provision.py::TestProvision::test_provision_telemetry_fail" ]
[]
[ "tests/pa/test_provision.py::TestProvision::test_customdata", "tests/pa/test_provision.py::TestProvision::test_handle_provision_guest_agent", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_is_provisioned", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_not_deprovisioned", "...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-1318
ae2aec6fc31a4742c139d93cfc5e571e7afc741b
2018-08-23 19:52:31
6e9b985c1d7d564253a1c344bab01b45093103cd
diff --git a/azurelinuxagent/pa/provision/cloudinit.py b/azurelinuxagent/pa/provision/cloudinit.py index 9609d7da..3f3cdb04 100644 --- a/azurelinuxagent/pa/provision/cloudinit.py +++ b/azurelinuxagent/pa/provision/cloudinit.py @@ -69,9 +69,10 @@ class CloudInitProvisionHandler(ProvisionHandler): durati...
Record OS boot time for Failed Provisions Too The OS boot time is recorded in the Provision event **only** in the case of a successful provision. The OS boot time should be recorded in the case of a failed provision too.
Azure/WALinuxAgent
diff --git a/tests/pa/test_provision.py b/tests/pa/test_provision.py index 0335bc9c..27f75266 100644 --- a/tests/pa/test_provision.py +++ b/tests/pa/test_provision.py @@ -268,8 +268,8 @@ class TestProvision(AgentTestCase): fileutil.write_file(ovfenv_file, ovfenv_data) ph.run() - ph.report_eve...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 2 }
2.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", "pyasn1" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.7", "reqs_path"...
attrs @ file:///croot/attrs_1668696182826/work certifi @ file:///croot/certifi_1671487769961/work/certifi distro==1.9.0 flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1648562407465/work iniconfig @ file:///home/lin...
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=22.1.0=py37h06a4308_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - fl...
[ "tests/pa/test_provision.py::TestProvision::test_provision_telemetry_fail" ]
[]
[ "tests/pa/test_provision.py::TestProvision::test_customdata", "tests/pa/test_provision.py::TestProvision::test_handle_provision_guest_agent", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_is_provisioned", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_not_deprovisioned", "...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-1865
ed5cb578f3ee4e765f7211919a1ffebb504e0c24
2020-04-23 19:24:31
6e9b985c1d7d564253a1c344bab01b45093103cd
codecov[bot]: # [Codecov](https://codecov.io/gh/Azure/WALinuxAgent/pull/1865?src=pr&el=h1) Report > Merging [#1865](https://codecov.io/gh/Azure/WALinuxAgent/pull/1865?src=pr&el=desc) into [develop](https://codecov.io/gh/Azure/WALinuxAgent/commit/92b652e031dd01027113702df7ee93c816bfd1aa&el=desc) will **not change** cove...
diff --git a/azurelinuxagent/common/osutil/factory.py b/azurelinuxagent/common/osutil/factory.py index 56515ede..5baa9ebb 100644 --- a/azurelinuxagent/common/osutil/factory.py +++ b/azurelinuxagent/common/osutil/factory.py @@ -65,7 +65,9 @@ def _get_osutil(distro_name, distro_code_name, distro_version, distro_full_name...
[BUG] 'WARNING Dhcp client is not running' on Ubuntu 19.10 ## Description On Ubuntu 19.10 **WALinuxAgent** keeps reporting that the DHCP client is not running: ``` WARNING ExtHandler Dhcp client is not running. WARNING ExtHandler Dhcp client is not running. WARNING ExtHandler Dhcp client is not running. ``` ...
Azure/WALinuxAgent
diff --git a/tests/common/osutil/test_factory.py b/tests/common/osutil/test_factory.py index adc099d5..aa7daebc 100644 --- a/tests/common/osutil/test_factory.py +++ b/tests/common/osutil/test_factory.py @@ -83,12 +83,19 @@ class TestOsUtilFactory(AgentTestCase): self.assertEquals(ret.get_service_name(), "walin...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 3 }, "num_modified_files": 2 }
2.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": [ "codecov", "coverage", "flake8", "mock", "nose", "nose-timer", "pytest" ], "pre_install": [ "...
certifi==2025.1.31 charset-normalizer==3.4.1 codecov==2.1.13 coverage==7.6.1 distro==1.9.0 exceptiongroup==1.2.2 flake8==7.1.2 idna==3.10 iniconfig==2.1.0 mccabe==0.7.0 mock==5.2.0 nose==1.3.7 nose-timer==1.0.1 packaging==24.2 pluggy==1.5.0 pyasn1==0.6.1 pycodestyle==2.12.1 pyflakes==3.2.0 pytest==8.3.5 requests==2.32....
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 - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc...
[ "tests/common/osutil/test_factory.py::TestOsUtilFactory::test_get_osutil_it_should_return_ubuntu" ]
[]
[ "tests/common/osutil/test_factory.py::TestOsUtilFactory::test_get_osutil_it_should_return_alpine", "tests/common/osutil/test_factory.py::TestOsUtilFactory::test_get_osutil_it_should_return_arch", "tests/common/osutil/test_factory.py::TestOsUtilFactory::test_get_osutil_it_should_return_bigip", "tests/common/os...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-2633
672dbf32f565a14632bcfd081c3c553c821fca77
2022-07-21 14:02:57
672dbf32f565a14632bcfd081c3c553c821fca77
codecov[bot]: # [Codecov](https://codecov.io/gh/Azure/WALinuxAgent/pull/2633?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Azure) Report > Merging [#2633](https://codecov.io/gh/Azure/WALinuxAgent/pull/2633?src=pr&el=desc&utm_medium=referral&utm_source=github&ut...
diff --git a/azurelinuxagent/common/protocol/goal_state.py b/azurelinuxagent/common/protocol/goal_state.py index 8b508f61..4d354e56 100644 --- a/azurelinuxagent/common/protocol/goal_state.py +++ b/azurelinuxagent/common/protocol/goal_state.py @@ -352,12 +352,12 @@ class GoalState(object): certs_uri = findt...
[BUG] Waagent history files consuming all inodes I'm running a number of Azure VMs with Centos linux servers and noticed this issue permeating across a number of them. It seems the inodes have been consumed entirely, although memory usage is relatively low. ``` $ df -H Filesystem Size Used Avail Use% Mounted...
Azure/WALinuxAgent
diff --git a/tests/utils/test_archive.py b/tests/utils/test_archive.py index 5eee67c7..ce97d65f 100644 --- a/tests/utils/test_archive.py +++ b/tests/utils/test_archive.py @@ -6,8 +6,9 @@ import zipfile from datetime import datetime, timedelta import azurelinuxagent.common.logger as logger +from azurelinuxagent.comm...
{ "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": 4 }
2.7
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "codecov", "coverage", "mock", "distro", "nose", "nose-timer", "wrapt", "pylin...
astroid==3.3.9 certifi==2025.1.31 charset-normalizer==3.4.1 codecov==2.1.13 coverage==7.8.0 dill==0.3.9 distro==1.9.0 exceptiongroup==1.2.2 idna==3.10 iniconfig==2.1.0 isort==6.0.1 mccabe==0.7.0 mock==5.2.0 nose==1.3.7 nose-timer==1.0.1 packaging==24.2 platformdirs==4.3.7 pluggy==1.5.0 pyasn1==0.6.1 pylint==3.3.6 pytes...
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 - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - libgcc...
[ "tests/utils/test_archive.py::TestArchive::test_goal_state_history_init_should_purge_old_items" ]
[]
[ "tests/utils/test_archive.py::TestArchive::test_archive_should_zip_all_but_the_latest_goal_state_in_the_history_folder", "tests/utils/test_archive.py::TestArchive::test_purge_legacy_goal_state_history" ]
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-304
807e22c6ca5b75b8c19fe27eefd9b8f830e8b367
2016-07-08 21:40:51
807e22c6ca5b75b8c19fe27eefd9b8f830e8b367
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/rdma.py b/azurelinuxagent/common/rdma.py index 3ba332d3..c9451a21 100644 --- a/azurelinuxagent/common/rdma.py +++ b/azurelinuxagent/common/rdma.py @@ -21,15 +21,56 @@ Handle packages and modules to enable RDMA for IB networking import os import re -import threading import time +...
`systemctl stop waagent` hangs Reproes on Ubuntu 16.04 as well as CentOS 7. `systemctl stop walinuxagent` command hangs for a long time, although it eventually succeeds like after maybe 30-40 seconds. It used to be instant. I think it's related to the signal handling behavior that has been recently changed.
Azure/WALinuxAgent
diff --git a/tests/daemon/test_monitor.py b/tests/ga/test_monitor.py similarity index 95% rename from tests/daemon/test_monitor.py rename to tests/ga/test_monitor.py index e037dc0c..838d037a 100644 --- a/tests/daemon/test_monitor.py +++ b/tests/ga/test_monitor.py @@ -17,7 +17,7 @@ from tests.tools import * from azu...
{ "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": 2, "issue_text_score": 1, "test_score": 3 }, "num_modified_files": 5 }
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_monitor.py::TestMonitor::test_parse_xml_event", "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::TestGuestAgentE...
[]
[]
[]
Apache License 2.0
null
null
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
null
null