<commit_before>///<reference path="../reference.ts" />

module Plottable {
export module Components {
  export enum PropertyMode { VALUE, PIXEL };
  export class SelectionBoxLayer extends Component {
    protected _box: d3.Selection<void>;
    private _boxArea: d3.Selection<void>;
    private _boxVisible = false;
    private _boxBounds: Bounds = {
      topLeft: { x: 0, y: 0 },
      bottomRight: { x: 0, y: 0 }
    };
    private _xExtent: [number | { valueOf(): number }, number | { valueOf(): number }];
    private _yExtent: [number | { valueOf(): number }, number | { valueOf(): number }];
    private _xScale: QuantitativeScale<number | { valueOf(): number }>;
    private _yScale: QuantitativeScale<number | { valueOf(): number }>;
    private _adjustBoundsCallback: ScaleCallback<QuantitativeScale<number | { valueOf(): number }>>;
    protected _xBoundsMode = PropertyMode.PIXEL;
    protected _yBoundsMode = PropertyMode.PIXEL;

    constructor() {
      super();
      this.addClass("selection-box-layer");
      this._adjustBoundsCallback = () => {
        this.render();
      };
      this._xExtent = [undefined, undefined];
      this._yExtent = [undefined, undefined];
    }

    protected _setup() {
      super._setup();

      this._box = this.content().append("g").classed("selection-box", true).remove();
      this._boxArea = this._box.append("rect").classed("selection-area", true);
    }

    protected _sizeFromOffer(availableWidth: number, availableHeight: number) {
      return {
        width: availableWidth,
        height: availableHeight
      };<commit_msg>use more compatible type<commit_after>///<reference path="../reference.ts" />

module Plottable {
export module Components {
  export enum PropertyMode { VALUE, PIXEL };
  export class SelectionBoxLayer extends Component {
    protected _box: d3.Selection<void>;
    private _boxArea: d3.Selection<void>;
    private _boxVisible = false;
    private _boxBounds: Bounds = {
      topLeft: { x: 0, y: 0 },
      bottomRight: { x: 0, y: 0 }
    };
    private _xExtent: (number | { valueOf(): number })[];
    private _yExtent: (number | { valueOf(): number })[];
    private _xScale: QuantitativeScale<number | { valueOf(): number }>;
    private _yScale: QuantitativeScale<number | { valueOf(): number }>;
    private _adjustBoundsCallback: ScaleCallback<QuantitativeScale<number | { valueOf(): number }>>;
    protected _xBoundsMode = PropertyMode.PIXEL;
    protected _yBoundsMode = PropertyMode.PIXEL;

    constructor() {
      super();
      this.addClass("selection-box-layer");
      this._adjustBoundsCallback = () => {
        this.render();
      };
      this._xExtent = [undefined, undefined];
      this._yExtent = [undefined, undefined];
    }

    protected _setup() {
      super._setup();

      this._box = this.content().append("g").classed("selection-box", true).remove();
      this._boxArea = this._box.append("rect").classed("selection-area", true);
    }

    protected _sizeFromOffer(availableWidth: number, availableHeight: number) {
      return {
        width: availableWidth,
        height: availableHeight
      };
{'fraction_non_alphanumeric': 0.13826059254539663, 'fraction_numerical': 0.003822873526600828, 'mean_word_length': 3.3131868131868134, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, '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': '2746408', 'n_tokens_mistral': 916, 'n_tokens_neox': 895, 'n_words': 209}