<commit_before>	<?php defined('SYSPATH') or die('No direct access allowed.');
/**
 * User_Carousel
 *
 * @package    Anqh
 * @author     <NAME>
 * @copyright  (c) 2012-2013 <NAME>
 * @license    http://www.opensource.org/licenses/mit-license.php MIT license
 */
class View_User_Carousel extends View_Section {

	/**
	 * @var  string  View classes
	 */
	public $class = 'carousel full';

	/**
	 * @var  string  View id
	 */
	public $id = 'carousel';

	/**
	 * @var  Model_User
	 */
	public $user;


	/**
	 * Create new view.
	 *
	 * @param  Model_User  $user
	 */
	public function __construct(Model_User $user = null) {
		parent::__construct();

		$this->user = $user;
	}


	/**
	 * Render view.
	 *
	 * @return  string
	 */
	public function content() {
		ob_start();

		// Load images
		$images = $this->user->images();

		// Legacy support
		if ($this->user->picture && !count($images)):
			echo HTML::image($this->user->picture);
		endif;

		// Is Facebook image set
		$facebook = !!strpos($this->user->picture, 'facebook.com');

		if (count($images) || $facebook):
<commit_msg>Fix if having only Facebook image<commit_after>	<?php defined('SYSPATH') or die('No direct access allowed.');
/**
 * User_Carousel
 *
 * @package    Anqh
 * @author     <NAME>
 * @copyright  (c) 2012-2013 <NAME>
 * @license    http://www.opensource.org/licenses/mit-license.php MIT license
 */
class View_User_Carousel extends View_Section {

	/**
	 * @var  string  View classes
	 */
	public $class = 'carousel full';

	/**
	 * @var  string  View id
	 */
	public $id = 'carousel';

	/**
	 * @var  Model_User
	 */
	public $user;


	/**
	 * Create new view.
	 *
	 * @param  Model_User  $user
	 */
	public function __construct(Model_User $user = null) {
		parent::__construct();

		$this->user = $user;
	}


	/**
	 * Render view.
	 *
	 * @return  string
	 */
	public function content() {
		ob_start();

		// Load images
		$images = $this->user->images();

		// Is Facebook image set
		$facebook = !!strpos($this->user->picture, 'facebook.com');

		// Legacy support
		if ($this->user->picture && !count($images) && !$facebook):
			echo HTML::image($this->user->picture);
		endif;

		if (count($images) || $facebook):

{'fraction_non_alphanumeric': 0.17502278942570648, 'fraction_numerical': 0.007292616226071103, 'mean_word_length': 2.976449275362319, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4544323', 'n_tokens_mistral': 817, 'n_tokens_neox': 726, 'n_words': 182}