<commit_before><?xml version="1.0"?>
<typesystem package="QtMobility.Gallery">
    <load-typesystem name="typesystem_core.xml" generate="no"/>
    <load-typesystem name="typesystem_gui.xml" generate="no"/>
    <namespace-type name="QtMobility" generate="no"/>

    <object-type name="QtMobility::QAbstractGallery" />
    <object-type name="QtMobility::QDocumentGallery" />
    <enum-type name="QtMobility::QDocumentGallery::Error" />

    <object-type name="QtMobility::QGalleryAbstractRequest" />
    <enum-type name="QtMobility::QGalleryAbstractRequest::State" />
    <enum-type name="QtMobility::QGalleryAbstractRequest::Status" />
    <enum-type name="QtMobility::QGalleryAbstractRequest::RequestType" />
    <enum-type name="QtMobility::QGalleryAbstractRequest::RequestError" />
    <object-type name="QtMobility::QGalleryAbstractResponse" />

    <value-type name="QtMobility::QGalleryFilter" />
    <enum-type name="QtMobility::QGalleryFilter::Type" />
    <enum-type name="QtMobility::QGalleryFilter::Comparator" />
    <value-type name="QtMobility::QGalleryIntersectionFilter" />
    <value-type name="QtMobility::QGalleryUnionFilter" />
    <value-type name="QtMobility::QGalleryMetaDataFilter" />

    <object-type name="QtMobility::QGalleryItemRequest" />
    <object-type name="QtMobility::QGalleryProperty">
        <modify-function signature="QGalleryProperty(Array)" remove="all"/>
        <!-- TODO <add-function signature="QGalleryProperty(const char*)">
            <inject-code class="target" position="beginning">
                %0 = new %TYPE(%1);
            </inject-code>
        </add-function>-->

        <modify-function signature="operator&lt;(const QVariant&amp;) const" remove="all"/>
        <modify-function signature="operator&lt;=(const QVariant&amp;) const" remove="all"/>
        <modify-function signature="operator==(const QVariant&amp;) const" remove="all"/>
        <modify-function signature="operator&gt;(const QVariant&amp;) const" remove="all"/>
        <modify-function signature="operator&gt;=(const QVariant&amp;) const" remove="all"/>
        <add-function signature="equals(const QVariant&amp;) const" return-type="QtMobility::QGalleryMetaDataFilter">
            <inject-code class="target" position="beginning">
                %PYARG_0 = %CONVERTTOPYTHON[QGalleryMetaDataFilter](*(%CPPSELF) == %1);
            </inject-code>
        </add-function>
        <add-function signature="__str__()" return-type="PyObject*">
            <inject-code class="target" position="beginning">
                %PYARG_0 = PyString_FromString(%CPPSELF.name().toAscii());
            </inject-code>
        </add-function>

        <!-- Private usage but no explicit private declaration in C++ -->
        <modify-field name="m_length" remove="all"/>
        <modify-field name="m_name" remove="all"/>
    </object-type>
    <enum-type name="QtMobility::QGalleryProperty::Attribute" flags="QtMobility::QGalleryProperty::Attributes"/>

    <object-type name="QtMobility::QGalleryQueryModel" />
    <object-type name="QtMobility::QGalleryQueryRequest" />
    <enum-type name="QtMobility::QGalleryQueryRequest::Scope" />
    <value-type name="QtMobility::QGalleryResource" />
    <object-type name="QtMobility::QGalleryResultSet" />

    <object-type name="QtMobility::QGalleryType">
        <modify-function signature="QGalleryType(Array)" remove="all"/>
        <add-function signature="__str__()" return-type="PyObject*"><commit_msg>Removed modification to non-existent QGalleryProperty signature.<commit_after><?xml version="1.0"?>
<typesystem package="QtMobility.Gallery">
    <load-typesystem name="typesystem_core.xml" generate="no"/>
    <load-typesystem name="typesystem_gui.xml" generate="no"/>
    <namespace-type name="QtMobility" generate="no"/>

    <object-type name="QtMobility::QAbstractGallery" />
    <object-type name="QtMobility::QDocumentGallery" />
    <enum-type name="QtMobility::QDocumentGallery::Error" />

    <object-type name="QtMobility::QGalleryAbstractRequest" />
    <enum-type name="QtMobility::QGalleryAbstractRequest::State" />
    <enum-type name="QtMobility::QGalleryAbstractRequest::Status" />
    <enum-type name="QtMobility::QGalleryAbstractRequest::RequestType" />
    <enum-type name="QtMobility::QGalleryAbstractRequest::RequestError" />
    <object-type name="QtMobility::QGalleryAbstractResponse" />

    <value-type name="QtMobility::QGalleryFilter" />
    <enum-type name="QtMobility::QGalleryFilter::Type" />
    <enum-type name="QtMobility::QGalleryFilter::Comparator" />
    <value-type name="QtMobility::QGalleryIntersectionFilter" />
    <value-type name="QtMobility::QGalleryUnionFilter" />
    <value-type name="QtMobility::QGalleryMetaDataFilter" />

    <object-type name="QtMobility::QGalleryItemRequest" />
    <object-type name="QtMobility::QGalleryProperty">
        <!-- TODO <add-function signature="QGalleryProperty(const char*)">
            <inject-code class="target" position="beginning">
                %0 = new %TYPE(%1);
            </inject-code>
        </add-function>-->

        <modify-function signature="operator&lt;(const QVariant&amp;) const" remove="all"/>
        <modify-function signature="operator&lt;=(const QVariant&amp;) const" remove="all"/>
        <modify-function signature="operator==(const QVariant&amp;) const" remove="all"/>
        <modify-function signature="operator&gt;(const QVariant&amp;) const" remove="all"/>
        <modify-function signature="operator&gt;=(const QVariant&amp;) const" remove="all"/>
        <add-function signature="equals(const QVariant&amp;) const" return-type="QtMobility::QGalleryMetaDataFilter">
            <inject-code class="target" position="beginning">
                %PYARG_0 = %CONVERTTOPYTHON[QGalleryMetaDataFilter](*(%CPPSELF) == %1);
            </inject-code>
        </add-function>
        <add-function signature="__str__()" return-type="PyObject*">
            <inject-code class="target" position="beginning">
                %PYARG_0 = PyString_FromString(%CPPSELF.name().toAscii());
            </inject-code>
        </add-function>

        <!-- Private usage but no explicit private declaration in C++ -->
        <modify-field name="m_length" remove="all"/>
        <modify-field name="m_name" remove="all"/>
    </object-type>
    <enum-type name="QtMobility::QGalleryProperty::Attribute" flags="QtMobility::QGalleryProperty::Attributes"/>

    <object-type name="QtMobility::QGalleryQueryModel" />
    <object-type name="QtMobility::QGalleryQueryRequest" />
    <enum-type name="QtMobility::QGalleryQueryRequest::Scope" />
    <value-type name="QtMobility::QGalleryResource" />
    <object-type name="QtMobility::QGalleryResultSet" />

    <object-type name="QtMobility::QGalleryType">
        <add-function signature="__str__()" return-type="PyObject*">
{'fraction_non_alphanumeric': 0.16328318971812472, 'fraction_numerical': 0.002044691105593691, 'mean_word_length': 4.275808936825886, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 2, '>': 109, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '238917', 'n_tokens_mistral': 2128, 'n_tokens_neox': 2108, 'n_words': 292}