<commit_before>#!/usr/bin/python

import os
import re
import string

import lldb
import fblldbbase as fb
import fblldbobjcruntimehelpers as runtimeHelpers

def lldbcommands():
  return [
    FBPrintClassInstanceMethods(),
    FBPrintClassMethods()
  ]

class FBPrintClassInstanceMethods(fb.FBCommand):
  def name(self):
    return 'pclassinstancemethod'

  def description(self):
    return 'Print the class instance methods.'

  def args(self):
    return [ fb.FBCommandArgument(arg='class', type='Class', help='an OC Class.') ]

  def run(self, arguments, options):
    ocarray = instanceMethosOfClass(arguments[0])
    if not ocarray:
      print "-- have none method or an error occur-- "
      return

    methodAddrs = covertOCArrayToPyArray(ocarray)

    methods = []
    for i in methodAddrs:
      method = createMethodFromOCMethod(i)
      if method is not None:
        methods.append(method)
        print "- " + method.prettyPrint()

class FBPrintClassMethods(fb.FBCommand):
  def name(self):
    return 'pclassmethod'<commit_msg>change FBPrintClassInstanceMethods command name<commit_after>#!/usr/bin/python

import os
import re
import string

import lldb
import fblldbbase as fb
import fblldbobjcruntimehelpers as runtimeHelpers

def lldbcommands():
  return [
    FBPrintClassInstanceMethods(),
    FBPrintClassMethods()
  ]

class FBPrintClassInstanceMethods(fb.FBCommand):
  def name(self):
    return 'pinstancemethod'

  def description(self):
    return 'Print the class instance methods.'

  def args(self):
    return [ fb.FBCommandArgument(arg='class', type='Class', help='an OC Class.') ]

  def run(self, arguments, options):
    ocarray = instanceMethosOfClass(arguments[0])
    if not ocarray:
      print "-- have none method or an error occur-- "
      return

    methodAddrs = covertOCArrayToPyArray(ocarray)

    methods = []
    for i in methodAddrs:
      method = createMethodFromOCMethod(i)
      if method is not None:
        methods.append(method)
        print "- " + method.prettyPrint()

class FBPrintClassMethods(fb.FBCommand):
  def name(self):
    return 'pclassmethod'
{'fraction_non_alphanumeric': 0.09456264775413711, 'fraction_numerical': 0.0009456264775413711, 'mean_word_length': 3.7443946188340806, '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': '4404039', 'n_tokens_mistral': 658, 'n_tokens_neox': 630, 'n_words': 172}