trux-dtf / debug-method-name Goto Github PK
View Code? Open in Web Editor NEWLearning to Spot and Refactor Inconsistent Method Names
Learning to Spot and Refactor Inconsistent Method Names
Hello,
Sorry to bother you, but an error occurred when I tried to run dlMethods\DataPreparer, “Exception in thread "main" java.io.FileNotFoundException: E:\github\debug-method-name\Data\Output\tokenization\ant\tokens.list (The specified file could not be found.)” Then I checked the code and didn't find the code to generate tokens. list. I would appreciate it if you could give me some advice.
Thank you in advance!
I run MethodBodyCodeLearner.java but when save model it crashed and say
Exception in thread "main" java.io.IOException: flush() failed: stream is closed
the method ModelSerializer.writeModel(model, locationToSave, saveUpdater);
This method is provided by derplearning4j, I don’t know what went wrong and how to handle
Hello,
I noticed that some of the classes (e.g. edu.lu.uni.serval.utils.FileHelper, edu.lu.uni.serval.utils.ListSorter as well as some other classes from DebugMethodName\src\main\java\edu\lu\uni\serval\utils) are heavily used in the code, but I don't see them in the project.
Where could I find them?
I notice that the score will be lower when training. Whether does it indicate lower score means the CNN model is more accurarte?
Hello, When I running step 4 "java -cp "target/dependency/*" -Xmx8g edu.lu.uni.serval.renamed.methods.Main", it would throw exception as follow:
[31147.205s][warning][os,thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 0k, detached.
[ERROR] [01/14/2022 18:51:20.315] [methodNames-system-akka.actor.default-dispatcher-5] [akka.actor.ActorSystemImpl(methodNames-system)] Uncaught error from thread [methodNames-system-akka.actor.default-dispatcher-5] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled
java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
at java.base/java.lang.Thread.start0(Native Method)
at java.base/java.lang.Thread.start(Thread.java:798)
at scala.concurrent.forkjoin.ForkJoinPool.tryAddWorker(ForkJoinPool.java:1672)
at scala.concurrent.forkjoin.ForkJoinPool.signalWork(ForkJoinPool.java:1966)
at scala.concurrent.forkjoin.ForkJoinPool.externalPush(ForkJoinPool.java:1829)
at scala.concurrent.forkjoin.ForkJoinPool.execute(ForkJoinPool.java:2955)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinPool.execute(AbstractDispatcher.scala:395)
at akka.dispatch.ExecutorServiceDelegate$class.execute(ThreadPoolBuilder.scala:211)
at akka.dispatch.Dispatcher$LazyExecutorServiceDelegate.execute(Dispatcher.scala:39)
at akka.dispatch.Dispatcher.registerForExecution(Dispatcher.scala:115)
at akka.dispatch.Dispatcher.dispatch(Dispatcher.scala:55)
at akka.actor.dungeon.Dispatch$class.sendMessage(Dispatch.scala:144)
at akka.actor.ActorCell.sendMessage(ActorCell.scala:374)
at akka.actor.Cell$class.sendMessage(ActorCell.scala:295)
at akka.actor.ActorCell.sendMessage(ActorCell.scala:374)
at akka.actor.LocalActorRef.$bang(ActorRef.scala:404)
at akka.actor.ActorRef.tell(ActorRef.scala:128)
at akka.routing.ActorRefRoutee.send(Router.scala:45)
at akka.routing.Router.send(Router.scala:123)
at akka.routing.Router.route(Router.scala:116)
at akka.routing.RoutedActorCell.sendMessage(RoutedActorCell.scala:141)
at akka.actor.Cell$class.sendMessage(ActorCell.scala:295)
at akka.actor.ActorCell.sendMessage(ActorCell.scala:374)
at akka.actor.RepointableActorRef.$bang(RepointableActorRef.scala:171)
at akka.actor.ActorRef.tell(ActorRef.scala:128)
at edu.lu.uni.serval.renamed.methods.ParseActor.onReceive(ParseActor.java:110)
at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:165)
at akka.actor.Actor$class.aroundReceive(Actor.scala:484)
at akka.actor.UntypedActor.aroundReceive(UntypedActor.scala:95)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
at akka.actor.ActorCell.invoke(ActorCell.scala:495)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
at akka.dispatch.Mailbox.run(Mailbox.scala:224)
at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
I try to allocate more memory, but even I allocate 190G memory to this java command as ""java -cp "target/dependency/*" -Xmx190g edu.lu.uni.serval.renamed.methods.Main"", unfortunately, it still throws exception "out of memory".
And if I ignore the error upon, when I running the step 5 “mvn package”,another exception is throwed. No matter I use windows or linux, the error is the same as follow:
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
If anyone have the jar file "DebugMethodName-0.0.1-SNAPSHOT.jar", maybe I can skip this bug? Could anyone share me his jar file?
Have you ever seen these error? Could anyone please teach me how to fix it?
Now I don't know where the bug located in.
Any brother could help me?
Hello, I'am sorry to disturb you.I run the script according to the method of readme and report an error."Error: Could not find or load main class edu.lu.uni.serval.MainParser",I think that maybe I' am not use maven to compile this project like yours.then,I use maven command to try to compile the project,but it's give a error that "Could not find artifact edu.lu.uni:simple-utils:jar:0.0.1-SNAPSHOT",then,I try to use Idea to load Multi module to compile this project ,but I got the same error,I want to know whether I should use maven to compile your project before I use your project.
您好,非常不好意思打扰您,我的英语有点差,我尝试运行您的项目尝试了很多次都跑不起来,所以想请教一下您。我按照您的README中的操作来运行代码,但是报错如下"Error: Could not find or load main class edu.lu.uni.serval.MainParser",我想是不是在运行您的命令之前要先编译,所以在ubuntu下命令行下,我使用maven命令进入 DebugMethodName目录,编译这个子项目,但是报错了"Could not find artifact edu.lu.uni:simple-utils:jar:0.0.1-SNAPSHOT",我之后在windows用IDEA来配合maven多模块编译,但是还是报错,所以想请教一下您是否在运行您的脚本前要先用maven编译,如果要编译的话,怎么编译?希望您能给一点点指点,非常感激!!
Hi Kui,
I am one of your fans. Thanks for your great work! Recently I am performing a project based on your work. I have a question that needs your help.
In your paper, you introduced that a renamed method name would be collected if (1) the method body is not changed, and (2) the method name and body become stable after the change.
After reading the code, I find that the first condition is ensured by the following line
but I did not find the corresponding code towards the second condition. I would appreciate it if you could give me some clues. Thanks in advance!
Hi! Thank you for your excellent work!
我最近正在尝试把我自己的数据用您的方法跑一遍,但在运行您的源代码的时候遇到了一些问题...
[Problem]
when i run DebugMethodName/.../MainParser.java,I got all data correctlly.
Then I run /RenamedMethodsCollector/.../Main.java,
..\Data\Output\RenamedMethods\ 里生成的文件全是空文件。
我查看了代码,应该是parseRenamedMethods(filePath, outputPath);这个函数出现了问题导致无法写入的。
(1)您认为可能是哪个地方出现了错误导致第二步无法生成文件呢?
(2)是否可以展示一下data_prepare阶段三个运行文件的输出结果/文件/实例呢?这样我自己也好对比差异的地方去修改
Hello,
is it possible to have a look at some examples of inconsistent method names found and corrected by the approach? In the paper "Learning to Spot and Refactor Inconsistent Method Names" you described the approach in general, without giving any specific details about the buggy method names you had managed to find.
Thank you in advance!
There are 11 args in the main.java of DebugMethodName. Still, I don`t know how to set up inputPath ?
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.