Skip to content

Commit

Permalink
Merge branch 'develop' into update-share-graph-social-icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Afani97 authored Oct 4, 2023
2 parents 4554c76 + e59d0da commit c75074f
Show file tree
Hide file tree
Showing 11 changed files with 26,116 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ deploy/roles
docker-compose.override.yml
htmlcov
nc/notebooks/**/**.html
nc/notebooks/2023-07-raleigh-contraband/input/Contraband.txt
nc/notebooks/2023-07-raleigh-contraband/input/Contraband.txt.zip
acs*.json
9 changes: 4 additions & 5 deletions docs/dev-setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ To use ``psql`` locally, make sure you have the following env variables loaded

export DJANGO_SETTINGS_MODULE=traffic_stops.settings.local
export PGHOST=127.0.0.1
export PGPORT=54344
export PGPORT=9051
export PGUSER=postgres
export PGDATABASE=traffic_stops
export DATABASE_URL=postgres://127.0.0.1:54344/traffic_stops
export DATABASE_URL_NC=postgres://127.0.0.1:54344/traffic_stops_nc
export PGDATABASE=traffic_stops_nc
export DATABASE_URL=postgres://127.0.0.1:${PGPORT}/traffic_stops
export DATABASE_URL_NC=postgres://127.0.0.1:${PGPORT}/traffic_stops_nc

To setup your local environment you should create a virtualenv and install the
necessary requirements::
Expand All @@ -107,7 +107,6 @@ Migrate the project databases::

(traffic-stops)$ ./migrate_all_dbs.sh


Frontend setup::

(traffic-stops)$ cd frontend
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
10.0
14
1 SQLCHAR 0 12 "" 1 ContrabandID ""
2 SQLCHAR 0 12 "" 2 SearchID ""
3 SQLCHAR 0 12 "" 3 PersonID ""
4 SQLCHAR 0 12 "" 4 StopID ""
5 SQLCHAR 0 41 "" 5 Ounces ""
6 SQLCHAR 0 41 "" 6 Pounds ""
7 SQLCHAR 0 41 "" 7 Pints ""
8 SQLCHAR 0 41 "" 8 Gallons ""
9 SQLCHAR 0 41 "" 9 Dosages ""
10 SQLCHAR 0 41 "" 10 Grams ""
11 SQLCHAR 0 41 "" 11 Kilos ""
12 SQLCHAR 0 41 "" 12 Money ""
13 SQLCHAR 0 41 "" 13 Weapons ""
14 SQLCHAR 0 41 "\r\n" 14 DollarAmt ""
13 changes: 13 additions & 0 deletions nc/notebooks/2023-07-raleigh-contraband/input/SEARCH_format.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
10.0
11
1 SQLCHAR 0 12 "" 1 SearchID ""
2 SQLCHAR 0 12 "" 2 StopID ""
3 SQLCHAR 0 12 "" 3 PersonID ""
4 SQLCHAR 0 5 "" 4 Type ""
5 SQLCHAR 0 3 "" 5 VehicleSearch ""
6 SQLCHAR 0 3 "" 6 DriverSearch ""
7 SQLCHAR 0 3 "" 7 PassengerSearch ""
8 SQLCHAR 0 3 "" 8 PropertySearch ""
9 SQLCHAR 0 3 "" 9 VehicleSeized ""
10 SQLCHAR 0 3 "" 10 PersonalPropertySeized ""
11 SQLCHAR 0 3 "\r\n" 11 OtherPropertySeized ""
17 changes: 17 additions & 0 deletions nc/notebooks/2023-07-raleigh-contraband/input/STOP_format.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
10.0
15
1 SQLCHAR 0 12 "" 1 StopID ""
2 SQLCHAR 0 100 "" 2 AgencyDescription SQL_Latin1_General_CP1_CI_AS
3 SQLCHAR 0 24 "" 3 StopDate ""
4 SQLCHAR 0 5 "" 4 Purpose ""
5 SQLCHAR 0 5 "" 5 Action ""
6 SQLCHAR 0 3 "" 6 DriverArrest ""
7 SQLCHAR 0 3 "" 7 PassengerArrest ""
8 SQLCHAR 0 3 "" 8 EncounterForce ""
9 SQLCHAR 0 3 "" 9 EngageForce ""
10 SQLCHAR 0 3 "" 10 OfficerInjury ""
11 SQLCHAR 0 3 "" 11 DriverInjury ""
12 SQLCHAR 0 3 "" 12 PassengerInjury ""
13 SQLCHAR 0 10 "" 13 OfficerId SQL_Latin1_General_CP1_CI_AS
14 SQLCHAR 0 15 "" 14 StopLocation SQL_Latin1_General_CP1_CI_AS
15 SQLCHAR 0 20 "\r\n" 15 StopCity SQL_Latin1_General_CP1_CI_AS
2,767 changes: 2,767 additions & 0 deletions nc/notebooks/2023-07-raleigh-contraband/raleigh-contraband-graph-2022.ipynb

Large diffs are not rendered by default.

4,895 changes: 4,895 additions & 0 deletions nc/notebooks/2023-09-durham-contraband/durham-contraband-graph-2020.ipynb

Large diffs are not rendered by default.

4,944 changes: 4,944 additions & 0 deletions nc/notebooks/2023-09-durham-contraband/durham-contraband-graph-2021.ipynb

Large diffs are not rendered by default.

4,895 changes: 4,895 additions & 0 deletions nc/notebooks/2023-09-durham-contraband/durham-contraband-graph-2022.ipynb

Large diffs are not rendered by default.

3,620 changes: 3,620 additions & 0 deletions nc/notebooks/2023-09-durham-contraband/durham-contraband-graph-over-time.ipynb

Large diffs are not rendered by default.

4,943 changes: 4,943 additions & 0 deletions nc/notebooks/2023-09-durham-contraband/durham-contraband-graph.ipynb

Large diffs are not rendered by default.

0 comments on commit c75074f

Please sign in to comment.