repo stringclasses 8
values | instance_id stringclasses 10
values | base_commit stringclasses 10
values | patch stringclasses 10
values | test_patch stringclasses 10
values | problem_statement stringclasses 10
values | hint_text stringclasses 9
values | created_at stringdate 2025-01-13 16:47:19 2025-06-13 09:27:11 | closed_at stringdate 2025-01-13 16:47:19 2025-06-13 09:27:11 | version stringclasses 2
values | FAIL_TO_PASS listlengths 0 6 | PASS_TO_PASS listlengths 14 248 | environment_setup_commit stringclasses 1
value | command_build stringclasses 1
value | command_test stringclasses 1
value | image_name stringclasses 1
value | meta dict | timeout_build int64 3k 3k | timeout_test int64 600 600 | command_test_small stringclasses 10
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
reframe-hpc/reframe | reframe-hpc__reframe-3433 | b7d86b1d777bc3bed7a3d71d95130376ab5d2820 | diff --git a/reframe/utility/sanity.py b/reframe/utility/sanity.py
index a4f57a301..1228586ff 100644
--- a/reframe/utility/sanity.py
+++ b/reframe/utility/sanity.py
@@ -8,6 +8,7 @@
import contextlib
import glob as pyglob
import itertools
+import math
import os
import re
import sys
@@ -576,8 +577,14 @@ def calc_bo... | diff --git a/unittests/test_sanity_functions.py b/unittests/test_sanity_functions.py
index 7e6368938..0e9367027 100644
--- a/unittests/test_sanity_functions.py
+++ b/unittests/test_sanity_functions.py
@@ -473,6 +473,18 @@ def test_assert_reference():
r'\(l=-1\.2, u=-0\.9\)'):
sn.e... | Performance threshold goes to -inf when it should be zero.
In attempting to create a performance test where zero is the correct value, I created the following reference (since a value of zero results in no reference check being performed; see https://github.com/reframe-hpc/reframe/issues/2857):
```
self.refere... | @vkarak: Related to #2857.@vkarak: > This works for me in that values of zero pass, and 1 or greater values fail, but what is unexpected is that the lower bound gets set to -inf:
Indeed this is a bug. These checks should check against `None`:
https://github.com/reframe-hpc/reframe/blob/b7d86b1d777bc3bed7a3d71d9513037... | 2025-03-18T08:54:38Z | 2025-03-18T08:54:38Z | 0.3.88 | [] | [
"unittests/test_sanity_functions.py::test_assert_ge_with_deferrables",
"unittests/test_sanity_functions.py::test_assert_in",
"unittests/test_sanity_functions.py::test_count_uniq",
"unittests/test_sanity_functions.py::test_assert_false_with_deferrables",
"unittests/test_sanity_functions.py::test_assert_not_i... | pip install -e .;
pip install pytest pytest-json-report; | pytest --json-report --json-report-file=report_pytest.json | python:3.11 | {
"command_test_small": "pytest --json-report --json-report-file=report_pytest.json unittests/test_sanity_functions.py",
"issue_number": 3430,
"merge_commit": "20fed5da1569a4962bed12510a89f53083aea3ef",
"merged_at": "",
"pr_number": 3433,
"score": {
"complexity": -1,
"task_correctness": -1,
"tes... | 3,000 | 600 | pytest --json-report --json-report-file=report_pytest.json unittests/test_sanity_functions.py | |
tobymao/sqlglot | tobymao__sqlglot-4837 | 08eb7f2032957c2fe3119963f344538b90d8f631 | diff --git a/sqlglot/parser.py b/sqlglot/parser.py
index 24bf1492f7..f5ed3a8923 100644
--- a/sqlglot/parser.py
+++ b/sqlglot/parser.py
@@ -1291,6 +1291,10 @@ class Parser(metaclass=_Parser):
"SIMPLE",
),
"INITIALLY": ("DEFERRED", "IMMEDIATE"),
+ "USING": (
+ "BTREE",
+ ... | diff --git a/tests/dialects/test_mysql.py b/tests/dialects/test_mysql.py
index 06638f16c5..4a28176ccf 100644
--- a/tests/dialects/test_mysql.py
+++ b/tests/dialects/test_mysql.py
@@ -83,6 +83,12 @@ def test_ddl(self):
self.validate_identity(
"CREATE OR REPLACE VIEW my_view AS SELECT column1 AS `bo... | MySQL dialect fails to parse PRIMARY KEY USING BTREE syntax
**Before you file an issue**
- Make sure you specify the "read" dialect eg. `parse_one(sql, read="spark")`
- Make sure you specify the "write" dialect eg. `ast.sql(dialect="duckdb")`
- Check if the issue still exists on main
yes, the issue still exists. I'v tr... | @Gohoy: ```python
sql = "CREATE TABLE test_table ( id INT AUTO_INCREMENT, alarm_category VARCHAR ( 255 ), alarm_rule VARCHAR ( 255 ), PRIMARY KEY(id) USING BTREE )"
sqlglot.parse_one(sql,read='mysql')
# result
# sqlglot.errors.ParseError: Expecting ). Line 1, Col: 130.
# id INT AUTO_INCREMENT, alarm_category VARCHA... | 2025-03-05T15:49:35Z | 2025-03-05T15:49:35Z | 0.3.88 | [] | [
"tests/dialects/test_mysql.py::TestMySQL::test_show_like_or_where",
"tests/dialects/test_mysql.py::TestMySQL::test_identity",
"tests/dialects/test_mysql.py::TestMySQL::test_string_literals",
"tests/dialects/test_mysql.py::TestMySQL::test_show_columns",
"tests/dialects/test_mysql.py::TestMySQL::test_types",
... | pip install -e .;
pip install pytest pytest-json-report; | pytest --json-report --json-report-file=report_pytest.json | python:3.11 | {
"command_test_small": "pytest --json-report --json-report-file=report_pytest.json tests/dialects/test_mysql.py",
"issue_number": 4833,
"merge_commit": "adf2fef27dc341508c3b9c710da0f835277094a1",
"merged_at": "",
"pr_number": 4837,
"score": {
"complexity": -1,
"task_correctness": -1,
"test_comp... | 3,000 | 600 | pytest --json-report --json-report-file=report_pytest.json tests/dialects/test_mysql.py | |
matchms/matchms | matchms__matchms-809 | 0b1707bd866f56404e4056df678af12a4bc20141 | diff --git a/matchms/importing/load_from_msp.py b/matchms/importing/load_from_msp.py
index cf7726a4..47dbedcc 100644
--- a/matchms/importing/load_from_msp.py
+++ b/matchms/importing/load_from_msp.py
@@ -109,7 +109,7 @@ def _parse_line_with_peaks(rline: str) -> Tuple[List[float], List[float], str]:
def get_peak_value... | diff --git a/tests/importing/test_load_from_msp.py b/tests/importing/test_load_from_msp.py
index 891ac002..839b604c 100644
--- a/tests/importing/test_load_from_msp.py
+++ b/tests/importing/test_load_from_msp.py
@@ -2,7 +2,7 @@ import os
import numpy as np
import pytest
from matchms import Spectrum
-from matchms.impo... | matchms fails when reading spectra where abundance is in scientific notation
Example spectrum - spotted in the MSDial EI RI library.
Funny thing is our regex only handles lower case `e` notation while this uses upper case.
Makes me think if we shouldn't just leave the parsing of stuff to python and try to just identi... | 2025-06-13T09:27:11Z | 2025-06-13T09:27:11Z | 0.4.3 | [] | [
"tests/importing/test_load_from_msp.py::test_load_from_msp_diverse_spectrum_collection",
"tests/importing/test_load_from_msp.py::test_load_from_msp_spaces_massbank_1",
"tests/importing/test_load_from_msp.py::test_parse_metadata[comments: SMILES=\"CC(O)C(O)=O\"-expected_output1]",
"tests/importing/test_load_fr... | pip install -e .;
pip install pytest pytest-json-report; | pytest --json-report --json-report-file=report_pytest.json | python:3.11 | {
"command_test_small": "pytest --json-report --json-report-file=report_pytest.json tests/importing/test_load_from_msp.py",
"issue_number": 802,
"merge_commit": "f54285408f4f6e702545871c126161120106e076",
"merged_at": "",
"pr_number": 809,
"score": {
"complexity": -1,
"task_correctness": -1,
"te... | 3,000 | 600 | pytest --json-report --json-report-file=report_pytest.json tests/importing/test_load_from_msp.py | ||
DataDog/guarddog | DataDog__guarddog-523 | 4d8b7972885ce111991af01610b24b326dcc1de8 | diff --git a/guarddog/analyzer/metadata/bundled_binary.py b/guarddog/analyzer/metadata/bundled_binary.py
index 5b6e875..81ed040 100644
--- a/guarddog/analyzer/metadata/bundled_binary.py
+++ b/guarddog/analyzer/metadata/bundled_binary.py
@@ -14,7 +14,12 @@ class BundledBinary(Detector):
# magic bytes are the firs... | diff --git a/tests/analyzer/metadata/test_bundled_binary.py b/tests/analyzer/metadata/test_bundled_binary.py
index 07f1845..7a01283 100644
--- a/tests/analyzer/metadata/test_bundled_binary.py
+++ b/tests/analyzer/metadata/test_bundled_binary.py
@@ -19,6 +19,8 @@ class TestBundleBinary:
binary_sample_elf = (
... | Add Mach-O magic bytes to the bundled binary detector
The [bundled binary detector](https://github.com/DataDog/guarddog/blob/v2.1.0/guarddog/analyzer/metadata/bundled_binary.py#L17) currently detects **ELF** (Unix) and **exe** (Windows) files, but it does not account for the magic bytes for **Mach-O** (Mac) files. This... | @ocku: Let me know if I can work on this :)@sobregosodd: Hello @ocku , the case you point out seems valid as well
Please, send the PR well look into it.
Thanks again!@ocku: ^ Created. Sorry for the delay! I had some issues with GitHub. | 2025-01-22T12:07:10Z | 2025-01-22T12:07:10Z | 0.4.3 | [] | [
"tests/analyzer/metadata/test_bundled_binary.py::TestBundleBinary::test_plain[detector1]",
"tests/analyzer/metadata/test_bundled_binary.py::TestBundleBinary::test_empty[detector1]",
"tests/analyzer/metadata/test_bundled_binary.py::TestBundleBinary::test_macho64[detector0]",
"tests/analyzer/metadata/test_bundl... | pip install -e .;
pip install pytest pytest-json-report; | pytest --json-report --json-report-file=report_pytest.json | python:3.11 | {
"command_test_small": "pytest --json-report --json-report-file=report_pytest.json tests/analyzer/metadata/test_bundled_binary.py",
"issue_number": 498,
"merge_commit": "4ddb8c8b437c070dc86f17824b7690b5cd4385fe",
"merged_at": "",
"pr_number": 523,
"score": {
"complexity": -1,
"task_correctness": -1... | 3,000 | 600 | pytest --json-report --json-report-file=report_pytest.json tests/analyzer/metadata/test_bundled_binary.py | |
mitmproxy/pdoc | mitmproxy__pdoc-806 | ea2b69a4162226b07f68cd25d92d4d92dbbafaf8 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 747d22f..3337d33 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,8 @@
## Unreleased: pdoc next
+- Include included HTML headers in the ToC by default by enabling markdown2's `mixed=True` option of the `header-ids` extra
+ (#806, @mrossinek)
## 2025-04-21: ... | diff --git a/test/test_render_helpers.py b/test/test_render_helpers.py
index c17740f..4279725 100644
--- a/test/test_render_helpers.py
+++ b/test/test_render_helpers.py
@@ -110,6 +110,22 @@ def test_markdown_toc():
assert to_html("#foo\n#bar").toc_html # type: ignore
+def test_mixed_toc():
+ """
+ markd... | Include HTML headers in ToC
#### Problem Description
When a docstring includes HTML headers (`<h1>`, etc.) for example when I used an `.. include:: some_file.html` (or some markdown file which mixes markdown and HTML headers for some reason) directive, those headers are not included in the table of contents.
#### Pro... | @mhils: Sure, please send a PR!@mrossinek: > Sure, please send a PR!
Happy to do so! How should I approach this?
1. Should I simply enable mixed header-ids by default? E.g. through `"header-ids": {"mixed": True}` here: https://github.com/mitmproxy/pdoc/blob/ea2b69a4162226b07f68cd25d92d4d92dbbafaf8/pdoc/render_helpers.... | 2025-05-04T12:43:09Z | 2025-05-04T12:43:09Z | 0.4.3 | [] | [
"test/test_render_helpers.py::test_markdown_autolink[See https://www.python.org.-<p>See <a href=\"https://www.python.org\">https://www.python.org</a>.</p>\\n]",
"test/test_render_helpers.py::test_qualname_candidates[foo-candidates1]",
"test/test_render_helpers.py::test_relative_link[foo.bar-foo.bar.baz-bar/baz.... | pip install -e .;
pip install pytest pytest-json-report; | pytest --json-report --json-report-file=report_pytest.json | python:3.11 | {
"command_test_small": "pytest --json-report --json-report-file=report_pytest.json test/test_render_helpers.py",
"issue_number": 805,
"merge_commit": "2ab4df12693678439a9063f0e3909c26545241a9",
"merged_at": "",
"pr_number": 806,
"score": {
"complexity": -1,
"task_correctness": -1,
"test_complet... | 3,000 | 600 | pytest --json-report --json-report-file=report_pytest.json test/test_render_helpers.py | |
tobymao/sqlglot | tobymao__sqlglot-4618 | cfa25bb59b4537427aebe93f92c7176e045e7b0c | diff --git a/sqlglot/parser.py b/sqlglot/parser.py
index 7f310b3b58..ae3f6cde66 100644
--- a/sqlglot/parser.py
+++ b/sqlglot/parser.py
@@ -5902,7 +5902,7 @@ def _parse_foreign_key(self) -> exp.ForeignKey:
)
def _parse_primary_key_part(self) -> t.Optional[exp.Expression]:
- return self._parse_fiel... | diff --git a/tests/dialects/test_tsql.py b/tests/dialects/test_tsql.py
index 738120a2ee..fe1aa9c5dd 100644
--- a/tests/dialects/test_tsql.py
+++ b/tests/dialects/test_tsql.py
@@ -436,6 +436,13 @@ def test_tsql(self):
"'a' + 'b'",
)
+ self.validate_identity(
+ "CREATE TABLE db.t... | TSQL: PRIMARY KEY constraint fails to parse if sort option is given
The following CREATE TABLE statement parses just fine:
```
import sqlglot
test = """CREATE TABLE dbo.test (
id INT,
name VARCHAR(50),
CONSTRAINT pk_testTable PRIMARY KEY (id)
) ;"""
parsed_script = sqlglo... | @cchambers-rdi: Added version to OP. | 2025-01-15T15:34:32Z | 2025-01-15T15:34:32Z | 0.3.88 | [] | [
"tests/dialects/test_tsql.py::TestTSQL::test_rollback",
"tests/dialects/test_tsql.py::TestTSQL::test_declare",
"tests/dialects/test_tsql.py::TestTSQL::test_datetrunc",
"tests/dialects/test_tsql.py::TestTSQL::test_transaction",
"tests/dialects/test_tsql.py::TestTSQL::test_eomonth",
"tests/dialects/test_tsq... | pip install -e .;
pip install pytest pytest-json-report; | pytest --json-report --json-report-file=report_pytest.json | python:3.11 | {
"command_test_small": "pytest --json-report --json-report-file=report_pytest.json tests/dialects/test_tsql.py",
"issue_number": 4610,
"merge_commit": "14474ee689025cc67b1f9a07e51d2f414ec5ab49",
"merged_at": "",
"pr_number": 4618,
"score": {
"complexity": -1,
"task_correctness": -1,
"test_compl... | 3,000 | 600 | pytest --json-report --json-report-file=report_pytest.json tests/dialects/test_tsql.py | |
MolSSI/QCElemental | MolSSI__QCElemental-350 | cddc5313ad7a251501b633f119c2cb566885bcc1 | diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml
index aa949f3..8aca4c9 100644
--- a/.github/workflows/CI.yaml
+++ b/.github/workflows/CI.yaml
@@ -17,7 +17,8 @@ jobs:
matrix:
python-version: ["3.7", "3.9", "3.11", "3.12"]
pydantic-version: ["1", "2"]
- runs-on: [ubuntu-... | diff --git a/qcelemental/tests/test_molecule.py b/qcelemental/tests/test_molecule.py
index 46d7ced..b2154c0 100644
--- a/qcelemental/tests/test_molecule.py
+++ b/qcelemental/tests/test_molecule.py
@@ -2,6 +2,7 @@
Tests the imports and exports of the Molecule object.
"""
+
import numpy as np
import pytest
@@ -79... | Floating point number allowed for molecular charge but not molecular multiplicity
**Describe the bug**
<!-- A clear and concise description of what the bug is. -->
QCElemental allows floating point numbers for molecular charges, however when computing the spin with the fractional electron there is no way to represent... | @loriab: I'll make sure to bring this up to @bennybp to see if the database is ready for a type change. | 2025-01-13T16:47:19Z | 2025-01-13T16:47:19Z | 0.4.3 | [
"qcelemental/tests/test_molparse_validate_and_fill_chgmult.py::test_validate_and_fill_chgmult_mol_model[inp50-expected50-]",
"qcelemental/tests/test_molecule.py::test_show",
"qcelemental/tests/test_molecule.py::test_molecule_serialization[msgpack]",
"qcelemental/tests/test_molecule.py::test_to_from_file_charg... | [
"qcelemental/tests/test_molparse_validate_and_fill_chgmult.py::test_validate_and_fill_chgmult_mol_model[inp3-expected3-bfdcbd63]",
"qcelemental/tests/test_molecule.py::test_fragment_charge_configurations[0-4-0-2-0.0-5]",
"qcelemental/tests/test_molecule.py::test_pretty_print",
"qcelemental/tests/test_molparse... | pip install -e .;
pip install pytest pytest-json-report; | pytest --json-report --json-report-file=report_pytest.json | python:3.11 | {
"command_test_small": "pytest --json-report --json-report-file=report_pytest.json qcelemental/tests/test_molparse_validate_and_fill_chgmult.py qcelemental/tests/test_molecule.py",
"issue_number": 317,
"merge_commit": "1908ccc4228544f7c5dd02be7b660f2fc4e73ade",
"merged_at": "",
"pr_number": 350,
"score": {... | 3,000 | 600 | pytest --json-report --json-report-file=report_pytest.json qcelemental/tests/test_molparse_validate_and_fill_chgmult.py qcelemental/tests/test_molecule.py | |
PyCQA/pyflakes | PyCQA__pyflakes-831 | 433dfd001746a69d12597f7c97af78c13e1f662e | diff --git a/pyflakes/checker.py b/pyflakes/checker.py
index c7d3e882..9888d7ac 100644
--- a/pyflakes/checker.py
+++ b/pyflakes/checker.py
@@ -1008,8 +1008,12 @@ def addBinding(self, node, value):
for scope in reversed(self.scopeStack)
if not isinstance(scope, GeneratorScope)
... | diff --git a/pyflakes/test/test_other.py b/pyflakes/test/test_other.py
index 68c38e95..23990820 100644
--- a/pyflakes/test/test_other.py
+++ b/pyflakes/test/test_other.py
@@ -1744,6 +1744,13 @@ def test_assign_expr(self):
print(x)
''')
+ def test_assign_expr_after_annotation(self):
+ self.... | Walrus operator + annotation can cause F821 in version 3.3.0
In order to type hint a variable used in a walrus expression, I put the type hint outside of the expression like in the following example (test.py):
```
a: int
if a := 3:
print(a)
print(a)
```
Variable "a" is defined in both places
```
$ python3 test.... | @sigmavirus24: Thanks for reporting and fixing! | 2025-03-30T21:54:34Z | 2025-03-30T21:54:34Z | 0.3.88 | [
"pyflakes/test/test_other.py::TestUnusedAssignment::test_unusedReassignedVariable",
"pyflakes/test/test_other.py::Test::test_doubleAssignment"
] | [
"pyflakes/test/test_other.py::TestStringFormatting::test_invalid_percent_format_calls",
"pyflakes/test/test_other.py::TestUnusedAssignment::test_unusedVariable",
"pyflakes/test/test_other.py::TestUnusedAssignment::test_exceptionUnusedInExceptInFunction",
"pyflakes/test/test_other.py::TestAsyncStatements::test... | pip install -e .;
pip install pytest pytest-json-report; | pytest --json-report --json-report-file=report_pytest.json | python:3.11 | {
"command_test_small": "pytest --json-report --json-report-file=report_pytest.json pyflakes/test/test_other.py",
"issue_number": 830,
"merge_commit": "87051d20e2f5054302f1a5785c6b5a2c83a39cba",
"merged_at": "",
"pr_number": 831,
"score": {
"complexity": -1,
"task_correctness": -1,
"test_complet... | 3,000 | 600 | pytest --json-report --json-report-file=report_pytest.json pyflakes/test/test_other.py | |
tobymao/sqlglot | tobymao__sqlglot-5015 | 06db2350a1c625cc30212912a73267127fc4f3ea | diff --git a/sqlglot/dialects/postgres.py b/sqlglot/dialects/postgres.py
index 97589d5fbd..61a6dba438 100644
--- a/sqlglot/dialects/postgres.py
+++ b/sqlglot/dialects/postgres.py
@@ -742,3 +742,12 @@ def isascii_sql(self, expression: exp.IsAscii) -> str:
@unsupported_args("this")
def currentschema_sql... | diff --git a/tests/dialects/test_postgres.py b/tests/dialects/test_postgres.py
index 957eb9d5b9..c732688e55 100644
--- a/tests/dialects/test_postgres.py
+++ b/tests/dialects/test_postgres.py
@@ -372,6 +372,14 @@ def test_postgres(self):
pretty=True,
)
+ self.validate_all(
+ "SE... | [BUG] Conversion from SQL Server's DATEADD(quarter...) to PostgreSQL not working properly
## Type of issue: Bug Report
Conversion from SQL Server's DATEADD(quarter...) to PostgreSQL not working properly
## Description
When trying to convert SQL on read dialect 'tsql' for SQL Server's DATEADD(quarter...) the conversion... | 2025-04-25T21:40:11Z | 2025-04-25T21:40:11Z | 0.3.88 | [] | [
"tests/dialects/test_postgres.py::TestPostgres::test_array_length",
"tests/dialects/test_postgres.py::TestPostgres::test_bool_or",
"tests/dialects/test_postgres.py::TestPostgres::test_json_extract",
"tests/dialects/test_postgres.py::TestPostgres::test_xmlelement",
"tests/dialects/test_postgres.py::TestPostg... | pip install -e .;
pip install pytest pytest-json-report; | pytest --json-report --json-report-file=report_pytest.json | python:3.11 | {
"command_test_small": "pytest --json-report --json-report-file=report_pytest.json tests/dialects/test_postgres.py",
"issue_number": 5013,
"merge_commit": "60103020879db5f23a6c4a1775848e31cce13415",
"merged_at": "",
"pr_number": 5015,
"score": {
"complexity": -1,
"task_correctness": -1,
"test_c... | 3,000 | 600 | pytest --json-report --json-report-file=report_pytest.json tests/dialects/test_postgres.py | ||
matthewwithanm/python-markdownify | matthewwithanm__python-markdownify-217 | e29de4e75314daf9267f30f47fd7a091ef5f1deb | diff --git a/markdownify/__init__.py b/markdownify/__init__.py
index 780761c..a43f3a7 100644
--- a/markdownify/__init__.py
+++ b/markdownify/__init__.py
@@ -650,6 +650,9 @@ def convert_pre(self, el, text, parent_tags):
return '\n\n```%s\n%s\n```\n\n' % (code_language, text)
+ def convert_q(self, el, tex... | diff --git a/tests/test_conversions.py b/tests/test_conversions.py
index 27951ee..6145411 100644
--- a/tests/test_conversions.py
+++ b/tests/test_conversions.py
@@ -305,6 +305,11 @@ def test_pre():
assert md("<p>foo</p>\n<pre>bar</pre>\n</p>baz</p>", sub_symbol="^") == "\n\nfoo\n\n```\nbar\n```\n\nbaz"
+def te... | Inline Quotation element ignored
Html that looks like this:
```html
Here is <q>A Quote</q> from someone.
```
should be rendered as:
```
Here is “A Quote“ from someone.
```
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/q
Solution:
```python
def convert_q(self, el, text, parent_tags):
ret... | @chrispy-snps: @colinrobinsonuib - good catch! We should probably use straight ASCII quotes for wider compatibility with downstream flows.
Are you interested in opening a pull request and officially becoming a contributor?@colinrobinsonuib: Sure https://github.com/matthewwithanm/python-markdownify/pull/217 | 2025-04-28T10:37:33Z | 2025-04-28T10:37:33Z | 0.3.88 | [] | [
"tests/test_conversions.py::test_kbd",
"tests/test_conversions.py::test_hn_atx_headings",
"tests/test_conversions.py::test_b",
"tests/test_conversions.py::test_code",
"tests/test_conversions.py::test_hn_atx_closed_headings",
"tests/test_conversions.py::test_a_spaces",
"tests/test_conversions.py::test_bl... | pip install -e .;
pip install pytest pytest-json-report; | pytest --json-report --json-report-file=report_pytest.json | python:3.11 | {
"command_test_small": "pytest --json-report --json-report-file=report_pytest.json tests/test_conversions.py",
"issue_number": 216,
"merge_commit": "0e1a849346f24e9b15eefb11752feaf7b4b821fa",
"merged_at": "",
"pr_number": 217,
"score": {
"complexity": -1,
"task_correctness": -1,
"test_completen... | 3,000 | 600 | pytest --json-report --json-report-file=report_pytest.json tests/test_conversions.py |
SWE-MERA
Continuously updated SWE-MERA dataset
SWE-MERA splits:
- dev: for testing (10 samples)
- lite: presented at the leaderboard here (750 samples)
- full: continuously updated to collect more data (2738 samples)
Load dataset
from datasets import load_dataset
ds = load_dataset("MERA-evaluation/SWE-MERA", split='dev')
Evaluation
Description
The main tool to validate tasks is repotest (available at PyPI or GitHub)
data.jsonl - dataset file, where after the agent run, the patch column was changed
Install dependencies
pip install repositorytest
Run evaluation
swemera --fn_input=data.jsonl --fn_output=submission.jsonl --column_patch=patch --mode=docker
If you don't want to use Docker and prefer Conda or local execution:
swemera --fn_input=data.jsonl --fn_output=submission.jsonl --column_patch=patch --mode=local
Schema
| Column Name | Type | Description | Is New Column |
|---|---|---|---|
| repo | VARCHAR | Repository name (e.g., GitHub repository) | False |
| instance_id | VARCHAR | Unique identifier for task: f"{repo.replace('/', '_') + '' + pr_number}" | False |
| base_commit | VARCHAR | Commit hash of the base code before patch applied | False |
| patch | VARCHAR | Code patch or diff applied to the base_commit to be the correct solution | False |
| test_patch | VARCHAR | Patch for test code, if separate from main code patch | False |
| problem_statement | VARCHAR | Description or statement of the problem to solve | False |
| hint_text | VARCHAR | Hints or tips for solving the problem from GitHub issue comments | False |
| created_at | VARCHAR | Date when the instance was created | False |
| closed_at | VARCHAR | Date when the instance was closed or resolved | True |
| version | VARCHAR | Version identifier for the instance or dataset | False |
| FAIL_TO_PASS | LIST[VARCHAR] | Test cases which were failing but later passed | False |
| PASS_TO_PASS | LIST[VARCHAR] | Test cases which passed at all times | False |
| environment_setup_commit | VARCHAR | Commit hash for environment setup configuration | False |
| command_build | VARCHAR | Command used to build the repo | True |
| command_test | VARCHAR | Command used to run the tests inside repo | True |
| image_name | VARCHAR | Docker or container image name used for testing environment | True |
| command_test_small | VARCHAR | Command to run a smaller subset of tests | True |
| timeout_build | INTEGER | Timeout limit in seconds for build command | True |
| timeout_test | INTEGER | Timeout limit in seconds for test command | True |
| meta | DICT[STR,ANY] | Additional metadata about the instance* |
*meta field description:
{
"score": {
"task_correctness": "INTEGER",
"test_correctness": "INTEGER",
"complexity": "INTEGER",
"test_completeness": "INTEGER"
},
"type": "VARCHAR",
"pr_number": "INTEGER",
"issue_number": "INTEGER",
"merged_at": "VARCHAR",
"tag": "VARCHAR // Information on how data was collected",
"merge_commit": "VARCHAR",
"task_id": "VARCHAR // Latency identifier of the task",
"url": {
"issue": "VARCHAR",
"pr": "VARCHAR",
"diff": "VARCHAR"
},
"command_test_small": "VARCHAR // Command to run only a small number of tests"
}
Dev tasks Examples
Instances
| Instance ID | Short Title |
|---|---|
| reframe-0 | Performance threshold goes to -inf when it should be zero. |
| pyflakes-1 | Walrus operator + annotation can cause F821 |
| sqlglot-2 | MySQL dialect fails to parse PRIMARY KEY USING BTREE syntax |
| matchms-3 | matchms fails when reading spectra where abundance is in scientific notation #809 |
| guarddog-4 | Add Mach-O magic bytes to bundled binary detector #523 |
| pdoc-5 | Include HTML headers in ToC |
| QCElemental-6 | QCElemental allows floating point numbers for molecular charges, however when computing the spin with the fractional electron there is no way to represent the molecular multiplicity with just an integer. |
| sqlglot-7 | TSQL: PRIMARY KEY constraint fails to parse if |
| sqlglot-8 | [BUG] Conversion from SQL Server's DATEADD(quarter...) to PostgreSQL not working properly |
| python-markdownify-9 | Inline Quotation element ignored |
- Downloads last month
- 8