<commit_before>{-# LANGUAGE ExistentialQuantification, FlexibleContexts #-}

module HEP.Automation.MadGraph.ModelParser where

import HEP.Automation.MadGraph.Model
import HEP.Automation.MadGraph.Model.SM
import HEP.Automation.MadGraph.Model.AxiGluon
import HEP.Automation.MadGraph.Model.ZpH
import HEP.Automation.MadGraph.Model.Wp

data ModelBox = forall a. (Model a) => ModelBox a


modelParse :: String -> Maybe ModelBox
modelParse "Axigluon_AV_MG" = Just (ModelBox AxiGluon)
modelParse "DummyModel"     = Just (ModelBox DummyModel)
modelParse "zHorizontal_MG" = Just (ModelBox ZpH)
modelParse "fvwp200_MG"     = Just (ModelBox Wp) 
modelParse "C1V_UFO"        = Just (ModelBox C1V)
modelParse "sm"             = Just (ModelBox SM)
modelParse _ = Nothing
<commit_msg>missing C1V import  in ModelParser.hs<commit_after>{-# LANGUAGE ExistentialQuantification, FlexibleContexts #-}

module HEP.Automation.MadGraph.ModelParser where

import HEP.Automation.MadGraph.Model
import HEP.Automation.MadGraph.Model.SM
import HEP.Automation.MadGraph.Model.AxiGluon
import HEP.Automation.MadGraph.Model.ZpH
import HEP.Automation.MadGraph.Model.Wp
import HEP.Automation.MadGraph.Model.C1V

data ModelBox = forall a. (Model a) => ModelBox a


modelParse :: String -> Maybe ModelBox
modelParse "Axigluon_AV_MG" = Just (ModelBox AxiGluon)
modelParse "DummyModel"     = Just (ModelBox DummyModel)
modelParse "zHorizontal_MG" = Just (ModelBox ZpH)
modelParse "fvwp200_MG"     = Just (ModelBox Wp) 
modelParse "C1V_UFO"        = Just (ModelBox C1V)
modelParse "sm"             = Just (ModelBox SM)
modelParse _ = Nothing

{'fraction_non_alphanumeric': 0.0941983780411728, 'fraction_numerical': 0.007485963817841547, 'mean_word_length': 4.749103942652329, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3942851', 'n_tokens_mistral': 575, 'n_tokens_neox': 554, 'n_words': 128}