<commit_before>package io.tetrapod.core.utils;

import io.tetrapod.core.json.JSONArray;

import java.io.*;
import java.net.*;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.security.*;
import java.util.*;

import javax.net.ssl.*;

/**
 * A random collection of useful static utility methods
 */
public class Util {

   public static final SecureRandom random = new SecureRandom();

   /**
    * Sleeps the current thread for a number of milliseconds, ignores interrupts.
    */
   public static void sleep(int millis) {
      try {
         Thread.sleep(millis);
      } catch (InterruptedException e) {}
   }

   /**
    * Get the hostname for this system
    */
   public static String getHostName() {
      try {
         return InetAddress.getLocalHost().getHostName();<commit_msg>Add sme useful constants for milliscond times<commit_after>package io.tetrapod.core.utils;

import io.tetrapod.core.json.JSONArray;

import java.io.*;
import java.net.*;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.security.*;
import java.util.*;

import javax.net.ssl.*;

/**
 * A random collection of useful static utility methods
 */
public class Util {

   public static final SecureRandom random     = new SecureRandom();

   public static long               ONE_SECOND = 1000;
   public static long               ONE_MINUTE = ONE_SECOND * 60;
   public static long               ONE_HOUR   = ONE_MINUTE * 60;
   public static long               ONE_DAY    = ONE_HOUR * 24;
   public static long               ONE_WEEK   = ONE_DAY * 7;

   /**
    * Sleeps the current thread for a number of milliseconds, ignores interrupts.
    */
   public static void sleep(int millis) {
      try {
         Thread.sleep(millis);
      } catch (InterruptedException e) {}
   }

   /**
    * Get the hostname for this system
    */
   public static String getHostName() {
      try {
         return InetAddress.getLocalHost().getHostName();
{'fraction_non_alphanumeric': 0.09939148073022312, 'fraction_numerical': 0.005578093306288032, 'mean_word_length': 2.640221402214022, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '819963', 'n_tokens_mistral': 594, 'n_tokens_neox': 563, 'n_words': 174}