<commit_before>package controllers

import play.api._
import play.api.mvc._

object Application extends Controller {

  def index = Action {
    Ok(views.html.index())
  }
  
  def robots = Action {
      if(Play.current.configuration.getBoolean("application.robots").getOrElse(false)){
          Redirect(routes.Assets.at("yes-robots.txt"))
      }else{
          Redirect(routes.Assets.at("no-robots.txt"))
      }
  }
  
  // Handles trailing slashes... http://stackoverflow.com/questions/13189095/play-framework2-remove-trailing-slash-from-urls
  def untrail(path: String) = Action { 
        MovedPermanently("/" + path)
  }


  def issue(issueCode:String) = Action {
    val issue = metadata.Issues.all.filter(x => x.code.equalsIgnoreCase(issueCode) ).head

    Ok(views.html.issues.issueTemplate(issue))
  }
  
  def page(slug:String) = Action {
    slug match {
        case "how-it-works"  => Ok(views.html.howItWorks())

        case "free-trials"  => Ok(views.html.freetrials())
        case "theming"  => Ok(views.html.theming())
        case "shared-vs-solo-accounts"  => Ok(views.html.sharedAccounts())
        case "testing"  => Ok(views.html.testingBestPractices())
        case "mobile"  => Ok(views.html.mobile())
        
        case "braintree"  => Ok(views.html.braintree())
        case "recurly"  => Ok(views.html.recurly())
        case "stripe"  => Ok(views.html.stripe())
        case "zuora"  => Ok(views.html.zuora())

        case "guides/dollar-credit" => Ok(views.html.dollarCreditGuide())
        case "guides/percent-discount" => Ok(views.html.pctDiscountGuide())
        case "guides/feature-upgrade" => Ok(views.html.featureUpgradeGuide())
        case "guides/free-time" => Ok(views.html.freeTimeGuide())
        case "guides/in-app-credit" => Ok(views.html.inAppCreditGuide())
        case "guides/point-reward" => Ok(views.html.pointsGuide())

        case "app-integration"  => Ok(views.html.appIntegration())

        case "squatchjs/signed-requests"  => Ok(views.html.signedRequests())
        case "squatchjs/issue"  => Ok(views.html.issueList())<commit_msg>LV: Fixed some build issues<commit_after>package controllers

import play.api._
import play.api.mvc._

object Application extends Controller {

  def index = Action {
    Ok(views.html.index())
  }
  
  def robots = Action {
      if(Play.current.configuration.getBoolean("application.robots").getOrElse(false)){
          Redirect(routes.Assets.at("yes-robots.txt"))
      }else{
          Redirect(routes.Assets.at("no-robots.txt"))
      }
  }
  
  // Handles trailing slashes... http://stackoverflow.com/questions/13189095/play-framework2-remove-trailing-slash-from-urls
  def untrail(path: String) = Action { 
        MovedPermanently("/" + path)
  }


  def issue(issueCode:String) = Action {
    val issue = metadata.Issues.all.filter(x => x.code.equalsIgnoreCase(issueCode) ).head

    Ok(views.html.issues.issueTemplate(issue))
  }
  
  def page(slug:String) = Action {
    slug match {
        case "how-it-works"  => Ok(views.html.howItWorks())

        case "free-trials"  => Ok(views.html.freetrials())
        case "theming"  => Ok(views.html.theming())
        case "shared-vs-solo-accounts"  => Ok(views.html.sharedAccounts())
        case "testing"  => Ok(views.html.testingBestPractices())
        case "mobile"  => Ok(views.html.mobile())
        
        case "braintree"  => Ok(views.html.braintree())
        case "recurly"  => Ok(views.html.recurly())
        case "stripe"  => Ok(views.html.stripe())
        case "zuora"  => Ok(views.html.zuora())

        case "guides/dollar-credit" => Ok(views.html.dollarCreditGuide())
        case "guides/percent-discount" => Ok(views.html.pctDiscountGuide())
        case "guides/feature-upgrade" => Ok(views.html.featureUpgradeGuide())
        case "guides/free-time" => Ok(views.html.freeTimeGuide())
        case "guides/in-app-credit" => Ok(views.html.inAppCreditGuide())
        case "guides/point-reward" => Ok(views.html.pointsGuide())

        case "app-integration"  => Ok(views.html.appIntegration())

        case "squatchjs/signed-requests"  => Ok(views.html.signedRequests())
        case "squatchjs/issue"  => Ok(views.html.issues.issueList())
{'fraction_non_alphanumeric': 0.1581813876391191, 'fraction_numerical': 0.004262372720814586, 'mean_word_length': 3.0, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 43, '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': '951349', 'n_tokens_mistral': 1456, 'n_tokens_neox': 1391, 'n_words': 207}