<commit_before>// Copyright (c) 2020 The Orbit Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#pragma once

#include <stddef.h>
#include <stdint.h>

#include <string>
#include <vector>

#include "CoreUtils.h"
#include "absl/strings/str_format.h"

class Disassembler {
 public:
  void Disassemble(const void* machine_code, size_t size, uint64_t address, bool is_64bit);
  void AddLine(std::string, uint64_t address = 0);
  [[nodiscard]] const std::string& GetResult() const { return result_; }
  [[nodiscard]] uint64_t GetAddressAtLine(size_t line) const;

 private:
  std::string result_;
  std::vector<uint64_t> line_to_address_;
};<commit_msg>Replace #pragma once in Disassembler.h<commit_after>// Copyright (c) 2020 The Orbit Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ORBIT_GL_DISASSEMBLER_H_
#define ORBIT_GL_DISASSEMBLER_H_

#include <stddef.h>
#include <stdint.h>

#include <string>
#include <vector>

#include "CoreUtils.h"
#include "absl/strings/str_format.h"

class Disassembler {
 public:
  void Disassemble(const void* machine_code, size_t size, uint64_t address, bool is_64bit);
  void AddLine(std::string, uint64_t address = 0);
  [[nodiscard]] const std::string& GetResult() const { return result_; }
  [[nodiscard]] uint64_t GetAddressAtLine(size_t line) const;

 private:
  std::string result_;
  std::vector<uint64_t> line_to_address_;
};

#endif  // ORBIT_GL_DISASSEMBLER_H_
{'fraction_non_alphanumeric': 0.11258697027197975, 'fraction_numerical': 0.018975332068311195, 'mean_word_length': 5.203921568627451, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3681654', 'n_tokens_mistral': 568, 'n_tokens_neox': 545, 'n_words': 164}