Compare commits
9 Commits
f227f64e08
...
f68955125d
Author | SHA1 | Date | |
---|---|---|---|
f68955125d | |||
a54c800051 | |||
f62e6a58df | |||
aeb6b1a635 | |||
403ac07661 | |||
62fd850f06 | |||
5806cffb66 | |||
aef307bbac | |||
d2007a731a |
16
Makefile
16
Makefile
@ -1,4 +1,4 @@
|
||||
all: build sync_excempt export_dataset export_stats merge_images
|
||||
all: build sync_excempt export_dataset export_stats merge_images export_statistics export_mentions
|
||||
|
||||
build:
|
||||
pip install build
|
||||
@ -27,6 +27,20 @@ export_dataset:
|
||||
@echo "Exporting dataset to be used for LLM embedding. Result will be ./export/0_dataset.txt"
|
||||
dr.dataset > export/0_dataset.txt
|
||||
|
||||
export_statistics:
|
||||
@echo "Exporting statisticts. Result will be ./export/2_statistics.txt"
|
||||
cat export/dataset.txt | grep "Statistics: "
|
||||
cat export/dataset.txt | grep "Statistics: " > export/2_statistics.txt
|
||||
|
||||
|
||||
export_mentions:
|
||||
@echo "Exporting mentions. Result will be ./export/3_mentions.txt"
|
||||
cat export/dataset.txt | grep "times ment"
|
||||
cat export/dataset.txt | grep "times ment" > export/3_mentions.txt
|
||||
|
||||
|
||||
merge_images:
|
||||
@echo "Merging images to one big image. Result will be ./export/1_graphs_compliation.png."
|
||||
python merge_images.py
|
||||
|
||||
|
||||
|
BIN
dist/drstats-1.3.37-py3-none-any.whl
vendored
BIN
dist/drstats-1.3.37-py3-none-any.whl
vendored
Binary file not shown.
BIN
dist/drstats-1.3.37.tar.gz
vendored
BIN
dist/drstats-1.3.37.tar.gz
vendored
Binary file not shown.
BIN
drstats.db
BIN
drstats.db
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 1.9 MiB After Width: | Height: | Size: 1.9 MiB |
100
export/2_statistics.txt
Normal file
100
export/2_statistics.txt
Normal file
@ -0,0 +1,100 @@
|
||||
Statistics: User(ranter) IHateForALiving made 228 contributions to devRant(developer community) what means IHateForALiving owns 0.45 percent of contributions on devRant(developer community). The avarage post length of IHateForALiving is 408.06140350877195 and total post length is 93038. IHateForALiving owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) jiraTicket made 1 contributions to devRant(developer community) what means jiraTicket owns 0.0 percent of contributions on devRant(developer community). The avarage post length of jiraTicket is 149 and total post length is 149. jiraTicket owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) evertiro made 1 contributions to devRant(developer community) what means evertiro owns 0.0 percent of contributions on devRant(developer community). The avarage post length of evertiro is 66 and total post length is 66. evertiro owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) kamen made 4 contributions to devRant(developer community) what means kamen owns 0.01 percent of contributions on devRant(developer community). The avarage post length of kamen is 71 and total post length is 286. kamen owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) CaptainRant made 2 contributions to devRant(developer community) what means CaptainRant owns 0.0 percent of contributions on devRant(developer community). The avarage post length of CaptainRant is 170 and total post length is 341. CaptainRant owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) nemetepst made 2 contributions to devRant(developer community) what means nemetepst owns 0.0 percent of contributions on devRant(developer community). The avarage post length of nemetepst is 394 and total post length is 789. nemetepst owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) Hazarth made 18 contributions to devRant(developer community) what means Hazarth owns 0.04 percent of contributions on devRant(developer community). The avarage post length of Hazarth is 236 and total post length is 4265. Hazarth owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) magicMirror made 3 contributions to devRant(developer community) what means magicMirror owns 0.01 percent of contributions on devRant(developer community). The avarage post length of magicMirror is 141 and total post length is 424. magicMirror owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) cafecortado made 23 contributions to devRant(developer community) what means cafecortado owns 0.05 percent of contributions on devRant(developer community). The avarage post length of cafecortado is 51 and total post length is 1174. cafecortado owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) ScriptCoded made 9 contributions to devRant(developer community) what means ScriptCoded owns 0.02 percent of contributions on devRant(developer community). The avarage post length of ScriptCoded is 96 and total post length is 864. ScriptCoded owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) cb219 made 1 contributions to devRant(developer community) what means cb219 owns 0.0 percent of contributions on devRant(developer community). The avarage post length of cb219 is 77 and total post length is 77. cb219 owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) Root made 19 contributions to devRant(developer community) what means Root owns 0.04 percent of contributions on devRant(developer community). The avarage post length of Root is 258 and total post length is 4910. Root owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) spongessuck made 13 contributions to devRant(developer community) what means spongessuck owns 0.03 percent of contributions on devRant(developer community). The avarage post length of spongessuck is 90 and total post length is 1181. spongessuck owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) dissolvedgirl made 5 contributions to devRant(developer community) what means dissolvedgirl owns 0.01 percent of contributions on devRant(developer community). The avarage post length of dissolvedgirl is 291 and total post length is 1458. dissolvedgirl owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) darksideofyay made 2 contributions to devRant(developer community) what means darksideofyay owns 0.0 percent of contributions on devRant(developer community). The avarage post length of darksideofyay is 37 and total post length is 75. darksideofyay owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) Lensflare made 87 contributions to devRant(developer community) what means Lensflare owns 0.17 percent of contributions on devRant(developer community). The avarage post length of Lensflare is 73 and total post length is 6361. Lensflare owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) Liebranca made 26 contributions to devRant(developer community) what means Liebranca owns 0.05 percent of contributions on devRant(developer community). The avarage post length of Liebranca is 336 and total post length is 8756. Liebranca owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) D-4got10-01 made 8 contributions to devRant(developer community) what means D-4got10-01 owns 0.02 percent of contributions on devRant(developer community). The avarage post length of D-4got10-01 is 192 and total post length is 1543. D-4got10-01 owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) theranter made 4 contributions to devRant(developer community) what means theranter owns 0.01 percent of contributions on devRant(developer community). The avarage post length of theranter is 89 and total post length is 359. theranter owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) donkulator made 48 contributions to devRant(developer community) what means donkulator owns 0.1 percent of contributions on devRant(developer community). The avarage post length of donkulator is 124 and total post length is 5972. donkulator owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) atheist made 34 contributions to devRant(developer community) what means atheist owns 0.07 percent of contributions on devRant(developer community). The avarage post length of atheist is 145 and total post length is 4961. atheist owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) 12bitfloat made 67 contributions to devRant(developer community) what means 12bitfloat owns 0.13 percent of contributions on devRant(developer community). The avarage post length of 12bitfloat is 149 and total post length is 10024. 12bitfloat owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) lorentz made 39 contributions to devRant(developer community) what means lorentz owns 0.08 percent of contributions on devRant(developer community). The avarage post length of lorentz is 230 and total post length is 9001. lorentz owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) CoreFusionX made 14 contributions to devRant(developer community) what means CoreFusionX owns 0.03 percent of contributions on devRant(developer community). The avarage post length of CoreFusionX is 369 and total post length is 5176. CoreFusionX owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) Demolishun made 201 contributions to devRant(developer community) what means Demolishun owns 0.4 percent of contributions on devRant(developer community). The avarage post length of Demolishun is 168 and total post length is 33926. Demolishun owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) SidTheITGuy made 13 contributions to devRant(developer community) what means SidTheITGuy owns 0.03 percent of contributions on devRant(developer community). The avarage post length of SidTheITGuy is 150 and total post length is 1953. SidTheITGuy owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) cuddlyogre made 10 contributions to devRant(developer community) what means cuddlyogre owns 0.02 percent of contributions on devRant(developer community). The avarage post length of cuddlyogre is 224 and total post length is 2247. cuddlyogre owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) galena made 6 contributions to devRant(developer community) what means galena owns 0.01 percent of contributions on devRant(developer community). The avarage post length of galena is 143 and total post length is 860. galena owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) elfo made 5 contributions to devRant(developer community) what means elfo owns 0.01 percent of contributions on devRant(developer community). The avarage post length of elfo is 32 and total post length is 160. elfo owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) kinu made 5 contributions to devRant(developer community) what means kinu owns 0.01 percent of contributions on devRant(developer community). The avarage post length of kinu is 207 and total post length is 1038. kinu owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) TrayKnots made 4 contributions to devRant(developer community) what means TrayKnots owns 0.01 percent of contributions on devRant(developer community). The avarage post length of TrayKnots is 349 and total post length is 1396. TrayKnots owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) Maryam6778 made 1 contributions to devRant(developer community) what means Maryam6778 owns 0.0 percent of contributions on devRant(developer community). The avarage post length of Maryam6778 is 405 and total post length is 405. Maryam6778 owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) Tasperen made 1 contributions to devRant(developer community) what means Tasperen owns 0.0 percent of contributions on devRant(developer community). The avarage post length of Tasperen is 45 and total post length is 45. Tasperen owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) cotetowemixx made 1 contributions to devRant(developer community) what means cotetowemixx owns 0.0 percent of contributions on devRant(developer community). The avarage post length of cotetowemixx is 266 and total post length is 266. cotetowemixx owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) iSwimInTheC made 1 contributions to devRant(developer community) what means iSwimInTheC owns 0.0 percent of contributions on devRant(developer community). The avarage post length of iSwimInTheC is 268 and total post length is 268. iSwimInTheC owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) electrineer made 11 contributions to devRant(developer community) what means electrineer owns 0.02 percent of contributions on devRant(developer community). The avarage post length of electrineer is 39 and total post length is 431. electrineer owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) AceDev made 7 contributions to devRant(developer community) what means AceDev owns 0.01 percent of contributions on devRant(developer community). The avarage post length of AceDev is 45 and total post length is 316. AceDev owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) netikras made 21 contributions to devRant(developer community) what means netikras owns 0.04 percent of contributions on devRant(developer community). The avarage post length of netikras is 167 and total post length is 3516. netikras owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) ars1 made 8 contributions to devRant(developer community) what means ars1 owns 0.02 percent of contributions on devRant(developer community). The avarage post length of ars1 is 87 and total post length is 696. ars1 owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) bazmd made 79 contributions to devRant(developer community) what means bazmd owns 0.16 percent of contributions on devRant(developer community). The avarage post length of bazmd is 154 and total post length is 12213. bazmd owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) JsonBoa made 7 contributions to devRant(developer community) what means JsonBoa owns 0.01 percent of contributions on devRant(developer community). The avarage post length of JsonBoa is 269 and total post length is 1884. JsonBoa owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) Ranchonyx made 20 contributions to devRant(developer community) what means Ranchonyx owns 0.04 percent of contributions on devRant(developer community). The avarage post length of Ranchonyx is 56 and total post length is 1129. Ranchonyx owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) tosensei made 49 contributions to devRant(developer community) what means tosensei owns 0.1 percent of contributions on devRant(developer community). The avarage post length of tosensei is 133 and total post length is 6533. tosensei owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) PappyHans made 3 contributions to devRant(developer community) what means PappyHans owns 0.01 percent of contributions on devRant(developer community). The avarage post length of PappyHans is 265 and total post length is 795. PappyHans owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) awesomeest made 3 contributions to devRant(developer community) what means awesomeest owns 0.01 percent of contributions on devRant(developer community). The avarage post length of awesomeest is 872 and total post length is 2617. awesomeest owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) kiki made 41 contributions to devRant(developer community) what means kiki owns 0.08 percent of contributions on devRant(developer community). The avarage post length of kiki is 86 and total post length is 3565. kiki owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) dIREsTRAITS made 8 contributions to devRant(developer community) what means dIREsTRAITS owns 0.02 percent of contributions on devRant(developer community). The avarage post length of dIREsTRAITS is 118 and total post length is 948. dIREsTRAITS owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) feuerherz made 14 contributions to devRant(developer community) what means feuerherz owns 0.03 percent of contributions on devRant(developer community). The avarage post length of feuerherz is 79 and total post length is 1106. feuerherz owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) Tounai made 34 contributions to devRant(developer community) what means Tounai owns 0.07 percent of contributions on devRant(developer community). The avarage post length of Tounai is 135 and total post length is 4597. Tounai owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) jestdotty made 203 contributions to devRant(developer community) what means jestdotty owns 0.4 percent of contributions on devRant(developer community). The avarage post length of jestdotty is 341 and total post length is 69275. jestdotty owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) Wisecrack made 8 contributions to devRant(developer community) what means Wisecrack owns 0.02 percent of contributions on devRant(developer community). The avarage post length of Wisecrack is 144 and total post length is 1154. Wisecrack owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) We3D made 6 contributions to devRant(developer community) what means We3D owns 0.01 percent of contributions on devRant(developer community). The avarage post length of We3D is 131 and total post length is 786. We3D owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) trekhleb made 2 contributions to devRant(developer community) what means trekhleb owns 0.0 percent of contributions on devRant(developer community). The avarage post length of trekhleb is 188 and total post length is 377. trekhleb owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) vintprox made 2 contributions to devRant(developer community) what means vintprox owns 0.0 percent of contributions on devRant(developer community). The avarage post length of vintprox is 211 and total post length is 422. vintprox owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) devRancid made 11 contributions to devRant(developer community) what means devRancid owns 0.02 percent of contributions on devRant(developer community). The avarage post length of devRancid is 163 and total post length is 1793. devRancid owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) retoor made 505 contributions to devRant(developer community) what means retoor owns 1.0 percent of contributions on devRant(developer community). The avarage post length of retoor is 219 and total post length is 111037. retoor owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) Ganofins made 5 contributions to devRant(developer community) what means Ganofins owns 0.01 percent of contributions on devRant(developer community). The avarage post length of Ganofins is 143 and total post length is 719. Ganofins owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) devJs made 5 contributions to devRant(developer community) what means devJs owns 0.01 percent of contributions on devRant(developer community). The avarage post length of devJs is 55 and total post length is 275. devJs owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) lungdart made 23 contributions to devRant(developer community) what means lungdart owns 0.05 percent of contributions on devRant(developer community). The avarage post length of lungdart is 138 and total post length is 3185. lungdart owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) Chewbanacas made 6 contributions to devRant(developer community) what means Chewbanacas owns 0.01 percent of contributions on devRant(developer community). The avarage post length of Chewbanacas is 57 and total post length is 345. Chewbanacas owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) sandeepbalan made 3 contributions to devRant(developer community) what means sandeepbalan owns 0.01 percent of contributions on devRant(developer community). The avarage post length of sandeepbalan is 75 and total post length is 227. sandeepbalan owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) AlgoRythm made 26 contributions to devRant(developer community) what means AlgoRythm owns 0.05 percent of contributions on devRant(developer community). The avarage post length of AlgoRythm is 147 and total post length is 3831. AlgoRythm owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) cprn made 43 contributions to devRant(developer community) what means cprn owns 0.09 percent of contributions on devRant(developer community). The avarage post length of cprn is 224 and total post length is 9674. cprn owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) kobenz made 6 contributions to devRant(developer community) what means kobenz owns 0.01 percent of contributions on devRant(developer community). The avarage post length of kobenz is 126 and total post length is 760. kobenz owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) Biggy made 3 contributions to devRant(developer community) what means Biggy owns 0.01 percent of contributions on devRant(developer community). The avarage post length of Biggy is 52 and total post length is 156. Biggy owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) superdupernova made 2 contributions to devRant(developer community) what means superdupernova owns 0.0 percent of contributions on devRant(developer community). The avarage post length of superdupernova is 43 and total post length is 87. superdupernova owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) Jwe0619 made 1 contributions to devRant(developer community) what means Jwe0619 owns 0.0 percent of contributions on devRant(developer community). The avarage post length of Jwe0619 is 129 and total post length is 129. Jwe0619 owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) LianaQK made 1 contributions to devRant(developer community) what means LianaQK owns 0.0 percent of contributions on devRant(developer community). The avarage post length of LianaQK is 364 and total post length is 364. LianaQK owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) PurgeXenos made 1 contributions to devRant(developer community) what means PurgeXenos owns 0.0 percent of contributions on devRant(developer community). The avarage post length of PurgeXenos is 248 and total post length is 248. PurgeXenos owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) alturnativ made 1 contributions to devRant(developer community) what means alturnativ owns 0.0 percent of contributions on devRant(developer community). The avarage post length of alturnativ is 343 and total post length is 343. alturnativ owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) bad-practice made 1 contributions to devRant(developer community) what means bad-practice owns 0.0 percent of contributions on devRant(developer community). The avarage post length of bad-practice is 44 and total post length is 44. bad-practice owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) codePain made 1 contributions to devRant(developer community) what means codePain owns 0.0 percent of contributions on devRant(developer community). The avarage post length of codePain is 118 and total post length is 118. codePain owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) greven644 made 1 contributions to devRant(developer community) what means greven644 owns 0.0 percent of contributions on devRant(developer community). The avarage post length of greven644 is 1 and total post length is 1. greven644 owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) h3rp1d3v made 1 contributions to devRant(developer community) what means h3rp1d3v owns 0.0 percent of contributions on devRant(developer community). The avarage post length of h3rp1d3v is 80 and total post length is 80. h3rp1d3v owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) hritik08725 made 1 contributions to devRant(developer community) what means hritik08725 owns 0.0 percent of contributions on devRant(developer community). The avarage post length of hritik08725 is 302 and total post length is 302. hritik08725 owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) xcodesucks made 1 contributions to devRant(developer community) what means xcodesucks owns 0.0 percent of contributions on devRant(developer community). The avarage post length of xcodesucks is 153 and total post length is 153. xcodesucks owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) antigermgerm made 164 contributions to devRant(developer community) what means antigermgerm owns 0.32 percent of contributions on devRant(developer community). The avarage post length of antigermgerm is 125 and total post length is 20580. antigermgerm owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) AdamOnAir made 12 contributions to devRant(developer community) what means AdamOnAir owns 0.02 percent of contributions on devRant(developer community). The avarage post length of AdamOnAir is 63 and total post length is 762. AdamOnAir owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) Grumm made 27 contributions to devRant(developer community) what means Grumm owns 0.05 percent of contributions on devRant(developer community). The avarage post length of Grumm is 237 and total post length is 6421. Grumm owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) nosoup4u made 4 contributions to devRant(developer community) what means nosoup4u owns 0.01 percent of contributions on devRant(developer community). The avarage post length of nosoup4u is 251 and total post length is 1004. nosoup4u owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) TeachMeCode made 7 contributions to devRant(developer community) what means TeachMeCode owns 0.01 percent of contributions on devRant(developer community). The avarage post length of TeachMeCode is 147 and total post length is 1030. TeachMeCode owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) vlord made 3 contributions to devRant(developer community) what means vlord owns 0.01 percent of contributions on devRant(developer community). The avarage post length of vlord is 162 and total post length is 488. vlord owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) chatgpt made 59 contributions to devRant(developer community) what means chatgpt owns 0.12 percent of contributions on devRant(developer community). The avarage post length of chatgpt is 453 and total post length is 26746. chatgpt owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) b2plane made 4 contributions to devRant(developer community) what means b2plane owns 0.01 percent of contributions on devRant(developer community). The avarage post length of b2plane is 87 and total post length is 348. b2plane owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) FuckJava made 2 contributions to devRant(developer community) what means FuckJava owns 0.0 percent of contributions on devRant(developer community). The avarage post length of FuckJava is 55 and total post length is 111. FuckJava owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) isaachackett made 2 contributions to devRant(developer community) what means isaachackett owns 0.0 percent of contributions on devRant(developer community). The avarage post length of isaachackett is 153 and total post length is 306. isaachackett owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) qwwerty made 2 contributions to devRant(developer community) what means qwwerty owns 0.0 percent of contributions on devRant(developer community). The avarage post length of qwwerty is 61 and total post length is 123. qwwerty owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) antigermanist made 5 contributions to devRant(developer community) what means antigermanist owns 0.01 percent of contributions on devRant(developer community). The avarage post length of antigermanist is 120 and total post length is 600. antigermanist owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) asskisser made 5 contributions to devRant(developer community) what means asskisser owns 0.01 percent of contributions on devRant(developer community). The avarage post length of asskisser is 464 and total post length is 2324. asskisser owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) elliotzucker made 2 contributions to devRant(developer community) what means elliotzucker owns 0.0 percent of contributions on devRant(developer community). The avarage post length of elliotzucker is 16 and total post length is 33. elliotzucker owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) n1cK1337 made 2 contributions to devRant(developer community) what means n1cK1337 owns 0.0 percent of contributions on devRant(developer community). The avarage post length of n1cK1337 is 371 and total post length is 742. n1cK1337 owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) Mikol made 1 contributions to devRant(developer community) what means Mikol owns 0.0 percent of contributions on devRant(developer community). The avarage post length of Mikol is 642 and total post length is 642. Mikol owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) Pogromist made 1 contributions to devRant(developer community) what means Pogromist owns 0.0 percent of contributions on devRant(developer community). The avarage post length of Pogromist is 58 and total post length is 58. Pogromist owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) TerriToniAX made 1 contributions to devRant(developer community) what means TerriToniAX owns 0.0 percent of contributions on devRant(developer community). The avarage post length of TerriToniAX is 181 and total post length is 181. TerriToniAX owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) arekxv made 1 contributions to devRant(developer community) what means arekxv owns 0.0 percent of contributions on devRant(developer community). The avarage post length of arekxv is 19 and total post length is 19. arekxv owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) asgs made 1 contributions to devRant(developer community) what means asgs owns 0.0 percent of contributions on devRant(developer community). The avarage post length of asgs is 126 and total post length is 126. asgs owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) kienkhongngu made 1 contributions to devRant(developer community) what means kienkhongngu owns 0.0 percent of contributions on devRant(developer community). The avarage post length of kienkhongngu is 35 and total post length is 35. kienkhongngu owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) sjwsjwsjw made 1 contributions to devRant(developer community) what means sjwsjwsjw owns 0.0 percent of contributions on devRant(developer community). The avarage post length of sjwsjwsjw is 62 and total post length is 62. sjwsjwsjw owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) certecignu made 1 contributions to devRant(developer community) what means certecignu owns 0.0 percent of contributions on devRant(developer community). The avarage post length of certecignu is 788 and total post length is 788. certecignu owns 0.0 percent of content on devRant(developer community).
|
||||
Statistics: User(ranter) coreykelley made 1 contributions to devRant(developer community) what means coreykelley owns 0.0 percent of contributions on devRant(developer community). The avarage post length of coreykelley is 214 and total post length is 214. coreykelley owns 0.0 percent of content on devRant(developer community).
|
100
export/3_mentions.txt
Normal file
100
export/3_mentions.txt
Normal file
@ -0,0 +1,100 @@
|
||||
We3D is 7 times mentioned on devRant(developer comminity).
|
||||
sjwsjwsjw is 0 times mentioned on devRant(developer comminity).
|
||||
Ranchonyx is 11 times mentioned on devRant(developer comminity).
|
||||
Maryam6778 is 0 times mentioned on devRant(developer comminity).
|
||||
SidTheITGuy is 10 times mentioned on devRant(developer comminity).
|
||||
jestdotty is 108 times mentioned on devRant(developer comminity).
|
||||
sandeepbalan is 3 times mentioned on devRant(developer comminity).
|
||||
Lensflare is 45 times mentioned on devRant(developer comminity).
|
||||
devJs is 2 times mentioned on devRant(developer comminity).
|
||||
FuckJava is 1 times mentioned on devRant(developer comminity).
|
||||
ars1 is 7 times mentioned on devRant(developer comminity).
|
||||
certecignu is 1 times mentioned on devRant(developer comminity).
|
||||
theranter is 1 times mentioned on devRant(developer comminity).
|
||||
iSwimInTheC is 0 times mentioned on devRant(developer comminity).
|
||||
qwwerty is 0 times mentioned on devRant(developer comminity).
|
||||
CoreFusionX is 16 times mentioned on devRant(developer comminity).
|
||||
evertiro is 0 times mentioned on devRant(developer comminity).
|
||||
elliotzucker is 0 times mentioned on devRant(developer comminity).
|
||||
AlgoRythm is 19 times mentioned on devRant(developer comminity).
|
||||
antigermgerm is 71 times mentioned on devRant(developer comminity).
|
||||
tosensei is 36 times mentioned on devRant(developer comminity).
|
||||
ScriptCoded is 8 times mentioned on devRant(developer comminity).
|
||||
electrineer is 4 times mentioned on devRant(developer comminity).
|
||||
h3rp1d3v is 1 times mentioned on devRant(developer comminity).
|
||||
b2plane is 6 times mentioned on devRant(developer comminity).
|
||||
devRancid is 8 times mentioned on devRant(developer comminity).
|
||||
PappyHans is 4 times mentioned on devRant(developer comminity).
|
||||
antigermanist is 1 times mentioned on devRant(developer comminity).
|
||||
cb219 is 1 times mentioned on devRant(developer comminity).
|
||||
spongessuck is 4 times mentioned on devRant(developer comminity).
|
||||
hritik08725 is 0 times mentioned on devRant(developer comminity).
|
||||
TeachMeCode is 2 times mentioned on devRant(developer comminity).
|
||||
Biggy is 4 times mentioned on devRant(developer comminity).
|
||||
xcodesucks is 0 times mentioned on devRant(developer comminity).
|
||||
LianaQK is 0 times mentioned on devRant(developer comminity).
|
||||
n1cK1337 is 1 times mentioned on devRant(developer comminity).
|
||||
alturnativ is 1 times mentioned on devRant(developer comminity).
|
||||
galena is 3 times mentioned on devRant(developer comminity).
|
||||
Root is 13 times mentioned on devRant(developer comminity).
|
||||
D-4got10-01 is 3 times mentioned on devRant(developer comminity).
|
||||
Liebranca is 19 times mentioned on devRant(developer comminity).
|
||||
Tounai is 32 times mentioned on devRant(developer comminity).
|
||||
JsonBoa is 2 times mentioned on devRant(developer comminity).
|
||||
dIREsTRAITS is 5 times mentioned on devRant(developer comminity).
|
||||
Grumm is 26 times mentioned on devRant(developer comminity).
|
||||
Demolishun is 129 times mentioned on devRant(developer comminity).
|
||||
bazmd is 41 times mentioned on devRant(developer comminity).
|
||||
asskisser is 4 times mentioned on devRant(developer comminity).
|
||||
Ganofins is 0 times mentioned on devRant(developer comminity).
|
||||
magicMirror is 4 times mentioned on devRant(developer comminity).
|
||||
lorentz is 14 times mentioned on devRant(developer comminity).
|
||||
feuerherz is 7 times mentioned on devRant(developer comminity).
|
||||
AdamOnAir is 5 times mentioned on devRant(developer comminity).
|
||||
bad-practice is 0 times mentioned on devRant(developer comminity).
|
||||
netikras is 12 times mentioned on devRant(developer comminity).
|
||||
isaachackett is 1 times mentioned on devRant(developer comminity).
|
||||
Mikol is 0 times mentioned on devRant(developer comminity).
|
||||
Tasperen is 1 times mentioned on devRant(developer comminity).
|
||||
coreykelley is 0 times mentioned on devRant(developer comminity).
|
||||
TrayKnots is 4 times mentioned on devRant(developer comminity).
|
||||
PurgeXenos is 0 times mentioned on devRant(developer comminity).
|
||||
kienkhongngu is 1 times mentioned on devRant(developer comminity).
|
||||
greven644 is 0 times mentioned on devRant(developer comminity).
|
||||
TerriToniAX is 0 times mentioned on devRant(developer comminity).
|
||||
retoor is 315 times mentioned on devRant(developer comminity).
|
||||
dissolvedgirl is 2 times mentioned on devRant(developer comminity).
|
||||
kobenz is 2 times mentioned on devRant(developer comminity).
|
||||
jiraTicket is 0 times mentioned on devRant(developer comminity).
|
||||
elfo is 4 times mentioned on devRant(developer comminity).
|
||||
cprn is 23 times mentioned on devRant(developer comminity).
|
||||
CaptainRant is 3 times mentioned on devRant(developer comminity).
|
||||
awesomeest is 1 times mentioned on devRant(developer comminity).
|
||||
AceDev is 3 times mentioned on devRant(developer comminity).
|
||||
lungdart is 10 times mentioned on devRant(developer comminity).
|
||||
12bitfloat is 42 times mentioned on devRant(developer comminity).
|
||||
superdupernova is 1 times mentioned on devRant(developer comminity).
|
||||
nemetepst is 1 times mentioned on devRant(developer comminity).
|
||||
Pogromist is 0 times mentioned on devRant(developer comminity).
|
||||
arekxv is 0 times mentioned on devRant(developer comminity).
|
||||
vlord is 6 times mentioned on devRant(developer comminity).
|
||||
IHateForALiving is 0 times mentioned on devRant(developer comminity).
|
||||
nosoup4u is 1 times mentioned on devRant(developer comminity).
|
||||
cafecortado is 8 times mentioned on devRant(developer comminity).
|
||||
donkulator is 32 times mentioned on devRant(developer comminity).
|
||||
codePain is 1 times mentioned on devRant(developer comminity).
|
||||
vintprox is 1 times mentioned on devRant(developer comminity).
|
||||
Chewbanacas is 5 times mentioned on devRant(developer comminity).
|
||||
darksideofyay is 2 times mentioned on devRant(developer comminity).
|
||||
cotetowemixx is 0 times mentioned on devRant(developer comminity).
|
||||
trekhleb is 2 times mentioned on devRant(developer comminity).
|
||||
asgs is 1 times mentioned on devRant(developer comminity).
|
||||
Jwe0619 is 1 times mentioned on devRant(developer comminity).
|
||||
Hazarth is 10 times mentioned on devRant(developer comminity).
|
||||
cuddlyogre is 5 times mentioned on devRant(developer comminity).
|
||||
chatgpt is 53 times mentioned on devRant(developer comminity).
|
||||
atheist is 17 times mentioned on devRant(developer comminity).
|
||||
kinu is 4 times mentioned on devRant(developer comminity).
|
||||
kiki is 31 times mentioned on devRant(developer comminity).
|
||||
kamen is 1 times mentioned on devRant(developer comminity).
|
||||
Wisecrack is 3 times mentioned on devRant(developer comminity).
|
1
export/posts-retoor.txt
Normal file
1
export/posts-retoor.txt
Normal file
File diff suppressed because one or more lines are too long
1
export/rants-IHateForALiving.txt
Normal file
1
export/rants-IHateForALiving.txt
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 44 KiB |
1
export/view-comment_stats_per_day.json
Normal file
1
export/view-comment_stats_per_day.json
Normal file
@ -0,0 +1 @@
|
||||
[{"count": 34, "created_date": "2024-11-07", "weekday": "Thursday"}, {"count": 113, "created_date": "2024-11-08", "weekday": "Friday"}, {"count": 75, "created_date": "2024-11-09", "weekday": "Saturday"}, {"count": 111, "created_date": "2024-11-10", "weekday": "Sunday"}, {"count": 160, "created_date": "2024-11-11", "weekday": "Monday"}, {"count": 238, "created_date": "2024-11-12", "weekday": "Tuesday"}, {"count": 196, "created_date": "2024-11-13", "weekday": "Wednesday"}, {"count": 138, "created_date": "2024-11-14", "weekday": "Thursday"}, {"count": 166, "created_date": "2024-11-15", "weekday": "Friday"}, {"count": 173, "created_date": "2024-11-16", "weekday": "Saturday"}, {"count": 120, "created_date": "2024-11-17", "weekday": "Sunday"}, {"count": 165, "created_date": "2024-11-18", "weekday": "Monday"}, {"count": 102, "created_date": "2024-11-19", "weekday": "Tuesday"}, {"count": 106, "created_date": "2024-11-20", "weekday": "Wednesday"}, {"count": 128, "created_date": "2024-11-21", "weekday": "Thursday"}, {"count": 83, "created_date": "2024-11-22", "weekday": "Friday"}, {"count": 53, "created_date": "2024-11-23", "weekday": "Saturday"}]
|
1
export/view-comment_stats_per_hour.json
Normal file
1
export/view-comment_stats_per_hour.json
Normal file
@ -0,0 +1 @@
|
||||
[{"count": 88, "hour": "00"}, {"count": 53, "hour": "01"}, {"count": 55, "hour": "02"}, {"count": 59, "hour": "03"}, {"count": 42, "hour": "04"}, {"count": 50, "hour": "05"}, {"count": 49, "hour": "06"}, {"count": 26, "hour": "07"}, {"count": 42, "hour": "08"}, {"count": 77, "hour": "09"}, {"count": 86, "hour": "10"}, {"count": 81, "hour": "11"}, {"count": 82, "hour": "12"}, {"count": 123, "hour": "13"}, {"count": 122, "hour": "14"}, {"count": 136, "hour": "15"}, {"count": 91, "hour": "16"}, {"count": 134, "hour": "17"}, {"count": 156, "hour": "18"}, {"count": 143, "hour": "19"}, {"count": 101, "hour": "20"}, {"count": 113, "hour": "21"}, {"count": 164, "hour": "22"}, {"count": 88, "hour": "23"}]
|
1
export/view-comment_stats_per_weekday.json
Normal file
1
export/view-comment_stats_per_weekday.json
Normal file
@ -0,0 +1 @@
|
||||
[{"count": 300, "created_date": "2024-11-07", "weekday": "Thursday"}, {"count": 362, "created_date": "2024-11-08", "weekday": "Friday"}, {"count": 301, "created_date": "2024-11-09", "weekday": "Saturday"}, {"count": 231, "created_date": "2024-11-10", "weekday": "Sunday"}, {"count": 325, "created_date": "2024-11-11", "weekday": "Monday"}, {"count": 340, "created_date": "2024-11-12", "weekday": "Tuesday"}, {"count": 302, "created_date": "2024-11-13", "weekday": "Wednesday"}]
|
1
export/view-contributions.json
Normal file
1
export/view-contributions.json
Normal file
File diff suppressed because one or more lines are too long
1
export/view-contributions_extended.json
Normal file
1
export/view-contributions_extended.json
Normal file
File diff suppressed because one or more lines are too long
1
export/view-contributions_extended_ranked.json
Normal file
1
export/view-contributions_extended_ranked.json
Normal file
File diff suppressed because one or more lines are too long
1
export/view-posts_of_user.json
Normal file
1
export/view-posts_of_user.json
Normal file
File diff suppressed because one or more lines are too long
1
export/view-rant_stats_per_day.json
Normal file
1
export/view-rant_stats_per_day.json
Normal file
@ -0,0 +1 @@
|
||||
[{"count": 7, "created_date": "2024-11-07", "weekday": "Thursday"}, {"count": 10, "created_date": "2024-11-08", "weekday": "Friday"}, {"count": 4, "created_date": "2024-11-09", "weekday": "Saturday"}, {"count": 15, "created_date": "2024-11-10", "weekday": "Sunday"}, {"count": 12, "created_date": "2024-11-11", "weekday": "Monday"}, {"count": 24, "created_date": "2024-11-12", "weekday": "Tuesday"}, {"count": 13, "created_date": "2024-11-13", "weekday": "Wednesday"}, {"count": 16, "created_date": "2024-11-14", "weekday": "Thursday"}, {"count": 14, "created_date": "2024-11-15", "weekday": "Friday"}, {"count": 16, "created_date": "2024-11-16", "weekday": "Saturday"}, {"count": 16, "created_date": "2024-11-17", "weekday": "Sunday"}, {"count": 18, "created_date": "2024-11-18", "weekday": "Monday"}, {"count": 19, "created_date": "2024-11-19", "weekday": "Tuesday"}, {"count": 14, "created_date": "2024-11-20", "weekday": "Wednesday"}, {"count": 8, "created_date": "2024-11-21", "weekday": "Thursday"}, {"count": 12, "created_date": "2024-11-22", "weekday": "Friday"}, {"count": 10, "created_date": "2024-11-23", "weekday": "Saturday"}]
|
1
export/view-rant_stats_per_hour.json
Normal file
1
export/view-rant_stats_per_hour.json
Normal file
@ -0,0 +1 @@
|
||||
[{"count": 10, "hour": "00"}, {"count": 11, "hour": "01"}, {"count": 8, "hour": "02"}, {"count": 7, "hour": "03"}, {"count": 3, "hour": "04"}, {"count": 3, "hour": "05"}, {"count": 7, "hour": "06"}, {"count": 7, "hour": "07"}, {"count": 3, "hour": "08"}, {"count": 6, "hour": "09"}, {"count": 10, "hour": "10"}, {"count": 11, "hour": "11"}, {"count": 10, "hour": "12"}, {"count": 10, "hour": "13"}, {"count": 13, "hour": "14"}, {"count": 14, "hour": "15"}, {"count": 9, "hour": "16"}, {"count": 13, "hour": "17"}, {"count": 15, "hour": "18"}, {"count": 16, "hour": "19"}, {"count": 12, "hour": "20"}, {"count": 6, "hour": "21"}, {"count": 16, "hour": "22"}, {"count": 8, "hour": "23"}]
|
1
export/view-rant_stats_per_weekday.json
Normal file
1
export/view-rant_stats_per_weekday.json
Normal file
@ -0,0 +1 @@
|
||||
[{"count": 31, "created_date": "2024-11-07", "weekday": "Thursday"}, {"count": 36, "created_date": "2024-11-08", "weekday": "Friday"}, {"count": 30, "created_date": "2024-11-09", "weekday": "Saturday"}, {"count": 31, "created_date": "2024-11-10", "weekday": "Sunday"}, {"count": 30, "created_date": "2024-11-11", "weekday": "Monday"}, {"count": 43, "created_date": "2024-11-12", "weekday": "Tuesday"}, {"count": 27, "created_date": "2024-11-13", "weekday": "Wednesday"}]
|
1
export/view-rants_of_user.json
Normal file
1
export/view-rants_of_user.json
Normal file
File diff suppressed because one or more lines are too long
1
export/view-score_ignored_most_last_7_days.json
Normal file
1
export/view-score_ignored_most_last_7_days.json
Normal file
@ -0,0 +1 @@
|
||||
[{"username": "retoor", "userscore": 44}, {"username": "jestdotty", "userscore": 16}, {"username": "chatgpt", "userscore": 16}, {"username": "antigermgerm", "userscore": 15}, {"username": "Demolishun", "userscore": 12}, {"username": "cprn", "userscore": 8}, {"username": "Lensflare", "userscore": 8}, {"username": "asskisser", "userscore": 5}, {"username": "12bitfloat", "userscore": 5}, {"username": "tosensei", "userscore": 4}, {"username": "netikras", "userscore": 4}, {"username": "bazmd", "userscore": 4}, {"username": "antigermanist", "userscore": 4}, {"username": "spongessuck", "userscore": 3}, {"username": "lorentz", "userscore": 3}, {"username": "Grumm", "userscore": 3}, {"username": "lungdart", "userscore": 2}, {"username": "elliotzucker", "userscore": 2}, {"username": "cuddlyogre", "userscore": 2}, {"username": "cafecortado", "userscore": 2}, {"username": "Liebranca", "userscore": 2}, {"username": "AdamOnAir", "userscore": 2}, {"username": "vlord", "userscore": 1}, {"username": "sjwsjwsjw", "userscore": 1}, {"username": "sandeepbalan", "userscore": 1}, {"username": "qwwerty", "userscore": 1}, {"username": "nosoup4u", "userscore": 1}, {"username": "n1cK1337", "userscore": 1}, {"username": "kiki", "userscore": 1}, {"username": "feuerherz", "userscore": 1}, {"username": "donkulator", "userscore": 1}, {"username": "dIREsTRAITS", "userscore": 1}, {"username": "atheist", "userscore": 1}, {"username": "ars1", "userscore": 1}, {"username": "arekxv", "userscore": 1}, {"username": "Wisecrack", "userscore": 1}, {"username": "TerriToniAX", "userscore": 1}, {"username": "ScriptCoded", "userscore": 1}, {"username": "Mikol", "userscore": 1}, {"username": "JsonBoa", "userscore": 1}, {"username": "AlgoRythm", "userscore": 1}]
|
1
export/view-score_last_7_days.json
Normal file
1
export/view-score_last_7_days.json
Normal file
@ -0,0 +1 @@
|
||||
[{"username": "retoor", "userscore": 708}, {"username": "Demolishun", "userscore": 404}, {"username": "jestdotty", "userscore": 304}, {"username": "Lensflare", "userscore": 203}, {"username": "antigermgerm", "userscore": 156}, {"username": "12bitfloat", "userscore": 141}, {"username": "bazmd", "userscore": 137}, {"username": "donkulator", "userscore": 107}, {"username": "tosensei", "userscore": 82}, {"username": "lorentz", "userscore": 81}, {"username": "atheist", "userscore": 75}, {"username": "cafecortado", "userscore": 74}, {"username": "kiki", "userscore": 68}, {"username": "Hazarth", "userscore": 62}, {"username": "Liebranca", "userscore": 60}, {"username": "Root", "userscore": 56}, {"username": "cprn", "userscore": 55}, {"username": "Tounai", "userscore": 53}, {"username": "spongessuck", "userscore": 38}, {"username": "netikras", "userscore": 37}, {"username": "Ranchonyx", "userscore": 34}, {"username": "AlgoRythm", "userscore": 34}, {"username": "lungdart", "userscore": 32}, {"username": "chatgpt", "userscore": 32}, {"username": "ScriptCoded", "userscore": 29}, {"username": "CoreFusionX", "userscore": 29}, {"username": "SidTheITGuy", "userscore": 26}, {"username": "feuerherz", "userscore": 22}, {"username": "Grumm", "userscore": 22}, {"username": "electrineer", "userscore": 21}, {"username": "cuddlyogre", "userscore": 20}, {"username": "D-4got10-01", "userscore": 18}, {"username": "devRancid", "userscore": 16}, {"username": "kamen", "userscore": 14}, {"username": "ars1", "userscore": 14}, {"username": "dissolvedgirl", "userscore": 13}, {"username": "dIREsTRAITS", "userscore": 13}, {"username": "AceDev", "userscore": 13}, {"username": "galena", "userscore": 12}, {"username": "Wisecrack", "userscore": 12}, {"username": "JsonBoa", "userscore": 12}, {"username": "magicMirror", "userscore": 10}, {"username": "kinu", "userscore": 10}, {"username": "elfo", "userscore": 10}, {"username": "AdamOnAir", "userscore": 10}, {"username": "theranter", "userscore": 9}, {"username": "We3D", "userscore": 9}, {"username": "TrayKnots", "userscore": 8}, {"username": "Chewbanacas", "userscore": 8}, {"username": "nemetepst", "userscore": 7}, {"username": "kobenz", "userscore": 7}, {"username": "devJs", "userscore": 7}, {"username": "Ganofins", "userscore": 7}, {"username": "CaptainRant", "userscore": 7}, {"username": "jiraTicket", "userscore": 5}, {"username": "darksideofyay", "userscore": 5}, {"username": "awesomeest", "userscore": 5}, {"username": "TeachMeCode", "userscore": 5}, {"username": "PappyHans", "userscore": 5}, {"username": "sandeepbalan", "userscore": 4}, {"username": "evertiro", "userscore": 4}, {"username": "vintprox", "userscore": 3}, {"username": "trekhleb", "userscore": 3}, {"username": "nosoup4u", "userscore": 3}, {"username": "cb219", "userscore": 3}, {"username": "Biggy", "userscore": 3}, {"username": "vlord", "userscore": 2}, {"username": "superdupernova", "userscore": 2}, {"username": "iSwimInTheC", "userscore": 2}, {"username": "cotetowemixx", "userscore": 2}, {"username": "b2plane", "userscore": 2}, {"username": "Tasperen", "userscore": 2}, {"username": "Maryam6778", "userscore": 2}, {"username": "xcodesucks", "userscore": 1}, {"username": "qwwerty", "userscore": 1}, {"username": "isaachackett", "userscore": 1}, {"username": "hritik08725", "userscore": 1}, {"username": "h3rp1d3v", "userscore": 1}, {"username": "greven644", "userscore": 1}, {"username": "codePain", "userscore": 1}, {"username": "bad-practice", "userscore": 1}, {"username": "antigermanist", "userscore": 1}, {"username": "alturnativ", "userscore": 1}, {"username": "PurgeXenos", "userscore": 1}, {"username": "LianaQK", "userscore": 1}, {"username": "Jwe0619", "userscore": 1}, {"username": "FuckJava", "userscore": 1}, {"username": "sjwsjwsjw", "userscore": 0}, {"username": "n1cK1337", "userscore": 0}, {"username": "kienkhongngu", "userscore": 0}, {"username": "elliotzucker", "userscore": 0}, {"username": "asskisser", "userscore": 0}, {"username": "asgs", "userscore": 0}, {"username": "arekxv", "userscore": 0}, {"username": "TerriToniAX", "userscore": 0}, {"username": "Pogromist", "userscore": 0}, {"username": "Mikol", "userscore": 0}, {"username": "coreykelley", "userscore": -1}, {"username": "certecignu", "userscore": -1}]
|
1
export/view-user_stats.json
Normal file
1
export/view-user_stats.json
Normal file
File diff suppressed because one or more lines are too long
@ -2,13 +2,15 @@ Metadata-Version: 2.1
|
||||
Name: drstats
|
||||
Version: 1.3.37
|
||||
Summary: dR stats
|
||||
Home-page: UNKNOWN
|
||||
Author: Retoor
|
||||
Author-email: retoor@molodetz.nl
|
||||
License: MIT
|
||||
Platform: UNKNOWN
|
||||
Requires-Python: >=3.7
|
||||
Description-Content-Type: text/markdown
|
||||
Requires-Dist: aiohttp==3.10.10
|
||||
Requires-Dist: dataset==1.6.2
|
||||
Requires-Dist: matplotlib==3.9.2
|
||||
Requires-Dist: requests==2.32.3
|
||||
|
||||
# dRStats
|
||||
|
||||
@ -54,5 +56,3 @@ If you type `dr.` in terminal and press tab you'll see all available apps auto c
|
||||
4. `dr.rant_stats_per_day` exports graphs to export folder. don't forget to execute `dr.sync` first.
|
||||
5. `dr.rant_stats_per_hour` exports graphs to export folder. don't forget to execute `dr.sync` first.
|
||||
6. `dr.rant_stats_per_weekday` exports graphs to export folder. don't forget to execute `dr.sync` first.
|
||||
|
||||
|
||||
|
@ -5,4 +5,3 @@ dr.rant_stats_per_hour = drstats.statistics:rant_stats_per_hour
|
||||
dr.rant_stats_per_weekday = drstats.statistics:rant_stats_per_weekday
|
||||
dr.stats_all = drstats.statistics:rant_stats_all
|
||||
dr.sync = drstats.sync:sync
|
||||
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,20 +1,23 @@
|
||||
from drstats import db
|
||||
import functools
|
||||
import sys
|
||||
import pathlib
|
||||
import json
|
||||
|
||||
printr = functools.partial(print, file=sys.stderr)
|
||||
|
||||
|
||||
def dump():
|
||||
global db
|
||||
statistics_text = [
|
||||
f"devRant(developer community) haves {db.get_user_count()} active users(ranters)."
|
||||
f"All users(ranters) of devRant together did contribute {db.get_contribution_count()} times in total."
|
||||
f"The average user(ranter) of devrant(developer community) contributed {db.get_contribution_average_per_user()} times on devrant(developer community)."
|
||||
f"===devRant(developer community) has {db.get_user_count()} active users(ranters)."
|
||||
f"===All users(ranters) of devRant together did contribute {db.get_contribution_count()} times in total."
|
||||
f"===The average user(ranter) of devrant(developer community) contributed {db.get_contribution_average_per_user()} times on devrant(developer community)."
|
||||
]
|
||||
printr(statistics_text)
|
||||
for contribution in db.get_contributions():
|
||||
statistics_text.append(
|
||||
f"Statistics: User(ranter) {contribution['username']} made {contribution['contributions']} contributions to devRant(developer community) what means {contribution['username']} owns {contribution['ownership']} percent of contributions on devRant(developer community). The avarage post length of {contribution['username']} is {contribution['post_length_average']} and total post length is {contribution['post_length_total']}. {contribution['username']} owns {contribution['ownership_content']} percent of content on devRant(developer community)."
|
||||
f"===Statistics: User(ranter) {contribution['username']} is popularity rank {contribution['rank']} and made {contribution['contributions']} contributions to devRant(developer community) what means {contribution['username']} owns {contribution['ownership']} percent of contributions on devRant(developer community). The avarage post length of {contribution['username']} is {contribution['post_length_average']} and total post length is {contribution['post_length_total']}. {contribution['username']} owns {contribution['ownership_content']} percent of content on devRant(developer community)."
|
||||
)
|
||||
printr(statistics_text[-1])
|
||||
print("\n".join(statistics_text))
|
||||
@ -27,26 +30,49 @@ def dump():
|
||||
if text:
|
||||
total_text += text
|
||||
print(
|
||||
"===",
|
||||
f"All rants written by user(ranter) `{user}` on devRant(developer community).",
|
||||
"```",
|
||||
text,
|
||||
"```",
|
||||
f"All rants written by user(ranter) `{user}` on devRant(developer community)```.",
|
||||
)
|
||||
print(text, "```")
|
||||
printr(text)
|
||||
with pathlib.Path("export/rants-" + user + ".txt").open("w+") as f:
|
||||
f.write(user)
|
||||
f.write(" said ")
|
||||
f.write(text)
|
||||
f.write("```")
|
||||
text = (
|
||||
db.get_all_posts_of_user(user).replace("\n", " ").replace(" ", " ").strip()
|
||||
)
|
||||
if text:
|
||||
total_text += text
|
||||
print(
|
||||
"===",
|
||||
"```",
|
||||
f"All posts written by user(ranter) `{user}` on devRant(developer community): ```.",
|
||||
text,
|
||||
"```",
|
||||
)
|
||||
print(text, "```")
|
||||
printr(text)
|
||||
with pathlib.Path("export/posts-" + user + ".txt").open("w+") as f:
|
||||
f.write(user)
|
||||
f.write(" said ")
|
||||
f.write(text)
|
||||
f.write("```")
|
||||
all_content += total_text
|
||||
|
||||
for user in db.get_users():
|
||||
print("===Mentions of users:", "```")
|
||||
users = db.get_users()
|
||||
users.sort()
|
||||
for user in users:
|
||||
mention_text = f"@{user}"
|
||||
line = f"{user} is {all_content.count(mention_text)} times mentioned on devRant(developer comminity)."
|
||||
printr(line)
|
||||
print(line)
|
||||
print("```")
|
||||
|
||||
for view in db.get_views():
|
||||
printr(f"export/view-{view['name']}.json")
|
||||
with pathlib.Path(f"export/view-{view['name']}.json").open("w+") as f:
|
||||
with db.Db() as _db:
|
||||
json.dump([dict(record) for record in _db.query("SELECT * FROM {}".format(view['name']))],f)
|
@ -2,176 +2,213 @@ db_path = "./drstats.db"
|
||||
import dataset
|
||||
from drstats.duration import Duration
|
||||
|
||||
|
||||
def get_db():
|
||||
db = dataset.connect(f"sqlite:///{db_path}")
|
||||
|
||||
db.query("""
|
||||
DROP VIEW IF EXISTS score_ignored_most_last_7_days
|
||||
""")
|
||||
|
||||
db.query("""
|
||||
CREATE VIEW score_ignored_most_last_7_days AS SELECT
|
||||
user_username AS username,
|
||||
COUNT(score) AS userscore
|
||||
FROM comments
|
||||
WHERE score = 0
|
||||
AND created >= DATE('now', '-7 days')
|
||||
GROUP BY username
|
||||
ORDER BY userscore DESC
|
||||
""")
|
||||
db.query(
|
||||
"""
|
||||
DROP VIEW IF EXISTS score_ignored_most_last_7_days
|
||||
"""
|
||||
)
|
||||
db.query(
|
||||
"""
|
||||
CREATE VIEW score_ignored_most_last_7_days AS SELECT
|
||||
user_username AS username,
|
||||
COUNT(score) AS userscore
|
||||
FROM comments
|
||||
WHERE score = 0
|
||||
AND created >= DATE('now', '-7 days')
|
||||
GROUP BY username
|
||||
ORDER BY userscore DESC
|
||||
"""
|
||||
)
|
||||
|
||||
db.query("DROP VIEW IF EXISTS score_last_7_days")
|
||||
db.query("""
|
||||
CREATE VIEW score_last_7_days AS SELECT
|
||||
user_username AS username,
|
||||
SUM(score) AS userscore
|
||||
FROM comments
|
||||
GROUP BY user_username
|
||||
ORDER BY userscore DESC
|
||||
""")
|
||||
db.query(
|
||||
"""
|
||||
CREATE VIEW score_last_7_days AS SELECT
|
||||
user_username AS username,
|
||||
SUM(score) AS userscore
|
||||
FROM comments
|
||||
GROUP BY user_username
|
||||
ORDER BY userscore DESC
|
||||
"""
|
||||
)
|
||||
|
||||
db.query("DROP VIEW IF EXISTS rant_stats_per_day")
|
||||
db.query("""
|
||||
CREATE VIEW rant_stats_per_day AS SELECT
|
||||
COUNT(0) AS count,
|
||||
DATE(created) AS created_date,
|
||||
CASE strftime('%w', DATE(created))
|
||||
WHEN '0' THEN 'Sunday'
|
||||
WHEN '1' THEN 'Monday'
|
||||
WHEN '2' THEN 'Tuesday'
|
||||
WHEN '3' THEN 'Wednesday'
|
||||
WHEN '4' THEN 'Thursday'
|
||||
WHEN '5' THEN 'Friday'
|
||||
WHEN '6' THEN 'Saturday'
|
||||
END AS weekday
|
||||
FROM rants
|
||||
GROUP BY created_date
|
||||
ORDER BY created_date
|
||||
""")
|
||||
db.query(
|
||||
"""
|
||||
CREATE VIEW rant_stats_per_day AS SELECT
|
||||
COUNT(0) AS count,
|
||||
DATE(created) AS created_date,
|
||||
CASE strftime('%w', DATE(created))
|
||||
WHEN '0' THEN 'Sunday'
|
||||
WHEN '1' THEN 'Monday'
|
||||
WHEN '2' THEN 'Tuesday'
|
||||
WHEN '3' THEN 'Wednesday'
|
||||
WHEN '4' THEN 'Thursday'
|
||||
WHEN '5' THEN 'Friday'
|
||||
WHEN '6' THEN 'Saturday'
|
||||
END AS weekday
|
||||
FROM rants
|
||||
GROUP BY created_date
|
||||
ORDER BY created_date
|
||||
"""
|
||||
)
|
||||
|
||||
db.query("DROP VIEW IF EXISTS comment_stats_per_day")
|
||||
db.query("""
|
||||
CREATE VIEW comment_stats_per_day AS SELECT
|
||||
COUNT(0) AS count,
|
||||
DATE(created) AS created_date,
|
||||
CASE strftime('%w', DATE(created))
|
||||
WHEN '0' THEN 'Sunday'
|
||||
WHEN '1' THEN 'Monday'
|
||||
WHEN '2' THEN 'Tuesday'
|
||||
WHEN '3' THEN 'Wednesday'
|
||||
WHEN '4' THEN 'Thursday'
|
||||
WHEN '5' THEN 'Friday'
|
||||
WHEN '6' THEN 'Saturday'
|
||||
END AS weekday
|
||||
FROM comments
|
||||
GROUP BY created_date
|
||||
ORDER BY created_date
|
||||
""")
|
||||
db.query(
|
||||
"""
|
||||
CREATE VIEW comment_stats_per_day AS SELECT
|
||||
COUNT(0) AS count,
|
||||
DATE(created) AS created_date,
|
||||
CASE strftime('%w', DATE(created))
|
||||
WHEN '0' THEN 'Sunday'
|
||||
WHEN '1' THEN 'Monday'
|
||||
WHEN '2' THEN 'Tuesday'
|
||||
WHEN '3' THEN 'Wednesday'
|
||||
WHEN '4' THEN 'Thursday'
|
||||
WHEN '5' THEN 'Friday'
|
||||
WHEN '6' THEN 'Saturday'
|
||||
END AS weekday
|
||||
FROM comments
|
||||
GROUP BY created_date
|
||||
ORDER BY created_date
|
||||
"""
|
||||
)
|
||||
|
||||
db.query("DROP VIEW IF EXISTS rant_stats_per_weekday")
|
||||
db.query("""
|
||||
CREATE VIEW rant_stats_per_weekday AS SELECT
|
||||
COUNT(0) AS count,
|
||||
DATE(created) AS created_date,
|
||||
CASE strftime('%w', DATE(created))
|
||||
WHEN '0' THEN 'Sunday'
|
||||
WHEN '1' THEN 'Monday'
|
||||
WHEN '2' THEN 'Tuesday'
|
||||
WHEN '3' THEN 'Wednesday'
|
||||
WHEN '4' THEN 'Thursday'
|
||||
WHEN '5' THEN 'Friday'
|
||||
WHEN '6' THEN 'Saturday'
|
||||
END AS weekday
|
||||
FROM rants
|
||||
GROUP BY weekday
|
||||
ORDER BY created_date
|
||||
""")
|
||||
db.query(
|
||||
"""
|
||||
CREATE VIEW rant_stats_per_weekday AS SELECT
|
||||
COUNT(0) AS count,
|
||||
DATE(created) AS created_date,
|
||||
CASE strftime('%w', DATE(created))
|
||||
WHEN '0' THEN 'Sunday'
|
||||
WHEN '1' THEN 'Monday'
|
||||
WHEN '2' THEN 'Tuesday'
|
||||
WHEN '3' THEN 'Wednesday'
|
||||
WHEN '4' THEN 'Thursday'
|
||||
WHEN '5' THEN 'Friday'
|
||||
WHEN '6' THEN 'Saturday'
|
||||
END AS weekday
|
||||
FROM rants
|
||||
GROUP BY weekday
|
||||
ORDER BY created_date
|
||||
"""
|
||||
)
|
||||
|
||||
db.query("DROP VIEW IF EXISTS comment_stats_per_weekday")
|
||||
db.query("""
|
||||
CREATE VIEW comment_stats_per_weekday AS SELECT
|
||||
COUNT(0) AS count,
|
||||
DATE(created) AS created_date,
|
||||
CASE strftime('%w', DATE(created))
|
||||
WHEN '0' THEN 'Sunday'
|
||||
WHEN '1' THEN 'Monday'
|
||||
WHEN '2' THEN 'Tuesday'
|
||||
WHEN '3' THEN 'Wednesday'
|
||||
WHEN '4' THEN 'Thursday'
|
||||
WHEN '5' THEN 'Friday'
|
||||
WHEN '6' THEN 'Saturday'
|
||||
END AS weekday
|
||||
FROM comments
|
||||
GROUP BY weekday
|
||||
ORDER BY created_date
|
||||
""")
|
||||
db.query(
|
||||
"""
|
||||
CREATE VIEW comment_stats_per_weekday AS SELECT
|
||||
COUNT(0) AS count,
|
||||
DATE(created) AS created_date,
|
||||
CASE strftime('%w', DATE(created))
|
||||
WHEN '0' THEN 'Sunday'
|
||||
WHEN '1' THEN 'Monday'
|
||||
WHEN '2' THEN 'Tuesday'
|
||||
WHEN '3' THEN 'Wednesday'
|
||||
WHEN '4' THEN 'Thursday'
|
||||
WHEN '5' THEN 'Friday'
|
||||
WHEN '6' THEN 'Saturday'
|
||||
END AS weekday
|
||||
FROM comments
|
||||
GROUP BY weekday
|
||||
ORDER BY created_date
|
||||
"""
|
||||
)
|
||||
|
||||
db.query("DROP VIEW IF EXISTS comment_stats_per_hour")
|
||||
db.query("""
|
||||
CREATE VIEW comment_stats_per_hour AS SELECT
|
||||
COUNT(0) AS count,
|
||||
strftime('%H', created) AS hour
|
||||
FROM comments
|
||||
GROUP BY hour
|
||||
ORDER BY hour
|
||||
""")
|
||||
db.query(
|
||||
"""
|
||||
CREATE VIEW comment_stats_per_hour AS SELECT
|
||||
COUNT(0) AS count,
|
||||
strftime('%H', created) AS hour
|
||||
FROM comments
|
||||
GROUP BY hour
|
||||
ORDER BY hour
|
||||
"""
|
||||
)
|
||||
|
||||
db.query("DROP VIEW IF EXISTS rant_stats_per_hour")
|
||||
db.query("""
|
||||
CREATE VIEW rant_stats_per_hour AS SELECT
|
||||
COUNT(0) AS count,
|
||||
strftime('%H', created) AS hour
|
||||
FROM rants
|
||||
GROUP BY hour
|
||||
ORDER BY hour
|
||||
""")
|
||||
db.query(
|
||||
"""
|
||||
CREATE VIEW rant_stats_per_hour AS SELECT
|
||||
COUNT(0) AS count,
|
||||
strftime('%H', created) AS hour
|
||||
FROM rants
|
||||
GROUP BY hour
|
||||
ORDER BY hour
|
||||
"""
|
||||
)
|
||||
|
||||
db.query("""
|
||||
db.query(
|
||||
"""
|
||||
DROP VIEW IF EXISTS user_stats
|
||||
""")
|
||||
"""
|
||||
)
|
||||
|
||||
db.query("""
|
||||
CREATE VIEW user_stats AS
|
||||
SELECT
|
||||
user_username AS username,
|
||||
COUNT(0) AS post_count,
|
||||
(select count(0) from rants where rants.id = comments.rant_id and date(rants.created) = date(comments.created)) as rant_count,
|
||||
DATE(comments.created) AS date,
|
||||
(SELECT COUNT(0)
|
||||
FROM comments AS comments2
|
||||
WHERE comments2.user_username = comments.user_username
|
||||
AND comments2.score = 0 and date(comments2.created) = date(comments.created)) AS ignore_count,
|
||||
(SELECT COUNT(0)
|
||||
FROM comments AS comments2
|
||||
WHERE comments2.user_username = comments.user_username
|
||||
AND comments2.score > 0 and date(comments2.created) = date(comments.created)) AS upvote_times,
|
||||
(SELECT SUM(score)
|
||||
FROM comments AS comments2
|
||||
WHERE comments2.user_username = comments.user_username
|
||||
AND comments2.score > 0 and date(comments2.created) = date(comments.created)) AS upvote_total
|
||||
FROM comments
|
||||
GROUP BY username, DATE(comments.created)
|
||||
ORDER BY username ASC, date ASC;
|
||||
""")
|
||||
db.query(
|
||||
"""
|
||||
CREATE VIEW user_stats AS
|
||||
SELECT
|
||||
user_username AS username,
|
||||
COUNT(0) AS post_count,
|
||||
(
|
||||
select count(0) from rants where
|
||||
rants.id = comments.rant_id
|
||||
and date(rants.created) = date(comments.created)
|
||||
) as rant_count,
|
||||
DATE(comments.created) AS date,
|
||||
(SELECT COUNT(0)
|
||||
FROM comments AS comments2
|
||||
WHERE comments2.user_username = comments.user_username
|
||||
AND comments2.score = 0 and date(comments2.created) = date(comments.created)) AS ignore_count,
|
||||
(SELECT COUNT(0)
|
||||
FROM comments AS comments2
|
||||
WHERE comments2.user_username = comments.user_username
|
||||
AND comments2.score > 0 and date(comments2.created) = date(comments.created)) AS upvote_times,
|
||||
(SELECT SUM(score)
|
||||
FROM comments AS comments2
|
||||
WHERE comments2.user_username = comments.user_username
|
||||
AND comments2.score > 0 and date(comments2.created) = date(comments.created)) AS upvote_total
|
||||
FROM comments
|
||||
GROUP BY username, DATE(comments.created)
|
||||
ORDER BY username ASC, date ASC;
|
||||
"""
|
||||
)
|
||||
db.query("DROP VIEW IF EXISTS contributions")
|
||||
db.query("""
|
||||
CREATE VIEW contributions AS
|
||||
select distinct user_username as username, count(0) as contributions,sum(score) as upvotes,avg(length(text)) as post_length_average, sum(length(text)) as content_length from rants
|
||||
union
|
||||
select distinct user_username as username, count(0) as contributions,sum(score) as upvotes, sum(length(body)) / count(0) as post_length_average, sum(length(body)) as content_length from comments
|
||||
group by username
|
||||
order by contributions desc, username asc
|
||||
""")
|
||||
db.query(
|
||||
"""
|
||||
CREATE VIEW contributions AS
|
||||
select distinct user_username as username, count(0) as contributions,sum(score) as upvotes,avg(length(text)) as post_length_average, sum(length(text)) as content_length from rants
|
||||
union
|
||||
select distinct user_username as username, count(0) as contributions,sum(score) as upvotes, sum(length(body)) / count(0) as post_length_average, sum(length(body)) as content_length from comments
|
||||
group by username
|
||||
order by contributions desc, username asc
|
||||
"""
|
||||
)
|
||||
db.query("DROP VIEW IF EXISTS contributions_extended")
|
||||
db.query("""
|
||||
CREATE VIEW contributions_extended as SELECT username, contributions,ROUND(CAST(contributions AS REAL) / CAST((select contributions from contributions) AS REAL),2) as ownership, upvotes, ROUND(CAST(upvotes AS REAL) / CAST((SELECT SUM(upvotes) from contributions) AS REAL),2) upvotes_ownership, ROUND(CAST(upvotes AS REAL) / CAST(contributions AS REAL),2) upvote_ratio,content_length as post_length_total, ROUND(CAST(content_length AS REAL) / CAST((SELECT SUM(content_length) from contributions) AS REAL)) as ownership_content,post_length_average
|
||||
FROM contributions
|
||||
""")
|
||||
db.query(
|
||||
"""
|
||||
CREATE VIEW contributions_extended as SELECT username, contributions,ROUND(CAST(contributions AS REAL) / CAST((select contributions from contributions) AS REAL),2) as ownership, upvotes, ROUND(CAST(upvotes AS REAL) / CAST((SELECT SUM(upvotes) from contributions) AS REAL),2) upvotes_ownership, ROUND(CAST(upvotes AS REAL) / CAST(contributions AS REAL),2) upvote_ratio,content_length as post_length_total, ROUND(CAST(content_length AS REAL) / CAST((SELECT SUM(content_length) from contributions) AS REAL)) as ownership_content,post_length_average
|
||||
FROM contributions
|
||||
"""
|
||||
)
|
||||
db.query("DROP VIEW IF EXISTS rants_of_user")
|
||||
db.query("CREATE VIEW rants_of_user as SELECT user_username as username, GROUP_CONCAT(text) as text FROM rants")
|
||||
db.query(
|
||||
"CREATE VIEW rants_of_user as SELECT user_username as username, GROUP_CONCAT(text) as text FROM rants"
|
||||
)
|
||||
db.query("DROP VIEW IF EXISTS posts_of_user")
|
||||
db.query("CREATE VIEW posts_of_user AS SELECT user_username as username, GROUP_CONCAT(body) as text FROM comments")
|
||||
|
||||
db.query(
|
||||
"CREATE VIEW posts_of_user AS SELECT user_username as username, GROUP_CONCAT(body) as text FROM comments"
|
||||
)
|
||||
db.query("DROP VIEW IF EXISTS contributions_extended_ranked")
|
||||
db.query("CREATE VIEW contributions_extended_ranked AS SELECT ROW_NUMBER() OVER (ORDER BY upvote_ratio DESC) as rank, * FROM contributions_extended ORDER BY upvote_ratio DESC")
|
||||
db.query("CREATE VIEW IF NOT EXISTS views AS SELECT sql, name FROM sqlite_schema WHERE type='view' AND name != 'views';")
|
||||
|
||||
return db
|
||||
|
||||
|
||||
@ -183,60 +220,78 @@ class Db:
|
||||
def __enter__(self):
|
||||
self.db = get_db()
|
||||
return self
|
||||
|
||||
|
||||
def query(self, str):
|
||||
with Duration("DB Query {}".format(str[:80])):
|
||||
return self.db.query(str)
|
||||
|
||||
return self.db.query(str)
|
||||
|
||||
def __exit__(self, exc_type, exc_val, exc_tb):
|
||||
self.db.close()
|
||||
self.db = None
|
||||
|
||||
|
||||
async def __aenter__(self):
|
||||
self.db = get_db()
|
||||
return self
|
||||
|
||||
|
||||
def query(self, str):
|
||||
with Duration("DB Query {}".format(str[:80])):
|
||||
return self.db.query(str)
|
||||
|
||||
return self.db.query(str)
|
||||
|
||||
async def __aexit__(self, exc_type, exc_val, exc_tb):
|
||||
self.db.close()
|
||||
self.db = None
|
||||
|
||||
|
||||
def get_views():
|
||||
with Db() as db:
|
||||
return list(db.query("SELECT * FROM views;"))
|
||||
|
||||
def get_contributions():
|
||||
with Db() as db:
|
||||
contributions = db.query("SELECT ROW_NUMBER() OVER (ORDER BY upvote_ratio DESC) as popularity_postion, * FROM contributions_extended ORDER BY upvote_ratio DESC")
|
||||
contributions = db.query(
|
||||
"SELECT * FROM contributions_extended_ranked"
|
||||
)
|
||||
return list(contributions)
|
||||
|
||||
|
||||
def get_upvote_average():
|
||||
return avg(contribution['upvote_ratio'] for contribution in get_contributions())
|
||||
return avg(contribution["upvote_ratio"] for contribution in get_contributions())
|
||||
|
||||
|
||||
def get_users():
|
||||
return list(set([user['username'] for user in get_contributions()]))
|
||||
"""
|
||||
Retrieve a list of distinct usernames from the contributions table.
|
||||
|
||||
Returns:
|
||||
list: A list of usernames in ascending order.
|
||||
"""
|
||||
|
||||
with Db() as db:
|
||||
return [user["username"] for user in db.query("SELECT DISTINCT username FROM contributions ORDER BY username")]
|
||||
|
||||
def get_user_count():
|
||||
return len(get_users())
|
||||
|
||||
|
||||
def get_contribution_count():
|
||||
return sum(user['contributions'] for user in get_contributions())
|
||||
return sum(user["contributions"] for user in get_contributions())
|
||||
|
||||
|
||||
def get_contribution_average_per_user():
|
||||
return round(get_contribution_count() / get_user_count(),2)
|
||||
return round(get_contribution_count() / get_user_count(), 2)
|
||||
|
||||
|
||||
def get_all_rants_of_user(username):
|
||||
with Db() as db:
|
||||
try:
|
||||
return db.db['rants_of_user'].find_one(username=username)['text']
|
||||
return db.db["rants_of_user"].find_one(username=username)["text"]
|
||||
except TypeError:
|
||||
return ""
|
||||
|
||||
|
||||
def get_all_posts_of_user(username):
|
||||
with Db() as db:
|
||||
try:
|
||||
return db.db['posts_of_user'].find_one(username=username)['text']
|
||||
return db.db["posts_of_user"].find_one(username=username)["text"]
|
||||
except TypeError:
|
||||
return ""
|
||||
return ""
|
||||
|
Loading…
Reference in New Issue
Block a user