<commit_before>package org.wow.logic;

import com.epam.starwors.bot.Logic;
import com.epam.starwors.galaxy.Move;
import com.epam.starwors.galaxy.Planet;

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

public class UniformAttack implements Logic {
    String userName;

    public UniformAttack(String userName) {
        this.userName = userName;
    }

    @Override
    public Collection<Move> step(Collection<Planet> planets) {
        Collection<Move> moves = new ArrayList<Move>();
        for (Planet planet: planets){
            if(planet.getOwner().equals(userName)){
                List<Planet> neighbours = planet.getNeighbours();
                for (Planet neighbour : neighbours){
                    if(neighbour.getOwner().equals("")){
                        moves.add(new Move(planet,neighbour,planet.getUnits()/4));
                    }
                    if(planet.getUnits()== planet.getType().getLimit() && neighbour.getOwner().equals("WooDmaN") && neighbour.getUnits() < neighbour.getType().getLimit()/2 ){
                        moves.add(new Move(planet,neighbour,planet.getUnits()/4));
                    }
                    if(neighbour.getOwner().indexOf("bot")>-1){
                        moves.add(new Move(planet,neighbour,planet.getUnits()/2));
                    }
                }
            }
        }
        return moves;
    }
}
<commit_msg>trivial mistakes fixed in java logic class<commit_after>package org.wow.logic;

import com.epam.starwors.bot.Logic;
import com.epam.starwors.galaxy.Move;
import com.epam.starwors.galaxy.Planet;

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

public class UniformAttack implements Logic {
    String userName;

    public UniformAttack(String userName) {
        this.userName = userName;
    }

    @Override
    public Collection<Move> step(Collection<Planet> planets) {
        Collection<Move> moves = new ArrayList<Move>();
        for (Planet planet: planets){
            if(planet.getOwner().equals(userName)){
                List<Planet> neighbours = planet.getNeighbours();
                for (Planet neighbour : neighbours){
                    if(neighbour.getOwner().equals("")){
                        moves.add(new Move(planet,neighbour,planet.getUnits()/4));
                    }
                    if(planet.getUnits()== planet.getType().getLimit() && neighbour.getOwner().equals(userName) && neighbour
                            .getUnits() < neighbour.getType().getLimit()/2 ){
                        moves.add(new Move(planet,neighbour,planet.getUnits()/4));
                    }
                    if(neighbour.getOwner().contains("bot")){
                        moves.add(new Move(planet,neighbour,planet.getUnits()/2));
                    }
                }
            }
        }
        return moves;
    }
}

{'fraction_non_alphanumeric': 0.12598967297762478, 'fraction_numerical': 0.003098106712564544, 'mean_word_length': 2.0302398331595413, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 14, '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': '1207545', 'n_tokens_mistral': 855, 'n_tokens_neox': 830, 'n_words': 131}