<commit_before>/**
 * Model for rep based history exercises. Does not currently keep track of the type of exercise
 */
export class RepHistory {
    private sets: number;
    private reps: number;
    private weight: number;
    private dateStamp: string;
    private x_offset: number;
    private y_offset: number;

    constructor(jsonObject: any) {
        this.sets = jsonObject.history_sets;
        this.reps = jsonObject.history_reps;
        this.weight = jsonObject.history_weight;
        this.dateStamp = jsonObject.history_date;

        // Default values -- will be changed
        this.x_offset = 0;
        this.y_offset = 0;
    }

    // Getters and setters
    public getSets(): number {
        return this.sets;
    }

    public setSets(newValue: number): void {
        this.sets = newValue;
    }

    public getReps(): number {
        return this.reps;
    }

    public setReps(newValue: number): void {
        this.reps = newValue;
    }

    public getWeight(): number {
        return this.weight;
    }

    public setWeight(newValue: number): void {
        this.weight = newValue;
    }

    public getDatestamp(): string {
        return this.dateStamp;
    }
<commit_msg>Add getter and setter for history Id<commit_after>/**
 * Model for rep based history exercises
 */
export class RepHistory {
    private historyId: number;
    private sets: number;
    private reps: number;
    private weight: number;
    private dateStamp: string;
    private x_offset: number;
    private y_offset: number;

    constructor(jsonObject: any) {
        this.historyId = jsonObject.history_exercise_id;
        this.sets = jsonObject.history_sets;
        this.reps = jsonObject.history_reps;
        this.weight = jsonObject.history_weight;
        this.dateStamp = jsonObject.history_date;

        // Default values -- will be changed
        this.x_offset = 0;
        this.y_offset = 0;
    }

    // Getters and setters
    public getHistoryId(): number {
        return this.historyId;
    }

    public setHistoryId(newValue: number): void {
        this.historyId = newValue;
    }

    public getSets(): number {
        return this.sets;
    }

    public setSets(newValue: number): void {
        this.sets = newValue;
    }

    public getReps(): number {
        return this.reps;
    }

    public setReps(newValue: number): void {
        this.reps = newValue;
    }

    public getWeight(): number {
        return this.weight;
    }

    public setWeight(newValue: number): void {
        this.weight = newValue;
    }

    public getDatestamp(): string {
        return this.dateStamp;
    }

{'fraction_non_alphanumeric': 0.09225512528473805, 'fraction_numerical': 0.0015186028853454822, 'mean_word_length': 2.261138613861386, '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': '947637', 'n_tokens_mistral': 786, 'n_tokens_neox': 758, 'n_words': 208}