STATES="AL AK AZ AR CA CO CT DE FL GA HI ID IL IN IA KS KY LA ME MD MA MI MN MS MO MT NE NV NH NJ NM NY NC ND OH OK OR PA RI SC SD TN TX UT VT VA WA WV WI WY DC GU MH MP PR VI AE AA AE AE AE AP"
YEARS="$(seq 1985 2025 | sort -r)"

for t in arson asr cargo-theft hate-crime human-trafficking pe nibrs reta shr supp; do
    for y in help $YEARS; do
        echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=nibrs/master/$t/$t-$y.zip
    done
done

for y in 2021 2022; do
    echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=nibrs/estimation/indicator/$y/Indicator_Tables_$y.zip
    echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=nibrs/estimation/indicator/$y/Analytical_Tables_$y.zip
done

for y in $(seq 2020 2023 | sort -r); do
    echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=additional-datasets/hate-crime/hate_crime_$y.zip
done

for y in $YEARS; do
    for state in $STATES; do
        echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=nibrs/incident/$y/$state-$y.zip
    done
done

for y in $(seq 2020 2023 | sort -r); do
    for t in cargo-theft cius-estimations expanded-homicide expanded-offense federal cius-figures human-trafficking lee-data offenses-known-to-le persons-arrested resource-pages topic-resource-pages; do
        echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=cius/$y/$t-$y.zip
    done
done

for y in $(seq 2020 2023 | sort -r); do
    for t in Felonious Accidental Assaulted Fed; do
        echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=leoka/$y/LEOKA-$t-$y.zip
    done
done

for y in $(seq 2020 2023 | sort -r); do
    for t in methodology participation incidents victims offenders arrestees relationships location timeOfDay weaponForce circumstances state completed clearances drugInvolvement stateTables fedTables; do
        echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=nibrs/tables/$y/$t.zip
    done
done


# additional datasets
echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=additional-datasets/srs/estimated_crimes_1979_2023.csv
echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=additional-datasets/leoka/LEOKA_1995_2023.zip
echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=additional-datasets/law-enforcement/lee_1960_2023.csv
echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=additional-datasets/hate-crime/hate_crime.zip
echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=additional-datasets/human-trafficking/HT_2013-2023.zip
echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=additional-datasets/ucr/ucr_participation_1960_2023.csv
echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=additional-datasets/cargo-theft/CT_2013_2023.zip
echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=additional-datasets/territories/territories_1995_2023.csv
echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=additional-datasets/arrest/arrests_national.csv
echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=additional-datasets/arrest/arrests_national_adults.csv
echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=additional-datasets/arrest/arrests_national_juvenile.csv
echo https://cde.ucr.cjis.gov/LATEST/s3/signedurl?key=additional-datasets/arrest/arrests_national_drug.csv
