anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: pimutils/khal
Issue: Issues building docs on up-to-date Arch 

Trying to build the docs, and I am hitting an issue:
```
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/sphinx/config.py", line 343, in eval_config_file
    exec(code, namespace)
  File "/home/don/tmp/khal/doc/source/conf.py", line 36, in <module>
    validator = validate.Validator()
NameError: name 'validate' is not defined
```

More complete info:

```
15:01:52 ⌁ [don@loki:~/tmp/khal] master 2 ± python setup.py --version
0.10.5.dev114+gcfa8f1e
15:02:32 ⌁ [don@loki:~/tmp/khal] master ± git log -1
commit cfa8f1e0977e7d2442ce25a8f30c2ee8a19b8e94 (HEAD -> master, origin/master, origin/HEAD)
Merge: 9007660 40e2d84
Author: Christian Geier <geier@lostpackets.de>
Date:   Sat Jun 25 21:34:30 2022 +0200

    Merge pull request #1030 from pimutils/fix/993

    Use new syntax for validate. Fixes #993.
15:02:41 ⌁ [don@loki:~/tmp/khal] master ± make -C doc man PYTHONPATH="${PWD}"
make: Entering directory '/home/don/tmp/khal/doc'
sphinx-build -b man -d build/doctrees   source build/man
Running Sphinx v5.0.2

Configuration error:
There is a programmable error in your configuration file:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/sphinx/config.py", line 343, in eval_config_file
    exec(code, namespace)
  File "/home/don/tmp/khal/doc/source/conf.py", line 36, in <module>
    validator = validate.Validator()
NameError: name 'validate' is not defined

make: *** [Makefile:131: man] Error 2
make: Leaving directory '/home/don/tmp/khal/doc'
15:02:46 ⌁ [don@loki:~/tmp/khal] master 2 ± python --version
Python 3.10.5
15:03:14 ⌁ [don@loki:~/tmp/khal] master ±
```

This has worked in the past as I have been happily using khal for years.

Thanks!


Changed files:
doc/source/conf.py

diff --git a/doc/source/conf.py b/doc/source/conf.py
index ac70ea6e..2809221f 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -18,7 +18,7 @@ import khal
 
 try:
     # Available from configobj 5.1.0
-    import configobj.validate
+    import configobj.validate as validate
 except ModuleNotFoundError:
     import validate
Repository: camdavidsonpilon/lifelines
Issue: ValueError in plot_interval_censored_lifetimes when passing entry dates

The following lines in `plotting.plot_interval_censored_lifetimes(..., entry=None, ....)` triggers a 
`ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().` when the argument `entry` is passed. Furthermore `lower_bound` is wrongly substituted for `entry`.

https://github.com/CamDavidsonPilon/lifelines/blob/71f4e4d659870058c33572e7e582654f96c1fcaa/lifelines/plotting.py#L620-L621

Instead it should be:

```python
        if entry is not None:
            entry = _iloc(entry, ix)
```

Changed files:
lifelines/plotting.py

diff --git a/lifelines/plotting.py b/lifelines/plotting.py
index 5b2e151..c85cf60 100644
--- a/lifelines/plotting.py
+++ b/lifelines/plotting.py
@@ -617,8 +617,8 @@ def plot_interval_censored_lifetimes(
         ix = np.argsort(lower_bound, 0)
         upper_bound = _iloc(upper_bound, ix)
         lower_bound = _iloc(lower_bound, ix)
-        if entry:
-            entry = _iloc(lower_bound, ix)
+        if entry is not None:
+            entry = _iloc(entry, ix)
 
     if entry is None:
         entry = np.zeros(N)