<commit_before>data "template_file" "es_cluster_host" {
  template = "$${name}.$${region}.aws.found.io"

  vars {
    name   = "${var.es_config["name"]}"
    region = "${var.es_config["region"]}"
  }
}

module "calm_adapter" {
  source           = "./services"
  name             = "calm_adapter"
  cluster_id       = "${aws_ecs_cluster.services.id}"
  task_role_arn    = "${module.ecs_calm_adapter_iam.task_role_arn}"
  vpc_id           = "${module.vpc_services.vpc_id}"
  app_uri          = "${aws_ecr_repository.calm_adapter.repository_url}:${var.release_ids["calm_adapter"]}"
  nginx_uri        = "${aws_ecr_repository.nginx.repository_url}:services"
  listener_arn     = "${module.services_alb.listener_arn}"
  path_pattern     = "/calm_adapter/*"
  alb_priority     = "101"
  healthcheck_path = "/calm_adapter/management/healthcheck"
  infra_bucket     = "${var.infra_bucket}"

  # The Calm adapter is disabled when not running.  It only runs once a day
  # because the last_changed date on Calm records has per-day granularity.
  #
  # A scheduled Lambda sets the desired count to 1 on weekdays, and the
  # adapter resets it to zero when it finished running.
  desired_count = "0"

  config_vars = {
    table_name = "${aws_dynamodb_table.calm_table.name}"
    sns_arn    = "${module.service_scheduler_topic.arn}"
  }
}

module "miro_reindexer" {
  source           = "./services"
  name             = "miro_reindexer"
  cluster_id       = "${aws_ecs_cluster.services.id}"
  task_role_arn    = "${module.ecs_miro_reindexer_iam.task_role_arn}"
  vpc_id           = "${module.vpc_services.vpc_id}"
  app_uri          = "${aws_ecr_repository.calm_adapter.repository_url}:${var.release_ids["reindexer"]}"
  nginx_uri        = "${aws_ecr_repository.nginx.repository_url}:services"
  listener_arn     = "${module.services_alb.listener_arn}"
  path_pattern     = "/miro_reindexer/*"
  alb_priority     = "104"
  healthcheck_path = "/miro_reindexer/management/healthcheck"
  infra_bucket     = "${var.infra_bucket}"

  desired_count = "0"

  config_vars = {
    miro_table_name    = "${aws_dynamodb_table.miro_table.name}"
    reindex_table_name = "${aws_dynamodb_table.reindex_tracker.name}"
  }
}

module "ingestor" {
  source           = "./services"
  name             = "ingestor"
  cluster_id       = "${aws_ecs_cluster.services.id}"
  task_role_arn    = "${module.ecs_ingestor_iam.task_role_arn}"
  vpc_id           = "${module.vpc_services.vpc_id}"
  app_uri          = "${aws_ecr_repository.ingestor.repository_url}:${var.release_ids["ingestor"]}"
  nginx_uri        = "${aws_ecr_repository.nginx.repository_url}:services"
  listener_arn     = "${module.services_alb.listener_arn}"
  path_pattern     = "/ingestor/*"
  alb_priority     = "102"<commit_msg>calm_adapter -> reindexer in service config<commit_after>data "template_file" "es_cluster_host" {
  template = "$${name}.$${region}.aws.found.io"

  vars {
    name   = "${var.es_config["name"]}"
    region = "${var.es_config["region"]}"
  }
}

module "calm_adapter" {
  source           = "./services"
  name             = "calm_adapter"
  cluster_id       = "${aws_ecs_cluster.services.id}"
  task_role_arn    = "${module.ecs_calm_adapter_iam.task_role_arn}"
  vpc_id           = "${module.vpc_services.vpc_id}"
  app_uri          = "${aws_ecr_repository.calm_adapter.repository_url}:${var.release_ids["calm_adapter"]}"
  nginx_uri        = "${aws_ecr_repository.nginx.repository_url}:services"
  listener_arn     = "${module.services_alb.listener_arn}"
  path_pattern     = "/calm_adapter/*"
  alb_priority     = "101"
  healthcheck_path = "/calm_adapter/management/healthcheck"
  infra_bucket     = "${var.infra_bucket}"

  # The Calm adapter is disabled when not running.  It only runs once a day
  # because the last_changed date on Calm records has per-day granularity.
  #
  # A scheduled Lambda sets the desired count to 1 on weekdays, and the
  # adapter resets it to zero when it finished running.
  desired_count = "0"

  config_vars = {
    table_name = "${aws_dynamodb_table.calm_table.name}"
    sns_arn    = "${module.service_scheduler_topic.arn}"
  }
}

module "miro_reindexer" {
  source           = "./services"
  name             = "miro_reindexer"
  cluster_id       = "${aws_ecs_cluster.services.id}"
  task_role_arn    = "${module.ecs_miro_reindexer_iam.task_role_arn}"
  vpc_id           = "${module.vpc_services.vpc_id}"
  app_uri          = "${aws_ecr_repository.reindexer.repository_url}:${var.release_ids["reindexer"]}"
  nginx_uri        = "${aws_ecr_repository.nginx.repository_url}:services"
  listener_arn     = "${module.services_alb.listener_arn}"
  path_pattern     = "/miro_reindexer/*"
  alb_priority     = "104"
  healthcheck_path = "/miro_reindexer/management/healthcheck"
  infra_bucket     = "${var.infra_bucket}"

  desired_count = "0"

  config_vars = {
    miro_table_name    = "${aws_dynamodb_table.miro_table.name}"
    reindex_table_name = "${aws_dynamodb_table.reindex_tracker.name}"
  }
}

module "ingestor" {
  source           = "./services"
  name             = "ingestor"
  cluster_id       = "${aws_ecs_cluster.services.id}"
  task_role_arn    = "${module.ecs_ingestor_iam.task_role_arn}"
  vpc_id           = "${module.vpc_services.vpc_id}"
  app_uri          = "${aws_ecr_repository.ingestor.repository_url}:${var.release_ids["ingestor"]}"
  nginx_uri        = "${aws_ecr_repository.nginx.repository_url}:services"
  listener_arn     = "${module.services_alb.listener_arn}"
  path_pattern     = "/ingestor/*"
  alb_priority     = "102"
{'fraction_non_alphanumeric': 0.13141314131413143, 'fraction_numerical': 0.00432043204320432, 'mean_word_length': 3.350822239624119, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '882076', 'n_tokens_mistral': 1988, 'n_tokens_neox': 1945, 'n_words': 291}