<commit_before>package com.overstock.findbugs;

import java.util.HashMap;

import org.apache.bcel.Repository;
import org.apache.bcel.classfile.AnnotationEntry;
import org.apache.bcel.classfile.Field;
import org.apache.bcel.classfile.FieldOrMethod;
import org.apache.bcel.classfile.JavaClass;
import org.apache.bcel.classfile.Method;

import edu.umd.cs.findbugs.BugInstance;
import edu.umd.cs.findbugs.BugReporter;
import edu.umd.cs.findbugs.ba.AnalysisContext;
import edu.umd.cs.findbugs.bcel.OpcodeStackDetector;

public class GuavaBetaDetector extends OpcodeStackDetector {
  private final static String BETA = "Lcom/google/common/annotations/Beta;";

  private BugReporter bugReporter;

  public GuavaBetaDetector(BugReporter bugReporter) {
    System.out.println("instance created");
    this.bugReporter = bugReporter;
  }

  private HashMap<FieldOrMethod, Boolean> memberBetaAnnotated = new HashMap<FieldOrMethod, Boolean>();

  @Override
  public void sawOpcode(int seen) {
    switch (seen) {<commit_msg>I've heard good things about programming by contract - let's try it.<commit_after>package com.overstock.findbugs;

import java.util.HashMap;
import java.util.Map;

import org.apache.bcel.Repository;
import org.apache.bcel.classfile.AnnotationEntry;
import org.apache.bcel.classfile.Field;
import org.apache.bcel.classfile.FieldOrMethod;
import org.apache.bcel.classfile.JavaClass;
import org.apache.bcel.classfile.Method;

import edu.umd.cs.findbugs.BugInstance;
import edu.umd.cs.findbugs.BugReporter;
import edu.umd.cs.findbugs.ba.AnalysisContext;
import edu.umd.cs.findbugs.bcel.OpcodeStackDetector;

public class GuavaBetaDetector extends OpcodeStackDetector {
  private final static String BETA = "Lcom/google/common/annotations/Beta;";

  private BugReporter bugReporter;

  public GuavaBetaDetector(BugReporter bugReporter) {
    System.out.println("instance created");
    this.bugReporter = bugReporter;
  }

  private Map<FieldOrMethod, Boolean> memberBetaAnnotated = new HashMap<FieldOrMethod, Boolean>();

  @Override
  public void sawOpcode(int seen) {
    switch (seen) {
{'fraction_non_alphanumeric': 0.100619933237959, 'fraction_numerical': 0.0, 'mean_word_length': 5.515527950310559, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5561444', 'n_tokens_mistral': 706, 'n_tokens_neox': 683, 'n_words': 130}