<commit_before>package com.openxc.remote.sources;

public abstract class AbstractVehicleDataSourceCallback implements
        VehicleDataSourceCallbackInterface {

    abstract public void receive(String name, Double value);

    public void receive(String name, Integer value) {
        receive(name, new Double(value));
    }

    public void receive(String name, Boolean value) {
        receive(name, new Double(value.booleanValue() ? 1 : 0));
    }

    public void receive(String name, String value) {
        receive(name, new Double(value.hashCode()));
    }
}<commit_msg>Match case of enums before hashing.<commit_after>package com.openxc.remote.sources;

public abstract class AbstractVehicleDataSourceCallback implements
        VehicleDataSourceCallbackInterface {

    abstract public void receive(String name, Double value);

    public void receive(String name, Integer value) {
        receive(name, new Double(value));
    }

    public void receive(String name, Boolean value) {
        receive(name, new Double(value.booleanValue() ? 1 : 0));
    }

    public void receive(String name, String value) {
        receive(name, new Double(value.toUpperCase().hashCode()));
    }
}
{'fraction_non_alphanumeric': 0.09364548494983277, 'fraction_numerical': 0.0033444816053511705, 'mean_word_length': 3.7125984251968505, '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': '1120350', 'n_tokens_mistral': 312, 'n_tokens_neox': 302, 'n_words': 93}