<commit_before>#!/usr/bin/env python
import os
import time
import calendar
import glob

from servicemanager import subprocess
from servicemanager.smcontext import ServiceManagerException
from servicemanager.smprocess import SmProcess
from servicemanager.service.smplayservice import SmPlayService

def start_one(context, service_name, fatjar, release, proxy, port=None, appendArgs=None):
    if release:
        run_from = "RELEASE"
    elif fatjar:
        run_from = "SNAPSHOT"
    else:
        run_from = "SOURCE"

    version = release
    if version == "LATEST":
        version = None

    existing_service_status = context.get_service(service_name).status()

    if len(existing_service_status) > 0:
        print "There is already: '" + str(len(existing_service_status)) + "' instance(s) of the service: '" + service_name + "' running"
        return False

    if context.start_service(service_name, run_from, proxy, port=port, version=version, appendArgs=appendArgs):
        if context.get_service(service_name).is_started_on_default_port():
            print "Started: " + service_name
            return True

    return False

def get_start_cmd(context, service_name, fatjar, release, proxy, port=None, appendArgs=None):
    if release:
        run_from = "RELEASE"
    elif fatjar:
        run_from = "SNAPSHOT"
    else:
        run_from = "SOURCE"

    version = release
    if version == "LATEST":
        version = None

    starter = context.get_service_starter(service_name, run_from, proxy, port=port, version=version, appendArgs=appendArgs)
    return starter.get_start_command(run_from)

def stop_profile(context, profile):
    for service_name in context.application.services_for_profile(profile):
        context.kill(service_name)<commit_msg>Fix append_args method name in get_start_command<commit_after>#!/usr/bin/env python
import os
import time
import calendar
import glob

from servicemanager import subprocess
from servicemanager.smcontext import ServiceManagerException
from servicemanager.smprocess import SmProcess
from servicemanager.service.smplayservice import SmPlayService

def start_one(context, service_name, fatjar, release, proxy, port=None, appendArgs=None):
    if release:
        run_from = "RELEASE"
    elif fatjar:
        run_from = "SNAPSHOT"
    else:
        run_from = "SOURCE"

    version = release
    if version == "LATEST":
        version = None

    existing_service_status = context.get_service(service_name).status()

    if len(existing_service_status) > 0:
        print "There is already: '" + str(len(existing_service_status)) + "' instance(s) of the service: '" + service_name + "' running"
        return False

    if context.start_service(service_name, run_from, proxy, port=port, version=version, appendArgs=appendArgs):
        if context.get_service(service_name).is_started_on_default_port():
            print "Started: " + service_name
            return True

    return False

def get_start_cmd(context, service_name, fatjar, release, proxy, port=None, append_args=None):
    if release:
        run_from = "RELEASE"
    elif fatjar:
        run_from = "SNAPSHOT"
    else:
        run_from = "SOURCE"

    version = release
    if version == "LATEST":
        version = None

    starter = context.get_service_starter(service_name, run_from, proxy, port=port, version=version, append_args=append_args)
    return starter.get_start_command(run_from)

def stop_profile(context, profile):
    for service_name in context.application.services_for_profile(profile):
        context.kill(service_name)
{'fraction_non_alphanumeric': 0.08664058133035216, 'fraction_numerical': 0.0005589714924538849, 'mean_word_length': 3.810483870967742, 'pattern_counts': {'":': 4, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4918131', 'n_tokens_mistral': 1071, 'n_tokens_neox': 1035, 'n_words': 262}