<commit_before>import org.cloudifysource.utilitydomain.context.ServiceContextFactory
import java.util.concurrent.TimeUnit

context = ServiceContextFactory.getServiceContext()
evaluate(new File("${context.serviceDirectory}/scripts/chmod-init.groovy"))
builder = new AntBuilder()

def config = new ConfigSlurper().parse(new File("${context.serviceDirectory}/service.properties").toURL())

def nameMysgl = args[2]
def serviceName = args[3]

println "invokeAddNode.groovy: target $serviceName Post-start ..."
def mysqlService = context.waitForService(serviceName, 5, TimeUnit.MINUTES)
def instances = mysqlService.getInstances()
def ip_adress = instances[0].getHostAddress()
println "ip of $instances database: $ip_adress"

builder.sequential {
  echo(message:"config_wordpress_for_mysql: Config Wordpress script from FastConnect...")
  exec(executable:"${context.serviceDirectory}/scripts/config_wordpress_for_mysql.sh", osfamily:"unix", failonerror:"true") {
    env(key:"DB_NAME", value:config[nameMysgl].db_name)
    env(key:"DB_USER", value:config[nameMysgl].db_user)
    env(key:"DB_PASSWORD", value:config[nameMysgl].db_password)
    env(key:"DB_IP", value:ip_adress)
  }
}
<commit_msg>Increase the time up of wordpress<commit_after>import org.cloudifysource.utilitydomain.context.ServiceContextFactory
import java.util.concurrent.TimeUnit

context = ServiceContextFactory.getServiceContext()
evaluate(new File("${context.serviceDirectory}/scripts/chmod-init.groovy"))
builder = new AntBuilder()

def config = new ConfigSlurper().parse(new File("${context.serviceDirectory}/service.properties").toURL())

def nameMysgl = args[2]
def serviceName = args[3]

println "invokeAddNode.groovy: target $serviceName Post-start ..."
def mysqlService = context.waitForService(serviceName, 15, TimeUnit.MINUTES)
def instances = mysqlService.getInstances()
def ip_adress = instances[0].getHostAddress()
println "ip of $instances database: $ip_adress"

builder.sequential {
  echo(message:"config_wordpress_for_mysql: Config Wordpress script from FastConnect...")
  exec(executable:"${context.serviceDirectory}/scripts/config_wordpress_for_mysql.sh", osfamily:"unix", failonerror:"true") {
    env(key:"DB_NAME", value:config[nameMysgl].db_name)
    env(key:"DB_USER", value:config[nameMysgl].db_user)
    env(key:"DB_PASSWORD", value:config[nameMysgl].db_password)
    env(key:"DB_IP", value:ip_adress)
  }
}

{'fraction_non_alphanumeric': 0.13172155064610255, 'fraction_numerical': 0.003751563151313047, 'mean_word_length': 7.391608391608392, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1883527', 'n_tokens_mistral': 766, 'n_tokens_neox': 751, 'n_words': 129}