<commit_before># frozen_string_literal: true

class Gitlab::Client
  # Defines methods related to repository submodules.
  # @see https://docs.gitlab.com/ce/api/repository_submodules.html
  module RepositorySubmodules
    # Edits an existing repository submodule.
    #
    # @example
    #   Gitlab.edit_file(42, "submodule", "branch", "3ddec28ea23acc5caa5d8331a6ecb2a65fc03e88", "commit message")
    #
    # @param  [Integer, String] project The ID or name of a project.
    # @param  [String] submodule full path of submodule to update.
    # @param  [String] branch the name of the branch to commit changes to.
    # @param  [String] commit_sha commit SHA to update the submodule to.
    # @param  [String] commit_message ...commit message.
    # @return [Gitlab::ObjectifiedHash]
    def edit_submodule(project, submodule, branch, commit_sha, commit_message)
      put("/projects/#{url_encode project}/repository/submodules/#{url_encode submodule}", body: {
        branch: branch,
        commit_sha: commit_sha
        commit_message: commit_message
      })
    end
  end
end
<commit_msg>Fix missing coma in RepositorySubmodules<commit_after># frozen_string_literal: true

class Gitlab::Client
  # Defines methods related to repository submodules.
  # @see https://docs.gitlab.com/ce/api/repository_submodules.html
  module RepositorySubmodules
    # Edits an existing repository submodule.
    #
    # @example
    #   Gitlab.edit_file(42, "submodule", "branch", "3ddec28ea23acc5caa5d8331a6ecb2a65fc03e88", "commit message")
    #
    # @param  [Integer, String] project The ID or name of a project.
    # @param  [String] submodule full path of submodule to update.
    # @param  [String] branch the name of the branch to commit changes to.
    # @param  [String] commit_sha commit SHA to update the submodule to.
    # @param  [String] commit_message ...commit message.
    # @return [Gitlab::ObjectifiedHash]
    def edit_submodule(project, submodule, branch, commit_sha, commit_message)
      put("/projects/#{url_encode project}/repository/submodules/#{url_encode submodule}", body: {
        branch: branch,
        commit_sha: commit_sha,
        commit_message: commit_message
      })
    end
  end
end

{'fraction_non_alphanumeric': 0.09585958595859587, 'fraction_numerical': 0.018901890189018902, 'mean_word_length': 3.6216216216216215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1549285', 'n_tokens_mistral': 696, 'n_tokens_neox': 676, 'n_words': 194}