<commit_before>package org.ambraproject.wombat.controller;

import org.ambraproject.wombat.config.site.Site;
import org.ambraproject.wombat.service.ArticleArchiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.io.IOException;

/**
 * Responsible for providing the article DOIs published in a given year and month
 */
@Controller
public class LockssController extends WombatController {

  @Autowired
  ArticleArchiveService articleArchiveServiceImpl;

  @RequestMapping(value={"{site}/lockss.txt"}, method = RequestMethod.GET)
  public String getLockssPermission(@SiteParam Site site) {
    return site + "/ftl/lockss/permission";
  }

  @RequestMapping(value={"{site}/lockss-manifest/vol_{year}"}, method = RequestMethod.GET)
  public String getMonthsForYear(@SiteParam Site site, @PathVariable String year, Model model) {
    String[] months = articleArchiveServiceImpl.getMonthsForYear(year);
    model.addAttribute("year", year);
    model.addAttribute("months", months);
    return site + "/ftl/lockss/lockss";
  }

  @RequestMapping(value={"{site}/lockss-manifest/vol_{year}/{month}"}, method = RequestMethod.GET)
  public String getArticlesPerMonth(@SiteParam Site site, @PathVariable String year,
                                    @PathVariable String month, Model model) throws IOException {
    String[] dois = articleArchiveServiceImpl.getArticleDoisPerMonth(site, year, month);
    model.addAttribute("month", month);
    model.addAttribute("year", year);
    model.addAttribute("dois", dois);

    return site + "/ftl/lockss/dois";
  }
}<commit_msg>modified LockssController to use new wombat config<commit_after>package org.ambraproject.wombat.controller;

import org.ambraproject.wombat.config.site.Site;
import org.ambraproject.wombat.config.site.SiteParam;
import org.ambraproject.wombat.service.ArticleArchiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.io.IOException;

/**
 * Responsible for providing the article DOIs published in a given year and month
 */
@Controller
public class LockssController extends WombatController {

  @Autowired
  ArticleArchiveService articleArchiveServiceImpl;

  @RequestMapping(name="lockssPermission", value={"{site}/lockss.txt"}, method = RequestMethod.GET)
  public String getLockssPermission(@SiteParam Site site) {
    return site + "/ftl/lockss/permission";
  }

  @RequestMapping(name="lockssMonths", value={"{site}/lockss-manifest/vol_{year}"}, method = RequestMethod.GET)
  public String getMonthsForYear(@SiteParam Site site, @PathVariable String year, Model model) {
    String[] months = articleArchiveServiceImpl.getMonthsForYear(year);
    model.addAttribute("year", year);
    model.addAttribute("months", months);
    return site + "/ftl/lockss/lockss";
  }

  @RequestMapping(name="lockssArticles", value={"{site}/lockss-manifest/vol_{year}/{month}"}, method = RequestMethod.GET)
  public String getArticlesPerMonth(@SiteParam Site site, @PathVariable String year,
                                    @PathVariable String month, Model model) throws IOException {
    String[] dois = articleArchiveServiceImpl.getArticleDoisPerMonth(site, year, month);
    model.addAttribute("month", month);
    model.addAttribute("year", year);
    model.addAttribute("dois", dois);

    return site + "/ftl/lockss/dois";
  }
}
{'fraction_non_alphanumeric': 0.11361310133060389, 'fraction_numerical': 0.0, 'mean_word_length': 5.2544, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6745014', 'n_tokens_mistral': 1122, 'n_tokens_neox': 1092, 'n_words': 227}