Examples of run()


Examples of org.apache.karaf.shell.console.jline.Console.run()

                    return Integer.toString(terminal.getWidth());
                }
            });
            session.put(".jline.terminal", terminal);

            console.run();

            terminalFactory.destroy();
        }

    }
View Full Code Here

Examples of org.apache.lucene.search.highlight.SynonymTokenizer.TestHighlightRunner.run()

        mode = QUERY;
        doStandardHighlights(analyzer, searcher, hits, query, HighlighterTest.this);
      }
    };

    helper.run();

    assertTrue("Failed to find correct number of highlights " + numHighlights + " found",
        numHighlights == 2);
  }
View Full Code Here

Examples of org.apache.lucene.util.automaton.ByteRunAutomaton.run()

        if (pattern == null) {
            return null;
        }
        RegExp regexp = new RegExp(pattern.utf8ToString());
        ByteRunAutomaton regexpRunAutomaton = new ByteRunAutomaton(regexp.toAutomaton());
        return regexpRunAutomaton.run(source.bytes, source.offset, source.length);
    }

    @Override
    public FunctionInfo info() {
        return INFO;
View Full Code Here

Examples of org.apache.mahout.classifier.naivebayes.training.TrainNaiveBayesJob.run()

  @Test
  public void toyData() throws Exception {
    TrainNaiveBayesJob trainNaiveBayes = new TrainNaiveBayesJob();
    trainNaiveBayes.setConf(conf);
    trainNaiveBayes.run(new String[] { "--input", inputFile.getAbsolutePath(), "--output", outputDir.getAbsolutePath(),
        "--labels", "stolen,not_stolen", "--tempDir", tempDir.getAbsolutePath() });

    NaiveBayesModel naiveBayesModel = NaiveBayesModel.materialize(new Path(outputDir.getAbsolutePath()), conf);

    AbstractVectorClassifier classifier = new StandardNaiveBayesClassifier(naiveBayesModel);
View Full Code Here

Examples of org.apache.mahout.math.hadoop.decomposer.DistributedLanczosSolver.run()

    DistributedLanczosSolver solver = new DistributedLanczosSolver();
    Configuration conf = new Configuration();
    solver.setConf(conf);
    Path testData = getTestTempDirPath("testdata");
    int sampleDimension = sampleData.get(0).get().size();
    solver.run(testData, output, tmp, sampleData.size(), sampleDimension, false, desiredRank, 0.5, 0.0, true);
    Path cleanEigenvectors = new Path(output, EigenVerificationJob.CLEAN_EIGENVECTORS);

    // build in-memory data matrix A
    Matrix a = new DenseMatrix(sampleData.size(), sampleDimension);
    int i = 0;
View Full Code Here

Examples of org.apache.mahout.math.hadoop.stochasticsvd.SSVDSolver.run()

      solveIt.setComputeV(false);
      solveIt.setComputeU(true);
      solveIt.setOverwrite(true);
      solveIt.setQ(poweriters);
      // solveIt.setBroadcast(false);
      solveIt.run();
      data = new Path(solveIt.getUPath());
    } else {
      // Perform eigen-decomposition using LanczosSolver
      // since some of the eigen-output is spurious and will be eliminated
      // upon verification, we have to aim to overshoot and then discard
View Full Code Here

Examples of org.apache.maven.plugin.surefire.booterclient.ForkStarter.run()

            try
            {
                ForkStarter forkStarter =
                    createForkStarter( provider, forkConfiguration, classLoaderConfiguration, runOrderParameters,
                                       getLog() );
                result = forkStarter.run( effectiveProperties, scanResult );
            }
            finally
            {
                System.setProperties( originalSystemProperties );
                cleanupForkConfiguration( forkConfiguration );
View Full Code Here

Examples of org.apache.maven.shared.scriptinterpreter.ScriptRunner.run()

        Map<String, Object> context = new LinkedHashMap<String, Object>();
        context.put( "projectDir", basedir );

        try
        {
            scriptRunner.run( "post-build script", goalFile.getParentFile(), postBuildHookScript, context, logger,
                              "failure post script", true );
        }
        catch ( RunFailureException e )
        {
            throw new IntegrationTestFailure( "post build script failure failure: " + e.getMessage(), e );
View Full Code Here

Examples of org.apache.maven.surefire.Surefire.run()

        includes,
        excludes
      }
    });

    return surefire.run(reports, tests, surefireClassLoader, testClassLoader, true /*failIfNoTests*/);
  }

  private static File getTestProperties(String[] args) throws CoreException {
    String arg = null;
    for (int i = 0; i < args.length; i++) {
View Full Code Here

Examples of org.apache.maven.surefire.booter.SurefireBooter.run()

            getLog().info( "Surefire report directory: " + reportsDirectory );

            int result;
            try
            {
                result = surefireBooter.run();
            }
            catch ( SurefireBooterForkException e )
            {
                throw new MojoExecutionException( e.getMessage(), e );
            }
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.