original_docstring: 
      Merges two companies by horizontally adding their production output curves
      in relation with their marginal costs.
  
      Args:
          comp_i: Company that will merge with another one
          comp_j: Company that will merge with another one
      Returns:
          Company post merge
      
docstring: Merges two companies by horizontally adding their production output curves
  in relation with their marginal costs.
docstring_tokens: Merges two companies by horizontally adding their production output curves in relation with their marginal costs .
code: def merge_companies(comp_i: Company, comp_j: Company) -> Company:
      """
      Merges two companies by horizontally adding their production output curves
      in relation with their marginal costs.
  
      Args:
          comp_i: Company that will merge with another one
          comp_j: Company that will merge with another one
      Returns:
          Company post merge
      """
      if (comp_i.s + comp_j.s) == 0:
          new_comp = Company(min(comp_i.i, comp_j.i), 0)
      elif comp_i.s == 0 or comp_j.s == 0:
          print("Edge case is ot accounted for.")
          exit()
      else:
          new_comp = Company((comp_j.s * comp_i.i + comp_i.s * comp_j.i) /
                             (comp_i.s + comp_j.s),
                             comp_i.s * comp_j.s / (comp_i.s + comp_j.s),
                             comp_i.name + '&' + comp_j.name)
      return new_comp
code_tokens: def merge_companies ( comp_i : Company , comp_j : Company ) -> Company : if ( comp_i . s + comp_j . s ) == 0 : new_comp = Company ( min ( comp_i . i , comp_j . i ) , 0 ) elif comp_i . s == 0 or comp_j . s == 0 : print ( "Edge case is ot accounted for." ) exit ( ) else : new_comp = Company ( ( comp_j . s * comp_i . i + comp_i . s * comp_j . i ) / ( comp_i . s + comp_j . s ) , comp_i . s * comp_j . s / ( comp_i . s + comp_j . s ) , comp_i . name + '&' + comp_j . name ) return new_comp
short_docstring: Merges two companies by horizontally adding their production output curves
  in relation with their marginal costs.
short_docstring_tokens: Merges two companies by horizontally adding their production output curves in relation with their marginal costs .
comment: """
      Merges two companies by horizontally adding their production output curves
      in relation with their marginal costs.
  
      Args:
          comp_i: Company that will merge with another one
          comp_j: Company that will merge with another one
      Returns:
          Company post merge
      """