<commit_before><?python
from skylines.lib.units import format_distance, format_speed
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      py:strip="">
      
  <py:match path="head" once="true">
    <head py:attrs="select('@*')">
      ${select('*')}
  
      <script type="text/javascript" src="/static/jquery/jquery.timeago.js"></script>
      <script type="text/javascript" src="/static/bootstrap/js/bootstrap-popover.js"></script>
      <script type="text/javascript" src="/static/bootstrap/js/bootstrap-modal.js"></script>
    
      <script type="text/javascript">
        /* <![CDATA[ */
        $(function() {
          $("abbr.timeago").timeago();
          $("a.share").popover({
            trigger: 'manual',
            content: '<input value="' + getShareUrl('${request.url}') + '" type="text" style="width: 95%;">',
            title: 'Spread the word'
          }).click(function(e) {
            e.preventDefault();
            $(this).popover('toggle');
          });
        });
        /* ]]> */
      </script>
    </head>
  </py:match>

  <table py:def="render_details_table(flight)" class="table" itemscope="" itemtype="http://schema.org/SportsEvent">
    <meta itemprop="url" content="/flights/${flight.id}" />
    <tbody>
      <tr py:if="flight.date_local">
        <th>Date</th>
        <td>
          <span py:content="h.format_date(flight.date_local)">
            2012-05-21
          </span>
          <a href="#" class="btn btn-mini pull-right share">
            <i class="icon-share-alt icon-small"></i> Share
          </a>
        </td>
      </tr>
      <tr py:if="flight.takeoff_time">
        <meta itemprop="startDate" content="${h.isoformat_utc(flight.takeoff_time)}" />
        <th>Take-off</th>
        <td>
          <py:if test="flight.takeoff_airport is not None">
            ${insert_flag(flight.takeoff_airport.country_code, 'float:right;margin:3px')}
            <a py:content="flight.takeoff_airport.name" href="/flights/airport/${flight.takeoff_airport_id}">Airport</a>
            <br />
            at
          </py:if>
          <span py:replace="h.format_time(flight.takeoff_time)">10:00</span>
        </td>
      </tr>
      <tr py:if="flight.landing_time">
        <meta itemprop="endDate" content="${h.isoformat_utc(flight.landing_time)}" />
        <th>Landing</th>
        <td>
          <py:if test="flight.landing_airport is not None">
            ${insert_flag(flight.landing_airport.country_code, 'float:right;margin:3px')}
            <a py:content="flight.landing_airport.name" href="/flights/airport/${flight.landing_airport_id}">Airport</a>
            <br />
            at
          </py:if>
          <span py:replace="h.format_time(flight.landing_time)">10:00</span>
        </td>
      </tr>
      <tr py:if="flight.duration">
        <th>Duration</th>
        <td py:content="str(flight.duration) + ' hours'">
          01:23:34 hours
        </td>
      </tr>
      <tr>
        <th>Aircraft</th>
        <td>
          <a py:if="flight.is_writable()" href="change_aircraft" class="btn btn-mini" style="float: right;">
            <i class="icon-pencil icon-small"></i> Change
          </a>

          <span py:if="flight.model_id is not None" py:replace="flight.model"/>
          <py:if test="flight.model_id is None and
                       flight.igc_file.model is not None">
            [${flight.igc_file.model}]
          </py:if>
          <py:if test="flight.model_id is None and
                       flight.igc_file.model is None">
            Unknown
          </py:if>

          <small><br/>
          <py:if test="flight.registration is not None">
            ${flight.registration}
          </py:if>
          <py:if test="flight.registration is None and
                       flight.igc_file.registration is not None">
            ${flight.igc_file.registration}
          </py:if>
          </small>
        </td>
      </tr>
      <tr>
        <th>Score</th>
        <td>
          ${flight.olc_plus_score} pt
          <small><br/>
          <span py:if="flight.olc_classic_distance is not None">
            (${format_distance(flight.olc_classic_distance)},
          </span>
          <span py:if="flight.olc_triangle_distance is not None">
            triangle ${format_distance(flight.olc_triangle_distance)})
          </span>
          </small>
        </td>
      </tr>
      <tr py:if="flight.speed">
        <th>Speed</th>
        <td>
          ${format_speed(flight.speed)}
        </td>
      </tr>
      <tr>
        <th>Pilot</th>
        <td>
          <a py:if="flight.is_writable()" href="change_pilot" class="btn btn-mini" style="float: right;"><i class="icon-pencil icon-small"></i> Change</a>
          <span py:if="flight.pilot" itemprop="performer" itemscope="" itemtype="http://schema.org/Person">
            <meta itemprop="url" content="/users/${flight.pilot_id}" />
            <a py:content="flight.pilot" href="/users/${flight.pilot_id}/" itemprop="name">Pilot Name</a>
          </span><commit_msg>flights/details-table: Added symbols and title attributes<commit_after><?python
from skylines.lib.units import format_distance, format_speed
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      py:strip="">
      
  <py:match path="head" once="true">
    <head py:attrs="select('@*')">
      ${select('*')}
  
      <script type="text/javascript" src="/static/jquery/jquery.timeago.js"></script>
      <script type="text/javascript" src="/static/bootstrap/js/bootstrap-popover.js"></script>
      <script type="text/javascript" src="/static/bootstrap/js/bootstrap-modal.js"></script>
    
      <script type="text/javascript">
        /* <![CDATA[ */
        $(function() {
          $("abbr.timeago").timeago();
          $("a.share").popover({
            trigger: 'manual',
            content: '<input value="' + getShareUrl('${request.url}') + '" type="text" style="width: 95%;">',
            title: 'Spread the word'
          }).click(function(e) {
            e.preventDefault();
            $(this).popover('toggle');
          });
        });
        /* ]]> */
      </script>
    </head>
  </py:match>

  <table py:def="render_details_table(flight)" class="table" itemscope="" itemtype="http://schema.org/SportsEvent">
    <meta itemprop="url" content="/flights/${flight.id}" />
    <tbody>
      <tr py:if="flight.date_local">
        <th>Date</th>
        <td>
          <span py:content="h.format_date(flight.date_local)">
            2012-05-21
          </span>
          <a href="#" class="btn btn-mini pull-right share">
            <i class="icon-share-alt icon-small"></i> Share
          </a>
        </td>
      </tr>
      <tr py:if="flight.takeoff_time">
        <meta itemprop="startDate" content="${h.isoformat_utc(flight.takeoff_time)}" />
        <th>Take-off</th>
        <td>
          <py:if test="flight.takeoff_airport is not None">
            ${insert_flag(flight.takeoff_airport.country_code, 'float:right;margin:3px')}
            <a py:content="flight.takeoff_airport.name" href="/flights/airport/${flight.takeoff_airport_id}">Airport</a>
            <br />
            at
          </py:if>
          <span py:replace="h.format_time(flight.takeoff_time)">10:00</span>
        </td>
      </tr>
      <tr py:if="flight.landing_time">
        <meta itemprop="endDate" content="${h.isoformat_utc(flight.landing_time)}" />
        <th>Landing</th>
        <td>
          <py:if test="flight.landing_airport is not None">
            ${insert_flag(flight.landing_airport.country_code, 'float:right;margin:3px')}
            <a py:content="flight.landing_airport.name" href="/flights/airport/${flight.landing_airport_id}">Airport</a>
            <br />
            at
          </py:if>
          <span py:replace="h.format_time(flight.landing_time)">10:00</span>
        </td>
      </tr>
      <tr py:if="flight.duration">
        <th>Duration</th>
        <td py:content="str(flight.duration) + ' hours'">
          01:23:34 hours
        </td>
      </tr>
      <tr>
        <th>Aircraft</th>
        <td>
          <a py:if="flight.is_writable()" href="change_aircraft" class="btn btn-mini" style="float: right;">
            <i class="icon-pencil icon-small"></i> Change
          </a>

          <span py:if="flight.model_id is not None" py:replace="flight.model"/>
          <py:if test="flight.model_id is None and
                       flight.igc_file.model is not None">
            [${flight.igc_file.model}]
          </py:if>
          <py:if test="flight.model_id is None and
                       flight.igc_file.model is None">
            Unknown
          </py:if>

          <small><br/>
          <py:if test="flight.registration is not None">
            ${flight.registration}
          </py:if>
          <py:if test="flight.registration is None and
                       flight.igc_file.registration is not None">
            ${flight.igc_file.registration}
          </py:if>
          </small>
        </td>
      </tr>
      <tr>
        <th>Score</th>
        <td>
          ${flight.olc_plus_score} pt
          <small><br/>
          <span py:if="flight.olc_classic_distance is not None" title="OLC Distance">
            &#x294A; ${format_distance(flight.olc_classic_distance)},
          </span>
          <span py:if="flight.olc_triangle_distance is not None" title="FAI Triangle Distance">
            &#x25B2; ${format_distance(flight.olc_triangle_distance)}
          </span>
          </small>
        </td>
      </tr>
      <tr py:if="flight.speed">
        <th>Speed</th>
        <td>
          ${format_speed(flight.speed)}
        </td>
      </tr>
      <tr>
        <th>Pilot</th>
        <td>
          <a py:if="flight.is_writable()" href="change_pilot" class="btn btn-mini" style="float: right;"><i class="icon-pencil icon-small"></i> Change</a>
          <span py:if="flight.pilot" itemprop="performer" itemscope="" itemtype="http://schema.org/Person">
            <meta itemprop="url" content="/users/${flight.pilot_id}" />
            <a py:content="flight.pilot" href="/users/${flight.pilot_id}/" itemprop="name">Pilot Name</a>
          </span>
{'fraction_non_alphanumeric': 0.17600075173839505, 'fraction_numerical': 0.008457056944183423, 'mean_word_length': 2.1211143695014663, 'pattern_counts': {'":': 0, '<': 243, '<?xml version=': 0, '>': 243, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 6}, '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': '2131405', 'n_tokens_mistral': 3645, 'n_tokens_neox': 3423, 'n_words': 548}