<commit_before>from mongokit import Document
from datetime import datetime

class Logline(Document):
    __collection__ = 'logdata'
    __database__ = 'weather'
    structure = {
        'logtime': datetime,
        'inT1': float,
        'inT2': float,
        'inT3': float,
        'outT': float,
        'pressure': float,
        'humidity': float,
        'light': int,
        'battery': int,
        'solar': int
    }
    display_fields = ['logtime', 'inT1', 'inT2', 'inT3', 'outT', 'pressure', 'humidity', 'light', 'battery', 'solar']
    field_names = ['Time', "Internal Temp 1 (C)", "Internal Temp 2 (C)", "Internal Temp 3 (C)", "External Temp (C)", "Atmospheric Pressure (mb)", "Humidity (%)", "Ambient Light", "Battery Voltage", "Solar Voltage"]
    required_fields = ['logtime']
    default_values = {
        'logtime': datetime.utcnow
    }

class Temp(Document):
    __collection__ = 'logdata'
    __database__ = 'weather'
    structure = {'temp': float,
                 'logtime': datetime
                 }
    required_fields = ['logtime', 'temp']
<commit_msg>Corrected the data formats for battery and solar to make them floats<commit_after>from mongokit import Document
from datetime import datetime

class Logline(Document):
    __collection__ = 'logdata'
    __database__ = 'weather'
    structure = {
        'logtime': datetime,
        'inT1': float,
        'inT2': float,
        'inT3': float,
        'outT': float,
        'pressure': float,
        'humidity': float,
        'light': int,
        'battery': float,
        'solar': float
    }
    display_fields = ['logtime', 'inT1', 'inT2', 'inT3', 'outT', 'pressure', 'humidity', 'light', 'battery', 'solar']
    field_names = ['Time', "Internal Temp 1 (C)", "Internal Temp 2 (C)", "Internal Temp 3 (C)", "External Temp (C)", "Atmospheric Pressure (mb)", "Humidity (%)", "Ambient Light", "Battery Voltage", "Solar Voltage"]
    required_fields = ['logtime']
    default_values = {
        'logtime': datetime.utcnow
    }

class Temp(Document):
    __collection__ = 'logdata'
    __database__ = 'weather'
    structure = {'temp': float,
                 'logtime': datetime
                 }
    required_fields = ['logtime', 'temp']

{'fraction_non_alphanumeric': 0.15280898876404495, 'fraction_numerical': 0.008089887640449439, 'mean_word_length': 2.8116438356164384, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6297738', 'n_tokens_mistral': 715, 'n_tokens_neox': 688, 'n_words': 195}