<commit_before><template>
    <v-tabs id="similar-tabs" grow scroll-bars v-model="currentViewIn">
        <v-tabs-bar slot="activators">
            <v-tabs-slider></v-tabs-slider>
            <v-tabs-item :href="'#' + i" ripple class="grey lighten-4 black--text"
                         v-for="i in ['On genes', 'On snp type']" :key="i">
                <div>{{ i }}</div>
            </v-tabs-item>
        </v-tabs-bar>
        <v-tabs-content :id="i" v-for="i in ['On genes', 'On snp type']" :key="i" class="pa-4" ref="plots">
            <div id="statistics" class="mt-2" v-if="i === 'On genes'" >
                <vue-chart v-if="plotStatistics.topGenes.rows.length > 0" :columns="plotStatistics.topGenes.columns" :rows="plotStatistics.topGenes.rows" :options="{title: 'Distribution of significant associations on genes', legend: {position: 'none'}}" chart-type="BarChart" :chart-events="chartEvents"></vue-chart>
            </div>
            <div v-else>
                <div v-if="plotStatistics.genic.rows.length>0">
                    <vue-chart v-if="_isSnpType" :columns="plotStatistics.genic.columns" :rows="plotStatistics.genic.rows" :options="{title: 'SNP type'}" chart-type="PieChart" ></vue-chart>
                    <vue-chart v-if="_isSnpType" :columns="plotStatistics.impact.columns" :rows="plotStatistics.impact.rows" :options="{title: 'SNP impact'}" chart-type="PieChart"></vue-chart>
                    <vue-chart v-if="_isSnpType" :columns="plotStatistics.annotation.columns" :rows="plotStatistics.annotation.rows" :options="{title: 'SNP annotation'}" chart-type="PieChart"></vue-chart>
                    <vue-chart :columns="plotStatistics.pvalueDistribution.columns" :rows="plotStatistics.pvalueDistribution.rows" :options="{title: 'Distribution of scores',legend: {position: 'none'}}" chart-type="ColumnChart"></vue-chart>
                    <vue-chart :columns="plotStatistics.mafDistribution.columns" :rows="plotStatistics.mafDistribution.rows" :options="{title: 'Distribution of MAF',legend: {position: 'none'}}" chart-type="ColumnChart"></vue-chart>
                    <vue-chart :show="false" :options="{width: width}" :columns="[]" :rows="[]"></vue-chart>
                </div>
                <h6 v-else style="text-align: center" >No significant hits.</h6><commit_msg>Fixes #85. There are simply not enough significant hits for certain studies<commit_after><template>
    <v-tabs id="similar-tabs" grow scroll-bars v-model="currentViewIn">
        <v-tabs-bar slot="activators">
            <v-tabs-slider></v-tabs-slider>
            <v-tabs-item :href="'#' + i" ripple class="grey lighten-4 black--text"
                         v-for="i in ['On genes', 'On snp type']" :key="i">
                <div>{{ i }}</div>
            </v-tabs-item>
        </v-tabs-bar>
        <v-tabs-content :id="i" v-for="i in ['On genes', 'On snp type']" :key="i" class="pa-4" ref="plots">
            <div id="statistics" class="mt-2" v-if="i === 'On genes'" >
                <vue-chart v-if="plotStatistics.topGenes.rows.length > 1" :columns="plotStatistics.topGenes.columns" :rows="plotStatistics.topGenes.rows" :options="{title: 'Distribution of significant associations on genes', legend: {position: 'none'}}" chart-type="BarChart" :chart-events="chartEvents"></vue-chart>
                <div v-else style="text-align: center">Not enough significant hits</div>
            </div>
            <div v-else>
                <div v-if="plotStatistics.genic.rows.length>1">
                    <vue-chart v-if="_isSnpType" :columns="plotStatistics.genic.columns" :rows="plotStatistics.genic.rows" :options="{title: 'SNP type'}" chart-type="PieChart" ></vue-chart>
                    <vue-chart v-if="_isSnpType" :columns="plotStatistics.impact.columns" :rows="plotStatistics.impact.rows" :options="{title: 'SNP impact'}" chart-type="PieChart"></vue-chart>
                    <vue-chart v-if="_isSnpType" :columns="plotStatistics.annotation.columns" :rows="plotStatistics.annotation.rows" :options="{title: 'SNP annotation'}" chart-type="PieChart"></vue-chart>
                    <vue-chart :columns="plotStatistics.pvalueDistribution.columns" :rows="plotStatistics.pvalueDistribution.rows" :options="{title: 'Distribution of scores',legend: {position: 'none'}}" chart-type="ColumnChart"></vue-chart>
                    <vue-chart :columns="plotStatistics.mafDistribution.columns" :rows="plotStatistics.mafDistribution.rows" :options="{title: 'Distribution of MAF',legend: {position: 'none'}}" chart-type="ColumnChart"></vue-chart>
                    <vue-chart :show="false" :options="{width: width}" :columns="[]" :rows="[]"></vue-chart>
                </div>
                <h6 v-else style="text-align: center" >Not enough significant hits.</h6>
{'fraction_non_alphanumeric': 0.18320451222059744, 'fraction_numerical': 0.0033423856277418006, 'mean_word_length': 3.15625, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 73, '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': '4427316', 'n_tokens_mistral': 1511, 'n_tokens_neox': 1418, 'n_words': 274}