<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
##############################################################################
#
#    Copyright (C) SHS-AV s.r.l. (<http://www.zeroincombenze.org>)
#    All Rights Reserved
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
"""
    Zeroincombenze® unit test library for python programs Regression Test Suite
"""

# import pdb
import os
import os.path
import sys
# pdb.set_trace()
from zerobug import Z0test

__version__ = "0.2.7"

MODULE_ID = 'zerobug'
TEST_FAILED = 1
TEST_SUCCESS = 0


def version():
    return __version__


# Run main if executed as a script
if __name__ == "__main__":
    Z = Z0test
    ctx = Z.parseoptest(sys.argv[1:],
                        version=version())
    if os.name == 'posix':
        UT_LIST = ["__version_0_" + __version__,
                   "__version_1_0.1.44/etc/z0librc",
                   "__version_V_0.2.0" + os.path.join(Z.test_dir,
                                                      "dummy_01.py"),
                   "__version_v_0.2.1" + os.path.join(Z.test_dir,
                                                      "dummy_01.py"),
                   "__version_P_0.2.2" + os.path.join(Z.test_dir,
                                                      "dummy_01.py")]
    else:                                                   # pragma: no cover
        UT_LIST = ["__version_0_" + __version__,
                   "__version_V_0.2.0" + os.path.join(Z.test_dir,
                                                      "dummy_01.py"),
                   "__version_v_0.2.1" + os.path.join(Z.test_dir,
                                                      "dummy_01.py"),
                   "__version_P_0.2.2" + os.path.join(Z.test_dir,
                                                      "dummy_01.py")]
    sts = Z.main_file(ctx, UT=UT_LIST)
    exit(sts)

# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:<commit_msg>[IMP] New feature for travis emulator<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
##############################################################################
#
#    Copyright (C) SHS-AV s.r.l. (<http://www.zeroincombenze.org>)
#    All Rights Reserved
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
"""
    Zeroincombenze® unit test library for python programs Regression Test Suite
"""

# import pdb
import os
import os.path
import sys
# pdb.set_trace()
from zerobug import Z0test

__version__ = "0.2.7"

MODULE_ID = 'zerobug'
TEST_FAILED = 1
TEST_SUCCESS = 0


def version():
    return __version__


# Run main if executed as a script
if __name__ == "__main__":
    Z = Z0test
    ctx = Z.parseoptest(sys.argv[1:],
                        version=version())
    if os.name == 'posix':
        if os.environ['HOSTENV'] == 'travis':
            UT_LIST = ["__version_0_" + __version__]
        else:
            UT_LIST = ["__version_0_" + __version__,
                       "__version_1_0.1.44/etc/z0librc"]
        UT_LIST.append("__version_V_0.2.0" + os.path.join(Z.test_dir,
                                                          "dummy_01.py"))
        UT_LIST.append("__version_v_0.2.1" + os.path.join(Z.test_dir,
                                                          "dummy_01.py"))
        UT_LIST.append("__version_P_0.2.2" + os.path.join(Z.test_dir,
                                                          "dummy_01.py"))
    else:                                                   # pragma: no cover
        UT_LIST = ["__version_0_" + __version__,
                   "__version_V_0.2.0" + os.path.join(Z.test_dir,
                                                      "dummy_01.py"),
                   "__version_v_0.2.1" + os.path.join(Z.test_dir,
                                                      "dummy_01.py"),
                   "__version_P_0.2.2" + os.path.join(Z.test_dir,
                                                      "dummy_01.py")]
    sts = Z.main_file(ctx, UT=UT_LIST)
    exit(sts)

# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
{'fraction_non_alphanumeric': 0.15313351498637603, 'fraction_numerical': 0.018710263396911897, 'mean_word_length': 1.8484221417485773, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 28, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5374382', 'n_tokens_mistral': 1588, 'n_tokens_neox': 1535, 'n_words': 413}