<commit_before>#pragma once

#include "common.hpp"
#include "components/config.hpp"
#include "components/types.hpp"
#include "config.hpp"

POLYBAR_NS

#define DEFAULT_SPACING -1

#ifndef BUILDER_SPACE_TOKEN
#define BUILDER_SPACE_TOKEN "%__"
#endif

// fwd decl
namespace drawtypes {
  class label;
  using label_t = shared_ptr<label>;
  using icon = label;
  using icon_t = label_t;
}

using namespace drawtypes;

class builder {
 public:
  explicit builder(const bar_settings bar, bool lazy = true) : m_bar(bar), m_lazy(lazy) {}

  void set_lazy(bool mode);

  string flush();

  void append(string text);

  void node(string str, bool add_space = false);
  void node(string str, int font_index, bool add_space = false);
  // void node(progressbar_t bar, float perc, bool add_space = false);
  void node(label_t label, bool add_space = false);
  // void node(ramp_t ramp, float perc, bool add_space = false);
  // void node(animation_t animation, bool add_space = false);

  void offset(int pixels = 0);
  void space(int width = DEFAULT_SPACING);
  void remove_trailing_space(int width = DEFAULT_SPACING);

  void invert();<commit_msg>fix(builder): Default to non-lazy mode<commit_after>#pragma once

#include "common.hpp"
#include "components/config.hpp"
#include "components/types.hpp"
#include "config.hpp"

POLYBAR_NS

#define DEFAULT_SPACING -1

#ifndef BUILDER_SPACE_TOKEN
#define BUILDER_SPACE_TOKEN "%__"
#endif

// fwd decl
namespace drawtypes {
  class label;
  using label_t = shared_ptr<label>;
  using icon = label;
  using icon_t = label_t;
}

using namespace drawtypes;

class builder {
 public:
  explicit builder(const bar_settings bar, bool lazy = false) : m_bar(bar), m_lazy(lazy) {}

  void set_lazy(bool mode);

  string flush();

  void append(string text);

  void node(string str, bool add_space = false);
  void node(string str, int font_index, bool add_space = false);
  // void node(progressbar_t bar, float perc, bool add_space = false);
  void node(label_t label, bool add_space = false);
  // void node(ramp_t ramp, float perc, bool add_space = false);
  // void node(animation_t animation, bool add_space = false);

  void offset(int pixels = 0);
  void space(int width = DEFAULT_SPACING);
  void remove_trailing_space(int width = DEFAULT_SPACING);

  void invert();
{'fraction_non_alphanumeric': 0.10704960835509138, 'fraction_numerical': 0.0017406440382941688, 'mean_word_length': 4.66256157635468, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4126891', 'n_tokens_mistral': 783, 'n_tokens_neox': 770, 'n_words': 229}