query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Returns the todos before and after the current todo in the ordered set where todoBooleanStat = &63;. | public Todo[] findByTodoBooleanStat_PrevAndNext(
long todoId, boolean todoBooleanStat,
com.liferay.portal.kernel.util.OrderByComparator<Todo>
orderByComparator)
throws NoSuchTodoException; | [
"public java.util.List<Todo> findByTodoBooleanStat(\n\t\tboolean todoBooleanStat, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByTodoBooleanStat(\n\t\tboolean todoBooleanStat, int start, int end);",
"public Todo[] f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Original (uninstrumented) GraphDef (if available). bytes original_graph_def = 4; | public com.google.protobuf.ByteString getOriginalGraphDef() {
return originalGraphDef_;
} | [
"public com.google.protobuf.ByteString getOriginalGraphDef() {\n return originalGraphDef_;\n }",
"public Builder clearOriginalGraphDef() {\n \n originalGraphDef_ = getDefaultInstance().getOriginalGraphDef();\n onChanged();\n return this;\n }",
"public Builder setOriginalGraphDef(c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
True if has "whenPrepared" element | public boolean isSetWhenPrepared()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(WHENPREPARED$10) != 0;
}
} | [
"public boolean isPrepared() {\n return prepared;\n }",
"boolean isPrepared() {\n return prepareCommit != null;\n }",
"public boolean hasPreparedXact();",
"boolean hasPrepareConjureTime();",
"boolean getCachePreparedQuery();",
"boolean isPoolPreparedStatements();",
"protected... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Disables editing of all cells in the table. | public void disableEditing() {
this.table.setEnabled(false);
if (!LayoutMode.VECTOR.equals(this.layoutMode) || !LayoutMode.DISPLAY.equals(this.layoutMode)) {
this.addRowButton.setEnabled(false);
this.removeRowButton.setEnabled(false);
}
} | [
"private void disableInlineTableEditing()\n {\n if (getTextArea().isEnabled()) {\n getTextArea().getDocument().execCommand(\"enableInlineTableEditing\", \"false\");\n }\n }",
"private void disabledEditTable(JTable table) {\n DefaultTableModel tableModel = new DefaultTableMode... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
initializeEditTexts Initializes all text fields. | private void initializeEditTexts(){
//Title text field.
fN_EditText = (EditText)findViewById(R.id.fNDesignerContractor);
//Title text field.
lN_EditText = (EditText)findViewById(R.id.lNDesignerContractor);
//Conditioned Floor Area text field.
address_EditText = (EditText)findViewById(R.id.addressDesignerCon... | [
"private void initializeEditText(){\n //get editText component\n mEdtName = (EditText)mLayout.findViewById(R.id.routineDetail_edtName);\n\n //set routine name\n mEdtName.setText(mRoutineDetailItem.routineName);\n }",
"public void setupEditFields() {\n TextInputLayout til;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end getAction() Get an action according to egreedy. The greedy action is chosen with probability 1e. The other actions get equal probability. | public boolean[] eGreedyAction()
{
// initialize variables
Random generator = new Random();
// find best action
List<boolean[]> validActions = getValidActions();
// initiate values for comparison
StateActionPair sap = new StateActionPair(state, validActions.get(0));
boolean[] bestAction = sap.actio... | [
"private int selectAction(int[] state) {\r\n\r\n int action;\r\n\r\n // Epsilon case: explore\r\n if (Math.random() < epsilon) \r\n // System.out.println( \"Exploring ...\" );\r\n action = (int) (Math.random() * nActions);\r\n // Greedy case: take best action\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Blocks with no items Registers a block with the block registry | public <B extends Block> RegistryObject<B> registerNoItem(String name, Supplier<? extends B> block) {
return register.register(name, block);
} | [
"private static Block registerBlockWithoutItem(String MODID, String name, Block b){\n return Registry.register(Registry.BLOCK, MODID+\":\"+name, b);\n }",
"public static void registerBlocks()\n {\n // exampleOre = new BlockOreExample();\n // GameRegistry.registerBlock(exampleOre, \"BlockOreE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add an item at index. | public void add(int index, E item) {
listIterator(index).add(item);
} | [
"public int add(int index, Path item) {\n // Gracefully handle items beyond end\n final int size = mItems.size();\n index = constrain(index, 0, size);\n\n mItems.add(index, item);\n return index;\n }",
"public void add(final int item, final int index) {\t\t\n\t\tif(index > co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Check the shrimpMouseEvent and react accordingly Checks the validity of the given ShrimpMouseEvent | private boolean handleAnyMouseEvent(ShrimpMouseEvent e){
// allow either mouse click
if (!e.isLeftMouseButton() && !e.isRightMouseButton()) {
return false;
}
try {
displayBean = (DisplayBean) tool.getBean(ShrimpTool.DISPLAY_BEAN);
selectorBean = (SelectorBean) tool.getBean(ShrimpTool.SELECTOR... | [
"public boolean acceptsMouse() \n{\n // If hover shape, return false\n if(RMShapeUtils.getHoverShape()==this) return false;\n \n // Return true if there is a URL, Hover or MouseListener\n return getURL()!=null || getHover()!=null || getListenerCount(RMShapeMouseListener.class)>0;\n}",
"private void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the weekLow value for this Account. | public java.lang.String getWeekLow() {
return weekLow;
} | [
"public void setWeekLow(java.lang.String weekLow) {\n this.weekLow = weekLow;\n }",
"public java.lang.String getTodayLow() {\n return todayLow;\n }",
"public Integer getWeek() {\r\n return week;\r\n }",
"public Integer getWeek() {\n return week;\n }",
"public int getL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Allows us to set the number of jobs that will be in our JobList. | public void setJobCount(int count){
jobCount = count;
initializeJobs();
} | [
"public void setNumJobs(int numJobs) {\n this.numJobs = numJobs;\n }",
"public void setJobCount(String jobCount) {\r\n this.jobCount = jobCount;\r\n }",
"public void setListSize(int value) {\n this.listSize = value;\n }",
"void setNoOfBuckets(int noOfBuckets);",
"public int get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
creates a new journal with the given name | public void createJournal(String journalName) throws SQLException {
String query = "INSERT INTO journals(name) VALUES(?)";
try (Connection connection = getConnection();
PreparedStatement stmt = connection.prepareStatement(query)) {
stmt.setString(1, journalName);
... | [
"public Journal(int idJour, String nameJour)\r\n\t {\r\n\t\t this.idJour = idJour;\r\n\t\t this.nameJour = nameJour;\r\n\t }",
"public Journal(String name, String text, String date, String time)\n {\n this.name = name;\n this.text = text;\n this.date = date;\n this.time = time... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Validation Functions Description : To validate the Address Line 1 of Billing Address in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:02 Dec 2016 Modified By:Rajan Parameter:AddressLine1 | public void validate_the_Address_Line_1_of_Billing_Address_in_Customer_Tab(String AddressLine1)throws Exception {
Report.fnReportPageBreak("Billing Address", driver);
System.out.println(AddressLine1);
VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_BillingAddress.replaceAll("M_Header", "Billing Address").... | [
"public void validate_the_Address_Line_1_of_Installation_Address_in_Customer_Tab(String AddressLine1)throws Exception {\n\t\tReport.fnReportPageBreak(\"Instalation Address\", driver);\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_InstallationAddress.replaceAll(\"M_Header\", \"Installation Address\").... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves an array of group names for the player excluding any 'default' groups. | @Override
public String [] getGroupsPure(String playerName)
{
return getGroups(playerName);
} | [
"@Override\r\n \tpublic String[] getGroups(String playerName)\r\n \t{\r\n \t\tOverloadedWorldHolder worldHolder = groupManager.getWorldsHolder().getWorldDataByPlayerName(playerName);\r\n \r\n \t\tif (worldHolder == null)\r\n \t\t{\r\n\t\t\treturn null;\r\n }\r\n \r\n \t\tUser user = worldHolder.getUser(playerNa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests the to list function of a deck | public static boolean Test_Deck_ToList()
{
Deck deck = new Deck();
deck.addCard(new Card(Rank.two, Suit.Diamonds));
deck.addCard(new Card(Rank.three, Suit.Diamonds));
deck.addCard(new Card(Rank.Jack, Suit.Clubs));
deck.addCard(new Card(Rank.King, Suit.Spades));
deck.addCard(new Card(Rank.King, Suit.Hearts)... | [
"@Test\n\tpublic void testCardsReadProperly() {\n\t\tArrayList<Card> test = board.getTestDeck();\n\t\tAssert.assertTrue(test.get(0).getCardType() == type.WEAPON);\n\t\tAssert.assertTrue(test.get(0).getContent().equalsIgnoreCase(\"Plasma Cannon\"));\n\t\t\n\t\tAssert.assertTrue(test.get(5).getCardType() == type.WEAP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new TestCallException with the specified detail message and the given root cause. | public TestCallException(String msg, Throwable cause) {
super(msg, cause);
} | [
"public TestCallException(String msg) {\n super(msg);\n }",
"@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handles toggling the state of this columns sort value and updates the sorting on the rest of the columns. For example, if this column is set to sort ascending, the sort is set t | public void toggleSort(@NonNull final List<Column> allColumns) {
ColumnSort local = getSort();
boolean clearOthers = false;
// Toggle sort
switch (local) {
case SORT_DOWN:
local = ColumnSort.UNSORTED;
break;
case SORT_UP:
local = ColumnSort.SORT_DOWN;
clearOther... | [
"public void setSort(boolean value) {\n this.sort = value;\n }",
"public abstract void toggleSortOrder(int column);",
"private void updateSorting()\n\t{\n\t\t// Set the direction icon\n\t\tthis.btnSortingDirection.setSortingDirection( this.sortingDirection );\n\n\t\t// ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns whether the direction is descending. | public boolean isDescending() {
return this.equals(DESC);
} | [
"public void descending(String direction){\n if(direction != null && direction.trim().equalsIgnoreCase(\"true\")){\n ascending = false;\n logger.debug(\"descending = true\");\n }\n else{\n ascending = true;\n }\n }",
"public boolean isSortedDescending() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Container's getter for EmpManagerFkLink1. | public ViewLinkImpl getEmpManagerFkLink1() {
return (ViewLinkImpl)findViewLink("EmpManagerFkLink1");
} | [
"public ViewLinkImpl getEmpManagerFkLink1() {\r\n return (ViewLinkImpl)findViewLink(\"EmpManagerFkLink1\");\r\n }",
"public ViewLinkImpl getEmpManagerFkLink1() {\n return (ViewLinkImpl) findViewLink(\"EmpManagerFkLink1\");\n }",
"public ViewLinkImpl getDeptMgrFkLink1() {\n return (ViewLinkI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets (as xml) the "DigestValue" element | public org.w3.x2000.x09.xmldsig.DigestValueType xgetDigestValue()
{
synchronized (monitor())
{
check_orphaned();
org.w3.x2000.x09.xmldsig.DigestValueType target = null;
target = (org.w3.x2000.x09.xmldsig.DigestValueType)get_store().find_element_user(DIGESTVA... | [
"public byte[] getDigestValue()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DIGESTVALUE$0, 0);\r\n if (target... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method will check Read permission on the file name passed. Following 5 tests will be performed: Null or Blank Check if file exists Check if file has valid name, must end with extensionName, this test wont be executed if extension name is null Check if it is a directory Check for read permission | public static void checkReadFilePermission(String pathOfFile, String extensionName) throws IllegalArgumentException{
File templateFile = null;
try{
templateFile = new File(pathOfFile);
/*
* Check for null and blank
*/
if(pathOfFile == null || "".equalsIgnoreCase(pathOfFile)){
log... | [
"public void checkFile() {\n\t\tFile file = new File(\"src/Project11Problem1Alternative/names.txt\");\n\t\tSystem.out.println(file.exists() ? \"Exists!\" : \"Doesn't exist!\");\n\t\tSystem.out.println(file.canRead() ? \"Can read!\" : \"Can't read!\");\n\t\tSystem.out.println(file.canWrite() ? \"Can write!\" : \"Can... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor that makes a Packet from a BoardModel | public PacketBoardModel(BoardModel boardModel) {
this.boardName = boardModel.identifier();
this.canvas = boardModel.canvas();
this.users = boardModel.users();
this.owner = boardModel.getOwner();
} | [
"public Packet() {\n\t}",
"public Packet() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}",
"public Packet(PacketType packetType) {\r\n type = packetType;\r\n }",
"public abstract DatagramPacket buildPacket();",
"public PlayerPacket() {\n\n\t}",
"public Packet createPacket() {\n\t\tretu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__ActivityFinalNode__Group_3__3" $ANTLR start "rule__ActivityFinalNode__Group_3__3__Impl" InternalActivityDiagram.g:3594:1: rule__ActivityFinalNode__Group_3__3__Impl : ( ( rule__ActivityFinalNode__Group_3_3__0 ) ) ; | public final void rule__ActivityFinalNode__Group_3__3__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalActivityDiagram.g:3598:1: ( ( ( rule__ActivityFinalNode__Group_3_3__0 )* ) )
// InternalActivityDiagram.g:3599:1: ( ( rule... | [
"public final void rule__ActivityFinalNode__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalActivityDiagram.g:3470:1: ( ( ( rule__ActivityFinalNode__Group_3__0 ) ) )\n // InternalActivityDiagram.g:3471:1: ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Computes the modular 'inversion' of a given unsigned value. It is the inverse operation for modular multiplication. That is, if both unsignedA and unsignedMax are nonzero and gcd(unsignedA, unsignedMax + 1) == 1 then mulMod(result, unsignedA, unsignedMax) is 1. The result of modular inversion is in the range from 1 to ... | public static final int inverseMod(int unsignedA, int unsignedMax)
{
int unsignedB, unsignedRes = 1;
if (unsignedA < 0)
{
if (++unsignedMax > 0 && (unsignedA = (((unsignedA >>> 1) %
unsignedMax) << 1) | unsignedA & 1) < 0 ||
unsignedA >= unsignedMax)
unsignedA -= unsignedMax;
}
else if ... | [
"public static final int mulMod(int unsignedA, int unsignedB,\n int unsignedMax)\n {\n int unsignedRes = 0;\n if (unsignedA != 0 && unsignedB != 0)\n {\n unsignedRes = unsignedA * unsignedB;\n if (++unsignedMax != 0)\n unsignedRes = remLow(mulHigh(unsignedA, unsignedB),\n unsignedRes, unsigned... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Loads all the robot data files saved on the harddrive, and creates a list of robot object with those datas. | public static ArrayList<Robot> loadRobots() {
ArrayList<Robot> res = new ArrayList<Robot>();
for (RobotData d : RobotData.loadData()) {
res.add(new Robot(d));
}
return res;
} | [
"public void loadData() {\n try {\n file = new File(path);\n if (file.getParentFile() != null) {\n file.getParentFile().mkdirs();\n }\n file.createNewFile();\n System.out.println(\"Tasks loaded from local successfully!\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Commands robot to move forward by given amount. | public void moveForward(int amount) {
if(direction==1) {
Y += amount;
} else if (direction==2) {
X += amount;
} else if (direction==3) {
Y -= amount;
} else if (direction==4) {
X -= amount;
}
} | [
"private long moveOn(int amount) {\n\t\t\tthis.position += amount;\n\t\t\treturn amount;\n\t\t}",
"public TurtleRobot forward(int steps)\n {\n if (isReleased)\n return this;\n if (tp != null)\n tp.println(id + \"forward(\" + steps + \")\");\n gear.moveTo(Tools.round(stepFactor * steps));\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
(Highcharts, Highstock, Highmaps) The background color or gradient for the plot area. | @JSProperty("plotBackgroundColor")
void setPlotBackgroundColor(GradientColorObject value); | [
"public String getPlotBgColor() {\n\t\treturn plotBgColor;\n\t}",
"public Color getGraphBackground() {\r\n \t\treturn graph.getBackground();\r\n \t}",
"public Color getBackground();",
"public ColorModel getGeneralContainerBackground();",
"Color getBackground();",
"@JSProperty(\"plotBackgroundColor\")\n @... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
find the file on the include path | private static File findFile(String fname, List<String> include_path) {
for (String path : include_path) {
final String full = path + "/" + fname;
File f = new File(full);
if (f.exists()) {
return f;
}
}
return null;
} | [
"public IAstSourceFile findIncludeFile(String string);",
"public IAstSourceFile findIncludeFile(ISourceFile file);",
"CharStream findFile(String name) throws IOException,\n IncludeFileNotFound {\n // Look in the directory containing the source file ...\n String dir = \".\"; // default v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Defines that the specified reasoner shall be used. Note that this method only defines a hint. In case of automated selection of reasoners, this class may ignore the specified information. Please note that this method stores the selected reasoner just within the reasoner frontend and does not persist this selection. | public void setReasonerHint(ReasonerDescriptor descriptor) {
reasonerHint = findReasoner(descriptor);
} | [
"public ReasonerDescriptor getReasonerHint() {\r\n ReasonerDescriptor result = null;\r\n if (null != reasonerHint) {\r\n result = reasonerHint.getDescriptor();\r\n }\r\n return result;\r\n }",
"public OWLReasoner getReasoner() {\n\t\treturn reasoner;\n\t}",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: make VGet respect download file name, not using their own DownloadConfig config = new DownloadConfig(option.getUrl(), getDownloadDestinationFilename(formats)); TODO: this is wrong, in this way YouTube video urls get newly extracted and always the best option is downloaded, but that's how VGet currently works > re... | protected void downloadFile(ContentExtractOption option, final AvailableFormat format, final AvailableFormats formats, final ExtractContentActionResultListener listener) {
DownloadConfig config = new DownloadConfig(formats.getUrl(), getDownloadDestinationFolder(formats, format));
downloader.downloadAsync(confi... | [
"public String getDownloadUrl() { return this.downloadUrl; }",
"java.lang.String getUrlDownload();",
"String getPlaylistDownloadUrl();",
"public String getDownloadLink() {\r\n\t\tString site = MySoup.getSite();\r\n\t\tString authKey = MySoup.getAuthKey();\r\n\t\tString passKey = MySoup.getPassKey();\r\n\t\tSt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new Light Sensor using the specified port. | public LightSensorEvaluation(SensorPort port) {
this( port, EWMA_ALPHA, MIDDLE_LIGHT_VALUE );
} | [
"public ColorSensor(LegoPort port) throws EV3LibraryException {\n\t\tsuper(port);\n\t\tif (!DRIVER_NAME.equals(this.getDriverName())){\n\t\t\tthrow new InvalidSensorException(\"The specified device is not a color sensor.\");\n\t\t}\n\t\tport.getAddress();\n\t}",
"public LightRing(int portNum) {\n this.rela... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / Misc / Is this the declaration of a class? Note that an Enum is not considered a Class in this case. | default boolean isClass() {
return false;
} | [
"boolean isClass();",
"public static boolean isClass(IdentifiedObject io) {\n\t\tif (io.getType() == null) {\n\t\t\t// instances can have dangling type\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn io.getType().equals(OBOClass.OBO_CLASS);\n\t\t}\n\t}",
"private boolean Restricted_class(AST.class_ name)\n\t{\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set up the element header associated with the properties. | public void setElementHeader(ElementHeader elementHeader)
{
this.elementHeader = elementHeader;
} | [
"@Override\n\tpublic void setUpHeader() {\n\t\tsuper.setUpHeader();\n\t\theader.setId(CLASS_ID+\"-header\");\n\t\theader.setAlignment(Pos.CENTER_LEFT);\n\t}",
"@Override\n public void setElementHeader(ElementHeader elementHeader)\n {\n this.elementHeader = elementHeader;\n }",
"private void setH... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes the sensor to use the given address | public void changeAddress( I2cAddr address ) {
this.address = address;
if( sensorReader != null ) sensorReader.disengage( );
sensorReader = new I2cDeviceSynchImpl( sensorDevice, address, false );
sensorReader.engage( );
} | [
"public void setAddress(String address) {\r\n this.address = address; // set the address\r\n }",
"public void updateAddress(Address address);",
"public void setExternalAddress(String address);",
"public void setInternalAddress(String address);",
"public void setAddress(Address address) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deserializes an object with the given class to an object from the given XML string representation using the given deserializer. | @SuppressWarnings("unchecked")
public static <T> T deserializeFromXML(Class<T> clazz, String xml, XStream deserializer) {
try {
return (T) deserializer.fromXML(xml);
} catch (XStreamException e) {
PikaterDBLogger.logThrowable(String.format("Could not deserialize the following XML to the '%s' class.", clazz.g... | [
"public static <T> T deserialize(String witsml, Class witsmlClass) throws JAXBException {\n StringReader witsmlReader = new StringReader(witsml);\n JAXBContext jaxbContext = JAXBContext.newInstance(witsmlClass);\n Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\n // T... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Swap start characters with end characters I.E: swapCharacter("abcde") = "edcba" | public static String swapCharacters(String arg) {
char[] charArg = arg.toCharArray();
int len = charArg.length;
int n = len / 2;
for (int i=0; i < n; i++) {
char swap = charArg[i];
charArg[i] = charArg[len - i - 1];
charArg[len - i - 1] = swap;
... | [
"private static String swapChars(String str, int i, int j)\n {\n if (i == j)\n return str;\n\n char temp;\n char[] charArray = str.toCharArray();\n temp = charArray[i] ;\n charArray[i] = charArray[j];\n charArray[j] = temp;\n return String.valueOf(charA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete all sessions providing a list of event ids. | @Override
public void deleteAllSessionsByEventIds(@NotNull Set<@UUID String> eventIds) {
String eventIdsStr = Arrays.toString(eventIds.toArray());
logger.info("Delete all sessions for event with ids {}.", eventIdsStr);
// Cache key
String cacheKey = String.format(SESSION_BASE_CACHE... | [
"@Override\n public void deleteAllSessionsByEventId(@UUID String eventId) {\n logger.info(\"Delete all sessions for event with id {}.\", eventId);\n\n // Cache key\n String cacheKey = String.format(SESSION_BASE_CACHE_KEY_TPL, eventId);\n logger.debug(\"Session generated pattern cache ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TAB GETTERS Tab taDataTab; Tab recitationDataTab; Tab scheduleDataTab; Tab projectDataTab; Tab courseDetailsTab; | public Tab getDataTab(){
return taDataTab;
} | [
"public String getTab() {\r\n return tab;\r\n }",
"TabCommandType openDetailsTab(TabData tabData);",
"public void retrieveTabList(){\n mTabList = dao.getAllLiveTab();\n }",
"public Object getTab(){\n \t\treturn this.tabComponent;\n \t}",
"private ArrayList<Tab> getTabs() {\n ArrayList... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Given a query string, returns the terms one at a time with stopwords removed and the terms stemmed using the Krovetz stemmer. Use this method to process raw query terms. | static String[] tokenizeQuery(String query) throws IOException {
TokenStreamComponents comp = analyzer.createComponents("dummy", new StringReader(query));
TokenStream tokenStream = comp.getTokenStream();
CharTermAttribute charTermAttribute = tokenStream.addAttribute(CharTermAttribute.class);
tok... | [
"private List<String> tokenize(String query) throws IOException {\n List<String> terms = new ArrayList<>();\n String[] rawQueryTerms = query.split(\"\\\\s+\");\n for (String rawQueryTerm : rawQueryTerms) {\n String[] tokens = QryParser.tokenizeString(rawQueryTerm);\n for (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ArrayAdapter oilList = ArrayAdapter.createFromResource(this, R.array.oil_array, R.layout.custom_spinner_tv2); ArrayAdapter moneyPayType = ArrayAdapter.createFromResource(this, R.array.money_pay_array, R.layout.support_simple_spinner_dropdown_item); | private void mySetSpinner() {
ArrayAdapter<CharSequence> moneyPayType = ArrayAdapter.createFromResource(this, R.array.money_pay_array, R.layout.custom_spinner_tv2);
//spinnerOil.setAdapter(oilList);
spinnerPayMentType.setAdapter(moneyPayType);
CustomSpinnerAdapter customSpinnerAdapter... | [
"void loadSpinner(Spinner sp){\n List<String> spinnerArray = new ArrayList<>();\n spinnerArray.add(\"Oui\");\n spinnerArray.add(\"Non\");\n\n// (3) create an adapter from the list\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(\n this,\n android.R... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get list of all methods whith specified AnnotationClass from Methods Array | static List<Method> getAnnotatedMethodsList(Class<? extends Annotation> annotationClassName, Method[] methods) {
List<Method> annotatedMethodsList = new ArrayList<>();
for (Method method : methods) {
if (method.isAnnotationPresent(annotationClassName)) {
annotatedMethodsList... | [
"private void readMethodsAnnotations() {\n Method[] methods = clazz.getDeclaredMethods();\n for (Method method : methods) {\n Annotation[] annotations = method.getDeclaredAnnotations();\n for (Annotation a : annotations) {\n Class<? extends Annotation> aType = a.an... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests if the specified remoteDevice is contained within this list. | public boolean contains(RemoteDevice remoteDevice)
{
return _internalList.contains(remoteDevice);
} | [
"int rs2_device_list_contains(PointerByReference info_list, PointerByReference device, PointerByReference error);",
"public boolean isThereDevice(MobileDevice md) {\n boolean found;\n //TODO\n found = devices.contains(md);\n if(found == true){\n System.out.println(\"There is a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'var127' field. | public java.lang.Integer getVar127() {
return var127;
} | [
"public java.lang.Integer getVar127() {\n return var127;\n }",
"public java.lang.CharSequence getField127() {\n return field127;\n }",
"public java.lang.CharSequence getField127() {\n return field127;\n }",
"public java.lang.CharSequence getVar126() {\n return var126;\n }",
"public java.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the session tracking modes. | void setSessionTrackingModes(Set<SessionTrackingMode> sessionTrackingModes); | [
"void setSession(mode m);",
"protected final void setCapabilities(int caps) {\n \tm_sessCaps = caps;\n }",
"void setMode(int mode);",
"public void setMode(int mode);",
"void setMode(Mode mode);",
"void tunnelSetMode(TunnelMode mode);",
"private void setSessionAttributes() {\n\n\t}",
"void setUserMod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the total word count | public int getTotalWordCount() {
return total;
} | [
"int getWordCount();",
"int getNumberOfWords();",
"public int getWordCount() {\n \n\t\t\n\t\t\nint count=0;\n\t\tfor (Integer value:vocabulary.values()) {\n\t\t\tcount+=value;\n\t\t\t//System.out.println(\"Word: \" + c + \"\\tCounts: \" + c.getValue());\n\t\t//System.out.println(count);\t\t\t\n\t\t}\n\t\tre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sends joystick to move() | @Override
protected void execute()
{
move(Robot.oi.mechJoystick);
} | [
"public static void joyMove() {\n\t\trobotDrive.arcadeDrive(joyStick.getY(), -joyStick.getZ());\n\t}",
"public void Robotmoving(){\n\t\t\n\t\tif (distance <= 0) {\n\t\t\tif (!commands.isEmpty()){\n\t\t\t\tInteger[] nextCommand = commands.remove();\n\t\t\t\tcommand = nextCommand[0];\n\t\t\t\tdistance = nextCommand... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Precondition: IQ is initialized and an int argument is given Postcondition: sets the IQ field as the parameter | public void setIQ(int IQ) {
this.IQ = IQ;
} | [
"public int getIQ() {\n return IQ;\n }",
"public void setQ(java.lang.Integer value) {\n this.q = value;\n }",
"public void setQ(int q) {\n this.q = q;\n }",
"public void setqNo(Integer qNo) {\n this.qNo = qNo;\n }",
"public void setQuestionID(int i)\n {\n if (i == -1)\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Lista de componentes que se deben excluir de las validaciona automaticas | private void excluirValidaciones() {
listaExclusionComponentes.add(getPnlSms().getTxtMensajeTexto());
} | [
"private Collection getFieldsValidationList ()\n\t{\n\t\tArrayList list = new ArrayList();\n\t\tModel model = getModel();\n\t\tString className = getClassName();\n\t\tPersistenceClassElement persistenceClass = \n\t\t\tgetPersistenceClass(className);\n\n\t\tif (persistenceClass != null)\n\t\t{\n\t\t\tPersistenceFiel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets and ungets the service with the given service ID | public void getservice(final int aServiceID) {
final ServiceReference<?>[] svcRefs;
try {
svcRefs = pContext.getServiceReferences((String) null, "("
+ Constants.SERVICE_ID + "=" + aServiceID + ")");
} catch (final InvalidSyntaxException ex) {
System.out.println("Invalid filter: " + ex);
return;
}
... | [
"void unsetServiceId();",
"public ServiceType getService(Session session, ServiceId id) {\n return find(session, id);\n }",
"public Service getService(String id) {\n Service service = catalog.getService(id);\n Assert.notNull(service, \"No service with id '%s' found\", id);\n retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__OpOther__Alternatives_5_1" $ANTLR start "rule__OpOther__Alternatives_6_1" ../org.xtext.mongobeans.ui/srcgen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2570:1: rule__OpOther__Alternatives_6_1 : ( ( ( rule__OpOther__Group_6_1_0__0 ) ) | ( '<' ) ); | public final void rule__OpOther__Alternatives_6_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2574:1: ( ( ( rule__OpOther__Group_6_1_0__0... | [
"public final void rule__OpOther__Alternatives_6_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:2396:1: ( ( ( r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all values of property SectionE as a ReactorResult of java.lang.String | public ReactorResult<java.lang.String> getAllbiboSection_as() {
return Base.getAll_as(this.model, this.getResource(), SECTION, java.lang.String.class);
} | [
"public String getPropertiesForOutput()\n { //declare variable and assign its value\n String allPropertiesAppended = \"\";\n \n /*for loop to go through propertyList data \n and retrieving each element of propertyList \n assigning them to property variable*/\n for(Property property ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Attempts to detect a planter rail from the given anchor and yaw. If a valid rail could not be detected, returns null. | static Rail detect(BlockLocation anchor, BlockFace direction, BlockFace movingRailDirection) {
final Deque<RailBlock> rail = new ArrayDeque<RailBlock>(Planter.maxLength);
if (!add(rail, anchor))
return null;
MovingRail movingRail = null;
BlockLocation lastRailBlock = anchor;... | [
"public Rail getNextRail(Rail previous, Train_Element t) {\n\n // ha nincs alagút, vagy épp vonat van az alagútban, sínként funkcionál\n if (Map.getIsTrainInTunnel() || tunnelRail == null) {\n if (previous == prevRail)\n return nextRail;\n\n // Kilépés az alagútszá... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculate the CollaborativeMatching similarity between two tags in the CollaborativeDatabase. | @SuppressWarnings("unchecked")
public double calculateSimilarity(String tag1, String tag2) {
HashMap<String, ArrayList<HashMap<String, HashSet<String>>>> userMap = db.getUserMap();
double similarity = 0.0;
for(String user : userMap.keySet()){
HashMap<String, HashSet<String>> tagsMap = userMap.get(user... | [
"public void calcMatch() {\n if (leftResult == null || rightResult == null) {\n match_score = 0.0f;\n } else {\n match_score = FaceLockHelper.Similarity(leftResult.getFeature(), rightResult.getFeature(), rightResult.getFeature().length);\n match_score *= 100.0f;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getADCCountsData() reads in adcCounts array from XML data. This method is currently used for LAr, FCAL, HEC and MBTS (TILE has two adcCounts arrays) | protected int[][] getADCCountsData(AHashMap p)
{
int[][] adcCounts = null;
int[] adc = (p.get("adcCounts") != null) ? p.getIntArray("adcCounts") : null;
if(adc != null)
{
adcCounts = new int[numData][0];
// multiple numbers are associated with each cell
... | [
"private static <E> DataCount<E>[] getCountsArray(DataCounter<E> counter) {\n \t\tDataCount<E>[] dataCounts = (DataCount<E>[]) new DataCount[counter.getSize()];\n \t\tSimpleIterator<DataCount<E>> iter = counter.getIterator();\n \t\tfor (int index = 0; iter.hasNext(); index++) {\n \t\t\tdataCounts[index] = iter.next... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This should be overridden in child classes so they can perform any class specific actions when the value changes. Override this in GSlider to change the hotshot poaition. | protected void updateDueToValueChanging(){
} | [
"@Override\n public void onChangeSliderValue(Slider slider) {\n if (slider.equals(rangeSlider))\n this.beamRange = slider.getValueInt();\n\n if (slider.equals(freezeDelaySlider))\n this.freezeDelay = slider.getValueInt();\n\n if (slider.equals(volumeSlider))\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes the state of the listeners. | public void changeState() {
for(ChangeListener l : listeners) {
l.stateChanged(new ChangeEvent(this));
}
} | [
"public abstract void setListeners();",
"private static void informListeners() {\r\n\t\tfor (ATEListener l : listeners) {\r\n\t\t\tl.classListChanged( );\r\n\t\t}\r\n\t}",
"public void setListeners ( Object listeners ) {\r\n\t\tgetStateHelper().put(PropertyKeys.listeners, listeners);\r\n\t\thandleAttribute(\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the reason_code value for this Ftm_type. | public nl.pdekker.nts._3_0.Reason_code_enum getReason_code() {
return reason_code;
} | [
"public byte getReason() {\n return reasonCode;\n }",
"public String getReasonType() {\n return reasonType;\n }",
"public ReasonType getReasonType() {\n return reasonType;\n }",
"public String getFreasoncodeid() {\n return freasoncodeid;\n }",
"public CodeableConceptDt getR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Provides WiFi connectivity state holder that can be observed. | public LiveData<Boolean> connectedToWiFi() {
return connectedToWiFi;
} | [
"public abstract boolean wifiGetStatus();",
"public boolean getWifi()\n {\n return wifi;\n }",
"public PhoneWifiInfo getConnectedWifi() {\n\t\tWifiInfo wifiInfo = wifiManager.getConnectionInfo();\n\t\tList<WifiConfiguration> configurations = wifiManager\n\t\t\t\t.getConfiguredNetworks();\n\t\tif (w... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deletes the specified file(s) from the remote server. Multiple filenames can be included through a commaseparated list. | void deleteRemoteFile(String filename) {
logger.log("deleteRemoteFile called");
String workingDir;
if (filename.contains(",")) {
// Delete multiple files. Parse list of filenames into string array and trim whitespace.
String[] filesToDelete = filename.replaceAll("\\s", "").split(",");
tr... | [
"private void deleteFilesInNasFolder(String remoteDirectory, List<String> files) throws IOException{\n\t\tIterator<String> iterator = files.iterator();\n\t\tDocketFTPClient ftpClient = new DocketFTPClient(docketFtpClient);\n\t\twhile (iterator.hasNext()) {\n\t \t\tString fileName = iterator.next();\n\t \t\tftpC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new asset_id RecordBuilder by copying an existing Builder | public static com.twc.bigdata.views.avro.asset_id.Builder newBuilder(com.twc.bigdata.views.avro.asset_id.Builder other) {
return new com.twc.bigdata.views.avro.asset_id.Builder(other);
} | [
"public static com.twc.bigdata.views.avro.asset_id.Builder newBuilder(com.twc.bigdata.views.avro.asset_id other) {\n return new com.twc.bigdata.views.avro.asset_id.Builder(other);\n }",
"public static com.twc.bigdata.views.avro.asset_id.Builder newBuilder() {\n return new com.twc.bigdata.views.avro.asset_i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
other process may have installed old patch version, if we try to clean patch, we should kill other process first | public void checkAndCleanPatch() {
Tinker tinker = Tinker.with(context);
//only main process can load a new patch
if (tinker.isMainProcess()) {
TinkerLoadResult tinkerLoadResult = tinker.getTinkerLoadResultIfPresent();
//if versionChange and the old patch version is not "... | [
"Package uninstall(PatchId patchId, boolean force) throws IOException;",
"private void killOverdueProcesses() {\r\n \t\tlong testTime = System.currentTimeMillis();\r\n \r\n \t\t// Kill off old ones\r\n\t\tMaximaProcess mp = pool.poll();\r\n \t\twhile (mp != null && mp.isOverdue(testTime)) {\r\n \t\t\tmp.kill();\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method return instructor by id. | @Override
public Instructor findById(int id) {
if (!isExists(id)) {
throw new BadRequestException("There is no instructor with id: " + id);
}
return instructorRepository.findById(id).get();
} | [
"public Instructor findById(long id) {\n\t\treturn this.instructorRepository.findOne(id);\n\t}",
"public String getInstructorId() {\n\t\treturn instructorId;\n\t}",
"public int getInstructorID()\n\t{\n\t\treturn instructorID;\n\t}",
"public Instructor getInstructor()\n {\n // Return a copy of the in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Converts each json file in internal storage to a JSON object and calls the function to send them to the server Files are uploaded by highest number to lowest | private void uploadFiles() {
ArrayList<String> fileNames = getFilesNames("json", 0);
for (int r = fileNames.size() - 1; r >= 0; r--) {
try {
String fileStr = loadJSONFromFile(fileNames.get(r));
if (fileStr != null) {
obj = new JSONObject(f... | [
"private void packageData() {\n ArrayList<String> fileNames = getFilesNames(EXT, 0);\n\n if (!fileNames.isEmpty()) {\n obj = new JSONObject();\n try {\n getUserJSON();\n\n for (int i = 0; i < fileNames.size(); i++) {\n int numColum... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Or__Group__0" $ANTLR start "rule__Or__Group__0__Impl" ../com.blasedef.onpa.ONPA.ui/srcgen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6882:1: rule__Or__Group__0__Impl : ( ruleAnd ) ; | public final void rule__Or__Group__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:6886:1: ( ( ruleAnd ) )
// ../com.blasedef.on... | [
"public final void rule__Or__Group__0__Impl() throws RecognitionException {\n int rule__Or__Group__0__Impl_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 669) ) { return ; }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Given a pointer, find out if we already have a Proxy for it Java side. This will return the Proxy instance already created by a concrete constructor if one was created Java side. This is sufficient if you are only using this for Proxies that were created as a result of objects being constructed in Java. If, on the othe... | protected static Proxy instanceFor(long pointer) {
final WeakReference<Proxy> ref;
final Long box;
box = new Long(pointer);
synchronized (knownProxies) {
ref = knownProxies.get(box);
}
if (ref == null) {
return null;
} else {... | [
"<T> T newProxy(T target, Class<T> interfaceType);",
"public static IRubyObject getInstance(Ruby runtime, Object rawJavaObject, boolean useCache) {\n if (rawJavaObject != null) {\n if (OBJECT_PROXY_CACHE && useCache) {\n return runtime.getJavaSupport().getObjectProxyCache().get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Expand the currently selected node by one neighbor. If the flag is specified, only consider directed edges. | public void expandSelection(boolean use_digraph) {
RenderContext myrc = (RenderContext) rc; if (myrc == null) return;
Set<String> sel = myrc.filterEntities(getRTParent().getSelectedEntities()),
new_sel = new HashSet<String>();
MyGraph to_use = (use_digraph) ... | [
"void expandNode(Node node)\n {\n Grid currentGrid = node.getValue();\n\n if (debugMode)\n {\n System.out.println(\"------------- Fringe \" + fringeCount + \" ---------------\\n\");\n System.out.println(\"Selected node (depth \" + node.getDepth() + \"):\\n\" + node.getV... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculates the Area of a rectangle. Requires parameters for length and width. Multiplies the length by the width. | public static double rectangleArea(double length, double width)
{
return length * width;
} | [
"public double areaOfRectangle(int length, int width){\n return length * width;\n }",
"public double areaOfRectangle(int width){\n return this.length * width;\n }",
"public final String calculateAreaOfRectangle(String length, String width)\n throws NumberFormatException,IllegalArgumentExc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
seta o valor de usuarioalt | public void setUsuarioalt(String pUsuarioalt){
this.usuarioalt = pUsuarioalt;
} | [
"public void useUserData() {\r\n \t\tAppCAP.setLoggedInUserId(loggedUser.getUserId());\r\n \t\tAppCAP.setLoggedInUserNickname(loggedUser.getNickName());\r\n \t\ttextNickName.setText(loggedUser.getNickName());\r\n \t}",
"public void setUser(String newVal) {\n if ((newVal != null && this.user != null && (new... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes the listbox with the current location context, if one is set. | public static void locationInit(Listbox lstLocation) {
Location location = LocationContext.getActiveLocation();
if (location != null) {
locationAdd(location, lstLocation).setSelected(true);
}
} | [
"public void initComboBoxLocation()\r\n\t{\r\n\t\tlistLocation.clear();\r\n\t\tResultSet result = database.querySelectAll(\"emplacement\",String.format(\"emplacement.DESCRIPTION like '%s%%'\",emplacement_Cb.getEditor().getText().toUpperCase()));\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\twhile(result.next())\r\n\t\t\t{\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Prints the shortest path from startVertex to end. 1) Push startVertex on a queue. 2) Use a BFS graph traversal algorithm to visit empty spots adjacent to the current position. 3) Mark nodes with colors WHITE/GREY/BLACK in a visited array. This prevents processing the same node twice. The GREY color is a formality. 4)... | public void printShortestPath(int startVertex) {
if (mGraph.getVertexType(startVertex) != SpotType.START)
return;
Queue<Integer> vertexQueue = new LinkedList<Integer>();
vertexQueue.add(startVertex);
while (!vertexQueue.isEmpty()) {
Integer from = vertexQueue.po... | [
"static void shortestPath() {\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (int startIndex = 0; startIndex < vertices.size(); startIndex++) {\n\n\t\t\tVertex start = vertices.get(startIndex);\n\n\t\t\tSystem.out.print(\"Shortest Path Calculations from Start Vertex::\" + start + \"\\n\");\n\n\t\t\tQueue... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Declare a CodeBuilder to get the source code, throw exception if className doesn't exist | public String getSourceCode(String className) {
if (!classMap.keySet().contains(className)) {
throw new NoSuchElementException("Failed to find class name!\n");
}
CodeBuilder codeB = new CodeBuilder(className, classMap.get(className), packageName);
return codeB.getCode();
} | [
"Code createCode();",
"CodeSystem createCodeSystem();",
"abstract public String getCodeFactoryClassName();",
"CodeBlock createCodeBlock();",
"public CodeBlock() {}",
"public String getCompilerClassName();",
"public JavaSourceFromString(String name, String code) {\n super(URI.create(\"string:///\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create the TTHEMES table, if needed. | private void createThemesTable() throws SQLException
{
if (!database().hasTable("TTHEMES"))
{
log.info("creating table TTHEMES");
database().executeSQL(
"CREATE TABLE TTHEMES "
+ "(CDIRNAME TINYTEXT NOT NULL, OID INTEGER NOT NULL, "
... | [
"public void createThemes() {\n themes = new String[3];\n themes[0] = \"kitchen\";\n themes[1] = \"cellar\";\n themes[2] = \"saloon\";\n }",
"Themes createTheme(Themes theme);",
"private void findThemes() {\n mThemeCat.removeAll();\n prefs.removePreference(mThemeCat)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The range denoted by values of an incremental field .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; | @java.lang.Override
public boolean hasIncrementalField() {
return dataRangeCase_ == 1;
} | [
"@java.lang.Override\n public com.google.cloud.dataplex.v1.ScannedData.IncrementalFieldOrBuilder\n getIncrementalFieldOrBuilder() {\n if (dataRangeCase_ == 1) {\n return (com.google.cloud.dataplex.v1.ScannedData.IncrementalField) dataRange_;\n }\n return com.google.cloud.dataplex.v1.ScannedData.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a TestInfo for the test class. | public TestInfo getInfoByTestClass(final Class<?> testClass) {
return classToInfoMap.get(testClass);
} | [
"public Collection<TestInfo> listTestInfo() {\n\t\treturn classToInfoMap.values();\n\t}",
"public ClassInfo getClassInfo() {\n\t\treturn clsInfo;\n\t}",
"public Class<?> getTestClass()\r\n {\r\n return target.getClass();\r\n }",
"public static Class<?> getTestClass() {\n return classNameRule.g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional bool isPk = 2; | public boolean getIsPk() {
return isPk_;
} | [
"boolean getIsPk();",
"boolean hasIsPk();",
"public boolean getIsPk() {\n return isPk_;\n }",
"boolean hasAdm0002Pk();",
"protected boolean setPKInInsertStmt () { return false;}",
"public boolean isPrimaryKey()\n {\n return isPrimaryKey;\n }",
"public Integer getPk() {\n retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adding an entry with a non existing attribute type. | @Test
public void testAddEntryNonExistingAT() throws Exception
{
LdapConnection connection = getAdminConnection( getLdapServer() );
Dn dn = new Dn( "cn=Kate Bush," + BASE );
Entry personEntry = new DefaultEntry();
personEntry.add( SchemaConstants.OBJECT_CLASS_AT, "person" );
... | [
"public void addAttribute(REntityEntry entry);",
"private static final void addType(ArrayList<String> attributes, String type) {\n\t\tif (type == null || type.isEmpty()) {return;}\n\t\tif (TYPES == null) {\n\t\t\tTYPES = new HashMap<String, String>();\n\t\t\tTYPES.put(\"Condo\",\"PCT8\"); \n\t\t\tTYPES.put(\"Home... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a pointer to the bytes of `string'. APISince: 2.0 | @Nullable
@Generated
@CFunction
@UncertainReturn("Options: java.string, c.const-byte-ptr Fallback: java.string")
public static native String CGPDFStringGetBytePtr(@Nullable CGPDFStringRef string); | [
"public native @Cast(\"char*\") BytePointer GetUTF8Text();",
"public static byte[] getBytesUtf8Ascii( String string )\n {\n if ( string == null )\n {\n return new byte[0];\n }\n\n try\n {\n try\n {\n char[] chars = string.toChar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Invoked when a service successfully ends. | public void serviceEnd(String serviceName); | [
"public void serviceEnd() {\n\t\tClientCom com = new ClientCom (serverHostName, serverPortNumb);\n\n\t\twhile(!com.open()){\n\t\t\ttry {\n\t\t\t\tThread.currentThread ();\n\t\t\t\tThread.sleep ((10));\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t}\n\t\t}\n\t\tMessage msg = new Message(MessageType.SERVICE_END);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Contexts: PostStmt returns PostStmt Constraint: simple=SimpleStmt | protected void sequence_PostStmt(ISerializationContext context, PostStmt semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, GoPackage.Literals.POST_STMT__SIMPLE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semantic... | [
"public final void rule__PostStmt__SimpleAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:17795:1: ( ( ruleSimpleStmt ) )\r\n // InternalGo.g:17796:2: ( ruleSimpleStmt )\r\n {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function is called in case of failure after contacting VuMatch API | public abstract void onFailure(VuMatchAPIClientError error); | [
"@Override\n public void onPlayerError(int errorCode) {\n }",
"private void scanFailure() {\n Toast.makeText(getActivity().getApplicationContext(), \"failed to scan\", Toast.LENGTH_SHORT).show();\n this.results = wifiManager.getScanResults();\n }",
"protected void handleWebServiceFailure(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is used to eat grass | public void grazeGrass(Grass grass) {
raiseFoodLevel(5);
} | [
"private void eatGhost(Entity ghost) {\n eatMultipliyer += 1;\n int eatPoint = 200*eatMultipliyer;\n if (eatPoint > 1600) eatPoint = 1600;\n GhostAIComponent ai = ghost.getComponent(GhostAIComponent.class);\n ai.setDead();\n globalVars().put(\"score\", globalVars().getInt(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to expand out site patterns, transposed sites into correct arrays. patternLikelihoods > float[patterns][trees] SSLSseriesPatternwise and String[] patterns sites > char [taxa][sites] dataSetAsCharMatrix sitesMatrix > char[][] transposedDatasetAsCharMatrix and sitePatterns transposedSites and patternLikelihoods > ... | public void fillOutAndVerify() {
// try and do some rudimentary assertions
assert(this.patternLikelihoods != null);
assert(this.dataset != null);
// initialise
this.SSLSseriesPatternwise = new float[this.numberOfSitePatterns][this.numberOfTopologies];
this.patterns = new String[this.numberOfSitePatterns... | [
"PatternEmbeddingsMap growPatterns(\n int[] graph,\n PatternEmbeddingsMap parentMap,\n List<int[]> frequentPatterns,\n List<int[]> rightmostPaths,\n boolean uncompressEmbeddings,\n List<int[]> compressedPatterns\n );",
"@Override\n public List<OptimalDSetCandidateDimensionPattern> restructure... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Expression__ConditionAssignment_5" $ANTLR start "rule__Select__SelectAssignment_0" ../emfviews.dsl.ui/srcgen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:2418:1: rule__Select__SelectAssignment_0 : ( ( '' ) ) ; | public final void rule__Select__SelectAssignment_0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:2422:1: ( ( ( '*' ) ) )
// ../emfviews.dsl.ui/src... | [
"public final void rule__Expression__SelectAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:2377:1: ( ( ruleSelect ) )\n // ..... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new MySqlDbHelper. | public MySqlDbHelper() {
connection = entityManager.unwrap(Connection.class);
} | [
"public MySqlDbHelper getInstance() {\n\t\tif (mySqlHelper == null) {\n\t\t\tsynchronized (mySqlHelper) {\n\t\t\t\tif (mySqlHelper == null) {\n\t\t\t\t\tmySqlHelper = new MySqlDbHelper();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn mySqlHelper;\n\t}",
"public DBHelper() {\n }",
"private void initDB() {\n d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
XmuCoreCompositionChildStatement: XmuCoreMatchSource | XmuCoreMatchView | XmuCoreExpandSource | XmuCoreExpandView | XmuCoreGraphReplace | XmuCoreSwitch | XmuCoreAlign | => XmuCoreFunctionCall | XmuCoreIndex | XmuCoreForEachMatchSource | XmuCoreContextSource | XmuCoreDeriveSource | XmuCoreDependencyView; | public XmuCoreCompositionChildStatementElements getXmuCoreCompositionChildStatementAccess() {
return pXmuCoreCompositionChildStatement;
} | [
"protected DremioRelToSqlConverter.Result processProjectChild(Project project, DremioRelToSqlConverter.Result childResult) {\n // unlike the super impl #visit(Project), this expands star (\"*\") if additional push downs are enabled\n\n Pointer<Boolean> isPartial = new Pointer<>(false);\n project.accept(new... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add all body processors here. bodyProcessors.add(new LocationCliBodyProcessor(this)); | protected void initProcessors() {
addBodyProcessor(new SingularBodyProcessor(this));
addBodyProcessor(new YelpCliBodyProcessor(this));
addBodyProcessor(new OpenTableCliBodyProcessor(this));
addBodyProcessor(new GiphyCliBodyProcessor(this));
//Redirectors
//addPiper(new P... | [
"public void addBody(Body body) {\n\t\tfor (DynamicsController controller : dynControllers)\n\t\t\tcontroller.addBody(body);\n\t}",
"public WoocationGeoCrawler() {\n\t\t// processRawData();\n\t\tprocessSpecificData();\n\t}",
"private void addBodyLinesPopulatingRelatedEntitiesData(\n InvocableMemberB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
calls newframeat function from runtime stack | public void newFrameAt(int offset){
runStack.newFrameAt(offset);
} | [
"void newFrameAt(int offset) {\n framePointer.push(runTimeStack.size() - offset);\r\n }",
"public void execute(StackFrame frame);",
"FRAME createFRAME();",
"void create(Frame frame);",
"Frame createFrame();",
"public void popFrame(){\r\n runStack.popFrame();\r\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This causes the headers for any combination of facetValues for which there are no cellRecords to be suppressed. (Note: Valid only for CubeGrids that specify the complete dataset upfront don't use load on demand) | public Boolean getHideEmptyFacetValues() {
return getAttributeAsBoolean("hideEmptyFacetValues");
} | [
"public void clearHeaderValues() {\n headerValues.clear();\n }",
"public void removeHeader() {\n rows.remove(0);\n }",
"@Override\n public void resetFilter() {\n getTableRowSorter().setRowFilter(null);\n }",
"private void clearSectionHeaders() {\n mSectionHeaders = null;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the first offset greater than offset and smaller than end whose character is not a space or tab character. If no such offset is found, end is returned. | protected int findEndOfWhiteSpace(IDocument document, int offset, int end) throws BadLocationException {
while (offset < end) {
char c= document.getChar(offset);
if (c != ' ' && c != '\t') {
return offset;
}
offset++;
}
retu... | [
"public int getEndOffset(){\n return _endPos.getOffset();\n }",
"public int getEndOffset() {\r\n\t\treturn end;\r\n\t}",
"private static int getIndexOfRightMostNoneWhitspaceCharacter(int start, int end, Document document) throws BadLocationException {\n\t\tint position= end;\n\t\twhile (position >= start &&... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Performs initial operations on the cost matrix finds the minimum element in each row subtracts the minimum element in every row from the entire row finds the minimum element in each column subtracts the minimum element in every column from the entire column | public void initial()
{
int i,j;
int tempValue=0;
for(i=0; i<n; i++)
{
for(j=0; j<n; j++)
{
if(j==0)
{
tempValue = cost[i][j];
}
else
{
if(tempValue> cost[i][j])
{
tempValue = cost[i][j];
}
}
}
for (j=0; j<n;j++)
{
cost[i][j] = cos... | [
"private void reduce(){\n int min;\n //Subtract min value from rows\n for (int i = 0; i < rows; i++) {\n min = source[i][0];\n for (int j = 1; j < cols; j++)\n if(source[i][j] < min) min = source[i][j];\n\n for (int j = 0; j < cols; j++)\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Bot prints out player 0 shares | @Test
public void share() {
System.out.println(Arrays.toString(client.getShares(0)));
} | [
"public void printPlayerShares(Player player)\n\t{\n\t\tSystem.out.println(\"~~~~~~~~~Player \" \n\t\t\t\t+ player.getIdentity() + \" shares~~~~~~~~~~\");\n\t\tfor(String commodityType: mainTypes) {\n\t\t\tSystem.out.println(\"| \" + commodityType + \"\\t\" \n\t\t\t\t\t+ shares.getSoldShareIds(player.playerId(), co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Locate xml file and instantiate Configuration object from it. | Configuration loadXMLConfiguration(String fileName); | [
"public XmlLinpConfiguration(File xmlConfig){\r\n initialize(xmlConfig);\r\n\t}",
"public FileConfiguration loadConfiguration(File file);",
"public ConfFileHelper(File confFile) \n {\n try\n {\n // load the xml to the doc variable\n _confPath = confFile.getAbsolutePa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ends processing of an async task. Blocks the current thread if necessary and returns the evaluated value of the completed task. | <T> T endProcess(AsyncResult<T> asyncResult) throws ExecutionException, InterruptedException; | [
"void endTask();",
"public void SafeEnd()\r\n\t{\r\n\t\tthis.done = false;\r\n\t\tthis.started = false;\r\n\t\ttask.End();\r\n\t}",
"public JsonNode endAsyncMethod(final JsiiPromise promise) {\n ObjectNode req = makeRequest(\"end\");\n req.put(\"promiseid\", promise.getPromiseId());\n JsonN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get All Fighters From Database | private static ArrayList<FighterModel> getAllFighter() {
ArrayList<FighterModel> allFighters = new ArrayList<FighterModel>();
FighterModel fighter = null;
try {
// Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection(
"j... | [
"public List<RoomFair> getAll() {\n List<RoomFair> result = new LinkedList<>();\n\n try (\n Connection conn = newConnection(\"postgresql\",\n \"localhost\",\n \"5432\",\n \"BookingApp\",\n \"post... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Uses the Lazy initialization of the singleton pattern by double checking to make sure that an instance of Role representing the child doesn't already exist. If it does exist it will simply return the instance, otherwise it will create one and return that. | public static synchronized Role getChild() {
if (child == null) {
child = new Role(RoleType.CHILD);
}
return child;
} | [
"ExistingRole createExistingRole();",
"@Override\n public SysvDb2Role build() {\n return getInstance();\n }",
"Child getSingletonChild();",
"Role createRole();",
"ArrivingRole createArrivingRole();",
"public com.exacttarget.wsdl.partnerapi.Role addNewRole()\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an execution environment suitable for testing functions and expressions | public static FunctionEnv createTest()
{
Context cxt = ARQ.getContext().copy();
cxt.set(ARQConstants.sysCurrentTime, NodeFactoryExtra.nowAsDateTime());
return new FunctionEnvBase(cxt);
} | [
"Environment createEnvironment();",
"RuntimeEnv createRuntimeEnv();",
"ExecutionContext createExecutionContext();",
"public Interpreter() {\n env = new Environment();\n }",
"InterpreterRuntimeContext createInterpreterRuntimeContext();",
"EnvironmentService environment();",
"@Test\n public v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use RecordDetailsResponse.newBuilder() to construct. | private RecordDetailsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"private RecordDetailsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private RecordResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private DetailsResponse(Builder builder) {\n super(builder);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Informs neighbors that node with id failed | public synchronized void informNodeFailure(int id) {
Node failed_node = getNodeById(id);
System.out.println("Round: " + getRound() + failed_node + " failed");
for (Node node : failed_node.myNeighbours) {
node.myNeighbours.remove(failed_node);
}
nodes.remove(failed_node);
} | [
"public synchronized void informNodeFailure(int id) {\n\t}",
"@Override\n public void addNodeFailure(Node node) {\n LOGGER.warn(\n String.format(\"Registering failure of node %s. Ignoring until process also fails..\", node));\n }",
"void nodeFailedToStop(Exception e);",
"void nodeFailedToStart(Exc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the aca permission. | @Column(name = "ACA_PERMISSION")
public String getAcaPermission()
{
return acaPermission;
} | [
"public String getaPermission() {\n return aPermission;\n }",
"String getPermission();",
"public String getPermission() {\n return (String) getAttributeInternal(PERMISSION);\n }",
"abstract public void getPermission();",
"int getPermissionRead();",
"public String getPermission() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get tour by id | public Tour getTourById(String id) throws ServiceException {
return tourRepository.findById(Long.parseLong(id)).orElseThrow(() -> new ServiceException("Cant find tour by id: " + id));
} | [
"public Tour get(Long id);",
"@GetMapping(\"/tours/{id}\")\n @Timed\n public ResponseEntity<Tour> getTour(@PathVariable Long id) {\n log.debug(\"REST request to get Tour : {}\", id);\n Tour tour = tourService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(tour));\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |