<commit_before>-----------------------------------------------------------------------------
--
-- Module      :  DynamicSolving
-- Copyright   :
-- License     :  AllRightsReserved
--
-- Maintainer  :
-- Stability   :
-- Portability :
--
-- |
--
-----------------------------------------------------------------------------

module DynamicSolving (

) where

import Gradeable

solveDynamically:: Gradeable b => [[a]] -> [(a -> b)]  -> [[a]]
solveDynamically xs fs = foldr mutator zip(xs, fs) [] where
  mutator acc (x, f) = f acc x

-- to wszystko to będzie jeden foldr, tylko trzeba wymyślić sensownie jaki
<commit_msg>Some minor changes, it compiles, but I don't really think it works Need to get some tests, maybe tomorrow or on Wednesday I'll deploy HTF here<commit_after>-----------------------------------------------------------------------------
--
-- Module      :  DynamicSolving
-- Copyright   :
-- License     :  AllRightsReserved
--
-- Maintainer  :
-- Stability   :
-- Portability :
--
-- |
--
-----------------------------------------------------------------------------

module DynamicSolving (

) where

import Gradeable

bestDynamicSolutions xs fs = sort $ solveDynamically xs fs

solveDynamically:: Gradeable b => [[a]] -> [(a -> b)]  -> [[a]]
solveDynamically xs fs = foldr mutator (zip xs fs) [] where
  mutator acc (x, f) = f acc x

-- to wszystko to będzie jeden foldr, tylko trzeba wymyślić sensownie jaki

{'fraction_non_alphanumeric': 0.3158630328441649, 'fraction_numerical': 0.0, 'mean_word_length': 1.3906510851419032, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '772240', 'n_tokens_mistral': 418, 'n_tokens_neox': 402, 'n_words': 127}