<commit_before>/***************************************************************

  Copyright (C) DSTC Pty Ltd (ACN 052 372 577) 2001.
  Unpublished work.  All Rights Reserved.

  The software contained on this media is the property of the
  DSTC Pty Ltd.  Use of this software is strictly in accordance
  with the license agreement in the accompanying LICENSE.DOC
  file.  If your distribution of this software does not contain
  a LICENSE.DOC file then you have no rights to use this
  software in any manner and should contact DSTC at the address
  below to determine an appropriate licensing arrangement.

     DSTC Pty Ltd
     Level 7, GP South
     University of Queensland
     St Lucia, 4072
     Australia
     Tel: +61 7 3365 4310
     Fax: +61 7 3365 4311
     Email: <EMAIL>

  This software is being provided "AS IS" without warranty of
  any kind.  In no event shall DSTC Pty Ltd be liable for
  damage of any kind arising out of or in connection with
  the use or performance of this software.

****************************************************************/

#ifndef HISTORY_H
#define HISTORY_H

#ifndef lint
static const char cvs_HISTORY_H[] = "$Id: History.h,v 1.9 2002/04/08 14:54:30 phelps Exp $";
#endif /* lint */


/*
  A threaded mesage History widget

 Class:		historyWidgetClass
 Class Name:	History
 Superclass:	Core

 Resources added by the History widget:

 Name		     Class		RepType		Default Value
 ----		     -----		-------		-------------
 font		     Font		XFontStruct *	XtDefaultFont
 timestampPixel	     TimestampPixel	Pixel		Black
 groupPixel	     GroupPixel		Pixel		Blue
 userPixel	     UserPixel		Pixel		Green
 stringPixel	     StringPixel	Pixel		Red
 separatorPixel	     SeparatorPixel	Pixel		Black
 marginWidth	     MarginWidth	Dimension	5
 marginHeight	     MarginHeight	Dimension	5
 messageCount	     MessageCount	Dimension	32
 selectionPixel	     SelectionPixel	Pixel		Gray
 dragDelay	     DragDelay		int		100

 background	     Background		Pixel		XtDefaultBackground
 border		     BorderColor	Pixel		XtDefaultForeground
 borderWidth	     BorderWidth	Dimension	1
 cursor		     Cursor		Cursor		None
 cursorName	     Cursor		String		NULL
 destroyCallback     Callback		Pointer		NULL
 height		     Height		Dimension	0
 insensitiveBorder   Insensitive	Pixmap		Gray
 mappedWhenManaged   MappedWhenManaged	Boolean		True
 pointerColor        Foreground         Pixel           XtDefaultForeground
 pointerColorBackground Background      Pixel           XtDefaultBackground
 sensitive	     Sensitive		Boolean		True
 width		     Width		Dimension	0
 x		     Position		Position	0
 y		     Position		Position	0

*/

#ifndef XtNattachmentCallback
# define XtNattachmentCallback "attachmentCallback"
#endif
#ifndef XtNmotionCallback
# define XtNmotionCallback "motionCallback"
#endif
#ifndef XtNtimestampPixel
# define XtNtimestampPixel "timestampPixel"
#endif
#ifndef XtCTimestampPixel
# define XtCTimestampPixel "TimestampPixel"
#endif
#ifndef XtNgroupPixel
# define XtNgroupPixel "groupPixel"
#endif
#ifndef XtCGroupPixel
# define XtCGroupPixel "GroupPixel"
#endif
#ifndef XtNuserPixel
# define XtNuserPixel "userPixel"
#endif
#ifndef XtCUserPixel
# define XtCUserPixel "UserPixel"
#endif
#ifndef XtNstringPixel
# define XtNstringPixel "stringPixel"
#endif
#ifndef XtCStringPixel
# define XtCStringPixel "StringPixel"
#endif
#ifndef XtNseparatorPixel
# define XtNseparatorPixel "separatorPixel"
#endif
#ifndef XtCSeparatorPixel
# define XtCSeparatorPixel "SeparatorPixel"
#endif
#ifndef XtNmarginWidth
# define XtNmarginWidth "marginWidth"
#endif
#ifndef XtCMarginWidth
# define XtCMarginWidth "MarginWidth"
#endif
#ifndef XtNmarginHeight
# define XtNmarginHeight "marginHeight"
#endif
#ifndef XtCMarginHeight
# define XtCMarginHeight "MarginHeight"
#endif
#ifndef XtNmessageCapacity
# define XtNmessageCapacity "messageCapacity"
#endif
#ifndef XtCMessageCapacity
# define XtCMessageCapacity "MessageCapacity"
#endif
#ifndef XtNselectionPixel
# define XtNselectionPixel "selectionPixel"
#endif
#ifndef XtCSelectionPixel
# define XtCSelectionPixel "SelectionPixel"
#endif
#ifndef XtNdragDelay
# define XtNdragDelay "dragDelay"
#endif
#ifndef XtCDragDelay
# define XtCDragDelay "DragDelay"
#endif


typedef struct _HistoryClassRec *HistoryWidgetClass;
typedef struct _HistoryRec *HistoryWidget;

extern WidgetClass historyWidgetClass;

/*
 *
 * Public methods
 *
 */

/* Set the widget's display to be threaded or not */
void HistorySetThreaded(Widget widget, Boolean is_threaded);

/* Returns whether or not the history is threaded */
Boolean HistoryIsThreaded(Widget widget);

/* Set the widget's display to show timestamps or not */
void HistorySetShowTimestamps(Widget widget, Boolean show_timestamps);

/* Returns whether or not the timestamps are visible */
Boolean HistoryIsShowingTimestamps(Widget widget);


/* Adds a new message to the History */
void HistoryAddMessage(Widget widget, message_t message);

/* Kills the thread of the given message */
void HistoryKillThread(Widget widget, message_t message);

/* Returns whether or not a given message is in a killed thread */
Boolean HistoryIsMessageKilled(Widget widget, message_t message);

/* Selects a message in the history */
void HistorySelect(Widget widget, message_t message);

/* Returns the selected message or NULL if none is selected */
message_t HistoryGetSelection(Widget widget);

<commit_msg>Removed signature for unused function.<commit_after>/***************************************************************

  Copyright (C) DSTC Pty Ltd (ACN 052 372 577) 2001.
  Unpublished work.  All Rights Reserved.

  The software contained on this media is the property of the
  DSTC Pty Ltd.  Use of this software is strictly in accordance
  with the license agreement in the accompanying LICENSE.DOC
  file.  If your distribution of this software does not contain
  a LICENSE.DOC file then you have no rights to use this
  software in any manner and should contact DSTC at the address
  below to determine an appropriate licensing arrangement.

     DSTC Pty Ltd
     Level 7, GP South
     University of Queensland
     St Lucia, 4072
     Australia
     Tel: +61 7 3365 4310
     Fax: +61 7 3365 4311
     Email: <EMAIL>

  This software is being provided "AS IS" without warranty of
  any kind.  In no event shall DSTC Pty Ltd be liable for
  damage of any kind arising out of or in connection with
  the use or performance of this software.

****************************************************************/

#ifndef HISTORY_H
#define HISTORY_H

#ifndef lint
static const char cvs_HISTORY_H[] = "$Id: History.h,v 1.10 2002/04/12 13:21:53 phelps Exp $";
#endif /* lint */


/*
  A threaded mesage History widget

 Class:		historyWidgetClass
 Class Name:	History
 Superclass:	Core

 Resources added by the History widget:

 Name		     Class		RepType		Default Value
 ----		     -----		-------		-------------
 font		     Font		XFontStruct *	XtDefaultFont
 timestampPixel	     TimestampPixel	Pixel		Black
 groupPixel	     GroupPixel		Pixel		Blue
 userPixel	     UserPixel		Pixel		Green
 stringPixel	     StringPixel	Pixel		Red
 separatorPixel	     SeparatorPixel	Pixel		Black
 marginWidth	     MarginWidth	Dimension	5
 marginHeight	     MarginHeight	Dimension	5
 messageCount	     MessageCount	Dimension	32
 selectionPixel	     SelectionPixel	Pixel		Gray
 dragDelay	     DragDelay		int		100

 background	     Background		Pixel		XtDefaultBackground
 border		     BorderColor	Pixel		XtDefaultForeground
 borderWidth	     BorderWidth	Dimension	1
 cursor		     Cursor		Cursor		None
 cursorName	     Cursor		String		NULL
 destroyCallback     Callback		Pointer		NULL
 height		     Height		Dimension	0
 insensitiveBorder   Insensitive	Pixmap		Gray
 mappedWhenManaged   MappedWhenManaged	Boolean		True
 pointerColor        Foreground         Pixel           XtDefaultForeground
 pointerColorBackground Background      Pixel           XtDefaultBackground
 sensitive	     Sensitive		Boolean		True
 width		     Width		Dimension	0
 x		     Position		Position	0
 y		     Position		Position	0

*/

#ifndef XtNattachmentCallback
# define XtNattachmentCallback "attachmentCallback"
#endif
#ifndef XtNmotionCallback
# define XtNmotionCallback "motionCallback"
#endif
#ifndef XtNtimestampPixel
# define XtNtimestampPixel "timestampPixel"
#endif
#ifndef XtCTimestampPixel
# define XtCTimestampPixel "TimestampPixel"
#endif
#ifndef XtNgroupPixel
# define XtNgroupPixel "groupPixel"
#endif
#ifndef XtCGroupPixel
# define XtCGroupPixel "GroupPixel"
#endif
#ifndef XtNuserPixel
# define XtNuserPixel "userPixel"
#endif
#ifndef XtCUserPixel
# define XtCUserPixel "UserPixel"
#endif
#ifndef XtNstringPixel
# define XtNstringPixel "stringPixel"
#endif
#ifndef XtCStringPixel
# define XtCStringPixel "StringPixel"
#endif
#ifndef XtNseparatorPixel
# define XtNseparatorPixel "separatorPixel"
#endif
#ifndef XtCSeparatorPixel
# define XtCSeparatorPixel "SeparatorPixel"
#endif
#ifndef XtNmarginWidth
# define XtNmarginWidth "marginWidth"
#endif
#ifndef XtCMarginWidth
# define XtCMarginWidth "MarginWidth"
#endif
#ifndef XtNmarginHeight
# define XtNmarginHeight "marginHeight"
#endif
#ifndef XtCMarginHeight
# define XtCMarginHeight "MarginHeight"
#endif
#ifndef XtNmessageCapacity
# define XtNmessageCapacity "messageCapacity"
#endif
#ifndef XtCMessageCapacity
# define XtCMessageCapacity "MessageCapacity"
#endif
#ifndef XtNselectionPixel
# define XtNselectionPixel "selectionPixel"
#endif
#ifndef XtCSelectionPixel
# define XtCSelectionPixel "SelectionPixel"
#endif
#ifndef XtNdragDelay
# define XtNdragDelay "dragDelay"
#endif
#ifndef XtCDragDelay
# define XtCDragDelay "DragDelay"
#endif


typedef struct _HistoryClassRec *HistoryWidgetClass;
typedef struct _HistoryRec *HistoryWidget;

extern WidgetClass historyWidgetClass;

/*
 *
 * Public methods
 *
 */

/* Set the widget's display to be threaded or not */
void HistorySetThreaded(Widget widget, Boolean is_threaded);

/* Returns whether or not the history is threaded */
Boolean HistoryIsThreaded(Widget widget);

/* Set the widget's display to show timestamps or not */
void HistorySetShowTimestamps(Widget widget, Boolean show_timestamps);

/* Returns whether or not the timestamps are visible */
Boolean HistoryIsShowingTimestamps(Widget widget);


/* Adds a new message to the History */
void HistoryAddMessage(Widget widget, message_t message);

/* Kills the thread of the given message */
void HistoryKillThread(Widget widget, message_t message);

/* Selects a message in the history */
void HistorySelect(Widget widget, message_t message);

/* Returns the selected message or NULL if none is selected */
message_t HistoryGetSelection(Widget widget);


{'fraction_non_alphanumeric': 0.07644086826347306, 'fraction_numerical': 0.01281811377245509, 'mean_word_length': 4.25, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '387963', 'n_tokens_mistral': 3237, 'n_tokens_neox': 3042, 'n_words': 1101}