<commit_before>#-*- coding: utf-8 -*-

# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
#   * Rearrange models' order
#   * Make sure each model has one field with primary_key=True
#   * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
# Feel free to rename the models, but don't rename db_table values or field names.
#
# Also note: You'll have to insert the output of 'django-admin.py sqlcustom [app_label]'
# into your database.
from __future__ import unicode_literals

from django.db import models, transaction
from django.db.models import F
from django.conf import settings

from django.db.models.signals import post_save, pre_save
from django.dispatch import receiver
from django.core import serializers
import logging
from django.utils.timezone import now
from django.utils.html import format_html

import logging, datetime

import qrcode
import base64
import StringIO

from utils import send_to_rabbitmq

import json, urllib2

logger = logging.getLogger('pippo')

class Ruolipartecipante(models.Model):

    value = models.CharField(max_length=25)

    class Meta:
        managed = False
        db_table = 'ruolipartecipante'

    def __unicode__(self):
        return self.value

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

class PosixGroup(models.Model):

    name = models.CharField(max_length=32, primary_key=True, db_column="group")
    description = models.CharField(max_length=512, blank=True, db_column="label")

    class Meta:
        verbose_name = "permesso applicazioni"
        verbose_name_plural = "permessi applicazioni"
        db_table = "posix"

    def __unicode__(self):
        rv = self.name
        if self.description:
            rv += u" (=%s)" % self.description
        return rv
<commit_msg>Reference Ruolipartecipante -> primary_key with "code" name<commit_after>#-*- coding: utf-8 -*-

# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
#   * Rearrange models' order
#   * Make sure each model has one field with primary_key=True
#   * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
# Feel free to rename the models, but don't rename db_table values or field names.
#
# Also note: You'll have to insert the output of 'django-admin.py sqlcustom [app_label]'
# into your database.
from __future__ import unicode_literals

from django.db import models, transaction
from django.db.models import F
from django.conf import settings

from django.db.models.signals import post_save, pre_save
from django.dispatch import receiver
from django.core import serializers
import logging
from django.utils.timezone import now
from django.utils.html import format_html

import logging, datetime

import qrcode
import base64
import StringIO

from utils import send_to_rabbitmq

import json, urllib2

logger = logging.getLogger('pippo')

class Ruolipartecipante(models.Model):

    code = models.IntegerField(primary_key=True, db_column="id")
    value = models.CharField(max_length=25)

    class Meta:
        managed = False
        db_table = 'ruolipartecipante'

    def __unicode__(self):
        return self.value

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

class PosixGroup(models.Model):

    name = models.CharField(max_length=32, primary_key=True, db_column="group")
    description = models.CharField(max_length=512, blank=True, db_column="label")

    class Meta:
        verbose_name = "permesso applicazioni"
        verbose_name_plural = "permessi applicazioni"
        db_table = "posix"

    def __unicode__(self):
        rv = self.name
        if self.description:
            rv += u" (=%s)" % self.description
        return rv

{'fraction_non_alphanumeric': 0.11793548387096774, 'fraction_numerical': 0.00567741935483871, 'mean_word_length': 3.1454545454545455, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2075557', 'n_tokens_mistral': 1123, 'n_tokens_neox': 1072, 'n_words': 374}