| from typing import List | |
| def snake_case_to_human_readable(s: str) -> str: | |
| return " ".join(s.capitalize().split("_")) | |
| def int_csv_to_list(int_csv_str: str) -> List[int]: | |
| """Convert a CSV of ints to a list of ints.""" | |
| return [int(i.strip()) for i in int_csv_str.split(',') if i] | |
| def get_max_abs_int(int_csv_str: str) -> int: | |
| """Get the max absolute value int from an int CSV.""" | |
| abs_ints = [abs(i) for i in int_csv_to_list(int_csv_str)] | |
| return max(abs_ints) | |