<commit_before>/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

#include "Configurable.h"

#include "DexClass.h"

#define error_or_warn(error, warn, msg, ...) \
  always_assert_log(!(error), msg, ##__VA_ARGS__); \
  if (!(warn)) { fprintf(stderr, msg, ##__VA_ARGS__); }

void Configurable::parse_config(const JsonWrapper& json) {
  m_after_configuration = {};
  m_reflecting = false;
  m_reflector = [](const std::string& param_name, const std::string& param_doc,
                   std::tuple<std::string, ConfigurableReflection,
                              ConfigurableReflection::Type> param_type) {};<commit_msg>Fixed reversed warn condition for bindflags<commit_after>/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

#include "Configurable.h"

#include "DexClass.h"

#define error_or_warn(error, warn, msg, ...)       \
  always_assert_log(!(error), msg, ##__VA_ARGS__); \
  if (warn) {                                      \
    fprintf(stderr, msg, ##__VA_ARGS__);           \
  }

void Configurable::parse_config(const JsonWrapper& json) {
  m_after_configuration = {};
  m_reflecting = false;
  m_reflector = [](const std::string& param_name, const std::string& param_doc,
                   std::tuple<std::string, ConfigurableReflection,
                              ConfigurableReflection::Type> param_type) {};
{'fraction_non_alphanumeric': 0.12251243781094527, 'fraction_numerical': 0.0, 'mean_word_length': 3.157622739018088, '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': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3711521', 'n_tokens_mistral': 469, 'n_tokens_neox': 467, 'n_words': 133}