<commit_before>---
- name: Deploy spring petclinic as Linux Service
  hosts: appserver
  become: yes
  vars:
    java_package: openjdk-11-jdk
    app_dir: /usr/share/springpetclinic
    app_download_url: https://referenceapplicationskhaja.s3-us-west-2.amazonaws.com/spring-petclinic-2.4.2.jar
    app_file_name: /usr/share/springpetclinic/spring-petclinic-2.4.2.jar
    app_username: springbootuser
  tasks:
    - name: Update ubuntu packages and install java
      apt:
        name: {{ java_package }}
        update_cache: yes
        state: present
    - name: Create a spring petclinic directory
      file:
        path: {{ app_dir }}
        state: directory
    - name: download spring petclinic
      get_url:
        url: {{ app_download_url }}
        dest: {{ app_file_name }}
    - name: Create springbootuser
      user:
        name: {{ app_username }}
        password: {{ app_username }}
        state: present
    - name: Change ownership of jar file
      file:
        path: {{ app_file_name }}
        owner: {{ app_username }}
        mode: '500'
        state: file
    - name: Copy the spring petclinic service file<commit_msg>Made syntax corrections<commit_after>---
- name: Deploy spring petclinic as Linux Service
  hosts: appserver
  become: yes
  vars:
    java_package: openjdk-11-jdk
    app_dir: /usr/share/springpetclinic
    app_download_url: https://referenceapplicationskhaja.s3-us-west-2.amazonaws.com/spring-petclinic-2.4.2.jar
    app_file_name: /usr/share/springpetclinic/spring-petclinic-2.4.2.jar
    app_username: springbootuser
  tasks:
    - name: Update ubuntu packages and install java
      apt:
        name: "{{ java_package }}"
        update_cache: yes
        state: present
    - name: Create a spring petclinic directory
      file:
        path: "{{ app_dir }}"
        state: directory
    - name: download spring petclinic
      get_url:
        url: "{{ app_download_url }}"
        dest: "{{ app_file_name }}"
    - name: Create springbootuser
      user:
        name: "{{ app_username }}"
        password: "{{ <PASSWORD> }}"
        state: present
    - name: Change ownership of jar file
      file:
        path: "{{ app_file_name }}"
        owner: "{{ app_username }}"
        mode: '500'
        state: file
    - name: Copy the spring petclinic service file
{'fraction_non_alphanumeric': 0.10318142734307825, 'fraction_numerical': 0.01117798796216681, 'mean_word_length': 2.3675832127351666, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6709681', 'n_tokens_mistral': 749, 'n_tokens_neox': 725, 'n_words': 181}