<commit_before>package org.aikodi.chameleon.core.lookup;

import java.util.List;

import org.aikodi.chameleon.core.declaration.Declaration;
import org.aikodi.chameleon.core.declaration.DeclarationContainer;
import org.aikodi.chameleon.exception.ChameleonProgrammerException;

/**
 * A selector that selects the declarator of the declaration selected by
 * the decorated selector.
 * 
 * @author <NAME>
 */
public class DeclaratorSelector implements DeclarationSelector<Declaration>{
	
	public DeclaratorSelector(DeclarationSelector selector) {
		if(selector == null) {
			throw new ChameleonProgrammerException("The wrapped selector of a declarator selector cannot be null.");
		}
		_selector = selector;
	}
	
  private DeclarationSelector _selector;

  @Override
public List selection(List selectionCandidates) throws LookupException {
  	return _selector.declarators(selectionCandidates);
  }
  
//	@Override
//	public WeakPartialOrder order() {
//		return _selector.order();
//	}

	@Override
	public boolean canSelect(Class<? extends Declaration> type) {
		return _selector.canSelect(type);
	}

	@Override
	public String selectionName(DeclarationContainer container) throws LookupException {
		return _selector.selectionName(container);
	}

	@Override
	public List declarators(List<? extends Declaration> selectionCandidates) throws LookupException {
		return _selector.declarators(selectionCandidates);
	}
	
	@Override
	public boolean isGreedy() {
		return false;
	}<commit_msg>removed old commented code<commit_after>package org.aikodi.chameleon.core.lookup;

import java.util.List;

import org.aikodi.chameleon.core.declaration.Declaration;
import org.aikodi.chameleon.core.declaration.DeclarationContainer;
import org.aikodi.chameleon.exception.ChameleonProgrammerException;

/**
 * A selector that selects the declarator of the declaration selected by
 * the decorated selector.
 * 
 * @author <NAME>
 */
public class DeclaratorSelector implements DeclarationSelector<Declaration>{
	
	public DeclaratorSelector(DeclarationSelector selector) {
		if(selector == null) {
			throw new ChameleonProgrammerException("The wrapped selector of a declarator selector cannot be null.");
		}
		_selector = selector;
	}
	
  private DeclarationSelector _selector;

  @Override
public List selection(List selectionCandidates) throws LookupException {
  	return _selector.declarators(selectionCandidates);
  }

	@Override
	public boolean canSelect(Class<? extends Declaration> type) {
		return _selector.canSelect(type);
	}

	@Override
	public String selectionName(DeclarationContainer container) throws LookupException {
		return _selector.selectionName(container);
	}

	@Override
	public List declarators(List<? extends Declaration> selectionCandidates) throws LookupException {
		return _selector.declarators(selectionCandidates);
	}
	
	@Override
	public boolean isGreedy() {
		return false;
	}
{'fraction_non_alphanumeric': 0.0827275874004846, 'fraction_numerical': 0.0, 'mean_word_length': 5.5831435079726655, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4891135', 'n_tokens_mistral': 850, 'n_tokens_neox': 792, 'n_words': 205}