(data_cache_dir)
| 6 | |
| 7 | |
| 8 | def generate_fake_data(data_cache_dir): |
| 9 | file_path = data_cache_dir + "/fake_numeric_data.txt" |
| 10 | |
| 11 | if not os.path.exists(file_path): |
| 12 | f = open(file_path, "a") |
| 13 | for i in range(10000): |
| 14 | f.write(f"{random.randint(1, 100)}\n") |
| 15 | f.close() |
| 16 | |
| 17 | |
| 18 | def load_partition_self_defined_data(file_folder_path, client_num, data_col_idx, separator=","): |
no outgoing calls
no test coverage detected