<commit_before>package io.microgenie.resources;

import io.microgenie.core.Book;
import io.microgenie.data.BookRepository;

import java.util.UUID;

import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;

import com.codahale.metrics.annotation.Timed;
import com.wordnik.swagger.annotations.Api;
import com.wordnik.swagger.annotations.ApiOperation;
import com.wordnik.swagger.annotations.ApiResponses;
import com.wordnik.swagger.annotations.ApiResponse;


/***
 * @author shawn
 */
@Path(value="users")
@Api(value="users", description="Create, Update, Read, Delete Books", consumes="application/json", produces="application/json")
@Consumes(value="application/json")
@Produces(value="application/json")
public class BookResource extends BaseResource{
	
	private BookRepository bookRepository;
	
	public BookResource(BookRepository bookRepository) {
		this.bookRepository = bookRepository;
	}
	

	/**
	 * Get the item by it's id
	 * @param id<commit_msg>Update BookResource.java<commit_after>package io.microgenie.resources;

import io.microgenie.core.Book;
import io.microgenie.data.BookRepository;

import java.util.UUID;

import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;

import com.codahale.metrics.annotation.Timed;
import com.wordnik.swagger.annotations.Api;
import com.wordnik.swagger.annotations.ApiOperation;
import com.wordnik.swagger.annotations.ApiResponses;
import com.wordnik.swagger.annotations.ApiResponse;


/***
 * @author shawn
 */
@Path(value="books")
@Api(value="books", description="Create, Update, Read, Delete Books", consumes="application/json", produces="application/json")
@Consumes(value="application/json")
@Produces(value="application/json")
public class BookResource extends BaseResource{
	
	private BookRepository bookRepository;
	
	public BookResource(BookRepository bookRepository) {
		this.bookRepository = bookRepository;
	}
	

	/**
	 * Get the item by it's id
	 * @param id
{'fraction_non_alphanumeric': 0.1282051282051282, 'fraction_numerical': 0.0, 'mean_word_length': 5.704225352112676, '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': '4556577', 'n_tokens_mistral': 779, 'n_tokens_neox': 756, 'n_words': 144}