<commit_before>"""
Check for unique lists within an array
"""

def unique_list(array):

    n_rows = len(array)
    n_elements = len(array[0])

    unique_array = []

# for each row

    for i in range(n_rows):

        row_a = array[i]

        equal_row = False

        # for all subsequent rows

        for j in range(i+1,n_rows):

            row_b = array[j]

            # check if each element in rows are equal, breaking after finding even one unequal element

            for k in range(n_elements):

                equal_element = True

                if row_a[k] != row_b[k]:

                    equal_element = False
                    break

            if equal_element == True:

                equal_row = True
                break

        if equal_row == True:

            pass

        # append all unique rows to new array

        else:

            unique_array.append(row_a)


    return unique_array














<commit_msg>Trying elements to check arg<commit_after>"""
Check for unique lists within an array
"""

def unique_list(array, elements_to_check):
    """

    :param array: Array of lists to be checked
    :param elements_to_check: range of numbers corresponding to indices of list
    :return: new unique array
    """

    n_rows = len(array)

    unique_array = []

# for each row

    for i in range(n_rows):

        row_a = array[i]

        equal_row = False

        # for all subsequent rows

        for j in range(i+1,n_rows):

            row_b = array[j]

            # check if each element in rows are equal, breaking after finding even one unequal element


            for k in elements_to_check:

                equal_element = True

                if row_a[k] != row_b[k]:

                    equal_element = False
                    break

            if equal_element == True:

                equal_row = True
                break

        if equal_row == True:

            pass

        # append all unique rows to new array

        else:

            unique_array.append(row_a)


    return unique_array















{'fraction_non_alphanumeric': 0.0659025787965616, 'fraction_numerical': 0.0014326647564469914, 'mean_word_length': 1.5210589651022863, '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': '4410694', 'n_tokens_mistral': 604, 'n_tokens_neox': 543, 'n_words': 193}