https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/boto/mturk/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/boto/mturk/__pycache__/qualification.cpython-310.pyc
o

ckF[��@s�Gdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd	�d	e�ZGd
d�de�ZGdd
�d
e�ZGdd�de�ZGdd�de�Z	Gdd�de�Z
dS)c@s&eZdZddd�Zdd�Zdd�ZdS)	�QualificationsNcCs|durg}||_dS�N)�requirements)�selfr�r�:/usr/lib/python3/dist-packages/boto/mturk/qualification.py�__init__s
zQualifications.__init__cCs|j�|�dSr)r�append)r�reqrrr�addszQualifications.addcCsXi}t|j�dksJ�t|j�D]\}}|��}|D]}|||d|d|f<qq|S)N�
zQualificationRequirement.%s.%s�)�lenr�	enumerate�
get_as_params)r�params�nr	�	reqparams�rprrrr s�zQualifications.get_as_paramsr)�__name__�
__module__�__qualname__rr
rrrrrrs
rc@s"eZdZdZddd�Zdd�ZdS)	�Requirementz0
    Representation of a single requirement
    NFcCs||_||_||_||_dSr��qualification_type_id�
comparator�
integer_value�required_to_preview)rrrrrrrrr/s
zRequirement.__init__cCsl|j|jd�}|jdvrt|jd�D]
\}}||d|<qn|jdvr-|jdur-|j|d<|jr4d|d<|S)	N��QualificationTypeId�
Comparator��In�NotInrzIntegerValue.%d)�Exists�DoesNotExist�IntegerValue�true�RequiredToPreview)rrrrr)rr�irrrrr5s�
�
zRequirement.get_as_params)NF)rrr�__doc__rrrrrrr*s
rc�"eZdZdZd�fdd�	Z�ZS)�&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.
    Fc�tt|�jd|||d�dS)N�00000000000000000000r)�superr+r�rrrr��	__class__rrrH�z/PercentAssignmentsSubmittedRequirement.__init__�F�rrrr)r�
__classcell__rrr0rr+C�r+cr*)�&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.
    Fcr,)N�00000000000000000070r)r.r7rr/r0rrrPr2z/PercentAssignmentsAbandonedRequirement.__init__r3r4rrr0rr7Kr6r7cr*)�%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.
    Fcr,)N�000000000000000000E0r)r.r9rr/r0rrrXr2z.PercentAssignmentsReturnedRequirement.__init__r3r4rrr0rr9Sr6r9cr*)�%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.
    Fcr,)N�000000000000000000L0r)r.r;rr/r0rrr`r2z.PercentAssignmentsApprovedRequirement.__init__r3r4rrr0rr;[r6r;cr*)�%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.
    Fcr,)N�000000000000000000S0r)r.r=rr/r0rrrhr2z.PercentAssignmentsRejectedRequirement.__init__r3r4rrr0rr=cr6r=cr*)�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.

    Fcr,)N�00000000000000000040r)r.r?rr/r0rrrur2z&NumberHitsApprovedRequirement.__init__r3r4rrr0rr?ks	r?cs*eZdZdZd�fdd�	Zdd�Z�ZS)�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.
    Fcs"tt|�jd|d|d�||_dS)N�00000000000000000071r)r.rAr�locale)rrrCrr0rrr}s
zLocaleRequirement.__init__cCs�|j|jd�}|jdvr4t|jd�D] \}}t|t�r,|d|d|<|d|d|<q||d|<qnt|jt�rI|jd|d<|jd|d<n|j|d<|jrUd	|d
<|S)Nrr r�zLocaleValue.%d.CountryzLocaleValue.%d.SubdivisionzLocaleValue.CountryzLocaleValue.Subdivisionr&r')rrrrC�
isinstance�tupler)rrr(rCrrrr�s"�

�
zLocaleRequirement.get_as_paramsr3)rrrr)rrr5rrr0rrAxsrAcr*)�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).
    Fcr,)N�00000000000000000060r)r.rGrr/r0rrr�r2zAdultRequirement.__init__r3r4rrr0rrG�r6rGN)�objectrrr+r7r9r;r=r?rArGrrrr�<module>s


https://t.me/RX1948 - 2025