<commit_before>#include <cstdlib>
#include <iostream>
#include <mpl/mpl.hpp>

int main() {
  const mpl::communicator &comm_world=mpl::environment::comm_world();
  std::vector<double> v(comm_world.size());
  double x=1.23456+comm_world.rank();
  mpl::irequest r_send(comm_world.isend(x, 0));
  if (comm_world.rank()==0) {
    mpl::irequest_pool r_pool;
    for (int i=0; i<comm_world.size(); ++i) 
      r_pool.push(comm_world.irecv(v[i], i));
    r_pool.waitall();
    for (int i=0; i<comm_world.size(); ++i) 
      std::cout << i << '\t' << v[i] << '\n';
  }
  r_send.wait();
  return EXIT_SUCCESS;
}<commit_msg>comments for nonblocking_mult<commit_after>#include <cstdlib>
#include <iostream>
#include <mpl/mpl.hpp>

int main() {
  const mpl::communicator &comm_world=mpl::environment::comm_world();
  double x=1.23456+comm_world.rank();
  mpl::irequest r_send(comm_world.isend(x, 0));  // nonblocking send to rank 0
  // rank 0 receives data from all ranks
  if (comm_world.rank()==0) {
    std::vector<double> v(comm_world.size());
    mpl::irequest_pool r_pool;
    for (int i=0; i<comm_world.size(); ++i)
      r_pool.push(comm_world.irecv(v[i], i));
    r_pool.waitall();  // wait to finish all receive operations
    for (int i=0; i<comm_world.size(); ++i)
      std::cout << i << '\t' << v[i] << '\n';
  }
  r_send.wait();  // wait to finisch send operation
  return EXIT_SUCCESS;
}
{'fraction_non_alphanumeric': 0.18835370237239396, 'fraction_numerical': 0.015815959741193385, 'mean_word_length': 4.213483146067416, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 11, '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': '5258734', 'n_tokens_mistral': 564, 'n_tokens_neox': 534, 'n_words': 111}