<commit_before>package com.meltmedia.cadmium.cli;

import java.io.IOException;

import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;


@Parameters(commandDescription = "Deploys the cadmium war to the specified(domain) server", separators="=")
public class DeployCommand {

	private final Logger log = LoggerFactory.getLogger(getClass());

	@Parameter(names="--domain", description="The site for which the status is desired", required=true)
	private String domain;
	
	@Parameter(names="--repo", description="The repo from which cadmium will serve content initially", required=true)
	private String repo;
	
	@Parameter(names="--branch", description="The branch from which cadmium will serve content initially", required=true)
	private String branch;
	
	private String site;	

	public static final String JERSEY_ENDPOINT = "/deploy";

	public void execute() throws ClientProtocolException, IOException {

		DefaultHttpClient client = new DefaultHttpClient();
		String url = site + JERSEY_ENDPOINT;	

		log.info("site + JERSEY_ENDPOINT = {}", url);

		try {
			
			HttpPost post = new HttpPost(url);
			HttpResponse response = client.execute(post);
			HttpEntity entity = response.getEntity();
			log.debug("entity content type: {}", entity.getContentType().getValue());
			System.out.println("Successfully deployed cadmium application to [" + domain + "], with repo [" + repo + "] and branch [" + branch + "]");
		} 
		catch (Exception e) {

			System.err.println("Failed to deploy cadmium application to [" + domain + "], with repo [" + repo + "] and branch [" + branch + "]");
		}		

	}

}<commit_msg>updated DeployCommand<commit_after>package com.meltmedia.cadmium.cli;

import java.io.IOException;

import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;


@Parameters(commandDescription = "Deploys the cadmium war to the specified(domain) server", separators="=")
public class DeployCommand {

	private final Logger log = LoggerFactory.getLogger(getClass());

	@Parameter(names="--domain", description="The domain where the cadmium application will be deployed", required=true)
	private String domain;
	
	@Parameter(names="--repo", description="The repo from which cadmium will serve content initially", required=true)
	private String repo;
	
	@Parameter(names="--branch", description="The branch from which cadmium will serve content initially", required=true)
	private String branch;
	
	@Parameter(names="--site", description="The branch from which cadmium will serve content initially", required=true)
	private String site;
	

	public static final String JERSEY_ENDPOINT = "/deploy";

	public void execute() throws ClientProtocolException, IOException {

		DefaultHttpClient client = new DefaultHttpClient();
		String url = site + JERSEY_ENDPOINT;	

		log.info("site + JERSEY_ENDPOINT = {}", url);

		try {
			
			HttpPost post = new HttpPost(url);
			HttpResponse response = client.execute(post);
			HttpEntity entity = response.getEntity();
			log.debug("entity content type: {}", entity.getContentType().getValue());
			System.out.println("Successfully deployed cadmium application to [" + domain + "], with repo [" + repo + "] and branch [" + branch + "]");
		} 
		catch (Exception e) {

			System.err.println("Failed to deploy cadmium application to [" + domain + "], with repo [" + repo + "] and branch [" + branch + "]");
		}		

	}

}
{'fraction_non_alphanumeric': 0.12093726379440665, 'fraction_numerical': 0.0010078105316200555, 'mean_word_length': 5.033434650455927, 'pattern_counts': {'":': 0, '<': 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': '14284', 'n_tokens_mistral': 1202, 'n_tokens_neox': 1107, 'n_words': 313}