<commit_before>package product

import (
	"log"
	"net/rpc"

	"github.com/codegangsta/cli"
	"github.com/hashicorp/go-plugin"
)

type Meta struct {
	Name       string
	Properties map[string]interface{}
}

// ProductDeployer is the interface that we will expose for cloud config
// plugins
type ProductDeployer interface {
	GetMeta() Meta
	GetFlags() []cli.Flag
	GetProduct(args []string, cloudConfig []byte) []byte
}

// ProductRPC - Here is an implementation that talks over RPC
type ProductRPC struct{ client *rpc.Client }

func (s *ProductRPC) GetMeta() Meta {
	var resp Meta
	err := s.client.Call("Plugin.GetMeta", new(interface{}), &resp)

	if err != nil {
		panic(err)
	}
	return resp
}

type RPCArgs struct {
	Arg1 []string<commit_msg>[#120196347] fixing incorrect godoc comment<commit_after>package product

import (
	"log"
	"net/rpc"

	"github.com/codegangsta/cli"
	"github.com/hashicorp/go-plugin"
)

type Meta struct {
	Name       string
	Properties map[string]interface{}
}

// ProductDeployer is the interface that we will expose for product
// plugins
type ProductDeployer interface {
	GetMeta() Meta
	GetFlags() []cli.Flag
	GetProduct(args []string, cloudConfig []byte) []byte
}

// ProductRPC - Here is an implementation that talks over RPC
type ProductRPC struct{ client *rpc.Client }

func (s *ProductRPC) GetMeta() Meta {
	var resp Meta
	err := s.client.Call("Plugin.GetMeta", new(interface{}), &resp)

	if err != nil {
		panic(err)
	}
	return resp
}

type RPCArgs struct {
	Arg1 []string
{'fraction_non_alphanumeric': 0.11893687707641196, 'fraction_numerical': 0.007308970099667774, 'mean_word_length': 4.1931034482758625, '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': '4595351', 'n_tokens_mistral': 510, 'n_tokens_neox': 497, 'n_words': 152}