<commit_before>package converge

import (
	"bufio"
	"errors"
	log "github.com/Sirupsen/logrus"
	"github.com/codegangsta/cli"
	"github.com/flexiant/concerto/utils"
	"io"
	"os/exec"
	"path"
	"regexp"
	"runtime"
)

func CmbConverge(c *cli.Context) {

	var firstBootJsonChef string

	if runtime.GOOS == "windows" {
		firstBootJsonChef = path.Join("/etc/chef", "first-boot.json")
	} else {
		firstBootJsonChef = path.Join("/etc/chef", "first-boot.json")
	}

	if utils.Exists(firstBootJsonChef) {
		garbageOutput, _ := regexp.Compile("[\\[][^\\[|^\\]]*[\\]]\\s[A-Z]*:\\s")
		output, _ := regexp.Compile("Chef Run")
		cmd := exec.Command("chef-client", "-j", firstBootJsonChef)
		stdout, err := cmd.StdoutPipe()
		if err != nil {
			log.Errorf("%s", err.Error())
		}
		ls := bufio.NewReader(stdout)
		err = cmd.Start()<commit_msg>Fix path issue with Chef in Windows<commit_after>package converge

import (
	"bufio"
	"errors"
	log "github.com/Sirupsen/logrus"
	"github.com/codegangsta/cli"
	"github.com/flexiant/concerto/utils"
	"io"
	"os/exec"
	"path"
	"regexp"
	"runtime"
)

func CmbConverge(c *cli.Context) {

	var firstBootJsonChef string

	if runtime.GOOS == "windows" {
		firstBootJsonChef = path.Join("c:\\chef", "first-boot.json")
	} else {
		firstBootJsonChef = path.Join("/etc/chef", "first-boot.json")
	}

	if utils.Exists(firstBootJsonChef) {
		garbageOutput, _ := regexp.Compile("[\\[][^\\[|^\\]]*[\\]]\\s[A-Z]*:\\s")
		output, _ := regexp.Compile("Chef Run")
		cmd := exec.Command("chef-client", "-j", firstBootJsonChef)
		stdout, err := cmd.StdoutPipe()
		if err != nil {
			log.Errorf("%s", err.Error())
		}
		ls := bufio.NewReader(stdout)
		err = cmd.Start()
{'fraction_non_alphanumeric': 0.20335932813437313, 'fraction_numerical': 0.0, 'mean_word_length': 3.97910447761194, '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': '193103', 'n_tokens_mistral': 715, 'n_tokens_neox': 675, 'n_words': 111}