![]() Server : LiteSpeed System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /opt/cloudlinux/venv/lib64/python3.11/site-packages/prospector/__pycache__/ |
� � h\ � �P � d dl mZ d dlZd dlZdZdd�Zdd�Zd� Z e� � ZdS )� )�defaultdictN)�blend�BLEND_COMBOSc �< �� � �pt �d� t t �� � � � D � � }g }| D ]_}|j |j f}d}t �� � D ]&\ � }||v rd}|� � |� � �'|s|� |� � �`t |� � D ]l\ � }t |� � dk r�|� � �fd��� � |d |vr|� |d � � |dd� D ] } d| _ � �md � |D � � S ) z� Given a list of messages on the same line, blend them together so that we end up with one message per actual problem. Note that we can still return more than one message here if there are two or more different errors for the line. c � � g | ]}g ��S � r )�.0�_s �c/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/prospector/blender.py� <listcomp>zblend_line.<locals>.<listcomp> s � �8�8�8�!�2�8�8�8� FTr c �R �� �� � | j | j f� � S �N)�index�source�code)�msg�blend_combo_idx�blend_comboss ��r �<lambda>zblend_line.<locals>.<lambda>9 s( �� �L��9�?�?���S�X�&�� � r )�key� Nc �4 � g | ]}t |d d� � �|��S )�usedF)�getattr)r �ms r r zblend_line.<locals>.<listcomp>M s) � �@�@�@�!�g�a���&?�&?�@�A�@�@�@r ) r �range�lenr r � enumerate�append�sortr )�messagesr �blend_lists�blended�messager �found�blend_combo� blend_list�now_usedr s ` @r � blend_liner* s� ��� � �/�<�L�8�8�u�S��%6�%6�7�7�8�8�8�K��G� � $� $���~�w�|�,����,5�l�,C�,C� =� =�(�O�[��k�!�!����O�,�3�3�G�<�<�<�� � $� �N�N�7�#�#�#�� (1��'=�'=� !� !�#����z�?�?�a�������� � � � � � � � � �a�=��'�'� �N�N�:�a�=�)�)�)� #�1�2�2�� !� !�H� �H�M�M� !� A�@�w�@�@�@�@r c �2 � |pt }t d� � � }| D ]7}||j j |j j � |� � �8g }|� � � D ],}|� � � D ]}|t ||� � z }��-|S )Nc �* � t t � � S r )r �listr r r r zblend.<locals>.<lambda>T s � �{�4�'8�'8� r )r r �location�path�liner �valuesr* )r"