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 |
|---|---|
namespace MassTransit.Courier.Contracts
{
using System;
/// <summary>
/// Capture the exception information thrown by an activity
/// </summary>
public interface ActivityException
{
/// <summary>
/// The tracking number of the activity that threw the exception
/// </su... | {
"content_hash": "1fe9a3d0b253a3c6b7f7dffcd5a9dc62",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 88,
"avg_line_length": 26.097560975609756,
"alnum_prop": 0.5467289719626168,
"repo_name": "MassTransit/MassTransit",
"id": "14e15ab52cccd765de002a402ed83ea04d6d7387",
"size... |
.oo-ui-icon-bright {
background-image: url('themes/wikimediaui/images/icons/bright.png');
background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/bright.svg');
}
.oo-ui-icon-halfBright {
background-image: url('themes/wikimediaui/images/icons/halfBright-ltr.p... | {
"content_hash": "806eb3f6b59736e79935895d5b47f1c7",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 135,
"avg_line_length": 55.86486486486486,
"alnum_prop": 0.7547169811320755,
"repo_name": "extend1994/cdnjs",
"id": "977b95f4185a27a63ed6268c4fc864122c0a97f0",
"size": "228... |
from __future__ import print_function
import argparse
import json
import os
_FILE_URL = 'https://repo.maven.apache.org/maven2/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar'
_FILE_NAME = 'jsr305-3.0.2.jar'
_FILE_VERSION = '3.0.2'
def do_latest():
print(_FILE_VERSION)
def get_download_url(version):
... | {
"content_hash": "9cf9f232722d077db1500df8804f9ae2",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 105,
"avg_line_length": 22.145833333333332,
"alnum_prop": 0.605832549388523,
"repo_name": "ric2b/Vivaldi-browser",
"id": "e078a0872d54c15b375c522c09dace8e42b287dd",
"size":... |
@class GADBannerView;
@class GADInterstitial;
#pragma mark AdMob Plugin
// This version of the AdMob plugin has been tested with Cordova version 2.5.0.
@interface CDVAdMob : CDVPlugin <GADBannerViewDelegate, GADInterstitialDelegate> {
}
@property(nonatomic, retain) GADBannerView *bannerView;
@property(nonatomic, ret... | {
"content_hash": "0085acd44080f63caf966aa0eb935a28",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 82,
"avg_line_length": 34,
"alnum_prop": 0.8008021390374331,
"repo_name": "Icenium/cordova-plugin-admob",
"id": "8831381537ffa2a5c6c823b7e63f3a5d93508008",
"size": "1153",
... |
@interface CTFrameParser : NSObject
+ (NSMutableDictionary *)attributesWithConfig:(CTFrameParserConfig *)config;
+ (CoreTextData *)parseContent:(NSString *)content config:(CTFrameParserConfig*)config;
+ (CoreTextData *)parseAttributedContent:(NSAttributedString *)content config:(CTFrameParserConfig*)config;
+ (Core... | {
"content_hash": "6bd22e4fd1032663cf325dbac5f8aa55",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 107,
"avg_line_length": 41.333333333333336,
"alnum_prop": 0.8004032258064516,
"repo_name": "NoryCao/zhuishushenqi",
"id": "609046ce3b986070ebea8dd0b19549d86f004dbc",
"size"... |
from .app import Flask, Request, Response
from .config import Config
from .helpers import url_for, flash, send_file, send_from_directory, \
get_flashed_messages, get_template_attribute, make_response, safe_join, \
stream_with_context
from .sessions import SecureCookieSession as Session
| {
"content_hash": "a7115eb880c9956fd1d602e813d4a5b6",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 77,
"avg_line_length": 49.166666666666664,
"alnum_prop": 0.7762711864406779,
"repo_name": "sourcegraph/python-deps",
"id": "6612f88276a8ca465d13e4c67149cf43d5f42b70",
"size"... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | {
"content_hash": "b58c106e2f5df0ba1f2b0395f4d21007",
"timestamp": "",
"source": "github",
"line_count": 148,
"max_line_length": 639,
"avg_line_length": 51.28378378378378,
"alnum_prop": 0.6650856389986824,
"repo_name": "bhargavipatel/808X_VO",
"id": "59d7ed6802fa9b99391c93c0a36a9b327846ac87",
"size"... |
module Conratesecurity
class User < ActiveRecord::Base
TEMP_EMAIL_PREFIX = 'change@me'
TEMP_EMAIL_REGEX = /\Achange@me/
rolify :role_cname => 'Conratesecurity::Role'
#rolify role_cname: 'Conratesecurity::Role', role_join_table_name: 'conrate_security_users_conrate_security_roles'
has_many :order... | {
"content_hash": "6810c9606f1e1dbcda9cfc46b532ae8e",
"timestamp": "",
"source": "github",
"line_count": 131,
"max_line_length": 132,
"avg_line_length": 34.87022900763359,
"alnum_prop": 0.6477670753064798,
"repo_name": "muskovicsnet/conrate",
"id": "b991aa27dae3c1743bcc661cebe46ed20585ace0",
"size":... |
package com.example.android.sunshine;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an... | {
"content_hash": "f32a334d97b31c0262b34f39b5de3039",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 82,
"avg_line_length": 29.23076923076923,
"alnum_prop": 0.75,
"repo_name": "Gr8manish/GoUbiquitous",
"id": "3d44761d074353b5a8de648e66fa7375322b202e",
"size": "760",
"bin... |
<?php
namespace oboe\test\output\head;
use \oboe\head\FavIcon;
use \PHPUnit_Framework_TestCase as TestCase;
require_once __DIR__ . '/../../test-common.php';
/**
* This class tests the output of the Oboe_Head_FavIcon element.
*
* @author Philip Graham <philip@lightbox.org>
*/
class FavIconTest extends TestCase ... | {
"content_hash": "c2893dac81f64e5917118a6dd65fade1",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 65,
"avg_line_length": 23.92,
"alnum_prop": 0.6705685618729097,
"repo_name": "pgraham/oobo",
"id": "96c0fb6f7976e8d7e6f630627565dbfb7492ca4f",
"size": "1148",
"binary": f... |
This sample template demonstrates how to create a NAT rule in loadbalancer to allow RDP to a vm.
You can connect to the vm using:
* mstsc.exe /v:<publicDnsName>.<location>.cloudapp.azure.com:<rdpPort>
This template deploys the following resources:
<ul><li>storage account</li><li>vnet</li><li>publi... | {
"content_hash": "8a700d1d2a73fd554dff8caf1c625565",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 210,
"avg_line_length": 37.375,
"alnum_prop": 0.7290969899665551,
"repo_name": "jrowies/azure-quickstart-templates",
"id": "ce788d48040f94420aa3ee512afdd7ba50168cf8",
"size... |
package com.yext.serialization.xml;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Takes all the child elements of the field and embeds them into the parent
... | {
"content_hash": "7c9698d810cbdf586e85224855316e1b",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 76,
"avg_line_length": 21.428571428571427,
"alnum_prop": 0.6644444444444444,
"repo_name": "yext/serialization",
"id": "3fb4007368f7c1cb4198782754876228b37424c4",
"size": "9... |
You can use a variable to assign a value to it and return the value:
function() {
var a = 42;
return a;
}
One solution to solve this riddle is to write a loop:
function() {
for (var i = 1; i < n; i++) {
...
}
}
But Carly is really good at math. You may ne... | {
"content_hash": "45bd1cd41ce253c38a582c80c202a232",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 68,
"avg_line_length": 19.095238095238095,
"alnum_prop": 0.5610972568578554,
"repo_name": "furti/evalquiz",
"id": "80e170c9ec24dde8942087e739131d4375b36190",
"size": "401",... |
# pagePiling.js


Pile your sections one over another and access them scrolling or by URL!
- [Live demo](http://a... | {
"content_hash": "7ae9ceefffad73793353ee613b212599",
"timestamp": "",
"source": "github",
"line_count": 351,
"max_line_length": 463,
"avg_line_length": 41.26495726495727,
"alnum_prop": 0.7352250759458713,
"repo_name": "taaesan/kradarnpraweb",
"id": "62d9c6c3377be72187ca2ce23d9b9306cdd2a105",
"size"... |
namespace {
// Mark as volatile to defensively make sure usage is thread-safe.
// Note that at the time of this writing, access is only on the UI thread.
static volatile bool g_non_browser_ui_displayed = false;
const base::Time* MainEntryPointTimeInternal() {
static base::Time main_start_time = base::Time::Now();
... | {
"content_hash": "95f2e9b7a9c1f897fa8f50e00a4eafe4",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 74,
"avg_line_length": 25.416666666666668,
"alnum_prop": 0.740983606557377,
"repo_name": "junmin-zhu/chromium-rivertrail",
"id": "2292fffe77da3a7991b9e62ddff2aac2bfd4150b",
... |
from __future__ import print_function
import os
import fnmatch
import re
import sys
import urllib.parse
import argparse
HOSTNAME = 'https://azure-sdk-impressions.azurewebsites.net'
README_PATTERNS = ['*/readme.md', '*/readme.rst']
MARKDOWN_REGEX = r'!\[Impressions\]\([^\)]+\)'
RST_REGEX = r'\.\. image:: ' + HOSTNAM... | {
"content_hash": "207feeb783ec1a316aaced384b4ee73a",
"timestamp": "",
"source": "github",
"line_count": 120,
"max_line_length": 211,
"avg_line_length": 42.25833333333333,
"alnum_prop": 0.6811279826464208,
"repo_name": "tg-msft/azure-sdk-tools",
"id": "30d9e08a5b9102efc419f423fb6c798592036ea5",
"siz... |
<?php
declare(strict_types=1);
namespace Helper;
use Zend\Diactoros\UploadedFile;
trait UploadFileTrait
{
protected $tmpFile;
/** @var UploadedFile */
protected $uploadedFile;
public function setupUploadFile()
{
$uploadDir = __DIR__ . '/../../_data/upload/';
$imageFile = $uploadD... | {
"content_hash": "b8f5681ed0fe9742b0694fca52b8116a",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 54,
"avg_line_length": 22.78125,
"alnum_prop": 0.5308641975308642,
"repo_name": "pacphp/graphql-package",
"id": "5cc7914ab061baae95c3f26fd3afac6970b1baea",
"size": "729",
... |
/***********************************************************************
created: 21/2/2004
author: Paul D Turner
purpose: Implements the Window base class
*************************************************************************/
/*****************************************************************... | {
"content_hash": "4f169859c7445835dcd27b221e426be4",
"timestamp": "",
"source": "github",
"line_count": 3819,
"max_line_length": 186,
"avg_line_length": 32.22623723487824,
"alnum_prop": 0.545404316172647,
"repo_name": "OpenTechEngine/CEGUI",
"id": "aae8b2ff6778a5fac0c74cb61701bc7a7b792608",
"size":... |
End of preview.
No dataset card yet
- Downloads last month
- 1