<commit_before>package extensions

import play.data.binding.TypeBinder
import java.lang.annotation.Annotation
import java.lang.reflect.Type
import play.mvc.Http.Request

/**
 * 
 * @author <NAME> <<EMAIL>>
 */

class ScalaListTypeBinder extends TypeBinder[scala.collection.immutable.List[String]] {
  def bind(name: String, annotations: Array[Annotation], value: String, actualClass: Class[_], genericType: Type): AnyRef = {
    println("ScalaListTypeBinder")
    val values:Array[String] = Request.current().params.getAll(name)
    List(values)
  }
}<commit_msg>Fixing the type binder (was not returning a list of elements but a list with an array)<commit_after>package extensions

import play.data.binding.TypeBinder
import java.lang.annotation.Annotation
import java.lang.reflect.Type
import play.mvc.Http.Request

/**
 * 
 * @author <NAME> <<EMAIL>>
 */

class ScalaListTypeBinder extends TypeBinder[scala.collection.immutable.List[String]] {
  def bind(name: String, annotations: Array[Annotation], value: String, actualClass: Class[_], genericType: Type): List[String] = {
    val values:Array[String] = Request.current().params.getAll(name)
    values.toList
  }
}
{'fraction_non_alphanumeric': 0.125533731853117, 'fraction_numerical': 0.0, 'mean_word_length': 5.335135135135135, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6425702', 'n_tokens_mistral': 361, 'n_tokens_neox': 352, 'n_words': 83}