<commit_before>resource "digitalocean_droplet" "bootstrap" {
  image = "${var.base_snapshot_id}"
  name = "bootstrap"
  region = "${var.region}"
  size = "${var.size}"
  private_networking = true

  ssh_keys = [
    "${var.ssh_fingerprint}"
  ]

  connection {
    user = "root"
    type = "ssh"
    private_key = "${file("${var.pvt_key}")}"
    timeout = "2m"
  }

  provisioner "file" {
    source = "scripts/all_the_things.sh"
    destination = "/root/all_the_things.sh"
  }

  provisioner "file" {
    source = "scripts/export_root_token.sh"
    destination = "/root/export_root_token.sh"
  }

  provisioner "file" {
    source = "${file("${var.pvt_key}")}"
    destination = "/root/DO_SSH_KEY"
  }

  # Set up chef. No chef-client --local provisioner yet
  provisioner "remote-exec" {
    inline = [
      # Until chef arrives,
      "bash all_the_things.sh ${var.project_branch} ${var.project} ${var.do_token} ${var.ssh_fingerprint}",
    ]<commit_msg>Fixing incorrect sourcing of file<commit_after>resource "digitalocean_droplet" "bootstrap" {
  image = "${var.base_snapshot_id}"
  name = "bootstrap"
  region = "${var.region}"
  size = "${var.size}"
  private_networking = true

  ssh_keys = [
    "${var.ssh_fingerprint}"
  ]

  connection {
    user = "root"
    type = "ssh"
    private_key = "${file("${var.pvt_key}")}"
    timeout = "2m"
  }

  provisioner "file" {
    source = "scripts/all_the_things.sh"
    destination = "/root/all_the_things.sh"
  }

  provisioner "file" {
    source = "scripts/export_root_token.sh"
    destination = "/root/export_root_token.sh"
  }

  provisioner "file" {
    source = "${var.pvt_key}"
    destination = "/root/DO_SSH_KEY"
  }

  # Set up chef. No chef-client --local provisioner yet
  provisioner "remote-exec" {
    inline = [
      # Until chef arrives,
      "bash all_the_things.sh ${var.project_branch} ${var.project} ${var.do_token} ${var.ssh_fingerprint}",
    ]
{'fraction_non_alphanumeric': 0.15636363636363637, 'fraction_numerical': 0.001038961038961039, 'mean_word_length': 3.2144420131291027, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '7220226', 'n_tokens_mistral': 709, 'n_tokens_neox': 688, 'n_words': 128}