anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: chaoss/augur
Issue: repo_info worker: dev/test branch

Please help us help you by filling out the following sections as thoroughly as you can.

**Description:**
Looks like the new Fork information collection has some kind of mismatch between the method and parameters passed: 

```
INFO:root:Worker ran into an error for task: {'job_type': 'MAINTAIN', 'models': ['repo_info'], 'display_name': 'repo_info model for url: https://github.com/davepacheco/node-verror.git', 'given': {'github_url': 'https://github.com/davepacheco/node-verror.git'}}

INFO:root:Printing traceback...

INFO:root:Traceback (most recent call last):
  File "/mnt/md0/github/augur-census/workers/worker_base.py", line 189, in collect
    model_method(message, repo_id)
  File "/mnt/md0/github/augur-census/workers/repo_info_worker/repo_info_worker/worker.py", line 149, in repo_info_model
    forked = self.is_forked(owner, repo)
  File "/mnt/md0/github/augur-census/workers/repo_info_worker/repo_info_worker/worker.py", line 232, in is_forked
    data = self.get_repo_data(self, url, r)
TypeError: get_repo_data() takes 3 positional arguments but 4 were given

INFO:root:This task inserted 0 tuples before failure.

INFO:root:Notifying broker and logging task failure in database...

INFO:werkzeug:127.0.0.1 - - [31/May/2020 18:48:58] "GET /AUGWOP/heartbeat HTTP/1.1" 200 -
INFO:root:Recorded job error in the history table for: {'job_type': 'MAINTAIN', 'models': ['repo_info'], 'display_name': 'repo_info model for url: https://github.com/davepacheco/node-verror.git', 'given': {'github_url': 'https://github.com/davepacheco/node-verror.git'}, 'worker_id': 'com.augurlabs.core.repo_info_worker.50700'}

INFO:root:Updated job process for model: repo_info
```

If the log does not provide enough info, let me know 

Changed files:
workers/repo_info_worker/repo_info_worker/worker.py

diff --git a/workers/repo_info_worker/repo_info_worker/worker.py b/workers/repo_info_worker/repo_info_worker/worker.py
index db0cd52ab..33d3285bb 100644
--- a/workers/repo_info_worker/repo_info_worker/worker.py
+++ b/workers/repo_info_worker/repo_info_worker/worker.py
@@ -226,7 +226,7 @@ class RepoInfoWorker(Worker):
         r = requests.get(url, headers=self.headers)
         self.update_gh_rate_limit(r)
 
-        data = self.get_repo_data(self, url, r)
+        data = self.get_repo_data(url, r)
 
         if 'fork' in data:
             if 'parent' in data:
@@ -242,7 +242,7 @@ class RepoInfoWorker(Worker):
         r = requests.get(url, headers=self.headers)
         self.update_gh_rate_limit(r)
 
-        data = self.get_repo_data(self, url, r)
+        data = self.get_repo_data(url, r)
 
         if 'archived' in data:
             if data['archived']:
Repository: chaoss/augur
Issue: Release Task Periodic Error : branch: `main`

**Description:**
When release metadata is not fully populated on a repo (a rare occurrence), the following error is generated: 
```
Traceback (most recent call last):
  File "/home/sean/github/virtualenv/ag3/lib/python3.8/site-packages/celery/app/trace.py", line 451, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/home/sean/github/virtualenv/ag3/lib/python3.8/site-packages/celery/app/trace.py", line 734, in __protected_call__
    return self.run(*args, **kwargs)
  File "/home/sean/github/ag3/augur/tasks/github/releases/tasks.py", line 15, in collect_releases
    releases_model(session, repo.repo_git, repo.repo_id)
  File "/home/sean/github/ag3/augur/tasks/github/releases/core.py", line 186, in releases_model
    insert_release(session, repo_id, data['owner'], release)
  File "/home/sean/github/ag3/augur/tasks/github/releases/core.py", line 79, in insert_release
    release_inf = get_release_inf(session, repo_id, release, tag_only)
  File "/home/sean/github/ag3/augur/tasks/github/releases/core.py", line 19, in get_release_inf
    name = "" if release['author']['name'] is None else release['author']['name']
TypeError: 'NoneType' object is not subscriptable

```

**How to reproduce:**
The `ag3` instance on our test server has this error right now. 

**Expected behavior:**
No error

**Software versions:**
 - `augur-new-dev`
 - OS: Ubuntu 20.5


Changed files:
augur/tasks/github/releases/core.py

diff --git a/augur/tasks/github/releases/core.py b/augur/tasks/github/releases/core.py
index 49e6d3f46..c4fdd9678 100644
--- a/augur/tasks/github/releases/core.py
+++ b/augur/tasks/github/releases/core.py
@@ -16,9 +16,17 @@ from augur.application.db.util import execute_session_query
 
 def get_release_inf(session, repo_id, release, tag_only):
     if not tag_only:
-        name = "" if release['author']['name'] is None else release['author']['name']
-        company = "" if release['author']['company'] is None else release['author']['company']
-        author = name + '_' + company
+
+        if release['author'] is None:
+            author = 'No Author Available.'
+            name = "N/A"
+            company = "N/A"
+        else:
+            name = "" if release['author']['name'] is None else release['author']['name']
+            company = "" if release['author']['company'] is None else release['author']['company']
+            author = name + '_' + company
+
+
         release_inf = {
             'release_id': release['id'],
             'repo_id': repo_id,
Repository: rst2pdf/rst2pdf
Issue: Show output progress or partial output to fix "Likely that a flowable is too large for any frame"

Under fairly random conditions, I'm getting the following error, in which case no .pdf file is generated:

reportlab.platypus.doctemplate.LayoutError: More than 10 pages generated without content - halting layout.  Likely that a flowable is too large for any frame.

I have been unable to reduce this to a simple demonstration case.  Does anyone know why this happens or how to prevent it?

Changed files:
rst2pdf/createpdf.py

diff --git a/rst2pdf/createpdf.py b/rst2pdf/createpdf.py
index aeea16b3..d7e85b38 100644
--- a/rst2pdf/createpdf.py
+++ b/rst2pdf/createpdf.py
@@ -663,6 +663,7 @@ class RstToPdf(object):
         while True:
             try:
                 log.info("Starting build")
+                self.elements = elements
                 # See if this *must* be multipass
                 pdfdoc.multiBuild(elements)
                 # Force a multibuild pass
@@ -731,6 +732,23 @@ class RstToPdf(object):
 
 
 class FancyDocTemplate(BaseDocTemplate):
+    def onProgress(self, typ, value):
+        global _counter
+        message = ''
+        if typ == 'SIZE_EST':
+            log.debug(f'Number of flowables: {value}')
+        elif typ == 'PROGRESS':
+            message = f'Flowable {value}'
+            # add class name for this flowable if we can
+            if hasattr(self.client, 'elements'):
+                if 0 <= value < len(self.client.elements):
+                    element = self.client.elements[value]
+                    message += f" {type(element)}"
+            log.debug(f'Page {_counter}: {message}')
+
+    def afterInit(self):
+        self.setProgressCallBack(self.onProgress)
+
     def afterFlowable(self, flowable):
 
         if isinstance(flowable, Heading):