<commit_before><template>
    <div :id="this.id"></div>
</template>

<script>
    export default {
        props: {
            id: {
                type: String,
                default: () => {
                    const id = Math.random().toString(36).substr(2, 5);
                    return `g-recaptcha-${id}`;
                },
            },
            siteKey: {
                type: String,
                default: '',
            },
        },
        data: function () {
            return {
                reCaptcha: this.$dc.get("reCaptchaProvider")(this.id, this.siteKey, (response) => this.$emit("verified", response)),
            };
        },
        methods: {
            verify: function () {
                this.reCaptcha.execute();
            },
        },
        mounted: function () {
            this.siteKey = this.siteKey || this.$dc.get("config").credentials.googleReCaptcha.siteKey;
            this.reCaptcha.load();
            this.reCaptcha.render();
        },
    }
</script><commit_msg>Fixed reCaptcha component site key initialization issue<commit_after><template>
    <div :id="this.id"></div>
</template>

<script>
    export default {
        props: {
            id: {
                type: String,
                default: () => {
                    const id = Math.random().toString(36).substr(2, 5);
                    return `g-recaptcha-${id}`;
                },
            },
            siteKey: {
                type: String,
                default: '',
            },
        },
        data: function () {
            this.siteKey = this.siteKey || this.$dc.get("config").credentials.googleReCaptcha.siteKey;
            return {
                reCaptcha: this.$dc.get("reCaptchaProvider")(this.id, this.siteKey, (response) => this.$emit("verified", response)),
            };
        },
        methods: {
            verify: function () {
                this.reCaptcha.execute();
            },
        },
        mounted: function () {
            this.reCaptcha.load();
            this.reCaptcha.render();
        },
    }
</script>
{'fraction_non_alphanumeric': 0.14719848053181386, 'fraction_numerical': 0.003798670465337132, 'mean_word_length': 1.2729234088457388, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 19, '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': '6268001', 'n_tokens_mistral': 580, 'n_tokens_neox': 559, 'n_words': 91}