<commit_before>#include "opencv.hpp"
#include "utilities.hpp"
#include "AspectError.hpp"
#include <string>
#include <ctime>

struct HeaderData
{
    timespec captureTime, captureTimeMono;
    int cameraID;
    float cameraTemperature;
    int cpuTemperature;
    int i2c_temperatures[8];
    long frameCount;
    int exposure;
    timespec imageWriteTime;
    int preampGain;
    int analogGain;
    float sunCenter[2];
    float sunCenterError[2];
    int imageMinMax[2];
    float XYinterceptslope[4];
    double CTLsolution[2];
    float screenCenter[2];
    float screenCenterError[2];
    int fiducialCount;
    float fiducialX[10];
    float fiducialY[10];
    int limbCount;
    float limbX[10];
    float limbY[10];
    //float limbXerror[10];
    //float limbYerror[10];
    int fiducialIDX[10];
    int fiducialIDY[10];
    float cpuVoltage[5];
    bool isTracking;
    bool isOutputting;

    AspectCode runResult;

    float latitude;
    float longitude;
    float solarTarget[2];
    double northAngle;
    float clockingAngle;
};

int writePNGImage(cv::InputArray _image, const std::string fileName);
int writeFITSImage(cv::InputArray, HeaderData keys, const std::string fileName);
int readFITSImage(const std::string fileName, cv::OutputArray image);
int readFITSHeader(const std::string fileName, HeaderData &keys);<commit_msg>removing utilities.hpp<commit_after>#include "opencv.hpp"
#include <string>
#include <ctime>

struct HeaderData
{
    timespec captureTime, captureTimeMono;
    int cameraID;
    float cameraTemperature;
    int cpuTemperature;
    int i2c_temperatures[8];
    long frameCount;
    int exposure;
    timespec imageWriteTime;
    int preampGain;
    int analogGain;
    float sunCenter[2];
    float sunCenterError[2];
    int imageMinMax[2];
    float XYinterceptslope[4];
    double CTLsolution[2];
    float screenCenter[2];
    float screenCenterError[2];
    int fiducialCount;
    float fiducialX[10];
    float fiducialY[10];
    int limbCount;
    float limbX[10];
    float limbY[10];
    //float limbXerror[10];
    //float limbYerror[10];
    int fiducialIDX[10];
    int fiducialIDY[10];
    float cpuVoltage[5];
    bool isTracking;
    bool isOutputting;

    float latitude;
    float longitude;
    float solarTarget[2];
    double northAngle;
    float clockingAngle;
};

int writePNGImage(cv::InputArray _image, const std::string fileName);
int writeFITSImage(cv::InputArray, HeaderData keys, const std::string fileName);
int readFITSImage(const std::string fileName, cv::OutputArray image);
int readFITSHeader(const std::string fileName, HeaderData &keys);
{'fraction_non_alphanumeric': 0.0985485103132162, 'fraction_numerical': 0.020626432391138275, 'mean_word_length': 4.017241379310345, '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': '6293971', 'n_tokens_mistral': 886, 'n_tokens_neox': 843, 'n_words': 214}