<commit_before>grails.databinding.dateFormats = [
    "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", // javascript format in json
    "yyyy-MM-dd HH:mm:ss.S",
    "yyyy-MM-dd'T'hh:mm:ss'Z'",
    "yyyy-MM-dd'T'hh:mm:ssZ",
    "dd.MM.yyyy"
]

//import grails.plugin.springsecurity.SpringSecurityUtils

// Added by the Spring Security Core plugin:
grails.plugin.springsecurity.userLookup.userDomainClassName = 'streama.User'
grails.plugin.springsecurity.userLookup.authorityJoinClassName = 'streama.UserRole'
grails.plugin.springsecurity.authority.className = 'streama.Role'

grails.plugin.springsecurity.rejectIfNoRule = true
grails.plugin.springsecurity.fii.rejectPublicInvocations = false
grails.plugin.springsecurity.secureChannel.useHeaderCheckChannelSecurity = true
grails.plugin.springsecurity.portMapper.httpPort = 80
grails.plugin.springsecurity.portMapper.httpsPort = 443
grails.plugin.springsecurity.rememberMe.cookieName = 'streama_remember_me'
grails.plugin.springsecurity.rememberMe.alwaysRemember = true
grails.plugin.springsecurity.rememberMe.key = 'streama_Rocks123!!RememberMe'

grails.plugin.springsecurity.controllerAnnotations.staticRules = [

  [pattern:'/',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/index',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/index.gsp',  access :['IS_AUTHENTICATED_REMEMBERED']],

  [pattern:'/viewingStatus/**',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/file/**',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/stomp/**',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/websocket/**',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/video/dash',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/video/show',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/tvShow/show',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/movie/show',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/genericVideo/show',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/tvShow/episodesForTvShow',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/user/saveProfile',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/user/changePassword',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/theMovieDb/availableGenres',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/user/loginTarget',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/dash/**',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/player/**',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/tag.json',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/tag/index',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/settings/index',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/report/save',  access :['IS_AUTHENTICATED_REMEMBERED']],

  [pattern:'/genericVideo/**',  access :['ROLE_CONTENT_MANAGER']],
  [pattern:'/genre/**',  access :['ROLE_CONTENT_MANAGER']],<commit_msg>override successHandler targetUrl to add custom logic<commit_after>grails.databinding.dateFormats = [
    "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", // javascript format in json
    "yyyy-MM-dd HH:mm:ss.S",
    "yyyy-MM-dd'T'hh:mm:ss'Z'",
    "yyyy-MM-dd'T'hh:mm:ssZ",
    "dd.MM.yyyy"
]

//import grails.plugin.springsecurity.SpringSecurityUtils

// Added by the Spring Security Core plugin:
grails.plugin.springsecurity.userLookup.userDomainClassName = 'streama.User'
grails.plugin.springsecurity.userLookup.authorityJoinClassName = 'streama.UserRole'
grails.plugin.springsecurity.authority.className = 'streama.Role'

grails.plugin.springsecurity.rejectIfNoRule = true
grails.plugin.springsecurity.fii.rejectPublicInvocations = false
grails.plugin.springsecurity.secureChannel.useHeaderCheckChannelSecurity = true
grails.plugin.springsecurity.portMapper.httpPort = 80
grails.plugin.springsecurity.portMapper.httpsPort = 443
grails.plugin.springsecurity.rememberMe.cookieName = 'streama_remember_me'
grails.plugin.springsecurity.rememberMe.alwaysRemember = true
grails.plugin.springsecurity.rememberMe.key = 'streama_Rocks123!!RememberMe'
grails.plugin.springsecurity.successHandler.defaultTargetUrl = "/user/loginTarget"
grails.plugin.springsecurity.successHandler.alwaysUseDefault = true

grails.plugin.springsecurity.controllerAnnotations.staticRules = [

  [pattern:'/',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/index',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/index.gsp',  access :['IS_AUTHENTICATED_REMEMBERED']],

  [pattern:'/viewingStatus/**',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/file/**',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/stomp/**',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/websocket/**',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/video/dash',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/video/show',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/tvShow/show',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/movie/show',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/genericVideo/show',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/tvShow/episodesForTvShow',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/user/saveProfile',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/user/changePassword',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/theMovieDb/availableGenres',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/user/loginTarget',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/dash/**',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/player/**',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/tag.json',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/tag/index',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/settings/index',  access :['IS_AUTHENTICATED_REMEMBERED']],
  [pattern:'/report/save',  access :['IS_AUTHENTICATED_REMEMBERED']],

  [pattern:'/genericVideo/**',  access :['ROLE_CONTENT_MANAGER']],
  [pattern:'/genre/**',  access :['ROLE_CONTENT_MANAGER']],
{'fraction_non_alphanumeric': 0.1685747469719595, 'fraction_numerical': 0.002654720424755268, 'mean_word_length': 7.156968876860622, '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': '228047', 'n_tokens_mistral': 2208, 'n_tokens_neox': 2151, 'n_words': 245}