<commit_before>//===-- lldb.cpp ------------------------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include "lldb/lldb-private.h"
#include "llvm/ADT/StringExtras.h"

using namespace lldb;
using namespace lldb_private;

#include "clang/Basic/Version.h"
#include "swift/Basic/Version.h"

#ifdef HAVE_SVN_VERSION_INC
#  include "SVNVersion.inc"
#endif

#ifdef HAVE_APPLE_VERSION_INC
#  include "AppleVersion.inc"
#endif

static const char *GetLLDBRevision() {
#ifdef LLDB_REVISION
  static const char *s_revision = LLDB_REVISION;
#else
  static const char *s_revision = nullptr;
#endif

  // If LLDB_REVISION is defined but isn't set to a string, it
  // can still be the equivalent of NULL.  Hence we always do
  // this check below and return an empty string when we don't
  // otherwise have a valid const string for it.
  if (s_revision != nullptr)
    return s_revision;
  else
    return "";
}

static const char *GetLLDBRepository() {
#ifdef LLDB_REPOSITORY
  return LLDB_REPOSITORY;
#else
  return NULL;
#endif
}
<commit_msg>Remove special handling for undefined LLDB_REVISION<commit_after>//===-- lldb.cpp ------------------------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include "lldb/lldb-private.h"
#include "llvm/ADT/StringExtras.h"

using namespace lldb;
using namespace lldb_private;

#include "clang/Basic/Version.h"
#include "swift/Basic/Version.h"

#ifdef HAVE_SVN_VERSION_INC
#  include "SVNVersion.inc"
#endif

#ifdef HAVE_APPLE_VERSION_INC
#  include "AppleVersion.inc"
#endif

static const char *GetLLDBRevision() {
#ifdef LLDB_REVISION
  return LLDB_REVISION;
#else
  return nullptr;
#endif
}

static const char *GetLLDBRepository() {
#ifdef LLDB_REPOSITORY
  return LLDB_REPOSITORY;
#else
  return NULL;
#endif
}

{'fraction_non_alphanumeric': 0.2100355239786856, 'fraction_numerical': 0.0, 'mean_word_length': 2.372754491017964, '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': '58639', 'n_tokens_mistral': 704, 'n_tokens_neox': 686, 'n_words': 201}