<commit_before><?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="?attr/mainBackground"
    >

    <ImageView
        android:id="@+id/mediaDetailImageFailed"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:layout_gravity="center"
        android:src="@android:drawable/ic_menu_close_clear_cancel"
        android:visibility="gone"
        android:contentDescription="@string/mediaimage_failed"
        />

    <fr.free.nrw.commons.MediaWikiImageView
        android:id="@+id/mediaDetailImage"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:actualImageScaleType="fitCenter"
        />

    <ScrollView
        android:id="@+id/mediaDetailScrollView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@android:color/transparent"
        android:cacheColorHint="@android:color/transparent"
        android:fillViewport="true">

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

            <!-- Placeholder. Height gets set at runtime based on container size; the initial value is a hack to keep
                 the detail info offscreen until it's placed properly. May be a better way to do this. -->
            <fr.free.nrw.commons.media.MediaDetailSpacer
                android:id="@+id/mediaDetailSpacer"
                android:layout_width="match_parent"
                android:layout_height="@dimen/standard_gap" />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?attr/fragmentCategorisationBackground"
                android:orientation="vertical"
                android:padding="@dimen/standard_gap">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:background="?attr/subBackground"
                    android:orientation="vertical"
                    android:padding="@dimen/standard_gap">

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:paddingBottom="@dimen/tiny_gap"
                        android:text="@string/media_detail_title"
                        android:textColor="@android:color/white"
                        android:textSize="@dimen/normal_text"
                        android:textStyle="bold" />

                    <TextView
                        android:id="@+id/mediaDetailTitle"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_gravity="start"
                        android:background="?attr/subBackground"
                        android:padding="@dimen/small_gap"
                        android:text="@string/media_detail_media_title"
                        android:textColor="@android:color/white"
                        android:textSize="@dimen/description_text_size" />
                </LinearLayout>

                <fr.free.nrw.commons.media.MediaDetailSpacer
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/small_gap" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:background="?attr/subBackground"
                    android:orientation="vertical"
                    android:padding="@dimen/standard_gap">

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:paddingBottom="@dimen/tiny_gap"
                        android:text="@string/media_detail_description"<commit_msg>Add author field to Media Detail Fragment layout<commit_after><?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="?attr/mainBackground"
    >

    <ImageView
        android:id="@+id/mediaDetailImageFailed"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:layout_gravity="center"
        android:src="@android:drawable/ic_menu_close_clear_cancel"
        android:visibility="gone"
        android:contentDescription="@string/mediaimage_failed"
        />

    <fr.free.nrw.commons.MediaWikiImageView
        android:id="@+id/mediaDetailImage"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:actualImageScaleType="fitCenter"
        />

    <ScrollView
        android:id="@+id/mediaDetailScrollView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@android:color/transparent"
        android:cacheColorHint="@android:color/transparent"
        android:fillViewport="true">

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

            <!-- Placeholder. Height gets set at runtime based on container size; the initial value is a hack to keep
                 the detail info offscreen until it's placed properly. May be a better way to do this. -->
            <fr.free.nrw.commons.media.MediaDetailSpacer
                android:id="@+id/mediaDetailSpacer"
                android:layout_width="match_parent"
                android:layout_height="@dimen/standard_gap" />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="?attr/fragmentCategorisationBackground"
                android:orientation="vertical"
                android:padding="@dimen/standard_gap">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:background="?attr/subBackground"
                    android:orientation="vertical"
                    android:padding="@dimen/standard_gap">

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:paddingBottom="@dimen/tiny_gap"
                        android:text="@string/media_detail_title"
                        android:textColor="@android:color/white"
                        android:textSize="@dimen/normal_text"
                        android:textStyle="bold" />

                    <TextView
                        android:id="@+id/mediaDetailTitle"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_gravity="start"
                        android:background="?attr/subBackground"
                        android:padding="@dimen/small_gap"
                        android:text="@string/media_detail_media_title"
                        android:textColor="@android:color/white"
                        android:textSize="@dimen/description_text_size" />
                </LinearLayout>

                <fr.free.nrw.commons.media.MediaDetailSpacer
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/small_gap" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:id="@+id/authorLinearLayout"
                    android:background="?attr/subBackground"
                    android:orientation="vertical"
                    android:padding="@dimen/standard_gap">

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:paddingBottom="@dimen/tiny_gap"
                        android:text="@string/media_detail_author"
                        android:textColor="@android:color/white"
                        android:textSize="@dimen/normal_text"
                        android:textStyle="bold" />

                    <TextView
                        android:id="@+id/mediaDetailAuthor"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_gravity="start"
                        android:background="?attr/subBackground"
                        android:padding="@dimen/small_gap"
                        android:text="@string/media_detail_author_explanation"
                        android:textColor="@android:color/white"
                        android:textSize="@dimen/description_text_size" />
                </LinearLayout>

                <fr.free.nrw.commons.media.MediaDetailSpacer
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/small_gap" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:background="?attr/subBackground"
                    android:orientation="vertical"
                    android:padding="@dimen/standard_gap">

                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:paddingBottom="@dimen/tiny_gap"
                        android:text="@string/media_detail_description"
{'fraction_non_alphanumeric': 0.09581008228506574, 'fraction_numerical': 0.0005674832119549796, 'mean_word_length': 1.8946071721872433, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 2, '>': 38, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '5210258', 'n_tokens_mistral': 2689, 'n_tokens_neox': 2364, 'n_words': 271}