<commit_before>(*

  Simple example showing how to create and use a Git store.

  $ make                               # Compile
  $ ./views                            # Run
  $ cd /tmp/irmin/test && git log      # Show the Git history

*)

open Lwt
open Irmin_unix

(* Enable debug outputs if DEBUG is set *)
let () =
  try match Sys.getenv "DEBUG" with
    | "" -> ()
    | _  ->
      Log.color_on ();
      Log.set_log_level Log.DEBUG
  with Not_found -> ()

module Store = Irmin.Basic (Irmin_git.FS) (Irmin.Contents.String)
module View = Irmin.View(Store)

let fmt t x = Printf.ksprintf (fun str -> t str) x

type t1 = int<commit_msg>Update the view example<commit_after>open Lwt
open Irmin_unix

module Store = Irmin.Basic (Irmin_git.FS) (Irmin.Contents.String)
module View = Irmin.View(Store)

let fmt t x = Printf.ksprintf (fun str -> t str) x

type t1 = int
{'fraction_non_alphanumeric': 0.10854503464203233, 'fraction_numerical': 0.0023094688221709007, 'mean_word_length': 2.3474903474903477, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1499998', 'n_tokens_mistral': 294, 'n_tokens_neox': 300, 'n_words': 94}