<commit_before>import { BaseApp, HandleRequest, Host, Jovo, Log } from 'jovo-core';

import { BusinessMessages } from '../BusinessMessages';
import { BusinessMessagesRequest } from './BusinessMessagesRequest';
import { BusinessMessagesResponse } from './BusinessMessagesResponse';
import { BusinessMessagesSpeechBuilder } from './BusinessMessagesSpeechBuilder';
import { BusinessMessagesUser } from './BusinessMessagesUser';

export class BusinessMessagesBot extends Jovo {
  $businessMessagesBot: BusinessMessagesBot;
  $user: BusinessMessagesUser;

  constructor(app: BaseApp, host: Host, handleRequest?: HandleRequest) {
    super(app, host, handleRequest);
    this.$businessMessagesBot = this;
    this.$response = new BusinessMessagesResponse();
    this.$speech = new BusinessMessagesSpeechBuilder(this);
    // $reprompt object has to be added even if the platform doesn't use it.
    // Is used by users as platform independent feature
    this.$reprompt = new BusinessMessagesSpeechBuilder(this);
    this.$user = new BusinessMessagesUser(this);
    this.$output.BusinessMessages = {};
  }

  isNewSession(): boolean {
    if (this.$user.$session) {
      return this.$user.$session.id !== this.$request!.getSessionId();
    } else {
      return false;
    }
  }

  hasAudioInterface(): boolean {
    return this.$request!.hasAudioInterface();
  }

  hasScreenInterface(): boolean {
    return this.$request!.hasScreenInterface();
  }

  hasVideoInterface(): boolean {
    return this.$request!.hasVideoInterface();
  }

  getSpeechBuilder(): BusinessMessagesSpeechBuilder {
    return new BusinessMessagesSpeechBuilder(this);
  }

  speechBuilder(): BusinessMessagesSpeechBuilder {
    return this.getSpeechBuilder();
  }

  getDeviceId(): string | undefined {
    Log.warn("Google Business Messages doesn't provide a device ID");
    return;
  }
<commit_msg>:bug: Business Messages: comments out .<commit_after>import { BaseApp, HandleRequest, Host, Jovo, Log } from 'jovo-core';

import { BusinessMessages } from '../BusinessMessages';
import { BusinessMessagesRequest } from './BusinessMessagesRequest';
import { BusinessMessagesResponse } from './BusinessMessagesResponse';
import { BusinessMessagesSpeechBuilder } from './BusinessMessagesSpeechBuilder';
import { BusinessMessagesUser } from './BusinessMessagesUser';

export class BusinessMessagesBot extends Jovo {
  $businessMessagesBot: BusinessMessagesBot;
  $user: BusinessMessagesUser;

  constructor(app: BaseApp, host: Host, handleRequest?: HandleRequest) {
    super(app, host, handleRequest);
    this.$businessMessagesBot = this;
    this.$response = new BusinessMessagesResponse();
    this.$speech = new BusinessMessagesSpeechBuilder(this);
    // $reprompt object has to be added even if the platform doesn't use it.
    // Is used by users as platform independent feature
    this.$reprompt = new BusinessMessagesSpeechBuilder(this);
    this.$user = new BusinessMessagesUser(this);
    this.$output.BusinessMessages = {};
  }

  isNewSession(): boolean {
    // if (this.$user.$session) {
    //   return this.$user.$session.id !== this.$request!.getSessionId();
    // } else {
    //   return false;
    // }

    return false;
  }

  hasAudioInterface(): boolean {
    return this.$request!.hasAudioInterface();
  }

  hasScreenInterface(): boolean {
    return this.$request!.hasScreenInterface();
  }

  hasVideoInterface(): boolean {
    return this.$request!.hasVideoInterface();
  }

  getSpeechBuilder(): BusinessMessagesSpeechBuilder {
    return new BusinessMessagesSpeechBuilder(this);
  }

  speechBuilder(): BusinessMessagesSpeechBuilder {
    return this.getSpeechBuilder();
  }

  getDeviceId(): string | undefined {
    Log.warn("Google Business Messages doesn't provide a device ID");
    return;
  }

{'fraction_non_alphanumeric': 0.11493950552340873, 'fraction_numerical': 0.0, 'mean_word_length': 4.333800841514726, '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': '5221235', 'n_tokens_mistral': 1020, 'n_tokens_neox': 976, 'n_words': 257}