<commit_before>package fr.free.nrw.commons.notification;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.borjabravo.readmoretextview.ReadMoreTextView;
import com.pedrogomez.renderers.Renderer;

import butterknife.BindView;
import butterknife.ButterKnife;
import fr.free.nrw.commons.R;

/**
 * Created by root on 19.12.2017.
 */

public class NotificationRenderer extends Renderer<Notification> {
    @BindView(R.id.title) ReadMoreTextView title;
    @BindView(R.id.description) ReadMoreTextView description;
    @BindView(R.id.time) TextView time;
    @BindView(R.id.icon) ImageView icon;
    private NotificationClicked listener;


    NotificationRenderer(NotificationClicked listener) {
        this.listener = listener;
    }

    @Override
    protected void setUpView(View view) {    }

    @Override
    protected void hookListeners(View rootView) {
        rootView.setOnClickListener(v -> listener.notificationClicked(getContent()));
    }

    @Override
    protected View inflate(LayoutInflater layoutInflater, ViewGroup viewGroup) {
        View inflatedView = layoutInflater.inflate(R.layout.item_notification, viewGroup, false);
        ButterKnife.bind(this, inflatedView);
        return inflatedView;
    }

    @Override
    public void render() {
        Notification notification = getContent();
        title.setText(notification.notificationText);
        time.setText(notification.date);
        description.setText(notification.description);
        switch (notification.notificationType) {
            case THANK_YOU_EDIT:
                icon.setImageResource(R.drawable.ic_edit_black_24dp);
                break;
            default:
                icon.setImageResource(R.drawable.round_icon_unknown);
        }
    }

    public interface NotificationClicked{
        void notificationClicked(Notification notification);
    }
}
<commit_msg>Added a white space between text and show less<commit_after>package fr.free.nrw.commons.notification;

import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.borjabravo.readmoretextview.ReadMoreTextView;
import com.pedrogomez.renderers.Renderer;

import butterknife.BindView;
import butterknife.ButterKnife;
import fr.free.nrw.commons.R;

/**
 * Created by root on 19.12.2017.
 */

public class NotificationRenderer extends Renderer<Notification> {
    @BindView(R.id.title) ReadMoreTextView title;
    @BindView(R.id.description) ReadMoreTextView description;
    @BindView(R.id.time) TextView time;
    @BindView(R.id.icon) ImageView icon;
    private NotificationClicked listener;


    NotificationRenderer(NotificationClicked listener) {
        this.listener = listener;
    }

    @Override
    protected void setUpView(View view) {    }

    @Override
    protected void hookListeners(View rootView) {
        rootView.setOnClickListener(v -> listener.notificationClicked(getContent()));
    }

    @Override
    protected View inflate(LayoutInflater layoutInflater, ViewGroup viewGroup) {
        View inflatedView = layoutInflater.inflate(R.layout.item_notification, viewGroup, false);
        ButterKnife.bind(this, inflatedView);
        return inflatedView;
    }

    @Override
    public void render() {
        Notification notification = getContent();
        StringBuilder str = new StringBuilder(notification.notificationText);
        str.append(" " );
        title.setText(str);
        time.setText(notification.date);
        StringBuilder desc = new StringBuilder(notification.description);
        desc.append(" ");
        description.setText(desc);
        switch (notification.notificationType) {
            case THANK_YOU_EDIT:
                icon.setImageResource(R.drawable.ic_edit_black_24dp);
                break;
            default:
                icon.setImageResource(R.drawable.round_icon_unknown);
        }
    }

    public interface NotificationClicked{
        void notificationClicked(Notification notification);
    }
}

{'fraction_non_alphanumeric': 0.0891583452211127, 'fraction_numerical': 0.004755111745126011, 'mean_word_length': 3.373180873180873, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7323447', 'n_tokens_mistral': 1192, 'n_tokens_neox': 1109, 'n_words': 226}