def _open_streams(self, remainder):
        count = 0
        to_delete = []

        for stream_id, stream in self.streams.items():
            if stream.open and (stream_id % 2 == remainder):
                count += 1
            elif stream.closed:
                to_delete.append(stream_id)

        for stream_id in to_delete:
            del self.streams[stream_id]

        return count
Return a list of items selected using SQL-like limit and offset.
dataset/ETHPy150Open python-hyper/hyper-h2/h2/connection.py/H2Connection._open_streams--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/db/__init__.py/_BaseQuery.fetch