<commit_before>package backend;

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

import game.impl.Board;
import game.impl.BoardLocation;
import game.impl.GamePiece;
import game.impl.Player;

public class OthelloGameFactory {

    public List<Player> createPlayers(){
        List<Player> players = new ArrayList<Player>();
        players.add(new Player("P1", makePlayerOneGamePieces()));
        players.add(new Player("P2", makePlayerTwoGamePieces()));

        return players;
    }

    public Board createBoard(){
        return new Board(makeBoardLocations());
    }


    private List<GamePiece> makePlayerOneGamePieces(){
        List<GamePiece> list = new ArrayList<GamePiece>();

        //for(int i = 0; i < 32; i++)
         //   list.add(new GamePiece("O"));

        return list;
    }

    private List<GamePiece> makePlayerTwoGamePieces(){
        List<GamePiece> list = new ArrayList<GamePiece>();

        //for(int i = 0; i < 32; i++)
         //   list.add(new GamePiece("X"));

        return list;
    }

    private List<BoardLocation> makeBoardLocations(){
        List<BoardLocation> list = new ArrayList<BoardLocation>();

        for(int j = (int)'A'; j <= (int)'H'; j++)
            for(int i = 1; i <= 8; i++)
                list.add(new BoardLocation(""+(char)j+i));

        return list;
    }
}<commit_msg>refactor<commit_after>package backend;

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

import game.impl.Board;
import game.impl.BoardLocation;
import game.impl.GamePiece;
import game.impl.Player;

public class OthelloGameFactory {

    public List<Player> createPlayers(){
        List<Player> players = new ArrayList<Player>();

        players.add(new Player("P1", makePlayerOneGamePieces()));
        players.add(new Player("P2", makePlayerTwoGamePieces()));

        return players;
    }

    public Board createBoard(){
        return new Board(makeBoardLocations());
    }


    private List<GamePiece> makePlayerOneGamePieces(){
        List<GamePiece> list = new ArrayList<GamePiece>();

        return list;
    }

    private List<GamePiece> makePlayerTwoGamePieces(){
        List<GamePiece> list = new ArrayList<GamePiece>();

        return list;
    }

    private List<BoardLocation> makeBoardLocations(){
        List<BoardLocation> list = new ArrayList<BoardLocation>();

        for(int j = (int)'A'; j <= (int)'H'; j++)
            for(int i = 1; i <= 8; i++)
                list.add(new BoardLocation(""+(char)j+i));

        return list;
    }
}
{'fraction_non_alphanumeric': 0.13751987281399047, 'fraction_numerical': 0.005564387917329093, 'mean_word_length': 2.8962848297213624, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 27, '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': '2538239', 'n_tokens_mistral': 789, 'n_tokens_neox': 750, 'n_words': 174}