<commit_before>#!/usr/bin/python
import apt
import os
import tkinter as tk
tkinter.Tcl(screenName="Pynstall", baseName=None, className='Tk', useTk=0)

cache = apt.cache.Cache()
cache.update()

master = Tk()
#Initailize Package
pkg_name = Entry(pkgn)
pkg_name.pack()
pkg_name.focus_set()
pkg_to_install = pkg_name.get()
pkg = cache[pkg_name]

def install():
  if pkg.is_installed:
    tk.messagebox("Package is already installed.")
  else:
    pkg.mark_install()
  try:
        cache.commit()
  tk.messagebox("Package is now installed."
def remove():
  os.system("apt-get remove " + pkg)
  tk.messagebox("Package removed.")
install_pkg = Button(master, text="Install", width=15, command=install)
install_pkg.pack()

uninstall_pkg = Button(master, text="Remove", width=15, command=remove)
uninstall_pkg.pack()
mainloop()<commit_msg>Fixed syntax error<commit_after>#!/usr/bin/python
import apt
import os
import tkinter as tk
tkinter.Tcl(screenName="Pynstall", baseName=None, className='Tk', useTk=0)

cache = apt.cache.Cache()
cache.update()

master = Tk()
#Initailize Package
pkg_name = Entry(pkgn)
pkg_name.pack()
pkg_name.focus_set()
pkg_to_install = pkg_name.get()
pkg = cache[pkg_name]

def install():
  if pkg.is_installed:
    tk.messagebox("Package is already installed.")
  else:
    pkg.mark_install()
  try:
        cache.commit()
  tk.messagebox("Package is now installed.")
def remove():
  os.system("apt-get remove " + pkg)
  tk.messagebox("Package removed.")
install_pkg = Button(master, text="Install", width=15, command=install)
install_pkg.pack()

uninstall_pkg = Button(master, text="Remove", width=15, command=remove)
uninstall_pkg.pack()
mainloop()
{'fraction_non_alphanumeric': 0.1446578631452581, 'fraction_numerical': 0.006002400960384154, 'mean_word_length': 5.4863813229571985, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3454959', 'n_tokens_mistral': 599, 'n_tokens_neox': 576, 'n_words': 129}