def readSourceCorpus(source_path_address):
    sourceFileRead = FileReadWrite(source_path_address)
    file_content_dict = sourceFileRead.readFilesWordByWordInDict(
        source_path_address, '.java')
    file_path_info = sourceFileRead.getFilePath()
    #print('---------------------------------------------------------------------------------------------------------------------------')
    #print (str(file_path_info))

    list_of_files = processSourceCorpusPaths(file_path_info)
    return list_of_files
 def CorpusCreator(self, folderPath, file_extension):
     # Read each file
     file_read_Write = FileReadWrite(folderPath)
     file_content_all = file_read_Write.readFilesWordByWord(folderPath, file_extension)
     self.file_path_info=file_read_Write.getFilePath()
     return file_content_all