<commit_before>import json
import time
import logging
from time import mktime
from datetime import datetime
from django.db import models
from django.utils.timezone import utc
from django.db.models.signals import post_save
from django.dispatch import receiver
from urlparse import urlparse, parse_qsl, parse_qs
from social.utils.facebook import parse_facebook_video_embed, parse_facebook_picture_embed
from social.utils.twitter import parse_twitter_video_embed, parse_twitter_picture_embed
from social.utils.instagram import parse_instagram_video_embed,\
    parse_instagram_picture_embed

from urlparse import parse_qs, urlparse

from taggit.managers import TaggableManager
from .utils.editable_tags import editable_tags
from .services.facebook import get_id_from_username
from .social.services.instagram import InstagramPublicAPI

logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__)

MESSAGE_TYPE =  (
                    ('post', 'Post'),
                    ('reply', 'Reply'),

                )

MEDIA_TYPE =  (
                    ('text', 'Text'),
                    ('photo', 'Photo'),
                    ('video', 'Video'),
                    ('vine', 'Vine'),
                    ('link', 'Link'),
                    ('unknown', 'Unkown'),
                )

NETWORK =       (
                    ('facebook', 'Facebook'),
                    ('twitter', 'Twitter'),
                    ('rss', 'Rich Site Summary'),
                    ('instagram', 'Instagram'),
                )

PENDING = 10<commit_msg>proper relative imports try II :crocodile:<commit_after>import json
import time
import logging
from time import mktime
from datetime import datetime
from django.db import models
from django.utils.timezone import utc
from django.db.models.signals import post_save
from django.dispatch import receiver
from urlparse import urlparse, parse_qsl, parse_qs
from social.utils.facebook import parse_facebook_video_embed, parse_facebook_picture_embed
from social.utils.twitter import parse_twitter_video_embed, parse_twitter_picture_embed
from social.utils.instagram import parse_instagram_video_embed,\
    parse_instagram_picture_embed

from urlparse import parse_qs, urlparse

from taggit.managers import TaggableManager
from .utils.editable_tags import editable_tags
from .services.facebook import get_id_from_username
from .services.instagram import InstagramPublicAPI

logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__)

MESSAGE_TYPE =  (
                    ('post', 'Post'),
                    ('reply', 'Reply'),

                )

MEDIA_TYPE =  (
                    ('text', 'Text'),
                    ('photo', 'Photo'),
                    ('video', 'Video'),
                    ('vine', 'Vine'),
                    ('link', 'Link'),
                    ('unknown', 'Unkown'),
                )

NETWORK =       (
                    ('facebook', 'Facebook'),
                    ('twitter', 'Twitter'),
                    ('rss', 'Rich Site Summary'),
                    ('instagram', 'Instagram'),
                )

PENDING = 10
{'fraction_non_alphanumeric': 0.09415167095115681, 'fraction_numerical': 0.0012853470437017994, 'mean_word_length': 2.4473975636766334, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1826113', 'n_tokens_mistral': 826, 'n_tokens_neox': 784, 'n_words': 216}