<commit_before>import sys

sys.path.append("~/Source/fplog/fpylog/fpylog_test/")

import fpylog


def main():
    print('inside main')
    world = fpylog.World()
    world.set("some greeting")
    print(world.greet())<commit_msg>Changed the way of importing fpylog module in Python file.<commit_after>import sys
import os
import imp

cur_path = os.path.dirname(__file__)
sys.path.append(cur_path)


def main():
    print('inside main')

    fpylog = imp.load_dynamic('fpylog', os.path.join(cur_path, 'libfpylog.dylib'))

    print(dir(fpylog))

    try:
        world = fpylog.World()
        world.set("some greeting")
        print(world.greet())
    except Exception as e:
        print(e)
        return 1

{'fraction_non_alphanumeric': 0.13098591549295774, 'fraction_numerical': 0.0014084507042253522, 'mean_word_length': 3.283132530120482, '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': '501806', 'n_tokens_mistral': 255, 'n_tokens_neox': 242, 'n_words': 53}