<s> import xml . etree . ElementTree as ET <EOL> class ivy : <EOL> def extractVersions ( self , fileContent , fileName ) : <EOL> root = ET . fromstring ( fileContent ) <EOL> deps = root . findall ( '<STR_LIT>' ) <EOL> res = [ ] <EOL> for dep in deps : <EOL> v = dep . attrib [ '<STR_LIT:name>' ] + "<STR_LIT>" + dep . attrib [ '<STR_LIT>' ] <EOL> if '<STR_LIT>' in dep . attrib : <EOL> v = v + "<STR_LIT>" + dep . attrib [ '<STR_LIT>' ] + "<STR_LIT:)>" <EOL> res . append ( v ) <EOL> return res </s>
