<commit_before>package models

/** Trait representing an Bid order.
  *
  * A Bid order is an order to buy a security. The BidOrderLike trait should
  * be mixed in with each specific type of order (i.e., limit orders, market
  * orders, etc).
  *
  */
trait BidOrderLike extends OrderLike {

  val buy = true

  /** Whether or not the order crosses some other order. */
  def crosses(other: AskOrderLike): Boolean

  /** Price formation rules, */
  def formPrice(other: AskOrderLike): Double

}


object BidOrderLike {

  implicit val ordering: Ordering[BidOrderLike] = Ordering.fromLessThan {
    case (existing: LimitBidOrder, incoming: LimitBidOrder) =>
      incoming.limitPrice > existing.limitPrice // LimitBidOrder with higher limit price get priority
   }

}<commit_msg>Fixed merge conflicts<commit_after>package models

/** Trait representing an Bid order.
  *
  * A Bid order is an order to buy a security. The BidOrderLike trait should
  * be mixed in with each specific type of order (i.e., limit orders, market
  * orders, etc).
  *
  */
trait BidOrderLike extends OrderLike {

  val buy = true

  /** Whether or not the bid order crosses some ask order. */
  def crosses(other: AskOrderLike): Boolean

  /** Price formation rules. */
  def formPrice(other: AskOrderLike): Double

}


object BidOrderLike {

  implicit val ordering: Ordering[BidOrderLike] = Ordering.fromLessThan {
    case (existing: LimitBidOrder, incoming: LimitBidOrder) =>
      incoming.limitPrice > existing.limitPrice // LimitBidOrder with higher limit price get priority
   }

}
{'fraction_non_alphanumeric': 0.08545918367346939, 'fraction_numerical': 0.0, 'mean_word_length': 3.601173020527859, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4124915', 'n_tokens_mistral': 470, 'n_tokens_neox': 454, 'n_words': 171}