<commit_before>package org.ambraproject.rhino.rest.controller.abstr;

import org.ambraproject.rhino.identity.ArticleIdentity;
import org.ambraproject.rhino.service.ArticleCrudService;
import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.http.HttpServletRequest;

/**
 * Superclass for controllers that perform operations on article "REST nouns".
 */
public abstract class ArticleSpaceController extends DoiBasedCrudController {

  protected static final String ARTICLE_ROOT = "/articles";
  protected static final String ARTICLE_NAMESPACE = ARTICLE_ROOT + '/';
  protected static final String ARTICLE_TEMPLATE = ARTICLE_NAMESPACE + "**";

  protected static final String SYNDICATION_ROOT = ARTICLE_TEMPLATE + "/syndications";
  protected static final String SYNDICATION_NAMESPACE = SYNDICATION_ROOT + '/';

  @Autowired
  protected ArticleCrudService articleCrudService;

  @Override
  protected final String getNamespacePrefix() {
    return ARTICLE_NAMESPACE;
  }

  @Override
  protected final ArticleIdentity parse(HttpServletRequest request) {
    return ArticleIdentity.create(getIdentifier(request));
  }

}
<commit_msg>DPRO-2611: remove unused variables<commit_after>package org.ambraproject.rhino.rest.controller.abstr;

import org.ambraproject.rhino.identity.ArticleIdentity;
import org.ambraproject.rhino.service.ArticleCrudService;
import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.http.HttpServletRequest;

/**
 * Superclass for controllers that perform operations on article "REST nouns".
 */
public abstract class ArticleSpaceController extends DoiBasedCrudController {

  protected static final String ARTICLE_ROOT = "/articles";
  protected static final String ARTICLE_NAMESPACE = ARTICLE_ROOT + '/';
  protected static final String ARTICLE_TEMPLATE = ARTICLE_NAMESPACE + "**";

  @Autowired
  protected ArticleCrudService articleCrudService;

  @Override
  protected final String getNamespacePrefix() {
    return ARTICLE_NAMESPACE;
  }

  @Override
  protected final ArticleIdentity parse(HttpServletRequest request) {
    return ArticleIdentity.create(getIdentifier(request));
  }

}

{'fraction_non_alphanumeric': 0.07738369415016122, 'fraction_numerical': 0.0018424689083371719, 'mean_word_length': 5.745341614906832, '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': '1468374', 'n_tokens_mistral': 621, 'n_tokens_neox': 597, 'n_words': 142}