# Path: clonedigger/logilab/common/compat.py
# def enumerate(iterable):
#     """emulates the python2.3 enumerate() function"""
#     i = 0
#     for val in iterable:
#         yield i, val
#         i += 1
#     #return zip(range(len(iterable)), iterable)
# 
# def sum(seq, start=0):
#     """Returns the sum of all elements in the sequence"""
#     return reduce(operator.add, seq, start)
# 
# class set(_baseset):
#     """mutable set"""
#     def add(self, value):
#         self._data[value] = 1
# 
#     def remove(self, element):
#         """removes <element> from set"""
#         del self._data[element]
# 
#     def pop(self):
#         """pops an arbitrary element from set"""
#         return self._data.popitem()[0]
# 
#     def __hash__(self):
#         """mutable et cannot be hashed."""
#         raise TypeError("set objects are not hashable")


from future import standard_library
from builtins import zip
from builtins import str
from builtins import range
from builtins import *
from builtins import object
from warnings import warn
from clonedigger.logilab.common.compat import enumerate, sum, set
import re    
                col_index = self.col_names.index(col_id)
            except ValueError:
                raise KeyError("Column (%s) not found in table" % (col_id))
        return self.data[row_index][col_index]

    def get_row(self, row_index):
        """Returns the 'row_index' row
        """
        warn('table.get_row(i) is deprecated, use table[i] instead',
             DeprecationWarning, stacklevel=2)
        return self.data[row_index]

    def get_row_by_id(self, row_id):
        """Returns the 'row_id' row
        """
        #warn('table.get_row_by_id(i) is deprecated, use table[i] instead',
        #     DeprecationWarning, stacklevel=2)
        try:
            row_index = self.row_names.index(row_id)
        except ValueError:
            raise KeyError("Row (%s) not found in table" % (row_id))
        return self.data[row_index]

    def get_column(self, col_index, distinct=False):
        """Returns the 'col_index' col
        """
        warn('table.get_column(i) is deprecated, use table[:,i] instead',
             DeprecationWarning, stacklevel=2)
        col = [row[col_index] for row in self.data]
        if distinct:

# Path: clonedigger/logilab/common/compat.py
# def enumerate(iterable):
#     """emulates the python2.3 enumerate() function"""
#     i = 0
#     for val in iterable:
#         yield i, val
#         i += 1
#     #return zip(range(len(iterable)), iterable)
# 
# def sum(seq, start=0):
#     """Returns the sum of all elements in the sequence"""
#     return reduce(operator.add, seq, start)
# 
# class set(_baseset):
#     """mutable set"""
#     def add(self, value):
#         self._data[value] = 1
# 
#     def remove(self, element):
#         """removes <element> from set"""
#         del self._data[element]
# 
#     def pop(self):
#         """pops an arbitrary element from set"""
#         return self._data.popitem()[0]
# 
#     def __hash__(self):
#         """mutable et cannot be hashed."""
#         raise TypeError("set objects are not hashable")


# Path: clonedigger/logilab/common/table.py
from future import standard_library
from builtins import zip
from builtins import str
from builtins import range
from builtins import *
from builtins import object
from warnings import warn
from clonedigger.logilab.common.compat import enumerate, sum, set
import re    

                col_index = self.col_names.index(col_id)
            except ValueError:
                raise KeyError("Column (%s) not found in table" % (col_id))
        return self.data[row_index][col_index]

    def get_row(self, row_index):
        """Returns the 'row_index' row
        """
        warn('table.get_row(i) is deprecated, use table[i] instead',
             DeprecationWarning, stacklevel=2)
        return self.data[row_index]

    def get_row_by_id(self, row_id):
        """Returns the 'row_id' row
        """
        #warn('table.get_row_by_id(i) is deprecated, use table[i] instead',
        #     DeprecationWarning, stacklevel=2)
        try:
            row_index = self.row_names.index(row_id)
        except ValueError:
            raise KeyError("Row (%s) not found in table" % (row_id))
        return self.data[row_index]

    def get_column(self, col_index, distinct=False):
        """Returns the 'col_index' col
        """
        warn('table.get_column(i) is deprecated, use table[:,i] instead',
             DeprecationWarning, stacklevel=2)
        col = [row[col_index] for row in self.data]
        if distinct:

            return set(col)