<commit_before><?php
defined ( 'BASEPATH' ) or exit ( 'No direct script access allowed' );

abstract class Permissions {
	/** the user has had their account confirmed */
	const USER_CONFIRMED = 0x1;
	
	/** the user can update and administrate other users */
	const USER_ADMIN = 0x2;
	
	/** the user can assign, remove, and view statistics about points */
	const POINTS_ADMIN = 0x4;
	
	/** the user can create and edit portfolio items */
	const PORTFOLIO_ADMIN = 0x8;
	
	/** the user can use the batch creation system */
	const BATCH_USER_CREATE = 0x16;
	
	public static function require_logged_in() {
		if (! Permissions::is_logged_in ()) {
			get_instance()->session->set_flashdata('message', 'You need to be logged in to view that page.');
			redirect ( '/login', 'location' );<commit_msg>Revert permission<commit_after><?php
defined ( 'BASEPATH' ) or exit ( 'No direct script access allowed' );

abstract class Permissions {
	/** the user has had their account confirmed */
	const USER_CONFIRMED = 0x1;
	
	/** the user can update and administrate other users */
	const USER_ADMIN = 0x2;
	
	/** the user can assign, remove, and view statistics about points */
	const POINTS_ADMIN = 0x4;
	
	/** the user can create and edit portfolio items */
	const PORTFOLIO_ADMIN = 0x8;
	
	/** the user can use the batch creation system */
	const BATCH_USER_CREATE = 0x10;
	
	public static function require_logged_in() {
		if (! Permissions::is_logged_in ()) {
			get_instance()->session->set_flashdata('message', 'You need to be logged in to view that page.');
			redirect ( '/login', 'location' );
{'fraction_non_alphanumeric': 0.10970996216897856, 'fraction_numerical': 0.013871374527112233, 'mean_word_length': 3.990566037735849, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6606116', 'n_tokens_mistral': 520, 'n_tokens_neox': 479, 'n_words': 179}