Obtain the length of the expanded (i.e. one-hot expanded) interaction column.
509762
public int expandedLength() {
    if( _v1Domain==null && _v2Domain==null ) return 1; // 2 numeric columns -> 1 column
    else if( isCategorical() ) return domain().length; // 2 cat -> domains (limited) length
    else if( _v1Domain!=null ) return _v1Enums==null?_v1Domain.length - (_useAllFactorLevels?0:1):_v1Enums.length-(_useAllFactorLevels?0:1);
    else return _v2Enums==null?_v2Domain.length - (_useAllFactorLevels?0:1):_v2Enums.length - (_useAllFactorLevels?0:1);
  }
687064
def expand(self):
        
        return SLH(self.S.expand(), self.L.expand(), self.H.expand())
487149
def length(self, chain=-1):
        
        if chain is not None:
            if chain < 0:
                chain = range(self.db.chains)[chain]
            return self._trace[chain].shape[0]
        else:
            return sum([t.shape[0] for t in self._trace.values()])
1109332
int getUpdateLength(@NonNull TableEntry entry) {
        return HEADER_LENGTH + entry.getKey().getKey().getLength() + entry.getValue().getLength();
    }
380627
def get_active_length(self):
        
        nonzero_steps = np.any(self.pianoroll, axis=1)
        inv_last_nonzero_step = np.argmax(np.flip(nonzero_steps, axis=0))
        active_length = self.pianoroll.shape[0] - inv_last_nonzero_step
        return active_length
88315
def columnCount(self, parent=QtCore.QModelIndex()):
        
        if parent.isValid():
            return self._stim.columnCount(parent.row())
        else:
            return self._stim.columnCount()
373100
def _get_column_width(self, complete_state):
        
        return max(get_cwidth(c.display) for c in complete_state.current_completions) + 1
780991
def select_extended(cat_table):
    
    try:
        l = [len(row.strip()) > 0 for row in cat_table['Extended_Source_Name'].data]
        return np.array(l, bool)
    except KeyError:
        return cat_table['Extended']
1168034
def __dbfHeaderLength(self):
        """"""
        if not self.__dbfHdrLength:
            if not self.dbf:
                raise ShapefileException("Shapefile Reader requires a shapefile or file-like object. (no dbf file found)")
            dbf = self.dbf
            (self.numRecords, self.__dbfHdrLength) = \
                    unpack("<xxxxLH22x", dbf.read(32))
        return self.__dbfHdrLength
1213339
def record_content_length(self):
        """"""
        untldict = py2dict(self)
        untldict.pop('meta', None)
        return len(str(untldict))
1338432
def _length_cdc_tube_array(FlowPlant, ConcDoseMax, ConcStock,
                           DiamTubeAvail, HeadlossCDC, temp, en_chem, KMinor):
    """"""

    Flow = _flow_cdc_tube(FlowPlant, ConcDoseMax, ConcStock, DiamTubeAvail, HeadlossCDC,Ratio_Error, KMinor).magnitude


    return _len_tube(Flow, DiamTubeAvail, HeadlossCDC, ConcStock, temp, en_chem, KMinor).magnitude
558251
def eat_length(self, length):
        """"""
        pos = self.pos
        if self.eos or pos + length > self.length:
            return None

        col = self.col
        row = self.row
        for char in self.string[pos:pos + length]:
            col += 1
            pos += 1
            if char == '\n':  # handle a newline char
                col = 0
                row += 1

        self.pos = pos
        self.col = col
        self.row = row

        if not self.has_space():  # Set eos if there is no more space left.
            self.eos = 1
1153843
def inclusive_length_of_stay?
      # lengthOfStay - EH111, EH108
      less_than_equal_los = attr_val('../cda:low/@nullFlavor') == 'NINF' &&
                            attr_val('../@highClosed') != 'false'

      greater_than_equal_los = attr_val('../cda:high/@nullFlavor') == 'PINF' &&
                               attr_val('../@lowClosed') != 'false'
      # Both less and greater require that the type is PQ
      (less_than_equal_los || greater_than_equal_los) && attr_val('@xsi:type') == 'PQ'
    end
667893
def get_alt_length(self, individual=0):
        """"""
        if isinstance(individual, str):
            individual = self.individuals[individual]
        return [len(self.alt[i-1].replace('.','')) for i in self.genotype[individual] if i > 0 and not self.alt[i-1].startswith('<')]
388897
def length(self):
        """"""
        return math.sqrt((self.X * self.X) + (self.Y * self.Y))
1192948
def length(self, chain=-1):
        
        if chain is not None:
            return len(self._vlarrays[chain])
        else:
            return sum(map(len, self._vlarrays))
75439
def length(self):
        """"""
        return sum([shot.length for shot in self.shots if not shot.is_splay])