<commit_before>package com.turlir.abakgists.view.anim.factor;

import android.view.View;

import com.turlir.abakgists.view.anim.base.AnimationCreator;
import com.turlir.abakgists.view.anim.base.Factory;

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

public abstract class AbstractFactoryOfThree
        extends Factory {

    @Override
    protected List<AnimationCreator> create(View... views) {
        if (views.length > 3) {
            throw new IllegalArgumentException();
        }

        List<AnimationCreator> res = new ArrayList<>(3);
        for (int i = 0; i < 3; i++) {
            if (views.length > i) {
                switch (i) {
                    case 0:
                        res.add(first(views[i]));
                        break;
                    case 1:
                        res.add(second(views[i]));
                        break;
                    case 2:
                        res.add(three(views[i]));
                        break;
                }
            } else {
                break;
            }
        }
        return res;
    }

    public abstract AnimationCreator first(View v);

    public abstract AnimationCreator second(View v);

    public abstract AnimationCreator three(View v);
}<commit_msg>fix code<commit_after>package com.turlir.abakgists.view.anim.factor;

import android.view.View;

import com.turlir.abakgists.view.anim.base.AnimationCreator;
import com.turlir.abakgists.view.anim.base.Factory;

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

abstract class AbstractFactoryOfThree
        extends Factory {

    private static final int LENGTH = 3;

    @Override
    protected List<AnimationCreator> create(View... views) {
        if (views == null || views.length != 3) {
            throw new IllegalArgumentException();
        }

        List<AnimationCreator> res = new ArrayList<>(LENGTH);
        for (int i = 0; i < LENGTH; i++) {
            switch (i) {
                case 0:
                    res.add(first(views[i]));
                    break;
                case 1:
                    res.add(second(views[i]));
                    break;
                case 2:
                    res.add(three(views[i]));
                    break;
            }
        }
        return res;
    }

    public abstract AnimationCreator first(View v);

    public abstract AnimationCreator second(View v);

    public abstract AnimationCreator three(View v);
}
{'fraction_non_alphanumeric': 0.1000813669650122, 'fraction_numerical': 0.0052888527257933275, 'mean_word_length': 1.6215351812366738, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3526942', 'n_tokens_mistral': 702, 'n_tokens_neox': 654, 'n_words': 155}