<commit_before>void short_operation_v1::evaluate( transaction_evaluation_state& eval_state )
{
   if( eval_state._current_state->get_head_block_num() < BTSX_MARKET_FORK_5_BLOCK_NUM )
   {
      evaluate_v1( eval_state );
      return;
   }

   if( this->short_index.order_price == price() )
      FC_CAPTURE_AND_THROW( zero_price, (short_index.order_price) );

   auto owner = this->short_index.owner;
   if( !eval_state.check_signature( owner ) )
      FC_CAPTURE_AND_THROW( missing_signature, (short_index.owner) );

   asset delta_amount  = this->get_amount();
   asset delta_quote   = delta_amount * this->short_index.order_price;

   /** if the USD amount of the order is effectively then don't bother */
   FC_ASSERT( llabs(delta_quote.amount) > 0, "", ("delta_quote",delta_quote)("order",*this));

   eval_state.validate_asset( delta_amount );
   auto  asset_to_short = eval_state._current_state->get_asset_record( short_index.order_price.quote_asset_id );
   FC_ASSERT( asset_to_short.valid() );<commit_msg>Don't evaluate v1 short ops after hardfork<commit_after>void short_operation_v1::evaluate( transaction_evaluation_state& eval_state )
{
   if( eval_state._current_state->get_head_block_num() >= BTSX_MARKET_FORK_7_BLOCK_NUM )
   {
      FC_ASSERT( !"short_operation_v1 is no longer supported!" );
   }
   else if( eval_state._current_state->get_head_block_num() < BTSX_MARKET_FORK_5_BLOCK_NUM )
   {
      evaluate_v1( eval_state );
      return;
   }

   if( this->short_index.order_price == price() )
      FC_CAPTURE_AND_THROW( zero_price, (short_index.order_price) );

   auto owner = this->short_index.owner;
   if( !eval_state.check_signature( owner ) )
      FC_CAPTURE_AND_THROW( missing_signature, (short_index.owner) );

   asset delta_amount  = this->get_amount();
   asset delta_quote   = delta_amount * this->short_index.order_price;

   /** if the USD amount of the order is effectively then don't bother */
   FC_ASSERT( llabs(delta_quote.amount) > 0, "", ("delta_quote",delta_quote)("order",*this));

   eval_state.validate_asset( delta_amount );
   auto  asset_to_short = eval_state._current_state->get_asset_record( short_index.order_price.quote_asset_id );
   FC_ASSERT( asset_to_short.valid() );
{'fraction_non_alphanumeric': 0.11260655002243158, 'fraction_numerical': 0.00493494840735756, 'mean_word_length': 4.792207792207792, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '924910', 'n_tokens_mistral': 774, 'n_tokens_neox': 754, 'n_words': 128}