<commit_before>
(* Canonical color form. Most precise. Between 0 and 1 *)
type rgbf = (float * float * float)

(* between 0 and 255 *)
type rgb = (int * int * int)
(* as in graphics.ml *)
type color = int
(* emacs color names *)
type emacs_color = string


(* xxx_of_rgbf *)
val rgb_of_rgbf: rgbf -> rgb
val color_of_rgbf: rgbf -> color

(* rgbf_of_xxx *)
val rgbf_of_string: emacs_color -> rgbf
val rgbf_of_rgb: rgb -> rgbf
val rgbf_of_color: color -> rgbf

val rainbow_array: rgbf array
val rainbow_color: int -> rgbf


(* extra converters *)
val rgb_of_string: string -> rgb
val color_of_string: string -> color
val color_of_rgb: rgb -> color
val rgb_of_color: color -> rgb

(* find closest emacs color name *)
val string_of_color: color -> emacs_color

(* alias for Graphics.rgb *)
val rgb: int -> int -> int -> color

val unrgb: color -> rgb

(* shortcut *)
val c: string -> color

val black : color
val white : color<commit_msg>simple_color: added emacs_colors to interface<commit_after>
(* Canonical color form. Most precise. Between 0 and 1 *)
type rgbf = (float * float * float)

(* between 0 and 255 *)
type rgb = (int * int * int)
(* as in graphics.ml *)
type color = int
(* emacs color names *)
type emacs_color = string


(* xxx_of_rgbf *)
val rgb_of_rgbf: rgbf -> rgb
val color_of_rgbf: rgbf -> color

(* rgbf_of_xxx *)
val rgbf_of_string: emacs_color -> rgbf
val rgbf_of_rgb: rgb -> rgbf
val rgbf_of_color: color -> rgbf

val rainbow_array: rgbf array
val rainbow_color: int -> rgbf

val emacs_colors: (emacs_color * rgbf) list

(* extra converters *)
val rgb_of_string: string -> rgb
val color_of_string: string -> color
val color_of_rgb: rgb -> color
val rgb_of_color: color -> rgb

(* find closest emacs color name *)
val string_of_color: color -> emacs_color

(* alias for Graphics.rgb *)
val rgb: int -> int -> int -> color

val unrgb: color -> rgb

(* shortcut *)
val c: string -> color

val black : color
val white : color
{'fraction_non_alphanumeric': 0.11368312757201646, 'fraction_numerical': 0.006172839506172839, 'mean_word_length': 3.87468671679198, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 35, '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': '1426317', 'n_tokens_mistral': 735, 'n_tokens_neox': 662, 'n_words': 242}