<s> def threePidAssocFromDict ( d ) : <EOL> assoc = ThreepidAssociation ( d [ '<STR_LIT>' ] , d [ '<STR_LIT:address>' ] , d [ '<STR_LIT>' ] , d [ '<STR_LIT>' ] , d [ '<STR_LIT>' ] , d [ '<STR_LIT>' ] ) <EOL> return assoc <EOL> class ThreepidAssociation : <EOL> def __init__ ( self , medium , address , mxid , ts , not_before , not_after ) : <EOL> """<STR_LIT>""" <EOL> self . medium = medium <EOL> self . address = address <EOL> self . mxid = mxid <EOL> self . ts = ts <EOL> self . not_before = not_before <EOL> self . not_after = not_after <EOL> self . extra_fields = { } </s>
