<commit_before>
prepare_catalogue:
  cmd.run:
    - name: docker run
              -e "MYSQLPASS={{ pillar['koha']['adminpass'] }}"
              -e "MYSQLUSER={{ pillar['koha']['adminuser'] }}"
              -e "KOHAINSTANCE={{ pillar['koha']['instance'] }}"
              -e "MYSQLHOST=db"
              -v "{{ pillar['migration-data-folder'] }}:/migration/data"
              --link koha_mysql_container:db
              deichman/migration:{{ pillar['migration']['image-tag'] }}
              make --file /migration/sh/Makefile prepare_catalogue
    - failhard: True

merge_catalogue_and_exemp:
  cmd.run:
    - name: docker run
              -e "MYSQLPASS={{ pillar['koha']['adminpass'] }}"
              -e "MYSQLUSER={{ pillar['koha']['adminuser'] }}"
              -e "KOHAINSTANCE={{ pillar['koha']['instance'] }}"
              -e "MYSQLHOST=db"
              -v "{{ pillar['migration-data-folder'] }}:/migration/data"
              --link koha_mysql_container:db
              deichman/migration:{{ pillar['migration']['image-tag'] }}
              make --file /migration/sh/Makefile merge_catalogue_and_exemp
    - require:
      - cmd: prepare_catalogue
    - failhard: True

marc2rdf:
  cmd.run:
    - name: docker run
              -v "{{ pillar['migration-data-folder'] }}:/migration/data"
              -w "/migration/marc2rdf"
              deichman/migration:{{ pillar['migration']['image-tag'] }}
              ruby marc2rdf.rb -i /migration/data/out.marcxml -o ../data/converted
    - require:
      - cmd: merge_catalogue_and_exemp
    - failhard: True

post_records_to_services:
  cmd.run:
    - name /vagrant/salt/migration/files/postrecords.sh --dir /var/migration_workdir/converted
    - require:
      - cmd: marc2rdf
    - failhard: True<commit_msg>Add missing colon in redef_catalogue_loaded.sls<commit_after>
prepare_catalogue:
  cmd.run:
    - name: docker run
              -e "MYSQLPASS={{ pillar['koha']['adminpass'] }}"
              -e "MYSQLUSER={{ pillar['koha']['adminuser'] }}"
              -e "KOHAINSTANCE={{ pillar['koha']['instance'] }}"
              -e "MYSQLHOST=db"
              -v "{{ pillar['migration-data-folder'] }}:/migration/data"
              --link koha_mysql_container:db
              deichman/migration:{{ pillar['migration']['image-tag'] }}
              make --file /migration/sh/Makefile prepare_catalogue
    - failhard: True

merge_catalogue_and_exemp:
  cmd.run:
    - name: docker run
              -e "MYSQLPASS={{ pillar['koha']['adminpass'] }}"
              -e "MYSQLUSER={{ pillar['koha']['adminuser'] }}"
              -e "KOHAINSTANCE={{ pillar['koha']['instance'] }}"
              -e "MYSQLHOST=db"
              -v "{{ pillar['migration-data-folder'] }}:/migration/data"
              --link koha_mysql_container:db
              deichman/migration:{{ pillar['migration']['image-tag'] }}
              make --file /migration/sh/Makefile merge_catalogue_and_exemp
    - require:
      - cmd: prepare_catalogue
    - failhard: True

marc2rdf:
  cmd.run:
    - name: docker run
              -v "{{ pillar['migration-data-folder'] }}:/migration/data"
              -w "/migration/marc2rdf"
              deichman/migration:{{ pillar['migration']['image-tag'] }}
              ruby marc2rdf.rb -i /migration/data/out.marcxml -o ../data/converted
    - require:
      - cmd: merge_catalogue_and_exemp
    - failhard: True

post_records_to_services:
  cmd.run:
    - name: /vagrant/salt/migration/files/postrecords.sh --dir /var/migration_workdir/converted
    - require:
      - cmd: marc2rdf
    - failhard: True
{'fraction_non_alphanumeric': 0.15779202676331197, 'fraction_numerical': 0.002230275996654586, 'mean_word_length': 2.186500888099467, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '515017', 'n_tokens_mistral': 1207, 'n_tokens_neox': 1176, 'n_words': 195}