PatchEval / tasks.jsonl
DogukanUrker's picture
Publish PatchEval pilot-20
a4d3c7a verified
Raw
History Blame Contribute Delete
70.7 kB
{"fail_to_pass_command":["pytest","-q","--timeout=60","tests/unit/test_multi_statement.py::TestStatementSplitting::test_preserves_semicolons_in_dollar_quoted_strings","tests/unit/test_multi_statement.py::TestStatementSplitting::test_preserves_semicolons_in_named_dollar_quoted_strings","tests/unit/test_multi_statement.py::TestStatementSplitting::test_dollar_quotes_inside_standard_strings_are_ignored"],"hidden_test_patch":"hidden-tests/sqlit-246.patch","hidden_test_sha256":"8c996d9f14192966e18f5dc48bd08f619ae44ab687594f2a769d57ce119c72c4","id":"sqlit-246","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"**Bug Report**\n\n When connected to a PostgreSQL database and running a CREATE OR REPLACE FUNCTION statement that uses dollar-quoting ($$), sqlit throws a parsing error before sending the query to Postgres:\n\n _unterminated dollar-quoted string at or near \"$$\n DECLARE\n ...\"\n LINE 2: RETURNS api.transactions AS $$_\n ^\n\n **Steps to Reproduce**\n\n 1. Connect sqlit to a PostgreSQL database\n 2. Run any function/procedure using dollar-quote syntax, e.g.:\n\n CREATE OR REPLACE FUNCTION example()\n RETURNS void AS $$\n BEGIN\n -- body\n END;\n $$ LANGUAGE plpgsql;\n\n **Expected Behavior**\n\n The full statement should be sent to PostgreSQL as-is. PostgreSQL natively supports dollar-quoting and executes it without\n error.\n\n **Actual Behavior**\n\n sqlit appears to parse/split the statement client-side and does not correctly handle $$ dollar-quote delimiters, resulting in\n the error above.\n\n **Workaround**\n\n Running the same SQL via psql directly works fine.\n\n - Tool: sqlit\n - Database: PostgreSQL\n\n<img width=\"649\" height=\"199\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/d4456a32-3bcb-4c04-a2a4-65fc157a1c26\" />\n","issue_title":"PostgreSQL dollar-quoted strings ($$) cause \"unterminated dollar-quoted string\" error","protected_globs":["tests/unit/test_multi_statement.py"],"regression_command":["pytest","-q","--timeout=60","tests/","--ignore=tests/test_mssql.py","--ignore=tests/test_postgresql.py","--ignore=tests/test_mysql.py","--ignore=tests/test_oracle.py","--ignore=tests/test_mariadb.py","--ignore=tests/test_cockroachdb.py","--ignore=tests/test_turso.py","--ignore=tests/test_firebird.py","--ignore=tests/test_ssh.py","--ignore=tests/test_clickhouse.py"],"repository":"Maxteabag/sqlit","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm-slim","environment":["PYTHONPATH=/workspace/repo","PYTHONDONTWRITEBYTECODE=1","UV_CACHE_DIR=/tmp/uv-cache","XDG_CONFIG_HOME=/tmp/patcheval-config","SETUPTOOLS_SCM_PRETEND_VERSION_FOR_SQLIT_TUI=0.0.0"],"schema_version":1,"sync_command":["uv","sync","--frozen","--group","test","--no-dev","--extra","duckdb","--no-install-project"]},"source_archive":"sources/sqlit-246.tar","source_sha256":"37e92cffd7649eebd9f247d6baaf7ce35b89a3b0e3eab48ed82e04defaf5282f","timeout_s":900,"validated":true}
{"fail_to_pass_command":["pytest","-q","--timeout=60","tests/connections/providers/oracle/test_statement_execution.py::test_execute_query_removes_sql_statement_terminator","tests/connections/providers/oracle/test_statement_execution.py::test_execute_non_query_removes_sql_statement_terminator","tests/connections/providers/oracle/test_statement_execution.py::test_execute_non_query_preserves_plsql_terminator"],"hidden_test_patch":"hidden-tests/sqlit-260.patch","hidden_test_sha256":"6744a8637a2c5bfdf8784bba6d48bd1b1f2f8918d4fed945e965be7a6947be01","id":"sqlit-260","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"If I write this query\n\n```sql\nALTER SESSION SET EDITION = V0;\n```\nI get\n```\nQuery error: ORA-00922: missing or invalid option\nHelp: https://docs.oracle.com/error-help/db/ora-00922/\n```\n\nbut if I remove the trailing `;` it works","issue_title":"oracledb: if query has `;` it fails with `ORA-00922: missing or invalid option`","protected_globs":["tests/connections/providers/oracle/test_statement_execution.py"],"regression_command":["pytest","-q","--timeout=60","tests/","--ignore=tests/test_mssql.py","--ignore=tests/test_postgresql.py","--ignore=tests/test_mysql.py","--ignore=tests/test_oracle.py","--ignore=tests/test_mariadb.py","--ignore=tests/test_cockroachdb.py","--ignore=tests/test_turso.py","--ignore=tests/test_firebird.py","--ignore=tests/test_ssh.py","--ignore=tests/test_clickhouse.py"],"repository":"Maxteabag/sqlit","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm-slim","environment":["PYTHONPATH=/workspace/repo","PYTHONDONTWRITEBYTECODE=1","UV_CACHE_DIR=/tmp/uv-cache","XDG_CONFIG_HOME=/tmp/patcheval-config","SETUPTOOLS_SCM_PRETEND_VERSION_FOR_SQLIT_TUI=0.0.0"],"schema_version":1,"sync_command":["uv","sync","--frozen","--group","test","--no-dev","--extra","duckdb","--no-install-project"]},"source_archive":"sources/sqlit-260.tar","source_sha256":"ad45cceffdbc5e3629a0b1ccd608266f0f0f1e7820fa86557bb51573b6da669f","timeout_s":900,"validated":true}
{"fail_to_pass_command":["python","-m","pytest","-q","--randomly-seed=0","--hypothesis-seed=0","-o","cache_dir=/tmp/pytest-cache","--constructors=pandas,pandas[nullable]","tests/frame/concat_test.py::test_concat_horizontal_pandas_left_hand_rule"],"hidden_test_patch":"hidden-tests/narwhals-3864.patch","hidden_test_sha256":"543c57d1a118280d000165857c1bd5f9e67c0286e4e51dd6eaf364fbd2ce6655","id":"narwhals-3864","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"Hi, this is sort of a collection of issues/questions but I'm reporting them together to share to full picture.\n\nI'm currently trying to figure out how to best handle pandas indices in the context of `nw.concat` for certain cases. Consider the situation where I have some function `process` that transforms a given dataframe into another but *not* using index-preserving dataframe operations (the specifics don't matter, but in my case this happens because I'm transitioning to `torch` for the computation).\n\nThe problem I run into is that the resulting pandas execution will differ from other backends if I feed the resulting dataframe together with the original one into `nw.concat`:\n\n```python\nimport narwhals as nw\nimport pandas as pd\n\n\ndef process(df: nw.DataFrame) -> nw.DataFrame:\n return nw.from_dict(\n {\"B\": list(range(len(df)))}, backend=nw.get_native_namespace(df)\n )\n\n\ndf1 = pd.DataFrame({\"A\": [1, 2, 3]}, index=[10, 20, 30])\ndf1_nw = nw.from_native(df1)\ndf2_nw = process(df1_nw)\n\nprint(\"\\n-- concat without index alignment --\")\nprint(nw.to_native(nw.concat([df1_nw, df2_nw], how=\"horizontal\")))\n```\n\nThat is, for polars I'll get the \"expected\" compact 3-row dataframe while for pandas I get:\n```\n-- concat without index alignment --\n A B\n10 1.0 NaN\n20 2.0 NaN\n30 3.0 NaN\n0 NaN 0.0\n1 NaN 1.0\n2 NaN 2.0\n```\n\n### Questions\n1. Do you see a better way how to handle this situation, i.e. how would you approach it?\n2. One easy way to avoid losing the index would be if there existed some function that would let me \"swap out\" the dataframe content of the original one, instead of creating a new one. In particular, that would allow to both a) keep the index and b) keep the backend information. But I guess that functionality does not exist? The closest I could find is `replace_strict`, but that only works for `Series`.\n3. The other alternative I see is manually handle the index by calling `maybe_get_index`/`maybe_set_index`, like outlined in the method below. However, when I tried this, I was very surprised that the two functions are not symmetric in terms of types! That is, I would have expected that `maybe_set_index` also accepts an interable like `Series.from_iterable` does and I can easily nest them like `nw.maybe_set_index(..., index=nw.maybe_get_index(...))`, but that does not seem to be the case.\n\nAny thoughts here?\n\n```python\ndef process_preserving_index(df: nw.DataFrame) -> nw.DataFrame:\n idx = nw.maybe_get_index(df)\n result = process(df)\n if idx is not None:\n idx_series = nw.from_native(pd.Series(idx), series_only=True)\n result = nw.maybe_set_index(result, index=idx_series)\n return result\n```","issue_title":"`nw.concat` and `maybe_get/set_index`","protected_globs":["tests/expr_and_series/corr_test.py","tests/expr_and_series/cov_test.py","tests/frame/concat_test.py"],"regression_command":["python","-m","pytest","-q","--randomly-seed=0","--hypothesis-seed=0","-o","cache_dir=/tmp/pytest-cache","--runslow","--constructors=pandas,pandas[nullable]","tests"],"repository":"narwhals-dev/narwhals","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.12.1-python3.14-trixie-slim","bootstrap_command":["uv","pip","install","--python","/opt/venv/bin/python","--only-binary",":all:","uv_build==0.11.0"],"environment":["HOME=/home/node","XDG_CACHE_HOME=/tmp/xdg-cache","UV_CACHE_DIR=/tmp/uv-cache","PYTHONPATH=/workspace/repo/src","PYTHONDONTWRITEBYTECODE=1","PYTHONUNBUFFERED=1","PYTHONHASHSEED=0","PIP_NO_INDEX=1","PIP_DISABLE_PIP_VERSION_CHECK=1","UV_OFFLINE=1","NARWHALS_DEFAULT_CONSTRUCTORS=pandas,pandas[nullable]","MODIN_ENGINE=python","PYARROW_IGNORE_TIMEZONE=1","TZ=UTC","LANG=C.UTF-8","LC_ALL=C.UTF-8","TERM=dumb","NO_COLOR=1","PYTHON_COLORS=0"],"schema_version":1,"sync_command":["uv","sync","--frozen","--no-default-groups","--group","tests","--extra","pandas","--no-install-project"]},"setup_command":["/bin/sh","-ec","mkdir -p \"$HOME\" \"$XDG_CACHE_HOME\" \"$UV_CACHE_DIR\" && uv pip install --offline --python /opt/venv/bin/python --no-deps --no-build-isolation --editable ."],"source_archive":"sources/narwhals-3864.tar","source_sha256":"58ec8ccfdd1e3b00d15715f665de6cb6796e4f9d456d8c0a55d3a9bad7ea25d2","timeout_s":1800,"validated":true}
{"fail_to_pass_command":["pytest","-q","tests/test_utils.py::TestPlotting::test_plot_graph_homo_with_legend_kwargs_and_title"],"hidden_test_patch":"hidden-tests/city2graph-121.patch","hidden_test_sha256":"5d0b869d29071084acbc351447cc02a402b938b303d83b817b1a04aa3503d6e6","id":"city2graph-121","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"### Contributing guidelines\n\n- [x] I understand the contributing guidelines\n\n### Documentation\n\n- [x] My proposal is not addressed by the documentation or examples\n\n### Existing issues\n\n- [x] Nothing similar appears in an existing issue\n\n### Describe the bug\n\nIn trying to reproduce the GTFS to Graphs example (https://city2graph.net/latest/examples/gtfs.html#the-power-of-graph-representation) , I found an error when plotting:\n```\nc2g.plot_graph(\n nodes=travel_nodes,\n edges=travel_edges,\n markersize=8,\n node_color='centrality_quantile',\n node_alpha=0.9,\n edge_color='#bbbbbb',\n edge_linewidth=travel_edges['frequency'] / 200,\n edge_alpha=0.7,\n figsize=(16, 16),\n title=\"Central London Transit Network\\nBetweenness Centrality of Stops\",\n legend=True,\n legend_kwargs={'label': 'Betweenness Centrality', 'orientation': 'horizontal'},\n title = 'Central London Transit Network\\nBetweenness Centrality of Stops',\n ax=ax\n)\n```\n> `IndexError: index 1 is out of bounds for axis 0 with size 1`\n\nRemoving `legend=True`, `legend_kwargs`, and `title` makes the same call work.\n\n\n### To Reproduce\n\n```python\n### Fails\n\nimport geopandas as gpd\nfrom shapely.geometry import Point, LineString\nimport matplotlib.pyplot as plt\nimport city2graph as c2g\n\nnodes = gpd.GeoDataFrame(\n {\"centrality_quantile\": [1, 2]},\n geometry=[Point(0, 0), Point(1, 1)],\n crs=\"EPSG:4326\",\n)\n\nedges = gpd.GeoDataFrame(\n {\"frequency\": [100, 200]},\n geometry=[LineString([(0, 0), (1, 1)]), LineString([(1, 1), (2, 2)])],\n crs=\"EPSG:4326\",\n)\n\nfig, ax = plt.subplots(figsize=(5, 5))\n\nc2g.plot_graph(\n nodes=nodes,\n edges=edges,\n node_color=\"centrality_quantile\",\n edge_color=\"#bbbbbb\",\n edge_linewidth=edges[\"frequency\"] / 200,\n legend=True,\n legend_kwargs={\"label\": \"Betweenness Centrality\", \"orientation\": \"horizontal\"},\n title = \"Central London Transit Network Betweenness Centrality of Stops\",\n ax=ax,\n)\n\nplt.show()\n```\nThis produces:\n > `IndexError: index 1 is out of bounds for axis 0 with size 1`\nI would expect that this creates plots the graph\n\n\n### Expected behavior\n\n```python\n### Works\n# Removing `legend=True`, `legend_kwargs`, and `title` a makes the same call succeed.\n\nimport geopandas as gpd\nfrom shapely.geometry import Point, LineString\nimport matplotlib.pyplot as plt\nimport city2graph as c2g\n\nnodes = gpd.GeoDataFrame(\n {\"centrality_quantile\": [1, 2]},\n geometry=[Point(0, 0), Point(1, 1)],\n crs=\"EPSG:4326\",\n)\n\nedges = gpd.GeoDataFrame(\n {\"frequency\": [100, 200]},\n geometry=[LineString([(0, 0), (1, 1)]), LineString([(1, 1), (2, 2)])],\n crs=\"EPSG:4326\",\n)\n\nfig, ax = plt.subplots(figsize=(5, 5))\n\nc2g.plot_graph(\n nodes=nodes,\n edges=edges,\n node_color=\"centrality_quantile\",\n edge_color=\"#bbbbbb\",\n edge_linewidth=edges[\"frequency\"] / 200,\n # legend=True,\n # legend_kwargs={\"label\": \"Betweenness Centrality\", \"orientation\": \"horizontal\"},\n # title = \"Central London Transit Network Betweenness Centrality of Stops\"\n ax=ax,\n)\n\nplt.show()\n```\n\n### Environment (please complete the following information):\n\nOS: macOS 15.7.2 \n\nCPU: Apple M4 Max (arm64)\n\nGPU: Apple M4 Max (integrated GPU)\n\nPython version: 3.13\n\ncity2graph version: 0.2.4\n\ntorch version: 2.10.0\n\ntorch_geometric version: 2.7.0\n\n### How did you install city2graph?\n\nvia PyPI (e.g., pip)\n\n### Additional context\n\n_No response_","issue_title":"[BUG] plot_graph fails when `legend=True` , `legend_kwargs` and `title` is provided","protected_globs":["tests/test_utils.py"],"regression_command":["pytest","-q","tests"],"repository":"c2g-dev/city2graph","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm","environment":["PYTHONPATH=/workspace/repo","MPLBACKEND=Agg","MPLCONFIGDIR=/tmp/matplotlib","XDG_CACHE_HOME=/tmp/xdg-cache","PYTHONDONTWRITEBYTECODE=1","UV_CACHE_DIR=/tmp/uv-cache"],"schema_version":1,"sync_command":["uv","sync","--frozen","--extra","cpu","--group","dev","--no-install-project"]},"source_archive":"sources/city2graph-121.tar","source_sha256":"baa7c30a4b2e214b7e2cf9b51128f39da05947b7d34f3528139b1a8b19b5db3f","timeout_s":1200,"validated":true}
{"fail_to_pass_command":["pytest","-q","tests/test_parse_string.py::test_parse_string_preserves_repeated_escaped_backslashes_during_repair"],"hidden_test_patch":"hidden-tests/json-repair-207.patch","hidden_test_sha256":"6a9e3a7f9307b102bc29764df8b4fe17c956f9227af6533015cb37105f1efbdb","id":"json-repair-207","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"### Version of the library\n\nhttps://mangiucugna.github.io/json_repair/#jr=v1.d.eJw9isEKglAUBX9FDoKL3kZr9aAv6bR42i2sfMZVQbjcf4_ImsUwizHcEWHEMolORDwZkdMgRCTKtGuPHXnV1Fnt1nhJBELH53cgW7n12V5DmrVfvai50fxi_9GhICVf_h8R_ByI8UHEWRepmOFvF04wEQ\n\n### Describe the bug\n\nLaTex uses double backslashes `\\\\` to break new liens, and in JSON we have to write 4 backslashes `\\\\\\\\`. This is important in writing matrices.\njson_repair would convert `\\\\\\\\` (4 backslashes) to `\\\\` (2 backslahes), making the matrix expression incorrect.\n\n### How to reproduce\nFor input\n`{ \"content\": [ { \"topic_text\": \" $$\\\\begin{pmatrix} a\\\\\\\\b\\\\\\\\c \\\\end{pmatrix}$$\" } ] } `\n\noutput is\n`\n{\n \"content\": [\n {\n \"topic_text\": \" $$\\\\begin{pmatrix} a\\\\b\\\\c \\\\end{pmatrix}$$\"\n }\n ]\n}\n`\n\n### Expected behavior\n`\n{\n \"content\": [\n {\n \"topic_text\": \" $$\\\\begin{pmatrix} a\\\\\\\\b\\\\\\\\c \\\\end{pmatrix}$$\"\n }\n ]\n}\n`","issue_title":"[Bug]: Backslashes in LaTex expression","protected_globs":["tests/test_parse_string.py"],"regression_command":["pytest","-q","--ignore=tests/test_performance.py"],"repository":"mangiucugna/json_repair","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.8.14-python3.13-bookworm-slim","bootstrap_command":["uv","pip","install","--python","/opt/venv/bin/python","setuptools==80.9.0"],"environment":["PYTHONPATH=/workspace/repo/src","PYTHONDONTWRITEBYTECODE=1","UV_CACHE_DIR=/tmp/uv-cache"],"schema_version":1,"sync_command":["uv","sync","--frozen","--all-groups","--no-install-project"]},"setup_command":["uv","pip","install","--offline","--python","/opt/venv/bin/python","--no-deps","--no-build-isolation","--editable","."],"source_archive":"sources/json-repair-207.tar","source_sha256":"b011f04bdc1346010cc83c3cbdbc48593b62942063464ce4c8db87495a735250","timeout_s":300,"validated":true}
{"fail_to_pass_command":["pytest","-q","tests/test_json_repair.py::test_parenthesized_prose_does_not_hijack_fenced_json"],"hidden_test_patch":"hidden-tests/json-repair-191.patch","hidden_test_sha256":"96b3b7a6fe4ae4f86f8f42e86af8aedadaa9cfe87b6d5409adf1df05e49a06b0","id":"json-repair-191","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"### Version of the library\n\n0.59.0\n\n### Describe the bug\n\nIf input contains () characters outside of json block, the result gets weird.\n\nWith 0.58.7 it works as expected: `{\"key\": \"value\"}` is returned.\nWith 0.59.0 result is: `[\"some clarification):\\n \\n ```json\\n {\", \"key\\\": \\\"value\"]`\n\n\n\n### How to reproduce\n\n```\n async def test_json_and_parenthesis(self):\n import json_repair\n data_str = \"\"\"\n **Decision**: bla, bla (some clarification):\n \n ```json\n {\n \"key\": \"value\"\n }\n ```\n \"\"\"\n\n repaired = json_repair.repair_json(data_str)\n\n self.assertEqual('{\"key\": \"value\"}', repaired)\n```\n\n### Expected behavior\n\n`{\"key\": \"value\"}` is returned.","issue_title":"[Bug]: 0.59.0 regression: () characters in input break json output","protected_globs":["tests/test_json_repair.py","tests/test_parse_array.py"],"regression_command":["pytest","-q","--ignore=tests/test_performance.py"],"repository":"mangiucugna/json_repair","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.8.14-python3.13-bookworm-slim","bootstrap_command":["uv","pip","install","--python","/opt/venv/bin/python","setuptools==80.9.0"],"environment":["PYTHONPATH=/workspace/repo/src","PYTHONDONTWRITEBYTECODE=1","UV_CACHE_DIR=/tmp/uv-cache"],"schema_version":1,"sync_command":["uv","sync","--frozen","--all-groups","--no-install-project"]},"setup_command":["uv","pip","install","--offline","--python","/opt/venv/bin/python","--no-deps","--no-build-isolation","--editable","."],"source_archive":"sources/json-repair-191.tar","source_sha256":"b81ba71d4e10022a7dd8b0345094c88cf0129f5ed6fe7bd3000c5138260624ae","timeout_s":300,"validated":true}
{"fail_to_pass_command":["pytest","-q","tests/test_schema_guided_parse.py::test_schema_union_branch_keeps_root_defs_scope_during_repair"],"hidden_test_patch":"hidden-tests/json-repair-205.patch","hidden_test_sha256":"ef001d5bffbb4e4dbd51620fd70532d3d1e6c4373abf7ca1c75e1171b49e68c4","id":"json-repair-205","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"### Version of the library\n\n0.61.4\n\n### Describe the bug\n\nWhen malformed JSON activates the schema-aware repair parser, validation of an `anyOf` branch containing a root-relative $ref fails with `PointerToNowhere`:\n\n```\njsonschema.exceptions._WrappedReferencingError: PointerToNowhere: '/$defs/Item' does not exist within {'type': 'array', 'items': {'$ref': '#/$defs/Item'}}\n```\n\njson_repair appears to validate the individual anyOf branch as a standalone schema document which fails because that isolated branch does not contain $defs.\n\n### How to reproduce\n\n```python\nimport json_repair\n\nschema = {\n \"$defs\": {\n \"Item\": {\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\"type\": \"string\"},\n },\n \"required\": [\"name\"],\n }\n },\n \"type\": \"object\",\n \"properties\": {\n \"value\": {\n \"anyOf\": [\n {\n \"type\": \"array\",\n \"items\": {\"$ref\": \"#/$defs/Item\"},\n },\n {\"type\": \"null\"},\n ]\n }\n },\n \"required\": [\"value\"],\n}\n\n# The trailing comma forces json_repair to use its repair parser.\nbroken_json = '{\"value\": [{\"name\": \"example\"}],}'\n\nprint(json_repair.loads(broken_json, schema=schema))\n```\n\n### Expected behavior\n\nThe reference should resolve against the original root schema.","issue_title":"[Bug]: Schema aware repair loses root $defs scope when validating an anyOf branch","protected_globs":["tests/test_schema_guided_parse.py"],"regression_command":["pytest","-q","--ignore=tests/test_performance.py"],"repository":"mangiucugna/json_repair","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.8.14-python3.13-bookworm-slim","bootstrap_command":["uv","pip","install","--python","/opt/venv/bin/python","setuptools==80.9.0"],"environment":["PYTHONPATH=/workspace/repo/src","PYTHONDONTWRITEBYTECODE=1","UV_CACHE_DIR=/tmp/uv-cache"],"schema_version":1,"sync_command":["uv","sync","--frozen","--all-groups","--no-install-project"]},"setup_command":["uv","pip","install","--offline","--python","/opt/venv/bin/python","--no-deps","--no-build-isolation","--editable","."],"source_archive":"sources/json-repair-205.tar","source_sha256":"e87c1fdebeecd474d38376c95c83f625a63b35d5d4f840e47a495121961ef274","timeout_s":300,"validated":true}
{"fail_to_pass_command":["pytest","-q","tests/test_termui.py::test_prompt_and_confirm_ansi_respects_color[confirm-no-color]"],"hidden_test_patch":"hidden-tests/click-3572.patch","hidden_test_sha256":"d6a1ee42b73b16163fb9b35056355ce65749240b87ec3f862805780dc101edd8","id":"click-3572","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"<!--\nThis issue tracker is a tool to address bugs in Click itself. Please use\nGitHub Discussions or the Pallets Discord for questions about your own code.\n\nReplace this comment with a clear outline of what the bug is.\n-->\nI had failing unit tests after upgrading to click 8.4.1. I was able to address some \nby using `runner.invoke(cmd, color=False)`, but that didn't help for commands\nthat use `click.confirm()`\n\n<!--\nDescribe how to replicate the bug.\n\nInclude a minimal reproducible example that demonstrates the bug.\nInclude the full traceback if there was an exception.\n-->\n\nThis test script `test_repro.py` replicates the issue.\n```\nimport click\nfrom click.testing import CliRunner\n\n\n@click.command()\ndef cmd():\n click.echo(click.style('Hello World!', fg='green'))\n\n\n@click.command()\ndef cmd_confirm():\n click.confirm(click.style('Hello World!', fg='green'), abort=True)\n\n\ndef test_echo_strips_ansi_with_color_false():\n runner = CliRunner()\n result = runner.invoke(cmd, color=False)\n assert result.output == \"Hello World!\\n\"\n\n\ndef test_confirm_strips_ansi_with_color_false():\n runner = CliRunner()\n result = runner.invoke(cmd_confirm, input=\"Y\", color=False)\n assert result.output == \"Hello World! [y/N]: Y\\n\" # FAILS: ANSI codes present\n```\n\nWith click 8.3.3 both tests pass. With click 8.4.0 and 8.4.1, the `test_confirm_strips_ansi_with_color_false` test fails:\n\n```\nuvx --with click==8.4 pytest test_repro.py\n...\n================================================ FAILURES ================================================\n_______________________________ test_confirm_strips_ansi_with_color_false ________________________________\n\n def test_confirm_strips_ansi_with_color_false():\n runner = CliRunner()\n result = runner.invoke(cmd_confirm, input=\"Y\", color=False)\n> assert result.output == \"Hello World! [y/N]: Y\\n\" # FAILS: ANSI codes present\n```\n\n<!--\nDescribe the expected behavior that should have happened but didn't.\n-->\nThe ansi codes should be stripped when running click.confirm, as they are for click.echo.\n\nEnvironment:\n\n- Python version: 3.13\n- Click version: 8.4.1\n- MacOS\n\n","issue_title":"ANSI codes not stripped from click.confirm after upgrading to click 8.4","protected_globs":["tests/test_termui.py"],"regression_command":["pytest","-q","-m","not stress","tests"],"repository":"pallets/click","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm-slim","bootstrap_command":["sh","-euxc","apt-get update && apt-get install -y --no-install-recommends less=590-2.1~deb12u2 && rm -rf /var/lib/apt/lists/*"],"environment":["PYTHONPATH=/workspace/repo/src","PYTHONDONTWRITEBYTECODE=1","PYTHONHASHSEED=0","PYTEST_DISABLE_PLUGIN_AUTOLOAD=1","LANG=C.UTF-8","LC_ALL=C.UTF-8","TZ=UTC","PIP_NO_INDEX=1","UV_OFFLINE=1"],"schema_version":1,"sync_command":["/bin/sh","-ec","SETUPTOOLS_SCM_PRETEND_VERSION_FOR_ATTRS=0.0.0 uv sync --frozen --no-default-groups --group tests --no-install-project"]},"source_archive":"sources/click-3572.tar","source_sha256":"a810395f18b7c9d84a7e97c027d312dfbacd8c5fcd9aca9e593fb187c2c93308","timeout_s":300,"validated":true}
{"fail_to_pass_command":["pytest","-q","tests/test_formatting.py::test_help_formatter_write_usage[empty-args-default-prefix]"],"hidden_test_patch":"hidden-tests/click-3360.patch","hidden_test_sha256":"b492d89726576456570f5a4ec209c61e4e1cae524b470beae226b530f6629118","id":"click-3360","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"If no `args` are passed to `HelpFormatter.write_usage`, the Usage line is not printed.\n\n### Reproduction\n\n```python\nimport click\n\nf = click.HelpFormatter()\nf.write_usage(\"program\")\nprint(f.getvalue())\n```\n<!--\nDescribe how to replicate the bug.\n\nInclude a minimal reproducible example that demonstrates the bug.\nInclude the full traceback if there was an exception.\n-->\n\n### Expected output\n```\nUsage: program\n```\n\n### Actual output\n(an empty line)\n\n### Environment\n\n- Python version: 3.12.3\n- Click version: 8.3.1\n\n### Additional information\n\nWe use `click` for a CLI program with interactive mode. We are about to use `click.HelpFormatter` to print help for internal commands, some of which do not accept any arguments (`exit`, for example).","issue_title":"Empty output from `HelpFormatter.write_usage` for a program without arguments","protected_globs":["tests/test_formatting.py"],"regression_command":["pytest","-q","-m","not stress","tests"],"repository":"pallets/click","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm-slim","bootstrap_command":["sh","-euxc","apt-get update && apt-get install -y --no-install-recommends less=590-2.1~deb12u2 && rm -rf /var/lib/apt/lists/*"],"environment":["PYTHONPATH=/workspace/repo/src","PYTHONDONTWRITEBYTECODE=1","PYTHONHASHSEED=0","PYTEST_DISABLE_PLUGIN_AUTOLOAD=1","LANG=C.UTF-8","LC_ALL=C.UTF-8","TZ=UTC","PIP_NO_INDEX=1","UV_OFFLINE=1"],"schema_version":1,"sync_command":["/bin/sh","-ec","SETUPTOOLS_SCM_PRETEND_VERSION_FOR_ATTRS=0.0.0 uv sync --frozen --no-default-groups --group tests --no-install-project"]},"source_archive":"sources/click-3360.tar","source_sha256":"d250a5680a151864900ce3271a1dac8057e58ba4be84b8e70f6c418522a72f29","timeout_s":300,"validated":true}
{"fail_to_pass_command":["pytest","-q","tests/test_formatting.py::test_formatting_usage_error_help_hint[help_names1-extra_options1-Try 'cli foo --help' for help.]"],"hidden_test_patch":"hidden-tests/click-2790.patch","hidden_test_sha256":"95c637397e9eea58e200e3001f2882f0da4cf99df1e4f5ad3d2cbb1347cc51d3","id":"click-2790","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"<!--\nThis issue tracker is a tool to address bugs in Click itself. Please use\nGitHub Discussions or the Pallets Discord for questions about your own code.\n\nReplace this comment with a clear outline of what the bug is.\n-->\n\nClick prints an incorrect suggestion when using a combination of nested command and required argument. This happens when the nested command shadows the `-h` option shortcut of the main command which Click apparently tolerates.\n\n<!--\nDescribe how to replicate the bug.\n\nInclude a minimal reproducible example that demonstrates the bug.\nInclude the full traceback if there was an exception.\n-->\n\n## Replication\n\nSee https://github.com/tumidi/click-subcommand-help-message.\n\n```shell-session\n$ click-test-cli foo\nUsage: click-test-cli foo [OPTIONS] REQUIRED_ARG\nTry 'click-test-cli foo -h' for help.\n\nError: Missing argument 'REQUIRED_ARG'.\n```\n\nBut, actually running the suggested `click-test-cli foo -h` prints\n\n```shell-session\n$ click-test-cli foo -h\nError: Option '-h' requires an argument.\n```\n\nInterestingly, Click correctly detects the shadowing of the option when printing the foo command help and prints a consistent help page.\n\n```shell-session\n$ click-test-cli foo --help\nUsage: click-test-cli foo [OPTIONS] REQUIRED_ARG\n\nOptions:\n -h, --host TEXT\n --help Show this message and exit.\n```\n\n### Python code\n\n```py\n@click.group(context_settings={\"help_option_names\": [\"-h\", \"--help\"]})\ndef cli():\n pass\n\n\n@click.command()\n@click.argument(\"required_arg\")\n@click.option(\"--host\", \"-h\", \"host\", default=\"localhost\")\ndef foo(required_arg, host):\n click.echo(f\"Foo command required_arg={required_arg} host={host}\")\n\n\ncli.add_command(foo)\n```\n\n<!--\nDescribe the expected behavior that should have happened but didn't.\n-->\n\n## Possible solutions\n\nFix the generated message, so it prints `Try 'click-test-cli foo --help' for help.` in this case.\n\nEnvironment:\n\n- Python version: 3.12.6\n- Click version: 8.2.0.dev0 d73083e\n","issue_title":"Nested command option shadowing `-h` prints wrong suggestion","protected_globs":["tests/test_formatting.py"],"regression_command":["pytest","-q","-m","not stress","tests"],"repository":"pallets/click","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm-slim","bootstrap_command":["sh","-euxc","apt-get update && apt-get install -y --no-install-recommends less=590-2.1~deb12u2 && rm -rf /var/lib/apt/lists/*"],"environment":["PYTHONPATH=/workspace/repo/src","PYTHONDONTWRITEBYTECODE=1","PYTHONHASHSEED=0","PYTEST_DISABLE_PLUGIN_AUTOLOAD=1","LANG=C.UTF-8","LC_ALL=C.UTF-8","TZ=UTC","PIP_NO_INDEX=1","UV_OFFLINE=1"],"schema_version":1,"sync_command":["/bin/sh","-ec","SETUPTOOLS_SCM_PRETEND_VERSION_FOR_ATTRS=0.0.0 uv sync --frozen --no-default-groups --group tests --no-install-project"]},"source_archive":"sources/click-2790.tar","source_sha256":"bcf76b9cd560a2fad48982274e8b68ec8bd6a8dc22e48fe93df39d9ff8e89e4d","timeout_s":300,"validated":true}
{"fail_to_pass_command":["python","-m","pytest","-q","-p","pytest_socket","-p","pytest_timeout","--timeout=60","-o","cache_dir=/tmp/pytest-cache","tests/test_text_extraction.py::test_text_leading_is_not_scaled_by_font_size"],"hidden_test_patch":"hidden-tests/pypdf-3982.patch","hidden_test_sha256":"24192fe8f49b136426596b99789ca659d4edfbf20542de86e2e2b109aebe8198","id":"pypdf-3982","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"I am using `visitor_text` to get text positions so I can draw highlight boxes over\na rendered page.\n\nThe attached PDF sets a text leading of 14 (`14 TL`) and uses `T*` to move to the\nnext line. Each `T*` should move down 14pt. `visitor_text` reports the lines\n168pt apart instead.\n\nThis looks distinct from #3247 / #3250, which corrected the *direction* of the\n`T*` translation (the missing horizontal component for rotated text). Here the\ndirection is fine and the *distance* is wrong.\n\nContent stream, in full:\n\n```\nBT\n/F1 12 Tf\n1 0 0 1 72 700 Tm\n14 TL\n(Line one) Tj\nT*\n(Line two) Tj\nT*\n(Line three) Tj\nET\n```\n\n## Environment\n\n```bash\n$ python -m platform\nWindows-10-10.0.26200-SP0\n\n$ python -c \"import pypdf;print(pypdf._debug_versions)\"\npypdf==6.16.1, crypt_provider=('local_crypt_fallback', '0.0.0'), PIL=12.3.0\n```\n\n## Code + PDF\n\n`tl_repro.pdf` attached (633 bytes). Happy for it to go in your tests.\n\n```python\nimport pypdf\n\npage = pypdf.PdfReader(\"tl_repro.pdf\").pages[0]\n\nys = []\npage.extract_text(\n visitor_text=lambda text, cm, tm, fd, fs:\n ys.append(round(tm[5], 2)) if text.strip() else None)\nprint(ys)\n```\n\nExpected `[700.0, 686.0, 672.0]` (14pt apart).\nActual `[700.0, 532.0, 364.0]` (168pt apart).\n\nFor reference, MuPDF 1.28.2 puts the three lines 14pt apart on this file\n(top-y `79.10 / 93.10 / 107.10`).\n\nThe extracted text itself is correct (`'Line one\\nLine two\\nLine three'`) \u2014 only\nthe reported text matrix is wrong.\n\n## Traceback\n\nNot applicable, no exception \u2014 the returned coordinates are just wrong.\n\n## Bisect\n\nSame file, same script:\n\n```\npypdf 5.0.1 : [700.0, 686.0, 672.0] correct\npypdf 5.1.0 : [700.0, 532.0, 364.0] wrong\npypdf 6.16.1: [700.0, 532.0, 364.0] wrong\n```\n\n[tl_repro.pdf](https://github.com/user-attachments/files/31226124/tl_repro.pdf)","issue_title":"T* moves by the wrong amount \u2014 regression in 5.1.0","protected_globs":["tests/test_text_extraction.py"],"regression_command":["python","-m","pytest","-q","-p","pytest_socket","-p","pytest_timeout","--timeout=60","-o","cache_dir=/tmp/pytest-cache","-m","not enable_socket and not samples","tests"],"repository":"py-pdf/pypdf","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.8.14-python3.11-bookworm-slim","bootstrap_command":["uv","pip","install","--python","/opt/venv/bin/python","--no-deps","--only-binary",":all:","flit_core==3.11.0","pygments==2.19.2"],"environment":["PYTHONPATH=/workspace/repo","PYTHONDONTWRITEBYTECODE=1","PYTHONUNBUFFERED=1","PYTHONHASHSEED=0","PYTEST_DISABLE_PLUGIN_AUTOLOAD=1","PIP_NO_INDEX=1","PIP_DISABLE_PIP_VERSION_CHECK=1","XDG_CACHE_HOME=/tmp/xdg-cache","TZ=UTC","LANG=C.UTF-8","LC_ALL=C.UTF-8"],"schema_version":1,"sync_command":["/bin/sh","-c","python -m venv /opt/venv && uv pip install --python /opt/venv/bin/python --no-deps --only-binary :all: -r requirements/ci-3.11.txt"]},"setup_command":["uv","pip","install","--offline","--python","/opt/venv/bin/python","--no-deps","--no-build-isolation","--editable","."],"source_archive":"sources/pypdf-3982.tar","source_sha256":"5a49bc62c5c37a4aaf8796e82c0bb09ab7dc30b253991aeb9189a2e806cb7119","timeout_s":1200,"validated":true}
{"fail_to_pass_command":["python","-m","pytest","-q","-p","pytest_socket","-p","pytest_timeout","--timeout=60","-o","cache_dir=/tmp/pytest-cache","tests/generic/test_data_structures.py::test_remove_from_tree_on_outline_item"],"hidden_test_patch":"hidden-tests/pypdf-3878.patch","hidden_test_sha256":"1f35d4edd2497d3568cac113ae07fcb935b5e3454799094fc7180d2ed8b7ca05","id":"pypdf-3878","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"[Issue description, minimal reproducible example, and link to test document](https://stackoverflow.com/questions/79962929/calling-remove-from-tree-on-outline-item-causes-removed-child-does-not-appear-t?noredirect=1#comment141089279_79962929)\n\n## Environment\n\nWhich environment were you using when you encountered the problem?\n\n```bash\n$ python -m platform\nWindows-11-10.0.26200-SP0\n\n$ python -c \"import pypdf;print(pypdf._debug_versions)\"\npypdf==6.13.0, crypt_provider=('cryptography', '48.0.0'), PIL=12.2.0\n```\n\n## Code + PDF\n\nThis is a minimal, complete example that shows the issue:\n\n```python\n# Source - https://stackoverflow.com/q/79962929\n# Posted by Les Harris, modified by community. See post 'Timeline' for change history\n# Retrieved 2026-06-19, License - CC BY-SA 4.0\n\nfrom typing import List, Union\n\nfrom pypdf import PdfReader, PdfWriter\nfrom pypdf.generic import Destination, Fit, NameObject, ArrayObject, NumberObject, FloatObject\n\ndef remove_outline_item(output_path: str) -> None:\n try:\n # Remove a specific outline item by its color\n for outline in writer.outline:\n if isinstance(outline, list):\n remove_outline_item(outline)\n else:\n if outline.color == [0.0, 0.0, 0.0]:\n print(outline.title, outline.color, outline.get(\"/Parent\"))\n outline.remove_from_tree() # error happens here\n \n except FileNotFoundError:\n print(f\"Error: File '{output_path}' not found.\")\n except Exception as e:\n print(f\"An error occurred: {e}\")\n\nreader = PdfReader(\"input.pdf\")\nwriter = PdfWriter(clone_from=reader)\n\nremove_outline_item(writer)\n\n# Save to a new file\nwith open(\"output.pdf\", \"wb\") as f:\n writer.write(f)\n\n```\n\nFor testing:\n[input.pdf](https://github.com/user-attachments/files/29153170/input.pdf)\n\n## Traceback\n\nThis is the complete traceback I see:\n\n```\n# Source - https://stackoverflow.com/q/79962929\n# Posted by Les Harris, modified by community. See post 'Timeline' for change history\n# Retrieved 2026-06-19, License - CC BY-SA 4.0\n\nPS C:\\temp> python change-bookmark-text-color.py\nCover [0.0, 0.0, 0.0] None\nAn error occurred: Removed child does not appear to be a tree item\n\n```\n","issue_title":"Calling remove_from_tree on outline item causes \"Removed child does not appear to be a tree item\" error","protected_globs":["tests/generic/test_data_structures.py"],"regression_command":["python","-m","pytest","-q","-p","pytest_socket","-p","pytest_timeout","--timeout=60","-o","cache_dir=/tmp/pytest-cache","-m","not enable_socket and not samples","tests"],"repository":"py-pdf/pypdf","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.8.14-python3.11-bookworm-slim","bootstrap_command":["uv","pip","install","--python","/opt/venv/bin/python","--no-deps","--only-binary",":all:","flit_core==3.11.0","pygments==2.19.2"],"environment":["PYTHONPATH=/workspace/repo","PYTHONDONTWRITEBYTECODE=1","PYTHONUNBUFFERED=1","PYTHONHASHSEED=0","PYTEST_DISABLE_PLUGIN_AUTOLOAD=1","PIP_NO_INDEX=1","PIP_DISABLE_PIP_VERSION_CHECK=1","XDG_CACHE_HOME=/tmp/xdg-cache","TZ=UTC","LANG=C.UTF-8","LC_ALL=C.UTF-8"],"schema_version":1,"sync_command":["/bin/sh","-c","python -m venv /opt/venv && uv pip install --python /opt/venv/bin/python --no-deps --only-binary :all: -r requirements/ci-3.11.txt"]},"setup_command":["uv","pip","install","--offline","--python","/opt/venv/bin/python","--no-deps","--no-build-isolation","--editable","."],"source_archive":"sources/pypdf-3878.tar","source_sha256":"c6853735f6f494b8202622393418d82192b2000bc91bf9fe133634619e6c47b9","timeout_s":1200,"validated":true}
{"fail_to_pass_command":["python","-m","pytest","-q","-p","pytest_socket","-p","pytest_timeout","--timeout=60","-o","cache_dir=/tmp/pytest-cache","tests/generic/test_base.py::test_text_string_object__looks_like_bom"],"hidden_test_patch":"hidden-tests/pypdf-3587.patch","hidden_test_sha256":"d7dbc9b6309ee54bbfbe2a7b9075c4320e704e46e3cbc703e7f94c72b546f24d","id":"pypdf-3587","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"I get an AssertionError when merging a PDF that contains both latin and Chinese characters. This happens with a real PDF I work with, but for this issue I've created a small PDF that triggers the error. Perhaps the fact that the PDF contains both latin and Chinese characters has nothing to do with the issue, but I suspect it does.\n\n## Environment\n\n```bash\n$ python3 -c \"import pypdf;print(pypdf._debug_versions)\"\npypdf==6.5.0, crypt_provider=('cryptography', '43.0.0'), PIL=11.1.0\n```\n\n## Code + PDF\n\n```python\nimport pypdf\n\nreader = pypdf.PdfReader(\"minimal.pdf\")\nwriter = pypdf.PdfWriter()\nfor page in reader.pages:\n writerPage = writer.add_blank_page(reader.pages[0].mediabox.width, reader.pages[0].mediabox.height)\n writerPage.merge_page(page)\n```\n\n[minimal.pdf](https://github.com/user-attachments/files/24400020/minimal.pdf)\n\nI do not know why this particular set of characters triggers the error, but it's the minimal set I could find that triggers it. Feel free to add the PDF to your tests.\n\n## Traceback\n\n```\nTraceback (most recent call last):\n File \"/home/user/tmp/minimal.py\", line 7, in <module>\n writerPage.merge_page(page)\n ~~~~~~~~~~~~~~~~~~~~~^^^^^^\n File \"/home/user/tmp/pypdf/_page.py\", line 1068, in merge_page\n self._merge_page(page2, over=over, expand=expand)\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/user/tmp/pypdf/_page.py\", line 1147, in _merge_page\n page2content.operations.insert(\n ^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/user/tmp/pypdf/generic/_data_structures.py\", line 1410, in operations\n self._parse_content_stream(BytesIO(self._data))\n ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^\n File \"/home/user/tmp/pypdf/generic/_data_structures.py\", line 1303, in _parse_content_stream\n operands.append(read_object(stream, None, self.forced_encoding))\n ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/user/tmp/pypdf/generic/_data_structures.py\", line 1452, in read_object\n return ArrayObject.read_from_stream(stream, pdf, forced_encoding)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/user/tmp/pypdf/generic/_data_structures.py\", line 261, in read_from_stream\n arr.append(read_object(stream, pdf, forced_encoding))\n ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/user/tmp/pypdf/generic/_data_structures.py\", line 1450, in read_object\n return read_hex_string_from_stream(stream, forced_encoding)\n File \"/home/user/tmp/pypdf/generic/_utils.py\", line 35, in read_hex_string_from_stream\n return create_string_object(bytes(arr), forced_encoding)\n File \"/home/user/tmp/pypdf/generic/_utils.py\", line 168, in create_string_object\n retval = TextStringObject(string.decode(\"utf-16be\"))\n File \"/home/user/tmp/pypdf/generic/_base.py\", line 673, in __new__\n assert org is not None, \"mypy\"\n ^^^^^^^^^^^^^^^\nAssertionError: mypy\n```\n\n## Typst code\n\nThe PDF I share above was created with the [Typst](https://typst.app) typesetting system, version 0.14.2, from the following code:\n\n```typ\n#set document(date: none)\n#set text(font: (\"Noto Sans CJK SC\"))\n\n\u63a5\u53f8\u667a\u5bf9UQfiffI:'!'bSMEftN;Tpghlxo?Ldcrm,quva sine.\u53d6\u5668\u6548\u8bba\u8bc1\u53cd\u7ed3\u4ef6\u4ee5\u91cf\u8bf4\u660e\u8ba8\u7528\u516c\u9ad8\u8ba4\u5e26\u7684\u8d77\u6700\u51c6\u90fd\u4f60\u5355\u548c\u613f\u8ba1\u5170\u5b83\u7531\uff0c\u4eb2\u53f0\u672c\u53ca\u96c6\u6e38\u672f\u884c\u5177\u9a6c\u6269\u5145\u8981\u8bfb\u597d\u60a8\u624d\u8702\u65e0\u51fb\u6b65\u65b9\u5e76\u6025\u6807\u662f\u591a\u54ea\u8be5\u5ea6\u53bb\u670b\u88ab\u5c0f\u6574\u4efb\u8bd1\u5f62\u59cb\u6210\u4e2d\u4e4b\u5e94\u79cd\u4e48\u8bc6\u793e\u7ec7\u8c03\u653e\u5f03\u5df1\u57fa\u7406\u6b21\u5012\u4eba\u9884\u51b5\u6709\u7075\u4ece\u7ecf\u4e2a\u5eb7\u80fd\u5efa\u3001\u624b\u73b0\u540c\u4f5c\u6167\u961f\n\n\u5212\u65f6\u4f46AA\u8f6e\u66f4\u529b\u6218\u4ed8\u8005\u5173\u4e92AA\u6587\u578b\u5f3a\u5bfc\u5de5\u5bc6\u4eec\u5404\u5173\u5df2\uff08\u610f\u7edc\u5171\u5173\u91c7\u5229\u4e00\u4f53\u5f20\u5173\u5f00\u5173\u901a\u786e\u4fe1\u5173\u6d4b\u5173\u63d0\u5173\u5173\u6a21\u5230\u7acb\u5173\u8bed\u5173\u5173\u5907\u8fd9\u517b\u5165\u5173\u538b\u5173\u7b2c\u5473\u7a0b\u5173\uff09\u56e2\u7fa4\u5982\u53e6\u8a00\u52a8\u60c5\uff1b\u6765\u89c4\u57f9\u5173\u679c\u6ca1\u67aa\u5173\u8fc7\u6cbb\u81ea\u7f51\u3002\u5c31\u53c2\u4e3b\u5730\u7cfb\u5fb7\u7740\u89e3\u6784\u505a\u65e6\u653f\u91cd\u76ee\u611f\u51fa\u5207\u5927\u534f\u53d7\u4ee4\u5173\u60f3\u7ffb\u53cb\u5173\u5185\u8bf8\u6bd4\u4e3a\u628a\u5728\u76f8\u5148\u53ef\u770b\u673a\u9886\n```\n\nI don't think this bug comes from Typst creating a malformed PDF, but if you find that it does I'll be happy to create an issue on their side.","issue_title":"Wrong BOM detection for strings starting with \\x00\\xfe\\x00\\xff","protected_globs":["tests/generic/test_base.py"],"regression_command":["python","-m","pytest","-q","-p","pytest_socket","-p","pytest_timeout","--timeout=60","-o","cache_dir=/tmp/pytest-cache","-m","not enable_socket and not samples","tests"],"repository":"py-pdf/pypdf","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.8.14-python3.11-bookworm-slim","bootstrap_command":["uv","pip","install","--python","/opt/venv/bin/python","--no-deps","--only-binary",":all:","flit_core==3.11.0","pygments==2.19.2"],"environment":["PYTHONPATH=/workspace/repo","PYTHONDONTWRITEBYTECODE=1","PYTHONUNBUFFERED=1","PYTHONHASHSEED=0","PYTEST_DISABLE_PLUGIN_AUTOLOAD=1","PIP_NO_INDEX=1","PIP_DISABLE_PIP_VERSION_CHECK=1","XDG_CACHE_HOME=/tmp/xdg-cache","TZ=UTC","LANG=C.UTF-8","LC_ALL=C.UTF-8"],"schema_version":1,"sync_command":["/bin/sh","-c","python -m venv /opt/venv && uv pip install --python /opt/venv/bin/python --no-deps --only-binary :all: -r requirements/ci-3.11.txt"]},"setup_command":["uv","pip","install","--offline","--python","/opt/venv/bin/python","--no-deps","--no-build-isolation","--editable","."],"source_archive":"sources/pypdf-3587.tar","source_sha256":"09eddc9e1688d5cbded2b6e1a8a8a1ff394746af53bd1aa54578b0701d6164c5","timeout_s":1200,"validated":true}
{"fail_to_pass_command":["python","-m","pytest","-q","--hypothesis-seed=0","tests/test_annotations.py::TestAnnotations::test_missing_classvar_import"],"hidden_test_patch":"hidden-tests/attrs-1575.patch","hidden_test_sha256":"544fb459fb354931c31c5963726d4ab8ed153d8c61fcfc518363300ec1ee327a","id":"attrs-1575","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"The following code\n\n```python\nfrom typing import TYPE_CHECKING\n\nimport attrs\n\nif TYPE_CHECKING:\n from typing import ClassVar\n\n@attrs.define\nclass T:\n t: ClassVar[str]\n\nT()\n```\n\nresults in:\n```python\nTraceback (most recent call last):\n File \"/tmp/test.py\", line 12, in <module>\n T()\n ~^^\nTypeError: T.__init__() missing 1 required positional argument: 't'\n```\n\nSince the `if TYPE_CHECKING` block doesn't run, `ClassVar` isn't defined and attrs can't evaluate the ForwardRef or doesn't recognize `ClassVar`:\n\n```python\n>>> attrs.fields_dict(T)[\"t\"]\nAttribute(name='t', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=ForwardRef('ClassVar[str]', is_class=True, owner=<class '__main__.T'>), converter=None, kw_only=False, inherited=False, on_setattr=None, alias='t')\n```\n\nBefore Python 3.14, `T`'s definition would only run if you used a string annotation or `from __future__ import annotations` (which if used with 3.14, the above code runs fine), but with the new annotations behavior the class definition runs fine and this error appears. This is actually issue for dataclasses too, as I get the same error with them.\n\nI'm not sure if this is fixable, but decided to report it, because it catches you by surprise","issue_title":"attrs doesn't recognize ClassVar if not imported in Python 3.14","protected_globs":["tests/test_annotations.py"],"regression_command":["python","-m","pytest","-q","--hypothesis-seed=0","tests"],"repository":"python-attrs/attrs","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.12.1-python3.14-trixie-slim","bootstrap_command":["uv","pip","install","--python","/opt/venv/bin/python","--only-binary",":all:","hatchling==1.27.0","hatch-vcs==0.5.0","hatch-fancy-pypi-readme==25.1.0","setuptools-scm==9.2.0","editables==0.5"],"environment":["HOME=/home/node","XDG_CACHE_HOME=/tmp/xdg-cache","UV_CACHE_DIR=/tmp/uv-cache","PYTHONPATH=/workspace/repo/src","PYTHONDONTWRITEBYTECODE=1","PYTHONHASHSEED=0","PIP_NO_INDEX=1","PIP_DISABLE_PIP_VERSION_CHECK=1","UV_OFFLINE=1","SETUPTOOLS_SCM_PRETEND_VERSION_FOR_ATTRS=0.0.0","LANG=C.UTF-8","LC_ALL=C.UTF-8","TZ=UTC","TERM=dumb","NO_COLOR=1","PYTHON_COLORS=0"],"schema_version":1,"sync_command":["uv","sync","--frozen","--no-default-groups","--group","tests","--no-install-project"]},"setup_command":["/bin/sh","-ec","mkdir -p \"$HOME\" \"$XDG_CACHE_HOME\" \"$UV_CACHE_DIR\" && uv pip install --offline --python /opt/venv/bin/python --no-deps --no-build-isolation --editable ."],"source_archive":"sources/attrs-1575.tar","source_sha256":"64c20a8d14830dcd0a069d65b6bb86ca61251a981da11be7209917ce54bd1830","timeout_s":900,"validated":true}
{"fail_to_pass_command":["python","-m","pytest","-q","tests/test_checkers.py::TestProtocol::test_class_against_protocol_ignores_instance_attributes"],"hidden_test_patch":"hidden-tests/typeguard-499.patch","hidden_test_sha256":"89bba7c95533fbb25ba5d68804f6734e9b48ec2bae3e7352aca6e43fd0eba1d2","id":"typeguard-499","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"### Things to check first\n\n- [X] I have searched the existing issues and didn't find my bug already reported there\n\n- [X] I have checked that my bug is still present in the latest release\n\n\n### Typeguard version\n\n4.4.1\n\n### Python version\n\n3.13.0\n\n### What happened?\n\nI think https://github.com/agronholm/typeguard/issues/498 is not fully fixed yet.\n\n### How can we reproduce the bug?\n\n`bug.py`\r\n```python\r\nfrom typeguard import install_import_hook\r\n\r\ninstall_import_hook()\r\n\r\nfrom code import Class, function_of_instance, function_of_type\r\n\r\n# This works:\r\nfunction_of_instance(Class())\r\n\r\n# This does not:\r\nfunction_of_type(Class)\r\n```\r\n\r\n`code.py`\r\n```python\r\nfrom typing import Protocol\r\n\r\nclass Proto(Protocol):\r\n foo: str\r\n\r\nclass Class(Proto):\r\n def __init__(self):\r\n self.foo = \"bar\"\r\n\r\ndef function_of_instance(instance: Proto): ...\r\n\r\ndef function_of_type(type_: type[Proto]): ...\r\n```","issue_title":"Class is not compatible with protocol because it has no attribute named ...","protected_globs":["tests/test_checkers.py"],"regression_command":["python","-m","pytest","-q","tests"],"repository":"agronholm/typeguard","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.12.1-python3.14-trixie-slim","bootstrap_command":["uv","pip","install","--python","/opt/venv/bin/python","--only-binary",":all:","setuptools==80.9.0","setuptools-scm==9.2.0","wheel==0.45.1"],"environment":["HOME=/home/node","XDG_CACHE_HOME=/tmp/xdg-cache","UV_CACHE_DIR=/tmp/uv-cache","PYTHONPATH=/workspace/repo/src","PYTHONDONTWRITEBYTECODE=1","PYTHONHASHSEED=0","PIP_NO_INDEX=1","PIP_DISABLE_PIP_VERSION_CHECK=1","UV_OFFLINE=1","SETUPTOOLS_SCM_PRETEND_VERSION_FOR_TYPEGUARD=0.0.0","LANG=C.UTF-8","LC_ALL=C.UTF-8","TZ=UTC","TERM=dumb","NO_COLOR=1","PYTHON_COLORS=0"],"schema_version":1,"sync_command":["/bin/sh","-ec","SETUPTOOLS_SCM_PRETEND_VERSION_FOR_TYPEGUARD=0.0.0 uv sync --no-default-groups --group test --no-install-project"]},"setup_command":["/bin/sh","-ec","mkdir -p \"$HOME\" \"$XDG_CACHE_HOME\" \"$UV_CACHE_DIR\" && uv pip install --offline --python /opt/venv/bin/python --no-deps --no-build-isolation --editable ."],"source_archive":"sources/typeguard-499.tar","source_sha256":"15eec682771f0af79ba05bae6a97ad7a09c27f45b4e5623261b5e430377361a7","timeout_s":900,"validated":true}
{"fail_to_pass_command":["python","-m","pytest","-q","-p","no:randomly","tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async","tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async_native_logger"],"hidden_test_patch":"hidden-tests/structlog-710.patch","hidden_test_sha256":"4888a5dc77f47dde9a751411c5c27880ce5948c5e9c8b3648b618286779c9daa","id":"structlog-710","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"This is based on @PrieJos's helpful analysis in https://github.com/hynek/structlog/issues/693#issuecomment-2629117069\n\nIn async log methods, callsite collection happens in the async logger thread which makes its thread-related information worthless:\n\n```python\n# /// script\n# dependencies = [\n# \"structlog\",\n# ]\n# ///\n\nimport asyncio\nimport logging\nimport sys\n\nimport structlog\n\nsl = structlog.get_logger()\nlogger = logging.getLogger()\n\nlogging.basicConfig(\n stream=sys.stdout,\n format=(\n \"%(process)d %(processName)s %(module)s\"\n \" %(funcName)s:%(lineno)d %(threadName)s %(taskName)s\"\n \" %(message)s\"\n ),\n datefmt=r\"%Y-%m-%dT%H:%M:%S\",\n level=logging.INFO,\n encoding=\"utf-8\",\n)\n\nstructlog.configure(\n processors=[\n structlog.processors.CallsiteParameterAdder(\n [\n structlog.processors.CallsiteParameter.PROCESS,\n structlog.processors.CallsiteParameter.PROCESS_NAME,\n structlog.processors.CallsiteParameter.MODULE,\n structlog.processors.CallsiteParameter.FILENAME,\n structlog.processors.CallsiteParameter.FUNC_NAME,\n structlog.processors.CallsiteParameter.LINENO,\n structlog.processors.CallsiteParameter.THREAD_NAME,\n ]\n ),\n structlog.processors.LogfmtRenderer(),\n ],\n)\n\n\nasync def afunc():\n await sl.ainfo(\"async\")\n logger.info(\"stdlib async\")\n\ndef func():\n sl.info(\"sync\")\n logger.info(\"stdlib sync\")\n\n\nasyncio.run(afunc())\nfunc()\n```\n\nNotably, thread name is wrong and so would be a task name as shown in #698:\n\n```\nevent=async process=55347 process_name=n/a module=t filename=t.py func_name=afunc lineno=47 thread_name=asyncio_0\n55347 MainProcess t afunc:48 MainThread Task-1 stdlib async\nevent=sync process=55347 process_name=n/a module=t filename=t.py func_name=func lineno=51 thread_name=MainThread\n55347 MainProcess t func:52 MainThread None stdlib sync\n```\n\nNot sure how to deal with this most elegantly \u2013 I feel like we'll have to pass thread/task objects into the event_dict or something?\n\nI _think_ the `process_name` is in fact correct, since `logging` just [sets it unconditionally](https://github.com/python/cpython/blob/72e5b25efb580fb1f0fdfade516be90d90822164/Lib/logging/__init__.py#L359-L371) and we get `n/a` in sync code too. Happy to be corrected, though.","issue_title":"Thread name CallsiteParameterAdder parameter doesn't work in async methods","protected_globs":["tests/processors/test_processors.py"],"regression_command":["python","-m","pytest","-q","-p","no:randomly","tests"],"repository":"hynek/structlog","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.12.1-python3.14-trixie-slim","bootstrap_command":["uv","pip","install","--python","/opt/venv/bin/python","--only-binary",":all:","hatchling==1.27.0","hatch-vcs==0.5.0","hatch-fancy-pypi-readme==25.1.0","setuptools-scm==9.2.0","editables==0.5"],"environment":["HOME=/home/node","XDG_CACHE_HOME=/tmp/xdg-cache","UV_CACHE_DIR=/tmp/uv-cache","PYTHONPATH=/workspace/repo/src","PYTHONDONTWRITEBYTECODE=1","PYTHONHASHSEED=0","PIP_NO_INDEX=1","PIP_DISABLE_PIP_VERSION_CHECK=1","UV_OFFLINE=1","SETUPTOOLS_SCM_PRETEND_VERSION_FOR_STRUCTLOG=0.0.0","LANG=C.UTF-8","LC_ALL=C.UTF-8","TZ=UTC","TERM=dumb","NO_COLOR=1","PYTHON_COLORS=0"],"schema_version":1,"sync_command":["/bin/sh","-ec","SETUPTOOLS_SCM_PRETEND_VERSION_FOR_STRUCTLOG=0.0.0 uv sync --no-default-groups --group tests --no-install-project"]},"setup_command":["/bin/sh","-ec","mkdir -p \"$HOME\" \"$XDG_CACHE_HOME\" \"$UV_CACHE_DIR\" && uv pip install --offline --python /opt/venv/bin/python --no-deps --no-build-isolation --editable ."],"source_archive":"sources/structlog-710.tar","source_sha256":"29cbfb33035b772d26d8ebae36cae0e0e30e606ee228056f2c910b9c55e396a1","timeout_s":900,"validated":true}
{"fail_to_pass_command":["python","-m","pytest","-q","-W","error","--cache-clear","--randomly-seed=0","-o","cache_dir=/tmp/pytest-cache","tests/snippets/jsx/test_apostrophe_text.txt"],"hidden_test_patch":"hidden-tests/pygments-2816.patch","hidden_test_sha256":"85529df235553cfc030b00769f8a10c2683d12d3eaea0713a48f4716b5be2cd9","id":"pygments-2816","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"When I attempt to highlight the following code snippet using `jsx` as the lexer in Sphinx and MyST, Sphinx returns a warning:\r\n\r\n`WARNING: Lexing literal_block (JSX code omitted) as \"jsx\" resulted in an error at token: \"'\". Retrying in relaxed mode.`\r\n\r\n````\r\n```jsx\r\nimport React from 'react';\r\n\r\nconst View = props => {\r\n return <div>I'm the Block view component!</div>;\r\n};\r\n\r\nexport default View;\r\n```\r\n````\r\n\r\n[Try it on the Pygments demo](https://pygments.org/demo/?lexer=jsx&style=bw&formatter=html&code=import+React+from+%27react%27%3B%0A%0Aconst+View+%3D+props+%3D%3E+%7B%0A++return+%3Cdiv%3EI%27m+the+Block+view+component%21%3C%2Fdiv%3E%3B%0A%7D%3B%0A%0Aexport+default+View%3B%0A).\r\n\r\nFWIW, if I try `js` as the lexer, it also does not lex.\r\n\r\nSee:\r\n- https://github.com/plone/volto/issues/3038\r\n- https://github.com/plone/training/issues/347\r\n- https://github.com/fcurella/jsx-lexer/issues/15","issue_title":"WARNING: Lexing literal_block ... as \"jsx\" resulted in an error at token: \"'\". Retrying in relaxed mode.","protected_globs":["tests/snippets/jsx/test_apostrophe_text.txt"],"regression_command":["python","-m","pytest","-q","-W","error","--cache-clear","--randomly-seed=0","-o","cache_dir=/tmp/pytest-cache","tests"],"repository":"pygments/pygments","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm","bootstrap_command":["/bin/sh","-ec","uv pip install --python /opt/venv/bin/python --only-binary=:all: 'hatchling==1.27.0' 'editables==0.5' && uv pip install --python /opt/venv/bin/python --no-deps --only-binary=:all: 'pytest==8.4.2' 'pytest-randomly==4.0.1' 'iniconfig==2.1.0' && uv pip install --python /opt/venv/bin/python --no-deps 'wcag-contrast-ratio==0.9' && uv pip freeze --python /opt/venv/bin/python > /opt/patcheval-requirements.txt"],"environment":["HOME=/home/node","XDG_CACHE_HOME=/tmp/xdg-cache","UV_CACHE_DIR=/tmp/uv-cache","UV_OFFLINE=1","PIP_NO_INDEX=1","PIP_DISABLE_PIP_VERSION_CHECK=1","PYTHONPATH=/workspace/repo","PYTHONDONTWRITEBYTECODE=1","PYTHONUNBUFFERED=1","PYTHONHASHSEED=0","PYTHON_COLORS=0","NO_COLOR=1","TERM=dumb","COLUMNS=80","LANG=C.UTF-8","LC_ALL=C.UTF-8","TZ=UTC"],"schema_version":1,"sync_command":["uv","venv","--python","/usr/local/bin/python","/opt/venv"]},"setup_command":["/bin/sh","-ec","mkdir -p \"$HOME\" \"$XDG_CACHE_HOME\" \"$UV_CACHE_DIR\" && uv pip install --offline --python /opt/venv/bin/python --no-deps --no-build-isolation --editable . && uv pip check --python /opt/venv/bin/python"],"source_archive":"sources/pygments-2816.tar","source_sha256":"ccba4fdd41fd6a2a9796292a27e62babe206910a84f1290391e824371b6e58c0","timeout_s":900,"validated":true}
{"fail_to_pass_command":["python","-m","pytest","-q","-W","error","--cache-clear","--randomly-seed=0","-o","cache_dir=/tmp/pytest-cache","tests/snippets/jsonnet/test_array_slice.txt"],"hidden_test_patch":"hidden-tests/pygments-2828.patch","hidden_test_sha256":"ac9e1f7355dff0ff69e30c1ea43bdb3b082a0f7b8fb0bf00b0b34ba3ac95f02d","id":"pygments-2828","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"The `::` in this snippet is highlighted as an error but it shouldn't be, it's array slice notation, just like in Python\r\n\r\n```jsonnet\r\n{\r\n local numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],\r\n even_numbers: numbers[1::2],\r\n}\r\n```\r\n\r\nhttps://pygments.org/demo/?lexer=jsonnet&style=bw&formatter=html&code=local+obj2+%3D+%7B%0A++local+numbers+%3D+%5B1%2C+2%2C+3%2C+4%2C+5%2C+6%2C+7%2C+8%2C+9%2C+10%5D%2C%0A++even_numbers%3A+numbers%5B1%3A%3A2%5D%2C%0A%7D%3B%0A\r\n\r\nYou can try it on https://jsonnet.org/learning/tutorial.html","issue_title":"Jsonnet: array slice syntax","protected_globs":["tests/snippets/jsonnet/test_array_slice.txt"],"regression_command":["python","-m","pytest","-q","-W","error","--cache-clear","--randomly-seed=0","-o","cache_dir=/tmp/pytest-cache","tests"],"repository":"pygments/pygments","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm","bootstrap_command":["/bin/sh","-ec","uv pip install --python /opt/venv/bin/python --only-binary=:all: 'hatchling==1.27.0' 'editables==0.5' && uv pip install --python /opt/venv/bin/python --no-deps --only-binary=:all: 'pytest==8.4.2' 'pytest-randomly==4.0.1' 'iniconfig==2.1.0' && uv pip install --python /opt/venv/bin/python --no-deps 'wcag-contrast-ratio==0.9' && uv pip freeze --python /opt/venv/bin/python > /opt/patcheval-requirements.txt"],"environment":["HOME=/home/node","XDG_CACHE_HOME=/tmp/xdg-cache","UV_CACHE_DIR=/tmp/uv-cache","UV_OFFLINE=1","PIP_NO_INDEX=1","PIP_DISABLE_PIP_VERSION_CHECK=1","PYTHONPATH=/workspace/repo","PYTHONDONTWRITEBYTECODE=1","PYTHONUNBUFFERED=1","PYTHONHASHSEED=0","PYTHON_COLORS=0","NO_COLOR=1","TERM=dumb","COLUMNS=80","LANG=C.UTF-8","LC_ALL=C.UTF-8","TZ=UTC"],"schema_version":1,"sync_command":["uv","venv","--python","/usr/local/bin/python","/opt/venv"]},"setup_command":["/bin/sh","-ec","mkdir -p \"$HOME\" \"$XDG_CACHE_HOME\" \"$UV_CACHE_DIR\" && uv pip install --offline --python /opt/venv/bin/python --no-deps --no-build-isolation --editable . && uv pip check --python /opt/venv/bin/python"],"source_archive":"sources/pygments-2828.tar","source_sha256":"c9f794937fa960ed50c1c943691c030b6943a28f075e06a3e8ce70adf0ab6a20","timeout_s":900,"validated":true}
{"fail_to_pass_command":["python","-m","pytest","-q","-o","cache_dir=/tmp/pytest-cache","tests/test_toml_document.py::test_add_key_after_dotted_inline_table_without_ending_newline"],"hidden_test_patch":"hidden-tests/tomlkit-440.patch","hidden_test_sha256":"4f54de74b1893428d216906daa3c5d5e667b21a74d913da32cb374d6c06a9f96","id":"tomlkit-440","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"Hello,\nSorry to be opening another issue so early after the last one, but I found something else:\n\n```python\nv = tomlkit.loads(\"\"\"[x]\\na.b = {}\"\"\")\nv[\"x\"][\"c\"] = 3\nprint(tomlkit.dumps(v))\n```\n\noutput:\n```toml\n[x]\na.b = {}c = 3\n```\n\nAs you can see, there should be a new line before `c = 3`\n\nNote that this doesn't happens with either:\n- `\"\"\"[x]\\na.b = {}\\n\"\"\"`\n- `\"\"\"[x]\\na = {}\"\"\"`","issue_title":"Missing newline after inline table","protected_globs":["tests/test_toml_document.py"],"regression_command":["python","-m","pytest","-q","-o","cache_dir=/tmp/pytest-cache","tests","--ignore=tests/test_toml_tests.py"],"repository":"python-poetry/tomlkit","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm-slim","environment":["HOME=/home/node","XDG_CACHE_HOME=/tmp/xdg-cache","UV_CACHE_DIR=/tmp/uv-cache","PYTHONPATH=/workspace/repo","PYTHONDONTWRITEBYTECODE=1","PYTHONUNBUFFERED=1","PYTHONHASHSEED=0","PYTEST_DISABLE_PLUGIN_AUTOLOAD=1","PIP_NO_INDEX=1","PIP_DISABLE_PIP_VERSION_CHECK=1","UV_OFFLINE=1","TZ=UTC","LANG=C.UTF-8","LC_ALL=C.UTF-8","TERM=dumb","NO_COLOR=1","PYTHON_COLORS=0"],"schema_version":1,"sync_command":["/bin/sh","-ec","python -m venv /opt/venv && uv pip install --python /opt/venv/bin/python --no-deps --only-binary=:all: pytest==7.4.4 iniconfig==2.0.0 packaging==24.0 pluggy==1.2.0"]},"source_archive":"sources/tomlkit-440.tar","source_sha256":"a0b40aef624c1113496e08365bc15e70796c2280b3a71df568ec74123d72fab7","timeout_s":300,"validated":true}
{"fail_to_pass_command":["python","-m","pytest","-q","-o","cache_dir=/tmp/pytest-cache","tests/test_toml_document.py::test_replace_dotted_key_with_aot_keeps_following_sibling"],"hidden_test_patch":"hidden-tests/tomlkit-542.patch","hidden_test_sha256":"483263ef19d363a1236c066b76997f78f1357daa721c28b0da098c1c79d0a054","id":"tomlkit-542","ignored_globs":[".coverage",".coverage.*",".hypothesis/**",".mypy_cache/**",".pytest_cache/**",".ruff_cache/**",".venv/**","**/.hypothesis/**","**/.mypy_cache/**","**/.pytest_cache/**","**/.ruff_cache/**","**/__pycache__/**","**/*.egg-info/**","**/*.py[cod]","__pycache__/**","*.egg-info/**","*.py[cod]","htmlcov/**"],"issue_body":"```python\n#!/usr/bin/env python3\n\nimport tomlkit\n\n\ndoc = tomlkit.parse(\"a.b = 1\\nc.d = 2\\n\")\naot = tomlkit.aot()\nt = tomlkit.table()\nt[\"x\"] = 9\naot.append(t)\ndoc[\"a\"] = aot\nprint(tomlkit.dumps(doc))\n```\nresult\n```\n[[a]]\nx = 9\nc.d = 2\n```\nin which `c.d` has wrongly been captured by the array of tables.\n\nSimilar in flavour to other recent bug reports and fixes, I expect the fix will be nearby too.","issue_title":"AoT captures too many keys","protected_globs":["tests/test_toml_document.py"],"regression_command":["python","-m","pytest","-q","-o","cache_dir=/tmp/pytest-cache","tests","--ignore=tests/test_toml_tests.py"],"repository":"python-poetry/tomlkit","runtime_recipe":{"base_image":"ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm-slim","environment":["HOME=/home/node","XDG_CACHE_HOME=/tmp/xdg-cache","UV_CACHE_DIR=/tmp/uv-cache","PYTHONPATH=/workspace/repo","PYTHONDONTWRITEBYTECODE=1","PYTHONUNBUFFERED=1","PYTHONHASHSEED=0","PYTEST_DISABLE_PLUGIN_AUTOLOAD=1","PIP_NO_INDEX=1","PIP_DISABLE_PIP_VERSION_CHECK=1","UV_OFFLINE=1","TZ=UTC","LANG=C.UTF-8","LC_ALL=C.UTF-8","TERM=dumb","NO_COLOR=1","PYTHON_COLORS=0"],"schema_version":1,"sync_command":["/bin/sh","-ec","python -m venv /opt/venv && uv pip install --python /opt/venv/bin/python --no-deps --only-binary=:all: pytest==7.4.4 iniconfig==2.0.0 packaging==24.0 pluggy==1.2.0"]},"source_archive":"sources/tomlkit-542.tar","source_sha256":"803d7046ba0b462206c5059327664b75228fd7d00e78f598a62e76e09260b329","timeout_s":300,"validated":true}