<s> from sahara import context <EOL> from sahara . service . edp . binary_retrievers import internal_swift as i_swift <EOL> from sahara . service . edp . binary_retrievers import manila_share as manila <EOL> from sahara . service . edp . binary_retrievers import sahara_db as db <EOL> from sahara . swift import utils as su <EOL> from sahara . utils . openstack import manila as m <EOL> def get_raw_binary ( job_binary , proxy_configs = None , <EOL> with_context = False , remote = None ) : <EOL> '''<STR_LIT>''' <EOL> url = job_binary . url <EOL> if url . startswith ( "<STR_LIT>" ) : <EOL> res = db . get_raw_data ( context . ctx ( ) , job_binary ) <EOL> if url . startswith ( su . SWIFT_INTERNAL_PREFIX ) : <EOL> if with_context : <EOL> res = i_swift . get_raw_data_with_context ( job_binary ) <EOL> else : <EOL> res = i_swift . get_raw_data ( job_binary , proxy_configs ) <EOL> if url . startswith ( m . MANILA_PREFIX ) : <EOL> res = manila . get_file_info ( job_binary , remote ) <EOL> return res </s>
