<s> import zipfile , sys , os , glob <EOL> import xml . etree . ElementTree as ET <EOL> from collections import defaultdict <EOL> anim_map = defaultdict ( list ) <EOL> for zipfilename in glob . glob ( "<STR_LIT>" ) : <EOL> try : <EOL> with zipfile . ZipFile ( zipfilename , "<STR_LIT:r>" ) as zf : <EOL> root = ET . fromstring ( zf . read ( "<STR_LIT>" ) ) <EOL> for anim in root . findall ( "<STR_LIT>" ) : <EOL> animname = anim . attrib [ '<STR_LIT:name>' ] <EOL> rootname = anim . attrib [ '<STR_LIT:root>' ] <EOL> key = ( animname , rootname ) <EOL> anim_map [ key ] . append ( zipfilename ) <EOL> except : <EOL> pass <EOL> invalid = False <EOL> for key , datalist in anim_map . iteritems ( ) : <EOL> if len ( datalist ) > <NUM_LIT:1> : <EOL> print key <EOL> print datalist <EOL> print <EOL> invalid = True <EOL> if invalid : <EOL> sys . exit ( <NUM_LIT:255> ) </s>
