Dataset Preview
Duplicate
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>>>
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)}], 'symlink_target': 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>>>
              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)}], 'symlink_target': 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 dataset

Need 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
using namespace std; extern int nStakeMaxAge; extern int nStakeTargetSpacing; typedef std::map<int, unsigned int> MapModifierCheckpoints; // Hard checkpoints of stake modifiers to ensure they are deterministic static std::map<int, unsigned int> mapStakeModifierCheckpoints = boost::assign::map_list_of ( 0...
{ "content_hash": "b885ecfd44845e0842e2b432beb6e2a2", "timestamp": "", "source": "github", "line_count": 385, "max_line_length": 255, "avg_line_length": 48.16883116883117, "alnum_prop": 0.7031544890806147, "repo_name": "Rimbit/Wallets", "id": "131c9fcb139048a4e33f895341125b826efd33b4", "size": "1881...
package topoos.APIAccess.Operations; import java.net.URLEncoder; /** * Class that get membership. * * Lists all users authorized in your app. Private info can be returned by using Administrator token. * Accreditation info is never returned. * * @see APIOperation * @author topoos */ public class UsersGetM...
{ "content_hash": "8df3e0daa78304290914827c357155e8", "timestamp": "", "source": "github", "line_count": 81, "max_line_length": 139, "avg_line_length": 26.666666666666668, "alnum_prop": 0.6944444444444444, "repo_name": "topoos/topoos_sdk_android", "id": "0687b16d5d54d2f8155252d241e9951079875aa6", "s...
require 'spec_helper' module OnStomp::Connections::Serializers describe Stomp_1_0 do let(:serializer) { Stomp_1_0.new } describe "ancestors" do it "should be a kind of Stomp_1 serializer" do serializer.should be_a_kind_of(OnStomp::Connections::Serializers::Stomp_1) end end describ...
{ "content_hash": "38bd293cb727a5b244ad925a83c71b5c", "timestamp": "", "source": "github", "line_count": 49, "max_line_length": 133, "avg_line_length": 38.51020408163265, "alnum_prop": 0.62586115527292, "repo_name": "beni55/onstomp", "id": "f8da4b9aa63cd00fb07580b183970a163c35f0f3", "size": "1913", ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>lesniewski-mereology: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../boot...
{ "content_hash": "17e4beab298d63a929e99fc57ca49307", "timestamp": "", "source": "github", "line_count": 166, "max_line_length": 803, "avg_line_length": 48.56024096385542, "alnum_prop": 0.5835504279866022, "repo_name": "coq-bench/coq-bench.github.io", "id": "3af683e49941826189d73a90ed9874a7c8e22fce", ...
Options options; Profile profile; Sockets sockets; #endif // __IALDOR_GLOBALS_H__
{ "content_hash": "18f27b34022cca1498254e5f3b93e984", "timestamp": "", "source": "github", "line_count": 5, "max_line_length": 30, "avg_line_length": 16.6, "alnum_prop": 0.7349397590361446, "repo_name": "mattpap/IAldor", "id": "45cd3a3462b61c68eb8ae6b93b1e4178bf099e44", "size": "206", "binary": fa...
<!DOCTYPE animal [ <!ELEMENT animal ANY> <?ฯ an illegal char #x0e2f in PITarget ?> ]> <animal/>
{ "content_hash": "09616a63d16ac42eb802e488acc1fa4f", "timestamp": "", "source": "github", "line_count": 6, "max_line_length": 26, "avg_line_length": 17.166666666666668, "alnum_prop": 0.6213592233009708, "repo_name": "FranklinChen/hugs98-plus-Sep2006", "id": "5ce20ec658d0820b507dd9bfa1f30b3c4b32f4be",...
import { delimiter } from '../modules/core/regex.js' import { radians } from '../utils/utils.js' import { register } from '../utils/adopter.js' import Element from '../elements/Element.js' import Point from './Point.js' function closeEnough (a, b, threshold) { return Math.abs(b - a) < (threshold || 1e-6) } export d...
{ "content_hash": "767ac5b4d93047fb66e65843b887cbbc", "timestamp": "", "source": "github", "line_count": 491, "max_line_length": 110, "avg_line_length": 25.64562118126273, "alnum_prop": 0.5524142312579415, "repo_name": "wout/svg.js", "id": "406cb84ebb25eff43d2afb9a64a1bfb65cdd3264", "size": "12592",...
/* Define to prevent recursive inclusion -------------------------------------*/ #ifndef STM32L4xx_HAL_RTC_EX_H #define STM32L4xx_HAL_RTC_EX_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32l4xx_hal_def.h" /** @add...
{ "content_hash": "30178e0eade35d2db121c96492e1faad", "timestamp": "", "source": "github", "line_count": 1468, "max_line_length": 197, "avg_line_length": 47.73978201634878, "alnum_prop": 0.5409948346222996, "repo_name": "ryankurte/stm32f4-base", "id": "818f55c9d6e276269c97b5b3328e71c7614540b2", "siz...
// Copyright 2010-2015, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of condit...
{ "content_hash": "db9aa82654d8812332548bc14314a3b5", "timestamp": "", "source": "github", "line_count": 51, "max_line_length": 96, "avg_line_length": 46.6078431372549, "alnum_prop": 0.7803954564577198, "repo_name": "UIKit0/mozc", "id": "6c9b2ebf7c56b1216333da64904b3dfe038e2578", "size": "2377", "...
<html> <header><title>This is title</title></header> <body> Hello world </body> </html>
{ "content_hash": "af8fecfe35228c69ee423317ea496b95", "timestamp": "", "source": "github", "line_count": 6, "max_line_length": 45, "avg_line_length": 14.5, "alnum_prop": 0.6781609195402298, "repo_name": "mpmunasinghe/product-ei", "id": "cb7b041e98b75da94c26c14980110d11bd1eb47d", "size": "87", "bin...
package overrides import ( "fmt" "github.com/golang/glog" "k8s.io/api/core/v1" utilruntime "k8s.io/apimachinery/pkg/util/runtime" kapiv1 "k8s.io/kubernetes/pkg/apis/core/v1" buildadmission "github.com/openshift/origin/pkg/build/admission" buildapi "github.com/openshift/origin/pkg/build/apis/build" overrides...
{ "content_hash": "b4dd2a1d66543c96bd180e3bf2ae88e5", "timestamp": "", "source": "github", "line_count": 136, "max_line_length": 150, "avg_line_length": 36.169117647058826, "alnum_prop": 0.7275869079081114, "repo_name": "sg00dwin/origin", "id": "38fbc736e499e5cdf6814eb7219480f289f4fa6b", "size": "49...
package com.intellij.ui.mac.growl; import com.intellij.openapi.diagnostic.Logger; import com.intellij.ui.mac.foundation.Foundation; import com.intellij.ui.mac.foundation.ID; import com.sun.jna.Pointer; import org.jetbrains.annotations.NotNull; /** * @author spleaner */ public class Growl { private static final L...
{ "content_hash": "4ec490748a565b621622b7f1ce73efe5", "timestamp": "", "source": "github", "line_count": 125, "max_line_length": 134, "avg_line_length": 40.568, "alnum_prop": 0.7408795109445868, "repo_name": "joewalnes/idea-community", "id": "8198247e6c0220256d1d3763cd3a8ce0f0fc3215", "size": "5671"...
<html> <head> <!-- Generated by the Spirit (http://spirit.sf.net) QuickDoc --> <title>Place holders</title> <link rel="stylesheet" href="theme/style.css" type="text/css"> <link rel="prev" href="lazy_functions.html"> <link rel="next" href="polymorphic_functions.html"> </head> <body> <table width="100%" height="...
{ "content_hash": "92b0348f2c3aaedafe2458407814d427", "timestamp": "", "source": "github", "line_count": 98, "max_line_length": 747, "avg_line_length": 98.70408163265306, "alnum_prop": 0.7101209552362245, "repo_name": "Franky666/programmiersprachen-raytracer", "id": "ded4e447918983c774c579b216c5f4861f...
#ifndef FLANN_H_ #define FLANN_H_ #include "defines.h" #ifdef __cplusplus extern "C" { using namespace flann; #endif struct FLANNParameters { enum flann_algorithm_t algorithm; /* the algorithm to use */ /* search time parameters */ int checks; /* how many leafs (features) to check ...
{ "content_hash": "3b590282ccf6607187c66fbbf176d466", "timestamp": "", "source": "github", "line_count": 444, "max_line_length": 144, "avg_line_length": 50.810810810810814, "alnum_prop": 0.4637854609929078, "repo_name": "ppwwyyxx/panorama", "id": "90d1cf8e52fd0c6e922693d6a09ada61e84bf54c", "size": "...
package request import ( "context" "testing" ) func TestCompressionDisabled(t *testing.T) { ctx := context.Background() // Default value is false. if got, want := CompressionDisabledFrom(ctx), false; got != want { t.Errorf("CompressionDisabledFrom(ctx) = %v; want = %v", got, want) } // We retrieve stored...
{ "content_hash": "078c00602fad6cf87ab994f2cc9f7fff", "timestamp": "", "source": "github", "line_count": 29, "max_line_length": 69, "avg_line_length": 25.03448275862069, "alnum_prop": 0.6818181818181818, "repo_name": "zhouhaibing089/kubernetes", "id": "eadd622ba372916de6990c921eb7c24633d08915", "siz...
package anaconda import ( "net/url" "strconv" ) type Cursor struct { Previous_cursor int64 Previous_cursor_str string Ids []int64 Next_cursor int64 Next_cursor_str string } type UserCursor struct { Previous_cursor int64 Previous_cursor_str string Next_cursor int64 Next_cursor_str ...
{ "content_hash": "27b4e891325a25bda10579a04c63a457", "timestamp": "", "source": "github", "line_count": 301, "max_line_length": 131, "avg_line_length": 31.146179401993354, "alnum_prop": 0.70464, "repo_name": "AllanCochrane/tiltingatwindows", "id": "c887321fbed7b8463221792e794710dc5338e88d", "size":...
#ifndef T_FUNCTION_H #define T_FUNCTION_H #include <string> #include "thrift/compiler/parse/t_type.h" #include "thrift/compiler/parse/t_struct.h" #include "thrift/compiler/parse/t_doc.h" /** * Representation of a function. Key parts are return type, function name, * optional modifiers, and an argument list, which...
{ "content_hash": "e8059f54e83803cfceec9b8651e9239a", "timestamp": "", "source": "github", "line_count": 104, "max_line_length": 77, "avg_line_length": 22.278846153846153, "alnum_prop": 0.5865343116098403, "repo_name": "uber/fbthrift", "id": "e61ffef0ac341158949c988c7961cfc0982cace4", "size": "3120"...
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright 2010 Google Inc. 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 Unles...
{ "content_hash": "d4182054b3be9c8aadf99fe2a49bfbcd", "timestamp": "", "source": "github", "line_count": 22, "max_line_length": 143, "avg_line_length": 57.04545454545455, "alnum_prop": 0.7386454183266933, "repo_name": "iliasbartolini/AgileDayConferenceApp", "id": "81828bf58a36d7367394f6fd16be06dd276c9...
"""Tests for iZone.""" import pytest from homeassistant import config_entries, data_entry_flow from homeassistant.components.izone.const import DISPATCH_CONTROLLER_DISCOVERED, IZONE from tests.async_mock import Mock, patch @pytest.fixture def mock_disco(): """Mock discovery service.""" disco = Mock() d...
{ "content_hash": "760d785e1684c409dc058ef88526d348", "timestamp": "", "source": "github", "line_count": 80, "max_line_length": 86, "avg_line_length": 32.5, "alnum_prop": 0.6765384615384615, "repo_name": "titilambert/home-assistant", "id": "72b80e75bcf2dfbf85a4386be4db69f3f356a9cb", "size": "2600", ...
'use strict'; module.exports = function(name) { name = name.toLowerCase(); if (['test', 'ember', 'vendor'].indexOf(name) > -1) { return false; } if (name.indexOf('.') > -1) { return false; } if (!isNaN(parseInt(name.charAt(0), 10))) { return false; } return true; };
{ "content_hash": "7348df33c00fbd16e554902e3d087b4c", "timestamp": "", "source": "github", "line_count": 11, "max_line_length": 71, "avg_line_length": 25.454545454545453, "alnum_prop": 0.5964285714285714, "repo_name": "mattmarcum/ember-cli", "id": "0725a4bcd89be5aaf2007533e2ab04848d78b6f7", "size": ...
End of preview.

No dataset card yet

Downloads last month
1