<commit_before>/**
 * Created by <NAME> on 14.08.2015.
 */

import model = require('./model');
import utils = require('./utils');

/**
 * context for rendering, wrapped as an object for easy extensibility
 */
export interface IRenderContext {
  /**
   * the y position of the cell
   * @param index
   */
  cellY(index:number):number;

  /**
   * the previous y position of the cell
   * @param index
   */
  cellPrevY(index:number):number;
  /**
   * the x position of the cell
   * @param index
   */
  cellX(index:number):number;
  /**
   * the height of a row
   * @param index
   */
  rowHeight(index:number):number;
  /**
   * a key function for uniquely identifying a data row
   * @param d
   * @param i<commit_msg>tslint fixes<commit_after>/**
 * Created by <NAME> on 14.08.2015.
 */

import model = require('./model');

/**
 * context for rendering, wrapped as an object for easy extensibility
 */
export interface IRenderContext {
  /**
   * the y position of the cell
   * @param index
   */
  cellY(index:number):number;

  /**
   * the previous y position of the cell
   * @param index
   */
  cellPrevY(index:number):number;
  /**
   * the x position of the cell
   * @param index
   */
  cellX(index:number):number;
  /**
   * the height of a row
   * @param index
   */
  rowHeight(index:number):number;
  /**
   * a key function for uniquely identifying a data row
   * @param d
   * @param i
{'fraction_non_alphanumeric': 0.13333333333333333, 'fraction_numerical': 0.011347517730496455, 'mean_word_length': 2.732804232804233, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6047440', 'n_tokens_mistral': 460, 'n_tokens_neox': 445, 'n_words': 145}