def gen_line_mapping(self, program_file):
        line_mapping = {}
        with open(program_file, 'r') as program:
            for line_num, line_content in enumerate(program.readlines()):
                for func in self.api_calls:
                    if utils.is_ps_call(func, line_content):
                        # line num in most text editors is 1-indexed
                        line_mapping[line_num+1] = line_content
        return line_mapping
Return a dictionary of lines as keys and
dataset/ETHPy150Open alixander/PyScribe/pyscribe/pyscribe.py/Runner.gen_line_mapping