<commit_before>##### GENERATED AT 2015-07-06 17:08:30 -0400 ######
class IncomeFixture < MagiFixture
  attr_accessor :magi, :test_sets

  def initialize
    super
    @magi = 'Income'
    @test_sets = [
      # ensure that medicaid threshold is making its way down properly 
      {
        test_name: "Income - Set Percentage Used",
        inputs: {
          "Application Year" => 2015,
          "Applicant Adult Group Category Indicator" => "Y",
          "Applicant Pregnancy Category Indicator" => "N",
          "Applicant Parent Caretaker Category Indicator" => "N",
          "Applicant Child Category Indicator" => "N",
          "Applicant Optional Targeted Low Income Child Indicator" => "N",
          "Applicant CHIP Targeted Low Income Child Indicator" => "N",
          "Calculated Income" => 0,
          "Medicaid Household" => MedicaidHousehold.new("house", '', '', '', 3),
          "Applicant Age" => 20
        },
        configs: {
          "Base FPL" => 10,
          "FPL Per Person" => 10,
          "FPL" => { "2015" => { "Base FPL" => 11770, "FPL Per Person" => 4160 } },
          "Option CHIP Pregnancy Category" => "N",
          "Medicaid Thresholds" => { "Adult Group Category" => { "percentage" => "Y", "method" => "standard", "threshold" => 100 } },
          "CHIP Thresholds" => { "Adult Group Category" => { "percentage" => "Y", "method" => "standard", "threshold" => 133 } }
        },
        expected_outputs: {
          "Percentage for Medicaid Category Used" => {"percentage" => "Y", "method" => "standard", "threshold" => 100},
          "Percentage for CHIP Category Used" => {"percentage" => "Y", "method" => "standard", "threshold" => 133},
        }
      },
      {
        test_name: "Income - Set FPL Percentage",
        inputs: {
          "Application Year" => 2015,
          "Applicant Adult Group Category Indicator" => "Y",
          "Applicant Pregnancy Category Indicator" => "Y",
          "Applicant Parent Caretaker Category Indicator" => "N",
          "Applicant Child Category Indicator" => "N",
          "Applicant Optional Targeted Low Income Child Indicator" => "N",
          "Applicant CHIP Targeted Low Income Child Indicator" => "N",
          "Calculated Income" => 0,
          "Medicaid Household" => MedicaidHousehold.new("house", '', '', '', 3),
          "Applicant Age" => 20
        },
        configs: {
          "Base FPL" => 11770,
          "FPL Per Person" => 4160,
          "FPL" => { "2015" => { "Base FPL" => 11770, "FPL Per Person" => 4160 } },
          "Option CHIP Pregnancy Category" => "N",
          "Medicaid Thresholds" => { "Adult Group Category" => { "percentage" => "Y", "method" => "standard", "threshold" => 100 } },
          "CHIP Thresholds" => { "Pregnancy Category" => { "percentage" => "Y", "method" => "standard", "threshold" => 133 } }
        },
        expected_outputs: {
          "FPL" => 20090,
          "FPL * Percentage Medicaid" => 21094.5, # not sure how the math for this works out
          "FPL * Percentage CHIP" => 27724.2, # not sure how the math for this works out either 
          "Category Used to Calculate Medicaid Income" => 'Adult Group Category',
          "Category Used to Calculate CHIP Income" => 'Pregnancy Category'
        }
      },

      # determine income eligibility rule - Medicaid
      {
        test_name: "Determine Medicaid Income Eligibility - Max Eligible Medicaid None",
        inputs: {<commit_msg>remove some comments<commit_after>##### GENERATED AT 2015-07-06 17:08:30 -0400 ######
class IncomeFixture < MagiFixture
  attr_accessor :magi, :test_sets

  def initialize
    super
    @magi = 'Income'
    @test_sets = [
      # ensure that medicaid threshold is making its way down properly 
      {
        test_name: "Income - Set Percentage Used",
        inputs: {
          "Application Year" => 2015,
          "Applicant Adult Group Category Indicator" => "Y",
          "Applicant Pregnancy Category Indicator" => "N",
          "Applicant Parent Caretaker Category Indicator" => "N",
          "Applicant Child Category Indicator" => "N",
          "Applicant Optional Targeted Low Income Child Indicator" => "N",
          "Applicant CHIP Targeted Low Income Child Indicator" => "N",
          "Calculated Income" => 0,
          "Medicaid Household" => MedicaidHousehold.new("house", '', '', '', 3),
          "Applicant Age" => 20
        },
        configs: {
          "Base FPL" => 10,
          "FPL Per Person" => 10,
          "FPL" => { "2015" => { "Base FPL" => 11770, "FPL Per Person" => 4160 } },
          "Option CHIP Pregnancy Category" => "N",
          "Medicaid Thresholds" => { "Adult Group Category" => { "percentage" => "Y", "method" => "standard", "threshold" => 100 } },
          "CHIP Thresholds" => { "Adult Group Category" => { "percentage" => "Y", "method" => "standard", "threshold" => 133 } }
        },
        expected_outputs: {
          "Percentage for Medicaid Category Used" => {"percentage" => "Y", "method" => "standard", "threshold" => 100},
          "Percentage for CHIP Category Used" => {"percentage" => "Y", "method" => "standard", "threshold" => 133},
        }
      },
      {
        test_name: "Income - Set FPL Percentage",
        inputs: {
          "Application Year" => 2015,
          "Applicant Adult Group Category Indicator" => "Y",
          "Applicant Pregnancy Category Indicator" => "Y",
          "Applicant Parent Caretaker Category Indicator" => "N",
          "Applicant Child Category Indicator" => "N",
          "Applicant Optional Targeted Low Income Child Indicator" => "N",
          "Applicant CHIP Targeted Low Income Child Indicator" => "N",
          "Calculated Income" => 0,
          "Medicaid Household" => MedicaidHousehold.new("house", '', '', '', 3),
          "Applicant Age" => 20
        },
        configs: {
          "Base FPL" => 11770,
          "FPL Per Person" => 4160,
          "FPL" => { "2015" => { "Base FPL" => 11770, "FPL Per Person" => 4160 } },
          "Option CHIP Pregnancy Category" => "N",
          "Medicaid Thresholds" => { "Adult Group Category" => { "percentage" => "Y", "method" => "standard", "threshold" => 100 } },
          "CHIP Thresholds" => { "Pregnancy Category" => { "percentage" => "Y", "method" => "standard", "threshold" => 133 } }
        },
        expected_outputs: {
          "FPL" => 20090,
          "FPL * Percentage Medicaid" => 21094.5, 
          "FPL * Percentage CHIP" => 27724.2, 
          "Category Used to Calculate Medicaid Income" => 'Adult Group Category',
          "Category Used to Calculate CHIP Income" => 'Pregnancy Category'
        }
      },

      # determine income eligibility rule - Medicaid
      {
        test_name: "Determine Medicaid Income Eligibility - Max Eligible Medicaid None",
        inputs: {
{'fraction_non_alphanumeric': 0.15022650884115155, 'fraction_numerical': 0.03156510302498904, 'mean_word_length': 2.3369088249634324, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 137, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3853617', 'n_tokens_mistral': 2279, 'n_tokens_neox': 1961, 'n_words': 611}