<commit_before>from django.db import models
from django.contrib import admin


class Cluster(models.Model):

    name = models.CharField(max_length=50)
    description = models.CharField(max_length=1024, null=True, blank=True)

    def __str__(self):
        return self.name

    class Admin:
        pass


class Server(models.Model):

    cluster = models.ForeignKey('Cluster')
    address = models.CharField(max_length=80)
    rest_username = models.CharField(max_length=25)
    rest_password = models.CharField(max_length=50)
    ssh_username = models.CharField(max_length=25)
    ssh_password = models.CharField(max_length=50, null=True, blank=True)
    ssh_key = models.CharField(max_length=4096, null=True, blank=True)
    description = models.CharField(max_length=1024, null=True, blank=True)

    def __str__(self):
        return self.address

    class Admin:
        pass


class Bucket(models.Model):

    TYPES = (("Couchbase", "Couchbase"), ("Memcached", "Memcached"))

    server = models.ForeignKey('Server')
    name = models.CharField(max_length=25, default="default")<commit_msg>fix primary keys in models<commit_after>from django.db import models
from django.contrib import admin


class Cluster(models.Model):

    name = models.CharField(max_length=50, primary_key=True)
    description = models.CharField(max_length=1024, null=True, blank=True)

    def __str__(self):
        return self.name

    class Admin:
        pass


class Server(models.Model):

    cluster = models.ForeignKey('Cluster')
    address = models.CharField(max_length=80, primary_key=True)
    rest_username = models.CharField(max_length=25)
    rest_password = models.CharField(max_length=50)
    ssh_username = models.CharField(max_length=25)
    ssh_password = models.CharField(max_length=50, null=True, blank=True)
    ssh_key = models.CharField(max_length=4096, null=True, blank=True)
    description = models.CharField(max_length=1024, null=True, blank=True)

    def __str__(self):
        return self.address

    class Admin:
        pass


class Bucket(models.Model):

    class Meta:

        unique_together = ["name", "server"]

    TYPES = (("Couchbase", "Couchbase"), ("Memcached", "Memcached"))

    server = models.ForeignKey('Server')
    name = models.CharField(max_length=25, default="default")
{'fraction_non_alphanumeric': 0.11548442906574395, 'fraction_numerical': 0.02249134948096886, 'mean_word_length': 4.151447661469933, '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': '1975209', 'n_tokens_mistral': 769, 'n_tokens_neox': 707, 'n_words': 142}