<commit_before>
/*
 *--------------------------------------------------------------------
 * DESCRIPTION
 *   creates a PicStructure from memory block
 *
 * FUNCTION DECLARATION
 *  
 *
 * PARAMETERS
 *  
 *
 * AUTHOR & DATE
 *  <NAME>   15.7.98
 *
 * UPDATES
 *
 *--------------------------------------------------------------------
 *  COPYRIGHT (c) 1998 by DKFZ (Dept. MBI) Heidelberg, FRG
 */

#ifndef lint
  static char *what = { "@(#)ipPicGetMem\t\tDKFZ (Dept. MBI)\t"__DATE__"\t$Revision$" };
#endif

#include "ipPic.h"

ipPicDescriptor *ipPicGetMem( ipUInt1_t *mem_pic )
{
  ipPicDescriptor *pic;
  ipUInt4_t        len;
  ipUInt4_t        to_read;
  ipUInt1_t       *mem_ptr = mem_pic;
  
  pic = ipPicNew();
  ipPicClear( pic );
  memcpy( &(pic->info->version), mem_ptr, sizeof(ipPicTag_t) );
  mem_ptr += sizeof(ipPicTag_t); 
  if( strncmp( ipPicVERSION, pic->info->version, 4 ) != 0 )
    {      
      ipPicFree( pic );
      return( NULL );
    }

  memcpy( &len,  mem_ptr, sizeof(ipUInt4_t) );
  mem_ptr += sizeof(ipUInt4_t);
  memcpy( &(pic->type),  mem_ptr, sizeof(ipUInt4_t) );
  mem_ptr += sizeof(ipUInt4_t);
  memcpy( &(pic->bpe),  mem_ptr, sizeof(ipUInt4_t) );
  mem_ptr += sizeof(ipUInt4_t);
  memcpy( &(pic->dim),  mem_ptr, sizeof(ipUInt4_t) );
  mem_ptr += sizeof(ipUInt4_t);
  memcpy( &(pic->n),  mem_ptr, sizeof(ipUInt4_t) );
  mem_ptr += pic->dim*sizeof(ipUInt4_t);
<commit_msg>*** empty log message ***<commit_after>
/*
 *--------------------------------------------------------------------
 * DESCRIPTION
 *   creates a PicStructure from memory block
 *
 * FUNCTION DECLARATION
 *  
 *
 * PARAMETERS
 *  
 *
 * AUTHOR & DATE
 *  <NAME>   15.7.98
 *
 * UPDATES
 *
 *--------------------------------------------------------------------
 *  COPYRIGHT (c) 1998 by DKFZ (Dept. MBI) Heidelberg, FRG
 */

#ifndef lint
  static char *what = { "@(#)ipPicGetMem\t\tDKFZ (Dept. MBI)\t"__DATE__"\t$Revision$" };
#endif

#include "ipPic.h"

ipPicDescriptor *ipPicGetMem( ipUInt1_t *mem_pic )
{
  ipPicDescriptor *pic;
  ipUInt4_t        len;
  ipUInt4_t        to_read;
  ipUInt1_t       *mem_ptr = mem_pic;
  
  pic = ipPicNew();
  ipPicClear( pic );
  memcpy( &(pic->info->version), mem_ptr, sizeof(ipPicTag_t) );
  mem_ptr += sizeof(ipPicTag_t); 
  if( strncmp( ipPicVERSION, pic->info->version, 4 ) != 0 )
    {      
      ipPicFree( pic );
      return( NULL );
    }

  memcpy( &len,  mem_ptr, sizeof(ipUInt4_t) );
  mem_ptr += sizeof(ipUInt4_t);
  memcpy( &(pic->type),  mem_ptr, sizeof(ipUInt4_t) );
  mem_ptr += sizeof(ipUInt4_t);
  memcpy( &(pic->bpe),  mem_ptr, sizeof(ipUInt4_t) );
  mem_ptr += sizeof(ipUInt4_t);
  memcpy( &(pic->dim),  mem_ptr, sizeof(ipUInt4_t) );
  mem_ptr += sizeof(ipUInt4_t);
  memcpy( &(pic->n),  mem_ptr, pic->dim * sizeof(ipUInt4_t) );
  mem_ptr += pic->dim*sizeof(ipUInt4_t);

{'fraction_non_alphanumeric': 0.24391104835863042, 'fraction_numerical': 0.017649135192375574, 'mean_word_length': 2.272517321016166, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 24, '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': '96657', 'n_tokens_mistral': 1123, 'n_tokens_neox': 1078, 'n_words': 203}