<commit_before><template>
    <div>
        <div class="user-feed-cards-container" v-if="feed.length > 0">
            <div class="feed-card ely-card" v-for="element in feed">
                <commitment-card :answer="element"
                                 v-if="element.type === 'Commitment' || element.type === 'CommitmentAnswer'">
                    <commitment-card-footer slot="footer" :user="element.user"
                                            :number-of-up-votes="element.numberOfUpVotes"
                                            :number-of-watches="element.numberOfWatches" :answer-id="element.answerId"
                                            :created="element.created" :action="element.action"
                                            :regions="element.regions" :card-type="element.type"
                                            :is-up-voted-by-user="element.isUpVotedByUser"
                                            :commitment-id="element.commitmentId"
                                            :is-watched-by-user="element.isWatchedByUser" :is-admin="element.isAdmin"
                                            @up-voted="upVoted" @down-voted="downVoted"
                                            @add-watch="addCommitmentWatch" @remove-watch="removeCommitmentWatch"
                                            @up-vote-menu-closed="upVoteMenuClosed"
                                            @add-trust-circle="(userId) => addUserToTrustCircle({userId})"
                                            @remove-trust-circle="(userId) => removeUserFromTrustCircle(userId)">
                    </commitment-card-footer>
                </commitment-card>
                <book-card :answer="element" v-if="element.type === 'Book'">
                    <common-card-footer slot="footer" :user="element.user"
                                        :number-of-up-votes="element.numberOfUpVotes" :answer-id="element.answerId"
                                        :created="element.created" :action="element.action"
                                        :is-up-voted-by-user="element.isUpVotedByUser" :is-admin="element.isAdmin"
                                        @up-voted="upVoted" @down-voted="downVoted"
                                        @up-vote-menu-closed="upVoteMenuClosed"
                                        @add-trust-circle="(userId) => addUserToTrustCircle({userId})"
                                        @remove-trust-circle="(userId) => removeUserFromTrustCircle(userId)">
                    </common-card-footer>
                </book-card>
                <default-card :answer="element" v-if="element.type === 'Default'" :creator="element.user"><commit_msg>Bugfix: using creator for default answer when upvoted.<commit_after><template>
    <div>
        <div class="user-feed-cards-container" v-if="feed.length > 0">
            <div class="feed-card ely-card" v-for="element in feed">
                <commitment-card :answer="element"
                                 v-if="element.type === 'Commitment' || element.type === 'CommitmentAnswer'">
                    <commitment-card-footer slot="footer" :user="element.user"
                                            :number-of-up-votes="element.numberOfUpVotes"
                                            :number-of-watches="element.numberOfWatches" :answer-id="element.answerId"
                                            :created="element.created" :action="element.action"
                                            :regions="element.regions" :card-type="element.type"
                                            :is-up-voted-by-user="element.isUpVotedByUser"
                                            :commitment-id="element.commitmentId"
                                            :is-watched-by-user="element.isWatchedByUser" :is-admin="element.isAdmin"
                                            @up-voted="upVoted" @down-voted="downVoted"
                                            @add-watch="addCommitmentWatch" @remove-watch="removeCommitmentWatch"
                                            @up-vote-menu-closed="upVoteMenuClosed"
                                            @add-trust-circle="(userId) => addUserToTrustCircle({userId})"
                                            @remove-trust-circle="(userId) => removeUserFromTrustCircle(userId)">
                    </commitment-card-footer>
                </commitment-card>
                <book-card :answer="element" v-if="element.type === 'Book'">
                    <common-card-footer slot="footer" :user="element.user"
                                        :number-of-up-votes="element.numberOfUpVotes" :answer-id="element.answerId"
                                        :created="element.created" :action="element.action"
                                        :is-up-voted-by-user="element.isUpVotedByUser" :is-admin="element.isAdmin"
                                        @up-voted="upVoted" @down-voted="downVoted"
                                        @up-vote-menu-closed="upVoteMenuClosed"
                                        @add-trust-circle="(userId) => addUserToTrustCircle({userId})"
                                        @remove-trust-circle="(userId) => removeUserFromTrustCircle(userId)">
                    </common-card-footer>
                </book-card>
                <default-card :answer="element" v-if="element.type === 'Default'"
                              :creator="element.creator ? element.creator: element.user">
{'fraction_non_alphanumeric': 0.12432819777857398, 'fraction_numerical': 0.00035829451809387314, 'mean_word_length': 1.2825020441537203, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 64, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6258899', 'n_tokens_mistral': 1325, 'n_tokens_neox': 1289, 'n_words': 148}