<commit_before>// Type definitions for iframe-resizer 3.5
// Project: https://github.com/davidjbradshaw/iframe-resizer
// Definitions by: <NAME> <https://github.com/arminbaljic>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

// tslint:disable-next-line:interface-name
export interface IFrameObject {
  close(): void;
  moveToAnchor(anchor: string): void;
  resize(): void;
  sendMessage(message: any, targetOrigin?: string): void;
}

// tslint:disable-next-line:interface-name
export interface IFrameComponent extends HTMLIFrameElement {
  iFrameResizer: IFrameObject;
}

// tslint:disable-next-line:interface-name
export interface IFrameOptions {
  /**
   * When enabled changes to the Window size or the DOM will cause the iFrame to resize to the new content size.
   * Disable if using size method with custom dimensions.
   */
  autoResize?: boolean;
  /**
   * Override the body background style in the iFrame.
   */
  bodyBackground?: string;
  /**
   * Override the default body margin style in the iFrame. A string can be any valid value for the
   * CSS margin attribute, for example '8px 3em'. A number value is converted into px.
   */
  bodyMargin?: number | string;
  /**
   * When set to true, only allow incoming messages from the domain listed in the src property of the iFrame tag.
   * If your iFrame navigates between different domains, ports or protocols; then you will need to
   * provide an array of URLs or disable this option.
   */
  checkOrigin?: boolean | string[];
  /**
   * When enabled in page linking inside the iFrame and from the iFrame to the parent page will be enabled.
   */
  inPageLinks?: boolean;
  /**
   * Height calculation method.
   */
  heightCalculationMethod?: HeightCalculationMethod;
  /**
   * Set iFrame Id<commit_msg>Adding additional bodyPadding to IFrameOptions This change add the missing bodyPadding to the IFrameOptions definition of iframe-resizer<commit_after>// Type definitions for iframe-resizer 3.5
// Project: https://github.com/davidjbradshaw/iframe-resizer
// Definitions by: <NAME> <https://github.com/arminbaljic>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

// tslint:disable-next-line:interface-name
export interface IFrameObject {
  close(): void;
  moveToAnchor(anchor: string): void;
  resize(): void;
  sendMessage(message: any, targetOrigin?: string): void;
}

// tslint:disable-next-line:interface-name
export interface IFrameComponent extends HTMLIFrameElement {
  iFrameResizer: IFrameObject;
}

// tslint:disable-next-line:interface-name
export interface IFrameOptions {
  /**
   * When enabled changes to the Window size or the DOM will cause the iFrame to resize to the new content size.
   * Disable if using size method with custom dimensions.
   */
  autoResize?: boolean;
  /**
   * Override the body background style in the iFrame.
   */
  bodyBackground?: string;
  /**
   * Override the default body margin style in the iFrame. A string can be any valid value for the
   * CSS margin attribute, for example '8px 3em'. A number value is converted into px.
   */
  bodyMargin?: number | string;
  /**
   * Override the default body padding style in the iFrame. A string can be any valid value for the
   * CSS margin attribute, for example '8px 3em'. A number value is converted into px.
   */
  bodyPadding?: number | string;
  /**
   * When set to true, only allow incoming messages from the domain listed in the src property of the iFrame tag.
   * If your iFrame navigates between different domains, ports or protocols; then you will need to
   * provide an array of URLs or disable this option.
   */
  checkOrigin?: boolean | string[];
  /**
   * When enabled in page linking inside the iFrame and from the iFrame to the parent page will be enabled.
   */
  inPageLinks?: boolean;
  /**
   * Height calculation method.
   */
  heightCalculationMethod?: HeightCalculationMethod;
  /**
   * Set iFrame Id
{'fraction_non_alphanumeric': 0.09033240294341538, 'fraction_numerical': 0.002537427048972342, 'mean_word_length': 3.681710213776722, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, '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': '103284', 'n_tokens_mistral': 1122, 'n_tokens_neox': 1103, 'n_words': 438}