<commit_before>from django.db import models

# Create your models here.

class Message(models.Model):
    """
    SOURCE
    ======
        The social media site that returned this social data
    FOCUS
    =====
        The stock ticker that was searched for to return this tweet/comment
    POPULARITY
    ==========
        Cumulative likes + retweets/shares + other positive actions by other
        users
    AUTHOR
    ======
        The username/handle of the user who posted this piece of data
    AUTHOR_IMAGE
    ============
        The profile picture of author
    SOCIAL_ID
    =========
        The id of the message on the twitter/stocktwit servers
    CREATED_TIME
    ============
        The time that the message was created
    CONTENT
    =======
        The text of the content/tweet
    SYMBOLS
    =======
        Other symbols mentioned in the text
        Wrapped in a python list fashion
    URLS
    ====
        Other urls mentioned in the text
        includes images/charts/etc.
        wrapped in a python list fashion
    """
    social_id = models.CharField(max_len=32)
    source = models.CharField(max_len=20, choices=(
        ("twitter", "twitter"),
        ("stocktwits", "stocktwits"),
    ))
    focus = models.CharField(max_length=5)
    popularity = models.IntegerField()
    author = models.CharField(max_length=16)
    author_image = models.URLField(max_length=16)
    created_time = models.DateTimeField()
    content = models.CharField(max_length=120)
    symbols = models.CharField(max_length=255)
    urls = models.CharField(max_length=255)


class Stock(models.Model):
    ticker = models.CharField(max_length=5, db_index=True, db_tablespace="indexes")
    name = models.TextField(max_length=100)
    date = models.DateField(db_index=True, db_tablespace="indexes")
    open = models.FloatField()
    high = models.FloatField()
    low = models.FloatField()
    close = models.FloatField()
    # price = models.FloatField()
    # change_in_percent = models.FloatField()<commit_msg>Fixed typo<commit_after>from django.db import models

# Create your models here.

class Message(models.Model):
    """
    SOURCE
    ======
        The social media site that returned this social data
    FOCUS
    =====
        The stock ticker that was searched for to return this tweet/comment
    POPULARITY
    ==========
        Cumulative likes + retweets/shares + other positive actions by other
        users
    AUTHOR
    ======
        The username/handle of the user who posted this piece of data
    AUTHOR_IMAGE
    ============
        The profile picture of author
    SOCIAL_ID
    =========
        The id of the message on the twitter/stocktwit servers
    CREATED_TIME
    ============
        The time that the message was created
    CONTENT
    =======
        The text of the content/tweet
    SYMBOLS
    =======
        Other symbols mentioned in the text
        Wrapped in a python list fashion
    URLS
    ====
        Other urls mentioned in the text
        includes images/charts/etc.
        wrapped in a python list fashion
    """
    social_id = models.CharField(max_length=32)
    source = models.CharField(max_length=20, choices=(
        ("twitter", "twitter"),
        ("stocktwits", "stocktwits"),
    ))
    focus = models.CharField(max_length=5)
    popularity = models.IntegerField()
    author = models.CharField(max_length=16)
    author_image = models.URLField(max_length=16)
    created_time = models.DateTimeField()
    content = models.CharField(max_length=120)
    symbols = models.CharField(max_length=255)
    urls = models.CharField(max_length=255)


class Stock(models.Model):
    ticker = models.CharField(max_length=5, db_index=True, db_tablespace="indexes")
    name = models.TextField(max_length=100)
    date = models.DateField(db_index=True, db_tablespace="indexes")
    open = models.FloatField()
    high = models.FloatField()
    low = models.FloatField()
    close = models.FloatField()
    # price = models.FloatField()
    # change_in_percent = models.FloatField()
{'fraction_non_alphanumeric': 0.11168511685116851, 'fraction_numerical': 0.010824108241082412, 'mean_word_length': 2.850378787878788, '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': '569550', 'n_tokens_mistral': 1215, 'n_tokens_neox': 1146, 'n_words': 320}