<commit_before>package clients

import (
	"fmt"

	bitcoin "github.com/btcsuite/btcrpcclient"
)

var bitcoinConnConfig = bitcoin.ConnConfig{
	Host:         "localhost:20001",
	User:         "cryptodev",
	Pass:         "<PASSWORD>",
	DisableTLS:   true,
	HTTPPostMode: true,
}

func NewBitcoinClient() *bitcoin.Client {
	client, err := bitcoin.New(&bitcoinConnConfig, nil)
	if err != nil {
		panic(fmt.Sprintf("[Bitcoin module] An error has ocurred: %s", err))
	}
	return client
}<commit_msg>Add function to get bitcoin client with Litecoin port<commit_after>package clients

import (
	"fmt"

	bitcoin "github.com/btcsuite/btcrpcclient"
)

var bitcoinConnConfig = bitcoin.ConnConfig{
	Host:         "localhost:20001",
	User:         "cryptodev",
	Pass:         "<PASSWORD>",
	DisableTLS:   true,
	HTTPPostMode: true,
}

func NewBitcoinClient() *bitcoin.Client {
	client, err := bitcoin.New(&bitcoinConnConfig, nil)
	if err != nil {
		panic(fmt.Sprintf("[Bitcoin module] An error has ocurred: %s", err))
	}
	return client
}

// NewLitecoinClient - Litecoin is compatible with Bitcoin's API
func NewLitecoinClient() *bitcoin.Client {
	bitcoinConnConfig.Host = "localhost:21001"
	client, err := bitcoin.New(&bitcoinConnConfig, nil)
	if err != nil {
		panic(fmt.Sprintf("[Litecoin module] An error has ocurred: %s", err))
	}
	return client
}
{'fraction_non_alphanumeric': 0.12659176029962546, 'fraction_numerical': 0.011235955056179775, 'mean_word_length': 4.178294573643411, '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': '4848284', 'n_tokens_mistral': 478, 'n_tokens_neox': 463, 'n_words': 115}