<s> import collections <EOL> import os <EOL> import time <EOL> import json <EOL> class DBIndexer ( object ) : <EOL> def __init__ ( self , dirs ) : <EOL> self . dirs = dirs <EOL> self . complete = False <EOL> self . files_by_basename = dict ( ) <EOL> def progress ( self ) : <EOL> raise NotImplementedException ( ) <EOL> def Create ( dirs , dir_cache ) : <EOL> import find_based_db_indexer <EOL> if find_based_db_indexer . Supported ( ) : <EOL> return find_based_db_indexer . FindBasedDBIndexer ( <EOL> dirs , dir_cache . ignores ) <EOL> import listdir_based_db_indexer <EOL> return listdir_based_db_indexer . ListdirBasedDBIndexer ( dirs , dir_cache ) </s>
