<commit_before>#cloud-config
coreos:
  update:
    reboot-strategy: 'off'
  units:
    - name: 10-weave.network
      runtime: false
      content: |
        [Match]
        Type=bridge
        Name=weave*

        [Network]

    - name: weave.service
      content: |
        [Unit]
        After=install-weave.service
        Description=Weave Network
        Documentation=http://zettio.github.io/weave/
        Requires=install-weave.service

        [Service]
        EnvironmentFile=/etc/weave.env
        ExecStartPre=/opt/bin/weave launch -password ${WEAVE_LAUNCH_PASSWORD} $WEAVE_LAUNCH_KNOW_NODES
        ExecStartPre=/opt/bin/weave launch-dns $WEAVE_LAUNCH_DNS_ARGS -debug
        ExecStart=/usr/bin/docker logs -f weave
        SuccessExitStatus=2
        ExecStop=/opt/bin/weave stop

    - name: install-weave.service
      command: start
      enable: true
      content: |
        [Unit]
        After=pre-fetch-container-images.service
        After=network-online.target
        After=docker.service
        Description=Install Weave
        Documentation=http://zettio.github.io/weave/
        Requires=pre-fetch-container-images.service
        Requires=network-online.target
        Requires=docker.service

        [Service]
        Type=oneshot
        RemainAfterExit=yes
        ExecStartPre=/usr/bin/wget -N -P /opt/bin \
            https://raw.github.com/zettio/weave/master/weave 
        ExecStartPre=/usr/bin/chmod +x /opt/bin/weave
        ExecStart=/bin/echo Wave Installed

    - name: pre-fetch-container-images.service
      command: start
      enable: true
      content: |
        [Unit]
        After=docker.service
        Requires=docker.service

        [Service]
        EnvironmentFile=/etc/pre-fetch-container-images.env
        Type=oneshot
        RemainAfterExit=yes<commit_msg>Trim blank lines<commit_after>#cloud-config
coreos:
  update:
    reboot-strategy: 'off'
  units:
    - name: 10-weave.network
      runtime: false
      content: |
        [Match]
        Type=bridge
        Name=weave*
        [Network]

    - name: weave.service
      content: |
        [Unit]
        After=install-weave.service
        Description=Weave Network
        Documentation=http://zettio.github.io/weave/
        Requires=install-weave.service
        [Service]
        EnvironmentFile=/etc/weave.env
        ExecStartPre=/opt/bin/weave launch -password ${WEAVE_LAUNCH_PASSWORD} $WEAVE_LAUNCH_KNOW_NODES
        ExecStartPre=/opt/bin/weave launch-dns $WEAVE_LAUNCH_DNS_ARGS -debug
        ExecStart=/usr/bin/docker logs -f weave
        SuccessExitStatus=2
        ExecStop=/opt/bin/weave stop

    - name: install-weave.service
      command: start
      enable: true
      content: |
        [Unit]
        After=pre-fetch-container-images.service
        After=network-online.target
        After=docker.service
        Description=Install Weave
        Documentation=http://zettio.github.io/weave/
        Requires=pre-fetch-container-images.service
        Requires=network-online.target
        Requires=docker.service
        [Service]
        Type=oneshot
        RemainAfterExit=yes
        ExecStartPre=/usr/bin/wget -N -P /opt/bin \
            https://raw.github.com/zettio/weave/master/weave 
        ExecStartPre=/usr/bin/chmod +x /opt/bin/weave
        ExecStart=/bin/echo Wave Installed

    - name: pre-fetch-container-images.service
      command: start
      enable: true
      content: |
        [Unit]
        After=docker.service
        Requires=docker.service
        [Service]
        EnvironmentFile=/etc/pre-fetch-container-images.env
        Type=oneshot
        RemainAfterExit=yes
{'fraction_non_alphanumeric': 0.09800164248562825, 'fraction_numerical': 0.0016424856282507528, 'mean_word_length': 2.0835443037974684, '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': '4874194', 'n_tokens_mistral': 1184, 'n_tokens_neox': 1116, 'n_words': 175}