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)
def _2048(): g = Gitana(CONFIG, None) g.delete_previous_logs() g.init_db("db_2048") g.create_project("db_2048", "2048") print "import git data" g.import_git_data( "db_2048", "2048", "repo_2048", "C:\\Users\\atlanmod\\Desktop\\oss\\ants-work\\github-repos\\2048", import_type=2) print "import github data" g.import_github_issue_data("db_2048", "2048", "repo_2048", "2048_it", "gabrielecirulli/2048", GH_TOKENS)