<commit_before>package com.example.e4.rcp.todo.ownannotation.internal;

import javax.inject.Inject;

import org.eclipse.e4.core.di.suppliers.ExtendedObjectSupplier;
import org.eclipse.e4.core.di.suppliers.IObjectDescriptor;
import org.eclipse.e4.core.di.suppliers.IRequestor;

import com.example.e4.rcp.todo.model.ITodoService;
import com.example.e4.rcp.todo.model.Todo;
import com.example.e4.rcp.todo.ownannotation.DirectTodo;

public class DirectTodoObjectSupplier extends ExtendedObjectSupplier {
	
	@Inject
	private ITodoService todoService;
	
	@Override
	public Object get(IObjectDescriptor descriptor, IRequestor requestor, boolean track, boolean group) {
		System.out.println("Own annotation processor");

		// get the DirectTodo from the IObjectDescriptor 
		DirectTodo uniqueTodo = descriptor.getQualifier(DirectTodo.class);
		
		// get the id from the DirectTodo (default is 0)
		long id = uniqueTodo.id();
		
		// get the Todo, which has the given id or null, if there is no Todo with the given id
		Todo todo = todoService.getTodo(id);
		
		return todo;
	}
}<commit_msg>[OwnAnnotation] Remove syso from DirectTodoObjectSupplier<commit_after>package com.example.e4.rcp.todo.ownannotation.internal;

import javax.inject.Inject;

import org.eclipse.e4.core.di.suppliers.ExtendedObjectSupplier;
import org.eclipse.e4.core.di.suppliers.IObjectDescriptor;
import org.eclipse.e4.core.di.suppliers.IRequestor;

import com.example.e4.rcp.todo.model.ITodoService;
import com.example.e4.rcp.todo.model.Todo;
import com.example.e4.rcp.todo.ownannotation.DirectTodo;

public class DirectTodoObjectSupplier extends ExtendedObjectSupplier {
	
	@Inject
	private ITodoService todoService;
	
	@Override
	public Object get(IObjectDescriptor descriptor, IRequestor requestor, boolean track, boolean group) {
		// get the DirectTodo from the IObjectDescriptor 
		DirectTodo uniqueTodo = descriptor.getQualifier(DirectTodo.class);
		
		// get the id from the DirectTodo (default is 0)
		long id = uniqueTodo.id();
		
		// get the Todo, which has the given id or null, if there is no Todo with the given id
		Todo todo = todoService.getTodo(id);
		
		return todo;
	}
}
{'fraction_non_alphanumeric': 0.09133055169216504, 'fraction_numerical': 0.007417709782104775, 'mean_word_length': 4.754666666666667, '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': '7065640', 'n_tokens_mistral': 739, 'n_tokens_neox': 689, 'n_words': 169}