<commit_before>package com.alexstyl.specialdates.upcoming.ui;

import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.alexstyl.specialdates.R;
import com.alexstyl.specialdates.upcoming.MonthLabels;
import com.alexstyl.specialdates.upcoming.MonthOfYear;

public class MonthHeaderViewHolder extends RecyclerView.ViewHolder {
    private final MonthLabels monthLabels;
    private final TextView header;

    public static MonthHeaderViewHolder createFor(ViewGroup parent, MonthLabels monthLabels) {
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.row_header_month, parent, false);
        return new MonthHeaderViewHolder(view, monthLabels);
    }

    public MonthHeaderViewHolder(View convertView, MonthLabels monthLabels) {
        super(convertView);
        this.monthLabels = monthLabels;
        this.header = (TextView) convertView.findViewById(android.R.id.text1);
    }
<commit_msg>Export layout inflater creation into variable<commit_after>package com.alexstyl.specialdates.upcoming.ui;

import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.alexstyl.specialdates.R;
import com.alexstyl.specialdates.upcoming.MonthLabels;
import com.alexstyl.specialdates.upcoming.MonthOfYear;

public class MonthHeaderViewHolder extends RecyclerView.ViewHolder {
    private final MonthLabels monthLabels;
    private final TextView header;

    public static MonthHeaderViewHolder createFor(ViewGroup parent, MonthLabels monthLabels) {
        LayoutInflater layoutInflater = LayoutInflater.from(parent.getContext());
        View view = layoutInflater.inflate(R.layout.row_header_month, parent, false);
        return new MonthHeaderViewHolder(view, monthLabels);
    }

    public MonthHeaderViewHolder(View convertView, MonthLabels monthLabels) {
        super(convertView);
        this.monthLabels = monthLabels;
        this.header = (TextView) convertView.findViewById(android.R.id.text1);
    }

{'fraction_non_alphanumeric': 0.08234217749313816, 'fraction_numerical': 0.0018298261665141812, 'mean_word_length': 4.975409836065574, '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': '1468153', 'n_tokens_mistral': 621, 'n_tokens_neox': 590, 'n_words': 124}