Skip to content

Configuration examples

germanysources edited this page Oct 26, 2018 · 1 revision

The name of the configuration file is config.json. This wiki page is written for the version 1.1.0

use only github

{"maxNoResults":10, "FavoriteAdditions":"language:C++ language:C", "HostingProvider":[1], "InitialSQLQuery":"select * from Repositories order by score view block limit 5"}

This means:

  • maxNoResults:10 ::not more than 10 repositories are fetched for one request send to github
  • FavoriteAdditions:"language:C++ language:C" :: We are searching only for Repositories written in C++ or C
  • HostingProvider:[1] :: send the search term only to github
  • InitialSQLQuery:"select * from Repositories order by score view block limit 5" :: By default not more than 5 search results are displayed in the order score from github

use only gitlab

{"GitLabToken":"secretToken", "HostingProvider":[2], "InitialSQLQuery":"select * from Repositories order by star_count view block limit 5"}
  • GitLabToken: optional. We can write your personal access token in this field. Then we don't have to type it everytime we open the application. If we omit this field we must call the application like this:
python runMain.py -l secretToken [search query]
  • HostingProvider:[2] :: send the search term only to gitlab

for both github and gitlab

{"GitLabToken":"secretToken", "maxNoResults":10, "FavoriteAdditions":"language:C++ language:C", "HostingProvider":[1,2], "InitialSQLQuery":"select * from Repositories order by score view block limit 5"}
Clone this wiki locally