 		githubApi
 			url: "/repos/#{repo.full_name}/commits/#{commit.sha}"
 		, (err, response, body) ->
+			changes = []
+			com = JSON.parse(body)
+			items = com.files
+			items.forEach (item) ->
+				mapper.getLanguage
+
 
 exports.startJobs = ->
 	setInterval ( ->

		, (err, response, body) ->
			items = JSON.parse(body)
			items.forEach (item) ->
				getUserOrCreateUser (item.author.login, user) ->
					commit = new db.Commit
						sha: item.sha
						author: user._id

request = require "request"
async = require "async"
db = require "./db"
mapper = require "./mapper"

globals =
	searchRequestsPerMinute: 20
