<commit_before>'''
 Multiple Constructors

 A class can have multiple constructors that assign the fields in different ways. 
 Sometimes it's beneficial to specify every aspect of an object's data by assigning 
 parameters to the fields, but other times it might be appropriate to define only 
 one or a few.

 Advanced example written in Python Mode by: <NAME> (NITH)
 Original example in Java Mode: Example->Basic->Objects->MultipleConstructors
'''

def setup():
    size(640, 360)
    smooth(4)
    noLoop()

    ellipseMode(CENTER)
    strokeWeight(2.5)
    stroke(0)
    fill('#FFFF00')

    global spots
    spots = Spot(), Spot(radius=58), Spot(x=120, y=70),\
        Spot(width / 2, height / 2, 120)

def draw():
    background(0300)
    for sp in spots:
        sp.display()

class Spot:

    def __init__(self, x=0, y=0, radius=40):
        self.x, self.y = x or width / 4, y or height / 2
        self.radius, self.diam = radius, radius * 2

    def display(self):
        ellipse(self.x, self.y, self.diam, self.diam)
<commit_msg>Updated Multiline Assignment in MultipleConstructors.py<commit_after>'''
 Multiple Constructors

 A class can have multiple constructors that assign the fields in different ways. 
 Sometimes it's beneficial to specify every aspect of an object's data by assigning 
 parameters to the fields, but other times it might be appropriate to define only 
 one or a few.

 Advanced example written in Python Mode by: <NAME> (NITH)
 Original example in Java Mode: Example->Basic->Objects->MultipleConstructors
'''

def setup():
    size(640, 360)
    smooth(4)
    noLoop()

    ellipseMode(CENTER)
    strokeWeight(2.5)
    stroke(0)
    fill('#FFFF00')

    global spots
    spots = Spot(), Spot(radius=58), Spot(x=120, y=70),\
        Spot(width / 2, height / 2, 120)

def draw():
    background(0300)
    for sp in spots:
        sp.display()

class Spot:

    def __init__(self, x=0, y=0, radius=40):
        self.x = x or width / 4
        self.y = y or height / 2
        self.radius = radius
        self.diam = radius * 2

    def display(self):
        ellipse(self.x, self.y, self.diam, self.diam)


{'fraction_non_alphanumeric': 0.10499300046663555, 'fraction_numerical': 0.032664489034064395, 'mean_word_length': 2.9339449541284406, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '2772001', 'n_tokens_mistral': 716, 'n_tokens_neox': 644, 'n_words': 244}