<commit_before>import types, sequtils, strutils

proc getStrProp*(obj: MObject, name: string): string
proc getAliases*(obj: MObject): seq[string]
proc getLocation*(obj: MObject): MObject
proc getContents*(obj: MObject): tuple[hasContents: bool, contents: seq[MObject]]
proc getPropVal*(obj: MObject, name: string): MData
proc setProp*(obj: MObject, name: string, newVal: MData)
import verbs, scripting

proc setCode*(verb: MVerb, newCode: string) =
  var parser = newParser(newCode)
  verb.parsed = parser.parseList()


proc getProp*(obj: MObject, name: string): MProperty =<commit_msg>forward declare getProp<commit_after>import types, sequtils, strutils

proc getStrProp*(obj: MObject, name: string): string
proc getAliases*(obj: MObject): seq[string]
proc getLocation*(obj: MObject): MObject
proc getContents*(obj: MObject): tuple[hasContents: bool, contents: seq[MObject]]
proc getPropVal*(obj: MObject, name: string): MData
proc setProp*(obj: MObject, name: string, newVal: MData)
proc getProp*(obj: MObject, name: string): MProperty
import verbs, scripting

proc setCode*(verb: MVerb, newCode: string) =
  var parser = newParser(newCode)
  verb.parsed = parser.parseList()


proc getProp*(obj: MObject, name: string): MProperty =
{'fraction_non_alphanumeric': 0.12712550607287448, 'fraction_numerical': 0.0, 'mean_word_length': 7.295302013422819, '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': '558820', 'n_tokens_mistral': 394, 'n_tokens_neox': 391, 'n_words': 122}