<commit_before>.container-fluid.user-profile
	.row.top-buffer
		.col-sm-2.dark-background
			.row
				.col-md-12
					// Show the image with a link to Gravatar if this is a user's own profile
					a(
						ng-if='isMine'
						href='http://gravatar.com'
					)
						img.stretch(
							ng-src='{{ user.gravatar }}?s=500&d=retro'
							style='max-width: 500px'
							tooltip-placement='bottom'
							tooltip='Manage the profile image for {{ user.email }} with Gravatar'
						)

					// Otherwise just show the image
					img.stretch(
						ng-if='!isMine'
						ng-src='{{ user.gravatar }}?s=200&d=retro'
						style='max-width: 200px'
					)

			.row
				.col-md-12(ng-hide='!user.realName && !user.location')
					p
						.real-name.align-sm-right(ng-if='user.realName') {{ user.realName }}
						.location.align-sm-right(ng-if='user.location') {{ user.location }}

			.row.top-buffer.bottom-buffer.align-sm-right(
				ng-show='isMine'
			)
				.col-md-12(ng-hide='edit')
					button.btn.btn-primary(ng-click='edit = !edit') Edit
				.col-md-12(ng-show='edit')
					button.btn.btn-primary(
						ng-click='save()'
						ng-disabled='form.$invalid'
					) Save
					= ' '
					button.btn.btn-default(ng-click='cancel()') Cancel

		.col-sm-6.dark-background
			.profile-container
				// PROFILE DISPLAY
				.display.animate-fade(ng-hide='edit')
					.row
						.col-md-12()
							h1.username {{ user.username }}
								span.rank {{ user.rank }}

					.row
						.col-md-12.teacher(ng-hide='!user.teacher.name')
							p
								strong student of
									= ' '
									a.teacher-name(
										ng-if='user.teacher.url'
										href='user.teacher.url'
									) {{ user.teacher.name }}

									span.teacher-name(
										ng-if='!user.teacher.url'
									) {{ user.teacher.name }}
						.col-md-12.spacer(ng-if='!user.teacher.name')

					.row
						.col-md-12(ng-hide='!user.bio')
							p {{ user.bio }}

					.row(ng-show='profile.favorite')
						.col-md-12
							h3 Favorite
							table.table.table-condensed.table-display
								tbody<commit_msg>Fix teacher URL in profile<commit_after>.container-fluid.user-profile
	.row.top-buffer
		.col-sm-2.dark-background
			.row
				.col-md-12
					// Show the image with a link to Gravatar if this is a user's own profile
					a(
						ng-if='isMine'
						href='http://gravatar.com'
					)
						img.stretch(
							ng-src='{{ user.gravatar }}?s=500&d=retro'
							style='max-width: 500px'
							tooltip-placement='bottom'
							tooltip='Manage the profile image for {{ user.email }} with Gravatar'
						)

					// Otherwise just show the image
					img.stretch(
						ng-if='!isMine'
						ng-src='{{ user.gravatar }}?s=200&d=retro'
						style='max-width: 200px'
					)

			.row
				.col-md-12(ng-hide='!user.realName && !user.location')
					p
						.real-name.align-sm-right(ng-if='user.realName') {{ user.realName }}
						.location.align-sm-right(ng-if='user.location') {{ user.location }}

			.row.top-buffer.bottom-buffer.align-sm-right(
				ng-show='isMine'
			)
				.col-md-12(ng-hide='edit')
					button.btn.btn-primary(ng-click='edit = !edit') Edit
				.col-md-12(ng-show='edit')
					button.btn.btn-primary(
						ng-click='save()'
						ng-disabled='form.$invalid'
					) Save
					= ' '
					button.btn.btn-default(ng-click='cancel()') Cancel

		.col-sm-6.dark-background
			.profile-container
				// PROFILE DISPLAY
				.display.animate-fade(ng-hide='edit')
					.row
						.col-md-12()
							h1.username {{ user.username }}
								span.rank {{ user.rank }}

					.row
						.col-md-12.teacher(ng-hide='!user.teacher.name')
							p
								strong student of
									= ' '
									a.teacher-name(
										ng-if='user.teacher.url'
										href='{{ user.teacher.url }}'
									) {{ user.teacher.name }}

									span.teacher-name(
										ng-if='!user.teacher.url'
									) {{ user.teacher.name }}
						.col-md-12.spacer(ng-if='!user.teacher.name')

					.row
						.col-md-12(ng-hide='!user.bio')
							p {{ user.bio }}

					.row(ng-show='profile.favorite')
						.col-md-12
							h3 Favorite
							table.table.table-condensed.table-display
								tbody
{'fraction_non_alphanumeric': 0.17215676845395528, 'fraction_numerical': 0.016350084154844916, 'mean_word_length': 1.9949604031677466, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '645028', 'n_tokens_mistral': 2193, 'n_tokens_neox': 1490, 'n_words': 216}