<commit_before><template>
  <div class='ticker-link'  @mouseenter="showStats = true" @mouseleave="showStats = false">
    <router-link v-if="!basic" :to="{name: 'stock-view', params: {symbol: symbol}}"><strong>{{this.symbol}} <span v-bind:class='textClass'>{{gainsText}}</span></strong></router-link>
    <router-link v-else :to="{name: 'stock-view', params: {symbol: symbol}}"><strong>{{symbol}}</strong></router-link>
  </div>
</template>
<script>
import state from '@/state';
import robinhood from '@/api/robinhood';

export default {
  props: ['symbol', 'basic'],
  name: 'ticker-link',
  created(){
    if(this.basic){
      return;
    }

    if(!state.getters.quote(this.symbol)){
      robinhood.getQuote(this.symbol);
    }
  },
  data(){
    return {
      showStats: false
    }
  },<commit_msg>add carets<commit_after><template>
  <div class='ticker-link'  @mouseenter="showStats = true" @mouseleave="showStats = false">
    <router-link v-if="!basic" :to="{name: 'stock-view', params: {symbol: symbol}}">
      <span v-if="dayGains != 0" v-bind:class="{'glyphicon glyphicon-triangle-top' : dayGains > 0, 'glyphicon glyphicon-triangle-bottom' : dayGains < 0}"></span>
      <strong>{{this.symbol}} <span v-bind:class='textClass'>{{gainsText}}</span></strong>
    </router-link>
    <router-link v-else :to="{name: 'stock-view', params: {symbol: symbol}}"><strong>{{symbol}}</strong></router-link>
  </div>
</template>
<script>
import state from '@/state';
import robinhood from '@/api/robinhood';

export default {
  props: ['symbol', 'basic'],
  name: 'ticker-link',
  created(){
    if(this.basic){
      return;
    }

    if(!state.getters.quote(this.symbol)){
      robinhood.getQuote(this.symbol);
    }
  },
  data(){
    return {
      showStats: false
    }
  },
{'fraction_non_alphanumeric': 0.21031968592260236, 'fraction_numerical': 0.0016825574873808188, 'mean_word_length': 4.053824362606233, 'pattern_counts': {'":': 0, '<': 36, '<?xml version=': 0, '>': 36, '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': '2757253', 'n_tokens_mistral': 633, 'n_tokens_neox': 607, 'n_words': 114}