<commit_before>package io.jasonsparc.chemistry.internal.vh_factories;

import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView.ViewHolder;
import android.view.ViewGroup;

import io.jasonsparc.chemistry.VhFactory;
import io.jasonsparc.chemistry.VhInitializer;
import io.jasonsparc.chemistry.util.VhInitializers;

/**
 * Created by Jason on 31/07/2016.
 */
public class InitVhFactory<VH extends ViewHolder> implements VhFactory<VH> {
	@NonNull final VhFactory<? extends VH> vhFactory;
	@NonNull final VhInitializer<? super VH> vhInitializer;

	@SuppressWarnings("unchecked")
	public InitVhFactory(@NonNull VhFactory<? extends VH> vhFactory, @NonNull VhInitializer<? super VH> vhInitializer) {
		if (vhFactory instanceof InitVhFactory<?>) {
			InitVhFactory initVhFactory = (InitVhFactory) vhFactory;<commit_msg>Fix: must be final to prevent undefined overrides<commit_after>package io.jasonsparc.chemistry.internal.vh_factories;

import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView.ViewHolder;
import android.view.ViewGroup;

import io.jasonsparc.chemistry.VhFactory;
import io.jasonsparc.chemistry.VhInitializer;
import io.jasonsparc.chemistry.util.VhInitializers;

/**
 * Created by Jason on 31/07/2016.
 */
public final class InitVhFactory<VH extends ViewHolder> implements VhFactory<VH> {
	@NonNull final VhFactory<? extends VH> vhFactory;
	@NonNull final VhInitializer<? super VH> vhInitializer;

	@SuppressWarnings("unchecked")
	public InitVhFactory(@NonNull VhFactory<? extends VH> vhFactory, @NonNull VhInitializer<? super VH> vhInitializer) {
		if (vhFactory instanceof InitVhFactory<?>) {
			InitVhFactory initVhFactory = (InitVhFactory) vhFactory;
{'fraction_non_alphanumeric': 0.09907300115874855, 'fraction_numerical': 0.010428736964078795, 'mean_word_length': 6.6755555555555555, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '683817', 'n_tokens_mistral': 587, 'n_tokens_neox': 573, 'n_words': 123}