<commit_before>
import Chain from '../Chain'
import Encoder from '../Encoder'
import ArrayUtil from '../ArrayUtil'

const meta = {
  name: 'alphabetical-substitution',
  title: 'Alphabetical substitution',
  category: 'Substitution cipher',
  type: 'encoder'
}

const defaultPlaintextAlphabet = 'abcdefghijklmnopqrstuvwxyz'
const defaultCiphertextAlphabet = 'crypti'

/**
 * Encoder brick for alphabetical substitution
 */
export default class AlphabeticalSubstitutionEncoder extends Encoder {
  /**
   * Returns brick meta.
   * @return {object}
   */
  static getMeta () {
    return meta
  }

  /**
   * Constructor
   */
  constructor () {<commit_msg>Updates alphabetical substitution setting defaults<commit_after>
import Chain from '../Chain'
import Encoder from '../Encoder'
import ArrayUtil from '../ArrayUtil'

const meta = {
  name: 'alphabetical-substitution',
  title: 'Alphabetical substitution',
  category: 'Substitution cipher',
  type: 'encoder'
}

const defaultPlaintextAlphabet = 'abcdefghijklmnopqrstuvwxyz'
const defaultCiphertextAlphabet = '<KEY>'

/**
 * Encoder brick for alphabetical substitution
 */
export default class AlphabeticalSubstitutionEncoder extends Encoder {
  /**
   * Returns brick meta.
   * @return {object}
   */
  static getMeta () {
    return meta
  }

  /**
   * Constructor
   */
  constructor () {
{'fraction_non_alphanumeric': 0.11144130757800892, 'fraction_numerical': 0.0, 'mean_word_length': 3.970479704797048, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '6946396', 'n_tokens_mistral': 417, 'n_tokens_neox': 393, 'n_words': 110}