<commit_before><template name="votelists">
	<div id="votelists">
		<h3>Votings</h3>
		{{#each votings.votings}}
		<div class="voting">
			<h4>{{question}}</h4>
			<table class="votelist_table">
				<tr>
					<td></td>
					{{#each options}}
						<td>
							{{this.option}}
						</td>
						{{else}}
							<td>no options </td>
					{{/each}}
				</tr>
				{{#each this.subscribers}}
					<tr class="{{this.is_current}}">
						<td>{{>profilelink this.subscribersId}}</td>
						{{#each this.options}}
							<td class="option {{this.vote_status}}" name= "{{this.option_index}}"> &nbsp;&nbsp;</td>
							{{else}}
								<td>no options </td>
						{{/each}}
					</tr>
				{{/each}}
				<tr>
					<td><b>total</b></td>
					{{#each this.total}}
						<td >&nbsp;&nbsp;{{this}}</td>
						{{else}}
							<td> </td>
					{{/each}}
				</tr>
			</table>
		</div>

		{{else}}
			{{#unless addingVote}}
			<p>no votings yet.. </p>
			{{/unless}}
		{{/each}}



		{{#if addingVote}}
		<form id="add_vote_form">
			<h4>New voting</h4>
			<p>Frage: <input type="text" id="add_vote_question" size="30"></p>
			<div id="add_vote_options">
				<p class="add_vote_option">Option: <input type="text" class="add_vote_option_button" name="vote_option[]" size="30"></p>
				<p class="add_vote_option">Option: <input type="text" class="add_vote_option_button" name="vote_option[]" size="30"></p>
			</div>
			<p><input type="button" class="add_vote_add_option" value="+ Option"></p>
			<input type="button" class="create_votelist" value="create voting">
			<input type="button" class="cancel_votelist" value="cancel">
		</form>
		{{else}} <input type="button" class="show_add_vote" value="create new voting" />





		{{/if}}
	</div>
</template>






<!--
<template name="votelist">
<h3>Abstimmung</h3>
 <div class="votelist">

{{>vote_add_option}}
  </div>
</template>


<template name="vote_add">

	Typ: <select name="option_type">
		<option>Text</option>
		<option>Datum</option>
		<option>Wochentag</option>
	</select>
</template>


<template name="vote_add_option">
<h4>Option hinzufügen</h4>
<form>
	<select name="option_type">
		<option>Text</option>
		<option>Datum</option>
		<option>Wochentag</option>
	</select>
	<input type="text" name="vote_add_text" size="30">
	<input type="submit" value="ok">
</form>
</template>
--><commit_msg>mf added to votes<commit_after><template name="votelists">
	<div id="votelists">
		<h3>Votings</h3>
		{{#each votings.votings}}
		<div class="voting">
			<h4>{{question}}</h4>
			<table class="votelist_table">
				<tr>
					<td></td>
					{{#each options}}
						<td>
							{{this.option}}
						</td>
						{{else}}
							<td>{{mf 'voting.no_options' 'no options'}}</td>
					{{/each}}
				</tr>
				{{#each this.subscribers}}
					<tr class="{{this.is_current}}">
						<td>{{>profilelink this.subscribersId}}</td>
						{{#each this.options}}
							<td class="option {{this.vote_status}}" name= "{{this.option_index}}"> &nbsp;&nbsp;</td>
							{{else}}
								<td>{{mf 'voting.no_options' 'no options'}}</td>
						{{/each}}
					</tr>
				{{/each}}
				<tr>
					<td><b>total</b></td>
					{{#each this.total}}
						<td >&nbsp;&nbsp;{{this}}</td>
						{{else}}
							<td> </td>
					{{/each}}
				</tr>
			</table>
		</div>

		{{else}}
			{{#unless addingVote}}
			<p>{{mf 'voting.no_votings_yet' 'no votings yet..}}</p>
			{{/unless}}
		{{/each}}



		{{#if addingVote}}
		<form id="add_vote_form">
			<h4>{{mf 'voting.new_voting' 'New voting'}}</h4>
			<p>Frage: <input type="text" id="add_vote_question" size="30"></p>
			<div id="add_vote_options">
				<p class="add_vote_option">{{mf 'voting.option_input' 'Option:'}}<input type="text" class="add_vote_option_button" name="vote_option[]" size="30"></p>
				<p class="add_vote_option">{{mf 'voting.option_input' 'Option:'}}<input type="text" class="add_vote_option_button" name="vote_option[]" size="30"></p>
			</div>
			<p><input type="button" class="add_vote_add_option" value="+ Option"></p>
			<input type="button" class="create_votelist" value="create voting">
			<input type="button" class="cancel_votelist" value="cancel">
		</form>
		{{else}} <input type="button" class="show_add_vote" value="create new voting" />





		{{/if}}
	</div>
</template>






<!--
<template name="votelist">
<h3>Abstimmung</h3>
 <div class="votelist">

{{>vote_add_option}}
  </div>
</template>


<template name="vote_add">

	Typ: <select name="option_type">
		<option>Text</option>
		<option>Datum</option>
		<option>Wochentag</option>
	</select>
</template>


<template name="vote_add_option">
<h4>Option hinzufügen</h4>
<form>
	<select name="option_type">
		<option>Text</option>
		<option>Datum</option>
		<option>Wochentag</option>
	</select>
	<input type="text" name="vote_add_text" size="30">
	<input type="submit" value="ok">
</form>
</template>
-->
{'fraction_non_alphanumeric': 0.22811725846407926, 'fraction_numerical': 0.007431874483897605, 'mean_word_length': 3.8208955223880596, 'pattern_counts': {'":': 0, '<': 191, '<?xml version=': 0, '>': 195, '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': '2535894', 'n_tokens_mistral': 2277, 'n_tokens_neox': 1857, 'n_words': 328}