<commit_before>package it.playfellas.superapp.logic.slave.game1;

import java.util.List;

import it.playfellas.superapp.logic.tiles.Tile;

/**
 * Created by affo on 03/08/15.
 */
public class IntruderDispenserInverter extends IntruderTileDispenser {
    private IntruderTileDispenser normal;

    public IntruderDispenserInverter(IntruderTileDispenser normalDispenser) {
        this.normal = normalDispenser;
    }

    @Override
    List<Tile> getTargets(int n) {
        return normal.getEasy(n, normal.getTargets(n));
    }

    @Override
    List<Tile> getCritical(int n, List<Tile> targets) {
        return normal.getTargets(n);
    }

    @Override
    List<Tile> getEasy(int n, List<Tile> targets) {
        return normal.getTargets(n);
    }
}
<commit_msg>return targets in the right number both from easy and critical distractors<commit_after>package it.playfellas.superapp.logic.slave.game1;

import java.util.List;

import it.playfellas.superapp.logic.tiles.Tile;

/**
 * Created by affo on 03/08/15.
 */
public class IntruderDispenserInverter extends IntruderTileDispenser {
    private IntruderTileDispenser normal;

    public IntruderDispenserInverter(IntruderTileDispenser normalDispenser) {
        this.normal = normalDispenser;
    }

    @Override
    List<Tile> getTargets(int n) {
        int noCritical = n / 2;
        int noEasy = n - noCritical;
        List<Tile> tgts = normal.getTargets(n);
        List<Tile> easy = normal.getEasy(noEasy, tgts);
        List<Tile> critical = normal.getCritical(noCritical, tgts);
        easy.addAll(critical);
        return easy;
    }

    @Override
    List<Tile> getCritical(int n, List<Tile> targets) {
        return normal.getTargets(n);
    }

    @Override
    List<Tile> getEasy(int n, List<Tile> targets) {
        return normal.getTargets(n);
    }
}

{'fraction_non_alphanumeric': 0.10163934426229508, 'fraction_numerical': 0.00819672131147541, 'mean_word_length': 3.21889400921659, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, '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': '7396123', 'n_tokens_mistral': 657, 'n_tokens_neox': 611, 'n_words': 124}