<commit_before><div class="modal hide" id="modal-login">
	<div class="modal-header">
		<h3><?php echo lang('bf_action_login') ?></h3>
	</div>
	
	<?php $this->load->helper('form'); ?>
		<?php echo form_open(site_url('login'), 'class="form-horizontal" style="margin: 0;"'); ?>
	
	<div class="modal-body">
			<div class="control-group">
				<label class="control-label" for="login">
					<?php echo $this->settings_lib->item('auth.login_type') == 'both' ? lang('bf_login_type_both') : ucwords($this->settings_lib->item('auth.login_type')) ?>
				</label>
				<div class="controls">
					<input type="text" name="login" class="input-xlarge" placeholder="<?php echo $this->settings_lib->item('auth.login_type') == 'both' ? lang('bf_username') .'/'. lang('bf_email') : ucwords($this->settings_lib->item('auth.login_type')) ?>" value="">
				</div>
			</div>
			
			<div class="control-group">
				<label class="control-label" for="password"><?php echo lang('bf_password') ?></label>
				<div class="controls">
					<input type="password" name="password" class="input-xlarge" placeholder="Password" value="">
				</div>
			</div>
			
			<?php if ($this->settings_lib->item('auth.allow_remember')) : ?>
			<div class="control-group">
				<div class="controls">
					<label class="checkbox" for="remember">
						<input type="checkbox" name="remember" value="1" checked>
						<?php echo lang('bf_remember_me') ?>				
					</label>
				</div>
			</div>
			<?php endif; ?>
		
		<div class="control-group">
			<div class="controls">
				<input type="submit" name="submit" id="log-me-in" value="<?php echo lang('bf_action_login') ?>" class="btn btn-primary">
				<a class="btn" data-dismiss="modal"><?php echo lang('bf_action_cancel'); ?></a>
			</div>
		</div>
	</div>
	
	<div class="modal-footer">
			<?php if ($this->settings_lib->item('auth.allow_register')) : ?>
				<p style="text-align: center">
					No account? <a href="<?php echo site_url('register') ?>"><?php echo lang('bf_action_register'); ?>!</a> | 
					<a href=""><?php echo lang('bf_forgot_password'); ?></a>
				</p>
			<?php endif; ?>
	</div>
	
	<?php echo form_close(); ?>
</div><commit_msg>Added check to display modal_login only if user is not logged in<commit_after><?php if (isset($current_user->email)) : ?>

<div class="modal hide" id="modal-login">
	<div class="modal-header">
		<h3><?php echo lang('bf_action_login') ?></h3>
	</div>
	
	<?php $this->load->helper('form'); ?>
		<?php echo form_open(site_url('login'), 'class="form-horizontal" style="margin: 0;"'); ?>
	
	<div class="modal-body">
			<div class="control-group">
				<label class="control-label" for="login">
					<?php echo $this->settings_lib->item('auth.login_type') == 'both' ? lang('bf_login_type_both') : ucwords($this->settings_lib->item('auth.login_type')) ?>
				</label>
				<div class="controls">
					<input type="text" name="login" class="input-xlarge" placeholder="<?php echo $this->settings_lib->item('auth.login_type') == 'both' ? lang('bf_username') .'/'. lang('bf_email') : ucwords($this->settings_lib->item('auth.login_type')) ?>" value="">
				</div>
			</div>
			
			<div class="control-group">
				<label class="control-label" for="password"><?php echo lang('bf_password') ?></label>
				<div class="controls">
					<input type="password" name="password" class="input-xlarge" placeholder="Password" value="">
				</div>
			</div>
			
			<?php if ($this->settings_lib->item('auth.allow_remember')) : ?>
			<div class="control-group">
				<div class="controls">
					<label class="checkbox" for="remember">
						<input type="checkbox" name="remember" value="1" checked>
						<?php echo lang('bf_remember_me') ?>				
					</label>
				</div>
			</div>
			<?php endif; ?>
		
		<div class="control-group">
			<div class="controls">
				<input type="submit" name="submit" id="log-me-in" value="<?php echo lang('bf_action_login') ?>" class="btn btn-primary">
				<a class="btn" data-dismiss="modal"><?php echo lang('bf_action_cancel'); ?></a>
			</div>
		</div>
	</div>
	
	<div class="modal-footer">
			<?php if ($this->settings_lib->item('auth.allow_register')) : ?>
				<p style="text-align: center">
					No account? <a href="<?php echo site_url('register') ?>"><?php echo lang('bf_action_register'); ?>!</a> | 
					<a href=""><?php echo lang('bf_forgot_password'); ?></a>
				</p>
			<?php endif; ?>
	</div>
	
	<?php echo form_close(); ?>
</div>

<?php endif; ?>
{'fraction_non_alphanumeric': 0.22773623385452074, 'fraction_numerical': 0.0018128257421255382, 'mean_word_length': 4.376370280146163, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 156, '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': '1779016', 'n_tokens_mistral': 1733, 'n_tokens_neox': 1480, 'n_words': 301}