<commit_before>package research
package converter

import scala.collection.mutable.ListBuffer
import scala.util.Failure
import scala.util.Success
import scala.util.Try

import org.objectweb.asm.ClassReader
import org.objectweb.asm.ClassVisitor
import org.objectweb.asm.FieldVisitor
import org.objectweb.asm.MethodVisitor
import org.objectweb.asm.Opcodes

final class ClassfileConverter {
  import indexer.{ hierarchy ⇒ h }
  import indexer.hierarchy.{ Attachment ⇒ a }

  val found = ListBuffer[h.Hierarchy]()

  def convert(bytecode: Array[Byte]): Try[Seq[h.Hierarchy]] = {
    this.found.clear()

    val found = Try {
      val r = new ClassReader(bytecode)
      val v = new CVisitor
      r.accept(v, 0)<commit_msg>Make variable in ClassfileConverter private<commit_after>package research
package converter

import scala.collection.mutable.ListBuffer
import scala.util.Failure
import scala.util.Success
import scala.util.Try

import org.objectweb.asm.ClassReader
import org.objectweb.asm.ClassVisitor
import org.objectweb.asm.FieldVisitor
import org.objectweb.asm.MethodVisitor
import org.objectweb.asm.Opcodes

final class ClassfileConverter {
  import indexer.{ hierarchy ⇒ h }
  import indexer.hierarchy.{ Attachment ⇒ a }

  private val found = ListBuffer[h.Hierarchy]()

  def convert(bytecode: Array[Byte]): Try[Seq[h.Hierarchy]] = {
    this.found.clear()

    val found = Try {
      val r = new ClassReader(bytecode)
      val v = new CVisitor
      r.accept(v, 0)
{'fraction_non_alphanumeric': 0.09472259810554803, 'fraction_numerical': 0.0013531799729364006, 'mean_word_length': 4.2821428571428575, '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': '6000220', 'n_tokens_mistral': 474, 'n_tokens_neox': 466, 'n_words': 116}