const.py 733 Bytes
Newer Older
1 2 3 4
# Copyright (C) 2011 Lukas Lalinsky
# Distributed under the MIT license, see the LICENSE file for details.

# minimum similarity with the best matching fingerprint
5
TRACK_MERGE_THRESHOLD = 0.75
6 7

# minimum similarity with the worst matching fingerprint
8
TRACK_GROUP_MERGE_THRESHOLD = 0.4
9

10
# maximum alignment differences of fingerprints in a track
11 12
TRACK_MAX_OFFSET = 80

13
# minimum similarity for two fingerprints to be considered the same
14
FINGERPRINT_MERGE_THRESHOLD = 0.9
15 16

# how many items must a fingerprint have to be indexed
Lukáš Lalinský's avatar
Lukáš Lalinský committed
17
FINGERPRINT_MIN_UNIQUE_ITEMS = 80
18

19 20
FINGERPRINT_MAX_LENGTH_DIFF = 7

21 22
FINGERPRINT_MAX_ALLOWED_LENGTH_DIFF = 30

23
MAX_REQUESTS_PER_SECOND = 3
Lukáš Lalinský's avatar
Lukáš Lalinský committed
24 25 26

MAX_FOREIGNID_NAMESPACE_LENGTH = 10
MAX_FOREIGNID_VALUE_LENGTH = 64