<commit_before>module Map exposing (..)

import Json.Decode exposing (..)
import Json.Decode.Extra exposing (..)
import Effects exposing (Effects)

-- Model

type alias TmxTileLayer = {
    name : String,
    data : List Int,
    height : Int,
    width : Int,
    visible : Bool,
    x : Int,
    y : Int,
    opacity : Int
}

tmxTileLayer : Decoder TmxTileLayer
tmxTileLayer =
    succeed TmxTileLayer
        |: ("name" := string)
        |: ("data" := list int)
        |: ("height" := int)
        |: ("width" := int)
        |: ("visible" := bool)<commit_msg>Added effects and messages for Map<commit_after>module Map exposing (..)

import Json.Decode exposing (..)
import Json.Decode.Extra exposing (..)
import Effects exposing (Effects)

-- Actions

type Effect =
    PerformTask Msg Msg Task |
    NoOp

type Msg = 
    MapRetrieveSuccess TmxMap |
    MapRetrieveFail String

-- Model

type alias TmxTileLayer = {
    name : String,
    data : List Int,
    height : Int,
    width : Int,
    visible : Bool,
    x : Int,
    y : Int,
    opacity : Int
}

tmxTileLayer : Decoder TmxTileLayer
tmxTileLayer =
    succeed TmxTileLayer
        |: ("name" := string)
        |: ("data" := list int)
        |: ("height" := int)
        |: ("width" := int)
        |: ("visible" := bool)
{'fraction_non_alphanumeric': 0.13178294573643412, 'fraction_numerical': 0.0, 'mean_word_length': 2.370757180156658, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '109871', 'n_tokens_mistral': 433, 'n_tokens_neox': 419, 'n_words': 120}