<commit_before>package org.demyo.web.controller.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fasterxml.jackson.annotation.JsonView;

import org.demyo.model.Author;
import org.demyo.model.ModelView;
import org.demyo.model.beans.AuthorAlbums;
import org.demyo.service.IAuthorService;

@RestController
@RequestMapping("/api/authors")
public class AuthorAPIController extends AbstractModelAPIController<Author> {
	private final IAuthorService service;

	@Autowired
	public AuthorAPIController(IAuthorService service) {
		super(Author.class);
		this.service = service;
	}

	/**
	 * Gets the albums to which a specific author participated.
	 * 
	 * @param authorId The Author internal identifier
	 * @return The structured works
	 */
	@GetMapping("/{modelId}/albums")
	@JsonView(ModelView.Basic.class)
	public AuthorAlbums getAuthorAlbums(@PathVariable("modelId") long id) {
		return service.getAuthorAlbums(id);
	}

	@Override
	protected IAuthorService getService() {
		return service;
	}

}
<commit_msg>Fixed Javadoc issue.<commit_after>package org.demyo.web.controller.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fasterxml.jackson.annotation.JsonView;

import org.demyo.model.Author;
import org.demyo.model.ModelView;
import org.demyo.model.beans.AuthorAlbums;
import org.demyo.service.IAuthorService;

@RestController
@RequestMapping("/api/authors")
public class AuthorAPIController extends AbstractModelAPIController<Author> {
	private final IAuthorService service;

	@Autowired
	public AuthorAPIController(IAuthorService service) {
		super(Author.class);
		this.service = service;
	}

	/**
	 * Gets the albums to which a specific author participated.
	 * 
	 * @param id The Author internal identifier
	 * @return The structured works
	 */
	@GetMapping("/{modelId}/albums")
	@JsonView(ModelView.Basic.class)
	public AuthorAlbums getAuthorAlbums(@PathVariable("modelId") long id) {
		return service.getAuthorAlbums(id);
	}

	@Override
	protected IAuthorService getService() {
		return service;
	}

}

{'fraction_non_alphanumeric': 0.10183378852906749, 'fraction_numerical': 0.0, 'mean_word_length': 5.819148936170213, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5939954', 'n_tokens_mistral': 775, 'n_tokens_neox': 745, 'n_words': 150}