<commit_before>import libtcodpy as tcod
import os

VERSION = '0.7'
WINDOW_TITLE = 'Reactor 3 - %s' % VERSION
WINDOW_SIZE = (100, 60)
MAP_SIZE = [250, 250, 5]
MAP_WINDOW_SIZE = (WINDOW_SIZE[0]/2, WINDOW_SIZE[1]-10)
ITEM_WINDOW_SIZE = (40,1)
CONSOLE_WINDOW_SIZE = (40,30)
MESSAGE_WINDOW_SIZE = (100,10)
PREFAB_WINDOW_SIZE = [40,40]
X_CUTOUT_WINDOW_SIZE = (15,15)
Y_CUTOUT_WINDOW_SIZE = (15,15)
PREFAB_WINDOW_OFFSET = (MAP_WINDOW_SIZE[0]+26,1)
CURSOR_POS = [WINDOW_SIZE[0]/2, WINDOW_SIZE[1]/2, 2]
MAP_CURSOR = [0,0]
PREFAB_CURSOR = [0,0]
PREFABS = {}
TICKER = ['\\', '|', '/', '-']
ENCOUNTER_ANIMATION_TIME = 30
UPDATE_CAMP_RATE = 5

#Map stuff
WORLD_INFO = {'map': [],
	'id': None,
	'seed': 0,
	'time': 0,
	'real_time_of_day': 6000,
	'time_of_day': 'limbo',
	'time_scale': 1,
	'length_of_day': 6000,
	'day': 0,
	'ticks': 0,
	'sub_ticks': 0,
	'max_sub_ticks': 5,
	'tps': 0,
	'last_update_time': 0,
	'life_density': 'Sparse',
	'life_spawn_interval': [0, (0, 0)],
	'wildlife_spawn_interval': [0, (0, 0)],
	'world gravity': 0.3,
	'lifeid': 1,
	'itemid': 1,
	'groupid': 1,
	'campid': 1,
	'effectid': 1,
	'zoneid': 1,
	'memoryid': 1,
	'goalid': 1,
	'jobid': 1,
	'dialogid': 1,
	'dialogs': {},
	'chunk_map': {},
	'camps': {},
	'groups': {},
	'jobs': {},
	'references': {},
	'reference_map': {'roads': [], 'buildings': []},
	'slices': {},
	'chunk_size': 5,
	'lights': [],
	'timers': [],
	'weather': {}}

#Return values
STATE_CHANGE = 2
STATE_UNCHANGED = 3
RETURN_SKIP = 4

STATE_ICONS = {}

#States
TIER_RELAXED = 1
TIER_SURVIVAL = 2
TIER_URGENT = 3
TIER_COMBAT = 4
TIER_TACTIC = 5

YARDS = 0.5
METERS = 0.4572

#Group stages
STAGE_FORMING = 1
STAGE_SETTLING = 2
STAGE_SETTLED = 3
STAGE_RAIDING = 4

CAMERA_POS = [0,0,2]
PREFAB_CAMERA_POS = [0,0,0]
SUN_POS = [0,0,25]
SUN_BRIGHTNESS = [100]
FPS = 1000
FPS_TERRAFORM = 100
LOW_FPS = 15
FONT = 'terminal8x8_gs_as_incol.png'
HEIGHT_MAP = [[]]
DARK_BUFFER = [[]]
LIGHT_BUFFER = [[]]
LOS_DARK_BUFFER = [[]]
LOS_LIGHT_BUFFER = [[]]
MAP_RGB_BACK_BUFFER = [[],[],[]]
MAP_RGB_FORE_BUFFER = [[],[],[]]
PREFAB_RGB_BACK_BUFFER = [[],[],[]]
PREFAB_RGB_FORE_BUFFER = [[],[],[]]
X_CUTOUT_RGB_FORE_BUFFER = [[],[],[]]
Y_CUTOUT_RGB_FORE_BUFFER = [[],[],[]]
X_CUTOUT_RGB_BACK_BUFFER = [[],[],[]]
Y_CUTOUT_RGB_BACK_BUFFER = [[],[],[]]
RGB_LIGHT_BUFFER = [[],[],[]]<commit_msg>FPS cap<commit_after>import libtcodpy as tcod
import os

VERSION = '0.7'
WINDOW_TITLE = 'Reactor 3 - %s' % VERSION
WINDOW_SIZE = (100, 60)
MAP_SIZE = [250, 250, 5]
MAP_WINDOW_SIZE = (WINDOW_SIZE[0]/2, WINDOW_SIZE[1]-10)
ITEM_WINDOW_SIZE = (40,1)
CONSOLE_WINDOW_SIZE = (40,30)
MESSAGE_WINDOW_SIZE = (100,10)
PREFAB_WINDOW_SIZE = [40,40]
X_CUTOUT_WINDOW_SIZE = (15,15)
Y_CUTOUT_WINDOW_SIZE = (15,15)
PREFAB_WINDOW_OFFSET = (MAP_WINDOW_SIZE[0]+26,1)
CURSOR_POS = [WINDOW_SIZE[0]/2, WINDOW_SIZE[1]/2, 2]
MAP_CURSOR = [0,0]
PREFAB_CURSOR = [0,0]
PREFABS = {}
TICKER = ['\\', '|', '/', '-']
ENCOUNTER_ANIMATION_TIME = 30
UPDATE_CAMP_RATE = 5

#Map stuff
WORLD_INFO = {'map': [],
	'id': None,
	'seed': 0,
	'time': 0,
	'real_time_of_day': 6000,
	'time_of_day': 'limbo',
	'time_scale': 1,
	'length_of_day': 6000,
	'day': 0,
	'ticks': 0,
	'sub_ticks': 0,
	'max_sub_ticks': 5,
	'tps': 0,
	'last_update_time': 0,
	'life_density': 'Sparse',
	'life_spawn_interval': [0, (0, 0)],
	'wildlife_spawn_interval': [0, (0, 0)],
	'world gravity': 0.3,
	'lifeid': 1,
	'itemid': 1,
	'groupid': 1,
	'campid': 1,
	'effectid': 1,
	'zoneid': 1,
	'memoryid': 1,
	'goalid': 1,
	'jobid': 1,
	'dialogid': 1,
	'dialogs': {},
	'chunk_map': {},
	'camps': {},
	'groups': {},
	'jobs': {},
	'references': {},
	'reference_map': {'roads': [], 'buildings': []},
	'slices': {},
	'chunk_size': 5,
	'lights': [],
	'timers': [],
	'weather': {}}

#Return values
STATE_CHANGE = 2
STATE_UNCHANGED = 3
RETURN_SKIP = 4

STATE_ICONS = {}

#States
TIER_RELAXED = 1
TIER_SURVIVAL = 2
TIER_URGENT = 3
TIER_COMBAT = 4
TIER_TACTIC = 5

YARDS = 0.5
METERS = 0.4572

#Group stages
STAGE_FORMING = 1
STAGE_SETTLING = 2
STAGE_SETTLED = 3
STAGE_RAIDING = 4

CAMERA_POS = [0,0,2]
PREFAB_CAMERA_POS = [0,0,0]
SUN_POS = [0,0,25]
SUN_BRIGHTNESS = [100]
FPS = 60
FPS_TERRAFORM = 100
LOW_FPS = 15
FONT = 'terminal8x8_gs_as_incol.png'
HEIGHT_MAP = [[]]
DARK_BUFFER = [[]]
LIGHT_BUFFER = [[]]
LOS_DARK_BUFFER = [[]]
LOS_LIGHT_BUFFER = [[]]
MAP_RGB_BACK_BUFFER = [[],[],[]]
MAP_RGB_FORE_BUFFER = [[],[],[]]
PREFAB_RGB_BACK_BUFFER = [[],[],[]]
PREFAB_RGB_FORE_BUFFER = [[],[],[]]
X_CUTOUT_RGB_FORE_BUFFER = [[],[],[]]
Y_CUTOUT_RGB_FORE_BUFFER = [[],[],[]]
X_CUTOUT_RGB_BACK_BUFFER = [[],[],[]]
Y_CUTOUT_RGB_BACK_BUFFER = [[],[],[]]
RGB_LIGHT_BUFFER = [[],[],[]]
{'fraction_non_alphanumeric': 0.21456607064980376, 'fraction_numerical': 0.06018316615787178, 'mean_word_length': 5.628612716763006, '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': '2161389', 'n_tokens_mistral': 2438, 'n_tokens_neox': 2235, 'n_words': 387}