<commit_before>package org.spekframework.intellij

import org.jetbrains.kotlin.platform.IdePlatformKind
import org.jetbrains.kotlin.platform.impl.CommonIdePlatformKind
import org.jetbrains.kotlin.platform.impl.JvmIdePlatformKind

enum class ProducerType {
    COMMON,
    JVM
}

fun IdePlatformKind<*>.toProducerType(): ProducerType {
    return when (this) {
        CommonIdePlatformKind -> ProducerType.COMMON
        JvmIdePlatformKind -> ProducerType.JVM
        else -> throw IllegalArgumentException("Unsupported platform kind: ${this}")
    }
}<commit_msg>Add NATIVE and JS producer types in IJ (#705)<commit_after>package org.spekframework.intellij

import org.jetbrains.kotlin.platform.IdePlatformKind
import org.jetbrains.kotlin.platform.impl.CommonIdePlatformKind
import org.jetbrains.kotlin.platform.impl.JsIdePlatformKind
import org.jetbrains.kotlin.platform.impl.JvmIdePlatformKind
import org.jetbrains.kotlin.platform.impl.NativeIdePlatformKind

enum class ProducerType {
    COMMON,
    JVM,
    NATIVE,
    JS
}

fun IdePlatformKind<*>.toProducerType(): ProducerType {
    return when (this) {
        CommonIdePlatformKind -> ProducerType.COMMON
        JvmIdePlatformKind -> ProducerType.JVM
        NativeIdePlatformKind -> ProducerType.NATIVE
        JsIdePlatformKind -> ProducerType.JS
        else -> throw IllegalArgumentException("Unsupported platform kind: ${this}")
    }
}
{'fraction_non_alphanumeric': 0.0877318116975749, 'fraction_numerical': 0.0021398002853067048, 'mean_word_length': 4.334600760456274, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '5016574', 'n_tokens_mistral': 446, 'n_tokens_neox': 411, 'n_words': 76}