<commit_before>'use strict';

const accentsRange = '\u00C0-\u00FC';
const allowedCharsInNames = "[A-Za-z" + accentsRange + "'. -]";

const wsgroupsURL = "https://wsgroups.univ-paris1.fr";

export default {
    printCardUrl: undefined, //(login) => `http://unicampus.univ.fr/unicampus/DesktopDefault.aspx?tabindex=1&tabid=2&NomCon=Xxxx&id_vis=${login}`,
    wsgroupsURL,
    base_pathname: '/',
    
    attr_labels: {
        supannCivilite: "Civilité",
        givenName: "Prénom",
        altGivenName: '<NAME>noms',
        sn: "Nom d'usage",
        birthName: "Nom de naissance",
        birthDay: "Date de naissance",
        homePostalAddress: "Adresse personnelle",
        address_lines: "",
        address_line2: "(complément)",
        postalCode: "Code postal",
        town: "Ville",
        country: "Pays",
        homePhone: "Téléphone personnel",
        supannMailPerso: "Email personnel",
        jpegPhoto: "Photo",
        telephoneNumber: 'Tétéphone fixe',
        roomAccess: "Précision du lieu",
        floorNumber: "Étage",
        roomNumber: "Numéro de bureau",
        structureParrain: "SERVICE QUI INVITE : (UFR, Service, Laboratoire...)",
        userPassword: "<PASSWORD>",
        userPassword2: "<PASSWORD>",
        cardChoice: "Carte",
        barcode: "Code barre",
        mifare: "Code Mifare",
        profilename: "Type de compte",
        siret: "Etablissement",
        charter: "Charte",
        duration_or_enddate: "Fin du compte",
        duration: "Durée",
        enddate: "Date de fin",
        eduPersonPrincipalName: "Identifiant dans l'établissement",
        mail: "Mail",
    },

    attrs_description: {
        charter: `Vous acceptez de vous conformer 
            aux chartes informatiques <a target="_blank" href="http://dsiun.univ-paris1.fr/fileadmin/DSI/Chartes/charte_utilisation_ressources_informatiques_et_internet.html">de l'université</a> 
            et <a target="_blank" href="http://www.renater.fr/IMG/pdf/Charte_RENATER_Vjanv2014.pdf" >du réseau RENATER</a>.
            <br>
            Votre compte et son mot de passe associé sont strictement personnels : vous êtes seul responsable de l'usage qui en est fait.`,
    },

    default_attrs_opts: {
        homePhone: { uiType: "phone" },
        telephoneNumber: { uiType: "phone" },
        supannMailPerso: { uiType: "email" },
        givenName: { allowedChars: allowedCharsInNames },
        sn: { allowedChars: allowedCharsInNames },
        birthName: { allowedChars: allowedCharsInNames, labels: { tooltip: "si différent du nom d'usage" } },
        profilename: { uiType: 'radio' },
        charter: { uiType: 'checkbox' },
        birthDay: { uiType: 'date', minYear: '1900', maxYear: new Date().getUTCFullYear() },
        enddate: { uiType: 'date', minYear: new Date().getUTCFullYear() },
        homePostalAddress: { uiType: 'postalAddress' },
        jpegPhoto: { uiType: 'photo' },
        userPassword: { uiType: 'password' },
        structureParrain: { uiType: 'structure' },
        siret: { uiType: 'siret' },
    },

    attrs_order: [
        'supannCivilite', 'givenName', 'altGivenName', 'sn', 'birthName', 'birthDay',
        'homePostalAddress', 'homePhone', 'supannMailPerso',
        'jpegPhoto',
        'structureParrain',
        'duration_or_enddate', 'duration', 'enddate',
        'telephoneNumber', 'roomAccess', 'floorNumber', 'roomNumber',
        'userPassword', 'profilename',
        'siret', 'charter',
    ],

    title: "Gestion de comptes",

    pattern: {
        frenchPhone: "^(\\+33|0)\\s*[1-9](\\s*[0-9]){8}$", // french
        phone: [
            "0\\s*[1-9](\\s*[0-9]){8}", // french<commit_msg>add startdate with uiType date<commit_after>'use strict';

const accentsRange = '\u00C0-\u00FC';
const allowedCharsInNames = "[A-Za-z" + accentsRange + "'. -]";

const wsgroupsURL = "https://wsgroups.univ-paris1.fr";

export default {
    printCardUrl: undefined, //(login) => `http://unicampus.univ.fr/unicampus/DesktopDefault.aspx?tabindex=1&tabid=2&NomCon=Xxxx&id_vis=${login}`,
    wsgroupsURL,
    base_pathname: '/',
    
    attr_labels: {
        supannCivilite: "Civilité",
        givenName: "Prénom",
        altGivenName: 'Autres prénoms',
        sn: "Nom d'usage",
        birthName: "Nom de naissance",
        birthDay: "Date de naissance",
        homePostalAddress: "Adresse personnelle",
        address_lines: "",
        address_line2: "(complément)",
        postalCode: "Code postal",
        town: "Ville",
        country: "Pays",
        homePhone: "Téléphone personnel",
        supannMailPerso: "Email personnel",
        jpegPhoto: "Photo",
        telephoneNumber: 'Tétéphone fixe',
        roomAccess: "Précision du lieu",
        floorNumber: "Étage",
        roomNumber: "Numéro de bureau",
        structureParrain: "SERVICE QUI INVITE : (UFR, Service, Laboratoire...)",
        userPassword: "<PASSWORD>",
        userPassword2: "<PASSWORD> de <PASSWORD>",
        cardChoice: "Carte",
        barcode: "Code barre",
        mifare: "Code Mifare",
        profilename: "Type de compte",
        siret: "Etablissement",
        charter: "Charte",
        duration_or_enddate: "Fin du compte",
        duration: "Durée",
        startdate: "Date de début",
        enddate: "Date de fin",
        eduPersonPrincipalName: "Identifiant dans l'établissement",
        mail: "Mail",
    },

    attrs_description: {
        charter: `Vous acceptez de vous conformer 
            aux chartes informatiques <a target="_blank" href="http://dsiun.univ-paris1.fr/fileadmin/DSI/Chartes/charte_utilisation_ressources_informatiques_et_internet.html">de l'université</a> 
            et <a target="_blank" href="http://www.renater.fr/IMG/pdf/Charte_RENATER_Vjanv2014.pdf" >du réseau RENATER</a>.
            <br>
            Votre compte et son mot de passe associé sont strictement personnels : vous êtes seul responsable de l'usage qui en est fait.`,
    },

    default_attrs_opts: {
        homePhone: { uiType: "phone" },
        telephoneNumber: { uiType: "phone" },
        supannMailPerso: { uiType: "email" },
        givenName: { allowedChars: allowedCharsInNames },
        sn: { allowedChars: allowedCharsInNames },
        birthName: { allowedChars: allowedCharsInNames, labels: { tooltip: "si différent du nom d'usage" } },
        profilename: { uiType: 'radio' },
        charter: { uiType: 'checkbox' },
        birthDay: { uiType: 'date', minYear: '1900', maxYear: new Date().getUTCFullYear() },
        startdate: { uiType: 'date', min: new Date(), minYear: new Date().getUTCFullYear() },
        enddate: { uiType: 'date', min: new Date(), minYear: new Date().getUTCFullYear() },
        homePostalAddress: { uiType: 'postalAddress' },
        jpegPhoto: { uiType: 'photo' },
        userPassword: { uiType: 'password' },
        structureParrain: { uiType: 'structure' },
        siret: { uiType: 'siret' },
    },

    attrs_order: [
        'supannCivilite', 'givenName', 'altGivenName', 'sn', 'birthName', 'birthDay',
        'homePostalAddress', 'homePhone', 'supannMailPerso',
        'jpegPhoto',
        'structureParrain',
        'startdate', 'duration_or_enddate', 'duration', 'enddate',
        'telephoneNumber', 'roomAccess', 'floorNumber', 'roomNumber',
        'userPassword', '<PASSWORD>filename',
        'siret', 'charter',
    ],

    title: "Gestion de comptes",

    pattern: {
        frenchPhone: "^(\\+33|0)\\s*[1-9](\\s*[0-9]){8}$", // french
        phone: [
            "0\\s*[1-9](\\s*[0-9]){8}", // french
{'fraction_non_alphanumeric': 0.14825119236883944, 'fraction_numerical': 0.008744038155802861, 'mean_word_length': 2.7858575727181543, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 22, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2296620', 'n_tokens_mistral': 2554, 'n_tokens_neox': 2457, 'n_words': 529}