<commit_before>package org.hexpresso.soulevspy.util;

import android.util.ArrayMap;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * Created by <NAME> <<EMAIL>> on 2015-10-16.
 */
public class BatteryManagementSystemParser {

    private final String BMS_ECU = "7EC";

    public class Data {
        public double stateOfCharge;                // %
        public double stateOfHealth;                // %
        public double batteryDcVoltage;             // V
        public double maxCellVoltage;               // V
        public double minCellVoltage;               // V
        public double batteryCurrent;               // A
        public double availableChargePower;         // 'kW
        public double availableDischargePower;      // 'kW
        public double auxiliaryBatteryVoltage;      // V
        public int batteryModuleTemperature[] = new int[8]; // °C

        public int maxCellVoltageNo; // Cell #
        public int minCellVoltageNo; // Cell #
        public double accumulativeChargeCurrent; // Ah
        public double accumulativeDischargeCurrent; // Ah
        public double accumulativeChargePower; // kWh
        public double accumulativeDischargePower; // kWh
        public int accumulativeOperatingTime; // Sec

        //public double inverterCapacitorVoltage;
        public int driveMotorSpeed;

        // Status BMS main relay	NO	-
        // Adjustable state BMS	NO	-
        // BMS Warning	NO	-
        // BMS error	NO	-
        // Note BMS-blocking	NO	-
        // Battery - Max temperature.	10	°C
        // Battery - Min temperature.	10	°C
        // Battery input temperature	10	°C
        // Status BLOWER	0	-
        // Fan feedback frequency	0	Hz
        // MCU ready	YES	-
        // Request MCU main relay from	NO	-
        // Controllable MCU	NO	-
        // HCU ready	YES	-
        // Insulation resistance	1000?	kOhm

        public double batteryCellVoltage[] = new double[96]; // V

        // Battery cell voltage deviation	0,00	V
        // Fast charging normal status	NG	-
        // Airbag hardwiring duty	80	%
        // Temperature Heat 1	10	°C
        // Temperature Heat 2	10	°C
        // SOC display	88,0	%
    }

    Data bmsData = null;

    public Data getParsedData() {
        return bmsData;
    }
<commit_msg>Cleanup in the data structure<commit_after>package org.hexpresso.soulevspy.util;

import android.util.ArrayMap;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * Created by <NAME> <<EMAIL>> on 2015-10-16.
 */
public class BatteryManagementSystemParser {

    private final String BMS_ECU = "7EC";

    public class Data {

        // BMS Status Flags
        public boolean bmsMainRelayOnStatus;
        public boolean bmsControllableState;
        public boolean bmsWarning;
        public boolean bmsFault;
        public boolean bmsWeldFlag;

        public boolean mcuReady;
        public boolean mcuMainRelayOffRequest;
        public boolean mcuControllable;

        public boolean hcuReady;

        public boolean quickChargingNormalStatus;

        // High-Voltage Battery General Information
        public double stateOfCharge;                            // %
        public double stateOfChargeDisplay;                     // %
        public double stateOfHealth;                            // %

        public double batteryDcVoltage;                         // V
        public double batteryCurrent;                           // A

        public double availableChargePower;                     // kW
        public double availableDischargePower;                  // kW

        public double accumulativeChargeCurrent;                // Ah
        public double accumulativeDischargeCurrent;             // Ah

        public double accumulativeChargePower;                  // kWh
        public double accumulativeDischargePower;               // kWh

        public int    accumulativeOperatingTime;                // Sec

        public double batteryInletTemperature;                  // °C
        public double batteryMaxTemperature;                    // °C
        public double batteryMinTemperature;                    // °C

        public double heat1Temperature;                         // °C
        public double heat2Temperature;                         // °C

        public int    isolationResistance;                      // kOhm

        // High-Voltage Battery Modules information
        public int    batteryModuleTemperature[] = new int[8];  // °C

        // High-Voltage Battery Cells Information
        public double batteryCellVoltage[] = new double[96];    // V
        public double batteryCellVoltageDeviation;              // V

        public double maxCellVoltage;                           // V
        public int    maxCellVoltageNo;                         // Cell #

        public double minCellVoltage;                           // V
        public int    minCellVoltageNo;                         // Cell #

        public double maxDeterioration;                         // %
        public int    maxDeteriorationCellNo;                   // Cell #

        public double minDeterioration;                         // %
        public int    minDeteriorationCellNo;                   // Cell #

        // Auxiliary Battery General Information
        public double auxiliaryBatteryVoltage;                  // V

        // Cooling Fan
        public boolean fanStatus;                               // On/Off
        public int     fanFeedbackSignal;                       // Hz

        // Other
        public int    airbagHwireDuty;                          // %
        public int    driveMotorSpeed;                          // RPM
        public double inverterCapacitorVoltage;                 // V
    }

    Data bmsData = null;

    public Data getParsedData() {
        return bmsData;
    }

{'fraction_non_alphanumeric': 0.06664399863991839, 'fraction_numerical': 0.00884053043182591, 'mean_word_length': 1.3963340122199592, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5015534', 'n_tokens_mistral': 1560, 'n_tokens_neox': 1442, 'n_words': 428}