Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Do wordcloud based on "vote" instead of "install"
· c709069b
Andreas Tille
authored
Nov 18, 2019
c709069b
Some more tweaking
· a21402ed
Andreas Tille
authored
Nov 18, 2019
a21402ed
Hide whitespace changes
Inline
Side-by-side
debian-med-wordcloud.py
View file @
a21402ed
...
...
@@ -33,11 +33,14 @@ renaming = {
}
multiplier
=
{
'
clustalo
'
:
4
,
'
clustalw
'
:
0.5
,
'
cwltool
'
:
4
,
'
gdcm
'
:
0.2
,
'
qiime
'
:
4
,
'
clustalo
'
:
2
,
'
clustalw
'
:
0.5
,
'
cwltool
'
:
4
,
'
dcmtk
'
:
0.5
,
'
gdcm
'
:
0.5
,
'
orthanc
'
:
0.5
,
'
qiime
'
:
4
,
'
xmedcon
'
:
0.2
}
packages
=
{}
...
...
@@ -59,11 +62,12 @@ for t in med_tasks:
srcname
=
pt
.
source_name
maint
=
pt
.
record
[
'
maintainer
'
]
if
'
med
'
in
maint
or
srcname
in
other
:
pp
=
popcon
.
package
(
name
)
# pp = popcon.package(name) # that's "install"
pp
=
popcon
.
package_raw
(
name
)
srcname
=
renaming
.
get
(
srcname
,
srcname
)
tt
.
setdefault
(
srcname
,
0
)
# tt[srcname] = max(pp[name], tt[srcname])
tt
[
srcname
]
+=
pp
[
name
]
*
multiplier
.
get
(
srcname
,
1
)
tt
[
srcname
]
+=
pp
[
name
]
.
vote
*
multiplier
.
get
(
srcname
,
1
)
frequencies
=
{}
...
...
packagecloud.png
View replaced file @
fc8d705b
View file @
a21402ed
556 KiB
|
W:
|
H:
469 KiB
|
W:
|
H:
2-up
Swipe
Onion skin