test_class.file: BiliLiveLib/src/test/java/charlie/bililivelib/internalutil/CaptchaUtilTest.java
test_class.identifier: CaptchaUtilTest
test_case.body: @Test
      public void evalCalcCaptcha() throws Exception {
          CaptchaUtil util = new CaptchaUtil();
          List<String> excepted = Files.readAllLines(Paths.get(
                  getClass().getResource("/captcha/excepted_values.txt").toURI()));
          //PROBLEM:CAPTCHA NO.13 CAN'T WORK!
          for (int i = 0; i < 50;i++) {
              int value = util.evalCalcCaptcha(ImageIO.read(
                      getClass().getResource("/captcha/captcha" + i + ".png")));
              System.out.println(value);
              assertEquals(Integer.parseInt(excepted.get(i).trim()), value);
          }
      }
test_case.class_method_signature: CaptchaUtilTest.evalCalcCaptcha()
test_case.full_signature: @Test public void evalCalcCaptcha()
test_case.identifier: evalCalcCaptcha
test_case.invocations: readAllLines get toURI getResource getClass evalCalcCaptcha read getResource getClass println assertEquals parseInt trim get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void evalCalcCaptcha()
focal_class.declarator: ocrUtil
focal_class.modifier: private
focal_class.original_string: private OCRUtil ocrUtil;
focal_class.type: OCRUtil
focal_class.var_name: ocrUtil
focal_class.file: BiliLiveLib/src/main/java/charlie/bililivelib/internalutil/CaptchaUtil.java
focal_class.identifier: CaptchaUtil
focal_class.class_method_signature: CaptchaUtil.CaptchaUtil()
focal_class.full_signature: public  CaptchaUtil()
focal_class.identifier: CaptchaUtil
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  CaptchaUtil()
focal_class.class_method_signature: CaptchaUtil.CaptchaUtil(OCRUtil ocrUtil)
focal_class.full_signature: public  CaptchaUtil(OCRUtil ocrUtil)
focal_class.identifier: CaptchaUtil
focal_class.modifiers: public
focal_class.parameters: (OCRUtil ocrUtil)
focal_class.signature:  CaptchaUtil(OCRUtil ocrUtil)
focal_class.class_method_signature: CaptchaUtil.evalCalcCaptcha(BufferedImage image)
focal_class.full_signature: @Contract(pure = true) public int evalCalcCaptcha(BufferedImage image)
focal_class.identifier: evalCalcCaptcha
focal_class.modifiers: @Contract(pure = true) public
focal_class.parameters: (BufferedImage image)
focal_class.return: int
focal_class.signature: int evalCalcCaptcha(BufferedImage image)
focal_class.class_method_signature: CaptchaUtil.calc(String formula)
focal_class.full_signature: private int calc(String formula)
focal_class.identifier: calc
focal_class.modifiers: private
focal_class.parameters: (String formula)
focal_class.return: int
focal_class.signature: int calc(String formula)
focal_method.body: @Contract(pure = true)
      public int evalCalcCaptcha(BufferedImage image) {
          String str = ocrUtil.ocrCalcCaptcha(image);
          if (str == null) return -1;
          return calc(str);
          /*try {
              return (Integer) scriptEngine.eval(str);
          } catch (ScriptException e) {
              return -1;
          }*/
      }
focal_method.class_method_signature: CaptchaUtil.evalCalcCaptcha(BufferedImage image)
focal_method.full_signature: @Contract(pure = true) public int evalCalcCaptcha(BufferedImage image)
focal_method.identifier: evalCalcCaptcha
focal_method.invocations: ocrCalcCaptcha calc
focal_method.modifiers: @Contract(pure = true) public
focal_method.parameters: (BufferedImage image)
focal_method.return: int
focal_method.signature: int evalCalcCaptcha(BufferedImage image)