def update_position_history(request, obj, position, action, message=None):
    if not position_settings.UPDATE_POSITION_HISTORY:
        return
    
    if obj and not message:
        if action == ADDITION:
            action_message = 'added'
        elif action == DELETION:
            action_message = 'removed'
        else:
            action_message = 'changed'
        message = 'Position Content %s was %s.' %(obj, action_message)
        
    if not message:
        "Empty message."
        
    LogEntry.objects.log_action(
        user_id         = request.user.pk, 
        content_type_id = ContentType.objects.get_for_model(position).pk,
        object_id       = position.pk,
        object_repr     = force_unicode(position), 
        action_flag     = action,
        change_message  = message)
Extract dependency triples of the form:
dataset/ETHPy150Open callowayproject/django-kamasutra/positions/views.py/update_position_history--crossover with--dataset/ETHPy150Open nltk/nltk/nltk/parse/dependencygraph.py/DependencyGraph.triples