<commit_before>package main

import (
	"context"
	"fmt"
	"os"

	log "github.com/sirupsen/logrus"
	"github.com/wzhliang/xing"
	"github.com/wzhliang/xing/examples/hello"
)

func _assert(err error) {
	if err != nil {
		log.Errorf("Client: %v", err)
	}
}

func main() {
	url := "amqp://guest:guest@localhost:5672/"
	producer, err := xing.NewClient("orchestration.controller", url,
		xing.SetIdentifier(&xing.NoneIdentifier{}),
		xing.SetSerializer(&xing.JSONSerializer{}),
	)
	name := fmt.Sprintf("host.agent.%s", os.Args[1])
	cli := hello.NewGreeterClient(name, producer)
	ret, err := cli.Hello(context.Background(), &hello.HelloRequest{
		Name: "鸠摩智",
	})
	_assert(err)
	if err != nil {
		fmt.Printf("returned: %v\n", ret)
	}
	_, err = cli.Nihao(context.Background(), &hello.HelloRequest{
		Name: "王语嫣",
	})
	_assert(err)
	producer.Close()
}
<commit_msg>better example naming<commit_after>package main

import (
	"context"
	"fmt"
	"os"

	log "github.com/sirupsen/logrus"
	"github.com/wzhliang/xing"
	"github.com/wzhliang/xing/examples/hello"
)

func _assert(err error) {
	if err != nil {
		log.Errorf("Client: %v", err)
	}
}

func main() {
	url := "amqp://guest:guest@localhost:5672/"
	producer, err := xing.NewClient("orchestration.controller", url,
		xing.SetIdentifier(&xing.NoneIdentifier{}),
		xing.SetSerializer(&xing.JSONSerializer{}),
	)
	target := fmt.Sprintf("host.agent.%s", os.Args[1])
	cli := hello.NewGreeterClient(target, producer)
	ret, err := cli.Hello(context.Background(), &hello.HelloRequest{
		Name: "鸠摩智",
	})
	_assert(err)
	if err != nil {
		fmt.Printf("returned: %v\n", ret)
	}
	_, err = cli.Nihao(context.Background(), &hello.HelloRequest{
		Name: "王语嫣",
	})
	_assert(err)
	producer.Close()
}

{'fraction_non_alphanumeric': 0.18764568764568765, 'fraction_numerical': 0.005827505827505828, 'mean_word_length': 4.666666666666667, 'pattern_counts': {'":': 0, '<': 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': '7616738', 'n_tokens_mistral': 733, 'n_tokens_neox': 716, 'n_words': 112}