<commit_before>---

- name: Remove VM's default gcloud installation
  file: path={{ item }} state=absent
  with_items:
        - /usr/lib/google-cloud-sdk
        - /usr/bin/gcloud
  sudo: yes

- name: Delete previous gcloud sdk installation directory
  file: path=~/google-cloud-sdk state=absent

- name: Download gcloud sdk
  get_url:
        url: https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.zip
        dest: /tmp/google-cloud-sdk.zip

- name: Unzip cloud sdk
  unarchive: src=/tmp/google-cloud-sdk.zip dest=~/ copy=no mode=0755

- name: Install gcloud sdk
  command: >
        ./install.sh 
        --usage-reporting false 
        --rc-path BOGUS 
        --command-completion false 
        --path-update false 
        --disable-installation-options
        chdir=~/google-cloud-sdk

- name: Copy gcloud_env.sh environment
  copy: src=gcloud_env.sh dest=/etc/profile.d/gcloud_env.sh mode=0644
  sudo: yes

- name: Update gcloud components
  command: ~/google-cloud-sdk/bin/gcloud components update app preview app-engine-java -q chdir=~<commit_msg>Add additional gcloud files to remove<commit_after>---

- name: Remove VM's default gcloud installation
  file: path={{ item }} state=absent
  with_items:
        - /usr/lib/google-cloud-sdk
        - /usr/bin/gcloud
        - /usr/bin/git-credential-gcloud.sh
        - /usr/bin/bq
        - /usr/bin/gsutil
  sudo: yes

- name: Delete previous gcloud sdk installation directory
  file: path=~/google-cloud-sdk state=absent

- name: Download gcloud sdk
  get_url:
        url: https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.zip
        dest: /tmp/google-cloud-sdk.zip

- name: Unzip cloud sdk
  unarchive: src=/tmp/google-cloud-sdk.zip dest=~/ copy=no mode=0755

- name: Install gcloud sdk
  command: >
        ./install.sh 
        --usage-reporting false 
        --rc-path BOGUS 
        --command-completion false 
        --path-update false 
        --disable-installation-options
        chdir=~/google-cloud-sdk

- name: Copy gcloud_env.sh environment
  copy: src=gcloud_env.sh dest=/etc/profile.d/gcloud_env.sh mode=0644
  sudo: yes

- name: Update gcloud components
  command: ~/google-cloud-sdk/bin/gcloud components update app preview app-engine-java -q chdir=~
{'fraction_non_alphanumeric': 0.12101063829787234, 'fraction_numerical': 0.0070921985815602835, 'mean_word_length': 2.5210608424336973, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '4530348', 'n_tokens_mistral': 776, 'n_tokens_neox': 741, 'n_words': 173}