node_ids
listlengths
4
1.4k
edge_index
listlengths
1
2.22k
text
listlengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 17, 41, 13, 20, 41, 13, 17, 41, 13, 20, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 3, 4, 18, 13, 13, 28, 13, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 17, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 14, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 40, 41 ], [ 34, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 43, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 49, 54 ], [ 54, 55 ], [ 43, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 14, 60 ], [ 60, 61 ], [ 60, 62 ], [ 60, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 66, 71 ], [ 65, 72 ], [ 72, 73 ], [ 73, 74 ], [ 14, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 14, 81 ], [ 81, 82 ], [ 82, 83 ], [ 12, 84 ], [ 84, 85 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tString word;\n\t\tint count = 0;\n\t\tList<String> text = new ArrayList<>();\n\t\tfinal String EOT = \"END_OF_TEXT\";\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tword = stdIn.nextLine();\n\n\t\tfor(int i = 0;;i++) {\n\t\t\tString s = stdIn.next();\n\t\t\tif(s.equals(EOT)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttext.add(s);\n\t\t}\n\n\t\tfor(String s : text) {\n//\t\t\tSystem.out.println(s + \" == \" + word + \" : \" + s.compareToIgnoreCase(word));\n\t\t\tif(s.compareToIgnoreCase(word) == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\n\t\tstdIn.close();\n\t}\n\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tString word;\n\t\tint count = 0;\n\t\tList<String> text = new ArrayList<>();\n\t\tfinal String EOT = \"END_OF_TEXT\";\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tword = stdIn.nextLine();\n\n\t\tfor(int i = 0;;i++) {\n\t\t\tString s = stdIn.next();\n\t\t\tif(s.equals(EOT)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttext.add(s);\n\t\t}\n\n\t\tfor(String s : text) {\n//\t\t\tSystem.out.println(s + \" == \" + word + \" : \" + s.compareToIgnoreCase(word));\n\t\t\tif(s.compareToIgnoreCase(word) == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\n\t\tstdIn.close();\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tString word;\n\t\tint count = 0;\n\t\tList<String> text = new ArrayList<>();\n\t\tfinal String EOT = \"END_OF_TEXT\";\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tword = stdIn.nextLine();\n\n\t\tfor(int i = 0;;i++) {\n\t\t\tString s = stdIn.next();\n\t\t\tif(s.equals(EOT)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttext.add(s);\n\t\t}\n\n\t\tfor(String s : text) {\n//\t\t\tSystem.out.println(s + \" == \" + word + \" : \" + s.compareToIgnoreCase(word));\n\t\t\tif(s.compareToIgnoreCase(word) == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\n\t\tstdIn.close();\n\t}", "main", "{\n\n\t\tString word;\n\t\tint count = 0;\n\t\tList<String> text = new ArrayList<>();\n\t\tfinal String EOT = \"END_OF_TEXT\";\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tword = stdIn.nextLine();\n\n\t\tfor(int i = 0;;i++) {\n\t\t\tString s = stdIn.next();\n\t\t\tif(s.equals(EOT)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttext.add(s);\n\t\t}\n\n\t\tfor(String s : text) {\n//\t\t\tSystem.out.println(s + \" == \" + word + \" : \" + s.compareToIgnoreCase(word));\n\t\t\tif(s.compareToIgnoreCase(word) == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\n\t\tstdIn.close();\n\t}", "String word;", "word", "int count = 0;", "count", "0", "List<String> text = new ArrayList<>();", "text", "new ArrayList<>()", "final String EOT = \"END_OF_TEXT\";", "EOT", "\"END_OF_TEXT\"", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "word = stdIn.nextLine()", "word", "stdIn.nextLine()", "stdIn.nextLine", "stdIn", "for(int i = 0;;i++) {\n\t\t\tString s = stdIn.next();\n\t\t\tif(s.equals(EOT)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttext.add(s);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i++", "i++", "i", "{\n\t\t\tString s = stdIn.next();\n\t\t\tif(s.equals(EOT)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttext.add(s);\n\t\t}", "{\n\t\t\tString s = stdIn.next();\n\t\t\tif(s.equals(EOT)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttext.add(s);\n\t\t}", "String s = stdIn.next();", "s", "stdIn.next()", "stdIn.next", "stdIn", "if(s.equals(EOT)) {\n\t\t\t\tbreak;\n\t\t\t}", "s.equals(EOT)", "s.equals", "s", "EOT", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "text.add(s)", "text.add", "text", "s", "for(String s : text) {\n//\t\t\tSystem.out.println(s + \" == \" + word + \" : \" + s.compareToIgnoreCase(word));\n\t\t\tif(s.compareToIgnoreCase(word) == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "String s", "text", "{\n//\t\t\tSystem.out.println(s + \" == \" + word + \" : \" + s.compareToIgnoreCase(word));\n\t\t\tif(s.compareToIgnoreCase(word) == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "{\n//\t\t\tSystem.out.println(s + \" == \" + word + \" : \" + s.compareToIgnoreCase(word));\n\t\t\tif(s.compareToIgnoreCase(word) == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "if(s.compareToIgnoreCase(word) == 0) {\n\t\t\t\tcount++;\n\t\t\t}", "s.compareToIgnoreCase(word) == 0", "s.compareToIgnoreCase(word)", "s.compareToIgnoreCase", "s", "word", "0", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "stdIn.close()", "stdIn.close", "stdIn", "String[] args", "args" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; class Main { public static void main(String[] args) { String word; int count = 0; List<String> text = new ArrayList<>(); final String EOT = "END_OF_TEXT"; Scanner stdIn = new Scanner(System.in); word = stdIn.nextLine(); for(int i = 0;;i++) { String s = stdIn.next(); if(s.equals(EOT)) { break; } text.add(s); } for(String s : text) { // System.out.println(s + " == " + word + " : " + s.compareToIgnoreCase(word)); if(s.compareToIgnoreCase(word) == 0) { count++; } } System.out.println(count); stdIn.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 28, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 40, 45 ], [ 45, 46 ], [ 46, 47 ], [ 14, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 12, 54 ], [ 54, 55 ] ]
[ "import java.io.*;\nimport java.util.*;\nimport java.lang.*;\n\nclass Main{\n public static void main(String[] args) throws IOException{\n Scanner scan=new Scanner(System.in);\n String input=scan.next();\n int count=0;\n while(true){\n String str=scan.next();\n if(str.equals(\"END_OF_TEXT\"))break;\n if(input.equalsIgnoreCase(str)){\n count++;\n }\n }\n System.out.println(count);\n }\n}\n", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "class Main{\n public static void main(String[] args) throws IOException{\n Scanner scan=new Scanner(System.in);\n String input=scan.next();\n int count=0;\n while(true){\n String str=scan.next();\n if(str.equals(\"END_OF_TEXT\"))break;\n if(input.equalsIgnoreCase(str)){\n count++;\n }\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n Scanner scan=new Scanner(System.in);\n String input=scan.next();\n int count=0;\n while(true){\n String str=scan.next();\n if(str.equals(\"END_OF_TEXT\"))break;\n if(input.equalsIgnoreCase(str)){\n count++;\n }\n }\n System.out.println(count);\n }", "main", "{\n Scanner scan=new Scanner(System.in);\n String input=scan.next();\n int count=0;\n while(true){\n String str=scan.next();\n if(str.equals(\"END_OF_TEXT\"))break;\n if(input.equalsIgnoreCase(str)){\n count++;\n }\n }\n System.out.println(count);\n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "String input=scan.next();", "input", "scan.next()", "scan.next", "scan", "int count=0;", "count", "0", "while(true){\n String str=scan.next();\n if(str.equals(\"END_OF_TEXT\"))break;\n if(input.equalsIgnoreCase(str)){\n count++;\n }\n }", "true", "{\n String str=scan.next();\n if(str.equals(\"END_OF_TEXT\"))break;\n if(input.equalsIgnoreCase(str)){\n count++;\n }\n }", "String str=scan.next();", "str", "scan.next()", "scan.next", "scan", "if(str.equals(\"END_OF_TEXT\"))break;", "str.equals(\"END_OF_TEXT\")", "str.equals", "str", "\"END_OF_TEXT\"", "break;", "if(input.equalsIgnoreCase(str)){\n count++;\n }", "input.equalsIgnoreCase(str)", "input.equalsIgnoreCase", "input", "str", "{\n count++;\n }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.io.*; import java.util.*; import java.lang.*; class Main{ public static void main(String[] args) throws IOException{ Scanner scan=new Scanner(System.in); String input=scan.next(); int count=0; while(true){ String str=scan.next(); if(str.equals("END_OF_TEXT"))break; if(input.equalsIgnoreCase(str)){ count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 41, 13, 4, 18, 13, 11, 1, 40, 4, 18, 13, 17, 1, 0, 13, 4, 18, 13, 30, 30, 14, 4, 18, 13, 4, 18, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 64, 5 ], [ 64, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 27, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 27, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 46, 47 ], [ 47, 48 ], [ 42, 49 ], [ 49, 50 ], [ 50, 51 ], [ 8, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 8, 58 ], [ 58, 59 ], [ 59, 60 ], [ 6, 61 ], [ 61, 62 ], [ 0, 63 ], [ 63, 64 ], [ 63, 65 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tString w = sc.next().toLowerCase();\n\t\tint count = 0;\n\n\t\tString word = sc.next();\n\t\tfor (; !word.equals(\"END_OF_TEXT\"); word = sc.next()) {\n//\t\t\tSystem.out.println(word);\n\t\t\tif (w.equals(word.toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t\t\n\t\tsc.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tString w = sc.next().toLowerCase();\n\t\tint count = 0;\n\n\t\tString word = sc.next();\n\t\tfor (; !word.equals(\"END_OF_TEXT\"); word = sc.next()) {\n//\t\t\tSystem.out.println(word);\n\t\t\tif (w.equals(word.toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t\t\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tString w = sc.next().toLowerCase();\n\t\tint count = 0;\n\n\t\tString word = sc.next();\n\t\tfor (; !word.equals(\"END_OF_TEXT\"); word = sc.next()) {\n//\t\t\tSystem.out.println(word);\n\t\t\tif (w.equals(word.toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t\t\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tString w = sc.next().toLowerCase();\n\t\tint count = 0;\n\n\t\tString word = sc.next();\n\t\tfor (; !word.equals(\"END_OF_TEXT\"); word = sc.next()) {\n//\t\t\tSystem.out.println(word);\n\t\t\tif (w.equals(word.toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t\t\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String w = sc.next().toLowerCase();", "w", "sc.next().toLowerCase()", "sc.next().toLowerCase", "sc.next()", "sc.next", "sc", "int count = 0;", "count", "0", "String word = sc.next();", "word", "sc.next()", "sc.next", "sc", "for (; !word.equals(\"END_OF_TEXT\"); word = sc.next()) {\n//\t\t\tSystem.out.println(word);\n\t\t\tif (w.equals(word.toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", ";", "!word.equals(\"END_OF_TEXT\")", "word.equals(\"END_OF_TEXT\")", "word.equals", "word", "\"END_OF_TEXT\"", "word = sc.next()", "word = sc.next()", "word", "sc.next()", "sc.next", "sc", "{\n//\t\t\tSystem.out.println(word);\n\t\t\tif (w.equals(word.toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "{\n//\t\t\tSystem.out.println(word);\n\t\t\tif (w.equals(word.toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "if (w.equals(word.toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}", "w.equals(word.toLowerCase())", "w.equals", "w", "word.toLowerCase()", "word.toLowerCase", "word", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tString w = sc.next().toLowerCase();\n\t\tint count = 0;\n\n\t\tString word = sc.next();\n\t\tfor (; !word.equals(\"END_OF_TEXT\"); word = sc.next()) {\n//\t\t\tSystem.out.println(word);\n\t\t\tif (w.equals(word.toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t\t\n\t\tsc.close();\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tString w = sc.next().toLowerCase();\n\t\tint count = 0;\n\n\t\tString word = sc.next();\n\t\tfor (; !word.equals(\"END_OF_TEXT\"); word = sc.next()) {\n//\t\t\tSystem.out.println(word);\n\t\t\tif (w.equals(word.toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t\t\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String w = sc.next().toLowerCase(); int count = 0; String word = sc.next(); for (; !word.equals("END_OF_TEXT"); word = sc.next()) { // System.out.println(word); if (w.equals(word.toLowerCase())) { count++; } } System.out.println(count); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 4, 18, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 75, 8 ], [ 75, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 30, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 46, 47 ], [ 11, 48 ], [ 48, 49 ], [ 49, 50 ], [ 11, 51 ], [ 51, 52 ], [ 51, 53 ], [ 11, 54 ], [ 54, 55 ], [ 54, 56 ], [ 54, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 59, 64 ], [ 64, 65 ], [ 11, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 9, 72 ], [ 72, 73 ], [ 0, 74 ], [ 74, 75 ], [ 74, 76 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString keyWord = sc.next();\n\t\tkeyWord = keyWord.toUpperCase();\n\n\t\tArrayList<String> wordLists = new ArrayList<>();\n\t\twhile(true) {\n\t\t\tString word = sc.next();\n\t\t\tif(word.equals(\"END_OF_TEXT\")) break;\n\t\t\twordLists.add(word.toUpperCase());\n\t\t}\n\n\t\tsc.close();\n\n\t\t// 単語数を計測\n\t\tint count = 0;\n\t\tfor(String word : wordLists) {\n\t\t\tif(word.equals(keyWord)) count++;\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}\n\n}\n", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString keyWord = sc.next();\n\t\tkeyWord = keyWord.toUpperCase();\n\n\t\tArrayList<String> wordLists = new ArrayList<>();\n\t\twhile(true) {\n\t\t\tString word = sc.next();\n\t\t\tif(word.equals(\"END_OF_TEXT\")) break;\n\t\t\twordLists.add(word.toUpperCase());\n\t\t}\n\n\t\tsc.close();\n\n\t\t// 単語数を計測\n\t\tint count = 0;\n\t\tfor(String word : wordLists) {\n\t\t\tif(word.equals(keyWord)) count++;\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString keyWord = sc.next();\n\t\tkeyWord = keyWord.toUpperCase();\n\n\t\tArrayList<String> wordLists = new ArrayList<>();\n\t\twhile(true) {\n\t\t\tString word = sc.next();\n\t\t\tif(word.equals(\"END_OF_TEXT\")) break;\n\t\t\twordLists.add(word.toUpperCase());\n\t\t}\n\n\t\tsc.close();\n\n\t\t// 単語数を計測\n\t\tint count = 0;\n\t\tfor(String word : wordLists) {\n\t\t\tif(word.equals(keyWord)) count++;\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString keyWord = sc.next();\n\t\tkeyWord = keyWord.toUpperCase();\n\n\t\tArrayList<String> wordLists = new ArrayList<>();\n\t\twhile(true) {\n\t\t\tString word = sc.next();\n\t\t\tif(word.equals(\"END_OF_TEXT\")) break;\n\t\t\twordLists.add(word.toUpperCase());\n\t\t}\n\n\t\tsc.close();\n\n\t\t// 単語数を計測\n\t\tint count = 0;\n\t\tfor(String word : wordLists) {\n\t\t\tif(word.equals(keyWord)) count++;\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String keyWord = sc.next();", "keyWord", "sc.next()", "sc.next", "sc", "keyWord = keyWord.toUpperCase()", "keyWord", "keyWord.toUpperCase()", "keyWord.toUpperCase", "keyWord", "ArrayList<String> wordLists = new ArrayList<>();", "wordLists", "new ArrayList<>()", "while(true) {\n\t\t\tString word = sc.next();\n\t\t\tif(word.equals(\"END_OF_TEXT\")) break;\n\t\t\twordLists.add(word.toUpperCase());\n\t\t}", "true", "{\n\t\t\tString word = sc.next();\n\t\t\tif(word.equals(\"END_OF_TEXT\")) break;\n\t\t\twordLists.add(word.toUpperCase());\n\t\t}", "String word = sc.next();", "word", "sc.next()", "sc.next", "sc", "if(word.equals(\"END_OF_TEXT\")) break;", "word.equals(\"END_OF_TEXT\")", "word.equals", "word", "\"END_OF_TEXT\"", "break;", "wordLists.add(word.toUpperCase())", "wordLists.add", "wordLists", "word.toUpperCase()", "word.toUpperCase", "word", "sc.close()", "sc.close", "sc", "int count = 0;", "count", "0", "for(String word : wordLists) {\n\t\t\tif(word.equals(keyWord)) count++;\n\t\t}", "String word", "wordLists", "{\n\t\t\tif(word.equals(keyWord)) count++;\n\t\t}", "{\n\t\t\tif(word.equals(keyWord)) count++;\n\t\t}", "if(word.equals(keyWord)) count++;", "word.equals(keyWord)", "word.equals", "word", "keyWord", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString keyWord = sc.next();\n\t\tkeyWord = keyWord.toUpperCase();\n\n\t\tArrayList<String> wordLists = new ArrayList<>();\n\t\twhile(true) {\n\t\t\tString word = sc.next();\n\t\t\tif(word.equals(\"END_OF_TEXT\")) break;\n\t\t\twordLists.add(word.toUpperCase());\n\t\t}\n\n\t\tsc.close();\n\n\t\t// 単語数を計測\n\t\tint count = 0;\n\t\tfor(String word : wordLists) {\n\t\t\tif(word.equals(keyWord)) count++;\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString keyWord = sc.next();\n\t\tkeyWord = keyWord.toUpperCase();\n\n\t\tArrayList<String> wordLists = new ArrayList<>();\n\t\twhile(true) {\n\t\t\tString word = sc.next();\n\t\t\tif(word.equals(\"END_OF_TEXT\")) break;\n\t\t\twordLists.add(word.toUpperCase());\n\t\t}\n\n\t\tsc.close();\n\n\t\t// 単語数を計測\n\t\tint count = 0;\n\t\tfor(String word : wordLists) {\n\t\t\tif(word.equals(keyWord)) count++;\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String keyWord = sc.next(); keyWord = keyWord.toUpperCase(); ArrayList<String> wordLists = new ArrayList<>(); while(true) { String word = sc.next(); if(word.equals("END_OF_TEXT")) break; wordLists.add(word.toUpperCase()); } sc.close(); // 単語数を計測 int count = 0; for(String word : wordLists) { if(word.equals(keyWord)) count++; } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 41, 13, 17, 41, 13, 42, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 14, 2, 13, 40, 17, 30, 0, 13, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 0, 13, 2, 2, 13, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 8, 33 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 37, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 37, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 49, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 49, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 37, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 64, 69 ], [ 69, 70 ], [ 70, 71 ], [ 37, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 37, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 79, 83 ], [ 37, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 37, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 96, 97 ], [ 8, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 8, 104 ], [ 104, 105 ], [ 105, 106 ], [ 6, 107 ], [ 107, 108 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String args[]) {\n\tScanner scanner = new Scanner(System.in);\n\tString search = scanner.nextLine();\t//検索文字\n\tboolean Judge = true;\n \tint count = 0;\n \tint count2 = 0;\n \tint wordlengh,minlength;\n \tString end = \"END_OF_TEXT\";\n \tString work;\n \t\n \t\n \twhile( Judge ){\n\t\tString word = scanner.next();\t//文章入力\n \t\t//終わる処理と変換\n \t\tint result = word.lastIndexOf(end);\t//検索結果を入れる\n \t\tif( result != -1 ){\n \t\t\tJudge = false;\n \t\t}else{\n \t\t\tword = word.toLowerCase(); \t\t//小文字に\n \t\t}\n \t\tif( word.equals(search) ) {\n \t\t\tcount2++;\n \t\t}\n \t\t//文字列検索\n \t\twordlengh = word.length();\t\t\t//元々の文字数\n\t\twork = word.replaceAll(search, \"\"); //検索する文字消す\n\t\tminlength = work.length();\t\t\t//消した時の文字数\n\t\tcount += ( wordlengh - minlength )/(search.length());\t//含まれていた数を足す\n \t\t\n \t}\n \t//結果出力\n\t//System.out.println(count);\n\tSystem.out.println(count2);\n \t\n\tscanner.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String args[]) {\n\tScanner scanner = new Scanner(System.in);\n\tString search = scanner.nextLine();\t//検索文字\n\tboolean Judge = true;\n \tint count = 0;\n \tint count2 = 0;\n \tint wordlengh,minlength;\n \tString end = \"END_OF_TEXT\";\n \tString work;\n \t\n \t\n \twhile( Judge ){\n\t\tString word = scanner.next();\t//文章入力\n \t\t//終わる処理と変換\n \t\tint result = word.lastIndexOf(end);\t//検索結果を入れる\n \t\tif( result != -1 ){\n \t\t\tJudge = false;\n \t\t}else{\n \t\t\tword = word.toLowerCase(); \t\t//小文字に\n \t\t}\n \t\tif( word.equals(search) ) {\n \t\t\tcount2++;\n \t\t}\n \t\t//文字列検索\n \t\twordlengh = word.length();\t\t\t//元々の文字数\n\t\twork = word.replaceAll(search, \"\"); //検索する文字消す\n\t\tminlength = work.length();\t\t\t//消した時の文字数\n\t\tcount += ( wordlengh - minlength )/(search.length());\t//含まれていた数を足す\n \t\t\n \t}\n \t//結果出力\n\t//System.out.println(count);\n\tSystem.out.println(count2);\n \t\n\tscanner.close();\n }\n}", "Main", "public static void main(String args[]) {\n\tScanner scanner = new Scanner(System.in);\n\tString search = scanner.nextLine();\t//検索文字\n\tboolean Judge = true;\n \tint count = 0;\n \tint count2 = 0;\n \tint wordlengh,minlength;\n \tString end = \"END_OF_TEXT\";\n \tString work;\n \t\n \t\n \twhile( Judge ){\n\t\tString word = scanner.next();\t//文章入力\n \t\t//終わる処理と変換\n \t\tint result = word.lastIndexOf(end);\t//検索結果を入れる\n \t\tif( result != -1 ){\n \t\t\tJudge = false;\n \t\t}else{\n \t\t\tword = word.toLowerCase(); \t\t//小文字に\n \t\t}\n \t\tif( word.equals(search) ) {\n \t\t\tcount2++;\n \t\t}\n \t\t//文字列検索\n \t\twordlengh = word.length();\t\t\t//元々の文字数\n\t\twork = word.replaceAll(search, \"\"); //検索する文字消す\n\t\tminlength = work.length();\t\t\t//消した時の文字数\n\t\tcount += ( wordlengh - minlength )/(search.length());\t//含まれていた数を足す\n \t\t\n \t}\n \t//結果出力\n\t//System.out.println(count);\n\tSystem.out.println(count2);\n \t\n\tscanner.close();\n }", "main", "{\n\tScanner scanner = new Scanner(System.in);\n\tString search = scanner.nextLine();\t//検索文字\n\tboolean Judge = true;\n \tint count = 0;\n \tint count2 = 0;\n \tint wordlengh,minlength;\n \tString end = \"END_OF_TEXT\";\n \tString work;\n \t\n \t\n \twhile( Judge ){\n\t\tString word = scanner.next();\t//文章入力\n \t\t//終わる処理と変換\n \t\tint result = word.lastIndexOf(end);\t//検索結果を入れる\n \t\tif( result != -1 ){\n \t\t\tJudge = false;\n \t\t}else{\n \t\t\tword = word.toLowerCase(); \t\t//小文字に\n \t\t}\n \t\tif( word.equals(search) ) {\n \t\t\tcount2++;\n \t\t}\n \t\t//文字列検索\n \t\twordlengh = word.length();\t\t\t//元々の文字数\n\t\twork = word.replaceAll(search, \"\"); //検索する文字消す\n\t\tminlength = work.length();\t\t\t//消した時の文字数\n\t\tcount += ( wordlengh - minlength )/(search.length());\t//含まれていた数を足す\n \t\t\n \t}\n \t//結果出力\n\t//System.out.println(count);\n\tSystem.out.println(count2);\n \t\n\tscanner.close();\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String search = scanner.nextLine();", "search", "scanner.nextLine()", "scanner.nextLine", "scanner", "boolean Judge = true;", "Judge", "true", "int count = 0;", "count", "0", "int count2 = 0;", "count2", "0", "int wordlengh", "wordlengh", "minlength;", "minlength", "String end = \"END_OF_TEXT\";", "end", "\"END_OF_TEXT\"", "String work;", "work", "while( Judge ){\n\t\tString word = scanner.next();\t//文章入力\n \t\t//終わる処理と変換\n \t\tint result = word.lastIndexOf(end);\t//検索結果を入れる\n \t\tif( result != -1 ){\n \t\t\tJudge = false;\n \t\t}else{\n \t\t\tword = word.toLowerCase(); \t\t//小文字に\n \t\t}\n \t\tif( word.equals(search) ) {\n \t\t\tcount2++;\n \t\t}\n \t\t//文字列検索\n \t\twordlengh = word.length();\t\t\t//元々の文字数\n\t\twork = word.replaceAll(search, \"\"); //検索する文字消す\n\t\tminlength = work.length();\t\t\t//消した時の文字数\n\t\tcount += ( wordlengh - minlength )/(search.length());\t//含まれていた数を足す\n \t\t\n \t}", "Judge", "{\n\t\tString word = scanner.next();\t//文章入力\n \t\t//終わる処理と変換\n \t\tint result = word.lastIndexOf(end);\t//検索結果を入れる\n \t\tif( result != -1 ){\n \t\t\tJudge = false;\n \t\t}else{\n \t\t\tword = word.toLowerCase(); \t\t//小文字に\n \t\t}\n \t\tif( word.equals(search) ) {\n \t\t\tcount2++;\n \t\t}\n \t\t//文字列検索\n \t\twordlengh = word.length();\t\t\t//元々の文字数\n\t\twork = word.replaceAll(search, \"\"); //検索する文字消す\n\t\tminlength = work.length();\t\t\t//消した時の文字数\n\t\tcount += ( wordlengh - minlength )/(search.length());\t//含まれていた数を足す\n \t\t\n \t}", "String word = scanner.next();", "word", "scanner.next()", "scanner.next", "scanner", "int result = word.lastIndexOf(end);", "result", "word.lastIndexOf(end)", "word.lastIndexOf", "word", "end", "if( result != -1 ){\n \t\t\tJudge = false;\n \t\t}else{\n \t\t\tword = word.toLowerCase(); \t\t//小文字に\n \t\t}", "result != -1", "result", "-1", "1", "{\n \t\t\tJudge = false;\n \t\t}", "Judge = false", "Judge", "false", "{\n \t\t\tword = word.toLowerCase(); \t\t//小文字に\n \t\t}", "word = word.toLowerCase()", "word", "word.toLowerCase()", "word.toLowerCase", "word", "if( word.equals(search) ) {\n \t\t\tcount2++;\n \t\t}", "word.equals(search)", "word.equals", "word", "search", "{\n \t\t\tcount2++;\n \t\t}", "count2++", "count2", "wordlengh = word.length()", "wordlengh", "word.length()", "word.length", "word", "work = word.replaceAll(search, \"\")", "work", "word.replaceAll(search, \"\")", "word.replaceAll", "word", "search", "\"\"", "minlength = work.length()", "minlength", "work.length()", "work.length", "work", "count += ( wordlengh - minlength )/(search.length())", "count", "( wordlengh - minlength )/(search.length())", "( wordlengh - minlength )", "wordlengh", "minlength", "(search.length())", "search.length", "search", "System.out.println(count2)", "System.out.println", "System.out", "System", "System.out", "count2", "scanner.close()", "scanner.close", "scanner", "String args[]", "args" ]
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); String search = scanner.nextLine(); //検索文字 boolean Judge = true; int count = 0; int count2 = 0; int wordlengh,minlength; String end = "END_OF_TEXT"; String work; while( Judge ){ String word = scanner.next(); //文章入力 //終わる処理と変換 int result = word.lastIndexOf(end); //検索結果を入れる if( result != -1 ){ Judge = false; }else{ word = word.toLowerCase(); //小文字に } if( word.equals(search) ) { count2++; } //文字列検索 wordlengh = word.length(); //元々の文字数 work = word.replaceAll(search, ""); //検索する文字消す minlength = work.length(); //消した時の文字数 count += ( wordlengh - minlength )/(search.length()); //含まれていた数を足す } //結果出力 //System.out.println(count); System.out.println(count2); scanner.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 71, 5 ], [ 71, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 8, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 33, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 33, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 33, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 51, 56 ], [ 56, 57 ], [ 57, 58 ], [ 8, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 8, 65 ], [ 65, 66 ], [ 66, 67 ], [ 6, 68 ], [ 68, 69 ], [ 0, 70 ], [ 70, 71 ], [ 70, 72 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint cnt=0;\n\t\tString comp_word = \"\";\n\t\tString str = \"\";\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\tcomp_word = sc.next();\n\t\tcomp_word = comp_word.toLowerCase();\n\n\t\twhile( true ) {\n\t\t\tstr = sc.next();\n\n\n\t\t\tif ( str.equals(\"END_OF_TEXT\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tstr = str.toLowerCase();\n\n\t\t\tif( str.equals(comp_word) ) {\n\t\t\t\tcnt++;\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println( cnt );\n\n\t\tsc.close();\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint cnt=0;\n\t\tString comp_word = \"\";\n\t\tString str = \"\";\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\tcomp_word = sc.next();\n\t\tcomp_word = comp_word.toLowerCase();\n\n\t\twhile( true ) {\n\t\t\tstr = sc.next();\n\n\n\t\t\tif ( str.equals(\"END_OF_TEXT\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tstr = str.toLowerCase();\n\n\t\t\tif( str.equals(comp_word) ) {\n\t\t\t\tcnt++;\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println( cnt );\n\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tint cnt=0;\n\t\tString comp_word = \"\";\n\t\tString str = \"\";\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\tcomp_word = sc.next();\n\t\tcomp_word = comp_word.toLowerCase();\n\n\t\twhile( true ) {\n\t\t\tstr = sc.next();\n\n\n\t\t\tif ( str.equals(\"END_OF_TEXT\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tstr = str.toLowerCase();\n\n\t\t\tif( str.equals(comp_word) ) {\n\t\t\t\tcnt++;\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println( cnt );\n\n\t\tsc.close();\n\t}", "main", "{\n\t\tint cnt=0;\n\t\tString comp_word = \"\";\n\t\tString str = \"\";\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\tcomp_word = sc.next();\n\t\tcomp_word = comp_word.toLowerCase();\n\n\t\twhile( true ) {\n\t\t\tstr = sc.next();\n\n\n\t\t\tif ( str.equals(\"END_OF_TEXT\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tstr = str.toLowerCase();\n\n\t\t\tif( str.equals(comp_word) ) {\n\t\t\t\tcnt++;\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println( cnt );\n\n\t\tsc.close();\n\t}", "int cnt=0;", "cnt", "0", "String comp_word = \"\";", "comp_word", "\"\"", "String str = \"\";", "str", "\"\"", "Scanner sc= new Scanner( System.in );", "sc", "new Scanner( System.in )", "comp_word = sc.next()", "comp_word", "sc.next()", "sc.next", "sc", "comp_word = comp_word.toLowerCase()", "comp_word", "comp_word.toLowerCase()", "comp_word.toLowerCase", "comp_word", "while( true ) {\n\t\t\tstr = sc.next();\n\n\n\t\t\tif ( str.equals(\"END_OF_TEXT\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tstr = str.toLowerCase();\n\n\t\t\tif( str.equals(comp_word) ) {\n\t\t\t\tcnt++;\n\t\t\t}\n\n\t\t}", "true", "{\n\t\t\tstr = sc.next();\n\n\n\t\t\tif ( str.equals(\"END_OF_TEXT\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tstr = str.toLowerCase();\n\n\t\t\tif( str.equals(comp_word) ) {\n\t\t\t\tcnt++;\n\t\t\t}\n\n\t\t}", "str = sc.next()", "str", "sc.next()", "sc.next", "sc", "if ( str.equals(\"END_OF_TEXT\") ) {\n\t\t\t\tbreak;\n\t\t\t}", "str.equals(\"END_OF_TEXT\")", "str.equals", "str", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "str = str.toLowerCase()", "str", "str.toLowerCase()", "str.toLowerCase", "str", "if( str.equals(comp_word) ) {\n\t\t\t\tcnt++;\n\t\t\t}", "str.equals(comp_word)", "str.equals", "str", "comp_word", "{\n\t\t\t\tcnt++;\n\t\t\t}", "cnt++", "cnt", "System.out.println( cnt )", "System.out.println", "System.out", "System", "System.out", "cnt", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint cnt=0;\n\t\tString comp_word = \"\";\n\t\tString str = \"\";\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\tcomp_word = sc.next();\n\t\tcomp_word = comp_word.toLowerCase();\n\n\t\twhile( true ) {\n\t\t\tstr = sc.next();\n\n\n\t\t\tif ( str.equals(\"END_OF_TEXT\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tstr = str.toLowerCase();\n\n\t\t\tif( str.equals(comp_word) ) {\n\t\t\t\tcnt++;\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println( cnt );\n\n\t\tsc.close();\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint cnt=0;\n\t\tString comp_word = \"\";\n\t\tString str = \"\";\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\tcomp_word = sc.next();\n\t\tcomp_word = comp_word.toLowerCase();\n\n\t\twhile( true ) {\n\t\t\tstr = sc.next();\n\n\n\t\t\tif ( str.equals(\"END_OF_TEXT\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tstr = str.toLowerCase();\n\n\t\t\tif( str.equals(comp_word) ) {\n\t\t\t\tcnt++;\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println( cnt );\n\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { int cnt=0; String comp_word = ""; String str = ""; Scanner sc= new Scanner( System.in ); comp_word = sc.next(); comp_word = comp_word.toLowerCase(); while( true ) { str = sc.next(); if ( str.equals("END_OF_TEXT") ) { break; } str = str.toLowerCase(); if( str.equals(comp_word) ) { cnt++; } } System.out.println( cnt ); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 41, 13, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 30, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 4, 18, 13, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 86, 11 ], [ 86, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 33, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 39, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 14, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 51, 61 ], [ 61, 62 ], [ 62, 63 ], [ 51, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 14, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 12, 83 ], [ 83, 84 ], [ 0, 85 ], [ 85, 86 ], [ 85, 87 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString character = scanner.nextLine();\n\t\tList<String> list = new ArrayList<String>();\n\t\tString str;\n\t\tint count = 0;\n\t\twhile (true) {\n\t\t\tstr = scanner.next();\t\t\t\n\t\t\tif(str .equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tlist.add(str);\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < list.size(); i++) {\n\t\t\tif(character.equalsIgnoreCase(list.get(i))) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString character = scanner.nextLine();\n\t\tList<String> list = new ArrayList<String>();\n\t\tString str;\n\t\tint count = 0;\n\t\twhile (true) {\n\t\t\tstr = scanner.next();\t\t\t\n\t\t\tif(str .equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tlist.add(str);\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < list.size(); i++) {\n\t\t\tif(character.equalsIgnoreCase(list.get(i))) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString character = scanner.nextLine();\n\t\tList<String> list = new ArrayList<String>();\n\t\tString str;\n\t\tint count = 0;\n\t\twhile (true) {\n\t\t\tstr = scanner.next();\t\t\t\n\t\t\tif(str .equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tlist.add(str);\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < list.size(); i++) {\n\t\t\tif(character.equalsIgnoreCase(list.get(i))) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString character = scanner.nextLine();\n\t\tList<String> list = new ArrayList<String>();\n\t\tString str;\n\t\tint count = 0;\n\t\twhile (true) {\n\t\t\tstr = scanner.next();\t\t\t\n\t\t\tif(str .equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tlist.add(str);\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < list.size(); i++) {\n\t\t\tif(character.equalsIgnoreCase(list.get(i))) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String character = scanner.nextLine();", "character", "scanner.nextLine()", "scanner.nextLine", "scanner", "List<String> list = new ArrayList<String>();", "list", "new ArrayList<String>()", "String str;", "str", "int count = 0;", "count", "0", "while (true) {\n\t\t\tstr = scanner.next();\t\t\t\n\t\t\tif(str .equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tlist.add(str);\t\t\t\t\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tstr = scanner.next();\t\t\t\n\t\t\tif(str .equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tlist.add(str);\t\t\t\t\n\t\t\t}\n\t\t}", "str = scanner.next()", "str", "scanner.next()", "scanner.next", "scanner", "if(str .equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tlist.add(str);\t\t\t\t\n\t\t\t}", "str .equals(\"END_OF_TEXT\")", "str .equals", "str", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "{\n\t\t\t\tlist.add(str);\t\t\t\t\n\t\t\t}", "list.add(str)", "list.add", "list", "str", "for(int i = 0; i < list.size(); i++) {\n\t\t\tif(character.equalsIgnoreCase(list.get(i))) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < list.size()", "i", "list.size()", "list.size", "list", "i++", "i++", "i", "{\n\t\t\tif(character.equalsIgnoreCase(list.get(i))) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(character.equalsIgnoreCase(list.get(i))) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}", "if(character.equalsIgnoreCase(list.get(i))) {\n\t\t\t\tcount ++;\n\t\t\t}", "character.equalsIgnoreCase(list.get(i))", "character.equalsIgnoreCase", "character", "list.get(i)", "list.get", "list", "i", "{\n\t\t\t\tcount ++;\n\t\t\t}", "count ++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString character = scanner.nextLine();\n\t\tList<String> list = new ArrayList<String>();\n\t\tString str;\n\t\tint count = 0;\n\t\twhile (true) {\n\t\t\tstr = scanner.next();\t\t\t\n\t\t\tif(str .equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tlist.add(str);\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < list.size(); i++) {\n\t\t\tif(character.equalsIgnoreCase(list.get(i))) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString character = scanner.nextLine();\n\t\tList<String> list = new ArrayList<String>();\n\t\tString str;\n\t\tint count = 0;\n\t\twhile (true) {\n\t\t\tstr = scanner.next();\t\t\t\n\t\t\tif(str .equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tlist.add(str);\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < list.size(); i++) {\n\t\t\tif(character.equalsIgnoreCase(list.get(i))) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String character = scanner.nextLine(); List<String> list = new ArrayList<String>(); String str; int count = 0; while (true) { str = scanner.next(); if(str .equals("END_OF_TEXT")) { break; }else { list.add(str); } } for(int i = 0; i < list.size(); i++) { if(character.equalsIgnoreCase(list.get(i))) { count ++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 17, 13, 30, 3, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 41, 13, 18, 13, 13, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 14, 4, 18, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 37, 38 ], [ 26, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 26, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 45, 55 ], [ 55, 56 ], [ 55, 57 ], [ 45, 58 ], [ 58, 59 ], [ 59, 60 ], [ 45, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 62, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 69, 74 ], [ 68, 75 ], [ 75, 76 ], [ 76, 77 ], [ 8, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 6, 84 ], [ 84, 85 ] ]
[ "import java.util.Scanner;\n \nclass Main{\n \tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tString str = sc.nextLine().toLowerCase();\n \tint x = 0;\n \twhile (sc.hasNextLine()) {\n \t\tString str2 = sc.nextLine();\n \t\tif (\"END_OF_TEXT\".equals(str2)) {\n \t\tbreak;\n \t\t}\n \t\tString[] str3 = str2.split(\" \");\n \t\tfor (int i = 0, l = str3.length; i < l; i++) {\n \t\tString s = str3[i];\n \t\tif (s.toLowerCase().equals(str)) {\n \t\t\tx++;\n \t\t}\n \t\t}\n \t}\n \tSystem.out.println(x);\n \t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n \tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tString str = sc.nextLine().toLowerCase();\n \tint x = 0;\n \twhile (sc.hasNextLine()) {\n \t\tString str2 = sc.nextLine();\n \t\tif (\"END_OF_TEXT\".equals(str2)) {\n \t\tbreak;\n \t\t}\n \t\tString[] str3 = str2.split(\" \");\n \t\tfor (int i = 0, l = str3.length; i < l; i++) {\n \t\tString s = str3[i];\n \t\tif (s.toLowerCase().equals(str)) {\n \t\t\tx++;\n \t\t}\n \t\t}\n \t}\n \tSystem.out.println(x);\n \t}\n}", "Main", "public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tString str = sc.nextLine().toLowerCase();\n \tint x = 0;\n \twhile (sc.hasNextLine()) {\n \t\tString str2 = sc.nextLine();\n \t\tif (\"END_OF_TEXT\".equals(str2)) {\n \t\tbreak;\n \t\t}\n \t\tString[] str3 = str2.split(\" \");\n \t\tfor (int i = 0, l = str3.length; i < l; i++) {\n \t\tString s = str3[i];\n \t\tif (s.toLowerCase().equals(str)) {\n \t\t\tx++;\n \t\t}\n \t\t}\n \t}\n \tSystem.out.println(x);\n \t}", "main", "{\n \tScanner sc = new Scanner(System.in);\n \tString str = sc.nextLine().toLowerCase();\n \tint x = 0;\n \twhile (sc.hasNextLine()) {\n \t\tString str2 = sc.nextLine();\n \t\tif (\"END_OF_TEXT\".equals(str2)) {\n \t\tbreak;\n \t\t}\n \t\tString[] str3 = str2.split(\" \");\n \t\tfor (int i = 0, l = str3.length; i < l; i++) {\n \t\tString s = str3[i];\n \t\tif (s.toLowerCase().equals(str)) {\n \t\t\tx++;\n \t\t}\n \t\t}\n \t}\n \tSystem.out.println(x);\n \t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str = sc.nextLine().toLowerCase();", "str", "sc.nextLine().toLowerCase()", "sc.nextLine().toLowerCase", "sc.nextLine()", "sc.nextLine", "sc", "int x = 0;", "x", "0", "while (sc.hasNextLine()) {\n \t\tString str2 = sc.nextLine();\n \t\tif (\"END_OF_TEXT\".equals(str2)) {\n \t\tbreak;\n \t\t}\n \t\tString[] str3 = str2.split(\" \");\n \t\tfor (int i = 0, l = str3.length; i < l; i++) {\n \t\tString s = str3[i];\n \t\tif (s.toLowerCase().equals(str)) {\n \t\t\tx++;\n \t\t}\n \t\t}\n \t}", "sc.hasNextLine()", "sc.hasNextLine", "sc", "{\n \t\tString str2 = sc.nextLine();\n \t\tif (\"END_OF_TEXT\".equals(str2)) {\n \t\tbreak;\n \t\t}\n \t\tString[] str3 = str2.split(\" \");\n \t\tfor (int i = 0, l = str3.length; i < l; i++) {\n \t\tString s = str3[i];\n \t\tif (s.toLowerCase().equals(str)) {\n \t\t\tx++;\n \t\t}\n \t\t}\n \t}", "String str2 = sc.nextLine();", "str2", "sc.nextLine()", "sc.nextLine", "sc", "if (\"END_OF_TEXT\".equals(str2)) {\n \t\tbreak;\n \t\t}", "\"END_OF_TEXT\".equals(str2)", "\"END_OF_TEXT\".equals", "\"END_OF_TEXT\"", "str2", "{\n \t\tbreak;\n \t\t}", "break;", "String[] str3 = str2.split(\" \");", "str3", "str2.split(\" \")", "str2.split", "str2", "\" \"", "for (int i = 0, l = str3.length; i < l; i++) {\n \t\tString s = str3[i];\n \t\tif (s.toLowerCase().equals(str)) {\n \t\t\tx++;\n \t\t}\n \t\t}", "int i = 0, l = str3.length;", "int i = 0", "i", "0", "l = str3.length;", "l", "str3.length", "str3", "str3.length", "i < l", "i", "l", "i++", "i++", "i", "{\n \t\tString s = str3[i];\n \t\tif (s.toLowerCase().equals(str)) {\n \t\t\tx++;\n \t\t}\n \t\t}", "{\n \t\tString s = str3[i];\n \t\tif (s.toLowerCase().equals(str)) {\n \t\t\tx++;\n \t\t}\n \t\t}", "String s = str3[i];", "s", "str3[i]", "str3", "i", "if (s.toLowerCase().equals(str)) {\n \t\t\tx++;\n \t\t}", "s.toLowerCase().equals(str)", "s.toLowerCase().equals", "s.toLowerCase()", "s.toLowerCase", "s", "str", "{\n \t\t\tx++;\n \t\t}", "x++", "x", "System.out.println(x)", "System.out.println", "System.out", "System", "System.out", "x", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String str = sc.nextLine().toLowerCase(); int x = 0; while (sc.hasNextLine()) { String str2 = sc.nextLine(); if ("END_OF_TEXT".equals(str2)) { break; } String[] str3 = str2.split(" "); for (int i = 0, l = str3.length; i < l; i++) { String s = str3[i]; if (s.toLowerCase().equals(str)) { x++; } } } System.out.println(x); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 17, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 83, 5 ], [ 83, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 29, 36 ], [ 27, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 37, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 37, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 49, 59 ], [ 59, 60 ], [ 60, 61 ], [ 49, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 64, 71 ], [ 71, 72 ], [ 72, 73 ], [ 8, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 6, 80 ], [ 80, 81 ], [ 0, 82 ], [ 82, 83 ], [ 82, 84 ] ]
[ "import java.io.*;\n\npublic class Main{\n\n public static void main(String[]args)throws IOException{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n String keyword = br.readLine();\n keyword = keyword.toLowerCase();\n int count = 0;\n \n while(!(str = br.readLine()).equals(\"END_OF_TEXT\")){\n str = str.toLowerCase();\n String[] word = str.split(\" \");\n\n for(int i=0; i<word.length; i++){\n if(word[i].equals(keyword)){\n count++;\n }\n } \n }\n System.out.println(count);\n }\n}", "import java.io.*;", "io.*", "java", "public class Main{\n\n public static void main(String[]args)throws IOException{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n String keyword = br.readLine();\n keyword = keyword.toLowerCase();\n int count = 0;\n \n while(!(str = br.readLine()).equals(\"END_OF_TEXT\")){\n str = str.toLowerCase();\n String[] word = str.split(\" \");\n\n for(int i=0; i<word.length; i++){\n if(word[i].equals(keyword)){\n count++;\n }\n } \n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[]args)throws IOException{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n String keyword = br.readLine();\n keyword = keyword.toLowerCase();\n int count = 0;\n \n while(!(str = br.readLine()).equals(\"END_OF_TEXT\")){\n str = str.toLowerCase();\n String[] word = str.split(\" \");\n\n for(int i=0; i<word.length; i++){\n if(word[i].equals(keyword)){\n count++;\n }\n } \n }\n System.out.println(count);\n }", "main", "{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n String keyword = br.readLine();\n keyword = keyword.toLowerCase();\n int count = 0;\n \n while(!(str = br.readLine()).equals(\"END_OF_TEXT\")){\n str = str.toLowerCase();\n String[] word = str.split(\" \");\n\n for(int i=0; i<word.length; i++){\n if(word[i].equals(keyword)){\n count++;\n }\n } \n }\n System.out.println(count);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str;", "str", "String keyword = br.readLine();", "keyword", "br.readLine()", "br.readLine", "br", "keyword = keyword.toLowerCase()", "keyword", "keyword.toLowerCase()", "keyword.toLowerCase", "keyword", "int count = 0;", "count", "0", "while(!(str = br.readLine()).equals(\"END_OF_TEXT\")){\n str = str.toLowerCase();\n String[] word = str.split(\" \");\n\n for(int i=0; i<word.length; i++){\n if(word[i].equals(keyword)){\n count++;\n }\n } \n }", "!(str = br.readLine()).equals(\"END_OF_TEXT\")", "(str = br.readLine()).equals(\"END_OF_TEXT\")", "(str = br.readLine()).equals", "(str = br.readLine())", "str", "br.readLine()", "br.readLine", "br", "\"END_OF_TEXT\"", "{\n str = str.toLowerCase();\n String[] word = str.split(\" \");\n\n for(int i=0; i<word.length; i++){\n if(word[i].equals(keyword)){\n count++;\n }\n } \n }", "str = str.toLowerCase()", "str", "str.toLowerCase()", "str.toLowerCase", "str", "String[] word = str.split(\" \");", "word", "str.split(\" \")", "str.split", "str", "\" \"", "for(int i=0; i<word.length; i++){\n if(word[i].equals(keyword)){\n count++;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<word.length", "i", "word.length", "word", "word.length", "i++", "i++", "i", "{\n if(word[i].equals(keyword)){\n count++;\n }\n }", "{\n if(word[i].equals(keyword)){\n count++;\n }\n }", "if(word[i].equals(keyword)){\n count++;\n }", "word[i].equals(keyword)", "word[i].equals", "word[i]", "word", "i", "keyword", "{\n count++;\n }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[]args", "args", "public class Main{\n\n public static void main(String[]args)throws IOException{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n String keyword = br.readLine();\n keyword = keyword.toLowerCase();\n int count = 0;\n \n while(!(str = br.readLine()).equals(\"END_OF_TEXT\")){\n str = str.toLowerCase();\n String[] word = str.split(\" \");\n\n for(int i=0; i<word.length; i++){\n if(word[i].equals(keyword)){\n count++;\n }\n } \n }\n System.out.println(count);\n }\n}", "public class Main{\n\n public static void main(String[]args)throws IOException{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n String keyword = br.readLine();\n keyword = keyword.toLowerCase();\n int count = 0;\n \n while(!(str = br.readLine()).equals(\"END_OF_TEXT\")){\n str = str.toLowerCase();\n String[] word = str.split(\" \");\n\n for(int i=0; i<word.length; i++){\n if(word[i].equals(keyword)){\n count++;\n }\n } \n }\n System.out.println(count);\n }\n}", "Main" ]
import java.io.*; public class Main{ public static void main(String[]args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str; String keyword = br.readLine(); keyword = keyword.toLowerCase(); int count = 0; while(!(str = br.readLine()).equals("END_OF_TEXT")){ str = str.toLowerCase(); String[] word = str.split(" "); for(int i=0; i<word.length; i++){ if(word[i].equals(keyword)){ count++; } } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 53, 5 ], [ 53, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 22, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 8, 47 ], [ 47, 48 ], [ 48, 49 ], [ 6, 50 ], [ 50, 51 ], [ 0, 52 ], [ 52, 53 ], [ 52, 54 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W=sc.next();\n int sum=0;\n while(true){\n String H=sc.next();\n if(H.equals(\"END_OF_TEXT\"))break;\n if(H.equalsIgnoreCase(W))sum++;\n }\n System.out.println(sum);\n sc.close();\n } \n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W=sc.next();\n int sum=0;\n while(true){\n String H=sc.next();\n if(H.equals(\"END_OF_TEXT\"))break;\n if(H.equalsIgnoreCase(W))sum++;\n }\n System.out.println(sum);\n sc.close();\n } \n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W=sc.next();\n int sum=0;\n while(true){\n String H=sc.next();\n if(H.equals(\"END_OF_TEXT\"))break;\n if(H.equalsIgnoreCase(W))sum++;\n }\n System.out.println(sum);\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String W=sc.next();\n int sum=0;\n while(true){\n String H=sc.next();\n if(H.equals(\"END_OF_TEXT\"))break;\n if(H.equalsIgnoreCase(W))sum++;\n }\n System.out.println(sum);\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String W=sc.next();", "W", "sc.next()", "sc.next", "sc", "int sum=0;", "sum", "0", "while(true){\n String H=sc.next();\n if(H.equals(\"END_OF_TEXT\"))break;\n if(H.equalsIgnoreCase(W))sum++;\n }", "true", "{\n String H=sc.next();\n if(H.equals(\"END_OF_TEXT\"))break;\n if(H.equalsIgnoreCase(W))sum++;\n }", "String H=sc.next();", "H", "sc.next()", "sc.next", "sc", "if(H.equals(\"END_OF_TEXT\"))break;", "H.equals(\"END_OF_TEXT\")", "H.equals", "H", "\"END_OF_TEXT\"", "break;", "if(H.equalsIgnoreCase(W))sum++;", "H.equalsIgnoreCase(W)", "H.equalsIgnoreCase", "H", "W", "sum++", "sum", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W=sc.next();\n int sum=0;\n while(true){\n String H=sc.next();\n if(H.equals(\"END_OF_TEXT\"))break;\n if(H.equalsIgnoreCase(W))sum++;\n }\n System.out.println(sum);\n sc.close();\n } \n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W=sc.next();\n int sum=0;\n while(true){\n String H=sc.next();\n if(H.equals(\"END_OF_TEXT\"))break;\n if(H.equalsIgnoreCase(W))sum++;\n }\n System.out.println(sum);\n sc.close();\n } \n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String W=sc.next(); int sum=0; while(true){ String H=sc.next(); if(H.equals("END_OF_TEXT"))break; if(H.equalsIgnoreCase(W))sum++; } System.out.println(sum); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 54, 5 ], [ 54, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 35, 36 ], [ 30, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 42, 43 ], [ 43, 44 ], [ 8, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 6, 51 ], [ 51, 52 ], [ 0, 53 ], [ 53, 54 ], [ 53, 55 ] ]
[ "import java.util.Scanner; \n\npublic class Main{\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n String w = in.next();\n int a = 0;\n while(in.hasNext()){\n String str = in.next();\n if(str.equals(\"END_OF_TEXT\")){\n break;\n }else if(str.equalsIgnoreCase(w)){\n a++;\n }\n }\n System.out.println(a);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n String w = in.next();\n int a = 0;\n while(in.hasNext()){\n String str = in.next();\n if(str.equals(\"END_OF_TEXT\")){\n break;\n }else if(str.equalsIgnoreCase(w)){\n a++;\n }\n }\n System.out.println(a);\n }\n}", "Main", "public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n String w = in.next();\n int a = 0;\n while(in.hasNext()){\n String str = in.next();\n if(str.equals(\"END_OF_TEXT\")){\n break;\n }else if(str.equalsIgnoreCase(w)){\n a++;\n }\n }\n System.out.println(a);\n }", "main", "{\n Scanner in = new Scanner(System.in);\n String w = in.next();\n int a = 0;\n while(in.hasNext()){\n String str = in.next();\n if(str.equals(\"END_OF_TEXT\")){\n break;\n }else if(str.equalsIgnoreCase(w)){\n a++;\n }\n }\n System.out.println(a);\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "String w = in.next();", "w", "in.next()", "in.next", "in", "int a = 0;", "a", "0", "while(in.hasNext()){\n String str = in.next();\n if(str.equals(\"END_OF_TEXT\")){\n break;\n }else if(str.equalsIgnoreCase(w)){\n a++;\n }\n }", "in.hasNext()", "in.hasNext", "in", "{\n String str = in.next();\n if(str.equals(\"END_OF_TEXT\")){\n break;\n }else if(str.equalsIgnoreCase(w)){\n a++;\n }\n }", "String str = in.next();", "str", "in.next()", "in.next", "in", "if(str.equals(\"END_OF_TEXT\")){\n break;\n }else if(str.equalsIgnoreCase(w)){\n a++;\n }", "str.equals(\"END_OF_TEXT\")", "str.equals", "str", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "if(str.equalsIgnoreCase(w)){\n a++;\n }", "str.equalsIgnoreCase(w)", "str.equalsIgnoreCase", "str", "w", "{\n a++;\n }", "a++", "a", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n String w = in.next();\n int a = 0;\n while(in.hasNext()){\n String str = in.next();\n if(str.equals(\"END_OF_TEXT\")){\n break;\n }else if(str.equalsIgnoreCase(w)){\n a++;\n }\n }\n System.out.println(a);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n String w = in.next();\n int a = 0;\n while(in.hasNext()){\n String str = in.next();\n if(str.equals(\"END_OF_TEXT\")){\n break;\n }else if(str.equalsIgnoreCase(w)){\n a++;\n }\n }\n System.out.println(a);\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); String w = in.next(); int a = 0; while(in.hasNext()){ String str = in.next(); if(str.equals("END_OF_TEXT")){ break; }else if(str.equalsIgnoreCase(w)){ a++; } } System.out.println(a); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 13, 4, 13, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 42, 4, 18, 13, 30, 41, 13, 2, 2, 17, 4, 18, 13, 17, 14, 4, 18, 13, 17, 30, 3, 30, 4, 18, 13, 13, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 125, 8 ], [ 125, 9 ], [ 9, 10 ], [ 9, 11 ], [ 125, 12 ], [ 12, 13 ], [ 12, 14 ], [ 125, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 17, 27 ], [ 27, 28 ], [ 27, 29 ], [ 27, 30 ], [ 17, 31 ], [ 31, 32 ], [ 32, 33 ], [ 15, 34 ], [ 34, 35 ], [ 125, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 42, 52 ], [ 52, 53 ], [ 53, 54 ], [ 42, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 57, 64 ], [ 64, 65 ], [ 65, 66 ], [ 38, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 36, 73 ], [ 73, 74 ], [ 36, 75 ], [ 75, 76 ], [ 125, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 88, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 88, 93 ], [ 84, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 94, 99 ], [ 99, 100 ], [ 94, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 79, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 79, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 79, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 79, 122 ], [ 122, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tstatic ArrayList<String> lisT = new ArrayList<String>();\n\tpublic static void main(String[] args) {\n\n\t\tString W = sc.nextLine();\n\t\tString[] T = inpStr();\n\n\t\tfindingAword(W, T);\n\t\tsc.close();\n\n\t}\n\n\tprivate static void findingAword(String W, String[] T) {\n\t\tint wd = 0;\n\n\t\tfor (int i = 0; i < T.length; i++) {\n\t\t\tif( T[i].equals(W) ) {\n\t\t\t\twd++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(wd);\n\n\t}\n\n\n\n\tprivate static String[] inpStr() {\n\t\twhile (sc.hasNextLine()) {\n\t\t\tString t = \" \" + sc.nextLine() + \" \";\n\n\t\t\tif (t.equals(\" END_OF_TEXT \")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tlisT.add(t);\n\t\t\t}\n\n\t\t}\n\t\tString str = lisT.toString();\n\n\t\tstr = str.toLowerCase();\n\n\n\t\tString[] strs = str.split(\" \");\n\n\t\treturn strs;\n\t}\n\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tstatic ArrayList<String> lisT = new ArrayList<String>();\n\tpublic static void main(String[] args) {\n\n\t\tString W = sc.nextLine();\n\t\tString[] T = inpStr();\n\n\t\tfindingAword(W, T);\n\t\tsc.close();\n\n\t}\n\n\tprivate static void findingAword(String W, String[] T) {\n\t\tint wd = 0;\n\n\t\tfor (int i = 0; i < T.length; i++) {\n\t\t\tif( T[i].equals(W) ) {\n\t\t\t\twd++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(wd);\n\n\t}\n\n\n\n\tprivate static String[] inpStr() {\n\t\twhile (sc.hasNextLine()) {\n\t\t\tString t = \" \" + sc.nextLine() + \" \";\n\n\t\t\tif (t.equals(\" END_OF_TEXT \")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tlisT.add(t);\n\t\t\t}\n\n\t\t}\n\t\tString str = lisT.toString();\n\n\t\tstr = str.toLowerCase();\n\n\n\t\tString[] strs = str.split(\" \");\n\n\t\treturn strs;\n\t}\n\n}", "Main", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "static ArrayList<String> lisT = new ArrayList<String>();", "lisT", "new ArrayList<String>()", "public static void main(String[] args) {\n\n\t\tString W = sc.nextLine();\n\t\tString[] T = inpStr();\n\n\t\tfindingAword(W, T);\n\t\tsc.close();\n\n\t}", "main", "{\n\n\t\tString W = sc.nextLine();\n\t\tString[] T = inpStr();\n\n\t\tfindingAword(W, T);\n\t\tsc.close();\n\n\t}", "String W = sc.nextLine();", "W", "sc.nextLine()", "sc.nextLine", "sc", "String[] T = inpStr();", "T", "inpStr()", "inpStr", "findingAword(W, T)", "findingAword", "W", "T", "sc.close()", "sc.close", "sc", "String[] args", "args", "private static void findingAword(String W, String[] T) {\n\t\tint wd = 0;\n\n\t\tfor (int i = 0; i < T.length; i++) {\n\t\t\tif( T[i].equals(W) ) {\n\t\t\t\twd++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(wd);\n\n\t}", "findingAword", "{\n\t\tint wd = 0;\n\n\t\tfor (int i = 0; i < T.length; i++) {\n\t\t\tif( T[i].equals(W) ) {\n\t\t\t\twd++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(wd);\n\n\t}", "int wd = 0;", "wd", "0", "for (int i = 0; i < T.length; i++) {\n\t\t\tif( T[i].equals(W) ) {\n\t\t\t\twd++;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < T.length", "i", "T.length", "T", "T.length", "i++", "i++", "i", "{\n\t\t\tif( T[i].equals(W) ) {\n\t\t\t\twd++;\n\t\t\t}\n\t\t}", "{\n\t\t\tif( T[i].equals(W) ) {\n\t\t\t\twd++;\n\t\t\t}\n\t\t}", "if( T[i].equals(W) ) {\n\t\t\t\twd++;\n\t\t\t}", "T[i].equals(W)", "T[i].equals", "T[i]", "T", "i", "W", "{\n\t\t\t\twd++;\n\t\t\t}", "wd++", "wd", "System.out.println(wd)", "System.out.println", "System.out", "System", "System.out", "wd", "String W", "W", "String[] T", "T", "private static String[] inpStr() {\n\t\twhile (sc.hasNextLine()) {\n\t\t\tString t = \" \" + sc.nextLine() + \" \";\n\n\t\t\tif (t.equals(\" END_OF_TEXT \")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tlisT.add(t);\n\t\t\t}\n\n\t\t}\n\t\tString str = lisT.toString();\n\n\t\tstr = str.toLowerCase();\n\n\n\t\tString[] strs = str.split(\" \");\n\n\t\treturn strs;\n\t}", "inpStr", "{\n\t\twhile (sc.hasNextLine()) {\n\t\t\tString t = \" \" + sc.nextLine() + \" \";\n\n\t\t\tif (t.equals(\" END_OF_TEXT \")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tlisT.add(t);\n\t\t\t}\n\n\t\t}\n\t\tString str = lisT.toString();\n\n\t\tstr = str.toLowerCase();\n\n\n\t\tString[] strs = str.split(\" \");\n\n\t\treturn strs;\n\t}", "while (sc.hasNextLine()) {\n\t\t\tString t = \" \" + sc.nextLine() + \" \";\n\n\t\t\tif (t.equals(\" END_OF_TEXT \")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tlisT.add(t);\n\t\t\t}\n\n\t\t}", "sc.hasNextLine()", "sc.hasNextLine", "sc", "{\n\t\t\tString t = \" \" + sc.nextLine() + \" \";\n\n\t\t\tif (t.equals(\" END_OF_TEXT \")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tlisT.add(t);\n\t\t\t}\n\n\t\t}", "String t = \" \" + sc.nextLine() + \" \";", "t", "\" \" + sc.nextLine() + \" \"", "\" \" + sc.nextLine() + \" \"", "\" \"", "sc.nextLine()", "sc.nextLine", "sc", "\" \"", "if (t.equals(\" END_OF_TEXT \")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tlisT.add(t);\n\t\t\t}", "t.equals(\" END_OF_TEXT \")", "t.equals", "t", "\" END_OF_TEXT \"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "{\n\t\t\t\tlisT.add(t);\n\t\t\t}", "lisT.add(t)", "lisT.add", "lisT", "t", "String str = lisT.toString();", "str", "lisT.toString()", "lisT.toString", "lisT", "str = str.toLowerCase()", "str", "str.toLowerCase()", "str.toLowerCase", "str", "String[] strs = str.split(\" \");", "strs", "str.split(\" \")", "str.split", "str", "\" \"", "return strs;", "strs", "public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tstatic ArrayList<String> lisT = new ArrayList<String>();\n\tpublic static void main(String[] args) {\n\n\t\tString W = sc.nextLine();\n\t\tString[] T = inpStr();\n\n\t\tfindingAword(W, T);\n\t\tsc.close();\n\n\t}\n\n\tprivate static void findingAword(String W, String[] T) {\n\t\tint wd = 0;\n\n\t\tfor (int i = 0; i < T.length; i++) {\n\t\t\tif( T[i].equals(W) ) {\n\t\t\t\twd++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(wd);\n\n\t}\n\n\n\n\tprivate static String[] inpStr() {\n\t\twhile (sc.hasNextLine()) {\n\t\t\tString t = \" \" + sc.nextLine() + \" \";\n\n\t\t\tif (t.equals(\" END_OF_TEXT \")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tlisT.add(t);\n\t\t\t}\n\n\t\t}\n\t\tString str = lisT.toString();\n\n\t\tstr = str.toLowerCase();\n\n\n\t\tString[] strs = str.split(\" \");\n\n\t\treturn strs;\n\t}\n\n}", "public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tstatic ArrayList<String> lisT = new ArrayList<String>();\n\tpublic static void main(String[] args) {\n\n\t\tString W = sc.nextLine();\n\t\tString[] T = inpStr();\n\n\t\tfindingAword(W, T);\n\t\tsc.close();\n\n\t}\n\n\tprivate static void findingAword(String W, String[] T) {\n\t\tint wd = 0;\n\n\t\tfor (int i = 0; i < T.length; i++) {\n\t\t\tif( T[i].equals(W) ) {\n\t\t\t\twd++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(wd);\n\n\t}\n\n\n\n\tprivate static String[] inpStr() {\n\t\twhile (sc.hasNextLine()) {\n\t\t\tString t = \" \" + sc.nextLine() + \" \";\n\n\t\t\tif (t.equals(\" END_OF_TEXT \")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tlisT.add(t);\n\t\t\t}\n\n\t\t}\n\t\tString str = lisT.toString();\n\n\t\tstr = str.toLowerCase();\n\n\n\t\tString[] strs = str.split(\" \");\n\n\t\treturn strs;\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); static ArrayList<String> lisT = new ArrayList<String>(); public static void main(String[] args) { String W = sc.nextLine(); String[] T = inpStr(); findingAword(W, T); sc.close(); } private static void findingAword(String W, String[] T) { int wd = 0; for (int i = 0; i < T.length; i++) { if( T[i].equals(W) ) { wd++; } } System.out.println(wd); } private static String[] inpStr() { while (sc.hasNextLine()) { String t = " " + sc.nextLine() + " "; if (t.equals(" END_OF_TEXT ")) { break; } else { lisT.add(t); } } String str = lisT.toString(); str = str.toLowerCase(); String[] strs = str.split(" "); return strs; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 41, 13, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 4, 18, 13, 14, 2, 18, 13, 13, 18, 13, 13, 30, 9, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 17, 3, 14, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 104, 5 ], [ 104, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 8, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 33, 40 ], [ 31, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 57, 58 ], [ 41, 59 ], [ 59, 60 ], [ 59, 61 ], [ 41, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 62, 72 ], [ 72, 73 ], [ 73, 74 ], [ 62, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 77, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 41, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 8, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 6, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next().toLowerCase();\n\t\tchar c[] = s.toCharArray();\n\t\tString tmp;\n\t\tint cnt=0;\n\t\tboolean bool;\n\t\twhile(!(tmp=sc.next()).equals(\"END_OF_TEXT\")){\n\t\t\tchar line[]=tmp.toLowerCase().toCharArray();\n\t\t\tif(line.length!=c.length){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbool = true;\n\t\t\tfor(int i=0;i<s.length();i++){\n\t\t\t\tif(c[i]!=line[i]){\n\t\t\t\t\tbool=false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(bool){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next().toLowerCase();\n\t\tchar c[] = s.toCharArray();\n\t\tString tmp;\n\t\tint cnt=0;\n\t\tboolean bool;\n\t\twhile(!(tmp=sc.next()).equals(\"END_OF_TEXT\")){\n\t\t\tchar line[]=tmp.toLowerCase().toCharArray();\n\t\t\tif(line.length!=c.length){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbool = true;\n\t\t\tfor(int i=0;i<s.length();i++){\n\t\t\t\tif(c[i]!=line[i]){\n\t\t\t\t\tbool=false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(bool){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next().toLowerCase();\n\t\tchar c[] = s.toCharArray();\n\t\tString tmp;\n\t\tint cnt=0;\n\t\tboolean bool;\n\t\twhile(!(tmp=sc.next()).equals(\"END_OF_TEXT\")){\n\t\t\tchar line[]=tmp.toLowerCase().toCharArray();\n\t\t\tif(line.length!=c.length){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbool = true;\n\t\t\tfor(int i=0;i<s.length();i++){\n\t\t\t\tif(c[i]!=line[i]){\n\t\t\t\t\tbool=false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(bool){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next().toLowerCase();\n\t\tchar c[] = s.toCharArray();\n\t\tString tmp;\n\t\tint cnt=0;\n\t\tboolean bool;\n\t\twhile(!(tmp=sc.next()).equals(\"END_OF_TEXT\")){\n\t\t\tchar line[]=tmp.toLowerCase().toCharArray();\n\t\t\tif(line.length!=c.length){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbool = true;\n\t\t\tfor(int i=0;i<s.length();i++){\n\t\t\t\tif(c[i]!=line[i]){\n\t\t\t\t\tbool=false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(bool){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next().toLowerCase();", "s", "sc.next().toLowerCase()", "sc.next().toLowerCase", "sc.next()", "sc.next", "sc", "char c[] = s.toCharArray();", "c", "s.toCharArray()", "s.toCharArray", "s", "String tmp;", "tmp", "int cnt=0;", "cnt", "0", "boolean bool;", "bool", "while(!(tmp=sc.next()).equals(\"END_OF_TEXT\")){\n\t\t\tchar line[]=tmp.toLowerCase().toCharArray();\n\t\t\tif(line.length!=c.length){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbool = true;\n\t\t\tfor(int i=0;i<s.length();i++){\n\t\t\t\tif(c[i]!=line[i]){\n\t\t\t\t\tbool=false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(bool){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}", "!(tmp=sc.next()).equals(\"END_OF_TEXT\")", "(tmp=sc.next()).equals(\"END_OF_TEXT\")", "(tmp=sc.next()).equals", "(tmp=sc.next())", "tmp", "sc.next()", "sc.next", "sc", "\"END_OF_TEXT\"", "{\n\t\t\tchar line[]=tmp.toLowerCase().toCharArray();\n\t\t\tif(line.length!=c.length){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbool = true;\n\t\t\tfor(int i=0;i<s.length();i++){\n\t\t\t\tif(c[i]!=line[i]){\n\t\t\t\t\tbool=false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(bool){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}", "char line[]=tmp.toLowerCase().toCharArray();", "line", "tmp.toLowerCase().toCharArray()", "tmp.toLowerCase().toCharArray", "tmp.toLowerCase()", "tmp.toLowerCase", "tmp", "if(line.length!=c.length){\n\t\t\t\tcontinue;\n\t\t\t}", "line.length!=c.length", "line.length", "line", "line.length", "c.length", "c", "c.length", "{\n\t\t\t\tcontinue;\n\t\t\t}", "continue;", "bool = true", "bool", "true", "for(int i=0;i<s.length();i++){\n\t\t\t\tif(c[i]!=line[i]){\n\t\t\t\t\tbool=false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n\t\t\t\tif(c[i]!=line[i]){\n\t\t\t\t\tbool=false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(c[i]!=line[i]){\n\t\t\t\t\tbool=false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "if(c[i]!=line[i]){\n\t\t\t\t\tbool=false;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "c[i]!=line[i]", "c[i]", "c", "i", "line[i]", "line", "i", "{\n\t\t\t\t\tbool=false;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "bool=false", "bool", "false", "break;", "if(bool){\n\t\t\t\tcnt++;\n\t\t\t}", "bool", "{\n\t\t\t\tcnt++;\n\t\t\t}", "cnt++", "cnt", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next().toLowerCase();\n\t\tchar c[] = s.toCharArray();\n\t\tString tmp;\n\t\tint cnt=0;\n\t\tboolean bool;\n\t\twhile(!(tmp=sc.next()).equals(\"END_OF_TEXT\")){\n\t\t\tchar line[]=tmp.toLowerCase().toCharArray();\n\t\t\tif(line.length!=c.length){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbool = true;\n\t\t\tfor(int i=0;i<s.length();i++){\n\t\t\t\tif(c[i]!=line[i]){\n\t\t\t\t\tbool=false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(bool){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next().toLowerCase();\n\t\tchar c[] = s.toCharArray();\n\t\tString tmp;\n\t\tint cnt=0;\n\t\tboolean bool;\n\t\twhile(!(tmp=sc.next()).equals(\"END_OF_TEXT\")){\n\t\t\tchar line[]=tmp.toLowerCase().toCharArray();\n\t\t\tif(line.length!=c.length){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbool = true;\n\t\t\tfor(int i=0;i<s.length();i++){\n\t\t\t\tif(c[i]!=line[i]){\n\t\t\t\t\tbool=false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(bool){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next().toLowerCase(); char c[] = s.toCharArray(); String tmp; int cnt=0; boolean bool; while(!(tmp=sc.next()).equals("END_OF_TEXT")){ char line[]=tmp.toLowerCase().toCharArray(); if(line.length!=c.length){ continue; } bool = true; for(int i=0;i<s.length();i++){ if(c[i]!=line[i]){ bool=false; break; } } if(bool){ cnt++; } } System.out.println(cnt); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 17, 42, 40, 13, 30, 41, 13, 4, 18, 13, 17, 17, 28, 13, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 0, 13, 2, 13, 17, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 89, 11 ], [ 89, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 14, 37 ], [ 37, 38 ], [ 37, 39 ], [ 14, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 46, 50 ], [ 43, 51 ], [ 51, 52 ], [ 51, 53 ], [ 51, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 57, 62 ], [ 56, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 43, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 43, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 14, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 12, 86 ], [ 86, 87 ], [ 0, 88 ], [ 88, 89 ], [ 88, 90 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tString w = str;\n\t\tstr = br.readLine();\n\t\tBoolean isEnd = str.equals(\"END_OF_TEXT\");\n\t\tint count = 0;\n\t\twhile (!isEnd) {\n\t\t\tString[] words = str.split(\" \", 0);\n\t\t\tfor (String word : words) {\n\t\t\t\tif (word.equalsIgnoreCase(w) == true) {\n\t\t\t\t\tcount = count + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = br.readLine();\n\t\t\tisEnd = str.equals(\"END_OF_TEXT\");\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tString w = str;\n\t\tstr = br.readLine();\n\t\tBoolean isEnd = str.equals(\"END_OF_TEXT\");\n\t\tint count = 0;\n\t\twhile (!isEnd) {\n\t\t\tString[] words = str.split(\" \", 0);\n\t\t\tfor (String word : words) {\n\t\t\t\tif (word.equalsIgnoreCase(w) == true) {\n\t\t\t\t\tcount = count + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = br.readLine();\n\t\t\tisEnd = str.equals(\"END_OF_TEXT\");\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tString w = str;\n\t\tstr = br.readLine();\n\t\tBoolean isEnd = str.equals(\"END_OF_TEXT\");\n\t\tint count = 0;\n\t\twhile (!isEnd) {\n\t\t\tString[] words = str.split(\" \", 0);\n\t\t\tfor (String word : words) {\n\t\t\t\tif (word.equalsIgnoreCase(w) == true) {\n\t\t\t\t\tcount = count + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = br.readLine();\n\t\t\tisEnd = str.equals(\"END_OF_TEXT\");\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tString w = str;\n\t\tstr = br.readLine();\n\t\tBoolean isEnd = str.equals(\"END_OF_TEXT\");\n\t\tint count = 0;\n\t\twhile (!isEnd) {\n\t\t\tString[] words = str.split(\" \", 0);\n\t\t\tfor (String word : words) {\n\t\t\t\tif (word.equalsIgnoreCase(w) == true) {\n\t\t\t\t\tcount = count + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = br.readLine();\n\t\t\tisEnd = str.equals(\"END_OF_TEXT\");\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "String w = str;", "w", "str", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "Boolean isEnd = str.equals(\"END_OF_TEXT\");", "isEnd", "str.equals(\"END_OF_TEXT\")", "str.equals", "str", "\"END_OF_TEXT\"", "int count = 0;", "count", "0", "while (!isEnd) {\n\t\t\tString[] words = str.split(\" \", 0);\n\t\t\tfor (String word : words) {\n\t\t\t\tif (word.equalsIgnoreCase(w) == true) {\n\t\t\t\t\tcount = count + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = br.readLine();\n\t\t\tisEnd = str.equals(\"END_OF_TEXT\");\n\t\t}", "!isEnd", "isEnd", "{\n\t\t\tString[] words = str.split(\" \", 0);\n\t\t\tfor (String word : words) {\n\t\t\t\tif (word.equalsIgnoreCase(w) == true) {\n\t\t\t\t\tcount = count + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = br.readLine();\n\t\t\tisEnd = str.equals(\"END_OF_TEXT\");\n\t\t}", "String[] words = str.split(\" \", 0);", "words", "str.split(\" \", 0)", "str.split", "str", "\" \"", "0", "for (String word : words) {\n\t\t\t\tif (word.equalsIgnoreCase(w) == true) {\n\t\t\t\t\tcount = count + 1;\n\t\t\t\t}\n\t\t\t}", "String word", "words", "{\n\t\t\t\tif (word.equalsIgnoreCase(w) == true) {\n\t\t\t\t\tcount = count + 1;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif (word.equalsIgnoreCase(w) == true) {\n\t\t\t\t\tcount = count + 1;\n\t\t\t\t}\n\t\t\t}", "if (word.equalsIgnoreCase(w) == true) {\n\t\t\t\t\tcount = count + 1;\n\t\t\t\t}", "word.equalsIgnoreCase(w) == true", "word.equalsIgnoreCase(w)", "word.equalsIgnoreCase", "word", "w", "true", "{\n\t\t\t\t\tcount = count + 1;\n\t\t\t\t}", "count = count + 1", "count", "count + 1", "count", "1", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "isEnd = str.equals(\"END_OF_TEXT\")", "isEnd", "str.equals(\"END_OF_TEXT\")", "str.equals", "str", "\"END_OF_TEXT\"", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tString w = str;\n\t\tstr = br.readLine();\n\t\tBoolean isEnd = str.equals(\"END_OF_TEXT\");\n\t\tint count = 0;\n\t\twhile (!isEnd) {\n\t\t\tString[] words = str.split(\" \", 0);\n\t\t\tfor (String word : words) {\n\t\t\t\tif (word.equalsIgnoreCase(w) == true) {\n\t\t\t\t\tcount = count + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = br.readLine();\n\t\t\tisEnd = str.equals(\"END_OF_TEXT\");\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tString w = str;\n\t\tstr = br.readLine();\n\t\tBoolean isEnd = str.equals(\"END_OF_TEXT\");\n\t\tint count = 0;\n\t\twhile (!isEnd) {\n\t\t\tString[] words = str.split(\" \", 0);\n\t\t\tfor (String word : words) {\n\t\t\t\tif (word.equalsIgnoreCase(w) == true) {\n\t\t\t\t\tcount = count + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = br.readLine();\n\t\t\tisEnd = str.equals(\"END_OF_TEXT\");\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); String w = str; str = br.readLine(); Boolean isEnd = str.equals("END_OF_TEXT"); int count = 0; while (!isEnd) { String[] words = str.split(" ", 0); for (String word : words) { if (word.equalsIgnoreCase(w) == true) { count = count + 1; } } str = br.readLine(); isEnd = str.equals("END_OF_TEXT"); } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 20, 41, 13, 17, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 4, 18, 13, 4, 18, 13, 40, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 116, 8 ], [ 116, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 11, 31 ], [ 31, 32 ], [ 31, 33 ], [ 11, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 36, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 47, 48 ], [ 36, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 53, 54 ], [ 36, 55 ], [ 55, 56 ], [ 11, 57 ], [ 57, 58 ], [ 57, 59 ], [ 11, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 75, 81 ], [ 72, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 82, 92 ], [ 92, 93 ], [ 93, 94 ], [ 82, 95 ], [ 96, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 97, 104 ], [ 104, 105 ], [ 105, 106 ], [ 11, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 9, 113 ], [ 113, 114 ], [ 0, 115 ], [ 115, 116 ], [ 115, 117 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\t\tW = W.toLowerCase();\n\n\t\tArrayList<String> T = new ArrayList<String>();\n\t\tString kari = \"\";\n\t\tint ts = 0;\n\n\t\twhile (true) {\n\t\t\tkari = sc.nextLine();\n\t\t\tif (kari.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT.add(kari.toLowerCase());\n\t\t\tts++;\n\t\t}\n\n\t\tint answer = 0;\n\n\t\tfor (int i = 0; i < ts; i++) {\n\t\t\t\n\t\t\tString[] str = T.get(i).split(\" \");\n\t\t\tfor (int j = 0; j < str.length; j++) {\n\t\t\t\tif (str[j].equals(W)) {\n\t\t\t\t\tanswer++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t}\n\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\t\tW = W.toLowerCase();\n\n\t\tArrayList<String> T = new ArrayList<String>();\n\t\tString kari = \"\";\n\t\tint ts = 0;\n\n\t\twhile (true) {\n\t\t\tkari = sc.nextLine();\n\t\t\tif (kari.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT.add(kari.toLowerCase());\n\t\t\tts++;\n\t\t}\n\n\t\tint answer = 0;\n\n\t\tfor (int i = 0; i < ts; i++) {\n\t\t\t\n\t\t\tString[] str = T.get(i).split(\" \");\n\t\t\tfor (int j = 0; j < str.length; j++) {\n\t\t\t\tif (str[j].equals(W)) {\n\t\t\t\t\tanswer++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\t\tW = W.toLowerCase();\n\n\t\tArrayList<String> T = new ArrayList<String>();\n\t\tString kari = \"\";\n\t\tint ts = 0;\n\n\t\twhile (true) {\n\t\t\tkari = sc.nextLine();\n\t\t\tif (kari.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT.add(kari.toLowerCase());\n\t\t\tts++;\n\t\t}\n\n\t\tint answer = 0;\n\n\t\tfor (int i = 0; i < ts; i++) {\n\t\t\t\n\t\t\tString[] str = T.get(i).split(\" \");\n\t\t\tfor (int j = 0; j < str.length; j++) {\n\t\t\t\tif (str[j].equals(W)) {\n\t\t\t\t\tanswer++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\t\tW = W.toLowerCase();\n\n\t\tArrayList<String> T = new ArrayList<String>();\n\t\tString kari = \"\";\n\t\tint ts = 0;\n\n\t\twhile (true) {\n\t\t\tkari = sc.nextLine();\n\t\t\tif (kari.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT.add(kari.toLowerCase());\n\t\t\tts++;\n\t\t}\n\n\t\tint answer = 0;\n\n\t\tfor (int i = 0; i < ts; i++) {\n\t\t\t\n\t\t\tString[] str = T.get(i).split(\" \");\n\t\t\tfor (int j = 0; j < str.length; j++) {\n\t\t\t\tif (str[j].equals(W)) {\n\t\t\t\t\tanswer++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String W = sc.nextLine();", "W", "sc.nextLine()", "sc.nextLine", "sc", "W = W.toLowerCase()", "W", "W.toLowerCase()", "W.toLowerCase", "W", "ArrayList<String> T = new ArrayList<String>();", "T", "new ArrayList<String>()", "String kari = \"\";", "kari", "\"\"", "int ts = 0;", "ts", "0", "while (true) {\n\t\t\tkari = sc.nextLine();\n\t\t\tif (kari.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT.add(kari.toLowerCase());\n\t\t\tts++;\n\t\t}", "true", "{\n\t\t\tkari = sc.nextLine();\n\t\t\tif (kari.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT.add(kari.toLowerCase());\n\t\t\tts++;\n\t\t}", "kari = sc.nextLine()", "kari", "sc.nextLine()", "sc.nextLine", "sc", "if (kari.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}", "kari.equals(\"END_OF_TEXT\")", "kari.equals", "kari", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "T.add(kari.toLowerCase())", "T.add", "T", "kari.toLowerCase()", "kari.toLowerCase", "kari", "ts++", "ts", "int answer = 0;", "answer", "0", "for (int i = 0; i < ts; i++) {\n\t\t\t\n\t\t\tString[] str = T.get(i).split(\" \");\n\t\t\tfor (int j = 0; j < str.length; j++) {\n\t\t\t\tif (str[j].equals(W)) {\n\t\t\t\t\tanswer++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < ts", "i", "ts", "i++", "i++", "i", "{\n\t\t\t\n\t\t\tString[] str = T.get(i).split(\" \");\n\t\t\tfor (int j = 0; j < str.length; j++) {\n\t\t\t\tif (str[j].equals(W)) {\n\t\t\t\t\tanswer++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "{\n\t\t\t\n\t\t\tString[] str = T.get(i).split(\" \");\n\t\t\tfor (int j = 0; j < str.length; j++) {\n\t\t\t\tif (str[j].equals(W)) {\n\t\t\t\t\tanswer++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "String[] str = T.get(i).split(\" \");", "str", "T.get(i).split(\" \")", "T.get(i).split", "T.get(i)", "T.get", "T", "i", "\" \"", "for (int j = 0; j < str.length; j++) {\n\t\t\t\tif (str[j].equals(W)) {\n\t\t\t\t\tanswer++;\n\t\t\t\t}\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < str.length", "j", "str.length", "str", "str.length", "j++", "j++", "j", "{\n\t\t\t\tif (str[j].equals(W)) {\n\t\t\t\t\tanswer++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif (str[j].equals(W)) {\n\t\t\t\t\tanswer++;\n\t\t\t\t}\n\t\t\t}", "if (str[j].equals(W)) {\n\t\t\t\t\tanswer++;\n\t\t\t\t}", "str[j].equals(W)", "str[j].equals", "str[j]", "str", "j", "W", "{\n\t\t\t\t\tanswer++;\n\t\t\t\t}", "answer++", "answer", "System.out.println(answer)", "System.out.println", "System.out", "System", "System.out", "answer", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\t\tW = W.toLowerCase();\n\n\t\tArrayList<String> T = new ArrayList<String>();\n\t\tString kari = \"\";\n\t\tint ts = 0;\n\n\t\twhile (true) {\n\t\t\tkari = sc.nextLine();\n\t\t\tif (kari.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT.add(kari.toLowerCase());\n\t\t\tts++;\n\t\t}\n\n\t\tint answer = 0;\n\n\t\tfor (int i = 0; i < ts; i++) {\n\t\t\t\n\t\t\tString[] str = T.get(i).split(\" \");\n\t\t\tfor (int j = 0; j < str.length; j++) {\n\t\t\t\tif (str[j].equals(W)) {\n\t\t\t\t\tanswer++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\t\tW = W.toLowerCase();\n\n\t\tArrayList<String> T = new ArrayList<String>();\n\t\tString kari = \"\";\n\t\tint ts = 0;\n\n\t\twhile (true) {\n\t\t\tkari = sc.nextLine();\n\t\t\tif (kari.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT.add(kari.toLowerCase());\n\t\t\tts++;\n\t\t}\n\n\t\tint answer = 0;\n\n\t\tfor (int i = 0; i < ts; i++) {\n\t\t\t\n\t\t\tString[] str = T.get(i).split(\" \");\n\t\t\tfor (int j = 0; j < str.length; j++) {\n\t\t\t\tif (str[j].equals(W)) {\n\t\t\t\t\tanswer++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); String W = sc.nextLine(); W = W.toLowerCase(); ArrayList<String> T = new ArrayList<String>(); String kari = ""; int ts = 0; while (true) { kari = sc.nextLine(); if (kari.equals("END_OF_TEXT")) { break; } T.add(kari.toLowerCase()); ts++; } int answer = 0; for (int i = 0; i < ts; i++) { String[] str = T.get(i).split(" "); for (int j = 0; j < str.length; j++) { if (str[j].equals(W)) { answer++; } } } System.out.println(answer); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 2, 2, 18, 13, 13, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 17, 41, 13, 18, 13, 13, 14, 2, 13, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 13, 0, 13, 18, 13, 2, 13, 13, 14, 2, 13, 13, 30, 40, 13, 14, 2, 13, 2, 18, 13, 13, 17, 30, 14, 2, 2, 13, 17, 2, 2, 2, 13, 13, 17, 18, 13, 13, 30, 14, 2, 18, 13, 2, 2, 13, 13, 17, 17, 30, 40, 13, 14, 2, 2, 17, 13, 2, 2, 2, 13, 13, 17, 18, 13, 13, 30, 14, 2, 18, 13, 2, 13, 17, 17, 30, 40, 13, 14, 2, 2, 17, 13, 2, 2, 2, 13, 13, 17, 18, 13, 13, 30, 14, 2, 18, 13, 2, 13, 17, 17, 30, 14, 2, 18, 13, 2, 2, 13, 13, 17, 17, 30, 40, 13, 14, 2, 2, 13, 17, 2, 2, 2, 13, 13, 17, 18, 13, 13, 30, 40, 13, 14, 2, 18, 13, 13, 17, 30, 14, 2, 13, 13, 30, 14, 2, 2, 13, 17, 2, 2, 13, 17, 18, 13, 13, 30, 14, 2, 18, 13, 2, 13, 17, 17, 30, 40, 13, 14, 2, 2, 17, 13, 2, 2, 13, 17, 18, 13, 13, 30, 14, 2, 18, 13, 2, 13, 17, 17, 30, 40, 13, 14, 2, 2, 17, 13, 2, 2, 13, 17, 18, 13, 13, 30, 14, 2, 18, 13, 2, 13, 17, 17, 30, 14, 2, 18, 13, 2, 13, 17, 17, 30, 40, 13, 14, 2, 2, 13, 17, 2, 2, 13, 17, 18, 13, 13, 30, 40, 13, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 385, 11 ], [ 385, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 18, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 28, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 28, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 28, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 55, 60 ], [ 60, 61 ], [ 49, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 49, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 49, 72 ], [ 72, 73 ], [ 72, 74 ], [ 49, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 77, 85 ], [ 49, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 86, 94 ], [ 94, 95 ], [ 95, 96 ], [ 86, 97 ], [ 98, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 98, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 98, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 114, 124 ], [ 124, 125 ], [ 125, 126 ], [ 114, 127 ], [ 128, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 131, 133 ], [ 128, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 138, 140 ], [ 128, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 148, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 158, 162 ], [ 162, 163 ], [ 164, 164 ], [ 164, 165 ], [ 164, 166 ], [ 164, 167 ], [ 162, 168 ], [ 168, 169 ], [ 168, 170 ], [ 157, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 177, 177 ], [ 177, 178 ], [ 177, 179 ], [ 177, 180 ], [ 173, 181 ], [ 172, 182 ], [ 182, 183 ], [ 183, 184 ], [ 157, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 186, 190 ], [ 190, 191 ], [ 192, 192 ], [ 192, 193 ], [ 192, 194 ], [ 192, 195 ], [ 190, 196 ], [ 196, 197 ], [ 196, 198 ], [ 185, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 204, 205 ], [ 204, 206 ], [ 201, 207 ], [ 200, 208 ], [ 208, 209 ], [ 209, 210 ], [ 185, 211 ], [ 211, 212 ], [ 212, 213 ], [ 213, 214 ], [ 213, 215 ], [ 212, 216 ], [ 216, 217 ], [ 218, 218 ], [ 218, 219 ], [ 218, 220 ], [ 218, 221 ], [ 216, 222 ], [ 222, 223 ], [ 222, 224 ], [ 211, 225 ], [ 225, 226 ], [ 226, 227 ], [ 227, 228 ], [ 228, 229 ], [ 228, 230 ], [ 230, 231 ], [ 230, 232 ], [ 227, 233 ], [ 226, 234 ], [ 234, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 237, 239 ], [ 240, 240 ], [ 240, 241 ], [ 240, 242 ], [ 240, 243 ], [ 236, 244 ], [ 235, 245 ], [ 245, 246 ], [ 246, 247 ], [ 211, 248 ], [ 248, 249 ], [ 249, 250 ], [ 250, 251 ], [ 250, 252 ], [ 249, 253 ], [ 253, 254 ], [ 255, 255 ], [ 255, 256 ], [ 255, 257 ], [ 255, 258 ], [ 253, 259 ], [ 259, 260 ], [ 259, 261 ], [ 248, 262 ], [ 262, 263 ], [ 263, 264 ], [ 98, 265 ], [ 265, 266 ], [ 266, 267 ], [ 267, 268 ], [ 267, 269 ], [ 266, 270 ], [ 265, 271 ], [ 271, 272 ], [ 272, 273 ], [ 273, 274 ], [ 273, 275 ], [ 272, 276 ], [ 276, 277 ], [ 277, 278 ], [ 278, 279 ], [ 279, 280 ], [ 279, 281 ], [ 278, 282 ], [ 282, 283 ], [ 283, 284 ], [ 283, 285 ], [ 282, 286 ], [ 286, 287 ], [ 286, 288 ], [ 277, 289 ], [ 289, 290 ], [ 290, 291 ], [ 291, 292 ], [ 292, 293 ], [ 292, 294 ], [ 294, 295 ], [ 294, 296 ], [ 291, 297 ], [ 290, 298 ], [ 298, 299 ], [ 299, 300 ], [ 277, 301 ], [ 301, 302 ], [ 302, 303 ], [ 303, 304 ], [ 303, 305 ], [ 302, 306 ], [ 306, 307 ], [ 307, 308 ], [ 307, 309 ], [ 306, 310 ], [ 310, 311 ], [ 310, 312 ], [ 301, 313 ], [ 313, 314 ], [ 314, 315 ], [ 315, 316 ], [ 316, 317 ], [ 316, 318 ], [ 318, 319 ], [ 318, 320 ], [ 315, 321 ], [ 314, 322 ], [ 322, 323 ], [ 323, 324 ], [ 301, 325 ], [ 325, 326 ], [ 326, 327 ], [ 327, 328 ], [ 327, 329 ], [ 326, 330 ], [ 330, 331 ], [ 331, 332 ], [ 331, 333 ], [ 330, 334 ], [ 334, 335 ], [ 334, 336 ], [ 325, 337 ], [ 337, 338 ], [ 338, 339 ], [ 339, 340 ], [ 340, 341 ], [ 340, 342 ], [ 342, 343 ], [ 342, 344 ], [ 339, 345 ], [ 338, 346 ], [ 346, 347 ], [ 347, 348 ], [ 348, 349 ], [ 349, 350 ], [ 349, 351 ], [ 351, 352 ], [ 351, 353 ], [ 348, 354 ], [ 347, 355 ], [ 355, 356 ], [ 356, 357 ], [ 325, 358 ], [ 358, 359 ], [ 359, 360 ], [ 360, 361 ], [ 360, 362 ], [ 359, 363 ], [ 363, 364 ], [ 364, 365 ], [ 364, 366 ], [ 363, 367 ], [ 367, 368 ], [ 367, 369 ], [ 358, 370 ], [ 370, 371 ], [ 371, 372 ], [ 98, 373 ], [ 373, 374 ], [ 373, 375 ], [ 28, 376 ], [ 376, 377 ], [ 377, 378 ], [ 378, 379 ], [ 378, 380 ], [ 376, 381 ], [ 12, 382 ], [ 382, 383 ], [ 0, 384 ], [ 384, 385 ], [ 384, 386 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n/**\n * Lesson9A 1つの単語 W と文章 T が与えられます。 T の中にある W の数を出力するプログラム 文章 T\n * に含まれるスペースまたは改行で区切られた 文字列を単語 Ti とします。すべての Ti において単語 W\n * と同じになるものを数えて下さい。なお、大文字と小文字は区別しません。\n *\n * @author Internship\n *\n */\npublic class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 答えをカウント\n\t\tint intAnwer = 0;\n\n\t\t// 1行目読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t// 大文字は小文字にしておく\n\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t// char型に分解\n\t\t\tchar[] chaAryLine1 = strLine.toCharArray();\n\n\t\t\t// 2行目以降を読み込む\n\t\t\twhile (true) {\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 終了条件\n\t\t\t\tif (strLine.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 大文字は小文字にしておく\n\t\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLineAll = strLine.toCharArray();\n\n\t\t\t\t// 何文字一緒か\n\t\t\t\tint intCount = 0;\n\n\t\t\t\t// 終了条件\n\t\t\t\tint intlength = chaAryLineAll.length - chaAryLine1.length + 1;\n\n\t\t\t\t//ロジック\n\t\t\t\tfor (int i = 0; i < intlength; i++) {\n\n\t\t\t\t\tchar a = chaAryLine1[0];\n\t\t\t\t\tchar b = chaAryLineAll[i];\n\n\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\tfor (int j = 1; j < chaAryLine1.length; j++) {\n\t\t\t\t\t\t\ta = chaAryLine1[j];\n\t\t\t\t\t\t\tb = chaAryLineAll[i + j];\n\n\t\t\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//1列目が文字1つの時\n\t\t\t\t\tif(chaAryLine1.length == 1) {\n\t\t\t\t\t\tif(a == b) {\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\tif(i == 0 && i + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 初期化\n\t\t\t\t\tintCount = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tSystem.out.println(intAnwer);\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 答えをカウント\n\t\tint intAnwer = 0;\n\n\t\t// 1行目読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t// 大文字は小文字にしておく\n\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t// char型に分解\n\t\t\tchar[] chaAryLine1 = strLine.toCharArray();\n\n\t\t\t// 2行目以降を読み込む\n\t\t\twhile (true) {\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 終了条件\n\t\t\t\tif (strLine.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 大文字は小文字にしておく\n\t\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLineAll = strLine.toCharArray();\n\n\t\t\t\t// 何文字一緒か\n\t\t\t\tint intCount = 0;\n\n\t\t\t\t// 終了条件\n\t\t\t\tint intlength = chaAryLineAll.length - chaAryLine1.length + 1;\n\n\t\t\t\t//ロジック\n\t\t\t\tfor (int i = 0; i < intlength; i++) {\n\n\t\t\t\t\tchar a = chaAryLine1[0];\n\t\t\t\t\tchar b = chaAryLineAll[i];\n\n\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\tfor (int j = 1; j < chaAryLine1.length; j++) {\n\t\t\t\t\t\t\ta = chaAryLine1[j];\n\t\t\t\t\t\t\tb = chaAryLineAll[i + j];\n\n\t\t\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//1列目が文字1つの時\n\t\t\t\t\tif(chaAryLine1.length == 1) {\n\t\t\t\t\t\tif(a == b) {\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\tif(i == 0 && i + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 初期化\n\t\t\t\t\tintCount = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tSystem.out.println(intAnwer);\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n}", "Main", "/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 答えをカウント\n\t\tint intAnwer = 0;\n\n\t\t// 1行目読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t// 大文字は小文字にしておく\n\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t// char型に分解\n\t\t\tchar[] chaAryLine1 = strLine.toCharArray();\n\n\t\t\t// 2行目以降を読み込む\n\t\t\twhile (true) {\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 終了条件\n\t\t\t\tif (strLine.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 大文字は小文字にしておく\n\t\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLineAll = strLine.toCharArray();\n\n\t\t\t\t// 何文字一緒か\n\t\t\t\tint intCount = 0;\n\n\t\t\t\t// 終了条件\n\t\t\t\tint intlength = chaAryLineAll.length - chaAryLine1.length + 1;\n\n\t\t\t\t//ロジック\n\t\t\t\tfor (int i = 0; i < intlength; i++) {\n\n\t\t\t\t\tchar a = chaAryLine1[0];\n\t\t\t\t\tchar b = chaAryLineAll[i];\n\n\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\tfor (int j = 1; j < chaAryLine1.length; j++) {\n\t\t\t\t\t\t\ta = chaAryLine1[j];\n\t\t\t\t\t\t\tb = chaAryLineAll[i + j];\n\n\t\t\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//1列目が文字1つの時\n\t\t\t\t\tif(chaAryLine1.length == 1) {\n\t\t\t\t\t\tif(a == b) {\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\tif(i == 0 && i + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 初期化\n\t\t\t\t\tintCount = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tSystem.out.println(intAnwer);\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "main", "{\n\n\t\t// 答えをカウント\n\t\tint intAnwer = 0;\n\n\t\t// 1行目読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t// 大文字は小文字にしておく\n\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t// char型に分解\n\t\t\tchar[] chaAryLine1 = strLine.toCharArray();\n\n\t\t\t// 2行目以降を読み込む\n\t\t\twhile (true) {\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 終了条件\n\t\t\t\tif (strLine.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 大文字は小文字にしておく\n\t\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLineAll = strLine.toCharArray();\n\n\t\t\t\t// 何文字一緒か\n\t\t\t\tint intCount = 0;\n\n\t\t\t\t// 終了条件\n\t\t\t\tint intlength = chaAryLineAll.length - chaAryLine1.length + 1;\n\n\t\t\t\t//ロジック\n\t\t\t\tfor (int i = 0; i < intlength; i++) {\n\n\t\t\t\t\tchar a = chaAryLine1[0];\n\t\t\t\t\tchar b = chaAryLineAll[i];\n\n\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\tfor (int j = 1; j < chaAryLine1.length; j++) {\n\t\t\t\t\t\t\ta = chaAryLine1[j];\n\t\t\t\t\t\t\tb = chaAryLineAll[i + j];\n\n\t\t\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//1列目が文字1つの時\n\t\t\t\t\tif(chaAryLine1.length == 1) {\n\t\t\t\t\t\tif(a == b) {\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\tif(i == 0 && i + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 初期化\n\t\t\t\t\tintCount = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tSystem.out.println(intAnwer);\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "int intAnwer = 0;", "intAnwer", "0", "try {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t// 大文字は小文字にしておく\n\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t// char型に分解\n\t\t\tchar[] chaAryLine1 = strLine.toCharArray();\n\n\t\t\t// 2行目以降を読み込む\n\t\t\twhile (true) {\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 終了条件\n\t\t\t\tif (strLine.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 大文字は小文字にしておく\n\t\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLineAll = strLine.toCharArray();\n\n\t\t\t\t// 何文字一緒か\n\t\t\t\tint intCount = 0;\n\n\t\t\t\t// 終了条件\n\t\t\t\tint intlength = chaAryLineAll.length - chaAryLine1.length + 1;\n\n\t\t\t\t//ロジック\n\t\t\t\tfor (int i = 0; i < intlength; i++) {\n\n\t\t\t\t\tchar a = chaAryLine1[0];\n\t\t\t\t\tchar b = chaAryLineAll[i];\n\n\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\tfor (int j = 1; j < chaAryLine1.length; j++) {\n\t\t\t\t\t\t\ta = chaAryLine1[j];\n\t\t\t\t\t\t\tb = chaAryLineAll[i + j];\n\n\t\t\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//1列目が文字1つの時\n\t\t\t\t\tif(chaAryLine1.length == 1) {\n\t\t\t\t\t\tif(a == b) {\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\tif(i == 0 && i + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 初期化\n\t\t\t\t\tintCount = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tSystem.out.println(intAnwer);\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}", "catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}", "IOException e", "{\n\t\t\tSystem.out.println(e);\n\t\t}", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t// 大文字は小文字にしておく\n\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t// char型に分解\n\t\t\tchar[] chaAryLine1 = strLine.toCharArray();\n\n\t\t\t// 2行目以降を読み込む\n\t\t\twhile (true) {\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 終了条件\n\t\t\t\tif (strLine.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 大文字は小文字にしておく\n\t\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLineAll = strLine.toCharArray();\n\n\t\t\t\t// 何文字一緒か\n\t\t\t\tint intCount = 0;\n\n\t\t\t\t// 終了条件\n\t\t\t\tint intlength = chaAryLineAll.length - chaAryLine1.length + 1;\n\n\t\t\t\t//ロジック\n\t\t\t\tfor (int i = 0; i < intlength; i++) {\n\n\t\t\t\t\tchar a = chaAryLine1[0];\n\t\t\t\t\tchar b = chaAryLineAll[i];\n\n\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\tfor (int j = 1; j < chaAryLine1.length; j++) {\n\t\t\t\t\t\t\ta = chaAryLine1[j];\n\t\t\t\t\t\t\tb = chaAryLineAll[i + j];\n\n\t\t\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//1列目が文字1つの時\n\t\t\t\t\tif(chaAryLine1.length == 1) {\n\t\t\t\t\t\tif(a == b) {\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\tif(i == 0 && i + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 初期化\n\t\t\t\t\tintCount = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tSystem.out.println(intAnwer);\n\n\t\t}", "BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));", "insBR", "new BufferedReader(new InputStreamReader(System.in))", "String strLine = insBR.readLine();", "strLine", "insBR.readLine()", "insBR.readLine", "insBR", "strLine = strLine.toLowerCase()", "strLine", "strLine.toLowerCase()", "strLine.toLowerCase", "strLine", "char[] chaAryLine1 = strLine.toCharArray();", "chaAryLine1", "strLine.toCharArray()", "strLine.toCharArray", "strLine", "while (true) {\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 終了条件\n\t\t\t\tif (strLine.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 大文字は小文字にしておく\n\t\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLineAll = strLine.toCharArray();\n\n\t\t\t\t// 何文字一緒か\n\t\t\t\tint intCount = 0;\n\n\t\t\t\t// 終了条件\n\t\t\t\tint intlength = chaAryLineAll.length - chaAryLine1.length + 1;\n\n\t\t\t\t//ロジック\n\t\t\t\tfor (int i = 0; i < intlength; i++) {\n\n\t\t\t\t\tchar a = chaAryLine1[0];\n\t\t\t\t\tchar b = chaAryLineAll[i];\n\n\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\tfor (int j = 1; j < chaAryLine1.length; j++) {\n\t\t\t\t\t\t\ta = chaAryLine1[j];\n\t\t\t\t\t\t\tb = chaAryLineAll[i + j];\n\n\t\t\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//1列目が文字1つの時\n\t\t\t\t\tif(chaAryLine1.length == 1) {\n\t\t\t\t\t\tif(a == b) {\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\tif(i == 0 && i + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 初期化\n\t\t\t\t\tintCount = 0;\n\t\t\t\t}\n\t\t\t}", "true", "{\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 終了条件\n\t\t\t\tif (strLine.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 大文字は小文字にしておく\n\t\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLineAll = strLine.toCharArray();\n\n\t\t\t\t// 何文字一緒か\n\t\t\t\tint intCount = 0;\n\n\t\t\t\t// 終了条件\n\t\t\t\tint intlength = chaAryLineAll.length - chaAryLine1.length + 1;\n\n\t\t\t\t//ロジック\n\t\t\t\tfor (int i = 0; i < intlength; i++) {\n\n\t\t\t\t\tchar a = chaAryLine1[0];\n\t\t\t\t\tchar b = chaAryLineAll[i];\n\n\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\tfor (int j = 1; j < chaAryLine1.length; j++) {\n\t\t\t\t\t\t\ta = chaAryLine1[j];\n\t\t\t\t\t\t\tb = chaAryLineAll[i + j];\n\n\t\t\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//1列目が文字1つの時\n\t\t\t\t\tif(chaAryLine1.length == 1) {\n\t\t\t\t\t\tif(a == b) {\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\tif(i == 0 && i + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 初期化\n\t\t\t\t\tintCount = 0;\n\t\t\t\t}\n\t\t\t}", "strLine = insBR.readLine()", "strLine", "insBR.readLine()", "insBR.readLine", "insBR", "if (strLine.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}", "strLine.equals(\"END_OF_TEXT\")", "strLine.equals", "strLine", "\"END_OF_TEXT\"", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "strLine = strLine.toLowerCase()", "strLine", "strLine.toLowerCase()", "strLine.toLowerCase", "strLine", "char[] chaAryLineAll = strLine.toCharArray();", "chaAryLineAll", "strLine.toCharArray()", "strLine.toCharArray", "strLine", "int intCount = 0;", "intCount", "0", "int intlength = chaAryLineAll.length - chaAryLine1.length + 1;", "intlength", "chaAryLineAll.length - chaAryLine1.length + 1", "chaAryLineAll.length - chaAryLine1.length", "chaAryLineAll.length", "chaAryLineAll", "chaAryLineAll.length", "chaAryLine1.length", "chaAryLine1", "chaAryLine1.length", "1", "for (int i = 0; i < intlength; i++) {\n\n\t\t\t\t\tchar a = chaAryLine1[0];\n\t\t\t\t\tchar b = chaAryLineAll[i];\n\n\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\tfor (int j = 1; j < chaAryLine1.length; j++) {\n\t\t\t\t\t\t\ta = chaAryLine1[j];\n\t\t\t\t\t\t\tb = chaAryLineAll[i + j];\n\n\t\t\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//1列目が文字1つの時\n\t\t\t\t\tif(chaAryLine1.length == 1) {\n\t\t\t\t\t\tif(a == b) {\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\tif(i == 0 && i + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 初期化\n\t\t\t\t\tintCount = 0;\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < intlength", "i", "intlength", "i++", "i++", "i", "{\n\n\t\t\t\t\tchar a = chaAryLine1[0];\n\t\t\t\t\tchar b = chaAryLineAll[i];\n\n\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\tfor (int j = 1; j < chaAryLine1.length; j++) {\n\t\t\t\t\t\t\ta = chaAryLine1[j];\n\t\t\t\t\t\t\tb = chaAryLineAll[i + j];\n\n\t\t\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//1列目が文字1つの時\n\t\t\t\t\tif(chaAryLine1.length == 1) {\n\t\t\t\t\t\tif(a == b) {\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\tif(i == 0 && i + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 初期化\n\t\t\t\t\tintCount = 0;\n\t\t\t\t}", "{\n\n\t\t\t\t\tchar a = chaAryLine1[0];\n\t\t\t\t\tchar b = chaAryLineAll[i];\n\n\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\tfor (int j = 1; j < chaAryLine1.length; j++) {\n\t\t\t\t\t\t\ta = chaAryLine1[j];\n\t\t\t\t\t\t\tb = chaAryLineAll[i + j];\n\n\t\t\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//1列目が文字1つの時\n\t\t\t\t\tif(chaAryLine1.length == 1) {\n\t\t\t\t\t\tif(a == b) {\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\tif(i == 0 && i + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 初期化\n\t\t\t\t\tintCount = 0;\n\t\t\t\t}", "char a = chaAryLine1[0];", "a", "chaAryLine1[0]", "chaAryLine1", "0", "char b = chaAryLineAll[i];", "b", "chaAryLineAll[i]", "chaAryLineAll", "i", "if (a == b) {\n\t\t\t\t\t\tfor (int j = 1; j < chaAryLine1.length; j++) {\n\t\t\t\t\t\t\ta = chaAryLine1[j];\n\t\t\t\t\t\t\tb = chaAryLineAll[i + j];\n\n\t\t\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "a == b", "a", "b", "{\n\t\t\t\t\t\tfor (int j = 1; j < chaAryLine1.length; j++) {\n\t\t\t\t\t\t\ta = chaAryLine1[j];\n\t\t\t\t\t\t\tb = chaAryLineAll[i + j];\n\n\t\t\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "for (int j = 1; j < chaAryLine1.length; j++) {\n\t\t\t\t\t\t\ta = chaAryLine1[j];\n\t\t\t\t\t\t\tb = chaAryLineAll[i + j];\n\n\t\t\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j < chaAryLine1.length", "j", "chaAryLine1.length", "chaAryLine1", "chaAryLine1.length", "j++", "j++", "j", "{\n\t\t\t\t\t\t\ta = chaAryLine1[j];\n\t\t\t\t\t\t\tb = chaAryLineAll[i + j];\n\n\t\t\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "{\n\t\t\t\t\t\t\ta = chaAryLine1[j];\n\t\t\t\t\t\t\tb = chaAryLineAll[i + j];\n\n\t\t\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "a = chaAryLine1[j]", "a", "chaAryLine1[j]", "chaAryLine1", "j", "b = chaAryLineAll[i + j]", "b", "chaAryLineAll[i + j]", "chaAryLineAll", "i + j", "i", "j", "if (a == b) {\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}", "a == b", "a", "b", "{\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}", "intCount++", "intCount", "if (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}", "intCount == chaAryLine1.length - 1", "intCount", "chaAryLine1.length - 1", "chaAryLine1.length", "chaAryLine1", "chaAryLine1.length", "1", "{\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}", "if(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}", "i == 0 && i + j + 1 != chaAryLineAll.length", "i == 0", "i", "0", "i + j + 1 != chaAryLineAll.length", "i + j + 1", "i + j + 1", "i", "j", "1", "chaAryLineAll.length", "chaAryLineAll", "chaAryLineAll.length", "{\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}", "if(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}", "chaAryLineAll[i + j + 1] == ' '", "chaAryLineAll[i + j + 1]", "chaAryLineAll", "i + j + 1", "i + j + 1", "i", "j", "1", "' '", "{\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}", "intAnwer++", "intAnwer", "if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}", "0 < i && i + j + 1 == chaAryLineAll.length", "0 < i", "0", "i", "i + j + 1 == chaAryLineAll.length", "i + j + 1", "i + j + 1", "i", "j", "1", "chaAryLineAll.length", "chaAryLineAll", "chaAryLineAll.length", "{\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}", "if(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}", "chaAryLineAll[i -1] == ' '", "chaAryLineAll[i -1]", "chaAryLineAll", "i -1", "i", "1", "' '", "{\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}", "intAnwer++", "intAnwer", "if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}", "0 < i && i + j + 1 < chaAryLineAll.length", "0 < i", "0", "i", "i + j + 1 < chaAryLineAll.length", "i + j + 1", "i + j + 1", "i", "j", "1", "chaAryLineAll.length", "chaAryLineAll", "chaAryLineAll.length", "{\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}", "if(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}", "chaAryLineAll[i -1] == ' '", "chaAryLineAll[i -1]", "chaAryLineAll", "i -1", "i", "1", "' '", "{\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}", "if(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}", "chaAryLineAll[i + j + 1] == ' '", "chaAryLineAll[i + j + 1]", "chaAryLineAll", "i + j + 1", "i + j + 1", "i", "j", "1", "' '", "{\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}", "intAnwer++", "intAnwer", "if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}", "i == 0 && i + j + 1 == chaAryLineAll.length", "i == 0", "i", "0", "i + j + 1 == chaAryLineAll.length", "i + j + 1", "i + j + 1", "i", "j", "1", "chaAryLineAll.length", "chaAryLineAll", "chaAryLineAll.length", "{\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}", "intAnwer++", "intAnwer", "if(chaAryLine1.length == 1) {\n\t\t\t\t\t\tif(a == b) {\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\tif(i == 0 && i + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}", "chaAryLine1.length == 1", "chaAryLine1.length", "chaAryLine1", "chaAryLine1.length", "1", "{\n\t\t\t\t\t\tif(a == b) {\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\tif(i == 0 && i + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}", "if(a == b) {\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\tif(i == 0 && i + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "a == b", "a", "b", "{\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\tif(i == 0 && i + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "if(i == 0 && i + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}", "i == 0 && i + 1 != chaAryLineAll.length", "i == 0", "i", "0", "i + 1 != chaAryLineAll.length", "i + 1", "i", "1", "chaAryLineAll.length", "chaAryLineAll", "chaAryLineAll.length", "{\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}", "if(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}", "chaAryLineAll[i + 1] == ' '", "chaAryLineAll[i + 1]", "chaAryLineAll", "i + 1", "i", "1", "' '", "{\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}", "intAnwer++", "intAnwer", "if(0 < i && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}", "0 < i && i + 1 == chaAryLineAll.length", "0 < i", "0", "i", "i + 1 == chaAryLineAll.length", "i + 1", "i", "1", "chaAryLineAll.length", "chaAryLineAll", "chaAryLineAll.length", "{\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}", "if(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}", "chaAryLineAll[i -1] == ' '", "chaAryLineAll[i -1]", "chaAryLineAll", "i -1", "i", "1", "' '", "{\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}", "intAnwer++", "intAnwer", "if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}", "0 < i && i + 1 < chaAryLineAll.length", "0 < i", "0", "i", "i + 1 < chaAryLineAll.length", "i + 1", "i", "1", "chaAryLineAll.length", "chaAryLineAll", "chaAryLineAll.length", "{\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}", "if(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}", "chaAryLineAll[i -1] == ' '", "chaAryLineAll[i -1]", "chaAryLineAll", "i -1", "i", "1", "' '", "{\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}", "if(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}", "chaAryLineAll[i + 1] == ' '", "chaAryLineAll[i + 1]", "chaAryLineAll", "i + 1", "i", "1", "' '", "{\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}", "intAnwer++", "intAnwer", "if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}", "i == 0 && i + 1 == chaAryLineAll.length", "i == 0", "i", "0", "i + 1 == chaAryLineAll.length", "i + 1", "i", "1", "chaAryLineAll.length", "chaAryLineAll", "chaAryLineAll.length", "{\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}", "intAnwer++", "intAnwer", "intCount = 0", "intCount", "0", "System.out.println(intAnwer)", "System.out.println", "System.out", "System", "System.out", "intAnwer", "String[] args", "args", "public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 答えをカウント\n\t\tint intAnwer = 0;\n\n\t\t// 1行目読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t// 大文字は小文字にしておく\n\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t// char型に分解\n\t\t\tchar[] chaAryLine1 = strLine.toCharArray();\n\n\t\t\t// 2行目以降を読み込む\n\t\t\twhile (true) {\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 終了条件\n\t\t\t\tif (strLine.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 大文字は小文字にしておく\n\t\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLineAll = strLine.toCharArray();\n\n\t\t\t\t// 何文字一緒か\n\t\t\t\tint intCount = 0;\n\n\t\t\t\t// 終了条件\n\t\t\t\tint intlength = chaAryLineAll.length - chaAryLine1.length + 1;\n\n\t\t\t\t//ロジック\n\t\t\t\tfor (int i = 0; i < intlength; i++) {\n\n\t\t\t\t\tchar a = chaAryLine1[0];\n\t\t\t\t\tchar b = chaAryLineAll[i];\n\n\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\tfor (int j = 1; j < chaAryLine1.length; j++) {\n\t\t\t\t\t\t\ta = chaAryLine1[j];\n\t\t\t\t\t\t\tb = chaAryLineAll[i + j];\n\n\t\t\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//1列目が文字1つの時\n\t\t\t\t\tif(chaAryLine1.length == 1) {\n\t\t\t\t\t\tif(a == b) {\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\tif(i == 0 && i + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 初期化\n\t\t\t\t\tintCount = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tSystem.out.println(intAnwer);\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n}", "public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 答えをカウント\n\t\tint intAnwer = 0;\n\n\t\t// 1行目読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t// 大文字は小文字にしておく\n\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t// char型に分解\n\t\t\tchar[] chaAryLine1 = strLine.toCharArray();\n\n\t\t\t// 2行目以降を読み込む\n\t\t\twhile (true) {\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 終了条件\n\t\t\t\tif (strLine.equals(\"END_OF_TEXT\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// 大文字は小文字にしておく\n\t\t\t\tstrLine = strLine.toLowerCase();\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLineAll = strLine.toCharArray();\n\n\t\t\t\t// 何文字一緒か\n\t\t\t\tint intCount = 0;\n\n\t\t\t\t// 終了条件\n\t\t\t\tint intlength = chaAryLineAll.length - chaAryLine1.length + 1;\n\n\t\t\t\t//ロジック\n\t\t\t\tfor (int i = 0; i < intlength; i++) {\n\n\t\t\t\t\tchar a = chaAryLine1[0];\n\t\t\t\t\tchar b = chaAryLineAll[i];\n\n\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\tfor (int j = 1; j < chaAryLine1.length; j++) {\n\t\t\t\t\t\t\ta = chaAryLine1[j];\n\t\t\t\t\t\t\tb = chaAryLineAll[i + j];\n\n\t\t\t\t\t\t\tif (a == b) {\n\t\t\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\t\t\t// カウントがMAXなら\n\t\t\t\t\t\t\t\tif (intCount == chaAryLine1.length - 1) {\n\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\t\t\tif(i == 0 && i + j + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t\t\t}else if(0 < i && i + j + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + j + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t\t\t}else if(i == 0 && i + j + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//1列目が文字1つの時\n\t\t\t\t\tif(chaAryLine1.length == 1) {\n\t\t\t\t\t\tif(a == b) {\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次がスペースが来るパターン\n\t\t\t\t\t\t\tif(i == 0 && i + 1 != chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//文字列の前がスペースで文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//文字列の前と後ろの文字がスペースのパターン\n\t\t\t\t\t\t\t}else if(0 < i && i + 1 < chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tif(chaAryLineAll[i -1] == ' ') {\n\t\t\t\t\t\t\t\t\tif(chaAryLineAll[i + 1] == ' ') {\n\t\t\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//最初の文字が配列0番目で文字列の次が配列からオーバーするパターン\n\t\t\t\t\t\t\t}else if(i == 0 && i + 1 == chaAryLineAll.length) {\n\t\t\t\t\t\t\t\tintAnwer++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 初期化\n\t\t\t\t\tintCount = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tSystem.out.println(intAnwer);\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * Lesson9A 1つの単語 W と文章 T が与えられます。 T の中にある W の数を出力するプログラム 文章 T * に含まれるスペースまたは改行で区切られた 文字列を単語 Ti とします。すべての Ti において単語 W * と同じになるものを数えて下さい。なお、大文字と小文字は区別しません。 * * @author Internship * */ public class Main{ /** * プログラムのエントリポイント * * @param args */ public static void main(String[] args) { // 答えをカウント int intAnwer = 0; // 1行目読み込む try { BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in)); String strLine = insBR.readLine(); // 大文字は小文字にしておく strLine = strLine.toLowerCase(); // char型に分解 char[] chaAryLine1 = strLine.toCharArray(); // 2行目以降を読み込む while (true) { strLine = insBR.readLine(); // 終了条件 if (strLine.equals("END_OF_TEXT")) { break; } // 大文字は小文字にしておく strLine = strLine.toLowerCase(); // char型に分解 char[] chaAryLineAll = strLine.toCharArray(); // 何文字一緒か int intCount = 0; // 終了条件 int intlength = chaAryLineAll.length - chaAryLine1.length + 1; //ロジック for (int i = 0; i < intlength; i++) { char a = chaAryLine1[0]; char b = chaAryLineAll[i]; if (a == b) { for (int j = 1; j < chaAryLine1.length; j++) { a = chaAryLine1[j]; b = chaAryLineAll[i + j]; if (a == b) { intCount++; // カウントがMAXなら if (intCount == chaAryLine1.length - 1) { //最初の文字が配列0番目で文字列の次がスペースが来るパターン if(i == 0 && i + j + 1 != chaAryLineAll.length) { if(chaAryLineAll[i + j + 1] == ' ') { intAnwer++; } //文字列の前がスペースで文字列の次が配列からオーバーするパターン }else if(0 < i && i + j + 1 == chaAryLineAll.length) { if(chaAryLineAll[i -1] == ' ') { intAnwer++; } //文字列の前と後ろの文字がスペースのパターン }else if(0 < i && i + j + 1 < chaAryLineAll.length) { if(chaAryLineAll[i -1] == ' ') { if(chaAryLineAll[i + j + 1] == ' ') { intAnwer++; } } //最初の文字が配列0番目で文字列の次が配列からオーバーするパターン }else if(i == 0 && i + j + 1 == chaAryLineAll.length) { intAnwer++; } } } } } //1列目が文字1つの時 if(chaAryLine1.length == 1) { if(a == b) { //最初の文字が配列0番目で文字列の次がスペースが来るパターン if(i == 0 && i + 1 != chaAryLineAll.length) { if(chaAryLineAll[i + 1] == ' ') { intAnwer++; } //文字列の前がスペースで文字列の次が配列からオーバーするパターン }else if(0 < i && i + 1 == chaAryLineAll.length) { if(chaAryLineAll[i -1] == ' ') { intAnwer++; } //文字列の前と後ろの文字がスペースのパターン }else if(0 < i && i + 1 < chaAryLineAll.length) { if(chaAryLineAll[i -1] == ' ') { if(chaAryLineAll[i + 1] == ' ') { intAnwer++; } } //最初の文字が配列0番目で文字列の次が配列からオーバーするパターン }else if(i == 0 && i + 1 == chaAryLineAll.length) { intAnwer++; } } } // 初期化 intCount = 0; } } // 出力 System.out.println(intAnwer); } catch (IOException e) { System.out.println(e); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 14, 4, 18, 4, 18, 13, 13, 40, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 60, 8 ], [ 60, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 33, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 40, 45 ], [ 39, 46 ], [ 46, 47 ], [ 11, 48 ], [ 48, 49 ], [ 49, 50 ], [ 11, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 9, 57 ], [ 57, 58 ], [ 0, 59 ], [ 59, 60 ], [ 59, 61 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.nextLine().toLowerCase();\n\t\tint count = 0;\n\t\twhile (true) {\n\t\t\tString t = scan.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\")) break;\n\t\t\telse if (t.toLowerCase().equals(w)) count++;\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(count);\n\t}\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.nextLine().toLowerCase();\n\t\tint count = 0;\n\t\twhile (true) {\n\t\t\tString t = scan.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\")) break;\n\t\t\telse if (t.toLowerCase().equals(w)) count++;\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(count);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.nextLine().toLowerCase();\n\t\tint count = 0;\n\t\twhile (true) {\n\t\t\tString t = scan.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\")) break;\n\t\t\telse if (t.toLowerCase().equals(w)) count++;\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.nextLine().toLowerCase();\n\t\tint count = 0;\n\t\twhile (true) {\n\t\t\tString t = scan.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\")) break;\n\t\t\telse if (t.toLowerCase().equals(w)) count++;\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(count);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String w = scan.nextLine().toLowerCase();", "w", "scan.nextLine().toLowerCase()", "scan.nextLine().toLowerCase", "scan.nextLine()", "scan.nextLine", "scan", "int count = 0;", "count", "0", "while (true) {\n\t\t\tString t = scan.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\")) break;\n\t\t\telse if (t.toLowerCase().equals(w)) count++;\n\t\t}", "true", "{\n\t\t\tString t = scan.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\")) break;\n\t\t\telse if (t.toLowerCase().equals(w)) count++;\n\t\t}", "String t = scan.next();", "t", "scan.next()", "scan.next", "scan", "if (t.equals(\"END_OF_TEXT\")) break;\n\t\t\telse if (t.toLowerCase().equals(w)) count++;", "t.equals(\"END_OF_TEXT\")", "t.equals", "t", "\"END_OF_TEXT\"", "break;", "if (t.toLowerCase().equals(w)) count++;", "t.toLowerCase().equals(w)", "t.toLowerCase().equals", "t.toLowerCase()", "t.toLowerCase", "t", "w", "count++", "count", "scan.close()", "scan.close", "scan", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.nextLine().toLowerCase();\n\t\tint count = 0;\n\t\twhile (true) {\n\t\t\tString t = scan.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\")) break;\n\t\t\telse if (t.toLowerCase().equals(w)) count++;\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(count);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.nextLine().toLowerCase();\n\t\tint count = 0;\n\t\twhile (true) {\n\t\t\tString t = scan.next();\n\t\t\tif (t.equals(\"END_OF_TEXT\")) break;\n\t\t\telse if (t.toLowerCase().equals(w)) count++;\n\t\t}\n\t\tscan.close();\n\t\tSystem.out.println(count);\n\t}\n}", "Main" ]
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner scan = new Scanner(System.in); String w = scan.nextLine().toLowerCase(); int count = 0; while (true) { String t = scan.next(); if (t.equals("END_OF_TEXT")) break; else if (t.toLowerCase().equals(w)) count++; } scan.close(); System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 60, 5 ], [ 60, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 22, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 22, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 40, 45 ], [ 45, 46 ], [ 46, 47 ], [ 8, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 6, 57 ], [ 57, 58 ], [ 0, 59 ], [ 59, 60 ], [ 59, 61 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString word = sc.nextLine();\n\t\tint count = 0;\n\n\t\twhile(true){\n\t\t\tString S = sc.next();\n\n\t\t\tif(S.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString text = S.toLowerCase();\n\n\t\t\tif(text.equals(word)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String args[]){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString word = sc.nextLine();\n\t\tint count = 0;\n\n\t\twhile(true){\n\t\t\tString S = sc.next();\n\n\t\t\tif(S.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString text = S.toLowerCase();\n\n\t\t\tif(text.equals(word)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String args[]){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString word = sc.nextLine();\n\t\tint count = 0;\n\n\t\twhile(true){\n\t\t\tString S = sc.next();\n\n\t\t\tif(S.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString text = S.toLowerCase();\n\n\t\t\tif(text.equals(word)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString word = sc.nextLine();\n\t\tint count = 0;\n\n\t\twhile(true){\n\t\t\tString S = sc.next();\n\n\t\t\tif(S.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString text = S.toLowerCase();\n\n\t\t\tif(text.equals(word)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String word = sc.nextLine();", "word", "sc.nextLine()", "sc.nextLine", "sc", "int count = 0;", "count", "0", "while(true){\n\t\t\tString S = sc.next();\n\n\t\t\tif(S.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString text = S.toLowerCase();\n\n\t\t\tif(text.equals(word)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString S = sc.next();\n\n\t\t\tif(S.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString text = S.toLowerCase();\n\n\t\t\tif(text.equals(word)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "String S = sc.next();", "S", "sc.next()", "sc.next", "sc", "if(S.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}", "S.equals(\"END_OF_TEXT\")", "S.equals", "S", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "String text = S.toLowerCase();", "text", "S.toLowerCase()", "S.toLowerCase", "S", "if(text.equals(word)){\n\t\t\t\tcount++;\n\t\t\t}", "text.equals(word)", "text.equals", "text", "word", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "sc.close()", "sc.close", "sc", "String args[]", "args", "public class Main{\n\tpublic static void main(String args[]){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString word = sc.nextLine();\n\t\tint count = 0;\n\n\t\twhile(true){\n\t\t\tString S = sc.next();\n\n\t\t\tif(S.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString text = S.toLowerCase();\n\n\t\t\tif(text.equals(word)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}\n}", "public class Main{\n\tpublic static void main(String args[]){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString word = sc.nextLine();\n\t\tint count = 0;\n\n\t\twhile(true){\n\t\t\tString S = sc.next();\n\n\t\t\tif(S.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString text = S.toLowerCase();\n\n\t\t\tif(text.equals(word)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String word = sc.nextLine(); int count = 0; while(true){ String S = sc.next(); if(S.equals("END_OF_TEXT")){ break; } String text = S.toLowerCase(); if(text.equals(word)){ count++; } } System.out.println(count); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 42, 40, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 40, 13, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 66, 5 ], [ 66, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 30, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 36, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 47, 48 ], [ 36, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 6, 63 ], [ 63, 64 ], [ 0, 65 ], [ 65, 66 ], [ 65, 67 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int count = 0;\n String key = sc.next();\n key = key.toLowerCase();\n\n String read = sc.next();\n while(!(read.equals(\"END_OF_TEXT\"))){\n read = read.toLowerCase();\n if(read.equals(key))\n count++;\n read = sc.next();\n }\n System.out.println(count);\n\n sc.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int count = 0;\n String key = sc.next();\n key = key.toLowerCase();\n\n String read = sc.next();\n while(!(read.equals(\"END_OF_TEXT\"))){\n read = read.toLowerCase();\n if(read.equals(key))\n count++;\n read = sc.next();\n }\n System.out.println(count);\n\n sc.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int count = 0;\n String key = sc.next();\n key = key.toLowerCase();\n\n String read = sc.next();\n while(!(read.equals(\"END_OF_TEXT\"))){\n read = read.toLowerCase();\n if(read.equals(key))\n count++;\n read = sc.next();\n }\n System.out.println(count);\n\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n int count = 0;\n String key = sc.next();\n key = key.toLowerCase();\n\n String read = sc.next();\n while(!(read.equals(\"END_OF_TEXT\"))){\n read = read.toLowerCase();\n if(read.equals(key))\n count++;\n read = sc.next();\n }\n System.out.println(count);\n\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int count = 0;", "count", "0", "String key = sc.next();", "key", "sc.next()", "sc.next", "sc", "key = key.toLowerCase()", "key", "key.toLowerCase()", "key.toLowerCase", "key", "String read = sc.next();", "read", "sc.next()", "sc.next", "sc", "while(!(read.equals(\"END_OF_TEXT\"))){\n read = read.toLowerCase();\n if(read.equals(key))\n count++;\n read = sc.next();\n }", "!(read.equals(\"END_OF_TEXT\"))", "(read.equals(\"END_OF_TEXT\"))", "read.equals", "read", "\"END_OF_TEXT\"", "{\n read = read.toLowerCase();\n if(read.equals(key))\n count++;\n read = sc.next();\n }", "read = read.toLowerCase()", "read", "read.toLowerCase()", "read.toLowerCase", "read", "if(read.equals(key))\n count++;", "read.equals(key)", "read.equals", "read", "key", "count++", "count", "read = sc.next()", "read", "sc.next()", "sc.next", "sc", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int count = 0;\n String key = sc.next();\n key = key.toLowerCase();\n\n String read = sc.next();\n while(!(read.equals(\"END_OF_TEXT\"))){\n read = read.toLowerCase();\n if(read.equals(key))\n count++;\n read = sc.next();\n }\n System.out.println(count);\n\n sc.close();\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int count = 0;\n String key = sc.next();\n key = key.toLowerCase();\n\n String read = sc.next();\n while(!(read.equals(\"END_OF_TEXT\"))){\n read = read.toLowerCase();\n if(read.equals(key))\n count++;\n read = sc.next();\n }\n System.out.println(count);\n\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int count = 0; String key = sc.next(); key = key.toLowerCase(); String read = sc.next(); while(!(read.equals("END_OF_TEXT"))){ read = read.toLowerCase(); if(read.equals(key)) count++; read = sc.next(); } System.out.println(count); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 17, 42, 40, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 52, 5 ], [ 52, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 40, 41 ], [ 41, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 6, 49 ], [ 49, 50 ], [ 0, 51 ], [ 51, 52 ], [ 51, 53 ] ]
[ "\n\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t\tString sentence = \"\";\n\t\tString word = in.next();\n\t\tint count = 0;\n\n\t\twhile(!(sentence.equals(\"END_OF_TEXT\"))){\n\n\t\t\tsentence = in.next();\n\n\t\t\tif(word.equalsIgnoreCase(sentence)){\n\n\t\t\t\tcount ++;\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t\tString sentence = \"\";\n\t\tString word = in.next();\n\t\tint count = 0;\n\n\t\twhile(!(sentence.equals(\"END_OF_TEXT\"))){\n\n\t\t\tsentence = in.next();\n\n\t\t\tif(word.equalsIgnoreCase(sentence)){\n\n\t\t\t\tcount ++;\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t\tString sentence = \"\";\n\t\tString word = in.next();\n\t\tint count = 0;\n\n\t\twhile(!(sentence.equals(\"END_OF_TEXT\"))){\n\n\t\t\tsentence = in.next();\n\n\t\t\tif(word.equalsIgnoreCase(sentence)){\n\n\t\t\t\tcount ++;\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}", "main", "{\n\n\t\tScanner in = new Scanner(System.in);\n\t\tString sentence = \"\";\n\t\tString word = in.next();\n\t\tint count = 0;\n\n\t\twhile(!(sentence.equals(\"END_OF_TEXT\"))){\n\n\t\t\tsentence = in.next();\n\n\t\t\tif(word.equalsIgnoreCase(sentence)){\n\n\t\t\t\tcount ++;\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "String sentence = \"\";", "sentence", "\"\"", "String word = in.next();", "word", "in.next()", "in.next", "in", "int count = 0;", "count", "0", "while(!(sentence.equals(\"END_OF_TEXT\"))){\n\n\t\t\tsentence = in.next();\n\n\t\t\tif(word.equalsIgnoreCase(sentence)){\n\n\t\t\t\tcount ++;\n\n\t\t\t}\n\t\t}", "!(sentence.equals(\"END_OF_TEXT\"))", "(sentence.equals(\"END_OF_TEXT\"))", "sentence.equals", "sentence", "\"END_OF_TEXT\"", "{\n\n\t\t\tsentence = in.next();\n\n\t\t\tif(word.equalsIgnoreCase(sentence)){\n\n\t\t\t\tcount ++;\n\n\t\t\t}\n\t\t}", "sentence = in.next()", "sentence", "in.next()", "in.next", "in", "if(word.equalsIgnoreCase(sentence)){\n\n\t\t\t\tcount ++;\n\n\t\t\t}", "word.equalsIgnoreCase(sentence)", "word.equalsIgnoreCase", "word", "sentence", "{\n\n\t\t\t\tcount ++;\n\n\t\t\t}", "count ++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t\tString sentence = \"\";\n\t\tString word = in.next();\n\t\tint count = 0;\n\n\t\twhile(!(sentence.equals(\"END_OF_TEXT\"))){\n\n\t\t\tsentence = in.next();\n\n\t\t\tif(word.equalsIgnoreCase(sentence)){\n\n\t\t\t\tcount ++;\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t\tString sentence = \"\";\n\t\tString word = in.next();\n\t\tint count = 0;\n\n\t\twhile(!(sentence.equals(\"END_OF_TEXT\"))){\n\n\t\t\tsentence = in.next();\n\n\t\t\tif(word.equalsIgnoreCase(sentence)){\n\n\t\t\t\tcount ++;\n\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String sentence = ""; String word = in.next(); int count = 0; while(!(sentence.equals("END_OF_TEXT"))){ sentence = in.next(); if(word.equalsIgnoreCase(sentence)){ count ++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 17, 0, 13, 4, 18, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 58, 5 ], [ 58, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 30, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 47, 48 ], [ 8, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 6, 55 ], [ 55, 56 ], [ 0, 57 ], [ 57, 58 ], [ 57, 59 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str=new String();\n\t\tString p = new String();\n\t\tint count=0;\n\t\t p = scan.next();\n\t\t \n\t\t while(scan.hasNext()){\n\t\t str = scan.next();\n\t\t if(str.equals(\"END_OF_TEXT\"))break;\n\t\t \tif(str.equalsIgnoreCase(p))count++;\n\t\t}\n\t\t \n\t\t System.out.println(count);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str=new String();\n\t\tString p = new String();\n\t\tint count=0;\n\t\t p = scan.next();\n\t\t \n\t\t while(scan.hasNext()){\n\t\t str = scan.next();\n\t\t if(str.equals(\"END_OF_TEXT\"))break;\n\t\t \tif(str.equalsIgnoreCase(p))count++;\n\t\t}\n\t\t \n\t\t System.out.println(count);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str=new String();\n\t\tString p = new String();\n\t\tint count=0;\n\t\t p = scan.next();\n\t\t \n\t\t while(scan.hasNext()){\n\t\t str = scan.next();\n\t\t if(str.equals(\"END_OF_TEXT\"))break;\n\t\t \tif(str.equalsIgnoreCase(p))count++;\n\t\t}\n\t\t \n\t\t System.out.println(count);\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str=new String();\n\t\tString p = new String();\n\t\tint count=0;\n\t\t p = scan.next();\n\t\t \n\t\t while(scan.hasNext()){\n\t\t str = scan.next();\n\t\t if(str.equals(\"END_OF_TEXT\"))break;\n\t\t \tif(str.equalsIgnoreCase(p))count++;\n\t\t}\n\t\t \n\t\t System.out.println(count);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String str=new String();", "str", "new String()", "String p = new String();", "p", "new String()", "int count=0;", "count", "0", "p = scan.next()", "p", "scan.next()", "scan.next", "scan", "while(scan.hasNext()){\n\t\t str = scan.next();\n\t\t if(str.equals(\"END_OF_TEXT\"))break;\n\t\t \tif(str.equalsIgnoreCase(p))count++;\n\t\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t\t str = scan.next();\n\t\t if(str.equals(\"END_OF_TEXT\"))break;\n\t\t \tif(str.equalsIgnoreCase(p))count++;\n\t\t}", "str = scan.next()", "str", "scan.next()", "scan.next", "scan", "if(str.equals(\"END_OF_TEXT\"))break;", "str.equals(\"END_OF_TEXT\")", "str.equals", "str", "\"END_OF_TEXT\"", "break;", "if(str.equalsIgnoreCase(p))count++;", "str.equalsIgnoreCase(p)", "str.equalsIgnoreCase", "str", "p", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str=new String();\n\t\tString p = new String();\n\t\tint count=0;\n\t\t p = scan.next();\n\t\t \n\t\t while(scan.hasNext()){\n\t\t str = scan.next();\n\t\t if(str.equals(\"END_OF_TEXT\"))break;\n\t\t \tif(str.equalsIgnoreCase(p))count++;\n\t\t}\n\t\t \n\t\t System.out.println(count);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str=new String();\n\t\tString p = new String();\n\t\tint count=0;\n\t\t p = scan.next();\n\t\t \n\t\t while(scan.hasNext()){\n\t\t str = scan.next();\n\t\t if(str.equals(\"END_OF_TEXT\"))break;\n\t\t \tif(str.equalsIgnoreCase(p))count++;\n\t\t}\n\t\t \n\t\t System.out.println(count);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String str=new String(); String p = new String(); int count=0; p = scan.next(); while(scan.hasNext()){ str = scan.next(); if(str.equals("END_OF_TEXT"))break; if(str.equalsIgnoreCase(p))count++; } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 42, 2, 4, 18, 0, 13, 4, 18, 13, 17, 17, 30, 41, 13, 4, 18, 13, 17, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 13, 18 ], [ 9, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 19, 28 ], [ 28, 29 ], [ 19, 30 ], [ 30, 31 ], [ 30, 32 ], [ 19, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 35, 42 ], [ 34, 43 ], [ 33, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 44, 51 ], [ 51, 52 ], [ 51, 53 ], [ 51, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 61, 62 ], [ 19, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 6, 69 ], [ 69, 70 ] ]
[ "/* ITP1_9_A */\nimport java.io.*;\n\nclass Main\n{\n public static void main(String[] args)\n {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n String t;\n int count = 0;\n\n while((t = br.readLine()).equals(\"END_OF_TEXT\") == false){\n\n String[] word = t.split(\" \");\n for(String str : word){\n if(str.equalsIgnoreCase(w)) count++;\n }\n }\n System.out.println(count);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "import java.io.*;", "io.*", "java", "class Main\n{\n public static void main(String[] args)\n {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n String t;\n int count = 0;\n\n while((t = br.readLine()).equals(\"END_OF_TEXT\") == false){\n\n String[] word = t.split(\" \");\n for(String str : word){\n if(str.equalsIgnoreCase(w)) count++;\n }\n }\n System.out.println(count);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "Main", "public static void main(String[] args)\n {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n String t;\n int count = 0;\n\n while((t = br.readLine()).equals(\"END_OF_TEXT\") == false){\n\n String[] word = t.split(\" \");\n for(String str : word){\n if(str.equalsIgnoreCase(w)) count++;\n }\n }\n System.out.println(count);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }", "main", "{\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n String t;\n int count = 0;\n\n while((t = br.readLine()).equals(\"END_OF_TEXT\") == false){\n\n String[] word = t.split(\" \");\n for(String str : word){\n if(str.equalsIgnoreCase(w)) count++;\n }\n }\n System.out.println(count);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }", "try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n String t;\n int count = 0;\n\n while((t = br.readLine()).equals(\"END_OF_TEXT\") == false){\n\n String[] word = t.split(\" \");\n for(String str : word){\n if(str.equalsIgnoreCase(w)) count++;\n }\n }\n System.out.println(count);\n\n }catch(Exception e){\n System.out.println(e);\n }", "catch(Exception e){\n System.out.println(e);\n }", "Exception e", "{\n System.out.println(e);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n String t;\n int count = 0;\n\n while((t = br.readLine()).equals(\"END_OF_TEXT\") == false){\n\n String[] word = t.split(\" \");\n for(String str : word){\n if(str.equalsIgnoreCase(w)) count++;\n }\n }\n System.out.println(count);\n\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String w = br.readLine();", "w", "br.readLine()", "br.readLine", "br", "String t;", "t", "int count = 0;", "count", "0", "while((t = br.readLine()).equals(\"END_OF_TEXT\") == false){\n\n String[] word = t.split(\" \");\n for(String str : word){\n if(str.equalsIgnoreCase(w)) count++;\n }\n }", "(t = br.readLine()).equals(\"END_OF_TEXT\") == false", "(t = br.readLine()).equals(\"END_OF_TEXT\")", "(t = br.readLine()).equals", "(t = br.readLine())", "t", "br.readLine()", "br.readLine", "br", "\"END_OF_TEXT\"", "false", "{\n\n String[] word = t.split(\" \");\n for(String str : word){\n if(str.equalsIgnoreCase(w)) count++;\n }\n }", "String[] word = t.split(\" \");", "word", "t.split(\" \")", "t.split", "t", "\" \"", "for(String str : word){\n if(str.equalsIgnoreCase(w)) count++;\n }", "String str", "word", "{\n if(str.equalsIgnoreCase(w)) count++;\n }", "{\n if(str.equalsIgnoreCase(w)) count++;\n }", "if(str.equalsIgnoreCase(w)) count++;", "str.equalsIgnoreCase(w)", "str.equalsIgnoreCase", "str", "w", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
/* ITP1_9_A */ import java.io.*; class Main { public static void main(String[] args) { try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String w = br.readLine(); String t; int count = 0; while((t = br.readLine()).equals("END_OF_TEXT") == false){ String[] word = t.split(" "); for(String str : word){ if(str.equalsIgnoreCase(w)) count++; } } System.out.println(count); }catch(Exception e){ System.out.println(e); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 14, 4, 18, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 24, 31 ], [ 22, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 34, 39 ], [ 33, 40 ], [ 40, 41 ], [ 8, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 6, 48 ], [ 48, 49 ] ]
[ "import java.util.*;\n\nclass Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n String w = sc.nextLine();\n int count = 0;\n String t;\n while (!((t = sc.next()).equals(\"END_OF_TEXT\"))) {\n if(t.toLowerCase().equals(w))\n count++;\n }\n System.out.println(count);\n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n String w = sc.nextLine();\n int count = 0;\n String t;\n while (!((t = sc.next()).equals(\"END_OF_TEXT\"))) {\n if(t.toLowerCase().equals(w))\n count++;\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n String w = sc.nextLine();\n int count = 0;\n String t;\n while (!((t = sc.next()).equals(\"END_OF_TEXT\"))) {\n if(t.toLowerCase().equals(w))\n count++;\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String w = sc.nextLine();\n int count = 0;\n String t;\n while (!((t = sc.next()).equals(\"END_OF_TEXT\"))) {\n if(t.toLowerCase().equals(w))\n count++;\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String w = sc.nextLine();", "w", "sc.nextLine()", "sc.nextLine", "sc", "int count = 0;", "count", "0", "String t;", "t", "while (!((t = sc.next()).equals(\"END_OF_TEXT\"))) {\n if(t.toLowerCase().equals(w))\n count++;\n }", "!((t = sc.next()).equals(\"END_OF_TEXT\"))", "((t = sc.next()).equals(\"END_OF_TEXT\"))", "(t = sc.next()).equals", "(t = sc.next())", "t", "sc.next()", "sc.next", "sc", "\"END_OF_TEXT\"", "{\n if(t.toLowerCase().equals(w))\n count++;\n }", "if(t.toLowerCase().equals(w))\n count++;", "t.toLowerCase().equals(w)", "t.toLowerCase().equals", "t.toLowerCase()", "t.toLowerCase", "t", "w", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String args[]", "args" ]
import java.util.*; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String w = sc.nextLine(); int count = 0; String t; while (!((t = sc.next()).equals("END_OF_TEXT"))) { if(t.toLowerCase().equals(w)) count++; } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 17, 40, 17, 3, 4, 18, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 4, 18, 13, 13, 4, 18, 13, 30, 14, 4, 18, 4, 18, 13, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 90, 5 ], [ 90, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 28, 36 ], [ 22, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 8, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 44, 54 ], [ 54, 55 ], [ 55, 56 ], [ 44, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 60, 67 ], [ 67, 68 ], [ 68, 69 ], [ 59, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 72, 78 ], [ 71, 79 ], [ 79, 80 ], [ 8, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 6, 87 ], [ 87, 88 ], [ 0, 89 ], [ 89, 90 ], [ 89, 91 ] ]
[ "\nimport java.util.*;\n\npublic class Main {\n\t \n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\tString jstr=cin.nextLine();\n\t\tList<String> str=new ArrayList<>();\n\t\twhile(true) {\n\t\t\tString cstr=cin.next();\n\t\t\tif(cstr.indexOf(\"END_OF_TEXT\")>-1)break;\n\t\t\tstr.add(cstr);\n\t\t}\n\t\t\n\t\tint res=0;\n\t\t//System.out.println(jstr);\n\t\t//System.out.println(str);\n\t\t\n\t\tfor(int i=0;i<str.size();i++) {\n\t\t\t//String s=str.substring(i, i+jstr.length());\n\t\t\tif(str.get(i).length()==jstr.length()) {\n\t\t\t\tif(str.get(i).equalsIgnoreCase(jstr))res++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(res);\n\t}\n\t\n\t\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\t \n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\tString jstr=cin.nextLine();\n\t\tList<String> str=new ArrayList<>();\n\t\twhile(true) {\n\t\t\tString cstr=cin.next();\n\t\t\tif(cstr.indexOf(\"END_OF_TEXT\")>-1)break;\n\t\t\tstr.add(cstr);\n\t\t}\n\t\t\n\t\tint res=0;\n\t\t//System.out.println(jstr);\n\t\t//System.out.println(str);\n\t\t\n\t\tfor(int i=0;i<str.size();i++) {\n\t\t\t//String s=str.substring(i, i+jstr.length());\n\t\t\tif(str.get(i).length()==jstr.length()) {\n\t\t\t\tif(str.get(i).equalsIgnoreCase(jstr))res++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(res);\n\t}\n\t\n\t\n}", "Main", "public static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\tString jstr=cin.nextLine();\n\t\tList<String> str=new ArrayList<>();\n\t\twhile(true) {\n\t\t\tString cstr=cin.next();\n\t\t\tif(cstr.indexOf(\"END_OF_TEXT\")>-1)break;\n\t\t\tstr.add(cstr);\n\t\t}\n\t\t\n\t\tint res=0;\n\t\t//System.out.println(jstr);\n\t\t//System.out.println(str);\n\t\t\n\t\tfor(int i=0;i<str.size();i++) {\n\t\t\t//String s=str.substring(i, i+jstr.length());\n\t\t\tif(str.get(i).length()==jstr.length()) {\n\t\t\t\tif(str.get(i).equalsIgnoreCase(jstr))res++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(res);\n\t}", "main", "{\n\t\tScanner cin=new Scanner(System.in);\n\t\tString jstr=cin.nextLine();\n\t\tList<String> str=new ArrayList<>();\n\t\twhile(true) {\n\t\t\tString cstr=cin.next();\n\t\t\tif(cstr.indexOf(\"END_OF_TEXT\")>-1)break;\n\t\t\tstr.add(cstr);\n\t\t}\n\t\t\n\t\tint res=0;\n\t\t//System.out.println(jstr);\n\t\t//System.out.println(str);\n\t\t\n\t\tfor(int i=0;i<str.size();i++) {\n\t\t\t//String s=str.substring(i, i+jstr.length());\n\t\t\tif(str.get(i).length()==jstr.length()) {\n\t\t\t\tif(str.get(i).equalsIgnoreCase(jstr))res++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(res);\n\t}", "Scanner cin=new Scanner(System.in);", "cin", "new Scanner(System.in)", "String jstr=cin.nextLine();", "jstr", "cin.nextLine()", "cin.nextLine", "cin", "List<String> str=new ArrayList<>();", "str", "new ArrayList<>()", "while(true) {\n\t\t\tString cstr=cin.next();\n\t\t\tif(cstr.indexOf(\"END_OF_TEXT\")>-1)break;\n\t\t\tstr.add(cstr);\n\t\t}", "true", "{\n\t\t\tString cstr=cin.next();\n\t\t\tif(cstr.indexOf(\"END_OF_TEXT\")>-1)break;\n\t\t\tstr.add(cstr);\n\t\t}", "String cstr=cin.next();", "cstr", "cin.next()", "cin.next", "cin", "if(cstr.indexOf(\"END_OF_TEXT\")>-1)break;", "cstr.indexOf(\"END_OF_TEXT\")>-1", "cstr.indexOf(\"END_OF_TEXT\")", "cstr.indexOf", "cstr", "\"END_OF_TEXT\"", "-1", "1", "break;", "str.add(cstr)", "str.add", "str", "cstr", "int res=0;", "res", "0", "for(int i=0;i<str.size();i++) {\n\t\t\t//String s=str.substring(i, i+jstr.length());\n\t\t\tif(str.get(i).length()==jstr.length()) {\n\t\t\t\tif(str.get(i).equalsIgnoreCase(jstr))res++;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<str.size()", "i", "str.size()", "str.size", "str", "i++", "i++", "i", "{\n\t\t\t//String s=str.substring(i, i+jstr.length());\n\t\t\tif(str.get(i).length()==jstr.length()) {\n\t\t\t\tif(str.get(i).equalsIgnoreCase(jstr))res++;\n\t\t\t}\n\t\t}", "{\n\t\t\t//String s=str.substring(i, i+jstr.length());\n\t\t\tif(str.get(i).length()==jstr.length()) {\n\t\t\t\tif(str.get(i).equalsIgnoreCase(jstr))res++;\n\t\t\t}\n\t\t}", "if(str.get(i).length()==jstr.length()) {\n\t\t\t\tif(str.get(i).equalsIgnoreCase(jstr))res++;\n\t\t\t}", "str.get(i).length()==jstr.length()", "str.get(i).length()", "str.get(i).length", "str.get(i)", "str.get", "str", "i", "jstr.length()", "jstr.length", "jstr", "{\n\t\t\t\tif(str.get(i).equalsIgnoreCase(jstr))res++;\n\t\t\t}", "if(str.get(i).equalsIgnoreCase(jstr))res++;", "str.get(i).equalsIgnoreCase(jstr)", "str.get(i).equalsIgnoreCase", "str.get(i)", "str.get", "str", "i", "jstr", "res++", "res", "System.out.println(res)", "System.out.println", "System.out", "System", "System.out", "res", "String[] args", "args", "public class Main {\n\t \n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\tString jstr=cin.nextLine();\n\t\tList<String> str=new ArrayList<>();\n\t\twhile(true) {\n\t\t\tString cstr=cin.next();\n\t\t\tif(cstr.indexOf(\"END_OF_TEXT\")>-1)break;\n\t\t\tstr.add(cstr);\n\t\t}\n\t\t\n\t\tint res=0;\n\t\t//System.out.println(jstr);\n\t\t//System.out.println(str);\n\t\t\n\t\tfor(int i=0;i<str.size();i++) {\n\t\t\t//String s=str.substring(i, i+jstr.length());\n\t\t\tif(str.get(i).length()==jstr.length()) {\n\t\t\t\tif(str.get(i).equalsIgnoreCase(jstr))res++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(res);\n\t}\n\t\n\t\n}", "public class Main {\n\t \n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\tString jstr=cin.nextLine();\n\t\tList<String> str=new ArrayList<>();\n\t\twhile(true) {\n\t\t\tString cstr=cin.next();\n\t\t\tif(cstr.indexOf(\"END_OF_TEXT\")>-1)break;\n\t\t\tstr.add(cstr);\n\t\t}\n\t\t\n\t\tint res=0;\n\t\t//System.out.println(jstr);\n\t\t//System.out.println(str);\n\t\t\n\t\tfor(int i=0;i<str.size();i++) {\n\t\t\t//String s=str.substring(i, i+jstr.length());\n\t\t\tif(str.get(i).length()==jstr.length()) {\n\t\t\t\tif(str.get(i).equalsIgnoreCase(jstr))res++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(res);\n\t}\n\t\n\t\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner cin=new Scanner(System.in); String jstr=cin.nextLine(); List<String> str=new ArrayList<>(); while(true) { String cstr=cin.next(); if(cstr.indexOf("END_OF_TEXT")>-1)break; str.add(cstr); } int res=0; //System.out.println(jstr); //System.out.println(str); for(int i=0;i<str.size();i++) { //String s=str.substring(i, i+jstr.length()); if(str.get(i).length()==jstr.length()) { if(str.get(i).equalsIgnoreCase(jstr))res++; } } System.out.println(res); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 14, 2, 4, 18, 13, 13, 17, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 7, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 25, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 38, 43 ], [ 37, 44 ], [ 44, 45 ], [ 14, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 12, 52 ], [ 52, 53 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\n\nclass Main{\n private static final Scanner sc = new Scanner(System.in);\n public static void main(String[] Args) throws IOException{\n final String w = sc.next();\n int ans = 0;\n while(true){\n final String t = sc.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n if(w.compareToIgnoreCase(t)==0) ans++;\n }\n System.out.println(ans);\n }\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n private static final Scanner sc = new Scanner(System.in);\n public static void main(String[] Args) throws IOException{\n final String w = sc.next();\n int ans = 0;\n while(true){\n final String t = sc.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n if(w.compareToIgnoreCase(t)==0) ans++;\n }\n System.out.println(ans);\n }\n}", "Main", "private static final Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] Args) throws IOException{\n final String w = sc.next();\n int ans = 0;\n while(true){\n final String t = sc.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n if(w.compareToIgnoreCase(t)==0) ans++;\n }\n System.out.println(ans);\n }", "main", "{\n final String w = sc.next();\n int ans = 0;\n while(true){\n final String t = sc.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n if(w.compareToIgnoreCase(t)==0) ans++;\n }\n System.out.println(ans);\n }", "final String w = sc.next();", "w", "sc.next()", "sc.next", "sc", "int ans = 0;", "ans", "0", "while(true){\n final String t = sc.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n if(w.compareToIgnoreCase(t)==0) ans++;\n }", "true", "{\n final String t = sc.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n if(w.compareToIgnoreCase(t)==0) ans++;\n }", "final String t = sc.next();", "t", "sc.next()", "sc.next", "sc", "if(t.equals(\"END_OF_TEXT\")) break;", "t.equals(\"END_OF_TEXT\")", "t.equals", "t", "\"END_OF_TEXT\"", "break;", "if(w.compareToIgnoreCase(t)==0) ans++;", "w.compareToIgnoreCase(t)==0", "w.compareToIgnoreCase(t)", "w.compareToIgnoreCase", "w", "t", "0", "ans++", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] Args", "Args" ]
import java.io.IOException; import java.util.Scanner; class Main{ private static final Scanner sc = new Scanner(System.in); public static void main(String[] Args) throws IOException{ final String w = sc.next(); int ans = 0; while(true){ final String t = sc.next(); if(t.equals("END_OF_TEXT")) break; if(w.compareToIgnoreCase(t)==0) ans++; } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 52, 5 ], [ 52, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 22, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 40, 41 ], [ 41, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 6, 49 ], [ 49, 50 ], [ 0, 51 ], [ 51, 52 ], [ 51, 53 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String w = sc.next();\n int count = 0;\n while(true){\n \tString t = sc.next();\n if(t.equals(\"END_OF_TEXT\")){\n \tbreak;\n }\n if(t.equalsIgnoreCase(w)){\n \tcount++;\n }\n }\n System.out.println(count);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String w = sc.next();\n int count = 0;\n while(true){\n \tString t = sc.next();\n if(t.equals(\"END_OF_TEXT\")){\n \tbreak;\n }\n if(t.equalsIgnoreCase(w)){\n \tcount++;\n }\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String w = sc.next();\n int count = 0;\n while(true){\n \tString t = sc.next();\n if(t.equals(\"END_OF_TEXT\")){\n \tbreak;\n }\n if(t.equalsIgnoreCase(w)){\n \tcount++;\n }\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String w = sc.next();\n int count = 0;\n while(true){\n \tString t = sc.next();\n if(t.equals(\"END_OF_TEXT\")){\n \tbreak;\n }\n if(t.equalsIgnoreCase(w)){\n \tcount++;\n }\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String w = sc.next();", "w", "sc.next()", "sc.next", "sc", "int count = 0;", "count", "0", "while(true){\n \tString t = sc.next();\n if(t.equals(\"END_OF_TEXT\")){\n \tbreak;\n }\n if(t.equalsIgnoreCase(w)){\n \tcount++;\n }\n }", "true", "{\n \tString t = sc.next();\n if(t.equals(\"END_OF_TEXT\")){\n \tbreak;\n }\n if(t.equalsIgnoreCase(w)){\n \tcount++;\n }\n }", "String t = sc.next();", "t", "sc.next()", "sc.next", "sc", "if(t.equals(\"END_OF_TEXT\")){\n \tbreak;\n }", "t.equals(\"END_OF_TEXT\")", "t.equals", "t", "\"END_OF_TEXT\"", "{\n \tbreak;\n }", "break;", "if(t.equalsIgnoreCase(w)){\n \tcount++;\n }", "t.equalsIgnoreCase(w)", "t.equalsIgnoreCase", "t", "w", "{\n \tcount++;\n }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String w = sc.next();\n int count = 0;\n while(true){\n \tString t = sc.next();\n if(t.equals(\"END_OF_TEXT\")){\n \tbreak;\n }\n if(t.equalsIgnoreCase(w)){\n \tcount++;\n }\n }\n System.out.println(count);\n }\n}", "public class Main {\n\tpublic static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String w = sc.next();\n int count = 0;\n while(true){\n \tString t = sc.next();\n if(t.equals(\"END_OF_TEXT\")){\n \tbreak;\n }\n if(t.equalsIgnoreCase(w)){\n \tcount++;\n }\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String w = sc.next(); int count = 0; while(true){ String t = sc.next(); if(t.equals("END_OF_TEXT")){ break; } if(t.equalsIgnoreCase(w)){ count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 11, 1, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 30, 14, 4, 18, 13, 13, 40, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 20, 31 ], [ 31, 32 ], [ 31, 33 ], [ 20, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 37, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 47, 52 ], [ 52, 53 ], [ 20, 54 ], [ 54, 55 ], [ 55, 56 ], [ 20, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 18, 63 ], [ 63, 64 ] ]
[ "import java.io.BufferedReader;\nimport java.io.FileReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\n\n\nclass Main{\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t//Scanner sc = new Scanner(new FileReader(\"sample.txt\"));\n\t\t\t\t\t\t\n\t\tString x=sc.next();\n\t\t\n\t\tString str;\n\t\tint count=0;\n\t\tfor(;!((str=sc.next()).equals(\"END_OF_TEXT\"));){\n\t\t\t\n\t\t\tif((str.equalsIgnoreCase(x)))count++;\n\t\t\t}sc.close();\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t}\n\t\t\n\t\t}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.FileReader;", "FileReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t//Scanner sc = new Scanner(new FileReader(\"sample.txt\"));\n\t\t\t\t\t\t\n\t\tString x=sc.next();\n\t\t\n\t\tString str;\n\t\tint count=0;\n\t\tfor(;!((str=sc.next()).equals(\"END_OF_TEXT\"));){\n\t\t\t\n\t\t\tif((str.equalsIgnoreCase(x)))count++;\n\t\t\t}sc.close();\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t}\n\t\t\n\t\t}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t//Scanner sc = new Scanner(new FileReader(\"sample.txt\"));\n\t\t\t\t\t\t\n\t\tString x=sc.next();\n\t\t\n\t\tString str;\n\t\tint count=0;\n\t\tfor(;!((str=sc.next()).equals(\"END_OF_TEXT\"));){\n\t\t\t\n\t\t\tif((str.equalsIgnoreCase(x)))count++;\n\t\t\t}sc.close();\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t//Scanner sc = new Scanner(new FileReader(\"sample.txt\"));\n\t\t\t\t\t\t\n\t\tString x=sc.next();\n\t\t\n\t\tString str;\n\t\tint count=0;\n\t\tfor(;!((str=sc.next()).equals(\"END_OF_TEXT\"));){\n\t\t\t\n\t\t\tif((str.equalsIgnoreCase(x)))count++;\n\t\t\t}sc.close();\n\t\t\t\n\t\t\tSystem.out.println(count);\n\t\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String x=sc.next();", "x", "sc.next()", "sc.next", "sc", "String str;", "str", "int count=0;", "count", "0", "for(;!((str=sc.next()).equals(\"END_OF_TEXT\"));){\n\t\t\t\n\t\t\tif((str.equalsIgnoreCase(x)))count++;\n\t\t\t}", ";", "!((str=sc.next()).equals(\"END_OF_TEXT\"))", "((str=sc.next()).equals(\"END_OF_TEXT\"))", "(str=sc.next()).equals", "(str=sc.next())", "str", "sc.next()", "sc.next", "sc", "\"END_OF_TEXT\"", "{\n\t\t\t\n\t\t\tif((str.equalsIgnoreCase(x)))count++;\n\t\t\t}", "{\n\t\t\t\n\t\t\tif((str.equalsIgnoreCase(x)))count++;\n\t\t\t}", "if((str.equalsIgnoreCase(x)))count++;", "(str.equalsIgnoreCase(x))", "str.equalsIgnoreCase", "str", "x", "count++", "count", "sc.close()", "sc.close", "sc", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; class Main{ public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); //Scanner sc = new Scanner(new FileReader("sample.txt")); String x=sc.next(); String str; int count=0; for(;!((str=sc.next()).equals("END_OF_TEXT"));){ if((str.equalsIgnoreCase(x)))count++; }sc.close(); System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 4, 18, 13, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 2, 13, 17, 14, 4, 18, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 2, 4, 18, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 2, 13, 4, 18, 13, 14, 2, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 2, 13, 4, 18, 13, 30, 14, 2, 2, 13, 17, 17, 30, 14, 40, 4, 18, 13, 4, 18, 13, 2, 13, 17, 9, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 128, 5 ], [ 128, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 19, 24 ], [ 15, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 33, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 41, 43 ], [ 33, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 33, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 50, 64 ], [ 64, 65 ], [ 65, 66 ], [ 50, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 71, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 68, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 81, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 80, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 98, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 113, 114 ], [ 113, 115 ], [ 105, 116 ], [ 97, 117 ], [ 117, 118 ], [ 8, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 6, 125 ], [ 125, 126 ], [ 0, 127 ], [ 127, 128 ], [ 127, 129 ] ]
[ "import java.io.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int ans = 0;\n try {\n String W = reader.readLine();\n while(true){\n String t = reader.readLine();\n String T = t + ' ';\n\n if(t.equals(\"END_OF_TEXT\")) break;\n\n for(int i = 0; i < T.length() - W.length(); i++){\n\n String S = T.substring(i, i + W.length());\n if(S.equalsIgnoreCase(W)&Character.isWhitespace(T.charAt(i+W.length()))){\n if(i - 1 >= 0){\n if(!Character.isWhitespace(T.charAt(i-1))) continue;\n }\n ans++;\n }\n }\n } \n }catch (IOException e){\n System.out.println(e);\n }\n\n System.out.println(ans);\n }\n}", "import java.io.*;", "io.*", "java", "public class Main{\n\tpublic static void main(String[] args){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int ans = 0;\n try {\n String W = reader.readLine();\n while(true){\n String t = reader.readLine();\n String T = t + ' ';\n\n if(t.equals(\"END_OF_TEXT\")) break;\n\n for(int i = 0; i < T.length() - W.length(); i++){\n\n String S = T.substring(i, i + W.length());\n if(S.equalsIgnoreCase(W)&Character.isWhitespace(T.charAt(i+W.length()))){\n if(i - 1 >= 0){\n if(!Character.isWhitespace(T.charAt(i-1))) continue;\n }\n ans++;\n }\n }\n } \n }catch (IOException e){\n System.out.println(e);\n }\n\n System.out.println(ans);\n }\n}", "Main", "public static void main(String[] args){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int ans = 0;\n try {\n String W = reader.readLine();\n while(true){\n String t = reader.readLine();\n String T = t + ' ';\n\n if(t.equals(\"END_OF_TEXT\")) break;\n\n for(int i = 0; i < T.length() - W.length(); i++){\n\n String S = T.substring(i, i + W.length());\n if(S.equalsIgnoreCase(W)&Character.isWhitespace(T.charAt(i+W.length()))){\n if(i - 1 >= 0){\n if(!Character.isWhitespace(T.charAt(i-1))) continue;\n }\n ans++;\n }\n }\n } \n }catch (IOException e){\n System.out.println(e);\n }\n\n System.out.println(ans);\n }", "main", "{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int ans = 0;\n try {\n String W = reader.readLine();\n while(true){\n String t = reader.readLine();\n String T = t + ' ';\n\n if(t.equals(\"END_OF_TEXT\")) break;\n\n for(int i = 0; i < T.length() - W.length(); i++){\n\n String S = T.substring(i, i + W.length());\n if(S.equalsIgnoreCase(W)&Character.isWhitespace(T.charAt(i+W.length()))){\n if(i - 1 >= 0){\n if(!Character.isWhitespace(T.charAt(i-1))) continue;\n }\n ans++;\n }\n }\n } \n }catch (IOException e){\n System.out.println(e);\n }\n\n System.out.println(ans);\n }", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "int ans = 0;", "ans", "0", "try {\n String W = reader.readLine();\n while(true){\n String t = reader.readLine();\n String T = t + ' ';\n\n if(t.equals(\"END_OF_TEXT\")) break;\n\n for(int i = 0; i < T.length() - W.length(); i++){\n\n String S = T.substring(i, i + W.length());\n if(S.equalsIgnoreCase(W)&Character.isWhitespace(T.charAt(i+W.length()))){\n if(i - 1 >= 0){\n if(!Character.isWhitespace(T.charAt(i-1))) continue;\n }\n ans++;\n }\n }\n } \n }catch (IOException e){\n System.out.println(e);\n }", "catch (IOException e){\n System.out.println(e);\n }", "IOException e", "{\n System.out.println(e);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n String W = reader.readLine();\n while(true){\n String t = reader.readLine();\n String T = t + ' ';\n\n if(t.equals(\"END_OF_TEXT\")) break;\n\n for(int i = 0; i < T.length() - W.length(); i++){\n\n String S = T.substring(i, i + W.length());\n if(S.equalsIgnoreCase(W)&Character.isWhitespace(T.charAt(i+W.length()))){\n if(i - 1 >= 0){\n if(!Character.isWhitespace(T.charAt(i-1))) continue;\n }\n ans++;\n }\n }\n } \n }", "String W = reader.readLine();", "W", "reader.readLine()", "reader.readLine", "reader", "while(true){\n String t = reader.readLine();\n String T = t + ' ';\n\n if(t.equals(\"END_OF_TEXT\")) break;\n\n for(int i = 0; i < T.length() - W.length(); i++){\n\n String S = T.substring(i, i + W.length());\n if(S.equalsIgnoreCase(W)&Character.isWhitespace(T.charAt(i+W.length()))){\n if(i - 1 >= 0){\n if(!Character.isWhitespace(T.charAt(i-1))) continue;\n }\n ans++;\n }\n }\n }", "true", "{\n String t = reader.readLine();\n String T = t + ' ';\n\n if(t.equals(\"END_OF_TEXT\")) break;\n\n for(int i = 0; i < T.length() - W.length(); i++){\n\n String S = T.substring(i, i + W.length());\n if(S.equalsIgnoreCase(W)&Character.isWhitespace(T.charAt(i+W.length()))){\n if(i - 1 >= 0){\n if(!Character.isWhitespace(T.charAt(i-1))) continue;\n }\n ans++;\n }\n }\n }", "String t = reader.readLine();", "t", "reader.readLine()", "reader.readLine", "reader", "String T = t + ' ';", "T", "t + ' '", "t", "' '", "if(t.equals(\"END_OF_TEXT\")) break;", "t.equals(\"END_OF_TEXT\")", "t.equals", "t", "\"END_OF_TEXT\"", "break;", "for(int i = 0; i < T.length() - W.length(); i++){\n\n String S = T.substring(i, i + W.length());\n if(S.equalsIgnoreCase(W)&Character.isWhitespace(T.charAt(i+W.length()))){\n if(i - 1 >= 0){\n if(!Character.isWhitespace(T.charAt(i-1))) continue;\n }\n ans++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < T.length() - W.length()", "i", "T.length() - W.length()", "T.length()", "T.length", "T", "W.length()", "W.length", "W", "i++", "i++", "i", "{\n\n String S = T.substring(i, i + W.length());\n if(S.equalsIgnoreCase(W)&Character.isWhitespace(T.charAt(i+W.length()))){\n if(i - 1 >= 0){\n if(!Character.isWhitespace(T.charAt(i-1))) continue;\n }\n ans++;\n }\n }", "{\n\n String S = T.substring(i, i + W.length());\n if(S.equalsIgnoreCase(W)&Character.isWhitespace(T.charAt(i+W.length()))){\n if(i - 1 >= 0){\n if(!Character.isWhitespace(T.charAt(i-1))) continue;\n }\n ans++;\n }\n }", "String S = T.substring(i, i + W.length());", "S", "T.substring(i, i + W.length())", "T.substring", "T", "i", "i + W.length()", "i", "W.length()", "W.length", "W", "if(S.equalsIgnoreCase(W)&Character.isWhitespace(T.charAt(i+W.length()))){\n if(i - 1 >= 0){\n if(!Character.isWhitespace(T.charAt(i-1))) continue;\n }\n ans++;\n }", "S.equalsIgnoreCase(W)&Character.isWhitespace(T.charAt(i+W.length()))", "S.equalsIgnoreCase(W)", "S.equalsIgnoreCase", "S", "W", "Character.isWhitespace(T.charAt(i+W.length()))", "Character.isWhitespace", "Character", "T.charAt(i+W.length())", "T.charAt", "T", "i+W.length()", "i", "W.length()", "W.length", "W", "{\n if(i - 1 >= 0){\n if(!Character.isWhitespace(T.charAt(i-1))) continue;\n }\n ans++;\n }", "if(i - 1 >= 0){\n if(!Character.isWhitespace(T.charAt(i-1))) continue;\n }", "i - 1 >= 0", "i - 1", "i", "1", "0", "{\n if(!Character.isWhitespace(T.charAt(i-1))) continue;\n }", "if(!Character.isWhitespace(T.charAt(i-1))) continue;", "!Character.isWhitespace(T.charAt(i-1))", "Character.isWhitespace(T.charAt(i-1))", "Character.isWhitespace", "Character", "T.charAt(i-1)", "T.charAt", "T", "i-1", "i", "1", "continue;", "ans++", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int ans = 0;\n try {\n String W = reader.readLine();\n while(true){\n String t = reader.readLine();\n String T = t + ' ';\n\n if(t.equals(\"END_OF_TEXT\")) break;\n\n for(int i = 0; i < T.length() - W.length(); i++){\n\n String S = T.substring(i, i + W.length());\n if(S.equalsIgnoreCase(W)&Character.isWhitespace(T.charAt(i+W.length()))){\n if(i - 1 >= 0){\n if(!Character.isWhitespace(T.charAt(i-1))) continue;\n }\n ans++;\n }\n }\n } \n }catch (IOException e){\n System.out.println(e);\n }\n\n System.out.println(ans);\n }\n}", "public class Main{\n\tpublic static void main(String[] args){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int ans = 0;\n try {\n String W = reader.readLine();\n while(true){\n String t = reader.readLine();\n String T = t + ' ';\n\n if(t.equals(\"END_OF_TEXT\")) break;\n\n for(int i = 0; i < T.length() - W.length(); i++){\n\n String S = T.substring(i, i + W.length());\n if(S.equalsIgnoreCase(W)&Character.isWhitespace(T.charAt(i+W.length()))){\n if(i - 1 >= 0){\n if(!Character.isWhitespace(T.charAt(i-1))) continue;\n }\n ans++;\n }\n }\n } \n }catch (IOException e){\n System.out.println(e);\n }\n\n System.out.println(ans);\n }\n}", "Main" ]
import java.io.*; public class Main{ public static void main(String[] args){ BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int ans = 0; try { String W = reader.readLine(); while(true){ String t = reader.readLine(); String T = t + ' '; if(t.equals("END_OF_TEXT")) break; for(int i = 0; i < T.length() - W.length(); i++){ String S = T.substring(i, i + W.length()); if(S.equalsIgnoreCase(W)&Character.isWhitespace(T.charAt(i+W.length()))){ if(i - 1 >= 0){ if(!Character.isWhitespace(T.charAt(i-1))) continue; } ans++; } } } }catch (IOException e){ System.out.println(e); } System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 40, 4, 18, 13, 13, 30, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 18, 13, 13, 41, 13, 4, 18, 13, 13, 14, 4, 18, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 75, 11 ], [ 75, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 32, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 46, 50 ], [ 50, 51 ], [ 50, 52 ], [ 38, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 38, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 14, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 12, 72 ], [ 72, 73 ], [ 0, 74 ], [ 74, 75 ], [ 74, 76 ] ]
[ "import java.util.Scanner;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString W = sc.nextLine();\n\t\tString T = \"\";\n\t\tString end = \"END_OF_TEXT\";\n\n\n\t\tint ans = 0;\n\n\t\twhile (!(T.equals(end))) {\n\t\t\tT = sc.next();\n\t\t\tPattern ptn = Pattern.compile(W, Pattern.CASE_INSENSITIVE);\n\t\t\tMatcher mc = ptn.matcher(T);\n\t\t\tif(mc.matches()){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.regex.Matcher;", "Matcher", "java.util.regex", "import java.util.regex.Pattern;", "Pattern", "java.util.regex", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString W = sc.nextLine();\n\t\tString T = \"\";\n\t\tString end = \"END_OF_TEXT\";\n\n\n\t\tint ans = 0;\n\n\t\twhile (!(T.equals(end))) {\n\t\t\tT = sc.next();\n\t\t\tPattern ptn = Pattern.compile(W, Pattern.CASE_INSENSITIVE);\n\t\t\tMatcher mc = ptn.matcher(T);\n\t\t\tif(mc.matches()){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString W = sc.nextLine();\n\t\tString T = \"\";\n\t\tString end = \"END_OF_TEXT\";\n\n\n\t\tint ans = 0;\n\n\t\twhile (!(T.equals(end))) {\n\t\t\tT = sc.next();\n\t\t\tPattern ptn = Pattern.compile(W, Pattern.CASE_INSENSITIVE);\n\t\t\tMatcher mc = ptn.matcher(T);\n\t\t\tif(mc.matches()){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString W = sc.nextLine();\n\t\tString T = \"\";\n\t\tString end = \"END_OF_TEXT\";\n\n\n\t\tint ans = 0;\n\n\t\twhile (!(T.equals(end))) {\n\t\t\tT = sc.next();\n\t\t\tPattern ptn = Pattern.compile(W, Pattern.CASE_INSENSITIVE);\n\t\t\tMatcher mc = ptn.matcher(T);\n\t\t\tif(mc.matches()){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String W = sc.nextLine();", "W", "sc.nextLine()", "sc.nextLine", "sc", "String T = \"\";", "T", "\"\"", "String end = \"END_OF_TEXT\";", "end", "\"END_OF_TEXT\"", "int ans = 0;", "ans", "0", "while (!(T.equals(end))) {\n\t\t\tT = sc.next();\n\t\t\tPattern ptn = Pattern.compile(W, Pattern.CASE_INSENSITIVE);\n\t\t\tMatcher mc = ptn.matcher(T);\n\t\t\tif(mc.matches()){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}", "!(T.equals(end))", "(T.equals(end))", "T.equals", "T", "end", "{\n\t\t\tT = sc.next();\n\t\t\tPattern ptn = Pattern.compile(W, Pattern.CASE_INSENSITIVE);\n\t\t\tMatcher mc = ptn.matcher(T);\n\t\t\tif(mc.matches()){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}", "T = sc.next()", "T", "sc.next()", "sc.next", "sc", "Pattern ptn = Pattern.compile(W, Pattern.CASE_INSENSITIVE);", "ptn", "Pattern.compile(W, Pattern.CASE_INSENSITIVE)", "Pattern.compile", "Pattern", "W", "Pattern.CASE_INSENSITIVE", "Pattern", "Pattern.CASE_INSENSITIVE", "Matcher mc = ptn.matcher(T);", "mc", "ptn.matcher(T)", "ptn.matcher", "ptn", "T", "if(mc.matches()){\n\t\t\t\tans++;\n\t\t\t}", "mc.matches()", "mc.matches", "mc", "{\n\t\t\t\tans++;\n\t\t\t}", "ans++", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString W = sc.nextLine();\n\t\tString T = \"\";\n\t\tString end = \"END_OF_TEXT\";\n\n\n\t\tint ans = 0;\n\n\t\twhile (!(T.equals(end))) {\n\t\t\tT = sc.next();\n\t\t\tPattern ptn = Pattern.compile(W, Pattern.CASE_INSENSITIVE);\n\t\t\tMatcher mc = ptn.matcher(T);\n\t\t\tif(mc.matches()){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString W = sc.nextLine();\n\t\tString T = \"\";\n\t\tString end = \"END_OF_TEXT\";\n\n\n\t\tint ans = 0;\n\n\t\twhile (!(T.equals(end))) {\n\t\t\tT = sc.next();\n\t\t\tPattern ptn = Pattern.compile(W, Pattern.CASE_INSENSITIVE);\n\t\t\tMatcher mc = ptn.matcher(T);\n\t\t\tif(mc.matches()){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n\n}", "Main" ]
import java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String W = sc.nextLine(); String T = ""; String end = "END_OF_TEXT"; int ans = 0; while (!(T.equals(end))) { T = sc.next(); Pattern ptn = Pattern.compile(W, Pattern.CASE_INSENSITIVE); Matcher mc = ptn.matcher(T); if(mc.matches()){ ans++; } } System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 42, 4, 18, 13, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 62, 8 ], [ 62, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 23, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 32, 33 ], [ 11, 34 ], [ 34, 35 ], [ 35, 36 ], [ 11, 37 ], [ 37, 38 ], [ 37, 39 ], [ 11, 40 ], [ 40, 41 ], [ 40, 42 ], [ 40, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 50, 51 ], [ 51, 52 ], [ 11, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 9, 59 ], [ 59, 60 ], [ 0, 61 ], [ 61, 62 ], [ 61, 63 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n ArrayList<String> array = new ArrayList<String>();\n String w = sc.next();\n while (sc.hasNext()) {\n array.add(sc.next());\n }\n sc.close();\n int count =0; \n for (String string : array) {\n if(string.equalsIgnoreCase(w)){\n count++;\n }\n }\n System.out.println(count);\n }\n\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n ArrayList<String> array = new ArrayList<String>();\n String w = sc.next();\n while (sc.hasNext()) {\n array.add(sc.next());\n }\n sc.close();\n int count =0; \n for (String string : array) {\n if(string.equalsIgnoreCase(w)){\n count++;\n }\n }\n System.out.println(count);\n }\n\n}", "Main", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n ArrayList<String> array = new ArrayList<String>();\n String w = sc.next();\n while (sc.hasNext()) {\n array.add(sc.next());\n }\n sc.close();\n int count =0; \n for (String string : array) {\n if(string.equalsIgnoreCase(w)){\n count++;\n }\n }\n System.out.println(count);\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n ArrayList<String> array = new ArrayList<String>();\n String w = sc.next();\n while (sc.hasNext()) {\n array.add(sc.next());\n }\n sc.close();\n int count =0; \n for (String string : array) {\n if(string.equalsIgnoreCase(w)){\n count++;\n }\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "ArrayList<String> array = new ArrayList<String>();", "array", "new ArrayList<String>()", "String w = sc.next();", "w", "sc.next()", "sc.next", "sc", "while (sc.hasNext()) {\n array.add(sc.next());\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n array.add(sc.next());\n }", "array.add(sc.next())", "array.add", "array", "sc.next()", "sc.next", "sc", "sc.close()", "sc.close", "sc", "int count =0;", "count", "0", "for (String string : array) {\n if(string.equalsIgnoreCase(w)){\n count++;\n }\n }", "String string", "array", "{\n if(string.equalsIgnoreCase(w)){\n count++;\n }\n }", "{\n if(string.equalsIgnoreCase(w)){\n count++;\n }\n }", "if(string.equalsIgnoreCase(w)){\n count++;\n }", "string.equalsIgnoreCase(w)", "string.equalsIgnoreCase", "string", "w", "{\n count++;\n }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n ArrayList<String> array = new ArrayList<String>();\n String w = sc.next();\n while (sc.hasNext()) {\n array.add(sc.next());\n }\n sc.close();\n int count =0; \n for (String string : array) {\n if(string.equalsIgnoreCase(w)){\n count++;\n }\n }\n System.out.println(count);\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n ArrayList<String> array = new ArrayList<String>();\n String w = sc.next();\n while (sc.hasNext()) {\n array.add(sc.next());\n }\n sc.close();\n int count =0; \n for (String string : array) {\n if(string.equalsIgnoreCase(w)){\n count++;\n }\n }\n System.out.println(count);\n }\n\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); ArrayList<String> array = new ArrayList<String>(); String w = sc.next(); while (sc.hasNext()) { array.add(sc.next()); } sc.close(); int count =0; for (String string : array) { if(string.equalsIgnoreCase(w)){ count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 17, 12, 13, 30, 0, 18, 36, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 20, 12, 13, 30, 0, 18, 36, 13, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 20, 28, 13, 18, 13, 13, 30, 30, 14, 4, 18, 18, 13, 13, 18, 13, 13, 30, 40, 18, 13, 13, 4, 18, 18, 13, 13, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 7, 11 ], [ 11, 12 ], [ 11, 13 ], [ 7, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 14, 22 ], [ 22, 23 ], [ 0, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 24, 28 ], [ 28, 29 ], [ 28, 30 ], [ 24, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 31, 39 ], [ 39, 40 ], [ 0, 41 ], [ 126, 42 ], [ 126, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 49, 51 ], [ 45, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 54, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 60, 65 ], [ 65, 66 ], [ 54, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 54, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 73, 83 ], [ 83, 84 ], [ 84, 85 ], [ 73, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 45, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 100, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 107, 108 ], [ 107, 109 ], [ 101, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 45, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 120, 121 ], [ 120, 122 ], [ 43, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "import java.io.*;\nimport java.util.*;\n\nclass Keyword{\n\tString str1;\n\tint count = 0;\n\n\tKeyword(String str1){\n\t\tthis.str1 = str1;\n\t}\n}\n\nclass Words{\n\tString str2;\n\tstatic List<Words> sentence = new ArrayList<Words>();\n\n\tWords(String str2){\n\t\tthis.str2 = str2;\n\t}\n}\n\npublic class Main{\n\tpublic static void main(String[] args) throws IOException{\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tKeyword x = new Keyword(br.readLine());\n\t\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tString[] arr = str.split(\" \");\n\n\t\t\tfor(int i = 0; i < arr.length; i++){\n\t\t\t\tWords.sentence.add(new Words(arr[i]));\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(Words y : Words.sentence){\n\t\t\tif(y.str2.equalsIgnoreCase(x.str1)){\n\t\t\t\tx.count++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(x.count);\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "class Keyword{\n\tString str1;\n\tint count = 0;\n\n\tKeyword(String str1){\n\t\tthis.str1 = str1;\n\t}\n}", "Keyword", "String str1;", "str1", "int count = 0;", "count", "0", "Keyword(String str1){\n\t\tthis.str1 = str1;\n\t}", "Keyword", "{\n\t\tthis.str1 = str1;\n\t}", "this.str1 = str1", "this.str1", "this", "this.str1", "str1", "String str1", "str1", "class Words{\n\tString str2;\n\tstatic List<Words> sentence = new ArrayList<Words>();\n\n\tWords(String str2){\n\t\tthis.str2 = str2;\n\t}\n}", "Words", "String str2;", "str2", "static List<Words> sentence = new ArrayList<Words>();", "sentence", "new ArrayList<Words>()", "Words(String str2){\n\t\tthis.str2 = str2;\n\t}", "Words", "{\n\t\tthis.str2 = str2;\n\t}", "this.str2 = str2", "this.str2", "this", "this.str2", "str2", "String str2", "str2", "public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tKeyword x = new Keyword(br.readLine());\n\t\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tString[] arr = str.split(\" \");\n\n\t\t\tfor(int i = 0; i < arr.length; i++){\n\t\t\t\tWords.sentence.add(new Words(arr[i]));\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(Words y : Words.sentence){\n\t\t\tif(y.str2.equalsIgnoreCase(x.str1)){\n\t\t\t\tx.count++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(x.count);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tKeyword x = new Keyword(br.readLine());\n\t\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tString[] arr = str.split(\" \");\n\n\t\t\tfor(int i = 0; i < arr.length; i++){\n\t\t\t\tWords.sentence.add(new Words(arr[i]));\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(Words y : Words.sentence){\n\t\t\tif(y.str2.equalsIgnoreCase(x.str1)){\n\t\t\t\tx.count++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(x.count);\n\t}", "main", "{\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tKeyword x = new Keyword(br.readLine());\n\t\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tString[] arr = str.split(\" \");\n\n\t\t\tfor(int i = 0; i < arr.length; i++){\n\t\t\t\tWords.sentence.add(new Words(arr[i]));\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(Words y : Words.sentence){\n\t\t\tif(y.str2.equalsIgnoreCase(x.str1)){\n\t\t\t\tx.count++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(x.count);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "Keyword x = new Keyword(br.readLine());", "x", "new Keyword(br.readLine())", "while(true){\n\t\t\tString str = br.readLine();\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tString[] arr = str.split(\" \");\n\n\t\t\tfor(int i = 0; i < arr.length; i++){\n\t\t\t\tWords.sentence.add(new Words(arr[i]));\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString str = br.readLine();\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tString[] arr = str.split(\" \");\n\n\t\t\tfor(int i = 0; i < arr.length; i++){\n\t\t\t\tWords.sentence.add(new Words(arr[i]));\n\t\t\t}\n\t\t}", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "if(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}", "str.equals(\"END_OF_TEXT\")", "str.equals", "str", "\"END_OF_TEXT\"", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "String[] arr = str.split(\" \");", "arr", "str.split(\" \")", "str.split", "str", "\" \"", "for(int i = 0; i < arr.length; i++){\n\t\t\t\tWords.sentence.add(new Words(arr[i]));\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "{\n\t\t\t\tWords.sentence.add(new Words(arr[i]));\n\t\t\t}", "{\n\t\t\t\tWords.sentence.add(new Words(arr[i]));\n\t\t\t}", "Words.sentence.add(new Words(arr[i]))", "Words.sentence.add", "Words.sentence", "Words", "Words.sentence", "new Words(arr[i])", "for(Words y : Words.sentence){\n\t\t\tif(y.str2.equalsIgnoreCase(x.str1)){\n\t\t\t\tx.count++;\n\t\t\t}\n\t\t}", "Words y", "Words.sentence", "Words", "Words.sentence", "{\n\t\t\tif(y.str2.equalsIgnoreCase(x.str1)){\n\t\t\t\tx.count++;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(y.str2.equalsIgnoreCase(x.str1)){\n\t\t\t\tx.count++;\n\t\t\t}\n\t\t}", "if(y.str2.equalsIgnoreCase(x.str1)){\n\t\t\t\tx.count++;\n\t\t\t}", "y.str2.equalsIgnoreCase(x.str1)", "y.str2.equalsIgnoreCase", "y.str2", "y", "y.str2", "x.str1", "x", "x.str1", "{\n\t\t\t\tx.count++;\n\t\t\t}", "x.count++", "x.count", "x", "x.count", "System.out.println(x.count)", "System.out.println", "System.out", "System", "System.out", "x.count", "x", "x.count", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tKeyword x = new Keyword(br.readLine());\n\t\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tString[] arr = str.split(\" \");\n\n\t\t\tfor(int i = 0; i < arr.length; i++){\n\t\t\t\tWords.sentence.add(new Words(arr[i]));\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(Words y : Words.sentence){\n\t\t\tif(y.str2.equalsIgnoreCase(x.str1)){\n\t\t\t\tx.count++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(x.count);\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tKeyword x = new Keyword(br.readLine());\n\t\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tString[] arr = str.split(\" \");\n\n\t\t\tfor(int i = 0; i < arr.length; i++){\n\t\t\t\tWords.sentence.add(new Words(arr[i]));\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(Words y : Words.sentence){\n\t\t\tif(y.str2.equalsIgnoreCase(x.str1)){\n\t\t\t\tx.count++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(x.count);\n\t}\n}", "Main" ]
import java.io.*; import java.util.*; class Keyword{ String str1; int count = 0; Keyword(String str1){ this.str1 = str1; } } class Words{ String str2; static List<Words> sentence = new ArrayList<Words>(); Words(String str2){ this.str2 = str2; } } public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Keyword x = new Keyword(br.readLine()); while(true){ String str = br.readLine(); if(str.equals("END_OF_TEXT")){ break; } String[] arr = str.split(" "); for(int i = 0; i < arr.length; i++){ Words.sentence.add(new Words(arr[i])); } } for(Words y : Words.sentence){ if(y.str2.equalsIgnoreCase(x.str1)){ x.count++; } } System.out.println(x.count); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 41, 13, 41, 13, 17, 42, 40, 13, 30, 0, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 0, 13, 17, 3, 14, 4, 18, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 93, 8 ], [ 93, 9 ], [ 9, 10 ], [ 9, 11 ], [ 93, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 14, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 39, 44 ], [ 36, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 45, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 60, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 59, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 73, 80 ], [ 72, 81 ], [ 81, 82 ], [ 82, 83 ], [ 14, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 12, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "import java.util.*;\nimport java.text.*;\n/*\nMain class for AOJ where there is no input.\n*/\npublic class Main{\n public static final String EOF = \"END_OF_TEXT\";\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String keyWord = sc.nextLine().toLowerCase();\n int count = 0;\n String[] strArr;\n boolean exit = false;\n \n while(!exit){\n strArr = sc.nextLine().split(\" \");\n for(int i = 0; i < strArr.length; i ++){\n \n //end of loop\n if(strArr[i].equals(EOF)){\n exit = true;\n break;\n }\n \n //if not the end of the string\n if(strArr[i].toLowerCase().equals(keyWord)){\n count++;\n }\n \n }\n }\n System.out.println(count);\n }//main\n \n \n}//class", "import java.util.*;", "util.*", "java", "import java.text.*;", "text.*", "java", "public class Main{\n public static final String EOF = \"END_OF_TEXT\";\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String keyWord = sc.nextLine().toLowerCase();\n int count = 0;\n String[] strArr;\n boolean exit = false;\n \n while(!exit){\n strArr = sc.nextLine().split(\" \");\n for(int i = 0; i < strArr.length; i ++){\n \n //end of loop\n if(strArr[i].equals(EOF)){\n exit = true;\n break;\n }\n \n //if not the end of the string\n if(strArr[i].toLowerCase().equals(keyWord)){\n count++;\n }\n \n }\n }\n System.out.println(count);\n }//main\n \n \n}//class", "Main", "public static final String EOF = \"END_OF_TEXT\";", "EOF", "\"END_OF_TEXT\"", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String keyWord = sc.nextLine().toLowerCase();\n int count = 0;\n String[] strArr;\n boolean exit = false;\n \n while(!exit){\n strArr = sc.nextLine().split(\" \");\n for(int i = 0; i < strArr.length; i ++){\n \n //end of loop\n if(strArr[i].equals(EOF)){\n exit = true;\n break;\n }\n \n //if not the end of the string\n if(strArr[i].toLowerCase().equals(keyWord)){\n count++;\n }\n \n }\n }\n System.out.println(count);\n }//main", "main", "{\n Scanner sc = new Scanner(System.in);\n String keyWord = sc.nextLine().toLowerCase();\n int count = 0;\n String[] strArr;\n boolean exit = false;\n \n while(!exit){\n strArr = sc.nextLine().split(\" \");\n for(int i = 0; i < strArr.length; i ++){\n \n //end of loop\n if(strArr[i].equals(EOF)){\n exit = true;\n break;\n }\n \n //if not the end of the string\n if(strArr[i].toLowerCase().equals(keyWord)){\n count++;\n }\n \n }\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String keyWord = sc.nextLine().toLowerCase();", "keyWord", "sc.nextLine().toLowerCase()", "sc.nextLine().toLowerCase", "sc.nextLine()", "sc.nextLine", "sc", "int count = 0;", "count", "0", "String[] strArr;", "strArr", "boolean exit = false;", "exit", "false", "while(!exit){\n strArr = sc.nextLine().split(\" \");\n for(int i = 0; i < strArr.length; i ++){\n \n //end of loop\n if(strArr[i].equals(EOF)){\n exit = true;\n break;\n }\n \n //if not the end of the string\n if(strArr[i].toLowerCase().equals(keyWord)){\n count++;\n }\n \n }\n }", "!exit", "exit", "{\n strArr = sc.nextLine().split(\" \");\n for(int i = 0; i < strArr.length; i ++){\n \n //end of loop\n if(strArr[i].equals(EOF)){\n exit = true;\n break;\n }\n \n //if not the end of the string\n if(strArr[i].toLowerCase().equals(keyWord)){\n count++;\n }\n \n }\n }", "strArr = sc.nextLine().split(\" \")", "strArr", "sc.nextLine().split(\" \")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\" \"", "for(int i = 0; i < strArr.length; i ++){\n \n //end of loop\n if(strArr[i].equals(EOF)){\n exit = true;\n break;\n }\n \n //if not the end of the string\n if(strArr[i].toLowerCase().equals(keyWord)){\n count++;\n }\n \n }", "int i = 0;", "int i = 0;", "i", "0", "i < strArr.length", "i", "strArr.length", "strArr", "strArr.length", "i ++", "i ++", "i", "{\n \n //end of loop\n if(strArr[i].equals(EOF)){\n exit = true;\n break;\n }\n \n //if not the end of the string\n if(strArr[i].toLowerCase().equals(keyWord)){\n count++;\n }\n \n }", "{\n \n //end of loop\n if(strArr[i].equals(EOF)){\n exit = true;\n break;\n }\n \n //if not the end of the string\n if(strArr[i].toLowerCase().equals(keyWord)){\n count++;\n }\n \n }", "if(strArr[i].equals(EOF)){\n exit = true;\n break;\n }", "strArr[i].equals(EOF)", "strArr[i].equals", "strArr[i]", "strArr", "i", "EOF", "{\n exit = true;\n break;\n }", "exit = true", "exit", "true", "break;", "if(strArr[i].toLowerCase().equals(keyWord)){\n count++;\n }", "strArr[i].toLowerCase().equals(keyWord)", "strArr[i].toLowerCase().equals", "strArr[i].toLowerCase()", "strArr[i].toLowerCase", "strArr[i]", "strArr", "i", "keyWord", "{\n count++;\n }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main{\n public static final String EOF = \"END_OF_TEXT\";\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String keyWord = sc.nextLine().toLowerCase();\n int count = 0;\n String[] strArr;\n boolean exit = false;\n \n while(!exit){\n strArr = sc.nextLine().split(\" \");\n for(int i = 0; i < strArr.length; i ++){\n \n //end of loop\n if(strArr[i].equals(EOF)){\n exit = true;\n break;\n }\n \n //if not the end of the string\n if(strArr[i].toLowerCase().equals(keyWord)){\n count++;\n }\n \n }\n }\n System.out.println(count);\n }//main\n \n \n}//class", "public class Main{\n public static final String EOF = \"END_OF_TEXT\";\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String keyWord = sc.nextLine().toLowerCase();\n int count = 0;\n String[] strArr;\n boolean exit = false;\n \n while(!exit){\n strArr = sc.nextLine().split(\" \");\n for(int i = 0; i < strArr.length; i ++){\n \n //end of loop\n if(strArr[i].equals(EOF)){\n exit = true;\n break;\n }\n \n //if not the end of the string\n if(strArr[i].toLowerCase().equals(keyWord)){\n count++;\n }\n \n }\n }\n System.out.println(count);\n }//main\n \n \n}//class", "Main" ]
import java.util.*; import java.text.*; /* Main class for AOJ where there is no input. */ public class Main{ public static final String EOF = "END_OF_TEXT"; public static void main(String[] args){ Scanner sc = new Scanner(System.in); String keyWord = sc.nextLine().toLowerCase(); int count = 0; String[] strArr; boolean exit = false; while(!exit){ strArr = sc.nextLine().split(" "); for(int i = 0; i < strArr.length; i ++){ //end of loop if(strArr[i].equals(EOF)){ exit = true; break; } //if not the end of the string if(strArr[i].toLowerCase().equals(keyWord)){ count++; } } } System.out.println(count); }//main }//class
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 20, 41, 13, 4, 18, 13, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 14, 4, 18, 18, 13, 17, 17, 3, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 66, 11 ], [ 66, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 31, 36 ], [ 28, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 37, 44 ], [ 28, 45 ], [ 45, 46 ], [ 45, 47 ], [ 45, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 50, 55 ], [ 55, 56 ], [ 14, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 12, 63 ], [ 63, 64 ], [ 0, 65 ], [ 65, 66 ], [ 65, 67 ] ]
[ "\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t\tint nCount=0;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n\t\tString strWord = br.readLine();\n\n\t\twhile(true)\n\t\t{\n\t\t\tString[] strText = br.readLine().split(\" \");\n\t\t\tif(strText[0].equals(\"END_OF_TEXT\") ) break;\n\n\t\t\tfor(String str : strText)\n\t\t\t{\n\t\t\t\tif(str.equalsIgnoreCase(strWord) ) nCount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(nCount);\n\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main{\n\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t\tint nCount=0;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n\t\tString strWord = br.readLine();\n\n\t\twhile(true)\n\t\t{\n\t\t\tString[] strText = br.readLine().split(\" \");\n\t\t\tif(strText[0].equals(\"END_OF_TEXT\") ) break;\n\n\t\t\tfor(String str : strText)\n\t\t\t{\n\t\t\t\tif(str.equalsIgnoreCase(strWord) ) nCount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(nCount);\n\n\t}\n}", "Main", "public static void main(String[] args) throws IOException\n\t{\n\t\tint nCount=0;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n\t\tString strWord = br.readLine();\n\n\t\twhile(true)\n\t\t{\n\t\t\tString[] strText = br.readLine().split(\" \");\n\t\t\tif(strText[0].equals(\"END_OF_TEXT\") ) break;\n\n\t\t\tfor(String str : strText)\n\t\t\t{\n\t\t\t\tif(str.equalsIgnoreCase(strWord) ) nCount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(nCount);\n\n\t}", "main", "{\n\t\tint nCount=0;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n\t\tString strWord = br.readLine();\n\n\t\twhile(true)\n\t\t{\n\t\t\tString[] strText = br.readLine().split(\" \");\n\t\t\tif(strText[0].equals(\"END_OF_TEXT\") ) break;\n\n\t\t\tfor(String str : strText)\n\t\t\t{\n\t\t\t\tif(str.equalsIgnoreCase(strWord) ) nCount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(nCount);\n\n\t}", "int nCount=0;", "nCount", "0", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );", "br", "new BufferedReader(new InputStreamReader(System.in) )", "String strWord = br.readLine();", "strWord", "br.readLine()", "br.readLine", "br", "while(true)\n\t\t{\n\t\t\tString[] strText = br.readLine().split(\" \");\n\t\t\tif(strText[0].equals(\"END_OF_TEXT\") ) break;\n\n\t\t\tfor(String str : strText)\n\t\t\t{\n\t\t\t\tif(str.equalsIgnoreCase(strWord) ) nCount++;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString[] strText = br.readLine().split(\" \");\n\t\t\tif(strText[0].equals(\"END_OF_TEXT\") ) break;\n\n\t\t\tfor(String str : strText)\n\t\t\t{\n\t\t\t\tif(str.equalsIgnoreCase(strWord) ) nCount++;\n\t\t\t}\n\t\t}", "String[] strText = br.readLine().split(\" \");", "strText", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "if(strText[0].equals(\"END_OF_TEXT\") ) break;", "strText[0].equals(\"END_OF_TEXT\")", "strText[0].equals", "strText[0]", "strText", "0", "\"END_OF_TEXT\"", "break;", "for(String str : strText)\n\t\t\t{\n\t\t\t\tif(str.equalsIgnoreCase(strWord) ) nCount++;\n\t\t\t}", "String str", "strText", "{\n\t\t\t\tif(str.equalsIgnoreCase(strWord) ) nCount++;\n\t\t\t}", "{\n\t\t\t\tif(str.equalsIgnoreCase(strWord) ) nCount++;\n\t\t\t}", "if(str.equalsIgnoreCase(strWord) ) nCount++;", "str.equalsIgnoreCase(strWord)", "str.equalsIgnoreCase", "str", "strWord", "nCount++", "nCount", "System.out.println(nCount)", "System.out.println", "System.out", "System", "System.out", "nCount", "String[] args", "args", "public class Main{\n\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t\tint nCount=0;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n\t\tString strWord = br.readLine();\n\n\t\twhile(true)\n\t\t{\n\t\t\tString[] strText = br.readLine().split(\" \");\n\t\t\tif(strText[0].equals(\"END_OF_TEXT\") ) break;\n\n\t\t\tfor(String str : strText)\n\t\t\t{\n\t\t\t\tif(str.equalsIgnoreCase(strWord) ) nCount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(nCount);\n\n\t}\n}", "public class Main{\n\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t\tint nCount=0;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n\t\tString strWord = br.readLine();\n\n\t\twhile(true)\n\t\t{\n\t\t\tString[] strText = br.readLine().split(\" \");\n\t\t\tif(strText[0].equals(\"END_OF_TEXT\") ) break;\n\n\t\t\tfor(String str : strText)\n\t\t\t{\n\t\t\t\tif(str.equalsIgnoreCase(strWord) ) nCount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(nCount);\n\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) throws IOException { int nCount=0; BufferedReader br = new BufferedReader(new InputStreamReader(System.in) ); String strWord = br.readLine(); while(true) { String[] strText = br.readLine().split(" "); if(strText[0].equals("END_OF_TEXT") ) break; for(String str : strText) { if(str.equalsIgnoreCase(strWord) ) nCount++; } } System.out.println(nCount); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 4, 18, 13, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 25, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 42, 43 ], [ 11, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 9, 50 ], [ 50, 51 ] ]
[ "import java.util.*;\nimport java.text.*;\n\nclass Main {\n public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n String w = sc.next().toLowerCase();\n int c = 0;\n while(sc.hasNext()) {\n String v = sc.next().toLowerCase();\n if(w.equals(v)) c++;\n }\n System.out.println(c);\n }\n}", "import java.util.*;", "util.*", "java", "import java.text.*;", "text.*", "java", "class Main {\n public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n String w = sc.next().toLowerCase();\n int c = 0;\n while(sc.hasNext()) {\n String v = sc.next().toLowerCase();\n if(w.equals(v)) c++;\n }\n System.out.println(c);\n }\n}", "Main", "public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n String w = sc.next().toLowerCase();\n int c = 0;\n while(sc.hasNext()) {\n String v = sc.next().toLowerCase();\n if(w.equals(v)) c++;\n }\n System.out.println(c);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String w = sc.next().toLowerCase();\n int c = 0;\n while(sc.hasNext()) {\n String v = sc.next().toLowerCase();\n if(w.equals(v)) c++;\n }\n System.out.println(c);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String w = sc.next().toLowerCase();", "w", "sc.next().toLowerCase()", "sc.next().toLowerCase", "sc.next()", "sc.next", "sc", "int c = 0;", "c", "0", "while(sc.hasNext()) {\n String v = sc.next().toLowerCase();\n if(w.equals(v)) c++;\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n String v = sc.next().toLowerCase();\n if(w.equals(v)) c++;\n }", "String v = sc.next().toLowerCase();", "v", "sc.next().toLowerCase()", "sc.next().toLowerCase", "sc.next()", "sc.next", "sc", "if(w.equals(v)) c++;", "w.equals(v)", "w.equals", "w", "v", "c++", "c", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "String[]args", "args" ]
import java.util.*; import java.text.*; class Main { public static void main(String[]args)throws Exception { Scanner sc = new Scanner(System.in); String w = sc.next().toLowerCase(); int c = 0; while(sc.hasNext()) { String v = sc.next().toLowerCase(); if(w.equals(v)) c++; } System.out.println(c); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 42, 40, 4, 18, 13, 17, 30, 14, 4, 18, 13, 13, 40, 13, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 56, 5 ], [ 56, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 37, 38 ], [ 31, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 8, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 8, 50 ], [ 50, 51 ], [ 51, 52 ], [ 6, 53 ], [ 53, 54 ], [ 0, 55 ], [ 55, 56 ], [ 55, 57 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int cnt = 0;\n String target = sc.next();\n String input = sc.next();\n\n while (!input.equals(\"END_OF_TEXT\")) {\n if (input.equalsIgnoreCase(target)) cnt++;\n input = sc.next();\n }\n\n System.out.println(cnt);\n\n sc.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int cnt = 0;\n String target = sc.next();\n String input = sc.next();\n\n while (!input.equals(\"END_OF_TEXT\")) {\n if (input.equalsIgnoreCase(target)) cnt++;\n input = sc.next();\n }\n\n System.out.println(cnt);\n\n sc.close();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int cnt = 0;\n String target = sc.next();\n String input = sc.next();\n\n while (!input.equals(\"END_OF_TEXT\")) {\n if (input.equalsIgnoreCase(target)) cnt++;\n input = sc.next();\n }\n\n System.out.println(cnt);\n\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int cnt = 0;\n String target = sc.next();\n String input = sc.next();\n\n while (!input.equals(\"END_OF_TEXT\")) {\n if (input.equalsIgnoreCase(target)) cnt++;\n input = sc.next();\n }\n\n System.out.println(cnt);\n\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int cnt = 0;", "cnt", "0", "String target = sc.next();", "target", "sc.next()", "sc.next", "sc", "String input = sc.next();", "input", "sc.next()", "sc.next", "sc", "while (!input.equals(\"END_OF_TEXT\")) {\n if (input.equalsIgnoreCase(target)) cnt++;\n input = sc.next();\n }", "!input.equals(\"END_OF_TEXT\")", "input.equals(\"END_OF_TEXT\")", "input.equals", "input", "\"END_OF_TEXT\"", "{\n if (input.equalsIgnoreCase(target)) cnt++;\n input = sc.next();\n }", "if (input.equalsIgnoreCase(target)) cnt++;", "input.equalsIgnoreCase(target)", "input.equalsIgnoreCase", "input", "target", "cnt++", "cnt", "input = sc.next()", "input", "sc.next()", "sc.next", "sc", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int cnt = 0;\n String target = sc.next();\n String input = sc.next();\n\n while (!input.equals(\"END_OF_TEXT\")) {\n if (input.equalsIgnoreCase(target)) cnt++;\n input = sc.next();\n }\n\n System.out.println(cnt);\n\n sc.close();\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int cnt = 0;\n String target = sc.next();\n String input = sc.next();\n\n while (!input.equals(\"END_OF_TEXT\")) {\n if (input.equalsIgnoreCase(target)) cnt++;\n input = sc.next();\n }\n\n System.out.println(cnt);\n\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int cnt = 0; String target = sc.next(); String input = sc.next(); while (!input.equals("END_OF_TEXT")) { if (input.equalsIgnoreCase(target)) cnt++; input = sc.next(); } System.out.println(cnt); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 14, 4, 18, 18, 13, 17, 17, 30, 3, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 17, 29 ], [ 29, 30 ], [ 17, 31 ], [ 31, 32 ], [ 31, 33 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 36, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 36, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 48, 55 ], [ 55, 56 ], [ 36, 57 ], [ 57, 58 ], [ 57, 59 ], [ 57, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 62, 67 ], [ 67, 68 ], [ 68, 69 ], [ 17, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 15, 76 ], [ 76, 77 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\n\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString str1 = br.readLine();\n\n\t\tString str2;\n\n\t\tint count =0;\n\n\t\twhile (true) {\n\n\t\t\tstr2 = br.readLine();\n\t\t\tString[] st = str2.split(\" \");\n\n\t\t\tif(st[0].equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t\tfor(String s: st){\n\t\t\t\t\tif(s.equalsIgnoreCase(str1)){\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n }\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString str1 = br.readLine();\n\n\t\tString str2;\n\n\t\tint count =0;\n\n\t\twhile (true) {\n\n\t\t\tstr2 = br.readLine();\n\t\t\tString[] st = str2.split(\" \");\n\n\t\t\tif(st[0].equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t\tfor(String s: st){\n\t\t\t\t\tif(s.equalsIgnoreCase(str1)){\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n }\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString str1 = br.readLine();\n\n\t\tString str2;\n\n\t\tint count =0;\n\n\t\twhile (true) {\n\n\t\t\tstr2 = br.readLine();\n\t\t\tString[] st = str2.split(\" \");\n\n\t\t\tif(st[0].equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t\tfor(String s: st){\n\t\t\t\t\tif(s.equalsIgnoreCase(str1)){\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n }", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString str1 = br.readLine();\n\n\t\tString str2;\n\n\t\tint count =0;\n\n\t\twhile (true) {\n\n\t\t\tstr2 = br.readLine();\n\t\t\tString[] st = str2.split(\" \");\n\n\t\t\tif(st[0].equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t\tfor(String s: st){\n\t\t\t\t\tif(s.equalsIgnoreCase(str1)){\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String str1 = br.readLine();", "str1", "br.readLine()", "br.readLine", "br", "String str2;", "str2", "int count =0;", "count", "0", "while (true) {\n\n\t\t\tstr2 = br.readLine();\n\t\t\tString[] st = str2.split(\" \");\n\n\t\t\tif(st[0].equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t\tfor(String s: st){\n\t\t\t\t\tif(s.equalsIgnoreCase(str1)){\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}", "true", "{\n\n\t\t\tstr2 = br.readLine();\n\t\t\tString[] st = str2.split(\" \");\n\n\t\t\tif(st[0].equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t\tfor(String s: st){\n\t\t\t\t\tif(s.equalsIgnoreCase(str1)){\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}", "str2 = br.readLine()", "str2", "br.readLine()", "br.readLine", "br", "String[] st = str2.split(\" \");", "st", "str2.split(\" \")", "str2.split", "str2", "\" \"", "if(st[0].equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}", "st[0].equals(\"END_OF_TEXT\")", "st[0].equals", "st[0]", "st", "0", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for(String s: st){\n\t\t\t\t\tif(s.equalsIgnoreCase(str1)){\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}\n\t\t\t\t}", "String s", "st", "{\n\t\t\t\t\tif(s.equalsIgnoreCase(str1)){\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif(s.equalsIgnoreCase(str1)){\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}\n\t\t\t\t}", "if(s.equalsIgnoreCase(str1)){\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}", "s.equalsIgnoreCase(str1)", "s.equalsIgnoreCase", "s", "str1", "{\n\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Scanner scan = new Scanner(System.in); String str1 = br.readLine(); String str2; int count =0; while (true) { str2 = br.readLine(); String[] st = str2.split(" "); if(st[0].equals("END_OF_TEXT")){ break; } for(String s: st){ if(s.equalsIgnoreCase(str1)){ count++; } } } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 28, 13, 13, 30, 30, 14, 2, 4, 18, 13, 13, 2, 4, 18, 13, 4, 18, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 82, 11 ], [ 82, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 28, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 28, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 28, 52 ], [ 52, 53 ], [ 52, 54 ], [ 52, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 58, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 57, 70 ], [ 70, 71 ], [ 71, 72 ], [ 14, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 12, 79 ], [ 79, 80 ], [ 0, 81 ], [ 81, 82 ], [ 81, 83 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n int sum = 0;\n while (true) {\n String line = br.readLine();\n if (line.equals(\"END_OF_TEXT\")) {\n break;\n }\n line = line.toLowerCase();\n String[] lines=line.split(\" \");\n for(String s:lines){\n if(s.contains(w)&&s.length()==w.length()){\n sum++;\n }\n }\n }\n System.out.println(sum);\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n int sum = 0;\n while (true) {\n String line = br.readLine();\n if (line.equals(\"END_OF_TEXT\")) {\n break;\n }\n line = line.toLowerCase();\n String[] lines=line.split(\" \");\n for(String s:lines){\n if(s.contains(w)&&s.length()==w.length()){\n sum++;\n }\n }\n }\n System.out.println(sum);\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n int sum = 0;\n while (true) {\n String line = br.readLine();\n if (line.equals(\"END_OF_TEXT\")) {\n break;\n }\n line = line.toLowerCase();\n String[] lines=line.split(\" \");\n for(String s:lines){\n if(s.contains(w)&&s.length()==w.length()){\n sum++;\n }\n }\n }\n System.out.println(sum);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n int sum = 0;\n while (true) {\n String line = br.readLine();\n if (line.equals(\"END_OF_TEXT\")) {\n break;\n }\n line = line.toLowerCase();\n String[] lines=line.split(\" \");\n for(String s:lines){\n if(s.contains(w)&&s.length()==w.length()){\n sum++;\n }\n }\n }\n System.out.println(sum);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String w = br.readLine();", "w", "br.readLine()", "br.readLine", "br", "int sum = 0;", "sum", "0", "while (true) {\n String line = br.readLine();\n if (line.equals(\"END_OF_TEXT\")) {\n break;\n }\n line = line.toLowerCase();\n String[] lines=line.split(\" \");\n for(String s:lines){\n if(s.contains(w)&&s.length()==w.length()){\n sum++;\n }\n }\n }", "true", "{\n String line = br.readLine();\n if (line.equals(\"END_OF_TEXT\")) {\n break;\n }\n line = line.toLowerCase();\n String[] lines=line.split(\" \");\n for(String s:lines){\n if(s.contains(w)&&s.length()==w.length()){\n sum++;\n }\n }\n }", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "if (line.equals(\"END_OF_TEXT\")) {\n break;\n }", "line.equals(\"END_OF_TEXT\")", "line.equals", "line", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "line = line.toLowerCase()", "line", "line.toLowerCase()", "line.toLowerCase", "line", "String[] lines=line.split(\" \");", "lines", "line.split(\" \")", "line.split", "line", "\" \"", "for(String s:lines){\n if(s.contains(w)&&s.length()==w.length()){\n sum++;\n }\n }", "String s", "lines", "{\n if(s.contains(w)&&s.length()==w.length()){\n sum++;\n }\n }", "{\n if(s.contains(w)&&s.length()==w.length()){\n sum++;\n }\n }", "if(s.contains(w)&&s.length()==w.length()){\n sum++;\n }", "s.contains(w)&&s.length()==w.length()", "s.contains(w)", "s.contains", "s", "w", "s.length()==w.length()", "s.length()", "s.length", "s", "w.length()", "w.length", "w", "{\n sum++;\n }", "sum++", "sum", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n int sum = 0;\n while (true) {\n String line = br.readLine();\n if (line.equals(\"END_OF_TEXT\")) {\n break;\n }\n line = line.toLowerCase();\n String[] lines=line.split(\" \");\n for(String s:lines){\n if(s.contains(w)&&s.length()==w.length()){\n sum++;\n }\n }\n }\n System.out.println(sum);\n }\n}", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n int sum = 0;\n while (true) {\n String line = br.readLine();\n if (line.equals(\"END_OF_TEXT\")) {\n break;\n }\n line = line.toLowerCase();\n String[] lines=line.split(\" \");\n for(String s:lines){\n if(s.contains(w)&&s.length()==w.length()){\n sum++;\n }\n }\n }\n System.out.println(sum);\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String w = br.readLine(); int sum = 0; while (true) { String line = br.readLine(); if (line.equals("END_OF_TEXT")) { break; } line = line.toLowerCase(); String[] lines=line.split(" "); for(String s:lines){ if(s.contains(w)&&s.length()==w.length()){ sum++; } } } System.out.println(sum); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 2, 2, 4, 18, 17, 13, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 35, 37 ], [ 14, 38 ], [ 38, 39 ], [ 38, 40 ], [ 14, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 42, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 52, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 57, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 62, 66 ], [ 50, 67 ], [ 67, 68 ], [ 49, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 49, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 75, 85 ], [ 85, 86 ], [ 86, 87 ], [ 75, 88 ], [ 89, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 90, 97 ], [ 97, 98 ], [ 98, 99 ], [ 14, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 12, 106 ], [ 106, 107 ] ]
[ "import java.util.*;\nimport java.io.*;\nimport java.util.regex.*;\n\nclass Main{\n public static void main(String args[])throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String w = br.readLine();\t//キーボードで入力された1行目の文字を読み取る\n String t;\n String upper;\n String lower;\n int count = 0;\n int i = 0;\n int j = 0;\n \n while((t=br.readLine())!=null){\n if(\"END_OF_TEXT\".equals(t) || w.length()>10 || t.length()>1000){\n break; //END_OF_TEXTが入力されたらwhileを抜ける\n }\n String[] str = t.split(\" \");\n for(int k=0; k<str.length; k++){\n \tif(str[k].equalsIgnoreCase(w)){\n \t\tcount++;\n \t}\n }\n }\n System.out.println(count);\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.util.regex.*;", "regex.*", "java.util", "class Main{\n public static void main(String args[])throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String w = br.readLine();\t//キーボードで入力された1行目の文字を読み取る\n String t;\n String upper;\n String lower;\n int count = 0;\n int i = 0;\n int j = 0;\n \n while((t=br.readLine())!=null){\n if(\"END_OF_TEXT\".equals(t) || w.length()>10 || t.length()>1000){\n break; //END_OF_TEXTが入力されたらwhileを抜ける\n }\n String[] str = t.split(\" \");\n for(int k=0; k<str.length; k++){\n \tif(str[k].equalsIgnoreCase(w)){\n \t\tcount++;\n \t}\n }\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String args[])throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String w = br.readLine();\t//キーボードで入力された1行目の文字を読み取る\n String t;\n String upper;\n String lower;\n int count = 0;\n int i = 0;\n int j = 0;\n \n while((t=br.readLine())!=null){\n if(\"END_OF_TEXT\".equals(t) || w.length()>10 || t.length()>1000){\n break; //END_OF_TEXTが入力されたらwhileを抜ける\n }\n String[] str = t.split(\" \");\n for(int k=0; k<str.length; k++){\n \tif(str[k].equalsIgnoreCase(w)){\n \t\tcount++;\n \t}\n }\n }\n System.out.println(count);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String w = br.readLine();\t//キーボードで入力された1行目の文字を読み取る\n String t;\n String upper;\n String lower;\n int count = 0;\n int i = 0;\n int j = 0;\n \n while((t=br.readLine())!=null){\n if(\"END_OF_TEXT\".equals(t) || w.length()>10 || t.length()>1000){\n break; //END_OF_TEXTが入力されたらwhileを抜ける\n }\n String[] str = t.split(\" \");\n for(int k=0; k<str.length; k++){\n \tif(str[k].equalsIgnoreCase(w)){\n \t\tcount++;\n \t}\n }\n }\n System.out.println(count);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "String w = br.readLine();", "w", "br.readLine()", "br.readLine", "br", "String t;", "t", "String upper;", "upper", "String lower;", "lower", "int count = 0;", "count", "0", "int i = 0;", "i", "0", "int j = 0;", "j", "0", "while((t=br.readLine())!=null){\n if(\"END_OF_TEXT\".equals(t) || w.length()>10 || t.length()>1000){\n break; //END_OF_TEXTが入力されたらwhileを抜ける\n }\n String[] str = t.split(\" \");\n for(int k=0; k<str.length; k++){\n \tif(str[k].equalsIgnoreCase(w)){\n \t\tcount++;\n \t}\n }\n }", "(t=br.readLine())!=null", "(t=br.readLine())", "t", "br.readLine()", "br.readLine", "br", "null", "{\n if(\"END_OF_TEXT\".equals(t) || w.length()>10 || t.length()>1000){\n break; //END_OF_TEXTが入力されたらwhileを抜ける\n }\n String[] str = t.split(\" \");\n for(int k=0; k<str.length; k++){\n \tif(str[k].equalsIgnoreCase(w)){\n \t\tcount++;\n \t}\n }\n }", "if(\"END_OF_TEXT\".equals(t) || w.length()>10 || t.length()>1000){\n break; //END_OF_TEXTが入力されたらwhileを抜ける\n }", "\"END_OF_TEXT\".equals(t) || w.length()>10 || t.length()>1000", "\"END_OF_TEXT\".equals(t) || w.length()>10 || t.length()>1000", "\"END_OF_TEXT\".equals(t)", "\"END_OF_TEXT\".equals", "\"END_OF_TEXT\"", "t", "w.length()>10", "w.length()", "w.length", "w", "10", "t.length()>1000", "t.length()", "t.length", "t", "1000", "{\n break; //END_OF_TEXTが入力されたらwhileを抜ける\n }", "break; //END_OF_TEXTが入力されたらwhileを抜ける", "String[] str = t.split(\" \");", "str", "t.split(\" \")", "t.split", "t", "\" \"", "for(int k=0; k<str.length; k++){\n \tif(str[k].equalsIgnoreCase(w)){\n \t\tcount++;\n \t}\n }", "int k=0;", "int k=0;", "k", "0", "k<str.length", "k", "str.length", "str", "str.length", "k++", "k++", "k", "{\n \tif(str[k].equalsIgnoreCase(w)){\n \t\tcount++;\n \t}\n }", "{\n \tif(str[k].equalsIgnoreCase(w)){\n \t\tcount++;\n \t}\n }", "if(str[k].equalsIgnoreCase(w)){\n \t\tcount++;\n \t}", "str[k].equalsIgnoreCase(w)", "str[k].equalsIgnoreCase", "str[k]", "str", "k", "w", "{\n \t\tcount++;\n \t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String args[]", "args" ]
import java.util.*; import java.io.*; import java.util.regex.*; class Main{ public static void main(String args[])throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); String w = br.readLine(); //キーボードで入力された1行目の文字を読み取る String t; String upper; String lower; int count = 0; int i = 0; int j = 0; while((t=br.readLine())!=null){ if("END_OF_TEXT".equals(t) || w.length()>10 || t.length()>1000){ break; //END_OF_TEXTが入力されたらwhileを抜ける } String[] str = t.split(" "); for(int k=0; k<str.length; k++){ if(str[k].equalsIgnoreCase(w)){ count++; } } } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 2, 17, 13, 41, 13, 17, 14, 4, 18, 4, 18, 13, 13, 30, 41, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 101, 8 ], [ 101, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 27, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 11, 45 ], [ 45, 46 ], [ 45, 47 ], [ 11, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 49, 54 ], [ 48, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 58, 63 ], [ 55, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 64, 74 ], [ 74, 75 ], [ 75, 76 ], [ 64, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 79, 86 ], [ 86, 87 ], [ 87, 88 ], [ 11, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 11, 95 ], [ 95, 96 ], [ 96, 97 ], [ 9, 98 ], [ 98, 99 ], [ 0, 100 ], [ 100, 101 ], [ 100, 102 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString x = sc.nextLine().toLowerCase();\n\t\tString line = \"\";\n\t\twhile(true) {\n\t\t\tString tmp = sc.nextLine();\n\t\t\tif(tmp.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tline += \" \" + tmp;\n\t\t}\n\n\t\tint count = 0;\n\n\t\tif(line.toLowerCase().contains(x)) {\n\t\t\tString[] tmp = line.toLowerCase().split(\" \");\n\t\t\tfor(int i=0;i<tmp.length;i++) {\n\t\t\t\tif(tmp[i].equals(x)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t\tsc.close();\n\t}\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString x = sc.nextLine().toLowerCase();\n\t\tString line = \"\";\n\t\twhile(true) {\n\t\t\tString tmp = sc.nextLine();\n\t\t\tif(tmp.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tline += \" \" + tmp;\n\t\t}\n\n\t\tint count = 0;\n\n\t\tif(line.toLowerCase().contains(x)) {\n\t\t\tString[] tmp = line.toLowerCase().split(\" \");\n\t\t\tfor(int i=0;i<tmp.length;i++) {\n\t\t\t\tif(tmp[i].equals(x)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString x = sc.nextLine().toLowerCase();\n\t\tString line = \"\";\n\t\twhile(true) {\n\t\t\tString tmp = sc.nextLine();\n\t\t\tif(tmp.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tline += \" \" + tmp;\n\t\t}\n\n\t\tint count = 0;\n\n\t\tif(line.toLowerCase().contains(x)) {\n\t\t\tString[] tmp = line.toLowerCase().split(\" \");\n\t\t\tfor(int i=0;i<tmp.length;i++) {\n\t\t\t\tif(tmp[i].equals(x)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t\tsc.close();\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString x = sc.nextLine().toLowerCase();\n\t\tString line = \"\";\n\t\twhile(true) {\n\t\t\tString tmp = sc.nextLine();\n\t\t\tif(tmp.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tline += \" \" + tmp;\n\t\t}\n\n\t\tint count = 0;\n\n\t\tif(line.toLowerCase().contains(x)) {\n\t\t\tString[] tmp = line.toLowerCase().split(\" \");\n\t\t\tfor(int i=0;i<tmp.length;i++) {\n\t\t\t\tif(tmp[i].equals(x)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String x = sc.nextLine().toLowerCase();", "x", "sc.nextLine().toLowerCase()", "sc.nextLine().toLowerCase", "sc.nextLine()", "sc.nextLine", "sc", "String line = \"\";", "line", "\"\"", "while(true) {\n\t\t\tString tmp = sc.nextLine();\n\t\t\tif(tmp.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tline += \" \" + tmp;\n\t\t}", "true", "{\n\t\t\tString tmp = sc.nextLine();\n\t\t\tif(tmp.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tline += \" \" + tmp;\n\t\t}", "String tmp = sc.nextLine();", "tmp", "sc.nextLine()", "sc.nextLine", "sc", "if(tmp.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}", "tmp.equals(\"END_OF_TEXT\")", "tmp.equals", "tmp", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "line += \" \" + tmp", "line", "\" \" + tmp", "\" \"", "tmp", "int count = 0;", "count", "0", "if(line.toLowerCase().contains(x)) {\n\t\t\tString[] tmp = line.toLowerCase().split(\" \");\n\t\t\tfor(int i=0;i<tmp.length;i++) {\n\t\t\t\tif(tmp[i].equals(x)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "line.toLowerCase().contains(x)", "line.toLowerCase().contains", "line.toLowerCase()", "line.toLowerCase", "line", "x", "{\n\t\t\tString[] tmp = line.toLowerCase().split(\" \");\n\t\t\tfor(int i=0;i<tmp.length;i++) {\n\t\t\t\tif(tmp[i].equals(x)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String[] tmp = line.toLowerCase().split(\" \");", "tmp", "line.toLowerCase().split(\" \")", "line.toLowerCase().split", "line.toLowerCase()", "line.toLowerCase", "line", "\" \"", "for(int i=0;i<tmp.length;i++) {\n\t\t\t\tif(tmp[i].equals(x)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<tmp.length", "i", "tmp.length", "tmp", "tmp.length", "i++", "i++", "i", "{\n\t\t\t\tif(tmp[i].equals(x)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(tmp[i].equals(x)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "if(tmp[i].equals(x)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}", "tmp[i].equals(x)", "tmp[i].equals", "tmp[i]", "tmp", "i", "x", "{\n\t\t\t\t\tcount++;\n\t\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString x = sc.nextLine().toLowerCase();\n\t\tString line = \"\";\n\t\twhile(true) {\n\t\t\tString tmp = sc.nextLine();\n\t\t\tif(tmp.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tline += \" \" + tmp;\n\t\t}\n\n\t\tint count = 0;\n\n\t\tif(line.toLowerCase().contains(x)) {\n\t\t\tString[] tmp = line.toLowerCase().split(\" \");\n\t\t\tfor(int i=0;i<tmp.length;i++) {\n\t\t\t\tif(tmp[i].equals(x)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t\tsc.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString x = sc.nextLine().toLowerCase();\n\t\tString line = \"\";\n\t\twhile(true) {\n\t\t\tString tmp = sc.nextLine();\n\t\t\tif(tmp.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tline += \" \" + tmp;\n\t\t}\n\n\t\tint count = 0;\n\n\t\tif(line.toLowerCase().contains(x)) {\n\t\t\tString[] tmp = line.toLowerCase().split(\" \");\n\t\t\tfor(int i=0;i<tmp.length;i++) {\n\t\t\t\tif(tmp[i].equals(x)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException{ Scanner sc = new Scanner(System.in); String x = sc.nextLine().toLowerCase(); String line = ""; while(true) { String tmp = sc.nextLine(); if(tmp.equals("END_OF_TEXT")) { break; } line += " " + tmp; } int count = 0; if(line.toLowerCase().contains(x)) { String[] tmp = line.toLowerCase().split(" "); for(int i=0;i<tmp.length;i++) { if(tmp[i].equals(x)) { count++; } } } System.out.println(count); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 14, 4, 18, 18, 13, 17, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 13, 4, 18, 18, 13, 13, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 27, 32 ], [ 24, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 33, 40 ], [ 40, 41 ], [ 24, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 42, 52 ], [ 52, 53 ], [ 53, 54 ], [ 42, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 57, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 8, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 6, 76 ], [ 76, 77 ] ]
[ "import java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString w = sc.nextLine().toLowerCase();\n\t\tint count=0;\n\t\t\n\t\twhile(true){\n\t\t\tString[] line = sc.nextLine().split(\" \");\n\t\t\tif(line[0].equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i=0;i<line.length;i++){\n\t\t\t\tif(w.equals(line[i].toLowerCase())){\n\t\t\t\t\tcount+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}\t", "import java.util.*;", "util.*", "java", "class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString w = sc.nextLine().toLowerCase();\n\t\tint count=0;\n\t\t\n\t\twhile(true){\n\t\t\tString[] line = sc.nextLine().split(\" \");\n\t\t\tif(line[0].equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i=0;i<line.length;i++){\n\t\t\t\tif(w.equals(line[i].toLowerCase())){\n\t\t\t\t\tcount+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString w = sc.nextLine().toLowerCase();\n\t\tint count=0;\n\t\t\n\t\twhile(true){\n\t\t\tString[] line = sc.nextLine().split(\" \");\n\t\t\tif(line[0].equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i=0;i<line.length;i++){\n\t\t\t\tif(w.equals(line[i].toLowerCase())){\n\t\t\t\t\tcount+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString w = sc.nextLine().toLowerCase();\n\t\tint count=0;\n\t\t\n\t\twhile(true){\n\t\t\tString[] line = sc.nextLine().split(\" \");\n\t\t\tif(line[0].equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i=0;i<line.length;i++){\n\t\t\t\tif(w.equals(line[i].toLowerCase())){\n\t\t\t\t\tcount+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String w = sc.nextLine().toLowerCase();", "w", "sc.nextLine().toLowerCase()", "sc.nextLine().toLowerCase", "sc.nextLine()", "sc.nextLine", "sc", "int count=0;", "count", "0", "while(true){\n\t\t\tString[] line = sc.nextLine().split(\" \");\n\t\t\tif(line[0].equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i=0;i<line.length;i++){\n\t\t\t\tif(w.equals(line[i].toLowerCase())){\n\t\t\t\t\tcount+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString[] line = sc.nextLine().split(\" \");\n\t\t\tif(line[0].equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i=0;i<line.length;i++){\n\t\t\t\tif(w.equals(line[i].toLowerCase())){\n\t\t\t\t\tcount+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String[] line = sc.nextLine().split(\" \");", "line", "sc.nextLine().split(\" \")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\" \"", "if(line[0].equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}", "line[0].equals(\"END_OF_TEXT\")", "line[0].equals", "line[0]", "line", "0", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for(int i=0;i<line.length;i++){\n\t\t\t\tif(w.equals(line[i].toLowerCase())){\n\t\t\t\t\tcount+=1;\n\t\t\t\t}\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<line.length", "i", "line.length", "line", "line.length", "i++", "i++", "i", "{\n\t\t\t\tif(w.equals(line[i].toLowerCase())){\n\t\t\t\t\tcount+=1;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(w.equals(line[i].toLowerCase())){\n\t\t\t\t\tcount+=1;\n\t\t\t\t}\n\t\t\t}", "if(w.equals(line[i].toLowerCase())){\n\t\t\t\t\tcount+=1;\n\t\t\t\t}", "w.equals(line[i].toLowerCase())", "w.equals", "w", "line[i].toLowerCase()", "line[i].toLowerCase", "line[i]", "line", "i", "{\n\t\t\t\t\tcount+=1;\n\t\t\t\t}", "count+=1", "count", "1", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String w = sc.nextLine().toLowerCase(); int count=0; while(true){ String[] line = sc.nextLine().split(" "); if(line[0].equals("END_OF_TEXT")){ break; } for(int i=0;i<line.length;i++){ if(w.equals(line[i].toLowerCase())){ count+=1; } } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 64, 5 ], [ 64, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 23, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 29, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 36, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 47, 52 ], [ 52, 53 ], [ 53, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 6, 61 ], [ 61, 62 ], [ 0, 63 ], [ 63, 64 ], [ 63, 65 ] ]
[ "import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.next();\n\t\tint cnt = 0;\n\t\tfor(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t} else{\n\t\t\t\tString TT = T.toLowerCase();\n\t\t\t\tString WW = W.toLowerCase();\n\t\t\t\tif(TT.equals(WW)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.next();\n\t\tint cnt = 0;\n\t\tfor(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t} else{\n\t\t\t\tString TT = T.toLowerCase();\n\t\t\t\tString WW = W.toLowerCase();\n\t\t\t\tif(TT.equals(WW)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "Main", "public static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.next();\n\t\tint cnt = 0;\n\t\tfor(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t} else{\n\t\t\t\tString TT = T.toLowerCase();\n\t\t\t\tString WW = W.toLowerCase();\n\t\t\t\tif(TT.equals(WW)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "main", "{\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.next();\n\t\tint cnt = 0;\n\t\tfor(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t} else{\n\t\t\t\tString TT = T.toLowerCase();\n\t\t\t\tString WW = W.toLowerCase();\n\t\t\t\tif(TT.equals(WW)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String W = scan.next();", "W", "scan.next()", "scan.next", "scan", "int cnt = 0;", "cnt", "0", "for(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t} else{\n\t\t\t\tString TT = T.toLowerCase();\n\t\t\t\tString WW = W.toLowerCase();\n\t\t\t\tif(TT.equals(WW)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", ";", "{\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t} else{\n\t\t\t\tString TT = T.toLowerCase();\n\t\t\t\tString WW = W.toLowerCase();\n\t\t\t\tif(TT.equals(WW)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t} else{\n\t\t\t\tString TT = T.toLowerCase();\n\t\t\t\tString WW = W.toLowerCase();\n\t\t\t\tif(TT.equals(WW)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String T = scan.next();", "T", "scan.next()", "scan.next", "scan", "if(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t} else{\n\t\t\t\tString TT = T.toLowerCase();\n\t\t\t\tString WW = W.toLowerCase();\n\t\t\t\tif(TT.equals(WW)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "{\n\t\t\t\tString TT = T.toLowerCase();\n\t\t\t\tString WW = W.toLowerCase();\n\t\t\t\tif(TT.equals(WW)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}", "String TT = T.toLowerCase();", "TT", "T.toLowerCase()", "T.toLowerCase", "T", "String WW = W.toLowerCase();", "WW", "W.toLowerCase()", "W.toLowerCase", "W", "if(TT.equals(WW)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}", "TT.equals(WW)", "TT.equals", "TT", "WW", "{\n\t\t\t\t\tcnt++;\n\t\t\t\t}", "cnt++", "cnt", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.next();\n\t\tint cnt = 0;\n\t\tfor(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t} else{\n\t\t\t\tString TT = T.toLowerCase();\n\t\t\t\tString WW = W.toLowerCase();\n\t\t\t\tif(TT.equals(WW)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.next();\n\t\tint cnt = 0;\n\t\tfor(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t} else{\n\t\t\t\tString TT = T.toLowerCase();\n\t\t\t\tString WW = W.toLowerCase();\n\t\t\t\tif(TT.equals(WW)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String W = scan.next(); int cnt = 0; for(;;){ String T = scan.next(); if(T.equals("END_OF_TEXT")){ break; } else{ String TT = T.toLowerCase(); String WW = W.toLowerCase(); if(TT.equals(WW)){ cnt++; } } } System.out.println(cnt); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 17, 0, 13, 4, 18, 4, 18, 13, 11, 1, 30, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 29, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 29, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 29, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 46, 51 ], [ 51, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 6, 59 ], [ 59, 60 ] ]
[ "import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n \tScanner sc= new Scanner(System.in);\n \tString s,w;int ans=0; \n \tw=sc.nextLine().toLowerCase();\n \tfor(;;){\n \t\ts=sc.next();if(s.equals(\"END_OF_TEXT\")) break; \n \t\ts=s.toLowerCase();\n \t\tif(w.equals(s)) ans++;\n}\nSystem.out.println(ans);\n }\n}", "import java.util.*;", "util.*", "java", "class Main{\n public static void main(String[] args){\n \tScanner sc= new Scanner(System.in);\n \tString s,w;int ans=0; \n \tw=sc.nextLine().toLowerCase();\n \tfor(;;){\n \t\ts=sc.next();if(s.equals(\"END_OF_TEXT\")) break; \n \t\ts=s.toLowerCase();\n \t\tif(w.equals(s)) ans++;\n}\nSystem.out.println(ans);\n }\n}", "Main", "public static void main(String[] args){\n \tScanner sc= new Scanner(System.in);\n \tString s,w;int ans=0; \n \tw=sc.nextLine().toLowerCase();\n \tfor(;;){\n \t\ts=sc.next();if(s.equals(\"END_OF_TEXT\")) break; \n \t\ts=s.toLowerCase();\n \t\tif(w.equals(s)) ans++;\n}\nSystem.out.println(ans);\n }", "main", "{\n \tScanner sc= new Scanner(System.in);\n \tString s,w;int ans=0; \n \tw=sc.nextLine().toLowerCase();\n \tfor(;;){\n \t\ts=sc.next();if(s.equals(\"END_OF_TEXT\")) break; \n \t\ts=s.toLowerCase();\n \t\tif(w.equals(s)) ans++;\n}\nSystem.out.println(ans);\n }", "Scanner sc= new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s", "s", "w;", "w", "int ans=0;", "ans", "0", "w=sc.nextLine().toLowerCase()", "w", "sc.nextLine().toLowerCase()", "sc.nextLine().toLowerCase", "sc.nextLine()", "sc.nextLine", "sc", "for(;;){\n \t\ts=sc.next();if(s.equals(\"END_OF_TEXT\")) break; \n \t\ts=s.toLowerCase();\n \t\tif(w.equals(s)) ans++;\n}", ";", "{\n \t\ts=sc.next();if(s.equals(\"END_OF_TEXT\")) break; \n \t\ts=s.toLowerCase();\n \t\tif(w.equals(s)) ans++;\n}", "{\n \t\ts=sc.next();if(s.equals(\"END_OF_TEXT\")) break; \n \t\ts=s.toLowerCase();\n \t\tif(w.equals(s)) ans++;\n}", "s=sc.next()", "s", "sc.next()", "sc.next", "sc", "if(s.equals(\"END_OF_TEXT\")) break;", "s.equals(\"END_OF_TEXT\")", "s.equals", "s", "\"END_OF_TEXT\"", "break;", "s=s.toLowerCase()", "s", "s.toLowerCase()", "s.toLowerCase", "s", "if(w.equals(s)) ans++;", "w.equals(s)", "w.equals", "w", "s", "ans++", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc= new Scanner(System.in); String s,w;int ans=0; w=sc.nextLine().toLowerCase(); for(;;){ s=sc.next();if(s.equals("END_OF_TEXT")) break; s=s.toLowerCase(); if(w.equals(s)) ans++; } System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 17, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 13, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 94, 11 ], [ 94, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 15, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 22, 31 ], [ 31, 32 ], [ 22, 33 ], [ 33, 34 ], [ 22, 35 ], [ 35, 36 ], [ 35, 37 ], [ 22, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 40, 47 ], [ 38, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 48, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 48, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 60, 70 ], [ 70, 71 ], [ 71, 72 ], [ 60, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 79, 81 ], [ 75, 82 ], [ 82, 83 ], [ 83, 84 ], [ 22, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 12, 91 ], [ 91, 92 ], [ 0, 93 ], [ 93, 94 ], [ 93, 95 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString w = reader.readLine();\n\t\t\t\n\t\t\tString text;\n\t\t\tString[] t;\n\t\t\t\n\t\t\tint count = 0;\n\t\t\twhile (!(text = reader.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\t\ttext = text.toLowerCase();\n\t\t\t\tt = text.split(\" \");\n\t\t\t\tfor (int i = 0; i < t.length; i++) {\n\t\t\t\t\tif (w.equals(t[i])) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString w = reader.readLine();\n\t\t\t\n\t\t\tString text;\n\t\t\tString[] t;\n\t\t\t\n\t\t\tint count = 0;\n\t\t\twhile (!(text = reader.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\t\ttext = text.toLowerCase();\n\t\t\t\tt = text.split(\" \");\n\t\t\t\tfor (int i = 0; i < t.length; i++) {\n\t\t\t\t\tif (w.equals(t[i])) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString w = reader.readLine();\n\t\t\t\n\t\t\tString text;\n\t\t\tString[] t;\n\t\t\t\n\t\t\tint count = 0;\n\t\t\twhile (!(text = reader.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\t\ttext = text.toLowerCase();\n\t\t\t\tt = text.split(\" \");\n\t\t\t\tfor (int i = 0; i < t.length; i++) {\n\t\t\t\t\tif (w.equals(t[i])) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString w = reader.readLine();\n\t\t\t\n\t\t\tString text;\n\t\t\tString[] t;\n\t\t\t\n\t\t\tint count = 0;\n\t\t\twhile (!(text = reader.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\t\ttext = text.toLowerCase();\n\t\t\t\tt = text.split(\" \");\n\t\t\t\tfor (int i = 0; i < t.length; i++) {\n\t\t\t\t\tif (w.equals(t[i])) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "try {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString w = reader.readLine();\n\t\t\t\n\t\t\tString text;\n\t\t\tString[] t;\n\t\t\t\n\t\t\tint count = 0;\n\t\t\twhile (!(text = reader.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\t\ttext = text.toLowerCase();\n\t\t\t\tt = text.split(\" \");\n\t\t\t\tfor (int i = 0; i < t.length; i++) {\n\t\t\t\t\tif (w.equals(t[i])) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString w = reader.readLine();\n\t\t\t\n\t\t\tString text;\n\t\t\tString[] t;\n\t\t\t\n\t\t\tint count = 0;\n\t\t\twhile (!(text = reader.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\t\ttext = text.toLowerCase();\n\t\t\t\tt = text.split(\" \");\n\t\t\t\tfor (int i = 0; i < t.length; i++) {\n\t\t\t\t\tif (w.equals(t[i])) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "String w = reader.readLine();", "w", "reader.readLine()", "reader.readLine", "reader", "String text;", "text", "String[] t;", "t", "int count = 0;", "count", "0", "while (!(text = reader.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\t\ttext = text.toLowerCase();\n\t\t\t\tt = text.split(\" \");\n\t\t\t\tfor (int i = 0; i < t.length; i++) {\n\t\t\t\t\tif (w.equals(t[i])) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "!(text = reader.readLine()).equals(\"END_OF_TEXT\")", "(text = reader.readLine()).equals(\"END_OF_TEXT\")", "(text = reader.readLine()).equals", "(text = reader.readLine())", "text", "reader.readLine()", "reader.readLine", "reader", "\"END_OF_TEXT\"", "{\n\t\t\t\ttext = text.toLowerCase();\n\t\t\t\tt = text.split(\" \");\n\t\t\t\tfor (int i = 0; i < t.length; i++) {\n\t\t\t\t\tif (w.equals(t[i])) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "text = text.toLowerCase()", "text", "text.toLowerCase()", "text.toLowerCase", "text", "t = text.split(\" \")", "t", "text.split(\" \")", "text.split", "text", "\" \"", "for (int i = 0; i < t.length; i++) {\n\t\t\t\t\tif (w.equals(t[i])) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < t.length", "i", "t.length", "t", "t.length", "i++", "i++", "i", "{\n\t\t\t\t\tif (w.equals(t[i])) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif (w.equals(t[i])) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}", "if (w.equals(t[i])) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}", "w.equals(t[i])", "w.equals", "w", "t[i]", "t", "i", "{\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString w = reader.readLine();\n\t\t\t\n\t\t\tString text;\n\t\t\tString[] t;\n\t\t\t\n\t\t\tint count = 0;\n\t\t\twhile (!(text = reader.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\t\ttext = text.toLowerCase();\n\t\t\t\tt = text.split(\" \");\n\t\t\t\tfor (int i = 0; i < t.length; i++) {\n\t\t\t\t\tif (w.equals(t[i])) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString w = reader.readLine();\n\t\t\t\n\t\t\tString text;\n\t\t\tString[] t;\n\t\t\t\n\t\t\tint count = 0;\n\t\t\twhile (!(text = reader.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\t\ttext = text.toLowerCase();\n\t\t\t\tt = text.split(\" \");\n\t\t\t\tfor (int i = 0; i < t.length; i++) {\n\t\t\t\t\tif (w.equals(t[i])) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String w = reader.readLine(); String text; String[] t; int count = 0; while (!(text = reader.readLine()).equals("END_OF_TEXT")) { text = text.toLowerCase(); t = text.split(" "); for (int i = 0; i < t.length; i++) { if (w.equals(t[i])) { count++; } } } System.out.println(count); } catch (IOException e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 17, 0, 13, 4, 18, 13, 42, 2, 17, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 13, 14, 4, 18, 13, 17, 30, 3, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 61, 5 ], [ 61, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 40, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 47, 48 ], [ 8, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 6, 58 ], [ 58, 59 ], [ 0, 60 ], [ 60, 61 ], [ 60, 62 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String w, t;\n int count = 0;\n\n w = sc.next();\n while (1 > 0) {\n t = sc.next();\n if (t.equalsIgnoreCase(w)) {\n count++;\n } else if (t.equals(\"END_OF_TEXT\")) {\n break;\n }\n }\n\n System.out.println(count);\n sc.close();\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String w, t;\n int count = 0;\n\n w = sc.next();\n while (1 > 0) {\n t = sc.next();\n if (t.equalsIgnoreCase(w)) {\n count++;\n } else if (t.equals(\"END_OF_TEXT\")) {\n break;\n }\n }\n\n System.out.println(count);\n sc.close();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String w, t;\n int count = 0;\n\n w = sc.next();\n while (1 > 0) {\n t = sc.next();\n if (t.equalsIgnoreCase(w)) {\n count++;\n } else if (t.equals(\"END_OF_TEXT\")) {\n break;\n }\n }\n\n System.out.println(count);\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String w, t;\n int count = 0;\n\n w = sc.next();\n while (1 > 0) {\n t = sc.next();\n if (t.equalsIgnoreCase(w)) {\n count++;\n } else if (t.equals(\"END_OF_TEXT\")) {\n break;\n }\n }\n\n System.out.println(count);\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String w", "w", "t;", "t", "int count = 0;", "count", "0", "w = sc.next()", "w", "sc.next()", "sc.next", "sc", "while (1 > 0) {\n t = sc.next();\n if (t.equalsIgnoreCase(w)) {\n count++;\n } else if (t.equals(\"END_OF_TEXT\")) {\n break;\n }\n }", "1 > 0", "1", "0", "{\n t = sc.next();\n if (t.equalsIgnoreCase(w)) {\n count++;\n } else if (t.equals(\"END_OF_TEXT\")) {\n break;\n }\n }", "t = sc.next()", "t", "sc.next()", "sc.next", "sc", "if (t.equalsIgnoreCase(w)) {\n count++;\n } else if (t.equals(\"END_OF_TEXT\")) {\n break;\n }", "t.equalsIgnoreCase(w)", "t.equalsIgnoreCase", "t", "w", "{\n count++;\n }", "count++", "count", "if (t.equals(\"END_OF_TEXT\")) {\n break;\n }", "t.equals(\"END_OF_TEXT\")", "t.equals", "t", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String w, t;\n int count = 0;\n\n w = sc.next();\n while (1 > 0) {\n t = sc.next();\n if (t.equalsIgnoreCase(w)) {\n count++;\n } else if (t.equals(\"END_OF_TEXT\")) {\n break;\n }\n }\n\n System.out.println(count);\n sc.close();\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String w, t;\n int count = 0;\n\n w = sc.next();\n while (1 > 0) {\n t = sc.next();\n if (t.equalsIgnoreCase(w)) {\n count++;\n } else if (t.equals(\"END_OF_TEXT\")) {\n break;\n }\n }\n\n System.out.println(count);\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String w, t; int count = 0; w = sc.next(); while (1 > 0) { t = sc.next(); if (t.equalsIgnoreCase(w)) { count++; } else if (t.equals("END_OF_TEXT")) { break; } } System.out.println(count); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 18, 13, 13, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 90, 8 ], [ 90, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 25, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 40, 41 ], [ 29, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 29, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 48, 58 ], [ 58, 59 ], [ 59, 60 ], [ 48, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 70, 75 ], [ 75, 76 ], [ 76, 77 ], [ 11, 78 ], [ 78, 79 ], [ 79, 80 ], [ 11, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 9, 87 ], [ 87, 88 ], [ 0, 89 ], [ 89, 90 ], [ 89, 91 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tInteger count = 0;\n\t\tScanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tString word = s.next().toLowerCase();\n\t\twhile(s.hasNext()){\n\t\t\tString input = s.next();\n\t\t\tif(input.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] word_list = input.split(\" \");\n\t\t\tfor(int i = 0; i < word_list.length; i++){\n\t\t\t\tString target = word_list[i].toLowerCase();\n\t\t\t\tif(word.equals(target)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ts.close();\n\t\tSystem.out.println(count);\n\n\t}\n\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tInteger count = 0;\n\t\tScanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tString word = s.next().toLowerCase();\n\t\twhile(s.hasNext()){\n\t\t\tString input = s.next();\n\t\t\tif(input.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] word_list = input.split(\" \");\n\t\t\tfor(int i = 0; i < word_list.length; i++){\n\t\t\t\tString target = word_list[i].toLowerCase();\n\t\t\t\tif(word.equals(target)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ts.close();\n\t\tSystem.out.println(count);\n\n\t}\n\n}", "Main", "/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tInteger count = 0;\n\t\tScanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tString word = s.next().toLowerCase();\n\t\twhile(s.hasNext()){\n\t\t\tString input = s.next();\n\t\t\tif(input.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] word_list = input.split(\" \");\n\t\t\tfor(int i = 0; i < word_list.length; i++){\n\t\t\t\tString target = word_list[i].toLowerCase();\n\t\t\t\tif(word.equals(target)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ts.close();\n\t\tSystem.out.println(count);\n\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tInteger count = 0;\n\t\tScanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tString word = s.next().toLowerCase();\n\t\twhile(s.hasNext()){\n\t\t\tString input = s.next();\n\t\t\tif(input.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] word_list = input.split(\" \");\n\t\t\tfor(int i = 0; i < word_list.length; i++){\n\t\t\t\tString target = word_list[i].toLowerCase();\n\t\t\t\tif(word.equals(target)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ts.close();\n\t\tSystem.out.println(count);\n\n\t}", "Integer count = 0;", "count", "0", "Scanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));", "s", "new Scanner(new BufferedReader(new InputStreamReader(System.in)))", "String word = s.next().toLowerCase();", "word", "s.next().toLowerCase()", "s.next().toLowerCase", "s.next()", "s.next", "s", "while(s.hasNext()){\n\t\t\tString input = s.next();\n\t\t\tif(input.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] word_list = input.split(\" \");\n\t\t\tfor(int i = 0; i < word_list.length; i++){\n\t\t\t\tString target = word_list[i].toLowerCase();\n\t\t\t\tif(word.equals(target)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "s.hasNext()", "s.hasNext", "s", "{\n\t\t\tString input = s.next();\n\t\t\tif(input.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] word_list = input.split(\" \");\n\t\t\tfor(int i = 0; i < word_list.length; i++){\n\t\t\t\tString target = word_list[i].toLowerCase();\n\t\t\t\tif(word.equals(target)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String input = s.next();", "input", "s.next()", "s.next", "s", "if(input.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}", "input.equals(\"END_OF_TEXT\")", "input.equals", "input", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "String[] word_list = input.split(\" \");", "word_list", "input.split(\" \")", "input.split", "input", "\" \"", "for(int i = 0; i < word_list.length; i++){\n\t\t\t\tString target = word_list[i].toLowerCase();\n\t\t\t\tif(word.equals(target)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < word_list.length", "i", "word_list.length", "word_list", "word_list.length", "i++", "i++", "i", "{\n\t\t\t\tString target = word_list[i].toLowerCase();\n\t\t\t\tif(word.equals(target)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tString target = word_list[i].toLowerCase();\n\t\t\t\tif(word.equals(target)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "String target = word_list[i].toLowerCase();", "target", "word_list[i].toLowerCase()", "word_list[i].toLowerCase", "word_list[i]", "word_list", "i", "if(word.equals(target)){\n\t\t\t\t\tcount++;\n\t\t\t\t}", "word.equals(target)", "word.equals", "word", "target", "{\n\t\t\t\t\tcount++;\n\t\t\t\t}", "count++", "count", "s.close()", "s.close", "s", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tInteger count = 0;\n\t\tScanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tString word = s.next().toLowerCase();\n\t\twhile(s.hasNext()){\n\t\t\tString input = s.next();\n\t\t\tif(input.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] word_list = input.split(\" \");\n\t\t\tfor(int i = 0; i < word_list.length; i++){\n\t\t\t\tString target = word_list[i].toLowerCase();\n\t\t\t\tif(word.equals(target)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ts.close();\n\t\tSystem.out.println(count);\n\n\t}\n\n}", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tInteger count = 0;\n\t\tScanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\tString word = s.next().toLowerCase();\n\t\twhile(s.hasNext()){\n\t\t\tString input = s.next();\n\t\t\tif(input.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] word_list = input.split(\" \");\n\t\t\tfor(int i = 0; i < word_list.length; i++){\n\t\t\t\tString target = word_list[i].toLowerCase();\n\t\t\t\tif(word.equals(target)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ts.close();\n\t\tSystem.out.println(count);\n\n\t}\n\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Integer count = 0; Scanner s = new Scanner(new BufferedReader(new InputStreamReader(System.in))); String word = s.next().toLowerCase(); while(s.hasNext()){ String input = s.next(); if(input.equals("END_OF_TEXT")){ break; } String[] word_list = input.split(" "); for(int i = 0; i < word_list.length; i++){ String target = word_list[i].toLowerCase(); if(word.equals(target)){ count++; } } } s.close(); System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 17, 0, 13, 4, 18, 13, 42, 17, 30, 41, 13, 0, 13, 4, 18, 4, 18, 13, 17, 14, 4, 18, 18, 13, 17, 17, 30, 3, 28, 13, 13, 30, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 13, 30, 9, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 79, 11 ], [ 79, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 35, 40 ], [ 30, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 41, 48 ], [ 48, 49 ], [ 30, 50 ], [ 50, 51 ], [ 50, 52 ], [ 50, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 54, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 60, 65 ], [ 65, 66 ], [ 66, 67 ], [ 60, 68 ], [ 68, 69 ], [ 14, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 12, 76 ], [ 76, 77 ], [ 0, 78 ], [ 78, 79 ], [ 78, 80 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word;\n\t\tint count = 0;\n\t\tword = in.readLine();\n\t\twhile (true) {\n\t\t\tString[] text;\n\t\t\ttext = in.readLine().split(\" \");\n\t\t\tif (text[0].equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (String str : text) {\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.matches(word)) {\n\t\t\t\t\tcount++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word;\n\t\tint count = 0;\n\t\tword = in.readLine();\n\t\twhile (true) {\n\t\t\tString[] text;\n\t\t\ttext = in.readLine().split(\" \");\n\t\t\tif (text[0].equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (String str : text) {\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.matches(word)) {\n\t\t\t\t\tcount++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word;\n\t\tint count = 0;\n\t\tword = in.readLine();\n\t\twhile (true) {\n\t\t\tString[] text;\n\t\t\ttext = in.readLine().split(\" \");\n\t\t\tif (text[0].equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (String str : text) {\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.matches(word)) {\n\t\t\t\t\tcount++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word;\n\t\tint count = 0;\n\t\tword = in.readLine();\n\t\twhile (true) {\n\t\t\tString[] text;\n\t\t\ttext = in.readLine().split(\" \");\n\t\t\tif (text[0].equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (String str : text) {\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.matches(word)) {\n\t\t\t\t\tcount++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "String word;", "word", "int count = 0;", "count", "0", "word = in.readLine()", "word", "in.readLine()", "in.readLine", "in", "while (true) {\n\t\t\tString[] text;\n\t\t\ttext = in.readLine().split(\" \");\n\t\t\tif (text[0].equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (String str : text) {\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.matches(word)) {\n\t\t\t\t\tcount++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString[] text;\n\t\t\ttext = in.readLine().split(\" \");\n\t\t\tif (text[0].equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (String str : text) {\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.matches(word)) {\n\t\t\t\t\tcount++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String[] text;", "text", "text = in.readLine().split(\" \")", "text", "in.readLine().split(\" \")", "in.readLine().split", "in.readLine()", "in.readLine", "in", "\" \"", "if (text[0].equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}", "text[0].equals(\"END_OF_TEXT\")", "text[0].equals", "text[0]", "text", "0", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for (String str : text) {\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.matches(word)) {\n\t\t\t\t\tcount++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}", "String str", "text", "{\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.matches(word)) {\n\t\t\t\t\tcount++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.matches(word)) {\n\t\t\t\t\tcount++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}", "str = str.toLowerCase()", "str", "str.toLowerCase()", "str.toLowerCase", "str", "if (str.matches(word)) {\n\t\t\t\t\tcount++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}", "str.matches(word)", "str.matches", "str", "word", "{\n\t\t\t\t\tcount++;\n\t\t\t\t}", "count++", "count", "{\n\t\t\t\t\tcontinue;\n\t\t\t\t}", "continue;", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word;\n\t\tint count = 0;\n\t\tword = in.readLine();\n\t\twhile (true) {\n\t\t\tString[] text;\n\t\t\ttext = in.readLine().split(\" \");\n\t\t\tif (text[0].equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (String str : text) {\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.matches(word)) {\n\t\t\t\t\tcount++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word;\n\t\tint count = 0;\n\t\tword = in.readLine();\n\t\twhile (true) {\n\t\t\tString[] text;\n\t\t\ttext = in.readLine().split(\" \");\n\t\t\tif (text[0].equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (String str : text) {\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.matches(word)) {\n\t\t\t\t\tcount++;\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String word; int count = 0; word = in.readLine(); while (true) { String[] text; text = in.readLine().split(" "); if (text[0].equals("END_OF_TEXT")) { break; } for (String str : text) { str = str.toLowerCase(); if (str.matches(word)) { count++; } else { continue; } } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 22, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 22, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 41, 51 ], [ 51, 52 ], [ 52, 53 ], [ 41, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 56, 63 ], [ 63, 64 ], [ 64, 65 ], [ 8, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 6, 72 ], [ 72, 73 ] ]
[ "//9-A\n \nimport java.util.Scanner;\n \nclass Main {\n public static void main(String [] args){\n \n Scanner sc = new Scanner(System.in);\n \n String W = sc.next();//??????\n \n int count = 0;\n \n while(true){\n \t\n \tString T = sc.next();//??????\n \t\n \tif(T.equals(\"END_OF_TEXT\")){\n \t\tbreak;\n \t}\n \t\n \t//????????????????????¨?????§????????£????????? str ?????\\???\n \tString[] str = T.split(\" \");\n \t\n \tfor(int i=0; i<str.length; i++){\n \t\t//?????????????£?????????? equalsIgnoreCase(W) ??§\n \t\t//????????????boolean\n \t\tif(str[i].equalsIgnoreCase(W)){\n \t\t\tcount++;\n \t\t}\n \t}\n \t\n }\n \n System.out.println(count);\n \n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String [] args){\n \n Scanner sc = new Scanner(System.in);\n \n String W = sc.next();//??????\n \n int count = 0;\n \n while(true){\n \t\n \tString T = sc.next();//??????\n \t\n \tif(T.equals(\"END_OF_TEXT\")){\n \t\tbreak;\n \t}\n \t\n \t//????????????????????¨?????§????????£????????? str ?????\\???\n \tString[] str = T.split(\" \");\n \t\n \tfor(int i=0; i<str.length; i++){\n \t\t//?????????????£?????????? equalsIgnoreCase(W) ??§\n \t\t//????????????boolean\n \t\tif(str[i].equalsIgnoreCase(W)){\n \t\t\tcount++;\n \t\t}\n \t}\n \t\n }\n \n System.out.println(count);\n \n }\n}", "Main", "public static void main(String [] args){\n \n Scanner sc = new Scanner(System.in);\n \n String W = sc.next();//??????\n \n int count = 0;\n \n while(true){\n \t\n \tString T = sc.next();//??????\n \t\n \tif(T.equals(\"END_OF_TEXT\")){\n \t\tbreak;\n \t}\n \t\n \t//????????????????????¨?????§????????£????????? str ?????\\???\n \tString[] str = T.split(\" \");\n \t\n \tfor(int i=0; i<str.length; i++){\n \t\t//?????????????£?????????? equalsIgnoreCase(W) ??§\n \t\t//????????????boolean\n \t\tif(str[i].equalsIgnoreCase(W)){\n \t\t\tcount++;\n \t\t}\n \t}\n \t\n }\n \n System.out.println(count);\n \n }", "main", "{\n \n Scanner sc = new Scanner(System.in);\n \n String W = sc.next();//??????\n \n int count = 0;\n \n while(true){\n \t\n \tString T = sc.next();//??????\n \t\n \tif(T.equals(\"END_OF_TEXT\")){\n \t\tbreak;\n \t}\n \t\n \t//????????????????????¨?????§????????£????????? str ?????\\???\n \tString[] str = T.split(\" \");\n \t\n \tfor(int i=0; i<str.length; i++){\n \t\t//?????????????£?????????? equalsIgnoreCase(W) ??§\n \t\t//????????????boolean\n \t\tif(str[i].equalsIgnoreCase(W)){\n \t\t\tcount++;\n \t\t}\n \t}\n \t\n }\n \n System.out.println(count);\n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String W = sc.next();", "W", "sc.next()", "sc.next", "sc", "int count = 0;", "count", "0", "while(true){\n \t\n \tString T = sc.next();//??????\n \t\n \tif(T.equals(\"END_OF_TEXT\")){\n \t\tbreak;\n \t}\n \t\n \t//????????????????????¨?????§????????£????????? str ?????\\???\n \tString[] str = T.split(\" \");\n \t\n \tfor(int i=0; i<str.length; i++){\n \t\t//?????????????£?????????? equalsIgnoreCase(W) ??§\n \t\t//????????????boolean\n \t\tif(str[i].equalsIgnoreCase(W)){\n \t\t\tcount++;\n \t\t}\n \t}\n \t\n }", "true", "{\n \t\n \tString T = sc.next();//??????\n \t\n \tif(T.equals(\"END_OF_TEXT\")){\n \t\tbreak;\n \t}\n \t\n \t//????????????????????¨?????§????????£????????? str ?????\\???\n \tString[] str = T.split(\" \");\n \t\n \tfor(int i=0; i<str.length; i++){\n \t\t//?????????????£?????????? equalsIgnoreCase(W) ??§\n \t\t//????????????boolean\n \t\tif(str[i].equalsIgnoreCase(W)){\n \t\t\tcount++;\n \t\t}\n \t}\n \t\n }", "String T = sc.next();", "T", "sc.next()", "sc.next", "sc", "if(T.equals(\"END_OF_TEXT\")){\n \t\tbreak;\n \t}", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "{\n \t\tbreak;\n \t}", "break;", "String[] str = T.split(\" \");", "str", "T.split(\" \")", "T.split", "T", "\" \"", "for(int i=0; i<str.length; i++){\n \t\t//?????????????£?????????? equalsIgnoreCase(W) ??§\n \t\t//????????????boolean\n \t\tif(str[i].equalsIgnoreCase(W)){\n \t\t\tcount++;\n \t\t}\n \t}", "int i=0;", "int i=0;", "i", "0", "i<str.length", "i", "str.length", "str", "str.length", "i++", "i++", "i", "{\n \t\t//?????????????£?????????? equalsIgnoreCase(W) ??§\n \t\t//????????????boolean\n \t\tif(str[i].equalsIgnoreCase(W)){\n \t\t\tcount++;\n \t\t}\n \t}", "{\n \t\t//?????????????£?????????? equalsIgnoreCase(W) ??§\n \t\t//????????????boolean\n \t\tif(str[i].equalsIgnoreCase(W)){\n \t\t\tcount++;\n \t\t}\n \t}", "if(str[i].equalsIgnoreCase(W)){\n \t\t\tcount++;\n \t\t}", "str[i].equalsIgnoreCase(W)", "str[i].equalsIgnoreCase", "str[i]", "str", "i", "W", "{\n \t\t\tcount++;\n \t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String [] args", "args" ]
//9-A import java.util.Scanner; class Main { public static void main(String [] args){ Scanner sc = new Scanner(System.in); String W = sc.next();//?????? int count = 0; while(true){ String T = sc.next();//?????? if(T.equals("END_OF_TEXT")){ break; } //????????????????????¨?????§????????£????????? str ?????\??? String[] str = T.split(" "); for(int i=0; i<str.length; i++){ //?????????????£?????????? equalsIgnoreCase(W) ??§ //????????????boolean if(str[i].equalsIgnoreCase(W)){ count++; } } } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 30, 0, 13, 2, 2, 13, 17, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 34, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 45, 45 ], [ 45, 46 ], [ 45, 47 ], [ 45, 48 ], [ 11, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 11, 54 ], [ 54, 55 ], [ 54, 56 ], [ 11, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 11, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 63, 73 ], [ 73, 74 ], [ 74, 75 ], [ 63, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 78, 85 ], [ 85, 86 ], [ 86, 87 ], [ 78, 88 ], [ 11, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 9, 95 ], [ 95, 96 ] ]
[ "import java.util.Scanner;\nimport java.io.*;\n \nclass Main {\n public static void main(String[] args)throws IOException{ \n InputStreamReader in = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(in);\n \n String W = reader.readLine();\n String Tall = \"\";\n \n while(true){\n String T = reader.readLine();\n //String low_T = T.toLowerCase();\n if(T.equals(\"END_OF_TEXT\")){\n break;\n }\n else{\n Tall = Tall+\" \" + T; \n }\n }\n String low_T = Tall.toLowerCase();\n int sum = 0;\n \n \n String [] item = low_T.split(\" \");\n \n \n for(int itemNum = 0; itemNum < (item.length); itemNum++){\n if(item [itemNum].equals(W)){\n sum++;\n }\n else{\n }\n }\n System.out.println(sum);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.io.*;", "io.*", "java", "class Main {\n public static void main(String[] args)throws IOException{ \n InputStreamReader in = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(in);\n \n String W = reader.readLine();\n String Tall = \"\";\n \n while(true){\n String T = reader.readLine();\n //String low_T = T.toLowerCase();\n if(T.equals(\"END_OF_TEXT\")){\n break;\n }\n else{\n Tall = Tall+\" \" + T; \n }\n }\n String low_T = Tall.toLowerCase();\n int sum = 0;\n \n \n String [] item = low_T.split(\" \");\n \n \n for(int itemNum = 0; itemNum < (item.length); itemNum++){\n if(item [itemNum].equals(W)){\n sum++;\n }\n else{\n }\n }\n System.out.println(sum);\n }\n}", "Main", "public static void main(String[] args)throws IOException{ \n InputStreamReader in = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(in);\n \n String W = reader.readLine();\n String Tall = \"\";\n \n while(true){\n String T = reader.readLine();\n //String low_T = T.toLowerCase();\n if(T.equals(\"END_OF_TEXT\")){\n break;\n }\n else{\n Tall = Tall+\" \" + T; \n }\n }\n String low_T = Tall.toLowerCase();\n int sum = 0;\n \n \n String [] item = low_T.split(\" \");\n \n \n for(int itemNum = 0; itemNum < (item.length); itemNum++){\n if(item [itemNum].equals(W)){\n sum++;\n }\n else{\n }\n }\n System.out.println(sum);\n }", "main", "{ \n InputStreamReader in = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(in);\n \n String W = reader.readLine();\n String Tall = \"\";\n \n while(true){\n String T = reader.readLine();\n //String low_T = T.toLowerCase();\n if(T.equals(\"END_OF_TEXT\")){\n break;\n }\n else{\n Tall = Tall+\" \" + T; \n }\n }\n String low_T = Tall.toLowerCase();\n int sum = 0;\n \n \n String [] item = low_T.split(\" \");\n \n \n for(int itemNum = 0; itemNum < (item.length); itemNum++){\n if(item [itemNum].equals(W)){\n sum++;\n }\n else{\n }\n }\n System.out.println(sum);\n }", "InputStreamReader in = new InputStreamReader(System.in);", "in", "new InputStreamReader(System.in)", "BufferedReader reader = new BufferedReader(in);", "reader", "new BufferedReader(in)", "String W = reader.readLine();", "W", "reader.readLine()", "reader.readLine", "reader", "String Tall = \"\";", "Tall", "\"\"", "while(true){\n String T = reader.readLine();\n //String low_T = T.toLowerCase();\n if(T.equals(\"END_OF_TEXT\")){\n break;\n }\n else{\n Tall = Tall+\" \" + T; \n }\n }", "true", "{\n String T = reader.readLine();\n //String low_T = T.toLowerCase();\n if(T.equals(\"END_OF_TEXT\")){\n break;\n }\n else{\n Tall = Tall+\" \" + T; \n }\n }", "String T = reader.readLine();", "T", "reader.readLine()", "reader.readLine", "reader", "if(T.equals(\"END_OF_TEXT\")){\n break;\n }\n else{\n Tall = Tall+\" \" + T; \n }", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "{\n Tall = Tall+\" \" + T; \n }", "Tall = Tall+\" \" + T", "Tall", "Tall+\" \" + T", "Tall+\" \" + T", "Tall", "\" \"", "T", "String low_T = Tall.toLowerCase();", "low_T", "Tall.toLowerCase()", "Tall.toLowerCase", "Tall", "int sum = 0;", "sum", "0", "String [] item = low_T.split(\" \");", "item", "low_T.split(\" \")", "low_T.split", "low_T", "\" \"", "for(int itemNum = 0; itemNum < (item.length); itemNum++){\n if(item [itemNum].equals(W)){\n sum++;\n }\n else{\n }\n }", "int itemNum = 0;", "int itemNum = 0;", "itemNum", "0", "itemNum < (item.length)", "itemNum", "(item.length)", "item", "item.length", "itemNum++", "itemNum++", "itemNum", "{\n if(item [itemNum].equals(W)){\n sum++;\n }\n else{\n }\n }", "{\n if(item [itemNum].equals(W)){\n sum++;\n }\n else{\n }\n }", "if(item [itemNum].equals(W)){\n sum++;\n }\n else{\n }", "item [itemNum].equals(W)", "item [itemNum].equals", "item [itemNum]", "item", "itemNum", "W", "{\n sum++;\n }", "sum++", "sum", "{\n }", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args" ]
import java.util.Scanner; import java.io.*; class Main { public static void main(String[] args)throws IOException{ InputStreamReader in = new InputStreamReader(System.in); BufferedReader reader = new BufferedReader(in); String W = reader.readLine(); String Tall = ""; while(true){ String T = reader.readLine(); //String low_T = T.toLowerCase(); if(T.equals("END_OF_TEXT")){ break; } else{ Tall = Tall+" " + T; } } String low_T = Tall.toLowerCase(); int sum = 0; String [] item = low_T.split(" "); for(int itemNum = 0; itemNum < (item.length); itemNum++){ if(item [itemNum].equals(W)){ sum++; } else{ } } System.out.println(sum); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 39, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 91, 5 ], [ 91, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 8, 10 ], [ 8, 11 ], [ 8, 12 ], [ 8, 13 ], [ 8, 14 ], [ 8, 15 ], [ 8, 16 ], [ 8, 17 ], [ 8, 18 ], [ 8, 19 ], [ 8, 20 ], [ 8, 21 ], [ 8, 22 ], [ 8, 23 ], [ 8, 24 ], [ 8, 25 ], [ 8, 26 ], [ 8, 27 ], [ 8, 28 ], [ 8, 29 ], [ 8, 30 ], [ 8, 31 ], [ 8, 32 ], [ 8, 33 ], [ 8, 34 ], [ 91, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 37, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 37, 51 ], [ 51, 52 ], [ 51, 53 ], [ 37, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 56, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 62, 67 ], [ 67, 68 ], [ 56, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 56, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 74, 79 ], [ 79, 80 ], [ 80, 81 ], [ 37, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 35, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\t\n\tstatic char[] k = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString W = stdIn.next();\n\t\tW = W.toLowerCase();\n\t\tint k = 0;\n\t\twhile(true) {\n\t\t\tString T = stdIn.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT = T.toLowerCase();\n\t\t\tif(T.equals(W)) {\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(k);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t\n\tstatic char[] k = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString W = stdIn.next();\n\t\tW = W.toLowerCase();\n\t\tint k = 0;\n\t\twhile(true) {\n\t\t\tString T = stdIn.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT = T.toLowerCase();\n\t\t\tif(T.equals(W)) {\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(k);\n\t}\n}", "Main", "static char[] k = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};", "k", "{'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}", "'a'", "'b'", "'c'", "'d'", "'e'", "'f'", "'g'", "'h'", "'i'", "'j'", "'k'", "'l'", "'m'", "'n'", "'o'", "'p'", "'q'", "'r'", "'s'", "'t'", "'u'", "'v'", "'w'", "'x'", "'y'", "'z'", "public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString W = stdIn.next();\n\t\tW = W.toLowerCase();\n\t\tint k = 0;\n\t\twhile(true) {\n\t\t\tString T = stdIn.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT = T.toLowerCase();\n\t\t\tif(T.equals(W)) {\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(k);\n\t}", "main", "{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString W = stdIn.next();\n\t\tW = W.toLowerCase();\n\t\tint k = 0;\n\t\twhile(true) {\n\t\t\tString T = stdIn.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT = T.toLowerCase();\n\t\t\tif(T.equals(W)) {\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(k);\n\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "String W = stdIn.next();", "W", "stdIn.next()", "stdIn.next", "stdIn", "W = W.toLowerCase()", "W", "W.toLowerCase()", "W.toLowerCase", "W", "int k = 0;", "k", "0", "while(true) {\n\t\t\tString T = stdIn.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT = T.toLowerCase();\n\t\t\tif(T.equals(W)) {\n\t\t\t\tk++;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString T = stdIn.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT = T.toLowerCase();\n\t\t\tif(T.equals(W)) {\n\t\t\t\tk++;\n\t\t\t}\n\t\t}", "String T = stdIn.next();", "T", "stdIn.next()", "stdIn.next", "stdIn", "if(T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "T = T.toLowerCase()", "T", "T.toLowerCase()", "T.toLowerCase", "T", "if(T.equals(W)) {\n\t\t\t\tk++;\n\t\t\t}", "T.equals(W)", "T.equals", "T", "W", "{\n\t\t\t\tk++;\n\t\t\t}", "k++", "k", "System.out.println(k)", "System.out.println", "System.out", "System", "System.out", "k", "String[] args", "args", "public class Main {\n\t\n\tstatic char[] k = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString W = stdIn.next();\n\t\tW = W.toLowerCase();\n\t\tint k = 0;\n\t\twhile(true) {\n\t\t\tString T = stdIn.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT = T.toLowerCase();\n\t\t\tif(T.equals(W)) {\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(k);\n\t}\n}", "public class Main {\n\t\n\tstatic char[] k = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString W = stdIn.next();\n\t\tW = W.toLowerCase();\n\t\tint k = 0;\n\t\twhile(true) {\n\t\t\tString T = stdIn.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT = T.toLowerCase();\n\t\t\tif(T.equals(W)) {\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(k);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { static char[] k = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); String W = stdIn.next(); W = W.toLowerCase(); int k = 0; while(true) { String T = stdIn.next(); if(T.equals("END_OF_TEXT")) { break; } T = T.toLowerCase(); if(T.equals(W)) { k++; } } System.out.println(k); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 0, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 26, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 38, 43 ], [ 43, 44 ], [ 44, 45 ], [ 8, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 6, 52 ], [ 52, 53 ] ]
[ "import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n String t, p;\n p = scanner.next();\n int counter = 0;\n\n while(true){\n t = scanner.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n\n if(t.equalsIgnoreCase(p)){\n counter ++;\n }\n }\n System.out.println(counter);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n String t, p;\n p = scanner.next();\n int counter = 0;\n\n while(true){\n t = scanner.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n\n if(t.equalsIgnoreCase(p)){\n counter ++;\n }\n }\n System.out.println(counter);\n }\n}", "Main", "public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n String t, p;\n p = scanner.next();\n int counter = 0;\n\n while(true){\n t = scanner.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n\n if(t.equalsIgnoreCase(p)){\n counter ++;\n }\n }\n System.out.println(counter);\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n\n String t, p;\n p = scanner.next();\n int counter = 0;\n\n while(true){\n t = scanner.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n\n if(t.equalsIgnoreCase(p)){\n counter ++;\n }\n }\n System.out.println(counter);\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String t", "t", "p;", "p", "p = scanner.next()", "p", "scanner.next()", "scanner.next", "scanner", "int counter = 0;", "counter", "0", "while(true){\n t = scanner.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n\n if(t.equalsIgnoreCase(p)){\n counter ++;\n }\n }", "true", "{\n t = scanner.next();\n if(t.equals(\"END_OF_TEXT\")) break;\n\n if(t.equalsIgnoreCase(p)){\n counter ++;\n }\n }", "t = scanner.next()", "t", "scanner.next()", "scanner.next", "scanner", "if(t.equals(\"END_OF_TEXT\")) break;", "t.equals(\"END_OF_TEXT\")", "t.equals", "t", "\"END_OF_TEXT\"", "break;", "if(t.equalsIgnoreCase(p)){\n counter ++;\n }", "t.equalsIgnoreCase(p)", "t.equalsIgnoreCase", "t", "p", "{\n counter ++;\n }", "counter ++", "counter", "System.out.println(counter)", "System.out.println", "System.out", "System", "System.out", "counter", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); String t, p; p = scanner.next(); int counter = 0; while(true){ t = scanner.next(); if(t.equals("END_OF_TEXT")) break; if(t.equalsIgnoreCase(p)){ counter ++; } } System.out.println(counter); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 79, 5 ], [ 79, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 25, 32 ], [ 23, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 33, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 33, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 45, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 60, 67 ], [ 67, 68 ], [ 68, 69 ], [ 8, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 6, 76 ], [ 76, 77 ], [ 0, 78 ], [ 78, 79 ], [ 78, 80 ] ]
[ "import java.io.*;\n \npublic class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n String t = \"\";\n int count = 0;\n while(!(t = br.readLine()).equals(\"END_OF_TEXT\")){\n t = t.toLowerCase();\n String[] words = t.split(\" \");\n for(int i=0; i < words.length; i++){\n if(words[i].equals(w)){\n count++;\n }\n }\n }\n System.out.println(count);\n }\n}", "import java.io.*;", "io.*", "java", "public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n String t = \"\";\n int count = 0;\n while(!(t = br.readLine()).equals(\"END_OF_TEXT\")){\n t = t.toLowerCase();\n String[] words = t.split(\" \");\n for(int i=0; i < words.length; i++){\n if(words[i].equals(w)){\n count++;\n }\n }\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n String t = \"\";\n int count = 0;\n while(!(t = br.readLine()).equals(\"END_OF_TEXT\")){\n t = t.toLowerCase();\n String[] words = t.split(\" \");\n for(int i=0; i < words.length; i++){\n if(words[i].equals(w)){\n count++;\n }\n }\n }\n System.out.println(count);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n String t = \"\";\n int count = 0;\n while(!(t = br.readLine()).equals(\"END_OF_TEXT\")){\n t = t.toLowerCase();\n String[] words = t.split(\" \");\n for(int i=0; i < words.length; i++){\n if(words[i].equals(w)){\n count++;\n }\n }\n }\n System.out.println(count);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String w = br.readLine();", "w", "br.readLine()", "br.readLine", "br", "String t = \"\";", "t", "\"\"", "int count = 0;", "count", "0", "while(!(t = br.readLine()).equals(\"END_OF_TEXT\")){\n t = t.toLowerCase();\n String[] words = t.split(\" \");\n for(int i=0; i < words.length; i++){\n if(words[i].equals(w)){\n count++;\n }\n }\n }", "!(t = br.readLine()).equals(\"END_OF_TEXT\")", "(t = br.readLine()).equals(\"END_OF_TEXT\")", "(t = br.readLine()).equals", "(t = br.readLine())", "t", "br.readLine()", "br.readLine", "br", "\"END_OF_TEXT\"", "{\n t = t.toLowerCase();\n String[] words = t.split(\" \");\n for(int i=0; i < words.length; i++){\n if(words[i].equals(w)){\n count++;\n }\n }\n }", "t = t.toLowerCase()", "t", "t.toLowerCase()", "t.toLowerCase", "t", "String[] words = t.split(\" \");", "words", "t.split(\" \")", "t.split", "t", "\" \"", "for(int i=0; i < words.length; i++){\n if(words[i].equals(w)){\n count++;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i < words.length", "i", "words.length", "words", "words.length", "i++", "i++", "i", "{\n if(words[i].equals(w)){\n count++;\n }\n }", "{\n if(words[i].equals(w)){\n count++;\n }\n }", "if(words[i].equals(w)){\n count++;\n }", "words[i].equals(w)", "words[i].equals", "words[i]", "words", "i", "w", "{\n count++;\n }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n String t = \"\";\n int count = 0;\n while(!(t = br.readLine()).equals(\"END_OF_TEXT\")){\n t = t.toLowerCase();\n String[] words = t.split(\" \");\n for(int i=0; i < words.length; i++){\n if(words[i].equals(w)){\n count++;\n }\n }\n }\n System.out.println(count);\n }\n}", "public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\n String t = \"\";\n int count = 0;\n while(!(t = br.readLine()).equals(\"END_OF_TEXT\")){\n t = t.toLowerCase();\n String[] words = t.split(\" \");\n for(int i=0; i < words.length; i++){\n if(words[i].equals(w)){\n count++;\n }\n }\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String w = br.readLine(); String t = ""; int count = 0; while(!(t = br.readLine()).equals("END_OF_TEXT")){ t = t.toLowerCase(); String[] words = t.split(" "); for(int i=0; i < words.length; i++){ if(words[i].equals(w)){ count++; } } } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 17, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 4, 18, 17, 13, 3, 0, 13, 4, 18, 13, 17, 40, 17, 11, 1, 0, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 0, 13, 17, 4, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], [ 14, 15 ], [ 11, 16 ], [ 16, 17 ], [ 11, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 24 ], [ 24, 25 ], [ 24, 26 ], [ 11, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 11, 32 ], [ 32, 33 ], [ 32, 34 ], [ 11, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 36, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 43, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 52, 56 ], [ 56, 57 ], [ 43, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 58, 68 ], [ 68, 69 ], [ 69, 70 ], [ 58, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 73, 80 ], [ 80, 81 ], [ 80, 82 ], [ 11, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 11, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 9, 94 ], [ 94, 95 ] ]
[ "import java.io.*;\nimport java.util.Arrays;\nclass Main{\n public static void main(String[] args) throws IOException {\n int cnt,i; \n String line,chr;\n String[] str = new String[1000];\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n chr = in.readLine(); cnt=0;\n while((line=in.readLine()) != null){\n if(\"END_OF_TEXT\".equals(line)) break;\n str = line.split(\" \",-1);\n for(i=0;i<str.length;i++){\n if(str[i].equalsIgnoreCase(chr)) cnt+=1;\n }\n }\n System.out.println(cnt);\n System.out.flush();\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.Arrays;", "Arrays", "java.util", "class Main{\n public static void main(String[] args) throws IOException {\n int cnt,i; \n String line,chr;\n String[] str = new String[1000];\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n chr = in.readLine(); cnt=0;\n while((line=in.readLine()) != null){\n if(\"END_OF_TEXT\".equals(line)) break;\n str = line.split(\" \",-1);\n for(i=0;i<str.length;i++){\n if(str[i].equalsIgnoreCase(chr)) cnt+=1;\n }\n }\n System.out.println(cnt);\n System.out.flush();\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n int cnt,i; \n String line,chr;\n String[] str = new String[1000];\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n chr = in.readLine(); cnt=0;\n while((line=in.readLine()) != null){\n if(\"END_OF_TEXT\".equals(line)) break;\n str = line.split(\" \",-1);\n for(i=0;i<str.length;i++){\n if(str[i].equalsIgnoreCase(chr)) cnt+=1;\n }\n }\n System.out.println(cnt);\n System.out.flush();\n }", "main", "{\n int cnt,i; \n String line,chr;\n String[] str = new String[1000];\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n chr = in.readLine(); cnt=0;\n while((line=in.readLine()) != null){\n if(\"END_OF_TEXT\".equals(line)) break;\n str = line.split(\" \",-1);\n for(i=0;i<str.length;i++){\n if(str[i].equalsIgnoreCase(chr)) cnt+=1;\n }\n }\n System.out.println(cnt);\n System.out.flush();\n }", "int cnt", "cnt", "i;", "i", "String line", "line", "chr;", "chr", "String[] str = new String[1000];", "str", "new String[1000]", "1000", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "chr = in.readLine()", "chr", "in.readLine()", "in.readLine", "in", "cnt=0", "cnt", "0", "while((line=in.readLine()) != null){\n if(\"END_OF_TEXT\".equals(line)) break;\n str = line.split(\" \",-1);\n for(i=0;i<str.length;i++){\n if(str[i].equalsIgnoreCase(chr)) cnt+=1;\n }\n }", "(line=in.readLine()) != null", "(line=in.readLine())", "line", "in.readLine()", "in.readLine", "in", "null", "{\n if(\"END_OF_TEXT\".equals(line)) break;\n str = line.split(\" \",-1);\n for(i=0;i<str.length;i++){\n if(str[i].equalsIgnoreCase(chr)) cnt+=1;\n }\n }", "if(\"END_OF_TEXT\".equals(line)) break;", "\"END_OF_TEXT\".equals(line)", "\"END_OF_TEXT\".equals", "\"END_OF_TEXT\"", "line", "break;", "str = line.split(\" \",-1)", "str", "line.split(\" \",-1)", "line.split", "line", "\" \"", "-1", "1", "for(i=0;i<str.length;i++){\n if(str[i].equalsIgnoreCase(chr)) cnt+=1;\n }", "i=0;", "i=0", "i", "0", "i<str.length", "i", "str.length", "str", "str.length", "i++", "i++", "i", "{\n if(str[i].equalsIgnoreCase(chr)) cnt+=1;\n }", "{\n if(str[i].equalsIgnoreCase(chr)) cnt+=1;\n }", "if(str[i].equalsIgnoreCase(chr)) cnt+=1;", "str[i].equalsIgnoreCase(chr)", "str[i].equalsIgnoreCase", "str[i]", "str", "i", "chr", "cnt+=1", "cnt", "1", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "System.out.flush()", "System.out.flush", "System.out", "System", "System.out", "String[] args", "args" ]
import java.io.*; import java.util.Arrays; class Main{ public static void main(String[] args) throws IOException { int cnt,i; String line,chr; String[] str = new String[1000]; BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); chr = in.readLine(); cnt=0; while((line=in.readLine()) != null){ if("END_OF_TEXT".equals(line)) break; str = line.split(" ",-1); for(i=0;i<str.length;i++){ if(str[i].equalsIgnoreCase(chr)) cnt+=1; } } System.out.println(cnt); System.out.flush(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 17, 11, 1, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 14, 4, 18, 13, 17, 3, 0, 13, 17, 11, 1, 0, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 2, 4, 18, 13, 4, 18, 13, 2, 4, 18, 13, 4, 18, 13, 3, 14, 4, 18, 18, 13, 13, 18, 13, 13, 40, 13, 14, 2, 13, 4, 18, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 128, 5 ], [ 128, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 8, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 8, 34 ], [ 34, 35 ], [ 8, 36 ], [ 36, 37 ], [ 36, 38 ], [ 8, 39 ], [ 39, 40 ], [ 39, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 42, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 42, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 42, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 59, 64 ], [ 42, 65 ], [ 65, 66 ], [ 65, 67 ], [ 42, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 68, 78 ], [ 78, 79 ], [ 79, 80 ], [ 68, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 85, 89 ], [ 89, 90 ], [ 90, 91 ], [ 84, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 92, 96 ], [ 96, 97 ], [ 97, 98 ], [ 83, 99 ], [ 82, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 106, 108 ], [ 100, 109 ], [ 109, 110 ], [ 42, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 111, 117 ], [ 117, 118 ], [ 8, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 6, 125 ], [ 125, 126 ], [ 0, 127 ], [ 127, 128 ], [ 127, 129 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.next();\n\t\tString lw = w.toLowerCase();\n\t\tString sw[] = lw.split(\"\");\n\t\tint i,m,t,ti;\n\t\tti = 0;\n\t\tfor(;;){\n\t\t\tString s = scan.next();\n\t\t\tString ls = s.toLowerCase();\n\t\t\tString ss[] = ls.split(\"\");\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\tt = 0;\n\t\t\tfor(m = 0; m < w.length(); m++){\n\t\t\t\tif(s.length() < w.length() || s.length() != w.length())\n\t\t\t\t\tbreak;\n\t\t\t\tif(ss[m].equals(sw[m]))\n\t\t\t\t\tt++;\t\t\t\n\t\t\t\t}\n\t\t\t\tif(t == w.length())\n\t\t\t\t\tti++;\n\t\t\t}\n\t\tSystem.out.println(ti);\n\t\t}\n\t}\n\n\t\t\n\n\t", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.next();\n\t\tString lw = w.toLowerCase();\n\t\tString sw[] = lw.split(\"\");\n\t\tint i,m,t,ti;\n\t\tti = 0;\n\t\tfor(;;){\n\t\t\tString s = scan.next();\n\t\t\tString ls = s.toLowerCase();\n\t\t\tString ss[] = ls.split(\"\");\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\tt = 0;\n\t\t\tfor(m = 0; m < w.length(); m++){\n\t\t\t\tif(s.length() < w.length() || s.length() != w.length())\n\t\t\t\t\tbreak;\n\t\t\t\tif(ss[m].equals(sw[m]))\n\t\t\t\t\tt++;\t\t\t\n\t\t\t\t}\n\t\t\t\tif(t == w.length())\n\t\t\t\t\tti++;\n\t\t\t}\n\t\tSystem.out.println(ti);\n\t\t}\n\t}", "Main", "public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.next();\n\t\tString lw = w.toLowerCase();\n\t\tString sw[] = lw.split(\"\");\n\t\tint i,m,t,ti;\n\t\tti = 0;\n\t\tfor(;;){\n\t\t\tString s = scan.next();\n\t\t\tString ls = s.toLowerCase();\n\t\t\tString ss[] = ls.split(\"\");\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\tt = 0;\n\t\t\tfor(m = 0; m < w.length(); m++){\n\t\t\t\tif(s.length() < w.length() || s.length() != w.length())\n\t\t\t\t\tbreak;\n\t\t\t\tif(ss[m].equals(sw[m]))\n\t\t\t\t\tt++;\t\t\t\n\t\t\t\t}\n\t\t\t\tif(t == w.length())\n\t\t\t\t\tti++;\n\t\t\t}\n\t\tSystem.out.println(ti);\n\t\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.next();\n\t\tString lw = w.toLowerCase();\n\t\tString sw[] = lw.split(\"\");\n\t\tint i,m,t,ti;\n\t\tti = 0;\n\t\tfor(;;){\n\t\t\tString s = scan.next();\n\t\t\tString ls = s.toLowerCase();\n\t\t\tString ss[] = ls.split(\"\");\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\tt = 0;\n\t\t\tfor(m = 0; m < w.length(); m++){\n\t\t\t\tif(s.length() < w.length() || s.length() != w.length())\n\t\t\t\t\tbreak;\n\t\t\t\tif(ss[m].equals(sw[m]))\n\t\t\t\t\tt++;\t\t\t\n\t\t\t\t}\n\t\t\t\tif(t == w.length())\n\t\t\t\t\tti++;\n\t\t\t}\n\t\tSystem.out.println(ti);\n\t\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String w = scan.next();", "w", "scan.next()", "scan.next", "scan", "String lw = w.toLowerCase();", "lw", "w.toLowerCase()", "w.toLowerCase", "w", "String sw[] = lw.split(\"\");", "sw", "lw.split(\"\")", "lw.split", "lw", "\"\"", "int i", "i", "m", "m", "t", "t", "ti;", "ti", "ti = 0", "ti", "0", "for(;;){\n\t\t\tString s = scan.next();\n\t\t\tString ls = s.toLowerCase();\n\t\t\tString ss[] = ls.split(\"\");\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\tt = 0;\n\t\t\tfor(m = 0; m < w.length(); m++){\n\t\t\t\tif(s.length() < w.length() || s.length() != w.length())\n\t\t\t\t\tbreak;\n\t\t\t\tif(ss[m].equals(sw[m]))\n\t\t\t\t\tt++;\t\t\t\n\t\t\t\t}\n\t\t\t\tif(t == w.length())\n\t\t\t\t\tti++;\n\t\t\t}", ";", "{\n\t\t\tString s = scan.next();\n\t\t\tString ls = s.toLowerCase();\n\t\t\tString ss[] = ls.split(\"\");\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\tt = 0;\n\t\t\tfor(m = 0; m < w.length(); m++){\n\t\t\t\tif(s.length() < w.length() || s.length() != w.length())\n\t\t\t\t\tbreak;\n\t\t\t\tif(ss[m].equals(sw[m]))\n\t\t\t\t\tt++;\t\t\t\n\t\t\t\t}\n\t\t\t\tif(t == w.length())\n\t\t\t\t\tti++;\n\t\t\t}", "{\n\t\t\tString s = scan.next();\n\t\t\tString ls = s.toLowerCase();\n\t\t\tString ss[] = ls.split(\"\");\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\tt = 0;\n\t\t\tfor(m = 0; m < w.length(); m++){\n\t\t\t\tif(s.length() < w.length() || s.length() != w.length())\n\t\t\t\t\tbreak;\n\t\t\t\tif(ss[m].equals(sw[m]))\n\t\t\t\t\tt++;\t\t\t\n\t\t\t\t}\n\t\t\t\tif(t == w.length())\n\t\t\t\t\tti++;\n\t\t\t}", "String s = scan.next();", "s", "scan.next()", "scan.next", "scan", "String ls = s.toLowerCase();", "ls", "s.toLowerCase()", "s.toLowerCase", "s", "String ss[] = ls.split(\"\");", "ss", "ls.split(\"\")", "ls.split", "ls", "\"\"", "if(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;", "s.equals(\"END_OF_TEXT\")", "s.equals", "s", "\"END_OF_TEXT\"", "break;", "t = 0", "t", "0", "for(m = 0; m < w.length(); m++){\n\t\t\t\tif(s.length() < w.length() || s.length() != w.length())\n\t\t\t\t\tbreak;\n\t\t\t\tif(ss[m].equals(sw[m]))\n\t\t\t\t\tt++;\t\t\t\n\t\t\t\t}", "m = 0;", "m = 0", "m", "0", "m < w.length()", "m", "w.length()", "w.length", "w", "m++", "m++", "m", "{\n\t\t\t\tif(s.length() < w.length() || s.length() != w.length())\n\t\t\t\t\tbreak;\n\t\t\t\tif(ss[m].equals(sw[m]))\n\t\t\t\t\tt++;\t\t\t\n\t\t\t\t}", "{\n\t\t\t\tif(s.length() < w.length() || s.length() != w.length())\n\t\t\t\t\tbreak;\n\t\t\t\tif(ss[m].equals(sw[m]))\n\t\t\t\t\tt++;\t\t\t\n\t\t\t\t}", "if(s.length() < w.length() || s.length() != w.length())\n\t\t\t\t\tbreak;", "s.length() < w.length() || s.length() != w.length()", "s.length() < w.length()", "s.length()", "s.length", "s", "w.length()", "w.length", "w", "s.length() != w.length()", "s.length()", "s.length", "s", "w.length()", "w.length", "w", "break;", "if(ss[m].equals(sw[m]))\n\t\t\t\t\tt++;", "ss[m].equals(sw[m])", "ss[m].equals", "ss[m]", "ss", "m", "sw[m]", "sw", "m", "t++", "t", "if(t == w.length())\n\t\t\t\t\tti++;", "t == w.length()", "t", "w.length()", "w.length", "w", "ti++", "ti", "System.out.println(ti)", "System.out.println", "System.out", "System", "System.out", "ti", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.next();\n\t\tString lw = w.toLowerCase();\n\t\tString sw[] = lw.split(\"\");\n\t\tint i,m,t,ti;\n\t\tti = 0;\n\t\tfor(;;){\n\t\t\tString s = scan.next();\n\t\t\tString ls = s.toLowerCase();\n\t\t\tString ss[] = ls.split(\"\");\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\tt = 0;\n\t\t\tfor(m = 0; m < w.length(); m++){\n\t\t\t\tif(s.length() < w.length() || s.length() != w.length())\n\t\t\t\t\tbreak;\n\t\t\t\tif(ss[m].equals(sw[m]))\n\t\t\t\t\tt++;\t\t\t\n\t\t\t\t}\n\t\t\t\tif(t == w.length())\n\t\t\t\t\tti++;\n\t\t\t}\n\t\tSystem.out.println(ti);\n\t\t}\n\t}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.next();\n\t\tString lw = w.toLowerCase();\n\t\tString sw[] = lw.split(\"\");\n\t\tint i,m,t,ti;\n\t\tti = 0;\n\t\tfor(;;){\n\t\t\tString s = scan.next();\n\t\t\tString ls = s.toLowerCase();\n\t\t\tString ss[] = ls.split(\"\");\n\t\t\tif(s.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\tt = 0;\n\t\t\tfor(m = 0; m < w.length(); m++){\n\t\t\t\tif(s.length() < w.length() || s.length() != w.length())\n\t\t\t\t\tbreak;\n\t\t\t\tif(ss[m].equals(sw[m]))\n\t\t\t\t\tt++;\t\t\t\n\t\t\t\t}\n\t\t\t\tif(t == w.length())\n\t\t\t\t\tti++;\n\t\t\t}\n\t\tSystem.out.println(ti);\n\t\t}\n\t}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); String w = scan.next(); String lw = w.toLowerCase(); String sw[] = lw.split(""); int i,m,t,ti; ti = 0; for(;;){ String s = scan.next(); String ls = s.toLowerCase(); String ss[] = ls.split(""); if(s.equals("END_OF_TEXT")) break; t = 0; for(m = 0; m < w.length(); m++){ if(s.length() < w.length() || s.length() != w.length()) break; if(ss[m].equals(sw[m])) t++; } if(t == w.length()) ti++; } System.out.println(ti); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 3, 0, 13, 2, 2, 13, 17, 13, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 89, 5 ], [ 89, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 28, 40 ], [ 40, 41 ], [ 40, 42 ], [ 43, 43 ], [ 43, 44 ], [ 43, 45 ], [ 43, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 53, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 68, 75 ], [ 75, 76 ], [ 8, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 6, 86 ], [ 86, 87 ], [ 0, 88 ], [ 88, 89 ], [ 88, 90 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String key = sc.nextLine();\n String BREAKW=\"END_OF_TEXT\";\n int count=0;\n String ans = \"\";\n while(true) {\n String str =sc.nextLine();\n if(str.equals(BREAKW))break;\n ans = ans +\" \"+str;\n }\n\n String word[] = ans.split(\" \");\n for(int i=0;i<word.length;i++) {\n \tif(word[i].equalsIgnoreCase(key))count++;\n }\n System.out.println(count);\n sc.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String key = sc.nextLine();\n String BREAKW=\"END_OF_TEXT\";\n int count=0;\n String ans = \"\";\n while(true) {\n String str =sc.nextLine();\n if(str.equals(BREAKW))break;\n ans = ans +\" \"+str;\n }\n\n String word[] = ans.split(\" \");\n for(int i=0;i<word.length;i++) {\n \tif(word[i].equalsIgnoreCase(key))count++;\n }\n System.out.println(count);\n sc.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String key = sc.nextLine();\n String BREAKW=\"END_OF_TEXT\";\n int count=0;\n String ans = \"\";\n while(true) {\n String str =sc.nextLine();\n if(str.equals(BREAKW))break;\n ans = ans +\" \"+str;\n }\n\n String word[] = ans.split(\" \");\n for(int i=0;i<word.length;i++) {\n \tif(word[i].equalsIgnoreCase(key))count++;\n }\n System.out.println(count);\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String key = sc.nextLine();\n String BREAKW=\"END_OF_TEXT\";\n int count=0;\n String ans = \"\";\n while(true) {\n String str =sc.nextLine();\n if(str.equals(BREAKW))break;\n ans = ans +\" \"+str;\n }\n\n String word[] = ans.split(\" \");\n for(int i=0;i<word.length;i++) {\n \tif(word[i].equalsIgnoreCase(key))count++;\n }\n System.out.println(count);\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String key = sc.nextLine();", "key", "sc.nextLine()", "sc.nextLine", "sc", "String BREAKW=\"END_OF_TEXT\";", "BREAKW", "\"END_OF_TEXT\"", "int count=0;", "count", "0", "String ans = \"\";", "ans", "\"\"", "while(true) {\n String str =sc.nextLine();\n if(str.equals(BREAKW))break;\n ans = ans +\" \"+str;\n }", "true", "{\n String str =sc.nextLine();\n if(str.equals(BREAKW))break;\n ans = ans +\" \"+str;\n }", "String str =sc.nextLine();", "str", "sc.nextLine()", "sc.nextLine", "sc", "if(str.equals(BREAKW))break;", "str.equals(BREAKW)", "str.equals", "str", "BREAKW", "break;", "ans = ans +\" \"+str", "ans", "ans +\" \"+str", "ans +\" \"+str", "ans", "\" \"", "str", "String word[] = ans.split(\" \");", "word", "ans.split(\" \")", "ans.split", "ans", "\" \"", "for(int i=0;i<word.length;i++) {\n \tif(word[i].equalsIgnoreCase(key))count++;\n }", "int i=0;", "int i=0;", "i", "0", "i<word.length", "i", "word.length", "word", "word.length", "i++", "i++", "i", "{\n \tif(word[i].equalsIgnoreCase(key))count++;\n }", "{\n \tif(word[i].equalsIgnoreCase(key))count++;\n }", "if(word[i].equalsIgnoreCase(key))count++;", "word[i].equalsIgnoreCase(key)", "word[i].equalsIgnoreCase", "word[i]", "word", "i", "key", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String key = sc.nextLine();\n String BREAKW=\"END_OF_TEXT\";\n int count=0;\n String ans = \"\";\n while(true) {\n String str =sc.nextLine();\n if(str.equals(BREAKW))break;\n ans = ans +\" \"+str;\n }\n\n String word[] = ans.split(\" \");\n for(int i=0;i<word.length;i++) {\n \tif(word[i].equalsIgnoreCase(key))count++;\n }\n System.out.println(count);\n sc.close();\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String key = sc.nextLine();\n String BREAKW=\"END_OF_TEXT\";\n int count=0;\n String ans = \"\";\n while(true) {\n String str =sc.nextLine();\n if(str.equals(BREAKW))break;\n ans = ans +\" \"+str;\n }\n\n String word[] = ans.split(\" \");\n for(int i=0;i<word.length;i++) {\n \tif(word[i].equalsIgnoreCase(key))count++;\n }\n System.out.println(count);\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String key = sc.nextLine(); String BREAKW="END_OF_TEXT"; int count=0; String ans = ""; while(true) { String str =sc.nextLine(); if(str.equals(BREAKW))break; ans = ans +" "+str; } String word[] = ans.split(" "); for(int i=0;i<word.length;i++) { if(word[i].equalsIgnoreCase(key))count++; } System.out.println(count); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 17, 30, 40, 13, 3, 41, 13, 18, 13, 13, 14, 4, 18, 13, 13, 30, 40, 13, 14, 2, 13, 17, 3, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 93, 8 ], [ 93, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 11, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 34, 39 ], [ 31, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 40, 50 ], [ 50, 51 ], [ 51, 52 ], [ 40, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 55, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 54, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 54, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 71, 76 ], [ 76, 77 ], [ 77, 78 ], [ 31, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 11, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 9, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n \tString w = br.readLine();\n \tint count = 0;\n \tint owari = 0;\n \twhile (true)\n \t{\n \t\tString[] si = br.readLine().split(\" \");\n \tfor (int i = 0; i < si.length; i++)\n \t{\n \t\tif (si[i].equals(\"END_OF_TEXT\"))\n \t\t\t{\n \t\t\t\towari++;\n \t\t\t\tbreak;\n \t\t\t}\n \t\tString so = si[i];\n \t\t\t\tif (w.equalsIgnoreCase(so))\n \t\t{\n \t\t\t\t\t\tcount++;\n \t\t}\n \t}\n \tif (owari == 1)\n \t\tbreak;\n \t}\n \tSystem.out.println(count);\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n \tString w = br.readLine();\n \tint count = 0;\n \tint owari = 0;\n \twhile (true)\n \t{\n \t\tString[] si = br.readLine().split(\" \");\n \tfor (int i = 0; i < si.length; i++)\n \t{\n \t\tif (si[i].equals(\"END_OF_TEXT\"))\n \t\t\t{\n \t\t\t\towari++;\n \t\t\t\tbreak;\n \t\t\t}\n \t\tString so = si[i];\n \t\t\t\tif (w.equalsIgnoreCase(so))\n \t\t{\n \t\t\t\t\t\tcount++;\n \t\t}\n \t}\n \tif (owari == 1)\n \t\tbreak;\n \t}\n \tSystem.out.println(count);\n\t}\n\n}", "Main", "public static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n \tString w = br.readLine();\n \tint count = 0;\n \tint owari = 0;\n \twhile (true)\n \t{\n \t\tString[] si = br.readLine().split(\" \");\n \tfor (int i = 0; i < si.length; i++)\n \t{\n \t\tif (si[i].equals(\"END_OF_TEXT\"))\n \t\t\t{\n \t\t\t\towari++;\n \t\t\t\tbreak;\n \t\t\t}\n \t\tString so = si[i];\n \t\t\t\tif (w.equalsIgnoreCase(so))\n \t\t{\n \t\t\t\t\t\tcount++;\n \t\t}\n \t}\n \tif (owari == 1)\n \t\tbreak;\n \t}\n \tSystem.out.println(count);\n\t}", "main", "{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n \tString w = br.readLine();\n \tint count = 0;\n \tint owari = 0;\n \twhile (true)\n \t{\n \t\tString[] si = br.readLine().split(\" \");\n \tfor (int i = 0; i < si.length; i++)\n \t{\n \t\tif (si[i].equals(\"END_OF_TEXT\"))\n \t\t\t{\n \t\t\t\towari++;\n \t\t\t\tbreak;\n \t\t\t}\n \t\tString so = si[i];\n \t\t\t\tif (w.equalsIgnoreCase(so))\n \t\t{\n \t\t\t\t\t\tcount++;\n \t\t}\n \t}\n \tif (owari == 1)\n \t\tbreak;\n \t}\n \tSystem.out.println(count);\n\t}", "InputStreamReader isr = new InputStreamReader(System.in);", "isr", "new InputStreamReader(System.in)", "BufferedReader br = new BufferedReader(isr);", "br", "new BufferedReader(isr)", "String w = br.readLine();", "w", "br.readLine()", "br.readLine", "br", "int count = 0;", "count", "0", "int owari = 0;", "owari", "0", "while (true)\n \t{\n \t\tString[] si = br.readLine().split(\" \");\n \tfor (int i = 0; i < si.length; i++)\n \t{\n \t\tif (si[i].equals(\"END_OF_TEXT\"))\n \t\t\t{\n \t\t\t\towari++;\n \t\t\t\tbreak;\n \t\t\t}\n \t\tString so = si[i];\n \t\t\t\tif (w.equalsIgnoreCase(so))\n \t\t{\n \t\t\t\t\t\tcount++;\n \t\t}\n \t}\n \tif (owari == 1)\n \t\tbreak;\n \t}", "true", "{\n \t\tString[] si = br.readLine().split(\" \");\n \tfor (int i = 0; i < si.length; i++)\n \t{\n \t\tif (si[i].equals(\"END_OF_TEXT\"))\n \t\t\t{\n \t\t\t\towari++;\n \t\t\t\tbreak;\n \t\t\t}\n \t\tString so = si[i];\n \t\t\t\tif (w.equalsIgnoreCase(so))\n \t\t{\n \t\t\t\t\t\tcount++;\n \t\t}\n \t}\n \tif (owari == 1)\n \t\tbreak;\n \t}", "String[] si = br.readLine().split(\" \");", "si", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "for (int i = 0; i < si.length; i++)\n \t{\n \t\tif (si[i].equals(\"END_OF_TEXT\"))\n \t\t\t{\n \t\t\t\towari++;\n \t\t\t\tbreak;\n \t\t\t}\n \t\tString so = si[i];\n \t\t\t\tif (w.equalsIgnoreCase(so))\n \t\t{\n \t\t\t\t\t\tcount++;\n \t\t}\n \t}", "int i = 0;", "int i = 0;", "i", "0", "i < si.length", "i", "si.length", "si", "si.length", "i++", "i++", "i", "{\n \t\tif (si[i].equals(\"END_OF_TEXT\"))\n \t\t\t{\n \t\t\t\towari++;\n \t\t\t\tbreak;\n \t\t\t}\n \t\tString so = si[i];\n \t\t\t\tif (w.equalsIgnoreCase(so))\n \t\t{\n \t\t\t\t\t\tcount++;\n \t\t}\n \t}", "{\n \t\tif (si[i].equals(\"END_OF_TEXT\"))\n \t\t\t{\n \t\t\t\towari++;\n \t\t\t\tbreak;\n \t\t\t}\n \t\tString so = si[i];\n \t\t\t\tif (w.equalsIgnoreCase(so))\n \t\t{\n \t\t\t\t\t\tcount++;\n \t\t}\n \t}", "if (si[i].equals(\"END_OF_TEXT\"))\n \t\t\t{\n \t\t\t\towari++;\n \t\t\t\tbreak;\n \t\t\t}", "si[i].equals(\"END_OF_TEXT\")", "si[i].equals", "si[i]", "si", "i", "\"END_OF_TEXT\"", "{\n \t\t\t\towari++;\n \t\t\t\tbreak;\n \t\t\t}", "owari++", "owari", "break;", "String so = si[i];", "so", "si[i]", "si", "i", "if (w.equalsIgnoreCase(so))\n \t\t{\n \t\t\t\t\t\tcount++;\n \t\t}", "w.equalsIgnoreCase(so)", "w.equalsIgnoreCase", "w", "so", "{\n \t\t\t\t\t\tcount++;\n \t\t}", "count++", "count", "if (owari == 1)\n \t\tbreak;", "owari == 1", "owari", "1", "break;", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n \tString w = br.readLine();\n \tint count = 0;\n \tint owari = 0;\n \twhile (true)\n \t{\n \t\tString[] si = br.readLine().split(\" \");\n \tfor (int i = 0; i < si.length; i++)\n \t{\n \t\tif (si[i].equals(\"END_OF_TEXT\"))\n \t\t\t{\n \t\t\t\towari++;\n \t\t\t\tbreak;\n \t\t\t}\n \t\tString so = si[i];\n \t\t\t\tif (w.equalsIgnoreCase(so))\n \t\t{\n \t\t\t\t\t\tcount++;\n \t\t}\n \t}\n \tif (owari == 1)\n \t\tbreak;\n \t}\n \tSystem.out.println(count);\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args)throws Exception{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n \n \tString w = br.readLine();\n \tint count = 0;\n \tint owari = 0;\n \twhile (true)\n \t{\n \t\tString[] si = br.readLine().split(\" \");\n \tfor (int i = 0; i < si.length; i++)\n \t{\n \t\tif (si[i].equals(\"END_OF_TEXT\"))\n \t\t\t{\n \t\t\t\towari++;\n \t\t\t\tbreak;\n \t\t\t}\n \t\tString so = si[i];\n \t\t\t\tif (w.equalsIgnoreCase(so))\n \t\t{\n \t\t\t\t\t\tcount++;\n \t\t}\n \t}\n \tif (owari == 1)\n \t\tbreak;\n \t}\n \tSystem.out.println(count);\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args)throws Exception{ InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); String w = br.readLine(); int count = 0; int owari = 0; while (true) { String[] si = br.readLine().split(" "); for (int i = 0; i < si.length; i++) { if (si[i].equals("END_OF_TEXT")) { owari++; break; } String so = si[i]; if (w.equalsIgnoreCase(so)) { count++; } } if (owari == 1) break; } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 17, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 66, 5 ], [ 66, 6 ], [ 6, 7 ], [ 6, 8 ], [ 66, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], [ 14, 15 ], [ 11, 16 ], [ 16, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 11, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 33, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 33, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 33, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 50, 55 ], [ 55, 56 ], [ 11, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 9, 63 ], [ 63, 64 ], [ 0, 65 ], [ 65, 66 ], [ 65, 67 ] ]
[ "import java.util.*;\npublic class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tint count = 0;\n \tString w = sc.next();\n \tw = w.toLowerCase();\n \twhile(true) {\n \t\tString t = sc.next();\n \t\tif(t.contains(\"END_OF_TEXT\")) break;\n \t\tt = t.toLowerCase();\n \t\tif(t.equals(w)) count++;\n \t}\n \tSystem.out.println(count);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tint count = 0;\n \tString w = sc.next();\n \tw = w.toLowerCase();\n \twhile(true) {\n \t\tString t = sc.next();\n \t\tif(t.contains(\"END_OF_TEXT\")) break;\n \t\tt = t.toLowerCase();\n \t\tif(t.equals(w)) count++;\n \t}\n \tSystem.out.println(count);\n }\n}", "Main", "public static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tint count = 0;\n \tString w = sc.next();\n \tw = w.toLowerCase();\n \twhile(true) {\n \t\tString t = sc.next();\n \t\tif(t.contains(\"END_OF_TEXT\")) break;\n \t\tt = t.toLowerCase();\n \t\tif(t.equals(w)) count++;\n \t}\n \tSystem.out.println(count);\n }", "main", "{\n \tint i, j, k;\n \tint count = 0;\n \tString w = sc.next();\n \tw = w.toLowerCase();\n \twhile(true) {\n \t\tString t = sc.next();\n \t\tif(t.contains(\"END_OF_TEXT\")) break;\n \t\tt = t.toLowerCase();\n \t\tif(t.equals(w)) count++;\n \t}\n \tSystem.out.println(count);\n }", "int i", "i", "j", "j", "k;", "k", "int count = 0;", "count", "0", "String w = sc.next();", "w", "sc.next()", "sc.next", "sc", "w = w.toLowerCase()", "w", "w.toLowerCase()", "w.toLowerCase", "w", "while(true) {\n \t\tString t = sc.next();\n \t\tif(t.contains(\"END_OF_TEXT\")) break;\n \t\tt = t.toLowerCase();\n \t\tif(t.equals(w)) count++;\n \t}", "true", "{\n \t\tString t = sc.next();\n \t\tif(t.contains(\"END_OF_TEXT\")) break;\n \t\tt = t.toLowerCase();\n \t\tif(t.equals(w)) count++;\n \t}", "String t = sc.next();", "t", "sc.next()", "sc.next", "sc", "if(t.contains(\"END_OF_TEXT\")) break;", "t.contains(\"END_OF_TEXT\")", "t.contains", "t", "\"END_OF_TEXT\"", "break;", "t = t.toLowerCase()", "t", "t.toLowerCase()", "t.toLowerCase", "t", "if(t.equals(w)) count++;", "t.equals(w)", "t.equals", "t", "w", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tint count = 0;\n \tString w = sc.next();\n \tw = w.toLowerCase();\n \twhile(true) {\n \t\tString t = sc.next();\n \t\tif(t.contains(\"END_OF_TEXT\")) break;\n \t\tt = t.toLowerCase();\n \t\tif(t.equals(w)) count++;\n \t}\n \tSystem.out.println(count);\n }\n}", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tint count = 0;\n \tString w = sc.next();\n \tw = w.toLowerCase();\n \twhile(true) {\n \t\tString t = sc.next();\n \t\tif(t.contains(\"END_OF_TEXT\")) break;\n \t\tt = t.toLowerCase();\n \t\tif(t.equals(w)) count++;\n \t}\n \tSystem.out.println(count);\n }\n}", "Main" ]
import java.util.*; public class Main { public static Scanner sc = new Scanner(System.in); public static void main(String[] args) throws Exception { int i, j, k; int count = 0; String w = sc.next(); w = w.toLowerCase(); while(true) { String t = sc.next(); if(t.contains("END_OF_TEXT")) break; t = t.toLowerCase(); if(t.equals(w)) count++; } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 2, 2, 4, 18, 17, 13, 2, 4, 18, 13, 17, 2, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 28, 36 ], [ 36, 37 ], [ 37, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 44, 48 ], [ 39, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 49, 53 ], [ 37, 54 ], [ 54, 55 ], [ 36, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 36, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 62, 72 ], [ 72, 73 ], [ 73, 74 ], [ 62, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 77, 84 ], [ 84, 85 ], [ 85, 86 ], [ 14, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 12, 93 ], [ 93, 94 ] ]
[ "import java.util.*;\nimport java.io.*;\nimport java.util.regex.*;\n\nclass Main{\n public static void main(String args[])throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\t//キーボードで入力された1行目の文字を読み取る\n String t;\n int count = 0;\n \n while((t=br.readLine())!=null){\n if(\"END_OF_TEXT\".equals(t) || w.length()>10 || t.length()>1000){\n break; //END_OF_TEXTが入力されたらwhileを抜ける\n }\t\t\t\t\t\t\t\t //又はwが10文字より大きいか、tの1行が1000文字より大きい場合はwhileを抜ける\n String[] str = t.split(\" \");\t//splitにより空白でtの1行が区切られたものをstrの配列に入れる\n for(int k=0; k<str.length; k++){\n \tif(str[k].equalsIgnoreCase(w)){\t//strの配列に入っているものとwを比較して\n \t\tcount++;\t\t\t\t\t//同じだった場合はカウントをプラスしていく\n \t}\n }\n }\n System.out.println(count);\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.util.regex.*;", "regex.*", "java.util", "class Main{\n public static void main(String args[])throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\t//キーボードで入力された1行目の文字を読み取る\n String t;\n int count = 0;\n \n while((t=br.readLine())!=null){\n if(\"END_OF_TEXT\".equals(t) || w.length()>10 || t.length()>1000){\n break; //END_OF_TEXTが入力されたらwhileを抜ける\n }\t\t\t\t\t\t\t\t //又はwが10文字より大きいか、tの1行が1000文字より大きい場合はwhileを抜ける\n String[] str = t.split(\" \");\t//splitにより空白でtの1行が区切られたものをstrの配列に入れる\n for(int k=0; k<str.length; k++){\n \tif(str[k].equalsIgnoreCase(w)){\t//strの配列に入っているものとwを比較して\n \t\tcount++;\t\t\t\t\t//同じだった場合はカウントをプラスしていく\n \t}\n }\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String args[])throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\t//キーボードで入力された1行目の文字を読み取る\n String t;\n int count = 0;\n \n while((t=br.readLine())!=null){\n if(\"END_OF_TEXT\".equals(t) || w.length()>10 || t.length()>1000){\n break; //END_OF_TEXTが入力されたらwhileを抜ける\n }\t\t\t\t\t\t\t\t //又はwが10文字より大きいか、tの1行が1000文字より大きい場合はwhileを抜ける\n String[] str = t.split(\" \");\t//splitにより空白でtの1行が区切られたものをstrの配列に入れる\n for(int k=0; k<str.length; k++){\n \tif(str[k].equalsIgnoreCase(w)){\t//strの配列に入っているものとwを比較して\n \t\tcount++;\t\t\t\t\t//同じだった場合はカウントをプラスしていく\n \t}\n }\n }\n System.out.println(count);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String w = br.readLine();\t//キーボードで入力された1行目の文字を読み取る\n String t;\n int count = 0;\n \n while((t=br.readLine())!=null){\n if(\"END_OF_TEXT\".equals(t) || w.length()>10 || t.length()>1000){\n break; //END_OF_TEXTが入力されたらwhileを抜ける\n }\t\t\t\t\t\t\t\t //又はwが10文字より大きいか、tの1行が1000文字より大きい場合はwhileを抜ける\n String[] str = t.split(\" \");\t//splitにより空白でtの1行が区切られたものをstrの配列に入れる\n for(int k=0; k<str.length; k++){\n \tif(str[k].equalsIgnoreCase(w)){\t//strの配列に入っているものとwを比較して\n \t\tcount++;\t\t\t\t\t//同じだった場合はカウントをプラスしていく\n \t}\n }\n }\n System.out.println(count);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String w = br.readLine();", "w", "br.readLine()", "br.readLine", "br", "String t;", "t", "int count = 0;", "count", "0", "while((t=br.readLine())!=null){\n if(\"END_OF_TEXT\".equals(t) || w.length()>10 || t.length()>1000){\n break; //END_OF_TEXTが入力されたらwhileを抜ける\n }\t\t\t\t\t\t\t\t //又はwが10文字より大きいか、tの1行が1000文字より大きい場合はwhileを抜ける\n String[] str = t.split(\" \");\t//splitにより空白でtの1行が区切られたものをstrの配列に入れる\n for(int k=0; k<str.length; k++){\n \tif(str[k].equalsIgnoreCase(w)){\t//strの配列に入っているものとwを比較して\n \t\tcount++;\t\t\t\t\t//同じだった場合はカウントをプラスしていく\n \t}\n }\n }", "(t=br.readLine())!=null", "(t=br.readLine())", "t", "br.readLine()", "br.readLine", "br", "null", "{\n if(\"END_OF_TEXT\".equals(t) || w.length()>10 || t.length()>1000){\n break; //END_OF_TEXTが入力されたらwhileを抜ける\n }\t\t\t\t\t\t\t\t //又はwが10文字より大きいか、tの1行が1000文字より大きい場合はwhileを抜ける\n String[] str = t.split(\" \");\t//splitにより空白でtの1行が区切られたものをstrの配列に入れる\n for(int k=0; k<str.length; k++){\n \tif(str[k].equalsIgnoreCase(w)){\t//strの配列に入っているものとwを比較して\n \t\tcount++;\t\t\t\t\t//同じだった場合はカウントをプラスしていく\n \t}\n }\n }", "if(\"END_OF_TEXT\".equals(t) || w.length()>10 || t.length()>1000){\n break; //END_OF_TEXTが入力されたらwhileを抜ける\n }\t\t\t\t\t\t\t\t //又はwが10文字より大きいか、tの1行が1000文字より大きい場合はwhileを抜ける", "\"END_OF_TEXT\".equals(t) || w.length()>10 || t.length()>1000", "\"END_OF_TEXT\".equals(t) || w.length()>10 || t.length()>1000", "\"END_OF_TEXT\".equals(t)", "\"END_OF_TEXT\".equals", "\"END_OF_TEXT\"", "t", "w.length()>10", "w.length()", "w.length", "w", "10", "t.length()>1000", "t.length()", "t.length", "t", "1000", "{\n break; //END_OF_TEXTが入力されたらwhileを抜ける\n }", "break; //END_OF_TEXTが入力されたらwhileを抜ける", "String[] str = t.split(\" \");", "str", "t.split(\" \")", "t.split", "t", "\" \"", "for(int k=0; k<str.length; k++){\n \tif(str[k].equalsIgnoreCase(w)){\t//strの配列に入っているものとwを比較して\n \t\tcount++;\t\t\t\t\t//同じだった場合はカウントをプラスしていく\n \t}\n }", "int k=0;", "int k=0;", "k", "0", "k<str.length", "k", "str.length", "str", "str.length", "k++", "k++", "k", "{\n \tif(str[k].equalsIgnoreCase(w)){\t//strの配列に入っているものとwを比較して\n \t\tcount++;\t\t\t\t\t//同じだった場合はカウントをプラスしていく\n \t}\n }", "{\n \tif(str[k].equalsIgnoreCase(w)){\t//strの配列に入っているものとwを比較して\n \t\tcount++;\t\t\t\t\t//同じだった場合はカウントをプラスしていく\n \t}\n }", "if(str[k].equalsIgnoreCase(w)){\t//strの配列に入っているものとwを比較して\n \t\tcount++;\t\t\t\t\t//同じだった場合はカウントをプラスしていく\n \t}", "str[k].equalsIgnoreCase(w)", "str[k].equalsIgnoreCase", "str[k]", "str", "k", "w", "{\t//strの配列に入っているものとwを比較して\n \t\tcount++;\t\t\t\t\t//同じだった場合はカウントをプラスしていく\n \t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String args[]", "args" ]
import java.util.*; import java.io.*; import java.util.regex.*; class Main{ public static void main(String args[])throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String w = br.readLine(); //キーボードで入力された1行目の文字を読み取る String t; int count = 0; while((t=br.readLine())!=null){ if("END_OF_TEXT".equals(t) || w.length()>10 || t.length()>1000){ break; //END_OF_TEXTが入力されたらwhileを抜ける } //又はwが10文字より大きいか、tの1行が1000文字より大きい場合はwhileを抜ける String[] str = t.split(" "); //splitにより空白でtの1行が区切られたものをstrの配列に入れる for(int k=0; k<str.length; k++){ if(str[k].equalsIgnoreCase(w)){ //strの配列に入っているものとwを比較して count++; //同じだった場合はカウントをプラスしていく } } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 22, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 36, 37 ], [ 30, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 30, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 51, 53 ], [ 44, 54 ], [ 54, 55 ], [ 55, 56 ], [ 44, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 59, 66 ], [ 66, 67 ], [ 67, 68 ], [ 8, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 6, 75 ], [ 75, 76 ] ]
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] arg)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString keyword = br.readLine();\n\t\tint cnt=0;\n\t\tString str;\n\t\twhile((str = br.readLine()) != null){\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] w = str.split(\" \");\n\t\t\tfor(int i=0; i<w.length; i++){\n\t\t\t\tif(w[i].equalsIgnoreCase(keyword)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] arg)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString keyword = br.readLine();\n\t\tint cnt=0;\n\t\tString str;\n\t\twhile((str = br.readLine()) != null){\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] w = str.split(\" \");\n\t\t\tfor(int i=0; i<w.length; i++){\n\t\t\t\tif(w[i].equalsIgnoreCase(keyword)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "Main", "public static void main(String[] arg)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString keyword = br.readLine();\n\t\tint cnt=0;\n\t\tString str;\n\t\twhile((str = br.readLine()) != null){\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] w = str.split(\" \");\n\t\t\tfor(int i=0; i<w.length; i++){\n\t\t\t\tif(w[i].equalsIgnoreCase(keyword)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString keyword = br.readLine();\n\t\tint cnt=0;\n\t\tString str;\n\t\twhile((str = br.readLine()) != null){\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] w = str.split(\" \");\n\t\t\tfor(int i=0; i<w.length; i++){\n\t\t\t\tif(w[i].equalsIgnoreCase(keyword)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String keyword = br.readLine();", "keyword", "br.readLine()", "br.readLine", "br", "int cnt=0;", "cnt", "0", "String str;", "str", "while((str = br.readLine()) != null){\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] w = str.split(\" \");\n\t\t\tfor(int i=0; i<w.length; i++){\n\t\t\t\tif(w[i].equalsIgnoreCase(keyword)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "(str = br.readLine()) != null", "(str = br.readLine())", "str", "br.readLine()", "br.readLine", "br", "null", "{\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] w = str.split(\" \");\n\t\t\tfor(int i=0; i<w.length; i++){\n\t\t\t\tif(w[i].equalsIgnoreCase(keyword)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "if(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}", "str.equals(\"END_OF_TEXT\")", "str.equals", "str", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "String[] w = str.split(\" \");", "w", "str.split(\" \")", "str.split", "str", "\" \"", "for(int i=0; i<w.length; i++){\n\t\t\t\tif(w[i].equalsIgnoreCase(keyword)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<w.length", "i", "w.length", "w", "w.length", "i++", "i++", "i", "{\n\t\t\t\tif(w[i].equalsIgnoreCase(keyword)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(w[i].equalsIgnoreCase(keyword)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}", "if(w[i].equalsIgnoreCase(keyword)){\n\t\t\t\t\tcnt++;\n\t\t\t\t}", "w[i].equalsIgnoreCase(keyword)", "w[i].equalsIgnoreCase", "w[i]", "w", "i", "keyword", "{\n\t\t\t\t\tcnt++;\n\t\t\t\t}", "cnt++", "cnt", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] arg", "arg" ]
import java.io.*; class Main { public static void main(String[] arg)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String keyword = br.readLine(); int cnt=0; String str; while((str = br.readLine()) != null){ if(str.equals("END_OF_TEXT")){ break; } String[] w = str.split(" "); for(int i=0; i<w.length; i++){ if(w[i].equalsIgnoreCase(keyword)){ cnt++; } } } System.out.println(cnt); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 30, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 44, 49 ], [ 30, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 50, 60 ], [ 60, 61 ], [ 61, 62 ], [ 50, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 65, 72 ], [ 72, 73 ], [ 14, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 12, 80 ], [ 80, 81 ] ]
[ "\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main{\n public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String serch = br.readLine().toUpperCase();\n\n int serchcount = 0;\n while(true){\n\n\t String original = br.readLine();\n\t if( original.equals(\"END_OF_TEXT\") ) break;\n\n\n String[] cut = original.toUpperCase().split(\" \");\n\n\n\t for(int i = 0 ;i < cut.length;i++){\n\n\t\t if( cut[i].equals(serch) ) serchcount++;\n\n\t }\n\n }\n\n\n System.out.println(serchcount);\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main{\n public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String serch = br.readLine().toUpperCase();\n\n int serchcount = 0;\n while(true){\n\n\t String original = br.readLine();\n\t if( original.equals(\"END_OF_TEXT\") ) break;\n\n\n String[] cut = original.toUpperCase().split(\" \");\n\n\n\t for(int i = 0 ;i < cut.length;i++){\n\n\t\t if( cut[i].equals(serch) ) serchcount++;\n\n\t }\n\n }\n\n\n System.out.println(serchcount);\n }\n}", "Main", "public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String serch = br.readLine().toUpperCase();\n\n int serchcount = 0;\n while(true){\n\n\t String original = br.readLine();\n\t if( original.equals(\"END_OF_TEXT\") ) break;\n\n\n String[] cut = original.toUpperCase().split(\" \");\n\n\n\t for(int i = 0 ;i < cut.length;i++){\n\n\t\t if( cut[i].equals(serch) ) serchcount++;\n\n\t }\n\n }\n\n\n System.out.println(serchcount);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String serch = br.readLine().toUpperCase();\n\n int serchcount = 0;\n while(true){\n\n\t String original = br.readLine();\n\t if( original.equals(\"END_OF_TEXT\") ) break;\n\n\n String[] cut = original.toUpperCase().split(\" \");\n\n\n\t for(int i = 0 ;i < cut.length;i++){\n\n\t\t if( cut[i].equals(serch) ) serchcount++;\n\n\t }\n\n }\n\n\n System.out.println(serchcount);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String serch = br.readLine().toUpperCase();", "serch", "br.readLine().toUpperCase()", "br.readLine().toUpperCase", "br.readLine()", "br.readLine", "br", "int serchcount = 0;", "serchcount", "0", "while(true){\n\n\t String original = br.readLine();\n\t if( original.equals(\"END_OF_TEXT\") ) break;\n\n\n String[] cut = original.toUpperCase().split(\" \");\n\n\n\t for(int i = 0 ;i < cut.length;i++){\n\n\t\t if( cut[i].equals(serch) ) serchcount++;\n\n\t }\n\n }", "true", "{\n\n\t String original = br.readLine();\n\t if( original.equals(\"END_OF_TEXT\") ) break;\n\n\n String[] cut = original.toUpperCase().split(\" \");\n\n\n\t for(int i = 0 ;i < cut.length;i++){\n\n\t\t if( cut[i].equals(serch) ) serchcount++;\n\n\t }\n\n }", "String original = br.readLine();", "original", "br.readLine()", "br.readLine", "br", "if( original.equals(\"END_OF_TEXT\") ) break;", "original.equals(\"END_OF_TEXT\")", "original.equals", "original", "\"END_OF_TEXT\"", "break;", "String[] cut = original.toUpperCase().split(\" \");", "cut", "original.toUpperCase().split(\" \")", "original.toUpperCase().split", "original.toUpperCase()", "original.toUpperCase", "original", "\" \"", "for(int i = 0 ;i < cut.length;i++){\n\n\t\t if( cut[i].equals(serch) ) serchcount++;\n\n\t }", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < cut.length", "i", "cut.length", "cut", "cut.length", "i++", "i++", "i", "{\n\n\t\t if( cut[i].equals(serch) ) serchcount++;\n\n\t }", "{\n\n\t\t if( cut[i].equals(serch) ) serchcount++;\n\n\t }", "if( cut[i].equals(serch) ) serchcount++;", "cut[i].equals(serch)", "cut[i].equals", "cut[i]", "cut", "i", "serch", "serchcount++", "serchcount", "System.out.println(serchcount)", "System.out.println", "System.out", "System", "System.out", "serchcount", "String args[]", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main{ public static void main(String args[]) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String serch = br.readLine().toUpperCase(); int serchcount = 0; while(true){ String original = br.readLine(); if( original.equals("END_OF_TEXT") ) break; String[] cut = original.toUpperCase().split(" "); for(int i = 0 ;i < cut.length;i++){ if( cut[i].equals(serch) ) serchcount++; } } System.out.println(serchcount); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 2, 17, 0, 13, 4, 18, 13, 30, 28, 13, 4, 18, 13, 17, 17, 30, 30, 14, 4, 18, 13, 17, 30, 0, 13, 17, 3, 0, 13, 4, 18, 13, 40, 13, 14, 4, 18, 13, 13, 30, 40, 13, 14, 13, 30, 3, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 16, 21 ], [ 12, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 22, 33 ], [ 33, 34 ], [ 22, 35 ], [ 35, 36 ], [ 35, 37 ], [ 22, 38 ], [ 38, 39 ], [ 38, 40 ], [ 22, 41 ], [ 41, 42 ], [ 41, 43 ], [ 22, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 55, 59 ], [ 53, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 62, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 61, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 61, 77 ], [ 77, 78 ], [ 61, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 79, 84 ], [ 84, 85 ], [ 85, 86 ], [ 52, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 22, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 6, 97 ], [ 97, 98 ] ]
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t String word = kb.readLine();\n\t word = word.toUpperCase();\n\t \n\t String str;\n\t int cnt = 0;\n\t \tboolean endoftext = false;\n\t \tint i=0;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tfor( String wd: str.split( \" \", 0 ) ) {\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \ti++;\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }\n\t \tif( endoftext ) { break; }\n\t }\n\t\t\tSystem.out.println( cnt );\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t String word = kb.readLine();\n\t word = word.toUpperCase();\n\t \n\t String str;\n\t int cnt = 0;\n\t \tboolean endoftext = false;\n\t \tint i=0;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tfor( String wd: str.split( \" \", 0 ) ) {\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \ti++;\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }\n\t \tif( endoftext ) { break; }\n\t }\n\t\t\tSystem.out.println( cnt );\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t String word = kb.readLine();\n\t word = word.toUpperCase();\n\t \n\t String str;\n\t int cnt = 0;\n\t \tboolean endoftext = false;\n\t \tint i=0;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tfor( String wd: str.split( \" \", 0 ) ) {\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \ti++;\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }\n\t \tif( endoftext ) { break; }\n\t }\n\t\t\tSystem.out.println( cnt );\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t String word = kb.readLine();\n\t word = word.toUpperCase();\n\t \n\t String str;\n\t int cnt = 0;\n\t \tboolean endoftext = false;\n\t \tint i=0;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tfor( String wd: str.split( \" \", 0 ) ) {\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \ti++;\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }\n\t \tif( endoftext ) { break; }\n\t }\n\t\t\tSystem.out.println( cnt );\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}", "BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );", "kb", "new BufferedReader( new InputStreamReader( System.in ) )", "try {\n\t String word = kb.readLine();\n\t word = word.toUpperCase();\n\t \n\t String str;\n\t int cnt = 0;\n\t \tboolean endoftext = false;\n\t \tint i=0;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tfor( String wd: str.split( \" \", 0 ) ) {\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \ti++;\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }\n\t \tif( endoftext ) { break; }\n\t }\n\t\t\tSystem.out.println( cnt );\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}", "catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}", "IOException e", "{\n\t\t\tSystem.err.println( e );\n\t\t}", "System.err.println( e )", "System.err.println", "System.err", "System", "System.err", "e", "{\n\t String word = kb.readLine();\n\t word = word.toUpperCase();\n\t \n\t String str;\n\t int cnt = 0;\n\t \tboolean endoftext = false;\n\t \tint i=0;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tfor( String wd: str.split( \" \", 0 ) ) {\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \ti++;\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }\n\t \tif( endoftext ) { break; }\n\t }\n\t\t\tSystem.out.println( cnt );\n\t\t\t\n\t\t}", "String word = kb.readLine();", "word", "kb.readLine()", "kb.readLine", "kb", "word = word.toUpperCase()", "word", "word.toUpperCase()", "word.toUpperCase", "word", "String str;", "str", "int cnt = 0;", "cnt", "0", "boolean endoftext = false;", "endoftext", "false", "int i=0;", "i", "0", "while( null != ( str = kb.readLine() ) ) {\n\t \tfor( String wd: str.split( \" \", 0 ) ) {\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \ti++;\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }\n\t \tif( endoftext ) { break; }\n\t }", "null != ( str = kb.readLine() )", "null", "( str = kb.readLine() )", "str", "kb.readLine()", "kb.readLine", "kb", "{\n\t \tfor( String wd: str.split( \" \", 0 ) ) {\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \ti++;\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }\n\t \tif( endoftext ) { break; }\n\t }", "for( String wd: str.split( \" \", 0 ) ) {\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \ti++;\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }", "String wd", "str.split( \" \", 0 )", "str.split", "str", "\" \"", "0", "{\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \ti++;\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }", "{\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \ti++;\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }", "if( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}", "wd.equals( \"END_OF_TEXT\" )", "wd.equals", "wd", "\"END_OF_TEXT\"", "{\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}", "endoftext = true", "endoftext", "true", "break;", "wd = wd.toUpperCase()", "wd", "wd.toUpperCase()", "wd.toUpperCase", "wd", "i++", "i", "if( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}", "wd.equals( word )", "wd.equals", "wd", "word", "{\n\t\t \t\tcnt++;\n\t\t \t}", "cnt++", "cnt", "if( endoftext ) { break; }", "endoftext", "{ break; }", "break;", "System.out.println( cnt )", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args" ]
import java.io.*; class Main { public static void main(String[] args) { BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) ); try { String word = kb.readLine(); word = word.toUpperCase(); String str; int cnt = 0; boolean endoftext = false; int i=0; while( null != ( str = kb.readLine() ) ) { for( String wd: str.split( " ", 0 ) ) { if( wd.equals( "END_OF_TEXT" ) ) { endoftext = true; break; } wd = wd.toUpperCase(); i++; if( wd.equals( word ) ) { cnt++; } } if( endoftext ) { break; } } System.out.println( cnt ); } catch( IOException e ) { System.err.println( e ); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 85, 5 ], [ 85, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 27, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 42, 47 ], [ 27, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 48, 58 ], [ 58, 59 ], [ 59, 60 ], [ 48, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 63, 70 ], [ 70, 71 ], [ 71, 72 ], [ 8, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 8, 79 ], [ 79, 80 ], [ 80, 81 ], [ 6, 82 ], [ 82, 83 ], [ 0, 84 ], [ 84, 85 ], [ 84, 86 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString[] words;\n\t\tint intCount = 0;\n\t\tString strWord = scan.nextLine();\n\t\tString strIn = \"\";\n\t\twhile(true) {\n\t\t\tstrIn = scan.nextLine();\n\t\t\tif(strIn.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twords = strIn.toLowerCase().split(\" \");\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tif(words[j].equals(strWord)){\n\t\t\t\t\tintCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(intCount);\n\t\tscan.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString[] words;\n\t\tint intCount = 0;\n\t\tString strWord = scan.nextLine();\n\t\tString strIn = \"\";\n\t\twhile(true) {\n\t\t\tstrIn = scan.nextLine();\n\t\t\tif(strIn.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twords = strIn.toLowerCase().split(\" \");\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tif(words[j].equals(strWord)){\n\t\t\t\t\tintCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(intCount);\n\t\tscan.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString[] words;\n\t\tint intCount = 0;\n\t\tString strWord = scan.nextLine();\n\t\tString strIn = \"\";\n\t\twhile(true) {\n\t\t\tstrIn = scan.nextLine();\n\t\t\tif(strIn.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twords = strIn.toLowerCase().split(\" \");\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tif(words[j].equals(strWord)){\n\t\t\t\t\tintCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(intCount);\n\t\tscan.close();\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString[] words;\n\t\tint intCount = 0;\n\t\tString strWord = scan.nextLine();\n\t\tString strIn = \"\";\n\t\twhile(true) {\n\t\t\tstrIn = scan.nextLine();\n\t\t\tif(strIn.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twords = strIn.toLowerCase().split(\" \");\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tif(words[j].equals(strWord)){\n\t\t\t\t\tintCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(intCount);\n\t\tscan.close();\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String[] words;", "words", "int intCount = 0;", "intCount", "0", "String strWord = scan.nextLine();", "strWord", "scan.nextLine()", "scan.nextLine", "scan", "String strIn = \"\";", "strIn", "\"\"", "while(true) {\n\t\t\tstrIn = scan.nextLine();\n\t\t\tif(strIn.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twords = strIn.toLowerCase().split(\" \");\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tif(words[j].equals(strWord)){\n\t\t\t\t\tintCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tstrIn = scan.nextLine();\n\t\t\tif(strIn.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twords = strIn.toLowerCase().split(\" \");\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tif(words[j].equals(strWord)){\n\t\t\t\t\tintCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "strIn = scan.nextLine()", "strIn", "scan.nextLine()", "scan.nextLine", "scan", "if(strIn.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}", "strIn.equals(\"END_OF_TEXT\")", "strIn.equals", "strIn", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "words = strIn.toLowerCase().split(\" \")", "words", "strIn.toLowerCase().split(\" \")", "strIn.toLowerCase().split", "strIn.toLowerCase()", "strIn.toLowerCase", "strIn", "\" \"", "for (int j = 0; j < words.length; j++) {\n\t\t\t\tif(words[j].equals(strWord)){\n\t\t\t\t\tintCount++;\n\t\t\t\t}\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < words.length", "j", "words.length", "words", "words.length", "j++", "j++", "j", "{\n\t\t\t\tif(words[j].equals(strWord)){\n\t\t\t\t\tintCount++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(words[j].equals(strWord)){\n\t\t\t\t\tintCount++;\n\t\t\t\t}\n\t\t\t}", "if(words[j].equals(strWord)){\n\t\t\t\t\tintCount++;\n\t\t\t\t}", "words[j].equals(strWord)", "words[j].equals", "words[j]", "words", "j", "strWord", "{\n\t\t\t\t\tintCount++;\n\t\t\t\t}", "intCount++", "intCount", "System.out.println(intCount)", "System.out.println", "System.out", "System", "System.out", "intCount", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString[] words;\n\t\tint intCount = 0;\n\t\tString strWord = scan.nextLine();\n\t\tString strIn = \"\";\n\t\twhile(true) {\n\t\t\tstrIn = scan.nextLine();\n\t\t\tif(strIn.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twords = strIn.toLowerCase().split(\" \");\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tif(words[j].equals(strWord)){\n\t\t\t\t\tintCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(intCount);\n\t\tscan.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString[] words;\n\t\tint intCount = 0;\n\t\tString strWord = scan.nextLine();\n\t\tString strIn = \"\";\n\t\twhile(true) {\n\t\t\tstrIn = scan.nextLine();\n\t\t\tif(strIn.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twords = strIn.toLowerCase().split(\" \");\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tif(words[j].equals(strWord)){\n\t\t\t\t\tintCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(intCount);\n\t\tscan.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String[] words; int intCount = 0; String strWord = scan.nextLine(); String strIn = ""; while(true) { strIn = scan.nextLine(); if(strIn.equals("END_OF_TEXT")){ break; } words = strIn.toLowerCase().split(" "); for (int j = 0; j < words.length; j++) { if(words[j].equals(strWord)){ intCount++; } } } System.out.println(intCount); scan.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 0, 13, 4, 18, 13, 42, 17, 30, 41, 13, 17, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 0, 13, 17, 3, 30, 3, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 76, 5 ], [ 76, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 24, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 24, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 52, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 52, 62 ], [ 62, 63 ], [ 8, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 8, 70 ], [ 70, 71 ], [ 71, 72 ], [ 6, 73 ], [ 73, 74 ], [ 0, 75 ], [ 75, 76 ], [ 75, 77 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int count=0;\n String W;\n W=sc.next();\n while(true){\n int index=0;\n String T=sc.next();\n if(T.equals(\"END_OF_TEXT\")) break;\n while(true){\n String w=W.toLowerCase();\n String t=T.toLowerCase();\n if(w.equals(t)){\n count+=1;\n break;\n }else{\n break;\n }\n }\n }\n System.out.println(count);\n sc.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int count=0;\n String W;\n W=sc.next();\n while(true){\n int index=0;\n String T=sc.next();\n if(T.equals(\"END_OF_TEXT\")) break;\n while(true){\n String w=W.toLowerCase();\n String t=T.toLowerCase();\n if(w.equals(t)){\n count+=1;\n break;\n }else{\n break;\n }\n }\n }\n System.out.println(count);\n sc.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int count=0;\n String W;\n W=sc.next();\n while(true){\n int index=0;\n String T=sc.next();\n if(T.equals(\"END_OF_TEXT\")) break;\n while(true){\n String w=W.toLowerCase();\n String t=T.toLowerCase();\n if(w.equals(t)){\n count+=1;\n break;\n }else{\n break;\n }\n }\n }\n System.out.println(count);\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int count=0;\n String W;\n W=sc.next();\n while(true){\n int index=0;\n String T=sc.next();\n if(T.equals(\"END_OF_TEXT\")) break;\n while(true){\n String w=W.toLowerCase();\n String t=T.toLowerCase();\n if(w.equals(t)){\n count+=1;\n break;\n }else{\n break;\n }\n }\n }\n System.out.println(count);\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int count=0;", "count", "0", "String W;", "W", "W=sc.next()", "W", "sc.next()", "sc.next", "sc", "while(true){\n int index=0;\n String T=sc.next();\n if(T.equals(\"END_OF_TEXT\")) break;\n while(true){\n String w=W.toLowerCase();\n String t=T.toLowerCase();\n if(w.equals(t)){\n count+=1;\n break;\n }else{\n break;\n }\n }\n }", "true", "{\n int index=0;\n String T=sc.next();\n if(T.equals(\"END_OF_TEXT\")) break;\n while(true){\n String w=W.toLowerCase();\n String t=T.toLowerCase();\n if(w.equals(t)){\n count+=1;\n break;\n }else{\n break;\n }\n }\n }", "int index=0;", "index", "0", "String T=sc.next();", "T", "sc.next()", "sc.next", "sc", "if(T.equals(\"END_OF_TEXT\")) break;", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "break;", "while(true){\n String w=W.toLowerCase();\n String t=T.toLowerCase();\n if(w.equals(t)){\n count+=1;\n break;\n }else{\n break;\n }\n }", "true", "{\n String w=W.toLowerCase();\n String t=T.toLowerCase();\n if(w.equals(t)){\n count+=1;\n break;\n }else{\n break;\n }\n }", "String w=W.toLowerCase();", "w", "W.toLowerCase()", "W.toLowerCase", "W", "String t=T.toLowerCase();", "t", "T.toLowerCase()", "T.toLowerCase", "T", "if(w.equals(t)){\n count+=1;\n break;\n }else{\n break;\n }", "w.equals(t)", "w.equals", "w", "t", "{\n count+=1;\n break;\n }", "count+=1", "count", "1", "break;", "{\n break;\n }", "break;", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int count=0;\n String W;\n W=sc.next();\n while(true){\n int index=0;\n String T=sc.next();\n if(T.equals(\"END_OF_TEXT\")) break;\n while(true){\n String w=W.toLowerCase();\n String t=T.toLowerCase();\n if(w.equals(t)){\n count+=1;\n break;\n }else{\n break;\n }\n }\n }\n System.out.println(count);\n sc.close();\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int count=0;\n String W;\n W=sc.next();\n while(true){\n int index=0;\n String T=sc.next();\n if(T.equals(\"END_OF_TEXT\")) break;\n while(true){\n String w=W.toLowerCase();\n String t=T.toLowerCase();\n if(w.equals(t)){\n count+=1;\n break;\n }else{\n break;\n }\n }\n }\n System.out.println(count);\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int count=0; String W; W=sc.next(); while(true){ int index=0; String T=sc.next(); if(T.equals("END_OF_TEXT")) break; while(true){ String w=W.toLowerCase(); String t=T.toLowerCase(); if(w.equals(t)){ count+=1; break; }else{ break; } } } System.out.println(count); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 17, 41, 13, 4, 18, 13, 11, 1, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 63, 5 ], [ 63, 6 ], [ 6, 7 ], [ 6, 8 ], [ 63, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 23, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 23, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 23, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 23, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 46, 51 ], [ 51, 52 ], [ 52, 53 ], [ 11, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 9, 60 ], [ 60, 61 ], [ 0, 62 ], [ 62, 63 ], [ 62, 64 ] ]
[ "import java.util.*;\n\npublic class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint count = 0;\n\t\tString W = scan.next();\n\t\tfor(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString w = W.toLowerCase();\n\t\t\tString t = T.toLowerCase();\n\t\t\tif(t.equals(w)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint count = 0;\n\t\tString W = scan.next();\n\t\tfor(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString w = W.toLowerCase();\n\t\t\tString t = T.toLowerCase();\n\t\t\tif(t.equals(w)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main", "private static final Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "public static void main(String[] args){\n\t\tint count = 0;\n\t\tString W = scan.next();\n\t\tfor(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString w = W.toLowerCase();\n\t\t\tString t = T.toLowerCase();\n\t\t\tif(t.equals(w)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tint count = 0;\n\t\tString W = scan.next();\n\t\tfor(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString w = W.toLowerCase();\n\t\t\tString t = T.toLowerCase();\n\t\t\tif(t.equals(w)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "int count = 0;", "count", "0", "String W = scan.next();", "W", "scan.next()", "scan.next", "scan", "for(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString w = W.toLowerCase();\n\t\t\tString t = T.toLowerCase();\n\t\t\tif(t.equals(w)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", ";", "{\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString w = W.toLowerCase();\n\t\t\tString t = T.toLowerCase();\n\t\t\tif(t.equals(w)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "{\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString w = W.toLowerCase();\n\t\t\tString t = T.toLowerCase();\n\t\t\tif(t.equals(w)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "String T = scan.next();", "T", "scan.next()", "scan.next", "scan", "if(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "String w = W.toLowerCase();", "w", "W.toLowerCase()", "W.toLowerCase", "W", "String t = T.toLowerCase();", "t", "T.toLowerCase()", "T.toLowerCase", "T", "if(t.equals(w)){\n\t\t\t\tcount++;\n\t\t\t}", "t.equals(w)", "t.equals", "t", "w", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint count = 0;\n\t\tString W = scan.next();\n\t\tfor(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString w = W.toLowerCase();\n\t\t\tString t = T.toLowerCase();\n\t\t\tif(t.equals(w)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint count = 0;\n\t\tString W = scan.next();\n\t\tfor(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString w = W.toLowerCase();\n\t\t\tString t = T.toLowerCase();\n\t\t\tif(t.equals(w)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main" ]
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ int count = 0; String W = scan.next(); for(;;){ String T = scan.next(); if(T.equals("END_OF_TEXT")){ break; } String w = W.toLowerCase(); String t = T.toLowerCase(); if(t.equals(w)){ count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 3, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 89, 11 ], [ 89, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 34, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 40, 45 ], [ 45, 46 ], [ 34, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 34, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 53, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 69, 76 ], [ 68, 77 ], [ 77, 78 ], [ 78, 79 ], [ 14, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 12, 86 ], [ 86, 87 ], [ 0, 88 ], [ 88, 89 ], [ 88, 90 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString W = br.readLine().toLowerCase();\n\t\tString END = \"END_OF_TEXT\";\n\t\tint cnt = 0;\n\t\tfor(;;) {\n\t\t\tString line = br.readLine();\n\t\t\tif(line.equals(END)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] words = line.split(\" \");\n\t\t\tfor(int i = 0; i < words.length; i++) {\n\t\t\t\tif(words[i].toLowerCase().equals(W)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString W = br.readLine().toLowerCase();\n\t\tString END = \"END_OF_TEXT\";\n\t\tint cnt = 0;\n\t\tfor(;;) {\n\t\t\tString line = br.readLine();\n\t\t\tif(line.equals(END)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] words = line.split(\" \");\n\t\t\tfor(int i = 0; i < words.length; i++) {\n\t\t\t\tif(words[i].toLowerCase().equals(W)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString W = br.readLine().toLowerCase();\n\t\tString END = \"END_OF_TEXT\";\n\t\tint cnt = 0;\n\t\tfor(;;) {\n\t\t\tString line = br.readLine();\n\t\t\tif(line.equals(END)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] words = line.split(\" \");\n\t\t\tfor(int i = 0; i < words.length; i++) {\n\t\t\t\tif(words[i].toLowerCase().equals(W)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString W = br.readLine().toLowerCase();\n\t\tString END = \"END_OF_TEXT\";\n\t\tint cnt = 0;\n\t\tfor(;;) {\n\t\t\tString line = br.readLine();\n\t\t\tif(line.equals(END)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] words = line.split(\" \");\n\t\t\tfor(int i = 0; i < words.length; i++) {\n\t\t\t\tif(words[i].toLowerCase().equals(W)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String W = br.readLine().toLowerCase();", "W", "br.readLine().toLowerCase()", "br.readLine().toLowerCase", "br.readLine()", "br.readLine", "br", "String END = \"END_OF_TEXT\";", "END", "\"END_OF_TEXT\"", "int cnt = 0;", "cnt", "0", "for(;;) {\n\t\t\tString line = br.readLine();\n\t\t\tif(line.equals(END)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] words = line.split(\" \");\n\t\t\tfor(int i = 0; i < words.length; i++) {\n\t\t\t\tif(words[i].toLowerCase().equals(W)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", ";", "{\n\t\t\tString line = br.readLine();\n\t\t\tif(line.equals(END)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] words = line.split(\" \");\n\t\t\tfor(int i = 0; i < words.length; i++) {\n\t\t\t\tif(words[i].toLowerCase().equals(W)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tString line = br.readLine();\n\t\t\tif(line.equals(END)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] words = line.split(\" \");\n\t\t\tfor(int i = 0; i < words.length; i++) {\n\t\t\t\tif(words[i].toLowerCase().equals(W)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "if(line.equals(END)) {\n\t\t\t\tbreak;\n\t\t\t}", "line.equals(END)", "line.equals", "line", "END", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "String[] words = line.split(\" \");", "words", "line.split(\" \")", "line.split", "line", "\" \"", "for(int i = 0; i < words.length; i++) {\n\t\t\t\tif(words[i].toLowerCase().equals(W)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < words.length", "i", "words.length", "words", "words.length", "i++", "i++", "i", "{\n\t\t\t\tif(words[i].toLowerCase().equals(W)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(words[i].toLowerCase().equals(W)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}", "if(words[i].toLowerCase().equals(W)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}", "words[i].toLowerCase().equals(W)", "words[i].toLowerCase().equals", "words[i].toLowerCase()", "words[i].toLowerCase", "words[i]", "words", "i", "W", "{\n\t\t\t\t\tcnt++;\n\t\t\t\t}", "cnt++", "cnt", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString W = br.readLine().toLowerCase();\n\t\tString END = \"END_OF_TEXT\";\n\t\tint cnt = 0;\n\t\tfor(;;) {\n\t\t\tString line = br.readLine();\n\t\t\tif(line.equals(END)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] words = line.split(\" \");\n\t\t\tfor(int i = 0; i < words.length; i++) {\n\t\t\t\tif(words[i].toLowerCase().equals(W)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString W = br.readLine().toLowerCase();\n\t\tString END = \"END_OF_TEXT\";\n\t\tint cnt = 0;\n\t\tfor(;;) {\n\t\t\tString line = br.readLine();\n\t\t\tif(line.equals(END)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] words = line.split(\" \");\n\t\t\tfor(int i = 0; i < words.length; i++) {\n\t\t\t\tif(words[i].toLowerCase().equals(W)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String W = br.readLine().toLowerCase(); String END = "END_OF_TEXT"; int cnt = 0; for(;;) { String line = br.readLine(); if(line.equals(END)) { break; } String[] words = line.split(" "); for(int i = 0; i < words.length; i++) { if(words[i].toLowerCase().equals(W)) { cnt++; } } } System.out.println(cnt); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 3, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 56, 5 ], [ 56, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 26, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 37, 38 ], [ 32, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 45, 46 ], [ 8, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 6, 53 ], [ 53, 54 ], [ 0, 55 ], [ 55, 56 ], [ 55, 57 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.next();\n\t\tString end = \"END_OF_TEXT\";\n\t\tint tmp = 0;\n\n\t\tfor(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(end)){\n\t\t\t\tbreak;\n\t\t\t}else if(T.equalsIgnoreCase(W)){\n\t\t\t\ttmp++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tmp);\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.next();\n\t\tString end = \"END_OF_TEXT\";\n\t\tint tmp = 0;\n\n\t\tfor(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(end)){\n\t\t\t\tbreak;\n\t\t\t}else if(T.equalsIgnoreCase(W)){\n\t\t\t\ttmp++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tmp);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.next();\n\t\tString end = \"END_OF_TEXT\";\n\t\tint tmp = 0;\n\n\t\tfor(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(end)){\n\t\t\t\tbreak;\n\t\t\t}else if(T.equalsIgnoreCase(W)){\n\t\t\t\ttmp++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tmp);\n\t}", "main", "{\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.next();\n\t\tString end = \"END_OF_TEXT\";\n\t\tint tmp = 0;\n\n\t\tfor(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(end)){\n\t\t\t\tbreak;\n\t\t\t}else if(T.equalsIgnoreCase(W)){\n\t\t\t\ttmp++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tmp);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String W = scan.next();", "W", "scan.next()", "scan.next", "scan", "String end = \"END_OF_TEXT\";", "end", "\"END_OF_TEXT\"", "int tmp = 0;", "tmp", "0", "for(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(end)){\n\t\t\t\tbreak;\n\t\t\t}else if(T.equalsIgnoreCase(W)){\n\t\t\t\ttmp++;\n\t\t\t}\n\t\t}", ";", "{\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(end)){\n\t\t\t\tbreak;\n\t\t\t}else if(T.equalsIgnoreCase(W)){\n\t\t\t\ttmp++;\n\t\t\t}\n\t\t}", "{\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(end)){\n\t\t\t\tbreak;\n\t\t\t}else if(T.equalsIgnoreCase(W)){\n\t\t\t\ttmp++;\n\t\t\t}\n\t\t}", "String T = scan.next();", "T", "scan.next()", "scan.next", "scan", "if(T.equals(end)){\n\t\t\t\tbreak;\n\t\t\t}else if(T.equalsIgnoreCase(W)){\n\t\t\t\ttmp++;\n\t\t\t}", "T.equals(end)", "T.equals", "T", "end", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if(T.equalsIgnoreCase(W)){\n\t\t\t\ttmp++;\n\t\t\t}", "T.equalsIgnoreCase(W)", "T.equalsIgnoreCase", "T", "W", "{\n\t\t\t\ttmp++;\n\t\t\t}", "tmp++", "tmp", "System.out.println(tmp)", "System.out.println", "System.out", "System", "System.out", "tmp", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.next();\n\t\tString end = \"END_OF_TEXT\";\n\t\tint tmp = 0;\n\n\t\tfor(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(end)){\n\t\t\t\tbreak;\n\t\t\t}else if(T.equalsIgnoreCase(W)){\n\t\t\t\ttmp++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tmp);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tString W = scan.next();\n\t\tString end = \"END_OF_TEXT\";\n\t\tint tmp = 0;\n\n\t\tfor(;;){\n\t\t\tString T = scan.next();\n\t\t\tif(T.equals(end)){\n\t\t\t\tbreak;\n\t\t\t}else if(T.equalsIgnoreCase(W)){\n\t\t\t\ttmp++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(tmp);\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String W = scan.next(); String end = "END_OF_TEXT"; int tmp = 0; for(;;){ String T = scan.next(); if(T.equals(end)){ break; }else if(T.equalsIgnoreCase(W)){ tmp++; } } System.out.println(tmp); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 20, 42, 40, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 4, 18, 13, 17, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 13, 13, 13, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 32, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 14, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 55, 59 ], [ 48, 60 ], [ 60, 61 ], [ 61, 62 ], [ 48, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 66, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 14, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 12, 83 ], [ 83, 84 ] ]
[ "import java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.Scanner;\nclass Main{\n\tpublic static void main(String[] args)throws NumberFormatException, IOException{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tString Ward =scan.nextLine();\n\t\tString tem = \"\";\n\t\tint out = 0;\n\t\tArrayList<String> T = new ArrayList<String>();\n\t\twhile(!tem.equals(\"END_OF_TEXT\")){\n\t\t\ttem = scan.next();\n\t\t\tT.add(tem) ;\n\t\t}\n\t\tfor(int i=0; i<T.size()-1; i++){\n\t\t\tif(T.get(i).equalsIgnoreCase(Ward)){\n\t\t\t\tout += 1 ;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(out);\n\t}\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String[] args)throws NumberFormatException, IOException{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tString Ward =scan.nextLine();\n\t\tString tem = \"\";\n\t\tint out = 0;\n\t\tArrayList<String> T = new ArrayList<String>();\n\t\twhile(!tem.equals(\"END_OF_TEXT\")){\n\t\t\ttem = scan.next();\n\t\t\tT.add(tem) ;\n\t\t}\n\t\tfor(int i=0; i<T.size()-1; i++){\n\t\t\tif(T.get(i).equalsIgnoreCase(Ward)){\n\t\t\t\tout += 1 ;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(out);\n\t}\n}", "Main", "public static void main(String[] args)throws NumberFormatException, IOException{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tString Ward =scan.nextLine();\n\t\tString tem = \"\";\n\t\tint out = 0;\n\t\tArrayList<String> T = new ArrayList<String>();\n\t\twhile(!tem.equals(\"END_OF_TEXT\")){\n\t\t\ttem = scan.next();\n\t\t\tT.add(tem) ;\n\t\t}\n\t\tfor(int i=0; i<T.size()-1; i++){\n\t\t\tif(T.get(i).equalsIgnoreCase(Ward)){\n\t\t\t\tout += 1 ;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(out);\n\t}", "main", "{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tString Ward =scan.nextLine();\n\t\tString tem = \"\";\n\t\tint out = 0;\n\t\tArrayList<String> T = new ArrayList<String>();\n\t\twhile(!tem.equals(\"END_OF_TEXT\")){\n\t\t\ttem = scan.next();\n\t\t\tT.add(tem) ;\n\t\t}\n\t\tfor(int i=0; i<T.size()-1; i++){\n\t\t\tif(T.get(i).equalsIgnoreCase(Ward)){\n\t\t\t\tout += 1 ;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(out);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String Ward =scan.nextLine();", "Ward", "scan.nextLine()", "scan.nextLine", "scan", "String tem = \"\";", "tem", "\"\"", "int out = 0;", "out", "0", "ArrayList<String> T = new ArrayList<String>();", "T", "new ArrayList<String>()", "while(!tem.equals(\"END_OF_TEXT\")){\n\t\t\ttem = scan.next();\n\t\t\tT.add(tem) ;\n\t\t}", "!tem.equals(\"END_OF_TEXT\")", "tem.equals(\"END_OF_TEXT\")", "tem.equals", "tem", "\"END_OF_TEXT\"", "{\n\t\t\ttem = scan.next();\n\t\t\tT.add(tem) ;\n\t\t}", "tem = scan.next()", "tem", "scan.next()", "scan.next", "scan", "T.add(tem)", "T.add", "T", "tem", "for(int i=0; i<T.size()-1; i++){\n\t\t\tif(T.get(i).equalsIgnoreCase(Ward)){\n\t\t\t\tout += 1 ;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<T.size()-1", "i", "T.size()-1", "T.size()", "T.size", "T", "1", "i++", "i++", "i", "{\n\t\t\tif(T.get(i).equalsIgnoreCase(Ward)){\n\t\t\t\tout += 1 ;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(T.get(i).equalsIgnoreCase(Ward)){\n\t\t\t\tout += 1 ;\n\t\t\t}\n\t\t}", "if(T.get(i).equalsIgnoreCase(Ward)){\n\t\t\t\tout += 1 ;\n\t\t\t}", "T.get(i).equalsIgnoreCase(Ward)", "T.get(i).equalsIgnoreCase", "T.get(i)", "T.get", "T", "i", "Ward", "{\n\t\t\t\tout += 1 ;\n\t\t\t}", "out += 1", "out", "1", "System.out.println(out)", "System.out.println", "System.out", "System", "System.out", "out", "String[] args", "args" ]
import java.io.IOException; import java.util.ArrayList; import java.util.Scanner; class Main{ public static void main(String[] args)throws NumberFormatException, IOException{ //System.out.print(" "); Scanner scan = new Scanner(System.in); String Ward =scan.nextLine(); String tem = ""; int out = 0; ArrayList<String> T = new ArrayList<String>(); while(!tem.equals("END_OF_TEXT")){ tem = scan.next(); T.add(tem) ; } for(int i=0; i<T.size()-1; i++){ if(T.get(i).equalsIgnoreCase(Ward)){ out += 1 ; } } System.out.println(out); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 51, 5 ], [ 51, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 40, 41 ], [ 8, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 6, 48 ], [ 48, 49 ], [ 0, 50 ], [ 50, 51 ], [ 50, 52 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next().toLowerCase();\n\t\tint cnt = 0;\n\t\t\n\t\twhile(sc.hasNext()){\n\t\t\tString T = sc.next().toLowerCase();\n\t\t\tif(T.equals(W)){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt);\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next().toLowerCase();\n\t\tint cnt = 0;\n\t\t\n\t\twhile(sc.hasNext()){\n\t\t\tString T = sc.next().toLowerCase();\n\t\t\tif(T.equals(W)){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next().toLowerCase();\n\t\tint cnt = 0;\n\t\t\n\t\twhile(sc.hasNext()){\n\t\t\tString T = sc.next().toLowerCase();\n\t\t\tif(T.equals(W)){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next().toLowerCase();\n\t\tint cnt = 0;\n\t\t\n\t\twhile(sc.hasNext()){\n\t\t\tString T = sc.next().toLowerCase();\n\t\t\tif(T.equals(W)){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String W = sc.next().toLowerCase();", "W", "sc.next().toLowerCase()", "sc.next().toLowerCase", "sc.next()", "sc.next", "sc", "int cnt = 0;", "cnt", "0", "while(sc.hasNext()){\n\t\t\tString T = sc.next().toLowerCase();\n\t\t\tif(T.equals(W)){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\tString T = sc.next().toLowerCase();\n\t\t\tif(T.equals(W)){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}", "String T = sc.next().toLowerCase();", "T", "sc.next().toLowerCase()", "sc.next().toLowerCase", "sc.next()", "sc.next", "sc", "if(T.equals(W)){\n\t\t\t\tcnt++;\n\t\t\t}", "T.equals(W)", "T.equals", "T", "W", "{\n\t\t\t\tcnt++;\n\t\t\t}", "cnt++", "cnt", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next().toLowerCase();\n\t\tint cnt = 0;\n\t\t\n\t\twhile(sc.hasNext()){\n\t\t\tString T = sc.next().toLowerCase();\n\t\t\tif(T.equals(W)){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next().toLowerCase();\n\t\tint cnt = 0;\n\t\t\n\t\twhile(sc.hasNext()){\n\t\t\tString T = sc.next().toLowerCase();\n\t\t\tif(T.equals(W)){\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt);\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String W = sc.next().toLowerCase(); int cnt = 0; while(sc.hasNext()){ String T = sc.next().toLowerCase(); if(T.equals(W)){ cnt++; } } System.out.println(cnt); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 41, 13, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 41, 13, 20, 42, 4, 18, 13, 30, 14, 4, 18, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 75, 14 ], [ 75, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 28, 29 ], [ 28, 30 ], [ 17, 31 ], [ 31, 32 ], [ 17, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 35, 42 ], [ 33, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 43, 49 ], [ 49, 50 ], [ 49, 51 ], [ 43, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 58, 63 ], [ 57, 64 ], [ 64, 65 ], [ 17, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 15, 72 ], [ 72, 73 ], [ 0, 74 ], [ 74, 75 ], [ 74, 76 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString W = br.readLine().toLowerCase();\n\t\t\n\t\tint ans = 0;\n\t\tString line;\n\t\twhile (!((line = br.readLine()).equals(\"END_OF_TEXT\"))) {\n\t\t\tline = line.toLowerCase();\n\t\t\tStringTokenizer st = new StringTokenizer(line, \" \");\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tif (st.nextToken().equals(W)) ans++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString W = br.readLine().toLowerCase();\n\t\t\n\t\tint ans = 0;\n\t\tString line;\n\t\twhile (!((line = br.readLine()).equals(\"END_OF_TEXT\"))) {\n\t\t\tline = line.toLowerCase();\n\t\t\tStringTokenizer st = new StringTokenizer(line, \" \");\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tif (st.nextToken().equals(W)) ans++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString W = br.readLine().toLowerCase();\n\t\t\n\t\tint ans = 0;\n\t\tString line;\n\t\twhile (!((line = br.readLine()).equals(\"END_OF_TEXT\"))) {\n\t\t\tline = line.toLowerCase();\n\t\t\tStringTokenizer st = new StringTokenizer(line, \" \");\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tif (st.nextToken().equals(W)) ans++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString W = br.readLine().toLowerCase();\n\t\t\n\t\tint ans = 0;\n\t\tString line;\n\t\twhile (!((line = br.readLine()).equals(\"END_OF_TEXT\"))) {\n\t\t\tline = line.toLowerCase();\n\t\t\tStringTokenizer st = new StringTokenizer(line, \" \");\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tif (st.nextToken().equals(W)) ans++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String W = br.readLine().toLowerCase();", "W", "br.readLine().toLowerCase()", "br.readLine().toLowerCase", "br.readLine()", "br.readLine", "br", "int ans = 0;", "ans", "0", "String line;", "line", "while (!((line = br.readLine()).equals(\"END_OF_TEXT\"))) {\n\t\t\tline = line.toLowerCase();\n\t\t\tStringTokenizer st = new StringTokenizer(line, \" \");\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tif (st.nextToken().equals(W)) ans++;\n\t\t\t}\n\t\t}", "!((line = br.readLine()).equals(\"END_OF_TEXT\"))", "((line = br.readLine()).equals(\"END_OF_TEXT\"))", "(line = br.readLine()).equals", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "\"END_OF_TEXT\"", "{\n\t\t\tline = line.toLowerCase();\n\t\t\tStringTokenizer st = new StringTokenizer(line, \" \");\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tif (st.nextToken().equals(W)) ans++;\n\t\t\t}\n\t\t}", "line = line.toLowerCase()", "line", "line.toLowerCase()", "line.toLowerCase", "line", "StringTokenizer st = new StringTokenizer(line, \" \");", "st", "new StringTokenizer(line, \" \")", "while (st.hasMoreTokens()) {\n\t\t\t\tif (st.nextToken().equals(W)) ans++;\n\t\t\t}", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n\t\t\t\tif (st.nextToken().equals(W)) ans++;\n\t\t\t}", "if (st.nextToken().equals(W)) ans++;", "st.nextToken().equals(W)", "st.nextToken().equals", "st.nextToken()", "st.nextToken", "st", "W", "ans++", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString W = br.readLine().toLowerCase();\n\t\t\n\t\tint ans = 0;\n\t\tString line;\n\t\twhile (!((line = br.readLine()).equals(\"END_OF_TEXT\"))) {\n\t\t\tline = line.toLowerCase();\n\t\t\tStringTokenizer st = new StringTokenizer(line, \" \");\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tif (st.nextToken().equals(W)) ans++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString W = br.readLine().toLowerCase();\n\t\t\n\t\tint ans = 0;\n\t\tString line;\n\t\twhile (!((line = br.readLine()).equals(\"END_OF_TEXT\"))) {\n\t\t\tline = line.toLowerCase();\n\t\t\tStringTokenizer st = new StringTokenizer(line, \" \");\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tif (st.nextToken().equals(W)) ans++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { // TODO Auto-generated method stub BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String W = br.readLine().toLowerCase(); int ans = 0; String line; while (!((line = br.readLine()).equals("END_OF_TEXT"))) { line = line.toLowerCase(); StringTokenizer st = new StringTokenizer(line, " "); while (st.hasMoreTokens()) { if (st.nextToken().equals(W)) ans++; } } System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 20, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 4, 18, 13, 4, 18, 13, 41, 13, 17, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 73, 8 ], [ 73, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 30, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 46, 47 ], [ 11, 48 ], [ 48, 49 ], [ 48, 50 ], [ 11, 51 ], [ 51, 52 ], [ 51, 53 ], [ 51, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 61, 62 ], [ 62, 63 ], [ 11, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 9, 70 ], [ 70, 71 ], [ 0, 72 ], [ 72, 73 ], [ 72, 74 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String searchWord = sc.next().toLowerCase();\n ArrayList<String> stringArray = new ArrayList<String>();\n String target = \"\";\n while(true){\n target = sc.next();\n if(target.equals(\"END_OF_TEXT\")) break;\n stringArray.add(target.toLowerCase());\n }\n int count = 0;\n for(String str: stringArray){\n if(str.equals(searchWord)){\n count++;\n }\n }\n System.out.println(count);\n }\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String searchWord = sc.next().toLowerCase();\n ArrayList<String> stringArray = new ArrayList<String>();\n String target = \"\";\n while(true){\n target = sc.next();\n if(target.equals(\"END_OF_TEXT\")) break;\n stringArray.add(target.toLowerCase());\n }\n int count = 0;\n for(String str: stringArray){\n if(str.equals(searchWord)){\n count++;\n }\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String searchWord = sc.next().toLowerCase();\n ArrayList<String> stringArray = new ArrayList<String>();\n String target = \"\";\n while(true){\n target = sc.next();\n if(target.equals(\"END_OF_TEXT\")) break;\n stringArray.add(target.toLowerCase());\n }\n int count = 0;\n for(String str: stringArray){\n if(str.equals(searchWord)){\n count++;\n }\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String searchWord = sc.next().toLowerCase();\n ArrayList<String> stringArray = new ArrayList<String>();\n String target = \"\";\n while(true){\n target = sc.next();\n if(target.equals(\"END_OF_TEXT\")) break;\n stringArray.add(target.toLowerCase());\n }\n int count = 0;\n for(String str: stringArray){\n if(str.equals(searchWord)){\n count++;\n }\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String searchWord = sc.next().toLowerCase();", "searchWord", "sc.next().toLowerCase()", "sc.next().toLowerCase", "sc.next()", "sc.next", "sc", "ArrayList<String> stringArray = new ArrayList<String>();", "stringArray", "new ArrayList<String>()", "String target = \"\";", "target", "\"\"", "while(true){\n target = sc.next();\n if(target.equals(\"END_OF_TEXT\")) break;\n stringArray.add(target.toLowerCase());\n }", "true", "{\n target = sc.next();\n if(target.equals(\"END_OF_TEXT\")) break;\n stringArray.add(target.toLowerCase());\n }", "target = sc.next()", "target", "sc.next()", "sc.next", "sc", "if(target.equals(\"END_OF_TEXT\")) break;", "target.equals(\"END_OF_TEXT\")", "target.equals", "target", "\"END_OF_TEXT\"", "break;", "stringArray.add(target.toLowerCase())", "stringArray.add", "stringArray", "target.toLowerCase()", "target.toLowerCase", "target", "int count = 0;", "count", "0", "for(String str: stringArray){\n if(str.equals(searchWord)){\n count++;\n }\n }", "String str", "stringArray", "{\n if(str.equals(searchWord)){\n count++;\n }\n }", "{\n if(str.equals(searchWord)){\n count++;\n }\n }", "if(str.equals(searchWord)){\n count++;\n }", "str.equals(searchWord)", "str.equals", "str", "searchWord", "{\n count++;\n }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String searchWord = sc.next().toLowerCase();\n ArrayList<String> stringArray = new ArrayList<String>();\n String target = \"\";\n while(true){\n target = sc.next();\n if(target.equals(\"END_OF_TEXT\")) break;\n stringArray.add(target.toLowerCase());\n }\n int count = 0;\n for(String str: stringArray){\n if(str.equals(searchWord)){\n count++;\n }\n }\n System.out.println(count);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String searchWord = sc.next().toLowerCase();\n ArrayList<String> stringArray = new ArrayList<String>();\n String target = \"\";\n while(true){\n target = sc.next();\n if(target.equals(\"END_OF_TEXT\")) break;\n stringArray.add(target.toLowerCase());\n }\n int count = 0;\n for(String str: stringArray){\n if(str.equals(searchWord)){\n count++;\n }\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String searchWord = sc.next().toLowerCase(); ArrayList<String> stringArray = new ArrayList<String>(); String target = ""; while(true){ target = sc.next(); if(target.equals("END_OF_TEXT")) break; stringArray.add(target.toLowerCase()); } int count = 0; for(String str: stringArray){ if(str.equals(searchWord)){ count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 60, 5 ], [ 60, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 24, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 24, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 41, 46 ], [ 46, 47 ], [ 8, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 6, 57 ], [ 57, 58 ], [ 0, 59 ], [ 59, 60 ], [ 59, 61 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n String w = sc.next().toLowerCase();\n \n\n int cnt=0;\n\n while(true){\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\")) break;\n String t = T.toLowerCase();\n if(t.equals(w)) cnt++;\n \n }\n\n System.out.println(cnt);\n sc.close();\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n String w = sc.next().toLowerCase();\n \n\n int cnt=0;\n\n while(true){\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\")) break;\n String t = T.toLowerCase();\n if(t.equals(w)) cnt++;\n \n }\n\n System.out.println(cnt);\n sc.close();\n }\n}", "Main", "public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n String w = sc.next().toLowerCase();\n \n\n int cnt=0;\n\n while(true){\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\")) break;\n String t = T.toLowerCase();\n if(t.equals(w)) cnt++;\n \n }\n\n System.out.println(cnt);\n sc.close();\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n\n String w = sc.next().toLowerCase();\n \n\n int cnt=0;\n\n while(true){\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\")) break;\n String t = T.toLowerCase();\n if(t.equals(w)) cnt++;\n \n }\n\n System.out.println(cnt);\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String w = sc.next().toLowerCase();", "w", "sc.next().toLowerCase()", "sc.next().toLowerCase", "sc.next()", "sc.next", "sc", "int cnt=0;", "cnt", "0", "while(true){\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\")) break;\n String t = T.toLowerCase();\n if(t.equals(w)) cnt++;\n \n }", "true", "{\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\")) break;\n String t = T.toLowerCase();\n if(t.equals(w)) cnt++;\n \n }", "String T = sc.next();", "T", "sc.next()", "sc.next", "sc", "if(T.equals(\"END_OF_TEXT\")) break;", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "break;", "String t = T.toLowerCase();", "t", "T.toLowerCase()", "T.toLowerCase", "T", "if(t.equals(w)) cnt++;", "t.equals(w)", "t.equals", "t", "w", "cnt++", "cnt", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n String w = sc.next().toLowerCase();\n \n\n int cnt=0;\n\n while(true){\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\")) break;\n String t = T.toLowerCase();\n if(t.equals(w)) cnt++;\n \n }\n\n System.out.println(cnt);\n sc.close();\n }\n}", "public class Main{\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n\n String w = sc.next().toLowerCase();\n \n\n int cnt=0;\n\n while(true){\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\")) break;\n String t = T.toLowerCase();\n if(t.equals(w)) cnt++;\n \n }\n\n System.out.println(cnt);\n sc.close();\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String w = sc.next().toLowerCase(); int cnt=0; while(true){ String T = sc.next(); if(T.equals("END_OF_TEXT")) break; String t = T.toLowerCase(); if(t.equals(w)) cnt++; } System.out.println(cnt); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 41, 13, 17, 42, 17, 30, 0, 18, 13, 13, 4, 18, 13, 14, 4, 18, 18, 13, 13, 17, 30, 3, 0, 18, 13, 13, 4, 18, 18, 13, 13, 40, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 13, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 92, 5 ], [ 92, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 31, 32 ], [ 32, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 34, 41 ], [ 41, 42 ], [ 26, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 26, 52 ], [ 52, 53 ], [ 8, 54 ], [ 54, 55 ], [ 54, 56 ], [ 8, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 57, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 74, 76 ], [ 70, 77 ], [ 77, 78 ], [ 78, 79 ], [ 8, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 8, 86 ], [ 86, 87 ], [ 87, 88 ], [ 6, 89 ], [ 89, 90 ], [ 0, 91 ], [ 91, 92 ], [ 91, 93 ] ]
[ "import java.util.Scanner;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n String[] T = new String[10000];\n int i = 0;\n do{\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")){\n break;\n }\n T[i] = T[i].toLowerCase();\n i++;\n } while (true);\n int wordCount = 0;\n for (int j = 0; j < i; j++) {\n if (W.equals(T[j])) {\n wordCount++;\n }\n }\n System.out.println(wordCount);\n sc.close();\n } \n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n String[] T = new String[10000];\n int i = 0;\n do{\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")){\n break;\n }\n T[i] = T[i].toLowerCase();\n i++;\n } while (true);\n int wordCount = 0;\n for (int j = 0; j < i; j++) {\n if (W.equals(T[j])) {\n wordCount++;\n }\n }\n System.out.println(wordCount);\n sc.close();\n } \n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n String[] T = new String[10000];\n int i = 0;\n do{\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")){\n break;\n }\n T[i] = T[i].toLowerCase();\n i++;\n } while (true);\n int wordCount = 0;\n for (int j = 0; j < i; j++) {\n if (W.equals(T[j])) {\n wordCount++;\n }\n }\n System.out.println(wordCount);\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n String[] T = new String[10000];\n int i = 0;\n do{\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")){\n break;\n }\n T[i] = T[i].toLowerCase();\n i++;\n } while (true);\n int wordCount = 0;\n for (int j = 0; j < i; j++) {\n if (W.equals(T[j])) {\n wordCount++;\n }\n }\n System.out.println(wordCount);\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String W = sc.next();", "W", "sc.next()", "sc.next", "sc", "String[] T = new String[10000];", "T", "new String[10000]", "10000", "int i = 0;", "i", "0", "do{\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")){\n break;\n }\n T[i] = T[i].toLowerCase();\n i++;\n } while (true);", "true", "{\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")){\n break;\n }\n T[i] = T[i].toLowerCase();\n i++;\n }", "T[i] = sc.next()", "T[i]", "T", "i", "sc.next()", "sc.next", "sc", "if(T[i].equals(\"END_OF_TEXT\")){\n break;\n }", "T[i].equals(\"END_OF_TEXT\")", "T[i].equals", "T[i]", "T", "i", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "T[i] = T[i].toLowerCase()", "T[i]", "T", "i", "T[i].toLowerCase()", "T[i].toLowerCase", "T[i]", "T", "i", "i++", "i", "int wordCount = 0;", "wordCount", "0", "for (int j = 0; j < i; j++) {\n if (W.equals(T[j])) {\n wordCount++;\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < i", "j", "i", "j++", "j++", "j", "{\n if (W.equals(T[j])) {\n wordCount++;\n }\n }", "{\n if (W.equals(T[j])) {\n wordCount++;\n }\n }", "if (W.equals(T[j])) {\n wordCount++;\n }", "W.equals(T[j])", "W.equals", "W", "T[j]", "T", "j", "{\n wordCount++;\n }", "wordCount++", "wordCount", "System.out.println(wordCount)", "System.out.println", "System.out", "System", "System.out", "wordCount", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n String[] T = new String[10000];\n int i = 0;\n do{\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")){\n break;\n }\n T[i] = T[i].toLowerCase();\n i++;\n } while (true);\n int wordCount = 0;\n for (int j = 0; j < i; j++) {\n if (W.equals(T[j])) {\n wordCount++;\n }\n }\n System.out.println(wordCount);\n sc.close();\n } \n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n String[] T = new String[10000];\n int i = 0;\n do{\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")){\n break;\n }\n T[i] = T[i].toLowerCase();\n i++;\n } while (true);\n int wordCount = 0;\n for (int j = 0; j < i; j++) {\n if (W.equals(T[j])) {\n wordCount++;\n }\n }\n System.out.println(wordCount);\n sc.close();\n } \n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String W = sc.next(); String[] T = new String[10000]; int i = 0; do{ T[i] = sc.next(); if(T[i].equals("END_OF_TEXT")){ break; } T[i] = T[i].toLowerCase(); i++; } while (true); int wordCount = 0; for (int j = 0; j < i; j++) { if (W.equals(T[j])) { wordCount++; } } System.out.println(wordCount); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 14, 4, 18, 13, 4, 18, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 28, 29 ], [ 28, 30 ], [ 17, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 33, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 33, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 50, 51 ], [ 45, 52 ], [ 52, 53 ], [ 53, 54 ], [ 17, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 15, 61 ], [ 61, 62 ] ]
[ "import java.awt.*;\nimport java.awt.geom.*;\nimport java.io.*;\n\nimport java.util.*;\nclass Main {\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString tar = sc.next().toLowerCase();\n\t\tint count = 0;\n\t\twhile(true) {\n\t\t\tString tmp = sc.next();\n\t\t\tif(tmp.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(tar.equals(tmp.toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "import java.awt.*;", "awt.*", "java", "import java.awt.geom.*;", "geom.*", "java.awt", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "class Main {\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString tar = sc.next().toLowerCase();\n\t\tint count = 0;\n\t\twhile(true) {\n\t\t\tString tmp = sc.next();\n\t\t\tif(tmp.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(tar.equals(tmp.toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString tar = sc.next().toLowerCase();\n\t\tint count = 0;\n\t\twhile(true) {\n\t\t\tString tmp = sc.next();\n\t\t\tif(tmp.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(tar.equals(tmp.toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString tar = sc.next().toLowerCase();\n\t\tint count = 0;\n\t\twhile(true) {\n\t\t\tString tmp = sc.next();\n\t\t\tif(tmp.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(tar.equals(tmp.toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String tar = sc.next().toLowerCase();", "tar", "sc.next().toLowerCase()", "sc.next().toLowerCase", "sc.next()", "sc.next", "sc", "int count = 0;", "count", "0", "while(true) {\n\t\t\tString tmp = sc.next();\n\t\t\tif(tmp.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(tar.equals(tmp.toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString tmp = sc.next();\n\t\t\tif(tmp.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(tar.equals(tmp.toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "String tmp = sc.next();", "tmp", "sc.next()", "sc.next", "sc", "if(tmp.equals(\"END_OF_TEXT\")) break;", "tmp.equals(\"END_OF_TEXT\")", "tmp.equals", "tmp", "\"END_OF_TEXT\"", "break;", "if(tar.equals(tmp.toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}", "tar.equals(tmp.toLowerCase())", "tar.equals", "tar", "tmp.toLowerCase()", "tmp.toLowerCase", "tmp", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.awt.*; import java.awt.geom.*; import java.io.*; import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String tar = sc.next().toLowerCase(); int count = 0; while(true) { String tmp = sc.next(); if(tmp.equals("END_OF_TEXT")) break; if(tar.equals(tmp.toLowerCase())) { count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 30, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 84, 11 ], [ 84, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 42, 43 ], [ 37, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 14, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 49, 59 ], [ 59, 60 ], [ 60, 61 ], [ 49, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 65, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 14, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 12, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tString w = s.nextLine();\n\t\tint count = 0;\n\t\tList<String> t = new ArrayList<>();\n\t\t\n\t\twhile(true) {\n\t\t\tString test = s.next();\n\t\t\tif(test.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tt.add(test);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int j =0;j<t.size();j++) {\n\t\t\tif(t.get(j).equalsIgnoreCase(w)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tString w = s.nextLine();\n\t\tint count = 0;\n\t\tList<String> t = new ArrayList<>();\n\t\t\n\t\twhile(true) {\n\t\t\tString test = s.next();\n\t\t\tif(test.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tt.add(test);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int j =0;j<t.size();j++) {\n\t\t\tif(t.get(j).equalsIgnoreCase(w)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tString w = s.nextLine();\n\t\tint count = 0;\n\t\tList<String> t = new ArrayList<>();\n\t\t\n\t\twhile(true) {\n\t\t\tString test = s.next();\n\t\t\tif(test.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tt.add(test);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int j =0;j<t.size();j++) {\n\t\t\tif(t.get(j).equalsIgnoreCase(w)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tScanner s = new Scanner(System.in);\n\t\tString w = s.nextLine();\n\t\tint count = 0;\n\t\tList<String> t = new ArrayList<>();\n\t\t\n\t\twhile(true) {\n\t\t\tString test = s.next();\n\t\t\tif(test.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tt.add(test);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int j =0;j<t.size();j++) {\n\t\t\tif(t.get(j).equalsIgnoreCase(w)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "String w = s.nextLine();", "w", "s.nextLine()", "s.nextLine", "s", "int count = 0;", "count", "0", "List<String> t = new ArrayList<>();", "t", "new ArrayList<>()", "while(true) {\n\t\t\tString test = s.next();\n\t\t\tif(test.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tt.add(test);\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString test = s.next();\n\t\t\tif(test.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tt.add(test);\n\t\t\t}\n\t\t}", "String test = s.next();", "test", "s.next()", "s.next", "s", "if(test.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tt.add(test);\n\t\t\t}", "test.equals(\"END_OF_TEXT\")", "test.equals", "test", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "{\n\t\t\t\tt.add(test);\n\t\t\t}", "t.add(test)", "t.add", "t", "test", "for(int j =0;j<t.size();j++) {\n\t\t\tif(t.get(j).equalsIgnoreCase(w)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "int j =0;", "int j =0;", "j", "0", "j<t.size()", "j", "t.size()", "t.size", "t", "j++", "j++", "j", "{\n\t\t\tif(t.get(j).equalsIgnoreCase(w)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(t.get(j).equalsIgnoreCase(w)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "if(t.get(j).equalsIgnoreCase(w)) {\n\t\t\t\tcount++;\n\t\t\t}", "t.get(j).equalsIgnoreCase(w)", "t.get(j).equalsIgnoreCase", "t.get(j)", "t.get", "t", "j", "w", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tString w = s.nextLine();\n\t\tint count = 0;\n\t\tList<String> t = new ArrayList<>();\n\t\t\n\t\twhile(true) {\n\t\t\tString test = s.next();\n\t\t\tif(test.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tt.add(test);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int j =0;j<t.size();j++) {\n\t\t\tif(t.get(j).equalsIgnoreCase(w)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tString w = s.nextLine();\n\t\tint count = 0;\n\t\tList<String> t = new ArrayList<>();\n\t\t\n\t\twhile(true) {\n\t\t\tString test = s.next();\n\t\t\tif(test.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tt.add(test);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int j =0;j<t.size();j++) {\n\t\t\tif(t.get(j).equalsIgnoreCase(w)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String w = s.nextLine(); int count = 0; List<String> t = new ArrayList<>(); while(true) { String test = s.next(); if(test.equals("END_OF_TEXT")) { break; }else { t.add(test); } } for(int j =0;j<t.size();j++) { if(t.get(j).equalsIgnoreCase(w)) { count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 20, 17, 41, 13, 17, 41, 13, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 17, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 72, 11 ], [ 72, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 32 ], [ 32, 33 ], [ 14, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 36, 43 ], [ 34, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 44, 51 ], [ 51, 52 ], [ 51, 53 ], [ 51, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 61, 62 ], [ 14, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 12, 69 ], [ 69, 70 ], [ 0, 71 ], [ 71, 72 ], [ 71, 73 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString w = br.readLine().toLowerCase();\n\t\tString[ ] tList = new String[10];\n\t\tint cnt = 0;\n\t\tString t;\n\t\twhile (!(t = br.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\ttList = t.split(\" \");\n\t\t\tfor (String target : tList) {\n\t\t\t\tif (target.equalsIgnoreCase(w)) cnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString w = br.readLine().toLowerCase();\n\t\tString[ ] tList = new String[10];\n\t\tint cnt = 0;\n\t\tString t;\n\t\twhile (!(t = br.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\ttList = t.split(\" \");\n\t\t\tfor (String target : tList) {\n\t\t\t\tif (target.equalsIgnoreCase(w)) cnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString w = br.readLine().toLowerCase();\n\t\tString[ ] tList = new String[10];\n\t\tint cnt = 0;\n\t\tString t;\n\t\twhile (!(t = br.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\ttList = t.split(\" \");\n\t\t\tfor (String target : tList) {\n\t\t\t\tif (target.equalsIgnoreCase(w)) cnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString w = br.readLine().toLowerCase();\n\t\tString[ ] tList = new String[10];\n\t\tint cnt = 0;\n\t\tString t;\n\t\twhile (!(t = br.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\ttList = t.split(\" \");\n\t\t\tfor (String target : tList) {\n\t\t\t\tif (target.equalsIgnoreCase(w)) cnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String w = br.readLine().toLowerCase();", "w", "br.readLine().toLowerCase()", "br.readLine().toLowerCase", "br.readLine()", "br.readLine", "br", "String[ ] tList = new String[10];", "tList", "new String[10]", "10", "int cnt = 0;", "cnt", "0", "String t;", "t", "while (!(t = br.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\ttList = t.split(\" \");\n\t\t\tfor (String target : tList) {\n\t\t\t\tif (target.equalsIgnoreCase(w)) cnt++;\n\t\t\t}\n\t\t}", "!(t = br.readLine()).equals(\"END_OF_TEXT\")", "(t = br.readLine()).equals(\"END_OF_TEXT\")", "(t = br.readLine()).equals", "(t = br.readLine())", "t", "br.readLine()", "br.readLine", "br", "\"END_OF_TEXT\"", "{\n\t\t\ttList = t.split(\" \");\n\t\t\tfor (String target : tList) {\n\t\t\t\tif (target.equalsIgnoreCase(w)) cnt++;\n\t\t\t}\n\t\t}", "tList = t.split(\" \")", "tList", "t.split(\" \")", "t.split", "t", "\" \"", "for (String target : tList) {\n\t\t\t\tif (target.equalsIgnoreCase(w)) cnt++;\n\t\t\t}", "String target", "tList", "{\n\t\t\t\tif (target.equalsIgnoreCase(w)) cnt++;\n\t\t\t}", "{\n\t\t\t\tif (target.equalsIgnoreCase(w)) cnt++;\n\t\t\t}", "if (target.equalsIgnoreCase(w)) cnt++;", "target.equalsIgnoreCase(w)", "target.equalsIgnoreCase", "target", "w", "cnt++", "cnt", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString w = br.readLine().toLowerCase();\n\t\tString[ ] tList = new String[10];\n\t\tint cnt = 0;\n\t\tString t;\n\t\twhile (!(t = br.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\ttList = t.split(\" \");\n\t\t\tfor (String target : tList) {\n\t\t\t\tif (target.equalsIgnoreCase(w)) cnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString w = br.readLine().toLowerCase();\n\t\tString[ ] tList = new String[10];\n\t\tint cnt = 0;\n\t\tString t;\n\t\twhile (!(t = br.readLine()).equals(\"END_OF_TEXT\")) {\n\t\t\ttList = t.split(\" \");\n\t\t\tfor (String target : tList) {\n\t\t\t\tif (target.equalsIgnoreCase(w)) cnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String w = br.readLine().toLowerCase(); String[ ] tList = new String[10]; int cnt = 0; String t; while (!(t = br.readLine()).equals("END_OF_TEXT")) { tList = t.split(" "); for (String target : tList) { if (target.equalsIgnoreCase(w)) cnt++; } } System.out.println(cnt); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 52, 5 ], [ 52, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 28, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 40, 41 ], [ 41, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 6, 49 ], [ 49, 50 ], [ 0, 51 ], [ 51, 52 ], [ 51, 53 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n String word = sc.next();\n int count=0;\n while(true){\n String text = sc.next();\n if(text.equals(\"END_OF_TEXT\")){\n break;\n }else if(text.equalsIgnoreCase(word)){\n count++;\n }\n }\n System.out.println(count);\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n String word = sc.next();\n int count=0;\n while(true){\n String text = sc.next();\n if(text.equals(\"END_OF_TEXT\")){\n break;\n }else if(text.equalsIgnoreCase(word)){\n count++;\n }\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n String word = sc.next();\n int count=0;\n while(true){\n String text = sc.next();\n if(text.equals(\"END_OF_TEXT\")){\n break;\n }else if(text.equalsIgnoreCase(word)){\n count++;\n }\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String word = sc.next();\n int count=0;\n while(true){\n String text = sc.next();\n if(text.equals(\"END_OF_TEXT\")){\n break;\n }else if(text.equalsIgnoreCase(word)){\n count++;\n }\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String word = sc.next();", "word", "sc.next()", "sc.next", "sc", "int count=0;", "count", "0", "while(true){\n String text = sc.next();\n if(text.equals(\"END_OF_TEXT\")){\n break;\n }else if(text.equalsIgnoreCase(word)){\n count++;\n }\n }", "true", "{\n String text = sc.next();\n if(text.equals(\"END_OF_TEXT\")){\n break;\n }else if(text.equalsIgnoreCase(word)){\n count++;\n }\n }", "String text = sc.next();", "text", "sc.next()", "sc.next", "sc", "if(text.equals(\"END_OF_TEXT\")){\n break;\n }else if(text.equalsIgnoreCase(word)){\n count++;\n }", "text.equals(\"END_OF_TEXT\")", "text.equals", "text", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "if(text.equalsIgnoreCase(word)){\n count++;\n }", "text.equalsIgnoreCase(word)", "text.equalsIgnoreCase", "text", "word", "{\n count++;\n }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[]argc", "argc", "public class Main{\n public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n String word = sc.next();\n int count=0;\n while(true){\n String text = sc.next();\n if(text.equals(\"END_OF_TEXT\")){\n break;\n }else if(text.equalsIgnoreCase(word)){\n count++;\n }\n }\n System.out.println(count);\n }\n}", "public class Main{\n public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n String word = sc.next();\n int count=0;\n while(true){\n String text = sc.next();\n if(text.equals(\"END_OF_TEXT\")){\n break;\n }else if(text.equalsIgnoreCase(word)){\n count++;\n }\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[]argc){ Scanner sc = new Scanner(System.in); String word = sc.next(); int count=0; while(true){ String text = sc.next(); if(text.equals("END_OF_TEXT")){ break; }else if(text.equalsIgnoreCase(word)){ count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 22, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 22, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 22, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 8, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 6, 57 ], [ 57, 58 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[]args){\n\tScanner sc = new Scanner(System.in);\n\t\n String W = sc.nextLine();\n int count = 0;\n\n\twhile(true){\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\"))\n break;\n \n \tW= W.toUpperCase( );\n \tT= T.toUpperCase( );\n if(T.equals(W))\n count++;\n\t\t}\n System.out.println(count);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String[]args){\n\tScanner sc = new Scanner(System.in);\n\t\n String W = sc.nextLine();\n int count = 0;\n\n\twhile(true){\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\"))\n break;\n \n \tW= W.toUpperCase( );\n \tT= T.toUpperCase( );\n if(T.equals(W))\n count++;\n\t\t}\n System.out.println(count);\n\t}\n}", "Main", "public static void main(String[]args){\n\tScanner sc = new Scanner(System.in);\n\t\n String W = sc.nextLine();\n int count = 0;\n\n\twhile(true){\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\"))\n break;\n \n \tW= W.toUpperCase( );\n \tT= T.toUpperCase( );\n if(T.equals(W))\n count++;\n\t\t}\n System.out.println(count);\n\t}", "main", "{\n\tScanner sc = new Scanner(System.in);\n\t\n String W = sc.nextLine();\n int count = 0;\n\n\twhile(true){\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\"))\n break;\n \n \tW= W.toUpperCase( );\n \tT= T.toUpperCase( );\n if(T.equals(W))\n count++;\n\t\t}\n System.out.println(count);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String W = sc.nextLine();", "W", "sc.nextLine()", "sc.nextLine", "sc", "int count = 0;", "count", "0", "while(true){\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\"))\n break;\n \n \tW= W.toUpperCase( );\n \tT= T.toUpperCase( );\n if(T.equals(W))\n count++;\n\t\t}", "true", "{\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\"))\n break;\n \n \tW= W.toUpperCase( );\n \tT= T.toUpperCase( );\n if(T.equals(W))\n count++;\n\t\t}", "String T = sc.next();", "T", "sc.next()", "sc.next", "sc", "if(T.equals(\"END_OF_TEXT\"))\n break;", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "break;", "W= W.toUpperCase( )", "W", "W.toUpperCase( )", "W.toUpperCase", "W", "T= T.toUpperCase( )", "T", "T.toUpperCase( )", "T.toUpperCase", "T", "if(T.equals(W))\n count++;", "T.equals(W)", "T.equals", "T", "W", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[]args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); String W = sc.nextLine(); int count = 0; while(true){ String T = sc.next(); if(T.equals("END_OF_TEXT")) break; W= W.toUpperCase( ); T= T.toUpperCase( ); if(T.equals(W)) count++; } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 4, 18, 4, 18, 13, 41, 13, 41, 13, 17, 41, 13, 17, 42, 2, 17, 0, 13, 4, 18, 13, 30, 28, 13, 4, 18, 13, 17, 17, 30, 30, 14, 4, 18, 13, 17, 30, 0, 13, 17, 3, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 13, 14, 13, 30, 3, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 16, 21 ], [ 12, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 22, 30 ], [ 30, 31 ], [ 22, 32 ], [ 32, 33 ], [ 32, 34 ], [ 22, 35 ], [ 35, 36 ], [ 35, 37 ], [ 22, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 49, 53 ], [ 47, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 55, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 55, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 71, 76 ], [ 76, 77 ], [ 77, 78 ], [ 46, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 22, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 6, 89 ], [ 89, 90 ] ]
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t String word = kb.readLine().toUpperCase();\n\t \n\t String str;\n\t int cnt = 0;\n\t \tboolean endoftext = false;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tfor( String wd: str.split( \" \", 0 ) ) {\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }\n\t \tif( endoftext ) { break; }\n\t }\n\t\t\tSystem.out.println( cnt );\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t String word = kb.readLine().toUpperCase();\n\t \n\t String str;\n\t int cnt = 0;\n\t \tboolean endoftext = false;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tfor( String wd: str.split( \" \", 0 ) ) {\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }\n\t \tif( endoftext ) { break; }\n\t }\n\t\t\tSystem.out.println( cnt );\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t String word = kb.readLine().toUpperCase();\n\t \n\t String str;\n\t int cnt = 0;\n\t \tboolean endoftext = false;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tfor( String wd: str.split( \" \", 0 ) ) {\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }\n\t \tif( endoftext ) { break; }\n\t }\n\t\t\tSystem.out.println( cnt );\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t String word = kb.readLine().toUpperCase();\n\t \n\t String str;\n\t int cnt = 0;\n\t \tboolean endoftext = false;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tfor( String wd: str.split( \" \", 0 ) ) {\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }\n\t \tif( endoftext ) { break; }\n\t }\n\t\t\tSystem.out.println( cnt );\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}", "BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );", "kb", "new BufferedReader( new InputStreamReader( System.in ) )", "try {\n\t String word = kb.readLine().toUpperCase();\n\t \n\t String str;\n\t int cnt = 0;\n\t \tboolean endoftext = false;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tfor( String wd: str.split( \" \", 0 ) ) {\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }\n\t \tif( endoftext ) { break; }\n\t }\n\t\t\tSystem.out.println( cnt );\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}", "catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}", "IOException e", "{\n\t\t\tSystem.err.println( e );\n\t\t}", "System.err.println( e )", "System.err.println", "System.err", "System", "System.err", "e", "{\n\t String word = kb.readLine().toUpperCase();\n\t \n\t String str;\n\t int cnt = 0;\n\t \tboolean endoftext = false;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tfor( String wd: str.split( \" \", 0 ) ) {\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }\n\t \tif( endoftext ) { break; }\n\t }\n\t\t\tSystem.out.println( cnt );\n\t\t\t\n\t\t}", "String word = kb.readLine().toUpperCase();", "word", "kb.readLine().toUpperCase()", "kb.readLine().toUpperCase", "kb.readLine()", "kb.readLine", "kb", "String str;", "str", "int cnt = 0;", "cnt", "0", "boolean endoftext = false;", "endoftext", "false", "while( null != ( str = kb.readLine() ) ) {\n\t \tfor( String wd: str.split( \" \", 0 ) ) {\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }\n\t \tif( endoftext ) { break; }\n\t }", "null != ( str = kb.readLine() )", "null", "( str = kb.readLine() )", "str", "kb.readLine()", "kb.readLine", "kb", "{\n\t \tfor( String wd: str.split( \" \", 0 ) ) {\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }\n\t \tif( endoftext ) { break; }\n\t }", "for( String wd: str.split( \" \", 0 ) ) {\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }", "String wd", "str.split( \" \", 0 )", "str.split", "str", "\" \"", "0", "{\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }", "{\n\t\t\t\t\tif( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \twd = wd.toUpperCase();\n\t\t \tif( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}\n\t\t }", "if( wd.equals( \"END_OF_TEXT\" ) ) {\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}", "wd.equals( \"END_OF_TEXT\" )", "wd.equals", "wd", "\"END_OF_TEXT\"", "{\n\t\t \t\tendoftext = true;\n\t\t \t\tbreak;\n\t\t \t}", "endoftext = true", "endoftext", "true", "break;", "wd = wd.toUpperCase()", "wd", "wd.toUpperCase()", "wd.toUpperCase", "wd", "if( wd.equals( word ) ) {\n\t\t \t\tcnt++;\n\t\t \t}", "wd.equals( word )", "wd.equals", "wd", "word", "{\n\t\t \t\tcnt++;\n\t\t \t}", "cnt++", "cnt", "if( endoftext ) { break; }", "endoftext", "{ break; }", "break;", "System.out.println( cnt )", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args" ]
import java.io.*; class Main { public static void main(String[] args) { BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) ); try { String word = kb.readLine().toUpperCase(); String str; int cnt = 0; boolean endoftext = false; while( null != ( str = kb.readLine() ) ) { for( String wd: str.split( " ", 0 ) ) { if( wd.equals( "END_OF_TEXT" ) ) { endoftext = true; break; } wd = wd.toUpperCase(); if( wd.equals( word ) ) { cnt++; } } if( endoftext ) { break; } } System.out.println( cnt ); } catch( IOException e ) { System.err.println( e ); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 28, 13, 4, 18, 13, 17, 30, 30, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 58, 5 ], [ 58, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 22, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 34, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 47, 48 ], [ 8, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 6, 55 ], [ 55, 56 ], [ 0, 57 ], [ 57, 58 ], [ 57, 59 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString d = scanner.nextLine();\n\t\tint sum = 0;\n\t\twhile (true) {\n\t\t\tString a = scanner.nextLine();\n\t\t\tif (a.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tfor (String s : a.split(\" \")) {\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString d = scanner.nextLine();\n\t\tint sum = 0;\n\t\twhile (true) {\n\t\t\tString a = scanner.nextLine();\n\t\t\tif (a.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tfor (String s : a.split(\" \")) {\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString d = scanner.nextLine();\n\t\tint sum = 0;\n\t\twhile (true) {\n\t\t\tString a = scanner.nextLine();\n\t\t\tif (a.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tfor (String s : a.split(\" \")) {\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString d = scanner.nextLine();\n\t\tint sum = 0;\n\t\twhile (true) {\n\t\t\tString a = scanner.nextLine();\n\t\t\tif (a.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tfor (String s : a.split(\" \")) {\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String d = scanner.nextLine();", "d", "scanner.nextLine()", "scanner.nextLine", "scanner", "int sum = 0;", "sum", "0", "while (true) {\n\t\t\tString a = scanner.nextLine();\n\t\t\tif (a.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tfor (String s : a.split(\" \")) {\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tsum++;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString a = scanner.nextLine();\n\t\t\tif (a.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tfor (String s : a.split(\" \")) {\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tsum++;\n\t\t\t}\n\t\t}", "String a = scanner.nextLine();", "a", "scanner.nextLine()", "scanner.nextLine", "scanner", "if (a.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;", "a.equals(\"END_OF_TEXT\")", "a.equals", "a", "\"END_OF_TEXT\"", "break;", "for (String s : a.split(\" \")) {\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tsum++;\n\t\t\t}", "String s", "a.split(\" \")", "a.split", "a", "\" \"", "{\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tsum++;\n\t\t\t}", "{\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tsum++;\n\t\t\t}", "if (s.equalsIgnoreCase(d))\n\t\t\t\t\tsum++;", "s.equalsIgnoreCase(d)", "s.equalsIgnoreCase", "s", "d", "sum++", "sum", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString d = scanner.nextLine();\n\t\tint sum = 0;\n\t\twhile (true) {\n\t\t\tString a = scanner.nextLine();\n\t\t\tif (a.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tfor (String s : a.split(\" \")) {\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString d = scanner.nextLine();\n\t\tint sum = 0;\n\t\twhile (true) {\n\t\t\tString a = scanner.nextLine();\n\t\t\tif (a.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tfor (String s : a.split(\" \")) {\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tsum++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String d = scanner.nextLine(); int sum = 0; while (true) { String a = scanner.nextLine(); if (a.equals("END_OF_TEXT")) break; for (String s : a.split(" ")) { if (s.equalsIgnoreCase(d)) sum++; } } System.out.println(sum); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 13, 30, 41, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 18, 13, 13, 13, 30, 0, 13, 2, 13, 17, 14, 4, 18, 18, 13, 13, 13, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 39, 44 ], [ 36, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 45, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 61, 68 ], [ 60, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 60, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 75, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 14, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 12, 92 ], [ 92, 93 ] ]
[ "//????????????????????????????¨?\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString serchWord = br.readLine().toLowerCase();\n\t\t\n\t\tint cnt = 0;\n\t\tboolean flg = true;\n\t\tString endWord =\"END_OF_TEXT\";\n\t\t\n\t\twhile(flg){\n\t\t\t\n\t\t\tString[] sentence = br.readLine().split(\" \");\t\t\n\t\t\t\n\t\t\tfor(int i=0; i<sentence.length; i++) {\n\t\t\t\tif(sentence[i].toLowerCase().equals(serchWord)) {\n\t\t\t\t\tcnt = cnt + 1;\n\t\t\t\t}\n\t\t\t\telse if(sentence[i].equals(endWord)) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString serchWord = br.readLine().toLowerCase();\n\t\t\n\t\tint cnt = 0;\n\t\tboolean flg = true;\n\t\tString endWord =\"END_OF_TEXT\";\n\t\t\n\t\twhile(flg){\n\t\t\t\n\t\t\tString[] sentence = br.readLine().split(\" \");\t\t\n\t\t\t\n\t\t\tfor(int i=0; i<sentence.length; i++) {\n\t\t\t\tif(sentence[i].toLowerCase().equals(serchWord)) {\n\t\t\t\t\tcnt = cnt + 1;\n\t\t\t\t}\n\t\t\t\telse if(sentence[i].equals(endWord)) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tBufferedReader br =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString serchWord = br.readLine().toLowerCase();\n\t\t\n\t\tint cnt = 0;\n\t\tboolean flg = true;\n\t\tString endWord =\"END_OF_TEXT\";\n\t\t\n\t\twhile(flg){\n\t\t\t\n\t\t\tString[] sentence = br.readLine().split(\" \");\t\t\n\t\t\t\n\t\t\tfor(int i=0; i<sentence.length; i++) {\n\t\t\t\tif(sentence[i].toLowerCase().equals(serchWord)) {\n\t\t\t\t\tcnt = cnt + 1;\n\t\t\t\t}\n\t\t\t\telse if(sentence[i].equals(endWord)) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "main", "{\n\t\tBufferedReader br =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString serchWord = br.readLine().toLowerCase();\n\t\t\n\t\tint cnt = 0;\n\t\tboolean flg = true;\n\t\tString endWord =\"END_OF_TEXT\";\n\t\t\n\t\twhile(flg){\n\t\t\t\n\t\t\tString[] sentence = br.readLine().split(\" \");\t\t\n\t\t\t\n\t\t\tfor(int i=0; i<sentence.length; i++) {\n\t\t\t\tif(sentence[i].toLowerCase().equals(serchWord)) {\n\t\t\t\t\tcnt = cnt + 1;\n\t\t\t\t}\n\t\t\t\telse if(sentence[i].equals(endWord)) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "BufferedReader br =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String serchWord = br.readLine().toLowerCase();", "serchWord", "br.readLine().toLowerCase()", "br.readLine().toLowerCase", "br.readLine()", "br.readLine", "br", "int cnt = 0;", "cnt", "0", "boolean flg = true;", "flg", "true", "String endWord =\"END_OF_TEXT\";", "endWord", "\"END_OF_TEXT\"", "while(flg){\n\t\t\t\n\t\t\tString[] sentence = br.readLine().split(\" \");\t\t\n\t\t\t\n\t\t\tfor(int i=0; i<sentence.length; i++) {\n\t\t\t\tif(sentence[i].toLowerCase().equals(serchWord)) {\n\t\t\t\t\tcnt = cnt + 1;\n\t\t\t\t}\n\t\t\t\telse if(sentence[i].equals(endWord)) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "flg", "{\n\t\t\t\n\t\t\tString[] sentence = br.readLine().split(\" \");\t\t\n\t\t\t\n\t\t\tfor(int i=0; i<sentence.length; i++) {\n\t\t\t\tif(sentence[i].toLowerCase().equals(serchWord)) {\n\t\t\t\t\tcnt = cnt + 1;\n\t\t\t\t}\n\t\t\t\telse if(sentence[i].equals(endWord)) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String[] sentence = br.readLine().split(\" \");", "sentence", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "for(int i=0; i<sentence.length; i++) {\n\t\t\t\tif(sentence[i].toLowerCase().equals(serchWord)) {\n\t\t\t\t\tcnt = cnt + 1;\n\t\t\t\t}\n\t\t\t\telse if(sentence[i].equals(endWord)) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<sentence.length", "i", "sentence.length", "sentence", "sentence.length", "i++", "i++", "i", "{\n\t\t\t\tif(sentence[i].toLowerCase().equals(serchWord)) {\n\t\t\t\t\tcnt = cnt + 1;\n\t\t\t\t}\n\t\t\t\telse if(sentence[i].equals(endWord)) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(sentence[i].toLowerCase().equals(serchWord)) {\n\t\t\t\t\tcnt = cnt + 1;\n\t\t\t\t}\n\t\t\t\telse if(sentence[i].equals(endWord)) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}\n\t\t\t}", "if(sentence[i].toLowerCase().equals(serchWord)) {\n\t\t\t\t\tcnt = cnt + 1;\n\t\t\t\t}\n\t\t\t\telse if(sentence[i].equals(endWord)) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}", "sentence[i].toLowerCase().equals(serchWord)", "sentence[i].toLowerCase().equals", "sentence[i].toLowerCase()", "sentence[i].toLowerCase", "sentence[i]", "sentence", "i", "serchWord", "{\n\t\t\t\t\tcnt = cnt + 1;\n\t\t\t\t}", "cnt = cnt + 1", "cnt", "cnt + 1", "cnt", "1", "if(sentence[i].equals(endWord)) {\n\t\t\t\t\tflg = false;\n\t\t\t\t}", "sentence[i].equals(endWord)", "sentence[i].equals", "sentence[i]", "sentence", "i", "endWord", "{\n\t\t\t\t\tflg = false;\n\t\t\t\t}", "flg = false", "flg", "false", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args" ]
//????????????????????????????¨? import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String serchWord = br.readLine().toLowerCase(); int cnt = 0; boolean flg = true; String endWord ="END_OF_TEXT"; while(flg){ String[] sentence = br.readLine().split(" "); for(int i=0; i<sentence.length; i++) { if(sentence[i].toLowerCase().equals(serchWord)) { cnt = cnt + 1; } else if(sentence[i].equals(endWord)) { flg = false; } } } System.out.println(cnt); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 4, 18, 13, 0, 13, 4, 18, 13, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 14, 2, 13, 13, 30, 14, 4, 18, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 80, 5 ], [ 80, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 37, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 48, 53 ], [ 37, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 60, 65 ], [ 59, 66 ], [ 66, 67 ], [ 8, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 8, 74 ], [ 74, 75 ], [ 75, 76 ], [ 6, 77 ], [ 77, 78 ], [ 0, 79 ], [ 79, 80 ], [ 79, 81 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int count = 0, a, b;\n String w, t;\n w = sc.next().toLowerCase();\n a = w.length();\n while(true){\n \tt = sc.next();\n \tb = t.length();\n \tif(t.contains(\"END_OF_TEXT\")) break;\n \tif(a == b) {\n \t\tif(t.toLowerCase().contains(w)) count++;\n \t}\n }\n System.out.println(count);\n sc.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int count = 0, a, b;\n String w, t;\n w = sc.next().toLowerCase();\n a = w.length();\n while(true){\n \tt = sc.next();\n \tb = t.length();\n \tif(t.contains(\"END_OF_TEXT\")) break;\n \tif(a == b) {\n \t\tif(t.toLowerCase().contains(w)) count++;\n \t}\n }\n System.out.println(count);\n sc.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int count = 0, a, b;\n String w, t;\n w = sc.next().toLowerCase();\n a = w.length();\n while(true){\n \tt = sc.next();\n \tb = t.length();\n \tif(t.contains(\"END_OF_TEXT\")) break;\n \tif(a == b) {\n \t\tif(t.toLowerCase().contains(w)) count++;\n \t}\n }\n System.out.println(count);\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int count = 0, a, b;\n String w, t;\n w = sc.next().toLowerCase();\n a = w.length();\n while(true){\n \tt = sc.next();\n \tb = t.length();\n \tif(t.contains(\"END_OF_TEXT\")) break;\n \tif(a == b) {\n \t\tif(t.toLowerCase().contains(w)) count++;\n \t}\n }\n System.out.println(count);\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int count = 0", "count", "0", "a", "a", "b;", "b", "String w", "w", "t;", "t", "w = sc.next().toLowerCase()", "w", "sc.next().toLowerCase()", "sc.next().toLowerCase", "sc.next()", "sc.next", "sc", "a = w.length()", "a", "w.length()", "w.length", "w", "while(true){\n \tt = sc.next();\n \tb = t.length();\n \tif(t.contains(\"END_OF_TEXT\")) break;\n \tif(a == b) {\n \t\tif(t.toLowerCase().contains(w)) count++;\n \t}\n }", "true", "{\n \tt = sc.next();\n \tb = t.length();\n \tif(t.contains(\"END_OF_TEXT\")) break;\n \tif(a == b) {\n \t\tif(t.toLowerCase().contains(w)) count++;\n \t}\n }", "t = sc.next()", "t", "sc.next()", "sc.next", "sc", "b = t.length()", "b", "t.length()", "t.length", "t", "if(t.contains(\"END_OF_TEXT\")) break;", "t.contains(\"END_OF_TEXT\")", "t.contains", "t", "\"END_OF_TEXT\"", "break;", "if(a == b) {\n \t\tif(t.toLowerCase().contains(w)) count++;\n \t}", "a == b", "a", "b", "{\n \t\tif(t.toLowerCase().contains(w)) count++;\n \t}", "if(t.toLowerCase().contains(w)) count++;", "t.toLowerCase().contains(w)", "t.toLowerCase().contains", "t.toLowerCase()", "t.toLowerCase", "t", "w", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int count = 0, a, b;\n String w, t;\n w = sc.next().toLowerCase();\n a = w.length();\n while(true){\n \tt = sc.next();\n \tb = t.length();\n \tif(t.contains(\"END_OF_TEXT\")) break;\n \tif(a == b) {\n \t\tif(t.toLowerCase().contains(w)) count++;\n \t}\n }\n System.out.println(count);\n sc.close();\n }\n}", "public class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int count = 0, a, b;\n String w, t;\n w = sc.next().toLowerCase();\n a = w.length();\n while(true){\n \tt = sc.next();\n \tb = t.length();\n \tif(t.contains(\"END_OF_TEXT\")) break;\n \tif(a == b) {\n \t\tif(t.toLowerCase().contains(w)) count++;\n \t}\n }\n System.out.println(count);\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int count = 0, a, b; String w, t; w = sc.next().toLowerCase(); a = w.length(); while(true){ t = sc.next(); b = t.length(); if(t.contains("END_OF_TEXT")) break; if(a == b) { if(t.toLowerCase().contains(w)) count++; } } System.out.println(count); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 41, 13, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 13, 2, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 83, 17 ], [ 83, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 20, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 20, 34 ], [ 34, 35 ], [ 34, 36 ], [ 20, 37 ], [ 37, 38 ], [ 20, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 41, 48 ], [ 39, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 52, 57 ], [ 49, 58 ], [ 58, 59 ], [ 58, 60 ], [ 58, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 63, 68 ], [ 68, 69 ], [ 69, 70 ], [ 20, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 74, 76 ], [ 20, 77 ], [ 77, 78 ], [ 78, 79 ], [ 18, 80 ], [ 80, 81 ], [ 0, 82 ], [ 82, 83 ], [ 82, 84 ] ]
[ "import java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.InputStreamReader;\nimport java.io.OutputStreamWriter;\nimport java.io.IOException;\n\npublic class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n String T = br.readLine().toLowerCase();\n\n int count = 0;\n String input;\n while (!(input = br.readLine()).equals(\"END_OF_TEXT\")) {\n String[] word = input.toLowerCase().split(\" \");\n for (String w : word) {\n if (T.equals(w)) {\n count++;\n }\n }\n }\n\n bw.append(count + \"\\n\");\n bw.flush();\n }\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.BufferedWriter;", "BufferedWriter", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.OutputStreamWriter;", "OutputStreamWriter", "java.io", "import java.io.IOException;", "IOException", "java.io", "public class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n String T = br.readLine().toLowerCase();\n\n int count = 0;\n String input;\n while (!(input = br.readLine()).equals(\"END_OF_TEXT\")) {\n String[] word = input.toLowerCase().split(\" \");\n for (String w : word) {\n if (T.equals(w)) {\n count++;\n }\n }\n }\n\n bw.append(count + \"\\n\");\n bw.flush();\n }\n\n}", "Main", "public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n String T = br.readLine().toLowerCase();\n\n int count = 0;\n String input;\n while (!(input = br.readLine()).equals(\"END_OF_TEXT\")) {\n String[] word = input.toLowerCase().split(\" \");\n for (String w : word) {\n if (T.equals(w)) {\n count++;\n }\n }\n }\n\n bw.append(count + \"\\n\");\n bw.flush();\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n String T = br.readLine().toLowerCase();\n\n int count = 0;\n String input;\n while (!(input = br.readLine()).equals(\"END_OF_TEXT\")) {\n String[] word = input.toLowerCase().split(\" \");\n for (String w : word) {\n if (T.equals(w)) {\n count++;\n }\n }\n }\n\n bw.append(count + \"\\n\");\n bw.flush();\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));", "bw", "new BufferedWriter(new OutputStreamWriter(System.out))", "String T = br.readLine().toLowerCase();", "T", "br.readLine().toLowerCase()", "br.readLine().toLowerCase", "br.readLine()", "br.readLine", "br", "int count = 0;", "count", "0", "String input;", "input", "while (!(input = br.readLine()).equals(\"END_OF_TEXT\")) {\n String[] word = input.toLowerCase().split(\" \");\n for (String w : word) {\n if (T.equals(w)) {\n count++;\n }\n }\n }", "!(input = br.readLine()).equals(\"END_OF_TEXT\")", "(input = br.readLine()).equals(\"END_OF_TEXT\")", "(input = br.readLine()).equals", "(input = br.readLine())", "input", "br.readLine()", "br.readLine", "br", "\"END_OF_TEXT\"", "{\n String[] word = input.toLowerCase().split(\" \");\n for (String w : word) {\n if (T.equals(w)) {\n count++;\n }\n }\n }", "String[] word = input.toLowerCase().split(\" \");", "word", "input.toLowerCase().split(\" \")", "input.toLowerCase().split", "input.toLowerCase()", "input.toLowerCase", "input", "\" \"", "for (String w : word) {\n if (T.equals(w)) {\n count++;\n }\n }", "String w", "word", "{\n if (T.equals(w)) {\n count++;\n }\n }", "{\n if (T.equals(w)) {\n count++;\n }\n }", "if (T.equals(w)) {\n count++;\n }", "T.equals(w)", "T.equals", "T", "w", "{\n count++;\n }", "count++", "count", "bw.append(count + \"\\n\")", "bw.append", "bw", "count + \"\\n\"", "count", "\"\\n\"", "bw.flush()", "bw.flush", "bw", "String args[]", "args", "public class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n String T = br.readLine().toLowerCase();\n\n int count = 0;\n String input;\n while (!(input = br.readLine()).equals(\"END_OF_TEXT\")) {\n String[] word = input.toLowerCase().split(\" \");\n for (String w : word) {\n if (T.equals(w)) {\n count++;\n }\n }\n }\n\n bw.append(count + \"\\n\");\n bw.flush();\n }\n\n}", "public class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n String T = br.readLine().toLowerCase();\n\n int count = 0;\n String input;\n while (!(input = br.readLine()).equals(\"END_OF_TEXT\")) {\n String[] word = input.toLowerCase().split(\" \");\n for (String w : word) {\n if (T.equals(w)) {\n count++;\n }\n }\n }\n\n bw.append(count + \"\\n\");\n bw.flush();\n }\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.IOException; public class Main { public static void main(String args[]) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); String T = br.readLine().toLowerCase(); int count = 0; String input; while (!(input = br.readLine()).equals("END_OF_TEXT")) { String[] word = input.toLowerCase().split(" "); for (String w : word) { if (T.equals(w)) { count++; } } } bw.append(count + "\n"); bw.flush(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 66, 5 ], [ 66, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 42, 43 ], [ 31, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 31, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 49, 54 ], [ 54, 55 ], [ 55, 56 ], [ 8, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 6, 63 ], [ 63, 64 ], [ 0, 65 ], [ 65, 66 ], [ 65, 67 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int count=0;\n String w,t;\n w=scan.next();\n w=w.toLowerCase();\n while(true) {\n \tt=scan.next();\n \tif(t.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tt=t.toLowerCase();\n \tif(t.equals(w)) {\n \t\tcount++;\n \t}\n }\n System.out.println(count);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int count=0;\n String w,t;\n w=scan.next();\n w=w.toLowerCase();\n while(true) {\n \tt=scan.next();\n \tif(t.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tt=t.toLowerCase();\n \tif(t.equals(w)) {\n \t\tcount++;\n \t}\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int count=0;\n String w,t;\n w=scan.next();\n w=w.toLowerCase();\n while(true) {\n \tt=scan.next();\n \tif(t.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tt=t.toLowerCase();\n \tif(t.equals(w)) {\n \t\tcount++;\n \t}\n }\n System.out.println(count);\n }", "main", "{\n Scanner scan=new Scanner(System.in);\n int count=0;\n String w,t;\n w=scan.next();\n w=w.toLowerCase();\n while(true) {\n \tt=scan.next();\n \tif(t.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tt=t.toLowerCase();\n \tif(t.equals(w)) {\n \t\tcount++;\n \t}\n }\n System.out.println(count);\n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "int count=0;", "count", "0", "String w", "w", "t;", "t", "w=scan.next()", "w", "scan.next()", "scan.next", "scan", "w=w.toLowerCase()", "w", "w.toLowerCase()", "w.toLowerCase", "w", "while(true) {\n \tt=scan.next();\n \tif(t.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tt=t.toLowerCase();\n \tif(t.equals(w)) {\n \t\tcount++;\n \t}\n }", "true", "{\n \tt=scan.next();\n \tif(t.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tt=t.toLowerCase();\n \tif(t.equals(w)) {\n \t\tcount++;\n \t}\n }", "t=scan.next()", "t", "scan.next()", "scan.next", "scan", "if(t.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}", "t.equals(\"END_OF_TEXT\")", "t.equals", "t", "\"END_OF_TEXT\"", "{\n \t\tbreak;\n \t}", "break;", "t=t.toLowerCase()", "t", "t.toLowerCase()", "t.toLowerCase", "t", "if(t.equals(w)) {\n \t\tcount++;\n \t}", "t.equals(w)", "t.equals", "t", "w", "{\n \t\tcount++;\n \t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int count=0;\n String w,t;\n w=scan.next();\n w=w.toLowerCase();\n while(true) {\n \tt=scan.next();\n \tif(t.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tt=t.toLowerCase();\n \tif(t.equals(w)) {\n \t\tcount++;\n \t}\n }\n System.out.println(count);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int count=0;\n String w,t;\n w=scan.next();\n w=w.toLowerCase();\n while(true) {\n \tt=scan.next();\n \tif(t.equals(\"END_OF_TEXT\")) {\n \t\tbreak;\n \t}\n \tt=t.toLowerCase();\n \tif(t.equals(w)) {\n \t\tcount++;\n \t}\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan=new Scanner(System.in); int count=0; String w,t; w=scan.next(); w=w.toLowerCase(); while(true) { t=scan.next(); if(t.equals("END_OF_TEXT")) { break; } t=t.toLowerCase(); if(t.equals(w)) { count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 0, 13, 4, 18, 13, 42, 40, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 14, 40, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 93, 5 ], [ 93, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 34, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 40, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 34, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 54, 58 ], [ 34, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 59, 69 ], [ 69, 70 ], [ 70, 71 ], [ 59, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 74, 81 ], [ 81, 82 ], [ 82, 83 ], [ 8, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 6, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString w = sc.nextLine();\n\t\tString t = \"\";\n\t\tint cnt = 0;\n\t\t\n\t\tw = w.toUpperCase();\n\t\twhile(!(t.equals(\"END_OF_TEXT\"))) {\n\t\t\tt = sc.next();\n\t\t\tif(!(t.equals(\"end_of_text\"))) {\n\t\t\t\tt = t.toUpperCase();\n\t\t\t}\n\t\t\tString[] tTbl = t.split(\" \", 0);\n\t\t\tfor(int i = 0; i < tTbl.length; i++) {\n\t\t\t\tif(tTbl[i].equals(w)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString w = sc.nextLine();\n\t\tString t = \"\";\n\t\tint cnt = 0;\n\t\t\n\t\tw = w.toUpperCase();\n\t\twhile(!(t.equals(\"END_OF_TEXT\"))) {\n\t\t\tt = sc.next();\n\t\t\tif(!(t.equals(\"end_of_text\"))) {\n\t\t\t\tt = t.toUpperCase();\n\t\t\t}\n\t\t\tString[] tTbl = t.split(\" \", 0);\n\t\t\tfor(int i = 0; i < tTbl.length; i++) {\n\t\t\t\tif(tTbl[i].equals(w)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString w = sc.nextLine();\n\t\tString t = \"\";\n\t\tint cnt = 0;\n\t\t\n\t\tw = w.toUpperCase();\n\t\twhile(!(t.equals(\"END_OF_TEXT\"))) {\n\t\t\tt = sc.next();\n\t\t\tif(!(t.equals(\"end_of_text\"))) {\n\t\t\t\tt = t.toUpperCase();\n\t\t\t}\n\t\t\tString[] tTbl = t.split(\" \", 0);\n\t\t\tfor(int i = 0; i < tTbl.length; i++) {\n\t\t\t\tif(tTbl[i].equals(w)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "main", "{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString w = sc.nextLine();\n\t\tString t = \"\";\n\t\tint cnt = 0;\n\t\t\n\t\tw = w.toUpperCase();\n\t\twhile(!(t.equals(\"END_OF_TEXT\"))) {\n\t\t\tt = sc.next();\n\t\t\tif(!(t.equals(\"end_of_text\"))) {\n\t\t\t\tt = t.toUpperCase();\n\t\t\t}\n\t\t\tString[] tTbl = t.split(\" \", 0);\n\t\t\tfor(int i = 0; i < tTbl.length; i++) {\n\t\t\t\tif(tTbl[i].equals(w)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String w = sc.nextLine();", "w", "sc.nextLine()", "sc.nextLine", "sc", "String t = \"\";", "t", "\"\"", "int cnt = 0;", "cnt", "0", "w = w.toUpperCase()", "w", "w.toUpperCase()", "w.toUpperCase", "w", "while(!(t.equals(\"END_OF_TEXT\"))) {\n\t\t\tt = sc.next();\n\t\t\tif(!(t.equals(\"end_of_text\"))) {\n\t\t\t\tt = t.toUpperCase();\n\t\t\t}\n\t\t\tString[] tTbl = t.split(\" \", 0);\n\t\t\tfor(int i = 0; i < tTbl.length; i++) {\n\t\t\t\tif(tTbl[i].equals(w)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "!(t.equals(\"END_OF_TEXT\"))", "(t.equals(\"END_OF_TEXT\"))", "t.equals", "t", "\"END_OF_TEXT\"", "{\n\t\t\tt = sc.next();\n\t\t\tif(!(t.equals(\"end_of_text\"))) {\n\t\t\t\tt = t.toUpperCase();\n\t\t\t}\n\t\t\tString[] tTbl = t.split(\" \", 0);\n\t\t\tfor(int i = 0; i < tTbl.length; i++) {\n\t\t\t\tif(tTbl[i].equals(w)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "t = sc.next()", "t", "sc.next()", "sc.next", "sc", "if(!(t.equals(\"end_of_text\"))) {\n\t\t\t\tt = t.toUpperCase();\n\t\t\t}", "!(t.equals(\"end_of_text\"))", "(t.equals(\"end_of_text\"))", "t.equals", "t", "\"end_of_text\"", "{\n\t\t\t\tt = t.toUpperCase();\n\t\t\t}", "t = t.toUpperCase()", "t", "t.toUpperCase()", "t.toUpperCase", "t", "String[] tTbl = t.split(\" \", 0);", "tTbl", "t.split(\" \", 0)", "t.split", "t", "\" \"", "0", "for(int i = 0; i < tTbl.length; i++) {\n\t\t\t\tif(tTbl[i].equals(w)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < tTbl.length", "i", "tTbl.length", "tTbl", "tTbl.length", "i++", "i++", "i", "{\n\t\t\t\tif(tTbl[i].equals(w)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(tTbl[i].equals(w)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}", "if(tTbl[i].equals(w)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}", "tTbl[i].equals(w)", "tTbl[i].equals", "tTbl[i]", "tTbl", "i", "w", "{\n\t\t\t\t\tcnt++;\n\t\t\t\t}", "cnt++", "cnt", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString w = sc.nextLine();\n\t\tString t = \"\";\n\t\tint cnt = 0;\n\t\t\n\t\tw = w.toUpperCase();\n\t\twhile(!(t.equals(\"END_OF_TEXT\"))) {\n\t\t\tt = sc.next();\n\t\t\tif(!(t.equals(\"end_of_text\"))) {\n\t\t\t\tt = t.toUpperCase();\n\t\t\t}\n\t\t\tString[] tTbl = t.split(\" \", 0);\n\t\t\tfor(int i = 0; i < tTbl.length; i++) {\n\t\t\t\tif(tTbl[i].equals(w)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString w = sc.nextLine();\n\t\tString t = \"\";\n\t\tint cnt = 0;\n\t\t\n\t\tw = w.toUpperCase();\n\t\twhile(!(t.equals(\"END_OF_TEXT\"))) {\n\t\t\tt = sc.next();\n\t\t\tif(!(t.equals(\"end_of_text\"))) {\n\t\t\t\tt = t.toUpperCase();\n\t\t\t}\n\t\t\tString[] tTbl = t.split(\" \", 0);\n\t\t\tfor(int i = 0; i < tTbl.length; i++) {\n\t\t\t\tif(tTbl[i].equals(w)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String w = sc.nextLine(); String t = ""; int cnt = 0; w = w.toUpperCase(); while(!(t.equals("END_OF_TEXT"))) { t = sc.next(); if(!(t.equals("end_of_text"))) { t = t.toUpperCase(); } String[] tTbl = t.split(" ", 0); for(int i = 0; i < tTbl.length; i++) { if(tTbl[i].equals(w)) { cnt++; } } } System.out.println(cnt); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 17, 41, 13, 4, 18, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 42, 4, 18, 13, 13, 30, 4, 18, 13, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 3, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 96, 5 ], [ 96, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 44, 52 ], [ 52, 53 ], [ 38, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 38, 60 ], [ 27, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 27, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 27, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 72, 82 ], [ 82, 83 ], [ 83, 84 ], [ 72, 85 ], [ 86, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 90, 92 ], [ 6, 93 ], [ 93, 94 ], [ 0, 95 ], [ 95, 96 ], [ 95, 97 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n ArrayList<String> A = new ArrayList<String>();\n //int[] A = new int[26];\n //Arrays.fill(A, 0);\n String str;\n\n int count = 0;\n\n String W = sc.nextLine();\n\n while (true) {\n str = sc.nextLine();\n if (str.equals(\"END_OF_TEXT\")) {\n while (A.contains(W)) {\n A.remove(A.indexOf(W));\n count++;\n }\n System.out.println(count);\n break;\n }\n str = str.toLowerCase();\n\n\n String[] S = str.split(\" \");\n for (int i=0; i<S.length; i++) {\n A.add(S[i]);\n }\n }\n \n\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n ArrayList<String> A = new ArrayList<String>();\n //int[] A = new int[26];\n //Arrays.fill(A, 0);\n String str;\n\n int count = 0;\n\n String W = sc.nextLine();\n\n while (true) {\n str = sc.nextLine();\n if (str.equals(\"END_OF_TEXT\")) {\n while (A.contains(W)) {\n A.remove(A.indexOf(W));\n count++;\n }\n System.out.println(count);\n break;\n }\n str = str.toLowerCase();\n\n\n String[] S = str.split(\" \");\n for (int i=0; i<S.length; i++) {\n A.add(S[i]);\n }\n }\n \n\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n ArrayList<String> A = new ArrayList<String>();\n //int[] A = new int[26];\n //Arrays.fill(A, 0);\n String str;\n\n int count = 0;\n\n String W = sc.nextLine();\n\n while (true) {\n str = sc.nextLine();\n if (str.equals(\"END_OF_TEXT\")) {\n while (A.contains(W)) {\n A.remove(A.indexOf(W));\n count++;\n }\n System.out.println(count);\n break;\n }\n str = str.toLowerCase();\n\n\n String[] S = str.split(\" \");\n for (int i=0; i<S.length; i++) {\n A.add(S[i]);\n }\n }\n \n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n ArrayList<String> A = new ArrayList<String>();\n //int[] A = new int[26];\n //Arrays.fill(A, 0);\n String str;\n\n int count = 0;\n\n String W = sc.nextLine();\n\n while (true) {\n str = sc.nextLine();\n if (str.equals(\"END_OF_TEXT\")) {\n while (A.contains(W)) {\n A.remove(A.indexOf(W));\n count++;\n }\n System.out.println(count);\n break;\n }\n str = str.toLowerCase();\n\n\n String[] S = str.split(\" \");\n for (int i=0; i<S.length; i++) {\n A.add(S[i]);\n }\n }\n \n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "ArrayList<String> A = new ArrayList<String>();", "A", "new ArrayList<String>()", "String str;", "str", "int count = 0;", "count", "0", "String W = sc.nextLine();", "W", "sc.nextLine()", "sc.nextLine", "sc", "while (true) {\n str = sc.nextLine();\n if (str.equals(\"END_OF_TEXT\")) {\n while (A.contains(W)) {\n A.remove(A.indexOf(W));\n count++;\n }\n System.out.println(count);\n break;\n }\n str = str.toLowerCase();\n\n\n String[] S = str.split(\" \");\n for (int i=0; i<S.length; i++) {\n A.add(S[i]);\n }\n }", "true", "{\n str = sc.nextLine();\n if (str.equals(\"END_OF_TEXT\")) {\n while (A.contains(W)) {\n A.remove(A.indexOf(W));\n count++;\n }\n System.out.println(count);\n break;\n }\n str = str.toLowerCase();\n\n\n String[] S = str.split(\" \");\n for (int i=0; i<S.length; i++) {\n A.add(S[i]);\n }\n }", "str = sc.nextLine()", "str", "sc.nextLine()", "sc.nextLine", "sc", "if (str.equals(\"END_OF_TEXT\")) {\n while (A.contains(W)) {\n A.remove(A.indexOf(W));\n count++;\n }\n System.out.println(count);\n break;\n }", "str.equals(\"END_OF_TEXT\")", "str.equals", "str", "\"END_OF_TEXT\"", "{\n while (A.contains(W)) {\n A.remove(A.indexOf(W));\n count++;\n }\n System.out.println(count);\n break;\n }", "while (A.contains(W)) {\n A.remove(A.indexOf(W));\n count++;\n }", "A.contains(W)", "A.contains", "A", "W", "{\n A.remove(A.indexOf(W));\n count++;\n }", "A.remove(A.indexOf(W))", "A.remove", "A", "A.indexOf(W)", "A.indexOf", "A", "W", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "break;", "str = str.toLowerCase()", "str", "str.toLowerCase()", "str.toLowerCase", "str", "String[] S = str.split(\" \");", "S", "str.split(\" \")", "str.split", "str", "\" \"", "for (int i=0; i<S.length; i++) {\n A.add(S[i]);\n }", "int i=0;", "int i=0;", "i", "0", "i<S.length", "i", "S.length", "S", "S.length", "i++", "i++", "i", "{\n A.add(S[i]);\n }", "{\n A.add(S[i]);\n }", "A.add(S[i])", "A.add", "A", "S[i]", "S", "i", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n ArrayList<String> A = new ArrayList<String>();\n //int[] A = new int[26];\n //Arrays.fill(A, 0);\n String str;\n\n int count = 0;\n\n String W = sc.nextLine();\n\n while (true) {\n str = sc.nextLine();\n if (str.equals(\"END_OF_TEXT\")) {\n while (A.contains(W)) {\n A.remove(A.indexOf(W));\n count++;\n }\n System.out.println(count);\n break;\n }\n str = str.toLowerCase();\n\n\n String[] S = str.split(\" \");\n for (int i=0; i<S.length; i++) {\n A.add(S[i]);\n }\n }\n \n\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n ArrayList<String> A = new ArrayList<String>();\n //int[] A = new int[26];\n //Arrays.fill(A, 0);\n String str;\n\n int count = 0;\n\n String W = sc.nextLine();\n\n while (true) {\n str = sc.nextLine();\n if (str.equals(\"END_OF_TEXT\")) {\n while (A.contains(W)) {\n A.remove(A.indexOf(W));\n count++;\n }\n System.out.println(count);\n break;\n }\n str = str.toLowerCase();\n\n\n String[] S = str.split(\" \");\n for (int i=0; i<S.length; i++) {\n A.add(S[i]);\n }\n }\n \n\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); //StringBuilder bd = new StringBuilder(); ArrayList<String> A = new ArrayList<String>(); //int[] A = new int[26]; //Arrays.fill(A, 0); String str; int count = 0; String W = sc.nextLine(); while (true) { str = sc.nextLine(); if (str.equals("END_OF_TEXT")) { while (A.contains(W)) { A.remove(A.indexOf(W)); count++; } System.out.println(count); break; } str = str.toLowerCase(); String[] S = str.split(" "); for (int i=0; i<S.length; i++) { A.add(S[i]); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 41, 13, 17, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 55, 5 ], [ 55, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 26, 33 ], [ 24, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 40, 41 ], [ 41, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 8, 49 ], [ 49, 50 ], [ 50, 51 ], [ 6, 52 ], [ 52, 53 ], [ 0, 54 ], [ 54, 55 ], [ 54, 56 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String W = scanner.next().toLowerCase();\n String tmp;\n int count = 0;\n while(!(tmp = scanner.next()).equals(\"END_OF_TEXT\")){\n if(tmp.equalsIgnoreCase(W)){\n count++;\n }\n }\n System.out.println(count);\n scanner.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String W = scanner.next().toLowerCase();\n String tmp;\n int count = 0;\n while(!(tmp = scanner.next()).equals(\"END_OF_TEXT\")){\n if(tmp.equalsIgnoreCase(W)){\n count++;\n }\n }\n System.out.println(count);\n scanner.close();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String W = scanner.next().toLowerCase();\n String tmp;\n int count = 0;\n while(!(tmp = scanner.next()).equals(\"END_OF_TEXT\")){\n if(tmp.equalsIgnoreCase(W)){\n count++;\n }\n }\n System.out.println(count);\n scanner.close();\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n String W = scanner.next().toLowerCase();\n String tmp;\n int count = 0;\n while(!(tmp = scanner.next()).equals(\"END_OF_TEXT\")){\n if(tmp.equalsIgnoreCase(W)){\n count++;\n }\n }\n System.out.println(count);\n scanner.close();\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String W = scanner.next().toLowerCase();", "W", "scanner.next().toLowerCase()", "scanner.next().toLowerCase", "scanner.next()", "scanner.next", "scanner", "String tmp;", "tmp", "int count = 0;", "count", "0", "while(!(tmp = scanner.next()).equals(\"END_OF_TEXT\")){\n if(tmp.equalsIgnoreCase(W)){\n count++;\n }\n }", "!(tmp = scanner.next()).equals(\"END_OF_TEXT\")", "(tmp = scanner.next()).equals(\"END_OF_TEXT\")", "(tmp = scanner.next()).equals", "(tmp = scanner.next())", "tmp", "scanner.next()", "scanner.next", "scanner", "\"END_OF_TEXT\"", "{\n if(tmp.equalsIgnoreCase(W)){\n count++;\n }\n }", "if(tmp.equalsIgnoreCase(W)){\n count++;\n }", "tmp.equalsIgnoreCase(W)", "tmp.equalsIgnoreCase", "tmp", "W", "{\n count++;\n }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "scanner.close()", "scanner.close", "scanner", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String W = scanner.next().toLowerCase();\n String tmp;\n int count = 0;\n while(!(tmp = scanner.next()).equals(\"END_OF_TEXT\")){\n if(tmp.equalsIgnoreCase(W)){\n count++;\n }\n }\n System.out.println(count);\n scanner.close();\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String W = scanner.next().toLowerCase();\n String tmp;\n int count = 0;\n while(!(tmp = scanner.next()).equals(\"END_OF_TEXT\")){\n if(tmp.equalsIgnoreCase(W)){\n count++;\n }\n }\n System.out.println(count);\n scanner.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String W = scanner.next().toLowerCase(); String tmp; int count = 0; while(!(tmp = scanner.next()).equals("END_OF_TEXT")){ if(tmp.equalsIgnoreCase(W)){ count++; } } System.out.println(count); scanner.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 17, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 66, 11 ], [ 66, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 30, 37 ], [ 28, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 38, 45 ], [ 45, 46 ], [ 45, 47 ], [ 45, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 50, 55 ], [ 55, 56 ], [ 14, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 12, 63 ], [ 63, 64 ], [ 0, 65 ], [ 65, 66 ], [ 65, 67 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W = br.readLine();\n int count = 0;\n String str;\n while(!(str = br.readLine()).equals(\"END_OF_TEXT\")){\n String str2[] = str.split(\" \");\n for(String s:str2){\n if(s.equalsIgnoreCase(W)) count++;\n }\n }\n System.out.println(count);\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W = br.readLine();\n int count = 0;\n String str;\n while(!(str = br.readLine()).equals(\"END_OF_TEXT\")){\n String str2[] = str.split(\" \");\n for(String s:str2){\n if(s.equalsIgnoreCase(W)) count++;\n }\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W = br.readLine();\n int count = 0;\n String str;\n while(!(str = br.readLine()).equals(\"END_OF_TEXT\")){\n String str2[] = str.split(\" \");\n for(String s:str2){\n if(s.equalsIgnoreCase(W)) count++;\n }\n }\n System.out.println(count);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W = br.readLine();\n int count = 0;\n String str;\n while(!(str = br.readLine()).equals(\"END_OF_TEXT\")){\n String str2[] = str.split(\" \");\n for(String s:str2){\n if(s.equalsIgnoreCase(W)) count++;\n }\n }\n System.out.println(count);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String W = br.readLine();", "W", "br.readLine()", "br.readLine", "br", "int count = 0;", "count", "0", "String str;", "str", "while(!(str = br.readLine()).equals(\"END_OF_TEXT\")){\n String str2[] = str.split(\" \");\n for(String s:str2){\n if(s.equalsIgnoreCase(W)) count++;\n }\n }", "!(str = br.readLine()).equals(\"END_OF_TEXT\")", "(str = br.readLine()).equals(\"END_OF_TEXT\")", "(str = br.readLine()).equals", "(str = br.readLine())", "str", "br.readLine()", "br.readLine", "br", "\"END_OF_TEXT\"", "{\n String str2[] = str.split(\" \");\n for(String s:str2){\n if(s.equalsIgnoreCase(W)) count++;\n }\n }", "String str2[] = str.split(\" \");", "str2", "str.split(\" \")", "str.split", "str", "\" \"", "for(String s:str2){\n if(s.equalsIgnoreCase(W)) count++;\n }", "String s", "str2", "{\n if(s.equalsIgnoreCase(W)) count++;\n }", "{\n if(s.equalsIgnoreCase(W)) count++;\n }", "if(s.equalsIgnoreCase(W)) count++;", "s.equalsIgnoreCase(W)", "s.equalsIgnoreCase", "s", "W", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W = br.readLine();\n int count = 0;\n String str;\n while(!(str = br.readLine()).equals(\"END_OF_TEXT\")){\n String str2[] = str.split(\" \");\n for(String s:str2){\n if(s.equalsIgnoreCase(W)) count++;\n }\n }\n System.out.println(count);\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W = br.readLine();\n int count = 0;\n String str;\n while(!(str = br.readLine()).equals(\"END_OF_TEXT\")){\n String str2[] = str.split(\" \");\n for(String s:str2){\n if(s.equalsIgnoreCase(W)) count++;\n }\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String W = br.readLine(); int count = 0; String str; while(!(str = br.readLine()).equals("END_OF_TEXT")){ String str2[] = str.split(" "); for(String s:str2){ if(s.equalsIgnoreCase(W)) count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 14, 4, 18, 18, 13, 17, 17, 30, 3, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 13, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 84, 11 ], [ 84, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 28, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 40, 47 ], [ 47, 48 ], [ 40, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 50, 60 ], [ 60, 61 ], [ 61, 62 ], [ 50, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 69, 71 ], [ 65, 72 ], [ 72, 73 ], [ 73, 74 ], [ 14, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 12, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String word = reader.readLine();\n int count = 0;\n while (true) {\n\n String sentence = reader.readLine();\n String[] words = sentence.split(\" \");\n if (words[0].equals(\"END_OF_TEXT\")) {\n break;\n } else {\n for (int i = 0; i < words.length; i++) {\n if (word.equalsIgnoreCase(words[i])) {\n count++;\n }\n }\n }\n }\n System.out.println(count);\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String word = reader.readLine();\n int count = 0;\n while (true) {\n\n String sentence = reader.readLine();\n String[] words = sentence.split(\" \");\n if (words[0].equals(\"END_OF_TEXT\")) {\n break;\n } else {\n for (int i = 0; i < words.length; i++) {\n if (word.equalsIgnoreCase(words[i])) {\n count++;\n }\n }\n }\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String word = reader.readLine();\n int count = 0;\n while (true) {\n\n String sentence = reader.readLine();\n String[] words = sentence.split(\" \");\n if (words[0].equals(\"END_OF_TEXT\")) {\n break;\n } else {\n for (int i = 0; i < words.length; i++) {\n if (word.equalsIgnoreCase(words[i])) {\n count++;\n }\n }\n }\n }\n System.out.println(count);\n }", "main", "{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String word = reader.readLine();\n int count = 0;\n while (true) {\n\n String sentence = reader.readLine();\n String[] words = sentence.split(\" \");\n if (words[0].equals(\"END_OF_TEXT\")) {\n break;\n } else {\n for (int i = 0; i < words.length; i++) {\n if (word.equalsIgnoreCase(words[i])) {\n count++;\n }\n }\n }\n }\n System.out.println(count);\n }", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "String word = reader.readLine();", "word", "reader.readLine()", "reader.readLine", "reader", "int count = 0;", "count", "0", "while (true) {\n\n String sentence = reader.readLine();\n String[] words = sentence.split(\" \");\n if (words[0].equals(\"END_OF_TEXT\")) {\n break;\n } else {\n for (int i = 0; i < words.length; i++) {\n if (word.equalsIgnoreCase(words[i])) {\n count++;\n }\n }\n }\n }", "true", "{\n\n String sentence = reader.readLine();\n String[] words = sentence.split(\" \");\n if (words[0].equals(\"END_OF_TEXT\")) {\n break;\n } else {\n for (int i = 0; i < words.length; i++) {\n if (word.equalsIgnoreCase(words[i])) {\n count++;\n }\n }\n }\n }", "String sentence = reader.readLine();", "sentence", "reader.readLine()", "reader.readLine", "reader", "String[] words = sentence.split(\" \");", "words", "sentence.split(\" \")", "sentence.split", "sentence", "\" \"", "if (words[0].equals(\"END_OF_TEXT\")) {\n break;\n } else {\n for (int i = 0; i < words.length; i++) {\n if (word.equalsIgnoreCase(words[i])) {\n count++;\n }\n }\n }", "words[0].equals(\"END_OF_TEXT\")", "words[0].equals", "words[0]", "words", "0", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "{\n for (int i = 0; i < words.length; i++) {\n if (word.equalsIgnoreCase(words[i])) {\n count++;\n }\n }\n }", "for (int i = 0; i < words.length; i++) {\n if (word.equalsIgnoreCase(words[i])) {\n count++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < words.length", "i", "words.length", "words", "words.length", "i++", "i++", "i", "{\n if (word.equalsIgnoreCase(words[i])) {\n count++;\n }\n }", "{\n if (word.equalsIgnoreCase(words[i])) {\n count++;\n }\n }", "if (word.equalsIgnoreCase(words[i])) {\n count++;\n }", "word.equalsIgnoreCase(words[i])", "word.equalsIgnoreCase", "word", "words[i]", "words", "i", "{\n count++;\n }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String word = reader.readLine();\n int count = 0;\n while (true) {\n\n String sentence = reader.readLine();\n String[] words = sentence.split(\" \");\n if (words[0].equals(\"END_OF_TEXT\")) {\n break;\n } else {\n for (int i = 0; i < words.length; i++) {\n if (word.equalsIgnoreCase(words[i])) {\n count++;\n }\n }\n }\n }\n System.out.println(count);\n }\n}", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String word = reader.readLine();\n int count = 0;\n while (true) {\n\n String sentence = reader.readLine();\n String[] words = sentence.split(\" \");\n if (words[0].equals(\"END_OF_TEXT\")) {\n break;\n } else {\n for (int i = 0; i < words.length; i++) {\n if (word.equalsIgnoreCase(words[i])) {\n count++;\n }\n }\n }\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String word = reader.readLine(); int count = 0; while (true) { String sentence = reader.readLine(); String[] words = sentence.split(" "); if (words[0].equals("END_OF_TEXT")) { break; } else { for (int i = 0; i < words.length; i++) { if (word.equalsIgnoreCase(words[i])) { count++; } } } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 4, 18, 4, 18, 13, 17, 13, 41, 13, 17, 41, 13, 4, 18, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 41, 13, 18, 13, 13, 2, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 92, 5 ], [ 92, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 24, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 36, 42 ], [ 8, 43 ], [ 43, 44 ], [ 43, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 48, 55 ], [ 8, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 56, 66 ], [ 66, 67 ], [ 66, 68 ], [ 56, 69 ], [ 69, 70 ], [ 70, 71 ], [ 56, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 74, 81 ], [ 81, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 6, 89 ], [ 89, 90 ], [ 0, 91 ], [ 91, 92 ], [ 91, 93 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String w = sc.nextLine().toLowerCase();\n StringBuilder sb = new StringBuilder(sc.nextLine());\n while(true){\n String s = sc.nextLine();\n if(s.equals(\"END_OF_TEXT\")) break;\n sb.append(\" \").append(s);\n }\n int cnt = 0;\n String[] str = sb.toString().toLowerCase().split(\" \");\n for(int i = 0,l = str.length;i < l;++i){\n if(str[i].equals(w)) ++cnt;\n }\n System.out.println(cnt);\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String w = sc.nextLine().toLowerCase();\n StringBuilder sb = new StringBuilder(sc.nextLine());\n while(true){\n String s = sc.nextLine();\n if(s.equals(\"END_OF_TEXT\")) break;\n sb.append(\" \").append(s);\n }\n int cnt = 0;\n String[] str = sb.toString().toLowerCase().split(\" \");\n for(int i = 0,l = str.length;i < l;++i){\n if(str[i].equals(w)) ++cnt;\n }\n System.out.println(cnt);\n }\n\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String w = sc.nextLine().toLowerCase();\n StringBuilder sb = new StringBuilder(sc.nextLine());\n while(true){\n String s = sc.nextLine();\n if(s.equals(\"END_OF_TEXT\")) break;\n sb.append(\" \").append(s);\n }\n int cnt = 0;\n String[] str = sb.toString().toLowerCase().split(\" \");\n for(int i = 0,l = str.length;i < l;++i){\n if(str[i].equals(w)) ++cnt;\n }\n System.out.println(cnt);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String w = sc.nextLine().toLowerCase();\n StringBuilder sb = new StringBuilder(sc.nextLine());\n while(true){\n String s = sc.nextLine();\n if(s.equals(\"END_OF_TEXT\")) break;\n sb.append(\" \").append(s);\n }\n int cnt = 0;\n String[] str = sb.toString().toLowerCase().split(\" \");\n for(int i = 0,l = str.length;i < l;++i){\n if(str[i].equals(w)) ++cnt;\n }\n System.out.println(cnt);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String w = sc.nextLine().toLowerCase();", "w", "sc.nextLine().toLowerCase()", "sc.nextLine().toLowerCase", "sc.nextLine()", "sc.nextLine", "sc", "StringBuilder sb = new StringBuilder(sc.nextLine());", "sb", "new StringBuilder(sc.nextLine())", "while(true){\n String s = sc.nextLine();\n if(s.equals(\"END_OF_TEXT\")) break;\n sb.append(\" \").append(s);\n }", "true", "{\n String s = sc.nextLine();\n if(s.equals(\"END_OF_TEXT\")) break;\n sb.append(\" \").append(s);\n }", "String s = sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "if(s.equals(\"END_OF_TEXT\")) break;", "s.equals(\"END_OF_TEXT\")", "s.equals", "s", "\"END_OF_TEXT\"", "break;", "sb.append(\" \").append(s)", "sb.append(\" \").append", "sb.append(\" \")", "sb.append", "sb", "\" \"", "s", "int cnt = 0;", "cnt", "0", "String[] str = sb.toString().toLowerCase().split(\" \");", "str", "sb.toString().toLowerCase().split(\" \")", "sb.toString().toLowerCase().split", "sb.toString().toLowerCase()", "sb.toString().toLowerCase", "sb.toString()", "sb.toString", "sb", "\" \"", "for(int i = 0,l = str.length;i < l;++i){\n if(str[i].equals(w)) ++cnt;\n }", "int i = 0,l = str.length;", "int i = 0", "i", "0", "l = str.length;", "l", "str.length", "str", "str.length", "i < l", "i", "l", "++i", "++i", "i", "{\n if(str[i].equals(w)) ++cnt;\n }", "{\n if(str[i].equals(w)) ++cnt;\n }", "if(str[i].equals(w)) ++cnt;", "str[i].equals(w)", "str[i].equals", "str[i]", "str", "i", "w", "++cnt", "cnt", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args", "public class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String w = sc.nextLine().toLowerCase();\n StringBuilder sb = new StringBuilder(sc.nextLine());\n while(true){\n String s = sc.nextLine();\n if(s.equals(\"END_OF_TEXT\")) break;\n sb.append(\" \").append(s);\n }\n int cnt = 0;\n String[] str = sb.toString().toLowerCase().split(\" \");\n for(int i = 0,l = str.length;i < l;++i){\n if(str[i].equals(w)) ++cnt;\n }\n System.out.println(cnt);\n }\n\n}", "public class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String w = sc.nextLine().toLowerCase();\n StringBuilder sb = new StringBuilder(sc.nextLine());\n while(true){\n String s = sc.nextLine();\n if(s.equals(\"END_OF_TEXT\")) break;\n sb.append(\" \").append(s);\n }\n int cnt = 0;\n String[] str = sb.toString().toLowerCase().split(\" \");\n for(int i = 0,l = str.length;i < l;++i){\n if(str[i].equals(w)) ++cnt;\n }\n System.out.println(cnt);\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String w = sc.nextLine().toLowerCase(); StringBuilder sb = new StringBuilder(sc.nextLine()); while(true){ String s = sc.nextLine(); if(s.equals("END_OF_TEXT")) break; sb.append(" ").append(s); } int cnt = 0; String[] str = sb.toString().toLowerCase().split(" "); for(int i = 0,l = str.length;i < l;++i){ if(str[i].equals(w)) ++cnt; } System.out.println(cnt); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 22, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 40, 41 ], [ 41, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 6, 49 ], [ 49, 50 ] ]
[ "import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String W = scan.next();\n int count = 0;\n\n while (true) {\n String T = scan.next();\n// System.out.println(T);\n\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n\n if (T.equalsIgnoreCase(W)) {\n count++;\n }\n }\n System.out.println(count);\n\n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String W = scan.next();\n int count = 0;\n\n while (true) {\n String T = scan.next();\n// System.out.println(T);\n\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n\n if (T.equalsIgnoreCase(W)) {\n count++;\n }\n }\n System.out.println(count);\n\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String W = scan.next();\n int count = 0;\n\n while (true) {\n String T = scan.next();\n// System.out.println(T);\n\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n\n if (T.equalsIgnoreCase(W)) {\n count++;\n }\n }\n System.out.println(count);\n\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String W = scan.next();\n int count = 0;\n\n while (true) {\n String T = scan.next();\n// System.out.println(T);\n\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n\n if (T.equalsIgnoreCase(W)) {\n count++;\n }\n }\n System.out.println(count);\n\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String W = scan.next();", "W", "scan.next()", "scan.next", "scan", "int count = 0;", "count", "0", "while (true) {\n String T = scan.next();\n// System.out.println(T);\n\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n\n if (T.equalsIgnoreCase(W)) {\n count++;\n }\n }", "true", "{\n String T = scan.next();\n// System.out.println(T);\n\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n\n if (T.equalsIgnoreCase(W)) {\n count++;\n }\n }", "String T = scan.next();", "T", "scan.next()", "scan.next", "scan", "if (T.equals(\"END_OF_TEXT\")) {\n break;\n }", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "if (T.equalsIgnoreCase(W)) {\n count++;\n }", "T.equalsIgnoreCase(W)", "T.equalsIgnoreCase", "T", "W", "{\n count++;\n }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String W = scan.next(); int count = 0; while (true) { String T = scan.next(); // System.out.println(T); if (T.equals("END_OF_TEXT")) { break; } if (T.equalsIgnoreCase(W)) { count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 4, 18, 13, 4, 18, 13, 41, 13, 17, 28, 13, 13, 30, 30, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 72, 11 ], [ 72, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 28, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 14, 47 ], [ 47, 48 ], [ 47, 49 ], [ 14, 50 ], [ 50, 51 ], [ 50, 52 ], [ 50, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 55, 60 ], [ 60, 61 ], [ 61, 62 ], [ 14, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 12, 69 ], [ 69, 70 ], [ 0, 71 ], [ 71, 72 ], [ 71, 73 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String word = sc.next();\n List<String> list = new ArrayList<>();\n while (true) {\n String s = sc.next();\n if (s.equals(\"END_OF_TEXT\")) {\n break;\n }\n list.add(s.toLowerCase());\n }\n long sum = 0;\n for (String s : list) {\n if (s.equals(word)) {\n sum++;\n }\n }\n System.out.println(sum);\n }\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String word = sc.next();\n List<String> list = new ArrayList<>();\n while (true) {\n String s = sc.next();\n if (s.equals(\"END_OF_TEXT\")) {\n break;\n }\n list.add(s.toLowerCase());\n }\n long sum = 0;\n for (String s : list) {\n if (s.equals(word)) {\n sum++;\n }\n }\n System.out.println(sum);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String word = sc.next();\n List<String> list = new ArrayList<>();\n while (true) {\n String s = sc.next();\n if (s.equals(\"END_OF_TEXT\")) {\n break;\n }\n list.add(s.toLowerCase());\n }\n long sum = 0;\n for (String s : list) {\n if (s.equals(word)) {\n sum++;\n }\n }\n System.out.println(sum);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String word = sc.next();\n List<String> list = new ArrayList<>();\n while (true) {\n String s = sc.next();\n if (s.equals(\"END_OF_TEXT\")) {\n break;\n }\n list.add(s.toLowerCase());\n }\n long sum = 0;\n for (String s : list) {\n if (s.equals(word)) {\n sum++;\n }\n }\n System.out.println(sum);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String word = sc.next();", "word", "sc.next()", "sc.next", "sc", "List<String> list = new ArrayList<>();", "list", "new ArrayList<>()", "while (true) {\n String s = sc.next();\n if (s.equals(\"END_OF_TEXT\")) {\n break;\n }\n list.add(s.toLowerCase());\n }", "true", "{\n String s = sc.next();\n if (s.equals(\"END_OF_TEXT\")) {\n break;\n }\n list.add(s.toLowerCase());\n }", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "if (s.equals(\"END_OF_TEXT\")) {\n break;\n }", "s.equals(\"END_OF_TEXT\")", "s.equals", "s", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "list.add(s.toLowerCase())", "list.add", "list", "s.toLowerCase()", "s.toLowerCase", "s", "long sum = 0;", "sum", "0", "for (String s : list) {\n if (s.equals(word)) {\n sum++;\n }\n }", "String s", "list", "{\n if (s.equals(word)) {\n sum++;\n }\n }", "{\n if (s.equals(word)) {\n sum++;\n }\n }", "if (s.equals(word)) {\n sum++;\n }", "s.equals(word)", "s.equals", "s", "word", "{\n sum++;\n }", "sum++", "sum", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String word = sc.next();\n List<String> list = new ArrayList<>();\n while (true) {\n String s = sc.next();\n if (s.equals(\"END_OF_TEXT\")) {\n break;\n }\n list.add(s.toLowerCase());\n }\n long sum = 0;\n for (String s : list) {\n if (s.equals(word)) {\n sum++;\n }\n }\n System.out.println(sum);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String word = sc.next();\n List<String> list = new ArrayList<>();\n while (true) {\n String s = sc.next();\n if (s.equals(\"END_OF_TEXT\")) {\n break;\n }\n list.add(s.toLowerCase());\n }\n long sum = 0;\n for (String s : list) {\n if (s.equals(word)) {\n sum++;\n }\n }\n System.out.println(sum);\n }\n}", "Main" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String word = sc.next(); List<String> list = new ArrayList<>(); while (true) { String s = sc.next(); if (s.equals("END_OF_TEXT")) { break; } list.add(s.toLowerCase()); } long sum = 0; for (String s : list) { if (s.equals(word)) { sum++; } } System.out.println(sum); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 17, 30, 14, 4, 18, 13, 13, 40, 13, 0, 13, 4, 18, 13, 14, 4, 18, 17, 13, 30, 3, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 70, 5 ], [ 70, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 36, 37 ], [ 30, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 30, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 43, 48 ], [ 48, 49 ], [ 30, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 70, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 61, 67 ], [ 67, 68 ], [ 0, 69 ], [ 69, 70 ], [ 69, 71 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tString W = s.next().toLowerCase();\n\t\tString T=\"\";\n\t\tString txt = \"\";\n\t\tint cnt=0;\n\t\twhile(true){\n\t\t\tif(W.equals(txt))cnt++;\n\t\t\ttxt = s.next();\n\t\t\tif(\"END_OF_TEXT\".equals(txt)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttxt = txt.toLowerCase();\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n\tpublic static void main(String args[]){\n\t\tnew Main().run();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tString W = s.next().toLowerCase();\n\t\tString T=\"\";\n\t\tString txt = \"\";\n\t\tint cnt=0;\n\t\twhile(true){\n\t\t\tif(W.equals(txt))cnt++;\n\t\t\ttxt = s.next();\n\t\t\tif(\"END_OF_TEXT\".equals(txt)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttxt = txt.toLowerCase();\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n\tpublic static void main(String args[]){\n\t\tnew Main().run();\n\t}\n}", "Main", "void run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tString W = s.next().toLowerCase();\n\t\tString T=\"\";\n\t\tString txt = \"\";\n\t\tint cnt=0;\n\t\twhile(true){\n\t\t\tif(W.equals(txt))cnt++;\n\t\t\ttxt = s.next();\n\t\t\tif(\"END_OF_TEXT\".equals(txt)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttxt = txt.toLowerCase();\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "run", "{\n\t\tScanner s = new Scanner(System.in);\n\t\tString W = s.next().toLowerCase();\n\t\tString T=\"\";\n\t\tString txt = \"\";\n\t\tint cnt=0;\n\t\twhile(true){\n\t\t\tif(W.equals(txt))cnt++;\n\t\t\ttxt = s.next();\n\t\t\tif(\"END_OF_TEXT\".equals(txt)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttxt = txt.toLowerCase();\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "String W = s.next().toLowerCase();", "W", "s.next().toLowerCase()", "s.next().toLowerCase", "s.next()", "s.next", "s", "String T=\"\";", "T", "\"\"", "String txt = \"\";", "txt", "\"\"", "int cnt=0;", "cnt", "0", "while(true){\n\t\t\tif(W.equals(txt))cnt++;\n\t\t\ttxt = s.next();\n\t\t\tif(\"END_OF_TEXT\".equals(txt)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttxt = txt.toLowerCase();\n\t\t}", "true", "{\n\t\t\tif(W.equals(txt))cnt++;\n\t\t\ttxt = s.next();\n\t\t\tif(\"END_OF_TEXT\".equals(txt)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttxt = txt.toLowerCase();\n\t\t}", "if(W.equals(txt))cnt++;", "W.equals(txt)", "W.equals", "W", "txt", "cnt++", "cnt", "txt = s.next()", "txt", "s.next()", "s.next", "s", "if(\"END_OF_TEXT\".equals(txt)){\n\t\t\t\tbreak;\n\t\t\t}", "\"END_OF_TEXT\".equals(txt)", "\"END_OF_TEXT\".equals", "\"END_OF_TEXT\"", "txt", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "txt = txt.toLowerCase()", "txt", "txt.toLowerCase()", "txt.toLowerCase", "txt", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "public static void main(String args[]){\n\t\tnew Main().run();\n\t}", "main", "{\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String args[]", "args", "public class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tString W = s.next().toLowerCase();\n\t\tString T=\"\";\n\t\tString txt = \"\";\n\t\tint cnt=0;\n\t\twhile(true){\n\t\t\tif(W.equals(txt))cnt++;\n\t\t\ttxt = s.next();\n\t\t\tif(\"END_OF_TEXT\".equals(txt)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttxt = txt.toLowerCase();\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n\tpublic static void main(String args[]){\n\t\tnew Main().run();\n\t}\n}", "public class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tString W = s.next().toLowerCase();\n\t\tString T=\"\";\n\t\tString txt = \"\";\n\t\tint cnt=0;\n\t\twhile(true){\n\t\t\tif(W.equals(txt))cnt++;\n\t\t\ttxt = s.next();\n\t\t\tif(\"END_OF_TEXT\".equals(txt)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttxt = txt.toLowerCase();\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n\tpublic static void main(String args[]){\n\t\tnew Main().run();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { void run(){ Scanner s = new Scanner(System.in); String W = s.next().toLowerCase(); String T=""; String txt = ""; int cnt=0; while(true){ if(W.equals(txt))cnt++; txt = s.next(); if("END_OF_TEXT".equals(txt)){ break; } txt = txt.toLowerCase(); } System.out.println(cnt); } public static void main(String args[]){ new Main().run(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 3, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 67, 5 ], [ 67, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 23, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 27, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 27, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 27, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 50, 55 ], [ 55, 56 ], [ 56, 57 ], [ 8, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 6, 64 ], [ 64, 65 ], [ 0, 66 ], [ 66, 67 ], [ 66, 68 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tString W = scn.nextLine();\n\t\tint count = 0;\n\t\tfinal String LAST_DATA = \"END_OF_TEXT\";\n\t\twhile (scn.hasNextLine()) {\n\t\t\tString T = scn.next();\n\t\t\tif (T.equals(LAST_DATA)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tW = W.toLowerCase();\n\t\t\tT = T.toLowerCase();\n\t\t\tif (T.equals(W)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tString W = scn.nextLine();\n\t\tint count = 0;\n\t\tfinal String LAST_DATA = \"END_OF_TEXT\";\n\t\twhile (scn.hasNextLine()) {\n\t\t\tString T = scn.next();\n\t\t\tif (T.equals(LAST_DATA)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tW = W.toLowerCase();\n\t\t\tT = T.toLowerCase();\n\t\t\tif (T.equals(W)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tString W = scn.nextLine();\n\t\tint count = 0;\n\t\tfinal String LAST_DATA = \"END_OF_TEXT\";\n\t\twhile (scn.hasNextLine()) {\n\t\t\tString T = scn.next();\n\t\t\tif (T.equals(LAST_DATA)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tW = W.toLowerCase();\n\t\t\tT = T.toLowerCase();\n\t\t\tif (T.equals(W)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tScanner scn = new Scanner(System.in);\n\t\tString W = scn.nextLine();\n\t\tint count = 0;\n\t\tfinal String LAST_DATA = \"END_OF_TEXT\";\n\t\twhile (scn.hasNextLine()) {\n\t\t\tString T = scn.next();\n\t\t\tif (T.equals(LAST_DATA)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tW = W.toLowerCase();\n\t\t\tT = T.toLowerCase();\n\t\t\tif (T.equals(W)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "Scanner scn = new Scanner(System.in);", "scn", "new Scanner(System.in)", "String W = scn.nextLine();", "W", "scn.nextLine()", "scn.nextLine", "scn", "int count = 0;", "count", "0", "final String LAST_DATA = \"END_OF_TEXT\";", "LAST_DATA", "\"END_OF_TEXT\"", "while (scn.hasNextLine()) {\n\t\t\tString T = scn.next();\n\t\t\tif (T.equals(LAST_DATA)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tW = W.toLowerCase();\n\t\t\tT = T.toLowerCase();\n\t\t\tif (T.equals(W)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "scn.hasNextLine()", "scn.hasNextLine", "scn", "{\n\t\t\tString T = scn.next();\n\t\t\tif (T.equals(LAST_DATA)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tW = W.toLowerCase();\n\t\t\tT = T.toLowerCase();\n\t\t\tif (T.equals(W)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "String T = scn.next();", "T", "scn.next()", "scn.next", "scn", "if (T.equals(LAST_DATA)) {\n\t\t\t\tbreak;\n\t\t\t}", "T.equals(LAST_DATA)", "T.equals", "T", "LAST_DATA", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "W = W.toLowerCase()", "W", "W.toLowerCase()", "W.toLowerCase", "W", "T = T.toLowerCase()", "T", "T.toLowerCase()", "T.toLowerCase", "T", "if (T.equals(W)) {\n\t\t\t\tcount++;\n\t\t\t}", "T.equals(W)", "T.equals", "T", "W", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tString W = scn.nextLine();\n\t\tint count = 0;\n\t\tfinal String LAST_DATA = \"END_OF_TEXT\";\n\t\twhile (scn.hasNextLine()) {\n\t\t\tString T = scn.next();\n\t\t\tif (T.equals(LAST_DATA)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tW = W.toLowerCase();\n\t\t\tT = T.toLowerCase();\n\t\t\tif (T.equals(W)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\tString W = scn.nextLine();\n\t\tint count = 0;\n\t\tfinal String LAST_DATA = \"END_OF_TEXT\";\n\t\twhile (scn.hasNextLine()) {\n\t\t\tString T = scn.next();\n\t\t\tif (T.equals(LAST_DATA)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tW = W.toLowerCase();\n\t\t\tT = T.toLowerCase();\n\t\t\tif (T.equals(W)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); String W = scn.nextLine(); int count = 0; final String LAST_DATA = "END_OF_TEXT"; while (scn.hasNextLine()) { String T = scn.next(); if (T.equals(LAST_DATA)) { break; } W = W.toLowerCase(); T = T.toLowerCase(); if (T.equals(W)) { count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 30, 0, 13, 4, 18, 13, 14, 2, 2, 4, 18, 13, 13, 4, 18, 13, 2, 13, 17, 4, 18, 13, 2, 13, 17, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 72, 5 ], [ 72, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 28, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 41, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 43, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 51, 53 ], [ 43, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 57, 59 ], [ 41, 60 ], [ 60, 61 ], [ 61, 62 ], [ 8, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 6, 69 ], [ 69, 70 ], [ 0, 71 ], [ 71, 72 ], [ 71, 73 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count=0;\n\t\tString W = sc.next();\n\t\twhile(true){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tT = T.toLowerCase();\n\t\t\t\tif(T.equals(W)||T.equals(W+\",\")||T.equals(W+\".\")){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count=0;\n\t\tString W = sc.next();\n\t\twhile(true){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tT = T.toLowerCase();\n\t\t\t\tif(T.equals(W)||T.equals(W+\",\")||T.equals(W+\".\")){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count=0;\n\t\tString W = sc.next();\n\t\twhile(true){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tT = T.toLowerCase();\n\t\t\t\tif(T.equals(W)||T.equals(W+\",\")||T.equals(W+\".\")){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count=0;\n\t\tString W = sc.next();\n\t\twhile(true){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tT = T.toLowerCase();\n\t\t\t\tif(T.equals(W)||T.equals(W+\",\")||T.equals(W+\".\")){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int count=0;", "count", "0", "String W = sc.next();", "W", "sc.next()", "sc.next", "sc", "while(true){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tT = T.toLowerCase();\n\t\t\t\tif(T.equals(W)||T.equals(W+\",\")||T.equals(W+\".\")){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tT = T.toLowerCase();\n\t\t\t\tif(T.equals(W)||T.equals(W+\",\")||T.equals(W+\".\")){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String T = sc.next();", "T", "sc.next()", "sc.next", "sc", "if(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tT = T.toLowerCase();\n\t\t\t\tif(T.equals(W)||T.equals(W+\",\")||T.equals(W+\".\")){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "{\n\t\t\t\tT = T.toLowerCase();\n\t\t\t\tif(T.equals(W)||T.equals(W+\",\")||T.equals(W+\".\")){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "T = T.toLowerCase()", "T", "T.toLowerCase()", "T.toLowerCase", "T", "if(T.equals(W)||T.equals(W+\",\")||T.equals(W+\".\")){\n\t\t\t\t\tcount++;\n\t\t\t\t}", "T.equals(W)||T.equals(W+\",\")||T.equals(W+\".\")", "T.equals(W)||T.equals(W+\",\")||T.equals(W+\".\")", "T.equals(W)", "T.equals", "T", "W", "T.equals(W+\",\")", "T.equals", "T", "W+\",\"", "W", "\",\"", "T.equals(W+\".\")", "T.equals", "T", "W+\".\"", "W", "\".\"", "{\n\t\t\t\t\tcount++;\n\t\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count=0;\n\t\tString W = sc.next();\n\t\twhile(true){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tT = T.toLowerCase();\n\t\t\t\tif(T.equals(W)||T.equals(W+\",\")||T.equals(W+\".\")){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count=0;\n\t\tString W = sc.next();\n\t\twhile(true){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tT = T.toLowerCase();\n\t\t\t\tif(T.equals(W)||T.equals(W+\",\")||T.equals(W+\".\")){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int count=0; String W = sc.next(); while(true){ String T = sc.next(); if(T.equals("END_OF_TEXT")){ break; }else{ T = T.toLowerCase(); if(T.equals(W)||T.equals(W+",")||T.equals(W+".")){ count++; } } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 42, 40, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 4, 18, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 38, 39 ], [ 39, 40 ], [ 34, 41 ], [ 41, 42 ], [ 42, 43 ], [ 8, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 6, 50 ], [ 50, 51 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int N=0;\n String Word =scanner.nextLine();\n String Sentence;\n\n do{\n Sentence =scanner.next();\n if(Word.equals(Sentence.toLowerCase())){\n N++;\n }\n }while(!(Sentence.equals(\"END_OF_TEXT\")));\n\n System.out.println(N);\n\n\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int N=0;\n String Word =scanner.nextLine();\n String Sentence;\n\n do{\n Sentence =scanner.next();\n if(Word.equals(Sentence.toLowerCase())){\n N++;\n }\n }while(!(Sentence.equals(\"END_OF_TEXT\")));\n\n System.out.println(N);\n\n\n }\n}", "Main", "public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int N=0;\n String Word =scanner.nextLine();\n String Sentence;\n\n do{\n Sentence =scanner.next();\n if(Word.equals(Sentence.toLowerCase())){\n N++;\n }\n }while(!(Sentence.equals(\"END_OF_TEXT\")));\n\n System.out.println(N);\n\n\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n int N=0;\n String Word =scanner.nextLine();\n String Sentence;\n\n do{\n Sentence =scanner.next();\n if(Word.equals(Sentence.toLowerCase())){\n N++;\n }\n }while(!(Sentence.equals(\"END_OF_TEXT\")));\n\n System.out.println(N);\n\n\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int N=0;", "N", "0", "String Word =scanner.nextLine();", "Word", "scanner.nextLine()", "scanner.nextLine", "scanner", "String Sentence;", "Sentence", "do{\n Sentence =scanner.next();\n if(Word.equals(Sentence.toLowerCase())){\n N++;\n }\n }while(!(Sentence.equals(\"END_OF_TEXT\")));", "!(Sentence.equals(\"END_OF_TEXT\"))", "(Sentence.equals(\"END_OF_TEXT\"))", "Sentence.equals", "Sentence", "\"END_OF_TEXT\"", "{\n Sentence =scanner.next();\n if(Word.equals(Sentence.toLowerCase())){\n N++;\n }\n }", "Sentence =scanner.next()", "Sentence", "scanner.next()", "scanner.next", "scanner", "if(Word.equals(Sentence.toLowerCase())){\n N++;\n }", "Word.equals(Sentence.toLowerCase())", "Word.equals", "Word", "Sentence.toLowerCase()", "Sentence.toLowerCase", "Sentence", "{\n N++;\n }", "N++", "N", "System.out.println(N)", "System.out.println", "System.out", "System", "System.out", "N", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N=0; String Word =scanner.nextLine(); String Sentence; do{ Sentence =scanner.next(); if(Word.equals(Sentence.toLowerCase())){ N++; } }while(!(Sentence.equals("END_OF_TEXT"))); System.out.println(N); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 20, 41, 13, 4, 18, 13, 42, 40, 4, 18, 17, 13, 30, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 13, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 91, 11 ], [ 91, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 14, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 36, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 46, 47 ], [ 47, 48 ], [ 42, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 14, 54 ], [ 54, 55 ], [ 54, 56 ], [ 14, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 57, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 73, 79 ], [ 72, 80 ], [ 80, 81 ], [ 14, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 12, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString W = sc.nextLine();\n\t\tW = W.toLowerCase();\n\t\t\n\t\tList<String> T = new ArrayList<String>();\n\n\t\tString line = sc.next();\n\t\twhile (!\"END_OF_TEXT\".equals(line)) {\n\t\t\tT.add(line.toLowerCase());\n\t\t\tline = sc.next();\n\t\t}\n\t\tint cnt = 0;\n\t\tfor (int i = 0; i < T.size(); i++) {\n\t\t\tif (T.get(i).equals(W)) cnt++;\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}\n", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString W = sc.nextLine();\n\t\tW = W.toLowerCase();\n\t\t\n\t\tList<String> T = new ArrayList<String>();\n\n\t\tString line = sc.next();\n\t\twhile (!\"END_OF_TEXT\".equals(line)) {\n\t\t\tT.add(line.toLowerCase());\n\t\t\tline = sc.next();\n\t\t}\n\t\tint cnt = 0;\n\t\tfor (int i = 0; i < T.size(); i++) {\n\t\t\tif (T.get(i).equals(W)) cnt++;\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString W = sc.nextLine();\n\t\tW = W.toLowerCase();\n\t\t\n\t\tList<String> T = new ArrayList<String>();\n\n\t\tString line = sc.next();\n\t\twhile (!\"END_OF_TEXT\".equals(line)) {\n\t\t\tT.add(line.toLowerCase());\n\t\t\tline = sc.next();\n\t\t}\n\t\tint cnt = 0;\n\t\tfor (int i = 0; i < T.size(); i++) {\n\t\t\tif (T.get(i).equals(W)) cnt++;\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString W = sc.nextLine();\n\t\tW = W.toLowerCase();\n\t\t\n\t\tList<String> T = new ArrayList<String>();\n\n\t\tString line = sc.next();\n\t\twhile (!\"END_OF_TEXT\".equals(line)) {\n\t\t\tT.add(line.toLowerCase());\n\t\t\tline = sc.next();\n\t\t}\n\t\tint cnt = 0;\n\t\tfor (int i = 0; i < T.size(); i++) {\n\t\t\tif (T.get(i).equals(W)) cnt++;\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String W = sc.nextLine();", "W", "sc.nextLine()", "sc.nextLine", "sc", "W = W.toLowerCase()", "W", "W.toLowerCase()", "W.toLowerCase", "W", "List<String> T = new ArrayList<String>();", "T", "new ArrayList<String>()", "String line = sc.next();", "line", "sc.next()", "sc.next", "sc", "while (!\"END_OF_TEXT\".equals(line)) {\n\t\t\tT.add(line.toLowerCase());\n\t\t\tline = sc.next();\n\t\t}", "!\"END_OF_TEXT\".equals(line)", "\"END_OF_TEXT\".equals(line)", "\"END_OF_TEXT\".equals", "\"END_OF_TEXT\"", "line", "{\n\t\t\tT.add(line.toLowerCase());\n\t\t\tline = sc.next();\n\t\t}", "T.add(line.toLowerCase())", "T.add", "T", "line.toLowerCase()", "line.toLowerCase", "line", "line = sc.next()", "line", "sc.next()", "sc.next", "sc", "int cnt = 0;", "cnt", "0", "for (int i = 0; i < T.size(); i++) {\n\t\t\tif (T.get(i).equals(W)) cnt++;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < T.size()", "i", "T.size()", "T.size", "T", "i++", "i++", "i", "{\n\t\t\tif (T.get(i).equals(W)) cnt++;\n\t\t}", "{\n\t\t\tif (T.get(i).equals(W)) cnt++;\n\t\t}", "if (T.get(i).equals(W)) cnt++;", "T.get(i).equals(W)", "T.get(i).equals", "T.get(i)", "T.get", "T", "i", "W", "cnt++", "cnt", "System.out.println(cnt)", "System.out.println", "System.out", "System", "System.out", "cnt", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString W = sc.nextLine();\n\t\tW = W.toLowerCase();\n\t\t\n\t\tList<String> T = new ArrayList<String>();\n\n\t\tString line = sc.next();\n\t\twhile (!\"END_OF_TEXT\".equals(line)) {\n\t\t\tT.add(line.toLowerCase());\n\t\t\tline = sc.next();\n\t\t}\n\t\tint cnt = 0;\n\t\tfor (int i = 0; i < T.size(); i++) {\n\t\t\tif (T.get(i).equals(W)) cnt++;\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString W = sc.nextLine();\n\t\tW = W.toLowerCase();\n\t\t\n\t\tList<String> T = new ArrayList<String>();\n\n\t\tString line = sc.next();\n\t\twhile (!\"END_OF_TEXT\".equals(line)) {\n\t\t\tT.add(line.toLowerCase());\n\t\t\tline = sc.next();\n\t\t}\n\t\tint cnt = 0;\n\t\tfor (int i = 0; i < T.size(); i++) {\n\t\t\tif (T.get(i).equals(W)) cnt++;\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}", "Main" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); String W = sc.nextLine(); W = W.toLowerCase(); List<String> T = new ArrayList<String>(); String line = sc.next(); while (!"END_OF_TEXT".equals(line)) { T.add(line.toLowerCase()); line = sc.next(); } int cnt = 0; for (int i = 0; i < T.size(); i++) { if (T.get(i).equals(W)) cnt++; } System.out.println(cnt); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 14, 4, 13, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 29, 4, 18, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 89, 20 ], [ 89, 21 ], [ 21, 22 ], [ 21, 23 ], [ 89, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 32, 34 ], [ 26, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 35, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 39, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 39, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 52, 55 ], [ 51, 56 ], [ 56, 57 ], [ 26, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 24, 64 ], [ 64, 65 ], [ 89, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 68, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 68, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 66, 84 ], [ 84, 85 ], [ 66, 86 ], [ 86, 87 ], [ 0, 88 ], [ 88, 89 ], [ 88, 90 ] ]
[ "import java.util.HashMap;\nimport java.util.ArrayList;\nimport java.util.Scanner;\nimport java.util.regex.Pattern;\nimport java.util.Collections;\nimport java.math.BigDecimal;\n\npublic class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n String w = sc.next();\n int res = 0;\n while (sc.hasNext()) {\n String s = sc.next();\n if (s.equals(\"END_OF_TEXT\")) break;\n if (isContain(s, w)) res++;\n }\n System.out.println(res);\n }\n \n static boolean isContain(String s, String w) {\n s = s.toUpperCase();\n w = w.toUpperCase();\n return s.equals(w);\n }\n}", "import java.util.HashMap;", "HashMap", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.regex.Pattern;", "Pattern", "java.util.regex", "import java.util.Collections;", "Collections", "java.util", "import java.math.BigDecimal;", "BigDecimal", "java.math", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n String w = sc.next();\n int res = 0;\n while (sc.hasNext()) {\n String s = sc.next();\n if (s.equals(\"END_OF_TEXT\")) break;\n if (isContain(s, w)) res++;\n }\n System.out.println(res);\n }\n \n static boolean isContain(String s, String w) {\n s = s.toUpperCase();\n w = w.toUpperCase();\n return s.equals(w);\n }\n}", "Main", "public static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) throws Exception {\n String w = sc.next();\n int res = 0;\n while (sc.hasNext()) {\n String s = sc.next();\n if (s.equals(\"END_OF_TEXT\")) break;\n if (isContain(s, w)) res++;\n }\n System.out.println(res);\n }", "main", "{\n String w = sc.next();\n int res = 0;\n while (sc.hasNext()) {\n String s = sc.next();\n if (s.equals(\"END_OF_TEXT\")) break;\n if (isContain(s, w)) res++;\n }\n System.out.println(res);\n }", "String w = sc.next();", "w", "sc.next()", "sc.next", "sc", "int res = 0;", "res", "0", "while (sc.hasNext()) {\n String s = sc.next();\n if (s.equals(\"END_OF_TEXT\")) break;\n if (isContain(s, w)) res++;\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n String s = sc.next();\n if (s.equals(\"END_OF_TEXT\")) break;\n if (isContain(s, w)) res++;\n }", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "if (s.equals(\"END_OF_TEXT\")) break;", "s.equals(\"END_OF_TEXT\")", "s.equals", "s", "\"END_OF_TEXT\"", "break;", "if (isContain(s, w)) res++;", "isContain(s, w)", "isContain", "s", "w", "res++", "res", "System.out.println(res)", "System.out.println", "System.out", "System", "System.out", "res", "String[] args", "args", "static boolean isContain(String s, String w) {\n s = s.toUpperCase();\n w = w.toUpperCase();\n return s.equals(w);\n }", "isContain", "{\n s = s.toUpperCase();\n w = w.toUpperCase();\n return s.equals(w);\n }", "s = s.toUpperCase()", "s", "s.toUpperCase()", "s.toUpperCase", "s", "w = w.toUpperCase()", "w", "w.toUpperCase()", "w.toUpperCase", "w", "return s.equals(w);", "s.equals(w)", "s.equals", "s", "w", "String s", "s", "String w", "w", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n String w = sc.next();\n int res = 0;\n while (sc.hasNext()) {\n String s = sc.next();\n if (s.equals(\"END_OF_TEXT\")) break;\n if (isContain(s, w)) res++;\n }\n System.out.println(res);\n }\n \n static boolean isContain(String s, String w) {\n s = s.toUpperCase();\n w = w.toUpperCase();\n return s.equals(w);\n }\n}", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n String w = sc.next();\n int res = 0;\n while (sc.hasNext()) {\n String s = sc.next();\n if (s.equals(\"END_OF_TEXT\")) break;\n if (isContain(s, w)) res++;\n }\n System.out.println(res);\n }\n \n static boolean isContain(String s, String w) {\n s = s.toUpperCase();\n w = w.toUpperCase();\n return s.equals(w);\n }\n}", "Main" ]
import java.util.HashMap; import java.util.ArrayList; import java.util.Scanner; import java.util.regex.Pattern; import java.util.Collections; import java.math.BigDecimal; public class Main { public static Scanner sc = new Scanner(System.in); public static void main(String[] args) throws Exception { String w = sc.next(); int res = 0; while (sc.hasNext()) { String s = sc.next(); if (s.equals("END_OF_TEXT")) break; if (isContain(s, w)) res++; } System.out.println(res); } static boolean isContain(String s, String w) { s = s.toUpperCase(); w = w.toUpperCase(); return s.equals(w); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 20, 0, 13, 4, 18, 13, 42, 2, 4, 18, 13, 17, 17, 30, 0, 13, 4, 18, 13, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 60, 5 ], [ 60, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 25, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 32, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 38, 45 ], [ 45, 46 ], [ 46, 47 ], [ 8, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 6, 57 ], [ 57, 58 ], [ 0, 59 ], [ 59, 60 ], [ 59, 61 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String args[]) {\n\t\tString W, T = \"\";\n\t\tint count = 0;\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tW = sc.next();\n\t\twhile (T.compareTo(\"END_OF_TEXT\") != 0) {\n\t\t\tT = sc.next();\n\t\t\tif (W.compareToIgnoreCase(T) == 0) {\n\t\t\t\t++count;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String args[]) {\n\t\tString W, T = \"\";\n\t\tint count = 0;\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tW = sc.next();\n\t\twhile (T.compareTo(\"END_OF_TEXT\") != 0) {\n\t\t\tT = sc.next();\n\t\t\tif (W.compareToIgnoreCase(T) == 0) {\n\t\t\t\t++count;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String args[]) {\n\t\tString W, T = \"\";\n\t\tint count = 0;\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tW = sc.next();\n\t\twhile (T.compareTo(\"END_OF_TEXT\") != 0) {\n\t\t\tT = sc.next();\n\t\t\tif (W.compareToIgnoreCase(T) == 0) {\n\t\t\t\t++count;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}", "main", "{\n\t\tString W, T = \"\";\n\t\tint count = 0;\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tW = sc.next();\n\t\twhile (T.compareTo(\"END_OF_TEXT\") != 0) {\n\t\t\tT = sc.next();\n\t\t\tif (W.compareToIgnoreCase(T) == 0) {\n\t\t\t\t++count;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}", "String W", "W", "T = \"\";", "T", "\"\"", "int count = 0;", "count", "0", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "W = sc.next()", "W", "sc.next()", "sc.next", "sc", "while (T.compareTo(\"END_OF_TEXT\") != 0) {\n\t\t\tT = sc.next();\n\t\t\tif (W.compareToIgnoreCase(T) == 0) {\n\t\t\t\t++count;\n\t\t\t}\n\t\t}", "T.compareTo(\"END_OF_TEXT\") != 0", "T.compareTo(\"END_OF_TEXT\")", "T.compareTo", "T", "\"END_OF_TEXT\"", "0", "{\n\t\t\tT = sc.next();\n\t\t\tif (W.compareToIgnoreCase(T) == 0) {\n\t\t\t\t++count;\n\t\t\t}\n\t\t}", "T = sc.next()", "T", "sc.next()", "sc.next", "sc", "if (W.compareToIgnoreCase(T) == 0) {\n\t\t\t\t++count;\n\t\t\t}", "W.compareToIgnoreCase(T) == 0", "W.compareToIgnoreCase(T)", "W.compareToIgnoreCase", "W", "T", "0", "{\n\t\t\t\t++count;\n\t\t\t}", "++count", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "sc.close()", "sc.close", "sc", "String args[]", "args", "public class Main {\n\tpublic static void main(String args[]) {\n\t\tString W, T = \"\";\n\t\tint count = 0;\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tW = sc.next();\n\t\twhile (T.compareTo(\"END_OF_TEXT\") != 0) {\n\t\t\tT = sc.next();\n\t\t\tif (W.compareToIgnoreCase(T) == 0) {\n\t\t\t\t++count;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String args[]) {\n\t\tString W, T = \"\";\n\t\tint count = 0;\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tW = sc.next();\n\t\twhile (T.compareTo(\"END_OF_TEXT\") != 0) {\n\t\t\tT = sc.next();\n\t\t\tif (W.compareToIgnoreCase(T) == 0) {\n\t\t\t\t++count;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String args[]) { String W, T = ""; int count = 0; Scanner sc = new Scanner(System.in); W = sc.next(); while (T.compareTo("END_OF_TEXT") != 0) { T = sc.next(); if (W.compareToIgnoreCase(T) == 0) { ++count; } } System.out.println(count); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 42, 2, 4, 18, 13, 17, 40, 17, 30, 4, 18, 13, 2, 17, 4, 18, 13, 41, 13, 20, 4, 18, 13, 4, 18, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 2, 2, 17, 13, 17, 13, 14, 2, 13, 40, 17, 3, 40, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 93, 11 ], [ 93, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 27, 32 ], [ 32, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 14, 43 ], [ 43, 44 ], [ 43, 45 ], [ 14, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 14, 54 ], [ 54, 55 ], [ 54, 56 ], [ 14, 57 ], [ 57, 58 ], [ 57, 59 ], [ 14, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 69, 69 ], [ 69, 70 ], [ 69, 71 ], [ 69, 72 ], [ 65, 73 ], [ 62, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 74, 79 ], [ 62, 80 ], [ 80, 81 ], [ 62, 82 ], [ 82, 83 ], [ 14, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 12, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main\n{\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString w = br.readLine();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile(sb.indexOf(\"END_OF_TEXT\") == -1)\n\t\t{\n\t\t\tsb.append(\" \" + br.readLine());\n\t\t}\n\t\tStringBuilder sb2 = new StringBuilder();\n\t\tsb2.append(sb.toString().toLowerCase());\n\t\tint chk = 0, sum = 0;\n\t\twhile(true)\n\t\t{\n\t\t\tchk = sb2.indexOf(\" \" + w + \" \", chk);\n\t\t\tif(chk==-1)\tbreak;\n\t\t\tsum++;\n\t\t\tchk++;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main\n{\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString w = br.readLine();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile(sb.indexOf(\"END_OF_TEXT\") == -1)\n\t\t{\n\t\t\tsb.append(\" \" + br.readLine());\n\t\t}\n\t\tStringBuilder sb2 = new StringBuilder();\n\t\tsb2.append(sb.toString().toLowerCase());\n\t\tint chk = 0, sum = 0;\n\t\twhile(true)\n\t\t{\n\t\t\tchk = sb2.indexOf(\" \" + w + \" \", chk);\n\t\t\tif(chk==-1)\tbreak;\n\t\t\tsum++;\n\t\t\tchk++;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n}", "Main", "public static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString w = br.readLine();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile(sb.indexOf(\"END_OF_TEXT\") == -1)\n\t\t{\n\t\t\tsb.append(\" \" + br.readLine());\n\t\t}\n\t\tStringBuilder sb2 = new StringBuilder();\n\t\tsb2.append(sb.toString().toLowerCase());\n\t\tint chk = 0, sum = 0;\n\t\twhile(true)\n\t\t{\n\t\t\tchk = sb2.indexOf(\" \" + w + \" \", chk);\n\t\t\tif(chk==-1)\tbreak;\n\t\t\tsum++;\n\t\t\tchk++;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString w = br.readLine();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile(sb.indexOf(\"END_OF_TEXT\") == -1)\n\t\t{\n\t\t\tsb.append(\" \" + br.readLine());\n\t\t}\n\t\tStringBuilder sb2 = new StringBuilder();\n\t\tsb2.append(sb.toString().toLowerCase());\n\t\tint chk = 0, sum = 0;\n\t\twhile(true)\n\t\t{\n\t\t\tchk = sb2.indexOf(\" \" + w + \" \", chk);\n\t\t\tif(chk==-1)\tbreak;\n\t\t\tsum++;\n\t\t\tchk++;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String w = br.readLine();", "w", "br.readLine()", "br.readLine", "br", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "while(sb.indexOf(\"END_OF_TEXT\") == -1)\n\t\t{\n\t\t\tsb.append(\" \" + br.readLine());\n\t\t}", "sb.indexOf(\"END_OF_TEXT\") == -1", "sb.indexOf(\"END_OF_TEXT\")", "sb.indexOf", "sb", "\"END_OF_TEXT\"", "-1", "1", "{\n\t\t\tsb.append(\" \" + br.readLine());\n\t\t}", "sb.append(\" \" + br.readLine())", "sb.append", "sb", "\" \" + br.readLine()", "\" \"", "br.readLine()", "br.readLine", "br", "StringBuilder sb2 = new StringBuilder();", "sb2", "new StringBuilder()", "sb2.append(sb.toString().toLowerCase())", "sb2.append", "sb2", "sb.toString().toLowerCase()", "sb.toString().toLowerCase", "sb.toString()", "sb.toString", "sb", "int chk = 0", "chk", "0", "sum = 0;", "sum", "0", "while(true)\n\t\t{\n\t\t\tchk = sb2.indexOf(\" \" + w + \" \", chk);\n\t\t\tif(chk==-1)\tbreak;\n\t\t\tsum++;\n\t\t\tchk++;\n\t\t}", "true", "{\n\t\t\tchk = sb2.indexOf(\" \" + w + \" \", chk);\n\t\t\tif(chk==-1)\tbreak;\n\t\t\tsum++;\n\t\t\tchk++;\n\t\t}", "chk = sb2.indexOf(\" \" + w + \" \", chk)", "chk", "sb2.indexOf(\" \" + w + \" \", chk)", "sb2.indexOf", "sb2", "\" \" + w + \" \"", "\" \" + w + \" \"", "\" \"", "w", "\" \"", "chk", "if(chk==-1)\tbreak;", "chk==-1", "chk", "-1", "1", "break;", "sum++", "sum", "chk++", "chk", "System.out.println(sum)", "System.out.println", "System.out", "System", "System.out", "sum", "String[] args", "args", "public class Main\n{\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString w = br.readLine();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile(sb.indexOf(\"END_OF_TEXT\") == -1)\n\t\t{\n\t\t\tsb.append(\" \" + br.readLine());\n\t\t}\n\t\tStringBuilder sb2 = new StringBuilder();\n\t\tsb2.append(sb.toString().toLowerCase());\n\t\tint chk = 0, sum = 0;\n\t\twhile(true)\n\t\t{\n\t\t\tchk = sb2.indexOf(\" \" + w + \" \", chk);\n\t\t\tif(chk==-1)\tbreak;\n\t\t\tsum++;\n\t\t\tchk++;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n}", "public class Main\n{\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString w = br.readLine();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile(sb.indexOf(\"END_OF_TEXT\") == -1)\n\t\t{\n\t\t\tsb.append(\" \" + br.readLine());\n\t\t}\n\t\tStringBuilder sb2 = new StringBuilder();\n\t\tsb2.append(sb.toString().toLowerCase());\n\t\tint chk = 0, sum = 0;\n\t\twhile(true)\n\t\t{\n\t\t\tchk = sb2.indexOf(\" \" + w + \" \", chk);\n\t\t\tif(chk==-1)\tbreak;\n\t\t\tsum++;\n\t\t\tchk++;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args)throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String w = br.readLine(); StringBuilder sb = new StringBuilder(); while(sb.indexOf("END_OF_TEXT") == -1) { sb.append(" " + br.readLine()); } StringBuilder sb2 = new StringBuilder(); sb2.append(sb.toString().toLowerCase()); int chk = 0, sum = 0; while(true) { chk = sb2.indexOf(" " + w + " ", chk); if(chk==-1) break; sum++; chk++; } System.out.println(sum); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 28, 13, 4, 18, 13, 17, 30, 30, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 25, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 37, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 50, 51 ], [ 11, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 9, 58 ], [ 58, 59 ] ]
[ "import java.io.*;\nimport java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint count=0;\n\t\tString d = sc.nextLine();\n\t\twhile (true) {\n\t\t\tString a = sc.nextLine();\n\t\t\tif (a.equals(\"END_OF_TEXT\"))break;\n\t\t\tfor (String s : a.split(\" \")) {\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint count=0;\n\t\tString d = sc.nextLine();\n\t\twhile (true) {\n\t\t\tString a = sc.nextLine();\n\t\t\tif (a.equals(\"END_OF_TEXT\"))break;\n\t\t\tfor (String s : a.split(\" \")) {\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint count=0;\n\t\tString d = sc.nextLine();\n\t\twhile (true) {\n\t\t\tString a = sc.nextLine();\n\t\t\tif (a.equals(\"END_OF_TEXT\"))break;\n\t\t\tfor (String s : a.split(\" \")) {\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}", "main", "{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint count=0;\n\t\tString d = sc.nextLine();\n\t\twhile (true) {\n\t\t\tString a = sc.nextLine();\n\t\t\tif (a.equals(\"END_OF_TEXT\"))break;\n\t\t\tfor (String s : a.split(\" \")) {\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int count=0;", "count", "0", "String d = sc.nextLine();", "d", "sc.nextLine()", "sc.nextLine", "sc", "while (true) {\n\t\t\tString a = sc.nextLine();\n\t\t\tif (a.equals(\"END_OF_TEXT\"))break;\n\t\t\tfor (String s : a.split(\" \")) {\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString a = sc.nextLine();\n\t\t\tif (a.equals(\"END_OF_TEXT\"))break;\n\t\t\tfor (String s : a.split(\" \")) {\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "String a = sc.nextLine();", "a", "sc.nextLine()", "sc.nextLine", "sc", "if (a.equals(\"END_OF_TEXT\"))break;", "a.equals(\"END_OF_TEXT\")", "a.equals", "a", "\"END_OF_TEXT\"", "break;", "for (String s : a.split(\" \")) {\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tcount++;\n\t\t\t}", "String s", "a.split(\" \")", "a.split", "a", "\" \"", "{\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tcount++;\n\t\t\t}", "{\n\t\t\t\tif (s.equalsIgnoreCase(d))\n\t\t\t\t\tcount++;\n\t\t\t}", "if (s.equalsIgnoreCase(d))\n\t\t\t\t\tcount++;", "s.equalsIgnoreCase(d)", "s.equalsIgnoreCase", "s", "d", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.io.*; import java.util.*; class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int count=0; String d = sc.nextLine(); while (true) { String a = sc.nextLine(); if (a.equals("END_OF_TEXT"))break; for (String s : a.split(" ")) { if (s.equalsIgnoreCase(d)) count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 42, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 17, 28, 13, 13, 30, 30, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 93, 11 ], [ 93, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 28, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 38, 43 ], [ 43, 44 ], [ 14, 45 ], [ 45, 46 ], [ 45, 47 ], [ 14, 48 ], [ 48, 49 ], [ 48, 50 ], [ 48, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 52, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 59, 69 ], [ 69, 70 ], [ 70, 71 ], [ 59, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 74, 81 ], [ 81, 82 ], [ 82, 83 ], [ 14, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 12, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> klist = new ArrayList<String>();\n\t\tString line = sc.nextLine();\n\t\twhile (true) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tklist.add(line2);\n\t\t\tif (line2.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tint count = 0;\n\t\tfor (String string : klist) {\n\t\t\tString[] k = string.split(\" \");\n\n\t\t\tfor (int j = 0; j < k.length; j++) {\n\t\t\t\tif (k[j].equalsIgnoreCase(line)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> klist = new ArrayList<String>();\n\t\tString line = sc.nextLine();\n\t\twhile (true) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tklist.add(line2);\n\t\t\tif (line2.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tint count = 0;\n\t\tfor (String string : klist) {\n\t\t\tString[] k = string.split(\" \");\n\n\t\t\tfor (int j = 0; j < k.length; j++) {\n\t\t\t\tif (k[j].equalsIgnoreCase(line)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}\n}", "Main", "public static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> klist = new ArrayList<String>();\n\t\tString line = sc.nextLine();\n\t\twhile (true) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tklist.add(line2);\n\t\t\tif (line2.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tint count = 0;\n\t\tfor (String string : klist) {\n\t\t\tString[] k = string.split(\" \");\n\n\t\t\tfor (int j = 0; j < k.length; j++) {\n\t\t\t\tif (k[j].equalsIgnoreCase(line)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> klist = new ArrayList<String>();\n\t\tString line = sc.nextLine();\n\t\twhile (true) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tklist.add(line2);\n\t\t\tif (line2.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tint count = 0;\n\t\tfor (String string : klist) {\n\t\t\tString[] k = string.split(\" \");\n\n\t\t\tfor (int j = 0; j < k.length; j++) {\n\t\t\t\tif (k[j].equalsIgnoreCase(line)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "List<String> klist = new ArrayList<String>();", "klist", "new ArrayList<String>()", "String line = sc.nextLine();", "line", "sc.nextLine()", "sc.nextLine", "sc", "while (true) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tklist.add(line2);\n\t\t\tif (line2.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString line2 = sc.nextLine();\n\t\t\tklist.add(line2);\n\t\t\tif (line2.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "String line2 = sc.nextLine();", "line2", "sc.nextLine()", "sc.nextLine", "sc", "klist.add(line2)", "klist.add", "klist", "line2", "if (line2.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}", "line2.equals(\"END_OF_TEXT\")", "line2.equals", "line2", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int count = 0;", "count", "0", "for (String string : klist) {\n\t\t\tString[] k = string.split(\" \");\n\n\t\t\tfor (int j = 0; j < k.length; j++) {\n\t\t\t\tif (k[j].equalsIgnoreCase(line)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String string", "klist", "{\n\t\t\tString[] k = string.split(\" \");\n\n\t\t\tfor (int j = 0; j < k.length; j++) {\n\t\t\t\tif (k[j].equalsIgnoreCase(line)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tString[] k = string.split(\" \");\n\n\t\t\tfor (int j = 0; j < k.length; j++) {\n\t\t\t\tif (k[j].equalsIgnoreCase(line)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String[] k = string.split(\" \");", "k", "string.split(\" \")", "string.split", "string", "\" \"", "for (int j = 0; j < k.length; j++) {\n\t\t\t\tif (k[j].equalsIgnoreCase(line)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < k.length", "j", "k.length", "k", "k.length", "j++", "j++", "j", "{\n\t\t\t\tif (k[j].equalsIgnoreCase(line)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif (k[j].equalsIgnoreCase(line)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "if (k[j].equalsIgnoreCase(line)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}", "k[j].equalsIgnoreCase(line)", "k[j].equalsIgnoreCase", "k[j]", "k", "j", "line", "{\n\t\t\t\t\tcount++;\n\t\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] arges", "arges", "public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> klist = new ArrayList<String>();\n\t\tString line = sc.nextLine();\n\t\twhile (true) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tklist.add(line2);\n\t\t\tif (line2.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tint count = 0;\n\t\tfor (String string : klist) {\n\t\t\tString[] k = string.split(\" \");\n\n\t\t\tfor (int j = 0; j < k.length; j++) {\n\t\t\t\tif (k[j].equalsIgnoreCase(line)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> klist = new ArrayList<String>();\n\t\tString line = sc.nextLine();\n\t\twhile (true) {\n\t\t\tString line2 = sc.nextLine();\n\t\t\tklist.add(line2);\n\t\t\tif (line2.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tint count = 0;\n\t\tfor (String string : klist) {\n\t\t\tString[] k = string.split(\" \");\n\n\t\t\tfor (int j = 0; j < k.length; j++) {\n\t\t\t\tif (k[j].equalsIgnoreCase(line)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}\n}", "Main" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] arges) { Scanner sc = new Scanner(System.in); List<String> klist = new ArrayList<String>(); String line = sc.nextLine(); while (true) { String line2 = sc.nextLine(); klist.add(line2); if (line2.equals("END_OF_TEXT")) { break; } } int count = 0; for (String string : klist) { String[] k = string.split(" "); for (int j = 0; j < k.length; j++) { if (k[j].equalsIgnoreCase(line)) { count++; } } } System.out.println(count); } }