<commit_before>module Update.LaunchBar exposing (..)

import Context
import Document.Types exposing (DocId)
import DomPorts
import ExclusiveMode.Types exposing (ExclusiveMode(XMLaunchBar))
import Fuzzy
import GroupDoc.Types exposing (..)
import LaunchBar.Messages
import LaunchBar.Models exposing (LaunchBar, SearchItem(..))
import Model
import Regex
import Return exposing (andThen, map)
import Model.ViewType
import Set exposing (Set)
import Stores
import String.Extra
import Time exposing (Time)
import Tuple2
import X.Return exposing (returnWith)
import LaunchBar.Messages exposing (..)
import Project
import Toolkit.Operators exposing (..)
import Toolkit.Helpers exposing (..)
import ViewType exposing (ViewType)


type alias SubModel a =
    { a | mainViewType : ViewType, selectedEntityIdSet : Set DocId }


type alias ReturnF msg a =
    Return.ReturnF msg (SubModel a)


type alias AndThenUpdate msg a =
    msg -> ReturnF msg a


type alias Config msg a =
    { now : Time
    , activeProjects : List ContextDoc
    , activeContexts : List ProjectDoc
    , onComplete : ReturnF msg a
    , setXMode : ExclusiveMode -> ReturnF msg a
    }


updateWithConfig :
    Config msg a<commit_msg>* try to reduce elm compile time<commit_after>module Update.LaunchBar exposing (..)

import Document.Types exposing (DocId)
import DomPorts
import ExclusiveMode.Types exposing (ExclusiveMode(XMLaunchBar))
import Fuzzy
import GroupDoc.Types exposing (..)
import LaunchBar.Messages
import LaunchBar.Models exposing (LaunchBar, SearchItem(..))
import Regex
import Return exposing (andThen, map)
import Model.ViewType
import Set exposing (Set)
import String.Extra
import Time exposing (Time)
import Tuple2
import X.Return exposing (returnWith)
import LaunchBar.Messages exposing (..)
import Toolkit.Operators exposing (..)
import Toolkit.Helpers exposing (..)
import ViewType exposing (ViewType)


type alias SubModel a =
    { a | mainViewType : ViewType, selectedEntityIdSet : Set DocId }


type alias ReturnF msg a =
    Return.ReturnF msg (SubModel a)


type alias AndThenUpdate msg a =
    msg -> ReturnF msg a


type alias Config msg a =
    { now : Time
    , activeProjects : List ContextDoc
    , activeContexts : List ProjectDoc
    , onComplete : ReturnF msg a
    , setXMode : ExclusiveMode -> ReturnF msg a
    }


updateWithConfig :
    Config msg a
{'fraction_non_alphanumeric': 0.07512733446519525, 'fraction_numerical': 0.0008488964346349745, 'mean_word_length': 4.135076252723311, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1436551', 'n_tokens_mistral': 709, 'n_tokens_neox': 665, 'n_words': 247}