<commit_before>import os
import hurry.filesize
import base64
from django.db import models

# Dependency Package Source
PACKAGE_SOURCE = (
    ('D', 'Database', 'default'),
    ('F', 'File', 'info'),
)
PACKAGE_SOURCE_CODES = {}
PACKAGE_SOURCE_NAMES = {}
temp = []
for x, y, z in PACKAGE_SOURCE:
    globals()['PACKAGE_SOURCE_' + y.upper()] = x
    PACKAGE_SOURCE_CODES[x] = z
    PACKAGE_SOURCE_NAMES[x] = y
    temp.append((x,y))
PACKAGE_SOURCE = temp
globals()['PACKAGE_SOURCE_CODES'] = PACKAGE_SOURCE_CODES

# Deployment Attempt Status
ATTEMPT_STATUS = (
    ('DP', 'Deploying', 'info'),
    ('DE', 'Download Error', 'danger'),
    ('MD', 'Missing Dependencies', 'danger'),
    ('MR', 'Missing Required Files', 'danger'),
    ('RE', 'Running Error', 'danger'),
    ('OK', 'Success', 'success')
)
ATTEMPT_STATUS_CODES = {}
ATTEMPT_STATUS_NAMES = {}
temp = []
for x, y, z in ATTEMPT_STATUS:
    globals()['ATTEMPT_STATUS_' + y.replace(" ", "_").upper()] = x
    ATTEMPT_STATUS_CODES[x] = z
    ATTEMPT_STATUS_NAMES[x] = y
    temp.append((x,y))
ATTEMPT_STATUS = temp
globals()['ATTEMPT_STATUS_CODES'] = ATTEMPT_STATUS_CODES

# Login or Regsiter Status
USER_STATUS = (
    ('OK', 'Success', 'info'),
    ('ER', 'Fail', 'danger'),
    ('NF', 'Not found', 'warning'),
    ('UN', 'Unknown', 'default'),
)
USER_STATUS_CODES = {}
USER_STATUS_NAMES = {}
temp = []
for x, y, z in USER_STATUS:
    globals()['USER_STATUS_' + y.replace(" ", "_").upper()] = x
    USER_STATUS_CODES[x] = z
    USER_STATUS_NAMES[x] = y
    temp.append((x,y))
USER_STATUS = temp
globals()['USER_STATUS_CODES'] = USER_STATUS_CODES

# ----------------------------------------------------------------------------

class ProjectType(models.Model):
    name = models.CharField(max_length=16)
    filename = models.CharField(max_length=200)
    deployer_class = models.CharField(max_length=16)
    default_port = models.PositiveSmallIntegerField(null=False)<commit_msg>fix the color for registeration and login form<commit_after>import os
import hurry.filesize
import base64
from django.db import models

# Dependency Package Source
PACKAGE_SOURCE = (
    ('D', 'Database', 'default'),
    ('F', 'File', 'info'),
)
PACKAGE_SOURCE_CODES = {}
PACKAGE_SOURCE_NAMES = {}
temp = []
for x, y, z in PACKAGE_SOURCE:
    globals()['PACKAGE_SOURCE_' + y.upper()] = x
    PACKAGE_SOURCE_CODES[x] = z
    PACKAGE_SOURCE_NAMES[x] = y
    temp.append((x,y))
PACKAGE_SOURCE = temp
globals()['PACKAGE_SOURCE_CODES'] = PACKAGE_SOURCE_CODES

# Deployment Attempt Status
ATTEMPT_STATUS = (
    ('DP', 'Deploying', 'info'),
    ('DE', 'Download Error', 'danger'),
    ('MD', 'Missing Dependencies', 'danger'),
    ('MR', 'Missing Required Files', 'danger'),
    ('RE', 'Running Error', 'danger'),
    ('OK', 'Success', 'success')
)
ATTEMPT_STATUS_CODES = {}
ATTEMPT_STATUS_NAMES = {}
temp = []
for x, y, z in ATTEMPT_STATUS:
    globals()['ATTEMPT_STATUS_' + y.replace(" ", "_").upper()] = x
    ATTEMPT_STATUS_CODES[x] = z
    ATTEMPT_STATUS_NAMES[x] = y
    temp.append((x,y))
ATTEMPT_STATUS = temp
globals()['ATTEMPT_STATUS_CODES'] = ATTEMPT_STATUS_CODES

# Login or Regsiter Status
USER_STATUS = (
    ('OK', 'Success', 'success'),
    ('ER', 'Fail', 'danger'),
    ('NF', 'Not found', 'warning'),
    ('UN', 'Unknown', 'default'),
)
USER_STATUS_CODES = {}
USER_STATUS_NAMES = {}
temp = []
for x, y, z in USER_STATUS:
    globals()['USER_STATUS_' + y.replace(" ", "_").upper()] = x
    USER_STATUS_CODES[x] = z
    USER_STATUS_NAMES[x] = y
    temp.append((x,y))
USER_STATUS = temp
globals()['USER_STATUS_CODES'] = USER_STATUS_CODES

# ----------------------------------------------------------------------------

class ProjectType(models.Model):
    name = models.CharField(max_length=16)
    filename = models.CharField(max_length=200)
    deployer_class = models.CharField(max_length=16)
    default_port = models.PositiveSmallIntegerField(null=False)
{'fraction_non_alphanumeric': 0.20194771911840081, 'fraction_numerical': 0.0046130189646335215, 'mean_word_length': 3.794840294840295, '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': '7103423', 'n_tokens_mistral': 1399, 'n_tokens_neox': 1371, 'n_words': 286}