<s> class Package : <EOL> def __init__ ( self , category , name , revision , semver , num = <NUM_LIT:0> ) : <EOL> self . category = category <EOL> self . name = name <EOL> self . revision = revision <EOL> self . semver = semver <EOL> self . num = num <EOL> def __str__ ( self ) : <EOL> return '<STR_LIT>' . format ( self ) <EOL> def __eq__ ( self , other ) : <EOL> return self . name == other . name and self . semver == other . semver <EOL> def __ne__ ( self , other ) : <EOL> return not __eq__ ( other ) <EOL> def __hash__ ( self ) : <EOL> const = <NUM_LIT> <EOL> total = <NUM_LIT> <EOL> total += self . name . __hash__ ( ) * total + const <EOL> total += self . semver . __hash__ ( ) * total + const <EOL> return total </s>
