Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /usr/lib/python3.9/site-packages/redis/commands/search/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib/python3.9/site-packages/redis/commands/search/__pycache__/suggestion.cpython-39.opt-1.pyc
a

��b��@s,ddlmZGdd�d�ZGdd�d�ZdS)�)�	to_stringc@s"eZdZdZddd�Zdd�ZdS)	�
Suggestionz`
    Represents a single suggestion being sent or returned from the
    autocomplete server
    ��?NcCst|�|_t|�|_||_dS�N)r�string�payload�score)�selfrrr�r
�D/usr/lib/python3.9/site-packages/redis/commands/search/suggestion.py�__init__
s

zSuggestion.__init__cCs|jSr)r)r	r
r
r�__repr__szSuggestion.__repr__)rN)�__name__�
__module__�__qualname__�__doc__rr
r
r
r
rrs
rc@s eZdZdZdd�Zdd�ZdS)�SuggestionParserz�
    Internal class used to parse results from the `SUGGET` command.
    This needs to consume either 1, 2, or 3 values at a time from
    the return value depending on what objects were requested
    cCsb||_||_|r(|r(d|_d|_d|_n0|r:d|_d|_n|rLd|_d|_nd|_d|_||_dS)N�r����)�with_scores�
with_payloads�sugsize�	_scoreidx�_payloadidx�_sugs)r	rr�retr
r
rrszSuggestionParser.__init__ccsntdt|j�|j�D]T}|j|}|jr<t|j||j�nd}|jrV|j||jnd}t	|||�VqdS)N�r)
�range�lenrrr�floatrrrr)r	�i�ssrrr
r
r�__iter__.s

zSuggestionParser.__iter__N)rrrrrr#r
r
r
rrsrN)Z_utilrrrr
r
r
r�<module>s

Yohohohohohooho | Sanrei Aya