Datasets:

Modalities:
Text
Languages:
code
ArXiv:
Libraries:
Datasets
License:
Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Job manager was killed while running this job (job exceeded maximum duration).
Error code:   JobManagerExceededMaximumDurationError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

code_text
string
repo_name
string
file_path
string
language
string
license
string
size
int32
using System; using System.Text; namespace FileHelpers.Dynamic { /// <summary> /// Helper classes for strings /// </summary> internal static class StringHelper { /// <summary> /// replace the one string with another, and keep doing it /// </summary> /// <param name="...
MarcosMeli/FileHelpers
FileHelpers/Dynamic/StringHelper.cs
C#
mit
2,199
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using ChallengeAccepted.Data.Contracts; using ChallengeAccepted.Models; namespace ChallengeAccepted.Api.Controllers { // [Authorize] public class BaseController : ApiController ...
NativeScriptHybrids/ChallengeAccepted
ChallengeAccepted.Service/ChallengeAccepted.Api/Controllers/BaseController.cs
C#
mit
1,034
#region License /* The MIT License * * Copyright (c) 2011 Red Badger Consulting * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitatio...
redbadger/XPF
XPF/RedBadger.Xpf/Data/BindingResolutionMode.cs
C#
mit
1,329
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 有关程序集的常规信息通过以下 // 特性集控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("JsonHelper")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: Assembl...
fsjohnhuang/Kit.Net
BaseLibrary/JsonHelper/Properties/AssemblyInfo.cs
C#
mit
1,304
using System; using DotJEM.Json.Validation.Context; using DotJEM.Json.Validation.Descriptive; using DotJEM.Json.Validation.Results; using Newtonsoft.Json.Linq; namespace DotJEM.Json.Validation.Constraints { public sealed class NotJsonConstraint : JsonConstraint { public JsonConstraint Constraint { get;...
dotJEM/json-validation
DotJEM.Json.Validation/Constraints/NotJsonConstraint.cs
C#
mit
1,034
// -------------------------------------------------------------------- // © Copyright 2013 Hewlett-Packard Development Company, L.P. //-------------------------------------------------------------------- using HP.LR.Vugen.Common; using HP.LR.VuGen.ServiceCore; using HP.LR.VuGen.ServiceCore.Data.ProjectSystem; using ...
HPSoftware/VuGenPowerPack
Experimental/TransactionWriterAddin/AutostartCommand.cs
C#
mit
3,176
using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin; using WebProject.Models; namespace WebProject { // Configure the application user manager used in this application. UserManager is defined in ...
saifcoding/angular-apartments-project
WebProject_Server/WebProject/App_Start/IdentityConfig.cs
C#
mit
1,784
// UrlRewriter - A .NET URL Rewriter module // Version 2.0 // // Copyright 2011 Intelligencia // Copyright 2011 Seth Yates // using System; namespace Intelligencia.UrlRewriter.Actions { /// <summary> /// Action that sets properties in the context. /// </summary> public class SetProperty...
sethyates/urlrewriter
src/Actions/SetPropertyAction.cs
C#
mit
1,857
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.Runtime.Serialization; using System.Linq; namespace HTLib2 { public static partial class LinAlg { static bool Eye_SelfTest = HDebug.IsDebuggerAttached; public static MatrixByArr...
htna/HCsbLib
HCsbLib/HCsbLib/HTLib2/HMath.Numerics.LinAlg/LinAlg/LinAlg.Matrix.cs
C#
mit
20,887
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; //[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.xml", Watch = true)] // General Information about an assembly is controlled through the following // set of attributes. Change these attribute value...
sfederella/simurails-project
Desarrollo/Tests/Properties/AssemblyInfo.cs
C#
mit
1,474
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("Pr...
VelizarMitrev/Programmming_Fundamentals
Data types and variables/Practice Integer Numbers/Properties/AssemblyInfo.cs
C#
mit
1,424
using System.Web; using System.Web.Optimization; namespace CattoEmptyWebApplication { public class BundleConfig { // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles....
ccatto/VisualStudio2015WebMVCEmptyTemplate
CattoEmptyWebApplication/CattoEmptyWebApplication/App_Start/BundleConfig.cs
C#
mit
1,255
using System.Collections; using System.Collections.Generic; using Lockstep.Data; using UnityEngine; namespace Lockstep { public static class InputCodeManager { private static Dictionary<string,InputDataItem> InputDataMap = new Dictionary<string, InputDataItem>(); private static BiDictionary<str...
erebuswolf/LockstepFramework
Core/Game/Managers/Input/InputCodeManager.cs
C#
mit
2,251
using System; class SortingArray { //Sorting an array means to arrange its elements in //increasing order. Write a program to sort an array. //Use the "selection sort" algorithm: Find the smallest //element, move it at the first position, find the smallest //from the rest, move it at the second p...
niki-funky/Telerik_Academy
Programming/02.Csharp/02. Arrays/07.SortingArray/07.SortingArray .cs
C#
mit
1,655
namespace Knoledge_Monitor { partial class FormNodes { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> //...
petebryant/knoledge-monitor
Knoledge-Monitor/FormNodes.Designer.cs
C#
mit
10,270
#region License // Copyright (c) 2007 James Newton-King // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction, including without limitation the rights to use, // copy...
uWebshop/uWebshop-Releases
Core/uWebshop.Domain/NewtonsoftJsonNet/Linq/JRaw.cs
C#
mit
2,442
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace Track.Auth.Web.Data.Migrations { public partial class CreateIdentitySchema : Migration { protected ov...
iqduke/Track
src/Track.Auth.Web/Data/Migrations/00000000000000_CreateIdentitySchema.cs
C#
mit
9,250
using SpectrumFish; using Moq; using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Num = System.Int32; namespace SpectrumFish.Tests { [TestFixture] class Z80Tests { [Test] public void GivenZ80WithC...
FinnAngelo/Tomfoolery
ZX/ZxMe/FAfx.SpectrumFish.Tests/Z80Tests.cs
C#
mit
7,053
using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Text.RegularExpressions; using Rhapsody.Utilities; namespace Rhapsody.Core.AlbumInfoProviders { internal class FileNameAlbumInfoProvider : IAlbumInfoProvider { public stri...
soheilpro/Rhapsody
Sources/Rhapsody/Core/AlbumInfoProviders/FileNameAlbumInfoProvider.cs
C#
mit
5,336
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("06....
krasiymihajlov/Soft-Uni-practices
C# Advanced/08. LinQ/LINQ - Lab/06. FindAndSumIntegers/Properties/AssemblyInfo.cs
C#
mit
1,415
using NUnit.Framework; using CurrencyCloud.Entity; using CurrencyCloud.Tests.Mock.Data; using CurrencyCloud.Entity.Pagination; using CurrencyCloud.Tests.Mock.Http; using CurrencyCloud.Environment; using System.Threading.Tasks; namespace CurrencyCloud.Tests { [TestFixture] class VirtualAccountsTest { ...
CurrencyCloud/currencycloud-net
Source/CurrencyCloud.Tests/VirtualAccountsTest.cs
C#
mit
2,033
using System; using System.Collections.Generic; using NUnit.Framework; using SocialToolBox.Core.Database.Index; namespace SocialToolBox.Core.Tests.Database.Index { [TestFixture] public class index_key_comparer { [IndexKey] public class KeyMock { [IndexField(1)] ...
VictorNicollet/SocialToolBox
SocialToolBox.Core.Tests/Database/Index/index_key_comparer.cs
C#
mit
3,776
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MathNet.Numerics; using MathNet.Numerics.LinearAlgebra; namespace SamSeifert.ComputerVision { public static partial class SingleImage { /// <summary> /// Specials Errors: ...
SnowmanTackler/SamSeifert.Utilities
SamSeifert.ComputerVision/SingleImage/KMeans.cs
C#
mit
5,752
using Hangfire; using Hangfire.Mongo; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using MongoDB.Bson; using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Conventions; using MongoDB.Bson.Serialization.IdGenerators; using MongoDB.Bson.Serialization.Options; usi...
sillsdev/web-scriptureforge
src/netcore-api/SIL.XForge.WebApi.Server/DataAccess/DataAccessExtensions.cs
C#
mit
7,515
#pragma checksum "C:\Users\Shubham Singh\Documents\Visual Studio 2013\Projects\PhoneApp1\PhoneApp1\Page1.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "40F23D24908E7D0B183979BB30966C15" //------------------------------------------------------------------------------ // <auto-generated> // This code was generated ...
rohaniitr/helpEx_Windows
PhoneApp1/obj/Debug/Page1.g.i.cs
C#
mit
2,786
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
garethj-msft/msgraph-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/UserRequest.cs
C#
mit
18,848
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xam...
troyman1289/TestsInXamarin
TestsFinal/TestsFinal/TestsFinal.UWP/App.xaml.cs
C#
mit
3,992
using System; using System.ComponentModel.Design; using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.OLE.Interop; using Microsoft.VisualStudio.Shell.Interop; using Microsoft.VisualStudio.Shell; using Microsoft.VsSDK.IntegrationTestLibrary; using Microsoft.VSSDK.Tools.VsIdeTesting; namesp...
DevlinLiles/VSConsole.PowerPack
VSConsole.PowerPack/VSConsole.PowerPack_IntegrationTests/ToolWindowTest.cs
C#
mit
1,691
using System; 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: Ass...
LightClaw/Engine
Source/Core/LightClaw.Engine/Properties/AssemblyInfo.cs
C#
mit
1,538
/* * NotImplementedException.cs - Implementation of the * "System.NotImplementedException" class. * * Copyright (C) 2001, 2003 Southern Storm Software, Pty Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * th...
jjenki11/blaze-chem-rendering
qca_designer/lib/pnetlib-0.8.0/runtime/System/NotImplementedException.cs
C#
mit
1,969
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; namespace Charlotte.Tools { public static class ReflectTools { public class FieldUnit { public FieldInfo Value; public FieldUnit(FieldInfo value) { this.Value = value; } /// <summa...
stackprobe/CSharp
Chocolate/Chocolate/Tools/ReflectTools.cs
C#
mit
8,290
using System; using System.Diagnostics.Contracts; using System.Windows.Forms; using WinFormsOpenFileDialog = System.Windows.Forms.OpenFileDialog; namespace WinFormsMvvm.DialogService.FrameworkDialogs.OpenFile { /// <summary> /// Class wrapping System.Windows.Forms.OpenFileDialog, making it accept a IOpenFileDialog....
austriapro/ebinterface-word-plugin
eRechnungWordPlugIn/WinFormsMvvm/DialogService/FrameworkDialogs/OpenFile/OpenFileDialog.cs
C#
mit
2,744
//----------------------------------------------------------------------------- // // <copyright file="CompressionOption.cs" company="Microsoft"> // Copyright (C) Microsoft Corporation. All rights reserved. // </copyright> // // Description: // CompressionOption enumeration is used as an aggregate mechanism to giv...
mind0n/hive
Cache/Libs/net46/wpf/src/Base/System/IO/Packaging/CompressionOption.cs
C#
mit
1,462
using CacheCowDemo.Common; using System; using System.Collections.Generic; using System.Linq; namespace CacheCowDemo.Api.App { public class Db { private static readonly ICollection<Contact> contacts = new List<Contact>(); public IEnumerable<Contact> GetContacts(Func<IEnumerable<Contact>, IEnu...
benfoster/CacheCowDemo
CacheCowDemo.Api/App/Db.cs
C#
mit
1,134
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MentorGroup { class Program { static void Main(string[] args) { List<Student> students = new List<Student>(); strin...
MinorGlitch/Programming-Fundamentals
Objects and Classes - Exercises/MentorGroup/Program.cs
C#
mit
3,567
using UnityEngine; using System.Collections; /** * class FreeFly: Gives keyboard control to the user to move the main camera around. * Public variables control speed and sensitivity */ [AddComponentMenu("Camera-Control/Mouse Look")] public class FreeFly : MonoBehaviour { /* Public Declarations */ public enum Ro...
craigknott/Unity3D_OpenBadges
Scripts/Movement/FreeFly.cs
C#
mit
2,533
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a Codezu. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----------------------------------...
ezekielthao/mozu-dotnet
Mozu.Api/Urls/Platform/TenantDataUrl.cs
C#
mit
2,863
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Rainbow.Diff; using Rainbow.Filtering; using Rainbow.Model; using Sitecore; using Sitecore.Configuration; using Sitecore.Data; using Sitecore.Data.Items; using Sitecore.Diagnostics; using Sitecore.Pipelines.Save; using Unicorn....
GuitarRich/Unicorn
src/Unicorn/UI/Pipelines/SaveUi/SerializationConflictProcessor.cs
C#
mit
6,041
using UnityEngine; using System.Collections; using System.Collections.Generic; public class Question : MonoBehaviour { [SerializeField] private List<GameObject>questionsMarks = new List<GameObject>( ); [SerializeField] private GameObject gui; [SerializeField] private GameObject wrong; [Ser...
arnaldoccn/diabetes-speed-race
Assets/Scripts/Questions/Question.cs
C#
mit
1,490
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; namespace ASP.NETWebForms.Account { public partial class ManageLogins : System.Web.UI.Page { ...
todor-enikov/TelerikAcademy
ASP .NET Web Forms/1.Introduction to ASP.NET/1.Few Web applications/ASP.NETWebForms/Account/ManageLogins.aspx.cs
C#
mit
2,201
/* * Copyright (c) 2014 Håkan Edling * * See the file LICENSE for copying permission. */ using System; using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Goldfish.Tests { /// <summary> /// Integration tests for the author repository. /// </summary> [Tes...
ravindranathw/Goldfish
Core/Goldfish.Tests/AuthorTests.cs
C#
mit
2,048
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("02...
toteva94/SoftUni
[01]ProgrammingFundamentals/25.StringsAndTextProcessing-MoreExercises/02.Stateless/Properties/AssemblyInfo.cs
C#
mit
1,400
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Collections.Generic; using System.Linq; namespace Azure.Search.Documents.Indexes.Models { /// <summary> Matches single or multi-word synonyms in a tok...
hyonholee/azure-sdk-for-net
sdk/search/Azure.Search.Documents/src/Generated/Models/SynonymTokenFilter.cs
C#
mit
4,785
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Windows.Forms; namespace DiceBot { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Ma...
Seuntjie900/DiceBot
DiceBot/Program.cs
C#
mit
1,288
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using osu.Framework.Graphics; using osu.Framework.Graphics.Transforms; using osu.Game.Modes.Objects.Drawables; using osu.Game.Modes.Osu.Objects.Dra...
NotKyon/lolisu
osu.Game.Modes.Osu/Objects/Drawables/DrawableHitCircle.cs
C#
mit
5,352
End of preview.

YAML Metadata Warning:The task_categories "sequence-modeling" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other

Code Clippy Github Dataset

Dataset Description

The Code Clippy dataset consists of various public codebases from GitHub in 22 programming languages with 23 extensions totaling about 16 TB of data when uncompressed. The dataset was created from the public GitHub dataset on Google BigQuery.

How to use it

This dataset is pretty large please use the streaming parameter from the datasets library as seen below:

from datasets import load_dataset

ds = load_dataset("CodedotAI/code_clippy_github", streaming=True)

Data Structure

Data Instances

{
 'code_text': " a = mc^2",
 'repo_name': 'NotEinstein',
 'file_path': 'root/users/einstein.py',
 'language': 'Python',
 'license': 'isc',
 'size': 2
} 

Data Fields

Field Type Description
code_text string string of the source code contained in the code file
repo_name string name of the GitHub repository
file_path string path of the code file within the repository
language string programming language used in the file inferred by the file extension
license string license of GitHub repository
size int size of source file in bytes

Data Splits

Only a train split is provided in this dataset.

Languages

The dataset contains 22 programming languages with over 23 extensions:

{
    "C": [".c"],
    "C#": [".cs"],
    "C++": [".cpp"],
    "CSS": [".css"],
    "Dart" : [".dart"],
    "GO": [".go"],
    "HTML":[".html"],
    "Java": [".java"],
    "JavaScript": [".js"],
    "Jupyter Notebooks (Python)": [".ipynb"],
    "Kotlin" : [".kt"],
    "Lisp" : [".lisp"],
    "Matlab" : [".m"],
    "PHP": [".php"],
    "Perl": [".pl"],
    "Python": [".py"],
    "R" : [".r"],
    "Ruby": [".rb"],
    "Rust": [".rs"],
    "SQL": [".sql"],
    "Shell": [".sh"],
    "Swift" : [".swift"],
    "TypeScript": [".ts"],
}

Licenses

Each example is also annotated with the license of the associated repository. There are in total 15 licenses:

[
    'mit',
    'apache-2.0',
    'gpl-2.0',
    'gpl-3.0',
    'bsd-3-clause',
    'bsd-2-clause',
    'unlicense',
    'apacheagpl-3.0',
    'lgpl-3.0',
    'cc0-1.0',
    'epl-1.0',
    'lgpl-2.1',
    'mpl-2.0',
    'isc',
    'artistic-2.0'
 ]

Dataset Statistics

The dataset is about ~ 18 TB uncompressed. We are currently working on processing it and applying further filtering.

Dataset Creation

The dataset was created in two steps:

  1. Files with the extensions given in the list above were retrieved from the GitHub dataset on BigQuery using the following query:
SELECT
  f.id, f.repo_name, f.path, content.copies, content.size, content.content, lic.license
FROM
  `bigquery-public-data.github_repos.files` AS f
JOIN

  `bigquery-public-data.github_repos.contents` as content
ON
  f.id = content.id
JOIN
  `bigquery-public-data.github_repos.licenses` AS lic

ON
  f.repo_name = lic.repo_name 


WHERE
    NOT content.binary
    

      
    AND (

        (f.path LIKE '%.py') OR (f.path LIKE '%.java')  OR (f.path LIKE '%.js') 
         OR (f.path LIKE '%.html') OR (f.path LIKE '%.lisp') OR (f.path LIKE '%.sh') 
         OR (f.path LIKE '%.r') OR (f.path LIKE '%.pl') OR (f.path LIKE '%.css')
         OR (f.path LIKE '%.sql') OR (f.path LIKE '%.c') OR (f.path LIKE '%.cpp') 
         OR (f.path LIKE '%.ts') OR (f.path LIKE '%.cs') OR (f.path LIKE '%.go') 
         OR (f.path LIKE '%.rs') OR (f.path LIKE '%.swift') OR (f.path LIKE '%.php') 
         OR (f.path LIKE '%.dart') OR (f.path LIKE '%.kt') OR (f.path LIKE '%.m') 
         OR (f.path LIKE '%.rb') OR (f.path LIKE '%.ipynb')
        
    )
     
    -- make sure we dont go above 1 megabyte  
    AND (content.size BETWEEN 1024 AND 1000000)


  1. Currently, our CodedotAI team is working on adding additional filters and cleaning this dataset.

Personal and Sensitive Information

Since this data was collected from public repositories, there exists potential for personal and sensitive information to be included in the data through developers accidentally or on purpose uploading their secret keys, passwords, API keys, emails, etc.

Considerations for Using the Data

Social Impact of Dataset

The paper "Evaluating Large Language Models Trained on Code" from OpenAI has a good discussion on what the impact of a large language model trained on code could be. Therefore, some parts of their discussion are highlighted here as it pertains to this dataset and models that may be trained from it. As well as some differences in views from the paper, particularly around legal implications.

  1. Over-reliance: A language model trained on large datasets such as this one for the task of autogenerating code may generate plausible solutions that may appear correct, but are not necessarily the correct solution. Not properly evaluating the generated code may cause have negative consequences such as the introduction of bugs, or the introduction of security vulnerabilities. Therefore, it is important that users are aware of the limitations and potential negative consequences of using a language model trained on this dataset.
  2. Economic and labor market impacts: Large language models trained on large code datasets such as this one that are capable of generating high-quality code have the potential to automate part of the software development process. This may negatively impact software developers. However, as discussed in the paper, as shown in the Summary Report of software developers from O*NET OnLine, developers don't just write software.
  3. Security implications: No filtering or checking of vulnerabilities or buggy code was performed. This means that the dataset may contain code that may be malicious or contain vulnerabilities. Therefore, any model trained on this dataset may generate vulnerable, buggy, or malicious code. In safety-critical software, this could lead to software that may work improperly and could result in serious consequences depending on the software. Additionally, a model trained on this dataset may be used to generate malicious code on purpose in order to perform ransomware or other such attacks.
  4. Legal implications: No filtering was performed on licensed code. This means that the dataset may contain restrictive licensed code. As discussed in the paper, public Github repositories may fall under "fair use." However, there have been little to no previous cases of such usages of licensed publicly available code. Therefore, any model trained on this dataset may be required to obey license terms that align with the software it was trained on such as GPL-3.0, which is why we purposefully put this dataset under the GPL-3.0 license. It is unclear the legal ramifications of using a language model trained on this dataset.

v1.0

  • The query was executed on February 1, 2022, 12:15:59 AM EST

Acknowledgements

This project would not have been possible without compute generously provided by Google through the TPU Research Cloud. We would also like to thank Dr. Razvan Bunescu and The College of Computing and Informatics at UNC Charlotte for their generous contributions to this project, specifically in funding the BigQuery and Google Cloud Storage costs. We would also like to thank the codeparrot team at Hugging face for open sourcing their documentation on github-code which we used for the readme in this dataset. For another similar dataset to this please check github-code!

Downloads last month
13,630

Paper for CodedotAI/code_clippy_github