<commit_before>module Sublist exposing (..)


type ListComparison = Equal | Unequal | Sublist | Superlist


sublist: List Int -> List Int -> ListComparison
sublist list1 list2 =
    if list1 == list2 then
        Equal
    else if List.all (\element -> List.member element list2) list1 then
        Sublist
    else if List.all (\element -> List.member element list1) list2 then
        Superlist
    else
        Unequal


version : Int
version =
    2<commit_msg>Extract isSublist method<commit_after>module Sublist exposing (..)


type ListComparison = Equal | Unequal | Sublist | Superlist


sublist: List Int -> List Int -> ListComparison
sublist list1 list2 =
    if list1 == list2 then
        Equal
    else if isSublist list1 list2 then
        Sublist
    else if isSublist list2 list1 then
        Superlist
    else
        Unequal


isSublist: List Int -> List Int -> Bool
isSublist list1 list2 =
    list1
        |> List.all (\element -> List.member element list2)


version : Int
version =
    2
{'fraction_non_alphanumeric': 0.0702274975272008, 'fraction_numerical': 0.021760633036597428, 'mean_word_length': 2.5017301038062283, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '1743644', 'n_tokens_mistral': 306, 'n_tokens_neox': 308, 'n_words': 108}