<commit_before>package pl.mjasion.moviesrss.controllers

import org.springframework.beans.factory.annotation.Autowired
import org.springframework.data.domain.PageRequest
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.servlet.ModelAndView
import pl.mjasion.moviesrss.domain.BlueRayPremiere
import pl.mjasion.moviesrss.domain.repository.BluerayPremiereRepository
import pl.mjasion.moviesrss.feed.PremiereFeedContent

import static org.springframework.data.domain.Sort.Direction.DESC

@Controller
@RequestMapping('/rss')
class RssFeedController {

    @Autowired
    BluerayPremiereRepository premiereRepository

    @RequestMapping('blueray/premieres')
    ModelAndView dvdPremieres() {
        List<BlueRayPremiere> premieres = premiereRepository.findAll(new PageRequest(0, 20, DESC, 'premiereShopdate')).content
        List items = premieres.collect {

            return new PremiereFeedContent(
                    title: it.movie.name,
                    url: it.movie.filmwebLink,
                    premiereShopdate: it.premiereShopdate,
                    summary: it.genres*.name.join(', ')
            )
        }

        ModelAndView modelAndView = new ModelAndView()
        modelAndView.setViewName('blurayRssFeedViewer')
        modelAndView.addObject('premieres', items)
        return modelAndView
    }
}

<commit_msg>increased page size of rss premieres<commit_after>package pl.mjasion.moviesrss.controllers

import org.springframework.beans.factory.annotation.Autowired
import org.springframework.data.domain.PageRequest
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.servlet.ModelAndView
import pl.mjasion.moviesrss.domain.BlueRayPremiere
import pl.mjasion.moviesrss.domain.repository.BluerayPremiereRepository
import pl.mjasion.moviesrss.feed.PremiereFeedContent

import static org.springframework.data.domain.Sort.Direction.DESC

@Controller
@RequestMapping('/rss')
class RssFeedController {

    @Autowired
    BluerayPremiereRepository premiereRepository

    @RequestMapping('blueray/premieres')
    ModelAndView dvdPremieres() {
        List<BlueRayPremiere> premieres = premiereRepository.findAll(new PageRequest(0, 50, DESC, 'premiereShopdate')).content
        List items = premieres.collect {

            return new PremiereFeedContent(
                    title: it.movie.name,
                    url: it.movie.filmwebLink,
                    premiereShopdate: it.premiereShopdate,
                    summary: it.genres*.name.join(', ')
            )
        }

        ModelAndView modelAndView = new ModelAndView()
        modelAndView.setViewName('blurayRssFeedViewer')
        modelAndView.addObject('premieres', items)
        return modelAndView
    }
}


{'fraction_non_alphanumeric': 0.08376600899965386, 'fraction_numerical': 0.0020768431983385254, 'mean_word_length': 3.501557632398754, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5219353', 'n_tokens_mistral': 840, 'n_tokens_neox': 789, 'n_words': 127}