<commit_before>
from lib import pydub
from app import insertSpaces
from app import pitchMod
from app import soundMod

class Sound:
    def __init__(self, soundPath, textgridPath):
        self.soundPath = soundPath
        self.textgrid = tgt.read_textgrid(textgridPath)
    def pauseInsertion(self, index, length):
        """
        This will get the time of the end of the word from
        the textgrid file, insert the silence at that point
        in the wave file using insertSpaces, and rewrite
        the textgrid file to reflect the change.
        """
        startTime = self.textgrid.get_tier_by_name('words')[0]

    def pitchMod(self, startTime, length, shift):
        '''<commit_msg>added in more imports to Sound.py<commit_after>from app import insertSpaces
from app import pitchMod
from app import soundMod
from app import changePitch
from app import loadGrid

class Sound:
    def __init__(self, soundPath, textgridPath):
        self.soundPath = soundPath
        self.textgrid = tgt.read_textgrid(textgridPath)
    def pauseInsertion(self, index, length):
        """
        This will get the time of the end of the word from
        the textgrid file, insert the silence at that point
        in the wave file using insertSpaces, and rewrite
        the textgrid file to reflect the change.
        """
        startTime = self.textgrid.get_tier_by_name('words')[0]

    def pitchMod(self, startTime, length, shift):
        '''
{'fraction_non_alphanumeric': 0.06671251719394773, 'fraction_numerical': 0.001375515818431912, 'mean_word_length': 2.953804347826087, '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': '150006', 'n_tokens_mistral': 405, 'n_tokens_neox': 398, 'n_words': 156}