<commit_before>nodemailer = require 'nodemailer' # http://nodemailer.com/
transporter = nodemailer.createTransport
  service: 'Gmail'
  auth:
    user: '<EMAIL>'
    pass: process.env.BOOKSHARE_PASSWORD

console.log process.env.BOOKSHARE_PASSWORD

module.exports =
  sendListingRequestMessage: (email, takedowncode, information, address) ->
    mailOptions =
      to: email
      subject: "Book Requested!"
      text: """
      > Book Requested!
      Your book on bookworld.cu.cc has been requested!
      Title: '#{information}'.
      Please mail the book to '#{address}' and delete your listing.
      To remove your listing, use the code '#{takedowncode}'!
      """
      html: """
      <h1>Book Requested!</h1>
      Your book listing on bookworld.cu.cc has been requested!<br/>
      <b>Title: </b>#{information}<br/>
      Please mail the book to <b>#{address}</b> and delete your listing.<br/>
      To remove your listing, use the code <b>#{takedowncode}</b>!
      """

    transporter.sendMail mailOptions, (error, info) -><commit_msg>Add debugging statement<commit_after>nodemailer = require 'nodemailer' # http://nodemailer.com/
transporter = nodemailer.createTransport
  service: 'Gmail'
  auth:
    user: '<EMAIL>'
    pass: process.env.BOOKSHARE_PASSWORD

console.log process.env.OPENSHIFT_NODEJS_IP

module.exports =
  sendListingRequestMessage: (email, takedowncode, information, address) ->
    mailOptions =
      to: email
      subject: "Book Requested!"
      text: """
      > Book Requested!
      Your book on bookworld.cu.cc has been requested!
      Title: '#{information}'.
      Please mail the book to '#{address}' and delete your listing.
      To remove your listing, use the code '#{takedowncode}'!
      """
      html: """
      <h1>Book Requested!</h1>
      Your book listing on bookworld.cu.cc has been requested!<br/>
      <b>Title: </b>#{information}<br/>
      Please mail the book to <b>#{address}</b> and delete your listing.<br/>
      To remove your listing, use the code <b>#{takedowncode}</b>!
      """

    transporter.sendMail mailOptions, (error, info) ->
{'fraction_non_alphanumeric': 0.12967345007098913, 'fraction_numerical': 0.001893043066729768, 'mean_word_length': 3.1696252465483234, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 33, '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': '1299282', 'n_tokens_mistral': 654, 'n_tokens_neox': 654, 'n_words': 186}