test_class.declarator: metricService
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private MetricService metricService;
test_class.type: MetricService
test_class.var_name: metricService
test_class.declarator: pesHistoryRepository
test_class.modifier: @MockBean
      private
test_class.original_string: @MockBean
      private PesHistoryRepository pesHistoryRepository;
test_class.type: PesHistoryRepository
test_class.var_name: pesHistoryRepository
test_class.declarator: entityManager
test_class.modifier: @MockBean
      private
test_class.original_string: @MockBean
      private EntityManager entityManager;
test_class.type: EntityManager
test_class.var_name: entityManager
test_class.file: pes-service/src/test/java/fr/sictiam/stela/pesservice/service/MetricServiceTest.java
test_class.identifier: MetricServiceTest
test_case.body: @Test
      public void getNumberOfPes() {
  
      }
test_case.class_method_signature: MetricServiceTest.getNumberOfPes()
test_case.full_signature: @Test public void getNumberOfPes()
test_case.identifier: getNumberOfPes
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getNumberOfPes()
focal_class.declarator: pesHistoryRepository
focal_class.modifier: private final
focal_class.original_string: private final PesHistoryRepository pesHistoryRepository;
focal_class.type: PesHistoryRepository
focal_class.var_name: pesHistoryRepository
focal_class.file: pes-service/src/main/java/fr/sictiam/stela/pesservice/service/MetricService.java
focal_class.identifier: MetricService
focal_class.class_method_signature: MetricService.MetricService(PesHistoryRepository pesHistoryRepository)
focal_class.full_signature: @Autowired public  MetricService(PesHistoryRepository pesHistoryRepository)
focal_class.identifier: MetricService
focal_class.modifiers: @Autowired public
focal_class.parameters: (PesHistoryRepository pesHistoryRepository)
focal_class.signature:  MetricService(PesHistoryRepository pesHistoryRepository)
focal_class.class_method_signature: MetricService.getNumberOfPes(LocalDateTime fromLocalDate, LocalDateTime toLocalDate, StatusType statusType)
focal_class.full_signature: public Map<String, Long> getNumberOfPes(LocalDateTime fromLocalDate, LocalDateTime toLocalDate, StatusType statusType)
focal_class.identifier: getNumberOfPes
focal_class.modifiers: public
focal_class.parameters: (LocalDateTime fromLocalDate, LocalDateTime toLocalDate, StatusType statusType)
focal_class.return: Map<String, Long>
focal_class.signature: Map<String, Long> getNumberOfPes(LocalDateTime fromLocalDate, LocalDateTime toLocalDate, StatusType statusType)
focal_class.class_method_signature: MetricService.getNumberOfPesWithSample(LocalDateTime fromLocalDate, LocalDateTime toLocalDate, StatusType statusType, String sample)
focal_class.full_signature: public Map<String, List<Map<LocalDateTime, Long>>> getNumberOfPesWithSample(LocalDateTime fromLocalDate, LocalDateTime toLocalDate, StatusType statusType, String sample)
focal_class.identifier: getNumberOfPesWithSample
focal_class.modifiers: public
focal_class.parameters: (LocalDateTime fromLocalDate, LocalDateTime toLocalDate, StatusType statusType, String sample)
focal_class.return: Map<String, List<Map<LocalDateTime, Long>>>
focal_class.signature: Map<String, List<Map<LocalDateTime, Long>>> getNumberOfPesWithSample(LocalDateTime fromLocalDate, LocalDateTime toLocalDate, StatusType statusType, String sample)
focal_method.body: public Map<String, Long> getNumberOfPes(LocalDateTime fromLocalDate, LocalDateTime toLocalDate, StatusType statusType) {
          Map<String, Long> listNumberPesByType = new HashMap<>();
  
          if(statusType == null) {
              for (StatusType type : StatusType.values()) {
                  listNumberPesByType.put(
                          type.name(),
                          pesHistoryRepository.countByDateBetweenAndStatus(fromLocalDate, toLocalDate, type));
              }
          } else {
              listNumberPesByType.put(
                      statusType.name(),
                      pesHistoryRepository.countByDateBetweenAndStatus(fromLocalDate, toLocalDate, statusType));
          }
          return listNumberPesByType;
      }
focal_method.class_method_signature: MetricService.getNumberOfPes(LocalDateTime fromLocalDate, LocalDateTime toLocalDate, StatusType statusType)
focal_method.full_signature: public Map<String, Long> getNumberOfPes(LocalDateTime fromLocalDate, LocalDateTime toLocalDate, StatusType statusType)
focal_method.identifier: getNumberOfPes
focal_method.invocations: values put name countByDateBetweenAndStatus put name countByDateBetweenAndStatus
focal_method.modifiers: public
focal_method.parameters: (LocalDateTime fromLocalDate, LocalDateTime toLocalDate, StatusType statusType)
focal_method.return: Map<String, Long>
focal_method.signature: Map<String, Long> getNumberOfPes(LocalDateTime fromLocalDate, LocalDateTime toLocalDate, StatusType statusType)