<commit_before>import numpy as np
import os
from transformations import euler_matrix


def loadRDR(rdrfile):
    # OBJ_fmt = 'O {id} {dist} {lat_dist} {rel_spd} {dyn_prop} {rcs} {w} {l}'
    # TGT_fmt = 'T {id} {dist} {lat_dist} {rel_spd} {dyn_prop} {traj} {w} {l} {obst_probab} {exist_probab} {rel_acc} {type} {lost_reason}'
    T_pts = []
    O_pts = []
    for line in open(rdrfile):
        line = line.rstrip()
        # Assuming that tgt messages happen after obj messages
        tag = line[0]
        data = line[2:].rstrip()
        tokens = [float(e) for e in data.split(' ')]
        if tag == 'T':<commit_msg>Removed extra import from RadarTransforms<commit_after>import numpy as np
import os

def loadRDR(rdrfile):
    # OBJ_fmt = 'O {id} {dist} {lat_dist} {rel_spd} {dyn_prop} {rcs} {w} {l}'
    # TGT_fmt = 'T {id} {dist} {lat_dist} {rel_spd} {dyn_prop} {traj} {w} {l} {obst_probab} {exist_probab} {rel_acc} {type} {lost_reason}'
    T_pts = []
    O_pts = []
    for line in open(rdrfile):
        line = line.rstrip()
        # Assuming that tgt messages happen after obj messages
        tag = line[0]
        data = line[2:].rstrip()
        tokens = [float(e) for e in data.split(' ')]
        if tag == 'T':
{'fraction_non_alphanumeric': 0.15472312703583063, 'fraction_numerical': 0.003257328990228013, 'mean_word_length': 3.0163398692810457, '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': '4642434', 'n_tokens_mistral': 479, 'n_tokens_neox': 472, 'n_words': 131}