test_class.file: JavaElasticSearchExperiment/src/test/java/csv/converter/IgnoreMissingValuesConverterTest.java
test_class.identifier: IgnoreMissingValuesConverterTest
test_case.body: @Test
      public void returns_null_if_value_is_missing() throws Exception {
  
          IgnoreMissingValuesConverter converter = new IgnoreMissingValuesConverter("M", "m");
  
          Assert.assertEquals(null, converter.convert(""));
          Assert.assertEquals(null, converter.convert("M"));
          Assert.assertEquals(null, converter.convert("m"));
  
          Assert.assertEquals(1.0f, converter.convert("1.0"), 1e-3);
      }
test_case.class_method_signature: IgnoreMissingValuesConverterTest.returns_null_if_value_is_missing()
test_case.full_signature: @Test public void returns_null_if_value_is_missing()
test_case.identifier: returns_null_if_value_is_missing
test_case.invocations: assertEquals convert assertEquals convert assertEquals convert assertEquals convert
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void returns_null_if_value_is_missing()
focal_class.declarator: missingValueRepresentation
focal_class.modifier: private
focal_class.original_string: private List<String> missingValueRepresentation;
focal_class.type: List<String>
focal_class.var_name: missingValueRepresentation
focal_class.file: JavaElasticSearchExperiment/src/main/java/csv/converter/IgnoreMissingValuesConverter.java
focal_class.identifier: IgnoreMissingValuesConverter
focal_class.interfaces: implements ITypeConverter<Float>
focal_class.class_method_signature: IgnoreMissingValuesConverter.IgnoreMissingValuesConverter(String... missingValueRepresentation)
focal_class.full_signature: public  IgnoreMissingValuesConverter(String... missingValueRepresentation)
focal_class.identifier: IgnoreMissingValuesConverter
focal_class.modifiers: public
focal_class.parameters: (String... missingValueRepresentation)
focal_class.signature:  IgnoreMissingValuesConverter(String... missingValueRepresentation)
focal_class.class_method_signature: IgnoreMissingValuesConverter.IgnoreMissingValuesConverter(List<String> missingValueRepresentation)
focal_class.full_signature: public  IgnoreMissingValuesConverter(List<String> missingValueRepresentation)
focal_class.identifier: IgnoreMissingValuesConverter
focal_class.modifiers: public
focal_class.parameters: (List<String> missingValueRepresentation)
focal_class.signature:  IgnoreMissingValuesConverter(List<String> missingValueRepresentation)
focal_class.class_method_signature: IgnoreMissingValuesConverter.convert(final String s)
focal_class.full_signature: @Override public Float convert(final String s)
focal_class.identifier: convert
focal_class.modifiers: @Override public
focal_class.parameters: (final String s)
focal_class.return: Float
focal_class.signature: Float convert(final String s)
focal_class.class_method_signature: IgnoreMissingValuesConverter.getTargetType()
focal_class.full_signature: @Override public Type getTargetType()
focal_class.identifier: getTargetType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Type
focal_class.signature: Type getTargetType()
focal_method.body: @Override
      public Float convert(final String s) {
  
          if(StringUtils.isNullOrWhiteSpace(s)) {
              return null;
          }
  
          boolean isMissingValue = missingValueRepresentation
                  .stream()
                  .anyMatch(x -> x.equals(s));
  
          if(isMissingValue) {
              return null;
          }
  
          return Float.parseFloat(s);
      }
focal_method.class_method_signature: IgnoreMissingValuesConverter.convert(final String s)
focal_method.full_signature: @Override public Float convert(final String s)
focal_method.identifier: convert
focal_method.invocations: isNullOrWhiteSpace anyMatch stream equals parseFloat
focal_method.modifiers: @Override public
focal_method.parameters: (final String s)
focal_method.return: Float
focal_method.signature: Float convert(final String s)