<commit_before><?php
namespace BD\Subber\Release\Parser;

use BD\Subber\Release\Release;

/**
 * Parses a downloaded file's name into a DownloadedEpisode object
 */
class VideoReleaseParser implements ReleaseParser
{
    /**
     * @param string $releaseName
     * @return \BD\Subber\Release\Release
     */
    public function parseReleaseName( $releaseName )
    {
        $release = new Release();
        $release->name = $releaseName;

        list( $releaseName, $release->group ) = explode( '-', $releaseName );
        $releaseNameParts = explode( '.', str_replace( ' ', '.', $releaseName ) );

        $release->format = array_pop( $releaseNameParts );
        $release->source = array_pop( $releaseNameParts );
        $release->resolution = array_pop( $releaseNameParts );

        return $release;
    }
}<commit_msg>Fixed case handling in VideoReleaseParser<commit_after><?php
namespace BD\Subber\Release\Parser;

use BD\Subber\Release\Release;

/**
 * Parses a downloaded file's name into a DownloadedEpisode object
 */
class VideoReleaseParser implements ReleaseParser
{
    /**
     * @param string $releaseName
     * @return \BD\Subber\Release\Release
     */
    public function parseReleaseName( $releaseName )
    {
        $release = new Release();
        $releaseName = strtolower( $releaseName );
        $release->name = $releaseName;

        list( $releaseName, $release->group ) = explode( '-', $releaseName );
        $releaseNameParts = explode( '.', str_replace( ' ', '.', $releaseName ) );

        $release->format = array_pop( $releaseNameParts );
        $release->source = array_pop( $releaseNameParts );
        $release->resolution = array_pop( $releaseNameParts );

        return $release;
    }
}
{'fraction_non_alphanumeric': 0.13341000575043127, 'fraction_numerical': 0.0, 'mean_word_length': 3.046511627906977, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7059475', 'n_tokens_mistral': 499, 'n_tokens_neox': 483, 'n_words': 111}