<commit_before>import { Injectable } from '@angular/core';

@Injectable()
export class EqualityService {
    isStringEqualOrNonOrderedArrayEqual(value1: string | any[], value2: string | any[]) {
        if (this.isNullOrUndefined(value1)) {
            return false;
        }

        if (this.isNullOrUndefined(value2)) {
            return false;
        }

        if (this.oneValueIsStringAndTheOtherIsArray(value1, value2)) {
            console.log('oneValueIsStringAndTheOtherIsArray');
            return false;
        }

        if (this.bothValuesAreStrings(value1, value2)) {
            console.log('bothValuesAreStrings');
            return value1 === value2;
        }

        if (this.bothValuesAreArrays(value1, value2)) {
            console.log('bothValuesAreArrays');
            return this.arraysHaveEqualContent(value1 as any[], value2 as any[]);
        }

        return false;
    }

    areEqual(value1: string | any[] | object | null | undefined, value2: string | any[] | object | null | undefined) {
        if (!value1 || !value2) {
            return false;
        }

        if (this.bothValuesAreArrays(value1, value2)) {
            return this.arraysStrictEqual(value1 as any[], value2 as any[]);
        }

        if (this.bothValuesAreStrings(value1, value2)) {
            return value1 === value2;
        }

        if (this.bothValuesAreObjects(value1, value2)) {
            return JSON.stringify(value1).toLowerCase() === JSON.stringify(value2).toLowerCase();
        }

        if (this.oneValueIsStringAndTheOtherIsArray(value1, value2)) {<commit_msg>removing console logs<commit_after>import { Injectable } from '@angular/core';

@Injectable()
export class EqualityService {
    isStringEqualOrNonOrderedArrayEqual(value1: string | any[], value2: string | any[]) {
        if (this.isNullOrUndefined(value1)) {
            return false;
        }

        if (this.isNullOrUndefined(value2)) {
            return false;
        }

        if (this.oneValueIsStringAndTheOtherIsArray(value1, value2)) {
            return false;
        }

        if (this.bothValuesAreStrings(value1, value2)) {
            return value1 === value2;
        }

        if (this.bothValuesAreArrays(value1, value2)) {
            return this.arraysHaveEqualContent(value1 as any[], value2 as any[]);
        }

        return false;
    }

    areEqual(value1: string | any[] | object | null | undefined, value2: string | any[] | object | null | undefined) {
        if (!value1 || !value2) {
            return false;
        }

        if (this.bothValuesAreArrays(value1, value2)) {
            return this.arraysStrictEqual(value1 as any[], value2 as any[]);
        }

        if (this.bothValuesAreStrings(value1, value2)) {
            return value1 === value2;
        }

        if (this.bothValuesAreObjects(value1, value2)) {
            return JSON.stringify(value1).toLowerCase() === JSON.stringify(value2).toLowerCase();
        }

        if (this.oneValueIsStringAndTheOtherIsArray(value1, value2)) {
{'fraction_non_alphanumeric': 0.11672131147540983, 'fraction_numerical': 0.02098360655737705, 'mean_word_length': 2.3564356435643563, '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': '19490', 'n_tokens_mistral': 888, 'n_tokens_neox': 884, 'n_words': 179}