# Path: SmellDetector/SmellDectector.py
# def detectSmells(folder, outputFile):
# 
# Path: SmellDetector/SizeMetrics.py
# def collectSizeMetrics(folder, outputFile):
# 
# Path: SmellDetector/FileOperations.py
# def countPuppetFiles(folder):
# 
# Path: SmellDetector/Utilities.py
# def myPrint(msg):
# def reportSmell(outputFile, fileName, smellName, reason):
# def intersection(list1, list2):
# def summation(list1, list2):


import SmellDetector.Constants as CONSTS
from SmellDetector import SmellDectector, SizeMetrics, FileOperations, Utilities


def analyze(folder, repoName):
    outputFile = open(folder + "/" + CONSTS.PUPPETEER_OUT_FILE, 'w')

    puppetFileCount = FileOperations.countPuppetFiles(folder)
    outputFile.write(CONSTS.PUPPET_FILE_COUNT + str(puppetFileCount) + "\n")
    Utilities.myPrint(CONSTS.PUPPET_FILE_COUNT + str(puppetFileCount))


# Path: SmellDetector/SmellDectector.py
# def detectSmells(folder, outputFile):
# 
# Path: SmellDetector/SizeMetrics.py
# def collectSizeMetrics(folder, outputFile):
# 
# Path: SmellDetector/FileOperations.py
# def countPuppetFiles(folder):
# 
# Path: SmellDetector/Utilities.py
# def myPrint(msg):
# def reportSmell(outputFile, fileName, smellName, reason):
# def intersection(list1, list2):
# def summation(list1, list2):


# Path: SmellDetector/Analyzer.py
import SmellDetector.Constants as CONSTS
from SmellDetector import SmellDectector, SizeMetrics, FileOperations, Utilities



def analyze(folder, repoName):
    outputFile = open(folder + "/" + CONSTS.PUPPETEER_OUT_FILE, 'w')

    puppetFileCount = FileOperations.countPuppetFiles(folder)
    outputFile.write(CONSTS.PUPPET_FILE_COUNT + str(puppetFileCount) + "\n")
    Utilities.myPrint(CONSTS.PUPPET_FILE_COUNT + str(puppetFileCount))


    SizeMetrics.collectSizeMetrics(folder, outputFile)