<commit_before>package connectors

import (
	"bytes"
	"encoding/base64"
	"encoding/json"
	"fmt"
	"io/ioutil"
	"log"
	"net/http"
	"regexp"
	"strings"

	"github.com/projectjane/jane/models"
)

type Jira struct {
}

func (x Jira) Listen(commandMsgs chan<- models.Message, connector models.Connector) {
	return
}

func (x Jira) Command(message models.Message, publishMsgs chan<- models.Message, connector models.Connector) {
	if strings.HasPrefix(strings.ToLower(message.In.Text), strings.ToLower("jira create")) {
		createJiraIssue(message, publishMsgs, connector)
	} else {
		parseJiraIssue(message, publishMsgs, connector)
	}
}

func (x Jira) Publish(connector models.Connector, message models.Message, target string) {
	return
}

func (x Jira) Help(connector models.Connector) (help string) {
	help += "jira {key-number}\n"
	help += "jira create {issueType} {project key} {summary}\n"
	return help
}

type ticket struct {
	Key    string `json:"key"`
	Fields fields `json:"fields"`
}

type fields struct {
	Summary     string   `json:"summary"`
	Status      status   `json:"status"`
	Description string   `json:"description"`
	Priority    priority `json:"priority"`
	Assignee    assignee `json:"assignee"`
}

type status struct {
	Description string `json:"description"`
	Name        string `json:"name"`
}

type priority struct {
	Name string `json:"name"`
}

type assignee struct {
	DisplayName string `json:"displayName"`
}
<commit_msg>Removing the help for ticket mentioning because it doesn't make sense anymore<commit_after>package connectors

import (
	"bytes"
	"encoding/base64"
	"encoding/json"
	"fmt"
	"io/ioutil"
	"log"
	"net/http"
	"regexp"
	"strings"

	"github.com/projectjane/jane/models"
)

type Jira struct {
}

func (x Jira) Listen(commandMsgs chan<- models.Message, connector models.Connector) {
	return
}

func (x Jira) Command(message models.Message, publishMsgs chan<- models.Message, connector models.Connector) {
	if strings.HasPrefix(strings.ToLower(message.In.Text), strings.ToLower("jira create")) {
		createJiraIssue(message, publishMsgs, connector)
	} else {
		parseJiraIssue(message, publishMsgs, connector)
	}
}

func (x Jira) Publish(connector models.Connector, message models.Message, target string) {
	return
}

func (x Jira) Help(connector models.Connector) (help string) {
	help += "jira create {issueType} {project key} {summary}\n"
	return help
}

type ticket struct {
	Key    string `json:"key"`
	Fields fields `json:"fields"`
}

type fields struct {
	Summary     string   `json:"summary"`
	Status      status   `json:"status"`
	Description string   `json:"description"`
	Priority    priority `json:"priority"`
	Assignee    assignee `json:"assignee"`
}

type status struct {
	Description string `json:"description"`
	Name        string `json:"name"`
}

type priority struct {
	Name string `json:"name"`
}

type assignee struct {
	DisplayName string `json:"displayName"`
}

{'fraction_non_alphanumeric': 0.12684771399106223, 'fraction_numerical': 0.0013750429700928155, 'mean_word_length': 4.694716242661448, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6372598', 'n_tokens_mistral': 984, 'n_tokens_neox': 953, 'n_words': 254}