<commit_before>var creep_constructor = {

    /** @param {Creep} creep **/
    run: function(creep) {
        if (creep.memory.building && creep.carry.energy == 0) {
            delete creep.memory.building;
        } else if (_.sum(creep.carry) == creep.carryCapacity && !creep.memory.building) {
            creep.memory.building = true;
        }

        if (!creep.memory.building) {
            if (creep.room.name != creep.memory.destination) {
                creep.moveTo(new RoomPosition(25, 25, creep.memory.destination));
            } else {
                sources = creep.pos.findClosestByRange(FIND_SOURCES_ACTIVE);

                if (sources) {
                    if (creep.harvest(sources) == ERR_NOT_IN_RANGE) {
                        creep.moveTo(sources);
                    }
                }
            }
        } else {
            if ((creep.carry.energy <= 20 && creep.hits < 2500) || (creep.carry.energy <= 40)) {
                //Upgrade the controller
                if (creep.upgradeController(creep.room.controller) == ERR_NOT_IN_RANGE) {
                    creep.moveTo(creep.room.controller);
                }
            } else if (creep.build(Game.getObjectById(creep.memory.siteID)) == ERR_NOT_IN_RANGE) {
                creep.moveTo(Game.getObjectById(creep.memory.siteID));
            } else if (creep.build(Game.getObjectById(creep.memory.siteID)) == ERR_INVALID_TARGET) {
                if (Game.flags["BuildThis"]) {
                    Game.flags["BuildThis"].remove();
                }
                creep.suicide();
            }<commit_msg>whoops<commit_after>var creep_constructor = {

    /** @param {Creep} creep **/
    run: function(creep) {
        if (creep.memory.building && creep.carry.energy == 0) {
            delete creep.memory.building;
        } else if (_.sum(creep.carry) == creep.carryCapacity && !creep.memory.building) {
            creep.memory.building = true;
        }

        if (!creep.memory.building) {
            if (creep.room.name != creep.memory.destination) {
                creep.moveTo(new RoomPosition(25, 25, creep.memory.destination));
            } else {
                sources = creep.pos.findClosestByRange(FIND_SOURCES_ACTIVE);

                if (sources) {
                    if (creep.harvest(sources) == ERR_NOT_IN_RANGE) {
                        creep.moveTo(sources);
                    }
                }
            }
        } else {
            if ((creep.carry.energy <= 20 && creep.hits < 2500) || (creep.carry.energy <= 40 && creep.hits >= 2500)) {
                //Upgrade the controller
                if (creep.upgradeController(creep.room.controller) == ERR_NOT_IN_RANGE) {
                    creep.moveTo(creep.room.controller);
                }
            } else if (creep.build(Game.getObjectById(creep.memory.siteID)) == ERR_NOT_IN_RANGE) {
                creep.moveTo(Game.getObjectById(creep.memory.siteID));
            } else if (creep.build(Game.getObjectById(creep.memory.siteID)) == ERR_INVALID_TARGET) {
                if (Game.flags["BuildThis"]) {
                    Game.flags["BuildThis"].remove();
                }
                creep.suicide();
            }
{'fraction_non_alphanumeric': 0.12946289972058367, 'fraction_numerical': 0.009313877677739833, 'mean_word_length': 1.640983606557377, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 4, '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': '4599235', 'n_tokens_mistral': 985, 'n_tokens_neox': 929, 'n_words': 134}