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 |
|---|---|
=============================
TractConverter (deprecated)
=============================
**The TractConverter is now deprecated, please use Nibabel streamlines API instead (e.g. `nibabel.streamlines.load()`).**
TractConverter is a python toolbox to convert tractogram files.
TractConverter is for research only; pleas... | {
"content_hash": "ddd8fdf5fb39901db37d28a870d2aae5",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 121,
"avg_line_length": 34.81818181818182,
"alnum_prop": 0.7328111401218451,
"repo_name": "jchoude/tractconverter",
"id": "976c362347b69919c7b210779f1a033175d31371",
"size"... |
static int gCounter;
@implementation Fraction
@synthesize numerator, denominator, addCounter;
+(Fraction *) allocF{
extern int gCounter;
++gCounter;
return [Fraction alloc];
}
+(int) count{
extern int gCounter;
return gCounter;
}
-(instancetype) initWith:(int) n over:(int) d{
self = [super ... | {
"content_hash": "3563ca20531acd1dfb698c14fd4f3693",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 100,
"avg_line_length": 18.28985507246377,
"alnum_prop": 0.5792393026941363,
"repo_name": "midalist/PiOC6th",
"id": "99bee20023ab429e445291f71d9b2926d1023ba4",
"size": "137... |
module ApplicationHelper
def show_edit_actions(object)
true if @current_user.id = object.user.id
end
end
| {
"content_hash": "533cba8c5355efb957ab7f381df36c57",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 45,
"avg_line_length": 22.6,
"alnum_prop": 0.7433628318584071,
"repo_name": "ChristineSchatz/Rails_Blog",
"id": "7d90e8a2dd7dc3ae7337fceb8af061c1e76f1fb4",
"size": "113",
... |
<?php
namespace Phive\TaskQueue;
use Phive\Queue\Queue;
use Psr\Log\LoggerInterface as Logger;
class ExecutionContext
{
/**
* @var Queue
*/
private $queue;
/**
* @var Logger
*/
private $logger;
public function __construct(Queue $queue, Logger $logger)
{
$this->qu... | {
"content_hash": "3e09d8e0d294a9c1c649c83277638f98",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 61,
"avg_line_length": 14.585365853658537,
"alnum_prop": 0.5234113712374582,
"repo_name": "rybakit/phive-task-queue",
"id": "8647ef655a2356504d577279ecee946309b1bea5",
"siz... |
{% extends "./head-signedin.html" %}
<!-- page title -->
{% block page_title %}
Licence serial number {{ pData.LicenceNumber }} - GOV.UK
{% endblock %}
{% block content %}
<main id="content" role="main">
{% from "custom_inc/waterdata.html" import permits %}
{% for pNumber, pData in permits %}
{% if pNumber==... | {
"content_hash": "3fee3c54ef2425058d047a1a9087fc40",
"timestamp": "",
"source": "github",
"line_count": 220,
"max_line_length": 102,
"avg_line_length": 22.7,
"alnum_prop": 0.5296355626752103,
"repo_name": "christinagyles-ea/water",
"id": "c4397a4bae9cae7dacf5fea4fa2f0672f0a77d66",
"size": "4994",
... |
import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import { Row, Col } from 'antd'
import LoginForm from '../../components/LoginForm'
import ChangeLanguage from '../../components/ChangeLanguage'
import { noticeSuccess, noticeError } from '../../utils/notice'
import styles from '... | {
"content_hash": "3b18fc205c0930c39c47f523c5cce7ab",
"timestamp": "",
"source": "github",
"line_count": 89,
"max_line_length": 99,
"avg_line_length": 27.168539325842698,
"alnum_prop": 0.6869313482216708,
"repo_name": "Mesamo/dva-admin",
"id": "9e6db7e2ae7bd728178d06a971e42c501dd06294",
"size": "241... |
package com.thanosfisherman.wifiutils.sample;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
... | {
"content_hash": "813820636ab30086806e7281ee719f7d",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 81,
"avg_line_length": 24.352941176470587,
"alnum_prop": 0.7004830917874396,
"repo_name": "ThanosFisherman/WifiUtils",
"id": "22a33cbc988f6fb43eaebafb2774ced67361670f",
"si... |
package com.hurence.logisland.logging;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Stubs out the functionality of a ComponentLog so that it can
* be used during initialization of a component.
*
*/
public class MockComponentLogger implements ComponentLog {
private static final Logger logge... | {
"content_hash": "16d963ccaa83508957738bdad96f9768",
"timestamp": "",
"source": "github",
"line_count": 242,
"max_line_length": 75,
"avg_line_length": 21.56611570247934,
"alnum_prop": 0.48936577888484384,
"repo_name": "MiniPlayer/log-island",
"id": "45ab266162747f684633ee02882c0f58da5de112",
"size"... |
class Nonce < ApplicationRecord
def self.valid?(nonce)
create!(nonce: nonce)
true
rescue
Rails.logger.warn("Failed to create nonce: #{nonce}")
false
end
# Remove old nonces from db. Run this from a background task to
# clean the db of extraneous data.
def self.clean
delete_all(["create... | {
"content_hash": "9057b458d0e658f15e65052ea20974ee",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 65,
"avg_line_length": 21.352941176470587,
"alnum_prop": 0.6639118457300276,
"repo_name": "atomicjolt/lti_starter_app",
"id": "6a4ba76ce81efa2ac8b895371298856b48c3f932",
"s... |
<scalastyle>
<name>Scalastyle standard configuration</name>
<check level="warning" class="org.scalastyle.file.FileTabChecker" enabled="true"></check>
<check level="warning" class="org.scalastyle.file.FileLengthChecker" enabled="true">
<parameters>
<parameter name="maxFileLength"><![CDATA[800]]></parameter>
</... | {
"content_hash": "feeef70306f5c40c03faf36331bc5435",
"timestamp": "",
"source": "github",
"line_count": 162,
"max_line_length": 120,
"avg_line_length": 50.574074074074076,
"alnum_prop": 0.7331868668375442,
"repo_name": "scalastyle/scalastyle",
"id": "83b6bf75a7b3e4336be2c9fa282bec0b2abd43e0",
"size... |
package main
import (
"fmt"
"github.com/dbferreira/go-bat/go-bat"
)
func main() {
gobat.HandleTask()
fmt.Println("Complete, stopping app...")
}
| {
"content_hash": "e76e434ae73f431e32d324ebd9394e2e",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 41,
"avg_line_length": 11.692307692307692,
"alnum_prop": 0.6644736842105263,
"repo_name": "dbferreira/go-bat",
"id": "818da855ac4375b08a0a212005c3a474114b4f0e",
"size": "15... |
package com.netflix.curator.framework.state;
import com.google.common.base.Function;
import com.google.common.base.Preconditions;
import com.netflix.curator.framework.CuratorFramework;
import com.netflix.curator.framework.listen.ListenerContainer;
import com.netflix.curator.utils.ThreadUtils;
import org.slf4j.Logger... | {
"content_hash": "8e4a12bd0832ac9e96c9876541edd913",
"timestamp": "",
"source": "github",
"line_count": 175,
"max_line_length": 129,
"avg_line_length": 30.068571428571428,
"alnum_prop": 0.5655644241733181,
"repo_name": "box/curator",
"id": "06e348d7601cc8ea5a5a7d034b2749e58fac8c34",
"size": "5901",... |
package com.devspark.robototextview.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.DigitalClock;
import com.devspark.robototextview.R;
import com.devspark.robototextview.RobotoTypefaceManager;
... | {
"content_hash": "d8963e7800029e974bf2ef82ad276eb2",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 98,
"avg_line_length": 35.34615384615385,
"alnum_prop": 0.667392092854552,
"repo_name": "0359xiaodong/Android-RobotoTextView",
"id": "71561b6c7f9ec6cd7662473e7dd9fd952e85450e... |
function shadowSelector(v) {
return 'body /shadow-deep/ ' + selector(v);
}
function selector(v) {
return '[touch-action="' + v + '"]';
}
function rule(v) {
return '{ -ms-touch-action: ' + v + '; touch-action: ' + v + '; touch-action-delay: none; }';
}
var attrib2css = [
'none',
'auto',
'pan-x',
'pan-y',
... | {
"content_hash": "6e317b270cc09a1f9bd38517b1801151",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 95,
"avg_line_length": 25.607843137254903,
"alnum_prop": 0.5849923430321593,
"repo_name": "fercamp09/int20171T",
"id": "15c50023dbc0185ac3ac08d804d9859d83ecd9c0",
"size": "... |
package com.io.bio.file;
import java.io.*;
import java.nio.file.NoSuchFileException;
/**
* Author Mr.Pro
* Date 9/10/17 = 4:01 PM
*/
public class FileUtils {
public static String readFile(String filePath) throws IOException {
File file = new File(filePath);
if(!file.exists()){
th... | {
"content_hash": "4c5f8426934d09d8614be5b6f1089f3a",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 92,
"avg_line_length": 29.595744680851062,
"alnum_prop": 0.578001437814522,
"repo_name": "caoyj1991/Core-Java",
"id": "ccd1cf2afd41b37abbdf33ea4d9948178aa03df5",
"size": "1... |
using EPiServer.Core;
using EPiServer.DataAbstraction;
using EPiServer.DataAnnotations;
using System.ComponentModel.DataAnnotations;
namespace AlloySampleAzure.Models.Pages
{
/// <summary>
/// Used for the pages mainly consisting of manually created content such as text, images, and blocks
/// </summary>
... | {
"content_hash": "efa0825b442e1de6ca17155c7762e5f3",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 105,
"avg_line_length": 33.46153846153846,
"alnum_prop": 0.6781609195402298,
"repo_name": "vnbaaij/ImageProcessor.Web.Episerver",
"id": "cf9fc806d444f9ad0823f1f8eb62885df239b... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "3ed30bb73ad3523be05fd5c8bc532e9e",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "0ccf56719b1d2daaedd9bbb6b4f737e49d811acc",
"size": "178... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>JOGL Graph UI-Scene Demo 01 Auto-AA (NApplet)</title>
</head>
<body BGCOLOR="#ffffff">
<P>
JOGL Graph UI-Scene Demo 01 Auto-AA (VBAA for < 200 dpi)
</P>
<P>
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="80... | {
"content_hash": "5d91b34d8578aac2094d6902cd54d4a0",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 112,
"avg_line_length": 31.4,
"alnum_prop": 0.5928116469517744,
"repo_name": "duke-compsci344-spring2015/jogl_jars",
"id": "db4be720cebdd30b98172891af0b4b8eee41fe97",
"size... |
<div class="theseus-error-dialog template modal hide">
<div class="modal-header">
<a href="#" class="close">×</a>
<h1 class="dialog-title">{{Strings.NODE_THESEUS_VERSION_ERROR_HEADER}}</h1>
</div>
<div class="modal-body">
<div class="dialog-image"></div>
<p class="dialo... | {
"content_hash": "ed4b77aec9d3b4c1313b1dabb3bdf09a",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 124,
"avg_line_length": 43.53846153846154,
"alnum_prop": 0.6148409893992933,
"repo_name": "mcanthony/theseus",
"id": "98bc77af12a6233def35b02953bb1c988af82b4b",
"size": "56... |
using System.Collections.Generic;
namespace CompatibleSoftware.Poker.Domain
{
public interface ICommunityCards
{
void AddCard(ICard card);
IList<ICard> GetCards();
}
} | {
"content_hash": "7c4f795c1b91f1a8ee94e6e48518bbbc",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 41,
"avg_line_length": 18.90909090909091,
"alnum_prop": 0.6490384615384616,
"repo_name": "KevMain/Poker",
"id": "7151023a49a6417e6676f1542b694b18bb66c47d",
"size": "210",
... |
namespace Microsoft.Azure.Management.Network
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
... | {
"content_hash": "e6e8c9979546d21f6565f333d9559719",
"timestamp": "",
"source": "github",
"line_count": 2749,
"max_line_length": 354,
"avg_line_length": 47.2921062204438,
"alnum_prop": 0.5587819023737366,
"repo_name": "pilor/azure-sdk-for-net",
"id": "4b95aec25d34e277e9f0605df9e8c9c6af921e3e",
"siz... |
var inverseAuthMW = require('../middleware/authentication/inverseAuth');
var checkUsernameMW = require('../middleware/registration/checkUsername');
var checkEmailMW = require('../middleware/registration/checkEmail');
var checkPasswordMW = require('../middleware/registration/checkPassword');
var saveUserMW = require('..... | {
"content_hash": "18b57a1837505ffb4fb8f51df6787589",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 74,
"avg_line_length": 35.28,
"alnum_prop": 0.7108843537414966,
"repo_name": "kocsob/spending-monitor",
"id": "6b8517390c01abb3b49d1c0c0116dd05ab320d4d",
"size": "896",
"... |
End of preview.
No dataset card yet
- Downloads last month
- 1