<commit_before>---



# Only required for developers and performance testing
- name: add mongo repo file
  template:
    src: mongo.repo.j2
    dest: /etc/yum.repos.d/mongo.repo
  run_once: yes

- name: Install mongodb-org package
  yum:
    name: mongodb-org
    state: installed
  run_once: yes

- name: Ensure MongoDB conf file in place
  template:
    src: mongod.conf.j2
    dest: /etc/mongod.conf

- name: run mongodb
  service:
    name: mongod
    state: started
    enabled: yes
  run_once: yes

# FIXME #753: Setup indexes for MongoDB used for profiling

- name: Install XHProf and mongo PECL packages for profiling
  pear:
    name: "{{ item }}"
    state: present
  with_items:
    - pecl/xhprof-beta
    - pecl/mongo

- name: Ensure XHGui present
  git:
    repo: https://github.com/perftools/xhgui.git
    dest: "{{ m_profiling_xhgui_directory }}"
    version: master
    force: yes

- name: Ensure XHGui directory owned by Apache
  file:
    path: "{{ m_profiling_xhgui_directory }}"
    owner: apache
    group: apache
    mode: 0755<commit_msg>Specify xhgui version; else breakage with master (#913)<commit_after>---



# Only required for developers and performance testing
- name: add mongo repo file
  template:
    src: mongo.repo.j2
    dest: /etc/yum.repos.d/mongo.repo
  run_once: yes

- name: Install mongodb-org package
  yum:
    name: mongodb-org
    state: installed
  run_once: yes

- name: Ensure MongoDB conf file in place
  template:
    src: mongod.conf.j2
    dest: /etc/mongod.conf

- name: run mongodb
  service:
    name: mongod
    state: started
    enabled: yes
  run_once: yes

# FIXME #753: Setup indexes for MongoDB used for profiling

- name: Install XHProf and mongo PECL packages for profiling
  pear:
    name: "{{ item }}"
    state: present
  with_items:
    - pecl/xhprof-beta
    - pecl/mongo

- name: Ensure XHGui present
  git:
    repo: https://github.com/perftools/xhgui.git
    dest: "{{ m_profiling_xhgui_directory }}"
    version: "0.8.1"
    force: yes

- name: Ensure XHGui directory owned by Apache
  file:
    path: "{{ m_profiling_xhgui_directory }}"
    owner: apache
    group: apache
    mode: 0755
{'fraction_non_alphanumeric': 0.09515011547344111, 'fraction_numerical': 0.011085450346420323, 'mean_word_length': 2.8268551236749118, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2388164', 'n_tokens_mistral': 792, 'n_tokens_neox': 758, 'n_words': 226}