<commit_before>module Main where

import Debug.Trace

import Control.Monad.Eff

class (Monad m) <= MonadWriter w m where
  tell :: w -> m {}

testFunctor :: forall m. (Monad m) => m Number -> m Number
testFunctor n = (+) 1 <$> n

test :: forall w m. (Monad m, MonadWriter w m) => w -> m {}
test w = do
  tell w
  tell w
  tell w

data MTrace a = MTrace (Eff (trace :: Trace) a)

runMTrace :: forall a. MTrace a -> Eff (trace :: Trace) a
runMTrace (MTrace a) = a

instance functorMTrace :: Functor MTrace where
  (<$>) = liftM1

instance applyMTrace :: Apply MTrace where<commit_msg>Fix failing test<commit_after>module Main where

import Debug.Trace

import Control.Monad.Eff

class (Monad m) <= MonadWriter w m where
  tell :: w -> m Unit

testFunctor :: forall m. (Monad m) => m Number -> m Number
testFunctor n = (+) 1 <$> n

test :: forall w m. (Monad m, MonadWriter w m) => w -> m Unit
test w = do
  tell w
  tell w
  tell w

data MTrace a = MTrace (Eff (trace :: Trace) a)

runMTrace :: forall a. MTrace a -> Eff (trace :: Trace) a
runMTrace (MTrace a) = a

instance functorMTrace :: Functor MTrace where
  (<$>) = liftM1

instance applyMTrace :: Apply MTrace where
{'fraction_non_alphanumeric': 0.12297181895815543, 'fraction_numerical': 0.0034158838599487617, 'mean_word_length': 3.293040293040293, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 19, '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': '3812869', 'n_tokens_mistral': 427, 'n_tokens_neox': 418, 'n_words': 167}