

def __init__(self, filename, target_dir):
    self.filename = self
    self.target_dir = target_dir
    self.thumbloc = (0.5, 0.5)
    self.extract_docstring()
    with open(filename, 'r') as fid:
        self.filetext = fid.read()
    outfilename = op.join(target_dir, self.rstfilename)
    if ((not op.exists(outfilename)) or (op.getmtime(outfilename) < op.getmtime(filename))):
        self.exec_file()
    else:
        print('skipping {0}'.format(self.filename))

dataset/ETHPy150Open scikit-beam/scikit-beam/doc/sphinxext/plot_generator.py ExampleGenerator.__init__/VarMisuse@18/22 `filename`->`self`