<commit_before>---
- name: AgoraGui, config setup
  sudo: true
  sudo_user: agoragui
  replace: 'dest=/home/agoragui/avConfig.js
           regexp="{{item.regexp}}"
           replace="{{item.replace}}"'
  with_items:
    - regexp: "baseUrl:.*"
      replace: 'baseUrl: \""https://{{config.agora_elections.domain}}/elections/api/\"",'

    - regexp: "authAPI:.*"
      replace: 'authAPI: \""https://{{config.agora_elections.domain}}/authapi/api/\"",'

    - regexp: "electionsAPI:.*"
      replace: 'electionsAPI: \""https://{{config.agora_elections.domain}}/elections/api/\"",'

    - regexp: "publicURL:.*"
      replace: 'publicURL: \""https://{{config.agora_elections.domain}}/elections/public/\"",'

    - regexp: "director:.*"
      replace: 'director: \""{{ config.director }}\"",'

    - regexp: "authorities:.*"
      replace: 'authorities: {{ config.auths }},'

    - regexp: "([/][/] )?language:.*"
      replace: 'language: \""{{ config.agora_gui.language }}\"",'

    - regexp: "([/][/] )?lng:.*"
      replace: 'lng: \""{{ config.agora_gui.language }}\"",'

    - regexp: "[/][/] detectLngQS:"
      replace: 'detectLngQS:'

    - regexp: "debug:.*"
      replace: 'debug: {{ config.agora_gui.debug }},'

    - regexp: "defaultRoute:.*"
      replace: 'defaultRoute: \""{{ config.agora_gui.defaultRoute }}\"",'

    - regexp: "debug:.*"
      replace: 'debug: {{ config.agora_gui.debug }},'

    - regexp: "email:.*"
      replace: 'email: \""{{ config.agora_gui.contact.email }}\"",'

    - regexp: "sales:.*"
      replace: 'sales: \""{{ config.agora_gui.contact.sales }}\"",'

    - regexp: "facebook:.*"
      replace: 'facebook: \""{{ config.agora_gui.social.facebook }}\"",'

    - regexp: "twitter:.*"
      replace: 'twitter: \""{{ config.agora_gui.social.twitter }}\"",'

    - regexp: "googleplus:.*"
      replace: 'googleplus: \""{{ config.agora_gui.social.googleplus }}\"",'

    - regexp: "youtube:.*"
      replace: 'youtube: \""{{ config.agora_gui.social.youtube }}\"",'

    - regexp: "github:.*"
      replace: 'github: \""{{ config.agora_gui.social.github }}\"",'

    - regexp: "aboutus:.*"
      replace: 'aboutus: \""{{ config.agora_gui.technology.aboutus }}\"",'

    - regexp: "pricing:.*"
      replace: 'pricing: \""{{ config.agora_gui.technology.pricing }}\"",'

    - regexp: "overview:.*"
      replace: 'overview: \""{{ config.agora_gui.technology.overview }}\"",'

    - regexp: "solutions:.*"
      replace: 'solutions: \""{{ config.agora_gui.technology.solutions }}\"",'

    - regexp: "admin_manual:.*"
      replace: 'admin_manual: \""{{ config.agora_gui.technology.admin_manual }}\"",'

    - regexp: "terms_of_service:.*"<commit_msg>admin manual also sets helpUrl<commit_after>---
- name: AgoraGui, config setup
  sudo: true
  sudo_user: agoragui
  replace: 'dest=/home/agoragui/avConfig.js
           regexp="{{item.regexp}}"
           replace="{{item.replace}}"'
  with_items:
    - regexp: "baseUrl:.*"
      replace: 'baseUrl: \""https://{{config.agora_elections.domain}}/elections/api/\"",'

    - regexp: "authAPI:.*"
      replace: 'authAPI: \""https://{{config.agora_elections.domain}}/authapi/api/\"",'

    - regexp: "electionsAPI:.*"
      replace: 'electionsAPI: \""https://{{config.agora_elections.domain}}/elections/api/\"",'

    - regexp: "publicURL:.*"
      replace: 'publicURL: \""https://{{config.agora_elections.domain}}/elections/public/\"",'

    - regexp: "director:.*"
      replace: 'director: \""{{ config.director }}\"",'

    - regexp: "authorities:.*"
      replace: 'authorities: {{ config.auths }},'

    - regexp: "([/][/] )?language:.*"
      replace: 'language: \""{{ config.agora_gui.language }}\"",'

    - regexp: "([/][/] )?lng:.*"
      replace: 'lng: \""{{ config.agora_gui.language }}\"",'

    - regexp: "[/][/] detectLngQS:"
      replace: 'detectLngQS:'

    - regexp: "debug:.*"
      replace: 'debug: {{ config.agora_gui.debug }},'

    - regexp: "defaultRoute:.*"
      replace: 'defaultRoute: \""{{ config.agora_gui.defaultRoute }}\"",'

    - regexp: "debug:.*"
      replace: 'debug: {{ config.agora_gui.debug }},'

    - regexp: "email:.*"
      replace: 'email: \""{{ config.agora_gui.contact.email }}\"",'

    - regexp: "sales:.*"
      replace: 'sales: \""{{ config.agora_gui.contact.sales }}\"",'

    - regexp: "facebook:.*"
      replace: 'facebook: \""{{ config.agora_gui.social.facebook }}\"",'

    - regexp: "twitter:.*"
      replace: 'twitter: \""{{ config.agora_gui.social.twitter }}\"",'

    - regexp: "googleplus:.*"
      replace: 'googleplus: \""{{ config.agora_gui.social.googleplus }}\"",'

    - regexp: "youtube:.*"
      replace: 'youtube: \""{{ config.agora_gui.social.youtube }}\"",'

    - regexp: "github:.*"
      replace: 'github: \""{{ config.agora_gui.social.github }}\"",'

    - regexp: "aboutus:.*"
      replace: 'aboutus: \""{{ config.agora_gui.technology.aboutus }}\"",'

    - regexp: "pricing:.*"
      replace: 'pricing: \""{{ config.agora_gui.technology.pricing }}\"",'

    - regexp: "overview:.*"
      replace: 'overview: \""{{ config.agora_gui.technology.overview }}\"",'

    - regexp: "solutions:.*"
      replace: 'solutions: \""{{ config.agora_gui.technology.solutions }}\"",'

    - regexp: "admin_manual:.*"
      replace: 'admin_manual: \""{{ config.agora_gui.technology.admin_manual }}\"",'

    - regexp: "helpUrl:.*"
      replace: 'helpUrl: \""{{ config.agora_gui.technology.admin_manual }}\"",'

    - regexp: "terms_of_service:.*"
{'fraction_non_alphanumeric': 0.2390314946295285, 'fraction_numerical': 0.0, 'mean_word_length': 2.9496764917325664, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '4296840', 'n_tokens_mistral': 2115, 'n_tokens_neox': 1997, 'n_words': 278}