<commit_before><template>
    <div class="uk-child-width-1-4@s" uk-grid>
        <div v-for="image in images" @click="removeImage(image)">
            <img :src="imageUrl('image-browser', image.filename)" alt="">
            <input type="hidden" :name="field.slug" v-model="image.id">
        </div>

        <a href="#" @click.prevent="openBrowser">Select</a>
    </div>
</template>

<script>
    export default {

        props: [
            'field',
            'selectedImage',
            'activeField'
        ],

        data: function () {
            return {
                images: []
            }
        },

        methods: {
            openBrowser: function () {<commit_msg>needs to be an array<commit_after><template>
    <div class="uk-child-width-1-4@s" uk-grid>
        <div v-for="image in images" @click="removeImage(image)">
            <img :src="imageUrl('image-browser', image.filename)" alt="">
            <input type="hidden" :name="[ field.slug + '[]' ]" v-model="image.id">
        </div>

        <a href="#" @click.prevent="openBrowser">Select</a>
    </div>
</template>

<script>
    export default {

        props: [
            'field',
            'selectedImage',
            'activeField'
        ],

        data: function () {
            return {
                images: []
            }
        },

        methods: {
            openBrowser: function () {
{'fraction_non_alphanumeric': 0.16761768901569188, 'fraction_numerical': 0.0028530670470756064, 'mean_word_length': 1.6826003824091778, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '4143247', 'n_tokens_mistral': 422, 'n_tokens_neox': 407, 'n_words': 79}