<commit_before>import subprocess
import os

# generate ssh-key
print("SSH Key erzeugen")
ssh_cmd = 'ssh-keygen -t rsa -b 4096 -C "<EMAIL>"'.split()
ssh_gen = subprocess.Popen(ssh_cmd, stdout=subprocess.PIPE, shell=True)
print(ssh_gen.stdout.read())

# add ssh-key
print("SSH Key zum Agent hinzufügen")
ssh_cmd = 'ssh-add ~/.ssh/id_rsa'.split()
ssh_add = subprocess.Popen(ssh_cmd, stdout=subprocess.PIPE, shell=True)
print(ssh_add.stdout.read())

# copy ssh-key
print("SSH Key kopieren")
cat_cmd = 'cat ~/.ssh./id_rsa.pub'.split()
cat = subprocess.Popen(cat_cmd, stdout=subprocess.PIPE, shell=True)
xclip_cmd = 'xclip'.split()
xclip = subprocess.Popen(xclip_cmd, stdin=cat.stdout, stdout=subprocess.PIPE, shell=False)
print(xclip.stdout.read())
print("SSH Key ist in der Zwischenablage. Auf dieser Seite einfügen: https://github.com/settings/ssh/new ")
wait = input("Enter drücken wenn es weitergehen kann.")

# workspace erzeugen und Repository klonen
print("workspace erzeugen und alltheconfs klonen")
os.mkdir("workspace")
os.chdir("workspace")
git_cmd = 'git clone git@github.com:Syralist/alltheconfs.git'.split()
git = subprocess.Popen(git_cmd, stdout=subprocess.PIPE, shell=False)
print(git.stdout.read())
print("im Verzeichnis ~/workspace/alltheconfs gehts weiter")<commit_msg>xclip durch xsel ersetzt<commit_after>import subprocess
import os

# generate ssh-key
print("SSH Key erzeugen")
ssh_cmd = 'ssh-keygen -t rsa -b 4096 -C "<EMAIL>"'.split()
ssh_gen = subprocess.Popen(ssh_cmd, stdout=subprocess.PIPE, shell=True)
print(ssh_gen.stdout.read())

# add ssh-key
print("SSH Key zum Agent hinzufügen")
ssh_cmd = 'ssh-add ~/.ssh/id_rsa'.split()
ssh_add = subprocess.Popen(ssh_cmd, stdout=subprocess.PIPE, shell=True)
print(ssh_add.stdout.read())

# install xsel
install_req = "apt-get install -y xsel".split()
sudo = subprocess.Popen(["sudo", "-S"] + install_req, stdout=subprocess.PIPE)
print(sudo.stdout.read())

# copy ssh-key
print("SSH Key kopieren")
cat_cmd = 'cat ~/.ssh./id_rsa.pub'.split()
cat = subprocess.Popen(cat_cmd, stdout=subprocess.PIPE, shell=True)
xsel_cmd = 'xsel -bi'.split()
xsel = subprocess.Popen(xsel_cmd, stdin=cat.stdout, stdout=subprocess.PIPE, shell=False)
print(xsel.stdout.read())
print("SSH Key ist in der Zwischenablage. Auf dieser Seite einfügen: https://github.com/settings/ssh/new ")
wait = input("Enter drücken wenn es weitergehen kann.")

# workspace erzeugen und Repository klonen
print("workspace erzeugen und alltheconfs klonen")
os.mkdir("workspace")
os.chdir("workspace")
git_cmd = 'git clone git@github.com:Syralist/alltheconfs.git'.split()
git = subprocess.Popen(git_cmd, stdout=subprocess.PIPE, shell=False)
print(git.stdout.read())
print("im Verzeichnis ~/workspace/alltheconfs gehts weiter")
{'fraction_non_alphanumeric': 0.14868804664723032, 'fraction_numerical': 0.0029154518950437317, 'mean_word_length': 6.18586387434555, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2070969', 'n_tokens_mistral': 1065, 'n_tokens_neox': 1035, 'n_words': 218}