<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:id="@+id/layout_root"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:animateLayoutChanges="true"
    tools:context="com.battlelancer.seriesguide.ui.OverviewFragment">

    <ImageView
        android:id="@+id/background"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:contentDescription="@null"
        android:scaleType="centerCrop" />

    <!-- Enable nested scrolling for Lollipop and up to scroll app bar. -->
    <ScrollView
        android:id="@+id/scrollViewOverview"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:nestedScrollingEnabled="true"
        tools:ignore="UnusedAttribute">

        <!-- Set focus to work around textIsSelectable auto-scroll -->
        <LinearLayout
            android:id="@+id/overview_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:descendantFocusability="beforeDescendants"
            android:focusable="true"
            android:focusableInTouchMode="true"
            android:orientation="vertical"
            android:paddingTop="@dimen/default_padding">

            <LinearLayout
                android:id="@+id/containerOverviewShow"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal">

                <RelativeLayout
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="@dimen/large_padding"
                    android:layout_marginRight="@dimen/default_padding"
                    android:layout_marginTop="@dimen/default_padding"
                    android:layout_weight="1"
                    android:focusable="true"
                    android:nextFocusDown="@+id/checkinButton"
                    tools:ignore="RtlHardcoded">

                    <TextView
                        android:id="@+id/showStatus"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_alignParentLeft="true"
                        android:textAppearance="@style/TextAppearance.Body"
                        tools:text="@string/show_isalive" />

                    <TextView
                        android:id="@+id/showmeta"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/showStatus"
                        android:textAppearance="@style/TextAppearance.Body"
                        android:textIsSelectable="true"
                        tools:text="Tue 5:00 AM on CBS" />
                </RelativeLayout>

                <ImageButton
                    android:id="@+id/imageButtonFavorite"
                    style="?attr/borderlessButtonStyle"
                    android:layout_width="72dp"
                    android:layout_height="wrap_content"
                    android:background="?attr/selectableItemBackgroundBorderless"
                    android:contentDescription="@null"
                    android:src="?attr/drawableStar0" />

            </LinearLayout>

            <ViewStub
                android:id="@+id/viewStubOverviewFeedback"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:inflatedId="@+id/feedbackViewOverview"
                android:layout="@layout/feedback_view" />

            <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <include
                    android:id="@+id/progress_container"
                    layout="@layout/progress_container"
                    android:layout_width="match_parent"
                    android:layout_height="120dp"
                    android:visibility="visible" />

                <LinearLayout
                    android:id="@+id/containerOverviewEpisode"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="vertical">

                    <android.support.v7.widget.CardView
                        android:id="@+id/episode_primary_container"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginBottom="@dimen/inline_padding"
                        android:layout_marginLeft="@dimen/large_padding"
                        android:layout_marginRight="@dimen/large_padding"
                        android:layout_marginTop="@dimen/default_padding"
                        android:foreground="?attr/selectableItemBackground"
                        app:cardBackgroundColor="?attr/sgColorBackgroundCard"
                        app:cardPreventCornerOverlap="false">

                        <!-- Fake card fade: ensure that bottom of image and text box match -->
                        <android.support.percent.PercentFrameLayout
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:layout_marginBottom="4dp">

                            <!--suppress AndroidDomInspection -->
                            <ImageView
                                android:id="@+id/imageViewOverviewEpisode"
                                android:contentDescription="@null"
                                android:scaleType="centerCrop"
                                app:layout_aspectRatio="178%"
                                app:layout_widthPercent="100%" />

                        </android.support.percent.PercentFrameLayout>

                        <RelativeLayout
                            android:layout_width="match_parent"<commit_msg>Replace percent with constraint layout in fragment_overview.<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:id="@+id/layout_root"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:animateLayoutChanges="true"
    tools:context="com.battlelancer.seriesguide.ui.OverviewFragment">

    <ImageView
        android:id="@+id/background"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:contentDescription="@null"
        android:scaleType="centerCrop" />

    <!-- Enable nested scrolling for Lollipop and up to scroll app bar. -->
    <ScrollView
        android:id="@+id/scrollViewOverview"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:nestedScrollingEnabled="true"
        tools:ignore="UnusedAttribute">

        <!-- Set focus to work around textIsSelectable auto-scroll -->
        <LinearLayout
            android:id="@+id/overview_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:descendantFocusability="beforeDescendants"
            android:focusable="true"
            android:focusableInTouchMode="true"
            android:orientation="vertical"
            android:paddingTop="@dimen/default_padding">

            <LinearLayout
                android:id="@+id/containerOverviewShow"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal">

                <RelativeLayout
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="@dimen/large_padding"
                    android:layout_marginRight="@dimen/default_padding"
                    android:layout_marginTop="@dimen/default_padding"
                    android:layout_weight="1"
                    android:focusable="true"
                    android:nextFocusDown="@+id/checkinButton"
                    tools:ignore="RtlHardcoded">

                    <TextView
                        android:id="@+id/showStatus"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_alignParentLeft="true"
                        android:textAppearance="@style/TextAppearance.Body"
                        tools:text="@string/show_isalive" />

                    <TextView
                        android:id="@+id/showmeta"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/showStatus"
                        android:textAppearance="@style/TextAppearance.Body"
                        android:textIsSelectable="true"
                        tools:text="Tue 5:00 AM on CBS" />
                </RelativeLayout>

                <ImageButton
                    android:id="@+id/imageButtonFavorite"
                    style="?attr/borderlessButtonStyle"
                    android:layout_width="72dp"
                    android:layout_height="wrap_content"
                    android:background="?attr/selectableItemBackgroundBorderless"
                    android:contentDescription="@null"
                    android:src="?attr/drawableStar0" />

            </LinearLayout>

            <ViewStub
                android:id="@+id/viewStubOverviewFeedback"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:inflatedId="@+id/feedbackViewOverview"
                android:layout="@layout/feedback_view" />

            <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <include
                    android:id="@+id/progress_container"
                    layout="@layout/progress_container"
                    android:layout_width="match_parent"
                    android:layout_height="120dp"
                    android:visibility="visible" />

                <LinearLayout
                    android:id="@+id/containerOverviewEpisode"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="vertical">

                    <android.support.v7.widget.CardView
                        android:id="@+id/episode_primary_container"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginBottom="@dimen/inline_padding"
                        android:layout_marginLeft="@dimen/large_padding"
                        android:layout_marginRight="@dimen/large_padding"
                        android:layout_marginTop="@dimen/default_padding"
                        android:foreground="?attr/selectableItemBackground"
                        app:cardBackgroundColor="?attr/sgColorBackgroundCard"
                        app:cardPreventCornerOverlap="false">

                        <!-- Fake card fade: ensure that bottom of image and text box match -->
                        <android.support.constraint.ConstraintLayout
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:layout_marginBottom="4dp">

                            <ImageView
                                android:id="@+id/imageViewOverviewEpisode"
                                android:layout_width="0dp"
                                android:layout_height="0dp"
                                android:contentDescription="@null"
                                android:scaleType="centerCrop"
                                app:layout_constraintBottom_toBottomOf="parent"
                                app:layout_constraintDimensionRatio="w,16:9"
                                app:layout_constraintLeft_toLeftOf="parent"
                                app:layout_constraintRight_toRightOf="parent"
                                app:layout_constraintTop_toTopOf="parent" />

                        </android.support.constraint.ConstraintLayout>

                        <RelativeLayout
                            android:layout_width="match_parent"
{'fraction_non_alphanumeric': 0.09192073170731707, 'fraction_numerical': 0.0032774390243902438, 'mean_word_length': 1.706476897689769, 'pattern_counts': {'":': 0, '<': 52, '<?xml version=': 2, '>': 50, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4259422', 'n_tokens_mistral': 3234, 'n_tokens_neox': 2855, 'n_words': 314}