Created
September 6, 2022 16:56
-
-
Save mturoci/4bae2b74455d15815e23c68dc0e874df to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fetch data. | |
plot_data = collections.defaultdict(list) | |
async with AsyncClient() as client: | |
label_query = 'is:issue label:bug' | |
title_query = 'bug in:title' | |
# Wait until all requests have been fulfilled. | |
await gather( | |
ensure_future(fill_github_data(client, plot_data)), | |
ensure_future(fill_github_issues(client, 'H2O Wave', 'wave', 'h2oai', plot_data, label_query)), | |
ensure_future(fill_github_issues(client, 'Streamlit', 'streamlit', 'streamlit', plot_data, label_query)), | |
ensure_future(fill_github_issues(client, 'Plotly Dash', 'dash', 'plotly', plot_data, title_query)), | |
ensure_future(fill_github_issues(client, 'R Shiny', 'shiny', 'rstudio', plot_data, 'bug')), | |
ensure_future(fill_twitter_data(client, 'H2O Wave', plot_data)), | |
ensure_future(fill_twitter_data(client, 'Streamlit', plot_data)), | |
ensure_future(fill_twitter_data(client, 'Plotly Dash', plot_data)), | |
ensure_future(fill_twitter_data(client, 'R Shiny', plot_data)), | |
ensure_future(fill_stackoverflow_data(client, 'h2o-wave', plot_data)), | |
ensure_future(fill_stackoverflow_data(client, 'streamlit', plot_data)), | |
ensure_future(fill_stackoverflow_data(client, 'plotly-dash', plot_data)), | |
ensure_future(fill_stackoverflow_data(client, 'shiny', plot_data)), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment