<commit_before>
<div class="my-friends" ng-controller="FacebookFriendsCtrl">
	<div>
		<form class="form-search pull-right" style="margin: 5px 2px;">
			<input type="text" class="input-medium search-query" placeholder="Search..." ng-model="fb_friends_filter">
		</form>
		<h4>Friends</h4>
	</div>
	<div class="row-fluid" ng-repeat="fb_friend in fb_friends | filter:fb_friends_filter">
		<div class="span2">
			<img ng-src="https://graph.facebook.com/{{fb_friend.id}}/picture?type=square"/>
		</div>
		<div class="span8">
			<a class="btn btn-link" href="https://www.facebook.com/{{fb_friend.id}}" target="_blank">
				<div ng-bind-html-unsafe="fb_friend.name"></div>
			</a>
		</div>
		<div class="span2">
			<a href="/dashboard/give-gift/{{fb_friend.id}}" target="_self">
				<img class="giftbox" src="/images/favicon.png" border="0" />
			</a>
		</div>
	</div>
</div>

<script>
	function FacebookFriendsCtrl($scope, $rootScope) {

		$rootScope.fb_friends = [];
		$scope.fb_friends_filter = "";

		$scope.read_facebook_friends = function() {
			var _read_facebook_friends = function() {
				$rootScope.fb_friends = JSON.parse(window.localStorage.getItem("friends"));
				console.log('$rootScope.fb_friends', $rootScope.fb_friends);
			}
			if ($scope.$$phase) {
				_read_facebook_friends();
			} else {
				$scope.$apply(function() {
					_read_facebook_friends();<commit_msg>Corrected topbar for friendlist.<commit_after><div ng-controller="FacebookFriendsCtrl">
	<div>
		<form class="form-search pull-right" style="margin: 5px 2px;">
			<input type="text" class="input-medium search-query" placeholder="Search..." ng-model="fb_friends_filter">
		</form>
		<h4>Friends</h4>
	</div>
	<div class="my-friends">
		<div class="row-fluid" ng-repeat="fb_friend in fb_friends | filter:fb_friends_filter">
			<div class="span2">
				<img ng-src="https://graph.facebook.com/{{fb_friend.id}}/picture?type=square"/>
			</div>
			<div class="span8">
				<a class="btn btn-link" href="https://www.facebook.com/{{fb_friend.id}}" target="_blank">
					<div ng-bind-html-unsafe="fb_friend.name"></div>
				</a>
			</div>
			<div class="span2">
				<a href="/dashboard/give-gift/{{fb_friend.id}}" target="_self">
					<img class="giftbox" src="/images/favicon.png" border="0" />
				</a>
			</div>
		</div>
	</div>
</div>

<script>
	function FacebookFriendsCtrl($scope, $rootScope) {

		$rootScope.fb_friends = [];
		$scope.fb_friends_filter = "";

		$scope.read_facebook_friends = function() {
			var _read_facebook_friends = function() {
				$rootScope.fb_friends = JSON.parse(window.localStorage.getItem("friends"));
				console.log('$rootScope.fb_friends', $rootScope.fb_friends);
			}
			if ($scope.$$phase) {
				_read_facebook_friends();
			} else {
				$scope.$apply(function() {
					_read_facebook_friends();
{'fraction_non_alphanumeric': 0.19557458957887222, 'fraction_numerical': 0.005710206995003569, 'mean_word_length': 4.411196911196911, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3469554', 'n_tokens_mistral': 1168, 'n_tokens_neox': 993, 'n_words': 155}