403Webshell
Server IP : 157.230.181.24  /  Your IP : 216.73.217.11
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux conductive 6.8.0-117-generic #117-Ubuntu SMP PREEMPT_DYNAMIC Tue May 5 19:26:24 UTC 2026 x86_64
User :  ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /opt/aim-bots/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/aim-bots/__pycache__/conversation_context.cpython-312.pyc
�

�{Zj����dZddlmZddlZejdej
�Zejdej
�Zd
d�Zd
d�Z	dd�Z
dd	�Zy)
z<Detect conversation boundaries so AIM threads stay isolated.�)�annotationsNz[\b(bye|later|gtg|g2g|gotta go|see ya|cya|ttyl|goodnight|g'?night|night night|signing off)\bzL^(hey|hi|hello|sup|yo|heyy+|wassup|what'?s up|whats up|hiya|mornin|evenin)\bc�Z�ttj|j���S)N)�bool�
GOODBYE_RE�search�strip)�texts �%/opt/aim-bots/conversation_context.py�looks_like_goodbyers���
�!�!�$�*�*�,�/�0�0�c��|j�}|syttj|��xrt	|j��dkS)NF�)rr�GREET_RE�match�len�split)r	�ts  r
�looks_like_greetingrs;���
�
��A�������q�!�"�:�s�1�7�7�9�~��':�:rc��t|�D]I}|jd�dk(rt|jdd��cS|jd�dk(s�Iyy)N�role�	assistant�content��userF)�reversed�getr)�history�msgs  r
�assistant_said_goodbyersW���� ����7�7�6�?�k�)�%�c�g�g�i��&<�=�=��7�7�6�?�f�$����
rc�>�tdt|dz��}d|�d�S)N��<u)[New AIM conversation — you were away ~zV min. This is a fresh window. Don't continue old threads unless Caleb brings them up.])�max�int)�gap_sec�minss  r
�fresh_conversation_prefixr'%s/���q�#�g��l�#�$�D�
3�D�6�:[�	\�r)r	�str�returnr)rz
list[dict]r)r)r%�floatr)r()�__doc__�
__future__r�re�compile�Irrrrrr'�rr
�<module>r1sX��B�"�	�
�R�Z�Z�b��D�D��
��2�:�:�S��D�D���1�;��r

Youez - 2016 - github.com/yon3zu
LinuXploit