<commit_before>from django import forms
from rest_framework import serializers
from .models import Content, Tag


class TagSerializer(serializers.ModelSerializer):
    class Meta:
        model = Tag


class ContentSerializer(serializers.ModelSerializer):
    authors = serializers.ChoiceField(
        widget=forms.TextInput()
    )
    class Meta:
        model = Content
<commit_msg>Added url field to Content serializer<commit_after>from django import forms
from rest_framework import serializers
from .models import Content, Tag


class TagSerializer(serializers.ModelSerializer):
    class Meta:
        model = Tag


class ContentSerializer(serializers.ModelSerializer):
    url = serializers.HyperlinkedIdentityField(
        view_name='content-detail',
        lookup_field='pk'
    )
    authors = serializers.ChoiceField(
        widget=forms.TextInput()
    )
    class Meta:
        model = Content

{'fraction_non_alphanumeric': 0.06798245614035088, 'fraction_numerical': 0.0, 'mean_word_length': 3.565, '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': '5872353', 'n_tokens_mistral': 235, 'n_tokens_neox': 229, 'n_words': 65}