<commit_before>package com.ciandt.techgallery.service;

import com.google.api.server.spi.response.BadRequestException;
import com.google.api.server.spi.response.InternalServerErrorException;
import com.google.api.server.spi.response.NotFoundException;
import com.google.appengine.api.users.User;

import com.ciandt.techgallery.persistence.model.Technology;
import com.ciandt.techgallery.service.model.Response;
import com.ciandt.techgallery.service.model.TechnologyFilter;
import com.ciandt.techgallery.service.model.TechnologyResponse;

import java.util.List;

/**
 * Services for Technologies.
 * 
 * @author felipers
 *
 */
public interface TechnologyService {

  /**
   * Service for adding a technology.
   * 
   * @param technology json with technology info.
   * @return technology info or message error.
   * @throws InternalServerErrorException
   * @throws BadRequestException
   */
  public Response addTechnology(final TechnologyResponse technology)
      throws InternalServerErrorException, BadRequestException;

  /**
   * Service for getting all technologies.
   * 
   * @return technologies info or message error.
   * @throws InternalServerErrorException
   * @throws NotFoundException
   */
  public Response getTechnologies() throws InternalServerErrorException, NotFoundException;

  /**
   * Service for getting a technology response.
   * 
   * @param id entity id.
   * @return .
   * @throws NotFoundException .
   */
  public Response getTechnology(final String id) throws NotFoundException;

  /**
   * Service for getting all technologies according a filter.
   * 
   * @param filter entity filter.
   * @return technologies info or message error.
   * @throws InternalServerErrorException .
   * @throws NotFoundException .
   */
  public Response findTechnologiesByFilter(final TechnologyFilter techFilter, User user)
      throws InternalServerErrorException, NotFoundException, BadRequestException;

  /**
   * Service for getting a technology
   * 
   * @param id entity id
   * @return .
   * @throws NotFoundException when entity is not found
   */
  public Technology getTechnologyById(String id) throws NotFoundException;

  public List<String> getOrderOptions(User user);

}<commit_msg>TECG[175]-Order-technology: refactoring interface methods<commit_after>package com.ciandt.techgallery.service;

import com.google.api.server.spi.response.BadRequestException;
import com.google.api.server.spi.response.InternalServerErrorException;
import com.google.api.server.spi.response.NotFoundException;
import com.google.appengine.api.users.User;

import com.ciandt.techgallery.persistence.model.Technology;
import com.ciandt.techgallery.service.model.Response;
import com.ciandt.techgallery.service.model.TechnologyFilter;
import com.ciandt.techgallery.service.model.TechnologyResponse;

import java.util.List;

/**
 * Services for Technologies.
 * 
 * @author felipers
 *
 */
public interface TechnologyService {

  /**
   * Service for adding a technology.
   * 
   * @param technology json with technology info.
   * @return technology info or message error.
   * @throws InternalServerErrorException
   * @throws BadRequestException
   */
  public Response addTechnology(final TechnologyResponse technology)
      throws InternalServerErrorException, BadRequestException;

  /**
   * Service for getting all technologies.
   * 
   * @return technologies info or message error.
   * @throws InternalServerErrorException
   * @throws NotFoundException
   */
  Response getTechnologies() throws InternalServerErrorException, NotFoundException;

  /**
   * Service for getting a technology response.
   * 
   * @param id entity id.
   * @return .
   * @throws NotFoundException .
   */
  Response getTechnology(final String id) throws NotFoundException;

  /**
   * Service for getting all technologies according a filter.
   * 
   * @param filter entity filter.
   * @return technologies info or message error.
   * @throws InternalServerErrorException .
   * @throws NotFoundException .
   */
  Response findTechnologiesByFilter(final TechnologyFilter techFilter, User user)
      throws InternalServerErrorException, NotFoundException, BadRequestException;

  /**
   * Service for getting a technology
   * 
   * @param id entity id
   * @return .
   * @throws NotFoundException when entity is not found
   */
  Technology getTechnologyById(String id) throws NotFoundException;

  List<String> getOrderOptions(User user);

}
{'fraction_non_alphanumeric': 0.0832398474310074, 'fraction_numerical': 0.0006730984967466906, 'mean_word_length': 4.1182548794489096, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5325979', 'n_tokens_mistral': 1225, 'n_tokens_neox': 1169, 'n_words': 314}