<commit_before><div *ngIf="workbasket" id="wb-information" class="panel panel-default">
	<div class="panel-heading">
		<div class="pull-right btn-group">
			<button type="button" (click)="onSubmit()" [disabled]="action === 'COPY'" data-toggle="tooltip" title="Save" class="btn btn-default btn-primary">
				<span class="material-icons md-20">save</span>
			</button>
			<button type="button" (click)="clear()" data-toggle="tooltip" title="Undo Changes" class="btn btn-default">
				<span class="material-icons md-20 blue">undo</span>
			</button>
		</div>
		<h4 class="panel-header">{{workbasket.name}}
			<span *ngIf="!workbasket.workbasketId" class="badge warning"> {{badgeMessage}}</span>
		</h4>
	</div>
	<div class="panel-body">
		<form [formGroup]="AccessItemsForm">
			<table formArrayName="accessItemsGroups" id="table-access-items" class="table table-striped table-center">
				<thead>
					<tr>
						<th></th>
						<th class="text-align required-header">AccessID</th>
						<th>Select all</th>
						<th>Read</th>
						<th>Open</th>
						<th>Append</th>
						<th>Transfer</th>
						<th>Distribute</th>
						<th *ngIf="custom1Field.visible">{{custom1Field.field}}</th>
						<th *ngIf="custom2Field.visible">{{custom2Field.field}}</th>
						<th *ngIf="custom3Field.visible">{{custom3Field.field}}</th>
						<th *ngIf="custom4Field.visible">{{custom4Field.field}}</th>
						<th *ngIf="custom5Field.visible">{{custom5Field.field}}</th>
						<th *ngIf="custom6Field.visible">{{custom6Field.field}}</th>
						<th *ngIf="custom7Field.visible">{{custom7Field.field}}</th>
						<th *ngIf="custom8Field.visible">{{custom8Field.field}}</th>
						<th *ngIf="custom9Field.visible">{{custom9Field.field}}</th>
						<th *ngIf="custom10Field.visible">{{custom10Field.field}}</th>
						<th *ngIf="custom11Field.visible">{{custom11Field.field}}</th>
						<th *ngIf="custom12Field.visible">{{custom12Field.field}}</th>
					</tr>
				</thead>
				<tbody>
					<tr *ngFor="let accessItem of accessItemsGroups.controls; let index = index;" [formGroupName]="index">
						<td>
							<button type="button" (click)="remove(index)" data-toggle="tooltip" title="Remove" class="btn btn-default">
								<span class="material-icons md-20 red">clear</span>
							</button>
						</td>
						<td *ngIf="accessIdField.lookupField else accessIdInput" class="input-group text-align text-width taskana-type-ahead"
						 [ngClass]="{
							'has-warning': (accessItemsClone[index].accessId !== accessItem.value.accessId),
							'has-error': !accessItem.value.accessId }">
							<taskana-type-ahead formControlName="accessId" placeHolderMessage="* Access id is required" [validationValue]="toogleValidationAccessIdMap.get(index)"
							 [displayError]="!isFieldValid('accessItem.value.accessId', index)" (onSelect)="accessItemSelected($event, index)"></taskana-type-ahead>
						</td>
						<ng-template #accessIdInput>
							<td class="input-group text-align text-width">
								<div [ngClass]="{ 'has-warning': (accessItemsClone[index].accessId !==accessItem.value.accessId), 'has-error':
							 !accessItem.value.accessId && formSubmitAttempt}">
									<input type="text" class="form-control" formControlName="accessId" placeholder="{{accessItem.invalid?
							 '* Access id is required': ''}}"
									 [@validation]="toogleValidationAccessIdMap.get(index)">
								</div>
							</td>
						</ng-template>
						<td>
							<input id="checkbox-{{index}}-00" type="checkbox" (change)="checkAll(index, $event)">
							<label for="checkbox-{{index}}-00"></label>
						</td>
						<td [ngClass]="{ 'has-changes': (accessItemsClone[index].permRead !== accessItem.value.permRead)}">
							<input id="checkbox-{{index}}-0" type="checkbox" formControlName="permRead" class="regular-checkbox">
							<label for="checkbox-{{index}}-0"></label>
						</td>
						<td [ngClass]="{ 'has-changes': (accessItemsClone[index].permOpen !== accessItem.value.permOpen)}">
							<input id="checkbox-{{index}}-1" type="checkbox" formControlName="permOpen">
							<label for="checkbox-{{index}}-1"></label>
						</td>
						<td [ngClass]="{ 'has-changes': (accessItemsClone[index].permAppend !== accessItem.value.permAppend)}">
							<input id="checkbox-{{index}}-2" type="checkbox" formControlName="permAppend">
							<label for="checkbox-{{index}}-2"></label>
						</td>
						<td [ngClass]="{ 'has-changes': (accessItemsClone[index].permTransfer !== accessItem.value.permTransfer)}">
							<input id="checkbox-{{index}}-3" type="checkbox" formControlName="permTransfer">
							<label for="checkbox-{{index}}-3"></label>
						</td><commit_msg>TSK-1018: Fix typeAhead refactoring<commit_after><div *ngIf="workbasket" id="wb-information" class="panel panel-default">
	<div class="panel-heading">
		<div class="pull-right btn-group">
			<button type="button" (click)="onSubmit()" [disabled]="action === 'COPY'" data-toggle="tooltip" title="Save" class="btn btn-default btn-primary">
				<span class="material-icons md-20">save</span>
			</button>
			<button type="button" (click)="clear()" data-toggle="tooltip" title="Undo Changes" class="btn btn-default">
				<span class="material-icons md-20 blue">undo</span>
			</button>
		</div>
		<h4 class="panel-header">{{workbasket.name}}
			<span *ngIf="!workbasket.workbasketId" class="badge warning"> {{badgeMessage}}</span>
		</h4>
	</div>
	<div class="panel-body">
		<form [formGroup]="AccessItemsForm">
			<table formArrayName="accessItemsGroups" id="table-access-items" class="table table-striped table-center">
				<thead>
					<tr>
						<th></th>
						<th class="text-align required-header">AccessID</th>
						<th>Select all</th>
						<th>Read</th>
						<th>Open</th>
						<th>Append</th>
						<th>Transfer</th>
						<th>Distribute</th>
						<th *ngIf="custom1Field.visible">{{custom1Field.field}}</th>
						<th *ngIf="custom2Field.visible">{{custom2Field.field}}</th>
						<th *ngIf="custom3Field.visible">{{custom3Field.field}}</th>
						<th *ngIf="custom4Field.visible">{{custom4Field.field}}</th>
						<th *ngIf="custom5Field.visible">{{custom5Field.field}}</th>
						<th *ngIf="custom6Field.visible">{{custom6Field.field}}</th>
						<th *ngIf="custom7Field.visible">{{custom7Field.field}}</th>
						<th *ngIf="custom8Field.visible">{{custom8Field.field}}</th>
						<th *ngIf="custom9Field.visible">{{custom9Field.field}}</th>
						<th *ngIf="custom10Field.visible">{{custom10Field.field}}</th>
						<th *ngIf="custom11Field.visible">{{custom11Field.field}}</th>
						<th *ngIf="custom12Field.visible">{{custom12Field.field}}</th>
					</tr>
				</thead>
				<tbody>
					<tr *ngFor="let accessItem of accessItemsGroups.controls; let index = index;" [formGroupName]="index">
						<td>
							<button type="button" (click)="remove(index)" data-toggle="tooltip" title="Remove" class="btn btn-default">
								<span class="material-icons md-20 red">clear</span>
							</button>
						</td>
						<td *ngIf="accessIdField.lookupField else accessIdInput" class="input-group text-align text-width taskana-type-ahead"
						 [ngClass]="{
							'has-warning': (accessItemsClone[index].accessId !== accessItem.value.accessId),
							'has-error': !accessItem.value.accessId }">
							<taskana-type-ahead formControlName="accessId" placeHolderMessage="* Access id is required" [validationValue]="toogleValidationAccessIdMap.get(index)"
							 [displayError]="!isFieldValid('accessItem.value.accessId', index)" (selectedItem)="accessItemSelected($event, index)"></taskana-type-ahead>
						</td>
						<ng-template #accessIdInput>
							<td class="input-group text-align text-width">
								<div [ngClass]="{ 'has-warning': (accessItemsClone[index].accessId !==accessItem.value.accessId), 'has-error':
							 !accessItem.value.accessId && formSubmitAttempt}">
									<input type="text" class="form-control" formControlName="accessId" placeholder="{{accessItem.invalid?
							 '* Access id is required': ''}}"
									 [@validation]="toogleValidationAccessIdMap.get(index)">
								</div>
							</td>
						</ng-template>
						<td>
							<input id="checkbox-{{index}}-00" type="checkbox" (change)="checkAll(index, $event)">
							<label for="checkbox-{{index}}-00"></label>
						</td>
						<td [ngClass]="{ 'has-changes': (accessItemsClone[index].permRead !== accessItem.value.permRead)}">
							<input id="checkbox-{{index}}-0" type="checkbox" formControlName="permRead" class="regular-checkbox">
							<label for="checkbox-{{index}}-0"></label>
						</td>
						<td [ngClass]="{ 'has-changes': (accessItemsClone[index].permOpen !== accessItem.value.permOpen)}">
							<input id="checkbox-{{index}}-1" type="checkbox" formControlName="permOpen">
							<label for="checkbox-{{index}}-1"></label>
						</td>
						<td [ngClass]="{ 'has-changes': (accessItemsClone[index].permAppend !== accessItem.value.permAppend)}">
							<input id="checkbox-{{index}}-2" type="checkbox" formControlName="permAppend">
							<label for="checkbox-{{index}}-2"></label>
						</td>
						<td [ngClass]="{ 'has-changes': (accessItemsClone[index].permTransfer !== accessItem.value.permTransfer)}">
							<input id="checkbox-{{index}}-3" type="checkbox" formControlName="permTransfer">
							<label for="checkbox-{{index}}-3"></label>
						</td>
{'fraction_non_alphanumeric': 0.19978540772532188, 'fraction_numerical': 0.011158798283261802, 'mean_word_length': 4.221848739495798, 'pattern_counts': {'":': 0, '<': 219, '<?xml version=': 0, '>': 219, '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': '3527519', 'n_tokens_mistral': 3830, 'n_tokens_neox': 2951, 'n_words': 466}