IBM/Project_CodeNet

This repository is to support contributions for tools for the Project CodeNet dataset hosted in DAX

What it solves

Project CodeNet provides a massive, high-quality dataset designed to advance "AI for Code" research. It addresses the need for large-scale, diverse data to train and benchmark AI models capable of tasks like code completion, translation, search, and automated debugging, similar to how ImageNet accelerated computer vision.

How it works

The dataset consists of approximately 14 million code submissions across 55 programming languages, mapped to 4,000 distinct coding problems. It includes rich metadata for each submission—such as CPU runtime, memory usage, and acceptance status—and provides tools to filter, process, and analyze the code. The data is organized into a structured directory system, separating raw source files from metadata and problem descriptions to facilitate easy programmatic access.

Who it’s for

This project is intended for AI researchers and developers working on code-related machine learning models. It is particularly useful for those building systems for code classification, similarity detection, automated code correction, or source-to-source translation.

Highlights

  • Contains ~14 million code samples spanning over 50 programming languages.
  • Includes extensive metadata like execution time, memory footprint, and success status for each submission.
  • Provides curated benchmark datasets for C++, Python, and Java to support standardized performance evaluation.
  • Includes tools for pre-processing code into token sequences, simplified parse trees, and analysis graphs.
  • Identifies and flags near-duplicate code and identical problem clusters to prevent skewed performance metrics.

Related

  • Project
  • Project
  • Project
  • Project