<commit_before>from django.shortcuts import redirect, render, reverse
from django.views import generic

from core import models

from . import forms


class Option:
    def __init__(self, name, viewname, args=None, kwargs=None, menu=None):
        self.name = name
        self.url = reverse(viewname, args, kwargs) if viewname else False
        self.menu = menu

    def is_current(self):
        return self.menu.current == self.name


class MenuBar:
    def __init__(self, current):
        self.current = current

    def get_options(self):
        return [
            Option('Personas', 'person-list', menu=self),
            Option('Detalle persona', None, menu=self),
            Option('Detalle destinatario', None, menu=self),
            Option('Detalle Voluntario', None, menu=self),
            Option('Socios', 'membership-list', menu=self),
            Option('Detalle socio', None, menu=self),
            Option('Nuevo socio individual', 'basicformnewperson', menu=self),
            Option('Nueva familia', 'basicformnewfamily', menu=self),
        ]
<commit_msg>modifica option Detalle voluntario<commit_after>from django.shortcuts import redirect, render, reverse
from django.views import generic

from core import models

from . import forms


class Option:
    def __init__(self, name, viewname, args=None, kwargs=None, menu=None):
        self.name = name
        self.url = reverse(viewname, args, kwargs) if viewname else False
        self.menu = menu

    def is_current(self):
        return self.menu.current == self.name


class MenuBar:
    def __init__(self, current):
        self.current = current

    def get_options(self):
        return [
            Option('Personas', 'person-list', menu=self),
            Option('Detalle persona', None, menu=self),
            Option('Detalle destinatario', None, menu=self),
            Option('Detalle voluntario', None, menu=self),
            Option('Socios', 'membership-list', menu=self),
            Option('Detalle socio', None, menu=self),
            Option('Nuevo socio individual', 'basicformnewperson', menu=self),
            Option('Nueva familia', 'basicformnewfamily', menu=self),
        ]

{'fraction_non_alphanumeric': 0.11350114416475973, 'fraction_numerical': 0.0, 'mean_word_length': 2.875886524822695, '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': '2706753', 'n_tokens_mistral': 610, 'n_tokens_neox': 606, 'n_words': 171}