<commit_before>/**************************************************************************************
 * Copyright (C) 2009 Progress Software, Inc. All rights reserved.                    *
 * http://fusesource.com                                                              *
 * ---------------------------------------------------------------------------------- *
 * The software in this package is published under the terms of the AGPL license      *
 * a copy of which has been included with this distribution in the license.txt file.  *
 **************************************************************************************/
package org.fusesource.mop.commands;

import java.io.File;
import java.util.LinkedList;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.codehaus.plexus.util.FileUtils;
import org.fusesource.mop.MOP;
import org.fusesource.mop.ProcessRunner;
import org.fusesource.mop.support.ConfiguresMop;

public abstract class AbstractContainerBase implements ConfiguresMop {
    
    private static final transient Log LOG = LogFactory.getLog(AbstractContainerBase.class);
    private static final long START_DELAY = 15 * 1000; // 15 secs
    
    protected String version = "RELEASE";
    protected MOP mop;
    protected String secondaryArgs = "";
    
    public void installAndLaunch(List<String> params) throws Exception {
        LOG.info(String.format("Installing " + getContainerName() + " %s", version));
        
        mop.execute(new String[] {
                "install", 
                getArtefactId() + getExtension() + ":" + version,
                mop.getWorkingDirectory().getAbsolutePath()
                });
        <commit_msg>Extended wait for SMX startup<commit_after>/**************************************************************************************
 * Copyright (C) 2009 Progress Software, Inc. All rights reserved.                    *
 * http://fusesource.com                                                              *
 * ---------------------------------------------------------------------------------- *
 * The software in this package is published under the terms of the AGPL license      *
 * a copy of which has been included with this distribution in the license.txt file.  *
 **************************************************************************************/
package org.fusesource.mop.commands;

import java.io.File;
import java.util.LinkedList;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.codehaus.plexus.util.FileUtils;
import org.fusesource.mop.MOP;
import org.fusesource.mop.ProcessRunner;
import org.fusesource.mop.support.ConfiguresMop;

public abstract class AbstractContainerBase implements ConfiguresMop {
    
    private static final transient Log LOG = LogFactory.getLog(AbstractContainerBase.class);
    private static final long START_DELAY = 25 * 1000; // 25 secs
    
    protected String version = "RELEASE";
    protected MOP mop;
    protected String secondaryArgs = "";
    
    public void installAndLaunch(List<String> params) throws Exception {
        LOG.info(String.format("Installing " + getContainerName() + " %s", version));
        
        mop.execute(new String[] {
                "install", 
                getArtefactId() + getExtension() + ":" + version,
                mop.getWorkingDirectory().getAbsolutePath()
                });
        
{'fraction_non_alphanumeric': 0.224, 'fraction_numerical': 0.006857142857142857, 'mean_word_length': 2.4697720515361743, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '536257', 'n_tokens_mistral': 853, 'n_tokens_neox': 797, 'n_words': 220}