<commit_before>from rest_framework import serializers
from workflow.models import Program, Sector, ProjectType, Office, SiteProfile, Country, ProjectComplete, \
    ProjectAgreement, Stakeholder, Capacity, Evaluate, ProfileType, \
    Province, District, AdminLevelThree, Village, StakeholderType, Contact, Documentation, LoggedUser, Checklist
from indicators.models import Indicator, ReportingFrequency, TolaUser, IndicatorType, Objective, DisaggregationType, \
    Level, ExternalService, ExternalServiceRecord, StrategicObjective, CollectedData, TolaTable, DisaggregationValue
from django.contrib.auth.models import User


class UserSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = User
        fields = ('url', 'username', 'email', 'is_staff')


class ProgramSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = Program
        fields = '__all__'


class SectorSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = Sector
        fields = '__all__'


class ProjectTypeSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = ProjectType
        fields = '__all__'


class OfficeSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = Office
        fields = '__all__'


class SiteProfileSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = SiteProfile
        fields = '__all__'


class CompleteSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = ProjectComplete
        fields = '__all__'


class AgreementSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = ProjectAgreement
        fields=(
                'id',
                'program',
                'date_of_request',
                'project_name',
                'project_type',
                'project_activity',
                'project_description',
                'site',
                'activity_code',
                'office',
                'sector',
                'project_design',
                'account_code',
                'lin_code',
                'stakeholder',
                'effect_or_impact',
                'expected_start_date',
                'expected_end_date',
                'expected_duration',
                'total_estimated_budget',
                'mc_estimated_budget',
                'local_total_estimated_budget',
                'local_mc_estimated_budget',
                'exchange_rate',
                'exchange_rate_date',
                'estimation_date',
                'estimated_by',
                'estimated_by_date',
                'checked_by',
                'checked_by_date',
                'reviewed_by',
                'reviewed_by_date',
                'finance_reviewed_by',
                'finance_reviewed_by_date',
                'me_reviewed_by',
                'me_reviewed_by_date',
                'capacity',
                'evaluate',
                'approval',
                'approved_by',
                'approved_by_date',
                'approval_submitted_by',
                'approval_remarks',
                'justification_background',
                'risks_assumptions',
                'justification_description_community_selection',
                'description_of_project_activities',
                'description_of_government_involvement',
                'description_of_community_involvement',
                'community_project_description')


class CountrySerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = Country
        fields = '__all__'


class IndicatorSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = Indicator
        fields = '__all__'


class ReportingFrequencySerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = ReportingFrequency
        fields = '__all__'


class TolaUserSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = TolaUser
        fields = ('url', 'name','country', 'countries')

class IndicatorTypeSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = IndicatorType
        fields = '__all__'


class ObjectiveSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = Objective
        fields = '__all__'
<commit_msg>return all fields for a TolaUser api<commit_after>from rest_framework import serializers
from workflow.models import Program, Sector, ProjectType, Office, SiteProfile, Country, ProjectComplete, \
    ProjectAgreement, Stakeholder, Capacity, Evaluate, ProfileType, \
    Province, District, AdminLevelThree, Village, StakeholderType, Contact, Documentation, LoggedUser, Checklist
from indicators.models import Indicator, ReportingFrequency, TolaUser, IndicatorType, Objective, DisaggregationType, \
    Level, ExternalService, ExternalServiceRecord, StrategicObjective, CollectedData, TolaTable, DisaggregationValue
from django.contrib.auth.models import User


class UserSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = User
        fields = ('url', 'username', 'email', 'is_staff')


class ProgramSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = Program
        fields = '__all__'


class SectorSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = Sector
        fields = '__all__'


class ProjectTypeSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = ProjectType
        fields = '__all__'


class OfficeSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = Office
        fields = '__all__'


class SiteProfileSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = SiteProfile
        fields = '__all__'


class CompleteSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = ProjectComplete
        fields = '__all__'


class AgreementSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = ProjectAgreement
        fields=(
                'id',
                'program',
                'date_of_request',
                'project_name',
                'project_type',
                'project_activity',
                'project_description',
                'site',
                'activity_code',
                'office',
                'sector',
                'project_design',
                'account_code',
                'lin_code',
                'stakeholder',
                'effect_or_impact',
                'expected_start_date',
                'expected_end_date',
                'expected_duration',
                'total_estimated_budget',
                'mc_estimated_budget',
                'local_total_estimated_budget',
                'local_mc_estimated_budget',
                'exchange_rate',
                'exchange_rate_date',
                'estimation_date',
                'estimated_by',
                'estimated_by_date',
                'checked_by',
                'checked_by_date',
                'reviewed_by',
                'reviewed_by_date',
                'finance_reviewed_by',
                'finance_reviewed_by_date',
                'me_reviewed_by',
                'me_reviewed_by_date',
                'capacity',
                'evaluate',
                'approval',
                'approved_by',
                'approved_by_date',
                'approval_submitted_by',
                'approval_remarks',
                'justification_background',
                'risks_assumptions',
                'justification_description_community_selection',
                'description_of_project_activities',
                'description_of_government_involvement',
                'description_of_community_involvement',
                'community_project_description')


class CountrySerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = Country
        fields = '__all__'


class IndicatorSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = Indicator
        fields = '__all__'


class ReportingFrequencySerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = ReportingFrequency
        fields = '__all__'


class TolaUserSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = TolaUser
        fields = '__all__'

class IndicatorTypeSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = IndicatorType
        fields = '__all__'


class ObjectiveSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = Objective
        fields = '__all__'

{'fraction_non_alphanumeric': 0.07476531068395172, 'fraction_numerical': 0.0, 'mean_word_length': 2.192650731359258, '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': '5481130', 'n_tokens_mistral': 2396, 'n_tokens_neox': 2151, 'n_words': 432}