def _papyrus(): g = Gitana(CONFIG, None) g.delete_previous_logs() g.init_db("db_papyrus") g.create_project("db_papyrus", "papyrus") print "import git data" g.import_git_data( "db_papyrus", "papyrus", "papyrus_repo", "C:\\Users\\atlanmod\\Desktop\\eclipse-git-projects\\papyrus", None, 1, None, 20) print "import bugzilla data" g.import_bugzilla_issue_data("_papyrus_db", "papyrus", "papyrus_repo", "bugzilla-papyrus", "https://bugs.eclipse.org/bugs/xmlrpc.cgi", "papyrus", None, 10) print "import eclipse forum data" g.import_eclipse_forum_data( "_papyrus_db", "papyrus", "papyrus-eclipse", "https://www.eclipse.org/forums/index.php/f/121/", None, 4) print "import stackoverflow data" g.import_stackoverflow_data("_papyrus_db", "papyrus", "papyrus-stackoverflow", "papyrus", None, ['IFco1Gh5EJ*U)ZY5)16ZKQ((']) print "import code function data" g.import_code_data( "db_papyrus", "papyrus", "papyrus_repo", "C:\\Users\\atlanmod\\Desktop\\eclipse-git-projects\\papyrus", 2, None, 20)
def _cesiumjs(): TARGETS = [ "origin/master", "1.0", "1.1", "1.2", "1.3", "1.4", "1.5", "1.6", "1.7", "1.8", "1.9", "1.10", "1.11", "1.12", "1.13", "1.14", "1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "1.21", "1.22", "1.23", "1.24", "1.25", "1.26", "1.27", "1.28", "1.29", "1.30", "1.31", "1.32", "1.33", "1.34" ] g = Gitana(CONFIG, None) g.delete_previous_logs() # g.init_db("db_cesium") # g.create_project("db_cesium", "cesium") # print "import git data" # g.import_git_data("db_cesium", "cesium", "repo_cesium", "C:\\Users\\atlanmod\\Desktop\\oss\\ants-work\\github-repos\\cesium", references=TARGETS, processes=20) # print "import issue tracker" # g.import_github_issue_data("db_cesium", "cesium", "repo_cesium", "cesium_it", "AnalyticalGraphicsInc/cesium", GH_TOKENS) # g.import_github_pull_request_data("db_cesium", "cesium", "repo_cesium", "cesium_it", "AnalyticalGraphicsInc/cesium", GH_TOKENS) # g.match_vcs_and_github_users("db_cesium", "cesium", "repo_cesium", "AnalyticalGraphicsInc/cesium", GH_TOKENS) print "import fun data" g.import_code_data( "db_cesium", "cesium", "repo_cesium", "C:\\Users\\atlanmod\\Desktop\\oss\\ants-work\\github-repos\\cesium", references=["origin/master"], processes=20)
def _get_data(db_name, project_name, repo_name, issue_tracker_name, repo_path, github_name): g = Gitana(CONFIG, None) g.delete_previous_logs() g.init_db(db_name) g.create_project(db_name, project_name) print "import git data" g.import_git_data( db_name, project_name, repo_name, repo_path, references=["origin/master"] ) #, "v1.0.0", "v1.1.0", "v1.2.0", "v1.3.0", "v1.4.0", "v2.0.0", "v2.1.0", "v2.2.0", "v2.3.0", "v.3.0.0", "v.3.1.0", "v.3.2.0", "v.3.3.0"]) print "import issue tracker" g.import_github_issue_data(db_name, project_name, repo_name, issue_tracker_name, github_name, GH_TOKENS) g.import_github_pull_request_data(db_name, project_name, repo_name, issue_tracker_name, github_name, GH_TOKENS) g.match_vcs_and_github_users(db_name, project_name, repo_name, github_name, GH_TOKENS) print "import fun data" g.import_code_data(db_name, project_name, repo_name, repo_path, references=["origin/master"], processes=5)