<commit_before><?php
/**
 * BBC_Service_Bamboo_Models_Version
 *
 *
 * @category BBC
 * @package BBC_Service_Bamboo_Models
 * @author <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2013 BBC (http://www.bbc.co.uk)
 */
class BBC_Service_Bamboo_Models_Version extends BBC_Service_Bamboo_Models_Base
{
    // Standard version properties
    protected $_kind = "";
    protected $_availability = array();
    protected $_type = "";
    protected $_hd = false;
    protected $_download = false;
    protected $_duration = array();
    protected $_rrc = array();
    protected $_guidance = array();
    // @codingStandardsIgnoreStart
    protected $_credits_timestamp = "";
    // @codingStandardsIgnoreEnd
    protected $_events = array();

    /**
     * Get the availability for this version
     *
     * @param string $type start, end or remaining
     * @return string
     */
    public function getAvailability($type = 'end') {
        if (isset($this->_availability[$type])) {
            return $this->_availability[$type];
        }
        return "";
    }

    /**
     * Get onward journey time
     *
     * @return string
     */
    public function getOnwardJourneyTime() {
        if (!empty($this->_events)) {
            foreach ($this->_events as $event) {
                if ($event->kind == 'onward_journey') {
                    // @codingStandardsIgnoreStart
                    return $event->time_offset_seconds;
                    // @codingStandardsIgnoreEnd
                }
            }
        }
        return "";<commit_msg>removed empty() check as not needed<commit_after><?php
/**
 * BBC_Service_Bamboo_Models_Version
 *
 *
 * @category BBC
 * @package BBC_Service_Bamboo_Models
 * @author <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2013 BBC (http://www.bbc.co.uk)
 */
class BBC_Service_Bamboo_Models_Version extends BBC_Service_Bamboo_Models_Base
{
    // Standard version properties
    protected $_kind = "";
    protected $_availability = array();
    protected $_type = "";
    protected $_hd = false;
    protected $_download = false;
    protected $_duration = array();
    protected $_rrc = array();
    protected $_guidance = array();
    // @codingStandardsIgnoreStart
    protected $_credits_timestamp = "";
    // @codingStandardsIgnoreEnd
    protected $_events = array();

    /**
     * Get the availability for this version
     *
     * @param string $type start, end or remaining
     * @return string
     */
    public function getAvailability($type = 'end') {
        if (isset($this->_availability[$type])) {
            return $this->_availability[$type];
        }
        return "";
    }

    /**
     * Get onward journey time
     *
     * @return string
     */
    public function getOnwardJourneyTime() {
        foreach ($this->_events as $event) {
            if ($event->kind == 'onward_journey') {
                // @codingStandardsIgnoreStart
                return $event->time_offset_seconds;
                // @codingStandardsIgnoreEnd
            }
        }
        return "";
{'fraction_non_alphanumeric': 0.12123197903014417, 'fraction_numerical': 0.002621231979030144, 'mean_word_length': 2.32208922742111, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 20, 'https://': 0, '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': '1455378', 'n_tokens_mistral': 859, 'n_tokens_neox': 815, 'n_words': 199}