Detect whether this tag is opening or not.

        Returns:
            bool: True if it is opening.
186139
def isOpeningTag(self):
        
        if self.isTag() and \
           not self.isComment() and \
           not self.isEndTag() and \
           not self.isNonPairTag():
            return True

        return False
867466
def isopen(self) -> bool:
        """"""
        if self._file is None:
            return False
        # try accessing the id attribute to see if the file is open
        return bool(self._file.id)
775251
def isTagValid( self, tag ):
        
        if ( self._options is not None and \
             not nativestring(tag) in self._options \
             and not self.isInsertAllowed() ):
            return False
        
        elif ( self.isUnique() and self.hasTag(tag) ):
            return False
        
        return True
670572
def is_break_tag(self, el):
        """"""

        name = el.name
        return name in self.break_tags or name in self.user_break_tags
695897
protected function is_tagging_enabled() {
        if (!empty($this->tagsoptions['itemtype']) && !empty($this->tagsoptions['component'])) {
            $enabled = core_tag_tag::is_enabled($this->tagsoptions['component'], $this->tagsoptions['itemtype']);
            if ($enabled === false) {
                return false;
            }
        }
        // Backward compatibility with code developed before Moodle 3.0 where itemtype/component were not specified.
        return true;
    }
321695
def isReadOnly( self ):
        
        if ( self._editor and hasattr(self._editor, 'isReadOnly') ):
            return self._editor.isReadOnly()
        return False
939274
def is_link_inline(cls, tag, attribute):
        ''''''
        if tag in cls.TAG_ATTRIBUTES \
           and attribute in cls.TAG_ATTRIBUTES[tag]:
            attr_flags = cls.TAG_ATTRIBUTES[tag][attribute]
            return attr_flags & cls.ATTR_INLINE

        return attribute != 'href'
791811
def is_open(self):
        

        # Imports
        import h5py as h5

        # Return whether repo is bound; depends on the 'None' assignment in
        #  'close'
        retval = isinstance(self._repo, h5.File)
        return retval
1093619
def is_open_now(location=None, attr=None):
    
    obj = utils.is_open(location, now=datetime.datetime.now())
    if obj is False:
        return False
    if attr is not None:
        return getattr(obj, attr)
    return obj
1094979
def check_format(cls, tags):
        
        common, _, _ = tags
        for tag in common:
            if tag.get_type() != 0:  # Unknown type -> incorrect
                return False
        return True
478490
function() {
    for (var i = this.notSelfClosingTags.length - 1; i >= 0; i--) {
      if (this.tagName == this.notSelfClosingTags[i]) return false;
    }

    return true;
  }
1233716
def has_tag(self, p_key, p_value=""):
        
        tags = self.fields['tags']
        return p_key in tags and (p_value == "" or p_value in tags[p_key])
1165576
def tag_exists(self, version):
        
        for tag in self.available_tags():
            if tag == version:
                return True
        return False
356865
function (tag) {
                var
                    len = this._openedTags.length;
                if (len && this._openedTags[len - 1] === tag) {
                    this._openedTags.pop();
                    this._output("</" + tag + ">");
                } else {
                    this._openTag(tag);
                }
            }
519445
def is_active(self):
    """"""
    if self._db_connection_provider:
      # The plugin is active if one relevant tag can be found in the database.
      db = self._db_connection_provider()
      cursor = db.execute('''
        SELECT
          1
        FROM Tags
        WHERE Tags.plugin_name = ?
        LIMIT 1
      ''', (metadata.PLUGIN_NAME,))
      return bool(list(cursor))

    return bool(self._multiplexer) and any(self.index_impl().values())
904404
function () {

            if (!this.shouldOpen()) return false;

            this.opening();

            // Only bind the document mousemove when the dropdown is visible
            $document.on("mousemove.select2Event", function (e) {
                lastMousePosition.x = e.pageX;
                lastMousePosition.y = e.pageY;
            });

            return true;
        }
459434
def is_running(self):
        
        return self._state in [self.STATE_ACTIVE,
                               self.STATE_IDLE,
                               self.STATE_INITIALIZING]