<commit_before>commonfields:
  id: DocumentationAutomation
  version: -1
name: DocumentationAutomation
script: |+
  import yaml
  import sys

  reload(sys)
  sys.setdefaultencoding('utf-8')

  entryID = demisto.args()['entryID']

  res = demisto.executeCommand('getFilePath', {'id': entryID})
  if isError(res[0]):
      demisto.results(res)
      sys.exit(0)

  path = res[0]['Contents']['path']

  f = open(path,'rb')
  data = f.read()
  f.close()<commit_msg>removed unused code<commit_after>commonfields:
  id: DocumentationAutomation
  version: -1
name: DocumentationAutomation
script: |+
  import yaml
  import sys

  reload(sys)
  sys.setdefaultencoding('utf-8')

  entryID = demisto.args()['entryID']

  res = demisto.executeCommand('getFilePath', {'id': entryID})
  if isError(res[0]):
      demisto.results(res)
      sys.exit(0)

  path = res[0]['Contents']['path']
{'fraction_non_alphanumeric': 0.15428571428571428, 'fraction_numerical': 0.011428571428571429, 'mean_word_length': 4.374233128834356, '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': '3301334', 'n_tokens_mistral': 312, 'n_tokens_neox': 297, 'n_words': 58}