<commit_before>// Includes KMW-added property declaration extensions for HTML elements.
/// <reference path="kmwexthtml.ts" />
// Includes a promise polyfill (needed for IE)
/// <reference path="../node_modules/es6-shim/es6-shim.min.js" />
// Defines the web-page interface object.
/// <reference path="singleton.ts" />
// Defines the core text processor.
/// <reference path="../node_modules/@keymanapp/input-processor/src/text/inputProcessor.ts" />
// Extends KeyboardInterface with DOM-oriented offerings.
/// <reference path="text/domKbdInterface.ts" />
// Defines the web-page interface object.
/// <reference path="dom/domManager.ts" />
// Includes KMW-added property declaration extensions for HTML elements.
/// <reference path="kmwutils.ts" />
// Defines keyboard management classes.
/// <reference path="keyboards/kmwkeyboards.ts" />
// Defines KMW's hotkey management object.
/// <reference path="kmwhotkeys.ts" />
// Defines the ui management code that tracks UI activation and such.
/// <reference path="kmwuimanager.ts" />
// Defines OSK management code.
/// <reference path="osk/oskManager.ts" />
// Defines the model manager.
/// <reference path="text/prediction/modelManager.ts" />

/***
   KeymanWeb 14.0
   Copyright 2017-2021 SIL International
***/
namespace com.keyman {

  export enum SpacebarText {
    KEYBOARD = 'keyboard',
    LANGUAGE = 'language',
    LANGUAGE_KEYBOARD = 'languageKeyboard',
    BLANK = 'blank'
  };

  export interface OptionType {
    root?: string;
    resources?: string;
    keyboards?: string;
    fonts?: string;
    attachType?: 'auto' | 'manual' | ''; // If blank or undefined, attachType will be assigned to "auto" or "manual"
    ui?: string;
    setActiveOnRegister?: string; // TODO: Convert to boolean. Option loader needs to be able to receive this as a string or boolean

    // Determines whether or not KeymanWeb should display its own alert messages
    useAlerts?: boolean;
  }

  export class KeymanBase {
    _TitleElement = null;      // I1972 - KeymanWeb Titlebar should not be a link
    _IE = 0;                   // browser version identification
    _MasterDocument = null;    // Document with controller (to allow iframes to distinguish local/master control)
    _HotKeys = [];             // Array of document-level hotkey objects
    warned = false;            // Warning flag (to prevent multiple warnings)
    baseFont = 'sans-serif';   // Default font for mapped input elements<commit_msg>fix(web): add spacebarText to OptionType<commit_after>// Includes KMW-added property declaration extensions for HTML elements.
/// <reference path="kmwexthtml.ts" />
// Includes a promise polyfill (needed for IE)
/// <reference path="../node_modules/es6-shim/es6-shim.min.js" />
// Defines the web-page interface object.
/// <reference path="singleton.ts" />
// Defines the core text processor.
/// <reference path="../node_modules/@keymanapp/input-processor/src/text/inputProcessor.ts" />
// Extends KeyboardInterface with DOM-oriented offerings.
/// <reference path="text/domKbdInterface.ts" />
// Defines the web-page interface object.
/// <reference path="dom/domManager.ts" />
// Includes KMW-added property declaration extensions for HTML elements.
/// <reference path="kmwutils.ts" />
// Defines keyboard management classes.
/// <reference path="keyboards/kmwkeyboards.ts" />
// Defines KMW's hotkey management object.
/// <reference path="kmwhotkeys.ts" />
// Defines the ui management code that tracks UI activation and such.
/// <reference path="kmwuimanager.ts" />
// Defines OSK management code.
/// <reference path="osk/oskManager.ts" />
// Defines the model manager.
/// <reference path="text/prediction/modelManager.ts" />

/***
   KeymanWeb 14.0
   Copyright 2017-2021 SIL International
***/
namespace com.keyman {

  export enum SpacebarText {
    KEYBOARD = 'keyboard',
    LANGUAGE = 'language',
    LANGUAGE_KEYBOARD = 'languageKeyboard',
    BLANK = 'blank'
  };

  export interface OptionType {
    root?: string;
    resources?: string;
    keyboards?: string;
    fonts?: string;
    attachType?: 'auto' | 'manual' | ''; // If blank or undefined, attachType will be assigned to "auto" or "manual"
    ui?: string;
    setActiveOnRegister?: string; // TODO: Convert to boolean. Option loader needs to be able to receive this as a string or boolean

    // Determines the default text shown on the spacebar, if undefined, LANGUAGE_KEYBOARD
    spacebarText?: SpacebarText;

    // Determines whether or not KeymanWeb should display its own alert messages
    useAlerts?: boolean;
  }

  export class KeymanBase {
    _TitleElement = null;      // I1972 - KeymanWeb Titlebar should not be a link
    _IE = 0;                   // browser version identification
    _MasterDocument = null;    // Document with controller (to allow iframes to distinguish local/master control)
    _HotKeys = [];             // Array of document-level hotkey objects
    warned = false;            // Warning flag (to prevent multiple warnings)
    baseFont = 'sans-serif';   // Default font for mapped input elements
{'fraction_non_alphanumeric': 0.12148614114409279, 'fraction_numerical': 0.007076862590918026, 'mean_word_length': 3.1842105263157894, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '3180732', 'n_tokens_mistral': 1482, 'n_tokens_neox': 1413, 'n_words': 472}