Giter VIP home page Giter VIP logo

debug-method-name's People

Contributors

kui-liu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

debug-method-name's Issues

How do I generate the tokens.list?

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!

flush() failed: stream is closed when save model

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

Some utils classes don't exist anymore

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?

Step 4 Out of Memory, and step 5 can not work, how can I get DebugMethodName-0.0.1-SNAPSHOT.jar?

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?

How to use maven to compile this project?

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编译,如果要编译的话,怎么编译?希望您能给一点点指点,非常感激!!

How to judge if the name and body become stable after a change

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

if (!methodBodyChanged(actionSet, delActionSets, insActionSets)) {

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!

some running problem

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阶段三个运行文件的输出结果/文件/实例呢?这样我自己也好对比差异的地方去修改

Examples of inconsistent method names

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.