<commit_before>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

package com.yahoo.vespa.hosted.provision.restapi;

import com.yahoo.vespa.hosted.provision.Node;

import java.util.HashMap;
import java.util.Map;
import java.util.Optional;

/**
 * Converts {@link Node.Type} to/from serialized form in REST APIs.
 * @author dybdahl
 */
public class NodeTypeSerializer {

    private static final Map<Node.Type, String> serializationMap = new HashMap<>();
    private static final Map<String, Node.Type> deserializationMap = new HashMap<>();
<commit_msg>Fix author tag.<commit_after>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

package com.yahoo.vespa.hosted.provision.restapi;

import com.yahoo.vespa.hosted.provision.Node;

import java.util.HashMap;
import java.util.Map;
import java.util.Optional;

/**
 * Converts {@link Node.Type} to/from serialized form in REST APIs.
 * @author dybis
 */
public class NodeTypeSerializer {

    private static final Map<Node.Type, String> serializationMap = new HashMap<>();
    private static final Map<String, Node.Type> deserializationMap = new HashMap<>();

{'fraction_non_alphanumeric': 0.10633116883116883, 'fraction_numerical': 0.00974025974025974, 'mean_word_length': 4.407894736842105, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3115050', 'n_tokens_mistral': 374, 'n_tokens_neox': 353, 'n_words': 122}