<commit_before>$def with (pol)

$var head:
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=<KEY>" type="text/javascript"></script>
    <script src="http://www.govtrack.us/scripts/gmap-wms.js"></script>
	  <script src="/static/distmap.js"></script>
	  <script type="text/javascript">distcenter('googlemap', '$pol.district.replace('-0', '').replace('-', '')', [$pol.d0, $pol.d1, $pol.d2 - 2])</script>

$var title: $pol.firstname $pol.middlename $pol.lastname

$var pretitle:
    <div id="googlemap" class="pretitle sidemap"></div>
    
    $if pol.photo_path:
        <a href="$pol.photo_path"><img src="$pol.photo_path" alt="Headshot" class="headshot pretitle" /></a>

<p>
  represents <a href="/us/$pol.district">$pol.district</a><br />
  $if pol.birthday: b. $pol.birthday<br />
  $pol.party, $pol.religion<br />
  <a href="$pol.officeurl">Official website</a>
</p>

<table class="charted" style="clear: both">
  <tr>
    <th>Spoken:</th>
    <td><a href="http://www.govtrack.us/congress/person.xpd?tab=speeches&amp;id=400425">$commify(pol.n_speeches) times</a></td>
    <td><a href="/p/by/n_speeches#$pol.id"
         ><img src="/p/by/n_speeches/distribution.png?point=$pol.n_speeches"
               class="sparkline" /></a></td>
  </tr><tr>
    <th>Avg. speech length:</th>
    <td>$commify(pol.words_per_speech) words</td>
    <td><a href="/p/by/words_per_speech#$pol.id"
         ><img 
           src="/p/by/words_per_speech/distribution.png?point=$pol.words_per_speech"
           class="sparkline" /></a></td>
  </tr><tr>
  <tr><th colspan="2">(Data for 110th Congress only)</th></tr>
</table>

<div class="sources">
  Politician information from <a href="$pol.wikipedia">Wikipedia</a> and 
  <a href="http://www.govtrack.us/congress/person.xpd?id=$pol.govtrackid">GovTrack</a>. 
  Campaign finance information from <a href="http://opensecrets.org/politicians/summary.asp?CID=$pol.opensecretsid">Open Secrets</a>. 
  Voting record from the <a href="http://projects.washingtonpost.com/congress/members/$pol.bioguideid.lower()">Washington Post</a>.
  $if pol.photo_credit_text:
      Photo from <a href="$pol.photo_credit_url">$pol.photo_credit_text</a>.
</div><commit_msg>fix typo bug (tx Kragen)<commit_after>$def with (pol)

$var head:
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=<KEY>" type="text/javascript"></script>
    <script src="http://www.govtrack.us/scripts/gmap-wms.js"></script>
	  <script src="/static/distmap.js"></script>
	  <script type="text/javascript">distcenter('googlemap', '$pol.district.replace('-0', '').replace('-', '')', [$pol.d0, $pol.d1, $pol.d2 - 2])</script>

$var title: $pol.firstname $pol.middlename $pol.lastname

$var pretitle:
    <div id="googlemap" class="pretitle sidemap"></div>
    
    $if pol.photo_path:
        <a href="$pol.photo_path"><img src="$pol.photo_path" alt="Headshot" class="headshot pretitle" /></a>

<p>
  represents <a href="/us/$pol.district">$pol.district</a><br />
  $if pol.birthday: b. $pol.birthday<br />
  $pol.party, $pol.religion<br />
  <a href="$pol.officeurl">Official website</a>
</p>

<table class="charted" style="clear: both">
  <tr>
    <th>Spoken:</th>
    <td><a href="http://www.govtrack.us/congress/person.xpd?tab=speeches&amp;id=$pol.govtrackid">$commify(pol.n_speeches) times</a></td>
    <td><a href="/p/by/n_speeches#$pol.id"
         ><img src="/p/by/n_speeches/distribution.png?point=$pol.n_speeches"
               class="sparkline" /></a></td>
  </tr><tr>
    <th>Avg. speech length:</th>
    <td>$commify(pol.words_per_speech) words</td>
    <td><a href="/p/by/words_per_speech#$pol.id"
         ><img 
           src="/p/by/words_per_speech/distribution.png?point=$pol.words_per_speech"
           class="sparkline" /></a></td>
  </tr><tr>
  <tr><th colspan="2">(Data for 110th Congress only)</th></tr>
</table>

<div class="sources">
  Politician information from <a href="$pol.wikipedia">Wikipedia</a> and 
  <a href="http://www.govtrack.us/congress/person.xpd?id=$pol.govtrackid">GovTrack</a>. 
  Campaign finance information from <a href="http://opensecrets.org/politicians/summary.asp?CID=$pol.opensecretsid">Open Secrets</a>. 
  Voting record from the <a href="http://projects.washingtonpost.com/congress/members/$pol.bioguideid.lower()">Washington Post</a>.
  $if pol.photo_credit_text:
      Photo from <a href="$pol.photo_credit_url">$pol.photo_credit_text</a>.
</div>
{'fraction_non_alphanumeric': 0.21373700858563036, 'fraction_numerical': 0.00587437867148667, 'mean_word_length': 4.232860520094563, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 135, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '208986', 'n_tokens_mistral': 1737, 'n_tokens_neox': 1640, 'n_words': 243}