<commit_before>#!/usr/bin/env perl

use Cwd qw(abs_path);
use File::Basename qw(dirname);

# include script functions
use vars qw(
	$PREFIX
	$TESTS
);
$TESTS = 1;
$PREFIX = abs_path(dirname($0));
require($PREFIX . "/functions.pl");

if (not defined $GIT) {
	exit 1;
}

clean_git() unless (exists $ENV{'SKIP_CLEAN'});

my $hostname = `hostname 2>/dev/null`;
chomp($hostname);
if ($hostname eq "nen") {
	# special case, on nen we use the local repo
	unshift(@ARGS, "-DaltDeploymentRepository=opennms-snapshot::default::file:///var/www/sites/opennms.org/site/repo/snapshots");
}

my @command = ($MVN, '-Dmaven.test.skip.exec=true', @ARGS, 'install', 'deploy');
info("running:", @command);
handle_errors_and_exit_on_failure(system(@command));

clean_git() unless (exists $ENV{'SKIP_CLEAN'});

exit 0;<commit_msg>deploy assemblies too<commit_after>#!/usr/bin/env perl

use Cwd qw(abs_path);
use File::Basename qw(dirname);

# include script functions
use vars qw(
	$PREFIX
	$TESTS
);
$TESTS = 1;
$PREFIX = abs_path(dirname($0));
require($PREFIX . "/functions.pl");

if (not defined $GIT) {
	exit 1;
}

clean_git() unless (exists $ENV{'SKIP_CLEAN'});

my $hostname = `hostname 2>/dev/null`;
chomp($hostname);
if ($hostname eq "nen") {
	# special case, on nen we use the local repo
	unshift(@ARGS, "-DaltDeploymentRepository=opennms-snapshot::default::file:///var/www/sites/opennms.org/site/repo/snapshots");
}

my @command = ($MVN, '-Dmaven.test.skip.exec=true', @ARGS, 'install', 'deploy');
info("running:", @command);
handle_errors_and_exit_on_failure(system(@command));

chdir($PREFIX . '/opennms-assemblies');
@command = ($MVN, '-Dmaven.test.skip.exec=true', '-N', @ARGS, 'install', 'deploy');
info("running:", @command);
handle_errors_and_exit_on_failure(system(@command));

clean_git() unless (exists $ENV{'SKIP_CLEAN'});

exit 0;
{'fraction_non_alphanumeric': 0.1918032786885246, 'fraction_numerical': 0.00546448087431694, 'mean_word_length': 6.096899224806202, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4835334', 'n_tokens_mistral': 698, 'n_tokens_neox': 682, 'n_words': 149}