<commit_before>/******************************************************************************
* Copyright (c) Intel Corporation - All rights reserved.                      *
* This file is part of the LIBXSMM library.                                   *
*                                                                             *
* For information on the license, see the LICENSE file.                       *
* Further information: https://github.com/hfp/libxsmm/                        *
* SPDX-License-Identifier: BSD-3-Clause                                       *
******************************************************************************/
/* <NAME> (Intel Corp.)
******************************************************************************/
#include <libxsmm_source.h>


int main(/*int argc, char* argv[]*/)
{
  char item[LIBXSMM_DESCRIPTOR_MAXSIZE];
  const libxsmm_blasint isize = sizeof(item);
  const libxsmm_blasint size = 1000, ntests = 1000;
  char *const data = (char*)malloc((size_t)isize * size);
  libxsmm_blasint i, j, k, s;

  if (NULL != libxsmm_stristr("ends with b", "Begins with b")) return EXIT_FAILURE;
  if (NULL == libxsmm_stristr("in between of", "BeTwEEn")) return EXIT_FAILURE;

  if (NULL == data) return EXIT_FAILURE;
  libxsmm_rng_seq(data, isize * size);

  for (i = 0; i < ntests; ++i) {
    j = (libxsmm_blasint)libxsmm_rng_u32(size);<commit_msg>Revert "Added test for libxsmm_stristr [skip ci]."<commit_after>/******************************************************************************
* Copyright (c) Intel Corporation - All rights reserved.                      *
* This file is part of the LIBXSMM library.                                   *
*                                                                             *
* For information on the license, see the LICENSE file.                       *
* Further information: https://github.com/hfp/libxsmm/                        *
* SPDX-License-Identifier: BSD-3-Clause                                       *
******************************************************************************/
/* <NAME> (Intel Corp.)
******************************************************************************/
#include <libxsmm_source.h>


int main(/*int argc, char* argv[]*/)
{
  char item[LIBXSMM_DESCRIPTOR_MAXSIZE];
  const libxsmm_blasint isize = sizeof(item);
  const libxsmm_blasint size = 1000, ntests = 1000;
  char *const data = (char*)malloc((size_t)isize * size);
  libxsmm_blasint i, j, k, s;

  if (NULL == data) return EXIT_FAILURE;
  libxsmm_rng_seq(data, isize * size);

  for (i = 0; i < ntests; ++i) {
    j = (libxsmm_blasint)libxsmm_rng_u32(size);
{'fraction_non_alphanumeric': 0.27030075187969926, 'fraction_numerical': 0.009022556390977444, 'mean_word_length': 2.487549148099607, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3572177', 'n_tokens_mistral': 773, 'n_tokens_neox': 702, 'n_words': 179}