<commit_before>__author__ = 'kwhatcher'

from os import environ
import sys
import requests
import json

from flask import current_app

from postmark import PMMail

from flask.ext.pystmark import Pystmark, Message
from pystmark import ResponseError

from raygun4py import raygunprovider

raygun = raygunprovider.RaygunSender(environ.get('RAYGUN_APIKEY'))

pystmark = Pystmark(current_app)

def check_recaptcha (response):
    RECAP_SECRET = environ.get('RECAP_SECRET')


    url = 'https://www.google.com/recaptcha/api/siteverify'
    payload = {'secret': RECAP_SECRET, 'response': response}
    r = requests.post(url, data=payload)
    rdata = json.loads(r.text)
    return rdata


def send_me_email(message):
    m = Message(to='<EMAIL>', text='Welcome')
    resp = pystmark.send(m)<commit_msg>Email send<commit_after>__author__ = 'kwhatcher'

from os import environ
import sys
import requests
import json

from flask import current_app

from postmark import PMMail

from flask.ext.pystmark import Pystmark, Message
from pystmark import ResponseError

from raygun4py import raygunprovider

raygun = raygunprovider.RaygunSender(environ.get('RAYGUN_APIKEY'))

#pystmark = Pystmark(current_app)

def check_recaptcha (response):
    RECAP_SECRET = environ.get('RECAP_SECRET')


    url = 'https://www.google.com/recaptcha/api/siteverify'
    payload = {'secret': RECAP_SECRET, 'response': response}
    r = requests.post(url, data=payload)
    rdata = json.loads(r.text)
    return rdata


def send_me_email(message):
    #m = Message(to='<EMAIL>', text='Welcome')
    #resp = pystmark.send(m)
    send_item_to_raygun(message)
{'fraction_non_alphanumeric': 0.10289587184226741, 'fraction_numerical': 0.0012322858903265558, 'mean_word_length': 4.992619926199262, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '106685', 'n_tokens_mistral': 562, 'n_tokens_neox': 554, 'n_words': 127}