<commit_before>package cgeo.geocaching.log;

import cgeo.geocaching.CgeoApplication;
import cgeo.geocaching.R;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;

import org.apache.commons.lang3.StringUtils;

/**
 * Different log types
 */
public enum LogType {

    // user logs
    FOUND_IT(2, "2", "Found it", "Found it", R.string.log_found, R.drawable.mark_green, R.drawable.marker_found, R.drawable.marker_found_offline),
    DIDNT_FIND_IT(3, "3", "Didn't find it", "Didn't find it", R.string.log_dnf, R.drawable.mark_red, R.drawable.marker_not_found_offline),
    NOTE(4, "4", "Write note", "Comment", R.string.log_note, R.drawable.mark_gray, R.drawable.marker_note),
    ATTENDED(10, "10", "Attended", "Attended", R.string.log_attended, R.drawable.mark_green, R.drawable.marker_found, R.drawable.marker_found_offline),
    WEBCAM_PHOTO_TAKEN(11, "11", "Webcam Photo Taken", "", R.string.log_webcam, R.drawable.mark_green, R.drawable.marker_found, R.drawable.marker_found_offline),
    WILL_ATTEND(9, "9", "Will Attend", "Will attend", R.string.log_attend, R.drawable.mark_gray, R.drawable.marker_calendar),
    NEEDS_MAINTENANCE(45, "45", "Needs Maintenance", "Needs maintenance", R.string.log_maintenance_needed, R.drawable.mark_red, R.drawable.marker_maintenance),
    NEEDS_ARCHIVE(7, "7", "Needs Archived", "", R.string.log_needs_archived, R.drawable.mark_red, R.drawable.marker_archive),
    // owner logs
    ANNOUNCEMENT(74, "74", "Announcement", "", R.string.log_announcement, R.drawable.mark_gray, R.drawable.marker_announcement),
    TEMP_DISABLE_LISTING(22, "22", "Temporarily Disable Listing", "Temporarily unavailable", R.string.log_disabled, R.drawable.mark_red_more, R.drawable.marker_disable),
    ENABLE_LISTING(23, "23", "Enable Listing", "Ready to search", R.string.log_enabled, R.drawable.mark_green_more, R.drawable.marker_visited),
    OWNER_MAINTENANCE(46, "46", "Owner Maintenance", "", R.string.log_maintained, R.drawable.mark_green_more, R.drawable.marker_owner_maintenance),
    UPDATE_COORDINATES(47, "47", "Update Coordinates", "Moved", R.string.log_update, R.drawable.mark_green_more, R.drawable.marker_update_coordinates),
    ARCHIVE(5, "5", "Archive", "Archived", R.string.log_archived, R.drawable.mark_red_more, R.drawable.marker_archive),
    // reviewer logs
    PUBLISH_LISTING(1003, "24", "Publish Listing", "", R.string.log_published, R.drawable.mark_blue, R.drawable.marker_publish),
    POST_REVIEWER_NOTE(18, "18", "Post Reviewer Note", "", R.string.log_reviewer, R.drawable.mark_blue, R.drawable.marker_reviewer_note),
    SUBMIT_FOR_REVIEW(76, "76", "submit for review", "", R.string.log_submit_for_review, R.drawable.mark_blue, R.drawable.marker_reviewer_note),
    RETRACT(25, "25", "Retract Listing", "", R.string.log_retractlisting, R.drawable.mark_blue, R.drawable.marker_retract),
    UNARCHIVE(12, "12", "Unarchive", "", R.string.log_unarchived, R.drawable.mark_blue, R.drawable.marker_publish),
    OC_TEAM_COMMENT(83, null, "X1", "OC Team comment", R.string.log_oc_team_comment, R.drawable.mark_blue, R.drawable.marker_reviewer_note),
    // trackable logs
    RETRIEVED_IT(13, "13", "Retrieved it", "", R.string.log_retrieved, R.drawable.mark_green_more),
    PLACED_IT(14, "14", "placed it", "", R.string.log_placed, R.drawable.mark_green_more),
    GRABBED_IT(19, "19", "grabbed it", "", R.string.log_grabbed, R.drawable.mark_green_more),
    DISCOVERED_IT(48, "48", "Discovered It", "", R.string.log_discovered, R.drawable.mark_green),
    VISIT(1001, "75", "visit", "", R.string.log_tb_visit, R.drawable.mark_green),
    MOVE_COLLECTION(69, "69", "unused_collection", "", R.string.log_movecollection),
    MOVE_INVENTORY(70, "70", "unused_inventory", "", R.string.log_moveinventory),
    MARKED_MISSING(16, "16", "marked missing", "", R.string.log_marked_missing, R.drawable.mark_red),
    // other
    UNKNOWN(0, "unknown", "", "", R.string.err_unknown, R.drawable.mark_red, R.drawable.marker_unknown_offline); // LogType not initialized yet

    public final int id;
    @Nullable
    public final String iconName;
    @NonNull
    public final String type;
    @NonNull
    public final String ocType;
    private final int stringId;
    public final int markerId;
    /**<commit_msg>fix some accidental color changes in #11676<commit_after>package cgeo.geocaching.log;

import cgeo.geocaching.CgeoApplication;
import cgeo.geocaching.R;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;

import org.apache.commons.lang3.StringUtils;

/**
 * Different log types
 */
public enum LogType {

    // user logs
    FOUND_IT(2, "2", "Found it", "Found it", R.string.log_found, R.drawable.mark_green, R.drawable.marker_found, R.drawable.marker_found_offline),
    DIDNT_FIND_IT(3, "3", "Didn't find it", "Didn't find it", R.string.log_dnf, R.drawable.mark_red, R.drawable.marker_not_found_offline),
    NOTE(4, "4", "Write note", "Comment", R.string.log_note, R.drawable.mark_gray, R.drawable.marker_note),
    ATTENDED(10, "10", "Attended", "Attended", R.string.log_attended, R.drawable.mark_green, R.drawable.marker_found, R.drawable.marker_found_offline),
    WEBCAM_PHOTO_TAKEN(11, "11", "Webcam Photo Taken", "", R.string.log_webcam, R.drawable.mark_green, R.drawable.marker_found, R.drawable.marker_found_offline),
    WILL_ATTEND(9, "9", "Will Attend", "Will attend", R.string.log_attend, R.drawable.mark_gray, R.drawable.marker_calendar),
    NEEDS_MAINTENANCE(45, "45", "Needs Maintenance", "Needs maintenance", R.string.log_maintenance_needed, R.drawable.mark_red, R.drawable.marker_maintenance),
    NEEDS_ARCHIVE(7, "7", "Needs Archived", "", R.string.log_needs_archived, R.drawable.mark_red, R.drawable.marker_archive),
    // owner logs
    ANNOUNCEMENT(74, "74", "Announcement", "", R.string.log_announcement, R.drawable.mark_gray, R.drawable.marker_announcement),
    TEMP_DISABLE_LISTING(22, "22", "Temporarily Disable Listing", "Temporarily unavailable", R.string.log_disabled, R.drawable.mark_red_more, R.drawable.marker_disable),
    ENABLE_LISTING(23, "23", "Enable Listing", "Ready to search", R.string.log_enabled, R.drawable.mark_green_more, R.drawable.marker_visited),
    OWNER_MAINTENANCE(46, "46", "Owner Maintenance", "", R.string.log_maintained, R.drawable.mark_green_more, R.drawable.marker_owner_maintenance),
    UPDATE_COORDINATES(47, "47", "Update Coordinates", "Moved", R.string.log_update, R.drawable.mark_green_more, R.drawable.marker_update_coordinates),
    ARCHIVE(5, "5", "Archive", "Archived", R.string.log_archived, R.drawable.mark_red_more, R.drawable.marker_archive),
    // reviewer logs
    PUBLISH_LISTING(1003, "24", "Publish Listing", "", R.string.log_published, R.drawable.mark_green_more, R.drawable.marker_publish),
    POST_REVIEWER_NOTE(18, "18", "Post Reviewer Note", "", R.string.log_reviewer, R.drawable.mark_blue, R.drawable.marker_reviewer_note),
    SUBMIT_FOR_REVIEW(76, "76", "submit for review", "", R.string.log_submit_for_review, R.drawable.mark_blue, R.drawable.marker_reviewer_note),
    RETRACT(25, "25", "Retract Listing", "", R.string.log_retractlisting, R.drawable.mark_red_more, R.drawable.marker_retract),
    UNARCHIVE(12, "12", "Unarchive", "", R.string.log_unarchived, R.drawable.mark_green_more, R.drawable.marker_publish),
    OC_TEAM_COMMENT(83, null, "X1", "OC Team comment", R.string.log_oc_team_comment, R.drawable.mark_blue, R.drawable.marker_reviewer_note),
    // trackable logs
    RETRIEVED_IT(13, "13", "Retrieved it", "", R.string.log_retrieved, R.drawable.mark_green_more),
    PLACED_IT(14, "14", "placed it", "", R.string.log_placed, R.drawable.mark_green_more),
    GRABBED_IT(19, "19", "grabbed it", "", R.string.log_grabbed, R.drawable.mark_green_more),
    DISCOVERED_IT(48, "48", "Discovered It", "", R.string.log_discovered, R.drawable.mark_green),
    VISIT(1001, "75", "visit", "", R.string.log_tb_visit, R.drawable.mark_green),
    MOVE_COLLECTION(69, "69", "unused_collection", "", R.string.log_movecollection),
    MOVE_INVENTORY(70, "70", "unused_inventory", "", R.string.log_moveinventory),
    MARKED_MISSING(16, "16", "marked missing", "", R.string.log_marked_missing, R.drawable.mark_red),
    // other
    UNKNOWN(0, "unknown", "", "", R.string.err_unknown, R.drawable.mark_red, R.drawable.marker_unknown_offline); // LogType not initialized yet

    public final int id;
    @Nullable
    public final String iconName;
    @NonNull
    public final String type;
    @NonNull
    public final String ocType;
    private final int stringId;
    public final int markerId;
    /**
{'fraction_non_alphanumeric': 0.1484533754797923, 'fraction_numerical': 0.024271844660194174, 'mean_word_length': 5.359655419956927, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '514845', 'n_tokens_mistral': 3395, 'n_tokens_neox': 3132, 'n_words': 566}