!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux web25.us.cloudlogin.co 5.10.237-xeon-hst #1 SMP Mon May 5 15:10:04 UTC 2025 x86_64 

uid=233359(alpastrology) gid=888(tty) groups=888(tty),33(tape) 

Safe-mode: OFF (not secure)

/usr/share/doc/perl-Graph/util/   drwxr-xr-x
Free 6181.61 GB of 6262.81 GB (98.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     grand.pl (2.94 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
use Graph;
use Graph::Directed;
use Graph::Undirected;
use Time::HiRes qw(time);
use Getopt::Long;

my %OPT = (seed => 42, test => 'apsp', fill => 0.50, V => 20, directed => 1);

my @TEST = qw(apsp mstp mstk sptd sptb cc bcc scc);
my %TEST; @TEST{@TEST} = ();

my @WTEST = qw(apsp mstp mstk sptd sptb bcc);
my %WTEST; @WTEST{@WTEST} = ();

my @UTEST = qw(mstk mstp cc);
my %UTEST; @UTEST{@UTEST} = ();

my @DTEST = qw(scc);
my %DTEST; @DTEST{@DTEST} = ();

sub usage {
    warn <<__EOF__;
$0: Usage: $0 [--seed=n]
              [--test=@{[join('|', @TEST)]}]
              [--directed=d] [--fill=f] [V]
Default values:
__EOF__
    for my $o (sort keys %OPT) {
    warn <<__EOF__;
$o = $OPT{$o}
__EOF__
    }
    exit(1);
}

usage()
  unless
    GetOptions(
           'seed=n'        => \$OPT{seed},
           'test=s'        => \$OPT{test},
           'directed=n'    => \$OPT{directed},
           'fill=f'        => \$OPT{fill},
          );
$OPT{V} = shift if @ARGV;
usage() if @ARGV;
usage() unless exists $TEST{$OPT{test}};

print "Running $OPT{test}...\n";

srand($OPT{seed});

if (exists $UTEST{$OPT{test}} && $OPT{directed}) {
    $OPT{directed} = 0;
    print "($OPT{test} needs undirected, fixed)\n";
} elsif (exists $DTEST{$OPT{test}} && !$OPT{directed}) {
    $OPT{directed} = 1;
    print "($OPT{test} needs directed, fixed)\n";
}

if ($OPT{fill} < 0.0 || $OPT{fill} > 1.0) {
    $OPT{fill} = 0.5;
    print "($OPT{fill} must be between 0.0 and 1.0, fixed to be 0.5)\n";
}

# Thanks to Devel::DProf and List::Util breakage.
# my $g = Graph->random_graph(vertices   => $OPT{V},
#                             directed   => $OPT{directed},
#                             edges_fill => $OPT{fill});
my $E = int(($OPT{V} * ($OPT{V} - 1) * $OPT{fill}) / ($OPT{directed} ? 1 : 2));
my $g = $OPT{directed} ? Graph::Directed->new() : Graph::Undirected->new();
my $e = $E;
while (1) {
    my $u = int(rand($OPT{V}));
    my $v = int(rand($OPT{V}));
    if ($u ne $v && !$g->has_edge($u, $v)) {
    $g->add_edge($u, $v);
    last unless --$e;
    }
}
print "($OPT{V} vertices, $E edges)\n";

if (exists $WTEST{$OPT{test}}) {
    for my $e ($g->edges) {
    my ($u, $v) = @$e;
    $g->set_edge_weight($u, $v, rand());
    }
}

my $t0 = time();
my ($u0, $s0) = times();

if ($OPT{test} eq 'apsp') {
    my $apsp = $g->APSP_Floyd_Warshall;
} elsif ($OPT{test} eq 'mstk') {
    my $mst = $g->MST_Kruskal;
} elsif ($OPT{test} eq 'mstp') {
    my $mst = $g->MST_Prim;
} elsif ($OPT{test} eq 'sptd') {
    my $mst = $g->SPT_Dijkstra;
} elsif ($OPT{test} eq 'sptb') {
    my $mst = $g->SPT_Bellman_Ford;
} elsif ($OPT{test} eq 'cc') {
    my @cc = $g->connected_components;
} elsif ($OPT{test} eq 'bcc') {
    my @bcc = $g->biconnected_components;
} elsif ($OPT{test} eq 'scc') {
    my @scc = $g->strongly_connected_components;
} else {
    die "$0: Unknown test '$OPT{test}'";
}

my $t1 = time();
my ($u1, $s1) = times();

my $u = $u1 - $u0;
my $s = $s1 - $s0;
my $c = $u + $s;

printf "real %.2f user %.2f system %.2f cpu %.2f\n", $t1 - $t0, $u, $s, $c;

exit(0);

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0128 ]--