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

# +
import os
import numpy as np

fin = open("/home/michael/msc/mcmd/output/edgevar/edge15_", 'r')
fout = open("/home/michael/msc/mcmd/output/edgevar/edge15_clean", 'w')

block = []
n = 0
for line in fin.readlines():
    n+=1
    block.append(line)
    if line == "\n":
        if n == 401:
            for l in block:
                fout.write(l)
        n = 0
        block = []
        continue

fin.close()
fout.close()
print "Done"

StarcoderdataJupyterScriptsDedupFiltered