<commit_before>package cgeo.geocaching.connector.gc;

import java.util.regex.Pattern;

/**
 * These patterns have been optimized for speed. Improve them only if you can prove
 * that *YOUR* pattern is faster. Use RegExRealPerformanceTest to show.
 *
 * For further information about patterns have a look at
 * http://download.oracle.com/javase/1.4.2/docs/api/java/util/regex/Pattern.html
 *
 * @author blafoo
 */
public final class GCConstants {

    /** Live Map */
    public final static String URL_LIVE_MAP = "http://www.geocaching.com/map/default.aspx";
    /** Live Map pop-up */
    public final static String URL_LIVE_MAP_DETAILS = "http://www.geocaching.com/map/map.details";
    /** Caches in a tile */
    public final static String URL_MAP_INFO = "http://www.geocaching.com/map/map.info";
    /** Tile itself */
    public final static String URL_MAP_TILE = "http://www.geocaching.com/map/map.png";

    /**
     * Patterns for parsing the result of a (detailed) search
     */
    public final static Pattern PATTERN_HINT = Pattern.compile("<div id=\"div_hint\"[^>]*>(.*?)</div>");
    public final static Pattern PATTERN_DESC = Pattern.compile("<span id=\"ctl00_ContentBody_LongDescription\"><div class=\"UserSuppliedContent\">(.*?)</div>\\s*<p>\\s*</p>\\s*<p id=\"ctl00_ContentBody_hints\">");
    public final static Pattern PATTERN_SHORTDESC = Pattern.compile("<span id=\"ctl00_ContentBody_ShortDescription\">(.*?)</span>\\s*</div>");
    public final static Pattern PATTERN_GEOCODE = Pattern.compile("class=\"CoordInfoCode\">(GC[0-9A-Z]+)</span>");<commit_msg>Fix: Long description parsing<commit_after>package cgeo.geocaching.connector.gc;

import java.util.regex.Pattern;

/**
 * These patterns have been optimized for speed. Improve them only if you can prove
 * that *YOUR* pattern is faster. Use RegExRealPerformanceTest to show.
 *
 * For further information about patterns have a look at
 * http://download.oracle.com/javase/1.4.2/docs/api/java/util/regex/Pattern.html
 *
 * @author blafoo
 */
public final class GCConstants {

    /** Live Map */
    public final static String URL_LIVE_MAP = "http://www.geocaching.com/map/default.aspx";
    /** Live Map pop-up */
    public final static String URL_LIVE_MAP_DETAILS = "http://www.geocaching.com/map/map.details";
    /** Caches in a tile */
    public final static String URL_MAP_INFO = "http://www.geocaching.com/map/map.info";
    /** Tile itself */
    public final static String URL_MAP_TILE = "http://www.geocaching.com/map/map.png";

    /**
     * Patterns for parsing the result of a (detailed) search
     */
    public final static Pattern PATTERN_HINT = Pattern.compile("<div id=\"div_hint\"[^>]*>(.*?)</div>");
    public final static Pattern PATTERN_DESC = Pattern.compile("<span id=\"ctl00_ContentBody_LongDescription\">(.*?)</span>\\s*</div>\\s*<p>\\s*</p>\\s*<p id=\"ctl00_ContentBody_hints\">");
    public final static Pattern PATTERN_SHORTDESC = Pattern.compile("<span id=\"ctl00_ContentBody_ShortDescription\">(.*?)</span>\\s*</div>");
    public final static Pattern PATTERN_GEOCODE = Pattern.compile("class=\"CoordInfoCode\">(GC[0-9A-Z]+)</span>");
{'fraction_non_alphanumeric': 0.15946632782719186, 'fraction_numerical': 0.00698856416772554, 'mean_word_length': 3.9203125, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '368832', 'n_tokens_mistral': 1025, 'n_tokens_neox': 995, 'n_words': 233}