<commit_before>module Reto where

createAllSubsets :: [a] -> [[a]]
createAllSubsets [] = [[]]
createAllSubsets (x:xs) = createAllSubsets xs ++ map (x:) (createAllSubsets xs)

getSubsetsSumZero :: (Eq a, Num a) => [a] -> [[a]]
getSubsetsSumZero = filter ((==0) . sum) . createAllSubsets<commit_msg>Changed code for optimization<commit_after>module Reto where
import Data.List
getSubsetsSumZero :: (Eq a, Num a) => [a] -> [[a]]
getSubsetsSumZero = filter ((==0) . sum) . subsequences
{'fraction_non_alphanumeric': 0.17255717255717257, 'fraction_numerical': 0.004158004158004158, 'mean_word_length': 5.426666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '4592851', 'n_tokens_mistral': 171, 'n_tokens_neox': 167, 'n_words': 46}