<commit_before>#ifndef __REQUEST_POSTURE_H_INCLUDE__
#define __REQUEST_POSTURE_H_INCLUDE__

#include <vector>
#include <string>
#include <map>

class RequestPosture {
public:
  virtual ~RequestPosure(){};
  virtual void requestPosture(std::vector<double>& posture) = 0;
}

void getRequestPosture(std::map<std::string, RequestPosture*>& map);
void delRequestPosture(std::map<std::string, RequestPosture*>& map);

#endif
<commit_msg>Update request posture factory to class from funcs<commit_after>#ifndef __REQUEST_POSTURE_H_INCLUDE__
#define __REQUEST_POSTURE_H_INCLUDE__

#include <vector>
#include <string>

class RequestPosture {
public:
  virtual ~RequestPosure(){};
  virtual void requestPosture(std::vector<double>& posture) = 0;
}

class RequestPostureFactory {
private:
  RequestPostureFactory();

public:
  static RequestPosture* get(std::string);
  static std::map<std::string, RequestPosture*> reqs;
}

#endif

{'fraction_non_alphanumeric': 0.11847826086956521, 'fraction_numerical': 0.002173913043478261, 'mean_word_length': 8.303030303030303, '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': '6034458', 'n_tokens_mistral': 310, 'n_tokens_neox': 296, 'n_words': 67}