<commit_before>import { User, Util } from 'jovo-core';
import { BusinessMessagesBot } from './BusinessMessagesBot';

export class BusinessMessagesUser extends User {
  businessMessagesBot: BusinessMessagesBot;
  id: string;

  constructor(businessMessagesBot: BusinessMessagesBot) {
    super(businessMessagesBot);
    this.businessMessagesBot = businessMessagesBot;
    // platform doesn't provide a user ID. To save data in the db, etc. we need an ID tho.
    this.id = Util.randomStr(12);
  }

  getId(): string {
    return this.id;
  }
}<commit_msg>:bug: Business Messages: uses session ID as user ID<commit_after>import { User } from 'jovo-core';
import { BusinessMessagesBot } from './BusinessMessagesBot';
import { BusinessMessagesRequest } from './BusinessMessagesRequest';

export class BusinessMessagesUser extends User {
  businessMessagesBot: BusinessMessagesBot;

  constructor(businessMessagesBot: BusinessMessagesBot) {
    super(businessMessagesBot);
    this.businessMessagesBot = businessMessagesBot;
  }

  getId(): string {
    return (this.businessMessagesBot.$request as BusinessMessagesRequest).getSessionId();
  }
}
{'fraction_non_alphanumeric': 0.0956140350877193, 'fraction_numerical': 0.0017543859649122807, 'mean_word_length': 4.973821989528796, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6747847', 'n_tokens_mistral': 309, 'n_tokens_neox': 297, 'n_words': 85}