File size: 18,257 Bytes
02bbe23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
{
  "branches": {
    "generated_module_01": {
      "ignore_reason": "",
      "ignored": false,
      "ignored_tests": [],
      "tests": [
        "eval.tests.test_module_01.test_cyclonedx_flag_toggle_false_uses_spdx_client",
        "eval.tests.test_module_01.test_cyclonedx_path_reaches_dependency_graph_module",
        "eval.tests.test_module_01.test_cyclonedx_with_license_flag_same_client_gate",
        "eval.tests.test_module_01.test_dedup_identical_triple_single_component",
        "eval.tests.test_module_01.test_dedup_same_name_different_managers_kept",
        "eval.tests.test_module_01.test_dedup_same_name_different_versions_kept",
        "eval.tests.test_module_01.test_empty_graph_aborts_no_dependencies",
        "eval.tests.test_module_01.test_empty_package_fields_do_not_crash",
        "eval.tests.test_module_01.test_empty_repo_flag_git_layout_with_remote",
        "eval.tests.test_module_01.test_empty_repo_flag_git_no_remote",
        "eval.tests.test_module_01.test_equals_syntax_for_repository_and_cyclonedx",
        "eval.tests.test_module_01.test_flag_order_is_independent",
        "eval.tests.test_module_01.test_golang_pseudo_version_survives_aggregation",
        "eval.tests.test_module_01.test_graphql_query_error_aborts",
        "eval.tests.test_module_01.test_help_long_lists_all_flags",
        "eval.tests.test_module_01.test_help_reports_cyclonedx_flag_semantics",
        "eval.tests.test_module_01.test_help_short_flag_same_usage",
        "eval.tests.test_module_01.test_leading_v_removed[v-]",
        "eval.tests.test_module_01.test_leading_v_removed[v1-]",
        "eval.tests.test_module_01.test_leading_v_removed[v1.0-.0]",
        "eval.tests.test_module_01.test_leading_v_removed[v1.3.0-.3.0]",
        "eval.tests.test_module_01.test_leading_v_removed[vv1.0-1.0]",
        "eval.tests.test_module_01.test_long_repository_flag_equivalent",
        "eval.tests.test_module_01.test_lowercases_package_manager_and_name[Go-CLI/urfave-pkg:golang/]",
        "eval.tests.test_module_01.test_lowercases_package_manager_and_name[NPM-lodash-pkg:npm/]",
        "eval.tests.test_module_01.test_lowercases_package_manager_and_name[NuGet-Newtonsoft.Json-newtonsoft.json]",
        "eval.tests.test_module_01.test_lowercases_package_manager_and_name[PIP-requests-pkg:pypi/]",
        "eval.tests.test_module_01.test_lowercases_package_manager_and_name[Rubygems-rails-pkg:gem/]",
        "eval.tests.test_module_01.test_lowercases_package_manager_and_name[npm-Lodash-lodash]",
        "eval.tests.test_module_01.test_manifest_pagination_merges_across_pages",
        "eval.tests.test_module_01.test_missing_cyclonedx_value_no_hang",
        "eval.tests.test_module_01.test_multiple_manifests_aggregate",
        "eval.tests.test_module_01.test_nested_dependency_pagination_recurses",
        "eval.tests.test_module_01.test_no_args_non_git_cwd_fails",
        "eval.tests.test_module_01.test_repository_parse_accepts_valid_forms[gh/owner/repo]",
        "eval.tests.test_module_01.test_repository_parse_accepts_valid_forms[owner/repo]",
        "eval.tests.test_module_01.test_repository_parse_accepts_valid_forms[same-namespace/repo-name]",
        "eval.tests.test_module_01.test_repository_parse_rejects_malformed[/owner/repo-expected the \"[HOST/]OWNER/REPO\" format]",
        "eval.tests.test_module_01.test_repository_parse_rejects_malformed[owner-expected the \"[HOST/]OWNER/REPO\" format]",
        "eval.tests.test_module_01.test_repository_parse_rejects_malformed[owner/-expected the \"[HOST/]OWNER/REPO\" format]",
        "eval.tests.test_module_01.test_repository_parse_rejects_malformed[owner//repo-expected the \"[HOST/]OWNER/REPO\" format]",
        "eval.tests.test_module_01.test_short_requirements_empty_version[12]",
        "eval.tests.test_module_01.test_short_requirements_empty_version[1]",
        "eval.tests.test_module_01.test_short_requirements_empty_version[]",
        "eval.tests.test_module_01.test_single_page_aggregates_dependencies",
        "eval.tests.test_module_01.test_spdx_default_path_aborts_without_token",
        "eval.tests.test_module_01.test_two_page_pagination_terminal_page_false",
        "eval.tests.test_module_01.test_unknown_long_flag_rejected",
        "eval.tests.test_module_01.test_unknown_short_flag_rejected",
        "eval.tests.test_module_01.test_version_prefix_stripped[0.1.0-1.0]",
        "eval.tests.test_module_01.test_version_prefix_stripped[1.2.3-2.3]",
        "eval.tests.test_module_01.test_version_prefix_stripped[=2.0.0-.0.0]",
        "eval.tests.test_module_01.test_version_prefix_stripped[^4.17.21-.17.21]",
        "eval.tests.test_module_01.test_version_prefix_stripped[abc123-c123]",
        "eval.tests.test_module_01.test_version_prefix_stripped[~1.2.3-.2.3]"
      ]
    },
    "generated_module_02": {
      "ignore_reason": "",
      "ignored": false,
      "ignored_tests": [],
      "tests": [
        "eval.tests.test_cyclonedx_cli.test_bare_equals_value_rejected",
        "eval.tests.test_cyclonedx_cli.test_combined_shorthand_cl_parses_bundle_and_reaches_auth",
        "eval.tests.test_cyclonedx_cli.test_cyclonedx_explicit_false_falls_back_to_spdx",
        "eval.tests.test_cyclonedx_cli.test_cyclonedx_explicit_true_long_reaches_auth",
        "eval.tests.test_cyclonedx_cli.test_cyclonedx_license_flag_reaches_auth",
        "eval.tests.test_cyclonedx_cli.test_cyclonedx_no_repo_no_git_tree",
        "eval.tests.test_cyclonedx_cli.test_cyclonedx_non_github_remote_current_dir",
        "eval.tests.test_cyclonedx_cli.test_cyclonedx_requires_credentials_for_valid_slug",
        "eval.tests.test_cyclonedx_cli.test_cyclonedx_valid_repo_requires_auth",
        "eval.tests.test_cyclonedx_cli.test_duplicate_cyclonedx_flag_accepted",
        "eval.tests.test_cyclonedx_cli.test_empty_repository_value_falls_back_to_cwd",
        "eval.tests.test_cyclonedx_cli.test_equals_form_long_repository_reaches_auth",
        "eval.tests.test_cyclonedx_cli.test_git_tree_without_remote_current_dir",
        "eval.tests.test_cyclonedx_cli.test_github_remote_in_tree_resolution_blocks_at_host_guard",
        "eval.tests.test_cyclonedx_cli.test_help_does_not_touch_network",
        "eval.tests.test_cyclonedx_cli.test_help_long_flag_shows_usage",
        "eval.tests.test_cyclonedx_cli.test_help_reports_spdx_default",
        "eval.tests.test_cyclonedx_cli.test_help_short_flag_shows_usage",
        "eval.tests.test_cyclonedx_cli.test_license_flag_without_cyclonedx_reaches_auth",
        "eval.tests.test_cyclonedx_cli.test_long_flags_reach_auth",
        "eval.tests.test_cyclonedx_cli.test_long_repository_flag_missing_argument",
        "eval.tests.test_cyclonedx_cli.test_multi_segment_slug_rejected",
        "eval.tests.test_cyclonedx_cli.test_no_repo_no_git_tree_current_dir",
        "eval.tests.test_cyclonedx_cli.test_non_github_remote_reports_no_known_host",
        "eval.tests.test_cyclonedx_cli.test_orphan_short_flag_bundle_repo_value",
        "eval.tests.test_cyclonedx_cli.test_positional_repo_argument_is_ignored",
        "eval.tests.test_cyclonedx_cli.test_repository_embedded_space_rejected",
        "eval.tests.test_cyclonedx_cli.test_repository_flag_missing_argument",
        "eval.tests.test_cyclonedx_cli.test_repository_leading_slash_rejected",
        "eval.tests.test_cyclonedx_cli.test_repository_trailing_slash_rejected",
        "eval.tests.test_cyclonedx_cli.test_single_segment_repo_rejected",
        "eval.tests.test_cyclonedx_cli.test_spdx_default_requires_github_auth",
        "eval.tests.test_cyclonedx_cli.test_unknown_flag_does_not_touch_network",
        "eval.tests.test_cyclonedx_cli.test_unknown_flag_rejected",
        "eval.tests.test_cyclonedx_cli.test_unknown_short_flag_rejected"
      ]
    },
    "generated_module_03": {
      "ignore_reason": "",
      "ignored": false,
      "ignored_tests": [],
      "tests": [
        "eval.tests.test_api_and_current_repo.test_cyclonedx_license_long_flag_auth_required",
        "eval.tests.test_api_and_current_repo.test_cyclonedx_output_repository_auth_required",
        "eval.tests.test_api_and_current_repo.test_cyclonedx_with_license_flag_auth_required",
        "eval.tests.test_api_and_current_repo.test_explicit_host_repository_auth_required",
        "eval.tests.test_api_and_current_repo.test_repository_current_unresolved_origin_fails",
        "eval.tests.test_api_and_current_repo.test_spdx_default_output_repository_auth_required",
        "eval.tests.test_api_and_current_repo.test_ssh_style_host_repository_auth_required",
        "eval.tests.test_combined_shorthand_flags.test_bool_then_string_combined_group_takes_following_arg[-clr]",
        "eval.tests.test_combined_shorthand_flags.test_bool_then_string_combined_group_takes_following_arg[-cr]",
        "eval.tests.test_combined_shorthand_flags.test_bool_then_string_combined_group_takes_following_arg[-lr]",
        "eval.tests.test_combined_shorthand_flags.test_combined_equals_join_empty_repository_is_literal_equals",
        "eval.tests.test_combined_shorthand_flags.test_combined_equals_join_repository_reaches_gate",
        "eval.tests.test_combined_shorthand_flags.test_combined_group_string_flag_without_arg_is_missing_argument[-clr]",
        "eval.tests.test_combined_shorthand_flags.test_combined_group_string_flag_without_arg_is_missing_argument[-cr]",
        "eval.tests.test_combined_shorthand_flags.test_string_flag_leading_combined_group_consumes_rune[-r2-2]",
        "eval.tests.test_combined_shorthand_flags.test_string_flag_leading_combined_group_consumes_rune[-rc-c]",
        "eval.tests.test_combined_shorthand_flags.test_string_flag_leading_combined_group_consumes_rune[-rk-k]",
        "eval.tests.test_combined_shorthand_flags.test_string_flag_leading_combined_group_consumes_rune[-rl-l]",
        "eval.tests.test_current_repo_and_binding_edges.test_combined_group_equals_false_cdx_license",
        "eval.tests.test_current_repo_and_binding_edges.test_combined_group_r_binds_equals_tail_false",
        "eval.tests.test_current_repo_and_binding_edges.test_current_repo_no_remotes_found_from_subdirectory",
        "eval.tests.test_current_repo_and_binding_edges.test_current_repo_ssh_unknown_host_origins_rejected",
        "eval.tests.test_current_repo_and_binding_edges.test_current_repo_with_git_init_but_no_remotes_fails",
        "eval.tests.test_current_repo_and_binding_edges.test_long_equals_cyclonedx_false_selects_spdx_branch",
        "eval.tests.test_current_repo_and_binding_edges.test_repository_value_with_embedded_spaces_echoed",
        "eval.tests.test_current_repo_and_binding_edges.test_repository_value_with_tab_echoed",
        "eval.tests.test_current_repo_and_binding_edges.test_short_equals_cyclonedx_false_selects_spdx_branch",
        "eval.tests.test_current_repo_and_binding_edges.test_short_equals_cyclonedx_true_selects_cdx_branch",
        "eval.tests.test_current_repo_and_binding_edges.test_short_equals_license_false_binding",
        "eval.tests.test_current_repo_and_binding_edges.test_short_r_consumes_dash_prefixed_value",
        "eval.tests.test_current_repo_and_binding_edges.test_short_r_consumes_double_dash_token",
        "eval.tests.test_current_repo_and_binding_edges.test_single_dash_long_flag_consumed_by_leading_short_r",
        "eval.tests.test_flag_binding_forms.test_long_flag_space_separated_repository_value_reaches_gate",
        "eval.tests.test_flag_binding_forms.test_short_form_equals_empty_repository_is_literal_equals",
        "eval.tests.test_flag_binding_forms.test_short_form_equals_invalid_cyclonedx_bool_rejected[args0-notabool]",
        "eval.tests.test_flag_binding_forms.test_short_form_equals_invalid_cyclonedx_bool_rejected[args1-maybe]",
        "eval.tests.test_flag_binding_forms.test_short_form_equals_invalid_cyclonedx_bool_rejected[args2-0x]",
        "eval.tests.test_flag_binding_forms.test_short_form_equals_invalid_license_bool_rejected[args0-zzz]",
        "eval.tests.test_flag_binding_forms.test_short_form_equals_invalid_license_bool_rejected[args1-truthy]",
        "eval.tests.test_flag_binding_forms.test_short_form_equals_invalid_license_bool_rejected[args2-on]",
        "eval.tests.test_flag_binding_forms.test_short_form_equals_invalid_repository_malformed",
        "eval.tests.test_flag_binding_forms.test_short_form_equals_valid_repository_reaches_gate",
        "eval.tests.test_flag_variations.test_combined_short_boolean_flags_parse",
        "eval.tests.test_flag_variations.test_end_of_flags_terminator_feeds_repository_value",
        "eval.tests.test_flag_variations.test_explicit_empty_repository_override_uses_current[empty_flag_args0]",
        "eval.tests.test_flag_variations.test_explicit_empty_repository_override_uses_current[empty_flag_args1]",
        "eval.tests.test_flag_variations.test_repeated_repository_flag_last_value_wins",
        "eval.tests.test_flag_variations.test_repeated_repository_invalid_first_value_discarded",
        "eval.tests.test_flag_variations.test_repository_equals_form_reaches_token_gate",
        "eval.tests.test_flag_variations.test_stray_positional_argument_is_ignored",
        "eval.tests.test_flag_variations.test_unknown_shorthand_after_valid_flag_still_errors",
        "eval.tests.test_help_flags.test_help_long_shows_usage_and_flag_docs",
        "eval.tests.test_help_flags.test_help_short_h_prints_same_usage",
        "eval.tests.test_help_flags.test_invalid_boolean_value_for_cyclonedx_rejected[0x1]",
        "eval.tests.test_help_flags.test_invalid_boolean_value_for_cyclonedx_rejected[1x]",
        "eval.tests.test_help_flags.test_invalid_boolean_value_for_cyclonedx_rejected[nope]",
        "eval.tests.test_help_flags.test_invalid_boolean_value_for_cyclonedx_rejected[tru]",
        "eval.tests.test_help_flags.test_invalid_boolean_value_for_cyclonedx_rejected[yes]",
        "eval.tests.test_help_flags.test_invalid_boolean_value_for_license_rejected[ja]",
        "eval.tests.test_help_flags.test_invalid_boolean_value_for_license_rejected[maybe]",
        "eval.tests.test_help_flags.test_invalid_boolean_value_for_license_rejected[on]",
        "eval.tests.test_help_flags.test_invalid_boolean_value_for_license_rejected[truthy]",
        "eval.tests.test_help_flags.test_missing_long_flag_argument_rejected",
        "eval.tests.test_help_flags.test_missing_short_flag_argument_rejected",
        "eval.tests.test_help_flags.test_unknown_long_flag_rejected",
        "eval.tests.test_help_flags.test_unknown_short_flag_rejected",
        "eval.tests.test_help_flags.test_valid_boolean_value_parses_past_pflag",
        "eval.tests.test_help_flags.test_valid_license_boolean_value_parses_past_pflag",
        "eval.tests.test_repository_resolution.test_default_invocation_without_git_repo_fails",
        "eval.tests.test_repository_resolution.test_malformed_repository_argument_reported_with_literal[-]",
        "eval.tests.test_repository_resolution.test_malformed_repository_argument_reported_with_literal[/]",
        "eval.tests.test_repository_resolution.test_malformed_repository_argument_reported_with_literal[/owner/repo]",
        "eval.tests.test_repository_resolution.test_malformed_repository_argument_reported_with_literal[a/b/c/d]",
        "eval.tests.test_repository_resolution.test_malformed_repository_argument_reported_with_literal[owner//repo]",
        "eval.tests.test_repository_resolution.test_malformed_repository_argument_reported_with_literal[owner/repo/]",
        "eval.tests.test_repository_resolution.test_malformed_repository_argument_reported_with_literal[owner]",
        "eval.tests.test_repository_resolution.test_whitespace_only_repository_value_is_present"
      ]
    }
  },
  "commit": "c4956d00756680fd0fe133bb4f3483ce65fa6a1d",
  "data_source": "synthetic_programgym",
  "difficulty": "easy",
  "difficulty_score": 1.9043909200123617,
  "eval_clean_hashes": [
    "ccd7b6e7463786e4f279f77eac4045de9115188051dcfc6c17014905ba14be17"
  ],
  "input_record": {
    "commit": "c4956d00756680fd0fe133bb4f3483ce65fa6a1d",
    "commits": 37,
    "contributors": 5,
    "difficulty": "easy",
    "difficulty_code_lines": 472,
    "difficulty_has_tests": false,
    "difficulty_product_code_lines": 472,
    "difficulty_runtime_deps": 16,
    "difficulty_score": 1.9043909200123617,
    "difficulty_test_code_lines": 0,
    "full_name": "advanced-security/gh-sbom",
    "github_stars": 206,
    "input_joern_zip": "go_joern/advanced-security__gh-sbom.zip",
    "joern_status": true,
    "joern_time": 7.288820354966447,
    "language": "go",
    "pb_match": [
      {
        "pb_fullname": "mfridman/tparse",
        "rank": 709,
        "similarity": 0.5098954439163208
      },
      {
        "pb_fullname": "cweill/gotests",
        "rank": 848,
        "similarity": 0.512531042098999
      },
      {
        "pb_fullname": "boyter/scc",
        "rank": 869,
        "similarity": 0.4842698872089386
      },
      {
        "pb_fullname": "incu6us/goimports-reviser",
        "rank": 873,
        "similarity": 0.48190680146217346
      },
      {
        "pb_fullname": "sibprogrammer/xq",
        "rank": 785,
        "similarity": 0.47583091259002686
      }
    ],
    "repo_age": 3.46,
    "repo_path": "go/advanced-security__gh-sbom",
    "source": "commit:c4956d00756680fd0fe133bb4f3483ce65fa6a1d",
    "status": "done",
    "url": "https://github.com/advanced-security/gh-sbom"
  },
  "instance_id": "advanced-security__gh-sbom.c4956d0",
  "language": "go",
  "module_iterations": [
    {
      "actual_iterations": 4,
      "branch_name": "generated_module_01",
      "iteration_limit": 5,
      "module_index": 1,
      "module_kind": "source",
      "termination_reason": "module_coverage_threshold_reached"
    },
    {
      "actual_iterations": 5,
      "branch_name": "generated_module_02",
      "iteration_limit": 5,
      "module_index": 2,
      "module_kind": "source",
      "termination_reason": "early_stopping"
    },
    {
      "actual_iterations": 5,
      "branch_name": "generated_module_03",
      "iteration_limit": 5,
      "module_index": 3,
      "module_kind": "source",
      "termination_reason": "early_stopping"
    }
  ],
  "repository": "advanced-security/gh-sbom"
}