Browse Source

Renaming DNS into MediaCountMapper

feature/find_holes
Figg 7 months ago
parent
commit
9ff1887fd2

data/DNS → data/DefaultMediaCountMapFile View File


million/analyze/dns_solver.py → million/analyze/media_count_mapper.py View File

6
 
6
 
7
 _default_file_path = 'data/DNS'
7
 _default_file_path = 'data/DNS'
8
 
8
 
9
-class DNS_solver(BaseModel):
9
+class MediaCountMapper(BaseModel):
10
     file_path:str = _default_file_path
10
     file_path:str = _default_file_path
11
 
11
 
12
     _bank: Dict[str, int] | None = PrivateAttr(None)
12
     _bank: Dict[str, int] | None = PrivateAttr(None)

+ 2
- 2
million/analyze/message_evaluation.py View File

1
 import re
1
 import re
2
 from typing import Dict
2
 from typing import Dict
3
 from million.model.message import Message
3
 from million.model.message import Message
4
-import million.analyze.dns_solver as dns
4
+import million.analyze.media_count_mapper as mcm
5
 
5
 
6
 
6
 
7
 _memoization: Dict[Message, int] = {}
7
 _memoization: Dict[Message, int] = {}
8
-_dns_solver: dns.DNS_solver = dns.DNS_solver()
8
+_dns_solver: mcm.MediaCountMapper = mcm.MediaCountMapper()
9
 
9
 
10
 
10
 
11
 def get(msg: Message) -> int:
11
 def get(msg: Message) -> int:

Loading…
Cancel
Save