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

	require_once(dirname(__FILE__).'/../libraries/appconfig.php');
	require_once(dirname(__FILE__).'/../viewModels/Album.php');

	class Participate extends CI_Controller {

		private $facebook;

		public function __construct() {
			parent::__construct();

			$this->load->library('fblib');
			$this->facebook = $this->fblib->getFacebook();

			$this->load->model('VoteService');
		}

		public function index() {
			if (!$this->fblib->checkAccessToken()) {
				$redirectHelper = $this->facebook->getRedirectLoginHelper();
				$loginUrl = $redirectHelper->getLoginUrl('https://www.facebook.com/projetconcourphoto/app/'.appconfig::getAppId().'/', appconfig::getAppPermissions());
				$this->fblib->jsRedirect($loginUrl);
			} else if (!$this->fblib->checkPermissions()) {
				$rerequestUrl = $_SESSION['rerequest-url'];
				$this->fblib->jsRedirect($rerequestUrl);
			} else {
				$this->load->model('ContestService');
				$this->load->model('PhotoService');

				$currentContest = $this->ContestService->getCurrentContest();

				$this->load->view('structure/header');

				if (isset($currentContest)) {
					$response = $this->facebook->get('/me/albums?fields=id,name,picture');
					$result = $response->getDecodedBody();

					$albums = array();

					foreach ($result['data'] as $album) {
						$albums[] = new Album(
								$album['id'],
								$album['name'],
								$album['picture']['url']
							);
					}<commit_msg>jkjhjui<commit_after><?php
	defined('BASEPATH') OR exit('No direct script access allowed');

	require_once(dirname(__FILE__).'/../libraries/appconfig.php');
	require_once(dirname(__FILE__).'/../viewModels/Album.php');

	class Participate extends CI_Controller {

		private $facebook;

		public function __construct() {
			parent::__construct();

			$this->load->library('fblib');
			$this->facebook = $this->fblib->getFacebook();

			$this->load->model('VoteService');
		}

		public function index() {
			if (!$this->fblib->checkAccessToken()) {
				$redirectHelper = $this->facebook->getRedirectLoginHelper();
				$loginUrl = $redirectHelper->getLoginUrl('https://www.facebook.com/projetconcourphoto/app/'.appconfig::getAppId().'/', appconfig::getAppPermissions());
				$this->fblib->jsRedirect($loginUrl);
			} else if (!$this->fblib->checkPermissions()) {
				$rerequestUrl = $_SESSION['rerequest-url'];
				$this->fblib->jsRedirect($rerequestUrl);
			} else {
				$this->load->model('ContestService');
				$this->load->model('PhotoService');

				$currentContest = $this->ContestService->getCurrentContest();

				$this->load->view('structure/header');

				if (isset($currentContest)) {
					$response = $this->facebook->get('/me/albums?fields=id,name,picture');
					$result = $response->getDecodedBody();

					$albums = array();

					foreach ($result['data'] as $album) {
						$albums[] = new Album(
								$album['id'],
								$album['name'],
								$album['picture']['data']['url']
							);
					}
{'fraction_non_alphanumeric': 0.19907407407407407, 'fraction_numerical': 0.0, 'mean_word_length': 4.206540447504303, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 61, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3505226', 'n_tokens_mistral': 1169, 'n_tokens_neox': 936, 'n_words': 130}