<commit_before><!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">
        /* <![CDATA[ */
        $(function() {
          $("abbr.timeago").timeago();
          $("a.share").popover({
            trigger: 'manual',
            content: getShareUrl('${request.url}'),
            title: 'Share flight'
          }).click(function(e) {
            e.preventDefault();
            $(this).popover('toggle');
          });

          function getShareUrl(url) {
            return '<input value="' + url + '" style="width: 100%;">';
          };
        });
        /* ]]> */
      </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.takeoff_time">
        <th>Date</th>
        <td>
          <span py:content="h.format_date(flight.takeoff_time)">
            2012-05-21
          </span>
          <a href="#" class="btn btn-mini pull-right share">
            <i class="icon-share icon-small"></i> Share this flight
          </a>
        </td>
      </tr>
      <tr py:if="flight.takeoff_time">
        <meta itemprop="startDate" content="${flight.takeoff_time.isoformat()}" />
        <th>Take-off</th>
        <td>
          <py:if test="flight.takeoff_airport is not None">
            <a py:content="flight.takeoff_airport.name" href="/flights/airport/${flight.takeoff_airport_id}">Airport</a>
            <br /><commit_msg>templates.flights.details-table: nicer styling of share overlay<commit_after><!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">
        /* <![CDATA[ */
        $(function() {
          $("abbr.timeago").timeago();
          $("a.share").popover({
            trigger: 'manual',
            content: getShareUrl('${request.url}'),
            title: 'Spread the word'
          }).click(function(e) {
            e.preventDefault();
            $(this).popover('toggle');
          });

          function getShareUrl(url) {
            return '<input value="' + url + '" type="text" style="width: 95%;">';
          };
        });
        /* ]]> */
      </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.takeoff_time">
        <th>Date</th>
        <td>
          <span py:content="h.format_date(flight.takeoff_time)">
            2012-05-21
          </span>
          <a href="#" class="btn btn-mini pull-right share">
            <i class="icon-share icon-small"></i> Share this flight
          </a>
        </td>
      </tr>
      <tr py:if="flight.takeoff_time">
        <meta itemprop="startDate" content="${flight.takeoff_time.isoformat()}" />
        <th>Take-off</th>
        <td>
          <py:if test="flight.takeoff_airport is not None">
            <a py:content="flight.takeoff_airport.name" href="/flights/airport/${flight.takeoff_airport_id}">Airport</a>
            <br />
{'fraction_non_alphanumeric': 0.19423617619493908, 'fraction_numerical': 0.012417994376757264, 'mean_word_length': 2.22188679245283, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, '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': '1552560', 'n_tokens_mistral': 1452, 'n_tokens_neox': 1362, 'n_words': 207}