<commit_before>/*
* Created at 19:08 on 10/02/2017
*/
package com.example.news;

import com.example.news.domain.News;

import java.nio.ByteBuffer;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.TimeUnit;

/**
 * @author zzhao
 */
public class Util {

    public static final DateTimeFormatter DTF = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS");

    public static final int MAX_NEWS_LENGTH = 255;

    public enum LogLevel {DEBUG, INFO, WARN, ERROR}

    private Util() {
        throw new AssertionError("not for instantiation or inheritance");
    }

    public static void log(LogLevel logLevel, String msg) {
        System.out.printf("%s %s [%16s] %s%n", logLevel.name(), DTF.format(LocalDateTime.now()),
                Thread.currentThread().getName(), msg);<commit_msg>align log level<commit_after>/*
* Created at 19:08 on 10/02/2017
*/
package com.example.news;

import com.example.news.domain.News;

import java.nio.ByteBuffer;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.TimeUnit;

/**
 * @author zzhao
 */
public class Util {

    public static final DateTimeFormatter DTF = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS");

    public static final int MAX_NEWS_LENGTH = 255;

    public enum LogLevel {DEBUG, INFO, WARN, ERROR}

    private Util() {
        throw new AssertionError("not for instantiation or inheritance");
    }

    public static void log(LogLevel logLevel, String msg) {
        System.out.printf("%5s %s [%16s] %s%n", logLevel.name(), DTF.format(LocalDateTime.now()),
                Thread.currentThread().getName(), msg);
{'fraction_non_alphanumeric': 0.12299741602067184, 'fraction_numerical': 0.01808785529715762, 'mean_word_length': 3.9768637532133675, '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': '4427937', 'n_tokens_mistral': 622, 'n_tokens_neox': 573, 'n_words': 151}