<commit_before>import Html exposing (..)
import Html.Attributes exposing (..)
import Html.App exposing (..)
import Html.Events exposing (..)
import Markdown

type alias Model =
  { input : String }

type Msg =
  Input String


update : Msg -> Model -> (Model, Cmd Msg)
update msg {input} =
  case msg of
    Input newStr ->
      (Model newStr, Cmd.none)


subscriptions : Model -> Sub Msg
subscriptions model =
  Sub.none


init : (Model, Cmd Msg)
init =
  (Model "", Cmd.none)


view : Model -> Html Msg
view model =
  div [ class "view" ]
    [ h1 [] [ text "Markdown Editor" ]
    , div
        [ class "pane" ]
        [ div
          [ class "edit"]
          [ textarea
            [ value model.input
            , onInput Input
            , class "inputarea"
            ]
            []
          ]
        ]
      , div [ class "display"]<commit_msg>fix MarkdownEditor.elm<commit_after>import Html exposing (..)
import Html.Attributes exposing (..)
import Html.App exposing (..)
import Html.Events exposing (..)
import Markdown

type alias Model =
  { input : String }

type Msg =
  Input String


update : Msg -> Model -> (Model, Cmd Msg)
update msg {input} =
  case msg of
    Input newStr ->
      (Model newStr, Cmd.none)


subscriptions : Model -> Sub Msg
subscriptions model =
  Sub.none


init : (Model, Cmd Msg)
init =
  (Model "", Cmd.none)


view : Model -> Html Msg
view model =
  div [ class "view" ]
    [ h1 [ align "center" ] [ text "Elm Markdown Editor" ]
    , div
        [ class "pane" ]
        [ div [ class "edit", align "center"]
          [ textarea
            [ value model.input
            , onInput Input
            , class "inputarea"
            ]
            []
          ]
        ]
      , div [ class "display", align "center" ]
{'fraction_non_alphanumeric': 0.11993243243243243, 'fraction_numerical': 0.0011261261261261261, 'mean_word_length': 1.8941368078175895, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '2438858', 'n_tokens_mistral': 580, 'n_tokens_neox': 563, 'n_words': 173}