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 |
|---|---|
$( "#popup-form" ).submit(function( event ) {
// stop form submitting
event.preventDefault();
// hide submit and show progress bar
$('#submit').hide();
$('#progress').show();
// post link to slack
post();
});
// Submit form on Cmd + Enter or Ctrl + Enter
$('#context').keydown( function ( event ) {
if ( (... | {
"content_hash": "ab946e6b218d4bdd7b31e9fd029f492c",
"timestamp": "",
"source": "github",
"line_count": 132,
"max_line_length": 88,
"avg_line_length": 23.598484848484848,
"alnum_prop": 0.6221508828250402,
"repo_name": "robjmills/slacklink",
"id": "caa24221cefb514fdc99a65091812eef17992986",
"size": ... |
package lang.roma.core;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.Collection;
import lang.roma.engine.annotation.Optional;
import lang.roma.engine.annotation.Property;
import lang.roma.... | {
"content_hash": "ff43290828e5223297a2a74bd6bcf4ce",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 71,
"avg_line_length": 27.149425287356323,
"alnum_prop": 0.6871295512277731,
"repo_name": "JEBailey/roma",
"id": "b5ad478838ae20de82fc917b04a3dbead5c54933",
"size": "2362",... |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<!-- Servlets -->
<servlet>
<servlet-name>SimpleServlet</servlet-name>
<servlet-class>org.spiffyui.hellospiffymave... | {
"content_hash": "c2065158a66d40df5d87a3ab2cfc3034",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 85,
"avg_line_length": 28.025,
"alnum_prop": 0.656556645851918,
"repo_name": "spiffyui/spiffyui",
"id": "748fc3a9b8dab05031b410addb27564ea09b1898",
"size": "1121",
"binar... |
import base64
from flask.ext.oauthlib import client
from werkzeug import urls
import flask
import auth
import config
import model
import util
from main import app
reddit_config = dict(
access_token_method='POST',
access_token_params={'grant_type': 'authorization_code'},
access_token_url='https://ssl.reddit.co... | {
"content_hash": "a311e4f7d5a84fc0380f6e52fa238926",
"timestamp": "",
"source": "github",
"line_count": 92,
"max_line_length": 78,
"avg_line_length": 28.26086956521739,
"alnum_prop": 0.6953846153846154,
"repo_name": "lipis/electron-crash-reporter",
"id": "369ad031f027b2ac680272debd6d21dd8527359a",
... |
FromFailuresBack
================
A Symfony project created on March 2, 2017, 11:09 am.
| {
"content_hash": "4114260f2854b7d562688388698f921b",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 53,
"avg_line_length": 22.25,
"alnum_prop": 0.6292134831460674,
"repo_name": "ducdeswin7/FromFailuresBack",
"id": "821ce3acd969df18c8136f7ce171a0c7dbca38bb",
"size": "89",
... |
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// This file implemen... | {
"content_hash": "73d8739c58ae7633eb8ebfc54e106463",
"timestamp": "",
"source": "github",
"line_count": 1972,
"max_line_length": 120,
"avg_line_length": 35.551217038539555,
"alnum_prop": 0.6520318941047256,
"repo_name": "tsheasha/rocksdb",
"id": "4690b5c5df97fdfb488422aabfcd07701a67d04c",
"size": "... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Food extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->helper(array('form', 'security'));
$this->load->library('form_validation');
$this->load->model('Answer... | {
"content_hash": "97990e6fccbba3bfdc7d15febd4e302a",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 70,
"avg_line_length": 26.40740740740741,
"alnum_prop": 0.5035063113604488,
"repo_name": "animesh21/gsp-portal-new",
"id": "e4d522aea74eca2da50a6a84cf1d90ea2f5f868d",
"size... |
module Journeyapi
VERSION = "0.0.1"
end
| {
"content_hash": "c8095a2cdade06993cb4f66f4bee882a",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 19,
"avg_line_length": 14,
"alnum_prop": 0.6904761904761905,
"repo_name": "fireworksinnovation/journeyapi",
"id": "f64c5187657e9f31a8956e24629bd596513e34d0",
"size": "42",
... |
using System.Collections.Generic;
using log4net.Appender;
using log4net.Util;
namespace Swartz.Logging
{
public class SwartzFileAppender : RollingFileAppender
{
/// <summary>
/// The number of suffix attempts that will be made on each OpenFile method call.
/// </summary>
pr... | {
"content_hash": "9bb44a16382ecf69b109725ea9768e0a",
"timestamp": "",
"source": "github",
"line_count": 86,
"max_line_length": 128,
"avg_line_length": 37.03488372093023,
"alnum_prop": 0.5249607535321821,
"repo_name": "tuizhis/Swartz",
"id": "fd617246e974d8245a59ac4943ec926db123c194",
"size": "3187"... |
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('registry', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='registry',
name='visibility',
fi... | {
"content_hash": "14d5b6ed8fe6943d56bbe21b665761e3",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 148,
"avg_line_length": 26.22222222222222,
"alnum_prop": 0.6165254237288136,
"repo_name": "zacherytapp/wedding",
"id": "e90b2c93d74380e60d29ccf7c0dbcf23f2b6d50b",
"size": "... |
<?php
/**
* CustomView Record Model Class
*/
class CustomView_Record_Model extends Vtiger_Base_Model {
// Constants to identify different status of the custom view
const CV_STATUS_DEFAULT = 0;
const CV_STATUS_PRIVATE = 1;
const CV_STATUS_PENDING = 2;
const CV_STATUS_PUBLIC = 3;
/**
* Function to get the I... | {
"content_hash": "6cf40cf2b389b8d464710d8be4305a8d",
"timestamp": "",
"source": "github",
"line_count": 1074,
"max_line_length": 195,
"avg_line_length": 38.01117318435754,
"alnum_prop": 0.6197334901038605,
"repo_name": "basiljose1/byjcrm",
"id": "bb697942eff1d8b4865283749d435a1b6122a9cb",
"size": "... |
(function ($, window, document, undefined) {
var pluginName = "threadChecker",
defaults = {
'queryInterval': 30*1000,
'threadId': undefined,
'lastAnswerId': undefined,
'ajax': {}
};
function Plugin(element, options) {
this.element = $(elem... | {
"content_hash": "3e536e8877a11fcf12e5136a8374b4d9",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 84,
"avg_line_length": 31.15068493150685,
"alnum_prop": 0.449868073878628,
"repo_name": "hiqdev/hipanel-module-ticket",
"id": "f6b49872966c751cd977f6de8a4039ff5df65422",
"s... |
#include "qemu-common.h"
#include "qemu-timer.h"
#include "monitor.h"
#include "hw/usb.h"
USBDevice *usb_host_device_open(const char *devname)
{
return NULL;
}
int usb_host_device_close(const char *devname)
{
return 0;
}
void usb_host_info(Monitor *mon)
{
monitor_printf(mon, " No devices\n");
}
| {
"content_hash": "533228c39df92fc15eef1d393f4c88f7",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 52,
"avg_line_length": 14.761904761904763,
"alnum_prop": 0.6774193548387096,
"repo_name": "indashnet/InDashNet.Open.UN2000",
"id": "ed032193d799f11cc4c1520c2dc0778aece71a39",... |
class UpdateDevicesRelation < ActiveRecord::Migration
def change
change_column :devices, :user_id, :integer, null: false
change_column :devices, :token_id, :integer, null: false
end
end
| {
"content_hash": "2817fea6db22eae6c133cc362fbd2e03",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 60,
"avg_line_length": 33,
"alnum_prop": 0.7323232323232324,
"repo_name": "czajkovsky/sailhero-api",
"id": "6a28b94e418be87b25176ed32670e189f412c339",
"size": "198",
"bina... |
int main(int argc, char** argv) {
log4cpp::Category& log(log4cpp::Category::getInstance("test-intercept_stream"));
log.setPriority(log4cpp::Priority::DEBUG);
try {
log4cpp::Appender* a = new log4cpp::OstreamAppender("test-intercept_stream/stdout", &std::cerr);
a->setLayout(new log4cpp::BasicLayout());
... | {
"content_hash": "4808777d75be8aa3b0dc22d96c718210",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 100,
"avg_line_length": 36.87096774193548,
"alnum_prop": 0.6570428696412949,
"repo_name": "png85/dsnutil",
"id": "71715a0387a858e0f275f9f3a71f808a6db0bc32",
"size": "1234",... |
Craft field type for text fields that match a regex pattern.
## Installation
To install Match Input, follow these steps:
1. Install with Composer via `composer require marionnewlevant/match-input` from your project directory
2. Install plugin in the Craft Control Panel under Settings > Plugins
or
1. Install via th... | {
"content_hash": "f5b874ab7f237b321eb9ae33285b49c1",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 127,
"avg_line_length": 36.88095238095238,
"alnum_prop": 0.7353131052291801,
"repo_name": "marionnewlevant/craft3-match_input",
"id": "2af02119174d6aabc584a67b4fe02abc57b5625... |
namespace lava {
FirstPass::FirstPass() {
symtable = new std::unordered_map<std::string, std::future<ObjTree *> >();
}
FirstPass::~FirstPass() {
for (auto it = symtable->begin(); it != symtable->end(); it++) {
delete &it->first;
delete &it->second;
}
delete symtable;
}
ObjTree *FirstP... | {
"content_hash": "e421d426dd87602d6a6ddec4f6e6f6f4",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 208,
"avg_line_length": 36,
"alnum_prop": 0.4739858906525573,
"repo_name": "cptaffe/lava",
"id": "ee144ed8ceb1ed1161409b7479b14d1511220a70",
"size": "2482",
"binary": fal... |
namespace ash {
namespace {
class ShowWallpaperAnimationObserver : public ui::ImplicitAnimationObserver,
public views::WidgetObserver {
public:
ShowWallpaperAnimationObserver(RootWindowController* root_window_controller,
views::Widget* wallpape... | {
"content_hash": "c5344efabce793b44c484086c6ca5830",
"timestamp": "",
"source": "github",
"line_count": 134,
"max_line_length": 80,
"avg_line_length": 31.69402985074627,
"alnum_prop": 0.7205085943018601,
"repo_name": "google-ar/WebARonARCore",
"id": "b86bf614994b390ab847f70f4b1c4f1b5b7d94d5",
"size... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("ASC... | {
"content_hash": "27a88b5b4047b5efcce3bf233838feea",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 84,
"avg_line_length": 40.77777777777778,
"alnum_prop": 0.7506811989100818,
"repo_name": "ONLYOFFICE/CommunityServer",
"id": "9e8d0a7dd7f7e61ec26a32d3130b42217b472b73",
"si... |
/**
* Autogenerated by renren-api2-generator 2013-07-05 11:01:59
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.renren.api.service;
import java.util.*;
/**
*
* 评论
*/
public class Comment {
/**
* 评论的ID
*/
private long id;
/**
* 评论的类型
*/
private Com... | {
"content_hash": "f0ddd5708d40c9f028c0dbc493385be2",
"timestamp": "",
"source": "github",
"line_count": 85,
"max_line_length": 67,
"avg_line_length": 17.294117647058822,
"alnum_prop": 0.6714285714285714,
"repo_name": "sibojia/ihomepage",
"id": "2c1967602e4eb603d9a696345a9e46dedfda5652",
"size": "15... |
import os
import shutil
import unittest
from css import css
from css import selector
class TestStyle(unittest.TestCase):
def setUp(self):
self.original_path = os.getcwd()
self.dump_folder = '.\\dump_folder'
os.chdir(os.path.dirname(os.path.abspath(__file__)))
if os.path.isdir(self.... | {
"content_hash": "3fc15b8ff3a2add24c3a66857c4a1ab1",
"timestamp": "",
"source": "github",
"line_count": 83,
"max_line_length": 93,
"avg_line_length": 34.80722891566265,
"alnum_prop": 0.5351332641052268,
"repo_name": "PeterPyPan/css",
"id": "4ac64988143e966ea9925cea1866ba4f242614d7",
"size": "2889",... |
using Lucene.Net.Analysis;
using Lucene.Net.Documents;
using Lucene.Net.Randomized.Generators;
using Lucene.Net.Search;
using Lucene.Net.Store;
using Lucene.Net.Support;
using Lucene.Net.Util;
using NUnit.Framework;
using System;
using System.Collections.Generic;
namespace Lucene.Net.Index.Sorter
{
[Suppres... | {
"content_hash": "8ba44576bb093ea2a5ee7e18bf0829fa",
"timestamp": "",
"source": "github",
"line_count": 173,
"max_line_length": 142,
"avg_line_length": 44.69942196531792,
"alnum_prop": 0.6024828656407604,
"repo_name": "laimis/lucenenet",
"id": "bd44cb93247106919f1db8a361ad87e67599bdd8",
"size": "85... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>monae: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | {
"content_hash": "ec7c8abe7d1db1567cc10f9e68998da7",
"timestamp": "",
"source": "github",
"line_count": 184,
"max_line_length": 159,
"avg_line_length": 39.375,
"alnum_prop": 0.5483781918564528,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "fb21bde32e6f80fec210736f4df2f06ba29a6fce",
"size": "... |
#pragma once
#include <aws/rds/RDS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/rds/model/ResponseMetadata.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Xml
{
class XmlDocument;
} // namespace Xml
} // n... | {
"content_hash": "b9cac0459195e18b7d25348a0600996b",
"timestamp": "",
"source": "github",
"line_count": 126,
"max_line_length": 166,
"avg_line_length": 42.166666666666664,
"alnum_prop": 0.6713721061547149,
"repo_name": "JoyIfBam5/aws-sdk-cpp",
"id": "ebb812f83819011c32eb655d72534d31e782aff2",
"size... |
module.exports = (sequelize, DataTypes) => {
let Image = sequelize.define('Image', {
fileName: DataTypes.STRING,
width: DataTypes.SMALLINT.UNSIGNED,
height: DataTypes.SMALLINT.UNSIGNED,
type: DataTypes.STRING,
extension: DataTypes.STRING
});
return Image;
};
| {
"content_hash": "806714e147556c6f17dcb971cb06c4a4",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 44,
"avg_line_length": 28.363636363636363,
"alnum_prop": 0.6314102564102564,
"repo_name": "nathanhood/mmdb",
"id": "17a3e9aa69f0afc6a725abfd5df225aace5fb698",
"size": "312"... |
from google.cloud import dlp_v2
async def sample_delete_dlp_job():
# Create a client
client = dlp_v2.DlpServiceAsyncClient()
# Initialize request argument(s)
request = dlp_v2.DeleteDlpJobRequest(
name="name_value",
)
# Make the request
await client.delete_dlp_job(request=request)... | {
"content_hash": "95065f3e5ae7fb48946a35270ab834ae",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 54,
"avg_line_length": 22.235294117647058,
"alnum_prop": 0.6931216931216931,
"repo_name": "googleapis/python-dlp",
"id": "8737125bd35bcbdcdee1dfd4cd082cdd9d244113",
"size":... |
End of preview.
No dataset card yet
- Downloads last month
- 1