<commit_before>/*!  \file 

$Header: /home/def/zae/tsp/tsp/src/core/driver/tsp_sample_ringbuf.h,v 1.1 2002-08-27 08:56:09 galles Exp $

-----------------------------------------------------------------------

Project   : TSP

Component : Consumer

-----------------------------------------------------------------------

Purpose   : Interface for the creation of the n ring_buf used by the user of
the consumer to retreive the n asked symbols

-----------------------------------------------------------------------
 */

#ifndef _TSP_SAMPLE_RINGBUF_H
#define _TSP_SAMPLE_RINGBUF_H

#include "tsp_prjcfg.h"

#include "tsp_datastruct.h"
#include "tsp_ringbuf.h"

/* Struct to get each sample */
struct TSP_sample_t
{
  time_stamp_t time;
  double user_value;

};

typedef struct TSP_sample_t TSP_sample_t;

/* samples ring buf */
RINGBUF_DECLARE_TYPE_DYNAMIC(TSP_sample_ringbuf_t,TSP_sample_t);

void TSP_sample_ringbuf_create(
			       const TSP_sample_symbol_info_list_t* symbols, 
			       TSP_sample_ringbuf_t** sample_ringbuf);

                                       
#endif /* _TSP_SAMPLE_RINGBUF_H */
<commit_msg>Evol - added define for eof in ringbuf - removed a bunch of unused functions (now the consumer waits for enough room in its ringbuf to ask the provider for new data, and it need the max length group size for this)<commit_after>/*!  \file 

$Header: /home/def/zae/tsp/tsp/src/core/driver/tsp_sample_ringbuf.h,v 1.2 2002-10-01 15:36:20 galles Exp $

-----------------------------------------------------------------------

Project   : TSP

Component : Consumer

-----------------------------------------------------------------------

Purpose   : Interface for the creation of the n ring_buf used by the user of
the consumer to retreive the n asked symbols

-----------------------------------------------------------------------
 */

#ifndef _TSP_SAMPLE_RINGBUF_H
#define _TSP_SAMPLE_RINGBUF_H

#include "tsp_prjcfg.h"

#include "tsp_ringbuf.h"


/* Used to add a dummy item in fifo for an eof notification */
#define TSP_DUMMY_PROVIDER_GLOBAL_INDEX_EOF   0xFFFFFFFF

/* Struct to get each sample */
struct TSP_sample_t
{
  time_stamp_t time;
  int provider_global_index;
  double user_value;


};

typedef struct TSP_sample_t TSP_sample_t;

/* samples ring buf */
RINGBUF_DECLARE_TYPE_DYNAMIC(TSP_sample_ringbuf_t,TSP_sample_t);

                                       
#endif /* _TSP_SAMPLE_RINGBUF_H */

{'fraction_non_alphanumeric': 0.23742786479802144, 'fraction_numerical': 0.013602638087386645, 'mean_word_length': 1.789655172413793, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3207088', 'n_tokens_mistral': 797, 'n_tokens_neox': 744, 'n_words': 193}