<commit_before>package resources

// PricingInfo structure for storing the information from the billing API
type PricingInfo struct {
	ComponentUnit   string
	HourlyUnitPrice int64
	CurrencyType    string
	CurrencyUnit    string
}

// CoreInfo structure for CPU core details
type CoreInfo struct {
	Type        string
	Preemptible bool
	Number      int
	Pricing     PricingInfo
}

// MemoryInfo structure for memory details
type MemoryInfo struct {
	Type        string
	Preemptible bool
	Amount      float64
	UnitType    string
	Pricing     PricingInfo
}

// ComputeInstance structure for compute instance resource type
type ComputeInstance struct {
	ID          string
	Name        string
	MachineType string
	Region      string
	Memory      *MemoryInfo
	Cores       *CoreInfo
}

// ExtractResource method that extracts the resource details from JSON file
// and fills the necessary fields.
func (instance *ComputeInstance) ExtractResource(jsonObject interface{}) {
}

// CompletePricingInfo method that fills the pricing information fields.
func (instance *ComputeInstance) CompletePricingInfo() {
}

// PrintPricingInfo method that prints the cost estimation in a readable format.
func (instance *ComputeInstance) PrintPricingInfo() {
}<commit_msg>Update compute-instance.go<commit_after>package resources

// PricingInfo stores the information from the billing API.
type PricingInfo struct {
	ComponentUnit   string
	HourlyUnitPrice int64
	CurrencyType    string
	CurrencyUnit    string
}

// CoreInfo stores CPU core details.
type CoreInfo struct {
	Type        string
	Preemptible bool
	Number      int
	Pricing     PricingInfo
}

// MemoryInfo stores memory details.
type MemoryInfo struct {
	Type        string
	Preemptible bool
	Amount      float64
	UnitType    string
	Pricing     PricingInfo
}

// ComputeInstance stores information about the compute instance resource type.
type ComputeInstance struct {
	ID          string
	Name        string
	MachineType string
	Region      string
	Memory      *MemoryInfo
	Cores       *CoreInfo
}

// ExtractResource extracts the resource details from the JSON object
// and fills the necessary fields.
func (instance *ComputeInstance) ExtractResource(jsonResource interface{}) {
}

// CompletePricingInfo fills the pricing information fields.
func (instance *ComputeInstance) CompletePricingInfo() {
}

// PrintPricingInfo prints the cost estimation in a readable format.
func (instance *ComputeInstance) PrintPricingInfo() {
}
{'fraction_non_alphanumeric': 0.046830843762616065, 'fraction_numerical': 0.003229713362939039, 'mean_word_length': 3.6145251396648046, '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': '218077', 'n_tokens_mistral': 666, 'n_tokens_neox': 651, 'n_words': 248}