<commit_before>
module Page.Series (
    Model, WithSeries, initialModel,
    Action, view, update, onMount
    ) where

import Effects exposing ( Effects )
import Html exposing ( Html )
import Html.Attributes as HA
import Http
import Signal exposing ( Address )
import Task

import File
import Route exposing ( Route(..), clickRoute )
import Server
import Types exposing (..)

type alias Model =
    { serialList    : List (SerialId, Serial)
    }

type alias WithSeries a = { a | pageSeriesModel : Model }

initialModel : Model
initialModel =
    { serialList    = []
    }

type Action
    = NoOp
    | GotList (Result Http.Error (ApiList (SerialId, Serial)))

view : Address Action -> WithSeries a -> Html
view aa wm =
    let
        m = wm.pageSeriesModel
        oneSeries (sid, s) =
            Html.div [ HA.class "col-xs-3 col-md-2" ]
                [ Html.a ( HA.class "thumbnail" :: (clickRoute <| SeriesSeasons sid))
                    [ File.thumb (Maybe.withDefault 1 s.serialPoster)
                    , Html.span [ HA.class "item-name" ]
                        [ Html.text s.serialName ]
                    ]
                ]
    in
        Html.div [ HA.class "container" ]<commit_msg>ui: Default serial poster should be "empty"<commit_after>
module Page.Series (
    Model, WithSeries, initialModel,
    Action, view, update, onMount
    ) where

import Effects exposing ( Effects )
import Html exposing ( Html )
import Html.Attributes as HA
import Http
import Signal exposing ( Address )
import Task

import File
import Route exposing ( Route(..), clickRoute )
import Server
import Types exposing (..)

type alias Model =
    { serialList    : List (SerialId, Serial)
    }

type alias WithSeries a = { a | pageSeriesModel : Model }

initialModel : Model
initialModel =
    { serialList    = []
    }

type Action
    = NoOp
    | GotList (Result Http.Error (ApiList (SerialId, Serial)))

view : Address Action -> WithSeries a -> Html
view aa wm =
    let
        m = wm.pageSeriesModel
        oneSeries (sid, s) =
            Html.div [ HA.class "col-xs-3 col-md-2" ]
                [ Html.a ( HA.class "thumbnail" :: (clickRoute <| SeriesSeasons sid))
                    [ File.thumb (Maybe.withDefault 0 s.serialPoster)
                    , Html.span [ HA.class "item-name" ]
                        [ Html.text s.serialName ]
                    ]
                ]
    in
        Html.div [ HA.class "container" ]
{'fraction_non_alphanumeric': 0.09926470588235294, 'fraction_numerical': 0.0024509803921568627, 'mean_word_length': 2.080503144654088, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6058787', 'n_tokens_mistral': 746, 'n_tokens_neox': 709, 'n_words': 222}