<commit_before>package ua.codegym.impl;

import ua.codegym.Event;
import ua.codegym.EventHandler;
import ua.codegym.Parser;

import java.io.IOException;
import java.io.InputStream;
import java.util.Map;

//bbbbbbbbbbb

public class XmlParser implements Parser{


  private final Map<Event, EventHandler> handlers;

  public XmlParser(Map<Event, EventHandler> handlers) {
    this.handlers = handlers;
  }

  @Override
  public void parse(InputStream in) throws IOException{
    Event event = Event.START_ELEMENT;
    int countLineSymb = 0;
    int countLines = 1;
    while (in.available() > 0) {
      int tmp = in.read();
      event = event.next(handlers,tmp,countLineSymb,countLines);
      countLineSymb++;
      if (tmp == 10) {
        countLines++;
      }

    }
  }
}
<commit_msg>master2<commit_after>package ua.codegym.impl;

import ua.codegym.Event;
import ua.codegym.EventHandler;
import ua.codegym.Parser;

import java.io.IOException;
import java.io.InputStream;
import java.util.Map;

//wwwwwww
/wwwwred

public class XmlParser implements Parser{


  private final Map<Event, EventHandler> handlers;

  public XmlParser(Map<Event, EventHandler> handlers) {
    this.handlers = handlers;
  }

  @Override
  public void parse(InputStream in) throws IOException{
    Event event = Event.START_ELEMENT;
    int countLineSymb = 0;
    int countLines = 1;
    while (in.available() > 0) {
      int tmp = in.read();
      event = event.next(handlers,tmp,countLineSymb,countLines);
      countLineSymb++;
      if (tmp == 10) {
        countLines++;
      }

    }
  }
}

{'fraction_non_alphanumeric': 0.11082963901203294, 'fraction_numerical': 0.006966434452184927, 'mean_word_length': 3.352617079889807, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '4929694', 'n_tokens_mistral': 550, 'n_tokens_neox': 521, 'n_words': 121}