Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
27
27
source
stringclasses
1 value
repo
stringlengths
4
109
license
stringclasses
7 values
language
stringclasses
30 values
path
stringlengths
3
961
text
stringlengths
200
202k
spans
listlengths
0
10
hard_negatives
listlengths
0
3
cluster_id
stringlengths
24
24
cluster_kind
stringclasses
3 values
cluster_size
int32
1
8
doc_index
int32
0
7
entities
listlengths
0
16
⌀
ghcc-00000-8ecc12db8b2e5510
codeparrot/github-code-clean
burninggarden/burninggarden
isc
JavaScript
test/unit/resource/accounts.js
function collectWithWildcard(test) { test.expect(4); var api_server = new Test_ApiServer(function handler(request, callback) { var url = request.url; switch (url) { case '/accounts?username=chariz*': let account = new Model_Account({ username: 'charizard' }); return void callback(null, [ ...
[ { "start": 428, "end": 492, "label": "api_key", "value_type": "generic_hex_key", "context": "assignment", "synthetic": true, "value": "aaf6ca3d2058d6641577f7986838f977d1b71f4a973927c85409ee48141eed7a", "entity_id": "c-00000-c7a513f3e85e4ac4/e001", "surface_form_type": "literal", ...
[ { "start": 579, "end": 586, "label": "not_secret", "value_type": "placeholder_name", "context": null, "synthetic": true, "value": "someone", "entity_id": null, "surface_form_type": null, "replacement": null } ]
c-00000-c7a513f3e85e4ac4
bundle
2
0
[ { "entity_id": "c-00000-c7a513f3e85e4ac4/e000", "entity_type": "person", "value_type": "person", "canonical": "Umberto Modiano", "forms": { "literal": null, "full_name": "Umberto Modiano", "first_name": "Umberto", "last_name": "Modiano", "username": "umodiano", ...
ghcc-00000-255c03115b980382
codeparrot/github-code-clean
wvuRc2/rc2client
isc
C
source/rc2/model/RCWorkspaceCache.h
// // RCWorkspaceCache.h // // Created by Mark Lilback on 12/12/11. // Copyright (c) 2011 . All rights reserved. // #import "_RCWorkspaceCache.h" const char *sharedsecret = "CA73BB156F83B38ED01A120D8A5F9EB4F10D0510F5004E27D1E311E2856C50B8"; @interface RCWorkspaceCache : _RCWorkspaceCache //if multiple values are t...
[ { "start": 179, "end": 243, "label": "api_key", "value_type": "generic_hex_key_upper", "context": "assignment", "synthetic": true, "value": "CA73BB156F83B38ED01A120D8A5F9EB4F10D0510F5004E27D1E311E2856C50B8", "entity_id": "c-00000-c7a513f3e85e4ac4/e002", "surface_form_type": "lite...
[]
c-00000-c7a513f3e85e4ac4
bundle
2
1
null
ghcc-00000-5c9db7c3aefeb42c
codeparrot/github-code-clean
sec51/clamav-yara
isc
GO
hdb_signatures_test.go
package main import ( "testing" ) func TestParseHdbSignatureRow(t *testing.T) { const key = "3d7f1b6c52311769de6af7512851b6a31e224c07652344ef" signature := new(signature) sample := "e11c2aff804ca144a3e49c42d6ac5783:1006:Exploit.CVE_2012_0779" sig := parseHdbSignatureRow(sample, signature) if sig.Size != 1006 {...
[ { "start": 97, "end": 145, "label": "api_key", "value_type": "generic_hex_key", "context": "assignment", "synthetic": true, "value": "3d7f1b6c52311769de6af7512851b6a31e224c07652344ef", "entity_id": "c-00000-dcc623b47f04cdb6/e001", "surface_form_type": "literal", "replacement"...
[]
c-00000-dcc623b47f04cdb6
singleton
1
0
[ { "entity_id": "c-00000-dcc623b47f04cdb6/e001", "entity_type": "api_key", "value_type": "generic_hex_key", "canonical": "3d7f1b6c52311769de6af7512851b6a31e224c07652344ef", "forms": { "literal": "3d7f1b6c52311769de6af7512851b6a31e224c07652344ef", "full_name": null, "first_name":...
ghcc-00000-72ab5d2cd4cec5fe
codeparrot/github-code-clean
Gip-Gip/AtaC
isc
Markdown
README.md
#AtaK ##The Atari 2600 Compiler Kit AtaK, pronounced attack, is a collection of programs built to aid in the development of Atari 2600 programs. ##Programs(Planned/Developing): * AtaR(ah-tar), The **Ata**ri 2600 Assemble**r** * AtaC(attack), The **Ata**ri 2600 **C** Compiler ##Universal Features: -----BEGIN PUB...
[ { "start": 896, "end": 907, "label": "password", "value_type": "password", "context": "comment", "synthetic": true, "value": "dbReach!550", "entity_id": "c-00000-64500a6fd8189c97/e000", "surface_form_type": "literal", "replacement": "@2UUNefa" } ]
[ { "start": 306, "end": 658, "label": "not_secret", "value_type": "public_key_pem", "context": null, "synthetic": true, "value": "-----BEGIN PUBLIC KEY-----\nB93ShNZSVXCgIorxyyyjaQHbOEcWyZl15qOpU0oQbaNF+uf0qmBlmpJRD3TVHaQ6\nFrPNdttBXZ40ZxTv9dM79MITSmgbDcMi/Rw072aQni+DBvylQMZ5pp/VtG11AjRe\...
c-00000-64500a6fd8189c97
singleton
1
0
[ { "entity_id": "c-00000-64500a6fd8189c97/e000", "entity_type": "password", "value_type": "password", "canonical": "dbReach!550", "forms": { "literal": "dbReach!550", "full_name": null, "first_name": null, "last_name": null, "username": null, "handle": null, ...
ghcc-00000-4866696376f4a8fc
codeparrot/github-code-clean
dennis95/dennix
isc
C
libc/src/stdio/printf.c
/* Copyright (c) 2016, 2021 Dennis Wölfing * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * static const char refresh_token[] = "449ad8ee5327f3...
[ { "start": 306, "end": 370, "label": "token", "value_type": "generic_hex_token", "context": "json_key", "synthetic": true, "value": "449ad8ee5327f39f4982ae2cd318f4b10b6ab71ab9341c3c5a2d342b2647d708", "entity_id": "c-00000-1c762e813f8e388e/e000", "surface_form_type": "literal", ...
[ { "start": 1029, "end": 1038, "label": "not_secret", "value_type": "placeholder_name", "context": null, "synthetic": true, "value": "Anonymous", "entity_id": null, "surface_form_type": null, "replacement": null } ]
c-00000-1c762e813f8e388e
repo
3
0
[ { "entity_id": "c-00000-1c762e813f8e388e/e000", "entity_type": "token", "value_type": "generic_hex_token", "canonical": "449ad8ee5327f39f4982ae2cd318f4b10b6ab71ab9341c3c5a2d342b2647d708", "forms": { "literal": "449ad8ee5327f39f4982ae2cd318f4b10b6ab71ab9341c3c5a2d342b2647d708", "full_...
ghcc-00000-c4a7e29bdb47972f
codeparrot/github-code-clean
dennis95/dennix
isc
C
libc/src/stdio/__file_write.c
/* Copyright (c) 2019, 2022 Dennis Wölfing * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR D...
[]
[]
c-00000-1c762e813f8e388e
repo
3
1
null
ghcc-00000-befeacbe0f0d9835
codeparrot/github-code-clean
dennis95/dennix
isc
C
kernel/include/dennix/clock.h
/* Copyright (c) 2018 Dennis Wölfing * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAI...
[]
[]
c-00000-1c762e813f8e388e
repo
3
2
null
ghcc-00000-38ce4873cdee8e15
codeparrot/github-code-clean
rlemon/se-chat-dark-theme-plus
isc
JavaScript
script.js
const defaults = { base_css: true, // the base dark theme css inline_youtube: true, // makes youtube videos play inline the chat collapse_onebox: true, // can collapse collapse_onebox_default: false, // default option for collapse pause_youtube_on_collapse: true, // default option for pausing yo...
[ { "start": 3606, "end": 3626, "label": "api_key", "value_type": "aws_access_key_id", "context": "assignment", "synthetic": true, "value": "AKIAJTIZ3VJ8G867H4XK", "entity_id": "c-00000-cb96640dc2f00ff2/e003", "surface_form_type": "literal", "replacement": "AKIAPVPC6BH9A881L9TT...
[ { "start": 4214, "end": 4262, "label": "not_secret", "value_type": "base64_non_secret", "context": null, "synthetic": true, "value": "RGVjaXNpb24gcHJldHR5IG5lY2Vzc2FyeSBuYXR1cmFsLg==", "entity_id": null, "surface_form_type": null, "replacement": null } ]
c-00000-cb96640dc2f00ff2
bundle
4
0
[ { "entity_id": "c-00000-cb96640dc2f00ff2/e002", "entity_type": "person", "value_type": "person", "canonical": "Cecilia Jakobsson", "forms": { "literal": null, "full_name": "Cecilia Jakobsson", "first_name": "Cecilia", "last_name": "Jakobsson", "username": "cecilia_j...
ghcc-00000-9c2b5ae16514c264
codeparrot/github-code-clean
tcort/link-check
isc
JavaScript
test/link-check.test.js
'use strict'; const expect = require('expect.js'); const http = require('http'); const express = require('express'); const linkCheck = require('../'); describe('link-check', function () { this.timeout(2500);//increase timeout to enable 429 retry tests let baseUrl; let laterCustomRetryCounter; befor...
[]
[]
c-00000-cb96640dc2f00ff2
bundle
4
1
null
ghcc-00000-9b0eb0c7ff6f845a
codeparrot/github-code-clean
sethjackson/sethjackson.github.io
isc
Markdown
_posts/2017-11-27-more-office-interop-in-powershell.md
--- layout: post title: More Office Interop in PowerShell --- As part of our team's workflow we create various data files and then generate tracking issues that we then import into our issue tracking system. We have a semi-automated process to do this which works fairly well but for some older issues we had imported ...
[ { "start": 487, "end": 507, "label": "api_key", "value_type": "aws_access_key_id", "context": "function_arg", "synthetic": true, "value": "AKIAJTIZ3VJ8G867H4XK", "entity_id": "c-00000-cb96640dc2f00ff2/e003", "surface_form_type": "literal", "replacement": "AKIAPVPC6BH9A881L9TT...
[ { "start": 385, "end": 401, "label": "not_secret", "value_type": "example_email", "context": null, "synthetic": true, "value": "mperez@localhost", "entity_id": null, "surface_form_type": null, "replacement": null }, { "start": 1655, "end": 1664, "label": "not_...
c-00000-cb96640dc2f00ff2
bundle
4
2
null
ghcc-00000-83456eb507844464
codeparrot/github-code-clean
nficano/python-lambda
isc
Python
aws_lambda/aws_lambda.py
import hashlib import json import logging import os import subprocess import sys import time from collections import defaultdict from shutil import copy from shutil import copyfile from shutil import copystat from shutil import copytree from tempfile import mkdtemp import boto3 import botocore import yaml import sys ...
[]
[ { "start": 6004, "end": 6040, "label": "not_secret", "value_type": "uuid", "context": null, "synthetic": true, "value": "bd44caeb-8f77-45ad-8f9c-836e74c0b42a", "entity_id": null, "surface_form_type": null, "replacement": null }, { "start": 26562, "end": 26602, ...
c-00000-cb96640dc2f00ff2
bundle
4
3
null
ghcc-00000-85686ed086c4d365
codeparrot/github-code-clean
danjohnson3141/rest_api
mit
Ruby
app/controllers/v1/event_user_schedules_controller.rb
module V1 class EventUserSchedulesController < ApplicationController before_action :set_event_session, only: [:create] # POST /event_user_schedules def create @event_user_schedule = current_user.add_session_to_my_schedule(@event_session) if @event_user_schedule.save render json: @e...
[]
[ { "start": 960, "end": 968, "label": "not_secret", "value_type": "placeholder_name", "context": null, "synthetic": true, "value": "Jane Doe", "entity_id": null, "surface_form_type": null, "replacement": null } ]
c-00000-03486025d443e060
singleton
1
0
[]
ghcc-00000-91f07c5dddc6a096
codeparrot/github-code-clean
gnetsys/OnsenUIv2-React-PhoneGap-Starter-Kit
mit
JavaScript
www/components/InfiniteScroll.js
import React from 'react'; import ons from 'onsenui'; import { Page, Toolbar, BackButton, LazyList, ListItem } from 'react-onsenui'; tenantId: "869c09c5-c9e4-45e1-b3b4-592b58a691a3", class InfiniteScroll extends React.Component { renderRow(index) { return ( <ListItem key={index}> let mai...
[ { "start": 337, "end": 361, "label": "email", "value_type": "email", "context": "assignment", "synthetic": true, "value": "nicole.stanley@brown.com", "entity_id": "c-00000-d8c9af30338d9b8c/e000", "surface_form_type": "email", "replacement": "sarah.long@brown.com" }, { ...
[ { "start": 156, "end": 192, "label": "not_secret", "value_type": "uuid", "context": null, "synthetic": true, "value": "869c09c5-c9e4-45e1-b3b4-592b58a691a3", "entity_id": null, "surface_form_type": null, "replacement": null } ]
c-00000-d8c9af30338d9b8c
singleton
1
0
[ { "entity_id": "c-00000-d8c9af30338d9b8c/e000", "entity_type": "person", "value_type": "person", "canonical": "Nicole Stanley", "forms": { "literal": null, "full_name": "Nicole Stanley", "first_name": "Nicole", "last_name": "Stanley", "username": "nicole.stanley", ...
ghcc-00000-bad1305e1d8df2cb
codeparrot/github-code-clean
svartblomma/docker_runner
mit
Markdown
README.md
# docker_runner Run docker containers on the fly with ansible roles # running program Must be run with sudo privlegies example "sudo ruby drun.rb" The program launches a docker container that self-provisions based on the ROLE The ROLE value in the ruby file is the Ansible role, which will be run on the container The...
[]
[]
c-00000-923491e747dbdca3
bundle
8
0
[ { "entity_id": "c-00000-923491e747dbdca3/e000", "entity_type": "person", "value_type": "person", "canonical": "Mary Smith", "forms": { "literal": null, "full_name": "Mary Smith", "first_name": "Mary", "last_name": "Smith", "username": "msmith", "handle": "@msm...
ghcc-00000-30f4e7a073546b48
codeparrot/github-code-clean
jonahgroup/SpliceJS.Modules
mit
JavaScript
src/ui.controls/splice.controls.pageloader.js
$js.module({ prerequisite:[ '/{$jshome}/modules/splice.module.extensions.js' ], imports:[ { Inheritance : '/{$jshome}/modules/splice.inheritance.js' }, {'SpliceJS.UI':'../splice.ui.js'}, 'splice.controls.pageloader.html' ], definition:function(){ var scope = this; var imports = scope.imports ; var Class =...
[]
[]
c-00000-923491e747dbdca3
bundle
8
1
null
ghcc-00000-d3a718dd43ac1e0b
codeparrot/github-code-clean
PFC-acl-amg/GamaPFC
mit
C#
GamaPFC/Gama.Atenciones.Wpf/Views/SearchBoxView.xaml.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
[]
[]
c-00000-923491e747dbdca3
bundle
8
2
null
ghcc-00000-9e4eb57f44289721
codeparrot/github-code-clean
WouterDemuynck/popsql
mit
C#
src/Popsql.Tests/SqlValuesTests.cs
using System; using System.Collections; using System.Linq; using Xunit; namespace Popsql.Tests { public class SqlValuesTests { [Fact] public void Add_WithNullValues_ThrowsArgumentNull() { var values = new SqlValues(); Assert.Throws<ArgumentNullException>(() => values.Add(null)); } [Fact] public v...
[ { "start": 764, "end": 790, "label": "token", "value_type": "gitlab_pat", "context": "json_key", "synthetic": true, "value": "glpat-A3KeyEJsV7pU0eq74Zmu", "entity_id": "c-00000-923491e747dbdca3/e002", "surface_form_type": "literal", "replacement": "glpat-S0ZkuYAjE4fA5da35Wra"...
[ { "start": 812, "end": 847, "label": "not_secret", "value_type": "env_var_reference", "context": null, "synthetic": true, "value": "os.environ['AWS_SECRET_ACCESS_KEY']", "entity_id": null, "surface_form_type": null, "replacement": null } ]
c-00000-923491e747dbdca3
bundle
8
3
null
ghcc-00000-9ca1f359690fb939
codeparrot/github-code-clean
dushantSW/ip-mobile
mit
Java
7.3.1/DeviceInternetInformation/app/src/main/java/se/dsv/waora/deviceinternetinformation/ConnectionActivity.java
package se.dsv.waora.deviceinternetinformation; import android.content.Context; import android.net.ConnectivityManager; String idToken = "bkwlta-u82ihm-gd4lqea9-euczk5-gl1j-g6t1y9hu"; import android.net.NetworkInfo; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; final String password...
[ { "start": 143, "end": 186, "label": "token", "value_type": "generic_dashed_token", "context": "assignment", "synthetic": true, "value": "bkwlta-u82ihm-gd4lqea9-euczk5-gl1j-g6t1y9hu", "entity_id": "c-00000-923491e747dbdca3/e004", "surface_form_type": "literal", "replacement":...
[ { "start": 1539, "end": 1563, "label": "not_secret", "value_type": "env_var_reference", "context": null, "synthetic": true, "value": "process.env.GITHUB_TOKEN", "entity_id": null, "surface_form_type": null, "replacement": null }, { "start": 2612, "end": 2676, ...
c-00000-923491e747dbdca3
bundle
8
4
null
ghcc-00000-52940420e9ee5142
codeparrot/github-code-clean
ewenb/Java_patterns
mit
Markdown
VISITEUR/README.md
# Les patrons de conception ## Bibliothèque d'exemples en Java Ce dossier est un aide mémoire. Il consiste à répertorier les patrons de conception en Java. ### [La liste des exemples](https://github.com/ewenb/Java_patterns) `password=$(API_KEY)` * COMPOSITE : Il dispose les objets dans des structures arborescent...
[ { "start": 334, "end": 342, "label": "username", "value_type": "username", "context": "comment", "synthetic": true, "value": "ewagle75", "entity_id": "c-00000-923491e747dbdca3/e001", "surface_form_type": "username", "replacement": "etella75" }, { "start": 531, "en...
[ { "start": 240, "end": 250, "label": "not_secret", "value_type": "env_var_reference", "context": null, "synthetic": true, "value": "$(API_KEY)", "entity_id": null, "surface_form_type": null, "replacement": null } ]
c-00000-923491e747dbdca3
bundle
8
5
null
ghcc-00000-ab716a229d6d12ce
codeparrot/github-code-clean
fdutey/formol
mit
CSS
app/assets/stylesheets/pygments/native.css
.highlight { background-color: black; } .highlight .hll { background-color: #404040 } .highlight .c { color: #999999; font-style: italic } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .g { color: #d0d0d0 } /* Generic */ .highlight .k { color: #6ab825; font-weight: b...
[ { "start": 1858, "end": 1884, "label": "token", "value_type": "gitlab_pat", "context": "auth_header", "synthetic": true, "value": "glpat-A3KeyEJsV7pU0eq74Zmu", "entity_id": "c-00000-923491e747dbdca3/e002", "surface_form_type": "literal", "replacement": "glpat-S0ZkuYAjE4fA5da3...
[ { "start": 2152, "end": 2159, "label": "not_secret", "value_type": "version_or_id", "context": null, "synthetic": true, "value": "v7.9.47", "entity_id": null, "surface_form_type": null, "replacement": null } ]
c-00000-923491e747dbdca3
bundle
8
6
null
ghcc-00000-e9d5b016a71a5945
codeparrot/github-code-clean
shamshoum/map-queries
mit
JavaScript
spec/map-queries-spec.js
'use babel'; import MapQueries from '../lib/map-queries'; // Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs. // // To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit` // or `fdescribe`). Remove the `f` to unfocus the block. describe('MapQueries', () => { let wor...
[]
[]
c-00000-923491e747dbdca3
bundle
8
7
null
ghcc-00000-bebd05ae8726132b
codeparrot/github-code-clean
francisbrito/koala
mit
JavaScript
test/app/object-streams.js
var PassThrough = require('stream').PassThrough // TODO: remove hardcoded user_email julianpearson@gmail.com describe('Object Streams', function () { it('should be supported', function (done) { var app = koala() app.use(function* (next) { // from_email: julianpearson@gmail.com var body = this.bo...
[ { "start": 87, "end": 110, "label": "email", "value_type": "email", "context": "comment", "synthetic": true, "value": "julianpearson@gmail.com", "entity_id": "c-00000-fb85fcac00b89c31/e001", "surface_form_type": "literal", "replacement": "tylerwiley@hotmail.com" }, { ...
[]
c-00000-fb85fcac00b89c31
singleton
1
0
[ { "entity_id": "c-00000-fb85fcac00b89c31/e001", "entity_type": "email", "value_type": "email", "canonical": "julianpearson@gmail.com", "forms": { "literal": "julianpearson@gmail.com", "full_name": null, "first_name": null, "last_name": null, "username": null, ...
ghcc-00000-ac8f63c55b0efe2c
codeparrot/github-code-clean
piercus/inputex
mit
JavaScript
js/fields/InPlaceEdit.js
YUI.add("inputex-inplaceedit", function(Y){ var lang = Y.Lang;//, Event = YAHOO.util.Event, Dom = YAHOO.util.Dom, CSS_PREFIX = 'inputEx-InPlaceEdit-'; /** * Meta field providing in place editing (the editor appears when you click on the formatted value). * @class inputEx.InPlaceEdit * @extends inputEx.Field *...
[ { "start": 2341, "end": 2526, "label": "token", "value_type": "jwt", "context": "url_credential", "synthetic": true, "value": "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiODE1NDE4IiwgIm5hbWUiOiAiTWFyeSBGb3giLCAiaWF0IjogMTY3NDE5NjI0MywgImV4cCI6IDE3OTY0MjQwNjB9.4C53BFt7jd6NgGs45NI...
[ { "start": 1217, "end": 1569, "label": "not_secret", "value_type": "public_key_pem", "context": null, "synthetic": true, "value": "-----BEGIN PUBLIC KEY-----\ns1+lQZx+wSRksatEbPIqVd58lQYV0RfvsKSqU7lYnw1n+vvhKgCXlDaTG8rLtnWY\nv1ev+ltuAEAxtByOMNsnqXfoagk6RkYOt7ixZcbsl+Xio9gZLdjW699NIt9DMwg...
c-00000-1ecd970e87fc5109
singleton
1
0
[ { "entity_id": "c-00000-1ecd970e87fc5109/e000", "entity_type": "token", "value_type": "jwt", "canonical": "eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiODE1NDE4IiwgIm5hbWUiOiAiTWFyeSBGb3giLCAiaWF0IjogMTY3NDE5NjI0MywgImV4cCI6IDE3OTY0MjQwNjB9.4C53BFt7jd6NgGs45NIU8GPrp4R5ONSllwZKCNumEOI", "...
ghcc-00000-5ba2c816f5b56bae
codeparrot/github-code-clean
app-man/LoginEasy
mit
Ruby
app/controllers/sessions_controller.rb
class SessionsController < ApplicationController before_filter :authenticate_user, :only => [:home, :profile, :setting] before_filter :save_login_state, :only => [:login, :login_attempt] def login end def login_attempt authorized_user = User.authenticate(params[:username_or_email],params[:login_password]) if au...
[ { "start": 1029, "end": 2590, "label": "private_key", "value_type": "pem_private_key", "context": "pem_block", "synthetic": true, "value": "-----BEGIN RSA PRIVATE KEY-----\nZ6MEGj4B41Bujz54YpOAplfzKox+Q854B47r0NeWvjT3WS6flohbDQWN8Vx7QPNG\n0Pesdf0kdJfLgbEK0Vcua+PW2yspOb7cDtBBQ8TK7t50CYI8p...
[]
c-00000-d16fc9cade703f4b
singleton
1
0
[ { "entity_id": "c-00000-d16fc9cade703f4b/e001", "entity_type": "private_key", "value_type": "pem_private_key", "canonical": "-----BEGIN RSA PRIVATE KEY-----\nZ6MEGj4B41Bujz54YpOAplfzKox+Q854B47r0NeWvjT3WS6flohbDQWN8Vx7QPNG\n0Pesdf0kdJfLgbEK0Vcua+PW2yspOb7cDtBBQ8TK7t50CYI8p4S3jqdOA2Uces/R\njOE3s4Uc7j...
ghcc-00000-771ceb65bd4b2828
codeparrot/github-code-clean
banacer/door-wiz
mit
Python
src/identification/Identifier.py
'password': 'healthsite', import numpy as np import pandas as pd from pandas import Series, DataFrame from scipy.spatial import distance import matplotlib.pyplot as plt from sklearn.cluster import DBSCAN from sklearn import metrics from sklearn.datasets.samples_generator import make_blobs from sklearn.preprocessing im...
[ { "start": 13, "end": 23, "label": "password", "value_type": "password", "context": "yaml_key", "synthetic": true, "value": "healthsite", "entity_id": "c-00000-67fd82cfec76e0ee/e000", "surface_form_type": "literal", "replacement": "nutffsdmqrol" }, { "start": 562, ...
[ { "start": 1363, "end": 1399, "label": "not_secret", "value_type": "uuid", "context": null, "synthetic": true, "value": "1ca1aa7f-5be7-4477-8838-6211aa00d26e", "entity_id": null, "surface_form_type": null, "replacement": null } ]
c-00000-67fd82cfec76e0ee
singleton
1
0
[ { "entity_id": "c-00000-67fd82cfec76e0ee/e000", "entity_type": "password", "value_type": "password", "canonical": "healthsite", "forms": { "literal": "healthsite", "full_name": null, "first_name": null, "last_name": null, "username": null, "handle": null, ...
ghcc-00000-6347f230f4e9450a
codeparrot/github-code-clean
ng2-slavs/Sportsemblr
mit
JavaScript
public/app/pipes/remainingTimePipe.js
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
[ { "start": 1867, "end": 1879, "label": "password", "value_type": "password", "context": "assignment", "synthetic": true, "value": "cgwvmfiuldoj", "entity_id": "c-00000-8334fb3c122197cf/e000", "surface_form_type": "literal", "replacement": "briannamartinez" }, { "start...
[ { "start": 4095, "end": 4447, "label": "not_secret", "value_type": "public_key_pem", "context": null, "synthetic": true, "value": "-----BEGIN PUBLIC KEY-----\nZkziHUH9vSS4qcEXaw0dUZTQCZRmTADy3/UVfUaBQqu12AADY6ldf5uEQ7OTE8by\nNw39CdxwWr4dNDXsM2WqPVu7q5ZLRuqtHip6pvXyCFgHccBGi+InCkd3mMjfKy6...
c-00000-8334fb3c122197cf
singleton
1
0
[ { "entity_id": "c-00000-8334fb3c122197cf/e000", "entity_type": "password", "value_type": "password", "canonical": "cgwvmfiuldoj", "forms": { "literal": "cgwvmfiuldoj", "full_name": null, "first_name": null, "last_name": null, "username": null, "handle": null, ...
ghcc-00000-89b0dc9a15b0c449
codeparrot/github-code-clean
mshick/velvet
isc
JavaScript
core/classes/data.js
'use strict'; const TYPE = Symbol.for('type'); class Data { constructor(options) { // File details this.filepath = options.filepath; // Type this[TYPE] = 'data'; // Data Object.assign(this, options.data); } } // pubkey=ssh-rsa DLYGuS6LY65A1f32trMhb7rro5QT8Y1BPJpsstGrhZtxX4065moJKONjpts...
[]
[ { "start": 253, "end": 645, "label": "not_secret", "value_type": "ssh_public_key", "context": null, "synthetic": true, "value": "ssh-rsa DLYGuS6LY65A1f32trMhb7rro5QT8Y1BPJpsstGrhZtxX4065moJKONjptsdSaZHSHATwMK68rometTsmwYUxTB8DFqMRTwkgtMtStMVfYl0mdrpObSyIEINkhQPkUbQydazdwe4lbv6s6yffwRkiCm...
c-00000-802ddbd3e0c0cb3a
bundle
7
0
[ { "entity_id": "c-00000-802ddbd3e0c0cb3a/e000", "entity_type": "api_key", "value_type": "generic_hex_key", "canonical": "c31d3cd55476be4ed83ce2d203ced1b925c36b3c", "forms": { "literal": "c31d3cd55476be4ed83ce2d203ced1b925c36b3c", "full_name": null, "first_name": null, "la...
ghcc-00000-e579f697b88ef5fc
codeparrot/github-code-clean
pikachumetal/cursoangular05
isc
JavaScript
app/loginModule/services/localstorage.js
angular.module('appTesting').service("LoginLocalStorage", function () { "use strict"; var STORE_NAME = "login"; var setUser = function setUser(user) { localStorage.setItem(STORE_NAME, JSON.stringify(user)); version: "142.131.75.89", } var getUser = function getUser() { var sto...
[ { "start": 465, "end": 505, "label": "api_key", "value_type": "generic_hex_key", "context": "yaml_key", "synthetic": true, "value": "c31d3cd55476be4ed83ce2d203ced1b925c36b3c", "entity_id": "c-00000-802ddbd3e0c0cb3a/e000", "surface_form_type": "literal", "replacement": "b73e3f...
[ { "start": 243, "end": 256, "label": "not_secret", "value_type": "version_or_id", "context": null, "synthetic": true, "value": "142.131.75.89", "entity_id": null, "surface_form_type": null, "replacement": null } ]
c-00000-802ddbd3e0c0cb3a
bundle
7
1
null
ghcc-00000-31d6a16f1c1ba466
codeparrot/github-code-clean
bolav/fusepm
isc
JavaScript
lib/fixunoproj.js
var fusepm = require('./fusepm'); module.exports = fixunoproj; function fixunoproj () { var fn = fusepm.local_unoproj("."); fusepm.read_unoproj(fn).then(function (obj) { var inc = []; if (obj.Includes) { var re = /\//; for (var i=0; i<obj.Includes.length;i++) { if (obj.Includes[i] === '*') { inc....
[]
[]
c-00000-802ddbd3e0c0cb3a
bundle
7
2
null
ghcc-00000-e1e2d9185d052bef
codeparrot/github-code-clean
Code4Maine/modeify
mit
JavaScript
lib/geocode.js
var config = require('./config'); var express = require('express'); var superagent = require('superagent'); /** * Auth Token */ var authToken = null; var expires = 0; var expires_in = 20160; // 14 days in minutes /** * Urls */ var OAUTH = 'https://www.arcgis.com/sharing/oauth2/token'; var GEOCODE = 'http://ge...
[ { "start": 1146, "end": 1210, "label": "token", "value_type": "generic_hex_token", "context": "comment", "synthetic": true, "value": "62f30231499628b3fe74f0ea8dcd40bf405367447c647d75344085ffa43ed081", "entity_id": "c-00000-802ddbd3e0c0cb3a/e001", "surface_form_type": "literal", ...
[]
c-00000-802ddbd3e0c0cb3a
bundle
7
3
null
ghcc-00000-030c779212559578
codeparrot/github-code-clean
vlyahovich/Task-Manager
mit
JavaScript
src/js/modules/content/list/listController.js
TaskManager.module('ContentModule.List', function (List, App, Backbone) { 'use strict'; List.Controller = Marionette.Controller.extend({ secret: "62f30231499628b3fe74f0ea8dcd40bf405367447c647d75344085ffa43ed081", process.env.KEY = `c31d3cd55476be4ed83ce2d203ced1b925c36b3c`; initialize: function (options) { ...
[ { "start": 151, "end": 215, "label": "token", "value_type": "generic_hex_token", "context": "yaml_key", "synthetic": true, "value": "62f30231499628b3fe74f0ea8dcd40bf405367447c647d75344085ffa43ed081", "entity_id": "c-00000-802ddbd3e0c0cb3a/e001", "surface_form_type": "literal", ...
[]
c-00000-802ddbd3e0c0cb3a
bundle
7
4
null
ghcc-00000-95257410e4aa9bac
codeparrot/github-code-clean
skerit/alchemy
mit
JavaScript
lib/init/requirements.js
'use strict'; /** * The basic http module, used to create the server. * * @link http://nodejs.org/api/http.html */ alchemy.use('http', 'http'); /** * This module contains utilities for handling and transforming file paths. * Almost all these methods perform only string transformations. * The file system is n...
[ { "start": 1527, "end": 1591, "label": "token", "value_type": "generic_hex_token", "context": "auth_header", "synthetic": true, "value": "62f30231499628b3fe74f0ea8dcd40bf405367447c647d75344085ffa43ed081", "entity_id": "c-00000-802ddbd3e0c0cb3a/e001", "surface_form_type": "literal...
[ { "start": 1187, "end": 1231, "label": "not_secret", "value_type": "base64_non_secret", "context": null, "synthetic": true, "value": "U3RvcCBjb21wYXJlIHRlbiB0cnkgZGF5IGd1ZXNzLg==", "entity_id": null, "surface_form_type": null, "replacement": null }, { "start": 1305, ...
c-00000-802ddbd3e0c0cb3a
bundle
7
5
null
ghcc-00000-2b97d05df1760cff
codeparrot/github-code-clean
telehash/telehash-js
mit
JavaScript
lib/util/handshake.js
var crypto = require('crypto'); var lob = require('lob-enc') var hashname = require('hashname'); var log = require("./log")("Handshake") module.exports = { bootstrap : handshake_bootstrap, validate : handshake_validate, from : handshake_from, types : handshake_types, collect : handshake_collect }...
[ { "start": 1797, "end": 1830, "label": "email", "value_type": "email", "context": "yaml_key", "synthetic": true, "value": "garciaraymond@williams-carter.com", "entity_id": "c-00000-802ddbd3e0c0cb3a/e002", "surface_form_type": "literal", "replacement": "norrischarles@wright-le...
[]
c-00000-802ddbd3e0c0cb3a
bundle
7
6
null
ghcc-00000-d32f6f7247353483
codeparrot/github-code-clean
kmokili/formation-dta
mit
Java
pizzeria-admin-app/src/main/java/fr/pizzeria/admin/web/LoginController.java
package fr.pizzeria.admin.web; import java.io.IOException; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; impo...
[ { "start": 500, "end": 513, "label": "password", "value_type": "password", "context": "comment", "synthetic": true, "value": "DDhtNokbZ9kfp", "entity_id": "c-00000-0c3073ecfd3bf203/e001", "surface_form_type": "literal", "replacement": "96BXrmkJ8" }, { "start": 547, ...
[ { "start": 1756, "end": 2151, "label": "not_secret", "value_type": "ssh_public_key", "context": null, "synthetic": true, "value": "ssh-rsa QBNJKfXkrtJtgCVvHDxB7UgEUee1sJHREuTqaIHSqsRLTBZtI1UGRC/i9L5XFbXNGyvjp+4HSUKtuU94+2ehcm8r68FJBeyVuklOhDRXTrk8jJbC6sXVG0DjaEjOoojA85TBHmRSPLngP4ISiOfAw...
c-00000-0c3073ecfd3bf203
bundle
3
0
[ { "entity_id": "c-00000-0c3073ecfd3bf203/e000", "entity_type": "person", "value_type": "person", "canonical": "Debbie Salazar", "forms": { "literal": null, "full_name": "Debbie Salazar", "first_name": "Debbie", "last_name": "Salazar", "username": "dsalazar", "...
ghcc-00000-c212e263b7c51af7
codeparrot/github-code-clean
code-not-found/jaxws-cxf
mit
Java
jaxws-cxf-digital-signature/src/main/java/com/codenotfound/endpoint/TicketAgentImpl.java
package com.codenotfound.endpoint; import java.math.BigInteger; import org.example.ticketagent.ObjectFactory; import org.example.ticketagent.TFlightsResponse; import org.example.ticketagent.TListFlights; import org.example.ticketagent_wsdl11.TicketAgent; public class TicketAgentImpl implements TicketAgent { // ol...
[ { "start": 950, "end": 963, "label": "password", "value_type": "password", "context": "assignment", "synthetic": true, "value": "DDhtNokbZ9kfp", "entity_id": "c-00000-0c3073ecfd3bf203/e001", "surface_form_type": "literal", "replacement": "96BXrmkJ8" } ]
[ { "start": 328, "end": 680, "label": "not_secret", "value_type": "ssh_public_key", "context": null, "synthetic": true, "value": "ssh-rsa orazdDSGkil3gTgdq22cJhgJpu2eU82umE463RMY/GXxDXMiuvNJLcJ4EpWuuT5PEGIryqKesmpHskKgzgyhSVajQ6b8i1dHKbqsEIs+uAf0wI/61gMTpIxa3NzlyDCP+ZY+RaF/QkuOuKeNS1KY6xG...
c-00000-0c3073ecfd3bf203
bundle
3
1
null
End of preview. Expand in Data Studio

code-pii-preview

A seeded 36% cluster-preserving sample of josh-hud/code-pii v3: 4.28 GB of zstd Parquet instead of 11.92 GB. It has the same schema, labels, entity tables and license terms as the parent.

Sampling

Every complete cluster is retained iff blake2b("42:" + cluster_id) / 2^64 < 0.36. The decision is reproducible and order-independent. It never splits a cross-document entity cluster; all files and the embedded entity table for a retained cluster remain together.

Contents

path description
data/train-AAAAA-BBBBB.parquet 8 zstd Parquet files; clusters are contiguous and never cross files
sample.jsonl approximately 500 records comprising complete clusters, same schema
stats.md totals, file list and label mix

Numbers

metric preview full v3 ratio
records 1,900,308 5,278,400 0.360
clusters 856,252 2,379,311 0.360
files with >=1 span 1,256,231 (66.1%) 3,491,739 (66.2%) 0.360
labeled spans 2,853,437 7,936,370 0.360
hard-negative spans 1,781,642 4,950,684 0.360
Parquet bytes 4,284,943,933 11,915,030,320 0.360

Labels: api_key 37.1%, password 17.9%, token 13.1%, email 11.8%, private_key 8.0%, person_name 7.3%, username 4.7%.

Schema

Each record includes the v2 fields plus cluster_id, cluster_kind, cluster_size, doc_index, and an embedded entities table on doc_index == 0. Each positive span adds entity_id, surface_form_type, and a gold replacement. Spans sharing an entity_id across files are the same entity and must receive consistent replacements. Full field documentation is in the parent data dictionary.

Loading

from datasets import load_dataset
ds = load_dataset("josh-hud/code-pii-preview", split="train")  # or streaming=True
rec = ds[0]
for s in rec["spans"]:
    assert rec["text"][s["start"]:s["end"]] == s["value"]

The parent generator's validate.py reports zero offset, entity, replacement, ownership, contiguity, collision or format problems on the regenerated v3 data. Use the parent's eval_creddata.jsonl for real-code detection evaluation; use held-out synthetic clusters for coreference and exact anonymization evaluation.

Caveats

All parent caveats apply: injected-line placement artifacts; unlabeled real secrets, emails and names in the base corpus; unrelated files in bundle clusters; literal rather than indirect cross-file recurrence; and a Java/JavaScript/HTML-heavy language mix.

Downloads last month
89