HEX
Server: Apache
System: Linux pdx1-shared-a1-29 6.18.39-grsec-noble+ #4 SMP Thu Jul 23 07:53:29 UTC 2026 x86_64
User: dh_bj99yp (22285841)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/boto/mturk/__pycache__/qualification.cpython-312.pyc
�

ckF[�����Gd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�d	e�ZGd
�de�ZGd�d
e�ZGd�de�ZGd�de�Z	Gd�de�Z
y)c� �eZdZdd�Zd�Zd�Zy)�QualificationsNc��|�g}||_y�N)�requirements)�selfrs  �:/usr/lib/python3/dist-packages/boto/mturk/qualification.py�__init__zQualifications.__init__s�����L�(���c�:�|jj|�yr)r�append)r�reqs  r�addzQualifications.adds����� � ��%r
c���i}t|j�dksJ�t|j�D]-\}}|j�}|D]}|||d|dz�d|��<��/|S)N�
zQualificationRequirement.��.)�lenr�	enumerate�
get_as_params)r�params�nr
�	reqparams�rps      rrzQualifications.get_as_params s~�����4�$�$�%��+�,�+��� 1� 1�2�	X�F�A�s��)�)�+�I��
X��JS�TV�-��A�a�C�"�E�G�
X�	X��
r
r)�__name__�
__module__�__qualname__r	rr�r
rrrs��)�
&�r
rc��eZdZdZdd�Zd�Zy)�Requirementz0
    Representation of a single requirement
    Nc�<�||_||_||_||_yr��qualification_type_id�
comparator�
integer_value�required_to_preview)rr"r#r$r%s     rr	zRequirement.__init__/s!��%:��"�$���*���#6�� r
c��|j|jd�}|jdvr't|jd�D]
\}}||d|z<�n)|jdvr|j�|j|d<|jrd|d<|S)	N��QualificationTypeId�
Comparator��In�NotInrzIntegerValue.%d)�Exists�DoesNotExist�IntegerValue�true�RequiredToPreview)r"r#rr$r%)rr�ir$s    rrzRequirement.get_as_params5s���#'�#=�#=��/�/�
���?�?�o�-�$-�d�.@�.@�!�$D�
>� ��=�0=��(�1�,�-�
>�
�_�_�$>�
>�4�CU�CU�Ca�%)�%7�%7�F�>�"��#�#�*0�F�&�'��
r
)NF)rrr�__doc__r	rrr
rrr*s���7�r
rc�$��eZdZdZd�fd�	Z�xZS)�&PercentAssignmentsSubmittedRequirementz�
    The percentage of assignments the Worker has submitted, over all assignments the Worker has accepted. The value is an integer between 0 and 100.
    c�4��tt|�d|||��y)N�00000000000000000000r!)�superr5r	�rr#r$r%�	__class__s    �rr	z/PercentAssignmentsSubmittedRequirement.__init__H�/���
�4�d�D�[q�I�Yf�|O�D�	Pr
�F�rrrr3r	�
__classcell__�r:s@rr5r5C�����P�Pr
r5c�$��eZdZdZd�fd�	Z�xZS)�&PercentAssignmentsAbandonedRequirementz�
    The percentage of assignments the Worker has abandoned (allowed the deadline to elapse), over all assignments the Worker has accepted. The value is an integer between 0 and 100.
    c�4��tt|�d|||��y)N�00000000000000000070r!)r8rBr	r9s    �rr	z/PercentAssignmentsAbandonedRequirement.__init__Pr;r
r<r=r?s@rrBrBKr@r
rBc�$��eZdZdZd�fd�	Z�xZS)�%PercentAssignmentsReturnedRequirementz�
    The percentage of assignments the Worker has returned, over all assignments the Worker has accepted. The value is an integer between 0 and 100.
    c�4��tt|�d|||��y)N�000000000000000000E0r!)r8rFr	r9s    �rr	z.PercentAssignmentsReturnedRequirement.__init__X�/���
�3�T�C�Zp�~H�Xe�{N�C�	Or
r<r=r?s@rrFrFS�����O�Or
rFc�$��eZdZdZd�fd�	Z�xZS)�%PercentAssignmentsApprovedRequirementz�
    The percentage of assignments the Worker has submitted that were subsequently approved by the Requester, over all assignments the Worker has submitted. The value is an integer between 0 and 100.
    c�4��tt|�d|||��y)N�000000000000000000L0r!)r8rLr	r9s    �rr	z.PercentAssignmentsApprovedRequirement.__init__`rIr
r<r=r?s@rrLrL[rJr
rLc�$��eZdZdZd�fd�	Z�xZS)�%PercentAssignmentsRejectedRequirementz�
    The percentage of assignments the Worker has submitted that were subsequently rejected by the Requester, over all assignments the Worker has submitted. The value is an integer between 0 and 100.
    c�4��tt|�d|||��y)N�000000000000000000S0r!)r8rPr	r9s    �rr	z.PercentAssignmentsRejectedRequirement.__init__hrIr
r<r=r?s@rrPrPcrJr
rPc�$��eZdZdZd�fd�	Z�xZS)�NumberHitsApprovedRequirementa�
    Specifies the total number of HITs submitted by a Worker that have been approved. The value is an integer greater than or equal to 0.

    If specifying a Country and Subdivision, use a tuple of valid  ISO 3166 country code and ISO 3166-2 subdivision code, e.g. ('US', 'CA') for the US State of California.

    When using the 'In' and 'NotIn', locale should be a list of Countries and/or (Country, Subdivision) tuples.

    c�4��tt|�d|||��y)N�00000000000000000040r!)r8rTr	r9s    �rr	z&NumberHitsApprovedRequirement.__init__us+���
�+�T�;�Rh�u�P]�sF�;�	Gr
r<r=r?s@rrTrTks����G�Gr
rTc�*��eZdZdZd�fd�	Zd�Z�xZS)�LocaleRequirementz�
    A Qualification requirement based on the Worker's location. The Worker's location is specified by the Worker to Mechanical Turk when the Worker creates his account.
    c�B��tt|�d|d|��||_y)N�00000000000000000071r!)r8rXr	�locale)rr#r[r%r:s    �rr	zLocaleRequirement.__init__}s2���
���/�F\�is�DH�^q�/�	r���r
c��|j|jd�}|jdvrNt|jd�D]4\}}t	|t
�r|d|d|z<|d|d|z<�-||d|z<�6nNt	|jt
�r%|jd|d<|jd|d<n|j|d<|jrd	|d
<|S)Nr'r*r�zLocaleValue.%d.CountryzLocaleValue.%d.SubdivisionzLocaleValue.CountryzLocaleValue.Subdivisionr0r1)r"r#rr[�
isinstance�tupler%)rrr2r[s    rrzLocaleRequirement.get_as_params�s���#'�#=�#=��/�/�
���?�?�o�-�&�t�{�{�A�6�
B�	��6��f�e�,�;A�!�9�F�3�a�7�8�?E�a�y�F�7�!�;�<�;A�F�3�a�7�8�
B��$�+�+�u�-�04���A���,�-�48�K�K��N��0�1�04����,�-��#�#�*0�F�&�'��
r
r<)rrrr3r	rr>r?s@rrXrXxs�����r
rXc�$��eZdZdZd�fd�	Z�xZS)�AdultRequirementz�
    Requires workers to acknowledge that they are over 18 and that they agree to work on potentially offensive content. The value type is boolean, 1 (required), 0 (not required, the default).
    c�4��tt|�d|||��y)N�00000000000000000060r!)r8rar	r9s    �rr	zAdultRequirement.__init__�s+���
���.�E[�hr�CP�fy�.�	zr
r<r=r?s@rrara�s����z�zr
raN)�objectrrr5rBrFrLrPrTrXrarr
r�<module>res���,�V��(�&��2P�[�P�P�[�P�O�K�O�O�K�O�O�K�O�G�K�G����>z�{�zr