spgroup / groundhog

A framework for crawling GitHub projects and raw data and to extract metrics from them
http://spgroup.github.io/groundhog
GNU General Public License v2.0
15 stars 10 forks source link

Add languages set to the Project entity #39

Closed rodrigoalvesvieira closed 11 years ago

rodrigoalvesvieira commented 11 years ago

Many software projects are composed of more than one programming language. It is relevant for us to know all the languages present in a certain project and know how these languages correspond to the codebase, in terms of LoC.

The Groundhog Project class should have some facility to store this important property.

The GitHub API amazingly offers us an straightforward way for getting the languages of a given project. Example: https://api.github.com/repos/joyent/node/languages

rodrigoalvesvieira commented 11 years ago

P.S: this is not to be confounded with the language attribute that the API provides. Every project has a prevailing programming language and this attribute only provides it, a single language name.

The commit related to the prevailing language attribute can be is here: https://github.com/spgroup/groundhog/commit/6d1a5f4f6047256f288bf7e3a6815c41e1eb0e3e

gustavopinto commented 11 years ago

is the right side value the number of LoC used in this language?

rodrigoalvesvieira commented 11 years ago

nops. It's the main language string. Like "Java" or "Python"

gustavopinto commented 11 years ago

Hm... reading again my last comment, I realized that it was difficult to understand. Sorry.

I meant, is the value in this json means the number of LoC in a given language?

rodrigoalvesvieira commented 11 years ago

Oh, yes!

rodrigoalvesvieira commented 11 years ago

The only thing left to finish this Issue is something related to JSON parsing that I'm having problems and am currently working on.

jesusjackson commented 11 years ago

If you could point to me where in the project i could try it too. I've already worked with some json parsing.

rodrigoalvesvieira commented 11 years ago

@pork9 okay! the problem is how to do it in Java. I'm kinda Java newbie.

gustavopinto commented 11 years ago

tell a bit more, @rodrigoalvesvieira

jesusjackson commented 11 years ago

@rodrigoalvesvieira ohhh! Now i get it. Can anyone point me the class who is dealing with the search or anything like that?

rodrigoalvesvieira commented 11 years ago

@gustavopinto do you have Skype time? :p

gustavopinto commented 11 years ago

now is fine for me. @pork9 ?

jesusjackson commented 11 years ago

For me is fine too.

gustavopinto commented 11 years ago

@pork9 what is your skypeid?

jesusjackson commented 11 years ago

jesus.jackson.sena