<commit_before>module Components.IconButton exposing (view)

import Html exposing (Html, node, text)
import Html.App as App
import Html.Attributes exposing (attribute, id)

view : (a -> message) -> String -> String -> String -> List (Html message)
view message componentNamespace symbol tooltip =
  let
    iconId =
      componentNamespace ++ symbol ++ "-toolbar-icon-button"

  in
    List.map (App.map message) <|
      [ node "paper-icon-button"
        [ attribute "icon" symbol
        , attribute "alt" tooltip
        , id iconId
        ]
        []
      , node "paper-tooltip"
        [ attribute "for" iconId
        ]
        [ text tooltip
        ]
      ]<commit_msg>Refactor<commit_after>module Components.IconButton exposing (view)

import Html exposing (Html, node, text)
import Html.App as App
import Html.Attributes exposing (attribute, id)

view : (a -> message) -> String -> String -> String -> List (Html message)
view noopAction componentNamespace symbol tooltip =
  let
    iconId =
      componentNamespace ++ symbol ++ "-toolbar-icon-button"

  in
    List.map (App.map noopAction) <|
      [ node "paper-icon-button"
        [ attribute "icon" symbol
        , attribute "alt" tooltip
        , id iconId
        ]
        []
      , node "paper-tooltip"
        [ attribute "for" iconId
        ]
        [ text tooltip
        ]
      ]
{'fraction_non_alphanumeric': 0.10680321872713973, 'fraction_numerical': 0.0, 'mean_word_length': 2.2805755395683454, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4206436', 'n_tokens_mistral': 398, 'n_tokens_neox': 388, 'n_words': 118}