How jithincheriyan/offense-detection-in-se-communities works
This is thesis code for detecting politeness-norm violations in online software-engineering communities and generating reduced-violation alternatives. The apparent user-facing workflow is comment input through the Streamlit app, then analysis and paraphrase generation; the app and main pipeline were not sampled, so their wiring is uncertain. The sampled paraphrasing module shows relevance checking, violation-word masking, and suggestion evaluation, while the separate BERT script trains and tests a classifier. Major components are retained, but edges are limited to documented calls and data operations.
Main entry points: Paraphrase_module.py Paraphrase orchestration · Transformer_BERT.py BERT training and test · Streamlit_App.py Streamlit app · Total_pipeline.py Thesis pipeline
Components 14
User interface
- Streamlit app
Streamlit_App.py - Thesis pipeline
Thesis documents/Total_pipeline.py
Paraphrase workflow
- Paraphrase orchestration
Thesis documents/Paraphrase_module.py - SE relevance check
Thesis documents/Paraphrase_module.py - Violation masking
Thesis documents/Paraphrase_module.py - Suggestion generation
Thesis documents/Paraphrase_module.py - Suggestion evaluation
Thesis documents/Paraphrase_module.py
Model development
- BERT training and test
Transformer_BERT.py - Classifier predictions
Transformer_BERT.py
Research data
- SE thesaurus
Thesis documents/SE_Thesaurus_New_v2.json - Violation patterns
Thesis documents/Regex_Updated.csv - Community annotations
Annotated CSVs
Other components
- Comment author
- Weights & Biases
Connections 12
- Comment author → Streamlit app: submits comment
- Streamlit app → Thesis pipeline: routes workflow
- Thesis pipeline → Paraphrase orchestration: invokes
- Paraphrase orchestration → SE relevance check: checks relevance
Thesis documents/Paraphrase_module.py - SE relevance check → SE thesaurus: reads terms
Thesis documents/Paraphrase_module.py - Paraphrase orchestration → Violation masking: selects words
Thesis documents/Paraphrase_module.py - Violation masking → Violation patterns: filters patterns
Thesis documents/Paraphrase_module.py - Paraphrase orchestration → Suggestion generation: requests suggestions
Thesis documents/Paraphrase_module.py - Paraphrase orchestration → Suggestion evaluation: scores suggestions
Thesis documents/Paraphrase_module.py - BERT training and test → Weights & Biases: configures tracking
Transformer_BERT.py - BERT training and test → Classifier predictions: writes predictions
Transformer_BERT.py - Community annotations → BERT training and test: training data