SYMBOL INDEX (125 symbols across 15 files) FILE: dejavu.py function init (line 14) | def init(configpath): FILE: dejavu/__init__.py class Dejavu (line 21) | class Dejavu: method __init__ (line 22) | def __init__(self, config): method __load_fingerprinted_audio_hashes (line 38) | def __load_fingerprinted_audio_hashes(self) -> None: method get_fingerprinted_songs (line 50) | def get_fingerprinted_songs(self) -> List[Dict[str, any]]: method delete_songs_by_id (line 58) | def delete_songs_by_id(self, song_ids: List[int]) -> None: method fingerprint_directory (line 66) | def fingerprint_directory(self, path: str, extensions: str, nprocesses... method fingerprint_file (line 121) | def fingerprint_file(self, file_path: str, song_name: str = None) -> N... method generate_fingerprints (line 147) | def generate_fingerprints(self, samples: List[int], Fs=DEFAULT_FS) -> ... method find_matches (line 160) | def find_matches(self, hashes: List[Tuple[str, int]]) -> Tuple[List[Tu... method align_matches (line 175) | def align_matches(self, matches: List[Tuple[int, int]], dedup_hashes: ... method recognize (line 224) | def recognize(self, recognizer, *options, **kwoptions) -> Dict[str, any]: method _fingerprint_worker (line 229) | def _fingerprint_worker(arguments): method get_file_fingerprints (line 244) | def get_file_fingerprints(file_name: str, limit: int, print_output: bo... FILE: dejavu/base_classes/base_database.py class BaseDatabase (line 8) | class BaseDatabase(object, metaclass=abc.ABCMeta): method __init__ (line 13) | def __init__(self): method before_fork (line 16) | def before_fork(self) -> None: method after_fork (line 22) | def after_fork(self) -> None: method setup (line 30) | def setup(self) -> None: method empty (line 37) | def empty(self) -> None: method delete_unfingerprinted_songs (line 44) | def delete_unfingerprinted_songs(self) -> None: method get_num_songs (line 52) | def get_num_songs(self) -> int: method get_num_fingerprints (line 61) | def get_num_fingerprints(self) -> int: method set_song_fingerprinted (line 70) | def set_song_fingerprinted(self, song_id: int): method get_songs (line 79) | def get_songs(self) -> List[Dict[str, str]]: method get_song_by_id (line 88) | def get_song_by_id(self, song_id: int) -> Dict[str, str]: method insert (line 98) | def insert(self, fingerprint: str, song_id: int, offset: int): method insert_song (line 109) | def insert_song(self, song_name: str, file_hash: str, total_hashes: in... method query (line 122) | def query(self, fingerprint: str = None) -> List[Tuple]: method get_iterable_kv_pairs (line 133) | def get_iterable_kv_pairs(self) -> List[Tuple]: method insert_hashes (line 142) | def insert_hashes(self, song_id: int, hashes: List[Tuple[str, int]], b... method return_matches (line 154) | def return_matches(self, hashes: List[Tuple[str, int]], batch_size: in... method delete_songs_by_id (line 172) | def delete_songs_by_id(self, song_ids: List[int], batch_size: int = 10... function get_database (line 182) | def get_database(database_type: str = "mysql") -> BaseDatabase: FILE: dejavu/base_classes/base_recognizer.py class BaseRecognizer (line 10) | class BaseRecognizer(object, metaclass=abc.ABCMeta): method __init__ (line 11) | def __init__(self, dejavu): method _recognize (line 15) | def _recognize(self, *data) -> Tuple[List[Dict[str, any]], int, int, i... method recognize (line 32) | def recognize(self) -> Dict[str, any]: FILE: dejavu/base_classes/common_database.py class CommonDatabase (line 7) | class CommonDatabase(BaseDatabase, metaclass=abc.ABCMeta): method __init__ (line 12) | def __init__(self): method before_fork (line 15) | def before_fork(self) -> None: method after_fork (line 21) | def after_fork(self) -> None: method setup (line 29) | def setup(self) -> None: method empty (line 38) | def empty(self) -> None: method delete_unfingerprinted_songs (line 48) | def delete_unfingerprinted_songs(self) -> None: method get_num_songs (line 56) | def get_num_songs(self) -> int: method get_num_fingerprints (line 68) | def get_num_fingerprints(self) -> int: method set_song_fingerprinted (line 80) | def set_song_fingerprinted(self, song_id): method get_songs (line 89) | def get_songs(self) -> List[Dict[str, str]]: method get_song_by_id (line 99) | def get_song_by_id(self, song_id: int) -> Dict[str, str]: method insert (line 110) | def insert(self, fingerprint: str, song_id: int, offset: int): method insert_song (line 122) | def insert_song(self, song_name: str, file_hash: str, total_hashes: in... method query (line 134) | def query(self, fingerprint: str = None) -> List[Tuple]: method get_iterable_kv_pairs (line 149) | def get_iterable_kv_pairs(self) -> List[Tuple]: method insert_hashes (line 157) | def insert_hashes(self, song_id: int, hashes: List[Tuple[str, int]], b... method return_matches (line 173) | def return_matches(self, hashes: List[Tuple[str, int]], method delete_songs_by_id (line 220) | def delete_songs_by_id(self, song_ids: List[int], batch_size: int = 10... FILE: dejavu/database_handler/mysql_database.py class MySQLDatabase (line 13) | class MySQLDatabase(CommonDatabase): method __init__ (line 121) | def __init__(self, **options): method after_fork (line 126) | def after_fork(self) -> None: method insert_song (line 131) | def insert_song(self, song_name: str, file_hash: str, total_hashes: in... method __getstate__ (line 145) | def __getstate__(self): method __setstate__ (line 148) | def __setstate__(self, state): function cursor_factory (line 153) | def cursor_factory(**factory_options): class Cursor (line 160) | class Cursor(object): method __init__ (line 168) | def __init__(self, dictionary=False, **options): method clear_cache (line 184) | def clear_cache(cls): method __enter__ (line 187) | def __enter__(self): method __exit__ (line 191) | def __exit__(self, extype, exvalue, traceback): FILE: dejavu/database_handler/postgres_database.py class PostgreSQLDatabase (line 13) | class PostgreSQLDatabase(CommonDatabase): method __init__ (line 134) | def __init__(self, **options): method after_fork (line 139) | def after_fork(self) -> None: method insert_song (line 144) | def insert_song(self, song_name: str, file_hash: str, total_hashes: in... method __getstate__ (line 158) | def __getstate__(self): method __setstate__ (line 161) | def __setstate__(self, state): function cursor_factory (line 166) | def cursor_factory(**factory_options): class Cursor (line 173) | class Cursor(object): method __init__ (line 181) | def __init__(self, dictionary=False, **options): method clear_cache (line 197) | def clear_cache(cls): method __enter__ (line 200) | def __enter__(self): method __exit__ (line 207) | def __exit__(self, extype, exvalue, traceback): FILE: dejavu/logic/decoder.py function unique_hash (line 13) | def unique_hash(file_path: str, block_size: int = 2**20) -> str: function find_files (line 34) | def find_files(path: str, extensions: List[str]) -> List[Tuple[str, str]]: function read (line 54) | def read(file_name: str, limit: int = None) -> Tuple[List[List[int]], in... function get_audio_name_from_path (line 98) | def get_audio_name_from_path(file_path: str) -> str: FILE: dejavu/logic/fingerprint.py function fingerprint (line 21) | def fingerprint(channel_samples: List[int], function get_2D_peaks (line 55) | def get_2D_peaks(arr2D: np.array, plot: bool = False, amp_min: int = DEF... function generate_hashes (line 122) | def generate_hashes(peaks: List[Tuple[int, int]], fan_value: int = DEFAU... FILE: dejavu/logic/recognizer/file_recognizer.py class FileRecognizer (line 10) | class FileRecognizer(BaseRecognizer): method __init__ (line 11) | def __init__(self, dejavu): method recognize_file (line 14) | def recognize_file(self, filename: str) -> Dict[str, any]: method recognize (line 31) | def recognize(self, filename: str) -> Dict[str, any]: FILE: dejavu/logic/recognizer/microphone_recognizer.py class MicrophoneRecognizer (line 7) | class MicrophoneRecognizer(BaseRecognizer): method __init__ (line 13) | def __init__(self, dejavu): method start_recording (line 23) | def start_recording(self, channels=default_channels, method process_recording (line 46) | def process_recording(self): method stop_recording (line 54) | def stop_recording(self): method recognize_recording (line 61) | def recognize_recording(self): method get_recorded_time (line 66) | def get_recorded_time(self): method recognize (line 69) | def recognize(self, seconds=10): class NoRecordingError (line 77) | class NoRecordingError(Exception): FILE: dejavu/tests/dejavu_test.py class DejavuTest (line 21) | class DejavuTest: method __init__ (line 22) | def __init__(self, folder, seconds): method get_column_id (line 62) | def get_column_id(self, secs): method get_line_id (line 67) | def get_line_id(self, song): method create_plots (line 74) | def create_plots(self, name, results, results_folder): method begin (line 109) | def begin(self): function set_seed (line 182) | def set_seed(seed=None): function get_files_recursive (line 193) | def get_files_recursive(src, fmt): function get_length_audio (line 206) | def get_length_audio(audiopath, extension): function get_starttime (line 219) | def get_starttime(length, nseconds, padding): function generate_test_files (line 231) | def generate_test_files(src, dest, nseconds, fmts=[".mp3", ".wav"], padd... function log_msg (line 267) | def log_msg(msg, log=True, silent=False): function autolabel (line 274) | def autolabel(rects, ax): function autolabeldoubles (line 281) | def autolabeldoubles(rects, ax): FILE: dejavu/third_party/wavio.py function _wav2array (line 47) | def _wav2array(nchannels, sampwidth, data): function _array2wav (line 70) | def _array2wav(a, sampwidth): class Wav (line 99) | class Wav(object): method __init__ (line 111) | def __init__(self, data, rate, sampwidth): method __repr__ (line 116) | def __repr__(self): function read (line 122) | def read(file): function _scale_to_sampwidth (line 178) | def _scale_to_sampwidth(data, sampwidth, vmin, vmax): function write (line 200) | def write(file, data, rate, scale=None, sampwidth=None): FILE: run_tests.py function main (line 15) | def main(seconds: int, results_folder: str, temp_folder: str, log: bool,... FILE: setup.py function parse_requirements (line 4) | def parse_requirements(requirements):