@classmethod
    def site(cls, portfolio=None, floor_area="undefined", state="undefined", **kwargs):
        if not portfolio:
            portfolio = cls.portfolio()

        # Needed instead of None so that we can explicitly pass null values into the constructor.
        if floor_area == "undefined":
            floor_area = cls.rand_int(start=5, end=10000)

        if state == "undefined":
            state = cls.rand_us_state()

        site_kwargs = {
            "name": cls.rand_str(length=50),
            "address1": cls.rand_street_address(),
            "address2": cls.rand_int() % "Suite %s",
            "city": cls.rand_city(),
            "state": state,
            "zipcode": cls.rand_int(start=10000, end=99999),
            # "latitude": cls.rand_float(-90, 90),
            # "longitude": cls.rand_float(0, 180),
            "phone_number": cls.rand_phone(),
            "meta_data": {"area": floor_area}
        }
        site_kwargs.update(kwargs)

        s = Site.objects.create(**site_kwargs)

        s.portfolios.add(portfolio)
        s.save()
        return s
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/test_helpers.py/Factory.site/swapped operands of `%`