<commit_before>\section{\module{curses.panel} ---
         A panel stack extension for curses.}

\declaremodule{standard}{curses.panel}
\sectionauthor{<NAME>}{<EMAIL>}
\modulesynopsis{A panel stack extension that adds depth to 
                curses windows.}

Panels are windows with the added feature of depth, so they can be
stacked on top of each other, and only the visible portions of
each window will be displayed.  Panels can be added, moved up
or down in the stack, and removed. 

\subsection{Functions \label{cursespanel-functions}}

The module \module{curses.panel} defines the following functions:


\begin{funcdesc}{bottom_panel}{}
Returns the bottom panel in the panel stack.
\end{funcdesc}

\begin{funcdesc}{new_panel}{win}
Returns a panel object, associating it with the given window \var{win}.
\end{funcdesc}

\begin{funcdesc}{top_panel}{}
Returns the top panel in the panel stack.
\end{funcdesc}

\begin{funcdesc}{update_panels}{}
Updates the virtual screen after changes in the panel stack. This does<commit_msg>Bug #1484978: curses.panel: clarify that Panel objects are destroyed on garbage collection.<commit_after>\section{\module{curses.panel} ---
         A panel stack extension for curses.}

\declaremodule{standard}{curses.panel}
\sectionauthor{<NAME>}{<EMAIL>}
\modulesynopsis{A panel stack extension that adds depth to 
                curses windows.}

Panels are windows with the added feature of depth, so they can be
stacked on top of each other, and only the visible portions of
each window will be displayed.  Panels can be added, moved up
or down in the stack, and removed. 

\subsection{Functions \label{cursespanel-functions}}

The module \module{curses.panel} defines the following functions:


\begin{funcdesc}{bottom_panel}{}
Returns the bottom panel in the panel stack.
\end{funcdesc}

\begin{funcdesc}{new_panel}{win}
Returns a panel object, associating it with the given window \var{win}.
Be aware that you need to keep the returned panel object referenced
explicitly.  If you don't, the panel object is garbage collected and
removed from the panel stack.
\end{funcdesc}

\begin{funcdesc}{top_panel}{}
Returns the top panel in the panel stack.
\end{funcdesc}

\begin{funcdesc}{update_panels}{}
Updates the virtual screen after changes in the panel stack. This does
{'fraction_non_alphanumeric': 0.08705067128627111, 'fraction_numerical': 0.0030316154179298397, 'mean_word_length': 4.566265060240964, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1848122', 'n_tokens_mistral': 662, 'n_tokens_neox': 660, 'n_words': 272}