<commit_before>"""
   Spécification du schéma toml des paramètres de configurations
"""

from marshmallow import Schema, fields

#
DEFAULT_COLUMNS_API_VALIDATION = [
    "validation_auto",
    "id_nomenclature_valid_status",
    "id_synthese",
    "date_min",
    "observers",
    "nom_valide",
    "dataset_name",
    "validation_date",
]

# Colonnes renvoyees par l'API synthese qui sont obligatoires pour que les fonctionnalités
#  front fonctionnent
MANDATORY_COLUMNS = [
    "entity_source_pk_value",
    "url_source",
    "cd_nom",
    "meta_update_date",
    "cd_nomenclature_validation_status",
    "mnemonique",
    "label_default",
    "unique_id_sinp",
]

# CONFIG MAP-LIST
DEFAULT_LIST_COLUMN = [
    {"prop": "id_nomenclature_valid_status", "name": "", "max_width": 40},
    {"prop": "nom_vern_or_lb_nom", "name": "Taxon", "min_width": 150},
    {"prop": "date_min", "name": "Date obs.", "min_width": 100},
    {"prop": "dataset_name", "name": "Jeu de donnees", "min_width": 100},
    {"prop": "observers", "name": "Observateur", "min_width": 100},
]

# cd_nomenclature_valid_status used for validation module only use for color style
STATUS_INFO = {
    "0": {"cat": "notassessed", "color": "#FFFFFF"},  #  en attente de validation<commit_msg>Changement de la taille de la colonne taxon par défaut pour qu'elle soit la large possible<commit_after>"""
   Spécification du schéma toml des paramètres de configurations
"""

from marshmallow import Schema, fields

#
DEFAULT_COLUMNS_API_VALIDATION = [
    "validation_auto",
    "id_nomenclature_valid_status",
    "id_synthese",
    "date_min",
    "observers",
    "nom_valide",
    "dataset_name",
    "validation_date",
]

# Colonnes renvoyees par l'API synthese qui sont obligatoires pour que les fonctionnalités
#  front fonctionnent
MANDATORY_COLUMNS = [
    "entity_source_pk_value",
    "url_source",
    "cd_nom",
    "meta_update_date",
    "cd_nomenclature_validation_status",
    "mnemonique",
    "label_default",
    "unique_id_sinp",
]

# CONFIG MAP-LIST
DEFAULT_LIST_COLUMN = [
    {"prop": "id_nomenclature_valid_status", "name": "", "max_width": 40},
    {"prop": "nom_vern_or_lb_nom", "name": "Taxon", "min_width": 250},
    {"prop": "date_min", "name": "Date obs.", "min_width": 100},
    {"prop": "dataset_name", "name": "Jeu de donnees", "min_width": 100},
    {"prop": "observers", "name": "Observateur", "min_width": 100},
]

# cd_nomenclature_valid_status used for validation module only use for color style
STATUS_INFO = {
    "0": {"cat": "notassessed", "color": "#FFFFFF"},  #  en attente de validation
{'fraction_non_alphanumeric': 0.14395986105750674, 'fraction_numerical': 0.011578541103820918, 'mean_word_length': 4.684210526315789, 'pattern_counts': {'":': 36, '<': 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': '4329023', 'n_tokens_mistral': 950, 'n_tokens_neox': 907, 'n_words': 216}