<commit_before># check the domain else we need to skip this (done in wls_access.rb)
real_domain='<%= domain %>'

print "modify domain"

name                        = '<%= weblogic_domain_name %>'
jta_transaction_timeout     = <%= jta_transaction_timeout %>
jta_max_transactions        = <%= jta_max_transactions %>
jpa_default_provider        = '<%= jpa_default_provider %>'
security_crossdomain        = <%= security_crossdomain %>
log_file_min_size           = <%= log_file_min_size %>
log_filecount               = <%= log_filecount %>
log_rotate_logon_startup    = <%= log_rotate_logon_startup %>
log_filename                = '<%= log_filename %>'
log_rotationtype            = '<%= log_rotationtype %>'
log_number_of_files_limited = <%= log_number_of_files_limited %>

def formatBoolean(value):
  if value == 1:
    return true
  else:
    return false    

print "start edit"

edit()
startEdit()

try:

    print "change log"
    cd('/Log/'+name)
    if log_rotationtype:
      print "change log 1" +log_rotationtype
      cmo.setRotationType(log_rotationtype)
    if log_rotate_logon_startup:
      print "change log 2 " + str(log_rotate_logon_startup)
      cmo.setRotateLogOnStartup(formatBoolean(log_rotate_logon_startup))
    if log_filecount:
      print "change log 3" + str(log_filecount)
      cmo.setFileCount(int(log_filecount))
    if log_number_of_files_limited:
      print "change log 4"
      cmo.setNumberOfFilesLimited(int(log_number_of_files_limited))
    if log_filename:
      print "change log 5"
      cmo.setFileName(log_filename)
    if log_file_min_size:
      print "change log 6"<commit_msg>fails when not all the number parameters are provided<commit_after># check the domain else we need to skip this (done in wls_access.rb)
real_domain='<%= domain %>'

print "modify domain"

name                        = '<%= weblogic_domain_name %>'
jta_transaction_timeout     = '<%= jta_transaction_timeout %>'
jta_max_transactions        = '<%= jta_max_transactions %>'
jpa_default_provider        = '<%= jpa_default_provider %>'
security_crossdomain        = '<%= security_crossdomain %>'
log_file_min_size           = '<%= log_file_min_size %>'
log_filecount               = '<%= log_filecount %>'
log_rotate_logon_startup    = '<%= log_rotate_logon_startup %>'
log_filename                = '<%= log_filename %>'
log_rotationtype            = '<%= log_rotationtype %>'
log_number_of_files_limited = '<%= log_number_of_files_limited %>'

def formatBoolean(value):
  if value == '1':
    return true
  else:
    return false    

print "start edit"

edit()
startEdit()

try:

    print "change log"
    cd('/Log/'+name)
    if log_rotationtype:
      print "change log 1" +log_rotationtype
      cmo.setRotationType(log_rotationtype)
    if log_rotate_logon_startup:
      print "change log 2 " + str(log_rotate_logon_startup)
      cmo.setRotateLogOnStartup(formatBoolean(log_rotate_logon_startup))
    if log_filecount:
      print "change log 3" + str(log_filecount)
      cmo.setFileCount(int(log_filecount))
    if log_number_of_files_limited:
      print "change log 4"
      cmo.setNumberOfFilesLimited(int(log_number_of_files_limited))
    if log_filename:
      print "change log 5"
      cmo.setFileName(log_filename)
    if log_file_min_size:
      print "change log 6"
{'fraction_non_alphanumeric': 0.10157194679564692, 'fraction_numerical': 0.004232164449818622, 'mean_word_length': 3.4061251664447405, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '7378299', 'n_tokens_mistral': 1130, 'n_tokens_neox': 1072, 'n_words': 215}