<commit_before>---
- apt: name={{ item }}
  with_items:
    - git
    - mercurial
    - build-essential
    - imagemagick
    - libmagickwand-dev
    - unzip
- user: name=deploy
- postgresql_user: name=deploy
  sudo_user: postgres
- postgresql_db: name=redmine owner=deploy encoding='UTF-8' lc_collate='en_US.UTF-8' lc_ctype='en_US.UTF-8' template='template0'
  sudo_user: postgres
- git: repo=https://github.com/redmine/redmine.git dest=/home/deploy/redmine version=2.5-stable
  sudo_user: deploy
  notify: [redmine bundle install, redmine rake tasks]
- copy: src=database.yml dest=/home/deploy/redmine/config/database.yml
  sudo_user: deploy
  notify: [redmine bundle install, redmine rake tasks]
- copy: src=nginx.conf dest=/etc/nginx/sites-available/redmine
  notify: [reload nginx]
- file: src=/etc/nginx/sites-available/redmine dest=/etc/nginx/sites-enabled/redmine state=link
  notify: [reload nginx]
- copy: src=logrotate.conf dest=/etc/logrotate.d/redmine
- git: repo={{ item.repo }} dest=/home/deploy/redmine/plugins/{{ item.name }} depth=1
  sudo_user: deploy
  with_items:
    - name: 'redmine_custom_css'
      repo: 'https://github.com/martin-denizet/redmine_custom_css.git'
    - name: 'redmine_login_audit'
      repo: 'https://github.com/martin-denizet/redmine_login_audit.git'
  notify: [redmine bundle install, redmine rake plugins]
- get_url: dest=/home/deploy/redmine/public/themes/{{ item.name }}.zip url={{ item.url }}
  sudo_user: deploy
  with_items:
    - name: 'a1'
      url: 'http://redminecrm.com/license_manager/7644/a1-1_1_2.zip'
    - name: 'coffee'
      url: 'http://redminecrm.com/license_manager/7645/coffee-0_0_4.zip'
    - name: 'highrise'
      url: 'http://redminecrm.com/license_manager/7646/highrise-1_1_2.zip'
    - name: 'circle'
      url: 'http://redminecrm.com/license_manager/11619/circle_theme-1_0_2.zip'
  notify: [redmine unzip themes]
<commit_msg>add redmine lightbox plugin<commit_after>---
- apt: name={{ item }}
  with_items:
    - git
    - mercurial
    - build-essential
    - imagemagick
    - libmagickwand-dev
    - unzip
- user: name=deploy
- postgresql_user: name=deploy
  sudo_user: postgres
- postgresql_db: name=redmine owner=deploy encoding='UTF-8' lc_collate='en_US.UTF-8' lc_ctype='en_US.UTF-8' template='template0'
  sudo_user: postgres
- git: repo=https://github.com/redmine/redmine.git dest=/home/deploy/redmine version=2.5-stable
  sudo_user: deploy
  notify: [redmine bundle install, redmine rake tasks]
- copy: src=database.yml dest=/home/deploy/redmine/config/database.yml
  sudo_user: deploy
  notify: [redmine bundle install, redmine rake tasks]
- copy: src=nginx.conf dest=/etc/nginx/sites-available/redmine
  notify: [reload nginx]
- file: src=/etc/nginx/sites-available/redmine dest=/etc/nginx/sites-enabled/redmine state=link
  notify: [reload nginx]
- copy: src=logrotate.conf dest=/etc/logrotate.d/redmine
- git: repo={{ item.repo }} dest=/home/deploy/redmine/plugins/{{ item.name }} depth=1
  sudo_user: deploy
  with_items:
    - name: 'redmine_custom_css'
      repo: 'https://github.com/martin-denizet/redmine_custom_css.git'
    - name: 'redmine_login_audit'
      repo: 'https://github.com/martin-denizet/redmine_login_audit.git'
    - name: 'redmine_lightbox'
      repo: 'https://github.com/zipme/redmine_lightbox.git'
  notify: [redmine bundle install, redmine rake plugins]
- get_url: dest=/home/deploy/redmine/public/themes/{{ item.name }}.zip url={{ item.url }}
  sudo_user: deploy
  with_items:
    - name: 'a1'
      url: 'http://redminecrm.com/license_manager/7644/a1-1_1_2.zip'
    - name: 'coffee'
      url: 'http://redminecrm.com/license_manager/7645/coffee-0_0_4.zip'
    - name: 'highrise'
      url: 'http://redminecrm.com/license_manager/7646/highrise-1_1_2.zip'
    - name: 'circle'
      url: 'http://redminecrm.com/license_manager/11619/circle_theme-1_0_2.zip'
  notify: [redmine unzip themes]

{'fraction_non_alphanumeric': 0.14443021766965428, 'fraction_numerical': 0.019462227912932138, 'mean_word_length': 3.786764705882353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, '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': '7021269', 'n_tokens_mistral': 1536, 'n_tokens_neox': 1459, 'n_words': 247}