<commit_before>"""
Module for checking the output of tests

"""

from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
# checks.py 

from future import standard_library
standard_library.install_aliases()

def checkOutput(modelName, verbose=False):
    """
    Function for/to <short description of `netpyne.tests.checks.checkOutput`>

    Parameters
    ----------
    modelName : <type>
        <Short description of modelName>
        **Default:** *required*

    verbose : bool
        <Short description of verbose>
        **Default:** ``False``
        **Options:** ``<option>`` <description of option>
 
    """

    from .. import  sim
    if sim.rank == 0:
        expectedAll = {'numSyns': {}, 'numSpikes': {}}

        # tut2 expected output 
        expectedAll['numSyns']['tut2'] = 280
        expectedAll['numSpikes']['tut2'] = 931

        # tut3 expected output 
        expectedAll['numSyns']['tut3'] = 243
        expectedAll['numSpikes']['tut3'] = 560

        # tut4 expected output 
        expectedAll['numSyns']['tut4'] = 73
        expectedAll['numSpikes']['tut4'] = 1197

        # tut5 expected output 
        expectedAll['numSyns']['tut5'] = 7096
        expectedAll['numSpikes']['tut5'] = 4879

        # tut6 expected output 
        expectedAll['numSyns']['tut6'] = 16
        expectedAll['numSpikes']['tut6'] = 134

        # tut7 expected output 
        expectedAll['numSyns']['tut7'] = 2500
        expectedAll['numSpikes']['tut7'] = 332

        # tut_import expected output 
        expectedAll['numSyns']['tut_import'] = 365
        expectedAll['numSpikes']['tut_import'] = 3023  # check Traub cell mismatch

        # HHTut expected output 
        expectedAll['numSyns']['HHTut'] = 1823
        expectedAll['numSpikes']['HHTut'] = 2052

        # HybridTut expected output 
        expectedAll['numSyns']['HybridTut'] = 356
        expectedAll['numSpikes']['HybridTut'] = 2561

        # M1 expected output 
        expectedAll['numSyns']['M1'] = 4887
        expectedAll['numSpikes']['M1'] = 76135

        # M1 detailed expected output 
        expectedAll['numSyns']['M1detailed'] = 49152
        expectedAll['numSpikes']['M1detailed'] = 2873

        # PTcell expected output 
        expectedAll['numSyns']['PTcell'] = 1
        expectedAll['numSpikes']['PTcell'] = 4
<commit_msg>Fixed expected numSpikes in M1detailed test<commit_after>"""
Module for checking the output of tests

"""

from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
# checks.py 

from future import standard_library
standard_library.install_aliases()

def checkOutput(modelName, verbose=False):
    """
    Function for/to <short description of `netpyne.tests.checks.checkOutput`>

    Parameters
    ----------
    modelName : <type>
        <Short description of modelName>
        **Default:** *required*

    verbose : bool
        <Short description of verbose>
        **Default:** ``False``
        **Options:** ``<option>`` <description of option>
 
    """

    from .. import  sim
    if sim.rank == 0:
        expectedAll = {'numSyns': {}, 'numSpikes': {}}

        # tut2 expected output 
        expectedAll['numSyns']['tut2'] = 280
        expectedAll['numSpikes']['tut2'] = 931

        # tut3 expected output 
        expectedAll['numSyns']['tut3'] = 243
        expectedAll['numSpikes']['tut3'] = 560

        # tut4 expected output 
        expectedAll['numSyns']['tut4'] = 73
        expectedAll['numSpikes']['tut4'] = 1197

        # tut5 expected output 
        expectedAll['numSyns']['tut5'] = 7096
        expectedAll['numSpikes']['tut5'] = 4879

        # tut6 expected output 
        expectedAll['numSyns']['tut6'] = 16
        expectedAll['numSpikes']['tut6'] = 134

        # tut7 expected output 
        expectedAll['numSyns']['tut7'] = 2500
        expectedAll['numSpikes']['tut7'] = 332

        # tut_import expected output 
        expectedAll['numSyns']['tut_import'] = 365
        expectedAll['numSpikes']['tut_import'] = 3023  # check Traub cell mismatch

        # HHTut expected output 
        expectedAll['numSyns']['HHTut'] = 1823
        expectedAll['numSpikes']['HHTut'] = 2052

        # HybridTut expected output 
        expectedAll['numSyns']['HybridTut'] = 356
        expectedAll['numSpikes']['HybridTut'] = 2561

        # M1 expected output 
        expectedAll['numSyns']['M1'] = 4887
        expectedAll['numSpikes']['M1'] = 76135

        # M1 detailed expected output 
        expectedAll['numSyns']['M1detailed'] = 49152
        expectedAll['numSpikes']['M1detailed'] = 2880

        # PTcell expected output 
        expectedAll['numSyns']['PTcell'] = 1
        expectedAll['numSpikes']['PTcell'] = 4

{'fraction_non_alphanumeric': 0.1351129363449692, 'fraction_numerical': 0.043326488706365504, 'mean_word_length': 2.8173981191222572, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '2191154', 'n_tokens_mistral': 1633, 'n_tokens_neox': 1394, 'n_words': 323}