{# Copyright 2025 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. #}{% extends 'base.html' %} {% import 'macros.html' as macros %} {% block content %} {% if sample_css_content and sample_css_content.strip() and '{' in sample_css_content %} {% endif %} {% if sample_js_content %} {% endif %}

{{ benchmark.id }} / {{ sample.id }}

{{ macros.crash_badge(sample.result.crashes) }} {{ macros.vulnerability_badge(sample.result.crashes and not sample.result.is_semantic_error) }}
{% if crash_info is defined and crash_info.artifact_folder %}

Artifact Folder

GCS: {{ crash_info.artifact_folder.gs_url }}
{% endif %} {% if sample.result.semantic_error or (crash_info is defined and crash_info) %}
{% if crash_info is defined and crash_info.crash_symptom %}

Sanitizer

Bug Type

Crash Address

{% endif %} {% if crash_info.execution_stats %}
{% for key, value in crash_info.execution_stats.items() %} {{ key }}: {{ value }}{% if not loop.last %}|{% endif %} {% endfor %}
{% endif %} {% if crash_info.crash_details %} {% if crash_info.stack_traces %} {% endif %}
{{ crash_info.crash_details }}
{% endif %}
{% endif %}
{% if triage.result %}

Triage

{{ triage.result }}
{% endif %} {% if triage.triager_prompt %}

Triager Prompt

{{ triage.triager_prompt }}
{% endif %}
{{ macros.collapsible_section('Final Code', 'codeOpen') }}
{% for target in targets %}

Code #{{ loop.index - 1}}

{% if target.code is defined and target.code %} {{ macros.code_block(target.code, benchmark.language|lower if benchmark.language else 'plaintext') }} {% endif %} {% if target.build_script_code is defined and target.build_script_code %}

Build Script

{{ macros.code_block(target.build_script_code, 'bash') }} {% endif %} {% endfor %}
{{ macros.collapsible_section('Agents', 'agentsOpen') }} {% if agent_cycles %}
{{ macros.expand_collapse_buttons('agent-sections-expand-all', 'agent-sections-collapse-all', 'Expand All', 'Collapse All') }} {% set color_classes = [ 'border-blue-300', 'border-green-300', 'border-purple-300', 'border-red-300', 'border-indigo-300', 'border-pink-300', 'border-teal-300' ] %} {% for cycle_data in agent_cycles %} {{ macros.agent_cycle_section(cycle_data, loop.index, color_classes, default_lang) }} {% endfor %}
{% endif %}
{{ macros.collapsible_section('Raw Logs', 'logsOpen') }}
{% for part in logs %}
{{ part.content|syntax_highlight(default_lang)|safe }}
{% endfor %}
{% if sample.result.coverage_report_path %}
{{ macros.collapsible_section('Coverage Report (embedded)', 'coverageOpen') }}
{% endif %}
{% endblock %}