<commit_before>- name: Adds google chrome repo
  copy: src=google-chrome.list
        dest=/etc/apt/sources.list.d/google-chrome.list
        owner=root
        group=root
        mode=0644

- name: Imports google's key
  command: bash -c "wget -q -O -
                    https://dl.google.com/linux/linux_signing_key.pub
                    | sudo apt-key add -"

- name: Installs necessary packages
  apt: pkg={{ item }} state=latest update_cache=yes
  with_items:
    - dmenu
    - feh
    - fonts-dejavu
    - fonts-droid
    - google-chrome-stable
    - rxvt-unicode-256color
    - slim
    - sxiv
    - ttf-bitstream-vera
    - xautolock
    - xcompmgr
    - xkbset
    - xmobar
    - xmonad
    - xscreensaver
    - xserver-xorg

- name: Assures config directory exists
  file: path=/home/{{ user }}/.config/ state=directory
  become: yes
  become_user: "{{ user }}"

- name: Installs wallpaper
  copy: src=wallpaper
        dest=/home/{{ user }}/.config/wallpaper
        owner={{ user }}
        group={{ user }}
        mode=0640
  become: yes
  become_user: "{{ user }}"

- name: Deploys xmonad
  git: repo=https://github.com/CrashenX/xmonad.git dest=~/src/xmonad/
  become: yes
  become_user: "{{ user }}"

- name: Deploys bashrc additions for xmonad
  get_url: url=https://raw.githubusercontent.com/CrashenX/xmonad/master/bashrc
           dest=~/.bashrc_{{ user }}_xmonad
           owner={{ user }}
           group={{ user }}
           mode=0640
  become: yes
  become_user: "{{ user }}"

- name: Configures user bashrc to use xmonad additions
  lineinfile: dest=~/.bashrc_{{ user }}
              line=". ~/.bashrc_{{ user }}_xmonad"
              regexp="^. ~/.bashrc_{{ user }}_xmoand"
  become: yes
  become_user: "{{ user }}"

- name: Installs xmonad configs
  command: ~/src/xmonad/install
  become: yes
  become_user: "{{ user }}"

- name: Restricts access to unprivileged user files
  file: path=/home/{{ user }} state=directory recurse=yes mode="o-rwx"
<commit_msg>add xclip<commit_after>- name: Adds google chrome repo
  copy: src=google-chrome.list
        dest=/etc/apt/sources.list.d/google-chrome.list
        owner=root
        group=root
        mode=0644

- name: Imports google's key
  command: bash -c "wget -q -O -
                    https://dl.google.com/linux/linux_signing_key.pub
                    | sudo apt-key add -"

- name: Installs necessary packages
  apt: pkg={{ item }} state=latest update_cache=yes
  with_items:
    - dmenu
    - feh
    - fonts-dejavu
    - fonts-droid
    - google-chrome-stable
    - rxvt-unicode-256color
    - slim
    - sxiv
    - ttf-bitstream-vera
    - xautolock
    - xclip
    - xcompmgr
    - xkbset
    - xmobar
    - xmonad
    - xscreensaver
    - xserver-xorg

- name: Assures config directory exists
  file: path=/home/{{ user }}/.config/ state=directory
  become: yes
  become_user: "{{ user }}"

- name: Installs wallpaper
  copy: src=wallpaper
        dest=/home/{{ user }}/.config/wallpaper
        owner={{ user }}
        group={{ user }}
        mode=0640
  become: yes
  become_user: "{{ user }}"

- name: Deploys xmonad
  git: repo=https://github.com/CrashenX/xmonad.git dest=~/src/xmonad/
  become: yes
  become_user: "{{ user }}"

- name: Deploys bashrc additions for xmonad
  get_url: url=https://raw.githubusercontent.com/CrashenX/xmonad/master/bashrc
           dest=~/.bashrc_{{ user }}_xmonad
           owner={{ user }}
           group={{ user }}
           mode=0640
  become: yes
  become_user: "{{ user }}"

- name: Configures user bashrc to use xmonad additions
  lineinfile: dest=~/.bashrc_{{ user }}
              line=". ~/.bashrc_{{ user }}_xmonad"
              regexp="^. ~/.bashrc_{{ user }}_xmoand"
  become: yes
  become_user: "{{ user }}"

- name: Installs xmonad configs
  command: ~/src/xmonad/install
  become: yes
  become_user: "{{ user }}"

- name: Restricts access to unprivileged user files
  file: path=/home/{{ user }} state=directory recurse=yes mode="o-rwx"

{'fraction_non_alphanumeric': 0.13552104208416835, 'fraction_numerical': 0.00751503006012024, 'mean_word_length': 2.291838417147568, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '3274229', 'n_tokens_mistral': 1454, 'n_tokens_neox': 1405, 'n_words': 320}