<commit_before>/******************************************************************************
* File       : Task_Demo_Queue.c
* Function   : It is demo task for queue
* description: This task creates two queues,one is located in task space, and 
*              the other is created by Queue API. Task sends two messages with 
*              the two queues and recieves the two messages from the queues.           
* Version    : V1.00
* Author     : Ian
* Date       : 19th Jun 2016
* History    :  No.  When           Who      What
*               1    19/Jun/2016    Ian      V1.00: Create
******************************************************************************/

#include "type_def.h"
#include "common_head.h"
#include "project_config.h"
#include "MOE_Core.h"
#include "MOE_Event.h"
#include "MOE_Timer.h"
#include "MOE_Queue.h"
#include "MOE_Msg.h"
#include "Task_Demo_Queue.h"
#include "debug.h"


static uint8 sg_u8TaskID = TASK_NO_TASK;

static uint8 sg_au8Queue[TASK_DEMO_QUEUE_BUF_NUM * TASK_DEMO_QUEUE_BUF_SIZE] = {0};
static uint8 sg_au8DataW[TASK_DEMO_QUEUE_BUF_SIZE] = {1,2,3,4,5,6,7,8,9,10};
static uint8 sg_au8DataR[TASK_DEMO_QUEUE_BUF_SIZE] = {0,0,0,0,0,0,0,0,0,0};

static T_QUEUE_INFO sg_tQueue1,sg_tQueue2;

/******************************************************************************
* Name       : uint8 Task_Demo_Queue_Process(uint8 u8Evt, void *pPara)
* Function   : Task Demo Queue process
* Input      : uint8  u8Evt  1~254     Event for the task
*              void  *pPara            Pointer of parameter
* Output:    : None
* Return     : To be done
* description: To be done<commit_msg>Update Task_Demo_Queue.c<commit_after>/******************************************************************************
* File       : Task_Demo_Queue.c
* Function   : It is demo task for queue
* description: This task creates two queues,one is located in task space, and 
*              the other is created by Queue API. Task sends two messages with 
*              the two queues and recieves the two messages from the queues.           
* Version    : V1.00
* Author     : Ian
* Date       : 19th Jun 2016
* History    :  No.  When           Who      What
*               1    19/Jun/2016    Ian      V1.00: Create
******************************************************************************/

#include "../../Pub/type_def.h"
#include "../../Pub/common_head.h"
#include "project_config.h"
#include "../../Core/MOE_Core.h"
#include "../../Core/MOE_Event.h"
#include "../../Core/MOE_Timer.h"
#include "../../Core/MOE_Queue.h"
#include "../../Core/MOE_Msg.h"
#include "./Task_Demo_Queue.h"
#include "../../Pub/debug.h"


static uint8 sg_u8TaskID = TASK_NO_TASK;

static uint8 sg_au8Queue[TASK_DEMO_QUEUE_BUF_NUM * TASK_DEMO_QUEUE_BUF_SIZE] = {0};
static uint8 sg_au8DataW[TASK_DEMO_QUEUE_BUF_SIZE] = {1,2,3,4,5,6,7,8,9,10};
static uint8 sg_au8DataR[TASK_DEMO_QUEUE_BUF_SIZE] = {0,0,0,0,0,0,0,0,0,0};

static T_QUEUE_INFO sg_tQueue1,sg_tQueue2;

/******************************************************************************
* Name       : uint8 Task_Demo_Queue_Process(uint8 u8Evt, void *pPara)
* Function   : Task Demo Queue process
* Input      : uint8  u8Evt  1~254     Event for the task
*              void  *pPara            Pointer of parameter
* Output:    : None
* Return     : To be done
* description: To be done
{'fraction_non_alphanumeric': 0.23776849642004774, 'fraction_numerical': 0.03579952267303103, 'mean_word_length': 3.360208062418726, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2632262', 'n_tokens_mistral': 1159, 'n_tokens_neox': 1091, 'n_words': 274}