<commit_before>#include "nurbs.h"

inline void ravel_multi_index(uint32 *index, uint32 *indices,
                              uint32 *shape, uint32 num)
{
  uint32 ii, stride = 1;
  uint32 raveled = 0;

  for (ii = num - 1; ii >= 1; ii--) {
    raveled += stride * indices[ii];
    stride *= shape[ii];
  }
  raveled += stride * indices[0];

  *index = raveled;
}

inline void unravel_index(uint32 *indices, uint32 index,<commit_msg>remove inline directive for ravel_multi_index() on windows - fixes linker error<commit_after>#include "nurbs.h"

#ifdef _WIN32
// If inline is used here on Windows, msvc linker does not find this function.
void ravel_multi_index(uint32 *index, uint32 *indices,
                       uint32 *shape, uint32 num)
#else
inline void ravel_multi_index(uint32 *index, uint32 *indices,
                              uint32 *shape, uint32 num)
#endif
{
  uint32 ii, stride = 1;
  uint32 raveled = 0;

  for (ii = num - 1; ii >= 1; ii--) {
    raveled += stride * indices[ii];
    stride *= shape[ii];
  }
  raveled += stride * indices[0];

  *index = raveled;
}

inline void unravel_index(uint32 *indices, uint32 index,
{'fraction_non_alphanumeric': 0.11703056768558952, 'fraction_numerical': 0.045414847161572056, 'mean_word_length': 2.8979591836734695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2868367', 'n_tokens_mistral': 425, 'n_tokens_neox': 378, 'n_words': 119}