<s> '''<STR_LIT>''' <EOL> from codalab . bundles . derived_bundle import DerivedBundle <EOL> from codalab . common import ( <EOL> State , <EOL> UsageError , <EOL> ) <EOL> from codalab . lib . completers import DockerImagesCompleter <EOL> from codalab . objects . metadata_spec import MetadataSpec <EOL> class RunBundle ( DerivedBundle ) : <EOL> BUNDLE_TYPE = '<STR_LIT>' <EOL> METADATA_SPECS = list ( DerivedBundle . METADATA_SPECS ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , basestring , '<STR_LIT>' , completer = DockerImagesCompleter ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , basestring , '<STR_LIT>' , formatting = '<STR_LIT>' ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , basestring , '<STR_LIT>' , formatting = '<STR_LIT:size>' ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , basestring , '<STR_LIT>' , formatting = '<STR_LIT:size>' ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , int , '<STR_LIT>' ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , int , '<STR_LIT>' ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , basestring , '<STR_LIT>' ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , int , '<STR_LIT>' ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , bool , '<STR_LIT>' ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , list , '<STR_LIT>' , generated = True ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT:time>' , float , '<STR_LIT>' , generated = True , formatting = '<STR_LIT>' ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , float , '<STR_LIT>' , generated = True , formatting = '<STR_LIT>' ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , float , '<STR_LIT>' , generated = True , formatting = '<STR_LIT>' ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , float , '<STR_LIT>' , generated = True , formatting = '<STR_LIT:size>' ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , float , '<STR_LIT>' , generated = True , formatting = '<STR_LIT:size>' ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , float , '<STR_LIT>' , generated = True , formatting = '<STR_LIT:size>' ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , int , '<STR_LIT>' , generated = True , formatting = '<STR_LIT:date>' ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , int , '<STR_LIT>' , generated = True , formatting = '<STR_LIT:date>' ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , basestring , '<STR_LIT>' , generated = True ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , int , '<STR_LIT>' , generated = True ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , basestring , '<STR_LIT>' , generated = True ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , basestring , '<STR_LIT>' , generated = True ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , basestring , '<STR_LIT>' , generated = True ) ) <EOL> @ classmethod <EOL> def construct ( cls , targets , command , metadata , owner_id , uuid = None , data_hash = None , state = State . CREATED ) : <EOL> if not isinstance ( command , basestring ) : <EOL> raise UsageError ( '<STR_LIT>' % ( command , ) ) <EOL> return super ( RunBundle , cls ) . construct ( targets , command , metadata , owner_id , uuid , data_hash , state ) </s>
