<commit_before>package at.cpickl.gadsu.acupuncture

import at.cpickl.gadsu.QuitEvent
import at.cpickl.gadsu.service.Search
import at.cpickl.gadsu.view.swing.addCloseListener
import com.google.common.eventbus.Subscribe
import org.slf4j.LoggerFactory
import javax.inject.Inject


open class AcupunctureController @Inject constructor(
        private val frame: AcupunctureFrame,
        private val service: AcupunctureService
) {

    private val log = LoggerFactory.getLogger(javaClass)


    init {
        Search.setup(frame.inpSearch, frame.list, service)

        frame.addCloseListener {
            log.trace("frame closing")
            frame.close()
        }

        frame.list.addListSelectionListener {
            if (!it.valueIsAdjusting) {
                frame.changeAcupunct(if (frame.list.selectedIndex == -1) null else frame.list.selectedValue)
            }
        }

    }

    @Subscribe open fun onShopAcupunctureViewEvent(event: ShopAcupunctureViewEvent) {
        frame.start()
    }

    @Subscribe open fun onQuitEvent(event: QuitEvent) {
        frame.destroy()
    }

}
<commit_msg>minor change<commit_after>package at.cpickl.gadsu.acupuncture

import at.cpickl.gadsu.QuitEvent
import at.cpickl.gadsu.service.Search
import at.cpickl.gadsu.view.swing.addCloseListener
import com.google.common.eventbus.Subscribe
import org.slf4j.LoggerFactory
import javax.inject.Inject


open class AcupunctureController @Inject constructor(
        private val frame: AcupunctureFrame,
        service: AcupunctureService
) {

    private val log = LoggerFactory.getLogger(javaClass)


    init {
        Search.setup(frame.inpSearch, frame.list, service)

        frame.addCloseListener {
            log.trace("frame closing")
            frame.close()
        }

        frame.list.addListSelectionListener {
            if (!it.valueIsAdjusting) {
                frame.changeAcupunct(if (frame.list.selectedIndex == -1) null else frame.list.selectedValue)
            }
        }

    }

    @Subscribe open fun onShopAcupunctureViewEvent(event: ShopAcupunctureViewEvent) {
        frame.start()
    }

    @Subscribe open fun onQuitEvent(event: QuitEvent) {
        frame.destroy()
    }

}

{'fraction_non_alphanumeric': 0.08864767073722297, 'fraction_numerical': 0.0018091361374943465, 'mean_word_length': 2.761904761904762, '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': '4227292', 'n_tokens_mistral': 693, 'n_tokens_neox': 657, 'n_words': 119}