Jump to content

User:Jmorgan (WMF)/sandbox

From Wikipedia, the free encyclopedia

Snuggle data sample (annotated)

[edit]
{
"id": 19937102, //user_id
"name": "BenjiThaGuy", //user_name
"has_talk_page": false, //Has a talk page at time of query
"has_user_page": true, //Has a user page at time of query
"views": 0, //The number of times the user was viewed in Snuggle
"desirability": {
	"likelihood": 1.0, //Another way to look at ratio, but less exact
	"ratio": 3.91377604003612e+18 //The larger this number the more likely the newcomer is "good-faith"
}, 
"category": {"category": null, "history": []}, //category would be non-null if a Snuggle user had performed a categoirzation 
"registration": 1381876152, //unix timestamp of registration
"activity": {
	"last_activity": 1383093427, //unix timestamp of last edit 
	"counts": {"1": 1, "0": 25, "all": 26}, //Counts of edits by namespace
	"self_reverted": 0, //Number of self reverts
	"reverted": 0, //Number of total reverts (including self reverts(
	"revisions": { //Dictionary of rev_id -> revision
		"579375677": {
			"comment": "", 
			"sha1": "8f7241544ea733a9406e7fdfde50b7ec7fb76520", 
			"timestamp": 1383092340, //Unix timetamp of revision
			"revert": null, //Would be non-null if this revision was reverted
			"page": {"namespace": 0, "id": 17891865, "title": "Focus (novel)"}, //Page info
			"diff": {"diff": null, "bytes": 3921}, //diff info is limited for my data source, so I only have the number of bytes that are in the revision
			"id": 579375677 //rev_id
		},
	}
}, 
"talk": { //Here's where you can get warnings and other negative messages. 
	"threads": [
		{"trace": {"modifications": {}, "name": "welcome message"}, "title": "Welcome!"}, 
		{"trace": null, "title": "November 2013"}, 
		{"trace": {"modifications": {}, "name": "general warning"}, "title": "Wikipedia conflict of interest policy"}
	], 
	"last_id": 579830134 //Would be zero if no talk page activity
}
}