<commit_before><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:id="@+id/saveRel">


    <ImageView
        android:id="@+id/imgSaveProduct"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_centerVertical="true"
        android:layout_alignParentStart="true"
        android:layout_margin="@dimen/spacing_normal" />



    <TextView
        android:id="@+id/offlineBrand"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@id/titleSave"
        android:layout_below="@+id/titleSave"
        android:layout_toLeftOf="@+id/iconSave"
        android:layout_toRightOf="@id/imgSaveProduct"
        android:gravity="center_vertical"
        android:paddingRight="40dp"
        android:textSize="@dimen/font_normal"
        android:layout_alignStart="@id/barcodeSave"
        android:layout_toStartOf="@+id/iconSave"
        android:layout_toEndOf="@id/imgSaveProduct"
        android:paddingEnd="40dp" />

    <TextView
        android:id="@+id/offlineWeight"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@id/offlineBrand"
        android:layout_below="@+id/offlineBrand"
        android:layout_toLeftOf="@+id/iconSave"
        android:layout_toRightOf="@id/imgSaveProduct"
        android:gravity="center_vertical"
        android:paddingRight="40dp"
        android:textSize="@dimen/font_normal"
        android:layout_alignStart="@id/offlineWeight"
        android:layout_toStartOf="@+id/iconSave"
        android:layout_toEndOf="@id/imgSaveProduct"
        android:paddingEnd="40dp" />

    <TextView

        android:id="@+id/barcodeSave"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@id/offlineWeight"
        android:layout_below="@+id/offlineWeight"
        android:layout_toLeftOf="@+id/iconSave"
        android:layout_toRightOf="@id/imgSaveProduct"
        android:gravity="center_vertical"
        android:paddingRight="40dp"
        android:textSize="@dimen/font_normal"
        android:layout_alignStart="@id/titleSave"
        android:layout_toStartOf="@+id/iconSave"
        android:layout_toEndOf="@id/imgSaveProduct"
        android:paddingEnd="40dp" />

    <TextView
        android:id="@+id/titleSave"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_toRightOf="@id/imgSaveProduct"
        android:layout_alignTop="@+id/imgSaveProduct"
        android:layout_toLeftOf="@+id/iconSave"
        android:textSize="@dimen/font_normal"
        android:paddingRight="40dp"
        android:gravity="center_vertical"
        android:layout_toEndOf="@id/imgSaveProduct"
        android:layout_toStartOf="@+id/iconSave"
        android:paddingEnd="40dp" />


    <ImageView
        android:id="@+id/iconSave"
        android:layout_width="25dp"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_margin="@dimen/spacing_normal"
        android:layout_marginLeft="12dp"
        android:layout_marginRight="12dp"
        android:layout_centerVertical="true"
        android:layout_alignParentEnd="true" />


</RelativeLayout><commit_msg>fixes #1129 App crashes on launching offlineEditFragment when it contains items. (#1130)<commit_after><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/saveRel"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:weightSum="100">


    <ImageView
        android:id="@+id/imgSaveProduct"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_margin="@dimen/spacing_small"
        android:layout_weight="20" />

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="70"
        android:orientation="vertical">

        <TextView
            android:id="@+id/titleSave"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center_vertical"
            android:paddingRight="@dimen/padding_large"
            android:textSize="@dimen/font_normal" />


        <TextView
            android:id="@+id/offlineBrand"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center_vertical"
            android:paddingRight="@dimen/padding_large"
            android:textSize="@dimen/font_normal" />

        <TextView
            android:id="@+id/offlineWeight"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center_vertical"
            android:paddingRight="@dimen/padding_large"
            android:textSize="@dimen/font_normal" />

        <TextView
            android:id="@+id/barcodeSave"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center_vertical"
            android:paddingRight="@dimen/padding_large"
            android:textSize="@dimen/font_normal" />


    </LinearLayout>


    <ImageView
        android:id="@+id/iconSave"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"

        android:layout_gravity="center_vertical"
        android:layout_margin="@dimen/spacing_normal"
        android:layout_marginLeft="@dimen/spacing_small"
        android:layout_marginRight="@dimen/spacing_small"
        android:layout_weight="10" />


</LinearLayout>
{'fraction_non_alphanumeric': 0.12005277044854881, 'fraction_numerical': 0.007420844327176781, 'mean_word_length': 3.410909090909091, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 2, '>': 23, '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': '4320962', 'n_tokens_mistral': 1853, 'n_tokens_neox': 1661, 'n_words': 155}