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: TypeError
Message: Couldn't cast array of type
struct<content_hash: string, timestamp: string, source: string, line_count: int64, max_line_length: int64, avg_line_length: double, alnum_prop: double, repo_name: string, id: string, size: string, binary: bool, copies: string, ref: string, path: string, mode: string, license: string, language: list<item: struct<name: string, bytes: string>>, symlink_target: string>
to
{'content_hash': Value(dtype='string', id=None), 'timestamp': Value(dtype='string', id=None), 'source': Value(dtype='string', id=None), 'line_count': Value(dtype='int64', id=None), 'max_line_length': Value(dtype='int64', id=None), 'avg_line_length': Value(dtype='float64', id=None), 'alnum_prop': Value(dtype='float64', id=None), 'repo_name': Value(dtype='string', id=None), 'id': Value(dtype='string', id=None), 'size': Value(dtype='string', id=None), 'binary': Value(dtype='bool', id=None), 'copies': Value(dtype='string', id=None), 'ref': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'mode': Value(dtype='string', id=None), 'license': Value(dtype='string', id=None), 'language': [{'name': Value(dtype='string', id=None), 'bytes': Value(dtype='string', id=None)}]}
Traceback: Traceback (most recent call last):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2011, in _prepare_split_single
writer.write_table(table)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 585, in write_table
pa_table = table_cast(pa_table, self._schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2302, in table_cast
return cast_table_to_schema(table, schema)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2261, in cast_table_to_schema
arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()]
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2261, in <listcomp>
arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()]
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1802, in wrapper
return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1802, in <listcomp>
return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2122, in cast_array_to_feature
raise TypeError(f"Couldn't cast array of type\n{_short_str(array.type)}\nto\n{_short_str(feature)}")
TypeError: Couldn't cast array of type
struct<content_hash: string, timestamp: string, source: string, line_count: int64, max_line_length: int64, avg_line_length: double, alnum_prop: double, repo_name: string, id: string, size: string, binary: bool, copies: string, ref: string, path: string, mode: string, license: string, language: list<item: struct<name: string, bytes: string>>, symlink_target: string>
to
{'content_hash': Value(dtype='string', id=None), 'timestamp': Value(dtype='string', id=None), 'source': Value(dtype='string', id=None), 'line_count': Value(dtype='int64', id=None), 'max_line_length': Value(dtype='int64', id=None), 'avg_line_length': Value(dtype='float64', id=None), 'alnum_prop': Value(dtype='float64', id=None), 'repo_name': Value(dtype='string', id=None), 'id': Value(dtype='string', id=None), 'size': Value(dtype='string', id=None), 'binary': Value(dtype='bool', id=None), 'copies': Value(dtype='string', id=None), 'ref': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'mode': Value(dtype='string', id=None), 'license': Value(dtype='string', id=None), 'language': [{'name': Value(dtype='string', id=None), 'bytes': Value(dtype='string', id=None)}]}
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 1529, 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 1154, in convert_to_parquet
builder.download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare
self._download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2038, 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.
text string | meta dict |
|---|---|
package utils.matchers;
import org.hamcrest.BaseMatcher;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import utils.InferError;
import utils.InferStats;
public class NumberOfProceduresAnalyzed extends BaseMatcher<InferStats> {
private int expectedNumProcedures;
private int actualNumProcedures;... | {
"content_hash": "b7d201313173f447c33eaec03dfd5891",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 94,
"avg_line_length": 27.57777777777778,
"alnum_prop": 0.7719580983078163,
"repo_name": "Geoion/infer",
"id": "823eb6055d6317a477d714a910f9fd49cb81012e",
"size": "1542",
... |
from setuptools import setup, find_packages
import sys, os
version = '0.8'
setup(name='apibinding',
version=version,
description="ZStack API Python bindings library",
long_description="""\
ZStack API Python bindings library""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3A... | {
"content_hash": "0a81ab533a17d53499cf74b0aaff85e1",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 95,
"avg_line_length": 30.576923076923077,
"alnum_prop": 0.6150943396226415,
"repo_name": "cloudcache/zstack-utility",
"id": "59a764ac1d489839338158d406db0ec88d736a20",
"si... |
package org.scijava.widget;
/**
* Widget interface for buttons.
*
* @author Curtis Rueden
*/
public interface ButtonWidget<U> extends InputWidget<Button, U> {
// NB: No changes to interface.
}
| {
"content_hash": "4f83f5ec8b511b040fd9347aeb53a0d4",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 65,
"avg_line_length": 16.833333333333332,
"alnum_prop": 0.698019801980198,
"repo_name": "scijava/scijava-common",
"id": "c869fc13e6b11d37696f9823001f1b02c6e11e3d",
"size":... |
#pragma once
#include <aws/medialive/MediaLive_EXPORTS.h>
#include <aws/medialive/model/AribSourceSettings.h>
#include <aws/medialive/model/DvbSubSourceSettings.h>
#include <aws/medialive/model/EmbeddedSourceSettings.h>
#include <aws/medialive/model/Scte20SourceSettings.h>
#include <aws/medialive/model/Scte27SourceS... | {
"content_hash": "1a02c5f1023f4db7117424c74818423f",
"timestamp": "",
"source": "github",
"line_count": 160,
"max_line_length": 165,
"avg_line_length": 38.89375,
"alnum_prop": 0.7801703358508758,
"repo_name": "JoyIfBam5/aws-sdk-cpp",
"id": "ba5af2e730f47688fe917d665555dea83a1f89ce",
"size": "6796",... |
<TS language="de" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Rechtsklick zum Bearbeiten der Adresse oder der Bezeichnung</translation>
</message>
<message>
<source>Create a new address</source... | {
"content_hash": "bc03f915d6141c69cdf6eace8a621613",
"timestamp": "",
"source": "github",
"line_count": 3573,
"max_line_length": 444,
"avg_line_length": 42.34061013154212,
"alnum_prop": 0.6732151001764904,
"repo_name": "genavarov/ladacoin",
"id": "d96d6de2e62564a9e0c0064f08db72184b6294d9",
"size": ... |
<?php
namespace Wizad\ApiBlueprintBundle\Blueprint\Model;
use JMS\Serializer\Annotation as Serializer;
class ResourceParameter
{
/**
* @Serializer\Type("string")
*/
protected $name;
/**
* @Serializer\Type("string")
*/
protected $description;
/**
* @Serializer\Type("str... | {
"content_hash": "f9a36836efa8b27608189b60bb1db6f3",
"timestamp": "",
"source": "github",
"line_count": 99,
"max_line_length": 51,
"avg_line_length": 14.646464646464647,
"alnum_prop": 0.49586206896551727,
"repo_name": "wpottier/WizadApiBlueprintBundle",
"id": "bda723306afc80fb62118e31e1d5a96252e35d2d... |
package org.apache.hadoop.hive.serde2;
import java.io.IOException;
import java.util.Arrays;
import org.apache.hadoop.hive.common.io.NonSyncByteArrayInputStream;
import org.apache.hadoop.hive.common.io.NonSyncByteArrayOutputStream;
/**
* Extensions to bytearrayinput/output streams.
*/
public class ByteStream {
... | {
"content_hash": "08e53829fdfc95c1272db8de58fca3d6",
"timestamp": "",
"source": "github",
"line_count": 129,
"max_line_length": 73,
"avg_line_length": 19.891472868217054,
"alnum_prop": 0.573265783320343,
"repo_name": "anishek/hive",
"id": "83848ccd9bcfe91272745e12fa3fd447b9085741",
"size": "3371",
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EasyGameServer.PacketHandlers
{
public class MoveHandler : PacketHandler
{
void PacketHandler.Run(int credential, string payload )
{
ClientSession clientSe... | {
"content_hash": "b82842b834de8af277abf0d76a8dbaca",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 95,
"avg_line_length": 36,
"alnum_prop": 0.6660628019323671,
"repo_name": "flashscope/EasyMobileGameServer",
"id": "64b8a5c2adc490618c6480e4a96ef1ab02ebf7d4",
"size": "1658... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Akka.Actor;
using Akka.Configuration;
using Akka.Event;
using FluentAssertions;
using Serilog;
using Serilog.Core;
using Serilog.Events;
using Xunit;
using Xunit.Abstractions;
using LogEvent = Akka... | {
"content_hash": "21d9c5ef264026fb95229be81763796e",
"timestamp": "",
"source": "github",
"line_count": 155,
"max_line_length": 134,
"avg_line_length": 35.92903225806452,
"alnum_prop": 0.6358412641407793,
"repo_name": "akkadotnet/Akka.Logger.Serilog",
"id": "93d72445f9545b59ef458a6f51172d02b9343e3c",... |
// Copyright 2014 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | {
"content_hash": "16e9e08712a58c1186efa903fbe9edb9",
"timestamp": "",
"source": "github",
"line_count": 113,
"max_line_length": 100,
"avg_line_length": 36.73451327433628,
"alnum_prop": 0.7595760057817393,
"repo_name": "mbrukman/bazel",
"id": "e2ebbb862468f18991389dc158d03ba49ea6918f",
"size": "4151... |
package main
import (
"errors"
"fmt"
"github.com/hyperledger/fabric/core/chaincode/shim"
)
// SimpleChaincode example simple Chaincode implementation
type SimpleChaincode struct {
}
func (t *SimpleChaincode) Init(stub *shim.ChaincodeStub, function string, args []string) ([]byte, error) {
attributes, err := st... | {
"content_hash": "749041c6511aed57db28c00efe46325f",
"timestamp": "",
"source": "github",
"line_count": 131,
"max_line_length": 107,
"avg_line_length": 24.99236641221374,
"alnum_prop": 0.6719609040928528,
"repo_name": "gongsu832/fabric",
"id": "ebdc5ce316b6c7d3f016faf7a28ce69f1890ac31",
"size": "38... |
<?php
declare(strict_types=1);
namespace stubbles\input\broker\param;
use stubbles\date\Date;
use stubbles\date\span\CustomDatespan;
use stubbles\input\Param;
use stubbles\input\Request;
use stubbles\input\filter\range\DateRange;
use stubbles\input\valuereader\CommonValueReader;
use stubbles\reflect\annotation\Annotat... | {
"content_hash": "60f06574c72bda82c91972220ab09792",
"timestamp": "",
"source": "github",
"line_count": 110,
"max_line_length": 118,
"avg_line_length": 32.86363636363637,
"alnum_prop": 0.5706777316735823,
"repo_name": "stubbles/stubbles-input",
"id": "4bf0ff865314bb432fa133e7fea3ad59c83907a5",
"siz... |
<search-panel [data]="searchPanelData" (startSearch)=startSearch($event) (clearSearch)=clearSearch($event)></search-panel>
<search-result [data]="searchResultData" (selected)=selected($event)></search-result>
<div class="loader" *ngIf="loading">
<i class="wi wfa-icon-loading"></i>
</div> | {
"content_hash": "05528a9c37f7c56efbdef07e79d8a86f",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 122,
"avg_line_length": 59.2,
"alnum_prop": 0.7128378378378378,
"repo_name": "ranjanmadhu/Angular2-101",
"id": "d0696bb4e30633fa1dd48f93f37be864864a0d55",
"size": "296",
"... |
End of preview.
No dataset card yet
- Downloads last month
- 1