<commit_before>package lib

import (
	"encoding/json"
	"log"
	"time"

	"github.com/jh-bate/fantail-bot/Godeps/_workspace/src/github.com/tucnak/telebot"
)

type Food struct {
	Details        *Details
	SelectedAnswer string
	lang           struct {
		Comment   string   `json:"comment"`
		Question  string   `json:"question"`
		Meal      string   `json:"mean"`
		Snack     string   `json:"snack"`
		Beverage  string   `json:"beverage"`
		PlaySnap  []string `json:"playSnap"`
		SnapYesNo yesNo    `json:"snapYesNo"`
		Snapped   yesNo    `json:"snapped"`
		Thank     string   `json:"thank"`
	}
	Parts
	snapResults struct {
		BgStart, BgFinish string
	}
}

//what are you eating
//lets play a game of snap
//bg before = bg after = snap

func (this *Food) loadLanguage() {

	encoded := `{
        "comment": "OK lets save that blood sugar for you.",
        "question": "So what are you about to have  ... ",
        "meal": "A Meal",
        "snack": "A Snack",
        "beverage": "A Drink",
        "playSnap": [ "Would you like to play a game of snap?, "If you BG before the food equals BG after then its SNAP!"],
        "snapYesNo" : {
        	"yes":"Lets do it!",
        	"no": "No thanks"
        },
        "snapped" : {
        	"yes":"SNAP!!",
        	"no": "Next time!"
        },
        "thank":"You rock! Just had to say that before you go :)"
    }`
<commit_msg>fix lang<commit_after>package lib

import (
	"encoding/json"
	"log"
	"time"

	"github.com/jh-bate/fantail-bot/Godeps/_workspace/src/github.com/tucnak/telebot"
)

type Food struct {
	Details        *Details
	SelectedAnswer string
	lang           struct {
		Comment   string   `json:"comment"`
		Question  string   `json:"question"`
		Meal      string   `json:"mean"`
		Snack     string   `json:"snack"`
		Beverage  string   `json:"beverage"`
		PlaySnap  []string `json:"playSnap"`
		SnapYesNo yesNo    `json:"snapYesNo"`
		Snapped   yesNo    `json:"snapped"`
		Thank     string   `json:"thank"`
	}
	Parts
	snapResults struct {
		BgStart, BgFinish string
	}
}

//what are you eating
//lets play a game of snap
//bg before = bg after = snap

func (this *Food) loadLanguage() {

	encoded := `{
        "comment": "OK lets save that blood sugar for you.",
        "question": "So what are you about to have  ... ",
        "meal": "A Meal",
        "snack": "A Snack",
        "beverage": "A Drink",
        "playSnap": [ "Would you like to play a game of snap?", "If you BG before the food equals BG after then its SNAP!"],
        "snapYesNo" : {
        	"yes":"Lets do it!",
        	"no": "No thanks"
        },
        "snapped" : {
        	"yes":"SNAP!!",
        	"no": "Next time!"
        },
        "thank":"You rock! Just had to say that before you go :)"
    }`

{'fraction_non_alphanumeric': 0.14093226511289147, 'fraction_numerical': 0.0, 'mean_word_length': 2.358190709046455, 'pattern_counts': {'":': 22, '<': 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': '5722057', 'n_tokens_mistral': 977, 'n_tokens_neox': 931, 'n_words': 279}