<commit_before>package com.openxc.messages;

import java.util.Map;

import android.os.Parcel;

import com.openxc.util.Range;

public abstract class DiagnosticMessage extends VehicleMessage {

    public static final String PID_KEY = "pid";
    public static final String PAYLOAD_KEY = "payload";
    // TODO can there be more busses?
    public static final Range<Integer> BUS_RANGE = new Range<>(1, 2);
    public static final Range<Integer> MODE_RANGE = new Range<>(1, 15);
    public static final int MAX_PAYLOAD_LENGTH_IN_BYTES = 7;
    public static final int MAX_PAYLOAD_LENGTH_IN_CHARS = MAX_PAYLOAD_LENGTH_IN_BYTES / 2;<commit_msg>Fixed bug -- chars = bytes*2, not bytes/2<commit_after>package com.openxc.messages;

import java.util.Map;

import android.os.Parcel;

import com.openxc.util.Range;

public abstract class DiagnosticMessage extends VehicleMessage {

    public static final String PID_KEY = "pid";
    public static final String PAYLOAD_KEY = "payload";
    // TODO can there be more busses?
    public static final Range<Integer> BUS_RANGE = new Range<>(1, 2);
    public static final Range<Integer> MODE_RANGE = new Range<>(1, 15);
    public static final int MAX_PAYLOAD_LENGTH_IN_BYTES = 7;
    public static final int MAX_PAYLOAD_LENGTH_IN_CHARS = MAX_PAYLOAD_LENGTH_IN_BYTES * 2;
{'fraction_non_alphanumeric': 0.08269525267993874, 'fraction_numerical': 0.01225114854517611, 'mean_word_length': 4.491596638655462, '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': '3310081', 'n_tokens_mistral': 422, 'n_tokens_neox': 409, 'n_words': 126}