nlpchina / jcoder Goto Github PK
View Code? Open in Web Editor NEWJava Dynamic code or JAR , publish you Api or Schedule in flying
Java Dynamic code or JAR , publish you Api or Schedule in flying
开始看放在nlp目录下,以为是nlp相关配置,例如自定义分词之类的功能,自己部署运行了才知道这个功能和语义没有任何关系,只是一个动态jar加载,类似ogsi的那种
该项目中的代码需要格式化之后才能运行?
public static String findClassName(String sourceCode) {
try (BufferedReader br = new BufferedReader(new StringReader(sourceCode))) {
String temp = null;
while ((temp = br.readLine()) != null) {
if (StringUtil.isBlank(temp)) {
continue;
}
Matcher matcher = PAT.matcher(temp);
if (matcher.find()) {
temp = temp.split("[\\s+?;{]")[2];
return temp;
}
}
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
针对都是一行的代码是无法找出正确的类名的。
如 :
String code = "package com.test; public class Test {public static void main(String[] args) {String hello = "Hello World!!!";System.out.println(hello);}}";
使用反捕获的方式可能是个不错的选择。
Screenshots of the interface are in English, however, when I build locally the application starts with the Chinese language set. How do I change it? Are the language sets part of master?
Appreciate your feedback.
一直关注大神的动态 沙发 o(*≧▽≦)ツ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.