<commit_before><?php
/**
 * Created by PhpStorm.
 * User: 蔡旭东 <EMAIL>
 * Date: 4/15/16 18:11
 */

namespace Very\Mail;

use Swift_Message;
use Swift_Image;
use Swift_Attachment;

class Message {

    /**
     * The Swift Message instance.
     *
     * @var \Swift_Message
     */
    protected $swift;

    /**
     * Create a new message instance.
     *
     * @param  \Swift_Message $swift
     */
    public function __construct($swift) {
        $this->swift = $swift;
    }

    public function body($content) {
        $this->swift->setBody($content, 'text/html');
    }

    /**
     * Add a "from" address to the message.
     *
     * @param  string $address
     * @param  string $name
     *
     * @return $this
     */
    public function from($address, $name = null) {
        $this->swift->setFrom($address, $name);
<commit_msg>add mail lib<commit_after><?php
/**
 * Created by PhpStorm.
 * User: 蔡旭东 <EMAIL>
 * Date: 4/15/16 18:11
 */

namespace Very\Mail;

use Swift_Message;
use Swift_Image;
use Swift_Attachment;

class Message {

    /**
     * The Swift Message instance.
     *
     * @var \Swift_Message
     */
    protected $swift;

    /**
     * Create a new message instance.
     *
     * @param  \Swift_Message $swift
     */
    public function __construct($swift) {
        $this->swift = $swift;
    }

    public function body($content) {
        $this->swift->setBody($content, 'text/html');
        return $this;
    }

    /**
     * Add a "from" address to the message.
     *
     * @param  string $address
     * @param  string $name
     *
     * @return $this
     */
    public function from($address, $name = null) {
        $this->swift->setFrom($address, $name);

{'fraction_non_alphanumeric': 0.1402688486265342, 'fraction_numerical': 0.010520163646990065, 'mean_word_length': 2.0846846846846847, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '88239', 'n_tokens_mistral': 605, 'n_tokens_neox': 562, 'n_words': 140}