<commit_before><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="text" encoding="utf-8"/>


    <xsl:template match="/">&lt;?php

        <xsl:if test="/entity/manager/@namespace != ''">
            namespace <xsl:value-of select="/entity/manager/@namespace"/>;
        </xsl:if>

        use siestaphp\driver\ConnectionFactory;
        use siestaphp\driver\ResultSet;
        use siestaphp\util\Util;

        <xsl:for-each select="/entity/referenceUseList/referenceUse">
            use <xsl:value-of select="@use"/>;
        </xsl:for-each>

        /**
         * Class <xsl:value-of select="/entity/manager/@name"/> EntityManager for <xsl:value-of select="/entity/@name"/>
         * @package <xsl:value-of select="/entity/manager/@namespace"/>
         */
        class <xsl:value-of select="/entity/manager/@name"/> {

            <xsl:call-template name="getInstance"/>

            <xsl:call-template name="newInstance"/>

            <xsl:call-template name="getEntityByPrimaryKey"/>

            <xsl:call-template name="referenceFinder"/>

            <xsl:call-template name="nmMappingFinder"/>

            <xsl:call-template name="referenceDeleter"/>

            <xsl:call-template name="deleteByPrimaryKey"/>

            <xsl:call-template name="customStoredProcedures"/><commit_msg>fix service self reference<commit_after><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="text" encoding="utf-8"/>


    <xsl:template match="/">&lt;?php

        <xsl:if test="/entity/manager/@namespace != ''">
            namespace <xsl:value-of select="/entity/manager/@namespace"/>;
        </xsl:if>

        use siestaphp\driver\ConnectionFactory;
        use siestaphp\driver\ResultSet;
        use siestaphp\util\Util;

        <xsl:for-each select="/entity/referenceUseList/referenceUse">
            <xsl:if test="concat(/entity/manager/@namespace, '\', /entity/manager/@name) != @use">
            use <xsl:value-of select="@use"/>;
            </xsl:if>
        </xsl:for-each>

        /**
         * Class <xsl:value-of select="/entity/manager/@name"/> EntityManager for <xsl:value-of select="/entity/@name"/>
         * @package <xsl:value-of select="/entity/manager/@namespace"/>
         */
        class <xsl:value-of select="/entity/manager/@name"/> {

            <xsl:call-template name="getInstance"/>

            <xsl:call-template name="newInstance"/>

            <xsl:call-template name="getEntityByPrimaryKey"/>

            <xsl:call-template name="referenceFinder"/>

            <xsl:call-template name="nmMappingFinder"/>

            <xsl:call-template name="referenceDeleter"/>

            <xsl:call-template name="deleteByPrimaryKey"/>

            <xsl:call-template name="customStoredProcedures"/>
{'fraction_non_alphanumeric': 0.170182841068917, 'fraction_numerical': 0.005625879043600563, 'mean_word_length': 2.605830164765526, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '3420374', 'n_tokens_mistral': 892, 'n_tokens_neox': 799, 'n_words': 117}