<commit_before>package de.fau.cs.mad.fablab.android.ui;

import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import de.fau.cs.mad.fablab.android.R;

public class NewsDialog extends DialogFragment {

    static final String IMAGE = "IMAGE";
    static final String TITLE = "TITLE";
    static final String TEXT = "TEXT";

    private Bitmap image;
    private String title;
    private String text;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        Bundle args = getArguments();

        image = args.getParcelable(IMAGE);
        title = args.getString(TITLE);
        text = args.getString(TEXT);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.fragment_news_dialog, container, false);

        TextView title_TV = (TextView) v.findViewById(R.id.title_news_dialog);
        TextView text_TV = (TextView) v.findViewById((R.id.news_text_news_dialog));
        ImageView image_IV = (ImageView) v.findViewById((R.id.image_news_dialog));

        title_TV.setText(title);
        text_TV.setText(text);
        image_IV.setImageBitmap(image);

        Button okButton = (Button) v.findViewById(R.id.ok_button_news_dialog);
        okButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });

        return v;
    }
}
<commit_msg>removed gray bar at top of the newsDialog<commit_after>package de.fau.cs.mad.fablab.android.ui;

import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import de.fau.cs.mad.fablab.android.R;

public class NewsDialog extends DialogFragment {

    static final String IMAGE = "IMAGE";
    static final String TITLE = "TITLE";
    static final String TEXT = "TEXT";

    private Bitmap image;
    private String title;
    private String text;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        Bundle args = getArguments();

        image = args.getParcelable(IMAGE);
        title = args.getString(TITLE);
        text = args.getString(TEXT);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.fragment_news_dialog, container, false);

        TextView title_TV = (TextView) v.findViewById(R.id.title_news_dialog);
        TextView text_TV = (TextView) v.findViewById((R.id.news_text_news_dialog));
        ImageView image_IV = (ImageView) v.findViewById((R.id.image_news_dialog));

        title_TV.setText(title);
        text_TV.setText(text);
        image_IV.setImageBitmap(image);

        Button okButton = (Button) v.findViewById(R.id.ok_button_news_dialog);
        okButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });

        getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);

        return v;
    }
}

{'fraction_non_alphanumeric': 0.09828602035350831, 'fraction_numerical': 0.0005356186395286556, 'mean_word_length': 2.977635782747604, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '6345776', 'n_tokens_mistral': 1095, 'n_tokens_neox': 1020, 'n_words': 228}