The name of the Table.
 @param [String, Cell] v
 @return [Title]
506933
def name=(v)
      DataTypeValidator.validate :table_name, [String], v
      if v.is_a?(String)
        @name = v
      end
    end
1366323
def _find_titles(self, row_index, column_index):
        '''
        
        '''
        titles = []

        for column_search in range(self.start[1], column_index):
            cell = self.table[row_index][column_search]
            if cell == None or (isinstance(cell, basestring) and not cell):
                continue
            elif isinstance(cell, basestring):
                titles.append(cell)
            else:
                break

        for row_search in range(self.start[0], row_index):
            cell = self.table[row_search][column_index]
            if cell == None or (isinstance(cell, basestring) and not cell):
                continue
            elif isinstance(cell, basestring):
                titles.append(cell)
            else:
                break

        return titles
773529
def parse_table_column_properties(doc, cell, prop):
    ""

    if not cell:
        return

    grid = prop.find(_name('{{{w}}}gridSpan'))

    if grid is not None:
        cell.grid_span = int(grid.attrib[_name('{{{w}}}val')])

    vmerge = prop.find(_name('{{{w}}}vMerge'))

    if vmerge is not None:
        if _name('{{{w}}}val') in vmerge.attrib:
            cell.vmerge = vmerge.attrib[_name('{{{w}}}val')]
        else:
            cell.vmerge = ""
9120
def h_v_td(header, key, default):
        
        if key not in header:
            key = key.title()

        return header.get(key, default)
1353881
function _fnCoordsFromCell( n )
	{
		if ( _oDatatable )
		{
			return [
				$('td', n.parentNode).index(n),
				$('tr', n.parentNode.parentNode).index(n.parentNode) + _oDatatable._iDisplayStart
			];
		}
		else
		{
			return [
				$('td', n.parentNode).index(n),
				$('tr', n.parentNode.parentNode).index(n.parentNode)
			];
		}
	}
948976
function recoverCellIndex(rowIndex, cellIndex) {
            if (!_virtualTable[rowIndex]) {
                return cellIndex;
            }
            if (!_virtualTable[rowIndex][cellIndex]) {
                return cellIndex;
            }

            var newCellIndex = cellIndex;
            while (_virtualTable[rowIndex][newCellIndex]) {
                newCellIndex++;
                if (!_virtualTable[rowIndex][newCellIndex]) {
                    return newCellIndex;
                }
            }
        }
891409
public String getTableName() {

        recordLog("----" + ThreadContext.getShardKey() + "\t" +
                getTableName(orMapping.getTable(), (Number) ThreadContext.getShardKey()));
        Number shardKey = ThreadContext.getShardKey();
        return getTableName(orMapping.getTable(), shardKey);
    }
703459
public String getRowsWithColumnsAndColumnsNamesAsString() {
		StringBuffer sb = new StringBuffer();
		String lvColumnNames = getColumnNames();
		if (lvColumnNames.trim().length() > 0) {
			sb.append(lvColumnNames);
			sb.append(CsvParser.CRLF);
		}
		sb.append(getRowsWithColumnsAsString());
		return sb.toString();
	}
165929
def titletable(html_doc, tofloat=True):
    """"""
    soup = BeautifulSoup(html_doc, "html.parser")
    btables = soup.find_all(['b', 'table']) # find all the <b> and <table>
    titletables = []
    for i, item in enumerate(btables):
        if item.name == 'table':
            for j in range(i + 1):
                if btables[i-j].name == 'b':# step back to find a <b>
                    break
            titletables.append((btables[i - j], item))
    if tofloat:
        t2m = table2val_matrix
    else:
        t2m = table2matrix
    titlerows = [(tl.contents[0], t2m(tb)) for tl, tb in titletables]
    return titlerows
1042954
def title(controller_name, model_name = controller_name.singularize)
      string = ''
      unless ['page', 'routing_error', 'my_accounts'].include?(controller_name)
        string << t("activerecord.models.#{model_name}") + ' - '
      end
      if controller_name == 'routing_error'
        string << t("page.routing_error") + ' - '
      end
      string << LibraryGroup.system_name + ' - Next-L Enju Leaf'
      string.html_safe
    end
610409
def cell(name, *args)
      name = name.to_s if name
      
      options = args.last.is_a?(Hash) ? args.pop : {}
      options[:namespace] = table.object_name
      args << options
      
      cell = Cell.new(name, *args)
      cells[name] = cell
      builder.define_cell(name) if name
      
      cell
    end
934324
def text(self):
        
        text = []
        rows = self.rowCount()
        cols = self.columnCount()

        # handle empty table case
        if rows == 2 and cols == 2:
            item = self.item(0, 0)
            if item is None:
                return ''

        for r in range(rows - 1):
            for c in range(cols - 1):
                item = self.item(r, c)
                if item is not None:
                    value = item.text()
                else:
                    value = '0'

                if not value.strip():
                    value = '0'

                text.append(' ')
                text.append(value)
            text.append(ROW_SEPARATOR)

        return ''.join(text[:-1])
657597
def columns(*names)
      names.map!(&:to_s)
      DataTable.new(map { |h| names.map { |n| [n, h[n]] }.to_h })
    end
985438
public static String nameClass(String tableName) 
    {
		StringBuffer sb = new StringBuffer();
		char[] chars = new char[tableName.length()];
		chars = tableName.toCharArray();
		char c;
		boolean nextup = false;
		for (int i = 0; i < chars.length; i++) {
			if (i==0) c = Character.toUpperCase(chars[i]);
			else if (chars[i]=='_') {
				 nextup = true;
				 continue;
			}
			else if (nextup) {
				nextup = false;
				c = Character.toUpperCase(chars[i]);
			} 
			else c = Character.toLowerCase(chars[i]);
			sb.append(c);
		}
		return sb.toString();
	}
1085160
def row row_number

      if row_number == 0

        cells = []

        if @has_titles

          @column_titles.each do |title|
            cells << title ? title : ''
          end

        end

        cells
        
      else

        @engine.generate(row_number, @columns, @cell_styles, @column_styles, @column_types)

      end

    end
1320578
def get_table(ports):
    
    table = PrettyTable(["Name", "Port", "Protocol", "Description"])
    table.align["Name"] = "l"
    table.align["Description"] = "l"
    table.padding_width = 1

    for port in ports:
        table.add_row(port)

    return table
573353
def get_table_name table
			if table.is_a? String
				return table
			elsif table.methods.include? :name
				return table.name
			end
			return table
		end