<commit_before><?php
class Stream {
    public $name;
    public $viewers;
    public $averageFps;
    public $previewImage;
    public $quality;
    public $broadcasterLanguage;
    public $language;
    public $status;
    public $link;

    private $isCast = false;
    private $rawObjectData;
    private $previewImageTemplate;

    public function isCast( $string = false ){
        if( $string ) :
            $checkString = $string;
        else :
            $checkString = $this->status;
        endif;

        return preg_match( '#vs#', $checkString );
    }<commit_msg>Improve how we match what is a cast and what is not<commit_after><?php
class Stream {
    public $name;
    public $viewers;
    public $averageFps;
    public $previewImage;
    public $quality;
    public $broadcasterLanguage;
    public $language;
    public $status;
    public $link;

    private $isCast = false;
    private $rawObjectData;
    private $previewImageTemplate;

    public function isCast( $string = false ){
        if( $string ) :
            $checkString = $string;
        else :
            $checkString = $this->status;
        endif;

        return preg_match( '# vs[ \.]#', $checkString );
    }
{'fraction_non_alphanumeric': 0.10613598673300166, 'fraction_numerical': 0.0, 'mean_word_length': 2.3715083798882683, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4026043', 'n_tokens_mistral': 357, 'n_tokens_neox': 344, 'n_words': 101}