<commit_before>class Location:
    def __init__(self, lat, lon, street='', city='', region='',
            country=''):
        self.lat=lat
        self.lon=lon
        self.street=street
        self.city=city
        self.region=region
        self.country=country

class Person:
    def __init__(self, location, name='', income=0):
        self.location = location 
        self.name=name
        self.income=income

class Kiosk:
    def __init__(self, location, operator):
        self.location=location
        self.operator=operator

<commit_msg>Expanded classes, particularly Database class<commit_after>#Used to track physical location in the world
class Location:
    def __init__(self, lat, lon, street=None, city=None, region=None,
            country=''):
        self.lat=lat
        self.lon=lon
        self.street=street
        self.city=city
        self.region=region
        self.country=country

    #Ignore None values. Usually just lat/long, at least for now. 
    def __str__(self):
        return ' '.join([str(x) for x in [self.lat, self.lon, self.street, 
            self.city, self.region] if x is not None])

class Person:
    def __init__(self, name, location, income, blood_sugar):
        self.location = location 
        self.name=name
        self.income=income
        self.blood_sugar=blood_sugar

    #Separate on different lines because some fields (location) have multiple
    #fields in themselves
    def __str__(self):
        return ' \n'.join([str(x) for x in [self.name, self.location, self.income, self.blood_sugar]])

class Kiosk:
    def __init__(self, location, operator):
        self.location=location
        self.operator=operator

#Use as a pseudo-database until we have proper database integration
class Database:
    def __init__(self):
        self.all_people=dict()
        self.all_people['<NAME>'] = Person(name='<NAME>', 
                location=Location(0, 0), income=100, blood_sugar=50)
        self.all_people['<NAME>'] = Person(name='<NAME>', 
            location=Location(0, 0), income=200, blood_sugar=100)

    def get_patient_info(self, patient_name):
        return self.all_people[patient_name]
        

{'fraction_non_alphanumeric': 0.11095827602017423, 'fraction_numerical': 0.007336084364970197, 'mean_word_length': 2.704584040747029, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6829626', 'n_tokens_mistral': 665, 'n_tokens_neox': 634, 'n_words': 167}