<commit_before>class Elements {
  constructor(doc) {
    this.doc = doc;
  }

  getTitle() {
    const titles = this.doc.getElementsByTagName('title');
    return this.first(titles);
  }

  getHead() {
    const heads = this.doc.getElementsByTagName('head');
    return this.first(heads);
  }

  getBody() {
    return this.doc.body;
  }

  first(array) {
    if(array.length > 0)
      return array[0];
    else
      return null;
  }

  getDomain() {
    const location = this.doc.location;<commit_msg>Remove unused method<commit_after>class Elements {
  constructor(doc) {
    this.doc = doc;
  }

  getTitle() {
    const titles = this.doc.getElementsByTagName('title');
    return this.first(titles);
  }

  getHead() {
    const heads = this.doc.getElementsByTagName('head');
    return this.first(heads);
  }

  first(array) {
    if(array.length > 0)
      return array[0];
    else
      return null;
  }

  getDomain() {
    const location = this.doc.location;
{'fraction_non_alphanumeric': 0.13505154639175257, 'fraction_numerical': 0.004123711340206186, 'mean_word_length': 2.7782101167315174, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '712298', 'n_tokens_mistral': 338, 'n_tokens_neox': 323, 'n_words': 62}