<commit_before># -*- coding: utf-8 -*-


from dp_tornado.engine.model import Model as dpModel


class TestingModel(dpModel):
    def add(self, a, b):
        """
            .. test::
                expect(int=10, args=(1, 9))
                expect(
                    int=10,
                    kwargs={
                        'a': 1,
                        'b': 9
                    })
                !expect(int=11, args=(1, 9))
                !expect(str='10', args=(1, 9))
                !expect(bool=False, args=(1, 9))
        """
        return a + b

    def minus(self, a, b):
        """
            .. test::
                expect(int=10, args=(11, 1))
                expect(
                    int=10,
                    kwargs={
                        'a': 11,
                        'b': 1
                    })
                !expect(int=11, args=(11, 1))
                !expect(str='10', args=(11, 1))
                !expect(bool=False, args=(1, 9))
        """
        return a - b<commit_msg>add unicode testing test case.<commit_after># -*- coding: utf-8 -*-


from dp_tornado.engine.model import Model as dpModel


class TestingModel(dpModel):
    def add(self, a, b):
        """
            .. test::
                expect(int=10, args=(1, 9))
                expect(
                    int=10,
                    kwargs={
                        'a': 1,
                        'b': 9
                    })
                !expect(int=11, args=(1, 9))
                !expect(str='10', args=(1, 9))
                !expect(bool=False, args=(1, 9))
        """
        return a + b

    def minus(self, a, b):
        """
            .. test::
                expect(int=10, args=(11, 1))
                expect(
                    int=10,
                    kwargs={
                        'a': 11,
                        'b': 1
                    })
                !expect(int=11, args=(11, 1))
                !expect(str='10', args=(11, 1))
                !expect(bool=False, args=(1, 9))
        """
        return a - b

    def unicode(self, a):
        """
            .. test::
                expect(str='한글', args=('한글', ))
                expect(
                    int='한글',
                    kwargs={
                        'a': '한글'
                    })
        """
        return a
{'fraction_non_alphanumeric': 0.14552397114976665, 'fraction_numerical': 0.034789987271955876, 'mean_word_length': 0.8407494145199064, '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': '3733467', 'n_tokens_mistral': 731, 'n_tokens_neox': 627, 'n_words': 146}