Coverage for blind_charging/locale/sample.py: 100%
9 statements
« prev ^ index » next coverage.py v6.5.0, created at 2023-02-17 20:36 +0000
« prev ^ index » next coverage.py v6.5.0, created at 2023-02-17 20:36 +0000
1"""This file sets up sample counties to use for dev/testing.
3The real localizations live in a private repo.
5The two counties contained here are:
6 Suffix County
7 Prefixton
9The two are distinguished only by the way they flag individuals in the
10narratives -- as you might guess, "Suffix County" uses suffixes like
11"Jane Doe (S)" and Prefixton uses prefixes like "(S) Jane Doe".
12"""
13from collections import defaultdict
15from .const import INDICATOR_POS_PREFIX, INDICATOR_POS_SUFFIX
16from .locale import Locale
18districts = {"Central", "Western", "Southern", "Lake", "Park", "University"}
20street_names = [
21 "LILAC DR",
22 "COWPEN BLVD",
23 "GRAND VIEW BLVD",
24 "MAPLE ST",
25 "ELM ST",
26 "LAKE ST",
27 "HILL ST",
28 "OCEAN BLVD",
29 "BIG FARM RD",
30 "A ST",
31 "B ST",
32 "C ST",
33 "D ST",
34 "FIRST ST",
35 "1ST AVE",
36 "2ND AVE",
37 "3RD AVE",
38 "4TH AVE",
39 "5TH AVE",
40 "6TH AVE",
41 "7TH AVE",
42 "8TH AVE",
43 "9TH AVE",
44 "10TH AVE",
45 "11TH AVE",
46 "12TH AVE",
47 "20TH ST",
48 "21ST ST",
49 "22ND ST",
50 "RESEARCH PARK DR",
51 "ELLIS COURT",
52]
54neighborhoods = {
55 "Parkside",
56 "Chinatown",
57 "Eastlake",
58 "Pinnacle Heights",
59 "Little Russia",
60 "Canal Street",
61}
63indicators = defaultdict(
64 lambda: "Person",
65 {
66 "V": "Victim",
67 "R": "Reporting",
68 "RV": "Reporting Victim",
69 "S": "Suspect",
70 "W": "Witness",
71 "B": "Booked",
72 "M": "Missing",
73 },
74)
76suffix_county = Locale(
77 "Suffix County",
78 police_districts=districts,
79 street_names=street_names,
80 neighborhoods=neighborhoods,
81 indicators=indicators,
82 indicator_position=INDICATOR_POS_SUFFIX,
83 excluded_names=set(),
84)
86prefixton = Locale(
87 "Prefixton",
88 police_districts=districts,
89 street_names=street_names,
90 neighborhoods=neighborhoods,
91 indicators=indicators,
92 indicator_position=INDICATOR_POS_PREFIX,
93 excluded_names=set(),
94)