<commit_before>// @flow
import { Tag } from '../types';

export default class HTMLModel {
  constructor(tag: Tag, classes: Array<string>, content: string) {
    this.tag = tag;
    this.content = content;
    this.classes = classes;
  }

  reactTemplate(tag: Tag, classes: Array<string>, content: string): string {
    if (classes.length > 0) {
      return `
        <${tag} className="${classes}"
          ${content}
        </${tag}>
      `;
    } else {
      return `
        <${tag}>
          ${content}
        </${tag}>
      `;
    }
  }

  generate(): string {
    return this.reactTemplate(this.tag, this.classes, this.content);
  }
}<commit_msg>Fixed missing angle bracket<commit_after>// @flow
import { Tag } from '../types';

export default class HTMLModel {
  constructor(tag: Tag, classes: Array<string>, content: string) {
    this.tag = tag;
    this.content = content;
    this.classes = classes;
  }

  reactTemplate(tag: Tag, classes: Array<string>, content: string): string {
    if (classes.length > 0) {
      return `
        <${tag} className="${classes}">
          ${content}
        </${tag}>
      `;
    } else {
      return `
        <${tag}>
          ${content}
        </${tag}>
      `;
    }
  }

  generate(): string {
    return this.reactTemplate(this.tag, this.classes, this.content);
  }
}
{'fraction_non_alphanumeric': 0.16404494382022472, 'fraction_numerical': 0.00149812734082397, 'mean_word_length': 2.2585365853658534, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 16, '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': '203383', 'n_tokens_mistral': 416, 'n_tokens_neox': 407, 'n_words': 99}