Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Cecylia Bocovich
probetest
Commits
3e77aa65
Commit
3e77aa65
authored
Dec 07, 2021
by
Cecylia Bocovich
Browse files
Update docs and analysis for continuously updated dataset
parent
7727ea7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
3e77aa65
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
This is a collection of scripts for performing automatic reachability tests of Snowflake and obfs4.
This is a collection of scripts for performing automatic reachability tests of Snowflake and obfs4.
Datasets from multiple probe points are published by us at: https://people.torproject.org/~cohosh/bootstrap.csv
### Setup
### Setup
...
...
analysis/makecsv
View file @
3e77aa65
...
@@ -14,9 +14,10 @@ locale.setlocale(locale.LC_ALL, "C")
...
@@ -14,9 +14,10 @@ locale.setlocale(locale.LC_ALL, "C")
bootstrapped_re
=
re
.
compile
(
r
'^(\w+ \d+ \d\d:\d\d:\d\d\.\d\d\d) \[\w+\] Bootstrapped (\d+)%'
)
bootstrapped_re
=
re
.
compile
(
r
'^(\w+ \d+ \d\d:\d\d:\d\d\.\d\d\d) \[\w+\] Bootstrapped (\d+)%'
)
csvW
=
csv
.
DictWriter
(
sys
.
stdout
,
fieldnames
=
(
"timestamp"
,
"site"
,
"runid"
,
"nickname"
,
"percent"
))
csvW
=
csv
.
DictWriter
(
sys
.
stdout
,
fieldnames
=
(
"timestamp"
,
"site"
,
"runid"
,
"nickname"
,
"percent"
))
csvW
.
writeheader
()
#
csvW.writeheader()
def
process_log
(
f
,
site
,
runid
,
nickname
):
def
process_log
(
f
,
site
,
runid
,
nickname
):
row
=
None
for
line
in
f
:
for
line
in
f
:
m
=
bootstrapped_re
.
match
(
line
)
m
=
bootstrapped_re
.
match
(
line
)
if
m
is
not
None
:
if
m
is
not
None
:
...
@@ -33,7 +34,7 @@ def process_log(f, site, runid, nickname):
...
@@ -33,7 +34,7 @@ def process_log(f, site, runid, nickname):
"nickname"
:
nickname
,
"nickname"
:
nickname
,
"percent"
:
percent
,
"percent"
:
percent
,
}
}
csvW
.
writerow
(
row
)
csvW
.
writerow
(
row
)
for
filename
in
sys
.
stdin
:
for
filename
in
sys
.
stdin
:
filename
=
filename
.
strip
()
filename
=
filename
.
strip
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment