<commit_before>module Caplinked
  module REST
    module Teams

      def create_team(options = {})
        body = options.stringify_keys.slice('team')
        perform_post('/api/v1/teams', nil, body.to_json, {'Content-Type' => 'application/json'} )
      end

      def get_list_of_teams(options = {})
        perform_get('/api/v1/teams')
      end

      def get_team_info(options = {})
        params = options.stringify_keys.slice('id')
        id = params.delete('id')
        perform_get('/api/v1/teams/' + id.to_s, nil )
      end

      def update_team_info(options = {})
        params = {}
        body = options.stringify_keys.slice('id', 'team')
        id = body.delete('id')
        perform_put('/api/v1/teams/' + id.to_s, params, body.to_json, { 'Content-Type' => 'application/json' } )
      end

      def add_team_member(options = {})
        params = {}
        body = options.stringify_keys.slice('id', 'user_id')
        id = body.delete('id')
        perform_post('/api/v1/teams/' + id.to_s + '/memberships', params, body.to_json, { 'Content-Type' => 'application/json' } )
      end

      def remove_team_member(options = {})
        params = options.stringify_keys.slice('id', 'user_id')
        id = params.delete('id')
        perform_delete('/api/v1/teams/' + id.to_s + '/memberships', params )
      end

      def get_list_of_team_members(options = {})
        params = options.stringify_keys.slice('id')
        id = params.delete('id')
        perform_get('/api/v1/teams/' + id.to_s + '/memberships', nil )
      end

    end
  end
end
<commit_msg>Send body<commit_after>module Caplinked
  module REST
    module Teams

      def create_team(options = {})
        body = options.stringify_keys.slice('team')
        perform_post('/api/v1/teams', nil, body.to_json, {'Content-Type' => 'application/json'} )
      end

      def get_list_of_teams(options = {})
        perform_get('/api/v1/teams')
      end

      def get_team_info(options = {})
        params = options.stringify_keys.slice('id')
        id = params.delete('id')
        perform_get('/api/v1/teams/' + id.to_s, nil )
      end

      def update_team_info(options = {})
        params = {}
        body = options.stringify_keys.slice('id', 'team')
        id = body.delete('id')
        perform_put('/api/v1/teams/' + id.to_s, params, body.to_json, { 'Content-Type' => 'application/json' } )
      end

      def add_team_member(options = {})
        params = {}
        body = options.stringify_keys.slice('id', 'user_id')
        id = body.delete('id')
        perform_post('/api/v1/teams/' + id.to_s + '/memberships', params, body.to_json, { 'Content-Type' => 'application/json' } )
      end

      def remove_team_member(options = {})
        params = {}
        body = options.stringify_keys.slice('id', 'user_id')
        id = body.delete('id')
        perform_delete('/api/v1/teams/' + id.to_s + '/memberships', params, body.to_json, { 'Content-Type' => 'application/json' } )
      end

      def get_list_of_team_members(options = {})
        params = options.stringify_keys.slice('id')
        id = params.delete('id')
        perform_get('/api/v1/teams/' + id.to_s + '/memberships', nil )
      end

    end
  end
end

{'fraction_non_alphanumeric': 0.15737298636926889, 'fraction_numerical': 0.004337050805452293, 'mean_word_length': 2.420550847457627, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '786427', 'n_tokens_mistral': 1073, 'n_tokens_neox': 1064, 'n_words': 179}