{"repo": "OpenRefine/OpenRefine", "instance_id": "OpenRefine__OpenRefine-6229", "base_commit": "fe25b5d7db3347f1a29a8cc483ad9b2cf1eec5f9", "patch": "diff --git a/extensions/gdata/pom.xml b/extensions/gdata/pom.xml\nindex 59375016a..2ed919c1b 100644\n--- a/extensions/gdata/pom.xml\n+++ b/extensions/gdata/pom.xml\n@@ -84,7 +84,7 @@\n \n com.google.apis\n google-api-services-drive\n- v3-rev20231120-2.0.0\n+ v3-rev20231128-2.0.0\n \n \n com.google.apis\ndiff --git a/extensions/wikibase/src/org/openrefine/wikibase/qa/scrutinizers/FileNameScrutinizer.java b/extensions/wikibase/src/org/openrefine/wikibase/qa/scrutinizers/FileNameScrutinizer.java\nindex 353d3a3f5..a54c8eaf8 100644\n--- a/extensions/wikibase/src/org/openrefine/wikibase/qa/scrutinizers/FileNameScrutinizer.java\n+++ b/extensions/wikibase/src/org/openrefine/wikibase/qa/scrutinizers/FileNameScrutinizer.java\n@@ -22,7 +22,7 @@ public class FileNameScrutinizer extends EditScrutinizer {\n // see https://commons.wikimedia.org/wiki/Commons:File_naming\n public static final int maxFileNameBytes = 240;\n public static final Pattern forbiddenFileNameChars = Pattern.compile(\n- \".*([^ %!\\\"$&'()*,\\\\-./\\\\d:;=?@\\\\p{L}\\\\p{Mc}\\\\\\\\^_`~\\\\x80-\\\\xFF+]|%[0-9A-Fa-f]{2}|&[A-Za-z0-9\\\\x80-\\\\xff]+;|[0-9]+;|[0-9A-Fa-f]+;).*\");\n+ \".*([^ %!\\\"$&'()*,\\\\-./\\\\d:;=?@\\\\p{L}\\\\p{M}\\\\p{N}\\\\\\\\^_`~\\\\x80-\\\\xFF+]|%[0-9A-Fa-f]{2}|&[A-Za-z0-9\\\\x80-\\\\xff]+;|[0-9]+;|[0-9A-Fa-f]+;).*\");\n \n public static final String duplicateFileNamesInBatchType = \"duplicate-file-names-in-batch\";\n public static final String fileNamesAlreadyExistOnWikiType = \"file-names-already-exist-on-wiki\";\n@@ -98,7 +98,7 @@ public class FileNameScrutinizer extends EditScrutinizer {\n // Invalid characters\n Matcher matcher = forbiddenFileNameChars.matcher(fileName);\n if (matcher.matches()) {\n- QAWarning issue = new QAWarning(invalidCharactersInFileNameType, null, QAWarning.Severity.CRITICAL,\n+ QAWarning issue = new QAWarning(invalidCharactersInFileNameType, null, QAWarning.Severity.IMPORTANT,\n 1);\n issue.setProperty(\"example_filename\", fileName);\n issue.setProperty(\"invalid_character\", matcher.group(1));\ndiff --git a/refine b/refine\nindex 58cdda042..08c9208d4 100755\n--- a/refine\n+++ b/refine\n@@ -42,17 +42,18 @@ Options\n --jmx Enable JMX monitoring.\n \n Actions\n+ run Run OpenRefine [default].\n build Build OpenRefine.\n clean Clean compiled classes.\n- dist Make all distributions.\n+ test Run all tests.\n extensions_test Run the extensions tests.\n- linux_dist Make Linux binary distribution.\n- mac_dist Make MacOSX binary distribution.\n- run Run OpenRefine [default].\n server_test Run the server tests.\n- test Run all tests.\n- e2e_tests Run the e2e tests.\n+ e2e_tests Run the e2e tests.\n+ lint Reformat the source code according to OpenRefine's conventions.\n+ mac_dist Make MacOS binary distribution.\n windows_dist Make Windows binary distribution.\n+ linux_dist Make Linux binary distribution.\n+ dist Make all distributions.\n EOF\n exit 1\n }\n@@ -244,6 +245,13 @@ do_mvn() {\n \n # ----------------------------------------------------------------------------------------------\n \n+lint() {\n+ mvn_prepare\n+ \"$MVN\" formatter:format impsort:sort\n+}\n+\n+# ----------------------------------------------------------------------------------------------\n+\n dist() {\n get_version $1\n build_prepare\n@@ -720,12 +728,13 @@ case \"$ACTION\" in\n clean) do_mvn clean;;\n test) test $1;;\n tests) test $1;;\n- e2e_tests) e2e_tests;; \n+ e2e_tests) e2e_tests;;\n server_test) server_test $1;; \n server_tests) server_test $1;; \n extensions_test) extensions_test $1;;\n extensions_tests) extensions_test $1;;\n run) run;;\n+ lint) lint;;\n mac_dist) mac_dist $1;;\n windows_dist) windows_dist $1;;\n linux_dist) linux_dist $1;;\ndiff --git a/refine.bat b/refine.bat\nindex ef9361f6f..3e6768dfd 100644\n--- a/refine.bat\n+++ b/refine.bat\n@@ -48,6 +48,7 @@ echo extensions_test Run the extensions tests.\n echo run Run OpenRefine.\n echo server_test Run the server tests.\n echo test Run all the tests.\n+echo lint Reformat the source code according to OpenRefine's conventions.\n goto :eof\n \n \n@@ -190,6 +191,7 @@ if \"\"%ACTION%\"\" == \"\"build\"\" goto doMvn\n if \"\"%ACTION%\"\" == \"\"server_test\"\" goto doMvn\n if \"\"%ACTION%\"\" == \"\"extensions_test\"\" goto doMvn\n if \"\"%ACTION%\"\" == \"\"test\"\" goto doMvn\n+if \"\"%ACTION%\"\" == \"\"lint\"\" goto doMvn\n if \"\"%ACTION%\"\" == \"\"clean\"\" goto doMvn\n if \"\"%ACTION%\"\" == \"\"run\"\" goto doRun\n if \"\"%ACTION%\"\" == \"\"\"\" goto doRun\n@@ -270,6 +272,12 @@ set MVN_ACTION=compile test-compile dependency:build-classpath\n if \"\"%ACTION%\"\" == \"\"test\"\" set MVN_ACTION=test dependency:build-classpath\n if \"\"%ACTION%\"\" == \"\"server_test\"\" set MVN_ACTION=test -f main\n if \"\"%ACTION%\"\" == \"\"extensions_test\"\" set MVN_ACTION=test -f extensions\n+if \"\"%ACTION%\"\" == \"\"lint\"\" (\n+ set MVN_ACTION=formatter:format impsort:sort\n+ rem Skip the call to process-resources as it's not needed for this action\n+ goto :mvnCall\n+)\n call \"%MVN%\" process-resources\n+:mvnCall\n call \"%MVN%\" %MVN_ACTION%\n goto :eof\n", "test_patch": "diff --git a/extensions/wikibase/tests/src/org/openrefine/wikibase/qa/scrutinizers/FileNameScrutinizerTest.java b/extensions/wikibase/tests/src/org/openrefine/wikibase/qa/scrutinizers/FileNameScrutinizerTest.java\nindex abb1da6c4..5ced94b25 100644\n--- a/extensions/wikibase/tests/src/org/openrefine/wikibase/qa/scrutinizers/FileNameScrutinizerTest.java\n+++ b/extensions/wikibase/tests/src/org/openrefine/wikibase/qa/scrutinizers/FileNameScrutinizerTest.java\n@@ -78,6 +78,16 @@ public class FileNameScrutinizerTest extends ScrutinizerTest {\n assertNoWarningRaised();\n }\n \n+ @Test\n+ public void testValidCharactersInFilenameNonAscii() {\n+ MediaInfoEdit edit = new MediaInfoEditBuilder(TestingData.newMidA)\n+ .addFileName(\"সমাচার দর্পণ - ৮ অক্টোবর ১৮৩৬.pdf\")\n+ .build();\n+\n+ scrutinize(edit);\n+ assertNoWarningRaised();\n+ }\n+\n @Test()\n public void testInvalidCharactersInFilenameTab() throws IOException, MediaWikiApiErrorException {\n MediaInfoEdit edit = new MediaInfoEditBuilder(TestingData.newMidA)\n", "FAIL_TO_PASS": [], "PASS_TO_PASS": [], "PR_Body": "This helps developers reformat their code according to our standards.\r\n\r\nCloses #6166.\r\n\r\nNot tested on Windows yet.\r\n", "PR_Title": "Add 'lint' option to refine(.bat) scripts", "docker_image": "xinzhou1997/swe_rpg_java:OpenRefine__OpenRefine-6229_linux", "log_parser": "def parser(log: str) -> dict[str, str]:\n import re\n import xml.etree.ElementTree as ET\n\n results: dict[str, str] = {}\n\n # Helper: merge statuses with precedence fail > skip > pass\n def merge_status(name: str, new_status: str):\n if new_status not in (\"pass\", \"fail\", \"skip\"):\n return\n old_status = results.get(name)\n if old_status is None:\n results[name] = new_status\n return\n if old_status == new_status:\n return\n # Precedence: fail > skip > pass\n priority = {\"fail\": 3, \"skip\": 2, \"pass\": 1}\n if priority[new_status] > priority[old_status]:\n results[name] = new_status\n\n # -----------------------\n # XML-based parsing pass\n # -----------------------\n\n # Non-greedy patterns for JUnit/TestNG XML blocks\n xml_pattern = re.compile(\n r\"(|)\",\n re.IGNORECASE,\n )\n\n for match in xml_pattern.finditer(log):\n xml_block = match.group(1)\n try:\n root = ET.fromstring(xml_block)\n except ET.ParseError:\n # Skip this block but continue with others\n continue\n\n tag_lower = root.tag.lower()\n\n # Handle TestNG summary reports ()\n if tag_lower.endswith(\"testng-results\"):\n # Look for all test-method elements anywhere\n for tm in root.findall(\".//test-method\"):\n # Skip configuration methods\n if tm.attrib.get(\"is-config\", \"false\").lower() == \"true\":\n continue\n name = tm.attrib.get(\"name\", \"\")\n if not name:\n continue\n # Try to get class name from surrounding element\n class_elem = tm.find(\"..\")\n class_name = \"\"\n # xml.etree doesn't support parent lookup directly, so search ancestors:\n # We instead search for the nearest ancestor manually:\n # Since parent lookup is tricky, fall back to the attribute 'class' on if present\n # or to a surrounding element found via xpath with name match, which is usually enough.\n # Re-parse with a simpler loop using suites/tests/classes for better class name resolution.\n for suite in root.findall(\".//suite\"):\n for test in suite.findall(\".//test\"):\n for clazz in test.findall(\".//class\"):\n class_name = clazz.attrib.get(\"name\", \"\")\n for tm in clazz.findall(\"test-method\"):\n if tm.attrib.get(\"is-config\", \"false\").lower() == \"true\":\n continue\n m_name = tm.attrib.get(\"name\", \"\")\n if not m_name:\n continue\n fq_name = f\"{class_name}.{m_name}\" if class_name else m_name\n status_attr = tm.attrib.get(\"status\", \"\").upper()\n # Map TestNG status to our statuses\n if status_attr == \"PASS\":\n status = \"pass\"\n elif status_attr in (\"FAIL\", \"FAILURE\"):\n status = \"fail\"\n elif status_attr == \"SKIP\":\n status = \"skip\"\n else:\n # Fallback: if there is an exception element, mark as fail; else pass\n if tm.find(\".//exception\") is not None:\n status = \"fail\"\n else:\n status = \"pass\"\n merge_status(fq_name, status)\n continue\n\n # Handle JUnit-style reports\n if tag_lower.endswith(\"testsuite\"):\n for tc in root.findall(\".//testcase\"):\n class_name = tc.attrib.get(\"classname\", \"\")\n name = tc.attrib.get(\"name\", \"\")\n if not name:\n continue\n fq_name = f\"{class_name}.{name}\" if class_name else name\n\n # Determine status via children\n status = \"pass\"\n if tc.find(\"skipped\") is not None:\n status = \"skip\"\n elif tc.find(\"failure\") is not None or tc.find(\"error\") is not None:\n status = \"fail\"\n\n merge_status(fq_name, status)\n\n # ---------------------------\n # Text-based parsing fallback\n # ---------------------------\n\n # Compile regexes for common frameworks\n\n # pytest: path::test_name STATUS\n pytest_re = re.compile(\n r\"^(?P\\S+::\\S+)\\s+\"\n r\"(?PPASSED|FAILED|SKIPPED|ERROR|XFAILED|XPASSED)\\b\"\n )\n\n # unittest / nose: ClassName.test_method ... ok/FAIL/ERROR/skipped\n unittest_re = re.compile(\n r\"^(?P[A-Za-z_]\\w*)\\.(?P[A-Za-z_]\\w*)\\s+\\.\\.\\.\\s+\"\n r\"(?Pok|FAIL|ERROR|skipped)\\b\"\n )\n\n # go test: --- STATUS: TestName\n gotest_re = re.compile(\n r\"^---\\s+(?PPASS|FAIL|SKIP):\\s+(?P\\S+)\"\n )\n\n # Jest-like symbol lines: ✓/✕/○ test name\n jest_symbol_re = re.compile(r\"^\\s*([✓✕○])\\s+(?P.+)\")\n\n # Map various raw statuses to our canonical ones\n def map_status(raw: str) -> str | None:\n r = raw.upper()\n if r in (\"PASSED\", \"OK\", \"XPASSED\", \"PASS\"):\n return \"pass\"\n if r in (\"FAILED\", \"FAIL\", \"ERROR\", \"XFAILED\"):\n return \"fail\"\n if r in (\"SKIPPED\", \"SKIP\", \"SKIPPED (EXPECTED FAILURE)\"):\n return \"skip\"\n return None\n\n for line in log.splitlines():\n line = line.rstrip(\"\\n\")\n\n # pytest\n m = pytest_re.match(line)\n if m:\n name = m.group(\"name\")\n status = map_status(m.group(\"status\"))\n if status:\n merge_status(name, status)\n continue\n\n # unittest\n m = unittest_re.match(line)\n if m:\n name = f\"{m.group('class')}.{m.group('method')}\"\n status = map_status(m.group(\"status\"))\n if status:\n merge_status(name, status)\n continue\n\n # go test\n m = gotest_re.match(line)\n if m:\n name = m.group(\"name\")\n status = map_status(m.group(\"status\"))\n if status:\n merge_status(name, status)\n continue\n\n # Jest symbols\n m = jest_symbol_re.match(line)\n if m:\n symbol = m.group(1)\n name = m.group(\"name\").strip()\n if symbol == \"✓\":\n status = \"pass\"\n elif symbol == \"✕\":\n status = \"fail\"\n elif symbol == \"○\":\n status = \"skip\"\n else:\n status = None\n if status:\n merge_status(name, status)\n continue\n\n return results\n", "test_cmds": ["export _JAVA_OPTIONS=\"-Djava.net.preferIPv6Addresses=false\"", "mvn -B test"], "rebuild_cmds": ["export DEBIAN_FRONTEND=noninteractive", "apt-get update -qq", "apt-get install -y -qq nodejs npm", "./refine build"], "issues": [{"issue_number": 6229, "issue_title": "Add 'lint' option to refine(.bat) scripts", "issue_body": "This helps developers reformat their code according to our standards.\r\n\r\nCloses #6166.\r\n\r\nNot tested on Windows yet.\r\n"}], "print_cmds": ["find . -maxdepth 6 -path '*surefire-reports/*.xml' -print0 | xargs -0 -I {} sh -c 'echo \"===== {} =====\"; cat {}'"], "working_dir": "/OpenRefine"}
{"repo": "OpenRefine/OpenRefine", "instance_id": "OpenRefine__OpenRefine-5935", "base_commit": "82f649972268620de9d7fd912a695bb09692712a", "patch": "diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml\ndeleted file mode 100644\nindex 9780ee044..000000000\n--- a/.github/workflows/codeql.yml\n+++ /dev/null\n@@ -1,66 +0,0 @@\n-# For most projects, this workflow file will not need changing; you simply need\n-# to commit it to your repository.\n-#\n-# You may wish to alter this file to override the set of languages analyzed,\n-# or to provide custom queries or build logic.\n-#\n-# ******** NOTE ********\n-# We have attempted to detect the languages in your repository. Please check\n-# the `language` matrix defined below to confirm you have the correct set of\n-# supported CodeQL languages.\n-#\n-name: \"CodeQL\"\n-\n-on:\n- push:\n- branches: [ \"master\" ]\n- pull_request:\n- # The branches below must be a subset of the branches above\n- branches: [ \"master\" ]\n- schedule:\n- - cron: '27 23 * * 6'\n-\n-jobs:\n- analyze:\n- name: Analyze\n- runs-on: ubuntu-latest\n- permissions:\n- actions: read\n- contents: read\n- security-events: write\n-\n- strategy:\n- fail-fast: false\n- matrix:\n- language: [ 'java', 'javascript' ]\n- # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]\n- # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support\n-\n- steps:\n- - name: Checkout repository\n- uses: actions/checkout@v3\n-\n- # Initializes the CodeQL tools for scanning.\n- - name: Initialize CodeQL\n- uses: github/codeql-action/init@v2\n- with:\n- languages: ${{ matrix.language }}\n- # If you wish to specify custom queries, you can do so here or in a config file.\n- # By default, queries listed here will override any specified in a config file.\n- # Prefix the list here with \"+\" to use these queries and those in the config file.\n-\n- # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs\n- # queries: security-extended,security-and-quality\n-\n- # ℹ️ Command-line programs to run using the OS shell.\n- # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun\n-\n- - name: Build\n- run: |\n- echo \"Run, Build Application using script\"\n- ./refine build\n-\n- - name: Perform CodeQL Analysis\n- uses: github/codeql-action/analyze@v2\n- with:\n- category: \"/language:${{matrix.language}}\"\ndiff --git a/.github/workflows/codeql_java.yml b/.github/workflows/codeql_java.yml\nnew file mode 100644\nindex 000000000..752453665\n--- /dev/null\n+++ b/.github/workflows/codeql_java.yml\n@@ -0,0 +1,38 @@\n+name: \"CodeQL Java\"\n+\n+on:\n+ push:\n+ branches: [ \"master\" ]\n+ paths:\n+ - '**/*.java' # Only trigger the workflow if Java files have changed\n+ pull_request:\n+ branches: [ \"master\" ]\n+ paths:\n+ - '**/*.java'\n+\n+jobs:\n+ analyze:\n+ name: Analyze Java\n+ runs-on: ubuntu-latest\n+ permissions:\n+ actions: read\n+ contents: read\n+ security-events: write\n+\n+ steps:\n+ - name: Checkout repository\n+ uses: actions/checkout@v3\n+\n+ - name: Initialize CodeQL\n+ uses: github/codeql-action/init@v2\n+ with:\n+ languages: 'java'\n+\n+ - name: Build\n+ run: |\n+ ./refine build\n+\n+ - name: Perform CodeQL Analysis\n+ uses: github/codeql-action/analyze@v2\n+ with:\n+ category: \"/language:java\"\ndiff --git a/.github/workflows/codeql_javascript.yml b/.github/workflows/codeql_javascript.yml\nnew file mode 100644\nindex 000000000..644924576\n--- /dev/null\n+++ b/.github/workflows/codeql_javascript.yml\n@@ -0,0 +1,38 @@\n+name: \"CodeQL JavaScript\"\n+\n+on:\n+ push:\n+ branches: [ \"master\" ]\n+ paths:\n+ - '**/*.js' # Only trigger the workflow if JavaScript files have changed\n+ pull_request:\n+ branches: [ \"master\" ]\n+ paths:\n+ - '**/*.js'\n+\n+jobs:\n+ analyze:\n+ name: Analyze JavaScript\n+ runs-on: ubuntu-latest\n+ permissions:\n+ actions: read\n+ contents: read\n+ security-events: write\n+\n+ steps:\n+ - name: Checkout repository\n+ uses: actions/checkout@v3\n+\n+ - name: Initialize CodeQL\n+ uses: github/codeql-action/init@v2\n+ with:\n+ languages: 'javascript'\n+\n+ - name: Build\n+ run: |\n+ ./refine build\n+\n+ - name: Perform CodeQL Analysis\n+ uses: github/codeql-action/analyze@v2\n+ with:\n+ category: \"/language:javascript\"\ndiff --git a/.github/workflows/pull_request_server.yml b/.github/workflows/pull_request_server.yml\nindex 78ce4a7ff..3d5bd96b4 100644\n--- a/.github/workflows/pull_request_server.yml\n+++ b/.github/workflows/pull_request_server.yml\n@@ -47,7 +47,7 @@ jobs:\n linux_server_tests:\n strategy:\n matrix:\n- java: [ 11, 17 ]\n+ java: [ 11, 20 ]\n \n runs-on: ubuntu-latest\n \n@@ -122,11 +122,11 @@ jobs:\n steps:\n - uses: actions/checkout@v3\n \n- - name: Set up Java 17\n+ - name: Set up Java 20\n uses: actions/setup-java@v3\n with:\n distribution: 'temurin'\n- java-version: 17\n+ java-version: 20\n cache: 'maven'\n \n - name: Check Java linting\ndiff --git a/README.md b/README.md\nindex 6b7f2a921..570405b06 100644\n--- a/README.md\n+++ b/README.md\n@@ -33,7 +33,7 @@ If you have cloned this repository to your computer, you can run OpenRefine with\n * `./refine` on Mac OS and Linux\n * `refine.bat` on Windows\n \n-This requires [JDK 11](https://adoptium.net/), [Apache Maven](https://maven.apache.org/) and [NPM](https://www.npmjs.com/).\n+This requires [JDK 11](https://adoptium.net/) or newer, [Apache Maven](https://maven.apache.org/) and [NPM](https://www.npmjs.com/) 16 or newer.\n \n ## Documentation\n \ndiff --git a/benchmark/pom.xml b/benchmark/pom.xml\nindex 1419fcb65..c9f3cd13d 100644\n--- a/benchmark/pom.xml\n+++ b/benchmark/pom.xml\n@@ -121,7 +121,7 @@\n \n \n maven-clean-plugin\n- 3.2.0\n+ 3.3.1\n \n \n maven-install-plugin\ndiff --git a/extensions/database/module/langs/translation-es.json b/extensions/database/module/langs/translation-es.json\nindex 0967ef424..fb253b914 100644\n--- a/extensions/database/module/langs/translation-es.json\n+++ b/extensions/database/module/langs/translation-es.json\n@@ -1,1 +1,64 @@\n-{}\n+{\n+ \"database-source/databaseHostPlaceholder\": \"Introduzca el dominio o la IP del servidor de base de datos\",\n+ \"database-parsing/preview-button\": \"Actualizar Vista previa\",\n+ \"database-source/databasePortLabel\": \"Puerto\",\n+ \"database-parsing/ignore-first\": \"ignorar primero\",\n+ \"database-import/title\": \"Servidores de base de datos\",\n+ \"database-import/creating\": \"Creando proyecto…\",\n+ \"database-import/importer-name\": \"Base de datos\",\n+ \"database-import/preparing\": \"Preparando el resultado …\",\n+ \"database-import/checking\": \"Validando consulta…\",\n+ \"database-source/alert-user\": \"Debe especificar un usuario para la de base de datos\",\n+ \"database-source/alert-port\": \"Debe especificar un puerto para la base de datos\",\n+ \"database-source/alert-host\": \"Debe especificar un host de base de datos\",\n+ \"database-source/alert-password\": \"Tienes que especificar una contraseña de base de datos\",\n+ \"database-source/alert-connection-name\": \"Debe especificar un nombre de conexión\",\n+ \"database-source/alert-invalid-query-keyword\": \"La consulta no puede contener palabras clave de manipulación de datos:\",\n+ \"database-source/alert-initial-database\": \"Debe especificar una base de datos inicial\",\n+ \"database-source/alert-query\": \"Debe especificar una consulta válida\",\n+ \"database-source/databaseFileNameLabel\": \"Archivo de base de datos\",\n+ \"database-source/connectionNamePlaceholder\": \"Introducir un Nombre de Conexión nuevo\",\n+ \"database-source/alert-invalid-query-select\": \"La consulta debe comenzar con la palabra clave SELECT\",\n+ \"database-source/form-validation-failure\": \"¡Nuevo formulario de conexión inválido!\",\n+ \"database-source/connectionNameLabel\": \"Nombre\",\n+ \"database-source/databaseTypeLabel\": \"Tipo\",\n+ \"database-source/alert-connection-edit\": \"Conexión editada\",\n+ \"database-source/databaseNameLabel\": \"Nombre de la base de datos\",\n+ \"database-source/databaseTestButton\": \"Prueba\",\n+ \"database-source/databaseConnectButton\": \"Conectar\",\n+ \"database-source/databaseUserLabel\": \"Usuario\",\n+ \"database-source/databasePasswordLabel\": \"Contraseña\",\n+ \"database-source/databaseHostLabel\": \"Host\",\n+ \"database-source/databaseSchemaLabel\": \"Esquema\",\n+ \"database-source/databaseUserPlaceholder\": \"Ingrese el usuario de la base de datos\",\n+ \"database-source/databasePortPlaceholder\": \"Introduzca el puerto de la base de datos, por ejemplo 3306\",\n+ \"database-source/databaseSchemaPlaceholder\": \"Ingrese el esquema inicial de la base de datos\",\n+ \"database-source/databasePasswordPlaceholder\": \"Ingrese la contraseña de la base de datos\",\n+ \"database-source/databaseNamePlaceholder\": \"Ingrese el nombre de la base de datos\",\n+ \"database-source/databaseFileNamePlaceholder\": \"Ingrese la ruta completa al archivo de la base de datos\",\n+ \"database-source/connectionNameDefaultValue\": \"Nombre_de_Conexión_Nueva\",\n+ \"database-source/databaseSaveButton\": \"Guardar\",\n+ \"database-source/new-connection-legend\": \"Nuevo Editor de Conexión\",\n+ \"database-source/newConnectionButtonDiv\": \"Nueva conexión\",\n+ \"database-parsing/start-over\": \"« Comenzar de nuevo\",\n+ \"database-parsing/conf-pars\": \"Configurar opciones de parsing\",\n+ \"database-source/savedConnectionSpan\": \"Conexiones guardadas\",\n+ \"database-parsing/proj-name\": \"Nombre del proyecto\",\n+ \"database-parsing/create-proj\": \"Crear Proyecto »\",\n+ \"database-parsing/option\": \"Opciones\",\n+ \"database-parsing/parse-next\": \"Analizar siguiente\",\n+ \"database-parsing/disable-auto-preview\": \"Deshabilitar vista previa automática\",\n+ \"database-parsing/worksheet\": \"Hojas de cálculo\",\n+ \"database-parsing/updating-preview\": \"Actualizando vista previa…\",\n+ \"database-parsing/ignore\": \"linea(s) al inicio del archivo\",\n+ \"database-parsing/discard-next\": \"Descartar el Inicial\",\n+ \"database-parsing/parse\": \"línea(s) como encabezados de columna\",\n+ \"database-parsing/store-cell\": \"Guardar las celdas en blanco como nulos\",\n+ \"database-parsing/discard\": \"Fila(s) de datos\",\n+ \"database-parsing/limit\": \"Fila(s) de datos\",\n+ \"database-parsing/store-row\": \"Almacenar filas vacías\",\n+ \"database-source/alert-conn-name-invalid-character\": \"Error al introducir el nombre de la conexión: Carácter ilegal en la entrada. Sólo se permite [a-zA-Z0-9._-]\",\n+ \"database-source/alert-db-host-invalid-character\": \"Error de host de base de datos: Carácter ilegal en la entrada. Sólo se permiten caracteres alfanuméricos\",\n+ \"database-source/alert-db-user-invalid-character\": \"Error en usuario de base de datos: Carácter ilegal en la entrada. Sólo se permiten caracteres alfanuméricos\",\n+ \"database-source/alert-db-port-invalid-character\": \"Error en el puerto de base de datos: Carácter ilegal en la entrada. Sólo se permiten valores numéricos.\"\n+}\ndiff --git a/extensions/wikibase/module/langs/translation-en.json b/extensions/wikibase/module/langs/translation-en.json\nindex 96eed2976..74ff926b8 100644\n--- a/extensions/wikibase/module/langs/translation-en.json\n+++ b/extensions/wikibase/module/langs/translation-en.json\n@@ -34,9 +34,8 @@\n \"wikibase-addition/version-error\": \"Manifest version $1 is not supported. OpenRefine supports manifest versions 1.x and 2.x only.\",\n \"wikibase-schema/dialog-header\": \"Align to Wikibase\",\n \"wikibase-schema/target-wikibase-instance\": \"Target Wikibase instance:\",\n- \"wikibase-schema/dialog-explanation\": \"The schema below specifies how your tabular data will be transformed into $2 edits.\",\n \"wikibase-schema/start-from-an-existing-schema\": \"Start from an existing schema:\",\n- \"wikibase-schema/save-new-schema\": \"Save new...\",\n+ \"wikibase-schema/save-new-schema\": \"Save schema changes\",\n \"wikibase-schema/preview-explanation\": \"This tab shows the first edits (out of $1) that will be made once you upload the changes to $3. You can use facets to inspect the edits on particular items.\",\n \"wikibase-schema/schema-tab-header\": \"Schema\",\n \"wikibase-schema/warnings-tab-header\": \"Issues\",\n@@ -336,7 +335,7 @@\n \"wikibase-save-schema-dialog/dialog-header\": \"Save schema\",\n \"wikibase-save-schema-dialog/schema-name\": \"New schema name\",\n \"wikibase-save-schema-dialog/existing-schema-label\": \"Or select an existing schema to override\",\n- \"wikibase-save-schema-dialog/select-schema\": \"Select schema...\",\n+ \"wikibase-save-schema-dialog/select-schema\": \"Select...\",\n \"wikibase-save-schema-dialog/save\": \"Save\",\n \"wikibase-save-schema-dialog/empty-name\": \"Please provide a name for the schema.\",\n \"wikibase-save-schema-dialog/manage-schemas\": \"Manage schemas…\",\ndiff --git a/extensions/wikibase/module/langs/translation-es.json b/extensions/wikibase/module/langs/translation-es.json\nindex 705e7c4e8..d1eb2871d 100644\n--- a/extensions/wikibase/module/langs/translation-es.json\n+++ b/extensions/wikibase/module/langs/translation-es.json\n@@ -234,5 +234,31 @@\n \"wikibase-schema/mediainfo-wikitext-override\": \"Wikitext (anular):\",\n \"wikibase-schema/mediainfo-wikitext-no-override\": \"Wikitexto (no anular):\",\n \"wikibase-addition/manifest-paste-input\": \"JSON del manifiesto\",\n- \"wikibase-addition/manifest-url-input\": \"URL del manifiesto\"\n+ \"wikibase-addition/manifest-url-input\": \"URL del manifiesto\",\n+ \"warnings-messages/invalid-item-subject/title\": \"Identificadores de asunto no válidos para la edición de un elemento\",\n+ \"wikibase-schema/add-caption\": \"añadir leyenda\",\n+ \"wikibase-schema/add-mediainfo-button\": \"Agregar medios\",\n+ \"wikibase-schema/some-value\": \"Algún valor\",\n+ \"wikibase-schema/no-value\": \"Ningún valor\",\n+ \"wikibase-schema/caption-if-new\": \"Leyenda (no anular)\",\n+ \"wikibase-schema/input-placeholder-for-wikibase-mediainfo\": \"Escriba el nombre de archivo o arrastre la columna reconciliada\",\n+ \"wikibase-schema/override-wikitext\": \"anular el wikitexto existente\",\n+ \"wikibase-schema/caption-override\": \"Leyenda (anular si está presente)\",\n+ \"wikibase-schema/input-placeholder-for-wikibase-item\": \"Escriba elemento o arrastre la columna reconciliada\",\n+ \"wikibase-schema/input-placeholder-for-wikibase-property\": \"Escriba la propiedad o arrastre la columna reconciliada\",\n+ \"wikibase-schema/input-placeholder-for-wikibase-lexeme\": \"escriba el lexema o arrastre la columna conciliada\",\n+ \"wikibase-schema/input-placeholder-for-wikibase-form\": \"Escriba el formulario o arrastre la columna conciliada\",\n+ \"wikibase-schema/entity-or-reconciled-column\": \"Escriba la entidad o arrastre la columna reconciliada aquí\",\n+ \"wikibase-schema/file-name-placeholder\": \"Nombre del archivo en la wiki\",\n+ \"wikibase-schema/wikitext-placeholder\": \"Wiki markup asociado al archivo\",\n+ \"wikibase-schema/invalid-schema-warning\": \"Su esquema está incompleto:\",\n+ \"wikibase-schema/file-path-placeholder\": \"Ruta absoluta o URL del archivo multimedia a cargar\",\n+ \"wikibase-schema/incompatible-site-iri-reconciled-column\": \"Esta columna se concilia con el espacio identificador $1, pero esta entrada requiere una columna conciliada con $2.\",\n+ \"warnings-messages/invalid-item-subject/body\": \"Los identificadores de entidad como {ejemplo} no pueden utilizarse como asunto para editar un elemento. El asunto debe ser un Qid.\",\n+ \"warnings-messages/invalid-mediainfo-subject/title\": \"Identificadores de asunto no válidos para la edición de un archivo multimedia\",\n+ \"warnings-messages/invalid-mediainfo-subject/body\": \"Los identificadores de entidad como {example} no se pueden usar como asunto para editar un archivo multimedia. El asunto debe ser un Qid.\",\n+ \"warnings-messages/invalid-entity-id-format/title\": \"Identificadores de entidad no válidos\",\n+ \"wikibase-schema/caption\": \"Leyenda\",\n+ \"wikibase-schema/empty-captions\": \"no se agregaron subtítulos\",\n+ \"wikibase-schema/configure-statement\": \"Configuración\"\n }\ndiff --git a/extensions/wikibase/module/scripts/schema-alignment-tab.html b/extensions/wikibase/module/scripts/schema-alignment-tab.html\nindex 3f2d7f8a4..b5b56dc14 100644\n--- a/extensions/wikibase/module/scripts/schema-alignment-tab.html\n+++ b/extensions/wikibase/module/scripts/schema-alignment-tab.html\n@@ -1,24 +1,27 @@\n
\n
\n-
\n- \n-
\n- \n- \n- \n+
\n+
\n+
\n+
\n+ \n+ \n+
\n+ \n+
\n
\n \n
\n
\n
\n-
\n-
\n-
\n-
\n-
\n-
\n- \n- \n+
\n+
\n+ \n+
\n+ \n+
\n+ \n+ \n
\n
\n
\ndiff --git a/extensions/wikibase/module/scripts/schema-alignment.js b/extensions/wikibase/module/scripts/schema-alignment.js\nindex 6c8bfc84b..2f640ff3a 100644\n--- a/extensions/wikibase/module/scripts/schema-alignment.js\n+++ b/extensions/wikibase/module/scripts/schema-alignment.js\n@@ -120,9 +120,6 @@ SchemaAlignment._rerenderTabs = function() {\n var schemaTab = $(DOM.loadHTML(\"wikidata\", \"scripts/schema-alignment-tab.html\")).appendTo(this._schemaPanel);\n var schemaElmts = this._schemaElmts = DOM.bind(schemaTab);\n schemaElmts.targetWikibaseLabel.text($.i18n('wikibase-schema/target-wikibase-instance'));\n- schemaElmts.dialogExplanation.html($.i18n('wikibase-schema/dialog-explanation',\n- WikibaseManager.getSelectedWikibaseMainPage(),\n- WikibaseManager.getSelectedWikibaseName()));\n let editableEntityTypes = WikibaseManager.getSelectedWikibaseEditableEntityTypes();\n for (let entityType of editableEntityTypes) {\n let addButton = $('').addClass(\"wbs-toolbar\");\ndiff --git a/extensions/wikibase/module/styles/schema-alignment.css b/extensions/wikibase/module/styles/schema-alignment.css\nindex daea05d24..2b57f7205 100644\n--- a/extensions/wikibase/module/styles/schema-alignment.css\n+++ b/extensions/wikibase/module/styles/schema-alignment.css\n@@ -21,6 +21,10 @@\n overflow: hidden;\n }\n \n+.schema-alignment-tab-content {\n+ max-width: 70em;\n+}\n+\n .main-view-panel-tab-header {\n margin-top: 9px;\n margin-left: 7px;\n@@ -48,10 +52,6 @@\n overflow-y: auto;\n }\n \n-.schema-alignment-dialog-entity-edits-area {\n- max-width: 70em;\n-}\n-\n .schema-alignment-dialog-statements-area {\n padding: 10px;\n max-width: 900px;\n@@ -66,45 +66,25 @@\n margin: 1em;\n }\n \n-.schema-alignment-save-buttons{\n- display:flex; \n- flex-direction: row; \n- float: right; \n- padding: 12px;\n+.float-apart {\n+ display: flex;\n+ justify-content: space-between;\n }\n \n-.schema-alignment-save {\n- padding-right: 10px; \n-}\n-\n-#schema-alignment-entity-add-buttons .wbs-toolbar{\n- float: left;\n- padding: 1em; \n-}\n-\n-.schema-alignment-save button:disabled {\n- color: gray;\n+.schema-alignment-footer {\n+ padding: 1em;\n }\n \n-.schema-alignment-save button {\n- font-weight: normal;\n- width: 100%;\n-}\n-\n-.schema-alignment-discard button:disabled {\n- color: gray;\n-}\n-\n-.schema-alignment-discard button {\n- font-weight: normal;\n- width: 100%;\n+.schema-alignment-footer button:disabled {\n+ color: grey;\n+ cursor: not-allowed;\n }\n \n .schema-alignment-dialog-columns-area {\n border: 1px solid #bcf;\n border-left: 0;\n border-right: 0;\n- padding: 5px;\n+ padding: 5px 1em;\n max-height: 100px;\n overflow-y: auto;\n }\ndiff --git a/main/resources/com/google/refine/grel/ControlEvalError_es.properties b/main/resources/com/google/refine/grel/ControlEvalError_es.properties\nindex 8b1378917..e69de29bb 100644\n--- a/main/resources/com/google/refine/grel/ControlEvalError_es.properties\n+++ b/main/resources/com/google/refine/grel/ControlEvalError_es.properties\n@@ -1,1 +0,0 @@\n-\ndiff --git a/main/src/com/google/refine/util/PatternSyntaxExceptionParser.java b/main/src/com/google/refine/util/PatternSyntaxExceptionParser.java\nindex 325bc3aa6..062d082ba 100644\n--- a/main/src/com/google/refine/util/PatternSyntaxExceptionParser.java\n+++ b/main/src/com/google/refine/util/PatternSyntaxExceptionParser.java\n@@ -80,6 +80,7 @@ public class PatternSyntaxExceptionParser {\n msg = \"The regular expression has a '*','+' or '?' in the wrong place.\";\n break;\n case \"Unexpected internal error\":\n+ case \"Unescaped trailing backslash\":\n msg = \"The regular expression has a backslash '\\\\' at the end.\";\n break;\n case \"Unclosed counted closure\":\ndiff --git a/main/webapp/modules/core/scripts/project.js b/main/webapp/modules/core/scripts/project.js\nindex 421be1c45..b22e95bb4 100644\n--- a/main/webapp/modules/core/scripts/project.js\n+++ b/main/webapp/modules/core/scripts/project.js\n@@ -194,55 +194,45 @@ Refine.setTitle = function(status) {\n };\n \n Refine.reinitializeProjectData = function(f, fError) {\n- $.getJSON(\n- \"command/core/get-project-metadata?\" + $.param({ project: theProject.id }), null,\n- function(data) {\n- if (data.status == \"error\") {\n- alert(data.message);\n- if (fError) {\n- fError();\n- }\n- } else {\n- theProject.metadata = data;\n- $.getJSON(\n- \"command/core/get-models?\" + $.param({ project: theProject.id }), null,\n- function(data) {\n- if (data.status == \"error\") {\n- alert(data.message);\n- if (fError) {\n- fError();\n- }\n- } else {\n- for (var n in data) {\n- if (data.hasOwnProperty(n)) {\n- theProject[n] = data[n];\n- }\n- }\n- $.post(\n- \"command/core/get-all-preferences\", null,\n- function(preferences) {\n- if (preferences.status == \"error\") {\n- alert(preferences.message);\n- if (fError) {\n- fError();\n- }\n- } else {\n- if (preferences != null) {\n- thePreferences = preferences;\n- }\n- f();\n- }\n- },\n- 'json'\n- );\n- }\n- },\n- 'json'\n- );\n+ function handleError(status, message, fError) {\n+ if (status === \"error\") {\n+ alert(message);\n+ if (fError) {\n+ fError();\n }\n- },\n- 'json'\n- );\n+ return true;\n+ }\n+ return false;\n+ }\n+\n+ $.when(\n+ $.getJSON(\"command/core/get-project-metadata?\" + $.param({ project: theProject.id }), null),\n+ $.getJSON(\"command/core/get-models?\" + $.param({ project: theProject.id }), null),\n+ $.getJSON(\"command/core/get-all-preferences\", null),\n+ ).done(function(metadata, models, preferences) {\n+ metadata = metadata[0], models = models[0], preferences = preferences[0];\n+ if (\n+ handleError(metadata.status, metadata.message, fError) ||\n+ handleError(models.status, models.message, fError) ||\n+ handleError(preferences.status, preferences.message, fError)\n+ ) {\n+ return;\n+ }\n+\n+ theProject.metadata = metadata;\n+\n+ for (var n in models) {\n+ if (models.hasOwnProperty(n)) {\n+ theProject[n] = models[n];\n+ }\n+ }\n+\n+ if (preferences) {\n+ thePreferences = preferences;\n+ }\n+\n+ f();\n+ });\n };\n \n Refine.getPreference = function(key, defaultValue) {\ndiff --git a/main/webapp/modules/core/scripts/util/url.js b/main/webapp/modules/core/scripts/util/url.js\nindex cf1bb34c6..f437977e0 100644\n--- a/main/webapp/modules/core/scripts/util/url.js\n+++ b/main/webapp/modules/core/scripts/util/url.js\n@@ -37,6 +37,7 @@ var URLUtil = {\n \"chrome\":1,\n \"file\":1,\n \"ftp\":1,\n+ \"geo\":0,\n \"http\":1,\n \"https\":1,\n \"imap\":1,\ndiff --git a/main/webapp/package-lock.json b/main/webapp/package-lock.json\nindex 7e0886a55..824f48858 100644\n--- a/main/webapp/package-lock.json\n+++ b/main/webapp/package-lock.json\n@@ -17,7 +17,12 @@\n \"tablesorter\": \"2.31.3\",\n \"underscore\": \"1.13.6\"\n },\n- \"devDependencies\": {}\n+ \"devDependencies\": {},\n+ \"engines\": {\n+ \"node\": \">=14.0.0\",\n+ \"npm\": \">=8.11.0\",\n+ \"yarn\": \">=1.22.15\"\n+ }\n },\n \"node_modules/@wikimedia/jquery.i18n\": {\n \"version\": \"1.0.9\",\ndiff --git a/main/webapp/package.json b/main/webapp/package.json\nindex f8589d8d0..52f8ccdc4 100644\n--- a/main/webapp/package.json\n+++ b/main/webapp/package.json\n@@ -1,4 +1,9 @@\n {\n+ \"engines\": {\n+ \"node\": \">=14.0.0\",\n+ \"npm\": \">=8.11.0\",\n+ \"yarn\": \">=1.22.15\"\n+ },\n \"scripts\": {\n \"postinstall\": \"node copy-dependencies.js\"\n },\ndiff --git a/pom.xml b/pom.xml\nindex 38137875e..e45bbf23e 100644\n--- a/pom.xml\n+++ b/pom.xml\n@@ -64,7 +64,7 @@\n \n \n 11\n- 17\n+ 20\n /\n 3333\n /tmp/refine\n@@ -88,7 +88,7 @@\n 1.7\n 1.31\n \n- 1.15\n+ 1.16.0\n 1.23.0\n 1.5\n 2.9.5\n@@ -108,7 +108,7 @@\n 4.5.14\n 1.2.3\n 1.9.3\n- 5.3.1\n+ 5.4.0\n \n \n 3.3.0\n@@ -120,7 +120,7 @@\n 4.3.0\n 3.1.2\n 3.3.0\n- 3.2.0\n+ 3.3.1\n 4.9.10\n 3.1.1\n 2.0.0\ndiff --git a/refine.bat b/refine.bat\nindex 1b649f74e..ef9361f6f 100644\n--- a/refine.bat\n+++ b/refine.bat\n@@ -159,14 +159,6 @@ set REFINE_WEBAPP=main\\webapp\n :gotWebApp\n set OPTS=%OPTS% -Drefine.webapp=%REFINE_WEBAPP%\n \n-for /f \"tokens=2 delims==\" %%i in ('wmic OS get FreePhysicalMemory /Value') do set /a freeRam=%%i/1024\n-echo -------------------------------------------------------------------------------------------------\n-echo You have %freeRam%M of free memory.\n-echo Your current configuration is set to use %REFINE_MEMORY% of memory.\n-echo OpenRefine can run better when given more memory. Read our FAQ on how to allocate more memory here:\n-echo https://openrefine.org/docs/manual/installing\\#increasing-memory-allocation\n-echo -------------------------------------------------------------------------------------------------\n-\n if not \"%REFINE_CLASSES_DIR%\" == \"\" goto gotClassesDir\n set REFINE_CLASSES_DIR=server\\classes\n :gotClassesDir\n@@ -205,6 +197,15 @@ if \"\"%ACTION%\"\" == \"\"\"\" goto doRun\n exit /B 1\n \n :doRun\n+\n+for /f \"tokens=2 delims==\" %%i in ('wmic OS get FreePhysicalMemory /Value') do set /a freeRam=%%i/1024\n+echo -------------------------------------------------------------------------------------------------\n+echo You have %freeRam%M of free memory.\n+echo Your current configuration is set to use %REFINE_MEMORY% of memory.\n+echo OpenRefine can run better when given more memory. Read our FAQ on how to allocate more memory here:\n+echo https://openrefine.org/docs/manual/installing\\#increasing-memory-allocation\n+echo -------------------------------------------------------------------------------------------------\n+\n rem --- Checking Java Version ------------------------------------------\n set JAVA=\"%JAVA_HOME%\\bin\\java.exe\"\n \n", "test_patch": "diff --git a/.github/workflows/pull_request_e2e.yml b/.github/workflows/pull_request_e2e.yml\nindex aa942512a..3ef38c771 100644\n--- a/.github/workflows/pull_request_e2e.yml\n+++ b/.github/workflows/pull_request_e2e.yml\n@@ -45,11 +45,11 @@ jobs:\n echo \"CYPRESS_RECORD_KEY=$(echo YzE3ZDU4OGItZTBkOC00ZjJmLTg4NjYtNzJmNmFmYmRhNGQxCg== | base64 -d)\" >> $GITHUB_ENV\n echo \"CYPRESS_PROJECT_ID=s5du3k\" >> $GITHUB_ENV\n \n- - name: Set up Java 11\n+ - name: Set up Java 17\n uses: actions/setup-java@v3\n with:\n distribution: 'temurin'\n- java-version: 11\n+ java-version: 17\n cache: 'maven'\n \n - name: Build OpenRefine\ndiff --git a/main/tests/cypress/cypress/support/commands.js b/main/tests/cypress/cypress/support/commands.js\nindex ec51f1bd4..f20915c01 100644\n--- a/main/tests/cypress/cypress/support/commands.js\n+++ b/main/tests/cypress/cypress/support/commands.js\n@@ -9,7 +9,6 @@\n // ***********************************************\n \n import 'cypress-file-upload';\n-import 'cypress-wait-until';\n \n // /**\n // * Reconcile a column\ndiff --git a/main/tests/cypress/package.json b/main/tests/cypress/package.json\nindex 6c5022386..f54223ad5 100644\n--- a/main/tests/cypress/package.json\n+++ b/main/tests/cypress/package.json\n@@ -5,25 +5,25 @@\n \"license\": \"BSD-3-Clause\",\n \"author\": \"OpenRefine\",\n \"private\": true,\n+ \"engines\": {\n+ \"node\": \">=14.0.0\",\n+ \"npm\": \">=8.11.0\",\n+ \"yarn\": \">=1.22.15\"\n+ },\n \"scripts\": {\n \"test\": \"cypress run --browser electron --headless --quiet\",\n \"fix-lint\": \"prettier --write . && eslint --fix .\",\n \"lint\": \"prettier --check . && eslint .\"\n },\n \"dependencies\": {\n- \"cypress\": \"12.14.0\",\n- \"cypress-file-upload\": \"^5.0.8\",\n- \"cypress-wait-until\": \"^1.7.2\",\n- \"dotenv\": \"^16.3.0\",\n- \"fs-extra\": \"^11.1.1\",\n- \"uniqid\": \"^5.4.0\"\n+ \"cypress\": \"12.16.0\",\n+ \"cypress-file-upload\": \"^5.0.8\"\n },\n \"devDependencies\": {\n- \"eslint\": \"^8.42.0\",\n+ \"eslint\": \"^8.43.0\",\n \"eslint-config-google\": \"^0.14.0\",\n \"eslint-config-prettier\": \"^8.8.0\",\n \"eslint-plugin-cypress\": \"^2.13.3\",\n- \"jsdoc\": \"^4.0.2\",\n \"prettier\": \"2.8.8\"\n }\n }\ndiff --git a/main/tests/cypress/yarn.lock b/main/tests/cypress/yarn.lock\nindex b8ff44d3a..067aadd14 100644\n--- a/main/tests/cypress/yarn.lock\n+++ b/main/tests/cypress/yarn.lock\n@@ -2,11 +2,6 @@\n # yarn lockfile v1\n \n \n-\"@babel/parser@^7.20.15\":\n- version \"7.21.0\"\n- resolved \"https://registry.yarnpkg.com/@babel/parser/-/parser-7.21.0.tgz#cc09288743b867763cb927ba101ccdf0b600b7e4\"\n- integrity sha512-ONjtg4renj14A9pj3iA5T5+r5Eijxbr2eNIkMBTC74occDSsRZUpe8vowmowAjFR1imWlkD8eEmjYXiREZpGZg==\n-\n \"@cypress/request@^2.88.10\":\n version \"2.88.10\"\n resolved \"https://registry.yarnpkg.com/@cypress/request/-/request-2.88.10.tgz#b66d76b07f860d3a4b8d7a0604d020c662752cce\"\n@@ -66,10 +61,10 @@\n minimatch \"^3.1.2\"\n strip-json-comments \"^3.1.1\"\n \n-\"@eslint/js@8.42.0\":\n- version \"8.42.0\"\n- resolved \"https://registry.yarnpkg.com/@eslint/js/-/js-8.42.0.tgz#484a1d638de2911e6f5a30c12f49c7e4a3270fb6\"\n- integrity sha512-6SWlXpWU5AvId8Ac7zjzmIOqMOba/JWY8XZ4A7q7Gn1Vlfg/SFFIlrtHXt9nPn4op9ZPAkl91Jao+QQv3r/ukw==\n+\"@eslint/js@8.43.0\":\n+ version \"8.43.0\"\n+ resolved \"https://registry.yarnpkg.com/@eslint/js/-/js-8.43.0.tgz#559ca3d9ddbd6bf907ad524320a0d14b85586af0\"\n+ integrity sha512-s2UHCoiXfxMvmfzqoN+vrQ84ahUSYde9qNO1MdxmoEhyHWsfmwOpFlwYV+ePJEVc7gFnATGUi376WowX1N7tFg==\n \n \"@humanwhocodes/config-array@^0.11.10\":\n version \"0.11.10\"\n@@ -90,13 +85,6 @@\n resolved \"https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45\"\n integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==\n \n-\"@jsdoc/salty@^0.2.1\":\n- version \"0.2.1\"\n- resolved \"https://registry.yarnpkg.com/@jsdoc/salty/-/salty-0.2.1.tgz#815c487c859eca81ad3dfea540f830e1ff9d3392\"\n- integrity sha512-JXwylDNSHa549N9uceDYu8D4GMXwSo3H8CCPYEQqxhhHpxD28+lRl2b3bS/caaPj5w1YD3SWtrficJNTnUjGpg==\n- dependencies:\n- lodash \"^4.17.21\"\n-\n \"@nodelib/fs.scandir@2.1.5\":\n version \"2.1.5\"\n resolved \"https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5\"\n@@ -123,24 +111,6 @@\n resolved \"https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz\"\n integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==\n \n-\"@types/linkify-it@*\":\n- version \"3.0.2\"\n- resolved \"https://registry.yarnpkg.com/@types/linkify-it/-/linkify-it-3.0.2.tgz#fd2cd2edbaa7eaac7e7f3c1748b52a19143846c9\"\n- integrity sha512-HZQYqbiFVWufzCwexrvh694SOim8z2d+xJl5UNamcvQFejLY/2YUtzXHYi3cHdI7PMlS8ejH2slRAOJQ32aNbA==\n-\n-\"@types/markdown-it@^12.2.3\":\n- version \"12.2.3\"\n- resolved \"https://registry.yarnpkg.com/@types/markdown-it/-/markdown-it-12.2.3.tgz#0d6f6e5e413f8daaa26522904597be3d6cd93b51\"\n- integrity sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ==\n- dependencies:\n- \"@types/linkify-it\" \"*\"\n- \"@types/mdurl\" \"*\"\n-\n-\"@types/mdurl@*\":\n- version \"1.0.2\"\n- resolved \"https://registry.yarnpkg.com/@types/mdurl/-/mdurl-1.0.2.tgz#e2ce9d83a613bacf284c7be7d491945e39e1f8e9\"\n- integrity sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==\n-\n \"@types/node@*\":\n version \"15.12.4\"\n resolved \"https://registry.yarnpkg.com/@types/node/-/node-15.12.4.tgz#e1cf817d70a1e118e81922c4ff6683ce9d422e26\"\n@@ -343,13 +313,6 @@ caseless@~0.12.0:\n resolved \"https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz\"\n integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=\n \n-catharsis@^0.9.0:\n- version \"0.9.0\"\n- resolved \"https://registry.yarnpkg.com/catharsis/-/catharsis-0.9.0.tgz#40382a168be0e6da308c277d3a2b3eb40c7d2121\"\n- integrity sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==\n- dependencies:\n- lodash \"^4.17.15\"\n-\n chalk@^4.0.0, chalk@^4.1.0:\n version \"4.1.0\"\n resolved \"https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz\"\n@@ -460,15 +423,10 @@ cypress-file-upload@^5.0.8:\n resolved \"https://registry.yarnpkg.com/cypress-file-upload/-/cypress-file-upload-5.0.8.tgz#d8824cbeaab798e44be8009769f9a6c9daa1b4a1\"\n integrity sha512-+8VzNabRk3zG6x8f8BWArF/xA/W0VK4IZNx3MV0jFWrJS/qKn8eHfa5nU73P9fOQAgwHFJx7zjg4lwOnljMO8g==\n \n-cypress-wait-until@^1.7.2:\n- version \"1.7.2\"\n- resolved \"https://registry.yarnpkg.com/cypress-wait-until/-/cypress-wait-until-1.7.2.tgz#7f534dd5a11c89b65359e7a0210f20d3dfc22107\"\n- integrity sha512-uZ+M8/MqRcpf+FII/UZrU7g1qYZ4aVlHcgyVopnladyoBrpoaMJ4PKZDrdOJ05H5RHbr7s9Tid635X3E+ZLU/Q==\n-\n-cypress@12.14.0:\n- version \"12.14.0\"\n- resolved \"https://registry.yarnpkg.com/cypress/-/cypress-12.14.0.tgz#37a19b85f5e9d881995e9fee1ddf41b3d3a623dd\"\n- integrity sha512-HiLIXKXZaIT1RT7sw1sVPt+qKtis3uYNm6KwC4qoYjabwLKaqZlyS/P+uVvvlBNcHIwL/BC6nQZajpbUd7hOgQ==\n+cypress@12.16.0:\n+ version \"12.16.0\"\n+ resolved \"https://registry.yarnpkg.com/cypress/-/cypress-12.16.0.tgz#d0dcd0725a96497f4c60cf54742242259847924c\"\n+ integrity sha512-mwv1YNe48hm0LVaPgofEhGCtLwNIQEjmj2dJXnAkY1b4n/NE9OtgPph4TyS+tOtYp5CKtRmDvBzWseUXQTjbTg==\n dependencies:\n \"@cypress/request\" \"^2.88.10\"\n \"@cypress/xvfb\" \"^1.2.4\"\n@@ -556,11 +514,6 @@ doctrine@^3.0.0:\n dependencies:\n esutils \"^2.0.2\"\n \n-dotenv@^16.3.0:\n- version \"16.3.0\"\n- resolved \"https://registry.yarnpkg.com/dotenv/-/dotenv-16.3.0.tgz#1c61ae0a7b6f7b7e2285d50016ebab048f12ec6d\"\n- integrity sha512-tHB+hmf8MRCkT3VVivGiG8kq9HiGTmQ3FzOKgztfpJQH1IWuZTOvKSJmHNnQPowecAmkCJhLrxdPhOr06LLqIQ==\n-\n ecc-jsbn@~0.1.1:\n version \"0.1.2\"\n resolved \"https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz\"\n@@ -588,21 +541,11 @@ enquirer@^2.3.6:\n dependencies:\n ansi-colors \"^4.1.1\"\n \n-entities@~2.1.0:\n- version \"2.1.0\"\n- resolved \"https://registry.yarnpkg.com/entities/-/entities-2.1.0.tgz#992d3129cf7df6870b96c57858c249a120f8b8b5\"\n- integrity sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==\n-\n escape-string-regexp@^1.0.5:\n version \"1.0.5\"\n resolved \"https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz\"\n integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=\n \n-escape-string-regexp@^2.0.0:\n- version \"2.0.0\"\n- resolved \"https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344\"\n- integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==\n-\n escape-string-regexp@^4.0.0:\n version \"4.0.0\"\n resolved \"https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34\"\n@@ -638,15 +581,15 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1:\n resolved \"https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz#c22c48f48942d08ca824cc526211ae400478a994\"\n integrity sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==\n \n-eslint@^8.42.0:\n- version \"8.42.0\"\n- resolved \"https://registry.yarnpkg.com/eslint/-/eslint-8.42.0.tgz#7bebdc3a55f9ed7167251fe7259f75219cade291\"\n- integrity sha512-ulg9Ms6E1WPf67PHaEY4/6E2tEn5/f7FXGzr3t9cBMugOmf1INYvuUwwh1aXQN4MfJ6a5K2iNwP3w4AColvI9A==\n+eslint@^8.43.0:\n+ version \"8.43.0\"\n+ resolved \"https://registry.yarnpkg.com/eslint/-/eslint-8.43.0.tgz#3e8c6066a57097adfd9d390b8fc93075f257a094\"\n+ integrity sha512-aaCpf2JqqKesMFGgmRPessmVKjcGXqdlAYLLC3THM8t5nBRZRQ+st5WM/hoJXkdioEXLLbXgclUpM0TXo5HX5Q==\n dependencies:\n \"@eslint-community/eslint-utils\" \"^4.2.0\"\n \"@eslint-community/regexpp\" \"^4.4.0\"\n \"@eslint/eslintrc\" \"^2.0.3\"\n- \"@eslint/js\" \"8.42.0\"\n+ \"@eslint/js\" \"8.43.0\"\n \"@humanwhocodes/config-array\" \"^0.11.10\"\n \"@humanwhocodes/module-importer\" \"^1.0.1\"\n \"@nodelib/fs.walk\" \"^1.2.8\"\n@@ -847,15 +790,6 @@ form-data@~2.3.2:\n combined-stream \"^1.0.6\"\n mime-types \"^2.1.12\"\n \n-fs-extra@^11.1.1:\n- version \"11.1.1\"\n- resolved \"https://registry.yarnpkg.com/fs-extra/-/fs-extra-11.1.1.tgz#da69f7c39f3b002378b0954bb6ae7efdc0876e2d\"\n- integrity sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==\n- dependencies:\n- graceful-fs \"^4.2.0\"\n- jsonfile \"^6.0.1\"\n- universalify \"^2.0.0\"\n-\n fs-extra@^9.1.0:\n version \"9.1.0\"\n resolved \"https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz\"\n@@ -930,7 +864,7 @@ globals@^13.19.0:\n dependencies:\n type-fest \"^0.20.2\"\n \n-graceful-fs@^4.1.6, graceful-fs@^4.1.9, graceful-fs@^4.2.0:\n+graceful-fs@^4.1.6, graceful-fs@^4.2.0:\n version \"4.2.6\"\n resolved \"https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.6.tgz#ff040b2b0853b23c3d31027523706f1885d76bee\"\n integrity sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==\n@@ -1069,39 +1003,11 @@ js-yaml@^4.1.0:\n dependencies:\n argparse \"^2.0.1\"\n \n-js2xmlparser@^4.0.2:\n- version \"4.0.2\"\n- resolved \"https://registry.yarnpkg.com/js2xmlparser/-/js2xmlparser-4.0.2.tgz#2a1fdf01e90585ef2ae872a01bc169c6a8d5e60a\"\n- integrity sha512-6n4D8gLlLf1n5mNLQPRfViYzu9RATblzPEtm1SthMX1Pjao0r9YI9nw7ZIfRxQMERS87mcswrg+r/OYrPRX6jA==\n- dependencies:\n- xmlcreate \"^2.0.4\"\n-\n jsbn@~0.1.0:\n version \"0.1.1\"\n resolved \"https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz\"\n integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM=\n \n-jsdoc@^4.0.2:\n- version \"4.0.2\"\n- resolved \"https://registry.yarnpkg.com/jsdoc/-/jsdoc-4.0.2.tgz#a1273beba964cf433ddf7a70c23fd02c3c60296e\"\n- integrity sha512-e8cIg2z62InH7azBBi3EsSEqrKx+nUtAS5bBcYTSpZFA+vhNPyhv8PTFZ0WsjOPDj04/dOLlm08EDcQJDqaGQg==\n- dependencies:\n- \"@babel/parser\" \"^7.20.15\"\n- \"@jsdoc/salty\" \"^0.2.1\"\n- \"@types/markdown-it\" \"^12.2.3\"\n- bluebird \"^3.7.2\"\n- catharsis \"^0.9.0\"\n- escape-string-regexp \"^2.0.0\"\n- js2xmlparser \"^4.0.2\"\n- klaw \"^3.0.0\"\n- markdown-it \"^12.3.2\"\n- markdown-it-anchor \"^8.4.1\"\n- marked \"^4.0.10\"\n- mkdirp \"^1.0.4\"\n- requizzle \"^0.2.3\"\n- strip-json-comments \"^3.1.0\"\n- underscore \"~1.13.2\"\n-\n json-schema-traverse@^0.4.1:\n version \"0.4.1\"\n resolved \"https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz\"\n@@ -1141,13 +1047,6 @@ jsprim@^2.0.2:\n json-schema \"0.4.0\"\n verror \"1.10.0\"\n \n-klaw@^3.0.0:\n- version \"3.0.0\"\n- resolved \"https://registry.yarnpkg.com/klaw/-/klaw-3.0.0.tgz#b11bec9cf2492f06756d6e809ab73a2910259146\"\n- integrity sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==\n- dependencies:\n- graceful-fs \"^4.1.9\"\n-\n lazy-ass@^1.6.0:\n version \"1.6.0\"\n resolved \"https://registry.yarnpkg.com/lazy-ass/-/lazy-ass-1.6.0.tgz\"\n@@ -1161,13 +1060,6 @@ levn@^0.4.1:\n prelude-ls \"^1.2.1\"\n type-check \"~0.4.0\"\n \n-linkify-it@^3.0.1:\n- version \"3.0.3\"\n- resolved \"https://registry.yarnpkg.com/linkify-it/-/linkify-it-3.0.3.tgz#a98baf44ce45a550efb4d49c769d07524cc2fa2e\"\n- integrity sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==\n- dependencies:\n- uc.micro \"^1.0.1\"\n-\n listr2@^3.8.3:\n version \"3.10.0\"\n resolved \"https://registry.yarnpkg.com/listr2/-/listr2-3.10.0.tgz#58105a53ed7fa1430d1b738c6055ef7bb006160f\"\n@@ -1198,7 +1090,7 @@ lodash.once@^4.1.1:\n resolved \"https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz\"\n integrity sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=\n \n-lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.21:\n+lodash@^4.17.21:\n version \"4.17.21\"\n resolved \"https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c\"\n integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==\n@@ -1227,32 +1119,6 @@ lru-cache@^6.0.0:\n dependencies:\n yallist \"^4.0.0\"\n \n-markdown-it-anchor@^8.4.1:\n- version \"8.6.4\"\n- resolved \"https://registry.yarnpkg.com/markdown-it-anchor/-/markdown-it-anchor-8.6.4.tgz#affb8aa0910a504c114e9fcad53ac3a5b907b0e6\"\n- integrity sha512-Ul4YVYZNxMJYALpKtu+ZRdrryYt/GlQ5CK+4l1bp/gWXOG2QWElt6AqF3Mih/wfUKdZbNAZVXGR73/n6U/8img==\n-\n-markdown-it@^12.3.2:\n- version \"12.3.2\"\n- resolved \"https://registry.yarnpkg.com/markdown-it/-/markdown-it-12.3.2.tgz#bf92ac92283fe983fe4de8ff8abfb5ad72cd0c90\"\n- integrity sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg==\n- dependencies:\n- argparse \"^2.0.1\"\n- entities \"~2.1.0\"\n- linkify-it \"^3.0.1\"\n- mdurl \"^1.0.1\"\n- uc.micro \"^1.0.5\"\n-\n-marked@^4.0.10:\n- version \"4.0.18\"\n- resolved \"https://registry.yarnpkg.com/marked/-/marked-4.0.18.tgz#cd0ac54b2e5610cfb90e8fd46ccaa8292c9ed569\"\n- integrity sha512-wbLDJ7Zh0sqA0Vdg6aqlbT+yPxqLblpAZh1mK2+AO2twQkPywvvqQNfEPVwSSRjZ7dZcdeVBIAgiO7MMp3Dszw==\n-\n-mdurl@^1.0.1:\n- version \"1.0.1\"\n- resolved \"https://registry.yarnpkg.com/mdurl/-/mdurl-1.0.1.tgz#fe85b2ec75a59037f2adfec100fd6c601761152e\"\n- integrity sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=\n-\n merge-stream@^2.0.0:\n version \"2.0.0\"\n resolved \"https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz\"\n@@ -1287,11 +1153,6 @@ minimist@^1.2.8:\n resolved \"https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c\"\n integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==\n \n-mkdirp@^1.0.4:\n- version \"1.0.4\"\n- resolved \"https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e\"\n- integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==\n-\n ms@2.1.2, ms@^2.1.1:\n version \"2.1.2\"\n resolved \"https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz\"\n@@ -1453,13 +1314,6 @@ request-progress@^3.0.0:\n dependencies:\n throttleit \"^1.0.0\"\n \n-requizzle@^0.2.3:\n- version \"0.2.3\"\n- resolved \"https://registry.yarnpkg.com/requizzle/-/requizzle-0.2.3.tgz#4675c90aacafb2c036bd39ba2daa4a1cb777fded\"\n- integrity sha512-YanoyJjykPxGHii0fZP0uUPEXpvqfBDxWV7s6GKAiiOsiqhX6vHNyW3Qzdmqp/iq/ExbhaGbVrjB4ruEVSM4GQ==\n- dependencies:\n- lodash \"^4.17.14\"\n-\n resolve-from@^4.0.0:\n version \"4.0.0\"\n resolved \"https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz\"\n@@ -1510,9 +1364,9 @@ safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0:\n integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==\n \n semver@^7.3.2:\n- version \"7.3.5\"\n- resolved \"https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7\"\n- integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==\n+ version \"7.5.3\"\n+ resolved \"https://registry.yarnpkg.com/semver/-/semver-7.5.3.tgz#161ce8c2c6b4b3bdca6caadc9fa3317a4c4fe88e\"\n+ integrity sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==\n dependencies:\n lru-cache \"^6.0.0\"\n \n@@ -1679,21 +1533,6 @@ type-fest@^0.21.3:\n resolved \"https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37\"\n integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==\n \n-uc.micro@^1.0.1, uc.micro@^1.0.5:\n- version \"1.0.6\"\n- resolved \"https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.6.tgz#9c411a802a409a91fc6cf74081baba34b24499ac\"\n- integrity sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==\n-\n-underscore@~1.13.2:\n- version \"1.13.4\"\n- resolved \"https://registry.yarnpkg.com/underscore/-/underscore-1.13.4.tgz#7886b46bbdf07f768e0052f1828e1dcab40c0dee\"\n- integrity sha512-BQFnUDuAQ4Yf/cYY5LNrK9NCJFKriaRbD9uR1fTeXnBeoa97W0i41qkZfGO9pSo8I5KzjAcSY2XYtdf0oKd7KQ==\n-\n-uniqid@^5.4.0:\n- version \"5.4.0\"\n- resolved \"https://registry.yarnpkg.com/uniqid/-/uniqid-5.4.0.tgz#4e17bfcab66dfe33563411ae0c801f46ef964e66\"\n- integrity sha512-38JRbJ4Fj94VmnC7G/J/5n5SC7Ab46OM5iNtSstB/ko3l1b5g7ALt4qzHFgGciFkyiRNtDXtLNb+VsxtMSE77A==\n-\n universalify@^1.0.0:\n version \"1.0.0\"\n resolved \"https://registry.yarnpkg.com/universalify/-/universalify-1.0.0.tgz\"\n@@ -1765,11 +1604,6 @@ wrappy@1:\n resolved \"https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz\"\n integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=\n \n-xmlcreate@^2.0.4:\n- version \"2.0.4\"\n- resolved \"https://registry.yarnpkg.com/xmlcreate/-/xmlcreate-2.0.4.tgz#0c5ab0f99cdd02a81065fa9cd8f8ae87624889be\"\n- integrity sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==\n-\n yallist@^4.0.0:\n version \"4.0.0\"\n resolved \"https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72\"\n", "FAIL_TO_PASS": [], "PASS_TO_PASS": [], "PR_Body": "Fixes #5346", "PR_Title": "Wikibase: Layout and label changes to schema alignment tab", "docker_image": "xinzhou1997/swe_rpg_java:OpenRefine__OpenRefine-5935_linux", "log_parser": "def parser(log: str) -> dict[str, str]:\n import re\n import xml.etree.ElementTree as ET\n\n results: dict[str, str] = {}\n\n # Helper: merge statuses with precedence fail > skip > pass\n def merge_status(name: str, new_status: str):\n if new_status not in (\"pass\", \"fail\", \"skip\"):\n return\n old_status = results.get(name)\n if old_status is None:\n results[name] = new_status\n return\n if old_status == new_status:\n return\n # Precedence: fail > skip > pass\n priority = {\"fail\": 3, \"skip\": 2, \"pass\": 1}\n if priority[new_status] > priority[old_status]:\n results[name] = new_status\n\n # -----------------------\n # XML-based parsing pass\n # -----------------------\n\n # Non-greedy patterns for JUnit/TestNG XML blocks\n xml_pattern = re.compile(\n r\"(|)\",\n re.IGNORECASE,\n )\n\n for match in xml_pattern.finditer(log):\n xml_block = match.group(1)\n try:\n root = ET.fromstring(xml_block)\n except ET.ParseError:\n # Skip this block but continue with others\n continue\n\n tag_lower = root.tag.lower()\n\n # Handle TestNG summary reports ()\n if tag_lower.endswith(\"testng-results\"):\n # Look for all test-method elements anywhere\n for tm in root.findall(\".//test-method\"):\n # Skip configuration methods\n if tm.attrib.get(\"is-config\", \"false\").lower() == \"true\":\n continue\n name = tm.attrib.get(\"name\", \"\")\n if not name:\n continue\n # Try to get class name from surrounding element\n class_elem = tm.find(\"..\")\n class_name = \"\"\n # xml.etree doesn't support parent lookup directly, so search ancestors:\n # We instead search for the nearest ancestor manually:\n # Since parent lookup is tricky, fall back to the attribute 'class' on if present\n # or to a surrounding element found via xpath with name match, which is usually enough.\n # Re-parse with a simpler loop using suites/tests/classes for better class name resolution.\n for suite in root.findall(\".//suite\"):\n for test in suite.findall(\".//test\"):\n for clazz in test.findall(\".//class\"):\n class_name = clazz.attrib.get(\"name\", \"\")\n for tm in clazz.findall(\"test-method\"):\n if tm.attrib.get(\"is-config\", \"false\").lower() == \"true\":\n continue\n m_name = tm.attrib.get(\"name\", \"\")\n if not m_name:\n continue\n fq_name = f\"{class_name}.{m_name}\" if class_name else m_name\n status_attr = tm.attrib.get(\"status\", \"\").upper()\n # Map TestNG status to our statuses\n if status_attr == \"PASS\":\n status = \"pass\"\n elif status_attr in (\"FAIL\", \"FAILURE\"):\n status = \"fail\"\n elif status_attr == \"SKIP\":\n status = \"skip\"\n else:\n # Fallback: if there is an exception element, mark as fail; else pass\n if tm.find(\".//exception\") is not None:\n status = \"fail\"\n else:\n status = \"pass\"\n merge_status(fq_name, status)\n continue\n\n # Handle JUnit-style reports\n if tag_lower.endswith(\"testsuite\"):\n for tc in root.findall(\".//testcase\"):\n class_name = tc.attrib.get(\"classname\", \"\")\n name = tc.attrib.get(\"name\", \"\")\n if not name:\n continue\n fq_name = f\"{class_name}.{name}\" if class_name else name\n\n # Determine status via children\n status = \"pass\"\n if tc.find(\"skipped\") is not None:\n status = \"skip\"\n elif tc.find(\"failure\") is not None or tc.find(\"error\") is not None:\n status = \"fail\"\n\n merge_status(fq_name, status)\n\n # ---------------------------\n # Text-based parsing fallback\n # ---------------------------\n\n # Compile regexes for common frameworks\n\n # pytest: path::test_name STATUS\n pytest_re = re.compile(\n r\"^(?P\\S+::\\S+)\\s+\"\n r\"(?PPASSED|FAILED|SKIPPED|ERROR|XFAILED|XPASSED)\\b\"\n )\n\n # unittest / nose: ClassName.test_method ... ok/FAIL/ERROR/skipped\n unittest_re = re.compile(\n r\"^(?P[A-Za-z_]\\w*)\\.(?P[A-Za-z_]\\w*)\\s+\\.\\.\\.\\s+\"\n r\"(?Pok|FAIL|ERROR|skipped)\\b\"\n )\n\n # go test: --- STATUS: TestName\n gotest_re = re.compile(\n r\"^---\\s+(?PPASS|FAIL|SKIP):\\s+(?P\\S+)\"\n )\n\n # Jest-like symbol lines: ✓/✕/○ test name\n jest_symbol_re = re.compile(r\"^\\s*([✓✕○])\\s+(?P.+)\")\n\n # Map various raw statuses to our canonical ones\n def map_status(raw: str) -> str | None:\n r = raw.upper()\n if r in (\"PASSED\", \"OK\", \"XPASSED\", \"PASS\"):\n return \"pass\"\n if r in (\"FAILED\", \"FAIL\", \"ERROR\", \"XFAILED\"):\n return \"fail\"\n if r in (\"SKIPPED\", \"SKIP\", \"SKIPPED (EXPECTED FAILURE)\"):\n return \"skip\"\n return None\n\n for line in log.splitlines():\n line = line.rstrip(\"\\n\")\n\n # pytest\n m = pytest_re.match(line)\n if m:\n name = m.group(\"name\")\n status = map_status(m.group(\"status\"))\n if status:\n merge_status(name, status)\n continue\n\n # unittest\n m = unittest_re.match(line)\n if m:\n name = f\"{m.group('class')}.{m.group('method')}\"\n status = map_status(m.group(\"status\"))\n if status:\n merge_status(name, status)\n continue\n\n # go test\n m = gotest_re.match(line)\n if m:\n name = m.group(\"name\")\n status = map_status(m.group(\"status\"))\n if status:\n merge_status(name, status)\n continue\n\n # Jest symbols\n m = jest_symbol_re.match(line)\n if m:\n symbol = m.group(1)\n name = m.group(\"name\").strip()\n if symbol == \"✓\":\n status = \"pass\"\n elif symbol == \"✕\":\n status = \"fail\"\n elif symbol == \"○\":\n status = \"skip\"\n else:\n status = None\n if status:\n merge_status(name, status)\n continue\n\n return results\n", "test_cmds": ["export _JAVA_OPTIONS=\"-Djava.net.preferIPv6Addresses=false\"", "mvn -B test"], "rebuild_cmds": ["export DEBIAN_FRONTEND=noninteractive", "apt-get update -qq", "apt-get install -y -qq nodejs npm", "./refine build"], "issues": [{"issue_number": 5935, "issue_title": "Wikibase: Layout and label changes to schema alignment tab", "issue_body": "Fixes #5346"}], "print_cmds": ["find . -maxdepth 6 -path '*surefire-reports/*.xml' -print0 | xargs -0 -I {} sh -c 'echo \"===== {} =====\"; cat {}'"], "working_dir": "/OpenRefine"}
{"repo": "OpenRefine/OpenRefine", "instance_id": "OpenRefine__OpenRefine-6021", "base_commit": "3dabe5130b43d6590faaaf37fae541b655f4e713", "patch": "diff --git a/extensions/gdata/pom.xml b/extensions/gdata/pom.xml\nindex 6dc58d714..68c0165b7 100644\n--- a/extensions/gdata/pom.xml\n+++ b/extensions/gdata/pom.xml\n@@ -85,7 +85,7 @@\n \n com.google.apis\n google-api-services-drive\n- v3-rev20230714-2.0.0\n+ v3-rev20230815-2.0.0\n \n \n com.google.apis\ndiff --git a/main/src/com/google/refine/importers/TextFormatGuesser.java b/main/src/com/google/refine/importers/TextFormatGuesser.java\nindex ca9c6f96b..b9a08a674 100644\n--- a/main/src/com/google/refine/importers/TextFormatGuesser.java\n+++ b/main/src/com/google/refine/importers/TextFormatGuesser.java\n@@ -34,13 +34,13 @@ import java.io.IOException;\n import java.io.InputStream;\n import java.io.InputStreamReader;\n import java.io.UnsupportedEncodingException;\n-import java.util.Arrays;\n \n import org.apache.commons.io.input.BoundedInputStream;\n import org.apache.commons.lang.StringUtils;\n \n import com.google.common.base.CharMatcher;\n import com.google.refine.importing.FormatGuesser;\n+import com.google.refine.importing.ImportingUtilities;\n \n public class TextFormatGuesser implements FormatGuesser {\n \n@@ -51,7 +51,7 @@ public class TextFormatGuesser implements FormatGuesser {\n @Override\n public String guess(File file, String encoding, String seedFormat) {\n try (InputStream fis = new FileInputStream(file)) {\n- if (isCompressed(file)) {\n+ if (ImportingUtilities.isCompressed(file)) {\n return \"binary\";\n }\n ;\n@@ -132,19 +132,4 @@ public class TextFormatGuesser implements FormatGuesser {\n return null;\n }\n \n- private boolean isCompressed(File file) throws IOException {\n- // Check for common compressed file types to protect ourselves from binary data\n- try (InputStream is = new FileInputStream(file)) {\n- byte[] magic = new byte[4];\n- int count = is.read(magic);\n- if (count == 4 && Arrays.equals(magic, new byte[] { 0x50, 0x4B, 0x03, 0x04 }) || // zip\n- Arrays.equals(magic, new byte[] { 0x50, 0x4B, 0x07, 0x08 }) ||\n- (magic[0] == 0x1F && magic[1] == (byte) 0x8B) // gzip\n- ) {\n- return true;\n- }\n- }\n- return false;\n- }\n-\n }\ndiff --git a/main/src/com/google/refine/importing/EncodingGuesser.java b/main/src/com/google/refine/importing/EncodingGuesser.java\nindex 605f93c47..797c355f1 100644\n--- a/main/src/com/google/refine/importing/EncodingGuesser.java\n+++ b/main/src/com/google/refine/importing/EncodingGuesser.java\n@@ -1,31 +1,32 @@\n \n package com.google.refine.importing;\n \n-import java.io.BufferedInputStream;\n import java.io.File;\n import java.io.FileInputStream;\n-import java.io.FileNotFoundException;\n import java.io.IOException;\n-import java.io.InputStream;\n import java.util.List;\n \n-import org.apache.commons.lang.StringUtils;\n-import org.mozilla.universalchardet.UniversalDetector;\n import com.fasterxml.jackson.databind.node.ArrayNode;\n import com.fasterxml.jackson.databind.node.ObjectNode;\n+import org.apache.commons.lang.StringUtils;\n+import org.mozilla.universalchardet.UnicodeBOMInputStream;\n+import org.mozilla.universalchardet.UniversalDetector;\n \n import com.google.refine.util.JSONUtilities;\n \n /**\n- * This class tries to find the correct encoding based on the http://site.icu-project.org/ and the icu4j library\n- * http://site.icu-project.org/home/why-use-icu4j.\n+ * This class tries to find the correct encoding based on https://github.com/albfernandez/juniversalchardet which is a\n+ * Java port of Mozilla's universalchardet library\n+ * https://hg.mozilla.org/mozilla-central/file/tip/extensions/universalchardet/\n * \n * @author Steffen Stundzig\n */\n public final class EncodingGuesser {\n \n- public final static void guess(final ImportingJob job)\n- throws FileNotFoundException, IOException {\n+ public static final String UTF_8_BOM = \"UTF-8-BOM\";\n+\n+ public static void guess(final ImportingJob job)\n+ throws IOException {\n ObjectNode retrievalRecord = job.getRetrievalRecord();\n if (retrievalRecord != null) {\n ArrayNode fileRecords = JSONUtilities.getArray(retrievalRecord, \"files\");\n@@ -38,9 +39,13 @@ public final class EncodingGuesser {\n if (StringUtils.isBlank(encoding)) {\n String location = JSONUtilities.getString(record, \"location\", null);\n if (location != null) {\n- try (InputStream is = new BufferedInputStream(\n+ try (UnicodeBOMInputStream is = new UnicodeBOMInputStream(\n new FileInputStream(new File(job.getRawDataDir(), location)))) {\n String detected = UniversalDetector.detectCharset(is);\n+ UnicodeBOMInputStream.BOM bom = is.getBOM();\n+ if (UnicodeBOMInputStream.BOM.UTF_8.equals(bom)) {\n+ detected = UTF_8_BOM;\n+ }\n if (detected != null) {\n JSONUtilities.safePut(record, \"encoding\", detected);\n }\ndiff --git a/main/src/com/google/refine/importing/ImportingUtilities.java b/main/src/com/google/refine/importing/ImportingUtilities.java\nindex 27ff6a5d8..5a2f2d923 100644\n--- a/main/src/com/google/refine/importing/ImportingUtilities.java\n+++ b/main/src/com/google/refine/importing/ImportingUtilities.java\n@@ -33,6 +33,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n \n package com.google.refine.importing;\n \n+import static java.nio.charset.StandardCharsets.UTF_8;\n+\n import java.io.File;\n import java.io.FileInputStream;\n import java.io.FileNotFoundException;\n@@ -69,7 +71,6 @@ import javax.servlet.http.HttpServletResponse;\n import org.apache.commons.compress.archivers.tar.TarArchiveEntry;\n import org.apache.commons.compress.archivers.tar.TarArchiveInputStream;\n import org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream;\n-import org.apache.commons.compress.compressors.lzma.LZMACompressorInputStream;\n import org.apache.commons.fileupload.FileItem;\n import org.apache.commons.fileupload.FileUploadException;\n import org.apache.commons.fileupload.ProgressListener;\n@@ -84,6 +85,7 @@ import org.apache.hc.core5.http.ContentType;\n import org.apache.hc.core5.http.HttpEntity;\n import org.apache.hc.core5.http.HttpStatus;\n import org.apache.hc.core5.http.io.HttpClientResponseHandler;\n+import org.mozilla.universalchardet.UnicodeBOMInputStream;\n import org.slf4j.Logger;\n import org.slf4j.LoggerFactory;\n \n@@ -349,7 +351,6 @@ public class ImportingUtilities {\n if (httpClient.getResponse(urlString, null, responseHandler) != null) {\n archiveCount++;\n }\n- ;\n downloadCount++;\n } else {\n // Fallback handling for non HTTP connections (only FTP?)\n@@ -435,19 +436,19 @@ public class ImportingUtilities {\n \n update.totalExpectedSize += length;\n \n- progress.setProgress(\"Downloading \" + url.toString(),\n+ progress.setProgress(\"Downloading \" + url, // TODO: Localize\n calculateProgressPercent(update.totalExpectedSize, update.totalRetrievedSize));\n \n long actualLength = saveStreamToFile(stream, file, update);\n JSONUtilities.safePut(fileRecord, \"size\", actualLength);\n if (actualLength == 0) {\n- throw new IOException(\"No content found in \" + url.toString());\n+ throw new IOException(\"No content found in \" + url);\n } else if (length >= 0) {\n update.totalExpectedSize += (actualLength - length);\n } else {\n update.totalExpectedSize += actualLength;\n }\n- progress.setProgress(\"Saving \" + url.toString() + \" locally\",\n+ progress.setProgress(\"Saving \" + url + \" locally\", // TODO: Localize\n calculateProgressPercent(update.totalExpectedSize, update.totalRetrievedSize));\n return postProcessRetrievedFile(rawDataDir, file, fileRecord, fileRecords, progress);\n }\n@@ -528,11 +529,23 @@ public class ImportingUtilities {\n encoding = commonEncoding;\n }\n if (encoding != null) {\n- try {\n- return new InputStreamReader(inputStream, encoding);\n- } catch (UnsupportedEncodingException e) {\n- // Ignore and fall through\n+\n+ // Special case for UTF-8 with BOM\n+ if (EncodingGuesser.UTF_8_BOM.equals(encoding)) {\n+ try {\n+ return new InputStreamReader(new UnicodeBOMInputStream(inputStream, true), UTF_8);\n+ } catch (IOException e) {\n+ throw new RuntimeException(\"Exception from UnicodeBOMInputStream\", e);\n+ }\n+ } else {\n+ try {\n+ return new InputStreamReader(inputStream, encoding);\n+ } catch (UnsupportedEncodingException e) {\n+ // This should never happen since they picked from a list of supported encodings\n+ throw new RuntimeException(\"Unsupported encoding: \" + encoding, e);\n+ }\n }\n+\n }\n return new InputStreamReader(inputStream);\n }\n@@ -677,7 +690,7 @@ public class ImportingUtilities {\n || \"application/x-zip-compressed\".equals(contentType)\n || \"application/zip\".equals(contentType)\n || \"application/x-compressed\".equals(contentType)\n- || \"multipar/x-zip\".equals(contentType)) {\n+ || \"multipart/x-zip\".equals(contentType)) {\n return new ZipInputStream(new FileInputStream(file));\n } else if (fileName.endsWith(\".kmz\")) {\n return new ZipInputStream(new FileInputStream(file));\n@@ -689,13 +702,28 @@ public class ImportingUtilities {\n \n private static boolean isFileGZipped(File file) {\n int magic = 0;\n- try (RandomAccessFile raf = new RandomAccessFile(file, \"r\");) {\n+ try (RandomAccessFile raf = new RandomAccessFile(file, \"r\")) {\n magic = raf.read() & 0xff | ((raf.read() << 8) & 0xff00);\n } catch (IOException ignored) {\n }\n return magic == GZIPInputStream.GZIP_MAGIC;\n }\n \n+ public static boolean isCompressed(File file) throws IOException {\n+ // Check for common compressed file types to protect ourselves from binary data\n+ try (InputStream is = new FileInputStream(file)) {\n+ byte[] magic = new byte[4];\n+ int count = is.read(magic);\n+ if (count == 4 && Arrays.equals(magic, new byte[] { 0x50, 0x4B, 0x03, 0x04 }) || // zip\n+ Arrays.equals(magic, new byte[] { 0x50, 0x4B, 0x07, 0x08 }) ||\n+ (magic[0] == 0x1F && magic[1] == (byte) 0x8B) // gzip\n+ ) {\n+ return true;\n+ }\n+ }\n+ return false;\n+ }\n+\n // FIXME: This is wasteful of space and time. We should try to process on the fly\n static private boolean explodeArchive(\n File rawDataDir,\n@@ -888,7 +916,7 @@ public class ImportingUtilities {\n }\n }\n \n- // If nothing matches the best format but we have some files,\n+ // If nothing matches the best format, but we have some files,\n // then select them all\n if (fileSelectionIndexes.size() == 0 && count > 0) {\n for (int i = 0; i < count; i++) {\ndiff --git a/main/webapp/modules/core/langs/translation-en.json b/main/webapp/modules/core/langs/translation-en.json\nindex 3faec69f3..4b0df045f 100644\n--- a/main/webapp/modules/core/langs/translation-en.json\n+++ b/main/webapp/modules/core/langs/translation-en.json\n@@ -577,7 +577,7 @@\n \"core-views/word-facet\": \"Word facet\",\n \"core-views/add-id-column\": \"Add entity identifiers column…\",\n \"core-views/add-id-column2\": \"Add a column containing entity identifiers from items\",\n- \"core-views/add-id-col\": \"Add column containing entity identifiers on $1\",\n+ \"core-views/add-id-col\": \"Add column containing entity identifiers on \\\"$1\\\"\",\n \"core-views/duplicates-facet\": \"Duplicates facet\",\n \"core-views/numeric-log-facet\": \"Numeric log facet\",\n \"core-views/bounded-log-facet\": \"1-bounded numeric log facet\",\ndiff --git a/main/webapp/modules/core/scripts/views/data-table/add-q-column-dialog.html b/main/webapp/modules/core/scripts/views/data-table/add-q-column-dialog.html\nindex 2ba2398c2..2b9dc48ca 100644\n--- a/main/webapp/modules/core/scripts/views/data-table/add-q-column-dialog.html\n+++ b/main/webapp/modules/core/scripts/views/data-table/add-q-column-dialog.html\n@@ -5,13 +5,13 @@\n
\n
\n
\n-
\n-
\n+
\n+
\n
\n
\n
\n \n
\ndiff --git a/main/webapp/modules/core/scripts/views/data-table/menu-reconcile.js b/main/webapp/modules/core/scripts/views/data-table/menu-reconcile.js\nindex 2ebbdd8a6..cb89df347 100644\n--- a/main/webapp/modules/core/scripts/views/data-table/menu-reconcile.js\n+++ b/main/webapp/modules/core/scripts/views/data-table/menu-reconcile.js\n@@ -250,7 +250,9 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {\n elmts.cancelButton.text($.i18n('core-buttons/cancel'));\n \n var level = DialogSystem.showDialog(frame);\n- var dismiss = function() { DialogSystem.dismissUntil(level - 1); };\n+\n+ elmts.columnNameInput.focus();\n+ var dismiss = function() { DialogSystem.dismissUntil(level - 1); };\n \n var o = DataTableView.sampleVisibleRows(column);\n \ndiff --git a/main/webapp/package-lock.json b/main/webapp/package-lock.json\nindex 824f48858..75ca6ca17 100644\n--- a/main/webapp/package-lock.json\n+++ b/main/webapp/package-lock.json\n@@ -9,7 +9,7 @@\n \"dependencies\": {\n \"@wikimedia/jquery.i18n\": \"1.0.9\",\n \"datejs-coolite\": \"1.0.0\",\n- \"jquery\": \"3.7.0\",\n+ \"jquery\": \"3.7.1\",\n \"jquery-migrate\": \"3.4.1\",\n \"js-cookie\": \"3.0.5\",\n \"moment\": \"2.29.4\",\n@@ -35,9 +35,9 @@\n \"integrity\": \"sha512-kppYUwn9R2pzsoChLsDlWLtKTwjf5k9Z3fx8CNKjwvhYfpadKIFoL+16dDJvftiXKwT+ixh2PRslZsfzp+1ZVA==\"\n },\n \"node_modules/jquery\": {\n- \"version\": \"3.7.0\",\n- \"resolved\": \"https://registry.npmjs.org/jquery/-/jquery-3.7.0.tgz\",\n- \"integrity\": \"sha512-umpJ0/k8X0MvD1ds0P9SfowREz2LenHsQaxSohMZ5OMNEU2r0tf8pdeEFTHMFxWVxKNyU9rTtK3CWzUCTKJUeQ==\"\n+ \"version\": \"3.7.1\",\n+ \"resolved\": \"https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz\",\n+ \"integrity\": \"sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==\"\n },\n \"node_modules/jquery-migrate\": {\n \"version\": \"3.4.1\",\n@@ -94,9 +94,9 @@\n \"integrity\": \"sha512-kppYUwn9R2pzsoChLsDlWLtKTwjf5k9Z3fx8CNKjwvhYfpadKIFoL+16dDJvftiXKwT+ixh2PRslZsfzp+1ZVA==\"\n },\n \"jquery\": {\n- \"version\": \"3.7.0\",\n- \"resolved\": \"https://registry.npmjs.org/jquery/-/jquery-3.7.0.tgz\",\n- \"integrity\": \"sha512-umpJ0/k8X0MvD1ds0P9SfowREz2LenHsQaxSohMZ5OMNEU2r0tf8pdeEFTHMFxWVxKNyU9rTtK3CWzUCTKJUeQ==\"\n+ \"version\": \"3.7.1\",\n+ \"resolved\": \"https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz\",\n+ \"integrity\": \"sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==\"\n },\n \"jquery-migrate\": {\n \"version\": \"3.4.1\",\ndiff --git a/main/webapp/package.json b/main/webapp/package.json\nindex 52f8ccdc4..44211bc1b 100644\n--- a/main/webapp/package.json\n+++ b/main/webapp/package.json\n@@ -12,7 +12,7 @@\n \"dependencies\": {\n \"@wikimedia/jquery.i18n\": \"1.0.9\",\n \"datejs-coolite\": \"1.0.0\",\n- \"jquery\": \"3.7.0\",\n+ \"jquery\": \"3.7.1\",\n \"jquery-migrate\": \"3.4.1\",\n \"js-cookie\": \"3.0.5\",\n \"moment\": \"2.29.4\",\ndiff --git a/pom.xml b/pom.xml\nindex 4f5ef1c2d..8b60e5d7d 100644\n--- a/pom.xml\n+++ b/pom.xml\n@@ -108,7 +108,7 @@\n 4.5.14\n 1.2.3\n 1.9.3\n- 5.4.0\n+ 5.5.0\n \n \n 3.3.0\n", "test_patch": "diff --git a/main/tests/cypress/cypress/e2e/project/grid/column/reconcile/add_entity_identifiers.cy.js b/main/tests/cypress/cypress/e2e/project/grid/column/reconcile/add_entity_identifiers.cy.js\nindex 3686d4876..7f621a966 100644\n--- a/main/tests/cypress/cypress/e2e/project/grid/column/reconcile/add_entity_identifiers.cy.js\n+++ b/main/tests/cypress/cypress/e2e/project/grid/column/reconcile/add_entity_identifiers.cy.js\n@@ -20,10 +20,10 @@ describe('Add entity identifiers', () => {\n // check the dialog, enter a new column name \"id_column\"\n cy.get('.dialog-container .dialog-header').should(\n 'to.contain',\n- 'Add column containing entity identifiers on species'\n+ 'Add column containing entity identifiers on \"species\"'\n );\n cy.get('.dialog-container .dialog-body input').type('id_column');\n- cy.get('.dialog-container .dialog-footer input').contains('OK').click();\n+ cy.get('.dialog-container .dialog-footer button').contains('OK').click();\n \n // Check the cells content for the new column\n cy.assertCellEquals(0, 'id_column', '2253634'); // untouched\ndiff --git a/main/tests/cypress/package.json b/main/tests/cypress/package.json\nindex bb2544479..9e190c38d 100644\n--- a/main/tests/cypress/package.json\n+++ b/main/tests/cypress/package.json\n@@ -20,10 +20,10 @@\n \"cypress-file-upload\": \"^5.0.8\"\n },\n \"devDependencies\": {\n- \"eslint\": \"^8.47.0\",\n+ \"eslint\": \"^8.48.0\",\n \"eslint-config-google\": \"^0.14.0\",\n \"eslint-config-prettier\": \"^9.0.0\",\n \"eslint-plugin-cypress\": \"^2.14.0\",\n- \"prettier\": \"3.0.2\"\n+ \"prettier\": \"3.0.3\"\n }\n }\ndiff --git a/main/tests/cypress/yarn.lock b/main/tests/cypress/yarn.lock\nindex 74b9f5efc..116e2bbbf 100644\n--- a/main/tests/cypress/yarn.lock\n+++ b/main/tests/cypress/yarn.lock\n@@ -66,10 +66,10 @@\n minimatch \"^3.1.2\"\n strip-json-comments \"^3.1.1\"\n \n-\"@eslint/js@^8.47.0\":\n- version \"8.47.0\"\n- resolved \"https://registry.yarnpkg.com/@eslint/js/-/js-8.47.0.tgz#5478fdf443ff8158f9de171c704ae45308696c7d\"\n- integrity sha512-P6omY1zv5MItm93kLM8s2vr1HICJH8v0dvddDhysbIuZ+vcjOHg5Zbkf1mTkcmi2JA9oBG2anOkRnW8WJTS8Og==\n+\"@eslint/js@8.48.0\":\n+ version \"8.48.0\"\n+ resolved \"https://registry.yarnpkg.com/@eslint/js/-/js-8.48.0.tgz#642633964e217905436033a2bd08bf322849b7fb\"\n+ integrity sha512-ZSjtmelB7IJfWD2Fvb7+Z+ChTIKWq6kjda95fLcQKNS5aheVHn4IkfgRQE3sIIzTcSLwLcLZUD9UBt+V7+h+Pw==\n \n \"@humanwhocodes/config-array@^0.11.10\":\n version \"0.11.10\"\n@@ -590,15 +590,15 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4\n resolved \"https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800\"\n integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==\n \n-eslint@^8.47.0:\n- version \"8.47.0\"\n- resolved \"https://registry.yarnpkg.com/eslint/-/eslint-8.47.0.tgz#c95f9b935463fb4fad7005e626c7621052e90806\"\n- integrity sha512-spUQWrdPt+pRVP1TTJLmfRNJJHHZryFmptzcafwSvHsceV81djHOdnEeDmkdotZyLNjDhrOasNK8nikkoG1O8Q==\n+eslint@^8.48.0:\n+ version \"8.48.0\"\n+ resolved \"https://registry.yarnpkg.com/eslint/-/eslint-8.48.0.tgz#bf9998ba520063907ba7bfe4c480dc8be03c2155\"\n+ integrity sha512-sb6DLeIuRXxeM1YljSe1KEx9/YYeZFQWcV8Rq9HfigmdDEugjLEVEa1ozDjL6YDjBpQHPJxJzze+alxi4T3OLg==\n dependencies:\n \"@eslint-community/eslint-utils\" \"^4.2.0\"\n \"@eslint-community/regexpp\" \"^4.6.1\"\n \"@eslint/eslintrc\" \"^2.1.2\"\n- \"@eslint/js\" \"^8.47.0\"\n+ \"@eslint/js\" \"8.48.0\"\n \"@humanwhocodes/config-array\" \"^0.11.10\"\n \"@humanwhocodes/module-importer\" \"^1.0.1\"\n \"@nodelib/fs.walk\" \"^1.2.8\"\n@@ -1303,10 +1303,10 @@ prelude-ls@^1.2.1:\n resolved \"https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz\"\n integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==\n \n-prettier@3.0.2:\n- version \"3.0.2\"\n- resolved \"https://registry.yarnpkg.com/prettier/-/prettier-3.0.2.tgz#78fcecd6d870551aa5547437cdae39d4701dca5b\"\n- integrity sha512-o2YR9qtniXvwEZlOKbveKfDQVyqxbEIWn48Z8m3ZJjBjcCmUy3xZGIv+7AkaeuaTr6yPXJjwv07ZWlsWbEy1rQ==\n+prettier@3.0.3:\n+ version \"3.0.3\"\n+ resolved \"https://registry.yarnpkg.com/prettier/-/prettier-3.0.3.tgz#432a51f7ba422d1469096c0fdc28e235db8f9643\"\n+ integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==\n \n pretty-bytes@^5.6.0:\n version \"5.6.0\"\ndiff --git a/main/tests/data/csv-with-bom.csv b/main/tests/data/csv-with-bom.csv\nnew file mode 100644\nindex 000000000..bdb3bcc64\n--- /dev/null\n+++ b/main/tests/data/csv-with-bom.csv\n@@ -0,0 +1,3 @@\n+ColA,ColB\n+A1,B1\n+A2,B2\n\\ No newline at end of file\ndiff --git a/main/tests/server/src/com/google/refine/importing/EncodingGuesserTests.java b/main/tests/server/src/com/google/refine/importing/EncodingGuesserTests.java\nindex 73d60f011..d5e1a060a 100644\n--- a/main/tests/server/src/com/google/refine/importing/EncodingGuesserTests.java\n+++ b/main/tests/server/src/com/google/refine/importing/EncodingGuesserTests.java\n@@ -15,7 +15,7 @@ import com.google.refine.util.ParsingUtilities;\n \n public class EncodingGuesserTests {\n \n- // Guessing isn't as reliable for single-byte encodings, so we focus on a few multi-byte\n+ // Guessing isn't as reliable for single-byte encodings, so we focus on a few multibyte\n // non-UTF8 encodings which are still in use (but <1% prevalence on web)\n static String[] ENCODINGS = {\n \"big5\",\n@@ -25,7 +25,7 @@ public class EncodingGuesserTests {\n };\n \n private static File getTestDir() {\n- String dir = ClassLoader.getSystemResource(ENCODINGS[0] + \".html\").getPath();\n+ String dir = ClassLoader.getSystemResource(ENCODINGS[0] + \".txt\").getPath();\n dir = dir.substring(0, dir.lastIndexOf('/'));\n return new File(dir);\n }\n@@ -46,21 +46,29 @@ public class EncodingGuesserTests {\n public void testEncodingGuesser() throws IOException {\n \n for (String encoding : ENCODINGS) {\n- ImportingJob job = new ImportingJobStub();\n- ObjectNode config = job.getOrCreateDefaultConfig();\n- ObjectNode filesObj = ParsingUtilities.evaluateJsonStringToObjectNode(\n- String.format(\"{ \\\"files\\\": [ {\\\"location\\\": \\\"%s.txt\\\"}]}\", encoding));\n- JSONUtilities.safePut(config, \"retrievalRecord\", filesObj);\n-\n- EncodingGuesser.guess(job);\n-\n- ObjectNode retrievalRecord = job.getRetrievalRecord();\n- assertNotNull(retrievalRecord);\n- ArrayNode fileRecords = JSONUtilities.getArray(retrievalRecord, \"files\");\n- assertNotNull(fileRecords);\n- assertEquals(fileRecords.size(), 1);\n- ObjectNode record = JSONUtilities.getObjectElement(fileRecords, 0);\n- assertEquals(JSONUtilities.getString(record, \"encoding\", null).toLowerCase(), encoding);\n+ checkEncoding(encoding + \".txt\", encoding);\n }\n+\n+ checkEncoding(\"example-latin1.tsv\", \"windows-1252\"); // close enough - these overlap a lot\n+ checkEncoding(\"example-utf8.tsv\", \"utf-8\");\n+ checkEncoding(\"csv-with-bom.csv\", \"utf-8-bom\");\n+ }\n+\n+ private void checkEncoding(String filename, String encoding) throws IOException {\n+ ImportingJob job = new ImportingJobStub();\n+ ObjectNode config = job.getOrCreateDefaultConfig();\n+ ObjectNode filesObj = ParsingUtilities.evaluateJsonStringToObjectNode(\n+ String.format(\"{ \\\"files\\\": [ {\\\"location\\\": \\\"%s\\\"}]}\", filename));\n+ JSONUtilities.safePut(config, \"retrievalRecord\", filesObj);\n+\n+ EncodingGuesser.guess(job);\n+\n+ ObjectNode retrievalRecord = job.getRetrievalRecord();\n+ assertNotNull(retrievalRecord);\n+ ArrayNode fileRecords = JSONUtilities.getArray(retrievalRecord, \"files\");\n+ assertNotNull(fileRecords);\n+ assertEquals(fileRecords.size(), 1);\n+ ObjectNode record = JSONUtilities.getObjectElement(fileRecords, 0);\n+ assertEquals(JSONUtilities.getString(record, \"encoding\", null).toLowerCase(), encoding);\n }\n }\ndiff --git a/main/tests/server/src/com/google/refine/importing/ImportingUtilitiesTests.java b/main/tests/server/src/com/google/refine/importing/ImportingUtilitiesTests.java\nindex 19fc71ce8..0de1291b2 100644\n--- a/main/tests/server/src/com/google/refine/importing/ImportingUtilitiesTests.java\n+++ b/main/tests/server/src/com/google/refine/importing/ImportingUtilitiesTests.java\n@@ -56,7 +56,6 @@ import org.apache.hc.client5.http.entity.mime.MultipartEntityBuilder;\n import org.apache.hc.client5.http.entity.mime.StringBody;\n import org.apache.hc.core5.http.ContentType;\n import org.apache.hc.core5.http.HttpEntity;\n-import org.checkerframework.checker.units.qual.A;\n import org.testng.Assert;\n import org.testng.annotations.BeforeMethod;\n import org.testng.annotations.Test;\n@@ -110,7 +109,7 @@ public class ImportingUtilitiesTests extends ImporterTest {\n File dirA = new File(tempDir, \"a\");\n dirA.mkdir();\n File conflicting = new File(dirA, \"dummy\");\n- conflicting.createNewFile();\n+ Assert.assertTrue(conflicting.createNewFile());\n \n File allocated = ImportingUtilities.allocateFile(dirA, \".././a/dummy\");\n Assert.assertEquals(allocated, new File(dirA, \"dummy-2\"));\n", "FAIL_TO_PASS": [], "PASS_TO_PASS": [], "PR_Body": "Fixes #5998\r\n\r\nChanges proposed in this pull request:\r\n- Add quotes (\") around column name in title.\r\n- Focus on text input when dialog opens.\r\n- Change \"Submit Query\" to \"OK.\"\r\n\r\nAfter:\r\n\r\n\r\n", "PR_Title": "Issue 5998 entity identifiers dialog improvements", "docker_image": "xinzhou1997/swe_rpg_java:OpenRefine__OpenRefine-6021_linux", "log_parser": "def parser(log: str) -> dict[str, str]:\n import re\n import xml.etree.ElementTree as ET\n\n results: dict[str, str] = {}\n\n # Helper: merge statuses with precedence fail > skip > pass\n def merge_status(name: str, new_status: str):\n if new_status not in (\"pass\", \"fail\", \"skip\"):\n return\n old_status = results.get(name)\n if old_status is None:\n results[name] = new_status\n return\n if old_status == new_status:\n return\n # Precedence: fail > skip > pass\n priority = {\"fail\": 3, \"skip\": 2, \"pass\": 1}\n if priority[new_status] > priority[old_status]:\n results[name] = new_status\n\n # -----------------------\n # XML-based parsing pass\n # -----------------------\n\n # Non-greedy patterns for JUnit/TestNG XML blocks\n xml_pattern = re.compile(\n r\"(|)\",\n re.IGNORECASE,\n )\n\n for match in xml_pattern.finditer(log):\n xml_block = match.group(1)\n try:\n root = ET.fromstring(xml_block)\n except ET.ParseError:\n # Skip this block but continue with others\n continue\n\n tag_lower = root.tag.lower()\n\n # Handle TestNG summary reports ()\n if tag_lower.endswith(\"testng-results\"):\n # Look for all test-method elements anywhere\n for tm in root.findall(\".//test-method\"):\n # Skip configuration methods\n if tm.attrib.get(\"is-config\", \"false\").lower() == \"true\":\n continue\n name = tm.attrib.get(\"name\", \"\")\n if not name:\n continue\n # Try to get class name from surrounding element\n class_elem = tm.find(\"..\")\n class_name = \"\"\n # xml.etree doesn't support parent lookup directly, so search ancestors:\n # We instead search for the nearest ancestor manually:\n # Since parent lookup is tricky, fall back to the attribute 'class' on if present\n # or to a surrounding element found via xpath with name match, which is usually enough.\n # Re-parse with a simpler loop using suites/tests/classes for better class name resolution.\n for suite in root.findall(\".//suite\"):\n for test in suite.findall(\".//test\"):\n for clazz in test.findall(\".//class\"):\n class_name = clazz.attrib.get(\"name\", \"\")\n for tm in clazz.findall(\"test-method\"):\n if tm.attrib.get(\"is-config\", \"false\").lower() == \"true\":\n continue\n m_name = tm.attrib.get(\"name\", \"\")\n if not m_name:\n continue\n fq_name = f\"{class_name}.{m_name}\" if class_name else m_name\n status_attr = tm.attrib.get(\"status\", \"\").upper()\n # Map TestNG status to our statuses\n if status_attr == \"PASS\":\n status = \"pass\"\n elif status_attr in (\"FAIL\", \"FAILURE\"):\n status = \"fail\"\n elif status_attr == \"SKIP\":\n status = \"skip\"\n else:\n # Fallback: if there is an exception element, mark as fail; else pass\n if tm.find(\".//exception\") is not None:\n status = \"fail\"\n else:\n status = \"pass\"\n merge_status(fq_name, status)\n continue\n\n # Handle JUnit-style reports\n if tag_lower.endswith(\"testsuite\"):\n for tc in root.findall(\".//testcase\"):\n class_name = tc.attrib.get(\"classname\", \"\")\n name = tc.attrib.get(\"name\", \"\")\n if not name:\n continue\n fq_name = f\"{class_name}.{name}\" if class_name else name\n\n # Determine status via children\n status = \"pass\"\n if tc.find(\"skipped\") is not None:\n status = \"skip\"\n elif tc.find(\"failure\") is not None or tc.find(\"error\") is not None:\n status = \"fail\"\n\n merge_status(fq_name, status)\n\n # ---------------------------\n # Text-based parsing fallback\n # ---------------------------\n\n # Compile regexes for common frameworks\n\n # pytest: path::test_name STATUS\n pytest_re = re.compile(\n r\"^(?P\\S+::\\S+)\\s+\"\n r\"(?PPASSED|FAILED|SKIPPED|ERROR|XFAILED|XPASSED)\\b\"\n )\n\n # unittest / nose: ClassName.test_method ... ok/FAIL/ERROR/skipped\n unittest_re = re.compile(\n r\"^(?P[A-Za-z_]\\w*)\\.(?P[A-Za-z_]\\w*)\\s+\\.\\.\\.\\s+\"\n r\"(?Pok|FAIL|ERROR|skipped)\\b\"\n )\n\n # go test: --- STATUS: TestName\n gotest_re = re.compile(\n r\"^---\\s+(?PPASS|FAIL|SKIP):\\s+(?P\\S+)\"\n )\n\n # Jest-like symbol lines: ✓/✕/○ test name\n jest_symbol_re = re.compile(r\"^\\s*([✓✕○])\\s+(?P.+)\")\n\n # Map various raw statuses to our canonical ones\n def map_status(raw: str) -> str | None:\n r = raw.upper()\n if r in (\"PASSED\", \"OK\", \"XPASSED\", \"PASS\"):\n return \"pass\"\n if r in (\"FAILED\", \"FAIL\", \"ERROR\", \"XFAILED\"):\n return \"fail\"\n if r in (\"SKIPPED\", \"SKIP\", \"SKIPPED (EXPECTED FAILURE)\"):\n return \"skip\"\n return None\n\n for line in log.splitlines():\n line = line.rstrip(\"\\n\")\n\n # pytest\n m = pytest_re.match(line)\n if m:\n name = m.group(\"name\")\n status = map_status(m.group(\"status\"))\n if status:\n merge_status(name, status)\n continue\n\n # unittest\n m = unittest_re.match(line)\n if m:\n name = f\"{m.group('class')}.{m.group('method')}\"\n status = map_status(m.group(\"status\"))\n if status:\n merge_status(name, status)\n continue\n\n # go test\n m = gotest_re.match(line)\n if m:\n name = m.group(\"name\")\n status = map_status(m.group(\"status\"))\n if status:\n merge_status(name, status)\n continue\n\n # Jest symbols\n m = jest_symbol_re.match(line)\n if m:\n symbol = m.group(1)\n name = m.group(\"name\").strip()\n if symbol == \"✓\":\n status = \"pass\"\n elif symbol == \"✕\":\n status = \"fail\"\n elif symbol == \"○\":\n status = \"skip\"\n else:\n status = None\n if status:\n merge_status(name, status)\n continue\n\n return results\n", "test_cmds": ["export _JAVA_OPTIONS=\"-Djava.net.preferIPv6Addresses=false\"", "mvn -B test"], "rebuild_cmds": ["export DEBIAN_FRONTEND=noninteractive", "apt-get update -qq", "apt-get install -y -qq nodejs npm", "./refine build"], "issues": [{"issue_number": 6021, "issue_title": "Issue 5998 entity identifiers dialog improvements", "issue_body": "Fixes #5998\r\n\r\nChanges proposed in this pull request:\r\n- Add quotes (\") around column name in title.\r\n- Focus on text input when dialog opens.\r\n- Change \"Submit Query\" to \"OK.\"\r\n\r\nAfter:\r\n\r\n\r\n"}], "print_cmds": ["find . -maxdepth 6 -path '*surefire-reports/*.xml' -print0 | xargs -0 -I {} sh -c 'echo \"===== {} =====\"; cat {}'"], "working_dir": "/OpenRefine"}
{"repo": "OpenRefine/OpenRefine", "instance_id": "OpenRefine__OpenRefine-6483", "base_commit": "767e257c9f9d81024a6c0a3bde2b73f3cea53587", "patch": "diff --git a/extensions/gdata/pom.xml b/extensions/gdata/pom.xml\nindex 857e0538a..ea722b947 100644\n--- a/extensions/gdata/pom.xml\n+++ b/extensions/gdata/pom.xml\n@@ -89,7 +89,7 @@\n \n com.google.apis\n google-api-services-sheets\n- v4-rev20240312-2.0.0\n+ v4-rev20240319-2.0.0\n \n \n com.fasterxml.jackson.core\ndiff --git a/extensions/wikibase/module/scripts/dialogs/wikibase-dialog.html b/extensions/wikibase/module/scripts/dialogs/wikibase-dialog.html\nindex 80a26a324..3c32eb052 100644\n--- a/extensions/wikibase/module/scripts/dialogs/wikibase-dialog.html\n+++ b/extensions/wikibase/module/scripts/dialogs/wikibase-dialog.html\n@@ -14,8 +14,8 @@\n \n
\n \n
\n
\ndiff --git a/main/src/com/google/refine/model/Recon.java b/main/src/com/google/refine/model/Recon.java\nindex 54fc9fe62..4875bff38 100644\n--- a/main/src/com/google/refine/model/Recon.java\n+++ b/main/src/com/google/refine/model/Recon.java\n@@ -214,6 +214,7 @@ public class Recon implements HasFields {\n candidates = new ArrayList(3);\n }\n candidates.add(candidate);\n+ error = null;\n }\n \n @JsonIgnore\n@@ -412,11 +413,11 @@ public class Recon implements HasFields {\n this.judgment = judgment != null ? judgment : Judgment.None;\n this.match = match;\n this.error = error;\n- if (error != null && match != null) {\n- throw new IllegalArgumentException(\"there is a match hence no error\");\n- }\n this.features = features != null ? features : new Object[Feature_max];\n this.candidates = candidates != null ? candidates : new ArrayList<>();\n+ if (error != null && !this.candidates.isEmpty()) {\n+ throw new IllegalArgumentException(\"Recon deserialization: inconsistent state - error & candidates not allowed together\");\n+ }\n this.service = service != null ? service : \"unknown\";\n this.identifierSpace = identifierSpace;\n this.schemaSpace = schemaSpace;\ndiff --git a/main/webapp/modules/core/scripts/dialogs/column-reordering-dialog.html b/main/webapp/modules/core/scripts/dialogs/column-reordering-dialog.html\nindex 4b3e7819f..cfa397ad7 100644\n--- a/main/webapp/modules/core/scripts/dialogs/column-reordering-dialog.html\n+++ b/main/webapp/modules/core/scripts/dialogs/column-reordering-dialog.html\n@@ -15,7 +15,7 @@\n \n
\n \n \n\\ No newline at end of file\ndiff --git a/main/webapp/modules/core/scripts/views/data-table/copy-recon-across-columns-dialog.html b/main/webapp/modules/core/scripts/views/data-table/copy-recon-across-columns-dialog.html\nindex 5bbc0878e..777589ec8 100644\n--- a/main/webapp/modules/core/scripts/views/data-table/copy-recon-across-columns-dialog.html\n+++ b/main/webapp/modules/core/scripts/views/data-table/copy-recon-across-columns-dialog.html\n@@ -31,7 +31,7 @@\n \n \n \n \ndiff --git a/main/webapp/modules/core/scripts/views/data-table/key-value-columnize.html b/main/webapp/modules/core/scripts/views/data-table/key-value-columnize.html\nindex ae3bcc7bd..6280eb4bc 100644\n--- a/main/webapp/modules/core/scripts/views/data-table/key-value-columnize.html\n+++ b/main/webapp/modules/core/scripts/views/data-table/key-value-columnize.html\n@@ -16,7 +16,7 @@\n \n \n \n \ndiff --git a/main/webapp/modules/core/scripts/views/data-table/rename-column.html b/main/webapp/modules/core/scripts/views/data-table/rename-column.html\nindex 5dbf32b68..c635671bb 100644\n--- a/main/webapp/modules/core/scripts/views/data-table/rename-column.html\n+++ b/main/webapp/modules/core/scripts/views/data-table/rename-column.html\n@@ -10,7 +10,7 @@\n \n \n \n \ndiff --git a/main/webapp/modules/core/scripts/views/data-table/replace-dialog.html b/main/webapp/modules/core/scripts/views/data-table/replace-dialog.html\nindex 43d3e0247..4cba5c015 100644\n--- a/main/webapp/modules/core/scripts/views/data-table/replace-dialog.html\n+++ b/main/webapp/modules/core/scripts/views/data-table/replace-dialog.html\n@@ -53,7 +53,7 @@\n \n \n \n \ndiff --git a/main/webapp/modules/core/scripts/views/data-table/sorting-criterion-dialog.html b/main/webapp/modules/core/scripts/views/data-table/sorting-criterion-dialog.html\nindex 831af50b9..523f293a6 100644\n--- a/main/webapp/modules/core/scripts/views/data-table/sorting-criterion-dialog.html\n+++ b/main/webapp/modules/core/scripts/views/data-table/sorting-criterion-dialog.html\n@@ -47,7 +47,7 @@\n \n \n \n \ndiff --git a/main/webapp/modules/core/scripts/views/data-table/split-column-dialog.html b/main/webapp/modules/core/scripts/views/data-table/split-column-dialog.html\nindex cdcaaf7b6..46f9ef6c0 100644\n--- a/main/webapp/modules/core/scripts/views/data-table/split-column-dialog.html\n+++ b/main/webapp/modules/core/scripts/views/data-table/split-column-dialog.html\n@@ -52,7 +52,7 @@\n \n \n \n \ndiff --git a/main/webapp/modules/core/scripts/views/data-table/split-multi-valued-cells-dialog.html b/main/webapp/modules/core/scripts/views/data-table/split-multi-valued-cells-dialog.html\nindex f544d3bd5..36767bc15 100644\n--- a/main/webapp/modules/core/scripts/views/data-table/split-multi-valued-cells-dialog.html\n+++ b/main/webapp/modules/core/scripts/views/data-table/split-multi-valued-cells-dialog.html\n@@ -55,7 +55,7 @@\n \n \n \n \ndiff --git a/main/webapp/modules/core/scripts/views/data-table/text-transform-dialog.html b/main/webapp/modules/core/scripts/views/data-table/text-transform-dialog.html\nindex 87cf5bfdd..9c27e8ebf 100644\n--- a/main/webapp/modules/core/scripts/views/data-table/text-transform-dialog.html\n+++ b/main/webapp/modules/core/scripts/views/data-table/text-transform-dialog.html\n@@ -21,7 +21,7 @@\n \n \n \n \ndiff --git a/main/webapp/modules/core/scripts/views/data-table/transpose-columns-into-rows.html b/main/webapp/modules/core/scripts/views/data-table/transpose-columns-into-rows.html\nindex 0e1514a13..56f23b911 100644\n--- a/main/webapp/modules/core/scripts/views/data-table/transpose-columns-into-rows.html\n+++ b/main/webapp/modules/core/scripts/views/data-table/transpose-columns-into-rows.html\n@@ -62,7 +62,7 @@\n \n \n \n \ndiff --git a/main/webapp/modules/core/scripts/views/data-table/warn-of-pending-sort.html b/main/webapp/modules/core/scripts/views/data-table/warn-of-pending-sort.html\nindex 5cb4a77fe..f80aac8f1 100644\n--- a/main/webapp/modules/core/scripts/views/data-table/warn-of-pending-sort.html\n+++ b/main/webapp/modules/core/scripts/views/data-table/warn-of-pending-sort.html\n@@ -10,7 +10,7 @@\n \n \n \n \ndiff --git a/main/webapp/modules/core/styles/reconciliation/recon-dialog.css b/main/webapp/modules/core/styles/reconciliation/recon-dialog.css\nindex e035a75ea..24dec397e 100644\n--- a/main/webapp/modules/core/styles/reconciliation/recon-dialog.css\n+++ b/main/webapp/modules/core/styles/reconciliation/recon-dialog.css\n@@ -104,7 +104,6 @@ a.recon-dialog-service-selector-remove {\n }\n .dialog-footer {\n display: flex;\n- justify-content: space-between;\n }\n \n .button-left {\ndiff --git a/pom.xml b/pom.xml\nindex 656dd1aaa..3c3637880 100644\n--- a/pom.xml\n+++ b/pom.xml\n@@ -333,7 +333,7 @@\n \n org.apache.maven.plugins\n maven-gpg-plugin\n- 3.2.1\n+ 3.2.2\n \n \n sign-artifacts\n", "test_patch": "diff --git a/main/tests/server/src/com/google/refine/model/ReconTests.java b/main/tests/server/src/com/google/refine/model/ReconTests.java\nindex 9d1c1ad5c..3e038494b 100644\n--- a/main/tests/server/src/com/google/refine/model/ReconTests.java\n+++ b/main/tests/server/src/com/google/refine/model/ReconTests.java\n@@ -34,6 +34,7 @@ import java.util.Set;\n import java.util.stream.Collectors;\n import java.util.stream.LongStream;\n \n+import com.fasterxml.jackson.databind.exc.ValueInstantiationException;\n import org.testng.Assert;\n import org.testng.annotations.Test;\n \n@@ -123,6 +124,45 @@ public class ReconTests {\n TestUtils.isSerializedTo(r, json);\n }\n \n+ @Test\n+ public void testsErrorWithMatchSerialization() throws Exception {\n+ String json = \"{\\\"id\\\":1533651559492945033,\"\n+ + \"\\\"service\\\":\\\"https://tools.wmflabs.org/openrefine-wikidata/en/api\\\",\"\n+ + \"\\\"identifierSpace\\\":\\\"http://www.wikidata.org/entity/\\\",\"\n+ + \"\\\"schemaSpace\\\":\\\"http://www.wikidata.org/prop/direct/\\\",\"\n+ + \"\\\"j\\\":\\\"matched\\\",\"\n+ + \"\\\"e\\\":\\\"fictional error message\\\",\"\n+ + \"\\\"m\\\":{\"\n+ + \" \\\"id\\\":\\\"Q2892284\\\",\"\n+ + \" \\\"name\\\":\\\"Baylor College of Medicine\\\",\"\n+ + \" \\\"score\\\":98.57142857142858,\"\n+ + \" \\\"types\\\":[\\\"Q16917\\\",\\\"Q23002054\\\",\\\"Q494230\\\"]\"\n+ + \"}\"\n+ + \"}\";\n+ Recon r = Recon.loadStreaming(json);\n+ Assert.assertEquals(r.error, \"fictional error message\");\n+ Assert.assertEquals(r.match.id, \"Q2892284\");\n+ TestUtils.isSerializedTo(r, json);\n+ }\n+\n+ @Test\n+ public void testsErrorWithCandidatesDeserialization() throws Exception {\n+ String json = \"{\\\"id\\\":1533651559492945033,\"\n+ + \"\\\"service\\\":\\\"https://tools.wmflabs.org/openrefine-wikidata/en/api\\\",\"\n+ + \"\\\"identifierSpace\\\":\\\"http://www.wikidata.org/entity/\\\",\"\n+ + \"\\\"schemaSpace\\\":\\\"http://www.wikidata.org/prop/direct/\\\",\"\n+ + \"\\\"j\\\":\\\"none\\\",\"\n+ + \"\\\"e\\\":\\\"fictional error message\\\",\"\n+ + \"\\\"c\\\":[{\"\n+ + \" \\\"id\\\":\\\"Q2892284\\\",\"\n+ + \" \\\"name\\\":\\\"Baylor College of Medicine\\\",\"\n+ + \" \\\"score\\\":98.57142857142858,\"\n+ + \" \\\"types\\\":[\\\"Q16917\\\",\\\"Q23002054\\\",\\\"Q494230\\\"]\"\n+ + \"}]\"\n+ + \"}\";\n+ Assert.assertThrows(ValueInstantiationException.class, () -> Recon.loadStreaming(json));\n+ }\n+\n /**\n * Test for issue https://github.com/OpenRefine/OpenRefine/issues/3785. Generating many recon objects within a short\n * amount of time leads to collisions in id generation.\n", "FAIL_TO_PASS": [], "PASS_TO_PASS": [], "PR_Body": "Closes #6464.\r\n", "PR_Title": "Fix recon deserialization error for matched cells", "docker_image": "xinzhou1997/swe_rpg_java:OpenRefine__OpenRefine-6483_linux", "log_parser": "def parser(log: str) -> dict[str, str]:\n import re\n import xml.etree.ElementTree as ET\n\n results: dict[str, str] = {}\n\n # Helper: merge statuses with precedence fail > skip > pass\n def merge_status(name: str, new_status: str):\n if new_status not in (\"pass\", \"fail\", \"skip\"):\n return\n old_status = results.get(name)\n if old_status is None:\n results[name] = new_status\n return\n if old_status == new_status:\n return\n # Precedence: fail > skip > pass\n priority = {\"fail\": 3, \"skip\": 2, \"pass\": 1}\n if priority[new_status] > priority[old_status]:\n results[name] = new_status\n\n # -----------------------\n # XML-based parsing pass\n # -----------------------\n\n # Non-greedy patterns for JUnit/TestNG XML blocks\n xml_pattern = re.compile(\n r\"(|)\",\n re.IGNORECASE,\n )\n\n for match in xml_pattern.finditer(log):\n xml_block = match.group(1)\n try:\n root = ET.fromstring(xml_block)\n except ET.ParseError:\n # Skip this block but continue with others\n continue\n\n tag_lower = root.tag.lower()\n\n # Handle TestNG summary reports ()\n if tag_lower.endswith(\"testng-results\"):\n # Look for all test-method elements anywhere\n for tm in root.findall(\".//test-method\"):\n # Skip configuration methods\n if tm.attrib.get(\"is-config\", \"false\").lower() == \"true\":\n continue\n name = tm.attrib.get(\"name\", \"\")\n if not name:\n continue\n # Try to get class name from surrounding element\n class_elem = tm.find(\"..\")\n class_name = \"\"\n # xml.etree doesn't support parent lookup directly, so search ancestors:\n # We instead search for the nearest ancestor manually:\n # Since parent lookup is tricky, fall back to the attribute 'class' on if present\n # or to a surrounding element found via xpath with name match, which is usually enough.\n # Re-parse with a simpler loop using suites/tests/classes for better class name resolution.\n for suite in root.findall(\".//suite\"):\n for test in suite.findall(\".//test\"):\n for clazz in test.findall(\".//class\"):\n class_name = clazz.attrib.get(\"name\", \"\")\n for tm in clazz.findall(\"test-method\"):\n if tm.attrib.get(\"is-config\", \"false\").lower() == \"true\":\n continue\n m_name = tm.attrib.get(\"name\", \"\")\n if not m_name:\n continue\n fq_name = f\"{class_name}.{m_name}\" if class_name else m_name\n status_attr = tm.attrib.get(\"status\", \"\").upper()\n # Map TestNG status to our statuses\n if status_attr == \"PASS\":\n status = \"pass\"\n elif status_attr in (\"FAIL\", \"FAILURE\"):\n status = \"fail\"\n elif status_attr == \"SKIP\":\n status = \"skip\"\n else:\n # Fallback: if there is an exception element, mark as fail; else pass\n if tm.find(\".//exception\") is not None:\n status = \"fail\"\n else:\n status = \"pass\"\n merge_status(fq_name, status)\n continue\n\n # Handle JUnit-style reports\n if tag_lower.endswith(\"testsuite\"):\n for tc in root.findall(\".//testcase\"):\n class_name = tc.attrib.get(\"classname\", \"\")\n name = tc.attrib.get(\"name\", \"\")\n if not name:\n continue\n fq_name = f\"{class_name}.{name}\" if class_name else name\n\n # Determine status via children\n status = \"pass\"\n if tc.find(\"skipped\") is not None:\n status = \"skip\"\n elif tc.find(\"failure\") is not None or tc.find(\"error\") is not None:\n status = \"fail\"\n\n merge_status(fq_name, status)\n\n # ---------------------------\n # Text-based parsing fallback\n # ---------------------------\n\n # Compile regexes for common frameworks\n\n # pytest: path::test_name STATUS\n pytest_re = re.compile(\n r\"^(?P\\S+::\\S+)\\s+\"\n r\"(?PPASSED|FAILED|SKIPPED|ERROR|XFAILED|XPASSED)\\b\"\n )\n\n # unittest / nose: ClassName.test_method ... ok/FAIL/ERROR/skipped\n unittest_re = re.compile(\n r\"^(?P[A-Za-z_]\\w*)\\.(?P[A-Za-z_]\\w*)\\s+\\.\\.\\.\\s+\"\n r\"(?Pok|FAIL|ERROR|skipped)\\b\"\n )\n\n # go test: --- STATUS: TestName\n gotest_re = re.compile(\n r\"^---\\s+(?PPASS|FAIL|SKIP):\\s+(?P\\S+)\"\n )\n\n # Jest-like symbol lines: ✓/✕/○ test name\n jest_symbol_re = re.compile(r\"^\\s*([✓✕○])\\s+(?P.+)\")\n\n # Map various raw statuses to our canonical ones\n def map_status(raw: str) -> str | None:\n r = raw.upper()\n if r in (\"PASSED\", \"OK\", \"XPASSED\", \"PASS\"):\n return \"pass\"\n if r in (\"FAILED\", \"FAIL\", \"ERROR\", \"XFAILED\"):\n return \"fail\"\n if r in (\"SKIPPED\", \"SKIP\", \"SKIPPED (EXPECTED FAILURE)\"):\n return \"skip\"\n return None\n\n for line in log.splitlines():\n line = line.rstrip(\"\\n\")\n\n # pytest\n m = pytest_re.match(line)\n if m:\n name = m.group(\"name\")\n status = map_status(m.group(\"status\"))\n if status:\n merge_status(name, status)\n continue\n\n # unittest\n m = unittest_re.match(line)\n if m:\n name = f\"{m.group('class')}.{m.group('method')}\"\n status = map_status(m.group(\"status\"))\n if status:\n merge_status(name, status)\n continue\n\n # go test\n m = gotest_re.match(line)\n if m:\n name = m.group(\"name\")\n status = map_status(m.group(\"status\"))\n if status:\n merge_status(name, status)\n continue\n\n # Jest symbols\n m = jest_symbol_re.match(line)\n if m:\n symbol = m.group(1)\n name = m.group(\"name\").strip()\n if symbol == \"✓\":\n status = \"pass\"\n elif symbol == \"✕\":\n status = \"fail\"\n elif symbol == \"○\":\n status = \"skip\"\n else:\n status = None\n if status:\n merge_status(name, status)\n continue\n\n return results\n", "test_cmds": ["export _JAVA_OPTIONS=\"-Djava.net.preferIPv6Addresses=false\"", "mvn -B test"], "rebuild_cmds": ["export DEBIAN_FRONTEND=noninteractive", "apt-get update -qq", "apt-get install -y -qq nodejs npm", "./refine build"], "issues": [{"issue_number": 6483, "issue_title": "Fix recon deserialization error for matched cells", "issue_body": "Closes #6464.\r\n"}], "print_cmds": ["find . -maxdepth 6 -path '*surefire-reports/*.xml' -print0 | xargs -0 -I {} sh -c 'echo \"===== {} =====\"; cat {}'"], "working_dir": "/OpenRefine"}
{"repo": "OpenRefine/OpenRefine", "instance_id": "OpenRefine__OpenRefine-6285", "base_commit": "0dd9bd2022c08de59b877ef2f627005aac70267e", "patch": "diff --git a/benchmark/pom.xml b/benchmark/pom.xml\nindex f8fcae8a2..5858d30a1 100644\n--- a/benchmark/pom.xml\n+++ b/benchmark/pom.xml\n@@ -149,7 +149,7 @@\n \n \n maven-surefire-plugin\n- 3.2.3\n+ 3.2.5\n \n true\n \ndiff --git a/extensions/database/pom.xml b/extensions/database/pom.xml\nindex 0a294e654..02c073747 100644\n--- a/extensions/database/pom.xml\n+++ b/extensions/database/pom.xml\n@@ -105,7 +105,7 @@\n \n org.xerial\n sqlite-jdbc\n- 3.44.1.0\n+ 3.45.0.0\n \n \n com.fasterxml.jackson.core\ndiff --git a/extensions/gdata/module/langs/translation-he.json b/extensions/gdata/module/langs/translation-he.json\nindex 23ed5de78..cac098096 100644\n--- a/extensions/gdata/module/langs/translation-he.json\n+++ b/extensions/gdata/module/langs/translation-he.json\n@@ -48,5 +48,7 @@\n \"gdata-exporter/export-to-google-drive\": \"מיזם OpenRefine שומר בארכיון ל־Google Drive…\",\n \"gdata-import/re-sign-in-another\": \"כניסה עם חשבון אחר\",\n \"gdata-import/please-signin\": \"נא להיכנס כדי לאשר את הגישה לנתונים שלך ב־Google\",\n- \"gdata-parsing/disable-auto-preview\": \"השבתת תצוגה מקדימה אוטומטית\"\n+ \"gdata-parsing/disable-auto-preview\": \"השבתת תצוגה מקדימה אוטומטית\",\n+ \"gdata-import/please-name-project\": \"נא לתת שם למיזם.\",\n+ \"gdata-import/errors\": \"שגיאות:\\n $1\"\n }\ndiff --git a/extensions/gdata/pom.xml b/extensions/gdata/pom.xml\nindex 2ed919c1b..159794763 100644\n--- a/extensions/gdata/pom.xml\n+++ b/extensions/gdata/pom.xml\n@@ -84,7 +84,7 @@\n \n com.google.apis\n google-api-services-drive\n- v3-rev20231128-2.0.0\n+ v3-rev20240110-2.0.0\n \n \n com.google.apis\ndiff --git a/main/resources/com/google/refine/grel/ControlEvalError_he.properties b/main/resources/com/google/refine/grel/ControlEvalError_he.properties\nindex e69de29bb..5715cd62c 100644\n--- a/main/resources/com/google/refine/grel/ControlEvalError_he.properties\n+++ b/main/resources/com/google/refine/grel/ControlEvalError_he.properties\n@@ -0,0 +1,15 @@\n+expects_second_third_args_different={0} מצפה שהארגומנטים השני והשלישי יהיו שמות משתנים שונים\n+foreach_index=הארגומנט הראשון ל־forEachIndex הוא לא מערך או עצם JSON\n+filter=הארגומנט הראשון הוא לא מערך\n+foreach=הארגומנט הראשון ל־forEach הוא לא מערך או עצם JSON\n+\n+\n+# check arguments\n+expects_one_arg={0} מצפה לארגומנט אחד\n+expects_three_args={0} מצפה לשלושה ארגומנטים\n+expects_four_args={0} מצפה לארבעה ארגומנטים\n+expects_second_arg_var_name={0} מצפה שהארגומנט השני יהיה שם משתנה\n+expects_second_arg_index_var_name={0} מצפה שהארגומנט השני יהיה שם המשתנה של המפתח\n+for_range=הארגומנטים הראשון, השני והשלישי של forRange חייבים להיות מספרים\n+expects_five_args={0} מצפה לחמישה ארגומנטים\n+expects_third_arg_element_var_name={0} מצפה שהארגומנט השני יהיה שם המשתנה של הרכיב\ndiff --git a/main/src/com/google/refine/model/Column.java b/main/src/com/google/refine/model/Column.java\nindex 7c456cec6..7dd296055 100644\n--- a/main/src/com/google/refine/model/Column.java\n+++ b/main/src/com/google/refine/model/Column.java\n@@ -55,6 +55,7 @@ public class Column {\n private ReconStats _reconStats;\n \n transient protected Map _precomputes;\n+ private ReconConfig _sourceReconConfig;\n \n @JsonCreator\n public Column(\n@@ -95,6 +96,17 @@ public class Column {\n return _reconConfig;\n }\n \n+ @JsonProperty(\"sourceReconConfig\")\n+ public void setSourceReconConfig(ReconConfig sourceConfig) {\n+ this._sourceReconConfig = sourceConfig;\n+ }\n+\n+ @JsonProperty(\"sourceReconConfig\")\n+ @JsonInclude(Include.NON_NULL)\n+ public ReconConfig getSourceReconConfig() {\n+ return _sourceReconConfig;\n+ }\n+\n @JsonProperty(\"reconStats\")\n public void setReconStats(ReconStats stats) {\n this._reconStats = stats;\ndiff --git a/main/src/com/google/refine/model/changes/DataExtensionChange.java b/main/src/com/google/refine/model/changes/DataExtensionChange.java\nindex 8adbcb9b7..1ba0366b5 100644\n--- a/main/src/com/google/refine/model/changes/DataExtensionChange.java\n+++ b/main/src/com/google/refine/model/changes/DataExtensionChange.java\n@@ -220,6 +220,9 @@ public class DataExtensionChange implements Change {\n _identifierSpace,\n _schemaSpace,\n columnType));\n+ if (project.columnModel.getColumnByName(_baseColumnName) != null) {\n+ column.setSourceReconConfig(project.columnModel.getColumnByName(_baseColumnName).getReconConfig());\n+ }\n ReconStats reconStats = ReconStats.create(project, cellIndex);\n if (reconStats.matchedTopics > 0) {\n column.setReconStats(reconStats);\ndiff --git a/main/webapp/modules/core/langs/translation-en.json b/main/webapp/modules/core/langs/translation-en.json\nindex 2eec9bb9e..1c64feb83 100644\n--- a/main/webapp/modules/core/langs/translation-en.json\n+++ b/main/webapp/modules/core/langs/translation-en.json\n@@ -463,6 +463,8 @@\n \"core-views/create-topic-cell\": \"Create a new item for this cell\",\n \"core-views/create-topic\": \"Create new item\",\n \"core-views/search-match\": \"Search for match\",\n+ \"core-views/see-more\": \"See more\",\n+ \"core-views/see-less\": \"See less\",\n \"core-views/item-to-match\": \"Item to match\",\n \"core-views/not-valid-number\": \"Not a valid number.\",\n \"core-views/not-valid-date\": \"Not a valid date.\",\n@@ -524,6 +526,7 @@\n \"core-views/warning-sel-judg\": \"Please select at least one kind of judgment to copy.\",\n \"core-views/start-recon\": \"Start reconciling…\",\n \"core-views/recon-text-fb\": \"Reconcile text in this column with items in another data source\",\n+ \"core-views/data-extended-from\" : \"Data extended from $1\",\n \"core-views/facets\": \"Facets\",\n \"core-views/by-judg\": \"By judgment\",\n \"core-views/judgment\": \"$1: judgment\",\ndiff --git a/main/webapp/modules/core/scripts/views/data-table/cell-renderers/recon-renderer.js b/main/webapp/modules/core/scripts/views/data-table/cell-renderers/recon-renderer.js\nindex 48a6df4b6..ac9d4e392 100644\n--- a/main/webapp/modules/core/scripts/views/data-table/cell-renderers/recon-renderer.js\n+++ b/main/webapp/modules/core/scripts/views/data-table/cell-renderers/recon-renderer.js\n@@ -90,8 +90,13 @@ class ReconCellRenderer {\n var ul = $('').addClass(\"data-table-recon-candidates\").appendTo(divContentRecon);\n if (\"c\" in r && r.c.length > 0) {\n var candidates = r.c;\n+ var visibleCandidates = 3;\n var renderCandidate = function(candidate, index) {\n var li = $('').addClass(\"data-table-recon-candidate\").appendTo(ul);\n+ \n+ if (index >= visibleCandidates) {\n+ li.hide();\n+ }\n var liSpan = $('').appendTo(li);\n \n $('')\n@@ -128,7 +133,29 @@ class ReconCellRenderer {\n }\n $('').addClass(\"data-table-recon-score\").text(\"(\" + score + \")\").appendTo(liSpan);\n };\n-\n+ var visibilityChoices = $('
').addClass(\"data-table-recon-visibility\").appendTo(divContentRecon);\n+ if (candidates.length > visibleCandidates) {\n+ var isExpanded = false; // Variable to track visibility state\n+ var seeMoreLink = $('')\n+ .on('click', function(evt) {\n+ var link = $(this);\n+ isExpanded = !isExpanded; // Toggle visibility state\n+ if (isExpanded) {\n+ ul.find('.data-table-recon-candidate').show(); // Show all candidates\n+ seeMoreLink.text($.i18n('core-views/see-less')); // Change link text to \"See Less\"\n+\n+ } \n+ else {\n+ ul.find('.data-table-recon-candidate:not(:lt(' + visibleCandidates + '))').hide();\n+ ul.find('.data-table-recon-candidate:last').show();\n+ seeMoreLink.text($.i18n('core-views/see-more')); // Change link text to \"See More\"\n+ }\n+ return false; \n+ })\n+ .text($.i18n('core-views/see-more'))\n+ .appendTo(visibilityChoices);\n+ seeMoreLink.after(\" | \");\n+ }\n for (var i = 0; i < candidates.length; i++) {\n renderCandidate(candidates[i], i);\n }\n@@ -165,8 +192,7 @@ class ReconCellRenderer {\n }\n addSuggest = true;\n }\n-\n- var extraChoices = $('
').addClass(\"data-table-recon-extra\").appendTo(divContentRecon);\n+ var extraChoices = $('
').addClass(\"data-table-recon-extra\").appendTo(visibilityChoices);\n if (addSuggest) {\n $('')\n .on('click',function(evt) {\ndiff --git a/main/webapp/modules/core/scripts/views/data-table/column-header-ui.js b/main/webapp/modules/core/scripts/views/data-table/column-header-ui.js\nindex 2356e9071..1c7f1191f 100644\n--- a/main/webapp/modules/core/scripts/views/data-table/column-header-ui.js\n+++ b/main/webapp/modules/core/scripts/views/data-table/column-header-ui.js\n@@ -94,6 +94,18 @@ DataTableColumnHeaderUI.prototype._render = function() {\n .appendTo(whole);\n }\n }\n+ if(\"sourceReconConfig\" in this._column) {\n+ if(this._column.sourceReconConfig.service){\n+ var service = ReconciliationManager.getServiceFromUrl(this._column.sourceReconConfig.service);\n+ var serviceName;\n+ if(service) {\n+ serviceName=service.name;\n+ }\n+ if(serviceName){\n+ elmts.nameContainer.attr(\"title\",$.i18n('core-views/data-extended-from',service.name));\n+ }\n+ }\n+ }\n };\n \n DataTableColumnHeaderUI.prototype._createMenuForColumnHeader = function(elmt) {\ndiff --git a/main/webapp/modules/core/styles/views/data-table-view.css b/main/webapp/modules/core/styles/views/data-table-view.css\nindex 0b4e6fe43..86cff4279 100644\n--- a/main/webapp/modules/core/styles/views/data-table-view.css\n+++ b/main/webapp/modules/core/styles/views/data-table-view.css\n@@ -279,21 +279,26 @@ a.data-table-recon-topic {\n margin: 0 0.5em;\n }\n \n-a.data-table-recon-action, .data-table-recon-extra>a {\n+a.data-table-recon-action, .data-table-recon-extra>a, .data-table-recon-visibility>a {\n text-decoration: none;\n color: var(--link-secondary);\n }\n-.data-table-error-extra>a{\n- font-size: 0.8em;;\n- text-decoration: none;\n- color: var(--link-secondary);\n+\n+.data-table-recon-visibility{\n+ font-size: 0.8em;\n }\n-a.data-table-recon-action, .data-table-recon-extra {\n+.data-table-recon-extra,.data-table-recon-visibily {\n+ display: inline;\n+ margin: 3px 0 0;\n+}\n+\n+a.data-table-recon-action{\n font-size: 0.8em;\n display: block;\n margin: 3px 0 0;\n }\n \n+\n a.data-table-recon-match, a.data-table-recon-match-similar {\n position: absolute;\n top: 0;\ndiff --git a/packaging/pom.xml b/packaging/pom.xml\nindex 1e93b7c17..b21c43a56 100644\n--- a/packaging/pom.xml\n+++ b/packaging/pom.xml\n@@ -421,7 +421,7 @@\n \n com.akathist.maven.plugins.launch4j\n launch4j-maven-plugin\n- 2.4.1\n+ 2.5.0\n \n \n l4j-clui-without-jre\n@@ -508,7 +508,7 @@\n \n org.apache.maven.plugins\n maven-surefire-plugin\n- 3.2.3\n+ 3.2.5\n \n true\n \ndiff --git a/pom.xml b/pom.xml\nindex 35cd2ef0b..e25b50f4e 100644\n--- a/pom.xml\n+++ b/pom.xml\n@@ -108,7 +108,7 @@\n 4.5.14\n 1.2.3\n 1.9.3\n- 5.8.0\n+ 5.9.0\n \n \n 3.5.0\n@@ -118,7 +118,7 @@\n 3.6.1\n 0.8.11\n 4.3.0\n- 3.2.3\n+ 3.2.5\n 3.3.0\n 3.3.2\n 4.9.10\ndiff --git a/refine.bat b/refine.bat\nindex 3e6768dfd..2f4ce0bdc 100644\n--- a/refine.bat\n+++ b/refine.bat\n@@ -171,7 +171,6 @@ set REFINE_LIB_DIR=server\\target\\lib\n :gotLibDir\n \n if not \"%REFINE_VERBOSITY%\" == \"\" goto gotVerbosity\n-set REFINE_VERBOSITY=info\n :gotVerbosity\n set OPTS=%OPTS% -Drefine.verbosity=%REFINE_VERBOSITY%\n \ndiff --git a/server/src/com/google/refine/Refine.java b/server/src/com/google/refine/Refine.java\nindex e0b800616..f3c46efa1 100644\n--- a/server/src/com/google/refine/Refine.java\n+++ b/server/src/com/google/refine/Refine.java\n@@ -53,7 +53,9 @@ import javax.swing.JFrame;\n \n import com.google.util.threads.ThreadPoolExecutorAdapter;\n import org.apache.commons.lang.SystemUtils;\n-import org.apache.log4j.Level;\n+import org.apache.logging.log4j.Level;\n+import org.apache.logging.log4j.LogManager;\n+import org.apache.logging.log4j.core.config.Configurator;\n import org.eclipse.jetty.server.HttpConfiguration;\n import org.eclipse.jetty.server.HttpConnectionFactory;\n import org.eclipse.jetty.server.Server;\n@@ -96,7 +98,10 @@ public class Refine {\n // System.setProperty(\"debug\",\"true\");\n \n // set the log verbosity level\n- org.apache.log4j.Logger.getRootLogger().setLevel(Level.toLevel(Configurations.get(\"refine.verbosity\", \"info\")));\n+ String logLevelArg = Configurations.get(\"refine.verbosity\");\n+ if (logLevelArg != null && !logLevelArg.isEmpty()) {\n+ Configurator.setAllLevels(LogManager.getRootLogger().getName(), Level.toLevel(logLevelArg));\n+ }\n \n port = Configurations.getInteger(\"refine.port\", DEFAULT_PORT);\n iface = Configurations.get(\"refine.interface\", DEFAULT_IFACE);\n", "test_patch": "diff --git a/main/tests/cypress/cypress/e2e/project/grid/column/reconcile/actions/see-more-and-see-less.cy.js b/main/tests/cypress/cypress/e2e/project/grid/column/reconcile/actions/see-more-and-see-less.cy.js\nnew file mode 100644\nindex 000000000..754034602\n--- /dev/null\n+++ b/main/tests/cypress/cypress/e2e/project/grid/column/reconcile/actions/see-more-and-see-less.cy.js\n@@ -0,0 +1,47 @@\n+describe('Show more or less reconciliation candidates', () => {\n+ afterEach(() => {\n+ cy.addProjectForDeletion();\n+ });\n+ \n+ it('Testing see more / see less', () => {\n+ cy.visitOpenRefine();\n+ cy.navigateTo('Import project');\n+ cy.get('.grid-layout').should('to.contain', 'Locate an existing Refine project file');\n+\n+ //we're using here the \"no automatch\" project, so rows are reconciled and we have more than 3 matched candidates\n+ cy.get('#project-tar-file-input').attachFile('reconciled-project-no-automatch.zip')\n+ cy.get('#import-project-button').click();\n+\n+ //confirming that we have see more options\n+ cy.getCell(0, 'species').find('.data-table-recon-visibility').should('to.contain', 'See more');\n+ cy.getCell(1, 'species').find('.data-table-recon-visibility').should('to.contain', 'See more');\n+ cy.getCell(2, 'species').find('.data-table-recon-visibility').should('to.contain', 'See more');\n+ cy.getCell(3, 'species').find('.data-table-recon-visibility').should('to.contain', 'See more');\n+ cy.getCell(4, 'species').find('.data-table-recon-visibility').should('to.contain', 'See more');\n+ cy.getCell(5, 'species').find('.data-table-recon-visibility').should('to.contain', 'See more');\n+\n+ //confirming the initial no. of candidates\n+ cy.getCell(0, 'species').find('.data-table-recon-candidate:visible').should('have.length', 4);\n+\n+ //clicking the see more option\n+ cy.getCell(0, 'species').find('.data-table-recon-visibility').contains('See more').click();\n+\n+ //confirming the no. of candidates after we click on see more\n+ cy.getCell(0, 'species').find('.data-table-recon-candidate:visible').should('have.length', 6);\n+ \n+ //verifying that the see more option has changed to see less\n+ cy.getCell(0, 'species').find('.data-table-recon-visibility').should('to.contain', 'See less');\n+\n+ //clicking the see less option\n+ cy.getCell(0, 'species').find('.data-table-recon-visibility').contains('See less').click();\n+\n+ //confirming the no. of candidates after we click on see less\n+ cy.getCell(0, 'species').find('.data-table-recon-candidate:visible').should('have.length', 4);\n+\n+ \n+ \n+ \n+ });\n+});\n+\n+\ndiff --git a/main/tests/cypress/package.json b/main/tests/cypress/package.json\nindex 6251c1c73..4d986346e 100644\n--- a/main/tests/cypress/package.json\n+++ b/main/tests/cypress/package.json\n@@ -16,7 +16,7 @@\n \"lint\": \"prettier --check . && eslint .\"\n },\n \"dependencies\": {\n- \"cypress\": \"13.6.2\",\n+ \"cypress\": \"13.6.3\",\n \"cypress-file-upload\": \"^5.0.8\"\n },\n \"devDependencies\": {\n@@ -24,6 +24,6 @@\n \"eslint-config-google\": \"^0.14.0\",\n \"eslint-config-prettier\": \"^9.1.0\",\n \"eslint-plugin-cypress\": \"^2.15.1\",\n- \"prettier\": \"3.1.1\"\n+ \"prettier\": \"3.2.4\"\n }\n }\ndiff --git a/main/tests/cypress/yarn.lock b/main/tests/cypress/yarn.lock\nindex 37db221b3..429daccc9 100644\n--- a/main/tests/cypress/yarn.lock\n+++ b/main/tests/cypress/yarn.lock\n@@ -116,7 +116,7 @@\n resolved \"https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz\"\n integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==\n \n-\"@types/node@*\", \"@types/node@^18.17.5\":\n+\"@types/node@*\":\n version \"18.17.15\"\n resolved \"https://registry.yarnpkg.com/@types/node/-/node-18.17.15.tgz#31301a273b9ca7d568fe6d1c35ae52e0fb3f8d6a\"\n integrity sha512-2yrWpBk32tvV/JAd3HNHWuZn/VDN1P+72hWirHnvsvTGSqbANi+kSeuQR9yAHnbvaBvHDsoTdXV0Fe+iRtHLKA==\n@@ -436,14 +436,13 @@ cypress-file-upload@^5.0.8:\n resolved \"https://registry.yarnpkg.com/cypress-file-upload/-/cypress-file-upload-5.0.8.tgz#d8824cbeaab798e44be8009769f9a6c9daa1b4a1\"\n integrity sha512-+8VzNabRk3zG6x8f8BWArF/xA/W0VK4IZNx3MV0jFWrJS/qKn8eHfa5nU73P9fOQAgwHFJx7zjg4lwOnljMO8g==\n \n-cypress@13.6.2:\n- version \"13.6.2\"\n- resolved \"https://registry.yarnpkg.com/cypress/-/cypress-13.6.2.tgz#c70df09db0a45063298b3cecba2fa21109768e08\"\n- integrity sha512-TW3bGdPU4BrfvMQYv1z3oMqj71YI4AlgJgnrycicmPZAXtvywVFZW9DAToshO65D97rCWfG/kqMFsYB6Kp91gQ==\n+cypress@13.6.3:\n+ version \"13.6.3\"\n+ resolved \"https://registry.yarnpkg.com/cypress/-/cypress-13.6.3.tgz#54f03ca07ee56b2bc18211e7bd32abd2533982ba\"\n+ integrity sha512-d/pZvgwjAyZsoyJ3FOsJT5lDsqnxQ/clMqnNc++rkHjbkkiF2h9s0JsZSyyH4QXhVFW3zPFg82jD25roFLOdZA==\n dependencies:\n \"@cypress/request\" \"^3.0.0\"\n \"@cypress/xvfb\" \"^1.2.4\"\n- \"@types/node\" \"^18.17.5\"\n \"@types/sinonjs__fake-timers\" \"8.1.1\"\n \"@types/sizzle\" \"^2.3.2\"\n arch \"^2.2.0\"\n@@ -1309,10 +1308,10 @@ prelude-ls@^1.2.1:\n resolved \"https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz\"\n integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==\n \n-prettier@3.1.1:\n- version \"3.1.1\"\n- resolved \"https://registry.yarnpkg.com/prettier/-/prettier-3.1.1.tgz#6ba9f23165d690b6cbdaa88cb0807278f7019848\"\n- integrity sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==\n+prettier@3.2.4:\n+ version \"3.2.4\"\n+ resolved \"https://registry.yarnpkg.com/prettier/-/prettier-3.2.4.tgz#4723cadeac2ce7c9227de758e5ff9b14e075f283\"\n+ integrity sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==\n \n pretty-bytes@^5.6.0:\n version \"5.6.0\"\ndiff --git a/main/tests/server/src/com/google/refine/model/ColumnTests.java b/main/tests/server/src/com/google/refine/model/ColumnTests.java\nindex 0d34c1cef..7aa7c2523 100644\n--- a/main/tests/server/src/com/google/refine/model/ColumnTests.java\n+++ b/main/tests/server/src/com/google/refine/model/ColumnTests.java\n@@ -60,6 +60,19 @@ public class ColumnTests {\n + \" {\\\"column\\\":\\\"organization_id\\\",\\\"propertyName\\\":\\\"SPARQL: P3500|P2427\\\",\\\"propertyID\\\":\\\"P3500|P2427\\\"}\"\n + \" ],\"\n + \" \\\"limit\\\":0},\"\n+ + \"\\\"sourceReconConfig\\\":{\"\n+ + \" \\\"mode\\\":\\\"standard-service\\\",\"\n+ + \" \\\"service\\\":\\\"https://tools.wmflabs.org/openrefine-wikidata/en/api\\\",\"\n+ + \" \\\"identifierSpace\\\":\\\"http://www.wikidata.org/entity/\\\",\"\n+ + \" \\\"schemaSpace\\\":\\\"http://www.wikidata.org/prop/direct/\\\",\"\n+ + \" \\\"type\\\":{\\\"id\\\":\\\"Q43229\\\",\\\"name\\\":\\\"organization\\\"},\"\n+ + \" \\\"autoMatch\\\":true,\"\n+ + \" \\\"batchSize\\\":10,\"\n+ + \" \\\"columnDetails\\\":[\"\n+ + \" {\\\"column\\\":\\\"organization_country\\\",\\\"propertyName\\\":\\\"SPARQL: P17/P297\\\",\\\"propertyID\\\":\\\"P17/P297\\\"},\"\n+ + \" {\\\"column\\\":\\\"organization_id\\\",\\\"propertyName\\\":\\\"SPARQL: P3500|P2427\\\",\\\"propertyID\\\":\\\"P3500|P2427\\\"}\"\n+ + \" ],\"\n+ + \" \\\"limit\\\":0},\"\n + \"\\\"reconStats\\\":{\"\n + \" \\\"nonBlanks\\\":299,\"\n + \" \\\"newTopics\\\":0,\"\ndiff --git a/main/tests/server/src/com/google/refine/operations/recon/ExtendDataOperationTests.java b/main/tests/server/src/com/google/refine/operations/recon/ExtendDataOperationTests.java\nindex b7e191ba0..b3067160d 100644\n--- a/main/tests/server/src/com/google/refine/operations/recon/ExtendDataOperationTests.java\n+++ b/main/tests/server/src/com/google/refine/operations/recon/ExtendDataOperationTests.java\n@@ -68,6 +68,7 @@ import com.google.refine.model.Project;\n import com.google.refine.model.Recon;\n import com.google.refine.model.ReconCandidate;\n import com.google.refine.model.Row;\n+import com.google.refine.model.recon.DataExtensionReconConfig;\n import com.google.refine.model.recon.ReconciledDataExtensionJob;\n import com.google.refine.model.recon.ReconciledDataExtensionJob.DataExtensionConfig;\n import com.google.refine.operations.EngineDependentOperation;\n@@ -154,6 +155,9 @@ public class ExtendDataOperationTests extends RefineTest {\n public void SetUp() throws IOException, ModelException {\n OperationRegistry.registerOperation(getCoreModule(), \"extend-reconciled-data\", ExtendDataOperation.class);\n project = createProjectWithColumns(\"DataExtensionTests\", \"country\");\n+ project.columnModel.getColumnByName(\"country\").setReconConfig(new DataExtensionReconConfig(RECON_SERVICE,\n+ RECON_IDENTIFIER_SPACE,\n+ RECON_SCHEMA_SPACE, null));\n \n options = mock(Properties.class);\n engine = new Engine(project);\n@@ -284,6 +288,9 @@ public class ExtendDataOperationTests extends RefineTest {\n \n // Make sure we did not create any recon stats for that column (no reconciled value)\n Assert.assertTrue(project.columnModel.getColumnByName(\"ISO 3166-1 alpha-2 code\").getReconStats() == null);\n+ // adding an assertion for sourceReconConfig\n+ Assert.assertTrue(project.columnModel.getColumnByName(\"ISO 3166-1 alpha-2 code\").getSourceReconConfig() != null);\n+\n }\n }\n \n", "FAIL_TO_PASS": [], "PASS_TO_PASS": [], "PR_Body": "Fixes #5130\r\n\r\nChanges proposed in this pull request:\r\n- Adds a variable sourceReconConfig that contains the information about the reconconfig of the column from which data is extended from\r\n- Also updated the tests to test for sourceReconConfig\r\n- Finally, a tooltip is added to the new column which contains the extended data.\r\n", "PR_Title": "Improve how to indicate the data source following data extension#5130", "docker_image": "xinzhou1997/swe_rpg_java:OpenRefine__OpenRefine-6285_linux", "log_parser": "def parser(log: str) -> dict[str, str]:\n import re\n import xml.etree.ElementTree as ET\n\n results: dict[str, str] = {}\n\n # Helper: merge statuses with precedence fail > skip > pass\n def merge_status(name: str, new_status: str):\n if new_status not in (\"pass\", \"fail\", \"skip\"):\n return\n old_status = results.get(name)\n if old_status is None:\n results[name] = new_status\n return\n if old_status == new_status:\n return\n # Precedence: fail > skip > pass\n priority = {\"fail\": 3, \"skip\": 2, \"pass\": 1}\n if priority[new_status] > priority[old_status]:\n results[name] = new_status\n\n # -----------------------\n # XML-based parsing pass\n # -----------------------\n\n # Non-greedy patterns for JUnit/TestNG XML blocks\n xml_pattern = re.compile(\n r\"(|)\",\n re.IGNORECASE,\n )\n\n for match in xml_pattern.finditer(log):\n xml_block = match.group(1)\n try:\n root = ET.fromstring(xml_block)\n except ET.ParseError:\n # Skip this block but continue with others\n continue\n\n tag_lower = root.tag.lower()\n\n # Handle TestNG summary reports ()\n if tag_lower.endswith(\"testng-results\"):\n # Look for all test-method elements anywhere\n for tm in root.findall(\".//test-method\"):\n # Skip configuration methods\n if tm.attrib.get(\"is-config\", \"false\").lower() == \"true\":\n continue\n name = tm.attrib.get(\"name\", \"\")\n if not name:\n continue\n # Try to get class name from surrounding element\n class_elem = tm.find(\"..\")\n class_name = \"\"\n # xml.etree doesn't support parent lookup directly, so search ancestors:\n # We instead search for the nearest ancestor manually:\n # Since parent lookup is tricky, fall back to the attribute 'class' on if present\n # or to a surrounding element found via xpath with name match, which is usually enough.\n # Re-parse with a simpler loop using suites/tests/classes for better class name resolution.\n for suite in root.findall(\".//suite\"):\n for test in suite.findall(\".//test\"):\n for clazz in test.findall(\".//class\"):\n class_name = clazz.attrib.get(\"name\", \"\")\n for tm in clazz.findall(\"test-method\"):\n if tm.attrib.get(\"is-config\", \"false\").lower() == \"true\":\n continue\n m_name = tm.attrib.get(\"name\", \"\")\n if not m_name:\n continue\n fq_name = f\"{class_name}.{m_name}\" if class_name else m_name\n status_attr = tm.attrib.get(\"status\", \"\").upper()\n # Map TestNG status to our statuses\n if status_attr == \"PASS\":\n status = \"pass\"\n elif status_attr in (\"FAIL\", \"FAILURE\"):\n status = \"fail\"\n elif status_attr == \"SKIP\":\n status = \"skip\"\n else:\n # Fallback: if there is an exception element, mark as fail; else pass\n if tm.find(\".//exception\") is not None:\n status = \"fail\"\n else:\n status = \"pass\"\n merge_status(fq_name, status)\n continue\n\n # Handle JUnit-style reports\n if tag_lower.endswith(\"testsuite\"):\n for tc in root.findall(\".//testcase\"):\n class_name = tc.attrib.get(\"classname\", \"\")\n name = tc.attrib.get(\"name\", \"\")\n if not name:\n continue\n fq_name = f\"{class_name}.{name}\" if class_name else name\n\n # Determine status via children\n status = \"pass\"\n if tc.find(\"skipped\") is not None:\n status = \"skip\"\n elif tc.find(\"failure\") is not None or tc.find(\"error\") is not None:\n status = \"fail\"\n\n merge_status(fq_name, status)\n\n # ---------------------------\n # Text-based parsing fallback\n # ---------------------------\n\n # Compile regexes for common frameworks\n\n # pytest: path::test_name STATUS\n pytest_re = re.compile(\n r\"^(?P\\S+::\\S+)\\s+\"\n r\"(?PPASSED|FAILED|SKIPPED|ERROR|XFAILED|XPASSED)\\b\"\n )\n\n # unittest / nose: ClassName.test_method ... ok/FAIL/ERROR/skipped\n unittest_re = re.compile(\n r\"^(?P[A-Za-z_]\\w*)\\.(?P[A-Za-z_]\\w*)\\s+\\.\\.\\.\\s+\"\n r\"(?Pok|FAIL|ERROR|skipped)\\b\"\n )\n\n # go test: --- STATUS: TestName\n gotest_re = re.compile(\n r\"^---\\s+(?PPASS|FAIL|SKIP):\\s+(?P\\S+)\"\n )\n\n # Jest-like symbol lines: ✓/✕/○ test name\n jest_symbol_re = re.compile(r\"^\\s*([✓✕○])\\s+(?P.+)\")\n\n # Map various raw statuses to our canonical ones\n def map_status(raw: str) -> str | None:\n r = raw.upper()\n if r in (\"PASSED\", \"OK\", \"XPASSED\", \"PASS\"):\n return \"pass\"\n if r in (\"FAILED\", \"FAIL\", \"ERROR\", \"XFAILED\"):\n return \"fail\"\n if r in (\"SKIPPED\", \"SKIP\", \"SKIPPED (EXPECTED FAILURE)\"):\n return \"skip\"\n return None\n\n for line in log.splitlines():\n line = line.rstrip(\"\\n\")\n\n # pytest\n m = pytest_re.match(line)\n if m:\n name = m.group(\"name\")\n status = map_status(m.group(\"status\"))\n if status:\n merge_status(name, status)\n continue\n\n # unittest\n m = unittest_re.match(line)\n if m:\n name = f\"{m.group('class')}.{m.group('method')}\"\n status = map_status(m.group(\"status\"))\n if status:\n merge_status(name, status)\n continue\n\n # go test\n m = gotest_re.match(line)\n if m:\n name = m.group(\"name\")\n status = map_status(m.group(\"status\"))\n if status:\n merge_status(name, status)\n continue\n\n # Jest symbols\n m = jest_symbol_re.match(line)\n if m:\n symbol = m.group(1)\n name = m.group(\"name\").strip()\n if symbol == \"✓\":\n status = \"pass\"\n elif symbol == \"✕\":\n status = \"fail\"\n elif symbol == \"○\":\n status = \"skip\"\n else:\n status = None\n if status:\n merge_status(name, status)\n continue\n\n return results\n", "test_cmds": ["export _JAVA_OPTIONS=\"-Djava.net.preferIPv6Addresses=false\"", "mvn -B test"], "rebuild_cmds": ["export DEBIAN_FRONTEND=noninteractive", "apt-get update -qq", "apt-get install -y -qq nodejs npm", "./refine build"], "issues": [{"issue_number": 6285, "issue_title": "Improve how to indicate the data source following data extension#5130", "issue_body": "Fixes #5130\r\n\r\nChanges proposed in this pull request:\r\n- Adds a variable sourceReconConfig that contains the information about the reconconfig of the column from which data is extended from\r\n- Also updated the tests to test for sourceReconConfig\r\n- Finally, a tooltip is added to the new column which contains the extended data.\r\n"}], "print_cmds": ["find . -maxdepth 6 -path '*surefire-reports/*.xml' -print0 | xargs -0 -I {} sh -c 'echo \"===== {} =====\"; cat {}'"], "working_dir": "/OpenRefine"}
{"repo": "OpenRefine/OpenRefine", "instance_id": "OpenRefine__OpenRefine-7247", "base_commit": "5620e00ed100a81a8156f650d4eafe5fa2de5e5c", "patch": "diff --git a/.github/workflows/snapshot_release.yml b/.github/workflows/snapshot_release.yml\nindex 87a1e1d78..2182420c5 100644\n--- a/.github/workflows/snapshot_release.yml\n+++ b/.github/workflows/snapshot_release.yml\n@@ -252,7 +252,7 @@ jobs:\n - name: Upload release asset for Windows (with Java)\n id: upload-release-asset-win-with-java\n if: github.event_name == 'release'\n- uses: shogo82148/actions-upload-release-asset@v1.7.8\n+ uses: shogo82148/actions-upload-release-asset@v1.8.0\n with:\n upload_url: ${{ steps.get_release_upload_url.outputs.upload_url }}\n asset_path: ./packaging/target/openrefine-win-with-java-${{ steps.version_string_variable.outputs.output_value }}.zip\n@@ -280,7 +280,7 @@ jobs:\n - name: Upload Release Asset Linux\n id: upload-release-asset-linux\n if: github.event_name == 'release'\n- uses: shogo82148/actions-upload-release-asset@v1.7.8\n+ uses: shogo82148/actions-upload-release-asset@v1.8.0\n with:\n upload_url: ${{ steps.get_release_upload_url.outputs.upload_url }}\n asset_path: ./packaging/target/openrefine-linux-${{ steps.version_string_variable.outputs.output_value }}.tar.gz\n@@ -297,7 +297,7 @@ jobs:\n - name: Upload Release Asset Mac\n id: upload-release-asset-mac\n if: github.event_name == 'release'\n- uses: shogo82148/actions-upload-release-asset@v1.7.8\n+ uses: shogo82148/actions-upload-release-asset@v1.8.0\n with:\n upload_url: ${{ steps.get_release_upload_url.outputs.upload_url }}\n asset_path: ./packaging/target/openrefine-mac-${{ steps.version_string_variable.outputs.output_value }}.dmg\n@@ -385,7 +385,7 @@ jobs:\n - name: Upload release asset for Windows (with Java)\n id: upload-release-asset-win-with-java-installer\n if: github.event_name == 'release'\n- uses: shogo82148/actions-upload-release-asset@v1.7.8\n+ uses: shogo82148/actions-upload-release-asset@v1.8.0\n with:\n upload_url: ${{ steps.get_release_upload_url.outputs.upload_url }}\n asset_path: ./packaging/target/openrefine-win-with-java-installer-${{ needs.mac_test_and_deploy.outputs.version_number_string }}.exe\ndiff --git a/benchmark/pom.xml b/benchmark/pom.xml\nindex 5b552f99c..fa70ac001 100644\n--- a/benchmark/pom.xml\n+++ b/benchmark/pom.xml\n@@ -149,7 +149,7 @@\n \n \n maven-surefire-plugin\n- 3.5.2\n+ 3.5.3\n \n true\n \ndiff --git a/extensions/database/pom.xml b/extensions/database/pom.xml\nindex 25302ef82..df56cd828 100644\n--- a/extensions/database/pom.xml\n+++ b/extensions/database/pom.xml\n@@ -109,7 +109,7 @@\n \n org.mariadb.jdbc\n mariadb-java-client\n- 3.5.2\n+ 3.5.3\n \n \n org.xerial\ndiff --git a/main/src/com/google/refine/operations/row/RowAdditionOperation.java b/main/src/com/google/refine/operations/row/RowAdditionOperation.java\nindex f799f18c7..4afe4589d 100644\n--- a/main/src/com/google/refine/operations/row/RowAdditionOperation.java\n+++ b/main/src/com/google/refine/operations/row/RowAdditionOperation.java\n@@ -31,6 +31,7 @@ import java.util.List;\n import java.util.Map;\n import java.util.Optional;\n import java.util.Set;\n+import java.util.stream.Collectors;\n \n import com.fasterxml.jackson.annotation.JsonCreator;\n import com.fasterxml.jackson.annotation.JsonIgnore;\n@@ -49,15 +50,39 @@ public class RowAdditionOperation extends AbstractOperation {\n final private List _rows;\n final private int _insertionIndex;\n \n+ public RowAdditionOperation(\n+ List rows,\n+ int insertionIndex) {\n+ _rows = rows;\n+ _insertionIndex = insertionIndex;\n+ }\n+\n+ /**\n+ * Deserialization constructor to provide compatibility for the legacy serialization format. In this format, only\n+ * the number of rows is relevant: the contents of the rows must be ignored, because they might have been corrupted\n+ * due to mutability issues in https://github.com/OpenRefine/OpenRefine/issues/7245.\n+ * \n+ * @param addedRows\n+ * the rows to add to the project\n+ * @param rows\n+ * a legacy serialization field, whose length is is the only thing that matters. If provided, it will be\n+ * converted to a list of empty rows of the same size.\n+ * @param insertionIndex\n+ * the place in the grid where to insert this list.\n+ * @deprecated should not be called directly, is only provided for JSON deserialization.\n+ */\n+ @Deprecated\n @JsonCreator\n public RowAdditionOperation(\n- @JsonProperty(\"rows\") List rows,\n+ @JsonProperty(\"addedRows\") List addedRows,\n+ @JsonProperty(\"rows\") List