In [2]:
import augur
# import everything that githubapi.py imports so we can just copy and paste our function later
augur_app = augur.Application('../augur.config.json')
In [26]:
import pandas as pd
import sqlalchemy as s
import numpy as np
import re
from augur import logger
from augur.util import annotate
ghtorrent = augur_app.ghtorrent()
owner='rails'
repo='rails'
# ghtorrent.closed_issues(owner, repo)
# ghtorrent.code_commits(owner, repo)
# ghtorrent.code_review_iteration(owner, repo)
# ghtorrent.contribution_acceptance(owner, repo)
# ghtorrent.contributing_github_organizations(owner, repo)
# ghtorrent.first_response_to_issue_duration(owner, repo)
# ghtorrent.forks(owner, repo)
# ghtorrent.maintainer_response_to_merge_request_duration(owner, repo)
# ghtorrent.new_contributing_github_organizations(owner, repo)
# ghtorrent.open_issues(owner, repo)
# ghtorrent.pull_request_comments(owner, repo)
# ghtorrent.pull_requests_open(owner, repo)
# ghtorrent.issue_comments(owner, repo)
# ghtorrent.watchers(owner, repo)
# ghtorrent.commits100(owner, repo)
# ghtorrent.commit_comments(owner, repo)
# ghtorrent.committer_locations(owner, repo)
# ghtorrent.total_committers(owner, repo)
# ghtorrent.issue_activity(owner, repo)
# ghtorrent.pull_request_acceptance_rate(owner, repo)
# ghtorrent.community_age(owner, repo)
# ghtorrent.community_engagement(owner, repo)
# ghtorrent.contributors(owner, repo)
# ghtorrent.contributions(owner, repo)
# ghtorrent.classify_contributors(owner, repo)
# ghtorrent.project_age(owner, repo)
# ghtorrent.fakes(owner, repo)
# ghtorrent.ghtorrent_range(owner, repo)
In [ ]:
import pandas as pd
import sqlalchemy as s
import numpy as np
import re
from augur import logger
ghtorrentplus = augur_app.ghtorrentplus()
owner='rails'
repo='rails'
# ghtorrentplus.closed_issue_resolution_duration(owner, repo)
In [23]:
import sys
import pandas as pd
if sys.version_info > (3, 0):
import urllib.parse as url
else:
import urllib as url
publicwww = augur_app.publicwww()
owner='rails'
repo='rails'
# publicwww.linking_websites(owner, repo)
In [28]:
import os
import shutil
import re
import json
import datetime
import pandas as pd
import git
from lockfile import LockFile, AlreadyLocked
from augur.util import logger, get_cache
git = augur_app.git()
# git.get_repo("https://github.com/rails/rails")
# git.update()
# git.downloaded_repos()
# git.lines_changed_minus_whitespace("https://github.com/rails/rails")
# git.changes_by_author("https://github.com/rails/rails")
In [4]:
from augur.localcsv import LocalCSV
import json
import re
from dateutil.parser import parse
import pandas as pd
import github
import numpy as np
import datetime
import requests
from augur import logger
github = augur_app.githubapi()
owner='rails'
repo='rails'
github.lines_of_code_changed(owner, repo)
# github.bus_factor(owner, repo)
# github.major_tags(owner, repo)
# github.tags(owner, repo)
# github.contributors_gender(owner, repo)
In [ ]:
import requests
import pandas as pd
import numpy as np
from bs4 import BeautifulSoup
from augur import logger
librariesio = augur_app.librariesio()
owner='rails'
repo='rails'
# librariesio.dependencies(owner, repo)
# librariesio.dependency_stats(owner, repo)
# librariesio.dependents(owner, repo)
In [ ]:
import json
import pandas as pd
import requests
import datetime
import base64
from augur import logger
downloads = augur_app.downloads()
owner='rails'
repo='rails'
# downloads.downloads(owner, repo)
# downloads.ruby_downloads(owner)
# downloads.npm_downloads(owner, repo)
In [ ]:
import pandas as pd
import tldextract
from urllib.parse import urlparse
from .util import get_data_path
localcsv = augur_app.localcsv()
owner='rails'
repo='rails'
localcsv.classify_emails(self, email_series)
In [ ]: