<commit_before>

<md-card>
	<md-card-content>
		<div layout="row">
			<md-button layout="column" class="md-raised md-primary" ui-sref="sheets.overview">
			 	<i class="fa fa-tachometer fa-lg"></i>
			 	&nbsp;Back to Overview
			</md-button>
		</div>
		<form name="loginForm">
		    <div layout layout-sm="column">
            	<md-input-container flex>
                	<label>Enter Friend's Name</label>
                    <input ng-model="friend" required type="text">
                </md-input-container>
            </div>
		</form>
		<md-button class="md-raised md-warn" ng-click="addFriend(friend)">
			<i class="fa fa-user-plus"></i>
			 Add Friend
		</md-button>
		<br/>
		<br/>
		<span class="text-info md-padding">
			<i class="fa fa-lightbulb-o"></i>
			<small>Add at-least two friends to add and share an expense</small>
		</span>
		<br/>
		<md-button class="md-raised md-accent" ui-sref="sheets.expenses">
        	<i class="fa fa-flask fa-lg"></i>
        	&nbsp; Add New Expense
      	</md-button>
		<table ng-if="sheet.friends.length >0" class="table table-hover table-condensed">
			<thead>
				<tr>
					<th class="col-sm-1 col-md-2">Name</th>
					<th class="col-sm-1 col-md-2">Action</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="friend in sheet.friends">
					<td>
						<span ng-show="!friend.editable" ng-hide="friend.editable">{{friend.name}}</span>
						<form class="form-inline" role="form" ng-show="friend.editable" ng-hide="!friend.editable">
							<div class="row">
								<div class="col-xs-5 col-md-4">
									<input type="text" class="form-control input-sm" ng-model="newname" placeholder="{{friend.name}}">
								</div>
		
								<button class="btn btn-success btn-sm" ng-click="editFriend(newname, friend)"><span class="glyphicon glyphicon-check"></span></button>
							</div>
						</form>
					</td>
					<td>
						<button class="btn btn-warning btn-xs" ng-click="showEditFriend(friend)"><span class="glyphicon glyphicon-edit"></span></button>
						<button class="btn btn-danger btn-xs" ng-click="deleteFriend(friend)"><span class="glyphicon glyphicon-remove"></span></button>
					</td>
				</tr>
			</tbody>
		</table>
    </md-card-content>
</md-card>

       

<!-- <form class="form-inline" role="form">
	<div class="row">
		<div class="col-xs-3 col-md-2">
			<input type="text" class="form-control input-sm" ng-model="friend" placeholder="<NAME>" />
		</div>

		<button class="btn btn-success btn-sm" ng-click="addFriend(friend)"><span class="glyphicon glyphicon-check"></span> Add</button>
	</div>
</form> -->


<commit_msg>action after adding friend<commit_after>

<md-card>
	<md-card-content>
		<div layout="row">
			<md-button layout="column" class="md-raised md-primary" ui-sref="sheets.overview">
			 	<i class="fa fa-tachometer fa-lg"></i>
			 	&nbsp;Back to Overview
			</md-button>
		</div>
		<form name="loginForm">
		    <div layout layout-sm="column">
            	<md-input-container flex>
                	<label>Enter Friend's Name</label>
                    <input ng-model="friend" required type="text">
                </md-input-container>
            </div>
		</form>
		<md-button class="md-raised md-warn" ng-click="addFriend(friend);friend=''">
			<i class="fa fa-user-plus"></i>
			 Add Friend
		</md-button>
		<br/>
		<br/>
		<span class="text-info md-padding">
			<i class="fa fa-lightbulb-o"></i>
			<small>Add at-least two friends to add and share an expense</small>
		</span>
		<br/>
		<md-button class="md-raised md-accent" ui-sref="sheets.expenses">
        	<i class="fa fa-flask fa-lg"></i>
        	&nbsp; Add New Expense
      	</md-button>
		<table ng-if="sheet.friends.length >0" class="table table-hover table-condensed">
			<thead>
				<tr>
					<th class="col-sm-1 col-md-2">Name</th>
					<th class="col-sm-1 col-md-2">Action</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="friend in sheet.friends">
					<td>
						<span ng-show="!friend.editable" ng-hide="friend.editable">{{friend.name}}</span>
						<form class="form-inline" role="form" ng-show="friend.editable" ng-hide="!friend.editable">
							<div class="row">
								<div class="col-xs-5 col-md-4">
									<input type="text" class="form-control input-sm" ng-model="newname" placeholder="{{friend.name}}">
								</div>
		
								<button class="btn btn-success btn-sm" ng-click="editFriend(newname, friend)"><span class="glyphicon glyphicon-check"></span></button>
							</div>
						</form>
					</td>
					<td>
						<button class="btn btn-warning btn-xs" ng-click="showEditFriend(friend)"><span class="glyphicon glyphicon-edit"></span></button>
						<button class="btn btn-danger btn-xs" ng-click="deleteFriend(friend)"><span class="glyphicon glyphicon-remove"></span></button>
					</td>
				</tr>
			</tbody>
		</table>
    </md-card-content>
</md-card>

       

<!-- <form class="form-inline" role="form">
	<div class="row">
		<div class="col-xs-3 col-md-2">
			<input type="text" class="form-control input-sm" ng-model="friend" placeholder="<NAME>" />
		</div>

		<button class="btn btn-success btn-sm" ng-click="addFriend(friend)"><span class="glyphicon glyphicon-check"></span> Add</button>
	</div>
</form> -->



{'fraction_non_alphanumeric': 0.19819473785289035, 'fraction_numerical': 0.003456884962550413, 'mean_word_length': 2.933534743202417, 'pattern_counts': {'":': 0, '<': 179, '<?xml version=': 0, '>': 181, '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': '2992679', 'n_tokens_mistral': 2165, 'n_tokens_neox': 1809, 'n_words': 359}