<commit_before><div class="boxframe">
  <img src="http://covers.openlibrary.org/b/isbn/{{book.isbn}}-M.jpg?default=false" alt='bookcover' onerror="this.src='/assets/no-image-l.png'" style="width:178px;height:255px;">

  <h3 class='boxframe-title'>{{book.title}}</h3>  
  <p class='boxframe-subj'>Author: </p>
  <p class='boxframe-desc'>{{book.authorFullName}}</p>
  <p class='boxframe-subj'>Genre(s):</p>
  {{#each book.genres}}
  <p class='boxframe-desc'>{{this.name}}</p>
  {{/each}}

  <p class='boxframe-subj'> ISBN: </p>
  <p class='boxframe-desc'>{{book.isbn}}</p>
  <p class='boxframe-subj'>Condition:</p>
  <p class='boxframe-desc'>{{book.condition}}</p>
  <p class='boxframe-subj'>Description:</p>
  <p class='boxframe-desc'>{{book.description}}</p>


  {{#if trade.book_first_trader_wants_id}} <!-- if current_user needs to complete a trade with this user -->
  <div class='boxframe-subj' id='trader1-rating'>Trader's Rating: {{other_trader_rating}} out of 3 (3 is best)
  </div><br>
    <button type="button" class="btn btn-primary btn-xs" data-user={{book.user_id}} data-book={{book.id}} id="complete-trade-btn">Complete a Trade</button>

  {{else if trade.status}} <!-- if current_user wants to create a new trade with this user -->
  <div class='boxframe-subj' id='trader1-rating'>Trader's Rating: {{other_trader_rating}} out of 3 (3 is best)
  </div><br>
    <button type="button" class="btn btn-primary btn-xs" data-user={{book.user_id}} data-book={{book.id}} id="request-trade-btn">Request a Trade</button>

  {{else}} <!-- if this is the current_user's book -->
    <button type="button" class="btn btn-primary btn-xs" data-user={{book.user_id}} data-book={{book.id}} id="edit-book-btn">Edit This Book</button>
    <button type="button" class="btn btn-primary btn-xs" data-user={{book.user_id}} data-book={{book.id}} id="delete-book-btn" onclick = "return confirm('are you sure?')">Delete This Book</button>
  {{/if}}
</div>
<hr>




<commit_msg>built out trade request button data<commit_after><div class="boxframe">
  <img src="http://covers.openlibrary.org/b/isbn/{{book.isbn}}-M.jpg?default=false" alt='bookcover' onerror="this.src='/assets/no-image-l.png'" style="width:178px;height:255px;">

  <h3 class='boxframe-title'>{{book.title}}</h3>  
  <p class='boxframe-subj'>Author: </p>
  <p class='boxframe-desc'>{{book.authorFullName}}</p>
  <p class='boxframe-subj'>Genre(s):</p>
  {{#each book.genres}}
  <p class='boxframe-desc'>{{this.name}}</p>
  {{/each}}

  <p class='boxframe-subj'> ISBN: </p>
  <p class='boxframe-desc'>{{book.isbn}}</p>
  <p class='boxframe-subj'>Condition:</p>
  <p class='boxframe-desc'>{{book.condition}}</p>
  <p class='boxframe-subj'>Description:</p>
  <p class='boxframe-desc'>{{book.description}}</p>


  {{#if trade.book_first_trader_wants_id}} <!-- if current_user needs to complete a trade with this user -->
  <div class='boxframe-subj' id='trader1-rating'>Trader's Rating: {{other_trader_rating}} out of 3 (3 is best)
  </div><br>
    <button type="button" class="btn btn-primary btn-xs" data-user={{book.user_id}} data-book={{book.id}} id="complete-trade-btn">Complete a Trade</button>

  {{else if trade.status}} <!-- if current_user wants to create a new trade with this user -->
  <div class='boxframe-subj' id='trader1-rating'>Trader's Rating: {{other_trader_rating}} out of 3 (3 is best) 
  </div><br>
    <button type="button" class="btn btn-primary btn-xs" data-trader1={{trade.first_trader_id}} data-trader2={{book.user_id}}  data-book={{book.id}} id="request-trade-btn">Request a Trade</button>

  {{else}} <!-- if this is the current_user's book -->
    <button type="button" class="btn btn-primary btn-xs" data-user={{book.user_id}} data-book={{book.id}} id="edit-book-btn">Edit This Book</button>
    <button type="button" class="btn btn-primary btn-xs" data-user={{book.user_id}} data-book={{book.id}} id="delete-book-btn" onclick = "return confirm('are you sure?')">Delete This Book</button>
  {{/if}}
</div>
<hr>





{'fraction_non_alphanumeric': 0.21607411116675013, 'fraction_numerical': 0.007511266900350526, 'mean_word_length': 5.080669710806697, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 89, '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': '6266962', 'n_tokens_mistral': 1476, 'n_tokens_neox': 1435, 'n_words': 286}