<commit_before>module Yardstick
  module V2Client
    class ExamForm
      include RemoteModel
      attr_accessor :id, :name, :exam_id, :exam

      def self.assigned_to_me(token)
        response = get('/v2/whoami/exam_form_assignments', :query => { :token => token })
        ExamForm.from_array(response)
      end

      def self.process_response(resp, extras = {})
        attrs = super
        attrs[:exam] = Exam.from_api(attrs[:exam]) if attrs.has_key?(:exam)
        attrs
      end
    end<commit_msg>allow options for assigned exam forms<commit_after>module Yardstick
  module V2Client
    class ExamForm
      include RemoteModel
      attr_accessor :id, :name, :exam_id, :exam

      def self.assigned_to_me(token, options = {})
        response = get('/v2/whoami/exam_form_assignments', :query => options.merge(:token => token))
        ExamForm.from_array(response)
      end

      def self.process_response(resp, extras = {})
        attrs = super
        attrs[:exam] = Exam.from_api(attrs[:exam]) if attrs.has_key?(:exam)
        attrs
      end
    end
{'fraction_non_alphanumeric': 0.10904007455731593, 'fraction_numerical': 0.003727865796831314, 'mean_word_length': 2.7816901408450705, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '913294', 'n_tokens_mistral': 351, 'n_tokens_neox': 347, 'n_words': 73}