original_docstring: 
      Replace the two companies that merge, in the given list, with the newly formed one.
      Args:
          demand: Market's demand
          companies: An ordered list of the companies that are competing
          to_merge: A tuple composed of the two indexes of the two companies that
                  will merge.
      Returns:
          Company_List after given merger
      
docstring: Replace the two companies that merge, in the given list, with the newly formed one.
docstring_tokens: Replace the two companies that merge in the given list with the newly formed one .
code: def merge_two(demand: Demand, companies: CompanyList, to_merge: Tuple[int, int]):
      """
      Replace the two companies that merge, in the given list, with the newly formed one.
      Args:
          demand: Market's demand
          companies: An ordered list of the companies that are competing
          to_merge: A tuple composed of the two indexes of the two companies that
                  will merge.
      Returns:
          Company_List after given merger
      """
      companies_post_merge = copy.copy(companies)
  
      comp_i = companies_post_merge[to_merge[0]]
      comp_j = companies_post_merge[to_merge[1]]
      new_company = merge_companies(comp_i, comp_j)
  
      companies_post_merge.remove(comp_i)
      companies_post_merge.remove(comp_j)
      companies_post_merge.insert(0, new_company)
      return set_cournot_production(demand, companies_post_merge)
code_tokens: def merge_two ( demand : Demand , companies : CompanyList , to_merge : Tuple [ int , int ] ) : companies_post_merge = copy . copy ( companies ) comp_i = companies_post_merge [ to_merge [ 0 ] ] comp_j = companies_post_merge [ to_merge [ 1 ] ] new_company = merge_companies ( comp_i , comp_j ) companies_post_merge . remove ( comp_i ) companies_post_merge . remove ( comp_j ) companies_post_merge . insert ( 0 , new_company ) return set_cournot_production ( demand , companies_post_merge )
short_docstring: Replace the two companies that merge, in the given list, with the newly formed one.
short_docstring_tokens: Replace the two companies that merge in the given list with the newly formed one .
comment: """
      Replace the two companies that merge, in the given list, with the newly formed one.
      Args:
          demand: Market's demand
          companies: An ordered list of the companies that are competing
          to_merge: A tuple composed of the two indexes of the two companies that
                  will merge.
      Returns:
          Company_List after given merger
      """