<commit_before>import { expect } from 'chai'
import Up from '../../../index'
import { InlineNsflNode } from '../../../SyntaxNodes/InlineNsflNode'
import { NsflBlockNode } from '../../../SyntaxNodes/NsflBlockNode'


describe("The ID of an inline NSFL convention's checkbox (on both the checkbox and the label)", () => {
  it("uses the provided term for 'nsfl'", () => {
    const up = new Up({
      i18n: {
        terms: { nsfl: 'life ruining' }
      }
    })

    const node = new InlineNsflNode([])

    const html =
      '<span class="up-nsfl up-revealable">'
      + '<label for="up-life-ruining-1">toggle NSFL</label>'
      + '<input id="up-life-ruining-1" type="checkbox">'
      + '<span></span>'
      + '</span>'

    expect(up.toHtml(node)).to.be.eql(html)
  })
})


describe("The ID of a NSFL block's checkbox (on both the checkbox and the label)", () => {
  it("uses the provided term for 'nsfl'", () => {
    const up = new Up({
      i18n: {
        terms: { nsfl: 'life ruining' }
      }
    })

    const node = new NsflBlockNode([])

    const html =
      '<div class="up-nsfl up-revealable">'
      + '<label for="up-life-ruining-1">toggle NSFL</label>'
      + '<input id="up-life-ruining-1" type="checkbox">'
      + '<div></div>'
      + '</div>'

    expect(up.toHtml(node)).to.be.eql(html)
  })
})<commit_msg>[Broken] Fix more compilation errors<commit_after>import { expect } from 'chai'
import Up from '../../../index'
import { DocumentNode } from '../../../SyntaxNodes/DocumentNode'
import { ParagraphNode } from '../../../SyntaxNodes/ParagraphNode'
import { InlineNsflNode } from '../../../SyntaxNodes/InlineNsflNode'
import { NsflBlockNode } from '../../../SyntaxNodes/NsflBlockNode'


describe("The ID of an inline NSFL convention's checkbox (on both the checkbox and the label)", () => {
  it("uses the provided term for 'nsfl'", () => {
    const up = new Up({
      i18n: {
        terms: { nsfl: 'life ruining' }
      }
    })

    const documentNode = new DocumentNode([
      new ParagraphNode([
        new InlineNsflNode([])
      ])
    ])

    const html =
      '<p>'
    '<span class="up-nsfl up-revealable">'
      + '<label for="up-life-ruining-1">toggle NSFL</label>'
      + '<input id="up-life-ruining-1" type="checkbox">'
      + '<span></span>'
      + '</span>'
      + '</p>'

    expect(up.toHtml(documentNode)).to.be.eql(html)
  })
})


describe("The ID of a NSFL block's checkbox (on both the checkbox and the label)", () => {
  it("uses the provided term for 'nsfl'", () => {
    const up = new Up({
      i18n: {
        terms: { nsfl: 'life ruining' }
      }
    })

    const documentNode = new DocumentNode([
      new NsflBlockNode([])
    ])

    const html =
      '<div class="up-nsfl up-revealable">'
      + '<label for="up-life-ruining-1">toggle NSFL</label>'
      + '<input id="up-life-ruining-1" type="checkbox">'
      + '<div></div>'
      + '</div>'

    expect(up.toHtml(documentNode)).to.be.eql(html)
  })
})
{'fraction_non_alphanumeric': 0.19270659083305453, 'fraction_numerical': 0.005352960856473737, 'mean_word_length': 2.5595238095238093, 'pattern_counts': {'":': 0, '<': 33, '<?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': '7561617', 'n_tokens_mistral': 1027, 'n_tokens_neox': 1004, 'n_words': 242}