<commit_before># -*- coding: utf-8 -*-
from openprocurement.tender.core.utils import optendersresource
from openprocurement.tender.openeu.views.bid_document import TenderEUBidDocumentResource


@optendersresource(name='esco.EU:Tender Bid Documents',
                   collection_path='/tenders/{tender_id}/bids/{bid_id}/documents',
                   path='/tenders/{tender_id}/bids/{bid_id}/documents/{document_id}',
                   procurementMethodType='esco.EU',
                   description="Tender ESCO EU bidder documents")
class TenderESCOEUBidDocumentResource(TenderEUBidDocumentResource):
    """ Tender ESCO EU Bid Document Resource """<commit_msg>Add eu bid documents<commit_after># -*- coding: utf-8 -*-
from openprocurement.tender.core.utils import optendersresource
from openprocurement.tender.openeu.views.bid_document import TenderEUBidDocumentResource
from openprocurement.tender.openeu.utils import (
    bid_financial_documents_resource,
    bid_eligibility_documents_resource,
    bid_qualification_documents_resource,
)


@optendersresource(name='esco.EU:Tender Bid Documents',
                   collection_path='/tenders/{tender_id}/bids/{bid_id}/documents',
                   path='/tenders/{tender_id}/bids/{bid_id}/documents/{document_id}',
                   procurementMethodType='esco.EU',
                   description="Tender ESCO EU bidder documents")
class TenderESCOEUBidDocumentResource(TenderEUBidDocumentResource):
    """ Tender ESCO EU Bid Document Resource """

@bid_financial_documents_resource(
    name='escoEU:Tender Bid Financial Documents',
    collection_path='/tenders/{tender_id}/bids/{bid_id}/financial_documents',
    path='/tenders/{tender_id}/bids/{bid_id}/financial_documents/{document_id}',
    procurementMethodType='esco.EU',
    description="Tender ESCO EU bidder financial documents")
class TenderESCOEUBidFinancialDocumentResource(TenderESCOEUBidDocumentResource):
    """ Tender ESCO EU Bid Financial Documents """
    container = "financialDocuments"
    view_forbidden_states = ['active.tendering', 'active.pre-qualification',
                             'active.pre-qualification.stand-still', 'active.auction']
    view_forbidden_bid_states = ['invalid', 'deleted', 'invalid.pre-qualification', 'unsuccessful']

@bid_eligibility_documents_resource(
    name='escoEU:Tender Bid Eligibility Documents',
    collection_path='/tenders/{tender_id}/bids/{bid_id}/eligibility_documents',
    path='/tenders/{tender_id}/bids/{bid_id}/eligibility_documents/{document_id}',
    procurementMethodType='esco.EU',
    description="Tender ESCO EU bidder eligibility documents")
class TenderESCOEUBidEligibilityDocumentResource(TenderESCOEUBidFinancialDocumentResource):
    """ Tender ESCO EU Bid Eligibility Documents """
    container = "eligibilityDocuments"
    view_forbidden_states = ['active.tendering']
    view_forbidden_bid_states = ['invalid', 'deleted']


@bid_qualification_documents_resource(
    name='escoEU:Tender Bid Qualification Documents',
    collection_path='/tenders/{tender_id}/bids/{bid_id}/qualification_documents',
    path='/tenders/{tender_id}/bids/{bid_id}/qualification_documents/{document_id}',
    procurementMethodType='esco.EU',
    description="Tender ESCO EU bidder qualification documents")
class TenderESCOEUBidQualificationDocumentResource(TenderESCOEUBidFinancialDocumentResource):
    """ Tender ESCO EU Bid Qualification Documents """
    container = "qualificationDocuments"
{'fraction_non_alphanumeric': 0.1089080459770115, 'fraction_numerical': 0.0005747126436781609, 'mean_word_length': 4.9301533219761495, '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': '819465', 'n_tokens_mistral': 1077, 'n_tokens_neox': 1026, 'n_words': 156}