def expMenu(groups,folder):
<EOL>orphans = sorted(list(groups.keys()))<EOL>menu=[]<EOL>if os.path.exists(folder+'<STR_LIT>'):<EOL><INDENT>with open(folder+'<STR_LIT>') as f:<EOL><INDENT>raw=f.read()<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raw="<STR_LIT>"<EOL><DEDENT>for line in raw.split("<STR_LIT:\n>"):<EOL><INDENT>item={}<EOL>if len(line)==<NUM_LIT:0>:<EOL><INDENT>continue<EOL><DEDENT>if line.startswith("<STR_LIT>"):<EOL><INDENT>line=line[<NUM_LIT:1>:].split("<STR_LIT:U+0020>",<NUM_LIT:2>)<EOL>item["<STR_LIT>"]=line[<NUM_LIT:0>]<EOL>item["<STR_LIT>"]='<STR_LIT>'<EOL>if len(line)><NUM_LIT:1>:<EOL><INDENT>item["<STR_LIT>"]=line[<NUM_LIT:1>]<EOL><DEDENT>else:<EOL><INDENT>item["<STR_LIT>"]="<STR_LIT>"<EOL><DEDENT>if len(line)><NUM_LIT:2> and len(line[<NUM_LIT:2>]):<EOL><INDENT>item["<STR_LIT>"]=line[<NUM_LIT:2>]<EOL>if item["<STR_LIT>"][<NUM_LIT:0>]=="<STR_LIT:*>":<EOL><INDENT>item["<STR_LIT>"]='<STR_LIT:*>'<EOL><DEDENT><DEDENT>else:<EOL><INDENT>item["<STR_LIT>"]='<STR_LIT>'<EOL><DEDENT>if item["<STR_LIT>"] in orphans:<EOL><INDENT>orphans.remove(item["<STR_LIT>"])<EOL><DEDENT><DEDENT>elif line.startswith("<STR_LIT>"):<EOL><INDENT>line=line[<NUM_LIT:3>:].strip().split("<STR_LIT:U+0020>",<NUM_LIT:1>)<EOL>item["<STR_LIT:title>"]=line[<NUM_LIT:0>]<EOL>item["<STR_LIT>"]='<STR_LIT>'<EOL>if len(line)><NUM_LIT:1>:<EOL><INDENT>if line[<NUM_LIT:1>].startswith("<STR_LIT>"):<EOL><INDENT>line[<NUM_LIT:1>]=line[<NUM_LIT:1>][<NUM_LIT:2>:]<EOL><DEDENT>item["<STR_LIT>"]=line[<NUM_LIT:1>]<EOL><DEDENT><DEDENT>else:<EOL><INDENT>item["<STR_LIT>"]=line<EOL><DEDENT>menu.append(item)<EOL><DEDENT>menu.append({"<STR_LIT:title>":"<STR_LIT>","<STR_LIT>":"<STR_LIT>"})<EOL>for ophan in orphans:<EOL><INDENT>menu.append({"<STR_LIT>":ophan,"<STR_LIT>":ophan,"<STR_LIT>":'<STR_LIT>',"<STR_LIT>":'<STR_LIT>',"<STR_LIT>":'<STR_LIT>'})<EOL><DEDENT>return menu<EOL>
read experiment.txt and return a dict with [firstOfNewExp, color, star, comments].