<commit_before>import edu.sfsu.ntd.phenometrainer.Dataset
import edu.sfsu.ntd.phenometrainer.Image
import edu.sfsu.ntd.phenometrainer.Users

class BootStrap {

    def bootStrapService
    def grailsApplication

    def init = { servletContext ->

      bootStrapService.initRole("ROLE_USER")
      bootStrapService.initRole("ROLE_ADMIN")
      bootStrapService.initUser("schisto","schisto","ROLE_USER")
      bootStrapService.initUser("da","admin","ROLE_ADMIN")
      new File(grailsApplication.config.PhenomeTrainer.dataDir + "/1").deleteDir()

//      bootStrapService.initCompound()

//      Dataset dataset = bootStrapService.initDataset("118 statin images (Brian)")
//      bootStrapService.initImage("/home/da/Documents/Segmentation/Schisto/Data/imagedb/imagedb_4conor",dataset)

//      dataset = bootStrapService.initDataset("438 statin images (Lili)")
//      bootStrapService.initImage("/home/da/Documents/Segmentation/Schisto/Data/imagedb/lili438",dataset)

//      dataset = bootStrapService.initDataset("210 statin images (Lili)")
//      bootStrapService.initImage("/home/da/Documents/Segmentation/Schisto/Data/imagedb/lili210",dataset)

//      bootStrapService.initUsers()
//      bootStrapService.initParasite()

//      bootStrapService.initImagePos()<commit_msg>don't delete on boot<commit_after>import edu.sfsu.ntd.phenometrainer.Dataset
import edu.sfsu.ntd.phenometrainer.Image
import edu.sfsu.ntd.phenometrainer.Users

class BootStrap {

    def bootStrapService
    def grailsApplication

    def init = { servletContext ->

      bootStrapService.initRole("ROLE_USER")
      bootStrapService.initRole("ROLE_ADMIN")
      bootStrapService.initUser("schisto","schisto","ROLE_USER")
      bootStrapService.initUser("da","admin","ROLE_ADMIN")
//      new File(grailsApplication.config.PhenomeTrainer.dataDir + "/1").deleteDir()

//      bootStrapService.initCompound()

//      Dataset dataset = bootStrapService.initDataset("118 statin images (Brian)")
//      bootStrapService.initImage("/home/da/Documents/Segmentation/Schisto/Data/imagedb/imagedb_4conor",dataset)

//      dataset = bootStrapService.initDataset("438 statin images (Lili)")
//      bootStrapService.initImage("/home/da/Documents/Segmentation/Schisto/Data/imagedb/lili438",dataset)

//      dataset = bootStrapService.initDataset("210 statin images (Lili)")
//      bootStrapService.initImage("/home/da/Documents/Segmentation/Schisto/Data/imagedb/lili210",dataset)

//      bootStrapService.initUsers()
//      bootStrapService.initParasite()

//      bootStrapService.initImagePos()
{'fraction_non_alphanumeric': 0.12708900116595415, 'fraction_numerical': 0.013214146910221531, 'mean_word_length': 4.296296296296297, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6416384', 'n_tokens_mistral': 885, 'n_tokens_neox': 845, 'n_words': 92}