Examples of apply()


Examples of quickml.supervised.featureEngineering.AttributesEnricher.apply()

        final AttributesEnricher attributesEnricher = probabilityEnrichStrategy.build(trainingData);
        {
            AttributesMap inputAttributes = AttributesMap.newHashMap() ;
            inputAttributes.put("k1", 1);
            inputAttributes.put("k2", 1);
            final AttributesMap outputAttributes = attributesEnricher.apply(inputAttributes);
            Assert.assertEquals(outputAttributes.get("k1-PROB"), 0.5);
            Assert.assertEquals(outputAttributes.get("k2-PROB"), 1.0);
        }
        {
            AttributesMap inputAttributes = AttributesMap.newHashMap() ;
View Full Code Here

Examples of ratpack.groovy.internal.RatpackDslClosureToHandlerTransformer.apply()

  @Override
  public Handler create(LaunchConfig launchConfig) throws Exception {
    GuiceBackedHandlerFactory guiceHandlerFactory = new GroovyKitAppFactory(launchConfig);
    Function<Module, Injector> moduleInjectorTransformer = Guice.newInjectorFactory(launchConfig);
    Function<Closure<?>, Handler> handlerTransformer = new RatpackDslClosureToHandlerTransformer(launchConfig, guiceHandlerFactory, moduleInjectorTransformer);
    return handlerTransformer.apply(ratpackClosure);
  }

}
View Full Code Here

Examples of reportgen.factory.patch.ReportPatch.apply()

            if(fit == null) {
                break;
            } else {
                ReportPatch patch = fit.getPatch();
                if(patch != null) {
                    reportXML = patch.apply(reportXML);
                } else {
                    break;
                }
            }
        }
View Full Code Here

Examples of simplenlg.aggregation.ClauseCoordinationRule.apply()

    ss.add(this.disagreePhrase("Geri Halliwell")); // Geri Halliwell disagreed with it
    ss.add(this.commentPhrase("Melanie B")); // Mealnie B commented on it
    ss.add(this.agreePhrase("you")); // you agreed with it
    ss.add(this.commentPhrase("Emma Bunton")); //Emma Bunton commented on it

    List<NLGElement> results=coord.apply(ss);
    List<String> ret=this.realizeAll(results);
    Assert.assertEquals("[John Lennon and you agreed with it, Geri Halliwell disagreed with it, Melanie B and Emma Bunton commented on it]", ret.toString());
  }
 
  private NLGElement commentPhrase(String name){  // used by testRafael
View Full Code Here

Examples of simtools.ui.ActionRadioButton.apply()

      bg.add(arb);
      Box hbox = Box.createHorizontalBox();
      hbox.add(arb);
      hbox.add(Box.createHorizontalGlue());
      vbox.add(hbox);
      arb.apply();
    }
    vbox.add(Box.createVerticalGlue());

    add(vbox,BorderLayout.CENTER);
    // That's all!
View Full Code Here

Examples of skadistats.clarity.parser.Peek.apply()

   
    public int apply(Iterator<Peek> peekIterator) {
        int v = -1;
        for (; peekIterator.hasNext(); v++) {
            Peek p = peekIterator.next();
            p.apply(this);
        }
        return v + 1;
    }
   
    public void reset() {
View Full Code Here

Examples of solver.search.strategy.decision.Decision.apply()

        env.worldPush();
        Decision decision = asg.getDecision();
        for (int i = 0; i < n; i++) {
            decision.buildNext();
            try {
                decision.apply();
            } catch (ContradictionException e) {
                e.printStackTrace();
            }
            Assert.assertTrue(variables[i].isInstantiated());
            Assert.assertEquals(variables[i].getValue(), i);
View Full Code Here

Examples of soot.Pack.apply()

 
  private void buildCallGraph(){
    setApplicationClasses();
    Scene.v().setEntryPoints(EntryPoints.v().all());
    Pack cg = G.v().soot_PackManager().getPack("cg");
    cg.apply();
    System.out.println("done");
  }
 
  private void selectPackageRoot(){
    JFileChooser fc = new JFileChooser();
View Full Code Here

Examples of soot.Unit.apply()

                code.append(_indent(2) + "/*Trap " + tracker.beginIndexOf(unit)
                        + " begins. */\n");
            }

            //Actual unit code.
            unit.apply(visitor);

            StringBuffer newCode = visitor.getCode();

            if (newCode.length() > 0) {
                code.append(_indent(indentLevel)).append(newCode + ";");
View Full Code Here

Examples of soot.Value.apply()

        Value rightOp = stmt.getRightOp();

        if ((rightOp instanceof ParameterRef) || (rightOp instanceof ThisRef)) {
            return;
        } else {
            rightOp.apply(this);
            stmt.getLeftOp().apply(this);

            String cast = "(" + CNames.typeNameOf(stmt.getLeftOp().getType())
                    + ")";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.