anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: dallinger/dallinger
Issue: A participant's unique id exceeded 50 chars

unique_id is a String(50) column in the Participant table.

Today this caused an error as a request to create a participant was received with a unique_id of u'A0384[redacted 16 characters]:3YOH7BII097S091VIWGYDU7IGJLVKI'. This is 55 chars long and so it wouldn't fit in the table.

It is trivial to allow longer strings in the table, but do we want to do this? I thought worker/assignment ids were of fixed length, in which case this probably indicates an error somewhere.

What do we think?

Changed files:
dallinger/models.py

diff --git a/dallinger/models.py b/dallinger/models.py
index 81944b8c..d0bb3f27 100644
--- a/dallinger/models.py
+++ b/dallinger/models.py
@@ -86,7 +86,7 @@ class Participant(Base, SharedMixin):
 
     #: A String, a concatenation of :attr:`~dallinger.models.Participant.worker_id`
     #: and :attr:`~dallinger.models.Participant.assignment_id`, used by psiTurk.
-    unique_id = Column(String(50), nullable=False, index=True)
+    unique_id = Column(String(75), nullable=False, index=True)
 
     #: A String, the id of the hit the participant is working on
     hit_id = Column(String(50), nullable=False)
Repository: vpython/vpython-jupyter
Issue: Import fails in (some) spyder versions

From the vpython email list (https://groups.google.com/forum/?hl=en#!topic/vpython-users/jFiOpafJnkI):

```python
 from vpython import*
  box()
```

> there is an error showed in console:

```
  KeyError: 'default/interpreter/dedicated'
```

> but it is fine when I use Jupyter Notebook to run it.
>
> How can I fix this?
>
> The console message:

```
runfile('D:/user/Desktop/WPy64-3740/settings/.spyder-py3/temp.py', wdir='D:/user/Desktop/WPy64-3740/settings/.spyder-py3')
Traceback (most recent call last):

  File "<ipython-input-1-e68d4507caad>", line 1, in <module>
    runfile('D:/user/Desktop/WPy64-3740/settings/.spyder-py3/temp.py', wdir='D:/user/Desktop/WPy64-3740/settings/.spyder-py3')

  File "D:\\user\\Desktop\\WPy64-3740\\python-3.7.4.amd64\\lib\\site-packages\\spyder_kernels\\customize\\spydercustomize.py", line 827, in runfile
    execfile(filename, namespace)

  File "D:\\user\\Desktop\\WPy64-3740\\python-3.7.4.amd64\\lib\\site-packages\\spyder_kernels\\customize\\spydercustomize.py", line 110, in execfile
    exec(compile(f.read(), filename, 'exec'), namespace)

  File "D:/user/Desktop/WPy64-3740/settings/.spyder-py3/temp.py", line 8, in <module>
    from vpython import*

  File "D:\\user\\Desktop\\WPy64-3740\\python-3.7.4.amd64\\lib\\site-packages\\vpython\\__init__.py", line 57, in <module>
    _warn_if_spyder_settings_wrong()

  File "D:\\user\\Desktop\\WPy64-3740\\python-3.7.4.amd64\\lib\\site-packages\\vpython\\_notebook_helpers.py", line 15, in _warn_if_spyder_settings_wrong
    if not _spyder_run_setting_is_correct():

  File "D:\\user\\Desktop\\WPy64-3740\\python-3.7.4.amd64\\lib\\site-packages\\vpython\\_notebook_helpers.py", line 11, in _spyder_run_setting_is_correct
    return CONF['run']['default/interpreter/dedicated']

  File "D:\\user\\Desktop\\WPy64-3740\\python-3.7.4.amd64\\lib\\configparser.py", line 1251, in __getitem__
    raise KeyError(key)

KeyError: 'default/interpreter/dedicated'
```


Changed files:
vpython/_notebook_helpers.py

diff --git a/vpython/_notebook_helpers.py b/vpython/_notebook_helpers.py
index 61c9dff..5d192fd 100644
--- a/vpython/_notebook_helpers.py
+++ b/vpython/_notebook_helpers.py
@@ -8,7 +8,9 @@ def __is_spyder():
 
 def _spyder_run_setting_is_correct():
     from spyder.config.main import CONF
-    return CONF['run']['default/interpreter/dedicated']
+    # Use this instead of accessing like a dictionary so that a
+    # default value can be supplied if the setting is missing.
+    return CONF.get('run', 'default/interpreter/dedicated', False)
 
 
 def _warn_if_spyder_settings_wrong():