示例#1
0
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", processes=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",
                                 processes=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/",
        processes=4)
    print "import stackoverflow data"
    g.import_stackoverflow_data("_papyrus_db", "papyrus",
                                "papyrus-stackoverflow", "papyrus",
                                ['IFco1Gh5EJ*U)ZY5)16ZKQ(('])
示例#2
0
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",
        references=["0.7.0", "0.8.0", "0.9.0", "0.10.0", "1.0.0", "2.0.0"],
        import_type=2,
        processes=20)
    print("import bugzilla data")
    g.import_bugzilla_issue_data("db_papyrus",
                                 "papyrus",
                                 "papyrus_repo",
                                 "bugzilla-papyrus",
                                 "https://bugs.eclipse.org/bugs/xmlrpc.cgi",
                                 "papyrus",
                                 processes=10)
    print("import eclipse forum data")
    g.import_eclipse_forum_data(
        "db_papyrus",
        "papyrus",
        "papyrus-eclipse",
        "https://www.eclipse.org/forums/index.php/f/121/",
        processes=2)
    print("import stackoverflow data")
    g.import_stackoverflow_data("db_papyrus", "papyrus",
                                "papyrus-stackoverflow", "papyrus", SO_TOKENS)