<jupyter_start><jupyter_text>This notebook calculates the clock cycle count for 23 vectors when we treat cycles where the im changes as 2 cycles, and otherwise, 1 cycle.<jupyter_code>GSR_fm_file = open("GSR_fm.txt", "r")
ECG_fm_file = open("ECG_fm.txt", "r")
EEG_fm_file = open("EEG_fm.txt", "r")
im_file = open("im.txt", "r")
global_clock_cycles = []
im_change_list = [0, 10, 20, 29,38,46,54,61,68,74,80,85,90,94,98, 101, 104]
for i in range(380):
    curr_gsr = GSR_fm_file.readline().strip('\n')
    curr_ecg = ECG_fm_file.readline().strip('\n')
    curr_eeg = EEG_fm_file.readline().strip('\n')
    curr_im = im_file.readline().strip('\n')
    clock_cycles = [1]*105
    for j0 in range(105):
        if (j0 in im_change_list):
            clock_cycles[j0] += 1
    
    for j1 in range(32):
        if (curr_gsr[j1] != curr_ecg[j1] or curr_gsr[j1] != curr_eeg[j1]):
            clock_cycles[j1] += 1
    for j2 in range(32, 77, 1):
        if (curr_ecg[j2] != curr_eeg[j2]):
            clock_cycles[j2] += 1
    clock_cycle_avg = sum(clock_cycles) / len(clock_cycles)
    global_clock_cycles.append(clock_cycle_avg)
sum(global_clock_cycles) / len(global_clock_cycles)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1512884455527847, 'fraction_numerical': 0.059850374064837904, 'mean_word_length': 3.954732510288066, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '53890', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 536, 'n_tokens_neox': 485, 'n_words': 97, 'path': 'Software Model - Python/Clock Cycle Count 23.ipynb', 'repo_name': 'Calculasians/HDC-Sensor-Fusion-Research', 'size': '1203'}