<commit_before>module IdeaFight.LandingPage exposing (Model, Msg, init, update, subscriptions, view)

import Html.App as App
import Html exposing (Html, br, button, div, h1, hr, text, textarea)
import Html.Events exposing (onClick, onInput)

type alias Model = (String, Bool)
type Msg = UpdateContents String | Continue

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

update : Msg -> Model -> (Model, Cmd Msg)
update msg model =
  case (msg, model) of
    (UpdateContents newContent, _) -> ((newContent, False), Cmd.none)
    (Continue, (contents, _)) -> ((contents, True), Cmd.none)

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

inputs : Html Msg
inputs = div [] [
    textarea [ onInput UpdateContents ] [],
    br [] [],
    button [ onClick Continue ] [ text "Continue >" ]
  ]<commit_msg>Make note of validation that's needed<commit_after>-- XXX you need at least three ideas (or whatever N is)
module IdeaFight.LandingPage exposing (Model, Msg, init, update, subscriptions, view)

import Html.App as App
import Html exposing (Html, br, button, div, h1, hr, text, textarea)
import Html.Events exposing (onClick, onInput)

type alias Model = (String, Bool)
type Msg = UpdateContents String | Continue

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

update : Msg -> Model -> (Model, Cmd Msg)
update msg model =
  case (msg, model) of
    (UpdateContents newContent, _) -> ((newContent, False), Cmd.none)
    (Continue, (contents, _)) -> ((contents, True), Cmd.none)

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

inputs : Html Msg
inputs = div [] [
    textarea [ onInput UpdateContents ] [],
    br [] [],
    button [ onClick Continue ] [ text "Continue >" ]
  ]
{'fraction_non_alphanumeric': 0.13344988344988346, 'fraction_numerical': 0.0011655011655011655, 'mean_word_length': 3.96242774566474, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '4118054', 'n_tokens_mistral': 569, 'n_tokens_neox': 548, 'n_words': 195}