LeonceNsh commited on
Commit
218c6d6
·
verified ·
1 Parent(s): 25d21ca

Delete footnotes.py

Browse files
Files changed (1) hide show
  1. footnotes.py +0 -58
footnotes.py DELETED
@@ -1,58 +0,0 @@
1
- """
2
- These footnotes are taken verbatim from
3
- https://tracreports.org/immigration/detentionstats/pop_agen_table.html.
4
- We don't include the third and final footnote because it is not used anywhere
5
- on the page.
6
- """
7
-
8
-
9
- def get_abbreviations_text():
10
- return '"ICE" stands for "Immigration and Customs Enforcement". "CBP" stands for "Customs and Border Protection".'
11
-
12
-
13
- def get_date_footnote_text():
14
- return (
15
- "* Dates before 11/15/2021 refer to the date ICE posted the data; "
16
- "dates after 11/15/2021 refer to the date the information was current as of."
17
- )
18
-
19
-
20
- def get_criminality_footnote_text():
21
- return (
22
- "** ICE classifies an individual as a convicted criminal if they have been convicted "
23
- "of any criminal violation. Violations can range from serious felonies all the way down "
24
- "to a purely immigration violation (such as illegal entry which is a petty offense under "
25
- "the U.S. Code), or a violation which results in only in a fine such as not keeping a dog "
26
- "on a leash, fishing without a permit, driving a vehicle with a tail light out, etc. For "
27
- "historical series on ICE detainees identifying the most serious offense they have been "
28
- "convicted of along with other details such as when they entered the U.S., nationality, "
29
- "gender, etc. go to https://tracreports.org/phptools/immigration/detention/"
30
- )
31
-
32
-
33
- def get_date_footnote():
34
- return f"""
35
- <p style='font-size: 0.85em; font-style: italic; margin-top: 10px;'>
36
- {get_abbreviations_text()}<br>
37
- {get_date_footnote_text()}
38
- </p>
39
- """
40
-
41
-
42
- def get_criminality_footnote():
43
- return f"""
44
- <p style='font-size: 0.85em; font-style: italic; margin-top: 10px;'>
45
- {get_abbreviations_text()}<br>
46
- {get_date_footnote_text()}<br>
47
- {get_criminality_footnote_text()}
48
- </p>
49
- """
50
-
51
-
52
- def get_footnote(dataset):
53
- if dataset == "Arresting Authority":
54
- return get_date_footnote()
55
- elif dataset == "Criminality":
56
- return get_criminality_footnote()
57
- else:
58
- raise ValueError(f"Unknown dataset {dataset}")