Skip to content
Snippets Groups Projects
Commit ad25d68e authored by bjuradotorres2's avatar bjuradotorres2
Browse files

Coverage report and related files finalized

parent e7f62dd6
Branches
No related tags found
No related merge requests found
.coverage 0 → 100644
File added
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Coverage report</title>
<link rel="icon" sizes="32x32" href="favicon_32_cb_58284776.png">
<link rel="stylesheet" href="style_cb_718ce007.css" type="text/css">
<script src="coverage_html_cb_497bf287.js" defer></script>
</head>
<body class="indexfile">
<header>
<div class="content">
<h1>Coverage report:
<span class="pc_cov">58%</span>
</h1>
<aside id="help_panel_wrapper">
<input id="help_panel_state" type="checkbox">
<label for="help_panel_state">
<img id="keyboard_icon" src="keybd_closed_cb_ce680311.png" alt="Show/hide keyboard shortcuts">
</label>
<div id="help_panel">
<p class="legend">Shortcuts on this page</p>
<div class="keyhelp">
<p>
<kbd>f</kbd>
<kbd>n</kbd>
<kbd>s</kbd>
<kbd>m</kbd>
<kbd>x</kbd>
<kbd>b</kbd>
<kbd>p</kbd>
<kbd>c</kbd>
&nbsp; change column sorting
</p>
<p>
<kbd>[</kbd>
<kbd>]</kbd>
&nbsp; prev/next file
</p>
<p>
<kbd>?</kbd> &nbsp; show/hide this help
</p>
</div>
</div>
</aside>
<form id="filter_container">
<input id="filter" type="text" value="" placeholder="filter...">
<div>
<input id="hide100" type="checkbox" >
<label for="hide100">hide covered</label>
</div>
</form>
<h2>
<a class="button" href="index.html">Files</a>
<a class="button" href="function_index.html">Functions</a>
<a class="button current">Classes</a>
</h2>
<p class="text">
<a class="nav" href="https://coverage.readthedocs.io/en/7.7.0">coverage.py v7.7.0</a>,
created at 2025-03-16 20:40 -0500
</p>
</div>
</header>
<main id="index">
<table class="index" data-sortable>
<thead>
<tr class="tablehead" title="Click to sort">
<th id="file" class="name left" aria-sort="none" data-shortcut="f">File<span class="arrows"></span></th>
<th id="region" class="name left" aria-sort="none" data-default-sort-order="ascending" data-shortcut="n">class<span class="arrows"></span></th>
<th id="statements" aria-sort="none" data-default-sort-order="descending" data-shortcut="s">statements<span class="arrows"></span></th>
<th id="missing" aria-sort="none" data-default-sort-order="descending" data-shortcut="m">missing<span class="arrows"></span></th>
<th id="excluded" aria-sort="none" data-default-sort-order="descending" data-shortcut="x">excluded<span class="arrows"></span></th>
<th id="branches" aria-sort="none" data-default-sort-order="descending" data-shortcut="b">branches<span class="arrows"></span></th>
<th id="partial" aria-sort="none" data-default-sort-order="descending" data-shortcut="p">partial<span class="arrows"></span></th>
<th id="coverage" class="right" aria-sort="none" data-shortcut="c">coverage<span class="arrows"></span></th>
</tr>
</thead>
<tbody>
<tr class="region">
<td class="name left"><a href="sentiment_py.html#t5">sentiment.py</a></td>
<td class="name left"><a href="sentiment_py.html#t5"><data value='MenuOption'>MenuOption</data></a></td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td class="right" data-ratio="0 0">100%</td>
</tr>
<tr class="region">
<td class="name left"><a href="sentiment_py.html">sentiment.py</a></td>
<td class="name left"><a href="sentiment_py.html"><data value=''><span class='no-noun'>(no class)</span></data></a></td>
<td>223</td>
<td>140</td>
<td>0</td>
<td>110</td>
<td>5</td>
<td class="right" data-ratio="118 333">35%</td>
</tr>
<tr class="region">
<td class="name left"><a href="test_main_py.html#t6">test_main.py</a></td>
<td class="name left"><a href="test_main_py.html#t6"><data value='TestGetTokens'>TestGetTokens</data></a></td>
<td>152</td>
<td>4</td>
<td>0</td>
<td>40</td>
<td>8</td>
<td class="right" data-ratio="180 192">94%</td>
</tr>
<tr class="region">
<td class="name left"><a href="test_main_py.html">test_main.py</a></td>
<td class="name left"><a href="test_main_py.html"><data value=''><span class='no-noun'>(no class)</span></data></a></td>
<td>18</td>
<td>1</td>
<td>0</td>
<td>2</td>
<td>1</td>
<td class="right" data-ratio="18 20">90%</td>
</tr>
</tbody>
<tfoot>
<tr class="total">
<td class="name left">Total</td>
<td class="name left">&nbsp;</td>
<td>393</td>
<td>145</td>
<td>0</td>
<td>152</td>
<td>14</td>
<td class="right" data-ratio="316 545">58%</td>
</tr>
</tfoot>
</table>
<p id="no_rows">
No items found using the specified filter.
</p>
</main>
<footer>
<div class="content">
<p>
<a class="nav" href="https://coverage.readthedocs.io/en/7.7.0">coverage.py v7.7.0</a>,
created at 2025-03-16 20:40 -0500
</p>
</div>
<aside class="hidden">
<a id="prevFileLink" class="nav" href=""></a>
<a id="nextFileLink" class="nav" href=""></a>
<button type="button" class="button_prev_file" data-shortcut="["></button>
<button type="button" class="button_next_file" data-shortcut="]"></button>
<button type="button" class="button_show_hide_help" data-shortcut="?"></button>
</aside>
</footer>
</body>
</html>
This diff is collapsed.
htmlcov/favicon_32_cb_58284776.png

1.69 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Coverage report</title>
<link rel="icon" sizes="32x32" href="favicon_32_cb_58284776.png">
<link rel="stylesheet" href="style_cb_718ce007.css" type="text/css">
<script src="coverage_html_cb_497bf287.js" defer></script>
</head>
<body class="indexfile">
<header>
<div class="content">
<h1>Coverage report:
<span class="pc_cov">58%</span>
</h1>
<aside id="help_panel_wrapper">
<input id="help_panel_state" type="checkbox">
<label for="help_panel_state">
<img id="keyboard_icon" src="keybd_closed_cb_ce680311.png" alt="Show/hide keyboard shortcuts">
</label>
<div id="help_panel">
<p class="legend">Shortcuts on this page</p>
<div class="keyhelp">
<p>
<kbd>f</kbd>
<kbd>n</kbd>
<kbd>s</kbd>
<kbd>m</kbd>
<kbd>x</kbd>
<kbd>b</kbd>
<kbd>p</kbd>
<kbd>c</kbd>
&nbsp; change column sorting
</p>
<p>
<kbd>[</kbd>
<kbd>]</kbd>
&nbsp; prev/next file
</p>
<p>
<kbd>?</kbd> &nbsp; show/hide this help
</p>
</div>
</div>
</aside>
<form id="filter_container">
<input id="filter" type="text" value="" placeholder="filter...">
<div>
<input id="hide100" type="checkbox" >
<label for="hide100">hide covered</label>
</div>
</form>
<h2>
<a class="button" href="index.html">Files</a>
<a class="button current">Functions</a>
<a class="button" href="class_index.html">Classes</a>
</h2>
<p class="text">
<a class="nav" href="https://coverage.readthedocs.io/en/7.7.0">coverage.py v7.7.0</a>,
created at 2025-03-16 20:40 -0500
</p>
</div>
</header>
<main id="index">
<table class="index" data-sortable>
<thead>
<tr class="tablehead" title="Click to sort">
<th id="file" class="name left" aria-sort="none" data-shortcut="f">File<span class="arrows"></span></th>
<th id="region" class="name left" aria-sort="none" data-default-sort-order="ascending" data-shortcut="n">function<span class="arrows"></span></th>
<th id="statements" aria-sort="none" data-default-sort-order="descending" data-shortcut="s">statements<span class="arrows"></span></th>
<th id="missing" aria-sort="none" data-default-sort-order="descending" data-shortcut="m">missing<span class="arrows"></span></th>
<th id="excluded" aria-sort="none" data-default-sort-order="descending" data-shortcut="x">excluded<span class="arrows"></span></th>
<th id="branches" aria-sort="none" data-default-sort-order="descending" data-shortcut="b">branches<span class="arrows"></span></th>
<th id="partial" aria-sort="none" data-default-sort-order="descending" data-shortcut="p">partial<span class="arrows"></span></th>
<th id="coverage" class="right" aria-sort="none" data-shortcut="c">coverage<span class="arrows"></span></th>
</tr>
</thead>
<tbody>
<tr class="region">
<td class="name left"><a href="sentiment_py.html#t15">sentiment.py</a></td>
<td class="name left"><a href="sentiment_py.html#t15"><data value='main'>main</data></a></td>
<td>38</td>
<td>38</td>
<td>0</td>
<td>22</td>
<td>0</td>
<td class="right" data-ratio="0 60">0%</td>
</tr>
<tr class="region">
<td class="name left"><a href="sentiment_py.html#t58">sentiment.py</a></td>
<td class="name left"><a href="sentiment_py.html#t58"><data value='read_file'>read_file</data></a></td>
<td>7</td>
<td>7</td>
<td>0</td>
<td>2</td>
<td>0</td>
<td class="right" data-ratio="0 9">0%</td>
</tr>
<tr class="region">
<td class="name left"><a href="sentiment_py.html#t68">sentiment.py</a></td>
<td class="name left"><a href="sentiment_py.html#t68"><data value='get_stop_words'>get_stop_words</data></a></td>
<td>8</td>
<td>2</td>
<td>0</td>
<td>2</td>
<td>0</td>
<td class="right" data-ratio="8 10">80%</td>
</tr>
<tr class="region">
<td class="name left"><a href="sentiment_py.html#t79">sentiment.py</a></td>
<td class="name left"><a href="sentiment_py.html#t79"><data value='adjusted_sentence_statistics'>adjusted_sentence_statistics</data></a></td>
<td>23</td>
<td>23</td>
<td>0</td>
<td>14</td>
<td>0</td>
<td class="right" data-ratio="0 37">0%</td>
</tr>
<tr class="region">
<td class="name left"><a href="sentiment_py.html#t114">sentiment.py</a></td>
<td class="name left"><a href="sentiment_py.html#t114"><data value='save_stop_words'>save_stop_words</data></a></td>
<td>20</td>
<td>4</td>
<td>0</td>
<td>8</td>
<td>1</td>
<td class="right" data-ratio="23 28">82%</td>
</tr>
<tr class="region">
<td class="name left"><a href="sentiment_py.html#t142">sentiment.py</a></td>
<td class="name left"><a href="sentiment_py.html#t142"><data value='sentence_statistics'>sentence_statistics</data></a></td>
<td>21</td>
<td>21</td>
<td>0</td>
<td>14</td>
<td>0</td>
<td class="right" data-ratio="0 35">0%</td>
</tr>
<tr class="region">
<td class="name left"><a href="sentiment_py.html#t172">sentiment.py</a></td>
<td class="name left"><a href="sentiment_py.html#t172"><data value='token_statistics'>token_statistics</data></a></td>
<td>7</td>
<td>7</td>
<td>0</td>
<td>2</td>
<td>0</td>
<td class="right" data-ratio="0 9">0%</td>
</tr>
<tr class="region">
<td class="name left"><a href="sentiment_py.html#t187">sentiment.py</a></td>
<td class="name left"><a href="sentiment_py.html#t187"><data value='score_compute'>score_compute</data></a></td>
<td>17</td>
<td>1</td>
<td>0</td>
<td>18</td>
<td>2</td>
<td class="right" data-ratio="32 35">91%</td>
</tr>
<tr class="region">
<td class="name left"><a href="sentiment_py.html#t209">sentiment.py</a></td>
<td class="name left"><a href="sentiment_py.html#t209"><data value='word_frequencies'>word_frequencies</data></a></td>
<td>6</td>
<td>6</td>
<td>0</td>
<td>4</td>
<td>0</td>
<td class="right" data-ratio="0 10">0%</td>
</tr>
<tr class="region">
<td class="name left"><a href="sentiment_py.html#t218">sentiment.py</a></td>
<td class="name left"><a href="sentiment_py.html#t218"><data value='check_token'>check_token</data></a></td>
<td>4</td>
<td>4</td>
<td>0</td>
<td>2</td>
<td>0</td>
<td class="right" data-ratio="0 6">0%</td>
</tr>
<tr class="region">
<td class="name left"><a href="sentiment_py.html#t226">sentiment.py</a></td>
<td class="name left"><a href="sentiment_py.html#t226"><data value='show_reviews'>show_reviews</data></a></td>
<td>24</td>
<td>24</td>
<td>0</td>
<td>10</td>
<td>0</td>
<td class="right" data-ratio="0 34">0%</td>
</tr>
<tr class="region">
<td class="name left"><a href="sentiment_py.html#t257">sentiment.py</a></td>
<td class="name left"><a href="sentiment_py.html#t257"><data value='get_tokens'>get_tokens</data></a></td>
<td>13</td>
<td>0</td>
<td>0</td>
<td>8</td>
<td>1</td>
<td class="right" data-ratio="20 21">95%</td>
</tr>
<tr class="region">
<td class="name left"><a href="sentiment_py.html#t275">sentiment.py</a></td>
<td class="name left"><a href="sentiment_py.html#t275"><data value='read_file'>read_file</data></a></td>
<td>7</td>
<td>2</td>
<td>0</td>
<td>2</td>
<td>0</td>
<td class="right" data-ratio="7 9">78%</td>
</tr>
<tr class="region">
<td class="name left"><a href="sentiment_py.html">sentiment.py</a></td>
<td class="name left"><a href="sentiment_py.html"><data value=''><span class='no-noun'>(no function)</span></data></a></td>
<td>28</td>
<td>1</td>
<td>0</td>
<td>2</td>
<td>1</td>
<td class="right" data-ratio="28 30">93%</td>
</tr>
<tr class="region">
<td class="name left"><a href="test_main_py.html#t9">test_main.py</a></td>
<td class="name left"><a href="test_main_py.html#t9"><data value='setUp'>TestGetTokens.setUp</data></a></td>
<td>9</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td class="right" data-ratio="9 9">100%</td>
</tr>
<tr class="region">
<td class="name left"><a href="test_main_py.html#t27">test_main.py</a></td>
<td class="name left"><a href="test_main_py.html#t27"><data value='test_01_token_count'>TestGetTokens.test_01_token_count</data></a></td>
<td>8</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td class="right" data-ratio="8 8">100%</td>
</tr>
<tr class="region">
<td class="name left"><a href="test_main_py.html#t44">test_main.py</a></td>
<td class="name left"><a href="test_main_py.html#t44"><data value='test_02_word_frequencies'>TestGetTokens.test_02_word_frequencies</data></a></td>
<td>5</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td class="right" data-ratio="5 5">100%</td>
</tr>
<tr class="region">
<td class="name left"><a href="test_main_py.html#t53">test_main.py</a></td>
<td class="name left"><a href="test_main_py.html#t53"><data value='test_03_token_statistics'>TestGetTokens.test_03_token_statistics</data></a></td>
<td>9</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td class="right" data-ratio="9 9">100%</td>
</tr>
<tr class="region">
<td class="name left"><a href="test_main_py.html#t71">test_main.py</a></td>
<td class="name left"><a href="test_main_py.html#t71"><data value='test_04_token_classification'>TestGetTokens.test_04_token_classification</data></a></td>
<td>5</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td class="right" data-ratio="5 5">100%</td>
</tr>
<tr class="region">
<td class="name left"><a href="test_main_py.html#t82">test_main.py</a></td>
<td class="name left"><a href="test_main_py.html#t82"><data value='test_05_token_score'>TestGetTokens.test_05_token_score</data></a></td>
<td>5</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td class="right" data-ratio="5 5">100%</td>
</tr>
<tr class="region">
<td class="name left"><a href="test_main_py.html#t93">test_main.py</a></td>
<td class="name left"><a href="test_main_py.html#t93"><data value='test_06_sentence_statistics_classifications'>TestGetTokens.test_06_sentence_statistics_classifications</data></a></td>
<td>26</td>
<td>1</td>
<td>0</td>
<td>10</td>
<td>2</td>
<td class="right" data-ratio="33 36">92%</td>
</tr>
<tr class="region">
<td class="name left"><a href="test_main_py.html#t134">test_main.py</a></td>
<td class="name left"><a href="test_main_py.html#t134"><data value='test_07_token_statistics_score'>TestGetTokens.test_07_token_statistics_score</data></a></td>
<td>21</td>
<td>1</td>
<td>0</td>
<td>10</td>
<td>2</td>
<td class="right" data-ratio="28 31">90%</td>
</tr>
<tr class="region">
<td class="name left"><a href="test_main_py.html#t167">test_main.py</a></td>
<td class="name left"><a href="test_main_py.html#t167"><data value='test_08_save_stop_words'>TestGetTokens.test_08_save_stop_words</data></a></td>
<td>7</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td class="right" data-ratio="7 7">100%</td>
</tr>
<tr class="region">
<td class="name left"><a href="test_main_py.html#t178">test_main.py</a></td>
<td class="name left"><a href="test_main_py.html#t178"><data value='test_09_non_stop_stats_classifications'>TestGetTokens.test_09_non_stop_stats_classifications</data></a></td>
<td>32</td>
<td>1</td>
<td>0</td>
<td>10</td>
<td>2</td>
<td class="right" data-ratio="39 42">93%</td>
</tr>
<tr class="region">
<td class="name left"><a href="test_main_py.html#t227">test_main.py</a></td>
<td class="name left"><a href="test_main_py.html#t227"><data value='test_10_non_stop_stats_score'>TestGetTokens.test_10_non_stop_stats_score</data></a></td>
<td>25</td>
<td>1</td>
<td>0</td>
<td>10</td>
<td>2</td>
<td class="right" data-ratio="32 35">91%</td>
</tr>
<tr class="region">
<td class="name left"><a href="test_main_py.html">test_main.py</a></td>
<td class="name left"><a href="test_main_py.html"><data value=''><span class='no-noun'>(no function)</span></data></a></td>
<td>18</td>
<td>1</td>
<td>0</td>
<td>2</td>
<td>1</td>
<td class="right" data-ratio="18 20">90%</td>
</tr>
</tbody>
<tfoot>
<tr class="total">
<td class="name left">Total</td>
<td class="name left">&nbsp;</td>
<td>393</td>
<td>145</td>
<td>0</td>
<td>152</td>
<td>14</td>
<td class="right" data-ratio="316 545">58%</td>
</tr>
</tfoot>
</table>
<p id="no_rows">
No items found using the specified filter.
</p>
</main>
<footer>
<div class="content">
<p>
<a class="nav" href="https://coverage.readthedocs.io/en/7.7.0">coverage.py v7.7.0</a>,
created at 2025-03-16 20:40 -0500
</p>
</div>
<aside class="hidden">
<a id="prevFileLink" class="nav" href=""></a>
<a id="nextFileLink" class="nav" href=""></a>
<button type="button" class="button_prev_file" data-shortcut="["></button>
<button type="button" class="button_next_file" data-shortcut="]"></button>
<button type="button" class="button_show_hide_help" data-shortcut="?"></button>
</aside>
</footer>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Coverage report</title>
<link rel="icon" sizes="32x32" href="favicon_32_cb_58284776.png">
<link rel="stylesheet" href="style_cb_718ce007.css" type="text/css">
<script src="coverage_html_cb_497bf287.js" defer></script>
</head>
<body class="indexfile">
<header>
<div class="content">
<h1>Coverage report:
<span class="pc_cov">58%</span>
</h1>
<aside id="help_panel_wrapper">
<input id="help_panel_state" type="checkbox">
<label for="help_panel_state">
<img id="keyboard_icon" src="keybd_closed_cb_ce680311.png" alt="Show/hide keyboard shortcuts">
</label>
<div id="help_panel">
<p class="legend">Shortcuts on this page</p>
<div class="keyhelp">
<p>
<kbd>f</kbd>
<kbd>s</kbd>
<kbd>m</kbd>
<kbd>x</kbd>
<kbd>b</kbd>
<kbd>p</kbd>
<kbd>c</kbd>
&nbsp; change column sorting
</p>
<p>
<kbd>[</kbd>
<kbd>]</kbd>
&nbsp; prev/next file
</p>
<p>
<kbd>?</kbd> &nbsp; show/hide this help
</p>
</div>
</div>
</aside>
<form id="filter_container">
<input id="filter" type="text" value="" placeholder="filter...">
<div>
<input id="hide100" type="checkbox" >
<label for="hide100">hide covered</label>
</div>
</form>
<h2>
<a class="button current">Files</a>
<a class="button" href="function_index.html">Functions</a>
<a class="button" href="class_index.html">Classes</a>
</h2>
<p class="text">
<a class="nav" href="https://coverage.readthedocs.io/en/7.7.0">coverage.py v7.7.0</a>,
created at 2025-03-16 20:40 -0500
</p>
</div>
</header>
<main id="index">
<table class="index" data-sortable>
<thead>
<tr class="tablehead" title="Click to sort">
<th id="file" class="name left" aria-sort="none" data-shortcut="f">File<span class="arrows"></span></th>
<th id="statements" aria-sort="none" data-default-sort-order="descending" data-shortcut="s">statements<span class="arrows"></span></th>
<th id="missing" aria-sort="none" data-default-sort-order="descending" data-shortcut="m">missing<span class="arrows"></span></th>
<th id="excluded" aria-sort="none" data-default-sort-order="descending" data-shortcut="x">excluded<span class="arrows"></span></th>
<th id="branches" aria-sort="none" data-default-sort-order="descending" data-shortcut="b">branches<span class="arrows"></span></th>
<th id="partial" aria-sort="none" data-default-sort-order="descending" data-shortcut="p">partial<span class="arrows"></span></th>
<th id="coverage" class="right" aria-sort="none" data-shortcut="c">coverage<span class="arrows"></span></th>
</tr>
</thead>
<tbody>
<tr class="region">
<td class="name left"><a href="sentiment_py.html">sentiment.py</a></td>
<td>223</td>
<td>140</td>
<td>0</td>
<td>110</td>
<td>5</td>
<td class="right" data-ratio="118 333">35%</td>
</tr>
<tr class="region">
<td class="name left"><a href="test_main_py.html">test_main.py</a></td>
<td>170</td>
<td>5</td>
<td>0</td>
<td>42</td>
<td>9</td>
<td class="right" data-ratio="198 212">93%</td>
</tr>
</tbody>
<tfoot>
<tr class="total">
<td class="name left">Total</td>
<td>393</td>
<td>145</td>
<td>0</td>
<td>152</td>
<td>14</td>
<td class="right" data-ratio="316 545">58%</td>
</tr>
</tfoot>
</table>
<p id="no_rows">
No items found using the specified filter.
</p>
</main>
<footer>
<div class="content">
<p>
<a class="nav" href="https://coverage.readthedocs.io/en/7.7.0">coverage.py v7.7.0</a>,
created at 2025-03-16 20:40 -0500
</p>
</div>
<aside class="hidden">
<a id="prevFileLink" class="nav" href="test_main_py.html"></a>
<a id="nextFileLink" class="nav" href="sentiment_py.html"></a>
<button type="button" class="button_prev_file" data-shortcut="["></button>
<button type="button" class="button_next_file" data-shortcut="]"></button>
<button type="button" class="button_show_hide_help" data-shortcut="?"></button>
</aside>
</footer>
</body>
</html>
htmlcov/keybd_closed_cb_ce680311.png

8.79 KiB

This diff is collapsed.
{"note":"This file is an internal implementation detail to speed up HTML report generation. Its format can change at any time. You might be looking for the JSON report: https://coverage.rtfd.io/cmd.html#cmd-json","format":5,"version":"7.7.0","globals":"622450a644621a4facfb335d884ea345","files":{"sentiment_py":{"hash":"45a5e1ba16a16d0fe7a114d98747504a","index":{"url":"sentiment_py.html","file":"sentiment.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":223,"n_excluded":0,"n_missing":140,"n_branches":110,"n_partial_branches":5,"n_missing_branches":75}}},"test_main_py":{"hash":"bede8dee9a6461472464a359fd663141","index":{"url":"test_main_py.html","file":"test_main.py","description":"","nums":{"precision":0,"n_files":1,"n_statements":170,"n_excluded":0,"n_missing":5,"n_branches":42,"n_partial_branches":9,"n_missing_branches":9}}}}}
\ No newline at end of file
@charset "UTF-8";
/* Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 */
/* For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt */
/* Don't edit this .css file. Edit the .scss file instead! */
html, body, h1, h2, h3, p, table, td, th { margin: 0; padding: 0; border: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 1em; background: #fff; color: #000; }
@media (prefers-color-scheme: dark) { body { background: #1e1e1e; } }
@media (prefers-color-scheme: dark) { body { color: #eee; } }
html > body { font-size: 16px; }
a:active, a:focus { outline: 2px dashed #007acc; }
p { font-size: .875em; line-height: 1.4em; }
table { border-collapse: collapse; }
td { vertical-align: top; }
table tr.hidden { display: none !important; }
p#no_rows { display: none; font-size: 1.15em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
a.nav { text-decoration: none; color: inherit; }
a.nav:hover { text-decoration: underline; color: inherit; }
.hidden { display: none; }
header { background: #f8f8f8; width: 100%; z-index: 2; border-bottom: 1px solid #ccc; }
@media (prefers-color-scheme: dark) { header { background: black; } }
@media (prefers-color-scheme: dark) { header { border-color: #333; } }
header .content { padding: 1rem 3.5rem; }
header h2 { margin-top: .5em; font-size: 1em; }
header h2 a.button { font-family: inherit; font-size: inherit; border: 1px solid; border-radius: .2em; background: #eee; color: inherit; text-decoration: none; padding: .1em .5em; margin: 1px calc(.1em + 1px); cursor: pointer; border-color: #ccc; }
@media (prefers-color-scheme: dark) { header h2 a.button { background: #333; } }
@media (prefers-color-scheme: dark) { header h2 a.button { border-color: #444; } }
header h2 a.button.current { border: 2px solid; background: #fff; border-color: #999; cursor: default; }
@media (prefers-color-scheme: dark) { header h2 a.button.current { background: #1e1e1e; } }
@media (prefers-color-scheme: dark) { header h2 a.button.current { border-color: #777; } }
header p.text { margin: .5em 0 -.5em; color: #666; font-style: italic; }
@media (prefers-color-scheme: dark) { header p.text { color: #aaa; } }
header.sticky { position: fixed; left: 0; right: 0; height: 2.5em; }
header.sticky .text { display: none; }
header.sticky h1, header.sticky h2 { font-size: 1em; margin-top: 0; display: inline-block; }
header.sticky .content { padding: 0.5rem 3.5rem; }
header.sticky .content p { font-size: 1em; }
header.sticky ~ #source { padding-top: 6.5em; }
main { position: relative; z-index: 1; }
footer { margin: 1rem 3.5rem; }
footer .content { padding: 0; color: #666; font-style: italic; }
@media (prefers-color-scheme: dark) { footer .content { color: #aaa; } }
#index { margin: 1rem 0 0 3.5rem; }
h1 { font-size: 1.25em; display: inline-block; }
#filter_container { float: right; margin: 0 2em 0 0; line-height: 1.66em; }
#filter_container #filter { width: 10em; padding: 0.2em 0.5em; border: 2px solid #ccc; background: #fff; color: #000; }
@media (prefers-color-scheme: dark) { #filter_container #filter { border-color: #444; } }
@media (prefers-color-scheme: dark) { #filter_container #filter { background: #1e1e1e; } }
@media (prefers-color-scheme: dark) { #filter_container #filter { color: #eee; } }
#filter_container #filter:focus { border-color: #007acc; }
#filter_container :disabled ~ label { color: #ccc; }
@media (prefers-color-scheme: dark) { #filter_container :disabled ~ label { color: #444; } }
#filter_container label { font-size: .875em; color: #666; }
@media (prefers-color-scheme: dark) { #filter_container label { color: #aaa; } }
header button { font-family: inherit; font-size: inherit; border: 1px solid; border-radius: .2em; background: #eee; color: inherit; text-decoration: none; padding: .1em .5em; margin: 1px calc(.1em + 1px); cursor: pointer; border-color: #ccc; }
@media (prefers-color-scheme: dark) { header button { background: #333; } }
@media (prefers-color-scheme: dark) { header button { border-color: #444; } }
header button:active, header button:focus { outline: 2px dashed #007acc; }
header button.run { background: #eeffee; }
@media (prefers-color-scheme: dark) { header button.run { background: #373d29; } }
header button.run.show_run { background: #dfd; border: 2px solid #00dd00; margin: 0 .1em; }
@media (prefers-color-scheme: dark) { header button.run.show_run { background: #373d29; } }
header button.mis { background: #ffeeee; }
@media (prefers-color-scheme: dark) { header button.mis { background: #4b1818; } }
header button.mis.show_mis { background: #fdd; border: 2px solid #ff0000; margin: 0 .1em; }
@media (prefers-color-scheme: dark) { header button.mis.show_mis { background: #4b1818; } }
header button.exc { background: #f7f7f7; }
@media (prefers-color-scheme: dark) { header button.exc { background: #333; } }
header button.exc.show_exc { background: #eee; border: 2px solid #808080; margin: 0 .1em; }
@media (prefers-color-scheme: dark) { header button.exc.show_exc { background: #333; } }
header button.par { background: #ffffd5; }
@media (prefers-color-scheme: dark) { header button.par { background: #650; } }
header button.par.show_par { background: #ffa; border: 2px solid #bbbb00; margin: 0 .1em; }
@media (prefers-color-scheme: dark) { header button.par.show_par { background: #650; } }
#help_panel, #source p .annotate.long { display: none; position: absolute; z-index: 999; background: #ffffcc; border: 1px solid #888; border-radius: .2em; color: #333; padding: .25em .5em; }
#source p .annotate.long { white-space: normal; float: right; top: 1.75em; right: 1em; height: auto; }
#help_panel_wrapper { float: right; position: relative; }
#keyboard_icon { margin: 5px; }
#help_panel_state { display: none; }
#help_panel { top: 25px; right: 0; padding: .75em; border: 1px solid #883; color: #333; }
#help_panel .keyhelp p { margin-top: .75em; }
#help_panel .legend { font-style: italic; margin-bottom: 1em; }
.indexfile #help_panel { width: 25em; }
.pyfile #help_panel { width: 18em; }
#help_panel_state:checked ~ #help_panel { display: block; }
kbd { border: 1px solid black; border-color: #888 #333 #333 #888; padding: .1em .35em; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-weight: bold; background: #eee; border-radius: 3px; }
#source { padding: 1em 0 1em 3.5rem; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
#source p { position: relative; white-space: pre; }
#source p * { box-sizing: border-box; }
#source p .n { float: left; text-align: right; width: 3.5rem; box-sizing: border-box; margin-left: -3.5rem; padding-right: 1em; color: #999; user-select: none; }
@media (prefers-color-scheme: dark) { #source p .n { color: #777; } }
#source p .n.highlight { background: #ffdd00; }
#source p .n a { scroll-margin-top: 6em; text-decoration: none; color: #999; }
@media (prefers-color-scheme: dark) { #source p .n a { color: #777; } }
#source p .n a:hover { text-decoration: underline; color: #999; }
@media (prefers-color-scheme: dark) { #source p .n a:hover { color: #777; } }
#source p .t { display: inline-block; width: 100%; box-sizing: border-box; margin-left: -.5em; padding-left: 0.3em; border-left: 0.2em solid #fff; }
@media (prefers-color-scheme: dark) { #source p .t { border-color: #1e1e1e; } }
#source p .t:hover { background: #f2f2f2; }
@media (prefers-color-scheme: dark) { #source p .t:hover { background: #282828; } }
#source p .t:hover ~ .r .annotate.long { display: block; }
#source p .t .com { color: #008000; font-style: italic; line-height: 1px; }
@media (prefers-color-scheme: dark) { #source p .t .com { color: #6a9955; } }
#source p .t .key { font-weight: bold; line-height: 1px; }
#source p .t .str { color: #0451a5; }
@media (prefers-color-scheme: dark) { #source p .t .str { color: #9cdcfe; } }
#source p.mis .t { border-left: 0.2em solid #ff0000; }
#source p.mis.show_mis .t { background: #fdd; }
@media (prefers-color-scheme: dark) { #source p.mis.show_mis .t { background: #4b1818; } }
#source p.mis.show_mis .t:hover { background: #f2d2d2; }
@media (prefers-color-scheme: dark) { #source p.mis.show_mis .t:hover { background: #532323; } }
#source p.run .t { border-left: 0.2em solid #00dd00; }
#source p.run.show_run .t { background: #dfd; }
@media (prefers-color-scheme: dark) { #source p.run.show_run .t { background: #373d29; } }
#source p.run.show_run .t:hover { background: #d2f2d2; }
@media (prefers-color-scheme: dark) { #source p.run.show_run .t:hover { background: #404633; } }
#source p.exc .t { border-left: 0.2em solid #808080; }
#source p.exc.show_exc .t { background: #eee; }
@media (prefers-color-scheme: dark) { #source p.exc.show_exc .t { background: #333; } }
#source p.exc.show_exc .t:hover { background: #e2e2e2; }
@media (prefers-color-scheme: dark) { #source p.exc.show_exc .t:hover { background: #3c3c3c; } }
#source p.par .t { border-left: 0.2em solid #bbbb00; }
#source p.par.show_par .t { background: #ffa; }
@media (prefers-color-scheme: dark) { #source p.par.show_par .t { background: #650; } }
#source p.par.show_par .t:hover { background: #f2f2a2; }
@media (prefers-color-scheme: dark) { #source p.par.show_par .t:hover { background: #6d5d0c; } }
#source p .r { position: absolute; top: 0; right: 2.5em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
#source p .annotate { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; color: #666; padding-right: .5em; }
@media (prefers-color-scheme: dark) { #source p .annotate { color: #ddd; } }
#source p .annotate.short:hover ~ .long { display: block; }
#source p .annotate.long { width: 30em; right: 2.5em; }
#source p input { display: none; }
#source p input ~ .r label.ctx { cursor: pointer; border-radius: .25em; }
#source p input ~ .r label.ctx::before { content: "▶ "; }
#source p input ~ .r label.ctx:hover { background: #e8f4ff; color: #666; }
@media (prefers-color-scheme: dark) { #source p input ~ .r label.ctx:hover { background: #0f3a42; } }
@media (prefers-color-scheme: dark) { #source p input ~ .r label.ctx:hover { color: #aaa; } }
#source p input:checked ~ .r label.ctx { background: #d0e8ff; color: #666; border-radius: .75em .75em 0 0; padding: 0 .5em; margin: -.25em 0; }
@media (prefers-color-scheme: dark) { #source p input:checked ~ .r label.ctx { background: #056; } }
@media (prefers-color-scheme: dark) { #source p input:checked ~ .r label.ctx { color: #aaa; } }
#source p input:checked ~ .r label.ctx::before { content: "▼ "; }
#source p input:checked ~ .ctxs { padding: .25em .5em; overflow-y: scroll; max-height: 10.5em; }
#source p label.ctx { color: #999; display: inline-block; padding: 0 .5em; font-size: .8333em; }
@media (prefers-color-scheme: dark) { #source p label.ctx { color: #777; } }
#source p .ctxs { display: block; max-height: 0; overflow-y: hidden; transition: all .2s; padding: 0 .5em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; white-space: nowrap; background: #d0e8ff; border-radius: .25em; margin-right: 1.75em; text-align: right; }
@media (prefers-color-scheme: dark) { #source p .ctxs { background: #056; } }
#index { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.875em; }
#index table.index { margin-left: -.5em; }
#index td, #index th { text-align: right; padding: .25em .5em; border-bottom: 1px solid #eee; }
@media (prefers-color-scheme: dark) { #index td, #index th { border-color: #333; } }
#index td.name, #index th.name { text-align: left; width: auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; min-width: 15em; }
#index th { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-style: italic; color: #333; cursor: pointer; }
@media (prefers-color-scheme: dark) { #index th { color: #ddd; } }
#index th:hover { background: #eee; }
@media (prefers-color-scheme: dark) { #index th:hover { background: #333; } }
#index th .arrows { color: #666; font-size: 85%; font-family: sans-serif; font-style: normal; pointer-events: none; }
#index th[aria-sort="ascending"], #index th[aria-sort="descending"] { white-space: nowrap; background: #eee; padding-left: .5em; }
@media (prefers-color-scheme: dark) { #index th[aria-sort="ascending"], #index th[aria-sort="descending"] { background: #333; } }
#index th[aria-sort="ascending"] .arrows::after { content: " ▲"; }
#index th[aria-sort="descending"] .arrows::after { content: " ▼"; }
#index td.name { font-size: 1.15em; }
#index td.name a { text-decoration: none; color: inherit; }
#index td.name .no-noun { font-style: italic; }
#index tr.total td, #index tr.total_dynamic td { font-weight: bold; border-top: 1px solid #ccc; border-bottom: none; }
#index tr.region:hover { background: #eee; }
@media (prefers-color-scheme: dark) { #index tr.region:hover { background: #333; } }
#index tr.region:hover td.name { text-decoration: underline; color: inherit; }
#scroll_marker { position: fixed; z-index: 3; right: 0; top: 0; width: 16px; height: 100%; background: #fff; border-left: 1px solid #eee; will-change: transform; }
@media (prefers-color-scheme: dark) { #scroll_marker { background: #1e1e1e; } }
@media (prefers-color-scheme: dark) { #scroll_marker { border-color: #333; } }
#scroll_marker .marker { background: #ccc; position: absolute; min-height: 3px; width: 100%; }
@media (prefers-color-scheme: dark) { #scroll_marker .marker { background: #444; } }
This diff is collapsed.
import unittest import unittest
import sentiment
from sentiment import get_tokens, score_compute, save_stop_words from sentiment import get_tokens, score_compute, save_stop_words
import os import os
...@@ -7,27 +8,21 @@ class TestGetTokens(unittest.TestCase): ...@@ -7,27 +8,21 @@ class TestGetTokens(unittest.TestCase):
# creates file path to sentiment.txt file # creates file path to sentiment.txt file
def setUp(self): def setUp(self):
self.reviews = [] self.reviews = []
base_dir = os.path.dirname(os.path.abspath(__file__))
sentiment_dir = os.path.join(base_dir, "..")
file_path = os.path.join(sentiment_dir, "sentiment.txt")
with open(file_path, "r", encoding="utf-8") as file:
self.reviews = file.readlines()
self.review_tokens_set = set() self.review_tokens_set = set()
self.review_tokens_list = [] # Ensure it's initialized self.review_tokens_list = []
self.positive_reviews_list, self.neutral_reviews_list, self.negative_reviews_list = [], [], [] self.positive_reviews_list, self.neutral_reviews_list, self.negative_reviews_list = [], [], []
self.positive_reviews_set, self.neutral_reviews_set, self.negative_reviews_set = set(), set(), set() self.positive_reviews_set, self.neutral_reviews_set, self.negative_reviews_set = set(), set(), set()
get_tokens( sentiment.read_file(self.reviews)
sentiment.get_tokens(
self.reviews, self.reviews,
self.review_tokens_set, self.review_tokens_list, self.review_tokens_set, self.review_tokens_list,
self.positive_reviews_list, self.neutral_reviews_list, self.negative_reviews_list, self.positive_reviews_list, self.neutral_reviews_list, self.negative_reviews_list,
self.positive_reviews_set, self.neutral_reviews_set, self.negative_reviews_set self.positive_reviews_set, self.neutral_reviews_set, self.negative_reviews_set
) )
self.stop_words = sentiment.get_stop_words()
self.output_file = "output.txt" self.output_file = "output.txt"
if os.path.exists(self.output_file):
os.remove(self.output_file)
def test_01_token_count(self): def test_01_token_count(self):
review_tokens_set = set() review_tokens_set = set()
...@@ -70,10 +65,6 @@ class TestGetTokens(unittest.TestCase): ...@@ -70,10 +65,6 @@ class TestGetTokens(unittest.TestCase):
self.assertEqual(neutral_counter, expected_neutral, f"Incorrect neutral count for '{target_token}'") self.assertEqual(neutral_counter, expected_neutral, f"Incorrect neutral count for '{target_token}'")
self.assertEqual(positive_counter, expected_positive, f"Incorrect positive count for '{target_token}'") self.assertEqual(positive_counter, expected_positive, f"Incorrect positive count for '{target_token}'")
print(f'\nTest 3 - Token Statistics: \nThe token "{target_token}" has {negative_counter} negative, ' print(f'\nTest 3 - Token Statistics: \nThe token "{target_token}" has {negative_counter} negative, '
f'{neutral_counter} neutral, and {positive_counter} positive appearance(s) in the training data.') f'{neutral_counter} neutral, and {positive_counter} positive appearance(s) in the training data.')
......
,
.
a
i
'
is
of
or
in
by
so
it
's
an
to
be
on
at
if
as
--
and
all
the
are
has
one
n't
but
his
...
its
for
you
not
this
with
like
from
that
more
than
film
what
have
about
story
movie
-lrb-
-rrb-
there
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment