<commit_before>@(state: String, milestones: List[model.Milestone], counts: Map[(Int, Boolean), Int], repository: service.RepositoryService.RepositoryInfo, isWritable: Boolean)(implicit context: app.Context)
@import context._
@import view.helpers
@html.main("Milestones - " + repository.owner + "/" + repository.name){
  @html.header("milestones", repository)
  @issuestab("milestones", repository)
  <div class="row-fluid">
    <div class="span3">
      <ul class="nav nav-pills nav-stacked">
        <li@if(state == "open"){ class="active"}>
          <a href="?state=open">
            <span class="count-right">@milestones.filter(_.closedDate.isEmpty).size</span>
            Open Milestones
          </a>
        </li>
        <li@if(state == "closed"){ class="active"}>
          <a href="?state=closed">
            <span class="count-right">@milestones.filter(_.closedDate.isDefined).size</span>
            Closed Milestones
          </a>
        </li>
      </ul>
      @if(isWritable){
        <hr>
        <a href="@path/@repository.owner/@repository.name/issues/milestones/new" class="btn" style="display: block;">Create a new milestone</a>
      }
    </div>
    <div class="span9">
      <table class="table table-bordered table-hover">
        @defining(milestones.filter(m => if(state == "open") m.closedDate.isEmpty else m.closedDate.isDefined)){ milestones =>
          @milestones.map { milestone =>
          <tr>
            <td>
              <div class="milestone row-fluid">
                <div class="span4">
                  <a href="#" class="milestone-title">@milestone.title</a><br>
                  @if(milestone.closedDate.isDefined){
                    <span class="description">Closed @helpers.datetime(milestone.closedDate.get)</span>
                  } else {
                    @if(milestone.dueDate.isDefined){
                      <span class="description">Due in @helpers.date(milestone.dueDate.get)</span>
                    } else {
                      <span class="description">No due date</span>
                    }
                  }
                </div>
                <div class="span8">
                  @defining((counts.getOrElse((milestone.milestoneId, true), 0), counts.getOrElse((milestone.milestoneId, false), 0))) { case (closedCount, openCount) =>
                    <div class="milestone-menu">
                      <div class="pull-right">
                        @if(isWritable){
                          <a href="@path/@repository.owner/@repository.name/issues/milestones/@milestone.milestoneId/edit">Edit<commit_msg>Fix CSS styles.<commit_after>@(state: String, milestones: List[model.Milestone], counts: Map[(Int, Boolean), Int], repository: service.RepositoryService.RepositoryInfo, isWritable: Boolean)(implicit context: app.Context)
@import context._
@import view.helpers
@html.main("Milestones - " + repository.owner + "/" + repository.name){
  @html.header("milestones", repository)
  @issuestab("milestones", repository)
  <div class="row-fluid">
    <div class="span3">
      <ul class="nav nav-pills nav-stacked">
        <li@if(state == "open"){ class="active"}>
          <a href="?state=open">
            <span class="count-right">@milestones.filter(_.closedDate.isEmpty).size</span>
            Open Milestones
          </a>
        </li>
        <li@if(state == "closed"){ class="active"}>
          <a href="?state=closed">
            <span class="count-right">@milestones.filter(_.closedDate.isDefined).size</span>
            Closed Milestones
          </a>
        </li>
      </ul>
      @if(isWritable){
        <hr>
        <a href="@path/@repository.owner/@repository.name/issues/milestones/new" class="btn btn-block">Create a new milestone</a>
      }
    </div>
    <div class="span9">
      <table class="table table-bordered table-hover">
        @defining(milestones.filter(m => if(state == "open") m.closedDate.isEmpty else m.closedDate.isDefined)){ milestones =>
          @milestones.map { milestone =>
          <tr>
            <td>
              <div class="milestone row-fluid">
                <div class="span4">
                  <a href="#" class="milestone-title">@milestone.title</a><br>
                  @if(milestone.closedDate.isDefined){
                    <span class="description">Closed @helpers.datetime(milestone.closedDate.get)</span>
                  } else {
                    @if(milestone.dueDate.isDefined){
                      <span class="description">Due in @helpers.date(milestone.dueDate.get)</span>
                    } else {
                      <span class="description">No due date</span>
                    }
                  }
                </div>
                <div class="span8">
                  @defining((counts.getOrElse((milestone.milestoneId, true), 0), counts.getOrElse((milestone.milestoneId, false), 0))) { case (closedCount, openCount) =>
                    <div class="milestone-menu">
                      <div class="pull-right">
                        @if(isWritable){
                          <a href="@path/@repository.owner/@repository.name/issues/milestones/@milestone.milestoneId/edit">Edit
{'fraction_non_alphanumeric': 0.1537422839506173, 'fraction_numerical': 0.0023148148148148147, 'mean_word_length': 2.150060753341434, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 91, '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': '1204785', 'n_tokens_mistral': 1541, 'n_tokens_neox': 1447, 'n_words': 252}