<commit_before>from django.db import models
import jsonfield


class Album(models.Model):
    pictures = jsonfield.JSONField()


class TweetsControl(models.Model):
    since_id = models.CharField(max_length=100)
    created_on = models.DatetimeField(auto_now_add=True)<commit_msg>added get last sinceid function to tweetscontrol model<commit_after>from django.db import models
import jsonfield


class Album(models.Model):
    pictures = jsonfield.JSONField()


class TweetsControl(models.Model):
    since_id = models.CharField(max_length=100)
    created_on = models.DateTimeField(auto_now_add=True)

    def get_last_since_id(self):
        if not self.objects.count():
            return 0
        return int(self.objects.order_by('-created_on')[0].since_id)
{'fraction_non_alphanumeric': 0.09448818897637795, 'fraction_numerical': 0.010498687664041995, 'mean_word_length': 4.610294117647059, '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': '5176099', 'n_tokens_mistral': 244, 'n_tokens_neox': 233, 'n_words': 47}