Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code: DatasetGenerationError
Exception: ArrowNotImplementedError
Message: Cannot write struct type 'file' with no child field to Parquet. Consider adding a dummy child field.
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1831, in _prepare_split_single
writer.write_table(table)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 712, in write_table
self._build_writer(inferred_schema=pa_table.schema)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 757, in _build_writer
self.pa_writer = pq.ParquetWriter(
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyarrow/parquet/core.py", line 1070, in __init__
self.writer = _parquet.ParquetWriter(
^^^^^^^^^^^^^^^^^^^^^^^
File "pyarrow/_parquet.pyx", line 2363, in pyarrow._parquet.ParquetWriter.__cinit__
File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Cannot write struct type 'file' with no child field to Parquet. Consider adding a dummy child field.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1847, in _prepare_split_single
num_examples, num_bytes = writer.finalize()
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 731, in finalize
self._build_writer(self.schema)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 757, in _build_writer
self.pa_writer = pq.ParquetWriter(
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyarrow/parquet/core.py", line 1070, in __init__
self.writer = _parquet.ParquetWriter(
^^^^^^^^^^^^^^^^^^^^^^^
File "pyarrow/_parquet.pyx", line 2363, in pyarrow._parquet.ParquetWriter.__cinit__
File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Cannot write struct type 'file' with no child field to Parquet. Consider adding a dummy child field.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1455, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1054, in convert_to_parquet
builder.download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 894, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 970, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1858, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
before string | actions list | language string | meta dict |
|---|---|---|---|
import os
import datetime
import pytest
from doit import tools
from doit import task
def test_create_folder():
def rm_dir():
if os.path.exists(DIR_DEP):
os.removedirs(DIR_DEP)
DIR_DEP = os.path.join(os.path.dirname(__file__),"parent/child/")
rm_dir()
assert True == tools.create_... | [
{
"type": "go_to",
"params": {
"line": 2,
"column": 0,
"text": null,
"start": null,
"end": null
}
},
{
"type": "insert",
"params": {
"line": null,
"column": null,
"text": "import operator\n",
"start": null,
"end": null
}
},
... | python | {
"dataset": "bigcode/commitpack",
"split": "train",
"mode": "file",
"repo": "Hinidu/doit,wangpanjun/doit,gh0std4ncer/doit,lelit/doit,JohannesBuchner/doit,pydoit/doit,saimn/doit,lelit/doit,lelit/doit,lelit/doit",
"status": "M",
"commit": "4553d0098f8564a5b650e664760b49e2c1dc50b0",
"parent": null,
"path"... |
# Copyright (c) 2015-2016 Vector 35 LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, ... | [
{
"type": "go_to",
"params": {
"line": 25,
"column": 70,
"text": null,
"start": null,
"end": null
}
},
{
"type": "select",
"params": {
"line": null,
"column": null,
"text": null,
"start": {
"line": 25,
"column": 70
}... | python | {
"dataset": "bigcode/commitpack",
"split": "train",
"mode": "file",
"repo": "Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,joshwatson/binaryninja-api,Vector35/binaryninja-api,joshwatson/binaryninja-api,joshwatson/binaryninja-api,Vector35/binaryninja-api,jos... |
from AG_fft_tools import correlate2d
from agpy import gaussfitter
import warnings
import numpy as np
def cross_correlation_shifts_FITS(fitsfile1, fitsfile2, return_cropped_images=False, quiet=True, sigma_cut=False, **kwargs):
"""
Determine the shift between two FITS images using the cross-correlation
techn... | [
{
"type": "go_to",
"params": {
"line": 108,
"column": 0,
"text": null,
"start": null,
"end": null
}
},
{
"type": "insert",
"params": {
"line": null,
"column": null,
"text": " At high signal-to-n",
"start": null,
"end": null
... | python | {
"dataset": "bigcode/commitpack",
"split": "train",
"mode": "file",
"repo": "keflavich/agpy,astocko/agpy,astocko/agpy,keflavich/agpy,keflavich/agpy,keflavich/agpy,astocko/agpy,astocko/agpy",
"status": "M",
"commit": "de534b0c95ddc373d79d0f698e3c545c1ee57c1e",
"parent": null,
"path": "AG_image_tools/cro... |
import os
import csv
import sys
from optparse import make_option
from collections import Callable
from django.db.models import Q
from django.contrib.sites.models import Site
from django.db.models.loading import get_model
from django.core.management.base import LabelCommand, CommandError
DOMAIN = Site.objects.get_cur... | [
{
"type": "go_to",
"params": {
"line": 21,
"column": 0,
"text": null,
"start": null,
"end": null
}
},
{
"type": "select",
"params": {
"line": null,
"column": null,
"text": null,
"start": {
"line": 21,
"column": 0
},
... | python | {
"dataset": "bigcode/commitpack",
"split": "train",
"mode": "file",
"repo": "saippuakauppias/django-exportdata",
"status": "M",
"commit": "a831c0a341e861dd7e8be7484d6853dc596bd35a",
"parent": null,
"path": "exportdata/management/commands/exportdata.py",
"old_path": "exportdata/management/commands/exp... |
import logging
import json
import requests
import datetime
import math
import time
# django modules
from django.views.decorators.csrf import csrf_exempt
from django.shortcuts import render, get_object_or_404
from django.views.generic import View, TemplateView, ListView, DetailView
from django.db.models import Q,Count
... | [
{
"type": "go_to",
"params": {
"line": 799,
"column": 17,
"text": null,
"start": null,
"end": null
}
},
{
"type": "select",
"params": {
"line": null,
"column": null,
"text": null,
"start": {
"line": 799,
"column": 17
... | python | {
"dataset": "bigcode/commitpack",
"split": "train",
"mode": "file",
"repo": "malaonline/iOS,malaonline/Android,malaonline/Android,malaonline/iOS,malaonline/Server,malaonline/Server,malaonline/Server,malaonline/iOS,malaonline/Server,malaonline/Android",
"status": "M",
"commit": "614d4e36efc76291e5f835606934... |
"""
Internal tasks are tasks that are started from the teuthology infrastructure.
Note that there is no corresponding task defined for this module. All of
the calls are made from other modules, most notably teuthology/run.py
"""
from cStringIO import StringIO
import contextlib
import logging
import os
import time
impo... | [
{
"type": "go_to",
"params": {
"line": 20,
"column": 52,
"text": null,
"start": null,
"end": null
}
},
{
"type": "select",
"params": {
"line": null,
"column": null,
"text": null,
"start": {
"line": 20,
"column": 52
}... | python | {
"dataset": "bigcode/commitpack",
"split": "train",
"mode": "file",
"repo": "caibo2014/teuthology,SUSE/teuthology,dreamhost/teuthology,ivotron/teuthology,caibo2014/teuthology,SUSE/teuthology,ivotron/teuthology,t-miyamae/teuthology,dreamhost/teuthology,dmick/teuthology,zhouyuan/teuthology,ktdreyer/teuthology,ro... |
"# -*- coding: utf-8 -*-\n#\n# pylast -\n# A Python interface to Last.fm and Libre.fm\n#\n# Copy(...TRUNCATED) | [{"type":"go_to","params":{"line":733,"column":0,"text":null,"start":null,"end":null}},{"type":"sele(...TRUNCATED) | python | {"dataset":"bigcode/commitpack","split":"train","mode":"file","repo":"pylast/pylast,hugovk/pylast","(...TRUNCATED) |
"#!/usr/bin/python\n# -*- coding: ascii -*-\n#######################################################(...TRUNCATED) | [{"type":"go_to","params":{"line":0,"column":0,"text":null,"start":null,"end":null}},{"type":"select(...TRUNCATED) | python | {"dataset":"bigcode/commitpack","split":"train","mode":"file","repo":"masayuko/beaker,enomado/beaker(...TRUNCATED) |
"import argparse\nimport os\nimport subprocess\nimport sys\nimport pty\nimport multiprocessing\n\nfr(...TRUNCATED) | [{"type":"go_to","params":{"line":0,"column":0,"text":null,"start":null,"end":null}},{"type":"insert(...TRUNCATED) | python | {"dataset":"bigcode/commitpack","split":"train","mode":"file","repo":"mikanbako/sphinx-autobuild,Sta(...TRUNCATED) |
"#!/usr/bin/env python\n\n\"\"\"Run some linters on files of various types.\"\"\"\n\n\nUSAGE = \"\"\(...TRUNCATED) | [{"type":"go_to","params":{"line":39,"column":0,"text":null,"start":null,"end":null}},{"type":"inser(...TRUNCATED) | python | {"dataset":"bigcode/commitpack","split":"train","mode":"file","repo":"Khan/khan-linter,Khan/khan-lin(...TRUNCATED) |
End of preview.
No dataset card yet
- Downloads last month
- 4