<commit_before>effect module LocalStorage
    where { subscription = MySub }
    exposing
        ( Error(..)
        , Event
        , Key
        , Value
        , get
        , getJson
        , set
        , setJson
        , remove
        , clear
        , keys
        , changes
        )

{-|

This library offers simple access to the browser's localstorage via Tasks (to
create, read, update, and delete values) and Subscription (to be notified of
changes). Only String keys and values are allowed.

# Tasks for retrieving
@docs get, getJson, keys

# Tasks for changing
@docs set, remove, clear

# Subscriptions
@docs changes, Event

# Types for storage
@docs Key, Value

# Errors
@docs Error

-}

import Dom.LowLevel as Dom
import Json.Encode
import Json.Decode exposing (field)
import Native.LocalStorage
import Process
import Task exposing (Task, andThen, succeed, fail)<commit_msg>Add setJson to module doc list also<commit_after>effect module LocalStorage
    where { subscription = MySub }
    exposing
        ( Error(..)
        , Event
        , Key
        , Value
        , get
        , getJson
        , set
        , setJson
        , remove
        , clear
        , keys
        , changes
        )

{-|

This library offers simple access to the browser's localstorage via Tasks (to
create, read, update, and delete values) and Subscription (to be notified of
changes). Only String keys and values are allowed.

# Tasks for retrieving
@docs get, getJson, keys

# Tasks for changing
@docs set, setJson, remove, clear

# Subscriptions
@docs changes, Event

# Types for storage
@docs Key, Value

# Errors
@docs Error

-}

import Dom.LowLevel as Dom
import Json.Encode
import Json.Decode exposing (field)
import Native.LocalStorage
import Process
import Task exposing (Task, andThen, succeed, fail)
{'fraction_non_alphanumeric': 0.0720175920835624, 'fraction_numerical': 0.0, 'mean_word_length': 2.5546875, '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': '6397307', 'n_tokens_mistral': 513, 'n_tokens_neox': 501, 'n_words': 204}