<commit_before>package machine

import (
	"fmt"
	"github.com/Sirupsen/logrus"
	"os"
	"time"
)

type machinesData struct {
	Runner   string
	Acquired int
	Creating int
	Idle     int
	Used     int
	Removing int
}

func (d *machinesData) Available() int {
	return d.Acquired + d.Creating + d.Idle
}

func (d *machinesData) Total() int {
	return d.Acquired + d.Creating + d.Idle + d.Used
}

func (d *machinesData) Add(state machineState) {
	switch state {
	case machineStateIdle:
		d.Idle++

	case machineStateCreating:
		d.Creating++<commit_msg>Account machine removal in limit of machines<commit_after>package machine

import (
	"fmt"
	"github.com/Sirupsen/logrus"
	"os"
	"time"
)

type machinesData struct {
	Runner   string
	Acquired int
	Creating int
	Idle     int
	Used     int
	Removing int
}

func (d *machinesData) Available() int {
	return d.Acquired + d.Creating + d.Idle
}

func (d *machinesData) Total() int {
	return d.Acquired + d.Creating + d.Idle + d.Used + d.Removing
}

func (d *machinesData) Add(state machineState) {
	switch state {
	case machineStateIdle:
		d.Idle++

	case machineStateCreating:
		d.Creating++
{'fraction_non_alphanumeric': 0.10638297872340426, 'fraction_numerical': 0.0, 'mean_word_length': 3.7041666666666666, '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': '905805', 'n_tokens_mistral': 444, 'n_tokens_neox': 415, 'n_words': 114}