<commit_before>package de.dj_steam.bot.moving.strategy;

import de.dj_steam.bot.domain.ToyBot;
import de.dj_steam.bot.domain.ToyBotField;
import de.dj_steam.bot.engine.RobotEngine;

/**
 * @author steam
 */
public class ReportStrategy implements ChangingStrategy {
    @Override
    public void change(ToyBot toyBot, ToyBotField toyBotField, String command) {
        if (command.equals(RobotEngine.REPORT)) {
            System.out.println(toyBot);
        }
    }
}<commit_msg>small code enhancement<commit_after>package de.dj_steam.bot.moving.strategy;

import de.dj_steam.bot.domain.ToyBot;
import de.dj_steam.bot.domain.ToyBotField;
import de.dj_steam.bot.engine.RobotEngine;

/**
 * @author steam
 */
public class ReportStrategy implements ChangingStrategy {
    @Override
    public void change(ToyBot toyBot, ToyBotField toyBotField, String command) {
        if (command.equals(RobotEngine.REPORT)) {
            printReport(toyBot);
        }
    }

    private void printReport(final ToyBot toyBot) {
        System.out.println(toyBot);
    }
}
{'fraction_non_alphanumeric': 0.1052132701421801, 'fraction_numerical': 0.0, 'mean_word_length': 3.591304347826087, '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': '1564785', 'n_tokens_mistral': 358, 'n_tokens_neox': 343, 'n_words': 62}