<commit_before>package net.squanchy.tweets.service;

import com.twitter.sdk.android.core.Callback;
import com.twitter.sdk.android.core.Result;
import com.twitter.sdk.android.core.TwitterException;
import com.twitter.sdk.android.core.models.Identifiable;
import com.twitter.sdk.android.tweetui.Timeline;
import com.twitter.sdk.android.tweetui.TimelineResult;

import java.util.ArrayList;
import java.util.List;

import net.squanchy.tweets.view.TimelineStateHolder;

public class TwitterService<T extends Identifiable> {

    private static final long CAPACITY = 200L;
    private final Timeline<T> timeline;
    private final TimelineStateHolder timelineStateHolder;
    private final List<T> itemList;

    public TwitterService(Timeline<T> timeline) {
        this.timeline = timeline;
        this.timelineStateHolder = new TimelineStateHolder();

        itemList = new ArrayList<>();
    }

    public void refresh(Callback<TimelineResult<T>> developerCb) {
        timelineStateHolder.resetCursors();
        load(timelineStateHolder.positionForNext(), new RefreshCallback(developerCb, timelineStateHolder));
    }

    public void previous(Callback<TimelineResult<T>> developerCb) {
        loadPrevious(timelineStateHolder.positionForPrevious(), new PreviousCallback(developerCb, timelineStateHolder));
    }

    public int size() {
        return itemList.size();
    }

    public T itemAt(int position) {
        return itemList.get(position);
    }
<commit_msg>Adds extra line after constant<commit_after>package net.squanchy.tweets.service;

import com.twitter.sdk.android.core.Callback;
import com.twitter.sdk.android.core.Result;
import com.twitter.sdk.android.core.TwitterException;
import com.twitter.sdk.android.core.models.Identifiable;
import com.twitter.sdk.android.tweetui.Timeline;
import com.twitter.sdk.android.tweetui.TimelineResult;

import java.util.ArrayList;
import java.util.List;

import net.squanchy.tweets.view.TimelineStateHolder;

public class TwitterService<T extends Identifiable> {

    private static final long CAPACITY = 200L;

    private final Timeline<T> timeline;
    private final TimelineStateHolder timelineStateHolder;
    private final List<T> itemList;

    public TwitterService(Timeline<T> timeline) {
        this.timeline = timeline;
        this.timelineStateHolder = new TimelineStateHolder();

        itemList = new ArrayList<>();
    }

    public void refresh(Callback<TimelineResult<T>> developerCb) {
        timelineStateHolder.resetCursors();
        load(timelineStateHolder.positionForNext(), new RefreshCallback(developerCb, timelineStateHolder));
    }

    public void previous(Callback<TimelineResult<T>> developerCb) {
        loadPrevious(timelineStateHolder.positionForPrevious(), new PreviousCallback(developerCb, timelineStateHolder));
    }

    public int size() {
        return itemList.size();
    }

    public T itemAt(int position) {
        return itemList.get(position);
    }

{'fraction_non_alphanumeric': 0.09649122807017543, 'fraction_numerical': 0.0020242914979757085, 'mean_word_length': 4.294642857142857, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '828493', 'n_tokens_mistral': 881, 'n_tokens_neox': 833, 'n_words': 168}