<commit_before>

package fabricator

import java.io.File

import com.github.tototoshi.csv.CSVReader
import org.testng.annotations.{AfterTest, DataProvider, Test}

class FileTestSuite extends BaseTestSuite {

  protected val csvFilePath: String = "test-output/result.csv"
  protected var fileObject: File = null

  @Test
  def testImage() = {
    val path: String = "test-output/drawing.png"
    val result = file.image(200, 300, path)
    val fileOnADrive: File = new File(path)
    fileObject = fileOnADrive
    assert(fileOnADrive.exists())
    logger.info("Checking image file")
  }

  @Test
  def testCsv() = {
    val result = file.csv()
    val fileOnADrive: File = new File(csvFilePath)<commit_msg>fix failing File Generator tests due to change in the default path to save files<commit_after>

package fabricator

import java.io.File

import com.github.tototoshi.csv.CSVReader
import org.testng.annotations.{AfterTest, DataProvider, Test}

class FileTestSuite extends BaseTestSuite {

  protected val csvFilePath: String = "generatedFiles/result.csv"
  protected var fileObject: File = null

  @Test
  def testImage() = {
    val path: String = "generatedFiles/drawing.png"
    val result = file.image(200, 300, path)
    val fileOnADrive: File = new File(path)
    fileObject = fileOnADrive
    assert(fileOnADrive.exists())
    logger.info("Checking image file")
  }

  @Test
  def testCsv() = {
    val result = file.csv()
    val fileOnADrive: File = new File(csvFilePath)
{'fraction_non_alphanumeric': 0.09710047201618341, 'fraction_numerical': 0.008091706001348618, 'mean_word_length': 3.9302325581395348, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4323843', 'n_tokens_mistral': 482, 'n_tokens_neox': 462, 'n_words': 131}