# Coding Style Guide ## Emoji Usage Policy ### Rule: No Emojis in Backend Code Emojis should ONLY be used for frontend/web display purposes. ### Allowed: - Streamlit UI elements (st.header, st.markdown, st.info, etc.) - HTML content displayed to users - Web page titles and headers ### NOT Allowed: - Python print() statements - Log messages - Error messages in backend - Comments in code - Documentation files (README.md, etc.) - Shell scripts - Command-line output ### Examples: #### Correct (Frontend Display): ```python st.header("Configuration") st.info("Current Task: **Toxicity Detection**") st.success("Loaded from repository") ``` #### Incorrect (Backend Logic): ```python print("Created repository: {repo}") print("Uploaded SAE weights to {repo}") logger.info("Processing complete") ``` ### Rationale: 1. Backend code should be clean and professional 2. Emojis can cause encoding issues in terminals 3. Better compatibility across different systems 4. More suitable for logs and debugging 5. Easier to parse programmatically ### Verification: All non-UI Python files, shell scripts, and documentation files have been cleaned of emojis. Only app.py contains emojis, exclusively for Streamlit web display. --- Last updated: 2026-01-31