<commit_before>import { Component, ContentChild, Input, OnInit } from '@angular/core';
import * as _ from 'lodash';
import { SprkFieldErrorDirective } from '../../../directives/inputs/sprk-field-error/sprk-field-error.directive';
import { SprkInputDirective } from '../../../directives/inputs/sprk-input/sprk-input.directive';
import { SprkLabelDirective } from '../../../directives/inputs/sprk-label/sprk-label.directive';

@Component({
  selector: 'sprk-textarea-container',
  template: `
    <div [ngClass]="getClasses()">
      <ng-content select="[sprkLabel]"></ng-content>
      <ng-content select="[sprkInput]"></ng-content>
      <ng-content select="sprk-selection-item-container"></ng-content>
      <ng-content select="[sprkHelperText]"></ng-content>
      <ng-content select="[sprkFieldError]"></ng-content>
    </div>
  `
})
export class SprkTextareaContainerComponent implements OnInit {
  @Input()
  additionalClasses: string;
  @Input()
  iconContainerClasses: string;

  @ContentChild(SprkLabelDirective, { static: false })
  label: SprkLabelDirective;
  @ContentChild(SprkInputDirective, { static: false })
  input: SprkInputDirective;
  @ContentChild(SprkFieldErrorDirective, { static: false })
  error: SprkFieldErrorDirective;

  id = _.uniqueId();
  input_id = `input_${this.id}`;
  error_id = `error_${this.id}`;

  getClasses(): string {
    const classArray: string[] = [
      'sprk-b-InputContainer',
      'sprk-b-InputContainer--textarea'
    ];

    if (this.additionalClasses) {
      this.additionalClasses.split(' ').forEach(className => {
        classArray.push(className);
      });<commit_msg>update contentchild static to true<commit_after>import { Component, ContentChild, Input, OnInit } from '@angular/core';
import * as _ from 'lodash';
import { SprkFieldErrorDirective } from '../../../directives/inputs/sprk-field-error/sprk-field-error.directive';
import { SprkInputDirective } from '../../../directives/inputs/sprk-input/sprk-input.directive';
import { SprkLabelDirective } from '../../../directives/inputs/sprk-label/sprk-label.directive';

@Component({
  selector: 'sprk-textarea-container',
  template: `
    <div [ngClass]="getClasses()">
      <ng-content select="[sprkLabel]"></ng-content>
      <ng-content select="[sprkInput]"></ng-content>
      <ng-content select="sprk-selection-item-container"></ng-content>
      <ng-content select="[sprkHelperText]"></ng-content>
      <ng-content select="[sprkFieldError]"></ng-content>
    </div>
  `
})
export class SprkTextareaContainerComponent implements OnInit {
  @Input()
  additionalClasses: string;
  @Input()
  iconContainerClasses: string;

  @ContentChild(SprkLabelDirective, { static: true })
  label: SprkLabelDirective;
  @ContentChild(SprkInputDirective, { static: true })
  input: SprkInputDirective;
  @ContentChild(SprkFieldErrorDirective, { static: true })
  error: SprkFieldErrorDirective;

  id = _.uniqueId();
  input_id = `input_${this.id}`;
  error_id = `error_${this.id}`;

  getClasses(): string {
    const classArray: string[] = [
      'sprk-b-InputContainer',
      'sprk-b-InputContainer--textarea'
    ];

    if (this.additionalClasses) {
      this.additionalClasses.split(' ').forEach(className => {
        classArray.push(className);
      });
{'fraction_non_alphanumeric': 0.16422466422466422, 'fraction_numerical': 0.0, 'mean_word_length': 4.112324492979719, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 29, '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': '7156809', 'n_tokens_mistral': 1054, 'n_tokens_neox': 1037, 'n_words': 172}