<commit_before>{% extends "skia_telemetry_base.html" %}

{% block content %}

<center>
{% if info_msg %}<font color="red"><b>{{ info_msg }}</b></font><br/><br/>{% endif %}

<h2>Run Chromium patches on the top 10k webpages</h2>
<br/>

{{ pending_tasks_count }} tasks currently in the <a align="center" href='pending_tasks'>Queue</a>
<br/>
Documentation for Chromium Tryserver and benchmarks is <a href='https://docs.google.com/a/chromium.org/document/d/1GhqosQcwsy6F-eBAmFn_ITDF7_Iv_rY9FhCKwAnk9qQ/edit#'>here</a>
<br/></br>
<a href="javascript:toggleDetails();">Show/hide algorithm details</a>
<script type="text/javascript">
  function toggleDetails() {
    var details = ["benchmark_details", "variance_details", "outliers_details", "repeated_runs"];
    for (var i=0; i<details.length; i++) {
      if (document.getElementById(details[i]).style.display == 'none') {
        document.getElementById(details[i]).style.display = '';
      } else {
        document.getElementById(details[i]).style.display = 'none';
      }
    }
  }
</script>
<br/>
<br/>

{% if not is_google_chromium_user %}
  Must have a google or chromium account to trigger benchmarks (contact rmistry@)<br/><br/>
{% else %}
  <form name="ChromiumTryForm" action="chromium_try" method="post">
  <table cellingpadding="5">
    <tr>                                                                      
      <td>Benchmark to run</td>
      <td>
        <select id="benchmark_name" name="benchmark_name" onchange="populateThreshold(this)"> 
          {% for benchmark in supported_benchmarks %}                             
            <option value="{{ benchmark }}">{{ benchmark }}</option>
          {% endfor %}                                                        
        </select>
        Uses the telemetry revision from this <a href='https://skia.googlesource.com/buildbot/+/master/DEPS'>DEPS</a> file.
      </td>
    </tr>                                                                     
    <tr id="benchmark_details" style="display:none">                                                                      
      <td>Benchmark Arguments</td>                                            
      <td>
        <input type="text" size="35" name="benchmark_arguments" value="--output-format=csv"/>
        The Benchmark must output in CSV to do meaningful comparisions.
      </td>
    </tr>
    <tr id="repeated_runs" style="display:none">
      <td>Repeat Pageset Runs</td>
      <td>
        <select id="num_repeated_runs" name="num_repeated_runs">
          <option value="1">1</option>
          <option value="3" selected>3</option>
          <option value="5">5</option>
        </select>
        Repeats each pageset and takes median of results. More documentation is here.
      </td>
    </tr><commit_msg>Add link to algorithm documentation<commit_after>{% extends "skia_telemetry_base.html" %}

{% block content %}

<center>
{% if info_msg %}<font color="red"><b>{{ info_msg }}</b></font><br/><br/>{% endif %}

<h2>Run Chromium patches on the top 10k webpages</h2>
<br/>

{{ pending_tasks_count }} tasks currently in the <a align="center" href='pending_tasks'>Queue</a>
<br/>
Documentation for Chromium Tryserver and benchmarks is <a href='https://docs.google.com/a/chromium.org/document/d/1GhqosQcwsy6F-eBAmFn_ITDF7_Iv_rY9FhCKwAnk9qQ/edit#'>here</a>
<br/></br>
<a href="javascript:toggleDetails();">Show/hide algorithm details</a>
<script type="text/javascript">
  function toggleDetails() {
    var details = ["benchmark_details", "variance_details", "outliers_details", "repeated_runs"];
    for (var i=0; i<details.length; i++) {
      if (document.getElementById(details[i]).style.display == 'none') {
        document.getElementById(details[i]).style.display = '';
      } else {
        document.getElementById(details[i]).style.display = 'none';
      }
    }
  }
</script>
<br/>
<br/>

{% if not is_google_chromium_user %}
  Must have a google or chromium account to trigger benchmarks (contact rmistry@)<br/><br/>
{% else %}
  <form name="ChromiumTryForm" action="chromium_try" method="post">
  <table cellingpadding="5">
    <tr>                                                                      
      <td>Benchmark to run</td>
      <td>
        <select id="benchmark_name" name="benchmark_name" onchange="populateThreshold(this)"> 
          {% for benchmark in supported_benchmarks %}                             
            <option value="{{ benchmark }}">{{ benchmark }}</option>
          {% endfor %}                                                        
        </select>
        Uses the telemetry revision from this <a href='https://skia.googlesource.com/buildbot/+/master/DEPS'>DEPS</a> file.
      </td>
    </tr>                                                                     
    <tr id="benchmark_details" style="display:none">                                                                      
      <td>Benchmark Arguments</td>                                            
      <td>
        <input type="text" size="35" name="benchmark_arguments" value="--output-format=csv"/>
        The Benchmark must output in CSV to do meaningful comparisions.
      </td>
    </tr>
    <tr id="repeated_runs" style="display:none">
      <td>Repeat Pageset Runs</td>
      <td>
        <select id="num_repeated_runs" name="num_repeated_runs">
          <option value="1">1</option>
          <option value="3" selected>3</option>
          <option value="5">5</option>
        </select>
        Repeats each pageset and takes median of results. More documentation is <a href='https://docs.google.com/a/chromium.org/document/d/1GhqosQcwsy6F-eBAmFn_ITDF7_Iv_rY9FhCKwAnk9qQ/edit#heading=h.rlyfe3y13j6m'>here</a>.
      </td>
    </tr>
{'fraction_non_alphanumeric': 0.14521452145214522, 'fraction_numerical': 0.008163974292166058, 'mean_word_length': 2.220357941834452, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 125, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1790965', 'n_tokens_mistral': 1782, 'n_tokens_neox': 1686, 'n_words': 360}