<commit_before>r8_require('branch_names')
module DTK
  class ModuleBranch < Model
    include BranchNamesMixin
    extend BranchNamesClassMixin

    def get_type()
      update_object!(:type)[:type].to_sym
    end

    def get_module_version_constraints()
      sp_hash = {
        :cols => [:id,:display_name,:group_id,:constraints,:service_id,:component_id],
        :filter => [:eq,:branch_id,id()]
      }
      mh = model_handle(:module_version_constraints)
      ModuleVersionConstraints.create_and_reify?(self,Model.get_obj(mh,sp_hash))
    end
    
    def get_module_repo_info()
      repo = get_repo(:repo_name)
      module_name = get_module_name()
      ModuleRepoInfo.new(repo,module_name,self)<commit_msg>fixed bug when assembly-template/deleet is called<commit_after>r8_require('branch_names')
module DTK
  class ModuleBranch < Model
    include BranchNamesMixin
    extend BranchNamesClassMixin

    def get_type()
      update_object!(:type)[:type].to_sym
    end

    def get_module_version_constraints()
      sp_hash = {
        :cols => [:id,:display_name,:group_id,:constraints,:service_id,:component_id],
        :filter => [:eq,:branch_id,id()]
      }
      mh = model_handle(:module_version_constraints)
      ModuleVersionConstraints.create_and_reify?(self,Model.get_obj(mh,sp_hash))
    end
    
    def get_module_repo_info()
      repo = get_repo(:repo_name)
      module_obj = get_module()
      version = get_field?(:version)
      ModuleRepoInfo.new(repo,module_obj.module_name(),module_obj.id_handle(),self,version)
{'fraction_non_alphanumeric': 0.1103938024531956, 'fraction_numerical': 0.0012911555842479018, 'mean_word_length': 4.016181229773463, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1060544', 'n_tokens_mistral': 517, 'n_tokens_neox': 515, 'n_words': 70}