<commit_before>'use strict';

import { NgModule, Component, ElementRef, EventEmitter, Input, Output } from '@angular/core';

declare var require: any;

@NgModule({
  declarations: [SignaturePad],
  exports: [SignaturePad]
})
export class SignaturePadModule {}

@Component({
  template: '<canvas></canvas>',
  selector: 'signature-pad',
})

export class SignaturePad {

  @Input() private options: Object;
  @Output() private onEndEvent: EventEmitter<boolean>;

  private signaturePad: any;
  private elementRef: ElementRef;

  constructor(elementRef: ElementRef) {
    // no op
    this.elementRef = elementRef;
    this.options = this.options || {};
    this.onEndEvent = new EventEmitter();
  }

  public ngAfterContentInit(): void {
    let sp: any = require('signature_pad');
    let canvas: any = this.elementRef.nativeElement.querySelector('canvas');
    let canvasHeightKey: string = 'canvasHeight';<commit_msg>Expose private input/output<commit_after>'use strict';

import { NgModule, Component, ElementRef, EventEmitter, Input, Output } from '@angular/core';

declare var require: any;

@NgModule({
  declarations: [SignaturePad],
  exports: [SignaturePad]
})
export class SignaturePadModule {}

@Component({
  template: '<canvas></canvas>',
  selector: 'signature-pad',
})

export class SignaturePad {

  @Input() options: Object;
  @Output() onEndEvent: EventEmitter<boolean>;

  private signaturePad: any;
  private elementRef: ElementRef;

  constructor(elementRef: ElementRef) {
    // no op
    this.elementRef = elementRef;
    this.options = this.options || {};
    this.onEndEvent = new EventEmitter();
  }

  public ngAfterContentInit(): void {
    let sp: any = require('signature_pad');
    let canvas: any = this.elementRef.nativeElement.querySelector('canvas');
    let canvasHeightKey: string = 'canvasHeight';
{'fraction_non_alphanumeric': 0.1303162486368593, 'fraction_numerical': 0.0, 'mean_word_length': 4.734375, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2506635', 'n_tokens_mistral': 534, 'n_tokens_neox': 531, 'n_words': 141}