<s> class WolkLocation : <EOL> def __init__ ( self , max_up , max_down , max_size , path , server ) : <EOL> self . max_up = max_up <EOL> self . max_down = max_down <EOL> self . max_size = max_size <EOL> self . path = path <EOL> self . server = server <EOL> self . server . locations . append ( self ) <EOL> self . repos = [ ] <EOL> def __str__ ( self ) : <EOL> return repr ( self ) <EOL> def __repr__ ( self ) : <EOL> return '<STR_LIT>' . format ( path = self . path , ip = self . server . ip , size_left = self . max_size - self . committed_size ( ) , max_size = self . max_size ) <EOL> def committed_size ( self ) : <EOL> return sum ( [ r . commit_size ( ) for r in self . repos ] ) </s>
