<commit_before>require 'SecureRandom'

module Bosh::Director::Links
  class LinksManager
    include Bosh::Director::IpUtil

    def initialize(logger, event_logger)
      # @context_id = SecureRandom.uuid
      @logger = logger
      @event_logger = event_logger
    end

    def find_or_create_provider(
      deployment_model:,
      instance_group_name:,
      name:,
      type:
    )
      Bosh::Director::Models::Links::LinkProvider.find_or_create(
        deployment: deployment_model,
        instance_group: instance_group_name,
        name: name,
        type: type<commit_msg>Remove unused secure random require<commit_after>module Bosh::Director::Links
  class LinksManager
    include Bosh::Director::IpUtil

    def initialize(logger, event_logger)
      @logger = logger
      @event_logger = event_logger
    end

    def find_or_create_provider(
      deployment_model:,
      instance_group_name:,
      name:,
      type:
    )
      Bosh::Director::Models::Links::LinkProvider.find_or_create(
        deployment: deployment_model,
        instance_group: instance_group_name,
        name: name,
        type: type
{'fraction_non_alphanumeric': 0.08274647887323944, 'fraction_numerical': 0.0, 'mean_word_length': 3.075268817204301, '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': '1887290', 'n_tokens_mistral': 338, 'n_tokens_neox': 328, 'n_words': 65}