HEX
Server: Apache
System: Linux sxb1plzcpnl440011.prod.sxb1.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: xfp2mtarcm67 (7705020)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/orphanedaccountscanner/utils/ranking.py
import os


# whmapi1 list_users --output=json
def process_query(everything) -> int:
    print(everything)
    return 4


def rank(query: str, document: str) -> int:
    print(query, document)
    score = 0

    score += process_query(query)

    if score >= 4:
        score = 4
    relevanceScore = score
    print(score)
    return relevanceScore