<commit_before>package main

import (
	"github.com/docker/docker/api/types/mount"
	"github.com/docker/docker/api/types/swarm"
)

const (
	infraPrivateNetwork = "amp-infra"
	infraPublicNetwork  = "amp-public"
)

const (
	ampVersion           = "latest"
	uiVersion            = "0.2.0"
	influxDBVersion      = "1.1.0"
	kapacitorVersion     = "1.1.0"
	telegrafVersion      = "1.1.0-rc1"
	grafanaVersion       = "1.0.1"
	elasticsearchVersion = "2.3.3"
	etcdVersion          = "3.1.0-rc.0-2"
	natsVersion          = "0.3.0"
	haproxyVersion       = "1.0.1"
	registryVersion      = "2.5.1"
	tickConfigVersion    = "0.4.0"
)

func getAMPInfrastructureStack(m *ampManager) *ampStack {
	//init stack
	stack := ampStack{}
	stack.init()

	//add images
	stack.addImage("amp", "appcelerator/amp:"+ampVersion)
	stack.addImage("amp-ui", "appcelerator/amp-ui:"+uiVersion)
	stack.addImage("elasticsearch", "appcelerator/elasticsearch-amp:"+elasticsearchVersion)
	stack.addImage("grafana", "appcelerator/grafana-amp:"+grafanaVersion)
	stack.addImage("haproxy", "appcelerator/haproxy:"+haproxyVersion)
	stack.addImage("influxdb", "appcelerator/influxdb-amp:"+influxDBVersion)
	stack.addImage("kapacitor", "appcelerator/kapacitor-amp:"+kapacitorVersion)
	stack.addImage("telegraf", "appcelerator/telegraf:telegraf-"+telegrafVersion)
	stack.addImage("registry", "registry:"+registryVersion)
	stack.addImage("etcd", "appcelerator/etcd:"+etcdVersion)
	stack.addImage("pinger", "appcelerator/pinger:latest")
	stack.addImage("nats", "appcelerator/amp-nats-streaming:"+natsVersion)

	//add networks
	stack.networks = []string{infraPrivateNetwork, infraPublicNetwork}<commit_msg>bump influxdb and telegraf versions (#474)<commit_after>package main

import (
	"github.com/docker/docker/api/types/mount"
	"github.com/docker/docker/api/types/swarm"
)

const (
	infraPrivateNetwork = "amp-infra"
	infraPublicNetwork  = "amp-public"
)

const (
	ampVersion           = "latest"
	uiVersion            = "0.2.0"
	influxDBVersion      = "1.1.2"
	kapacitorVersion     = "1.1.0"
	telegrafVersion      = "1.1.1"
	grafanaVersion       = "1.0.1"
	elasticsearchVersion = "2.3.3"
	etcdVersion          = "3.1.0-rc.0-2"
	natsVersion          = "0.3.0"
	haproxyVersion       = "1.0.1"
	registryVersion      = "2.5.1"
	tickConfigVersion    = "0.4.0"
)

func getAMPInfrastructureStack(m *ampManager) *ampStack {
	//init stack
	stack := ampStack{}
	stack.init()

	//add images
	stack.addImage("amp", "appcelerator/amp:"+ampVersion)
	stack.addImage("amp-ui", "appcelerator/amp-ui:"+uiVersion)
	stack.addImage("elasticsearch", "appcelerator/elasticsearch-amp:"+elasticsearchVersion)
	stack.addImage("grafana", "appcelerator/grafana-amp:"+grafanaVersion)
	stack.addImage("haproxy", "appcelerator/haproxy:"+haproxyVersion)
	stack.addImage("influxdb", "appcelerator/influxdb-amp:"+influxDBVersion)
	stack.addImage("kapacitor", "appcelerator/kapacitor-amp:"+kapacitorVersion)
	stack.addImage("telegraf", "appcelerator/telegraf:telegraf-"+telegrafVersion)
	stack.addImage("registry", "registry:"+registryVersion)
	stack.addImage("etcd", "appcelerator/etcd:"+etcdVersion)
	stack.addImage("pinger", "appcelerator/pinger:latest")
	stack.addImage("nats", "appcelerator/amp-nats-streaming:"+natsVersion)

	//add networks
	stack.networks = []string{infraPrivateNetwork, infraPublicNetwork}
{'fraction_non_alphanumeric': 0.15629696423204087, 'fraction_numerical': 0.022242260294559665, 'mean_word_length': 4.669505962521295, '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': '2628182', 'n_tokens_mistral': 1299, 'n_tokens_neox': 1276, 'n_words': 154}