Browse Source

Edit: extracted new hahstags and mentions, created wordcloud graphic

pull/14/head
janwey 1 year ago
parent
commit
7bd842533f
6 changed files with 102 additions and 85 deletions
  1. 1
    1
      Makefile
  2. 95
    81
      data/tags_mentions.csv
  3. BIN
      graphics/word_cloud.png
  4. BIN
      graphics/word_cloud_transparent.png
  5. 5
    2
      plotte.R
  6. 1
    1
      word_cloud.py

+ 1
- 1
Makefile View File

@@ -1,2 +1,2 @@
img:
python word_cloud.py | wordcloud_cli.py --relative_scaling 0.6 --imagefile graphics/word_cloud.png --width=2000 --height=2000 --no_collocations
python word_cloud.py | wordcloud_cli.py --relative_scaling 0.6 --imagefile graphics/word_cloud.png --width=2000 --height=2000 --no_collocations --background="#ffffff"

+ 95
- 81
data/tags_mentions.csv View File

@@ -1,81 +1,95 @@
tag,n_used
GNU,6
Ring,1
Debian,15
AFWall+,2
StreetComplete,2
Replicant,1
Perlanet,2
Shaarli,2
FramaSoft,9
Nextcloud,5
Mastodon,2
Python,2
RPM,1
OpensourceDesign,7
Diaspora,1
GNUsocial,1
VLC,9
Linux,16
KDE,13
AntennaPod,2
ArchLinux,4
Ubuntu,7
RedHat,3
OpenOffice,1
Audacity,1
Blender,3
Firefox,9
AstroidMail,4
BudgieDesktop,1
FreeDOS,1
PHP,5
Docker,1
VirtualBox,1
BSD,1
TexLaTeX,1
Kalzium,1
Plone,1
Gentoo,1
LibreOffice,13
OpenSUSE,14
Mutt,1
Anki,1
Unity,1
Xtext,1
Rstats,1
OJS,1
gvSIG,3
Scribus,1
Inkscape,1
Kubuntu,1
Wordpress,3
LineageOS,2
Volumio,1
SnapCraft,1
RustLang,1
GNOME,3
0A.D.,1
Mozilla,1
Canonical,1
Thunderbird,2
Wire,1
NodeJS,1
GIMP,2
Symfony,1
RocketChat,1
Solus,2
Ubports,2
Wallabag,1
Kodi,1
FreeBSD,1
Signal,1
KeePassX,1
Transportr,1
ElementaryOS,1
UbuntuMate,1
GoLang,1
Typo3,1
TOR,1
OpenStreetMap,1
CentOS,2
"BudgieDesktop",1
"FreeDos",1
"AFWall",2
"WestNordOst",2
"OpenStreetMap",3
"Docker",1
"Ubuntu",8
"Virtualbox",1
"PHP",6
"Perlanet",2
"Shaarli",2
"Framasoft",12
"BSD",1
"KDE",17
"Fdroid",2
"Linux",20
"Kalzium",1
"GNU",6
"Python",2
"Plone",1
"Firefox",16
"Gentoo",1
"LibreOffice",16
"OpenSUSE",15
"Mutt",1
"VLC",11
"Anki",1
"Unity",1
"Thunderbird",4
"Xtext",1
"RedHat",3
"Debian",19
"Rproject",1
"OpenOffice",2
"Audacity",3
"Blender",4
"AstroidMail",4
"OJS",1
"Ring",1
"Replicant",1
"Nextcloud",6
"Mastodon",1
"RPM",1
"Diaspora",1
"Archlinux",3
"AntennaPod",3
"CentOS",2
"Scribus",3
"Inkscape",1
"GIMP",5
"SUSE",1
"Canonical",1
"Fedora",5
"ElementaryOS",1
"GNUmax",1
"Xubuntu",1
"Kubuntu",2
"WordPress",3
"UBPorts",2
"jspwiki",1
"Wallabag",1
"Antergos",1
"LineageOS",2
"Volumio",1
"Kodi",1
"MediathekView",1
"Signal",3
"Gvsig",5
"Emacs",1
"UbuntuMate",1
"FreeBSD",1
"SnapCraft",1
"TOR",2
"Go",1
"Rust",2
"GNOME",5
"Typo3",1
"MariaDB",1
"0AD",1
"StandardNotes",1
"GNUcash",1
"OpenBuildService",1
"Mozilla",1
"Wire",1
"KeePassX",1
"NodeJS",1
"Shutter",1
"Eclipse",1
"OSMand",1
"Syncthing",1
"Transportr",1
"OpenMensa",1
"Twidere",1
"Weechat",1
"RocketChat",1

BIN
graphics/word_cloud.png View File


BIN
graphics/word_cloud_transparent.png View File


+ 5
- 2
plotte.R View File

@@ -10,10 +10,11 @@ library("stringi")
# }}}

## Loading Data {{{ ----
load(file = "./data/ilovefs-all_2018-02-16_09-37-35.RData")
load(file = "./data/ilovefs-all_2018-02-20_14-57-16.RData")
### following requires you to extract the hashtags first (see further down).
### this can later be imported via a CSV file again
hashtags <- read.csv2(file = "./data/ilovefs-projects_manual.csv", header = TRUE, sep = ",")
hash_ment <- read.csv2(file = "./data/tags_mentions.csv", sep = ",", header = FALSE)
#hashtags <- read.csv2(file = "./data/ilovefs-projects_manual.csv", header = TRUE, sep = ",")
# }}}

## Extract Hashtags {{{ ----
@@ -80,6 +81,8 @@ twitter_mentions <- sub(x = twitter_mentions, pattern = "…", replace = "")
unique(twitter_mentions)
# }}}



### Participation per Platform {{{ ----

#### Calculating Platform numbers

+ 1
- 1
word_cloud.py View File

@@ -10,7 +10,7 @@ def scrambled(orig):
return dest

# This is mentions and hashtag from fediverse and twitter
text = "GNU GNU GNU GNU GNU GNU Ring Debian Debian Debian Debian Debian Debian Debian Debian Debian Debian Debian Debian Debian Debian Debian AFWall+ AFWall+ StreetComplete StreetComplete Replicant Perlanet Perlanet Shaarli Shaarli FramaSoft FramaSoft FramaSoft FramaSoft FramaSoft FramaSoft FramaSoft FramaSoft FramaSoft Nextcloud Nextcloud Nextcloud Nextcloud Nextcloud Mastodon Mastodon Python Python RPM OpensourceDesign OpensourceDesign OpensourceDesign OpensourceDesign OpensourceDesign OpensourceDesign OpensourceDesign Diaspora GNUsocial VLC VLC VLC VLC VLC VLC VLC VLC VLC Linux Linux Linux Linux Linux Linux Linux Linux Linux Linux Linux Linux Linux Linux Linux Linux KDE KDE KDE KDE KDE KDE KDE KDE KDE KDE KDE KDE KDE AntennaPod AntennaPod ArchLinux ArchLinux ArchLinux ArchLinux Ubuntu Ubuntu Ubuntu Ubuntu Ubuntu Ubuntu Ubuntu RedHat RedHat RedHat OpenOffice Audacity Blender Blender Blender Firefox Firefox Firefox Firefox Firefox Firefox Firefox Firefox Firefox AstroidMail AstroidMail AstroidMail AstroidMail BudgieDesktop FreeDOS PHP PHP PHP PHP PHP Docker VirtualBox BSD TexLaTeX Kalzium Plone Gentoo LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE Mutt Anki Unity Xtext Rstats OJS gvSIG gvSIG gvSIG Scribus Inkscape Kubuntu Wordpress Wordpress Wordpress LineageOS LineageOS Volumio SnapCraft RustLang GNOME GNOME GNOME 0A.D. Mozilla Canonical Thunderbird Thunderbird Wire NodeJS GIMP GIMP Symfony RocketChat Solus Solus Ubports Ubports Wallabag Kodi FreeBSD Signal KeePassX Transportr ElementaryOS UbuntuMate GoLang Typo3 TOR OpenStreetMap CentOS CentOS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS"
text = "BudgieDesktop FreeDos AFWall AFWall WestNordOst WestNordOst OpenStreetMap OpenStreetMap OpenStreetMap Docker Ubuntu Ubuntu Ubuntu Ubuntu Ubuntu Ubuntu Ubuntu Ubuntu Virtualbox PHP PHP PHP PHP PHP PHP Perlanet Perlanet Shaarli Shaarli Framasoft Framasoft Framasoft Framasoft Framasoft Framasoft Framasoft Framasoft Framasoft Framasoft Framasoft Framasoft BSD KDE KDE KDE KDE KDE KDE KDE KDE KDE KDE KDE KDE KDE KDE KDE KDE KDE Fdroid Fdroid Linux Linux Linux Linux Linux Linux Linux Linux Linux Linux Linux Linux Linux Linux Linux Linux Linux Linux Linux Linux Kalzium GNU GNU GNU GNU GNU GNU Python Python Plone Firefox Firefox Firefox Firefox Firefox Firefox Firefox Firefox Firefox Firefox Firefox Firefox Firefox Firefox Firefox Firefox Gentoo LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice LibreOffice OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE OpenSUSE Mutt VLC VLC VLC VLC VLC VLC VLC VLC VLC VLC VLC Anki Unity Thunderbird Thunderbird Thunderbird Thunderbird Xtext RedHat RedHat RedHat Debian Debian Debian Debian Debian Debian Debian Debian Debian Debian Debian Debian Debian Debian Debian Debian Debian Debian Debian Rproject OpenOffice OpenOffice Audacity Audacity Audacity Blender Blender Blender Blender AstroidMail AstroidMail AstroidMail AstroidMail OJS Ring Replicant Nextcloud Nextcloud Nextcloud Nextcloud Nextcloud Nextcloud Mastodon RPM Diaspora Archlinux Archlinux Archlinux AntennaPod AntennaPod AntennaPod CentOS CentOS Scribus Scribus Scribus Inkscape GIMP GIMP GIMP GIMP GIMP SUSE Canonical Fedora Fedora Fedora Fedora Fedora ElementaryOS GNUmax Xubuntu Kubuntu Kubuntu WordPress WordPress WordPress UBPorts UBPorts jspwiki Wallabag Antergos LineageOS LineageOS Volumio Kodi MediathekView Signal Signal Signal Gvsig Gvsig Gvsig Gvsig Gvsig Emacs UbuntuMate FreeBSD SnapCraft TOR TOR Go Rust Rust GNOME GNOME GNOME GNOME GNOME Typo3 MariaDB 0AD StandardNotes GNUcash OpenBuildService Mozilla Wire KeePassX NodeJS Shutter Eclipse OSMand Syncthing Transportr OpenMensa Twidere Weechat RocketChat ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS ILoveFS"

words_scramnbled = scrambled(get_words_from_string(text))
words_scramnbled = ' '.join(words_scramnbled)

Loading…
Cancel
Save