<commit_before>@(matchesForm: Form[views.formdata.MatchesFormData],
  studentNames: Map[String, Boolean], 
  student: String,
  studentEmail: String,
  buyOffers: List[BuyOffer], 
  sellOffers: List[SellOffer],
  matchedForSellOffers: List[SellOffer],
  matchedForBuyOffers: List[BuyOffer])
  
 @import helper._
 @import bootstrap3._
  
@Main("Matches") {
   <div class="container">
    <div class="row">
     @form(routes.Application.postMatches(), 'class -> "form-horizontal") {
     
     <!-- Student Name -->
     @bootstrap3.select(matchesForm("studentEmail"),
          label = "Choose a Student",
          optionMap = studentNames,
          isMultiple = false,
          help = "")
     <button type="submit" class="btn btn-default col-sm-offset-2 col-sm-2">Find Matches</button>
     }
     </div>
   </div>
   
      <div class="container"> 
    @if(StudentDB.getStudent(studentEmail) != null) {
      <h2>Buy Offers <span class="badge">@buyOffers.size()</span></h2>
      <table class="table table-bordered">
        <tr>
          <th></th>
          <th>Name</th>
          <th>Book</th>
          <th>Price</th>
          <th>Expiration Date</th>
        </tr>
      @for(buyOffer <- buyOffers) {
        <tr>
          <td><img class="student-img" src=""></td>
          <td>@buyOffer.getStudentName()</td>
          <td>@buyOffer.getTextbookName()</td>
          <td>@buyOffer.getPrice()</td>
          <td>@buyOffer.getExpirationDate()</td>
        </tr>
      }    
      </table>
            <br />                  
      <h2>Potential Sellers <span class="badge">@matchedForSellOffers.size()</span></h2>
      <table class="table table-bordered">
        <tr>
          <th></th>
          <th>Name</th>
          <th>Book</th>
          <th>Price</th>
          <th>Expiration Date</th>
        </tr>
      @for(buyOffer <- matchedForSellOffers) {
        <tr>
          <td><img class="student-img" src=""></td>
          <td>@buyOffer.getStudent()</td>
          <td>@buyOffer.getTextbook()</td>
          <td>@buyOffer.getPrice()</td>
          <td>@buyOffer.getExpirationDate()</td>
        </tr>
      }    
      </table>
      <br />
      <h2>Sell Offers <span class="badge">@sellOffers.size()</span></h2>
      <table class="table table-bordered">
        <tr>
          <th></th>
          <th>Name</th>
          <th>Book</th>
          <th>Price</th>
          <th>Expiration Date</th>
        </tr>
      @for(sellOffer <- sellOffers) {
        <tr>
          <td><img class="student-img" src=""></td>
          <td>@sellOffer.getStudent()</td>
          <td>@sellOffer.getTextbook()</td>
          <td>@sellOffer.getPrice()</td>
          <td>@sellOffer.getExpirationDate()</td>
        </tr>
      }    
      </table>
      <br />      
      <h2>Potential Buyers <span class="badge">@matchedForBuyOffers.size()</span></h2>
      <table class="table table-bordered">
        <tr>
          <th></th>
          <th>Name</th>
          <th>Book</th>
          <th>Price</th>
          <th>Expiration Date</th>
        </tr>
      @for(sellOffer <- matchedForBuyOffers) {
        <tr>
          <td><img class="student-img" src=""></td>
          <td>@sellOffer.getStudentName()</td>
          <td>@sellOffer.getTextbookName()</td>
          <td>@sellOffer.getPrice()</td>
          <td>@sellOffer.getExpirationDate()</td>
        </tr>
      }    
      </table>
    }   
   </div>
         <br />
               <br />
}<commit_msg>Thumbnails in Matches.<commit_after>@(matchesForm: Form[views.formdata.MatchesFormData],
  studentNames: Map[String, Boolean], 
  student: String,
  studentEmail: String,
  buyOffers: List[BuyOffer], 
  sellOffers: List[SellOffer],
  matchedForSellOffers: List[SellOffer],
  matchedForBuyOffers: List[BuyOffer])
  
 @import helper._
 @import bootstrap3._
  
@Main("Matches") {
   <div class="container">
    <div class="row">
     @form(routes.Application.postMatches(), 'class -> "form-horizontal") {
     
     <!-- Student Name -->
     @bootstrap3.select(matchesForm("studentEmail"),
          label = "Choose a Student",
          optionMap = studentNames,
          isMultiple = false,
          help = "")
     <button type="submit" class="btn btn-default col-sm-offset-2 col-sm-2">Find Matches</button>
     }
     </div>
   </div>
   
      <div class="container"> 
    @if(StudentDB.getStudent(studentEmail) != null) {
      <h2>Buy Offers <span class="badge">@buyOffers.size()</span></h2>
      <table class="table table-bordered">
        <tr>
          <th></th>
          <th>Name</th>
          <th>Book</th>
          <th>Price</th>
          <th>Expiration Date</th>
        </tr>
      @for(buyOffer <- buyOffers) {
        <tr>
          <td><img class="student-img" src="@StudentDB.getStudent(BuyOfferDB.extractEmail(buyOffer)).getAvatarURL()"></td>
          <td>@buyOffer.getStudentName()</td>
          <td>@buyOffer.getTextbookName()</td>
          <td>@buyOffer.getPrice()</td>
          <td>@buyOffer.getExpirationDate()</td>
        </tr>
      }    
      </table>
            <br />                  
      <h2>Potential Sellers <span class="badge">@matchedForSellOffers.size()</span></h2>
      <table class="table table-bordered">
        <tr>
          <th></th>
          <th>Name</th>
          <th>Book</th>
          <th>Price</th>
          <th>Expiration Date</th>
        </tr>
      @for(buyOffer <- matchedForSellOffers) {
        <tr>
          <td><img class="student-img" src="@StudentDB.getStudent(SellOfferDB.extractEmail(buyOffer)).getAvatarURL()"></td>
          <td>@buyOffer.getStudent()</td>
          <td>@buyOffer.getTextbook()</td>
          <td>@buyOffer.getPrice()</td>
          <td>@buyOffer.getExpirationDate()</td>
        </tr>
      }    
      </table>
      <br />
      <h2>Sell Offers <span class="badge">@sellOffers.size()</span></h2>
      <table class="table table-bordered">
        <tr>
          <th></th>
          <th>Name</th>
          <th>Book</th>
          <th>Price</th>
          <th>Expiration Date</th>
        </tr>
      @for(sellOffer <- sellOffers) {
        <tr>
          <td><img class="student-img" src="@StudentDB.getStudent(SellOfferDB.extractEmail(sellOffer)).getAvatarURL()"></td>
          <td>@sellOffer.getStudent()</td>
          <td>@sellOffer.getTextbook()</td>
          <td>@sellOffer.getPrice()</td>
          <td>@sellOffer.getExpirationDate()</td>
        </tr>
      }    
      </table>
      <br />      
      <h2>Potential Buyers <span class="badge">@matchedForBuyOffers.size()</span></h2>
      <table class="table table-bordered">
        <tr>
          <th></th>
          <th>Name</th>
          <th>Book</th>
          <th>Price</th>
          <th>Expiration Date</th>
        </tr>
      @for(buyOffer <- matchedForBuyOffers) {
        <tr>
          <td><img class="student-img" src="@StudentDB.getStudent(BuyOfferDB.extractEmail(buyOffer)).getAvatarURL()"></td>
          <td>@buyOffer.getStudentName()</td>
          <td>@buyOffer.getTextbookName()</td>
          <td>@buyOffer.getPrice()</td>
          <td>@buyOffer.getExpirationDate()</td>
        </tr>
      }    
      </table>
    }   
   </div>
         <br />
               <br />
}
{'fraction_non_alphanumeric': 0.17931701921747545, 'fraction_numerical': 0.0033181252592285357, 'mean_word_length': 2.0166805671392827, 'pattern_counts': {'":': 0, '<': 287, '<?xml version=': 0, '>': 281, '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': '7639684', 'n_tokens_mistral': 2543, 'n_tokens_neox': 2447, 'n_words': 338}