<commit_before>import logging

from django.db import models

from model_utils import Choices
from model_utils.models import TimeStampedModel, StatusModel

import facebook

from instagram.client import InstagramAPI

from .conf import settings


logger = logging.getLogger(__name__)

STATUS_CHOICES = Choices(
    ('active', 'Active',),
    ('inactive', 'Inactive',),
)

SOCIAL_CONTENT_TYPE_CHOICES = tuple((social.lower(), social,) for social in settings.SOCIAL_CONTENT_TYPES)


class SocialAccount(TimeStampedModel, StatusModel):
    """
    Model for social accounts
    """
    STATUS = STATUS_CHOICES

    social_content_type = models.CharField(verbose_name='Type', choices=SOCIAL_CONTENT_TYPE_CHOICES, max_length=255, db_index=True)

    '''
    Identifier for service. Username, handle, etc.

    Twitter: Twitter screen name.

    Facebook: Facebook page ID. This is usually the name after facebook.com/,
    but sometimes the page screen name has not been chosen, and you need to
    use the actual ID in the url.

    Tumblr: Tumblr blog subdomain. aka "example" from "example.tumblr.com".

    Instagram: Instagram username
    '''
    identifier = models.CharField(max_length=255, help_text="""Twitter screenname, Facebook page id, Instagram username,
         or Tumblr subdomain (e.g. "example" from "example.tumblr.com")""")

    raw_identifier = models.CharField(max_length=255, null=True, blank=True)  # The "real", not-necessarily-user-friendly id/entifier
<commit_msg>Tweaking type names<commit_after>import logging

from django.db import models

from model_utils import Choices
from model_utils.models import TimeStampedModel, StatusModel

import facebook

from instagram.client import InstagramAPI

from .conf import settings


logger = logging.getLogger(__name__)

STATUS_CHOICES = Choices(
    ('active', 'Active',),
    ('inactive', 'Inactive',),
)

SOCIAL_CONTENT_TYPE_CHOICES = tuple((social.lower().replace(' ', '_'), social,) for social in settings.SOCIAL_CONTENT_TYPES)


class SocialAccount(TimeStampedModel, StatusModel):
    """
    Model for social accounts
    """
    STATUS = STATUS_CHOICES

    social_content_type = models.CharField(verbose_name='Type', choices=SOCIAL_CONTENT_TYPE_CHOICES, max_length=255, db_index=True)

    '''
    Identifier for service. Username, handle, etc.

    Twitter: Twitter screen name.

    Facebook: Facebook page ID. This is usually the name after facebook.com/,
    but sometimes the page screen name has not been chosen, and you need to
    use the actual ID in the url.

    Tumblr: Tumblr blog subdomain. aka "example" from "example.tumblr.com".

    Instagram: Instagram username
    '''
    identifier = models.CharField(max_length=255, help_text="""Twitter screenname, Facebook page id, Instagram username,
         or Tumblr subdomain (e.g. "example" from "example.tumblr.com")""")

    raw_identifier = models.CharField(max_length=255, null=True, blank=True)  # The "real", not-necessarily-user-friendly id/entifier

{'fraction_non_alphanumeric': 0.09619238476953908, 'fraction_numerical': 0.006012024048096192, 'mean_word_length': 4.425724637681159, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6853852', 'n_tokens_mistral': 928, 'n_tokens_neox': 859, 'n_words': 264}