<commit_before>var requirejs = require('requirejs');

requirejs.config({
    //Pass the top-level main.js/index.js require
    //function to requirejs so that node modules
    //are loaded relative to the top-level JS file.
    nodeRequire: require
});

requirejs(['BitBoard'], function (mBitBoard) {
    var b = mBitBoard.initBitBoard(2, 8, 8);

    // print out board state to console
    console.log("BOARD B STATE:");
    b.setPosition(0, 3, 0);
    b.printBoard();

    console.log("BOARD A STATE:");
    var a = mBitBoard.initBitBoard(2, 8, 8);
    a.setPosition(0, 3, 5);
    a.setPosition(0, 4, 6);
    a.printBoard();

    console.log("BOARD B STATE:");
    b.printBoard();
    b.setPosition(0, 3, 0);
    b.printBoard();
});<commit_msg>exercise module code after new improvements<commit_after>var requirejs = require('requirejs');

requirejs.config({
    //Pass the top-level main.js/index.js require
    //function to requirejs so that node modules
    //are loaded relative to the top-level JS file.
    nodeRequire: require
});

requirejs(['BitBoard'], function (mBitBoard) {

    console.log("BOARD INITIALIZED:");
    var b1 = mBitBoard.initBitBoard(2, 8, 8);
    mBitBoard.printBoard(b1.bitboard);

    console.log("BOARD UPDATE player 0 position to (3,0):");
    b1.setPosition(0, 3, 0);
    mBitBoard.printBoard(b1.bitboard);
    console.log("BOARD UPDATE player 0 position to (4,0):");
    b1.setPosition(0, 4, 0);
    mBitBoard.printBoard(b1.bitboard);
    console.log("BOARD UPDATE player 1 position to (1,1):");
    b1.setPosition(1, 1, 1);
    mBitBoard.printBoard(b1.bitboard);
    console.log("BOARD UPDATE player 1 position to (1,5):");
    b1.setPosition(1, 1, 5);
    mBitBoard.printBoard(b1.bitboard);

    console.log("ANOTHER BOARD INITIALIZED:");
    var b2 = mBitBoard.initBitBoard(2, 8, 8);
    mBitBoard.printBoard(b2.bitboard);
    console.log("PREVIOUS BOARD:");
    mBitBoard.printBoard(b1.bitboard);
    console.log("BOARD UPDATE player 1 position to (1,5):");
    b2.setPosition(1, 1, 5);
    mBitBoard.printBoard(b2.bitboard);
    console.log("player 1 position should be (1,5):");
    var pos = b2.getPosition(1);
    console.assert(pos.x==1 && pos.y==5);
    console.log(pos);

});
{'fraction_non_alphanumeric': 0.15422661870503598, 'fraction_numerical': 0.0341726618705036, 'mean_word_length': 3.5408163265306123, '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': '5657811', 'n_tokens_mistral': 830, 'n_tokens_neox': 775, 'n_words': 191}