<commit_before>from django.db import models
from django.contrib.auth.models import User


class Patient(models.Model):
    user = models.OneToOneField(User, null=True)
    national_identification_number = models.CharField(
        default="",
        max_length=11,
        help_text="A number consisting of date of birth + national id, (11 digits)"
    )
    telephone = models.IntegerField(default=None)
    address = models.TextField(default='')
    pulse_max = models.IntegerField(default=0)
    pulse_min = models.IntegerField(default=0)
    o2_max = models.IntegerField(default=0)
    o2_min = models.IntegerField(default=0)
    temperature_max = models.IntegerField(default=0)
    temperature_min = models.IntegerField(default=0)
    activity_max = models.IntegerField(default=0)
    activity_min = models.IntegerField(default=0)
    activity_access = models.BooleanField(
        default=False,
        help_text="If True, the patient has access to view activity data in patient interface"
    )
    pulse_access = models.BooleanField(
        default=False,<commit_msg>Forandret på sensordataene til float fra int<commit_after>from django.db import models
from django.contrib.auth.models import User


class Patient(models.Model):
    user = models.OneToOneField(User, null=True)
    national_identification_number = models.CharField(
        default="",
        max_length=11,
        help_text="A number consisting of date of birth + national id, (11 digits)"
    )
    telephone = models.IntegerField(default=None)
    address = models.TextField(default='')
    pulse_max = models.FloatField(default=0)
    pulse_min = models.FloatField(default=0)
    o2_max = models.FloatField(default=0)
    o2_min = models.FloatField(default=0)
    temperature_max = models.FloatField(default=0)
    temperature_min = models.FloatField(default=0)
    activity_max = models.FloatField(default=0)
    activity_min = models.FloatField(default=0)
    activity_access = models.BooleanField(
        default=False,
        help_text="If True, the patient has access to view activity data in patient interface"
    )
    pulse_access = models.BooleanField(
        default=False,
{'fraction_non_alphanumeric': 0.09304467987102717, 'fraction_numerical': 0.012897282358360202, 'mean_word_length': 3.947608200455581, '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': '2801242', 'n_tokens_mistral': 634, 'n_tokens_neox': 625, 'n_words': 139}