test_class.file: modules/ml/src/test/java/org/apache/ignite/ml/util/generators/primitives/vector/VectorGeneratorsFamilyTest.java
test_class.identifier: VectorGeneratorsFamilyTest
test_case.body: @Test
      public void testAsDataStream() {
          VectorGeneratorsFamily family = new VectorGeneratorsFamily.Builder()
              .add(() -> VectorUtils.of(0.))
              .add(() -> VectorUtils.of(1.))
              .add(() -> VectorUtils.of(2.))
              .build(0L);
  
          family.asDataStream().labeled().limit(100).forEach(v -> {
              assertEquals(v.features().get(0), v.label(), 1e-7);
          });
      }
test_case.class_method_signature: VectorGeneratorsFamilyTest.testAsDataStream()
test_case.full_signature: @Test public void testAsDataStream()
test_case.identifier: testAsDataStream
test_case.invocations: build add add add of of of forEach limit labeled asDataStream assertEquals get features label
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAsDataStream()
focal_class.declarator: family
focal_class.modifier: private final
focal_class.original_string: private final List<VectorGenerator> family;
focal_class.type: List<VectorGenerator>
focal_class.var_name: family
focal_class.declarator: selector
focal_class.modifier: private final
focal_class.original_string: private final DiscreteRandomProducer selector;
focal_class.type: DiscreteRandomProducer
focal_class.var_name: selector
focal_class.file: modules/ml/src/main/java/org/apache/ignite/ml/util/generators/primitives/vector/VectorGeneratorsFamily.java
focal_class.identifier: VectorGeneratorsFamily
focal_class.interfaces: implements VectorGenerator
focal_class.class_method_signature: VectorGeneratorsFamily.VectorGeneratorsFamily(List<VectorGenerator> family, DiscreteRandomProducer selector)
focal_class.full_signature: private  VectorGeneratorsFamily(List<VectorGenerator> family, DiscreteRandomProducer selector)
focal_class.identifier: VectorGeneratorsFamily
focal_class.modifiers: private
focal_class.parameters: (List<VectorGenerator> family, DiscreteRandomProducer selector)
focal_class.signature:  VectorGeneratorsFamily(List<VectorGenerator> family, DiscreteRandomProducer selector)
focal_class.class_method_signature: VectorGeneratorsFamily.get()
focal_class.full_signature: @Override public Vector get()
focal_class.identifier: get
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Vector
focal_class.signature: Vector get()
focal_class.class_method_signature: VectorGeneratorsFamily.getWithId()
focal_class.full_signature: public VectorWithDistributionId getWithId()
focal_class.identifier: getWithId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: VectorWithDistributionId
focal_class.signature: VectorWithDistributionId getWithId()
focal_class.class_method_signature: VectorGeneratorsFamily.asDataStream()
focal_class.full_signature: @Override public DataStreamGenerator asDataStream()
focal_class.identifier: asDataStream
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: DataStreamGenerator
focal_class.signature: DataStreamGenerator asDataStream()
focal_method.body: @Override public DataStreamGenerator asDataStream() {
          VectorGeneratorsFamily gen = this;
          return new DataStreamGenerator() {
              @Override public Stream<LabeledVector<Double>> labeled() {
                  return Stream.generate(gen::getWithId)
                      .map(v -> new LabeledVector<>(v.vector, (double)v.distributionId));
              }
          };
      }
focal_method.class_method_signature: VectorGeneratorsFamily.asDataStream()
focal_method.full_signature: @Override public DataStreamGenerator asDataStream()
focal_method.identifier: asDataStream
focal_method.invocations: map generate
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: DataStreamGenerator
focal_method.signature: DataStreamGenerator asDataStream()