<commit_before>package controllers
import anorm._
import com.google.inject.Inject
import play.api.db.DBApi
import play.api.libs.json.Json
import play.api.mvc.{Action, Controller}

class SongController @Inject()(dbApi: DBApi) extends Controller {

  implicit private val db = dbApi.database("mymusicalflipcard")

  def rowToLine(row: Row) = {
   Json.obj(
     "id" -> row[Int]("id")
   )

  }

  def lines(id: Int) = Action {
    db.withConnection{implicit c =>
      val lines = SQL("select * from lines where song_id = {id}").on("id"->id).map{ row =>
        rowToLine(row)
      }
      Ok(lines)
    }
  }
}<commit_msg>Fixed the broken compile.  We were creating the SQL object, but we weren't actually executing it.  Added parentheses after the SQL declaration to execute the query.<commit_after>package controllers
import anorm._
import com.google.inject.Inject
import play.api.db.DBApi
import play.api.libs.json.Json
import play.api.mvc.{Action, Controller}

class SongController @Inject()(dbApi: DBApi) extends Controller {

  implicit private val db = dbApi.database("mymusicalflipcard")

  def rowToLine(row: Row) = {
   Json.obj(
     "id" -> row[Int]("id")
   )

  }

  def lines(id: Int) = Action {
    db.withConnection{implicit c =>
      val lines = SQL("select * from lines where song_id = {id}").on("id"->id)().map { row =>
        rowToLine(row)
      }
      Ok(lines)
    }
  }
}
{'fraction_non_alphanumeric': 0.13214285714285715, 'fraction_numerical': 0.0, 'mean_word_length': 3.3509316770186337, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '2474509', 'n_tokens_mistral': 480, 'n_tokens_neox': 467, 'n_words': 119}