<commit_before>// Copyright 2017-2020 The Verible Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef VERIBLE_COMMON_UTIL_LOGGING_H_
#define VERIBLE_COMMON_UTIL_LOGGING_H_

#include "absl/log/log.h"
#include "absl/log/check.h"
#include "absl/log/die_if_null.h"

// There is no vlog yet.
// Here just shimmed so that it compiles, to be removed once VLOG is there.
// TODO: at least allow for --v flag.
#define VLOG(x) LOG_IF(INFO, false)
#ifndef VLOG_IS_ON
#define VLOG_IS_ON(x) (false)
#endif
#define DVLOG(x) VLOG(x)

#define CHECK_NOTNULL(p) (void)ABSL_DIE_IF_NULL(p)

#endif  // VERIBLE_COMMON_UTIL_LOGGING_H_<commit_msg>Work around signed warnings in check headers.<commit_after>// Copyright 2017-2020 The Verible Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef VERIBLE_COMMON_UTIL_LOGGING_H_
#define VERIBLE_COMMON_UTIL_LOGGING_H_

#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsign-compare"
#endif
#include "absl/log/check.h"
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif

#include "absl/log/log.h"
#include "absl/log/die_if_null.h"

// There is no vlog yet.
// Here just shimmed so that it compiles, to be removed once VLOG is there.
// TODO: at least allow for --v flag.
#define VLOG(x) LOG_IF(INFO, false)
#ifndef VLOG_IS_ON
#define VLOG_IS_ON(x) (false)
#endif
#define DVLOG(x) VLOG(x)

#define CHECK_NOTNULL(p) (void)ABSL_DIE_IF_NULL(p)

#endif  // VERIBLE_COMMON_UTIL_LOGGING_H_
{'fraction_non_alphanumeric': 0.09838709677419355, 'fraction_numerical': 0.00967741935483871, 'mean_word_length': 4.147302904564316, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2058365', 'n_tokens_mistral': 835, 'n_tokens_neox': 805, 'n_words': 300}