<commit_before>/*
 * Copyrights phwang
 * Written by <NAME>
 * File name: go_config_module.js
 */

module.exports = {
    malloc: function (container_val) {
        return new GoConfigObject(container_val);
    },
};

function GoConfigObject(container_val) {
    "use strict";
    this.theContainerObject = container_val;

    this.objectName = function () {
        return "GoConfigObject";
    };

    this.containerObject = function () {
        return this.theContainerObject;
    };

    this.sessionObject = function () {
        return this.containerObject().sessionObject();
    };

    this.rootObject = function () {
        return this.sessionObject().rootObject();
    };

    this.gameObject = function () {
        return this.containerObject().gameObject();
    };

    this.myName = function () {
        return this.rootObject().myName();
    };

    this.opponentName = function () {
        return this.sessionObject().hisName();
    };

    this.boardSize = function () {
        return this.theBoardSize;
    };

    this.setBoardSize = function (val) {
        this.theBoardSize = Number(val);
    };

    this.myColor = function () {
        return this.theMyColor;
    };

    this.hisColor = function () {
        if (this.theMyColor === GO.BLACK_STONE()) {
            return GO.WHITE_STONE();
        }
        else {
            return GO.BLACK_STONE();
        }
    };

    this.setMyColor = function (val) {
        if (val === "black") {
            this.theMyColor = GO.BLACK_STONE();
            return;
        }
        if (val === "white") {
            this.theMyColor = GO.WHITE_STONE();
            return;
        }
        this.abend("setMyColor", val);
    };

    this.setMyColor_ = function (val) {
        this.theMyColor = Number(val);
    };

    this.handicapPoint = function () {
        return this.theHandicapPoint;
    };

    this.setHandicapPoint = function (val) {
        this.theHandicapPoint = Number(val);
    };

    this.komiPoint = function () {
        return this.theKomiPoint;
    };

    this.setKomiPoint = function (val) {
        this.theKomiPoint = Number(val);
    };

    this.realKomiPoint = function () {
        if (!this.theKomiPoint) {
            return 0;
        }
        return this.theKomiPoint + 0.5;
    };

    this.playBothSides = function () {
        return (this.myName() === this.opponentName());
    };

    this.isValidCoordinate = function (data_val) {
        return (0 <= coordinate_val) && (coordinate_val < board_size_val);
        if (data_val < 0) {
            GO.goAbend("GoBoardObject.isValidCoordinate", data_val);
            return false;<commit_msg>Number<commit_after>/*
 * Copyrights phwang
 * Written by <NAME>
 * File name: go_config_module.js
 */

module.exports = {
    malloc: function (container_val) {
        return new GoConfigObject(container_val);
    },
};

function GoConfigObject(container_val) {
    "use strict";
    this.theContainerObject = container_val;

    this.objectName = function () {
        return "GoConfigObject";
    };

    this.containerObject = function () {
        return this.theContainerObject;
    };

    this.sessionObject = function () {
        return this.containerObject().sessionObject();
    };

    this.rootObject = function () {
        return this.sessionObject().rootObject();
    };

    this.gameObject = function () {
        return this.containerObject().gameObject();
    };

    this.myName = function () {
        return this.rootObject().myName();
    };

    this.opponentName = function () {
        return this.sessionObject().hisName();
    };

    this.boardSize = function () {
        return this.theBoardSize;
    };

    this.setBoardSize = function (val) {
        this.theBoardSize = val;
    };

    this.myColor = function () {
        return this.theMyColor;
    };

    this.hisColor = function () {
        if (this.theMyColor === GO.BLACK_STONE()) {
            return GO.WHITE_STONE();
        }
        else {
            return GO.BLACK_STONE();
        }
    };

    this.setMyColor = function (val) {
        if (val === "black") {
            this.theMyColor = GO.BLACK_STONE();
            return;
        }
        if (val === "white") {
            this.theMyColor = GO.WHITE_STONE();
            return;
        }
        this.abend("setMyColor", val);
    };

    this.setMyColor_ = function (val) {
        this.theMyColor = val;
    };

    this.handicapPoint = function () {
        return this.theHandicapPoint;
    };

    this.setHandicapPoint = function (val) {
        this.theHandicapPoint = val;
    };

    this.komiPoint = function () {
        return this.theKomiPoint;
    };

    this.setKomiPoint = function (val) {
        this.theKomiPoint = val;
    };

    this.realKomiPoint = function () {
        if (!this.theKomiPoint) {
            return 0;
        }
        return this.theKomiPoint + 0.5;
    };

    this.playBothSides = function () {
        return (this.myName() === this.opponentName());
    };

    this.isValidCoordinate = function (data_val) {
        return (0 <= coordinate_val) && (coordinate_val < board_size_val);
        if (data_val < 0) {
            GO.goAbend("GoBoardObject.isValidCoordinate", data_val);
            return false;
{'fraction_non_alphanumeric': 0.13080568720379146, 'fraction_numerical': 0.0018957345971563982, 'mean_word_length': 2.047949162333911, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 5, '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': '2227239', 'n_tokens_mistral': 1629, 'n_tokens_neox': 1575, 'n_words': 283}