<commit_before>// +build ignore

package gobilla_test

import (
	"fmt"

	"github.com/usabilla/gobilla"
)

func ExampleButtons() {
	gb := gobilla.New("key", "secret")

	b := gb.Buttons()
	buttons, err := b.Get(map[string]string{"limit": "2"})
	if err != nil {
		fmt.Errorf("%s", err)
	}
	for _, button := range buttons.Items {
		feedback, err := b.Feedback().Get(button.ID, nil)
		if err != nil {
			fmt.Errorf("%s", err)
		}
		fmt.Printf("Feedback for button with id: %s\n%s\n", button.ID, feedback.Items)
	}
	// Output:
	//
}

func ExampleCampaigns() {
	gb := gobilla.New("key", "secret")

	c := gb.Campaigns()<commit_msg>Ignore build is not really needed.<commit_after>package gobilla_test

import (
	"fmt"

	"github.com/usabilla/gobilla"
)

func ExampleButtons() {
	gb := gobilla.New("key", "secret")

	b := gb.Buttons()
	buttons, err := b.Get(map[string]string{"limit": "2"})
	if err != nil {
		fmt.Errorf("%s", err)
	}
	for _, button := range buttons.Items {
		feedback, err := b.Feedback().Get(button.ID, nil)
		if err != nil {
			fmt.Errorf("%s", err)
		}
		fmt.Printf("Feedback for button with id: %s\n%s\n", button.ID, feedback.Items)
	}
	// Output:
	//
}

func ExampleCampaigns() {
	gb := gobilla.New("key", "secret")

	c := gb.Campaigns()
{'fraction_non_alphanumeric': 0.19855884707766214, 'fraction_numerical': 0.0016012810248198558, 'mean_word_length': 3.6816479400749063, 'pattern_counts': {'":': 2, '<': 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': '7412093', 'n_tokens_mistral': 510, 'n_tokens_neox': 491, 'n_words': 107}