Dataset Viewer issue for codeparrot/xlcost-text-to-code
COLLABORATOR
There seems to be an issue with the `C++-snippet-level` config:

```python
>>> from datasets import get_dataset_split_names
>>> get_dataset_split_names("codeparrot/xlcost-text-to-code", "C++-snippet-level")
Traceback (most recent call last):
  File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 352, in get_dataset_config_info
    info.splits = {
TypeError: 'NoneType' object is not iterable

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 404, in get_dataset_split_names
    info = get_dataset_config_info(
  File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 359, in get_dataset_config_info
    raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.
```

I remove the dataset-viewer tag since it's not directly related.

Pinging @huggingface/datasets 
2022-07-18T15:12:29Z
https://github.com/huggingface/datasets/issues/4680#issuecomment-1187623859
https://api.github.com/repos/huggingface/datasets/issues/4680
IC_kwDODunzps5GybOz
https://api.github.com/repos/huggingface/datasets/issues/comments/1187623859/reactions
2022-07-18T15:12:29Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1187623859
https://avatars.githubusercontent.com/u/1676121?v=4
https://api.github.com/users/severo/events{/privacy}
https://api.github.com/users/severo/followers
https://api.github.com/users/severo/following{/other_user}
https://api.github.com/users/severo/gists{/gist_id}
https://github.com/severo
severo
MDQ6VXNlcjE2NzYxMjE=
https://api.github.com/users/severo/orgs
https://api.github.com/users/severo/received_events
https://api.github.com/users/severo/repos
https://api.github.com/users/severo/starred{/owner}{/repo}
https://api.github.com/users/severo/subscriptions
User
https://api.github.com/users/severo
public
NONE
Thanks I found that this subset wasn't properly defined the the config, I fixed it. Now I can see the subsets but I get this error for the viewer
````
Status code:   400
Exception:     Status400Error
Message:       The split cache is empty.
```
2022-07-18T15:34:16Z
https://github.com/huggingface/datasets/issues/4680#issuecomment-1187650294
https://api.github.com/repos/huggingface/datasets/issues/4680
IC_kwDODunzps5Gyhr2
https://api.github.com/repos/huggingface/datasets/issues/comments/1187650294/reactions
2022-07-18T15:34:16Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1187650294
https://avatars.githubusercontent.com/u/44069155?v=4
https://api.github.com/users/loubnabnl/events{/privacy}
https://api.github.com/users/loubnabnl/followers
https://api.github.com/users/loubnabnl/following{/other_user}
https://api.github.com/users/loubnabnl/gists{/gist_id}
https://github.com/loubnabnl
loubnabnl
MDQ6VXNlcjQ0MDY5MTU1
https://api.github.com/users/loubnabnl/orgs
https://api.github.com/users/loubnabnl/received_events
https://api.github.com/users/loubnabnl/repos
https://api.github.com/users/loubnabnl/starred{/owner}{/repo}
https://api.github.com/users/loubnabnl/subscriptions
User
https://api.github.com/users/loubnabnl
public
COLLABORATOR
Yes, the cache is being refreshed, hopefully, it will work in some minutes for all the splits. Some are already here:

https://huggingface.co/datasets/codeparrot/xlcost-text-to-code/viewer/Python-snippet-level/train

<img width="1533" alt="Capture d’écran 2022-07-18 à 12 04 06" src="https://user-images.githubusercontent.com/1676121/179553933-64d874fa-ada9-4b82-900e-082619523c20.png">

2022-07-18T16:04:36Z
https://github.com/huggingface/datasets/issues/4680#issuecomment-1187683778
https://api.github.com/repos/huggingface/datasets/issues/4680
IC_kwDODunzps5Gyp3C
https://api.github.com/repos/huggingface/datasets/issues/comments/1187683778/reactions
2022-07-18T16:04:36Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1187683778
https://avatars.githubusercontent.com/u/1676121?v=4
https://api.github.com/users/severo/events{/privacy}
https://api.github.com/users/severo/followers
https://api.github.com/users/severo/following{/other_user}
https://api.github.com/users/severo/gists{/gist_id}
https://github.com/severo
severo
MDQ6VXNlcjE2NzYxMjE=
https://api.github.com/users/severo/orgs
https://api.github.com/users/severo/received_events
https://api.github.com/users/severo/repos
https://api.github.com/users/severo/starred{/owner}{/repo}
https://api.github.com/users/severo/subscriptions
User
https://api.github.com/users/severo
public
COLLABORATOR
I think all the splits are working as expected now
2022-07-18T16:05:22Z
https://github.com/huggingface/datasets/issues/4680#issuecomment-1187684722
https://api.github.com/repos/huggingface/datasets/issues/4680
IC_kwDODunzps5GyqFy
https://api.github.com/repos/huggingface/datasets/issues/comments/1187684722/reactions
2022-07-18T16:05:22Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1187684722
https://avatars.githubusercontent.com/u/1676121?v=4
https://api.github.com/users/severo/events{/privacy}
https://api.github.com/users/severo/followers
https://api.github.com/users/severo/following{/other_user}
https://api.github.com/users/severo/gists{/gist_id}
https://github.com/severo
severo
MDQ6VXNlcjE2NzYxMjE=
https://api.github.com/users/severo/orgs
https://api.github.com/users/severo/received_events
https://api.github.com/users/severo/repos
https://api.github.com/users/severo/starred{/owner}{/repo}
https://api.github.com/users/severo/subscriptions
User
https://api.github.com/users/severo
public
NONE
Perfect, thank you!
2022-07-18T16:37:00Z
https://github.com/huggingface/datasets/issues/4680#issuecomment-1187719635
https://api.github.com/repos/huggingface/datasets/issues/4680
IC_kwDODunzps5GyynT
https://api.github.com/repos/huggingface/datasets/issues/comments/1187719635/reactions
2022-07-18T16:37:00Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1187719635
https://avatars.githubusercontent.com/u/44069155?v=4
https://api.github.com/users/loubnabnl/events{/privacy}
https://api.github.com/users/loubnabnl/followers
https://api.github.com/users/loubnabnl/following{/other_user}
https://api.github.com/users/loubnabnl/gists{/gist_id}
https://github.com/loubnabnl
loubnabnl
MDQ6VXNlcjQ0MDY5MTU1
https://api.github.com/users/loubnabnl/orgs
https://api.github.com/users/loubnabnl/received_events
https://api.github.com/users/loubnabnl/repos
https://api.github.com/users/loubnabnl/starred{/owner}{/repo}
https://api.github.com/users/loubnabnl/subscriptions
User
https://api.github.com/users/loubnabnl
public
### Link

https://huggingface.co/datasets/codeparrot/xlcost-text-to-code

### Description

Error
```
Server Error
Status code:   400
Exception:     TypeError
Message:       'NoneType' object is not iterable
```
Before I did a minor change in the dataset script (removing some comments), the viewer was working but not properely, it wasn't showing the dataset subsets. But the data can be loaded successfully.

Thanks!

### Owner

Yes