<commit_before>/*
 *
 * Code edits and additions
 * 		Copyright 2018 <NAME> <<EMAIL>>
 */

#include <cmath>
#include <algorithm>

#include <gdf/gdf.h>
#include <gdf/utils.h>
#include <gdf/errorutils.h>

#include <thrust/device_vector.h>

template<typename T, typename Tout, typename F>
__global__
void gpu_unary_op(const T *data, const gdf_valid_type *valid,
                  gdf_size_type size, Tout *results, F functor) {
    int tid = threadIdx.x;
    int blkid = blockIdx.x;
    int blksz = blockDim.x;
    int gridsz = gridDim.x;

    int start = tid + blkid * blksz;
    int step = blksz * gridsz;<commit_msg>added include of thrust copy<commit_after>/*
 *
 * Code edits and additions
 * 		Copyright 2018 <NAME> <<EMAIL>>
 */

#include <cmath>
#include <algorithm>

#include <gdf/gdf.h>
#include <gdf/utils.h>
#include <gdf/errorutils.h>

#include <thrust/copy.h>
#include <thrust/device_vector.h>

template<typename T, typename Tout, typename F>
__global__
void gpu_unary_op(const T *data, const gdf_valid_type *valid,
                  gdf_size_type size, Tout *results, F functor) {
    int tid = threadIdx.x;
    int blkid = blockIdx.x;
    int blksz = blockDim.x;
    int gridsz = gridDim.x;

    int start = tid + blkid * blksz;
    int step = blksz * gridsz;
{'fraction_non_alphanumeric': 0.12185534591194969, 'fraction_numerical': 0.006289308176100629, 'mean_word_length': 3.3447098976109215, 'pattern_counts': {'":': 0, '<': 24, '<?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': '4576920', 'n_tokens_mistral': 504, 'n_tokens_neox': 472, 'n_words': 129}