Skip to main content
zenodorestricted

The dataset of "GNN-CONTEXT: A GNN-based Code Context Prediction Approach for Software Development Tasks"

<p>This research dataset accompanies our paper "GNN-CONTEXT: A GNN-based Code Context Prediction Approach for Software Development Task".<br>The dataset comprises 3,879 code context models along with their corresponding source code, extracted from three Java open source projects: Mylyn, Platform, and PDE.</p> <p>Each code context model directory contains two essential files:</p> <p>1. code_context_model.xml<br>&nbsp; &nbsp; This XML file encapsulates the code context model's metadata within a &lt;code_context_model&gt; wrapper, including commit ID, start datetime of the first edit event, and end datetime of the last edit event. The file structure is as follows:<br>&nbsp; &nbsp; - &lt;graph&gt; components represent connected components in the code context model.<br>&nbsp; &nbsp; - Each &lt;graph&gt; consists of &lt;vertices&gt; and &lt;edges&gt;.<br>&nbsp; &nbsp; - &lt;vertex&gt; attributes:<br>&nbsp; &nbsp; &nbsp; &nbsp; - id: Unique identifier within the &lt;graph&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; - ref_id: Reference to its source code in my_java_codes<br>&nbsp; &nbsp; &nbsp; &nbsp; - kind: Vertex type (class, function, or variable)<br>&nbsp; &nbsp; &nbsp; &nbsp; - label: Declared name in the source code<br>&nbsp; &nbsp; &nbsp; &nbsp; - stereotype: Vertex stereotype derived from JStereoCode<br>&nbsp; &nbsp; - &lt;edge&gt; attributes:<br>&nbsp; &nbsp; &nbsp; &nbsp; - start: Source vertex ID<br>&nbsp; &nbsp; &nbsp; &nbsp; - end: Destination vertex ID<br>&nbsp; &nbsp; &nbsp; &nbsp; - label: Edge type (declares, calls, inherits, or implements)<br>2. my_java_codes.csv<br>&nbsp; &nbsp; This CSV file contains two columns:<br>&nbsp; &nbsp; - id: Composite of the code context model's directory index and the vertex's ref_id<br>&nbsp; &nbsp; - code: Corresponding source code for the code element</p>

ShareScore

16/100

Overall dataset sharing score

Score breakdown

These five areas show where the dataset supports — or may limit — practical reuse.

Stewardship
4
Harmonization
4
Access
8
Reuse readiness
0
Engagement
0

Dataset details

Repository
zenodo
Published
August 10, 2024
License
cc-by-4.0
DOI
10.5281/zenodo.13293382

Scored with release 0.9.0

ScienceDex for faculty

Your academic CV and NIH biosketch

Make your CV in your school's format and your NIH biosketch from it, then download both as Word files.