Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions compareRels.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
headers = {'Accept': 'application/vnd.github.hellcat-preview+json'}

db = client['fdac18mp2'] # added in class
collName = 'releases_audris'
collName = 'releases_mmahbub'
coll = db [collName]
def wait (left):
while (left < 20):
Expand Down Expand Up @@ -59,10 +59,9 @@ def cmp_rel (url):
v = get (url)
except Exception as e:
sys.stderr.write ("Could not get:" + url + ". Exception:" + str(e) + "\n")
if 'ahead_by' in v and 'behind_by' in v:
print (url+';'+str(v['ahead_by'])+';'+str(v['behind_by']))
else:
sys.stderr.write ("Could not compare releases for: " + url + "; There exists no common ancestor between the two versions." + "\n")

if 'ahead_by' in v and 'behind_by' in v :
print (url+';'+str(v['ahead_by'])+';'+str(v['behind_by']))


p2r = {}
Expand All @@ -80,4 +79,3 @@ def cmp_rel (url):
for i in range(1,len (rs)):
url = 'https://api.github.com/repos/'+p+'/compare/' + rs[i-1] + '...' + rs[i]
cmp_rel (url)

346 changes: 346 additions & 0 deletions mmahbub_GitLabProjects.csv

Large diffs are not rendered by default.

766 changes: 766 additions & 0 deletions mmahbub_MiniProject02_Part01.ipynb

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions mmahbub_SourceForgeProjects.csv

Large diffs are not rendered by default.

Loading