<commit_before>import math
import numpy as np


class CartesianCoords(object):
    def __init__(self, x, y, z=0):
        self.x = x
        self.y = y
        self.z = z
        self.r = math.sqrt(x**2 + y**2 + z**2)  # radial
        self.a = np.arctan2(x, y)    # azimuth
        self.h = z                   # cylindrical height


class PolarCoords(object):
    def __init__(self, radial, azimuth, height=0):
        self.r = radial
        self.a = azimuth
        self.h = height
        self.x = radial*np.cos(azimuth)
        self.y = radial*np.sin(azimuth)
        self.z = height<commit_msg>Cleaning up code, coords.py.<commit_after>import math
import numpy as np


class CartesianCoords(object):
    def __init__(self, x, y, z=0):
        self.x = x
        self.y = y
        self.z = z
        
        #radial
        self.r = math.sqrt(x**2 + y**2 + z**2)
        
        #azimuth
        self.a = np.arctan2(x, y)
        
        #cylindrical height
        self.h = z


class PolarCoords(object):
    def __init__(self, radial, azimuth, height=0):
        self.r = radial
        self.a = azimuth
        self.h = height
        self.x = radial*np.cos(azimuth)
        self.y = radial*np.sin(azimuth)
        self.z = height
{'fraction_non_alphanumeric': 0.11987127916331457, 'fraction_numerical': 0.009654062751407884, 'mean_word_length': 1.7161572052401746, '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': '1045196', 'n_tokens_mistral': 449, 'n_tokens_neox': 423, 'n_words': 104}