<commit_before>package io.risotto.configurator;

import io.risotto.Container;
import io.risotto.exception.ContainerConfigurationException;

public class BindingConfigurator implements Configurator {
  @Override
  public void configure(Container containerInstance, Class<? extends Container> containerClass)
      throws ContainerConfigurationException {
    
  }
}<commit_msg>Created skeleton for BindingConfigurator<commit_after>package io.risotto.configurator;

import io.risotto.Container;
import io.risotto.annotations.Binding;
import io.risotto.binding.InstantiatableBinding;
import io.risotto.exception.ContainerConfigurationException;

import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import reflection.ReflectionUtils;

public class BindingConfigurator implements Configurator {
  @Override
  public void configure(Container containerInstance, Class<? extends Container> containerClass)
      throws ContainerConfigurationException {
    detectBindingMethods(containerClass)
        .stream()
        .map(this::createBindingFromMethod)
        .forEach(this::addToContainer);
  }

  private InstantiatableBinding<?> createBindingFromMethod(Method method) {
    return null;
  }


  private void addToContainer(InstantiatableBinding<?> binding) {

  }

  private List<Method> detectBindingMethods(Class<? extends Container> containerClass) {
    return Arrays.stream(containerClass.getDeclaredMethods())
        .filter(m -> m.isAnnotationPresent(Binding.class))
        .filter(ReflectionUtils::isMethodInjectable)
        .collect(Collectors.toList());
  }
}
{'fraction_non_alphanumeric': 0.08496332518337409, 'fraction_numerical': 0.0, 'mean_word_length': 5.419607843137255, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, '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': '5031228', 'n_tokens_mistral': 427, 'n_tokens_neox': 420, 'n_words': 87}