<commit_before>// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package prototype

import pref "github.com/golang/protobuf/v2/reflect/protoreflect"

// X provides functionality internal to the protobuf module.
//
// WARNING: The compatibility agreement covers nothing except for functionality
// needed to keep existing generated messages operational. The Go authors
// are not responsible for breakages that occur due to unauthorized usages.
var X internal

type internal struct{}

// optionTypes contains typed nil-pointers to each of the options types.
// These are populated at init time by the descriptor package.
var optionTypes struct {
	File           pref.ProtoMessage
	Enum           pref.ProtoMessage
	EnumValue      pref.ProtoMessage
	Message        pref.ProtoMessage
	Field          pref.ProtoMessage
	Oneof          pref.ProtoMessage
	ExtensionRange pref.ProtoMessage
	Service        pref.ProtoMessage
	Method         pref.ProtoMessage
}

func (internal) RegisterFileOptions(m pref.ProtoMessage)           { optionTypes.File = m }
func (internal) RegisterEnumOptions(m pref.ProtoMessage)           { optionTypes.Enum = m }
func (internal) RegisterEnumValueOptions(m pref.ProtoMessage)      { optionTypes.EnumValue = m }
func (internal) RegisterMessageOptions(m pref.ProtoMessage)        { optionTypes.Message = m }
func (internal) RegisterFieldOptions(m pref.ProtoMessage)          { optionTypes.Field = m }
func (internal) RegisterOneofOptions(m pref.ProtoMessage)          { optionTypes.Oneof = m }
func (internal) RegisterExtensionRangeOptions(m pref.ProtoMessage) { optionTypes.ExtensionRange = m }
func (internal) RegisterServiceOptions(m pref.ProtoMessage)        { optionTypes.Service = m }
func (internal) RegisterMethodOptions(m pref.ProtoMessage)         { optionTypes.Method = m }<commit_msg>reflect/prototype: change registered option types to interface{}<commit_after>// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package prototype

// X provides functionality internal to the protobuf module.
//
// WARNING: The compatibility agreement covers nothing except for functionality
// needed to keep existing generated messages operational. The Go authors
// are not responsible for breakages that occur due to unauthorized usages.
var X internal

type internal struct{}

// optionTypes contains typed nil-pointers to each of the options types.
// These are populated at init time by the descriptor package.
var optionTypes struct {
	File           interface{}
	Enum           interface{}
	EnumValue      interface{}
	Message        interface{}
	Field          interface{}
	Oneof          interface{}
	ExtensionRange interface{}
	Service        interface{}
	Method         interface{}
}

func (internal) RegisterFileOptions(m interface{})           { optionTypes.File = m }
func (internal) RegisterEnumOptions(m interface{})           { optionTypes.Enum = m }
func (internal) RegisterEnumValueOptions(m interface{})      { optionTypes.EnumValue = m }
func (internal) RegisterMessageOptions(m interface{})        { optionTypes.Message = m }
func (internal) RegisterFieldOptions(m interface{})          { optionTypes.Field = m }
func (internal) RegisterOneofOptions(m interface{})          { optionTypes.Oneof = m }
func (internal) RegisterExtensionRangeOptions(m interface{}) { optionTypes.ExtensionRange = m }
func (internal) RegisterServiceOptions(m interface{})        { optionTypes.Service = m }
func (internal) RegisterMethodOptions(m interface{})         { optionTypes.Method = m }
{'fraction_non_alphanumeric': 0.07661398339137424, 'fraction_numerical': 0.0024109295472810074, 'mean_word_length': 3.5872235872235874, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4200307', 'n_tokens_mistral': 905, 'n_tokens_neox': 901, 'n_words': 347}