Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

        def valid_organisation(gd):
    return gd['century'] in (None, 16) and \
        int(gd['month']) >= 20 and \
        gd['sign'] in (None, '-') and \
        gd['year'][0] in ('2', '5', '7', '8', '9')  # group identifier
        


src/d/j/django-localflavor-1.0/localflavor/se/forms.py   django-localflavor(Download)
from django.core.validators import EMPTY_VALUES
from .se_counties import COUNTY_CHOICES
from .utils import (id_number_checksum, validate_id_birthday,
                    format_personal_id_number, valid_organisation, format_organisation_number)
 
 
        # First: check if this is a real organisation_number
        if valid_organisation(gd):
            return format_organisation_number(gd)
 

src/d/j/django-localflavor-HEAD/localflavor/se/forms.py   django-localflavor(Download)
from django.core.validators import EMPTY_VALUES
from .se_counties import COUNTY_CHOICES
from .utils import (id_number_checksum, validate_id_birthday,
                    format_personal_id_number, valid_organisation, format_organisation_number)
 
 
        # First: check if this is a real organisation_number
        if valid_organisation(gd):
            return format_organisation_number(gd)