<commit_before>open Type_desc
open Odoc_model
open Comment
open Paths_desc

let location =
  (* Do not show field names. *)
  let open Location_ in
  let point = Indirect ((fun p -> (p.line, p.column)), Pair (int, int)) in
  Indirect ((fun s -> (s.file, s.start, s.end_)), Triple (string, point, point))

let loc_to_pair x = (x.Location_.location, x.value)

type general_inline_element =
  [ `Space
  | `Word of string
  | `Code_span of string
  | `Raw_markup of raw_markup_target * string
  | `Styled of style * general_inline_element with_location list
  | `Reference of Paths.Reference.t * general_link_content
  | `Link of string * general_link_content ]

and general_link_content = general_inline_element with_location list

type general_block_element =
  [ `Paragraph of general_link_content<commit_msg>odoc_print: Shorter encoding of locations<commit_after>open Type_desc
open Odoc_model
open Comment
open Paths_desc

let location =
  let open Location_ in
  let point () p = Printf.sprintf "%d:%d" p.line p.column in
  To_string
    (fun s -> Printf.sprintf "%s %a %a" s.file point s.start point s.end_)

let loc_to_pair x = (x.Location_.location, x.value)

type general_inline_element =
  [ `Space
  | `Word of string
  | `Code_span of string
  | `Raw_markup of raw_markup_target * string
  | `Styled of style * general_inline_element with_location list
  | `Reference of Paths.Reference.t * general_link_content
  | `Link of string * general_link_content ]

and general_link_content = general_inline_element with_location list

type general_block_element =
  [ `Paragraph of general_link_content
{'fraction_non_alphanumeric': 0.08598130841121496, 'fraction_numerical': 0.0, 'mean_word_length': 4.518900343642612, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '6320421', 'n_tokens_mistral': 530, 'n_tokens_neox': 527, 'n_words': 161}