<commit_before>namespace cpp pisco.thrift
namespace php Pisco.Thrift

struct Item {
  1: required i32 id,
  2: required i32 time,
  3: optional string value,
  4: optional bool deleted
}

struct Result {
  1: required list<i32> ids,
  2: optional i32 total = 0
}

service Search {
  Result lookup(1: string pattern, 2: i32 limit = 10, 3: bool total_required = false),
  bool add(1: Item item),
  bool replace(1: Item item),
  bool remove(1: i32 id)
}<commit_msg>Thrift IDL updated, lookup details are now provided in a "Query" struct.<commit_after>namespace cpp pisco.thrift
namespace php Pisco.Thrift

struct Item {
  1: required i32 id,
  2: required i32 time,
  3: optional string value,
  4: optional bool deleted
}

struct Result {
  1: required list<i32> ids,
  2: optional i32 total = 0
}

struct Query {
  1: optional set<string> include_patterns,
  2: optional set<string> exclude_patterns,
  3: optional i32 limit = 10,
  4: optional bool total_required = false,
  5: optional bool reverse_order = false,
  6: optional bool included_deleted = false
}

service Search {
  Result lookup(1: Query query),
  bool add(1: Item item),
  bool replace(1: Item item),
  bool remove(1: i32 id)
}
{'fraction_non_alphanumeric': 0.09128978224455611, 'fraction_numerical': 0.048576214405360134, 'mean_word_length': 3.9791666666666665, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1726590', 'n_tokens_mistral': 417, 'n_tokens_neox': 396, 'n_words': 155}