<commit_before>{% extends "MoschiniPerfToolBundle::layout.html.twig" %}
{% block title 'Waterfall' %}

{% block stylesheets %}
<link href="{{ asset('css/harviewer.css') }}" type="text/css" rel="stylesheet" />
{% endblock %}

{% block content %}

<div>
<table class="top-table">
<tr>
<td width="160">
{% if previous %}
<a class="btn" href="{{ path('moschini_perftool_default_harviewer', {'site': app.request.get('site'), 'id': previous}) }}">&lt; Older</a>
{% endif %}
{% if next %}
<a class="btn" href="{{ path('moschini_perftool_default_harviewer', {'site': app.request.get('site'), 'id': next}) }}">Newer &gt;</a>
{% endif %}
</td>
<td align="left">
</td>
<td align="right">
<a class="btn pull-right" href="{{ path('moschini_perftool_default_send', {'site': app.request.get('site'), 'url': har.getUrl.getUrl}) }}">Create new</a>

</td>
</tr>
</table>
</div>

{% for page in har.getPages %}
	<h1>{{ page.getName }}</h1>
    <p> 
    {{ har.getDate.format('Y-m-d@H:i:s') }}
    </p>

    <table class="har table-hover">

	{% for entry in page.getEntries %}
        <tr>
        <td>
        <b>
		{{ entry.getRequest.getMethod }}
        <a title="{{ entry.getUrl.getUrl }}" href="{{ path('moschini_perftool_default_info', {'site': app.request.get('site'), 'url': entry.getUrl.getUrl}) }}">
		{% if entry.getUrl.getFileName %}
		{{ entry.getUrl.getFileName|slice(0,40) }}
		{% else %}
		{{ entry.getUrl.getHost }}
		{% endif %}
        </a>
        </b>
        </td>
        <td>
		{{ entry.getResponse.getStatus }}
        </td>
        <td>
		{{ entry.getUrl.getHost }}
        </td>
        <td class="size">
        {% if entry.getResponse.getBodySize == 0 %}
        (from cache)
        {% else %}
		{{ entry.getSize|getHumanSize|join(' ') }}
        {% endif %}
        </td>
        <td>
        <span class="time onload">
        </span>
        <div class="rel" style="left: {{ page.getElapsedAsPercentage(entry) }}%; display:inline;"><commit_msg>Add link to show assets for domain on har view<commit_after>{% extends "MoschiniPerfToolBundle::layout.html.twig" %}
{% block title 'Waterfall' %}

{% block stylesheets %}
<link href="{{ asset('css/harviewer.css') }}" type="text/css" rel="stylesheet" />
{% endblock %}

{% block content %}

<div>
<table class="top-table">
<tr>
<td width="160">
{% if previous %}
<a class="btn" href="{{ path('moschini_perftool_default_harviewer', {'site': app.request.get('site'), 'id': previous}) }}">&lt; Older</a>
{% endif %}
{% if next %}
<a class="btn" href="{{ path('moschini_perftool_default_harviewer', {'site': app.request.get('site'), 'id': next}) }}">Newer &gt;</a>
{% endif %}
</td>
<td align="left">
</td>
<td align="right">
<a class="btn pull-right" href="{{ path('moschini_perftool_default_send', {'site': app.request.get('site'), 'url': har.getUrl.getUrl}) }}">Create new</a>

</td>
</tr>
</table>
</div>

{% for page in har.getPages %}
	<h1>{{ page.getName }}</h1>
    <p> 
    {{ har.getDate.format('Y-m-d@H:i:s') }}
    </p>

    <table class="har table-hover">

	{% for entry in page.getEntries %}
        <tr>
        <td>
        <b>
		{{ entry.getRequest.getMethod }}
        <a title="{{ entry.getUrl.getUrl }}" href="{{ path('moschini_perftool_default_info', {'site': app.request.get('site'), 'url': entry.getUrl.getUrl}) }}">
		{% if entry.getUrl.getFileName %}
		{{ entry.getUrl.getFileName|slice(0,40) }}
		{% else %}
		{{ entry.getUrl.getHost }}
		{% endif %}
        </a>
        </b>
        </td>
        <td>
		{{ entry.getResponse.getStatus }}
        </td>
        <td>
        <a href="{{ path('moschini_perftool_default_info', {'site': app.request.get('site'), 'host': entry.getUrl.getHost}) }}">
		{{ entry.getUrl.getHost }}
        </a>
        </td>
        <td class="size">
        {% if entry.getResponse.getBodySize == 0 %}
        (from cache)
        {% else %}
		{{ entry.getSize|getHumanSize|join(' ') }}
        {% endif %}
        </td>
        <td>
        <span class="time onload">
        </span>
        <div class="rel" style="left: {{ page.getElapsedAsPercentage(entry) }}%; display:inline;">
{'fraction_non_alphanumeric': 0.2287949156685407, 'fraction_numerical': 0.004399902224395014, 'mean_word_length': 3.218556701030928, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 87, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4231759', 'n_tokens_mistral': 1561, 'n_tokens_neox': 1444, 'n_words': 286}