SWE-rebench-V2
Collection
SWE-rebench-V2 is a curated dataset of software-engineering tasks derived from real GitHub issues and pull requests. • 2 items • Updated
• 2
base_commit stringlengths 40 40 | created_at stringdate 2014-11-10 05:17:52 2025-10-31 18:00:44 | image_name stringlengths 41 98 | instance_id stringlengths 11 68 | interface stringlengths 33 16.8k ⌀ | language stringclasses 20 values | license stringclasses 16 values | patch stringlengths 198 252k | pr_description stringlengths 0 37.8k | problem_statement stringlengths 0 235k | repo stringlengths 5 63 | test_patch stringlengths 149 150k | FAIL_TO_PASS listlengths 1 118k | PASS_TO_PASS listlengths 0 327k | install_config dict | meta dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e5228946a898d799f2b230ff96f943be99fa7842 | 2025-05-22 16:46:59 | docker.io/swerebenchv2/behat-gherkin:343-e522894 | behat__gherkin-343 | No new interfaces are introduced. | php | MIT | diff --git a/src/Parser.php b/src/Parser.php
index f3361f2..befdc6b 100644
--- a/src/Parser.php
+++ b/src/Parser.php
@@ -224,7 +224,9 @@ class Parser
continue;
}
- if (!$background && $node instanceof BackgroundNode) {
+ $isBackgroundAllowed = ($background === null && $scenarios === []);
+
+ if ($isBackgroundAllowed && $node instanceof BackgroundNode) {
$background = $node;
continue;
}
@@ -235,7 +237,7 @@ class Parser
}
throw new UnexpectedParserNodeException(
- match ($background === null && $scenarios === []) {
+ match ($isBackgroundAllowed) {
true => 'Background, Scenario or Outline',
false => 'Scenario or Outline',
},
| change: Throw ParserException if Background comes after first Scenario
Gherkin requires that any Feature `Background:` must come before the first Scenario / Scenario Outline in a file (to match the execution order of these steps).
We were previously allowing the background to appear anywhere at the top (Feature) level of the file. This will now throw a ParserException.
Although this could theoretically cause existing features to break, I do not consider it to be a BC break - we are now just being stricter that the input matches the expected schema.
Fixes #328 | Background should not be allowed after the first Scenario
We currently parse the Background and Scenario out of a file like this:
```
Feature: Whatever
Scenario: Something
Then I should fail
Background:
Given I am in the wrong sequence
```
However, cucumber/gherkin will report this as a parse error, because it does not allow Background nodes after the first Scenario.
There is not yet any testdata for this case, either here or upstream.
See #323 | Behat/Gherkin | diff --git a/tests/Cucumber/extra_testdata/bad/background_after_scenario.feature b/tests/Cucumber/extra_testdata/bad/background_after_scenario.feature
new file mode 100644
index 0000000..c57e1a3
--- /dev/null
+++ b/tests/Cucumber/extra_testdata/bad/background_after_scenario.feature
@@ -0,0 +1,7 @@
+Feature: Feature background cannot come after first scenario
+
+ Scenario:
+ Then I should fail
+
+ Background:
+ Given I am in the wrong sequence
diff --git a/tests/Cucumber/extra_testdata/bad/background_after_scenario.feature.errors.ndjson b/tests/Cucumber/extra_testdata/bad/background_after_scenario.feature.errors.ndjson
new file mode 100644
index 0000000..7c0ee49
--- /dev/null
+++ b/tests/Cucumber/extra_testdata/bad/background_after_scenario.feature.errors.ndjson
@@ -0,0 +1,1 @@
+{"parseError":{"message":"(6:5): expected: #EOF, #TableRow, #DocStringSeparator, #StepLine, #TagLine, #ExamplesLine, #ScenarioLine, #RuleLine, #Comment, #Empty, got 'Background:'","source":{"location":{"column":5,"line":6},"uri":"../bad/background_after_scenario.feature"}}}
| [
"Compatibility > Bad features do not parse with data set \"background_after_scenario.feature\""
] | [
"Array Keywords > Translation with data set \"with_special_chars_0\"",
"Array Keywords > Translation with data set \"with_special_chars_1\"",
"Array Keywords > Translation with data set \"with_special_chars_2\"",
"Array Loader > Supports",
"Array Loader > Load empty",
"Array Loader > Load features",
"Array Loader > Load scenarios",
"Array Loader > Load outline",
"Array Loader > Outline examples",
"Array Loader > Load background",
"Array Loader > Load steps",
"Array Loader > Load step arguments",
"Array Loader > Single feature array",
"Cached Array Keywords > Translation with data set \"en_0\"",
"Cached Array Keywords > Translation with data set \"en_1\"",
"Cached Array Keywords > Translation with data set \"en_2\"",
"Cached Array Keywords > Translation with data set \"af_0\"",
"Cached Array Keywords > Translation with data set \"af_1\"",
"Cached Array Keywords > Translation with data set \"af_2\"",
"Cached Array Keywords > Translation with data set \"am_0\"",
"Cached Array Keywords > Translation with data set \"am_1\"",
"Cached Array Keywords > Translation with data set \"amh_0\"",
"Cached Array Keywords > Translation with data set \"amh_1\"",
"Cached Array Keywords > Translation with data set \"amh_2\"",
"Cached Array Keywords > Translation with data set \"an_0\"",
"Cached Array Keywords > Translation with data set \"ar_0\"",
"Cached Array Keywords > Translation with data set \"ast_0\"",
"Cached Array Keywords > Translation with data set \"az_0\"",
"Cached Array Keywords > Translation with data set \"be_0\"",
"Cached Array Keywords > Translation with data set \"be_1\"",
"Cached Array Keywords > Translation with data set \"bg_0\"",
"Cached Array Keywords > Translation with data set \"bm_0\"",
"Cached Array Keywords > Translation with data set \"bs_0\"",
"Cached Array Keywords > Translation with data set \"ca_0\"",
"Cached Array Keywords > Translation with data set \"ca_1\"",
"Cached Array Keywords > Translation with data set \"cs_0\"",
"Cached Array Keywords > Translation with data set \"cy-GB_0\"",
"Cached Array Keywords > Translation with data set \"da_0\"",
"Cached Array Keywords > Translation with data set \"de_0\"",
"Cached Array Keywords > Translation with data set \"de_1\"",
"Cached Array Keywords > Translation with data set \"el_0\"",
"Cached Array Keywords > Translation with data set \"el_1\"",
"Cached Array Keywords > Translation with data set \"em_0\"",
"Cached Array Keywords > Translation with data set \"en-Scouse_0\"",
"Cached Array Keywords > Translation with data set \"en-au_0\"",
"Cached Array Keywords > Translation with data set \"en-lol_0\"",
"Cached Array Keywords > Translation with data set \"en-pirate_0\"",
"Cached Array Keywords > Translation with data set \"en-tx_0\"",
"Cached Array Keywords > Translation with data set \"en-tx_1\"",
"Cached Array Keywords > Translation with data set \"eo_0\"",
"Cached Array Keywords > Translation with data set \"es_0\"",
"Cached Array Keywords > Translation with data set \"es_1\"",
"Cached Array Keywords > Translation with data set \"es_2\"",
"Cached Array Keywords > Translation with data set \"et_0\"",
"Cached Array Keywords > Translation with data set \"fa_0\"",
"Cached Array Keywords > Translation with data set \"fi_0\"",
"Cached Array Keywords > Translation with data set \"fr_0\"",
"Cached Array Keywords > Translation with data set \"ga_0\"",
"Cached Array Keywords > Translation with data set \"gj_0\"",
"Cached Array Keywords > Translation with data set \"gj_1\"",
"Cached Array Keywords > Translation with data set \"gj_2\"",
"Cached Array Keywords > Translation with data set \"gl_0\"",
"Cached Array Keywords > Translation with data set \"he_0\"",
"Cached Array Keywords > Translation with data set \"hi_0\"",
"Cached Array Keywords > Translation with data set \"hr_0\"",
"Cached Array Keywords > Translation with data set \"hr_1\"",
"Cached Array Keywords > Translation with data set \"hr_2\"",
"Cached Array Keywords > Translation with data set \"ht_0\"",
"Cached Array Keywords > Translation with data set \"ht_1\"",
"Cached Array Keywords > Translation with data set \"ht_2\"",
"Cached Array Keywords > Translation with data set \"hu_0\"",
"Cached Array Keywords > Translation with data set \"id_0\"",
"Cached Array Keywords > Translation with data set \"is_0\"",
"Cached Array Keywords > Translation with data set \"it_0\"",
"Cached Array Keywords > Translation with data set \"it_1\"",
"Cached Array Keywords > Translation with data set \"it_2\"",
"Cached Array Keywords > Translation with data set \"ja_0\"",
"Cached Array Keywords > Translation with data set \"ja_1\"",
"Cached Array Keywords > Translation with data set \"jv_0\"",
"Cached Array Keywords > Translation with data set \"ka_0\"",
"Cached Array Keywords > Translation with data set \"ka_1\"",
"Cached Array Keywords > Translation with data set \"kn_0\"",
"Cached Array Keywords > Translation with data set \"ko_0\"",
"Cached Array Keywords > Translation with data set \"lt_0\"",
"Cached Array Keywords > Translation with data set \"lu_0\"",
"Cached Array Keywords > Translation with data set \"lv_0\"",
"Cached Array Keywords > Translation with data set \"lv_1\"",
"Cached Array Keywords > Translation with data set \"mk-Cyrl_0\"",
"Cached Array Keywords > Translation with data set \"mk-Cyrl_1\"",
"Cached Array Keywords > Translation with data set \"mk-Cyrl_2\"",
"Cached Array Keywords > Translation with data set \"mk-Latn_0\"",
"Cached Array Keywords > Translation with data set \"mk-Latn_1\"",
"Cached Array Keywords > Translation with data set \"mk-Latn_2\"",
"Cached Array Keywords > Translation with data set \"ml_0\"",
"Cached Array Keywords > Translation with data set \"mn_0\"",
"Cached Array Keywords > Translation with data set \"mn_1\"",
"Cached Array Keywords > Translation with data set \"mr_0\"",
"Cached Array Keywords > Translation with data set \"mr_1\"",
"Cached Array Keywords > Translation with data set \"nl_0\"",
"Cached Array Keywords > Translation with data set \"no_0\"",
"Cached Array Keywords > Translation with data set \"pa_0\"",
"Cached Array Keywords > Translation with data set \"pa_1\"",
"Cached Array Keywords > Translation with data set \"pa_2\"",
"Cached Array Keywords > Translation with data set \"pl_0\"",
"Cached Array Keywords > Translation with data set \"pl_1\"",
"Cached Array Keywords > Translation with data set \"pl_2\"",
"Cached Array Keywords > Translation with data set \"pl_3\"",
"Cached Array Keywords > Translation with data set \"pt_0\"",
"Cached Array Keywords > Translation with data set \"pt_1\"",
"Cached Array Keywords > Translation with data set \"pt_2\"",
"Cached Array Keywords > Translation with data set \"ro_0\"",
"Cached Array Keywords > Translation with data set \"ro_1\"",
"Cached Array Keywords > Translation with data set \"ro_2\"",
"Cached Array Keywords > Translation with data set \"ru_0\"",
"Cached Array Keywords > Translation with data set \"ru_1\"",
"Cached Array Keywords > Translation with data set \"ru_2\"",
"Cached Array Keywords > Translation with data set \"ru_3\"",
"Cached Array Keywords > Translation with data set \"ru_4\"",
"Cached Array Keywords > Translation with data set \"sk_0\"",
"Cached Array Keywords > Translation with data set \"sk_1\"",
"Cached Array Keywords > Translation with data set \"sk_2\"",
"Cached Array Keywords > Translation with data set \"sl_0\"",
"Cached Array Keywords > Translation with data set \"sl_1\"",
"Cached Array Keywords > Translation with data set \"sl_2\"",
"Cached Array Keywords > Translation with data set \"sl_3\"",
"Cached Array Keywords > Translation with data set \"sl_4\"",
"Cached Array Keywords > Translation with data set \"sl_5\"",
"Cached Array Keywords > Translation with data set \"sr-Cyrl_0\"",
"Cached Array Keywords > Translation with data set \"sr-Cyrl_1\"",
"Cached Array Keywords > Translation with data set \"sr-Cyrl_2\"",
"Cached Array Keywords > Translation with data set \"sr-Latn_0\"",
"Cached Array Keywords > Translation with data set \"sr-Latn_1\"",
"Cached Array Keywords > Translation with data set \"sr-Latn_2\"",
"Cached Array Keywords > Translation with data set \"sr-Latn_3\"",
"Cached Array Keywords > Translation with data set \"sv_0\"",
"Cached Array Keywords > Translation with data set \"ta_0\"",
"Cached Array Keywords > Translation with data set \"ta_1\"",
"Cached Array Keywords > Translation with data set \"ta_2\"",
"Cached Array Keywords > Translation with data set \"te_0\"",
"Cached Array Keywords > Translation with data set \"th_0\"",
"Cached Array Keywords > Translation with data set \"th_1\"",
"Cached Array Keywords > Translation with data set \"th_2\"",
"Cached Array Keywords > Translation with data set \"tlh_0\"",
"Cached Array Keywords > Translation with data set \"tlh_1\"",
"Cached Array Keywords > Translation with data set \"tlh_2\"",
"Cached Array Keywords > Translation with data set \"tlh_3\"",
"Cached Array Keywords > Translation with data set \"tlh_4\"",
"Cached Array Keywords > Translation with data set \"tr_0\"",
"Cached Array Keywords > Translation with data set \"tt_0\"",
"Cached Array Keywords > Translation with data set \"tt_1\"",
"Cached Array Keywords > Translation with data set \"uk_0\"",
"Cached Array Keywords > Translation with data set \"ur_0\"",
"Cached Array Keywords > Translation with data set \"ur_1\"",
"Cached Array Keywords > Translation with data set \"ur_2\"",
"Cached Array Keywords > Translation with data set \"vi_0\"",
"Cached Array Keywords > Translation with data set \"zh-CN_0\"",
"Cached Array Keywords > Translation with data set \"zh-TW_0\"",
"Compatibility > Features parse the same as cucumber with data set \"background.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"datatables.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"empty.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"example_token_multiple.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"example_tokens_everywhere.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"extra_table_content.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"i18n_emoji.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"i18n_fr.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"i18n_no.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"incomplete_background_1.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"incomplete_feature_1.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"incomplete_feature_2.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"incomplete_feature_3.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"incomplete_scenario.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"incomplete_scenario_outline.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"language.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"minimal-example.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"minimal.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"readme_example.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"scenario_outline.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"scenario_outline_no_newline.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"scenario_outline_with_docstring.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"scenario_outline_with_value_with_dollar_sign.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"scenario_outline_with_value_with_trailing_backslash.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"scenario_outlines_with_tags.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"several_examples.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"tagged_feature_with_scenario_outline.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"very_long.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"feature_keyword_in_feature_description.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"language_tag_after_feature_started.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"multiple_language_comments.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"step_keyword_in_feature_description.feature\"",
"Compatibility > Features parse the same as cucumber with data set \"tmp_simple_docstrings.feature\"",
"Compatibility > Bad features do not parse with data set \"backslash_at_end_of_line_in_datatable.feature\"",
"Compatibility > Bad features do not parse with data set \"file_ends_with_open_docstring.feature\"",
"Compatibility > Bad features do not parse with data set \"inconsistent_cell_count.feature\"",
"Compatibility > Bad features do not parse with data set \"multiple_parser_errors.feature\"",
"Compatibility > Bad features do not parse with data set \"not_gherkin.feature\"",
"Compatibility > Bad features do not parse with data set \"single_parser_error.feature\"",
"Compatibility > Bad features do not parse with data set \"unexpected_end_of_file.feature\"",
"Compatibility > Bad features do not parse with data set \"unexpected_eof.feature\"",
"Compatibility > Bad features do not parse with data set \"unfinished_datatable.feature\"",
"Compatibility > Bad features do not parse with data set \"whitespace_in_tags.feature\"",
"Compatibility > Bad features do not parse with data set \"multiple_backgrounds.feature\"",
"Compatibility > Bad features do not parse with data set \"multiple_features.feature\"",
"Compatibility > Bad features do not parse with data set \"steps_after_examples.feature\"",
"Compatibility > Bad features do not parse with data set \"tagged_background.feature\"",
"Compatibility > Bad features do not parse with data set \"tagged_step.feature\"",
"Compatibility > Bad features do not parse with data set \"unfinished_docstring.feature\"",
"Compatibility > Bad features do not parse with data set \"unknown_step_type.feature\"",
"Complex Filter > Filter feature should return same instance when not filtering",
"Complex Filter > Filter feature should return different instance when filtering out all scenarios",
"Complex Filter > Filter feature should return different instance when filtering scenarios",
"Cucumber Keywords > Translation with data set \"en_0\"",
"Cucumber Keywords > Translation with data set \"ar_0\"",
"Cucumber Keywords > Translation with data set \"bg_0\"",
"Cucumber Keywords > Translation with data set \"ca_0\"",
"Cucumber Keywords > Translation with data set \"ca_1\"",
"Cucumber Keywords > Translation with data set \"cy-GB_0\"",
"Cucumber Keywords > Translation with data set \"cs_0\"",
"Cucumber Keywords > Translation with data set \"da_0\"",
"Cucumber Keywords > Translation with data set \"de_0\"",
"Cucumber Keywords > Translation with data set \"en-au_0\"",
"Cucumber Keywords > Translation with data set \"en-lol_0\"",
"Cucumber Keywords > Translation with data set \"en-pirate_0\"",
"Cucumber Keywords > Translation with data set \"en-Scouse_0\"",
"Cucumber Keywords > Translation with data set \"en-tx_0\"",
"Cucumber Keywords > Translation with data set \"eo_0\"",
"Cucumber Keywords > Translation with data set \"es_0\"",
"Cucumber Keywords > Translation with data set \"et_0\"",
"Cucumber Keywords > Translation with data set \"fi_0\"",
"Cucumber Keywords > Translation with data set \"fr_0\"",
"Cucumber Keywords > Translation with data set \"he_0\"",
"Cucumber Keywords > Translation with data set \"hr_0\"",
"Cucumber Keywords > Translation with data set \"hr_1\"",
"Cucumber Keywords > Translation with data set \"hr_2\"",
"Cucumber Keywords > Translation with data set \"hu_0\"",
"Cucumber Keywords > Translation with data set \"id_0\"",
"Cucumber Keywords > Translation with data set \"is_0\"",
"Cucumber Keywords > Translation with data set \"it_0\"",
"Cucumber Keywords > Translation with data set \"ja_0\"",
"Cucumber Keywords > Translation with data set \"ja_1\"",
"Cucumber Keywords > Translation with data set \"ko_0\"",
"Cucumber Keywords > Translation with data set \"lt_0\"",
"Cucumber Keywords > Translation with data set \"lu_0\"",
"Cucumber Keywords > Translation with data set \"lv_0\"",
"Cucumber Keywords > Translation with data set \"lv_1\"",
"Cucumber Keywords > Translation with data set \"nl_0\"",
"Cucumber Keywords > Translation with data set \"no_0\"",
"Cucumber Keywords > Translation with data set \"pl_0\"",
"Cucumber Keywords > Translation with data set \"pt_0\"",
"Cucumber Keywords > Translation with data set \"ro_0\"",
"Cucumber Keywords > Translation with data set \"ro_1\"",
"Cucumber Keywords > Translation with data set \"ro_2\"",
"Cucumber Keywords > Translation with data set \"ru_0\"",
"Cucumber Keywords > Translation with data set \"ru_1\"",
"Cucumber Keywords > Translation with data set \"ru_2\"",
"Cucumber Keywords > Translation with data set \"sv_0\"",
"Cucumber Keywords > Translation with data set \"sk_0\"",
"Cucumber Keywords > Translation with data set \"sr-Latn_0\"",
"Cucumber Keywords > Translation with data set \"sr-Latn_1\"",
"Cucumber Keywords > Translation with data set \"sr-Latn_2\"",
"Cucumber Keywords > Translation with data set \"sr-Latn_3\"",
"Cucumber Keywords > Translation with data set \"sr-Cyrl_0\"",
"Cucumber Keywords > Translation with data set \"sr-Cyrl_1\"",
"Cucumber Keywords > Translation with data set \"sr-Cyrl_2\"",
"Cucumber Keywords > Translation with data set \"tr_0\"",
"Cucumber Keywords > Translation with data set \"uk_0\"",
"Cucumber Keywords > Translation with data set \"vi_0\"",
"Cucumber Keywords > Translation with data set \"zh-CN_0\"",
"Cucumber Keywords > Translation with data set \"zh-TW_0\"",
"Cucumber Keywords > Yaml source file is attached to exception",
"Cucumber Keywords > Yaml root must be an array",
"Cucumber Keywords > Yaml file must be readable",
"Cucumber NDJson Ast Loader > String resources are supported",
"Cucumber NDJson Ast Loader > Valid loading",
"Cucumber NDJson Ast Loader > Non empty outline table body requires table header",
"Cucumber NDJson Ast Loader > Empty outline table body does not require table header",
"Directory Loader > Supports",
"Directory Loader > Undefined file load",
"Directory Loader > Base path",
"Directory Loader > Defined file load",
"Example Node > Create example steps",
"Example Node > Create example steps with arguments",
"File Cache > Is fresh when there is no file",
"File Cache > Is fresh on fresh file",
"File Cache > Is fresh on outdated",
"File Cache > Cache and read",
"File Cache > Broken cache read",
"File Cache > Unwriteable cache dir",
"Gherkin > Loader",
"Gherkin > Not found loader",
"Gherkin > Loader filters features",
"Gherkin > Set filters overrides all filters",
"Gherkin > Set base path",
"Gherkin > Resource line filter with data set \"single line\"",
"Gherkin > Resource line filter with data set \"multiple lines, finite range\"",
"Gherkin > Resource line filter with data set \"multiple lines, open-ended\"",
"Gherkin > Resource line filter with data set \"all lines (no filter)\"",
"Gherkin File Loader > Supports",
"Gherkin File Loader > Load",
"Gherkin File Loader > Parsing uncached feature",
"Gherkin File Loader > Parsing cached feature",
"Gherkin File Loader > Base path",
"Keywords Dumper > En keywords dumper",
"Keywords Dumper > Ru keywords dumper",
"Keywords Dumper > Ru keywords custom keywords dumper",
"Keywords Dumper > Extended version dumper",
"Line Filter > Is feature match filter",
"Line Filter > Is scenario match filter",
"Line Filter > Filter feature scenario",
"Line Filter > Filter feature outline",
"Line Range Filter > Is feature match filter with data set #0",
"Line Range Filter > Is feature match filter with data set #1",
"Line Range Filter > Is feature match filter with data set #2",
"Line Range Filter > Is feature match filter with data set #3",
"Line Range Filter > Is feature match filter with data set #4",
"Line Range Filter > Is scenario match filter with data set #0",
"Line Range Filter > Is scenario match filter with data set #1",
"Line Range Filter > Is scenario match filter with data set #2",
"Line Range Filter > Is scenario match filter with data set #3",
"Line Range Filter > Is scenario match filter with data set #4",
"Line Range Filter > Is scenario match filter with data set #5",
"Line Range Filter > Is scenario match filter with data set #6",
"Line Range Filter > Is scenario match filter with data set #7",
"Line Range Filter > Is scenario match filter with data set #8",
"Line Range Filter > Filter feature scenario",
"Line Range Filter > Filter feature outline",
"Memory Cache > Is fresh when there is no file",
"Memory Cache > Is fresh on fresh file",
"Memory Cache > Is fresh on outdated",
"Memory Cache > Cache and read",
"Name Filter > Filter feature",
"Name Filter > Is feature match filter",
"Name Filter > Untitled feature does not match",
"Name Filter > Is scenario match filter",
"Name Filter > Untitled scenario does not match",
"Narrative Filter > Is feature match filter",
"Narrative Filter > Is scenario match filter",
"Outline Node > Creates examples for example table",
"Outline Node > Creates examples for example table with several examples and tags",
"Outline Node > Creates empty examples for empty example table",
"Outline Node > Creates empty examples for no example table",
"Outline Node > Populates example with outline title",
"Parser > Parser with data set \"addition\"",
"Parser > Parser with data set \"background\"",
"Parser > Parser with data set \"background_title\"",
"Parser > Parser with data set \"big_pystring\"",
"Parser > Parser with data set \"clean_tags\"",
"Parser > Parser with data set \"commented_out\"",
"Parser > Parser with data set \"comments\"",
"Parser > Parser with data set \"complex_descriptions\"",
"Parser > Parser with data set \"empty\"",
"Parser > Parser with data set \"empty_scenario\"",
"Parser > Parser with data set \"empty_scenario_without_linefeed\"",
"Parser > Parser with data set \"empty_scenarios\"",
"Parser > Parser with data set \"fibonacci\"",
"Parser > Parser with data set \"hashes_in_quotes\"",
"Parser > Parser with data set \"issue_13\"",
"Parser > Parser with data set \"ja_addition\"",
"Parser > Parser with data set \"long_title_feature\"",
"Parser > Parser with data set \"multiline_name\"",
"Parser > Parser with data set \"multiline_name_with_newlines\"",
"Parser > Parser with data set \"multiplepystrings\"",
"Parser > Parser with data set \"outline_with_multiple_examples\"",
"Parser > Parser with data set \"outline_with_spaces\"",
"Parser > Parser with data set \"outline_with_step_table\"",
"Parser > Parser with data set \"pystring\"",
"Parser > Parser with data set \"ru_addition\"",
"Parser > Parser with data set \"ru_commented\"",
"Parser > Parser with data set \"ru_consecutive_calculations\"",
"Parser > Parser with data set \"ru_division\"",
"Parser > Parser with data set \"start_comments\"",
"Parser > Parser with data set \"tables\"",
"Parser > Parser with data set \"tags_sample\"",
"Parser > Parser with data set \"test_unit\"",
"Parser > Parser with data set \"trimpystring\"",
"Parser > Parser with data set \"undefined_multiline_args\"",
"Parser > Parser resets tags between features",
"Parser > Single character step support",
"Parser > Parser error with data set \"missing feature\"",
"Parser > Parser error with data set \"invalid content encoding\"",
"Parser > Parser error with data set \"text content in background\"",
"Parser > Parser error with data set \"text content in outline\"",
"Parser > Parser error with data set \"invalid outline examples table\"",
"Parser Exceptions > Text in background",
"Parser Exceptions > Text in scenario",
"Paths Filter > Is feature match filter",
"Paths Filter > It does not match partial paths",
"Paths Filter > It does not match if file with same name but not path exists in folder",
"Paths Filter > Is scenario match filter",
"Py String Node > Get strings",
"Py String Node > Get raw",
"Role Filter > Is feature match filter",
"Role Filter > Feature role prefixed with an",
"Role Filter > Is scenario match filter",
"Step Node > That step can have only one argument",
"Table Node > Constructor expects same number of columns in each row",
"Table Node > Constructor expects two dimensional array",
"Table Node > Constructor expects scalar cell value",
"Table Node > Constructor expects equal row lengths",
"Table Node > Hash table",
"Table Node > Iterator",
"Table Node > Rows hash table",
"Table Node > Long rows hash table",
"Table Node > Get rows",
"Table Node > Get lines",
"Table Node > Get row",
"Table Node > Get column",
"Table Node > Get row with line numbers",
"Table Node > Get table",
"Table Node > Get row line",
"Table Node > Get row as string",
"Table Node > Get table as string",
"Table Node > From list",
"Table Node > From list with line numbers",
"Table Node > Merge rows from table pass several tables should be merged",
"Table Node > Merge rows from table wrong header name exception thrown",
"Table Node > Get table from list with multidimensional array argument",
"Table Node > Merge rows from table wrong header order exception thrown",
"Table Node > Merge rows from table wrong header size exception thrown",
"Tag Filter > Filter feature",
"Tag Filter > Is feature match filter",
"Tag Filter > Is scenario match filter",
"Tag Filter > Filter feature with tagged examples",
"Tag Filter > Filter with whitespace is deprecated",
"Tag Filter > Tag filter that is all whitespace is ignored",
"Tagged Node Trait > Has tags",
"Tagged Node Trait > Has tag",
"Yaml File Loader > Supports",
"Yaml File Loader > Load addition"
] | {
"base_image_name": "php_8.3.16",
"docker_specs": null,
"install": [
"export COMPOSER_HOME=/tmp/composer",
"composer install --no-interaction --prefer-dist --ansi"
],
"log_parser": "parse_log_phpunit",
"test_cmd": "./vendor/bin/phpunit --testdox --display-incomplete --display-skipped"
} | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [
"minor_bug"
],
"reasoning": "The issue requests that the parser reject a Background node placed after the first Scenario, matching Gherkin's rules. The provided test adds a feature file with a misplaced Background and asserts a specific parse error, which directly validates the requested behavior. There are no signs of missing specs, external dependencies, naming expectations, or hidden knowledge; the test aligns with the described requirement. Therefore the task is clearly specified and solvable (A).",
"test_alignment_issues": []
},
"num_modified_files": 1,
"num_modified_lines": 4,
"pr_author": "acoulton",
"pr_labels": [],
"pr_url": null
} |
1a9a55f2f579abf1105a15c13d8741c92156f369 | 2021-05-02 19:12:10 | docker.io/swerebenchv2/phpbench-phpbench:823-1a9a55f | phpbench__phpbench-823 | Method: XmlEncoder::encode(SuiteCollection $collection): Document
Location: lib/Serializer/XmlEncoder.php
Inputs: A SuiteCollection object which may contain scalar, array, binary, collection **and** serializable object parameters.
Outputs: Returns a PhpBench\Dom\Document representing the XML serialization of the suite. May throw RuntimeException with message “Cannot serialize” when a parameter value cannot be serialized (e.g., a closure or other unserializable type).
Description: Serialises a benchmark suite to XML. Added support for serialisable objects (stored as base64‑encoded `serialized` parameters) and now explicitly rejects unserializable values by throwing a RuntimeException.
Method: XmlDecoder::decode(Document $dom): SuiteCollection
Location: lib/Serializer/XmlDecoder.php
Inputs: A PhpBench\Dom\Document containing a previously encoded suite XML.
Outputs: Returns a SuiteCollection reconstructed from the XML. Supports deserialising parameters whose `type` attribute is `serialized` by base64‑decoding and `unserialize`‑ing the value.
Description: Decodes an XML document back into a SuiteCollection, now handling parameters that were encoded as serialized objects.
| php | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index dd2fb302..f52de011 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,7 @@ dev-master
Improvements:
- Support for binary data in param providers #532
+- Support serializable objects in param providers #823
Bug fix:
diff --git a/lib/Serializer/XmlDecoder.php b/lib/Serializer/XmlDecoder.php
index ed3ba0da..aabae6e3 100644
--- a/lib/Serializer/XmlDecoder.php
+++ b/lib/Serializer/XmlDecoder.php
@@ -13,6 +13,7 @@
namespace PhpBench\Serializer;
use function base64_decode;
+use DOMElement;
use PhpBench\Assertion\AssertionResult;
use PhpBench\Dom\Document;
use PhpBench\Dom\Element;
@@ -110,6 +111,7 @@ class XmlDecoder
$resultClasses = [];
foreach ($suiteEl->query('//result') as $resultEl) {
+ assert($resultEl instanceof DOMElement);
$class = $resultEl->getAttribute('class');
if (!class_exists($class)) {
@@ -125,6 +127,7 @@ class XmlDecoder
$suite->setEnvInformations($informations);
foreach ($suiteEl->query('./benchmark') as $benchmarkEl) {
+ assert($benchmarkEl instanceof Element);
$benchmark = $suite->createBenchmark(
$benchmarkEl->getAttribute('class')
);
@@ -218,6 +221,12 @@ class XmlDecoder
continue;
}
+ if ($parameterEl->getAttribute('type') === XmlEncoder::PARAM_TYPE_SERIALIZED) {
+ $parameters[$name] = unserialize(base64_decode($parameterEl->nodeValue));
+
+ continue;
+ }
+
if ($parameterEl->getAttribute('xsi:nil') === 'true') {
$parameters[$name] = null;
diff --git a/lib/Serializer/XmlEncoder.php b/lib/Serializer/XmlEncoder.php
index 726c5c29..e8a80e10 100644
--- a/lib/Serializer/XmlEncoder.php
+++ b/lib/Serializer/XmlEncoder.php
@@ -14,6 +14,7 @@ namespace PhpBench\Serializer;
use function base64_encode;
use DOMElement;
+use Exception;
use PhpBench\Dom\Document;
use PhpBench\Dom\Element;
use PhpBench\Model\Benchmark;
@@ -24,6 +25,7 @@ use PhpBench\Model\SuiteCollection;
use PhpBench\Model\Variant;
use PhpBench\PhpBench;
use PhpBench\Util\TimeUnit;
+use RuntimeException;
/**
* Encodes the Suite object graph into an XML document.
@@ -32,6 +34,7 @@ class XmlEncoder
{
public const PARAM_TYPE_BINARY = 'binary';
public const PARAM_TYPE_COLLECTION = 'collection';
+ const PARAM_TYPE_SERIALIZED = 'serialized';
/**
* Encode a Suite object into a XML document.
@@ -232,10 +235,17 @@ class XmlEncoder
return $parameterEl;
}
- throw new \InvalidArgumentException(sprintf(
- 'Parameters must be either scalars or arrays, got: %s',
- is_object($value) ? get_class($value) : gettype($value)
- ));
+ try {
+ $serialized = @serialize($value);
+ } catch (Exception $e) {
+ throw new RuntimeException(sprintf(
+ 'Cannot serialize object of type "%s" for parameter "%s"', gettype($value), $name
+ ));
+ }
+ $parameterEl->setAttribute('type', self::PARAM_TYPE_SERIALIZED);
+ $parameterEl->appendChild(
+ $parameterEl->ownerDocument->createCDATASection(base64_encode($serialized))
+ );
}
private function appendExecutor(Element $subjectEl, ResolvedExecutor $executor = null): void
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index 99430d07..4c3cfa5e 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -7,12 +7,7 @@ parameters:
-
message: "#^Call to an undefined method DOMNode\\:\\:getAttribute\\(\\)\\.$#"
- count: 22
- path: lib/Serializer/XmlDecoder.php
-
- -
- message: "#^Parameter \\#2 \\$benchmarkEl of method PhpBench\\\\Serializer\\\\XmlDecoder\\:\\:processBenchmark\\(\\) expects PhpBench\\\\Dom\\\\Element, DOMNode given\\.$#"
- count: 1
+ count: 20
path: lib/Serializer/XmlDecoder.php
-
| Serialize objects
Fixes #615 | Unable to use DateTime value in provider
If I use a `DateTime` instance in a provider, phpbench errors with:
>In Reflector.php line 109:
>Overloaded object of type DateTime is not compatible with RecursiveArrayIterator
```
public function provideTypes()
{
yield 'first' => ['time' => new DateTime()];
}
``` | phpbench/phpbench | diff --git a/tests/Unit/Serializer/XmlDecoderTest.php b/tests/Unit/Serializer/XmlDecoderTest.php
index a8abd9d2..c0fbd458 100644
--- a/tests/Unit/Serializer/XmlDecoderTest.php
+++ b/tests/Unit/Serializer/XmlDecoderTest.php
@@ -188,6 +188,21 @@ EOT
);
}
+ public function doTestDate(SuiteCollection $collection): void
+ {
+ $dom = $this->encode($collection);
+
+ $decoder = new XmlDecoder();
+ $collection = $decoder->decode($dom);
+
+ $decodedDom = $this->encode($collection);
+
+ $this->assertEquals(
+ $dom->dump(),
+ $decodedDom->dump()
+ );
+ }
+
private function encode(SuiteCollection $collection)
{
$xmlEncoder = new XmlEncoder();
diff --git a/tests/Unit/Serializer/XmlEncoderTest.php b/tests/Unit/Serializer/XmlEncoderTest.php
index bd7c53ef..3a2a25b4 100644
--- a/tests/Unit/Serializer/XmlEncoderTest.php
+++ b/tests/Unit/Serializer/XmlEncoderTest.php
@@ -12,6 +12,7 @@
namespace PhpBench\Tests\Unit\Serializer;
+use PhpBench\Dom\Document;
use PhpBench\Environment\Information;
use PhpBench\Model\Benchmark;
use PhpBench\Model\Iteration;
@@ -22,6 +23,7 @@ use PhpBench\Model\Variant;
use PhpBench\PhpBench;
use PhpBench\Serializer\XmlEncoder;
use PhpBench\Tests\Util\Approval;
+use RuntimeException;
class XmlEncoderTest extends XmlTestCase
{
@@ -47,16 +49,46 @@ class XmlEncoderTest extends XmlTestCase
$params = $approval->getConfig(0);
$collection = $this->getSuiteCollection($params);
- $xmlEncoder = new XmlEncoder();
- $dom = $xmlEncoder->encode($collection);
- $approval->approve(str_replace(PhpBench::version(), 'PHPBENCH_VERSION', $dom->dump()));
+ $dom = $this->encode($collection);
+ $approval->approve($this->dumpNormalized($dom));
}
public function doTestBinary(SuiteCollection $collection): void
{
$approval = Approval::create(__DIR__ . '/examples/binary1.example', 0);
+ $dom = $this->encode($collection);
+ $approval->approve($this->dumpNormalized($dom));
+ }
+
+ public function doTestDate(SuiteCollection $collection): void
+ {
+ $approval = Approval::create(__DIR__ . '/examples/date1.example', 0);
+ $dom = $this->encode($collection);
+ $approval->approve($this->dumpNormalized($dom));
+ }
+
+ public function testUnserizableParameter(): void
+ {
+ $this->expectException(RuntimeException::class);
+ $this->expectExceptionMessage('Cannot serialize');
+ $collection = $this->getSuiteCollection([
+ 'params' => [
+ 'invalid' => function (): void {
+ }
+ ],
+ ]);
+ $this->encode($collection);
+ }
+
+ private function dumpNormalized(Document $dom)
+ {
+ return str_replace(PhpBench::version(), 'PHPBENCH_VERSION', $dom->dump());
+ }
+
+ private function encode(SuiteCollection $collection): Document
+ {
$xmlEncoder = new XmlEncoder();
- $dom = $xmlEncoder->encode($collection);
- $approval->approve(str_replace(PhpBench::version(), 'PHPBENCH_VERSION', $dom->dump()));
+
+ return $xmlEncoder->encode($collection);
}
}
diff --git a/tests/Unit/Serializer/XmlTestCase.php b/tests/Unit/Serializer/XmlTestCase.php
index c464b968..eb3ef3e9 100644
--- a/tests/Unit/Serializer/XmlTestCase.php
+++ b/tests/Unit/Serializer/XmlTestCase.php
@@ -12,6 +12,7 @@
namespace PhpBench\Tests\Unit\Serializer;
+use DateTime;
use PhpBench\Assertion\AssertionResult;
use PhpBench\Assertion\VariantAssertionResults;
use PhpBench\Environment\Information;
@@ -155,5 +156,16 @@ abstract class XmlTestCase extends TestCase
$this->doTestBinary($collection);
}
+ public function testDate(): void
+ {
+ $collection = $this->getSuiteCollection([
+ 'params' => [
+ 'foo' => new DateTime('2021-01-01 00:00:00+00:00'),
+ ]
+ ]);
+ $this->doTestDate($collection);
+ }
+
abstract public function doTestBinary(SuiteCollection $collection): void;
+ abstract public function doTestDate(SuiteCollection $collection): void;
}
diff --git a/tests/Unit/Serializer/examples/date1.example b/tests/Unit/Serializer/examples/date1.example
new file mode 100644
index 00000000..39bb7bf9
--- /dev/null
+++ b/tests/Unit/Serializer/examples/date1.example
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<phpbench xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="PHPBENCH_VERSION">
+ <suite tag="test" context="test" date="2015-01-01T00:00:00+00:00" config-path="/path/to/config.json" uuid="1234">
+ <env>
+ <info1>
+ <value name="foo" type="string">fooo & bar</value>
+ </info1>
+ </env>
+ <benchmark class="Bench1">
+ <subject name="subjectName">
+ <executor name="foo"/>
+ <variant sleep="5" output-time-unit="milliseconds" output-time-precision="7" output-mode="throughput" revs="100" warmup="50" retry-threshold="10">
+ <parameter-set name="some params">
+ <parameter name="foo" type="serialized"><![CDATA[Tzo4OiJEYXRlVGltZSI6Mzp7czo0OiJkYXRlIjtzOjI2OiIyMDIxLTAxLTAxIDAwOjAwOjAwLjAwMDAwMCI7czoxMzoidGltZXpvbmVfdHlwZSI7aToxO3M6ODoidGltZXpvbmUiO3M6NjoiKzAwOjAwIjt9]]></parameter>
+ </parameter-set>
+ <iteration time-net="10" time-revs="1" time-avg="10" mem-peak="100" mem-real="110" mem-final="109" comp-z-value="0" comp-deviation="0"/>
+ <stats max="0.1" mean="0.1" min="0.1" mode="0.1" rstdev="0" stdev="0" sum="0.1" variance="0"/>
+ </variant>
+ </subject>
+ </benchmark>
+ <result key="time" class="PhpBench\Model\Result\TimeResult"/>
+ <result key="mem" class="PhpBench\Model\Result\MemoryResult"/>
+ <result key="comp" class="PhpBench\Model\Result\ComputedResult"/>
+ </suite>
+</phpbench>
| [
"Xml Decoder > Date",
"Xml Encoder > Unserizable parameter",
"Xml Encoder > Date"
] | [
"Commands > Command with data set #0",
"Commands > Command with data set #1",
"Commands > Command with data set #2",
"Commands > Command with data set #3",
"Commands > Command with data set #4",
"Commands > Command with data set #5",
"Commands > Command with data set #6",
"Commands > Command with data set #7",
"Commands > Command with data set #8",
"Commands > Command with data set #9",
"Commands > Command with data set #10",
"Commands > Command with data set #11",
"Commands > Command with data set #12",
"Commands > Command with data set #13",
"Commands > Command with data set #14",
"Expression Linter > Expression with data set #0",
"Expression Linter > Expression with data set #1",
"Expression Linter > Expression with data set #2",
"Expression Linter > Expression with data set #3",
"Expression Linter > Expression with data set #4",
"Expression Linter > Expression with data set #5",
"Expression Linter > Expression with data set #6",
"Expression Linter > Expression with data set #7",
"Expression Linter > Expression with data set #8",
"Expression Linter > Expression with data set #9",
"Expression Linter > Expression with data set #10",
"Expression Linter > Expression with data set #11",
"Expression Linter > Expression with data set #12",
"Expression Linter > Expression with data set #13",
"Expression Linter > Expression with data set #14",
"Expression Linter > Expression with data set #15",
"Expression Linter > Expression with data set #16",
"Expression Linter > Expression with data set #17",
"Expression Linter > Expression with data set #18",
"Expression Linter > Expression with data set #19",
"Expression Linter > Expression with data set #20",
"Expression Linter > Expression with data set #21",
"Expression Linter > Expression with data set #22",
"Configured Reports > Report with data set #0",
"Configured Reports > Report with data set #1",
"Configured Reports > Report with data set #2",
"Configured Reports > Report with data set #3",
"Configured Reports > Report with data set #4",
"Configured Reports > Report with data set #5",
"Configured Reports > Report with data set #6",
"Configured Reports > Report with data set #7",
"Configured Reports > Report with data set #8",
"Configured Reports > Report with data set #9",
"Configured Reports > Report with data set #10",
"Configured Reports > Report with data set #11",
"Config Reference > Generate config reference",
"Report > No reports",
"Report > Non existing file",
"Run > Specified config",
"Run > Php bench config",
"Run > Php bench dist config",
"Run > Command with no path",
"Run > Command with report configuration unknown",
"Run > Command with report configuration invalid",
"Run > Fail invalid report name",
"Run > Override parameters invalid json",
"Run > Override time unit",
"Run > Override mode",
"Run > Progress logger with data set #0",
"Run > Progress logger with data set #1",
"Run > Progress logger with data set #2",
"Run > Progress logger with data set #3",
"Run > Progress logger with data set #4",
"Run > Progress logger with data set #5",
"Run > Progress logger with data set #6",
"Run > Zero timed iterations",
"Run > Error when timeout exceeded",
"Run > Error when unknown profile given",
"Run > Theme not found",
"Assertion Processor > Assert with data set #0",
"Assertion Processor > Assert with data set #1",
"Assertion Processor > Assert with data set #2",
"Benchmark Finder > From multiple paths",
"Cartesian Iterator > Iterate with data set \"0 x 0\"",
"Cartesian Iterator > Iterate with data set \"1 x 0\"",
"Cartesian Iterator > Iterate with data set \"1 x 1\"",
"Cartesian Iterator > Iterate with data set \"2 x 2\"",
"Cartesian Iterator > Iterate with data set \"3 x 2\"",
"Cartesian Iterator > Iterate with data set \"named\"",
"Cartesian Iterator > Iterate with data set \"uneven first set\"",
"Cartesian Iterator > Iterate with data set \"uneven second set\"",
"Annotation Reader > Load class metadata",
"Annotation Reader > Load method metadata",
"Annotation Reader > Imported use",
"Benchmark Metadata > Filter",
"Benchmark Metadata > Filter class name",
"Benchmark Metadata > Filter regex",
"Benchmark Metadata > Has subjects",
"Benchmark Metadata > Merge",
"Annotation Driver > Load class metadata",
"Annotation Driver > Ignore common annotations",
"Annotation Driver > Load subject",
"Annotation Driver > Load subject non prefixed",
"Annotation Driver > Load ignore non prefixed",
"Annotation Driver > Class methods on exception with data set #0",
"Annotation Driver > Class methods on exception with data set #1",
"Annotation Driver > Subject optional values",
"Annotation Driver > Load subject override",
"Annotation Driver > Load subject merge",
"Annotation Driver > Metadata extend",
"Annotation Driver > Array elements",
"Annotation Driver > Useful exception",
"Annotation Driver > Custom subject pattern",
"Attribute Driver > Load benchmark with data set #0",
"Attribute Driver > Load benchmark with data set #1",
"Attribute Driver > Load benchmark with data set #2",
"Attribute Driver > Load benchmark with data set #3",
"Attribute Driver > Load subject with data set #0",
"Attribute Driver > Load subject with data set #1",
"Attribute Driver > Load subject with data set #2",
"Attribute Driver > Load subject with data set #3",
"Attribute Driver > Load subject with data set #4",
"Attribute Driver > Load subject with data set #5",
"Attribute Driver > Load subject with data set #6",
"Attribute Driver > Load subject with data set #7",
"Attribute Driver > Load subject with data set #8",
"Attribute Driver > Load subject with data set #9",
"Attribute Driver > Load subject with data set #10",
"Attribute Driver > Load subject with data set #11",
"Attribute Driver > Load subject with data set #12",
"Attribute Driver > Load subject with data set #13",
"Attribute Driver > Load subject with data set #14",
"Attribute Driver > Load subject with data set #15",
"Attribute Driver > Load subject with data set #16",
"Attribute Driver > Load subject with data set #17",
"Attribute Driver > Load subject with data set #18",
"Attribute Driver > Load subject with data set #19",
"Chain Driver > Chain",
"Config Driver > Driver with data set #0",
"Metadata Factory > Get metadata for file",
"Metadata Factory > With subjects",
"Metadata Factory > Validation before methods benchmark",
"Metadata Factory > Validation before class methods benchmark not static",
"Metadata Factory > Validation before methods benchmark is static",
"Metadata Factory > Validation before methods subject",
"Metadata Factory > Validation after methods",
"Metadata Factory > Empty class hierachy",
"Metadata Factory > Invalid parameters",
"Subject Metadata > In groups",
"Subject Metadata > Merge with data set #0",
"Subject Metadata > Merge with data set #1",
"Subject Metadata > Merge with data set #2",
"Subject Metadata > Merge with data set #3",
"Subject Metadata > Merge with data set #4",
"Subject Metadata > Merge with data set #5",
"Subject Metadata > Merge with data set #6",
"Subject Metadata > Merge with data set #7",
"Subject Metadata > Merge with data set #8",
"Subject Metadata > Merge with data set #9",
"Subject Metadata > Merge with data set #10",
"Subject Metadata > Merge with data set #11",
"Subject Metadata > Merge with data set #12",
"Subject Metadata > Merge with data set #13",
"Subject Metadata > Merge with data set #14",
"Runner Config > Retry less than zetro",
"Runner Config > Revolutions less than zero",
"Runner Config > Build",
"Runner Config > Defaults",
"Runner Config > Override",
"Runner Config > Get parameter sets",
"Runner > Runner with data set #0",
"Runner > Runner with data set #1",
"Runner > Runner with data set #2",
"Runner > Runner with data set #3",
"Runner > Runner with data set #4",
"Runner > Runner with data set #5",
"Runner > Skip",
"Runner > Sleep",
"Runner > Override metadata",
"Runner > Retry threshold exceeded",
"Runner > Retry threshold met",
"Runner > Before and after class",
"Runner > Handle exceptions",
"Runner > Environment",
"Sampler Manager > Register twice",
"Sampler Manager > Callable",
"Sampler Manager > Callable not callable",
"Sampler Manager > Callable not callable object",
"Log Command > Configure",
"Log Command > History",
"Log Command > Paginate",
"Log Command > Quit pagination",
"Information > Acts as array",
"Information > Unset",
"Information > Set",
"Information > Get name",
"Information > Iterable",
"Information > Flattens arrays",
"Git > Is applicable",
"Git > Is not applicable",
"Git > Get vcs information",
"Git > Get vcs commitsh",
"Git > Get vcs branch",
"Git > Not applicable if git not found",
"Php > Is applicable",
"Php > Php version",
"Php > Php ini",
"Sampler > Is applicable",
"Sampler > Baseline measurements",
"Uname > Is applicable",
"Uname > Uname version",
"Unix Sysload > Is applicable",
"Unix Sysload > Unix sysload version",
"Supplier > No applicable providers",
"Supplier > Applicable providers",
"Debug Executor > Constant times with data set #0",
"Debug Executor > Constant times with data set #1",
"Debug Executor > Constant times with data set #2",
"Debug Executor > Constant times with data set #3",
"Debug Executor > Constant times with data set #4",
"Debug Executor > Constant times with data set #5",
"Local Executor > Requires file if it cant be autoloaded",
"Local Executor > Includes bootstrap once",
"Local Executor > Execute",
"Local Executor > Execute before",
"Local Executor > Execute after",
"Local Executor > Parameters",
"Local Executor > Parameters before subject",
"Remote Executor > Repress output",
"Remote Executor > Execute",
"Remote Executor > Execute before",
"Remote Executor > Execute after",
"Remote Executor > Parameters",
"Remote Executor > Parameters before subject",
"Local Method Executor > Executes method",
"Local Method Executor > Exception when class doesnt exist",
"Local Method Executor > Exception when method doesnt exist",
"Remote Method Executor > Execute methods",
"Parameter Set Extractor > Provide parameter from callable",
"Parameter Set Extractor > Provide parameter from benchmark",
"Parameter Set Extractor > Provide parameter from iterator",
"Parameter Set Extractor > Provide parameter from generator",
"Parameter Set Extractor > Throws exception if parameter doesnt exist",
"Parameter Set Extractor > Throws exception if method is private",
"List Node > From values with data set #0",
"List Node > From values with data set #1",
"List Node > From values with data set #2",
"List Node > From values with data set #3",
"List Node > From values with data set #4",
"List Node > From values with data set #5",
"Php Value Factory > From with data set #0",
"Php Value Factory > From with data set #1",
"Php Value Factory > From with data set #2",
"Php Value Factory > From with data set #3",
"Php Value Factory > From with data set #4",
"Parameter Evaluator > Property access with data set \"object access\"",
"Parameter Evaluator > Property access with data set \"value access\"",
"Parameter Evaluator > Property access with data set \"value is array\"",
"Parameter Evaluator > Property access with data set \"value is array 2\"",
"Parameter Evaluator > Property access with data set \"array access\"",
"Parameter Evaluator > Property access with data set \"nested array access\"",
"Parameter Evaluator > Property access with data set \"array access with nested object\"",
"Parameter Evaluator > Errors with data set #0",
"Parameter Evaluator > Errors with data set #1",
"Parameter Evaluator > Errors with data set #2",
"Parameter Evaluator > Errors with data set #3",
"Syntax Error > From token",
"Syntax Error > From token truncates to max length",
"Coalesce Function > Coalesce",
"Display As Time Function > Display time",
"Display As Time Function > Display two args",
"Display As Time Function > Display with null unit",
"Display As Time Function > Display with invalid type",
"First Function > First",
"First Function > First empty",
"Format Function > Format",
"Format Function > Too many placeholders",
"Join Function > Join",
"Join Function > Join empty",
"Max Function > Eval",
"Mean Function > Eval",
"Min Function > Eval",
"Mode Function > Eval",
"Percent Difference Function > Eval",
"Percent Difference Function > Eval with tolerance",
"St Dev Function > Eval",
"Variance Function > Eval",
"Lexer > Ignores new lines",
"Lexer > Ignores new lines with windows line break",
"Memoised Node Evaluator > Evaluate once",
"Memoised Node Evaluator > Varies with parameters",
"Node Evaluators > Evaluate",
"Highlighting Node Printer > Print with data set \"decorates\"",
"Highlighting Node Printer > Print with data set \"does not decorate non-mapped nodes\"",
"Highlighting Node Printer > Print with data set \"evaluates callback\"",
"Argument List Parselet > Parse with data set \"single value is not an argument list\"",
"Argument List Parselet > Parse with data set \"two comma separated values are an argument list\"",
"Argument List Parselet > Parse with data set \"multiple values\"",
"Argument List Parselet > Evaluate with data set #0",
"Argument List Parselet > Print with data set #0",
"Argument List Parselet > Print with data set #1",
"Arithmetic Operator Parselet > Parse with data set #0",
"Arithmetic Operator Parselet > Evaluate with data set #0",
"Arithmetic Operator Parselet > Evaluate with data set #1",
"Arithmetic Operator Parselet > Evaluate with data set #2",
"Arithmetic Operator Parselet > Print with data set #0",
"Arithmetic Operator Parselet > Print with data set #1",
"Arithmetic Operator Parselet > Print with data set #2",
"Boolean Parselet > Parse with data set #0",
"Boolean Parselet > Parse with data set #1",
"Boolean Parselet > Evaluate with data set #0",
"Boolean Parselet > Evaluate with data set #1",
"Boolean Parselet > Print with data set #0",
"Boolean Parselet > Print with data set #1",
"Comparison Parselet > Error on unsupported operator",
"Comparison Parselet > Parse with data set #0",
"Comparison Parselet > Evaluate with data set #0",
"Comparison Parselet > Evaluate with data set #1",
"Comparison Parselet > Evaluate with data set #2",
"Comparison Parselet > Evaluate with data set #3",
"Comparison Parselet > Evaluate with data set #4",
"Comparison Parselet > Evaluate with data set #5",
"Comparison Parselet > Evaluate with data set #6",
"Comparison Parselet > Evaluate with data set #7",
"Comparison Parselet > Evaluate with data set #8",
"Comparison Parselet > Evaluate with data set #9",
"Comparison Parselet > Evaluate with data set #10",
"Comparison Parselet > Evaluate with data set #11",
"Comparison Parselet > Evaluate with data set #12",
"Comparison Parselet > Evaluate with data set #13",
"Comparison Parselet > Evaluate with data set #14",
"Comparison Parselet > Evaluate with data set #15",
"Comparison Parselet > Evaluate with data set #16",
"Comparison Parselet > Print with data set #0",
"Comparison Parselet > Print with data set #1",
"Comparison Parselet > Print with data set #2",
"Comparison Parselet > Print with data set #3",
"Comparison Parselet > Print with data set #4",
"Comparison Parselet > Print with data set #5",
"Comparison Parselet > Print with data set #6",
"Concat Parselet > Parse with data set #0",
"Concat Parselet > Parse with data set #1",
"Concat Parselet > Evaluate with data set #0",
"Concat Parselet > Evaluate with data set #1",
"Concat Parselet > Print with data set \"does not show quotes\"",
"Display As Parselet > Parse with data set #0",
"Display As Parselet > Parse with data set #1",
"Display As Parselet > Parse with data set #2",
"Display As Parselet > Parse with data set #3",
"Display As Parselet > Parse with data set #4",
"Display As Parselet > Parse with data set #5",
"Display As Parselet > Evaluate with data set #0",
"Display As Parselet > Evaluate with data set #1",
"Display As Parselet > Evaluate with data set #2",
"Display As Parselet > Print with data set \"units are interpreted literally\"",
"Display As Parselet > Print with data set \"int to milliseconds\"",
"Display As Parselet > Print with data set \"int to milliseconds precision 2\"",
"Display As Parselet > Print with data set \"int to bytes\"",
"Display As Parselet > Print with data set #0",
"Float Parselet > Parse with data set #0",
"Float Parselet > Evaluate with data set #0",
"Float Parselet > Print with data set #0",
"Function Parselet > Evaluate invalid arguments",
"Function Parselet > Parse with data set #0",
"Function Parselet > Parse with data set #1",
"Function Parselet > Parse with data set #2",
"Function Parselet > Evaluate with data set #0",
"Function Parselet > Print with data set #0",
"Integer Parselet > Parse with data set #0",
"Integer Parselet > Evaluate with data set #0",
"Integer Parselet > Print with data set #0",
"List Parselet > Parse with data set \"single value is not an argument list\"",
"List Parselet > Evaluate with data set #0",
"List Parselet > Print with data set #0",
"List Parselet > Print with data set #1",
"Logical Operator Parselet > Parse with data set #0",
"Logical Operator Parselet > Evaluate with data set #0",
"Logical Operator Parselet > Evaluate with data set #1",
"Logical Operator Parselet > Evaluate with data set #2",
"Logical Operator Parselet > Evaluate with data set #3",
"Logical Operator Parselet > Print with data set #0",
"Logical Operator Parselet > Print with data set #1",
"Logical Operator Parselet > Print with data set #2",
"Logical Operator Parselet > Print with data set #3",
"Null Parselet > Parse with data set #0",
"Null Parselet > Evaluate with data set #0",
"Null Parselet > Print with data set #0",
"Parameter Parselet > Parse with data set \"property\"",
"Parameter Parselet > Evaluate with data set #0",
"Parameter Parselet > Evaluate with data set #1",
"Parameter Parselet > Evaluate with data set #2",
"Parameter Parselet > Print with data set #0",
"Parameter Parselet > Print with data set #1",
"Parameter Parselet > Print with data set #2",
"Parenthesis Parselet > Parse with data set #0",
"Parenthesis Parselet > Parse with data set #1",
"Parenthesis Parselet > Evaluate with data set #0",
"Parenthesis Parselet > Evaluate with data set #1",
"Parenthesis Parselet > Evaluate with data set #2",
"Parenthesis Parselet > Print with data set #0",
"Parenthesis Parselet > Print with data set #1",
"Parenthesis Parselet > Print with data set #2",
"String Parselet > Parse with data set #0",
"String Parselet > Evaluate with data set #0",
"String Parselet > Print with data set #0",
"Tolerable Parselet > Parse with data set #0",
"Tolerable Parselet > Parse with data set #1",
"Tolerable Parselet > Parse with data set #2",
"Tolerable Parselet > Parse with data set #3",
"Tolerable Parselet > Evaluate with data set #0",
"Tolerable Parselet > Evaluate with data set #1",
"Tolerable Parselet > Evaluate with data set #2",
"Tolerable Parselet > Evaluate with data set #3",
"Tolerable Parselet > Evaluate with data set #4",
"Tolerable Parselet > Evaluate with data set #5",
"Tolerable Parselet > Evaluate with data set #6",
"Tolerable Parselet > Evaluate with data set #7",
"Tolerable Parselet > Print with data set #0",
"Value With Unit Parselet > Parse with data set #0",
"Value With Unit Parselet > Parse with data set #1",
"Value With Unit Parselet > Evaluate with data set #0",
"Value With Unit Parselet > Print with data set #0",
"Parser > Trailing matter",
"Bare Value Printer > Prints bare php value",
"Bare Value Printer > Returns default text if not printable",
"Bare Value Printer > Casts to string",
"Bare Value Printer > Prints list",
"Evaluating Printer > Evaluate with data set #0",
"Evaluating Printer > Evaluate with data set #1",
"Evaluating Printer > Evaluate with data set #2",
"Evaluating Printer > Evaluate with data set #3",
"Gradient > Gradient with data set #0",
"Gradient > Gradient with data set #1",
"Gradient > Gradient with data set #2",
"Gradient > Color at percentile with data set #0",
"Gradient > Color at percentile with data set #1",
"Gradient > Color at percentile with data set #2",
"Gradient > Color at percentile with data set \"more than 100\"",
"Gradient > Color at percentile with data set \"less than 100\"",
"Tokens > Syntax error on chomp",
"Runner Extension > Relativize path",
"Runner Extension > Config driver",
"Json Decoder > Normalizer with data set #0",
"Json Decoder > Normalizer with data set #1",
"Json Decoder > Normalizer with data set #2",
"Json Decoder > Normalizer with data set #3",
"Json Decoder > Normalizer with data set #4",
"Json Decoder > Normalizer with data set #5",
"Json Decoder > Normalizer with data set #6",
"Json Decoder > Normalizer with data set #7",
"Json Decoder > Normalizer with data set #8",
"Json Decoder > Normalizer with data set #9",
"Json Decoder > Normalizer with data set #10",
"Json Decoder > Normalizer with data set #11",
"Json Decoder > Normalizer with data set #12",
"Json Decoder > Normalizer with data set #13",
"Json Decoder > Normalizer with data set #14",
"Json Decoder > Normalizer with data set #15",
"Console Logger > No info when not debug",
"Console Logger > Log info when debug",
"Distribution > Stats",
"Distribution > Distribution zero",
"Distribution > Distribution one",
"Distribution > Distribution zero values",
"Distribution > Return stats",
"Distribution > Non recognized pre computed",
"Kde > Evaluate with data set #0",
"Kde > Evaluate with data set #1",
"Kde > Evaluate with data set #2",
"Kde > Invalid bandwidth",
"Kde > No elements",
"Kde > One element",
"Statistics > Stdev",
"Statistics > R stdev",
"Statistics > Mean",
"Statistics > Linear space with data set #0",
"Statistics > Linear space with data set #1",
"Statistics > Linear space with data set #2",
"Statistics > Linspace min max same",
"Statistics > Kde mode with data set #0",
"Statistics > Kde mode with data set #1",
"Statistics > Kde mode with data set #2",
"Statistics > Kde mode with data set #3",
"Statistics > Kde mode with data set #4",
"Statistics > Histogram with data set #0",
"Statistics > Histogram with data set #1",
"Statistics > Histogram with data set #2",
"Statistics > Percentage difference with data set \"zero\"",
"Statistics > Percentage difference with data set \"zero and one\"",
"Statistics > Percentage difference with data set \"one and zero\"",
"Statistics > Percentage difference with data set \"one and two\"",
"Statistics > Percentage difference with data set \"one and three\"",
"Statistics > Percentage difference with data set \"one and zero point five\"",
"Benchmark > Get set",
"Benchmark > Get name with data set #0",
"Benchmark > Get name with data set #1",
"Benchmark > Get name with data set #2",
"Benchmark > Get name with data set #3",
"Benchmark > Create subject from metadata",
"Iteration > Getters",
"Iteration > Get rev time",
"Rejection Count Result > Memory greater equal than",
"Time Result > Getters",
"Time Result > Time zero",
"Time Result > Less than zero",
"Time Result > Revs are zero",
"Time Result > Get rev time",
"Result Collection > Add constructor",
"Result Collection > Add result",
"Result Collection > Non existant class",
"Result Collection > Get named metric",
"Result Collection > Named metric does not exist",
"Result Collection > Get metric or default",
"Subject > In groups",
"Subject > Create variant",
"Suite Collection > Add suite",
"Suite Collection > Merge collection",
"Suite > Create benchmark",
"Suite > Get iterations",
"Suite > Get error stacks",
"Suite > Get summary",
"Suite > Find variant",
"Summary > Summary",
"Summary > Op cache and x debug information empty",
"Summary > Op cache and x debug information complete",
"Tag > Valid tag with data set #0",
"Tag > Valid tag with data set #1",
"Tag > Valid tag with data set #2",
"Tag > Valid tag with data set #3",
"Tag > Valid tag with data set #4",
"Tag > Invalid tag with data set #0",
"Tag > Invalid tag with data set #1",
"Tag > Invalid tag with data set #2",
"Tag > Invalid tag with data set #3",
"Variant > Iteration spawn",
"Variant > Create iteration",
"Variant > Compute stats",
"Variant > Compute deviation zero iterations",
"Variant > Reject",
"Variant > Exception awareness",
"Variant > Exception none get",
"Variant > Get stats no compute exception",
"Variant > Get stats with exception exception",
"Variant > Get metric values",
"Blinken Logger > Show and list",
"Blinken Logger > Iteration start",
"Blinken Logger > Iterations start",
"Blinken Logger > Iteration exception",
"Dots Logger > Iterations end",
"Dots Logger > Iterations end exception",
"Dots Logger > Iterations end failure",
"Dots Logger > Iterations end rejections return early",
"Dots Logger > Iteration",
"Histogram Logger > Benchmark start",
"Histogram Logger > Iteration start",
"Histogram Logger > Iterations start",
"Histogram Logger > Iteration exception",
"Histogram Logger > Iteration end",
"Plain Logger > Benchmark start",
"Plain Logger > Iterations end",
"Plain Logger > Start",
"Plain Logger > End suite",
"Plain Logger > End suite errors",
"Plain Logger > End suite failures",
"Verbose Logger > Benchmark start",
"Verbose Logger > Iterations end",
"Verbose Logger > Start",
"Verbose Logger > End suite",
"Verbose Logger > End suite errors",
"Verbose Logger > End suite failures",
"Logger Registry > Register progress logger",
"Logger Registry > Unknown logger",
"Variant Summary Formatter > Format variant only",
"Variant Summary Formatter > Format baseline",
"Reflection Hierarchy > Add reflections and iterate",
"Reflection Hierarchy > Get top no classes",
"Reflection Hierarchy > Has method",
"Reflection Hierarchy > Has static method",
"Remote Reflector > Reflect attributes with data set #0",
"Remote Reflector > Reflect attributes with data set #1",
"Remote Reflector > Reflect attributes with data set #2",
"Remote Reflector > Reflect attributes with data set \"ignores non-existing attributes\"",
"Remote Reflector > Reflector no class",
"Remote Reflector > Multiple class keywords",
"Config > Exception offset not exist",
"Config > Invalid name with data set #0",
"Config > Invalid name with data set #1",
"Config > Invalid name with data set #2",
"Config > Invalid name with data set #3",
"Config > Good name with data set #0",
"Config > Good name with data set #1",
"Config > Good name with data set #2",
"Configurable Registry > Get set config",
"Configurable Registry > Resolve extended",
"Configurable Registry > Extends different service exception",
"Configurable Registry > Get config json string",
"Configurable Registry > Get config json string invalid",
"Configurable Registry > Service directly",
"Configurable Registry > Register retrieve service",
"Configurable Registry > Set and retrieve",
"Configurable Registry > Default get",
"Configurable Registry > Default get no default",
"Configurable Registry > Exception servivce not exist",
"Configurable Registry > Register already registered",
"Registry > Register retrieve service",
"Registry > Set and retrieve",
"Registry > Default get",
"Registry > Default get no default",
"Registry > Exception servivce not exist",
"Registry > Register already registered",
"Ini String Builder > Build with data set #0",
"Ini String Builder > Build with data set #1",
"Ini String Builder > Build with data set #2",
"Launcher > Live execute",
"Launcher > Pass settings to payload",
"Launcher > Invalid bootstrap",
"Payload Factory > Create",
"Payload > Launch",
"Payload > Automatically creates non existing script directory",
"Payload > Invalid script",
"Payload > Binary path",
"Payload > Php config",
"Payload > Wrap",
"Payload > Template not found",
"Bare Generator > Generate with data set #0",
"Bare Generator > Generate with data set #1",
"Composite Generator > Generate composite",
"Env Generator > Generate with data set #0",
"Env Generator > Generate with data set #1",
"Expression Generator > Generate with data set #0",
"Expression Generator > Generate with data set #1",
"Expression Generator > Generate with data set #2",
"Expression Generator > Generate with data set #3",
"Expression Generator > Generate with data set #4",
"Expression Generator > Generate with data set #5",
"Expression Generator > Generate with data set #6",
"Expression Generator > Generate with data set #7",
"Expression Generator > Generate with data set #8",
"Expression Generator > Generate with data set #9",
"Expression Generator > Generate with data set #10",
"Expression Generator > Generate with data set #11",
"Expression Generator > Generate with data set #12",
"Expression Generator > Generate with data set #13",
"Expression Generator > Generate with data set #14",
"Expression Generator > Generate with data set #15",
"Expression Generator > Generate with data set #16",
"Expression Generator > Generate with data set #17",
"Expression Generator > Generate with data set #18",
"Expression Generator > Generate with data set #19",
"Expression Generator > Generate with data set #20",
"Console Renderer > Render with data set #0",
"Console Renderer > Render with data set #1",
"Delimited Renderer > Render",
"Delimited Renderer > Render comma",
"Report Manager > Render",
"Xml Decoder > Decoder with data set #0",
"Xml Decoder > Decoder with data set #1",
"Xml Decoder > Decoder with data set #2",
"Xml Decoder > Decode unknown result class",
"Xml Decoder > Decode unknown result key",
"Xml Decoder > Invalid attribute",
"Xml Decoder > Decode bool value",
"Xml Decoder > Decode legacy env",
"Xml Decoder > Binary",
"Xml Encoder > Encode with data set #0",
"Xml Encoder > Encode with data set #1",
"Xml Encoder > Encode with data set #2",
"Xml Encoder > Binary",
"History Iterator > Iterate empty",
"History Iterator > No directory exist",
"History Iterator > Iterate",
"Xml Driver > Store",
"Xml Driver > Store mkdir",
"Xml Driver > Fetch",
"Xml Driver > Has",
"Xml Driver > Has invalid uuid",
"Xml Driver > Get history iterator",
"Chain Resolver > Null if no resolver intervened",
"Chain Resolver > Chain resolve",
"Chain Resolver > Null when chain resolve no support",
"Latest Resolver > Resolve latest",
"Latest Resolver > Null when not beginning with latest",
"Latest Resolver > Resolve cant resolve",
"Latest Resolver > Latest minus nth",
"Latest Resolver > No history",
"Tag Resolver > Throws exception when no tag found",
"Tag Resolver > Returns uuid for latest tag with data set #0",
"Tag Resolver > Returns uuid for latest tag with data set #1",
"Tag Resolver > Returns uuid for latest tag with data set #2",
"Tag Resolver > Returns uuid for tag with matching tag at offset",
"Memory Unit > Convert to bytes with data set #0",
"Memory Unit > Convert to bytes with data set #1",
"Memory Unit > Convert to bytes with data set #2",
"Memory Unit > Convert to bytes with data set #3",
"Memory Unit > Convert to bytes with data set #4",
"Memory Unit > Invalid unit",
"Memory Unit > Suffix with data set #0",
"Memory Unit > Suffix with data set #1",
"Memory Unit > Suffix with data set #2",
"Memory Unit > Resolve suitable unit with data set #0",
"Memory Unit > Resolve suitable unit with data set #1",
"Memory Unit > Resolve suitable unit with data set #2",
"Memory Unit > Resolve suitable unit with data set #3",
"Memory Unit > Resolve suitable unit with data set #4",
"Memory Unit > Resolve suitable unit with data set #5",
"Memory Unit > Resolve suitable unit with data set #6",
"Text Truncate > Center with data set #0",
"Text Truncate > Center with data set #1",
"Text Truncate > Center with data set #2",
"Text Truncate > Center with data set #3",
"Time Unit > Convert with data set #0",
"Time Unit > Convert with data set #1",
"Time Unit > Convert with data set #2",
"Time Unit > Convert with data set #3",
"Time Unit > Convert with data set #4",
"Time Unit > Convert with data set #5",
"Time Unit > Convert with data set #6",
"Time Unit > Convert with data set #7",
"Time Unit > Convert with data set #8",
"Time Unit > Convert with data set #9",
"Time Unit > Convert with data set #10",
"Time Unit > Convert with data set #11",
"Time Unit > Convert with data set #12",
"Time Unit > Convert throughput with data set #0",
"Time Unit > Convert throughput with data set #1",
"Time Unit > Convert throughput with data set #2",
"Time Unit > Convert throughput with data set #3",
"Time Unit > Convert throughput with data set #4",
"Time Unit > Given values mode and dest unit",
"Time Unit > Default values mode and dest unit",
"Time Unit > Resolve dest unit and mode and precision",
"Time Unit > Dest suffix default state",
"Time Unit > Dest suffix given state",
"Time Unit > Format",
"Time Unit > Override precision",
"Time Unit > Invalid source format",
"Time Unit > Invalid dest format",
"Time Unit > Resolve suitable unit with data set #0",
"Time Unit > Resolve suitable unit with data set #1",
"Time Unit > Resolve suitable unit with data set #2",
"Time Unit > Resolve suitable unit with data set #3",
"Time Unit > Resolve suitable unit with data set #4",
"Time Unit > Resolve suitable unit with data set #5",
"Time Unit > Resolve suitable unit with data set #6",
"XDebug Util > Generate with data set #0",
"XDebug Util > Generate with data set #1"
] | {
"base_image_name": "php_8.3.16",
"docker_specs": null,
"install": [
"export COMPOSER_HOME=/tmp/composer",
"composer install --no-interaction --prefer-dist"
],
"log_parser": "parse_log_phpunit",
"test_cmd": "vendor/bin/phpunit --testdox --colors=never"
} | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [
"core_feat"
],
"reasoning": "The issue reports a failure when a DateTime instance is used in a param provider, requiring support for serializable objects in the XML serializer. The added tests check that such objects can be encoded, decoded, and round‑tripped without error, and also verify that non‑serializable values raise a clear exception. The tests directly target the intended behavior and do not introduce unrelated expectations, so the problem is well‑specified and solvable. No signals of B‑category problems are present.",
"test_alignment_issues": []
},
"num_modified_files": 4,
"num_modified_lines": 25,
"pr_author": "dantleech",
"pr_labels": [],
"pr_url": null
} |
4f3770ea781f4bf8055240a0e951a3fa2205c734 | 2025-01-22 08:08:22 | docker.io/swerebenchv2/twigphp-twig:4548-4f3770e | twigphp__twig-4548 | No new interfaces are introduced. | php | BSD-3-Clause | "diff --git a/CHANGELOG b/CHANGELOG\nindex 2fafecb6..5d1d5562 100644\n--- a/CHANGELOG\n+++ b/CHANGEL(...TRUNCATED) | Ignore static properties when using the dot operator
Fix #4547 | "Accessing Undefined Variable with Getter and Static Property with same name\nIn Twig, when using a (...TRUNCATED) | twigphp/Twig | "diff --git a/tests/IntegrationTest.php b/tests/IntegrationTest.php\nindex 2a88c6af..f4889cd7 100644(...TRUNCATED) | ["Chain > Load in a [1.36 ms]","Chain > Load in b [0.11 ms]","Chain > Load in both [0.14 ms]","Chain(...TRUNCATED) | ["Chain > Get timestamp in a [0.09 ms]","Chain > Get timestamp in b [0.08 ms]","Chain > Get timestam(...TRUNCATED) | {"base_image_name":"php_8.3.16","docker_specs":null,"install":["export COMPOSER_HOME=/tmp/composer",(...TRUNCATED) | {"llm_metadata":{"code":"A","confidence":0.97,"detected_issues":{"B1":false,"B2":false,"B3":false,"B(...TRUNCATED) |
746d25a7d11713a6e6806e936f34835ed5cf4866 | 2023-03-02 08:28:21 | docker.io/swerebenchv2/open-telemetry-opentelemetry-php:933-746d25a | open-telemetry__opentelemetry-php-933 | "Method: Container.__construct(self, string $dir = '/proc/self')\nLocation: src/SDK/Resource/Detecto(...TRUNCATED) | php | Apache-2.0 | "diff --git a/src/SDK/Common/Configuration/KnownValues.php b/src/SDK/Common/Configuration/KnownValue(...TRUNCATED) | "adding container detector\nDetect container id from cgroup or mountinfo, based on how otel-js does (...TRUNCATED) | "Resource Detection for container properties\n**Is your feature request related to a problem?**\r\nD(...TRUNCATED) | open-telemetry/opentelemetry-php | "diff --git a/tests/Unit/SDK/Resource/Detectors/ContainerTest.php b/tests/Unit/SDK/Resource/Detector(...TRUNCATED) | ["Baggage > Current empty [4.06 ms]","Baggage > Current [0.11 ms]","Baggage > Get current baggage de(...TRUNCATED) | ["Baggage > Get current baggage sets correct context [0.10 ms]","Baggage > Baggage from context defa(...TRUNCATED) | {"base_image_name":"php_8.3.16","docker_specs":null,"install":["export COMPOSER_HOME=/tmp/composer",(...TRUNCATED) | {"llm_metadata":{"code":"A","confidence":0.92,"detected_issues":{"B1":false,"B2":false,"B3":false,"B(...TRUNCATED) |
efeab760998cf8ddb44c0e4c87f9bdd385bff64f | 2022-01-05 09:47:14 | docker.io/swerebenchv2/friendsofphp-php-cs-fixer:6224-efeab76 | friendsofphp__php-cs-fixer-6224 | "ArgumentAnalysis::__construct(string $name, int $nameIndex, string $default, TypeAnalysis $typeAnal(...TRUNCATED) | php | MIT | "diff --git a/src/Fixer/FunctionNotation/NullableTypeDeclarationForDefaultNullValueFixer.php b/src/F(...TRUNCATED) | ArgumentsAnalyzer - support PHP8.1 readonly
closes #6221 | "nullable_type_declaration_for_default_null_value fails for nullable readonly parameter in promoted (...TRUNCATED) | FriendsOfPHP/PHP-CS-Fixer | "diff --git a/tests/Fixer/FunctionNotation/NullableTypeDeclarationForDefaultNullValueFixerTest.php b(...TRUNCATED) | ["Abstract Fixer > Defaults [0.30 ms]","Abstract Fixer > Configure unconfigurable [0.24 ms]","Abstra(...TRUNCATED) | ["Abstract Fixer > Get configuration definition unconfigurable [0.04 ms]","Abstract Fixer > Get whit(...TRUNCATED) | {"base_image_name":"php_8.3.16","docker_specs":null,"install":["export HOME=/tmp","composer install (...TRUNCATED) | {"llm_metadata":{"code":"A","confidence":0.98,"detected_issues":{"B1":false,"B2":false,"B3":false,"B(...TRUNCATED) |
d9996a1046fb74d2c6310a8f5a92189c99004161 | 2023-11-09 13:55:01 | docker.io/swerebenchv2/php-cs-fixer-php-cs-fixer:7429-d9996a1 | php-cs-fixer__php-cs-fixer-7429 | No new interfaces are introduced. | php | MIT | "diff --git a/src/Fixer/Phpdoc/PhpdocVarWithoutNameFixer.php b/src/Fixer/Phpdoc/PhpdocVarWithoutName(...TRUNCATED) | fix: Remove all variable names in `@var` callable signature
Fixes #5402. | "PhpCsFixer\\Fixer\\Phpdoc\\PhpdocVarWithoutNameFixer removes only the first variable name\n## Bug r(...TRUNCATED) | PHP-CS-Fixer/PHP-CS-Fixer | "diff --git a/tests/Fixer/Phpdoc/PhpdocVarWithoutNameFixerTest.php b/tests/Fixer/Phpdoc/PhpdocVarWit(...TRUNCATED) | ["Phpdoc Var Without Name Fixer > Fix var with data set \"@var with callable syntax\"","Phpdoc Var W(...TRUNCATED) | ["Abstract Fixer > Defaults","Abstract Fixer > Configure unconfigurable","Abstract Fixer > Get confi(...TRUNCATED) | {"base_image_name":"php_8.3.16","docker_specs":null,"install":["export HOME=/tmp","composer install (...TRUNCATED) | {"llm_metadata":{"code":"B2","confidence":0.88,"detected_issues":{"B1":false,"B2":true,"B3":false,"B(...TRUNCATED) |
4d5472ca2c6fb1794c57a47217e2751183acd901 | 2022-06-27 15:21:34 | docker.io/swerebenchv2/friendsofphp-php-cs-fixer:6447-4d5472c | friendsofphp__php-cs-fixer-6447 | "Method: NoUselessConcatOperatorFixer.configure(array $options) Location: src/Fixer/Operator/NoUsele(...TRUNCATED) | php | MIT | "diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php\nindex 34381e093..4d932edac 100644\n--(...TRUNCATED) | feature: NoUselessConcatOperatorFixer - Introduction
Closes #4491. | "Redundant concatenation fixer\nIs there a fixer for removing redundant string concatenation, as in (...TRUNCATED) | FriendsOfPHP/PHP-CS-Fixer | "diff --git a/tests/AutoReview/FixerFactoryTest.php b/tests/AutoReview/FixerFactoryTest.php\nindex 3(...TRUNCATED) | ["Abstract Fixer > Defaults [0.27 ms]","Abstract Fixer > Configure unconfigurable [0.24 ms]","Abstra(...TRUNCATED) | ["Abstract Fixer > Get configuration definition unconfigurable [0.03 ms]","Abstract Fixer > Set whit(...TRUNCATED) | {"base_image_name":"php_8.3.16","docker_specs":null,"install":["export HOME=/tmp","composer install (...TRUNCATED) | {"llm_metadata":{"code":"A","confidence":0.97,"detected_issues":{"B1":false,"B2":false,"B3":false,"B(...TRUNCATED) |
3157174717f8157d1491645252ef7c38e7c357c8 | 2024-11-18 20:01:36 | docker.io/swerebenchv2/php-pie:103-3157174 | php__pie-103 | "Method: UnixBuild::__invoke(DownloadedPackage $downloadedPackage, TargetPlatform $targetPlatform, a(...TRUNCATED) | php | BSD-3-Clause | "diff --git a/src/Building/ExtensionBinaryNotFound.php b/src/Building/ExtensionBinaryNotFound.php\nn(...TRUNCATED) | Ensure built .so file matches the expected filename
Fixes #92 | "`pie build` crashes if the SO file does not exist after the build\nRunning on #83:\r\n\r\nDespite t(...TRUNCATED) | php/pie | "diff --git a/test/integration/Building/UnixBuildTest.php b/test/integration/Building/UnixBuildTest.(...TRUNCATED) | [
"Unix Build > Unix build will throw exception when expected binary name mismatches"
] | ["Architecture > Parse architecture with data set \"x64\"","Architecture > Parse architecture with d(...TRUNCATED) | {"base_image_name":"php_8.3.16","docker_specs":null,"install":["export COMPOSER_HOME=\"/tmp/composer(...TRUNCATED) | {"llm_metadata":{"code":"A","confidence":0.99,"detected_issues":{"B1":false,"B2":false,"B3":false,"B(...TRUNCATED) |
a0368a99cf192f70779a6e9bec777c8898b6c1b8 | 2022-04-03 15:09:28 | docker.io/swerebenchv2/tighten-tlint:286-a0368a9 | tighten__tlint-286 | No new interfaces are introduced. | php | MIT | "diff --git a/src/Linters/NoRequestAll.php b/src/Linters/NoRequestAll.php\nindex 96c2a73..1fe487e 10(...TRUNCATED) | Fix no `$request-all()` check
This PR aims to fix #285.
| "NoRequestAll incorrectly identifies $request->user()\nI have recently created a new Laravel 9.6.0 p(...TRUNCATED) | tighten/tlint | "diff --git a/tests/Linting/Linters/NoRequestAllTest.php b/tests/Linting/Linters/NoRequestAllTest.ph(...TRUNCATED) | ["Config > Tighten preset can get linters [1.16 ms]","Config > Laravel preset can get linters [0.07 (...TRUNCATED) | ["Config > Tighten preset can get formatters [0.02 ms]","Config > Laravel preset can get formatters (...TRUNCATED) | {"base_image_name":"php_8.3.16","docker_specs":null,"install":["export COMPOSER_HOME=\"/tmp/composer(...TRUNCATED) | {"llm_metadata":{"code":"A","confidence":0.99,"detected_issues":{"B1":false,"B2":false,"B3":false,"B(...TRUNCATED) |
5ab3464b8755293815e57c0de0829feaf7242aae | 2021-02-12 14:40:11 | docker.io/swerebenchv2/laravel-framework:36240-5ab3464 | laravel__framework-36240 | No new interfaces are introduced. | php | MIT | "diff --git a/src/Illuminate/Support/Facades/File.php b/src/Illuminate/Support/Facades/File.php\nind(...TRUNCATED) | Fix attribute nesting on anonymous components
Fixes #36236 | "Laravel 8 component @props not setting prop value\n- Laravel Version: 8.20.1\r\n- PHP Version: 8.0.(...TRUNCATED) | laravel/framework | "diff --git a/tests/Integration/View/BladeTest.php b/tests/Integration/View/BladeTest.php\nindex 864(...TRUNCATED) | ["Encrypter > Encryption [2.55 ms]","Encrypter > Encryption using base 64 encoded key [0.05 ms]","En(...TRUNCATED) | ["Encrypter > Raw string encryption [0.05 ms]","Encrypter > Do no allow longer key [0.21 ms]","Encry(...TRUNCATED) | {"base_image_name":"php_8.3.16","docker_specs":null,"install":["export COMPOSER_HOME=/tmp/composer",(...TRUNCATED) | {"llm_metadata":{"code":"A","confidence":0.96,"detected_issues":{"B1":false,"B2":false,"B3":false,"B(...TRUNCATED) |
SWE-rebench-V2 is a curated dataset of software-engineering tasks derived from real GitHub issues and pull requests. The dataset contains 32,079 samples covering Python, Go, TypeScript, JavaScript, Rust, Java, PHP, Kotlin, Julia, Elixir, Scala, Swift, Dart, C, C++, C#, R, Clojure, OCaml, and Lua. For log parser functions, base Dockerfiles, and the prompts used, please see https://github.com/SWE-rebench/SWE-rebench-V2
from datasets import load_dataset
ds = load_dataset("nebius/SWE-rebench-V2", split="train")
print(len(ds)) # 32079
| Field | Type | Description |
|---|---|---|
instance_id |
string |
Unique identifier for the instance |
repo |
string |
GitHub repository in owner/repo format |
base_commit |
string |
Git commit SHA of the base before the fix |
patch |
string |
The gold patch that resolves the issue |
test_patch |
string |
Diff adding or modifying tests that verify the fix |
problem_statement |
string |
Issue description the patch addresses |
pr_description |
string |
Full pull request description |
created_at |
int64 |
Unix timestamp (milliseconds) of the issue/PR creation |
image_name |
string |
Docker image name used for the evaluation environment |
language |
string |
Primary programming language of the repository |
interface |
string |
Description of the code interface changed by the patch |
license |
string |
SPDX license identifier of the repository |
FAIL_TO_PASS |
list[string] |
Test IDs that fail before the patch and pass after |
PASS_TO_PASS |
list[string] |
Test IDs that pass both before and after the patch |
install_config |
struct |
Configuration needed to reproduce the test environment |
meta |
struct |
Metadata and LLM-generated quality annotations |
The dataset is licensed under the Creative Commons Attribution 4.0 license. However, please respect the license of each specific repository on which a particular instance is based. To facilitate this, the license of each repository at the time of the commit is provided for every instance.
@misc{badertdinov2026swerebenchv2languageagnosticswe,
title={SWE-rebench V2: Language-Agnostic SWE Task Collection at Scale},
author={Ibragim Badertdinov and Maksim Nekrashevich and Anton Shevtsov and Alexander Golubev},
year={2026},
eprint={2602.23866},
archivePrefix={arXiv},
primaryClass={cs.SE},
url={https://arxiv.org/abs/2602.23866},
}