summaryrefslogtreecommitdiff
path: root/rep/ept/popcon/local.h.gcov.html
diff options
context:
space:
mode:
Diffstat (limited to 'rep/ept/popcon/local.h.gcov.html')
-rw-r--r--rep/ept/popcon/local.h.gcov.html154
1 files changed, 0 insertions, 154 deletions
diff --git a/rep/ept/popcon/local.h.gcov.html b/rep/ept/popcon/local.h.gcov.html
deleted file mode 100644
index a8cb45d..0000000
--- a/rep/ept/popcon/local.h.gcov.html
+++ /dev/null
@@ -1,154 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-
-<html lang="en">
-
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- <title>LCOV - lcov.info - ept/popcon/local.h</title>
- <link rel="stylesheet" type="text/css" href="../../gcov.css">
-</head>
-
-<body>
-
- <table width="100%" border=0 cellspacing=0 cellpadding=0>
- <tr><td class="title">LTP GCOV extension - code coverage report</td></tr>
- <tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
-
- <tr>
- <td width="100%">
- <table cellpadding=1 border=0 width="100%">
- <tr>
- <td class="headerItem" width="20%">Current&nbsp;view:</td>
- <td class="headerValue" width="80%" colspan=4><a href="../../index.html">directory</a> - <a href="index.html">ept/popcon</a> - local.h</td>
- </tr>
- <tr>
- <td class="headerItem" width="20%">Test:</td>
- <td class="headerValue" width="80%" colspan=4>lcov.info</td>
- </tr>
- <tr>
- <td class="headerItem" width="20%">Date:</td>
- <td class="headerValue" width="20%">2008-08-14</td>
- <td width="20%"></td>
- <td class="headerItem" width="20%">Instrumented&nbsp;lines:</td>
- <td class="headerValue" width="20%">1</td>
- </tr>
- <tr>
- <td class="headerItem" width="20%">Code&nbsp;covered:</td>
- <td class="headerValue" width="20%">100.0 %</td>
- <td width="20%"></td>
- <td class="headerItem" width="20%">Executed&nbsp;lines:</td>
- <td class="headerValue" width="20%">1</td>
- </tr>
- </table>
- </td>
- </tr>
- <tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
- </table>
-
- <table cellpadding=0 cellspacing=0 border=0>
- <tr>
- <td><br></td>
- </tr>
- <tr>
- <td><pre class="source">
-<span class="lineNum"> 1 </span> : #ifndef EPT_POPCON_LOCAL_H
-<span class="lineNum"> 2 </span> : #define EPT_POPCON_LOCAL_H
-<span class="lineNum"> 3 </span> :
-<span class="lineNum"> 4 </span> : /** @file
-<span class="lineNum"> 5 </span> : * @author Enrico Zini &lt;enrico@enricozini.org&gt;
-<span class="lineNum"> 6 </span> : * Correlate popcon data with local popcon information
-<span class="lineNum"> 7 </span> : */
-<span class="lineNum"> 8 </span> :
-<span class="lineNum"> 9 </span> : /*
-<span class="lineNum"> 10 </span> : * Copyright (C) 2007 Enrico Zini &lt;enrico@debian.org&gt;
-<span class="lineNum"> 11 </span> : *
-<span class="lineNum"> 12 </span> : * This program is free software; you can redistribute it and/or modify
-<span class="lineNum"> 13 </span> : * it under the terms of the GNU General Public License as published by
-<span class="lineNum"> 14 </span> : * the Free Software Foundation; either version 2 of the License, or
-<span class="lineNum"> 15 </span> : * (at your option) any later version.
-<span class="lineNum"> 16 </span> : *
-<span class="lineNum"> 17 </span> : * This program is distributed in the hope that it will be useful,
-<span class="lineNum"> 18 </span> : * but WITHOUT ANY WARRANTY; without even the implied warranty of
-<span class="lineNum"> 19 </span> : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-<span class="lineNum"> 20 </span> : * GNU General Public License for more details.
-<span class="lineNum"> 21 </span> : *
-<span class="lineNum"> 22 </span> : * You should have received a copy of the GNU General Public License
-<span class="lineNum"> 23 </span> : * along with this program; if not, write to the Free Software
-<span class="lineNum"> 24 </span> : * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-<span class="lineNum"> 25 </span> : */
-<span class="lineNum"> 26 </span> :
-<span class="lineNum"> 27 </span> : #include &lt;string&gt;
-<span class="lineNum"> 28 </span> : #include &lt;vector&gt;
-<span class="lineNum"> 29 </span> : #include &lt;map&gt;
-<span class="lineNum"> 30 </span> :
-<span class="lineNum"> 31 </span> : namespace ept {
-<span class="lineNum"> 32 </span> : namespace popcon {
-<span class="lineNum"> 33 </span> :
-<span class="lineNum"> 34 </span> : class Popcon;
-<span class="lineNum"> 35 </span> :
-<span class="lineNum"> 36 </span> : /**
-<span class="lineNum"> 37 </span> : * Access the results of the local daily popcon scan.
-<span class="lineNum"> 38 </span> : */
-<span class="lineNum"> 39 </span> : class Local
-<span class="lineNum"> 40 </span><span class="lineCov"> 1 : {</span>
-<span class="lineNum"> 41 </span> : protected:
-<span class="lineNum"> 42 </span> : std::map&lt;std::string, float&gt; m_scores;
-<span class="lineNum"> 43 </span> : time_t m_timestamp;
-<span class="lineNum"> 44 </span> :
-<span class="lineNum"> 45 </span> : public:
-<span class="lineNum"> 46 </span> : Local(const std::string&amp; file = std::string(&quot;/var/log/popularity-contest&quot;));
-<span class="lineNum"> 47 </span> :
-<span class="lineNum"> 48 </span> : /// Get the timestamp of the local popcon information
-<span class="lineNum"> 49 </span> : time_t timestamp() const { return m_timestamp; }
-<span class="lineNum"> 50 </span> :
-<span class="lineNum"> 51 </span> : /// Return true if this data source has data, false if it's empty
-<span class="lineNum"> 52 </span> : bool hasData() const { return m_timestamp != 0; }
-<span class="lineNum"> 53 </span> :
-<span class="lineNum"> 54 </span> : /**
-<span class="lineNum"> 55 </span> : * Return the local score of the package
-<span class="lineNum"> 56 </span> : */
-<span class="lineNum"> 57 </span> : float score(const std::string&amp; pkg) const;
-<span class="lineNum"> 58 </span> :
-<span class="lineNum"> 59 </span> : /**
-<span class="lineNum"> 60 </span> : * Return the TFIDF score of the package computed against the popcon
-<span class="lineNum"> 61 </span> : * information.
-<span class="lineNum"> 62 </span> : *
-<span class="lineNum"> 63 </span> : * The TFIDF score is high when a package is representative of this system,
-<span class="lineNum"> 64 </span> : * that is, it is used in this system and not much used in other systems.
-<span class="lineNum"> 65 </span> : */
-<span class="lineNum"> 66 </span> : float tfidf(const Popcon&amp; popcon, const std::string&amp; pkg) const;
-<span class="lineNum"> 67 </span> :
-<span class="lineNum"> 68 </span> : /**
-<span class="lineNum"> 69 </span> : * Read the local popcon vote and return the list of packages and their
-<span class="lineNum"> 70 </span> : * local scores, sorted by ascending score.
-<span class="lineNum"> 71 </span> : */
-<span class="lineNum"> 72 </span> : std::vector&lt; std::pair&lt;std::string, float&gt; &gt; scores() const;
-<span class="lineNum"> 73 </span> :
-<span class="lineNum"> 74 </span> : /**
-<span class="lineNum"> 75 </span> : * Read the local popcon vote and return the list of packages and their
-<span class="lineNum"> 76 </span> : * TFIDF scores computed against the popcon information.
-<span class="lineNum"> 77 </span> : *
-<span class="lineNum"> 78 </span> : * The packages will be sorted by ascending score.
-<span class="lineNum"> 79 </span> : */
-<span class="lineNum"> 80 </span> : std::vector&lt; std::pair&lt;std::string, float&gt; &gt; tfidf(const Popcon&amp; popcon) const;
-<span class="lineNum"> 81 </span> : };
-<span class="lineNum"> 82 </span> :
-<span class="lineNum"> 83 </span> : }
-<span class="lineNum"> 84 </span> : }
-<span class="lineNum"> 85 </span> :
-<span class="lineNum"> 86 </span> : // vim:set ts=4 sw=4:
-<span class="lineNum"> 87 </span> : #endif
-</pre>
- </td>
- </tr>
- </table>
- <br>
-
- <table width="100%" border=0 cellspacing=0 cellpadding=0>
- <tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
- <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LTP GCOV extension version 1.6</a></td></tr>
- </table>
- <br>
-
-</body>
-</html>