<commit_before>from rest_framework import serializers
from django.contrib.auth.models import User, Group

from lupsEdgeServer.models import *

# Serializers define the API representation.
class GroupSerializer(serializers.ModelSerializer):
    class Meta:
        model = Group
        fields = '__all__'

class UserSerializer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = ('url', 'username', 'email', 'is_staff', 'groups')

class ManufactureSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Manufacturer
        fields = '__all__'

class GatewaySerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Gateway
        fields = '__all__'

class ActuatorSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Actuator
        fields = '__all__'

class BaseParameterSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = BaseParameter
        fields = '__all__'

class ContextServerSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = ContextServer
        fields = '__all__'<commit_msg>Change User Serializer to hyperlinked serializer<commit_after>from rest_framework import serializers
from django.contrib.auth.models import User, Group

from lupsEdgeServer.models import *

# Serializers define the API representation.
class GroupSerializer(serializers.ModelSerializer):
    class Meta:
        model = Group
        fields = '__all__'

class UserSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = User
        fields = ('url', 'username', 'email', 'is_staff', 'groups')

class ManufactureSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Manufacturer
        fields = '__all__'

class GatewaySerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Gateway
        fields = '__all__'

class ActuatorSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Actuator
        fields = '__all__'

class BaseParameterSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = BaseParameter
        fields = '__all__'

class ContextServerSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = ContextServer
        fields = '__all__'
{'fraction_non_alphanumeric': 0.07357859531772576, 'fraction_numerical': 0.0, 'mean_word_length': 3.6921568627450982, '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': '3103645', 'n_tokens_mistral': 620, 'n_tokens_neox': 604, 'n_words': 158}