<commit_before>/*
 * $Id$
 *
 * InetAddress.c - An IPv6 capable version of the InetAddress class.
 *                 This is the native implementation.
 *
 * Copyright (C) 1999 <NAME>.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * Change Log:
 *
 * $Log$
 * Revision 1.6  1999/10/27 14:28:49  mpf
 * - Cleaned up unused and unititialised variables.
 *
 * Revision 1.5  1999/10/26 18:28:23  mpf
 * - Removed some of the more verbose debugging messages.
 *
 * Revision 1.4  1999/10/26 17:16:57  mpf
 * - Fixed getLoopBackAddress().
 * - Added getAnyLocalAddress() native function implementation.
 * - General clean up of code.
 *
 * Revision 1.3  1999/10/20 22:55:53  mpf
 * - Cleaned up #includes and moved them all to net6.h.
 *
 * Revision 1.2  1999/10/20 07:39:12  mpf
 * - Added CVS Id and Log tags.
 * - Added LGPL license header.
 * - Moved some definitions to net6.h.
 *
 *
 */

#include "net6.h"
#include "java_net_InetAddress.h"


/*
 * Class:     java_net_InetAddress
 * Method:    pton
 * Signature: (Ljava/lang/String;)[B
 */
JNIEXPORT jbyteArray JNICALL
Java_java_net_InetAddress_pton(JNIEnv *env, jclass this, jstring host)
{
	jbyte *bytes = NULL;
	jbyteArray byteArray;
	char *hostname;
	int len = 0;
<commit_msg>- Modified #includes to reflect their new location.<commit_after>/*
 * $Id$
 *
 * InetAddress.c - An IPv6 capable version of the InetAddress class.
 *                 This is the native implementation.
 *
 * Copyright (C) 1999 <NAME>.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * Change Log:
 *
 * $Log$
 * Revision 1.7  1999/11/01 16:55:04  mpf
 * - Modified #includes to reflect their new location.
 *
 * Revision 1.6  1999/10/27 14:28:49  mpf
 * - Cleaned up unused and unititialised variables.
 *
 * Revision 1.5  1999/10/26 18:28:23  mpf
 * - Removed some of the more verbose debugging messages.
 *
 * Revision 1.4  1999/10/26 17:16:57  mpf
 * - Fixed getLoopBackAddress().
 * - Added getAnyLocalAddress() native function implementation.
 * - General clean up of code.
 *
 * Revision 1.3  1999/10/20 22:55:53  mpf
 * - Cleaned up #includes and moved them all to net6.h.
 *
 * Revision 1.2  1999/10/20 07:39:12  mpf
 * - Added CVS Id and Log tags.
 * - Added LGPL license header.
 * - Moved some definitions to net6.h.
 *
 *
 */

#include <net6.h>
#include <InetAddress.h>


/*
 * Class:     java_net_InetAddress
 * Method:    pton
 * Signature: (Ljava/lang/String;)[B
 */
JNIEXPORT jbyteArray JNICALL
Java_java_net_InetAddress_pton(JNIEnv *env, jclass this, jstring host)
{
	jbyte *bytes = NULL;
	jbyteArray byteArray;
	char *hostname;
	int len = 0;

{'fraction_non_alphanumeric': 0.09052049283379432, 'fraction_numerical': 0.05632386220769424, 'mean_word_length': 3.2319148936170214, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '1034917', 'n_tokens_mistral': 1408, 'n_tokens_neox': 1242, 'n_words': 505}