<commit_before>package io.github.luizgrp.sectionedrecyclerviewadapter.testdoubles.spy;

import android.support.v7.widget.RecyclerView;
import android.view.View;

import io.github.luizgrp.sectionedrecyclerviewadapter.Section;
import io.github.luizgrp.sectionedrecyclerviewadapter.SectionParameters;

/**
 * A spy of Section with no header or footer to check if onBind methods are being called.
 */
public class BindingSectionSpy extends Section {

    public boolean onBindItemViewHolderWasCalled = false;
    public boolean onBindLoadingViewHolderWasCalled = false;
    public boolean onBindFailedViewHolderWasCalled = false;
    public boolean onBindEmptyViewHolderWasCalled = false;

    private final int contentItemsTotal;

    public BindingSectionSpy(int contentItemsTotal) {
        super(new SectionParameters.Builder(-1)
                .failedResourceId(-1)
                .loadingResourceId(-1)
                .emptyResourceId(-1)
                .emptyResourceId(-1)
                .build());

        this.contentItemsTotal = contentItemsTotal;<commit_msg>Remove duplicated call to emptyResourceId<commit_after>package io.github.luizgrp.sectionedrecyclerviewadapter.testdoubles.spy;

import android.support.v7.widget.RecyclerView;
import android.view.View;

import io.github.luizgrp.sectionedrecyclerviewadapter.Section;
import io.github.luizgrp.sectionedrecyclerviewadapter.SectionParameters;

/**
 * A spy of Section with no header or footer to check if onBind methods are being called.
 */
public class BindingSectionSpy extends Section {

    public boolean onBindItemViewHolderWasCalled = false;
    public boolean onBindLoadingViewHolderWasCalled = false;
    public boolean onBindFailedViewHolderWasCalled = false;
    public boolean onBindEmptyViewHolderWasCalled = false;

    private final int contentItemsTotal;

    public BindingSectionSpy(int contentItemsTotal) {
        super(new SectionParameters.Builder(-1)
                .failedResourceId(-1)
                .loadingResourceId(-1)
                .emptyResourceId(-1)
                .build());

        this.contentItemsTotal = contentItemsTotal;
{'fraction_non_alphanumeric': 0.06932084309133489, 'fraction_numerical': 0.005152224824355972, 'mean_word_length': 3.663755458515284, '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': '1379661', 'n_tokens_mistral': 582, 'n_tokens_neox': 566, 'n_words': 130}