def parse(self, lines):
        missing = []
        packages = {}
        for line in lines:
            try:
                req = pkg_resources.parse_requirements(line.strip()).next()
            except ValueError:
                missing.append(line)
                continue
            except __HOLE__:
                continue

            specs = [s for s in req.specs if s[0] == '==']
            if specs:
                packages[req.project_name] = specs[0][1]
            else:
                missing.append(req.project_name)

        return packages, missing
dataset/ETHPy150Open rocketDuck/folivora/folivora/utils/parsers.py/PipRequirementsParser.parse