<commit_before>require 'json'
require 'set'

CWD = File.expand_path(File.dirname(__FILE__))

IGNORED_METHODS = %w(
  git_blob_free
  git_blob_lookup
  git_blob_lookup_prefix
  git_commit_create_v
  git_commit_free
  git_commit_id
  git_commit_lookup_prefix
  git_commit_parent_oid
  git_commit_time_offset
  git_commit_tree_oid
  git_config_file__ondisk
  git_config_find_global
  git_config_find_system
  git_index_entry_stage
  imaxdiv
  git_note_free
  git_object__size
  git_odb_add_alternate
  git_odb_add_backend
  git_odb_backend_loose
  git_odb_backend_pack
  git_odb_new
  git_odb_open_rstream
  git_odb_read_header
  git_odb_read_prefix
  git_odb_write
  git_oid_allocfmt
  git_oid_cpy
  git_oid_ncmp
  git_oid_pathfmt
  git_oid_streq
  git_oid_to_string
  git_reference_owner
  git_repository_odb
  git_repository_set_odb
  git_signature_dup
  git_signature_now<commit_msg>Add more *_free methods to ignore<commit_after>require 'json'
require 'set'

CWD = File.expand_path(File.dirname(__FILE__))

IGNORED_METHODS = %w(
  git_blob_free
  git_blob_lookup
  git_blob_lookup_prefix
  git_commit_create_v
  git_commit_free
  git_commit_id
  git_commit_lookup_prefix
  git_commit_parent_oid
  git_commit_time_offset
  git_commit_tree_oid
  git_config_file__ondisk
  git_config_find_global
  git_config_find_system
  git_diff_list_free
  git_index_entry_stage
  git_indexer_stream_free
  imaxdiv
  git_note_free
  git_object__size
  git_odb_add_alternate
  git_odb_add_backend
  git_odb_backend_loose
  git_odb_backend_pack
  git_odb_new
  git_odb_open_rstream
  git_odb_read_header
  git_odb_read_prefix
  git_odb_write
  git_oid_allocfmt
  git_oid_cpy
  git_oid_ncmp
  git_oid_pathfmt
  git_oid_streq
  git_oid_to_string
  git_packbuilder_free
  git_reference_owner
  git_repository_odb
  git_repository_set_odb
  git_signature_dup
  git_signature_now
{'fraction_non_alphanumeric': 0.01883745963401507, 'fraction_numerical': 0.0, 'mean_word_length': 6.068441064638783, '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': '80374', 'n_tokens_mistral': 757, 'n_tokens_neox': 733, 'n_words': 97}