<commit_before>/*
 * ServiceRef.java
 *
 * Created on Mon Oct 13 10:09:59 EDT 2003
 *
 * Copyright (c) 2003 Spallation Neutron Source
 * Oak Ridge National Laboratory
 * Oak Ridge, TN 37830
 */

package xal.tools.services;

import javax.jmdns.ServiceInfo;
import java.util.regex.*;


/**
 * ServiceRef wraps the native Rendezvous ServiceInfo and provides a reference to the service
 * that hides a direct reference to Rendezvous.
 *
 * @author  tap
 */
public class ServiceRef {
    /** */
    static final String LOCAL_TYPE_SUFFIX = "_tcp.local.";
    
	/** Pattern matching the protocol and DNS part of the type */
	static final private Pattern TYPE_PATTERN;
	
	/** Property identifying the local service handler */
	static final String serviceKey = "xmlrpc_service_handler";
	
	/** Redezvous service info */
	private ServiceInfo _serviceInfo;
		
	
	static {
		TYPE_PATTERN = Pattern.compile("(\\w++)\\._tcp\\.local\\.");<commit_msg>-n  add the missing documentation for the local type suffix<commit_after>/*
 * ServiceRef.java
 *
 * Created on Mon Oct 13 10:09:59 EDT 2003
 *
 * Copyright (c) 2003 Spallation Neutron Source
 * Oak Ridge National Laboratory
 * Oak Ridge, TN 37830
 */

package xal.tools.services;

import javax.jmdns.ServiceInfo;
import java.util.regex.*;


/**
 * ServiceRef wraps the native Rendezvous ServiceInfo and provides a reference to the service
 * that hides a direct reference to Rendezvous.
 *
 * @author  tap
 */
public class ServiceRef {
    /** standard local suffix for the service type */
    static final String LOCAL_TYPE_SUFFIX = "_tcp.local.";
    
	/** Pattern matching the protocol and DNS part of the type */
	static final private Pattern TYPE_PATTERN;
	
	/** Property identifying the local service handler */
	static final String serviceKey = "xmlrpc_service_handler";
	
	/** Redezvous service info */
	private ServiceInfo _serviceInfo;
		
	
	static {
		TYPE_PATTERN = Pattern.compile("(\\w++)\\._tcp\\.local\\.");
{'fraction_non_alphanumeric': 0.10056151097498724, 'fraction_numerical': 0.021439509954058193, 'mean_word_length': 3.5687645687645686, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2537041', 'n_tokens_mistral': 631, 'n_tokens_neox': 547, 'n_words': 205}