<commit_before>/* eslint-disable no-undef */
/* eslint-disable no-restricted-globals */

import { Platform } from '../../platform'
import { AppConfig, InteropTopics } from '../../types'
import { createPlatformWindow, openDesktopWindow, showWindow } from './window'
import { fromEventPattern } from 'rxjs'
import {
  Notification,
  NotificationActionEvent,
  removeEventListener,
  addEventListener,
  create,
} from 'openfin-notifications'
import { NotificationMessage } from '../../browser/utils/sendNotification'
import OpenFinRoute from './OpenFinRoute'
import { OpenFinControls, OpenFinHeader, OpenFinFooter, OpenFinLogo } from '../components'

export default class OpenFin implements Platform {
  readonly name = 'openfin-platform'
  readonly type = 'desktop'
  readonly allowTearOff = true

  style = {
    height: '100%',
  }

  constructor() {
    window.addEventListener('beforeunload', this.handleWindowUnload)

    addEventListener('notification-action', this.handleNotificationAction)
  }

  window = {<commit_msg>fix(client): use correct platform name for OpenFin adapter<commit_after>/* eslint-disable no-undef */
/* eslint-disable no-restricted-globals */

import { Platform } from '../../platform'
import { AppConfig, InteropTopics } from '../../types'
import { createPlatformWindow, openDesktopWindow, showWindow } from './window'
import { fromEventPattern } from 'rxjs'
import {
  Notification,
  NotificationActionEvent,
  removeEventListener,
  addEventListener,
  create,
} from 'openfin-notifications'
import { NotificationMessage } from '../../browser/utils/sendNotification'
import OpenFinRoute from './OpenFinRoute'
import { OpenFinControls, OpenFinHeader, OpenFinFooter, OpenFinLogo } from '../components'

export default class OpenFin implements Platform {
  readonly name = 'openfin'
  readonly type = 'desktop'
  readonly allowTearOff = true

  style = {
    height: '100%',
  }

  constructor() {
    window.addEventListener('beforeunload', this.handleWindowUnload)

    addEventListener('notification-action', this.handleNotificationAction)
  }

  window = {
{'fraction_non_alphanumeric': 0.11770334928229666, 'fraction_numerical': 0.0028708133971291866, 'mean_word_length': 4.576, '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': '5008138', 'n_tokens_mistral': 580, 'n_tokens_neox': 555, 'n_words': 149}