<commit_before>﻿<!-- readonly -->
<span template:name="readonly" template:kind="@" class="sys-template" sys:attach="template">
	{ binding displayValue }
</span>

<!-- readonly html -->
<span template:name="readonly html" template:kind="@" class="sys-template" sys:attach="template">
	<span sys:innerHTML="{ binding displayValue }"></span>
</span>

<!-- field as-radio, entity (radio button list, flow layout) -->
<span template:name="field as-radio" template:kind="@" template:isreference="true" template:islist="false" class="sys-template" sys:attach="template">
	<div class="sys-template" sys:attach="dataview" dataview:data="{ binding options }">
		<input type="radio" id="option" sys:name="{{ $context.parentContext.getInstanceId('group') }}" sys:checked="{ binding selected }" /><label sys:for="{{ $id('option') }}">{ binding displayValue }</label>
	</div>
</span>

<!-- field as-radio, entity (radio button list, vertical layout) -->
<div template:name="field as-radio" template:kind="@" template:isreference="true" template:islist="false" class="sys-template" sys:attach="template">
	<div class="sys-template" sys:attach="dataview" dataview:data="{ binding options }">
		<p class="list"><input type="radio" id="option" sys:name="{{ $context.parentContext.getInstanceId('group') }}" sys:checked="{ binding selected }" /><label sys:for="{{ $id('option') }}">{ binding displayValue }</label></p>
	</div>
</div>

<!-- field, entity (drop down list) -->
<span template:name="field" template:kind="@" template:isreference="true" template:islist="false" class="sys-template" sys:attach="template">
	<select class="sys-template" sys:value="{ binding systemValue }"
		sys:attach="dataview" dataview:data="{ binding options }">
		<option sys:if="{{ $index == 0 }}" value=""></option>
		<option sys:if="{{ $dataItem.get_selected() }}" selected="selected" sys:value="{ binding systemValue }">{ binding displayValue }</option>
		<option sys:if="{{ !$dataItem.get_selected() }}" sys:value="{ binding systemValue }">{ binding displayValue }</option>
	</select>
</span>

<!-- field, entity list (editable list with add/remove symantics) -->
<span template:name="field selectedOnly" template:kind="@" template:isreference="true" template:islist="true" class="sys-template" sys:attach="template">
	<div class='validation'></div>
	<ul class="sys-template deletable" sys:attach="dataview" dataview:data="{~ options, transform=where('selected === true') }">
		<li>
			<span>{binding displayValue}</span>
			<span class="delete" sys:onclick="{{ 'selectedOnlyDeselect(this,'+ $index +')' }}"></span>
		</li>
	</ul>
	<select class="sys-template" sys:attach="dataview" dataview:data="{~ options, transform=where('selected === false') }" onchange="selectedOnlySelect(this)">
		<option sys:if="{{ $index == 0 }}" value="">-- select --</option>
		<option>{binding displayValue}</option>
	</select>
</span>
<script type="text/javascript">
	function selectedOnlyDeselect(element, index) {
		var adapter = $parentContextData(element, null, 2);
		var option = adapter.get_options()[index];
		option.set_selected(false);
	}
	function selectedOnlySelect(element) {
		if (element.selectedIndex > 0) {
			var adapter = $parentContextData(element, null, null);
			var option = $parentContextData(element.options[element.selectedIndex], null, null);
			option.set_selected(true);
			element.selectedIndex = 0;
		}
	}
</script>

<!-- field, entity list (check box list) -->
<span template:name="field" template:kind="@" template:isreference="true" template:islist="true" class="sys-template" sys:attach="template">
	<div class='validation'></div>
	<div class="sys-template" sys:attach="dataview" dataview:data="{ binding options }">
		<input type="checkbox" sys:checked="{ binding selected }" />
		<label sys:for="{{ $id('option') }}">{ binding displayValue }</label><br />
	</div>
</span>

<!-- field, boolean (check box) -->
<span template:name="field" template:kind="@" template:datatype="Boolean" class="sys-template" sys:attach="template">
	<input type='checkbox' sys:checked="{ binding rawValue }" />
</span>

<!-- field time-only, date (time editor) -->
<span template:name="field time-only" template:kind="@" template:datatype="Date" class="sys-template" sys:attach="template">
	<input type='text' sys:value="{ binding displayValue }" />
</span>

<!-- field, date (date picker) -->
<span template:name="field" template:kind="@" template:datatype="Date" class="sys-template" sys:attach="template">
	<input type='text' class='datepicker' sys:value="{ binding displayValue }" />
</span>

<!-- field html, string (text area) -->
<span template:name="field html" template:kind="@" template:datatype="String" class="sys-template" sys:attach="template">
	<textarea sys:id="html1" sys:value="{ binding displayValue }"
		sys:cols="{{ !!$dataItem.get_htmlCols ? $dataItem.get_htmlCols() : 60 }}"
		sys:rows="{{ !!$dataItem.get_htmlRows ? $dataItem.get_htmlRows() : 4 }}"></textarea>
</span>																		

<!-- field text, string (text area) -->
<span template:name="field text" template:kind="@" template:datatype="String" class="sys-template" sys:attach="template">
	<textarea sys:id="html1" sys:value="{ binding displayValue }"
		sys:cols="{{ !!$dataItem.get_htmlCols ? $dataItem.get_htmlCols() : 60 }}"
		sys:rows="{{ !!$dataItem.get_htmlRows ? $dataItem.get_htmlRows() : 4 }}"></textarea>
</span>

<!-- field, default (text input) -->
<span template:name="field" template:kind="@" class="sys-template" sys:attach="template" template:datatype="String" template:isreference="false" template:islist="false">
	<input type='text' sys:value="{ binding displayValue }" sys:size="{{ ($dataItem.get_size) ? $dataItem.get_size() : 15 }}" />
</span>

<!-- field, default (text password) -->
<span template:name="password" template:kind="@" class="sys-template" sys:attach="template" template:datatype="String" template:isreference="false" template:islist="false">
	<input type='password' sys:value="{ binding displayValue }" sys:size="{{ ($dataItem.get_size) ? $dataItem.get_size() : 15 }}" />
</span>

<!-- form (div layout) -->
<div template:name="form" template:kind="@" class="sys-template field" sys:attach="template">
	<div class="label">{binding label}</div>
	<div class="editor"><span sys:attach="content" content:template="field" content:data="{@ }"></span></div>
</div>

<!-- form (div layout password) -->
<div template:name="password" template:kind="@" class="sys-template password" sys:attach="template">
	<div class="label">{binding label}</div><commit_msg>Added back default text input template field<commit_after>﻿<!-- readonly -->
<span template:name="readonly" template:kind="@" class="sys-template" sys:attach="template">
	{ binding displayValue }
</span>

<!-- readonly html -->
<span template:name="readonly html" template:kind="@" class="sys-template" sys:attach="template">
	<span sys:innerHTML="{ binding displayValue }"></span>
</span>

<!-- field as-radio, entity (radio button list, flow layout) -->
<span template:name="field as-radio" template:kind="@" template:isreference="true" template:islist="false" class="sys-template" sys:attach="template">
	<div class="sys-template" sys:attach="dataview" dataview:data="{ binding options }">
		<input type="radio" id="option" sys:name="{{ $context.parentContext.getInstanceId('group') }}" sys:checked="{ binding selected }" /><label sys:for="{{ $id('option') }}">{ binding displayValue }</label>
	</div>
</span>

<!-- field as-radio, entity (radio button list, vertical layout) -->
<div template:name="field as-radio" template:kind="@" template:isreference="true" template:islist="false" class="sys-template" sys:attach="template">
	<div class="sys-template" sys:attach="dataview" dataview:data="{ binding options }">
		<p class="list"><input type="radio" id="option" sys:name="{{ $context.parentContext.getInstanceId('group') }}" sys:checked="{ binding selected }" /><label sys:for="{{ $id('option') }}">{ binding displayValue }</label></p>
	</div>
</div>

<!-- field, entity (drop down list) -->
<span template:name="field" template:kind="@" template:isreference="true" template:islist="false" class="sys-template" sys:attach="template">
	<select class="sys-template" sys:value="{ binding systemValue }"
		sys:attach="dataview" dataview:data="{ binding options }">
		<option sys:if="{{ $index == 0 }}" value=""></option>
		<option sys:if="{{ $dataItem.get_selected() }}" selected="selected" sys:value="{ binding systemValue }">{ binding displayValue }</option>
		<option sys:if="{{ !$dataItem.get_selected() }}" sys:value="{ binding systemValue }">{ binding displayValue }</option>
	</select>
</span>

<!-- field, entity list (editable list with add/remove symantics) -->
<span template:name="field selectedOnly" template:kind="@" template:isreference="true" template:islist="true" class="sys-template" sys:attach="template">
	<div class='validation'></div>
	<ul class="sys-template deletable" sys:attach="dataview" dataview:data="{~ options, transform=where('selected === true') }">
		<li>
			<span>{binding displayValue}</span>
			<span class="delete" sys:onclick="{{ 'selectedOnlyDeselect(this,'+ $index +')' }}"></span>
		</li>
	</ul>
	<select class="sys-template" sys:attach="dataview" dataview:data="{~ options, transform=where('selected === false') }" onchange="selectedOnlySelect(this)">
		<option sys:if="{{ $index == 0 }}" value="">-- select --</option>
		<option>{binding displayValue}</option>
	</select>
</span>
<script type="text/javascript">
	function selectedOnlyDeselect(element, index) {
		var adapter = $parentContextData(element, null, 2);
		var option = adapter.get_options()[index];
		option.set_selected(false);
	}
	function selectedOnlySelect(element) {
		if (element.selectedIndex > 0) {
			var adapter = $parentContextData(element, null, null);
			var option = $parentContextData(element.options[element.selectedIndex], null, null);
			option.set_selected(true);
			element.selectedIndex = 0;
		}
	}
</script>

<!-- field, entity list (check box list) -->
<span template:name="field" template:kind="@" template:isreference="true" template:islist="true" class="sys-template" sys:attach="template">
	<div class='validation'></div>
	<div class="sys-template" sys:attach="dataview" dataview:data="{ binding options }">
		<input type="checkbox" sys:checked="{ binding selected }" />
		<label sys:for="{{ $id('option') }}">{ binding displayValue }</label><br />
	</div>
</span>

<!-- field, boolean (check box) -->
<span template:name="field" template:kind="@" template:datatype="Boolean" class="sys-template" sys:attach="template">
	<input type='checkbox' sys:checked="{ binding rawValue }" />
</span>

<!-- field time-only, date (time editor) -->
<span template:name="field time-only" template:kind="@" template:datatype="Date" class="sys-template" sys:attach="template">
	<input type='text' sys:value="{ binding displayValue }" />
</span>

<!-- field, date (date picker) -->
<span template:name="field" template:kind="@" template:datatype="Date" class="sys-template" sys:attach="template">
	<input type='text' class='datepicker' sys:value="{ binding displayValue }" />
</span>

<!-- field html, string (text area) -->
<span template:name="field html" template:kind="@" template:datatype="String" class="sys-template" sys:attach="template">
	<textarea sys:id="html1" sys:value="{ binding displayValue }"
		sys:cols="{{ !!$dataItem.get_htmlCols ? $dataItem.get_htmlCols() : 60 }}"
		sys:rows="{{ !!$dataItem.get_htmlRows ? $dataItem.get_htmlRows() : 4 }}"></textarea>
</span>																		

<!-- field text, string (text area) -->
<span template:name="field text" template:kind="@" template:datatype="String" class="sys-template" sys:attach="template">
	<textarea sys:id="html1" sys:value="{ binding displayValue }"
		sys:cols="{{ !!$dataItem.get_htmlCols ? $dataItem.get_htmlCols() : 60 }}"
		sys:rows="{{ !!$dataItem.get_htmlRows ? $dataItem.get_htmlRows() : 4 }}"></textarea>
</span>

<!-- field, string (text input) -->
<span template:name="field" template:kind="@" class="sys-template" sys:attach="template" template:datatype="String" template:isreference="false" template:islist="false">
	<input type='text' sys:value="{ binding displayValue }" sys:size="{{ ($dataItem.get_size) ? $dataItem.get_size() : 15 }}" />
</span>

<!-- field, string (text password) -->
<span template:name="password" template:kind="@" class="sys-template" sys:attach="template" template:datatype="String" template:isreference="false" template:islist="false">
	<input type='password' sys:value="{ binding displayValue }" sys:size="{{ ($dataItem.get_size) ? $dataItem.get_size() : 15 }}" />
</span>

<!-- field, default (text input) -->
<span template:name="field" template:kind="@" class="sys-template" sys:attach="template" template:isreference="false" template:islist="false">
	<input type='text' sys:value="{ binding displayValue }" />
</span>

<!-- form (div layout) -->
<div template:name="form" template:kind="@" class="sys-template field" sys:attach="template">
	<div class="label">{binding label}</div>
	<div class="editor"><span sys:attach="content" content:template="field" content:data="{@ }"></span></div>
</div>

<!-- form (div layout password) -->
<div template:name="password" template:kind="@" class="sys-template password" sys:attach="template">
	<div class="label">{binding label}</div>
{'fraction_non_alphanumeric': 0.209469583458196, 'fraction_numerical': 0.0025471980821096794, 'mean_word_length': 6.6850892343120325, 'pattern_counts': {'":': 0, '<': 231, '<?xml version=': 0, '>': 233, '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': '1772988', 'n_tokens_mistral': 4285, 'n_tokens_neox': 4062, 'n_words': 926}