<commit_before>#!/usr/bin/perl
#
# sample Dundi.pm application
#
# Copyright (c) 2014 <NAME> <<EMAIL>>. All rights reserved.
# This program is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.

use strict;
use warnings;

use IO::Socket::INET;
use Data::Dumper;
use Dundi;

my $sock = IO::Socket::INET->new(LocalPort => 4521, Proto => 'udp', ReuseAddr => 1);

my $dundi = Dundi->new();

while (1){
	my $buffer;
	$sock->recv($buffer, 1024);
	my $peer_address = $sock->peerhost();
	my $peer_port = $sock->peerport();

	print "datagram received from $peer_address, $peer_port";<commit_msg>change port back to default 4520<commit_after>#!/usr/bin/perl
#
# sample Dundi.pm application
#
# Copyright (c) 2014 <NAME> <<EMAIL>>. All rights reserved.
# This program is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.

use strict;
use warnings;

use IO::Socket::INET;
use Data::Dumper;
use Dundi;

my $sock = IO::Socket::INET->new(LocalPort => 4520, Proto => 'udp', ReuseAddr => 1);

my $dundi = Dundi->new();

while (1){
	my $buffer;
	$sock->recv($buffer, 1024);
	my $peer_address = $sock->peerhost();
	my $peer_port = $sock->peerport();

	print "datagram received from $peer_address, $peer_port";
{'fraction_non_alphanumeric': 0.1594996090695856, 'fraction_numerical': 0.02501954652071931, 'mean_word_length': 4.871559633027523, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 25, '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': '2420387', 'n_tokens_mistral': 488, 'n_tokens_neox': 452, 'n_words': 144}