<commit_before>from pytradfri.smart_task import SmartTask

TASK = {
    '5850': 1,
    '9002': 1492349682,
    '9003': 317094,
    '9040': 4,
    '9041': 48,
    '9042': {
                '15013':
                [
                    {'5712': 18000, '5851': 254, '9003': 65537},
                    {'5712': 18000, '5851': 254, '9003': 65538}
                ],
                '5850': 1},
    '9044': [
                {'9046': 8, '9047': 15}
            ]
        }


def test_smart_task():
    task = SmartTask(None, TASK)

    assert task.state == 1
#    assert task.created_at == 1492349682
    assert task.id == 317094
    assert task.task_type_id == 4
    assert task.repeat_days == 48
#    assert task.repeat_days_list == ['Friday', 'Saturday']
#    assert task.task_start_time_seconds == 29700
<commit_msg>Finalized test_smart_task<commit_after>from pytradfri.smart_task import SmartTask

TASK = {
    '5850': 1,
    '9002': 1492349682,
    '9003': 317094,
    '9040': 4,
    '9041': 48,
    '9042': {
                '15013':
                [
                    {'5712': 18000, '5851': 254, '9003': 65537},
                    {'5712': 18000, '5851': 254, '9003': 65538}
                ],
                '5850': 1},
    '9044': [
                {'9046': 8, '9047': 15}
            ]
        }


def test_smart_task():
    task = SmartTask(None, TASK)

    assert task.state == 1
    assert task.id == 317094
    assert task.task_type_id == 4
    assert task.repeat_days == 48
    assert task.repeat_days_list == ['Friday', 'Saturday']
    assert task.task_start_time_seconds == 29700

{'fraction_non_alphanumeric': 0.1475, 'fraction_numerical': 0.17375, 'mean_word_length': 1.7843478260869565, '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': '5183744', 'n_tokens_mistral': 756, 'n_tokens_neox': 546, 'n_words': 124}