<commit_before><div class="tight-form">
	<ul class="tight-form-list">
		<li class="tight-form-item query-keyword tight-form-align" style="width: 75px;">
			Metric
		</li>
		<li>
			<metric-segment-model property="agg.type" options="metricAggTypes" on-change="onTypeChange()" custom="false" css-class="tight-form-item-large"></metric-segment-model>
		</li>
		<li ng-if="aggDef.requiresField">
			<metric-segment-model property="agg.field" get-options="getFieldsInternal()" on-change="onChange()" css-class="tight-form-item-xxlarge"></metric-segment-model>
		</li>
		<li class="tight-form-item" ng-if="!aggDef.requiresField" style="width: 200px">
			&nbsp;
		</li>
		<li class="tight-form-item last" ng-if="settingsLinkText">
			<a ng-click="toggleOptions()">
				<i class="fa fa-caret-down" ng-show="showOptions"></i>
				<i class="fa fa-caret-right" ng-hide="showOptions"></i>
				{{settingsLinkText}}
			</a>
		</li>
	</ul>

	<ul class="tight-form-list pull-right">
		<li class="tight-form-item last" ng-if="isFirst">
			<a class="pointer" ng-click="addMetricAgg()"><i class="fa fa-plus"></i></a>
		</li>
		<li class="tight-form-item last" ng-if="!isSingle">
			<a class="pointer" ng-click="removeMetricAgg()"><i class="fa fa-minus"></i></a>
		</li>
	</ul>
	<div class="clearfix"></div>
</div>

<div class="tight-form" ng-if="showOptions">
	<div class="tight-form-inner-box">
		<div class="tight-form last" ng-if="agg.type === 'moving_avg'">
			<ul class="tight-form-list">
				<li class="tight-form-item">
					Based on
				</li>
				<li>
					<metric-segment-model property="agg.pipelineAgg" options="pipelineAggOptions" on-change="onChangeInternal()" css-class="last"></metric-segment-model>
				</li>
			</ul>
			<div class="clearfix"></div>
		</div>
		<div class="tight-form last" ng-if="agg.type === 'percentiles'"><commit_msg>show pipeline agg source for derivative<commit_after><div class="tight-form">
	<ul class="tight-form-list">
		<li class="tight-form-item query-keyword tight-form-align" style="width: 75px;">
			Metric
		</li>
		<li>
			<metric-segment-model property="agg.type" options="metricAggTypes" on-change="onTypeChange()" custom="false" css-class="tight-form-item-large"></metric-segment-model>
		</li>
		<li ng-if="aggDef.requiresField">
			<metric-segment-model property="agg.field" get-options="getFieldsInternal()" on-change="onChange()" css-class="tight-form-item-xxlarge"></metric-segment-model>
		</li>
		<li class="tight-form-item" ng-if="!aggDef.requiresField" style="width: 200px">
			&nbsp;
		</li>
		<li class="tight-form-item last" ng-if="settingsLinkText">
			<a ng-click="toggleOptions()">
				<i class="fa fa-caret-down" ng-show="showOptions"></i>
				<i class="fa fa-caret-right" ng-hide="showOptions"></i>
				{{settingsLinkText}}
			</a>
		</li>
	</ul>

	<ul class="tight-form-list pull-right">
		<li class="tight-form-item last" ng-if="isFirst">
			<a class="pointer" ng-click="addMetricAgg()"><i class="fa fa-plus"></i></a>
		</li>
		<li class="tight-form-item last" ng-if="!isSingle">
			<a class="pointer" ng-click="removeMetricAgg()"><i class="fa fa-minus"></i></a>
		</li>
	</ul>
	<div class="clearfix"></div>
</div>

<div class="tight-form" ng-if="showOptions">
	<div class="tight-form-inner-box">
		<div class="tight-form last" ng-if="agg.pipelineAgg !== undefined">
			<ul class="tight-form-list">
				<li class="tight-form-item">
					Based on
				</li>
				<li>
					<metric-segment-model property="agg.pipelineAgg" options="pipelineAggOptions" on-change="onChangeInternal()" css-class="last"></metric-segment-model>
				</li>
			</ul>
			<div class="clearfix"></div>
		</div>
		<div class="tight-form last" ng-if="agg.type === 'percentiles'">
{'fraction_non_alphanumeric': 0.21795565170362358, 'fraction_numerical': 0.0027041644131963224, 'mean_word_length': 4.504464285714286, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 113, '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': '1890718', 'n_tokens_mistral': 1527, 'n_tokens_neox': 1320, 'n_words': 230}