<commit_before>//
// Created by starksm on 4/13/15.
//

#ifndef NATIVESCANNER_MOCKSCANNERVIEW_H
#define NATIVESCANNER_MOCKSCANNERVIEW_H

#include "ScannerView.h"

class MockScannerView : public ScannerView {
public:

    virtual void displayBeacon(const Beacon &beacon) {
    }
    virtual void displayHeartbeat(const Beacon &beacon) {
    }
    virtual void displayStatus(const StatusInformation &status) {
    }
};

#endif //NATIVESCANNER_MOCKSCANNERVIEW_H
<commit_msg>Have non-lcd version of ScannerView display when the closest beacon changes in the log<commit_after>//
// Created by starksm on 4/13/15.
//

#ifndef NATIVESCANNER_MOCKSCANNERVIEW_H
#define NATIVESCANNER_MOCKSCANNERVIEW_H

#include "ScannerView.h"

class MockScannerView : public ScannerView {
private:
    int closestID;
    string closestName;

public:

    virtual void displayBeacon(const Beacon &beacon) {
        int minorID = beacon.getMinor();
        if(minorID != closestID) {
            closestID = minorID;
            if(getBeaconMapper()) {
                closestName = getBeaconMapper()->lookupUser(minorID);
            }
            printf("+++ New closest beacon: (%d,%s)\n", closestID, closestName.c_str());
        }
    }
    virtual void displayHeartbeat(const Beacon &beacon) {
    }
    virtual void displayStatus(const StatusInformation &status) {
    }
};

#endif //NATIVESCANNER_MOCKSCANNERVIEW_H

{'fraction_non_alphanumeric': 0.09527220630372493, 'fraction_numerical': 0.0071633237822349575, 'mean_word_length': 3.393081761006289, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1167874', 'n_tokens_mistral': 464, 'n_tokens_neox': 454, 'n_words': 103}