<commit_before>/***************************************************************************
 *  Project      _           _ _
 *     ___ _ __ (_)_ __   __| | |_   _
 *    / __| '_ \| | '_ \ / _` | | | | |
 *    \__ \ |_) | | | | | (_| | | |_| |
 *    |___/ .__/|_|_| |_|\__,_|_|\__, |
 *        |_|                    |___/
 *
 * Copyright (C) 2012, <NAME> <<EMAIL>>
 *
 * This software is licensed as described in the file LICENSE, which you
 * should have received as part of this distribution. The terms are also
 * available at http://spindly.haxx.se/license.html
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
 * KIND, either express or implied.
 *
 ***************************************************************************/
/*
 * Linked list functions for spindly
 */
#include "spdy_setup.h"         /* MUST be the first header to include */

#include <stdio.h>
#include "list.h"

/* init the list head */
void _spindly_list_init(struct list_head *head)
{
  head->first = head->last = NULL;
}

/* add a node to the list */
void _spindly_list_add(struct list_head *head,
                       struct list_node *entry)
{
  /* store a pointer to the head */
  entry->head = head;

  /* we add this entry at the "top" so it has no next */<commit_msg>list: added minor comments<commit_after>/***************************************************************************
 *  Project      _           _ _
 *     ___ _ __ (_)_ __   __| | |_   _
 *    / __| '_ \| | '_ \ / _` | | | | |
 *    \__ \ |_) | | | | | (_| | | |_| |
 *    |___/ .__/|_|_| |_|\__,_|_|\__, |
 *        |_|                    |___/
 *
 * Copyright (C) 2012, <NAME> <<EMAIL>>
 *
 * This software is licensed as described in the file LICENSE, which you
 * should have received as part of this distribution. The terms are also
 * available at http://spindly.haxx.se/license.html
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
 * KIND, either express or implied.
 *
 ***************************************************************************/
/*
 * Linked list functions for spindly. The idea is to not do memory functions
 * for list handling.
 */
#include "spdy_setup.h"         /* MUST be the first header to include */

#include <stdio.h>
#include "list.h"

/* init the list head */
void _spindly_list_init(struct list_head *head)
{
  head->first = head->last = NULL;
}

/* add a node last in the list */
void _spindly_list_add(struct list_head *head,
                       struct list_node *entry)
{
  /* store a pointer to the head */
  entry->head = head;

  /* we add this entry at the "top" so it has no next */
{'fraction_non_alphanumeric': 0.23587038432554636, 'fraction_numerical': 0.003014318010550113, 'mean_word_length': 2.636986301369863, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, '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': '4455552', 'n_tokens_mistral': 819, 'n_tokens_neox': 776, 'n_words': 243}