<commit_before>
class DataParser(object):
    def __init__(self, data):
        self.data = data
        for mission in self.data:
            alt = mission["alt"]
            lat = mission["lat"]
            lon = mission["lng"]
            if mission["name"].contains('takeoff'):
                self.takeoff(alt)
            elif mission["name"].contains('fly_to'):
                self.fly_to(lat, lon, alt)
            elif mission["name"].contains('rtl'):
                self.rtl()

    def takeoff(self, alt):
        print "taking off"

    def fly_to(self, lat, lon, alt):
        print "flying to"

    def rtl(self):
        print 'rtl'
<commit_msg>Minor fix for data parser<commit_after>
class DataParser(object):
    def __init__(self, data):
        self.data = data
        for mission in self.data:
            alt = mission["alt"]
            lat = mission["lat"]
            lon = mission["lng"]
            if mission["name"].contains('takeoff'):
                self.takeoff(alt)
            elif mission["name"].contains('fly_to'):
                self.fly_to(lat, lon, alt)
            elif mission["name"].contains('rtl'):
                self.rtl()

    def takeoff(self, alt):
        print "taking off: " + str(alt)

    def fly_to(self, lat, lon, alt):
        print "flying to: " + str(lat) + " " + str(lon) + " " + str(alt)

    def rtl(self):
        print 'Return to launch'

{'fraction_non_alphanumeric': 0.14072494669509594, 'fraction_numerical': 0.0, 'mean_word_length': 1.8216432865731462, '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': '1732582', 'n_tokens_mistral': 427, 'n_tokens_neox': 407, 'n_words': 104}