<commit_before><div class="ui vertical compact basic buttons">
  {{#if (and (eq record.status 'placed') (can-modify-order record))}}
    {{#ui-popup content=(t 'Mark Completed') click=(action (confirm (t 'Are you sure you would like to mark this Order as completed?') (action completeOrder record))) class='ui icon button' position='left center'}}
      <i class="check icon"></i>
    {{/ui-popup}}
  {{/if}}
  {{#if (and (not-eq record.status 'cancelled') (can-modify-order record))}}
    {{#ui-popup content=(t 'Cancel order') click=(action (confirm (t 'Are you sure you would like to cancel this Order?') (action cancelOrder record))) class='ui icon button' position='left center'}}
      <i class="delete icon"></i>
    {{/ui-popup}}
  {{/if}}
  {{#if (can-modify-order record)}}
    {{#ui-popup content=(t 'Delete order') click=(action (confirm (t 'Are you sure you would like to delete this Order?') (action deleteOrder record))) class='ui icon button' position='left center'}}<commit_msg>Remove cancel action from expired orders (#2502)<commit_after><div class="ui vertical compact basic buttons">
  {{#if (and (eq record.status 'placed') (can-modify-order record))}}
    {{#ui-popup content=(t 'Mark Completed') click=(action (confirm (t 'Are you sure you would like to mark this Order as completed?') (action completeOrder record))) class='ui icon button' position='left center'}}
      <i class="check icon"></i>
    {{/ui-popup}}
  {{/if}}
  {{#if (and (not-eq record.status 'cancelled') (not-eq record.status 'expired') (can-modify-order record))}}
    {{#ui-popup content=(t 'Cancel order') click=(action (confirm (t 'Are you sure you would like to cancel this Order?') (action cancelOrder record))) class='ui icon button' position='left center'}}
      <i class="delete icon"></i>
    {{/ui-popup}}
  {{/if}}
  {{#if (can-modify-order record)}}
    {{#ui-popup content=(t 'Delete order') click=(action (confirm (t 'Are you sure you would like to delete this Order?') (action deleteOrder record))) class='ui icon button' position='left center'}}
{'fraction_non_alphanumeric': 0.17444120505344995, 'fraction_numerical': 0.001943634596695821, 'mean_word_length': 4.81638418079096, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '4630801', 'n_tokens_mistral': 615, 'n_tokens_neox': 607, 'n_words': 228}