<commit_before><typesystem package="com.trolltech.qt.network" default-superclass="com.trolltech.qt.QtJambiObject">
  <inject-code>
    com.trolltech.qt.Utilities.loadQtLibrary("QtNetwork");
  </inject-code>
  
  <namespace-type name="QSsl">
    <include file-name="qssl.h" location="global" />
  </namespace-type>
  
  <enum-type name="QAbstractSocket::NetworkLayerProtocol" />
  <enum-type name="QAbstractSocket::SocketError" />
  <enum-type name="QAbstractSocket::SocketState" />
  <enum-type name="QAbstractSocket::SocketType" />
  <enum-type name="QFtp::Command" />
  <enum-type name="QFtp::Error" />
  <enum-type name="QFtp::State" />
  <enum-type name="QFtp::TransferMode" />
  <enum-type name="QFtp::TransferType" />
  <enum-type name="QHostAddress::SpecialAddress" />
  <enum-type name="QHttp::Error" />
  <enum-type name="QHttp::State" />
  <enum-type name="QHttp::ConnectionMode" />
  <enum-type name="QNetworkInterface::InterfaceFlag" flags="QNetworkInterface::InterfaceFlags" />
  <enum-type name="QNetworkProxy::ProxyType" />
  <enum-type name="QUdpSocket::BindFlag" flags="QUdpSocket::BindMode" />
  <enum-type name="QUrlInfo::PermissionSpec" />
  <enum-type name="QHostInfo::HostInfoError" />    
  <enum-type name="QSsl::KeyType" />
  <enum-type name="QSsl::EncodingFormat" />
  <enum-type name="QSsl::Algorithm"/>
  <enum-type name="QSsl::AlternateNameEntry"/>
      
  <template name="network.read_char*_long_long">
        public final int read(byte data[]) {
            if (data.length == 0) return 0;
            
            com.trolltech.qt.QNativePointer np = new com.trolltech.qt.QNativePointer(com.trolltech.qt.QNativePointer.Type.Byte, data.length);
            int len = (int) read(np, data.length);
            for (int i=0; i&lt;len; ++i) data[i] = np.byteAt(i);
            
            return len;
        }      
  </template>
   
  <object-type name="QAbstractSocket">
    <modify-function signature="proxyAuthenticationRequired(QNetworkProxy,QAuthenticator*)">
        <access modifier="private" />
        <rename to="proxyAuthenticationRequiredPrivate" />
    </modify-function>  
    <inject-code>
        public Signal2&lt;QNetworkProxy, QAuthenticator> proxyAuthenticationRequired = new Signal2&lt;QNetworkProxy, QAuthenticator>();
        private boolean inEmission = false;
        
        @SuppressWarnings("unused")
        private void emitProxyAuthenticationRequiredPrivate(QNetworkProxy proxy, QAuthenticator authenticator) 
        {
            if (!inEmission) {           
                inEmission = true;
                proxyAuthenticationRequiredPrivate.emit(proxy, authenticator.nativePointer());
                inEmission = false;
            }
        }
        
        @SuppressWarnings("unused")
        private void emitProxyAuthenticationRequired(QNetworkProxy proxy, QNativePointer authenticator) 
        {
            if (!inEmission) {
                inEmission = true;
                proxyAuthenticationRequired.emit(proxy, QAuthenticator.fromNativePointer(authenticator));
                inEmission = false;
            }
        }
    </inject-code>
    <modify-function signature="QAbstractSocket(QAbstractSocket::SocketType, QObject *)">
        <inject-code class="java" position="end">
            proxyAuthenticationRequired.connect(this, "emitProxyAuthenticationRequiredPrivate(QNetworkProxy, QAuthenticator)", com.trolltech.qt.core.Qt.ConnectionType.DirectConnection);
            proxyAuthenticationRequiredPrivate.connect(this, "emitProxyAuthenticationRequired(QNetworkProxy,QNativePointer)", com.trolltech.qt.core.Qt.ConnectionType.DirectConnection);
        </inject-code>
    </modify-function>
  </object-type>
  <object-type name="QFtp">
    <modify-function signature="read(char*,long long)">
        <access modifier="private" />
    </modify-function>
    <inject-code>
        <insert-template name="network.read_char*_long_long" />
    </inject-code>
  </object-type>
  <object-type name="QHttp">
    <modify-function signature="read(char*,long long)">
        <access modifier="private" />
    </modify-function>  
    <inject-code>
        <insert-template name="network.read_char*_long_long" />
    </inject-code>  
    <modify-function signature="setSocket(QTcpSocket*)">
        <modify-argument index="1">
            <reference-count action="set" variable-name="__rcSocket" />
        </modify-argument>
    </modify-function>
  </object-type>
  <object-type name="QTcpServer"><commit_msg>(split) Fix native pointer API in two QHttp signals(proxyAuthenticationRequired and authenticationRequired)<commit_after><typesystem package="com.trolltech.qt.network" default-superclass="com.trolltech.qt.QtJambiObject">
  <inject-code>
    com.trolltech.qt.Utilities.loadQtLibrary("QtNetwork");
  </inject-code>
  
  <namespace-type name="QSsl">
    <include file-name="qssl.h" location="global" />
  </namespace-type>
  
  <enum-type name="QAbstractSocket::NetworkLayerProtocol" />
  <enum-type name="QAbstractSocket::SocketError" />
  <enum-type name="QAbstractSocket::SocketState" />
  <enum-type name="QAbstractSocket::SocketType" />
  <enum-type name="QFtp::Command" />
  <enum-type name="QFtp::Error" />
  <enum-type name="QFtp::State" />
  <enum-type name="QFtp::TransferMode" />
  <enum-type name="QFtp::TransferType" />
  <enum-type name="QHostAddress::SpecialAddress" />
  <enum-type name="QHttp::Error" />
  <enum-type name="QHttp::State" />
  <enum-type name="QHttp::ConnectionMode" />
  <enum-type name="QNetworkInterface::InterfaceFlag" flags="QNetworkInterface::InterfaceFlags" />
  <enum-type name="QNetworkProxy::ProxyType" />
  <enum-type name="QUdpSocket::BindFlag" flags="QUdpSocket::BindMode" />
  <enum-type name="QUrlInfo::PermissionSpec" />
  <enum-type name="QHostInfo::HostInfoError" />    
  <enum-type name="QSsl::KeyType" />
  <enum-type name="QSsl::EncodingFormat" />
  <enum-type name="QSsl::Algorithm"/>
  <enum-type name="QSsl::AlternateNameEntry"/>
      
  <template name="network.read_char*_long_long">
        public final int read(byte data[]) {
            if (data.length == 0) return 0;
            
            com.trolltech.qt.QNativePointer np = new com.trolltech.qt.QNativePointer(com.trolltech.qt.QNativePointer.Type.Byte, data.length);
            int len = (int) read(np, data.length);
            for (int i=0; i&lt;len; ++i) data[i] = np.byteAt(i);
            
            return len;
        }      
  </template>
   
  <object-type name="QAbstractSocket">
    <modify-function signature="proxyAuthenticationRequired(QNetworkProxy,QAuthenticator*)">
        <access modifier="private" />
        <rename to="proxyAuthenticationRequiredPrivate" />
    </modify-function>  
    <inject-code>
        public Signal2&lt;QNetworkProxy, QAuthenticator> proxyAuthenticationRequired = new Signal2&lt;QNetworkProxy, QAuthenticator>();
        private boolean inEmission = false;
        
        @SuppressWarnings("unused")
        private void emitProxyAuthenticationRequiredPrivate(QNetworkProxy proxy, QAuthenticator authenticator) 
        {
            if (!inEmission) {           
                inEmission = true;
                proxyAuthenticationRequiredPrivate.emit(proxy, authenticator.nativePointer());
                inEmission = false;
            }
        }
        
        @SuppressWarnings("unused")
        private void emitProxyAuthenticationRequired(QNetworkProxy proxy, QNativePointer authenticator) 
        {
            if (!inEmission) {
                inEmission = true;
                proxyAuthenticationRequired.emit(proxy, QAuthenticator.fromNativePointer(authenticator));
                inEmission = false;
            }
        }
    </inject-code>
    <modify-function signature="QAbstractSocket(QAbstractSocket::SocketType, QObject *)">
        <inject-code class="java" position="end">
            proxyAuthenticationRequired.connect(this, "emitProxyAuthenticationRequiredPrivate(QNetworkProxy, QAuthenticator)", com.trolltech.qt.core.Qt.ConnectionType.DirectConnection);
            proxyAuthenticationRequiredPrivate.connect(this, "emitProxyAuthenticationRequired(QNetworkProxy,QNativePointer)", com.trolltech.qt.core.Qt.ConnectionType.DirectConnection);
        </inject-code>
    </modify-function>
  </object-type>
  <object-type name="QFtp">
    <modify-function signature="read(char*,long long)">
        <access modifier="private" />
    </modify-function>
    <inject-code>
        <insert-template name="network.read_char*_long_long" />
    </inject-code>
  </object-type>
  <object-type name="QHttp">
    <modify-function signature="proxyAuthenticationRequired(QNetworkProxy,QAuthenticator*)">
        <access modifier="private" />
        <rename to="proxyAuthenticationRequiredPrivate" />
    </modify-function>  
    <inject-code>
        public Signal2&lt;QNetworkProxy, QAuthenticator> proxyAuthenticationRequired = new Signal2&lt;QNetworkProxy, QAuthenticator>();        
        private boolean inEmission = false;
        
        @SuppressWarnings("unused")
        private void emitProxyAuthenticationRequiredPrivate(QNetworkProxy proxy, QAuthenticator authenticator) 
        {
            if (!inEmission) {           
                inEmission = true;
                proxyAuthenticationRequiredPrivate.emit(proxy, authenticator.nativePointer());
                inEmission = false;
            }
        }
        
        @SuppressWarnings("unused")
        private void emitProxyAuthenticationRequired(QNetworkProxy proxy, QNativePointer authenticator) 
        {
            if (!inEmission) {
                inEmission = true;
                proxyAuthenticationRequired.emit(proxy, QAuthenticator.fromNativePointer(authenticator));
                inEmission = false;
            }
        }
    </inject-code>
    <modify-function signature="authenticationRequired(QString,unsigned short,QAuthenticator*)">
        <access modifier="private" />
        <rename to="authenticationRequiredPrivate" />
    </modify-function>
    <inject-code>
        public Signal3&lt;String, Character, QAuthenticator> authenticationRequired = new Signal3&lt;String, Character, QAuthenticator>();
        private boolean inEmissionAuthenticationRequired = false;
        
        @SuppressWarnings("unused")
        private void emitAuthenticationRequiredPrivate(String hostName, char port, QAuthenticator authenticator) {
            if (!inEmissionAuthenticationRequired) {
                inEmissionAuthenticationRequired = true;
                authenticationRequiredPrivate.emit(hostName, port, authenticator.nativePointer());
                inEmissionAuthenticationRequired = false;
            }                        
        }
        
        @SuppressWarnings("unused")
        private void emitAuthenticationRequired(String hostName, char port, QNativePointer authenticator) {
            if (!inEmissionAuthenticationRequired) {
                inEmissionAuthenticationRequired = true;
                authenticationRequired.emit(hostName, port, QAuthenticator.fromNativePointer(authenticator));
                inEmissionAuthenticationRequired = false;
            }
        }
    </inject-code>        
    <template name="QHttp.constructor.injection">
        proxyAuthenticationRequired.connect(this, "emitProxyAuthenticationRequiredPrivate(QNetworkProxy, QAuthenticator)", com.trolltech.qt.core.Qt.ConnectionType.DirectConnection);
        proxyAuthenticationRequiredPrivate.connect(this, "emitProxyAuthenticationRequired(QNetworkProxy,QNativePointer)", com.trolltech.qt.core.Qt.ConnectionType.DirectConnection);
        authenticationRequired.connect(this, "emitAuthenticationRequiredPrivate(String, char, QAuthenticator)", com.trolltech.qt.core.Qt.ConnectionType.DirectConnection);
        authenticationRequiredPrivate.connect(this, "emitAuthenticationRequired(String, char, QNativePointer)", com.trolltech.qt.core.Qt.ConnectionType.DirectConnection);
    </template>        
    <modify-function signature="QHttp(QObject *)">
        <inject-code class="java" position="end">
            <insert-template name="QHttp.constructor.injection" />
        </inject-code>
    </modify-function>  
    <modify-function signature="QHttp(const QString &amp;, unsigned short, QObject *)">
        <inject-code class="java" position="end">
            <insert-template name="QHttp.constructor.injection" />
        </inject-code>
    </modify-function>
    <modify-function signature="QHttp(const QString &amp;, QHttp::ConnectionMode, unsigned short, QObject *)">
        <inject-code class="java" position="end">
            <insert-template name="QHttp.constructor.injection" />
        </inject-code>
    </modify-function>        
    <modify-function signature="read(char*,long long)">
        <access modifier="private" />
    </modify-function>  
    <inject-code>
        <insert-template name="network.read_char*_long_long" />
    </inject-code>  
    <modify-function signature="setSocket(QTcpSocket*)">
        <modify-argument index="1">
            <reference-count action="set" variable-name="__rcSocket" />
        </modify-argument>
    </modify-function>
  </object-type>
  <object-type name="QTcpServer">
{'fraction_non_alphanumeric': 0.12661576838763322, 'fraction_numerical': 0.0012094640562400787, 'mean_word_length': 3.213375796178344, 'pattern_counts': {'":': 0, '<': 160, '<?xml version=': 0, '>': 168, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '91185', 'n_tokens_mistral': 3721, 'n_tokens_neox': 3672, 'n_words': 566}