<commit_before>module Configurator = Configurator.V1

let () =
  begin match Sys.getenv_opt "DUNE_CONFIGURATOR" with
  | None -> failwith "DUNE_CONFIGURATOR is not passed"
  | Some _ -> print_endline "DUNE_CONFIGURATOR is present"
  end;
  Configurator.main ~name:"config" (fun t ->
    match Configurator.ocaml_config_var t "version" with
    | None -> failwith "version is absent"
    | Some _ -> print_endline "version is present"
  )<commit_msg>Don't use getenv_opt in configurator test<commit_after>module Configurator = Configurator.V1

let () =
  begin match Sys.getenv "DUNE_CONFIGURATOR" with
  | exception Not_found -> failwith "DUNE_CONFIGURATOR is not passed"
  | _ -> print_endline "DUNE_CONFIGURATOR is present"
  end;
  Configurator.main ~name:"config" (fun t ->
    match Configurator.ocaml_config_var t "version" with
    | None -> failwith "version is absent"
    | Some _ -> print_endline "version is present"
  )
{'fraction_non_alphanumeric': 0.09549356223175966, 'fraction_numerical': 0.002145922746781116, 'mean_word_length': 4.126373626373627, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '5322686', 'n_tokens_mistral': 319, 'n_tokens_neox': 314, 'n_words': 85}