<commit_before>#!/usr/bin/env python

import os
import sys
import platform
import subprocess

def has_admin():
    if platform.system() == 'Windows':
        try:
            # only windows users with admin privileges can read the C:\windows\temp
            temp = os.listdir(os.sep.join([os.environ.get('SystemRoot','C:\\windows'),'temp']))
        except:
            return False
        else:
            return True
    else:
    	if os.geteuid() == 0:
    		return True

def apt_install_package(package_name):
	print("> apt-get install {pack}...".format(pack=package_name))
	proc = subprocess.Popen('apt-get install -y {pack}'.format(pack=package_name), shell=True, stdin=None,
			stdout=subprocess.STDOUT, stderr=subprocess.STDOUT)
	proc.wait();
	print("done.")

print("=======<FTC Java Autoconfigurator>=======")
print("= written by @archimedespi of Team 6806 =")
if not has_admin():
	print("User does not have admin privileges!")
	print("Please run as an admin.")
	print("on Windows, this right click cmd.exe and select \"run as admin\"")
	print("on Mac or Linux, this means run with sudo")
	raise PermissionError("User does not have root/admin privileges")

if platform.system == "Linux":
	pass
elif platform.system == "Windows":
	pass
elif platform.system == "Darwin":
	pass
else:
	raise RuntimeError("System not supported by script")<commit_msg>platform.system() is a function<commit_after>#!/usr/bin/env python

import os
import sys
import platform
import subprocess

def has_admin():
    if platform.system() == 'Windows':
        try:
            # only windows users with admin privileges can read the C:\windows\temp
            temp = os.listdir(os.sep.join([os.environ.get('SystemRoot','C:\\windows'),'temp']))
        except:
            return False
        else:
            return True
    else:
    	if os.geteuid() == 0:
    		return True

def apt_install_package(package_name):
	print("> apt-get install {pack}...".format(pack=package_name))
	proc = subprocess.Popen('apt-get install -y {pack}'.format(pack=package_name), shell=True, stdin=None,
			stdout=subprocess.STDOUT, stderr=subprocess.STDOUT)
	proc.wait();
	print("done.")

print("=======<FTC Java Autoconfigurator>=======")
print("= written by @archimedespi of Team 6806 =")
if not has_admin():
	print("User does not have admin privileges!")
	print("Please run as an admin.")
	print("on Windows, this right click cmd.exe and select \"run as admin\"")
	print("on Mac or Linux, this means run with sudo")
	raise PermissionError("User does not have root/admin privileges")

if platform.system() == "Linux":
elif platform.system() == "Windows":
	pass
elif platform.system() == "Darwin":
	pass
else:
	raise RuntimeError("System not supported by script")
{'fraction_non_alphanumeric': 0.14374542794440381, 'fraction_numerical': 0.0036576444769568397, 'mean_word_length': 3.82363315696649, 'pattern_counts': {'":': 6, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2902236', 'n_tokens_mistral': 867, 'n_tokens_neox': 830, 'n_words': 255}