<commit_before>###
Requires terraform installed
###

"use strict"
Beautifier = require('./beautifier')

module.exports = class Terraformfmt extends Beautifier
  name: "terraformfmt"
  link: "https://www.terraform.io/docs/commands/fmt.html"
  isPreInstalled: false

  options: {
    Terraform: true
  }

  beautify: (text, language, options) ->
    @run("terraform", [
      "fmt"
      tempFile = @tempFile("input", text)
      ])
      .then(=>
         @readFile(tempFile)
      )<commit_msg>fix space<commit_after>###
Requires terraform installed
###

"use strict"
Beautifier = require('./beautifier')

module.exports = class Terraformfmt extends Beautifier
  name: "terraformfmt"
  link: "https://www.terraform.io/docs/commands/fmt.html"
  isPreInstalled: false

  options: {
    Terraform: true
  }

  beautify: (text, language, options) ->
    @run("terraform", [
      "fmt"
      tempFile = @tempFile("input", text)
      ])
      .then(=>
        @readFile(tempFile)
      )
{'fraction_non_alphanumeric': 0.14649033570701933, 'fraction_numerical': 0.0, 'mean_word_length': 3.151898734177215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '1768315', 'n_tokens_mistral': 332, 'n_tokens_neox': 336, 'n_words': 67}