<commit_before><?php namespace App\Presenters;

use Lang;
use App\Project;
use App\Command;
use Robbo\Presenter\Presenter;

/**
 * The view presenter for a project class
 */
class ProjectPresenter extends Presenter
{
    /**
     * Returns the build status needed by CCTray
     * These strings can not be translated
     *
     * @return string
     */
    public function presentCcTrayStatus()
    {
        if ($this->status === Project::FINISHED || $this->status === Project::FAILED) {
            return 'Sleeping';
        } elseif ($this->status === Project::DEPLOYING) {
            return 'Building';
        } elseif ($this->status === Project::PENDING) {
            return 'Pending';
        }

        return 'Unknown';
    }

    /**
     * Gets the translated project status string
     *
     * @return string
     */
    public function presentReadableStatus()
    {
        if ($this->status === Project::FINISHED) {
            return Lang::get('projects.finished');
        } elseif ($this->status === Project::DEPLOYING) {
            return Lang::get('projects.deploying');
        } elseif ($this->status === Project::FAILED) {
            return Lang::get('projects.failed');
        } elseif ($this->status === Project::PENDING) {
            return Lang::get('projects.pending');
        }

        return Lang::get('projects.not_deployed');
    }

    /**
     * Gets the CSS icon class for the project status
     *
     * @return string
     */
    public function presentIcon()
    {
        if ($this->status === Project::FINISHED) {
            return 'check';
        } elseif ($this->status === Project::DEPLOYING) {
            // if (!$rotate) {
            //     return 'spinner';
            // }

            return 'spinner fa-pulse';<commit_msg>Remove comment<commit_after><?php namespace App\Presenters;

use Lang;
use App\Project;
use App\Command;
use Robbo\Presenter\Presenter;

/**
 * The view presenter for a project class
 */
class ProjectPresenter extends Presenter
{
    /**
     * Returns the build status needed by CCTray
     * These strings can not be translated
     *
     * @return string
     */
    public function presentCcTrayStatus()
    {
        if ($this->status === Project::FINISHED || $this->status === Project::FAILED) {
            return 'Sleeping';
        } elseif ($this->status === Project::DEPLOYING) {
            return 'Building';
        } elseif ($this->status === Project::PENDING) {
            return 'Pending';
        }

        return 'Unknown';
    }

    /**
     * Gets the translated project status string
     *
     * @return string
     */
    public function presentReadableStatus()
    {
        if ($this->status === Project::FINISHED) {
            return Lang::get('projects.finished');
        } elseif ($this->status === Project::DEPLOYING) {
            return Lang::get('projects.deploying');
        } elseif ($this->status === Project::FAILED) {
            return Lang::get('projects.failed');
        } elseif ($this->status === Project::PENDING) {
            return Lang::get('projects.pending');
        }

        return Lang::get('projects.not_deployed');
    }

    /**
     * Gets the CSS icon class for the project status
     *
     * @return string
     */
    public function presentIcon()
    {
        if ($this->status === Project::FINISHED) {
            return 'check';
        } elseif ($this->status === Project::DEPLOYING) {
            return 'spinner fa-pulse';
{'fraction_non_alphanumeric': 0.14015477214101463, 'fraction_numerical': 0.0, 'mean_word_length': 2.1384892086330933, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '2118804', 'n_tokens_mistral': 950, 'n_tokens_neox': 943, 'n_words': 238}