<commit_before>from django.contrib.auth.models import User
from rest_framework import serializers
from .models import Event, Invite, Suggestion, Location


class EventSerializer(serializers.HyperLinkedModelSerializer):
	owner = serializers.Field(source='owner.username')
	invites = serializers.HyperlinkedRelatedField(view_name='invite-detail', many=True)
	
	class Meta:
		model = Event


class IdeaSerializer(serializers.HyperlinkedModelSerializer):
	class Meta:
		model = Idea

class InviteSerializer(serializers.HyperlinkedModelSerializer):
	
	class Meta:
		model = Invite


class LocationSerializer(serializers.HyperlinkedModelSerializer):
	events = serializers.HyperlinkedRelatedField(view_name='event-detail', many=True)
	suggestions = serializers.HyperlinkedRelatedField(view_name='suggestion-detail', many=True)
	
	class Meta:
		model = Location
		fields = ('url', 'x', 'y')

class SuggestionSerializer(serializers.HyperlinkedModelSerializer):
	owner = serializers.Field(source='owner.username')
	
	class Meta:
		model = Suggestion

<commit_msg>Update serializers.py<commit_after>from django.contrib.auth.models import User
from rest_framework import serializers
from .models import Event, Invite, Suggestion, Location


class EventSerializer(serializers.HyperLinkedModelSerializer):
	owner = serializers.Field(source='owner.username')
	invites = serializers.HyperlinkedRelatedField(view_name='invite-detail', many=True)
	
	class Meta:
		model = Event


class IdeaSerializer(serializers.HyperlinkedModelSerializer):
	owner = serializers.Field(source='owner.username')
	suggestions = serializers.HypperlinkedRelatedField(view_name='suggestion-detail', many=True)
	
	class Meta:
		model = Idea

class InviteSerializer(serializers.HyperlinkedModelSerializer):
	user = serializers.Field(source='user.username')
	event = serializers.Field(source='event.description')
	
	class Meta:
		model = Invite


class LocationSerializer(serializers.HyperlinkedModelSerializer):
	events = serializers.HyperlinkedRelatedField(view_name='event-detail', many=True)
	suggestions = serializers.HyperlinkedRelatedField(view_name='suggestion-detail', many=True)
	
	class Meta:
		model = Location
		fields = ('url', 'x', 'y')

class SuggestionSerializer(serializers.HyperlinkedModelSerializer):
	owner = serializers.Field(source='owner.username')
	
	class Meta:
		model = Suggestion


{'fraction_non_alphanumeric': 0.09674693705111956, 'fraction_numerical': 0.0, 'mean_word_length': 7.109589041095891, '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': '4085559', 'n_tokens_mistral': 723, 'n_tokens_neox': 655, 'n_words': 134}