<commit_before>---
- name: Import some initial wiki content
  shell: >
    hhvm {{ mw_dir }}/maintenance/importDump.php /vagrant/roles/rdfio/files/wiki_content.xml
- name: Check out the WikiObjectModel extension
  git:
    repo=https://github.com/wikimedia/mediawiki-extensions-WikiObjectModel.git
    dest={{ mw_dir }}/extensions/WikiObjectModel
- name: Activate WikiObjectModel in MediaWiki settings file
  lineinfile:
    line='include_once("$IP/extensions/WikiObjectModel/WikiObjectModel.php");'
    dest={{ mw_dir }}/LocalSettings.php
    state=present
- name: Install ARC2
  composer:
    command=require
    arguments="semsol/arc2 v2.2.4 --update-no-dev"
    working_dir={{ mw_dir }}
- name: Check out the RDFIO
  git:
    repo=https://github.com/samuell/RDFIO.git
    dest={{ mw_dir }}/extensions/RDFIO
    version=SMW_2.3
- name: Activate RDFIO in MediaWiki settings file
  lineinfile:
    line='include_once("$IP/extensions/RDFIO/RDFIO.php");'
    dest={{ mw_dir }}/LocalSettings.php
    state=present
- name: Activate full OWL export, as needed by RDFIO
  lineinfile:
    line='$smwgOWLFullExport = true;'
    dest={{ mw_dir }}/LocalSettings.php
    state=present
- name: Change user & group for wiki folder
  file:
    path=/var/www/html/w
    owner=www-data
    group=www-data
    recurse=yes
- name: Print location of wiki
  debug:
    msg: "You can see your wiki, by entering in a browser: http://localhost:8080/w"
<commit_msg>Fix faulty message task<commit_after>---
- name: Import some initial wiki content
  shell: >
    hhvm {{ mw_dir }}/maintenance/importDump.php /vagrant/roles/rdfio/files/wiki_content.xml
- name: Check out the WikiObjectModel extension
  git:
    repo=https://github.com/wikimedia/mediawiki-extensions-WikiObjectModel.git
    dest={{ mw_dir }}/extensions/WikiObjectModel
- name: Activate WikiObjectModel in MediaWiki settings file
  lineinfile:
    line='include_once("$IP/extensions/WikiObjectModel/WikiObjectModel.php");'
    dest={{ mw_dir }}/LocalSettings.php
    state=present
- name: Install ARC2
  composer:
    command=require
    arguments="semsol/arc2 v2.2.4 --update-no-dev"
    working_dir={{ mw_dir }}
- name: Check out the RDFIO
  git:
    repo=https://github.com/samuell/RDFIO.git
    dest={{ mw_dir }}/extensions/RDFIO
    version=SMW_2.3
- name: Activate RDFIO in MediaWiki settings file
  lineinfile:
    line='include_once("$IP/extensions/RDFIO/RDFIO.php");'
    dest={{ mw_dir }}/LocalSettings.php
    state=present
- name: Activate full OWL export, as needed by RDFIO
  lineinfile:
    line='$smwgOWLFullExport = true;'
    dest={{ mw_dir }}/LocalSettings.php
    state=present
- name: Change user & group for wiki folder
  file:
    path=/var/www/html/w
    owner=www-data
    group=www-data
    recurse=yes
- name: Inform about manual steps needed to complete installation
  debug: "msg='MANUAL STEPS NEEDED TO COMPLETE INSTALLATION: 1. Visit this page on the wiki: http://localhost:8080/w/index.php/Special:RDFIOAdmin, 2. Click the Setup button.'"

{'fraction_non_alphanumeric': 0.11952191235059761, 'fraction_numerical': 0.00796812749003984, 'mean_word_length': 3.729984301412873, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 6, 'xml': 2}, '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': '1522696', 'n_tokens_mistral': 1061, 'n_tokens_neox': 1044, 'n_words': 246}