<commit_before>package us.ihmc.affinity;

import java.util.ArrayList;

import us.ihmc.realtime.RealtimeThread;

public class Affinity
{
   public static native void setAffinity(int... cpuID);

   private static native void setAffinity(long threadID, int... cpuID);

   private static void setAffinity(RealtimeThread thread, int... cpuID)
   {
      long threadId = thread.getThreadID();
      setAffinity(threadId, cpuID);
   }

   private static int[] getCPUIDs(Processor... processors)
   {
      int[] result = new int[processors.length];
      for (int i = 0; i < processors.length; i++)
      {
         result[i] = processors[i].getId();
      }
      return result;
   }

   private static int[] getCPUIDs(Core... cores)
   {
      ArrayList<Processor> processors = new ArrayList<>();
      for (Core core : cores)
      {
         processors.addAll(core.getProcessors());
      }

      Processor[] processorArray = new Processor[processors.size()];
      return getCPUIDs(processors.toArray(processorArray));
   }

   public static void setAffinity(RealtimeThread thread, Processor... processors)
   {
      setAffinity(thread, getCPUIDs(processors));
   }

   public static void setAffinity(RealtimeThread thread, Core... cores)
   {
      setAffinity(thread, getCPUIDs(cores));
   }

   public static void setAffinity(Processor... processors)
   {
      setAffinity(getCPUIDs(processors));
   }

   public static void setAffinity(Core... cores)
   {
      setAffinity(getCPUIDs(cores));
   }
}<commit_msg>NONE: Disabled affinity calls<commit_after>package us.ihmc.affinity;

import java.util.ArrayList;

import us.ihmc.realtime.RealtimeThread;

public class Affinity
{
   public static native void setAffinity(int... cpuID);

   private static native void setAffinity(long threadID, int... cpuID);

   private static void setAffinity(RealtimeThread thread, int... cpuID)
   {
      long threadId = thread.getThreadID();
      setAffinity(threadId, cpuID);
   }

   private static int[] getCPUIDs(Processor... processors)
   {
      int[] result = new int[processors.length];
      for (int i = 0; i < processors.length; i++)
      {
         result[i] = processors[i].getId();
      }
      return result;
   }

   private static int[] getCPUIDs(Core... cores)
   {
      ArrayList<Processor> processors = new ArrayList<>();
      for (Core core : cores)
      {
         processors.addAll(core.getProcessors());
      }

      Processor[] processorArray = new Processor[processors.size()];
      return getCPUIDs(processors.toArray(processorArray));
   }

   public static void setAffinity(RealtimeThread thread, Processor... processors)
   {
//      setAffinity(thread, getCPUIDs(processors));
   }

   public static void setAffinity(RealtimeThread thread, Core... cores)
   {
//      setAffinity(thread, getCPUIDs(cores));
   }

   public static void setAffinity(Processor... processors)
   {
//      setAffinity(getCPUIDs(processors));
   }

   public static void setAffinity(Core... cores)
   {
//      setAffinity(getCPUIDs(cores));
   }
}
{'fraction_non_alphanumeric': 0.11943717277486911, 'fraction_numerical': 0.0006544502617801048, 'mean_word_length': 3.0118110236220472, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '910440', 'n_tokens_mistral': 957, 'n_tokens_neox': 908, 'n_words': 213}