<commit_before>#include <iostream>  
#include <CL/cl.hpp>  
#include <boost/foreach.hpp>

// simple openCL test
// check if device is working and 
// report on number of devices that
// shall be used - cores
int main(int, char**) {
    std::vector<cl::Platform> platforms;
    cl::Platform::get(&platforms);

    BOOST_FOREACH(cl::Platform platform, platforms) {
        std::cout << "Platform: " << platform.getInfo<CL_PLATFORM_NAME>() << std::endl;
        std::vector<cl::Device> devices;
        platform.getDevices(CL_DEVICE_TYPE_GPU | CL_DEVICE_TYPE_CPU, &devices);
        
        BOOST_FOREACH(cl::Device device, devices) {
            std::cout << "Device: " << device.getInfo<CL_DEVICE_TYPE>();
            std::cout << " (" << CL_DEVICE_TYPE_GPU << " means GPU, " << CL_DEVICE_TYPE_CPU << " means CPU)" << std::endl;
        }
    }
}<commit_msg>g++ compile upadet<commit_after>#include <iostream>  
#include <CL/cl.hpp>  
#include <boost/foreach.hpp>

// simple openCL test
// check if device is working and 
// report on number of devices that
// shall be used - cores
int main(int, char**) {
    std::vector<cl::Platform> platforms;
    cl::Platform::get(&platforms);

    BOOST_FOREACH(cl::Platform platform, platforms) {
        std::cout << "Platform: " << platform.getInfo<CL_PLATFORM_NAME>() << std::endl;
        std::vector<cl::Device> devices;
        platform.getDevices(CL_DEVICE_TYPE_GPU | CL_DEVICE_TYPE_CPU, &devices);
        
        BOOST_FOREACH(cl::Device device, devices) {
            std::cout << "Device: " << device.getInfo<CL_DEVICE_TYPE>();
            std::cout << " (" << CL_DEVICE_TYPE_GPU << " means GPU, "
                << CL_DEVICE_TYPE_CPU << " means CPU)" << std::endl;
        }
    }
}
{'fraction_non_alphanumeric': 0.15659182498560736, 'fraction_numerical': 0.0, 'mean_word_length': 3.1879518072289157, 'pattern_counts': {'":': 0, '<': 61, '<?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': '1730118', 'n_tokens_mistral': 555, 'n_tokens_neox': 544, 'n_words': 116}