<commit_before>module Pulp
  # Create Repository:
  #   Minimum Options to create a repository:
  #   r = Pulp::Repository.create(:feed => "http://mirror.switch.ch/ftp/mirror/epel/6/x86_64/", :id => 'epel-6-x86_64', :name => 'epel-6-x86_64', :arch => 'x86_64')
  class Repository < Pulp::Connection::Base
    has_crud :collection => { :all_filters => [ :id, :name, :arch, :groupid, :relative_path, :notes ] }

    pulp_fields :arch, :name, :release

    #these can't be updated
    pulp_locked_fields  :checksum_type, :clone_ids, :content_types, :feed_ca, :feed_cert, :feed_key,
      :filters, :files_count, :groupid, :last_sync, :publish,
      :consumer_ca, :consumer_cert, :distributionid, :notes, :next_scheduled_sync,
      :package_count, :preserve_metadata, :relative_path, :source, :sync_schedule, :use_symlinks, :uri_ref

    #special fields
    pulp_deferred_fields :files, :keys

    pulp_deferred_field :comps, :returns => :plain
    pulp_deferred_field :errata, :array => Pulp::Errata, :filters => true
    pulp_deferred_field :distribution, :array => Pulp::Distribution
    pulp_deferred_field :packagegroupcategories, :array => Pulp::PackageGroupCategory, :filter => true
    pulp_deferred_field :packagegroups, :array => Pulp::PackageGroup, :filter => true
    pulp_deferred_field :packages, :array => Pulp::Package, :filter => true

    pulp_action :sync, :returns => Pulp::Task, :params => :optional, :task_list => true
    pulp_action :add_errata, :parse => false
    pulp_action :add_file, :parse => false
    pulp_action :add_filters, :parse => false
    pulp_action :add_group, :parse => false
    pulp_action :add_metadata, :parse => false
    pulp_action :add_package, :parse => false
    pulp_action :add_packagegroup_to_category, :parse => false
    pulp_action :add_packages_to_group, :parse => false<commit_msg>add missing consumer_key field to repo<commit_after>module Pulp
  # Create Repository:
  #   Minimum Options to create a repository:
  #   r = Pulp::Repository.create(:feed => "http://mirror.switch.ch/ftp/mirror/epel/6/x86_64/", :id => 'epel-6-x86_64', :name => 'epel-6-x86_64', :arch => 'x86_64')
  class Repository < Pulp::Connection::Base
    has_crud :collection => { :all_filters => [ :id, :name, :arch, :groupid, :relative_path, :notes ] }

    pulp_fields :arch, :name, :release

    #these can't be updated
    pulp_locked_fields  :checksum_type, :clone_ids, :content_types, :feed_ca, :feed_cert, :feed_key,
      :filters, :files_count, :groupid, :last_sync, :publish,
      :consumer_ca, :consumer_cert, :consumer_key ,:distributionid, :notes, :next_scheduled_sync,
      :package_count, :preserve_metadata, :relative_path, :source, :sync_schedule, :use_symlinks, :uri_ref

    #special fields
    pulp_deferred_fields :files, :keys

    pulp_deferred_field :comps, :returns => :plain
    pulp_deferred_field :errata, :array => Pulp::Errata, :filters => true
    pulp_deferred_field :distribution, :array => Pulp::Distribution
    pulp_deferred_field :packagegroupcategories, :array => Pulp::PackageGroupCategory, :filter => true
    pulp_deferred_field :packagegroups, :array => Pulp::PackageGroup, :filter => true
    pulp_deferred_field :packages, :array => Pulp::Package, :filter => true

    pulp_action :sync, :returns => Pulp::Task, :params => :optional, :task_list => true
    pulp_action :add_errata, :parse => false
    pulp_action :add_file, :parse => false
    pulp_action :add_filters, :parse => false
    pulp_action :add_group, :parse => false
    pulp_action :add_metadata, :parse => false
    pulp_action :add_package, :parse => false
    pulp_action :add_packagegroup_to_category, :parse => false
    pulp_action :add_packages_to_group, :parse => false
{'fraction_non_alphanumeric': 0.13333333333333333, 'fraction_numerical': 0.01021505376344086, 'mean_word_length': 4.934609250398724, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 57, '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': '2094062', 'n_tokens_mistral': 1304, 'n_tokens_neox': 1256, 'n_words': 285}