<commit_before>#ignore
"""
First
Second
"""
import Boo.Lang.Environments

import Boo.Lang.Compiler
import Boo.Lang.Compiler.Ast
import Boo.Lang.Compiler.Steps
import Boo.Lang.Compiler.TypeSystem.Services

interface IFoo:
	def Bar() as string*
	
class ImplementIFoo(AbstractVisitorCompilerStep):
	
	override def Run():
		Visit(CompileUnit)
		
	override def LeaveClassDefinition(node as ClassDefinition):
		impl = [|
			class _($IFoo):
					
				callable OrdinalGenerator() as Ordinal*
	
				def Bar():
					generator as OrdinalGenerator = do:
						yield Items.First
						yield Items.Second
					for item in generator():
						yield item.ToString()
						
				enum Ordinal:
					First
					Second
		|]
		my(CodeReifier).MergeInto(node, impl)
				
	
module = [|
	import System
	
	class Foo:
		pass
|]
<commit_msg>fixed test case<commit_after>#ignore work in progress
"""
First
Second
"""
import Boo.Lang.Environments

import Boo.Lang.Compiler
import Boo.Lang.Compiler.Ast
import Boo.Lang.Compiler.Steps
import Boo.Lang.Compiler.TypeSystem.Services

interface IFoo:
	def Bar() as string*
	
class ImplementIFoo(AbstractVisitorCompilerStep):
	
	override def Run():
		Visit(CompileUnit)
		
	override def LeaveClassDefinition(node as ClassDefinition):
		impl = [|
			class _($IFoo):
					
				callable OrdinalGenerator() as Ordinal*
	
				def Bar():
					generator as OrdinalGenerator = do:
						yield Ordinal.First
						yield Ordinal.Second
					for item in generator():
						yield item.ToString()
						
				enum Ordinal:
					First
					Second
		|]
		my(CodeReifier).MergeInto(node, impl)
				
	
module = [|
	import System
	
	class Foo:
		pass
|]

{'fraction_non_alphanumeric': 0.09350333940497875, 'fraction_numerical': 0.0, 'mean_word_length': 3.204081632653061, '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': '6749129', 'n_tokens_mistral': 662, 'n_tokens_neox': 503, 'n_words': 135}