<commit_before>@(aa: Asset.AllAttributes, user: User)(implicit flash: Flash, req: Request[AnyContent])

@import helper._
@import util.notice
@import _root_.util.conversions._
@import _root_.util.{PowerManagement, Provisioner, SoftLayer}
@import _root_.util.plugins.Maintenance
@import _root_.util.views.{ListHelper, OptionSorter, ProvisionerHelper, Summary, TagDecorator, Titler}
@import _root_.models.IpmiInfo.Enum._

@main(Titler(aa.asset)) {
<div class="row">
  <div class="span14">
    @notice("message", Some("notice"))
    @notice("error")
    @notice("warning")
  </div>
</div>

@show_menu(aa, user)

<div class="span14 tab-content">

  <div class="active tab-pane" id="overview">
    <h3>Overview</h3>
    <table id="basicDataTable" class="zebra-striped condensed-table">
      <thead>
        <tr>
          <th></th><th></th><th></th>
        </tr>
      </thead>
      <tbody>
        @aa.asset.getMetaAttribute("HOSTNAME").map { hostname =>
          <tr>
            <th>Hostname</th>
            <td>@hostname</td>
            <td>Hostname</td>
          </tr>
        }
        @if(aa.addresses.size > 0) {
        <tr>
          <th>Ip Addresses</th>
          <td>@TagDecorator.decorate("IP_ADDRESS", aa.addresses.map(_.dottedAddress).toList, ", ")</td>
          <td>Primary IP Addresses</td>
        </tr>
        }
        <tr>
          <th>Asset Tag</th>
          @SoftLayer.pluginEnabled.filter(p => p.isSoftLayerAsset(aa.asset)).map { t =>
	    @slLink(aa.asset, aa.asset.tag)
	  }.getOrElse{<td>@aa.asset.tag</td>}
          <td></td>
        </tr>
        <tr>
          <th>Asset Type</th>
          <td>@aa.asset.getType().name</td>
          <td></td>
        </tr>
        <tr>
          <th>Asset Status</th>
          <td>@aa.asset.getStatus().name</td>
@if(aa.asset.getStatus().name == "Maintenance") {<commit_msg>adding similar search link in asset show page<commit_after>@(aa: Asset.AllAttributes, user: User)(implicit flash: Flash, req: Request[AnyContent])

@import helper._
@import util.notice
@import _root_.util.conversions._
@import _root_.util.{PowerManagement, Provisioner, SoftLayer}
@import _root_.util.plugins.Maintenance
@import _root_.util.views.{ListHelper, OptionSorter, ProvisionerHelper, Summary, TagDecorator, Titler}
@import _root_.models.IpmiInfo.Enum._

@main(Titler(aa.asset)) {
<div class="row">
  <div class="span14">
    @notice("message", Some("notice"))
    @notice("error")
    @notice("warning")
  </div>
</div>

@show_menu(aa, user)

<div class="span14 tab-content">


  <div class="active tab-pane" id="overview">
    <h3>Overview</h3>
    <table id="basicDataTable" class="zebra-striped condensed-table">
      <thead>
        <tr>
          <th></th><th></th><th></th>
        </tr>
      </thead>
      <tbody>
        @aa.asset.getMetaAttribute("HOSTNAME").map { hostname =>
          <tr>
            <th>Hostname</th>
            <td>@hostname</td>
            <td>Hostname</td>
          </tr>
        }
        @if(aa.addresses.size > 0) {
        <tr>
          <th>Ip Addresses</th>
          <td>@TagDecorator.decorate("IP_ADDRESS", aa.addresses.map(_.dottedAddress).toList, ", ")</td>
          <td>Primary IP Addresses</td>
        </tr>
        }
        <tr>
          <th>Asset Tag</th>
          @SoftLayer.pluginEnabled.filter(p => p.isSoftLayerAsset(aa.asset)).map { t =>
	    @slLink(aa.asset, aa.asset.tag)
	  }.getOrElse{<td>@aa.asset.tag</td>}
          <td><a href="@app.routes.Resources.similar(aa.asset.tag)"/>Find Similar Assets</a></td>
        </tr>
        <tr>
          <th>Asset Type</th>
          <td>@aa.asset.getType().name</td>
          <td></td>
        </tr>
        <tr>
          <th>Asset Status</th>
          <td>@aa.asset.getStatus().name</td>
@if(aa.asset.getStatus().name == "Maintenance") {
{'fraction_non_alphanumeric': 0.18308379301287103, 'fraction_numerical': 0.0036774363015497765, 'mean_word_length': 2.5291936978683967, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 127, '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': '3002179', 'n_tokens_mistral': 1350, 'n_tokens_neox': 1327, 'n_words': 214}