<commit_before>package org.objenesis;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

/**
 * Instantiates a class by grabbing the no-args constructor, making it accessible and then
 * calling Constructor.newInstance().
 *
 * Although this still requires no-arg constructors, it can call non-public constructors
 * (if the security manager allows it).
 *
 * @see ObjectInstantiator
 */
public class AccessibleInstantiator implements ObjectInstantiator {

    public Object instantiate(Class type) {
        try {
            Constructor constructor = type.getDeclaredConstructor((Class[])null);
            constructor.setAccessible(true);
            return constructor.newInstance((Object[])null);
        } catch (NoSuchMethodException e) {
            return null;
        } catch (InstantiationException e) {
            return null;
        } catch (IllegalAccessException e) {
            return null;
        } catch (InvocationTargetException e) {
            return null;
        }
    }
    
}<commit_msg>Testing SVN commit with subclipse<commit_after>package org.objenesis;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

/**
 * Instantiates a class by grabbing the no-args constructor, making it accessible and then
 * calling Constructor.newInstance().
 *
 * Although this still requires no-arg constructors, it can call non-public constructors
 * (if the security manager allows it).
 *
 * @see ObjectInstantiator
 */
public class AccessibleInstantiator implements ObjectInstantiator {

    public Object instantiate(Class type) {
        try {
            Constructor constructor = type.getDeclaredConstructor((Class[])null);
            constructor.setAccessible(true);
            return constructor.newInstance((Object[])null);
        } catch (NoSuchMethodException e) {
            return null;
        } catch (InstantiationException e) {
            return null;
        } catch (IllegalAccessException e) {
            return null;
        } catch (InvocationTargetException e) {
            return null;
        }
    }    
}
{'fraction_non_alphanumeric': 0.0814225549836219, 'fraction_numerical': 0.0, 'mean_word_length': 2.887272727272727, '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': '3012245', 'n_tokens_mistral': 540, 'n_tokens_neox': 522, 'n_words': 156}