<commit_before>import { ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { NgxBraintreeService } from './ngx-braintree.service';
import { ConfigureDropinService } from './configure-dropin.service';

declare var braintree: any;

@Component({
  selector: 'ngx-braintree',
  template: `
    <div *ngIf="showLoader" style="position:relative; left: 50%; top: '50%';">
      <div #loaderRef><ng-content select="img"></ng-content></div>
      <img *ngIf="loaderRef.children.length === 0" src="/assets/images/loader.gif" />
    </div>
    <div class="error" *ngIf="errorMessage">Error</div>
    <div class="errorInfoDiv" *ngIf="errorMessage">{{errorMessage}}</div>
    <div *ngIf="showDropinUI && clientToken" ngxBraintreeDirective>
      <div id="dropin-container"></div>

      <div *ngIf="showPayButton" #buttonsRef><ng-content></ng-content></div>

      <!-- No buttons are projected and no styles sent, so the default button (Purchase) with default styles will be used. --><commit_msg>minor fix<commit_after>import { ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { NgxBraintreeService } from './ngx-braintree.service';
import { ConfigureDropinService } from './configure-dropin.service';

declare var braintree: any;

@Component({
  selector: 'ngx-braintree',
  template: `
    <div *ngIf="showLoader" style="position:relative; left: 50%; top: '50%';">
      <div #loaderRef><ng-content select="img"></ng-content></div>
      <img *ngIf="loaderRef.children.length === 0" src="/assets/images/loader.gif" />
    </div>
    <div class="error" *ngIf="errorMessage">Error</div>
    <div class="errorInfoDiv" *ngIf="errorMessage">{{errorMessage}}</div>
    <div *ngIf="showDropinUI && clientToken" ngxBraintreeDirective>
      <div id="dropin-container"></div>

      <div #buttonsRef><ng-content></ng-content></div>

      <!-- No buttons are projected and no styles sent, so the default button (Purchase) with default styles will be used. -->
{'fraction_non_alphanumeric': 0.17010816125860373, 'fraction_numerical': 0.004916420845624385, 'mean_word_length': 4.700280112044818, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '413451', 'n_tokens_mistral': 649, 'n_tokens_neox': 629, 'n_words': 148}