-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
314,009 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
extern crate flate2; | ||
use flate2::read::GzDecoder; | ||
use std::fs; | ||
use std::io; | ||
use std::io::prelude::*; | ||
|
||
pub fn read_folder(file_path: String) -> Vec<String> { | ||
let paths = fs::read_dir(file_path).unwrap(); | ||
let mut lines = Vec::new(); | ||
for path in paths { | ||
let a = std::io::BufReader::new( | ||
fs::File::open(path.as_ref().unwrap().path().to_str().unwrap()).unwrap(), | ||
); | ||
if path.unwrap().path().to_str().unwrap().contains(".gz") { | ||
let d = GzDecoder::new(a); | ||
for line in io::BufReader::new(d).lines() { | ||
lines.push(line.unwrap().to_string()); | ||
} | ||
} else { | ||
for line in io::BufReader::new(a).lines() { | ||
lines.push(line.unwrap().to_string()); | ||
} | ||
} | ||
} | ||
return lines; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
32774 - - [21/Jan/2024:18:08:00 -0500] "amtrak-api.marcmap.app" "GET /get-trains HTTP/1.1" 200 820909 "-" "AmTrack/15 CFNetwork/1490.0.4 Darwin/23.2.0" 0.381 {39.5296, -119.8142} <Reno, Nevada> -- (ATT-INTERNET4, 7018) | ||
538798 - - [21/Jan/2024:18:08:02 -0500] "amtrak-api.marcmap.app" "GET /get-trains HTTP/1.1" 200 820909 "-" "AmTrack/15 CFNetwork/1490.0.4 Darwin/23.2.0" 0.484 {37.5539, -77.4605} <Richmond, Virginia> -- (COMCAST-7922, 7922) | ||
273775 - - [21/Jan/2024:18:08:23 -0500] "amtrak-api.marcmap.app" "GET /get-trains HTTP/1.1" 200 820909 "-" "AmTrack/15 CFNetwork/1490.0.4 Darwin/23.2.0" 4.808 {40.3490, -74.6580} <Princeton, New Jersey> -- (ATT-MOBILITY-LLC-AS20057, 20057) | ||
273775 - - [21/Jan/2024:18:08:23 -0500] "amtrak-api.marcmap.app" "GET /get-trains HTTP/1.1" 200 820909 "-" "AmTrack/15 CFNetwork/1490.0.4 Darwin/23.2.0" 5.004 {40.3490, -74.6580} <Princeton, New Jersey> -- (ATT-MOBILITY-LLC-AS20057, 20057) | ||
32774 - - [21/Jan/2024:18:08:23 -0500] "amtrak-api.marcmap.app" "GET /get-trains HTTP/1.1" 200 820909 "-" "AmTrack/15 CFNetwork/1490.0.4 Darwin/23.2.0" 0.539 {39.5296, -119.8142} <Reno, Nevada> -- (ATT-INTERNET4, 7018) | ||
273775 - - [21/Jan/2024:18:08:41 -0500] "amtrak-api.marcmap.app" "GET /get-trains HTTP/1.1" 200 820909 "-" "AmTrack/15 CFNetwork/1490.0.4 Darwin/23.2.0" 1.749 {40.3490, -74.6580} <Princeton, New Jersey> -- (ATT-MOBILITY-LLC-AS20057, 20057) | ||
273775 - - [21/Jan/2024:18:08:41 -0500] "amtrak-api.marcmap.app" "GET /get-trains HTTP/1.1" 200 820909 "-" "AmTrack/15 CFNetwork/1490.0.4 Darwin/23.2.0" 2.108 {40.3490, -74.6580} <Princeton, New Jersey> -- (ATT-MOBILITY-LLC-AS20057, 20057) | ||
32774 - - [21/Jan/2024:18:08:41 -0500] "amtrak-api.marcmap.app" "GET /get-trains HTTP/1.1" 200 820909 "-" "AmTrack/15 CFNetwork/1490.0.4 Darwin/23.2.0" 0.790 {39.5296, -119.8142} <Reno, Nevada> -- (ATT-INTERNET4, 7018) | ||
273775 - - [21/Jan/2024:18:08:59 -0500] "amtrak-api.marcmap.app" "GET /get-trains HTTP/1.1" 200 820909 "-" "AmTrack/15 CFNetwork/1490.0.4 Darwin/23.2.0" 0.514 {40.3490, -74.6580} <Princeton, New Jersey> -- (ATT-MOBILITY-LLC-AS20057, 20057) | ||
273775 - - [21/Jan/2024:18:08:59 -0500] "amtrak-api.marcmap.app" "GET /get-trains HTTP/1.1" 200 820909 "-" "AmTrack/15 CFNetwork/1490.0.4 Darwin/23.2.0" 0.533 {40.3490, -74.6580} <Princeton, New Jersey> -- (ATT-MOBILITY-LLC-AS20057, 20057) | ||
32774 - - [21/Jan/2024:18:09:00 -0500] "amtrak-api.marcmap.app" "GET /get-trains HTTP/1.1" 200 820909 "-" "AmTrack/15 CFNetwork/1490.0.4 Darwin/23.2.0" 0.443 {39.5296, -119.8142} <Reno, Nevada> -- (ATT-INTERNET4, 7018) | ||
759244 - - [21/Jan/2024:18:09:13 -0500] "amtrak-api.marcmap.app" "GET /get-trains HTTP/1.1" 499 0 "-" "AmTrack/15 CFNetwork/1490.0.4 Darwin/23.2.0" 0.000 {38.9517, -92.3341} <Columbia, Missouri> -- (CLOUDFLARENET, 13335) | ||
759244 - - [21/Jan/2024:18:09:13 -0500] "amtrak-api.marcmap.app" "GET /get-trains HTTP/1.1" 200 792695 "-" "AmTrack/15 CFNetwork/1490.0.4 Darwin/23.2.0" 0.573 {38.9517, -92.3341} <Columbia, Missouri> -- (CLOUDFLARENET, 13335) | ||
32774 - - [21/Jan/2024:18:09:20 -0500] "amtrak-api.marcmap.app" "GET /get-trains HTTP/1.1" 200 792695 "-" "AmTrack/15 CFNetwork/1490.0.4 Darwin/23.2.0" 0.461 {39.5296, -119.8142} <Reno, Nevada> -- (ATT-INTERNET4, 7018) | ||
32774 - - [21/Jan/2024:18:09:26 -0500] "amtrak-api.marcmap.app" "GET /get-trains HTTP/1.1" 200 792695 "-" "AmTrack/15 CFNetwork/1490.0.4 Darwin/23.2.0" 0.445 {39.5296, -119.8142} <Reno, Nevada> -- (ATT-INTERNET4, 7018) | ||
32774 - - [21/Jan/2024:18:09:40 -0500] "amtrak-api.marcmap.app" "GET /get-trains HTTP/1.1" 200 792695 "-" "AmTrack/15 CFNetwork/1490.0.4 Darwin/23.2.0" 0.434 {39.5296, -119.8142} <Reno, Nevada> -- (ATT-INTERNET4, 7018) |
Binary file not shown.
Oops, something went wrong.