<commit_before># load common defs
execfile('<%= @download_dir %>/utils.py')

WLHOME='<%= @weblogic_home_dir %>'
DOMAIN_PATH='<%= @domain_dir %>'
DOMAIN='<%= @domain_name %>'
<% if @apps_dir %>
APP_PATH='<%= @apps_dir %>/<%= @domain_name %>'
<% end %>

DEVELOPMENT_MODE=<%= @development_mode %>
CUSTOM_IDENTITY_ENABLED=<%= @custom_identity %>
JSSE_ENABLED=<%= @jsse_enabled %>
WEBLOGIC_VERSION=<%= @version %>
WEBTIER_ENABLED=<%= @webtier_enabled %>
ESS_ENABLED=<%= @ess_enabled %>
OWSM_ENABLED=<%= @owsm_enabled %>

ADMIN_SERVER='<%= @adminserver_name %>'
ADMIN_USER='<%= @weblogic_user %>'
ADMIN_PASSWORD='<%= <PASSWORD> %>'

JAVA_HOME='<%= @jdk_home_dir %>'
NODEMANAGER_SECURE_LISTENER=<%= @nodemanager_secure_listener %>

<% if @java_arguments["ADM"] %>
ADM_JAVA_ARGUMENTS='<%= @java_arguments["ADM"] %>'
<% else %>
ADM_JAVA_ARGUMENTS='-XX:PermSize=256m -XX:MaxPermSize=512m -Xms1024m -Xmx1024m -Dweblogic.Stdout=<%= @admin_nodemanager_log_dir %>/<%= @adminserver_name %>.out -Dweblogic.Stderr=<%= @admin_nodemanager_log_dir %>/<%= @adminserver_name %>_err.out'
<% end %>

<% if @java_arguments["OSB"] %>
OSB_JAVA_ARGUMENTS='<%= @java_arguments["OSB"] %>'
<% else %>
OSB_JAVA_ARGUMENTS='-XX:PermSize=512m -XX:MaxPermSize=512m -Xms1024m -Xmx1024m -Dweblogic.Stdout=<%= @osb_nodemanager_log_dir %>/osb_server1.out -Dweblogic.Stderr=<%= @osb_nodemanager_log_dir %>/osb_server1_err.out'
<% end %>

<% if @java_arguments["ESS"] %>
ESS_JAVA_ARGUMENTS='<%= @java_arguments["ESS"] %>'
<% else %>
ESS_JAVA_ARGUMENTS='-XX:PermSize=512m -XX:MaxPermSize=512m -Xms1024m -Xmx1024m -Dweblogic.Stdout=<%= @ess_nodemanager_log_dir %>/ess_server1.out -Dweblogic.Stderr=<%= @ess_nodemanager_log_dir %>/ess_server1_err.out'
<% end %>


REPOS_DBURL='<%= @repository_database_url %>'
REPOS_DBUSER_PREFIX='<%= @repository_prefix %>'
REPOS_DBPASSWORD='<%= @repository_password %>'

readDomain(DOMAIN_PATH)

changeServerArguments(ADMIN_SERVER, ADM_JAVA_ARGUMENTS)

cd('/')

<% if @apps_dir %>
setOption( "AppDir", APP_PATH )
<% end %>

print 'Adding EM Template'
addTemplate('<%= @templateEM %>')

dumpStack();

print('Extend...osb domain with template <%= @templateOSB %>')
addTemplate('<%= @templateWS %>')
addTemplate('<%= @templateOSB %>')

if OWSM_ENABLED == true:
  print 'Adding JRF Template'
  try:
    addTemplate('<%= @templateJRF %>')
  except:
    print 'Error adding JRF Template:', sys.exc_info()[0]

  print 'Adding WSM PM Template'
  addTemplate('<%= @templateWSMPM %>')
  print 'Adding OWSM template'
  addTemplate('<%= @templateOWSM %>')
  print 'Adding advanced JAX-WS Template'
  addTemplate('<%= @templateJaxWS %>')
  print 'Change datasource mds-owsm'
  changeDatasource('mds-owsm', REPOS_DBUSER_PREFIX+'_MDS', REPOS_DBPASSWORD, REPOS_DBURL)
  print 'Change datasource wlsbjmsrpDataSource'
  changeDatasourceDriver('wlsbjmsrpDataSource', REPOS_DBUSER_PREFIX+'_SOAINFRA', REPOS_DBPASSWORD, REPOS_DBURL,'oracle.jdbc.OracleDriver')
<commit_msg>Limit WSM_ENABLED to WL versions 1036 and 1111<commit_after># load common defs
execfile('<%= @download_dir %>/utils.py')

WLHOME='<%= @weblogic_home_dir %>'
DOMAIN_PATH='<%= @domain_dir %>'
DOMAIN='<%= @domain_name %>'
<% if @apps_dir %>
APP_PATH='<%= @apps_dir %>/<%= @domain_name %>'
<% end %>

DEVELOPMENT_MODE=<%= @development_mode %>
CUSTOM_IDENTITY_ENABLED=<%= @custom_identity %>
JSSE_ENABLED=<%= @jsse_enabled %>
WEBLOGIC_VERSION=<%= @version %>
WEBTIER_ENABLED=<%= @webtier_enabled %>
ESS_ENABLED=<%= @ess_enabled %>
OWSM_ENABLED=<%= @owsm_enabled %>

ADMIN_SERVER='<%= @adminserver_name %>'
ADMIN_USER='<%= @weblogic_user %>'
ADMIN_PASSWORD='<%= <PASSWORD> %>'

JAVA_HOME='<%= @jdk_home_dir %>'
NODEMANAGER_SECURE_LISTENER=<%= @nodemanager_secure_listener %>

<% if @java_arguments["ADM"] %>
ADM_JAVA_ARGUMENTS='<%= @java_arguments["ADM"] %>'
<% else %>
ADM_JAVA_ARGUMENTS='-XX:PermSize=256m -XX:MaxPermSize=512m -Xms1024m -Xmx1024m -Dweblogic.Stdout=<%= @admin_nodemanager_log_dir %>/<%= @adminserver_name %>.out -Dweblogic.Stderr=<%= @admin_nodemanager_log_dir %>/<%= @adminserver_name %>_err.out'
<% end %>

<% if @java_arguments["OSB"] %>
OSB_JAVA_ARGUMENTS='<%= @java_arguments["OSB"] %>'
<% else %>
OSB_JAVA_ARGUMENTS='-XX:PermSize=512m -XX:MaxPermSize=512m -Xms1024m -Xmx1024m -Dweblogic.Stdout=<%= @osb_nodemanager_log_dir %>/osb_server1.out -Dweblogic.Stderr=<%= @osb_nodemanager_log_dir %>/osb_server1_err.out'
<% end %>

<% if @java_arguments["ESS"] %>
ESS_JAVA_ARGUMENTS='<%= @java_arguments["ESS"] %>'
<% else %>
ESS_JAVA_ARGUMENTS='-XX:PermSize=512m -XX:MaxPermSize=512m -Xms1024m -Xmx1024m -Dweblogic.Stdout=<%= @ess_nodemanager_log_dir %>/ess_server1.out -Dweblogic.Stderr=<%= @ess_nodemanager_log_dir %>/ess_server1_err.out'
<% end %>


REPOS_DBURL='<%= @repository_database_url %>'
REPOS_DBUSER_PREFIX='<%= @repository_prefix %>'
REPOS_DBPASSWORD='<%= @repository_password %>'

readDomain(DOMAIN_PATH)

changeServerArguments(ADMIN_SERVER, ADM_JAVA_ARGUMENTS)

cd('/')

<% if @apps_dir %>
setOption( "AppDir", APP_PATH )
<% end %>

print 'Adding EM Template'
addTemplate('<%= @templateEM %>')

dumpStack();

print('Extend...osb domain with template <%= @templateOSB %>')
addTemplate('<%= @templateWS %>')
addTemplate('<%= @templateOSB %>')

if WEBLOGIC_VERSION in (1036,1111) and OWSM_ENABLED == true:
  print 'Adding JRF Template'
  try:
    addTemplate('<%= @templateJRF %>')
  except:
    print 'Error adding JRF Template:', sys.exc_info()[0]

  print 'Adding WSM PM Template'
  addTemplate('<%= @templateWSMPM %>')
  print 'Adding OWSM template'
  addTemplate('<%= @templateOWSM %>')
  print 'Adding advanced JAX-WS Template'
  addTemplate('<%= @templateJaxWS %>')
  print 'Change datasource mds-owsm'
  changeDatasource('mds-owsm', REPOS_DBUSER_PREFIX+'_MDS', REPOS_DBPASSWORD, REPOS_DBURL)
  print 'Change datasource wlsbjmsrpDataSource'
  changeDatasourceDriver('wlsbjmsrpDataSource', REPOS_DBUSER_PREFIX+'_SOAINFRA', REPOS_DBPASSWORD, REPOS_DBURL,'oracle.jdbc.OracleDriver')

{'fraction_non_alphanumeric': 0.18702739035456226, 'fraction_numerical': 0.018484288354898338, 'mean_word_length': 7.576368876080692, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '928021', 'n_tokens_mistral': 2631, 'n_tokens_neox': 2362, 'n_words': 367}