<commit_before>#!/usr/bin/env python
#encoding:utf-8
#author:dbr/Ben
#project:tvnamer
#repository:http://github.com/dbr/tvnamer
#license:Creative Commons GNU GPL v2
# http://creativecommons.org/licenses/GPL/2.0/

"""Test file names for tvnamer
"""

files = {}

files['default_format'] = [
    {'input': 'Scrubs - [04x19] - My Best Laid Plans',
    'seriesname': 'scrubs',
    'seasonnumber': 4, 'episodenumber': 19},
    {'input': 'Scrubs - [02x11]',
    'seriesname': 'scrubs',
    'seasonnumber': 2, 'episodenumber': 11},
]

files['s01e01_format'] = [
    {'input': 'scrubs.s01e01',
    'seriesname': 'scrubs',
    'seasonnumber': 1, 'episodenumber': 1},
    {'input': 'my.name.is.earl.s01e01',
    'seriesname': 'my name is earl',
    'seasonnumber': 1, 'episodenumber': 1},
    {'input': 'scrubs.s01e24.blah.fake',
    'seriesname': 'scrubs',
    'seasonnumber': 1, 'episodenumber': 24},
]

files['misc'] = [
    {'input': 'Six.Feet.Under.S0201.test_testing-yay',
    'seriesname': 'six feet under',
    'seasonnumber': 2, 'episodenumber': 1},
]

files['multiple_episodes'] = [
    {'input': 'scrubs.s01e23e24',
    'seriesname': 'scrubs',
    'seasonnumber': 1, 'episodenumber': [23, 24]},
    {'input': 'Stargate SG-1 - [01x01-02]',
    'seriesname': 'stargate sg-1',
    'seasonnumber': 1, 'episodenumber': [1, 2]},
    {'input': '[Lunar] Bleach - 52-53 [B937F496]',
    'seriesname': 'bleach',
    'seasonnumber': None, 'episodenumber': [52, 53]},
    {'input': 'scrubs.s01e01e02e03',
    'seriesname': 'scrubs',
    'seasonnumber': 1, 'episodenumber': [1, 2, 3]},
    {'input': 'Scrubs - [02x01-03]',
    'seriesname': 'scrubs',
    'seasonnumber': 2, 'episodenumber': [1, 2, 3]},
]

files['unicode'] = [
    {'input': 'DARKER THAN BLACK -\xe9\xbb\x92\xe3\x81\xae\xe5\xa5\x91\xe7\xb4\x84\xe8\x80\x85- - S01E01 (21st copy)',
    'seriesname': 'darker than black -\xe9\xbb\x92\xe3\x81\xae\xe5\xa5\x91\xe7\xb4\x84\xe8\x80\x85-',
    'seasonnumber': 1, 'episodenumber': 1},
    {'input': 'Carniv\xc3\xa0le 1x11 - The Day of the Dead',
    'seriesname': 'Carniv\xc3\xa0le',
    'seasonnumber': 1, 'episodenumber': 11},
    {'input': 't\xc3\xacnh ng\xc6\xb0\xe1\xbb\x9di hi\xe1\xbb\x87n \xc4\x91\xe1\xba\xa1i - [01x01]',
    'seriesname': 't\xc3\xacnh ng\xc6\xb0\xe1\xbb\x9di hi\xe1\xbb\x87n \xc4\x91\xe1\xba\xa1i',
    'seasonnumber': 1, 'episodenumber': 1},
]

files['anime'] = [
    {'input': '[Eclipse] Fullmetal Alchemist Brotherhood - 02 (1280x720 h264) [8452C4BF]',<commit_msg>Added test for parsing three episode file<commit_after>#!/usr/bin/env python
#encoding:utf-8
#author:dbr/Ben
#project:tvnamer
#repository:http://github.com/dbr/tvnamer
#license:Creative Commons GNU GPL v2
# http://creativecommons.org/licenses/GPL/2.0/

"""Test file names for tvnamer
"""

files = {}

files['default_format'] = [
    {'input': 'Scrubs - [04x19] - My Best Laid Plans',
    'seriesname': 'scrubs',
    'seasonnumber': 4, 'episodenumber': 19},
    {'input': 'Scrubs - [02x11]',
    'seriesname': 'scrubs',
    'seasonnumber': 2, 'episodenumber': 11},
]

files['s01e01_format'] = [
    {'input': 'scrubs.s01e01',
    'seriesname': 'scrubs',
    'seasonnumber': 1, 'episodenumber': 1},
    {'input': 'my.name.is.earl.s01e01',
    'seriesname': 'my name is earl',
    'seasonnumber': 1, 'episodenumber': 1},
    {'input': 'scrubs.s01e24.blah.fake',
    'seriesname': 'scrubs',
    'seasonnumber': 1, 'episodenumber': 24},
]

files['misc'] = [
    {'input': 'Six.Feet.Under.S0201.test_testing-yay',
    'seriesname': 'six feet under',
    'seasonnumber': 2, 'episodenumber': 1},
]

files['multiple_episodes'] = [
    {'input': 'Scrubs - [01x01-02-03]',
    'seriesname': 'scrubs',
    'seasonnumber': 1, 'episodenumber': [01, 02, 03],
    },
    {'input': 'scrubs.s01e23e24',
    'seriesname': 'scrubs',
    'seasonnumber': 1, 'episodenumber': [23, 24]},
    {'input': 'Stargate SG-1 - [01x01-02]',
    'seriesname': 'stargate sg-1',
    'seasonnumber': 1, 'episodenumber': [1, 2]},
    {'input': '[Lunar] Bleach - 52-53 [B937F496]',
    'seriesname': 'bleach',
    'seasonnumber': None, 'episodenumber': [52, 53]},
    {'input': 'scrubs.s01e01e02e03',
    'seriesname': 'scrubs',
    'seasonnumber': 1, 'episodenumber': [1, 2, 3]},
    {'input': 'Scrubs - [02x01-03]',
    'seriesname': 'scrubs',
    'seasonnumber': 2, 'episodenumber': [1, 2, 3]},
]

files['unicode'] = [
    {'input': 'DARKER THAN BLACK -\xe9\xbb\x92\xe3\x81\xae\xe5\xa5\x91\xe7\xb4\x84\xe8\x80\x85- - S01E01 (21st copy)',
    'seriesname': 'darker than black -\xe9\xbb\x92\xe3\x81\xae\xe5\xa5\x91\xe7\xb4\x84\xe8\x80\x85-',
    'seasonnumber': 1, 'episodenumber': 1},
    {'input': 'Carniv\xc3\xa0le 1x11 - The Day of the Dead',
    'seriesname': 'Carniv\xc3\xa0le',
    'seasonnumber': 1, 'episodenumber': 11},
    {'input': 't\xc3\xacnh ng\xc6\xb0\xe1\xbb\x9di hi\xe1\xbb\x87n \xc4\x91\xe1\xba\xa1i - [01x01]',
    'seriesname': 't\xc3\xacnh ng\xc6\xb0\xe1\xbb\x9di hi\xe1\xbb\x87n \xc4\x91\xe1\xba\xa1i',
    'seasonnumber': 1, 'episodenumber': 1},
]

files['anime'] = [
    {'input': '[Eclipse] Fullmetal Alchemist Brotherhood - 02 (1280x720 h264) [8452C4BF]',
{'fraction_non_alphanumeric': 0.21594231144026504, 'fraction_numerical': 0.08477879555642175, 'mean_word_length': 3.773953488372093, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6497289', 'n_tokens_mistral': 2477, 'n_tokens_neox': 2239, 'n_words': 400}