<commit_before>//===- lib/MC/MCValue.cpp - MCValue implementation ------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include "llvm/MC/MCValue.h"
#include "llvm/Support/raw_ostream.h"

using namespace llvm;

void MCValue::print(raw_ostream &OS, const MCAsmInfo *MAI) const {
  if (isAbsolute()) {
    OS << getConstant();
    return;
  }

  getSymA()->print(OS, MAI);

  if (getSymB()) {
    OS << " - "; 
    getSymB()->print(OS, MAI);
  }

  if (getConstant())
    OS << " + " << getConstant();
}

void MCValue::dump() const {
  print(errs(), 0);
}<commit_msg>Change errs() to dbgs().<commit_after>//===- lib/MC/MCValue.cpp - MCValue implementation ------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include "llvm/MC/MCValue.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"

using namespace llvm;

void MCValue::print(raw_ostream &OS, const MCAsmInfo *MAI) const {
  if (isAbsolute()) {
    OS << getConstant();
    return;
  }

  getSymA()->print(OS, MAI);

  if (getSymB()) {
    OS << " - "; 
    getSymB()->print(OS, MAI);
  }

  if (getConstant())
    OS << " + " << getConstant();
}

void MCValue::dump() const {
  print(dbgs(), 0);
}
{'fraction_non_alphanumeric': 0.2799028536733455, 'fraction_numerical': 0.0012143290831815423, 'mean_word_length': 1.911660777385159, 'pattern_counts': {'":': 0, '<': 19, '<?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': '5479463', 'n_tokens_mistral': 512, 'n_tokens_neox': 498, 'n_words': 123}