<commit_before>package eventsender

import (
	"errors"
	mongomodels "koding/db/models"
	"koding/db/mongodb/modelhelper"
	"socialapi/config"
	"socialapi/models"
	"strconv"

	"gopkg.in/mgo.v2"

	"github.com/koding/cache"
	"github.com/koding/eventexporter"
	"github.com/koding/logging"
	"github.com/streadway/amqp"
)

const (
	QueueLength     = 1
	SendMessageBody = "Welcome! This is your first message"
	StartCollBody   = "Keep partying with other developers."
	CreateWSBody    = "First rule of creating workspace is..."

	cacheSize = 10000
)

var (
	ErrUserNotFound = errors.New("user not found")
	ErrDisabled     = errors.New("feature disabled")

	sendMessageEvent = "sendmessage"
	startCollEvent   = "startcollaboration"
	createWSEvent    = "createworkspace"
)

type Controller struct {
	log          logging.Logger
	exporter     eventexporter.Exporter
	userCache    cache.Cache
	accountCache cache.Cache
	env          string
	isDisabled   bool
}

type WorkspaceData struct {
	AccountId int64
	GroupName string
}
<commit_msg>socialapi: add proper string marshalling tags<commit_after>package eventsender

import (
	"errors"
	mongomodels "koding/db/models"
	"koding/db/mongodb/modelhelper"
	"socialapi/config"
	"socialapi/models"
	"strconv"

	"gopkg.in/mgo.v2"

	"github.com/koding/cache"
	"github.com/koding/eventexporter"
	"github.com/koding/logging"
	"github.com/streadway/amqp"
)

const (
	QueueLength     = 1
	SendMessageBody = "Welcome! This is your first message"
	StartCollBody   = "Keep partying with other developers."
	CreateWSBody    = "First rule of creating workspace is..."

	cacheSize = 10000
)

var (
	ErrUserNotFound = errors.New("user not found")
	ErrDisabled     = errors.New("feature disabled")

	sendMessageEvent = "sendmessage"
	startCollEvent   = "startcollaboration"
	createWSEvent    = "createworkspace"
)

type Controller struct {
	log          logging.Logger
	exporter     eventexporter.Exporter
	userCache    cache.Cache
	accountCache cache.Cache
	env          string
	isDisabled   bool
}

type WorkspaceData struct {
	AccountId int64 `json:"accountId,string"`
	GroupName string
}

{'fraction_non_alphanumeric': 0.0962085308056872, 'fraction_numerical': 0.008530805687203791, 'mean_word_length': 3.9207459207459205, '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': '3108355', 'n_tokens_mistral': 734, 'n_tokens_neox': 704, 'n_words': 158}