<commit_before>/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

namespace cpp2 apache.thrift.test
namespace java thrift.test

struct Reserved {
 1: string from,
}

struct Doubles {
 1: double nan,
 2: double inf,
 3: double neginf,
 4: double repeating,
 5: double big,
 6: double small,
 7: double zero,
 8: double negzero,
}

struct Floats {
 1: float nan,
 2: float inf,
 3: float neginf,
 4: float repeating,
 5: float big,
 6: float small,
 7: float zero,
 8: float negzero,
}

struct TwoInts {
  1: i32 a,
  2: i32 b,
}

struct OneOfEach {
  1: bool im_true,
  2: bool im_false,
  3: byte a_bite = 100,
  4: i16 integer16 = 23000,
  5: i32 integer32,
  6: i64 integer64 = 10000000000,
  7: double double_precision,
  8: string some_characters,
  9: string zomg_unicode,
  10: bool what_who,
  11: binary base64,
  12: list<byte> byte_list = [1, 2, 3],
  13: list<i16> i16_list = [1,2,3],
  14: list<i64> i64_list = [1,2,3]
  15: map<string, string> string_string_map;
  16: map<string, string> (cpp.template = 'std::unordered_map') string_string_hash_map,
  17: float float_precision,
  18: map<i64, float> rank_map,
  19: TwoInts two_ints_uninit,
  20: TwoInts two_ints_init = {a: 3, b: 4},
  21: list<TwoInts> list_two_ints_uninit,
  22: list<TwoInts> list_two_ints_init_default = [{}, {}],
  23: list<TwoInts> list_two_ints_init_explicit = [{a: 1, b: 2}, {a: 3, b: 4}],
  24: set<string> string_set,
  25: set<string> (cpp.template = 'std::unordered_set') string_hash_set,
}

struct Constant1 {
  1: i32 x,
  2: string y = "hello",
}

struct Constant {
  1: i32 a,
  2: i32 b = 1,
  3: list<i32> c,
  4: list<i32> d = [1, 2],
  5: Constant1 e,
  6: Constant1 f = {x: 42},
  7: list<Constant1> g,
  8: list<Constant1> h = [{x:50, y:"meow"}, {x:60}],
  9: string s = "world",
}

const Constant const1 = {}

const Constant const2 = { s: "goodbye" },

struct Bonk {
  1: i32 type,
  2: string message,
}

struct Nesting {
  1: Bonk my_bonk,
  2: OneOfEach my_ooe,
}

struct HolyMoley {<commit_msg>Fix "Constant strings" warning in testing Thrift files<commit_after>/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

namespace cpp2 apache.thrift.test
namespace java thrift.test

struct Reserved {
 1: string from,
}

struct Doubles {
 1: double nan,
 2: double inf,
 3: double neginf,
 4: double repeating,
 5: double big,
 6: double small,
 7: double zero,
 8: double negzero,
}

struct Floats {
 1: float nan,
 2: float inf,
 3: float neginf,
 4: float repeating,
 5: float big,
 6: float small,
 7: float zero,
 8: float negzero,
}

struct TwoInts {
  1: i32 a,
  2: i32 b,
}

struct OneOfEach {
  1: bool im_true,
  2: bool im_false,
  3: byte a_bite = 100,
  4: i16 integer16 = 23000,
  5: i32 integer32,
  6: i64 integer64 = 10000000000,
  7: double double_precision,
  8: string some_characters,
  9: string zomg_unicode,
  10: bool what_who,
  11: binary base64,
  12: list<byte> byte_list = [1, 2, 3],
  13: list<i16> i16_list = [1,2,3],
  14: list<i64> i64_list = [1,2,3]
  15: map<string, string> string_string_map;
  16: map<string, string> (cpp.template = 'std::unordered_map') string_string_hash_map,
  17: float float_precision,
  18: map<i64, float> rank_map,
  19: TwoInts two_ints_uninit,
  20: TwoInts two_ints_init = {"a": 3, "b": 4},
  21: list<TwoInts> list_two_ints_uninit,
  22: list<TwoInts> list_two_ints_init_default = [{}, {}],
  23: list<TwoInts> list_two_ints_init_explicit = [{"a": 1, "b": 2}, {"a": 3, "b": 4}],
  24: set<string> string_set,
  25: set<string> (cpp.template = 'std::unordered_set') string_hash_set,
}

struct Constant1 {
  1: i32 x,
  2: string y = "hello",
}

struct Constant {
  1: i32 a,
  2: i32 b = 1,
  3: list<i32> c,
  4: list<i32> d = [1, 2],
  5: Constant1 e,
  6: Constant1 f = {"x": 42},
  7: list<Constant1> g,
  8: list<Constant1> h = [{"x": 50, "y": "meow"}, {"x": 60}],
  9: string s = "world",
}

const Constant const1 = {}

const Constant const2 = { "s": "goodbye" },

struct Bonk {
  1: i32 type,
  2: string message,
}

struct Nesting {
  1: Bonk my_bonk,
  2: OneOfEach my_ooe,
}

struct HolyMoley {
{'fraction_non_alphanumeric': 0.12038695807954139, 'fraction_numerical': 0.06091006807595844, 'mean_word_length': 3.8170836928386542, 'pattern_counts': {'":': 11, '<': 33, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '4533870', 'n_tokens_mistral': 2221, 'n_tokens_neox': 2026, 'n_words': 732}