<commit_before>% STATIC_URL = "/static/"
% rebase('base.tpl', title=plotTitle, extra_css=["map.css","scatter.css", "bootstrap-slider.css"], extra_js=["/static/js/libs/saveSvgAsPng.js", "/static/js/libs/bootstrap-slider.min.js", "/static/js/libs/sticky-kit.min.js", "/static/js/stateMeta.js"])
% include('header.tpl')

% rcSuffix = lambda n: "%d%s" % (n,"tsnrhtdd"[(n/10%10!=1)*(n%10<4)*n%10::4])

<div id="holdHatching">
</div>

<div class="container">
	% include("vote_metadata.tpl")

	<div class="row" id="loadBar">
		<div class="col-md-12">
			<h4>
				Loading graphics...
				<img src="/static/img/loading.gif" class="loading_throbber">
			</h4>
		</div>
	</div>

	<div class="row" id="errorContent">
		<div class="col-md-12">
			<h4>Error!</h4>
			<div class="errorMessage"></div>
		</div>
	</div>

	<div class="row loadedContent">
		<div class="col-md-9 geo_map">
			<div id="geoMap">
				<h4>
					Member Vote Map

					<span class="glyphicon glyphicon-save noprint"
					      onclick="javascript:resetZoom();saveSvgAsPng($('#map-chart > svg')[0],'vote_map_{{rollcall["chamber"][0]}}{{rollcall["congress"]}}{{str(rollcall["rollnumber"]).zfill(4)}}.png', {backgroundColor: 'white'});return false;"
					      data-toggle="tooltip" data-position="bottom" data-html="true" title="Save Map as PNG">
					</span>

					%if len(noteText):
						<img src="/static/img/help.png" class="noteText left-tooltip noprint" data-toggle="tooltip" data-position="bottom" data-html="true" title="{{ noteText }}">
					%end

				</h4>

				<span id="map-chart"> <!-- This span tells DC where to put the map -->
					<button id="zoomIn" class="glyphicon glyphicon-plus noprint" onClick="javascript:doZoom(1);return false;"></button>
					<button id="zoomOut" class="glyphicon glyphicon-minus noprint" onClick="javascript:doZoom(-1);return false;"></button>

					<input id="ex1" data-slider-id="panY" type="text" data-slider-min="0" data-slider-max="500" data-slider-step="1"
							data-slider-orientation="vertical" data-slider-tooltip="hide" data-slider-handle="custom">
					<input id="ex2" data-slider-id="panX" type="text" data-slider-min="0" data-slider-max="810"<commit_msg>fix problem rendering shading in vote map<commit_after>% STATIC_URL = "/static/"
% rebase('base.tpl', title=plotTitle, extra_css=["map.css","scatter.css", "bootstrap-slider.css"], extra_js=["/static/js/libs/saveSvgAsPng.js", "/static/js/libs/bootstrap-slider.min.js", "/static/js/libs/sticky-kit.min.js", "/static/js/stateMeta.js"])
% include('header.tpl')

% rcSuffix = lambda n: "%d%s" % (n,"tsnrhtdd"[(n/10%10!=1)*(n%10<4)*n%10::4])

<div id="holdHatching">
</div>

<div class="container">
	% include("vote_metadata.tpl")

	<div class="row" id="loadBar">
		<div class="col-md-12">
			<h4>
				Loading graphics...
				<img src="/static/img/loading.gif" class="loading_throbber">
			</h4>
		</div>
	</div>

	<div class="row" id="errorContent">
		<div class="col-md-12">
			<h4>Error!</h4>
			<div class="errorMessage"></div>
		</div>
	</div>

	<div class="row loadedContent">
		<div class="col-md-9 geo_map">
			<div id="geoMap">
				<h4>
					Member Vote Map

					<span class="glyphicon glyphicon-save noprint"
					      onclick="javascript:resetZoom();
					               the_svg = $('#map-chart > svg')[0].cloneNode(true);
						       the_defs = $('#holdHatching > svg > defs')[0].cloneNode(true);
						       the_svg.appendChild(the_defs);
					               saveSvgAsPng(the_svg, 'vote_map_{{rollcall["chamber"][0]}}{{rollcall["congress"]}}{{str(rollcall["rollnumber"]).zfill(4)}}.png', {backgroundColor: 'white'});return false;"
					      data-toggle="tooltip" data-position="bottom" data-html="true" title="Save Map as PNG">
					</span>

					%if len(noteText):
						<img src="/static/img/help.png" class="noteText left-tooltip noprint" data-toggle="tooltip" data-position="bottom" data-html="true" title="{{ noteText }}">
					%end

				</h4>

				<span id="map-chart"> <!-- This span tells DC where to put the map -->
					<button id="zoomIn" class="glyphicon glyphicon-plus noprint" onClick="javascript:doZoom(1);return false;"></button>
					<button id="zoomOut" class="glyphicon glyphicon-minus noprint" onClick="javascript:doZoom(-1);return false;"></button>

					<input id="ex1" data-slider-id="panY" type="text" data-slider-min="0" data-slider-max="500" data-slider-step="1"
							data-slider-orientation="vertical" data-slider-tooltip="hide" data-slider-handle="custom">
					<input id="ex2" data-slider-id="panX" type="text" data-slider-min="0" data-slider-max="810"
{'fraction_non_alphanumeric': 0.20941949616648411, 'fraction_numerical': 0.016867469879518072, 'mean_word_length': 4.327887981330222, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 73, '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': '56474', 'n_tokens_mistral': 1885, 'n_tokens_neox': 1629, 'n_words': 276}