<commit_before><h1>Profile</h1>

<form name="myForm"  novalidate ng-cloak>
    <input type="hidden" name="id" ng-model="person.id">
    <div class="row">
        <div class="span12">
			<span ng-switch on="hasRoleSelected('Practitioner') || hasRoleSelected('Admin') || hasRoleSelected('Site Admin')">
				<div ng-switch-when="true">
					<h2>Name</h2>
					<div class="control-group" ng-class="{error: myForm.personName.$invalid}">
						<label>Name</label>
						<input type="text" name="personName" ng-model="$parent.person.name" required/>
						<span ng-show="myForm.personName.$error.required" class="help-inline"> Required</span>
					</div>
				</div>
			</span>
			<h2>Account</h2>
			<div class="control-group" ng-class="{error: myForm.email.$invalid}">
				<label>Email</label>
				<input type="email" name="email" ng-model="person.email" required ng-disabled="emailDisabled"/>
				<span ng-show="myForm.email.$error.required" class="help-inline"> Required</span>
				<div ng-show="showPasswordToggle">
					<div ng-show="!changePassword" ng-click="changePassword = !changePassword"><i class="icon-lock"></i>&nbsp;Change Password</div>
					<div ng-show="changePassword" ng-click="changePassword = !changePassword"><i class="icon-unlock"></i>&nbsp;Cancel Change Password</div>
				</div>
			</div>
			<span ng-switch on="hasRoleSelected('Patient') && changePassword">
				<div ng-switch-when="true">
					<div class="control-group" ng-class="{error: passwordInvalid()}">
						<label>Password</label>
						<span ng-switch on="modeNew">
							<input ng-switch-when="true"  type="password" name="password" ng-model="$parent.$parent.password"  ui-reset required/>
							<input ng-switch-default      type="password" name="password" ng-model="$parent.$parent.password"  ui-reset />
						</span><commit_msg>only show passoword change toggle for patients<commit_after><h1>Profile</h1>

<form name="myForm"  novalidate ng-cloak>
    <input type="hidden" name="id" ng-model="person.id">
    <div class="row">
        <div class="span12">
			<span ng-switch on="hasRoleSelected('Practitioner') || hasRoleSelected('Admin') || hasRoleSelected('Site Admin')">
				<div ng-switch-when="true">
					<h2>Name</h2>
					<div class="control-group" ng-class="{error: myForm.personName.$invalid}">
						<label>Name</label>
						<input type="text" name="personName" ng-model="$parent.person.name" required/>
						<span ng-show="myForm.personName.$error.required" class="help-inline"> Required</span>
					</div>
				</div>
			</span>
			<h2>Account</h2>
			<div class="control-group" ng-class="{error: myForm.email.$invalid}">
				<label>Email</label>
				<input type="email" name="email" ng-model="person.email" required ng-disabled="emailDisabled"/>
				<span ng-show="myForm.email.$error.required" class="help-inline"> Required</span>
				<div ng-show="hasRoleSelected('Patient') && showPasswordToggle">
					<div ng-show="!changePassword" ng-click="changePassword = !changePassword"><i class="icon-lock"></i>&nbsp;Change Password</div>
					<div ng-show="changePassword" ng-click="changePassword = !changePassword"><i class="icon-unlock"></i>&nbsp;Cancel Change Password</div>
				</div>
			</div>
			<span ng-switch on="hasRoleSelected('Patient') && changePassword">
				<div ng-switch-when="true">
					<div class="control-group" ng-class="{error: passwordInvalid()}">
						<label>Password</label>
						<span ng-switch on="modeNew">
							<input ng-switch-when="true"  type="password" name="password" ng-model="$parent.$parent.password"  ui-reset required/>
							<input ng-switch-default      type="password" name="password" ng-model="$parent.$parent.password"  ui-reset />
						</span>
{'fraction_non_alphanumeric': 0.19161028416779433, 'fraction_numerical': 0.004330175913396482, 'mean_word_length': 4.395620437956205, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, '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': '6589250', 'n_tokens_mistral': 1390, 'n_tokens_neox': 1170, 'n_words': 206}