<commit_before>package sma.http

import akka.http.scaladsl.server.Directives._
import akka.http.scaladsl.server._
import akka.http.scaladsl.server.directives.PathDirectives._

trait Static {

  val staticRoutes: Route = {
    path("/index.html") {
      getFromFile("index.html")
    }

  }
}<commit_msg>serving static content for a given fixed user@twitter<commit_after>package sma.http

import akka.http.scaladsl.server.Route
import akka.http.scaladsl.server.directives.FileAndResourceDirectives.getFromFile
import akka.http.scaladsl.server.directives.PathDirectives.path
import akka.http.scaladsl.server.Directives.redirect
import akka.http.scaladsl.server.directives.PathDirectives.pathSingleSlash
import akka.http.scaladsl.model.StatusCodes.MovedPermanently
import akka.http.scaladsl.server.Directives._

trait Static {

  val staticRoutes: Route = {
    pathSingleSlash {
      redirect("<EMAIL>", MovedPermanently)
    } ~ path("<EMAIL>") {
      getFromFile("index.html")
    }
  }

}
{'fraction_non_alphanumeric': 0.10987903225806452, 'fraction_numerical': 0.0, 'mean_word_length': 4.642045454545454, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4135537', 'n_tokens_mistral': 337, 'n_tokens_neox': 333, 'n_words': 48}