<commit_before>from ctypes import *
from types import *
from fix_types import *
lib = cdll.LoadLibrary('./libfix_parser.so')

FIX_SOH = 1

FIX_FAILED                         = -1
FIX_SUCCESS                        = 0
FIX_ERROR_FIELD_HAS_WRONG_TYPE     = 1
FIX_ERROR_FIELD_NOT_FOUND          = 2
FIX_ERROR_FIELD_TYPE_EXISTS        = 3
FIX_ERROR_GROUP_WRONG_INDEX        = 4
FIX_ERROR_XML_ATTR_NOT_FOUND       = 5
FIX_ERROR_XML_ATTR_WRONG_VALUE     = 6
FIX_ERROR_PROTOCOL_XML_LOAD_FAILED = 7
FIX_ERROR_UNKNOWN_FIELD            = 8
FIX_ERROR_WRONG_PROTOCOL_VER       = 9
FIX_ERROR_DUPLICATE_FIELD_DESCR    = 10
FIX_ERROR_UNKNOWN_MSG              = 11
FIX_ERROR_LIBXML                   = 12
FIX_ERROR_INVALID_ARGUMENT         = 13
FIX_ERROR_MALLOC                   = 14
FIX_ERROR_UNKNOWN_PROTOCOL_DESCR   = 15
FIX_ERROR_NO_MORE_PAGES            = 16
FIX_ERROR_NO_MORE_GROUPS           = 17<commit_msg>Update fix_parser.py<commit_after>from ctypes import *
from types import *
lib = cdll.LoadLibrary('./libfix_parser.so')

FIX_SOH = 1

FIX_FAILED                         = -1
FIX_SUCCESS                        = 0
FIX_ERROR_FIELD_HAS_WRONG_TYPE     = 1
FIX_ERROR_FIELD_NOT_FOUND          = 2
FIX_ERROR_FIELD_TYPE_EXISTS        = 3
FIX_ERROR_GROUP_WRONG_INDEX        = 4
FIX_ERROR_XML_ATTR_NOT_FOUND       = 5
FIX_ERROR_XML_ATTR_WRONG_VALUE     = 6
FIX_ERROR_PROTOCOL_XML_LOAD_FAILED = 7
FIX_ERROR_UNKNOWN_FIELD            = 8
FIX_ERROR_WRONG_PROTOCOL_VER       = 9
FIX_ERROR_DUPLICATE_FIELD_DESCR    = 10
FIX_ERROR_UNKNOWN_MSG              = 11
FIX_ERROR_LIBXML                   = 12
FIX_ERROR_INVALID_ARGUMENT         = 13
FIX_ERROR_MALLOC                   = 14
FIX_ERROR_UNKNOWN_PROTOCOL_DESCR   = 15
FIX_ERROR_NO_MORE_PAGES            = 16
FIX_ERROR_NO_MORE_GROUPS           = 17
{'fraction_non_alphanumeric': 0.040381379697139654, 'fraction_numerical': 0.03140773976444195, 'mean_word_length': 2.372400756143667, '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': '6168129', 'n_tokens_mistral': 667, 'n_tokens_neox': 614, 'n_words': 99}