Skip to content
This repository has been archived by the owner on Dec 24, 2019. It is now read-only.

CROSSIndex and Eclipse plugin #387

Open
creat89 opened this issue Sep 30, 2019 · 4 comments
Open

CROSSIndex and Eclipse plugin #387

creat89 opened this issue Sep 30, 2019 · 4 comments

Comments

@creat89
Copy link
Contributor

creat89 commented Sep 30, 2019

Hello,

I open this issue as it I might not be the case that the recommender created for exploiting the indexes is present through the Eclipse plugin. The recommender is located in the KB and it's available through the same REST API that the recommenders and tools created by UDA.

This recommender is associated to four API methods, depending on the programming language to process, C, Java, PHP and Javascript. It has for input a portion of the code being developed.

The returned object is the same that UDA recommender send.

Would it be possible to create an interface similar to those used by UDA recommenders?

@creat89
Copy link
Contributor Author

creat89 commented Sep 30, 2019

@geryxyz
Copy link
Contributor

geryxyz commented Sep 30, 2019

Maybe I miss something but could you give us a use case with sample data for these requests?

@creat89
Copy link
Contributor Author

creat89 commented Sep 30, 2019

Hello, I hope I had understood well, here is an example:

curl -X POST "http://localhost:8080/api/recommendation/crossindex-java/"
 -H "accept: application/xml"
 -H "Content-Type: application/json"
 -d "{ \"compilationUnit\": \"package camelinaction;import org.apache.c amel.CamelContext;import org.apache.camel.builder.RouteBuilder;import org.apache.camel.impl.DefaultCamelContext;public class FilePrinter{ public static void main (String[] args) throws Exception{ CamelContext c ontext = new DefaultCamelContext(); context.addRoutes(new RouteBuilder(){ public void configure(){} }); }}\"}"

In the compilationUnit it goes the code that the developer is creating on Eclipse. This should be similar to other recommenders, such as SORecommeder.

The URL could be:

Currently it seems a bug in the KB regarding versions of the Lucene in the maven, but that's another issue.

@creat89
Copy link
Contributor Author

creat89 commented Oct 1, 2019

I have updated the curl example to properly have a running example

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants