<commit_before><?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android">

    <PreferenceCategory
        android:title="@string/settings_profile">

        <EditTextPreference
            android:title="@string/settings_name"
            android:key="name"
            android:summary="@string/settings_name_summary" />

        <ListPreference
            android:title="@string/settings_sex"
            android:key="sex"
            android:summary="@string/settings_sex_summary"
            android:defaultValue="unknown"
            android:entries="@array/listArraySex"
            android:entryValues="@array/listValuesSex" />

        <ListPreference
            android:title="@string/settings_class"
            android:summary="@string/settings_class_summary"
            android:key="class"
            android:defaultValue="unknown"
            android:entries="@array/listArrayClass"
            android:entryValues="@array/listValuesClass" />

        <EditTextPreference
            android:title="@string/settings_mail"
            android:key="email"
            android:summary="@string/settings_mail_summary" />

        <EditTextPreference
            android:title="@string/settings_description"
            android:key="description"
            android:summary="@string/settings_description_summary" />
    </PreferenceCategory>

    <PreferenceCategory
        android:title="@string/settings_amicaliste">

        <PreferenceScreen
            android:key="carteAmicaliste"
            android:title="Ajouter votre carte amicaliste"
            android:persistent="false">

            <EditTextPreference
                android:title="Code barre"
                android:key="barcode"
                android:maxLength="9"
                android:summary="Numero code barre" />

            <PreferenceScreen
                android:key="key"
                android:title="Camera"
                android:summary="Scanner votre code barre avec la caméra">
                <intent android:targetPackage="fr.insapp.insapp"
                    android:targetClass="fr.insapp.insapp.BarcodeDetectorActivity" />
            </PreferenceScreen>

        </PreferenceScreen>

    </PreferenceCategory>

    <PreferenceCategory
        android:title="@string/settings_options">

        <CheckBoxPreference
            android:title="@string/settings_notifications"
            android:defaultValue="true"
            android:summary="@string/settings_notifications_summary"
            android:key="notifications" />

        <CheckBoxPreference
            android:title="@string/settings_calendar"
            android:defaultValue="true"
            android:summary="@string/settings_calendar_summary"
            android:key="calendar" />
    </PreferenceCategory>

</PreferenceScreen><commit_msg>We allow only numbers in barcode editText<commit_after><?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android">

    <PreferenceCategory
        android:title="@string/settings_profile">

        <EditTextPreference
            android:title="@string/settings_name"
            android:key="name"
            android:summary="@string/settings_name_summary" />

        <ListPreference
            android:title="@string/settings_sex"
            android:key="sex"
            android:summary="@string/settings_sex_summary"
            android:defaultValue="unknown"
            android:entries="@array/listArraySex"
            android:entryValues="@array/listValuesSex" />

        <ListPreference
            android:title="@string/settings_class"
            android:summary="@string/settings_class_summary"
            android:key="class"
            android:defaultValue="unknown"
            android:entries="@array/listArrayClass"
            android:entryValues="@array/listValuesClass" />

        <EditTextPreference
            android:title="@string/settings_mail"
            android:key="email"
            android:summary="@string/settings_mail_summary" />

        <EditTextPreference
            android:title="@string/settings_description"
            android:key="description"
            android:summary="@string/settings_description_summary" />
    </PreferenceCategory>

    <PreferenceCategory
        android:title="@string/settings_amicaliste">

        <PreferenceScreen
            android:key="carteAmicaliste"
            android:title="Ajouter votre carte amicaliste"
            android:persistent="false">

            <EditTextPreference
                android:title="Code barre"
                android:key="barcode"
                android:maxLength="9"
                android:inputType="number"
                android:summary="Numero code barre" />

            <PreferenceScreen
                android:key="key"
                android:title="Camera"
                android:summary="Scanner votre code barre avec la caméra">
                <intent android:targetPackage="fr.insapp.insapp"
                    android:targetClass="fr.insapp.insapp.BarcodeDetectorActivity" />
            </PreferenceScreen>

        </PreferenceScreen>

    </PreferenceCategory>

    <PreferenceCategory
        android:title="@string/settings_options">

        <CheckBoxPreference
            android:title="@string/settings_notifications"
            android:defaultValue="true"
            android:summary="@string/settings_notifications_summary"
            android:key="notifications" />

        <CheckBoxPreference
            android:title="@string/settings_calendar"
            android:defaultValue="true"
            android:summary="@string/settings_calendar_summary"
            android:key="calendar" />
    </PreferenceCategory>

</PreferenceScreen>
{'fraction_non_alphanumeric': 0.10580380071905496, 'fraction_numerical': 0.001369628488272556, 'mean_word_length': 2.40046565774156, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 2, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '3294131', 'n_tokens_mistral': 1512, 'n_tokens_neox': 1412, 'n_words': 168}