{% extends "admin/base.html" %} {% block admin_content %}
User Details
Back to Users
User Information
Username:
{{ user.username }}
Hugging Face ID:
{{ user.hf_id }}
Join Date:
{{ user.join_date.strftime('%Y-%m-%d %H:%M:%S') if user.join_date else 'N/A' }}
HF Account Created:
{{ user.hf_account_created.strftime('%Y-%m-%d %H:%M:%S') if user.hf_account_created else 'N/A' }}
Total Votes
{{ total_votes }}
TTS Votes
{{ tts_votes }}
Conversational Votes
{{ conversational_votes }}
Security Score
{% if security_score < 20 %} {{ security_score }}/100 {% elif security_score < 40 %} {{ security_score }}/100 {% elif security_score < 70 %} {{ security_score }}/100 {% else %} {{ security_score }}/100 {% endif %}
Security Analysis
{% if security_factors.account_age_days is not none %}
Account Age:
{{ security_factors.account_age_days }} days
{% endif %} {% if security_factors.hf_account_age_days is not none %}
HF Account Age:
{{ security_factors.hf_account_age_days }} days
{% endif %}
Recent Vote Count (24h):
{{ security_factors.recent_vote_count or 0 }}
Total Votes:
{{ security_factors.total_votes or 0 }}
{% if security_factors.avg_vote_interval %}
Avg Vote Interval:
{{ "%.1f"|format(security_factors.avg_vote_interval) }}s
{% endif %}
Suspicious Voting:
{% if security_factors.suspicious_voting %} Yes {% if security_factors.suspicious_reason %}
{{ security_factors.suspicious_reason }}
{% endif %} {% else %} No {% endif %}
Rapid Voting:
{% if security_factors.rapid_voting %} Yes {% else %} No {% endif %}
{% if security_factors.max_bias_ratio is defined %}
Max Model Bias:
{{ "%.1f"|format(security_factors.max_bias_ratio * 100) }}% {% if security_factors.bias_penalty %}
{{ security_factors.bias_penalty }}
{% endif %}
{% endif %}
Timeout Status
Checking timeout status...
{% if recent_votes %}
Recent Votes
{% for vote in recent_votes %} {% endfor %}
Date Type Chosen Model Rejected Model Text
{{ vote.vote_date.strftime('%Y-%m-%d %H:%M') }} {{ vote.model_type }} {{ vote.chosen.name }} {{ vote.rejected.name }}
{{ vote.text }}
{% endif %} {% if model_bias_analysis %}
Model Bias Analysis
Shows how often each model was chosen vs how often it appeared in comparisons
{% for model_stats in model_bias_analysis %} {% endfor %}
Model Chosen Appeared Bias Ratio Bias Level
{{ model_stats.name }} {{ model_stats.chosen }} {{ model_stats.appeared }} {{ "%.1f"|format(model_stats.bias_ratio * 100) }}% {% if model_stats.appeared < 5 %} Too Few Votes {% elif model_stats.bias_ratio >= 0.9 and model_stats.appeared >= 10 %} Extreme Bias {% elif model_stats.bias_ratio >= 0.8 and model_stats.appeared >= 8 %} High Bias {% elif model_stats.bias_ratio >= 0.7 and model_stats.appeared >= 5 %} Moderate Bias {% elif model_stats.bias_ratio >= 0.6 and model_stats.appeared >= 5 %} Low Bias {% else %} Normal Pattern {% endif %}
{% endif %} {% endblock %}