<commit_before>module Dingtalk
  module Api
    class User < Base
      def get_user_info(code)
        http_get('getuserinfo', { code: code })
      end

      def get(userid)
        http_get('get', { userid: userid })
      end

      private
        def base_url
          'user'
        end
    end
  end
end

<commit_msg>Fix user apis<commit_after>module Dingtalk
  module Api
    class User < Base
      def get_user_info(code)
        http_get("getuserinfo?access_token=#{access_token}&code=#{code}")
      end

      def get(userid)
        http_get("get?access_token=#{access_token}&userid=#{userid}")
      end

      private
        def base_url
          'user'
        end
    end
  end
end


{'fraction_non_alphanumeric': 0.0906515580736544, 'fraction_numerical': 0.0, 'mean_word_length': 2.0343347639484977, 'pattern_counts': {'":': 0, '<': 5, '<?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': '738300', 'n_tokens_mistral': 234, 'n_tokens_neox': 232, 'n_words': 52}