Skip to main content

MineCPP

MineCPP also known as Minecraft++ is an extension of Minecraft

Introduction

MineCPP - A tool to mine a GitHub repository and obtain a dataset containing a list of bug-fix pairs and related information. The tool, with the argument -U [GitHub URL], mines the repository and provides the output project_name.csv. The schema of project_name.csv contains 17 columns and each row in it represents a potential bug-fix pair.

Getting Started

MineCPP is a python based tool. Make sure python is installed before following the Installation guide.

Installation

MineCPP can be installed with a simple pip command.

# Installation command
pip install minecpp

All the dependencies are taken care by the installation.

Usage

MineCPP comes with three optional arguments:

optional arguments:
  -h, --help  show this help message and exit  
  --version   show version number and exit  
  -u U        Provide the GitHub repo link to anlyse the repository

A GitHub URL of the repository is enough to perform analysis on the repo. Command to run it on repository is:

minecpp -u https://github.com/SET-IITGN/Minecraft

Tool's Output

The output of the tool is a project_name.csv file. The schema of the file is:

  • 'Before Bug fix': Represents the code snippet containing a bug.
  • 'After Bug fix': Represents the code snippet after the bug is fixed.
  • 'Location': Represents the line numbers. The 'after' field represents the line number where the bug is fixed, and 'before' represents the line number where the bug was found.
  • 'Bug type': Represents the type of bug obtained from LLM using the git diff between the fixed commit and the buggy commit.
  • 'Commit Message': Represents the author's description of the commit.
  • 'File Path': Represents the path of the file in which the change is present or the bug is fixed.
  • 'Test File': Denotes whether the test file is present for the bug. Here, 1 represents that the test file is present, and 0 represents that the test file is absent.
  • 'Coding Effort': Represents the effort an author makes before a bug occurs (obtained from the AST of the source code).
  • 'Constructs': Represents the type of constructs in which the bug occurred.
  • 'Lizard Features Buggy': Denotes the cyclomatic complexity of the buggy file.
  • 'Lizard Features Fixed': Denotes the cyclomatic complexity of the bug-fix file.
  • 'BLEU', 'crystalBLEU_score', 'bert_score': Represent three different algorithms that estimate the similarity between buggy and fixed code. The similarity score lies in the range 0 to 1, where 1 indicates similarity, and 0 indicates dissimilarity.

Tool's GUI

The tool also provides a GUI to explore and analyse the dataset. It provides two features

  • Dataset Visualization: This feature is used to view the dataset and it is interactive.
  • Quantitative Analysis: This feature is used to show the quantative analysis of Coding Effort vs Bug-Fix pairs and Similarity Score vs Bug-Fix pairs.

Configuration

Python version above 3.8 and below 3.11
Needs C++ 14

Contributing

Conrtibutions are accepted. The contributions will be accepted only if they are suitable for the tool.

License

Apache License

Metadata

Release files for Minecpp 0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Minecpp 0.6
File Size Uploaded Provenance Actions
Minecpp-0.6.tar.gz 822.7 kB Without provenance Details for Minecpp-0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Minecpp 0.6
File Interpreter ABI Platform Actions
Minecpp-0.6-py3-none-any.whl Python 3 none any Details for Minecpp-0.6-py3-none-any.whl

Total release size: 1.3 MB

Release files / Minecpp-0.6.tar.gz

Download URL Minecpp-0.6.tar.gz
Size 822.7 kB
Tags Source
SHA-256 checksum
How to use checksums
62e17c99194844ee23a8f5a5f75c1920e024462860b375d2771c6bf994f1f614
BLAKE2b-256 checksum
How to use checksums
65b385e1425c55c573b64d5fbf75a561196e51a40dc8f7eb04841db46090c3e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.5

Release files / Minecpp-0.6-py3-none-any.whl

Download URL Minecpp-0.6-py3-none-any.whl
Size 437.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1dc425a3f9aef780556dc6f5e1d8fc85d8b85db835ae04cfbe54f0c10de5316
BLAKE2b-256 checksum
How to use checksums
2e88a001f5606a35e138d9315e90b24638a760c0158a29901da369446c756825
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.5

Security for Minecpp 0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page