<commit_before><?xml version="1.0" encoding="utf-8"?>
<layout>
    <data>
        <variable name="fragment" type="jp.toastkid.yobidashi.editor.EditorFragment" />
    </data>
    <HorizontalScrollView
        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/editor_menu"
        android:layout_width="match_parent"
        android:layout_height="48dp"
        tools:layout_height="48dp"
        >
        <LinearLayout
            android:orientation="horizontal"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            >
            <Space
                android:id="@+id/left_space"
                android:layout_width="60dp"
                android:layout_height="match_parent"
                android:visibility="gone"
                />
            <TextView
                android:id="@+id/load"
                android:layout_width="60dp"
                android:layout_height="match_parent"
                android:text="@string/load"
                android:textSize="@dimen/menu_font_size"
                android:gravity="center_horizontal"
                android:drawableTop="@drawable/ic_load"
                android:foreground="@drawable/ripple_transparent"
                android:onClick="@{view -> fragment.load()}"
                android:onLongClick="@{fragment::showName}"
                />
            <TextView
                android:id="@+id/save"
                android:layout_width="60dp"
                android:layout_height="match_parent"
                android:text="@string/save"
                android:textSize="@dimen/menu_font_size"
                android:gravity="center_horizontal"
                android:drawableTop="@drawable/ic_save"
                android:foreground="@drawable/ripple_transparent"
                android:onClick="@{view -> fragment.save()}"
                android:onLongClick="@{fragment::showName}"
                />
            <TextView
                android:id="@+id/backup"
                android:layout_width="60dp"
                android:layout_height="match_parent"
                style="?android:attr/buttonBarStyle"
                android:text="@string/save_backup"
                android:textSize="@dimen/menu_font_size"
                android:gravity="center_horizontal"
                android:drawableTop="@drawable/ic_backup"
                android:foreground="@drawable/ripple_transparent"
                android:onClick="@{view -> fragment.backup()}"
                android:onLongClick="@{fragment::showName}"
                />
            <TextView
                android:id="@+id/save_as"
                android:layout_width="60dp"
                android:layout_height="match_parent"
                android:text="@string/save_as"
                android:textSize="@dimen/menu_font_size"
                android:gravity="center_horizontal"
                android:drawableTop="@drawable/ic_save_as"
                android:foreground="@drawable/ripple_transparent"
                android:onClick="@{view -> fragment.saveAs()}"
                android:onLongClick="@{fragment::showName}"
                />

            <FrameLayout
                android:id="@+id/tab_list"
                android:layout_width="60dp"
                android:layout_height="match_parent"
                android:background="@drawable/ripple_transparent"
                android:onClick="@{view -> fragment.tabList()}"
                >
                <ImageView
                    android:id="@+id/tab_icon"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:padding="12dp"
                    android:layout_gravity="center"
                    android:scaleType="fitCenter"
                    app:srcCompat="@drawable/ic_tab"
                    tools:tint="@color/colorPrimaryDark"
                    android:contentDescription="@string/tab_list"
                    />
                <TextView
                    android:id="@+id/tab_count"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="2dp"
                    android:layout_marginStart="2dp"
                    android:layout_marginBottom="2dp"
                    android:layout_gravity="center"
                    android:textSize="12dp"
                    tools:text="99"
                    tools:textColor="@color/colorPrimaryDark"
                    tools:ignore="SpUsage"
                    />
            </FrameLayout>

            <TextView
                android:id="@+id/load_as"
                android:layout_width="60dp"
                android:layout_height="match_parent"
                android:text="@string/load_as"
                android:textSize="@dimen/menu_font_size"
                android:gravity="center_horizontal"
                android:drawableTop="@drawable/ic_load_as"
                android:foreground="@drawable/ripple_transparent"
                android:onClick="@{view -> fragment.loadAs()}"
                android:onLongClick="@{fragment::showName}"
                />
            <TextView
                android:id="@+id/counter"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:paddingLeft="4dp"
                android:paddingRight="4dp"
                android:gravity="center_vertical|end"
                android:maxLines="2"
                android:textSize="14sp"
                tools:text="character count\n 444"
                />
            <TextView
                android:id="@+id/last_saved"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:paddingLeft="4dp"
                android:paddingRight="4dp"
                android:gravity="center_vertical|end"
                android:maxLines="2"
                android:textSize="14sp"
                tools:text="Last saved:\n 2017/12/22 11:18:19"
                />
            <TextView
                android:id="@+id/clear"
                android:layout_width="60dp"
                android:layout_height="match_parent"
                android:text="@string/clear_all"
                android:textSize="@dimen/menu_font_size"
                android:gravity="center_horizontal"
                android:drawableTop="@drawable/ic_clear_form"
                android:foreground="@drawable/ripple_transparent"
                android:onClick="@{view -> fragment.clear()}"
                android:onLongClick="@{fragment::showName}"
                />
        </LinearLayout>
    </HorizontalScrollView>
</layout><commit_msg>design #146 Modify editor menu's gravity.<commit_after><?xml version="1.0" encoding="utf-8"?>
<layout>
    <data>
        <variable name="fragment" type="jp.toastkid.yobidashi.editor.EditorFragment" />
    </data>
    <HorizontalScrollView
        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/editor_menu"
        android:layout_width="match_parent"
        android:layout_height="48dp"
        tools:layout_height="48dp"
        >
        <LinearLayout
            android:orientation="horizontal"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            >
            <Space
                android:id="@+id/left_space"
                android:layout_width="60dp"
                android:layout_height="match_parent"
                android:visibility="gone"
                />
            <TextView
                android:id="@+id/load"
                android:layout_width="60dp"
                android:layout_height="match_parent"
                android:text="@string/load"
                android:textSize="@dimen/menu_font_size"
                android:gravity="center"
                android:drawableTop="@drawable/ic_load"
                android:foreground="@drawable/ripple_transparent"
                android:onClick="@{view -> fragment.load()}"
                android:onLongClick="@{fragment::showName}"
                />
            <TextView
                android:id="@+id/save"
                android:layout_width="60dp"
                android:layout_height="match_parent"
                android:text="@string/save"
                android:textSize="@dimen/menu_font_size"
                android:gravity="center"
                android:drawableTop="@drawable/ic_save"
                android:foreground="@drawable/ripple_transparent"
                android:onClick="@{view -> fragment.save()}"
                android:onLongClick="@{fragment::showName}"
                />
            <TextView
                android:id="@+id/backup"
                android:layout_width="60dp"
                android:layout_height="match_parent"
                style="?android:attr/buttonBarStyle"
                android:text="@string/save_backup"
                android:textSize="@dimen/menu_font_size"
                android:gravity="center"
                android:drawableTop="@drawable/ic_backup"
                android:foreground="@drawable/ripple_transparent"
                android:onClick="@{view -> fragment.backup()}"
                android:onLongClick="@{fragment::showName}"
                />
            <TextView
                android:id="@+id/save_as"
                android:layout_width="60dp"
                android:layout_height="match_parent"
                android:text="@string/save_as"
                android:textSize="@dimen/menu_font_size"
                android:gravity="center"
                android:drawableTop="@drawable/ic_save_as"
                android:foreground="@drawable/ripple_transparent"
                android:onClick="@{view -> fragment.saveAs()}"
                android:onLongClick="@{fragment::showName}"
                />

            <FrameLayout
                android:id="@+id/tab_list"
                android:layout_width="60dp"
                android:layout_height="match_parent"
                android:background="@drawable/ripple_transparent"
                android:onClick="@{view -> fragment.tabList()}"
                >
                <ImageView
                    android:id="@+id/tab_icon"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:padding="12dp"
                    android:layout_gravity="center"
                    android:scaleType="fitCenter"
                    app:srcCompat="@drawable/ic_tab"
                    tools:tint="@color/colorPrimaryDark"
                    android:contentDescription="@string/tab_list"
                    />
                <TextView
                    android:id="@+id/tab_count"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="2dp"
                    android:layout_marginStart="2dp"
                    android:layout_marginBottom="2dp"
                    android:layout_gravity="center"
                    android:textSize="12dp"
                    tools:text="99"
                    tools:textColor="@color/colorPrimaryDark"
                    tools:ignore="SpUsage"
                    />
            </FrameLayout>

            <TextView
                android:id="@+id/load_as"
                android:layout_width="60dp"
                android:layout_height="match_parent"
                android:text="@string/load_as"
                android:textSize="@dimen/menu_font_size"
                android:gravity="center"
                android:drawableTop="@drawable/ic_load_as"
                android:foreground="@drawable/ripple_transparent"
                android:onClick="@{view -> fragment.loadAs()}"
                android:onLongClick="@{fragment::showName}"
                />
            <TextView
                android:id="@+id/counter"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:paddingLeft="4dp"
                android:paddingRight="4dp"
                android:gravity="center_vertical|end"
                android:maxLines="2"
                android:textSize="14sp"
                tools:text="character count\n 444"
                />
            <TextView
                android:id="@+id/last_saved"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:paddingLeft="4dp"
                android:paddingRight="4dp"
                android:gravity="center_vertical|end"
                android:maxLines="2"
                android:textSize="14sp"
                tools:text="Last saved:\n 2017/12/22 11:18:19"
                />
            <TextView
                android:id="@+id/clear"
                android:layout_width="60dp"
                android:layout_height="match_parent"
                android:text="@string/clear_all"
                android:textSize="@dimen/menu_font_size"
                android:gravity="center"
                android:drawableTop="@drawable/ic_clear_form"
                android:foreground="@drawable/ripple_transparent"
                android:onClick="@{view -> fragment.clear()}"
                android:onLongClick="@{fragment::showName}"
                />
        </LinearLayout>
    </HorizontalScrollView>
</layout>
{'fraction_non_alphanumeric': 0.11169523260838254, 'fraction_numerical': 0.008713812472994383, 'mean_word_length': 1.6598352805975867, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 2, '>': 63, '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': '5514687', 'n_tokens_mistral': 3815, 'n_tokens_neox': 3285, 'n_words': 318}