def get_info_from_project_file(self, pfile):
        pdir = self.which_project_dir(pfile)
        if pdir:
            pname = os.path.relpath(pfile, pdir).replace(".sublime-project", "")
        else:
            pname = os.path.basename(pfile).replace(".sublime-project", "")
        pd = JsonFile(pfile).load()
        if pd and "folders" in pd and pd["folders"]:
            folder = pd["folders"][0].get("path", "")
        else:
            folder = ""
        star = False
        for w in sublime.windows():
            if w.project_file_name() == pfile:
                star = True
                break
        return {
            pname: {
                "folder": expand_folder(folder, pfile),
                "file": pfile,
                "star": star
                }
            }
dataset/ETHPy150Open randy3k/Project-Manager/pm.py/Manager.get_info_from_project_file/original