test_class.file: legacy/src/test/java/macrobase/analysis/transform/LowMetricTransformTest.java
test_class.identifier: LowMetricTransformTest
test_case.body: @Test
      public void testLowMetricTransform() throws Exception {
          List<Datum> data = new ArrayList<>();
          data.add(new Datum(new ArrayList<>(), 1, 2));
          data.add(new Datum(new ArrayList<>(), 1, .01));
  
          List<Integer> targetAttrs = new ArrayList<>();
          targetAttrs.add(1);
  
          LowMetricTransform lmt = new LowMetricTransform(targetAttrs);
          lmt.consume(data);
          data = lmt.getStream().drain();
  
          assertEquals(2, data.size(), 0);
          assertEquals(1, data.get(0).metrics().getEntry(0), 0);
          assertEquals(.5, data.get(0).metrics().getEntry(1), 0);
          assertEquals(1, data.get(1).metrics().getEntry(0), 0);
          assertEquals(10, data.get(1).metrics().getEntry(1), 0);
      }
test_case.class_method_signature: LowMetricTransformTest.testLowMetricTransform()
test_case.full_signature: @Test public void testLowMetricTransform()
test_case.identifier: testLowMetricTransform
test_case.invocations: add add add consume drain getStream assertEquals size assertEquals getEntry metrics get assertEquals getEntry metrics get assertEquals getEntry metrics get assertEquals getEntry metrics get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testLowMetricTransform()
focal_class.declarator: output = new MBStream<>()
focal_class.original_string: MBStream<Datum> output = new MBStream<>();
focal_class.type: MBStream<Datum>
focal_class.var_name: output
focal_class.declarator: toTransform
focal_class.modifier: final
focal_class.original_string: final List<Integer> toTransform;
focal_class.type: List<Integer>
focal_class.var_name: toTransform
focal_class.file: legacy/src/main/java/macrobase/analysis/transform/LowMetricTransform.java
focal_class.identifier: LowMetricTransform
focal_class.class_method_signature: LowMetricTransform.LowMetricTransform(MacroBaseConf conf)
focal_class.full_signature: public  LowMetricTransform(MacroBaseConf conf)
focal_class.identifier: LowMetricTransform
focal_class.modifiers: public
focal_class.parameters: (MacroBaseConf conf)
focal_class.signature:  LowMetricTransform(MacroBaseConf conf)
focal_class.class_method_signature: LowMetricTransform.LowMetricTransform(List<Integer> indexesToTransform)
focal_class.full_signature: public  LowMetricTransform(List<Integer> indexesToTransform)
focal_class.identifier: LowMetricTransform
focal_class.modifiers: public
focal_class.parameters: (List<Integer> indexesToTransform)
focal_class.signature:  LowMetricTransform(List<Integer> indexesToTransform)
focal_class.class_method_signature: LowMetricTransform.initialize()
focal_class.full_signature: @Override public void initialize()
focal_class.identifier: initialize
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initialize()
focal_class.class_method_signature: LowMetricTransform.consume(List<Datum> records)
focal_class.full_signature: @Override public void consume(List<Datum> records)
focal_class.identifier: consume
focal_class.modifiers: @Override public
focal_class.parameters: (List<Datum> records)
focal_class.return: void
focal_class.signature: void consume(List<Datum> records)
focal_class.class_method_signature: LowMetricTransform.shutdown()
focal_class.full_signature: @Override public void shutdown()
focal_class.identifier: shutdown
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void shutdown()
focal_class.class_method_signature: LowMetricTransform.getStream()
focal_class.full_signature: @Override public MBStream<Datum> getStream()
focal_class.identifier: getStream
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: MBStream<Datum>
focal_class.signature: MBStream<Datum> getStream()
focal_class.superclass: extends FeatureTransform
focal_method.body: public LowMetricTransform(MacroBaseConf conf) throws ConfigurationException {
          toTransform = new ArrayList<>();
          List<String> transformNames = conf.getStringList(MacroBaseConf.LOW_METRIC_TRANSFORM);
          List<String> metrics = conf.getStringList(MacroBaseConf.METRICS);
  
          for(String name : transformNames) {
              toTransform.add(metrics.indexOf(name));
          }
      }
focal_method.class_method_signature: LowMetricTransform.LowMetricTransform(MacroBaseConf conf)
focal_method.full_signature: public  LowMetricTransform(MacroBaseConf conf)
focal_method.identifier: LowMetricTransform
focal_method.modifiers: public
focal_method.parameters: (MacroBaseConf conf)
focal_method.signature:  LowMetricTransform(MacroBaseConf conf)