<commit_before>__author__      = '<NAME>'
__copyright__   = 'Copyright (c) 2017 <NAME>'
__license__     = 'MIT'
__version__     = '0.1'


import os
import tempfile

MANAGED_HEAPS = []  # List of tupples (start_address, stop_address, details) describing managed heaps


def parse_vmmap_file(vmmap_csv):
    """
    Use vmmap report to find all managed heaps and fill global MANAGED_HEAPS list.<commit_msg>Added test function.<commit_after>__author__      = '<NAME>'
__copyright__   = 'Copyright (c) 2017 <NAME>'
__license__     = 'MIT'
__version__     = '0.1'


import os
import tempfile

MANAGED_HEAPS = []  # List of tupples (start_address, stop_address, details) describing managed heaps


def test_objects():
    import clr
    clr.AddReference('System')
    import System
    
    t = System.String('test')
    t_ptr = Objects.GetObjectAddress(t)
    
    x = Objects.GetInstance(t_ptr, Objects.CLR_VERSION.VER_4_0)
# end-of-function test


def parse_vmmap_file(vmmap_csv):
    """
    Use vmmap report to find all managed heaps and fill global MANAGED_HEAPS list.
{'fraction_non_alphanumeric': 0.09644194756554307, 'fraction_numerical': 0.013108614232209739, 'mean_word_length': 3.7723214285714284, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6488025', 'n_tokens_mistral': 376, 'n_tokens_neox': 363, 'n_words': 97}