<commit_before>import { mapState, mapGetters, mapActions } from 'vuex';
import { SKILL_BORDER } from '../consts';
import Level from '../lib/level';

export default {
  props: ['id'],

  data() {
    return {
      border: {
        background: SKILL_BORDER,
      },
    };
  },

  computed: {
    ...mapState([
      'job',
      'build',
    ]),

    ...mapGetters([
      'active',
      'index',
      'softMaxLevel',
    ]),

    skill() {
      return this.job.skills[this.id];
    },

    skillImageStyle() {
      const skill = this.skill;
      return this.getSkillIconStyle(skill, this.level);
    },

    level() {
      const indexes = this.build.indexes;
      const skill = this.job.skills[this.id];
      return Level.valueOf(indexes, skill);
    },

    techCount() {
      let count = 0;

      if (this.build.crestTech === this.id) {
        count += 1;
      }

      if (this.build.techs.indexOf(this.id) !== -1) {
        count += 1;
      }

      return Math.min(this.skill.spMaxLevel, count);
    },

    crested() {
      const crest = this.build.crests[this.id];
      return crest >= 0;
    },

    relatedRecently() {
      return this.build.related[this.id] === 1;<commit_msg>Wow this was completely and utterly derptastic.<commit_after>import { mapState, mapGetters, mapActions } from 'vuex';
import { SKILL_BORDER } from '../consts';
import Level from '../lib/level';

export default {
  props: ['id'],

  data() {
    return {
      border: {
        background: SKILL_BORDER,
      },
    };
  },

  computed: {
    ...mapState([
      'job',
      'build',
    ]),

    ...mapGetters([
      'active',
      'index',
      'softMaxLevel',
    ]),

    skill() {
      return this.job.skills[this.id];
    },

    skillImageStyle() {
      const skill = this.skill;
      return this.getSkillIconStyle(skill, this.level);
    },

    softMaxLevel() {
      return this.skill.maxLevel - this.skill.spMaxLevel;
    },

    level() {
      const indexes = this.build.indexes;
      const skill = this.job.skills[this.id];
      return Level.valueOf(indexes, skill);
    },

    techCount() {
      let count = 0;

      if (this.build.crestTech === this.id) {
        count += 1;
      }

      if (this.build.techs.indexOf(this.id) !== -1) {
        count += 1;
      }

      return Math.min(this.skill.spMaxLevel, count);
    },

    crested() {
      const crest = this.build.crests[this.id];
      return crest >= 0;
    },

    relatedRecently() {
      return this.build.related[this.id] === 1;
{'fraction_non_alphanumeric': 0.15962070327933622, 'fraction_numerical': 0.004741209008297116, 'mean_word_length': 1.9964497041420117, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5789638', 'n_tokens_mistral': 875, 'n_tokens_neox': 837, 'n_words': 167}