<commit_before>open Stdune

type t =
  | Not_supported
  | Zero_terminated_strings of string

let registry = Hashtbl.create 128

let get ~prog =
  Option.value (Hashtbl.find registry prog) ~default:Not_supported

let set ~prog t =
  Hashtbl.set registry prog t<commit_msg>[refactor] replace poly table in response_file<commit_after>open Stdune

type t =
  | Not_supported
  | Zero_terminated_strings of string

let registry = Table.create (module Path) 128

let get ~prog =
  Option.value (Table.find registry prog) ~default:Not_supported

let set ~prog t =
  Table.set registry prog t
{'fraction_non_alphanumeric': 0.07179487179487179, 'fraction_numerical': 0.010256410256410256, 'mean_word_length': 4.528301886792453, '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': '2717718', 'n_tokens_mistral': 203, 'n_tokens_neox': 187, 'n_words': 62}