<commit_before>//used for holding information about unique properties of maps
//feed it json files that match the datum layout
//defaults to box
//  -Cyberboss

/datum/map_config
    var/config_filename = "_maps/tgstation2.json"
    var/map_name = "Box Station"
    var/map_path = "map_files/TgStation"
    var/map_file = "tgstation.2.1.3.dmm"

    var/minetype = "lavaland"

    var/list/transition_config = list(MAIN_STATION = CROSSLINKED,
                                    CENTCOMM = SELFLOOPING,
                                    EMPTY_AREA_1 = CROSSLINKED,
                                    EMPTY_AREA_2 = CROSSLINKED,
                                    MINING = SELFLOOPING,
                                    EMPTY_AREA_3 = CROSSLINKED,
                                    EMPTY_AREA_4 = CROSSLINKED,
                                    EMPTY_AREA_5 = CROSSLINKED,
                                    EMPTY_AREA_6 = CROSSLINKED,
                                    EMPTY_AREA_7 = CROSSLINKED,
                                    EMPTY_AREA_8 = CROSSLINKED)
    var/defaulted = TRUE    //if New failed

    var/config_max_users = 0
    var/config_min_users = 0
    var/voteweight = 1

/datum/map_config/New(filename = "data/next_map.json", default_to_box, delete_after)
    if(default_to_box)
        return
    LoadConfig(filename)
    if(delete_after)
        fdel(filename)

/datum/map_config/proc/LoadConfig(filename)
    if(!fexists(filename))<commit_msg>Fixes Centcom not being selflooping<commit_after>//used for holding information about unique properties of maps
//feed it json files that match the datum layout
//defaults to box
//  -Cyberboss

/datum/map_config
    var/config_filename = "_maps/tgstation2.json"
    var/map_name = "Box Station"
    var/map_path = "map_files/TgStation"
    var/map_file = "tgstation.2.1.3.dmm"

    var/minetype = "lavaland"

    var/list/transition_config = list(CENTCOMM = SELFLOOPING,
									MAIN_STATION = CROSSLINKED,
                                    EMPTY_AREA_1 = CROSSLINKED,
                                    EMPTY_AREA_2 = CROSSLINKED,
                                    MINING = SELFLOOPING,
                                    EMPTY_AREA_3 = CROSSLINKED,
                                    EMPTY_AREA_4 = CROSSLINKED,
                                    EMPTY_AREA_5 = CROSSLINKED,
                                    EMPTY_AREA_6 = CROSSLINKED,
                                    EMPTY_AREA_7 = CROSSLINKED,
                                    EMPTY_AREA_8 = CROSSLINKED)
    var/defaulted = TRUE    //if New failed

    var/config_max_users = 0
    var/config_min_users = 0
    var/voteweight = 1

/datum/map_config/New(filename = "data/next_map.json", default_to_box, delete_after)
    if(default_to_box)
        return
    LoadConfig(filename)
    if(delete_after)
        fdel(filename)

/datum/map_config/proc/LoadConfig(filename)
    if(!fexists(filename))
{'fraction_non_alphanumeric': 0.07339449541284404, 'fraction_numerical': 0.010193679918450561, 'mean_word_length': 1.5734265734265733, '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': 19, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3187404', 'n_tokens_mistral': 969, 'n_tokens_neox': 909, 'n_words': 161}