def get_sys_info():
blob = []<EOL>commit = None<EOL>if os.path.isdir("<STR_LIT>") and os.path.isdir("<STR_LIT>"):<EOL><INDENT>try:<EOL><INDENT>pipe = subprocess.Popen('<STR_LIT>'.split("<STR_LIT:U+0020>"),<EOL>stdout=subprocess.PIPE,<EOL>stderr=subprocess.PIPE)<EOL>so, serr = pipe.communicate()<EOL><DEDENT>except (OSError, ValueError):<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>if pipe.returncode == <NUM_LIT:0>:<EOL><INDENT>commit = so<EOL>try:<EOL><INDENT>commit = so.decode('<STR_LIT:utf-8>')<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT>commit = commit.strip().strip('<STR_LIT:">')<EOL><DEDENT><DEDENT><DEDENT>blob.append(('<STR_LIT>', commit))<EOL>try:<EOL><INDENT>(sysname, nodename, release,<EOL>version, machine, processor) = platform.uname()<EOL>blob.extend([<EOL>("<STR_LIT>", '<STR_LIT:.>'.join(map(str, sys.version_info))),<EOL>("<STR_LIT>", struct.calcsize("<STR_LIT:P>") * <NUM_LIT:8>),<EOL>("<STR_LIT>", "<STR_LIT>".format(sysname=sysname)),<EOL>("<STR_LIT>", "<STR_LIT>".format(release=release)),<EOL>("<STR_LIT>", "<STR_LIT>".format(machine=machine)),<EOL>("<STR_LIT>", "<STR_LIT>".format(processor=processor)),<EOL>("<STR_LIT>", "<STR_LIT>".format(byteorder=sys.byteorder)),<EOL>("<STR_LIT>", "<STR_LIT>".format(lc=os.environ.get('<STR_LIT>', "<STR_LIT:None>"))),<EOL>("<STR_LIT>", "<STR_LIT>".format(lang=os.environ.get('<STR_LIT>', "<STR_LIT:None>"))),<EOL>("<STR_LIT>", '<STR_LIT:.>'.join(map(str, locale.getlocale()))),<EOL>])<EOL><DEDENT>except (KeyError, ValueError):<EOL><INDENT>pass<EOL><DEDENT>return blob<EOL>
Returns system information as a dict