<commit_before>@(textType: String, name: String, isDev: Boolean = play.api.Play.isDev(play.api.Play.current))

@textType match {
  case "js" => {
    @name match {
      case "google-chart" => {
        <script type="text/javascript" src="https://www.google.com/jsapi"></script>
      }
      case "kinetic" => {
        @js("kinetic-v4.5.4" + ".js", "kinetic-v4.5.4" + ".min.js", "libs/kinetic")
      }
      case path => {
        @js(path + ".js", path + ".min.js", "javascripts")
      }
    }
  }
  case "css" => {
    @name match {
      case path => {
        @css(path + ".min.css", path + ".min.css", "stylesheets")
      }
    }
  }
}

@css(name: String, minified: String, root: String) = {
  @if(isDev){
    @stylesheet(name, root)
  } else {
    @stylesheet(minified, root)
  }
}

@js(name: String, minified: String, root: String) = {
  @if(isDev){
    @javascript(name, root)
  } else {
    @javascript(minified, root)
  }
}

@stylesheet(path: String, root: String) = {
  <link rel="stylesheet" href="@routes.Assets.at(root + "/" + path)">
}

@javascript(path: String, root: String) = {
  <script src="@routes.Assets.at(root + "/" + path)" type="text/javascript"></script>
}
<commit_msg>Added type for javascript link<commit_after>@(textType: String, name: String, isDev: Boolean = play.api.Play.isDev(play.api.Play.current))

@textType match {
  case "js" => {
    @name match {
      case "google-chart" => {
        <script type="text/javascript" src="https://www.google.com/jsapi"></script>
      }
      case "kinetic" => {
        @js("kinetic-v4.5.4" + ".js", "kinetic-v4.5.4" + ".min.js", "libs/kinetic")
      }
      case path => {
        @js(path + ".js", path + ".min.js", "javascripts")
      }
    }
  }
  case "css" => {
    @name match {
      case path => {
        @css(path + ".min.css", path + ".min.css", "stylesheets")
      }
    }
  }
}

@css(name: String, minified: String, root: String) = {
  @if(isDev){
    @stylesheet(name, root)
  } else {
    @stylesheet(minified, root)
  }
}

@js(name: String, minified: String, root: String) = {
  @if(isDev){
    @javascript(name, root)
  } else {
    @javascript(minified, root)
  }
}

@stylesheet(path: String, root: String) = {
  <link rel="stylesheet" href="@routes.Assets.at(root + "/" + path)">
}

@javascript(path: String, root: String) = {
  <script type="text/javascript" src="@routes.Assets.at(root + "/" + path)" type="text/javascript"></script>
}

{'fraction_non_alphanumeric': 0.20638820638820637, 'fraction_numerical': 0.004914004914004914, 'mean_word_length': 2.7993779160186625, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 25, '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': '2740642', 'n_tokens_mistral': 911, 'n_tokens_neox': 904, 'n_words': 171}