--- a/OSSEval/OpenSourceProject/models.py
+++ b/OSSEval/OpenSourceProject/models.py
@@ -18,6 +18,7 @@
from ohloh import OhlohProxy
from flossmole import FSF, FC, GC, GH
+from doap import Apache, Eclipse
from utils import Forges
from OSSEval.utils import xmlMinidom
@@ -56,6 +57,8 @@
i['FSF']
i['GC']
i['GH']
+ i['Apache']
+ i['Eclipse']
...
Some information is extracted from specific sources and made available at root level; e.g.
i['days'] number of days since the project has been registered; it is calculated using i['FM']['date_added'] or i['OHLOH']['created_at']
@@ -114,6 +117,16 @@
i['download_url'] = i['OHLOH']['download_url']
except: pass
+ # Licenses
+ i['licenses'] = []
+ try:
+ i['licenses'] += i['OHLOH']['licenses']
+ except: pass
+ try:
+ i['licenses'] += i['Apache']['doap']['license']
+ except: pass
+
+
# CLEANUP
try: i['FM']['popularity_score'] = (i['FM']['popularity_score']).replace('\n','').strip()
except: pass
@@ -184,5 +197,9 @@
osprojectforge_info = GC.getProjectInfo(self.identifier_in_forge)
if self.forge.id == Forges.GH:
osprojectforge_info = GH.getProjectInfo(self.identifier_in_forge)
+ if self.forge.id == Forges.APACHE:
+ osprojectforge_info = Apache.getProjectInfo(self.identifier_in_forge)
+ if self.forge.id == Forges.ECLIPSE:
+ osprojectforge_info = Eclipse.getProjectInfo(self.identifier_in_forge)
return osprojectforge_info