<jupyter_start><jupyter_text>DEBUGGING<jupyter_code>for i in range(8):
    newarr = long_loop(initialise_state(20))
    check_config(newarr)
get_coord_list(arr)
num = len(arr)
plt.axes().set_aspect('equal')
coord_list = get_coord_list(arr)
for i in range(num):
    for j in range(num):
        print("********************************")
        current_up_state = arr[i][j][0]
        current_right_state = arr[i][j][1]
        x_current = coord_list[i][j][1]
        y_current = coord_list[i][j][0]
        print(f"Current Coords = ({x_current},{y_current})")

        left_neighbour_right_state = arr[i][j-1][1]
        x_left = coord_list[i][j-1][1]
        y_left = coord_list[i][j-1][0]

        lower_neighbour_up_state = arr[(i+1)%num][j][0]
        x_up = coord_list[(i+1)%num][j][1]
        y_up = coord_list[(i+1)%num][j][0]

        current_left_state = -(left_neighbour_right_state)
        current_down_state = -(lower_neighbour_up_state)
        print(f"Current States : up = {current_up_state}, right = {current_right_state}")
        print(f"Current States : down = {current_down_state}, left = {current_left_state}")
        
        print(f"Left Neighbour Coords = ({x_left},{y_left})")
        print(f"Left Neighbour States : right = {left_neighbour_right_state}")

        print(f"Lower Neighbour Coords = ({x_up},{y_up})")
        print(f"Lower Neighbour Right State = {left_neighbour_right_state}")
        print(f"Lower Neighbour States : up = {lower_neighbour_up_state}")
        
        
        plt.plot(x_current,y_current,'ob')

        if current_up_state == 1:
            plot_vector([x_current,y_current],[x_current,y_current+1])
        elif current_up_state == -1:
            plot_vector([x_current,y_current+1],[x_current,y_current])

        if current_right_state == 1:
            plot_vector([x_current,y_current],[x_current+1,y_current])
        elif current_right_state == -1:
            plot_vector([x_current+1,y_current],[x_current,y_current])

        if current_down_state == 1:
            plot_vector([x_current,y_current],[x_current,y_current-1])
        elif current_down_state == -1:
            plot_vector([x_current,y_current-1],[x_current,y_current])

        if current_left_state == 1:
            plot_vector([x_current,y_current],[x_current-1,y_current])
        elif current_left_state == -1:
            plot_vector([x_current-1,y_current],[x_current,y_current])
plt.xlim(-1,num+1)
plt.ylim(-1,num+1)
plt.axis('off')
plt.show()
plt.close()
#This corresponds to pic in book
arr = [[[-1,1],[-1,1],[1,-1],[-1,1]],
       [[-1,-1],[-1,-1],[-1,1],[1,-1]],
       [[-1,1],[-1,1],[1,1],[-1,1]],
       [[-1,1],[-1,1],[1,1],[-1,1]]]
arr = np.array(arr)
arr2 = np.array(
    [
        [[1,1],[1,1]],
        [[1,1],[1,1]]
    ]
)
visualise_2d_model(arr2)
arr3 = np.array(
    [
        [[1,1],[1,1],[1,1]],
        [[1,1],[1,1],[1,1]],
        [[1,1],[1,1],[1,1]]
    ]
)
visualise_2d_model(arr3)
arr4 = np.array(
    [
        [[-1,-1],[-1,-1],[-1,-1]],
        [[-1,-1],[-1,-1],[-1,-1]],
        [[-1,-1],[-1,-1],[-1,-1]]
    ]
)
visualise_2d_model(arr4)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.20063694267515925, 'fraction_numerical': 0.03949044585987261, 'mean_word_length': 3.1547619047619047, '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': '142946', 'license': 'MIT', 'n_tokens_mistral': 1261, 'n_tokens_neox': 1219, 'n_words': 152, 'path': 'Archived IPYNBs/ColdAsIce.ipynb', 'repo_name': 'AKnightWing/ColdAsIce', 'size': '3140'}