From 616b1f27c5d3a670300b12ec31521f6213827c87 Mon Sep 17 00:00:00 2001 From: Ian Young Date: Wed, 1 Feb 2017 10:53:57 +0000 Subject: [PATCH] Remove unused statistics script and helper transform --- charting/trust.pl | 77 ---------------------------------------------- charting/trust.xsl | 54 -------------------------------- 2 files changed, 131 deletions(-) delete mode 100755 charting/trust.pl delete mode 100644 charting/trust.xsl diff --git a/charting/trust.pl b/charting/trust.pl deleted file mode 100755 index b5a70f1e..00000000 --- a/charting/trust.pl +++ /dev/null @@ -1,77 +0,0 @@ -#!/usr/bin/env perl -w - -# -# trust.pl -# -# Extracts statistics about trust model support from the published metadata. -# -use lib "../build"; -use Xalan; -use Months; - -# Parse command line arguments -use Getopt::Long; -my $allMonths; -GetOptions('all' => \$allMonths); - -# By default, only show results for the most recent month -if (!$allMonths) { - # reduce months table to one element - my $oneMonth = pop @months; - @months = ( $oneMonth ); -} - -# ingest files -foreach $month (@months) { - my $fn = "cache/$month.xml"; - open(TXT, xalanCall . " -IN $fn -XSL trust.xsl|") || die "could not open input file"; - $_ = ; - chop; - #print ">" . $_ . "<\n"; - my ($entities, $idps, $sps, $dk_total, $dk_idp, $dk_sp, $pk_total, $pk_idp, $pk_sp, $no_embed) = split; - push @overallRatio, $dk_total/$entities; - push @idpRatio, $dk_idp/$idps; - push @spRatio, $dk_sp/$sps; - push @PKoverallRatio, $pk_total/$entities; - push @PKidpRatio, $pk_idp/$idps; - push @PKspRatio, $pk_sp/$sps; - push @NoEmbed, $no_embed; - close TXT; -} - -print "idp\n"; -foreach $ratio (@idpRatio) { - print "$ratio\n"; -} - -print "sp\n"; -foreach $ratio (@spRatio) { - print "$ratio\n"; -} - -print "overall\n"; -foreach $ratio (@overallRatio) { - print "$ratio\n"; -} - -print "PKidp\n"; -foreach $ratio (@PKidpRatio) { - print "$ratio\n"; -} - -print "PKsp\n"; -foreach $ratio (@PKspRatio) { - print "$ratio\n"; -} - -print "PKoverall\n"; -foreach $ratio (@PKoverallRatio) { - print "$ratio\n"; -} - -print "No embedded keys\n"; -foreach $no_embed (@NoEmbed) { - print "$no_embed\n"; -} - -1; diff --git a/charting/trust.xsl b/charting/trust.xsl deleted file mode 100644 index d94b52bf..00000000 --- a/charting/trust.xsl +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -