<commit_before><h1><%= @title %></h1>

<form method="post" action="/dashboards" id="form">

  <div class="form-group">
    <label for="title">Dashboard Name</label>
    <input type="text" class="form-control" id="title" value="" name="dashboard[name]">
  </div>

  <div class="form-group">
    <label for="title">Number of rows</label>
    <input type="number" class="form-control rowcols" id="rows" value="1" name="dashboard[rows]" min="1" max="3">
    <div class="help-block">Maxiumum 3 rows</div>
  </div>

  <div class="form-group">
    <label for="title">Number of columns</label>
    <input type="number" class="form-control rowcols" id="columns" value="1" name="dashboard[columns]" min="1" max="4">
    <div class="help-block">Maxiumum 4 columns</div>
  </div>

  <div class="form-group">
    <table id="dashboard" class="hidden table"></table>
    <div id="metric-template" class="hidden">
      <iframe src='<%= request.scheme + '://' + request.host_with_port +  '/metrics/' + @metrics.first + '?layout=bare' %>' width='100%' height='300px' frameBorder='0' scrolling='no' data-base-url='<%= request.scheme + '://' + request.host_with_port +  '/metrics/' %>'></iframe>

      <div class="form-group form-group-sm">
        <label for='metric' class='text-right'>Metric</label>
        <div class="input-group"><commit_msg>Hide iframe at first<commit_after><h1><%= @title %></h1>

<form method="post" action="/dashboards" id="form">

  <div class="form-group">
    <label for="title">Dashboard Name</label>
    <input type="text" class="form-control" id="title" value="" name="dashboard[name]">
  </div>

  <div class="form-group">
    <label for="title">Number of rows</label>
    <input type="number" class="form-control rowcols" id="rows" value="1" name="dashboard[rows]" min="1" max="3">
    <div class="help-block">Maxiumum 3 rows</div>
  </div>

  <div class="form-group">
    <label for="title">Number of columns</label>
    <input type="number" class="form-control rowcols" id="columns" value="1" name="dashboard[columns]" min="1" max="4">
    <div class="help-block">Maxiumum 4 columns</div>
  </div>

  <div class="form-group">
    <table id="dashboard" class="hidden table"></table>
    <div id="metric-template" class="hidden">
      <iframe src='' width='100%' height='300px' frameBorder='0' scrolling='no' data-base-url='<%= request.scheme + '://' + request.host_with_port +  '/metrics/' %>' class='hidden'></iframe>

      <div class="form-group form-group-sm">
        <label for='metric' class='text-right'>Metric</label>
        <div class="input-group">
{'fraction_non_alphanumeric': 0.21636293136874757, 'fraction_numerical': 0.013183404420317953, 'mean_word_length': 4.670329670329671, 'pattern_counts': {'":': 0, '<': 72, '<?xml version=': 0, '>': 72, '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': '3489088', 'n_tokens_mistral': 888, 'n_tokens_neox': 858, 'n_words': 181}