<commit_before><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@android:color/white"
    android:paddingRight="@dimen/news_dialog_vertical_margin"
    android:paddingLeft="@dimen/news_dialog_vertical_margin"
    android:paddingTop="@dimen/news_dialog_horizontal_margin"
    android:paddingBottom="@dimen/news_dialog_horizontal_margin"
    >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingBottom="@dimen/news_dialog_title_text_margin"
        android:id="@+id/linearLayout"
        android:layout_centerHorizontal="true">

        <ImageView
            android:layout_width="@dimen/news_dialog_icon_size"
            android:layout_height="@dimen/news_dialog_icon_size"
            android:layout_centerVertical="true"
            android:id="@+id/image_news_dialog"
            android:src="@drawable/fablab_icon_black"
            android:layout_alignParentTop="true"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true" />

        <TextView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:id="@+id/title_news_dialog"
            android:text="Title"
            android:textColor="@android:color/black"
            android:textSize="@dimen/abc_text_size_title_material"
            android:layout_gravity="center"
            android:gravity="center"/>

    </LinearLayout>

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"
        android:layout_below="@+id/linearLayout"
        android:id="@+id/scrollView">

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingBottom="@dimen/news_dialog_vertical_margin"
            android:textColor="@android:color/black"
            android:id="@+id/news_text_news_dialog"
            android:text="real news entry"
            />
    </ScrollView>

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Ok"
        android:id="@+id/ok_button_news_dialog"
        android:layout_below="@+id/scrollView"
        android:layout_alignRight="@+id/scrollView"
        android:layout_alignEnd="@+id/scrollView" /><commit_msg>fixed bug that ok-button is not displayed in the newsDialog if text in scrollView is too long<commit_after><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@android:color/white"
    android:paddingRight="@dimen/news_dialog_vertical_margin"
    android:paddingLeft="@dimen/news_dialog_vertical_margin"
    android:paddingTop="@dimen/news_dialog_horizontal_margin"
    android:paddingBottom="@dimen/news_dialog_horizontal_margin"
    >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingBottom="@dimen/news_dialog_title_text_margin"
        android:id="@+id/linearLayout"
        android:layout_centerHorizontal="true">

        <ImageView
            android:layout_width="@dimen/news_dialog_icon_size"
            android:layout_height="@dimen/news_dialog_icon_size"
            android:layout_centerVertical="true"
            android:id="@+id/image_news_dialog"
            android:src="@drawable/fablab_icon_black"
            android:layout_alignParentTop="true"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true" />

        <TextView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:id="@+id/title_news_dialog"
            android:text="Title"
            android:textColor="@android:color/black"
            android:textSize="@dimen/abc_text_size_title_material"
            android:layout_gravity="center"
            android:gravity="center"/>

    </LinearLayout>

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"
        android:layout_below="@+id/linearLayout"
        android:layout_above="@+id/ok_button_news_dialog"
        android:id="@+id/scrollView">

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textColor="@android:color/black"
            android:id="@+id/news_text_news_dialog"
            android:text="real news entry"
            />
    </ScrollView>

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Ok"
        android:id="@+id/ok_button_news_dialog"
        android:layout_alignParentRight="true"
        android:layout_alignParentBottom="true" />
{'fraction_non_alphanumeric': 0.11023176936122103, 'fraction_numerical': 0.0011305822498586771, 'mean_word_length': 3.3436988543371524, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 2, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '2487379', 'n_tokens_mistral': 1537, 'n_tokens_neox': 1423, 'n_words': 139}