<commit_before>from parser import Parser

class Summarizer:
  def __init__(self):
    self.parser = Parser()

  def summarize(self, text, title, source, category):
    sentences = self.parser.splitSentences(text)
    titleWords = self.parser.removePunctations(title)
    titleWords = self.parser.splitWords(title)

    # Adding keywords in the keyword variable
    [self.parser.getKeywords(sentence) for sentence in sentences]

    topKeywords = getTopKeywords(self.parser.keywords[:10])

  def getTopKeywords(keywords):
    # Add getting top keywords in the database here
    return keywords<commit_msg>added self in the new method<commit_after>from parser import Parser

class Summarizer:
  def __init__(self):
    self.parser = Parser()

  def summarize(self, text, title, source, category):
    sentences = self.parser.splitSentences(text)
    titleWords = self.parser.removePunctations(title)
    titleWords = self.parser.splitWords(title)

    # Adding keywords in the keyword variable
    [self.parser.getKeywords(sentence) for sentence in sentences]

    topKeywords = self.getTopKeywords(self.parser.keywords[:10])

  def getTopKeywords(self, keywords):
    # Add getting top keywords in the database here
    return keywords

{'fraction_non_alphanumeric': 0.08582995951417004, 'fraction_numerical': 0.0032388663967611335, 'mean_word_length': 4.35064935064935, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5776834', 'n_tokens_mistral': 368, 'n_tokens_neox': 346, 'n_words': 99}