<commit_before>#!/usr/bin/env python
# Imports
import curses 

# Global Variables
screen = None;
dimensions = None;

# Main Input Loop
def main():
    global screen
    global dimensions
    # Disable output to terminal
    screen = curses.initscr()
    curses.noecho()
    screen.immedok(True)
    screen.border(0)
    screen.addstr("System Volume Control")
    dimensions = screen.getmaxyx()

    # Main Input Loop
    user_input = None
    while user_input != 7:
        draw_bars()
        screen.getch()

    # Break out of main loop, end program
    curses.endwin()

def draw_bars():
    box1 = curses.newwin(dimensions[0]-10, dimensions[1]-10, 10, 10)
    box1.immedok(True)
    
    box1.box()    
    box1.addstr("System Volume")

if __name__ == "__main__":<commit_msg>Added main event loop<commit_after>#!/usr/bin/env python
# Imports
import curses 

# Global Variables
screen = None;
dimensions = None;
# Getch escape representation
escape_character = 27

# Main Input Loop
def main():
    global screen
    global dimensions
    # Disable output to terminal
    screen = curses.initscr()
    curses.noecho()
    screen.immedok(True)
    screen.border(0)
    screen.addstr("System Volume Control")
    dimensions = screen.getmaxyx()

    # Main Input Loop
    user_input = None
    while user_input != escape_character:
        draw_bars()
        user_input = screen.getch()

    # Break out of main loop, end program
    curses.endwin()

def draw_bars():
    box1 = curses.newwin(dimensions[0]-10, dimensions[1]-10, 10, 10)
    box1.immedok(True)
    
    box1.box()    
    box1.addstr("Bar")

if __name__ == "__main__":
{'fraction_non_alphanumeric': 0.10954712362301101, 'fraction_numerical': 0.020195838433292534, 'mean_word_length': 2.9684466019417477, 'pattern_counts': {'":': 2, '<': 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': '587973', 'n_tokens_mistral': 566, 'n_tokens_neox': 538, 'n_words': 139}