<commit_before>package colonycore

import (
	"github.com/eaciit/orm/v1"
)

type DataGrabber struct {
	orm.ModelBase
	ID string `json:"_id",bson:"_id"`

	DataSourceOrigin      string
	DataSourceDestination string

	IsFromWizard          bool
	ConnectionOrigin      string
	ConnectionDestination string
	TableOrigin           string
	TableDestination      string

	UseInterval         bool
	IntervalType        string
	GrabInterval        int32
	TimeoutInterval     int32
	Maps                []*Map
	RunAt               []string
	PreTransferCommand  string
	PostTransferCommand string
}

type Map struct {
	Destination     string
	DestinationType string
	Source          string
	SourceType      string
}

func (c *DataGrabber) TableName() string {
	return "datagrabbers"
}

func (c *DataGrabber) RecordID() interface{} {
	return c.ID
}

type DataGrabberWizardPayloadTransformation struct {
	TableSource      string
	TableDestination string
}

type DataGrabberWizardPayload struct {
	ConnectionSource      string
	ConnectionDestination string
	Transformations       []*DataGrabberWizardPayloadTransformation
}<commit_msg>no message<commit_after>package colonycore

import (
	"github.com/eaciit/orm/v1"
)

type DataGrabber struct {
	orm.ModelBase
	ID string `json:"_id",bson:"_id"`

	DataSourceOrigin      string
	DataSourceDestination string

	IsFromWizard          bool
	ConnectionOrigin      string
	ConnectionDestination string
	TableOrigin           string
	TableDestination      string

	UseInterval         bool
	IntervalType        string
	GrabInterval        int32
	TimeoutInterval     int32
	Maps                []*Map
	RunAt               []string
	PreTransferCommand  string
	PostTransferCommand string
}

type Map struct {
	Destination     string
	DestinationType string
	Source          string
	SourceType      string
}

func (c *DataGrabber) TableName() string {
	return "datagrabbers"
}

func (c *DataGrabber) RecordID() interface{} {
	return c.ID
}

type DataGrabberWizardPayloadTransformation struct {
	TableSource      string
	TableDestination string
}

type DataGrabberWizardPayload struct {
	ConnectionSource      string
	ConnectionDestination string
	Prefix                string
	Transformations       []*DataGrabberWizardPayloadTransformation
}
{'fraction_non_alphanumeric': 0.04944812362030905, 'fraction_numerical': 0.004415011037527594, 'mean_word_length': 3.1350364963503647, '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': '6769193', 'n_tokens_mistral': 644, 'n_tokens_neox': 643, 'n_words': 167}