# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# +
def pass_x(path):
    x = np.empty((0,28),float)
    row = np.array([])
    xf = open(path,'r')
    line = xf.readline()
    while line:
        for i in range(28): 
            row = np.append(row,float(line))
            line = xf.readline()
        x = np.append(x,np.expand_dims(row, axis=0),axis=0)
        row = np.array([])
    xf.close()
    return x

def pass_y(path):
    y = np.array([])
    with open(path,'r') as f:
        for line in f:
            y = np.append(y,float(line))
            if 'str' in line:
                  break
    return y
# -



StarcoderdataJupyterScriptsDedupFiltered