<commit_before>package eic.beike.projectx.busdata;


import android.util.Log;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * The latest bus data before the given timestamp.
 * Use lombok getters to access the fields.
 * Created by alex on 9/22/15.
 */
public class BusData {

    /**
     * Whether all fields have been populated.
     */
    private boolean full = true;

    /**
     * Sensors we consider in the app. These are initialized in the constructor.
     */
    private List<Resource> unmarkedResources;
    public BusData() {
        unmarkedResources = new ArrayList<>(5);
        unmarkedResources.add(Resource.Accelerator_Pedal_Position);
        unmarkedResources.add(Resource.Ambient_Temperature);
        unmarkedResources.add(Resource.At_Stop);
        unmarkedResources.add(Resource.Next_Stop);
        unmarkedResources.add(Resource.Stop_Pressed);
    }

    /**
     * The time that the sensor data was compiled to this object.
     */
    @Setter
    @Getter
    private Long timestamp;


    /**
     * The pedal position in percent (0 to 100) TODO: Confirm 100 is full throttle.
     * Updated once per second in bus
     */
    @Getter
    private int pedalPosition;

    /**
     * The temperature outside of the bus.
     * Updated once per second in bus
     */<commit_msg>Make code use Java 1.5.<commit_after>package eic.beike.projectx.busdata;


import android.util.Log;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * The latest bus data before the given timestamp.
 * Use lombok getters to access the fields.
 * Created by alex on 9/22/15.
 */
public class BusData {

    /**
     * Whether all fields have been populated.
     */
    private boolean full = true;

    /**
     * Sensors we consider in the app. These are initialized in the constructor.
     */
    private List<Resource> unmarkedResources;
    public BusData() {
        unmarkedResources = new ArrayList<Resource>(5);
        unmarkedResources.add(Resource.Accelerator_Pedal_Position);
        unmarkedResources.add(Resource.Ambient_Temperature);
        unmarkedResources.add(Resource.At_Stop);
        unmarkedResources.add(Resource.Next_Stop);
        unmarkedResources.add(Resource.Stop_Pressed);
    }

    /**
     * The time that the sensor data was compiled to this object.
     */
    @Setter
    @Getter
    private Long timestamp;


    /**
     * The pedal position in percent (0 to 100) TODO: Confirm 100 is full throttle.
     * Updated once per second in bus
     */
    @Getter
    private int pedalPosition;

    /**
     * The temperature outside of the bus.
     * Updated once per second in bus
     */
{'fraction_non_alphanumeric': 0.08838568298027757, 'fraction_numerical': 0.010226442658875092, 'mean_word_length': 2.6666666666666665, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '935635', 'n_tokens_mistral': 828, 'n_tokens_neox': 769, 'n_words': 248}