diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 355334218..b645fea27 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -10,11 +10,11 @@ assignees: '' Provide as much information as possible. At least, this should include a description of your issue and steps to reproduce the problem. If possible also provide a summary of what steps or workarounds you have already tried. ### System information -- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): -- Flax, jax, jaxlib versions (obtain with `pip show flax jax jaxlib`: -- Python version: -- GPU/TPU model and memory: -- CUDA version (if applicable): +- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): +- Flax, jax, jaxlib versions (obtain with `pip show flax jax jaxlib`: +- Python version: +- GPU/TPU model and memory: +- CUDA version (if applicable): ### Problem you have encountered: diff --git a/.github/analytics/get_repo_metrics.py b/.github/analytics/get_repo_metrics.py index 8ebce468a..319ad8b09 100644 --- a/.github/analytics/get_repo_metrics.py +++ b/.github/analytics/get_repo_metrics.py @@ -110,7 +110,7 @@ def parse_single_query(data, query_type): Parses the data returned by `send_query` .. warning:: - + Like `send_query`, the logic here depends on the specific structure of the query (e.g. it must be an issue or PR query, and must have a total count). @@ -206,7 +206,7 @@ def _get_pr_features(prs): time_labeled_or_assigned = None time_merged_or_closed = None time_review = None - + if pr["reviews"]["nodes"]: review = pr["reviews"]["nodes"][0] time_review = _to_datetime(review["createdAt"]) @@ -258,9 +258,9 @@ def _shift_n_months(date: datetime, n: int) -> datetime: def _rolling_window( - df: pd.DataFrame, - f: Callable[[pd.DataFrame], pd.Series], - window_size: int = 6, + df: pd.DataFrame, + f: Callable[[pd.DataFrame], pd.Series], + window_size: int = 6, step: int = 1, ) -> pd.DataFrame: # start of month of the first issue diff --git a/.github/analytics/issue_activity_since_date.gql b/.github/analytics/issue_activity_since_date.gql index d23af57c9..5fa9a098f 100644 --- a/.github/analytics/issue_activity_since_date.gql +++ b/.github/analytics/issue_activity_since_date.gql @@ -1,7 +1,7 @@ { # Queries all the issues in a repo. For each issue, we get some basic data such as - # the number, state, labels, and title. The most important part is the 'timelineItems' - # which are the events that happened to the issue, we can use the information about + # the number, state, labels, and title. The most important part is the 'timelineItems' + # which are the events that happened to the issue, we can use the information about # the datetime about certain key events to define some metrics. Note that we are # getting more information than is probably needed but its fine for now. repository(owner: "_REPO_OWNER_", name: "_REPO_NAME_") { @@ -52,7 +52,7 @@ } } } - } + } } } } diff --git a/.github/analytics/pr_data_query.gql b/.github/analytics/pr_data_query.gql index c8a6de18e..867e0934f 100644 --- a/.github/analytics/pr_data_query.gql +++ b/.github/analytics/pr_data_query.gql @@ -1,9 +1,9 @@ query { # Queries all the Pull Requests in a repo. For each issue, we get some basic data such as - # the number, state, reviews, and title. The most important part is the 'timelineItems' - # which are the events that happened to the issue, we can use the information about + # the number, state, reviews, and title. The most important part is the 'timelineItems' + # which are the events that happened to the issue, we can use the information about # the datetime about certain key events to define some metrics. We also use the 'reviews' - # as indicators for certain metrics. Note that we are getting more information than is + # as indicators for certain metrics. Note that we are getting more information than is # probably needed but its fine for now. repository(owner:"_REPO_OWNER_", name:"_REPO_NAME_") { pullRequests(first:100) { diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 0cba729fa..dbc4a5a08 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -2,7 +2,7 @@