<commit_before>import baseTool from './baseTool.js';

export default class extends baseTool {
  constructor ({
    name,
    strategies,
    defaultStrategy,
    configuration,
    supportedInteractionTypes
  }) {
    super({
      name,
      strategies,
      defaultStrategy,
      configuration,
      supportedInteractionTypes
    });

    this.isAnnotationTool = true;
  }

  createNewMeasurement (evt) {
    console.warn(`createNewMeasurement not implemented for ${this.toolName}`);
  }

  /**
   * @param {*} element
   * @param {*} data
   * @param {*} coords
   * @returns {boolean} If the point is near the tool
   */
  pointNearTool (element, data, coords) {
    console.warn(`pointNearTool not implemented for ${this.toolName}`);
  }

  /**
   * @param {*} element
   * @param {*} data
   * @param {*} coords
   * @returns {number} the distance in px from the provided coordinates to the
   * closest rendered portion of the annotation. -1 if the distance cannot be
   * calculated.
   */
  distanceFromPoint (element, data, coords) {
    console.warn(`distanceFromPoint not implemented for ${this.toolName}`);
  }

  /**
   * Used to redraw the tool's annotation data per render
   *
   * @param {*} evt
   */
  onImageRendered (evt) {
    console.warn(`onImageRendered not implemented for ${this.toolName}`);
  }
}<commit_msg>Sneak in rename of `onImageRendered` to `renderToolData`<commit_after>import baseTool from './baseTool.js';

export default class extends baseTool {
  constructor ({
    name,
    strategies,
    defaultStrategy,
    configuration,
    supportedInteractionTypes
  }) {
    super({
      name,
      strategies,
      defaultStrategy,
      configuration,
      supportedInteractionTypes
    });

    this.isAnnotationTool = true;
  }

  createNewMeasurement (evt) {
    console.warn(`createNewMeasurement not implemented for ${this.toolName}`);
  }

  /**
   * @param {*} element
   * @param {*} data
   * @param {*} coords
   * @returns {boolean} If the point is near the tool
   */
  pointNearTool (element, data, coords) {
    console.warn(`pointNearTool not implemented for ${this.toolName}`);
  }

  /**
   * @param {*} element
   * @param {*} data
   * @param {*} coords
   * @returns {number} the distance in px from the provided coordinates to the
   * closest rendered portion of the annotation. -1 if the distance cannot be
   * calculated.
   */
  distanceFromPoint (element, data, coords) {
    console.warn(`distanceFromPoint not implemented for ${this.toolName}`);
  }

  /**
   * Used to redraw the tool's annotation data per render
   *
   * @param {*} evt
   */
  renderToolData (evt) {
    console.warn(`onImageRendered not implemented for ${this.toolName}`);
  }
}
{'fraction_non_alphanumeric': 0.11820851688693099, 'fraction_numerical': 0.0007342143906020558, 'mean_word_length': 3.037037037037037, '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': '6935488', 'n_tokens_mistral': 816, 'n_tokens_neox': 817, 'n_words': 232}