def get_events(request):
    events = []

    query = Q(expiry_date__isnull=False)
    service_records = Object.filter_by_request(
        request, manager=ItemServicing.objects.filter(query))
    for record in service_records:
        if record.expiry_date:
            old = record.expiry_date
            new_expiry_date = datetime.datetime(
                year=old.year, month=old.month, day=old.day, hour=12, minute=0, second=0)
            event = EventRenderer(
                record.name, None, new_expiry_date, record.get_absolute_url())
        event.css_class += " infrastructure-calendar-servicing"
        events.append(event)

    return events
Parse a sentence.
dataset/ETHPy150Open treeio/treeio/treeio/infrastructure/events.py/get_events--crossover with--dataset/ETHPy150Open nltk/nltk/nltk/parse/dependencygraph.py/DependencyGraph._parse