<commit_before>/** openrtb_bid_source.h                                 -*- C++ -*-
    <NAME>, 13 Aug 2013
    Copyright (c) 2013 Datacratic.  All rights reserved.

    Mock bid sources for OpenRTB.

*/

#pragma once

#include "rtbkit/common/testing/exchange_source.h"
#include "jml/utils/rng.h"

namespace RTBKIT {

struct OpenRTBBidSource : public BidSource {
    ML::RNG rng;

    std::string host;
    std::string verb;
    std::string resource;

    OpenRTBBidSource(Json::Value const & json) :
        BidSource(json),
        host(json.get("host", ML::hostname()).asString()),
        verb(json.get("verb", "POST").asString()),
        resource(json.get("resource", "/").asString()) {
    }

    BidRequest generateRandomBidRequest();

    auto parseResponse(const std::string& rawResponse) -> std::pair<bool, std::vector<Bid>>;
};<commit_msg>Removed the redundant and badly initialized openrtb br source's rng.<commit_after>/** openrtb_bid_source.h                                 -*- C++ -*-
    <NAME>, 13 Aug 2013
    Copyright (c) 2013 Datacratic.  All rights reserved.

    Mock bid sources for OpenRTB.

*/

#pragma once

#include "rtbkit/common/testing/exchange_source.h"
#include "jml/utils/rng.h"

namespace RTBKIT {

struct OpenRTBBidSource : public BidSource {
    std::string host;
    std::string verb;
    std::string resource;

    OpenRTBBidSource(Json::Value const & json) :
        BidSource(json),
        host(json.get("host", ML::hostname()).asString()),
        verb(json.get("verb", "POST").asString()),
        resource(json.get("resource", "/").asString()) {
    }

    BidRequest generateRandomBidRequest();

    auto parseResponse(const std::string& rawResponse) -> std::pair<bool, std::vector<Bid>>;
};
{'fraction_non_alphanumeric': 0.15008625646923518, 'fraction_numerical': 0.011500862564692352, 'mean_word_length': 3.0654205607476634, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5312032', 'n_tokens_mistral': 580, 'n_tokens_neox': 547, 'n_words': 121}