<commit_before>package Module::Release::MANIFEST;

use strict;
use warnings;
use base qw(Exporter);
use vars qw($VERSION);

our @EXPORT = qw( check_MANIFEST );

$VERSION = '2.05';

=head1 NAME

Module::Release::MANIFEST - Check Perl's MANIFEST to ensure you've updated it

=head1 SYNOPSIS

The release script automatically loads this module and checks your
MANIFEST file. It runs C<{make|Build} manifest> and dies if the 
output contains any lines that start with C<added> or C<removed>.

If it dies, you have to start the release process again after 
verifying F<MANIFEST> (and F<MANIFEST.SKIP>).

=head1 DESCRIPTION

=over 4

=item check_MANIFEST

Runs C<{make|Build} manifest>. If it sees output
starting with C<added> or C<removed>, it dies.

It looks in local_name to get the name of the distribution file.

=cut

sub check_MANIFEST
	{
	my $self = shift;
	
	$self->_print( "Checking MANIFEST... " );
	
	my $perl = $self->{perl};
	
	my @ignore = $self->_get_prereq_ignore_list;
	
	my $output = $self->run( "$_[0]->{make} test 2>&1" );

	$self->_die( "\nERROR: MANIFEST is dirty! Update MANIFEST or MANIFEST.SKIP!\n$output\n\nAborting release\n" )
		    if $output =~ /^(?:added|removed)/mi;
	
	$self->_print( "done\n" );
	}<commit_msg>* run the right target<commit_after>package Module::Release::MANIFEST;

use strict;
use warnings;
use base qw(Exporter);
use vars qw($VERSION);

our @EXPORT = qw( check_MANIFEST );

$VERSION = '2.05';

=head1 NAME

Module::Release::MANIFEST - Check Perl's MANIFEST to ensure you've updated it

=head1 SYNOPSIS

The release script automatically loads this module and checks your
MANIFEST file. It runs C<{make|Build} manifest> and dies if the 
output contains any lines that start with C<added> or C<removed>.

If it dies, you have to start the release process again after 
verifying F<MANIFEST> (and F<MANIFEST.SKIP>).

=head1 DESCRIPTION

=over 4

=item check_MANIFEST

Runs C<{make|Build} manifest>. If it sees output
starting with C<added> or C<removed>, it dies.

It looks in local_name to get the name of the distribution file.

=cut

sub check_MANIFEST
	{
	my $self = shift;
	
	$self->_print( "Checking MANIFEST... " );
	
	my $perl = $self->{perl};
	
	my @ignore = $self->_get_prereq_ignore_list;
	
	my $output = $self->run( "$self->{make} manifest 2>&1" );

	$self->_die( "\nERROR: MANIFEST is dirty! Update MANIFEST or MANIFEST.SKIP!\n$output\n\nAborting release\n" )
		    if $output =~ /^(?:added|removed)/mi;

	$self->_print( "done\n" );
	}
{'fraction_non_alphanumeric': 0.12891566265060242, 'fraction_numerical': 0.007630522088353414, 'mean_word_length': 4.34549356223176, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 35, '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': '604091', 'n_tokens_mistral': 931, 'n_tokens_neox': 869, 'n_words': 294}