<commit_before>from tastypie.resources import ModelResource
from models import Event

from mozcal.base.serializers import MozcalSerializer


class EventResource(ModelResource):
  class Meta:
    queryset = Event.objects.all()
    filtering = {
      "title": ('startswith',),
    }
    allowed_methods = ['get']

    serializer = MozcalSerializer(formats=['json', 'csv'])<commit_msg>Exclude uri fields from EventResource<commit_after>from tastypie.resources import ModelResource
from models import Event

from mozcal.base.serializers import MozcalSerializer


class EventResource(ModelResource):
  class Meta:
    queryset = Event.objects.all()
    filtering = {
      "title": ('startswith',),
    }
    allowed_methods = ['get']
    include_resource_uri = False
    include_absolute_url = False

    serializer = MozcalSerializer(formats=['json', 'csv'])
{'fraction_non_alphanumeric': 0.102803738317757, 'fraction_numerical': 0.0, 'mean_word_length': 4.529032258064516, 'pattern_counts': {'":': 2, '<': 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': '6051853', 'n_tokens_mistral': 247, 'n_tokens_neox': 242, 'n_words': 59}