<commit_before>import org.objectweb.asm.*;
import org.objectweb.asm.commons.AdviceAdapter;
import org.objectweb.asm.commons.Method;

import java.io.PrintStream;
import java.util.Properties;

import static org.objectweb.asm.Opcodes.ASM4;

/**
 * @author <a href="mailto:<EMAIL>">zhongl<a>
 */
public class InvokeVirtualBySystemProperties {

    public static void main(String[] args) throws Exception {
//        final Advice advice = new Advice();
//        System.getProperties().put("advice", advice);

        ClassWriter cw = new ClassWriter(0);
        ClassReader cr = new ClassReader("X");
        ClassVisitor cv = new ClassVisitor(ASM4, cw) {
            @Override
            public MethodVisitor visitMethod(int i, String s, String s2, String s3, String[] strings) {
                MethodVisitor mv = super.visitMethod(i, s, s2, s3, strings);
                return mv == null ? mv : new AdviceAdapter(ASM4, mv, i, s, s2) {
                    final Type adv = Type.getType(Advice.class);
                    final Type sys = Type.getType(System.class);
                    private int index;

                    @Override
                    public void visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) {
                        super.visitLocalVariable(name, desc, signature, start, end, index);    //To change body of overridden methods use File | Settings | File Templates.
                    }

                    @Override
                    public void visitCode() {
                        super.visitCode();
                    }

                    @Override
                    protected void onMethodEnter() {
                        index = newLocal(adv);<commit_msg>Uncomment initialization.<commit_after>import org.objectweb.asm.*;
import org.objectweb.asm.commons.AdviceAdapter;
import org.objectweb.asm.commons.Method;

import java.io.PrintStream;
import java.util.Properties;

import static org.objectweb.asm.Opcodes.ASM4;

/**
 * @author <a href="mailto:<EMAIL>">zhongl<a>
 */
public class InvokeVirtualBySystemProperties {

    public static void main(String[] args) throws Exception {
        final Advice advice = new Advice();
        System.getProperties().put("advice", advice);

        ClassWriter cw = new ClassWriter(0);
        ClassReader cr = new ClassReader("X");
        ClassVisitor cv = new ClassVisitor(ASM4, cw) {
            @Override
            public MethodVisitor visitMethod(int i, String s, String s2, String s3, String[] strings) {
                MethodVisitor mv = super.visitMethod(i, s, s2, s3, strings);
                return mv == null ? mv : new AdviceAdapter(ASM4, mv, i, s, s2) {
                    final Type adv = Type.getType(Advice.class);
                    final Type sys = Type.getType(System.class);
                    private int index;

                    @Override
                    public void visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) {
                        super.visitLocalVariable(name, desc, signature, start, end, index);    //To change body of overridden methods use File | Settings | File Templates.
                    }

                    @Override
                    public void visitCode() {
                        super.visitCode();
                    }

                    @Override
                    protected void onMethodEnter() {
                        index = newLocal(adv);
{'fraction_non_alphanumeric': 0.09571428571428571, 'fraction_numerical': 0.005142857142857143, 'mean_word_length': 1.9346186085498742, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1367660', 'n_tokens_mistral': 923, 'n_tokens_neox': 876, 'n_words': 260}