query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Constructor for objects of class Die | public Die()
{
// nothing to be constructed
} | [
"public Die()\r\n\t{\r\n\t\tthis.dieIndex = 0;\r\n\t\tthis.loadedDie = false;\r\n\t\tthis.loadedDieRolls = new int[0];\r\n\t}",
"public Die() {\n dieValue = 1;\n sides = 20;\n }",
"public Die(int sides)\n {\n this.sides = sides;\n }",
"public Die()\n {\n sides = 6;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
PURPOSE: This method tests for inserting data for inheritance EXPECTED BEHAVIOUR: parent data should be inserted before the child. TEST CASE FLOW: 1. Create following hierarchy Specimen (barcode and label) | | tissueSpecimen (quantityInCellCount) | | | | | | advanceTissueSpecimenA advanceTissueSpecimenB (newAttributeA)... | public void testEditDataForInheritance()
{
EntityManagerInterface entityManagerInterface = EntityManager.getInstance();
DomainObjectFactory factory = DomainObjectFactory.getInstance();
try
{
// Step 1
EntityInterface specimen = factory.createEntity();
specimen.setName("specimen");
spec... | [
"public void testInsertDataForInheritance()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column groom.belong_type | public Integer getBelongType() {
return belongType;
} | [
"RoomType getRoomType();",
"java.lang.String getRelationType();",
"String getRelationType();",
"int getRoomType();",
"public void setBelongType(Integer belongType) {\r\n this.belongType = belongType;\r\n }",
"public String getRoomType() {\r\n return roomType;\r\n }",
"public CellType... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for f_Heading19 called 1 times. Type: DEFAULT. Build precedence: 5. | private org.gwtbootstrap3.client.ui.Heading get_f_Heading19() {
return build_f_Heading19();
} | [
"private org.gwtbootstrap3.client.ui.Heading get_f_Heading18() {\n return build_f_Heading18();\n }",
"private org.gwtbootstrap3.client.ui.Heading get_f_Heading71() {\n return build_f_Heading71();\n }",
"private org.gwtbootstrap3.client.ui.Heading get_f_Heading99() {\n return build_f_Heading... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
setDoorIsLocked returns true if the door is locked, and otherwise false | public void setDoorIsLocked(boolean isLocked)
{
this.isLocked = isLocked;
} | [
"public boolean getDoorIsLocked()\n {\n return isLocked;\n }",
"public boolean isLocked() {\n\t\t//if all doors are false (meaning they are not open) then room is locked\n\t\tfor (boolean door : myDoors) {\n\t\t\tif (door) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public vo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test the buildHotel method | @Test
public void buildHotelTest() {
PropertySquare square = new PropertySquare("GVSU", 20, 5000, 100, 100,
200, 300, 400, 500, 1000, 0,
100, 200, 3);
assertFalse("square should have no hotel", square.isHasHotel());
player.setWallet(200);
player... | [
"@Test\n public void hotelsFoundWithCityAndReservationType() {\n \tassertNotNull(hotelService);\n SearchHotelRequest searchHotelRequest = createSearchHotelRequest1();\n \n when(hotelRepository.findAll(createPredicate1())).thenReturn(createIterableHotel1());\n List<HotelResource> ho... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deletes a ActivityType from the data store. | void deleteActivityType(int id) throws DataAccessException; | [
"public String deleteActivity(ActivityTypeTable at) throws SQLException {\n String sql = \"DELETE FROM ActivityType WHERE activityType = ?\";\n PreparedStatement deleteStm = connectionSQL().prepareStatement(sql);\n deleteStm.setString(1, at.getActivityType());\n deleteStm.execute();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculate the matching score lstOCRedWords: The list of words OCRed from the pictures taken by the user | public static double calculateMatchingScoreWithSingleWeight(List<String> lstOCRedWords, List<AL_KeywordWeight> lstPlaceKeywordWeight) {
double fMatchingScore = 0.0f;
for (String sOCRedWord:lstOCRedWords) {
for (int i=0; i<lstPlaceKeywordWeight.size(); i++) {
if (sOCRedWord.compareToIgnoreCase(lstPl... | [
"public static List<Integer> matchOCRedWordsWithPlaceNames(List<String> lstCandidatePlaceNames, List<String> lstAllOCRedWords) {\r\n\t\tList<Integer> lstnMatchedPlaceIdx = null;\r\n\t\tList<Integer> lstnHitCnt = new ArrayList<Integer>();\r\n\t\tint i;\r\n\t\tint nHitCnt = 0;\r\n\t\tint nMaxHit = 0;\r\n\t\t\r\n\t\ti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use MsEasyLogin.newBuilder() to construct. | private MsEasyLogin(Builder builder) {
super(builder);
} | [
"private MsLogin(Builder builder) {\n super(builder);\n }",
"private McEasyLogin(Builder builder) {\n super(builder);\n }",
"private SCLogin(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"priva... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Expr Number'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseExprNumber(ExprNumber object)
{
return null;
} | [
"public T caseNumber(org.uis.lenguajegrafico.lenguajegrafico.Number object)\n {\n return null;\n }",
"public static Number number(Object object){\n if (object instanceof Number){\n return (Number)object;\n }\n else if (object instanceof Boolean){\n return ((Boo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for ProductCategory object | public ProductCategory(int category_id, String categoryName) {
this.category_id = category_id;
this.categoryName = categoryName;
} | [
"public Category() {\n\t\tsuper();\n\t}",
"public Category(String name) {\n super(name);\n }",
"public UnimCategory () {\n\t\tsuper();\n\t}",
"public Product() {}",
"public Product() {\n\t\t// Start of user code constructor for Product)\n\t\tsuper();\n\t\t// End of user code\n\t}",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Assign a shadow to the shape. | public final native void setShadow(Shadow shadow) /*-{
this.setShadow({
color: shadow.@net.edzard.kinetic.Shadow::getColour()().@net.edzard.kinetic.Colour::toString()(),
blur: shadow.@net.edzard.kinetic.Shadow::getBlur()(),
offset: [shadow.@net.edzard.kinetic.Shadow::getOffset()().... | [
"public void addShadow() {\n startShadow();\n }",
"@DISPID(103)\n @PropPut\n void setShadow(\n boolean rhs);",
"public void setShadow(boolean shadow) {\n this.shadow = shadow;\n }",
"public RMShadowEffect() { setColor(new RMColor(0, 0, 0, .65f)); }",
"public RMShadowEffect(RMColor ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get customer by id | @Override
public Customer getCustomerById(long id) {
return customerRepo.findById(id).get();
} | [
"Customer getCustomerById(final Long id);",
"public Customer get(Long id);",
"@Override\n public Customer getCustomerById(@PathParam(\"id\") long id)\n {\n System.out.println(\"Handling resource request for /customer/\" + id);\n return findCustomerById(id);\n }",
"@Override\r\n\tpublic ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Individually Check if toString value of each ExpectedValue (nonprocess) is part of the toString value of TestValue (nonprocessed) | final protected void assertRAWStringContains(Object pTestValue, Object ... pExpectedValues) {
if((pExpectedValues == null) || (pExpectedValues.length == 0)) {
if(!this.isQuiet()) {
this.printTestNumber();
this.println("Skiped");
}
return;
}
String Str = this.toString(pTestValue);
for(int i = 0... | [
"public void testGetValues() {\n\t\tassertEquals(1, mySpikeOutput.getValues().length);\n\t\tassertEquals(true, mySpikeOutput.getValues()[0]);\n\t}",
"public String doTests(){\r\n\r\n\t\toverAllTestResult = \"0 (VALID)\" ;\r\n\t\t\r\n\t\tArrayList<Boolean> rowTester = new ArrayList<Boolean>(Collections.nCopies(9, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find the parent of x from the tree. | private static int findXParent(final TreeNode node, final int x) {
if (node == null) return -1;
if (node.left != null && node.left.val == x) return node.val;
if (node.right != null && node.right.val == x) return node.val;
int left = findXParent(node.left, x);
if (left != -1) ret... | [
"public TreeNode getParentNode();",
"private Node predecessorNode(Node x)\n {\n if (x.left != nil) {\n return maximumNode(x.left);\n }\n\n Node y = x.parent;\n while (y != nil && x == y.left) {\n x = y;\n y = x.parent;\n }\n\n return y;\n }",
"public int parent(int v) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Insert base data list. | void insertBaseDataList(List<BaseData> list); | [
"public void insert(List<T> entity) throws NoSQLException;",
"private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n MonitoriaEntity entity = factory.manufacturePojo(MonitoriaEntity.class);\r\n\r\n em.persist(entity)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column section.basicprice | public void setBasicprice(BigDecimal basicprice) {
this.basicprice = basicprice;
} | [
"public void setBasicPrice(Double basicPrice) {\n\t\tthis.basicPrice = basicPrice;\n\t}",
"public BigDecimal getBasicprice() {\n return basicprice;\n }",
"public void setPrice() {\n this.price = 37.99;\n }",
"public void setPrice(double price);",
"public Double getBasicPrice() {\n\t\tret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table PDSCI.AID_TALENTS | List<AidTalents> selectByExample(AidTalentsExample example); | [
"AidTalents selectByPrimaryKey(String talentsFlow);",
"TeacherCourseArrangement selectByPrimaryKey(Integer caId);",
"ac_teacher_instrument selectByPrimaryKey(Integer acTeacherInstrumentId);",
"PrairieAreaTactics selectByPrimaryKey(Long id);",
"public Taluka getTaluka(int talukaId);",
"TdxCompanyTaxArrears... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for property commandCode. | public void setCommandCode(int commandCode) {
this.commandCode = commandCode;
} | [
"public void setCommandCode(java.lang.String commandCode) {\n this.commandCode = commandCode;\n }",
"public int getCommandCode() {\n return commandCode;\n }",
"public java.lang.String getCommandCode() {\n return commandCode;\n }",
"protected abstract byte getCommandCode();",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table bs_district | BsDistrict selectByPrimaryKey(Long districtId); | [
"public void setDistrict(int district) { this.district = district; }",
"public void setDistrict(String district) {\r\n this.district = district;\r\n }",
"public List<District> findAllDistrict();",
"public String getDistrict() {\r\n return district;\r\n }",
"@GetMapping(\"/schooldistricts... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use NotifyChatGroupMemberChangedReqMsg.newBuilder() to construct. | private NotifyChatGroupMemberChangedReqMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"private NotifyChatGroupMemberChangedRspMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private NotifyGroupChatMessageReqMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private NotifyFriendChangedReqMsg(com.googl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the number of disabled plugins. | public int getNumberOfDisabledPlugins()
{
return m_disabledPlugins.size();
} | [
"public int getGpioPluginCount() {\n return gpioPlugin_.size();\n }",
"int getPluginsCriticalPathCount();",
"int moduleCount() {\n\t\treturn modules.size();\n\t}",
"@ApiModelProperty(value = \"The number of disabled components in the NiFi.\")\r\n public Integer getDisabledCount() {\r\n return disa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Closes the internal file writer (as defined in FileWriter.close()). After closing, the ResultWriter should not be used anymore. Further calls of the ResultWriter will be logged to Log4J with error messages, as if no file writer could be initialised. Multiple calls of close() have no effect. | public void close(){
if (this.fileWriter != null){
try {
this.fileWriter.flush();
this.fileWriter.close();
this.fileWriter = null;
} catch (IOException e) {
logger.error("Cannot close the file handle "+this.myfilename+". Your results might be lost. Cause: "+e.getMessage());
e.printSt... | [
"public synchronized void close() {\n try {\n if(writer!=null) {\n writer.close();\n }\n } catch (IOException e) {\n LOGGER.error(\"Could not close \"+getFileName());\n }\n }",
"public void closeWriter () {\n try {\n writer.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column TRS_SYN_SETLMT_ACC.MT103_BENEF_ADDRESS2 | public String getMT103_BENEF_ADDRESS2() {
return MT103_BENEF_ADDRESS2;
} | [
"public String getBENEF_ADDRESS_2() {\r\n return BENEF_ADDRESS_2;\r\n }",
"public String getMT103_BENEF_ADDRESS1() {\r\n return MT103_BENEF_ADDRESS1;\r\n }",
"public void setMT103_BENEF_ADDRESS2(String MT103_BENEF_ADDRESS2) {\r\n this.MT103_BENEF_ADDRESS2 = MT103_BENEF_ADDRESS2 == nul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for the Human Class asks the User Interactively what the name of the new Human Player Object will be. That is the only Instance Variable assigned to every Human Player Object. | public Human() {
name = JOptionPane.showInputDialog("Enter The Name Of The Human: ") ;
} | [
"public HumanPlayer(String name) {\n\t\tsuper(name);\n\t}",
"Player(String aName)\r\n {\r\n this.playerName = aName;\r\n this.playerHand = new Hand();\r\n }",
"public Player(){\n this.name = \"anonymous\";\n }",
"private void createHumanPlayer() {\n humanPlayer = new Playe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "RULE_KW_BREAK" $ANTLR start "RULE_KW_BUILTIN_CHOOSE_EXPR" | public final void mRULE_KW_BUILTIN_CHOOSE_EXPR() throws RecognitionException {
try {
int _type = RULE_KW_BUILTIN_CHOOSE_EXPR;
int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalParser.g:29748:29: ( RULE_SKW_UNDERSCORE RULE_SKW_UNDERSCORE 'builtin_choose_expr' )
// I... | [
"SwitchExpression createSwitchExpression();",
"public final AntlrDatatypeRuleToken ruleOpCompare() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token kw=null;\n\n enterRule(); \n \n try {\n // ../org.xtext.scr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Refill the queue with the allowed number of requests | private void refill() {
if (getNbActiveRequests() < downloadThreadCount) {
waitDisposable.add(Completable.fromRunnable(this::doRefill)
.subscribeOn(Schedulers.computation())
.observeOn(Schedulers.computation())
.subscribe(Helper.EMPTY_ACTIO... | [
"private synchronized void doRefill() {\n long now = Instant.now().toEpochMilli();\n int allowedNewRequests = getAllowedNewRequests(now);\n while (0 == allowedNewRequests && 0 == getNbActiveRequests()) { // Dry queue\n Helper.pause(250);\n now = Instant.now().toEpochMilli(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor that sets our click handler for the adapter | public MovieAdapter(OnClickHandler clickHandler) {
mClickHandler = clickHandler;
} | [
"private void setOnClickListener() {\n listener = new adviceActivityAdapter.RecyclerViewClickListener() {\n @Override\n public void onClick(View v, int pos) {\n Log.v(TAG, \"Item in Rview Clicked!\");\n ClickedButton(pos);\n }\n\n };\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get number of nodes that are using the policy whose protection status is warning. | public int getWarningNodeCount() {
return warningNodeCount;
} | [
"public static int warnings() {\n return WARNINGS.get();\n }",
"int getFraudwarningsCount();",
"public int getAvailableNodeCount();",
"int getUnreachableCount();",
"int getNodeStatusListCount();",
"public int getHealthyNodeCount() {\n return getHealthyNodes().size();\n }",
"public double g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
API allowing to search for documents allowing to have mutliple entries per locale | public List<Document> searchDocuments(String wheresql, boolean distinctbylocale) throws XWikiException
{
return convert(this.xwiki.getStore().searchDocuments(wheresql, distinctbylocale, getXWikiContext()));
} | [
"DocumentSearchResults lookupDocuments(String principalId, DocumentSearchCriteria criteria, boolean saveSearch);",
"DocumentSearchResults lookupDocuments(String principalId, DocumentSearchCriteria criteria);",
"private Object searchDocument(Request request) {\n\t\tSystem.out.println(\"##==> Search Document: \" ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the index within this bytearray of the first occurrence of the specified(search bytes) byte array. | public int indexOf(byte[] srcBytes, byte[] searchBytes) {
final int startIndex = 0;
final int endIndex = srcBytes.length - 1;
return indexOf(srcBytes, searchBytes, startIndex, endIndex);
} | [
"public static int search(byte[] byteArray, byte value) { \n // Search for the first occurrence in the array\n return LinearSearch.search(byteArray, value, 1);\n }",
"public int indexOf(byte[] srcBytes, byte[] searchBytes, int startIndex) {\r\n\t\tfinal int endIndex = srcBytes.length - 1;\r\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Stops the Oven timer, ending the baking process of the pastry. | public void stop() {
if (isOn == true) {
System.out.println("Oven timer stopped");
timer.stop();
isOn = false;
}
} | [
"TimeInstrument stop();",
"public void stop() {timer.stop();}",
"public void Stop(){\n System.err.println(\"TOO HEAVY, EMERGENCY BRAKES ON\");\n brakeStatus = true;\n }",
"void stop() {\n timer.stop();\n }",
"private void endBreak(){\n\tDo(name + \" is back from break!\");\n\thost.ms... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Devuelve las preguntas que contienen el tag especificado. | public List<Pregunta> getPreguntasConTag(String tag); | [
"public List<Pregunta> getPreguntasConTag(TagPregunta tag);",
"public String getTagPattern() {\n return tagPattern;\n }",
"public void procesarTags() {\n\t\tfor (Tag tag : Tags) {\n\t\t\tthis.Arbol.insert(tag);\n\t\t}\n \n ArrayList<String> Array = new ArrayList();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Metodo que valida o Cep. | @Override
public void validZipCode(String cep) throws BusinessException {
if (cep.length() != 8) {
throw new BusinessException("CEP invalido - deve conter 8 digitos: " + cep);
}
if(utilBusiness.hasLetter(cep)){
throw new BusinessException("CEP invalido - deve conter apenas numeros.");
... | [
"public void setCep(java.lang.String cep) {\n this.cep = cep;\n }",
"public void validaCpf(String cpf)throws RegraExceptionCliente{\r\n if ((cpf == null)||(cpf.isEmpty())){\r\n throw new RegraExceptionCliente(\"CPF Invalido\");\r\n }\r\n }",
"public static boolean isCpfInva... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
calculate value of all owned land | public static double calculateTotalLandValue(final int ownedLand) {
double amount = 0;
for (int x = 0; x < ownedLand; x++) {
amount += Econ.calculateClaimCost(x, false);
}
return amount;
} | [
"public double getLandArea();",
"public double totalLandRevenue(){\n ArrayList<Safety> safeTransport = this.getSafeOperations();\n double r = 0;\n for(int i = 0; i < safeTransport.size(); i++){\n if(safeTransport.get(i) instanceof Land){\n r+= ((Transport)safeTransport.get(i)).revenue();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test the retrieve bundle by location method. Verify that the correct bundle model is returned. | @Test
public void testRetrieveBundleByLocation() throws SecurityException, NoSuchFieldException, IllegalArgumentException,
IllegalAccessException
{
BundleModel bundle = addBundleToMap(Bundle.ACTIVE);
//Verify that the bundle model is retrieved when the proper controller ID and b... | [
"public AbstractBundle getBundleByLocation(String location) {\n \t\treturn (framework.getBundleByLocation(location));\n \t}",
"protected Bundle getBundle(String location)\n {\n synchronized (m_installedBundleLock_Priority2)\n {\n return (Bundle) m_installedBundleMap.get(location);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column ec_audio_video.file_blob | public String getFileBlob() {
return fileBlob;
} | [
"java.sql.Blob getABlobDataSourceValue();",
"String getBlobField();",
"public String getBlobId() {\n return this.blobId;\n }",
"java.sql.Blob getABlob();",
"public int blobDbType() {\n return blobDbType;\n }",
"public org.hl7.fhir.Base64Binary getBlob()\n {\n synchronized (monitor(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .speech.HlmConfig.RelabelType relabel_type = 4 [default = RELABEL_BOTH]; | @java.lang.Override public com.google.speech.fst.HlmConfigProto.HlmConfig.RelabelType getRelabelType() {
@SuppressWarnings("deprecation")
com.google.speech.fst.HlmConfigProto.HlmConfig.RelabelType result = com.google.speech.fst.HlmConfigProto.HlmConfig.RelabelType.valueOf(relabelType_);
return result ... | [
"com.google.speech.fst.HlmConfigProto.HlmConfig.RelabelType getRelabelType();",
"@java.lang.Override\n public com.google.speech.fst.HlmConfigProto.HlmConfig.RelabelType getRelabelType() {\n @SuppressWarnings(\"deprecation\")\n com.google.speech.fst.HlmConfigProto.HlmConfig.RelabelType result = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Depending on the class of the Geometry to be split, found the correspondent class responsible of doing the split operation. | private SpecificSplitOp findSplitStrategy(Class<?> geomToSplitClass) {
assert strategies.containsKey(geomToSplitClass) : Messages.SplitStrategy_illegal_geometry + geomToSplitClass;
return strategies.get(geomToSplitClass);
} | [
"public List<Geometry> split(Geometry geomToSplit);",
"private static interface SpecificSplitOp {\n\t\t/**\n\t\t * LineString used for splitting; as provided by the user.\n\t\t * \n\t\t * @param splitLine\n\t\t * LineString used by the split method to break up geometry\n\t\t * one by one.\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes a value of property ContentGroupDescription as an RDF2Go node | public static void removeContentGroupDescription( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {
Base.remove(model, instanceResource, CONTENTGROUPDESCRIPTION, value);
} | [
"public void removeContentGroupDescription( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), CONTENTGROUPDESCRIPTION, value);\r\n\t}",
"public void removeContentGroupDescription(java.lang.String value) {\r\n\t\tBase.remove(this.model, this.getResource(), CONTENTGROUP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets ith "Lanes" element | org.landxml.schema.landXML11.LanesDocument.Lanes getLanesArray(int i); | [
"java.util.List<org.landxml.schema.landXML11.LanesDocument.Lanes> getLanesList();",
"public ArrayList<Lane> getLanes() {\r\n return lanes;\r\n }",
"public HashSet<Lane> getLanes() {\n\t\treturn lanes;\n\t}",
"public static java.util.Iterator<org.semanticwb.process.model.Lane> listLanes()\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parse the remainder of argv into a sequence of action ranges | private static Map<Statement, ActionRange> rangesFromArgv(String[] args, int index) {
Map<Statement, ActionRange> ranges = new LinkedHashMap<>();
while (index < args.length) {
String keyword = args[index++];
ActionRange actionRange;
int start = parseInt(args[index++])... | [
"private void parseArgs() {\n if (args.length != 2 && args.length != 4) {\n printUsageError(\"Invalid argument count!\");\n }\n\n for (int i = 0; i < args.length; i += 2) {\n switch (args[i]) {\n case \"--obo\":\n inputFile = new File(args[i + 1]);\n command = Command.PAR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new TaskClient and connect it to the TaskBus. | public TaskClient() {
// connect to the bus
bus = GizmoTaskBus.connect();
tasks = new ConcurrentHashMap<Integer, TaskHandler>();
taskOutputChannel = bus.getTaskProducer();
new ConcurrentHashMap<Integer,TaskInputMap>();
dashboardLoaded = false;
pendingRequests = new Vector<TaskReservation>();
taskHis... | [
"public void init(){\n taskClient.connect(\"127.0.0.1\", 9123);\n }",
"public ClientTaskFactory(\n MutablePicoContainer _clientTasksContainer )\n {\n Assert.assertNotNull( _clientTasksContainer );\n factory = new ClientTaskObjectFactory( _clientTasksContainer );\n setFacto... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the monitor_templates value for this LocalLBMonitorRule. | public String[] getMonitor_templates() {
return monitor_templates;
} | [
"public void setMonitor_templates(String[] monitor_templates) {\n this.monitor_templates = monitor_templates;\n }",
"public List<String> getTemplates() {\r\n\t\treturn this.templates;\r\n\t}",
"public LocalLBMonitorRuleType getType() {\n return type;\n }",
"@ApiModelProperty(value = \"The ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for property direccionTI. | public String getDireccionTI() {
return this.direccionTI;
} | [
"public java.lang.String getTipoDireccion() {\r\n return tipoDireccion;\r\n }",
"public void setDireccionTI(String direccionTI) {\n this.direccionTI = direccionTI;\n }",
"public String getDiretorio() {\n\t\treturn diretorio;\n\t}",
"public long getDiretoria() {\n return diretoria;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
True if has "DataCustom" element | public boolean isSetDataCustom()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(DATACUSTOM$4) != 0;
}
} | [
"public boolean isSetDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATACUSTOM$2) != 0;\n }\n }",
"public boolean isSetCustom() {\r\n return this.custom != null;\r\n }",
"public boolean isSetAttribu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tell the replicators that we are done executing a task, they no longer need to worry about our crashing | private void alertReplicatorsDoneExecutingTask(Version theTask) {
synchronized(_replicatorQueue) {
for (int i = 0; i < _replicatorQueue.size(); i++) {
ReplicatorHandle rh = (ReplicatorHandle)
_replicatorQueue.get(i);
rh.alertDoneExecutingTask(theTask, this);
}
}
} | [
"private void alertReplicatorsExecutingTask(Version theTask) {\n\tsynchronized(_replicatorQueue) {\n\t for (int i = 0; i < _replicatorQueue.size(); i++) {\n\t\tReplicatorHandle rh = (ReplicatorHandle) \n\t\t _replicatorQueue.get(i);\n\t\trh.alertExecutingTask(theTask, this);\n\t }\n\t}\t\n }",
"void T... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column TBL_URI01_HEAD.Jigyo_Nm | public void setJigyoNm(String jigyoNm) {
this.jigyoNm = jigyoNm;
} | [
"public String getJigyoNm() {\n return jigyoNm;\n }",
"public void setJNDIName(String newValue);",
"public void setFirstNm(String aFirstNm)\n {\n firstNm = aFirstNm;\n setItDirty(true);\n }",
"public void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);",
"public void set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the locale_pais value for this Funcionario. | public void setLocale_pais(java.lang.String locale_pais) {
this.locale_pais = locale_pais;
} | [
"public void setPais(String pais) {\r\n this.pais = pais;\r\n }",
"public java.lang.String getLocale_pais() {\n return locale_pais;\n }",
"public expedidoEn.emisor.comprobante.Builder setPais(java.lang.CharSequence value) {\n validate(fields()[6], value);\n this.pais = value;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method: Hit Left Wall Returns whether or not the given ball should bounce off of the left wall of the window. | private boolean hitLeftWall(GOval ball, double vx) {
if(vx > 0) return false;
return ball.getX() <= 0;
} | [
"private boolean isBallCollideLeftWall(GOval ball) {\n return ball.getX() <= 0;\n }",
"public boolean touchingLeft(Ball theBall)\r\n\t{\t\r\n\t\treturn (theBall.getX() + theBall.getRadius()) - 1 >= getLeft() - 1\r\n\t\t\t\t&& (theBall.getX() + theBall.getRadius()) - 1 <= getLeft() + 4\r\n\t\t\t\t&& (the... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if the Board is solved | public boolean isSolved(){
boolean solved = true;
if( cell( ROWS -1, COLUMNS - 1 ) == EMPTY_CELL ){//avoids overhead in some cases
for( int x = 1, i = 0; i < ROWS && solved; ++i ){
for( int j = 0; j < COLUMNS && solved; ++j ){
if( cell(i,j) != EMPTY_CELL &... | [
"public boolean isSolvable() {\n return !solvedBoard.isEmpty();\n }",
"public boolean solved()\n\t{\n\t\tfor(int row = 0; row < board.length; row++)\n\t\t{\n\t\t\tfor(int col = 0; col < board.length; col++)\n\t\t\t{\n\t\t\t\tif(board[row][col] == 0)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Switches to the game setup scene. Players will place their pieces to their initial starting positions. Once the pieces are placed, their positions are sent to the server. | private void setupBoard() {
Platform.runLater(() -> {
stage.setBoardScene();
});
synchronized (setupPieces) {
try {
// Wait for the player to set up their pieces.
setupPieces.wait();
Game.setStatus(GameStatus.WAITING_OPP);
// Send initial piece positions to server.
SetupBoa... | [
"private void gameSetup(){\n\t\tboard.boardSetup();\n\t\tdirectionArray = setUpDirectionArray();\n\t\tcurrentPlayer = SharedConstants.PlayableItem.BLACK;\n\t\tcurrentState = SharedConstants.GameStatus.PLAYING;\n\t\tgameStateModel = new GameSateModel();\n\t\tloadGame = new GameStateRetriever();\n\t\tsaveGame = new G... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Should return which element has to be visible to assert the Page Object is present. If the by is not present, it will not be asserted that the page is present. All Page Objects should implement it, so the framework can check that the page is in the correct state. | Optional<By> visibleBy(); | [
"public boolean isElementInPage(){\n if (ActionBot.isElementDisplayed(searchBtn, false)){\n return true;\n } else {\n return false;\n }\n }",
"public boolean isElementPresent(By locator) {\n\t\treturn this.isPage(locator);\n\t}",
"public WebObject waitUntilVisibleOn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
changes a sincle character in the given display array | void draw_char(int x, int y, char[][] _display, char c) {
_display[x][y] = c;
} | [
"public String replaceOneCharacter() {\n int colNumber = idx%col;\n int rowNumber = idx/col;\n hidden[rowNumber][colNumber] = original[rowNumber][colNumber];\n idx++;\n return(getImage());\n }",
"void setchar(char character){\n\t\tfor(int rows = 0; rows<r; rows++){\n\t\t\tfor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add sprite to the game. | public void addSprite(Sprite s) {
sprites.addSprite(s);
} | [
"public void addSprite(Sprite s) {\r\n this.spriteList.add(s);\r\n }",
"public void addSprite(Sprite s) {\r\n spriteList.add(s);\r\n }",
"public void addSprite(Sprite s) {\r\n sprites.add(s);\r\n }",
"public void addSprite(Sprite s) {\r\n this.spriteCollection.add(s);\r\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test usual bubble sort. | @Test
public void testBubbleSort() {
BubbleSort<Integer> testing = new BubbleSort<>();
testing.sort(array, new Comparator<Integer>() {
@Override
public int compare(Integer i1, Integer i2) {
return i1.compareTo(i2);
}
});
checkArra... | [
"@Test\n public void testBubbleSort() {\n Integer[] copy = Arrays.copyOf(data, data.length);\n System.out.println(\"\\nUnsorted Data\");\n sorter.timedSort(SortAlgorithm.BUBBLE, copy, comp);\n assertTrue(\"Not sorted\", isSorted(copy, comp));\n System.out.println(\"\\nSorted Data\");\n sorter.tim... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Throws an exception if targetBytecode is not supported with this version of Groovy. That is, when Groovy added the option to org.codehaus.groovy.control.CompilerConfiguration and used it in org.codehaus.groovy.classgen.asm.WriterController. | protected void verifyGroovyVersionSupportsTargetBytecode() {
if ("20".equals(targetBytecode)) {
if (groovyOlderThan(GROOVY_4_0_6)) {
throw new IllegalArgumentException("Target bytecode " + targetBytecode + " requires Groovy " + GROOVY_4_0_6 + " or newer.");
}
} el... | [
"public void hotCodeReplaceFailed(IJavaDebugTarget target, DebugException exception);",
"public void testCompileWithCompilerOptions(){\n //build a class that uses javba 8+ features (here lambda)\n _class _c = _class.of(\"aaaa.bbb.C\").addImports(Consumer.class).main( ()-> {\n Consumer<Str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Part a) Implement this run method to receive and process request messages. To simulate a replica that is sometimes unavailable, it should randomly discard requests as long as it is not locked. The probability for discarding a request is (1 availability). For each request received, it must also be checked whether the re... | public void run()
{
byte[] buffer = new byte[2048];
DatagramPacket packet = new DatagramPacket(buffer, buffer.length);
//Used for the failure simulation
Random random = new Random();
while(true)
{
try
{
//recive und unpack object
socket.receive(packet);
ObjectInputStream o... | [
"private void checkRequests()\n\t{\n\t\t// to be honest I don't see why this can't be 5 seconds, but I'm trying 1 second\n\t\t// now as the existing 0.1 second is crazy given we're checking for events that occur\n\t\t// at 60+ second intervals\n\n\t\tif ( mainloop_loop_count % MAINLOOP_ONE_SECOND_INTERVAL != 0 ){\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of agregarAcabado method, of class AislanteTermico. | @Test
public void testAgregarAcabadoAislante() {
CasaDirector director= new CasaDirector(new CasaCieloBuilder());
director.construirCasa();
Casa casa = director.getCasa();
AislanteTermico instance = new AislanteTermico(50,"Aislante",casa);
instance.agregarAcabado(5);
... | [
"public void atacar(Tablero tablero, Autobot atacante, Accionable atacado, Potencia potencia);",
"@Test\n\tpublic void testAnadirApuesta() {\n\t\tassertEquals(lista1.getTamano(),0);\n\t\tlista1.anadirApuesta(apu1);\n\t\tassertEquals(lista1.getTamano(),1);\n\t\tlista1.anadirApuesta(apu2);\n\t\tassertEquals(lista1.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new FacesServletMapping object using extension mapping. | public static FacesServletMapping createExtensionMapping(
String extension)
{
FacesServletMapping mapping = new FacesServletMapping();
mapping.setExtension(extension);
return mapping;
} | [
"protected FacesServletMapping getFacesServletMapping(FacesContext context)\n {\n Map<String, Object> requestMap = context.getExternalContext().getRequestMap();\n\n // Has the mapping already been determined during this request?\n if (!requestMap.containsKey(CACHED_SERVLET_MAPPING))\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Populates both the assigned and available qualification lists for a user after clicked on one Is also called each time a qualification is assigned or unassigned to update the lists. | private void createQualLists(int userID) {
assignedQualList.clear();
availableQualList.clear();
assignedQuals = jdbc.getUserAssignedQuals(userID);
for (Qualification q : assignedQuals) {
assignedQualList.addElement(q.getQualName());
}
availQuals = jdbc.getUserAvailQuals(userID);
for (Qualifi... | [
"private void populateLocationsAndIssuingUsersDropDowns(MarriageRegister notice) {\n //get current users location displaying lists,initial values are set by the service\n locationList = commonUtil.populateActiveUserLocations(user, language);\n userList = new HashMap<String, String>();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Implement a hasNext() method which returns true if the client should be able to draw another card from the deck and false otherwise. | public boolean hasNext() {
return this.topCard < this.deck.length;
} | [
"public boolean hasCards(){\n //TO-DO\n //if len(cards)<1:return 0\n //else:return 1\n \n if (this.cards.size()<1){return false;}\n else{return true;}}",
"boolean needsToDrawCard(ICard currentCard);",
"public boolean canDrawCard() {\n return !mCardDeck.isEmpty();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add Song before a specified song in playlist, If specified song is not existing add it to the end | void addBefore(String title, Song song) {
Song selectedSong = lookupTitle(title);
if (selectedSong != null) {
int index = songlist.indexOf(selectedSong);
if (index != -1)
songlist.add(index, song);
else
songlist.add(song);
}
... | [
"void addAfter(String title, Song song) {\n Song selectedSong = lookupTitle(title);\n if (selectedSong != null) {\n int index = songlist.indexOf(selectedSong);\n if (index != -1)\n songlist.add(index+1, song);\n else\n songlist.add(song);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
call back this method when relationship has changed. | public void onRelationshipChanged(); | [
"@Override\n\tpublic void graphModified() {\n\t\ttry {\n\t\t\tstoringGraphDatabase.graphModified();\n\t\t} catch (RemoteException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"void relationshipTraversed();",
"public abstract void handleRelations(Model old);",
"public void relationParentChanged(Rel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method to click on Logout link | public void clickOnLogoutLink() {
logoutLink.click();
} | [
"public void clickLogoutLink(){\n\t\tthis.logoutLink.click();\n\t}",
"public void clickOnLogout(){\n\t\tobjiOSGenericMethods.click(getLogout());\n\t\t//objiOSGenericMethods.clickOnIOSElement(getLogout(), \"clicked on Logout.\");\n\t}",
"public void clickLogout() throws InterruptedException {\n\n logoutG... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleArg" $ANTLR start "entryRuleType" ../com.rockwellcollins.atc.agree/srcgen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:1783:1: entryRuleType returns [EObject current=null] : iv_ruleType= ruleType EOF ; | public final EObject entryRuleType() throws RecognitionException {
EObject current = null;
EObject iv_ruleType = null;
try {
// ../com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/parser/antlr/internal/InternalAgree.g:1784:2: (iv_ruleType= ruleType EOF )
... | [
"public final EObject entryRuleType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleType = null;\n\n\n try {\n // InternalAgreeParser.g:4357:2: (iv_ruleType= ruleType EOF )\n // InternalAgreeParser.g:4358:2: iv_ruleType= ruleType EOF\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleExpr" $ANTLR start "entryRuleExprAnd" InternalWhdsl.g:478:1: entryRuleExprAnd : ruleExprAnd EOF ; | public final void entryRuleExprAnd() throws RecognitionException {
try {
// InternalWhdsl.g:479:1: ( ruleExprAnd EOF )
// InternalWhdsl.g:480:1: ruleExprAnd EOF
{
before(grammarAccess.getExprAndRule());
pushFollow(FOLLOW_1);
ruleExprAnd()... | [
"public final void ruleExpr() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWhdsl.g:466:2: ( ( ruleExprAnd ) )\n // InternalWhdsl.g:467:2: ( ruleExprAnd )\n {\n // InternalWhdsl.g:467:2: ( ruleExprAnd... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checked whether the received data, in lake mode, has been completely retrieved and is ready to be polled | public boolean dataIsReady()
{
boolean[] status = m_receiver.getBufferStatus();
if (status.length == 0)
{
return false;
}
for (boolean b : status)
{
if (!b)
return false;
}
return true;
} | [
"private boolean isGettingData(){\n int available;\n long startTime = System.nanoTime();\n int timeout = 100;\n InputStream inStream = null;\n flushStream();\n try {\n if(socket!=null)\n inStream = socket.getInputStream();\n Thread.sleep... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The ID of the network interface. | public String getNetworkInterfaceId() {
return this.networkInterfaceId;
} | [
"public int getInterfaceId() {\r\n\treturn interfaceId;\r\n }",
"int getNetId();",
"java.lang.String getNetId();",
"public java.lang.String getNetworkId() {\n return networkId;\n }",
"public java.lang.String getNetworkId() {\r\n return networkId;\r\n }",
"public int getNetId() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the implicit schema attributes to be included in this schema. | public Collection<ImplicitSchemaAttribute> getImplicitSchemaAttributes() {
return implicitSchemaAttributes;
} | [
"public List<SchemaAttribute> getAttributes()\n {\n return super.getArrayAttribute(AttributeNames.RFC7643.ATTRIBUTES, SchemaAttribute.class);\n }",
"public Resource getQBDSAttributes() {\n\t\treturn metaModel.getResource(\"#extraAttributes\");\n\t}",
"public Collection<ImplicitSchemaElement> getImplicitSch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Default constructor for a new CompleteMultipartUploadRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it. | public CompleteMultipartUploadRequest() {} | [
"public CompleteMultipartUploadRequest(String accountId, String vaultName, String uploadId, String archiveSize, String checksum) {\n setAccountId(accountId);\n setVaultName(vaultName);\n setUploadId(uploadId);\n setArchiveSize(archiveSize);\n setChecksum(checksum);\n }",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when R key is pressed from main menu. Displays how much money is in the restaurant's cash register. | private void cashRegister() {
System.out.println("Money in the cash register: " + restaurant.getCashRegister());
} | [
"public void depositMenu(){\n\t\tstate = ATM_State.DEPOSIT;\n\t\tgui.setDisplay(\"Amount to deposit: \\n$\");\t\n\t}",
"public void PayCash(){\n\t\tgetOp().storeCash(); // store the value of cash\n\t\tgetOp().setW(0); // setting the value of w for cash\n\t\tgetOp().displayMenu(); ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get new pluginVersion instance | private IPluginVersion toVersion( Version version ) {
IPluginVersion pluginVersion = this.pluginVersionFactory.create();
//fill the instance
pluginVersion.setBranch( version.getBranch() );
pluginVersion.setName( version.getName() );
String downloadUrl = version.getPackageUrl();
if ( downloadUrl... | [
"@Override\n public Version getVersion() {\n return pluginVersion;\n }",
"public PluginVersion getVersion() {\n return version;\n }",
"private Plugin getPluginVersionFromPluginManagement( Plugin plugin )\n {\n\n if ( !isPluginManagementDefined() )\n {\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getter that gets the player in the room. | public Player getPlayer() {
return (roomPlayer);
} | [
"public final Player getPlayer()\n {\n return this.player;\n }",
"public final Player getPlayer() {\n return player;\n }",
"public static Player getPlayer() {\r\n\t\treturn player;\r\n\t}",
"public Room getPlayerLoc()\n {\n return playerLoc;\n }",
"public Room getCurrentRoom() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the services' templates path. | String getTemplateSourceServicePath(); | [
"String getTemplatePath();",
"public String getTemplatePath();",
"public static String getTemplatesPath() {\n\t\tif (! propertiesLoaded) {\n\t\t\ttry {\n\t\t\t\tloadProperties();\n\t\t\t}\n\t\t\tcatch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn props.get(\"wrangler.root\") + \"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if a cu is a primary cu (original or shared working copy) | public static boolean isPrimary(ICompilationUnit cu) {
return cu.getOwner() == null;
} | [
"private boolean isConnectedToPrimary(SRVRecord[] recs)\n\t{\n\t\tString primaryAddress = getPrimaryServerRecord(recs).getTarget();\n\t\tif (primaryAddress != null && primaryAddress.equals(currentAddress))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public boolean isCUDone (CurricUnit cu) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an event with the specified id, title, Speaker (based on email), Room (based on name), and start time. Adds to eventMap, roomScheduleMap, speakerScheduleMap, and signUpMap. | public boolean createEvent(String eventId, String eventTitle, ArrayList<String> speakerEmails, String roomName,
LocalDateTime start, LocalDateTime end, int capacity, boolean vipRestricted){
Room eventRoom = findRoom(roomName);
ArrayList<Speaker> speakers = new ArrayList<Sp... | [
"private void createEvent() {\n op.createEventWelcome();\n op.printAvailableRooms();\n\n // User inputs room number\n int roomNumber = filter.inputRoom(); // take room input from user and make sure it's correct\n if (cancelRequested(Integer.toString(roomNumber))) {\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to search Database for asset using assetTypeCode | Asset findByAssetTypeCode(String assetTypeCode); | [
"ISearchResults<? extends IAssetType> listAssetTypes(IAssetTypeSearchCritiera criteria) throws SiteWhereException;",
"ISearchResults<? extends IAsset> listAssets(IAssetSearchCriteria criteria) throws SiteWhereException;",
"Asset findAsset(Asset asset);",
"AssetList selectByPrimaryKey(Integer assetId);",
"IA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if the video is in the playlist. | boolean hasVideoInPlaylist(String videoId) {
return videos.containsKey(videoId);
} | [
"public boolean isPlayWithPlaylistFolder() {\n return playList != null;\n }",
"public boolean hasVideo();",
"public boolean hasVideo() {\n\treturn video != null;\n }",
"public boolean canProcessSubtitles() {\n return player != null && (player.isPlaying() || player.isPaused());\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GENLAST:event_clearButtonActionPerformed When user presses the Verify button Regex will find all instances of the string it is passed and count them. The total number of instances is the final score. Once done a Message Dialog will popup to inform the user of the final score. | private void VerifyButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_VerifyButtonActionPerformed
String email = textArea.getText();
Pattern pattern = Pattern.compile("As seen on|"
+ "Buy|Meet singles|Extra income|Million dollars|Save big money|"
+ ... | [
"public int numMatches();",
"public void resultCountActualResult() {\n String str = result_count.getText();\n String numbers;\n numbers = str.replaceAll(\"[^0-9]\", \"\");\n System.out.println(\"Total result count is: \" + numbers);\n }",
"public void count () {\n\n\t\tString resu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Pre: Post: Si el planeta nomp esta el el vector Conjunt_Planetes_Assignat el el passar en el vector Conjunt_Planetes_Desassignat | public void desassignarPlaneta(String nomP) {
if (Conjunt_Planetes_Assignat.contains(nomP)) {
Planeta p = Conjunt_Planetes_Assignat.obtain(nomP);
Conjunt_Planetes_Desassignat.insert(nomP, p);
Conjunt_Planetes_Assignat.remove(nomP);
} else throw new IllegalArgumentException(msg_planeta_no_exists);
} | [
"public void assignarPlaneta(String nomP) {\n\t\tif (Conjunt_Planetes_Desassignat.contains(nomP)) {\n\t\t\tPlaneta p = Conjunt_Planetes_Desassignat.obtain(nomP);\n\t\t\tConjunt_Planetes_Assignat.insert(nomP, p);\n\t\t\tConjunt_Planetes_Desassignat.remove(nomP);\n\t\t} else throw new IllegalArgumentException(msg_pla... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
store teamcode in local | public static void storeTeamCode(Context context,String teamCode){
SharedPreferences sharedPref = context.getSharedPreferences("teamPref",MODE_PRIVATE);
SharedPreferences.Editor editor = sharedPref.edit();
editor.putString("teamCode",teamCode);
editor.apply();
} | [
"void setTeamCode(final String teamCode);",
"private void save() {\n Saver.saveTeam(team);\n }",
"public static void setMyTeam(Context c, String newTeam )\n\t{\n\t\tSharedPreferences settings = c.getSharedPreferences( NACKA_PREFS, 0);\n\t\tSharedPreferences.Editor editor = settings.edit();\n\t\teditor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Increase points for archer two +4 | public void plusFourForTwo(View v) {
pointsArcherTwo = pointsArcherTwo + 4;
displayPointsForArcherTwo(pointsArcherTwo);
} | [
"public void add_2_to_4() {\n x_4 += x_2;\n y_4 += y_2;\n }",
"public void add_4_to_2() {\n x_2 += x_4;\n y_2 += y_4;\n }",
"public void increment () {\r\n\t\tpoints +=10; \r\n\t}",
"public void add_4_to_1() {\n x_1 += x_4;\n y_1 += y_4;\n }",
"public void plusTwoFor0ne(View v) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new JsonReader, given an input stream. | public JsonReader(Reader input)
{
super( input );
this.reader = new PushbackReader( this, 256 );
} | [
"public ParsingReader(InputStream stream, String name) throws IOException {\n this(new AutoDetectParser(), stream, getMetadata(name), new ParseContext());\n context.set(Parser.class, parser);\n }",
"public InputStreamReader createInputStreamReader(InputStream stream) {\n return new InputSt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the idOriginal of this FileEntity. | public Integer getIdOriginal()
{
return this.idOriginal;
} | [
"OriginalFile getOriginalFileByFileId(int fileId);",
"public Idioma getIdiomaOriginal() {\n\t\treturn this.getParrafo().getDocumento().getIdioma();\n\t}",
"public int getIdFile()\n {\n return this.idFile;\n }",
"@ApiModelProperty(value = \"(optional) original media filename, path, uri or your app... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets whether subscribers should be notified when the node is deleted. | public void setNotifyDelete(boolean notify) {
writeBoolean(ConfigureNodeFields.notify_delete.getFieldName(), notify);
} | [
"public boolean setDeletedCISsNotification (boolean notifier);",
"protected void notifyDeleted() {}",
"public void setDeleted();",
"public void setDeleteOnReceive(Boolean b) {\n deleteOnReceive = b;\n }",
"public void markCurrentSubscribersDelete() throws JNCException {\n markLeafDelete(\"current... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Writes a move of a variable to another. | public static void writeVariableMove(PrintWriter writer, String targetName, String sourceName) {
writer.format("mov %s, %s", targetName, sourceName).println();
} | [
"void moveInstruction(Register regA, Register regB){\n System.err.println(\"\\t\\t\\tMOVE \" + regA + \",\" + regB); //for instruction trace\n regB.setVal(regA.getVal());\n }",
"public void moveTo(Node n, int x, int y)\r\n\t{\r\n\t\tthis.y = y;\r\n\t\tthis.x = x;\r\n\t\tn.data = \"X\";\r\n\t\tth... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Costruttore della classe 'Mongo_Import'. | public Mongo_Import() {
} | [
"private void initializeMongoConverter() {\n mongoTemplate = new MongoTemplate(new SimpleMongoDbFactory(new MongoClient(), databaseName));\n JaxbAnnotationModule jaxbAnnotationModule = new JaxbAnnotationModule();\n ObjectMapper objectMapper = new ObjectMapper();\n objectMapper.registerMo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Assert the lexicographical order as defined by the remote execution protocol | static void assertLexicographicalOrder(DirectoryTree tree) {
tree.visit(
(PathFragment dirname,
SortedSet<FileNode> files,
SortedSet<SymlinkNode> symlinks,
SortedSet<DirectoryNode> dirs) -> {
assertThat(files).isInStrictOrder();
assertThat(dirs).isInSt... | [
"private void checkManagementVertexOrder(final Iterator<ManagementVertex> it, final ManagementVertex[] expectedOrder) {\n\n\t\tint i = 0;\n\t\twhile (it.hasNext()) {\n\n\t\t\tfinal ManagementVertex vertex = it.next();\n\t\t\tassertEquals(expectedOrder[i++], vertex);\n\t\t}\n\n\t\tassertEquals(expectedOrder.length, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
read option value from the sensor \param[in] sensor the RealSense sensor \param[in] option option id to be queried \param[out] error if nonnull, receives any error that occurs during this call, otherwise, errors are ignored \return value of the option Original signature : float rs2_get_option(const rs2_options, rs2_opt... | float rs2_get_option(PointerByReference options, int option, PointerByReference error); | [
"Pointer rs2_get_option_value_description(Realsense2Library.rs2_options options, int option, float value, PointerByReference error);",
"void rs2_get_option_range(Realsense2Library.rs2_sensor sensor, int option, FloatBuffer min, FloatBuffer max, FloatBuffer step, FloatBuffer def, PointerByReference error);",
"vo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo....: getListaIdentificadorSimcardByIccid Descricao.: Seta a lista de identificadores para a colecao de ICCIDs informada | public WsmSimcardIdentifierList getListaIdentificadorSimcardByIccid(String iccid)
{
// Nova instancia do WsmSimcardIdentifierList
WsmSimcardIdentifierList listaIdentificadoresSimcard = new WsmSimcardIdentifierList();
WsmSimcardIdentifier identificadorSimcard = null;
// Monta a lista de Identificador c... | [
"public WsmSimcardIdentifier getIdentificadorSimcardByIccid(String iccid)\r\n\t{\r\n\t\t// Nova instancia do WsmSimcardIdentifier, ja com os parametros informados\r\n\t\tWsmSimcardIdentifier identificadorSimcard = new WsmSimcardIdentifier(iccid, WsmSimcardIdentifier.SIM_TYPE_ICCID);\r\n\t\t\r\n\t\t// Retorno do obj... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves the links of the Siren entity representation. | public List<Link> getLinks() {
return this.sirenEntity.getLinks();
} | [
"public List<TparselinksEntity> getAllLinks();",
"@NonNull List<SaldoLink> getLinks() {\n return links;\n }",
"List<Link> getLinks();",
"List<ProductLink> links();",
"@GET\n public Response getLinks() {\n List<Link> links = new ArrayList<>();\n links.add(Link.fromUri(CommonConstan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the current hyperlink activation policy for the diff browser. | public boolean get_hyperlink_policy(){
return(this.activate_hyperlinks);
} | [
"public String getHyperlinkBehavior() {\n return hyperlinkBehavior;\n }",
"public int getLinkBehavior()\n {\n return linkBehavior;\n }",
"Policy getPolicy();",
"public String supportedPolicy() {\n return this.supportedPolicy;\n }",
"com.v2ray.core.app.policy.Second getUplinkOnly()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compares the two formats for order. Returns a negative integer, zero, or a positive integer as the first format has been assigned a preference higher, equal to, or greater than the one of the second. | private int compareEncodingPreferences(MediaFormat enc1, MediaFormat enc2)
{
Integer pref1 = encodingPreferences.get(enc1);
int pref1IntValue = (pref1 == null) ? 0 : pref1;
Integer pref2 = encodingPreferences.get(enc2);
int pref2IntValue = (pref2 == null) ? 0 : pref2;
... | [
"@Override\n public int compare(ClusterModelStats stats1, ClusterModelStats stats2) {\n int numBalancedBroker1 = stats1.numBalancedBrokersByResource().get(resource());\n int numBalancedBroker2 = stats2.numBalancedBrokersByResource().get(resource());\n // First compare the\n if (numBal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests that replacing an image with a single color returns an image with a single color. | @Test
public void testSingleColor(){
List<Tone> palette = Arrays.asList(new Tone(Color.red));
BufferedImage image = ImageFileUtils.loadImageResource("/sampleImages/dimensions/2x4.png");
PaletteReplacer replacer = new PaletteReplacer();
BufferedImage result = replacer.repla... | [
"@Test\n\tpublic void testReplaceColor_1()\n\t\tthrows Exception {\n\t\tImageData data = new ImageData(new ByteArrayInputStream(\"\".getBytes()));\n\t\tdata.height = 1;\n\t\tdata.palette = new PaletteData(1, 1, 1);\n\t\tdata.width = 1;\n\t\tRGB from = new RGB(1, 1, 1);\n\t\tRGB to = new RGB(1, 1, 1);\n\n\t\tColorUt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
list of winning combinations | private ArrayList<ArrayList<String>> winningCombinations() {
ArrayList<ArrayList<String>> winningCombinations = new ArrayList<>();
winningCombinations.addAll(board.getRows());
winningCombinations.addAll(board.getColumns());
winningCombinations.add(board.getLeftDiagonal());
winnin... | [
"boolean isWinningCombination(Ticket ticket);",
"public Set<List<String>> getCombination(int[] inHand) {\n Set<List<String>> result = new HashSet<>();\n for (int i = 0; i < inHand.length; i++) {\n if (inHand[i] < 1) continue;\n int[] copyHand = copyArray(inHand);\n //possibility of A AA AAA\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
if the location has been sampled before first location should be true set the current lat/long to the updated location if firstLocCheck is false create a new drive with the current location | @Override
public void onLocationChanged(Location location) {
if(!firstLocCheck){
drive = new Drive(location.getLatitude(),location.getLongitude(),Car.carList.get(carIndex),startTime);
firstLocCheck = true;
} else {
D... | [
"public void updateLocation(int firstloc) {\n\t\tif (firstloc < this.firstloc) {\n\t\t\tthis.firstloc = firstloc;\n\t\t}\n\t}",
"private void startCurrLocation()\n {\n if (Build.VERSION.SDK_INT >= 23) {\n String[] perms = {Manifest.permission.ACCESS_FINE_LOCATION};\n if (EasyPermis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
An interface representing an entity (for example, a row) in the Table db.db.db.phoneextensions. This file is safe to edit. It will not be overwritten by the code generator. | public interface Phoneextensions extends GeneratedPhoneextensions {
} | [
"public interface Extension {\n\t\t/**\n\t\t * Data row MIME type\n\t\t */\n\t\tstatic final String MIME_TYPE = \"aef-extensions\";\n\n\t\t/**\n\t\t * Path segment\n\t\t */\n\t\tstatic final String EXTENSIONS_PATH = \"extensions\";\n\n\t\t/**\n\t\t * Content URI\n\t\t */\n\t\tstatic final Uri URI = Uri.withAppended... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the speed for the mixer. | public int getMixerSpeed()
{
return this.mixerSpeed;
} | [
"double getPlaybackSpeed();",
"public float getSpeed() {\n return this.speedValue;\n }",
"double getSpeed();",
"public double getSpeed()\n\t{\n\t\treturn shooterEnc.getRate();\n\t}",
"public double getSpeed() {\r\n return encoder.getRate();\r\n }",
"public int getCurrentSpeed(){\n\t\tr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method returns the appropriate driver class name for the given database type. | private String determineClassName(String databaseType) {
String className = null;
switch (databaseType) {
case MYSQL:
className = "com.mysql.jdbc.Driver";
break;
case ORACLE_THIN:
className = "oracle.jdbc.driver.OracleDriver";
... | [
"private String getDriverClassNameFromDatabaseType(final String databaseType) {\n switch (databaseType.toLowerCase()) {\n case \"postgresql\":\n return \"org.postgresql.ds.PGSimpleDataSource\";\n case \"mariadb\":\n return \"org.mariadb.jdbc.Driver\";\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |