query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Gets the field customPropertyPairs. | public ch.ivyteam.ivy.scripting.objects.List<ch.ivy.ws.addon.CustomPropertyPair> getCustomPropertyPairs()
{
return customPropertyPairs;
} | [
"public List<String> getCustomFields() {\n\t\treturn customFields;\n\t}",
"public java.util.List<com.fretron.Model.CustomFields> getCustomFields() {\n return customFields;\n }",
"public java.util.List<com.fretron.Model.CustomFields> getCustomFields() {\n return customFields;\n }",
"public void set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Container's getter for PersCategoryLOV. | public ViewObjectImpl getPersCategoryLOV() {
return (ViewObjectImpl)findViewObject("PersCategoryLOV");
} | [
"public auction.schema.Arche_Service_xsd.CategoryBaseT getLCategory() {\n return LCategory;\n }",
"public Short getLvlCategory() {\r\n return lvlCategory;\r\n }",
"public CloudCategory getCldCat() {\n return cloudCategory;\n }",
"public PollCategory getCategory() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the calleSecundaria value for this DireccionDTO. | public void setCalleSecundaria(java.lang.String calleSecundaria) {
this.calleSecundaria = calleSecundaria;
} | [
"public java.lang.String getCalleSecundaria() {\r\n return calleSecundaria;\r\n }",
"public expedidoEn.emisor.comprobante.Builder setCalle(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.calle = value;\n fieldSetFlags()[4] = true;\n return this; \n }",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find all recipes that are categorized with the specified category. | @Query("SELECT r FROM Recipe r JOIN FETCH r.category AS rc WHERE UPPER(rc.category) = UPPER(:category)")
Set<Recipe> findByCategory(@Param("category") String category); | [
"SortedSet<Recipe> findRecipesByCategory(MealCategory category) throws ServiceFailureException;",
"public ArrayList<Recipe> searchByCategory(String Category) {\n\n\n SQLiteDatabase Db = this.getWritableDatabase();\n String QueryString = \"Select * FROM Recipe_Table WHERE Category = ?\";\n Cur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use ReqParaTxByTitle.newBuilder() to construct. | private ReqParaTxByTitle(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"ClientRequest findClientRequestByTitle(String title);",
"private ParaTxDetail(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private ParaTxDetails(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public ConditionDTOBu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
HandlingEvent aggregate root An identified unique starting point to create HandlingEvents. HandlingEvents are only allowed to be created through this aggregate root. Can we enforce this? | public interface HandlingEventAggregateRoot
extends EntityComposite,
HandlingEventFactory
{
public static final String HANDLING_EVENTS_ID = "Handling_events_id";
} | [
"public interface AggregateRoot<I> {\n\n /**\n * Returns the identifier of this aggregate.\n *\n * @return the identifier of this aggregate\n */\n I getIdentifier();\n\n /**\n * Clears the events currently marked as \"uncommitted\" and clears any known EventRegistrationCallbacks (see {@... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleDomainType" $ANTLR start "entryRuleBasicType" InternalSymboleoide.g:203:1: entryRuleBasicType : ruleBasicType EOF ; | public final void entryRuleBasicType() throws RecognitionException {
try {
// InternalSymboleoide.g:204:1: ( ruleBasicType EOF )
// InternalSymboleoide.g:205:1: ruleBasicType EOF
{
before(grammarAccess.getBasicTypeRule());
pushFollow(FOLLOW_1);
... | [
"public final void entryRuleBasicType() throws RecognitionException {\n try {\n // ../com.idobjects.dsl.ui/src-gen/com/idobjects/dsl/ui/contentassist/antlr/internal/InternalIdObjectsDsl.g:370:1: ( ruleBasicType EOF )\n // ../com.idobjects.dsl.ui/src-gen/com/idobjects/dsl/ui/contentassis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of setObject method, of interface java.sql.CallableStatement | @OfMethod({"setObject(java.lang.String,java.lang.Object",
"setObject(int,java.lang.Object",
"setObject(java.lang.String,java.lang.Object,int",
"setObject(int,java.lang.Object,int",
"setObject(java.lang.String,java.lang.Object,int,int",
"setObject(int,java.lang.Object,int,int"})
... | [
"void setObject(int parameterIndex, Object x) throws SQLException;",
"void setObject(int index, Object value, int sqlType)\n throws SQLException;",
"public static interface PstmtSetter<T>{\n public void setArgs(PreparedStatement pstmt, T object) throws SQLException;\n }",
"void setObject(int pa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the sentence end word. | public Word getSentenceEndWord() {
return getWord(SENTENCE_END_SPELLING);
} | [
"java.lang.String getEndYn();",
"public String get_last_sentence() {\r\n\t\ttry {\r\n\t\t\tint numBytes = SerialSubsystem.serial.getBytesReceived();\r\n\t\t\tif (numBytes >= 5) { // minimum valid sentence\r\n\t\t\t\tbyte readBytes[] = SerialSubsystem.serial.read(numBytes);\r\n\t\t\t\tString sentence= new String(r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructors Create a detached SellerManageCateRecord | public SellerManageCateRecord() {
super(SellerManageCate.SELLER_MANAGE_CATE);
} | [
"public SellerManageCateRecord(Integer id, Integer seller, Integer createId, Timestamp createTime, Integer productCateId, String productCateName, Byte state, Integer optId, Timestamp optTime, Integer stopId, Timestamp stopTime, String stopReason) {\n super(SellerManageCate.SELLER_MANAGE_CATE);\n\n set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a range of all the council sessions where title = &63;. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the ... | public java.util.List<CouncilSession> findByTitle(
String title, int start, int end); | [
"public java.util.List<CouncilSession> findByTitle(\n\t\tString title, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CouncilSession>\n\t\t\torderByComparator);",
"public java.util.List<CouncilSession> findByTitle(\n\t\tString title, int start, int end,\n\t\tcom.liferay.portal.kernel.ut... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Renders the next page of loaded rooms | @FXML
public void nextLoadedRooms()
{
if(currentLoadedRoomsPage + 1 <= maxLoadedRoomsPages)
{
currentLoadedRoomsPage++;
RenderSpecificBatch();
}
} | [
"public void handleNextButtonPress()\n {\n roomsView.confirmSelection();\n\n if (roomsView.getRepeat() == true && roomsView.getShowErrorMesssage() == true) \n {\n roomsView.displayErrorMessage();\n }\n else if (roomsView.getRepeat() == false) \n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Merges two Groups together. If groupToDelete is empty null will be returned. | public Group mergeGroups(Group groupToExtend, Group groupToDelete, String takeTimeFrom) {
Group groupA = groupService.findOne(groupToExtend.getId());
Group groupB = groupService.findOne(groupToDelete.getId());
System.out.println("AGL of GROUP A" + groupA.getAgl());
System.out.println("AGL of GROUP B" + ... | [
"public void deleteGroup(Group group);",
"public ArgumentDefinitionGroup merge( ArgumentDefinitionGroup other ) {\n if( !groupNameMatches(other) )\n throw new ReviewedGATKException(\"Unable to merge two argument groups with differing names.\");\n\n // Create a merged definition group.\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table calendar | CalendarDate selectByPrimaryKey(String calendardate); | [
"@GetMapping(\"/api/calendar\")\n public List<Calendar> getCalendar() {\n \treturn calendarRepository.findAll(); \t\n }",
"FinCalender selectByPrimaryKey(Long id);",
"public void getCalendarFromDB() throws InvalidInputException, SQLException, InvalidLoginException, UnconsistentValueException{\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of playDealerHand method, of class Dealer. | @Test
public void testPlayDealerHand() {
System.out.println("playDealerHand");
Dealer instance = null;
instance.playDealerHand();
// TODO review the generated test code and remove the default call to fail.
// fail("The test case is a prototype.");
} | [
"@Test\n public void testGiveHand() throws Exception {\n\n Deck giveHand = new Deck();\n giveHand.add(cardB);\n giveHand.add(cardB);\n giveHand.add(cardP);\n playerHuman.addCardToDeck(cardB);\n playerHuman.addCardToDeck(cardB);\n playerHuman.addCardToDeck(cardP);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an object with each column array and respective rowId | private ObjectColumnWithRowId[] createColumnWithRowId(Object[] dataPage) {
ObjectColumnWithRowId[] columnWithIndexes =
new ObjectColumnWithRowId[dataPage.length];
for (short i = 0; i < columnWithIndexes.length; i++) {
columnWithIndexes[i] = new ObjectColumnWithRowId(dataPage[i], i, dataType);
... | [
"RowValues createRowValues();",
"Rows createRows();",
"Row createRow();",
"ColumnsObject createColumnsObject();",
"public abstract List<V> makeRowData();",
"Map<String, Object> idFromFlatRow(DataRow flatRow) {\n\n // TODO: should we also check for nulls in ID (and skip such rows) - this will\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
send a ping websocket frame to server | public void ping(){
if (channel != null){
if (channel.isActive()){
PingWebSocketFrame pingWebSocketFrame = new PingWebSocketFrame();
channel.writeAndFlush(pingWebSocketFrame);
}else{
throw new RuntimeException("The channel was not active.")... | [
"public void sendPing(byte[] data) {\n final Payload payload = new Payload(OPCODE_PING, data);\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n webSocketConnection.sendInternal(payload);\n }\n }).start();\n }",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets what type of input the PID controller will use $ | void setPIDSourceType(PIDSourceType pidSource) {
m_pidInput.setPIDSourceType(pidSource);
} | [
"public void set_presyn_input(double p_input){\r\n\t\t_presynaptc_input[0] = p_input;\r\n\t\treturn;\r\n\t}",
"public void setInput(NluInput input){\n\t\tlanguage = input.language;\n\t\tif (context.matches(\"\") || context.matches(\"default\"))\tcontext = input.context;\t//sets the old context\n\t\tenvironment = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a Player at the default pixel position (x, y) = (384, 384). | public Player() {
this(DEFAULT_X, DEFAULT_Y);
} | [
"public Player() {\n this(new Point3D(0, HEIGHT / 2, 0));\n }",
"Player(int x, int y) {\n this.position = new Point2D.Double(x, y);\n this.velocity = new Point2D.Double(0, 0);\n }",
"public void CreatePlayer() {\n this.player = new Player();\n\n gamePlatform.getChildren().addAll(t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a list of search results filtered by annotation task and user ordered by latest to oldest | List<SearchResult> getByUser(AnnotationTaskType taskType, String userId, int limit); | [
"List<SearchResult> getByTask(AnnotationTaskType taskType, int limit);",
"List<TrainingsSession> searchByUser(User user) throws PersistenceException;",
"SearchResult<TimelineMeta> search(SearchQuery searchQuery);",
"private ArrayList<Item> search() {\n\n\t\tArrayList<Item> taskList = getTaskList();\n\t\tboole... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return true if the top two points in the stack and the specified third point form a left turn proceeding clockwise around the hull. | public boolean isHull (Pointd p)
{
// System.out.println ("isHull: count=" + count);
return Geometry.left (hstack[count-2], hstack[count-1], p);
} | [
"public static Boolean check_3_left(ArrayList<RecordStack> card_stacks, int card_pointer) {\n\n if (card_pointer >= 3) {\n\n //Card to compare that is 3 positions away.\n String card_to_compare = card_stacks.get(card_pointer - 3).peek().trim();\n\n //Current card to be compar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an instance of Still Picture | public Still_Picture(String t, int d) {
super(t, d);
type = "Still Picture";
} | [
"public Picture()\n {\n // nothing to do... instance variables are automatically set to null\n }",
"public MyroImage takePicture()\n {\n assert flukeConnected() : \"Scribbler does not have a Fluke board\";\n\n return takePicture( IMAGE_COLOR );\n }",
"public Picture(SimplePictur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Stop the communications buffer trace. The trace file is flushed and closed. After calling this method, calls to isComBufferTraceOn () will return false. | protected void stopComBufferTrace ()
{
synchronized (comBufferSync) {
// Only stop the trace if it is actually on.
if (comBufferTraceOn == true) {
// Turn of the trace flag.
comBufferTraceOn = false;
// Flush and close the writer used for tracing.
if (comBufferWriter !=... | [
"public void stop() {\n\t\tsuper.stop();\n\t\tLog.d(TAG, \"Stopping trace playback\");\n\t\tmRunning = false;\n\t\tsynchronized (synchLock) {\n\t\t\tline = \"\";\n\t\t\tsynchLock.notify();\n\t\t}\n\t}",
"public synchronized void stop()\n {\n if (open) {\n //stop = true;\n notifyAll... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Identifies if OS is a Windows Server OS. | public static boolean isWindowsServer() {
return ProductType.parse(Edition.ProductType()) != ProductType.NTWorkstation;
} | [
"public static boolean isWindows() {\n return getOsName().startsWith(\"Windows\");\n }",
"public static boolean isWindows() { return (OS.contains(\"win\")); }",
"private static boolean isWindows() {\n\n String osName = System.getProperty(\"os.name\");\n return osName != null && osName.startsWith(\"Win... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Local network server discovery Generates every possible IP address and sends request to :1234/Identify | private void discoverServer() {
DhcpInfo dhcpInfo = ((WifiManager) activity.getApplicationContext().getSystemService(Context.WIFI_SERVICE)).getDhcpInfo();
int minIp, maxIp;
int deviceIp = dhcpInfo.ipAddress;
int mask = dhcpInfo.netmask;
int maskCode = 1;
if (ByteOrder.n... | [
"private void requestServerId() {\n connection.startClient(lbInfo.getIp(), lbInfo.getPort());\n System.out.println(\"Connected!\");\n connection.sendMessage(connectionInfo);\n }",
"void discoverUser(DiscoveryNetworkCallback callback, InetAddress addr, int port);",
"private static void ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the amount the guest tipped the restaurant. | double getTipAmount(); | [
"public double totalCost()\n {\n this.costOfMeal = costOfMeal + tax() + tip();\n return costOfMeal;\n }",
"public java.lang.Long getOrderCountRestaurant() {\n return orderCountRestaurant;\n }",
"public java.lang.Long getOrderCountRestaurant() {\n return orderCountRestaurant;\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
adds the offerWeekDays to list | public void addOfferWeekDays(OfferWeekDay offerWeekDay) {
offerWeekDays.add(offerWeekDay);
} | [
"private void buildWeekDays() {\n weekDays = new ArrayList<>();\n for(DayOfWeek d : DayOfWeek.values()) {\n weekDays.add(new WeekDay(d));\n }\n }",
"private void addWeek()\r\n {\r\n Log.d(TAG, \"Adding week to the ArrayList\");\r\n weeks.add(new Week());\r\n }",
"priva... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Default constructor for test class RoadTest | public RoadTest()
{
} | [
"@Test\n public void constructor(){\n /**Positive tests*/\n Road road = new Road(cityA, cityB, 4);\n assertEquals(road.getFrom(), cityA);\n assertEquals(road.getTo(), cityB);\n assertEquals(road.getLength(), 4);\n }",
"public HotelTest() {\n\n\t}",
"public Road() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end getCampLeases(eager) Retrieves the number of camp leases in the database using the applicationContext CampLeaseDAO bean. | public static int getCampLeaseCount( ) {
CampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean("leaseDaoBean", CampLeaseDAO.class);
return leaseDao.getCampLeaseCount();
} | [
"public static List<CampLease> getCampLeases() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\treturn leaseDao.getCampLeases();\r\n\t}",
"public int getLeaseCount() {\n return leases.size();\n }",
"int getCourseidsCount();",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The only public method. Calls the checks on both auction types. | public void checkAuctions() {
checkDutchAuctions();
checkSecondPriceAuctions();
} | [
"private void checkSecondPriceAuctions() {\n\n // Get all auctions of according type.\n TypedQuery<Auction> auctionByTypeQuery = getAuctionByTypeQuery(AuctionType.SECOND_PRICE);\n List<Auction> secondPriceResultList = auctionByTypeQuery.getResultList();\n\n // Get current timestamp for c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Install rules from destination host switch to destination host | private void installRuleToHostDst(String destVertex,short vlanNum)
{
installRule(destVertex, m_switchDstPortToHostTarget, vlanNum,RULE_TYPE.DROP_VLAN);
installRule(destVertex, m_switchDstPortToHostTarget, vlanNum,RULE_TYPE.DROP_VLAN_ARP);
} | [
"public void installRulesHost(Host host) {\n\t\t\n\t\tif(host.isAttachedToSwitch()) {\n\t\t\t\n\t\t\tIOFSwitch connectedSwitch = host.getSwitch();\n\t\t\n\t\t\tArrayList<OFMatchField> matchFields = new ArrayList<OFMatchField>();\n\t\t\tmatchFields.add(new OFMatchField(OFOXMFieldType.ETH_TYPE, Ethernet.TYPE_IPv4));\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The tokenToInt() static method is a utility to evaluate a token as an integer. | public static int tokenToInt(Token i) {
if (i == null) return -1;
return StringUtil.evaluateIntegerLiteral(i.image);
} | [
"public int intVal(){\n\n if(currentTokenType == TYPE.INT_CONST){\n\n return Integer.parseInt(currentToken);\n }else {\n throw new IllegalStateException(\"Current token is not an integer constant!\");\n }\n }",
"public int intVal() {\n return Integer.parseInt(token... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end getOccurrence increment occurrence of word by one | public void increment()
{
occurrence++;
} | [
"void incOccurrence() {\n occurrence += 1;\n }",
"private double countOccurrences(String document, String word){\n \tdouble occurrences = 0;\n \tPattern pattern = Pattern.compile(word);\n\t\tMatcher matcher = pattern.matcher(document);\n\t\twhile(matcher.find())\n\t\t\toccurrences++;\n \treturn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the package name and instrumentation class name separated by '/'. | public String getFullName() {
return getAndroidPackage() + "/" + getInstrumentationClass();
} | [
"public String getFullInstrumentationClass() {\n if (getInstrumentationClass().startsWith(\".\")) {\n return getAndroidPackage() + getInstrumentationClass();\n }\n return getInstrumentationClass();\n }",
"String getPackageName(String className);",
"public static String getPackageName(String class... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method will return "ticketCenter" view. | @RequestMapping(value = "/ticketCenter")
public String getTicketCenterPage(){
return "ticketCenter";
} | [
"private JPanel getPnlCenter() {\r\n\t\tif (pnlCenter == null) {\r\n\t\t\tpnlCenter = new JPanel();\r\n\t\t\tpnlCenter.setLayout(new BorderLayout());\r\n\t\t\tpnlCenter.add(getSplMain(), BorderLayout.CENTER);\r\n\t\t\tpnlCenter.add(getTlbChat(), BorderLayout.NORTH);\r\n\t\t\tpnlCenter.add(getTlbKeypad(), BorderLayo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Not only can convert from A type to B type, this interface supports backward convert from B to A as well | public interface TwoWayConverter<A, B> extends Converter<A, B>
{
A backwardConvert(B object);
default Converter<B, A> revert()
{
return object -> backwardConvert(object);
}
} | [
"public abstract boolean explicitConversion(Type to);",
"public abstract boolean implicitConversion(Type to);",
"void mapFromB(B pSourceObject, A pDestinationObject);",
"protected abstract BaseT convertToBase(String forKey, boolean ignoreOldValue, ExternalT value);",
"U convert(T item);",
"public void con... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get pipeline use to process a container | public abstract Pipeline getPipeline(String type); | [
"public Pipeline getPipeline(){\n return pipeline;\n }",
"public double getPipeline() {\n return get(\"getpipe\");\n }",
"public void setPipeline(Pipeline pipeline){\n this.pipeline = pipeline;\n }",
"com.google.cloud.aiplatform.v1.Context getPipelineContext();",
"public String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new object of class 'Block Assignment Type'. | BlockAssignmentType createBlockAssignmentType(); | [
"public Block(int type) {\n this.type = type;\n }",
"BPAssignment createBPAssignment();",
"Block createBlock();",
"Assignment createAssignment();",
"public MutableBlock createMutableBlock(ExpressionBuilder expression) {\r\n return new MutableBlock(passwordType, expression.toString());\r\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get proper assignments for specified context and user | private Iterator assignmentsForContextAndUser(String context, String userId)
{
Assignment tempAssignment = null;
List retVal = new ArrayList();
List allAssignments = null;
if (context != null)
{
allAssignments = getAssignments(context, userId);
for (int x = 0; x < allAssignments.size(); x++)
{... | [
"@Override\n @Timed\n public List<Pair<Experiment, String>> getAssignments(User.ID userID,\n Application.Name appLabel,\n Context context,\n M... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the datum_overlijden value for this NatuurlijkPersoon. | public void setDatum_overlijden(java.util.Date datum_overlijden) {
this.datum_overlijden = datum_overlijden;
} | [
"public java.util.Date getDatum_overlijden() {\n return datum_overlijden;\n }",
"public void setIndicatie_overleden(boolean indicatie_overleden) {\n this.indicatie_overleden = indicatie_overleden;\n }",
"public void setVorige_verkoop_datum(java.util.Date vorige_verkoop_datum) {\n this... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__TestDSL__Group__4" $ANTLR start "rule__TestDSL__Group__4__Impl" InternalDsl.g:7277:1: rule__TestDSL__Group__4__Impl : ( ( rule__TestDSL__Alternatives_4 ) ) ; | public final void rule__TestDSL__Group__4__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDsl.g:7281:1: ( ( ( rule__TestDSL__Alternatives_4 ) ) )
// InternalDsl.g:7282:1: ( ( rule__TestDSL__Alternatives_4 ) )
{
... | [
"public final void rule__S_Experiment__Group__4__Impl() throws RecognitionException {\n int rule__S_Experiment__Group__4__Impl_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 337) ) { r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ completeDefinition Notes that the definition of this type is / now complete. / completeDefinition Notes that the definition of this type is now / complete. | @Converted(kind = Converted.Kind.AUTO,
source = "${LLVM_SRC}/llvm/tools/clang/lib/AST/Decl.cpp", line = 3776,
FQN="clang::RecordDecl::completeDefinition", NM="_ZN5clang10RecordDecl18completeDefinitionEv",
cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/tools/clang... | [
"protected void definitionEnded() {\n\t\tcurrentDefinition = null;\n\t}",
"public void endOfDefinition() throws java.io.IOException {}",
"public synchronized void setComplete() {\n status = Status.COMPLETE;\n }",
"void descriptionComplete();",
"public String getDefinition()\n {\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return MD5 checksum of a string. | public static String getChecksum(String s) {
StringBuffer sb = new StringBuffer("");
MessageDigest md;
try {
md = MessageDigest.getInstance("MD5");
byte[] dataBytes = s.getBytes();
md.update(dataBytes, 0, dataBytes.length);
byte[] mdbytes = md.digest();
//convert th... | [
"public static String calculateMD5(String string) {\n return new String(DigestUtils.md5(string.getBytes()), Charset.defaultCharset());\n }",
"public static String toMD5(String string) {\n //convert plaintext into bytes\n byte plain[] = string.trim().getBytes();\n\n // create MD5 obj... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a parse action that matches a TLA+ singleline comment starting with \ | public static ParseAction<Located<Void>> matchTLALineComment(){
return sequence(
drop(matchString("\\*")),
drop(matchPattern(TLA_NOT_A_COMMENT_MARKER_LINE))
).map(seq -> new Located<>(seq.getLocation(), null));
} | [
"public static ParseAction<Located<Void>> matchTLAComment(){\n\t\treturn parseOneOf(\n\t\t\t\tmatchTLAMultilineComment(),\n\t\t\t\tmatchTLALineComment()\n\t\t);\n\t}",
"public static ParseAction<Located<Void>> matchTLAMultilineComment(){\n\t\treturn sequence(\n\t\t\t\tdrop(matchString(\"(*\")),\n\t\t\t\tdrop(matc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column emp_order.emp_id | public Long getEmpId() {
return empId;
} | [
"public Integer getEmpId() {\n return empId;\n }",
"public Integer getEmpid() {\n return empid;\n }",
"public int getOrderID() {\r\n return emporderID;\r\n }",
"@Override\n\tpublic long getEmpId() {\n\t\treturn _employee.getEmpId();\n\t}",
"public int getEmpID() {\n retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method provides facility to service layer to update only price of an existing item in the system and it will throw an exception if item to update does not exist | @Override
public void updateItem(String itemName, int price)
throws ItemDoesNotExistException {
ItemDetails item = findItem(itemName);
if (item == null) {
throw new ItemDoesNotExistException("Item: " + itemName
+ " does not exist in the system");
} else {
item.setItemName(itemName);
item.setPric... | [
"public Product updateProductPrice(int id,double price) throws NoPriceGivenException;",
"ProductPriceEntity update(ProductPriceEntity entity) ;",
"@Override\n\tpublic Item update() {\n\t\tLOGGER.info(\"Enter the ID of the item you want to update\");\n\t\tLong itemid = Long.valueOf(getInput());\n\t\tLOGGER.info(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Mark the post scan delay timeout as having not been received | public void unsetDidReceivePostScanDelayTimeout() {
hasPostScanDelayTimeout = false;
} | [
"public boolean didReceivePostScanDelayTimeout() {\n return hasPostScanDelayTimeout;\n }",
"public void setPostScanDelayTimeout(int postScanDelayTimeout) {\n if (postScanDelayTimeout > 65535 || postScanDelayTimeout < 0) {\n throw new IllegalArgumentException(\"the post scan delay timeo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Layout nodes if view is available. | private void layoutNode(final GraphView myView) {
String label = null;
int tempid = 0;
NodeView view = null;
for (final Iterator it = nodes.iterator(); it.hasNext();) {
// Extract a node from JAXB-generated object
final cytoscape.generated2.Node curNode = (cytoscape.generated2.Node) it
.ne... | [
"public void layoutChildren();",
"void nodeLayoutChanged();",
"NodeLayout createNodeLayout();",
"protected void layoutChildren() {\n }",
"private void addNodesToLayout()\r\n {\r\n // Add VBoxes to Pane\r\n borderPane.setTop(topVb);\r\n borderPane.setLeft(leftVb);\r\n borderPane.setRight(ri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the player's BaseComponent name. | BaseComponent getComponentName(); | [
"public String getBaseName() {\n return baseName;\n }",
"public String getPlayerName() {\n return props.getProperty(\"name\");\n }",
"@Override\r\n public String getBaseName() {\r\n if (baseName == null) {\r\n final int idx = getPath().lastIndexOf(SEPARATOR_CHAR);\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This returns the deployment id of a VM. The deployment ID is a reference string that is used to identify a set of VMs that belong together as part of a single deployment. This field is optional. | public String getDeploymentID() {
return deploymentID;
} | [
"public String getDeploymentId() {\n if (deploymentId.isPresent()) {\n return deploymentId.get();\n }\n return null;\n }",
"java.lang.String getDeploymentId();",
"public String getDeploymentId() {\n return deploymentId;\n }",
"com.google.protobuf.ByteString\n getDeploymentIdBytes... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if and only if visitation is in some block. | protected boolean inSomeBlock() {
return !enclosingBlocks.isEmpty();
} | [
"public boolean isInBlock(XmlLite.Tag blockTag) {\n return this.tagStack.hasTag(blockTag) >= 0;\n }",
"public abstract boolean isBlockInArea(Block block);",
"public boolean isInBlock(XmlData blockStarter) {\n final XmlLite.Tag blockTag = blockStarter.getBlockTag();\n return isInBlock(blockTag);\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the number of active connections | public int getActiveConnectionCount() {
return activeConnectionCount;
} | [
"int getConnectionsCount();",
"public int getCountOpenConnections() { return connectionCount.get(); }",
"public int getNumOfConnections() {\r\n\t\treturn numOfConnections;\r\n\t}",
"public static int getConnectionCount()\r\n {\r\n return count_; \r\n }",
"public int getTotalConnections();",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/Checks the N and gridArray values entered for errors | public static int gridRoutine(int N, int[][] gridArray, int[][] init_X_Y_Value) throws EnteredValueException {
valueErrorChecking(N, gridArray);
for(int XY_Arr_Count=0; XY_Arr_Count<init_X_Y_Value.length;XY_Arr_Count++) {
/*Checks the init_X_Y_Value variable for errors*/
initValueErrorChecking(N, gridA... | [
"private void validate(int i, int j) {\n if (i < 0 || i >= this.gridsize) \n {\n throw new IndexOutOfBoundsException(\"row index \" + i + \" out of bounds\");\n }\n if (j < 0 || j >= this.gridsize) \n {\n throw new IndexOutOfBoundsException(\"column index \" ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional sint32 disc_number = 6; | int getDiscNumber(); | [
"public int GetDiscType() \n {\n return discType; // Dummy return value\n }",
"public void setNienHanSuDungND86(int nienHanSuDungND86);",
"long getUnknown12();",
"float getNo2();",
"NFP_Integer createNFP_Integer();",
"int getUnknown13();",
"public void setNalInternal(int value) {\n this... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
DELETE method for deleting and instance of player with the given ID. If the player doesn't exist, then don't delete anything. DELETE is idempotent, so sending the same command multiple times should result in the same side effect, though the return value may be different. | @DELETE
@Path("/player/{id}")
@Produces("text/plain")
public String deletePlayer(@PathParam("id") int id) {
try {
//Class.forName("org.postgresql.Driver");
Connection connection = DriverManager.getConnection(DB_URI, DB_LOGIN_ID, DB_PASSWORD);
Statement statement =... | [
"@Override\n public void deletePlayerById(Long id) {\n playerRepository.deleteById(id);\n }",
"@RequestMapping(value = \"/delete_player\", method = RequestMethod.DELETE)\n public Map<String, Object> deletePlayer(@RequestParam(\"playerId\") Long playerId) {\n LinkedHashMap<String, Object> ma... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find labels that contain the statement name | private WebElement findStatement(String name) {
List<WebElement> statementLabelsContainingTheName = driver.findElements(By.xpath("//div[@class='imj_admindataLabel' and contains(text()[1],'" + name + "')]"));
// Return the statement that matches the statement name exactly
for (WebElement statementLabel : sta... | [
"public LabelStatement[] getLabels();",
"labeled_statement getLabeled_statement();",
"public StmtIterator listStatementsWithLabel() {\n \tStmtIterator sit = model.listStatements(null, labelProperty, (RDFNode)null);\n \treturn sit;\n }",
"public Stmt\ngetStmtWithLabel( Label pLabel );",
"public List... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Thread declarator list (on top of instructions), e.g. " P0 | P1 | P2 ;" | @Override
public Object visitThreadDeclaratorList(LitmusX86Parser.ThreadDeclaratorListContext ctx) {
for(LitmusX86Parser.ThreadContext threadCtx : ctx.thread()){
String thread = threadId(threadCtx.ThreadIdentifier().getText());
mapThreadEvents.put(thread, new ArrayList<Thread>());
... | [
"private void getThreadFunctions(ASTNode node) {\n\t\tfor (ASTNode child : node.children()) {\n\t\t\tif (child == null)\n\t\t\t\tcontinue;\n\t\t\tif (child instanceof FunctionCallNode) {\n\t\t\t\tFunctionCallNode funcCall = (FunctionCallNode) child;\n\t\t\t\tExpressionNode funcName = funcCall.getFunction();\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The isRookie method is utilized to check if the CharacterCard object is a rookie or not based on the 'isRookie' boolean variable. | public boolean isRookie(){
if(isRookie){
return true;
}else{
return false;
}
} | [
"public final boolean isRook() {\n return (this == WHITE_ROOK) || (this == BLACK_ROOK);\n }",
"public String printRookie(){\r\n\t\tif (this.isRookie()){\r\n\t\t\treturn \"Yes\";\r\n\t\t}else{\r\n\t\t\treturn \"No\";\r\n\t\t}\r\n\t}",
"public boolean isRemedyCard() {\r\n\t\treturn remedyCard;\r\n\t}",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the uniqe identifier of the concrete implementation of this BusinessObject. | public abstract void setUniqeIdentifier(int value); | [
"@Override\n\tpublic void setUniqueId(int id) {}",
"public AbstractIdentifiable() {\n this.id = getNextId();\n }",
"@Override\n public Object getUID() {\n return uniqueId;\n }",
"public void setUniqueId(UniqueId uniqueId) {\n this._uniqueId = uniqueId;\n }",
"@Override\n public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a polynomial which contains only one variable | public PPolynomial(final PVariable fv) {
this();
terms.put(new PTerm(fv), BigInteger.ONE);
} | [
"Function polynomial();",
"public Polynomial()\r\n\t{\r\n\t\tdouble[] coeff = new double[1];\r\n\t\tcoeff[0] = 0;\r\n\t\tthis.coeffs = coeff;\r\n\t}",
"Polynomial add(Polynomial polynomial);",
"public Polynomial() {\r\n\t\tpoly = null;\r\n\t}",
"public Polynomial() {\n degree = 0;\n }",
"private... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test method for 'EventManager.removeEventValidator(ActionEventValidator)'. The validator should be removed correctly. | public void testRemoveEventValidator2_Accuracy() {
Map<Class, Set<ActionEventValidator>> map = (Map<Class, Set<ActionEventValidator>>)
getPrivateField(EventManager.class, eventManager, "eventValidators");
Set<ActionEventValidator> validators1 = new HashSet<ActionEventValidator>();
va... | [
"public void testRemoveValidator_ObjectValidator_Accuracy1() {\r\n validator.addValidator(validator1);\r\n validator.addValidator(validator2);\r\n validator.removeValidator(validator2);\r\n\r\n int cnt = 0;\r\n\r\n for (Iterator iter = validator.getValidators(); iter.hasNext();) {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the value of basename | public String getBasename() {
return basename;
} | [
"public String getBasename() {\n\t\treturn basename;\n\t}",
"public String getBasename();",
"protected final String basename(@NonNull String path) {\n path = removeDoubleSlashesFromPath(path);\n val idx = path.lastIndexOf('/');\n if (idx < 0) {\n return path;\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test method for 'com.elasticpath.domain.shipping.impl.ShippingRegionImpl.setRegionMap()'. | @Test
public void testSetRegionMap() {
Map<String, Region> regionMap = new LinkedHashMap<String, Region>();
Region caRegion = new RegionImpl(COUNTRY_CODE_CA,
Arrays.asList(SUB_COUNTRY_CODE_AB, SUB_COUNTRY_CODE_BC));
regionMap.put(COUNTRY_CODE_CA, caRegion);
regionMap.put(COUNTRY_CODE_US, new Region... | [
"@Test\n\tpublic void testGetRegionMap() {\n\t\tthis.shippingRegionImpl.setRegionStr(REGION_STR);\n\t\tMap<String, Region> regionMap = this.shippingRegionImpl.getRegionMap();\n\t\tassertEquals(REGION_MAP_SIZE, regionMap.size());\n\t\tassertEquals(COUNTRY_CODE_CA, regionMap.get(COUNTRY_CODE_CA).getCountryCode());\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Habilitamos el boton editar y permisos | private void enableBotonesLectura()
{
this.btnEditar.setEnabled(true);
this.btnEditar.setVisible(true);
} | [
"private void edit(){\n\n if(btnSave.getVisibility() == btnSave.VISIBLE){\n btnSave.setVisibility(btnSave.INVISIBLE);\n btnChoose.setVisibility(btnChoose.INVISIBLE);\n documentText.setFocusable(false);\n documentText.setFocusableInTouchMode(false);\n lbl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
1. Open test site by URL | @Test(priority = 1)
public void openSiteTest() {
driver.get(url);
Assert.assertEquals(driver.getCurrentUrl(),url);
} | [
"private static void openWebpage(String url) {\n try {\n new ProcessBuilder(\"x-www-browser\", url).start();\n } catch (IOException e) {\n log.error(e.getMessage(), e);\n }\n }",
"void openUrl (String url);",
"@BeforeTest\r\n public void openUrl() {\r\n\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create circle arc with various constructors, and check whether they are the same. | public void testEquals() {
// direct circle
CircleArc2D arc0 = new CircleArc2D();
Circle2D circle = new Circle2D(0, 0, 1, true);
CircleArc2D arc1 = new CircleArc2D(circle, 0, PI/2);
CircleArc2D arc2 = new CircleArc2D(circle, 0, PI/2, true);
CircleArc2D arc3 = new CircleArc2D(0, 0, 1, 0, PI/2);
Circ... | [
"@Test\r\n\tpublic void CircleTest()\r\n\t{\r\n\t\tShape crcl = new Circle(\"Circle1\", 3.0);\r\n\t\tAssert.assertEquals(\"Circle area incorrect.\", Math.PI*3.0*3.0, crcl.getArea(), 0.0001);\r\n\t\tAssert.assertEquals(\"Circle perimeter incorrect.\", 2 * Math.PI * 3.0, crcl.getPerimeter(), 0.0001);\r\n\t\tAssert.as... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Method to enter three digits of UPC on drug search page | @When("^search with three digit UPC$")
public void search_with_three_digit_UPC(DataTable arg1) throws Exception {
Actions view = new Actions(chromeDriver);
Action Pressview = view.sendKeys(Keys.ALT, Keys.ARROW_LEFT).build();
Pressview.perform();
methodName = Thread.currentThread().ge... | [
"@When(\"^search with three digit NDC$\")\n public void search_with_three_digit_NDC(DataTable arg1) throws Exception {\n Actions view = new Actions(chromeDriver);\n Action Pressview = view.sendKeys(Keys.ALT, Keys.ARROW_LEFT).build();\n Pressview.perform();\n methodName = Thread.curren... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column category.lvl_category | public Short getLvlCategory() {
return lvlCategory;
} | [
"public void setLvlCategory(Short lvlCategory) {\r\n this.lvlCategory = lvlCategory;\r\n }",
"public int getCategoryLevel() {\n return categoryLevel;\n }",
"public int getCatLevel() {\n return catLevel;\n }",
"public auction.schema.Arche_Service_xsd.CategoryBaseT getLCategory() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is used to delete a json node using jsonPath expression | public static ObjectNode removeJsonNode(String jsonData, String jsonPath) {
ObjectNode objectNode = JsonPath.using(configuration).parse(jsonData).delete(jsonPath).json();
return objectNode;
} | [
"public void deleteNodeInJsonRequest(String path) {\n\t\tDocumentContext jsonContext = JsonPath.parse(requestPayload);\n\t\tjsonContext.delete(path);\n\t\tsetRequestPayload(jsonContext.jsonString());\n\t}",
"public static boolean deleteJSONNodeUsingPath(String filePath, String jsonPath) throws IOException, ParseE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
constructor for time period with ISO 8601 strings | public TimeObject(String beginIso8601String, String endIso8601String){
DateTime beginTime = parseTimePosition(beginIso8601String);
DateTime endTime = parseTimePosition(endIso8601String);
this.interval = new Interval(beginTime.getMillis(), endTime
.getMillis());
} | [
"public TimePeriod() {\r\n\t\t// just used for serialization\r\n\t}",
"public TimePeriod( String start, String end ) {\r\n\t\tthis( start, false, end, true );\r\n\t}",
"public TimeObject(String iso8601time){\n\t\tthis.dateTime = parseTimePosition(iso8601time);\n\t}",
"public TimePeriod(String periodString) th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set accessor for persistent attribute: electricaltilt | public void setElectricaltilt(java.math.BigDecimal newElectricaltilt)
throws java.rmi.RemoteException; | [
"public java.math.BigDecimal getElectricaltilt()\n\t\tthrows java.rmi.RemoteException;",
"@MavlinkFieldInfo(\n position = 3,\n unitSize = 1,\n signed = true,\n description = \"Order the mount to tilt: -1 down, 0 No tilt motion, +1 up\"\n )\n public final int tilt(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ DEEL 3: gebruikt DI om een nieuw blog object te injecteren | @Autowired
public BlogController(Blog blog) {
this.blog = blog;
blog.vulBlog();
} | [
"public BlogPostView() {\n this.blogPost = new BlogPost();\n }",
"private BlogManager(Controller c) {\r\n super();\r\n this.controller = c;\r\n this.init();\r\n }",
"@Autowired\n public void setBlogRepository(BlogRepository blogRepository) {\n this.blogRepository = bl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Define o atributo nomeCooperativa | public void setNomeCooperativa(String nomeCooperativa) {
this.nomeCooperativa = nomeCooperativa;
} | [
"public void asigneNombreColabolador (String nom)\n {\n nombreColaborador = nom;\n }",
"public Contribuinte()\n {\n this.nif = \"\";\n this.nome = \"\";\n this.morada = \"\"; \n }",
"public MacchinaStatiFiniti(String nome)\r\n\t{\r\n\t\tthis.nome=nome;\r\n\t\tcorrente=null;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Draw the line number in front of the line | private void drawLineNumber(
Graphics g,
int lineNumber,
int x,
int y)
{
String number = Integer.toString(lineNumber);
int stringWidth = lineNumberMetrics.stringWidth(number);
int xoffset = BREAKPOINT_OFFSET - stringWidth - 4;
if (xoffs... | [
"public LineNumber() {\n\t\tcurrentPosition.add(0,1);\n\t}",
"private void drawLineNumbers(Canvas canvas, float offsetX, float width, int color){\n if(width + offsetX <= 0){\n return;\n }\n int first = getFirstVisibleLine();\n int last = getLastVisibleLine();\n mPaint... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the 2D Interval covered by the .hgt file (always 1degree x 1degree) | @Override
public Interval2D extent() {
return this.extent;
} | [
"Rectangle2D getTileRegion();",
"public abstract IntegerInterval getInterval(int[] interval);",
"@Override\n\tpublic Rectangle2D getLitRegion() {\n\t\treturn getBounds2D();\n\t}",
"Rectangle2D getTiledRegion();",
"public Intervals getIntervalsY() { return _intervalsY; }",
"public abstract Intersection ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
if user add desc Arabic Spaces | @Test(priority = 16)
public void IfUseAddDescArabicSpaces() {
addNewOfferPage.AddTextInOfferDescArabic(" ");
addNewOfferPage.ClickToSave();
Assert.assertTrue(addNewOfferPage.errorMsgDescriptionAr.getText().contains("This field is required"));
driver.navigate().refresh();... | [
"@Test(priority = 3)\n public void IfUseAddNameArabicSpaces() {\n addNewOfferPage.AddTextInOfferNameArabic(\" \");\n addNewOfferPage.ClickToSave();\n Assert.assertTrue(addNewOfferPage.errorMsgNameAr.getText().contains(\"This field is required\"));\n driver.navigate().refresh();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
CM707889 Fetch Supplier name | public String getSupplierName1()
{
return getValue(WorkingInformation.SUPPLIERNAME1).toString();
} | [
"public String getSupplierName() {\n return supplierName;\n }",
"public String getSupplierName() {\n return this.supplierName;\n }",
"public String getSupplierSimpleName() {\n return supplierSimpleName;\n }",
"public String getSupplier() {\r\n\t\treturn supplier;\r\n\t}",
"Stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Object[] fila = new Object[7]; table = new JTable(); DefaultTableModel model = (DefaultTableModel) table.getModel(); DefaultTableModel modelo = (DefaultTableModel) table.getModel(); fila[0]="001"; fila[1]=""; fila[2]=""; fila[3]=""; fila[4]=""; fila[5]=""; fila[6]=""; modelo.addRow(fila); table.setModel(modelo); | public void actionPerformed(ActionEvent arg0) {
modelo =(DefaultTableModel) table.getModel();
modelo.addRow(new Object[filas]);
for (int x=0;x<table.getColumnCount()-1;x++) {
modelo.setValueAt("001",filas,0);
modelo.setValueAt("",filas,1);
modelo.setValueAt("",filas,2);
... | [
"public SumaDeFilas() {\n initComponents();\n \n \n String fila[][]={};\n //String columna[]={\"#LOTE\",\"SACO\",\"PESO BRUTO\",\"TARA\",\"PESO NETO\"};\n tabla =new DefaultTableModel();\n jTable.setModel(tabla);\n tabla.addColumn(\"Title 1\");\n tabla... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Access one of the questions, by question id, if it is in the part in a pick (not draw). | Question getQuestionInPick(String questionId); | [
"Question getQuestionInDraw(String questionId);",
"public Question getQuestion(String questionId) {\r\n Question[] questions = currentProcessInstance.getQuestions();\r\n Question foundQuestion = null;\r\n \r\n for (int i = 0; foundQuestion == null && i < questions.length; i++) {\r\n if (question... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function creates a cost table that is used to determine the outside costs for forcing an agent to change their domain value | private void createCostTable(Map<String, Map<Direction, List<Conflict>>> preferences) {
costTable = new HashMap<>();
for (String agentName : preferences.keySet()) {
Map<Direction, List<Conflict>> prefs = preferences.get(agentName);
HashMap<Direction, Double> costs = new HashMap<>();
for (Direction... | [
"public void generateCost() throws StandardException {\n\n double baseTableSelectivity = computePhaseSelectivity(selectivityHolder,QualifierPhase.BASE);\n double filterBaseTableSelectivity = computePhaseSelectivity(selectivityHolder,QualifierPhase.BASE,QualifierPhase.FILTER_BASE);\n double proj... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'tagId' field. the id to be assigned to this tag node typically set once when the node is first created, and used in value afterwards | public com.bbn.tc.schema.avro.ProvenanceTagNode.Builder clearTagId() {
tagId = null;
fieldSetFlags()[2] = false;
return this;
} | [
"public Point.Builder clearTagId() {\n tagId = null;\n fieldSetFlags()[1] = false;\n return this;\n }",
"public void xsetIdTag(ocpp.IdToken idTag)\n {\n synchronized (monitor())\n {\n check_orphaned();\n ocpp.IdToken target = null;\n target = (oc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a new intent to open a specific home activity. This intent clear the top stack and all task, then set this intent as the new main task. | public static <T> Intent getHomeIntent(Context context, Class<T> activity) {
Intent intent = new Intent(context, activity);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
retu... | [
"public void switchToHomeScreen() {\n Intent startMain = new Intent(Intent.ACTION_MAIN);\n startMain.addCategory(Intent.CATEGORY_HOME);\n startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(startMain);\n }",
"private void startHomeActivity() {\n Intent homeActi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Turns the API of the given client into a reactor API. The reactor API can be used simultaneously with the other APIs. | @CheckReturnValue
static @NotNull Mqtt5ReactorClient from(final @NotNull Mqtt5Client client) {
if (client instanceof Mqtt5ReactorClient) {
return (Mqtt5ReactorClient) client;
}
return new MqttReactorClient(client.toRx());
} | [
"public Client updateClient(Client client);",
"Client updateClient(Client client) throws BaseException;",
"Client updateClient(Client client) throws ClientNotFoundException;",
"public interface Client<IN, OUT, CONN extends Channel<IN,OUT>> extends Publisher<CONN> {\n\n\t/**\n\t * Open a channel to the configu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create and register an id place with all default config information | protected IdPlace() throws IOException {
super();
configureIdPlace();
} | [
"protected IdPlace(final String placeLoc) throws IOException {\n super(placeLoc);\n configureIdPlace();\n }",
"protected ProgrammerConfig(String id) {\r\n \t\tfId = id;\r\n \t\tfDirty = false;\r\n \t\tdefaults();\r\n \t}",
"abstract void autoGenerateId();",
"interface WithIdProvider {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if a CommandSender has admin permissions | public static boolean hasAdminPerms(CommandSender sender) {
return sender.hasPermission("pvparena.admin");
} | [
"public boolean isAdmin() {\r\n\t\tif (!getPlayer().hasPermission(\"FPSCaste.admin\")){\r\n\t\t\tif (!getPlayer().isOp()){\r\n\t\t\t\treturn isAdmin;\r\n\t\t\t} else {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"public boolean isAdmin();",
"public boolean isAdmin(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column homage_genealogy.genealogy_id | public void setGenealogyId(Long genealogyId) {
this.genealogyId = genealogyId;
} | [
"@ApiModelProperty(value = \"族谱ID\")\n public Long getGenealogyId() {\n return genealogyId;\n }",
"int getGeneId();",
"public String get_gene_id() {\n return m_gene_id;\n }",
"private void setGymId(int value) {\n \n gymId_ = value;\n }",
"public int getEntrezGeneId() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method initializes jTextFieldID | private JTextField getJTextFieldID() {
if (jTextFieldID == null) {
jTextFieldID = new JTextField();
jTextFieldID.setEditable(false);
jTextFieldID.setBounds(new Rectangle(135, 45, 121, 16));
}
return jTextFieldID;
} | [
"private JTextField getJTextFieldId() {\r\n\t\tif (jTextFieldId == null) {\r\n\t\t\tjTextFieldId = new JTextField();\r\n\t\t\tjTextFieldId.setPreferredSize(new Dimension(50, 20));\r\n\t\t}\r\n\t\treturn jTextFieldId;\r\n\t}",
"public PanelNuevaCarrera() {\n initComponents();\n jTextFieldId = new jav... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method to determine if the two nodes belong to the same set this is done by iterating through the map and checking if any of the set contains the two nodes | private boolean isSameSet(String src, String dest) {
boolean ignoreEdge = false; //boolean value to check whether the edge should be ignored
//iterating through the map
for (Map.Entry<String, Set<String>> node_AssociatedSetValue : node_AssociatedSet
.entrySet()) {
Set<String> nodesInSameSet = no... | [
"private boolean unionSet(Set<String> nodesSet, String node1, String node2) {\n\t\tboolean ignoreEdge = false;//boolean value to determine whether to ignore the edge\n\t\t\n\t\t//if the map does not contain the key, add the key, value pair\n\t\tif (!node_AssociatedSet.containsKey(node1)) {\n\t\t\tnode_AssociatedSet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Permission'. This implementation returns null; returning a nonnull result will terminate the switch. | public T casePermission(Permission object) {
return null;
} | [
"abstract public void getPermission();",
"public FacebookPermissionsE permission(){\n\t\treturn this.permission;\n\t}",
"String getPermission();",
"public String getaPermission() {\n return aPermission;\n }",
"public String getPermission() {\n return this.permission;\n }",
"public Stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If this is the animate button, start animations on the appropriate BarViews | @Override
public void onClick(View v) {
if (v.getId() == R.id.demo_bar_view_animate_button) {
mStandardBar.startBarAnimation();
mDividedBar.startBarAnimation();
mStandardBarReversed.startBarAnimation();
mDividedBarReversed.startBarAnimation();
// If this is the reset button, interpret the c... | [
"private void setAnimationsOnView() {\n AnimationUtil animationUtil = new AnimationUtil(this);\n animationUtil.slideInDown(tvHeader);\n animationUtil.bounceAnimation(llMain);\n }",
"private void setAnimations(){\n scaleAnimation = AnimationUtils.loadAnimation(context,R.anim.scale_ma... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the phcn hrs per day. | @Column(name = "phcn_hr_per_day")
public Long getPhcnHrsPerDay() {
return phcnHrsPerDay;
} | [
"Duration getHoursPerDay();",
"public Integer getHoursPerDay() {\r\n return hoursPerDay;\r\n }",
"public int getHoursPerDay() {\n\t\treturn hoursPerDay;\n\t}",
"public void setPhcnHrsPerDay(final Long phcnHrsPerDay) {\r\n\t\tthis.phcnHrsPerDay = phcnHrsPerDay;\r\n\t}",
"public int getHrs() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
retorna la lista de materiales de un proveedor | List<String> obtenerListaMaterialesProveedor(String proveedor); | [
"public List<Medicamento> obtenerMedicamentos(){\n\t\tList<Medicamento> listaMedicamentos = new ArrayList<>();\n\t\tQuery q = entity.createQuery(\"SELECT m FROM Medicamento m\");\n\t\tlistaMedicamentos = q.getResultList();\n\t\t\n\t\treturn listaMedicamentos;\n\t}",
"@Override public ListaMaterias getMaterias() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
MAXIMO COMUN DIVISOR (MCD) a=412 b=184 | public static int mcd(int a,int b){
int mcd;
if (a==b){
//caso base
mcd=b;
}else {
if (a>b){
a= a-b;
}else{
b=b-a;
}
mcd = mcd(a,b);
}
return mcd;
} | [
"public float getMaxAlturaCM();",
"public String getDEAL_MULTDIV()\r\n {\r\n\treturn DEAL_MULTDIV;\r\n }",
"float getM();",
"public String getEXCH_MULTDIV() {\r\n return EXCH_MULTDIV;\r\n }",
"public String getACC_CY_MULTDIV() {\r\n return ACC_CY_MULTDIV;\r\n }",
"private static ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all rows from the sms_dispositivo_movil table that match the specified arbitrary SQL statement | public SmsDispositivoMovil[] findByDynamicSelect(String sql, Object[] sqlParams) throws SmsDispositivoMovilDaoException; | [
"public SmsDispositivoMovil[] findWhereIdSmsDispositivoMovilEquals(int idSmsDispositivoMovil) throws SmsDispositivoMovilDaoException;",
"public SmsDispositivoMovil findByPrimaryKey(int idSmsDispositivoMovil) throws SmsDispositivoMovilDaoException;",
"public SmsDispositivoMovil findByPrimaryKey(SmsDispositivoMov... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Schreibt die Parameter mit dem Writer param. | public void writeParam(BufferedWriter param) {
try {
param.write(prime.toString());
param.newLine();
param.write(g1.toString());
param.newLine();
param.write(g2.toString());
param.close();
} catch (IOException e) {
e.pri... | [
"public void writeParameter(Writer w, Parameter p, Object value, int depth) throws IOException;",
"void save(ParameterWriter writer);",
"protected void writeParameter(String parameter) {\n\t\ttry {\n\t\t\tFileOutputStream out = new FileOutputStream(\"parameter.ser\");\n\t\t\tObjectOutputStream oos = new ObjectO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub For you to do: Take 2 boolean inputs from a user: "Are you thirsty?" "Are you sleepy?" If user is thirsty and not sleepy> drink=Water If user is thirsty and sleepy> drink=Coffee If user is not thirsty and sleepy > drink=Tea Otherwise drink="Nothing" Output: "Looks like you need ___ " | public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("Are you thirsty?");
boolean thirsty=input.nextBoolean();
System.out.println("Are you sleepy?");
boolean sleepy=input.nextBoolean();
if(thirsty && !sleepy) {
System.out.println("Looks like you need Water")... | [
"public static void main(String[] args) {\n\n\t\tboolean bool1, bool2;\n\t\tString drink = null ;\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Are you thirsty?\");\n\t\tbool1 = input.nextBoolean();\n\t\tSystem.out.println(\"Are you sleepy?\");\n\t\tbool2 = input.nextBoolean();\n\n\t\tif (b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the default language specified by the user through an annotation property at owl:Ontology. | String getDefaultLanguage(); | [
"public abstract String getDefaultLanguage();",
"public String getForSystemDefaultLanguage();",
"public String getDefaultLanguage() {\n return defaultLanguage;\n }",
"java.lang.String getLanguage();",
"public String getDefaultLanguage() throws ToolException\n {\n String select = \"select... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get scrolling type selected. | public String getScrollingType() {
return ((RadioButton) trackingMode.getSelectedToggle()).getText();
} | [
"public String getContinuousScrollType() {\n\t\treturn continuousScrollType.getValue();\n\t}",
"public int getSelectorType() {\n return m_selectorType;\n }",
"@VTID(87)\r\n excel.XlPTSelectionMode getSelectionMode();",
"StyleSelectionSettings getSelectablepageStyle();",
"public String get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reads the token response from the response body. | private Mono<OAuth2AccessTokenResponse> readTokenResponse(T grantRequest, ClientResponse response) {
return response.body(oauth2AccessTokenResponse())
.map(tokenResponse -> populateTokenResponse(grantRequest, tokenResponse));
} | [
"protected abstract RS deserializeTokenResponse(String body) throws JsonDeserializationException, OAuthException;",
"private void fetchToken() throws InvalidTokenException, ClientProtocolException, IOException, Exception {\n\t\tif(token==null || infoChanged) {\n\t\t\t\n\t\t\tString page = rawRequest(tokenUrlSuffi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add a like parameter to the manage | public void addParameterLike(String param, Object value) {
this.parameters.put(param, "%" + value + "%");
} | [
"public void addLike() {\n // TODO implement here\n }",
"protected void addLike(Like like) {\n\t\tlikes.add(like);\n\t}",
"void addLike(long mediaId);",
"public boolean addLike (Message like) {\n Logger.write(\"VERBOSE\", \"DB\", \"addLike(...)\");\n \n try {\n execut... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |