<commit_before>package com.github.triplet.gradle.play.internal

import com.github.triplet.gradle.play.PlayPublisherExtension
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.Nested
import org.gradle.api.tasks.options.Option
import org.gradle.api.tasks.options.OptionValues

internal interface ExtensionOptions {
    @get:Nested val extension: PlayPublisherExtension

    @get:OptionValues("publish-track")
    val trackOptions
        get() = TrackType.values().map { it.publishedName }
    @get:Internal
    @set:Option(
            option = "publish-track",
            description = "Set the track in which to upload your app."
    )
    var trackOption: String
        get() = throw UnsupportedOperationException()
        set(value) {
            extension.track = value
        }

    @get:Internal
    @set:Option(
            option = "publish-user-fraction",
            description = "Set the user percent intended to receive a 'rollout' update. 10% == 0.1"
    )
    var userFractionOption: String
        get() = throw UnsupportedOperationException()
        set(value) {
            extension.userFraction = value.toDouble()
        }

    @get:Internal
    @set:Option(
            option = "publish-trim-on-size-limit",
            description = "Trim listing details instead of failing should they be too large."
    )
    var trimOnSizeLimitOption: Boolean
        get() = throw UnsupportedOperationException()
        set(value) {
            extension.errorOnSizeLimit = !value
        }

    @get:OptionValues("publish-resolution-strategy")
    val resolutionStrategyOptions
        get() = ResolutionStrategy.values().map { it.publishedName }
    @get:Internal
    @set:Option(
            option = "publish-resolution-strategy",
            description = "Set the version conflict resolution strategy."
    )
    var resolutionStrategyOption: String
        get() = throw UnsupportedOperationException()
        set(value) {
            extension.resolutionStrategy = value
        }

    @get:OptionValues("publish-release-status")
    val releaseStatusOptions
        get() = ReleaseStatus.values().map { it.publishedName }
    @get:Internal
    @set:Option(
            option = "publish-release-status",
            description = "Set the app release status."
    )
    var releaseStatusOption: String
        get() = throw UnsupportedOperationException()
        set(value) {
            extension.releaseStatus = value
        }
}
<commit_msg>Remove unnecessary prefix on CLI options (#334)<commit_after>package com.github.triplet.gradle.play.internal

import com.github.triplet.gradle.play.PlayPublisherExtension
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.Nested
import org.gradle.api.tasks.options.Option
import org.gradle.api.tasks.options.OptionValues

internal interface ExtensionOptions {
    @get:Nested val extension: PlayPublisherExtension

    @get:OptionValues("track")
    val trackOptions
        get() = TrackType.values().map { it.publishedName }
    @get:Internal
    @set:Option(
            option = "track",
            description = "Set the track in which to upload your app."
    )
    var trackOption: String
        get() = throw UnsupportedOperationException()
        set(value) {
            extension.track = value
        }

    @get:Internal
    @set:Option(
            option = "user-fraction",
            description = "Set the user percent intended to receive a 'rollout' update. 10% == 0.1"
    )
    var userFractionOption: String
        get() = throw UnsupportedOperationException()
        set(value) {
            extension.userFraction = value.toDouble()
        }

    @get:Internal
    @set:Option(
            option = "trim-on-size-limit",
            description = "Trim listing details instead of failing should they be too large."
    )
    var trimOnSizeLimitOption: Boolean
        get() = throw UnsupportedOperationException()
        set(value) {
            extension.errorOnSizeLimit = !value
        }

    @get:OptionValues("resolution-strategy")
    val resolutionStrategyOptions
        get() = ResolutionStrategy.values().map { it.publishedName }
    @get:Internal
    @set:Option(
            option = "resolution-strategy",
            description = "Set the version conflict resolution strategy."
    )
    var resolutionStrategyOption: String
        get() = throw UnsupportedOperationException()
        set(value) {
            extension.resolutionStrategy = value
        }

    @get:OptionValues("release-status")
    val releaseStatusOptions
        get() = ReleaseStatus.values().map { it.publishedName }
    @get:Internal
    @set:Option(
            option = "release-status",
            description = "Set the app release status."
    )
    var releaseStatusOption: String
        get() = throw UnsupportedOperationException()
        set(value) {
            extension.releaseStatus = value
        }
}

{'fraction_non_alphanumeric': 0.09607605177993528, 'fraction_numerical': 0.0022249190938511327, 'mean_word_length': 2.529621698786581, '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': '3144357', 'n_tokens_mistral': 1311, 'n_tokens_neox': 1257, 'n_words': 306}