A high-performance programming language classification model developed for the Nexar Quantum Code Analysis Engine.
The model predicts the programming language of a source code snippet using a hybrid ensemble architecture combining a fine-tuned CodeBERT transformer with classical machine learning models.
Model Overview
The classifier combines multiple models to improve prediction accuracy:
CodeBERT Transformer
XGBoost
Random Forest
Gradient Boosting
Weighted Ensemble
The ensemble leverages transformer-based semantic understanding together with statistical TF-IDF features for robust language identification.
This repository contains several serialized Scikit-learn models (.pkl files).
These files were generated using joblib and contain standard Scikit-learn model objects only.
Python pickle files are inherently executable during deserialization, therefore Hugging Face's automated malware scanner may display heuristic warnings. Users should only load pickle files from trusted sources.
Citation
If you use this model in your research or project, please cite:
Nexar Quantum Language Classifier
Nexar Quantum Code Analysis Engine
2026
License
This project is released under the MIT License.
Author
Yashodha Lasith Jayasinghe
Software Engineer | AI & Machine Learning Developer