<commit_before><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:tools="http://schemas.android.com/tools"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@color/background"
                tools:context="com.github.triplesolitaire.TripleSolitaireActivity">

    <TextView
        android:id="@+id/title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="8dp"
        android:layout_marginTop="24dp"
        android:fontFamily="serif"
        android:text="@string/app_name"
        android:textSize="72sp"/>

    <ImageView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/title"
        android:layout_centerHorizontal="true"
        android:adjustViewBounds="true"
        android:padding="8dp"
        android:scaleType="centerInside"
        android:src="@drawable/title"/>

    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:fitsSystemWindows="true">

        <ViewFlipper
            android:id="@+id/google_play_games"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_alignParentLeft="true"
            android:layout_margin="8dp"
            android:measureAllChildren="true"
            android:paddingBottom="8dp">

            <View
                android:layout_width="0dp"
                android:layout_height="0dp"/>

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@color/background_sign_in"
                android:orientation="horizontal"
                android:padding="@dimen/sign_in_padding">

                <com.google.android.gms.common.SignInButton
                    android:id="@+id/sign_in"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:paddingRight="@dimen/sign_in_padding"/>

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical"
                    android:paddingLeft="@dimen/sign_in_padding"
                    android:text="@string/sign_in_explanation"/>
            </LinearLayout>

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@color/background_sign_in"
                android:orientation="horizontal"
                android:padding="@dimen/sign_in_padding">

                <ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:padding="8dp"
                    android:src="@drawable/games_controller"/>

                <Button
                    android:id="@+id/achievements"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="8dp"
                    android:drawableLeft="@drawable/games_achievements"
                    android:drawablePadding="8dp"
                    android:padding="16dp"
                    android:text="@string/achievements"/>

                <Button
                    android:id="@+id/leaderboards"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="8dp"
                    android:layout_marginRight="8dp"
                    android:drawableLeft="@drawable/games_leaderboards"
                    android:drawablePadding="8dp"
                    android:padding="16dp"
                    android:text="@string/leaderboards"/>

                <include
                    layout="@layout/share_button"/>
            </LinearLayout>
        </ViewFlipper>

        <Button
            android:id="@+id/new_game"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@id/google_play_games"
            android:layout_marginLeft="8dp"
            android:padding="16dp"
            android:text="@string/new_game"
            android:textSize="24sp"/>

        <Button
            android:id="@+id/stats"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@id/google_play_games"
            android:layout_marginLeft="8dp"
            android:layout_toRightOf="@id/new_game"
            android:padding="16dp"
            android:text="@string/stats"
            android:textSize="24sp"/>

    </RelativeLayout><commit_msg>Fixes Share button alignment on API version 15-18<commit_after><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:tools="http://schemas.android.com/tools"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@color/background"
                tools:context="com.github.triplesolitaire.TripleSolitaireActivity">

    <TextView
        android:id="@+id/title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="8dp"
        android:layout_marginTop="24dp"
        android:fontFamily="serif"
        android:text="@string/app_name"
        android:textSize="72sp"/>

    <ImageView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/title"
        android:layout_centerHorizontal="true"
        android:adjustViewBounds="true"
        android:padding="8dp"
        android:scaleType="centerInside"
        android:src="@drawable/title"/>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:fitsSystemWindows="true">

        <ViewFlipper
            android:id="@+id/google_play_games"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_alignParentLeft="true"
            android:layout_margin="8dp"
            android:measureAllChildren="true"
            android:paddingBottom="8dp">

            <View
                android:layout_width="0dp"
                android:layout_height="0dp"/>

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@color/background_sign_in"
                android:orientation="horizontal"
                android:padding="@dimen/sign_in_padding">

                <com.google.android.gms.common.SignInButton
                    android:id="@+id/sign_in"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:paddingRight="@dimen/sign_in_padding"/>

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical"
                    android:paddingLeft="@dimen/sign_in_padding"
                    android:text="@string/sign_in_explanation"/>
            </LinearLayout>

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:background="@color/background_sign_in"
                android:orientation="horizontal"
                android:padding="@dimen/sign_in_padding">

                <ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:padding="8dp"
                    android:src="@drawable/games_controller"/>

                <Button
                    android:id="@+id/achievements"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="8dp"
                    android:drawableLeft="@drawable/games_achievements"
                    android:drawablePadding="8dp"
                    android:padding="16dp"
                    android:text="@string/achievements"/>

                <Button
                    android:id="@+id/leaderboards"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="8dp"
                    android:layout_marginRight="8dp"
                    android:drawableLeft="@drawable/games_leaderboards"
                    android:drawablePadding="8dp"
                    android:padding="16dp"
                    android:text="@string/leaderboards"/>

                <include
                    layout="@layout/share_button"/>
            </LinearLayout>

        </ViewFlipper>

        <Button
            android:id="@+id/new_game"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@id/google_play_games"
            android:layout_marginLeft="8dp"
            android:padding="16dp"
            android:text="@string/new_game"
            android:textSize="24sp"/>

        <Button
            android:id="@+id/stats"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@id/google_play_games"
            android:layout_marginLeft="8dp"
            android:layout_toRightOf="@id/new_game"
            android:padding="16dp"
            android:text="@string/stats"
            android:textSize="24sp"/>

    </RelativeLayout>
{'fraction_non_alphanumeric': 0.10099971970475567, 'fraction_numerical': 0.006540222367560497, 'mean_word_length': 2.0118176702307258, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 2, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '7649465', 'n_tokens_mistral': 2856, 'n_tokens_neox': 2547, 'n_words': 244}