<commit_before>-- Gemeinschaft 5 module: string functions
-- (c) AMOOMA GmbH 2012-2013
-- 

module(...,package.seeall)

function try(array, arguments)
  local result = array;
  <commit_msg>exit on unsupported types<commit_after>-- Gemeinschaft 5 module: string functions
-- (c) AMOOMA GmbH 2012-2013
-- 

module(...,package.seeall)

function try(array, arguments)
  if type(arguments) ~= 'string' or type(array) ~= 'table' then
    return nil;
  end

  local result = array;
  
{'fraction_non_alphanumeric': 0.1320754716981132, 'fraction_numerical': 0.03773584905660377, 'mean_word_length': 3.732673267326733, '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': '6873097', 'n_tokens_mistral': 177, 'n_tokens_neox': 154, 'n_words': 47}