सदस्य:चक्रपाणी/wiki depth1.0-20-11-2017.py

मुक्त ज्ञानकोश विकिपीडिया से
  1. -*-coding:utf8;-*-
  2. script to calculate wikipedia's depth
  3. author:- w:hi:u:चक्रपाणी
  4. to run this script in Android, install qpython3 app
  1. depth = edits / total × (non articles / articles)^2

The depth or editing depth of Wikipedia is one of several possible rough indicators of the encyclopedia's collaborative quality, showing how frequently its articles are updated.

It does not refer to academic quality, which cannot be computed, but to Wikipedian quality, i.e. the depth of collaborativeness—a descriptor that is highly relevant for a Wikipedia.

NonArticles are user pages, redirects, images, "project" pages, categories, templates, and all talk pages. Total is simply NonArticles + Articles.

  1. For more on the topic go to: https://meta.m.wikimedia.org/wiki/Wikipedia_article_depth

import os

u_line = "_" * 42 # change measurements to fit your window line = "-" * 42

print("\nWikipedia Depth Calculator-1.0-20/11/2017\n" + u_line) while True:

   print(">>Stats of hiwiki as of 20/11/2017")
   print(">>Edits: 37,30,665\n" + line + "\nDon't use commas in your Inputs:-")
   edits = float(input("Edits = "))
  
   print(line + ">>Total articles: 7,10,145")
   total = float(input("Total = "))
  
   print(line + ">>Articles: 1,22,100")
   articles = float(input("Articles = "))
  
   print(line + ">>Non articles = TotalArticles - Articles")
   non_articles = total - articles
   print(line + "Non Articles = ", non_articles)
 
   print(u_line + "DEPTH = {:.2f} ".format(edits / total * (non_articles / articles) ** 2)
   + "\n" + u_line)
  
   u_restart = input("Press 'Enter' to restart...")
   # if u_restart gives error on windows OS change os.system() to os.system('cls')
   os.system('cls' if os.name == 'nt' else 'clear')