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 us.grahn.trojanow.presentation.feed;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import us.grahn.trojanow.R;
/**
* An interface to display to display the default feed for the user. This will contain posts which
* are mad... | {
"content_hash": "edfd3b7cc65cbf7b02d104c7aa7e47c0",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 98,
"avg_line_length": 30.041666666666668,
"alnum_prop": 0.6914008321775312,
"repo_name": "dgrahn/csci578",
"id": "ed589bb19004cfa6baf4242c6bd9a055ae147872",
"size": "1442"... |
package com.amazonaws.services.simpleemail.model.transform;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.amazonaws.AmazonClientException;
import com.amazonaws.Request;
import com.amazonaws.DefaultRequest;
import com.amazonaws.http.HttpMethodName;
import com.amazonaws.services.si... | {
"content_hash": "879bffd50134a4b42bd4c1ce1f36de85",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 101,
"avg_line_length": 32.255319148936174,
"alnum_prop": 0.7242744063324539,
"repo_name": "trasa/aws-sdk-java",
"id": "2da6440cc63fd1e01fea8f029bdb641e81e00bff",
"size": "... |
var helper = require('./util/helper'),
constants = require('./util/constants'),
LiveNodeList = require('./LiveNodeList'),
QueryStrategyFactory = require('./domQueries/QueryStrategyFactory');
/**
* @module watched/DomElement
*/
/**
* Object used as prototype for new DomElement instances.
* Should be used as... | {
"content_hash": "fb3f7a932fee5d9b431b0ce02b8311bb",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 123,
"avg_line_length": 29.747663551401867,
"alnum_prop": 0.7326421614828778,
"repo_name": "grmlin/watched",
"id": "5254ea0e89ed7be151faa4da54ee56e5eba89ac3",
"size": "318... |
<?php
/**
* Mindmap
* @link https://github.com/jyruzicka/dugong
*/
namespace MarkNotes\Plugins\Page\HTML;
defined('_MARKNOTES') or die('No direct access allowed');
class MindMap extends \MarkNotes\Plugins\Page\HTML\Plugin
{
protected static $me = __CLASS__;
protected static $json_settings = 'plugins.page.html.m... | {
"content_hash": "0ee695f33d2f77645f504fa49f58c7cd",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 70,
"avg_line_length": 23.184615384615384,
"alnum_prop": 0.6337093563370936,
"repo_name": "cavo789/marknotes",
"id": "3e8d81eff76084e472bff5bff204fee1e7038bd6",
"size": "15... |
local gradeTiers = {
Grade_Tier01 = 0,
Grade_Tier02 = 1,
Grade_Tier03 = 2,
Grade_Tier04 = 3,
Grade_Tier05 = 4,
Grade_Tier06 = 5,
Grade_Tier07 = 6,
Grade_Tier08 = 7,
Grade_Tier09 = 8,
Grade_Tier10 = 9,
Grade_Tier11 = 10,
Grade_Tier12 = 11,
Grade_Tier13 = 12,
Grade_Tier14 = 13,
Grade_Tier15 = 14,
Grade_Ti... | {
"content_hash": "83200adb82b76406c2e1136a83dda93a",
"timestamp": "",
"source": "github",
"line_count": 491,
"max_line_length": 151,
"avg_line_length": 31.39918533604888,
"alnum_prop": 0.7363948887591619,
"repo_name": "MinaciousGrace/Transcendence",
"id": "87382c985c078f2de01c63d976cf55a165c9eb9b",
... |
import { IFrozenRepository } from "core/generics";
import { IOptions } from "core/configuration";
export abstract class Options implements IOptions {
protected section: string;
config: IFrozenRepository;
constructor(config: IFrozenRepository, section: string) {
this.config = config;
this.section = (se... | {
"content_hash": "23c16ec13bb99c95280ab164b6078a8e",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 61,
"avg_line_length": 21.869565217391305,
"alnum_prop": 0.6620278330019881,
"repo_name": "pflannery/vscode-versionlens",
"id": "7d3fe13284efcc0d0107ed372068b6ae19ce0824",
... |
exports.db = "mongodb://admin:giraffe@kahana.mongohq.com:10075/pileup"; | {
"content_hash": "11df1ffef0e4062504f8a0b1e6b96d41",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 71,
"avg_line_length": 71,
"alnum_prop": 0.7746478873239436,
"repo_name": "jtmarmon/TrayWeigh",
"id": "959e3136151e9594f64d6f530ec3a0fb10f4cc4c",
"size": "71",
"binary": f... |
module.exports = {
AppBar: require('./js/app-bar.jsx'),
AppCanvas: require('./js/app-canvas.jsx'),
Checkbox: require('./js/checkbox.jsx'),
Dialog: require('./js/dialog.jsx'),
DropDownIcon: require('./js/drop-down-icon.jsx'),
DropDownMenu: require('./js/drop-down-menu.jsx'),
IconButton: require('./js/icon-... | {
"content_hash": "9d0ac651cadd791b6e48a691fd9ff778",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 59,
"avg_line_length": 37.09375,
"alnum_prop": 0.6419545071609098,
"repo_name": "baiyanghese/material-ui",
"id": "1775f27afdc30aeb93972a60fcafb4c3d762ceb8",
"size": "1187",... |
#ifndef EX_DDL_H
#define EX_DDL_H
/* -*-C++-*-
*****************************************************************************
*
* File: ex_ddl.h
* Description: DDL statements (get executed in mxcmp)
*
*
* Created: 7/10/95
* Language: C++
*
*
*
*
***********... | {
"content_hash": "f7d3f52f48069cf08324b0a5fcb06902",
"timestamp": "",
"source": "github",
"line_count": 620,
"max_line_length": 116,
"avg_line_length": 31.861290322580643,
"alnum_prop": 0.5421686746987951,
"repo_name": "mashengchen/incubator-trafodion",
"id": "efb3eac4111819645543771a6f69ba59c54a88b1... |
package org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.PriorityQueue;
import org.apache.hadoop.yarn.server.resourcemanager.scheduler.common.fica.FiCaSchedu... | {
"content_hash": "8e362d2025328e1cfe346becc67ce206",
"timestamp": "",
"source": "github",
"line_count": 420,
"max_line_length": 92,
"avg_line_length": 33.99285714285714,
"alnum_prop": 0.6872592281291587,
"repo_name": "steveloughran/hadoop",
"id": "d1a62b40941356b2fd59ae0d92fd8d8ab3454ef1",
"size": ... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_20) on Wed Aug 03 20:26:05 CST 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>HttpRequest</title>
<meta na... | {
"content_hash": "45eb4139a62ed7acf0c84bf020713b13",
"timestamp": "",
"source": "github",
"line_count": 424,
"max_line_length": 391,
"avg_line_length": 33.408018867924525,
"alnum_prop": 0.6266854924108719,
"repo_name": "MashiMaroLjc/FunnySpider",
"id": "21e46e7800a7b8b69bc0ff9ed9bb080956f3e802",
"s... |
function isVinValid(vin) {
vin = vin.toUpperCase();
if(vin.length != 17) return false;
if(!vin.indexOf("1FABP28T") < 0) return false;
return true;
}
function handleYear(vin, yearInputID, slapperContainerID) {
vin = vin.toUpperCase();
if(isVinValid(vin)) {
var yearCode = vin[9];
var year = "";
switch(yearC... | {
"content_hash": "d4fbf9f94922e84ec1b8ed984b4363c5",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 67,
"avg_line_length": 23.09433962264151,
"alnum_prop": 0.6421568627450981,
"repo_name": "srenner/svoregistry",
"id": "884ee6abe4eeaf3b073a949a1ebdf85630a30948",
"size": "1... |
End of preview.
No dataset card yet
- Downloads last month
- 1