<s> """<STR_LIT>""" <EOL> from __future__ import division , print_function , unicode_literals <EOL> import multiprocessing <EOL> import os <EOL> import platform <EOL> import re <EOL> import subprocess <EOL> __sacred__ = True <EOL> def get_host_info ( ) : <EOL> """<STR_LIT>""" <EOL> return { <EOL> "<STR_LIT>" : _get_processor_name ( ) , <EOL> "<STR_LIT>" : multiprocessing . cpu_count ( ) , <EOL> "<STR_LIT>" : platform . node ( ) , <EOL> "<STR_LIT>" : platform . system ( ) , <EOL> "<STR_LIT>" : platform . platform ( ) , <EOL> "<STR_LIT>" : platform . python_version ( ) , <EOL> "<STR_LIT>" : platform . python_compiler ( ) <EOL> } <EOL> def _get_processor_name ( ) : <EOL> if platform . system ( ) == "<STR_LIT>" : <EOL> return platform . processor ( ) . strip ( ) <EOL> elif platform . system ( ) == "<STR_LIT>" : <EOL> os . environ [ '<STR_LIT>' ] = os . environ [ '<STR_LIT>' ] + os . pathsep + '<STR_LIT>' <EOL> command = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> return subprocess . check_output ( command ) . decode ( ) . strip ( ) <EOL> elif platform . system ( ) == "<STR_LIT>" : <EOL> command = [ "<STR_LIT>" , "<STR_LIT>" ] <EOL> all_info = subprocess . check_output ( command ) . decode ( ) <EOL> model_pattern = re . compile ( "<STR_LIT>" ) <EOL> for line in all_info . split ( "<STR_LIT:\n>" ) : <EOL> if model_pattern . match ( line ) : <EOL> return model_pattern . sub ( "<STR_LIT>" , line , <NUM_LIT:1> ) . strip ( ) </s>
