 		extract_user_activity (err, resp)->
 			console.log "Completed -> extract_user_activity"
 			callback err, null
+	
 ]
 , (err, results)->
 	analyze_languagewise_reposactivity (err,resp)->

			callback

extract_temporal_commit_info = (callback)->
	o = {}
	o.map = ()->
		dt = new Date 0
		dt.setMonth do this.timestamp.getMonth
		dt.setYear do this.timestamp.getFullYear
		dt.setDate 1
		ret = {}
		count = 0
		for change in this.changes
			count+= change.count
		ret[dt] = count
		emit this.author, ret
	o.reduce = (user, changes)->
		res = {}
		for change in changes
			key = ( Object.keys change )[0]
			if not res[key]?
				res[key] = 0
			res[key] += change[key] 
		return res
	o.out =  replace: "temporalcommits" 
	db.Commit.mapReduce o, (err, model, stats)->
		console.log stats
		callback err, model

		avg: $avg: '$weight'
	.exec (err, resp) ->
		console.log err if err?
		async.each resp,
		(authorwt, callback) ->
			new db.UserAvgWeight
