<commit_before>package org.openasr.idear.settings

import com.intellij.openapi.ui.ComboBox
import javax.swing.JPanel

class RecognitionSettingsForm {
    private lateinit var ttsProviderCombo: ComboBox<TTSServiceId>
    private lateinit var asrProviderCombo: ComboBox<ASRServiceId>
    private lateinit var nlpProviderCombo: ComboBox<NLPServiceId>
    lateinit var rootPanel: JPanel

    init {
        TTSServiceId.values().forEach { ttsProviderCombo.addItem(it) }
        NLPServiceId.values().forEach { nlpProviderCombo.addItem(it) }
        ASRServiceId.values().forEach { asrProviderCombo.addItem(it) }
    }

    companion object {
        enum class ASRServiceId(val label: String) {
            CMU_SPHINX("CMU Sphinx"), AWS_LEX("Amazon Lex");
        }

        enum class NLPServiceId(val label: String) {
            PATTERN("Pattern"), AWS_LEX("Amazon Lex");
        }

        enum class TTSServiceId(val label: String) {
            MARY("Mary TTS"), AWS_POLLY("Amazon Polly");
        }
    }

    var asrService: ASRServiceId
        get() = ASRServiceId.valueOf(asrProviderCombo.selectedItem.toString())
        set(value) {
            asrProviderCombo.selectedItem = value
        }

    var ttsService: TTSServiceId
        get() = TTSServiceId.valueOf(ttsProviderCombo.selectedItem.toString())
        set(value) {
            ttsProviderCombo.selectedItem = value
        }

    var nlpService: NLPServiceId
        get() = NLPServiceId.valueOf(nlpProviderCombo.selectedItem.toString())
        set(value) {
            nlpProviderCombo.selectedItem = value
        }
}<commit_msg>I think this will fix the Combo boxes<commit_after>package org.openasr.idear.settings

import com.intellij.openapi.ui.ComboBox
import javax.swing.JPanel

class RecognitionSettingsForm {
    private lateinit var ttsProviderCombo: ComboBox<TTSServiceId>
    private lateinit var asrProviderCombo: ComboBox<ASRServiceId>
    private lateinit var nlpProviderCombo: ComboBox<NLPServiceId>
    lateinit var rootPanel: JPanel

    init {
        TTSServiceId.values().forEach { ttsProviderCombo.addItem(it) }
        NLPServiceId.values().forEach { nlpProviderCombo.addItem(it) }
        ASRServiceId.values().forEach { asrProviderCombo.addItem(it) }
    }

    companion object {
        enum class ASRServiceId(val label: String) {
            CMU_SPHINX("CMU Sphinx"), AWS_LEX("Amazon Lex");

            override fun toString() = label
        }

        enum class NLPServiceId(val label: String) {
            PATTERN("Pattern"), AWS_LEX("Amazon Lex");

            override fun toString() = label
        }

        enum class TTSServiceId(val label: String) {
            MARY("Mary TTS"), AWS_POLLY("Amazon Polly");

            override fun toString() = label
        }
    }

    var asrService: ASRServiceId
        get() = ASRServiceId.valueOf(asrProviderCombo.selectedItem.toString())
        set(value) {
            asrProviderCombo.selectedItem = value
        }

    var ttsService: TTSServiceId
        get() = TTSServiceId.valueOf(ttsProviderCombo.selectedItem.toString())
        set(value) {
            ttsProviderCombo.selectedItem = value
        }

    var nlpService: NLPServiceId
        get() = NLPServiceId.valueOf(nlpProviderCombo.selectedItem.toString())
        set(value) {
            nlpProviderCombo.selectedItem = value
        }
}
{'fraction_non_alphanumeric': 0.0924219910846954, 'fraction_numerical': 0.0, 'mean_word_length': 2.7820224719101123, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3403256', 'n_tokens_mistral': 1024, 'n_tokens_neox': 1002, 'n_words': 191}