test_class.file: stagemonitor-tracing/src/test/java/org/stagemonitor/tracing/utils/IPAnonymizationUtilsTest.java
test_class.identifier: IPAnonymizationUtilsTest
test_case.body: @Test
  	public void testAnonymizeIpv6Full() throws Exception {
  		Assert.assertEquals("fe80:fe1e:b3ff:0:0:0:0:0", IPAnonymizationUtils.anonymize("FE80:FE1E:B3FF:0000:0202:B3FF:FE1E:8329"));
  	}
test_case.class_method_signature: IPAnonymizationUtilsTest.testAnonymizeIpv6Full()
test_case.full_signature: @Test public void testAnonymizeIpv6Full()
test_case.identifier: testAnonymizeIpv6Full
test_case.invocations: assertEquals anonymize
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAnonymizeIpv6Full()
focal_class.declarator: logger = LoggerFactory.getLogger(IPAnonymizationUtils.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(IPAnonymizationUtils.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: ANONYMIZED_IPV4_OCTETS = 1
focal_class.modifier: private static final
focal_class.original_string: private static final int ANONYMIZED_IPV4_OCTETS = 1;
focal_class.type: int
focal_class.var_name: ANONYMIZED_IPV4_OCTETS
focal_class.declarator: ANONYMIZED_IPV6_OCTETS = 10
focal_class.modifier: private static final
focal_class.original_string: private static final int ANONYMIZED_IPV6_OCTETS = 10;
focal_class.type: int
focal_class.var_name: ANONYMIZED_IPV6_OCTETS
focal_class.file: stagemonitor-tracing/src/main/java/org/stagemonitor/tracing/utils/IPAnonymizationUtils.java
focal_class.identifier: IPAnonymizationUtils
focal_class.class_method_signature: IPAnonymizationUtils.IPAnonymizationUtils()
focal_class.full_signature: private  IPAnonymizationUtils()
focal_class.identifier: IPAnonymizationUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  IPAnonymizationUtils()
focal_class.class_method_signature: IPAnonymizationUtils.anonymize(String ip)
focal_class.full_signature: public static String anonymize(String ip)
focal_class.identifier: anonymize
focal_class.modifiers: public static
focal_class.parameters: (String ip)
focal_class.return: String
focal_class.signature: String anonymize(String ip)
focal_class.class_method_signature: IPAnonymizationUtils.anonymizeIpV4Address(Inet4Address inetAddress)
focal_class.full_signature: public static Inet4Address anonymizeIpV4Address(Inet4Address inetAddress)
focal_class.identifier: anonymizeIpV4Address
focal_class.modifiers: public static
focal_class.parameters: (Inet4Address inetAddress)
focal_class.return: Inet4Address
focal_class.signature: Inet4Address anonymizeIpV4Address(Inet4Address inetAddress)
focal_class.class_method_signature: IPAnonymizationUtils.anonymizeIpV6Address(Inet6Address inet6Address)
focal_class.full_signature: public static Inet6Address anonymizeIpV6Address(Inet6Address inet6Address)
focal_class.identifier: anonymizeIpV6Address
focal_class.modifiers: public static
focal_class.parameters: (Inet6Address inet6Address)
focal_class.return: Inet6Address
focal_class.signature: Inet6Address anonymizeIpV6Address(Inet6Address inet6Address)
focal_class.class_method_signature: IPAnonymizationUtils.anonymizeLastBytes(final byte[] address, final int bytesToAnonymize)
focal_class.full_signature: private static void anonymizeLastBytes(final byte[] address, final int bytesToAnonymize)
focal_class.identifier: anonymizeLastBytes
focal_class.modifiers: private static
focal_class.parameters: (final byte[] address, final int bytesToAnonymize)
focal_class.return: void
focal_class.signature: void anonymizeLastBytes(final byte[] address, final int bytesToAnonymize)
focal_method.body: public static String anonymize(String ip) {
  		InetAddress inetAddress;
  		try {
  			inetAddress = InetAddresses.forString(ip);
  		} catch (IllegalArgumentException e) {
  			logger.warn(e.getMessage(), e);
  			inetAddress = null;
  		}
  		InetAddress anonymized = null;
  		if (inetAddress instanceof Inet4Address) {
  			anonymized = anonymizeIpV4Address((Inet4Address) inetAddress);
  		} else if (inetAddress instanceof Inet6Address) {
  			anonymized = anonymizeIpV6Address((Inet6Address) inetAddress);
  		}
  		if (anonymized != null) {
  			return anonymized.getHostAddress();
  		} else {
  			return null;
  		}
  	}
focal_method.class_method_signature: IPAnonymizationUtils.anonymize(String ip)
focal_method.full_signature: public static String anonymize(String ip)
focal_method.identifier: anonymize
focal_method.invocations: forString warn getMessage anonymizeIpV4Address anonymizeIpV6Address getHostAddress
focal_method.modifiers: public static
focal_method.parameters: (String ip)
focal_method.return: String
focal_method.signature: String anonymize(String ip)