<commit_before>from pigeon import app
from copy import deepcopy
import re
import requests
from flask import request
import json

JIRA_PROJECTS = app.config['JIRA_PROJECTS']
JIRA_URL = app.config['JIRA_URL']
USER = app.config['JIRA_USER']
PASS = app.config['JIRA_PASS']

ISSUE_COMMENT_URL = JIRA_URL + "/rest/api/2/issue/{issueIdOrKey}/comment"

COMMENT_TEMPLATE = """{author_name} just referenced this issue in a commit.

{message}

{url}
"""

comment_json = {
    "body": None,
}


@app.route('/push', methods=["POST"])
def new_push():
    data = json.loads(request.data)

    for commit in data.get('commits', []):
        issues = get_message_issues(JIRA_PROJECTS, commit.get('message', ""))
        post_comment(data, commit, issues)

    return ""


def build_comment(data, commit):<commit_msg>remove 'just' from comment message<commit_after>from pigeon import app
from copy import deepcopy
import re
import requests
from flask import request
import json

JIRA_PROJECTS = app.config['JIRA_PROJECTS']
JIRA_URL = app.config['JIRA_URL']
USER = app.config['JIRA_USER']
PASS = app.config['JIRA_PASS']

ISSUE_COMMENT_URL = JIRA_URL + "/rest/api/2/issue/{issueIdOrKey}/comment"

COMMENT_TEMPLATE = """{author_name} referenced this issue in a commit.

{message}

{url}
"""

comment_json = {
    "body": None,
}


@app.route('/push', methods=["POST"])
def new_push():
    data = json.loads(request.data)

    for commit in data.get('commits', []):
        issues = get_message_issues(JIRA_PROJECTS, commit.get('message', ""))
        post_comment(data, commit, issues)

    return ""


def build_comment(data, commit):
{'fraction_non_alphanumeric': 0.14002478314745972, 'fraction_numerical': 0.0012391573729863693, 'mean_word_length': 4.726950354609929, 'pattern_counts': {'":': 2, '<': 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': '2681537', 'n_tokens_mistral': 582, 'n_tokens_neox': 567, 'n_words': 128}