query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Add the DTO and check the ticker symbol to ensure a company exists or create one if not. | @Override
protected void preAddDTO( final D dto )
{
final String methodName = "preAddDTO";
logMethodBegin( methodName, dto );
Objects.requireNonNull( dto, "dto argument cannot be null" );
checkTickerSymbol( dto );
super.preAddDTO( dto );
logMethodEnd( methodName );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void checkTickerSymbol( final D dto )\n {\n final String methodName = \"checkTickerSymbol\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n this.stockCompanyEntityService\n .checkStockCompanyTableEntry( dt... | [
"0.59609324",
"0.57898587",
"0.5751667",
"0.57377106",
"0.55926085",
"0.55280244",
"0.53857034",
"0.53798467",
"0.5368413",
"0.5355439",
"0.53312206",
"0.52275234",
"0.52154297",
"0.5212603",
"0.51658744",
"0.51576054",
"0.5123269",
"0.50975007",
"0.5081922",
"0.5053979",
"0.... | 0.5703257 | 4 |
Before the entity is added, need to set the stock price when created field if the entity contains one. | @Override
protected void preAddEntity( final E entity )
throws VersionedEntityNotFoundException
{
final String methodName = "preAddEntity";
logMethodBegin( methodName, entity );
Objects.requireNonNull( entity, "entity argument cannot be null" );
super.preAddEntity( entity );
if ( entity instanceof StockPriceWhenCreatedContainer )
{
setStockPriceWhenCreated( entity.getTickerSymbol(), (StockPriceWhenCreatedContainer)entity );
}
logMethodEnd( methodName );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setStockPriceWhenCreated( final String tickerSymbol, final StockPriceWhenCreatedContainer entity )\n {\n Objects.requireNonNull( tickerSymbol, \"tickerSymbol argument cannot be null\" );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n /*\n * ... | [
"0.72780657",
"0.6311634",
"0.629966",
"0.6174013",
"0.61292243",
"0.60380304",
"0.6007194",
"0.60065013",
"0.5988919",
"0.5971972",
"0.5971715",
"0.5970678",
"0.59647053",
"0.59218746",
"0.5905554",
"0.58956057",
"0.5853101",
"0.5832984",
"0.58208424",
"0.58192635",
"0.58100... | 0.7881836 | 0 |
Sets the stock price when created field with the current stock price value this is a synchronous call to get the stockprice. | protected void setStockPriceWhenCreated( final String tickerSymbol, final StockPriceWhenCreatedContainer entity )
{
Objects.requireNonNull( tickerSymbol, "tickerSymbol argument cannot be null" );
Objects.requireNonNull( entity, "entity argument cannot be null" );
/*
* The stock price needs to be set the first time as it records the stock price when the record was created.
*/
entity.setStockPriceWhenCreated( this.stockPriceQuoteService
.getLastPrice( tickerSymbol ));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setStock_price(BigDecimal stock_price) {\n this.stock_price = stock_price;\n }",
"public void setStockPrice(double stockPrice) {\n\t\tthis.stockPrice = stockPrice;\n\t}",
"public BigDecimal getStock_price() {\n return stock_price;\n }",
"public double getStockPrice() {\n\t\tre... | [
"0.76926905",
"0.76066864",
"0.7348743",
"0.7209661",
"0.66441303",
"0.6621732",
"0.65959734",
"0.6517946",
"0.65164745",
"0.6502749",
"0.6500441",
"0.6500441",
"0.6489309",
"0.6462509",
"0.64013654",
"0.6358144",
"0.6354834",
"0.634475",
"0.6342002",
"0.6342002",
"0.63332474... | 0.7026803 | 4 |
Save the DTO and check the ticker symbol to ensure a company exists or create one if not. | @Override
protected void preSaveDTO( final D dto )
{
final String methodName = "preSaveDTO";
logMethodBegin( methodName, dto );
checkTickerSymbol( dto );
super.preSaveDTO( dto );
logMethodEnd( methodName );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Company saveCompany(Company company);",
"@Override\n\tpublic void save(Company company) {\n\t\t\n\t}",
"public boolean addOrUpdateCapitalMarkets(CapitalMarketsModel companyDetails) {\n //Use the Cached Connection\n SQLiteDatabase db = getWritableDatabase();\n Boolean transactionSucc... | [
"0.6333118",
"0.63163835",
"0.60977966",
"0.5930934",
"0.5923495",
"0.58587694",
"0.58251035",
"0.57778645",
"0.5735815",
"0.5691017",
"0.56806314",
"0.56466025",
"0.5625797",
"0.55832464",
"0.5580272",
"0.5552192",
"0.55081767",
"0.5488041",
"0.54696673",
"0.54573953",
"0.54... | 0.5725779 | 9 |
Validate the ticker symbol and add a new stock_company table entry if necessary. | protected void checkTickerSymbol( final D dto )
{
final String methodName = "checkTickerSymbol";
logMethodBegin( methodName, dto );
Objects.requireNonNull( dto, "dto argument cannot be null" );
this.stockCompanyEntityService
.checkStockCompanyTableEntry( dto.getTickerSymbol() );
logMethodEnd( methodName );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean addNewStockToMarket(String tickerSymbol, double sharePrice){\r\n if(stocksSymbolToPrice.containsKey(tickerSymbol)){\r\n return false;\r\n }\r\n //if the stock is already listed, return false\r\n //otherwise, add the key-value pair to the stocksSymbolToPrice ... | [
"0.6257494",
"0.6045545",
"0.5757523",
"0.5675593",
"0.56294745",
"0.548363",
"0.5420675",
"0.54042876",
"0.5391335",
"0.5390994",
"0.5259689",
"0.52248967",
"0.52244174",
"0.52070576",
"0.52004737",
"0.5187445",
"0.51794493",
"0.516299",
"0.51239634",
"0.5108557",
"0.5102992... | 0.57894987 | 2 |
TODO Autogenerated method stub | public static void main(String[] args) {
int a=10;
int b=20;
a=a+b;
b=a-b;
a=a-b;
System.out.println("reverse_no_is a= "+a);
System.out.println("reverse_no_is b= "+b);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
null, because begin node has no prev | public Node getPrev() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\tpublic Node getPreviousSibling()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public Node<S> getPrev() { return prev; }",
"public DNode getPrev() { return prev; }",
"@Override\n\tpublic Node getPreviousSibling() {\n\t\treturn null;\n\t}",
"Optional<Node<UnderlyingData>> prevNode(Node<Und... | [
"0.72642684",
"0.7240599",
"0.7211108",
"0.71660936",
"0.7115276",
"0.7082196",
"0.7065731",
"0.70277226",
"0.6943928",
"0.69122165",
"0.6861313",
"0.6838583",
"0.683807",
"0.677049",
"0.67121875",
"0.66758204",
"0.6673199",
"0.6659561",
"0.66564953",
"0.66047573",
"0.6600268... | 0.79273665 | 0 |
We give the hierarchy a class that talks about another class 'B', but we never give it B, so B is left hanging around as a ghost node. | @Test
public void testWhenHierarchyContainsGhostNode() {
ClassInformation info = ClassInformation.postRenameInfoFor(false, "A", "B", new String[]{ CommonType.I_OBJECT.dotName });
ClassHierarchy hierarchy = new ClassHierarchyBuilder().build();
hierarchy.add(info);
HierarchyVerificationResult result = verifier.verifyHierarchy(hierarchy);
assertFalse(result.success);
assertTrue(result.foundGhost);
assertEquals(info.superClassDotName, result.nodeName);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void VisitClassNode(BunClassNode Node) {\n\n\t}",
"private void buildGraph(Classes classes) {\n \t\n\tadjacencyList.put(TreeConstants.Object_.getString(), new ArrayList<String>() );\n\t//add primitives to the children of object\n ArrayList<String> objectlist = adjacencyList.get(TreeConstan... | [
"0.63042843",
"0.59853125",
"0.5904864",
"0.580627",
"0.5552033",
"0.5472713",
"0.5452376",
"0.53994167",
"0.53761846",
"0.53247356",
"0.5317943",
"0.5295998",
"0.52611166",
"0.5239409",
"0.5145552",
"0.5098616",
"0.5093282",
"0.5077134",
"0.5076658",
"0.50749815",
"0.5062039... | 0.6614474 | 0 |
B will be a ghost node, but since it's never made real it will never descend from any other node. And A only descends from B, so both A and B are cut off from the hierarchy. | @Test
public void testWhenHierarchyContainsUnreachableNodes() {
ClassInformation info = ClassInformation.postRenameInfoFor(false, "A", "B", null);
ClassHierarchy hierarchy = new ClassHierarchyBuilder().build();
hierarchy.add(info);
HierarchyVerificationResult result = verifier.verifyHierarchy(hierarchy);
assertFalse(result.success);
assertTrue(result.foundUnreachableNodes);
assertEquals(2, result.numberOfUnreachableNodes);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testWhenHierarchyContainsGhostNode() {\n ClassInformation info = ClassInformation.postRenameInfoFor(false, \"A\", \"B\", new String[]{ CommonType.I_OBJECT.dotName });\n\n ClassHierarchy hierarchy = new ClassHierarchyBuilder().build();\n hierarchy.add(info);\n\n Hi... | [
"0.5944471",
"0.5562143",
"0.5504375",
"0.5442457",
"0.5407396",
"0.5338226",
"0.5294936",
"0.5286568",
"0.5280353",
"0.5266047",
"0.5175182",
"0.51492053",
"0.5141445",
"0.51401156",
"0.51293176",
"0.5094881",
"0.5090036",
"0.5081714",
"0.5059328",
"0.5053244",
"0.50452304",... | 0.5495248 | 3 |
Getters Synchronisation (attendre fin de la saisie) par mutex | public String getprenom() {
return prenom;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getLock() {\n return dataLock;\n }",
"public Lock getLock();",
"public void synchronize(){ \r\n }",
"public abstract ReentrantLock getLock();",
"@Override\n @ReturnsLock(\"a:M\")\n public Object get(final C a, final C b) {\n return lock;\n }",
"public Lock getLock() ... | [
"0.6259019",
"0.6068567",
"0.59849685",
"0.59075314",
"0.58816445",
"0.58731264",
"0.5861049",
"0.58329856",
"0.5793413",
"0.5761322",
"0.5746664",
"0.57292056",
"0.57061744",
"0.5666202",
"0.5640241",
"0.55839443",
"0.55569625",
"0.5537715",
"0.5523909",
"0.54961145",
"0.549... | 0.0 | -1 |
cPark is the object of CarPark class. Constructor for Application class | public Application()
{
pSlot = new ParkingSlot();
cPark = new CarPark();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CarPark() {\r\n\t\tthis(Constants.DEFAULT_MAX_CAR_SPACES,\r\n\t\t\t\tConstants.DEFAULT_MAX_SMALL_CAR_SPACES,\r\n\t\t\t\tConstants.DEFAULT_MAX_MOTORCYCLE_SPACES,\r\n\t\t\t\tConstants.DEFAULT_MAX_QUEUE_SIZE);\r\n\r\n\t\t// Initialise the parking spots avaliable.\r\n\t\tmaxCarSpaces = Constants.DEFAULT_MAX_CAR... | [
"0.6566476",
"0.6510629",
"0.59901285",
"0.5937237",
"0.57924294",
"0.57850105",
"0.57662684",
"0.57465273",
"0.5602348",
"0.55825204",
"0.55681205",
"0.5524485",
"0.5504267",
"0.549277",
"0.5464252",
"0.54580605",
"0.5446613",
"0.54422545",
"0.5442126",
"0.54375374",
"0.5436... | 0.7542303 | 0 |
Method to display the main menu of the system. | private void displayMenu()
{
System.out.println("\nWelcome to Car Park System");
System.out.println("=============================");
System.out.println("(1)Add a Slot ");
System.out.println("(2)Delete a Slot");
System.out.println("(3)List all Slots");
System.out.println("(4)Park a Car");
System.out.println("(5)Find a Car ");
System.out.println("(6)Remove a Car");
System.out.println("(7)Exit ");
System.out.println("\nSelect an Option: ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void mainMenu() {\r\n System.out.println(\"Canteen Management System\");\r\n System.out.println(\"-----------------------\");\r\n System.out.println(\"1. Show Menu\");\r\n System.out.println(\"2. Employee Login\");\r\n System.out.println(\"3. Vendor Login\");\r\n System.out.println(\"4. E... | [
"0.8375603",
"0.8303884",
"0.80003124",
"0.78711325",
"0.7802954",
"0.7747435",
"0.7727556",
"0.76540387",
"0.76435614",
"0.75950885",
"0.7518838",
"0.7515759",
"0.7513814",
"0.7503451",
"0.74991196",
"0.74750423",
"0.74542195",
"0.74229825",
"0.7402853",
"0.7384139",
"0.7367... | 0.7327636 | 23 |
This method implements all the functionalities of the system. | public void startSystem()
{
Scanner sc = new Scanner(System.in);
while(true)
{
displayMenu();
if(sc.hasNextInt())
{
int choice = sc.nextInt();//choice stores the value of input entered by the user.
switch(choice)
{
case 1: pSlot.addSlot();
break;
case 2: pSlot.deleteSlot();
break;
case 3: pSlot.listSlots();
break;
case 4: pSlot.parkCar();
break;
case 5: pSlot.findCar();
break;
case 6: pSlot.removeCar();
break;
case 7: exitApplication();
break;
default: System.out.println("\n Please choose the input from 1-7");
}
}
else
{
System.out.println("\n Please choose the input from 1-7");
sc.next();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void aktualisieren() {\r\n\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n ... | [
"0.6503546",
"0.6500815",
"0.6400934",
"0.6397882",
"0.6365482",
"0.6339815",
"0.6339815",
"0.6339427",
"0.6330755",
"0.6310319",
"0.63098055",
"0.6244174",
"0.624161",
"0.6238435",
"0.6230459",
"0.6216521",
"0.6216521",
"0.6195318",
"0.6195318",
"0.61764854",
"0.6167665",
... | 0.0 | -1 |
This method closes the application. | private void exitApplication()
{
System.exit(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void closeApp();",
"public void close()\n {\n // Display a farewell message before closing the application \n super.close();\n }",
"private void closeApp() {\n\t\tcurrentBoard.storeXMLfil();\n\t\tzipBackUp( currentBoard.getBoardFile() );\n\t\tlogConcoleOutput();\n\t\t//\n\t\tif( funcBoard ... | [
"0.80985826",
"0.77584493",
"0.764082",
"0.74355274",
"0.7403385",
"0.73645663",
"0.7283048",
"0.7279058",
"0.7269199",
"0.7204967",
"0.7194052",
"0.7180427",
"0.7124042",
"0.7073469",
"0.7072989",
"0.7052671",
"0.704252",
"0.70299035",
"0.7024631",
"0.697832",
"0.69676626",
... | 0.69383746 | 26 |
TODO Autogenerated method stub | @Override
public void actionPerformed(ActionEvent e) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void mouseEntered(MouseEvent e) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void mouseExited(MouseEvent e) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Runs the build.xml file for the the given exercise. | protected boolean buildAntProject(Path path) {
final File buildFile = new File(path.toString() + File.separatorChar + "build.xml");
final File buildLog;
Project buildProject = new Project();
buildProject.setUserProperty("ant.file", buildFile.getAbsolutePath());
buildProject.setProperty("javac.fork", "true");
buildProject.init();
buildProject.setBaseDir(path.toAbsolutePath().toFile());
try {
DefaultLogger logger = new DefaultLogger();
buildLog = new File(path.toString(), "build_log.txt");
PrintStream buildOutput = new PrintStream(buildLog);
logger.setErrorPrintStream(buildOutput);
logger.setOutputPrintStream(buildOutput);
logger.setMessageOutputLevel(Project.MSG_INFO);
buildProject.addBuildListener(logger);
try {
buildProject.fireBuildStarted();
ProjectHelper helper = ProjectHelper.getProjectHelper();
buildProject.addReference("ant.projectHelper", helper);
helper.parse(buildProject, buildFile);
buildProject.executeTarget("compile-test");
buildProject.fireBuildFinished(null);
return true;
} catch (BuildException e) {
buildProject.fireBuildFinished(e);
buildRunResult = new RunResult(Status.COMPILE_FAILED, ImmutableList.copyOf(new ArrayList<TestResult>()),
new ImmutableMap.Builder<String, byte[]>().put(SpecialLogs.COMPILER_OUTPUT,
Files.readAllBytes(buildLog.toPath())).build());
return false;
}
} catch (IOException e) {
throw Throwables.propagate(e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testBuildAndRun() {\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME);\n JavaNode sampleClass1Node = new JavaNode(sample1Node, SAMPLE1_FILE_NAME);\n // increase timeo... | [
"0.5883303",
"0.582251",
"0.58042747",
"0.5695403",
"0.5667133",
"0.56444746",
"0.5499851",
"0.5498112",
"0.5467397",
"0.54652196",
"0.5452272",
"0.54431415",
"0.5423425",
"0.5422656",
"0.5402018",
"0.53989863",
"0.5392692",
"0.53924656",
"0.5384207",
"0.53832465",
"0.5343982... | 0.0 | -1 |
Gets the initial option values provided by the Graal runtime. These are option values typically parsed from the command line. | public static OptionValues getInitialOptions() {
return Graal.getRequiredCapability(OptionValues.class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String[] getOptions() {\n return argv;\n }",
"@Override\n\tpublic String[] getOptions() {\n\t\tVector<String> result = new Vector<String>();\n\n\t\tresult.add(\"-populationSize\");\n\t\tresult.add(\"\" + populationSize);\n\n\t\tresult.add(\"-initialMaxDepth\");\n\t\tresult.add(\"\" + maxDepth)... | [
"0.64236706",
"0.61485326",
"0.6135612",
"0.6085663",
"0.6064771",
"0.59173846",
"0.5914324",
"0.58734953",
"0.5870174",
"0.5838329",
"0.5761183",
"0.5696484",
"0.56822884",
"0.5646541",
"0.56385267",
"0.5596742",
"0.55631703",
"0.5547502",
"0.55425525",
"0.5531316",
"0.55178... | 0.77998143 | 0 |
Created by JokerWan on 2017/12/11. WeChat: wjc398556712 Function: | public interface IMoiveListView extends IWanBaseView{
void onLoading();
void onLoadSucess(MoiveListResponse moiveListResponse);
void onLoadFail(String msg);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void cajas() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
... | [
"0.5305196",
"0.5239564",
"0.51265174",
"0.51265174",
"0.51265174",
"0.51265174",
"0.51265174",
"0.51265174",
"0.51265174",
"0.510489",
"0.50601983",
"0.50168777",
"0.5002818",
"0.5001412",
"0.49542314",
"0.49412072",
"0.4920589",
"0.48921242",
"0.4886839",
"0.48863116",
"0.4... | 0.0 | -1 |
To change body of implemented methods use File | Settings | File Templates. | @Override
public void pause() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\... | [
"0.7432435",
"0.73870134",
"0.7378721",
"0.7340958",
"0.733551",
"0.7325809",
"0.7303214",
"0.7303214",
"0.7287421",
"0.72616535",
"0.7222961",
"0.7222961",
"0.71841073",
"0.71720046",
"0.71163124",
"0.71061647",
"0.70781916",
"0.70430636",
"0.7009758",
"0.69948745",
"0.69869... | 0.0 | -1 |
Constructeur vide de la classe API | public API() {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public api() {}",
"API createAPI();",
"private APIClient() {\n }",
"private ParkingLotApi()\r\n {\r\n }",
"public APIOperation()\n {\n super();\n }",
"public ApiResponse() {\n }",
"private Api() {\n // Implement a method to build your retrofit\n buildRetrofit(BASE... | [
"0.8560586",
"0.7942637",
"0.79022783",
"0.77500665",
"0.7717204",
"0.7707666",
"0.7640253",
"0.7628716",
"0.760355",
"0.75858474",
"0.7568101",
"0.74011725",
"0.7386108",
"0.72787344",
"0.7238391",
"0.7179376",
"0.70934737",
"0.7037934",
"0.70006585",
"0.6997346",
"0.6977376... | 0.8687287 | 0 |
Create richcontent label used in FreeMind&FreePlane (version 1.0.1) | @SuppressWarnings("unused")
public Element getRichcontent(String content) {
Element root = DocumentHelper.createElement("richcontent").addAttribute("TYPE", "NOTE");
Element html = root.addElement("html");
Element head = html.addElement("head");
Element body = html.addElement("body");
// 根据换行符 split 内容,每行对应一个 <p>
String[] lines = content.split(Utils.CUSTOM_FEEDLINE);
for (String line : lines) {
body.addElement("p").addText(line);
}
return root;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getLabel();",
"String getLabel();",
"String getLabel();",
"private void createNodeLabel(NodeAppearanceCalculator nac) {\r\n\t PassThroughMapping passThroughMapping = new PassThroughMapping(\"\",\r\n\t ObjectMapping.NODE_MAPPING);\r\n\t \r\n\t // chang... | [
"0.6817336",
"0.67372274",
"0.67372274",
"0.671616",
"0.66496396",
"0.662767",
"0.6619123",
"0.6580045",
"0.6571894",
"0.646562",
"0.64328337",
"0.64328337",
"0.64328337",
"0.64328337",
"0.6414773",
"0.639451",
"0.63887435",
"0.63504034",
"0.634088",
"0.6315841",
"0.62518",
... | 0.0 | -1 |
/ Method to check whether google service is available or not Important method to make google api project robust | public boolean googleServiceCheck() {
int isServiceAvailable = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
if (isServiceAvailable == ConnectionResult.SUCCESS) {
return true;
} else if (GooglePlayServicesUtil.isUserRecoverableError(isServiceAvailable)) {
Dialog dialog = GooglePlayServicesUtil.getErrorDialog(isServiceAvailable, this, GPS_ERROR_DIALOG_REQUEST);
dialog.show();
} else {
Toast.makeText(this, "Can't connect to Google Play Service", Toast.LENGTH_SHORT).show();
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkGooglePlayServices() {\n\t\tint status = GooglePlayServicesUtil\n\t\t\t\t.isGooglePlayServicesAvailable(getApplicationContext());\n\t\tif (D) {\n\t\t\tif (status == ConnectionResult.SUCCESS) {\n\t\t\t\t// Success! Do what you want\n\t\t\t\tLog.i(TAG, \"Google Play Services all good\");\n\t\t\t} e... | [
"0.78387505",
"0.78170156",
"0.765277",
"0.7579894",
"0.7522217",
"0.7512399",
"0.75080836",
"0.74950236",
"0.74912035",
"0.74675894",
"0.74397725",
"0.74154425",
"0.7402175",
"0.7349814",
"0.7349814",
"0.73488426",
"0.73479235",
"0.7344112",
"0.733308",
"0.73309904",
"0.7289... | 0.7643756 | 3 |
Do a null check to confirm that we have not already instantiated the map. | private boolean isMap() {
if (mMap == null) {
// Try to obtain the map from the MapFragment.
mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();
mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);
// Check if we were successful in obtaining the map.
if (mMap != null) {
mMap.setOnMapClickListener(this);
mMap.setOnMarkerClickListener(this);
}
}
return (mMap != null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setUpMapIfNeeded() {\n if (map == null) {\n map = fragMap.getMap();\n if (map != null) {\n setUpMap();\n }\n }\n }",
"private void setUpMapIfNeeded() {\n // Do a null check to confirm that we have not already instantiated the ma... | [
"0.69568175",
"0.6915876",
"0.6832689",
"0.68302405",
"0.6786305",
"0.6772652",
"0.6723438",
"0.6688605",
"0.6675291",
"0.6675291",
"0.6675291",
"0.6673194",
"0.6642337",
"0.6601276",
"0.6580171",
"0.65744424",
"0.6564725",
"0.654965",
"0.65412354",
"0.65252334",
"0.6511209",... | 0.0 | -1 |
Initial Condition for map => Go to current location | private void setUpMap() throws IOException {
// Get last location which means current location
lastKnownLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);
if (lastKnownLocation != null) {
// shift view to current location
LatLng latlng = new LatLng(lastKnownLocation.getLatitude(), lastKnownLocation.getLongitude());
Geocoder geocoder = new Geocoder(this);
adminArea = geocoder.getFromLocation(latlng.latitude, latlng.longitude, 1).get(0).getAdminArea();
CameraUpdate update = CameraUpdateFactory.newLatLngZoom(latlng, 12);
mMap.moveCamera(update);
} else {
Toast.makeText(this, "Current Location is not Available", Toast.LENGTH_SHORT).show();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n\n if (mMap == null) {\n ... | [
"0.6713797",
"0.64883703",
"0.6459152",
"0.63981694",
"0.637653",
"0.6352116",
"0.615505",
"0.6090695",
"0.5984768",
"0.59510845",
"0.5944102",
"0.5934607",
"0.5917185",
"0.58928096",
"0.58748174",
"0.5871467",
"0.5862369",
"0.5820972",
"0.5795414",
"0.57812697",
"0.57662946"... | 0.62677693 | 6 |
This method is used to create markerOptions for an given address | public MarkerOptions getMarkerOptions(Address address) {
if (address != null) {
LatLng latLng = new LatLng(address.getLatitude(), address.getLongitude());
String addressLine = "";
for (int j = 0; j < address.getMaxAddressLineIndex(); j++) {
addressLine = addressLine + address.getAddressLine(j);
}
String addressText = String.format(
addressLine,
address.getLocality(),
address.getCountryName());
return new MarkerOptions()
.title(address.getAddressLine(0))
.position(latLng)
.snippet(addressText);
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addMarkerByAddress(String addr, DialogInterface dialog)\n {\n try {\n Geocoder selected_place_geocoder = new Geocoder(MarkerActivity.this);\n List<Address> address;\n\n address = selected_place_geocoder.getFromLocationName(addr, 5);\n\n if (address... | [
"0.65331334",
"0.5869081",
"0.58034635",
"0.57351106",
"0.5720307",
"0.5697927",
"0.5666107",
"0.56599826",
"0.56523645",
"0.56129175",
"0.5606781",
"0.56027687",
"0.5565312",
"0.5563778",
"0.5511737",
"0.54809374",
"0.5418853",
"0.54153466",
"0.5404117",
"0.54030263",
"0.539... | 0.80088913 | 0 |
Creating an instance of GeoCoder class | @Override
protected List<Address> doInBackground(String... locationName) {
Geocoder geocoder = new Geocoder(getBaseContext());
List<Address> addresses = null;
try {
// Getting a maximum of 10 Address that matches the input text
addresses = geocoder.getFromLocationName(locationName[0], 10);
} catch (IOException e) {
e.printStackTrace();
}
return addresses;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GeoCoderInterface createGeoCoder(){\n\t\tif (Config.default_geo_api.equals(OSM)){\n\t\t\t//TODO: implement\n\t\t\tDebugger.println(\"GeoFactory - unknown GeoCoderInterface: \" + Config.default_geo_api, 1);\n\t\t\treturn null;\n\t\t}else if (Config.default_geo_api.equals(GOOGLE)){\n\t\t\treturn new Ge... | [
"0.73216057",
"0.66273546",
"0.6528163",
"0.6527002",
"0.64056563",
"0.63441604",
"0.6253275",
"0.61861855",
"0.6167473",
"0.60236514",
"0.6003445",
"0.59400827",
"0.59372705",
"0.5871595",
"0.5850761",
"0.5837278",
"0.58106935",
"0.57839644",
"0.5744116",
"0.5670102",
"0.558... | 0.0 | -1 |
Created by Administrator on 2018/1/27. | public interface SinaApiService {
@GET("cgi-bin/pitu_open_access_for_youtu.fcg")
Observable<MoveListBean> faceMerge(@Header("Authorization") String appSign,
@Body RequestBody body);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void create () {\n\n\t}",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"public void create() {\n\t\t\n\t}",
"@Override\n\tpublic void create() {\n\n\t}",
"private RepositorioAtendimentoPublic... | [
"0.61521745",
"0.593712",
"0.5846531",
"0.5806866",
"0.57831645",
"0.5763268",
"0.57575345",
"0.5703714",
"0.5700674",
"0.57006615",
"0.56996095",
"0.56731445",
"0.56589705",
"0.5625887",
"0.5623783",
"0.56149673",
"0.5584452",
"0.5582607",
"0.55716187",
"0.5563597",
"0.55616... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
Map<Club,Map<String,List<Player>>> complexMap = PlayerDB.fetchAllPlayers().stream()
.collect(Collectors.groupingBy(Player::getClub, Collectors.groupingBy(player -> {
Player p = (Player)player;
return p.getAge() <=33 ? "young": "old";
})));
//System.out.println(complexMap);
Map<Club,Long> countKing = PlayerDB.fetchAllPlayers().stream()
.collect(Collectors.groupingBy(Player::getClub, Collectors.counting()));
System.out.println(countKing);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
=========================================================== Constructors =========================================================== This constructs a type that references some bound variable. | public MTNamed(TypeGraph g, String name) {
super(g);
myName = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ReferenceBound(ReferenceType boundType) {\n this.boundType = boundType;\n }",
"VariableRef createVariableRef();",
"VarReference createVarReference();",
"BoundObject(){}",
"VarRef createVarRef();",
"<C, PM> Variable<C, PM> createVariable();",
"public static TypeReference newTypeParameterBoundReferen... | [
"0.6762461",
"0.6428096",
"0.63611174",
"0.61810786",
"0.61236435",
"0.60389966",
"0.5986646",
"0.5909779",
"0.5889544",
"0.5889544",
"0.58036315",
"0.5784744",
"0.5773827",
"0.5732125",
"0.56778127",
"0.56707805",
"0.56219554",
"0.5618333",
"0.552008",
"0.5484457",
"0.546953... | 0.0 | -1 |
This method returns the object in string format. | @Override
public final String toString() {
return "'" + myName + "'";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString()\r\n\t{\r\n\t\tStringBuffer OutString = new StringBuffer();\r\n\t\t// Open tag\r\n\t\tOutString.append(\"<\");\r\n\t\t// Add the object's type\r\n\t\tOutString.append(getType());\r\n\t\t// attach the ID if required.\r\n\t\tif (DEBUG)\r\n\t\t\tOutString.append(getObjID());\r\n\t\t// add the ... | [
"0.8125192",
"0.78207463",
"0.7806203",
"0.7758068",
"0.7739807",
"0.7739807",
"0.7653607",
"0.76421887",
"0.761616",
"0.75874317",
"0.7577042",
"0.75745255",
"0.75743735",
"0.7573358",
"0.75708336",
"0.75412136",
"0.7534117",
"0.74789816",
"0.7454039",
"0.7444489",
"0.742871... | 0.0 | -1 |
For test in heroku | public List<TbUser> getAllUsers() {
return userRepository.findAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@BeforeClass\n\tpublic void setUp() {\n\t\tapp = app.get(ApplicationSourcesRepo.getFirefoxHerokuApplication());\n\n\t}",
"private static int getHerokuAssignedPort() {\n return 4567;\n }",
"@Test\n public void testProcessWebhook() {\n // TODO: test ProcessWebhook\n }",
"@Test\n\tpublic ... | [
"0.60418165",
"0.57077354",
"0.569802",
"0.5531007",
"0.5517641",
"0.54714084",
"0.5386535",
"0.5380009",
"0.53124374",
"0.52939236",
"0.52938014",
"0.5237233",
"0.51962745",
"0.5177817",
"0.517194",
"0.5168843",
"0.514225",
"0.5116577",
"0.51058316",
"0.51052123",
"0.5103251... | 0.0 | -1 |
TODO Autogenerated method stub demo1(); | public static void main(String[] args) throws InterruptedException {
new Thread() {
public void run() {
for(int i = 0; i<10; i++) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println(getName() + " : aaaaa");
}
}
}.start();
// new thread
new Thread() {
public void run() {
for(int i = 0; i<10; i++) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println(getName() + " : bbbbbbbb");
}
}
}.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void thisDemo() {\n\t}",
"public static void demo() {\n\t\tlab_2_2_5();\n\n\t}",
"public Demo() {\n\t\t\n\t}",
"AbsDemo1()\r\n\t\t{\r\n\t\t\tSystem.out.println(\"cons of AbsDemo1\");\r\n\t\t}",
"public Demo3() {}",
"public static void example1() {\n // moved to edu.jas.application.Ex... | [
"0.7152979",
"0.7044506",
"0.68744934",
"0.6765835",
"0.6753763",
"0.6740421",
"0.66847736",
"0.6663375",
"0.66160524",
"0.65937185",
"0.65186757",
"0.6404313",
"0.64011663",
"0.6360381",
"0.63441217",
"0.6324294",
"0.6261234",
"0.6232635",
"0.6211599",
"0.6208746",
"0.620736... | 0.0 | -1 |
sirve para obtener el valor del vertice solamente que sea igual a null y agregara el vertice nuevo | private Vertice getVertex(String name) {
Vertice v = (Vertice) vertices.get(name);
if (v == null) {
v = new Vertice(name);
vertices.put(name, v);
}
return v;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Vertice getvInicial() {\r\n return vInicial;\r\n }",
"private boolean existeNegro(Vertice<T> v){\n\tif(v == null)\n\t return true;\n\tif(v.color == Color.NEGRO)\n\t return true;\n\treturn false;\n }",
"protected Object calcRightNullRow()\n {\n return null;\n }",
"public... | [
"0.6277861",
"0.5865946",
"0.5849105",
"0.5786695",
"0.5753876",
"0.5748033",
"0.5665221",
"0.55881506",
"0.5571586",
"0.54980004",
"0.5476544",
"0.5458842",
"0.54409486",
"0.5438576",
"0.54296464",
"0.5420646",
"0.5409006",
"0.5366432",
"0.53380203",
"0.5305106",
"0.5224192"... | 0.0 | -1 |
/ imprimo la ruta mas rapida para llegar al destino llamando al actual.previous que es el pais inicial despues le concateno una flecha para indicar quien es el siguiente concatenandole el actual.name que es el pais siguiente esto se cicla hasta que el pais siguiente o el actual.name sea igual al pais que se puso como destino, por lo que el siguiente se pondra como null y se acabara la condicional | public void printPath(Vertice c) {
Vertice actual = c;
if (actual.previous != null) {
printPath(actual.previous);
System.out.print(" --> ");
System.out.print(actual.name);
}
if (actual.previous == null) {
System.out.print(actual.name);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private NetworkProfile getFinalDestination(NetworkProfile dst) {\n NetworkProfile fdst = null;\n// if (dst.isNameProfile()) {\n// //라우팅 스토어에서 검색\n// fdst = dst;\n// } else {\n fdst = dst;\n// }\n return fdst;\n }",
"private static void esPalindro... | [
"0.5103213",
"0.50780743",
"0.5030748",
"0.5001469",
"0.4999792",
"0.49863884",
"0.49443704",
"0.49377754",
"0.4925137",
"0.49071026",
"0.4858062",
"0.48462242",
"0.48234853",
"0.48215863",
"0.4802052",
"0.47960192",
"0.4793519",
"0.4789183",
"0.47715795",
"0.47674063",
"0.47... | 0.0 | -1 |
Converts color to a humanreadable string if color is one of the constants defined by this class, and converts color to a color code otherwise. Regardless, returns a string that can be used by a browser as a color specification. | public static String friendlyName(Color color) {
if (colorsToNames.containsKey(color))
return colorsToNames.get(color);
return color.getColorCode();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String colorIntToString(int color) {\r\n\t\tswitch (color) {\r\n\t\tcase -8355712:\r\n\t\t\treturn \"GRAY\";\r\n\t\tcase -256:\r\n\t\t\treturn \"YELLOW\";\r\n\t\tcase -16776961:\r\n\t\t\treturn \"BLUE\";\r\n\t\tcase -65536:\r\n\t\t\treturn \"RED\";\r\n\t\tcase -14336:\r\n\t\t\treturn \"ORANGE\";\r\n\... | [
"0.70453906",
"0.68518996",
"0.6825825",
"0.66995484",
"0.6477569",
"0.6463179",
"0.64039874",
"0.63967746",
"0.6354508",
"0.63458043",
"0.63417757",
"0.62954885",
"0.6280938",
"0.62197036",
"0.6206157",
"0.6195233",
"0.61885333",
"0.61678106",
"0.61476123",
"0.61446625",
"0.... | 0.6495737 | 4 |
Returns the Surface passed in to this object's constructor. | public Surface getSurface() {
return surface;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Surface(){\r\n\t\tsuper(SURFACE_TAG,\"\");\r\n\t\tthis.setRef(\"CG\");\r\n\t}",
"public org.landxml.schema.landXML11.SurfaceDocument.Surface getSurface()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.SurfaceDocument.S... | [
"0.75625116",
"0.73443204",
"0.7180474",
"0.69022673",
"0.6787953",
"0.63445765",
"0.62139636",
"0.61299205",
"0.61246383",
"0.6113821",
"0.6051937",
"0.60436374",
"0.60079426",
"0.5910143",
"0.58253235",
"0.5797182",
"0.57739884",
"0.5719527",
"0.5641308",
"0.5592294",
"0.55... | 0.7745034 | 0 |
Returns the DirectShapeRenderer derived from the Surface passed in to this object's constructor. | public DirectShapeRenderer getRenderer() {
return renderer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Renderer getRenderer()\n\t{\n\t\treturn getObject().getRenderer();\n\t}",
"public Shape getRenderObject(\n )\n {return renderObject;}",
"protected ImageRenderer createRenderer() {\n\t\tImageRendererFactory rendFactory = new ConcreteImageRendererFactory();\n\t\t// ImageRenderer renderer = rendFactory... | [
"0.6327319",
"0.6257961",
"0.616212",
"0.6076774",
"0.58947426",
"0.5830341",
"0.57443506",
"0.57304955",
"0.57095546",
"0.5671324",
"0.55980814",
"0.55615604",
"0.55569327",
"0.5531904",
"0.5499327",
"0.54468",
"0.5443942",
"0.54380965",
"0.54070866",
"0.5382898",
"0.5350922... | 0.7549581 | 0 |
Copies of Surface methods None here yet! Copies of DirectShapeRenderer methods Is exactly equivalent to a call to getRenderer().beginPath(). | public DirectShapeRenderer beginPath() {
return renderer.beginPath();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected DrawSurface() {\n\t\taiDrawingOrder = new Object[] { RANGE_CURSOR_DRAWSURFACE, GRID_DRAWSURFACE, GRAPH_DRAWSURFACE,\n\t\t\t\tCURSOR_DRAWSURFACE, ZOOM_DRAWSURFACE, };\n\n\t\t// we know that we paint all our own pixels.\n\t\tsetOpaque(false);\n\n\t\t// default background\n\t\tsetBackground(Color.BLACK);\n\... | [
"0.704625",
"0.6499963",
"0.6330251",
"0.6219431",
"0.6218517",
"0.6207194",
"0.61989105",
"0.61900353",
"0.61678445",
"0.6112202",
"0.6108106",
"0.60869694",
"0.60692924",
"0.60553735",
"0.60540247",
"0.6020332",
"0.6010798",
"0.59997797",
"0.5993629",
"0.5969599",
"0.596350... | 0.5579477 | 77 |
Is exactly equivalent to a call to getRenderer().stroke(). | public DirectShapeRenderer stroke() {
return renderer.stroke();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void stroke() {\n graphicsEnvironmentImpl.stroke(canvas);\n }",
"public RMStroke getStroke() { return _stroke; }",
"public RMColor getStrokeColor() { return getStroke()==null? RMColor.black : getStroke().getColor(); }",
"public void strokeShape(Shape shape);",
"public void... | [
"0.7940243",
"0.6835856",
"0.6815588",
"0.68111914",
"0.6685759",
"0.668239",
"0.64807177",
"0.6458387",
"0.6428133",
"0.64281285",
"0.6388278",
"0.6371834",
"0.636944",
"0.63502043",
"0.6338941",
"0.6304827",
"0.6300688",
"0.6261292",
"0.6234911",
"0.62163943",
"0.62124735",... | 0.7991163 | 0 |
find by user name | public tbl_user CheckUserHave(String user) {
return userRepository.findByUsername(user);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic Userinfo findbyname(String name) {\n\t\treturn userDAO.searchUserByName(name);\r\n\t}",
"public User search_userinfo(String user_name);",
"public boolean findUserBYName(String name);",
"public int search_userid(String user_name);",
"public AgtUser findUserByName(String username);",
... | [
"0.8034379",
"0.7949479",
"0.787993",
"0.76769614",
"0.7618041",
"0.7572424",
"0.75288975",
"0.74309987",
"0.73426133",
"0.7317209",
"0.7310928",
"0.7310928",
"0.7297282",
"0.7280053",
"0.726965",
"0.7259117",
"0.7229393",
"0.722509",
"0.7217668",
"0.7217668",
"0.7211036",
... | 0.0 | -1 |
Find the _Fields constant that matches fieldId, or null if its not found. | public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // BEG_TIME
return BEG_TIME;
case 2: // END_TIME
return END_TIME;
case 3: // DATE
return DATE;
case 4: // OFFICE
return OFFICE;
case 5: // PLAN
return PLAN;
case 6: // TICKETS
return TICKETS;
case 7: // AVAILABLE
return AVAILABLE;
default:
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // REFERRAL_LOG_IDS\n return REFERRAL_LOG_IDS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n ... | [
"0.79869914",
"0.7915354",
"0.78808534",
"0.78808534",
"0.78808534",
"0.78808534",
"0.78808534",
"0.78808534",
"0.77862614",
"0.7779145",
"0.77291805",
"0.7727816",
"0.7721567",
"0.77125883",
"0.77125883",
"0.7709597",
"0.7708822",
"0.7701162",
"0.7699386",
"0.76957756",
"0.7... | 0.0 | -1 |
Find the _Fields constant that matches fieldId, throwing an exception if it is not found. | public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // E\n return E;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields find... | [
"0.7626831",
"0.7626831",
"0.7626831",
"0.7626831",
"0.7626831",
"0.7626831",
"0.7626831",
"0.7621988",
"0.7621988",
"0.7621988",
"0.7621988",
"0.7621988",
"0.7621988",
"0.7621988",
"0.7621988",
"0.7621988",
"0.7621988",
"0.7621988",
"0.7621988",
"0.7621988",
"0.7621988",
"... | 0.0 | -1 |
Find the _Fields constant that matches name, or null if its not found. | public static _Fields findByName(String name) {
return byName.get(name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }",
"@org.apache... | [
"0.76413363",
"0.76413363",
"0.76413363",
"0.76413363",
"0.76413363",
"0.76413363",
"0.76413363",
"0.76413363",
"0.76413363",
"0.76413363",
"0.76413363",
"0.76413363",
"0.76413363",
"0.76413363",
"0.76413363",
"0.76413363",
"0.76413363",
"0.76413363",
"0.76413363",
"0.76413363"... | 0.0 | -1 |
Performs a deep copy on other. | public Schedule(Schedule other) {
__isset_bitfield = other.__isset_bitfield;
this.begTime = other.begTime;
this.endTime = other.endTime;
this.date = other.date;
if (other.isSetOffice()) {
this.office = other.office;
}
this.plan = other.plan;
if (other.isSetTickets()) {
List<TTicket> __this__tickets = new ArrayList<TTicket>();
for (TTicket other_element : other.tickets) {
__this__tickets.add(new TTicket(other_element));
}
this.tickets = __this__tickets;
}
this.available = other.available;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Prototype makeCopy();",
"public void copy (WorldState other)\n\t{\n\t\tresetProperties();\n\t\t//Iterate through other state and clone it's properties into this states properties\n\t\tCollection<WorldStateProperty> otherProperties = other.properties.values();\n\t\tfor (WorldStateProperty property : otherProperti... | [
"0.7214815",
"0.6982586",
"0.6743959",
"0.66792786",
"0.6563397",
"0.6549605",
"0.65230364",
"0.652084",
"0.64842516",
"0.64743775",
"0.6450891",
"0.6438907",
"0.64186275",
"0.640633",
"0.6403375",
"0.63743764",
"0.6373319",
"0.6358263",
"0.6322797",
"0.63214344",
"0.62839",
... | 0.0 | -1 |
Returns true if field begTime is set (has been assigned a value) and false otherwise | public boolean isSetBegTime() {
return EncodingUtils.testBit(__isset_bitfield, __BEGTIME_ISSET_ID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetStartTime() {\n return this.startTime != null;\n }",
"public boolean isSetStartTime() {\n return this.startTime != null;\n }",
"public boolean isSetStartTime() {\n return EncodingUtils.testBit(__isset_bitfield, __STARTTIME_ISSET_ID);\n }",
"public boolean isSetStartTim... | [
"0.74358124",
"0.73813474",
"0.72869116",
"0.72869116",
"0.72869116",
"0.72869116",
"0.72869116",
"0.72869116",
"0.7219787",
"0.7206758",
"0.70621747",
"0.69927907",
"0.6918596",
"0.6916423",
"0.69119215",
"0.68962306",
"0.68156993",
"0.6719912",
"0.67187876",
"0.6700568",
"0... | 0.70974404 | 10 |
Returns true if field endTime is set (has been assigned a value) and false otherwise | public boolean isSetEndTime() {
return EncodingUtils.testBit(__isset_bitfield, __ENDTIME_ISSET_ID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetEndTime() {\n return this.endTime != null;\n }",
"public boolean isSetEndTime() {\n return this.endTime != null;\n }",
"public boolean hasEndTime() {\n return fieldSetFlags()[1];\n }",
"public boolean isSetEndTime() {\n return EncodingUtils.testBit(__isset_bitfiel... | [
"0.8666612",
"0.8595131",
"0.7984101",
"0.7878367",
"0.7878367",
"0.7878367",
"0.7878367",
"0.7878367",
"0.7878367",
"0.76793057",
"0.7040918",
"0.69736314",
"0.6954088",
"0.693461",
"0.69338775",
"0.69338775",
"0.69338775",
"0.69338775",
"0.6915601",
"0.6915601",
"0.69126034... | 0.7932835 | 3 |
Returns true if field date is set (has been assigned a value) and false otherwise | public boolean isSetDate() {
return EncodingUtils.testBit(__isset_bitfield, __DATE_ISSET_ID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isSetDate();",
"boolean isSetFoundingDate();",
"public boolean hasDate() {\n return fieldSetFlags()[5];\n }",
"public boolean isSetExam_date() {\n return this.exam_date != null;\n }",
"public boolean isSetRelease_date() {\n return this.release_date != null;\n }",
"public boole... | [
"0.8226306",
"0.76606476",
"0.76553684",
"0.76173896",
"0.7524226",
"0.75206524",
"0.749542",
"0.749542",
"0.7393787",
"0.73785883",
"0.731423",
"0.7239801",
"0.7217926",
"0.7217926",
"0.71824497",
"0.7134272",
"0.70441926",
"0.7038473",
"0.70249563",
"0.70215034",
"0.6988961... | 0.80044925 | 1 |
Returns true if field office is set (has been assigned a value) and false otherwise | public boolean isSetOffice() {
return this.office != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isSetRegisteredOfficeCity();",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"boolean isSetBranchOfficeList();",
"public boolean isSetOe() {\n\t\t\treturn this.oe != null;\n\t\t}",
"publi... | [
"0.7083172",
"0.6959244",
"0.6959244",
"0.6702485",
"0.65718925",
"0.6523045",
"0.65194607",
"0.64426017",
"0.6400348",
"0.6343047",
"0.6332348",
"0.632604",
"0.6316332",
"0.6316332",
"0.6316332",
"0.6304401",
"0.6289989",
"0.62857324",
"0.6258531",
"0.62519485",
"0.62212574"... | 0.8297056 | 0 |
Returns true if field plan is set (has been assigned a value) and false otherwise | public boolean isSetPlan() {
return EncodingUtils.testBit(__isset_bitfield, __PLAN_ISSET_ID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetResourcePlanName() {\n return this.resourcePlanName != null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null)... | [
"0.6889818",
"0.6889818",
"0.65956515",
"0.659291",
"0.6507784",
"0.6507784",
"0.6507784",
"0.6507784",
"0.6507784",
"0.6507784",
"0.6507784",
"0.6507784",
"0.6507784",
"0.6507784",
"0.6507784",
"0.6507784",
"0.6507784",
"0.6507784",
"0.6507784",
"0.6507784",
"0.6507784",
"... | 0.7440855 | 0 |
Returns true if field tickets is set (has been assigned a value) and false otherwise | public boolean isSetTickets() {
return this.tickets != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetTicketValue() {\n return this.ticketValue != null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TICKET_VALUE:\n return isSetTicketValue();\n }\n t... | [
"0.76982546",
"0.7018318",
"0.6805247",
"0.6805247",
"0.62962216",
"0.62909055",
"0.6289383",
"0.6276167",
"0.6252516",
"0.6234208",
"0.6212362",
"0.6189523",
"0.6179279",
"0.6169946",
"0.61366564",
"0.61261064",
"0.6123028",
"0.6103809",
"0.6055596",
"0.60435927",
"0.6008147... | 0.7952388 | 0 |
Returns true if field available is set (has been assigned a value) and false otherwise | public boolean isSetAvailable() {
return EncodingUtils.testBit(__isset_bitfield, __AVAILABLE_ISSET_ID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field)... | [
"0.7781539",
"0.7781539",
"0.76642966",
"0.76642966",
"0.76642966",
"0.76642966",
"0.76642966",
"0.76642966",
"0.76642966",
"0.76642966",
"0.76642966",
"0.76642966",
"0.76642966",
"0.76642966",
"0.76642966",
"0.76642966",
"0.76642966",
"0.76642966",
"0.76642966",
"0.76642966",
... | 0.0 | -1 |
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise | public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case BEG_TIME:
return isSetBegTime();
case END_TIME:
return isSetEndTime();
case DATE:
return isSetDate();
case OFFICE:
return isSetOffice();
case PLAN:
return isSetPlan();
case TICKETS:
return isSetTickets();
case AVAILABLE:
return isSetAvailable();
}
throw new IllegalStateException();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n ... | [
"0.79060566",
"0.79060566",
"0.7833641",
"0.78038526",
"0.7793945",
"0.77815473",
"0.77815473",
"0.77815473",
"0.77815473",
"0.7647787",
"0.7548215",
"0.75459546",
"0.7543348",
"0.7543348",
"0.7543348",
"0.7543348",
"0.7543348",
"0.7543348",
"0.7543348",
"0.7543348",
"0.75433... | 0.0 | -1 |
check for required fields alas, we cannot check 'begTime' because it's a primitive and you chose the nonbeans generator. alas, we cannot check 'endTime' because it's a primitive and you chose the nonbeans generator. alas, we cannot check 'date' because it's a primitive and you chose the nonbeans generator. alas, we cannot check 'available' because it's a primitive and you chose the nonbeans generator. check for substruct validity | public void validate() throws org.apache.thrift.TException {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void validate() throws org.apache.thrift.TException {\n if (version == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'version' was not present! Struct: \" + toString());\n }\n if (am_handle == null) {\n throw new org.apache.thrift.protocol.TProtocolExc... | [
"0.68692994",
"0.6421967",
"0.6398082",
"0.63870364",
"0.6350174",
"0.6283772",
"0.6267536",
"0.62256235",
"0.6210797",
"0.62099224",
"0.6149806",
"0.6127868",
"0.6102583",
"0.60581017",
"0.6056249",
"0.6041611",
"0.60400116",
"0.60257196",
"0.598832",
"0.5968718",
"0.5918824... | 0.0 | -1 |
obtained from medical id | @Transactional(value = "cleia-txm", readOnly = true)
public Medical getMedicalById(long id) {
Medical result = entityManager.find(Medical.class, id);
if (result != null) {
result.getPatient().getUser().getGroups().size();
result.getPatient().getUser().getRoles().size();
result.getPatient().getUser().getIds().size();
result.getPatient().getProcessInstances().size();
}
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getMedicalid() {\n return medicalid;\n }",
"String mo10312id();",
"public java.lang.String getIdMedication() {\n java.lang.Object ref = idMedication_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteStrin... | [
"0.69015217",
"0.64997226",
"0.64598745",
"0.6401356",
"0.6380525",
"0.63335294",
"0.6332991",
"0.6326957",
"0.6290952",
"0.6274403",
"0.62002987",
"0.6163633",
"0.61474335",
"0.6111983",
"0.6102509",
"0.6102509",
"0.6102509",
"0.6102509",
"0.6062667",
"0.60411465",
"0.604114... | 0.0 | -1 |
Search a list of medicals by params | @Transactional(value = "cleia-txm", readOnly = true)
public List<Medical> getMedicalUser(GridRequest filters, String username) {
List<Medical> lm = new ArrayList<Medical>();
Medical m = (Medical) entityManager.createQuery("select m from Medical m where m.username = :username").setParameter("username", username).getSingleResult();
if (m instanceof Medical) {
Medical medical = (Medical) m;
medical.getPatient().getUser().getGroups().size();
medical.getPatient().getUser().getRoles().size();
medical.getPatient().getUser().getIds().size();
medical.getPatient().getProcessInstances().size();
lm.add(medical);
}
return lm;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void searchMoviesSpecific() throws IOException {\n\t\t//the message prints the search parameter they are using by getting the value from the movieMenu map\n\t\tprint(\"Please enter the \"+movieMenu.get(currentSearch)+\" you wish to search for movies by\");\n\t\t//get the search param\n\t\tString searchPara... | [
"0.6303726",
"0.6156082",
"0.6135126",
"0.6121659",
"0.5958553",
"0.5906173",
"0.5869269",
"0.5857643",
"0.57957846",
"0.57914716",
"0.5789885",
"0.57370526",
"0.57105243",
"0.5706391",
"0.56991065",
"0.5680305",
"0.5667874",
"0.56535715",
"0.5629234",
"0.56270117",
"0.559771... | 0.0 | -1 |
Search a list of medicals by params | @Transactional(value = "cleia-txm", readOnly = true)
public List<Medical> getAll(GridRequest filters) {
List<Medical> lmedical = this.find(entityManager, "select m from Medical m" + filters.getQL("m", true), filters.getParamsValues(), filters.getStart(), filters.getLimit());
for (Medical medical : lmedical) {
medical.getPatient().getUser().getGroups().size();
medical.getPatient().getUser().getRoles().size();
medical.getPatient().getUser().getIds().size();
medical.getPatient().getProcessInstances().size();
}
return lmedical;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void searchMoviesSpecific() throws IOException {\n\t\t//the message prints the search parameter they are using by getting the value from the movieMenu map\n\t\tprint(\"Please enter the \"+movieMenu.get(currentSearch)+\" you wish to search for movies by\");\n\t\t//get the search param\n\t\tString searchPara... | [
"0.630419",
"0.6157019",
"0.61388814",
"0.6122838",
"0.5960766",
"0.5909024",
"0.5870766",
"0.5862425",
"0.5801084",
"0.5796821",
"0.5791898",
"0.573778",
"0.5713206",
"0.57108015",
"0.5704023",
"0.56811684",
"0.56705403",
"0.56552964",
"0.56334996",
"0.5628161",
"0.5601176",... | 0.0 | -1 |
find medical given id | @Transactional(value = "cleia-txm", readOnly = true)
public List<Medical> findMedicalsrepeatable(List<Id> asList, Boolean repeatable) throws Exception {
List<Medical> m = new ArrayList<Medical>();
if (asList != null && !asList.isEmpty()) {
int append = 0;
StringBuilder query = new StringBuilder();
query.append("SELECT m FROM Medical m join m.ids idss WHERE idss.id in (select distinct pid.id from Id pid where ");
for (Id pid : asList) {
if (pid.getValue() != null && !pid.getValue().equals("") && pid.getType() != null && pid.getType().getValue() != null) {
append++;
if (append != 1) {
query.append(" or ");
}
query.append("pid.value='").append(pid.getValue()).append("'");
if (repeatable != null) {
query.append(" and pid.type.repeatable=").append(repeatable);
}
query.append(" and pid.type.value='").append(pid.getType().getValue()).append("'");
} else {
throw new Exception("Error. Ha ocurrido un error en uno de los identificadores");
}
}
if (append != 0) {
query.append(")");
m = entityManager.createQuery(query.toString()).getResultList();
}
}
return m;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Medico findById(Integer id_medico) {\n\t\treturn medicoMapper.findById(id_medico);\n\t}",
"public MyMaid hireMaid(Integer id){\n //return requested Maid\n return mMaidStaff.getMaid(id);\n }",
"public void findbyid() throws Exception {\n try {\n Ume_unidade_medidaDAO... | [
"0.6874226",
"0.6417652",
"0.62351304",
"0.6145044",
"0.61302793",
"0.61038774",
"0.60931385",
"0.607104",
"0.6068698",
"0.60617703",
"0.60559684",
"0.5968039",
"0.5959824",
"0.59598047",
"0.59448165",
"0.59378266",
"0.5928042",
"0.58960855",
"0.5882152",
"0.5876511",
"0.5833... | 0.0 | -1 |
get List Id medical | @Transactional(value = "cleia-txm", readOnly = true)
public List<Id> getIdsForMedical(Long idmedical) {
List<Medical> lmedical = entityManager.createQuery("SELECT m FROM Medical m WHERE m.id=?").setParameter(1, idmedical).getResultList();
if (lmedical.size() > 0) {
return lmedical.get(0).getPatient().getUser().getIds();
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getListId()\n {\n return listId;\n }",
"public abstract ArrayList<Integer> getIdList();",
"private String addIDsFilmGenre(List<FilmGenre> list) {\n\t\tString iD = \"\";\n\t\tfor( int i = 0 ; i < list.size(); i++ ){\n\t\t\tif( i == list.size() - 1 ){\n\t\t\t\tiD = iD + list.get( i ).iD;\... | [
"0.6717766",
"0.64616346",
"0.62889665",
"0.61933994",
"0.6191569",
"0.61737746",
"0.61267567",
"0.6081456",
"0.60651284",
"0.6053938",
"0.5999892",
"0.5938162",
"0.59344256",
"0.59344256",
"0.59344256",
"0.59344256",
"0.59344256",
"0.59344256",
"0.59344256",
"0.59344256",
"0... | 0.6249856 | 3 |
enable or disable medical | @Transactional(value = "cleia-txm")
public void enableDisableMedical(Long idmedical, boolean enable) throws Exception {
Medical medical = entityManager.find(Medical.class, idmedical);
String habilitar = "";
if (medical != null) {
if ((!medical.getPatient().getUser().isEnabled() && enable) || (medical.getPatient().getUser().isEnabled() && !enable)) {
try {
medical.getPatient().getUser().setEnabled(enable);
} catch (Exception e) {
if (enable) {
habilitar = "habilitar";
} else {
habilitar = "deshabilitar";
}
throw new Exception("Error. Ha ocurrido un error al" + habilitar + " al medico " + medical.getPatient().getName() + " " + medical.getPatient().getSurname() + " " + medical.getPatient().getSurname1());
}
} else {
if (!enable) {
habilitar = "deshabilitado";
} else {
habilitar = "habilitado";
}
throw new Exception("Error. El medico " + medical.getPatient().getName() + " " + medical.getPatient().getSurname() + " " + medical.getPatient().getSurname1() + " ya esta " + habilitar);
}
} else {
throw new Exception("Error. El medico no existe");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void enableMic(boolean enable);",
"void enableDigital();",
"public void toggleMusic() {\n this.musicEnabled = !this.musicEnabled;\n }",
"public void toggleEnable();",
"public void toggleMod(){\r\n this.enabled = !this.enabled;\r\n this.onToggle();\r\n if(this.enabled)\... | [
"0.6797405",
"0.63988906",
"0.6190704",
"0.6170673",
"0.6091517",
"0.60015005",
"0.5988324",
"0.598039",
"0.5954054",
"0.5938558",
"0.59378386",
"0.5921082",
"0.5898571",
"0.58650225",
"0.58637995",
"0.5835154",
"0.582522",
"0.5808404",
"0.58019644",
"0.57950234",
"0.5791017"... | 0.5729132 | 26 |
enable or disable medical | @Transactional(value = "cleia-txm")
public void addpatientMedical(Medical m) throws Exception {
if (m != null) {
Medical medical = entityManager.find(Medical.class, m.getId());
if (medical != null) {
for (Patient p : medical.getPatients()) {
p.getMedicals().remove(medical);
}
medical.getPatients().clear();
entityManager.flush();
addPatients(m.getPatients(), medical);
} else {
throw new Exception("Error. El medico no existe");
}
} else {
throw new NullPointerException("Error. El medico no existe");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void enableMic(boolean enable);",
"void enableDigital();",
"public void toggleMusic() {\n this.musicEnabled = !this.musicEnabled;\n }",
"public void toggleEnable();",
"public void toggleMod(){\r\n this.enabled = !this.enabled;\r\n this.onToggle();\r\n if(this.enabled)\... | [
"0.67982835",
"0.63976645",
"0.61916995",
"0.61694115",
"0.6091422",
"0.6001437",
"0.5988422",
"0.5979618",
"0.59548974",
"0.59398985",
"0.5939406",
"0.592234",
"0.5899244",
"0.5866928",
"0.5866337",
"0.5835688",
"0.5826305",
"0.58078974",
"0.5803062",
"0.5797735",
"0.5793127... | 0.0 | -1 |
Get patients by Medical id | @Transactional(value = "cleia-txm")
public List<Patient> findPatientsByMedicalId(Long id) throws Exception {
Medical medical = entityManager.find(Medical.class, id);
if (medical == null) {
throw new Exception("Error. El medico no existe");
}
medical.getPatients().size();
return medical.getPatients();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<MedicationPlan> getAllByPatientId(Long id);",
"List<MedicalRecord> getAllPatientMedicalRecords(HttpSession session, int patientId);",
"@Override\n\tpublic List<Medicine> getMedicationData(String patientId, String start, String end) {\n\t\treturn null;\n\t}",
"@GetMapping(\"/biometrics/patient/{id}\")\r\... | [
"0.7278256",
"0.70255375",
"0.6887139",
"0.6843318",
"0.68321615",
"0.6763737",
"0.6605869",
"0.66009444",
"0.65999275",
"0.6558752",
"0.65448505",
"0.6531066",
"0.6505283",
"0.6486461",
"0.6470298",
"0.64668316",
"0.64382786",
"0.64017427",
"0.6398687",
"0.6349213",
"0.63391... | 0.72627515 | 1 |
Backbuffer, this is where we draw stuff. | public Picasso(int width, int height) {
this.width = width;
this.height = height;
debug = new ArrayList<String>();
doDebug = false;
canvas = Discette.toCompatibleImage(new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void render() {\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null) { //if the buffer strategy doesnt get created, then you create it\n\t\t\tcreateBufferStrategy(3); //the number 3 means it creates triple buffering\n\t\t\treturn;\t\t\t\t\t//, so when you backup frame gets displayed (2) it wil... | [
"0.7812194",
"0.70340925",
"0.68929267",
"0.67352766",
"0.6734889",
"0.6658263",
"0.6649684",
"0.6637065",
"0.65877515",
"0.658643",
"0.6531066",
"0.65203434",
"0.647528",
"0.64644176",
"0.6463715",
"0.6463681",
"0.6453248",
"0.64487445",
"0.6447394",
"0.6407871",
"0.64006454... | 0.0 | -1 |
read url from property file | public static void main(String[] args) {
String url = ConfigurationReader.getProperty("url");
Driver.get().get(url);
BrowserUtils.wait(2);
Driver.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private URL readURLFromProperties( Properties properties, String propertyName ) {\n\t\tURL url = null;\n\t\tString urlAsString = properties.getProperty(propertyName) ;\n\n\t\tif( urlAsString != null ) {\n\t\t\ttry {\n\t\t\t\turl = new URL( urlAsString);\n\t\t\t} catch( MalformedURLException e ) {\n\t\t\t\tLog.e( g... | [
"0.7058532",
"0.7005143",
"0.67907786",
"0.6664135",
"0.6619965",
"0.6574757",
"0.63346094",
"0.63287276",
"0.6235359",
"0.612282",
"0.6069668",
"0.6064935",
"0.6039812",
"0.6011987",
"0.59961355",
"0.58879995",
"0.58675987",
"0.58506143",
"0.5795446",
"0.57880324",
"0.578130... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void insert(BbsDto dto) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void delete(String id) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void update(BbsDto dto) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
/ Returns the date for the next notification based on the history of notifications or null if no more notifications are necessary If no history is available, the next notification will be based on the startDate | public Date getNextNotification(List<NotificationOccurrence> notificationOccurrenceHistory, long contactId) {
ArrayList<NotificationOccurrence> contactNotificationOccurrenceHistory = new ArrayList<NotificationOccurrence>();
for(NotificationOccurrence no : notificationOccurrenceHistory) {
if(no.getContactId() == contactId) {
contactNotificationOccurrenceHistory.add(no);
}
}
return getNextNotification(contactNotificationOccurrenceHistory);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getNextNotification(List<NotificationOccurrence> notificationOccurrenceHistory) {\n\t\tif(interval == NotificationRule.INTERVAL_DATE) {\n\t\t\tif(notificationOccurrenceHistory == null || notificationOccurrenceHistory.size() == 0) {\n\t\t\t\treturn startDate;\n\t\t\t} else {\n\t\t\t\tNotificationOccurre... | [
"0.7788827",
"0.73946863",
"0.58573353",
"0.5768462",
"0.5733754",
"0.5685831",
"0.5674187",
"0.56659925",
"0.56353784",
"0.561018",
"0.55648965",
"0.55483794",
"0.5444162",
"0.5337498",
"0.53231555",
"0.5320322",
"0.52463704",
"0.524588",
"0.52024007",
"0.51939845",
"0.51620... | 0.695599 | 2 |
/ Returns the date for the next notification based on the history of notifications or null if no more notifications are necessary If no history is available, the next notification will be based on the startDate | public Date getNextNotification(List<NotificationOccurrence> notificationOccurrenceHistory) {
if(interval == NotificationRule.INTERVAL_DATE) {
if(notificationOccurrenceHistory == null || notificationOccurrenceHistory.size() == 0) {
return startDate;
} else {
NotificationOccurrence lastOccurrence = getMostRecentNotificationOccurrence(notificationOccurrenceHistory);
if(lastOccurrence.getAction() == NotificationOccurrence.ACTION_COMPLETED) {
return null;
} else {
Calendar calendar = Calendar.getInstance();
calendar.setTime(lastOccurrence.getDate());
calendar.add(Calendar.DATE, 1);
return calendar.getTime();
}
}
} else {
NotificationOccurrence lastOccurrence = getMostRecentNotificationOccurrence(notificationOccurrenceHistory);
Date lastOccurrenceDate;
if(lastOccurrence != null) {
lastOccurrenceDate = lastOccurrence.getDate();
} else {
lastOccurrenceDate = startDate;
}
Calendar calendar = Calendar.getInstance();
calendar.setTime(lastOccurrenceDate);
if(lastOccurrence != null && lastOccurrence.getAction() == NotificationOccurrence.ACTION_IGNORED) {
calendar.add(Calendar.DATE, 1);
} else {
switch(interval) {
case NotificationRule.INTERVAL_HOURS:
calendar.add(Calendar.HOUR, intervalIncrement);
break;
case NotificationRule.INTERVAL_DAYS:
calendar.add(Calendar.DATE, intervalIncrement);
break;
case NotificationRule.INTERVAL_WEEKS:
calendar.add(Calendar.DATE, intervalIncrement*7);
break;
case NotificationRule.INTERVAL_MONTHS:
calendar.add(Calendar.MONTH, intervalIncrement);
break;
case NotificationRule.INTERVAL_YEARS:
calendar.add(Calendar.YEAR, intervalIncrement);
break;
default:
return null;
}
}
return calendar.getTime();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static Date calculateNextNotificationDate(Date now, Date sentDate, List<Integer> remindSteps) {\n Calendar sentCal = Calendar.getInstance();\n sentCal.setTime(sentDate);\n for (int dayOffset : remindSteps) {\n sentCal.add(Calendar.DAY_OF_YEAR, dayOffset);\n if (sentCal.ge... | [
"0.73943436",
"0.6956202",
"0.58571666",
"0.5768366",
"0.5733433",
"0.56862473",
"0.567343",
"0.5666244",
"0.56358236",
"0.56094253",
"0.5565065",
"0.55481726",
"0.5443571",
"0.5337419",
"0.5322657",
"0.53202724",
"0.5245228",
"0.52450824",
"0.5200442",
"0.51926905",
"0.51619... | 0.7789209 | 0 |
defines if the current workbook has to process some cell formulas | private void setHasFormulasToEvaluate() {
this.hasFormulasToEvaluate = this.mempoiSubFooter instanceof FormulaSubFooter;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isFormulaUsed() {\n return getBooleanProperty(\"IsFormulaUsed\");\n }",
"public boolean getForceFormulaRecalculation() {\n\t\treturn false;\n\t}",
"private void runFormulas() {\r\n // updates all of the formula cells in the excel file to display the\r\n // changes that were mad... | [
"0.6667246",
"0.6456831",
"0.6130114",
"0.5818151",
"0.573216",
"0.550791",
"0.54589546",
"0.54410887",
"0.53495055",
"0.5344863",
"0.52034926",
"0.51689124",
"0.51334184",
"0.5132712",
"0.51271176",
"0.51193506",
"0.51117796",
"0.50771123",
"0.50246704",
"0.49940318",
"0.499... | 0.7049373 | 0 |
Permette di ottenere il valore della variabile d'istanza che modella il prodotto | public String getProdotto() {
return prodotto;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMontoCatalogoEstimado(double param){\n \n this.localMontoCatalogoEstimado=param;\n \n\n }",
"float getIva();",
"@Override\n\tpublic double valuta_figli() {\n\t\t... | [
"0.59756976",
"0.59707075",
"0.5920155",
"0.5909148",
"0.5894441",
"0.5888246",
"0.5887449",
"0.58781797",
"0.58766294",
"0.5845492",
"0.5812426",
"0.5810802",
"0.5789723",
"0.578737",
"0.5778996",
"0.5759276",
"0.57500464",
"0.57296365",
"0.57116205",
"0.5694025",
"0.5683617... | 0.0 | -1 |
Permette di modificare il valore della variabile d'istanza che modella il prodotto | public void setProdotto(String prodotto) {
this.prodotto = prodotto;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void actualizaEstadoMapa() {\n if(cambiosFondo >= 0 && cambiosFondo < 10){\n estadoMapa= EstadoMapa.RURAL;\n }\n if(cambiosFondo == 10){\n estadoMapa= EstadoMapa.RURALURBANO;\n }\n if(cambiosFondo > 10 && cambiosFondo < 15){\n estadoMapa= ... | [
"0.61286247",
"0.60879034",
"0.60732204",
"0.60501087",
"0.6038791",
"0.60320157",
"0.60042953",
"0.5973978",
"0.5935925",
"0.59242344",
"0.5857401",
"0.5844895",
"0.5841015",
"0.58061004",
"0.5805613",
"0.576837",
"0.5754497",
"0.57256794",
"0.57159686",
"0.5703205",
"0.5693... | 0.0 | -1 |
Permette di ottenere il valore della variabile d'istanza che modella la misura della taglia | public String getMisura() {
return misura;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"float getIva();",
"void setIVA(float iva);",
"public interface TilinsiirtoValittaja {\n\n boolean tilisiirto(String nimi, int viitenumero, String tililta, String tilille, int summa);\n\n}",
"public void Semantica() {\r\n int var, etq;\r\n double marca, valor;\r\n double[] punto = new ... | [
"0.6102487",
"0.5709841",
"0.56900585",
"0.55775774",
"0.55715233",
"0.55351025",
"0.5510349",
"0.55075866",
"0.54986507",
"0.5492404",
"0.5409",
"0.53841",
"0.53385574",
"0.53062797",
"0.53057116",
"0.5274547",
"0.52644414",
"0.5259569",
"0.52528375",
"0.52506936",
"0.524150... | 0.0 | -1 |
Permette di modificare il valore della variabile d'istanza che modella la misura della taglia | public void setMisura(String misura) {
this.misura = misura;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setIVA(float iva);",
"public void editarAlimento(int id_alimento, String nombre, String estado, float caloria, float proteinas,float grasas ,float hidratos_de_carbono, float H20, float NE, float vitamina_a, float vitamina_B1, float vitamina_B2, float vitamina_C, float Niac, float sodio, float potasio, float... | [
"0.57442147",
"0.57293785",
"0.5691183",
"0.56821346",
"0.5610294",
"0.5603179",
"0.5529957",
"0.54583216",
"0.54556656",
"0.5424763",
"0.5403151",
"0.5390819",
"0.5379544",
"0.53745043",
"0.5345407",
"0.53312916",
"0.53233933",
"0.53223234",
"0.53194237",
"0.53066105",
"0.52... | 0.0 | -1 |
An item was selected. You can retrieve the selected item using parent.getItemAtPosition(pos) | public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {
baudRate = Integer.parseInt(parent.getSelectedItem().toString());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\t\t\tListView listView = (ListView) parent;\n\t\t\tString item = (String) listView.getSelectedItem();\n//\t\t\tToast.makeText(SearchGroupActivity.this, \"onItemSelected = \" + item, Toast.LENGTH_LONG).show();\n\t... | [
"0.74735963",
"0.7277004",
"0.7276765",
"0.72598535",
"0.72573906",
"0.7165072",
"0.7164617",
"0.7144116",
"0.71167636",
"0.70937085",
"0.70887554",
"0.70573455",
"0.7053659",
"0.70456266",
"0.7013089",
"0.7007699",
"0.7007699",
"0.7004385",
"0.70010775",
"0.6978187",
"0.6970... | 0.0 | -1 |
getNames produces a list of the names of the attributes. You can iterate through this list using the getValue call to find the values of the attributes | public String [] getNames () {
return this.listAttributes();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"default List<String> getAttributeNames() {\n\t\treturn getAttributes().stream().map(v -> v.getName()).collect(Collectors.toList());\n\t}",
"public List getAttributeNames() {\n log.debug(\"getAttributeNames()\");\n ResultSet resultSet = attrNST.selectRows(\"name\");\n return resultSet.toStrin... | [
"0.8133729",
"0.81332475",
"0.79300594",
"0.77901953",
"0.7562845",
"0.71722096",
"0.7108751",
"0.71026635",
"0.7089728",
"0.70829356",
"0.7009044",
"0.699582",
"0.699379",
"0.699379",
"0.69385153",
"0.6915239",
"0.6884365",
"0.68480456",
"0.6749133",
"0.6745037",
"0.6730307"... | 0.81937546 | 0 |
added by Simon on 20/02/02 rough and ready implementation as an experiment | public String toSL() {
String results = new String("");
String attribute;
ValueFunction value;
for(Enumeration enum = this.keys(); enum.hasMoreElements(); ) {
attribute = (String) enum.nextElement();
value = (ValueFunction) this.get(attribute);
results += ":" + attribute + " " + value + " ";
}
return results.trim() ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"private void kk12() {\n\n\t}",
"private void poetries() {\n\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Overri... | [
"0.53400445",
"0.5266308",
"0.524114",
"0.5225529",
"0.5225164",
"0.5143072",
"0.5100749",
"0.5079111",
"0.5070107",
"0.5059357",
"0.50004286",
"0.49930352",
"0.49858183",
"0.49790406",
"0.49653476",
"0.49637726",
"0.4960963",
"0.4939201",
"0.4936793",
"0.4929744",
"0.4928319... | 0.0 | -1 |
Put your code here | public void init() throws ServletException {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}",
"@Override\n public void execute() {\n \n \n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\t \n\t\t\t super.onPreE... | [
"0.5977403",
"0.5899802",
"0.58468777",
"0.58468777",
"0.5833966",
"0.58169836",
"0.5769323",
"0.57639146",
"0.57394433",
"0.57335854",
"0.57162195",
"0.57096714",
"0.5698843",
"0.5690859",
"0.5673046",
"0.5651847",
"0.5647382",
"0.5640211",
"0.5638415",
"0.5638415",
"0.56263... | 0.0 | -1 |
THIS METHOD SHOULD BE CALLED IN THE METHOD computeFitness BEFORE ALL THE SIMULATIONS START. | public void setPredatorsWeights(double[] weights) {
int k = 0;
for (Predator predator : predators) {
predator.setWeights(weights, k);
if(controller == ControllerType.HETEROGENEO){
k += (weights.length/predators.size());
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void calculateFitness() {\n if (reachedGoal) {\n fitness = 1d / 16d + 8192d / (genome.step * genome.step);\n } else {\n double d = position.distance(Game.Setup.goal);\n fitness = 1d / (d * d);\n }\n }",
"private void runAlgorithm(){\n fitness = new ... | [
"0.7451384",
"0.7139092",
"0.7016479",
"0.7014379",
"0.6880949",
"0.68346465",
"0.6820535",
"0.6794771",
"0.67432576",
"0.6738808",
"0.6671665",
"0.66599536",
"0.657629",
"0.6573092",
"0.6558605",
"0.64295495",
"0.6410402",
"0.63919955",
"0.6315454",
"0.6311757",
"0.6311264",... | 0.0 | -1 |
THIS METHOD SHOULD BE CALLED RIGHT BEFORE EACH CALL TO METHOD simulate (SEE BELOW). THAT IS, IT MUST BE CALLED RIGHT BEFORE EACH SIMULATION (. | public void initializeAgentsPositions(int seed) {
//THE NEXT LINE MEANS THAT ALL INDIVIDUALS WILL BE EVALUATED WITH THE SAME
//ENVIRONEMNT STARTING POSITIONS.
//reset cells
prey.setCell(null);
for (Predator predator : predators) {
predator.setCell(null);
}
prey.setCell(getCell(GeneticAlgorithm.random.nextInt(grid.length), GeneticAlgorithm.random.nextInt(grid.length)));
for (Predator predator : predators) {
do {
Cell cell = getCell(
GeneticAlgorithm.random.nextInt(grid.length), GeneticAlgorithm.random.nextInt(grid.length));
if (!cell.hasAgent()) {
predator.setCell(cell);
}
} while (predator.getCell() == null);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void simulate() {\n\t\t\r\n\t}",
"public abstract void simulate();",
"public abstract int simulate();",
"private void runSimulation() throws Exception{\n\t\tsimulatable.simulate();\n\t\tprintUsage();\n\t}",
"public void quickSimulation() {\n\t\tnew SimulationControleur();\n\t}",
"@O... | [
"0.7859953",
"0.7398841",
"0.72756356",
"0.68132174",
"0.6596939",
"0.65167046",
"0.6393547",
"0.6341102",
"0.6262088",
"0.62540823",
"0.6228447",
"0.6177533",
"0.6177172",
"0.617571",
"0.61685586",
"0.61440575",
"0.61304116",
"0.6084106",
"0.6067911",
"0.60239106",
"0.600673... | 0.0 | -1 |
COMPUTES THE SUM OF THE (SMALLEST) DISTANCES OF ALL THE PREDATORS TO THE PREY. IT TAKES INTO ACCOUNT THAT THE ENVIRONMENT IS TOROIDAL. | public int computePredatorsPreyDistanceSum() {
int sum=0;
for(Predator p:predators){
sum+=p.calculatePredatorPreyDistance(prey, false);
sum+=p.calculatePredatorPreyDistance(prey, true);
}
return sum;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int distributeCandy(int[] score) {\n java.util.TreeMap<Integer,Integer> candcalmap=new java.util.TreeMap<Integer,Integer>();\n int totcand=0,numcan=1;\n /* for(int indx=1;indx<score.length;indx++)\n {\n while(score[indx-1]<(indx<score.length?score[indx]:Integer.MAX_VALUE))\n ... | [
"0.57644176",
"0.57536846",
"0.5642431",
"0.5574883",
"0.5507602",
"0.5491372",
"0.5489841",
"0.54343027",
"0.5383902",
"0.5344764",
"0.53302145",
"0.53077435",
"0.530717",
"0.53017",
"0.52945507",
"0.52726626",
"0.52553624",
"0.5254337",
"0.5253219",
"0.52505815",
"0.5247029... | 0.59348106 | 0 |
THIS METHOD MAY BE USED BY THE PREY IF YOU WANT TO SELECT THE RANDOM PREY MOVEMENT JUST BETWEEN FREE SORROUNDING CELLS. | public List<Cell> getFreeSorroundingCells(Cell cell) {
List<Cell> freeCells = new LinkedList<>();
if (!getNorthCell(cell).hasAgent()) {
freeCells.add(getNorthCell(cell));
}
if (!getSouthCell(cell).hasAgent()) {
freeCells.add(getSouthCell(cell));
}
if (!getEastCell(cell).hasAgent()) {
freeCells.add(getEastCell(cell));
}
if (!getWestCell(cell).hasAgent()) {
freeCells.add(getWestCell(cell));
}
return freeCells;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void step()\n {\n\t int rows = grid.length-1;\n\t int cols = grid[0].length-1;\n\t int direction = (int) (Math.random()*3);\n\t direction--;\n\t int row = (int) (Math.random()*rows);\n\t //System.out.println(row);\n\t int col = (int) (Math.random()*cols);\n\t //System.out.println(col);\n\t if(grid... | [
"0.6335671",
"0.6244768",
"0.6135204",
"0.61289704",
"0.61240184",
"0.6118103",
"0.6113264",
"0.6073666",
"0.6072427",
"0.60131496",
"0.60015017",
"0.59913015",
"0.5956522",
"0.5955399",
"0.5910374",
"0.5905888",
"0.5903346",
"0.5888418",
"0.58378214",
"0.583416",
"0.582716",... | 0.0 | -1 |
The only argument will be the name of the data file; if it is not provided an exception will be thrown (IllegalArgumentException). If the file provided cannot be read, an exception will be thrown (FileNotFoundException). Otherwise, the file will be read and FizzBuzz will be run on the lines contained in the data file. | public static void main(final String[] args) throws Exception {
if(args.length < 1) throw new IllegalArgumentException("Cannot run the fizz-buzz algorithm without a data file.");
String fileName = args[0];
File inputFile = new File(fileName);
if((!inputFile.exists()) || (!inputFile.canRead())) throw new FileNotFoundException("Cannot find or read the given file (" + fileName + ").");
BufferedReader br = new BufferedReader(new FileReader(inputFile));
String line;
while((line = br.readLine()) != null) {
StringTokenizer st = new StringTokenizer(line, " ");
String fNumString = st.nextToken();
String bNumString = st.nextToken();
String tNumString = st.nextToken();
int fNum = Integer.parseInt(fNumString);
int bNum = Integer.parseInt(bNumString);
int tNum = Integer.parseInt(tNumString);
printFizzBuzz(fNum, bNum, tNum);
}
br.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t // Call fizzBuzz method and verify correct output\t\n\t}",
"public void readFromFile() {\n\n\t}",
"public void doIt(File f) throws Exception\n {\n LuaParser parser=new LuaParser();\n Map<String,Object> data=parser.read(f);\n useData(data);\n }",
"publi... | [
"0.6301555",
"0.54929984",
"0.54902256",
"0.54819643",
"0.5470514",
"0.54481214",
"0.5398735",
"0.53720146",
"0.5332749",
"0.53146696",
"0.5299102",
"0.5295793",
"0.5275543",
"0.5260843",
"0.52559656",
"0.5221874",
"0.52198416",
"0.52148205",
"0.5201149",
"0.5197805",
"0.5189... | 0.7233758 | 0 |
Print the fizzbuzz output to the console using the given fizz number, buzz number, and the highest number to test (starting from 1). | protected static void printFizzBuzz(final int fizzNum, final int buzzNum, final int topNum) {
if(topNum > 1) {
for(int i = 1; i <= topNum; i++) {
String output = "";
if(isFizzBuzz(fizzNum, buzzNum, i)) {
output = "FB";
} else if(isBuzz(buzzNum, i)) {
output = "B";
} else if(isFizz(fizzNum, i)) {
output = "F";
} else {
output = String.valueOf(i);
}
System.out.print(output + " ");
}
}
System.out.println(); // print a new line as the end of this test case.
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\r\n Scanner input = new Scanner(System.in);\n //ask or integer\nSystem.out.println(\"Please enter a positive integer to see the FizzBuzz numbers\");\nint num = input.nextInt();\n// decalre and initialize count\nint count = 0;\nwhile(count < num){\n //increase value o... | [
"0.7026053",
"0.69730115",
"0.6948006",
"0.67127067",
"0.66677785",
"0.6603721",
"0.65908384",
"0.6537794",
"0.6512008",
"0.63702935",
"0.63458115",
"0.6333676",
"0.60963464",
"0.60916245",
"0.60350066",
"0.5973076",
"0.594277",
"0.5927407",
"0.5876824",
"0.58433914",
"0.5820... | 0.7785531 | 0 |
Determine if the given number is fizz and buzz. | protected static boolean isFizzBuzz(final int fizzNum, final int buzzNum, final int num) {
return isFizz(fizzNum, num) && isBuzz(buzzNum, num);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static boolean isFizz(final int fizzNum, final int num) {\n\t\treturn num % fizzNum == 0;\n\t}",
"protected static boolean isBuzz(final int buzzNum, final int num) {\n\t\treturn num % buzzNum == 0;\n\t}",
"public static Say fizzBuzz(int number){\n StringBuilder message = new StringBuilder();\n... | [
"0.7557172",
"0.7012979",
"0.6243567",
"0.616249",
"0.60169196",
"0.5909941",
"0.57083166",
"0.561045",
"0.5604274",
"0.54845893",
"0.5441663",
"0.54128146",
"0.54117393",
"0.54117393",
"0.54117393",
"0.53921527",
"0.536931",
"0.5349117",
"0.5345607",
"0.5331652",
"0.5312489"... | 0.7852362 | 0 |
Determine if the given number is fizz. | protected static boolean isFizz(final int fizzNum, final int num) {
return num % fizzNum == 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static boolean isFizzBuzz(final int fizzNum, final int buzzNum, final int num) {\n\t\treturn isFizz(fizzNum, num) && isBuzz(buzzNum, num);\n\t}",
"public static void main(String[] args) {\r\n Scanner input = new Scanner(System.in);\n //ask or integer\nSystem.out.println(\"Please enter a positive ... | [
"0.70883197",
"0.65310186",
"0.61447865",
"0.6068128",
"0.5880585",
"0.562699",
"0.55974525",
"0.5506082",
"0.54711014",
"0.5376676",
"0.5374133",
"0.53648525",
"0.5341194",
"0.5339999",
"0.5327848",
"0.5285925",
"0.52535003",
"0.52082044",
"0.5190013",
"0.5169571",
"0.516128... | 0.8245952 | 0 |
Determine if the given number is buzz. | protected static boolean isBuzz(final int buzzNum, final int num) {
return num % buzzNum == 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static boolean isFizzBuzz(final int fizzNum, final int buzzNum, final int num) {\n\t\treturn isFizz(fizzNum, num) && isBuzz(buzzNum, num);\n\t}",
"public boolean hasBlackjack() {\n\t\treturn this.hand.countValue().lower(22) == 21;\n\t}",
"boolean hasNumber();",
"boolean hasNumb();",
"boolean hasB... | [
"0.6548759",
"0.5939486",
"0.57751554",
"0.5693228",
"0.5684975",
"0.5667475",
"0.54611087",
"0.5459104",
"0.54345727",
"0.5433827",
"0.5433827",
"0.5433827",
"0.5426423",
"0.5423171",
"0.5422626",
"0.5422039",
"0.53846526",
"0.53625935",
"0.5360865",
"0.5356776",
"0.53444064... | 0.8076287 | 0 |
create files directory under /data/data/package name | public boolean copyBinaryFromAssetsToData(String out_screenFileName) {
File filesDirectory = new File(fileDir);
InputStream is;
try {
is = mContext.getAssets().open(screenFileName);
// copy ffmpeg file from assets to files dir
Log.i(TAG, "copyBinaryFromAssetsToData fileNameFromAssets " + screenFileName + " => " + filesDirectory + " filename " + out_screenFileName);
File myFile = new File(filesDirectory, out_screenFileName);
// if (myFile.exists()) {
// return true;
// }
final FileOutputStream os = new FileOutputStream(myFile);
byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
int n;
while(EOF != (n = is.read(buffer))) {
os.write(buffer, 0, n);
}
os.close();
is.close();
File ffmpegFile = new File(filesDirectory, out_screenFileName);
if(!ffmpegFile.canExecute()) {
Log.i(TAG, "FFmpeg File is not executable, trying to make it executable ...");
if (ffmpegFile.setExecutable(true)) {
return true;
} else {
Log.w(TAG, "make excute failed");
}
} else {
Log.i(TAG, "FFmpeg file is executable");
return true;
}
} catch (IOException e) {
Log.e(TAG, "issue in coping binary from assets to data. ", e);
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createSubDirData() {\n\t\tFile f = new File(getPFDataPath());\n\t\tf.mkdirs();\n\t}",
"@Override\n\tpublic void generateDirectories() {\n\t\tFile file = new File(\"Data/My Contacts/\");\n\n\t\tif (!file.exists()) {\n\t\t\tfile.mkdirs();\n\t\t}\n\t}",
"public void createDirectory() {\r\n\t\tpath = e... | [
"0.73795736",
"0.70173377",
"0.6826162",
"0.68111926",
"0.6790826",
"0.66483355",
"0.66112024",
"0.65672046",
"0.63694054",
"0.6327092",
"0.63111246",
"0.6241537",
"0.62343276",
"0.6190158",
"0.6188169",
"0.6128439",
"0.6068746",
"0.6057703",
"0.6038161",
"0.6037969",
"0.6028... | 0.0 | -1 |
/ public static final String learn = "learn"; public static final String discern = "discern"; public static final String listdiscern = "listdiscern"; public static final String listcatfeats = "listcatfeats"; public static final String listfeatcats = "listfeatcats"; public static final String listcatdoms = "listcatdoms"; public static final String listcatcats = "listcatcats"; public static final String listcats = "listcats"; public static final String listdomcats = "listdomcats"; public static final String listcatcatsback = "listcatcatsback"; | public Handler(AdmServer server)
{
m_authServer = server;
/*
TextCat.setServer(serv); //refer to static/singleton!!!
CatIns.m_columnId = -1;
CatIns.m_columnDesc = 0;
CatIns.m_columnTags = 1;
CatIns.m_columnTaxo = -1;
CatIns.m_columnVendor = -1;
*/
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface SilentLocations {\n public static final String BANK = \"bank\";\n public static final String CHURCH = \"church\";\n public static final String DENTIST = \"dentist\";\n public static final String DOCTOR = \"doctor\";\n public static final String EMBASSY = \"embassy\";\n public sta... | [
"0.60783",
"0.58108115",
"0.5772035",
"0.56084377",
"0.5599739",
"0.55817866",
"0.5561218",
"0.5557771",
"0.55535215",
"0.54645455",
"0.5453062",
"0.54115164",
"0.53852606",
"0.5377369",
"0.53498316",
"0.5336587",
"0.5335764",
"0.53255194",
"0.5308462",
"0.53014374",
"0.52854... | 0.0 | -1 |
Function to check if tree is empty | public boolean isEmpty()
{
return root == nil;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isEmpty() \n\t{\n\t\treturn root == null;//if root is null, tree is empty\n\t}",
"private boolean isEmpty()\r\n\t{\r\n\t\treturn getRoot() == null;\r\n\t}",
"public boolean empty() {\r\n\t\t return(this.root == null);\r\n\t }",
"public boolean isEmpty()\r\n {\r\n return root == n... | [
"0.83198273",
"0.8237203",
"0.81786364",
"0.8108458",
"0.79698443",
"0.7969313",
"0.7967374",
"0.79555726",
"0.7928932",
"0.7899255",
"0.78970575",
"0.789259",
"0.789259",
"0.78867567",
"0.78801435",
"0.7877804",
"0.78561217",
"0.78181463",
"0.78113353",
"0.7795594",
"0.77929... | 0.7834298 | 18 |
Functions to insert data | public void insert(int X, int WT)
{
root = insert(X, WT, root);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void insert()\n\t{\n\t}",
"int insert(FunctionInfo record);",
"public int insertSensorData(DataValue dataVal) throws Exception;",
"int insert(Massage record);",
"public abstract void insert(DataAction data, DataRequest source) throws ConnectorOperationException;",
"int insert(Assist_table record);... | [
"0.71657753",
"0.7044319",
"0.69928414",
"0.6851794",
"0.68398464",
"0.68283",
"0.6812804",
"0.6806562",
"0.68010694",
"0.6797826",
"0.6791706",
"0.6785111",
"0.6761925",
"0.67538655",
"0.6733067",
"0.6731605",
"0.67293185",
"0.67291236",
"0.6695995",
"0.66875654",
"0.666946"... | 0.0 | -1 |
Functions to count number of nodes | public int countNodes()
{
return countNodes(root);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getNodeCount();",
"int getNodeCount();",
"int nodeCount();",
"int getNodesCount();",
"int getNodesCount();",
"public int my_node_count();",
"int totalNumberOfNodes();",
"public int countNodes() {\r\n \r\n // call the private countNodes method with root\r\n return countNodes(r... | [
"0.89822114",
"0.89822114",
"0.8966359",
"0.89478445",
"0.89478445",
"0.86855423",
"0.85026675",
"0.83092654",
"0.8208818",
"0.8173925",
"0.792518",
"0.7922496",
"0.7906246",
"0.78758115",
"0.78559846",
"0.78437847",
"0.7834029",
"0.78130364",
"0.77527875",
"0.7748805",
"0.77... | 0.7805994 | 19 |
Functions to search for an element | public boolean search(int val)
{
return search(root, val);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\npublic void findElement(String by) {\n\t\n}",
"public T find(T element);",
"public boolean search(T element);",
"private void searchFunction() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void findElement() {\n\t\t\r\n\t}",
"void search();",
"void search();",
"public DLLNode<String> search(Stri... | [
"0.74293464",
"0.7391848",
"0.72342134",
"0.69165564",
"0.68654144",
"0.6769204",
"0.6769204",
"0.6762481",
"0.67583036",
"0.67583036",
"0.67583036",
"0.67583036",
"0.67583036",
"0.67583036",
"0.67583036",
"0.67583036",
"0.67583036",
"0.67583036",
"0.67583036",
"0.67583036",
... | 0.0 | -1 |
Function for inorder traversal | public void inorder()
{
inorder(root);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void inOrderTraverseRecursive();",
"public void inorder()\n {\n inorderRec(root);\n }",
"private void inorder() {\r\n\t\t\tinorder(root);\r\n\t\t}",
"public void inorder()\r\n {\r\n inorder(root);\r\n }",
"private void inorder() {\n inorder(root);\n }",... | [
"0.8267493",
"0.78484046",
"0.7775723",
"0.77728194",
"0.774613",
"0.7675952",
"0.7648642",
"0.764093",
"0.7638836",
"0.76184535",
"0.7537287",
"0.7536299",
"0.7494792",
"0.74275744",
"0.7391457",
"0.729878",
"0.7288098",
"0.72854364",
"0.72472006",
"0.7238553",
"0.7208567",
... | 0.7677443 | 5 |
Function for preorder traversal | public void preorder()
{
preorder(root);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic List<Node<T>> getPreOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// La lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPre(raiz, lista);\r\n\t}",
"public void preorder()\r\n {\r\n preorder(root);\r\n }",
... | [
"0.8300326",
"0.81799924",
"0.80407786",
"0.7747467",
"0.77025676",
"0.76711196",
"0.7634021",
"0.76022315",
"0.75456816",
"0.7434278",
"0.7424642",
"0.7400486",
"0.73730904",
"0.7358609",
"0.7321951",
"0.73190707",
"0.7310969",
"0.7309923",
"0.7291791",
"0.72841775",
"0.7273... | 0.7953244 | 3 |
Function for postorder traversal | public void postorder()
{
postorder(root);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic List<Node<T>> getPostOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPost(raiz, lista);\r\n\t}",
"public void postOrderTraversal(){\n System.out.println(\"postOrderTr... | [
"0.8034767",
"0.77563256",
"0.7638848",
"0.7603065",
"0.7430227",
"0.7401398",
"0.73751676",
"0.7294653",
"0.71603554",
"0.71484214",
"0.7108848",
"0.7067484",
"0.70457953",
"0.70294",
"0.70065504",
"0.69921714",
"0.6974496",
"0.6954269",
"0.6938933",
"0.6938216",
"0.6922313"... | 0.7441108 | 4 |
Created by Lukas Dylan Adisurya on 17/02/2018. If you had any question about this project, you can contact me via email | public interface APIService {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protec... | [
"0.56356835",
"0.53377044",
"0.53377044",
"0.53377044",
"0.53377044",
"0.53377044",
"0.53377044",
"0.533651",
"0.5311894",
"0.5292344",
"0.52725476",
"0.5223911",
"0.5184957",
"0.51848066",
"0.51628464",
"0.51543856",
"0.51407236",
"0.5137392",
"0.51370263",
"0.5134957",
"0.5... | 0.0 | -1 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof Area)) {
return false;
}
Area other = (Area) object;
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void se... | [
"0.6896886",
"0.6838461",
"0.67056817",
"0.66419715",
"0.66419715",
"0.6592331",
"0.6579151",
"0.6579151",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.65624106",
"0.65624106",
"0.65441847",
"0.65243006",
"0.65154546",
"0.6487427",
"0.64778... | 0.0 | -1 |
Default constructor. Loads the passed source Shapes model and an initial target Shapes model as member variables. | public ShapesRule6(String sourceShapesPath, String targetShapesPath) {
loadShapesModel(sourceShapesPath);
initializeShapesModel();
this.targetURI = URI.createURI(targetShapesPath);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initializeShapesModel() {\n\t\t// Initialize the model\n\t\tShapesPackage.eINSTANCE.eClass();\n\t\tShapesPackage.eINSTANCE.setNsURI(METAMODEL_PATH_SHAPES);\n\n\t\t// Retrieve the default factory singleton\n\t\tfactory = ShapesFactory.eINSTANCE;\n\n\t\t// Create the content of the model via this progra... | [
"0.64766383",
"0.6010131",
"0.5944773",
"0.59106225",
"0.5862607",
"0.5749537",
"0.56661344",
"0.5619939",
"0.56077975",
"0.5540293",
"0.5490369",
"0.54537135",
"0.5434417",
"0.5385313",
"0.533546",
"0.5319963",
"0.53099394",
"0.52839696",
"0.527933",
"0.52689296",
"0.5264379... | 0.583043 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.