<commit_before>#
# Autogenerated by Thrift Compiler (0.12.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#

require 'thrift'

module OpenTelemetry
  module Exporter
    module Jaeger
      module Thrift
        module TagType
          STRING = 0
          DOUBLE = 1
          BOOL = 2
          LONG = 3
          BINARY = 4
          VALUE_MAP = {0 => "STRING", 1 => "DOUBLE", 2 => "BOOL", 3 => "LONG", 4 => "BINARY"}
          VALID_VALUES = Set.new([STRING, DOUBLE, BOOL, LONG, BINARY]).freeze
        end

        module SpanRefType
          CHILD_OF = 0
          FOLLOWS_FROM = 1
          VALUE_MAP = {0 => "CHILD_OF", 1 => "FOLLOWS_FROM"}
          VALID_VALUES = Set.new([CHILD_OF, FOLLOWS_FROM]).freeze
        end

        class Tag; end

        class Log; end

        class SpanRef; end

        class Span; end

        class Process; end

        class Batch; end

        class BatchSubmitResponse; end

        class Tag
          include ::Thrift::Struct, ::Thrift::Struct_Union
          KEY = 1
          VTYPE = 2
          VSTR = 3
          VDOUBLE = 4
          VBOOL = 5
          VLONG = 6
          VBINARY = 7

          FIELDS = {
            KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
            VTYPE => {:type => ::Thrift::Types::I32, :name => 'vType', :enum_class => ::OpenTelemetry::Exporter::Jaeger::Thrift::TagType},
            VSTR => {:type => ::Thrift::Types::STRING, :name => 'vStr', :optional => true},
            VDOUBLE => {:type => ::Thrift::Types::DOUBLE, :name => 'vDouble', :optional => true},
            VBOOL => {:type => ::Thrift::Types::BOOL, :name => 'vBool', :optional => true},
            VLONG => {:type => ::Thrift::Types::I64, :name => 'vLong', :optional => true},
            VBINARY => {:type => ::Thrift::Types::STRING, :name => 'vBinary', :binary => true, :optional => true}
          }

          def struct_fields; FIELDS; end

          def validate
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field vType is unset!') unless @vType
            unless @vType.nil? || ::OpenTelemetry::Exporter::Jaeger::Thrift::TagType::VALID_VALUES.include?(@vType)
              raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field vType!')
            end
          end

          ::Thrift::Struct.generate_accessors self
        end

        class Log
          include ::Thrift::Struct, ::Thrift::Struct_Union
          TIMESTAMP = 1
          FIELDS = 2

          FIELDS = {
            TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
            FIELDS => {:type => ::Thrift::Types::LIST, :name => 'fields', :element => {:type => ::Thrift::Types::STRUCT, :class => ::OpenTelemetry::Exporter::Jaeger::Thrift::Tag}}
          }

          def struct_fields; FIELDS; end

          def validate
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field timestamp is unset!') unless @timestamp
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field fields is unset!') unless @fields
          end

          ::Thrift::Struct.generate_accessors self
        end

        class SpanRef
          include ::Thrift::Struct, ::Thrift::Struct_Union
          REFTYPE = 1<commit_msg>fix: rename constant to hide warning message (#732)<commit_after>#
# Autogenerated by Thrift Compiler (0.12.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#

require 'thrift'

module OpenTelemetry
  module Exporter
    module Jaeger
      module Thrift
        module TagType
          STRING = 0
          DOUBLE = 1
          BOOL = 2
          LONG = 3
          BINARY = 4
          VALUE_MAP = {0 => "STRING", 1 => "DOUBLE", 2 => "BOOL", 3 => "LONG", 4 => "BINARY"}
          VALID_VALUES = Set.new([STRING, DOUBLE, BOOL, LONG, BINARY]).freeze
        end

        module SpanRefType
          CHILD_OF = 0
          FOLLOWS_FROM = 1
          VALUE_MAP = {0 => "CHILD_OF", 1 => "FOLLOWS_FROM"}
          VALID_VALUES = Set.new([CHILD_OF, FOLLOWS_FROM]).freeze
        end

        class Tag; end

        class Log; end

        class SpanRef; end

        class Span; end

        class Process; end

        class Batch; end

        class BatchSubmitResponse; end

        class Tag
          include ::Thrift::Struct, ::Thrift::Struct_Union
          KEY = 1
          VTYPE = 2
          VSTR = 3
          VDOUBLE = 4
          VBOOL = 5
          VLONG = 6
          VBINARY = 7

          FIELDS = {
            KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
            VTYPE => {:type => ::Thrift::Types::I32, :name => 'vType', :enum_class => ::OpenTelemetry::Exporter::Jaeger::Thrift::TagType},
            VSTR => {:type => ::Thrift::Types::STRING, :name => 'vStr', :optional => true},
            VDOUBLE => {:type => ::Thrift::Types::DOUBLE, :name => 'vDouble', :optional => true},
            VBOOL => {:type => ::Thrift::Types::BOOL, :name => 'vBool', :optional => true},
            VLONG => {:type => ::Thrift::Types::I64, :name => 'vLong', :optional => true},
            VBINARY => {:type => ::Thrift::Types::STRING, :name => 'vBinary', :binary => true, :optional => true}
          }

          def struct_fields; FIELDS; end

          def validate
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field vType is unset!') unless @vType
            unless @vType.nil? || ::OpenTelemetry::Exporter::Jaeger::Thrift::TagType::VALID_VALUES.include?(@vType)
              raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field vType!')
            end
          end

          ::Thrift::Struct.generate_accessors self
        end

        class Log
          include ::Thrift::Struct, ::Thrift::Struct_Union
          TIMESTAMP = 1
          FIELDS_LIST = 2

          FIELDS = {
            TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
            FIELDS_LIST => {:type => ::Thrift::Types::LIST, :name => 'fields', :element => {:type => ::Thrift::Types::STRUCT, :class => ::OpenTelemetry::Exporter::Jaeger::Thrift::Tag}}
          }

          def struct_fields; FIELDS; end

          def validate
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field timestamp is unset!') unless @timestamp
            raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field fields is unset!') unless @fields
          end

          ::Thrift::Struct.generate_accessors self
        end

        class SpanRef
          include ::Thrift::Struct, ::Thrift::Struct_Union
          REFTYPE = 1
{'fraction_non_alphanumeric': 0.1412461234846349, 'fraction_numerical': 0.010008457851705666, 'mean_word_length': 2.3061509785647716, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 91, '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': '924820', 'n_tokens_mistral': 2179, 'n_tokens_neox': 2049, 'n_words': 534}