Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P83257
(An Untitled Masterwork)
Active
Public
Actions
Authored by
Ladsgroup
on Sep 12 2025, 12:55 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Tags
None
Referenced Files
F66017793: raw-paste-data.txt
Sep 12 2025, 12:55 PM
2025-09-12 12:55:08 (UTC+0)
Subscribers
None
from
collections
import
defaultdict
with
open
(
'rc_rows_sep'
,
'r'
)
as
f
:
rows
=
f
.
read
()
.
split
(
'
\n
'
)
wikis
=
defaultdict
(
dict
)
for
row
in
rows
:
row
=
row
.
split
(
'
\t
'
)
if
len
(
row
)
!=
3
:
continue
wikis
[
row
[
0
]][
row
[
1
]]
=
int
(
row
[
2
])
all_wbs
=
0
all_edits
=
0
for
wiki
in
wikis
:
if
wiki
==
'commonswiki'
:
continue
all_wbs
+=
wikis
[
wiki
]
.
get
(
'wb'
,
0
)
all_edits
+=
wikis
[
wiki
]
.
get
(
'mw.edit'
,
0
)
print
(
all_wbs
,
all_edits
,
all_wbs
/
all_edits
)
Event Timeline
Ladsgroup
created this paste.
Sep 12 2025, 12:55 PM
2025-09-12 12:55:08 (UTC+0)
Ladsgroup
mentioned this in
T400698: Reduce noisy wikidata injected rows to recentchanges
.
Log In to Comment