<commit_before>'use strict';

const BaseEmbed = require('./BaseEmbed.js');

/**
 * Generates fissure embeds
 */
class FissureEmbed extends BaseEmbed {
  /**
   * @param {Genesis} bot - An instance of Genesis
   * @param {Array.<Fissure>} fissures - The fissures to be included in the embed
   */
  constructor(bot, fissures) {
    super();

    fissures.sort((a, b) => a.tierNum - b.tierNum);

    this.fields = fissures.map(f => ({
      name: `${f.missionType} ${f.tier}`,
      value: `[${f.getETAString()}] ${f.node} against ${f.enemy}`,
    }));
    if (fissures.length === 0) {
      this.fields = {
        name: 'Currently no fissures',
        value: '',
      };
    }

    this.color = fissures.length > 2 ? 0x00ff00 : 0xff0000;
    this.title = 'Worldstate - Void Fissures';
    this.description = 'Current Void Fissures';
    this.thumbnail = {
      url: 'https://raw.githubusercontent.com/aliasfalse/genesis/master/src/resources/voidFissure.png',
    };
  }
}

module.exports = FissureEmbed;<commit_msg>Update FissureEmbed.js<commit_after>'use strict';

const BaseEmbed = require('./BaseEmbed.js');

/**
 * Generates fissure embeds
 */
class FissureEmbed extends BaseEmbed {
  /**
   * @param {Genesis} bot - An instance of Genesis
   * @param {Array.<Fissure>} fissures - The fissures to be included in the embed
   */
  constructor(bot, fissures) {
    super();

    fissures.sort((a, b) => a.tierNum - b.tierNum);

    this.fields = fissures.map(f => ({
      name: `${f.missionType} ${f.tier}`,
      value: `[${f.getETAString()}] ${f.node} against ${f.enemy}`,
    }));
    if (fissures.length === 0) {
      this.fields = {
        name: 'Currently no fissures',
        value: '',
      };
    }

    this.color = 0x4aa1b2;
    this.title = 'Worldstate - Void Fissures';
    this.description = 'Current Void Fissures';
    this.thumbnail = {
      url: 'https://raw.githubusercontent.com/aliasfalse/genesis/master/src/resources/voidFissure.png',
    };
  }
}

module.exports = FissureEmbed;
{'fraction_non_alphanumeric': 0.16550695825049702, 'fraction_numerical': 0.008449304174950299, 'mean_word_length': 2.826996197718631, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, 'https://': 2, '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': '1652879', 'n_tokens_mistral': 741, 'n_tokens_neox': 699, 'n_words': 145}