<commit_before># -*- coding: utf8 -*-

from SentenceModel import SentenceModel

class Sentence:
    @staticmethod
    def loadByCharacterIdAndTriggerWord(idCharacter, triggerWord):
        sentences = list()

        sentencesModels = SentenceModel.loadByCharacterIdAndTriggerWord(idCharacter, triggerWord)
        for index, sentence in enumerate(sentencesModels):
            sentences.append(Sentence())
            sentences[index]._model = sentencesModels

        return sentences

    def getSentence(self):
        return self._model.getSentence()
<commit_msg>the current is sentence, not sentenceModels<commit_after># -*- coding: utf8 -*-

from SentenceModel import SentenceModel

class Sentence:
    @staticmethod
    def loadByCharacterIdAndTriggerWord(idCharacter, triggerWord):
        sentences = list()

        sentencesModels = SentenceModel.loadByCharacterIdAndTriggerWord(idCharacter, triggerWord)
        for index, sentence in enumerate(sentencesModels):
            sentences.append(Sentence())
            sentences[index]._model = sentence

        return sentences

    def getSentence(self):
        return self._model.getSentence()

{'fraction_non_alphanumeric': 0.07851596203623813, 'fraction_numerical': 0.001725625539257981, 'mean_word_length': 3.4615384615384617, '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': '6674358', 'n_tokens_mistral': 303, 'n_tokens_neox': 294, 'n_words': 69}