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 |
|---|---|
using System;
using System.Linq;
using System.Collections.Generic;
using Foundation;
using UIKit;
namespace WPDMS.iOS
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// applica... | {
"content_hash": "c724ac5d8dadda83e79e99d644e8a512",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 102,
"avg_line_length": 29.97872340425532,
"alnum_prop": 0.7558552164655784,
"repo_name": "fabianwilliams/xCreateWordPhoneDialerMultiScreen",
"id": "d8377fbba3d56ec22a2b2af4c... |
package com.compositesw.services.system.admin;
import javax.xml.ws.WebFault;
import com.compositesw.services.system.util.common.Fault;
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2.1-b01-
* Generated source version: 2.2
*
*/
@WebFault(name = "fault", targetNamespace = "http://www.composites... | {
"content_hash": "c2ec1c3c02abccc7ff57c818b22b1570",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 101,
"avg_line_length": 21.87272727272727,
"alnum_prop": 0.6334164588528678,
"repo_name": "dvbu-test/PDTool",
"id": "6c2c5f24498f8a2eafe846438da86a7cc625fe67",
"size": "120... |
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.custom.sheet;
import org.eclipse.core.commands.operations.OperationHistoryFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.edit.domain.EditingDomain;
import org.eclipse.emf.edit.domain.IEd... | {
"content_hash": "df87e16c5d97f167c11a69f478382ce8",
"timestamp": "",
"source": "github",
"line_count": 256,
"max_line_length": 122,
"avg_line_length": 37.37109375,
"alnum_prop": 0.6395944392181457,
"repo_name": "prabushi/devstudio-tooling-esb",
"id": "10190d3d8395b5d43c92d26fcdb2917df4374fcf",
"si... |
import { Injector, QueryList, ViewChildren } from '@angular/core';
import { AbstractControl } from '@angular/forms';
import { OMatErrorDirective } from '../../../../directives/o-mat-error.directive';
import { O_MAT_ERROR_OPTIONS } from '../../../../services/factories';
import { OMatErrorOptions } from '../../../../typ... | {
"content_hash": "7fc2bd61cbee3575f503c2e5aa41dbba",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 115,
"avg_line_length": 34.440677966101696,
"alnum_prop": 0.6791338582677166,
"repo_name": "OntimizeWeb/ontimize-web-ngx",
"id": "ea389cce117f59c72880bd5dc01acebd0684d3dc",
... |
<html>
<head>
<title>LG-H340n Mozilla/5.0 (Linux; Android 5.0.1; LG-H340n Build/LRX21Y) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/38.0.2125.102 Mobile Safari/537.36</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
... | {
"content_hash": "a07bbda7acba3938e5e692c60a7a45e4",
"timestamp": "",
"source": "github",
"line_count": 974,
"max_line_length": 553,
"avg_line_length": 40.18788501026694,
"alnum_prop": 0.5231842219553943,
"repo_name": "ThaDafinser/UserAgentParserComparison",
"id": "5d7c1c9dc75aef7f9ff99ef5bb23ec728a2... |
package dkpro.similarity.algorithms.style;
import java.util.List;
import org.apache.uima.fit.util.JCasUtil;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.tcas.Annotation;
import de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Sentence;
import de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.T... | {
"content_hash": "c484ff98770caac8ac2ca5f322181e11",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 89,
"avg_line_length": 32.1219512195122,
"alnum_prop": 0.7463933181473045,
"repo_name": "TitasNandi/Summer_Project",
"id": "2c66ef2471a45d4b1df051333702d624760fa946",
"size... |
class Profile;
namespace policy {
class UserCommandsFactoryAsh : public RemoteCommandsFactory {
public:
explicit UserCommandsFactoryAsh(Profile* profile);
UserCommandsFactoryAsh(const UserCommandsFactoryAsh&) = delete;
UserCommandsFactoryAsh& operator=(const UserCommandsFactoryAsh&) = delete;
~UserCommands... | {
"content_hash": "195ffd88a2fa557ebdcd2b989f21727f",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 81,
"avg_line_length": 27,
"alnum_prop": 0.7777777777777778,
"repo_name": "ric2b/Vivaldi-browser",
"id": "f58f5b24c084861b857255a7e3ba19263623d14f",
"size": "1103",
"bina... |
package com.github.dandelion.datatables.core.option.processor.ajax;
import com.github.dandelion.core.option.AbstractOptionProcessor;
import com.github.dandelion.core.option.OptionProcessingContext;
import com.github.dandelion.core.util.StringUtils;
import com.github.dandelion.datatables.core.extension.feature.AjaxFea... | {
"content_hash": "339b106afe864535adf98ff1aa848c07",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 90,
"avg_line_length": 33.44186046511628,
"alnum_prop": 0.7454798331015299,
"repo_name": "RizziCR/dandelion-datatables",
"id": "586f94b23f5420ed506ca703d94105661fcd4e3d",
"... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "8d283d1a99e51b754490499f1091429f",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "a924401ff808d40487d9f779ff58837283690e23",
"size": "193... |
package org.apache.camel.component.sjms.consumer;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.ScheduledExecutorService;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.ExceptionListener;
import javax.jms.JMSException;
import javax.jms.Message;
import ... | {
"content_hash": "a637c63a58e1cd728b92f9e27a82d10c",
"timestamp": "",
"source": "github",
"line_count": 328,
"max_line_length": 122,
"avg_line_length": 34.35060975609756,
"alnum_prop": 0.6124079169255348,
"repo_name": "pax95/camel",
"id": "371582655b7eeebaed7922b7979f9740dccc0789",
"size": "12069",... |
class TokyoMetro::Api::StationTimetable::Info::TrainTime::Info::Note::ConnectionInfo
def initialize( station , connection )
@station = station
@connection = connection
end
attr_reader :station , :connection
def seed_and_get_id( railway_line_info_ids )
station_info_in_db = ::Station::Info.find_by( ... | {
"content_hash": "70626d00eb45a9a687df6a1ff4536972",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 115,
"avg_line_length": 29.708333333333332,
"alnum_prop": 0.6830294530154277,
"repo_name": "osorubeki-fujita/odpt_tokyo_metro",
"id": "434cdc27eee53db9c4498af314548621aebae0e... |
<?php
namespace Symfony\Component\DomCrawler;
use Symfony\Component\DomCrawler\Field\ChoiceFormField;
use Symfony\Component\DomCrawler\Field\FormField;
/**
* Form represents an HTML form.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class Form extends Link implements \ArrayAccess
{
/**
* @var ... | {
"content_hash": "e3ee1e093171497286337f1d57a73eee",
"timestamp": "",
"source": "github",
"line_count": 494,
"max_line_length": 376,
"avg_line_length": 31.220647773279353,
"alnum_prop": 0.5358879595409454,
"repo_name": "oleg-andreyev/symfony",
"id": "f795ce5963f7ea574f1ce2cb686b59f52584d766",
"size... |
module Data.SBV.Bridge.MathSAT (
-- * MathSAT specific interface
sbvCurrentSolver
-- ** Proving and checking satisfiability
, prove, sat, allSat, isVacuous, isTheorem, isSatisfiable
-- ** Optimization routines
, optimize, minimize, maximize
-- * Non-MathSAT specific SBV interface
-- $moduleExportIntro
... | {
"content_hash": "304ed8f516c45fb6056ca78b3f896dd1",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 128,
"avg_line_length": 50.41379310344828,
"alnum_prop": 0.6244870041039672,
"repo_name": "TomMD/cryptol",
"id": "51f285612ff79f5a502f763bb37e1625273cf98e",
"size": "5015",... |
:orphan:
`plasmapy.conftest`
===================
.. currentmodule:: plasmapy.conftest
.. automodapi:: plasmapy.conftest
| {
"content_hash": "4f4de0fd5612cf98d0f33ae2527a3a16",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 36,
"avg_line_length": 15.5,
"alnum_prop": 0.6209677419354839,
"repo_name": "StanczakDominik/PlasmaPy",
"id": "874d2081b9765610f3cb145942ddc59d22155d89",
"size": "124",
"b... |
using System.Collections.Generic;
public class EdmondsKarp
{
private static int[][] graph;
private static int[] parents;
public static int FindMaxFlow(int[][] targetGraph)
{
graph = targetGraph;
parents = new int[graph.Length];
for (int i = 0; i < graph.Length; i++)
{... | {
"content_hash": "69d89d9bbc9c226244b193c2eac1fc97",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 75,
"avg_line_length": 25.166666666666668,
"alnum_prop": 0.4803871625063678,
"repo_name": "MrPIvanov/SoftUni",
"id": "2d4f53837691e0307e23ac734d95468751c8f42f",
"size": "19... |
"""Convert trace output for Chrome.
Takes a loading trace from 'analyze.py log_requests' and outputs a json file
that can be loaded by chrome's about:tracing..
"""
import argparse
import json
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('input')
parser.add_argument('output'... | {
"content_hash": "8c422834b948d331daf924b701a5f180",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 76,
"avg_line_length": 32.1764705882353,
"alnum_prop": 0.6892138939670932,
"repo_name": "axinging/chromium-crosswalk",
"id": "23c3632a095cd66cd0e20a8dc2785b9265dd0203",
"si... |
'use strict';
angular.module('app.directives').directive('validUniqueUsername', ['UserService', '$q', function (UserService, $q) {
return {
restrict: 'A',
require: "ngModel",
link: function (scope, elem, attrs, ngModelCtrl) {
ngModelCtrl.$asyncValidators.uniqueUsername = functio... | {
"content_hash": "46605e95ac1c237bb03ef427b750e010",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 116,
"avg_line_length": 32.27272727272727,
"alnum_prop": 0.5028169014084507,
"repo_name": "zhenyong/DoitWeb",
"id": "6f67665b7f2dd851ee1246583ff8ae6453798e7f",
"size": "710... |
(function() {
var hi;
hi = function() {
return [document.title, "Hello JavaScript"].join(": ");
};
}).call(this);
| {
"content_hash": "d3508422f49eb297e4e031190a7804cb",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 57,
"avg_line_length": 15.25,
"alnum_prop": 0.5655737704918032,
"repo_name": "Caraxiong/CoffeeScript_demo",
"id": "6c5b1dad28c892d4d98ca880b91053fbce8bb809",
"size": "158",
... |
FROM balenalib/coral-dev-ubuntu:focal-build
ENV NODE_VERSION 12.22.1
ENV YARN_VERSION 1.22.4
RUN for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
; do \
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \
gpg --keyserver ha.pool.sks-keyservers.n... | {
"content_hash": "f65384a0fceb92451c7c78a166956a94",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 693,
"avg_line_length": 66.70731707317073,
"alnum_prop": 0.7093235831809872,
"repo_name": "nghiant2710/base-images",
"id": "1800c4d8a4f2322dc068ab8812b4c63efe08c340",
"size... |
package org.apache.ibatis.submitted.cacheorder;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.Reader;
import org.apache.ibatis.BaseDataTest;
import org.apache.ibatis.cache.Cache;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.... | {
"content_hash": "704c1dac07e8430a1d0638cb7af57719",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 118,
"avg_line_length": 33.2,
"alnum_prop": 0.7778614457831325,
"repo_name": "wuwen5/mybatis-3",
"id": "f8cadfd927db92e031eed8da67f5fd8fa8271c01",
"size": "1976",
"binary... |
package com.devilwwj.jni;
/**
* com.devilwwj.jnidemo
* Created by devilwwj on 16/4/30.
*/
public class TestJNI {
public native String hello();
public native boolean Init();
public native int Add(int x, int y);
public native void destory();
public native void createANativeCrash();
public na... | {
"content_hash": "163dd6b08325c319c97099e9ae4da90f",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 45,
"avg_line_length": 22.1875,
"alnum_prop": 0.6901408450704225,
"repo_name": "devilWwj/Android-Tech",
"id": "660860db259f186848bd866e4fa0bb671d0592a5",
"size": "355",
"... |
<?php
/**
* Enable theme features
*/
add_theme_support('root-relative-urls'); // Enable relative URLs
add_theme_support('bootstrap-top-navbar'); // Enable Bootstrap's top navbar
add_theme_support('bootstrap-gallery'); // Enable Bootstrap's thumbnails component on [gallery]
add_theme_support('nice-search'); ... | {
"content_hash": "07ef0a00da0be4e8d6694df39d59397a",
"timestamp": "",
"source": "github",
"line_count": 80,
"max_line_length": 151,
"avg_line_length": 29.3375,
"alnum_prop": 0.6553046442266723,
"repo_name": "piggy1979/redbike",
"id": "7804c570aedda525c884c0e66a2835b508e1cdec",
"size": "2347",
"bi... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
<HTML>
<HEAD>
<meta name="generator" content="JDiff v1.0.9">
<!-- Generated by the JDiff Javadoc doclet -->
<!-- (http://www.jdiff.org) -->
<meta name="description" content="JDiff is a Javadoc doclet which generates... | {
"content_hash": "629ffce55080c02ef630849205c9795b",
"timestamp": "",
"source": "github",
"line_count": 244,
"max_line_length": 326,
"avg_line_length": 55.15163934426229,
"alnum_prop": 0.6586906442743553,
"repo_name": "crtynes/zookeeper",
"id": "5ba203a93c7f4d17033bf71c38901e951efca76a",
"size": "1... |
package org.beatific.daram.mbean;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;
public class MBean {
private ObjectName objectName;
private Map<String, String> attributes = new HashM... | {
"content_hash": "5bf7e297998a485873f141adbdcb2a45",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 75,
"avg_line_length": 26.102040816326532,
"alnum_prop": 0.6927286942924159,
"repo_name": "beatific/daram",
"id": "3af08cc7a423eba1b4990eb5664b6266c4c01e6e",
"size": "1279"... |
//
// GTLServiceMirror.m
//
// ----------------------------------------------------------------------------
// NOTE: This file is generated from Google APIs Discovery Service.
// Service:
// Google Mirror API (mirror/v1)
// Description:
// API for interacting with Glass users via the timeline.
// Documentation:... | {
"content_hash": "df33453059c380dd39408a78eed3f66f",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 126,
"avg_line_length": 35.64705882352941,
"alnum_prop": 0.5779702970297029,
"repo_name": "shaoke/iOS-examples",
"id": "26c7528666894f02e8de20383583e06970db508e",
"size": "... |
static struct netconn *listeningConn;
static xQueueHandle connectionQueue;
static xTaskHandle dataTask;
volatile shttpConfig *shttpServerConfig;
ICACHE_FLASH_ATTR static bool bind_and_listen(uint16_t port) {
listeningConn = netconn_new(NETCONN_TCP);
if (listeningConn == NULL) {
LOG(ERROR, "shttp: crea... | {
"content_hash": "679371276b5aaef3d5bef8c87ea42ac6",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 103,
"avg_line_length": 29.946428571428573,
"alnum_prop": 0.5974955277280859,
"repo_name": "dunkelstern/simplehttp-esp8266",
"id": "76579dbabec32030d3667b13600982fd0b6a7123"... |
<?php
App::uses('AppController', 'Controller');
/**
* Experiences Controller
*
* @property Experience $Experience
* @property PaginatorComponent $Paginator
*/
class ExperiencesController extends AppController {
/**
* Components
*
* @var array
*/
public $components = array('Paginator');
/**
* index method
... | {
"content_hash": "e10a65178ccdf6b105d7ec3ded36caf0",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 97,
"avg_line_length": 26.22429906542056,
"alnum_prop": 0.6225944404846757,
"repo_name": "steinkel/cakefest-basic-workshop-2013",
"id": "f65bcfba54dde23b96d8483cd46a88d6c110... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE127_Buffer_Underread__new_wchar_t_loop_82_goodG2B.cpp
Label Definition File: CWE127_Buffer_Underread__new.label.xml
Template File: sources-sink-82_goodG2B.tmpl.cpp
*/
/*
* @description
* CWE: 127 Buffer Under-read
* BadSource: Set data pointer to before the a... | {
"content_hash": "181482a5e0ddbd82418dac2a80895ccd",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 99,
"avg_line_length": 32.77777777777778,
"alnum_prop": 0.6250847457627119,
"repo_name": "JianpingZeng/xcc",
"id": "a8a7019cd9fcf057bc0955b99d098ed854d60dad",
"size": "1475... |
import logging
import logstash
import sys
host = 'localhost'
test_logger = logging.getLogger('python-logstash-logger')
test_logger.setLevel(logging.INFO)
test_logger.addHandler(logstash.LogstashHandler(host, 5959, version=1))
# test_logger.addHandler(logstash.TCPLogstashHandler(host, 5959, version=1))
test_logger.er... | {
"content_hash": "599989e088bfe6b7bebeee3639e7a313",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 76,
"avg_line_length": 33.36,
"alnum_prop": 0.7182254196642686,
"repo_name": "jimmyho/python-logstash",
"id": "ad4d8e9bf3a50dbae3a3db98107a0b5d6a90d875",
"size": "834",
"... |
layout: post
title: "The Lion City"
date: 2015-06-20
backgrounds:
- https://github.com/kadie16/kadie16.github.io/raw/master/assets/images/posts/lion-city/bayBackground.JPG
thumb: https://github.com/kadie16/kadie16.github.io/raw/master/assets/images/posts/lion-city/meAtBay.JPG
category: Singapore
tags: Singapore
---... | {
"content_hash": "015a6fcf4bc336c0155b4009a9009ce0",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 881,
"avg_line_length": 92.8,
"alnum_prop": 0.7748824451410659,
"repo_name": "kadie16/kadie16.github.io",
"id": "2a63e9c40d0fd6c28aafba6cf9118b3e33b666b3",
"size": "5111",
... |
<?php defined('SYSPATH') OR die('No direct script access.');
abstract class Deta_Model_PagerButton extends Deta_Core_Model_PagerButton {}
| {
"content_hash": "4fc9abf6f674ef4e30240cbafa9d103c",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 76,
"avg_line_length": 46.333333333333336,
"alnum_prop": 0.762589928057554,
"repo_name": "johnpancoast/renamedetaold",
"id": "0c5765aec743ad8e924d4495f23b61326d0f1483",
"siz... |
ChangeLog
---------
### v0.9.0 (2015-05-15)
* added support for `JavaX` Plist key (fixes #9)
### v0.8.1 (2015-03-26)
* Bugfix for `JVMVersion` key present but no JVMs in `/usr/libexec/java_home`
### v0.8.0 (2015-02-22)
* support for `JVMVersion` key (fixes #13, Thanks to @Dylan-M for his contribution)
* use `$HOME` ... | {
"content_hash": "08deb63e39fd7ad839c0350e786f33c1",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 126,
"avg_line_length": 35.5625,
"alnum_prop": 0.7053309900410076,
"repo_name": "cxbrooks/universalJavaApplicationStub",
"id": "6316c630169c8111aa4a505d1c0c13adddfd2aa3",
"... |
<?php
/** Zend_Controller_Request_Http */
require_once 'Zend/Controller/Request/Http.php';
/** Zend_Uri */
require_once 'Zend/Uri.php';
/**
* Zend_Controller_Request_Apache404
*
* HTTP request object for use with Zend_Controller family. Extends basic HTTP
* request object to allow for two edge cases when using ... | {
"content_hash": "6147c23aeea95987c1d274612d64e3ce",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 94,
"avg_line_length": 34.484375,
"alnum_prop": 0.5523334843679203,
"repo_name": "tjohns/zf",
"id": "33a0e7785b7b3b5283e9c5fb860a5e3d5cbd1b8a",
"size": "2903",
"binary": ... |
package com.xeiam.xchange.quoine.service.polling;
import java.io.IOException;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.exceptions.ExchangeException;
import com.xeiam.xchange.quoine.QuoineAuthenticated;
import com.xeiam.xchange.quoine.QuoineExchange;
import com.xeiam.xchange.service.BaseExchangeServ... | {
"content_hash": "2fb0ab6eaed9e20df38675902ecf6ac7",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 128,
"avg_line_length": 37.170731707317074,
"alnum_prop": 0.8090551181102362,
"repo_name": "nivertech/XChange",
"id": "46ce2fc4f67412895569a6283f4736b7247b6982",
"size": "1... |
from django.conf.urls import patterns, include, url
from openbudgets.apps.interactions.views import CommentFeed, toggleable_interaction
urlpatterns = patterns('',
url(r'^feed/(?P<model>[-\w]+)/(?P<uuid>[-\w]+)/discussion\.atom$',
CommentFeed(), name='comment_feed'),
url(r'^toggle/$',
togglea... | {
"content_hash": "adc4fe57eafe3bd98adaea957833a3be",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 83,
"avg_line_length": 28.615384615384617,
"alnum_prop": 0.6774193548387096,
"repo_name": "shaib/openbudgets",
"id": "2347d198b4695e96c0a37c38fed9023bdd9dcec8",
"size": "37... |
package com.intellij.lang.ant.config.impl;
import com.intellij.lang.ant.AntBundle;
import com.intellij.lang.ant.config.ExecutionEvent;
import org.jetbrains.annotations.NonNls;
public final class ExecuteAfterCompilationEvent extends ExecutionEvent {
@NonNls public static final String TYPE_ID = "afterCompilation";
... | {
"content_hash": "a119ea5849051e0a4a20984e4434bbd0",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 101,
"avg_line_length": 26.310344827586206,
"alnum_prop": 0.7785058977719528,
"repo_name": "mdanielwork/intellij-community",
"id": "df5dd0c59d1708795af81c7d91f4e7a6180d9860",... |
namespace network {
class SimpleURLLoader;
}
// WebUIURLFetcher downloads the content of a file by giving its |url| on WebUI.
// Each WebUIURLFetcher is associated with a given |render_process_id,
// render_view_id| pair.
class WebUIURLFetcher {
public:
// Called when a file URL request is complete.
// Parameters... | {
"content_hash": "3fa1c148fe245ac7c21c4c29ce21a0cc",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 80,
"avg_line_length": 29.307692307692307,
"alnum_prop": 0.6990376202974629,
"repo_name": "ric2b/Vivaldi-browser",
"id": "385687f625397875f56fb2f00dc2e98e2e4dc926",
"size":... |
import {PlatformTest, Req} from "@tsed/common";
import {InjectorService} from "@tsed/di";
import {expect} from "chai";
import Passport from "passport";
import Sinon from "sinon";
import {stub} from "../../../../../test/helper/tools";
import {Protocol, ProtocolsService} from "../index";
const sandbox = Sinon.createSand... | {
"content_hash": "452f0e189e1955883af042f0e1e212b4",
"timestamp": "",
"source": "github",
"line_count": 124,
"max_line_length": 134,
"avg_line_length": 30.387096774193548,
"alnum_prop": 0.6242038216560509,
"repo_name": "Romakita/ts-express-decorators",
"id": "7a4fe934fba03a9972f522ce8dce08b38441792a"... |
package skinny.validator
/**
* Param definition.
*/
sealed trait ParamDefinition {
val key: String
val value: Any
}
/**
* Key param definition.
*
* @param key key
*/
case class OnlyKeyParamDefinition(override val key: String) extends ParamDefinition {
override lazy val value: Any = throw new Illegal... | {
"content_hash": "42192d489fa7fe85e88c39217708524a",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 109,
"avg_line_length": 20.73076923076923,
"alnum_prop": 0.7142857142857143,
"repo_name": "seratch/skinny-framework",
"id": "a6afdfec517beb0af904ced0d8c47a7bafa4880a",
"siz... |
namespace {
class SetupUtilTestWithDir : public testing::Test {
protected:
virtual void SetUp() override {
// Create a temp directory for testing.
ASSERT_TRUE(test_dir_.CreateUniqueTempDir());
}
virtual void TearDown() override {
// Clean up test directory manually so we can fail if it leaks.
A... | {
"content_hash": "a8880af17a71c121c3e52041045e35e7",
"timestamp": "",
"source": "github",
"line_count": 474,
"max_line_length": 80,
"avg_line_length": 37.4746835443038,
"alnum_prop": 0.7104092777120982,
"repo_name": "krieger-od/nwjs_chromium.src",
"id": "c07ec9859f7be7e6b48cb476a41b09d592778cb7",
"... |
End of preview.
No dataset card yet
- Downloads last month
- 1