Skip to content

adamspriggs/Repopal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Honours

In partial completion of COMP 4905 at Carleton University for Olga Baysal and in partnership with Lance Wang.

What this project is

This python program will run through all or specified users Github Repositories and return a
list of tuples with the Github Repo ID then the relevance score of that user to that repository. It uses Repopal's implementation outlined in this paper.

NOTE: This program can give a 0 score relevance. This is because the final calculation mulitplies the three scores (time-relevance, stargazer-relevance, readme-relevance). Due to this, if any one of these algorithms return 0, the relevance score to a specific repo will be zero.

This program takes in a set of repositories from the MongoDB supplied by Lance Wang in efforts
to aid in his Masters Thesis research. TBD link

How to run the project

This program requires a running MongoDB on the localhost machine (or the location of the database
can be changed in the code). It can be run with 'python main.py' with the following parameters:

  1. To view all users from the study's recommendation in 'output.txt'

python main.py -a/--all

  1. To view a specific user's recommendations

python main.py -u/--user

  1. To specify the number of recommendations of a user

python main.py -n/--num

  1. To list help

python main.py -h/--help

Sample script to run a list of users in a file for linux and windows

NOTE: This will create mulitple files in the format output_.txt

  1. Linux
    cat sample_file.txt | while read line; do python main.py -u line; done

  2. Windows

foreach($line in Get-Content .\sample_file.txt) {  
	$cmd = python main.py -u $line 
	Start-Process $cmd }

Repopal authors

Yun Zhang, Xin Xia, Jianling Sun - College of Computer Science and Technology, Zhejiang University, Hangzhou, China

David Lo, Pavneet Singh Kochhar - School of Information Systems, Singapore Management University, Singapore

Quanlai Li - University of California, Berkeley, USA

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages