<commit_before># A 'Detective' (analyzer) analyzes data from evidence and reports
# what it believes the new values should be.
# This is subclassed (one per each analyzer); an instance analyzes 1 project.
# Only the 'chief' decides when to update the proposed changes.

class Detective
  # Individual detectives must identify their inputs, outputs

  # Individual detectives must implement "analyze"
  # "Current" is a hash of current best estimates of fields and values.
  # We pass this separately from the evidence to reduce potential problems
  # from parallel execution (if we add that later).
  def analyze(_evidence, _current)
  end
end<commit_msg>In 'Detective' superclass, show INPUTS and OUTPUTS to help document it<commit_after># A 'Detective' (analyzer) analyzes data from evidence and reports
# what it believes the new values should be.
# This is subclassed (one per each analyzer); an instance analyzes 1 project.
# Only the 'chief' decides when to update the proposed changes.

class Detective
  # Individual detectives must identify their inputs, outputs
  INPUTS = []
  OUTPUTS = []

  # Individual detectives must implement "analyze"
  # "Current" is a hash of current best estimates of fields and values.
  # We pass this separately from the evidence to reduce potential problems
  # from parallel execution (if we add that later).
  def analyze(_evidence, _current)
  end
end
{'fraction_non_alphanumeric': 0.058022922636103154, 'fraction_numerical': 0.0014326647564469914, 'mean_word_length': 4.43579766536965, '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': '3668205', 'n_tokens_mistral': 367, 'n_tokens_neox': 343, 'n_words': 191}