<commit_before>
module Sample where

import Data.List

myfunc f = concat . map f

myfunc2 f g x = map f (map g x)


myfunc3 e l' = concat.map (\x->if x==e then l' else [x])

myfunc4 e l2 (x:xs) = if x == e then (l2 ++ xs) else [x] ++ check_elem xs
    where check_elem x = undefined


myfunc5 x = (x !! 0) + (x !! 2)


myfunc6 x = f x
    where f x = concat . map head

myfunc7 f g = concat . map f . g

myfunc8 f x = concat $ map f x

myfunc10 = "test" ++ concatMap (' ':) ["of","this"]

myfunc11 = concat . intersperse " "

myfunc12 f a = if f a then True else False

myfunc13 f a = if f a then False else True

myfunc14 a b = not (a == b) && not (a /= b)

myfunc15 a b = if a then 1 else if b then 1 else 2

myfunc15_NO a b = if a then 1 else if b then 3 else 2

myfunc16 a = a >>= return . id

myfunc17 a b = if b < 42 then [a] else []

{-
-- out of scope for the new version
myfunc18 (x:xs) = x

myfunc19 f (x:xs) = f x : myfunc19 f xs
myfunc19 f [] = []<commit_msg>Split up the tests for neq and eq, so there is exactly one match on each line<commit_after>
module Sample where

import Data.List

myfunc f = concat . map f

myfunc2 f g x = map f (map g x)


myfunc3 e l' = concat.map (\x->if x==e then l' else [x])

myfunc4 e l2 (x:xs) = if x == e then (l2 ++ xs) else [x] ++ check_elem xs
    where check_elem x = undefined


myfunc5 x = (x !! 0) + (x !! 2)


myfunc6 x = f x
    where f x = concat . map head

myfunc7 f g = concat . map f . g

myfunc8 f x = concat $ map f x

myfunc10 = "test" ++ concatMap (' ':) ["of","this"]

myfunc11 = concat . intersperse " "

myfunc12 f a = if f a then True else False

myfunc13 f a = if f a then False else True

myfunc14 a b = not (a == b)

myfunc14_b a b = not (a /= b)

myfunc15 a b = if a then 1 else if b then 1 else 2

myfunc15_NO a b = if a then 1 else if b then 3 else 2

myfunc16 a = a >>= return . id

myfunc17 a b = if b < 42 then [a] else []

{-
-- out of scope for the new version
myfunc18 (x:xs) = x

myfunc19 f (x:xs) = f x : myfunc19 f xs
myfunc19 f [] = []
{'fraction_non_alphanumeric': 0.11875309252845126, 'fraction_numerical': 0.045522018802572985, 'mean_word_length': 2.591474245115453, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '6214898', 'n_tokens_mistral': 873, 'n_tokens_neox': 809, 'n_words': 371}