| from __future__ import annotations | |
| from typing import Any, Dict, List | |
| from shield.models.evidence import Evidence | |
| def analyze_identity(duplicate: Dict[str, Any]) -> List[Evidence]: | |
| duplicate_score = int(duplicate.get("duplicate_score", 0)) | |
| if duplicate_score < 40: | |
| return [] | |
| return [Evidence( | |
| source="identity_agent", | |
| category="duplicate_user", | |
| risk_score=duplicate_score, | |
| weight=0.82, | |
| confidence=float(duplicate.get("confidence", 0.75)), | |
| explanation="Duplicate-user analysis indicates possible ban evasion, trial farming, or multi-accounting", | |
| metadata={"linked_account_count": len(duplicate.get("linked_accounts", []))}, | |
| )] | |
Xet Storage Details
- Size:
- 710 Bytes
- Xet hash:
- 5352a9e24f7d5ad7b6ac056cbbc8d2130ddabcb416a04bbc034a5792be2a76e5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.