<commit_before>from django.utils import timezone
from django.http import Http404
from django.shortcuts import get_object_or_404
from django.contrib.auth.models import User

from rest_framework.views import APIView
from rest_framework.generics import ListAPIView
from rest_framework.response import Response
from rest_framework import status

from assets.models import Asset
from assets.serializers import AssetSerializer
from assets.views.common import get_assets_query, get_simple_search_qry

class AssetList(APIView):
    #queryset = Asset.objects.all()
    #serializer_class = AssetSerializer

    def get_queryset(self):
        appslug = self.kwargs.get('appslug', None)
        cslug = self.kwargs.get('cslug', None)
        tagslug = self.request.query_params.get('tag', None)
        author_name = self.request.query_params.get('author', None)
        version = self.request.query_params.get('appversion', None)

        qry, _t = get_assets_query(appslug=appslug, cslug=cslug, tslug=tagslug, verstring=version)
        if author_name is not None:<commit_msg>Bugfix.<commit_after>from django.utils import timezone
from django.http import Http404
from django.shortcuts import get_object_or_404
from django.contrib.auth.models import User
from django.db.models import Q

from rest_framework.views import APIView
from rest_framework.generics import ListAPIView
from rest_framework.response import Response
from rest_framework import status

from assets.models import Asset
from assets.serializers import AssetSerializer
from assets.views.common import get_assets_query, get_simple_search_qry

class AssetList(APIView):
    #queryset = Asset.objects.all()
    #serializer_class = AssetSerializer

    def get_queryset(self):
        appslug = self.kwargs.get('appslug', None)
        cslug = self.kwargs.get('cslug', None)
        tagslug = self.request.query_params.get('tag', None)
        author_name = self.request.query_params.get('author', None)
        version = self.request.query_params.get('appversion', None)

        qry, _t = get_assets_query(appslug=appslug, cslug=cslug, tslug=tagslug, verstring=version)
        if author_name is not None:
{'fraction_non_alphanumeric': 0.0810560444650301, 'fraction_numerical': 0.00555812876331635, 'mean_word_length': 4.654450261780105, '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': '3913270', 'n_tokens_mistral': 648, 'n_tokens_neox': 640, 'n_words': 161}