<commit_before>package service
import awscala._, s3._
import java.net.URL
import models.BuildTask
import play.api.Logger

object S3BucketService {
  implicit val s3 = S3()
  private val BUCKET_NAME = "io.physalis"
  val buckets: Seq[Bucket] = s3.buckets
  val bucket: Bucket = s3.bucket(BUCKET_NAME).get
  val logger: Logger = Logger(this.getClass)

  def artifactKey(task: BuildTask, version: String, file: File) = {
     task.platform match {
      case "android" => s"${task.project.userId}/${task.project.id}/$version/${task.project.name}.apk"
      case "ubuntu"  =>  s"${task.project.userId}/${task.project.id}/$version/${file.getName}"
    }
  }

  def logKey(task: BuildTask, version: String) = {
    val fileEnding = task.platform match {
      case "android" => "apk"
      case "ubuntu"  => "click"
    }
    s"${task.project.userId}/${task.project.id}/$version/${task.project.name}/${task.platform}/log.txt"
  }<commit_msg>Renamed bucker "physalis" because of SSL certificate problems.<commit_after>package service
import awscala._, s3._
import java.net.URL
import models.BuildTask
import play.api.Logger

object S3BucketService {
  implicit val s3 = S3()
  private val BUCKET_NAME = "physalis"
  val buckets: Seq[Bucket] = s3.buckets
  val bucket: Bucket = s3.bucket(BUCKET_NAME).get
  val logger: Logger = Logger(this.getClass)

  def artifactKey(task: BuildTask, version: String, file: File) = {
     task.platform match {
      case "android" => s"${task.project.userId}/${task.project.id}/$version/${task.project.name}.apk"
      case "ubuntu"  =>  s"${task.project.userId}/${task.project.id}/$version/${file.getName}"
    }
  }

  def logKey(task: BuildTask, version: String) = {
    val fileEnding = task.platform match {
      case "android" => "apk"
      case "ubuntu"  => "click"
    }
    s"${task.project.userId}/${task.project.id}/$version/${task.project.name}/${task.platform}/log.txt"
  }
{'fraction_non_alphanumeric': 0.15762004175365343, 'fraction_numerical': 0.006263048016701462, 'mean_word_length': 3.745049504950495, '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': '7128699', 'n_tokens_mistral': 660, 'n_tokens_neox': 653, 'n_words': 135}