# Pastebin JjiitliT def get_part0_a(dest_file_name) s = false if Pathname(dest_file_name).exist? datastream = File.read(dest_file_name) s = datastream.scan(/(\/\/ Part0A(.|\n)*\/\/ Part0A)/).last # If No data is found it returns nil. end s = ["""// Part0A // Part0A"""] if !s s end def get_part1_a(dest_file_name) s = false if Pathname(dest_file_name).exist? datastream = File.read(dest_file_name) s = datastream.scan(/(\/\/ Part1A(.|\n)*\/\/ Part1A)/).last end s = ["""// Part1A // Part1A"""] if !s s end def get_part1_b(dest_file_name) s = false if Pathname(dest_file_name).exist? datastream = File.read(dest_file_name) s = datastream.scan(/(\/\/ Part1B(.|\n)*\/\/ Part1B)/).last end s = ["""// Part1B // Part1B"""] if !s s end def get_part1_c(dest_file_name) s = false if Pathname(dest_file_name).exist? datastream = File.read(dest_file_name) s = datastream.scan(/(\/\/ Part1C(.|\n)*\/\/ Part1C)/).last end s = ["""// Part1C // Part1C"""] if !s s end def get_part_server1_a(dest_file_name) s = false if Pathname(dest_file_name).exist? datastream = File.read(dest_file_name) s = datastream.scan(/(\# Part1(.|\n)*\# Part1)/).last end s = ["""# Part1 # Part1"""] if !s s end def get_part2_a(dest_file_name) s = false if Pathname(dest_file_name).exist? datastream = File.read(dest_file_name) s = datastream.scan(/(\/\/ Part2A(.|\n)*\/\/ Part2A)/).last end s = ["""// Part2A // Part2A"""] if !s s end def get_part2_b(dest_file_name) s = false if Pathname(dest_file_name).exist? datastream = File.read(dest_file_name) s = datastream.scan(/(\/\/ Part2B(.|\n)*\/\/ Part2B)/).last end s = ["""// Part2B // Part2B"""] if !s s end def get_part3_a(dest_file_name) s = false if Pathname(dest_file_name).exist? datastream = File.read(dest_file_name) s = datastream.scan(/(\/\/ Part3A(.|\n)*\/\/ Part3A)/).last end s = ["""// Part3A // Part3A"""] if !s s end def get_part4_a(dest_file_name) s = false if Pathname(dest_file_name).exist? datastream = File.read(dest_file_name) s = datastream.scan(/(\/\/ Part4A(.|\n)*\/\/ Part4A)/).last end s = ["""// Part4A // Part4A"""] if !s s end def get_part5_a(dest_file_name) s = false if Pathname(dest_file_name).exist? datastream = File.read(dest_file_name) s = datastream.scan(/(\/\/ Part5A(.|\n)*\/\/ Part5A)/).last end s = ["""// Part5A // Part5A"""] if !s s end def get_part5_b(dest_file_name) s = false if Pathname(dest_file_name).exist? datastream = File.read(dest_file_name) s = datastream.scan(/(\{\/\* Part5B\*\/(.|\n)*\{\/\* Part5B\*\/\})/).last end s = ["""{/* Part5B*/} {/* Part5B*/}"""] if !s s end def get_part6_a(dest_file_name) s = false if Pathname(dest_file_name).exist? datastream = File.read(dest_file_name) s = datastream.scan(/(\/\/ Part6A(.|\n)*\/\/ Part6A)/).last end s = ["""// Part6A // Part6A"""] if !s s end def get_part7_a(dest_file_name) s = false if Pathname(dest_file_name).exist? datastream = File.read(dest_file_name) s = datastream.scan(/(\/\/ Part7A(.|\n)*\/\/ Part7A)/).last end s = ["""// Part7A // Part7A"""] if !s s end def get_todo_block(dest_file_name) s = false if Pathname(dest_file_name).exist? datastream = File.read(dest_file_name) s = datastream.scan(/(\/\/ TODO(.|\n)*\/\/ TODO)/).last end s = ["""// TODO // TODO"""] if !s s end def get_imports_block(dest_file_name) s = false if Pathname(dest_file_name).exist? datastream = File.read(dest_file_name) s = datastream.scan(/(\/\/ IMPORTSA(.|\n)*\/\/ IMPORTSA)/).last end s = ["""// IMPORTSA // IMPORTSA"""] if !s s end def get_imports_block_b(dest_file_name) s = false if Pathname(dest_file_name).exist? datastream = File.read(dest_file_name) s = datastream.scan(/(\/\/ IMPORTSB(.|\n)*\/\/ IMPORTSB)/).last end s = ["""// IMPORTSB // IMPORTSB"""] if !s s end def get_settings_block(dest_file_name) s = false if Pathname(dest_file_name).exist? datastream = File.read(dest_file_name) s = datastream.scan(/(\/\/ SETTINGS(.|\n)*\/\/ SETTINGS)/).last end s = ["""// SETTINGS // SETTINGS"""] if !s s end