<commit_before>
.. code-block:: bash

    curl -s --user 'api:YOUR_API_KEY' \
	https://api.mailgun.net/v3/YOUR_DOMAIN_NAME/messages \
	-F from='Excited User <YOU@YOUR_DOMAIN_NAME>' \
	-F to='<EMAIL>' \
	-F cc='<EMAIL>' \
	-F bcc='<EMAIL>' \
	-F subject='Hello' \
	-F text='Testing some Mailgun awesomness!' \
	--form-string html='<html>HTML version of the body</html>' \
	-F attachment=@files/cartman.jpg \
	-F attachment=@files/cartman.png

.. code-block:: java

 public static ClientResponse SendComplexMessage() {
 	Client client = Client.create();
 	client.addFilter(new HTTPBasicAuthFilter("api",
 			"YOUR_API_KEY"));
 	WebResource webResource =
 		client.resource("https://api.mailgun.net/v3/YOUR_DOMAIN_NAME/" +
 				"messages");
 	FormDataMultiPart form = new FormDataMultiPart();
 	form.field("from", "Excited User <YOU@YOUR_DOMAIN_NAME>");
 	form.field("to", "<EMAIL>");
 	form.field("bcc", "<EMAIL>");
 	form.field("cc", "<EMAIL>");
 	form.field("subject", "Hello");
 	form.field("text", "Testing some Mailgun awesomness!");
 	String file_separator = System.getProperty("file.separator");
 	File txtFile = new File("." + file_separator +
 			"files" + file_separator + "test.txt");
 	form.bodyPart(new FileDataBodyPart("attachment",txtFile,
 			MediaType.TEXT_PLAIN_TYPE));
 	File jpgFile = new File("." + file_separator +
 			"files" + file_separator + "test.jpg");
 	form.bodyPart(new FileDataBodyPart("attachment",jpgFile,
 			MediaType.APPLICATION_OCTET_STREAM_TYPE));
 	return webResource.type(MediaType.MULTIPART_FORM_DATA_TYPE).
 		post(ClientResponse.class, form);
 }

.. code-block:: php

  # Include the Autoloader (see "Libraries" for install instructions)
  require 'vendor/autoload.php';
  use Mailgun\Mailgun;

  # Instantiate the client.
  $mgClient = new Mailgun('YOUR_API_KEY');
  $domain = "YOUR_DOMAIN_NAME";

  # Make the call to the client.
  $result = $mgClient->sendMessage($domain, array(
      'from'    => 'Excited User <YOU@YOUR_DOMAIN_NAME>',
      'to'      => '<EMAIL>',
      'cc'      => '<EMAIL>',
      'bcc'     => '<EMAIL>',
      'subject' => 'Hello',
      'text'    => 'Testing some Mailgun awesomness!',
      'html'    => '<html>HTML version of the body</html>'
  ), array(
      'attachment' => array('@/path/to/file.txt', '@/path/to/file.txt')
  ));<commit_msg>You should not have a @ sign before filepath<commit_after>
.. code-block:: bash

    curl -s --user 'api:YOUR_API_KEY' \
	https://api.mailgun.net/v3/YOUR_DOMAIN_NAME/messages \
	-F from='Excited User <YOU@YOUR_DOMAIN_NAME>' \
	-F to='<EMAIL>' \
	-F cc='<EMAIL>' \
	-F bcc='<EMAIL>' \
	-F subject='Hello' \
	-F text='Testing some Mailgun awesomness!' \
	--form-string html='<html>HTML version of the body</html>' \
	-F attachment=@files/cartman.jpg \
	-F attachment=@files/cartman.png

.. code-block:: java

 public static ClientResponse SendComplexMessage() {
 	Client client = Client.create();
 	client.addFilter(new HTTPBasicAuthFilter("api",
 			"YOUR_API_KEY"));
 	WebResource webResource =
 		client.resource("https://api.mailgun.net/v3/YOUR_DOMAIN_NAME/" +
 				"messages");
 	FormDataMultiPart form = new FormDataMultiPart();
 	form.field("from", "Excited User <YOU@YOUR_DOMAIN_NAME>");
 	form.field("to", "<EMAIL>");
 	form.field("bcc", "<EMAIL>");
 	form.field("cc", "<EMAIL>");
 	form.field("subject", "Hello");
 	form.field("text", "Testing some Mailgun awesomness!");
 	String file_separator = System.getProperty("file.separator");
 	File txtFile = new File("." + file_separator +
 			"files" + file_separator + "test.txt");
 	form.bodyPart(new FileDataBodyPart("attachment",txtFile,
 			MediaType.TEXT_PLAIN_TYPE));
 	File jpgFile = new File("." + file_separator +
 			"files" + file_separator + "test.jpg");
 	form.bodyPart(new FileDataBodyPart("attachment",jpgFile,
 			MediaType.APPLICATION_OCTET_STREAM_TYPE));
 	return webResource.type(MediaType.MULTIPART_FORM_DATA_TYPE).
 		post(ClientResponse.class, form);
 }

.. code-block:: php

  # Include the Autoloader (see "Libraries" for install instructions)
  require 'vendor/autoload.php';
  use Mailgun\Mailgun;

  # Instantiate the client.
  $mgClient = new Mailgun('YOUR_API_KEY');
  $domain = "YOUR_DOMAIN_NAME";

  # Make the call to the client.
  $result = $mgClient->sendMessage($domain, array(
      'from'    => 'Excited User <YOU@YOUR_DOMAIN_NAME>',
      'to'      => '<EMAIL>',
      'cc'      => '<EMAIL>',
      'bcc'     => '<EMAIL>',
      'subject' => 'Hello',
      'text'    => 'Testing some Mailgun awesomness!',
      'html'    => '<html>HTML version of the body</html>'
  ), array(
      'attachment' => array('/path/to/file.txt', '/path/to/file.txt')
  ));
{'fraction_non_alphanumeric': 0.17228062647500536, 'fraction_numerical': 0.0008581849388543231, 'mean_word_length': 3.9022082018927446, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 53, 'https://': 4, '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': '6526550', 'n_tokens_mistral': 1767, 'n_tokens_neox': 1650, 'n_words': 325}