<commit_before><?xml version="1.0" encoding="utf-8"?>
<layout 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">

    <data>
        <variable name="viewModel" type="com.marverenic.music.viewmodel.AlbumViewModel" />
    </data>

    <android.support.constraint.ConstraintLayout
        android:id="@+id/album_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@{viewModel.backgroundColor}"
        android:foreground="?android:attr/selectableItemBackground"
        android:onClick="@{viewModel.onClickAlbum()}"
        tools:background="@color/grid_background_default">

        <ImageView
            android:id="@+id/album_art"
            android:layout_width="0dp"
            android:layout_height="0dp"
            android:contentDescription="@string/description_album_art"
            android:background="@android:color/black"
            android:src="@{viewModel.artistImage}"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            app:srcCompat="@drawable/art_default"
            app:layout_constraintDimensionRatio="h,1:1"/>

        <TextView
            android:id="@+id/album_title"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:text="@{viewModel.albumTitle}"
            style="@style/gridTitleText"
            android:textColor="@{viewModel.titleTextColor}"
            android:ellipsize="end"
            android:maxLines="1"
            android:paddingTop="@dimen/grid_padding"
            android:paddingLeft="@dimen/grid_padding"
            android:paddingStart="@dimen/grid_padding"
            android:paddingRight="0dp"
            android:paddingEnd="0dp"
            tools:text="Album Name"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/album_art"
            app:layout_constraintRight_toLeftOf="@+id/album_menu"/>

        <TextView
            android:id="@+id/album_detail"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            style="@style/gridDetailText"
            android:textColor="@{viewModel.artistTextColor}"
            android:text="@{viewModel.albumArtist}"
            android:ellipsize="end"
            android:maxLines="1"
            android:paddingBottom="@dimen/grid_padding"
            android:paddingLeft="@dimen/grid_padding"
            android:paddingStart="@dimen/grid_padding"
            android:paddingRight="0dp"
            android:paddingEnd="0dp"
            tools:text="Artist Name"
            app:layout_constraintTop_toBottomOf="@+id/album_title"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintRight_toLeftOf="@+id/album_menu"/>

        <ImageView
            android:id="@+id/album_menu"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/ic_menu_24dp"
            android:padding="@dimen/grid_padding"
            android:background="?selectableItemBackgroundBorderless"
            android:onClick="@{viewModel.onClickMenu()}"
            app:layout_constraintRight_toRightOf="parent"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/album_art"/>

    </android.support.constraint.ConstraintLayout>

</layout><commit_msg>Fix album touch effect not appearing on pre-L devices<commit_after><?xml version="1.0" encoding="utf-8"?>
<layout 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">

    <data>
        <variable name="viewModel" type="com.marverenic.music.viewmodel.AlbumViewModel" />
    </data>

    <FrameLayout
        android:id="@+id/album_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@{viewModel.backgroundColor}"
        android:foreground="?android:attr/selectableItemBackground"
        android:onClick="@{viewModel.onClickAlbum()}"
        tools:background="@color/grid_background_default">

        <android.support.constraint.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <ImageView
                android:id="@+id/album_art"
                android:layout_width="0dp"
                android:layout_height="0dp"
                android:contentDescription="@string/description_album_art"
                android:background="@android:color/black"
                android:src="@{viewModel.artistImage}"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintRight_toRightOf="parent"
                app:layout_constraintTop_toTopOf="parent"
                app:srcCompat="@drawable/art_default"
                app:layout_constraintDimensionRatio="h,1:1"/>

            <TextView
                android:id="@+id/album_title"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:text="@{viewModel.albumTitle}"
                style="@style/gridTitleText"
                android:textColor="@{viewModel.titleTextColor}"
                android:ellipsize="end"
                android:maxLines="1"
                android:paddingTop="@dimen/grid_padding"
                android:paddingLeft="@dimen/grid_padding"
                android:paddingStart="@dimen/grid_padding"
                android:paddingRight="0dp"
                android:paddingEnd="0dp"
                tools:text="Album Name"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/album_art"
                app:layout_constraintRight_toLeftOf="@+id/album_menu"/>

            <TextView
                android:id="@+id/album_detail"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                style="@style/gridDetailText"
                android:textColor="@{viewModel.artistTextColor}"
                android:text="@{viewModel.albumArtist}"
                android:ellipsize="end"
                android:maxLines="1"
                android:paddingBottom="@dimen/grid_padding"
                android:paddingLeft="@dimen/grid_padding"
                android:paddingStart="@dimen/grid_padding"
                android:paddingRight="0dp"
                android:paddingEnd="0dp"
                tools:text="Artist Name"
                app:layout_constraintTop_toBottomOf="@+id/album_title"
                app:layout_constraintLeft_toLeftOf="parent"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintRight_toLeftOf="@+id/album_menu"/>

            <ImageView
                android:id="@+id/album_menu"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/ic_menu_24dp"
                android:padding="@dimen/grid_padding"
                android:background="?selectableItemBackgroundBorderless"
                android:onClick="@{viewModel.onClickMenu()}"
                app:layout_constraintRight_toRightOf="parent"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/album_art"/>

        </android.support.constraint.ConstraintLayout>

    </FrameLayout>

</layout>
{'fraction_non_alphanumeric': 0.11497461928934011, 'fraction_numerical': 0.004314720812182741, 'mean_word_length': 2.5676776822091445, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 2, '>': 29, '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': '2638502', 'n_tokens_mistral': 2217, 'n_tokens_neox': 2032, 'n_words': 179}