<commit_before>module Layout exposing (Model, drawer, header, model)

import Html exposing (a, text, img)
import Html.Attributes exposing (alt, src, style)
import Material
import Material.Layout as Layout
import Internationalization exposing (Language(..), TranslationId(..), translate)


--
-- Model
--


type alias Model =
    { lang : Language
    , mdl : Material.Model
    }


model : Model
model =
    Model English Material.model



--
-- View
--


header : Model -> Html.Html a
header model =
    let
        digitalOcean =
            Layout.link
                [ Layout.href "http://digitalocean.com" ]
                [ img
                    [ src "/static/digitalocean.png"
                    , alt "Powered by Digital Ocean"
                    , style [ ( "height", "1.5rem" ), ( "opacity", "0.5" ) ]
                    ]
                    []
                ]
    in
        Layout.row
            []
            [ Layout.title [] [ text "Jarbas" ]
            , Layout.spacer
            , Layout.navigation [] [ digitalOcean ]
            ]
<commit_msg>Add link to home page at title<commit_after>module Layout exposing (Model, drawer, header, model)

import Html exposing (a, div, text, img)
import Html.Attributes exposing (alt, href, src, style)
import Material
import Material.Layout as Layout
import Internationalization exposing (Language(..), TranslationId(..), translate)


--
-- Model
--


type alias Model =
    { lang : Language
    , mdl : Material.Model
    }


model : Model
model =
    Model English Material.model



--
-- View
--


header : Model -> Html.Html a
header model =
    let
        digitalOcean =
            Layout.link
                [ Layout.href "http://digitalocean.com" ]
                [ img
                    [ src "/static/digitalocean.png"
                    , alt "Powered by Digital Ocean"
                    , style [ ( "height", "1.5rem" ), ( "opacity", "0.5" ) ]
                    ]
                    []
                ]

        title =
            a
                [ href "/"
                , style
                    [ ( "color", "white" )
                    , ( "text-decoration", "none" )
                    , ( "font-weight", "normal" )
                    ]
                ]
                [ text "Jarbas" ]
    in
        Layout.row
            []
            [ Layout.title [] [ title ]
            , Layout.spacer
            , Layout.navigation [] [ digitalOcean ]
            ]

{'fraction_non_alphanumeric': 0.11393939393939394, 'fraction_numerical': 0.0032323232323232323, 'mean_word_length': 1.3248826291079812, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7634646', 'n_tokens_mistral': 702, 'n_tokens_neox': 649, 'n_words': 175}