query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
$ANTLR end "rule__RootElementType__Group__4__Impl" $ANTLR start "rule__RootElementType__Group__5" ../org.xtext.example.mydsl.extensions.ui/srcgen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:461:1: rule__RootElementType__Group__5 : rule__RootElementType__Group__5__Impl rule__RootEl... | public final void rule__RootElementType__Group__5() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:465:1: ( rule__RootE... | [
"public final void rule__RootElementType__Group__5() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.mydsl.group.unchanged.ui/src-gen/org/xtext/example/mydsl/group/unchanged/ui/contentassist/antlr/internal/InternalMyDsl.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the householdIncome value for this Account. | public java.lang.String getHouseholdIncome() {
return householdIncome;
} | [
"public double getIncome() throws BankException {\n throw new BankException(\"This account does not support this feature\");\n }",
"public double getIncome() {\n\t\tdouble healthPercent = health/100;\n\t\tdouble happyPercent = happiness/100;\n\t\treturn Math.round(income*healthPercent*happyPercent*100.0... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test the effect of railgun | @Test
void doEffectrailgun() {
ArrayList<Player> pl = new ArrayList<>();
AlphaGame g = new AlphaGame(1, pl,false, 8);
WeaponFactory wf = new WeaponFactory("railgun");
Weapon w11 = new Weapon("railgun", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffe... | [
"@Test\n\tpublic void filippoBrunelleschiEffectTest(){\n\t\tEffect effect = new FilippoBrunelleschiEffect();\n\t\teffect.applyEffect(player);\n\t\tassertTrue(player.getBonuses().isDiscountOccupiedTower());\n\t}",
"@Test\n void doEffectmachinegun() {\n ArrayList<Player> pl = new ArrayList<>();\n A... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Counts the number of squares with the color of the face (center piece). | public static int countSquaresOnFace(Cube cube, int face){
int counter = 0;
for(int i = 0; i <3; i++){
for(int j = 0; j<3; j++){
if(cube.getSquare(face, i, j) == cube.getSquare(face, 1, 1)){
counter++;
}
}
}
return counter;
} | [
"public static int countSquaresOnFace(Cube cube, int squareColor, int face){\n\t\tint counter = 0;\n\t\tfor(int i = 0; i <3; i++){\n\t\t\tfor(int j = 0; j<3; j++){\n\t\t\t\tif(cube.getSquare (face, i, j) == squareColor) counter++;\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}",
"private void countRedSquares(){\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a user to the database if they do not exist and to the current viewer list. The check is because PRIVMSG is used since JOIN is slow. | private static void addUserToViewerList(String nick) {
boolean writeNeeded = false;
if (!db.contains(nick)) {
db.newUser(nick);
writeNeeded = true;
}
if (db.getUserLevel(nick) == UserLevel.NEW && TwitchAPI.isFollower(nick, channel)) {
db.setUser... | [
"private void addUserToChatroom() {\n\t\tString usernameListChoice = view.addUserList.getValue();\n\t\tString usernameIn = view.addUserIn.getText();\n\t\tString userJoin = \"\";\n\t\tboolean userOnline = false;\n\n\t\tif (usernameIn.length() >= 3) {\n\t\t\tuserOnline = model.checkUserOnline(usernameIn);\n\t\t\tuser... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column product.cid | public void setCid(Integer cid) {
this.cid = cid;
} | [
"public void setCid(Integer cid) {\n this.cid = cid;\n }",
"public void setIdProduct(int idProduct) {\n this.idProduct = idProduct;\n }",
"public void setIdProduct(String idProduct) {\n this.idProduct = idProduct;\n }",
"public void setCID(Integer CID) {\n this.CID = CID;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Disconnect and reconnect filebox | public void reconnect() {
if (getState() == Filebox.CONNECTED) {
disconnect(new ConnectionListener() {
public void disconnected(ServiceDiscovery serviceDiscovery) {
connect(null);
}
public void connected(ServiceDiscovery serviceDiscovery) {
}
});
}
} | [
"public void disconnect(){\n if (this.ftp.isConnected()) {\n try {\n this.ftp.logout();\n this.ftp.disconnect();\n } catch (IOException f) {\n // do nothing as file is already saved to server\n }\n }\n }",
"public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parse the text files obtaind as the output of the Apache Nutch Crawler. Returns the set of URLs. | public Set<String> parseTxtNutch(String filepath) throws FileNotFoundException{
Set<String> result = new HashSet<String>();
//Note that FileReader is used, not File, since File is not Closeable
File input = new File(filepath);
Scanner scanner = new Scanner(new FileReader(input));
try {
//fi... | [
"private List<String> getUrlFromFile(){\n\t\tCharset charset = Charset.forName(\"UTF-8\");\n\t\tPath path = Paths.get(filePath);\t\n\t\tList<String> urlsList = null;\t\n\t\ttry {\n\t\t\t urlsList = Files.readAllLines(path,charset);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.pr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add the PCB to the linked list on the ready list corresponding to its priority | public void addToReadyList(Process pcbToAdd)
{
Integer priority = pcbToAdd.getPriority();
rL.get(priority).add(pcbToAdd);
} | [
"private void putInPriorityQueue(PuzzleBoard nextBoard)\n {\n //as long as board move is allowed && new board is unique(not already contained in hash set)\n //add to priority queue.\n if((nextBoard != null) && (!explored.contains(nextBoard))) pq.add(nextBoard);\n }",
"PCB(int priority, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verifies that if the player has the required cards, the leaderCard is activated Second type of Card Requirement: Cards of specified levels | @Test
public void CardRequirement2() {
MSG_ACTION_ACTIVATE_LEADERCARD message = new MSG_ACTION_ACTIVATE_LEADERCARD(1);
LeaderCard l3 = new LeaderCard(4,
new CardRequirements(Map.of(Color.YELLOW, new ReqValue(1, 2))),
new Production(Resource.SHIELD));
ArrayLis... | [
"@Override\n public boolean checkRequirement(PlayerContext playerContext) {\n int sumOfRightColourAndLevelCard = 0;\n for (DevelopmentCard developmentCard : playerContext.getAllDevelopmentCards()){\n if (developmentCard.getColour() == cardColour && developmentCard.getLevel() == cardLevel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Relation__Group_1__1__Impl" $ANTLR start "rule__Arithmetic_expression__Group__0" ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/srcgen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2670:1: rule__Arithmetic_expression__Group__0 : rule__... | public final void rule__Arithmetic_expression__Group__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/inte... | [
"public final void rule__Relation__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compiles and returns a list of individual codons Nucleotide = nucleotide line from input file | public static String[] codonList(String nucleotides) {
nucleotides = nucleotides.replace("-", "");
int numCodon = nucleotides.length() / NUCLEO_PER_CODON;
String[] codons = new String [numCodon];
for (int i = 0;i <= nucleotides.length() - NUCLEO_PER_CODON; i+= NUCLEO_PER_CODON){
codons[i/NUCLEO_PER_CODON] = ... | [
"public static List<Character> getConsonants() throws IOException, ParseException\n {\n if (consonants != null)\n {\n return consonants;\n }\n consonants = new ArrayList<Character>();\n for (String line : IO.i(IPA_CONSONANTS_FILE)) // iterate the lines of the file\n {\n String [] fields... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the address of this commitment. | @Override
public java.lang.String getAddress() {
return _commitment.getAddress();
} | [
"public String getAddress() {\n\n return this.address.get();\n }",
"@Override\n\tpublic java.lang.String getAddress() {\n\t\treturn _eprocurementRequest.getAddress();\n\t}",
"public java.lang.String getAddress() {\n return address;\n }",
"public String getAddress() {\n\t\treturn this.full_addres... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prints all current participants on the chat server | public void printParticipantList() {
System.out.println(participants);
} | [
"public String createParticipantsList() {\n\n String participants = \"The following are currently in the chat room :\\n\";\n\n for (ConnectionThread client : connectedClients) {\n\n participants+=client.getNickName()+\"\\n\";\n\n }\n\n return participants;\n\n }",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the itHasProduct property. | public int getItHasProduct() {
return itHasProduct;
} | [
"public boolean isSetProductId() {\n return this.productId != null;\n }",
"public boolean isSetProductId() {\n return this.productId != null;\n }",
"public boolean hasProductName() {\n return fieldSetFlags()[2];\n }",
"public void setItHasProduct(int value) {\n this.itHasProduct = v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function is called to display all valid moves in the position of the movable m | public void displayValidMoves(Movable m) {
String str = "You can move :";
for (int i = 0; i < DIRECTION.length; i++) {
if (Matrice.isValidMove(m, DIRECTION[i])) {
str += "\n\t- " + DIRECTION[i];
}
}
System.out.println(str);
} | [
"public void printValidMoves(){\r\n Iterator itr = this.validMoves.iterator();\r\n System.out.print(\"Next Spaces: \");\r\n while(itr.hasNext()){\r\n Point next = (Point)itr.next();\r\n System.out.print(\"(\" + (int)next.getX() + \" \" + (int)next.getY()+\")\");\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A list of entities detected on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, entities in this list may cross shard boundaries. repeated .google.cloud.documentai.v1beta3.Document.Entity entities = 7; | com.google.cloud.documentai.v1beta3.Document.Entity getEntities(int index); | [
"java.util.List<com.google.cloud.documentai.v1beta3.Document.Entity> getEntitiesList();",
"java.util.List<com.google.cloud.documentai.v1beta1.Document.Entity> getEntitiesList();",
"java.util.List<? extends com.google.cloud.documentai.v1beta3.Document.EntityOrBuilder>\n getEntitiesOrBuilderList();",
"java... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finds bicycles by specified parameters: id of rental point, id of bicycle type, firm and model. | public List<Bicycle> findActiveBicycleByFilter(long rentalPointId, long bicycleTypeId, String firm, String model)
throws DAOException {
String sql = SQL_SELECT_FREE_BICYCLES;
List<Object> params = new ArrayList<Object>();
if (rentalPointId != -1) {
sql += " and b.rental_point_id = ? ";
params.a... | [
"@Override\n public List<Doctor> searchById(int id) throws IOException, ClassNotFoundException {\n doctorList = FileSystem.readFile(file, Doctor.class);\n List<Doctor> searchList = search(doctorList, Doctor::getId, id);\n return searchList;\n }",
"public void searchVehicle(int make_id) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter method to request the status of the Event implementing this interface's being Observable to the attacker. | public abstract boolean getEventAttackerObservability(); | [
"public abstract boolean getEventObservability();",
"public interface EventObservability {\n\t\n//--- Setter Methods -----------------------------------------------------------------------\n\n\t/**\n\t * Setter method to assign a new status to the Event implementing this interface's being Observable to the sys... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getClientNomb method, of class Infocliente. | @Test
public void testGetClientNomb() {
System.out.println("getClientNomb");
Infocliente instance = new Infocliente();
String expResult = "";
String result = instance.getClientNomb();
assertEquals(expResult, result);
} | [
"@Test\n public void testSetClientNomb() {\n System.out.println(\"setClientNomb\");\n String clientNomb = \"\";\n Infocliente instance = new Infocliente();\n instance.setClientNomb(clientNomb);\n \n }",
"@Test\n\tpublic void testInfoCliente() throws Exception {\n\t\tSystem... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Methode setKortingsPercentage Zodat je korting kan geven. | public void setKortingsPercentage(int kP){
kortingsPercentage = kP;
} | [
"public void setPercentage(double percentage) {\r\n this.division = percentage / 100;\r\n }",
"public void setPercentage(double percentage){\r\n\t\tthis.percentage = percentage;\r\n\t}",
"public void setPercent(float per){\r\n percent = per;\r\n }",
"public int getKorting(){\r\n\t\treturn ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Populate field conditionType in table edgeBoxRule | private static void populateConditionTypeAndType() {
List<Edgebox> lstEdgeBox = EdgeboxService.getInstance().listPaginated(null, null);
if ((lstEdgeBox != null) && (!lstEdgeBox.isEmpty())) {
for (Edgebox edgebox : lstEdgeBox) {
edgebox.setParameterType("BRIDGE_TYPE");
... | [
"@POST\n @Path(\"/conditions\")\n public void setConditionType(ConditionType conditionType) {\n definitionsService.setConditionType(conditionType);\n }",
"public void addToConditions(entity.GL7SublineTypeCond element);",
"Condition(Column col1, String relation, Column col2) {\n // YOUR CO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method sets the value of the database column pack_data_expand_latest.cell_evalu_14 | public void setCellEvalu14(Integer cellEvalu14) {
this.cellEvalu14 = cellEvalu14;
} | [
"public void setCellEvalu7(Integer cellEvalu7) {\n this.cellEvalu7 = cellEvalu7;\n }",
"public void setCellEvalu18(Integer cellEvalu18) {\n this.cellEvalu18 = cellEvalu18;\n }",
"public void setCellEvalu17(Integer cellEvalu17) {\n this.cellEvalu17 = cellEvalu17;\n }",
"public voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get and register the broadcast receiver for the album created event | public static BroadcastReceiver getAndRegisterOnAlbumCreatedActionBroadcastReceiver(
final String TAG,
final AlbumCreatedHandler handler,
final Activity activity)
{
BroadcastReceiver br = new BroadcastReceiver()
{
@Override
public... | [
"public static void sendAlbumCreatedBroadcast(Album album)\r\n {\r\n Intent intent = new Intent(ALBUM_CREATED_ACTION);\r\n intent.putExtra(ALBUM_CREATED, album);\r\n TroveboxApplication.getContext().sendBroadcast(intent);\r\n }",
"BroadcastReceiver getBroadcastReceiver();",
"void onBr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
public CatalogoFamiliaBean obtenerCatalogoFamiliaPorNombre(String nombre) throws Exception; | public CatalogoBean obtenerCatalogoPorNombre(String nombre) throws Exception; | [
"@Override\n\tpublic Barrio obtenerBarrioNombre(String nombre) {\n\t\t// TODO Auto-generated method stub\n\t\treturn barrioserviceImp.findByNombre(nombre);\n\t}",
"@Override\n public ArrayList<Proveedor> buscarProveedoresPorNombre(String nombre) {\n ArrayList<Proveedor> proveedores = new ArrayList<>();\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves the id of the silo id. | public String getSiloId()
{
return m_siloId;
} | [
"java.lang.String getClisSmoId();",
"long getSysId();",
"java.lang.String getSysId();",
"int getSnId();",
"public String getSliid() {\r\n return sliid;\r\n }",
"long getId();",
"java.lang.String getID();",
"String getIdentityId();",
"com.grpc.store.UUID getId();",
"int getSingerId();",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes all the current options from the combo box | public void removeAllOptions() {
optGroup.getOptions().clear();
setText("");
} | [
"private void clearStateInfo(){\r\n cmbState.removeAllItems();\r\n }",
"private void clearOptions() {\n lootOptions.clear();\n }",
"public void clear() {\n\t\tconfigurationToButtonMap.clear();\n\t\tselected.clear();\n\t\tsuper.removeAll();\n\t}",
"private void emptyCombo(){\n Defaul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
checks to see if en passant is possible to the left of the given piece | private boolean checkEnPassantLeft(Piece piece) {
int[] coord = Converter.notationToCoord(piece.getPos());
String leftSquare = Converter.coordToNotation(coord[0], coord[1] - 1);
return board.isOccupied(leftSquare) && board.getInternalBoard()[coord[0]][coord[1] - 1].getType().equals("P") &&
... | [
"private boolean checkEnPassantRight(Piece piece) {\n int[] coord = Converter.notationToCoord(piece.getPos());\n String rightSquare = Converter.coordToNotation(coord[0], coord[1] + 1);\n return board.isOccupied(rightSquare) && board.getInternalBoard()[coord[0]][coord[1] + 1].getType().equals(\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XBlockExpression__Group__1__Impl" $ANTLR start "rule__XBlockExpression__Group__2" ../org.xtext.guicemodules.ui/srcgen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12179:1: rule__XBlockExpression__Group__2 : rule__XBlockExpression__Group__2__Impl rule__XBlockExpression_... | public final void rule__XBlockExpression__Group__2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12183:1: ( rule__XBlockExpression__G... | [
"public final void rule__XBlockExpression__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:12195:1: ( ( ( rul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get price tier by rounding up, unless it is 0 (free) | private String getPriceTier(double priceInDouble) {
if (priceInDouble > 0.00) {
int tier = (int)priceInDouble + 1;
return tier+"";
}
else return "0";
} | [
"private int getTier(int tierScaled) {\n // tier cutoffs\n int tier1Cutoff;\n int tier2Cutoff;\n // set the cutoffs for the tiers given the tierScaled to scale the chance of the scale towards.\n switch(tierScaled) {\n case 1:\n tier1Cutoff = 70;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter method for heardPercentOut | public double getHeardPercentOut() {
return heardPercentOut;
} | [
"public double getLikePercentOut() {\n return likePercentOut;\n }",
"public void setHeardPercentOut(double heardPercentOut) {\n this.heardPercentOut = heardPercentOut;\n }",
"public double getHeardPercentUS() {\n return heardPercentUS;\n }",
"public double getHeardPercentOther() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the total amount of energy expended in the FACH tail state. | public double getFachTailEnergy() {
return fachTailEnergy;
} | [
"public double getDchTailEnergy() {\n\t\treturn dchTailEnergy;\n\t}",
"public double getEnergy() \n\t{ \n\t\tif(partner == null)//if not bound return zero\n \t\treturn 0;\n\t\telse\n\t\t\treturn (getTransEnergy() + getBendingEnergy() + getRotationEnergy()); \n\t}",
"public int getTotalEnergy() {\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adding element at the end | public void addLast(Object element)
{
if (this.isEmpty()) {
data[0] = element;
}else {
int index = (first + count)%data.length;
data[index] = element;
}
count++;
} | [
"Position<Element> addLast(Element e);",
"public void addLast(E element);",
"private DoubleLinkedList<Integer> addAfterFromOneElementList() {\n\t\t\n\t\tDoubleLinkedList<Integer> list = new DoubleLinkedList<Integer>();\n\t\tlist.addToRear(new Integer(1));\n\t\tlist.addAfter(new Integer(2), new Integer(1));\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the audio player associated with this voice. The caller is responsible for closing this player. | public void setAudioPlayer(AudioPlayer player) {
audioPlayer = player;
externalAudioPlayer = true;
} | [
"private void setPlayer() {\n player = Player.getInstance();\n }",
"public void setAudioSessionId(int sessionId) {\n\t\tmPlayer.setAudioSessionId(sessionId);\n\t}",
"public void setAudioDevice(MediaDevice dev)\n {\n this.audioDevice = dev;\n }",
"public void setPlayer(Player player)\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
1) il primo INode viene impostato con point uguale a pos; 2) ogni INode successivo viene impostato con un point uguale a new Point(pos.x + 100, pos.y). public ServerModel(ServerType serverType, Point point, IQNM iqnm) | @Override
public ServerModel iNodeXMLLoading(ServerType node)
throws LoadingException
{
Point point = new Point(pos.x,pos.y);
pos.x = pos.x + 100;
ServerModel serverModel = new ServerModel(node,point,this);
return serverModel;
} | [
"public PointStructure(Player player) {\n\n this.player = player;\n }",
"public Net(double xPos, double yPos,int type){\n\t\tsuper(xPos,yPos);\n\t\tthis.type = type;\n\t\tloadRes();\n\t\tup=false;\n\t\tdown=true;\n\t\tattachedFish = new ArrayList<Fish>();\n\t}",
"public BaseObject(String serverName, \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
That returns ip from client server | public String getIp() {
return clientSocketOnServer.getInetAddress().toString();
} | [
"int getServerIp();",
"int getClientIp();",
"String getHostIP();",
"String getRemoteIpAddress();",
"java.lang.String getRemoteIPAddress();",
"int getIp();",
"IpAddress getIpAddress();",
"public String getIpAddress()\r\n {\r\n return socket.getInetAddress().toString();\r\n }",
"public St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
"red", "tax", ["ted","tex","red","tax","tad","den","rex","pee"] ["red","ted","tad","tax"],["red","ted","tex","tax"],["red","rex","tex","tax"] "cet", "ism", ["kid","tag","pup","ail","tun","woo","erg","luz","brr","gay","sip","kay","per","val","mes","ohs","now","boa","cet","pal","bar","die","war","hay","eco","pub","lob","... | public static void main(String args[]){
String start = "cet";
String end = "ism";
String[] dicts = new String[]{"kid","tag","pup","ail","tun","woo","erg","luz","brr","gay","sip","kay","per","val","mes","ohs","now","boa","cet","pal","bar","die","war","hay","eco","pub","lob","rue","fry","lit","rex","jan","... | [
"public String[] topHotWords( int count ){\r\n //If the number put in the arguments is greater than the number of distinct hotwords\r\n //in the document, limit it to distinctCount\r\n if (count > distinctCount()){\r\n count = distinctCount();\r\n }\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determine whether the given user can lock the given path via this edit lock registry. | public boolean canLock(String inPath, User inUser)
{
if ((inPath == null) || (inUser == null))
{
return false;
}
unlockIfExpired(inPath);
User owner = getLockOwner(inPath);
boolean ok = (owner == null) || owner.equals(inUser);
if ( !ok )
{
}
return ok;
} | [
"boolean isLockedByUser( Identifiable identifiable );",
"public Section userIsModifying(String usr) {\n \t\ttry {\n \t\t\teditlock.lock();\n \t\t\treturn isEditing.getOrDefault(usr, null);\n \t\t}\n \t\tfinally {\n \t\t\teditlock.unlock();\n \t\t}\n\t }",
"protected synchronized void forciblyLockPath(String inP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To set the players color. | public void setPlayerColors(ArrayList<Color> playerColors) {
this.playerColors = playerColors;
} | [
"private void assignColors() {\n this.playerManager.assignColors();\n }",
"public int getColor() {\n return playerColor;\n }",
"public void setTeamColor(){\n }",
"public void setColor(int color);",
"protected String playerListColor() {\n return cfg.getString(\"Colors.player\").... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test to check if the method "canAddMarket()" works properly in ResourceManager Class | @Test
public void canAddMarketResources() {
resourceManager.reset();
assertTrue(resourceManager.canAddMarketResources());
resourceManager.addMarketResourcesByType(3, ResourceType.SHIELDS, resourceManager.getWarehouseDepots()[0]);
resourceManager.addMarketResourcesByType(2, ResourceTy... | [
"@Test\n public void canAddToDepot() {\n resourceManager.addMarketResourcesByType(3, ResourceType.SHIELDS, resourceManager.getWarehouseDepots()[0]);\n assertFalse(resourceManager.canAddToDepot(ResourceType.SHIELDS, resourceManager.getWarehouseDepots()[0]));\n assertFalse(resourceManager.canA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the from H values. | protected void createFromHValues(int[] hValues, int partitions) {
Arrays.sort(hValues);
this.partitionIdentifiers = new int[partitions];
int maxH = 0x7fffffff;
for (int i = 0; i < partitionIdentifiers.length; i++) {
int quantile = (int) ((long)(i + 1) * hValues.length / part... | [
"public String createH() {\n\t\t// Create H per the algorithm\n\t\t// Create vertices of X --- The number of vertices in X is taken from the paper\n\t\t// k = (2 + epsilon)log n\n\t\tthis.createXVertices();\n\t\t// Create edges within X (both successive and random)\n\t\tthis.createXEdges();\n\n\t\treturn \"H Create... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
purpose: test write lock synchronized case: if: 50 threads action: get write lock to minus testUse.count result: testUser.count is 950 | @Test
public void writeLockIsolationTest() throws InterruptedException {
final TestUse testUse = new TestUse();
final ConcurrentHashMap concurrentHashMap = new ConcurrentHashMap();
int threadNum = 50;
final CountDownLatch countDownLatch = new CountDownLatch(threadNum);
for (i... | [
"@Test\n public void readWriteLockMixedTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n int readThreadNum = 5;\n int writeThreadNum = 5;\n final CountDownLatch countDownLatch = new CountDownLatch(10);\n for (int i = 0; i < readThreadNum; i++) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Load mapping information in a chunk to memory and reset tag start and end index | private void cacheMappingInfoChunk (int chunkIndex) {
this.cachedTMIChunk = new TagMappingInfoV3[this.getMappingNum()][this.getChunkSize()];
for (int i = 0; i < mappingNum; i++) {
cachedTMIChunk[i] = myHDF5.compounds().readArrayBlock(mapNames[i], tmiType, this.getChunkSize(), chunkIndex);
... | [
"public void map( Chunk c ) { }",
"public void map( Chunk cs[] ) { }",
"protected void readBlockMap() throws IOException {\n\t\tif( blockMap != null )\n\t\t\treturn;\n\t\t\n\t\tint N = (int)header.blockCount();\n\t\tblockMap = new int[N];\n\t\tRandomAccessFile raf = new RandomAccessFile( source, \"r\" );\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column gather_content.static_link | public void setStaticLink(String staticLink) {
this.staticLink = staticLink == null ? null : staticLink.trim();
} | [
"public String getStaticLink() {\r\n return staticLink;\r\n }",
"public void setStaticURL(String url) {\n this.staticURL = url;\n }",
"public void setContentLink(String contentLink) {\n this.contentLink = contentLink;\n if (contentLink != null) {\n this.content = null;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Mediafile__Group__2" $ANTLR start "rule__Mediafile__Group__2__Impl" InternalPlaylist.g:310:1: rule__Mediafile__Group__2__Impl : ( 'id:' ) ; | public final void rule__Mediafile__Group__2__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalPlaylist.g:314:1: ( ( 'id:' ) )
// InternalPlaylist.g:315:1: ( 'id:' )
{
// InternalPlaylist.g:315:1: ( 'id:' )... | [
"public final void rule__Mediafile__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPlaylist.g:275:1: ( rule__Mediafile__Group__1__Impl rule__Mediafile__Group__2 )\n // InternalPlaylist.g:276:2: rule__Mediafile__G... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Optional. An optional Cloud Storage path to write the query logs (which is then used as an input path on the translation task) string querylogs_path = 3 [(.google.api.field_behavior) = OPTIONAL]; | com.google.protobuf.ByteString getQuerylogsPathBytes(); | [
"java.lang.String getQuerylogsPath();",
"public void setCallLogsDatabasePath(String path);",
"public void setCallLogsDatabaseFile(String path);",
"public String getCallLogsDatabasePath();",
"public String getLogCollectionPath();",
"public LogStorageSettings setPath(Object path) {\n this.path = path... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Some status codes from the control plane are not appropritate to use in the data plane. If one is given it will be replaced with INTERNAL, indicating a bug in the control plane implementation. | public static Status replaceInappropriateControlPlaneStatus(Status status) {
checkArgument(status != null);
return INAPPROPRIATE_CONTROL_PLANE_STATUS.contains(status.getCode())
? Status.INTERNAL.withDescription(
"Inappropriate status code from control plane: " + status.getCode() + " "
... | [
"public interface StatusCodes\n{\n\n// ----------------------------------------------------------------------------\n// Reserved status codes: [E0-00 through FF-FF]\n// Groups:\n// 0xF0.. - Generic\n// 0xF1.. - Motion\n// 0xF2.. - Geofence\n// 0xF4.. - Digital input/output\n// 0xF6.. -... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
System.out.println(commonSubString("1234abc", "abc", 0, 0)); | public static void main(String[] args)
{
System.out.println(commonSubStringDB("1234abcdd", "abcdde"));
} | [
"public static void main(String[] args) {\n String str1 = \"ABABAB\";\n String str2 = \"ABAB\";//\n// String str1 = \"LEFT\";\n// String str2 = \"RIG\";\n String result = gcdOfStrings(str1, str2);\n System.out.println(\"result = \" + result);\n }",
"public boolean strC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method for loading a SaveFile object from a file created by the save() method and then loads it's Player and Room object into temporary variables for loading into the game. | public void load(String fileLocation){
try {
FileInputStream loadFile = new FileInputStream(fileLocation);
ObjectInputStream in = new ObjectInputStream(loadFile);
save = (SaveFile)in.readObject();
in.close();
loadFile.close();
} catch (Exceptio... | [
"public static Player loadSave () {\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader (new FileReader (\"TextFiles/SaveFiles/\" + FILE_NAME));\n\t\t\tint curLevel, money, num;\n\t\t\tcurLevel = Integer.parseInt(in.readLine());\n\t\t\tmoney = Integer.parseInt(in.readLine());\n\t\t\tnum = Integer.parseInt(in.r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build call for getFleetHosLogs | public com.squareup.okhttp.Call getFleetHosLogsCall(String accessToken, HosLogsParam1 hosLogsParam, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = hosLogsParam;
// c... | [
"public com.squareup.okhttp.Call getFleetHosLogsAsync(String accessToken, HosLogsParam1 hosLogsParam, final ApiCallback<HosLogsResponse> callback) throws ApiException {\n\n ProgressResponseBody.ProgressListener progressListener = null;\n ProgressRequestBody.ProgressRequestListener progressRequestListe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the agentCode value for this AirlineData. | public java.lang.String getAgentCode() {
return agentCode;
} | [
"public java.lang.String getAgencyCode() {\n return agencyCode;\n }",
"public void setAgentCode(java.lang.String agentCode) {\r\n this.agentCode = agentCode;\r\n }",
"public int getAgentId() {\n return agentId_;\n }",
"@Column(name = \"AGENCY_CODE\")\n\tpublic String getAgencyCode(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Iterates on all factories and append all collate names. | public static Set<String> getCollateNames() {
final Set<String> types = new HashSet<String>();
final Iterator<OCollateFactory> ite = getCollateFactories();
while (ite.hasNext()) {
types.addAll(ite.next().getNames());
}
return types;
} | [
"@SuppressWarnings(\"unchecked\")\n private Collection<ComplexFactory> getAllFactories()\n {\n return new MultiCollection<ComplexFactory>(this.factories,\n this.autoFactories);\n }",
"private void registerFactories() {\n\t\taddSpringBackedFactoryToFinder(createdContext);\n\t}",
"@Post... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets Profile First Name. | public String getFirstName() {
if ((mFirstName == null) && (getProfile() != null)) {
mFirstName = (String) getProfile().getPropertyValue(FIRST_NAME_PROFILE_PROP);
}
return mFirstName;
} | [
"public final String getNameFirst()\n\t{\n\t\treturn nameFirst;\n\t}",
"public java.lang.String getFirst_name() {\n return first_name;\n }",
"public String getFirstName() {\n return (String)getAttributeInternal(FIRSTNAME);\n }",
"public String getFirstName() {\r\n return (String)get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unsets the value for child leaf "minoraction". | public void unsetMinorActionValue() throws JNCException {
delete("minor-action");
} | [
"public void setMinorActionValue(YangEnumeration minorActionValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"minor-action\",\n minorActionValue,\n childrenNames());\n }",
"public void unsetMajorActionValue() throws JNCException {\n delet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the left encoder distance as inches | public double leftEncoderInches(){
return encoderInches(getEncoderLeft());
} | [
"public double getLeftWheelDistanceInches() {\n return rotationsToInches(getLeftWheelRotations());\n }",
"public double getLeftEncoder(){\n return leftEncoder.getDistance();\n }",
"public double getLeftDistance() {\n return leftEnc.getDistance();\n }",
"public double getLeftWheelDistan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the current drawing. | public Drawing drawing() {
return fDrawing;
} | [
"public Drawing getDrawing() {\r\n return drawing;\r\n }",
"public String getDrawing() {\n return this.drawing;\n }",
"public Graphics getCurrentGraphics() {\r\n return currentGraphics;\r\n }",
"@Override\r\n\tpublic Graphics getDrawingGraphics(){\r\n\r\n\t\treturn guiGraBuf.getD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Entry method to copy the specified Throwable, invoke copyThrowable(Throwable, HashMap) to check loop such that we don't go infinite. | private static Throwable copyThrowable(Throwable throwable) {
HashMap hashMapThrowable = new HashMap();
return copyThrowable(throwable, hashMapThrowable);
} | [
"void copyExceptionTable() throws IOException {\n int tableLength = c.copyU2(); // exception table len\n if (tableLength > 0) {\n traceln();\n traceln(\"Exception table:\");\n traceln(\" from:old/new to:old/new target:old/new type\");\n for (int tcnt = ta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the sql map client. | public SqlMapClient getSqlMapClient() {
return sqlMapClient;
} | [
"public static Map<String, Client> getClientMap() {\r\n return clientMap;\r\n }",
"public SqlManagementClientImpl getClient() {\n return this.client;\n }",
"public void setSqlMapClient(SqlMapClient sqlMapClient) {\n\t\tthis.sqlMapClient = sqlMapClient;\n\t\t\n\t}",
"public void setSqlMapClient(S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__PropertyInstance__PropertyValueAssignment_2" $ANTLR start "rule__ActionType__NameAssignment_1" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:29860:1: rule__ActionType__NameAssignment_1 : ( ruleQualifiedName ) ; | public final void rule__ActionType__NameAssignment_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:29864:1: ( ( ruleQualifiedName ) )... | [
"public final void rule__ActionProperty__NameAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:29894:1: ( ( ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether a new main protein (newAccession) of the new protein match (newProteinMatch) is better than another one main protein (oldAccession) of another protein match (oldProteinMatch). First checks the protein evidence level (if available), if not there then checks the protein description and peptide enzymaticity... | private int compareMainProtein(
ProteinMatch oldProteinMatch,
String oldAccession,
ProteinMatch newProteinMatch,
String newAccession,
SequenceProvider sequenceProvider,
ProteinDetailsProvider proteinDetailsProvider,
IdentificationParame... | [
"private boolean getSimilarity(\n String primaryProteinAccession,\n String secondaryProteinAccession,\n ProteinDetailsProvider proteinDetailsProvider\n ) {\n\n String geneNamePrimaryProtein = proteinDetailsProvider.getGeneName(primaryProteinAccession);\n String gene... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Transfer owner ship to user. | void transferOwnerShipToUser(List<String> list, String toEmail); | [
"public boolean placeShipUser(Ship ship) {\r\n return fieldUser.addShip(ship);\r\n }",
"public void setShipOwner(String value) {\n setAttributeInternal(SHIPOWNER, value);\n }",
"@Override\n public void transferAccountOwner(Customer c, Account a) {\n System.out.print(nSixTabs);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set submenu max height (to force scrolling in small applets) | public void setMaxHeight(double maxHeight) {
if (submenu != null) {
this.submenu.setMaxHeight((int) maxHeight);
}
} | [
"public void setMaxHeight(int value) {\n mMaxHeight = value;\n }",
"void setRefreshLayoutMaxHeight(int refreshLayoutMaxHeightInPx);",
"void setContentMaxHeight(String maxHeight);",
"public void setMaxHeight(float set){\n\t\tchMaxHeight = set;\n\t}",
"public void setMaxHeight(int value) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test method for second name getter and setter. (No validation on this field) | @Test
public void testGetSetSecondName() {
assertEquals(salNormal1.getSecondName(), "Computing");
salNormal1.setSecondName("Computers");
assertEquals(salNormal1.getSecondName(),"Computers");
} | [
"public void setSecondName(String secondName);",
"@Test\r\n public void testSetGetStudentLastName() {\r\n System.out.println(\"setStudentLastName and getStudentLastName\");\r\n SessionDTO instance = new SessionDTO();\r\n String expResult = \"lee\";\r\n instance.setStudentLastName(ex... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column sms_card.expieration_date | public Date getExpierationDate() {
return expierationDate;
} | [
"public Date getEXERCISE_DATE()\r\n {\r\n\treturn EXERCISE_DATE;\r\n }",
"public Date getExperathionDate() {\n\t\treturn experathionDate;\n\t}",
"@Column(name = \"INS_EXP_DT\")\n\t@Temporal(TemporalType.TIMESTAMP)\n\tpublic java.util.Date getInsuranceExpDate()\n\t{\n\t\treturn insuranceExpDate;\n\t}",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
constructor of user parent actor with certain parameters | @Inject
public UserParentActor(UserActor.Factory childFactory, String keyword) {
this.childFactory = childFactory;
this.keyword = keyword;
} | [
"ActorRef actorOf(ActorPath parent, String name, Props props);",
"public Parent(){\n }",
"ChildBot( String className, String creator, Session bot ) {\n m_bot = bot;\n m_creator = creator;\n m_className = className;\n }",
"public Actor(String name) {\n super(name)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the most appropriate resolution of the map for the given radius. Resolution is the number of hexadecimal digits used in geohashes. Currently only resolutions 4, 5, 6, and 7 are supported. | private static int getResolution(int rad) {
int res;
if(rad >= 625) {
res = 4;
} else if (rad >= 156) {
res = 5;
} else if (rad >= 39) {
res = 6;
} else {
res = 7;
}
return res;
} | [
"double getResolution();",
"public static float getZoomLevel(double radius) {\n return 16.5f - ((int)(Math.log(radius/1000) / Math.log(2)));\n }",
"public String getResolution() {\n return resolution;\n }",
"public double resolution(int zoom) {\n //return (2 * Math.PI * 6378137) / (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all BlogPosts written by given author. Finds and returns all BlogPost by Author's username. | @GetMapping("/api/blogposts/authorName/{authorName}")
public Iterable<BlogPost> getBlogPostsByAuthor(@PathVariable String authorName) {
return blogPostRepository.findByAuthorUsername(authorName);
} | [
"@GetMapping(\"/api/blogposts/author/{authorId}\")\n public Iterable<BlogPost> getBlogPostsByAuthorId(@PathVariable int authorId) throws UserNotFoundException {\n Optional<User> userOptional = userRepository.findById(authorId);\n\n if (userOptional.isPresent()) {\n return userOptional.ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
top "top" prediction accuracy | public float accuracy(JTensorFloat y_label, int top) {
if(dim.length != 2 || y_label.dim.length != 1 || dim[0] != y_label.dim[0]) {
throw new RuntimeException(String.format("Error in calculating precision. "
+ "This tensor dim: %s. Y tensor dim: %s", Arrays.toString(dim), Arrays.toString(y_label.dim)));
}
... | [
"private double findAccuracy(){\n double[] prediciton = this.learner.test(this.VS);\n ClassificationEvaluator CE = new ClassificationEvaluator(prediciton, this.VS);\n double tmp = CE.returnAccuracy(); //find accuracy\n return tmp;\n }",
"public void predict()\n {\n int cor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column ext_guar_inf.GUAR_SPOUSE_CERT_NUMBER | public void setGuarSpouseCertNumber(String guarSpouseCertNumber) {
this.guarSpouseCertNumber = guarSpouseCertNumber == null ? null : guarSpouseCertNumber.trim();
} | [
"public void setCERTIFICATE_NO(BigDecimal CERTIFICATE_NO) {\r\n this.CERTIFICATE_NO = CERTIFICATE_NO;\r\n }",
"public void setComNumber(long value) {\r\n this.comNumber = value;\r\n }",
"public void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);",
"public String getGuarSpouse... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Node resources that are reserved by all instances. optional .google.cloud.compute.v1.InstanceConsumptionInfo consumed_resources = 334527118; | com.google.cloud.compute.v1.InstanceConsumptionInfoOrBuilder getConsumedResourcesOrBuilder(); | [
"com.google.cloud.compute.v1.InstanceConsumptionInfo getConsumedResources();",
"com.google.cloud.compute.v1.InstanceConsumptionInfo getTotalResources();",
"com.google.cloud.compute.v1.InstanceConsumptionInfoOrBuilder getTotalResourcesOrBuilder();",
"@Parameters\n public static Collection resourceUsage() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the input relational expression. Throws if there is not precisely one input. | RelNode getInput(); | [
"@Override\n final public String getInputRelation() {\n return \"SELECT * FROM TR1_DB1_PROPHECY_Q5_INNER\";\n }",
"RelationalExpression createRelationalExpression();",
"Expression relExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = addExpression();\r\n\t\twhile(i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This method prints out the information regarding the section applied. | public void printSectionProperties(){
System.out.println("THE FOLLOWING ARE THE PROPERTIES OF THE "+name+" LIPPED CHANNEL SECTION");
System.out.println("************************************************************************");
System.out.println("The height of the section h = "+getHeight()+... | [
"public synchronized void printOutConditions() {\n System.out.println(\"==================== Condition in Section \"\n + this.getId() + \" ====================\");\n System.out.println(\"Section ID : \" + this.getId());\n System.out.println(\"Occupied : \" + this.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ I perform this null check, because I am having trouble with the startup of the program. The controller sets this waiting state before the GUI thread has finished its display code, hence the root pane doesn't exist. I could probably prevent it with some monitors or something, but I really don't want to go there. | public void setWaitingState() {
if (getRootPane() != null) {
getRootPane().setCursor(new Cursor(Cursor.WAIT_CURSOR));
}
} | [
"private void buildWaitScene(){\n\t\t//Nothing to do\n\t}",
"private void prepareVisibility() throws InterruptedException {\n synchronized (MONITOR) {\n while (windowApp.getPanelContent().isShow()) {\n MONITOR.wait();\n }\n }\n }",
"public void ensureGuiCrea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Copies 'productType' property of Product entity to FormDto instance's 'productTypeSelect' property. | protected void reflectProductTypeToDto(Product entity, FormDto dto) {
dto.getProductTypeSelect().setSelectedValue(extractProductTypeFromEntity(entity));
} | [
"protected void reflectProductTypeToEntity(FormDto dto, Product entity) {\r\n entity.setProductType(extractProductTypeFromDto(dto));\r\n }",
"protected ProductType extractProductTypeFromDto(FormDto dto) {\r\n return convertForEntity(dto.getProductTypeSelect().getSelectedValue(), ProductType.class... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getAge method, of class Animal. | @Test
public void testGetAge() {
System.out.println("Animal.getAge");
assertEquals(17, animal1.getAge());
assertEquals(3, animal2.getAge());
} | [
"public void testGetAge() {\n System.out.println(\"getAge\");\n Student instance = null;\n int expResult = 0;\n int result = instance.getAge();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"T... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Authenticate with Firebase, and request location updates | private void loginToFirebase(final String key) {
String email = getString(R.string.firebase_email);
String password = getString(R.string.firebase_password);
FirebaseAuth.getInstance().signInWithEmailAndPassword(
email, password).addOnCompleteListener(new OnCompleteListener<AuthRe... | [
"private void requestLocationUpdates(){\n if(googleApiClient.isConnected()){\n try{\n setLocationRequest();\n LocationServices.FusedLocationApi.requestLocationUpdates(googleApiClient, locationRequest, this);\n } catch (SecurityException ex) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
handles a request against an OGC web service | public void handleRequest( OGCWebServiceEvent event ) {
Debug.debugMethodBegin( this, "handleRequest" );
// call the dispatcher to handle the request
OGCWebServiceRequest request = event.getRequest();
if ( !( request instanceof WFSGetCapabilitiesRequest ) ) {
dispatche... | [
"public static String ncpiWSCall(AadhaarStatusRequest req, String url) throws Exception \r\n {\r\n \t String UWResponse_xml = \"\";\r\n \r\n String serviceEndPoint = \"https://nach.npci.org.in/CMAadhaar/AadhaarStatusService\";\r\n// String serviceEndPoint = url;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Letra__ColorLetraAssignment_3_1" $ANTLR start "rule__Letra__FuenteAssignment_4_1" ../org.xtext.estilos.ui/srcgen/org/xtext/ui/contentassist/antlr/internal/InternalEstilos.g:1529:1: rule__Letra__FuenteAssignment_4_1 : ( ruleEString ) ; | public final void rule__Letra__FuenteAssignment_4_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.estilos.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalEstilos.g:1533:1: ( ( ruleEString ) )
// ../org.xtext.es... | [
"public final void rule__Letra__ColorLetraAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.estilos.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalEstilos.g:1518:1: ( ( ruleEString ) )\n /... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the real column count, which is the greater of the number of Columns or the maximum index of a column with a defined column width. | protected int getRealColumnCount() {
return Math.max(getColumnCount(), maxColumnIndex + 1);
} | [
"int getNumOfColumns();",
"public int getNumColumns() {\n\t\treturn field_4_last_col - field_2_first_col + 1;\n\t}",
"public int getNumColumns();",
"int getColumnsWidth() {\r\n\t\tfinal int size = columns.size();\r\n\t\tColumn col;\r\n\t\tint sum = 0;\r\n\t\t//\r\n\t\tfor (int i = idxFirstVisibleColumn; i < s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ public static String conocidosToString(List conocidos) Param : conocidos : Lista de todos los nodos conocidos Return: String de todos los nodos conocidos concatenados. | public static String conocidosToString(List<String> conocidos){
String s = "";
for(int i= 0; i<conocidos.size(); i++){
String c = conocidos.get(i);
s = s + c + " ";
}
return s;
} | [
"public static String concatenar(Object[] lista){\n String cadena = \"\";\n for(Object item: lista){\n cadena += item.toString();\n }\n return cadena;\n }",
"private String crearStringRadicadoprincipal(Caso caso) {\n\t\tStringBuilder strBuilder = new StringBuilder();\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
readMeTest.bestSeq(omega2, false); readMeTest.maxScore(omega2, false); | @Test
public void test2bestSeq() {
} | [
"@Test\n\tpublic void test7bestSeq() {\n\t\treadMeTest.maxScore(omega7, true);\n\t}",
"@Test\n\tpublic void test1bestSeq() {\n\t}",
"@Test\n\tpublic void test4bestSeq() {\n\t}",
"@Test\n\tpublic void test5bestSeq() {\n\t}",
"@Test\n\tpublic void testDnaBestSeq() {\n\t}",
"@Test\n\tpublic void test6bestSeq... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new knowledge base manager. | public KnowledgeBaseManager(String agentId){
this.agentId = agentId;
memManager = new MemoryManager(agentId);
memManagerWriter = new MemoryManagerWriter(agentId);
} | [
"Manager createManager();",
"public Manager() {\n entityManager = new EntityManager();\n systemManager = new SystemManager();\n initSystems();\n }",
"public AdvancedWorkflowManager() {\n //System.out.println(\"AdvancedWorkflowManager#AdvancedWorkflowManager: New WorkflowManager\")... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates marshaller with given descriptor and bounds by default bindings and other elements to given namespace. | protected BaseModelMarshaller(Descriptor desc, String defaultNamespace) {
super(desc);
_namespace = defaultNamespace;
register(_namespace, CONTEXT_MAPPER, new ModelCreator<Model>() {
@Override
public V1ContextMapperModel create(Configuration config, Descriptor descriptor... | [
"BindingDefinition createBindingDefinition();",
"public interface IBindingFactory\n{\n /** Current binary version number. This is a byte-ordered value, allowing\n for two levels of major and two levels of minor version. */\n static final int CURRENT_VERSION_NUMBER = 0x00030000;\n \n /** Current di... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Update the Flash shapes to match the new size, and reposition the header, shadow, and handle accordingly. Also adjusts the width of the entries and stuff, and makes sure there is room for all the entries. | @Override
protected void updateSize()
{
if(_height < _watching.size*LINE_HEIGHT + 17)
_height = _watching.size*LINE_HEIGHT + 17;
super.updateSize();
//_values.x = _width/2 + 2;
int i = 0;
int l = _watching.size;
while(i < l)
_watching.get(i++).updateWidth(_width/2,_width/2-10);
} | [
"private void updateElementsForSize(){\n int size = Math.min( getWidth(),getHeight());\n setBackgroundPaint( new GradientPaint( 0,0, Color.gray, size,size, Color.darkGray));\n\n\n if( size > 0 ){\n float buttonOffset = size * .04f * .03f;\n float buttonRadius = size * .04f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column TB_CHECK_RECORD.PC_ID | public void setPcId(BigDecimal pcId) {
this.pcId = pcId;
} | [
"public void setPCID(String ID)\n { \n PCID = ID;\n }",
"public void setPCDID(long value) {\r\n this.pcdid = value;\r\n }",
"@Test\n public void testSetPCID() {\n System.out.println(\"setPCID\");\n int pcid = 0;\n PhoneConvRecord instance = new PhoneConvRecord()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Formats the textbox to have underscores for missing letters, but displays letters that are correctly guessed | private void updateTextBox(){
String tmpWord = game.getTempAnswer().toString();
String toTextBox = "";
StringBuilder sb = new StringBuilder(tmpWord);
//if a letter is blank in the temp answer make it an underscore. Goes for as long as the word length
for (int i = 0; i<tmpWord.length();i++){
if(sb.charAt(i... | [
"private String formatLatex(String text){\r\n\r\n String output=text.replaceAll(\"_\",\"-\");\r\n\r\n return output;\r\n }",
"public String ashumanReadableText(String text) {\r\n\r\n String outputText = text.trim();\r\n\r\n if (text.contains(\"_\")) {\r\n outputText = Str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the String sort key for this recommendation. | public @Nullable String getSortKey() {
return mSortKey;
} | [
"abstract String getSortKey();",
"@Override\n public Comparable getSortKey() {\n return sortOrder == null ? label : sortOrder;\n }",
"public String getDisplaySortKey() {\n return displaySortKey;\n }",
"java.lang.String getStrkey();",
"public String getScoreSort() {\n\t\treturn prefs.getStri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To precompute prime numbers | static void preComp_Prime() throws Exception{
int[] a = new int[mx];
int[] ans = new int[mx];
Arrays.fill(a, 1);
a[0]=0;
a[1]=0;
for(int i=2;i*i<=1000000;i++) {
for(int j=i*i;j<=1000000;j+=i) {
a[j]=0;
}
}//precomp done
for(int i=2;i<=1000000;i++) {//Checking if the sum of 2 primes is a prime ... | [
"public static void calculatePrimeNumbers(){\n int NUM = 5000000;\n\n boolean[] flags = new boolean[NUM + 1];\n\n int count = 0;\n\n for(int i = 2; i <= NUM; i++) {\n primeNumberFlagOperation(flags, i);\n }\n\n for(int i = 2; i <= NUM; i++) {\n if(flag... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new resender. | public Resender(RetryPolicy retryPolicy) {
this.retryPolicy = retryPolicy;
} | [
"Ressource createRessource();",
"public ResManager()\n {\n }",
"public ResourceGenerator() {\n\t}",
"RDRS createRDRS();",
"RDRE createRDRE();",
"public ReporteResource() {\n }",
"ResourceAdapter createResourceAdapter();",
"public RequerimientoResource() {\r\n }",
"RADR createRADR();",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
METODO EXTERNO PARA CALCULAR EL NODO MAYOR DE UN ARBOL | public void May()
{
int may=0;
calcMay(raiz);
System.out.println("El mayor promedio es: "+may);
} | [
"public int getMonth() { return number; }",
"int getExpMonth(String bookingRef);",
"public boolean esMayorDeEdad(){\r\n \t\tboolean mayor=false;\r\n \t\tif (obtenerAnios()>=18){\r\n\t\t\tmayor=true;\r\n\t\t}\r\n\t\treturn mayor;\r\n\t}",
"private String getMonthMarsDayOfMonth(int dayOfYearMars) {\n\n /... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method for drawing favorite icon when true/false | public void drawFav(Recipe r, ImageView favIcon) {
int imgFav;
if (r.isFavorite()) {
imgFav = getResources().getIdentifier("favstarylw", "drawable", getPackageName());
} else {
imgFav = getResources().getIdentifier("favstargrey", "drawable", getPackageName());
}
... | [
"public void onFavouritesIconPressed() {\n if (currentAdvertIsFavourite()) {\n dataModel.removeFromFavourites(advertisement);\n view.setIsNotAFavouriteIcon();\n } else {\n dataModel.addToFavourites(advertisement);\n view.setIsAFavouriteIcon();\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Testing get meeting contacts Should return the Set testContacts | @Test
public void testGetContacts() {
assertTrue(testMeeting.getContacts().containsAll(testContacts));
} | [
"public Set<Contact> getContacts() {\n return contactsOfMeeting;\n }",
"@Test\n\tpublic void getContactsInAdressBookTest() {\n\t\tSet<Contact> contacts = manager.getContacts(\"friends\");\n\t\tassertTrue(contacts.contains(new Contact(\"Archie\")));\n\t\tassertTrue(contacts.contains(new Contact(\"Betty\")));\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form GamePanel | public GamePanel() {
initComponents();
setting();
} | [
"public void newGame()\n\t{\n\t\tthis.setVisible(false);\n\t\tthis.playingField = null;\n\t\t\n\t\tthis.playingField = new PlayingField(this);\n\t\tthis.setSize(new Dimension((int)playingField.getSize().getWidth()+7, (int)playingField.getSize().getHeight() +51));\n\t\tthis.setLocation(new Point(200,20));\n\t\tthis.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert a long value to a byte array using bigendian. | public static byte[] toBytes(long val) {
byte [] b = new byte[8];
for (int i = 7; i > 0; i--) {
b[i] = (byte) val;
val >>>= 8;
}
b[0] = (byte) val;
return b;
} | [
"public static byte[] toBytes(long val) {\n byte[] b = new byte[8];\n for (int i = 7; i > 0; i--) {\n b[i] = (byte) val;\n val >>>= 8;\n }\n b[0] = (byte) val;\n return b;\n }",
"public static byte[] longToBytes(long x){\n ByteBuffer buffer = ByteBuff... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if constructor that creates list with another collection works. | @Test
void testConstructoAnotherCollection() {
LinkedListIndexedCollection l1 = new LinkedListIndexedCollection();
LinkedListIndexedCollection l2 = new LinkedListIndexedCollection(l1);
if(l2.equals(null)) {
fail();
}
} | [
"private CSAskCollectionList() {}",
"@Test\n\tvoid testConstructorThrowsException() {\n\t\t\n\t\ttry {\n\t\t\tLinkedListIndexedCollection l1 = new LinkedListIndexedCollection(null);\n\t\t}catch(NullPointerException ex) {return;}\n\t\t\n\t\tfail();\n\t\t\n\t\t\t\n\t}",
"private Lists() { }",
"public static boo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new mapa gmm vo. | public MapaGmmVO() {
super();
// TODO Auto-generated constructor stub
} | [
"public MapaGmmVO(long idMapaGmm, String nombreMapaGmm,\r\n\t\t\tString descripcionMapaGmm, Date fechaAlta, Date fechaModificacion,\r\n\t\t\tString nombreProcesoSi, long idEstatusObjeto,\r\n\t\t\tString nombreEstatusObjeto) {\r\n\t\tsuper();\r\n\t\tthis.idMapaGmm = idMapaGmm;\r\n\t\tthis.nombreMapaGmm = nombreMapaG... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__SetProcess__Group__6__Impl" $ANTLR start "rule__SetExecTime__Group__0" InternalDsl.g:26327:1: rule__SetExecTime__Group__0 : rule__SetExecTime__Group__0__Impl rule__SetExecTime__Group__1 ; | public final void rule__SetExecTime__Group__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDsl.g:26331:1: ( rule__SetExecTime__Group__0__Impl rule__SetExecTime__Group__1 )
// InternalDsl.g:26332:2: rule__SetExecTime__Group__0__Imp... | [
"public final void ruleSetExecTime() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:3567:2: ( ( ( rule__SetExecTime__Group__0 ) ) )\n // InternalDsl.g:3568:2: ( ( rule__SetExecTime__Group__0 ) )\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Whether or not to return the analyzed text | @JsonProperty("return_analyzed_text")
@ApiModelProperty(value = "Whether or not to return the analyzed text")
public Boolean getReturnAnalyzedText() {
return returnAnalyzedText;
} | [
"public String getAnalyzedText() {\n return analyzedText;\n }",
"boolean isParalyzed();",
"boolean hasTextDetectionConfig();",
"boolean getOutputPartialsBeforeLanguageDecision();",
"boolean hasRecoveryFakeWord();",
"boolean hasHas_type_of_sentence();",
"boolean getLiteratureText();",
"boolean hasT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Saves the data of all online players. | public void saveAllPlayers() {
for (Player player : bukkitService.getOnlinePlayers()) {
savePlayer(player);
}
} | [
"public void savePlayers() {\n\t\tfor(String key : players.keySet()) {\n\t\t\tinsertOrUpdate(key);\n\t\t}\n\t}",
"public void save()\n\t{\n\t\tfor(PlayerData pd : dataMap.values())\n\t\t\tpd.save();\n\t}",
"protected void saveAllData() {\n synchronized (playerDataListLock) {\n for (PData pDa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a sticker to the message. This will only work if the sticker is from the same server as the message will be sent on, or if it is a default sticker. | public MessageBuilder addSticker(long stickerId) {
delegate.addSticker(stickerId);
return this;
} | [
"public MessageBuilder addSticker(Sticker sticker) {\n delegate.addSticker(sticker.getId());\n return this;\n }",
"StickerTransmitter getStickerTransmitter();",
"public void sendSticker() {\n\t\t\n\t\tclickOnStickers();\n\t\t\n\t\ttry {\n\t\t\tWebElement firstSticker = driver.findElements(allSt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |