Switch to side-by-side view

--- a/OSSEval/OpenSourceProject/ohloh.py
+++ b/OSSEval/OpenSourceProject/ohloh.py
@@ -1,8 +1,18 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+# This Source Code Form of OSSEval is subject to the terms of the GNU AFFERO
+# GENERAL PUBLIC LICENSE, v. 3.0. If a copy of the AGPL was not
+# distributed with this file, You can obtain one at http://www.gnu.org/licenses/agpl.txt
 #
-# Copyright 2014 Bitergium SLL
+# OSSeval is powered by the SOS Open Source AGPL edition.
+#  The AGPL requires that you do not remove the SOS Open Source attribution and copyright 
+#  notices from the user interface (see section 5.d below).
+#  Commercial licenses are available and do not require any SOS Open Source attributions
+#  or visible copyright notices but they are not permitted under this license.
+
+# OSSEval Copyright 2014 Bitergium SLL
+# SOS Open Source Copyright 2012 Roberto Galoppini
+# Author: Davide Galletti 
+
+
 
 from xml.dom import minidom
 from utils import Configuration, xmlElements, Forges, UrllibHelper
@@ -25,7 +35,9 @@
         items_available = xmlElements(xmldoc.getElementsByTagName('items_available')).firstValue()
         status = xmlElements(xmldoc.getElementsByTagName('status')).firstValue()
         project_list = []
-        while (status == 'success' and len(project_list) < min(Configuration.max_number_of_records, items_available)):
+        previous_len_project_list = -1
+        while (status == 'success' and previous_len_project_list < len(project_list) and len(project_list) < min(Configuration.max_number_of_records, items_available)):
+            previous_len_project_list = len(project_list)
             print "Ohloh search - " + name + " - page " + str(page) + " len(project_list): " + str(len(project_list))
             page = page + 1
             item_list = xmldoc.getElementsByTagName('project')