<commit_before><template>
    <package
        :title="data.name"
        :hint="hint"
        v-if="!data.success || data.error"
    >
        <template slot="release">
            <progress-bar :amount="progress"/>
            <div class="package__version package__version--release">
                <p><strong>{{ filesize }}</strong></p>
            </div>
        </template>

        <template slot="actions">
            <button :class="removeClass" :disabled="removing" @click="removeUpload">
                <span v-if="!removing">{{ $t('ui.package.removeButton') }}</span>
                <loader v-else/>
            </button>
        </template>
    </package>

    <package
        :title="pkg.title"
        :name="pkg.name"
        :description="pkg.description"
        v-else
    >
        <more private :name="pkg.name" :homepage="pkg.homepage" :support="Object.assign({}, pkg.support)" slot="more"/>

        <template slot="additional">
            <strong class="package__version package__version--additional">{{ 'ui.package.version' | translate({ version: pkg.version }) }}</strong>
            <span v-for="(item,k) in additional" :key="k">{{ item }}</span>
        </template>

        <template slot="release">
            <input type="text" :placeholder="$t('ui.package.latestConstraint')" disabled>
            <div class="package__version package__version--release">
                <strong>{{ 'ui.package.version' | translate({ version: pkg.version }) }}</strong>
            </div>
        </template>

        <template slot="actions">
            <button-group :label="$t('ui.package.installButton')" type="primary" icon="add" :disabled="removing" @click="addPackage">
                <button :class="removeClass" :disabled="removing" @click="removeUpload">
                    <span v-if="!removing">{{ $t('ui.package.removeButton') }}</span>
                    <loader v-else/>
                </button>
            </button-group>
        </template><commit_msg>Disable the version constraint field for uploaded packages<commit_after><template>
    <package
        :title="data.name"
        :hint="hint"
        v-if="!data.success || data.error"
    >
        <template slot="release">
            <progress-bar :amount="progress"/>
            <div class="package__version package__version--release">
                <p><strong>{{ filesize }}</strong></p>
            </div>
        </template>

        <template slot="actions">
            <button :class="removeClass" :disabled="removing" @click="removeUpload">
                <span v-if="!removing">{{ $t('ui.package.removeButton') }}</span>
                <loader v-else/>
            </button>
        </template>
    </package>

    <package
        :title="pkg.title"
        :name="pkg.name"
        :description="pkg.description"
        release-disabled
        v-else
    >
        <more private :name="pkg.name" :homepage="pkg.homepage" :support="Object.assign({}, pkg.support)" slot="more"/>

        <template slot="additional">
            <strong class="package__version package__version--additional">{{ 'ui.package.version' | translate({ version: pkg.version }) }}</strong>
            <span v-for="(item,k) in additional" :key="k">{{ item }}</span>
        </template>

        <template slot="release">
            <fieldset>
                <input type="text" :placeholder="$t('ui.package.latestConstraint')" disabled>
                <button class="widget-button" disabled>{{ 'ui.package.editConstraint' | translate }}</button>
            </fieldset>
            <div class="package__version package__version--release">
                <strong>{{ 'ui.package.version' | translate({ version: pkg.version }) }}</strong>
            </div>
        </template>

        <template slot="actions">
            <button-group :label="$t('ui.package.installButton')" type="primary" icon="add" :disabled="removing" @click="addPackage">
                <button :class="removeClass" :disabled="removing" @click="removeUpload">
                    <span v-if="!removing">{{ $t('ui.package.removeButton') }}</span>
                    <loader v-else/>
                </button>
            </button-group>
        </template>
{'fraction_non_alphanumeric': 0.1723076923076923, 'fraction_numerical': 0.0, 'mean_word_length': 2.221036585365854, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 93, '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': '4223919', 'n_tokens_mistral': 1172, 'n_tokens_neox': 1131, 'n_words': 217}