<commit_before>#
# Copyright (C) 2011 - 2015 <NAME> <ssato @ redhat.com>
# License: MIT
#
# pylint: disable=missing-docstring
import unittest
import anyconfig.parser as TT


# format: input, expected_result
CASES = dict(single_0=[("", "")],
             single=[("0", 0),
                     ("123", 123),
                     ("True", True),
                     ("a string", "a string"),
                     ("0.1", "0.1"),
                     ("    a string contains extra whitespaces     ",
                      "a string contains extra whitespaces"),
                     ],
             list=[("a,b", ["a", "b"]),
                   ("1,2", [1, 2]),
                   ("a,b,", ["a", "b"]),
                   ],
             attrlist_0=[("requires:bash,zsh",
                          [('requires', ['bash', 'zsh']), ]),
                         ("obsoletes:sysdata;conflicts:sysdata-old",
                          [('obsoletes', 'sysdata'),
                           ('conflicts', 'sysdata-old')]),
                         ],
             path_empty=[("", [])],
             path_single=[("", []), ("a", ['a']), ("/a", ['a']),
                          (".a", ['a']), ("a.", ['a']),
                          ],
             path_multi=[("/a/b/c/d", ['a', 'b', 'c', 'd']),
                         ("a.b.c.d", ['a', 'b', 'c', 'd']),
                         ],
             )


class Test_00_parse(unittest.TestCase):

    testcases = CASES
<commit_msg>fix some pylint warnings 'bad-continuation' and disable another pylint check, invalid-name<commit_after>#
# Copyright (C) 2011 - 2015 <NAME> <<EMAIL>>
# License: MIT
#
# pylint: disable=missing-docstring,invalid-name
import unittest
import anyconfig.parser as TT


# format: input, expected_result
CASES = dict(single_0=[("", "")],
             single=[("0", 0),
                     ("123", 123),
                     ("True", True),
                     ("a string", "a string"),
                     ("0.1", "0.1"),
                     ("    a string contains extra whitespaces     ",
                      "a string contains extra whitespaces")],
             list=[("a,b", ["a", "b"]),
                   ("1,2", [1, 2]),
                   ("a,b,", ["a", "b"])],
             attrlist_0=[("requires:bash,zsh",
                          [('requires', ['bash', 'zsh']), ]),
                         ("obsoletes:sysdata;conflicts:sysdata-old",
                          [('obsoletes', 'sysdata'),
                           ('conflicts', 'sysdata-old')])],
             path_empty=[("", [])],
             path_single=[("", []), ("a", ['a']), ("/a", ['a']),
                          (".a", ['a']), ("a.", ['a'])],
             path_multi=[("/a/b/c/d", ['a', 'b', 'c', 'd']),
                         ("a.b.c.d", ['a', 'b', 'c', 'd'])])


class Test_00(unittest.TestCase):

    testcases = CASES

{'fraction_non_alphanumeric': 0.21304044630404462, 'fraction_numerical': 0.019525801952580194, 'mean_word_length': 1.359375, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '207011', 'n_tokens_mistral': 923, 'n_tokens_neox': 834, 'n_words': 183}