<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=$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>
    <th>Requested</th>
    <td>$commify(pol.n_earmark_requested) earmarks</td>
    <td><a href="/p/by/n_earmark_requested#$pol.id"
         ><img 
           src="/p/by/n_earmark_requested/distribution.png?point=$pol.n_earmark_requested"
           class="sparkline" /></a></td>
  </tr><tr>
    <th>Total earmarks requested</th>
    <td>\$$commify(pol.amt_earmark_received)</td>
    <td><a href="/p/by/amt_earmark_received#$pol.id"
        ><img 
            src="/p/by/amt_earmark_received/distribution.png?point=$pol.amt_earmark_received"
            class="sparkline" /></a></td>
  </tr><tr>
    <th>Received</th>
    <td>$commify(pol.n_earmark_received) earmarks</td>
    <td><a href="/p/by/n_earmark_received#$pol.id"
         ><img 
           src="/p/by/n_earmark_received/distribution.png?point=$pol.n_earmark_received"
           class="sparkline" /></a></td>
  </tr><tr>
    <th>Total earmarks received</th>
    <td>\$$commify(pol.amt_earmark_received)</td>
    <td><a href="/p/by/amt_earmark_received#$pol.id"
         ><img 
           src="/p/by/amt_earmark_received/distribution.png?point=$pol.amt_earmark_received"
           class="sparkline" /></a></td>
  </tr><tr>
  <tr><th colspan="2">(Data for 110th Congress only)</th></tr>
</table>

<h2>Special Interest Group Ratings</h2>

<table class="interest_group_ratings">
<tr><td></td>
$for groupname in pol.interest_group_table['groups']:
    <th>$groupname</th>
</tr>
$for year in pol.interest_group_table['rows']:
    <tr><th>$year['year']</td>
    $for rating in year['ratings']:
        <td>$rating</td>
    </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>

<p><strong>Developers:</strong> Get this page in <a href="${pol.id.lower()}.n3">N3</a>, <a href="${pol.id.lower()}.xml">XML</a>, or <a href="${pol.id.lower()}.json">JSON</a>.</p>
<commit_msg>typo in earmarks display<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>
    <th>Requested</th>
    <td>$commify(pol.n_earmark_requested) earmarks</td>
    <td><a href="/p/by/n_earmark_requested#$pol.id"
         ><img 
           src="/p/by/n_earmark_requested/distribution.png?point=$pol.n_earmark_requested"
           class="sparkline" /></a></td>
  </tr><tr>
    <th>Total earmarks requested</th>
    <td>\$$commify(pol.amt_earmark_requested)</td>
    <td><a href="/p/by/amt_earmark_requested#$pol.id"
        ><img 
            src="/p/by/amt_earmark_requested/distribution.png?point=$pol.amt_earmark_requested"
            class="sparkline" /></a></td>
  </tr><tr>
    <th>Received</th>
    <td>$commify(pol.n_earmark_received) earmarks</td>
    <td><a href="/p/by/n_earmark_received#$pol.id"
         ><img 
           src="/p/by/n_earmark_received/distribution.png?point=$pol.n_earmark_received"
           class="sparkline" /></a></td>
  </tr><tr>
    <th>Total earmarks received</th>
    <td>\$$commify(pol.amt_earmark_received)</td>
    <td><a href="/p/by/amt_earmark_received#$pol.id"
         ><img 
           src="/p/by/amt_earmark_received/distribution.png?point=$pol.amt_earmark_received"
           class="sparkline" /></a></td>
  </tr><tr>
  <tr><th colspan="2">(Data for 110th Congress only)</th></tr>
</table>

<h2>Special Interest Group Ratings</h2>

<table class="interest_group_ratings">
<tr><td></td>
$for groupname in pol.interest_group_table['groups']:
    <th>$groupname</th>
</tr>
$for year in pol.interest_group_table['rows']:
    <tr><th>$year['year']</td>
    $for rating in year['ratings']:
        <td>$rating</td>
    </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>

<p><strong>Developers:</strong> Get this page in <a href="${pol.id.lower()}.n3">N3</a>, <a href="${pol.id.lower()}.xml">XML</a>, or <a href="${pol.id.lower()}.json">JSON</a>.</p>

{'fraction_non_alphanumeric': 0.2124728988649407, 'fraction_numerical': 0.0035709730901670707, 'mean_word_length': 3.8407407407407406, 'pattern_counts': {'":': 0, '<': 275, '<?xml version=': 0, '>': 275, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4707576', 'n_tokens_mistral': 3101, 'n_tokens_neox': 2950, 'n_words': 401}