Text Classification
Transformers
PyTorch
JAX
roberta
code_x_glue_cc_defect_detection
code
security
vulnerability-detection
codebert
apache-2.0
Instructions to use mangsense/codebert_java with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mangsense/codebert_java with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mangsense/codebert_java")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mangsense/codebert_java") model = AutoModelForSequenceClassification.from_pretrained("mangsense/codebert_java") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,23 +1,18 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
license: apache-2.0
|
| 5 |
tags:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
- code
|
|
|
|
| 7 |
- security
|
| 8 |
- vulnerability-detection
|
| 9 |
- codebert
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
pipeline_tag: text-classification
|
| 13 |
-
widget:
|
| 14 |
-
- text: |
|
| 15 |
-
import java.sql.*;
|
| 16 |
-
public class Example {
|
| 17 |
-
public void query(String input) {
|
| 18 |
-
String sql = "SELECT * FROM users WHERE name = '" + input + "'";
|
| 19 |
-
}
|
| 20 |
-
}
|
| 21 |
---
|
| 22 |
|
| 23 |
# CodeBERT fine-tuned for Java Vulnerability Detection
|
|
|
|
| 1 |
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
pipeline_tag: text-classification
|
|
|
|
| 4 |
tags:
|
| 5 |
+
- text-classification
|
| 6 |
+
- pytorch
|
| 7 |
+
- jax
|
| 8 |
+
- code_x_glue_cc_defect_detection
|
| 9 |
- code
|
| 10 |
+
- roberta
|
| 11 |
- security
|
| 12 |
- vulnerability-detection
|
| 13 |
- codebert
|
| 14 |
+
- apache-2.0
|
| 15 |
+
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
---
|
| 17 |
|
| 18 |
# CodeBERT fine-tuned for Java Vulnerability Detection
|