<commit_before><template>
    <div>
        <button v-if="memberOfTeam && this.user.is_active && this.team.self_serviceable"
                type="button" class="btn btn-secondary" v-on:click="changeMembership('leave')">
            Leave
        </button>
        <button v-else-if="!memberOfTeam && this.user.is_active && this.team.self_serviceable"
                type="button" class="btn btn-primary" v-on:click="changeMembership('join')">
            Join
        </button>
        <em v-else-if="!this.user.is_active && this.team.self_serviceable">&nbsp;
            <small>You must be an active member to {{ this.actionVerb }} teams.</small>
        </em><commit_msg>feat(teams-cards): allow non-active user to see join button/leave buttons on teams<commit_after><template>
    <div>
        <button v-if="memberOfTeam && this.team.self_serviceable"
                type="button" class="btn btn-secondary" v-on:click="changeMembership('leave')">
            Leave
        </button>
        <button v-else-if="!memberOfTeam && this.team.self_serviceable"
                type="button" class="btn btn-primary" v-on:click="changeMembership('join')">
            Join
        </button>
{'fraction_non_alphanumeric': 0.14970563498738435, 'fraction_numerical': 0.0, 'mean_word_length': 2.6280487804878048, 'pattern_counts': {'":': 0, '<': 19, '<?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': '2890722', 'n_tokens_mistral': 354, 'n_tokens_neox': 349, 'n_words': 64}