def compareInstagram():
    tic = time.clock()
    for f in files:
        print 'currently in file ', f
        print 'time so far: ', (time.clock() - tic)
        getUsernames.getUsernamesFromList(f)
        getUsernames.doEverything()
        userList = getUsernames.getLists()
        createHistograms.createHistsAndNorms(userList)

        #instagram, already normalizes
        instaUserList = instaInfo.doEverything(f)
        #print 'user list is',instaUserList

        #returns: {'instaSummedCosines':instaSummedCosines,'cosines':cosines}
        compare.compareFreqs(userList, instaUserList)

        dictionary = compare.gatherinstaCosines(userList)
        cosinesTemp = dictionary.get('instaCosines')
        for cos in cosinesTemp:
            instaCosines.append(cos)
        instaSummedCosinesTemp = dictionary.get('instaSummedCosines')
        for item in instaSummedCosinesTemp:
            instaSummedCosines[item] = instaSummedCosinesTemp.get(item)
        compare.meanInstaCosines()
        compare.stdDevInstaCosines()
    toc = time.clock()
    print 'time is ', toc - tic
def compareInstagram():
	tic = time.clock()
	for f in files:
		print 'currently in file ',f
		print 'time so far: ',(time.clock()-tic) 
		getUsernames.getUsernamesFromList(f)
		getUsernames.doEverything()
		userList = getUsernames.getLists()
		createHistograms.createHistsAndNorms(userList)

		#instagram, already normalizes
		instaUserList = instaInfo.doEverything(f)
		#print 'user list is',instaUserList

		#returns: {'instaSummedCosines':instaSummedCosines,'cosines':cosines}
		compare.compareFreqs(userList,instaUserList)

		dictionary = compare.gatherinstaCosines(userList)
		cosinesTemp = dictionary.get('instaCosines')
		for cos in cosinesTemp:
			instaCosines.append(cos)
		instaSummedCosinesTemp = dictionary.get('instaSummedCosines')
		for item in instaSummedCosinesTemp:
			instaSummedCosines[item] = instaSummedCosinesTemp.get(item)
		compare.meanInstaCosines()
		compare.stdDevInstaCosines()
	toc = time.clock()
	print 'time is ',toc-tic
import getUsernames
import Redditor
import frequencies
import createHistograms
import instaInfo
import compare

instagramUsers = instaInfo.doEverything()

single = instaInfo.getSingleUser('instagram')
print single.getUsername()
print single.getWordsNorm()
print single.getHoursNorm()
print single.getSubmissions()