original_docstring: Given two atoms and bond between them, to see if they can merge into an aromatic ring.
docstring: Given two atoms and bond between them, to see if they can merge into an aromatic ring.
docstring_tokens: Given two atoms and bond between them to see if they can merge into an aromatic ring .
code: def aromaticmerge(atom1, atom2, bond):
      '''Given two atoms and bond between them, to see if they can merge into an aromatic ring.'''
      # I would not expect structures like `c1ccc2c(c1)-c1ccccc1-2`
      if atom1.GetIsAromatic() and atom2.GetIsAromatic() and bond.GetIsAromatic():
          return Chem.BondType.AROMATIC
      # Also include some dipoles
      if atom1.GetIsAromatic() or atom2.GetIsAromatic():
          if bond.GetBondTypeAsDouble()==2.0 or ((atom1.GetFormalCharge()!=0 and atom1.GetIsAromatic()) or \
          (atom2.GetFormalCharge()!=0 and atom2.GetIsAromatic())):
              return Chem.BondType.DOUBLE
      return False
code_tokens: def aromaticmerge ( atom1 , atom2 , bond ) : if atom1 . GetIsAromatic ( ) and atom2 . GetIsAromatic ( ) and bond . GetIsAromatic ( ) : return Chem . BondType . AROMATIC if atom1 . GetIsAromatic ( ) or atom2 . GetIsAromatic ( ) : if bond . GetBondTypeAsDouble ( ) == 2.0 or ( ( atom1 . GetFormalCharge ( ) != 0 and atom1 . GetIsAromatic ( ) ) or ( atom2 . GetFormalCharge ( ) != 0 and atom2 . GetIsAromatic ( ) ) ) : return Chem . BondType . DOUBLE return False
short_docstring: Given two atoms and bond between them, to see if they can merge into an aromatic ring.
short_docstring_tokens: Given two atoms and bond between them to see if they can merge into an aromatic ring .
comment: '''Given two atoms and bond between them, to see if they can merge into an aromatic ring.'''$SEP$# I would not expect structures like `c1ccc2c(c1)-c1ccccc1-2`$SEP$# Also include some dipoles