<commit_before>{ stdenv
, fetchurl

, protobuf-cpp
}:

let
  version = "1.3.1";
in
stdenv.mkDerivation rec {
  name = "protobuf-c-${version}";

  src = fetchurl {
    url = "https://github.com/protobuf-c/protobuf-c/releases/download/v${version}/${name}.tar.gz";
    sha256 = "51472d3a191d6d7b425e32b612e477c06f73fe23e07f6a6a839b11808e9d2267";
  };

  nativeBuildInputs = [
    protobuf-cpp
  ];

  buildInputs = [
    protobuf-cpp
  ];

  postPatch = ''
    # Fix namespace for 3.7.0+
    grep -q 'google::protobuf::Message::Reflection' t/generated-code2/cxx-generate-packed-data.cc
    sed -i 's,google::protobuf::Message::Reflection,google::protobuf::Reflection,' t/generated-code2/cxx-generate-packed-data.cc
  '';

  meta = with stdenv.lib; {
    maintainers = with maintainers; [
      wkennington
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}<commit_msg>protobuf-c : 1.3.1 -> 1.3.2<commit_after>{ stdenv
, fetchurl

, protobuf-cpp
}:

let
  version = "1.3.2";
in
stdenv.mkDerivation rec {
  name = "protobuf-c-${version}";

  src = fetchurl {
    url = "https://github.com/protobuf-c/protobuf-c/releases/download/v${version}/${name}.tar.gz";
    sha256 = "53f251f14c597bdb087aecf0b63630f434d73f5a10fc1ac545073597535b9e74";
  };

  nativeBuildInputs = [
    protobuf-cpp
  ];

  buildInputs = [
    protobuf-cpp
  ];

  meta = with stdenv.lib; {
    maintainers = with maintainers; [
      wkennington
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}
{'fraction_non_alphanumeric': 0.15080428954423591, 'fraction_numerical': 0.07975871313672922, 'mean_word_length': 3.2056338028169016, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '7305465', 'n_tokens_mistral': 650, 'n_tokens_neox': 580, 'n_words': 81}