<commit_before>---
- include: Debian.yml
  when: ansible_os_family == "Debian"

- include: RedHat.yml
  when: ansible_os_family == "RedHat"

- name: update RedHat/CentOS alternatives to point to new JAVA installed
  alternatives: name=java path=/usr/lib/jvm/java-1.{{java_version}}.0-openjdk/jre/bin/java
  when: java_register_alternative

- name: Register JAVA_HOME env variable
  lineinfile: dest=/etc/profile state=present line="export JAVA_HOME=/usr/lib/jvm/java-1.{{java_version}}.0-openjdk"
  when: java_register_env
<commit_msg>Included support for register alternatives and env variables<commit_after>---
- include: Debian.yml
  when: ansible_os_family == "Debian"

- include: RedHat.yml
  when: ansible_os_family == "RedHat"

- name: update alternatives to point to new JAVA installed
  alternatives: name=java path=/usr/lib/jvm/java-1.{{java_version}}.0-openjdk/jre/bin/java
  when: java_register_alternative

- name: Register JAVA_HOME env variable
  lineinfile: dest=/etc/profile state=present line="export JAVA_HOME=/usr/lib/jvm/java-1.{{java_version}}.0-openjdk"
  when: java_register_env

{'fraction_non_alphanumeric': 0.12239347234814144, 'fraction_numerical': 0.007252946509519492, 'mean_word_length': 4.935483870967742, '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': '2431978', 'n_tokens_mistral': 407, 'n_tokens_neox': 384, 'n_words': 82}