<commit_before>
#load "../../common.cake"

var TARGET = Argument ("t", Argument ("target", "externals"));

var JAR_VERSION = "1.2.0";
var JAR_URL = string.Format ("http://search.maven.org/remotecontent?filepath=com/daimajia/swipelayout/library/{0}/library-{0}.aar", JAR_VERSION);
var JAR_DEST = "./externals/AndroidSwipeLayout.aar";

var buildSpec = new BuildSpec () {
	Libs = new ISolutionBuilder [] {
		new DefaultSolutionBuilder {
			SolutionPath = "./source/AndroidSwipeLayout.sln",
			OutputFiles = new [] { 
				new OutputFileCopy {
					FromFile = "./source/AndroidSwipeLayout/bin/Release/AndroidSwipeLayout.dll",
				}
			}
		}
	},

	Samples = new ISolutionBuilder [] {
		new DefaultSolutionBuilder { SolutionPath = "./samples/AndroidSwipeLayoutSample.sln" },
	},

	Components = new [] {
		new Component {ManifestDirectory = "./component"},
	},
};

Task ("externals")
	.Does (() => 
{
	if (!DirectoryExists ("./externals/"))
		CreateDirectory ("./externals");

	if (!FileExists (JAR_DEST))
		DownloadFile (JAR_URL, JAR_DEST);
});


Task ("clean").IsDependentOn ("clean-base").Does (() => 
{	
	DeleteFiles ("./externals/*.aar");
});

SetupXamarinBuildTasks (buildSpec, Tasks, Task);

RunTarget (TARGET);
<commit_msg>Changed file back as I made a mistake testing cake configurations<commit_after>
#load "../../common.cake"

var TARGET = Argument ("t", Argument ("target", "Default"));

var JAR_VERSION = "1.2.0";
var JAR_URL = string.Format ("http://search.maven.org/remotecontent?filepath=com/daimajia/swipelayout/library/{0}/library-{0}.aar", JAR_VERSION);
var JAR_DEST = "./externals/AndroidSwipeLayout.aar";

var buildSpec = new BuildSpec () {
	Libs = new ISolutionBuilder [] {
		new DefaultSolutionBuilder {
			SolutionPath = "./source/AndroidSwipeLayout.sln",
			OutputFiles = new [] { 
				new OutputFileCopy {
					FromFile = "./source/AndroidSwipeLayout/bin/Release/AndroidSwipeLayout.dll",
				}
			}
		}
	},

	Samples = new ISolutionBuilder [] {
		new DefaultSolutionBuilder { SolutionPath = "./samples/AndroidSwipeLayoutSample.sln" },
	},

	Components = new [] {
		new Component {ManifestDirectory = "./component"},
	},
};

Task ("externals")
	.Does (() => 
{
	if (!DirectoryExists ("./externals/"))
		CreateDirectory ("./externals");

	if (!FileExists (JAR_DEST))
		DownloadFile (JAR_URL, JAR_DEST);
});


Task ("clean").IsDependentOn ("clean-base").Does (() => 
{	
	DeleteFiles ("./externals/*.aar");
});

SetupXamarinBuildTasks (buildSpec, Tasks, Task);

RunTarget (TARGET);

{'fraction_non_alphanumeric': 0.17307692307692307, 'fraction_numerical': 0.004006410256410256, 'mean_word_length': 4.234800838574423, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4024857', 'n_tokens_mistral': 911, 'n_tokens_neox': 837, 'n_words': 162}