def extract_hook_names(ent):
hnames = []<EOL>for hook in ent["<STR_LIT>"]["<STR_LIT>"] + ent["<STR_LIT>"]["<STR_LIT>"]:<EOL><INDENT>hname = os.path.basename(hook["<STR_LIT>"])<EOL>hname = os.path.splitext(hname)[<NUM_LIT:0>]<EOL>hname = hname.strip()<EOL>hname = hname.replace("<STR_LIT>", "<STR_LIT>")<EOL>hname = hname.replace("<STR_LIT>", "<STR_LIT>")<EOL>if hname in hnames:<EOL><INDENT>continue<EOL><DEDENT>hnames.append(hname)<EOL><DEDENT>hnames.sort()<EOL>return hnames<EOL>
Extract hook names from the given entity