Examples of run()

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

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



View Full Code Here

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

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


    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);

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

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

  public void toyData() throws Exception {
    TrainNaiveBayesJob trainNaiveBayes = new TrainNaiveBayesJob();
    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();
    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.setBroadcast(false);
      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()

                ForkStarter forkStarter =
                    createForkStarter( provider, forkConfiguration, classLoaderConfiguration, runOrderParameters,
                                       getLog() );
                result = forkStarter.run( effectiveProperties, scanResult );
                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 );

            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()


    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;
                result = surefireBooter.run();
            catch ( SurefireBooterForkException e )
                throw new MojoExecutionException( e.getMessage(), e );
View Full Code Here
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.