This commit is contained in:
2024-11-26 09:28:21 +01:00
parent a1b3ad2a92
commit cf1d1dd37a
20 changed files with 48 additions and 33 deletions
+2 -2
View File
@@ -20,9 +20,9 @@ Also this data will be used for retoor9b, the newest AI hype! You're still using
## Statistics by last build
Click here for latest [dataset](https://retoor.molodetz.nl/retoor/drstats/src/branch/main/export/0_dataset.txt).
Click here for latest [dataset](https://retoor.molodetz.nl/retoor/drstats/src/branch/main/export/0_dataset.txt) optimized for training LLM's like retoor9b.
Click here for latest [graphs compilaiton](https://retoor.molodetz.nl/retoor/drstats/src/branch/main/export/1_graphs_compliation.png).
Click here for latest [graphs compilation](https://retoor.molodetz.nl/retoor/drstats/src/branch/main/export/1_graphs_compliation.png).
Click here for all generated [data](https://retoor.molodetz.nl/retoor/drstats/src/branch/main/export). It's a big dataset containing data for LLM's to train on, graphs per user or overal statistics and json files with all made observations.
+1 -4
View File
@@ -1,7 +1,4 @@
[console_scripts]
dr.dataset = drstats.dataset:dump
dr.rant_stats_per_day = drstats.statistics:rant_stats_per_day
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.stats = drstats.statistics:rant_stats_all
dr.sync = drstats.sync:sync
+8 -1
View File
@@ -14,7 +14,7 @@ def dump():
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)
printr("\n".join(statistics_text))
for contribution in db.get_contributions():
statistics_text.append(
f"===Statistics: User(ranter) {contribution['username']} is appreciation ranked {contribution['rank_by_appreciation_based_on_upvotes_per_message']} 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)."
@@ -79,3 +79,10 @@ def dump():
],
f,
)
json.dump(
[
dict(record)
for record in _db.query("SELECT * FROM {}".format(view["name"]))
],
sys.stderr,
)
+1 -1
View File
@@ -238,7 +238,7 @@ class Db:
return self
def query(self, str):
with Duration("DB Query {}".format(str[:80])):
with Duration("Query {}".format(str[:80])):
return self.db.query(str)
async def __aexit__(self, exc_type, exc_val, exc_tb):