<commit_before>import Html exposing (..)
import Html.Attributes exposing (..)
import String

import Center
import TopBar
import Outline


main =
  div []
    [ TopBar.topBar "docs"
    , Center.markdown "600px" directions
--    , ul [ Center.style "600px" ] (List.map viewChapter Outline.outline)
    ]


directions = """

# Documentation


## Tutorials

  * [Reading Elm code](/)
  * [Building widgets](https://github.com/evancz/elm-architecture-tutorial/)
  * [Making Pong](/)


## About Elm

  * [Complete Guide to Elm](/)
  * [Syntax Reference](/learn/syntax)


## API References

  * [Standard Libraries](http://package.elm-lang.org/packages/elm-lang/core/latest/)
  * [Community Libraries](http://package.elm-lang.org/packages)

"""


viewChapter : (String, List String) -> Html
viewChapter (title, sections) =
  li []
    [ a [href ("/guide/" ++ format title)] [text title]
    , ul []
        (List.map (\name -> li [] [ text name ]) sections)
    ]

format str =<commit_msg>Show "The Complete Guide" in docs<commit_after>import Html exposing (..)
import Html.Attributes exposing (..)
import String

import Center
import TopBar
import Outline


main =
  div []
    [ TopBar.topBar "docs"
    , Center.markdown "600px" directions
    , div [ Center.style "600px" ]
        [ h2 [id "complete-guide"] [text "Complete Guide"]
        , ul [] (List.map viewChapter Outline.outline)
        ]
    ]


directions = """

# Documentation


## Quick Start

  * [Reading Elm code](/)
  * [Building widgets](https://github.com/evancz/elm-architecture-tutorial/)
  * [Making Pong](/)


## References

  * [Community Packages](http://package.elm-lang.org)
  * [Core Libraries](http://package.elm-lang.org/packages/elm-lang/core/latest/)
  * [Syntax](/learn/syntax)

"""


viewChapter : (String, List String) -> Html
viewChapter (title, sections) =
  li []
    [ a [href ("/guide/" ++ format title)] [text title]
    , ul [] (List.map (\name -> li [] [ text name ]) sections)
    ]


format str =
{'fraction_non_alphanumeric': 0.16331658291457288, 'fraction_numerical': 0.006532663316582915, 'mean_word_length': 3.105154639175258, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '5960002', 'n_tokens_mistral': 710, 'n_tokens_neox': 652, 'n_words': 157}