<commit_before>from django.conf.urls import include, url
from rest_framework.routers import DefaultRouter
from rest_framework_proxy.views import ProxyView

from invoice_ar import views

router = DefaultRouter()
router.register(r'contacts', views.ContactInvoiceARViewSet)
router.register(r'companies', views.CompanyInvoiceARViewSet)

app_name = 'invoice_ar'
urlpatterns = [
    url(
        r'^afipws/cuit/(?P<cuit>[0-9]+)/$',
        ProxyView.as_view(source='sr-padron/v2/persona/%(cuit)s'),
        name='afipws-cuit'
    ),
    url(
        r'^afipws/dni/(?P<dni>[0-9]+)/$',
        ProxyView.as_view(source='sr-padron/v2/personas/%(dni)s'),
        name='afipws-dni'
    ),
    url(r'^', include(router.urls)),
]
<commit_msg>IMP invoice_ar/api_urls.py Added the new classes to api_urls.py routers.<commit_after>from django.conf.urls import include, url
from rest_framework.routers import DefaultRouter
from rest_framework_proxy.views import ProxyView

from invoice_ar import views

router = DefaultRouter()
router.register(r'contacts', views.ContactInvoiceARViewSet)
router.register(r'companies', views.CompanyInvoiceARViewSet)
router.register(r'pointofsales', views.PointOfSaleViewSet)
router.register(r'invoicetypes', views.InvoiceTypeViewSet)
router.register(r'invoices', views.InvoiceARViewSet)
router.register(
    r'invoiceshavevatsubtotals',
    views.InvoiceARHasVATSubtotalViewSet
)

app_name = 'invoice_ar'
urlpatterns = [
    url(
        r'^afipws/cuit/(?P<cuit>[0-9]+)/$',
        ProxyView.as_view(source='sr-padron/v2/persona/%(cuit)s'),
        name='afipws-cuit'
    ),
    url(
        r'^afipws/dni/(?P<dni>[0-9]+)/$',
        ProxyView.as_view(source='sr-padron/v2/personas/%(dni)s'),
        name='afipws-dni'
    ),
    url(r'^', include(router.urls)),
]

{'fraction_non_alphanumeric': 0.1493542953396968, 'fraction_numerical': 0.00673778775968557, 'mean_word_length': 4.483076923076923, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1320746', 'n_tokens_mistral': 675, 'n_tokens_neox': 660, 'n_words': 89}