<commit_before>from django.db.models import Q
from django.utils import timezone

import django_filters

from core.models import Volume
from api.v2.serializers.details import VolumeSerializer
from core.query import only_current_source
# NOTE: Re-Add code when django_filters is >1.8 Compatible
#import django_filters

from api.v2.serializers.details import VolumeSerializer
from api.v2.views.base import AuthViewSet


class VolumeFilter(django_filters.FilterSet):
    min_size = django_filters.NumberFilter(name="size", lookup_type='gte')
    max_size = django_filters.NumberFilter(name="size", lookup_type='lte')

    class Meta:
        model = Volume
        fields = ['min_size', 'max_size', 'projects']


class VolumeViewSet(AuthViewSet):
    """
    API endpoint that allows providers to be viewed or edited.
    """<commit_msg>Remove old comments<commit_after>from django.db.models import Q
from django.utils import timezone

import django_filters

from core.models import Volume
from api.v2.serializers.details import VolumeSerializer
from core.query import only_current_source

from api.v2.serializers.details import VolumeSerializer
from api.v2.views.base import AuthViewSet


class VolumeFilter(django_filters.FilterSet):
    min_size = django_filters.NumberFilter(name="size", lookup_type='gte')
    max_size = django_filters.NumberFilter(name="size", lookup_type='lte')

    class Meta:
        model = Volume
        fields = ['min_size', 'max_size', 'projects']


class VolumeViewSet(AuthViewSet):
    """
    API endpoint that allows providers to be viewed or edited.
    """
{'fraction_non_alphanumeric': 0.08679245283018867, 'fraction_numerical': 0.005031446540880503, 'mean_word_length': 4.806569343065694, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3356373', 'n_tokens_mistral': 453, 'n_tokens_neox': 447, 'n_words': 128}