<commit_before>/*
 * Copyright (c) 2010 iceScrum Technologies.
 *
 * This file is part of iceScrum.
 *
 * iceScrum is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License.
 *
 * iceScrum is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with iceScrum.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Authors:
 *
 * <NAME> (<EMAIL>)
 * <NAME> (<EMAIL>)
 * <NAME> (<EMAIL>)
 */

import org.apache.log4j.DailyRollingFileAppender
import org.apache.log4j.PatternLayout
import org.icescrum.web.cache.IceScrumKeyGenerator

/*
 Public URL
*/
grails.serverURL = "http://localhost:8080/${appName}"

/*
Administration section
 */
icescrum.enable.registration=true
icescrum.enable.login.retrieve=true

/*
Project administration section
 */
icescrum.project.enable.import=true
icescrum.project.enable.export=true
icescrum.project.enable.creation=true
icescrum.project.disable.private=false

/*
Team administration section
 */
icescrum.team.enable.creation = true

/*
  Images section
 */
icescrum.images.products.dir = ""
icescrum.images.teams.dir = ""
icescrum.images.users.dir = ""

/*
  IceScrum css theme
 */
icescrum.theme = 'is'

/*
  IceScrum base dir
*/
icescrum.baseDir = new File(System.getProperty('user.home'), appName).canonicalPath


/*
  Mail section
grails.mail.host = "smtp.gmail.com"
grails.mail.port = 465
grails.mail.username = "<EMAIL>"
grails.mail.password = ""
grails.mail.props = ["mail.smtp.auth":"true",
        "mail.smtp.socketFactory.port":"465",
        "mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
        "mail.smtp.socketFactory.fallback":"false"]
grails.mail.default.from="<EMAIL>"
*/

/*
  Push section
 */
icepush.disabled=false

/*
 Attachmentable section
 */
grails.attachmentable.baseDir = icescrum.baseDir
grails.attachmentable.storyDir = {"${File.separator + it.backlog.id + File.separator}attachments${File.separator}stories${File.separator + it.id + File.separator}"}
grails.attachmentable.featureDir = {"${File.separator + it.backlog.id + File.separator}attachments${File.separator}features${File.separator + it.id + File.separator}"}
grails.attachmentable.actorDir = {"${File.separator + it.backlog.id + File.separator}attachments${File.separator}actors${File.separator + it.id + File.separator}"}
grails.attachmentable.taskDir = {
  if (it.parentStory)
    return "${File.separator + it.parentStory?.backlog?.id + File.separator}attachments${File.separator}tasks${File.separator + it.id + File.separator}"
  else
    return "${File.separator + it.backlog?.parentRelease?.parentProduct?.id + File.separator}attachments${File.separator}tasks${File.separator + it.id + File.separator}"
}

/*
  Report jasper section
*/

if (baseDir) {
  jasper.dir.reports = "${baseDir}${File.separator}src${File.separator}java${File.separator}org${File.separator}icescrum${File.separator}reports"
} else {
  jasper.dir.reports = "classpath:org${File.separator}icescrum${File.separator}reports"
}
jasper.dir.projects.reports = {(new File(System.getProperty('user.home'),appName).canonicalPath) + "${File.separator + it.backlog.id + File.separator}reports${File.separator}"}

/*
  Default grails config
 */

grails.project.groupId = appName // change this to alter the default package name and Maven publishing destination
grails.mime.file.extensions = true // enables the parsing of file extensions from URLs into the request format
grails.mime.use.accept.header = false
grails.mime.types = [html: ['text/html', 'application/xhtml+xml'],
        xml: ['text/xml', 'application/xml'],
        text: 'text/plain',
        js: 'text/javascript',
        rss: 'application/rss+xml',
        atom: 'application/atom+xml',
        css: 'text/css',
        csv: 'text/csv',
        all: '*/*',
        json: ['application/json', 'text/json'],
        form: 'application/x-www-form-urlencoded',
        multipartForm: 'multipart/form-data'
]

// The default codec used to encode data with ${}
grails.views.default.codec = "none" // none, html, base64
grails.views.gsp.encoding = "UTF-8"
grails.converters.encoding = "UTF-8"

// enable Sitemesh preprocessing of GSP pages
grails.views.gsp.sitemesh.preprocess = true
// scaffolding templates configuration
grails.scaffolding.templates.domainSuffix = 'Instance'
// Set to false to use the new Grails 1.2 JSONBuilder in the render method
grails.json.legacy.builder = false
// enabled native2ascii conversion of i18n properties files
grails.enable.native2ascii = true
// whether to install the java.util.logging bridge for sl4j. Disable fo AppEngine!
grails.logging.jul.usebridge = true
// packages to include in Spring bean scanning
grails.spring.bean.packages = []

grails.views.javascript.library = 'jquery'


environments {
  production {
    grails.config.locations = ["classpath:config.properties"]
  }
}
// log4j configuration
log4j = {
  def logLayoutPattern = new PatternLayout("%d [%t] %-5p %c %x - %m%n")

  error 'org.codehaus.groovy.grails.web.servlet',  //  controllers
          'org.codehaus.groovy.grails.web.pages', //  GSP
          'org.codehaus.groovy.grails.web.sitemesh', //  layouts
          'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
          'org.codehaus.groovy.grails.web.mapping', // URL mapping
          'org.codehaus.groovy.grails.commons', // core / classloading
          'org.codehaus.groovy.grails.plugins', // plugins
          'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
          'org.springframework',
          'org.hibernate',
          'net.sf.ehcache.hibernate'
  warn 'org.mortbay.log'

  debug 'grails.plugin.springcache'

  appenders {
    appender new DailyRollingFileAppender(name: "icescrumFileLog",
            fileName: "logs/${appName}.log",
            datePattern: "'.'yyyy-MM-dd",
            layout: logLayoutPattern
    )
  }

  root {
    debug 'stdout', 'icescrumFileLog'
    error 'stdout', 'icescrumFileLog'
    info 'stdout', 'icescrumFileLog'
    additivity = true
  }
}<commit_msg>fixes<commit_after>/*
 * Copyright (c) 2010 iceScrum Technologies.
 *
 * This file is part of iceScrum.
 *
 * iceScrum is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License.
 *
 * iceScrum is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with iceScrum.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Authors:
 *
 * <NAME> (<EMAIL>)
 * <NAME> (<EMAIL>)
 * <NAME> (<EMAIL>)
 */

import org.apache.log4j.DailyRollingFileAppender
import org.apache.log4j.PatternLayout
import org.icescrum.web.cache.IceScrumKeyGenerator

/*
 Public URL
*/
grails.serverURL = "http://localhost:8080/${appName}"

/*
Administration section
 */
icescrum.enable.registration=true
icescrum.enable.login.retrieve=true

/*
Project administration section
 */
icescrum.project.enable.import=true
icescrum.project.enable.export=true
icescrum.project.enable.creation=true
icescrum.project.disable.private=false

/*
Team administration section
 */
icescrum.team.enable.creation = true

/*
  Images section
 */
icescrum.images.products.dir = ""
icescrum.images.teams.dir = ""
icescrum.images.users.dir = ""

/*
  IceScrum css theme
 */
icescrum.theme = 'is'

/*
  IceScrum base dir
*/
icescrum.baseDir = new File(System.getProperty('user.home'), appName).canonicalPath


/*
  Mail section
grails.mail.host = "smtp.gmail.com"
grails.mail.port = 465
grails.mail.username = "<EMAIL>"
grails.mail.password = ""
grails.mail.props = ["mail.smtp.auth":"true",
        "mail.smtp.socketFactory.port":"465",
        "mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
        "mail.smtp.socketFactory.fallback":"false"]
grails.mail.default.from="<EMAIL>"
*/

/*
  Push section
 */
icepush.disabled=false

/*
 Attachmentable section
 */
grails.attachmentable.baseDir = icescrum.baseDir
grails.attachmentable.storyDir = {"${File.separator + it.backlog.id + File.separator}attachments${File.separator}stories${File.separator + it.id + File.separator}"}
grails.attachmentable.featureDir = {"${File.separator + it.backlog.id + File.separator}attachments${File.separator}features${File.separator + it.id + File.separator}"}
grails.attachmentable.actorDir = {"${File.separator + it.backlog.id + File.separator}attachments${File.separator}actors${File.separator + it.id + File.separator}"}
grails.attachmentable.taskDir = {
  if (it.parentStory)
    return "${File.separator + it.parentStory?.backlog?.id + File.separator}attachments${File.separator}tasks${File.separator + it.id + File.separator}"
  else
    return "${File.separator + it.backlog?.parentRelease?.parentProduct?.id + File.separator}attachments${File.separator}tasks${File.separator + it.id + File.separator}"
}

/*
  Report jasper section
*/

if (baseDir) {
  jasper.dir.reports = "${baseDir}${File.separator}src${File.separator}java${File.separator}org${File.separator}icescrum${File.separator}reports"
} else {
  jasper.dir.reports = "classpath:org${File.separator}icescrum${File.separator}reports"
}
jasper.dir.projects.reports = {(new File(System.getProperty('user.home'),appName).canonicalPath) + "${File.separator + it.backlog.id + File.separator}reports${File.separator}"}

/*
  Default grails config
 */

grails.project.groupId = appName // change this to alter the default package name and Maven publishing destination
grails.mime.file.extensions = true // enables the parsing of file extensions from URLs into the request format
grails.mime.use.accept.header = false
grails.mime.types = [html: ['text/html', 'application/xhtml+xml'],
        xml: ['text/xml', 'application/xml'],
        text: 'text/plain',
        js: 'text/javascript',
        rss: 'application/rss+xml',
        atom: 'application/atom+xml',
        css: 'text/css',
        csv: 'text/csv',
        all: '*/*',
        json: ['application/json', 'text/json'],
        form: 'application/x-www-form-urlencoded',
        multipartForm: 'multipart/form-data'
]

// The default codec used to encode data with ${}
grails.views.default.codec = "none" // none, html, base64
grails.views.gsp.encoding = "UTF-8"
grails.converters.encoding = "UTF-8"

// enable Sitemesh preprocessing of GSP pages
grails.views.gsp.sitemesh.preprocess = true
// scaffolding templates configuration
grails.scaffolding.templates.domainSuffix = 'Instance'
// Set to false to use the new Grails 1.2 JSONBuilder in the render method
grails.json.legacy.builder = false
// enabled native2ascii conversion of i18n properties files
grails.enable.native2ascii = true
// whether to install the java.util.logging bridge for sl4j. Disable fo AppEngine!
grails.logging.jul.usebridge = true
// packages to include in Spring bean scanning
grails.spring.bean.packages = []

grails.views.javascript.library = 'jquery'


environments {
  production {
    grails.config.locations = ["classpath:config.properties"]
  }
}
// log4j configuration
log4j = {
  def logLayoutPattern = new PatternLayout("%d [%t] %-5p %c %x - %m%n")

  error 'org.codehaus.groovy.grails.web.servlet',  //  controllers
          'org.codehaus.groovy.grails.web.pages', //  GSP
          'org.codehaus.groovy.grails.web.sitemesh', //  layouts
          'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
          'org.codehaus.groovy.grails.web.mapping', // URL mapping
          'org.codehaus.groovy.grails.commons', // core / classloading
          'org.codehaus.groovy.grails.plugins', // plugins
          'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
          'org.springframework',
          'org.hibernate',
          'net.sf.ehcache.hibernate'
  warn 'org.mortbay.log'

  //debug 'grails.plugin.springcache'

  appenders {
    appender new DailyRollingFileAppender(name: "icescrumFileLog",
            fileName: "logs/${appName}.log",
            datePattern: "'.'yyyy-MM-dd",
            layout: logLayoutPattern
    )
  }

  root {
    debug 'stdout', 'icescrumFileLog'
    error 'stdout', 'icescrumFileLog'
    info 'stdout', 'icescrumFileLog'
    additivity = true
  }
}
{'fraction_non_alphanumeric': 0.13721185510428102, 'fraction_numerical': 0.004861220009408813, 'mean_word_length': 3.796916133884919, 'pattern_counts': {'":': 8, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 12}, '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': '5423227', 'n_tokens_mistral': 4203, 'n_tokens_neox': 3973, 'n_words': 860}