<commit_before>import json

from kraken import plugins
from kraken.core.objects.rig import Rig
from kraken.examples.bob_guide_data import bob_guide_data
from kraken.core.profiler import Profiler
from kraken.helpers.utility_methods import logHierarchy


Profiler.getInstance().push("bob_build")

bobGuideRig = Rig("char_bob")
bobGuideRig.loadRigDefinition(bob_guide_data)

bobRigData = bobGuideRig.getGuideData()
print bobRigData
bobRig = Rig()
bobRig.loadRigDefinition(bobRigData)

# builder = plugins.getBuilder()
# builder.build(bobRig)

# Profiler.getInstance().pop()

# if __name__ == "__main__":
#     print json.dumps(Profiler.getInstance().generateReport(),
#                      sort_keys=False, indent=4, separators=(',', ': '))
# else:
#     logHierarchy(bobRig)<commit_msg>Reenabled unit test<commit_after>import json

from kraken import plugins
from kraken.core.objects.rig import Rig
from kraken.examples.bob_guide_data import bob_guide_data
from kraken.core.profiler import Profiler
from kraken.helpers.utility_methods import logHierarchy


Profiler.getInstance().push("bob_build")

bobGuideRig = Rig("char_bob")
bobGuideRig.loadRigDefinition(bob_guide_data)

bobRigData = bobGuideRig.getGuideData()
bobRig = Rig()
bobRig.loadRigDefinition(bobRigData)

builder = plugins.getBuilder()
builder.build(bobRig)

Profiler.getInstance().pop()

if __name__ == "__main__":
    print json.dumps(Profiler.getInstance().generateReport(),
                     sort_keys=False, indent=4, separators=(',', ': '))
else:
    logHierarchy(bobRig)
{'fraction_non_alphanumeric': 0.11276733635774465, 'fraction_numerical': 0.0012961762799740765, 'mean_word_length': 5.683982683982684, 'pattern_counts': {'":': 2, '<': 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': '7547900', 'n_tokens_mistral': 558, 'n_tokens_neox': 528, 'n_words': 93}