<commit_before>from numpy import *

flagArray = fromfile("op_flag_hex", dtype = int16, sep = '\n')
<commit_msg>updated parser<commit_after>from numpy import *

def parse():
  flag = [line.strip() for line in open('op_flag')]
  flags = []
  for i in range(len(flag)):
    flags.append(int(flag[i],0))
  
  flagArray = array([])
  type1 = 4
  
  for i in flags:
    if i&type1 == True:
      flagArray = append(flagArray,1)
    elif i == 2:
      flagArray = append(flagArray,2)
    elif i == 16:
      flagArray = append(flagArray,3)
    elif i == 17:
      flagArray = append(flagArray,4)
    elif i == 24:
      flagArray = append(flagArray,5)
    else:
      flagArray = append(flagArray,6)
  return flagArray
{'fraction_non_alphanumeric': 0.13642756680731363, 'fraction_numerical': 0.026722925457102673, 'mean_word_length': 3.0685714285714285, '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': '6828645', 'n_tokens_mistral': 258, 'n_tokens_neox': 248, 'n_words': 65}