<commit_before>$[/myProject/wsadmin_scripts/preamble.py]

nodeName = '''
$[wasNodeName]
'''.strip()
appServerName = '''
$[wasAppServerName]
'''.strip()
syncNodes = '''
$[wasSyncNodes]
'''.strip()

serverStatus = showServerStatus(nodeName, appServerName)
if serverStatus != 'Stopped':
    bailOut("Server %s:%s can't be deleted because it is running.\nDeletion of running server may damage websphere instance and leads to undefined behaviour.\nPlease, stop your server first." % (nodeName, appServerName))
    sys.exit(1)

try:
    AdminServerManagement.deleteServer(nodeName, appServerName)
except:
    forwardException(getExceptionMsg())
    logSummary("Failed to delete application server %s on node %s" % (appServerName, nodeName));
    sys.exit(1)
<commit_msg>performed cleanup in delete-appication-server procedure<commit_after>$[/myProject/wsadmin_scripts/preamble.py]

nodeName = '''
$[wasNodeName]
'''.strip()
appServerName = '''
$[wasAppServerName]
'''.strip()
syncNodes = '''
$[wasSyncNodes]
'''.strip()

if not isServerExists(nodeName, appServerName):
    bailOut("Server %s:%s does not exist", % (nodeName, serverName))
    
serverStatus = showServerStatus(nodeName, appServerName)
if serverStatus == '':
    bailOut("Server %s:%s is in undefined state and can't be deleted" % (nodeName, appServerName))
if serverStatus != 'Stopped':
    bailOut("Server %s:%s can't be deleted because it is running.\nDeletion of running server may damage websphere instance and leads to undefined behaviour.\nPlease, stop your server first." % (nodeName, appServerName))

try:
    AdminServerManagement.deleteServer(nodeName, appServerName)
except:
    forwardException(getExceptionMsg())
    logSummary("Failed to delete application server %s on node %s" % (appServerName, nodeName));
    sys.exit(1)

{'fraction_non_alphanumeric': 0.13236929922135707, 'fraction_numerical': 0.0016685205784204673, 'mean_word_length': 5.687732342007435, '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': '6963951', 'n_tokens_mistral': 546, 'n_tokens_neox': 540, 'n_words': 150}