<commit_before>package gotumblr_test

import (
		"fmt"
		"github.com/MariaTerzieva/gotumblr"
)

func ExampleInfo(){
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	info := client.Info()
	fmt.Println(info["response"].(map[string]interface{})["blog"].(map[string]interface{})["name"])
	//Output:
	//the name of the user's blog here(e.g. blogname in blogname.tumblr.com) 
}

func ExampleLikes(){
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	likes := client.Likes(map[string]string{}{})
	fmt.Println(likes["response"].(map[string]interface{})["liked_count"])
	//Output:
	//the count of the posts the user has liked here
}

func ExampleFollowing(){
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	following := client.Following(map[string]string{}{})
	fmt.Println(following["response"].(map[string]interface{})["total_blogs"])
	//Output:
	//the number of the blogs the user is following here
}

func ExampleDashboard(){
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	dashboard := client.Dashboard(map[string]string{"limit": "1"})
	fmt.Println(dashboard["response"].(map[string]interface{})["blog"].(map[string]interface{})["state"])
	//Output:
	//published	
}

func ExampleTagged(){
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	tagged := client.Tagged("golang", map[string]string{"limit": "1"})
	fmt.Println(tagged["response"].(map[string]interface{})["blog"].(map[string]interface{})["state"])
	//Output:
	//published
}

func ExamplePosts(){
	blogname := "example.tumblr.com"
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	posts := client.Posts(blogname, "text", map[string]string{"limit": "1"})
	fmt.Println(posts["response"].(map[string]interface{})["blog"].(map[string]interface{})["total_posts"])
	//Output:
	//the number of all blog posts here; don't forget to change blogname according to your credentials!
}

func ExampleBlogInfo(){
	blogname := "example.tumblr.com"
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	blogInfo := client.BlogInfo(blogname)
	fmt.Println(blogInfo["response"].(map[string]interface{})["blog"].(map[string]interface{})["title"])
	//Output:
	//the title of the blog here; don't forget to change blogname according to your credentials!
}

func ExampleFollowers(){
	blogname := "example.tumblr.com"
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	followers := client.Followers(blogname, map[string]string{}{})
	fmt.Println(followers["response"].(map[string]interface{})["total_users"])
	//Output:
	//the number of all followers of the blog; don't forget to change blogname according to your credentials!
}

func ExampleBlogLikes(){
	blogname := "example.tumblr.com"
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	likes := client.BlogLikes(blogname, map[string]string{}{})
	fmt.Println(likes["response"].(map[string]interface{})["liked_count"])
	//Output:
	//the number of all blog likes here; don't forget to change blogname according to your credentials!
}

func ExampleQueue(){
	blogname := "example.tumblr.com"
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	queue := client.Queue(blogname, map[string]string{}{})
	fmt.Println(queue["response"].(map[string]interface{})["posts"])
	//Output:
	//an interface of all posts in the queue;  don't forget to change blogname according to your credentials!
}

func ExampleDrafts(){
	blogname := "example.tumblr.com"
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	drafts := client.Drafts(blogname, map[string]string{}{})
	fmt.Println(drafts["response"].(map[string]interface{})["posts"])
	//Output:
	//an interface of all posts in the drafts section;  don't forget to change blogname according to your credentials!
}

func ExampleSubmission(){
	blogname := "example.tumblr.com"
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	submission := client.Submission(blogname, map[string]string{}{})
	fmt.Println(submission["response"].(map[string]interface{})["posts"])
	//Output:
	//an interface of all posts in the submissions section;  don't forget to change blogname according to your credentials!<commit_msg>Fix misstakes<commit_after>package gotumblr_test

import (
	"fmt"
	"github.com/MariaTerzieva/gotumblr"
)

func ExampleInfo() {
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	info := client.Info()
	fmt.Println(info["response"].(map[string]interface{})["blog"].(map[string]interface{})["name"])
	//Output:
	//the name of the user's blog here(e.g. blogname in blogname.tumblr.com)
}

func ExampleLikes() {
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	likes := client.Likes(map[string]string{})
	fmt.Println(likes["response"].(map[string]interface{})["liked_count"])
	//Output:
	//the count of the posts the user has liked here
}

func ExampleFollowing() {
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	following := client.Following(map[string]string{})
	fmt.Println(following["response"].(map[string]interface{})["total_blogs"])
	//Output:
	//the number of the blogs the user is following here
}

func ExampleDashboard() {
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	dashboard := client.Dashboard(map[string]string{"limit": "1"})
	fmt.Println(dashboard["response"].(map[string]interface{})["blog"].(map[string]interface{})["state"])
	//Output:
	//published
}

func ExampleTagged() {
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	tagged := client.Tagged("golang", map[string]string{"limit": "1"})
	fmt.Println(tagged["response"].(map[string]interface{})["blog"].(map[string]interface{})["state"])
	//Output:
	//published
}

func ExamplePosts() {
	blogname := "example.tumblr.com"
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	posts := client.Posts(blogname, "text", map[string]string{"limit": "1"})
	fmt.Println(posts["response"].(map[string]interface{})["blog"].(map[string]interface{})["total_posts"])
	//Output:
	//the number of all blog posts here; don't forget to change blogname according to your credentials!
}

func ExampleBlogInfo() {
	blogname := "example.tumblr.com"
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	blogInfo := client.BlogInfo(blogname)
	fmt.Println(blogInfo["response"].(map[string]interface{})["blog"].(map[string]interface{})["title"])
	//Output:
	//the title of the blog here; don't forget to change blogname according to your credentials!
}

func ExampleFollowers() {
	blogname := "example.tumblr.com"
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	followers := client.Followers(blogname, map[string]string{})
	fmt.Println(followers["response"].(map[string]interface{})["total_users"])
	//Output:
	//the number of all followers of the blog; don't forget to change blogname according to your credentials!
}

func ExampleBlogLikes() {
	blogname := "example.tumblr.com"
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	likes := client.BlogLikes(blogname, map[string]string{})
	fmt.Println(likes["response"].(map[string]interface{})["liked_count"])
	//Output:
	//the number of all blog likes here; don't forget to change blogname according to your credentials!
}

func ExampleQueue() {
	blogname := "example.tumblr.com"
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	queue := client.Queue(blogname, map[string]string{})
	fmt.Println(queue["response"].(map[string]interface{})["posts"])
	//Output:
	//an interface of all posts in the queue;  don't forget to change blogname according to your credentials!
}

func ExampleDrafts() {
	blogname := "example.tumblr.com"
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	drafts := client.Drafts(blogname, map[string]string{})
	fmt.Println(drafts["response"].(map[string]interface{})["posts"])
	//Output:
	//an interface of all posts in the drafts section;  don't forget to change blogname according to your credentials!
}

func ExampleSubmission() {
	blogname := "example.tumblr.com"
	client := gotumblr.NewtumblrRestClient("consumer_key", "consumer_secret", "token", "token_secret", "callbackurl", "http://api.tumblr.com")
	submission := client.Submission(blogname, map[string]string{})
	fmt.Println(submission["response"].(map[string]interface{})["posts"])
	//Output:
	//an interface of all posts in the submissions section;  don't forget to change blogname according to your credentials!
}
{'fraction_non_alphanumeric': 0.18020404159309397, 'fraction_numerical': 0.0005885815185403178, 'mean_word_length': 6.933852140077821, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3897629', 'n_tokens_mistral': 3491, 'n_tokens_neox': 3228, 'n_words': 670}