Skip to content

Commit 9812082

Browse files
authored
Merge pull request #298 from HarvardOpenData/ag-newline
REAL h1 link format pull request
2 parents fdb67d7 + 95b44f4 commit 9812082

20 files changed

+75833
-66786
lines changed

data/predictions.yml

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
- text: "Will the men's basketball team make the NCAA tournament?"
2+
name: "ncaa-tournament"
3+
outcome_0: "the team doesn't make the NCAA tournament"
4+
outcome_1: "the team makes the NCAA tournament"
5+
deadline: "03/12/2020 23:59:59 -0500"
6+
realized_outcome: 0
7+
realized_outcome_text: "no, since the Ivy League Championships were not played"
8+
- text: "Will Harvard divest from fossil fuels by Earth Day (April 22nd)?"
9+
name: "divestment"
10+
outcome_0: "Harvard doesn't divest"
11+
outcome_1: "Harvard divests"
12+
deadline: "03/05/2020 23:59:59 -0500"
13+
realized_outcome: 0
14+
realized_outcome_text: "Harvard did not divest"
15+
- text: "Will another Harvard professor get arrested this semester?"
16+
name: "professor-arrest"
17+
outcome_0: "no professors are arrested"
18+
outcome_1: "a professor is arrested"
19+
deadline: "03/05/2020 23:59:59 -0500"
20+
realized_outcome: 0
21+
realized_outcome_text: "no other professors were arrested"
22+
- text: "Will a Harvard Square business shut down this semester?"
23+
name: "business-close"
24+
outcome_0: "no Harvard Square businesses shut down"
25+
outcome_1: "a Harvard Square business shuts down"
26+
deadline: "03/05/2020 23:59:59 -0500"
27+
realized_outcome: 0
28+
realized_outcome_text: "no Harvard Square businesses shut down"
29+
- text: "Will another boba place open in Harvard Square?"
30+
name: "boba"
31+
outcome_0: "no boba places open"
32+
outcome_1: "a boba place opens"
33+
deadline: "03/05/2020 23:59:59 -0500"
34+
realized_outcome: 0
35+
realized_outcome_text: "no other boba places opened"
36+
- text: "Will Harvard's acceptance rate be lower than it was last year (4.5%)?"
37+
name: "acceptance-rate"
38+
outcome_0: "Harvard's acceptance rate is higher than last year"
39+
outcome_1: "Harvard's acceptance rate is lower than last year"
40+
deadline: "03/25/2020 23:59:59 -0500"
41+
realized_outcome: 0
42+
realized_outcome_text: "Harvard admitted 4.92% of applicants this year"
43+
- text: "Will a varsity team at Harvard win the Ivy League Championship?"
44+
name: "ivy-champs"
45+
outcome_0: "no varsity teams win the Ivy League"
46+
outcome_1: "a varsity team wins the Ivy League"
47+
deadline: "03/05/2020 23:59:59 -0500"
48+
realized_outcome: 0
49+
realized_outcome_text: "no, since sports are cancelled"
50+
- text: "Will it snow in Cambridge in March?"
51+
name: "march-snow"
52+
outcome_0: "it does not snow in March"
53+
outcome_1: "it snows in March"
54+
deadline: "02/29/2020 23:59:59 -0500"
55+
realized_outcome: 1
56+
realized_outcome_text: "it snowed on March 6th"
57+
- text: "Will the Dig Inn in Harvard Square actually open this semester?"
58+
name: "dig-inn"
59+
outcome_0: "the Dig Inn does not open"
60+
outcome_1: "the Dig Inn opens"
61+
deadline: "03/05/2020 23:59:59 -0500"
62+
realized_outcome: 1
63+
realized_outcome_text: "Dig Inn opened in Harvard Square"
64+
- text: "Will we have in-person classes in the fall?"
65+
name: "fall-classes"
66+
outcome_0: "we don't have in-person classes"
67+
outcome_1: "we have in-person classes"
68+
deadline: "06/30/2020 23:59:59 -0500"
69+
realized_outcome:
70+
realized_outcome_text:
71+
- text: "Will Harvard schedule a date for class of 2020 commencement by the end of the semester?"
72+
name: "commencement-2020"
73+
outcome_0: "Harvard does not schedule a date"
74+
outcome_1: "Harvard schedules a date"
75+
deadline: "04/10/2020 23:59:59 -0500"
76+
realized_outcome: 1
77+
realized_outcome_text: "commencement was held virtually on May 28"
78+

mock_run.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import os
2+
import subprocess
3+
if __name__ == "__main__":
4+
if os.system("python3 --version") == 0:
5+
python_command = "python3"
6+
elif os.system("python --version") == 0:
7+
python_command = "python"
8+
else:
9+
raise Exception("No valid python version found")
10+
subprocess.call([python_command, "-m", "pip", "install", "-r", "requirements.txt"])
11+
os.environ["MOCK_FIRESTORE"] = "TRUE"
12+
subprocess.call([python_command, "main.py"])

package-lock.json

+52-26
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)