<commit_before>package solr_test

import (
	"strings"
	"time"

	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
	"github.com/sendgrid/go-solr"
)

var _ = Describe("Solr Client", func() {
	var solrClient solr.SolrZK
	var solrHttp solr.SolrHTTP
	var solrHttpRetrier solr.SolrHTTP
	var locator solr.SolrLocator
	solrClient = solr.NewSolrZK("zk:2181", "solr", "solrtest")
	locator = solrClient.GetSolrLocator()

	var err error
	err = solrClient.Listen()
	BeforeEach(func() {
		Expect(err).To(BeNil())
		https, _ := solrClient.UseHTTPS()
		solrHttp, err = solr.NewSolrHTTP(https, "solrtest", solr.User("solr"), solr.Password("<PASSWORD>"), solr.MinRF(2))
		Expect(err).To(BeNil())
		solrHttpRetrier = solr.NewSolrHttpRetrier(solrHttp, 5, 100*time.Millisecond)
	})
	It("construct", func() {
		solrClient := solr.NewSolrZK("test", "solr", "solrtest")
		Expect(solrClient).To(Not(BeNil()))
		err := solrClient.Listen()
		Expect(err).To(Not(BeNil()))<commit_msg>combine declaration with initialization<commit_after>package solr_test

import (
	"strings"
	"time"

	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
	"github.com/sendgrid/go-solr"
)

var _ = Describe("Solr Client", func() {
	var solrClient solr.SolrZK
	var solrHttp solr.SolrHTTP
	var solrHttpRetrier solr.SolrHTTP
	var locator solr.SolrLocator
	solrClient = solr.NewSolrZK("zk:2181", "solr", "solrtest")
	locator = solrClient.GetSolrLocator()

	var err error = solrClient.Listen()
	BeforeEach(func() {
		Expect(err).To(BeNil())
		https, _ := solrClient.UseHTTPS()
		solrHttp, err = solr.NewSolrHTTP(https, "solrtest", solr.User("solr"), solr.Password("<PASSWORD>"), solr.MinRF(2))
		Expect(err).To(BeNil())
		solrHttpRetrier = solr.NewSolrHttpRetrier(solrHttp, 5, 100*time.Millisecond)
	})
	It("construct", func() {
		solrClient := solr.NewSolrZK("test", "solr", "solrtest")
		Expect(solrClient).To(Not(BeNil()))
		err := solrClient.Listen()
		Expect(err).To(Not(BeNil()))
{'fraction_non_alphanumeric': 0.16795466254507985, 'fraction_numerical': 0.00927357032457496, 'mean_word_length': 5.473333333333334, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4957693', 'n_tokens_mistral': 848, 'n_tokens_neox': 795, 'n_words': 123}