<commit_before>const x5t = 'x5t#S256';
const jkt = 'jkt';

const { [x5t]: thumbprint } = require('../../helpers/calculate_thumbprint');

module.exports = (superclass) => class extends superclass {
  static get IN_PAYLOAD() {
    return [
      ...super.IN_PAYLOAD,
      x5t,
      jkt,
    ];
  }

  /* istanbul ignore next */
  setS256Thumbprint(cert) {
    // DEPRECATED/NOT USED
    this[x5t] = thumbprint(cert);
  }

  setThumbprint(prop, input) {
    switch (prop) {
      case 'x5t':
        this[x5t] = thumbprint(input);<commit_msg>refactor: remove deprecated `setS256Thumbprint` token instance method<commit_after>const x5t = 'x5t#S256';
const jkt = 'jkt';

const { [x5t]: thumbprint } = require('../../helpers/calculate_thumbprint');

module.exports = (superclass) => class extends superclass {
  static get IN_PAYLOAD() {
    return [
      ...super.IN_PAYLOAD,
      x5t,
      jkt,
    ];
  }

  setThumbprint(prop, input) {
    switch (prop) {
      case 'x5t':
        this[x5t] = thumbprint(input);
{'fraction_non_alphanumeric': 0.15172413793103448, 'fraction_numerical': 0.024630541871921183, 'mean_word_length': 2.922779922779923, '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': '3619415', 'n_tokens_mistral': 385, 'n_tokens_neox': 374, 'n_words': 73}