<commit_before># for testting the Car class

class Car(object):
# __init__
    def __init__(self, x, v, min_dist, target_v):
        self.x_ = x;
        self.min_dist_ = min_dist
        self.v_ = v
        self.target_v_ = target_v

# methods
    @property
    def x(self):
        return self.x_

    @property
    def v(self):
        return self.v_

    def set_v(self, v):
        self.v_ = v


    def update_v(self):
        return s1.L




class Street(object):
    def __init__(self):
        self.L = [1,2,3]



t = 1


s1 = Street()

c1 = Car(2, 3, 4, 5)

c2 = Car(5, 6, 7, 8)

print c1.x

c1.set_v(100)

print c1.v

c2.x_ = 999
print c2.x_

print c1.update_v()<commit_msg>Added set_street(street_name) function to be called from Street class when adding a Car to it<commit_after># for testting the Car class

class Car(object):
# __init__
    def __init__(self, x, v, min_dist, target_v, street = "0"):
        self.x_ = x;
        self.min_dist_ = min_dist
        self.v_ = v
        self.target_v_ = target_v
        self.street_ = street

# methods
    @property
    def x(self):
        return self.x_

    @property
    def v(self):
        return self.v_

    def set_v(self, v):
        self.v_ = v

    def set_street(self, street_name):
        self.street_ = street_name

    @property
    def street(self):
        return self.street_

    def update_v(self):
        return s1.L




class Street(object):
    def __init__(self):
        self.L = [1,2,3]





# ===== The following lines are for testing how the Car class works =====

t = 1

s1 = Street()

c1 = Car(2, 3, 4, 5)
print c1.x

c1.set_v(100)
print c1.v

c1.set_street("Azadi")
print c1.street

c2 = Car(5, 6, 7, 8)
c2.x_ = 999
print c2.x

print c1.update_v()
{'fraction_non_alphanumeric': 0.1169054441260745, 'fraction_numerical': 0.033810888252149, 'mean_word_length': 2.2036697247706423, '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': '686799', 'n_tokens_mistral': 730, 'n_tokens_neox': 676, 'n_words': 189}