<commit_before>package com.sksamuel.avro4s.record.decoder

import com.sksamuel.avro4s.{AvroSchema, Decoder}
import org.apache.avro.generic.GenericData
import org.apache.avro.util.Utf8
import org.scalatest.{FunSuite, Matchers}

class TransientDecoderTest extends FunSuite with Matchers {

  case class TransientFoo(a: String, @transient b: Option[String], @transient c: String)

  test("decoder should populate transient fields with None or null") {
    val schema = AvroSchema[TransientFoo]
    val record = new GenericData.Record(schema)
    record.put("a", new Utf8("hello"))
    Decoder[TransientFoo].decode(record, schema) shouldBe TransientFoo("hello", None, null)
  }
}<commit_msg>Modified transient to only work on options<commit_after>package com.sksamuel.avro4s.record.decoder

import com.sksamuel.avro4s.{AvroSchema, Decoder}
import org.apache.avro.generic.GenericData
import org.apache.avro.util.Utf8
import org.scalatest.{FunSuite, Matchers}

class TransientDecoderTest extends FunSuite with Matchers {

  case class TransientFoo(a: String, @transient b: Option[String])

  test("decoder should populate transient fields with None") {
    val schema = AvroSchema[TransientFoo]
    val record = new GenericData.Record(schema)
    record.put("a", new Utf8("hello"))
    Decoder[TransientFoo].decode(record, schema) shouldBe TransientFoo("hello", None)
  }
}
{'fraction_non_alphanumeric': 0.10534016093635698, 'fraction_numerical': 0.005852231163130944, 'mean_word_length': 5.545454545454546, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6038878', 'n_tokens_mistral': 451, 'n_tokens_neox': 430, 'n_words': 106}