<commit_before>% STATIC_URL = "/static/"
% rcSuffix = lambda n: "%d%s" % (n,"tsnrhtdd"[(n/10%10!=1)*(n%10<4)*n%10::4])
% rebase('base.tpl', title='District View', extra_css=['map.css', 'scatter.css'])
% include('header.tpl')

<div class="container">
	<a href="#" onclick="javascript:$('#testData').css('overflow','auto').css('height','400px'); return false;">+</a> 
	Sample test addresses (click to search):<br/>
	<ul style="columns:3; height:50px; overflow:hidden;" id="testData">
		<li>12040 Louise Ave, Los Angeles, CA</li>
		<li>206 Washington St SW, Atlanta, GA, 30334</li>
		<li>150 Rideau St, Ottawa, Ontario, CA</li>
		<li>3111 World Dr, Orlando, FL</li>
		<li>120 e 4th st, juneau</li>
		<li>415 S. Beretania Street Honolulu, Hawaii</li>
		<li>	900 Court Street NE, Salem, Oregon, US</li>
		<li>416 Sid Snyder Avenue SW, Olympia</li>
		<li>600 Dexter Ave, Montgomery, AL 36130</li>
		<li>500 Woodlane St, Little Rock, AR</li>
		<li>222 S Milton Rd, Flagstaff, AZ</li>
		<li> 200 E Colfax Ave, Denver, CO</li>
		<li> 210 Capitol Ave, Hartford, CT 06106</li>
		<li>141 Mullett Run St, milford, de</li>
		<li>226 W 46th St, New York, NY</li>
		<li> 700 W Jefferson St, Boise</li>
		<li>geographic center of the united states</li>
		<li>1007 E Grand, Des Moines, IA</li>
		<li>700 Capital Ave, Frankfort, KY</li>
		<li>bourbon st, new orleans</li>
		<li style="font-weight:700;">augusta, me</li>
		<li>1900 Kanawha Boulevard East, Charleston, West Virginia</li>
		<li>100 State Cir, Annapolis, MD</li>
		<li>24 Beacon St, Boston, MA</li>
		<li>100 N Capitol Ave, Lansing, MI 48933</li>
		<li>75 Rev Dr <NAME> King Jr Boulevard., St Paul, MN</li>
		<li>400 High St, Jackson, MS</li>
		<li>201 W Capitol Ave, Jefferson City, MO </li>
		<li>Helena, MT</li>
		<li>1445 K St, Lincoln, NE</li>
		<li>101 N Carson St, Carson City, NV</li>
		<li>107 North Main Street, Concord, NH</li>
		<li>125 W State St, Trenton, NJ</li>
		<li>490 Old Santa Fe Trail, Santa Fe, NM</li>
		<li>1 E Edenton St, Raleigh, NC</li>
		<li>600 E Boulevard Ave, Bismarck, ND</li>
		<li>Ohio</li>
		<li>2300 N Lincoln Blvd, Oklahoma City</li>
		<li>900 Court St NE, Salem, OR</li>
		<li>501 N 3rd St, Harrisburg, PA</li>
		<li> 82 Smith St, Providence, RI</li>
		<li>1100 Gervais St, Columbia, SC </li>
		<li>500 E Capitol Ave, Pierre, SD</li>
		<li>600 Charlotte Ave, Nashville, TN</li>
		<li>1100 Congress Ave, Austin</li>
		<li>valley of the gods</li>
		<li>115 State St, Montpelier, VT</li>
		<li>1000 Bank St, Richmond, VA</li>
		<li>West Virginia State Capitol, Charleston, WV</li>
		<li>2 E Main, Madison, WI</li>
		<li>yellowstone national park</li>
		<li>1234 Urb Los Olmos, Ponce, PR, 00731</li>
		<li>1245 Pale San Vitores Rd, Tamuning, Guam</li>
		<li>6450 Coki Point, St. Thomas, USVI</li>
		<li>P.O. Box 504272, Mariana Islands</li>
		<li>3222 main highway, pago pago tutuila, american samoa</li>
		<li>1600 pennsylvania ave, washington dc</li>
	</ul>

	<h3>Your District Through History</h3>
	To see who has represented you through history, enter your address <span id="geolocationTutorial" style="display:none;">or click the map pin below</span> to begin:<br/>
	<small><em>Privacy Notice: Voteview.com uses this information solely to fulfill your request. Address information is not logged, saved, or stored.</em></small><br/><br/>

	<form id="submit-address-form" action="." method="post">
	<div class="col-md-1" style="padding-top:5px;padding-bottom:5px;">
		<strong>Address:</strong> 
	</div>
	<div class="col-md-7">
		<div class="input-group">
			<div class="input-group-btn" id="locationButton" style="display:none;">
				<button id="submit-geolocation" type="button" class="btn btn-primary"><span class="glyphicon glyphicon-map-marker"></span></button>
			</div>
			<input type="text" id="addressInput" class="form-control" placeholder="Enter an address or ZIP code.">
			<div class="input-group-btn">
				<button id="submit-search-string" class="btn btn-primary"><span class="glyphicon glyphicon-search"></span></button>
			</div>
			<input type="hidden" id="cachedLat"> <input type="hidden" id="cachedLong">
		</div>
	</div>
	<div class="col-md-4" id="addressCorrected"><commit_msg>Made the fake addresses at top only appear on the dev server until we're sure we're done.<commit_after>% devserver=int(open("./server.txt","r").read().strip())
% STATIC_URL = "/static/"
% rcSuffix = lambda n: "%d%s" % (n,"tsnrhtdd"[(n/10%10!=1)*(n%10<4)*n%10::4])
% rebase('base.tpl', title='District View', extra_css=['map.css', 'scatter.css'])
% include('header.tpl')

<div class="container">
	% if devserver:
	<a href="#" onclick="javascript:$('#testData').css('overflow','auto').css('height','400px'); return false;">+</a> 
	Sample test addresses (click to search):<br/>
	<ul style="columns:3; height:50px; overflow:hidden;" id="testData">
		<li>12040 Louise Ave, Los Angeles, CA</li>
		<li>206 Washington St SW, Atlanta, GA, 30334</li>
		<li>150 Rideau St, Ottawa, Ontario, CA</li>
		<li>3111 World Dr, Orlando, FL</li>
		<li>120 e 4th st, juneau</li>
		<li>415 S. Beretania Street Honolulu, Hawaii</li>
		<li>	900 Court Street NE, Salem, Oregon, US</li>
		<li>416 Sid Snyder Avenue SW, Olympia</li>
		<li>600 Dexter Ave, Montgomery, AL 36130</li>
		<li>500 Woodlane St, Little Rock, AR</li>
		<li>222 S Milton Rd, Flagstaff, AZ</li>
		<li> 200 E Colfax Ave, Denver, CO</li>
		<li> 210 Capitol Ave, Hartford, CT 06106</li>
		<li>141 Mullett Run St, milford, de</li>
		<li>226 W 46th St, New York, NY</li>
		<li> 700 W Jefferson St, Boise</li>
		<li>geographic center of the united states</li>
		<li>1007 E Grand, Des Moines, IA</li>
		<li>700 Capital Ave, Frankfort, KY</li>
		<li>bourbon st, new orleans</li>
		<li style="font-weight:700;">augusta, me</li>
		<li>1900 Kanawha Boulevard East, Charleston, West Virginia</li>
		<li>100 State Cir, Annapolis, MD</li>
		<li>24 Beacon St, Boston, MA</li>
		<li>100 N Capitol Ave, Lansing, MI 48933</li>
		<li>75 Rev Dr <NAME> King J<NAME>., St Paul, MN</li>
		<li>400 High St, Jackson, MS</li>
		<li>201 W Capitol Ave, Jefferson City, MO </li>
		<li>Helena, MT</li>
		<li>1445 K St, Lincoln, NE</li>
		<li>101 N Carson St, Carson City, NV</li>
		<li>107 North Main Street, Concord, NH</li>
		<li>125 W State St, Trenton, NJ</li>
		<li>490 Old Santa Fe Trail, Santa Fe, NM</li>
		<li>1 E Edenton St, Raleigh, NC</li>
		<li>600 E Boulevard Ave, Bismarck, ND</li>
		<li>Ohio</li>
		<li>2300 N Lincoln Blvd, Oklahoma City</li>
		<li>900 Court St NE, Salem, OR</li>
		<li>501 N 3rd St, Harrisburg, PA</li>
		<li> 82 Smith St, Providence, RI</li>
		<li>1100 Gervais St, Columbia, SC </li>
		<li>500 E Capitol Ave, Pierre, SD</li>
		<li>600 Charlotte Ave, Nashville, TN</li>
		<li>1100 Congress Ave, Austin</li>
		<li>valley of the gods</li>
		<li>115 State St, Montpelier, VT</li>
		<li>1000 Bank St, Richmond, VA</li>
		<li>West Virginia State Capitol, Charleston, WV</li>
		<li>2 E Main, Madison, WI</li>
		<li>yellowstone national park</li>
		<li>1234 Urb Los Olmos, Ponce, PR, 00731</li>
		<li>1245 Pale San Vitores Rd, Tamuning, Guam</li>
		<li>6450 Coki Point, St. Thomas, USVI</li>
		<li>P.O. Box 504272, Mariana Islands</li>
		<li>3222 main highway, pago pago tutuila, american samoa</li>
		<li>1600 pennsylvania ave, washington dc</li>
	</ul>
	% end

	<h3>Your District Through History</h3>
	To see who has represented you through history, enter your address <span id="geolocationTutorial" style="display:none;">or click the map pin below</span> to begin:<br/>
	<small><em>Privacy Notice: Voteview.com uses this information solely to fulfill your request. Address information is not logged, saved, or stored.</em></small><br/><br/>

	<form id="submit-address-form" action="." method="post">
	<div class="col-md-1" style="padding-top:5px;padding-bottom:5px;">
		<strong>Address:</strong> 
	</div>
	<div class="col-md-7">
		<div class="input-group">
			<div class="input-group-btn" id="locationButton" style="display:none;">
				<button id="submit-geolocation" type="button" class="btn btn-primary"><span class="glyphicon glyphicon-map-marker"></span></button>
			</div>
			<input type="text" id="addressInput" class="form-control" placeholder="Enter an address or ZIP code.">
			<div class="input-group-btn">
				<button id="submit-search-string" class="btn btn-primary"><span class="glyphicon glyphicon-search"></span></button>
			</div>
			<input type="hidden" id="cachedLat"> <input type="hidden" id="cachedLong">
		</div>
	</div>
	<div class="col-md-4" id="addressCorrected">
{'fraction_non_alphanumeric': 0.1797884841363102, 'fraction_numerical': 0.050293772032902466, 'mean_word_length': 4.551859099804306, 'pattern_counts': {'":': 0, '<': 320, '<?xml version=': 0, '>': 318, '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': '4358350', 'n_tokens_mistral': 3692, 'n_tokens_neox': 3126, 'n_words': 940}