<commit_before>import System.Environment
import NTriples
import RDF
import TriplesGraph

-- |A dumb main that just dumps the triples to stdout. Will add more later.
main = 
  getArgs >>= \t -> (parseFile $ head t) >>= \res ->
    case (res) of
      Left err -> print $ show err
      Right gr -> mapM_ (putStrLn . show) (triplesOf (gr :: TriplesGraph))<commit_msg>NTriplesMain.hs: changed to use AvlGraph instead of TriplesGraph.<commit_after>import System.Environment
import NTriples
import RDF
import AvlGraph

-- |A dumb main that just dumps the triples to stdout. Will add more later.
main = 
  getArgs >>= \t -> (parseFile $ head t) >>= \res ->
    case (res) of
      Left err -> print $ show err
      Right gr -> mapM_ (putStrLn . show) (triplesOf (gr :: AvlGraph))
{'fraction_non_alphanumeric': 0.10981912144702842, 'fraction_numerical': 0.0, 'mean_word_length': 3.1666666666666665, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2077029', 'n_tokens_mistral': 252, 'n_tokens_neox': 249, 'n_words': 96}